kontexta 4.7.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/standalone/CHANGELOG.md +44 -0
- package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
- package/bundle/standalone/apps/web/.next/app-build-manifest.json +45 -45
- 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 +3 -3
- package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -1
- package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/about/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/clip/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/health/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/profile/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/search/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/welcome/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/calendar/page.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/login/page.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/page.js +3 -3
- package/bundle/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
- package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +1 -1
- package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +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-98057182511ba7e4.js +1 -0
- package/bundle/standalone/apps/web/package.json +5 -5
- package/bundle/standalone/apps/web/src/lib/mcp-tools.json +249 -557
- package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +22 -35
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +8 -8
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +458 -481
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +1 -27
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/package.json +2 -2
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +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/agent-rules/rules-block.md +22 -35
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.js +16 -4
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js +3 -7
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js +2 -7
- 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/patterns/tool-classes.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js +64 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js +4 -11
- 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/dist/util/paths.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/package.json +2 -2
- package/bundle/standalone/node_modules/kxta-publish/package.json +3 -3
- package/bundle/standalone/package.json +2 -2
- package/package.json +2 -2
- package/bundle/standalone/apps/web/.next/static/chunks/app/page-67aff4652e571aa1.js +0 -1
- /package/bundle/standalone/apps/web/.next/static/{Na5FCljVLhoIUnyjNShuM → hUyNKiBOk3HaC0S0gE_N8}/_buildManifest.js +0 -0
- /package/bundle/standalone/apps/web/.next/static/{Na5FCljVLhoIUnyjNShuM → hUyNKiBOk3HaC0S0gE_N8}/_ssgManifest.js +0 -0
|
@@ -21,17 +21,17 @@ This project is registered with kontexta. Honor these rules to keep the index, h
|
|
|
21
21
|
|
|
22
22
|
**Print the session welcome as your first message.** On the very first turn of any new session, call `admin.refresh_session_context` and print a brief greeting to the user based on what it returns — today's date, their name from the profile, upcoming events / conflicts if any, a nudge if the profile is empty or stale. 1–3 lines, not a report. Two reasons: (1) if the client lazy-loads MCP servers, this is what actually triggers `initialize`; (2) the user sees kontexta is connected and knows what context you have. Skip if the user's first message is already a work request — do the work.
|
|
23
23
|
|
|
24
|
-
**Search before reading.** Use `files.search
|
|
24
|
+
**Search before reading.** Use `files.search` (pass `include_bodies: true` for token-budgeted bodies) or `files.regex_search` to find context first. Skipping straight to `files.read` on a guessed path wastes tokens and often misses the right file.
|
|
25
25
|
|
|
26
|
-
**All KB writes go through kontexta.** Use `files.create` / `files.update`
|
|
26
|
+
**All KB writes go through kontexta.** Use `files.create` / `files.update` (pass `section` for a surgical single-heading edit) / `journal.write`. **Never** edit a KB file with raw filesystem tools (Edit/Write/cat) — the watcher and FTS index will diverge until `projects.refresh_index` runs, and subsequent searches will return stale results.
|
|
27
27
|
|
|
28
|
-
**Batch reads. Don't loop `files.read`.** Need ≥2 files? Call `files.
|
|
28
|
+
**Batch reads. Don't loop `files.read`.** Need ≥2 files? Call `files.read` with `ids: [...]` (one round-trip, up to 200 IDs) or `files.search` with `include_bodies: true` (token-budgeted blob). Looping single-ID `files.read` calls wastes round-trips and inflates response overhead.
|
|
29
29
|
|
|
30
30
|
**Address `journal.suggested_action` before the next tool call.** Many tool responses include a `journal` envelope. If `journal.suggested_action` is set (e.g., `"journal.distill"`), call that tool before issuing your next tool. To dismiss for the rest of the session, pass `journal_acknowledge: true` on your next tool call.
|
|
31
31
|
|
|
32
|
-
**Use `journal.note
|
|
32
|
+
**Use `journal.write({kind: "note", text, tags})` for decisions and abandonments.** When you make a non-obvious call, try something that doesn't work, or capture a workaround, log it. Hands runs are auto-captured now.
|
|
33
33
|
|
|
34
|
-
**Use `journal.intent
|
|
34
|
+
**Use `journal.write({kind: "intent", summary})` when the user pivots.** One short sentence so the distillation step knows the topic shifted.
|
|
35
35
|
|
|
36
36
|
**Strict mode awareness.** If a project sets `journal.mode = "strict"` in its `kontexta.json`, the MCP server returns a `JOURNAL_BACKLOG` error on read tools (search/read_*/list_*) when undistilled events exist. The error includes `next_action: "journal.distill"`. Either run `journal.distill` first, OR pass `journal_bypass: true` on the read call to override (logged for audit).
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@ This project is registered with kontexta. Honor these rules to keep the index, h
|
|
|
41
41
|
|
|
42
42
|
**Tag new KB files at creation time.** Pass `tags` on `files.create`, or call `tags.add` immediately after. Untagged files are recoverable but invisible to `files.find_related`.
|
|
43
43
|
|
|
44
|
-
**`admin.whats_new` early. `admin.commit_backup` late.** Run
|
|
44
|
+
**`admin.overview({mode: "whats_new"})` early. `admin.commit_backup` late.** Run it at session start if you've been away — it returns files added/changed since a cutoff. End the session with `admin.commit_backup` if you mutated KB files and the project has a remote.
|
|
45
45
|
|
|
46
46
|
**Use `.mmd` for diagrams, not fenced code in `.md`.** When creating an architecture / flow / sequence diagram, call `files.create` with `format: "mmd"` and put the raw mermaid source as the body (no ```` ```mermaid ```` fence). The web UI renders `.mmd` files as live diagrams with SVG/PNG export; mermaid embedded in markdown is just text. Default folder: `mermaid/` (or `<project>/mermaid/` for project-scoped diagrams).
|
|
47
47
|
|
|
@@ -52,7 +52,7 @@ KIs are curated, distilled KB files — the highest-signal context in the vault.
|
|
|
52
52
|
They save tokens and prevent redundant research when used correctly.
|
|
53
53
|
|
|
54
54
|
**Check KIs before independent research.** At the start of any task, run
|
|
55
|
-
`files.search`
|
|
55
|
+
`files.search` (optionally `include_bodies: true`) over the KB for the task topic. If a matching KI
|
|
56
56
|
exists, read it before writing code, designing architecture, or forming a plan.
|
|
57
57
|
Skipping this step is the single most common source of duplicated work.
|
|
58
58
|
|
|
@@ -62,17 +62,17 @@ cross-reference a KI's API patterns, file paths, and config values against the
|
|
|
62
62
|
|
|
63
63
|
**Close the loop: update the KI after significant changes.** When you ship a
|
|
64
64
|
meaningful change (new API, config schema change, architecture shift), update
|
|
65
|
-
the relevant KI via `files.update` or `
|
|
65
|
+
the relevant KI via `files.update` (whole file or, with `section`, one heading). If no KI exists
|
|
66
66
|
yet, create one with `files.create` under `knowledge/` with appropriate tags.
|
|
67
67
|
A KI that isn't maintained becomes noise — which is worse than no KI.
|
|
68
68
|
|
|
69
|
-
**Use `admin.whats_new` at session start after a gap.** If you haven't touched the
|
|
70
|
-
project in a while, run `
|
|
69
|
+
**Use `admin.overview({mode: "whats_new"})` at session start after a gap.** If you haven't touched the
|
|
70
|
+
project in a while, run it with `since: "7d"` to surface recently changed
|
|
71
71
|
files — including KIs updated by other agents or the user.
|
|
72
72
|
|
|
73
73
|
### Content class
|
|
74
74
|
|
|
75
|
-
`files.create`
|
|
75
|
+
`files.create` requires `kind` for KB writes (single file or `files` array, both):
|
|
76
76
|
- **`dictionary`** = source of truth (mappings, glossaries, runbooks, PR templates, architecture docs)
|
|
77
77
|
- **`note`** = snapshot (meeting notes, PR findings, sprint reviews, post-mortems, working thoughts)
|
|
78
78
|
|
|
@@ -86,10 +86,8 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
86
86
|
|
|
87
87
|
| Tool | When | Not when | Use instead |
|
|
88
88
|
|---|---|---|---|
|
|
89
|
-
| `files.search` | Natural-language keyword across KB (FTS) | Substrings, URLs, code idents | `files.regex_search` |
|
|
90
|
-
| `files.regex_search` | Substrings, URLs, code identifiers | Natural-language queries | `files.search` |
|
|
91
|
-
| `files.grep` | Substring/regex within ONE known file | Searching across files | `files.regex_search` |
|
|
92
|
-
| `files.bundle_search` | Need search hits + bodies in a token budget | Only need IDs | `files.search` |
|
|
89
|
+
| `files.search` | Natural-language keyword across KB (FTS); pass `include_bodies: true` for a token-budgeted bundle of hits + bodies | Substrings, URLs, code idents | `files.regex_search` |
|
|
90
|
+
| `files.regex_search` | Substrings, URLs, code identifiers across files; pass `file_id` to scan just one known file | Natural-language queries | `files.search` |
|
|
93
91
|
| `files.find_related` | Discover siblings via tag overlap | Text content matching | `files.search` |
|
|
94
92
|
| `tags.suggest` | Propose tags for an existing file | Finding files by tag | `files.find_related` |
|
|
95
93
|
|
|
@@ -97,11 +95,7 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
97
95
|
|
|
98
96
|
| Tool | When | Not when | Use instead |
|
|
99
97
|
|---|---|---|---|
|
|
100
|
-
| `files.read` | One file
|
|
101
|
-
| `files.read_many` | 2–200 file IDs in one call | Only need a section of one file | `files.read_section` |
|
|
102
|
-
| `files.read_by_path` | Known absolute path, no ID handy | You already have the ID | `files.read` |
|
|
103
|
-
| `files.read_lines` | Known line range | Guessing line numbers | `files.read_section` |
|
|
104
|
-
| `files.read_section` | Known heading | Need the whole file | `files.read` |
|
|
98
|
+
| `files.read` | One file (`id` or `path`), a batch (`ids`), or a partial read (`section` or `lines`) | Only metadata needed | `files.describe` |
|
|
105
99
|
| `files.read_outline` | Triaging an unfamiliar file's structure | Structure already known | `files.describe` |
|
|
106
100
|
| `files.describe` | Metadata only (size, tags, mtime) | Need content | `files.read` |
|
|
107
101
|
| `admin.get_profile` | Read user profile/context at session start | Reading normal files | `files.read` |
|
|
@@ -110,12 +104,9 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
110
104
|
|
|
111
105
|
| Tool | When | Not when | Use instead |
|
|
112
106
|
|---|---|---|---|
|
|
113
|
-
| `files.create` | One new file (md, mmd, or html via `format`) |
|
|
114
|
-
| `files.
|
|
115
|
-
| `files.
|
|
116
|
-
| `files.update_section` | Surgical edit at a known heading | Replacing the whole file | `files.update` |
|
|
117
|
-
| `files.delete` | One file | Bulk delete | `files.delete_many` |
|
|
118
|
-
| `files.delete_many` | 2+ files in one call | Single file | `files.delete` |
|
|
107
|
+
| `files.create` | One new file, or a `files` array for bulk-creating ≥2 (md, mmd, or html via `format`) | File already exists | `files.update` |
|
|
108
|
+
| `files.update` | Replacing the whole body, or a surgical edit at a known heading via `section` | File doesn't exist yet | `files.create` |
|
|
109
|
+
| `files.delete` | One file, or an `ids` array for bulk delete | Want to keep the file but hide it | `tags.remove` / `tags.set_favorite` |
|
|
119
110
|
| `files.move` | Rename or relocate a file | File content needs changing | `files.update` |
|
|
120
111
|
|
|
121
112
|
#### Organize
|
|
@@ -127,17 +118,15 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
127
118
|
| `tags.list` | Enumerate all tags in the vault | Want files for a given tag | `files.find_related` |
|
|
128
119
|
| `tags.set_favorite` | Pin / unpin a file | Semantic categorization | `tags.add` |
|
|
129
120
|
| `tags.search` | Bulk-tag every hit from a search | Tagging a single file | `tags.add` |
|
|
130
|
-
| `journal.
|
|
131
|
-
| `journal.
|
|
132
|
-
| `journal.append` | Append timestamped text to today's daily KB journal file | Structured notes | `journal.note` |
|
|
133
|
-
| `journal.distill` | Summarize accumulated journal events | Individual events | `journal.note` |
|
|
121
|
+
| `journal.write` | Log an event: `kind: "note"` (decision/workaround), `kind: "intent"` (topic pivot), or `kind: "append"` (timestamped daily journal entry) | Summarizing accumulated events | `journal.distill` |
|
|
122
|
+
| `journal.distill` | Summarize accumulated journal events | Individual events | `journal.write` |
|
|
134
123
|
| `journal.status` | Check backlog size and high-water mark before distilling | Need the raw events themselves | `journal.distill` |
|
|
135
124
|
| `journal.commit_upgrades` | Mark journal entries upgraded after a subagent rewrites them | Running the initial distillation | `journal.distill` |
|
|
136
125
|
| `journal.housekeep` | Prune old raw journal files and archive cold tasks | Need to distill new events first | `journal.distill` |
|
|
137
126
|
| `resources.clip_url` | Capture a web URL into the KB | Saving a local file | `files.create` |
|
|
138
127
|
| `folders.list` | Enumerate folders in the project | Finding files | `files.list` |
|
|
139
128
|
| `folders.create` | Create a new (possibly nested) folder | Files don't need explicit folders | |
|
|
140
|
-
| `folders.delete` | Remove an empty folder | Folder still has files | `files.
|
|
129
|
+
| `folders.delete` | Remove an empty folder | Folder still has files | `files.delete` (bulk) first |
|
|
141
130
|
|
|
142
131
|
#### Reports
|
|
143
132
|
|
|
@@ -166,8 +155,7 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
166
155
|
| `projects.list` | Enumerate registered projects | Files within one project | `files.list` |
|
|
167
156
|
| `files.list` | Files in a project (filterable) | Full-text content matters | `files.search` |
|
|
168
157
|
| `projects.map` | Folder/file tree for a project | Flat file list | `files.list` |
|
|
169
|
-
| `admin.
|
|
170
|
-
| `admin.whats_new` | Files added/changed since a cutoff | Full-text search | `files.search` |
|
|
158
|
+
| `admin.overview` | `mode: "stats"` for counts/health, `mode: "whats_new"` for files changed since a cutoff | Per-file detail or full-text search | `files.describe` / `files.search` |
|
|
171
159
|
| `admin.refresh_session_context` | Re-fetch profile + upcoming events after mid-session edits | Reading a single profile field | `admin.get_profile` |
|
|
172
160
|
|
|
173
161
|
#### Calendar
|
|
@@ -190,8 +178,7 @@ The matrix below is grouped by intent. For each tool: when to reach for it, the
|
|
|
190
178
|
|
|
191
179
|
| Tool | When | Not when | Use instead |
|
|
192
180
|
|---|---|---|---|
|
|
193
|
-
| `hands.list` | Enumerate Hands tools
|
|
194
|
-
| `hands.describe_schema` | Explain the `hands.yaml` format | Listing tools | `hands.list` |
|
|
181
|
+
| `hands.list` | Enumerate Hands tools; pass `schema: true` for the `kontexta.json` authoring reference | Neither list nor schema needed | |
|
|
195
182
|
| `hands.confirm` | Approve a Hands token within 60s of issue | Normal MCP tool calls | |
|
|
196
183
|
| `hands.reload` | Re-read `hands.yaml` after editing it | First-time use (auto-loads) | |
|
|
197
184
|
|
|
@@ -29,7 +29,7 @@ function withLinks(entity) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
export function registerCalendarTools(server) {
|
|
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 `
|
|
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.entities.link` 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,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,SAAS,WAAW,CAAC,CA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B,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -32,7 +32,7 @@ export function formatPendingConfirm(p) {
|
|
|
32
32
|
...p.resolvedArgv.map((a, i) => ` [${i}] ${a}`),
|
|
33
33
|
` Working dir: ${p.workingDir}`,
|
|
34
34
|
``,
|
|
35
|
-
`To approve, call:
|
|
35
|
+
`To approve, call: hands.confirm({ token: "${p.token}" })`,
|
|
36
36
|
`This token expires in 60 seconds.`,
|
|
37
37
|
].join("\n");
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../src/hands/formatter.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,gBAAgB,CAAC,QAAgB,EAAE,CAAa;IAC9D,MAAM,UAAU,GAAI;QAClB,OAAO,EAAE,iBAAiB,CAAC,CAAC,QAAQ,GAAG;QACvC,MAAM,EAAG,gBAAgB,CAAC,CAAC,QAAQ,GAAG;QACtC,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;KAC/D,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAEtB,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,MAAM,KAAK,GAAG;QACZ,YAAY,QAAQ,EAAE;QACtB,eAAe,UAAU,EAAE;QAC3B,iBAAiB,MAAM,GAAG;QAC1B,0BAA0B,CAAC,CAAC,UAAU,EAAE;QACxC,EAAE;QACF,YAAY;QACZ,KAAK;QACL,CAAC,CAAC,MAAM,IAAI,EAAE;QACd,KAAK;KACN,CAAC;IACF,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,KAAK,CA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AAY;QACZ,KAAK;QACL,CAAC,CAAC,MAAM,IAAI,EAAE;QACd,KAAK;KACN,CAAC;IACF,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAUD,MAAM,UAAU,oBAAoB,CAAC,CAAqB;IACxD,OAAO;QACL,mDAAmD;QACnD,EAAE;QACF,cAAc,CAAC,CAAC,QAAQ,EAAE;QAC1B,cAAc,CAAC,CAAC,WAAW,EAAE;QAC7B,uBAAuB;QACvB,GAAG,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAClD,kBAAkB,CAAC,CAAC,UAAU,EAAE;QAChC,EAAE;QACF,6CAA6C,CAAC,CAAC,KAAK,MAAM;QAC1D,mCAAmC;KACpC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -63,7 +63,7 @@ export function buildSchemaDoc() {
|
|
|
63
63
|
- **\`workingDir\`** — optional, relative to project root. Must not contain \`..\`. Symlinks are resolved and verified to remain inside the project root.
|
|
64
64
|
- **\`timeout\`** — optional, milliseconds. Default 60000, max 300000 (clamped).
|
|
65
65
|
- **\`danger\`** — \`safe | moderate | high\`. Default \`safe\`. Informational; \`confirm: true\` is what actually pauses execution.
|
|
66
|
-
- **\`confirm\`** — boolean, default false. When true, the first call returns a token; agent must call \`
|
|
66
|
+
- **\`confirm\`** — boolean, default false. When true, the first call returns a token; agent must call \`hands.confirm({ token })\` to actually execute.
|
|
67
67
|
- **\`disabled\`** — boolean, default false. Disabled tools are validated but never registered. Agent never sees them.
|
|
68
68
|
- **\`argSeparator\`** — boolean, default false. When true, \`--\` is inserted in argv before the first substituted element.
|
|
69
69
|
- **\`maxOutputBytes\`** — optional, per-stream output cap. Default 100000, max 1000000 (clamped).
|