kontexta 4.7.1 → 5.0.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.
- package/bundle/standalone/CHANGELOG.md +29 -0
- package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
- package/bundle/standalone/apps/web/.next/app-build-manifest.json +54 -54
- package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +13 -13
- package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
- package/bundle/standalone/apps/web/.next/prerender-manifest.json +13 -13
- package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -1
- package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/about/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/clip/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/health/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/profile/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/search/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/welcome/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/calendar/page.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/login/page.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/page.js +2 -2
- package/bundle/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +1 -1
- package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +13 -13
- package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -1
- package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -1
- package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/page-98057182511ba7e4.js +1 -0
- package/bundle/standalone/apps/web/package.json +5 -5
- package/bundle/standalone/apps/web/src/lib/mcp-tools.json +233 -542
- package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +22 -35
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +448 -471
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +1 -27
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/package.json +2 -2
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +22 -35
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.js +16 -4
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js +3 -14
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js +2 -13
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js +64 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js +2 -17
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/package.json +2 -2
- package/bundle/standalone/node_modules/kxta-publish/package.json +3 -3
- package/bundle/standalone/package.json +2 -2
- package/package.json +2 -2
- package/bundle/standalone/apps/web/.next/static/chunks/app/page-eccc7438c998fcce.js +0 -1
- /package/bundle/standalone/apps/web/.next/static/{DWDlM7S8dTnMlrhKW9K_X → hUyNKiBOk3HaC0S0gE_N8}/_buildManifest.js +0 -0
- /package/bundle/standalone/apps/web/.next/static/{DWDlM7S8dTnMlrhKW9K_X → hUyNKiBOk3HaC0S0gE_N8}/_ssgManifest.js +0 -0
|
@@ -21,17 +21,17 @@ This project is registered with kontexta. Honor these rules to keep the index, h
|
|
|
21
21
|
|
|
22
22
|
**Print the session welcome as your first message.** On the very first turn of any new session, call `admin.refresh_session_context` and print a brief greeting to the user based on what it returns — today's date, their name from the profile, upcoming events / conflicts if any, a nudge if the profile is empty or stale. 1–3 lines, not a report. Two reasons: (1) if the client lazy-loads MCP servers, this is what actually triggers `initialize`; (2) the user sees kontexta is connected and knows what context you have. Skip if the user's first message is already a work request — do the work.
|
|
23
23
|
|
|
24
|
-
**Search before reading.** Use `files.search
|
|
24
|
+
**Search before reading.** Use `files.search` (pass `include_bodies: true` for token-budgeted bodies) or `files.regex_search` to find context first. Skipping straight to `files.read` on a guessed path wastes tokens and often misses the right file.
|
|
25
25
|
|
|
26
|
-
**All KB writes go through kontexta.** Use `files.create` / `files.update`
|
|
26
|
+
**All KB writes go through kontexta.** Use `files.create` / `files.update` (pass `section` for a surgical single-heading edit) / `journal.write`. **Never** edit a KB file with raw filesystem tools (Edit/Write/cat) — the watcher and FTS index will diverge until `projects.refresh_index` runs, and subsequent searches will return stale results.
|
|
27
27
|
|
|
28
|
-
**Batch reads. Don't loop `files.read`.** Need ≥2 files? Call `files.
|
|
28
|
+
**Batch reads. Don't loop `files.read`.** Need ≥2 files? Call `files.read` with `ids: [...]` (one round-trip, up to 200 IDs) or `files.search` with `include_bodies: true` (token-budgeted blob). Looping single-ID `files.read` calls wastes round-trips and inflates response overhead.
|
|
29
29
|
|
|
30
30
|
**Address `journal.suggested_action` before the next tool call.** Many tool responses include a `journal` envelope. If `journal.suggested_action` is set (e.g., `"journal.distill"`), call that tool before issuing your next tool. To dismiss for the rest of the session, pass `journal_acknowledge: true` on your next tool call.
|
|
31
31
|
|
|
32
|
-
**Use `journal.note
|
|
32
|
+
**Use `journal.write({kind: "note", text, tags})` for decisions and abandonments.** When you make a non-obvious call, try something that doesn't work, or capture a workaround, log it. Hands runs are auto-captured now.
|
|
33
33
|
|
|
34
|
-
**Use `journal.intent
|
|
34
|
+
**Use `journal.write({kind: "intent", summary})` when the user pivots.** One short sentence so the distillation step knows the topic shifted.
|
|
35
35
|
|
|
36
36
|
**Strict mode awareness.** If a project sets `journal.mode = "strict"` in its `kontexta.json`, the MCP server returns a `JOURNAL_BACKLOG` error on read tools (search/read_*/list_*) when undistilled events exist. The error includes `next_action: "journal.distill"`. Either run `journal.distill` first, OR pass `journal_bypass: true` on the read call to override (logged for audit).
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@ This project is registered with kontexta. Honor these rules to keep the index, h
|
|
|
41
41
|
|
|
42
42
|
**Tag new KB files at creation time.** Pass `tags` on `files.create`, or call `tags.add` immediately after. Untagged files are recoverable but invisible to `files.find_related`.
|
|
43
43
|
|
|
44
|
-
**`admin.whats_new` early. `admin.commit_backup` late.** Run
|
|
44
|
+
**`admin.overview({mode: "whats_new"})` early. `admin.commit_backup` late.** Run it at session start if you've been away — it returns files added/changed since a cutoff. End the session with `admin.commit_backup` if you mutated KB files and the project has a remote.
|
|
45
45
|
|
|
46
46
|
**Use `.mmd` for diagrams, not fenced code in `.md`.** When creating an architecture / flow / sequence diagram, call `files.create` with `format: "mmd"` and put the raw mermaid source as the body (no ```` ```mermaid ```` fence). The web UI renders `.mmd` files as live diagrams with SVG/PNG export; mermaid embedded in markdown is just text. Default folder: `mermaid/` (or `<project>/mermaid/` for project-scoped diagrams).
|
|
47
47
|
|
|
@@ -52,7 +52,7 @@ KIs are curated, distilled KB files — the highest-signal context in the vault.
|
|
|
52
52
|
They save tokens and prevent redundant research when used correctly.
|
|
53
53
|
|
|
54
54
|
**Check KIs before independent research.** At the start of any task, run
|
|
55
|
-
`files.search`
|
|
55
|
+
`files.search` (optionally `include_bodies: true`) over the KB for the task topic. If a matching KI
|
|
56
56
|
exists, read it before writing code, designing architecture, or forming a plan.
|
|
57
57
|
Skipping this step is the single most common source of duplicated work.
|
|
58
58
|
|
|
@@ -62,17 +62,17 @@ cross-reference a KI's API patterns, file paths, and config values against the
|
|
|
62
62
|
|
|
63
63
|
**Close the loop: update the KI after significant changes.** When you ship a
|
|
64
64
|
meaningful change (new API, config schema change, architecture shift), update
|
|
65
|
-
the relevant KI via `files.update` or `
|
|
65
|
+
the relevant KI via `files.update` (whole file or, with `section`, one heading). If no KI exists
|
|
66
66
|
yet, create one with `files.create` under `knowledge/` with appropriate tags.
|
|
67
67
|
A KI that isn't maintained becomes noise — which is worse than no KI.
|
|
68
68
|
|
|
69
|
-
**Use `admin.whats_new` at session start after a gap.** If you haven't touched the
|
|
70
|
-
project in a while, run `
|
|
69
|
+
**Use `admin.overview({mode: "whats_new"})` at session start after a gap.** If you haven't touched the
|
|
70
|
+
project in a while, run it with `since: "7d"` to surface recently changed
|
|
71
71
|
files — including KIs updated by other agents or the user.
|
|
72
72
|
|
|
73
73
|
### Content class
|
|
74
74
|
|
|
75
|
-
`files.create`
|
|
75
|
+
`files.create` requires `kind` for KB writes (single file or `files` array, both):
|
|
76
76
|
- **`dictionary`** = source of truth (mappings, glossaries, runbooks, PR templates, architecture docs)
|
|
77
77
|
- **`note`** = snapshot (meeting notes, PR findings, sprint reviews, post-mortems, working thoughts)
|
|
78
78
|
|
|
@@ -86,10 +86,8 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
86
86
|
|
|
87
87
|
| Tool | When | Not when | Use instead |
|
|
88
88
|
|---|---|---|---|
|
|
89
|
-
| `files.search` | Natural-language keyword across KB (FTS) | Substrings, URLs, code idents | `files.regex_search` |
|
|
90
|
-
| `files.regex_search` | Substrings, URLs, code identifiers | Natural-language queries | `files.search` |
|
|
91
|
-
| `files.grep` | Substring/regex within ONE known file | Searching across files | `files.regex_search` |
|
|
92
|
-
| `files.bundle_search` | Need search hits + bodies in a token budget | Only need IDs | `files.search` |
|
|
89
|
+
| `files.search` | Natural-language keyword across KB (FTS); pass `include_bodies: true` for a token-budgeted bundle of hits + bodies | Substrings, URLs, code idents | `files.regex_search` |
|
|
90
|
+
| `files.regex_search` | Substrings, URLs, code identifiers across files; pass `file_id` to scan just one known file | Natural-language queries | `files.search` |
|
|
93
91
|
| `files.find_related` | Discover siblings via tag overlap | Text content matching | `files.search` |
|
|
94
92
|
| `tags.suggest` | Propose tags for an existing file | Finding files by tag | `files.find_related` |
|
|
95
93
|
|
|
@@ -97,11 +95,7 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
97
95
|
|
|
98
96
|
| Tool | When | Not when | Use instead |
|
|
99
97
|
|---|---|---|---|
|
|
100
|
-
| `files.read` | One file
|
|
101
|
-
| `files.read_many` | 2–200 file IDs in one call | Only need a section of one file | `files.read_section` |
|
|
102
|
-
| `files.read_by_path` | Known absolute path, no ID handy | You already have the ID | `files.read` |
|
|
103
|
-
| `files.read_lines` | Known line range | Guessing line numbers | `files.read_section` |
|
|
104
|
-
| `files.read_section` | Known heading | Need the whole file | `files.read` |
|
|
98
|
+
| `files.read` | One file (`id` or `path`), a batch (`ids`), or a partial read (`section` or `lines`) | Only metadata needed | `files.describe` |
|
|
105
99
|
| `files.read_outline` | Triaging an unfamiliar file's structure | Structure already known | `files.describe` |
|
|
106
100
|
| `files.describe` | Metadata only (size, tags, mtime) | Need content | `files.read` |
|
|
107
101
|
| `admin.get_profile` | Read user profile/context at session start | Reading normal files | `files.read` |
|
|
@@ -110,12 +104,9 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
110
104
|
|
|
111
105
|
| Tool | When | Not when | Use instead |
|
|
112
106
|
|---|---|---|---|
|
|
113
|
-
| `files.create` | One new file (md, mmd, or html via `format`) |
|
|
114
|
-
| `files.
|
|
115
|
-
| `files.
|
|
116
|
-
| `files.update_section` | Surgical edit at a known heading | Replacing the whole file | `files.update` |
|
|
117
|
-
| `files.delete` | One file | Bulk delete | `files.delete_many` |
|
|
118
|
-
| `files.delete_many` | 2+ files in one call | Single file | `files.delete` |
|
|
107
|
+
| `files.create` | One new file, or a `files` array for bulk-creating ≥2 (md, mmd, or html via `format`) | File already exists | `files.update` |
|
|
108
|
+
| `files.update` | Replacing the whole body, or a surgical edit at a known heading via `section` | File doesn't exist yet | `files.create` |
|
|
109
|
+
| `files.delete` | One file, or an `ids` array for bulk delete | Want to keep the file but hide it | `tags.remove` / `tags.set_favorite` |
|
|
119
110
|
| `files.move` | Rename or relocate a file | File content needs changing | `files.update` |
|
|
120
111
|
|
|
121
112
|
#### Organize
|
|
@@ -127,17 +118,15 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
127
118
|
| `tags.list` | Enumerate all tags in the vault | Want files for a given tag | `files.find_related` |
|
|
128
119
|
| `tags.set_favorite` | Pin / unpin a file | Semantic categorization | `tags.add` |
|
|
129
120
|
| `tags.search` | Bulk-tag every hit from a search | Tagging a single file | `tags.add` |
|
|
130
|
-
| `journal.
|
|
131
|
-
| `journal.
|
|
132
|
-
| `journal.append` | Append timestamped text to today's daily KB journal file | Structured notes | `journal.note` |
|
|
133
|
-
| `journal.distill` | Summarize accumulated journal events | Individual events | `journal.note` |
|
|
121
|
+
| `journal.write` | Log an event: `kind: "note"` (decision/workaround), `kind: "intent"` (topic pivot), or `kind: "append"` (timestamped daily journal entry) | Summarizing accumulated events | `journal.distill` |
|
|
122
|
+
| `journal.distill` | Summarize accumulated journal events | Individual events | `journal.write` |
|
|
134
123
|
| `journal.status` | Check backlog size and high-water mark before distilling | Need the raw events themselves | `journal.distill` |
|
|
135
124
|
| `journal.commit_upgrades` | Mark journal entries upgraded after a subagent rewrites them | Running the initial distillation | `journal.distill` |
|
|
136
125
|
| `journal.housekeep` | Prune old raw journal files and archive cold tasks | Need to distill new events first | `journal.distill` |
|
|
137
126
|
| `resources.clip_url` | Capture a web URL into the KB | Saving a local file | `files.create` |
|
|
138
127
|
| `folders.list` | Enumerate folders in the project | Finding files | `files.list` |
|
|
139
128
|
| `folders.create` | Create a new (possibly nested) folder | Files don't need explicit folders | |
|
|
140
|
-
| `folders.delete` | Remove an empty folder | Folder still has files | `files.
|
|
129
|
+
| `folders.delete` | Remove an empty folder | Folder still has files | `files.delete` (bulk) first |
|
|
141
130
|
|
|
142
131
|
#### Reports
|
|
143
132
|
|
|
@@ -166,8 +155,7 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
166
155
|
| `projects.list` | Enumerate registered projects | Files within one project | `files.list` |
|
|
167
156
|
| `files.list` | Files in a project (filterable) | Full-text content matters | `files.search` |
|
|
168
157
|
| `projects.map` | Folder/file tree for a project | Flat file list | `files.list` |
|
|
169
|
-
| `admin.
|
|
170
|
-
| `admin.whats_new` | Files added/changed since a cutoff | Full-text search | `files.search` |
|
|
158
|
+
| `admin.overview` | `mode: "stats"` for counts/health, `mode: "whats_new"` for files changed since a cutoff | Per-file detail or full-text search | `files.describe` / `files.search` |
|
|
171
159
|
| `admin.refresh_session_context` | Re-fetch profile + upcoming events after mid-session edits | Reading a single profile field | `admin.get_profile` |
|
|
172
160
|
|
|
173
161
|
#### Calendar
|
|
@@ -190,8 +178,7 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
190
178
|
|
|
191
179
|
| Tool | When | Not when | Use instead |
|
|
192
180
|
|---|---|---|---|
|
|
193
|
-
| `hands.list` | Enumerate Hands tools
|
|
194
|
-
| `hands.describe_schema` | Explain the `hands.yaml` format | Listing tools | `hands.list` |
|
|
181
|
+
| `hands.list` | Enumerate Hands tools; pass `schema: true` for the `kontexta.json` authoring reference | Neither list nor schema needed | |
|
|
195
182
|
| `hands.confirm` | Approve a Hands token within 60s of issue | Normal MCP tool calls | |
|
|
196
183
|
| `hands.reload` | Re-read `hands.yaml` after editing it | First-time use (auto-loads) | |
|
|
197
184
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/db/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAoCtC,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,YAAY,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAC;IAEvD,IAAI,2BAA2B,EAAE,OAAO,GAAG,SAAS,CAAC;IAErD,IAAI,0BAA0B,EAAE,MAAM,GAAG,SAAS,CAAC;CACpD;AAID;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CA+ChE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,QAAQ,CAAC,QAAQ,CAM/C;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CAapC;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,SAAS,GAAE,MAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAalF;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/db/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAoCtC,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,YAAY,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAC;IAEvD,IAAI,2BAA2B,EAAE,OAAO,GAAG,SAAS,CAAC;IAErD,IAAI,0BAA0B,EAAE,MAAM,GAAG,SAAS,CAAC;CACpD;AAID;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CA+ChE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,QAAQ,CAAC,QAAQ,CAM/C;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CAapC;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,SAAS,GAAE,MAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAalF;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CA8DpC"}
|
|
@@ -172,10 +172,22 @@ export function runMigrations() {
|
|
|
172
172
|
}
|
|
173
173
|
console.error(`[Database] Running migration: ${file}`);
|
|
174
174
|
// Execute the migration in a transaction
|
|
175
|
-
|
|
176
|
-
db.
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
try {
|
|
176
|
+
db.transaction(() => {
|
|
177
|
+
db.exec(sql);
|
|
178
|
+
insertMigrationStmt.run(file);
|
|
179
|
+
})();
|
|
180
|
+
}
|
|
181
|
+
catch (e) {
|
|
182
|
+
// SQLite has no ADD COLUMN IF NOT EXISTS, so if this migration's column already exists (e.g. its _migrations row was lost) it would crash forever — record it applied instead; idempotent later migrations (e.g. 009) still converge any missed backfill.
|
|
183
|
+
if (typeof e?.message === "string" && /duplicate column name/i.test(e.message)) {
|
|
184
|
+
console.error(`[Database] Migration ${file} skipped its ALTER TABLE (column already exists) — recording as applied. ${e.message}`);
|
|
185
|
+
insertMigrationStmt.run(file);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
throw e;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
179
191
|
}
|
|
180
192
|
}
|
|
181
193
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/db/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,gEAAgE;AAChE,yDAAyD;AACzD,+EAA+E;AAC/E,gEAAgE;AAChE,SAAS,oBAAoB;IAC3B,MAAM,UAAU,GAAG;QACjB,6FAA6F;QAC7F,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC;QAClE,uEAAuE;QACvE,IAAI,CA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,CAAC;gBAChC,CAAC;qBAAM,CAAC;oBACN,MAAM,CAAC,CAAC;gBACV,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exploration.d.ts","sourceRoot":"","sources":["../../../src/journal/patterns/exploration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"exploration.d.ts","sourceRoot":"","sources":["../../../src/journal/patterns/exploration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,eAAO,MAAM,mBAAmB,EAAE,eAiBjC,CAAC"}
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
// dot-notation
|
|
3
|
-
"files.search", "files.regex_search", "files.grep", "files.bundle_search",
|
|
4
|
-
"files.read", "files.read_many", "files.read_section", "files.read_outline", "files.describe",
|
|
5
|
-
// legacy
|
|
6
|
-
"search", "regex_search", "grep_in_file", "bundle_search",
|
|
7
|
-
"read_file", "read_files", "read_section", "read_file_outline", "describe_file",
|
|
8
|
-
]);
|
|
9
|
-
const WRITE_TOOLS_PREFIX = [
|
|
10
|
-
"update_", "create_", "delete_", "move_",
|
|
11
|
-
"files.update", "files.create", "files.delete", "files.move"
|
|
12
|
-
];
|
|
1
|
+
import { READ_ONLY_TOOL_NAMES, isWriteToolName } from "./tool-classes.js";
|
|
13
2
|
export const explorationDetector = {
|
|
14
3
|
name: "exploration",
|
|
15
4
|
detect(events) {
|
|
16
5
|
const calls = events.filter((e) => e.event === "tool_call" && e.tool);
|
|
17
6
|
if (calls.length < 5)
|
|
18
7
|
return null;
|
|
19
|
-
const reads = calls.filter((e) =>
|
|
20
|
-
const writes = calls.filter((e) =>
|
|
8
|
+
const reads = calls.filter((e) => READ_ONLY_TOOL_NAMES.has(e.tool));
|
|
9
|
+
const writes = calls.filter((e) => isWriteToolName(e.tool));
|
|
21
10
|
if (reads.length < 5 || writes.length > 0)
|
|
22
11
|
return null;
|
|
23
12
|
const filesTouched = new Set();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exploration.js","sourceRoot":"","sources":["../../../src/journal/patterns/exploration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exploration.js","sourceRoot":"","sources":["../../../src/journal/patterns/exploration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE1E,MAAM,CAAC,MAAM,mBAAmB,GAAoB;IAClD,IAAI,EAAE,aAAa;IACnB,MAAM,CAAC,MAAM;QACX,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QACtE,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAClC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,IAAK,CAAC,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,IAAK,CAAC,CAAC,CAAC;QAC7D,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QACvD,MAAM,YAAY,GAAG,IAAI,GAAG,EAAU,CAAC;QACvC,KAAK,MAAM,CAAC,IAAI,KAAK;YAAE,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,IAAI,EAAE;gBAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC5E,OAAO;YACL,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,wBAAwB,KAAK,CAAC,MAAM,sBAAsB,YAAY,CAAC,IAAI,QAAQ;YAC5F,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,uBAAuB,EAAE,qBAAqB,CAAC;YACxE,IAAI,EAAE,CAAC,aAAa,EAAE,eAAe,CAAC;SACvC,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-only-investigation.d.ts","sourceRoot":"","sources":["../../../src/journal/patterns/read-only-investigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"read-only-investigation.d.ts","sourceRoot":"","sources":["../../../src/journal/patterns/read-only-investigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,eAAO,MAAM,6BAA6B,EAAE,eAc3C,CAAC"}
|
package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
// dot-notation
|
|
3
|
-
"files.search", "files.regex_search", "files.grep", "files.bundle_search",
|
|
4
|
-
"files.read", "files.read_many", "files.read_section", "files.read_outline",
|
|
5
|
-
"files.describe", "files.list", "folders.list", "projects.list",
|
|
6
|
-
"admin.stats", "admin.whats_new", "files.find_related", "projects.map",
|
|
7
|
-
// legacy
|
|
8
|
-
"search", "regex_search", "grep_in_file", "bundle_search",
|
|
9
|
-
"read_file", "read_files", "read_section", "read_file_outline",
|
|
10
|
-
"describe_file", "list_files", "list_folders", "list_projects",
|
|
11
|
-
"stats", "whats_new", "find_related", "project_map",
|
|
12
|
-
]);
|
|
1
|
+
import { READ_ONLY_TOOL_NAMES } from "./tool-classes.js";
|
|
13
2
|
export const readOnlyInvestigationDetector = {
|
|
14
3
|
name: "read-only-investigation",
|
|
15
4
|
detect(events) {
|
|
16
5
|
const calls = events.filter((e) => e.event === "tool_call" && e.tool);
|
|
17
6
|
if (calls.length < 3)
|
|
18
7
|
return null;
|
|
19
|
-
const allReadOnly = calls.every((e) =>
|
|
8
|
+
const allReadOnly = calls.every((e) => READ_ONLY_TOOL_NAMES.has(e.tool));
|
|
20
9
|
if (!allReadOnly)
|
|
21
10
|
return null;
|
|
22
11
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-only-investigation.js","sourceRoot":"","sources":["../../../src/journal/patterns/read-only-investigation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"read-only-investigation.js","sourceRoot":"","sources":["../../../src/journal/patterns/read-only-investigation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,CAAC,MAAM,6BAA6B,GAAoB;IAC5D,IAAI,EAAE,yBAAyB;IAC/B,MAAM,CAAC,MAAM;QACX,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QACtE,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAClC,MAAM,WAAW,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,IAAK,CAAC,CAAC,CAAC;QAC1E,IAAI,CAAC,WAAW;YAAE,OAAO,IAAI,CAAC;QAC9B,OAAO;YACL,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,4BAA4B,KAAK,CAAC,MAAM,wBAAwB;YACzE,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,uBAAuB,EAAE,uBAAuB,CAAC;YAC1E,IAAI,EAAE,CAAC,yBAAyB,EAAE,eAAe,CAAC;SACnD,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-classes.d.ts","sourceRoot":"","sources":["../../../src/journal/patterns/tool-classes.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB,aA4B/B,CAAC;AA4BH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGrD"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// Single source of truth for classifying MCP tool calls in journal pattern
|
|
2
|
+
// detectors. Kept in sync with apps/mcp/src/index.ts + calendar-tools.ts +
|
|
3
|
+
// scripts/build-smithery-bundle.mjs. Current (5.0.0+), pre-5.0.0 dotted, and
|
|
4
|
+
// legacy snake_case names are all listed so historical journal entries
|
|
5
|
+
// recorded under any prior naming scheme still classify.
|
|
6
|
+
export const READ_ONLY_TOOL_NAMES = new Set([
|
|
7
|
+
// dot-notation (current, 5.0.0+)
|
|
8
|
+
"admin.get_profile", "admin.overview", "admin.refresh_session_context",
|
|
9
|
+
"calendar.entities.list", "calendar.events.conflicts", "calendar.events.list", "calendar.export_ics",
|
|
10
|
+
"files.describe", "files.diff_against_disk", "files.find_related",
|
|
11
|
+
"files.get_diff", "files.get_history", "files.list",
|
|
12
|
+
"files.read", "files.read_outline", "files.regex_search", "files.search",
|
|
13
|
+
"folders.list",
|
|
14
|
+
"hands.list",
|
|
15
|
+
"journal.status",
|
|
16
|
+
"projects.list", "projects.map",
|
|
17
|
+
"resources.export_report", "resources.list_reports",
|
|
18
|
+
"tags.list", "tags.suggest",
|
|
19
|
+
// dot-notation (4.7.x, pre-consolidation — kept for historical journal entries)
|
|
20
|
+
"admin.stats", "admin.whats_new",
|
|
21
|
+
"files.bundle_search", "files.grep", "files.read_by_path", "files.read_lines",
|
|
22
|
+
"files.read_many", "files.read_section",
|
|
23
|
+
"hands.describe_schema",
|
|
24
|
+
// legacy (pre-4.7.1)
|
|
25
|
+
"search", "regex_search", "grep_in_file", "bundle_search",
|
|
26
|
+
"read_file", "read_files", "read_section", "read_file_outline", "read_file_lines", "read_file_by_path",
|
|
27
|
+
"describe_file", "list_files", "list_folders", "list_projects", "list_tags", "list_hands",
|
|
28
|
+
"stats", "whats_new", "find_related", "project_map",
|
|
29
|
+
"get_history", "get_diff", "diff_against_disk",
|
|
30
|
+
"describe_hands_schema", "get_profile", "refresh_session_context",
|
|
31
|
+
"calendar_list_entities", "calendar_list_events", "calendar_conflicts", "calendar_export_ics",
|
|
32
|
+
"list_report_resources", "export_report",
|
|
33
|
+
"suggest_tags", "journal_status",
|
|
34
|
+
]);
|
|
35
|
+
const WRITE_TOOL_NAMES = new Set([
|
|
36
|
+
// dot-notation (current, 5.0.0+)
|
|
37
|
+
"admin.commit_backup", "admin.onboard_agent", "admin.transfer_agent_context",
|
|
38
|
+
"calendar.entities.add", "calendar.entities.delete", "calendar.entities.link", "calendar.entities.update",
|
|
39
|
+
"calendar.events.add", "calendar.events.delete", "calendar.events.update",
|
|
40
|
+
"files.create", "files.delete", "files.move",
|
|
41
|
+
"files.restore", "files.update",
|
|
42
|
+
"folders.create", "folders.delete",
|
|
43
|
+
"hands.confirm", "hands.reload",
|
|
44
|
+
"journal.commit_upgrades", "journal.distill", "journal.housekeep", "journal.write",
|
|
45
|
+
"projects.refresh_index", "projects.register",
|
|
46
|
+
"resources.add_report", "resources.clip_url", "resources.delete_report",
|
|
47
|
+
"tags.add", "tags.remove", "tags.search", "tags.set_favorite",
|
|
48
|
+
// dot-notation (4.7.x, pre-consolidation — kept for historical journal entries)
|
|
49
|
+
"files.create_many", "files.delete_many", "files.update_section",
|
|
50
|
+
"journal.append", "journal.intent", "journal.note",
|
|
51
|
+
]);
|
|
52
|
+
const LEGACY_WRITE_PREFIXES = [
|
|
53
|
+
"update_", "create_", "delete_", "move_", "add_", "remove_", "restore_", "clip_",
|
|
54
|
+
"onboard_", "transfer_", "commit_", "housekeep_", "distill_", "register_",
|
|
55
|
+
"reload_", "refresh_index", "set_favorite", "tag_search_results",
|
|
56
|
+
"calendar_add_", "calendar_update_", "calendar_delete_", "calendar_link_",
|
|
57
|
+
"journal_note", "journal_intent", "journal_append",
|
|
58
|
+
];
|
|
59
|
+
export function isWriteToolName(name) {
|
|
60
|
+
if (WRITE_TOOL_NAMES.has(name))
|
|
61
|
+
return true;
|
|
62
|
+
return LEGACY_WRITE_PREFIXES.some((p) => name.startsWith(p));
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=tool-classes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-classes.js","sourceRoot":"","sources":["../../../src/journal/patterns/tool-classes.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,2EAA2E;AAC3E,6EAA6E;AAC7E,uEAAuE;AACvE,yDAAyD;AAEzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAS;IAClD,iCAAiC;IACjC,mBAAmB,EAAE,gBAAgB,EAAE,+BAA+B;IACtE,wBAAwB,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,qBAAqB;IACpG,gBAAgB,EAAE,yBAAyB,EAAE,oBAAoB;IACjE,gBAAgB,EAAE,mBAAmB,EAAE,YAAY;IACnD,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,cAAc;IACxE,cAAc;IACd,YAAY;IACZ,gBAAgB;IAChB,eAAe,EAAE,cAAc;IAC/B,yBAAyB,EAAE,wBAAwB;IACnD,WAAW,EAAE,cAAc;IAC3B,gFAAgF;IAChF,aAAa,EAAE,iBAAiB;IAChC,qBAAqB,EAAE,YAAY,EAAE,oBAAoB,EAAE,kBAAkB;IAC7E,iBAAiB,EAAE,oBAAoB;IACvC,uBAAuB;IACvB,qBAAqB;IACrB,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe;IACzD,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,mBA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,kBAAkB,EAAE,gBAAgB;IACzE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB;CACnD,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,IAAI,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IAC5C,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strict-mode.d.ts","sourceRoot":"","sources":["../../src/journal/strict-mode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"strict-mode.d.ts","sourceRoot":"","sources":["../../src/journal/strict-mode.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,iBAAiB,EAC9C,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,EAClC,MAAM,EAAE,OAAO,GACd,OAAO,CAKT;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC,GAAG,MAAM,CAWT"}
|
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
// packages/core/src/journal/strict-mode.ts
|
|
2
|
-
|
|
3
|
-
// dot-notation
|
|
4
|
-
"files.search", "files.regex_search", "files.grep", "files.bundle_search",
|
|
5
|
-
"files.read", "files.read_many", "files.read_section", "files.read_outline", "files.read_lines",
|
|
6
|
-
"files.read_by_path", "files.describe",
|
|
7
|
-
"files.list", "folders.list", "projects.list", "tags.list", "hands.list",
|
|
8
|
-
"admin.stats", "admin.whats_new", "files.find_related", "projects.map", "tags.suggest",
|
|
9
|
-
"files.get_history", "files.get_diff", "calendar.entities.list", "calendar.events.list", "calendar.events.conflicts",
|
|
10
|
-
// legacy snake_case
|
|
11
|
-
"search", "regex_search", "grep_in_file", "bundle_search",
|
|
12
|
-
"read_file", "read_files", "read_section", "read_file_outline", "read_file_lines",
|
|
13
|
-
"read_file_by_path", "describe_file",
|
|
14
|
-
"list_files", "list_folders", "list_projects", "list_tags", "list_hands",
|
|
15
|
-
"stats", "whats_new", "find_related", "project_map", "suggest_tags",
|
|
16
|
-
"get_history", "get_diff",
|
|
17
|
-
]);
|
|
2
|
+
import { READ_ONLY_TOOL_NAMES } from "./patterns/tool-classes.js";
|
|
18
3
|
export function isReadOnlyTool(toolName) {
|
|
19
|
-
return
|
|
4
|
+
return READ_ONLY_TOOL_NAMES.has(toolName);
|
|
20
5
|
}
|
|
21
6
|
export function shouldBlock(mode, toolName, status, bypass) {
|
|
22
7
|
if (mode !== "strict")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strict-mode.js","sourceRoot":"","sources":["../../src/journal/strict-mode.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"strict-mode.js","sourceRoot":"","sources":["../../src/journal/strict-mode.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,UAAU,cAAc,CAAC,QAAgB;IAC7C,OAAO,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,WAAW,CACzB,IAA8C,EAC9C,QAAgB,EAChB,MAAkC,EAClC,MAAe;IAEf,IAAI,IAAI,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACpC,IAAI,MAAM;QAAE,OAAO,KAAK,CAAC;IACzB,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC;QAAE,OAAO,KAAK,CAAC;IAC5C,OAAO,MAAM,CAAC,cAAc,GAAG,CAAC,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,MAGnC;IACC,OAAO;QACL,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,GAAG,MAAM,CAAC,cAAc,+BAC/B,MAAM,CAAC,wBAAwB;YAC7B,CAAC,CAAC,aAAa,MAAM,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;YACjE,CAAC,CAAC,EACN,sFAAsF;QACtF,WAAW,EAAE,iBAAiB;KAC/B,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/util/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/util/paths.ts"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAgBvC;AAqCD,oGAAoG;AACpG,wBAAgB,iBAAiB,IAAI,IAAI,CAExC;AAED,wBAAgB,UAAU,IAAI,MAAM,CA+CnC;AAED;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,2EAA2E;AAC3E,wBAAgB,qBAAqB,IAAI,MAAM,CAI9C;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,EAAE,CAKhD;AAgBD;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CA6CpC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as os from "node:os";
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
|
+
import { profileRelPath, repairProfile } from "../profile/index.js";
|
|
4
5
|
// @vercel/nft — Next's build-time file tracer — statically evaluates
|
|
5
6
|
// os.homedir() and process.env.* inside fs-call arguments and expands any
|
|
6
7
|
// unresolved remainder into a recursive glob rooted at the evaluated
|
|
@@ -178,5 +179,20 @@ export function ensureDataDir() {
|
|
|
178
179
|
safeMkdir(dir);
|
|
179
180
|
}
|
|
180
181
|
}
|
|
182
|
+
// Scaffold an empty profile.md at the KB root on fresh installs. Without
|
|
183
|
+
// this, the only way to get one was via the web UI's PUT /api/profile
|
|
184
|
+
// (which writes here directly) — CLI/MCP-only users had no discoverable
|
|
185
|
+
// path to a working profile, and files.create can't reach KB root itself
|
|
186
|
+
// (kind-based routing always nests under knowledge/dictionary or notes).
|
|
187
|
+
const profilePath = path.join(dataDir, profileRelPath());
|
|
188
|
+
if (!fs.existsSync(profilePath)) {
|
|
189
|
+
try {
|
|
190
|
+
fs.writeFileSync(profilePath, repairProfile("").content, "utf8");
|
|
191
|
+
}
|
|
192
|
+
catch {
|
|
193
|
+
// Best-effort — a missing profile.md degrades to the existing
|
|
194
|
+
// "no profile" UX rather than blocking server startup.
|
|
195
|
+
}
|
|
196
|
+
}
|
|
181
197
|
}
|
|
182
198
|
//# sourceMappingURL=paths.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/util/paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/util/paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpE,qEAAqE;AACrE,0EAA0E;AAC1E,qEAAqE;AACrE,mEAAmE;AACnE,0EAA0E;AAC1E,0EAA0E;AAC1E,wEAAwE;AACx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AAC,CAAC;IACzD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QAChC,IAAI,CAAC;YACH,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACnE,CAAC;QAAC,MAAM,CAAC;YACP,8DAA8D;YAC9D,uDAAuD;QACzD,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kxta-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Core context and command engines for Kontexta",
|
|
5
5
|
"private": true,
|
|
6
6
|
"type": "module",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"turndown": "^7.2.4",
|
|
18
18
|
"undici": "^7.0.0"
|
|
19
19
|
},
|
|
20
|
-
"rulesVersion": "
|
|
20
|
+
"rulesVersion": "3.0.0"
|
|
21
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kxta-publish",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"html-to-pdfmake": "^2.5.33",
|
|
21
21
|
"js-yaml": "^4.1.0",
|
|
22
22
|
"jsdom": "^29.1.1",
|
|
23
|
-
"kxta-core": "
|
|
23
|
+
"kxta-core": "5.0.0",
|
|
24
24
|
"markdown-it": "^14.1.0",
|
|
25
25
|
"pdfmake": "^0.3.11",
|
|
26
26
|
"puppeteer-core": "^25.10.0"
|
|
27
27
|
},
|
|
28
|
-
"rulesVersion": "
|
|
28
|
+
"rulesVersion": "3.0.0"
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kontexta",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "One-click local dashboard + MCP server for AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"typescript": "^5.7.0",
|
|
90
90
|
"vitest": "^2.1.0"
|
|
91
91
|
},
|
|
92
|
-
"rulesVersion": "
|
|
92
|
+
"rulesVersion": "3.0.0"
|
|
93
93
|
}
|