kontexta 4.7.0 → 4.7.1
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 +15 -0
- package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
- package/bundle/standalone/apps/web/.next/app-build-manifest.json +51 -51
- package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +12 -12
- 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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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 +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_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_client-reference-manifest.js +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_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 +12 -12
- 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-67aff4652e571aa1.js → page-eccc7438c998fcce.js} +1 -1
- package/bundle/standalone/apps/web/package.json +4 -4
- package/bundle/standalone/apps/web/src/lib/mcp-tools.json +33 -32
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +7 -7
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +26 -26
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/package.json +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +3 -3
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/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 +8 -1
- 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 +6 -0
- 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/refactor.js +2 -2
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js +8 -2
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js.map +1 -1
- 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 +10 -2
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.js +1 -1
- package/bundle/standalone/node_modules/kxta-core/package.json +1 -1
- package/bundle/standalone/node_modules/kxta-publish/package.json +2 -2
- package/bundle/standalone/package.json +1 -1
- package/package.json +1 -1
- /package/bundle/standalone/apps/web/.next/static/{Na5FCljVLhoIUnyjNShuM → DWDlM7S8dTnMlrhKW9K_X}/_buildManifest.js +0 -0
- /package/bundle/standalone/apps/web/.next/static/{Na5FCljVLhoIUnyjNShuM → DWDlM7S8dTnMlrhKW9K_X}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kxta-web",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.1",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "next dev --turbopack -p 23002",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"archiver": "^7.0.1",
|
|
27
27
|
"better-sqlite3": "^12.10.0",
|
|
28
28
|
"jsdom": "^29.1.1",
|
|
29
|
-
"kontexta-mcp": "4.7.
|
|
30
|
-
"kxta-core": "4.7.
|
|
31
|
-
"kxta-publish": "4.7.
|
|
29
|
+
"kontexta-mcp": "4.7.1",
|
|
30
|
+
"kxta-core": "4.7.1",
|
|
31
|
+
"kxta-publish": "4.7.1",
|
|
32
32
|
"lucide-react": "^1.21.0",
|
|
33
33
|
"mermaid": "^11",
|
|
34
34
|
"next": "^15.3.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-09-
|
|
2
|
+
"generatedAt": "2026-09-13T22:30:10.828Z",
|
|
3
3
|
"tools": [
|
|
4
4
|
{
|
|
5
5
|
"name": "admin.refresh_session_context",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"name": "files.create",
|
|
43
|
-
"description": "Create a new markdown, mermaid, or HTML file in the knowledge base or project. This operation writes a new file to disk and adds it to the local SQLite FTS5 index. Destination can be 'knowledge' (global KB), 'project' (reference file inside a project repo), or 'kontexta' (internal Kontexta schema file). If destination is 'project' or 'kontexta', project_id is strictly required. If destination is 'knowledge', 'kind' is strictly required — pick 'dictionary' (authoritative source-of-truth) or 'note' (informational snapshot); see the kind param for the rubric. No external auth required. Rate limits do not apply (local operation). Returns the created file metadata including its new ID, path, and estimated tokens. If the destination directory does not exist, it will be created automatically. Use this tool to instantiate new contextual documents or notes. To modify an existing file, use '
|
|
43
|
+
"description": "Create a new markdown, mermaid, or HTML file in the knowledge base or project. This operation writes a new file to disk and adds it to the local SQLite FTS5 index. Destination can be 'knowledge' (global KB), 'project' (reference file inside a project repo), or 'kontexta' (internal Kontexta schema file). If destination is 'project' or 'kontexta', project_id is strictly required. If destination is 'knowledge', 'kind' is strictly required — pick 'dictionary' (authoritative source-of-truth) or 'note' (informational snapshot); see the kind param for the rubric. No external auth required. Rate limits do not apply (local operation). Returns the created file metadata including its new ID, path, and estimated tokens. If the destination directory does not exist, it will be created automatically. Use this tool to instantiate new contextual documents or notes. To modify an existing file, use 'files.update' instead. Parameters: 'destination' dictates required fields; if 'project' or 'kontexta', 'project_id' must be a valid integer; if 'knowledge', 'kind' must be 'dictionary' or 'note'. 'tags' and 'folder' are optional. Pass format='mmd' to create a Mermaid diagram file (.mmd) or format='html' for HTML reports; defaults to 'md'.",
|
|
44
44
|
"inputSchema": {
|
|
45
45
|
"type": "object",
|
|
46
46
|
"properties": {
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"name": "files.read",
|
|
205
|
-
"description": "Read one file's full body and metadata by ID. Read-only; no side effects, auth, or rate limits. Returns title, path, content, tags, est_tokens (so you can budget context before opening more files), and timestamps. Throws if the ID is unknown. Use for a single known file. Prefer `
|
|
205
|
+
"description": "Read one file's full body and metadata by ID. Read-only; no side effects, auth, or rate limits. Returns title, path, content, tags, est_tokens (so you can budget context before opening more files), and timestamps. Throws if the ID is unknown. Use for a single known file. Prefer `files.describe` to inspect without paying body tokens; `files.read_many` for batches; `files.read_lines`/`files.read_section` for partial reads; `files.read_by_path` when you only have the absolute path.",
|
|
206
206
|
"inputSchema": {
|
|
207
207
|
"type": "object",
|
|
208
208
|
"properties": {
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
"name": "files.read_many",
|
|
226
|
-
"description": "Batch read up to 200 files by ID in one call. Returns per-file annotated records, an aggregate `total_est_tokens`, and an isolated `errors[]` (one bad ID does NOT abort the batch). Read-only; no side effects, auth, or rate limits. Use instead of looping `
|
|
226
|
+
"description": "Batch read up to 200 files by ID in one call. Returns per-file annotated records, an aggregate `total_est_tokens`, and an isolated `errors[]` (one bad ID does NOT abort the batch). Read-only; no side effects, auth, or rate limits. Use instead of looping `files.read` to halve round-trips and get the combined token cost upfront. For >200 IDs, page yourself.",
|
|
227
227
|
"inputSchema": {
|
|
228
228
|
"type": "object",
|
|
229
229
|
"properties": {
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
"name": "files.describe",
|
|
252
|
-
"description": "Return everything ABOUT a file without pulling its content (no token cost from the body). Tags, size, est_tokens, history depth, related-file ids, backlinks, project, folder, last edited. Operates locally with no auth or rate limits. Use this when you'd otherwise chain
|
|
252
|
+
"description": "Return everything ABOUT a file without pulling its content (no token cost from the body). Tags, size, est_tokens, history depth, related-file ids, backlinks, project, folder, last edited. Operates locally with no auth or rate limits. Use this when you'd otherwise chain files.read + tags.list + files.get_history + files.find_related just to decide whether to actually read the file. Parameters: 'id' must be a valid integer file ID.",
|
|
253
253
|
"inputSchema": {
|
|
254
254
|
"type": "object",
|
|
255
255
|
"properties": {
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
},
|
|
304
304
|
{
|
|
305
305
|
"name": "files.grep",
|
|
306
|
-
"description": "Match a JS regex against one file's lines and return matched lines with line numbers (capped: default 100, max 500). Catches what FTS misses: URLs, hyphenated terms, code identifiers. Read-only; no side effects, auth, or rate limits. Invalid regex throws `invalid regex`. Returns `{matches, match_count, truncated}`. Use after `
|
|
306
|
+
"description": "Match a JS regex against one file's lines and return matched lines with line numbers (capped: default 100, max 500). Catches what FTS misses: URLs, hyphenated terms, code identifiers. Read-only; no side effects, auth, or rate limits. Invalid regex throws `invalid regex`. Returns `{matches, match_count, truncated}`. Use after `files.read_outline` when you know the file but need a specific reference; for cross-file regex use `files.regex_search`; for keyword/concept search use `files.search`.",
|
|
307
307
|
"inputSchema": {
|
|
308
308
|
"type": "object",
|
|
309
309
|
"properties": {
|
|
@@ -355,7 +355,8 @@
|
|
|
355
355
|
"description": "Scope to one project, null for KB-only, omit for everything"
|
|
356
356
|
},
|
|
357
357
|
"case_insensitive": {
|
|
358
|
-
"type": "boolean"
|
|
358
|
+
"type": "boolean",
|
|
359
|
+
"description": "If true, match pattern case-insensitively (RegExp 'i' flag). Default false."
|
|
359
360
|
},
|
|
360
361
|
"max_files": {
|
|
361
362
|
"type": "integer",
|
|
@@ -392,7 +393,7 @@
|
|
|
392
393
|
},
|
|
393
394
|
{
|
|
394
395
|
"name": "files.update",
|
|
395
|
-
"description": "Update the entire content of an existing file by its ID. This replaces the file's content on disk and triggers an FTS5 re-index. Returns the updated file metadata including new estimated token counts. Operates locally with no external auth or rate limits. If you only need to modify a single section without replacing the entire file, use '
|
|
396
|
+
"description": "Update the entire content of an existing file by its ID. This replaces the file's content on disk and triggers an FTS5 re-index. Returns the updated file metadata including new estimated token counts. Operates locally with no external auth or rate limits. If you only need to modify a single section without replacing the entire file, use 'files.update_section' instead to save context budget. Parameters: 'id' must be a valid integer file ID. 'content' is the complete markdown string that will replace the file.",
|
|
396
397
|
"inputSchema": {
|
|
397
398
|
"type": "object",
|
|
398
399
|
"properties": {
|
|
@@ -418,7 +419,7 @@
|
|
|
418
419
|
},
|
|
419
420
|
{
|
|
420
421
|
"name": "files.delete",
|
|
421
|
-
"description": "DESTRUCTIVE. Permanently delete one file by ID. KB files are unlinked from disk AND removed from the FTS5 index; project reference files only have their index entry removed (the file on disk is left alone so the watcher does not fight your editor). Not idempotent — deleting an unknown ID throws. No external auth or rate limits. Returns `{success: true}`. Use only when the file is truly obsolete; to deprioritise without losing data, untag (`
|
|
422
|
+
"description": "DESTRUCTIVE. Permanently delete one file by ID. KB files are unlinked from disk AND removed from the FTS5 index; project reference files only have their index entry removed (the file on disk is left alone so the watcher does not fight your editor). Not idempotent — deleting an unknown ID throws. No external auth or rate limits. Returns `{success: true}`. Use only when the file is truly obsolete; to deprioritise without losing data, untag (`tags.remove`) or unfavorite (`tags.set_favorite`) instead. Bulk variant: `files.delete_many`.",
|
|
422
423
|
"inputSchema": {
|
|
423
424
|
"type": "object",
|
|
424
425
|
"properties": {
|
|
@@ -494,7 +495,7 @@
|
|
|
494
495
|
},
|
|
495
496
|
{
|
|
496
497
|
"name": "files.search",
|
|
497
|
-
"description": "Full-text (SQLite FTS5) keyword search across files. Returns ranked matches with inline match_excerpt and title_highlight (no follow-up `read_file` needed for snippets) plus tags, est_tokens, size_bytes, content_class, and aggregate `total_est_tokens`. Read-only; no side effects, auth, or rate limits. Ordering: dictionary hits sort above everything else for the same query (dictionary-wins on conflict), then BM25 rank. FTS is tokenised: it WILL miss URLs, hyphenated terms, and partial substrings — fall back to `regex_search` for those. `project_id: null` searches only the KB; omit the field to span everything; `tags[]` requires ALL listed tags to match; `kind` narrows to one content class. For prompt-ready bundled bodies use `bundle_search`.",
|
|
498
|
+
"description": "Full-text (SQLite FTS5) keyword search across files. Returns ranked matches with inline match_excerpt and title_highlight (no follow-up `read_file` needed for snippets) plus tags, est_tokens, size_bytes, content_class, and aggregate `total_est_tokens`. Read-only; no side effects, auth, or rate limits. Ordering: dictionary hits sort above everything else for the same query (dictionary-wins on conflict), then BM25 rank. FTS is tokenised: it WILL miss URLs, hyphenated terms, and partial substrings — fall back to `files.regex_search` for those. `project_id: null` searches only the KB; omit the field to span everything; `tags[]` requires ALL listed tags to match; `kind` narrows to one content class. For prompt-ready bundled bodies use `files.bundle_search`.",
|
|
498
499
|
"inputSchema": {
|
|
499
500
|
"type": "object",
|
|
500
501
|
"properties": {
|
|
@@ -543,7 +544,7 @@
|
|
|
543
544
|
},
|
|
544
545
|
{
|
|
545
546
|
"name": "files.bundle_search",
|
|
546
|
-
"description": "Run an FTS search and concatenate matched bodies into a single prompt-ready bundle (XML `<document>` blocks or markdown headers + fences) capped at `max_tokens`. Files are added in rank order (dictionary-wins first, then BM25) until the next would exceed the budget; the rest go to `skipped[]`. Read-only; no side effects, auth, or rate limits. Use instead of `search` + N×`
|
|
547
|
+
"description": "Run an FTS search and concatenate matched bodies into a single prompt-ready bundle (XML `<document>` blocks or markdown headers + fences) capped at `max_tokens`. Files are added in rank order (dictionary-wins first, then BM25) until the next would exceed the budget; the rest go to `skipped[]`. Read-only; no side effects, auth, or rate limits. Use instead of `files.search` + N×`files.read` when you need several related files as one context blob. Defaults: format=xml, max_tokens=50000. `project_id: null` = KB only; `tags[]` requires ALL to match; `kind` narrows to one content class.",
|
|
547
548
|
"inputSchema": {
|
|
548
549
|
"type": "object",
|
|
549
550
|
"properties": {
|
|
@@ -1147,7 +1148,7 @@
|
|
|
1147
1148
|
},
|
|
1148
1149
|
{
|
|
1149
1150
|
"name": "files.find_related",
|
|
1150
|
-
"description": "Find other files sharing tags with the given file, ranked by `shared_tag_count` descending. Read-only; no side effects, auth, or rate limits. Returns annotated file rows with `shared_tag_count` and `shared_tags`. Empty result means the file has no tags or no other file shares them — try `search`/`regex_search` for content-based discovery, or `
|
|
1151
|
+
"description": "Find other files sharing tags with the given file, ranked by `shared_tag_count` descending. Read-only; no side effects, auth, or rate limits. Returns annotated file rows with `shared_tag_count` and `shared_tags`. Empty result means the file has no tags or no other file shares them — try `files.search`/`files.regex_search` for content-based discovery, or `tags.suggest` to bootstrap labels first. `kind` narrows to one content class. Default limit 10.",
|
|
1151
1152
|
"inputSchema": {
|
|
1152
1153
|
"type": "object",
|
|
1153
1154
|
"properties": {
|
|
@@ -1182,7 +1183,7 @@
|
|
|
1182
1183
|
},
|
|
1183
1184
|
{
|
|
1184
1185
|
"name": "files.create_many",
|
|
1185
|
-
"description": "Batch variant of `
|
|
1186
|
+
"description": "Batch variant of `files.create` — create up to 200 markdown, mermaid, or HTML files in one call. Each item follows the same rules: `project_id` required if `destination` is `project`/`kontexta`; `kind` ('dictionary' or 'note') required if `destination` is `knowledge`. SIDE EFFECTS: writes new files to disk and inserts FTS5 rows; missing folders are mkdir'd. Per-item failures are isolated to `errors[]` and the rest of the batch still commits — partial success is the norm, always inspect `error_count`. No external auth or rate limits. Returns `{created_count, error_count, created, errors}`. Use for bulk ingestion; for >200 items, page yourself. Pass format='mmd' on an item to create a Mermaid diagram file (.mmd) or 'html' for HTML reports; defaults to 'md'.",
|
|
1186
1187
|
"inputSchema": {
|
|
1187
1188
|
"type": "object",
|
|
1188
1189
|
"properties": {
|
|
@@ -1238,7 +1239,7 @@
|
|
|
1238
1239
|
"dictionary",
|
|
1239
1240
|
"note"
|
|
1240
1241
|
],
|
|
1241
|
-
"description": "REQUIRED per-item for destination='knowledge'. See
|
|
1242
|
+
"description": "REQUIRED per-item for destination='knowledge'. See files.create for the dictionary/note rubric."
|
|
1242
1243
|
}
|
|
1243
1244
|
},
|
|
1244
1245
|
"required": [
|
|
@@ -1265,7 +1266,7 @@
|
|
|
1265
1266
|
},
|
|
1266
1267
|
{
|
|
1267
1268
|
"name": "files.delete_many",
|
|
1268
|
-
"description": "DESTRUCTIVE batch — delete up to 500 files by ID in one call. Same physical-deletion rules as `
|
|
1269
|
+
"description": "DESTRUCTIVE batch — delete up to 500 files by ID in one call. Same physical-deletion rules as `files.delete` (KB files unlinked from disk; project reference files only de-indexed). Per-ID failures isolated to `errors[]`; the batch keeps going — partial success is the norm. Not idempotent — unknown IDs surface as per-item errors. No external auth or rate limits. Returns `{deleted_count, error_count, deleted, errors}`. To preview the set before deleting, run `files.list` with the same filter and confirm the IDs.",
|
|
1269
1270
|
"inputSchema": {
|
|
1270
1271
|
"type": "object",
|
|
1271
1272
|
"properties": {
|
|
@@ -1291,7 +1292,7 @@
|
|
|
1291
1292
|
},
|
|
1292
1293
|
{
|
|
1293
1294
|
"name": "tags.search",
|
|
1294
|
-
"description": "Bulk-tag — run an FTS `search` and append `add_tags` to every matching file in one call. Side effect: each match gets `addTags` applied (additive, idempotent per tag); the matched files themselves are NOT modified beyond their tag links. Per-file failures isolated to `errors[]`. No external auth or rate limits. There is NO dry-run flag, so ALWAYS run `search` with the same query first to verify the match set before tagging. The `tags[]` filter requires existing tags to ALL match (it scopes the search; it does not control which tags get added). Returns `{matched_count, tagged_count, tags_applied, tagged_ids, errors}`.",
|
|
1295
|
+
"description": "Bulk-tag — run an FTS `search` and append `add_tags` to every matching file in one call. Side effect: each match gets `addTags` applied (additive, idempotent per tag); the matched files themselves are NOT modified beyond their tag links. Per-file failures isolated to `errors[]`. No external auth or rate limits. There is NO dry-run flag, so ALWAYS run `files.search` with the same query first to verify the match set before tagging. The `tags[]` filter requires existing tags to ALL match (it scopes the search; it does not control which tags get added). Returns `{matched_count, tagged_count, tags_applied, tagged_ids, errors}`.",
|
|
1295
1296
|
"inputSchema": {
|
|
1296
1297
|
"type": "object",
|
|
1297
1298
|
"properties": {
|
|
@@ -1339,7 +1340,7 @@
|
|
|
1339
1340
|
},
|
|
1340
1341
|
{
|
|
1341
1342
|
"name": "files.read_by_path",
|
|
1342
|
-
"description": "Look up a file by its absolute on-disk path and return the same shape as `
|
|
1343
|
+
"description": "Look up a file by its absolute on-disk path and return the same shape as `files.read`. The path must EXACTLY match what Kontexta indexed — no symlink resolution, no path normalisation beyond what the OS does, no trailing-slash tolerance. Returns isError if no row matches (the file may exist on disk but not be indexed — try `projects.refresh_index`). Read-only; no side effects, auth, or rate limits. Use when an agent has a path from its working directory but no file ID; if you have the ID, prefer `files.read`.",
|
|
1343
1344
|
"inputSchema": {
|
|
1344
1345
|
"type": "object",
|
|
1345
1346
|
"properties": {
|
|
@@ -1360,7 +1361,7 @@
|
|
|
1360
1361
|
},
|
|
1361
1362
|
{
|
|
1362
1363
|
"name": "admin.stats",
|
|
1363
|
-
"description": "Aggregate counts for a scope: `file_count`, `untagged_count`, `favorite_count`, `top_tags`. With `project_id` omitted (everything), also returns `by_project` breakdown. `include_token_total: true` stat()s every matching file on disk to compute a body-size estimate — measurably slower on large vaults; default false. `project_id: null` = KB only; omit = all. Read-only; no side effects, auth, or rate limits. Use as a cheap dashboard or to spot untagged content for cleanup; for live disk-vs-index drift use `diff_against_disk`.",
|
|
1364
|
+
"description": "Aggregate counts for a scope: `file_count`, `untagged_count`, `favorite_count`, `top_tags`. With `project_id` omitted (everything), also returns `by_project` breakdown. `include_token_total: true` stat()s every matching file on disk to compute a body-size estimate — measurably slower on large vaults; default false. `project_id: null` = KB only; omit = all. Read-only; no side effects, auth, or rate limits. Use as a cheap dashboard or to spot untagged content for cleanup; for live disk-vs-index drift use `files.diff_against_disk`.",
|
|
1364
1365
|
"inputSchema": {
|
|
1365
1366
|
"type": "object",
|
|
1366
1367
|
"properties": {
|
|
@@ -1391,7 +1392,7 @@
|
|
|
1391
1392
|
},
|
|
1392
1393
|
{
|
|
1393
1394
|
"name": "tags.suggest",
|
|
1394
|
-
"description": "Propose tags for a file by mining the existing tag corpus via FTS — picks distinctive terms from the file (≥4 chars, stopword-filtered) and returns tags applied to other files that score high on those terms. No LLM, no network. Already-applied tags are excluded so the suggestions are net-new. Read-only; no side effects, auth, or rate limits. Returns `{file_id, path, existing_tags, suggestions: [{tag, score, sources}]}`. Empty suggestions = no distinctive terms or no overlap with the existing taxonomy yet — bootstrap with `
|
|
1395
|
+
"description": "Propose tags for a file by mining the existing tag corpus via FTS — picks distinctive terms from the file (≥4 chars, stopword-filtered) and returns tags applied to other files that score high on those terms. No LLM, no network. Already-applied tags are excluded so the suggestions are net-new. Read-only; no side effects, auth, or rate limits. Returns `{file_id, path, existing_tags, suggestions: [{tag, score, sources}]}`. Empty suggestions = no distinctive terms or no overlap with the existing taxonomy yet — bootstrap with `tags.add` first. Default limit 10, max 50. Suggestions are NOT auto-applied.",
|
|
1395
1396
|
"inputSchema": {
|
|
1396
1397
|
"type": "object",
|
|
1397
1398
|
"properties": {
|
|
@@ -1418,7 +1419,7 @@
|
|
|
1418
1419
|
},
|
|
1419
1420
|
{
|
|
1420
1421
|
"name": "files.diff_against_disk",
|
|
1421
|
-
"description": "Diagnose drift between one file's disk content and its FTS index. Status is one of `in_sync`, `diverged`, `disk_unreadable`, or `no_index_row`. On divergence returns sizes, line counts, the first divergent line number, and the disk vs index sample for that line — NOT a full diff (use `get_diff` for full diffs between commits). Read-only; no side effects, auth, or rate limits. Use when search results look stale; if status is `diverged` or `no_index_row`, run `refresh_index` to fix.",
|
|
1422
|
+
"description": "Diagnose drift between one file's disk content and its FTS index. Status is one of `in_sync`, `diverged`, `disk_unreadable`, or `no_index_row`. On divergence returns sizes, line counts, the first divergent line number, and the disk vs index sample for that line — NOT a full diff (use `files.get_diff` for full diffs between commits). Read-only; no side effects, auth, or rate limits. Use when search results look stale; if status is `diverged` or `no_index_row`, run `projects.refresh_index` to fix.",
|
|
1422
1423
|
"inputSchema": {
|
|
1423
1424
|
"type": "object",
|
|
1424
1425
|
"properties": {
|
|
@@ -1439,7 +1440,7 @@
|
|
|
1439
1440
|
},
|
|
1440
1441
|
{
|
|
1441
1442
|
"name": "projects.refresh_index",
|
|
1442
|
-
"description": "Reconcile the FTS index against disk. For a project (`project_id` set), re-runs `discoverFiles`. For the KB (`project_id` null/omitted), walks `knowledge/`, ingests new .md files, reindexes any whose content hash drifted, and PRUNES rows for files no longer on disk. SIDE-EFFECTFUL: writes/updates/deletes file and FTS rows (the prune is destructive on stale index rows but never deletes files from disk). Idempotent — running twice is a near no-op. Skips files >5MB and standard junk dirs (`node_modules`, `.git`, `dist`, `build`, etc.). No external auth or rate limits. Returns `{scope, newly_indexed, refreshed, pruned}`. Use after editing files outside Kontexta, or when `diff_against_disk` reports drift.",
|
|
1443
|
+
"description": "Reconcile the FTS index against disk. For a project (`project_id` set), re-runs `discoverFiles`. For the KB (`project_id` null/omitted), walks `knowledge/`, ingests new .md files, reindexes any whose content hash drifted, and PRUNES rows for files no longer on disk. SIDE-EFFECTFUL: writes/updates/deletes file and FTS rows (the prune is destructive on stale index rows but never deletes files from disk). Idempotent — running twice is a near no-op. Skips files >5MB and standard junk dirs (`node_modules`, `.git`, `dist`, `build`, etc.). No external auth or rate limits. Returns `{scope, newly_indexed, refreshed, pruned}`. Use after editing files outside Kontexta, or when `files.diff_against_disk` reports drift.",
|
|
1443
1444
|
"inputSchema": {
|
|
1444
1445
|
"type": "object",
|
|
1445
1446
|
"properties": {
|
|
@@ -1496,7 +1497,7 @@
|
|
|
1496
1497
|
},
|
|
1497
1498
|
{
|
|
1498
1499
|
"name": "projects.map",
|
|
1499
|
-
"description": "Return a compact indented outline of folders, file titles, tags, and IDs in a single dense block — substantially fewer tokens than the equivalent `
|
|
1500
|
+
"description": "Return a compact indented outline of folders, file titles, tags, and IDs in a single dense block — substantially fewer tokens than the equivalent `files.list` JSON for the same scope. Read-only; no side effects, auth, or rate limits. Capped at `max_lines` (default 5000); the response reports `est_tokens` and emits a `warning` field if it exceeds `KONTEXTA_PROJECT_TOKEN_WARN`. `project_id: null` = KB only; omit = everything. Defaults: include_tags=true, show_titles=true. Use to orient yourself in an unfamiliar vault or project; for keyword lookup use `files.search`.",
|
|
1500
1501
|
"inputSchema": {
|
|
1501
1502
|
"type": "object",
|
|
1502
1503
|
"properties": {
|
|
@@ -1529,7 +1530,7 @@
|
|
|
1529
1530
|
},
|
|
1530
1531
|
{
|
|
1531
1532
|
"name": "hands.list",
|
|
1532
|
-
"description": "List every Hands command tool currently registered, with project scope, tool name, danger level, confirmation flag, and description. Hands tools come from per-project `kontexta.json` files loaded at register time. Read-only; no side effects, auth, or rate limits. Use to discover what side-effectful project commands the agent is permitted to run; for the `kontexta.json` schema see `
|
|
1533
|
+
"description": "List every Hands command tool currently registered, with project scope, tool name, danger level, confirmation flag, and description. Hands tools come from per-project `kontexta.json` files loaded at register time. Read-only; no side effects, auth, or rate limits. Use to discover what side-effectful project commands the agent is permitted to run; for the `kontexta.json` schema see `hands.describe_schema`; reload after editing one with `hands.reload`.",
|
|
1533
1534
|
"inputSchema": {
|
|
1534
1535
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1535
1536
|
"type": "object",
|
|
@@ -1541,7 +1542,7 @@
|
|
|
1541
1542
|
},
|
|
1542
1543
|
{
|
|
1543
1544
|
"name": "hands.reload",
|
|
1544
|
-
"description": "Re-scan every registered project's `kontexta.json` and rebuild the live Hands tool registry — newly-declared tools become callable immediately, removed tools disappear from `tools/list`. SIDE EFFECT is on the running MCP session's tool inventory only (no disk writes). Idempotent. No external auth or rate limits. Takes no parameters. Returns per-project load results (counts of registered/disabled tools and any validation warnings). Use after editing a `kontexta.json` mid-session; for the schema see `
|
|
1545
|
+
"description": "Re-scan every registered project's `kontexta.json` and rebuild the live Hands tool registry — newly-declared tools become callable immediately, removed tools disappear from `tools/list`. SIDE EFFECT is on the running MCP session's tool inventory only (no disk writes). Idempotent. No external auth or rate limits. Takes no parameters. Returns per-project load results (counts of registered/disabled tools and any validation warnings). Use after editing a `kontexta.json` mid-session; for the schema see `hands.describe_schema`.",
|
|
1545
1546
|
"inputSchema": {
|
|
1546
1547
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1547
1548
|
"type": "object",
|
|
@@ -1574,7 +1575,7 @@
|
|
|
1574
1575
|
},
|
|
1575
1576
|
{
|
|
1576
1577
|
"name": "hands.describe_schema",
|
|
1577
|
-
"description": "Return the complete authoring reference for `kontexta.json`: JSON schema, validation rules, security guarantees, limitations, and an annotated example. Static document — does not read any project file or DB row. Read-only; no side effects, auth, or rate limits. Takes no parameters. Use when helping a user write or fix a `kontexta.json`; to see the loaded tools themselves use `
|
|
1578
|
+
"description": "Return the complete authoring reference for `kontexta.json`: JSON schema, validation rules, security guarantees, limitations, and an annotated example. Static document — does not read any project file or DB row. Read-only; no side effects, auth, or rate limits. Takes no parameters. Use when helping a user write or fix a `kontexta.json`; to see the loaded tools themselves use `hands.list`; to apply edits use `hands.reload`.",
|
|
1578
1579
|
"inputSchema": {
|
|
1579
1580
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1580
1581
|
"type": "object",
|
|
@@ -1768,13 +1769,13 @@
|
|
|
1768
1769
|
},
|
|
1769
1770
|
{
|
|
1770
1771
|
"name": "calendar.entities.update",
|
|
1771
|
-
"description": "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 `
|
|
1772
|
+
"description": "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.entities.delete`.",
|
|
1772
1773
|
"inputSchema": {
|
|
1773
1774
|
"type": "object",
|
|
1774
1775
|
"properties": {
|
|
1775
1776
|
"id": {
|
|
1776
1777
|
"type": "integer",
|
|
1777
|
-
"description": "Entity id (from `
|
|
1778
|
+
"description": "Entity id (from `calendar.entities.add` or `calendar.entities.list`)."
|
|
1778
1779
|
},
|
|
1779
1780
|
"name": {
|
|
1780
1781
|
"type": "string",
|
|
@@ -1819,7 +1820,7 @@
|
|
|
1819
1820
|
},
|
|
1820
1821
|
{
|
|
1821
1822
|
"name": "calendar.entities.delete",
|
|
1822
|
-
"description": "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 `
|
|
1823
|
+
"description": "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.entities.update` with `active: false` instead.",
|
|
1823
1824
|
"inputSchema": {
|
|
1824
1825
|
"type": "object",
|
|
1825
1826
|
"properties": {
|
|
@@ -1862,7 +1863,7 @@
|
|
|
1862
1863
|
},
|
|
1863
1864
|
{
|
|
1864
1865
|
"name": "calendar.entities.link",
|
|
1865
|
-
"description": "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 `
|
|
1866
|
+
"description": "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.events.conflicts`/`calendar.events.list` to flag overlaps across connected entities (one hop, either direction). Returns `{link}` or `{removed}`.",
|
|
1866
1867
|
"inputSchema": {
|
|
1867
1868
|
"type": "object",
|
|
1868
1869
|
"properties": {
|
|
@@ -1896,7 +1897,7 @@
|
|
|
1896
1897
|
},
|
|
1897
1898
|
{
|
|
1898
1899
|
"name": "calendar.events.add",
|
|
1899
|
-
"description": "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 `
|
|
1900
|
+
"description": "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.events.conflicts` to check for overlaps.",
|
|
1900
1901
|
"inputSchema": {
|
|
1901
1902
|
"type": "object",
|
|
1902
1903
|
"properties": {
|
|
@@ -2036,7 +2037,7 @@
|
|
|
2036
2037
|
},
|
|
2037
2038
|
{
|
|
2038
2039
|
"name": "calendar.events.list",
|
|
2039
|
-
"description": "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 `
|
|
2040
|
+
"description": "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.events.conflicts`.",
|
|
2040
2041
|
"inputSchema": {
|
|
2041
2042
|
"type": "object",
|
|
2042
2043
|
"properties": {
|
|
@@ -2075,7 +2076,7 @@
|
|
|
2075
2076
|
},
|
|
2076
2077
|
{
|
|
2077
2078
|
"name": "calendar.events.conflicts",
|
|
2078
|
-
"description": "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 `
|
|
2079
|
+
"description": "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.events.list` with `include_conflicts`.",
|
|
2079
2080
|
"inputSchema": {
|
|
2080
2081
|
"type": "object",
|
|
2081
2082
|
"properties": {
|
|
@@ -42,8 +42,8 @@ export function registerCalendarTools(server) {
|
|
|
42
42
|
return errorResult(e);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
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 `
|
|
46
|
-
id: z.number().int().describe("Entity id (from `
|
|
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.entities.delete`.", {
|
|
46
|
+
id: z.number().int().describe("Entity id (from `calendar.entities.add` or `calendar.entities.list`)."),
|
|
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'."),
|
|
49
49
|
notes: z.string().nullable().optional().describe("Freeform notes."),
|
|
@@ -58,7 +58,7 @@ export function registerCalendarTools(server) {
|
|
|
58
58
|
return errorResult(e);
|
|
59
59
|
}
|
|
60
60
|
});
|
|
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 `
|
|
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.entities.update` 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 });
|
|
@@ -74,7 +74,7 @@ export function registerCalendarTools(server) {
|
|
|
74
74
|
const entities = listEntities(input).map(withLinks);
|
|
75
75
|
return ok({ entities, count: entities.length });
|
|
76
76
|
});
|
|
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 `
|
|
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.events.conflicts`/`calendar.events.list` 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.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 `
|
|
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.events.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."),
|
|
@@ -137,7 +137,7 @@ export function registerCalendarTools(server) {
|
|
|
137
137
|
const existed = deleteEvent(id);
|
|
138
138
|
return ok({ success: true, existed });
|
|
139
139
|
});
|
|
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 `
|
|
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.events.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.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 \`
|
|
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.events.list\` 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."),
|
|
@@ -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,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAClF,YAAY,EAAE,cAAc,EAAE,SAAS,EACvC,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EACjD,aAAa,EACb,WAAW,GACZ,MAAM,WAAW,CAAC;AAGnB,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