@inkeep/open-knowledge 0.5.0-beta.32 → 0.5.0-beta.33
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.
- package/dist/assets/skills/open-knowledge/SKILL.md +3 -3
- package/dist/cli.mjs +34 -36
- package/dist/constants-BOmgyJCx.mjs +2 -0
- package/dist/dist-CrZp485f.mjs +1 -0
- package/dist/{dist-B6MS3WBH.mjs → dist-DVBcq9iQ.mjs} +13 -188
- package/dist/index.mjs +1 -1
- package/dist/init-BkM1w2mf.mjs +1 -0
- package/dist/{init-BhlJM4rl.mjs → init-DHTPE4ci.mjs} +8 -8
- package/dist/{loader-B1jCcMYd.mjs → loader-CDNSgruS.mjs} +3 -3
- package/dist/loader-DR8QFmRM.mjs +1 -0
- package/dist/{preview-BMvIW8jV.mjs → preview-DLGsrQwc.mjs} +2 -2
- package/dist/preview-ucgn_CYR.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-Ujcca9iS.js → ActivityModeContent-CPGcfHrn.js} +1 -1
- package/dist/public/assets/{DocumentContext-DOG9Tazn.js → DocumentContext-BmxWy89N.js} +1 -1
- package/dist/public/assets/{GraphPanel-DjjMb8Jx.js → GraphPanel-BOY-1L72.js} +1 -1
- package/dist/public/assets/{SettingsDialog-CgJgbQqe.js → SettingsDialog-B8NG-Ohp.js} +3 -3
- package/dist/public/assets/{SourceEditor-XX2CbbTM.js → SourceEditor-C--P5jJK.js} +1 -1
- package/dist/public/assets/{config-validation-events-Ct5ZFdjf.js → config-validation-events-eiR0kVqX.js} +3 -3
- package/dist/public/assets/{doc-hash-ek4HbIsU.js → doc-hash-jFpDPUqs.js} +1 -1
- package/dist/public/assets/{index-BKegc_3x.js → index-0xbjXx3I.js} +80 -82
- package/dist/public/assets/index-Bqn5d8WE.css +1 -0
- package/dist/public/assets/{target-navigation-intent-BfcE2s63.js → target-navigation-intent-BPY806ll.js} +1 -1
- package/dist/public/assets/{toggle-group-COSNGuCO.js → toggle-group-BGoLfHsT.js} +1 -1
- package/dist/public/assets/{tooltip-DFekRukm.js → tooltip-Dhv3LD_K.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-C-JtGXH8.js → typing-burst-detector-D4tGrEiq.js} +1 -1
- package/dist/public/index.html +9 -9
- package/dist/{repair-launch-json-Dw-0FgfH.mjs → repair-launch-json-DoB3dIG7.mjs} +2 -2
- package/dist/{repair-mcp-configs-D86xNDK0.mjs → repair-mcp-configs-BubjW1yM.mjs} +2 -2
- package/dist/{src-B_TnT2KV.mjs → src-DBUOwpGL.mjs} +2 -2
- package/dist/{start-BuIA95gx.mjs → start-CDTv8Qeb.mjs} +2 -2
- package/dist/start-PtjY_X63.mjs +1 -0
- package/package.json +1 -1
- package/dist/constants-C43VVdXn.mjs +0 -2
- package/dist/dist-_ap0w9P-.mjs +0 -1
- package/dist/init-XiA4tbUC.mjs +0 -1
- package/dist/loader-j0RyR9NU.mjs +0 -1
- package/dist/preview-CkUzBitq.mjs +0 -1
- package/dist/public/assets/index-jjg4I_Nd.css +0 -1
- package/dist/start-pfpKloex.mjs +0 -1
|
@@ -3,7 +3,7 @@ name: open-knowledge
|
|
|
3
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 opt-in nested .ok/ frontmatter + templates, and the anti-pattern table."
|
|
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.5.0-beta.
|
|
6
|
+
version: "0.5.0-beta.33"
|
|
7
7
|
author: "Inkeep"
|
|
8
8
|
repository: "https://github.com/inkeep/open-knowledge"
|
|
9
9
|
---
|
|
@@ -197,7 +197,7 @@ Pre-write checklist:
|
|
|
197
197
|
0. **First-contact check.** If `list_documents(<folder>)` returns empty `frontmatter_defaults` AND empty `templates_available` AND `exec("ls -A")` shows substantial content elsewhere, the project hasn't been onboarded — STOP and invoke `discover` (see Workflow tools table) before writing. Skip this check on subsequent writes in the same session once you've confirmed the project is configured.
|
|
198
198
|
|
|
199
199
|
1. **Read `frontmatter_defaults`** — the merged folder defaults (title shape, description, tags) that any new doc here will inherit. Surfaces nested `<folder>/.ok/frontmatter.yml` cascade walked root → leaf, leaf wins per-key. **Don't redeclare** keys the cascade already provides — let inheritance carry them. Override per-file only when the file truly differs.
|
|
200
|
-
2. **Read `templates_available`** — the menu of starter shapes for `write_document({ template })`. Each entry has `name`, `title`, `description`, and `scope` (`local` / `inherited`
|
|
200
|
+
2. **Read `templates_available`** — the menu of starter shapes for `write_document({ template })`. Each entry has `name`, `title`, `description`, and `scope` (`local` / `inherited`). If an entry matches, prefer it over free-form markdown — see "When to use a template" and "When to create a template" below.
|
|
201
201
|
3. **Read recent siblings** — `list_documents` enrichment shows recent edits and per-child frontmatter. New docs should match the shape of existing ones (filename pattern, frontmatter keys, body structure). Inconsistency is the enemy.
|
|
202
202
|
4. **Confirm content scope** — `content.dir` (in `.ok/config.yml`) 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.
|
|
203
203
|
|
|
@@ -320,7 +320,7 @@ write_document({
|
|
|
320
320
|
// calls — those are author-fill markers, not server-side substitutions.
|
|
321
321
|
```
|
|
322
322
|
|
|
323
|
-
Templates resolve via leaf → root walk-up at the target's parent folder, with closest-wins on filename collision
|
|
323
|
+
Templates resolve via leaf → root walk-up at the target's parent folder, with closest-wins on filename collision. The `scope` field has two values: `"local"` (template lives in this folder's `.ok/templates/`) and `"inherited"` (template lives in an ancestor's). Templates are always project-scoped — they live alongside the docs that consume them, so a clone of the project carries the same template menu on any machine. Descendant templates do NOT appear in the parent's array — they surface only inside `subfolders[].templates_available` when `list_documents` is called with `depth > 1`.
|
|
324
324
|
|
|
325
325
|
**`template` and `markdown` are mutually exclusive** (D21). Passing both errors with `TEMPLATE_AND_MARKDOWN_BOTH_SET`. The template body becomes the new doc's body verbatim (after `{{date}}`/`{{user}}` substitution); fill `{shape}`-style placeholders via subsequent `edit_document` calls.
|
|
326
326
|
|