@mndrk/agx 2.0.41 → 2.0.44
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 +10 -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 +64 -16
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- 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 +16 -15
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +16 -15
- 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 -7
- 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 +3 -3
- 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 +3 -3
- 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 +20 -19
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +20 -19
- 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 -7
- 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/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 +7 -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/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 +9 -7
- 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 +7 -5
- 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 +7 -5
- 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 +3 -3
- 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 +21 -20
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +21 -20
- 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 -7
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/board/page.js.nft.json +1 -1
- 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 +17 -16
- package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +17 -16
- 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 -7
- 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 +3 -3
- 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 +20 -19
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +20 -19
- 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 -7
- 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 +19 -18
- 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 +19 -18
- 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 -7
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page.js.nft.json +1 -1
- 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 +20 -19
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +20 -19
- 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 -7
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects/page.js.nft.json +1 -1
- 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 +20 -19
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +20 -19
- 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 -7
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- 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 +20 -19
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +20 -19
- 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 -7
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/skills/page.js.nft.json +1 -1
- 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 +20 -19
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +20 -19
- 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 -7
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/status/page.js.nft.json +1 -1
- 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 +20 -19
- package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +20 -19
- 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 -7
- 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 +3 -3
- 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 +3 -3
- 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 +20 -19
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +20 -19
- 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 -7
- 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 +10 -2
- package/cloud-runtime/standalone/.next/server/chunks/[externals]__29a2424c._.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]__0281ad06._.js +49 -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]__05243927._.js +29 -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]__0f6532d7._.js +93 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1017e012._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__13fe776f._.js +3 -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]__1be9b30e._.js +3 -0
- 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]__22b7bf38._.js +3 -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]__28524c6a._.js +3 -0
- 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]__2d15af44._.js +3 -0
- 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]__349d67e7._.js +61 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__34efe92e._.js +15 -0
- 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]__42804c1d._.js +110 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__44ef900b._.js +49 -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]__45a50de9._.js +3 -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]__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]__5650bac3._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__56dbe1a4._.js +39 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5a042505._.js +15 -0
- 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]__5d359afa._.js +21 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5e5eb809._.js +61 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5fbc700c._.js +25 -0
- 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]__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]__73b17f49._.js +3 -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 +29 -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]__7c94b104._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7cade6c6._.js +6 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7d4fa0fd._.js +3 -0
- 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]__91b51f33._.js +8 -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]__98d58423._.js +3 -0
- 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]__9d3a2caa._.js +134 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a1e62918._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a2e17f69._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ac9b93fd._.js +48 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ad4cb055._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ad6d6402._.js +29 -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]__b8f4e4a3._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bacb0193._.js +7 -0
- 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]__c0919d7d._.js +101 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c1b28690._.js +49 -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]__c5025f86._.js +66 -0
- 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]__c77efd85._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c9550a93._.js +39 -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]__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]__d3945cae._.js +15 -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 +34 -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]__dc542063._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dd1cb250._.js +49 -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]__dffa5183._.js +29 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e0994be2._.js +3 -0
- 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]__e4f01b5c._.js +97 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e5bad635._.js +44 -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]__f21849ad._.js +39 -0
- 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]__fb1f7e58._.js +39 -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/_110bf46e._.js +6 -0
- package/cloud-runtime/standalone/.next/server/chunks/_22fe5fd2._.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/_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/_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_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_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_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 +15 -0
- 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]__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]__35f9b4a6._.js +3 -0
- 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]__43a0398d._.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]__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]__7e7d6790._.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]__b6598a70._.js +3 -0
- 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]__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/_087a5b2b._.js +3 -0
- 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/_1e5aee62._.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/_3aa32c11._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_43472af3._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_45f91a8f._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_47e9a061._.js +14 -0
- 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/_629dc55c._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_69164b06._.js +95 -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/_95434d70._.js +3 -0
- 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/_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/_f1465cc8._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_f2a7beb1._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_fb404ac0._.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 +6 -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 +9 -2
- package/cloud-runtime/standalone/.next/server/instrumentation.js +2 -2
- 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/0010f3df27ae53b8.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/012b9216c9932478.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/09c637be82a06122.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/0c5b9fe15dda4972.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/0fe219bd73492107.js +5 -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/2375e3fd2a9b8844.js +2 -0
- package/cloud-runtime/standalone/.next/static/chunks/2618f9566e3788e4.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/2dbfd095c1e1d01f.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2e471cd7ac5cd8fb.js +6 -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/360fde144fd22461.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/416cf5039e669b5d.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/657c261f623752de.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/66769c2bf128027d.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/76229fb555232113.js +3 -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/95b85b1cb6868d27.js +1 -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/966278eaefc0aa32.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/aa4d86855d0a3a55.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/ab74849aeb87503e.js +5 -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/c3784233f00e1ff5.js +12 -0
- package/cloud-runtime/standalone/.next/static/chunks/c48afb0a7fd0423c.js +28 -0
- package/cloud-runtime/standalone/.next/static/chunks/{2d1d138d8ea3234c.css → c5661b1d4c5abd6a.css} +1 -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/d522224ad5c8d724.css +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/d96012bcfc98706a.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/da12f313213a5615.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/de271f8f22d293b4.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/e2fa3c18dd56dc25.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/e910386016ceacad.js +37 -0
- package/cloud-runtime/standalone/.next/static/chunks/f2fe77583374541b.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/README.md +37 -5
- package/cloud-runtime/standalone/app/api/automations/create/route.ts +2 -2
- 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 +43 -0
- package/cloud-runtime/standalone/app/api/linear/cycles/route.ts +22 -0
- package/cloud-runtime/standalone/app/api/linear/issues/route.ts +66 -0
- package/cloud-runtime/standalone/app/api/linear/mcp-setup/route.ts +181 -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 +13 -13
- package/cloud-runtime/standalone/app/layout.tsx +2 -0
- 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 +1321 -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/VersionBadge.tsx +24 -0
- package/cloud-runtime/standalone/components/chat-ui/ChatContainer.tsx +27 -14
- package/cloud-runtime/standalone/components/chat-ui/Composer.tsx +23 -5
- 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/useLinearIssues.ts +78 -0
- package/cloud-runtime/standalone/hooks/useLinearRuns.ts +137 -0
- package/cloud-runtime/standalone/hooks/useProjectResources.ts +0 -50
- package/cloud-runtime/standalone/lib/chat/composer-routing.ts +128 -0
- package/cloud-runtime/standalone/lib/cli-runner.ts +16 -16
- 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 +276 -0
- package/cloud-runtime/standalone/lib/linear-execution-prompt.ts +153 -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/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/vault-store.ts +2067 -0
- package/cloud-runtime/standalone/mcp/README.md +22 -11
- 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/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/tsconfig.tsbuildinfo +1 -1
- package/cloud-runtime/standalone/worker/index.js +4548 -367
- 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]__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]__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]__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/_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]__226f8a19._.js +0 -15
- 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/_314f4c49._.js +0 -14
- 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/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/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/5b567b289ca2273e.css +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/8a4684388ca0f6de.js +0 -7
- package/cloud-runtime/standalone/.next/static/chunks/9bde80696400d2ff.js +0 -12
- 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/{uSe1ovd3mKmeJLdjjWIQA → 1ixi4WIJBgIPp7LJeYeKs}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/.next/static/{uSe1ovd3mKmeJLdjjWIQA → 1ixi4WIJBgIPp7LJeYeKs}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/.next/static/{uSe1ovd3mKmeJLdjjWIQA → 1ixi4WIJBgIPp7LJeYeKs}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
module.exports=[924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},97812,e=>{"use strict";var t=e.i(960447),r=e.i(259833);e.i(201037);var a=e.i(200866),i=e.i(434542);let n=new Set(["replan","rollback"]);class o extends Error{expectedVersion;actualVersion;constructor(e,t){super(`Execution graph version conflict: expected ${e}, found ${t}.`),this.name="GraphVersionConflictError",this.expectedVersion=e,this.actualVersion=t}}class s extends Error{constructor(e){super(`Execution graph not found: ${e}`),this.name="GraphNotFoundError"}}class d extends Error{nodeIds;constructor(e,t){super(`Execution graph ${e} is missing node(s): ${t.join(", ")}`),this.name="GraphNodeNotFoundError",this.nodeIds=t}}class u extends Error{taskId;existingGraphId;constructor(e,t){super(`Task ${e} is already bound to execution graph ${t}.`),this.name="GraphTaskAlreadyBoundError",this.taskId=e,this.existingGraphId=t}}function p(e){return null==e?null:JSON.stringify(e)}function l(e){if(null==e)return null;if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}function c(e){let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toISOString()}function h(e){return!e||"object"!=typeof e||Array.isArray(e)?{}:e}function g(e){if(!(0,i.isAutomationFrontmatterEnabled)()||!e.schedule)return;let t=(0,i.getAutomationRepository)(),r=(0,a.graphAutomationToDefinition)({graphId:e.id,taskId:e.taskId,schedule:e.schedule,createdAt:e.createdAt,updatedAt:e.updatedAt,executionState:e.executionState});t.upsertAutomation(r),t.updateAutomationState(e.id,{nextRunAt:e.schedule.nextTickAt,lastRunAt:e.schedule.lastTickAt,updatedAt:e.updatedAt,runCount:e.schedule.runCount,consecutiveFailures:e.schedule.consecutiveFailures,tickInProgress:e.schedule.tickInProgress})}function E(e){let r=e.trim();if(!r)return null;let a=(0,t.getSQLiteDb)().prepare(`SELECT task_id AS taskId
|
|
2
|
+
FROM execution_graphs
|
|
3
|
+
WHERE id = ?
|
|
4
|
+
LIMIT 1`).get(r);return a?.taskId??null}function f(e){let{type:t,status:r,metrics:a,output:i,...n}=e;return{type:t,status:r,config:n,output:i??null,metrics:a??null}}function _(e){let t={...h(l(e.payload))};return"eventType"in t||(t.eventType=e.event_type),"timestamp"in t||(t.timestamp=c(e.timestamp)),t}function m(e){return{query(t,r){let a=e.prepare(t);return/^\s*(INSERT|UPDATE|DELETE)/i.test(t)&&!/RETURNING/i.test(t)?(a.run(...(r??[]).map(e=>e)),{rows:[]}):{rows:a.all(...(r??[]).map(e=>e))}}}}class R{getDb(){return(0,t.getSQLiteDb)()}createGraph(e,t){let a=this.getDb(),i=m(a);t?.skipTaskBinding&&(0,r.pragmaSet)(a,"foreign_keys = OFF");try{return(0,r.transaction)(a,()=>{let r=i.query("SELECT id FROM execution_graphs WHERE task_id = ? LIMIT 1",[e.taskId]).rows[0];if(r&&r.id!==e.id)throw new u(e.taskId,r.id);for(let[t,r]of(i.query(`INSERT INTO execution_graphs
|
|
5
|
+
(id, task_id, graph_version, mode, policy, done_criteria, schedule, created_at, updated_at)
|
|
6
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
7
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
8
|
+
task_id = excluded.task_id,
|
|
9
|
+
graph_version = excluded.graph_version,
|
|
10
|
+
mode = excluded.mode,
|
|
11
|
+
policy = excluded.policy,
|
|
12
|
+
done_criteria = excluded.done_criteria,
|
|
13
|
+
schedule = excluded.schedule,
|
|
14
|
+
created_at = excluded.created_at,
|
|
15
|
+
updated_at = excluded.updated_at`,[e.id,e.taskId,e.graphVersion,e.mode,p(e.policy),p(e.doneCriteria),p(e.schedule??null),e.createdAt,e.updatedAt]),i.query("DELETE FROM graph_nodes WHERE graph_id = ?",[e.id]),i.query("DELETE FROM graph_edges WHERE graph_id = ?",[e.id]),Object.entries(e.nodes))){let a=f(r);i.query(`INSERT INTO graph_nodes (graph_id, node_id, type, status, config, output, metrics)
|
|
16
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e.id,t,a.type,a.status,p(a.config),p(a.output),p(a.metrics)])}for(let t of e.edges)i.query(`INSERT INTO graph_edges (graph_id, from_id, to_id, type, condition, data_mapping)
|
|
17
|
+
VALUES (?, ?, ?, ?, ?, ?)`,[e.id,t.from,t.to,t.type,t.condition??null,p(t.dataMapping??null)]);for(let t of e.versionHistory)this.appendEventInternal(i,e.id,t);for(let t of e.runtimeEvents??[])this.appendEventInternal(i,e.id,t);t?.skipTaskBinding||i.query("UPDATE tasks SET graph_id = ? WHERE id = ?",[e.id,e.taskId]);let a=this.getGraphForTask(i,e.taskId);if(!a)throw new s(e.id);return g(a),a})}finally{t?.skipTaskBinding&&(0,r.pragmaSet)(a,"foreign_keys = ON")}}getGraph(e){let t=this.getDb();return this.getGraphForTask(m(t),e)}updateNodeRuntime(e,t,a){let i=this.getDb(),n=m(i);return(0,r.transaction)(i,()=>{if(!n.query("SELECT id, graph_version FROM execution_graphs WHERE id = ?",[e]).rows[0])throw new s(e);let r=Object.keys(t);if(0===r.length){let t=n.query("SELECT graph_version, updated_at FROM execution_graphs WHERE id = ?",[e]);return{graphVersion:t.rows[0].graph_version,updatedAt:c(t.rows[0].updated_at)}}let a=r.map(()=>"?").join(", "),i=n.query(`SELECT node_id, type, status, config, output, metrics
|
|
18
|
+
FROM graph_nodes WHERE graph_id = ? AND node_id IN (${a})`,[e,...r]),o=new Map;for(let e of i.rows)o.set(e.node_id,e);let u=r.filter(e=>!o.has(e));if(u.length>0)throw new d(e,u);for(let a of r){let r=t[a],i=o.get(a);if(!i||!r)continue;let s={...h(l(i.config)),...h(r.configPatch)};void 0!==r.startedAt&&(s.startedAt=r.startedAt),void 0!==r.completedAt&&(s.completedAt=r.completedAt),void 0!==r.actualMinutes&&(s.actualMinutes=r.actualMinutes),n.query(`UPDATE graph_nodes SET status = ?, metrics = ?, output = ?, config = ?
|
|
19
|
+
WHERE graph_id = ? AND node_id = ?`,[r.status??i.status,p(r.metrics??l(i.metrics)),p(r.output??l(i.output)),p(s),e,a])}let g=n.query("UPDATE execution_graphs SET updated_at = datetime('now') WHERE id = ? RETURNING graph_version, updated_at",[e]);return{graphVersion:g.rows[0].graph_version,updatedAt:c(g.rows[0].updated_at)}})}updateGraphStructure(e,t,a){let i=this.getDb(),n=m(i);return(0,r.transaction)(i,()=>{let r=n.query("SELECT id, task_id, graph_version, mode, policy, done_criteria, schedule FROM execution_graphs WHERE id = ?",[e]).rows[0];if(!r)throw new s(e);if(t.nodes)for(let[r,a]of(n.query("DELETE FROM graph_nodes WHERE graph_id = ?",[e]),Object.entries(t.nodes))){let t=f(a);n.query(`INSERT INTO graph_nodes (graph_id, node_id, type, status, config, output, metrics)
|
|
20
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e,r,t.type,t.status,p(t.config),p(t.output),p(t.metrics)])}if(t.edges)for(let r of(n.query("DELETE FROM graph_edges WHERE graph_id = ?",[e]),t.edges))n.query(`INSERT INTO graph_edges (graph_id, from_id, to_id, type, condition, data_mapping)
|
|
21
|
+
VALUES (?, ?, ?, ?, ?, ?)`,[e,r.from,r.to,r.type,r.condition??null,p(r.dataMapping??null)]);let a=n.query(`UPDATE execution_graphs
|
|
22
|
+
SET mode = ?, policy = ?, done_criteria = ?, schedule = ?, updated_at = datetime('now')
|
|
23
|
+
WHERE id = ?
|
|
24
|
+
RETURNING graph_version, updated_at`,[t.mode??r.mode,p(t.policy??l(r.policy)??{}),p(t.doneCriteria??l(r.done_criteria)??{}),p(t.schedule??l(r.schedule)??null),e]);if(void 0!==t.schedule){let e=this.getGraphForTask(n,r.task_id);e?.schedule&&g(e)}return{graphVersion:a.rows[0].graph_version,updatedAt:c(a.rows[0].updated_at)}})}appendEvent(e,t){let r=this.getDb();this.appendEventInternal(m(r),e,t)}getGraphForTask(e,t){let r=e.query(`SELECT id, task_id, graph_version, mode, policy, done_criteria, schedule, created_at, updated_at
|
|
25
|
+
FROM execution_graphs WHERE task_id = ? ORDER BY updated_at DESC LIMIT 1`,[t]).rows[0];if(!r)return null;let o=e.query(`SELECT node_id, type, status, config, output, metrics
|
|
26
|
+
FROM graph_nodes WHERE graph_id = ? ORDER BY node_id ASC`,[r.id]),s=e.query(`SELECT from_id, to_id, type, condition, data_mapping
|
|
27
|
+
FROM graph_edges WHERE graph_id = ? ORDER BY from_id ASC, to_id ASC`,[r.id]),d=e.query(`SELECT event_type, payload, timestamp
|
|
28
|
+
FROM graph_events WHERE graph_id = ? ORDER BY timestamp ASC, event_type ASC`,[r.id]),u={};for(let e of o.rows)u[e.node_id]=function(e){let t={...h(l(e.config)),type:e.type,status:e.status},r=l(e.metrics);null!==r&&(t.metrics=r);let a=l(e.output);return null!==a&&(t.output=a),t}(e);let p=s.rows.map(e=>({from:e.from_id,to:e.to_id,type:e.type,...e.condition?{condition:l(e.condition)}:{},...e.data_mapping?{dataMapping:l(e.data_mapping)}:{}})),g=[],E=[];for(let e of d.rows){let t=_(e);n.has(t.eventType)?g.push(t):E.push(t)}var f={id:r.id,taskId:r.task_id,graphVersion:r.graph_version,mode:r.mode,nodes:u,edges:p,policy:l(r.policy)??{},doneCriteria:l(r.done_criteria)??{},schedule:l(r.schedule)??void 0,versionHistory:g,runtimeEvents:E,createdAt:c(r.created_at),updatedAt:c(r.updated_at)};if(!(0,i.isAutomationFrontmatterEnabled)())return f;let m=(0,i.getAutomationRepository)().getAutomation(f.id);return m&&"execution_graph"===m.definition.target.type?{...f,schedule:(0,a.automationRecordToGraphSchedule)(m,f.schedule)}:f}appendEventInternal(e,t,r){e.query(`INSERT INTO graph_events (graph_id, event_type, payload, timestamp)
|
|
29
|
+
VALUES (?, ?, ?, ?)`,[t,r.eventType,p(r),r.timestamp])}}function y(){return new R}let A=new R;function T(e,t){return A.createGraph(e,t)}function v(e){return A.getGraph(e)}function I(e,t,r){return A.updateNodeRuntime(e,t,r)}function S(e,t,r){return A.updateGraphStructure(e,t,r)}function x(e,t){return A.appendEvent(e,t)}function k(e,r={}){let a=["graph_id = ?"],i=[e];r.eventType&&(a.push("event_type = ?"),i.push(r.eventType)),r.since&&(a.push("timestamp >= ?"),i.push(r.since));let n=r.limit??1e3,o=`SELECT event_type, payload, timestamp
|
|
30
|
+
FROM graph_events
|
|
31
|
+
WHERE ${a.join(" AND ")}
|
|
32
|
+
ORDER BY timestamp ASC, event_type ASC
|
|
33
|
+
LIMIT ?`;return i.push(n),m((0,t.getSQLiteDb)()).query(o,i).rows.map(e=>_(e))}function w(e){let r=e.trim();if(!r)return null;if((0,i.isAutomationFrontmatterEnabled)()){let e=(0,i.getAutomationRepository)().listVisibleAutomations({targetType:"execution_graph",state:"active",rootMessageId:r})[0];if(e?.definition.target.type==="execution_graph"){let t=e.definition.target.graphId??e.definition.id,r=e.definition.target.taskId??E(t);if(r)return{graphId:t,taskId:r}}if(!(0,i.isAutomationDualReadEnabled)())return null}return(0,t.getSQLiteDb)().prepare(`SELECT id AS graphId, task_id AS taskId
|
|
34
|
+
FROM execution_graphs
|
|
35
|
+
WHERE schedule IS NOT NULL
|
|
36
|
+
AND json_extract(schedule, '$.rootMessageId') = ?
|
|
37
|
+
AND json_extract(schedule, '$.state') = 'active'
|
|
38
|
+
ORDER BY updated_at DESC
|
|
39
|
+
LIMIT 1`).get(r)??null}function N(){let e=new Set;if((0,i.isAutomationFrontmatterEnabled)()){for(let t of(0,i.getAutomationRepository)().listVisibleAutomations({targetType:"execution_graph",state:"active"}))"execution_graph"===t.definition.target.type&&t.definition.target.rootMessageId&&e.add(t.definition.target.rootMessageId);if(!(0,i.isAutomationDualReadEnabled)())return[...e]}for(let r of(0,t.getSQLiteDb)().prepare(`SELECT json_extract(schedule, '$.rootMessageId') AS rootMessageId
|
|
40
|
+
FROM execution_graphs
|
|
41
|
+
WHERE schedule IS NOT NULL
|
|
42
|
+
AND json_extract(schedule, '$.state') = 'active'`).all())r.rootMessageId&&e.add(r.rootMessageId);return[...e]}function C(e){let r=e.trim();if(!r)return 0;let a=0;if((0,i.isAutomationFrontmatterEnabled)()){for(let e of(0,i.getAutomationRepository)().listVisibleAutomations({targetType:"execution_graph",state:"active",rootMessageId:r})){if("execution_graph"!==e.definition.target.type)continue;let t=e.definition.target.graphId??e.definition.id,r=e.definition.target.taskId??E(t);if(!r)continue;let i=v(r);i?.schedule&&(A.updateGraphStructure(i.id,{mode:i.mode,nodes:i.nodes,edges:i.edges,policy:i.policy,doneCriteria:i.doneCriteria,schedule:{...i.schedule,state:"stopped",tickInProgress:!1}},i.graphVersion),a+=1)}if(a>0||!(0,i.isAutomationDualReadEnabled)())return a}return Number((0,t.getSQLiteDb)().prepare(`UPDATE execution_graphs
|
|
43
|
+
SET schedule = json_set(schedule, '$.state', 'stopped', '$.tickInProgress', json('false')),
|
|
44
|
+
updated_at = strftime('%Y-%m-%dT%H:%M:%fZ','now')
|
|
45
|
+
WHERE schedule IS NOT NULL
|
|
46
|
+
AND json_extract(schedule, '$.rootMessageId') = ?
|
|
47
|
+
AND json_extract(schedule, '$.state') = 'active'`).run(r).changes??0)}e.s(["GraphNodeNotFoundError",()=>d,"GraphNotFoundError",()=>s,"GraphStore",()=>R,"GraphTaskAlreadyBoundError",()=>u,"GraphVersionConflictError",()=>o,"appendEvent",()=>x,"createGraph",()=>T,"createGraphStore",()=>y,"deactivateSchedulesByRootMessageId",()=>C,"getActiveScheduleForRootMessageId",()=>w,"getActiveScheduleRootMessageIds",()=>N,"getGraph",()=>v,"getGraphEvents",()=>k,"getTaskIdForGraphId",()=>E,"updateGraphStructure",()=>S,"updateNodeRuntime",()=>I])},306838,e=>{"use strict";var t=e.i(89171),r=e.i(949041),a=e.i(390081);async function i(e){let i=r.LOCAL_USER.id,n=await a.db.getTask(e.taskId,i);return n?{ok:!0,actor:{actorId:i,actorType:"service"},task:n,projectId:e.requestedProjectId??n.project_id??null}:{ok:!1,response:t.NextResponse.json({error:"Task not found"},{status:404})}}e.s(["authorizeGraphMutation",()=>i])},943771,e=>{"use strict";var t=e.i(747909),r=e.i(174017),a=e.i(996250),i=e.i(759756),n=e.i(561916),o=e.i(174677),s=e.i(869741),d=e.i(316795),u=e.i(487718),p=e.i(995169),l=e.i(47587),c=e.i(666012),h=e.i(570101),g=e.i(626937),E=e.i(10372),f=e.i(193695);e.i(52474);var _=e.i(600220),m=e.i(963279),R=e.i(886582),y=e.i(306838),A=e.i(97812);async function T(e,{params:t}){let{id:r}=await t,a=(0,R.normalizeTaskId)(r);if(!a)return(0,R.jsonWithSchema)(m.ErrorResponseSchema,{error:"Invalid task id"},{status:400});let i=await (0,y.authorizeGraphMutation)({request:e,taskId:a,action:"create"});if(!i.ok)return i.response;let n=await (0,A.getGraph)(a);if(!n)return(0,R.jsonWithSchema)(m.ErrorResponseSchema,{error:"Graph not found"},{status:404});let o=0,s=0,d=0,u=0,p=0,l=0,c=0,h=0;for(let e of Object.values(n.nodes))("done"===e.status||"passed"===e.status)&&(o+=1),"failed"===e.status&&(s+=1),d+=e.metrics?.tokensUsed??0,u+=e.metrics?.latencyMs??0,"work"===e.type&&(p+=e.estimateMinutes??0,l+=e.actualMinutes??0),"gate"===e.type&&("passed"===e.status?(c+=1,h+=1):"failed"===e.status&&(h+=1));let g=n.versionHistory.filter(e=>"replan"===e.eventType).length,E=h>0?c/h:0;return(0,R.jsonWithSchema)(m.GraphMetricsResponseSchema,{graphId:n.id,taskId:n.taskId,currentGraphVersion:n.graphVersion,metrics:{totalNodes:Object.keys(n.nodes).length,completedNodes:o,failedNodes:s,totalTokensUsed:d,totalLatencyMs:u,estimatedMinutes:p,actualMinutes:l,replanCount:g,gatePassRate:E}})}e.s(["GET",()=>T],371173);var v=e.i(371173);let I=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/tasks/[id]/graph/metrics/route",pathname:"/api/tasks/[id]/graph/metrics",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/tasks/[id]/graph/metrics/route.ts",nextConfigOutput:"standalone",userland:v}),{workAsyncStorage:S,workUnitAsyncStorage:x,serverHooks:k}=I;function w(){return(0,a.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:x})}async function N(e,t,a){I.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let m="/api/tasks/[id]/graph/metrics/route";m=m.replace(/\/index$/,"")||"/";let R=await I.prepare(e,t,{srcPage:m,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:y,params:A,nextConfig:T,parsedUrl:v,isDraftMode:S,prerenderManifest:x,routerServerContext:k,isOnDemandRevalidate:w,revalidateOnlyGenerated:N,resolvedPathname:C,clientReferenceManifest:O,serverActionsManifest:M}=R,D=(0,s.normalizeAppPath)(m),b=!!(x.dynamicRoutes[D]||x.routes[C]),L=async()=>((null==k?void 0:k.render404)?await k.render404(e,t,v,!1):t.end("This page could not be found"),null);if(b&&!S){let e=!!x.routes[C],t=x.dynamicRoutes[D];if(t&&!1===t.fallback&&!e){if(T.experimental.adapterPath)return await L();throw new f.NoFallbackError}}let F=null;!b||I.isDev||S||(F="/index"===(F=C)?"/":F);let G=!0===I.isDev||!b,H=b&&!G;M&&O&&(0,o.setManifestsSingleton)({page:m,clientReferenceManifest:O,serverActionsManifest:M});let q=e.method||"GET",U=(0,n.getTracer)(),P=U.getActiveScopeSpan(),j={params:A,prerenderManifest:x,renderOpts:{experimental:{authInterrupts:!!T.experimental.authInterrupts},cacheComponents:!!T.cacheComponents,supportsDynamicResponse:G,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:T.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,i)=>I.onRequestError(e,t,a,i,k)},sharedContext:{buildId:y}},W=new d.NodeNextRequest(e),V=new d.NodeNextResponse(t),$=u.NextRequestAdapter.fromNodeNextRequest(W,(0,u.signalFromNodeResponse)(t));try{let o=async e=>I.handle($,j).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=U.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${q} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${q} ${m}`)}),s=!!(0,i.getRequestMeta)(e,"minimalMode"),d=async i=>{var n,d;let u=async({previousCacheEntry:r})=>{try{if(!s&&w&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await o(i);e.fetchMetrics=j.renderOpts.fetchMetrics;let d=j.renderOpts.pendingWaitUntil;d&&a.waitUntil&&(a.waitUntil(d),d=void 0);let u=j.renderOpts.collectedTags;if(!b)return await (0,c.sendResponse)(W,V,n,j.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);u&&(t[E.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==j.renderOpts.collectedRevalidate&&!(j.renderOpts.collectedRevalidate>=E.INFINITE_CACHE)&&j.renderOpts.collectedRevalidate,a=void 0===j.renderOpts.collectedExpire||j.renderOpts.collectedExpire>=E.INFINITE_CACHE?void 0:j.renderOpts.collectedExpire;return{value:{kind:_.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await I.onRequestError(e,t,{routerKind:"App Router",routePath:m,routeType:"route",revalidateReason:(0,l.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:w})},!1,k),t}},p=await I.handleResponse({req:e,nextConfig:T,cacheKey:F,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:x,isRoutePPREnabled:!1,isOnDemandRevalidate:w,revalidateOnlyGenerated:N,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:s});if(!b)return null;if((null==p||null==(n=p.value)?void 0:n.kind)!==_.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",w?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),S&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,h.fromNodeOutgoingHttpHeaders)(p.value.headers);return s&&b||f.delete(E.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,g.getCacheControlHeader)(p.cacheControl)),await (0,c.sendResponse)(W,V,new Response(p.value.body,{headers:f,status:p.value.status||200})),null};P?await d(P):await U.withPropagatedContext(e.headers,()=>U.trace(p.BaseServerSpan.handleRequest,{spanName:`${q} ${m}`,kind:n.SpanKind.SERVER,attributes:{"http.method":q,"http.target":e.url}},d))}catch(t){if(t instanceof f.NoFallbackError||await I.onRequestError(e,t,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,l.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:w})},!1,k),b)throw t;return await (0,c.sendResponse)(W,V,new Response(null,{status:500})),null}}e.s(["handler",()=>N,"patchFetch",()=>w,"routeModule",()=>I,"serverHooks",()=>k,"workAsyncStorage",()=>S,"workUnitAsyncStorage",()=>x],943771)}];
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__46ad8e50._.js.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},259833,e=>{"use strict";function t(e,t){let r=e.prepare(`PRAGMA ${t}`).get();if(!r)return;let a=Object.values(r);return a.length>0?a[0]:void 0}function r(e,t){return e.prepare(`PRAGMA ${t}`).all()}function a(e,t){e.exec(`PRAGMA ${t}`)}function s(e,t){e.exec("BEGIN");try{let r=t();return e.exec("COMMIT"),r}catch(t){throw e.exec("ROLLBACK"),t}}function i(e,t){return(...r)=>{e.exec("BEGIN");try{let a=t(...r);return e.exec("COMMIT"),a}catch(t){throw e.exec("ROLLBACK"),t}}}e.s(["pragmaAll",()=>r,"pragmaGet",()=>t,"pragmaSet",()=>a,"transaction",()=>s,"transactionFn",()=>i])},233405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},949041,e=>{"use strict";let t={id:"2c3cc1ca-956d-4b62-b295-4d2d3374103f",email:process.env.AGX_BOARD_USER_EMAIL||"local@agx.board",name:process.env.AGX_BOARD_USER_NAME||"Local Board User"};e.s(["LOCAL_USER",0,t])},121729,e=>{"use strict";e.x("node:sqlite",()=>require("node:sqlite"),!0);var t=e.i(259833);e.i(522734);var r=e.i(446786),a=e.i(814747);let s="3.35.0",i=["json1"],n=["fts5"],o=["nfs","smb","cifs","efs","fuse.sshfs"];function l(e,t){try{if("json1"===t)return e.prepare("SELECT json('{}')").get(),!0;if("fts5"===t)return e.exec("CREATE VIRTUAL TABLE IF NOT EXISTS _fts5_check USING fts5(x)"),e.exec("DROP TABLE IF EXISTS _fts5_check"),!0;return!1}catch{return!1}}function d(d,u){let c=[],p=d.prepare("SELECT sqlite_version() as v").get();for(let e of(0>function(e,t){let r=e.split(".").map(Number),a=t.split(".").map(Number);for(let e=0;e<3;e++){let t=(r[e]||0)-(a[e]||0);if(0!==t)return t}return 0}(p.v,s)&&c.push({kind:"version_mismatch",message:`SQLite version ${p.v} is below minimum ${s}`,found:p.v,required:`>= ${s}`,fix:"Ensure Node.js >= 22.16 is installed (node:sqlite is built-in)"}),i))l(d,e)||c.push({kind:"missing_extension",message:`Required SQLite extension '${e}' is not available`,required:e,fix:`Rebuild SQLite with -DSQLITE_ENABLE_${e.toUpperCase()}=1, or use a system SQLite that includes it`});for(let e of n)l(d,e)||console.warn(`[startup] Recommended SQLite extension '${e}' is not available. Full-text search will be disabled.`);let h=function(t){"linux"!==r.default.platform()&&r.default.platform();try{let s=a.default.resolve(t),{execSync:i}=e.r(233405);if("darwin"===r.default.platform()){let e=i(`df -T "${s}" 2>/dev/null || df "${s}"`,{encoding:"utf-8",timeout:3e3}).trim().split("\n");if(e.length>=2){let t=e[1].split(/\s+/),r=t[0]?.toLowerCase()||"";if(r.includes("://")||r.includes("nfs")||r.includes("smb"))return r}}}catch{}return null}(u);h&&o.some(e=>h.toLowerCase().includes(e))&&c.push({kind:"filesystem_error",message:`Database path '${u}' is on a network filesystem (${h})`,path:u,found:h,fix:"Move the database file to a local SSD. WAL mode requires local filesystem with reliable fsync."});try{(0,t.pragmaSet)(d,"journal_mode = wal"),(0,t.pragmaSet)(d,"foreign_keys = 1"),(0,t.pragmaSet)(d,"busy_timeout = 5000"),(0,t.pragmaSet)(d,"synchronous = 1"),(0,t.pragmaSet)(d,"cache_size = -64000");let e=(0,t.pragmaGet)(d,"journal_mode").toLowerCase(),r=new Set(["wal","delete"]);if(!r.has(e)){(0,t.pragmaSet)(d,"journal_mode = DELETE");let e=(0,t.pragmaGet)(d,"journal_mode").toLowerCase();r.has(e)?((0,t.pragmaSet)(d,"synchronous = FULL"),console.warn(`[startup] WAL unavailable, using journal_mode=${e} with synchronous=FULL`)):c.push({kind:"pragma_error",message:`Failed to set journal_mode (got '${e}', tried WAL then DELETE)`,found:e,required:"wal or delete",fix:"Ensure the database file is on a local filesystem and no other process holds an exclusive lock."})}}catch(e){c.push({kind:"pragma_error",message:`Failed to apply required PRAGMAs: ${e.message}`,fix:"Check file permissions and ensure the database is not read-only."})}return c}e.s(["validateSQLiteEnvironment",()=>d])},666680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},457431,e=>{"use strict";function t(){let{createAdminDbClientSQLite:t}=e.r(960447);return t()}e.i(949041),e.s(["createAdminDbClient",()=>t])},37269,e=>{"use strict";var t=e.i(522734),r=e.i(446786),a=e.i(814747);let s=process.env.AGX_DATA_DIR||a.default.join(r.default.homedir(),".agx"),i=process.env.AGX_DEBUG_LOG_PATH||a.default.join(s,"logs","desktop-chat-debug.log");function n(e,t){return t instanceof Error?{name:t.name,message:t.message,stack:t.stack}:"string"==typeof t&&t.length>2e3?`${t.slice(0,2e3)}...<truncated>`:t}function o(){return i}function l(e,r){try{t.default.mkdirSync(a.default.dirname(i),{recursive:!0});let s=JSON.stringify({ts:new Date().toISOString(),pid:process.pid,event:e,...r?{payload:r}:{}},n);t.default.appendFileSync(i,`${s}
|
|
2
|
+
`,"utf8")}catch{}}e.s(["getDebugLogPath",()=>o,"writeDebugLog",()=>l])},514499,e=>{"use strict";let t=Number(process.env.AGX_MAX_WORKERS)||10;function r(e){if(e>t)throw Error(`[limits] Requested ${e} workers exceeds MAX_WORKERS (${t}). See docs/LIMITS.md — exceeding this limit risks SQLITE_BUSY errors. Set AGX_MAX_WORKERS to override (requires architecture review).`);if(e<1)throw Error(`[limits] Worker count must be at least 1, got ${e}.`)}class a{timestamps=[];lastWarning=0;WARNING_COOLDOWN_MS=6e4;record(){this.timestamps.push(Date.now())}check(){let e=Date.now(),t=e-1e4;this.timestamps=this.timestamps.filter(e=>e>=t);let r=this.timestamps.length/10,a=r>=40;return a&&e-this.lastWarning>this.WARNING_COOLDOWN_MS&&(this.lastWarning=e,console.warn(`[limits] Write QPS at ${r.toFixed(1)} — approaching ceiling of 50. See docs/LIMITS.md for mitigation steps.`)),{qps:r,warning:a}}}e.s(["MAX_WORKERS",0,t,"WRITE_QPS_CEILING",0,50,"WRITE_RATE_SAMPLE_WINDOW_MS",0,1e4,"WriteRateMonitor",()=>a,"assertWorkerCount",()=>r])},68638,e=>{"use strict";var t=e.x("node:sqlite",()=>require("node:sqlite"),!0),r=e.i(259833),a=e.i(666680);let s={randomUUID:a.randomUUID},i=new Uint8Array(256),n=i.length,o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let l=function(e,t,r){if(s.randomUUID&&!t&&!e)return s.randomUUID();var l=e,d=r;let u=(l=l||{}).random??l.rng?.()??(n>i.length-16&&((0,a.randomFillSync)(i),n=0),i.slice(n,n+=16));if(u.length<16)throw Error("Random bytes length must be >= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){if((d=d||0)<0||d+16>t.length)throw RangeError(`UUID byte range ${d}:${d+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[d+e]=u[e];return t}return function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(u)};var d=e.i(814747),u=e.i(522734),c=e.i(446786),p=e.i(121729),h=e.i(514499),f=e.i(37269);let E=process.env.AGX_DATA_DIR||d.default.join(c.default.homedir(),".agx");function m(){let e=Number(process.env.AGX_QUEUE_STALE_MS);return Number.isFinite(e)&&e>0?e:6e5}class g{db;workers=new Map;pollingInterval=null;writeRateInterval=null;writeMonitor=new h.WriteRateMonitor;workerId;constructor(e){this.workerId=l();const r=e||process.env.SQLITE_QUEUE_PATH||d.default.join(E,"agx-queue.db"),a=d.default.dirname(r);u.default.existsSync(a)||u.default.mkdirSync(a,{recursive:!0}),this.db=new t.DatabaseSync(r);const s=(0,p.validateSQLiteEnvironment)(this.db,r);if(s.length>0){const e=s.map(e=>e.message).join("; ");console.error(`[SQLiteQueueAdapter] Startup validation failed: ${e}`)}}async start(){this.initSchema(),this.startPolling()}async stop(){this.stopPolling(),this.db.close()}initSchema(){this.db.exec(`
|
|
3
|
+
CREATE TABLE IF NOT EXISTS agx_jobs (
|
|
4
|
+
id TEXT PRIMARY KEY,
|
|
5
|
+
queue TEXT NOT NULL,
|
|
6
|
+
data TEXT NOT NULL,
|
|
7
|
+
status TEXT NOT NULL CHECK(status IN ('pending', 'active', 'completed', 'failed', 'retry')),
|
|
8
|
+
created_at INTEGER NOT NULL,
|
|
9
|
+
start_after INTEGER NOT NULL DEFAULT 0,
|
|
10
|
+
started_at INTEGER,
|
|
11
|
+
completed_at INTEGER,
|
|
12
|
+
failed_at INTEGER,
|
|
13
|
+
worker_id TEXT,
|
|
14
|
+
retry_count INTEGER DEFAULT 0,
|
|
15
|
+
retry_limit INTEGER DEFAULT 0,
|
|
16
|
+
priority INTEGER DEFAULT 0,
|
|
17
|
+
error TEXT
|
|
18
|
+
);
|
|
19
|
+
CREATE INDEX IF NOT EXISTS idx_jobs_fetch ON agx_jobs (queue, status, start_after, priority DESC, created_at ASC);
|
|
20
|
+
`);let e=new Set((0,r.pragmaAll)(this.db,"table_info(agx_jobs)").map(e=>e.name));e.has("failed_at")||this.db.exec("ALTER TABLE agx_jobs ADD COLUMN failed_at INTEGER"),e.has("error")||this.db.exec("ALTER TABLE agx_jobs ADD COLUMN error TEXT")}async send(e,t,r){let a=l(),s=Date.now(),i=r?.startAfter?r.startAfter instanceof Date?r.startAfter.getTime():r.startAfter:s;return this.db.prepare(`
|
|
21
|
+
INSERT INTO agx_jobs (
|
|
22
|
+
id, queue, data, status, created_at, start_after, retry_limit, priority
|
|
23
|
+
) VALUES (?, ?, ?, 'pending', ?, ?, ?, ?)
|
|
24
|
+
`).run(a,e,JSON.stringify(t),s,i,r?.retryLimit??3,r?.priority??0),this.writeMonitor.record(),(0,f.writeDebugLog)("queue.send",{queue:e,jobId:a,startAfter:i,retryLimit:r?.retryLimit??3,priority:r?.priority??0,data:t}),a}async work(e,t,r){(0,f.writeDebugLog)("queue.worker.register",{queue:e,batchSize:r?.batchSize??1,pollInterval:r?.pollInterval??null,workerId:this.workerId}),this.workers.set(e,{handler:t,options:r||{},running:!0})}startPolling(){this.pollingInterval||(this.pollingInterval=setInterval(()=>this.poll(),1e3),this.writeRateInterval=setInterval(()=>this.writeMonitor.check(),h.WRITE_RATE_SAMPLE_WINDOW_MS))}stopPolling(){this.pollingInterval&&(clearInterval(this.pollingInterval),this.pollingInterval=null),this.writeRateInterval&&(clearInterval(this.writeRateInterval),this.writeRateInterval=null)}poll(){for(let[e,t]of this.workers)t.running&&this.processQueue(e,t)}processQueue(e,t){let a=t.options.batchSize||1,s=Date.now(),i=s-m(),n=(0,r.transaction)(this.db,()=>{let t=this.reapStaleJobs(e,s,i);t.length>0&&(0,f.writeDebugLog)("queue.reap_stale",{queue:e,workerId:this.workerId,staleBefore:i,jobs:t});let r=this.db.prepare(`
|
|
25
|
+
SELECT id, data FROM agx_jobs
|
|
26
|
+
WHERE queue = ?
|
|
27
|
+
AND (status = 'pending' OR status = 'retry')
|
|
28
|
+
AND start_after <= ?
|
|
29
|
+
ORDER BY priority DESC, created_at ASC
|
|
30
|
+
LIMIT ?
|
|
31
|
+
`).all(e,s,a);if(0===r.length)return[];let n=r.map(e=>e.id),o=this.db.prepare(`
|
|
32
|
+
UPDATE agx_jobs
|
|
33
|
+
SET status = 'active', started_at = ?, worker_id = ?
|
|
34
|
+
WHERE id = ?
|
|
35
|
+
`);for(let e of n)o.run(s,this.workerId,e);return r.map(t=>({id:t.id,name:e,data:JSON.parse(t.data)}))});n.length>0&&((0,f.writeDebugLog)("queue.claim",{queue:e,workerId:this.workerId,jobIds:n.map(e=>e.id)}),this.executeJobs(n,t.handler))}async executeJobs(e,t){try{await t(e),this.completeJobs(e.map(e=>e.id)),(0,f.writeDebugLog)("queue.complete",{jobIds:e.map(e=>e.id)})}catch(t){this.failJobs(e.map(e=>e.id),t.message||String(t)),(0,f.writeDebugLog)("queue.fail",{jobIds:e.map(e=>e.id),error:t})}}completeJobs(e){let t=Date.now(),a=this.db.prepare(`
|
|
36
|
+
UPDATE agx_jobs
|
|
37
|
+
SET status = 'completed', completed_at = ?, worker_id = NULL
|
|
38
|
+
WHERE id = ?
|
|
39
|
+
`);(0,r.transaction)(this.db,()=>{for(let r of e)a.run(t,r)})}failJobs(e,t){let a=Date.now(),s=this.db.prepare(`
|
|
40
|
+
SELECT id, retry_count, retry_limit FROM agx_jobs WHERE id = ?
|
|
41
|
+
`),i=this.db.prepare(`
|
|
42
|
+
UPDATE agx_jobs
|
|
43
|
+
SET status = 'retry', retry_count = retry_count + 1,
|
|
44
|
+
start_after = ? + (retry_count * 1000 * 2), -- Exponential backoff (kinda)
|
|
45
|
+
started_at = NULL,
|
|
46
|
+
worker_id = NULL,
|
|
47
|
+
error = ?
|
|
48
|
+
WHERE id = ?
|
|
49
|
+
`),n=this.db.prepare(`
|
|
50
|
+
UPDATE agx_jobs
|
|
51
|
+
SET status = 'failed', failed_at = ?, started_at = NULL, worker_id = NULL, error = ?
|
|
52
|
+
WHERE id = ?
|
|
53
|
+
`);(0,r.transaction)(this.db,()=>{for(let r of e){let e=s.get(r);if(e&&e.retry_count<e.retry_limit){let s=(e.retry_count+1)*2e3;i.run(a+s,t,r)}else n.run(a,t,r)}})}reapStaleJobs(e,t,r){let a=this.db.prepare(`
|
|
54
|
+
SELECT id, retry_count, retry_limit
|
|
55
|
+
FROM agx_jobs
|
|
56
|
+
WHERE queue = ?
|
|
57
|
+
AND status = 'active'
|
|
58
|
+
AND started_at IS NOT NULL
|
|
59
|
+
AND started_at <= ?
|
|
60
|
+
ORDER BY started_at ASC
|
|
61
|
+
`).all(e,r);if(0===a.length)return[];let s=this.db.prepare(`
|
|
62
|
+
UPDATE agx_jobs
|
|
63
|
+
SET status = 'retry',
|
|
64
|
+
retry_count = retry_count + 1,
|
|
65
|
+
start_after = ?,
|
|
66
|
+
started_at = NULL,
|
|
67
|
+
worker_id = NULL,
|
|
68
|
+
error = ?
|
|
69
|
+
WHERE id = ?
|
|
70
|
+
`),i=this.db.prepare(`
|
|
71
|
+
UPDATE agx_jobs
|
|
72
|
+
SET status = 'failed',
|
|
73
|
+
failed_at = ?,
|
|
74
|
+
started_at = NULL,
|
|
75
|
+
worker_id = NULL,
|
|
76
|
+
error = ?
|
|
77
|
+
WHERE id = ?
|
|
78
|
+
`),n=[];for(let e of a){let r=`Job exceeded active timeout of ${m()}ms`;e.retry_count<e.retry_limit?(s.run(t,r,e.id),n.push({id:e.id,fromStatus:"active",toStatus:"retry",retryCount:e.retry_count+1})):(i.run(t,r,e.id),n.push({id:e.id,fromStatus:"active",toStatus:"failed",retryCount:e.retry_count}))}return n}}let _=null;async function R(){return _||(_=new g,await _.start()),_}e.s(["QUEUE_NAMES",0,{TASK_PROCESS:"agx.task.process",CHAT_RUN_PROCESS:"agx.chat.process",TASK_CLEANUP:"agx.task.cleanup"},"getQueue",()=>R],68638)},942899,e=>{"use strict";var t=e.i(949041);async function r(e){return{ok:!0,userId:t.LOCAL_USER.id}}e.s(["requireUserId",()=>r])},460245,e=>{"use strict";var t=e.i(457431);async function r(e){let r=(0,t.createAdminDbClient)();await r.from("workflow_events").insert({task_id:e.taskId,user_id:e.userId,event_type:e.eventType,payload:e.payload||{},job_id:e.jobId||null,created_at:new Date().toISOString()})}e.s(["appendWorkflowEvent",()=>r])},364499,e=>{"use strict";var t=e.i(747909),r=e.i(174017),a=e.i(996250),s=e.i(759756),i=e.i(561916),n=e.i(174677),o=e.i(869741),l=e.i(316795),d=e.i(487718),u=e.i(995169),c=e.i(47587),p=e.i(666012),h=e.i(570101),f=e.i(626937),E=e.i(10372),m=e.i(193695);e.i(52474);var g=e.i(600220),_=e.i(89171),R=e.i(457431),S=e.i(68638),w=e.i(460245),b=e.i(942899);async function x(e,{params:t}){try{let r=await (0,b.requireUserId)(e),{taskId:a}=await t,s=await e.json().catch(()=>({})),i="string"==typeof s.reason?s.reason:void 0,n=await (0,S.getQueue)(),o=await n.send(S.QUEUE_NAMES.TASK_PROCESS,{taskId:a,userId:r.userId,signal:"cancel",payload:{reason:i}}),l=(0,R.createAdminDbClient)();return await l.from("tasks").update({updated_at:new Date().toISOString()}).eq("id",a).eq("user_id",r.userId),await (0,w.appendWorkflowEvent)({taskId:a,userId:r.userId,eventType:"task.cancelled",payload:i?{reason:i}:{},jobId:o||void 0}),_.NextResponse.json({ok:!0,jobId:o})}catch(e){return console.error("Failed to cancel task:",e),_.NextResponse.json({error:"Failed to cancel task"},{status:500})}}e.s(["POST",()=>x],161079);var v=e.i(161079);let A=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/orchestrator/tasks/[taskId]/cancel/route",pathname:"/api/orchestrator/tasks/[taskId]/cancel",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/orchestrator/tasks/[taskId]/cancel/route.ts",nextConfigOutput:"standalone",userland:v}),{workAsyncStorage:T,workUnitAsyncStorage:y,serverHooks:I}=A;function L(){return(0,a.patchFetch)({workAsyncStorage:T,workUnitAsyncStorage:y})}async function N(e,t,a){A.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let _="/api/orchestrator/tasks/[taskId]/cancel/route";_=_.replace(/\/index$/,"")||"/";let R=await A.prepare(e,t,{srcPage:_,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:S,params:w,nextConfig:b,parsedUrl:x,isDraftMode:v,prerenderManifest:T,routerServerContext:y,isOnDemandRevalidate:I,revalidateOnlyGenerated:L,resolvedPathname:N,clientReferenceManifest:k,serverActionsManifest:D}=R,C=(0,o.normalizeAppPath)(_),U=!!(T.dynamicRoutes[C]||T.routes[N]),O=async()=>((null==y?void 0:y.render404)?await y.render404(e,t,x,!1):t.end("This page could not be found"),null);if(U&&!v){let e=!!T.routes[N],t=T.dynamicRoutes[C];if(t&&!1===t.fallback&&!e){if(b.experimental.adapterPath)return await O();throw new m.NoFallbackError}}let j=null;!U||A.isDev||v||(j="/index"===(j=N)?"/":j);let q=!0===A.isDev||!U,M=U&&!q;D&&k&&(0,n.setManifestsSingleton)({page:_,clientReferenceManifest:k,serverActionsManifest:D});let P=e.method||"GET",W=(0,i.getTracer)(),G=W.getActiveScopeSpan(),$={params:w,prerenderManifest:T,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts},cacheComponents:!!b.cacheComponents,supportsDynamicResponse:q,incrementalCache:(0,s.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:b.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,s)=>A.onRequestError(e,t,a,s,y)},sharedContext:{buildId:S}},F=new l.NodeNextRequest(e),H=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(F,(0,d.signalFromNodeResponse)(t));try{let n=async e=>A.handle(X,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=W.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${P} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${P} ${_}`)}),o=!!(0,s.getRequestMeta)(e,"minimalMode"),l=async s=>{var i,l;let d=async({previousCacheEntry:r})=>{try{if(!o&&I&&L&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await n(s);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let d=$.renderOpts.collectedTags;if(!U)return await (0,p.sendResponse)(F,H,i,$.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(i.headers);d&&(t[E.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=E.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,a=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=E.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:I})},!1,y),t}},u=await A.handleResponse({req:e,nextConfig:b,cacheKey:j,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:I,revalidateOnlyGenerated:L,responseGenerator:d,waitUntil:a.waitUntil,isMinimalMode:o});if(!U)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",I?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),v&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return o&&U||m.delete(E.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,f.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(F,H,new Response(u.value.body,{headers:m,status:u.value.status||200})),null};G?await l(G):await W.withPropagatedContext(e.headers,()=>W.trace(u.BaseServerSpan.handleRequest,{spanName:`${P} ${_}`,kind:i.SpanKind.SERVER,attributes:{"http.method":P,"http.target":e.url}},l))}catch(t){if(t instanceof m.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:C,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:I})},!1,y),U)throw t;return await (0,p.sendResponse)(F,H,new Response(null,{status:500})),null}}e.s(["handler",()=>N,"patchFetch",()=>L,"routeModule",()=>A,"serverHooks",()=>I,"workAsyncStorage",()=>T,"workUnitAsyncStorage",()=>y],364499)}];
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__4700e1b3._.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
module.exports=[924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},97812,e=>{"use strict";var t=e.i(960447),r=e.i(259833);e.i(201037);var a=e.i(200866),o=e.i(434542);let i=new Set(["replan","rollback"]);class n extends Error{expectedVersion;actualVersion;constructor(e,t){super(`Execution graph version conflict: expected ${e}, found ${t}.`),this.name="GraphVersionConflictError",this.expectedVersion=e,this.actualVersion=t}}class s extends Error{constructor(e){super(`Execution graph not found: ${e}`),this.name="GraphNotFoundError"}}class d extends Error{nodeIds;constructor(e,t){super(`Execution graph ${e} is missing node(s): ${t.join(", ")}`),this.name="GraphNodeNotFoundError",this.nodeIds=t}}class u extends Error{taskId;existingGraphId;constructor(e,t){super(`Task ${e} is already bound to execution graph ${t}.`),this.name="GraphTaskAlreadyBoundError",this.taskId=e,this.existingGraphId=t}}function p(e){return null==e?null:JSON.stringify(e)}function l(e){if(null==e)return null;if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}function c(e){let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toISOString()}function g(e){return!e||"object"!=typeof e||Array.isArray(e)?{}:e}function m(e){if(!(0,o.isAutomationFrontmatterEnabled)()||!e.schedule)return;let t=(0,o.getAutomationRepository)(),r=(0,a.graphAutomationToDefinition)({graphId:e.id,taskId:e.taskId,schedule:e.schedule,createdAt:e.createdAt,updatedAt:e.updatedAt,executionState:e.executionState});t.upsertAutomation(r),t.updateAutomationState(e.id,{nextRunAt:e.schedule.nextTickAt,lastRunAt:e.schedule.lastTickAt,updatedAt:e.updatedAt,runCount:e.schedule.runCount,consecutiveFailures:e.schedule.consecutiveFailures,tickInProgress:e.schedule.tickInProgress})}function h(e){let r=e.trim();if(!r)return null;let a=(0,t.getSQLiteDb)().prepare(`SELECT task_id AS taskId
|
|
2
|
+
FROM execution_graphs
|
|
3
|
+
WHERE id = ?
|
|
4
|
+
LIMIT 1`).get(r);return a?.taskId??null}function _(e){let{type:t,status:r,metrics:a,output:o,...i}=e;return{type:t,status:r,config:i,output:o??null,metrics:a??null}}function f(e){let t={...g(l(e.payload))};return"eventType"in t||(t.eventType=e.event_type),"timestamp"in t||(t.timestamp=c(e.timestamp)),t}function E(e){return{query(t,r){let a=e.prepare(t);return/^\s*(INSERT|UPDATE|DELETE)/i.test(t)&&!/RETURNING/i.test(t)?(a.run(...(r??[]).map(e=>e)),{rows:[]}):{rows:a.all(...(r??[]).map(e=>e))}}}}class y{getDb(){return(0,t.getSQLiteDb)()}createGraph(e,t){let a=this.getDb(),o=E(a);t?.skipTaskBinding&&(0,r.pragmaSet)(a,"foreign_keys = OFF");try{return(0,r.transaction)(a,()=>{let r=o.query("SELECT id FROM execution_graphs WHERE task_id = ? LIMIT 1",[e.taskId]).rows[0];if(r&&r.id!==e.id)throw new u(e.taskId,r.id);for(let[t,r]of(o.query(`INSERT INTO execution_graphs
|
|
5
|
+
(id, task_id, graph_version, mode, policy, done_criteria, schedule, created_at, updated_at)
|
|
6
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
7
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
8
|
+
task_id = excluded.task_id,
|
|
9
|
+
graph_version = excluded.graph_version,
|
|
10
|
+
mode = excluded.mode,
|
|
11
|
+
policy = excluded.policy,
|
|
12
|
+
done_criteria = excluded.done_criteria,
|
|
13
|
+
schedule = excluded.schedule,
|
|
14
|
+
created_at = excluded.created_at,
|
|
15
|
+
updated_at = excluded.updated_at`,[e.id,e.taskId,e.graphVersion,e.mode,p(e.policy),p(e.doneCriteria),p(e.schedule??null),e.createdAt,e.updatedAt]),o.query("DELETE FROM graph_nodes WHERE graph_id = ?",[e.id]),o.query("DELETE FROM graph_edges WHERE graph_id = ?",[e.id]),Object.entries(e.nodes))){let a=_(r);o.query(`INSERT INTO graph_nodes (graph_id, node_id, type, status, config, output, metrics)
|
|
16
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e.id,t,a.type,a.status,p(a.config),p(a.output),p(a.metrics)])}for(let t of e.edges)o.query(`INSERT INTO graph_edges (graph_id, from_id, to_id, type, condition, data_mapping)
|
|
17
|
+
VALUES (?, ?, ?, ?, ?, ?)`,[e.id,t.from,t.to,t.type,t.condition??null,p(t.dataMapping??null)]);for(let t of e.versionHistory)this.appendEventInternal(o,e.id,t);for(let t of e.runtimeEvents??[])this.appendEventInternal(o,e.id,t);t?.skipTaskBinding||o.query("UPDATE tasks SET graph_id = ? WHERE id = ?",[e.id,e.taskId]);let a=this.getGraphForTask(o,e.taskId);if(!a)throw new s(e.id);return m(a),a})}finally{t?.skipTaskBinding&&(0,r.pragmaSet)(a,"foreign_keys = ON")}}getGraph(e){let t=this.getDb();return this.getGraphForTask(E(t),e)}updateNodeRuntime(e,t,a){let o=this.getDb(),i=E(o);return(0,r.transaction)(o,()=>{if(!i.query("SELECT id, graph_version FROM execution_graphs WHERE id = ?",[e]).rows[0])throw new s(e);let r=Object.keys(t);if(0===r.length){let t=i.query("SELECT graph_version, updated_at FROM execution_graphs WHERE id = ?",[e]);return{graphVersion:t.rows[0].graph_version,updatedAt:c(t.rows[0].updated_at)}}let a=r.map(()=>"?").join(", "),o=i.query(`SELECT node_id, type, status, config, output, metrics
|
|
18
|
+
FROM graph_nodes WHERE graph_id = ? AND node_id IN (${a})`,[e,...r]),n=new Map;for(let e of o.rows)n.set(e.node_id,e);let u=r.filter(e=>!n.has(e));if(u.length>0)throw new d(e,u);for(let a of r){let r=t[a],o=n.get(a);if(!o||!r)continue;let s={...g(l(o.config)),...g(r.configPatch)};void 0!==r.startedAt&&(s.startedAt=r.startedAt),void 0!==r.completedAt&&(s.completedAt=r.completedAt),void 0!==r.actualMinutes&&(s.actualMinutes=r.actualMinutes),i.query(`UPDATE graph_nodes SET status = ?, metrics = ?, output = ?, config = ?
|
|
19
|
+
WHERE graph_id = ? AND node_id = ?`,[r.status??o.status,p(r.metrics??l(o.metrics)),p(r.output??l(o.output)),p(s),e,a])}let m=i.query("UPDATE execution_graphs SET updated_at = datetime('now') WHERE id = ? RETURNING graph_version, updated_at",[e]);return{graphVersion:m.rows[0].graph_version,updatedAt:c(m.rows[0].updated_at)}})}updateGraphStructure(e,t,a){let o=this.getDb(),i=E(o);return(0,r.transaction)(o,()=>{let r=i.query("SELECT id, task_id, graph_version, mode, policy, done_criteria, schedule FROM execution_graphs WHERE id = ?",[e]).rows[0];if(!r)throw new s(e);if(t.nodes)for(let[r,a]of(i.query("DELETE FROM graph_nodes WHERE graph_id = ?",[e]),Object.entries(t.nodes))){let t=_(a);i.query(`INSERT INTO graph_nodes (graph_id, node_id, type, status, config, output, metrics)
|
|
20
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e,r,t.type,t.status,p(t.config),p(t.output),p(t.metrics)])}if(t.edges)for(let r of(i.query("DELETE FROM graph_edges WHERE graph_id = ?",[e]),t.edges))i.query(`INSERT INTO graph_edges (graph_id, from_id, to_id, type, condition, data_mapping)
|
|
21
|
+
VALUES (?, ?, ?, ?, ?, ?)`,[e,r.from,r.to,r.type,r.condition??null,p(r.dataMapping??null)]);let a=i.query(`UPDATE execution_graphs
|
|
22
|
+
SET mode = ?, policy = ?, done_criteria = ?, schedule = ?, updated_at = datetime('now')
|
|
23
|
+
WHERE id = ?
|
|
24
|
+
RETURNING graph_version, updated_at`,[t.mode??r.mode,p(t.policy??l(r.policy)??{}),p(t.doneCriteria??l(r.done_criteria)??{}),p(t.schedule??l(r.schedule)??null),e]);if(void 0!==t.schedule){let e=this.getGraphForTask(i,r.task_id);e?.schedule&&m(e)}return{graphVersion:a.rows[0].graph_version,updatedAt:c(a.rows[0].updated_at)}})}appendEvent(e,t){let r=this.getDb();this.appendEventInternal(E(r),e,t)}getGraphForTask(e,t){let r=e.query(`SELECT id, task_id, graph_version, mode, policy, done_criteria, schedule, created_at, updated_at
|
|
25
|
+
FROM execution_graphs WHERE task_id = ? ORDER BY updated_at DESC LIMIT 1`,[t]).rows[0];if(!r)return null;let n=e.query(`SELECT node_id, type, status, config, output, metrics
|
|
26
|
+
FROM graph_nodes WHERE graph_id = ? ORDER BY node_id ASC`,[r.id]),s=e.query(`SELECT from_id, to_id, type, condition, data_mapping
|
|
27
|
+
FROM graph_edges WHERE graph_id = ? ORDER BY from_id ASC, to_id ASC`,[r.id]),d=e.query(`SELECT event_type, payload, timestamp
|
|
28
|
+
FROM graph_events WHERE graph_id = ? ORDER BY timestamp ASC, event_type ASC`,[r.id]),u={};for(let e of n.rows)u[e.node_id]=function(e){let t={...g(l(e.config)),type:e.type,status:e.status},r=l(e.metrics);null!==r&&(t.metrics=r);let a=l(e.output);return null!==a&&(t.output=a),t}(e);let p=s.rows.map(e=>({from:e.from_id,to:e.to_id,type:e.type,...e.condition?{condition:l(e.condition)}:{},...e.data_mapping?{dataMapping:l(e.data_mapping)}:{}})),m=[],h=[];for(let e of d.rows){let t=f(e);i.has(t.eventType)?m.push(t):h.push(t)}var _={id:r.id,taskId:r.task_id,graphVersion:r.graph_version,mode:r.mode,nodes:u,edges:p,policy:l(r.policy)??{},doneCriteria:l(r.done_criteria)??{},schedule:l(r.schedule)??void 0,versionHistory:m,runtimeEvents:h,createdAt:c(r.created_at),updatedAt:c(r.updated_at)};if(!(0,o.isAutomationFrontmatterEnabled)())return _;let E=(0,o.getAutomationRepository)().getAutomation(_.id);return E&&"execution_graph"===E.definition.target.type?{..._,schedule:(0,a.automationRecordToGraphSchedule)(E,_.schedule)}:_}appendEventInternal(e,t,r){e.query(`INSERT INTO graph_events (graph_id, event_type, payload, timestamp)
|
|
29
|
+
VALUES (?, ?, ?, ?)`,[t,r.eventType,p(r),r.timestamp])}}function A(){return new y}let v=new y;function R(e,t){return v.createGraph(e,t)}function S(e){return v.getGraph(e)}function I(e,t,r){return v.updateNodeRuntime(e,t,r)}function w(e,t,r){return v.updateGraphStructure(e,t,r)}function T(e,t){return v.appendEvent(e,t)}function k(e,r={}){let a=["graph_id = ?"],o=[e];r.eventType&&(a.push("event_type = ?"),o.push(r.eventType)),r.since&&(a.push("timestamp >= ?"),o.push(r.since));let i=r.limit??1e3,n=`SELECT event_type, payload, timestamp
|
|
30
|
+
FROM graph_events
|
|
31
|
+
WHERE ${a.join(" AND ")}
|
|
32
|
+
ORDER BY timestamp ASC, event_type ASC
|
|
33
|
+
LIMIT ?`;return o.push(i),E((0,t.getSQLiteDb)()).query(n,o).rows.map(e=>f(e))}function N(e){let r=e.trim();if(!r)return null;if((0,o.isAutomationFrontmatterEnabled)()){let e=(0,o.getAutomationRepository)().listVisibleAutomations({targetType:"execution_graph",state:"active",rootMessageId:r})[0];if(e?.definition.target.type==="execution_graph"){let t=e.definition.target.graphId??e.definition.id,r=e.definition.target.taskId??h(t);if(r)return{graphId:t,taskId:r}}if(!(0,o.isAutomationDualReadEnabled)())return null}return(0,t.getSQLiteDb)().prepare(`SELECT id AS graphId, task_id AS taskId
|
|
34
|
+
FROM execution_graphs
|
|
35
|
+
WHERE schedule IS NOT NULL
|
|
36
|
+
AND json_extract(schedule, '$.rootMessageId') = ?
|
|
37
|
+
AND json_extract(schedule, '$.state') = 'active'
|
|
38
|
+
ORDER BY updated_at DESC
|
|
39
|
+
LIMIT 1`).get(r)??null}function b(){let e=new Set;if((0,o.isAutomationFrontmatterEnabled)()){for(let t of(0,o.getAutomationRepository)().listVisibleAutomations({targetType:"execution_graph",state:"active"}))"execution_graph"===t.definition.target.type&&t.definition.target.rootMessageId&&e.add(t.definition.target.rootMessageId);if(!(0,o.isAutomationDualReadEnabled)())return[...e]}for(let r of(0,t.getSQLiteDb)().prepare(`SELECT json_extract(schedule, '$.rootMessageId') AS rootMessageId
|
|
40
|
+
FROM execution_graphs
|
|
41
|
+
WHERE schedule IS NOT NULL
|
|
42
|
+
AND json_extract(schedule, '$.state') = 'active'`).all())r.rootMessageId&&e.add(r.rootMessageId);return[...e]}function D(e){let r=e.trim();if(!r)return 0;let a=0;if((0,o.isAutomationFrontmatterEnabled)()){for(let e of(0,o.getAutomationRepository)().listVisibleAutomations({targetType:"execution_graph",state:"active",rootMessageId:r})){if("execution_graph"!==e.definition.target.type)continue;let t=e.definition.target.graphId??e.definition.id,r=e.definition.target.taskId??h(t);if(!r)continue;let o=S(r);o?.schedule&&(v.updateGraphStructure(o.id,{mode:o.mode,nodes:o.nodes,edges:o.edges,policy:o.policy,doneCriteria:o.doneCriteria,schedule:{...o.schedule,state:"stopped",tickInProgress:!1}},o.graphVersion),a+=1)}if(a>0||!(0,o.isAutomationDualReadEnabled)())return a}return Number((0,t.getSQLiteDb)().prepare(`UPDATE execution_graphs
|
|
43
|
+
SET schedule = json_set(schedule, '$.state', 'stopped', '$.tickInProgress', json('false')),
|
|
44
|
+
updated_at = strftime('%Y-%m-%dT%H:%M:%fZ','now')
|
|
45
|
+
WHERE schedule IS NOT NULL
|
|
46
|
+
AND json_extract(schedule, '$.rootMessageId') = ?
|
|
47
|
+
AND json_extract(schedule, '$.state') = 'active'`).run(r).changes??0)}e.s(["GraphNodeNotFoundError",()=>d,"GraphNotFoundError",()=>s,"GraphStore",()=>y,"GraphTaskAlreadyBoundError",()=>u,"GraphVersionConflictError",()=>n,"appendEvent",()=>T,"createGraph",()=>R,"createGraphStore",()=>A,"deactivateSchedulesByRootMessageId",()=>D,"getActiveScheduleForRootMessageId",()=>N,"getActiveScheduleRootMessageIds",()=>b,"getGraph",()=>S,"getGraphEvents",()=>k,"getTaskIdForGraphId",()=>h,"updateGraphStructure",()=>w,"updateNodeRuntime",()=>I])},633938,e=>{"use strict";var t=e.i(492952);function r(e){let r=[];for(let a of e){if(!a.id){let e=String(a.notes??"").trim();if(!e)continue;r.push({repoId:"",repoName:a.name,path:a.path??null,content:e,producer:"human"});continue}let e=t.vaultStore.getKnowledgeNote("repo",a.id),o=e?.content.trim()||String(a.notes??"").trim();o&&r.push({repoId:a.id,repoName:a.name,path:a.path??null,content:o,producer:"human"})}return r}e.s(["listResolvedRepoKnowledge",()=>r])},669803,e=>{"use strict";var t=e.i(254799),r=e.i(457431),a=e.i(960447),o=e.i(633938),i=e.i(877581),n=e.i(492952),s=e.i(42304),d=e.i(762294);async function u(e){let t=(0,r.createAdminDbClient)(),{data:a,error:o}=await t.from("task_comments").select("*").eq("task_id",e).is("deleted_at",null).order("created_at",{ascending:!0}).order("id",{ascending:!0});if(o){let e="string"==typeof o.message?o.message:"";if("42P01"===o.code||"PGRST205"===o.code||e.includes('relation "task_comments" does not exist')||e.includes("Could not find the table 'agx.task_comments'")||e.includes("Could not find the table 'public.task_comments'"))return[];throw o}return a||[]}async function p(e){let t=(0,r.createAdminDbClient)(),a=e.user_id,o=t.from("learnings").select("*").eq("scope","task").eq("scope_id",e.id);a&&o.eq("user_id",a);let[{data:i,error:s}]=await Promise.all([o]);if(s)throw s;return{task:i||[],project:[],global:n.vaultStore.getLearnings("global")||[]}}async function l(e){let t,a=e.stage;if(!a)return{prompt:null};let o=(0,r.createAdminDbClient)(),i=(t=e.workflow_id)&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)?e.workflow_id:"";if(!i&&e.project_id)try{let t=await (0,d.getProjectWithRepos)(e.project_id,e.user_id);t?.workflow_id&&(i=t.workflow_id)}catch{}i||(i=d.DEFAULT_WORKFLOW_ID);try{let{data:e,error:t}=await o.from("workflow_nodes").select("*").eq("workflow_id",i).eq("name",a).maybeSingle();if(!t&&e){let t=e.metadata&&"object"==typeof e.metadata?e.metadata:{},r="boolean"==typeof t.swarm&&t.swarm,a=Array.isArray(t.swarm_models)?t.swarm_models:void 0;if(e.prompt)return{prompt:e.prompt,swarm:r,provider:e.provider||void 0,model:e.model||void 0,swarm_models:a};return{prompt:null,swarm:r,provider:e.provider||void 0,model:e.model||void 0,swarm_models:a}}}catch{}try{let t=[];t.push(o.from("stage_prompts").select("*").eq("stage",a).eq("is_default",!0).eq("workflow_id",i).maybeSingle()),e.user_id&&t.push(o.from("stage_prompts").select("*").eq("stage",a).eq("user_id",e.user_id).eq("workflow_id",i).maybeSingle());let r=await Promise.all(t),n=r[0]?.data||null,s=e.user_id?r[1]?.data:null,d=s?.prompt||n?.prompt||null;if(d)return{prompt:d,swarm:s?.swarm??n?.swarm??!1,provider:s?.provider||n?.provider,model:s?.model||n?.model,swarm_models:s?.swarm_models||n?.swarm_models}}catch{}let n=d.defaultStagePrompts[a];return n?.prompt?{prompt:n.prompt,swarm:n.swarm??!1,provider:n.provider,model:n.model,swarm_models:n.swarm_models}:{prompt:null}}async function c(e,t){let r=e.project_id,a=e.project||void 0,n=null;if(r&&(n=await (0,d.getProjectWithRepos)(r,e.user_id)),!n&&a){let t=await (0,d.getProjectBySlug)(a,e.user_id);if(t){let e=await (0,d.getProjectRepos)(t.id);n={...t,repos:e}}}if(!n)return null;let s=await (0,d.getProjectMemory)(n.id,"human"),u=(0,i.getKnowledgeNote)("project",n.id);if(n.repos.length>0){let e=(0,o.listResolvedRepoKnowledge)(n.repos),t=new Map;for(let r of e){if(!r.repoId)continue;let e="system"===r.producer?`[System-generated] ${r.content}`:r.content,a=t.get(r.repoId)??[];a.push(e),t.set(r.repoId,a)}n={...n,repos:n.repos.map(e=>({...e,notes:t.has(e.id)?t.get(e.id).join("\n\n"):e.notes}))}}return{project:n,repos:n.repos??[],learnings:[...s.map(e=>e.content),...u?.content?[`[System-generated] ${u.content}`]:[]]}}async function g(e){let r,[o,i,n,g]=await Promise.all([u(e.id),p(e),l(e),e.user_id?(0,d.getUserSettings)(e.user_id):Promise.resolve(null)]),m=await c(e,i.project),{frontmatter:h}=(0,d.parseFrontmatter)(e.content),_=(0,s.resolveMemoryAgentId)({defaultUserId:e.user_id||"system",frontmatter:h}),f=h.no_memory?[]:function(e,t=5){try{return(0,a.getSQLiteDb)().prepare("SELECT content FROM agent_memory WHERE agent_id = ? ORDER BY created_at DESC LIMIT ?").all(e,t).map(e=>e.content)}catch{return[]}}(_),E=(r=JSON.stringify(o.map(e=>({id:e.id,task_id:e.task_id,author_type:e.author_type||null,author_id:e.author_id||null,content:e.content||"",created_at:e.created_at||null}))),(0,t.createHash)("sha256").update(r).digest("hex")),y="string"==typeof e.stage&&e.stage.trim()?e.stage.trim():"",A=n.prompt??null,v={};if(A&&y){v[y]=A;let e=y.toLowerCase();v[e]||(v[e]=A)}let R=A&&y?[{stage:y,prompt:A}]:[];return{comments:o,learnings:i,agent_memories:f,stage_config:n,stage_prompt:A,stage_prompts:v,stage_objective:A,stageObjective:A,stagePrompts:R,project_context:m,comments_digest:E,user_settings:g}}e.s(["buildTaskContext",()=>g])},123297,383131,e=>{"use strict";function t(e,t){if(void 0===e)return t;let r=e.trim().toLowerCase();return"1"===r||"true"===r||"yes"===r||"on"===r||"0"!==r&&"false"!==r&&"no"!==r&&"off"!==r&&t}function r(){return t(process.env.AGX_GRAPH_DUAL_WRITE,!0)}function a(){return t(process.env.AGX_GRAPH_PARITY_LOGGING,!0)}function o(){return!t(process.env.AGX_GRAPH_READ_PATH_KILL_SWITCH,!1)&&"v2"===(process.env.AGX_GRAPH_READ_PATH_MODE||"v1").trim().toLowerCase()}e.s(["isDualWriteEnabled",()=>r,"isParityLoggingEnabled",()=>a,"isV2ReadPathEnabled",()=>o],383131);let i=new Set(["done","passed","failed","skipped"]),n=new Set(["running","awaiting_human","blocked"]),s=new Set(["done","passed","skipped"]);function d(e,t){let r=String(e||"").trim().toUpperCase();return"INTAKE"===r||"PROGRESS"===r||"DONE"===r?r:t}function u(e){let t,r=Object.values(e.nodes);if(0===r.length)return"queued";let a=r.filter(e=>"gate"===e.type&&e.required).every(e=>"passed"===e.status||"skipped"===e.status);return 0!==(t=e.doneCriteria?.completionSinkNodeIds??[]).length&&t.every(t=>{let r=e.nodes[t];return!!(r&&s.has(r.status))})&&a||r.every(e=>i.has(e.status))&&a?"completed":r.some(e=>"failed"===e.status)?"failed":r.some(e=>"blocked"===e.status)?"blocked":r.some(e=>n.has(e.status))||r.filter(e=>"done"===e.status||"passed"===e.status).length>0?"in_progress":"queued"}function p(e,t="INTAKE"){let r,a,o=u(e),n="completed"===(r=u(e))?"DONE":"in_progress"===r||"blocked"===r||"failed"===r?"PROGRESS":t,s="completed"===o?100:0===(a=Object.values(e.nodes)).length?0:Math.max(0,Math.min(100,Math.round(a.filter(e=>i.has(e.status)).length/a.length*100)));return{status:o,stage:n,progressPercent:s}}function l(e){var t;let r,o,i,n,s,u=(t={taskId:e.task.id,source:e.source,legacy:{status:e.task.status,stage:e.task.stage,progressPercent:e.legacyProgressPercent??null},v2:p(e.graph,d(e.task.stage||"INTAKE","INTAKE"))},o=[],i="queued"===(r=String(t.legacy.status||"").trim().toLowerCase())||"in_progress"===r||"blocked"===r||"completed"===r||"failed"===r?r:"queued",n=d(t.legacy.stage,"INTAKE"),s=Number.isFinite(Number(t.legacy.progressPercent))?Number(t.legacy.progressPercent):null,(i!==t.v2.status&&o.push({field:"status",legacy:i,v2:t.v2.status}),n!==t.v2.stage&&o.push({field:"stage",legacy:n,v2:t.v2.stage}),null!==s&&s!==t.v2.progressPercent&&o.push({field:"progressPercent",legacy:s,v2:t.v2.progressPercent}),0===o.length)?null:{taskId:t.taskId,source:t.source,diffs:o});return u&&a()&&console.warn("[graph-parity-diff]",JSON.stringify(u)),u}e.s(["logParityDiff",()=>l,"projectLegacyCompatFromGraph",()=>p],123297)},437645,e=>{"use strict";var t=e.i(762294),r=e.i(383131),a=e.i(123297),o=e.i(97812);function i(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[]}function n(e){if(i(e.depends_on).length||"string"!=typeof e?.content)return e;let{frontmatter:r}=(0,t.parseFrontmatter)(e.content||""),a=i(r.depends_on);return a.length?{...e,depends_on:a}:e}function s(e){return"blocked"!==e.status||e.blocked_reason||e.stage&&"intake"!==e.stage.toLowerCase()?e.blocked_reason:"Awaiting approval"}async function d(e){if(!(0,r.isV2ReadPathEnabled)())return{...n(e),blocked_reason:s(e),read_path_source:"v1"};try{let t=await (0,o.getGraph)(e.id);if(!t)return{...n(e),read_path_source:"v1"};let r=(0,a.projectLegacyCompatFromGraph)(t,e.stage||"INTAKE"),i="queued"===r.status&&e.status&&"queued"!==e.status?e.status:r.status,d="completed"===i?"DONE":r.stage;(0,a.logParityDiff)({source:"read_path",task:e,graph:t});let u={...n(e),status:i,stage:d};return{...u,blocked_reason:s(u),read_path_source:"v2"}}catch(t){return console.error("Failed to project task from v2 graph; using v1 compatibility mode",t),{...n(e),read_path_source:"v1"}}}async function u(e){return Promise.all(e.map(e=>d(e)))}e.s(["projectTaskReadModel",()=>d,"projectTaskReadModels",()=>u])}];
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__49c04b15._.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[
|
|
1
|
+
module.exports=[522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},259833,e=>{"use strict";function t(e,t){let r=e.prepare(`PRAGMA ${t}`).get();if(!r)return;let a=Object.values(r);return a.length>0?a[0]:void 0}function r(e,t){return e.prepare(`PRAGMA ${t}`).all()}function a(e,t){e.exec(`PRAGMA ${t}`)}function n(e,t){e.exec("BEGIN");try{let r=t();return e.exec("COMMIT"),r}catch(t){throw e.exec("ROLLBACK"),t}}function s(e,t){return(...r)=>{e.exec("BEGIN");try{let a=t(...r);return e.exec("COMMIT"),a}catch(t){throw e.exec("ROLLBACK"),t}}}e.s(["pragmaAll",()=>r,"pragmaGet",()=>t,"pragmaSet",()=>a,"transaction",()=>n,"transactionFn",()=>s])},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},150216,e=>{"use strict";var t=e.i(747909),r=e.i(174017),a=e.i(996250),n=e.i(759756),s=e.i(561916),i=e.i(174677),o=e.i(869741),d=e.i(316795),l=e.i(487718),p=e.i(995169),u=e.i(47587),c=e.i(666012),m=e.i(570101),h=e.i(626937),g=e.i(10372),R=e.i(193695);e.i(52474);var x=e.i(600220),_=e.x("node:sqlite",()=>require("node:sqlite"),!0),v=e.i(259833),E=e.i(814747),f=e.i(446786),C=e.i(522734);let A=process.env.AGX_GROUP_CHAT_DIR?.trim()||E.default.join(f.default.homedir(),".agx","group-chat"),w=E.default.join(A,"history.sqlite");async function y(e,{params:t}){let{id:r}=await t;if(!(0,C.existsSync)(w))return Response.json({messages:[],stats:{total_messages:0,threads_participated:0}});try{let e=new _.DatabaseSync(w,{readOnly:!0});(0,v.pragmaSet)(e,"journal_mode = WAL");let t=e.prepare(`SELECT m.thread_id, m.id, m.role, m.participant_id, m.content, m.timestamp,
|
|
2
2
|
m.root_message_id,
|
|
3
3
|
root.content as root_content,
|
|
4
4
|
prev.content as prev_content,
|
|
@@ -17,6 +17,6 @@ module.exports=[22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},46786,(e,
|
|
|
17
17
|
LIMIT 100`).all(r),a=e.prepare(`SELECT COUNT(*) as total_messages,
|
|
18
18
|
COUNT(DISTINCT root_message_id) as threads_participated
|
|
19
19
|
FROM messages
|
|
20
|
-
WHERE participant_id = ?`).get(r);return e.close(),Response.json({messages:t.map(e=>({threadId:e.thread_id,id:e.id,role:e.role,content:e.content,timestamp:e.timestamp,rootMessageId:e.root_message_id,threadTitle:e.root_content?e.root_content.slice(0,120):null,prevContent:e.prev_content?e.prev_content.slice(0,200):null,prevParticipantId:e.prev_participant_id})),stats:a??{total_messages:0,threads_participated:0}})}catch{return Response.json({messages:[],stats:{total_messages:0,threads_participated:0}})}}e.s(["GET",()=>y,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],
|
|
20
|
+
WHERE participant_id = ?`).get(r);return e.close(),Response.json({messages:t.map(e=>({threadId:e.thread_id,id:e.id,role:e.role,content:e.content,timestamp:e.timestamp,rootMessageId:e.root_message_id,threadTitle:e.root_content?e.root_content.slice(0,120):null,prevContent:e.prev_content?e.prev_content.slice(0,200):null,prevParticipantId:e.prev_participant_id})),stats:a??{total_messages:0,threads_participated:0}})}catch{return Response.json({messages:[],stats:{total_messages:0,threads_participated:0}})}}e.s(["GET",()=>y,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],535914);var O=e.i(535914);let T=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/agents/[id]/messages/route",pathname:"/api/agents/[id]/messages",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/agents/[id]/messages/route.ts",nextConfigOutput:"standalone",userland:O}),{workAsyncStorage:N,workUnitAsyncStorage:b,serverHooks:I}=T;function P(){return(0,a.patchFetch)({workAsyncStorage:N,workUnitAsyncStorage:b})}async function S(e,t,a){T.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let _="/api/agents/[id]/messages/route";_=_.replace(/\/index$/,"")||"/";let v=await T.prepare(e,t,{srcPage:_,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,params:f,nextConfig:C,parsedUrl:A,isDraftMode:w,prerenderManifest:y,routerServerContext:O,isOnDemandRevalidate:N,revalidateOnlyGenerated:b,resolvedPathname:I,clientReferenceManifest:P,serverActionsManifest:S}=v,q=(0,o.normalizeAppPath)(_),M=!!(y.dynamicRoutes[q]||y.routes[I]),j=async()=>((null==O?void 0:O.render404)?await O.render404(e,t,A,!1):t.end("This page could not be found"),null);if(M&&!w){let e=!!y.routes[I],t=y.dynamicRoutes[q];if(t&&!1===t.fallback&&!e){if(C.experimental.adapterPath)return await j();throw new R.NoFallbackError}}let D=null;!M||T.isDev||w||(D="/index"===(D=I)?"/":D);let H=!0===T.isDev||!M,k=M&&!H;S&&P&&(0,i.setManifestsSingleton)({page:_,clientReferenceManifest:P,serverActionsManifest:S});let U=e.method||"GET",L=(0,s.getTracer)(),F=L.getActiveScopeSpan(),G={params:f,prerenderManifest:y,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:H,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>T.onRequestError(e,t,a,n,O)},sharedContext:{buildId:E}},$=new d.NodeNextRequest(e),B=new d.NodeNextResponse(t),K=l.NextRequestAdapter.fromNodeNextRequest($,(0,l.signalFromNodeResponse)(t));try{let i=async e=>T.handle(K,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=L.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${U} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${U} ${_}`)}),o=!!(0,n.getRequestMeta)(e,"minimalMode"),d=async n=>{var s,d;let l=async({previousCacheEntry:r})=>{try{if(!o&&N&&b&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let d=G.renderOpts.pendingWaitUntil;d&&a.waitUntil&&(a.waitUntil(d),d=void 0);let l=G.renderOpts.collectedTags;if(!M)return await (0,c.sendResponse)($,B,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[g.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await T.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:k,isOnDemandRevalidate:N})},!1,O),t}},p=await T.handleResponse({req:e,nextConfig:C,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:b,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:o});if(!M)return null;if((null==p||null==(s=p.value)?void 0:s.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(d=p.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",N?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),w&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let R=(0,m.fromNodeOutgoingHttpHeaders)(p.value.headers);return o&&M||R.delete(g.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||R.get("Cache-Control")||R.set("Cache-Control",(0,h.getCacheControlHeader)(p.cacheControl)),await (0,c.sendResponse)($,B,new Response(p.value.body,{headers:R,status:p.value.status||200})),null};F?await d(F):await L.withPropagatedContext(e.headers,()=>L.trace(p.BaseServerSpan.handleRequest,{spanName:`${U} ${_}`,kind:s.SpanKind.SERVER,attributes:{"http.method":U,"http.target":e.url}},d))}catch(t){if(t instanceof R.NoFallbackError||await T.onRequestError(e,t,{routerKind:"App Router",routePath:q,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:k,isOnDemandRevalidate:N})},!1,O),M)throw t;return await (0,c.sendResponse)($,B,new Response(null,{status:500})),null}}e.s(["handler",()=>S,"patchFetch",()=>P,"routeModule",()=>T,"serverHooks",()=>I,"workAsyncStorage",()=>N,"workUnitAsyncStorage",()=>b],150216)}];
|
|
21
21
|
|
|
22
22
|
//# sourceMappingURL=%5Broot-of-the-server%5D__4a4265e0._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},259833,e=>{"use strict";function t(e,t){let r=e.prepare(`PRAGMA ${t}`).get();if(!r)return;let n=Object.values(r);return n.length>0?n[0]:void 0}function r(e,t){return e.prepare(`PRAGMA ${t}`).all()}function n(e,t){e.exec(`PRAGMA ${t}`)}function a(e,t){e.exec("BEGIN");try{let r=t();return e.exec("COMMIT"),r}catch(t){throw e.exec("ROLLBACK"),t}}function s(e,t){return(...r)=>{e.exec("BEGIN");try{let n=t(...r);return e.exec("COMMIT"),n}catch(t){throw e.exec("ROLLBACK"),t}}}e.s(["pragmaAll",()=>r,"pragmaGet",()=>t,"pragmaSet",()=>n,"transaction",()=>a,"transactionFn",()=>s])},233405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},949041,e=>{"use strict";let t={id:"2c3cc1ca-956d-4b62-b295-4d2d3374103f",email:process.env.AGX_BOARD_USER_EMAIL||"local@agx.board",name:process.env.AGX_BOARD_USER_NAME||"Local Board User"};e.s(["LOCAL_USER",0,t])},121729,e=>{"use strict";e.x("node:sqlite",()=>require("node:sqlite"),!0);var t=e.i(259833);e.i(522734);var r=e.i(446786),n=e.i(814747);let a="3.35.0",s=["json1"],o=["fts5"],i=["nfs","smb","cifs","efs","fuse.sshfs"];function l(e,t){try{if("json1"===t)return e.prepare("SELECT json('{}')").get(),!0;if("fts5"===t)return e.exec("CREATE VIRTUAL TABLE IF NOT EXISTS _fts5_check USING fts5(x)"),e.exec("DROP TABLE IF EXISTS _fts5_check"),!0;return!1}catch{return!1}}function u(u,d){let c=[],p=u.prepare("SELECT sqlite_version() as v").get();for(let e of(0>function(e,t){let r=e.split(".").map(Number),n=t.split(".").map(Number);for(let e=0;e<3;e++){let t=(r[e]||0)-(n[e]||0);if(0!==t)return t}return 0}(p.v,a)&&c.push({kind:"version_mismatch",message:`SQLite version ${p.v} is below minimum ${a}`,found:p.v,required:`>= ${a}`,fix:"Ensure Node.js >= 22.16 is installed (node:sqlite is built-in)"}),s))l(u,e)||c.push({kind:"missing_extension",message:`Required SQLite extension '${e}' is not available`,required:e,fix:`Rebuild SQLite with -DSQLITE_ENABLE_${e.toUpperCase()}=1, or use a system SQLite that includes it`});for(let e of o)l(u,e)||console.warn(`[startup] Recommended SQLite extension '${e}' is not available. Full-text search will be disabled.`);let f=function(t){"linux"!==r.default.platform()&&r.default.platform();try{let a=n.default.resolve(t),{execSync:s}=e.r(233405);if("darwin"===r.default.platform()){let e=s(`df -T "${a}" 2>/dev/null || df "${a}"`,{encoding:"utf-8",timeout:3e3}).trim().split("\n");if(e.length>=2){let t=e[1].split(/\s+/),r=t[0]?.toLowerCase()||"";if(r.includes("://")||r.includes("nfs")||r.includes("smb"))return r}}}catch{}return null}(d);f&&i.some(e=>f.toLowerCase().includes(e))&&c.push({kind:"filesystem_error",message:`Database path '${d}' is on a network filesystem (${f})`,path:d,found:f,fix:"Move the database file to a local SSD. WAL mode requires local filesystem with reliable fsync."});try{(0,t.pragmaSet)(u,"journal_mode = wal"),(0,t.pragmaSet)(u,"foreign_keys = 1"),(0,t.pragmaSet)(u,"busy_timeout = 5000"),(0,t.pragmaSet)(u,"synchronous = 1"),(0,t.pragmaSet)(u,"cache_size = -64000");let e=(0,t.pragmaGet)(u,"journal_mode").toLowerCase(),r=new Set(["wal","delete"]);if(!r.has(e)){(0,t.pragmaSet)(u,"journal_mode = DELETE");let e=(0,t.pragmaGet)(u,"journal_mode").toLowerCase();r.has(e)?((0,t.pragmaSet)(u,"synchronous = FULL"),console.warn(`[startup] WAL unavailable, using journal_mode=${e} with synchronous=FULL`)):c.push({kind:"pragma_error",message:`Failed to set journal_mode (got '${e}', tried WAL then DELETE)`,found:e,required:"wal or delete",fix:"Ensure the database file is on a local filesystem and no other process holds an exclusive lock."})}}catch(e){c.push({kind:"pragma_error",message:`Failed to apply required PRAGMAs: ${e.message}`,fix:"Check file permissions and ensure the database is not read-only."})}return c}e.s(["validateSQLiteEnvironment",()=>u])},500874,(e,t,r)=>{t.exports=e.x("buffer",()=>require("buffer"))},666680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},660526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},877581,e=>{"use strict";var t=e.i(492952);function r(e,r){return t.vaultStore.getKnowledgeNote(e,r)}function n(e){return t.vaultStore.upsertKnowledgeNote(e)}e.s(["getKnowledgeNote",()=>r,"upsertKnowledgeNote",()=>n])},620544,e=>{"use strict";var t=e.i(747909),r=e.i(174017),n=e.i(996250),a=e.i(759756),s=e.i(561916),o=e.i(174677),i=e.i(869741),l=e.i(316795),u=e.i(487718),d=e.i(995169),c=e.i(47587),p=e.i(666012),f=e.i(570101),h=e.i(626937),x=e.i(10372),m=e.i(193695);e.i(52474);var g=e.i(600220),R=e.i(89171),v=e.i(877581);async function w(e){try{let t=new URL(e.url),r=t.searchParams.get("scope"),n=t.searchParams.get("subjectId");if(!r||!n)return R.NextResponse.json({error:"scope and subjectId are required"},{status:400});let a=(0,v.getKnowledgeNote)(r,n);return R.NextResponse.json({note:a})}catch(e){return console.error("Error fetching knowledge note:",e),R.NextResponse.json({error:"Failed to fetch knowledge note"},{status:500})}}async function E(e){try{let t=await e.json().catch(()=>({})),r=t.scope,n="string"==typeof t.subjectId?t.subjectId.trim():"",a="string"==typeof t.content?t.content:"";if(!r||!n)return R.NextResponse.json({error:"scope and subjectId are required"},{status:400});let{note:s,changed:o}=(0,v.upsertKnowledgeNote)({scope:r,subjectId:n,content:a,changeSummary:"Manual edit",sourceType:"task_completion",sourceId:"manual-edit",metadata:{manual_edit:!0}});return R.NextResponse.json({note:s,changed:o})}catch(e){return console.error("Error updating knowledge note:",e),R.NextResponse.json({error:"Failed to update knowledge note"},{status:500})}}e.s(["GET",()=>w,"PUT",()=>E,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],160316);var y=e.i(160316);let b=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/knowledge-notes/route",pathname:"/api/knowledge-notes",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/knowledge-notes/route.ts",nextConfigOutput:"standalone",userland:y}),{workAsyncStorage:A,workUnitAsyncStorage:_,serverHooks:S}=b;function C(){return(0,n.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:_})}async function N(e,t,n){b.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/knowledge-notes/route";R=R.replace(/\/index$/,"")||"/";let v=await b.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:y,parsedUrl:A,isDraftMode:_,prerenderManifest:S,routerServerContext:C,isOnDemandRevalidate:N,revalidateOnlyGenerated:T,resolvedPathname:j,clientReferenceManifest:k,serverActionsManifest:q}=v,L=(0,i.normalizeAppPath)(R),I=!!(S.dynamicRoutes[L]||S.routes[j]),O=async()=>((null==C?void 0:C.render404)?await C.render404(e,t,A,!1):t.end("This page could not be found"),null);if(I&&!_){let e=!!S.routes[j],t=S.dynamicRoutes[L];if(t&&!1===t.fallback&&!e){if(y.experimental.adapterPath)return await O();throw new m.NoFallbackError}}let P=null;!I||b.isDev||_||(P="/index"===(P=j)?"/":P);let U=!0===b.isDev||!I,$=I&&!U;q&&k&&(0,o.setManifestsSingleton)({page:R,clientReferenceManifest:k,serverActionsManifest:q});let M=e.method||"GET",D=(0,s.getTracer)(),F=D.getActiveScopeSpan(),H={params:E,prerenderManifest:S,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:y.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>b.onRequestError(e,t,n,a,C)},sharedContext:{buildId:w}},G=new l.NodeNextRequest(e),K=new l.NodeNextResponse(t),B=u.NextRequestAdapter.fromNodeNextRequest(G,(0,u.signalFromNodeResponse)(t));try{let o=async e=>b.handle(B,H).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=D.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${R}`)}),i=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var s,l;let u=async({previousCacheEntry:r})=>{try{if(!i&&N&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(a);e.fetchMetrics=H.renderOpts.fetchMetrics;let l=H.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let u=H.renderOpts.collectedTags;if(!I)return await (0,p.sendResponse)(G,K,s,H.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(s.headers);u&&(t[x.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==H.renderOpts.collectedRevalidate&&!(H.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&H.renderOpts.collectedRevalidate,n=void 0===H.renderOpts.collectedExpire||H.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:H.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:N})},!1,C),t}},d=await b.handleResponse({req:e,nextConfig:y,cacheKey:P,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:T,responseGenerator:u,waitUntil:n.waitUntil,isMinimalMode:i});if(!I)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});i||t.setHeader("x-nextjs-cache",N?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return i&&I||m.delete(x.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(G,K,new Response(d.value.body,{headers:m,status:d.value.status||200})),null};F?await l(F):await D.withPropagatedContext(e.headers,()=>D.trace(d.BaseServerSpan.handleRequest,{spanName:`${M} ${R}`,kind:s.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},l))}catch(t){if(t instanceof m.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:L,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:N})},!1,C),I)throw t;return await (0,p.sendResponse)(G,K,new Response(null,{status:500})),null}}e.s(["handler",()=>N,"patchFetch",()=>C,"routeModule",()=>b,"serverHooks",()=>S,"workAsyncStorage",()=>A,"workUnitAsyncStorage",()=>_],620544)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__4c2d07e0._.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[
|
|
1
|
+
module.exports=[446786,(e,t,a)=>{t.exports=e.x("os",()=>require("os"))},522734,(e,t,a)=>{t.exports=e.x("fs",()=>require("fs"))},259833,e=>{"use strict";function t(e,t){let a=e.prepare(`PRAGMA ${t}`).get();if(!a)return;let n=Object.values(a);return n.length>0?n[0]:void 0}function a(e,t){return e.prepare(`PRAGMA ${t}`).all()}function n(e,t){e.exec(`PRAGMA ${t}`)}function r(e,t){e.exec("BEGIN");try{let a=t();return e.exec("COMMIT"),a}catch(t){throw e.exec("ROLLBACK"),t}}function i(e,t){return(...a)=>{e.exec("BEGIN");try{let n=t(...a);return e.exec("COMMIT"),n}catch(t){throw e.exec("ROLLBACK"),t}}}e.s(["pragmaAll",()=>a,"pragmaGet",()=>t,"pragmaSet",()=>n,"transaction",()=>r,"transactionFn",()=>i])},193695,(e,t,a)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,a)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},814747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},924868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},926617,e=>{"use strict";var t=e.x("node:sqlite",()=>require("node:sqlite"),!0),a=e.i(259833),n=e.i(522734),r=e.i(814747),i=e.i(446786);let s=process.env.AGX_GROUP_CHAT_DIR?.trim()||r.default.join(i.default.homedir(),".agx","group-chat"),o=r.default.join(s,"history.sqlite"),l=r.default.join(s,"uploads");function d(){let e=new t.DatabaseSync(o);return(0,a.pragmaSet)(e,"journal_mode = WAL"),e}function u(e){if(e.exec(`
|
|
2
2
|
CREATE TABLE IF NOT EXISTS attachments (
|
|
3
3
|
id TEXT PRIMARY KEY,
|
|
4
4
|
message_id TEXT,
|
|
@@ -13,6 +13,6 @@ module.exports=[46786,(e,t,a)=>{t.exports=e.x("os",()=>require("os"))},22734,(e,
|
|
|
13
13
|
`),!e.prepare("PRAGMA table_info(attachments)").all().some(e=>"disk_name"===e.name)){e.exec("ALTER TABLE attachments ADD COLUMN disk_name TEXT NOT NULL DEFAULT ''");let t=e.prepare("SELECT id, filename FROM attachments WHERE disk_name = ''").all(),a=e.prepare("UPDATE attachments SET disk_name = ? WHERE id = ?");for(let e of t){let t=e.filename.includes(".")?"."+e.filename.split(".").pop().toLowerCase():"";a.run(e.id+t,e.id)}}}async function p(e){await n.promises.mkdir(l,{recursive:!0});let t=e.filename.includes(".")?"."+e.filename.split(".").pop().toLowerCase():"",a=e.id+t,i=r.default.join(l,a);await n.promises.writeFile(i,e.data);let s=d();try{u(s),s.prepare(`INSERT INTO attachments (id, disk_name, filename, mime_type, size, status, created_at)
|
|
14
14
|
VALUES (?, ?, ?, ?, ?, 'uploaded', ?)`).run(e.id,a,e.filename,e.mimeType,e.size,Date.now())}finally{s.close()}return{id:e.id,filename:e.filename,mimeType:e.mimeType,size:e.size,status:"uploaded",url:`/api/attachments/${e.id}`}}async function c(e,t){if(0===t.length)return[];let a=d();try{u(a);let n=t.map(()=>"?").join(", ");return a.prepare(`UPDATE attachments SET message_id = ? WHERE id IN (${n})`).run(e,...t),a.prepare(`SELECT id, disk_name, filename, mime_type, size, status FROM attachments WHERE id IN (${n})`).all(...t).map(e=>({id:e.id,filename:e.filename,mimeType:e.mime_type,size:e.size,status:e.status,url:`/api/attachments/${e.id}`,diskPath:r.default.join(l,e.disk_name||e.id)}))}finally{a.close()}}async function m(e){let t=r.default.join(l,e);try{await n.promises.unlink(t)}catch{}let a=d();try{return u(a),a.prepare("DELETE FROM attachments WHERE id = ?").run(e).changes>0}finally{a.close()}}async function h(e){let t=d();try{u(t);let a=t.prepare("SELECT filename, disk_name, mime_type, size FROM attachments WHERE id = ?").get(e);if(!a)return null;let n=a.disk_name||e;return{filename:a.filename,mimeType:a.mime_type,size:a.size,diskPath:r.default.join(l,n)}}finally{t.close()}}async function f(e){if(0===e.length)return new Map;let t=d();try{u(t);let a=e.map(()=>"?").join(", "),n=t.prepare(`SELECT id, message_id, filename, mime_type, size, status
|
|
15
15
|
FROM attachments
|
|
16
|
-
WHERE message_id IN (${a})`).all(...e),r=new Map;for(let e of n){let t={id:e.id,filename:e.filename,mimeType:e.mime_type,size:e.size,status:e.status,url:`/api/attachments/${e.id}`},a=r.get(e.message_id)||[];a.push(t),r.set(e.message_id,a)}return r}finally{t.close()}}async function E(){let e=Date.now()-864e5,t=d();try{u(t);let a=t.prepare("SELECT id, disk_name FROM attachments WHERE message_id IS NULL AND created_at < ?").all(e);for(let{id:e,disk_name:t}of a){let a=r.default.join(l,t||e);try{await n.promises.unlink(a)}catch{}}if(a.length>0){let e=a.map(()=>"?").join(", ");t.prepare(`DELETE FROM attachments WHERE id IN (${e})`).run(...a.map(e=>e.id))}return a.length}finally{t.close()}}e.s(["createAttachment",()=>p,"deleteAttachment",()=>m,"finalizeAttachments",()=>c,"gcOrphanedAttachments",()=>E,"getAttachmentMeta",()=>h,"getAttachmentsForMessages",()=>f])},
|
|
16
|
+
WHERE message_id IN (${a})`).all(...e),r=new Map;for(let e of n){let t={id:e.id,filename:e.filename,mimeType:e.mime_type,size:e.size,status:e.status,url:`/api/attachments/${e.id}`},a=r.get(e.message_id)||[];a.push(t),r.set(e.message_id,a)}return r}finally{t.close()}}async function E(){let e=Date.now()-864e5,t=d();try{u(t);let a=t.prepare("SELECT id, disk_name FROM attachments WHERE message_id IS NULL AND created_at < ?").all(e);for(let{id:e,disk_name:t}of a){let a=r.default.join(l,t||e);try{await n.promises.unlink(a)}catch{}}if(a.length>0){let e=a.map(()=>"?").join(", ");t.prepare(`DELETE FROM attachments WHERE id IN (${e})`).run(...a.map(e=>e.id))}return a.length}finally{t.close()}}e.s(["createAttachment",()=>p,"deleteAttachment",()=>m,"finalizeAttachments",()=>c,"gcOrphanedAttachments",()=>E,"getAttachmentMeta",()=>h,"getAttachmentsForMessages",()=>f])},688947,(e,t,a)=>{t.exports=e.x("stream",()=>require("stream"))},273254,e=>{"use strict";var t=e.i(747909),a=e.i(174017),n=e.i(996250),r=e.i(759756),i=e.i(561916),s=e.i(174677),o=e.i(869741),l=e.i(316795),d=e.i(487718),u=e.i(995169),p=e.i(47587),c=e.i(666012),m=e.i(570101),h=e.i(626937),f=e.i(10372),E=e.i(193695);e.i(52474);var R=e.i(600220),T=e.i(926617),x=e.i(522734),g=e.i(924868),y=e.i(688947);async function A(e,{params:t}){let{id:a}=await t;if(!a)return Response.json({error:"id is required"},{status:400});let n=await (0,T.getAttachmentMeta)(a);if(!n)return Response.json({error:"Attachment not found"},{status:404});let r=n.diskPath;try{await (0,g.stat)(r)}catch{return Response.json({error:"File not found on disk"},{status:404})}let i=(0,x.createReadStream)(r);return new Response(y.Readable.toWeb(i),{headers:{"Content-Type":n.mimeType,"Content-Length":String(n.size),"Content-Disposition":`inline; filename="${n.filename}"`,"Cache-Control":"private, max-age=86400"}})}e.s(["GET",()=>A,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],203123);var w=e.i(203123);let v=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/attachments/[id]/route",pathname:"/api/attachments/[id]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/attachments/[id]/route.ts",nextConfigOutput:"standalone",userland:w}),{workAsyncStorage:_,workUnitAsyncStorage:C,serverHooks:N}=v;function O(){return(0,n.patchFetch)({workAsyncStorage:_,workUnitAsyncStorage:C})}async function L(e,t,n){v.isDev&&(0,r.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let T="/api/attachments/[id]/route";T=T.replace(/\/index$/,"")||"/";let x=await v.prepare(e,t,{srcPage:T,multiZoneDraftMode:!1});if(!x)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:g,params:y,nextConfig:A,parsedUrl:w,isDraftMode:_,prerenderManifest:C,routerServerContext:N,isOnDemandRevalidate:O,revalidateOnlyGenerated:L,resolvedPathname:S,clientReferenceManifest:k,serverActionsManifest:I}=x,M=(0,o.normalizeAppPath)(T),P=!!(C.dynamicRoutes[M]||C.routes[S]),b=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,w,!1):t.end("This page could not be found"),null);if(P&&!_){let e=!!C.routes[S],t=C.dynamicRoutes[M];if(t&&!1===t.fallback&&!e){if(A.experimental.adapterPath)return await b();throw new E.NoFallbackError}}let j=null;!P||v.isDev||_||(j="/index"===(j=S)?"/":j);let U=!0===v.isDev||!P,q=P&&!U;I&&k&&(0,s.setManifestsSingleton)({page:T,clientReferenceManifest:k,serverActionsManifest:I});let D=e.method||"GET",H=(0,i.getTracer)(),F=H.getActiveScopeSpan(),$={params:y,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!A.experimental.authInterrupts},cacheComponents:!!A.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,r.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:A.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,n,r)=>v.onRequestError(e,t,n,r,N)},sharedContext:{buildId:g}},z=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(z,(0,d.signalFromNodeResponse)(t));try{let s=async e=>v.handle(X,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=H.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=a.get("next.route");if(n){let t=`${D} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${D} ${T}`)}),o=!!(0,r.getRequestMeta)(e,"minimalMode"),l=async r=>{var i,l;let d=async({previousCacheEntry:a})=>{try{if(!o&&O&&L&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await s(r);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let d=$.renderOpts.collectedTags;if(!P)return await (0,c.sendResponse)(z,G,i,$.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(i.headers);d&&(t[f.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,n=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:n}}}}catch(t){throw(null==a?void 0:a.isStale)&&await v.onRequestError(e,t,{routerKind:"App Router",routePath:T,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:O})},!1,N),t}},u=await v.handleResponse({req:e,nextConfig:A,cacheKey:j,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:L,responseGenerator:d,waitUntil:n.waitUntil,isMinimalMode:o});if(!P)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",O?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let E=(0,m.fromNodeOutgoingHttpHeaders)(u.value.headers);return o&&P||E.delete(f.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||E.get("Cache-Control")||E.set("Cache-Control",(0,h.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(z,G,new Response(u.value.body,{headers:E,status:u.value.status||200})),null};F?await l(F):await H.withPropagatedContext(e.headers,()=>H.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${T}`,kind:i.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},l))}catch(t){if(t instanceof E.NoFallbackError||await v.onRequestError(e,t,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:O})},!1,N),P)throw t;return await (0,c.sendResponse)(z,G,new Response(null,{status:500})),null}}e.s(["handler",()=>L,"patchFetch",()=>O,"routeModule",()=>v,"serverHooks",()=>N,"workAsyncStorage",()=>_,"workUnitAsyncStorage",()=>C],273254)}];
|
|
17
17
|
|
|
18
18
|
//# sourceMappingURL=%5Broot-of-the-server%5D__4c5c536d._.js.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},259833,e=>{"use strict";function t(e,t){let r=e.prepare(`PRAGMA ${t}`).get();if(!r)return;let a=Object.values(r);return a.length>0?a[0]:void 0}function r(e,t){return e.prepare(`PRAGMA ${t}`).all()}function a(e,t){e.exec(`PRAGMA ${t}`)}function s(e,t){e.exec("BEGIN");try{let r=t();return e.exec("COMMIT"),r}catch(t){throw e.exec("ROLLBACK"),t}}function n(e,t){return(...r)=>{e.exec("BEGIN");try{let a=t(...r);return e.exec("COMMIT"),a}catch(t){throw e.exec("ROLLBACK"),t}}}e.s(["pragmaAll",()=>r,"pragmaGet",()=>t,"pragmaSet",()=>a,"transaction",()=>s,"transactionFn",()=>n])},116776,e=>{"use strict";var t=e.x("node:sqlite",()=>require("node:sqlite"),!0),r=e.i(522734),a=e.i(446786),s=e.i(814747),n=e.i(259833);let i=process.env.AGX_GROUP_CHAT_DIR?.trim()||s.default.join(a.default.homedir(),".agx","group-chat"),u=s.default.join(i,"history.sqlite");function o(e){return e?.trim()||null}function d(e){let t=e.chat_created_at??e.created_at,r=e.chat_completed_at??null,a=function(e,t){switch(e){case"queued":return"queued";case"running":case"awaiting_user":case"blocked":return"running";case"completed":return"success";case"failed":return"failed";case"cancelled":return"cancelled";default:return t}}(e.chat_status,e.status);return{id:e.id,projectId:e.project_id,projectSlug:e.project_slug,issueId:e.issue_id,issueIdentifier:e.issue_identifier,issueTitle:e.issue_title,issueStatus:e.issue_status,issueAssignee:e.issue_assignee,threadId:e.thread_id,rootMessageId:e.root_message_id,chatRunId:e.chat_run_id,agentId:e.agent_id,agentName:e.agent_name,status:a,durationMs:null!=r?Math.max(r-t,0):null,lastError:e.chat_last_error??e.error,startedAt:new Date(t).toISOString(),updatedAt:new Date((e.chat_updated_at??e.updated_at)||e.updated_at).toISOString(),completedAt:"number"==typeof r?new Date(r).toISOString():null}}async function l(e){await r.promises.mkdir(i,{recursive:!0});let a=new t.DatabaseSync(u);(0,n.pragmaSet)(a,"journal_mode = WAL");try{return a.exec(`
|
|
2
|
+
CREATE TABLE IF NOT EXISTS chat_runs (
|
|
3
|
+
id TEXT PRIMARY KEY,
|
|
4
|
+
thread_id TEXT NOT NULL,
|
|
5
|
+
root_message_id TEXT,
|
|
6
|
+
user_id TEXT NOT NULL,
|
|
7
|
+
project_slug TEXT,
|
|
8
|
+
status TEXT NOT NULL,
|
|
9
|
+
current_step INTEGER NOT NULL DEFAULT 0,
|
|
10
|
+
max_steps INTEGER NOT NULL DEFAULT 10,
|
|
11
|
+
steps_used INTEGER NOT NULL DEFAULT 0,
|
|
12
|
+
last_error TEXT,
|
|
13
|
+
active_participant_ids TEXT NOT NULL DEFAULT '[]',
|
|
14
|
+
payload_json TEXT,
|
|
15
|
+
result_json TEXT,
|
|
16
|
+
created_at INTEGER NOT NULL,
|
|
17
|
+
updated_at INTEGER NOT NULL,
|
|
18
|
+
completed_at INTEGER
|
|
19
|
+
);
|
|
20
|
+
CREATE TABLE IF NOT EXISTS linear_runs (
|
|
21
|
+
id TEXT PRIMARY KEY,
|
|
22
|
+
project_id TEXT,
|
|
23
|
+
project_slug TEXT,
|
|
24
|
+
issue_id TEXT NOT NULL,
|
|
25
|
+
issue_identifier TEXT NOT NULL,
|
|
26
|
+
issue_title TEXT NOT NULL,
|
|
27
|
+
issue_status TEXT NOT NULL,
|
|
28
|
+
issue_assignee TEXT,
|
|
29
|
+
thread_id TEXT NOT NULL,
|
|
30
|
+
root_message_id TEXT,
|
|
31
|
+
chat_run_id TEXT,
|
|
32
|
+
agent_id TEXT NOT NULL,
|
|
33
|
+
agent_name TEXT NOT NULL,
|
|
34
|
+
status TEXT NOT NULL DEFAULT 'queued',
|
|
35
|
+
error TEXT,
|
|
36
|
+
created_at INTEGER NOT NULL,
|
|
37
|
+
updated_at INTEGER NOT NULL
|
|
38
|
+
);
|
|
39
|
+
CREATE INDEX IF NOT EXISTS idx_linear_runs_issue_created
|
|
40
|
+
ON linear_runs (issue_id, created_at DESC);
|
|
41
|
+
CREATE INDEX IF NOT EXISTS idx_linear_runs_project_issue_created
|
|
42
|
+
ON linear_runs (project_id, issue_id, created_at DESC);
|
|
43
|
+
CREATE UNIQUE INDEX IF NOT EXISTS idx_linear_runs_chat_run_id
|
|
44
|
+
ON linear_runs (chat_run_id)
|
|
45
|
+
WHERE chat_run_id IS NOT NULL;
|
|
46
|
+
`),e(a)}finally{a.close()}}async function c(e){let t=Date.now(),r=o(e.id)??crypto.randomUUID(),a=o(e.threadId)??`linear-run:${r}`;return l(s=>{s.prepare(`INSERT INTO linear_runs (
|
|
47
|
+
id, project_id, project_slug, issue_id, issue_identifier, issue_title,
|
|
48
|
+
issue_status, issue_assignee, thread_id, root_message_id, chat_run_id,
|
|
49
|
+
agent_id, agent_name, status, error, created_at, updated_at
|
|
50
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, NULL, NULL, ?, ?, 'queued', NULL, ?, ?)`).run(r,o(e.projectId??null),o(e.projectSlug??null),e.issueId.trim(),e.issueIdentifier.trim(),e.issueTitle.trim(),e.issueStatus.trim(),o(e.issueAssignee??null),a,e.agentId.trim(),e.agentName.trim(),t,t);let n=s.prepare(`SELECT
|
|
51
|
+
lr.*,
|
|
52
|
+
cr.status AS chat_status,
|
|
53
|
+
cr.last_error AS chat_last_error,
|
|
54
|
+
cr.created_at AS chat_created_at,
|
|
55
|
+
cr.updated_at AS chat_updated_at,
|
|
56
|
+
cr.completed_at AS chat_completed_at
|
|
57
|
+
FROM linear_runs lr
|
|
58
|
+
LEFT JOIN chat_runs cr ON cr.id = lr.chat_run_id
|
|
59
|
+
WHERE lr.id = ?
|
|
60
|
+
LIMIT 1`).get(r);if(!n)throw Error(`Failed to create Linear run ${r}`);return d(n)})}async function p(e){return l(t=>{let r=["updated_at = ?"],a=[Date.now()];void 0!==e.rootMessageId&&(r.push("root_message_id = ?"),a.push(o(e.rootMessageId))),void 0!==e.chatRunId&&(r.push("chat_run_id = ?"),a.push(o(e.chatRunId))),void 0!==e.status&&(r.push("status = ?"),a.push(e.status)),void 0!==e.error&&(r.push("error = ?"),a.push(o(e.error))),a.push(e.id.trim()),t.prepare(`UPDATE linear_runs SET ${r.join(", ")} WHERE id = ?`).run(...a);let s=t.prepare(`SELECT
|
|
61
|
+
lr.*,
|
|
62
|
+
cr.status AS chat_status,
|
|
63
|
+
cr.last_error AS chat_last_error,
|
|
64
|
+
cr.created_at AS chat_created_at,
|
|
65
|
+
cr.updated_at AS chat_updated_at,
|
|
66
|
+
cr.completed_at AS chat_completed_at
|
|
67
|
+
FROM linear_runs lr
|
|
68
|
+
LEFT JOIN chat_runs cr ON cr.id = lr.chat_run_id
|
|
69
|
+
WHERE lr.id = ?
|
|
70
|
+
LIMIT 1`).get(e.id.trim());return s?d(s):null})}async function _(e){return l(t=>{let r=t.prepare(`SELECT
|
|
71
|
+
lr.*,
|
|
72
|
+
cr.status AS chat_status,
|
|
73
|
+
cr.last_error AS chat_last_error,
|
|
74
|
+
cr.created_at AS chat_created_at,
|
|
75
|
+
cr.updated_at AS chat_updated_at,
|
|
76
|
+
cr.completed_at AS chat_completed_at
|
|
77
|
+
FROM linear_runs lr
|
|
78
|
+
LEFT JOIN chat_runs cr ON cr.id = lr.chat_run_id
|
|
79
|
+
WHERE lr.id = ?
|
|
80
|
+
LIMIT 1`).get(e.trim());return r?d(r):null})}async function h(e){let t=e.issueId.trim(),r=o(e.projectId??null),a=Number.isFinite(e.limit)?Math.min(Math.max(Number(e.limit),1),100):50;return l(e=>{let s=[t],n=["lr.issue_id = ?"];return r&&(n.push("lr.project_id = ?"),s.push(r)),s.push(a),e.prepare(`SELECT
|
|
81
|
+
lr.*,
|
|
82
|
+
cr.status AS chat_status,
|
|
83
|
+
cr.last_error AS chat_last_error,
|
|
84
|
+
cr.created_at AS chat_created_at,
|
|
85
|
+
cr.updated_at AS chat_updated_at,
|
|
86
|
+
cr.completed_at AS chat_completed_at
|
|
87
|
+
FROM linear_runs lr
|
|
88
|
+
LEFT JOIN chat_runs cr ON cr.id = lr.chat_run_id
|
|
89
|
+
WHERE ${n.join(" AND ")}
|
|
90
|
+
ORDER BY lr.created_at DESC
|
|
91
|
+
LIMIT ?`).all(...s).map(d)})}e.s(["createLinearRun",()=>c,"getLinearRun",()=>_,"listLinearRuns",()=>h,"updateLinearRun",()=>p])},186070,e=>{"use strict";var t=e.i(747909),r=e.i(174017),a=e.i(996250),s=e.i(759756),n=e.i(561916),i=e.i(174677),u=e.i(869741),o=e.i(316795),d=e.i(487718),l=e.i(995169),c=e.i(47587),p=e.i(666012),_=e.i(570101),h=e.i(626937),E=e.i(10372),T=e.i(193695);e.i(52474);var N=e.i(600220),g=e.i(89171),m=e.i(116776);function R(e){return"string"==typeof e&&e.trim()?e.trim():null}async function I(e){try{let t=e.nextUrl.searchParams.get("issueId")?.trim(),r=e.nextUrl.searchParams.get("projectId")?.trim()??null,a=e.nextUrl.searchParams.get("limit"),s=a?Number.parseInt(a,10):void 0;if(!t)return g.NextResponse.json({error:"issueId is required"},{status:400});let n=await (0,m.listLinearRuns)({issueId:t,projectId:r,limit:s});return g.NextResponse.json({count:n.length,runs:n})}catch(e){return console.error("Failed to list Linear runs:",e),g.NextResponse.json({error:"Failed to list Linear runs",message:e instanceof Error?e.message:String(e)},{status:500})}}async function x(e){try{let t=await e.json().catch(()=>({})),r=R(t.issueId),a=R(t.issueIdentifier),s=R(t.issueTitle),n=R(t.issueStatus),i=R(t.agentId),u=R(t.agentName);if(!r||!a||!s||!n||!i||!u)return g.NextResponse.json({error:"issueId, issueIdentifier, issueTitle, issueStatus, agentId, and agentName are required"},{status:400});let o=await (0,m.createLinearRun)({projectId:R(t.projectId),projectSlug:R(t.projectSlug),issueId:r,issueIdentifier:a,issueTitle:s,issueStatus:n,issueAssignee:R(t.issueAssignee),agentId:i,agentName:u});return g.NextResponse.json({run:o},{status:201})}catch(e){return console.error("Failed to create Linear run:",e),g.NextResponse.json({error:"Failed to create Linear run",message:e instanceof Error?e.message:String(e)},{status:500})}}e.s(["GET",()=>I,"POST",()=>x,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],313194);var L=e.i(313194);let f=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/linear/runs/route",pathname:"/api/linear/runs",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/linear/runs/route.ts",nextConfigOutput:"standalone",userland:L}),{workAsyncStorage:A,workUnitAsyncStorage:S,serverHooks:O}=f;function v(){return(0,a.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:S})}async function w(e,t,a){f.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/linear/runs/route";g=g.replace(/\/index$/,"")||"/";let m=await f.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:R,params:I,nextConfig:x,parsedUrl:L,isDraftMode:A,prerenderManifest:S,routerServerContext:O,isOnDemandRevalidate:v,revalidateOnlyGenerated:w,resolvedPathname:U,clientReferenceManifest:j,serverActionsManifest:y}=m,C=(0,u.normalizeAppPath)(g),X=!!(S.dynamicRoutes[C]||S.routes[U]),M=async()=>((null==O?void 0:O.render404)?await O.render404(e,t,L,!1):t.end("This page could not be found"),null);if(X&&!A){let e=!!S.routes[U],t=S.dynamicRoutes[C];if(t&&!1===t.fallback&&!e){if(x.experimental.adapterPath)return await M();throw new T.NoFallbackError}}let D=null;!X||f.isDev||A||(D="/index"===(D=U)?"/":D);let b=!0===f.isDev||!X,P=X&&!b;y&&j&&(0,i.setManifestsSingleton)({page:g,clientReferenceManifest:j,serverActionsManifest:y});let F=e.method||"GET",q=(0,n.getTracer)(),H=q.getActiveScopeSpan(),k={params:I,prerenderManifest:S,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:b,incrementalCache:(0,s.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:x.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,s)=>f.onRequestError(e,t,a,s,O)},sharedContext:{buildId:R}},G=new o.NodeNextRequest(e),$=new o.NodeNextResponse(t),B=d.NextRequestAdapter.fromNodeNextRequest(G,(0,d.signalFromNodeResponse)(t));try{let i=async e=>f.handle(B,k).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=q.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==l.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${F} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${F} ${g}`)}),u=!!(0,s.getRequestMeta)(e,"minimalMode"),o=async s=>{var n,o;let d=async({previousCacheEntry:r})=>{try{if(!u&&v&&w&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await i(s);e.fetchMetrics=k.renderOpts.fetchMetrics;let o=k.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let d=k.renderOpts.collectedTags;if(!X)return await (0,p.sendResponse)(G,$,n,k.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,_.toNodeOutgoingHttpHeaders)(n.headers);d&&(t[E.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==k.renderOpts.collectedRevalidate&&!(k.renderOpts.collectedRevalidate>=E.INFINITE_CACHE)&&k.renderOpts.collectedRevalidate,a=void 0===k.renderOpts.collectedExpire||k.renderOpts.collectedExpire>=E.INFINITE_CACHE?void 0:k.renderOpts.collectedExpire;return{value:{kind:N.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await f.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:P,isOnDemandRevalidate:v})},!1,O),t}},l=await f.handleResponse({req:e,nextConfig:x,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:v,revalidateOnlyGenerated:w,responseGenerator:d,waitUntil:a.waitUntil,isMinimalMode:u});if(!X)return null;if((null==l||null==(n=l.value)?void 0:n.kind)!==N.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(o=l.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});u||t.setHeader("x-nextjs-cache",v?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let T=(0,_.fromNodeOutgoingHttpHeaders)(l.value.headers);return u&&X||T.delete(E.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||t.getHeader("Cache-Control")||T.get("Cache-Control")||T.set("Cache-Control",(0,h.getCacheControlHeader)(l.cacheControl)),await (0,p.sendResponse)(G,$,new Response(l.value.body,{headers:T,status:l.value.status||200})),null};H?await o(H):await q.withPropagatedContext(e.headers,()=>q.trace(l.BaseServerSpan.handleRequest,{spanName:`${F} ${g}`,kind:n.SpanKind.SERVER,attributes:{"http.method":F,"http.target":e.url}},o))}catch(t){if(t instanceof T.NoFallbackError||await f.onRequestError(e,t,{routerKind:"App Router",routePath:C,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:P,isOnDemandRevalidate:v})},!1,O),X)throw t;return await (0,p.sendResponse)(G,$,new Response(null,{status:500})),null}}e.s(["handler",()=>w,"patchFetch",()=>v,"routeModule",()=>f,"serverHooks",()=>O,"workAsyncStorage",()=>A,"workUnitAsyncStorage",()=>S],186070)}];
|
|
92
|
+
|
|
93
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__4c89c60a._.js.map
|