@mndrk/agx 2.0.42 → 2.0.45
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/cloud-runtime/standalone/.linear-token.json +4 -0
- package/cloud-runtime/standalone/.next/BUILD_ID +1 -1
- package/cloud-runtime/standalone/.next/app-path-routes-manifest.json +12 -2
- package/cloud-runtime/standalone/.next/build-manifest.json +8 -8
- package/cloud-runtime/standalone/.next/prerender-manifest.json +3 -3
- package/cloud-runtime/standalone/.next/routes-manifest.json +77 -17
- package/cloud-runtime/standalone/.next/server/app/_global-error/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/_global-error/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/_global-error.rsc +7 -7
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/_not-found/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found.rsc +12 -12
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/agents/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/agent-specs/pull/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js +6 -4
- package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/messages/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js +6 -4
- package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/attachments/[id]/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/audit/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js +9 -6
- package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/automations/route.js +5 -3
- package/cloud-runtime/standalone/.next/server/app/api/automations/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat/route.js +10 -7
- package/cloud-runtime/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/signal/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/signal/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat-runs/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/daemon/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/domains/[id]/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/file-read/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/file-search/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/file-search/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/filesystem/browse/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/filesystem/pick-folder/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/filesystem/pick-folder/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js +5 -2
- package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/health/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/history/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/history/status/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js +6 -4
- package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/auth/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/auth/route.js +7 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/auth/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/auth/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/callback/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/callback/route.js +7 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/callback/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/callback/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/cycles/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/cycles/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/cycles/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/cycles/route.js +7 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/cycles/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/cycles/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/cycles/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js +10 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route.js +10 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/mcp-setup/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/mcp-setup/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/mcp-setup/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/mcp-setup/route.js +8 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/mcp-setup/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/mcp-setup/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/mcp-setup/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js +7 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/[id]/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/[id]/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/[id]/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/[id]/route.js +7 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/[id]/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/[id]/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/[id]/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/route.js +7 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/runs/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/status/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/status/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/status/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/status/route.js +7 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/status/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/status/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/status/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/token/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/token/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/token/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/token/route.js +7 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/token/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/token/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/token/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/logs/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/logs/stream/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/memories/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/messages/[id]/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/migrate/teams-to-projects/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/migrate/workspaces-to-projects/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/participants/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/participants/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/processes/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v2/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v2/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/route.js +5 -3
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/skills/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/skills/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/threads/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/threads/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/variables/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/variables/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js +8 -6
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js +9 -6
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js +8 -6
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/providers/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/queue/route.js +10 -8
- package/cloud-runtime/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/reactions/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js +6 -4
- package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js +8 -6
- package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/schedules/route.js +9 -6
- package/cloud-runtime/standalone/.next/server/app/api/schedules/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/search/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/available/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/skills/available/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/history/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/skills/history/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/status/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/system/db-status/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/task-drafts/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js +6 -4
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/route.js +8 -6
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/costs/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/costs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/dependencies/route.js +8 -6
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/dependencies/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/events/route.js +8 -5
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/events/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/history/route.js +9 -6
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/history/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/metrics/route.js +9 -6
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/metrics/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/pause/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js +12 -8
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/restart/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/restart/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/resume/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/resume/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/rollback/route.js +11 -7
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/rollback/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/route.js +13 -9
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/schedule/route.js +11 -8
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/schedule/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/start/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/start/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/stop/route.js +3 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/stop/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/heartbeat/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/route.js +9 -6
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/stream/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js +5 -3
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js +11 -8
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js +11 -8
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js +11 -8
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js +11 -8
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js +11 -8
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js +12 -9
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/route.js +9 -6
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/assign-orphans/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/tasks/assign-orphans/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/extract/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/tasks/extract/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js +11 -8
- package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/stream/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/thread-export/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js +6 -5
- package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/threads/route.js +6 -5
- package/cloud-runtime/standalone/.next/server/app/api/threads/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/upload/[id]/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/upload/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js +7 -5
- package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/userPreferences/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/automations/page/react-loadable-manifest.json +11 -3
- package/cloud-runtime/standalone/.next/server/app/automations/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations.rsc +15 -15
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +15 -15
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_tree.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations/__PAGE__.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/board/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/board/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/board/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.rsc +12 -12
- package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +12 -12
- package/cloud-runtime/standalone/.next/server/app/board.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/board.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/board.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.segments/board/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.segments/board.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/index.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/index.rsc +15 -15
- package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +15 -15
- package/cloud-runtime/standalone/.next/server/app/index.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/index.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/react-loadable-manifest.json +11 -3
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page/build-manifest.json +18 -0
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page/next-font-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page/react-loadable-manifest.json +10 -0
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page.js +16 -0
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/projects/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/settings/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/settings/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/skills/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/skills/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/status/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/status/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/status/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/status.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/status.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/status.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.segments/status/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome/page/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/server/app/welcome/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +14 -14
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_index.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app-paths-manifest.json +12 -2
- package/cloud-runtime/standalone/.next/server/chunks/[externals]__31e26905._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[externals]__64355ed1._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[externals]__d6ed3021._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[externals]_node:child_process_261e8bca._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__00fd30c8._.js +39 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0284ea89._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__04c806f4._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0c3dd73b._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0c4807d1._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0cc3f3b7._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0e98af48._.js +97 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0f6532d7._.js +93 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1154e5b3._.js +67 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__11c1214e._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__152b2000._.js +61 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__15f3bb96._.js +39 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1b96352c._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1dce6c15._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1f53e82e._.js +6 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__20533a2c._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__255b11f2._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__26817611._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__294fceef._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2d776aa6._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__314d5c41._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__352dad6d._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3b1431b6._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3b83b657._.js +147 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3bf516b6._.js +15 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3fd3c5b1._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42804c1d._.js +110 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42e713f5._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4559476d._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__46947325._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__46ad8e50._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4700e1b3._.js +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__49c04b15._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a4265e0._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4b0b5fe1._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c2d07e0._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c5c536d._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c89c60a._.js +93 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__509b1dd2._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__50ddd3ce._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__529a6e1c._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__558389f7._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5650bac3._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5a1fd688._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5aaf8c25._.js +15 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5b13e7a5._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5d359afa._.js +21 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__621dcb4a._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__628d686b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__635fe0f9._.js +15 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__68da2825._.js +39 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__6921fe3f._.js +44 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__6988985c._.js +15 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__6db132e9._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__6dbe939c._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__6fe5a96f._.js +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7012e83d._.js +66 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__70327010._.js +134 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__748c718f._.js +147 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__74a37ca4._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__76290829._.js +67 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__76658fd6._.js +15 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__79fa35e4._.js +101 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7c94b104._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__889996dd._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8a35d73b._.js +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8b5fd676._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8c7d1318._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8d205f82._.js +48 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__92924218._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__94bd7f65._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9746d1f5._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9b69f93e._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9ffa67b7._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a300f072._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a7e0ac67._.js +25 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__aad349b4._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ad6d6402._.js +67 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__af7a73fd._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b133856b._.js +61 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b8f4e4a3._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bd11b2ad._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c029daab._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c4ea4921._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c4ed5d83._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c695a5f2._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c8195768._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__cb5c7680._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ce2a1672._.js +67 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__cf6082be._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d2ac93f2._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d4f42f49._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d57e800e._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d8b615bf._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d9bd6334._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d9f2041b._.js +72 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__db469f1b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dca6026a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ddb3aa76._.js +7 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__de295ef3._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__de2a1e43._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e20922e8._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e3ecfd17._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e7be56ba._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ebece93b._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ef27f8cd._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f13c29c6._.js +39 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f168c6dc._.js +14 -14
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f536cd2f._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f9f7f2df._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fcdaf6d8._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fdb21d1b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_0a767dfe._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_2a5aeb76._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_2f3e5ac1._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_4689976f._.js +6 -0
- package/cloud-runtime/standalone/.next/server/chunks/_5462a047._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_65fd2525._.js +10 -0
- package/cloud-runtime/standalone/.next/server/chunks/_682c9d81._.js +6 -0
- package/cloud-runtime/standalone/.next/server/chunks/_6e7f0ae4._.js +6 -0
- package/cloud-runtime/standalone/.next/server/chunks/_7011db4f._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_9b10087f._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/_9dea7192._.js +10 -0
- package/cloud-runtime/standalone/.next/server/chunks/_a32a5cdd._.js +6 -0
- package/cloud-runtime/standalone/.next/server/chunks/_a877d34f._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_a93e80e8._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_af7bd752._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_b0524599._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_c31ca6ab._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_c3c28282._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_c965f7b3._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_d2ea7d84._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_e469c080._.js +10 -0
- package/cloud-runtime/standalone/.next/server/chunks/_ee99a36b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_fe32a267._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_agent-specs_pull_route_actions_33fd1f01.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_agent-specs_route_actions_3c4fd7d4.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_agents_[id]_profile_route_actions_e8d70dac.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_agents_export_route_actions_cc761823.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_attachments_[id]_route_actions_28040395.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_audit_route_actions_9d92fa80.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_automations_create_route_actions_ffb767ae.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_automations_route_actions_0112e2f7.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_chat-runs_[id]_route_actions_033ac330.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_chat-runs_route_actions_0c8cd01c.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_chat_route_actions_ac0c75e3.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_daemon_route_actions_89f9619f.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_domains_[id]_route_actions_36310215.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_domains_route_actions_8d8cc0aa.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_file-read_route_actions_a562d24d.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_file-search_route_actions_8af77a20.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_filesystem_browse_route_actions_8e268170.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_filesystem_pick-folder_route_actions_162664ff.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_health_route_actions_da3433c4.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_history_route_actions_f1813cd2.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_knowledge-notes_route_actions_0ddf6109.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_learnings_route_actions_c32db009.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_auth_route_actions_6bba0ae0.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_callback_route_actions_0fc8695c.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_cycles_route_actions_9cbb85fe.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_issues_context_route_actions_0b2c282c.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_issues_route_actions_8f12f3b7.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_mcp-setup_route_actions_a11b04f4.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_options_route_actions_29764947.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_runs_[id]_route_actions_5c46cc4e.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_runs_route_actions_a99753a8.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_status_route_actions_e43f376f.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_token_route_actions_510583b8.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_logs_route_actions_30a87f47.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_logs_stream_route_actions_92bf6397.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_memories_route_actions_f0712914.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_messages_[id]_route_actions_3ca634d2.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_participants_route_actions_2bae2919.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_processes_route_actions_93e6bd01.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_projects_[id]_agents_route_actions_62a7e8e5.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_projects_[id]_migrate-v1_route_actions_e28a058d.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_projects_[id]_migrate-v2_route_actions_0cfff9eb.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_projects_[id]_route_actions_6fd2e5a5.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_projects_[id]_skills_route_actions_90fdd1e6.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_projects_[id]_threads_route_actions_88ac9ddb.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_projects_[id]_variables_route_actions_e646c8d9.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_[id]_cancel_route_actions_fbd5be89.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_[id]_route_actions_774a2e21.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_[id]_runs_route_actions_6e59ee83.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_agents_route_actions_399e1f19.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_poll_route_actions_23fbbfa1.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_route_actions_acf03860.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_providers_route_actions_5388b373.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_queue_complete_route_actions_1350a2ac.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_queue_route_actions_1e9c9b6f.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_reactions_route_actions_e075d50e.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_schedules_debug_route_actions_61c03e5e.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_schedules_poll_route_actions_dfc6ace4.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_schedules_route_actions_f5db3d09.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_search_route_actions_4244da48.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_assign_route_actions_15267be8.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_available_route_actions_24023111.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_detail_route_actions_1148baef.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_history_route_actions_5e5c4757.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_learn_route_actions_d3a37d25.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_route_actions_780e175f.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_unlearn_route_actions_3dfee433.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_status_route_actions_d551bce0.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_summarize_route_actions_3e77989a.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_system_db-status_route_actions_0f864710.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_task-drafts_route_actions_3b90bec5.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_comments_route_actions_71745d03.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_costs_route_actions_e20adc3f.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_dependencies_route_actions_b85eaa7f.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_events_route_actions_3e2c7edc.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_history_route_actions_debb26dc.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_metrics_route_actions_a82052ba.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_pause_route_actions_1341b4e1.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_replan_route_actions_0d67ebea.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_restart_route_actions_bbd1883b.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_resume_route_actions_745fbaa8.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_rollback_route_actions_77968f37.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_route_actions_766df5f7.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_schedule_route_actions_943bcc22.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_start_route_actions_1d7e784a.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_graph_stop_route_actions_5f5d6ff0.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_heartbeat_route_actions_28915a39.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_history_route_actions_7ecd517e.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_logs_route_actions_e1a486bd.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_logs_stream_route_actions_ed381b79.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_[id]_route_actions_8de83605.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_extract_route_actions_2651c393.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_route_actions_84c37746.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_tasks_stream_route_actions_37a289da.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_thread-export_route_actions_26354edd.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_thread-repos_route_actions_e95d24ee.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_threads_knowledge_route_actions_c139bcf7.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_threads_route_actions_f9ea97f2.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_upload_[id]_route_actions_d9c30458.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_upload_route_actions_f15ed185.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_user-settings_route_actions_553a1208.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_userPreferences_route_actions_178deeb3.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ce889_server_app_api_migrate_workspaces-to-projects_route_actions_cb1e42e0.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ce889_server_app_api_orchestrator_tasks_[taskId]_cancel_route_actions_8b9cd080.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ce889_server_app_api_orchestrator_tasks_[taskId]_signal_route_actions_5a3d8250.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ce889_server_app_api_orchestrator_tasks_[taskId]_start_route_actions_08f1c94e.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ce889_server_app_api_orchestrator_tasks_[taskId]_status_route_actions_4062630f.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ce889_server_app_api_tasks_[id]_nodes_[nodeId]_complete_route_actions_c44e3cb4.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ce889_server_app_api_tasks_[id]_nodes_[nodeId]_fail_route_actions_7ff931bc.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ce889_server_app_api_tasks_[id]_nodes_[nodeId]_resume_route_actions_a9f01d21.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ce889_server_app_api_tasks_[id]_nodes_[nodeId]_stop_route_actions_dbea30a3.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ce889_server_app_api_tasks_[id]_nodes_[nodeId]_verify_route_actions_ff371970.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/lib_2492d514._.js +11 -37
- package/cloud-runtime/standalone/.next/server/chunks/lib_3c080873._.js +34 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_70cd6b4a._.js +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_7f7835f1._.js +68 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_88726721._.js +79 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_98ae187c._.js +34 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_9f439b27._.js +25 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_app-config_ts_7f2f30ad._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_check-node-version_ts_ef89bf83._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/lib_db_ts_e06c6085._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_2e721df2._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_74d1c060._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/lib_orchestrator_chat-processor_ts_4c335719._.js +4 -4
- package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js +5 -5
- package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_b0b1a9b2._.js +5 -5
- package/cloud-runtime/standalone/.next/server/chunks/lib_vault-store_ts_3718ff79._.js +34 -0
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_18a495c8._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_4223ed10._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_ccc242ec._.js +4 -0
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_d2858615._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_1402a1da._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0f808fa3.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_19315704.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_2aaf71c8.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_2bdede98.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_371d0bff.js +15 -15
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_3d31fed0.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_57a073eb.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_63e89275.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_84e28f38.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_9aff0990.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_cc6c687d.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_dcaa7800.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_def8bfbe.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_e0cc2bbf.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_fce9bc95.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_zod_v4_classic_external_fa90cebf.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_12d46a92._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_138dc200._.js +59 -0
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_914bb19c._.js +59 -0
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_api-route-utils_ts_b7225a0e._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_executor_ts_55c06268._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_executor_ts_a8bc8d58._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_scheduler_ts_d7b7497d._.js +57 -0
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_state-machine_ts_ae1de66e._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_store_ts_d6588a77._.js +56 -0
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_validate_ts_a06b9fab._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__0497a547._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__056cdf7d._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__11e33b9b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__139838ab._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__19cd257e._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__1c4256ce._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__26d669c2._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__351b2cc6._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__38071250._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__4c9d0778._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__4ebf5947._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__5ffa2883._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__67d5f883._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__69887882._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__6e83bf83._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__71b6d8a9._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__7d279e62._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__8fe8b9dd._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__a0a1cb74._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__a42e4555._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__a667191a._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__aa28d46f._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__ba4308c3._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__bb149a22._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__bd4d5430._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__bde5bc78._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__cde88183._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__d36dd8bc._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__dac5ab29._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__e0c64529._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__e87ba2b0._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__f2c3b7ab._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__f59f0dc7._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__f62d412e._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__f63d6594._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__fbd1aaff._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__febbd0b8._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__ff22a10e._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__ffbc2e98._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_02c78cac._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_05c8a494._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_0b36c9d6._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_0ff7c687._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_0ffd2660._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_11ce4c04._.js +95 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_173da79d._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_1c58ab2d._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_1d26be78._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_222af282._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_22e99a52._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_23f5fddc._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_24feb541._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_260b10ce._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_32c878b9._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_3aa32c11._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_43472af3._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_47e9a061._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_4bfdfb14._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_4d4ba84b._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_50d04b8f._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_52fe115d._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_547b6462._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_60d0bae4._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_629dc55c._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_69164b06._.js +95 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_77e1407a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_7f7a828a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_84a166cb._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_93914ecd._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_a10eb951._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_a1b966f7._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_aa5b4886._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_ae20456d._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_ba5903a7._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_cb4d8a23._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_cee3cf86._.js +95 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_dc2072e7._.js +4 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_e04b4053._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_e1769638._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_ed4fece9._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_f1465cc8._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_f2a7beb1._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_f51a3112._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_fc1aaf9e._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_fd0dda03._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_75761787.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_554ec2bf.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_agents_[id]_page_actions_45703105.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_agents_page_actions_2bceb931.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_automations_page_actions_415dbaa9.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_board_page_actions_469e0e61.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_execution-graph_page_actions_3eceb5c1.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_page_actions_39d4fc33.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_projects_[slug]_automations_page_actions_9371bc66.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_projects_[slug]_graph_[taskId]_page_actions_c1473d77.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_projects_[slug]_knowledge_page_actions_1037c40a.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_projects_[slug]_linear_page_actions_0a8dc487.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_projects_orphans_page_actions_6f398ff8.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_projects_page_actions_42ca3f3e.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_settings_page_actions_840229cd.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_status_page_actions_39bbdbbf.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_thread_[id]_page_actions_94774546.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_welcome_page_actions_e32fb27e.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_agents_[id]_page_tsx_9c49d8c8._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_agents_layout_tsx_b9360330._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_agents_page_tsx_f5f08ed8._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_execution-graph_page_tsx_f854185a._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_global-error_tsx_9170b7a0._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_projects_[slug]_graph_[taskId]_page_tsx_d8b1d582._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_projects_[slug]_knowledge_page_tsx_e2a55cbd._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_projects_[slug]_layout_tsx_67c9550a._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_projects_[slug]_linear_page_tsx_971a6ba7._.js +39 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/ce889_server_app_projects_[slug]_thread_[threadId]_page_actions_660a8857.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/components_PromptJobBoard_tsx_f83f722f._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/components_chat-ui_bfeda794._.js +10 -6
- package/cloud-runtime/standalone/.next/server/chunks/ssr/components_graph_graph-derived_ts_2b94148f._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/components_thread_WorkspaceSidebar_tsx_e660301b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_@dnd-kit_core_dist_core_esm_57071f37.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_f76a24fb._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_e8bdedc5._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_03ec2107._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_174ae28d._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_4b63a0e1._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_61a87db9._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_9774470f._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_61c49327.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_f2865b38._.js +2 -2
- package/cloud-runtime/standalone/.next/server/edge/chunks/[root-of-the-server]__9491d0b8._.js +2 -2
- package/cloud-runtime/standalone/.next/server/edge/chunks/_52aa5b93._.js +1 -1
- package/cloud-runtime/standalone/.next/server/edge/chunks/node_modules_next_dist_esm_build_templates_edge-wrapper_3b93bb62.js +1 -1
- package/cloud-runtime/standalone/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_405b82a5.js +1 -1
- package/cloud-runtime/standalone/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_cd32efca.js +1 -1
- package/cloud-runtime/standalone/.next/server/functions-config-manifest.json +11 -2
- package/cloud-runtime/standalone/.next/server/instrumentation.js +3 -3
- package/cloud-runtime/standalone/.next/server/middleware-build-manifest.js +6 -6
- package/cloud-runtime/standalone/.next/server/middleware-manifest.json +5 -5
- package/cloud-runtime/standalone/.next/server/next-font-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/next-font-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/pages/404.html +2 -2
- package/cloud-runtime/standalone/.next/server/pages/500.html +2 -2
- package/cloud-runtime/standalone/.next/server/server-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/server-reference-manifest.json +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/00716478a3ee55a2.js +37 -0
- package/cloud-runtime/standalone/.next/static/chunks/012b9216c9932478.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/02add5a8d35c53fe.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/{8304e8487aa74059.css → 06003b84da346995.css} +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/081fcf3ea160ca2d.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/0c5b9fe15dda4972.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/14922fd23cdc223b.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/1d8496cecfe9a523.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/1fa91c34c99502bf.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2362d5c0dcaa5d64.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2375e3fd2a9b8844.js +2 -0
- package/cloud-runtime/standalone/.next/static/chunks/2618f9566e3788e4.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2730394502dd3664.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2a9c83f8211196e0.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2ac8e643e539b81e.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2e471cd7ac5cd8fb.js +6 -0
- package/cloud-runtime/standalone/.next/static/chunks/3091043e8c282dce.css +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/335f551791affdd1.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/34dd491bc4ce9561.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/3dc50de1c86e1ce9.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/4ea8f08087116055.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/5607ad702ebb8a4b.js +9 -0
- package/cloud-runtime/standalone/.next/static/chunks/6103b9b5538bba4d.css +2 -0
- package/cloud-runtime/standalone/.next/static/chunks/657c261f623752de.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/68586017f55137e8.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/73e3194f06db260e.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/797fcb0710da3be2.js +4 -0
- package/cloud-runtime/standalone/.next/static/chunks/818fb0f154cee2c5.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/8b40d0636a2ba3b0.js +28 -0
- package/cloud-runtime/standalone/.next/static/chunks/8fc3ed1915e0659b.js +88 -0
- package/cloud-runtime/standalone/.next/static/chunks/961311cbebbffb6d.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/963060cf6e72339b.js +6 -0
- package/cloud-runtime/standalone/.next/static/chunks/98c20da4973991f0.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/a2a98ae5d4a3e5e3.js +2 -0
- package/cloud-runtime/standalone/.next/static/chunks/a72fbac84e32f665.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/a9da98f883ac833b.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/aa4d86855d0a3a55.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/b2127dc67c5ade9f.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/b3377e39d47c71cf.js +3 -0
- package/cloud-runtime/standalone/.next/static/chunks/b553dba1f51e709b.js +16 -0
- package/cloud-runtime/standalone/.next/static/chunks/b93f49b29a473a1d.js +6 -0
- package/cloud-runtime/standalone/.next/static/chunks/bf2a2fafb710e63c.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/c0d17e0c37ba8e7a.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/c3784233f00e1ff5.js +12 -0
- package/cloud-runtime/standalone/.next/static/chunks/c48afb0a7fd0423c.js +28 -0
- package/cloud-runtime/standalone/.next/static/chunks/cb6301624094c91e.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/{787436fad75f5bc6.js → ccaf68956da192f8.js} +2 -2
- package/cloud-runtime/standalone/.next/static/chunks/d96012bcfc98706a.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/db131a0b6350e416.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/de271f8f22d293b4.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/e51fddf53a6dc1e4.js +9 -0
- package/cloud-runtime/standalone/.next/static/chunks/f4360c3e4089263f.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/f8cfa030ea3cb3c3.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/turbopack-0ace1f53f3e3cf46.js +4 -0
- package/cloud-runtime/standalone/Dockerfile +5 -5
- package/cloud-runtime/standalone/README.md +37 -5
- package/cloud-runtime/standalone/app/api/automations/route.ts +64 -17
- package/cloud-runtime/standalone/app/api/chat/route.ts +29 -3
- package/cloud-runtime/standalone/app/api/linear/auth/route.ts +14 -0
- package/cloud-runtime/standalone/app/api/linear/callback/route.ts +44 -0
- package/cloud-runtime/standalone/app/api/linear/cycles/route.ts +22 -0
- package/cloud-runtime/standalone/app/api/linear/issues/context/route.ts +26 -0
- package/cloud-runtime/standalone/app/api/linear/issues/route.ts +61 -0
- package/cloud-runtime/standalone/app/api/linear/mcp-setup/route.ts +181 -0
- package/cloud-runtime/standalone/app/api/linear/options/route.ts +31 -0
- package/cloud-runtime/standalone/app/api/linear/runs/[id]/route.ts +81 -0
- package/cloud-runtime/standalone/app/api/linear/runs/route.ts +91 -0
- package/cloud-runtime/standalone/app/api/linear/status/route.ts +38 -0
- package/cloud-runtime/standalone/app/api/linear/token/route.ts +59 -0
- package/cloud-runtime/standalone/app/api/prompt-jobs/route.ts +1 -1
- package/cloud-runtime/standalone/app/api/providers/route.ts +1 -14
- package/cloud-runtime/standalone/app/api/status/route.ts +8 -16
- package/cloud-runtime/standalone/app/projects/[slug]/knowledge/page.tsx +3 -181
- package/cloud-runtime/standalone/app/projects/[slug]/layout.tsx +2 -1
- package/cloud-runtime/standalone/app/projects/[slug]/linear/page.tsx +26 -0
- package/cloud-runtime/standalone/components/LinearBoard.tsx +1369 -0
- package/cloud-runtime/standalone/components/LinearSetup.tsx +239 -0
- package/cloud-runtime/standalone/components/ProjectModal.tsx +15 -3
- package/cloud-runtime/standalone/components/PromptJobBoard.tsx +367 -87
- package/cloud-runtime/standalone/components/chat-ui/ChatContainer.tsx +30 -15
- package/cloud-runtime/standalone/components/chat-ui/Composer.tsx +77 -7
- package/cloud-runtime/standalone/components/chat-ui/MentionPopover.tsx +43 -2
- package/cloud-runtime/standalone/components/thread/WorkspaceSidebar.tsx +53 -48
- package/cloud-runtime/standalone/docs/superpowers/plans/2026-04-07-linear-integration.md +1352 -0
- package/cloud-runtime/standalone/hooks/useGroupChat.ts +4 -1
- package/cloud-runtime/standalone/hooks/useLinearConnection.ts +128 -0
- package/cloud-runtime/standalone/hooks/useLinearIssueMentions.ts +64 -0
- package/cloud-runtime/standalone/hooks/useLinearIssues.ts +98 -0
- package/cloud-runtime/standalone/hooks/useLinearRuns.ts +137 -0
- package/cloud-runtime/standalone/hooks/useMentionAutocomplete.ts +54 -6
- package/cloud-runtime/standalone/hooks/useProjectResources.ts +0 -50
- package/cloud-runtime/standalone/instrumentation.ts +2 -1
- package/cloud-runtime/standalone/lib/app-config.ts +55 -0
- package/cloud-runtime/standalone/lib/chat/composer-routing.ts +128 -0
- package/cloud-runtime/standalone/lib/chat/linear-issue-context.ts +79 -0
- package/cloud-runtime/standalone/lib/cli-runner.ts +15 -15
- package/cloud-runtime/standalone/lib/db.ts +32 -46
- package/cloud-runtime/standalone/lib/knowledge-notes.ts +6 -242
- package/cloud-runtime/standalone/lib/knowledge-store.ts +8 -211
- package/cloud-runtime/standalone/lib/linear-client.ts +427 -0
- package/cloud-runtime/standalone/lib/linear-execution-prompt.ts +153 -0
- package/cloud-runtime/standalone/lib/linear-issue-store.ts +427 -0
- package/cloud-runtime/standalone/lib/linear-issues.ts +360 -0
- package/cloud-runtime/standalone/lib/linear-run-store.ts +374 -0
- package/cloud-runtime/standalone/lib/repo-knowledge.ts +46 -125
- package/cloud-runtime/standalone/lib/security.ts +2 -2
- package/cloud-runtime/standalone/lib/shell-env.ts +71 -0
- package/cloud-runtime/standalone/lib/task-context.ts +3 -13
- package/cloud-runtime/standalone/lib/thread-knowledge.ts +2 -11
- package/cloud-runtime/standalone/lib/tiptap/composer-mentions.ts +38 -0
- package/cloud-runtime/standalone/lib/tiptap/editor-utils.ts +11 -0
- package/cloud-runtime/standalone/lib/tiptap/serialize-composer.ts +10 -0
- package/cloud-runtime/standalone/lib/vault-store.ts +2067 -0
- package/cloud-runtime/standalone/mcp/README.md +22 -11
- package/cloud-runtime/standalone/next.config.ts +2 -1
- package/cloud-runtime/standalone/package-lock.json +7 -0
- package/cloud-runtime/standalone/package.json +3 -0
- package/cloud-runtime/standalone/planning/automation-frontmatter-migration-spec.md +710 -0
- package/cloud-runtime/standalone/scripts/backfill-automations-frontmatter.ts +145 -0
- package/cloud-runtime/standalone/scripts/migrate-vault.ts +13 -0
- package/cloud-runtime/standalone/src/automations/adapters.ts +219 -0
- package/cloud-runtime/standalone/src/automations/index.ts +7 -0
- package/cloud-runtime/standalone/src/automations/parser.ts +33 -0
- package/cloud-runtime/standalone/src/automations/repository.ts +440 -0
- package/cloud-runtime/standalone/src/automations/serializer.ts +94 -0
- package/cloud-runtime/standalone/src/automations/state.ts +166 -0
- package/cloud-runtime/standalone/src/automations/types.ts +134 -0
- package/cloud-runtime/standalone/src/automations/validation.ts +337 -0
- package/cloud-runtime/standalone/src/graph/internal-function-dispatcher.ts +2 -5
- package/cloud-runtime/standalone/src/graph/schedule-runner.ts +45 -7
- package/cloud-runtime/standalone/src/graph/store.ts +174 -5
- package/cloud-runtime/standalone/src/prompt-scheduler/store.ts +522 -162
- package/cloud-runtime/standalone/src/prompt-scheduler/types.ts +1 -0
- package/cloud-runtime/standalone/state/automations/.state/24a6a5db-3b14-49c4-841f-29f10f015fbb.json +8 -0
- package/cloud-runtime/standalone/state/automations/active/24a6a5db-3b14-49c4-841f-29f10f015fbb.md +17 -0
- package/cloud-runtime/standalone/styles/composer-pills.css +13 -0
- package/cloud-runtime/standalone/tsconfig.tsbuildinfo +1 -1
- package/cloud-runtime/standalone/worker/index.js +4547 -366
- package/package.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route/app-paths-manifest.json +0 -3
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route.js +0 -9
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route.js.nft.json +0 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route_client-reference-manifest.js +0 -2
- package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route/app-paths-manifest.json +0 -3
- package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route.js +0 -8
- package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route.js.nft.json +0 -1
- package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route_client-reference-manifest.js +0 -2
- package/cloud-runtime/standalone/.next/server/chunks/[externals]__bc6c7111._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__01cd082e._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0936925d._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__09ca81e1._.js +0 -101
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1017e012._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1ac3236d._.js +0 -25
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1b0bb735._.js +0 -15
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1c86bf6e._.js +0 -48
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__20c58b41._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2126c763._.js +0 -42
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__236c35bb._.js +0 -51
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__277ed37d._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2f06f568._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__30bd0c87._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__374cd94c._.js +0 -42
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3785024c._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__379604d4._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c8f1de6._.js +0 -15
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3d0df5a8._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4014ed70._.js +0 -51
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42fcb81c._.js +0 -52
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a3cd6ac._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4e522535._.js +0 -6
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__50c24784._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__59d1cdd8._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__644e6285._.js +0 -112
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__65755104._.js +0 -7
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__73c20995._.js +0 -15
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8125bbc3._.js +0 -63
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__85275b88._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__89666394._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8c0fb154._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8f5cac13._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__91b22098._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__96ae701e._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__98ce983b._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9a9fd39f._.js +0 -44
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9ad4e385._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a01ddd0b._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a099c992._.js +0 -58
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a1e62918._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a9b949c3._.js +0 -7
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bd43017b._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bf6fb108._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c0a18648._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c122c54a._.js +0 -75
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c5b8ceb7._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c8b49077._.js +0 -79
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dc542063._.js +0 -15
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dec3e1b7._.js +0 -30
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f1147a4a._.js +0 -15
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f5597fea._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f8c94cb3._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fa79d53f._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fb14cd4a._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fc27a898._.js +0 -158
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fce2cdce._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fcf0b40a._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ffb21023._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/_05fa3b89._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/_22fe5fd2._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/_4190f170._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/_42e9c8d5._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/_5ca51127._.js +0 -54
- package/cloud-runtime/standalone/.next/server/chunks/_5fd6af5d._.js +0 -57
- package/cloud-runtime/standalone/.next/server/chunks/_6519418b._.js +0 -59
- package/cloud-runtime/standalone/.next/server/chunks/_6bb93816._.js +0 -6
- package/cloud-runtime/standalone/.next/server/chunks/_6bc1b3e1._.js +0 -59
- package/cloud-runtime/standalone/.next/server/chunks/_862895c0._.js +0 -57
- package/cloud-runtime/standalone/.next/server/chunks/_8b9fde82._.js +0 -97
- package/cloud-runtime/standalone/.next/server/chunks/_95ac98db._.js +0 -49
- package/cloud-runtime/standalone/.next/server/chunks/_994414cd._.js +0 -54
- package/cloud-runtime/standalone/.next/server/chunks/_99b78daf._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/_affbdbb0._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/_d22934ab._.js +0 -97
- package/cloud-runtime/standalone/.next/server/chunks/_efc73784._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/_fba13a4a._.js +0 -6
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_projects_[id]_memory_route_actions_f0c255ef.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_repos_[id]_knowledge_route_actions_993fe4e5.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/lib_281e5787._.js +0 -16
- package/cloud-runtime/standalone/.next/server/chunks/lib_63067e21._.js +0 -16
- package/cloud-runtime/standalone/.next/server/chunks/lib_87c06aeb._.js +0 -25
- package/cloud-runtime/standalone/.next/server/chunks/lib_a5adca60._.js +0 -64
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_7f8022ab.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_8ec90680.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_a590fcd6.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_14067235._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_b63e2d39._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__096c39a3._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__47caef59._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__8b4e7816._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__a37fb1c3._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__a456581d._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__d74022f1._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__ea035cd9._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__fca7df40._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_0c5c111f._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_23656a95._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_27a789b3._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_36b413cc._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_46e00a9b._.js +0 -95
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_478f4991._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_547f19ec._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_85ca101b._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_9e07dcac._.js +0 -95
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_a68d8f62._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_a80e12c8._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_b1e1ef71._.js +0 -95
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_e1349560._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_welcome_page_tsx_6c79bc59._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_b82e03da._.js +0 -3
- package/cloud-runtime/standalone/.next/static/chunks/01428247f94115a6.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/06cf0ed16bf8aa70.js +0 -28
- package/cloud-runtime/standalone/.next/static/chunks/0bd6498bda341889.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/0ec92a111fe969fd.css +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/19dd745b663fdffa.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/1a3298f21d1040e9.js +0 -4
- package/cloud-runtime/standalone/.next/static/chunks/1c8583feefee0765.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/1e3dede69b464364.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/238a28856e739dc9.js +0 -2
- package/cloud-runtime/standalone/.next/static/chunks/24772e179852c73e.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/2d1d138d8ea3234c.css +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/2deeba875ec50761.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/2e011469003993e9.js +0 -28
- package/cloud-runtime/standalone/.next/static/chunks/31a4164e40ca71e5.js +0 -6
- package/cloud-runtime/standalone/.next/static/chunks/3a55441b018d52e4.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/3c202e89da05d9b9.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/3c72becf6dff5597.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/44dafb5e85578e12.js +0 -16
- package/cloud-runtime/standalone/.next/static/chunks/48e332ac3e9ed56c.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/5c0819dcc4bfec85.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/5d52c79d9812d06e.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/617db51b7444f818.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/673bb6094cea9ded.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/687d09973325dcf8.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/76a50c4abceb3362.js +0 -12
- package/cloud-runtime/standalone/.next/static/chunks/8a4684388ca0f6de.js +0 -7
- package/cloud-runtime/standalone/.next/static/chunks/9f236cc9572783b9.js +0 -93
- package/cloud-runtime/standalone/.next/static/chunks/a9aaec85125f69b1.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/ac9a7d8cf17b5d75.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/b4c29a62f9255268.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/b6bbe747d2b0dddb.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/badc6258750e247d.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/bc3cad3c821b169b.js +0 -2
- package/cloud-runtime/standalone/.next/static/chunks/bf2bb1662353aff5.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/c1fb885eed94aa8c.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/c653186036e56204.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/cb5581d868e78205.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/cbdeb17a36b99000.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/d5cc62984dc4205c.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/d78cc7d749043fef.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/da2b00558cf32f37.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/ee5f1457fbc593e1.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/ff1a16fafef87110.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/turbopack-e1d640f2fbe4fa5e.js +0 -4
- package/cloud-runtime/standalone/app/api/projects/[id]/memory/route.ts +0 -81
- package/cloud-runtime/standalone/app/api/repos/[id]/knowledge/route.ts +0 -98
- /package/cloud-runtime/standalone/.next/server/app/api/{projects/[id]/memory → linear/auth}/route/build-manifest.json +0 -0
- /package/cloud-runtime/standalone/.next/server/app/api/{projects/[id]/memory → linear/auth}/route/server-reference-manifest.json +0 -0
- /package/cloud-runtime/standalone/.next/server/app/api/{projects/[id]/memory → linear/auth}/route.js.map +0 -0
- /package/cloud-runtime/standalone/.next/server/app/api/{repos/[id]/knowledge → linear/callback}/route/build-manifest.json +0 -0
- /package/cloud-runtime/standalone/.next/server/app/api/{repos/[id]/knowledge → linear/callback}/route/server-reference-manifest.json +0 -0
- /package/cloud-runtime/standalone/.next/server/app/api/{repos/[id]/knowledge → linear/callback}/route.js.map +0 -0
- /package/cloud-runtime/standalone/.next/static/{PH4cjH9B7XiWyHWYdevbx → Y8QdDdLJI3yzNjkyPjuJ-}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/.next/static/{PH4cjH9B7XiWyHWYdevbx → Y8QdDdLJI3yzNjkyPjuJ-}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/.next/static/{PH4cjH9B7XiWyHWYdevbx → Y8QdDdLJI3yzNjkyPjuJ-}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,268542,531245,154238,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(174080),s=e.i(664659),n=e.i(463059),o=e.i(88081),i=e.i(475254);let l=(0,i.default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["Bot",()=>l],531245);var d=e.i(39312),c=e.i(327025),u=e.i(690272);let p=(0,i.default)("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);var m=e.i(788699),h=e.i(107233),f=e.i(555436),x=e.i(727612),g=e.i(37727),b=e.i(778917),v=e.i(239616),j=e.i(522016),y=e.i(325459),k=e.i(811132);function w({threads:e,participants:i=[],activeThreadId:w,isLoading:N,isCreating:_,onSelectThread:C,onCreateThread:S,onRenameThread:P,onDeleteThread:E,deletingThreadId:A=null,renamingThreadId:T=null,activeParticipantIds:O=[],onToggleParticipantActive:$,visible:I=!1,isRestoringActiveThread:M=!1,onToggle:L,onSearch:F,projects:z=[],onCreateProject:D,onUpdateProject:R,onDeleteProject:U,onAddAgentToProject:B,onRemoveAgentFromProject:K,onAddAgentViaForm:V,onReorderProjectAgents:H,onUpdateParticipant:W,onSelectProject:J,activeProjectId:q=null,activeProjectView:X=null}){let G,Z,Y=(0,r.useRef)(null),[Q,ee]=(0,r.useState)(!1),[et,er]=(0,r.useState)(new Set);(0,r.useEffect)(()=>{if(et.size>0||!z?.length)return;let e=z.find(e=>window.location.pathname.includes(`/projects/${e.slug}`));er(new Set([e?.id??z[0].id]))},[z]);let[ea,es]=(0,r.useState)(null),[en,eo]=(0,r.useState)(new Set),[ei,el]=(0,r.useState)(!1),[ed,ec]=(0,r.useState)(null),[eu,ep]=(0,r.useState)(null),em=(0,k.useProjectFormState)(),[eh,ef]=(0,r.useState)(null),ex=(0,r.useCallback)(e=>{e&&(e.focus(),e.select())},[]),[eg,eb]=(0,r.useState)(null),[ev,ej]=(0,r.useState)(null),ey=ev?i.find(e=>e.id===ev)??null:null,[ek,ew]=(0,r.useState)(null),[eN,e_]=(0,r.useState)(null),eC=async()=>{if(!ed&&!eu)return;if(!em.form.name.trim())return void em.setFormError("Project name is required");let e=em.repos.find(e=>e.name.trim()&&!e.path.trim());if(e)return void em.setFormError(`Local path is required for folder "${e.name}"`);em.setFormError(null),em.setIsSubmitting(!0);let t=(0,k.createProjectPayload)(em.form,em.repos);eu?await R?.(eu.id,t):await D?.(t,ed?.threadId),em.setIsSubmitting(!1),ec(null),ep(null)},eS=async e=>{em.resetForm();try{let t=await fetch(`/api/projects/${e}`);if(!t.ok)throw Error("Failed to load project");let r=(await t.json()).project;ep(r),em.hydrateFromProject(r)}catch(e){console.error("Failed to load project settings",e)}};(0,r.useEffect)(()=>{ee(!0)},[]),(0,r.useEffect)(()=>{let e=!1;async function t(){if(ek?.repoId)try{let t=await fetch(`/api/knowledge-notes?scope=repo&subjectId=${encodeURIComponent(ek.repoId)}`),r=(t.ok?await t.json():{note:null}).note;e||ew(e=>e&&e.repoId===ek.repoId?{...e,generatedKnowledge:r?.content?[{id:r.id,content:r.content,created_at:r.updatedAt??r.createdAt}]:[],isLoadingKnowledge:!1}:e)}catch{e||ew(e=>e&&e.repoId===ek.repoId?{...e,generatedKnowledge:[],isLoadingKnowledge:!1}:e)}}return ek?.repoId&&t(),()=>{e=!0}},[ek?.repoId]);let eP=e=>{V?V(e):(eo(new Set),es({projectId:e}))},eE=ea?z.find(e=>e.id===ea.projectId):null,eA=new Set(eE?.agents.map(e=>e.agent_id)??[]),eT=ea?i.filter(e=>!eA.has(e.id)):[],eO=e.length>0,e$=!!I,eI=[...e].sort((e,t)=>(e.title??"").localeCompare(t.title??"")),eM=new Map(e.map(e=>[e.id,e])),eL=z.filter(e=>!e.is_default),eF=eI.filter(e=>!eL.some(t=>t.thread_ids?.includes(e.id)));!function({focusTarget:e,shouldFocus:t}){(0,r.useEffect)(()=>{if(!t||"u"<typeof document)return;let r=e.current;if(!r||r instanceof HTMLButtonElement&&r.disabled)return;let a=document.activeElement;if(!(a&&(r===a||r.contains(a))))try{r.focus({preventScroll:!0})}catch{r.focus()}},[e,t])}({focusTarget:Y,shouldFocus:e$&&!(N&&!eO||M&&eO)&&!eO&&!_});let ez=()=>{ef({title:"Create chat",placeholder:"Chat title",defaultValue:"",onSubmit:e=>void S({title:e})})};return e$?(0,t.jsxs)("aside",{id:"workspace-sidebar",className:"workspace-sidebar","aria-label":"Workspace sidebar","aria-busy":N?"true":void 0,children:[(0,t.jsxs)("div",{className:"workspace-sidebar__brand",children:[(0,t.jsxs)("div",{className:"workspace-sidebar__brand-content flex items-center gap-2 px-1",children:[(0,t.jsx)("div",{className:"workspace-sidebar__brand-icon","aria-hidden":"true",children:(0,t.jsx)("span",{className:"text-[10px]",children:"AGX"})}),(0,t.jsx)("span",{className:"workspace-sidebar__brand-title",children:"Workspace"})]}),L&&(0,t.jsx)("button",{type:"button",onClick:L,"aria-label":"Hide chats",title:"Hide chats",className:"workspace-sidebar__brand-toggle ml-auto inline-flex h-7 w-7 items-center justify-center rounded-md text-[var(--app-shell-soft-text)] transition-all hover:bg-[var(--app-shell-subtle)] hover:text-[var(--foreground)]",children:(0,t.jsx)(p,{className:"h-4 w-4",strokeWidth:1.75})})]}),(0,t.jsxs)("div",{className:"workspace-sidebar__content",children:[F&&(0,t.jsx)("div",{className:"px-3 pt-2 pb-1",children:(0,t.jsxs)("button",{type:"button",onClick:F,className:"flex h-8 w-full items-center gap-2 rounded-lg border border-[var(--app-shell-border)] bg-[var(--app-shell-elevated)] px-2.5 text-xs text-[var(--app-shell-soft-text)] transition-all hover:border-[var(--app-shell-border-strong)] hover:text-[var(--app-shell-muted)]",children:[(0,t.jsx)(f.Search,{className:"h-3.5 w-3.5 shrink-0",strokeWidth:1.75}),(0,t.jsx)("span",{children:"Search..."}),(0,t.jsx)("kbd",{className:"ml-auto rounded border border-[var(--app-shell-border)] bg-[var(--app-shell-subtle)] px-1 py-0.5 font-sans text-[10px] font-medium text-[var(--app-shell-soft-text)]",children:"⌘K"})]})}),(0,t.jsx)("nav",{className:"workspace-sidebar__section",style:{gap:0},children:(0,t.jsxs)(j.default,{href:"/agents",className:"workspace-sidebar__nav-item",children:[(0,t.jsx)(l,{size:14,className:"flex-shrink-0"}),"Manage Agents"]})}),(0,t.jsxs)("nav",{className:"workspace-sidebar__section",children:[(0,t.jsxs)("div",{className:"workspace-sidebar__section-header group/projects-header",children:[(0,t.jsx)("p",{className:"workspace-sidebar__section-label",children:"Projects"}),(0,t.jsx)("div",{className:"workspace-sidebar__header-actions",children:(0,t.jsx)("button",{type:"button",className:"workspace-sidebar__action opacity-0 transition-opacity group-hover/projects-header:opacity-100",onClick:()=>{em.resetForm(),ep(null),ec({})},"aria-label":"Create project",title:"Create project",children:(0,t.jsx)(h.Plus,{size:14})})})]}),eL.map(e=>{let r=et.has(e.id),a=eI.filter(t=>e.thread_ids?.includes(t.id)),l=e.id===q,p=e.thread_ids?.find(e=>eM.has(e))??e.thread_ids?.[0]??a[0]?.id??null,f=l&&"thread"===X&&p===w,g=l&&"automations"===X,k=l&&"linear"===X;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"workspace-sidebar__workspace-item group",children:[(0,t.jsxs)("div",{className:"workspace-sidebar__nav-item workspace-sidebar__workspace-nav-item",children:[(0,t.jsx)("button",{type:"button",className:"inline-flex items-center justify-center rounded-sm text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)]",onClick:()=>{var t;return t=e.id,void er(e=>{let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r})},"aria-label":r?`Collapse ${e.name}`:`Expand ${e.name}`,title:r?"Collapse project":"Expand project",children:r?(0,t.jsx)(s.ChevronDown,{size:14,className:"flex-shrink-0"}):(0,t.jsx)(n.ChevronRight,{size:14,className:"flex-shrink-0"})}),(0,t.jsx)(c.Folder,{size:12,className:"flex-shrink-0 text-[var(--muted-foreground)]"}),(0,t.jsx)("span",{className:"workspace-sidebar__workspace-title",children:e.name})]}),(0,t.jsxs)("div",{className:"workspace-sidebar__workspace-actions",children:[(0,t.jsx)("button",{type:"button",className:"workspace-sidebar__workspace-action",onClick:()=>void eS(e.id),"aria-label":`Open project settings for ${e.name}`,title:"Project settings",children:(0,t.jsx)(m.Pencil,{size:12})}),(0,t.jsx)("button",{type:"button",className:"workspace-sidebar__workspace-action workspace-sidebar__workspace-action--delete",onClick:()=>{var t;let r;return t=e.id,r=z.find(e=>e.id===t),void eb({title:"Delete project",message:`Delete "${r?.name??"project"}"? Its agents will move to the Default project.`,onConfirm:()=>void U?.(t)})},"aria-label":`Delete project ${e.name}`,title:`Delete project ${e.name}`,children:(0,t.jsx)(x.Trash2,{size:12})})]})]}),r&&(0,t.jsxs)("div",{className:"ml-4 my-1 flex flex-col gap-0.5 border-l border-[var(--app-shell-border)] pl-3",children:[(0,t.jsxs)("div",{className:"workspace-sidebar__workspace-item group/linear flex items-center",children:[(0,t.jsxs)(j.default,{href:`/projects/${e.slug}/linear`,className:`workspace-sidebar__nav-item flex-1 ${k?"workspace-sidebar__nav-item--active":""}`,"aria-current":k?"page":void 0,children:[(0,t.jsx)(b.ExternalLink,{size:12,className:"flex-shrink-0 text-[var(--muted-foreground)]"}),(0,t.jsx)("span",{className:"workspace-sidebar__workspace-title text-xs",children:"Linear"})]}),(0,t.jsx)(j.default,{href:`/projects/${e.slug}/linear?settings=true`,className:"flex h-5 w-5 items-center justify-center rounded opacity-0 group-hover/linear:opacity-100 hover:bg-[var(--sidebar-hover)] transition-opacity",title:"Linear settings",children:(0,t.jsx)(v.Settings,{size:11,className:"text-[var(--muted-foreground)]"})})]}),(0,t.jsx)("div",{className:"workspace-sidebar__workspace-item",children:(0,t.jsxs)(j.default,{href:`/projects/${e.slug}/automations`,className:`workspace-sidebar__nav-item ${g?"workspace-sidebar__nav-item--active":""}`,"aria-current":g?"page":void 0,children:[(0,t.jsx)(d.Zap,{size:12,className:"flex-shrink-0 text-[var(--muted-foreground)]"}),(0,t.jsx)("span",{className:"workspace-sidebar__workspace-title text-xs",children:"Scheduled Tasks"})]})}),(0,t.jsx)("div",{className:"workspace-sidebar__workspace-item",children:p?(0,t.jsxs)("button",{type:"button",className:`workspace-sidebar__nav-item ${f?"workspace-sidebar__nav-item--active":""}`,onClick:()=>C(p),"aria-current":f?"page":void 0,children:[(0,t.jsx)(o.Hash,{size:12,className:"flex-shrink-0 text-[var(--muted-foreground)]"}),(0,t.jsx)("span",{className:"workspace-sidebar__workspace-title text-xs",children:"Chat"})]}):(0,t.jsxs)("button",{type:"button",className:"workspace-sidebar__nav-item",onClick:ez,children:[(0,t.jsx)(o.Hash,{size:12,className:"flex-shrink-0 text-[var(--muted-foreground)]"}),(0,t.jsx)("span",{className:"workspace-sidebar__workspace-title text-xs",children:"Chat"})]})}),(0,t.jsxs)("div",{className:"pt-1",children:[(0,t.jsxs)("div",{className:"group/repos-header flex items-center justify-between px-3 py-1",children:[(0,t.jsx)("p",{className:"text-[10px] font-medium text-[var(--muted-foreground)] uppercase tracking-wide",children:"Folders"}),(0,t.jsx)("button",{type:"button",className:"workspace-sidebar__action opacity-0 transition-opacity group-hover/repos-header:opacity-100 text-[var(--muted-foreground)] hover:text-white",onClick:()=>ew({projectId:e.id,projectName:e.name,repoId:null,name:"",path:"",gitUrl:"",notes:"",generatedKnowledge:[],isLoadingKnowledge:!1,isSaving:!1,error:null}),"aria-label":"Add folder",title:"Add folder",children:(0,t.jsx)(h.Plus,{size:12})})]}),e.repos.length>0?e.repos.map(r=>(0,t.jsxs)("div",{className:"workspace-sidebar__workspace-item group/repo flex items-center",children:[(0,t.jsxs)("button",{type:"button",className:"workspace-sidebar__nav-item min-w-0 flex-1 text-left",onClick:()=>ew({projectId:e.id,projectName:e.name,repoId:r.id,name:r.name,path:r.path||"",gitUrl:r.git_url||"",notes:r.notes||"",generatedKnowledge:[],isLoadingKnowledge:!0,isSaving:!1,error:null}),children:[(0,t.jsx)(u.FolderGit2,{size:12,className:"flex-shrink-0 text-[var(--muted-foreground)] ml-2"}),(0,t.jsx)("span",{className:"workspace-sidebar__workspace-title text-xs truncate",children:r.name})]}),(0,t.jsx)("button",{type:"button",className:"workspace-sidebar__action opacity-0 group-hover/repo:opacity-100 transition-opacity flex-shrink-0 text-[var(--muted-foreground)] hover:text-red-400",onClick:async t=>{t.stopPropagation();let a=e.repos.filter(e=>e.id!==r.id).map(e=>({id:e.id,name:e.name,path:e.path,git_url:e.git_url,notes:e.notes}));await R?.(e.id,{repos:a})},"aria-label":"Delete folder",title:"Delete folder",children:(0,t.jsx)(x.Trash2,{size:12})})]},`${e.id}:${r.name}:${r.path??""}`)):(0,t.jsx)("p",{className:"px-3 py-1 text-[11px] text-[var(--muted-foreground)]",children:"No folders"})]}),(0,t.jsxs)("div",{className:"pt-1",children:[(0,t.jsxs)("div",{className:"group/agents-header flex items-center justify-between px-3 py-1",children:[(0,t.jsx)("p",{className:"text-[10px] font-medium text-[var(--muted-foreground)] uppercase tracking-wide",children:"Agents"}),e.agents.length>0&&(0,t.jsx)("button",{type:"button",className:"workspace-sidebar__action opacity-0 transition-opacity group-hover/agents-header:opacity-100 text-[var(--muted-foreground)] hover:text-white",onClick:()=>eP(e.id),"aria-label":"Add agents",title:"Add agents",children:(0,t.jsx)(h.Plus,{size:12})})]}),e.agents.length>0?(0,t.jsx)(t.Fragment,{children:e.agents.map((r,a)=>{let s=i.find(e=>e.id===r.agent_id),n=eN?.projectId===e.id&&eN?.agentId===r.agent_id,o=eN?.projectId===e.id&&eN?.overIndex===a&&!n;return(0,t.jsx)("div",{draggable:!0,onDragStart:t=>{t.dataTransfer.effectAllowed="move",e_({projectId:e.id,agentId:r.agent_id,overIndex:a})},onDragOver:t=>{t.preventDefault(),eN&&eN.projectId===e.id&&e_(e=>e?{...e,overIndex:a}:null)},onDragEnd:()=>{if(eN&&eN.projectId===e.id&&H){let t=e.agents.map(e=>e.agent_id),r=t.indexOf(eN.agentId),a=eN.overIndex;if(-1!==r&&r!==a){let s=[...t],[n]=s.splice(r,1);s.splice(a,0,n),H(e.id,s)}}e_(null)},className:`group/agent flex items-center ${o?"border-t-2 border-[var(--border)]":"border-t-2 border-transparent"} ${n?"opacity-40":""}`,children:(0,t.jsxs)("button",{type:"button",className:"workspace-sidebar__nav-item flex-1 min-w-0 !py-1",onClick:()=>ej(r.agent_id),children:[(0,t.jsx)("span",{className:`cursor-grab text-[var(--muted-foreground)] hover:text-[var(--muted-foreground)] flex-shrink-0 mr-0.5 transition-opacity ${0===a?"opacity-100":"opacity-0 group-hover/agent:opacity-100"}`,title:"Drag to reorder",children:"⠿"}),(0,t.jsx)("img",{src:(0,y.agentAvatarUrl)(r.agent_id,16,s?.color),alt:"",className:"w-4 h-4 rounded-full flex-shrink-0"}),(0,t.jsx)("span",{className:"workspace-sidebar__workspace-title text-xs truncate",children:s?.name??r.agent_id}),0===a&&(0,t.jsx)("span",{className:"ml-auto text-[9px] text-[var(--muted-foreground)] font-medium flex-shrink-0",title:"Default responder (top agent responds first)",children:"DEFAULT"})]})},r.agent_id)})}):(0,t.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 px-3 py-1 text-[11px] font-medium text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)]",onClick:()=>eP(e.id),children:[(0,t.jsx)(h.Plus,{size:10}),(0,t.jsx)("span",{children:"Add agents"})]})]})]})]},e.id)}),eF.length>0&&(0,t.jsxs)("div",{className:"pt-3",children:[(0,t.jsx)("p",{className:"px-1 py-1 text-[10px] font-medium text-[var(--muted-foreground)] uppercase tracking-wide",children:"Unassigned Threads"}),eF.map(e=>{let r=e.id===w,a=e.title?.trim()||"Untitled thread";return(0,t.jsx)("div",{className:"workspace-sidebar__workspace-item group",children:(0,t.jsxs)("button",{type:"button",className:`workspace-sidebar__nav-item workspace-sidebar__workspace-nav-item ${r?"workspace-sidebar__nav-item--active workspace-sidebar__workspace-nav-item--active":""}`,onClick:()=>C(e.id),"aria-current":r?"page":void 0,children:[(0,t.jsx)(o.Hash,{size:12,className:"flex-shrink-0 text-[var(--muted-foreground)]"}),(0,t.jsx)("span",{className:"workspace-sidebar__workspace-title",children:a})]})},e.id)})]})]})]}),(0,t.jsx)("div",{className:"mt-auto px-3 pb-3",children:(0,t.jsxs)("a",{href:"https://discord.gg/G9afUYKKY3",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full py-2 rounded-lg text-white text-sm font-medium transition-colors",style:{backgroundColor:"#5865F2"},onMouseEnter:e=>e.currentTarget.style.backgroundColor="#4752C4",onMouseLeave:e=>e.currentTarget.style.backgroundColor="#5865F2",children:[(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 71 55",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M60.1 4.9A58.5 58.5 0 0045.4.2a.2.2 0 00-.2.1 40.8 40.8 0 00-1.8 3.7 54 54 0 00-16.2 0A37.4 37.4 0 0025.4.3a.2.2 0 00-.2-.1A58.4 58.4 0 0010.5 4.9a.2.2 0 00-.1.1C1.5 18.7-.9 32.2.3 45.5v.1a58.8 58.8 0 0017.7 9a.2.2 0 00.3-.1 42 42 0 003.6-5.9.2.2 0 00-.1-.3 38.8 38.8 0 01-5.5-2.6.2.2 0 01 0-.4l1.1-.9a.2.2 0 01.2 0 42 42 0 0035.6 0 .2.2 0 01.2 0l1.1.9a.2.2 0 010 .4 36.4 36.4 0 01-5.5 2.6.2.2 0 00-.1.3 47.2 47.2 0 003.6 5.9.2.2 0 00.3.1 58.6 58.6 0 0017.7-9v-.1c1.4-15.2-2.4-28.4-10-40.1a.2.2 0 00-.1-.1zM23.7 37.3c-3.5 0-6.3-3.2-6.3-7s2.8-7 6.3-7 6.4 3.2 6.3 7-2.8 7-6.3 7zm23.3 0c-3.5 0-6.3-3.2-6.3-7s2.8-7 6.3-7 6.4 3.2 6.3 7-2.8 7-6.3 7z"})}),"Join Discord"]})}),Q&&ek&&(0,a.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/30 p-4",onClick:()=>{ek.isSaving||ew(null)},children:(0,t.jsxs)("div",{className:"w-full max-w-lg rounded-2xl border border-[var(--border)] bg-[var(--card-bg)] shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4 border-b border-[var(--border)] px-5 py-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--muted-foreground)]",children:ek.projectName}),(0,t.jsx)("h3",{className:"truncate text-base font-semibold text-[var(--foreground)]",children:ek.repoId?ek.name||"Folder":"Add Folder"})]}),(0,t.jsx)("button",{type:"button",className:"rounded-md p-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--muted-foreground)]",onClick:()=>{ek.isSaving||ew(null)},"aria-label":"Close folder details",disabled:ek.isSaving,children:(0,t.jsx)(g.X,{size:16})})]}),(0,t.jsxs)("div",{className:"space-y-4 px-5 py-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--muted-foreground)]",children:"Name"}),(0,t.jsx)("input",{value:ek.name,onChange:e=>ew(t=>t?{...t,name:e.target.value,error:null}:t),className:"w-full rounded-lg border border-[var(--border)] bg-[var(--app-shell-subtle)] px-3 py-2 text-sm text-[var(--foreground)]",disabled:ek.isSaving,placeholder:"e.g. Frontend, API Docs, Design System"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--muted-foreground)]",children:"Path"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{value:ek.path,onChange:e=>ew(t=>t?{...t,path:e.target.value,error:null}:t),className:"flex-1 rounded-lg border border-[var(--border)] bg-[var(--app-shell-subtle)] px-3 py-2 font-mono text-xs text-[var(--foreground)]",disabled:ek.isSaving,placeholder:"Local path to folder"}),(0,t.jsx)("button",{type:"button",className:"rounded-lg border border-[var(--border)] bg-[var(--app-shell-subtle)] px-3 py-2 text-xs font-medium text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)]",disabled:ek.isSaving,onClick:async()=>{try{let e=await fetch("/api/filesystem/pick-folder",{method:"POST"}),t=await e.json();t.path&&ew(e=>e?{...e,path:t.path,error:null}:e)}catch{}},children:"Browse"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--muted-foreground)]",children:"Notes"}),(0,t.jsx)("textarea",{value:ek.notes,onChange:e=>ew(t=>t?{...t,notes:e.target.value,error:null}:t),className:"min-h-28 w-full rounded-lg border border-[var(--border)] bg-[var(--app-shell-subtle)] px-3 py-3 text-sm text-[var(--foreground)] whitespace-pre-wrap",disabled:ek.isSaving,placeholder:"Coding conventions, deploy steps, doc standards, ownership rules..."})]}),ek.repoId?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--muted-foreground)]",children:"Living Note"}),ek.isLoadingKnowledge?(0,t.jsx)("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Loading note…"}):ek.generatedKnowledge.length>0?(0,t.jsx)("div",{className:"space-y-2",children:ek.generatedKnowledge.slice(0,5).map(e=>(0,t.jsxs)("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--app-shell-subtle)] px-3 py-2 text-sm text-[var(--foreground)]",children:[(0,t.jsx)("div",{children:e.content}),e.created_at?(0,t.jsx)("div",{className:"mt-1 text-[11px] text-[var(--muted-foreground)]",children:new Date(e.created_at).toLocaleString()}):null]},e.id))}):(0,t.jsx)("p",{className:"text-sm text-[var(--muted-foreground)]",children:"No note yet."})]}):null,ek.error?(0,t.jsx)("p",{className:"text-xs text-red-600",children:ek.error}):null,(0,t.jsxs)("div",{className:"flex justify-end gap-2 border-t border-[var(--border)] pt-4",children:[(0,t.jsx)("button",{type:"button",className:"rounded-lg px-3 py-2 text-sm text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)]",onClick:()=>ew(null),disabled:ek.isSaving,children:"Cancel"}),(0,t.jsx)("button",{type:"button",className:"rounded-lg bg-[var(--foreground)] px-3 py-2 text-sm font-medium text-[var(--card-bg)] transition-colors hover:bg-[var(--foreground)] disabled:cursor-not-allowed disabled:opacity-60",disabled:ek.isSaving||!R,onClick:async()=>{let e=z.find(e=>e.id===ek.projectId);if(!e)return void ew(e=>e?{...e,error:"Project not found."}:e);let t=ek.name.trim(),r=ek.path.trim();if(!t)return void ew(e=>e?{...e,error:"Folder name is required."}:e);if(!r)return void ew(e=>e?{...e,error:"Folder path is required."}:e);ew(e=>e?{...e,isSaving:!0,error:null}:e);try{let a=ek.repoId?e.repos.map(e=>e.id===ek.repoId?{id:e.id,name:t,path:r,git_url:ek.gitUrl.trim()||void 0,notes:ek.notes.trim()||void 0}:{id:e.id,name:e.name,path:e.path,git_url:e.git_url,notes:e.notes}):[...e.repos.map(e=>({id:e.id,name:e.name,path:e.path,git_url:e.git_url,notes:e.notes})),{name:t,path:r,git_url:ek.gitUrl.trim()||void 0,notes:ek.notes.trim()||void 0}];await R?.(e.id,{repos:a}),ew(null)}catch(e){ew(t=>t?{...t,isSaving:!1,error:e instanceof Error?e.message:"Failed to save folder details."}:t)}},children:ek.isSaving?"Saving...":ek.repoId?"Save":"Add Folder"})]})]})]})}),document.body),Q&&ea&&!ei&&(0,a.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/30",onClick:()=>es(null),children:(0,t.jsxs)("div",{className:"bg-[var(--card-bg)] rounded-xl shadow-xl border border-[var(--border)] w-80 max-h-[70vh] flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[var(--border)]",children:[(0,t.jsxs)("h3",{className:"text-sm font-medium text-[var(--foreground)]",children:["Add to ",eE?.name??"project"]}),(0,t.jsx)("button",{type:"button",className:"text-[var(--muted-foreground)] hover:text-[var(--muted-foreground)]",onClick:()=>es(null),children:(0,t.jsx)(g.X,{size:16})})]}),(0,t.jsxs)("div",{className:"overflow-y-auto py-1 flex-1",children:[(0,t.jsxs)("button",{type:"button",className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-[var(--foreground)] hover:bg-[var(--app-shell-subtle)] transition-colors border-b border-[var(--border)]",onClick:()=>el(!0),children:[(0,t.jsx)(h.Plus,{size:14,className:"text-[var(--muted-foreground)]"}),(0,t.jsx)("span",{className:"text-xs font-medium",children:"Create new agent"})]}),0===eT.length?(0,t.jsx)("p",{className:"px-4 py-6 text-xs text-[var(--muted-foreground)] text-center",children:"All agents are already in this project"}):eT.map(e=>{let r=en.has(e.id);return(0,t.jsxs)("button",{type:"button",className:`w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ${r?"bg-[var(--muted)] text-[var(--foreground)]":"text-[var(--foreground)] hover:bg-[var(--app-shell-subtle)]"}`,onClick:()=>{eo(t=>{let r=new Set(t);return r.has(e.id)?r.delete(e.id):r.add(e.id),r})},children:[(0,t.jsx)("div",{className:`w-4 h-4 rounded border flex-shrink-0 flex items-center justify-center ${r?"bg-[var(--foreground)] border-[var(--foreground)]":"border-[var(--border)]"}`,children:r&&(0,t.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:(0,t.jsx)("path",{d:"M2 5l2 2 4-4",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("img",{src:(0,y.agentAvatarUrl)(e.id,24,e.color),alt:"",className:"w-6 h-6 rounded-full flex-shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 text-left",children:[(0,t.jsx)("div",{className:"truncate font-medium text-xs",children:e.name}),(0,t.jsx)("div",{className:"truncate text-[11px] text-[var(--muted-foreground)]",children:e.model})]})]},e.id)})]}),eT.length>0&&(0,t.jsxs)("div",{className:"px-4 py-3 border-t border-[var(--border)] flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",className:"px-3 py-1.5 text-xs text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",onClick:()=>es(null),children:"Cancel"}),(0,t.jsxs)("button",{type:"button",disabled:0===en.size,className:"px-3 py-1.5 text-xs font-medium text-[var(--card-bg)] bg-[var(--foreground)] rounded-lg hover:bg-[var(--foreground)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",onClick:()=>{for(let e of en)B?.(ea.projectId,e);es(null)},children:["Add ",en.size>0?`(${en.size})`:""]})]})]})}),document.body),Q&&ei&&(0,a.createPortal)((0,t.jsx)(y.AgentForm,{title:"Create new agent",initial:{name:"",provider:"claude",model:"",identity:"",skills:[],skillBindings:[]},submitLabel:"Create & Add",projects:z?.filter(e=>!e.is_default).map(t=>{let r=(t.thread_ids??[]).map(t=>e.find(e=>e.id===t)?.title?.trim()).filter(Boolean).join(", ")||"No chat";return{id:t.id,name:t.name,label:`${r} › ${t.name}`}}),initialProjectIds:ea?[ea.projectId]:[],onSubmit:async(e,t)=>{let r=["#D97706","#2563EB","#059669","#DC2626","#7C3AED","#DB2777","#0891B2"],a=r[i.length%r.length],s=e.name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),n=t?.[0],o=await fetch("/api/participants",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s,name:e.name,provider:e.provider,model:e.model,color:e.color??a,...e.title?{title:e.title}:{},...e.identity?{identity:e.identity}:{},skills:e.skills??[],skillBindings:e.skillBindings??[],...n?{projectId:n}:{}})});if(o.ok){let e=await o.json().catch(()=>({})),r="string"==typeof e?.id&&e.id.trim()?e.id.trim():s;for(let e of(t??[]).slice(1))B?.(e,r);el(!1),es(null)}},onCancel:()=>{el(!1)}}),document.body),Q&&eh&&(0,a.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/30",onClick:()=>ef(null),children:(0,t.jsxs)("div",{className:"bg-[var(--card-bg)] rounded-xl shadow-xl border border-[var(--border)] w-80 flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[var(--border)]",children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-[var(--foreground)]",children:eh.title}),(0,t.jsx)("button",{type:"button",className:"text-[var(--muted-foreground)] hover:text-[var(--muted-foreground)]",onClick:()=>ef(null),children:(0,t.jsx)(g.X,{size:16})})]}),(0,t.jsxs)("form",{className:"px-4 py-4 flex flex-col gap-3",onSubmit:e=>{e.preventDefault();let t=new FormData(e.currentTarget),r=t.get("value")?.trim();r&&(eh.onSubmit(r),ef(null))},children:[(0,t.jsx)("input",{ref:ex,name:"value",type:"text",defaultValue:eh.defaultValue,placeholder:eh.placeholder,className:"w-full px-3 py-2 text-sm border border-[var(--border)] rounded-lg outline-none focus:border-[var(--border)] focus:ring-1 focus:ring-[var(--border)] transition-all"}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",className:"px-3 py-1.5 text-xs text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",onClick:()=>ef(null),children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:"px-3 py-1.5 text-xs font-medium text-[var(--card-bg)] bg-[var(--foreground)] rounded-lg hover:bg-[var(--foreground)] transition-colors",children:eh.defaultValue?"Save":"Create"})]})]})]})}),document.body),Q&&eg&&(0,a.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/30",onClick:()=>eb(null),children:(0,t.jsxs)("div",{className:"bg-[var(--card-bg)] rounded-xl shadow-xl border border-[var(--border)] w-80 flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[var(--border)]",children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-[var(--foreground)]",children:eg.title}),(0,t.jsx)("button",{type:"button",className:"text-[var(--muted-foreground)] hover:text-[var(--muted-foreground)]",onClick:()=>eb(null),children:(0,t.jsx)(g.X,{size:16})})]}),(0,t.jsxs)("div",{className:"px-4 py-4 flex flex-col gap-4",children:[(0,t.jsx)("p",{className:"text-sm text-[var(--muted-foreground)]",children:eg.message}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",className:"px-3 py-1.5 text-xs text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",onClick:()=>eb(null),children:"Cancel"}),(0,t.jsx)("button",{type:"button",className:"px-3 py-1.5 text-xs font-medium text-white bg-red-600 rounded-lg hover:bg-red-700 transition-colors",onClick:()=>{eg.onConfirm(),eb(null)},children:"Delete"})]})]})]})}),document.body),Q&&(ed||eu)&&(0,a.createPortal)((0,t.jsx)(k.default,{isOpen:!0,onClose:()=>{em.resetForm(),ec(null),ep(null)},onSubmit:()=>void eC(),editingProject:eu,form:em.form,repos:em.repos,isSubmitting:em.isSubmitting,formError:em.formError,onFieldChange:(e,t)=>em.setForm(r=>({...r,[e]:t})),onRepoChange:em.handleRepoChange,onAddRepo:em.addRepo,onRemoveRepo:em.removeRepo}),document.body),Q&&ey&&(0,a.createPortal)((G=z.filter(e=>e.agents.some(e=>e.agent_id===ey.id)),Z=z.filter(e=>!e.agents.some(e=>e.agent_id===ey.id)),(0,t.jsx)(y.AgentForm,{title:"Edit agent",initial:{name:ey.name,title:ey.title||"",provider:ey.provider,model:ey.model||"",identity:ey.identity||"",color:ey.color,skills:ey.skills||[],skillBindings:ey.skillBindings||[]},agentId:ey.id,submitLabel:"Save",projectMemberships:{current:G.map(e=>({id:e.id,name:e.name,is_default:!!e.is_default})),available:Z.map(e=>({id:e.id,name:e.name}))},onAddToProject:B?e=>B(e,ey.id):void 0,onRemoveFromProject:K?e=>K(e,ey.id):void 0,onSubmit:async e=>{W&&await W({...ey,name:e.name,title:e.title||void 0,provider:e.provider,model:e.model,color:e.color??ey.color,...e.identity?{identity:e.identity}:{},skills:e.skills??[],skillBindings:e.skillBindings??[]}),ej(null)},onCancel:()=>ej(null)})),document.body)]}):(0,t.jsxs)("aside",{id:"workspace-sidebar",className:"workspace-sidebar workspace-sidebar--collapsed","aria-label":"Workspace sidebar",children:[(0,t.jsx)("div",{className:"workspace-sidebar__brand",children:(0,t.jsx)("button",{type:"button",onClick:L,className:"workspace-sidebar__brand-icon border-none outline-none cursor-pointer","aria-label":"Show chats",title:"Show chats",children:(0,t.jsx)("span",{className:"text-[10px]",children:"AGX"})})}),(0,t.jsx)("div",{className:"mt-auto p-2",children:(0,t.jsx)("a",{href:"https://discord.gg/G9afUYKKY3",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-8 h-8 rounded-lg text-white transition-colors",style:{backgroundColor:"#5865F2"},onMouseEnter:e=>e.currentTarget.style.backgroundColor="#4752C4",onMouseLeave:e=>e.currentTarget.style.backgroundColor="#5865F2",title:"Join Discord",children:(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 71 55",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M60.1 4.9A58.5 58.5 0 0045.4.2a.2.2 0 00-.2.1 40.8 40.8 0 00-1.8 3.7 54 54 0 00-16.2 0A37.4 37.4 0 0025.4.3a.2.2 0 00-.2-.1A58.4 58.4 0 0010.5 4.9a.2.2 0 00-.1.1C1.5 18.7-.9 32.2.3 45.5v.1a58.8 58.8 0 0017.7 9a.2.2 0 00.3-.1 42 42 0 003.6-5.9.2.2 0 00-.1-.3 38.8 38.8 0 01-5.5-2.6.2.2 0 01 0-.4l1.1-.9a.2.2 0 01.2 0 42 42 0 0035.6 0 .2.2 0 01.2 0l1.1.9a.2.2 0 010 .4 36.4 36.4 0 01-5.5 2.6.2.2 0 00-.1.3 47.2 47.2 0 003.6 5.9.2.2 0 00.3.1 58.6 58.6 0 0017.7-9v-.1c1.4-15.2-2.4-28.4-10-40.1a.2.2 0 00-.1-.1zM23.7 37.3c-3.5 0-6.3-3.2-6.3-7s2.8-7 6.3-7 6.4 3.2 6.3 7-2.8 7-6.3 7zm23.3 0c-3.5 0-6.3-3.2-6.3-7s2.8-7 6.3-7 6.4 3.2 6.3 7-2.8 7-6.3 7z"})})})})]})}e.s(["WorkspaceSidebar",()=>w],268542);let N="agx-chat:uiSettings",_={threadSidebarVisible:!1};function C(){return void 0!==window.localStorage}function S(){if(!C())return{..._};let e=window.localStorage.getItem(N);if(!e)return{..._};try{let t=JSON.parse(e);return{..._,threadSidebarVisible:"boolean"==typeof t.threadSidebarVisible&&t.threadSidebarVisible}}catch{return{..._}}}function P(){return S().threadSidebarVisible}function E(e){var t={...S(),threadSidebarVisible:e};if(C())try{window.localStorage.setItem(N,JSON.stringify(t))}catch{}}e.s(["loadWorkspaceSidebarVisible",()=>P,"persistWorkspaceSidebarVisible",()=>E],154238)},239616,e=>{"use strict";let t=(0,e.i(475254).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",()=>t],239616)},274049,e=>{"use strict";var t=e.i(271645);function r(){let[e,r]=(0,t.useState)([]),[a,s]=(0,t.useState)(!1),[n,o]=(0,t.useState)(null),i=(0,t.useCallback)(async()=>{s(!0);try{let e=await fetch("/api/projects");if(!e.ok)throw Error("Failed to fetch projects");let t=await e.json();r(t.projects??[]),o(null)}catch(e){o(e instanceof Error?e:Error("Unknown error"))}finally{s(!1)}},[]);(0,t.useEffect)(()=>{i()},[i]);let l=(0,t.useCallback)(async e=>{let t=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error((await t.json().catch(()=>({}))).error||"Failed to create project");let a=(await t.json()).project;return r(e=>[a,...e]),a},[]);return{projects:e,isLoading:a,error:n,refetch:i,createProject:l,updateProject:(0,t.useCallback)(async(e,t)=>{let a=await fetch(`/api/projects/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok)throw Error((await a.json().catch(()=>({}))).error||"Failed to update project");let s=(await a.json()).project;return r(t=>t.map(t=>t.id===e?s:t)),s},[]),deleteProject:(0,t.useCallback)(async e=>{let t=await fetch(`/api/projects/${e}`,{method:"DELETE"});if(!t.ok)throw Error((await t.json().catch(()=>({}))).error||"Failed to delete project");r(t=>t.filter(t=>t.id!==e))},[])}}function a(){let[e,r]=(0,t.useState)([]),[a,s]=(0,t.useState)(!0),n=(0,t.useCallback)(async()=>{try{let e=await fetch("/api/projects");if(!e.ok)return;let{projects:t}=await e.json(),a=await Promise.all((t??[]).map(async e=>{let t=[],r=[];try{let[a,s]=await Promise.all([fetch(`/api/projects/${e.id}/agents`),fetch(`/api/projects/${e.id}/threads`)]);a.ok&&(t=(await a.json()).agents??[]),s.ok&&(r=((await s.json()).threads??[]).map(e=>e.thread_id))}catch{}return{...e,repos:e.repos??[],agents:t.map(t=>({project_id:e.id,agent_id:t.agent_id,routing_order:t.routing_order,created_at:t.created_at})),thread_ids:r,workspace_ids:r}}));r(a)}catch{}finally{s(!1)}},[]);(0,t.useEffect)(()=>{n()},[n]);let o=(0,t.useCallback)(async(e,t)=>{try{let a="string"==typeof e?{name:e}:e,s=a.name.trim(),n=(a.slug||s.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")).trim(),o=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,name:s,slug:n})});if(!o.ok)return null;let{project:i}=await o.json(),l=Array.isArray(t)?t:t?[t]:[];for(let e of l)await fetch(`/api/projects/${i.id}/threads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({threadId:e})}).catch(()=>{});let d={...i,repos:i.repos??[],agents:[],thread_ids:l,workspace_ids:l};return r(e=>[...e,d].sort((e,t)=>e.name.localeCompare(t.name))),d}catch{return null}},[]),i=(0,t.useCallback)(async(e,t)=>{try{if(!(await fetch(`/api/projects/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t})})).ok)return;r(r=>r.map(r=>r.id===e?{...r,name:t}:r).sort((e,t)=>e.name.localeCompare(t.name)))}catch{}},[]),l=(0,t.useCallback)(async e=>{try{if(!(await fetch(`/api/projects/${e}`,{method:"DELETE"})).ok)return;r(t=>t.filter(t=>t.id!==e))}catch{}},[]),d=(0,t.useCallback)(async(e,t)=>{try{let a=await fetch(`/api/projects/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok){let e=await a.json().catch(()=>({}));throw Error(e.error||"Failed to update project")}let s=(await a.json()).project;return r(t=>t.map(t=>t.id===e?{...t,...s,repos:s.repos??t.repos}:t)),s}catch{return null}},[]),c=(0,t.useCallback)(async(e,t)=>{try{let a=await fetch(`/api/projects/${e}/agents`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:t})});if(!a.ok)return;let s=((await a.json()).agents??[]).map(t=>({project_id:e,agent_id:t.agent_id,routing_order:t.routing_order,created_at:t.created_at}));r(t=>t.map(t=>t.id===e?{...t,agents:s}:t))}catch{}},[]),u=(0,t.useCallback)(async(e,t)=>{try{let a=await fetch(`/api/projects/${e}/agents?agentId=${t}`,{method:"DELETE"});if(!a.ok)return;let s=((await a.json()).agents??[]).map(t=>({project_id:e,agent_id:t.agent_id,routing_order:t.routing_order,created_at:t.created_at}));r(t=>t.map(t=>t.id===e?{...t,agents:s}:t))}catch{}},[]);return{projects:e,isLoading:a,createProject:o,updateProject:d,renameProject:i,deleteProject:l,addAgent:c,removeAgent:u,reorderAgents:(0,t.useCallback)(async(e,t)=>{try{let a=await fetch(`/api/projects/${e}/agents`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderedAgentIds:t})});if(!a.ok)return;let s=((await a.json()).agents??[]).map(t=>({project_id:e,agent_id:t.agent_id,routing_order:t.routing_order,created_at:t.created_at}));r(t=>t.map(t=>t.id===e?{...t,agents:s}:t))}catch{}},[]),moveAgent:(0,t.useCallback)(async(e,t,r)=>{try{await fetch(`/api/projects/${t}/agents?agentId=${e}`,{method:"DELETE"}),await fetch(`/api/projects/${r}/agents`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:e})}),await n()}catch{}},[n]),refresh:n}}e.s(["useProjects",()=>r,"useProjectsWithAgents",()=>a])},555436,e=>{"use strict";let t=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],555436)},778917,e=>{"use strict";let t=(0,e.i(475254).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",()=>t],778917)},811132,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function a({initialPath:e,onSelect:a,onCancel:s}){let[n,o]=(0,r.useState)(e||""),[i,l]=(0,r.useState)(null),[d,c]=(0,r.useState)(!1),[u,p]=(0,r.useState)(null),m=(0,r.useRef)(null),h=(0,r.useCallback)(async e=>{c(!0),p(null);try{let t=e?`?path=${encodeURIComponent(e)}`:"",r=await fetch(`/api/filesystem/browse${t}`),a=await r.json();if(!r.ok)return void p(a.error||"Failed to browse");l(a),o(a.current),m.current?.scrollTo(0,0)}catch{p("Failed to connect")}finally{c(!1)}},[]);return(0,r.useEffect)(()=>{h(e||"")},[]),(0,t.jsxs)("div",{className:"rounded-xl border border-[var(--card-border)] bg-[var(--card-bg)] overflow-hidden shadow-lg",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-[var(--card-border)] bg-[var(--muted)]/30",children:[(0,t.jsx)("input",{value:n,onChange:e=>o(e.target.value),onKeyDown:e=>{"Enter"===e.key&&h(n)},className:"input text-xs flex-1 py-1",placeholder:"Enter path..."}),(0,t.jsx)("button",{type:"button",onClick:()=>h(n),className:"text-[10px] font-bold uppercase tracking-wider text-[var(--primary)] hover:underline px-2 py-1 shrink-0",children:"Go"})]}),(0,t.jsxs)("div",{ref:m,className:"max-h-48 overflow-y-auto",children:[d&&(0,t.jsx)("div",{className:"px-3 py-4 text-xs text-[var(--muted-foreground)] text-center",children:"Loading..."}),u&&(0,t.jsx)("div",{className:"px-3 py-4 text-xs text-[var(--destructive)] text-center",children:u}),!d&&i&&(0,t.jsxs)("div",{className:"py-1",children:[i.parent&&(0,t.jsxs)("button",{type:"button",onClick:()=>h(i.parent),className:"w-full text-left px-3 py-1.5 text-sm hover:bg-[var(--muted)]/50 transition-colors flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[var(--muted-foreground)]",children:"↑"}),(0,t.jsx)("span",{className:"text-[var(--muted-foreground)]",children:".."})]}),0===i.dirs.length&&!i.parent&&(0,t.jsx)("div",{className:"px-3 py-3 text-xs text-[var(--muted-foreground)] text-center",children:"No subdirectories"}),i.dirs.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>h(e.path),className:"w-full text-left px-3 py-1.5 text-sm hover:bg-[var(--muted)]/50 transition-colors flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[var(--muted-foreground)]",children:"📁"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]},e.path))]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-t border-[var(--card-border)] bg-[var(--muted)]/30",children:[(0,t.jsx)("span",{className:"text-[10px] text-[var(--muted-foreground)] truncate max-w-[60%]",children:i?.current||n}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:s,className:"text-xs font-medium text-[var(--muted-foreground)] hover:underline px-2 py-1",children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:()=>a(i?.current||n),className:"text-xs font-bold text-[var(--primary)] hover:underline px-2 py-1",children:"Select"})]})]})]})}let s={name:"",description:""},n={name:"",path:"",notes:""};function o(){let[e,t]=(0,r.useState)(s),[a,o]=(0,r.useState)([n]),[i,l]=(0,r.useState)(!1),[d,c]=(0,r.useState)(null),u=(0,r.useCallback)((e,t,r)=>{o(a=>a.map((a,s)=>s===e?{...a,[t]:r}:a))},[]),p=(0,r.useCallback)(()=>{o(e=>[...e,{...n}])},[]),m=(0,r.useCallback)(e=>{o(t=>t.filter((t,r)=>r!==e))},[]),h=(0,r.useCallback)(()=>{t(s),o([n]),c(null)},[]),f=(0,r.useCallback)(e=>{t({name:e.name||"",description:e.description||""}),e.repos&&e.repos.length>0?o(e.repos.map(e=>({id:e.id,name:e.name||"",path:e.path||"",git_url:e.git_url||"",notes:e.notes||""}))):o([n]),c(null)},[]);return{form:e,setForm:t,repos:a,handleRepoChange:u,addRepo:p,removeRepo:m,resetForm:h,hydrateFromProject:f,isSubmitting:i,setIsSubmitting:l,formError:d,setFormError:c}}function i(e,t){let r=t.filter(e=>e.name.trim()&&e.path.trim()).map(e=>({...e.id?{id:e.id}:{},name:e.name.trim(),path:e.path.trim(),...e.git_url?.trim()?{git_url:e.git_url.trim()}:{},notes:e.notes.trim()||void 0}));return{name:e.name.trim(),description:e.description.trim()||void 0,repos:r.length?r:void 0}}function l({form:e,repos:s,isEditingProject:n,isSubmitting:o,onFieldChange:i,onRepoChange:l,onAddRepo:d,onRemoveRepo:c}){let[u,p]=(0,r.useState)([]),[m,h]=(0,r.useState)(null),f=(0,r.useRef)(0);(0,r.useEffect)(()=>{n?p([]):p(s.map((e,t)=>t)),f.current=s.length},[n,s.length]),(0,r.useEffect)(()=>{if(!n){f.current=s.length;return}let e=f.current;p(t=>{let r=t.filter(e=>e<s.length);return s.length>e&&r.push(...Array.from({length:s.length-e},(t,r)=>e+r)),r}),f.current=s.length},[n,s.length]);let x=(0,r.useCallback)(e=>{p(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),g=(0,r.useCallback)(e=>!n||u.includes(e),[u,n]);return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)("div",{className:"grid gap-4",children:(0,t.jsxs)("label",{className:"space-y-1.5 block",children:[(0,t.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider text-[var(--muted-foreground)]",children:"Project Name"}),(0,t.jsx)("input",{value:e.name,onChange:e=>i("name",e.target.value),className:"input w-full",placeholder:"e.g. AGX Cloud",disabled:o})]})}),(0,t.jsxs)("label",{className:"space-y-1.5 block",children:[(0,t.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider text-[var(--muted-foreground)]",children:"Description"}),(0,t.jsx)("textarea",{value:e.description,onChange:e=>i("description",e.target.value),className:"input w-full h-24 resize-none",placeholder:"What is this project about?",disabled:o})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-[var(--card-border)] pb-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-bold uppercase tracking-widest text-[var(--muted-foreground)]",children:"Folders"}),(0,t.jsx)("p",{className:"text-[11px] text-[var(--muted-foreground)] mt-0.5",children:"Code repos, doc folders, design assets, config directories — any path your team needs access to."})]}),(0,t.jsx)("button",{type:"button",onClick:d,className:"text-xs font-semibold text-[var(--primary)] hover:underline flex-shrink-0",disabled:o,children:"+ Add Folder"})]}),(0,t.jsx)("div",{className:"space-y-4",children:s.map((e,r)=>(0,t.jsxs)("div",{className:"p-4 rounded-2xl border border-[var(--card-border)] bg-[var(--muted)]/20 space-y-3 relative group",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-xs font-bold text-[var(--foreground)] uppercase",children:["Folder #",r+1]}),n&&!g(r)?(0,t.jsxs)("div",{className:"mt-1 text-sm text-[var(--muted-foreground)]",children:[(0,t.jsx)("div",{children:e.name||"Unnamed folder"}),(0,t.jsx)("div",{className:"truncate",children:e.path||"No local path set"})]}):null]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[n&&(0,t.jsx)("button",{type:"button",onClick:()=>x(r),className:"text-xs font-semibold text-[var(--primary)] hover:underline",disabled:o,children:g(r)?"Done":"Edit"}),s.length>1&&(0,t.jsx)("button",{type:"button",onClick:()=>c(r),className:"text-xs font-semibold text-[var(--destructive)] hover:underline",disabled:o,children:"Remove"})]})]}),g(r)?(0,t.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,t.jsx)("input",{value:e.name,onChange:e=>l(r,"name",e.target.value),placeholder:"Name (e.g. Frontend, API Docs, Design System)",className:"input text-sm",disabled:o}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{value:e.path,onChange:e=>l(r,"path",e.target.value),placeholder:"Local path to folder",className:"input text-sm flex-1",disabled:o}),(0,t.jsx)("button",{type:"button",onClick:async()=>{try{let e=await fetch("/api/filesystem/pick-folder",{method:"POST"}),t=await e.json();t.path&&l(r,"path",t.path)}catch{h(m===r?null:r)}},className:"px-3 py-2 rounded-xl border border-[var(--card-border)] bg-[var(--muted)]/30 hover:bg-[var(--muted)]/60 transition-colors text-xs font-semibold text-[var(--muted-foreground)] whitespace-nowrap",disabled:o,children:"Browse"})]}),m===r&&(0,t.jsx)("div",{className:"md:col-span-2",children:(0,t.jsx)(a,{initialPath:e.path||"",onSelect:e=>{l(r,"path",e),h(null)},onCancel:()=>h(null)})}),(0,t.jsx)("div",{className:"md:col-span-2",children:(0,t.jsx)("textarea",{value:e.notes,onChange:e=>l(r,"notes",e.target.value),placeholder:"Notes for this folder — e.g. coding conventions, deploy steps, ownership, doc standards...",className:"input text-sm w-full min-h-24 resize-y",disabled:o})})]}):null]},r))})]})]})}function d({isOpen:e,onClose:a,onSubmit:s,editingProject:n,form:o,repos:i,isSubmitting:d,formError:c,onFieldChange:u,onRepoChange:p,onAddRepo:m,onRemoveRepo:h}){let[f,x]=(0,r.useState)([]);return((0,r.useEffect)(()=>{let e=!1;return async function(){if(!n)return x([]);try{let t=await fetch(`/api/knowledge-notes?scope=project&subjectId=${encodeURIComponent(n.id)}`),r=(t.ok?await t.json():{note:null}).note;e||x(r?.content?[{id:r.id,content:r.content,created_at:r.updatedAt??r.createdAt,source:r.sourceType}]:[])}catch{e||x([])}}(),()=>{e=!0}},[n]),e)?(0,t.jsx)("div",{className:"modal-backdrop p-2 sm:p-4 z-50 overflow-y-auto flex items-center justify-center",onClick:e=>e.target===e.currentTarget&&a(),children:(0,t.jsxs)("div",{className:"modal-content w-full max-w-4xl mx-2 sm:mx-auto bg-[var(--card-bg)] rounded-3xl border border-[var(--card-border)] shadow-2xl animate-scale-in flex flex-col max-h-[90vh]",children:[(0,t.jsxs)("div",{className:"px-4 py-4 sm:px-8 sm:py-6 border-b border-[var(--card-border)] flex items-center justify-between flex-shrink-0",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-bold",children:n?"Edit Project":"Create New Project"}),(0,t.jsx)("p",{className:"text-xs text-[var(--muted-foreground)] mt-0.5",children:n?"Update your project settings and folders.":"Define a new project and connect folders."})]}),(0,t.jsx)("button",{onClick:a,className:"p-2 rounded-xl hover:bg-[var(--muted)]/50 transition-colors",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto p-4 sm:p-8",children:[n&&(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsxs)("div",{className:"rounded-2xl border border-[var(--card-border)] bg-[var(--muted)]/20 p-4",children:[(0,t.jsx)("h3",{className:"text-sm font-bold uppercase tracking-widest text-[var(--muted-foreground)]",children:"Living Project Note"}),f.length>0?(0,t.jsx)("div",{className:"mt-3 space-y-2",children:f.slice(0,5).map(e=>(0,t.jsxs)("div",{className:"rounded-xl border border-[var(--card-border)] bg-[var(--card-bg)] px-3 py-2 text-sm text-[var(--foreground)]",children:[(0,t.jsx)("div",{children:e.content}),e.created_at?(0,t.jsx)("div",{className:"mt-1 text-[11px] text-[var(--muted-foreground)]",children:new Date(e.created_at).toLocaleString()}):null]},e.id))}):(0,t.jsx)("p",{className:"mt-2 text-sm text-[var(--muted-foreground)]",children:"No project note yet."})]})}),(0,t.jsx)(l,{form:o,repos:i,isEditingProject:!!n,isSubmitting:d,onFieldChange:u,onRepoChange:p,onAddRepo:m,onRemoveRepo:h}),c&&(0,t.jsx)("div",{className:"mt-6 p-4 rounded-xl bg-[var(--destructive-muted)] border border-[var(--destructive)]/20 text-sm text-[var(--destructive)]",children:c})]}),(0,t.jsxs)("div",{className:"px-4 py-4 sm:px-8 sm:py-6 border-t border-[var(--card-border)] flex items-center justify-end gap-3 flex-shrink-0",children:[(0,t.jsx)("button",{onClick:a,className:"px-6 py-2 rounded-xl border border-[var(--card-border)] hover:bg-[var(--muted)]/50 transition-colors text-sm font-medium",children:"Cancel"}),(0,t.jsx)("button",{onClick:s,disabled:d,className:"btn-primary px-8 py-2 shadow-lg shadow-[var(--primary)]/20 min-w-[120px]",children:d?(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"spinner w-3 h-3 border-2 border-white/20 border-t-white"}),"Saving..."]}):n?"Save Changes":"Create Project"})]})]})}):null}e.s(["createProjectPayload",()=>i,"default",()=>d,"useProjectFormState",()=>o],811132)},75505,e=>{"use strict";let t=(0,e.i(475254).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);e.s(["FolderOpen",()=>t],75505)},643531,e=>{"use strict";let t=(0,e.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],643531)},284614,e=>{"use strict";let t=(0,e.i(475254).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",()=>t],284614)},283086,e=>{"use strict";let t=(0,e.i(475254).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",()=>t],283086)},107233,e=>{"use strict";let t=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",()=>t],107233)},664659,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",()=>t],664659)},475254,e=>{"use strict";var t=e.i(271645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,t.forwardRef)(({color:e="currentColor",size:a=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:i="",children:l,iconNode:d,...c},u)=>(0,t.createElement)("svg",{ref:u,...s,width:a,height:a,stroke:e,strokeWidth:o?24*Number(n)/Number(a):n,className:r("lucide",i),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]])),o=(e,s)=>{let o=(0,t.forwardRef)(({className:o,...i},l)=>(0,t.createElement)(n,{ref:l,iconNode:s,className:r(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...i}));return o.displayName=a(e),o};e.s(["default",()=>o],475254)},37727,e=>{"use strict";let t=(0,e.i(475254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",()=>t],37727)},233525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},998183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={assign:function(){return l},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});function n(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))if(Array.isArray(a))for(let e of a)t.append(r,o(e));else t.set(r,o(a));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,a]of r.entries())e.append(t,a)}return e}},195057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={formatUrl:function(){return i},formatWithValidation:function(){return d},urlObjectKeys:function(){return l}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});let n=e.r(190809)._(e.r(998183)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,a=e.protocol||"",s=e.pathname||"",i=e.hash||"",l=e.query||"",d=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?d=t+e.host:r&&(d=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(d+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==d?(d="//"+(d||""),s&&"/"!==s[0]&&(s="/"+s)):d||(d=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${a}${d}${s}${c}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function d(e){return i(e)}},818581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let a=e.r(271645);function s(e,t){let r=(0,a.useRef)(null),s=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=n(e,a)),t&&(s.current=n(t,a))},[e,t])}function n(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},718967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return f},ST:function(){return x},WEB_VITALS:function(){return n},execOnce:function(){return o},getDisplayName:function(){return u},getLocationOrigin:function(){return d},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return p},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return m},stringifyError:function(){return k}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...a)=>(r||(r=!0,t=e(...a)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>i.test(e);function d(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=d();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function m(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&p(r))return a;if(!a)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return a}let f="u">typeof performance,x=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function k(e){return JSON.stringify({message:e.message,stack:e.stack})}},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return n}});let a=e.r(718967),s=e.r(652817);function n(e){if(!(0,a.isAbsoluteUrl)(e))return!0;try{let t=(0,a.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},284508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},522016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return g},useLinkStatus:function(){return v}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});let n=e.r(190809),o=e.r(843476),i=n._(e.r(271645)),l=e.r(195057),d=e.r(8372),c=e.r(818581),u=e.r(718967),p=e.r(405550);e.r(233525);let m=e.r(91949),h=e.r(573668),f=e.r(509396);function x(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function g(t){var r;let a,s,n,[l,g]=(0,i.useOptimistic)(m.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:j,as:y,children:k,prefetch:w=null,passHref:N,replace:_,shallow:C,scroll:S,onClick:P,onMouseEnter:E,onTouchStart:A,legacyBehavior:T=!1,onNavigate:O,ref:$,unstable_dynamicOnHover:I,...M}=t;a=k,T&&("string"==typeof a||"number"==typeof a)&&(a=(0,o.jsx)("a",{children:a}));let L=i.default.useContext(d.AppRouterContext),F=!1!==w,z=!1!==w?null===(r=w)||"auto"===r?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:D,as:R}=i.default.useMemo(()=>{let e=x(j);return{href:e,as:y?x(y):e}},[j,y]);if(T){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=i.default.Children.only(a)}let U=T?s&&"object"==typeof s&&s.ref:$,B=i.default.useCallback(e=>(null!==L&&(v.current=(0,m.mountLinkInstance)(e,D,L,z,F,g)),()=>{v.current&&((0,m.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,m.unmountPrefetchableInstance)(e)}),[F,D,L,z,g]),K={ref:(0,c.useMergedRef)(B,U),onClick(t){T||"function"!=typeof P||P(t),T&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!L||t.defaultPrevented||function(t,r,a,s,n,o,l){if("u">typeof window){let d,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((d=t.currentTarget.getAttribute("target"))&&"_self"!==d||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:u}=e.r(699781);i.default.startTransition(()=>{u(a||r,n?"replace":"push",o??!0,s.current)})}}(t,D,R,v,_,S,O)},onMouseEnter(e){T||"function"!=typeof E||E(e),T&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),L&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){T||"function"!=typeof A||A(e),T&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),L&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,u.isAbsoluteUrl)(R)?K.href=R:T&&!N&&("a"!==s.type||"href"in s.props)||(K.href=(0,p.addBasePath)(R)),n=T?i.default.cloneElement(s,K):(0,o.jsx)("a",{...M,...K,children:a}),(0,o.jsx)(b.Provider,{value:l,children:n})}e.r(284508);let b=(0,i.createContext)(m.IDLE_LINK_STATUS),v=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},755838,(e,t,r)=>{"use strict";var a=e.r(271645),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=a.useState,o=a.useEffect,i=a.useLayoutEffect,l=a.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!s(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),a=n({inst:{value:r,getSnapshot:t}}),s=a[0].inst,c=a[1];return i(function(){s.value=r,s.getSnapshot=t,d(s)&&c({inst:s})},[e,r,t]),o(function(){return d(s)&&c({inst:s}),e(function(){d(s)&&c({inst:s})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:c},802239,(e,t,r)=>{"use strict";t.exports=e.r(755838)},752822,(e,t,r)=>{"use strict";var a=e.r(271645),s=e.r(802239),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=s.useSyncExternalStore,i=a.useRef,l=a.useEffect,d=a.useMemo,c=a.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,a,s){var u=i(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;var m=o(e,(u=d(function(){function e(e){if(!l){if(l=!0,o=e,e=a(e),void 0!==s&&p.hasValue){var t=p.value;if(s(t,e))return i=t}return i=e}if(t=i,n(o,e))return t;var r=a(e);return void 0!==s&&s(t,r)?(o=e,t):(o=e,i=r)}var o,i,l=!1,d=void 0===r?null:r;return[function(){return e(t())},null===d?void 0:function(){return e(d())}]},[t,r,a,s]))[0],u[1]);return l(function(){p.hasValue=!0,p.value=m},[m]),c(m),m}},430224,(e,t,r)=>{"use strict";t.exports=e.r(752822)},463059,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],463059)},88081,e=>{"use strict";let t=(0,e.i(475254).default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);e.s(["Hash",()=>t],88081)},327025,e=>{"use strict";let t=(0,e.i(475254).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);e.s(["Folder",()=>t],327025)},727612,e=>{"use strict";let t=(0,e.i(475254).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",()=>t],727612)},690272,e=>{"use strict";let t=(0,e.i(475254).default)("folder-git-2",[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);e.s(["FolderGit2",()=>t],690272)}]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,424903,e=>{e.v({measurementId:"G-DVQQG95LNL"})},808341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={cancelIdleCallback:function(){return i},requestIdleCallback:function(){return a}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let a="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},i="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},479520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return x},handleClientScriptLoad:function(){return h},initScriptLoader:function(){return _}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let a=e.r(555682),i=e.r(190809),o=e.r(843476),l=a._(e.r(174080)),c=i._(e.r(271645)),u=e.r(742732),d=e.r(922737),p=e.r(808341),f=new Map,g=new Set,m=e=>{let{src:t,id:r,onLoad:s=()=>{},onReady:n=null,dangerouslySetInnerHTML:a,children:i="",strategy:o="afterInteractive",onError:c,stylesheets:u}=e,p=r||t;if(p&&g.has(p))return;if(f.has(t)){g.add(p),f.get(t).then(s,c);return}let m=()=>{n&&n(),g.add(p)},h=document.createElement("script"),_=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),s&&s.call(this,t),m()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});a?(h.innerHTML=a.__html||"",m()):i?(h.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",m()):t&&(h.src=t,f.set(t,_)),(0,d.setAttributesFromProps)(h,e),"worker"===o&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",o),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(h)};function h(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(e))}):m(e)}function _(e){e.forEach(h),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");g.add(t)})}function y(e){let{id:t,src:r="",onLoad:s=()=>{},onReady:n=null,strategy:a="afterInteractive",onError:i,stylesheets:d,...f}=e,{updateScripts:h,scripts:_,getIsSsr:y,appDir:x,nonce:v}=(0,c.useContext)(u.HeadManagerContext);v=f.nonce||v;let b=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;b.current||(n&&e&&g.has(e)&&n(),b.current=!0)},[n,t,r]);let j=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!j.current){if("afterInteractive"===a)m(e);else"lazyOnload"===a&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(e))}));j.current=!0}},[e,a]),("beforeInteractive"===a||"worker"===a)&&(h?(_[a]=(_[a]||[]).concat([{id:t,src:r,onLoad:s,onReady:n,onError:i,...f,nonce:v}]),h(_)):y&&y()?g.add(t||r):y&&!y()&&m({...e,nonce:v})),x){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===a)if(!r)return f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...f,id:t}])})`}});else return l.default.preload(r,f.integrity?{as:"script",integrity:f.integrity,nonce:v,crossOrigin:f.crossOrigin}:{as:"script",nonce:v,crossOrigin:f.crossOrigin}),(0,o.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...f,id:t}])})`}});"afterInteractive"===a&&r&&l.default.preload(r,f.integrity?{as:"script",integrity:f.integrity,nonce:v,crossOrigin:f.crossOrigin}:{as:"script",nonce:v,crossOrigin:f.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let x=y;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3303,(e,t,r)=>{t.exports=e.r(479520)},134377,e=>{"use strict";var t=e.i(843476),r=e.i(3303);let s=e.i(424903).default.measurementId,n=`https://www.googletagmanager.com/gtag/js?id=${s}`;function a(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{async:!0,src:n,strategy:"afterInteractive"}),(0,t.jsx)(r.default,{id:"google-analytics",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
|
|
2
|
+
window.dataLayer = window.dataLayer || [];
|
|
3
|
+
function gtag(){dataLayer.push(arguments);}
|
|
4
|
+
gtag('js', new Date());
|
|
5
|
+
gtag('config', '${s}');
|
|
6
|
+
`}})]})}e.s(["GoogleAnalytics",()=>a])},715816,e=>{"use strict";var t=e.i(843476),r=e.i(3303);function s(){return(0,t.jsx)(r.default,{id:"posthog-analytics",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
|
|
7
|
+
!function(t,e){var o,n,p,r;e.__SV||(window.posthog&&window.posthog.__loaded)||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init rs ls wi ns us ts ss capture calculateEventProperties vs register register_once register_for_session unregister unregister_for_session gs getFeatureFlag getFeatureFlagPayload getFeatureFlagResult isFeatureEnabled reloadFeatureFlags updateFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys renderSurvey displaySurvey cancelPendingSurvey canRenderSurvey canRenderSurveyAsync identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException startExceptionAutocapture stopExceptionAutocapture loadToolbar get_property getSessionProperty fs ds createPersonProfile setInternalOrTestUser ps Qr opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing get_explicit_consent_status is_capturing clear_opt_in_out_capturing hs debug M cs getPageViewId captureTraceFeedback captureTraceMetric Kr".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
|
|
8
|
+
posthog.init('phc_oBf1haYu4HKjYmUZpthQ4cUf9O3UKkDSOX675M7dRWW', {
|
|
9
|
+
api_host: 'https://us.i.posthog.com',
|
|
10
|
+
person_profiles: 'identified_only',
|
|
11
|
+
});
|
|
12
|
+
`}})}e.s(["PostHogAnalytics",()=>s])},634088,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let s={version_mismatch:"⚠",missing_extension:"🧩",filesystem_error:"💾",pragma_error:"⚙"},n={version_mismatch:"SQLite Version Mismatch",missing_extension:"Missing SQLite Extension",filesystem_error:"Unsupported Filesystem",pragma_error:"Configuration Error"};function a({errors:e}){return 0===e.length?null:(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[var(--background)] p-4",role:"alert","aria-live":"assertive",children:(0,t.jsxs)("div",{className:"max-w-xl w-full space-y-4",children:[(0,t.jsxs)("div",{className:"text-center mb-6",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-[var(--foreground)]",children:"Database Configuration Error"}),(0,t.jsxs)("p",{className:"text-sm text-[var(--muted-foreground)] mt-1",children:["AGX cannot start because ",1===e.length?"a required check":`${e.length} required checks`," failed. Fix the ",1===e.length?"issue":"issues"," below and restart."]})]}),e.map((e,r)=>(0,t.jsx)("div",{className:"border border-red-200 bg-red-50 rounded-lg p-4 space-y-2",children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:"text-lg","aria-hidden":"true",children:s[e.kind]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("h2",{className:"font-semibold text-red-900 text-sm",children:n[e.kind]}),(0,t.jsx)("p",{className:"text-red-800 text-sm mt-0.5",children:e.message}),e.found&&e.required&&(0,t.jsxs)("div",{className:"mt-2 text-xs text-red-700 font-mono flex gap-4",children:[(0,t.jsxs)("span",{children:["Found: ",(0,t.jsx)("strong",{children:e.found})]}),(0,t.jsxs)("span",{children:["Required: ",(0,t.jsx)("strong",{children:e.required})]})]}),e.path&&(0,t.jsxs)("p",{className:"mt-1 text-xs text-red-700 font-mono truncate",children:["Path: ",e.path]}),e.fix&&(0,t.jsxs)("div",{className:"mt-2 bg-red-100 rounded p-2",children:[(0,t.jsx)("p",{className:"text-xs text-red-800 font-medium mb-1",children:"How to fix:"}),(0,t.jsx)("pre",{className:"text-xs text-red-900 font-mono whitespace-pre-wrap select-all",children:e.fix})]})]})]})},r)),(0,t.jsx)("div",{className:"text-center pt-2",children:(0,t.jsx)("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-[var(--primary)] text-white rounded-lg hover:bg-[var(--primary-dark)] transition-colors text-sm",children:"Retry"})})]})})}function i(e){return{kind:({"SQLite Version":"version_mismatch",journal_mode:"pragma_error",foreign_keys:"pragma_error",busy_timeout:"pragma_error",synchronous:"pragma_error",cache_size:"pragma_error","JSON1 Extension":"missing_extension","FTS5 Extension":"missing_extension",Filesystem:"filesystem_error"})[e.label]||"pragma_error",message:`${e.label}: expected to pass, got '${e.value}'`,found:e.value,fix:({"SQLite Version":"Ensure Node.js >= 22.16 is installed (node:sqlite requires it)",journal_mode:"Ensure the database is on a local filesystem with no exclusive locks",foreign_keys:"PRAGMA foreign_keys = ON","JSON1 Extension":"Rebuild SQLite with JSON1 enabled, or use a system SQLite that includes it",Filesystem:"Move the database file to a local SSD. WAL mode requires reliable fsync."})[e.label]}}function o({children:e}){let[s,n]=(0,r.useState)("loading"),[o,l]=(0,r.useState)([]);return((0,r.useEffect)(()=>{fetch("/api/system/db-status").then(e=>e.json()).then(e=>{let t=(e.checks||[]).filter(e=>"fail"===e.status).map(i);t.length>0?(l(t),n("error")):e.error&&!e.checks?.length?(l([{kind:"pragma_error",message:e.error}]),n("error")):n("ok")}).catch(()=>{n("ok")})},[]),"loading"===s)?(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[var(--background)]",children:(0,t.jsx)("span",{className:"spinner w-8 h-8 border-3 border-[var(--primary)] border-t-transparent rounded-full"})}):"error"===s?(0,t.jsx)(a,{errors:o}):(0,t.jsx)(t.Fragment,{children:e})}e.s(["default",()=>o],634088)},205529,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function s(){let[e,s]=(0,r.useState)(null);return((0,r.useEffect)(()=>{fetch("/api/status").then(e=>e.json()).then(e=>{e.cliVersion&&s(e.cliVersion)}).catch(()=>{})},[]),e)?(0,t.jsxs)("div",{className:"fixed bottom-2 right-2 text-[10px] text-[var(--foreground)] opacity-30 hover:opacity-70 transition-opacity pointer-events-none select-none z-50",children:["agx ",e]}):null}e.s(["default",()=>s])}]);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,203176,e=>{"use strict";let t=new Set(["done","passed"]),r=new Set(["pending","running","awaiting_human","blocked"]);function n(e){return`node--${e}`}function a(e){return e.replace(/_/gu," ")}function s(e,t){return"root"===t.type?t.title?.trim()||"Task Objective":"work"===t.type||"function"===t.type?t.title?.trim()||e:"gate"===t.type?t.gateType.replace(/_gate$/u,"").replace(/_/gu," ").replace(/\b\w/gu,e=>e.toUpperCase()):"fork"===t.type?"Fork":"join"===t.type?`Join (${t.joinStrategy})`:"Conditional"}function o(e){for(let[t,r]of Object.entries(e.nodes))if("root"===r.type)return{id:t,node:r};return null}function i(e){let n,a=o(e);return{mode:e.mode,graphVersion:e.graphVersion,nodeCount:Object.keys(e.nodes).length,progress:0===(n=Object.values(e.nodes).filter(e=>"skipped"!==e.status)).length?100:Math.round(n.filter(e=>t.has(e.status)).length/n.length*100),currentBlocker:function(e){let t=function(e){let t=Object.entries(e.nodes),r=t.filter(([,e])=>"gate"===e.type&&e.required),n=r.find(([,e])=>"failed"===e.status);if(n)return n[0];let a=r.find(([,e])=>"awaiting_human"===e.status);if(a)return a[0];let s=r.find(([,e])=>"pending"===e.status||"running"===e.status);if(s)return s[0];let o=t.find(([,e])=>"work"===e.type&&"blocked"===e.status);return o?.[0]??null}(e);if(!t)return null;let r=e.nodes[t];return r?{nodeId:t,label:s(t,r),status:r.status,required:"gate"===r.type&&r.required}:null}(e),derivedStatus:function(e){let t=Object.keys(e.nodes).length;if(0===t)return"INTAKE";if(1===t){let t=Object.values(e.nodes)[0];if("root"===t.type&&!t.graphCreated)return"INTAKE"}return Object.values(e.nodes).some(e=>r.has(e.status))?"PROGRESS":"DONE"}(e),hasRootNode:null!==a,rootNodeId:a?.id??null}}e.s(["buildGraphSummary",()=>i,"findRootNode",()=>o,"formatNodeStatusLabel",()=>a,"getNodeLabel",()=>s,"toNodeStatusClass",()=>n],203176)},199695,393237,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(174080);let a=[{value:"queued",label:"Queued",color:"var(--status-queued)",icon:"○"},{value:"in_progress",label:"In Progress",color:"var(--status-in-progress)",icon:"◑"},{value:"blocked",label:"Blocked",color:"var(--status-blocked)",icon:"⊘"},{value:"completed",label:"Done",color:"var(--status-completed)",icon:"●"},{value:"failed",label:"Failed",color:"var(--status-failed)",icon:"✕"}];function s({status:e,onStatusChange:s}){let[o,i]=(0,r.useState)(!1),[l,d]=(0,r.useState)(null),u=(0,r.useRef)(null),c=(0,r.useRef)(null),f=(0,r.useCallback)(()=>{if(!u.current)return;let e=u.current.getBoundingClientRect();d({top:e.bottom+4,left:e.left})},[]);(0,r.useEffect)(()=>{if(!o)return;f();let e=e=>{u.current&&!u.current.contains(e.target)&&c.current&&!c.current.contains(e.target)&&i(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[o,f]),(0,r.useEffect)(()=>{i(!1)},[e]);let p=a.find(t=>t.value===e)||a[0],m="completed"===e,h="in_progress"===e;return(0,t.jsxs)("div",{className:"relative flex-shrink-0",ref:u,children:[(0,t.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),s&&i(!o)},className:`w-4 h-4 rounded-full border-[1.5px] flex items-center justify-center transition-all
|
|
2
|
+
hover:scale-110 focus-visible:outline-2 focus-visible:outline-[var(--ring)]
|
|
3
|
+
${s?"cursor-pointer":"cursor-default"}
|
|
4
|
+
${h?"animate-pulse":""}
|
|
5
|
+
`,style:{borderColor:p.color,backgroundColor:m?p.color:"transparent"},title:p.label,children:[m&&(0,t.jsx)("svg",{className:"w-2.5 h-2.5 text-white",viewBox:"0 0 12 12",fill:"none",children:(0,t.jsx)("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"failed"===e&&(0,t.jsx)("svg",{className:"w-2 h-2",viewBox:"0 0 12 12",fill:"none",children:(0,t.jsx)("path",{d:"M3 3L9 9M9 3L3 9",stroke:p.color,strokeWidth:"1.5",strokeLinecap:"round"})}),h&&(0,t.jsx)("div",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:p.color}})]}),o&&l&&(0,n.createPortal)((0,t.jsx)("div",{ref:c,className:"fixed z-[9999] py-1 rounded-lg border shadow-lg min-w-[140px]",style:{top:l.top,left:l.left,backgroundColor:"var(--card-bg)",borderColor:"var(--card-border)"},children:a.map(r=>{let n=r.value===e;return(0,t.jsxs)("button",{type:"button",className:`w-full flex items-center gap-2 px-3 py-1.5 text-xs text-left transition-colors
|
|
6
|
+
hover:bg-[var(--item-hover-bg)]
|
|
7
|
+
${n?"font-semibold bg-[var(--item-hover-bg)]":""}
|
|
8
|
+
`,onClick:e=>{e.stopPropagation(),s?.(r.value),i(!1)},children:[(0,t.jsxs)("span",{className:"w-3 h-3 rounded-full border-[1.5px] flex items-center justify-center",style:{borderColor:r.color,backgroundColor:"completed"===r.value?r.color:"transparent"},children:["completed"===r.value&&(0,t.jsx)("svg",{className:"w-2 h-2 text-white",viewBox:"0 0 12 12",fill:"none",children:(0,t.jsx)("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"failed"===r.value&&(0,t.jsx)("svg",{className:"w-1.5 h-1.5",viewBox:"0 0 12 12",fill:"none",children:(0,t.jsx)("path",{d:"M3 3L9 9M9 3L3 9",stroke:r.color,strokeWidth:"1.5",strokeLinecap:"round"})}),"in_progress"===r.value&&(0,t.jsx)("div",{className:"w-1 h-1 rounded-full",style:{backgroundColor:r.color}})]}),(0,t.jsx)("span",{style:{color:n?r.color:void 0},children:r.label}),n&&(0,t.jsx)("svg",{className:"w-3 h-3 ml-auto",viewBox:"0 0 12 12",fill:"none",children:(0,t.jsx)("path",{d:"M2 6L5 9L10 3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]},r.value)})}),document.body)]})}var o=e.i(203176);let i=new Map,l=new Map;async function d(e){let t=i.get(e);if(void 0!==t)return t;let r=l.get(e);if(r)return r;let n=(async()=>{let t=await fetch(`/api/tasks/${e}/graph`,{method:"GET",cache:"no-store"});if(404===t.status)return i.set(e,null),null;let r=await t.json().catch(()=>({}));if(!t.ok)throw Error(r?.error||`Failed to fetch graph summary (${t.status})`);let n=r?.graph??null,a=n?(0,o.buildGraphSummary)(n):null;return i.set(e,a),a})();l.set(e,n);try{return await n}finally{l.delete(e)}}function u(e){let t=(0,r.useMemo)(()=>e?i.get(e)??null:null,[e]),[n,a]=(0,r.useState)(t),[s,o]=(0,r.useState)(!!e&&null===t),[l,u]=(0,r.useState)(null),c=(0,r.useCallback)(async()=>{if(!e){a(null),u(null),o(!1);return}o(!0),u(null);try{let t=await d(e);a(t)}catch(e){u(e instanceof Error?e.message:"Failed to fetch graph summary"),a(null)}finally{o(!1)}},[e]);return(0,r.useEffect)(()=>{c()},[c]),{summary:n,isLoading:s,error:l,refresh:c}}function c(e){return i.get(e)??null}async function f(e){await Promise.allSettled(e.map(e=>d(e)))}e.s(["getCachedGraphSummary",()=>c,"prefetchGraphSummaries",()=>f,"useTaskGraphSummary",()=>u],393237);let p={queued:{className:"badge-status-queued",label:"Queued",dotColor:"bg-[var(--status-queued)]"},in_progress:{className:"badge-status-in_progress",label:"In Progress",dotColor:"bg-[var(--status-in-progress)]"},blocked:{className:"badge-status-blocked",label:"Blocked",dotColor:"bg-[var(--status-blocked)]"},completed:{className:"badge-status-completed",label:"Completed",dotColor:"bg-[var(--status-completed)]"},failed:{className:"badge-status-failed",label:"Failed",dotColor:"bg-[var(--status-failed)]"}},m={INTAKE:{icon:"📥",label:"Intake"},PROGRESS:{icon:"🔄",label:"Progress"},DONE:{icon:"✅",label:"Done"}};function h({task:e,onClick:r,compact:n=!1,onStatusChange:a,onApprovalModeChange:o,allTasks:i,relationship:l="none"}){p[e.status||"queued"],e.stage&&m[e.stage];let{summary:d,isLoading:c}=u("draft"!==e.id?e.id:null),f=e.depends_on?.length?e.depends_on.map(e=>{let t=i?.find(t=>t.id===e);return{id:e,title:t?.title||e.slice(0,8),done:t?.status==="completed"}}):null;return f&&f.every(e=>e.done),(0,t.jsxs)("div",{onClick:r,role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&r?.(),className:`group relative flex flex-col gap-1.5 sm:gap-2 p-2 sm:p-3 surface-card cursor-grab active:cursor-grabbing
|
|
9
|
+
focus-visible:outline-2 focus-visible:outline-[var(--ring)] focus-visible:outline-offset-2
|
|
10
|
+
${"active"===l?"border-primary ring-2 ring-primary/20 z-40":"blocking"===l?"border-[var(--status-blocked)] bg-rose-50/30 dark:bg-rose-950/20 z-20":"dependent"===l?"border-[var(--status-in-progress)] bg-blue-50/30 dark:bg-blue-950/20 z-20":"dimmed"===l?"opacity-40 grayscale scale-[0.98]":""}
|
|
11
|
+
${"failed"===e.status&&"none"===l?"border-red-200 bg-red-50/30 dark:bg-red-950/20":""}
|
|
12
|
+
${"completed"===e.status&&"none"===l?"opacity-75 bg-[var(--secondary)]":""}
|
|
13
|
+
`,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsx)("h3",{className:`text-sm font-medium text-[var(--foreground)] leading-snug line-clamp-2 sm:line-clamp-3
|
|
14
|
+
${"completed"===e.status?"text-[var(--muted-foreground)] line-through":""}
|
|
15
|
+
`,children:e.title||"Untitled Task"}),(0,t.jsx)("div",{className:"shrink-0 mt-0.5",children:(0,t.jsx)(s,{status:e.status||"queued",onStatusChange:a})})]}),(0,t.jsx)("div",{className:"flex items-center justify-between min-h-[16px]",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[10px] text-[var(--muted-foreground)] flex-wrap",children:[void 0!==e.priority&&e.priority>0&&(0,t.jsxs)("span",{className:`px-1.5 py-0.5 rounded font-semibold bg-[var(--secondary)] ${0===e.priority?"text-[var(--primary)]":""}`,children:["P",e.priority]}),o&&("auto"===e.approval_mode?(0,t.jsx)("span",{className:"px-1.5 py-0.5 rounded font-semibold bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400 cursor-pointer select-none",title:"Auto-approve enabled. Click to switch to manual.",onClick:e=>{e.stopPropagation(),o("manual")},children:"AUTO"}):(0,t.jsx)("span",{className:"px-1.5 py-0.5 rounded font-semibold bg-gray-100 text-gray-400 dark:bg-gray-800 dark:text-gray-500 cursor-pointer select-none opacity-0 group-hover:opacity-100 transition-opacity",title:"Manual approval. Click to enable auto-approve.",onClick:e=>{e.stopPropagation(),o("auto")},children:"AUTO"})),"draft"!==e.id&&(0,t.jsx)("span",{className:"opacity-0 group-hover:opacity-100 transition-opacity font-mono text-[9px]",children:e.id.slice(0,5)})]})})]})}e.s(["default",()=>h],199695)},319580,e=>{"use strict";var t=e.i(247167),r=e.i(271645);let n={id:"2c3cc1ca-956d-4b62-b295-4d2d3374103f",email:t.default.env.AGX_BOARD_USER_EMAIL||"local@agx.board",name:t.default.env.AGX_BOARD_USER_NAME||"Local Board User"};function a(e={}){let s="1"===t.default.env.NEXT_PUBLIC_AGX_BOARD_DISABLE_AUTH,o=e.project,i=e.status,l=e.orphan,d=e.realtime,[u,c]=(0,r.useState)([]),[f,p]=(0,r.useState)(!0),[m,h]=(0,r.useState)(null),[g,x]=(0,r.useState)(null),[b,v]=(0,r.useState)(null),y=(0,r.useCallback)(e=>{if(!e)return[];if(Array.isArray(e))return Array.from(new Set(e.map(e=>String(e||"").trim()).filter(Boolean)));if("string"==typeof e){let t=e.trim();if(!t)return[];try{let e=JSON.parse(t);if(Array.isArray(e))return Array.from(new Set(e.map(e=>String(e||"").trim()).filter(Boolean)))}catch{}return Array.from(new Set(t.split(",").map(e=>e.trim()).filter(Boolean)))}return[]},[]),w=(0,r.useCallback)(e=>{let t=String(e||"").match(/^---\n([\s\S]*?)\n---\n?/);if(!t)return[];let r=t[1].split("\n").find(e=>e.trim().toLowerCase().startsWith("depends_on:"));return r?y(r.slice(r.indexOf(":")+1).trim()):[]},[y]),k=(0,r.useCallback)((e,t)=>{let r=y(e.depends_on);if(r.length>0)return{...e,depends_on:r};let n="string"==typeof e?.content?w(e.content):[];if(n.length>0)return{...e,depends_on:n};let a=y(t?.depends_on);return a.length>0?{...e,depends_on:a}:e},[w,y]),j=(0,r.useCallback)(async()=>{try{let e=new URLSearchParams;o&&e.set("project",o),i&&e.set("status",i),l&&e.set("orphan","1");let t=await fetch(`/api/tasks?${e.toString()}`);if(!t.ok)throw Error("Failed to fetch tasks");let r=await t.json(),n=Array.isArray(r.tasks)?r.tasks.map(e=>k(e)):[];c(n),h(null)}catch(e){h(e instanceof Error?e:Error("Unknown error"))}finally{p(!1)}},[o,i,l]);(0,r.useEffect)(()=>{j()},[j]),(0,r.useEffect)(()=>{if(!s||!d)return;let e=setInterval(j,3e3);return()=>clearInterval(e)},[s,d,j]),(0,r.useEffect)(()=>{if(s||!d)return;let e={auth:{getSession:async()=>({data:{session:{access_token:"local-token",refresh_token:"local-refresh",expires_in:3600,user:{id:n.id,email:n.email,user_metadata:{name:n.name,full_name:n.name}}}},error:null}),signInWithOAuth:async()=>({error:Error("Auth disabled in AGX Board local mode")}),signOut:async()=>({error:null}),onAuthStateChange:()=>({data:{subscription:{unsubscribe(){}}}})},channel:()=>({on(){return this},subscribe(){return this}}),removeChannel(){}},t=e.channel("tasks-changes").on("postgres_changes",{event:"*",schema:"public",table:"tasks"},e=>{"INSERT"===e.eventType?c(t=>{let r=k(e.new);return t.some(e=>e.id===r.id)?t:[r,...t]}):"UPDATE"===e.eventType?c(t=>t.map(t=>t.id===e.new.id?k(e.new,t):t)):"DELETE"===e.eventType&&c(t=>t.filter(t=>t.id!==e.old.id))}).subscribe();return()=>{e.removeChannel(t)}},[d,s]),(0,r.useEffect)(()=>{if(s||!d)return;let e=setInterval(j,3e3);return()=>clearInterval(e)},[d,s,j]);let S=(0,r.useCallback)(async(e,t)=>{let r=await fetch("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:e,swarm_models:t})});if(!r.ok)throw Error((await r.json()).error||"Failed to create task");let{task:n}=await r.json(),a=k(n);return c(e=>e.some(e=>e.id===a.id)?e:[a,...e]),a},[e.realtime,k]),N=(0,r.useCallback)(async(e,t)=>{let r=await fetch(`/api/tasks/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){let e=null;throw"function"==typeof r.json&&(e=await r.json().catch(()=>null)),Error(e?.error||e?.details||`Failed to update task (${r.status} ${r.statusText||"Error"})`)}let{task:n}=await r.json();return c(t=>t.map(t=>t.id===e?k({...t,...n},t):t)),k(n)},[e.realtime,k]),C=(0,r.useCallback)(async e=>{if(!(await fetch(`/api/tasks/${e}`,{method:"DELETE"})).ok)throw Error("Failed to delete task");c(t=>t.filter(t=>t.id!==e))},[e.realtime]),E=(0,r.useCallback)(async e=>{let t=await fetch("/api/queue/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error((await t.json().catch(()=>({}))).error||"Failed to complete task stage");let{task:r}=await t.json();return c(t=>t.map(t=>t.id===e.taskId?k({...t,...r},t):t)),k(r)},[e.realtime,k]),L=(0,r.useCallback)(async e=>{x(e.taskId),v(null);try{let t=await fetch(`/api/orchestrator/tasks/${e.taskId}/cancel`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.reason?{reason:e.reason}:{})});if(!t.ok){let e=await t.json().catch(()=>({})),r=e?.error||"Failed to cancel workflow";throw Error(r)}return t.json()}catch(t){let e=t instanceof Error?t:Error("Failed to cancel workflow");throw v(e),e}finally{x(null)}},[]),T=(0,r.useCallback)(async e=>{let t=await fetch(`/api/tasks/${e}`),r=await t.json().catch(()=>null);if(!t.ok)throw Error(r?.error||"Failed to fetch task details");return k(r?.task)},[k]),A=(0,r.useCallback)(async e=>{let t=await fetch("/api/tasks/assign-orphans",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_id:e})}),r=await t.json().catch(()=>({}));if(!t.ok)throw Error(r?.error||"Failed to assign orphan tasks");return await j(),{updatedCount:Number(r?.updatedCount||0),taskIds:Array.isArray(r?.taskIds)?r.taskIds:[]}},[j]);return{tasks:u,isLoading:f,error:m,cancellingTaskId:g,isCancelling:!!g,cancelError:b,refetch:j,createTask:S,updateTask:N,deleteTask:C,completeTaskStage:E,cancelWorkflow:L,fetchTask:T,assignOrphanTasksToProject:A}}e.s(["useTasks",()=>a],319580)},990787,935912,e=>{"use strict";var t=e.i(843476),r=e.i(76590),n=e.i(807311),a=e.i(199695);function s({task:e,onClick:s,onStatusChange:o,onApprovalModeChange:i,allTasks:l,relationship:d="none"}){let{attributes:u,listeners:c,setNodeRef:f,transform:p,transition:m,isDragging:h}=(0,r.useSortable)({id:e.id}),g={transform:n.CSS.Transform.toString(p),transition:m,opacity:h?.5:1,...h?{zIndex:50,position:"relative"}:{}};return(0,t.jsx)("div",{ref:f,...u,...c,style:g,className:`touch-none ${"none"!==d&&"dimmed"!==d?"z-20 relative":""}`,children:(0,t.jsx)(a.default,{task:e,onClick:s,onStatusChange:o,onApprovalModeChange:i,allTasks:l,relationship:d})})}function o({task:e}){return(0,t.jsx)("div",{className:"w-full sm:w-80 cursor-grabbing shadow-lg border border-[var(--primary)] rotate-1 scale-[1.02] rounded-lg bg-[var(--card-bg)]",children:(0,t.jsx)(a.default,{task:e})})}e.s(["default",()=>s],990787),e.s(["default",()=>o],935912)},40461,e=>{"use strict";var t=e.i(271645);let r=["INTAKE","PROGRESS","DONE"],n={INTAKE:{icon:"📥",label:"Intake",color:"var(--warning)"},PROGRESS:{icon:"🔄",label:"Progress",color:"var(--primary)"},DONE:{icon:"✅",label:"Done",color:"var(--success)"}};function a(){return{workflow:null,stages:(0,t.useMemo)(()=>[...r],[]),stageConfig:n,transitions:[],isLoading:!1,error:null,refetch:()=>{},isValidTransition:(0,t.useCallback)((e,t)=>{if(e===t)return!0;let n=r.indexOf(e),a=r.indexOf(t);return a<n||a===n+1},[])}}e.s(["DEFAULT_WORKFLOW_ID",0,"00000000-0000-0000-0000-000000000001","FALLBACK_STAGES",0,r,"FALLBACK_STAGE_CONFIG",0,n,"useWorkflows",()=>a])},536797,867041,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(477183),a=e.i(76590),s=e.i(990787),o=e.i(935912),i=e.i(40461);function l({tasks:e,onTasksChange:s,onSelectTask:l,onTaskUpdate:u,onAddTask:c,stages:f,stageConfig:p,isValidTransition:m,isCreatingTask:h,creatingStage:g,graphColumnFn:x}){let b=f||i.FALLBACK_STAGES,v=p||i.FALLBACK_STAGE_CONFIG,y=m||((e,t)=>{if(e===t)return!0;let r=b.indexOf(e),n=b.indexOf(t);return n<r||n===r+1}),[w,k]=(0,r.useState)(null),[j,S]=(0,r.useState)(e),[N,C]=(0,r.useState)(null),[E,L]=(0,r.useState)([]),T=(0,r.useRef)(null),A=(0,r.useRef)(null),_=(0,r.useCallback)(()=>{if(!N||!T.current)return void L([]);let e=[],t=T.current.getBoundingClientRect(),r=document.getElementById(`task-${N}`);if(!r)return;let n=r.getBoundingClientRect();j.forEach(r=>{if(j.find(e=>e.id===N)?.depends_on?.includes(r.id)){let a=document.getElementById(`task-${r.id}`);if(a){let s=a.getBoundingClientRect();e.push({id:`conn-blocking-${r.id}`,from:{x:s.right-t.left,y:s.top+s.height/2-t.top},to:{x:n.left-t.left,y:n.top+n.height/2-t.top},type:"blocking"})}}if(r.depends_on?.includes(N)){let a=document.getElementById(`task-${r.id}`);if(a){let s=a.getBoundingClientRect();e.push({id:`conn-dependent-${r.id}`,from:{x:n.right-t.left,y:n.top+n.height/2-t.top},to:{x:s.left-t.left,y:s.top+s.height/2-t.top},type:"dependent"})}}}),L(e)},[N,j]);(0,r.useEffect)(()=>(_(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[_]),(0,r.useEffect)(()=>{w||S(e)},[e]);let O={ideation:"INTAKE",intake:"INTAKE",planning:"PROGRESS",coding:"PROGRESS",execution:"PROGRESS",qa:"PROGRESS",acceptance:"PROGRESS",verification:"PROGRESS",pr:"PROGRESS",smoke_test:"PROGRESS",release:"PROGRESS",done:"DONE"},R=e=>{let t="string"==typeof e.stage?e.stage:"",r="string"==typeof e.status?e.status.trim().toLowerCase():"";if(t&&b.includes(t))return t;if("completed"===r)return"DONE";if("in_progress"===r||"blocked"===r||"failed"===r)return"PROGRESS";let n=O[t.trim().toLowerCase()];return n||(x?x(e):"INTAKE")};(0,r.useMemo)(()=>{let e={},t=new Map(j.map(e=>[e.id,e]));for(let r of j)!function r(n,a){if(void 0!==e[n])return e[n];if(a.has(n))return 0;a.add(n);let s=t.get(n);if(!s?.depends_on?.length)return e[n]=0,0;let o=Math.max(...s.depends_on.map(e=>t.has(e)?r(e,a)+1:0));return e[n]=o,o}(r.id,new Set);return e},[j]);let I=(0,r.useMemo)(()=>{let e={},t=new Map(j.map(e=>[e.id,e]));for(let n of b){let a=j.filter(e=>R(e)===n),s=[],o=new Set;function r(e){if(!o.has(e.id)){for(let a of e.depends_on||[]){let e=t.get(a);e&&R(e)===n&&!o.has(a)&&r(e)}o.add(e.id),s.push(e)}}for(let e of a.filter(e=>!e.depends_on?.some(e=>t.has(e)&&R(t.get(e))===n)).sort((e,t)=>(e.priority||0)-(t.priority||0)))r(e);for(let e of a.sort((e,t)=>(e.priority||0)-(t.priority||0)))r(e);e[n]=s}return e},[j,b,x]),M=(0,n.useSensors)((0,n.useSensor)(n.PointerSensor,{activationConstraint:{distance:8}}));async function $(t){let{active:r,over:n}=t;if(k(null),!n)return void S(e);let o=r.id,i=n.id,l=j.find(e=>e.id===o);if(!l)return;let d=e.find(e=>e.id===o),c=R(l),f=l.priority||0;if(b.includes(i)){let e=I[c=i];f=e.length>0?Math.max(...e.map(e=>e.priority||0))+1:0}else{let e=j.find(e=>e.id===i);if(e){c=R(e);let t=j.filter(e=>R(e)===c),r=t.findIndex(e=>e.id===o),n=t.findIndex(e=>e.id===i);if(-1!==r&&-1!==n&&r!==n){let e=(0,a.arrayMove)(t,r,n),o=j.map(t=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r?{...t,priority:r}:t});S(o),s?.(o)}f=e.priority||0}}let p=d?R(d):l.stage||"";if(d&&!y(p||"",c))return void S(e);if(u&&(p!==c||(d?.priority??l.priority)!==f))try{await u(o,{stage:c,priority:f}),s?.(j)}catch(t){console.error("Failed to update task:",t),S(e)}}return(0,t.jsxs)(n.DndContext,{sensors:M,collisionDetection:n.closestCorners,onDragStart:function(e){let t=j.find(t=>t.id===e.active.id);t&&k(t)},onDragOver:function(e){let{active:t,over:r}=e;if(!r)return;let n=t.id,a=r.id,s=j.find(e=>e.id===n);if(!s)return;let o=R(s),i=function(e){if(b.includes(e))return e;let t=j.find(t=>t.id===e);return t?R(t):null}(a);if(i&&o!==i){if(!y(o||"",i))return;S(e=>e.map(e=>e.id===n?{...e,stage:i}:e))}},onDragEnd:$,children:[(0,t.jsx)("div",{className:"h-full overflow-hidden relative bg-[var(--background)]",ref:A,onScroll:_,onClick:()=>C(null),children:(0,t.jsxs)("div",{className:"relative min-w-full h-full flex flex-col",ref:T,children:[(0,t.jsxs)("svg",{className:"absolute inset-0 w-full h-full pointer-events-none z-10 hidden xl:block",style:{overflow:"visible"},children:[(0,t.jsx)("style",{children:`
|
|
16
|
+
@keyframes flow {
|
|
17
|
+
from { stroke-dashoffset: 20; }
|
|
18
|
+
to { stroke-dashoffset: 0; }
|
|
19
|
+
}
|
|
20
|
+
.conn-path {
|
|
21
|
+
animation: flow 1s linear infinite;
|
|
22
|
+
}
|
|
23
|
+
`}),E.map(e=>{let r=e.to.x-e.from.x,n=e.from.x+.3*Math.abs(r)*(r>0?1:-1),a=e.to.x-.3*Math.abs(r)*(r>0?1:-1);return(0,t.jsx)("path",{d:`M ${e.from.x} ${e.from.y} C ${n} ${e.from.y}, ${a} ${e.to.y}, ${e.to.x} ${e.to.y}`,stroke:"blocking"===e.type?"var(--status-blocked, #f43f5e)":"var(--status-in-progress, #3b82f6)",strokeWidth:"2",strokeDasharray:"4 4",fill:"none",strokeOpacity:"0.4",className:"conn-path"},e.id)})]}),(0,t.jsx)("div",{className:"flex flex-col xl:flex-row gap-4 xl:gap-6 pb-4 px-3 xl:px-6 flex-1 min-h-0 items-stretch justify-center pt-2",children:b.map((e,r)=>(0,t.jsx)(d,{stage:e,tasks:I[e]||[],allTasks:j,selectedTaskId:N,setSelectedTaskId:C,onSelectTask:l,onTaskUpdate:u,index:r,onAddTask:c,config:v[e]||{icon:"📌",label:e,color:"var(--primary)"},isCreating:!!(h&&g===e)},e))})]})}),(0,t.jsx)(n.DragOverlay,{dropAnimation:{duration:200,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:w?(0,t.jsx)(o.default,{task:w}):null})]})}function d({stage:e,tasks:r,allTasks:a,selectedTaskId:s,setSelectedTaskId:o,onSelectTask:i,onTaskUpdate:l,index:d,onAddTask:c,config:f,isCreating:p=!1}){let{setNodeRef:m,isOver:h}=(0,n.useDroppable)({id:e});return(0,t.jsxs)("div",{ref:m,id:e,"data-testid":e,className:`
|
|
24
|
+
w-full xl:flex-shrink-0 xl:w-80 flex flex-col min-h-0
|
|
25
|
+
bg-[var(--muted)]/40 rounded-2xl border border-[var(--border)]/50 shadow-inner overflow-hidden
|
|
26
|
+
transition-all duration-200
|
|
27
|
+
${h?"ring-2 ring-[var(--primary)] ring-opacity-30 bg-[var(--primary-muted)]/10":""}
|
|
28
|
+
`,style:{animationDelay:`${50*d}ms`},children:[(0,t.jsxs)("div",{className:"p-4 flex items-center justify-between bg-[var(--card-bg)]/30 backdrop-blur-sm border-b border-[var(--border)]/20",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-lg",children:f.icon}),(0,t.jsx)("h3",{className:"font-bold text-[11px] uppercase tracking-widest text-[var(--muted-foreground)]",children:f.label})]}),(0,t.jsx)("span",{className:"text-[10px] font-bold text-[var(--muted-foreground)] bg-[var(--card-bg)] px-2 py-0.5 rounded-full border border-[var(--border)]",children:r.length})]}),(0,t.jsx)(u,{stage:e,tasks:r,allTasks:a,selectedTaskId:s,setSelectedTaskId:o,onSelectTask:i,onTaskUpdate:l,config:f,onAddTask:c,isCreating:p})]})}function u({stage:e,tasks:n,allTasks:o,selectedTaskId:i,setSelectedTaskId:l,onSelectTask:d,onTaskUpdate:u,config:c,onAddTask:f,isCreating:p}){let m=(0,r.useMemo)(()=>n.map(e=>e.id),[n]),[h,g]=(0,r.useState)(!1),[x,b]=(0,r.useState)(""),v=(0,r.useRef)(null),y=()=>{let t=x.trim();t&&f&&f(t,e),g(!1),b("")},w=()=>{g(!1),b("")};return(0,t.jsx)(a.SortableContext,{items:m,strategy:a.verticalListSortingStrategy,children:(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto scrollbar-thin px-3 py-3 space-y-2",children:[f&&!h&&(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),g(!0),b(""),setTimeout(()=>v.current?.focus(),0)},disabled:p,className:"w-full py-2.5 rounded-xl border border-dashed border-[var(--border)] text-[var(--muted-foreground)] text-[10px] font-bold uppercase tracking-widest hover:bg-[var(--card-bg)] hover:border-indigo-200 hover:text-indigo-400 transition-all flex items-center justify-center gap-2 mb-1",children:p?(0,t.jsx)("span",{className:"spinner w-3 h-3 border-2 border-[var(--border)] border-t-indigo-400 rounded-full"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add Task"]})}),h&&(0,t.jsxs)("div",{className:"bg-[var(--card-bg)] border-2 border-indigo-400 rounded-xl p-3 shadow-lg shadow-indigo-50 mb-1",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("input",{ref:v,type:"text",value:x,onChange:e=>b(e.target.value),onKeyDown:e=>{"Enter"===e.key&&y(),"Escape"===e.key&&w()},onBlur:()=>{x.trim()?y():w()},placeholder:"Task title...",className:"w-full text-sm font-medium text-[var(--foreground)] bg-transparent outline-none placeholder:text-[var(--muted-foreground)]"}),(0,t.jsx)("p",{className:"text-[10px] text-[var(--muted-foreground)] mt-1",children:"Press Enter to create · Esc to cancel"})]}),n.map(e=>{let r=(e=>{if(!i)return"none";if(e.id===i)return"active";let t=o.find(e=>e.id===i);return t?.depends_on?.includes(e.id)?"blocking":e.depends_on?.includes(i)?"dependent":"dimmed"})(e);return(0,t.jsx)("div",{id:`task-${e.id}`,onClick:t=>{t.stopPropagation(),l(e.id===i?null:e.id),d?.(e)},children:(0,t.jsx)(s.default,{task:e,onClick:()=>d?.(e),onStatusChange:u?t=>u(e.id,{status:t}):void 0,onApprovalModeChange:u?t=>u(e.id,{approval_mode:t}):void 0,allTasks:o,relationship:r})},e.id)}),0===n.length&&!h&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 opacity-10",children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"mb-1",children:[(0,t.jsx)("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),(0,t.jsx)("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),(0,t.jsx)("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),(0,t.jsx)("line",{x1:"3",y1:"6",x2:"3.01",y2:"6"}),(0,t.jsx)("line",{x1:"3",y1:"12",x2:"3.01",y2:"12"}),(0,t.jsx)("line",{x1:"3",y1:"18",x2:"3.01",y2:"18"})]}),(0,t.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-widest",children:"Available"})]})]})})}i.FALLBACK_STAGES,e.s(["default",()=>l],536797);var c=e.i(247167);let f="agx:floatingPanels";function p(){return void 0!==window.localStorage}function m(){if(!p())return{};try{let e=window.localStorage.getItem(f);if(!e)return{};let t=JSON.parse(e);return t&&"object"==typeof t?t:{}}catch{return{}}}function h(e){return m()[e]??null}function g(e,t,r){return Math.min(Math.max(e,t),r)}function x(e,t,r){let n={width:window.innerWidth,height:window.innerHeight},a=Math.max(t,n.width-16),s=Math.max(r,n.height-16),o=g(e.width,t,a),i=g(e.height,r,s);return{x:g(e.x,8,Math.max(8,n.width-o-8)),y:g(e.y,8,Math.max(8,n.height-i-8)),width:o,height:i}}function b({panelId:e,titleBar:n,children:a,defaultBounds:s,minWidth:o=320,minHeight:i=220,className:l,bodyClassName:d}){let u=(0,r.useRef)(null),c=(0,r.useRef)(null),g=(0,r.useMemo)(()=>x(h(e)??s,o,i),[s,i,o,e]),[b,v]=(0,r.useState)(g),[y,w]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{v(x(h(e)??s,o,i)),w(!0)},[s,i,o,e]),(0,r.useEffect)(()=>{if(y){let t=m();t[e]=b;if(p())try{window.localStorage.setItem(f,JSON.stringify(t))}catch{}}},[b,y,e]),(0,r.useEffect)(()=>{let e=()=>{v(e=>x(e,o,i))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i,o]),(0,r.useEffect)(()=>{let e=e=>{u.current?v(x({...b,x:u.current.originX+(e.clientX-u.current.startX),y:u.current.originY+(e.clientY-u.current.startY)},o,i)):c.current&&v(x({...b,width:c.current.originWidth+(e.clientX-c.current.startX),height:c.current.originHeight+(e.clientY-c.current.startY)},o,i))},t=()=>{u.current=null,c.current=null,document.body.style.userSelect="",document.body.style.cursor=""};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),document.body.style.userSelect="",document.body.style.cursor=""}},[b,i,o]),(0,t.jsx)("div",{className:l,style:{position:"fixed",left:b.x,top:b.y,width:b.width,height:b.height,zIndex:40},children:(0,t.jsxs)("div",{className:"flex h-full flex-col overflow-hidden rounded-2xl border border-[var(--border)] bg-[var(--card-bg)] shadow-2xl backdrop-blur-md",children:[(0,t.jsx)("div",{onMouseDown:e=>{let t=e.target;t?.closest("button, a, input, textarea, select, [data-no-panel-drag='true']")||(u.current={startX:e.clientX,startY:e.clientY,originX:b.x,originY:b.y},document.body.style.userSelect="none",document.body.style.cursor="grabbing")},className:"cursor-grab active:cursor-grabbing border-b border-[var(--border)] bg-[var(--card-bg)]/95",children:n}),(0,t.jsx)("div",{className:d,children:a}),(0,t.jsx)("div",{onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),c.current={startX:e.clientX,startY:e.clientY,originWidth:b.width,originHeight:b.height},document.body.style.userSelect="none",document.body.style.cursor="nwse-resize"},className:"absolute bottom-0 right-0 h-5 w-5 cursor-nwse-resize","aria-hidden":"true",children:(0,t.jsx)("div",{className:"absolute bottom-1.5 right-1.5 h-2.5 w-2.5 rounded-sm border-r-2 border-b-2 border-[var(--muted-foreground)]/50"})})]})})}let v=Number(c.default.env.NEXT_PUBLIC_AGX_MAX_WORKERS)||10;function y({tasks:e,processes:n=[],onTaskClick:a,onStop:s,onRetry:o,cancellingTaskId:i,panelId:l="now-running-panel"}){let d=(0,r.useMemo)(()=>n.filter(e=>"spawning"===e.state||"running"===e.state),[n]),u=(0,r.useMemo)(()=>e.filter(e=>"in_progress"===e.status),[e]),[c,f]=(0,r.useState)({});(0,r.useEffect)(()=>{let e=()=>{let e={};u.forEach(t=>{let r=new Date(t.updated_at).getTime(),n=Math.floor((Date.now()-r)/6e4);n<1?e[t.id]="< 1m":n<60?e[t.id]=`${n}m`:e[t.id]=`${Math.floor(n/60)}h`}),f(e)};e();let t=setInterval(e,6e4);return()=>clearInterval(t)},[u]);let p=u.length/v,m=p>=.8,h=u.length>=v;return 0===u.length?null:(0,t.jsx)(b,{panelId:l,defaultBounds:{x:24,y:120,width:720,height:248},minWidth:420,minHeight:180,className:"animate-fade-in-down",bodyClassName:"flex-1 overflow-auto",titleBar:(0,t.jsxs)("div",{className:"flex items-center gap-4 p-3 sm:p-4 flex-wrap sm:flex-nowrap sm:min-w-max",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-center pr-4 border-r border-[var(--border)]",children:[(0,t.jsxs)("h3",{className:"text-sm font-bold text-[var(--foreground)] whitespace-nowrap flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,t.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-green-500"})]}),"Now Running"]}),(0,t.jsxs)("span",{className:"text-[10px] text-[var(--muted-foreground)] uppercase tracking-wider font-semibold",children:[u.length," Active",d.length>0?` \xb7 ${d.length} process${d.length>1?"es":""}`:""]})]}),(0,t.jsxs)("div",{className:"hidden sm:flex flex-col justify-center pr-4 border-r border-[var(--border)] gap-1",title:`${u.length} of ${v} max workers in use. Single-writer SQLite architecture — see docs/LIMITS.md`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)("span",{className:`text-[10px] font-semibold uppercase tracking-wider ${h?"text-red-400":m?"text-amber-400":"text-[var(--muted-foreground)]"}`,children:[u.length,"/",v," workers"]}),m&&(0,t.jsxs)("svg",{className:`w-3 h-3 ${h?"text-red-400":"text-amber-400"}`,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,t.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,t.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})]}),(0,t.jsx)("div",{className:"w-16 h-1.5 bg-[var(--muted)] rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:`h-full rounded-full transition-all ${h?"bg-red-400":m?"bg-amber-400":"bg-[var(--primary)]"}`,style:{width:`${Math.min(100*p,100)}%`}})})]})]}),children:(0,t.jsx)("div",{className:"max-w-full overflow-x-auto no-scrollbar p-3 sm:p-4",children:(0,t.jsx)("div",{className:"flex items-center gap-3 flex-wrap",children:u.map(e=>{let r=e.id===i;return(0,t.jsxs)("div",{onClick:()=>a?.(e),className:"group flex items-center gap-3 pl-3 pr-2 py-2 bg-[var(--background)] border border-[var(--border)] rounded-lg hover:border-[var(--primary)] transition-all cursor-pointer shadow-sm hover:shadow-md min-w-0 w-full sm:min-w-[280px] sm:w-auto",children:[(0,t.jsx)("div",{className:"w-6 h-6 sm:w-8 sm:h-8 rounded-full bg-[var(--muted)] flex items-center justify-center text-[10px] sm:text-xs font-bold border border-[var(--border)] shrink-0",children:e.provider?e.provider.substring(0,2).toUpperCase():"AG"}),(0,t.jsxs)("div",{className:"flex flex-col flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-xs mb-0.5",children:[(0,t.jsxs)("span",{className:"font-semibold text-[var(--foreground)] truncate max-w-[120px]",children:[e.provider||"Agent"," ",e.model?`• ${e.model}`:""]}),(0,t.jsx)("span",{className:"font-mono text-[var(--muted-foreground)]",children:c[e.id]||"0m"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] text-[var(--muted-foreground)] truncate max-w-[140px]",children:e.title||e.content.substring(0,30)}),(0,t.jsx)("div",{className:"w-12 h-1 bg-[var(--muted)] rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:"h-full bg-[var(--primary)] animate-pulse rounded-full",style:{width:`${40*Math.random()+30}%`}})})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity pl-2 border-l border-[var(--border)]",children:[(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),r||s?.(e.id)},disabled:r,className:`p-1 rounded transition-all ${r?"cursor-wait text-[var(--destructive)]/80 opacity-80":"hover:bg-[var(--destructive)]/10 text-[var(--muted-foreground)] hover:text-[var(--destructive)]"}`,title:r?"Stopping...":"Stop Task","data-no-panel-drag":"true",children:r?(0,t.jsx)("span",{className:"inline-flex h-3 w-3 rounded-full border border-[var(--destructive)] border-t-transparent animate-spin"}):(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}),(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),o?.(e.id)},className:"p-1 hover:bg-[var(--primary)]/10 text-[var(--muted-foreground)] hover:text-[var(--primary)] rounded",title:"Retry / Restart","data-no-panel-drag":"true",children:(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),(0,t.jsx)("path",{d:"M3 3v5h5"}),(0,t.jsx)("path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16"}),(0,t.jsx)("path",{d:"M16 21h5v-5"})]})})]})]},e.id)})})})})}e.s(["default",()=>y],867041)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,632077,o=>{o.n(o.i(687990))}]);
|
package/cloud-runtime/standalone/.next/static/chunks/{787436fad75f5bc6.js → ccaf68956da192f8.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63209,e=>{"use strict";let t=(0,e.i(75254).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",()=>t],63209)},73884,e=>{"use strict";let t=(0,e.i(75254).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",()=>t],73884)},75254,e=>{"use strict";var t=e.i(71645);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:d="",children:n,iconNode:o,...c},x)=>(0,t.createElement)("svg",{ref:x,...a,width:r,height:r,stroke:e,strokeWidth:i?24*Number(l)/Number(r):l,className:s("lucide",d),...!n&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...o.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(n)?n:[n]])),i=(e,a)=>{let i=(0,t.forwardRef)(({className:i,...d},n)=>(0,t.createElement)(l,{ref:n,iconNode:a,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...d}));return i.displayName=r(e),i};e.s(["default",()=>i],75254)},7233,e=>{"use strict";let t=(0,e.i(75254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",()=>t],7233)},39312,e=>{"use strict";let t=(0,e.i(75254).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",()=>t],39312)},3116,e=>{"use strict";let t=(0,e.i(75254).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",()=>t],3116)},73375,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",()=>t],73375)},95468,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",()=>t],95468)},68054,e=>{"use strict";let t=(0,e.i(75254).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],68054)},31343,84765,e=>{"use strict";var t=e.i(75254);let s=(0,t.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>s],31343);let r=(0,t.default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",()=>r],84765)},81418,e=>{"use strict";let t=(0,e.i(75254).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",()=>t],81418)},87177,e=>{"use strict";var t=e.i(18050),s=e.i(71645),r=e.i(7233),a=e.i(73375),l=e.i(95468),i=e.i(75254);let d=(0,i.default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),n=(0,i.default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var o=e.i(73884);let c=(0,i.default)("construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]),x=(0,i.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),p=(0,i.default)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);var h=e.i(31343),m=e.i(84765),u=e.i(63209);let b=(0,i.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);var g=e.i(68054),f=e.i(3116);let v=(0,i.default)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),j=(0,i.default)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);var y=e.i(81418),k=e.i(39312);let N=(0,i.default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]),w=(0,i.default)("arrow-right-left",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]),z=[{id:"task-1",title:"Auth system",status:"PROGRESS",version:"v2",progress:60,nodesCount:7,mode:"PROJECT",currentGate:"quality-gate",policy:{replanBudgetInitial:3,replanBudgetRemaining:1,verifyBudgetInitial:5,verifyBudgetRemaining:4},history:[{id:1,event:"replan",from:"v1",to:"v2",reason:"Split implementation for parallelism",time:"2h ago"},{id:2,event:"node_status",node:"design",to:"done",time:"3h ago"}]},{id:"task-2",title:"Add dark mode",status:"INTAKE",version:"v1",progress:0,nodesCount:0,mode:"SIMPLE",blockingReason:"Analyzing requirements..."},{id:"task-3",title:"Fix login bug",status:"DONE",version:"v1",progress:100,nodesCount:3,mode:"SIMPLE"}],C=[{id:"n1",type:"work",title:"Design Auth",status:"done",x:300,y:40,metrics:{latency:"45m",tokens:"12k"}},{id:"f1",type:"fork",title:"Fork",status:"done",x:300,y:120},{id:"n2",type:"work",title:"Impl Auth",status:"done",x:180,y:220,metrics:{latency:"1h 20m",tokens:"45k"}},{id:"n3",type:"work",title:"Write Tests",status:"running",x:420,y:220,attempts:2,maxAttempts:3},{id:"j1",type:"join",title:"Join",status:"pending",x:300,y:320},{id:"g1",type:"gate",title:"Quality Gate",status:"pending",x:300,y:420,required:!0,strategy:"auto"},{id:"g2",type:"gate",title:"Handoff Gate",status:"pending",x:300,y:540,required:!0,strategy:"human",isLocked:!0}],M=[{from:"n1",to:"f1"},{from:"f1",to:"n2"},{from:"f1",to:"n3"},{from:"n2",to:"j1"},{from:"n3",to:"j1"},{from:"j1",to:"g1"},{from:"g1",to:"g2"}],A=({status:e,className:s,size:r=16})=>{switch(e){case"done":case"passed":return(0,t.jsx)(l.CheckCircle2,{size:r,className:`${s} text-green-500`});case"running":return(0,t.jsx)(d,{size:r,className:`${s} text-blue-500 animate-spin`});case"failed":return(0,t.jsx)(o.XCircle,{size:r,className:`${s} text-red-500`});case"pending":return(0,t.jsx)(n,{size:r,className:`${s} text-[var(--app-shell-soft-text)]`});case"blocked":return(0,t.jsx)(c,{size:r,className:`${s} text-orange-500`});default:return null}},E=({label:e,current:s,total:r,colorClass:a})=>{let l=s/r*100;return(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase tracking-wider mb-1",children:[(0,t.jsx)("span",{children:e}),(0,t.jsxs)("span",{children:[s,"/",r]})]}),(0,t.jsx)("div",{className:"w-full h-2 bg-[var(--secondary)] rounded-full overflow-hidden border border-[var(--border)]/50",children:(0,t.jsx)("div",{className:`h-full transition-all duration-700 ease-out ${a}`,style:{width:`${l}%`}})})]})},S=({task:e,onClick:s})=>(0,t.jsxs)("div",{onClick:()=>s(e),className:"bg-[var(--card-bg)] border border-[var(--border)] rounded-xl p-4 shadow-sm hover:shadow-lg hover:border-blue-200 transition-all cursor-pointer group",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,t.jsx)("h4",{className:"font-bold text-[var(--foreground)] group-hover:text-blue-600 transition-colors",children:e.title}),(0,t.jsx)("span",{className:`text-[9px] px-1.5 py-0.5 rounded font-black uppercase tracking-widest ${"SIMPLE"===e.mode?"bg-[var(--secondary)] text-[var(--muted-foreground)]":"bg-blue-100 text-blue-600"}`,children:e.mode})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[10px] font-bold text-[var(--app-shell-soft-text)] mb-4",children:[(0,t.jsx)(j,{size:12}),(0,t.jsxs)("span",{children:[e.nodesCount," nodes"]}),(0,t.jsx)("span",{className:"text-[var(--border)]",children:"•"}),(0,t.jsx)("span",{children:e.version})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("div",{className:"flex justify-between items-center mb-1.5",children:(0,t.jsxs)("span",{className:"text-[10px] font-black text-[var(--muted-foreground)]",children:[e.progress,"%"]})}),(0,t.jsx)("div",{className:"w-full h-1.5 bg-[var(--secondary)] rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:`h-full transition-all duration-1000 ${"DONE"===e.status?"bg-green-500":"bg-blue-500"}`,style:{width:`${e.progress}%`}})})]}),e.currentGate&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[10px] font-bold text-orange-600 bg-orange-50 px-2 py-1.5 rounded-lg border border-orange-100",children:[(0,t.jsx)(c,{size:14}),(0,t.jsx)("span",{className:"truncate uppercase tracking-wider",children:e.currentGate}),e.isLocked&&(0,t.jsx)(x,{size:10,className:"ml-auto opacity-50"})]}),"INTAKE"===e.status&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[10px] font-bold text-[var(--app-shell-soft-text)] px-2 py-1.5 bg-[var(--secondary)] rounded-lg border border-[var(--border)] italic animate-pulse",children:[(0,t.jsx)(g.Terminal,{size:12}),(0,t.jsx)("span",{children:e.blockingReason})]})]}),R=({node:e,isSelected:s,onClick:r})=>{let a="gate"===e.type,l=["fork","join","conditional"].includes(e.type);return(0,t.jsx)("div",{onClick:t=>{t.stopPropagation(),r(e)},className:`absolute flex flex-col items-center justify-center p-3 border-2 transition-all cursor-pointer z-20 hover:scale-105 active:scale-95 ${s?"ring-4 ring-blue-400/30 scale-105 border-blue-600":({done:"border-green-500 bg-green-50 text-green-700",passed:"border-green-500 bg-green-50 text-green-700",running:"border-blue-500 bg-blue-50 shadow-blue-100 shadow-xl ring-4 ring-blue-50",pending:"border-[var(--border)] bg-[var(--card-bg)] text-[var(--app-shell-soft-text)]",failed:"border-red-500 bg-red-50 text-red-700",blocked:"border-orange-500 bg-orange-50 text-orange-700"})[e.status]}`,style:{left:e.x,top:e.y,clipPath:a?"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)":l?"circle(50% at 50% 50%)":"none",transform:"translate(-50%, -50%)",width:l?"5rem":a?"8rem":"9rem",height:l?"5rem":a?"8rem":"5rem",borderRadius:l||a?"0":"1rem"},children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center text-center",children:[!l&&(0,t.jsx)("span",{className:"text-[9px] font-black uppercase tracking-tighter opacity-50 mb-0.5",children:e.type}),(0,t.jsx)("span",{className:`font-bold leading-tight ${l?"text-[10px]":"text-xs"}`,children:e.title}),(0,t.jsx)(A,{status:e.status,className:"mt-1.5",size:l?14:18}),e.required&&(0,t.jsx)(x,{size:10,className:"absolute top-2 right-2 opacity-30"})]})})};function $(){let e,[i,o]=(0,s.useState)("board"),[j,$]=(0,s.useState)(null),[P,T]=(0,s.useState)(null),[L,q]=(0,s.useState)(z),[B,I]=(0,s.useState)(2),G=e=>{$(e),I(parseInt(e.version.replace("v",""))),o("detail"),T(null)};return(0,t.jsxs)("div",{className:"antialiased min-h-screen",children:[(0,t.jsx)("style",{children:`
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63209,e=>{"use strict";let t=(0,e.i(475254).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",()=>t],63209)},373884,e=>{"use strict";let t=(0,e.i(475254).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",()=>t],373884)},503116,e=>{"use strict";let t=(0,e.i(475254).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",()=>t],503116)},475254,e=>{"use strict";var t=e.i(271645);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:d="",children:n,iconNode:o,...c},x)=>(0,t.createElement)("svg",{ref:x,...a,width:r,height:r,stroke:e,strokeWidth:i?24*Number(l)/Number(r):l,className:s("lucide",d),...!n&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...o.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(n)?n:[n]])),i=(e,a)=>{let i=(0,t.forwardRef)(({className:i,...d},n)=>(0,t.createElement)(l,{ref:n,iconNode:a,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...d}));return i.displayName=r(e),i};e.s(["default",()=>i],475254)},107233,e=>{"use strict";let t=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",()=>t],107233)},39312,e=>{"use strict";let t=(0,e.i(475254).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",()=>t],39312)},373375,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",()=>t],373375)},595468,e=>{"use strict";let t=(0,e.i(475254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",()=>t],595468)},284765,e=>{"use strict";let t=(0,e.i(475254).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",()=>t],284765)},431343,e=>{"use strict";let t=(0,e.i(475254).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>t],431343)},868054,e=>{"use strict";let t=(0,e.i(475254).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],868054)},581418,e=>{"use strict";let t=(0,e.i(475254).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",()=>t],581418)},487177,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(107233),a=e.i(373375),l=e.i(595468),i=e.i(475254);let d=(0,i.default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),n=(0,i.default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var o=e.i(373884);let c=(0,i.default)("construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]),x=(0,i.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),p=(0,i.default)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);var h=e.i(431343),m=e.i(284765),u=e.i(63209);let b=(0,i.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);var g=e.i(868054),f=e.i(503116);let v=(0,i.default)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),j=(0,i.default)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);var y=e.i(581418),k=e.i(39312);let N=(0,i.default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]),w=(0,i.default)("arrow-right-left",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]),z=[{id:"task-1",title:"Auth system",status:"PROGRESS",version:"v2",progress:60,nodesCount:7,mode:"PROJECT",currentGate:"quality-gate",policy:{replanBudgetInitial:3,replanBudgetRemaining:1,verifyBudgetInitial:5,verifyBudgetRemaining:4},history:[{id:1,event:"replan",from:"v1",to:"v2",reason:"Split implementation for parallelism",time:"2h ago"},{id:2,event:"node_status",node:"design",to:"done",time:"3h ago"}]},{id:"task-2",title:"Add dark mode",status:"INTAKE",version:"v1",progress:0,nodesCount:0,mode:"SIMPLE",blockingReason:"Analyzing requirements..."},{id:"task-3",title:"Fix login bug",status:"DONE",version:"v1",progress:100,nodesCount:3,mode:"SIMPLE"}],C=[{id:"n1",type:"work",title:"Design Auth",status:"done",x:300,y:40,metrics:{latency:"45m",tokens:"12k"}},{id:"f1",type:"fork",title:"Fork",status:"done",x:300,y:120},{id:"n2",type:"work",title:"Impl Auth",status:"done",x:180,y:220,metrics:{latency:"1h 20m",tokens:"45k"}},{id:"n3",type:"work",title:"Write Tests",status:"running",x:420,y:220,attempts:2,maxAttempts:3},{id:"j1",type:"join",title:"Join",status:"pending",x:300,y:320},{id:"g1",type:"gate",title:"Quality Gate",status:"pending",x:300,y:420,required:!0,strategy:"auto"},{id:"g2",type:"gate",title:"Handoff Gate",status:"pending",x:300,y:540,required:!0,strategy:"human",isLocked:!0}],M=[{from:"n1",to:"f1"},{from:"f1",to:"n2"},{from:"f1",to:"n3"},{from:"n2",to:"j1"},{from:"n3",to:"j1"},{from:"j1",to:"g1"},{from:"g1",to:"g2"}],A=({status:e,className:s,size:r=16})=>{switch(e){case"done":case"passed":return(0,t.jsx)(l.CheckCircle2,{size:r,className:`${s} text-green-500`});case"running":return(0,t.jsx)(d,{size:r,className:`${s} text-blue-500 animate-spin`});case"failed":return(0,t.jsx)(o.XCircle,{size:r,className:`${s} text-red-500`});case"pending":return(0,t.jsx)(n,{size:r,className:`${s} text-[var(--app-shell-soft-text)]`});case"blocked":return(0,t.jsx)(c,{size:r,className:`${s} text-orange-500`});default:return null}},E=({label:e,current:s,total:r,colorClass:a})=>{let l=s/r*100;return(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase tracking-wider mb-1",children:[(0,t.jsx)("span",{children:e}),(0,t.jsxs)("span",{children:[s,"/",r]})]}),(0,t.jsx)("div",{className:"w-full h-2 bg-[var(--secondary)] rounded-full overflow-hidden border border-[var(--border)]/50",children:(0,t.jsx)("div",{className:`h-full transition-all duration-700 ease-out ${a}`,style:{width:`${l}%`}})})]})},S=({task:e,onClick:s})=>(0,t.jsxs)("div",{onClick:()=>s(e),className:"bg-[var(--card-bg)] border border-[var(--border)] rounded-xl p-4 shadow-sm hover:shadow-lg hover:border-blue-200 transition-all cursor-pointer group",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,t.jsx)("h4",{className:"font-bold text-[var(--foreground)] group-hover:text-blue-600 transition-colors",children:e.title}),(0,t.jsx)("span",{className:`text-[9px] px-1.5 py-0.5 rounded font-black uppercase tracking-widest ${"SIMPLE"===e.mode?"bg-[var(--secondary)] text-[var(--muted-foreground)]":"bg-blue-100 text-blue-600"}`,children:e.mode})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[10px] font-bold text-[var(--app-shell-soft-text)] mb-4",children:[(0,t.jsx)(j,{size:12}),(0,t.jsxs)("span",{children:[e.nodesCount," nodes"]}),(0,t.jsx)("span",{className:"text-[var(--border)]",children:"•"}),(0,t.jsx)("span",{children:e.version})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("div",{className:"flex justify-between items-center mb-1.5",children:(0,t.jsxs)("span",{className:"text-[10px] font-black text-[var(--muted-foreground)]",children:[e.progress,"%"]})}),(0,t.jsx)("div",{className:"w-full h-1.5 bg-[var(--secondary)] rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:`h-full transition-all duration-1000 ${"DONE"===e.status?"bg-green-500":"bg-blue-500"}`,style:{width:`${e.progress}%`}})})]}),e.currentGate&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[10px] font-bold text-orange-600 bg-orange-50 px-2 py-1.5 rounded-lg border border-orange-100",children:[(0,t.jsx)(c,{size:14}),(0,t.jsx)("span",{className:"truncate uppercase tracking-wider",children:e.currentGate}),e.isLocked&&(0,t.jsx)(x,{size:10,className:"ml-auto opacity-50"})]}),"INTAKE"===e.status&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[10px] font-bold text-[var(--app-shell-soft-text)] px-2 py-1.5 bg-[var(--secondary)] rounded-lg border border-[var(--border)] italic animate-pulse",children:[(0,t.jsx)(g.Terminal,{size:12}),(0,t.jsx)("span",{children:e.blockingReason})]})]}),R=({node:e,isSelected:s,onClick:r})=>{let a="gate"===e.type,l=["fork","join","conditional"].includes(e.type);return(0,t.jsx)("div",{onClick:t=>{t.stopPropagation(),r(e)},className:`absolute flex flex-col items-center justify-center p-3 border-2 transition-all cursor-pointer z-20 hover:scale-105 active:scale-95 ${s?"ring-4 ring-blue-400/30 scale-105 border-blue-600":({done:"border-green-500 bg-green-50 text-green-700",passed:"border-green-500 bg-green-50 text-green-700",running:"border-blue-500 bg-blue-50 shadow-blue-100 shadow-xl ring-4 ring-blue-50",pending:"border-[var(--border)] bg-[var(--card-bg)] text-[var(--app-shell-soft-text)]",failed:"border-red-500 bg-red-50 text-red-700",blocked:"border-orange-500 bg-orange-50 text-orange-700"})[e.status]}`,style:{left:e.x,top:e.y,clipPath:a?"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)":l?"circle(50% at 50% 50%)":"none",transform:"translate(-50%, -50%)",width:l?"5rem":a?"8rem":"9rem",height:l?"5rem":a?"8rem":"5rem",borderRadius:l||a?"0":"1rem"},children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center text-center",children:[!l&&(0,t.jsx)("span",{className:"text-[9px] font-black uppercase tracking-tighter opacity-50 mb-0.5",children:e.type}),(0,t.jsx)("span",{className:`font-bold leading-tight ${l?"text-[10px]":"text-xs"}`,children:e.title}),(0,t.jsx)(A,{status:e.status,className:"mt-1.5",size:l?14:18}),e.required&&(0,t.jsx)(x,{size:10,className:"absolute top-2 right-2 opacity-30"})]})})};function $(){let e,[i,o]=(0,s.useState)("board"),[j,$]=(0,s.useState)(null),[P,T]=(0,s.useState)(null),[L,q]=(0,s.useState)(z),[B,I]=(0,s.useState)(2),G=e=>{$(e),I(parseInt(e.version.replace("v",""))),o("detail"),T(null)};return(0,t.jsxs)("div",{className:"antialiased min-h-screen",children:[(0,t.jsx)("style",{children:`
|
|
2
2
|
@keyframes dash {
|
|
3
3
|
to { stroke-dashoffset: -10; }
|
|
4
4
|
}
|
|
5
|
-
`}),"board"===i?(0,t.jsxs)("div",{className:"flex flex-col h-screen bg-[var(--secondary)] font-sans text-[var(--foreground)] overflow-hidden",children:[(0,t.jsxs)("header",{className:"desktop-titlebar flex items-center justify-between px-8 py-5 bg-[var(--card-bg)] border-b border-[var(--border)]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center text-white font-black text-2xl shadow-xl shadow-blue-200 transform -rotate-3 hover:rotate-0 transition-transform cursor-pointer",children:"ag"}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("h1",{className:"text-2xl font-black tracking-tight flex items-center gap-2",children:["agx ",(0,t.jsx)("span",{className:"text-blue-600",children:"v2"})]}),(0,t.jsx)("p",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-[0.2em]",children:"Execution Graph Engine"})]})]}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2 bg-[var(--secondary)] rounded-lg text-[var(--muted-foreground)] font-bold text-xs border border-[var(--border)]",children:[(0,t.jsx)(f.Clock,{size:14})," System Time: 21:50"]}),(0,t.jsxs)("button",{className:"flex items-center gap-2 px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white rounded-xl font-bold transition-all shadow-lg shadow-blue-200 active:scale-95",children:[(0,t.jsx)(r.Plus,{size:18,strokeWidth:3}),"New Execution"]})]})]}),(0,t.jsx)("main",{className:"flex-1 overflow-x-auto p-8 bg-[var(--background)]",children:(0,t.jsx)("div",{className:"flex gap-8 min-w-max h-full",children:[{id:"INTAKE",icon:(0,t.jsx)(g.Terminal,{size:14}),label:"Intake",color:"slate"},{id:"PROGRESS",icon:(0,t.jsx)(k.Zap,{size:14}),label:"Progress",color:"blue"},{id:"DONE",icon:(0,t.jsx)(y.ShieldCheck,{size:14}),label:"Done",color:"green"}].map(e=>(0,t.jsxs)("div",{className:"w-85 flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-2",children:[(0,t.jsxs)("div",{className:`flex items-center gap-2 font-black text-sm uppercase tracking-widest text-${e.color}-500`,children:[e.icon," ",e.label]}),(0,t.jsx)("span",{className:"text-[10px] font-black bg-[var(--card-bg)] border border-[var(--border)] text-[var(--app-shell-soft-text)] px-3 py-1 rounded-full shadow-sm",children:L.filter(t=>t.status===e.id).length})]}),(0,t.jsx)("div",{className:"flex flex-col gap-4 overflow-y-auto pb-8",children:L.filter(t=>t.status===e.id).map(e=>(0,t.jsx)(S,{task:e,onClick:G},e.id))})]},e.id))})})]}):(e="PROJECT"===j.mode,(0,t.jsxs)("div",{className:"flex flex-col h-screen bg-[var(--card-bg)] font-sans text-[var(--foreground)] overflow-hidden",children:[(0,t.jsxs)("header",{className:"desktop-titlebar flex items-center px-6 py-4 border-b border-[var(--border)] bg-[var(--card-bg)] z-50 shadow-sm",children:[(0,t.jsx)("button",{onClick:()=>{o("board"),$(null),T(null)},className:"p-2.5 hover:bg-[var(--item-hover-bg)] rounded-xl transition-colors mr-4 text-[var(--app-shell-soft-text)] hover:text-[var(--foreground)]",children:(0,t.jsx)(a.ChevronLeft,{size:24,strokeWidth:2.5})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("h2",{className:"text-xl font-black tracking-tight",children:j.title}),(0,t.jsxs)("div",{className:"flex gap-1.5",children:[(0,t.jsxs)("span",{className:"px-2 py-0.5 bg-blue-600 text-white text-[9px] font-black rounded uppercase tracking-widest",children:["v",B]}),(0,t.jsxs)("span",{className:"px-2 py-0.5 bg-[var(--secondary)] text-[var(--muted-foreground)] border border-[var(--border)] text-[9px] font-black rounded uppercase tracking-widest",children:[j.progress,"% Complete"]})]})]}),(0,t.jsxs)("div",{className:"flex gap-4 mt-0.5",children:[(0,t.jsxs)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-bold uppercase tracking-tight",children:["ID: ",j.id]}),(0,t.jsx)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-bold uppercase tracking-tight",children:"• Phase: Implementation"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("button",{className:"flex items-center gap-2 px-4 py-2 text-[var(--muted-foreground)] hover:text-[var(--foreground)] font-bold text-xs bg-[var(--secondary)] border border-[var(--border)] rounded-lg transition-all active:scale-95",children:[(0,t.jsx)(m.Settings2,{size:16})," Configure"]}),(0,t.jsxs)("button",{onClick:()=>{let e=B+1;I(e);let t={...j,version:`v${e}`,policy:{...j.policy,replanBudgetRemaining:Math.max(0,j.policy.replanBudgetRemaining-1)},history:[{id:Date.now(),event:"replan",from:`v${B}`,to:`v${e}`,reason:"Manual scope adjustment",time:"Just now"},...j.history]};$(t),q(e=>e.map(e=>e.id===j.id?t:e))},className:"flex items-center gap-2 px-4 py-2 bg-[var(--foreground)] hover:bg-black text-white rounded-lg font-bold text-xs transition-all shadow-md active:scale-95",children:[(0,t.jsx)(N,{size:16})," Trigger Replan"]}),(0,t.jsxs)("button",{className:"flex items-center gap-2 px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-black text-xs shadow-lg shadow-blue-200 transition-all active:scale-95",children:[(0,t.jsx)(h.Play,{size:16,fill:"white"})," RESUME EXECUTION"]})]})]}),(0,t.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex-1 flex flex-col relative overflow-hidden bg-[var(--secondary)]",onClick:()=>T(null),children:[(0,t.jsx)("div",{className:"absolute top-6 left-6 z-10",children:(0,t.jsxs)("div",{className:"bg-[var(--card-bg)] backdrop-blur-md border border-[var(--border)] p-3 rounded-xl shadow-xl",children:[(0,t.jsx)("h3",{className:"text-[9px] font-black text-[var(--app-shell-soft-text)] uppercase mb-3 px-1 tracking-[0.2em]",children:"Visual Language"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-[var(--muted-foreground)]",children:[(0,t.jsx)("div",{className:"w-5 h-3 rounded bg-[var(--secondary)] border border-[var(--border)]"})," Work Node"]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-[var(--muted-foreground)]",children:[(0,t.jsx)("div",{className:"w-4 h-4 rotate-45 bg-[var(--secondary)] border border-[var(--border)]"})," Gate Node"]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-[var(--muted-foreground)]",children:[(0,t.jsx)("div",{className:"w-4 h-4 rounded-full bg-[var(--secondary)] border border-[var(--border)]"})," Control Node"]})]})]})}),(0,t.jsxs)("div",{className:"absolute bottom-6 left-6 z-10 flex gap-2",children:[(0,t.jsx)("button",{className:"p-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg shadow hover:bg-[var(--item-hover-bg)] text-[var(--app-shell-soft-text)]",children:(0,t.jsx)(r.Plus,{size:16})}),(0,t.jsx)("button",{className:"p-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg shadow hover:bg-[var(--item-hover-bg)] text-[var(--app-shell-soft-text)]",children:(0,t.jsx)(w,{size:16,className:"rotate-90"})}),(0,t.jsx)("button",{className:"px-3 py-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg shadow hover:bg-[var(--item-hover-bg)] text-[10px] font-black text-[var(--muted-foreground)] uppercase tracking-widest",children:"Fit to Screen"})]}),(0,t.jsx)("div",{className:"flex-1 overflow-auto relative p-20 flex items-center justify-center cursor-grab active:cursor-grabbing",children:e?(0,t.jsxs)("div",{className:"relative w-[600px] h-[600px] select-none",children:[(0,t.jsxs)("svg",{className:"absolute inset-0 w-full h-full pointer-events-none",style:{overflow:"visible"},children:[(0,t.jsx)("defs",{children:(0,t.jsx)("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orientation:"auto",children:(0,t.jsx)("polygon",{points:"0 0, 10 3.5, 0 7",fill:"var(--app-shell-soft-text)"})})}),M.map((e,s)=>{let r=C.find(t=>t.id===e.from),a=C.find(t=>t.id===e.to);return r&&a?(0,t.jsx)("line",{x1:r.x,y1:r.y,x2:a.x,y2:a.y,stroke:"var(--border)",strokeWidth:"2.5",markerEnd:"url(#arrowhead)",strokeDasharray:"work"===r.type&&"running"===r.status?"5,5":"none",className:"running"===r.status?"animate-[dash_1s_linear_infinite]":""},s):null})]}),C.map(e=>(0,t.jsx)(R,{node:e,isSelected:P?.id===e.id,onClick:T},e.id))]}):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center text-[var(--app-shell-soft-text)] bg-[var(--card-bg)] p-16 rounded-[2.5rem] border-2 border-dashed border-[var(--border)] max-w-md text-center shadow-inner",children:[(0,t.jsx)("div",{className:"w-20 h-20 bg-[var(--secondary)] rounded-3xl flex items-center justify-center mb-6 border border-[var(--border)] shadow-sm",children:(0,t.jsx)(g.Terminal,{size:40,className:"opacity-30"})}),(0,t.jsx)("h3",{className:"font-black text-xl text-[var(--secondary-foreground)] mb-3 tracking-tight",children:"Linear Task Logic"}),(0,t.jsx)("p",{className:"text-sm text-[var(--app-shell-soft-text)] font-medium leading-relaxed",children:"This task has been classified as SIMPLE. Execution runs through a predefined serial sequence without branching overhead."})]})}),(0,t.jsxs)("div",{className:"h-28 bg-[var(--card-bg)] border-t border-[var(--border)] px-8 py-4 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-[0.2em]",children:"Execution History Timeline"}),(0,t.jsx)("div",{className:"flex gap-4",children:(0,t.jsxs)("button",{className:"text-[10px] font-black text-blue-600 hover:text-blue-700 uppercase tracking-widest flex items-center gap-1.5",children:[(0,t.jsx)(p,{size:12})," View Full Logs"]})})]}),(0,t.jsxs)("div",{className:"flex items-center relative gap-24 h-full",children:[(0,t.jsx)("div",{className:"absolute top-1/2 left-0 w-full h-0.5 bg-[var(--secondary)] -translate-y-1/2"}),j.history.slice().reverse().map((e,s)=>(0,t.jsxs)("div",{className:"relative z-10 flex flex-col items-center group cursor-pointer",children:[(0,t.jsx)("div",{className:`w-3.5 h-3.5 rounded-full border-2 border-[var(--card-bg)] ring-4 ring-offset-2 transition-all group-hover:scale-125 ${s===j.history.length-1?"bg-blue-600 ring-blue-100 scale-110":"bg-[var(--app-shell-soft-text)] ring-transparent opacity-60"}`}),(0,t.jsx)("span",{className:`text-[10px] font-black mt-2 uppercase tracking-tighter ${s===j.history.length-1?"text-blue-600":"text-[var(--app-shell-soft-text)]"}`,children:e.from?`${e.from} → ${e.to}`:e.event}),(0,t.jsx)("span",{className:"text-[8px] font-bold text-[var(--app-shell-soft-text)] whitespace-nowrap",children:e.time})]},e.id)),(0,t.jsx)("div",{className:"ml-auto relative z-10 flex flex-col items-end",children:(0,t.jsxs)("div",{className:"px-4 py-1.5 bg-[var(--secondary)] border border-[var(--border)] rounded-lg text-[9px] font-black text-[var(--app-shell-soft-text)] italic tracking-widest uppercase shadow-sm",children:["Next Checkpoint: v",B+1]})})]})]})]}),(0,t.jsxs)("aside",{className:"w-90 border-l border-[var(--border)] p-8 flex flex-col gap-8 overflow-y-auto bg-[var(--card-bg)]",children:[P?(0,t.jsxs)("div",{className:"animate-in fade-in slide-in-from-right-4 duration-300",children:[(0,t.jsxs)("button",{onClick:()=>T(null),className:"mb-6 flex items-center gap-1.5 text-[10px] font-black text-blue-600 uppercase tracking-widest hover:gap-2 transition-all",children:[(0,t.jsx)(a.ChevronLeft,{size:14,strokeWidth:3})," Back to Overview"]}),(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-8",children:[(0,t.jsx)("div",{className:`w-14 h-14 rounded-2xl flex items-center justify-center border-2 ${"done"===P.status?"bg-green-50 border-green-200 text-green-600":"bg-blue-50 border-blue-200 text-blue-600"}`,children:"work"===P.type?(0,t.jsx)(k.Zap,{size:24}):"gate"===P.type?(0,t.jsx)(y.ShieldCheck,{size:24}):(0,t.jsx)(N,{size:24})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest",children:[P.type," Node"]}),(0,t.jsx)("h3",{className:"text-xl font-black tracking-tight",children:P.title})]})]}),(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("section",{children:[(0,t.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Current Status"}),(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3 bg-[var(--secondary)] rounded-xl border border-[var(--border)]",children:[(0,t.jsx)(A,{status:P.status,size:20}),(0,t.jsx)("span",{className:"text-xs font-black uppercase tracking-widest text-[var(--secondary-foreground)]",children:P.status})]})]}),"work"===P.type&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Performance Metrics"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"p-4 bg-[var(--card-bg)] border border-[var(--border)] rounded-xl",children:[(0,t.jsx)("p",{className:"text-[9px] font-bold text-[var(--app-shell-soft-text)] uppercase mb-1",children:"Latency"}),(0,t.jsx)("p",{className:"text-sm font-black text-[var(--foreground)]",children:P.metrics?.latency||"32m 14s"})]}),(0,t.jsxs)("div",{className:"p-4 bg-[var(--card-bg)] border border-[var(--border)] rounded-xl",children:[(0,t.jsx)("p",{className:"text-[9px] font-bold text-[var(--app-shell-soft-text)] uppercase mb-1",children:"Compute"}),(0,t.jsx)("p",{className:"text-sm font-black text-[var(--foreground)]",children:P.metrics?.tokens||"14.2k tokens"})]})]})]}),"gate"===P.type&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Gate Requirements"}),(0,t.jsx)("div",{className:"space-y-3",children:[{label:"Unit Tests",status:"pass"},{label:"Linting",status:"pass"},{label:"Type Safety",status:"pass"},{label:"Coverage (>80%)",status:"fail"}].map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center justify-between p-3 bg-[var(--card-bg)] border border-[var(--border)] rounded-xl",children:[(0,t.jsx)("span",{className:"text-[11px] font-bold text-[var(--muted-foreground)]",children:e.label}),"pass"===e.status?(0,t.jsx)(l.CheckCircle2,{size:16,className:"text-green-500"}):(0,t.jsx)(u.AlertCircle,{size:16,className:"text-red-500"})]},s))}),"pending"===P.status&&(0,t.jsxs)("div",{className:"mt-8 grid grid-cols-2 gap-3",children:[(0,t.jsx)("button",{className:"py-3 bg-red-50 text-red-600 border border-red-100 rounded-xl font-black text-[10px] uppercase tracking-widest hover:bg-red-100 transition-all",children:"Reject"}),(0,t.jsx)("button",{className:"py-3 bg-green-600 text-white rounded-xl font-black text-[10px] uppercase tracking-widest shadow-lg shadow-green-100 hover:bg-green-700 transition-all",children:"Approve Gate"})]})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Node Dependencies"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[M.filter(e=>e.to===P.id).map((e,s)=>(0,t.jsxs)("div",{className:"px-3 py-1.5 bg-[var(--secondary)] text-[var(--muted-foreground)] text-[10px] font-bold rounded-lg border border-[var(--border)]",children:["Source: ",e.from]},s)),0===M.filter(e=>e.to===P.id).length&&(0,t.jsx)("span",{className:"text-[10px] font-bold text-[var(--app-shell-soft-text)] italic uppercase",children:"Graph Start Node"})]})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-6",children:[(0,t.jsx)(u.AlertCircle,{size:14})," Execution Overview"]}),(0,t.jsxs)("div",{className:"bg-[var(--foreground)] p-5 rounded-2xl text-white shadow-xl shadow-[var(--border)]",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[9px] font-black text-blue-400 uppercase tracking-widest mb-1",children:"Active Worker"}),(0,t.jsxs)("h4",{className:"text-lg font-black tracking-tight flex items-center gap-2",children:["write-tests ",(0,t.jsx)("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]})]}),(0,t.jsx)(d,{size:20,className:"text-[var(--muted-foreground)] animate-[spin_3s_linear_infinite]"})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase",children:[(0,t.jsx)("span",{children:"Current Attempt"}),(0,t.jsx)("span",{className:"text-white",children:"2 / 3"})]}),(0,t.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase",children:[(0,t.jsx)("span",{children:"Time Elapsed"}),(0,t.jsx)("span",{className:"text-white font-mono",children:"15m 22s"})]})]})]})]}),(0,t.jsxs)("section",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-6",children:[(0,t.jsx)(b,{size:14})," Resource Budgets"]}),j.policy?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(E,{label:"Replans Remaining",current:j.policy.replanBudgetRemaining,total:j.policy.replanBudgetInitial,colorClass:"bg-blue-600"}),(0,t.jsx)(E,{label:"Verify Budget",current:j.policy.verifyBudgetRemaining,total:j.policy.verifyBudgetInitial,colorClass:"bg-indigo-600"})]}):(0,t.jsx)("div",{className:"p-4 bg-[var(--secondary)] rounded-xl border border-[var(--border)] text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase text-center tracking-widest",children:"Standard Policy Applied"})]}),(0,t.jsxs)("section",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-6",children:[(0,t.jsx)(c,{size:14})," Gate Verification"]}),(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"mt-1 flex items-center justify-center w-6 h-6 rounded-full bg-orange-100 text-orange-600 border border-orange-200",children:(0,t.jsx)(n,{size:12,strokeWidth:3})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-xs font-black text-[var(--secondary-foreground)] uppercase tracking-tight",children:"quality-gate"}),(0,t.jsx)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-medium leading-relaxed mt-1",children:"Pending: Coverage metrics must meet 80% threshold before proceeding."})]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-4 opacity-40",children:[(0,t.jsx)("div",{className:"mt-1 flex items-center justify-center w-6 h-6 rounded-full bg-[var(--secondary)] text-[var(--app-shell-soft-text)] border border-[var(--border)]",children:(0,t.jsx)(x,{size:12,strokeWidth:3})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-xs font-black text-[var(--secondary-foreground)] uppercase tracking-tight",children:"handoff-gate"}),(0,t.jsx)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-medium leading-relaxed mt-1",children:"Blocked: Human architecture review required after quality gate pass."})]})]})]})]})]}),(0,t.jsxs)("section",{className:"mt-auto pt-8 border-t border-[var(--border)]",children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:[(0,t.jsx)(v,{size:14})," Global Policy"]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex justify-between text-[10px] font-bold",children:[(0,t.jsx)("span",{className:"text-[var(--app-shell-soft-text)] uppercase",children:"Concurrency Limit"}),(0,t.jsx)("span",{className:"text-[var(--secondary-foreground)]",children:"3 WorkNodes"})]}),(0,t.jsxs)("div",{className:"flex justify-between text-[10px] font-bold",children:[(0,t.jsx)("span",{className:"text-[var(--app-shell-soft-text)] uppercase",children:"Mode"}),(0,t.jsx)("span",{className:"text-blue-600 uppercase",children:"Project / DAG"})]})]})]})]})]})]}))]})}e.s(["default",()=>$],87177)}]);
|
|
5
|
+
`}),"board"===i?(0,t.jsxs)("div",{className:"flex flex-col h-screen bg-[var(--secondary)] font-sans text-[var(--foreground)] overflow-hidden",children:[(0,t.jsxs)("header",{className:"desktop-titlebar flex items-center justify-between px-8 py-5 bg-[var(--card-bg)] border-b border-[var(--border)]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center text-white font-black text-2xl shadow-xl shadow-blue-200 transform -rotate-3 hover:rotate-0 transition-transform cursor-pointer",children:"ag"}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("h1",{className:"text-2xl font-black tracking-tight flex items-center gap-2",children:["agx ",(0,t.jsx)("span",{className:"text-blue-600",children:"v2"})]}),(0,t.jsx)("p",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-[0.2em]",children:"Execution Graph Engine"})]})]}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2 bg-[var(--secondary)] rounded-lg text-[var(--muted-foreground)] font-bold text-xs border border-[var(--border)]",children:[(0,t.jsx)(f.Clock,{size:14})," System Time: 21:50"]}),(0,t.jsxs)("button",{className:"flex items-center gap-2 px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white rounded-xl font-bold transition-all shadow-lg shadow-blue-200 active:scale-95",children:[(0,t.jsx)(r.Plus,{size:18,strokeWidth:3}),"New Execution"]})]})]}),(0,t.jsx)("main",{className:"flex-1 overflow-x-auto p-8 bg-[var(--background)]",children:(0,t.jsx)("div",{className:"flex gap-8 min-w-max h-full",children:[{id:"INTAKE",icon:(0,t.jsx)(g.Terminal,{size:14}),label:"Intake",color:"slate"},{id:"PROGRESS",icon:(0,t.jsx)(k.Zap,{size:14}),label:"Progress",color:"blue"},{id:"DONE",icon:(0,t.jsx)(y.ShieldCheck,{size:14}),label:"Done",color:"green"}].map(e=>(0,t.jsxs)("div",{className:"w-85 flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-2",children:[(0,t.jsxs)("div",{className:`flex items-center gap-2 font-black text-sm uppercase tracking-widest text-${e.color}-500`,children:[e.icon," ",e.label]}),(0,t.jsx)("span",{className:"text-[10px] font-black bg-[var(--card-bg)] border border-[var(--border)] text-[var(--app-shell-soft-text)] px-3 py-1 rounded-full shadow-sm",children:L.filter(t=>t.status===e.id).length})]}),(0,t.jsx)("div",{className:"flex flex-col gap-4 overflow-y-auto pb-8",children:L.filter(t=>t.status===e.id).map(e=>(0,t.jsx)(S,{task:e,onClick:G},e.id))})]},e.id))})})]}):(e="PROJECT"===j.mode,(0,t.jsxs)("div",{className:"flex flex-col h-screen bg-[var(--card-bg)] font-sans text-[var(--foreground)] overflow-hidden",children:[(0,t.jsxs)("header",{className:"desktop-titlebar flex items-center px-6 py-4 border-b border-[var(--border)] bg-[var(--card-bg)] z-50 shadow-sm",children:[(0,t.jsx)("button",{onClick:()=>{o("board"),$(null),T(null)},className:"p-2.5 hover:bg-[var(--item-hover-bg)] rounded-xl transition-colors mr-4 text-[var(--app-shell-soft-text)] hover:text-[var(--foreground)]",children:(0,t.jsx)(a.ChevronLeft,{size:24,strokeWidth:2.5})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("h2",{className:"text-xl font-black tracking-tight",children:j.title}),(0,t.jsxs)("div",{className:"flex gap-1.5",children:[(0,t.jsxs)("span",{className:"px-2 py-0.5 bg-blue-600 text-white text-[9px] font-black rounded uppercase tracking-widest",children:["v",B]}),(0,t.jsxs)("span",{className:"px-2 py-0.5 bg-[var(--secondary)] text-[var(--muted-foreground)] border border-[var(--border)] text-[9px] font-black rounded uppercase tracking-widest",children:[j.progress,"% Complete"]})]})]}),(0,t.jsxs)("div",{className:"flex gap-4 mt-0.5",children:[(0,t.jsxs)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-bold uppercase tracking-tight",children:["ID: ",j.id]}),(0,t.jsx)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-bold uppercase tracking-tight",children:"• Phase: Implementation"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("button",{className:"flex items-center gap-2 px-4 py-2 text-[var(--muted-foreground)] hover:text-[var(--foreground)] font-bold text-xs bg-[var(--secondary)] border border-[var(--border)] rounded-lg transition-all active:scale-95",children:[(0,t.jsx)(m.Settings2,{size:16})," Configure"]}),(0,t.jsxs)("button",{onClick:()=>{let e=B+1;I(e);let t={...j,version:`v${e}`,policy:{...j.policy,replanBudgetRemaining:Math.max(0,j.policy.replanBudgetRemaining-1)},history:[{id:Date.now(),event:"replan",from:`v${B}`,to:`v${e}`,reason:"Manual scope adjustment",time:"Just now"},...j.history]};$(t),q(e=>e.map(e=>e.id===j.id?t:e))},className:"flex items-center gap-2 px-4 py-2 bg-[var(--foreground)] hover:bg-black text-white rounded-lg font-bold text-xs transition-all shadow-md active:scale-95",children:[(0,t.jsx)(N,{size:16})," Trigger Replan"]}),(0,t.jsxs)("button",{className:"flex items-center gap-2 px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-black text-xs shadow-lg shadow-blue-200 transition-all active:scale-95",children:[(0,t.jsx)(h.Play,{size:16,fill:"white"})," RESUME EXECUTION"]})]})]}),(0,t.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex-1 flex flex-col relative overflow-hidden bg-[var(--secondary)]",onClick:()=>T(null),children:[(0,t.jsx)("div",{className:"absolute top-6 left-6 z-10",children:(0,t.jsxs)("div",{className:"bg-[var(--card-bg)] backdrop-blur-md border border-[var(--border)] p-3 rounded-xl shadow-xl",children:[(0,t.jsx)("h3",{className:"text-[9px] font-black text-[var(--app-shell-soft-text)] uppercase mb-3 px-1 tracking-[0.2em]",children:"Visual Language"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-[var(--muted-foreground)]",children:[(0,t.jsx)("div",{className:"w-5 h-3 rounded bg-[var(--secondary)] border border-[var(--border)]"})," Work Node"]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-[var(--muted-foreground)]",children:[(0,t.jsx)("div",{className:"w-4 h-4 rotate-45 bg-[var(--secondary)] border border-[var(--border)]"})," Gate Node"]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-[var(--muted-foreground)]",children:[(0,t.jsx)("div",{className:"w-4 h-4 rounded-full bg-[var(--secondary)] border border-[var(--border)]"})," Control Node"]})]})]})}),(0,t.jsxs)("div",{className:"absolute bottom-6 left-6 z-10 flex gap-2",children:[(0,t.jsx)("button",{className:"p-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg shadow hover:bg-[var(--item-hover-bg)] text-[var(--app-shell-soft-text)]",children:(0,t.jsx)(r.Plus,{size:16})}),(0,t.jsx)("button",{className:"p-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg shadow hover:bg-[var(--item-hover-bg)] text-[var(--app-shell-soft-text)]",children:(0,t.jsx)(w,{size:16,className:"rotate-90"})}),(0,t.jsx)("button",{className:"px-3 py-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg shadow hover:bg-[var(--item-hover-bg)] text-[10px] font-black text-[var(--muted-foreground)] uppercase tracking-widest",children:"Fit to Screen"})]}),(0,t.jsx)("div",{className:"flex-1 overflow-auto relative p-20 flex items-center justify-center cursor-grab active:cursor-grabbing",children:e?(0,t.jsxs)("div",{className:"relative w-[600px] h-[600px] select-none",children:[(0,t.jsxs)("svg",{className:"absolute inset-0 w-full h-full pointer-events-none",style:{overflow:"visible"},children:[(0,t.jsx)("defs",{children:(0,t.jsx)("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orientation:"auto",children:(0,t.jsx)("polygon",{points:"0 0, 10 3.5, 0 7",fill:"var(--app-shell-soft-text)"})})}),M.map((e,s)=>{let r=C.find(t=>t.id===e.from),a=C.find(t=>t.id===e.to);return r&&a?(0,t.jsx)("line",{x1:r.x,y1:r.y,x2:a.x,y2:a.y,stroke:"var(--border)",strokeWidth:"2.5",markerEnd:"url(#arrowhead)",strokeDasharray:"work"===r.type&&"running"===r.status?"5,5":"none",className:"running"===r.status?"animate-[dash_1s_linear_infinite]":""},s):null})]}),C.map(e=>(0,t.jsx)(R,{node:e,isSelected:P?.id===e.id,onClick:T},e.id))]}):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center text-[var(--app-shell-soft-text)] bg-[var(--card-bg)] p-16 rounded-[2.5rem] border-2 border-dashed border-[var(--border)] max-w-md text-center shadow-inner",children:[(0,t.jsx)("div",{className:"w-20 h-20 bg-[var(--secondary)] rounded-3xl flex items-center justify-center mb-6 border border-[var(--border)] shadow-sm",children:(0,t.jsx)(g.Terminal,{size:40,className:"opacity-30"})}),(0,t.jsx)("h3",{className:"font-black text-xl text-[var(--secondary-foreground)] mb-3 tracking-tight",children:"Linear Task Logic"}),(0,t.jsx)("p",{className:"text-sm text-[var(--app-shell-soft-text)] font-medium leading-relaxed",children:"This task has been classified as SIMPLE. Execution runs through a predefined serial sequence without branching overhead."})]})}),(0,t.jsxs)("div",{className:"h-28 bg-[var(--card-bg)] border-t border-[var(--border)] px-8 py-4 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-[0.2em]",children:"Execution History Timeline"}),(0,t.jsx)("div",{className:"flex gap-4",children:(0,t.jsxs)("button",{className:"text-[10px] font-black text-blue-600 hover:text-blue-700 uppercase tracking-widest flex items-center gap-1.5",children:[(0,t.jsx)(p,{size:12})," View Full Logs"]})})]}),(0,t.jsxs)("div",{className:"flex items-center relative gap-24 h-full",children:[(0,t.jsx)("div",{className:"absolute top-1/2 left-0 w-full h-0.5 bg-[var(--secondary)] -translate-y-1/2"}),j.history.slice().reverse().map((e,s)=>(0,t.jsxs)("div",{className:"relative z-10 flex flex-col items-center group cursor-pointer",children:[(0,t.jsx)("div",{className:`w-3.5 h-3.5 rounded-full border-2 border-[var(--card-bg)] ring-4 ring-offset-2 transition-all group-hover:scale-125 ${s===j.history.length-1?"bg-blue-600 ring-blue-100 scale-110":"bg-[var(--app-shell-soft-text)] ring-transparent opacity-60"}`}),(0,t.jsx)("span",{className:`text-[10px] font-black mt-2 uppercase tracking-tighter ${s===j.history.length-1?"text-blue-600":"text-[var(--app-shell-soft-text)]"}`,children:e.from?`${e.from} → ${e.to}`:e.event}),(0,t.jsx)("span",{className:"text-[8px] font-bold text-[var(--app-shell-soft-text)] whitespace-nowrap",children:e.time})]},e.id)),(0,t.jsx)("div",{className:"ml-auto relative z-10 flex flex-col items-end",children:(0,t.jsxs)("div",{className:"px-4 py-1.5 bg-[var(--secondary)] border border-[var(--border)] rounded-lg text-[9px] font-black text-[var(--app-shell-soft-text)] italic tracking-widest uppercase shadow-sm",children:["Next Checkpoint: v",B+1]})})]})]})]}),(0,t.jsxs)("aside",{className:"w-90 border-l border-[var(--border)] p-8 flex flex-col gap-8 overflow-y-auto bg-[var(--card-bg)]",children:[P?(0,t.jsxs)("div",{className:"animate-in fade-in slide-in-from-right-4 duration-300",children:[(0,t.jsxs)("button",{onClick:()=>T(null),className:"mb-6 flex items-center gap-1.5 text-[10px] font-black text-blue-600 uppercase tracking-widest hover:gap-2 transition-all",children:[(0,t.jsx)(a.ChevronLeft,{size:14,strokeWidth:3})," Back to Overview"]}),(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-8",children:[(0,t.jsx)("div",{className:`w-14 h-14 rounded-2xl flex items-center justify-center border-2 ${"done"===P.status?"bg-green-50 border-green-200 text-green-600":"bg-blue-50 border-blue-200 text-blue-600"}`,children:"work"===P.type?(0,t.jsx)(k.Zap,{size:24}):"gate"===P.type?(0,t.jsx)(y.ShieldCheck,{size:24}):(0,t.jsx)(N,{size:24})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest",children:[P.type," Node"]}),(0,t.jsx)("h3",{className:"text-xl font-black tracking-tight",children:P.title})]})]}),(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("section",{children:[(0,t.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Current Status"}),(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3 bg-[var(--secondary)] rounded-xl border border-[var(--border)]",children:[(0,t.jsx)(A,{status:P.status,size:20}),(0,t.jsx)("span",{className:"text-xs font-black uppercase tracking-widest text-[var(--secondary-foreground)]",children:P.status})]})]}),"work"===P.type&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Performance Metrics"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"p-4 bg-[var(--card-bg)] border border-[var(--border)] rounded-xl",children:[(0,t.jsx)("p",{className:"text-[9px] font-bold text-[var(--app-shell-soft-text)] uppercase mb-1",children:"Latency"}),(0,t.jsx)("p",{className:"text-sm font-black text-[var(--foreground)]",children:P.metrics?.latency||"32m 14s"})]}),(0,t.jsxs)("div",{className:"p-4 bg-[var(--card-bg)] border border-[var(--border)] rounded-xl",children:[(0,t.jsx)("p",{className:"text-[9px] font-bold text-[var(--app-shell-soft-text)] uppercase mb-1",children:"Compute"}),(0,t.jsx)("p",{className:"text-sm font-black text-[var(--foreground)]",children:P.metrics?.tokens||"14.2k tokens"})]})]})]}),"gate"===P.type&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Gate Requirements"}),(0,t.jsx)("div",{className:"space-y-3",children:[{label:"Unit Tests",status:"pass"},{label:"Linting",status:"pass"},{label:"Type Safety",status:"pass"},{label:"Coverage (>80%)",status:"fail"}].map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center justify-between p-3 bg-[var(--card-bg)] border border-[var(--border)] rounded-xl",children:[(0,t.jsx)("span",{className:"text-[11px] font-bold text-[var(--muted-foreground)]",children:e.label}),"pass"===e.status?(0,t.jsx)(l.CheckCircle2,{size:16,className:"text-green-500"}):(0,t.jsx)(u.AlertCircle,{size:16,className:"text-red-500"})]},s))}),"pending"===P.status&&(0,t.jsxs)("div",{className:"mt-8 grid grid-cols-2 gap-3",children:[(0,t.jsx)("button",{className:"py-3 bg-red-50 text-red-600 border border-red-100 rounded-xl font-black text-[10px] uppercase tracking-widest hover:bg-red-100 transition-all",children:"Reject"}),(0,t.jsx)("button",{className:"py-3 bg-green-600 text-white rounded-xl font-black text-[10px] uppercase tracking-widest shadow-lg shadow-green-100 hover:bg-green-700 transition-all",children:"Approve Gate"})]})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Node Dependencies"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[M.filter(e=>e.to===P.id).map((e,s)=>(0,t.jsxs)("div",{className:"px-3 py-1.5 bg-[var(--secondary)] text-[var(--muted-foreground)] text-[10px] font-bold rounded-lg border border-[var(--border)]",children:["Source: ",e.from]},s)),0===M.filter(e=>e.to===P.id).length&&(0,t.jsx)("span",{className:"text-[10px] font-bold text-[var(--app-shell-soft-text)] italic uppercase",children:"Graph Start Node"})]})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-6",children:[(0,t.jsx)(u.AlertCircle,{size:14})," Execution Overview"]}),(0,t.jsxs)("div",{className:"bg-[var(--foreground)] p-5 rounded-2xl text-white shadow-xl shadow-[var(--border)]",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[9px] font-black text-blue-400 uppercase tracking-widest mb-1",children:"Active Worker"}),(0,t.jsxs)("h4",{className:"text-lg font-black tracking-tight flex items-center gap-2",children:["write-tests ",(0,t.jsx)("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]})]}),(0,t.jsx)(d,{size:20,className:"text-[var(--muted-foreground)] animate-[spin_3s_linear_infinite]"})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase",children:[(0,t.jsx)("span",{children:"Current Attempt"}),(0,t.jsx)("span",{className:"text-white",children:"2 / 3"})]}),(0,t.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase",children:[(0,t.jsx)("span",{children:"Time Elapsed"}),(0,t.jsx)("span",{className:"text-white font-mono",children:"15m 22s"})]})]})]})]}),(0,t.jsxs)("section",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-6",children:[(0,t.jsx)(b,{size:14})," Resource Budgets"]}),j.policy?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(E,{label:"Replans Remaining",current:j.policy.replanBudgetRemaining,total:j.policy.replanBudgetInitial,colorClass:"bg-blue-600"}),(0,t.jsx)(E,{label:"Verify Budget",current:j.policy.verifyBudgetRemaining,total:j.policy.verifyBudgetInitial,colorClass:"bg-indigo-600"})]}):(0,t.jsx)("div",{className:"p-4 bg-[var(--secondary)] rounded-xl border border-[var(--border)] text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase text-center tracking-widest",children:"Standard Policy Applied"})]}),(0,t.jsxs)("section",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-6",children:[(0,t.jsx)(c,{size:14})," Gate Verification"]}),(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"mt-1 flex items-center justify-center w-6 h-6 rounded-full bg-orange-100 text-orange-600 border border-orange-200",children:(0,t.jsx)(n,{size:12,strokeWidth:3})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-xs font-black text-[var(--secondary-foreground)] uppercase tracking-tight",children:"quality-gate"}),(0,t.jsx)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-medium leading-relaxed mt-1",children:"Pending: Coverage metrics must meet 80% threshold before proceeding."})]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-4 opacity-40",children:[(0,t.jsx)("div",{className:"mt-1 flex items-center justify-center w-6 h-6 rounded-full bg-[var(--secondary)] text-[var(--app-shell-soft-text)] border border-[var(--border)]",children:(0,t.jsx)(x,{size:12,strokeWidth:3})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-xs font-black text-[var(--secondary-foreground)] uppercase tracking-tight",children:"handoff-gate"}),(0,t.jsx)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-medium leading-relaxed mt-1",children:"Blocked: Human architecture review required after quality gate pass."})]})]})]})]})]}),(0,t.jsxs)("section",{className:"mt-auto pt-8 border-t border-[var(--border)]",children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:[(0,t.jsx)(v,{size:14})," Global Policy"]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex justify-between text-[10px] font-bold",children:[(0,t.jsx)("span",{className:"text-[var(--app-shell-soft-text)] uppercase",children:"Concurrency Limit"}),(0,t.jsx)("span",{className:"text-[var(--secondary-foreground)]",children:"3 WorkNodes"})]}),(0,t.jsxs)("div",{className:"flex justify-between text-[10px] font-bold",children:[(0,t.jsx)("span",{className:"text-[var(--app-shell-soft-text)] uppercase",children:"Mode"}),(0,t.jsx)("span",{className:"text-blue-600 uppercase",children:"Project / DAG"})]})]})]})]})]})]}))]})}e.s(["default",()=>$],487177)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,233525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}}]);
|