@inkeep/open-knowledge 0.0.0-dev-20260501054734 → 0.0.0-dev-20260501071238

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 (56) hide show
  1. package/dist/assets/skills/open-knowledge/SKILL.md +12 -12
  2. package/dist/cli.mjs +345 -346
  3. package/dist/config-schema.json +1 -30
  4. package/dist/config.project.schema.json +1 -30
  5. package/dist/constants-Ccx0q5EO.mjs +2 -0
  6. package/dist/dist-B-uWyCj3.mjs +1 -0
  7. package/dist/{dist-Bk22-nn7.mjs → dist-CUghvkAf.mjs} +72 -70
  8. package/dist/{dist-BKxD-v-w.mjs → dist-WQbZIrx7.mjs} +36 -36
  9. package/dist/index.d.mts +1 -3
  10. package/dist/index.mjs +1 -1
  11. package/dist/{init-DEHyWHMa.mjs → init-DMUmlRUV.mjs} +29 -29
  12. package/dist/{init-DVZtt6e-.mjs → init-DQVmtI8h.mjs} +25 -16
  13. package/dist/init-Dd-ypqWc.mjs +1 -0
  14. package/dist/init-jnyR2hTf.mjs +1 -0
  15. package/dist/loader-IVNXMdm0.mjs +4 -0
  16. package/dist/loader-dh9DEQFy.mjs +1 -0
  17. package/dist/paths-Bp5ooOJg.mjs +2 -0
  18. package/dist/paths-CcnZRq8W.mjs +1 -0
  19. package/dist/preview-SUAZQ5h2.mjs +1 -0
  20. package/dist/preview-tSq0pzNL.mjs +3 -0
  21. package/dist/public/assets/{ActivityModeContent-BSkmKRy4.js → ActivityModeContent-Bj0kOgDy.js} +1 -1
  22. package/dist/public/assets/{DocumentContext-D3zjM2ax.js → DocumentContext-CDvFNgd7.js} +1 -1
  23. package/dist/public/assets/{GraphPanel-jbwIk-JX.js → GraphPanel-YIuSwj1X.js} +1 -1
  24. package/dist/public/assets/{SettingsPane-Bj0EiYda.js → SettingsPane-BYRRZ2yt.js} +1 -1
  25. package/dist/public/assets/{SourceEditor-Dz2Lc5LE.js → SourceEditor-BkBM9oYb.js} +1 -1
  26. package/dist/public/assets/{clipboard-i7TzBQ01.js → clipboard-BTbzStNo.js} +1 -1
  27. package/dist/public/assets/{config-validation-events-DpHbVC_H.js → config-validation-events-gPU2C30Q.js} +1 -1
  28. package/dist/public/assets/{index-joGKm2Br.js → index-C0JKXDVX.js} +71 -71
  29. package/dist/public/assets/{target-navigation-intent-CK4Ee17H.js → target-navigation-intent-BeUCdVKa.js} +1 -1
  30. package/dist/public/assets/{toggle-group-n36XMgMC.js → toggle-group-CyBGhndP.js} +6 -4
  31. package/dist/public/assets/{tooltip-BM5o_T0o.js → tooltip-FdwzzIbl.js} +1 -1
  32. package/dist/public/index.html +7 -7
  33. package/dist/schemas/v0/config.project.schema.json +1 -30
  34. package/dist/server-Bc0tGxRk.mjs +3 -0
  35. package/dist/{server-lock-n3Y5JWNv-3o7br8XE.mjs → server-lock-BAi_a4NX-CRPhQdIH.mjs} +1 -1
  36. package/dist/server-lock-BAi_a4NX-uRxotxS6.mjs +1 -0
  37. package/dist/src-B-NdiXlJ.mjs +1 -0
  38. package/dist/start-CUBxPqPc.mjs +2 -0
  39. package/dist/start-GoM45WVd.mjs +1 -0
  40. package/package.json +1 -1
  41. package/scripts/build-config-schema.mjs +2 -2
  42. package/dist/constants-C_Xn28oM.mjs +0 -2
  43. package/dist/dist-BuWOuGGO.mjs +0 -1
  44. package/dist/init-BrZlKzcx.mjs +0 -1
  45. package/dist/init-gZdio8Wt.mjs +0 -1
  46. package/dist/loader-CEV6AVlU.mjs +0 -1
  47. package/dist/loader-DD2NITvw.mjs +0 -2
  48. package/dist/paths-Dwr32i3p.mjs +0 -1
  49. package/dist/paths-ajeOK0uP.mjs +0 -2
  50. package/dist/preview-C86aCB1t.mjs +0 -3
  51. package/dist/preview-D6fWJCDu.mjs +0 -1
  52. package/dist/server-CYax-BjV.mjs +0 -3
  53. package/dist/server-lock-n3Y5JWNv-DXpg9_eU.mjs +0 -1
  54. package/dist/src-D6R3jg-t.mjs +0 -1
  55. package/dist/start-D5tAdx92.mjs +0 -2
  56. package/dist/start-DG0Lr5vX.mjs +0 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: open-knowledge
3
- description: "MUST invoke when the project contains a .open-knowledge/ 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 .open-knowledge/ — 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. 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"
@@ -11,7 +11,7 @@ metadata:
11
11
 
12
12
  Open Knowledge (OK) is a markdown-CRDT collaboration platform exposed via MCP. This skill carries the behavioral rules agents need to use it fluently. Every section is a MUST unless marked otherwise.
13
13
 
14
- > Skill version: tracks `@inkeep/open-knowledge-server` package version. Check `cat ~/.open-knowledge/skill-installed-version` to see what's installed locally.
14
+ > Skill version: tracks `@inkeep/open-knowledge-server` package version. Check `cat ~/.ok/skill-installed-version` to see what's installed locally.
15
15
 
16
16
  ## STOP — native tools on in-scope `.md` / `.mdx`
17
17
 
@@ -21,7 +21,7 @@ When this workspace has Open Knowledge MCP configured, do **not** use your host'
21
21
  - **`Bash ls` / `Bash find` / `Bash cat` on dirs containing in-scope markdown** — use `exec("ls …")` / `exec("find … -name '*.md'")` / `exec("cat …")` instead. Native returns bare names; `exec` returns frontmatter, backlink counts, and recent activity per child.
22
22
  - **Glob patterns that target markdown** (`**/*.md`, any dir known to be markdown-heavy like `specs/**`, `reports/**`, `docs/**`) — use `exec` with `find`, or `list_documents({ dir })`.
23
23
  - **Dispatching the Explore / general-purpose subagent for markdown-heavy exploration** — subagents use native `Read` / `Grep` / `Glob` internally and bypass Open Knowledge entirely. Do markdown exploration yourself via `exec` / `search`. Subagents remain appropriate for **source-code** exploration.
24
- - **Reading `.open-knowledge/AGENTS.md` via native `Read`** — observed failure mode during M1 testing. The `.open-knowledge/` directory is in-scope; treat its contents the same as any other knowledge-base file.
24
+ - **Reading `.ok/AGENTS.md` via native `Read`** — observed failure mode during M1 testing. The `.ok/` directory is in-scope; treat its contents the same as any other knowledge-base file.
25
25
 
26
26
  Why: native tools skip frontmatter, backlinks, shadow-repo activity, and project git history that OK's tools return for every matched knowledge-base file. `exec` is the primary read surface; it runs read-only bash (`cat`, `ls`, `grep`, `find`, `head`, `tail`, `wc`, `sort`, `uniq`, `cut` — pipes OK) and returns raw stdout plus enriched metadata per file.
27
27
 
@@ -141,21 +141,21 @@ tags:
141
141
  ---
142
142
  ```
143
143
 
144
- **Folder-level defaults via `.open-knowledge/config.yml` `folders:`.** See next section.
144
+ **Folder-level defaults via `.ok/config.yml` `folders:`.** See next section.
145
145
 
146
- ## Follow `.open-knowledge/config.yml` — it is the project contract
146
+ ## Follow `.ok/config.yml` — it is the project contract
147
147
 
148
- **Read `.open-knowledge/config.yml` at the start of every session that involves writing to the knowledge base.** It is the single source of truth for:
148
+ **Read `.ok/config.yml` at the start of every session that involves writing to the knowledge base.** It is the single source of truth for:
149
149
 
150
150
  - **Folder structure intent** — the `folders:` block tells you which folders exist, what each one contains, and what tags its files should carry. Every `exec("ls <folder>")` / `read_document` / `search` call merges these defaults with per-file frontmatter automatically, but you should also read config.yml directly when orienting so you can *place new docs in the right folder* and *write them in the voice + shape the project expects*.
151
151
  - **Per-folder instructions** — each `folders:` entry's `description:` field is the canonical place for "what does this folder contain + how should agents work inside it." Treat the description as a binding instruction, not flavor text. If a folder's description says "preserve verbatim, no analysis" (e.g. `external-sources/`), don't synthesize into those files; takeaways belong elsewhere.
152
- - **Content scope** — `content.dir` / `content.include` / `content.exclude` define which files count as knowledge-base documents. Anything outside those globs is regular source code, not a knowledge-base doc.
152
+ - **Content scope** — `content.dir` defines the content root. `.gitignore` and `.okignore` files (gitignore syntax, nested at any depth) define which paths are excluded from the document index. Anything excluded is regular source code, not a knowledge-base doc.
153
153
 
154
154
  If a project uses `ok seed` to scaffold the Karpathy three-layer layout (`external-sources/` → `research/` → `articles/`), each folder's description in `config.yml` encodes the layer's rules. Projects with custom layouts put their own discipline in their own descriptions. Either way: **follow what config.yml says.**
155
155
 
156
- ## Folder structure + metadata — edit `.open-knowledge/config.yml`
156
+ ## Folder structure + metadata — edit `.ok/config.yml`
157
157
 
158
- When you create or restructure folders, you SHOULD add a matching entry to the `folders:` key in `.open-knowledge/config.yml` with a glob + frontmatter defaults. This is how per-folder title/description/tags land without duplicating frontmatter on every child file.
158
+ When you create or restructure folders, you SHOULD add a matching entry to the `folders:` key in `.ok/config.yml` with a glob + frontmatter defaults. This is how per-folder title/description/tags land without duplicating frontmatter on every child file.
159
159
 
160
160
  Example:
161
161
 
@@ -220,7 +220,7 @@ The skill carries the trigger ("KB content changed this turn — go look"). The
220
220
  | 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 |
221
221
  | 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 |
222
222
  | Add an image | empty alt `![](./x.png)` or generic alt `![image](./x)` | meaningful alt + source caption below |
223
- | Catalog folder contents | create `INDEX.md` hub file | add `folders:` entry in `.open-knowledge/config.yml` |
223
+ | Catalog folder contents | create `INDEX.md` hub file | add `folders:` entry in `.ok/config.yml` |
224
224
  | Fork a skill and expect no stomp | Edit installed SKILL.md | `npx skills remove` before CLI upgrade |
225
225
 
226
226
  ## Workflow tools — when to invoke them
@@ -249,6 +249,6 @@ If `write_document` or `edit_document` returns a "Hocuspocus server is not runni
249
249
 
250
250
  ## Scope recap
251
251
 
252
- When MCP is connected, the server's `instructions` echo the **resolved** `dir` / `include` / `exclude` for this session — treat that table and `.open-knowledge/config.yml` as two views of the same rules. `.gitignore` still applies.
252
+ When MCP is connected, the server's `instructions` echo the **resolved** `content.dir` for this session — treat that and `.ok/config.yml` as two views of the same rules. `.gitignore` and `.okignore` (at the project root and at any folder depth) define exclusions.
253
253
 
254
- Default mental model (no jargon): unless this project narrowed `content.include`, **every `.md` and `.mdx` under `content.dir`** is an Open Knowledge document — including under `specs/`, `reports/`, `docs/`, etc. If `content.include` is non-default, read `config.yml` once per turn so you do not mis-classify paths.
254
+ Default mental model (no jargon): **every `.md` and `.mdx` under `content.dir`** not excluded by `.gitignore` or `.okignore` is an Open Knowledge document — including under `specs/`, `reports/`, `docs/`, etc. Read `.okignore` (and any nested `.okignore` files) once per turn to know what's excluded.