Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
main reset: post-stable v0.22.0 (#2307)
inkeep-internal-ci[bot]98fd0e5aaa9d
diff --git a/.changeset/dark-humans-jump.md b/.changeset/dark-humans-jump.mddeleted file mode 100644index 0b7d6aaed..000000000--- a/.changeset/dark-humans-jump.md+++ /dev/null@@ -1,6 +0,0 @@-----"@inkeep/open-knowledge-server": patch-"@inkeep/open-knowledge": patch------Fix image and file paste/drop in the packaged desktop app, which failed with an "internal server error" toast (the upload endpoint returned HTTP 500).diff --git a/.changeset/dev-suppress-update-notices.md b/.changeset/dev-suppress-update-notices.mddeleted file mode 100644index a76be285a..000000000--- a/.changeset/dev-suppress-update-notices.md+++ /dev/null@@ -1,5 +0,0 @@-----"@inkeep/open-knowledge-desktop": patch------Stop showing auto-update notices in unpackaged dev builds. A dev desktop app never downloads or installs updates, so the boot-time "Update to X didn't install" banner, the staged-update relaunch banner, and the "what's new" toast were all noise driven by stale local state. They're now gated on the same signal that gates update checks (`app.isPackaged`), with the `OK_UPDATER_FORCE_DEV` escape hatch preserved for the manual update smoke.diff --git a/.changeset/documents-list-single-flight.md b/.changeset/documents-list-single-flight.mddeleted file mode 100644index 89413a6b1..000000000--- a/.changeset/documents-list-single-flight.md+++ /dev/null@@ -1,5 +0,0 @@-----"@inkeep/open-knowledge": patch------Coalesce the redundant `GET /api/documents` requests fired on load. Several consumers independently fetch the same full listing — the page-list context (asset/folder/file paths), the empty-editor state (entry count for the onboarding branch), and the wiki-link suggestion source (referenced assets) — so on boot and on every file-change push the server ran the same `ready`-gated disk walk two or three times concurrently. These now share a single in-flight request and one JSON parse. It is single-flight, not a result cache: the slot is released as soon as the request settles, so consumers that refetch on a file-change push still get current data. The sidebar file tree keeps its own `depth=1` lazy fetch (a different URL) unchanged.diff --git a/.changeset/filetree-incremental-paint.md b/.changeset/filetree-incremental-paint.mddeleted file mode 100644index 658b8c0a8..000000000--- a/.changeset/filetree-incremental-paint.md+++ /dev/null@@ -1,5 +0,0 @@-----"@inkeep/open-knowledge": patch------Paint the sidebar file tree incrementally as the directory listing streams in, instead of withholding the whole level until the walk finishes. The `GET /api/documents` NDJSON walk is now applied to the tree per network chunk (additively, so folders not yet streamed are never pruned mid-stream), and the loading skeleton clears on the first batch. The authoritative prune + optimistic-merge reconcile still runs once as a single splice when the stream completes, so the final tree is unchanged. On a knowledge base with a large top-level directory the first rows appear sooner rather than after the entire level is enumerated.diff --git a/.changeset/obsidian-empty-tags-frontmatter.md b/.changeset/obsidian-empty-tags-frontmatter.mddeleted file mode 100644index 988c9b5ee..000000000--- a/.changeset/obsidian-empty-tags-frontmatter.md+++ /dev/null@@ -1,6 +0,0 @@-----"@inkeep/open-knowledge-core": patch-"@inkeep/open-knowledge": patch------Fix the Properties panel rejecting Obsidian-style empty `tags:` / `aliases:` frontmatter. Files that use Obsidian's default "no tags" shape (an empty `tags:` list whose only item is a blank `- `, or a bare `tags:` with no value) parse to YAML `null`, which the read schema previously rejected for the whole frontmatter block — so the panel showed nothing (or an error banner) and refused every edit, even to the file's other valid properties. The read path now coerces these empty shapes to empty values (`tags:\n- ` reads as an empty list, a bare `tags:` as empty text), so the panel reads and edits these files normally. Files are not rewritten on disk until you actually edit a property.diff --git a/.changeset/pages-list-from-index-cache.md b/.changeset/pages-list-from-index-cache.mddeleted file mode 100644index ab7f2a8da..000000000--- a/.changeset/pages-list-from-index-cache.md+++ /dev/null@@ -1,5 +0,0 @@-----"@inkeep/open-knowledge": patch------Speed up project load for knowledge bases with many files. `GET /api/pages` previously re-read and re-parsed every markdown file from disk on every request — including the redundant full-directory pass that ran concurrently with the watcher's seed walk on cold load, and a fresh full re-read on every window focus / file-change refresh. Page titles and icons are now cached on the in-memory file index (derived from the content the watcher already reads for its change-detection hash, so no extra disk reads), and `/api/pages` serves them straight from memory. Titles/icons stay current through create, edit, and rename events. Behavior is unchanged; only the cost of listing pages drops from O(files) disk reads per request to an in-memory scan.diff --git a/.changeset/pre.json b/.changeset/pre.jsonindex 3f24f3924..3dd5bd57f 100644--- a/.changeset/pre.json+++ b/.changeset/pre.json@@ -2,15 +2,15 @@"mode": "pre","tag": "beta","initialVersions": {- "@inkeep/open-knowledge-docs": "0.0.6",- "@inkeep/open-knowledge-app": "0.21.0",- "@inkeep/open-knowledge": "0.21.0",- "@inkeep/open-knowledge-core": "0.21.0",- "@inkeep/open-knowledge-desktop": "0.21.0",- "@inkeep/md-conformance": "0.0.14",+ "@inkeep/open-knowledge-docs": "0.0.7",+ "@inkeep/open-knowledge-app": "0.22.0",+ "@inkeep/open-knowledge": "0.22.0",+ "@inkeep/open-knowledge-core": "0.22.0",+ "@inkeep/open-knowledge-desktop": "0.22.0",+ "@inkeep/md-conformance": "0.0.15","@inkeep/open-knowledge-native-config": "0.0.0","@inkeep/open-knowledge-plugin": "0.3.1",- "@inkeep/open-knowledge-server": "0.21.0"+ "@inkeep/open-knowledge-server": "0.22.0"},"changesets": []}diff --git a/.changeset/subscribe-product-updates.md b/.changeset/subscribe-product-updates.mddeleted file mode 100644index 2bd330544..000000000--- a/.changeset/subscribe-product-updates.md+++ /dev/null@@ -1,5 +0,0 @@-----"@inkeep/open-knowledge": minor------Add an in-app product-updates subscription. The Resources menu is regrouped into Resources, Community, and Product updates, and a new Subscribe action opens a reusable email form (shadcn + react-hook-form) that registers the address through the `/api/subscribe` endpoint. The GitHub row now shows the repo's live star count.diff --git a/.changeset/terminal-launch-no-shell-history.md b/.changeset/terminal-launch-no-shell-history.mddeleted file mode 100644index 26619e674..000000000--- a/.changeset/terminal-launch-no-shell-history.md+++ /dev/null@@ -1,5 +0,0 @@-----"@inkeep/open-knowledge": patch------Desktop: launching an agent CLI from the docked terminal ("Open in Claude/Codex/Cursor/OpenCode") no longer pollutes your shell history. The launch command used to be typed into an interactive shell, so every launch — prompt and all — was recorded in `~/.zsh_history`, cluttering `↑`/`Ctrl-R` and writing document content in plaintext outside `.ok/`. The launch is now baked into the tab's shell spawn (`$SHELL -l -i -c '<cmd>; exec $SHELL -l -i'`): the command runs without going through the line editor (so it is never recorded), PATH is unchanged (the same login-interactive shell is used), and the tab drops into a fresh interactive shell when the agent exits — so your own later commands still record normally. Applies to all four CLIs.diff --git a/bun.lock b/bun.lockindex fe87f942d..a395d512f 100644--- a/bun.lock+++ b/bun.lock@@ -19,7 +19,7 @@},"docs": {"name": "@inkeep/open-knowledge-docs",- "version": "0.0.6",+ "version": "0.0.7","dependencies": {"@codemirror/commands": "^6.10.3","@codemirror/lang-markdown": "^6.5.0",@@ -72,7 +72,7 @@},"packages/app": {"name": "@inkeep/open-knowledge-app",- "version": "0.21.0",+ "version": "0.22.0","dependencies": {"@codemirror/autocomplete": "^6.20.1","@codemirror/commands": "^6.10.3",@@ -216,7 +216,7 @@},"packages/cli": {"name": "@inkeep/open-knowledge",- "version": "0.21.0",+ "version": "0.22.0","bin": {"open-knowledge": "dist/cli.mjs","ok": "dist/cli.mjs",@@ -260,7 +260,7 @@},"packages/core": {"name": "@inkeep/open-knowledge-core",- "version": "0.21.0",+ "version": "0.22.0","dependencies": {"@handlewithcare/remark-prosemirror": "0.1.5","@opentelemetry/api": "^1.9.0",@@ -336,7 +336,7 @@},"packages/desktop": {"name": "@inkeep/open-knowledge-desktop",- "version": "0.21.0",+ "version": "0.22.0","dependencies": {"@inkeep/open-knowledge": "workspace:*","@inkeep/open-knowledge-core": "workspace:*",@@ -378,7 +378,7 @@},"packages/server": {"name": "@inkeep/open-knowledge-server",- "version": "0.21.0",+ "version": "0.22.0","dependencies": {"@hocuspocus/server": "4.0.0-rc.1","@inkeep/open-knowledge-core": "workspace:*",diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.mdindex 3e1155a07..422667e68 100644--- a/docs/CHANGELOG.md+++ b/docs/CHANGELOG.md@@ -1,5 +1,12 @@# @inkeep/open-knowledge-docs+## 0.0.7++### Patch Changes++- Updated dependencies [372b7b9]+ - @inkeep/[email protected]+## 0.0.6### Patch Changesdiff --git a/docs/package.json b/docs/package.jsonindex 6952a7be0..921ef3013 100644--- a/docs/package.json+++ b/docs/package.json@@ -1,6 +1,6 @@{"name": "@inkeep/open-knowledge-docs",- "version": "0.0.6",+ "version": "0.0.7","license": "GPL-3.0-or-later","private": true,"packageManager": "[email protected]",diff --git a/packages/app/package.json b/packages/app/package.jsonindex a3f2a14fd..2b769ffdd 100644--- a/packages/app/package.json+++ b/packages/app/package.json@@ -1,6 +1,6 @@{"name": "@inkeep/open-knowledge-app",- "version": "0.21.0",+ "version": "0.22.0","license": "GPL-3.0-or-later","private": true,"type": "module",diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 78ec5442d..d152b5e40 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@inkeep/open-knowledge",- "version": "0.21.0",+ "version": "0.22.0","license": "GPL-3.0-or-later","private": false,"type": "module",diff --git a/packages/core/package.json b/packages/core/package.jsonindex 7fa792943..418476f7b 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -1,6 +1,6 @@{"name": "@inkeep/open-knowledge-core",- "version": "0.21.0",+ "version": "0.22.0","license": "GPL-3.0-or-later","private": true,"type": "module",diff --git a/packages/desktop/package.json b/packages/desktop/package.jsonindex e1803681f..351ea727c 100644--- a/packages/desktop/package.json+++ b/packages/desktop/package.json@@ -1,7 +1,7 @@{"name": "@inkeep/open-knowledge-desktop","productName": "OpenKnowledge",- "version": "0.21.0",+ "version": "0.22.0","license": "GPL-3.0-or-later","private": true,"type": "module",diff --git a/packages/server/assets/skills/discovery/SKILL.md b/packages/server/assets/skills/discovery/SKILL.mdindex d2cd6c6ec..ab3e41207 100644--- a/packages/server/assets/skills/discovery/SKILL.md+++ b/packages/server/assets/skills/discovery/SKILL.md@@ -3,7 +3,7 @@ name: open-knowledge-discoverydescription: "Read when the user asks what OpenKnowledge is, wants to install it on a repository, wants to share an OpenKnowledge project with collaborators, or asks how `ok init` / `ok cowork` / OK Desktop set up a project. Do NOT load to perform OpenKnowledge 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."compatibility: "Any agent host — no MCP server required. Pure discovery + install guidance."metadata:- version: "0.21.0"+ version: "0.22.0"author: "Inkeep"repository: "https://github.com/inkeep/open-knowledge"---diff --git a/packages/server/assets/skills/project/SKILL.md b/packages/server/assets/skills/project/SKILL.mdindex d77cb5c72..a3a2606ed 100644--- a/packages/server/assets/skills/project/SKILL.md+++ b/packages/server/assets/skills/project/SKILL.md@@ -3,7 +3,7 @@ name: open-knowledgedescription: "Authoritative agent-runtime contract for working inside an OpenKnowledge project — a markdown-CRDT knowledge base exposed over MCP. Use whenever reading, listing, searching, or editing any `.md` or `.mdx` file in the project, and before any `mcp__open-knowledge__*` tool call (`exec`, `search`, `write`, `edit`, and the rest). Installed by `ok init`, so its presence means this is an OpenKnowledge project and it governs every markdown file here. Covers the read/write tool surface, grounding and linking rules, folder/template conventions, the live browser preview, and the rule that OK's MCP tools — never native file tools — handle in-scope markdown."compatibility: "Claude Code, Claude Desktop, Claude Cowork, Claude.ai web. Requires OpenKnowledge MCP server + code execution."metadata:- version: "0.21.0"+ version: "0.22.0"author: "Inkeep"repository: "https://github.com/inkeep/open-knowledge"---diff --git a/packages/server/assets/skills/write-skill/SKILL.md b/packages/server/assets/skills/write-skill/SKILL.mdindex df9f0de14..8162f07c8 100644--- a/packages/server/assets/skills/write-skill/SKILL.md+++ b/packages/server/assets/skills/write-skill/SKILL.md@@ -3,7 +3,7 @@ name: open-knowledge-write-skilldescription: "Use when the user wants to create, author, write, or design a new Agent Skill (a SKILL.md) — for OpenKnowledge or for their editors — including requests like 'help me write a skill', 'make a skill that…', 'turn this workflow into a skill', or improving an existing skill's triggering and discipline. Also use when capturing reusable agent guidance that should live as an installable skill rather than a one-off prompt. Covers choosing scope (project vs global), the SKILL.md frontmatter contract, progressive-disclosure structure, evaluating the skill, and installing it into the user's editors."compatibility: "OpenKnowledge project recommended (uses the `write` / `edit` / `install` MCP verbs). Authoring + validation are pure file ops; live preview + eval want a running server (`ok start`)."metadata:- version: "0.21.0"+ version: "0.22.0"author: "Inkeep"repository: "https://github.com/inkeep/open-knowledge"---diff --git a/packages/server/package.json b/packages/server/package.jsonindex f380eac6c..f241af834 100644--- a/packages/server/package.json+++ b/packages/server/package.json@@ -1,6 +1,6 @@{"name": "@inkeep/open-knowledge-server",- "version": "0.21.0",+ "version": "0.22.0","license": "GPL-3.0-or-later","private": true,"type": "module",