kontexta 5.0.0 → 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 +9 -0
- package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
- package/bundle/standalone/apps/web/.next/app-build-manifest.json +102 -81
- 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 +16 -16
- 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 +6 -2
- package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +2 -0
- 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 +32 -5
- 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 +54 -8
- package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.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/rules-block.md +2 -0
- 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 +3 -0
- 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/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/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/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/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-98057182511ba7e4.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/hUyNKiBOk3HaC0S0gE_N8/_buildManifest.js +0 -1
- /package/bundle/standalone/apps/web/.next/static/{hUyNKiBOk3HaC0S0gE_N8 → IxgiSiK05GtQGxU41f-Mx}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AgentId } from "../agents.js";
|
|
2
|
+
export interface InstallCtx {
|
|
3
|
+
home: string;
|
|
4
|
+
dataDir: string;
|
|
5
|
+
hostDataDir?: string;
|
|
6
|
+
nodeCmd?: string;
|
|
7
|
+
projectDir?: string;
|
|
8
|
+
dryRun?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface InstallResult {
|
|
11
|
+
agent: AgentId;
|
|
12
|
+
path: string;
|
|
13
|
+
changed: boolean;
|
|
14
|
+
notes: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface StatusResult {
|
|
17
|
+
agent: AgentId;
|
|
18
|
+
path: string;
|
|
19
|
+
installed: boolean;
|
|
20
|
+
notes: string[];
|
|
21
|
+
}
|
|
22
|
+
export interface Installer {
|
|
23
|
+
id: AgentId;
|
|
24
|
+
configPath(ctx: InstallCtx): string;
|
|
25
|
+
install(ctx: InstallCtx): InstallResult;
|
|
26
|
+
uninstall(ctx: InstallCtx): InstallResult;
|
|
27
|
+
status(ctx: InstallCtx): StatusResult;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAAG,KAAK,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE;AAClG,MAAM,WAAW,YAAY;IAAG,KAAK,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE;AAEnG,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,OAAO,CAAC;IACZ,UAAU,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,UAAU,GAAG,aAAa,CAAC;IACxC,SAAS,CAAC,GAAG,EAAE,UAAU,GAAG,aAAa,CAAC;IAC1C,MAAM,CAAC,GAAG,EAAE,UAAU,GAAG,YAAY,CAAC;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/hooks/installers/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface AgentRow {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
hooks_supported: boolean;
|
|
6
|
+
onboardable: boolean;
|
|
7
|
+
hooks_installed: boolean;
|
|
8
|
+
hooks_version: string | null;
|
|
9
|
+
hooks_installed_at: string | null;
|
|
10
|
+
hooks_verified_at: string | null;
|
|
11
|
+
last_hook_event_at: string | null;
|
|
12
|
+
}
|
|
13
|
+
export declare function syncAgentRows(): void;
|
|
14
|
+
export declare function listAgents(): AgentRow[];
|
|
15
|
+
export declare function setEnabled(id: string, enabled: boolean): void;
|
|
16
|
+
export declare function markInstalled(id: string, version: string): void;
|
|
17
|
+
export declare function markUninstalled(id: string): void;
|
|
18
|
+
export declare function markVerified(id: string, ts: string): void;
|
|
19
|
+
export declare function alerts(now?: Date): AgentRow[];
|
|
20
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/hooks/registry.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAUD,wBAAgB,aAAa,IAAI,IAAI,CAOpC;AAED,wBAAgB,UAAU,IAAI,QAAQ,EAAE,CAYvC;AAMD,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAG7D;AAED,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAI/D;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAKhD;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAIzD;AAED,wBAAgB,MAAM,CAAC,GAAG,GAAE,IAAiB,GAAG,QAAQ,EAAE,CAMzD"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { getDatabase } from "../db/index.js";
|
|
2
|
+
import { AGENTS, isAgentId } from "./agents.js";
|
|
3
|
+
const UNVERIFIED_ALERT_DAYS = 7;
|
|
4
|
+
export function syncAgentRows() {
|
|
5
|
+
const db = getDatabase();
|
|
6
|
+
const up = db.prepare(`
|
|
7
|
+
INSERT INTO agents (id, hooks_supported) VALUES (?, ?)
|
|
8
|
+
ON CONFLICT(id) DO UPDATE SET hooks_supported = excluded.hooks_supported
|
|
9
|
+
`);
|
|
10
|
+
db.transaction(() => { for (const a of AGENTS)
|
|
11
|
+
up.run(a.id, a.hooksSupported ? 1 : 0); })();
|
|
12
|
+
}
|
|
13
|
+
export function listAgents() {
|
|
14
|
+
const rows = getDatabase().prepare(`SELECT * FROM agents`).all();
|
|
15
|
+
const byId = new Map(rows.map((r) => [r.id, r]));
|
|
16
|
+
return AGENTS.filter((a) => byId.has(a.id)).map((a) => {
|
|
17
|
+
const r = byId.get(a.id);
|
|
18
|
+
return {
|
|
19
|
+
id: r.id, name: a.name,
|
|
20
|
+
enabled: r.enabled === 1, hooks_supported: r.hooks_supported === 1, onboardable: a.onboardable, hooks_installed: r.hooks_installed === 1,
|
|
21
|
+
hooks_version: r.hooks_version, hooks_installed_at: r.hooks_installed_at,
|
|
22
|
+
hooks_verified_at: r.hooks_verified_at, last_hook_event_at: r.last_hook_event_at,
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function touch(sql, ...params) {
|
|
27
|
+
getDatabase().prepare(sql).run(...params);
|
|
28
|
+
}
|
|
29
|
+
export function setEnabled(id, enabled) {
|
|
30
|
+
if (!isAgentId(id))
|
|
31
|
+
throw new Error(`unknown agent: ${id}`);
|
|
32
|
+
touch(`UPDATE agents SET enabled = ?, updated_at = strftime('%Y-%m-%dT%H:%M:%fZ','now') WHERE id = ?`, enabled ? 1 : 0, id);
|
|
33
|
+
}
|
|
34
|
+
export function markInstalled(id, version) {
|
|
35
|
+
if (!isAgentId(id))
|
|
36
|
+
throw new Error(`unknown agent: ${id}`);
|
|
37
|
+
touch(`UPDATE agents SET hooks_installed = 1, hooks_version = ?, hooks_installed_at = strftime('%Y-%m-%dT%H:%M:%fZ','now'),
|
|
38
|
+
updated_at = strftime('%Y-%m-%dT%H:%M:%fZ','now') WHERE id = ?`, version, id);
|
|
39
|
+
}
|
|
40
|
+
export function markUninstalled(id) {
|
|
41
|
+
if (!isAgentId(id))
|
|
42
|
+
throw new Error(`unknown agent: ${id}`);
|
|
43
|
+
// Uninstalling also turns the agent off: "enabled" means hooks are wanted, and reconcile would otherwise reinstall them on the next start.
|
|
44
|
+
touch(`UPDATE agents SET enabled = 0, hooks_installed = 0, hooks_version = NULL, hooks_installed_at = NULL, hooks_verified_at = NULL,
|
|
45
|
+
updated_at = strftime('%Y-%m-%dT%H:%M:%fZ','now') WHERE id = ?`, id);
|
|
46
|
+
}
|
|
47
|
+
export function markVerified(id, ts) {
|
|
48
|
+
if (!isAgentId(id))
|
|
49
|
+
return;
|
|
50
|
+
touch(`UPDATE agents SET hooks_verified_at = COALESCE(hooks_verified_at, ?), last_hook_event_at = ?,
|
|
51
|
+
updated_at = strftime('%Y-%m-%dT%H:%M:%fZ','now') WHERE id = ?`, ts, ts, id);
|
|
52
|
+
}
|
|
53
|
+
export function alerts(now = new Date()) {
|
|
54
|
+
const cutoff = new Date(now.getTime() - UNVERIFIED_ALERT_DAYS * 86_400_000).toISOString();
|
|
55
|
+
return listAgents().filter((r) => r.enabled && r.hooks_supported &&
|
|
56
|
+
((!r.hooks_installed && r.hooks_verified_at === null) || (r.hooks_installed && r.hooks_verified_at === null && (r.hooks_installed_at ?? "") < cutoff)));
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/hooks/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAqBhD,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAEhC,MAAM,UAAU,aAAa;IAC3B,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC;;;GAGrB,CAAC,CAAC;IACH,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,CAAC,IAAI,MAAM;QAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC9F,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,MAAM,IAAI,GAAG,WAAW,EAAE,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,GAAG,EAAc,CAAC;IAC7E,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,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|
2
|
+
export declare function emitterSourceCandidates(here: string, cwd: string): string[];
|
|
3
|
+
export declare function emitterSourcePath(): string;
|
|
4
|
+
export declare const EMITTER_VERSION: string;
|
|
5
|
+
export declare function stagedEmitterPath(dataDir: string): string;
|
|
6
|
+
export declare function stageEmitter(dataDir: string): {
|
|
7
|
+
path: string;
|
|
8
|
+
changed: boolean;
|
|
9
|
+
version: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function emitterVersionOnDisk(dataDir: string): string | null;
|
|
12
|
+
export declare function syncProjectsSidecar(dataDir: string): {
|
|
13
|
+
path: string;
|
|
14
|
+
count: number;
|
|
15
|
+
};
|
|
16
|
+
export declare function syncProjectsSidecarIfStaged(dataDir: string): void;
|
|
17
|
+
export declare function pruneHookState(dataDir: string, maxAgeDays?: number): number;
|
|
18
|
+
//# sourceMappingURL=stage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../src/hooks/stage.ts"],"names":[],"mappings":"AAMA,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvD;AAKD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAgB3E;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAK1C;AAGD,eAAO,MAAM,eAAe,EAAE,MAE1B,CAAC;AAEL,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKzD;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAWjG;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMnE;AAGD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAWpF;AAGD,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIjE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,SAAK,GAAG,MAAM,CAWvE"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { readFileSync, writeFileSync, mkdirSync, existsSync, readdirSync, statSync, unlinkSync, renameSync } from "node:fs";
|
|
2
|
+
import { join, dirname, posix } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
5
|
+
import { getDatabase } from "../db/index.js";
|
|
6
|
+
export function emitterVersionOf(source) {
|
|
7
|
+
return createHash("sha256").update(source.replace(/\r\n/g, "\n")).digest("hex").slice(0, 12);
|
|
8
|
+
}
|
|
9
|
+
const DEV_HEADER = "// kontexta-hooks v0.0.0-dev";
|
|
10
|
+
// Bundlers rewrite import.meta.url, so besides the tsc/tsup/source layouts also look for the copy shipped inside node_modules/kxta-core on the way up.
|
|
11
|
+
export function emitterSourceCandidates(here, cwd) {
|
|
12
|
+
const out = [
|
|
13
|
+
join(here, "emit.mjs"),
|
|
14
|
+
join(here, "hooks", "emit.mjs"),
|
|
15
|
+
join(here, "..", "..", "src", "hooks", "emit.mjs"),
|
|
16
|
+
join(cwd, "packages", "core", "src", "hooks", "emit.mjs"),
|
|
17
|
+
join(cwd, "packages", "core", "dist", "hooks", "emit.mjs"),
|
|
18
|
+
];
|
|
19
|
+
let dir = here;
|
|
20
|
+
for (let i = 0; i < 16; i++) {
|
|
21
|
+
out.push(join(dir, "node_modules", "kxta-core", "dist", "hooks", "emit.mjs"));
|
|
22
|
+
const parent = dirname(dir);
|
|
23
|
+
if (parent === dir)
|
|
24
|
+
break;
|
|
25
|
+
dir = parent;
|
|
26
|
+
}
|
|
27
|
+
return out;
|
|
28
|
+
}
|
|
29
|
+
export function emitterSourcePath() {
|
|
30
|
+
const candidates = emitterSourceCandidates(dirname(fileURLToPath(import.meta.url)), process.cwd());
|
|
31
|
+
const found = candidates.find((p) => existsSync(p));
|
|
32
|
+
if (!found)
|
|
33
|
+
throw new Error(`emit.mjs not found; looked in: ${candidates.join(", ")}`);
|
|
34
|
+
return found;
|
|
35
|
+
}
|
|
36
|
+
// Content-derived so any emit.mjs change re-stages on the next reconcile; rulesVersion only moves when the rules block changes.
|
|
37
|
+
export const EMITTER_VERSION = (() => {
|
|
38
|
+
try {
|
|
39
|
+
return emitterVersionOf(readFileSync(emitterSourcePath(), "utf8"));
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return "unknown";
|
|
43
|
+
}
|
|
44
|
+
})();
|
|
45
|
+
export function stagedEmitterPath(dataDir) {
|
|
46
|
+
if (dataDir.startsWith("/") || (!dataDir.includes("\\") && dataDir.includes("/"))) {
|
|
47
|
+
return posix.join(dataDir, "hooks", "emit.mjs");
|
|
48
|
+
}
|
|
49
|
+
return join(dataDir, "hooks", "emit.mjs");
|
|
50
|
+
}
|
|
51
|
+
export function stageEmitter(dataDir) {
|
|
52
|
+
const src = readFileSync(emitterSourcePath(), "utf8").replace(/\r\n/g, "\n");
|
|
53
|
+
const stamped = src.startsWith(DEV_HEADER) ? `// kontexta-hooks v${EMITTER_VERSION}${src.slice(DEV_HEADER.length)}` : src;
|
|
54
|
+
const dst = stagedEmitterPath(dataDir);
|
|
55
|
+
const current = existsSync(dst) ? readFileSync(dst, "utf8") : null;
|
|
56
|
+
if (current === stamped)
|
|
57
|
+
return { path: dst, changed: false, version: EMITTER_VERSION };
|
|
58
|
+
mkdirSync(dirname(dst), { recursive: true });
|
|
59
|
+
const tmp = `${dst}.${process.pid}.tmp`;
|
|
60
|
+
writeFileSync(tmp, stamped, "utf8");
|
|
61
|
+
renameSync(tmp, dst);
|
|
62
|
+
return { path: dst, changed: true, version: EMITTER_VERSION };
|
|
63
|
+
}
|
|
64
|
+
export function emitterVersionOnDisk(dataDir) {
|
|
65
|
+
try {
|
|
66
|
+
const first = readFileSync(stagedEmitterPath(dataDir), "utf8").split(/\r?\n/)[0].trimEnd();
|
|
67
|
+
const m = first.match(/^\/\/ kontexta-hooks v(\S+)$/);
|
|
68
|
+
return m ? m[1] : null;
|
|
69
|
+
}
|
|
70
|
+
catch {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
// Reads the DB directly (not metadata.listProjects) so metadata can call this without an import cycle.
|
|
75
|
+
export function syncProjectsSidecar(dataDir) {
|
|
76
|
+
const rows = getDatabase()
|
|
77
|
+
.prepare(`SELECT slug, path FROM projects WHERE path IS NOT NULL AND path != '' ORDER BY slug`)
|
|
78
|
+
.all();
|
|
79
|
+
const projects = rows.map((p) => ({ slug: p.slug, path: p.path }));
|
|
80
|
+
const path = join(dataDir, "hooks", "projects.json");
|
|
81
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
82
|
+
const tmp = `${path}.${process.pid}.tmp`;
|
|
83
|
+
writeFileSync(tmp, JSON.stringify({ version: 1, projects }, null, 2), "utf8");
|
|
84
|
+
renameSync(tmp, path);
|
|
85
|
+
return { path, count: projects.length };
|
|
86
|
+
}
|
|
87
|
+
// Called from project registration; skipped under test and until hooks are staged so registering a project never creates files in a real data dir.
|
|
88
|
+
export function syncProjectsSidecarIfStaged(dataDir) {
|
|
89
|
+
if (process.env.VITEST || process.env.NODE_ENV === "test")
|
|
90
|
+
return;
|
|
91
|
+
if (!existsSync(join(dataDir, "hooks")))
|
|
92
|
+
return;
|
|
93
|
+
syncProjectsSidecar(dataDir);
|
|
94
|
+
}
|
|
95
|
+
export function pruneHookState(dataDir, maxAgeDays = 30) {
|
|
96
|
+
const dir = join(dataDir, "hooks", "state");
|
|
97
|
+
if (!existsSync(dir))
|
|
98
|
+
return 0;
|
|
99
|
+
const cutoff = Date.now() - maxAgeDays * 86_400_000;
|
|
100
|
+
let removed = 0;
|
|
101
|
+
for (const f of readdirSync(dir)) {
|
|
102
|
+
if (!f.endsWith(".json"))
|
|
103
|
+
continue;
|
|
104
|
+
const p = join(dir, f);
|
|
105
|
+
try {
|
|
106
|
+
if (statSync(p).mtimeMs < cutoff) {
|
|
107
|
+
unlinkSync(p);
|
|
108
|
+
removed++;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
catch { }
|
|
112
|
+
}
|
|
113
|
+
return removed;
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=stage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage.js","sourceRoot":"","sources":["../../src/hooks/stage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5H,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,UAAU,gBAAgB,CAAC,MAAc;IAC7C,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAC/F,CAAC;AAED,MAAM,UAAU,GAAG,8BAA8B,CAAC;AAElD,uJAAuJ;AACvJ,MAAM,UAAU,uBAAuB,CAAC,IAAY,EAAE,GAAW;IAC/D,MAAM,GAAG,GAAG;QACV,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC;QACtB,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,UA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AAE,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC;YAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,MAAM,EAAE,CAAC;gBAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBAAC,OAAO,EAAE,CAAC;YAAC,CAAC;QAAC,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;IAClF,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { getDataDir, getDbPath, ensureDataDir, resetDataDirCache, defaultDataDir, defaultDataDirDisplay, homeSensitivePrefixes } from "./util/paths.js";
|
|
2
|
-
export { createDatabase, getDatabase, closeDatabase, gracefulShutdown } from "./db/index.js";
|
|
2
|
+
export { createDatabase, getDatabase, isDatabaseOpen, closeDatabase, gracefulShutdown } from "./db/index.js";
|
|
3
3
|
import { createFile, readFile, updateFile, deleteFile, listFiles, moveFile, createFolder, deleteFolder, listProjectFolders, listProjectFoldersWithFiles, slugify } from "./files/index.js";
|
|
4
4
|
export { createFile, readFile, updateFile, deleteFile, listFiles, moveFile, createFolder, deleteFolder, listProjectFolders, listProjectFoldersWithFiles, slugify };
|
|
5
5
|
export { parseOutline, findSection, replaceSection, type OutlineNode } from "./files/sections.js";
|
|
@@ -20,6 +20,7 @@ export { clipUrl, ClipError, type ClipErrorCode, type ClipUrlOptions } from "./c
|
|
|
20
20
|
export { whatsNew, resolveSince, type WhatsNewOptions, type WhatsNewResult, type WhatsNewEntry, type ChangeKind, } from "./whats-new/index.js";
|
|
21
21
|
export { projectMap, type ProjectMapOptions, type ProjectMapResult, type ProjectMapStats, } from "./project-map/index.js";
|
|
22
22
|
export * from "./journal/index.js";
|
|
23
|
+
export * from "./hooks/index.js";
|
|
23
24
|
export * from "./profile/index.js";
|
|
24
25
|
export * from "./calendar/index.js";
|
|
25
26
|
export { writeResource, readResource, listResources, deleteResource, resourceUrlFor, resourceSrcFor, mimeFor } from "./reports/resources.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxJ,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxJ,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3L,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,OAAO,EAAE,CAAC;AACnK,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC1F,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CA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OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACtF,mBAAmB,YAAY,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC9F,OAAO,EACL,QAAQ,EAAE,YAAY,EACtB,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,GAC/E,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,UAAU,EACV,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,GACpE,MAAM,wBAAwB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC7I,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { getDataDir, getDbPath, ensureDataDir, resetDataDirCache, defaultDataDir, defaultDataDirDisplay, homeSensitivePrefixes } from "./util/paths.js";
|
|
2
|
-
export { createDatabase, getDatabase, closeDatabase, gracefulShutdown } from "./db/index.js";
|
|
2
|
+
export { createDatabase, getDatabase, isDatabaseOpen, closeDatabase, gracefulShutdown } from "./db/index.js";
|
|
3
3
|
import { createFile, readFile, updateFile, deleteFile, listFiles, moveFile, createFolder, deleteFolder, listProjectFolders, listProjectFoldersWithFiles, slugify } from "./files/index.js";
|
|
4
4
|
export { createFile, readFile, updateFile, deleteFile, listFiles, moveFile, createFolder, deleteFolder, listProjectFolders, listProjectFoldersWithFiles, slugify };
|
|
5
5
|
export { parseOutline, findSection, replaceSection } from "./files/sections.js";
|
|
@@ -18,6 +18,7 @@ export { clipUrl, ClipError } from "./clip/index.js";
|
|
|
18
18
|
export { whatsNew, resolveSince, } from "./whats-new/index.js";
|
|
19
19
|
export { projectMap, } from "./project-map/index.js";
|
|
20
20
|
export * from "./journal/index.js";
|
|
21
|
+
export * from "./hooks/index.js";
|
|
21
22
|
export * from "./profile/index.js";
|
|
22
23
|
export * from "./calendar/index.js";
|
|
23
24
|
export { writeResource, readResource, listResources, deleteResource, resourceUrlFor, resourceSrcFor, mimeFor } from "./reports/resources.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxJ,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxJ,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3L,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,kBA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AAO,EAAE,SAAS,EAA2C,MAAM,iBAAiB,CAAC;AAC9F,OAAO,EACL,QAAQ,EAAE,YAAY,GAEvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,UAAU,GAEX,MAAM,wBAAwB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC7I,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -11,6 +11,11 @@ export interface DistillJournalOpts {
|
|
|
11
11
|
now: Date;
|
|
12
12
|
extraPatterns?: ExtraPatternDef[];
|
|
13
13
|
cooldownSeconds?: number;
|
|
14
|
+
/** Reprocess this fixed window of raw events instead of continuing from the high-water mark; the mark is neither read nor written. */
|
|
15
|
+
range?: {
|
|
16
|
+
since: string;
|
|
17
|
+
until: string;
|
|
18
|
+
};
|
|
14
19
|
}
|
|
15
20
|
export declare function distillJournal(opts: DistillJournalOpts): Promise<DistillResult>;
|
|
16
21
|
//# sourceMappingURL=distill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distill.d.ts","sourceRoot":"","sources":["../../src/journal/distill.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAY,aAAa,EAAsB,MAAM,YAAY,CAAC;AAM9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"distill.d.ts","sourceRoot":"","sources":["../../src/journal/distill.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAY,aAAa,EAAsB,MAAM,YAAY,CAAC;AAM9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAIlE,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,GAAG,EAAE,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sIAAsI;IACtI,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1C;AAWD,wBAAsB,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,CA2HrF"}
|