@chorus-aidlc/chorus 0.15.0 → 0.16.1
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-build-manifest.json +411 -411
- package/.next/standalone/.next/app-path-routes-manifest.json +49 -49
- package/.next/standalone/.next/build-manifest.json +5 -5
- package/.next/standalone/.next/prerender-manifest.json +42 -42
- package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/graph/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/graph/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/graph/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/settings/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +2 -2
- package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/companies/[uuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies/new.html +2 -2
- package/.next/standalone/.next/server/app/admin/companies/new.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/companies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies.html +2 -2
- package/.next/standalone/.next/server/app/admin/companies.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin.html +2 -2
- package/.next/standalone/.next/server/app/admin.rsc +2 -2
- package/.next/standalone/.next/server/app/api/admin/companies/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/companies/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/login/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/session/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agent-connections/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[uuid]/sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/api-keys/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/api-keys/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/callback/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/check-default/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/company-oidc/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/default-login/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/identify/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/me/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/sync-token/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/comments/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/connection-heartbeat/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/control/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/directory-request/report/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/execution-state/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/executions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/pending-turns/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/report-interrupt/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/resume/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/transcript/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/turn-advance/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-directory-requests/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-directory-requests/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/instruction/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/repoint/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/ad-hoc/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/documents/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/entities/[type]/[uuid]/root-idea/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/events/notifications/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/events/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/claim/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/preview/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/parent/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/release/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/wake-preview/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/conversational/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/me/assignments/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mentionables/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/[uuid]/archive/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/[uuid]/read/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/preferences/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/read-all/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/unread-count/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/[uuid]/dashboard/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/pin/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/visit/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/activity/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/agent-cwds/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/available/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/documents/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/group/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/tracker/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/[proposalUuid]/validate/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/summary/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/resource-graph/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/stats/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/dependencies/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/agent-cwd-options/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/approve/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/close/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/reject/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/revoke/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/references/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/references/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/session/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/claim/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/[dependsOnUuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/release/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +2 -2
- package/.next/standalone/.next/server/app/index.rsc +2 -2
- package/.next/standalone/.next/server/app/login/admin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/admin.html +2 -2
- package/.next/standalone/.next/server/app/login/admin.rsc +2 -2
- package/.next/standalone/.next/server/app/login/callback/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/callback.html +2 -2
- package/.next/standalone/.next/server/app/login/callback.rsc +2 -2
- package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/pick-workspace/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/pick-workspace.html +2 -2
- package/.next/standalone/.next/server/app/login/pick-workspace.rsc +2 -2
- package/.next/standalone/.next/server/app/login.html +2 -2
- package/.next/standalone/.next/server/app/login.rsc +2 -2
- package/.next/standalone/.next/server/app/onboarding/page.js +2 -2
- package/.next/standalone/.next/server/app/onboarding/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/onboarding.html +2 -2
- package/.next/standalone/.next/server/app/onboarding.rsc +3 -3
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects.html +2 -2
- package/.next/standalone/.next/server/app/projects.rsc +4 -4
- package/.next/standalone/.next/server/app/settings.html +2 -2
- package/.next/standalone/.next/server/app/settings.rsc +4 -4
- package/.next/standalone/.next/server/app-paths-manifest.json +49 -49
- package/.next/standalone/.next/server/chunks/1114.js +1 -1
- package/.next/standalone/.next/server/chunks/1318.js +1 -1
- package/.next/standalone/.next/server/chunks/1559.js +2 -2
- package/.next/standalone/.next/server/chunks/1722.js +1 -1
- package/.next/standalone/.next/server/chunks/2570.js +2 -2
- package/.next/standalone/.next/server/chunks/2572.js +1 -1
- package/.next/standalone/.next/server/chunks/2961.js +1 -1
- package/.next/standalone/.next/server/chunks/3594.js +1 -0
- package/.next/standalone/.next/server/chunks/4394.js +1 -0
- package/.next/standalone/.next/server/chunks/5245.js +1 -1
- package/.next/standalone/.next/server/chunks/{2282.js → 5351.js} +3 -3
- package/.next/standalone/.next/server/chunks/6113.js +1 -1
- package/.next/standalone/.next/server/chunks/6207.js +1 -1
- package/.next/standalone/.next/server/chunks/6506.js +1 -1
- package/.next/standalone/.next/server/chunks/6667.js +1 -0
- package/.next/standalone/.next/server/chunks/679.js +1 -1
- package/.next/standalone/.next/server/chunks/6995.js +1 -0
- package/.next/standalone/.next/server/chunks/7368.js +1 -1
- package/.next/standalone/.next/server/chunks/7530.js +1 -1
- package/.next/standalone/.next/server/chunks/920.js +1 -1
- package/.next/standalone/.next/server/chunks/9213.js +1 -1
- package/.next/standalone/.next/server/chunks/9378.js +1 -1
- package/.next/standalone/.next/server/chunks/9793.js +1 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/.next/server/pages/404.html +2 -2
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/11595.1bcd2b65089007ae.js +1 -0
- package/.next/standalone/.next/static/chunks/19887-4d76db57a7ce4437.js +1 -0
- package/.next/standalone/.next/static/chunks/29108-e171d8b8c680cbb5.js +1 -0
- package/.next/standalone/.next/static/chunks/33456.c98d3e21528b61d8.js +1 -0
- package/.next/standalone/.next/static/chunks/4860.9122a86d33dc6b62.js +1 -0
- package/.next/standalone/.next/static/chunks/53073-5fd399cb25a11740.js +1 -0
- package/.next/standalone/.next/static/chunks/53402-a54163001f3d953a.js +1 -0
- package/.next/standalone/.next/static/chunks/6603-07faab08560f7ecd.js +1 -0
- package/.next/standalone/.next/static/chunks/7777-5dad34f6bdc13482.js +1 -0
- package/.next/standalone/.next/static/chunks/78155-db70d9684a1e77a2.js +1 -0
- package/.next/standalone/.next/static/chunks/78917-7354d3b6908da7d1.js +1 -0
- package/.next/standalone/.next/static/chunks/82751-de255af4418d53e4.js +1 -0
- package/.next/standalone/.next/static/chunks/94643-90a9ec7b9a9abaf0.js +1 -0
- package/.next/standalone/.next/static/chunks/99366-425e9ef22e60e3e2.js +1 -0
- package/.next/standalone/.next/static/chunks/99373.585230dcb315a068.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/layout-3d3b3b9e16c03cda.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/dashboard/page-69d746c98079024d.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page-2af705f6c3789131.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/{page-2c9d3f4c6e0ff807.js → page-82404154708e48a9.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/graph/page-8119df915138a9c3.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page-f619bd65e1eed8c9.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/new/page-d5b222f379b2e8ca.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/{page-ed9415921188b4d3.js → page-6abc7d1785e2b999.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/{page-c70af8cac7bdc483.js → page-0789c6589363154c.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/tasks/{page-715b000c156a080c.js → page-a612f6fc5be0239d.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/settings/page-5fb9fd3db155d5ca.js +1 -0
- package/.next/standalone/.next/static/chunks/app/onboarding/page-e85315278aafc300.js +1 -0
- package/.next/standalone/.next/static/chunks/{webpack-84e2db1b2418c974.js → webpack-dec1f54ebb9bf963.js} +1 -1
- package/.next/standalone/.next/static/css/67fba0943f494f0e.css +1 -0
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/public/chorus-plugin/.claude-plugin/plugin.json +1 -1
- package/.next/standalone/public/chorus-plugin/skills/brainstorm/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/chorus/SKILL.md +2 -1
- package/.next/standalone/public/chorus-plugin/skills/develop/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/docs/SKILL.md +68 -0
- package/.next/standalone/public/chorus-plugin/skills/idea/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/openspec-aware/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/proposal/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/quick-dev/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/review/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/yolo/SKILL.md +1 -1
- package/.next/standalone/public/install-kiro.sh +10 -7
- package/.next/standalone/public/kiro-plugin/.kiro/agents/chorus.json +1 -0
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-brainstorm/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-develop/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-docs/SKILL.md +68 -0
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-idea/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-openspec-aware/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-proposal/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-quick-dev/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-review/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-yolo/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/steering/chorus.md +1 -0
- package/.next/standalone/public/kiro-plugin/bin/chorus-api.sh +1 -1
- package/.next/standalone/public/skill/brainstorm-chorus/SKILL.md +1 -1
- package/.next/standalone/public/skill/chorus/SKILL.md +2 -1
- package/.next/standalone/public/skill/code-reviewer-chorus/SKILL.md +1 -1
- package/.next/standalone/public/skill/develop-chorus/SKILL.md +1 -1
- package/.next/standalone/public/skill/docs-chorus/SKILL.md +70 -0
- package/.next/standalone/public/skill/idea-chorus/SKILL.md +1 -1
- package/.next/standalone/public/skill/package.json +9 -5
- package/.next/standalone/public/skill/proposal-chorus/SKILL.md +1 -1
- package/.next/standalone/public/skill/proposal-reviewer-chorus/SKILL.md +1 -1
- package/.next/standalone/public/skill/quick-dev-chorus/SKILL.md +1 -1
- package/.next/standalone/public/skill/review-chorus/SKILL.md +1 -1
- package/.next/standalone/public/skill/task-reviewer-chorus/SKILL.md +1 -1
- package/.next/standalone/public/skill/yolo-chorus/SKILL.md +1 -1
- package/README.ja.md +6 -14
- package/README.ko.md +6 -14
- package/README.md +6 -14
- package/README.zh.md +6 -14
- package/cli/claude-spawner.mjs +15 -6
- package/cli/client-args.mjs +8 -0
- package/cli/codex-spawner.mjs +7 -3
- package/cli/credentials.mjs +41 -0
- package/cli/daemon-config.mjs +202 -1
- package/cli/daemon-install-config.mjs +38 -1
- package/cli/daemon.mjs +222 -1
- package/cli/login.mjs +90 -2
- package/package.json +1 -1
- package/.next/standalone/.next/server/chunks/1524.js +0 -1
- package/.next/standalone/.next/server/chunks/330.js +0 -1
- package/.next/standalone/.next/server/chunks/3525.js +0 -1
- package/.next/standalone/.next/server/chunks/4070.js +0 -1
- package/.next/standalone/.next/server/chunks/8540.js +0 -1
- package/.next/standalone/.next/static/chunks/11595.f1e55e827d67f2bc.js +0 -1
- package/.next/standalone/.next/static/chunks/18351-12dc856208d79e10.js +0 -1
- package/.next/standalone/.next/static/chunks/33456.4817cdce41593c7e.js +0 -1
- package/.next/standalone/.next/static/chunks/37938-0b9a2b891c04b166.js +0 -1
- package/.next/standalone/.next/static/chunks/4860.bb2749ebaf8eb15f.js +0 -1
- package/.next/standalone/.next/static/chunks/53402-be6989c3f3968e7b.js +0 -1
- package/.next/standalone/.next/static/chunks/68326-61feeb2f6cddd338.js +0 -1
- package/.next/standalone/.next/static/chunks/72974-714dcca796895c40.js +0 -1
- package/.next/standalone/.next/static/chunks/7777-13466138aa42bd5f.js +0 -1
- package/.next/standalone/.next/static/chunks/78917-f91904c6c2d12dab.js +0 -1
- package/.next/standalone/.next/static/chunks/80748-e971c5a5d6ef967d.js +0 -1
- package/.next/standalone/.next/static/chunks/80904-973284d1fe916c38.js +0 -1
- package/.next/standalone/.next/static/chunks/94470-0c74a933d5a2902f.js +0 -1
- package/.next/standalone/.next/static/chunks/94643-ba1ebff5769d2b50.js +0 -1
- package/.next/standalone/.next/static/chunks/99373.ae03246bdf49c700.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/layout-177a3fa88be94b4a.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/dashboard/page-03b8510273520572.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page-4a8ac49308a4e23b.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/graph/page-03408be00dc4822b.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page-be353989e67e7b55.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/new/page-596d97796dd55e2f.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/settings/page-e786a59c24eb5bda.js +0 -1
- package/.next/standalone/.next/static/chunks/app/onboarding/page-df7c97cefb508201.js +0 -1
- package/.next/standalone/.next/static/css/ef995b001437e3ef.css +0 -1
- /package/.next/standalone/.next/static/{oHZy43Le4b2I7pg7_cQ0Z → H92ZuhpmDWcL3WOfYRc--}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{oHZy43Le4b2I7pg7_cQ0Z → H92ZuhpmDWcL3WOfYRc--}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=1722,exports.ids=[1722],exports.modules={81722:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Au:()=>z,DM:()=>w,Vx:()=>t,YG:()=>u,Yd:()=>y,by:()=>p,gt:()=>o,mq:()=>n,ty:()=>s,z7:()=>q,zl:()=>v});var e=c(52618),f=c(42558),g=c(97515),h=a([e,g]);[e,g]=h.then?(await h)():h;let y=["HOST_OFFLINE","TIMEOUT","INVALID_PATH","OUTSIDE_ROOT","NOT_DIRECTORY","ACCESS_DENIED","STALE_TARGET","LIMIT_EXCEEDED","INTERNAL_ERROR"];class z extends Error{constructor(a,b){super(b),this.code=a}}async function i(a,b,c){if(!await e.z.agent.findFirst({where:{uuid:c,companyUuid:a,ownerUuid:b},select:{uuid:!0}}))throw new z("NOT_FOUND","Agent not found")}async function j(a,b){if(!await e.z.project.findFirst({where:{uuid:b,companyUuid:a},select:{uuid:!0}}))throw new z("NOT_FOUND","Project not found")}function k(a,b){return a.find(a=>a.host===b&&"online"===a.effectiveStatus)??null}async function l(a,b,c,d){return(await e.z.agentInstance.upsert({where:{companyUuid_agentUuid_host_cwd:{companyUuid:a,agentUuid:b,host:c,cwd:d}},create:{companyUuid:a,agentUuid:b,host:c,cwd:d},update:{updatedAt:new Date},select:{uuid:!0}})).uuid}async function m(a){await i(a.companyUuid,a.userUuid,a.agentUuid);let b=await e.z.daemonDirectoryRequest.findFirst({where:{uuid:a.validationRequestUuid,companyUuid:a.companyUuid,callerUserUuid:a.userUuid,agentUuid:a.agentUuid,operation:"validate",status:"success",completedAt:{gte:new Date(Date.now()-6e4)}}}),c=b?.result&&"object"==typeof b.result&&!Array.isArray(b.result)&&"string"==typeof b.result.normalizedPath?b.result.normalizedPath:null;if(!b||!c)throw new z("STALE_TARGET","Fresh successful validation required");let d=await e.z.daemonConnection.findFirst({where:{uuid:b.targetConnectionUuid,companyUuid:a.companyUuid,agentUuid:a.agentUuid},select:{host:!0}});if(!d)throw new z("STALE_TARGET","Validation target is stale");return{agentUuid:a.agentUuid,host:d.host,cwd:c}}async function n(a){let b=await Promise.all(a.agentCwds.map(b=>m({companyUuid:a.companyUuid,userUuid:a.userUuid,...b})));return e.z.$transaction(async c=>{let d=await c.project.create({data:{companyUuid:a.companyUuid,name:a.name,description:a.description,groupUuid:a.groupUuid},select:{uuid:!0,name:!0,description:!0,createdAt:!0,updatedAt:!0}});for(let e of b){let b=await c.agentInstance.upsert({where:{companyUuid_agentUuid_host_cwd:{companyUuid:a.companyUuid,agentUuid:e.agentUuid,host:e.host,cwd:e.cwd}},create:{companyUuid:a.companyUuid,agentUuid:e.agentUuid,host:e.host,cwd:e.cwd},update:{updatedAt:new Date},select:{uuid:!0}});await c.projectAgentCwdPreference.create({data:{companyUuid:a.companyUuid,userUuid:a.userUuid,projectUuid:d.uuid,agentUuid:e.agentUuid,host:e.host,cwd:e.cwd,anchorAgentInstanceUuid:b.uuid}})}return d})}async function o(a){let[b,c]=await Promise.all([e.z.projectAgentCwdPreference.findFirst({where:{companyUuid:a.companyUuid,userUuid:a.actorUserUuid,projectUuid:a.projectUuid,agentUuid:a.agentUuid},select:{uuid:!0,host:!0,cwd:!0,anchorAgentInstanceUuid:!0}}),(0,g._R)(a.companyUuid,a.agentUuid)]);if(a.registeredInstanceUuid){let b=await e.z.agentInstance.findFirst({where:{uuid:a.registeredInstanceUuid,companyUuid:a.companyUuid,agentUuid:a.agentUuid},select:{uuid:!0,host:!0,cwd:!0}});if(b){let d=a.registeredRuntimeCwd?a.registeredHost??b.host:b.host,e=a.registeredRuntimeCwd??b.cwd,f=a.registeredRuntimeCwd?k(c,d):c.find(a=>a.host===d&&a.cwd===e&&"online"===a.effectiveStatus);return{actorUserUuid:a.actorUserUuid,source:"project_fixed"===a.registeredSource?"project_fixed":"registered_instance",agentUuid:a.agentUuid,host:d,cwd:e,availability:f?"ready":"offline",promptPolicy:"project_fixed"===a.registeredSource?"suppress":"none",connectionUuid:f?.uuid??null,agentInstanceUuid:b.uuid}}return{actorUserUuid:a.actorUserUuid,source:"project_fixed"===a.registeredSource?"project_fixed":"registered_instance",agentUuid:a.agentUuid,host:null,cwd:null,availability:"invalid",promptPolicy:"project_fixed"===a.registeredSource?"suppress":"none",connectionUuid:null,agentInstanceUuid:a.registeredInstanceUuid}}if(b){if(!b.host||!b.cwd)return{actorUserUuid:a.actorUserUuid,source:"project_fixed",agentUuid:a.agentUuid,host:b.host||null,cwd:b.cwd||null,availability:"invalid",promptPolicy:"suppress",connectionUuid:null,agentInstanceUuid:b.anchorAgentInstanceUuid};let d=await l(a.companyUuid,a.agentUuid,b.host,b.cwd);b.anchorAgentInstanceUuid!==d&&await e.z.projectAgentCwdPreference.update({where:{uuid:b.uuid},data:{anchorAgentInstanceUuid:d}});let f=k(c,b.host);return{actorUserUuid:a.actorUserUuid,source:"project_fixed",agentUuid:a.agentUuid,host:b.host,cwd:b.cwd,availability:f?"ready":"offline",promptPolicy:"suppress",connectionUuid:f?.uuid??null,agentInstanceUuid:d}}if(a.temporaryTarget){let b=k(c,a.temporaryTarget.host);return{actorUserUuid:a.actorUserUuid,source:"temporary",agentUuid:a.agentUuid,host:a.temporaryTarget.host,cwd:a.temporaryTarget.cwd,availability:b?"ready":"offline",promptPolicy:"none",connectionUuid:b?.uuid??null,agentInstanceUuid:null}}let d=c.find(a=>"online"===a.effectiveStatus)??null;return{actorUserUuid:a.actorUserUuid,source:"unconfigured",agentUuid:a.agentUuid,host:null,cwd:null,availability:d?"ready":"offline",promptPolicy:"select",connectionUuid:d?.uuid??null,agentInstanceUuid:null}}async function p(a,b,c){return await j(a,c),r(a,b,c)}async function q(a,b){return r(a,b,null)}async function r(a,b,c){let[d,f]=await Promise.all([e.z.agent.findMany({where:{companyUuid:a,ownerUuid:b},select:{uuid:!0,name:!0},orderBy:[{name:"asc"},{uuid:"asc"}]}),c?e.z.projectAgentCwdPreference.findMany({where:{companyUuid:a,userUuid:b,projectUuid:c}}):Promise.resolve([])]),g=await e.z.daemonConnection.findMany({where:{companyUuid:a,agentUuid:{in:d.map(a=>a.uuid)},status:"online"},select:{uuid:!0,agentUuid:!0,agentInstanceUuid:!0,host:!0,cwd:!0,lastSeenAt:!0}}),h=new Set(g.map(a=>`${a.agentUuid}\0${a.host}`)),i=new Map(f.map(a=>[a.agentUuid,a]));return d.flatMap(a=>{let b=i.get(a.uuid),c=g.filter(b=>b.agentUuid===a.uuid).map(a=>({connectionUuid:a.uuid,agentInstanceUuid:a.agentInstanceUuid,host:a.host,cwd:a.cwd,effectiveStatus:"online"}));return 0!==c.length||b?[{agent:a,onlineInstances:c,preference:b?{uuid:b.uuid,host:b.host,cwd:b.cwd,anchorAgentInstanceUuid:b.anchorAgentInstanceUuid,status:h.has(`${a.uuid}\0${b.host}`)?"valid":"offline",updatedAt:b.updatedAt}:null}]:[]})}async function s(a){if(await x(),await i(a.companyUuid,a.userUuid,a.agentUuid),"list"===a.operation&&!a.prefix)throw new z("VALIDATION_ERROR","prefix is required");if("validate"===a.operation&&!a.cwd)throw new z("VALIDATION_ERROR","cwd is required");let b=await e.z.daemonConnection.findFirst({where:{uuid:a.targetConnectionUuid,companyUuid:a.companyUuid,agentUuid:a.agentUuid,status:"online"},select:{uuid:!0,host:!0,agentInstanceUuid:!0}});if(!b)throw new z("HOST_OFFLINE","Target host is offline");let c=new Date,d=await e.z.daemonDirectoryRequest.create({data:{companyUuid:a.companyUuid,callerUserUuid:a.userUuid,agentUuid:a.agentUuid,targetConnectionUuid:b.uuid,operation:a.operation,prefix:a.prefix??null,cwd:a.cwd??null,cursor:a.cursor??null,limit:Math.max(1,Math.min(a.limit??50,100)),deadlineAt:new Date(c.getTime()+15e3)}});return f.B.emit((0,f.T)(b.uuid),{type:"control",command:"browse_directory",targetConnectionUuid:b.uuid,requestUuid:d.uuid,operation:a.operation,prefix:a.prefix,cwd:a.cwd,cursor:a.cursor,limit:d.limit,deadlineAt:d.deadlineAt.toISOString()}),d}async function t(a,b,c){let d=await e.z.daemonDirectoryRequest.findFirst({where:{uuid:c,companyUuid:a,callerUserUuid:b}});if(!d)throw new z("NOT_FOUND","Directory request not found");return"pending"===d.status&&d.deadlineAt<=new Date?e.z.daemonDirectoryRequest.update({where:{uuid:d.uuid},data:{status:"error",errorCode:"TIMEOUT",completedAt:new Date}}):d}async function u(a){let b=await e.z.daemonDirectoryRequest.findFirst({where:{uuid:a.requestUuid,companyUuid:a.companyUuid,agentUuid:a.agentUuid,targetConnectionUuid:a.connectionUuid,status:"pending"}});if(!b)throw new z("NOT_FOUND","Directory request not found");if(b.deadlineAt<=new Date)throw await e.z.daemonDirectoryRequest.update({where:{uuid:b.uuid},data:{status:"error",errorCode:"TIMEOUT",completedAt:new Date}}),new z("TIMEOUT","Directory request timed out");if("error"===a.status&&!a.errorCode)throw new z("VALIDATION_ERROR","errorCode is required");if("success"===a.status){let c=a.result;if("roots"===b.operation&&(!c||"object"!=typeof c||Array.isArray(c)||!Array.isArray(c.roots)||0===c.roots.length||!c.roots.every(a=>"string"==typeof a&&a.length>0)))return e.z.daemonDirectoryRequest.update({where:{uuid:b.uuid},data:{status:"error",result:void 0,errorCode:"INTERNAL_ERROR",completedAt:new Date}})}return e.z.daemonDirectoryRequest.update({where:{uuid:b.uuid},data:{status:a.status,result:"success"===a.status?a.result:void 0,errorCode:"error"===a.status?a.errorCode:null,completedAt:new Date}})}async function v(a){await Promise.all([j(a.companyUuid,a.projectUuid),i(a.companyUuid,a.userUuid,a.agentUuid)]);let b=new Date(Date.now()-6e4),c=await e.z.daemonDirectoryRequest.findFirst({where:{uuid:a.validationRequestUuid,companyUuid:a.companyUuid,callerUserUuid:a.userUuid,agentUuid:a.agentUuid,operation:"validate",status:"success",completedAt:{gte:b}}});if(!c?.cwd)throw new z("STALE_TARGET","Fresh successful validation required");let d=c.result&&"object"==typeof c.result&&!Array.isArray(c.result)&&"string"==typeof c.result.normalizedPath?c.result.normalizedPath:null;if(!d)throw new z("STALE_TARGET","Validation result is missing normalized path");let f=await e.z.daemonConnection.findFirst({where:{uuid:c.targetConnectionUuid,companyUuid:a.companyUuid,agentUuid:a.agentUuid},select:{host:!0}});if(!f)throw new z("STALE_TARGET","Validation target is stale");let g=await l(a.companyUuid,a.agentUuid,f.host,d);return e.z.projectAgentCwdPreference.upsert({where:{userUuid_projectUuid_agentUuid:{userUuid:a.userUuid,projectUuid:a.projectUuid,agentUuid:a.agentUuid}},create:{companyUuid:a.companyUuid,userUuid:a.userUuid,projectUuid:a.projectUuid,agentUuid:a.agentUuid,host:f.host,cwd:d,anchorAgentInstanceUuid:g},update:{host:f.host,cwd:d,anchorAgentInstanceUuid:g}})}async function w(a){await j(a.companyUuid,a.projectUuid),await e.z.projectAgentCwdPreference.deleteMany({where:{companyUuid:a.companyUuid,userUuid:a.userUuid,projectUuid:a.projectUuid,agentUuid:a.agentUuid}})}async function x(a=new Date){return e.z.daemonDirectoryRequest.deleteMany({where:{OR:[{deadlineAt:{lt:new Date(a.getTime()-36e5)}},{completedAt:{lt:new Date(a.getTime()-36e5)}}]}})}d()}catch(a){d(a)}})}};
|
|
1
|
+
"use strict";exports.id=1722,exports.ids=[1722],exports.modules={81722:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Au:()=>z,DM:()=>w,Vx:()=>t,YG:()=>u,Yd:()=>y,by:()=>p,gt:()=>o,mq:()=>n,ty:()=>s,z7:()=>q,zl:()=>v});var e=c(52618),f=c(42558),g=c(97515),h=a([e,g]);[e,g]=h.then?(await h)():h;let y=["HOST_OFFLINE","TIMEOUT","INVALID_PATH","OUTSIDE_ROOT","NOT_DIRECTORY","ACCESS_DENIED","STALE_TARGET","LIMIT_EXCEEDED","INTERNAL_ERROR"];class z extends Error{constructor(a,b,c){super(b),this.code=a,this.agentUuid=c}}async function i(a,b,c){if(!await e.z.agent.findFirst({where:{uuid:c,companyUuid:a,ownerUuid:b},select:{uuid:!0}}))throw new z("NOT_FOUND","Agent not found")}async function j(a,b){if(!await e.z.project.findFirst({where:{uuid:b,companyUuid:a},select:{uuid:!0}}))throw new z("NOT_FOUND","Project not found")}function k(a,b){return a.find(a=>a.host===b&&"online"===a.effectiveStatus)??null}async function l(a,b,c,d){return(await e.z.agentInstance.upsert({where:{companyUuid_agentUuid_host_cwd:{companyUuid:a,agentUuid:b,host:c,cwd:d}},create:{companyUuid:a,agentUuid:b,host:c,cwd:d},update:{updatedAt:new Date},select:{uuid:!0}})).uuid}async function m(a){try{await i(a.companyUuid,a.userUuid,a.agentUuid)}catch(b){if(b instanceof z)throw new z(b.code,b.message,a.agentUuid);throw b}let b=await e.z.daemonDirectoryRequest.findFirst({where:{uuid:a.validationRequestUuid,companyUuid:a.companyUuid,callerUserUuid:a.userUuid,agentUuid:a.agentUuid,operation:"validate",status:"success",completedAt:{gte:new Date(Date.now()-6e4)}}}),c=b?.result&&"object"==typeof b.result&&!Array.isArray(b.result)&&"string"==typeof b.result.normalizedPath?b.result.normalizedPath:null;if(!b||!c)throw new z("STALE_TARGET","Fresh successful validation required",a.agentUuid);let d=await e.z.daemonConnection.findFirst({where:{uuid:b.targetConnectionUuid,companyUuid:a.companyUuid,agentUuid:a.agentUuid},select:{host:!0}});if(!d)throw new z("STALE_TARGET","Validation target is stale",a.agentUuid);return{agentUuid:a.agentUuid,host:d.host,cwd:c}}async function n(a){let b=await Promise.all(a.agentCwds.map(b=>m({companyUuid:a.companyUuid,userUuid:a.userUuid,...b})));return e.z.$transaction(async c=>{let d=await c.project.create({data:{companyUuid:a.companyUuid,name:a.name,description:a.description,groupUuid:a.groupUuid},select:{uuid:!0,name:!0,description:!0,createdAt:!0,updatedAt:!0}});for(let e of b){let b=await c.agentInstance.upsert({where:{companyUuid_agentUuid_host_cwd:{companyUuid:a.companyUuid,agentUuid:e.agentUuid,host:e.host,cwd:e.cwd}},create:{companyUuid:a.companyUuid,agentUuid:e.agentUuid,host:e.host,cwd:e.cwd},update:{updatedAt:new Date},select:{uuid:!0}});await c.projectAgentCwdPreference.create({data:{companyUuid:a.companyUuid,userUuid:a.userUuid,projectUuid:d.uuid,agentUuid:e.agentUuid,host:e.host,cwd:e.cwd,anchorAgentInstanceUuid:b.uuid}})}return d})}async function o(a){let[b,c]=await Promise.all([e.z.projectAgentCwdPreference.findFirst({where:{companyUuid:a.companyUuid,userUuid:a.actorUserUuid,projectUuid:a.projectUuid,agentUuid:a.agentUuid},select:{uuid:!0,host:!0,cwd:!0,anchorAgentInstanceUuid:!0}}),(0,g._R)(a.companyUuid,a.agentUuid)]);if(a.registeredInstanceUuid){let b=await e.z.agentInstance.findFirst({where:{uuid:a.registeredInstanceUuid,companyUuid:a.companyUuid,agentUuid:a.agentUuid},select:{uuid:!0,host:!0,cwd:!0}});if(b){let d=a.registeredRuntimeCwd?a.registeredHost??b.host:b.host,e=a.registeredRuntimeCwd??b.cwd,f=a.registeredRuntimeCwd?k(c,d):c.find(a=>a.host===d&&a.cwd===e&&"online"===a.effectiveStatus);return{actorUserUuid:a.actorUserUuid,source:"project_fixed"===a.registeredSource?"project_fixed":"registered_instance",agentUuid:a.agentUuid,host:d,cwd:e,availability:f?"ready":"offline",promptPolicy:"project_fixed"===a.registeredSource?"suppress":"none",connectionUuid:f?.uuid??null,agentInstanceUuid:b.uuid}}return{actorUserUuid:a.actorUserUuid,source:"project_fixed"===a.registeredSource?"project_fixed":"registered_instance",agentUuid:a.agentUuid,host:null,cwd:null,availability:"invalid",promptPolicy:"project_fixed"===a.registeredSource?"suppress":"none",connectionUuid:null,agentInstanceUuid:a.registeredInstanceUuid}}if(b){if(!b.host||!b.cwd)return{actorUserUuid:a.actorUserUuid,source:"project_fixed",agentUuid:a.agentUuid,host:b.host||null,cwd:b.cwd||null,availability:"invalid",promptPolicy:"suppress",connectionUuid:null,agentInstanceUuid:b.anchorAgentInstanceUuid};let d=await l(a.companyUuid,a.agentUuid,b.host,b.cwd);b.anchorAgentInstanceUuid!==d&&await e.z.projectAgentCwdPreference.update({where:{uuid:b.uuid},data:{anchorAgentInstanceUuid:d}});let f=k(c,b.host);return{actorUserUuid:a.actorUserUuid,source:"project_fixed",agentUuid:a.agentUuid,host:b.host,cwd:b.cwd,availability:f?"ready":"offline",promptPolicy:"suppress",connectionUuid:f?.uuid??null,agentInstanceUuid:d}}if(a.temporaryTarget){let b=k(c,a.temporaryTarget.host);return{actorUserUuid:a.actorUserUuid,source:"temporary",agentUuid:a.agentUuid,host:a.temporaryTarget.host,cwd:a.temporaryTarget.cwd,availability:b?"ready":"offline",promptPolicy:"none",connectionUuid:b?.uuid??null,agentInstanceUuid:null}}let d=c.find(a=>"online"===a.effectiveStatus)??null;return{actorUserUuid:a.actorUserUuid,source:"unconfigured",agentUuid:a.agentUuid,host:null,cwd:null,availability:d?"ready":"offline",promptPolicy:"select",connectionUuid:d?.uuid??null,agentInstanceUuid:null}}async function p(a,b,c){return await j(a,c),r(a,b,c)}async function q(a,b){return r(a,b,null)}async function r(a,b,c){let[d,f]=await Promise.all([e.z.agent.findMany({where:{companyUuid:a,ownerUuid:b},select:{uuid:!0,name:!0},orderBy:[{name:"asc"},{uuid:"asc"}]}),c?e.z.projectAgentCwdPreference.findMany({where:{companyUuid:a,userUuid:b,projectUuid:c}}):Promise.resolve([])]),g=await e.z.daemonConnection.findMany({where:{companyUuid:a,agentUuid:{in:d.map(a=>a.uuid)},status:"online"},select:{uuid:!0,agentUuid:!0,agentInstanceUuid:!0,host:!0,cwd:!0,lastSeenAt:!0}}),h=new Set(g.map(a=>`${a.agentUuid}\0${a.host}`)),i=new Map(f.map(a=>[a.agentUuid,a]));return d.flatMap(a=>{let b=i.get(a.uuid),c=g.filter(b=>b.agentUuid===a.uuid).map(a=>({connectionUuid:a.uuid,agentInstanceUuid:a.agentInstanceUuid,host:a.host,cwd:a.cwd,effectiveStatus:"online"}));return 0!==c.length||b?[{agent:a,onlineInstances:c,preference:b?{uuid:b.uuid,host:b.host,cwd:b.cwd,anchorAgentInstanceUuid:b.anchorAgentInstanceUuid,status:h.has(`${a.uuid}\0${b.host}`)?"valid":"offline",updatedAt:b.updatedAt}:null}]:[]})}async function s(a){if(await x(),await i(a.companyUuid,a.userUuid,a.agentUuid),"list"===a.operation&&!a.prefix)throw new z("VALIDATION_ERROR","prefix is required");if("validate"===a.operation&&!a.cwd)throw new z("VALIDATION_ERROR","cwd is required");let b=await e.z.daemonConnection.findFirst({where:{uuid:a.targetConnectionUuid,companyUuid:a.companyUuid,agentUuid:a.agentUuid,status:"online"},select:{uuid:!0,host:!0,agentInstanceUuid:!0}});if(!b)throw new z("HOST_OFFLINE","Target host is offline");let c=new Date,d=await e.z.daemonDirectoryRequest.create({data:{companyUuid:a.companyUuid,callerUserUuid:a.userUuid,agentUuid:a.agentUuid,targetConnectionUuid:b.uuid,operation:a.operation,prefix:a.prefix??null,cwd:a.cwd??null,cursor:a.cursor??null,limit:Math.max(1,Math.min(a.limit??50,100)),deadlineAt:new Date(c.getTime()+15e3)}});return f.B.emit((0,f.T)(b.uuid),{type:"control",command:"browse_directory",targetConnectionUuid:b.uuid,requestUuid:d.uuid,operation:a.operation,prefix:a.prefix,cwd:a.cwd,cursor:a.cursor,limit:d.limit,deadlineAt:d.deadlineAt.toISOString()}),d}async function t(a,b,c){let d=await e.z.daemonDirectoryRequest.findFirst({where:{uuid:c,companyUuid:a,callerUserUuid:b}});if(!d)throw new z("NOT_FOUND","Directory request not found");return"pending"===d.status&&d.deadlineAt<=new Date?e.z.daemonDirectoryRequest.update({where:{uuid:d.uuid},data:{status:"error",errorCode:"TIMEOUT",completedAt:new Date}}):d}async function u(a){let b=await e.z.daemonDirectoryRequest.findFirst({where:{uuid:a.requestUuid,companyUuid:a.companyUuid,agentUuid:a.agentUuid,targetConnectionUuid:a.connectionUuid,status:"pending"}});if(!b)throw new z("NOT_FOUND","Directory request not found");if(b.deadlineAt<=new Date)throw await e.z.daemonDirectoryRequest.update({where:{uuid:b.uuid},data:{status:"error",errorCode:"TIMEOUT",completedAt:new Date}}),new z("TIMEOUT","Directory request timed out");if("error"===a.status&&!a.errorCode)throw new z("VALIDATION_ERROR","errorCode is required");if("success"===a.status){let c=a.result;if("roots"===b.operation&&(!c||"object"!=typeof c||Array.isArray(c)||!Array.isArray(c.roots)||0===c.roots.length||!c.roots.every(a=>"string"==typeof a&&a.length>0)))return e.z.daemonDirectoryRequest.update({where:{uuid:b.uuid},data:{status:"error",result:void 0,errorCode:"INTERNAL_ERROR",completedAt:new Date}})}return e.z.daemonDirectoryRequest.update({where:{uuid:b.uuid},data:{status:a.status,result:"success"===a.status?a.result:void 0,errorCode:"error"===a.status?a.errorCode:null,completedAt:new Date}})}async function v(a){await Promise.all([j(a.companyUuid,a.projectUuid),i(a.companyUuid,a.userUuid,a.agentUuid)]);let b=new Date(Date.now()-6e4),c=await e.z.daemonDirectoryRequest.findFirst({where:{uuid:a.validationRequestUuid,companyUuid:a.companyUuid,callerUserUuid:a.userUuid,agentUuid:a.agentUuid,operation:"validate",status:"success",completedAt:{gte:b}}});if(!c?.cwd)throw new z("STALE_TARGET","Fresh successful validation required");let d=c.result&&"object"==typeof c.result&&!Array.isArray(c.result)&&"string"==typeof c.result.normalizedPath?c.result.normalizedPath:null;if(!d)throw new z("STALE_TARGET","Validation result is missing normalized path");let f=await e.z.daemonConnection.findFirst({where:{uuid:c.targetConnectionUuid,companyUuid:a.companyUuid,agentUuid:a.agentUuid},select:{host:!0}});if(!f)throw new z("STALE_TARGET","Validation target is stale");let g=await l(a.companyUuid,a.agentUuid,f.host,d);return e.z.projectAgentCwdPreference.upsert({where:{userUuid_projectUuid_agentUuid:{userUuid:a.userUuid,projectUuid:a.projectUuid,agentUuid:a.agentUuid}},create:{companyUuid:a.companyUuid,userUuid:a.userUuid,projectUuid:a.projectUuid,agentUuid:a.agentUuid,host:f.host,cwd:d,anchorAgentInstanceUuid:g},update:{host:f.host,cwd:d,anchorAgentInstanceUuid:g}})}async function w(a){await j(a.companyUuid,a.projectUuid),await e.z.projectAgentCwdPreference.deleteMany({where:{companyUuid:a.companyUuid,userUuid:a.userUuid,projectUuid:a.projectUuid,agentUuid:a.agentUuid}})}async function x(a=new Date){return e.z.daemonDirectoryRequest.deleteMany({where:{OR:[{deadlineAt:{lt:new Date(a.getTime()-36e5)}},{completedAt:{lt:new Date(a.getTime()-36e5)}}]}})}d()}catch(a){d(a)}})}};
|