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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/profile/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,0HAA2H,CAAC;AAE1J,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAE5D;AAED,yGAAyG;AACzG,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAG1D;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/profile/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,0HAA2H,CAAC;AAE1J,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAE5D;AAED,yGAAyG;AACzG,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAG1D;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAqEtF;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IACjF,kBAAkB,EAAE,MAAM,CAAC;IAAC,mBAAmB,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;CACxE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CA8BjE"}
|
|
@@ -33,6 +33,16 @@ export function repairProfile(content) {
|
|
|
33
33
|
working = `# Profile\n\n${working.replace(/^\s+/, "")}`;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
+
// Files doubled by the old bug carry extra `# Profile` lines; keep only the first.
|
|
37
|
+
let seenH1 = false;
|
|
38
|
+
working = working.split("\n").filter((line) => {
|
|
39
|
+
if (!/^#\s+Profile\s*$/.test(line))
|
|
40
|
+
return true;
|
|
41
|
+
if (seenH1)
|
|
42
|
+
return false;
|
|
43
|
+
seenH1 = true;
|
|
44
|
+
return true;
|
|
45
|
+
}).join("\n");
|
|
36
46
|
// Parse existing sections into a map: heading -> body (without trailing newline).
|
|
37
47
|
const existing = parseSections(working);
|
|
38
48
|
// Extract preamble: text between `# Profile` and the first `##` heading.
|
|
@@ -119,7 +129,8 @@ function parseSections(content) {
|
|
|
119
129
|
// so the user can see the merge happened.
|
|
120
130
|
const existing = map.get(current);
|
|
121
131
|
if (existing != null && existing.trim().length > 0 && newBody.trim().length > 0) {
|
|
122
|
-
|
|
132
|
+
if (existing.trim() !== newBody.trim())
|
|
133
|
+
map.set(current, `${existing.replace(/\n+$/, "")}\n\n---\n\n${newBody}`);
|
|
123
134
|
}
|
|
124
135
|
else if (existing != null && existing.trim().length > 0) {
|
|
125
136
|
map.set(current, existing);
|
|
@@ -147,10 +158,10 @@ function escapeRegExp(s) {
|
|
|
147
158
|
}
|
|
148
159
|
/** Extract text between `# Profile` (or start of file) and the first `##` heading. */
|
|
149
160
|
function extractPreamble(content) {
|
|
150
|
-
const h1Match = /^#\s+Profile\s
|
|
161
|
+
const h1Match = /^#\s+Profile\s*$/m.exec(content);
|
|
151
162
|
const start = h1Match ? h1Match.index + h1Match[0].length : 0;
|
|
152
163
|
const rest = content.slice(start);
|
|
153
|
-
const firstH2 = /^##\s
|
|
164
|
+
const firstH2 = /^##\s+/m.exec(rest);
|
|
154
165
|
if (!firstH2)
|
|
155
166
|
return rest.trim().length > 0 ? rest : "";
|
|
156
167
|
return rest.slice(0, firstH2.index).trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/profile/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,sBAA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D,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACxD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;AAC7C,CAAC;AAED,sEAAsE;AACtE,SAAS,sBAAsB,CAAC,OAAe;IAC7C,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACzB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACpB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/reports/sanitize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/reports/sanitize.ts"],"names":[],"mappings":"AAIA,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAW5C;AA4BD,wBAAsB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAUjE"}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
// jsdom is ~650ms to load; built lazily on first call so importing kxta-core (MCP stdio startup, web db-init) doesn't pay for it when HTML is never touched.
|
|
2
2
|
let purify;
|
|
3
|
+
// CSS is kept (reports need layout) but every resource-loading construct is removed so a stylesheet can't beacon or exfil through url()/@import/image-set().
|
|
4
|
+
export function scrubCss(css) {
|
|
5
|
+
return css
|
|
6
|
+
.replace(/\/\*[\s\S]*?\*\//g, "")
|
|
7
|
+
// Decode CSS escapes first so `u\72 l(` / `\75rl(` resolve to `url(` and get caught below.
|
|
8
|
+
.replace(/\\([0-9a-fA-F]{1,6})\s?/g, (_, h) => { const cp = parseInt(h, 16); return cp > 0 && cp <= 0x10ffff ? String.fromCodePoint(cp) : ""; })
|
|
9
|
+
.replace(/\\(.)/g, "$1")
|
|
10
|
+
.replace(/@import\b[^;{]*(;|(?=\}))/gi, "")
|
|
11
|
+
.replace(/@(document|-moz-document)\b[^{]*\{/gi, "@media not all {")
|
|
12
|
+
.replace(/\b(url|image-set|image|src|element|expression)\s*\((?:[^()]|\([^()]*\))*\)/gi, "none")
|
|
13
|
+
.replace(/-moz-binding\s*:[^;}]*;?/gi, "")
|
|
14
|
+
.replace(/\bbehavior\s*:[^;}]*;?/gi, "");
|
|
15
|
+
}
|
|
3
16
|
async function getPurify() {
|
|
4
17
|
if (purify)
|
|
5
18
|
return purify;
|
|
@@ -12,7 +25,15 @@ async function getPurify() {
|
|
|
12
25
|
"poster", "background", "cite", "longdesc", "usemap", "manifest", "codebase",
|
|
13
26
|
"data", "ping", "profile", "archive", "icon",
|
|
14
27
|
]);
|
|
28
|
+
purify.addHook("uponSanitizeElement", (node, data) => {
|
|
29
|
+
if (data.tagName === "style")
|
|
30
|
+
node.textContent = scrubCss(node.textContent ?? "");
|
|
31
|
+
});
|
|
15
32
|
purify.addHook("uponSanitizeAttribute", (_node, data) => {
|
|
33
|
+
if (data.attrName === "style") {
|
|
34
|
+
data.attrValue = scrubCss(String(data.attrValue));
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
16
37
|
if (!URL_ATTRS.has(data.attrName))
|
|
17
38
|
return;
|
|
18
39
|
const v = String(data.attrValue).trim();
|
|
@@ -33,11 +54,10 @@ export async function sanitizeHtml(dirty) {
|
|
|
33
54
|
return p.sanitize(dirty, {
|
|
34
55
|
WHOLE_DOCUMENT: false,
|
|
35
56
|
FORCE_BODY: true,
|
|
36
|
-
// <style> dropped — CSS is a covert-exfil channel via url()/@import that no DOMPurify hook can safely tighten.
|
|
37
57
|
ADD_ATTR: ["target"],
|
|
38
58
|
ALLOW_DATA_ATTR: true,
|
|
39
|
-
FORBID_TAGS: ["script", "iframe", "object", "embed", "
|
|
40
|
-
FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover", "onfocus", "onblur"
|
|
59
|
+
FORBID_TAGS: ["script", "iframe", "object", "embed", "link", "meta", "base"],
|
|
60
|
+
FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover", "onfocus", "onblur"],
|
|
41
61
|
});
|
|
42
62
|
}
|
|
43
63
|
//# sourceMappingURL=sanitize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitize.js","sourceRoot":"","sources":["../../src/reports/sanitize.ts"],"names":[],"mappings":"AAAA,6JAA6J;AAC7J,IAAI,MAAkE,CAAC;AAEvE,KAAK,UAAU,SAAS;IACtB,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC5G,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,K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QAAQ,GAAG,KAAK,CAAC;IACvF,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,KAAa;IAC9C,MAAM,CAAC,GAAG,MAAM,SAAS,EAAE,CAAC;IAC5B,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE;QACvB,cAAc,EAAE,KAAK;QACrB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,eAAe,EAAE,IAAI;QACrB,WAAW,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QAC5E,WAAW,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,CAAC;KAClF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/util/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/util/paths.ts"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAgBvC;AAqCD,oGAAoG;AACpG,wBAAgB,iBAAiB,IAAI,IAAI,CAExC;AAED,wBAAgB,UAAU,IAAI,MAAM,CA+CnC;AAED;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,2EAA2E;AAC3E,wBAAgB,qBAAqB,IAAI,MAAM,CAI9C;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,EAAE,CAKhD;AAgBD;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CA6CpC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as os from "node:os";
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
|
+
import { profileRelPath, repairProfile } from "../profile/index.js";
|
|
4
5
|
// @vercel/nft — Next's build-time file tracer — statically evaluates
|
|
5
6
|
// os.homedir() and process.env.* inside fs-call arguments and expands any
|
|
6
7
|
// unresolved remainder into a recursive glob rooted at the evaluated
|
|
@@ -178,5 +179,20 @@ export function ensureDataDir() {
|
|
|
178
179
|
safeMkdir(dir);
|
|
179
180
|
}
|
|
180
181
|
}
|
|
182
|
+
// Scaffold an empty profile.md at the KB root on fresh installs. Without
|
|
183
|
+
// this, the only way to get one was via the web UI's PUT /api/profile
|
|
184
|
+
// (which writes here directly) — CLI/MCP-only users had no discoverable
|
|
185
|
+
// path to a working profile, and files.create can't reach KB root itself
|
|
186
|
+
// (kind-based routing always nests under knowledge/dictionary or notes).
|
|
187
|
+
const profilePath = path.join(dataDir, profileRelPath());
|
|
188
|
+
if (!fs.existsSync(profilePath)) {
|
|
189
|
+
try {
|
|
190
|
+
fs.writeFileSync(profilePath, repairProfile("").content, "utf8");
|
|
191
|
+
}
|
|
192
|
+
catch {
|
|
193
|
+
// Best-effort — a missing profile.md degrades to the existing
|
|
194
|
+
// "no profile" UX rather than blocking server startup.
|
|
195
|
+
}
|
|
196
|
+
}
|
|
181
197
|
}
|
|
182
198
|
//# sourceMappingURL=paths.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/util/paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/util/paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,M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AAC,GAAG,CAAC,CAAC;QACjB,CAAC;IACH,CAAC;IAED,yEAAyE;IACzE,sEAAsE;IACtE,wEAAwE;IACxE,yEAAyE;IACzE,yEAAyE;IACzE,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC;IACzD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QAChC,IAAI,CAAC;YACH,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACnE,CAAC;QAAC,MAAM,CAAC;YACP,8DAA8D;YAC9D,uDAAuD;QACzD,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kxta-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Core context and command engines for Kontexta",
|
|
5
5
|
"private": true,
|
|
6
6
|
"type": "module",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"turndown": "^7.2.4",
|
|
18
18
|
"undici": "^7.0.0"
|
|
19
19
|
},
|
|
20
|
-
"rulesVersion": "
|
|
20
|
+
"rulesVersion": "3.1.0"
|
|
21
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kxta-publish",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"html-to-pdfmake": "^2.5.33",
|
|
21
21
|
"js-yaml": "^4.1.0",
|
|
22
22
|
"jsdom": "^29.1.1",
|
|
23
|
-
"kxta-core": "
|
|
23
|
+
"kxta-core": "5.1.0",
|
|
24
24
|
"markdown-it": "^14.1.0",
|
|
25
25
|
"pdfmake": "^0.3.11",
|
|
26
26
|
"puppeteer-core": "^25.10.0"
|
|
27
27
|
},
|
|
28
|
-
"rulesVersion": "
|
|
28
|
+
"rulesVersion": "3.1.0"
|
|
29
29
|
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
|
|
6
6
|
// src/doctor.ts
|
|
7
7
|
import { createRequire } from "module";
|
|
8
|
-
import { existsSync, readdirSync, statSync, mkdirSync } from "fs";
|
|
8
|
+
import { existsSync, readdirSync, statSync, mkdirSync, readFileSync } from "fs";
|
|
9
9
|
import { join } from "path";
|
|
10
10
|
import { homedir, tmpdir } from "os";
|
|
11
11
|
var require2 = createRequire(import.meta.url);
|
|
@@ -28,6 +28,14 @@ function checkDataDir() {
|
|
|
28
28
|
const r = resolveDataDir();
|
|
29
29
|
return { name: "Data dir", ok: true, detail: `${r.path} (source: ${r.source})` };
|
|
30
30
|
}
|
|
31
|
+
function checkHooks() {
|
|
32
|
+
const { path } = resolveDataDir();
|
|
33
|
+
const emitter = join(path, "hooks", "emit.mjs");
|
|
34
|
+
if (!existsSync(emitter)) return { name: "hooks", ok: true, informational: true, detail: "not staged \u2014 enable an agent in the dashboard or run `kontexta hooks enable <agent>`" };
|
|
35
|
+
const first = readFileSync(emitter, "utf8").split("\n")[0];
|
|
36
|
+
const m = first.match(/^\/\/ kontexta-hooks v(\S+)$/);
|
|
37
|
+
return { name: "hooks", ok: !!m, informational: true, detail: m ? `emitter v${m[1]} staged at ${emitter}` : `unrecognised emitter header at ${emitter}` };
|
|
38
|
+
}
|
|
31
39
|
function checkNative(mod) {
|
|
32
40
|
try {
|
|
33
41
|
require2(mod);
|
|
@@ -118,6 +126,7 @@ async function runDoctor() {
|
|
|
118
126
|
const results = [
|
|
119
127
|
checkNode(),
|
|
120
128
|
checkDataDir(),
|
|
129
|
+
checkHooks(),
|
|
121
130
|
checkNative("better-sqlite3"),
|
|
122
131
|
checkNative("re2"),
|
|
123
132
|
await checkPuppeteerChromium()
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
resolveMcpEntry
|
|
4
|
+
} from "./chunk-C4XU73GP.js";
|
|
5
|
+
|
|
6
|
+
// src/hooks.ts
|
|
7
|
+
import { spawnSync } from "child_process";
|
|
8
|
+
import { existsSync } from "fs";
|
|
9
|
+
import { dirname, join } from "path";
|
|
10
|
+
function resolveHooksEntry() {
|
|
11
|
+
const entry = join(dirname(resolveMcpEntry()), "hooks-cli.js");
|
|
12
|
+
if (!existsSync(entry)) throw new Error(`hooks-cli.js not found next to the MCP entry (${entry}). Rebuild apps/mcp.`);
|
|
13
|
+
return entry;
|
|
14
|
+
}
|
|
15
|
+
async function runHooks(argv, env = process.env) {
|
|
16
|
+
const r = spawnSync(process.execPath, [resolveHooksEntry(), ...argv], { stdio: "inherit", env });
|
|
17
|
+
return r.status ?? 1;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
resolveHooksEntry,
|
|
21
|
+
runHooks
|
|
22
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,8 @@ Usage:
|
|
|
9
9
|
kontexta mcp Run stdio MCP server (for AI client config)
|
|
10
10
|
kontexta doctor Print environment diagnostics
|
|
11
11
|
kontexta doctor install-chromium Download the Chromium build used for PDF export
|
|
12
|
+
kontexta hooks <status|install|uninstall|enable|disable|reconcile|stage>
|
|
13
|
+
Manage coding-agent hooks that feed the journal
|
|
12
14
|
kontexta --version Print version
|
|
13
15
|
kontexta --help Print this help
|
|
14
16
|
`;
|
|
@@ -26,20 +28,24 @@ Usage:
|
|
|
26
28
|
process.exit(0);
|
|
27
29
|
}
|
|
28
30
|
if (arg === "mcp") {
|
|
29
|
-
const { runMcp } = await import("./mcp-
|
|
31
|
+
const { runMcp } = await import("./mcp-VGISMLKH.js");
|
|
30
32
|
await runMcp();
|
|
31
33
|
process.exit(0);
|
|
32
34
|
}
|
|
33
35
|
if (arg === "doctor") {
|
|
34
36
|
if (process.argv[3] === "install-chromium") {
|
|
35
|
-
const { installChromium } = await import("./doctor-
|
|
37
|
+
const { installChromium } = await import("./doctor-HQBEQUUQ.js");
|
|
36
38
|
process.exit(await installChromium());
|
|
37
39
|
}
|
|
38
|
-
const { runDoctor } = await import("./doctor-
|
|
40
|
+
const { runDoctor } = await import("./doctor-HQBEQUUQ.js");
|
|
39
41
|
process.exit(await runDoctor());
|
|
40
42
|
}
|
|
43
|
+
if (arg === "hooks") {
|
|
44
|
+
const { runHooks } = await import("./hooks-6RQ5CCTW.js");
|
|
45
|
+
process.exit(await runHooks(process.argv.slice(3)));
|
|
46
|
+
}
|
|
41
47
|
if (arg === "start") {
|
|
42
|
-
const { runStart } = await import("./start-
|
|
48
|
+
const { runStart } = await import("./start-RJVUJT4B.js");
|
|
43
49
|
await runStart();
|
|
44
50
|
process.exit(0);
|
|
45
51
|
}
|
|
@@ -62,6 +62,15 @@ async function runStart() {
|
|
|
62
62
|
const data = resolveDataDir();
|
|
63
63
|
process.stdout.write(`Using data at ${data.path}
|
|
64
64
|
`);
|
|
65
|
+
if (!process.env.KONTEXTA_NO_HOOKS) {
|
|
66
|
+
try {
|
|
67
|
+
const { runHooks } = await import("./hooks-6RQ5CCTW.js");
|
|
68
|
+
await runHooks(["reconcile"], { ...process.env, KONTEXTA_DATA_DIR: data.path });
|
|
69
|
+
} catch (e) {
|
|
70
|
+
process.stderr.write(`hooks reconcile skipped: ${e?.message ?? e}
|
|
71
|
+
`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
65
74
|
const rawPort = process.env.PORT;
|
|
66
75
|
const preferred = rawPort && /^\d+$/.test(rawPort) ? Number(rawPort) : 23002;
|
|
67
76
|
if (rawPort && !/^\d+$/.test(rawPort)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kontexta",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "One-click local dashboard + MCP server for AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"typescript": "^5.7.0",
|
|
90
90
|
"vitest": "^2.1.0"
|
|
91
91
|
},
|
|
92
|
-
"rulesVersion": "
|
|
92
|
+
"rulesVersion": "3.1.0"
|
|
93
93
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(e,r,t,_){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:45,errorRate:1e-4,numBits:863,numHashes:14,bitArray:[0,0,r,1,r,r,1,e,r,r,r,e,r,r,e,r,e,r,e,e,e,e,r,r,r,e,r,e,e,e,r,e,r,r,e,e,r,e,e,e,e,e,e,e,e,e,r,r,e,e,r,e,r,r,r,e,r,e,e,e,r,r,e,r,e,r,e,r,r,r,e,e,r,e,e,e,r,r,r,r,e,e,e,r,r,r,e,r,r,e,e,e,e,e,r,e,r,r,e,r,r,e,e,e,e,r,r,e,r,e,e,e,r,e,e,r,e,r,r,e,e,e,r,e,r,r,r,r,r,e,r,e,e,r,e,r,r,e,r,r,r,e,r,r,e,e,r,e,r,r,e,e,r,e,r,e,e,e,e,r,e,e,r,e,e,e,e,e,e,e,r,e,r,e,r,r,e,r,r,r,e,r,e,e,e,e,e,e,r,r,e,e,r,e,r,r,e,r,e,r,e,e,e,r,e,r,r,r,r,r,e,r,r,r,e,e,r,e,e,e,e,e,r,e,e,r,r,r,r,r,r,r,r,e,r,r,e,e,e,e,e,r,e,r,r,r,e,e,e,r,e,r,r,r,e,r,r,e,r,e,e,e,e,e,e,r,r,e,r,r,e,e,r,e,r,e,r,e,e,e,r,e,r,e,e,e,e,r,r,r,r,r,r,e,r,e,r,r,e,r,r,e,e,r,e,e,e,e,r,e,r,e,e,r,e,e,e,r,e,e,r,e,e,e,r,r,r,e,e,r,r,r,r,e,e,r,r,e,e,e,r,e,r,r,e,e,e,r,r,r,r,e,e,e,e,e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