@inkeep/open-knowledge 0.0.0-dev-20260501170533 → 0.0.0-dev-20260501185457

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/open-knowledge/SKILL.md +4 -1
  2. package/dist/cli.mjs +236 -235
  3. package/dist/config-schema.json +25 -0
  4. package/dist/config.project.schema.json +25 -0
  5. package/dist/config.user.schema.json +25 -0
  6. package/dist/constants-CF6iNHwq.mjs +2 -0
  7. package/dist/{dist-oDoSs1Bl.mjs → dist-BmX1Ns7C.mjs} +2 -2
  8. package/dist/{dist-BVnVlgjQ.mjs → dist-C5mH5cvM.mjs} +1 -1
  9. package/dist/{dist-CDuTCUx1.mjs → dist-CQ3cd3s_.mjs} +2 -2
  10. package/dist/index.d.mts +9 -0
  11. package/dist/index.mjs +1 -1
  12. package/dist/{init-Bf7LOYAr.mjs → init-BjnqDY7M.mjs} +2 -2
  13. package/dist/init-C2brR-RE.mjs +1 -0
  14. package/dist/{init-CPq6B11A.mjs → init-CYf2zVql.mjs} +3 -3
  15. package/dist/init-DmOplVN_.mjs +1 -0
  16. package/dist/{loader-C79dNoU-.mjs → loader-B6SJHrZ7.mjs} +2 -2
  17. package/dist/loader-DHJ2Zglf.mjs +1 -0
  18. package/dist/paths-CpBfVnXM.mjs +2 -0
  19. package/dist/paths-RkNXbnlJ.mjs +1 -0
  20. package/dist/preview-BlsnSdAb.mjs +1 -0
  21. package/dist/{preview-AXEdeZ4w.mjs → preview-Cwn5dVfT.mjs} +2 -2
  22. package/dist/public/assets/{ActivityModeContent-CCJOMAyp.js → ActivityModeContent-Cdl0frU2.js} +1 -1
  23. package/dist/public/assets/{DocumentContext-BHFNw5NZ.js → DocumentContext-BRyrYElZ.js} +1 -1
  24. package/dist/public/assets/{GraphPanel-BuZEMdl-.js → GraphPanel-BH5vs7kB.js} +1 -1
  25. package/dist/public/assets/{OutlinePanel-CnKUM65X.js → OutlinePanel-BcdH74Qw.js} +1 -1
  26. package/dist/public/assets/{SettingsPane-B3rEEyMP.js → SettingsPane-rdUN7cCp.js} +1 -1
  27. package/dist/public/assets/{SourceEditor-CE_X9auW.js → SourceEditor-Df4RyC-2.js} +1 -1
  28. package/dist/public/assets/{config-validation-events-DqfR4UtM.js → config-validation-events-CWaXc07D.js} +1 -1
  29. package/dist/public/assets/{index-NVu982rh.js → index-DN_1M53F.js} +70 -70
  30. package/dist/public/assets/{target-navigation-intent-1238Z_HW.js → target-navigation-intent-CIITpiPs.js} +1 -1
  31. package/dist/public/assets/{toggle-group-C5MXNna8.js → toggle-group-1sl8rMnA.js} +1 -1
  32. package/dist/public/assets/{tooltip-BMlqVI54.js → tooltip-CFeKxs4p.js} +1 -1
  33. package/dist/public/index.html +7 -7
  34. package/dist/schemas/v0/config.project.schema.json +25 -0
  35. package/dist/schemas/v0/config.user.schema.json +25 -0
  36. package/dist/{server-Cb1yd7Zc.mjs → server-CJdOKLcU.mjs} +2 -2
  37. package/dist/src-DTzzYACv.mjs +1 -0
  38. package/dist/{start-Dl1pApAn.mjs → start-DUNgfb6B.mjs} +2 -2
  39. package/dist/start-LHb22tU5.mjs +1 -0
  40. package/package.json +1 -1
  41. package/dist/constants-B8HpPaWG.mjs +0 -2
  42. package/dist/init-BhfL8UL0.mjs +0 -1
  43. package/dist/init-DkzHwyzJ.mjs +0 -1
  44. package/dist/loader-5abUX3Eq.mjs +0 -1
  45. package/dist/paths-BIsyTDX6.mjs +0 -1
  46. package/dist/paths-Drz5vBVF.mjs +0 -2
  47. package/dist/preview-DUYE2XxR.mjs +0 -1
  48. package/dist/src-CPe0c6hz.mjs +0 -1
  49. package/dist/start-COO3npTl.mjs +0 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: open-knowledge
3
- description: "MUST invoke when the project contains a .ok/ directory — before any read or edit of .md / .mdx files, any mcp__open-knowledge__ tool call, and any write_document / edit_document. Skip if no .ok/ — not an Open Knowledge project. Carries preview-attach (open preview browser at session start; one-shot on `action: attach-preview-once`), STOP rules for native Read/Grep/Edit on in-scope markdown, grounding rules (every factual claim needs a source), standard markdown linking with get_dead_links verification, image sourcing + alt-text + source-citation rules, folder-first organization with config.yml metadata, and the anti-pattern table. Authoritative — MCP server instructions and AGENTS.md overlap but do not substitute for the full attach rule, grounding rule, media rules, dead-link verification, and failure-mode guidance carried only here."
3
+ description: "MUST invoke when the project contains a .ok/ directory — before any read or edit of .md / .mdx files, any mcp__open-knowledge__ tool call, and any write_document / edit_document / delete_document. Skip if no .ok/ — not an Open Knowledge project. Carries preview-attach (open preview browser at session start; one-shot on `action: attach-preview-once`), STOP rules for native Read/Grep/Edit on in-scope markdown, grounding rules (every factual claim needs a source), standard markdown linking with get_dead_links verification, image sourcing + alt-text + source-citation rules, folder-first organization with config.yml metadata, and the anti-pattern table. Authoritative — MCP server instructions and AGENTS.md overlap but do not substitute for the full attach rule, grounding rule, media rules, dead-link verification, and failure-mode guidance carried only here."
4
4
  compatibility: "Claude Code, Claude Desktop, Claude Cowork, Claude.ai web. Requires Open Knowledge MCP server + code execution."
5
5
  metadata:
6
6
  version: "0.3.0"
@@ -60,6 +60,8 @@ If the server isn't running, you'll see a `"Hocuspocus server is not running"` e
60
60
 
61
61
  Call `write_document` / `edit_document` as soon as you have content. Native `Edit` / `sed` / direct `Write` on in-scope markdown is forbidden — it bypasses the CRDT and loses agent attribution in the shadow repo.
62
62
 
63
+ To delete a doc, call `delete_document` — never `rm` / `unlink` / native `Bash` removal on in-scope markdown. The MCP path closes open agent sessions and unloads the doc from Hocuspocus before unlinking; native `rm` desynchronizes those. Deletion is irreversible from this tool — call `save_version` first if you may need to roll back, and `get_backlinks` first if you want to fix the referrers that will become redlinks.
64
+
63
65
  ## Grounding — every factual claim needs a source (MUST)
64
66
 
65
67
  Knowledge-base docs are factual artifacts — whether the project is a wiki, an LLM brain, a spec collection, a research log, or anything else markdown-shaped. Every claim must be traceable, and **the source has to live inside the knowledge base**, not float on the public web.
@@ -211,6 +213,7 @@ The skill carries the trigger ("KB content changed this turn — go look"). The
211
213
  | Find all SPEC.md files | `Glob: **/SPEC.md` | `exec("find specs -name SPEC.md")` |
212
214
  | Search a phrase across markdown | `Grep: "pattern" *.md` | `search({ query: "pattern" })` |
213
215
  | Read an individual doc | `Read: specs/foo/SPEC.md` | `exec("cat specs/foo/SPEC.md")` or `read_document(...)` |
216
+ | Delete a markdown doc | `Bash: rm` / `unlink` / native deletion on in-scope `.md` | `delete_document` — `save_version` first if rollback may be needed |
214
217
  | Explore a markdown-heavy dir | `Agent(Explore): "..."` | Do `exec`-based exploration yourself |
215
218
  | Wait for the server to tell you to open preview | Skip the session-start preview open and wait for the `attach-preview-once` hint | Open the preview browser at session start; the hint is a fallback when you didn't |
216
219
  | Ignore the attach hint | Skip the `warning: { action: "attach-preview-once" }` hint in write-tool responses | Open the `previewUrl` when the hint fires; otherwise do nothing |