kontexta 5.1.3 → 6.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 +51 -0
- package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
- package/bundle/standalone/apps/web/.next/app-build-manifest.json +99 -92
- package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +13 -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/required-server-files.json +1 -0
- package/bundle/standalone/apps/web/.next/routes-manifest.json +8 -0
- package/bundle/standalone/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- 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 +4 -4
- 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/agents/[id]/hooks/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/agents/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/agents/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/agents/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.js.nft.json +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 +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 +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 +9 -9
- 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.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.js.nft.json +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.js.nft.json +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/apple-icon.png/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/calendar/page.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/favicon.ico/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/icon.png/route.js.nft.json +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 +4 -4
- 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.js.nft.json +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 +4 -4
- package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +13 -12
- package/bundle/standalone/apps/web/.next/server/chunks/3668.js +2 -2
- 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/pages/_app.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/pages/_document.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/pages/_error.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/hooks/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/mcp/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/backlinks/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-html/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/reports/resources/[name]/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/version-check/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/welcome/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/calendar/page-7d520da68bac245d.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/{layout-da10917c290d5da7.js → layout-b3fc3a7cf96952bd.js} +1 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/page-f2e6293531d0db55.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-e920054b7eb00274.js +1 -0
- package/bundle/standalone/apps/web/.next/static/css/{c2dc6e054d3457fa.css → c9d10f1f97d629ff.css} +2 -2
- package/bundle/standalone/apps/web/package.json +6 -5
- package/bundle/standalone/apps/web/server.js +1 -1
- package/bundle/standalone/apps/web/src/lib/mcp-tools.json +126 -118
- package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +28 -185
- package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-reference.md +207 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +20 -20
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.d.ts +3 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.js +166 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.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/loader.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js +2 -2
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +26 -26
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks/emit.mjs +39 -2
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.js +2 -2
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +240 -94
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +8 -8
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +2 -2
- package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/011-journal-files-in-kb.sql +2 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/012-agents-mcp.sql +6 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.d.ts +7 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.js +13 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/package.json +5 -2
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.d.ts +5 -0
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +84 -25
- 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 +28 -185
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-reference.md +207 -0
- package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.d.ts +25 -1
- package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.js +159 -32
- package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/011-journal-files-in-kb.sql +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/012-agents-mcp.sql +6 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.d.ts +71 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.js +192 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/index.d.ts +9 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/index.js +10 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.d.ts +20 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.js +124 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.d.ts +20 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.js +28 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.d.ts +30 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.js +57 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/types.d.ts +42 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/types.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/types.js +7 -0
- package/bundle/standalone/node_modules/kxta-core/dist/decision/types.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/files/index.d.ts +3 -1
- package/bundle/standalone/node_modules/kxta-core/dist/files/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/files/index.js +10 -1
- package/bundle/standalone/node_modules/kxta-core/dist/files/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.d.ts +19 -2
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.js +15 -15
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.d.ts +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js +5 -5
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/emit.mjs +39 -2
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.d.ts +2 -2
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.js +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.js +75 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.js +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.js +4 -3
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.js +0 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.js +107 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.js +4 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.d.ts +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.js +27 -13
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.d.ts +11 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.js +29 -3
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts +5 -1
- package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/index.js +5 -1
- package/bundle/standalone/node_modules/kxta-core/dist/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.js +27 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.d.ts +41 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.js +140 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/index.d.ts +14 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/index.js +15 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.d.ts +132 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.js +311 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/types.d.ts +53 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/types.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/types.js +6 -0
- package/bundle/standalone/node_modules/kxta-core/dist/inference/types.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js +26 -10
- package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.d.ts +31 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.js +94 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.js.map +1 -0
- 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 +5 -0
- 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.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js +30 -5
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js +2 -2
- package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts +34 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.js +251 -6
- package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.d.ts +8 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.js +8 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.d.ts +31 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.js +55 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.d.ts +10 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.js +7 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.d.ts +46 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.js +113 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.js +115 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.js +76 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.js +64 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.js +90 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.js +17 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.d.ts +31 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.js +136 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.d.ts +5 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.js +19 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.d.ts +5 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.js +62 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.d.ts +55 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.js +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.js +25 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.d.ts +5 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.js +17 -0
- package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js +12 -1
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.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/rerank/arbitrator.d.ts +29 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.js +68 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.d.ts +57 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.js +199 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.d.ts +7 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.js +8 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.d.ts +50 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.js +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/types.d.ts +5 -0
- package/bundle/standalone/node_modules/kxta-core/dist/types.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js +1 -1
- package/bundle/standalone/node_modules/kxta-core/package.json +7 -3
- package/bundle/standalone/node_modules/kxta-publish/package.json +3 -3
- package/bundle/standalone/package.json +3 -2
- package/dist/connect-AL5DTU3K.js +22 -0
- package/dist/index.js +7 -1
- package/dist/{start-RJVUJT4B.js → start-GP4ERBBP.js} +7 -0
- package/package.json +6 -2
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/hooks/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/backlinks/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-html/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/reports/resources/[name]/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/version-check/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/welcome/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-0cc6597bb67aea3b.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/calendar/page-f9542f9f518f9257.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/page-19695d4fd9fa5c0a.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-0cc6597bb67aea3b.js +0 -1
- /package/bundle/standalone/apps/web/.next/static/{KgyobLEcr42ig4jXUMcNO → olhhWqI4356zOu5Kz_S1K}/_buildManifest.js +0 -0
- /package/bundle/standalone/apps/web/.next/static/{KgyobLEcr42ig4jXUMcNO → olhhWqI4356zOu5Kz_S1K}/_ssgManifest.js +0 -0
|
@@ -1,194 +1,37 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
2
|
+
Compact kontexta rules stub — injected into agent context files
|
|
3
|
+
(CLAUDE.md, GEMINI.md, AGENTS.md, .cursor/rules/kontexta.mdc, etc.).
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
3. "Use instead" is the BETTER sibling tool. Empty if no sibling.
|
|
8
|
-
4. Every row stands alone — no cross-references.
|
|
9
|
-
5. Every new server.tool() in apps/mcp/src/index.ts MUST add a row in the
|
|
10
|
-
relevant bucket below AND bump rulesVersion in packages/core/package.json.
|
|
11
|
-
Tests enforce this.
|
|
5
|
+
The full reference (tool routing matrix, KI workflow, content class) lives in
|
|
6
|
+
rules-reference.md and is written to KONTEXTA.md at the project root by
|
|
7
|
+
syncAgentRules(). This stub is kept small to minimize per-turn token cost.
|
|
12
8
|
|
|
13
9
|
The placeholder {{VERSION}} is substituted at module init with RULE_BLOCK_VERSION.
|
|
14
10
|
-->
|
|
15
11
|
<!-- BEGIN kontexta:rules v{{VERSION}} -->
|
|
16
12
|
## Working with kontexta
|
|
17
13
|
|
|
18
|
-
This project
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
**
|
|
23
|
-
|
|
24
|
-
**Search before reading.** Use `
|
|
25
|
-
|
|
26
|
-
**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
**
|
|
31
|
-
|
|
32
|
-
**
|
|
33
|
-
|
|
34
|
-
**
|
|
35
|
-
|
|
36
|
-
**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
**
|
|
41
|
-
|
|
42
|
-
**Save specs to a canonical location.** When generating a spec, plan, or design doc, write it to the KB at `specs/<project-name>/<spec-name>.md` (use `files.create` with `destination: "knowledge"`, `folder: "specs/<project-name>"`). One folder per project keeps specs queryable.
|
|
43
|
-
|
|
44
|
-
**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`.
|
|
45
|
-
|
|
46
|
-
**`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.
|
|
47
|
-
|
|
48
|
-
**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).
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
### Knowledge Items (KI)
|
|
52
|
-
|
|
53
|
-
KIs are curated, distilled KB files — the highest-signal context in the vault.
|
|
54
|
-
They save tokens and prevent redundant research when used correctly.
|
|
55
|
-
|
|
56
|
-
**Check KIs before independent research.** At the start of any task, run
|
|
57
|
-
`files.search` (optionally `include_bodies: true`) over the KB for the task topic. If a matching KI
|
|
58
|
-
exists, read it before writing code, designing architecture, or forming a plan.
|
|
59
|
-
Skipping this step is the single most common source of duplicated work.
|
|
60
|
-
|
|
61
|
-
**KIs are starting points, not ground truth.** KIs are snapshots. Always
|
|
62
|
-
cross-reference a KI's API patterns, file paths, and config values against the
|
|
63
|
-
*current* source on disk before acting on them. KIs can lag behind code.
|
|
64
|
-
|
|
65
|
-
**Close the loop: update the KI after significant changes.** When you ship a
|
|
66
|
-
meaningful change (new API, config schema change, architecture shift), update
|
|
67
|
-
the relevant KI via `files.update` (whole file or, with `section`, one heading). If no KI exists
|
|
68
|
-
yet, create one with `files.create` under `knowledge/` with appropriate tags.
|
|
69
|
-
A KI that isn't maintained becomes noise — which is worse than no KI.
|
|
70
|
-
|
|
71
|
-
**Use `admin.overview({mode: "whats_new"})` at session start after a gap.** If you haven't touched the
|
|
72
|
-
project in a while, run it with `since: "7d"` to surface recently changed
|
|
73
|
-
files — including KIs updated by other agents or the user.
|
|
74
|
-
|
|
75
|
-
### Content class
|
|
76
|
-
|
|
77
|
-
`files.create` requires `kind` for KB writes (single file or `files` array, both):
|
|
78
|
-
- **`dictionary`** = source of truth (mappings, glossaries, runbooks, PR templates, architecture docs)
|
|
79
|
-
- **`note`** = snapshot (meeting notes, PR findings, sprint reviews, post-mortems, working thoughts)
|
|
80
|
-
|
|
81
|
-
Test: *if this file disagreed with the code, who wins?* File wins → dictionary; file loses → note. Search ranks dictionary hits above everything else; filter with `kind` on any read tool for one class. `journal`/`project` are auto-assigned — don't pass them to `files.create`.
|
|
82
|
-
|
|
83
|
-
### Tool reference
|
|
84
|
-
|
|
85
|
-
The matrix below is grouped by intent. For each tool: when to reach for it, the most common wrong context, and the better sibling tool when wrong.
|
|
86
|
-
|
|
87
|
-
#### Find
|
|
88
|
-
|
|
89
|
-
| Tool | When | Not when | Use instead |
|
|
90
|
-
|---|---|---|---|
|
|
91
|
-
| `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` |
|
|
92
|
-
| `files.regex_search` | Substrings, URLs, code identifiers across files; pass `file_id` to scan just one known file | Natural-language queries | `files.search` |
|
|
93
|
-
| `files.find_related` | Discover siblings via tag overlap | Text content matching | `files.search` |
|
|
94
|
-
| `tags.suggest` | Propose tags for an existing file | Finding files by tag | `files.find_related` |
|
|
95
|
-
|
|
96
|
-
#### Read
|
|
97
|
-
|
|
98
|
-
| Tool | When | Not when | Use instead |
|
|
99
|
-
|---|---|---|---|
|
|
100
|
-
| `files.read` | One file (`id` or `path`), a batch (`ids`), or a partial read (`section` or `lines`) | Only metadata needed | `files.describe` |
|
|
101
|
-
| `files.read_outline` | Triaging an unfamiliar file's structure | Structure already known | `files.describe` |
|
|
102
|
-
| `files.describe` | Metadata only (size, tags, mtime) | Need content | `files.read` |
|
|
103
|
-
| `admin.get_profile` | Read user profile/context at session start | Reading normal files | `files.read` |
|
|
104
|
-
|
|
105
|
-
#### Write
|
|
106
|
-
|
|
107
|
-
| Tool | When | Not when | Use instead |
|
|
108
|
-
|---|---|---|---|
|
|
109
|
-
| `files.create` | One new file, or a `files` array for bulk-creating ≥2 (md, mmd, or html via `format`) | File already exists | `files.update` |
|
|
110
|
-
| `files.update` | Replacing the whole body, or a surgical edit at a known heading via `section` | File doesn't exist yet | `files.create` |
|
|
111
|
-
| `files.delete` | One file, or an `ids` array for bulk delete | Want to keep the file but hide it | `tags.remove` / `tags.set_favorite` |
|
|
112
|
-
| `files.move` | Rename or relocate a file | File content needs changing | `files.update` |
|
|
113
|
-
|
|
114
|
-
#### Organize
|
|
115
|
-
|
|
116
|
-
| Tool | When | Not when | Use instead |
|
|
117
|
-
|---|---|---|---|
|
|
118
|
-
| `tags.add` | Tag an existing file | Tagging at creation time | `files.create` (with `tags` param) |
|
|
119
|
-
| `tags.remove` | Untag a file | Want to delete the file | `files.delete` |
|
|
120
|
-
| `tags.list` | Enumerate all tags in the vault | Want files for a given tag | `files.find_related` |
|
|
121
|
-
| `tags.set_favorite` | Pin / unpin a file | Semantic categorization | `tags.add` |
|
|
122
|
-
| `tags.search` | Bulk-tag every hit from a search | Tagging a single file | `tags.add` |
|
|
123
|
-
| `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` |
|
|
124
|
-
| `journal.distill` | Summarize accumulated journal events | Individual events | `journal.write` |
|
|
125
|
-
| `journal.status` | Check backlog size and high-water mark before distilling | Need the raw events themselves | `journal.distill` |
|
|
126
|
-
| `journal.commit_upgrades` | Mark journal entries upgraded after a subagent rewrites them | Running the initial distillation | `journal.distill` |
|
|
127
|
-
| `journal.housekeep` | Prune old raw journal files and archive cold tasks | Need to distill new events first | `journal.distill` |
|
|
128
|
-
| `resources.clip_url` | Capture a web URL into the KB | Saving a local file | `files.create` |
|
|
129
|
-
| `folders.list` | Enumerate folders in the project | Finding files | `files.list` |
|
|
130
|
-
| `folders.create` | Create a new (possibly nested) folder | Files don't need explicit folders | |
|
|
131
|
-
| `folders.delete` | Remove an empty folder | Folder still has files | `files.delete` (bulk) first |
|
|
132
|
-
|
|
133
|
-
#### Reports
|
|
134
|
-
|
|
135
|
-
| Tool | When | Not when | Use instead |
|
|
136
|
-
|---|---|---|---|
|
|
137
|
-
| `resources.add_report` | Add an image to the shared `reports/resources/` pool | Embedding data URIs | |
|
|
138
|
-
| `resources.list_reports` | List all shared report resources | Need full file list | `files.list` |
|
|
139
|
-
| `resources.delete_report` | Delete a shared resource by name | Deleting a report file | `files.delete` |
|
|
140
|
-
| `resources.export_report` | Export an HTML report as PDF or PNG | Exporting markdown | |
|
|
141
|
-
|
|
142
|
-
#### History & recovery
|
|
143
|
-
|
|
144
|
-
| Tool | When | Not when | Use instead |
|
|
145
|
-
|---|---|---|---|
|
|
146
|
-
| `files.get_history` | List a file's revisions | Want a diff between two revisions | `files.get_diff` |
|
|
147
|
-
| `files.get_diff` | Compare two specific revisions | Want full content of one | `files.restore` |
|
|
148
|
-
| `files.restore` | Roll back a KB file to an earlier revision | Want to use raw `git` | |
|
|
149
|
-
| `files.diff_against_disk` | Find drift after raw filesystem edits | Normal search staleness | `projects.refresh_index` |
|
|
150
|
-
| `projects.refresh_index` | Rescan after out-of-band changes | Normal in-app edits | |
|
|
151
|
-
| `admin.commit_backup` | Push KB changes to remote git | Local-only work | |
|
|
152
|
-
|
|
153
|
-
#### Discover
|
|
154
|
-
|
|
155
|
-
| Tool | When | Not when | Use instead |
|
|
156
|
-
|---|---|---|---|
|
|
157
|
-
| `projects.list` | Enumerate registered projects | Files within one project | `files.list` |
|
|
158
|
-
| `files.list` | Files in a project (filterable) | Full-text content matters | `files.search` |
|
|
159
|
-
| `projects.map` | Folder/file tree for a project | Flat file list | `files.list` |
|
|
160
|
-
| `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` |
|
|
161
|
-
| `admin.refresh_session_context` | Re-fetch profile + upcoming events after mid-session edits | Reading a single profile field | `admin.get_profile` |
|
|
162
|
-
|
|
163
|
-
#### Calendar
|
|
164
|
-
|
|
165
|
-
| Tool | When | Not when | Use instead |
|
|
166
|
-
|---|---|---|---|
|
|
167
|
-
| `calendar.entities.add` | Register a new thing to track (server, vehicle, location, etc.) | Entity already exists | `calendar.entities.update` |
|
|
168
|
-
| `calendar.entities.update` | Rename, retag, or retire (`active:false`) an entity | Entity doesn't exist yet | `calendar.entities.add` |
|
|
169
|
-
| `calendar.entities.delete` | Permanently remove an entity, cascading its events/links | Just want to stop scheduling against it | `calendar.entities.update` |
|
|
170
|
-
| `calendar.entities.list` | Enumerate entities with their dependency links | Need conflict or event data | `calendar.events.conflicts` |
|
|
171
|
-
| `calendar.entities.link` | Record or remove a dependency edge for conflict detection | Want to see existing links | `calendar.entities.list` |
|
|
172
|
-
| `calendar.events.add` | Schedule a one-off event (downtime, maintenance, delivery, etc.) | Editing an existing event | `calendar.events.update` |
|
|
173
|
-
| `calendar.events.update` | Move, retitle, or re-home an existing event | Event doesn't exist yet | `calendar.events.add` |
|
|
174
|
-
| `calendar.events.delete` | Remove one event permanently | Want to just move it | `calendar.events.update` |
|
|
175
|
-
| `calendar.events.list` | List/filter events in a time window | Only need the conflict report | `calendar.events.conflicts` |
|
|
176
|
-
| `calendar.events.conflicts` | Find overlapping or too-close-together events in a window | Just need the raw event list | `calendar.events.list` |
|
|
177
|
-
| `calendar.export_ics` | Export a window as an ICS file for calendar apps | Need machine-readable event data | `calendar.events.list` |
|
|
178
|
-
|
|
179
|
-
#### Hands (project tools)
|
|
180
|
-
|
|
181
|
-
| Tool | When | Not when | Use instead |
|
|
182
|
-
|---|---|---|---|
|
|
183
|
-
| `hands.list` | Enumerate Hands tools; pass `schema: true` for the `kontexta.json` authoring reference | Neither list nor schema needed | |
|
|
184
|
-
| `hands.confirm` | Approve a Hands token within 60s of issue | Normal MCP tool calls | |
|
|
185
|
-
| `hands.reload` | Re-read `hands.yaml` after editing it | First-time use (auto-loads) | |
|
|
186
|
-
|
|
187
|
-
#### Onboarding
|
|
188
|
-
|
|
189
|
-
| Tool | When | Not when | Use instead |
|
|
190
|
-
|---|---|---|---|
|
|
191
|
-
| `projects.register` | Register a new project root with kontexta | Already registered | `projects.list` |
|
|
192
|
-
| `admin.onboard_agent` | Write/update the rules block in CLAUDE.md / AGENTS.md / etc. | Editing regular project content | `files.update` |
|
|
193
|
-
| `admin.transfer_agent_context` | Copy CLAUDE.md / AGENTS.md / `.cursor/rules/*.mdc` etc. from the project repo into Kontexta's KB. Originals are NEVER deleted by this tool. | User wants files to stay in the repo (default) | `projects.register` (which keeps files in place) |
|
|
14
|
+
This project uses kontexta for context, knowledge, and journal management. Tools live under the `kxta` MCP server.
|
|
15
|
+
|
|
16
|
+
**Core constraints:**
|
|
17
|
+
- **Session start:** Call `admin_refresh_session_context` on turn 1; print a 1–3 line greeting (date, profile, conflicts). Skip if the user's first message is a task.
|
|
18
|
+
- **User profile:** Call `admin_get_profile` to read user context, role, preferences, and goals.
|
|
19
|
+
- **All KB writes go through kontexta.** Use `files_create` / `files_update` / `journal_write`. Never edit KB files with raw filesystem tools. Never write context artifacts (diagrams, specs, notes, `.mmd` files) directly into the project repo — use `files_create` with `destination: "knowledge"`.
|
|
20
|
+
- **Search before reading.** Use `files_search` (no bodies first; `include_bodies` only for several files at once, with a small `max_tokens`) or `files_regex_search`, then `files_read` the top hit, not a guessed path.
|
|
21
|
+
- **Act on `journal.suggested_action`** before your next tool call, or pass `journal_acknowledge: true` to dismiss.
|
|
22
|
+
- **Tag new KB files** at creation time via `tags` on `files_create` or `tags_add`.
|
|
23
|
+
- **Use `.mmd` for diagrams** via `files_create` with `format: "mmd"`, `destination: "knowledge"`. Never fenced mermaid in `.md`, never `.mmd` files in the project repo.
|
|
24
|
+
- **Confirm Hands tokens within 60 seconds.** Tokens expire.
|
|
25
|
+
- **Log decisions** with `journal_write({kind: "note"})` and **topic pivots** with `journal_write({kind: "intent"})`.
|
|
26
|
+
- **Relay `hooks` prompts** once per session when present in tool responses.
|
|
27
|
+
|
|
28
|
+
**Strict folder structure in Knowledge Base:**
|
|
29
|
+
All context artifacts must strictly follow this folder hierarchy inside the Knowledge Base (`destination: "knowledge"`):
|
|
30
|
+
- **HTML reports:** `html/` (use `files_create` with `format: "html"`, `destination: "knowledge"`)
|
|
31
|
+
- **Mermaid diagrams (`.mmd`):** `mermaid/` (use `files_create` with `format: "mmd"`, `destination: "knowledge"`)
|
|
32
|
+
- **Journals:** `journal/` (managed via `journal_write` / `journal_distill`)
|
|
33
|
+
- **Knowledge Base files:** `knowledge/dictionary/` (`kind: "dictionary"` for sources of truth) or `knowledge/notes/` (`kind: "note"` for working notes & snapshots)
|
|
34
|
+
Never write context or diagram files directly into the project repository.
|
|
35
|
+
|
|
36
|
+
**Full rules, tool routing matrix, and workflow guidance:** See [KONTEXTA.md](./KONTEXTA.md).
|
|
194
37
|
<!-- END kontexta:rules v{{VERSION}} -->
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Full kontexta rules reference — written to KONTEXTA.md at the project root.
|
|
3
|
+
|
|
4
|
+
This file is the single source of truth for all kontexta workflow rules,
|
|
5
|
+
tool routing guidance, Knowledge Items (KI) policies, and content class
|
|
6
|
+
definitions. Agent context files (CLAUDE.md, GEMINI.md, AGENTS.md, etc.)
|
|
7
|
+
contain a compact stub that links here.
|
|
8
|
+
|
|
9
|
+
Authoring rules:
|
|
10
|
+
1. One clause per cell. <= 80 chars. Verbs, no fluff.
|
|
11
|
+
2. "When NOT" is the documented failure mode, not a hypothetical edge case.
|
|
12
|
+
3. "Use instead" is the BETTER sibling tool. Empty if no sibling.
|
|
13
|
+
4. Every row stands alone — no cross-references.
|
|
14
|
+
5. Every new server.tool() in apps/mcp/src/index.ts MUST add a row in the
|
|
15
|
+
relevant bucket below AND bump rulesVersion in packages/core/package.json.
|
|
16
|
+
Tests enforce this.
|
|
17
|
+
|
|
18
|
+
The placeholder {{VERSION}} is substituted at runtime with RULE_BLOCK_VERSION.
|
|
19
|
+
-->
|
|
20
|
+
# Kontexta Rules Reference v{{VERSION}}
|
|
21
|
+
|
|
22
|
+
This project is registered with kontexta. Honor these rules to keep the index, history, and journal coherent — and to avoid burning tokens on workflows kontexta already solves. Tools live under the `kxta` MCP server.
|
|
23
|
+
|
|
24
|
+
## Core rules
|
|
25
|
+
|
|
26
|
+
**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.
|
|
27
|
+
|
|
28
|
+
**Search before reading.** Use `files_search` (ranked matches with excerpts; add `include_bodies: true` only when you need several files at once, with a small `max_tokens`) or `files_regex_search` to find context first, then `files_read` the top hit. Skipping straight to `files_read` on a guessed path wastes tokens and often misses the right file.
|
|
29
|
+
|
|
30
|
+
**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. **Never write context artifacts directly into the project repository.** All diagrams, event/timeline charts, specs, mockups, and notes belong in the KB via `files_create` (`destination: "knowledge"`). Never use agent filesystem tools (`write_to_file`, `create_file`, bash redirects) to create context or `.mmd` files in the project workspace — doing so pollutes the project repo and triggers unexpected git commits.
|
|
31
|
+
|
|
32
|
+
**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` and a modest `max_tokens` (default 12000). Looping single-ID `files_read` calls wastes round-trips and inflates response overhead.
|
|
33
|
+
|
|
34
|
+
**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.
|
|
35
|
+
|
|
36
|
+
**Relay `hooks` prompts once per session.** If a tool response carries a `hooks.prompt` (or the session welcome mentions hooks), tell the user once that kontexta can capture their conversation and shell commands for the agents they enabled. Only call `admin_onboard_agent` with `hooks: true` after they agree.
|
|
37
|
+
|
|
38
|
+
**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.
|
|
39
|
+
|
|
40
|
+
**Use `journal_write({kind: "intent", summary})` when the user pivots.** One short sentence so the distillation step knows the topic shifted.
|
|
41
|
+
|
|
42
|
+
**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).
|
|
43
|
+
|
|
44
|
+
**Confirm Hands tokens within 60 seconds.** When a Hands tool returns an approval token, do NOT chain a long question or another tool call before `hands_confirm`. Tokens expire; the user will have to re-issue the whole flow.
|
|
45
|
+
|
|
46
|
+
**Save specs to a canonical location.** When generating a spec, plan, or design doc, write it to the KB at `specs/<project-name>/<spec-name>.md` (use `files_create` with `destination: "knowledge"`, `folder: "specs/<project-name>"`). One folder per project keeps specs queryable.
|
|
47
|
+
|
|
48
|
+
**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`.
|
|
49
|
+
|
|
50
|
+
**`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.
|
|
51
|
+
|
|
52
|
+
**Use `.mmd` for diagrams, not fenced code in `.md`.** When creating an architecture / flow / sequence diagram, or visualizing calendar events/timelines, call `files_create` with `format: "mmd"` and `destination: "knowledge"`, putting the raw mermaid source as the body (no ```` ```mermaid ```` fence). Never write `.mmd` files directly into the project repo. 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).
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Knowledge Items (KI)
|
|
56
|
+
|
|
57
|
+
KIs are curated, distilled KB files — the highest-signal context in the vault.
|
|
58
|
+
They save tokens and prevent redundant research when used correctly.
|
|
59
|
+
|
|
60
|
+
**Check KIs before independent research.** At the start of any task, run
|
|
61
|
+
`files_search` over the KB for the task topic (no bodies first; `files_read` the best hit). If a matching KI
|
|
62
|
+
exists, read it before writing code, designing architecture, or forming a plan.
|
|
63
|
+
Skipping this step is the single most common source of duplicated work.
|
|
64
|
+
|
|
65
|
+
**KIs are starting points, not ground truth.** KIs are snapshots. Always
|
|
66
|
+
cross-reference a KI's API patterns, file paths, and config values against the
|
|
67
|
+
*current* source on disk before acting on them. KIs can lag behind code.
|
|
68
|
+
|
|
69
|
+
**Close the loop: update the KI after significant changes.** When you ship a
|
|
70
|
+
meaningful change (new API, config schema change, architecture shift), update
|
|
71
|
+
the relevant KI via `files_update` (whole file or, with `section`, one heading). If no KI exists
|
|
72
|
+
yet, create one with `files_create` under `knowledge/` with appropriate tags.
|
|
73
|
+
A KI that isn't maintained becomes noise — which is worse than no KI.
|
|
74
|
+
|
|
75
|
+
**Use `admin_overview({mode: "whats_new"})` at session start after a gap.** If you haven't touched the
|
|
76
|
+
project in a while, run it with `since: "7d"` to surface recently changed
|
|
77
|
+
files — including KIs updated by other agents or the user.
|
|
78
|
+
|
|
79
|
+
## Content class
|
|
80
|
+
|
|
81
|
+
`files_create` requires `kind` for KB writes (single file or `files` array, both):
|
|
82
|
+
- **`dictionary`** = source of truth (mappings, glossaries, runbooks, PR templates, architecture docs)
|
|
83
|
+
- **`note`** = snapshot (meeting notes, PR findings, sprint reviews, post-mortems, working thoughts)
|
|
84
|
+
|
|
85
|
+
Test: *if this file disagreed with the code, who wins?* File wins → dictionary; file loses → note. Search ranks dictionary hits above everything else; filter with `kind` on any read tool for one class. `journal`/`project` are auto-assigned — don't pass them to `files_create`.
|
|
86
|
+
|
|
87
|
+
## Folder structure
|
|
88
|
+
|
|
89
|
+
All files and context artifacts created through kontexta must strictly follow this folder hierarchy inside the Knowledge Base (`destination: "knowledge"`):
|
|
90
|
+
- **HTML reports:** `html/` (use `files_create` with `format: "html"`, `destination: "knowledge"`)
|
|
91
|
+
- **Mermaid diagrams (`.mmd`):** `mermaid/` (use `files_create` with `format: "mmd"`, `destination: "knowledge"`)
|
|
92
|
+
- **Journals:** `journal/` (managed via `journal_write` / `journal_distill`)
|
|
93
|
+
- **Knowledge Base files:** `knowledge/dictionary/` (`kind: "dictionary"` for authoritative sources of truth) or `knowledge/notes/` (`kind: "note"` for working notes, meeting notes, and snapshots)
|
|
94
|
+
|
|
95
|
+
Never create context or diagram files directly in the project workspace or outside these designated folders.
|
|
96
|
+
|
|
97
|
+
## Tool reference
|
|
98
|
+
|
|
99
|
+
The matrix below is grouped by intent. For each tool: when to reach for it, the most common wrong context, and the better sibling tool when wrong.
|
|
100
|
+
|
|
101
|
+
### Find
|
|
102
|
+
|
|
103
|
+
| Tool | When | Not when | Use instead |
|
|
104
|
+
|---|---|---|---|
|
|
105
|
+
| `files_search` | Natural-language keyword across KB (FTS); `include_bodies: true` returns a bundle of hits + bodies capped at `max_tokens` (default 12000); use it sparingly | Substrings, URLs, code idents | `files_regex_search` |
|
|
106
|
+
| `files_regex_search` | Substrings, URLs, code identifiers across files; pass `file_id` to scan just one known file | Natural-language queries | `files_search` |
|
|
107
|
+
| `files_find_related` | Discover siblings via tag overlap | Text content matching | `files_search` |
|
|
108
|
+
| `tags_suggest` | Propose tags for an existing file | Finding files by tag | `files_find_related` |
|
|
109
|
+
|
|
110
|
+
### Read
|
|
111
|
+
|
|
112
|
+
| Tool | When | Not when | Use instead |
|
|
113
|
+
|---|---|---|---|
|
|
114
|
+
| `files_read` | One file (`id` or `path`), a batch (`ids`), or a partial read (`section` or `lines`) | Only metadata needed | `files_describe` |
|
|
115
|
+
| `files_read_outline` | Triaging an unfamiliar file's structure | Structure already known | `files_describe` |
|
|
116
|
+
| `files_describe` | Metadata only (size, tags, mtime) | Need content | `files_read` |
|
|
117
|
+
| `admin_get_profile` | Read user profile/context at session start | Reading normal files | `files_read` |
|
|
118
|
+
|
|
119
|
+
### Write
|
|
120
|
+
|
|
121
|
+
| Tool | When | Not when | Use instead |
|
|
122
|
+
|---|---|---|---|
|
|
123
|
+
| `files_create` | One new file, or a `files` array for bulk-creating ≥2 (md, mmd, or html via `format`) | File already exists | `files_update` |
|
|
124
|
+
| `files_update` | Replacing the whole body, or a surgical edit at a known heading via `section` | File doesn't exist yet | `files_create` |
|
|
125
|
+
| `files_delete` | One file, or an `ids` array for bulk delete | Want to keep the file but hide it | `tags_remove` / `tags_set_favorite` |
|
|
126
|
+
| `files_move` | Rename or relocate a file | File content needs changing | `files_update` |
|
|
127
|
+
|
|
128
|
+
### Organize
|
|
129
|
+
|
|
130
|
+
| Tool | When | Not when | Use instead |
|
|
131
|
+
|---|---|---|---|
|
|
132
|
+
| `tags_add` | Tag an existing file | Tagging at creation time | `files_create` (with `tags` param) |
|
|
133
|
+
| `tags_remove` | Untag a file | Want to delete the file | `files_delete` |
|
|
134
|
+
| `tags_list` | Enumerate all tags in the vault | Want files for a given tag | `files_find_related` |
|
|
135
|
+
| `tags_set_favorite` | Pin / unpin a file | Semantic categorization | `tags_add` |
|
|
136
|
+
| `tags_search` | Bulk-tag every hit from a search | Tagging a single file | `tags_add` |
|
|
137
|
+
| `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` |
|
|
138
|
+
| `journal_distill` | Summarize accumulated journal events | Individual events | `journal_write` |
|
|
139
|
+
| `journal_status` | Check backlog size and high-water mark before distilling | Need the raw events themselves | `journal_distill` |
|
|
140
|
+
| `journal_commit_upgrades` | Mark journal entries upgraded after a subagent rewrites them | Running the initial distillation | `journal_distill` |
|
|
141
|
+
| `journal_housekeep` | Prune old raw journal files and archive cold tasks | Need to distill new events first | `journal_distill` |
|
|
142
|
+
| `resources_clip_url` | Capture a web URL into the KB | Saving a local file | `files_create` |
|
|
143
|
+
| `folders_list` | Enumerate folders in the project | Finding files | `files_list` |
|
|
144
|
+
| `folders_create` | Create a new (possibly nested) folder | Files don't need explicit folders | |
|
|
145
|
+
| `folders_delete` | Remove an empty folder | Folder still has files | `files_delete` (bulk) first |
|
|
146
|
+
|
|
147
|
+
### Reports
|
|
148
|
+
|
|
149
|
+
| Tool | When | Not when | Use instead |
|
|
150
|
+
|---|---|---|---|
|
|
151
|
+
| `resources_add_report` | Add an image to the shared `reports/resources/` pool | Embedding data URIs | |
|
|
152
|
+
| `resources_list_reports` | List all shared report resources | Need full file list | `files_list` |
|
|
153
|
+
| `resources_delete_report` | Delete a shared resource by name | Deleting a report file | `files_delete` |
|
|
154
|
+
| `resources_export_report` | Export an HTML report as PDF or PNG | Exporting markdown | |
|
|
155
|
+
|
|
156
|
+
### History & recovery
|
|
157
|
+
|
|
158
|
+
| Tool | When | Not when | Use instead |
|
|
159
|
+
|---|---|---|---|
|
|
160
|
+
| `files_get_history` | List a file's revisions | Want a diff between two revisions | `files_get_diff` |
|
|
161
|
+
| `files_get_diff` | Compare two specific revisions | Want full content of one | `files_restore` |
|
|
162
|
+
| `files_restore` | Roll back a KB file to an earlier revision | Want to use raw `git` | |
|
|
163
|
+
| `files_diff_against_disk` | Find drift after raw filesystem edits | Normal search staleness | `projects_refresh_index` |
|
|
164
|
+
| `projects_refresh_index` | Rescan after out-of-band changes | Normal in-app edits | |
|
|
165
|
+
| `admin_commit_backup` | Push KB changes to remote git | Local-only work | |
|
|
166
|
+
|
|
167
|
+
### Discover
|
|
168
|
+
|
|
169
|
+
| Tool | When | Not when | Use instead |
|
|
170
|
+
|---|---|---|---|
|
|
171
|
+
| `projects_list` | Enumerate registered projects | Files within one project | `files_list` |
|
|
172
|
+
| `files_list` | Files in a project (filterable) | Full-text content matters | `files_search` |
|
|
173
|
+
| `projects_map` | Folder/file tree for a project | Flat file list | `files_list` |
|
|
174
|
+
| `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` |
|
|
175
|
+
| `admin_refresh_session_context` | Re-fetch profile + upcoming events after mid-session edits | Reading a single profile field | `admin_get_profile` |
|
|
176
|
+
|
|
177
|
+
### Calendar
|
|
178
|
+
|
|
179
|
+
| Tool | When | Not when | Use instead |
|
|
180
|
+
|---|---|---|---|
|
|
181
|
+
| `calendar_entities_add` | Register a new thing to track (server, vehicle, location, etc.) | Entity already exists | `calendar_entities_update` |
|
|
182
|
+
| `calendar_entities_update` | Rename, retag, or retire (`active:false`) an entity | Entity doesn't exist yet | `calendar_entities_add` |
|
|
183
|
+
| `calendar_entities_delete` | Permanently remove an entity, cascading its events/links | Just want to stop scheduling against it | `calendar_entities_update` |
|
|
184
|
+
| `calendar_entities_list` | Enumerate entities with their dependency links | Need conflict or event data | `calendar_events_conflicts` |
|
|
185
|
+
| `calendar_entities_link` | Record or remove a dependency edge for conflict detection | Want to see existing links | `calendar_entities_list` |
|
|
186
|
+
| `calendar_events_add` | Schedule a one-off event (downtime, maintenance, delivery, etc.) | Editing an existing event | `calendar_events_update` |
|
|
187
|
+
| `calendar_events_update` | Move, retitle, or re-home an existing event | Event doesn't exist yet | `calendar_events_add` |
|
|
188
|
+
| `calendar_events_delete` | Remove one event permanently | Want to just move it | `calendar_events_update` |
|
|
189
|
+
| `calendar_events_list` | List/filter events in a time window | Only need the conflict report | `calendar_events_conflicts` |
|
|
190
|
+
| `calendar_events_conflicts` | Find overlapping or too-close-together events in a window | Just need the raw event list | `calendar_events_list` |
|
|
191
|
+
| `calendar_export_ics` | Export a window as an ICS file for calendar apps | Need machine-readable event data | `calendar_events_list` |
|
|
192
|
+
|
|
193
|
+
### Hands (project tools)
|
|
194
|
+
|
|
195
|
+
| Tool | When | Not when | Use instead |
|
|
196
|
+
|---|---|---|---|
|
|
197
|
+
| `hands_list` | Enumerate Hands tools; pass `schema: true` for the `kontexta.json` authoring reference | Neither list nor schema needed | |
|
|
198
|
+
| `hands_confirm` | Approve a Hands token within 60s of issue | Normal MCP tool calls | |
|
|
199
|
+
| `hands_reload` | Re-read `hands.yaml` after editing it | First-time use (auto-loads) | |
|
|
200
|
+
|
|
201
|
+
### Onboarding
|
|
202
|
+
|
|
203
|
+
| Tool | When | Not when | Use instead |
|
|
204
|
+
|---|---|---|---|
|
|
205
|
+
| `projects_register` | Register a new project root with kontexta | Already registered | `projects_list` |
|
|
206
|
+
| `admin_onboard_agent` | Write/update the rules block in CLAUDE.md / AGENTS.md / etc. | Editing regular project content | `files_update` |
|
|
207
|
+
| `admin_transfer_agent_context` | Copy CLAUDE.md / AGENTS.md / `.cursor/rules/*.mdc` etc. from the project repo into Kontexta's KB. Originals are NEVER deleted by this tool. | User wants files to stay in the repo (default) | `projects_register` (which keeps files in place) |
|
|
@@ -29,11 +29,11 @@ function withLinks(entity) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
export function registerCalendarTools(server) {
|
|
32
|
-
server.tool("
|
|
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."),
|
|
36
|
-
timezone: z.string().optional().describe("Optional IANA timezone (e.g. 'Europe/Berlin') for display only
|
|
36
|
+
timezone: z.string().optional().describe("Optional IANA timezone (e.g. 'Europe/Berlin') for display only, does not affect stored event times."),
|
|
37
37
|
}, async (input) => {
|
|
38
38
|
try {
|
|
39
39
|
return ok({ entity: createEntity(input) });
|
|
@@ -42,8 +42,8 @@ export function registerCalendarTools(server) {
|
|
|
42
42
|
return errorResult(e);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
server.tool("
|
|
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("
|
|
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 });
|
|
@@ -67,16 +67,16 @@ export function registerCalendarTools(server) {
|
|
|
67
67
|
return errorResult(e);
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
|
-
server.tool("
|
|
70
|
+
server.tool("calendar_entities_list", "Read-only; no side effects, auth, or rate limits. List tracked entities, each annotated with its outgoing and incoming dependency links. Returns `{entities, count}`.", {
|
|
71
71
|
active_only: z.boolean().optional().describe("If true, exclude retired (active=false) entities."),
|
|
72
72
|
kind: z.string().optional().describe("Filter to entities with this exact `kind`."),
|
|
73
73
|
}, async (input) => {
|
|
74
74
|
const entities = listEntities(input).map(withLinks);
|
|
75
75
|
return ok({ entities, count: entities.length });
|
|
76
76
|
});
|
|
77
|
-
server.tool("
|
|
78
|
-
from: z.string().describe("Source entity
|
|
79
|
-
to: z.string().describe("Target entity
|
|
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
|
+
from: z.string().describe("Source entity, name (case-insensitive) or numeric id."),
|
|
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'."),
|
|
81
81
|
remove: z.boolean().optional().describe("If true, remove the link instead of creating/updating it."),
|
|
82
82
|
}, async ({ from, to, label, remove }) => {
|
|
@@ -94,8 +94,8 @@ export function registerCalendarTools(server) {
|
|
|
94
94
|
return errorResult(e);
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
|
-
server.tool("
|
|
98
|
-
entity: z.string().describe("Entity the event applies to
|
|
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
|
+
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."),
|
|
101
101
|
starts_at: z.string().describe("ISO 8601 timestamp with explicit timezone, e.g. '2026-08-03T02:00:00+05:30'."),
|
|
@@ -113,9 +113,9 @@ export function registerCalendarTools(server) {
|
|
|
113
113
|
return errorResult(e);
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
|
-
server.tool("
|
|
116
|
+
server.tool("calendar_events_update", "SIDE-EFFECTFUL. Patch an existing event (move it, retitle it, re-home it to a different entity, etc.). The merged result is re-validated: shrinking `ends_at` below `starts_at` throws. Returns `{event}`.", {
|
|
117
117
|
id: z.number().int().describe("Event id."),
|
|
118
|
-
entity: z.string().optional().describe("Move the event to a different entity
|
|
118
|
+
entity: z.string().optional().describe("Move the event to a different entity, name or numeric id."),
|
|
119
119
|
type: z.string().min(1).optional().describe("Freeform event type, e.g. 'downtime', 'maintenance', 'delivery'."),
|
|
120
120
|
title: z.string().min(1).optional().describe("Short title for the event."),
|
|
121
121
|
starts_at: z.string().optional().describe("ISO 8601 timestamp with explicit timezone."),
|
|
@@ -133,14 +133,14 @@ export function registerCalendarTools(server) {
|
|
|
133
133
|
return errorResult(e);
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
|
-
server.tool("
|
|
136
|
+
server.tool("calendar_events_delete", "DESTRUCTIVE. Delete one event by id. Idempotent: deleting an already-absent id is a no-op. Returns `{success, existed}`.", { id: z.number().int().describe("Event id to delete.") }, async ({ id }) => {
|
|
137
137
|
const existed = deleteEvent(id);
|
|
138
138
|
return ok({ success: true, existed });
|
|
139
139
|
});
|
|
140
|
-
server.tool("
|
|
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
|
-
entity: z.string().optional().describe("Filter to one entity
|
|
143
|
+
entity: z.string().optional().describe("Filter to one entity, name or numeric id."),
|
|
144
144
|
type: z.string().optional().describe("Filter to an exact event type."),
|
|
145
145
|
limit: z.number().int().positive().optional().describe("Max rows (default 500)."),
|
|
146
146
|
include_conflicts: z.boolean().optional().describe("If true, also compute conflicts for `from`..`to` (both required when set) and include them in the response."),
|
|
@@ -164,10 +164,10 @@ export function registerCalendarTools(server) {
|
|
|
164
164
|
return errorResult(e);
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
|
-
server.tool("
|
|
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
|
-
entity: z.string().optional().describe("Scope to one entity (and its linked neighbors)
|
|
170
|
+
entity: z.string().optional().describe("Scope to one entity (and its linked neighbors), name or numeric id."),
|
|
171
171
|
buffer_minutes: z.number().int().min(0).optional().describe("Override the configured minimum gap between events, in minutes. 0 disables buffer checks."),
|
|
172
172
|
}, async (input) => {
|
|
173
173
|
try {
|
|
@@ -184,10 +184,10 @@ export function registerCalendarTools(server) {
|
|
|
184
184
|
return errorResult(e);
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
server.tool("
|
|
187
|
+
server.tool("calendar_export_ics", "Read-only; no side effects, auth, or rate limits. Export events in a window as an RFC 5545 ICS calendar (UTC times, no VTIMEZONE needed) for import into Outlook/Calendar apps. Returns `{ics, event_count}` with the calendar text as a JSON string field.", {
|
|
188
188
|
from: z.string().describe("Window start, ISO 8601 with explicit timezone."),
|
|
189
189
|
to: z.string().describe("Window end, ISO 8601 with explicit timezone."),
|
|
190
|
-
entity: z.string().optional().describe("Filter to one entity
|
|
190
|
+
entity: z.string().optional().describe("Filter to one entity, name or numeric id."),
|
|
191
191
|
calendar_name: z.string().optional().describe("Calendar display name (X-WR-CALNAME). Defaults to 'Kontexta Calendar'."),
|
|
192
192
|
}, async (input) => {
|
|
193
193
|
try {
|