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
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { homedir } from "node:os";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { agentMeta, isAgentId } from "../hooks/agents.js";
|
|
4
|
+
import { listAgents, markMcpInstalled, markMcpUninstalled } from "../hooks/registry.js";
|
|
5
|
+
import { defaultDataDir } from "../util/paths.js";
|
|
6
|
+
import { buildServerEntry, entryHashOf, entryHashOfSignature, entrySignature } from "./entry.js";
|
|
7
|
+
import { MCP_INSTALLERS } from "./installers/index.js";
|
|
8
|
+
import { KXTA_TOOLS } from "./tools.generated.js";
|
|
9
|
+
const toolsOf = (o) => o.tools ?? KXTA_TOOLS;
|
|
10
|
+
const requested = (o, id) => (typeof o.approval === "string" ? o.approval : o.approval?.[id] ?? "prompt");
|
|
11
|
+
function entryFor(id, o) {
|
|
12
|
+
const hints = MCP_INSTALLERS[id].entryHints;
|
|
13
|
+
return buildServerEntry({
|
|
14
|
+
installMode: o.installMode, version: o.version, dataDir: o.dataDir, hostDataDir: o.hostDataDir,
|
|
15
|
+
isDefaultDir: resolve(o.dataDir) === resolve(defaultDataDir()),
|
|
16
|
+
sourceEntrypoint: o.sourceEntrypoint, hasLocalCliMcp: o.hasLocalCliMcp, nodeCmd: o.nodeCmd, ...hints,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function ctxFor(id, o, approval, previous) {
|
|
20
|
+
return { home: o.home ?? homedir(), entry: entryFor(id, o), approval, previousApproval: previous, tools: toolsOf(o), version: o.version, dryRun: o.dryRun, platform: o.platform, env: o.env, run: o.run };
|
|
21
|
+
}
|
|
22
|
+
function guard(id) {
|
|
23
|
+
if (!isAgentId(id))
|
|
24
|
+
return `unknown agent: ${id}`;
|
|
25
|
+
if (!agentMeta(id).mcpInstallable || !MCP_INSTALLERS[id])
|
|
26
|
+
return `${id} is not supported yet by the MCP installer; use the INSTALL tab snippet`;
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
const previousOf = (id, o) => (o.registry === false ? "prompt" : listAgents().find((r) => r.id === id)?.mcp_approval ?? "prompt");
|
|
30
|
+
export function installMcp(ids, o) {
|
|
31
|
+
return ids.map((id) => {
|
|
32
|
+
const err = guard(id);
|
|
33
|
+
if (err)
|
|
34
|
+
return { agent: id, ok: false, changed: false, path: "", approval: "prompt", notes: [], error: err };
|
|
35
|
+
const inst = MCP_INSTALLERS[id];
|
|
36
|
+
const wanted = requested(o, id);
|
|
37
|
+
const applied = inst.supportsApproval ? wanted : "prompt";
|
|
38
|
+
const extra = wanted !== "prompt" && !inst.supportsApproval ? [`${agentMeta(id).name} has no config-file allowlist; approve kxta tools in the app itself.`] : [];
|
|
39
|
+
try {
|
|
40
|
+
const ctx = ctxFor(id, o, applied, previousOf(id, o));
|
|
41
|
+
const r = inst.install(ctx);
|
|
42
|
+
if (o.registry !== false && !o.dryRun)
|
|
43
|
+
markMcpInstalled(id, entrySignature(ctx.entry, applied, toolsOf(o).map((t) => t.name)), applied);
|
|
44
|
+
return { agent: id, ok: true, changed: r.changed, path: r.path, approval: applied, notes: [...r.notes, ...extra] };
|
|
45
|
+
}
|
|
46
|
+
catch (e) {
|
|
47
|
+
return { agent: id, ok: false, changed: false, path: "", approval: applied, notes: extra, error: e instanceof Error ? e.message : String(e) };
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
export function uninstallMcp(ids, o) {
|
|
52
|
+
return ids.map((id) => {
|
|
53
|
+
const err = guard(id);
|
|
54
|
+
if (err)
|
|
55
|
+
return { agent: id, ok: false, changed: false, path: "", approval: "prompt", notes: [], error: err };
|
|
56
|
+
try {
|
|
57
|
+
const r = MCP_INSTALLERS[id].uninstall(ctxFor(id, o, "prompt", previousOf(id, o)));
|
|
58
|
+
if (o.registry !== false && !o.dryRun)
|
|
59
|
+
markMcpUninstalled(id);
|
|
60
|
+
return { agent: id, ok: true, changed: r.changed, path: r.path, approval: "prompt", notes: r.notes };
|
|
61
|
+
}
|
|
62
|
+
catch (e) {
|
|
63
|
+
return { agent: id, ok: false, changed: false, path: "", approval: "prompt", notes: [], error: e instanceof Error ? e.message : String(e) };
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
export function mcpStatus(o) {
|
|
68
|
+
return listAgents().map((row) => {
|
|
69
|
+
const inst = MCP_INSTALLERS[row.id];
|
|
70
|
+
if (!row.mcp_supported || !inst)
|
|
71
|
+
return { ...row, config_path: null, installed: false, current: false, stale: false, approval_supported: false, notes: [] };
|
|
72
|
+
try {
|
|
73
|
+
const ctx = ctxFor(row.id, o, row.mcp_approval, row.mcp_approval);
|
|
74
|
+
const s = inst.status(ctx);
|
|
75
|
+
const sig = entrySignature(ctx.entry, row.mcp_approval, toolsOf(o).map((t) => t.name));
|
|
76
|
+
return { ...row, config_path: s.path || null, installed: s.installed, current: s.current, stale: row.mcp_installed && row.mcp_version !== sig, approval_supported: inst.supportsApproval, notes: s.notes };
|
|
77
|
+
}
|
|
78
|
+
catch (e) {
|
|
79
|
+
return { ...row, config_path: null, installed: false, current: false, stale: false, approval_supported: inst.supportsApproval, notes: [e.message] };
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
// Refreshes registrations we made (entry or tool list changed). It never creates one, never rewrites an entry the user edited after our install, and never re-adds one the user removed (the registry is corrected instead). Containers cannot edit host files, so docker mode never reconciles.
|
|
84
|
+
export function reconcileMcp(o) {
|
|
85
|
+
if (o.installMode === "docker")
|
|
86
|
+
return [];
|
|
87
|
+
const due = {};
|
|
88
|
+
for (const r of listAgents()) {
|
|
89
|
+
if (!r.enabled || !r.mcp_supported || !r.mcp_installed || !MCP_INSTALLERS[r.id])
|
|
90
|
+
continue;
|
|
91
|
+
let desired;
|
|
92
|
+
let onDisk;
|
|
93
|
+
try {
|
|
94
|
+
desired = entrySignature(entryFor(r.id, o), r.mcp_approval, toolsOf(o).map((t) => t.name));
|
|
95
|
+
onDisk = MCP_INSTALLERS[r.id].status(ctxFor(r.id, o, r.mcp_approval, r.mcp_approval));
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
if (!onDisk.installed) {
|
|
101
|
+
if (!o.dryRun && o.registry !== false)
|
|
102
|
+
markMcpUninstalled(r.id);
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if (onDisk.entry && entryHashOf(onDisk.entry) !== entryHashOfSignature(r.mcp_version ?? ""))
|
|
106
|
+
continue;
|
|
107
|
+
if (r.mcp_version !== desired)
|
|
108
|
+
due[r.id] = r.mcp_approval;
|
|
109
|
+
}
|
|
110
|
+
const ids = Object.keys(due);
|
|
111
|
+
return ids.length === 0 ? [] : installMcp(ids, { ...o, approval: due });
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../src/mcp-install/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,EAAmC,MAAM,sBAAsB,CAAC;AACzH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,oBAAoB,EAAE,cAAc,EAAoB,MAAM,YAAY,CAAC;AACnH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAmClD,MAAM,OAAO,GAAG,CAAC,CAAU,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,UAAU,CAAC;AACtD,MAAM,SAAS,GAAG,CAAC,CAAU,EAAE,EAAU,EAAe,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,IAAI,QAAQ,CAAC,CAAC;AAExI,SAAS,QAAQ,CAAC,EAAU,EAAE,CAAU;IACtC,MAAM,KAAK,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC;IAC5C,OAAO,gBAAgB,CAA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G,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7B,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;AAC1E,CAAC"}
|
package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../../../src/mcp-install/installers/claude-code.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAU,YAAY,EAAgC,MAAM,aAAa,CAAC;AAmDtF,eAAO,MAAM,sBAAsB,EAAE,YA6CpC,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { readJsonConfig } from "../../hooks/installers/json-config.js";
|
|
5
|
+
import { writeJsonWithBackup } from "../write.js";
|
|
6
|
+
import { sameEntry, toServerEntry } from "../entry.js";
|
|
7
|
+
import { applyConfigApproval, SERVER_KEY } from "./json-servers.js";
|
|
8
|
+
const defaultRun = (cmd, args) => {
|
|
9
|
+
const r = spawnSync(cmd, args, { encoding: "utf8", timeout: 20_000 });
|
|
10
|
+
return { status: r.status, stdout: r.stdout ?? "", stderr: r.stderr ?? "", error: r.error };
|
|
11
|
+
};
|
|
12
|
+
// Claude Code names tools mcp__<server>__<tool> with punctuation turned into underscores.
|
|
13
|
+
const APPROVAL = {
|
|
14
|
+
isOurs: (r) => /^mcp__kxta(__|$)/.test(r),
|
|
15
|
+
rule: (tool) => `mcp__${SERVER_KEY}__${tool.replace(/[^A-Za-z0-9_]/g, "_")}`,
|
|
16
|
+
wildcard: `mcp__${SERVER_KEY}`,
|
|
17
|
+
};
|
|
18
|
+
const dotClaude = (ctx) => join(ctx.home, ".claude.json");
|
|
19
|
+
const settingsPath = (ctx) => join(ctx.home, ".claude", "settings.json");
|
|
20
|
+
const addArgs = (entry) => ["mcp", "add", SERVER_KEY, "-s", "user", ...Object.entries(entry.env ?? {}).flatMap(([k, v]) => ["-e", `${k}=${v}`]), "--", entry.command, ...entry.args];
|
|
21
|
+
const shellQuote = (s) => (/^[A-Za-z0-9_@%+=:,./-]+$/.test(s) ? s : `"${s.replace(/(["\\$`])/g, "\\$1")}"`);
|
|
22
|
+
const manual = (entry) => ["claude", ...addArgs(entry)].map(shellQuote).join(" ");
|
|
23
|
+
// Read-only peek at the user-scope entry; the claude CLI stays the only writer of ~/.claude.json.
|
|
24
|
+
function currentEntry(ctx) {
|
|
25
|
+
const p = dotClaude(ctx);
|
|
26
|
+
if (!existsSync(p))
|
|
27
|
+
return undefined;
|
|
28
|
+
try {
|
|
29
|
+
const servers = JSON.parse(readFileSync(p, "utf8"))?.mcpServers;
|
|
30
|
+
return servers && typeof servers === "object" ? servers[SERVER_KEY] : undefined;
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
// `claude mcp add` without -s user registers for one project only (kept under projects.<path>); report those so the dashboard does not claim "not connected".
|
|
37
|
+
function projectScopes(ctx) {
|
|
38
|
+
const p = dotClaude(ctx);
|
|
39
|
+
if (!existsSync(p))
|
|
40
|
+
return [];
|
|
41
|
+
try {
|
|
42
|
+
const projects = JSON.parse(readFileSync(p, "utf8"))?.projects;
|
|
43
|
+
if (!projects || typeof projects !== "object")
|
|
44
|
+
return [];
|
|
45
|
+
return Object.entries(projects).filter(([, v]) => v?.mcpServers && v.mcpServers[SERVER_KEY] !== undefined).map(([k]) => k);
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
return [];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function applyRules(ctx, approval, previous) {
|
|
52
|
+
const path = settingsPath(ctx);
|
|
53
|
+
if (approval === "prompt" && previous === "prompt")
|
|
54
|
+
return false;
|
|
55
|
+
if (!existsSync(path) && approval === "prompt")
|
|
56
|
+
return false;
|
|
57
|
+
const cfg = readJsonConfig(path);
|
|
58
|
+
const next = applyConfigApproval(cfg, APPROVAL, { ...ctx, approval, previousApproval: previous }, path);
|
|
59
|
+
return next === cfg ? false : writeJsonWithBackup(path, next, ctx.dryRun);
|
|
60
|
+
}
|
|
61
|
+
export const claudeCodeMcpInstaller = {
|
|
62
|
+
id: "claude-code",
|
|
63
|
+
entryHints: {},
|
|
64
|
+
supportsApproval: true,
|
|
65
|
+
configPath: dotClaude,
|
|
66
|
+
install(ctx) {
|
|
67
|
+
const run = ctx.run ?? defaultRun;
|
|
68
|
+
const path = dotClaude(ctx);
|
|
69
|
+
const current = sameEntry(currentEntry(ctx), ctx.entry);
|
|
70
|
+
let changed = false;
|
|
71
|
+
if (!current) {
|
|
72
|
+
changed = true;
|
|
73
|
+
if (!ctx.dryRun) {
|
|
74
|
+
const probe = run("claude", ["--version"]);
|
|
75
|
+
if (probe.error || probe.status !== 0)
|
|
76
|
+
throw new Error(`claude CLI not found on PATH; run this yourself:\n ${manual(ctx.entry)}`);
|
|
77
|
+
if (currentEntry(ctx) !== undefined)
|
|
78
|
+
run("claude", ["mcp", "remove", SERVER_KEY, "-s", "user"]);
|
|
79
|
+
const r = run("claude", addArgs(ctx.entry));
|
|
80
|
+
if (r.error || r.status !== 0)
|
|
81
|
+
throw new Error(`claude mcp add failed: ${(r.stderr || r.error?.message || "unknown error").trim()}`);
|
|
82
|
+
if (!sameEntry(currentEntry(ctx), ctx.entry))
|
|
83
|
+
throw new Error("claude mcp add ran but ~/.claude.json does not show the kxta server; check `claude mcp list`");
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (applyRules(ctx, ctx.approval, ctx.previousApproval))
|
|
87
|
+
changed = true;
|
|
88
|
+
return { agent: "claude-code", path, changed, notes: ["Restart Claude Code sessions to pick up the kxta server."] };
|
|
89
|
+
},
|
|
90
|
+
uninstall(ctx) {
|
|
91
|
+
const run = ctx.run ?? defaultRun;
|
|
92
|
+
let changed = false;
|
|
93
|
+
if (currentEntry(ctx) !== undefined) {
|
|
94
|
+
changed = true;
|
|
95
|
+
if (!ctx.dryRun) {
|
|
96
|
+
const probe = run("claude", ["--version"]);
|
|
97
|
+
if (probe.error || probe.status !== 0)
|
|
98
|
+
throw new Error(`claude CLI not found on PATH; run this yourself:\n claude mcp remove ${SERVER_KEY} -s user`);
|
|
99
|
+
const r = run("claude", ["mcp", "remove", SERVER_KEY, "-s", "user"]);
|
|
100
|
+
if (r.error || r.status !== 0)
|
|
101
|
+
throw new Error(`claude mcp remove failed: ${(r.stderr || r.error?.message || "unknown error").trim()}`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (applyRules(ctx, "prompt", ctx.previousApproval))
|
|
105
|
+
changed = true;
|
|
106
|
+
return { agent: "claude-code", path: dotClaude(ctx), changed, notes: [] };
|
|
107
|
+
},
|
|
108
|
+
status(ctx) {
|
|
109
|
+
const existing = currentEntry(ctx);
|
|
110
|
+
const scopes = projectScopes(ctx);
|
|
111
|
+
const notes = existing === undefined && scopes.length > 0 ? [`kxta is registered only for ${scopes.length} project${scopes.length > 1 ? "s" : ""} (${scopes.slice(0, 2).join(", ")}${scopes.length > 2 ? ", ..." : ""}); Connect adds it for every project.`] : [];
|
|
112
|
+
return { agent: "claude-code", path: dotClaude(ctx), installed: existing !== undefined || scopes.length > 0, current: sameEntry(existing, ctx.entry), entry: toServerEntry(existing), notes };
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=claude-code.js.map
|
package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code.js","sourceRoot":"","sources":["../../../src/mcp-install/installers/claude-code.ts"],"names":[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SAAS,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC;IAChM,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../src/mcp-install/installers/codex.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAU,YAAY,EAAgC,MAAM,aAAa,CAAC;AAyBtF,eAAO,MAAM,iBAAiB,EAAE,YAuC/B,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { parse } from "smol-toml";
|
|
5
|
+
import { sameEntry, toServerEntry } from "../entry.js";
|
|
6
|
+
import { SERVER_KEY } from "./json-servers.js";
|
|
7
|
+
const defaultRun = (cmd, args) => {
|
|
8
|
+
const r = spawnSync(cmd, args, { encoding: "utf8", timeout: 20_000 });
|
|
9
|
+
return { status: r.status, stdout: r.stdout ?? "", stderr: r.stderr ?? "", error: r.error };
|
|
10
|
+
};
|
|
11
|
+
// Codex keeps MCP servers in config.toml ([mcp_servers.<name>]); `codex mcp add` is the only writer so the TOML is never edited here.
|
|
12
|
+
const configToml = (ctx) => join((ctx.env ?? process.env).CODEX_HOME || join(ctx.home, ".codex"), "config.toml");
|
|
13
|
+
const addArgs = (entry) => ["mcp", "add", SERVER_KEY, ...Object.entries(entry.env ?? {}).flatMap(([k, v]) => ["--env", `${k}=${v}`]), "--", entry.command, ...entry.args];
|
|
14
|
+
const shellQuote = (s) => (/^[A-Za-z0-9_@%+=:,./-]+$/.test(s) ? s : `"${s.replace(/(["\\$`])/g, "\\$1")}"`);
|
|
15
|
+
const manual = (entry) => ["codex", ...addArgs(entry)].map(shellQuote).join(" ");
|
|
16
|
+
function currentEntry(ctx) {
|
|
17
|
+
const p = configToml(ctx);
|
|
18
|
+
if (!existsSync(p))
|
|
19
|
+
return undefined;
|
|
20
|
+
try {
|
|
21
|
+
const servers = parse(readFileSync(p, "utf8")).mcp_servers;
|
|
22
|
+
return servers && typeof servers === "object" ? servers[SERVER_KEY] : undefined;
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const missing = (what) => new Error(`codex CLI not found on PATH; run this yourself:\n ${what}`);
|
|
29
|
+
export const codexMcpInstaller = {
|
|
30
|
+
id: "codex",
|
|
31
|
+
entryHints: {},
|
|
32
|
+
supportsApproval: false,
|
|
33
|
+
configPath: configToml,
|
|
34
|
+
install(ctx) {
|
|
35
|
+
const run = ctx.run ?? defaultRun;
|
|
36
|
+
const path = configToml(ctx);
|
|
37
|
+
const current = sameEntry(currentEntry(ctx), ctx.entry);
|
|
38
|
+
let changed = false;
|
|
39
|
+
if (!current) {
|
|
40
|
+
changed = true;
|
|
41
|
+
if (!ctx.dryRun) {
|
|
42
|
+
const probe = run("codex", ["--version"]);
|
|
43
|
+
if (probe.error || probe.status !== 0)
|
|
44
|
+
throw missing(manual(ctx.entry));
|
|
45
|
+
if (currentEntry(ctx) !== undefined)
|
|
46
|
+
run("codex", ["mcp", "remove", SERVER_KEY]);
|
|
47
|
+
const r = run("codex", addArgs(ctx.entry));
|
|
48
|
+
if (r.error || r.status !== 0)
|
|
49
|
+
throw new Error(`codex mcp add failed: ${(r.stderr || r.error?.message || "unknown error").trim()}`);
|
|
50
|
+
if (!sameEntry(currentEntry(ctx), ctx.entry))
|
|
51
|
+
throw new Error("codex mcp add ran but config.toml does not show the kxta server; check `codex mcp list`");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return { agent: "codex", path, changed, notes: ["Restart Codex to pick up the kxta server."] };
|
|
55
|
+
},
|
|
56
|
+
uninstall(ctx) {
|
|
57
|
+
const run = ctx.run ?? defaultRun;
|
|
58
|
+
const path = configToml(ctx);
|
|
59
|
+
if (currentEntry(ctx) === undefined)
|
|
60
|
+
return { agent: "codex", path, changed: false, notes: [] };
|
|
61
|
+
if (!ctx.dryRun) {
|
|
62
|
+
const probe = run("codex", ["--version"]);
|
|
63
|
+
if (probe.error || probe.status !== 0)
|
|
64
|
+
throw missing(`codex mcp remove ${SERVER_KEY}`);
|
|
65
|
+
const r = run("codex", ["mcp", "remove", SERVER_KEY]);
|
|
66
|
+
if (r.error || r.status !== 0)
|
|
67
|
+
throw new Error(`codex mcp remove failed: ${(r.stderr || r.error?.message || "unknown error").trim()}`);
|
|
68
|
+
}
|
|
69
|
+
return { agent: "codex", path, changed: true, notes: [] };
|
|
70
|
+
},
|
|
71
|
+
status(ctx) {
|
|
72
|
+
const existing = currentEntry(ctx);
|
|
73
|
+
return { agent: "codex", path: configToml(ctx), installed: existing !== undefined, current: sameEntry(existing, ctx.entry), entry: toServerEntry(existing), notes: [] };
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=codex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../../src/mcp-install/installers/codex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAoB,MAAM,aAAa,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,UAAU,GAAW,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;IACvC,MAAM,CAAC,GAAG,SAAS,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YAChB,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;YAC1C,IAAI,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;gBAAE,MAAM,OAAO,CAAC,oBAAoB,UAAU,EAAE,CAAC,CAAC;YACvF,MAAM,CAAC,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;YACtD,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,EAAE,OAAO,IAAI,eAAe,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACzI,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAC5D,CAAC;IACD,MAAM,CAAC,GAAG;QACR,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACnC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,KAAK,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAC1K,CAAC;CACF,CAAC"}
|
package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continue.d.ts","sourceRoot":"","sources":["../../../src/mcp-install/installers/continue.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAU,YAAY,EAAwB,MAAM,aAAa,CAAC;AA0B9E,eAAO,MAAM,oBAAoB,EAAE,YA0BlC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { existsSync, mkdirSync, readFileSync, rmSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { parse, stringify } from "yaml";
|
|
4
|
+
import { writeTextWithBackup } from "../write.js";
|
|
5
|
+
import { sameEntry, toServerEntry } from "../entry.js";
|
|
6
|
+
import { SERVER_KEY } from "./json-servers.js";
|
|
7
|
+
// We own this whole file, so there is no merge: it is written fresh and removed on uninstall.
|
|
8
|
+
const OWNER = "kontexta";
|
|
9
|
+
const dir = (ctx) => join(ctx.home, ".continue");
|
|
10
|
+
const file = (ctx) => join(dir(ctx), "mcpServers", "kontexta.yaml");
|
|
11
|
+
function read(path) {
|
|
12
|
+
if (!existsSync(path))
|
|
13
|
+
return { doc: null, ours: false };
|
|
14
|
+
try {
|
|
15
|
+
const text = readFileSync(path, "utf8");
|
|
16
|
+
if (text.trim() === "")
|
|
17
|
+
return { doc: null, ours: true };
|
|
18
|
+
const doc = parse(text);
|
|
19
|
+
return { doc, ours: !!doc && typeof doc === "object" && doc.name === OWNER };
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return { doc: null, ours: false };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const serverOf = (doc) => (Array.isArray(doc?.mcpServers) ? doc.mcpServers.find((s) => s?.name === SERVER_KEY) : undefined);
|
|
26
|
+
function render(entry, version) {
|
|
27
|
+
const server = { name: SERVER_KEY, command: entry.command, args: entry.args };
|
|
28
|
+
if (entry.env)
|
|
29
|
+
server.env = entry.env;
|
|
30
|
+
return stringify({ name: OWNER, version, schema: "v1", mcpServers: [server] }, { lineWidth: 0 });
|
|
31
|
+
}
|
|
32
|
+
export const continueMcpInstaller = {
|
|
33
|
+
id: "continue",
|
|
34
|
+
entryHints: {},
|
|
35
|
+
supportsApproval: false,
|
|
36
|
+
configPath: file,
|
|
37
|
+
install(ctx) {
|
|
38
|
+
const path = file(ctx);
|
|
39
|
+
if (!existsSync(dir(ctx)))
|
|
40
|
+
throw new Error(`Continue config folder not found (${dir(ctx)}); open Continue once, or add the server by hand from the INSTALL tab`);
|
|
41
|
+
const existing = read(path);
|
|
42
|
+
if (existsSync(path) && !existing.ours)
|
|
43
|
+
throw new Error(`${path} exists but was not created by kontexta; refusing to overwrite it`);
|
|
44
|
+
if (!ctx.dryRun)
|
|
45
|
+
mkdirSync(join(dir(ctx), "mcpServers"), { recursive: true });
|
|
46
|
+
return { agent: "continue", path, changed: writeTextWithBackup(path, render(ctx.entry, ctx.version), ctx.dryRun), notes: ["MCP tools only appear in Continue's Agent Mode."] };
|
|
47
|
+
},
|
|
48
|
+
uninstall(ctx) {
|
|
49
|
+
const path = file(ctx);
|
|
50
|
+
const existing = read(path);
|
|
51
|
+
if (!existing.ours)
|
|
52
|
+
return { agent: "continue", path, changed: false, notes: [] };
|
|
53
|
+
if (!ctx.dryRun)
|
|
54
|
+
rmSync(path, { force: true });
|
|
55
|
+
return { agent: "continue", path, changed: true, notes: [] };
|
|
56
|
+
},
|
|
57
|
+
status(ctx) {
|
|
58
|
+
const path = file(ctx);
|
|
59
|
+
const { doc, ours } = read(path);
|
|
60
|
+
const server = ours ? serverOf(doc) : undefined;
|
|
61
|
+
return { agent: "continue", path, installed: server !== undefined, current: sameEntry(server, ctx.entry), entry: toServerEntry(server), notes: [] };
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=continue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continue.js","sourceRoot":"","sources":["../../../src/mcp-install/installers/continue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EA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,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACtJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hermes.d.ts","sourceRoot":"","sources":["../../../src/mcp-install/installers/hermes.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAU,YAAY,EAAwB,MAAM,aAAa,CAAC;AAmB9E,eAAO,MAAM,kBAAkB,EAAE,YAuDhC,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { isMap, isScalar } from "yaml";
|
|
4
|
+
import { writeTextWithBackup } from "../write.js";
|
|
5
|
+
import { sameEntry, toServerEntry } from "../entry.js";
|
|
6
|
+
import { dumpYaml, loadYamlDoc } from "../yaml-config.js";
|
|
7
|
+
import { SERVER_KEY } from "./json-servers.js";
|
|
8
|
+
const dir = (ctx) => join(ctx.home, ".hermes");
|
|
9
|
+
const file = (ctx) => join(dir(ctx), "config.yaml");
|
|
10
|
+
function serversMap(doc, path, create) {
|
|
11
|
+
const existing = doc.get("mcp_servers", true);
|
|
12
|
+
if (existing === undefined || (isScalar(existing) && existing.value === null)) {
|
|
13
|
+
if (!create)
|
|
14
|
+
return null;
|
|
15
|
+
const created = doc.createNode({});
|
|
16
|
+
doc.set("mcp_servers", created);
|
|
17
|
+
return created;
|
|
18
|
+
}
|
|
19
|
+
if (!isMap(existing))
|
|
20
|
+
throw new Error(`${path} has an "mcp_servers" key that is not a mapping; refusing to change it`);
|
|
21
|
+
return existing;
|
|
22
|
+
}
|
|
23
|
+
export const hermesMcpInstaller = {
|
|
24
|
+
id: "hermes",
|
|
25
|
+
// Hermes hands MCP servers only PATH/HOME/USER/… plus the entry's own env, so spell out the data dir and commands.
|
|
26
|
+
entryHints: { forceEnv: true, absolute: true },
|
|
27
|
+
supportsApproval: false,
|
|
28
|
+
configPath: file,
|
|
29
|
+
install(ctx) {
|
|
30
|
+
const path = file(ctx);
|
|
31
|
+
if (!existsSync(dir(ctx)))
|
|
32
|
+
throw new Error(`Hermes config folder not found (${dir(ctx)}); run Hermes once, or add the server by hand from the INSTALL tab`);
|
|
33
|
+
const doc = loadYamlDoc(path);
|
|
34
|
+
const servers = serversMap(doc, path, true);
|
|
35
|
+
const node = { command: ctx.entry.command, args: ctx.entry.args };
|
|
36
|
+
if (ctx.entry.env)
|
|
37
|
+
node.env = ctx.entry.env;
|
|
38
|
+
if (!sameEntry(servers.toJSON()[SERVER_KEY], ctx.entry)) {
|
|
39
|
+
const existing = servers.get(SERVER_KEY, true);
|
|
40
|
+
if (!isMap(existing))
|
|
41
|
+
servers.set(SERVER_KEY, doc.createNode(node));
|
|
42
|
+
else {
|
|
43
|
+
// Update in place so keys the user added (timeout, other env) survive; only command, args and KONTEXTA_DATA_DIR are ours.
|
|
44
|
+
existing.set("command", ctx.entry.command);
|
|
45
|
+
existing.set("args", doc.createNode(ctx.entry.args));
|
|
46
|
+
const envNode = existing.get("env", true);
|
|
47
|
+
if (ctx.entry.env) {
|
|
48
|
+
if (isMap(envNode))
|
|
49
|
+
envNode.set("KONTEXTA_DATA_DIR", ctx.entry.env.KONTEXTA_DATA_DIR);
|
|
50
|
+
else
|
|
51
|
+
existing.set("env", doc.createNode(ctx.entry.env));
|
|
52
|
+
}
|
|
53
|
+
else if (isMap(envNode)) {
|
|
54
|
+
envNode.delete("KONTEXTA_DATA_DIR");
|
|
55
|
+
if (envNode.items.length === 0)
|
|
56
|
+
existing.delete("env");
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return { agent: "hermes", path, changed: writeTextWithBackup(path, dumpYaml(doc), ctx.dryRun), notes: ["Restart Hermes: MCP servers are loaded at startup only. Only the default profile is configured."] };
|
|
61
|
+
},
|
|
62
|
+
uninstall(ctx) {
|
|
63
|
+
const path = file(ctx);
|
|
64
|
+
if (!existsSync(path))
|
|
65
|
+
return { agent: "hermes", path, changed: false, notes: [] };
|
|
66
|
+
const doc = loadYamlDoc(path);
|
|
67
|
+
const servers = serversMap(doc, path, false);
|
|
68
|
+
if (!servers || !servers.has(SERVER_KEY))
|
|
69
|
+
return { agent: "hermes", path, changed: false, notes: [] };
|
|
70
|
+
servers.delete(SERVER_KEY);
|
|
71
|
+
if (servers.items.length === 0)
|
|
72
|
+
doc.delete("mcp_servers");
|
|
73
|
+
return { agent: "hermes", path, changed: writeTextWithBackup(path, dumpYaml(doc), ctx.dryRun), notes: [] };
|
|
74
|
+
},
|
|
75
|
+
status(ctx) {
|
|
76
|
+
const path = file(ctx);
|
|
77
|
+
const notes = [];
|
|
78
|
+
try {
|
|
79
|
+
const doc = loadYamlDoc(path);
|
|
80
|
+
const servers = serversMap(doc, path, false);
|
|
81
|
+
const existing = servers ? servers.toJSON()[SERVER_KEY] : undefined;
|
|
82
|
+
return { agent: "hermes", path, installed: existing !== undefined, current: sameEntry(existing, ctx.entry), entry: toServerEntry(existing), notes };
|
|
83
|
+
}
|
|
84
|
+
catch (e) {
|
|
85
|
+
notes.push(e.message);
|
|
86
|
+
return { agent: "hermes", path, installed: false, current: false, notes };
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=hermes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hermes.js","sourceRoot":"","sources":["../../../src/mcp-install/installers/hermes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,a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CAAC;QAC5E,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mcp-install/installers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAUvD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { claudeCodeMcpInstaller } from "./claude-code.js";
|
|
2
|
+
import { codexMcpInstaller } from "./codex.js";
|
|
3
|
+
import { continueMcpInstaller } from "./continue.js";
|
|
4
|
+
import { hermesMcpInstaller } from "./hermes.js";
|
|
5
|
+
import { claudeDesktopMcpInstaller, clineMcpInstaller, copilotMcpInstaller, cursorMcpInstaller, geminiMcpInstaller } from "./json-servers.js";
|
|
6
|
+
export const MCP_INSTALLERS = {
|
|
7
|
+
"claude-code": claudeCodeMcpInstaller,
|
|
8
|
+
"claude-desktop": claudeDesktopMcpInstaller,
|
|
9
|
+
continue: continueMcpInstaller,
|
|
10
|
+
hermes: hermesMcpInstaller,
|
|
11
|
+
codex: codexMcpInstaller,
|
|
12
|
+
copilot: copilotMcpInstaller,
|
|
13
|
+
cursor: cursorMcpInstaller,
|
|
14
|
+
cline: clineMcpInstaller,
|
|
15
|
+
gemini: geminiMcpInstaller,
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/mcp-install/installers/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE9I,MAAM,CAAC,MAAM,cAAc,GAAiC;IAC1D,aAAa,EAAE,sBAAsB;IACrC,gBAAgB,EAAE,yBAAyB;IAC3C,QAAQ,EAAE,oBAAoB;IAC9B,MAAM,EAAE,kBAAkB;IAC1B,KAAK,EAAE,iBAAiB;IACxB,OAAO,EAAE,mBAAmB;IAC5B,MAAM,EAAE,kBAAkB;IAC1B,KAAK,EAAE,iBAAiB;IACxB,MAAM,EAAE,kBAAkB;CAC3B,CAAC"}
|
package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AgentId } from "../../hooks/agents.js";
|
|
2
|
+
import type { McpCtx, McpInstaller } from "../types.js";
|
|
3
|
+
export declare const SERVER_KEY = "kxta";
|
|
4
|
+
type Json = Record<string, unknown>;
|
|
5
|
+
export type ConfigApprovalSpec = NonNullable<JsonServersSpec["configApproval"]>;
|
|
6
|
+
export interface JsonServersSpec {
|
|
7
|
+
id: AgentId;
|
|
8
|
+
label: string;
|
|
9
|
+
/** Config file path; may throw when the agent does not exist on this platform. */
|
|
10
|
+
path: (ctx: McpCtx) => string;
|
|
11
|
+
entryHints?: McpInstaller["entryHints"];
|
|
12
|
+
/** Documented defaults for keys the user has not set (existing values are never overwritten). */
|
|
13
|
+
entryExtras?: Record<string, unknown>;
|
|
14
|
+
/** Applies the approval level to the whole config (Gemini allow rules). */
|
|
15
|
+
configApproval?: {
|
|
16
|
+
isOurs: (rule: string) => boolean;
|
|
17
|
+
rule: (toolName: string) => string;
|
|
18
|
+
wildcard: string;
|
|
19
|
+
};
|
|
20
|
+
/** Applies the approval level inside the server entry (Cline alwaysAllow). */
|
|
21
|
+
entryApproval?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function applyConfigApproval(cfg: Json, spec: NonNullable<JsonServersSpec["configApproval"]>, ctx: McpCtx, path: string): Json;
|
|
24
|
+
export declare function jsonServersInstaller(spec: JsonServersSpec): McpInstaller;
|
|
25
|
+
export declare const cursorMcpInstaller: McpInstaller;
|
|
26
|
+
export declare const copilotMcpInstaller: McpInstaller;
|
|
27
|
+
export declare const clineMcpInstaller: McpInstaller;
|
|
28
|
+
export declare const geminiMcpInstaller: McpInstaller;
|
|
29
|
+
export declare const claudeDesktopMcpInstaller: McpInstaller;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=json-servers.d.ts.map
|
package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-servers.d.ts","sourceRoot":"","sources":["../../../src/mcp-install/installers/json-servers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIrD,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAwB,MAAM,aAAa,CAAC;AAG9E,eAAO,MAAM,UAAU,SAAS,CAAC;AAEjC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAGpC,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAEhF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,kFAAkF;IAClF,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IACxC,iGAAiG;IACjG,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,2EAA2E;IAC3E,cAAc,CAAC,EAAE;QAAE,MAAM,E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