kontexta 4.6.3 → 4.7.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.
Files changed (97) hide show
  1. package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
  2. package/bundle/standalone/apps/web/.next/app-build-manifest.json +45 -45
  3. package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +9 -9
  4. package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
  5. package/bundle/standalone/apps/web/.next/prerender-manifest.json +20 -20
  6. package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  7. package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -1
  8. package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +1 -1
  9. package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -1
  10. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  11. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  12. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -1
  13. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  14. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -1
  15. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -1
  16. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -1
  17. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -1
  18. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -1
  19. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -1
  20. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -1
  21. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -1
  22. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -1
  23. package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -1
  24. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -1
  25. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -1
  26. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route_client-reference-manifest.js +1 -1
  27. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -1
  28. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route_client-reference-manifest.js +1 -1
  29. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -1
  30. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -1
  31. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -1
  32. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -1
  33. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -1
  34. package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
  35. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -1
  36. package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -1
  37. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -1
  38. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -1
  39. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -1
  40. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -1
  41. package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  42. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -1
  43. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -1
  44. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -1
  45. package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -1
  46. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -1
  47. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
  48. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
  49. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
  50. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
  51. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
  52. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
  53. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
  54. package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  55. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
  56. package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
  57. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
  58. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
  59. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
  60. package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  61. package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  62. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
  63. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
  64. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
  65. package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
  66. package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
  67. package/bundle/standalone/apps/web/.next/server/app/page.js +1 -1
  68. package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  69. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
  70. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
  71. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +1 -1
  72. package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +9 -9
  73. package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -1
  74. package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -1
  75. package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  76. package/bundle/standalone/apps/web/.next/static/chunks/app/{page-efac40829f44c8a7.js → page-67aff4652e571aa1.js} +1 -1
  77. package/bundle/standalone/apps/web/package.json +4 -4
  78. package/bundle/standalone/apps/web/src/lib/mcp-tools.json +128 -100
  79. package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +90 -90
  80. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +22 -22
  81. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
  82. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +71 -71
  83. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
  84. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js +1 -1
  85. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js.map +1 -1
  86. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js +2 -2
  87. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js.map +1 -1
  88. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +6 -6
  89. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js.map +1 -1
  90. package/bundle/standalone/node_modules/kontexta-mcp/package.json +1 -1
  91. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +90 -90
  92. package/bundle/standalone/node_modules/kxta-core/package.json +1 -1
  93. package/bundle/standalone/node_modules/kxta-publish/package.json +2 -2
  94. package/bundle/standalone/package.json +1 -1
  95. package/package.json +1 -1
  96. /package/bundle/standalone/apps/web/.next/static/{iEp-Xd5BTnFksnopDKIQJ → Na5FCljVLhoIUnyjNShuM}/_buildManifest.js +0 -0
  97. /package/bundle/standalone/apps/web/.next/static/{iEp-Xd5BTnFksnopDKIQJ → Na5FCljVLhoIUnyjNShuM}/_ssgManifest.js +0 -0
@@ -19,31 +19,31 @@ This project is registered with kontexta. Honor these rules to keep the index, h
19
19
 
20
20
  ### Core rules
21
21
 
22
- **Print the session welcome as your first message.** On the very first turn of any new session, call `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.
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 `search`, `bundle_search`, or `regex_search` to find context first. Skipping straight to `read_file` on a guessed path wastes tokens and often misses the right file.
24
+ **Search before reading.** Use `files.search`, `files.bundle_search`, 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 `create_file` / `update_file` / `update_file_section` / `journal_note`. **Never** edit a KB file with raw filesystem tools (Edit/Write/cat) — the watcher and FTS index will diverge until `refresh_index` runs, and subsequent searches will return stale results.
26
+ **All KB writes go through kontexta.** Use `files.create` / `files.update` / `files.update_section` / `journal.note`. **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 `read_file`.** Need ≥2 files? Call `read_files` (one round-trip, up to 200 IDs) or `bundle_search` (token-budgeted blob). Looping `read_file` wastes round-trips and inflates response overhead.
28
+ **Batch reads. Don't loop `files.read`.** Need ≥2 files? Call `files.read_many` (one round-trip, up to 200 IDs) or `files.bundle_search` (token-budgeted blob). Looping `files.read` wastes round-trips and inflates response overhead.
29
29
 
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., `"distill_journal"`), 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.
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(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.
32
+ **Use `journal.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(summary)` when the user pivots.** One short sentence so the distillation step knows the topic shifted.
34
+ **Use `journal.intent(summary)` when the user pivots.** One short sentence so the distillation step knows the topic shifted.
35
35
 
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: "distill_journal"`. Either run `distill_journal` first, OR pass `journal_bypass: true` on the read call to override (logged for audit).
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
 
38
- **Confirm Hands tokens within 60 seconds.** When a Hands tool returns an approval token, do NOT chain a long question or another tool call before `confirm_hand`. Tokens expire; the user will have to re-issue the whole flow.
38
+ **Confirm Hands tokens within 60 seconds.** When a Hands tool returns an approval token, do NOT chain a long question or another tool call before `hands.confirm`. Tokens expire; the user will have to re-issue the whole flow.
39
39
 
40
- **Save specs to a canonical location.** When generating a spec, plan, or design doc, write it to the KB at `specs/<project-name>/<spec-name>.md` (use `create_file` with `destination: "knowledge"`, `folder: "specs/<project-name>"`). One folder per project keeps specs queryable.
40
+ **Save specs to a canonical location.** When generating a spec, plan, or design doc, write it to the KB at `specs/<project-name>/<spec-name>.md` (use `files.create` with `destination: "knowledge"`, `folder: "specs/<project-name>"`). One folder per project keeps specs queryable.
41
41
 
42
- **Tag new KB files at creation time.** Pass `tags` on `create_file`, or call `add_tags` immediately after. Untagged files are recoverable but invisible to `find_related`.
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
- **`whats_new` early. `commit_backup` late.** Run `whats_new` at session start if you've been away — it returns files added/changed since a cutoff. End the session with `commit_backup` if you mutated KB files and the project has a remote.
44
+ **`admin.whats_new` early. `admin.commit_backup` late.** Run `admin.whats_new` 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
- **Use `.mmd` for diagrams, not fenced code in `.md`.** When creating an architecture / flow / sequence diagram, call `create_file` 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).
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
 
48
48
 
49
49
  ### Knowledge Items (KI)
@@ -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
- `search` or `bundle_search` over the KB for the task topic. If a matching KI
55
+ `files.search` or `files.bundle_search` 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,21 +62,21 @@ 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 `update_file` or `update_file_section`. If no KI exists
66
- yet, create one with `create_file` under `knowledge/` with appropriate tags.
65
+ the relevant KI via `files.update` or `files.update_section`. If no KI exists
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 `whats_new` at session start after a gap.** If you haven't touched the
69
+ **Use `admin.whats_new` at session start after a gap.** If you haven't touched the
70
70
  project in a while, run `whats_new(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
- `create_file` / `create_files` require `kind` for KB writes:
75
+ `files.create` / `files.create_many` require `kind` for KB writes:
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
 
79
- Test: *if this file disagreed with the code, who wins?* File wins → dictionary; file loses → note. Search ranks dictionary hits above everything else; filter with `kind` on any read tool for one class. `journal`/`project` are auto-assigned — don't pass them to `create_file`.
79
+ Test: *if this file disagreed with the code, who wins?* File wins → dictionary; file loses → note. Search ranks dictionary hits above everything else; filter with `kind` on any read tool for one class. `journal`/`project` are auto-assigned — don't pass them to `files.create`.
80
80
 
81
81
  ### Tool reference
82
82
 
@@ -86,120 +86,120 @@ 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
- | `search` | Natural-language keyword across KB (FTS) | Substrings, URLs, code idents | `regex_search` |
90
- | `regex_search` | Substrings, URLs, code identifiers | Natural-language queries | `search` |
91
- | `grep_in_file` | Substring/regex within ONE known file | Searching across files | `regex_search` |
92
- | `bundle_search` | Need search hits + bodies in a token budget | Only need IDs | `search` |
93
- | `find_related` | Discover siblings via tag overlap | Text content matching | `search` |
94
- | `suggest_tags` | Propose tags for an existing file | Finding files by tag | `find_related` |
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` |
93
+ | `files.find_related` | Discover siblings via tag overlap | Text content matching | `files.search` |
94
+ | `tags.suggest` | Propose tags for an existing file | Finding files by tag | `files.find_related` |
95
95
 
96
96
  #### Read
97
97
 
98
98
  | Tool | When | Not when | Use instead |
99
99
  |---|---|---|---|
100
- | `read_file` | One file ID, full body | ≥2 file IDs | `read_files` |
101
- | `read_files` | 2–200 file IDs in one call | Only need a section of one file | `read_section` |
102
- | `read_file_by_path` | Known absolute path, no ID handy | You already have the ID | `read_file` |
103
- | `read_file_lines` | Known line range | Guessing line numbers | `read_section` |
104
- | `read_section` | Known heading | Need the whole file | `read_file` |
105
- | `read_file_outline` | Triaging an unfamiliar file's structure | Structure already known | `describe_file` |
106
- | `describe_file` | Metadata only (size, tags, mtime) | Need content | `read_file` |
107
- | `get_profile` | Read user profile/context at session start | Reading normal files | `read_file` |
100
+ | `files.read` | One file ID, full body | ≥2 file IDs | `files.read_many` |
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` |
105
+ | `files.read_outline` | Triaging an unfamiliar file's structure | Structure already known | `files.describe` |
106
+ | `files.describe` | Metadata only (size, tags, mtime) | Need content | `files.read` |
107
+ | `admin.get_profile` | Read user profile/context at session start | Reading normal files | `files.read` |
108
108
 
109
109
  #### Write
110
110
 
111
111
  | Tool | When | Not when | Use instead |
112
112
  |---|---|---|---|
113
- | `create_file` | One new file (md, mmd, or html via `format`) | Bulk-creating ≥2 files | `create_files` |
114
- | `create_files` | 2+ new files in one call | Single file | `create_file` |
115
- | `update_file` | Replacing the whole body | Editing one section | `update_file_section` |
116
- | `update_file_section` | Surgical edit at a known heading | Replacing the whole file | `update_file` |
117
- | `delete_file` | One file | Bulk delete | `delete_files` |
118
- | `delete_files` | 2+ files in one call | Single file | `delete_file` |
119
- | `move_file` | Rename or relocate a file | File content needs changing | `update_file` |
113
+ | `files.create` | One new file (md, mmd, or html via `format`) | Bulk-creating ≥2 files | `files.create_many` |
114
+ | `files.create_many` | 2+ new files in one call | Single file | `files.create` |
115
+ | `files.update` | Replacing the whole body | Editing one section | `files.update_section` |
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` |
119
+ | `files.move` | Rename or relocate a file | File content needs changing | `files.update` |
120
120
 
121
121
  #### Organize
122
122
 
123
123
  | Tool | When | Not when | Use instead |
124
124
  |---|---|---|---|
125
- | `add_tags` | Tag an existing file | Tagging at creation time | `create_file` (with `tags` param) |
126
- | `remove_tags` | Untag a file | Want to delete the file | `delete_file` |
127
- | `list_tags` | Enumerate all tags in the vault | Want files for a given tag | `find_related` |
128
- | `set_favorite` | Pin / unpin a file | Semantic categorization | `add_tags` |
129
- | `tag_search_results` | Bulk-tag every hit from a search | Tagging a single file | `add_tags` |
130
- | `journal_note` | Log a decision, workaround, or abandonment | Editing regular content | `update_file` |
131
- | `journal_intent` | Record a user-initiated topic pivot | Auto-captured tool calls | `journal_note` |
132
- | `journal_append` | Append timestamped text to today's daily KB journal file | Structured notes | `journal_note` |
133
- | `distill_journal` | Summarize accumulated journal events | Individual events | `journal_note` |
134
- | `journal_status` | Check backlog size and high-water mark before distilling | Need the raw events themselves | `distill_journal` |
135
- | `distill_journal_commit_upgrades` | Mark journal entries upgraded after a subagent rewrites them | Running the initial distillation | `distill_journal` |
136
- | `housekeep_journal` | Prune old raw journal files and archive cold tasks | Need to distill new events first | `distill_journal` |
137
- | `clip_url` | Capture a web URL into the KB | Saving a local file | `create_file` |
138
- | `list_folders` | Enumerate folders in the project | Finding files | `list_files` |
139
- | `create_folder` | Create a new (possibly nested) folder | Files don't need explicit folders | |
140
- | `delete_folder` | Remove an empty folder | Folder still has files | `delete_files` first |
125
+ | `tags.add` | Tag an existing file | Tagging at creation time | `files.create` (with `tags` param) |
126
+ | `tags.remove` | Untag a file | Want to delete the file | `files.delete` |
127
+ | `tags.list` | Enumerate all tags in the vault | Want files for a given tag | `files.find_related` |
128
+ | `tags.set_favorite` | Pin / unpin a file | Semantic categorization | `tags.add` |
129
+ | `tags.search` | Bulk-tag every hit from a search | Tagging a single file | `tags.add` |
130
+ | `journal.note` | Log a decision, workaround, or abandonment | Editing regular content | `files.update` |
131
+ | `journal.intent` | Record a user-initiated topic pivot | Auto-captured tool calls | `journal.note` |
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` |
134
+ | `journal.status` | Check backlog size and high-water mark before distilling | Need the raw events themselves | `journal.distill` |
135
+ | `journal.commit_upgrades` | Mark journal entries upgraded after a subagent rewrites them | Running the initial distillation | `journal.distill` |
136
+ | `journal.housekeep` | Prune old raw journal files and archive cold tasks | Need to distill new events first | `journal.distill` |
137
+ | `resources.clip_url` | Capture a web URL into the KB | Saving a local file | `files.create` |
138
+ | `folders.list` | Enumerate folders in the project | Finding files | `files.list` |
139
+ | `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.delete_many` first |
141
141
 
142
142
  #### Reports
143
143
 
144
144
  | Tool | When | Not when | Use instead |
145
145
  |---|---|---|---|
146
- | `add_report_resource` | Add an image to the shared `reports/resources/` pool | Embedding data URIs | |
147
- | `list_report_resources` | List all shared report resources | Need full file list | `list_files` |
148
- | `delete_report_resource` | Delete a shared resource by name | Deleting a report file | `delete_file` |
149
- | `export_report` | Export an HTML report as PDF or PNG | Exporting markdown | |
146
+ | `resources.add_report` | Add an image to the shared `reports/resources/` pool | Embedding data URIs | |
147
+ | `resources.list_reports` | List all shared report resources | Need full file list | `files.list` |
148
+ | `resources.delete_report` | Delete a shared resource by name | Deleting a report file | `files.delete` |
149
+ | `resources.export_report` | Export an HTML report as PDF or PNG | Exporting markdown | |
150
150
 
151
151
  #### History & recovery
152
152
 
153
153
  | Tool | When | Not when | Use instead |
154
154
  |---|---|---|---|
155
- | `get_history` | List a file's revisions | Want a diff between two revisions | `get_diff` |
156
- | `get_diff` | Compare two specific revisions | Want full content of one | `restore_file` |
157
- | `restore_file` | Roll back a KB file to an earlier revision | Want to use raw `git` | |
158
- | `diff_against_disk` | Find drift after raw filesystem edits | Normal search staleness | `refresh_index` |
159
- | `refresh_index` | Rescan after out-of-band changes | Normal in-app edits | |
160
- | `commit_backup` | Push KB changes to remote git | Local-only work | |
155
+ | `files.get_history` | List a file's revisions | Want a diff between two revisions | `files.get_diff` |
156
+ | `files.get_diff` | Compare two specific revisions | Want full content of one | `files.restore` |
157
+ | `files.restore` | Roll back a KB file to an earlier revision | Want to use raw `git` | |
158
+ | `files.diff_against_disk` | Find drift after raw filesystem edits | Normal search staleness | `projects.refresh_index` |
159
+ | `projects.refresh_index` | Rescan after out-of-band changes | Normal in-app edits | |
160
+ | `admin.commit_backup` | Push KB changes to remote git | Local-only work | |
161
161
 
162
162
  #### Discover
163
163
 
164
164
  | Tool | When | Not when | Use instead |
165
165
  |---|---|---|---|
166
- | `list_projects` | Enumerate registered projects | Files within one project | `list_files` |
167
- | `list_files` | Files in a project (filterable) | Full-text content matters | `search` |
168
- | `project_map` | Folder/file tree for a project | Flat file list | `list_files` |
169
- | `stats` | Counts and health for a project | Per-file detail | `describe_file` |
170
- | `whats_new` | Files added/changed since a cutoff | Full-text search | `search` |
171
- | `refresh_session_context` | Re-fetch profile + upcoming events after mid-session edits | Reading a single profile field | `get_profile` |
166
+ | `projects.list` | Enumerate registered projects | Files within one project | `files.list` |
167
+ | `files.list` | Files in a project (filterable) | Full-text content matters | `files.search` |
168
+ | `projects.map` | Folder/file tree for a project | Flat file list | `files.list` |
169
+ | `admin.stats` | Counts and health for a project | Per-file detail | `files.describe` |
170
+ | `admin.whats_new` | Files added/changed since a cutoff | Full-text search | `files.search` |
171
+ | `admin.refresh_session_context` | Re-fetch profile + upcoming events after mid-session edits | Reading a single profile field | `admin.get_profile` |
172
172
 
173
173
  #### Calendar
174
174
 
175
175
  | Tool | When | Not when | Use instead |
176
176
  |---|---|---|---|
177
- | `calendar_add_entity` | Register a new thing to track (server, vehicle, location, etc.) | Entity already exists | `calendar_update_entity` |
178
- | `calendar_update_entity` | Rename, retag, or retire (`active:false`) an entity | Entity doesn't exist yet | `calendar_add_entity` |
179
- | `calendar_delete_entity` | Permanently remove an entity, cascading its events/links | Just want to stop scheduling against it | `calendar_update_entity` |
180
- | `calendar_list_entities` | Enumerate entities with their dependency links | Need conflict or event data | `calendar_conflicts` |
181
- | `calendar_link_entities` | Record or remove a dependency edge for conflict detection | Want to see existing links | `calendar_list_entities` |
182
- | `calendar_add_event` | Schedule a one-off event (downtime, maintenance, delivery, etc.) | Editing an existing event | `calendar_update_event` |
183
- | `calendar_update_event` | Move, retitle, or re-home an existing event | Event doesn't exist yet | `calendar_add_event` |
184
- | `calendar_delete_event` | Remove one event permanently | Want to just move it | `calendar_update_event` |
185
- | `calendar_list_events` | List/filter events in a time window | Only need the conflict report | `calendar_conflicts` |
186
- | `calendar_conflicts` | Find overlapping or too-close-together events in a window | Just need the raw event list | `calendar_list_events` |
187
- | `calendar_export_ics` | Export a window as an ICS file for calendar apps | Need machine-readable event data | `calendar_list_events` |
177
+ | `calendar.entities.add` | Register a new thing to track (server, vehicle, location, etc.) | Entity already exists | `calendar.entities.update` |
178
+ | `calendar.entities.update` | Rename, retag, or retire (`active:false`) an entity | Entity doesn't exist yet | `calendar.entities.add` |
179
+ | `calendar.entities.delete` | Permanently remove an entity, cascading its events/links | Just want to stop scheduling against it | `calendar.entities.update` |
180
+ | `calendar.entities.list` | Enumerate entities with their dependency links | Need conflict or event data | `calendar.events.conflicts` |
181
+ | `calendar.entities.link` | Record or remove a dependency edge for conflict detection | Want to see existing links | `calendar.entities.list` |
182
+ | `calendar.events.add` | Schedule a one-off event (downtime, maintenance, delivery, etc.) | Editing an existing event | `calendar.events.update` |
183
+ | `calendar.events.update` | Move, retitle, or re-home an existing event | Event doesn't exist yet | `calendar.events.add` |
184
+ | `calendar.events.delete` | Remove one event permanently | Want to just move it | `calendar.events.update` |
185
+ | `calendar.events.list` | List/filter events in a time window | Only need the conflict report | `calendar.events.conflicts` |
186
+ | `calendar.events.conflicts` | Find overlapping or too-close-together events in a window | Just need the raw event list | `calendar.events.list` |
187
+ | `calendar.export_ics` | Export a window as an ICS file for calendar apps | Need machine-readable event data | `calendar.events.list` |
188
188
 
189
189
  #### Hands (project tools)
190
190
 
191
191
  | Tool | When | Not when | Use instead |
192
192
  |---|---|---|---|
193
- | `list_hands` | Enumerate Hands tools available in this project | Want the YAML schema | `describe_hands_schema` |
194
- | `describe_hands_schema` | Explain the `hands.yaml` format | Listing tools | `list_hands` |
195
- | `confirm_hand` | Approve a Hands token within 60s of issue | Normal MCP tool calls | |
196
- | `reload_hands` | Re-read `hands.yaml` after editing it | First-time use (auto-loads) | |
193
+ | `hands.list` | Enumerate Hands tools available in this project | Want the YAML schema | `hands.describe_schema` |
194
+ | `hands.describe_schema` | Explain the `hands.yaml` format | Listing tools | `hands.list` |
195
+ | `hands.confirm` | Approve a Hands token within 60s of issue | Normal MCP tool calls | |
196
+ | `hands.reload` | Re-read `hands.yaml` after editing it | First-time use (auto-loads) | |
197
197
 
198
198
  #### Onboarding
199
199
 
200
200
  | Tool | When | Not when | Use instead |
201
201
  |---|---|---|---|
202
- | `register_project` | Register a new project root with kontexta | Already registered | `list_projects` |
203
- | `onboard_agent` | Write/update the rules block in CLAUDE.md / AGENTS.md / etc. | Editing regular project content | `update_file` |
204
- | `transfer_agent_context` | Copy CLAUDE.md / AGENTS.md / `.cursor/rules/*.mdc` etc. from the project repo into Kontexta's KB. Originals are NEVER deleted by this tool. | User wants files to stay in the repo (default) | `register_project` (which keeps files in place) |
202
+ | `projects.register` | Register a new project root with kontexta | Already registered | `projects.list` |
203
+ | `admin.onboard_agent` | Write/update the rules block in CLAUDE.md / AGENTS.md / etc. | Editing regular project content | `files.update` |
204
+ | `admin.transfer_agent_context` | Copy CLAUDE.md / AGENTS.md / `.cursor/rules/*.mdc` etc. from the project repo into Kontexta's KB. Originals are NEVER deleted by this tool. | User wants files to stay in the repo (default) | `projects.register` (which keeps files in place) |
205
205
  <!-- END kontexta:rules v{{VERSION}} -->
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kxta-core",
3
- "version": "4.6.3",
3
+ "version": "4.7.0",
4
4
  "description": "Core context and command engines for Kontexta",
5
5
  "private": true,
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kxta-publish",
3
- "version": "4.6.3",
3
+ "version": "4.7.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,7 +20,7 @@
20
20
  "html-to-pdfmake": "^2.5.33",
21
21
  "js-yaml": "^4.1.0",
22
22
  "jsdom": "^29.1.1",
23
- "kxta-core": "4.6.3",
23
+ "kxta-core": "4.7.0",
24
24
  "markdown-it": "^14.1.0",
25
25
  "pdfmake": "^0.3.11",
26
26
  "puppeteer-core": "^25.10.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kontexta",
3
- "version": "4.6.3",
3
+ "version": "4.7.0",
4
4
  "rulesVersion": "2.6.0",
5
5
  "type": "module",
6
6
  "author": "Safiyu",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kontexta",
3
- "version": "4.6.3",
3
+ "version": "4.7.0",
4
4
  "description": "One-click local dashboard + MCP server for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",