kontexta 4.6.4 → 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 (95) hide show
  1. package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
  2. package/bundle/standalone/apps/web/.next/app-build-manifest.json +40 -40
  3. package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +12 -12
  4. package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
  5. package/bundle/standalone/apps/web/.next/prerender-manifest.json +3 -3
  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 +12 -12
  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-13de59eac88531ec.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 +72 -72
  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 +11 -11
  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 +59 -59
  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 +1 -1
  87. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +4 -4
  88. package/bundle/standalone/node_modules/kontexta-mcp/package.json +1 -1
  89. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +90 -90
  90. package/bundle/standalone/node_modules/kxta-core/package.json +1 -1
  91. package/bundle/standalone/node_modules/kxta-publish/package.json +2 -2
  92. package/bundle/standalone/package.json +1 -1
  93. package/package.json +1 -1
  94. /package/bundle/standalone/apps/web/.next/static/{MXXlMwjGdgGdSqB6SehZ3 → Na5FCljVLhoIUnyjNShuM}/_buildManifest.js +0 -0
  95. /package/bundle/standalone/apps/web/.next/static/{MXXlMwjGdgGdSqB6SehZ3 → 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}} -->
@@ -29,7 +29,7 @@ function withLinks(entity) {
29
29
  };
30
30
  }
31
31
  export function registerCalendarTools(server) {
32
- server.tool("calendar_add_entity", "SIDE-EFFECTFUL. Create a new tracked entity — any named thing you schedule events against (a server, a delivery van, a store location, a piece of equipment, a room, etc.). Not idempotent: a duplicate name (case-insensitive) throws. Returns `{entity}`. Use `calendar_link_entities` afterwards to record dependencies for conflict detection.", {
32
+ server.tool("calendar.entities.add", "SIDE-EFFECTFUL. Create a new tracked entity — any named thing you schedule events against (a server, a delivery van, a store location, a piece of equipment, a room, etc.). Not idempotent: a duplicate name (case-insensitive) throws. Returns `{entity}`. Use `calendar_link_entities` afterwards to record dependencies for conflict detection.", {
33
33
  name: z.string().min(1).describe("Unique display name for the entity (case-insensitive)."),
34
34
  kind: z.string().optional().describe("Freeform category, e.g. 'server', 'vehicle', 'location', 'equipment'."),
35
35
  notes: z.string().optional().describe("Freeform notes."),
@@ -42,7 +42,7 @@ export function registerCalendarTools(server) {
42
42
  return errorResult(e);
43
43
  }
44
44
  });
45
- server.tool("calendar_update_entity", "SIDE-EFFECTFUL. Patch an existing entity's fields, including `active` (set false to soft-retire it without losing its history). Idempotent per patch. Returns `{entity}`. For a hard delete see `calendar_delete_entity`.", {
45
+ server.tool("calendar.entities.update", "SIDE-EFFECTFUL. Patch an existing entity's fields, including `active` (set false to soft-retire it without losing its history). Idempotent per patch. Returns `{entity}`. For a hard delete see `calendar_delete_entity`.", {
46
46
  id: z.number().int().describe("Entity id (from `calendar_add_entity` or `calendar_list_entities`)."),
47
47
  name: z.string().min(1).optional().describe("New display name for the entity."),
48
48
  kind: z.string().nullable().optional().describe("Freeform category, e.g. 'server', 'vehicle', 'location'."),
@@ -58,7 +58,7 @@ export function registerCalendarTools(server) {
58
58
  return errorResult(e);
59
59
  }
60
60
  });
61
- server.tool("calendar_delete_entity", "DESTRUCTIVE. Permanently delete an entity AND cascade-delete every event and link attached to it. Not idempotent — deleting an unknown id throws. Returns `{success, deleted_events, deleted_links}`. To deactivate without losing history, use `calendar_update_entity` with `active: false` instead.", { id: z.number().int().describe("Entity id to delete.") }, async ({ id }) => {
61
+ server.tool("calendar.entities.delete", "DESTRUCTIVE. Permanently delete an entity AND cascade-delete every event and link attached to it. Not idempotent — deleting an unknown id throws. Returns `{success, deleted_events, deleted_links}`. To deactivate without losing history, use `calendar_update_entity` with `active: false` instead.", { id: z.number().int().describe("Entity id to delete.") }, async ({ id }) => {
62
62
  try {
63
63
  const result = deleteEntity(id);
64
64
  return ok({ success: true, ...result });
@@ -67,14 +67,14 @@ export function registerCalendarTools(server) {
67
67
  return errorResult(e);
68
68
  }
69
69
  });
70
- server.tool("calendar_list_entities", "Read-only; no side effects, auth, or rate limits. List tracked entities, each annotated with its outgoing and incoming dependency links. Returns `{entities, count}`.", {
70
+ server.tool("calendar.entities.list", "Read-only; no side effects, auth, or rate limits. List tracked entities, each annotated with its outgoing and incoming dependency links. Returns `{entities, count}`.", {
71
71
  active_only: z.boolean().optional().describe("If true, exclude retired (active=false) entities."),
72
72
  kind: z.string().optional().describe("Filter to entities with this exact `kind`."),
73
73
  }, async (input) => {
74
74
  const entities = listEntities(input).map(withLinks);
75
75
  return ok({ entities, count: entities.length });
76
76
  });
77
- server.tool("calendar_link_entities", "SIDE-EFFECTFUL. Create or update a directed dependency edge between two entities (e.g. \"A feeds B\"), or remove one with `remove: true`. Idempotent — upserts the label on repeat calls; removing an absent link is a no-op. Used by `calendar_conflicts`/`calendar_list_events` to flag overlaps across connected entities (one hop, either direction). Returns `{link}` or `{removed}`.", {
77
+ server.tool("calendar.entities.link", "SIDE-EFFECTFUL. Create or update a directed dependency edge between two entities (e.g. \"A feeds B\"), or remove one with `remove: true`. Idempotent — upserts the label on repeat calls; removing an absent link is a no-op. Used by `calendar_conflicts`/`calendar_list_events` to flag overlaps across connected entities (one hop, either direction). Returns `{link}` or `{removed}`.", {
78
78
  from: z.string().describe("Source entity — name (case-insensitive) or numeric id."),
79
79
  to: z.string().describe("Target entity — name (case-insensitive) or numeric id."),
80
80
  label: z.string().optional().describe("Freeform label for the relationship, e.g. 'feeds', 'depends on'."),
@@ -94,7 +94,7 @@ export function registerCalendarTools(server) {
94
94
  return errorResult(e);
95
95
  }
96
96
  });
97
- server.tool("calendar_add_event", "SIDE-EFFECTFUL. Add a one-off time window (downtime, maintenance, a delivery, a shift, an inspection, etc.) to an entity. NOT idempotent — calling this twice creates two events. `starts_at`/`ends_at` must be ISO 8601 with an explicit timezone (`Z` or `±HH:MM`) — naive timestamps are rejected because their meaning would be ambiguous once stored as UTC. Returns `{event}`. Follow up with `calendar_conflicts` to check for overlaps.", {
97
+ server.tool("calendar.events.add", "SIDE-EFFECTFUL. Add a one-off time window (downtime, maintenance, a delivery, a shift, an inspection, etc.) to an entity. NOT idempotent — calling this twice creates two events. `starts_at`/`ends_at` must be ISO 8601 with an explicit timezone (`Z` or `±HH:MM`) — naive timestamps are rejected because their meaning would be ambiguous once stored as UTC. Returns `{event}`. Follow up with `calendar_conflicts` to check for overlaps.", {
98
98
  entity: z.string().describe("Entity the event applies to — name (case-insensitive) or numeric id."),
99
99
  type: z.string().min(1).describe("Freeform event type, e.g. 'downtime', 'maintenance', 'delivery', 'shift'."),
100
100
  title: z.string().min(1).describe("Short title for the event."),
@@ -113,7 +113,7 @@ export function registerCalendarTools(server) {
113
113
  return errorResult(e);
114
114
  }
115
115
  });
116
- server.tool("calendar_update_event", "SIDE-EFFECTFUL. Patch an existing event (move it, retitle it, re-home it to a different entity, etc.). The merged result is re-validated — shrinking `ends_at` below `starts_at` throws. Returns `{event}`.", {
116
+ server.tool("calendar.events.update", "SIDE-EFFECTFUL. Patch an existing event (move it, retitle it, re-home it to a different entity, etc.). The merged result is re-validated — shrinking `ends_at` below `starts_at` throws. Returns `{event}`.", {
117
117
  id: z.number().int().describe("Event id."),
118
118
  entity: z.string().optional().describe("Move the event to a different entity — name or numeric id."),
119
119
  type: z.string().min(1).optional().describe("Freeform event type, e.g. 'downtime', 'maintenance', 'delivery'."),
@@ -133,11 +133,11 @@ export function registerCalendarTools(server) {
133
133
  return errorResult(e);
134
134
  }
135
135
  });
136
- server.tool("calendar_delete_event", "DESTRUCTIVE. Delete one event by id. Idempotent — deleting an already-absent id is a no-op. Returns `{success, existed}`.", { id: z.number().int().describe("Event id to delete.") }, async ({ id }) => {
136
+ server.tool("calendar.events.delete", "DESTRUCTIVE. Delete one event by id. Idempotent — deleting an already-absent id is a no-op. Returns `{success, existed}`.", { id: z.number().int().describe("Event id to delete.") }, async ({ id }) => {
137
137
  const existed = deleteEvent(id);
138
138
  return ok({ success: true, existed });
139
139
  });
140
- server.tool("calendar_list_events", "Read-only; no side effects, auth, or rate limits. List events overlapping a window (half-open — an event ending exactly at `from` is excluded), optionally filtered by entity/type. Set `include_conflicts` to also run conflict detection over the same window and attach it. Returns `{events, count, conflicts?}`. For conflicts alone, prefer `calendar_conflicts`.", {
140
+ server.tool("calendar.events.list", "Read-only; no side effects, auth, or rate limits. List events overlapping a window (half-open — an event ending exactly at `from` is excluded), optionally filtered by entity/type. Set `include_conflicts` to also run conflict detection over the same window and attach it. Returns `{events, count, conflicts?}`. For conflicts alone, prefer `calendar_conflicts`.", {
141
141
  from: z.string().optional().describe("Window start, ISO 8601 with explicit timezone."),
142
142
  to: z.string().optional().describe("Window end, ISO 8601 with explicit timezone."),
143
143
  entity: z.string().optional().describe("Filter to one entity — name or numeric id."),
@@ -164,7 +164,7 @@ export function registerCalendarTools(server) {
164
164
  return errorResult(e);
165
165
  }
166
166
  });
167
- server.tool("calendar_conflicts", `Read-only; no side effects, auth, or rate limits. Report scheduling conflicts in a window: overlaps on the same entity (\`overlap\`), overlaps between linked entities one hop apart (\`linked_overlap\`), and gaps smaller than a minimum buffer (\`insufficient_buffer\`). Computed on demand — nothing is persisted. Buffer defaults to the \`${"calendar.min_buffer_minutes"}\` setting (0 = off); pass \`buffer_minutes\` to override for this call. Returns \`{conflicts, count, buffer_minutes, events_considered}\`. See also \`calendar_list_events\` with \`include_conflicts\`.`, {
167
+ server.tool("calendar.events.conflicts", `Read-only; no side effects, auth, or rate limits. Report scheduling conflicts in a window: overlaps on the same entity (\`overlap\`), overlaps between linked entities one hop apart (\`linked_overlap\`), and gaps smaller than a minimum buffer (\`insufficient_buffer\`). Computed on demand — nothing is persisted. Buffer defaults to the \`${"calendar.min_buffer_minutes"}\` setting (0 = off); pass \`buffer_minutes\` to override for this call. Returns \`{conflicts, count, buffer_minutes, events_considered}\`. See also \`calendar_list_events\` with \`include_conflicts\`.`, {
168
168
  from: z.string().describe("Window start, ISO 8601 with explicit timezone."),
169
169
  to: z.string().describe("Window end, ISO 8601 with explicit timezone."),
170
170
  entity: z.string().optional().describe("Scope to one entity (and its linked neighbors) — name or numeric id."),
@@ -184,7 +184,7 @@ export function registerCalendarTools(server) {
184
184
  return errorResult(e);
185
185
  }
186
186
  });
187
- server.tool("calendar_export_ics", "Read-only; no side effects, auth, or rate limits. Export events in a window as an RFC 5545 ICS calendar (UTC times, no VTIMEZONE needed) for import into Outlook/Calendar apps. Returns `{ics, event_count}` with the calendar text as a JSON string field.", {
187
+ server.tool("calendar.export_ics", "Read-only; no side effects, auth, or rate limits. Export events in a window as an RFC 5545 ICS calendar (UTC times, no VTIMEZONE needed) for import into Outlook/Calendar apps. Returns `{ics, event_count}` with the calendar text as a JSON string field.", {
188
188
  from: z.string().describe("Window start, ISO 8601 with explicit timezone."),
189
189
  to: z.string().describe("Window end, ISO 8601 with explicit timezone."),
190
190
  entity: z.string().optional().describe("Filter to one entity — name or numeric id."),
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-tools.js","sourceRoot":"","sources":["../src/calendar-tools.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,YAAY,EAAE,YAAY,EAAE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