@inkeep/open-knowledge 0.12.0 → 0.13.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/assets/skills/discovery/SKILL.md +1 -1
  2. package/dist/assets/skills/project/SKILL.md +3 -2
  3. package/dist/cli.mjs +51 -50
  4. package/dist/constants-BYIeZQM3.mjs +2 -0
  5. package/dist/dist-CNZsMl-V.mjs +1 -0
  6. package/dist/{dist-D7myPw4s.mjs → dist-C_YxrqyY.mjs} +44 -38
  7. package/dist/{gh-detect-CNO7EkgF.mjs → gh-detect-CdNj3GJ-.mjs} +2 -2
  8. package/dist/index.mjs +1 -1
  9. package/dist/{init-DjkROmXh.mjs → init-Bt9S7yc7.mjs} +9 -9
  10. package/dist/init-BxRIBYoQ.mjs +1 -0
  11. package/dist/{loader-ZHA8qsxF.mjs → loader-CBz-HCpO.mjs} +3 -3
  12. package/dist/loader-DWoT_ViS.mjs +1 -0
  13. package/dist/{preview-BI2sVxtF.mjs → preview-BNODnkHd.mjs} +2 -2
  14. package/dist/preview-UvJSxuyy.mjs +1 -0
  15. package/dist/public/assets/{ActivityModeContent-BWmb9zCZ.js → ActivityModeContent-DI-NbLxJ.js} +1 -1
  16. package/dist/public/assets/DocumentContext-CPOzFdnn.js +61 -0
  17. package/dist/public/assets/{GraphPanel-PYMXWVsg.js → GraphPanel-CugGrte3.js} +9 -9
  18. package/dist/public/assets/{SettingsDialogBody-YOvgrn38.js → SettingsDialogBody-Do5q2G21.js} +2 -2
  19. package/dist/public/assets/{SourceEditor-D1zhJS8f.js → SourceEditor-CyXGsCrF.js} +1 -1
  20. package/dist/public/assets/config-validation-events-BH_BmK0r.js +12 -0
  21. package/dist/public/assets/index-DMG1oK8Y.js +1915 -0
  22. package/dist/public/assets/{keyboard-shortcuts-CNJfczoS.js → keyboard-shortcuts-bRPd5tp-.js} +1 -1
  23. package/dist/public/assets/{prop-types-COA7UVY9.js → prop-types-vRN_ulq0.js} +1 -1
  24. package/dist/public/assets/{target-navigation-intent-Cp-mOxXo.js → target-navigation-intent-CMJZoqSj.js} +1 -1
  25. package/dist/public/assets/{telemetry-impl-l-VsaBiG.js → telemetry-impl-BrY67z04.js} +1 -1
  26. package/dist/public/assets/{typing-burst-detector-DWg86xJw.js → typing-burst-detector-Dm58iY7Z.js} +2 -2
  27. package/dist/public/index.html +7 -7
  28. package/dist/{repair-launch-json-DCXsAQuF.mjs → repair-launch-json-7O7Lmxus.mjs} +2 -2
  29. package/dist/{repair-mcp-configs-BV1WJulV.mjs → repair-mcp-configs-2dA34sJP.mjs} +2 -2
  30. package/dist/{repair-skills-uHQb0hCn.mjs → repair-skills-CeaTntK5.mjs} +2 -2
  31. package/dist/repair-skills-ulgbNIxw.mjs +1 -0
  32. package/dist/{server-lock-BpjJj3OD-CUhVvie4.mjs → server-lock-BpjJj3OD-D4ouSX5Q.mjs} +2 -2
  33. package/dist/server-lock-CyhBidkz-RB9B6fvF.mjs +1 -0
  34. package/dist/{src-DnynaviS.mjs → src-hFiiM4hG.mjs} +3 -3
  35. package/dist/{start-NIyRsRSX.mjs → start-BiMFcs6H.mjs} +2 -2
  36. package/dist/start-xtUzqtGY.mjs +1 -0
  37. package/dist/{write-project-skill-DnuutHfZ.mjs → write-project-skill-DDU4NRC7.mjs} +2 -2
  38. package/package.json +1 -1
  39. package/dist/constants-iOPbvTyC.mjs +0 -2
  40. package/dist/dist-GL5zcXSU.mjs +0 -1
  41. package/dist/init-BCTt64EX.mjs +0 -1
  42. package/dist/loader-DlfckqdT.mjs +0 -1
  43. package/dist/preview-1rr7IXHj.mjs +0 -1
  44. package/dist/public/assets/DocumentContext-9Sn6Kq-o.js +0 -61
  45. package/dist/public/assets/config-validation-events-BUyp1R_U.js +0 -12
  46. package/dist/public/assets/index-CEtMQRxi.js +0 -1915
  47. package/dist/repair-skills-BSA3PyS7.mjs +0 -1
  48. package/dist/server-lock-CyhBidkz-D41BTXw5.mjs +0 -1
  49. package/dist/start-DYkSDg3x.mjs +0 -1
@@ -3,7 +3,7 @@ name: open-knowledge-discovery
3
3
  description: "Read when the user asks what Open Knowledge is, wants to install it on a repository, wants to share an Open Knowledge project with collaborators, or asks how `ok init` / `ok install-skill` / OK Desktop set up a project. Do NOT load to perform Open Knowledge reads/writes — the runtime guidance for editing markdown inside an initialized OK project ships as a separate project-local skill at `.claude/skills/open-knowledge/` whenever `ok init` runs. If the user appears to be editing markdown inside a `.ok/` project and this is the only OK skill loaded, advise them to re-run `ok init` to install the project-local skill."
4
4
  compatibility: "Any agent host — no MCP server required. Pure discovery + install guidance."
5
5
  metadata:
6
- version: "0.12.0"
6
+ version: "0.13.0-beta.0"
7
7
  author: "Inkeep"
8
8
  repository: "https://github.com/inkeep/open-knowledge"
9
9
  ---
@@ -3,7 +3,7 @@ name: open-knowledge
3
3
  description: "MUST invoke before reading or editing any `.md` / `.mdx` file, and before any `mcp__open-knowledge__*` tool call (`exec`, `search`, `write`, `edit`, and the rest). This skill is installed into the repository by `ok init`, so its presence alone means this is an Open Knowledge project — its runtime contract governs every markdown file here, with no need to probe for a `.ok/` directory. Authoritative agent-runtime contract; supersedes the overlapping MCP server `instructions` echo."
4
4
  compatibility: "Claude Code, Claude Desktop, Claude Cowork, Claude.ai web. Requires Open Knowledge MCP server + code execution."
5
5
  metadata:
6
- version: "0.12.0"
6
+ version: "0.13.0-beta.0"
7
7
  author: "Inkeep"
8
8
  repository: "https://github.com/inkeep/open-knowledge"
9
9
  ---
@@ -232,6 +232,7 @@ Knowledge-base docs are factual artifacts — whether the project is a wiki, an
232
232
  ## Media — images and attachments
233
233
 
234
234
  - **Markdown syntax only:** `![alt text](./path/to/image.png)`. Do NOT emit HTML `<img>` tags — they don't participate in OK's content graph and don't render consistently across Fumadocs / preview surfaces. Paths resolve relative to the doc.
235
+ - **Always a doc-relative path — never a server URL.** Reference an asset by its path relative to the doc (`./image.png`, `../assets/foo.png`), never an absolute `http://localhost:<port>/…`, `127.0.0.1`, or other server URL. `preview_url`'s `url` navigates the *preview* — it is NOT an asset path; never paste it (or any `localhost` base) into an `![]()`. An asset already in the tree is the same rule: find its path with `exec("ls -A <dir>")` and write the relative link. (Upload via `write({ asset })` hands you the exact relative `![alt](ref)` to copy.)
235
236
  - **Save locally, don't hot-link.** Hot-linked external image URLs rot when the source disappears. Fetch (`WebFetch` / `curl`), save to a local path, reference via relative markdown link, cite the source below.
236
237
  - **Placement model.** Free-form image embeds → co-located alongside the referencing doc (sha256 same-directory dedup). Raw sources via `ingest` → `external-sources/<slug>.<ext>` + `external-sources/<slug>.md` (the wrapper-binary pair). Check via `exec("ls -A")` if the project uses a different convention.
237
238
  - **Cannot fetch** (no network, paywall) → don't invent a local path. Omit, or mark inline `(TODO: image needs sourcing from <URL>)`.
@@ -416,7 +417,7 @@ The skill carries the trigger ("KB content changed this turn — go look"). The
416
417
  | Make the Claude Code Desktop preview work | Read / diagnose / edit `.claude/launch.json` (host-managed config) | Call `preview_start("open-knowledge-ui")` and nothing else; the OK lock-collision proxy bridges any port mismatch transparently |
417
418
  | Open a doc in the app from the Claude Code CLI | Print the `previewUrl` / `openknowledge://` string for the user to click | Run `ok open <doc>` — it opens the OK Desktop app (folders open in the browser), with browser fallback |
418
419
  | Reference another doc | `` `[text](./page.md)` `` (backticked) or HTML `<a>` | `[text](./page.md)` (raw markdown) |
419
- | Embed an image | `<img src="...">` (HTML) or hot-linked external URL | Fetch + save locally + `![meaningful alt](./assets/images/path)` |
420
+ | Embed an image | `<img src="...">` (HTML), a `localhost:<port>` / `preview_url` server URL, or hot-linked external URL | Fetch + save locally + doc-relative `![meaningful alt](./assets/images/path)` |
420
421
  | Write a factual claim in a KB doc | plausible prose without citation, OR inline `[source](https://URL)` | `ingest` the source first, then cite the local path per Grounding |
421
422
  | Cite a web source you just fetched | inline `[source](https://...)` because YOU did the fetch (not the user) | `ingest` it — agent-initiated fetches are not exempt from the closed-loop rule |
422
423
  | Finish a turn that changed KB content | move on without checking for a log | check for a `log.md` and follow its contract per Log discipline |