kontexta 4.7.1 → 5.1.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 +38 -0
- package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
- package/bundle/standalone/apps/web/.next/app-build-manifest.json +109 -88
- package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +15 -12
- package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
- package/bundle/standalone/apps/web/.next/prerender-manifest.json +13 -13
- package/bundle/standalone/apps/web/.next/required-server-files.json +1 -0
- package/bundle/standalone/apps/web/.next/routes-manifest.json +16 -0
- package/bundle/standalone/apps/web/.next/server/app/_not-found/page.js +1 -1
- 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 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/route.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/route.js.nft.json +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/agents/route_client-reference-manifest.js +1 -0
- package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +2 -2
- 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 +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 +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 +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 +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 +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 +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 +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 +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js.nft.json +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
- package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js +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 +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 +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 +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 +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 +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 +2 -2
- 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 +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 +23 -22
- package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +15 -12
- package/bundle/standalone/apps/web/.next/server/chunks/6680.js +1 -1
- 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/IxgiSiK05GtQGxU41f-Mx/_buildManifest.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/771-863c84c2b052163a.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/hooks/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/backlinks/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-html/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/reports/resources/[name]/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/version-check/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/welcome/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/{layout-3050c58d9809581a.js → layout-da10917c290d5da7.js} +1 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/page-4c19cddc721d832e.js +1 -0
- package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-0cc6597bb67aea3b.js +1 -0
- package/bundle/standalone/apps/web/.next/static/css/198c34172598da00.css +3 -0
- package/bundle/standalone/apps/web/package.json +5 -5
- package/bundle/standalone/apps/web/server.js +1 -1
- package/bundle/standalone/apps/web/src/lib/mcp-tools.json +238 -543
- package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +24 -35
- package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks/emit.mjs +397 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.d.ts +13 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.js +27 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.d.ts +3 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.js +141 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.js.map +1 -0
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +479 -475
- package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +55 -9
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +1 -27
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js.map +1 -1
- package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/010-agents.sql +14 -0
- package/bundle/standalone/node_modules/kontexta-mcp/package.json +2 -2
- package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +1 -1
- 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 +24 -35
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.d.ts +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.js +19 -4
- package/bundle/standalone/node_modules/kxta-core/dist/db/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/010-agents.sql +14 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.d.ts +86 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.js +24 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.d.ts +25 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js +44 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/emit.mjs +397 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.d.ts +14 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.js +8 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/install-mode.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/install-mode.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/install-mode.js +15 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/install-mode.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/install.d.ts +30 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/install.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/install.js +92 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/install.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/claude-code.d.ts +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/claude-code.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/claude-code.js +13 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/claude-code.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/cline.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/cline.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/cline.js +51 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/cline.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.d.ts +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.js +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.js +41 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/flat.d.ts +13 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/flat.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/flat.js +76 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/flat.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.d.ts +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.js +12 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/grouped.d.ts +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/grouped.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/grouped.js +75 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/grouped.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.d.ts +5 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.js +19 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.d.ts +13 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.js +80 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/opencode.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/opencode.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/opencode.js +76 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/opencode.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/types.d.ts +29 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/types.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/types.js +2 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/types.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.d.ts +20 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.js +58 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/stage.d.ts +18 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/stage.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/stage.js +115 -0
- package/bundle/standalone/node_modules/kxta-core/dist/hooks/stage.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts +2 -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 +2 -1
- package/bundle/standalone/node_modules/kxta-core/dist/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.d.ts +5 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js +136 -52
- package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/git-watcher.js +2 -2
- package/bundle/standalone/node_modules/kxta-core/dist/journal/git-watcher.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.d.ts +4 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js +3 -14
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js +2 -13
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.d.ts +3 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.d.ts.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js +64 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js.map +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.d.ts +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.js +69 -2
- package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.d.ts +4 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.js +14 -0
- package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js +2 -17
- package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts +14 -1
- 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 +107 -20
- 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 +15 -2
- package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts.map +1 -1
- 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 +9 -0
- package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/profile/index.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/profile/index.js +14 -3
- package/bundle/standalone/node_modules/kxta-core/dist/profile/index.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/reports/sanitize.d.ts +1 -0
- package/bundle/standalone/node_modules/kxta-core/dist/reports/sanitize.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/reports/sanitize.js +23 -3
- package/bundle/standalone/node_modules/kxta-core/dist/reports/sanitize.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.d.ts.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js +16 -0
- package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js.map +1 -1
- package/bundle/standalone/node_modules/kxta-core/package.json +2 -2
- package/bundle/standalone/node_modules/kxta-publish/package.json +3 -3
- package/bundle/standalone/package.json +2 -2
- package/dist/{mcp-DGMGR3MZ.js → chunk-C4XU73GP.js} +2 -0
- package/dist/{doctor-NTVE43EI.js → doctor-HQBEQUUQ.js} +10 -1
- package/dist/hooks-6RQ5CCTW.js +22 -0
- package/dist/index.js +10 -4
- package/dist/mcp-VGISMLKH.js +9 -0
- package/dist/{start-66WKQRN5.js → start-RJVUJT4B.js} +9 -0
- package/package.json +2 -2
- package/bundle/standalone/apps/web/.next/static/DWDlM7S8dTnMlrhKW9K_X/_buildManifest.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/1480-3e4f4a95f11429a9.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/backlinks/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-html/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/reports/resources/[name]/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/version-check/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/welcome/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/page-eccc7438c998fcce.js +0 -1
- package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-f5e054069fb68dd7.js +0 -1
- package/bundle/standalone/apps/web/.next/static/css/35a6a6dfd2c31933.css +0 -3
- /package/bundle/standalone/apps/web/.next/static/{DWDlM7S8dTnMlrhKW9K_X → IxgiSiK05GtQGxU41f-Mx}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { homedir } from "node:os";
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import { agentMeta, isAgentId } from "./agents.js";
|
|
4
|
+
import { listAgents, markInstalled, markUninstalled } from "./registry.js";
|
|
5
|
+
import { EMITTER_VERSION, stageEmitter, syncProjectsSidecar, emitterVersionOnDisk, pruneHookState } from "./stage.js";
|
|
6
|
+
import { INSTALLERS } from "./installers/index.js";
|
|
7
|
+
function ctxOf(opts) {
|
|
8
|
+
return { home: opts.home ?? homedir(), dataDir: opts.dataDir, hostDataDir: opts.hostDataDir, nodeCmd: opts.nodeCmd, projectDir: opts.projectDir, dryRun: opts.dryRun };
|
|
9
|
+
}
|
|
10
|
+
function guard(id) {
|
|
11
|
+
if (!isAgentId(id))
|
|
12
|
+
return `unknown agent: ${id}`;
|
|
13
|
+
if (!agentMeta(id).hooksSupported)
|
|
14
|
+
return `${id} does not support hooks (MCP capture only)`;
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
export function installHooks(ids, opts) {
|
|
18
|
+
const ctx = ctxOf(opts);
|
|
19
|
+
const registry = opts.registry !== false;
|
|
20
|
+
let staged = false;
|
|
21
|
+
return ids.map((id) => {
|
|
22
|
+
const err = guard(id);
|
|
23
|
+
if (err)
|
|
24
|
+
return { agent: id, ok: false, changed: false, path: "", notes: [], error: err };
|
|
25
|
+
try {
|
|
26
|
+
if (!staged && !ctx.dryRun) {
|
|
27
|
+
stageEmitter(ctx.dataDir);
|
|
28
|
+
if (registry)
|
|
29
|
+
syncProjectsSidecar(ctx.dataDir);
|
|
30
|
+
staged = true;
|
|
31
|
+
}
|
|
32
|
+
const r = INSTALLERS[id].install(ctx);
|
|
33
|
+
if (registry && !ctx.dryRun && (r.changed || INSTALLERS[id].status(ctx).installed))
|
|
34
|
+
markInstalled(id, EMITTER_VERSION);
|
|
35
|
+
return { agent: id, ok: true, changed: r.changed, path: r.path, notes: r.notes };
|
|
36
|
+
}
|
|
37
|
+
catch (e) {
|
|
38
|
+
return { agent: id, ok: false, changed: false, path: INSTALLERS[id].configPath(ctx), notes: [], error: e instanceof Error ? e.message : String(e) };
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
export function uninstallHooks(ids, opts) {
|
|
43
|
+
const ctx = ctxOf(opts);
|
|
44
|
+
return ids.map((id) => {
|
|
45
|
+
const err = guard(id);
|
|
46
|
+
if (err)
|
|
47
|
+
return { agent: id, ok: false, changed: false, path: "", notes: [], error: err };
|
|
48
|
+
try {
|
|
49
|
+
const r = INSTALLERS[id].uninstall(ctx);
|
|
50
|
+
if (opts.registry !== false && !ctx.dryRun)
|
|
51
|
+
markUninstalled(id);
|
|
52
|
+
return { agent: id, ok: true, changed: r.changed, path: r.path, notes: r.notes };
|
|
53
|
+
}
|
|
54
|
+
catch (e) {
|
|
55
|
+
return { agent: id, ok: false, changed: false, path: INSTALLERS[id].configPath(ctx), notes: [], error: e instanceof Error ? e.message : String(e) };
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export function hooksStatus(opts) {
|
|
60
|
+
const ctx = ctxOf(opts);
|
|
61
|
+
const onDisk = emitterVersionOnDisk(ctx.dataDir);
|
|
62
|
+
return listAgents().map((row) => {
|
|
63
|
+
const inst = INSTALLERS[row.id];
|
|
64
|
+
if (!inst)
|
|
65
|
+
return { ...row, config_path: null, config_present: false, emitter_version_on_disk: onDisk, emitter_stale: false, notes: [] };
|
|
66
|
+
const s = inst.status(ctx);
|
|
67
|
+
return {
|
|
68
|
+
...row,
|
|
69
|
+
config_path: s.path || null,
|
|
70
|
+
config_present: s.installed || (!!s.path && existsSync(s.path)),
|
|
71
|
+
emitter_version_on_disk: onDisk,
|
|
72
|
+
emitter_stale: row.hooks_installed && onDisk !== EMITTER_VERSION,
|
|
73
|
+
notes: s.notes,
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
export function reconcile(opts) {
|
|
78
|
+
const ctx = ctxOf(opts);
|
|
79
|
+
const stale = emitterVersionOnDisk(ctx.dataDir) !== EMITTER_VERSION;
|
|
80
|
+
const due = listAgents()
|
|
81
|
+
.filter((r) => r.enabled && r.hooks_supported && (!r.hooks_installed || r.hooks_version !== EMITTER_VERSION || stale))
|
|
82
|
+
.map((r) => r.id);
|
|
83
|
+
if (!ctx.dryRun)
|
|
84
|
+
pruneHookState(ctx.dataDir);
|
|
85
|
+
if (due.length === 0) {
|
|
86
|
+
if (stale && !ctx.dryRun && listAgents().some((r) => r.hooks_installed))
|
|
87
|
+
stageEmitter(ctx.dataDir);
|
|
88
|
+
return [];
|
|
89
|
+
}
|
|
90
|
+
return installHooks(due, opts);
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../src/hooks/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAiB,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACtH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAanD,SAAS,KAAK,CAAC,IAAe;IAC5B,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;AACzK,CAAC;AAED,SAAS,KAAK,CAAC,EAAU;IACvB,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;QAAE,OAAO,kBAAkB,EAAE,EAAE,CAAC;IAClD,IAAI,CAAC,SAAS,CAAC,EAAE,CAAE,CAAC,cAAc;QAAE,OAAO,GAAG,EAAE,4CAA4C,CAAC;IAC7F,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,GA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;AAED,MAAM,UAAU,SAAS,CAAC,IAAe;IACvC,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IACxB,MAAM,KAAK,GAAG,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,eAAe,CAAC;IACpE,MAAM,GAAG,GAAG,UAAU,EAAE;SACrB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,eAAe,IAAI,CAAC,CAAC,CAAC,CAAC,eAAe,IAAI,CAAC,CAAC,aAAa,KAAK,eAAe,IAAI,KAAK,CAAC,CAAC;SACrH,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACpB,IAAI,CAAC,GAAG,CAAC,MAAM;QAAE,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7C,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrB,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;YAAE,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACnG,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/claude-code.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,gCAU9B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { groupedInstaller } from "./grouped.js";
|
|
2
|
+
export const claudeCodeInstaller = groupedInstaller({
|
|
3
|
+
id: "claude-code",
|
|
4
|
+
relPath: [".claude", "settings.json"],
|
|
5
|
+
timeoutKey: "timeout", timeoutValue: 5,
|
|
6
|
+
events: [
|
|
7
|
+
{ name: "UserPromptSubmit" },
|
|
8
|
+
{ name: "Stop" },
|
|
9
|
+
{ name: "SubagentStop" },
|
|
10
|
+
{ name: "PostToolUse", matcher: "Bash|AskUserQuestion" },
|
|
11
|
+
],
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=claude-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code.js","sourceRoot":"","sources":["../../../src/hooks/installers/claude-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;IAClD,EAAE,EAAE,aAAa;IACjB,OAAO,EAAE,CAAC,SAAS,EAAE,eAAe,CAAC;IACrC,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;IACtC,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,cAAc,EAAE;QACxB,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,sBAAsB,EAAE;KACzD;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cline.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/cline.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,YAAY,CAAC;AASxD,eAAO,MAAM,cAAc,EAAE,SA6B5B,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { existsSync, readFileSync, writeFileSync, mkdirSync, unlinkSync, chmodSync } from "node:fs";
|
|
3
|
+
import { emitCommand } from "./json-config.js";
|
|
4
|
+
const MARK = "# kontexta-hooks";
|
|
5
|
+
const HOOKS = ["UserPromptSubmit", "PostToolUse"];
|
|
6
|
+
const dirOf = (ctx) => join(ctx.home, "Documents", "Cline", "Hooks");
|
|
7
|
+
const shim = (ctx) => `#!/bin/sh\n${MARK}\nexec ${emitCommand(ctx, "cline")}\n`;
|
|
8
|
+
const ours = (p) => existsSync(p) && readFileSync(p, "utf8").includes(MARK);
|
|
9
|
+
export const clineInstaller = {
|
|
10
|
+
id: "cline",
|
|
11
|
+
configPath: (ctx) => dirOf(ctx),
|
|
12
|
+
install(ctx) {
|
|
13
|
+
const notes = ["Cline has no turn-end hook yet; prompts and shell commands are captured, replies are not."];
|
|
14
|
+
let changed = false;
|
|
15
|
+
if (!ctx.dryRun)
|
|
16
|
+
mkdirSync(dirOf(ctx), { recursive: true });
|
|
17
|
+
for (const name of HOOKS) {
|
|
18
|
+
const p = join(dirOf(ctx), name);
|
|
19
|
+
if (existsSync(p) && !ours(p)) {
|
|
20
|
+
notes.push(`${name}: an existing non-kontexta hook is present; left untouched.`);
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
const body = shim(ctx);
|
|
24
|
+
if (existsSync(p) && readFileSync(p, "utf8") === body)
|
|
25
|
+
continue;
|
|
26
|
+
if (!ctx.dryRun) {
|
|
27
|
+
writeFileSync(p, body, "utf8");
|
|
28
|
+
chmodSync(p, 0o755);
|
|
29
|
+
}
|
|
30
|
+
changed = true;
|
|
31
|
+
}
|
|
32
|
+
return { agent: "cline", path: dirOf(ctx), changed, notes };
|
|
33
|
+
},
|
|
34
|
+
uninstall(ctx) {
|
|
35
|
+
let changed = false;
|
|
36
|
+
for (const name of HOOKS) {
|
|
37
|
+
const p = join(dirOf(ctx), name);
|
|
38
|
+
if (ours(p)) {
|
|
39
|
+
if (!ctx.dryRun)
|
|
40
|
+
unlinkSync(p);
|
|
41
|
+
changed = true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return { agent: "cline", path: dirOf(ctx), changed, notes: [] };
|
|
45
|
+
},
|
|
46
|
+
status(ctx) {
|
|
47
|
+
const installed = HOOKS.every((name) => ours(join(dirOf(ctx), name)));
|
|
48
|
+
return { agent: "cline", path: dirOf(ctx), installed, notes: [] };
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=cline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cline.js","sourceRoot":"","sources":["../../../src/hooks/installers/cline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpG,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,IAAI,GAAG,kBAAkB,CAAC;AAChC,MAAM,KAAK,GAAG,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC;AAClD,MAAM,KAAK,GAAG,CAAC,GAAe,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AACjF,MAAM,IAAI,GAAG,CAAC,GAAe,EAAE,EAAE,CAAC,cAAc,IAAI,UAAU,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC;AAC5F,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAEpF,MAAM,CAAC,MAAM,cAAc,GAAc;IACvC,EAAE,EAAE,OAAO;IACX,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;IAC/B,OAAO,CAAC,GAAG;QACT,MAAM,KAAK,GAAa,CAAC,2FAA2F,CAAC,CAAC;QACtH,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,IAA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C;gBAAC,OAAO,GAAG,IAAI,CAAC;YAAC,CAAC;QAClE,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAClE,CAAC;IACD,MAAM,CAAC,GAAG;QACR,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACtE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACpE,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/codex.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,gCAazB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { groupedInstaller } from "./grouped.js";
|
|
2
|
+
export const codexInstaller = groupedInstaller({
|
|
3
|
+
id: "codex",
|
|
4
|
+
relPath: [".codex", "hooks.json"],
|
|
5
|
+
events: [
|
|
6
|
+
{ name: "UserPromptSubmit" },
|
|
7
|
+
{ name: "Stop" },
|
|
8
|
+
{ name: "SubagentStop" },
|
|
9
|
+
{ name: "PostToolUse", matcher: "shell|local_shell|exec_command" },
|
|
10
|
+
],
|
|
11
|
+
notes: [
|
|
12
|
+
"Codex only runs hooks you have trusted: open Codex and run /hooks to review and trust the kontexta hooks (trust is tied to the hook's content, so re-trust after reinstalling or moving node).",
|
|
13
|
+
"Older Codex versions may also need `[features]\\ncodex_hooks = true` in ~/.codex/config.toml.",
|
|
14
|
+
],
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=codex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../../src/hooks/installers/codex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;IAC7C,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC;IACjC,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,cAAc,EAAE;QACxB,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,gCAAgC,EAAE;KACnE;IACD,KAAK,EAAE;QACL,gMAAgM;QAChM,+FAA+F;KAChG;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/copilot.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,YAAY,CAAC;AAQxD,eAAO,MAAM,gBAAgB,EAAE,SAyB9B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { existsSync, unlinkSync } from "node:fs";
|
|
3
|
+
import { emitCommand, isOwned, readJsonConfig, writeJsonConfig } from "./json-config.js";
|
|
4
|
+
const EVENTS = ["userPromptSubmitted", "subagentStop", "postToolUse"];
|
|
5
|
+
// Copilot reads $COPILOT_HOME/hooks when set; a container host install can't see the host's environment, so it always uses <home>/.copilot.
|
|
6
|
+
const baseDir = (ctx) => (!ctx.hostDataDir && process.env.COPILOT_HOME ? process.env.COPILOT_HOME : join(ctx.home, ".copilot"));
|
|
7
|
+
const configPath = (ctx) => join(baseDir(ctx), "hooks", "kontexta.json");
|
|
8
|
+
export const copilotInstaller = {
|
|
9
|
+
id: "copilot",
|
|
10
|
+
configPath,
|
|
11
|
+
install(ctx) {
|
|
12
|
+
const path = configPath(ctx);
|
|
13
|
+
const hooks = {};
|
|
14
|
+
for (const ev of EVENTS)
|
|
15
|
+
hooks[ev] = [{ type: "command", command: emitCommand(ctx, "copilot", ev), timeoutSec: 5 }];
|
|
16
|
+
const changed = writeJsonConfig(path, { version: 1, hooks }, ctx.dryRun);
|
|
17
|
+
return { agent: "copilot", path, changed, notes: ["Copilot main-agent replies are not exposed to hooks yet (agentStop carries only a transcript path); subagent replies, prompts and shell commands are captured."] };
|
|
18
|
+
},
|
|
19
|
+
uninstall(ctx) {
|
|
20
|
+
const path = configPath(ctx);
|
|
21
|
+
if (!existsSync(path))
|
|
22
|
+
return { agent: "copilot", path, changed: false, notes: [] };
|
|
23
|
+
if (!ctx.dryRun)
|
|
24
|
+
unlinkSync(path);
|
|
25
|
+
return { agent: "copilot", path, changed: true, notes: [] };
|
|
26
|
+
},
|
|
27
|
+
status(ctx) {
|
|
28
|
+
const path = configPath(ctx);
|
|
29
|
+
let installed = false;
|
|
30
|
+
const notes = [];
|
|
31
|
+
try {
|
|
32
|
+
const hooks = readJsonConfig(path).hooks;
|
|
33
|
+
installed = EVENTS.every((ev) => (hooks?.[ev] ?? []).some((h) => isOwned(h?.command) || isOwned(h?.bash)));
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
notes.push(e.message);
|
|
37
|
+
}
|
|
38
|
+
return { agent: "copilot", path, installed, notes };
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=copilot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../../src/hooks/installers/copilot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EA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: AgentId;
|
|
5
|
+
relPath: string[];
|
|
6
|
+
events: string[];
|
|
7
|
+
hinted: boolean;
|
|
8
|
+
version?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function flatInstaller(spec: FlatSpec): Installer;
|
|
11
|
+
export declare const cursorInstaller: Installer;
|
|
12
|
+
export declare const windsurfInstaller: Installer;
|
|
13
|
+
//# sourceMappingURL=flat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flat.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/flat.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,YAAY,CAAC;AAGxD,MAAM,WAAW,QAAQ;IAAG,EAAE,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AAIjH,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,CAiDvD;AAED,eAAO,MAAM,eAAe,WAG1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,WAG5B,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { emitCommand, isOwned, readJsonConfig, writeJsonConfig, MalformedConfigError } from "./json-config.js";
|
|
3
|
+
export function flatInstaller(spec) {
|
|
4
|
+
const configPath = (ctx) => join(ctx.home, ...spec.relPath);
|
|
5
|
+
const hooksOf = (cfg, path) => {
|
|
6
|
+
if (cfg.hooks === undefined)
|
|
7
|
+
return {};
|
|
8
|
+
if (typeof cfg.hooks !== "object" || cfg.hooks === null || Array.isArray(cfg.hooks))
|
|
9
|
+
throw new MalformedConfigError(path, '"hooks" is not an object');
|
|
10
|
+
return { ...cfg.hooks };
|
|
11
|
+
};
|
|
12
|
+
const strip = (hooks) => {
|
|
13
|
+
const out = {};
|
|
14
|
+
for (const [ev, list] of Object.entries(hooks)) {
|
|
15
|
+
if (!Array.isArray(list)) {
|
|
16
|
+
out[ev] = list;
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
const kept = list.filter((e) => !isOwned(e?.command));
|
|
20
|
+
if (kept.length > 0)
|
|
21
|
+
out[ev] = kept;
|
|
22
|
+
}
|
|
23
|
+
return out;
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
id: spec.id,
|
|
27
|
+
configPath,
|
|
28
|
+
install(ctx) {
|
|
29
|
+
const path = configPath(ctx);
|
|
30
|
+
const cfg = readJsonConfig(path);
|
|
31
|
+
const hooks = strip(hooksOf(cfg, path));
|
|
32
|
+
for (const ev of spec.events) {
|
|
33
|
+
hooks[ev] = [...(hooks[ev] ?? []), { command: emitCommand(ctx, spec.id, spec.hinted ? ev : undefined) }];
|
|
34
|
+
}
|
|
35
|
+
const next = { ...cfg, hooks };
|
|
36
|
+
if (spec.version !== undefined && next.version === undefined)
|
|
37
|
+
next.version = spec.version;
|
|
38
|
+
return { agent: spec.id, path, changed: writeJsonConfig(path, next, ctx.dryRun), notes: [] };
|
|
39
|
+
},
|
|
40
|
+
uninstall(ctx) {
|
|
41
|
+
const path = configPath(ctx);
|
|
42
|
+
const cfg = readJsonConfig(path);
|
|
43
|
+
if (!cfg.hooks)
|
|
44
|
+
return { agent: spec.id, path, changed: false, notes: [] };
|
|
45
|
+
const hooks = strip(hooksOf(cfg, path));
|
|
46
|
+
const next = { ...cfg };
|
|
47
|
+
if (Object.keys(hooks).length > 0)
|
|
48
|
+
next.hooks = hooks;
|
|
49
|
+
else
|
|
50
|
+
delete next.hooks;
|
|
51
|
+
return { agent: spec.id, path, changed: writeJsonConfig(path, next, ctx.dryRun), notes: [] };
|
|
52
|
+
},
|
|
53
|
+
status(ctx) {
|
|
54
|
+
const path = configPath(ctx);
|
|
55
|
+
let installed = false;
|
|
56
|
+
const notes = [];
|
|
57
|
+
try {
|
|
58
|
+
const hooks = hooksOf(readJsonConfig(path), path);
|
|
59
|
+
installed = spec.events.every((ev) => (hooks[ev] ?? []).some((e) => isOwned(e?.command)));
|
|
60
|
+
}
|
|
61
|
+
catch (e) {
|
|
62
|
+
notes.push(e.message);
|
|
63
|
+
}
|
|
64
|
+
return { agent: spec.id, path, installed, notes };
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export const cursorInstaller = flatInstaller({
|
|
69
|
+
id: "cursor", relPath: [".cursor", "hooks.json"], version: 1, hinted: false,
|
|
70
|
+
events: ["beforeSubmitPrompt", "afterAgentResponse", "afterShellExecution"],
|
|
71
|
+
});
|
|
72
|
+
export const windsurfInstaller = flatInstaller({
|
|
73
|
+
id: "windsurf", relPath: [".codeium", "windsurf", "hooks.json"], hinted: true,
|
|
74
|
+
events: ["pre_user_prompt", "post_cascade_response", "post_run_command"],
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=flat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flat.js","sourceRoot":"","sources":["../../../src/hooks/installers/flat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAM/G,MAAM,UAAU,aAAa,CAAC,IAAc;IAC1C,MAAM,UAAU,GAAG,CAAC,GAAe,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;IACxE,MAAM,OAAO,GAAG,CAAC,GAA4B,EAAE,IAAY,EAA2B,EAAE;QACtF,IAAI,GAAG,CAAC,KAAK,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACvC,IAAI,OAAO,GAAG,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U,EAAE,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI;IAC7E,MAAM,EAAE,CAAC,iBAAiB,EAAE,uBAAuB,EAAE,kBAAkB,CAAC;CACzE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/gemini.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,gCAS1B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { groupedInstaller } from "./grouped.js";
|
|
2
|
+
export const geminiInstaller = groupedInstaller({
|
|
3
|
+
id: "gemini",
|
|
4
|
+
relPath: [".gemini", "settings.json"],
|
|
5
|
+
events: [
|
|
6
|
+
{ name: "BeforeAgent" },
|
|
7
|
+
{ name: "AfterAgent" },
|
|
8
|
+
{ name: "AfterTool", matcher: "run_shell_command" },
|
|
9
|
+
],
|
|
10
|
+
notes: ["Gemini parses hook stdout as JSON; the emitter prints nothing, so no action needed."],
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=gemini.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gemini.js","sourceRoot":"","sources":["../../../src/hooks/installers/gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAC;IAC9C,EAAE,EAAE,QAAQ;IACZ,OAAO,EAAE,CAAC,SAAS,EAAE,eAAe,CAAC;IACrC,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,aAAa,EAAE;QACvB,EAAE,IAAI,EAAE,YAAY,EAAE;QACtB,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,mBAAmB,EAAE;KACpD;IACD,KAAK,EAAE,CAAC,qFAAqF,CAAC;CAC/F,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AgentId } from "../agents.js";
|
|
2
|
+
import type { Installer } from "./types.js";
|
|
3
|
+
export interface GroupedSpec {
|
|
4
|
+
id: AgentId;
|
|
5
|
+
relPath: string[];
|
|
6
|
+
events: Array<{
|
|
7
|
+
name: string;
|
|
8
|
+
matcher?: string;
|
|
9
|
+
event?: string;
|
|
10
|
+
}>;
|
|
11
|
+
timeoutKey?: string;
|
|
12
|
+
timeoutValue?: number;
|
|
13
|
+
notes?: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare function groupedInstaller(spec: GroupedSpec): Installer;
|
|
16
|
+
//# sourceMappingURL=grouped.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grouped.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/grouped.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,YAAY,CAAC;AAGxD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,OAAO,CAAC;IACZ,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAiBD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,CA4C7D"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { emitCommand, isOwned, readJsonConfig, writeJsonConfig, MalformedConfigError } from "./json-config.js";
|
|
3
|
+
function stripOwned(hooks) {
|
|
4
|
+
const out = {};
|
|
5
|
+
for (const [ev, groups] of Object.entries(hooks)) {
|
|
6
|
+
if (!Array.isArray(groups)) {
|
|
7
|
+
out[ev] = groups;
|
|
8
|
+
continue;
|
|
9
|
+
}
|
|
10
|
+
const kept = groups.map((g) => {
|
|
11
|
+
if (!g || !Array.isArray(g.hooks))
|
|
12
|
+
return g;
|
|
13
|
+
return { ...g, hooks: g.hooks.filter((h) => !isOwned(h?.command)) };
|
|
14
|
+
}).filter((g) => !g || !Array.isArray(g.hooks) || g.hooks.length > 0);
|
|
15
|
+
if (kept.length > 0)
|
|
16
|
+
out[ev] = kept;
|
|
17
|
+
}
|
|
18
|
+
return out;
|
|
19
|
+
}
|
|
20
|
+
export function groupedInstaller(spec) {
|
|
21
|
+
const configPath = (ctx) => join(ctx.home, ...spec.relPath);
|
|
22
|
+
const hooksOf = (cfg, path) => {
|
|
23
|
+
if (cfg.hooks === undefined)
|
|
24
|
+
return {};
|
|
25
|
+
if (typeof cfg.hooks !== "object" || cfg.hooks === null || Array.isArray(cfg.hooks))
|
|
26
|
+
throw new MalformedConfigError(path, '"hooks" is not an object');
|
|
27
|
+
return cfg.hooks;
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
id: spec.id,
|
|
31
|
+
configPath,
|
|
32
|
+
install(ctx) {
|
|
33
|
+
const path = configPath(ctx);
|
|
34
|
+
const cfg = readJsonConfig(path);
|
|
35
|
+
const hooks = stripOwned(hooksOf(cfg, path));
|
|
36
|
+
for (const e of spec.events) {
|
|
37
|
+
const entry = { type: "command", command: emitCommand(ctx, spec.id, e.event) };
|
|
38
|
+
if (spec.timeoutKey)
|
|
39
|
+
entry[spec.timeoutKey] = spec.timeoutValue ?? 5;
|
|
40
|
+
const group = e.matcher ? { matcher: e.matcher, hooks: [entry] } : { hooks: [entry] };
|
|
41
|
+
hooks[e.name] = [...(hooks[e.name] ?? []), group];
|
|
42
|
+
}
|
|
43
|
+
const changed = writeJsonConfig(path, { ...cfg, hooks }, ctx.dryRun);
|
|
44
|
+
return { agent: spec.id, path, changed, notes: [...(spec.notes ?? [])] };
|
|
45
|
+
},
|
|
46
|
+
uninstall(ctx) {
|
|
47
|
+
const path = configPath(ctx);
|
|
48
|
+
const cfg = readJsonConfig(path);
|
|
49
|
+
if (!cfg.hooks)
|
|
50
|
+
return { agent: spec.id, path, changed: false, notes: [] };
|
|
51
|
+
const hooks = stripOwned(hooksOf(cfg, path));
|
|
52
|
+
const next = { ...cfg };
|
|
53
|
+
if (Object.keys(hooks).length > 0)
|
|
54
|
+
next.hooks = hooks;
|
|
55
|
+
else
|
|
56
|
+
delete next.hooks;
|
|
57
|
+
const changed = writeJsonConfig(path, next, ctx.dryRun);
|
|
58
|
+
return { agent: spec.id, path, changed, notes: [] };
|
|
59
|
+
},
|
|
60
|
+
status(ctx) {
|
|
61
|
+
const path = configPath(ctx);
|
|
62
|
+
let installed = false;
|
|
63
|
+
const notes = [];
|
|
64
|
+
try {
|
|
65
|
+
const hooks = hooksOf(readJsonConfig(path), path);
|
|
66
|
+
installed = spec.events.every((e) => (hooks[e.name] ?? []).some((g) => (g?.hooks ?? []).some((h) => isOwned(h?.command))));
|
|
67
|
+
}
|
|
68
|
+
catch (e) {
|
|
69
|
+
notes.push(e.message);
|
|
70
|
+
}
|
|
71
|
+
return { agent: spec.id, path, installed, notes };
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=grouped.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grouped.js","sourceRoot":"","sources":["../../../src/hooks/installers/grouped.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAa/G,SAAS,UAAU,CAAC,KAA8B;IAChD,MAAM,GAAG,GAA4B,EAAE,CAAC;I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CAAC;YAClD,IAAI,CAAC;gBACH,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;gBAClD,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAyB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;YACtJ,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBAAC,KAAK,CAAC,IAAI,CAAE,CAAW,CAAC,OAAO,CAAC,CAAC;YAAC,CAAC;YACjD,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;QACpD,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Installer } from "./types.js";
|
|
2
|
+
export declare const INSTALLERS: Record<string, Installer>;
|
|
3
|
+
export type { Installer, InstallCtx, InstallResult, StatusResult } from "./types.js";
|
|
4
|
+
export { MalformedConfigError, emitCommand, isOwned } from "./json-config.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAS5C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAShD,CAAC;AACF,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { claudeCodeInstaller } from "./claude-code.js";
|
|
2
|
+
import { geminiInstaller } from "./gemini.js";
|
|
3
|
+
import { codexInstaller } from "./codex.js";
|
|
4
|
+
import { cursorInstaller, windsurfInstaller } from "./flat.js";
|
|
5
|
+
import { copilotInstaller } from "./copilot.js";
|
|
6
|
+
import { clineInstaller } from "./cline.js";
|
|
7
|
+
import { opencodeInstaller } from "./opencode.js";
|
|
8
|
+
export const INSTALLERS = {
|
|
9
|
+
"claude-code": claudeCodeInstaller,
|
|
10
|
+
gemini: geminiInstaller,
|
|
11
|
+
codex: codexInstaller,
|
|
12
|
+
copilot: copilotInstaller,
|
|
13
|
+
cursor: cursorInstaller,
|
|
14
|
+
windsurf: windsurfInstaller,
|
|
15
|
+
cline: clineInstaller,
|
|
16
|
+
opencode: opencodeInstaller,
|
|
17
|
+
};
|
|
18
|
+
export { MalformedConfigError, emitCommand, isOwned } from "./json-config.js";
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/installers/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAA8B;IACnD,aAAa,EAAE,mBAAmB;IAClC,MAAM,EAAE,eAAe;IACvB,KAAK,EAAE,cAAc;IACrB,OAAO,EAAE,gBAAgB;IACzB,MAAM,EAAE,eAAe;IACvB,QAAQ,EAAE,iBAAiB;IAC3B,KAAK,EAAE,cAAc;IACrB,QAAQ,EAAE,iBAAiB;CAC5B,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InstallCtx } from "./types.js";
|
|
2
|
+
export declare const OWNED_MARK = "hooks/emit.mjs";
|
|
3
|
+
export declare class MalformedConfigError extends Error {
|
|
4
|
+
path: string;
|
|
5
|
+
constructor(path: string, cause: unknown);
|
|
6
|
+
}
|
|
7
|
+
export declare const hostDirOf: (ctx: InstallCtx) => string;
|
|
8
|
+
export declare const nodeCmdOf: (ctx: InstallCtx) => string;
|
|
9
|
+
export declare function emitCommand(ctx: InstallCtx, agent: string, event?: string): string;
|
|
10
|
+
export declare function isOwned(command: unknown): boolean;
|
|
11
|
+
export declare function readJsonConfig(path: string): Record<string, unknown>;
|
|
12
|
+
export declare function writeJsonConfig(path: string, value: unknown, dryRun?: boolean): boolean;
|
|
13
|
+
//# sourceMappingURL=json-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-config.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/json-config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAE3C,qBAAa,oBAAqB,SAAQ,KAAK;IAC1B,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CAGhD;AAID,eAAO,MAAM,SAAS,GAAI,KAAK,UAAU,KAAG,MAAwC,CAAC;AAGrF,eAAO,MAAM,SAAS,GAAI,KAAK,UAAU,KAAG,MAAsE,CAAC;AAEnH,wBAAgB,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAMlF;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAWpE;AAWD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAQ,GAAG,OAAO,CAiBrF"}
|