@mndrk/agx 2.0.36 → 2.0.39
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/.next/BUILD_ID +1 -1
- package/cloud-runtime/standalone/.next/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/prerender-manifest.json +3 -3
- package/cloud-runtime/standalone/.next/required-server-files.json +4 -7
- package/cloud-runtime/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/_global-error.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/_global-error.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page/build-manifest.json +2 -2
- 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 +2 -2
- 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 +5 -5
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js +3 -3
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/messages/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js +3 -3
- 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 +3 -3
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/attachments/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js +3 -3
- 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 +1 -1
- 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 +4 -4
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/signal/route.js +1 -1
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat-runs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/daemon/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/daemon/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/file-search/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js +1 -1
- 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 +3 -3
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/history/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/history/status/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/history/status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js +2 -2
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/logs/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/logs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/logs/stream/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/logs/stream/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/memories/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/memories/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/messages/[id]/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/messages/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/migrate/teams-to-projects/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/migrate/teams-to-projects/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/migrate/workspaces-to-projects/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/migrate/workspaces-to-projects/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js +2 -2
- 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 +2 -2
- 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 +4 -4
- 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 +3 -3
- 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 +1 -1
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/processes/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js +4 -4
- 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]/memory/route.js +4 -4
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js +2 -2
- 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 +2 -2
- 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 +3 -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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +3 -3
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js +3 -3
- 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 +3 -3
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/reactions/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js +3 -3
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/system/db-status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/task-drafts/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/task-drafts/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js +4 -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 +2 -2
- 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 +3 -3
- 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 +1 -1
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/pause/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js +4 -4
- 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 +3 -3
- 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 +3 -3
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +3 -3
- 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 +1 -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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/heartbeat/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js +3 -3
- 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 +4 -4
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/stream/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js +2 -2
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +6 -6
- 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 +4 -4
- 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 +3 -3
- 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 +3 -3
- 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 +4 -4
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/stream/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js +3 -3
- 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 +3 -3
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/upload/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/upload/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/upload/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations/page/build-manifest.json +2 -2
- 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 +5 -5
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/board/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/board.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/board.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/board/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/board.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page/build-manifest.json +2 -2
- 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 +5 -5
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/index.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/page/build-manifest.json +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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]/page/build-manifest.json +2 -2
- 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 +2 -2
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/status/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/status.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/status.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/status/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page/build-manifest.json +2 -2
- 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 +2 -2
- 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 +5 -5
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/{[externals]__cf9f18a6._.js → [externals]__986fcdb7._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__01cd082e._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0936925d._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0c3dd73b._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0cc3f3b7._.js +18 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__d4126e05._.js → [root-of-the-server]__1b0bb735._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__4d865017._.js → [root-of-the-server]__1c86bf6e._.js} +6 -6
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1dce6c15._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__0bb52353._.js → [root-of-the-server]__20c58b41._.js} +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2126c763._.js +42 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__255b11f2._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__26817611._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__277ed37d._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__294fceef._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2f06f568._.js +46 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__30bd0c87._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__314d5c41._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__352dad6d._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__374cd94c._.js +42 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3785024c._.js +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__379604d4._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c8f1de6._.js +15 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3d0df5a8._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__0b3b6a47._.js → [root-of-the-server]__4014ed70._.js} +20 -20
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42fcb81c._.js +52 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a3cd6ac._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a4265e0._.js +22 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4bce7db7._.js +101 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c5c536d._.js +18 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4e522535._.js +6 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__50c24784._.js +3 -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 +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__59d1cdd8._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5a1fd688._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5d359afa._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__628d686b._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__005b3c82._.js → [root-of-the-server]__644e6285._.js} +8 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__65755104._.js +7 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__068b4f08._.js → [root-of-the-server]__73c20995._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__762ab29c._.js +51 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__981d92dd._.js → [root-of-the-server]__8125bbc3._.js} +19 -19
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__85275b88._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__89666394._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8c0fb154._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8f5cac13._.js +46 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__91b22098._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__92924218._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__94bd7f65._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__96ae701e._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9746d1f5._.js +18 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__98ce983b._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ee6511a0._.js → [root-of-the-server]__9a9fd39f._.js} +10 -10
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9ad4e385._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9b69f93e._.js +18 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a01ddd0b._.js +46 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__8ac0286e._.js → [root-of-the-server]__a099c992._.js} +20 -20
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a9b949c3._.js +7 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ab7343c8._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__af7a73fd._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bd43017b._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bf6fb108._.js +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c0a18648._.js +10 -10
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__7ee9b7b6._.js → [root-of-the-server]__c122c54a._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c4ea4921._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__8b0ab82f._.js → [root-of-the-server]__c4ed5d83._.js} +7 -7
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c695a5f2._.js +18 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c8b49077._.js +10 -10
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d57e800e._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d8b615bf._.js +34 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d9bd6334._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__543ba6c4._.js → [root-of-the-server]__da3a1ce7._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__db469f1b._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__de2a1e43._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5031f8d4._.js → [root-of-the-server]__dec3e1b7._.js} +11 -11
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f1147a4a._.js +15 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f5597fea._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f8c94cb3._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ceb02db8._.js → [root-of-the-server]__f9cff4b0._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f9f7f2df._.js +4 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fa79d53f._.js +46 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fb14cd4a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__a55c16a5._.js → [root-of-the-server]__fc27a898._.js} +31 -31
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fcf0b40a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ffb21023._.js +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/_05fa3b89._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/_17e53c87._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_4190f170._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/_42e9c8d5._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/_5ca51127._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/_5fd6af5d._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/_8b9fde82._.js +20 -20
- package/cloud-runtime/standalone/.next/server/chunks/_994414cd._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/_99b78daf._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/_affbdbb0._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/_d22934ab._.js +20 -20
- package/cloud-runtime/standalone/.next/server/chunks/_efc73784._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/lib_a5adca60._.js +15 -15
- package/cloud-runtime/standalone/.next/server/chunks/lib_check-node-version_ts_ef89bf83._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_ea45fe73._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_2e721df2._.js +39 -39
- package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_74d1c060._.js +39 -39
- package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_b0b1a9b2._.js +19 -19
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_14067235._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_b63e2d39._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_0c5c111f._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_314f4c49._.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/instrumentation.js +1 -1
- package/cloud-runtime/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/cloud-runtime/standalone/.next/server/middleware-manifest.json +5 -5
- 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/{47f22a56011af8d3.js → 5c0819dcc4bfec85.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/{25c9ac515cfe5635.js → 9bde80696400d2ff.js} +2 -2
- package/cloud-runtime/standalone/.next/static/chunks/ac9a7d8cf17b5d75.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/{dfff51033c303fc7.js → ee5f1457fbc593e1.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/{turbopack-22475f0dd0c18f92.js → turbopack-e1d640f2fbe4fa5e.js} +1 -1
- package/cloud-runtime/standalone/app/api/agents/[id]/messages/route.ts +4 -3
- package/cloud-runtime/standalone/app/api/agents/[id]/profile/route.ts +1 -1
- package/cloud-runtime/standalone/app/api/automations/route.ts +1 -1
- package/cloud-runtime/standalone/app/api/chat/route.ts +2 -2
- package/cloud-runtime/standalone/app/api/memories/route.ts +2 -2
- package/cloud-runtime/standalone/app/api/prompt-jobs/[id]/route.ts +9 -1
- package/cloud-runtime/standalone/app/api/system/db-status/route.ts +12 -11
- package/cloud-runtime/standalone/components/PromptJobBoard.tsx +12 -1
- package/cloud-runtime/standalone/components/errors/StartupGuard.tsx +1 -1
- package/cloud-runtime/standalone/components/errors/StartupGuardWrapper.tsx +1 -1
- package/cloud-runtime/standalone/components/thread/WorkspaceSidebar.tsx +1 -1
- package/cloud-runtime/standalone/coverage/clover.xml +1208 -0
- package/cloud-runtime/standalone/coverage/coverage-final.json +29 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/audit/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/audit/route.ts.html +208 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/[...nextauth]/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/[...nextauth]/route.ts.html +166 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/daemon-secret/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/daemon-secret/route.ts.html +532 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/status/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/status/route.ts.html +178 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/learnings/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/learnings/route.ts.html +262 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/logs/stream/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/logs/stream/route.ts.html +448 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/complete/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/complete/route.ts.html +331 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/route.ts.html +505 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/stage-prompts/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/stage-prompts/route.ts.html +412 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/advance/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/advance/route.ts.html +304 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/logs/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/logs/route.ts.html +202 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/route.ts.html +373 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/route.ts.html +499 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/stream/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/stream/route.ts.html +349 -0
- package/cloud-runtime/standalone/coverage/lcov-report/base.css +224 -0
- package/cloud-runtime/standalone/coverage/lcov-report/block-navigation.js +87 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/AuthProvider.tsx.html +259 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/ChatInterface.tsx.html +1228 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/KanbanBoard.tsx.html +1024 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/Layout.tsx.html +211 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/LearningsPanel.tsx.html +535 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/LogTimeline.tsx.html +415 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/SortableTaskCard.tsx.html +358 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/StagePills.tsx.html +439 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskCard.tsx.html +514 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskCardOverlay.tsx.html +256 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskDetail.tsx.html +622 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskList.tsx.html +253 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/index.html +281 -0
- package/cloud-runtime/standalone/coverage/lcov-report/favicon.png +0 -0
- package/cloud-runtime/standalone/coverage/lcov-report/hooks/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/hooks/useTasks.ts.html +1042 -0
- package/cloud-runtime/standalone/coverage/lcov-report/index.html +341 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/auth-client.ts.html +202 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/auth-server.ts.html +172 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/auth.ts.html +265 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/db.ts.html +1252 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/index.html +131 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/orchestrator.ts.html +409 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/security.ts.html +1165 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/supabase-server.ts.html +175 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/supabase.ts.html +157 -0
- package/cloud-runtime/standalone/coverage/lcov-report/prettify.css +1 -0
- package/cloud-runtime/standalone/coverage/lcov-report/prettify.js +2 -0
- package/cloud-runtime/standalone/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/cloud-runtime/standalone/coverage/lcov-report/sorter.js +210 -0
- package/cloud-runtime/standalone/coverage/lcov.info +2386 -0
- package/cloud-runtime/standalone/docs/LIMITS.md +63 -0
- package/cloud-runtime/standalone/docs/architecture/ADR-001-hybrid-to-full-sqlite.md +345 -0
- package/cloud-runtime/standalone/docs/baseline/baseline-report.json +1009 -0
- package/cloud-runtime/standalone/docs/baseline/critical-queries.md +105 -0
- package/cloud-runtime/standalone/docs/baseline/lock-metrics.json +21 -0
- package/cloud-runtime/standalone/docs/baseline/read-latency.json +146 -0
- package/cloud-runtime/standalone/docs/baseline/restore-time.json +10 -0
- package/cloud-runtime/standalone/docs/baseline/write-metrics.json +803 -0
- package/cloud-runtime/standalone/docs/decisions/sqlite-migration-adr.md +327 -0
- package/cloud-runtime/standalone/docs/error-code-mapping.md +74 -0
- package/cloud-runtime/standalone/docs/migration-plan.md +120 -0
- package/cloud-runtime/standalone/docs/migration-spec.md +345 -0
- package/cloud-runtime/standalone/docs/pg-sqlite-compatibility-matrix.md +554 -0
- package/cloud-runtime/standalone/docs/project-agent-migration-status.md +229 -0
- package/cloud-runtime/standalone/docs/runbook-shadow-read.md +66 -0
- package/cloud-runtime/standalone/docs/runbook.md +155 -0
- package/cloud-runtime/standalone/docs/specs/cli-postgres-removal.md +69 -0
- package/cloud-runtime/standalone/docs/specs/thread-mentions.md +53 -0
- package/cloud-runtime/standalone/docs/superpowers/plans/2026-04-01-prompt-scheduler.md +1907 -0
- package/cloud-runtime/standalone/docs/superpowers/plans/2026-04-02-sqlite-migration.md +1047 -0
- package/cloud-runtime/standalone/docs/transcript.txt +282 -0
- package/cloud-runtime/standalone/docs/ux/GlobalChatFlow.storyboard +23 -0
- package/cloud-runtime/standalone/docs/ux/assistant-chat-cli.md +32 -0
- package/cloud-runtime/standalone/hooks/usePromptJobs.ts +9 -18
- package/cloud-runtime/standalone/instrumentation.ts +33 -0
- package/cloud-runtime/standalone/lib/agent-process-registry.ts +10 -9
- package/cloud-runtime/standalone/lib/attachment-store.ts +6 -5
- package/cloud-runtime/standalone/lib/check-node-version.ts +12 -0
- package/cloud-runtime/standalone/lib/db-adapter.interface.ts +1 -1
- package/cloud-runtime/standalone/lib/history-store.ts +46 -46
- package/cloud-runtime/standalone/lib/knowledge-store.ts +2 -1
- package/cloud-runtime/standalone/lib/participants-store.ts +9 -8
- package/cloud-runtime/standalone/lib/queue/sqlite-adapter.ts +12 -11
- package/cloud-runtime/standalone/lib/repo-knowledge.ts +6 -5
- package/cloud-runtime/standalone/lib/sqlite-compat.ts +75 -0
- package/cloud-runtime/standalone/lib/sqlite-query-adapter.ts +15 -14
- package/cloud-runtime/standalone/lib/sqlite_writer.ts +10 -9
- package/cloud-runtime/standalone/lib/startup.ts +18 -19
- package/cloud-runtime/standalone/lib/thread-knowledge-runs.ts +2 -1
- package/cloud-runtime/standalone/lib/workspaces-to-projects-migration.ts +19 -18
- package/cloud-runtime/standalone/mcp/dist/constants.js +66 -0
- package/cloud-runtime/standalone/mcp/dist/db.js +220 -0
- package/cloud-runtime/standalone/mcp/dist/index.js +7 -0
- package/cloud-runtime/standalone/mcp/dist/security.js +18 -0
- package/cloud-runtime/standalone/mcp/dist/server.js +240 -0
- package/cloud-runtime/standalone/mcp/dist/task-context.js +287 -0
- package/cloud-runtime/standalone/mcp/dist/test-client.js +82 -0
- package/cloud-runtime/standalone/mcp/dist/tools/audit.js +69 -0
- package/cloud-runtime/standalone/mcp/dist/tools/learnings.js +88 -0
- package/cloud-runtime/standalone/mcp/dist/tools/queue.js +312 -0
- package/cloud-runtime/standalone/mcp/dist/tools/tasks.js +244 -0
- package/cloud-runtime/standalone/mcp/dist/types.js +74 -0
- package/cloud-runtime/standalone/mcp/package-lock.json +3 -147
- package/cloud-runtime/standalone/mcp/package.json +1 -1
- package/cloud-runtime/standalone/mcp/src/check-node-version.ts +8 -0
- package/cloud-runtime/standalone/mcp/src/db.ts +4 -5
- package/cloud-runtime/standalone/mcp/src/index.ts +1 -0
- package/cloud-runtime/standalone/next.config.ts +0 -1
- package/cloud-runtime/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
- package/cloud-runtime/standalone/node_modules/@img/{sharp-linux-x64 → sharp-darwin-arm64}/package.json +7 -13
- package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/README.md +2 -2
- package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linuxmusl-x64 → sharp-libvips-darwin-arm64}/lib/glib-2.0/include/glibconfig.h +8 -9
- package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 → sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib} +0 -0
- package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/package.json +5 -11
- package/cloud-runtime/standalone/notes/comments-context-demo.md +141 -0
- package/cloud-runtime/standalone/notes/comments-context-plan.md +119 -0
- package/cloud-runtime/standalone/notes/context-audit.md +21 -0
- package/cloud-runtime/standalone/notes/project-layer-plan.md +30 -0
- package/cloud-runtime/standalone/notes/project-layer.md +123 -0
- package/cloud-runtime/standalone/notes/temporal-migration-design.md +199 -0
- package/cloud-runtime/standalone/package-lock.json +9 -413
- package/cloud-runtime/standalone/package.json +3 -2
- package/cloud-runtime/standalone/playwright-report/data/00d55996f37c1506b90144c85493dd85032c13e5.png +0 -0
- package/cloud-runtime/standalone/playwright-report/data/0b9d409e57237ae111d7ba258d3dfe64dc368456.png +0 -0
- package/cloud-runtime/standalone/playwright-report/data/b33d5e80a15bd1deda4415b9d318ef73f581c950.png +0 -0
- package/cloud-runtime/standalone/playwright-report/data/b55684161aa440d0614595e13c91338f0420abbb.md +131 -0
- package/cloud-runtime/standalone/playwright-report/data/b9913957ae07e7565c38ddd71215be79b1ceb017.png +0 -0
- package/cloud-runtime/standalone/playwright-report/data/c3538be8ebbebc9fe4a7df8f12f04483af4a0d91.png +0 -0
- package/cloud-runtime/standalone/playwright-report/data/fe638f64ff5e36f1c30325564565662d3f57da87.md +180 -0
- package/cloud-runtime/standalone/playwright-report/index.html +85 -0
- package/cloud-runtime/standalone/scripts/bench-queue.ts +5 -4
- package/cloud-runtime/standalone/server.js +1 -1
- package/cloud-runtime/standalone/src/db/backup.ts +12 -11
- package/cloud-runtime/standalone/src/db/checks.ts +3 -3
- package/cloud-runtime/standalone/src/db/init.ts +13 -12
- package/cloud-runtime/standalone/src/graph/schedule-runner.ts +1 -1
- package/cloud-runtime/standalone/src/graph/store.ts +14 -13
- package/cloud-runtime/standalone/src/prompt-scheduler/get-store.ts +19 -3
- package/cloud-runtime/standalone/src/prompt-scheduler/store.ts +9 -9
- package/cloud-runtime/standalone/test/adapters/sqlite.ts +7 -6
- package/cloud-runtime/standalone/test-results/auth-Authentication-Flow-S-aff25-sion-across-page-navigation-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/comments-Task-comments-add-4dc59-nd-persists-it-for-the-task-chromium/error-context.md +131 -0
- package/cloud-runtime/standalone/test-results/comments-Task-comments-add-4dc59-nd-persists-it-for-the-task-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage--4082a-er-planning-after-ideation--chromium/error-context.md +180 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage--4082a-er-planning-after-ideation--chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage-Columns-displays-all-9-SDLC-stages-chromium/error-context.md +180 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage-Columns-displays-all-9-SDLC-stages-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-D-b6d98-ys-tasks-in-correct-columns-chromium/error-context.md +180 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-D-b6d98-ys-tasks-in-correct-columns-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-Display-shows-task-count-per-column-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/kanban-Task-Lifecycle-can-advance-task-through-all-stages-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/tsconfig.json +1 -2
- package/cloud-runtime/standalone/tsconfig.tsbuildinfo +1 -0
- package/cloud-runtime/standalone/worker/index.js +110 -823
- package/cloud-runtime/standalone/worker/index.ts +1 -0
- package/package.json +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__017f03c3._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__056d94e4._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__06634853._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0f580808._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__164a80ba._.js +0 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__16dd1fd7._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1a8e0957._.js +0 -7
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1cc2fe7f._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__23ad03bf._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__241a8bcf._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__29419d66._.js +0 -42
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2948f712._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__32ef6623._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__34cb1b98._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c1567b6._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c37453e._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3faa64cd._.js +0 -4
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4041bb93._.js +0 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42497c7b._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__49c03d66._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a8d14c1._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c50f159._.js +0 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c861686._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__588b6ab0._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__596d0e81._.js +0 -42
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__59b5d4e5._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__61c99680._.js +0 -52
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__64712846._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__707c32af._.js +0 -15
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7370bb86._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__749af50f._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__74b97f0a._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__75cedecf._.js +0 -6
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7e79d86a._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8b461158._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__918f0106._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__922eb7cd._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__927cfc20._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__952af4b3._.js +0 -22
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__98b352f7._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a44db634._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a67cd108._.js +0 -51
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ab2bf82d._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__abb032c1._.js +0 -34
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b4931ee1._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b4d05543._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b500f1bf._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b707e701._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b9e41767._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__be4ad4b5._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bf5803eb._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c99509c2._.js +0 -101
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ccd4846e._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d7e839a8._.js +0 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d908c9ea._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__da20a0aa._.js +0 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dcdeee3d._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e069c0a3._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e1e51c02._.js +0 -7
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e3a4fd97._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e4a87984._.js +0 -15
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ef82dda1._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fa0ebee3._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fee58db1._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/_d225c04f._.js +0 -3
- package/cloud-runtime/standalone/.next/static/chunks/d73f1cc3ebc9993b.js +0 -1
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +0 -221
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +0 -46
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +0 -1
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -42
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +0 -30
- package/cloud-runtime/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- package/cloud-runtime/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/cloud-runtime/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -46
- package/cloud-runtime/standalone/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/database.js +0 -90
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/index.js +0 -3
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/aggregate.js +0 -43
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/backup.js +0 -67
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/function.js +0 -31
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/inspect.js +0 -7
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/pragma.js +0 -12
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/serialize.js +0 -16
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/table.js +0 -189
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/transaction.js +0 -78
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/wrappers.js +0 -54
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/sqlite-error.js +0 -20
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/util.js +0 -12
- package/cloud-runtime/standalone/node_modules/better-sqlite3/package.json +0 -59
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/build/Release/better_sqlite3.node +0 -0
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/database.js +0 -90
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/index.js +0 -3
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/aggregate.js +0 -43
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/backup.js +0 -67
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/function.js +0 -31
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/inspect.js +0 -7
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/pragma.js +0 -12
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/serialize.js +0 -16
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/table.js +0 -189
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/transaction.js +0 -78
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/wrappers.js +0 -54
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/sqlite-error.js +0 -20
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/util.js +0 -12
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/package.json +0 -59
- package/cloud-runtime/standalone/node_modules/bindings/bindings.js +0 -221
- package/cloud-runtime/standalone/node_modules/bindings/package.json +0 -28
- package/cloud-runtime/standalone/node_modules/file-uri-to-path/index.js +0 -66
- package/cloud-runtime/standalone/node_modules/file-uri-to-path/package.json +0 -32
- package/cloud-runtime/standalone/scripts/fix-turbopack-externals.mjs +0 -87
- /package/cloud-runtime/standalone/.next/static/{15nzSRnot8KsYYP8yMBe- → 9PXl40CrFxI8nirdJ1A-T}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/.next/static/{15nzSRnot8KsYYP8yMBe- → 9PXl40CrFxI8nirdJ1A-T}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/.next/static/{15nzSRnot8KsYYP8yMBe- → 9PXl40CrFxI8nirdJ1A-T}/_ssgManifest.js +0 -0
- /package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/lib/index.js +0 -0
- /package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/versions.json +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[97812,e=>{"use strict";var t=e.i(60447);let
|
|
1
|
+
module.exports=[97812,e=>{"use strict";var t=e.i(60447),r=e.i(59833);let a=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 o extends Error{constructor(e){super(`Execution graph not found: ${e}`),this.name="GraphNotFoundError"}}class i extends Error{nodeIds;constructor(e,t){super(`Execution graph ${e} is missing node(s): ${t.join(", ")}`),this.name="GraphNodeNotFoundError",this.nodeIds=t}}class s 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 d(e){return null==e?null:JSON.stringify(e)}function p(e){if(null==e)return null;if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}function u(e){let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toISOString()}function l(e){return!e||"object"!=typeof e||Array.isArray(e)?{}:e}function c(e){let{type:t,status:r,metrics:a,output:n,...o}=e;return{type:t,status:r,config:o,output:n??null,metrics:a??null}}function g(e){let t={...l(p(e.payload))};return"eventType"in t||(t.eventType=e.event_type),"timestamp"in t||(t.timestamp=u(e.timestamp)),t}function h(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 m{getDb(){return(0,t.getSQLiteDb)()}createGraph(e,t){let a=this.getDb(),n=h(a);t?.skipTaskBinding&&(0,r.pragmaSet)(a,"foreign_keys = OFF");try{return(0,r.transaction)(a,()=>{let r=n.query("SELECT id FROM execution_graphs WHERE task_id = ? LIMIT 1",[e.taskId]).rows[0];if(r&&r.id!==e.id)throw new s(e.taskId,r.id);for(let[t,r]of(n.query(`INSERT INTO execution_graphs
|
|
2
2
|
(id, task_id, graph_version, mode, policy, done_criteria, schedule, created_at, updated_at)
|
|
3
3
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
4
4
|
ON CONFLICT (id) DO UPDATE SET
|
|
@@ -9,38 +9,38 @@ module.exports=[97812,e=>{"use strict";var t=e.i(60447);let r=new Set(["replan",
|
|
|
9
9
|
done_criteria = excluded.done_criteria,
|
|
10
10
|
schedule = excluded.schedule,
|
|
11
11
|
created_at = excluded.created_at,
|
|
12
|
-
updated_at = excluded.updated_at`,[e.id,e.taskId,e.graphVersion,e.mode,
|
|
13
|
-
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e.id,t,
|
|
14
|
-
VALUES (?, ?, ?, ?, ?, ?)`,[e.id,t.from,t.to,t.type,t.condition??null,
|
|
15
|
-
FROM graph_nodes WHERE graph_id = ? AND node_id IN (${a})`,[e,...r]),c=new Map;for(let e of
|
|
16
|
-
WHERE graph_id = ? AND node_id = ?`,[r.status??n.status,
|
|
17
|
-
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e,r,t.type,t.status,
|
|
18
|
-
VALUES (?, ?, ?, ?, ?, ?)`,[e,r.from,r.to,r.type,r.condition??null,
|
|
12
|
+
updated_at = excluded.updated_at`,[e.id,e.taskId,e.graphVersion,e.mode,d(e.policy),d(e.doneCriteria),d(e.schedule??null),e.createdAt,e.updatedAt]),n.query("DELETE FROM graph_nodes WHERE graph_id = ?",[e.id]),n.query("DELETE FROM graph_edges WHERE graph_id = ?",[e.id]),Object.entries(e.nodes))){let a=c(r);n.query(`INSERT INTO graph_nodes (graph_id, node_id, type, status, config, output, metrics)
|
|
13
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e.id,t,a.type,a.status,d(a.config),d(a.output),d(a.metrics)])}for(let t of e.edges)n.query(`INSERT INTO graph_edges (graph_id, from_id, to_id, type, condition, data_mapping)
|
|
14
|
+
VALUES (?, ?, ?, ?, ?, ?)`,[e.id,t.from,t.to,t.type,t.condition??null,d(t.dataMapping??null)]);for(let t of e.versionHistory)this.appendEventInternal(n,e.id,t);for(let t of e.runtimeEvents??[])this.appendEventInternal(n,e.id,t);t?.skipTaskBinding||n.query("UPDATE tasks SET graph_id = ? WHERE id = ?",[e.id,e.taskId]);let a=this.getGraphForTask(n,e.taskId);if(!a)throw new o(e.id);return a})}finally{t?.skipTaskBinding&&(0,r.pragmaSet)(a,"foreign_keys = ON")}}getGraph(e){let t=this.getDb();return this.getGraphForTask(h(t),e)}updateNodeRuntime(e,t,a){let n=this.getDb(),s=h(n);return(0,r.transaction)(n,()=>{if(!s.query("SELECT id, graph_version FROM execution_graphs WHERE id = ?",[e]).rows[0])throw new o(e);let r=Object.keys(t);if(0===r.length){let t=s.query("SELECT graph_version, updated_at FROM execution_graphs WHERE id = ?",[e]);return{graphVersion:t.rows[0].graph_version,updatedAt:u(t.rows[0].updated_at)}}let a=r.map(()=>"?").join(", "),n=s.query(`SELECT node_id, type, status, config, output, metrics
|
|
15
|
+
FROM graph_nodes WHERE graph_id = ? AND node_id IN (${a})`,[e,...r]),c=new Map;for(let e of n.rows)c.set(e.node_id,e);let g=r.filter(e=>!c.has(e));if(g.length>0)throw new i(e,g);for(let a of r){let r=t[a],n=c.get(a);if(!n||!r)continue;let o={...l(p(n.config)),...l(r.configPatch)};void 0!==r.startedAt&&(o.startedAt=r.startedAt),void 0!==r.completedAt&&(o.completedAt=r.completedAt),void 0!==r.actualMinutes&&(o.actualMinutes=r.actualMinutes),s.query(`UPDATE graph_nodes SET status = ?, metrics = ?, output = ?, config = ?
|
|
16
|
+
WHERE graph_id = ? AND node_id = ?`,[r.status??n.status,d(r.metrics??p(n.metrics)),d(r.output??p(n.output)),d(o),e,a])}let h=s.query("UPDATE execution_graphs SET updated_at = datetime('now') WHERE id = ? RETURNING graph_version, updated_at",[e]);return{graphVersion:h.rows[0].graph_version,updatedAt:u(h.rows[0].updated_at)}})}updateGraphStructure(e,t,a){let n=this.getDb(),i=h(n);return(0,r.transaction)(n,()=>{let r=i.query("SELECT id, graph_version, mode, policy, done_criteria, schedule FROM execution_graphs WHERE id = ?",[e]).rows[0];if(!r)throw new o(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=c(a);i.query(`INSERT INTO graph_nodes (graph_id, node_id, type, status, config, output, metrics)
|
|
17
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e,r,t.type,t.status,d(t.config),d(t.output),d(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)
|
|
18
|
+
VALUES (?, ?, ?, ?, ?, ?)`,[e,r.from,r.to,r.type,r.condition??null,d(r.dataMapping??null)]);let a=i.query(`UPDATE execution_graphs
|
|
19
19
|
SET mode = ?, policy = ?, done_criteria = ?, schedule = ?, updated_at = datetime('now')
|
|
20
20
|
WHERE id = ?
|
|
21
|
-
RETURNING graph_version, updated_at`,[t.mode??r.mode,
|
|
22
|
-
FROM execution_graphs WHERE task_id = ? ORDER BY updated_at DESC LIMIT 1`,[t]).rows[0];if(!
|
|
23
|
-
FROM graph_nodes WHERE graph_id = ? ORDER BY node_id ASC`,[
|
|
24
|
-
FROM graph_edges WHERE graph_id = ? ORDER BY from_id ASC, to_id ASC`,[
|
|
25
|
-
FROM graph_events WHERE graph_id = ? ORDER BY timestamp ASC, event_type ASC`,[
|
|
26
|
-
VALUES (?, ?, ?, ?)`,[t,r.eventType,
|
|
21
|
+
RETURNING graph_version, updated_at`,[t.mode??r.mode,d(t.policy??p(r.policy)??{}),d(t.doneCriteria??p(r.done_criteria)??{}),d(t.schedule??p(r.schedule)??null),e]);return{graphVersion:a.rows[0].graph_version,updatedAt:u(a.rows[0].updated_at)}})}appendEvent(e,t){let r=this.getDb();this.appendEventInternal(h(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
|
|
22
|
+
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
|
|
23
|
+
FROM graph_nodes WHERE graph_id = ? ORDER BY node_id ASC`,[r.id]),o=e.query(`SELECT from_id, to_id, type, condition, data_mapping
|
|
24
|
+
FROM graph_edges WHERE graph_id = ? ORDER BY from_id ASC, to_id ASC`,[r.id]),i=e.query(`SELECT event_type, payload, timestamp
|
|
25
|
+
FROM graph_events WHERE graph_id = ? ORDER BY timestamp ASC, event_type ASC`,[r.id]),s={};for(let e of n.rows)s[e.node_id]=function(e){let t={...l(p(e.config)),type:e.type,status:e.status},r=p(e.metrics);null!==r&&(t.metrics=r);let a=p(e.output);return null!==a&&(t.output=a),t}(e);let d=o.rows.map(e=>({from:e.from_id,to:e.to_id,type:e.type,...e.condition?{condition:p(e.condition)}:{},...e.data_mapping?{dataMapping:p(e.data_mapping)}:{}})),c=[],h=[];for(let e of i.rows){let t=g(e);a.has(t.eventType)?c.push(t):h.push(t)}return{id:r.id,taskId:r.task_id,graphVersion:r.graph_version,mode:r.mode,nodes:s,edges:d,policy:p(r.policy)??{},doneCriteria:p(r.done_criteria)??{},schedule:p(r.schedule)??void 0,versionHistory:c,runtimeEvents:h,createdAt:u(r.created_at),updatedAt:u(r.updated_at)}}appendEventInternal(e,t,r){e.query(`INSERT INTO graph_events (graph_id, event_type, payload, timestamp)
|
|
26
|
+
VALUES (?, ?, ?, ?)`,[t,r.eventType,d(r),r.timestamp])}}function f(){return new m}let E=new m;function y(e,t){return E.createGraph(e,t)}function _(e){return E.getGraph(e)}function R(e,t,r){return E.updateNodeRuntime(e,t,r)}function v(e,t,r){return E.updateGraphStructure(e,t,r)}function T(e,t){return E.appendEvent(e,t)}function S(e,r={}){let a=["graph_id = ?"],n=[e];r.eventType&&(a.push("event_type = ?"),n.push(r.eventType)),r.since&&(a.push("timestamp >= ?"),n.push(r.since));let o=r.limit??1e3,i=`SELECT event_type, payload, timestamp
|
|
27
27
|
FROM graph_events
|
|
28
28
|
WHERE ${a.join(" AND ")}
|
|
29
29
|
ORDER BY timestamp ASC, event_type ASC
|
|
30
|
-
LIMIT ?`;return n.push(o),
|
|
30
|
+
LIMIT ?`;return n.push(o),h((0,t.getSQLiteDb)()).query(i,n).rows.map(e=>g(e))}function I(e){let r=e.trim();return r?(0,t.getSQLiteDb)().prepare(`SELECT id AS graphId, task_id AS taskId
|
|
31
31
|
FROM execution_graphs
|
|
32
32
|
WHERE schedule IS NOT NULL
|
|
33
33
|
AND json_extract(schedule, '$.rootMessageId') = ?
|
|
34
34
|
AND json_extract(schedule, '$.state') = 'active'
|
|
35
35
|
ORDER BY updated_at DESC
|
|
36
|
-
LIMIT 1`).get(r)??null:null}function
|
|
36
|
+
LIMIT 1`).get(r)??null:null}function A(){return(0,t.getSQLiteDb)().prepare(`SELECT json_extract(schedule, '$.rootMessageId') AS rootMessageId
|
|
37
37
|
FROM execution_graphs
|
|
38
38
|
WHERE schedule IS NOT NULL
|
|
39
|
-
AND json_extract(schedule, '$.state') = 'active'`).all().map(e=>e.rootMessageId).filter(Boolean)}function
|
|
39
|
+
AND json_extract(schedule, '$.state') = 'active'`).all().map(e=>e.rootMessageId).filter(Boolean)}function C(e){let r=e.trim();return r?Number((0,t.getSQLiteDb)().prepare(`UPDATE execution_graphs
|
|
40
40
|
SET schedule = json_set(schedule, '$.state', 'stopped', '$.tickInProgress', json('false')),
|
|
41
41
|
updated_at = strftime('%Y-%m-%dT%H:%M:%fZ','now')
|
|
42
42
|
WHERE schedule IS NOT NULL
|
|
43
43
|
AND json_extract(schedule, '$.rootMessageId') = ?
|
|
44
|
-
AND json_extract(schedule, '$.state') = 'active'`).run(r).changes??0):0}e.s(["GraphNodeNotFoundError",()=>o,"GraphNotFoundError",()=>n,"GraphStore",()=>h,"GraphTaskAlreadyBoundError",()=>i,"GraphVersionConflictError",()=>a,"appendEvent",()=>v,"createGraph",()=>E,"createGraphStore",()=>m,"deactivateSchedulesByRootMessageId",()=>A,"getActiveScheduleForRootMessageId",()=>S,"getActiveScheduleRootMessageIds",()=>I,"getGraph",()=>y,"getGraphEvents",()=>T,"updateGraphStructure",()=>R,"updateNodeRuntime",()=>_])},6838,e=>{"use strict";var t=e.i(94028),r=e.i(49041),a=e.i(90081);async function n(e){let n=r.LOCAL_USER.id,o=await a.db.getTask(e.taskId,n);return o?{ok:!0,actor:{actorId:n,actorType:"service"},task:o,projectId:e.requestedProjectId??o.project_id??null}:{ok:!1,response:t.NextResponse.json({error:"Task not found"},{status:404})}}e.s(["authorizeGraphMutation",()=>n])},73122,77036,e=>{"use strict";function t(){return new Date().toISOString()}function r(e,t,r){return{actorId:e.actorId,actorType:e.actorType,action:t,...r?{projectId:r}:{}}}function a(e){return{eventType:"graph_created",timestamp:e.timestamp??t(),mode:e.mode,nodeCount:e.nodeCount,edgeCount:e.edgeCount,audit:r(e.actor,"graph_create",e.projectId)}}function n(e){return{eventType:"node_status",nodeId:e.nodeId,fromStatus:e.fromStatus,toStatus:e.toStatus,timestamp:e.timestamp??t(),...e.reason?{reason:e.reason}:{},audit:r(e.actor,"node_status_transition",e.projectId)}}function o(e){return{eventType:"gate_verification",nodeId:e.nodeId,timestamp:e.timestamp??t(),result:e.result,audit:r(e.actor,"gate_verification",e.projectId)}}function i(e){return{eventType:"budget_consumed",budgetType:e.budgetType,remaining:e.remaining,triggerNodeId:e.triggerNodeId,timestamp:e.timestamp??t(),audit:r(e.actor,"budget_consumption",e.projectId)}}function s(e){return{eventType:"replan",fromVersion:e.fromVersion,toVersion:e.toVersion,timestamp:e.timestamp??t(),reason:e.reason,triggeredBy:e.triggeredBy??("user"===e.actor.actorType?"human":"agent"),triggeredAtNodeId:e.triggeredAtNodeId,changes:e.changes,audit:r(e.actor,"graph_replan",e.projectId)}}function d(e){return{eventType:"rollback",toCheckpoint:e.toCheckpoint,timestamp:e.timestamp??t(),reason:e.reason,triggeredBy:e.triggeredBy??("user"===e.actor.actorType?"human":"agent"),audit:r(e.actor,"graph_rollback",e.projectId)}}e.s(["buildBudgetConsumedEvent",()=>i,"buildGateVerificationEvent",()=>o,"buildGraphCreatedEvent",()=>a,"buildNodeStatusEvent",()=>n,"buildReplanEvent",()=>s,"buildRollbackEvent",()=>d],73122);let p={graphCreateCount:0,replanCount:0,rollbackCount:0,migrationFailureCount:0,gatePassCount:0,gateFailCount:0};function u(){p.graphCreateCount+=1}function l(){p.replanCount+=1}function c(){p.rollbackCount+=1}function g(){p.migrationFailureCount+=1}function h(e){if(e){p.gatePassCount+=1;return}p.gateFailCount+=1}e.s(["recordGateVerificationResult",()=>h,"recordGraphCreate",()=>u,"recordMigrationFailure",()=>g,"recordReplan",()=>l,"recordRollback",()=>c],77036)},49684,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),o=e.i(61916),i=e.i(74677),s=e.i(69741),d=e.i(16795),p=e.i(87718),u=e.i(95169),l=e.i(47587),c=e.i(66012),g=e.i(70101),h=e.i(74838),m=e.i(10372),f=e.i(93695);e.i(52474);var E=e.i(220),y=e.i(69719),_=e.i(73122),R=e.i(63279),v=e.i(86582),T=e.i(6838),S=e.i(77036),I=e.i(97812),A=e.i(61860);let C=y.z.object({graphId:y.z.string().min(1),graphVersion:y.z.number(),updatedAt:y.z.string().min(1),replanBudgetRemaining:y.z.number()});async function N(e,{params:t}){let r,{id:a}=await t,n=(0,v.normalizeTaskId)(a);if(!n)return(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"Invalid task id"},{status:400});let o=await (0,v.parseJsonBody)(e,R.ReplanRequestSchema);if(!o.ok)return o.response;let i=o.data,s=await (0,T.authorizeGraphMutation)({request:e,taskId:n,action:"replan",requestedProjectId:i.projectId??i.project_id});if(!s.ok)return s.response;let d=await (0,I.getGraph)(n);if(!d)return(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"Graph not found"},{status:404});if(!d.nodes[i.triggeredAtNodeId])return(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"triggeredAtNodeId does not exist in graph"},{status:400});if(d.policy.replanBudgetRemaining<=0)return(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"Replan budget exhausted"},{status:409});let p=i.proposedChanges??{},u={...d.nodes},l=Object.entries(p.addNodes??{});for(let[e,t]of l)u[e]=function(e,t){let r="gate"===t.type||"fork"===t.type||"join"===t.type||"conditional"===t.type||"function"===t.type?t.type:"work",a=Array.isArray(t.deps)?t.deps.filter(e=>"string"==typeof e):[],n="string"==typeof t.status?t.status:"pending";return"work"===r?{type:"work",status:n,deps:a,title:"string"==typeof t.title&&t.title.trim().length>0?t.title:e,attempts:"number"==typeof t.attempts?t.attempts:0,maxAttempts:"number"==typeof t.maxAttempts?t.maxAttempts:1,retryPolicy:{backoffMs:"number"==typeof t.retryPolicy?.backoffMs?t.retryPolicy.backoffMs:1e3,onExhaust:t.retryPolicy?.onExhaust??"escalate"}}:"gate"===r?{type:"gate",status:n,deps:a,gateType:"progress"===t.gateType||"quality_gate"===t.gateType||"design_gate"===t.gateType||"handoff_gate"===t.gateType||"approval_gate"===t.gateType?t.gateType:"progress",required:!!t.required,verificationStrategy:{type:t.verificationStrategy?.type??"auto",checks:t.verificationStrategy?.checks??[]}}:"fork"===r?{type:"fork",status:n,deps:a}:"join"===r?{type:"join",status:n,deps:a,joinStrategy:"all"===t.joinStrategy||"any"===t.joinStrategy||"n_of_m"===t.joinStrategy?t.joinStrategy:"all"}:"function"===r?{type:"function",status:n,deps:a,kind:"mcp"===t.kind?"mcp":"bash",title:"string"==typeof t.title&&t.title.trim().length>0?t.title:e,description:"string"==typeof t.description&&t.description.trim().length>0?t.description:void 0,command:"string"==typeof t.command&&t.command.trim().length>0?t.command:e,...t.args&&"object"==typeof t.args&&!Array.isArray(t.args)?{args:t.args}:{},..."number"==typeof t.timeoutMs?{timeoutMs:t.timeoutMs}:{},...t.output&&"object"==typeof t.output&&!Array.isArray(t.output)?{output:t.output}:{}}:{type:"conditional",status:n,deps:a,condition:{expression:"string"==typeof t.condition?.expression&&t.condition.expression||"true",inputFrom:"string"==typeof t.condition?.inputFrom?t.condition.inputFrom||a[0]||e:a[0]||e},thenBranch:Array.isArray(t.thenBranch)?t.thenBranch.filter(e=>"string"==typeof e):[],elseBranch:Array.isArray(t.elseBranch)?t.elseBranch.filter(e=>"string"==typeof e):[]}}(e,t);let c=(p.removeNodes??[]).filter(e=>"string"==typeof e);for(let e of c)delete u[e];for(let e of(r=Array.isArray(p.rewireEdges)?p.rewireEdges:d.edges.filter(e=>!c.includes(e.from)&&!c.includes(e.to)),Object.values(u)))e.deps=e.deps.filter(e=>e in u);let g=p.estimateDeltas??{};for(let[e,t]of Object.entries(g)){let r=u[e];if(!r||"work"!==r.type)continue;let a=(r.estimateMinutes??0)+t;r.estimateMinutes=a<0?0:a}if(!(0,A.validateGraph)({...d,nodes:u,edges:r}).valid)return(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"Invalid replan graph"},{status:400});try{let e={...d.policy,replanBudgetRemaining:Math.max(0,d.policy.replanBudgetRemaining-1)},t=await (0,I.updateGraphStructure)(d.id,{mode:d.mode,nodes:u,edges:r,policy:e,doneCriteria:d.doneCriteria},i.ifMatchGraphVersion);return await (0,I.appendEvent)(d.id,(0,_.buildReplanEvent)({actor:s.actor,fromVersion:d.graphVersion,toVersion:t.graphVersion,reason:i.reason,triggeredAtNodeId:i.triggeredAtNodeId,changes:{addedNodes:l.map(([e])=>e),removedNodes:c,rewiredDeps:(p.rewireEdges??[]).map(e=>`${e.from}->${e.to}`),estimateDeltas:g},projectId:s.projectId})),await (0,I.appendEvent)(d.id,(0,_.buildBudgetConsumedEvent)({actor:s.actor,budgetType:"replan",remaining:e.replanBudgetRemaining,triggerNodeId:i.triggeredAtNodeId,projectId:s.projectId})),(0,S.recordReplan)(),(0,v.jsonWithSchema)(C,{graphId:d.id,graphVersion:t.graphVersion,updatedAt:t.updatedAt,replanBudgetRemaining:e.replanBudgetRemaining})}catch(e){if(e instanceof I.GraphVersionConflictError)return(0,v.graphConflictResponse)(e);return console.error("Error handling graph replan:",e),(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"Failed to replan graph"},{status:500})}}e.s(["POST",()=>N],77498);var w=e.i(77498);let k=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/tasks/[id]/graph/replan/route",pathname:"/api/tasks/[id]/graph/replan",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/tasks/[id]/graph/replan/route.ts",nextConfigOutput:"standalone",userland:w}),{workAsyncStorage:x,workUnitAsyncStorage:b,serverHooks:O}=k;function M(){return(0,a.patchFetch)({workAsyncStorage:x,workUnitAsyncStorage:b})}async function j(e,t,a){k.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let y="/api/tasks/[id]/graph/replan/route";y=y.replace(/\/index$/,"")||"/";let _=await k.prepare(e,t,{srcPage:y,multiZoneDraftMode:!1});if(!_)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:R,params:v,nextConfig:T,parsedUrl:S,isDraftMode:I,prerenderManifest:A,routerServerContext:C,isOnDemandRevalidate:N,revalidateOnlyGenerated:w,resolvedPathname:x,clientReferenceManifest:b,serverActionsManifest:O}=_,M=(0,s.normalizeAppPath)(y),j=!!(A.dynamicRoutes[M]||A.routes[x]),D=async()=>((null==C?void 0:C.render404)?await C.render404(e,t,S,!1):t.end("This page could not be found"),null);if(j&&!I){let e=!!A.routes[x],t=A.dynamicRoutes[M];if(t&&!1===t.fallback&&!e){if(T.experimental.adapterPath)return await D();throw new f.NoFallbackError}}let L=null;!j||k.isDev||I||(L="/index"===(L=x)?"/":L);let q=!0===k.isDev||!j,F=j&&!q;O&&b&&(0,i.setManifestsSingleton)({page:y,clientReferenceManifest:b,serverActionsManifest:O});let G=e.method||"GET",P=(0,o.getTracer)(),H=P.getActiveScopeSpan(),B={params:v,prerenderManifest:A,renderOpts:{experimental:{authInterrupts:!!T.experimental.authInterrupts},cacheComponents:!!T.cacheComponents,supportsDynamicResponse:q,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:T.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>k.onRequestError(e,t,a,n,C)},sharedContext:{buildId:R}},U=new d.NodeNextRequest(e),V=new d.NodeNextResponse(t),W=p.NextRequestAdapter.fromNodeNextRequest(U,(0,p.signalFromNodeResponse)(t));try{let i=async e=>k.handle(W,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=P.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=`${G} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${G} ${y}`)}),s=!!(0,n.getRequestMeta)(e,"minimalMode"),d=async n=>{var o,d;let p=async({previousCacheEntry:r})=>{try{if(!s&&N&&w&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await i(n);e.fetchMetrics=B.renderOpts.fetchMetrics;let d=B.renderOpts.pendingWaitUntil;d&&a.waitUntil&&(a.waitUntil(d),d=void 0);let p=B.renderOpts.collectedTags;if(!j)return await (0,c.sendResponse)(U,V,o,B.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,g.toNodeOutgoingHttpHeaders)(o.headers);p&&(t[m.NEXT_CACHE_TAGS_HEADER]=p),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,a=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:E.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await k.onRequestError(e,t,{routerKind:"App Router",routePath:y,routeType:"route",revalidateReason:(0,l.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:N})},!1,C),t}},u=await k.handleResponse({req:e,nextConfig:T,cacheKey:L,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:w,responseGenerator:p,waitUntil:a.waitUntil,isMinimalMode:s});if(!j)return null;if((null==u||null==(o=u.value)?void 0:o.kind)!==E.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(d=u.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",N?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),I&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,g.fromNodeOutgoingHttpHeaders)(u.value.headers);return s&&j||f.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,h.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(U,V,new Response(u.value.body,{headers:f,status:u.value.status||200})),null};H?await d(H):await P.withPropagatedContext(e.headers,()=>P.trace(u.BaseServerSpan.handleRequest,{spanName:`${G} ${y}`,kind:o.SpanKind.SERVER,attributes:{"http.method":G,"http.target":e.url}},d))}catch(t){if(t instanceof f.NoFallbackError||await k.onRequestError(e,t,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,l.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:N})},!1,C),j)throw t;return await (0,c.sendResponse)(U,V,new Response(null,{status:500})),null}}e.s(["handler",()=>j,"patchFetch",()=>M,"routeModule",()=>k,"serverHooks",()=>O,"workAsyncStorage",()=>x,"workUnitAsyncStorage",()=>b],49684)}];
|
|
44
|
+
AND json_extract(schedule, '$.state') = 'active'`).run(r).changes??0):0}e.s(["GraphNodeNotFoundError",()=>i,"GraphNotFoundError",()=>o,"GraphStore",()=>m,"GraphTaskAlreadyBoundError",()=>s,"GraphVersionConflictError",()=>n,"appendEvent",()=>T,"createGraph",()=>y,"createGraphStore",()=>f,"deactivateSchedulesByRootMessageId",()=>C,"getActiveScheduleForRootMessageId",()=>I,"getActiveScheduleRootMessageIds",()=>A,"getGraph",()=>_,"getGraphEvents",()=>S,"updateGraphStructure",()=>v,"updateNodeRuntime",()=>R])},6838,e=>{"use strict";var t=e.i(94028),r=e.i(49041),a=e.i(90081);async function n(e){let n=r.LOCAL_USER.id,o=await a.db.getTask(e.taskId,n);return o?{ok:!0,actor:{actorId:n,actorType:"service"},task:o,projectId:e.requestedProjectId??o.project_id??null}:{ok:!1,response:t.NextResponse.json({error:"Task not found"},{status:404})}}e.s(["authorizeGraphMutation",()=>n])},73122,77036,e=>{"use strict";function t(){return new Date().toISOString()}function r(e,t,r){return{actorId:e.actorId,actorType:e.actorType,action:t,...r?{projectId:r}:{}}}function a(e){return{eventType:"graph_created",timestamp:e.timestamp??t(),mode:e.mode,nodeCount:e.nodeCount,edgeCount:e.edgeCount,audit:r(e.actor,"graph_create",e.projectId)}}function n(e){return{eventType:"node_status",nodeId:e.nodeId,fromStatus:e.fromStatus,toStatus:e.toStatus,timestamp:e.timestamp??t(),...e.reason?{reason:e.reason}:{},audit:r(e.actor,"node_status_transition",e.projectId)}}function o(e){return{eventType:"gate_verification",nodeId:e.nodeId,timestamp:e.timestamp??t(),result:e.result,audit:r(e.actor,"gate_verification",e.projectId)}}function i(e){return{eventType:"budget_consumed",budgetType:e.budgetType,remaining:e.remaining,triggerNodeId:e.triggerNodeId,timestamp:e.timestamp??t(),audit:r(e.actor,"budget_consumption",e.projectId)}}function s(e){return{eventType:"replan",fromVersion:e.fromVersion,toVersion:e.toVersion,timestamp:e.timestamp??t(),reason:e.reason,triggeredBy:e.triggeredBy??("user"===e.actor.actorType?"human":"agent"),triggeredAtNodeId:e.triggeredAtNodeId,changes:e.changes,audit:r(e.actor,"graph_replan",e.projectId)}}function d(e){return{eventType:"rollback",toCheckpoint:e.toCheckpoint,timestamp:e.timestamp??t(),reason:e.reason,triggeredBy:e.triggeredBy??("user"===e.actor.actorType?"human":"agent"),audit:r(e.actor,"graph_rollback",e.projectId)}}e.s(["buildBudgetConsumedEvent",()=>i,"buildGateVerificationEvent",()=>o,"buildGraphCreatedEvent",()=>a,"buildNodeStatusEvent",()=>n,"buildReplanEvent",()=>s,"buildRollbackEvent",()=>d],73122);let p={graphCreateCount:0,replanCount:0,rollbackCount:0,migrationFailureCount:0,gatePassCount:0,gateFailCount:0};function u(){p.graphCreateCount+=1}function l(){p.replanCount+=1}function c(){p.rollbackCount+=1}function g(){p.migrationFailureCount+=1}function h(e){if(e){p.gatePassCount+=1;return}p.gateFailCount+=1}e.s(["recordGateVerificationResult",()=>h,"recordGraphCreate",()=>u,"recordMigrationFailure",()=>g,"recordReplan",()=>l,"recordRollback",()=>c],77036)},49684,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),o=e.i(61916),i=e.i(74677),s=e.i(69741),d=e.i(16795),p=e.i(87718),u=e.i(95169),l=e.i(47587),c=e.i(66012),g=e.i(70101),h=e.i(74838),m=e.i(10372),f=e.i(93695);e.i(52474);var E=e.i(220),y=e.i(69719),_=e.i(73122),R=e.i(63279),v=e.i(86582),T=e.i(6838),S=e.i(77036),I=e.i(97812),A=e.i(61860);let C=y.z.object({graphId:y.z.string().min(1),graphVersion:y.z.number(),updatedAt:y.z.string().min(1),replanBudgetRemaining:y.z.number()});async function N(e,{params:t}){let r,{id:a}=await t,n=(0,v.normalizeTaskId)(a);if(!n)return(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"Invalid task id"},{status:400});let o=await (0,v.parseJsonBody)(e,R.ReplanRequestSchema);if(!o.ok)return o.response;let i=o.data,s=await (0,T.authorizeGraphMutation)({request:e,taskId:n,action:"replan",requestedProjectId:i.projectId??i.project_id});if(!s.ok)return s.response;let d=await (0,I.getGraph)(n);if(!d)return(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"Graph not found"},{status:404});if(!d.nodes[i.triggeredAtNodeId])return(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"triggeredAtNodeId does not exist in graph"},{status:400});if(d.policy.replanBudgetRemaining<=0)return(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"Replan budget exhausted"},{status:409});let p=i.proposedChanges??{},u={...d.nodes},l=Object.entries(p.addNodes??{});for(let[e,t]of l)u[e]=function(e,t){let r="gate"===t.type||"fork"===t.type||"join"===t.type||"conditional"===t.type||"function"===t.type?t.type:"work",a=Array.isArray(t.deps)?t.deps.filter(e=>"string"==typeof e):[],n="string"==typeof t.status?t.status:"pending";return"work"===r?{type:"work",status:n,deps:a,title:"string"==typeof t.title&&t.title.trim().length>0?t.title:e,attempts:"number"==typeof t.attempts?t.attempts:0,maxAttempts:"number"==typeof t.maxAttempts?t.maxAttempts:1,retryPolicy:{backoffMs:"number"==typeof t.retryPolicy?.backoffMs?t.retryPolicy.backoffMs:1e3,onExhaust:t.retryPolicy?.onExhaust??"escalate"}}:"gate"===r?{type:"gate",status:n,deps:a,gateType:"progress"===t.gateType||"quality_gate"===t.gateType||"design_gate"===t.gateType||"handoff_gate"===t.gateType||"approval_gate"===t.gateType?t.gateType:"progress",required:!!t.required,verificationStrategy:{type:t.verificationStrategy?.type??"auto",checks:t.verificationStrategy?.checks??[]}}:"fork"===r?{type:"fork",status:n,deps:a}:"join"===r?{type:"join",status:n,deps:a,joinStrategy:"all"===t.joinStrategy||"any"===t.joinStrategy||"n_of_m"===t.joinStrategy?t.joinStrategy:"all"}:"function"===r?{type:"function",status:n,deps:a,kind:"mcp"===t.kind?"mcp":"bash",title:"string"==typeof t.title&&t.title.trim().length>0?t.title:e,description:"string"==typeof t.description&&t.description.trim().length>0?t.description:void 0,command:"string"==typeof t.command&&t.command.trim().length>0?t.command:e,...t.args&&"object"==typeof t.args&&!Array.isArray(t.args)?{args:t.args}:{},..."number"==typeof t.timeoutMs?{timeoutMs:t.timeoutMs}:{},...t.output&&"object"==typeof t.output&&!Array.isArray(t.output)?{output:t.output}:{}}:{type:"conditional",status:n,deps:a,condition:{expression:"string"==typeof t.condition?.expression&&t.condition.expression||"true",inputFrom:"string"==typeof t.condition?.inputFrom?t.condition.inputFrom||a[0]||e:a[0]||e},thenBranch:Array.isArray(t.thenBranch)?t.thenBranch.filter(e=>"string"==typeof e):[],elseBranch:Array.isArray(t.elseBranch)?t.elseBranch.filter(e=>"string"==typeof e):[]}}(e,t);let c=(p.removeNodes??[]).filter(e=>"string"==typeof e);for(let e of c)delete u[e];for(let e of(r=Array.isArray(p.rewireEdges)?p.rewireEdges:d.edges.filter(e=>!c.includes(e.from)&&!c.includes(e.to)),Object.values(u)))e.deps=e.deps.filter(e=>e in u);let g=p.estimateDeltas??{};for(let[e,t]of Object.entries(g)){let r=u[e];if(!r||"work"!==r.type)continue;let a=(r.estimateMinutes??0)+t;r.estimateMinutes=a<0?0:a}if(!(0,A.validateGraph)({...d,nodes:u,edges:r}).valid)return(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"Invalid replan graph"},{status:400});try{let e={...d.policy,replanBudgetRemaining:Math.max(0,d.policy.replanBudgetRemaining-1)},t=await (0,I.updateGraphStructure)(d.id,{mode:d.mode,nodes:u,edges:r,policy:e,doneCriteria:d.doneCriteria},i.ifMatchGraphVersion);return await (0,I.appendEvent)(d.id,(0,_.buildReplanEvent)({actor:s.actor,fromVersion:d.graphVersion,toVersion:t.graphVersion,reason:i.reason,triggeredAtNodeId:i.triggeredAtNodeId,changes:{addedNodes:l.map(([e])=>e),removedNodes:c,rewiredDeps:(p.rewireEdges??[]).map(e=>`${e.from}->${e.to}`),estimateDeltas:g},projectId:s.projectId})),await (0,I.appendEvent)(d.id,(0,_.buildBudgetConsumedEvent)({actor:s.actor,budgetType:"replan",remaining:e.replanBudgetRemaining,triggerNodeId:i.triggeredAtNodeId,projectId:s.projectId})),(0,S.recordReplan)(),(0,v.jsonWithSchema)(C,{graphId:d.id,graphVersion:t.graphVersion,updatedAt:t.updatedAt,replanBudgetRemaining:e.replanBudgetRemaining})}catch(e){if(e instanceof I.GraphVersionConflictError)return(0,v.graphConflictResponse)(e);return console.error("Error handling graph replan:",e),(0,v.jsonWithSchema)(R.ErrorResponseSchema,{error:"Failed to replan graph"},{status:500})}}e.s(["POST",()=>N],77498);var w=e.i(77498);let k=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/tasks/[id]/graph/replan/route",pathname:"/api/tasks/[id]/graph/replan",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/tasks/[id]/graph/replan/route.ts",nextConfigOutput:"standalone",userland:w}),{workAsyncStorage:x,workUnitAsyncStorage:b,serverHooks:O}=k;function M(){return(0,a.patchFetch)({workAsyncStorage:x,workUnitAsyncStorage:b})}async function j(e,t,a){k.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let y="/api/tasks/[id]/graph/replan/route";y=y.replace(/\/index$/,"")||"/";let _=await k.prepare(e,t,{srcPage:y,multiZoneDraftMode:!1});if(!_)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:R,params:v,nextConfig:T,parsedUrl:S,isDraftMode:I,prerenderManifest:A,routerServerContext:C,isOnDemandRevalidate:N,revalidateOnlyGenerated:w,resolvedPathname:x,clientReferenceManifest:b,serverActionsManifest:O}=_,M=(0,s.normalizeAppPath)(y),j=!!(A.dynamicRoutes[M]||A.routes[x]),D=async()=>((null==C?void 0:C.render404)?await C.render404(e,t,S,!1):t.end("This page could not be found"),null);if(j&&!I){let e=!!A.routes[x],t=A.dynamicRoutes[M];if(t&&!1===t.fallback&&!e){if(T.experimental.adapterPath)return await D();throw new f.NoFallbackError}}let L=null;!j||k.isDev||I||(L="/index"===(L=x)?"/":L);let q=!0===k.isDev||!j,F=j&&!q;O&&b&&(0,i.setManifestsSingleton)({page:y,clientReferenceManifest:b,serverActionsManifest:O});let G=e.method||"GET",P=(0,o.getTracer)(),H=P.getActiveScopeSpan(),B={params:v,prerenderManifest:A,renderOpts:{experimental:{authInterrupts:!!T.experimental.authInterrupts},cacheComponents:!!T.cacheComponents,supportsDynamicResponse:q,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:T.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>k.onRequestError(e,t,a,n,C)},sharedContext:{buildId:R}},U=new d.NodeNextRequest(e),V=new d.NodeNextResponse(t),W=p.NextRequestAdapter.fromNodeNextRequest(U,(0,p.signalFromNodeResponse)(t));try{let i=async e=>k.handle(W,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=P.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=`${G} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${G} ${y}`)}),s=!!(0,n.getRequestMeta)(e,"minimalMode"),d=async n=>{var o,d;let p=async({previousCacheEntry:r})=>{try{if(!s&&N&&w&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await i(n);e.fetchMetrics=B.renderOpts.fetchMetrics;let d=B.renderOpts.pendingWaitUntil;d&&a.waitUntil&&(a.waitUntil(d),d=void 0);let p=B.renderOpts.collectedTags;if(!j)return await (0,c.sendResponse)(U,V,o,B.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,g.toNodeOutgoingHttpHeaders)(o.headers);p&&(t[m.NEXT_CACHE_TAGS_HEADER]=p),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,a=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:E.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await k.onRequestError(e,t,{routerKind:"App Router",routePath:y,routeType:"route",revalidateReason:(0,l.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:N})},!1,C),t}},u=await k.handleResponse({req:e,nextConfig:T,cacheKey:L,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:w,responseGenerator:p,waitUntil:a.waitUntil,isMinimalMode:s});if(!j)return null;if((null==u||null==(o=u.value)?void 0:o.kind)!==E.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(d=u.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",N?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),I&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,g.fromNodeOutgoingHttpHeaders)(u.value.headers);return s&&j||f.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,h.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(U,V,new Response(u.value.body,{headers:f,status:u.value.status||200})),null};H?await d(H):await P.withPropagatedContext(e.headers,()=>P.trace(u.BaseServerSpan.handleRequest,{spanName:`${G} ${y}`,kind:o.SpanKind.SERVER,attributes:{"http.method":G,"http.target":e.url}},d))}catch(t){if(t instanceof f.NoFallbackError||await k.onRequestError(e,t,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,l.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:N})},!1,C),j)throw t;return await (0,c.sendResponse)(U,V,new Response(null,{status:500})),null}}e.s(["handler",()=>j,"patchFetch",()=>M,"routeModule",()=>k,"serverHooks",()=>O,"workAsyncStorage",()=>x,"workUnitAsyncStorage",()=>b],49684)}];
|
|
45
45
|
|
|
46
46
|
//# sourceMappingURL=_05fa3b89._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[69449,e=>{"use strict";async function s(){{await e.A(77510);let{getQueue:s,QUEUE_NAMES:r}=await e.A(80001),{taskProcessor:t}=await e.A(32984),o=await s();await o.work(r.TASK_PROCESS,t,{batchSize:5}),console.log("[worker] queue worker started (embedded)");let{pollSchedules:a}=await e.A(57063),{createDispatchFunction:l}=await e.A(73171),{createDispatchWork:c}=await e.A(73045),{executeNode:h}=await e.A(9072),{completeScheduleTick:n,isScheduleTickComplete:d}=await e.A(24865),{GraphStore:i}=await e.A(2224),p=process.env.PORT||"3000",_=`http://localhost:${p}`,u=!1;setTimeout(()=>{u=!0},5e3),setInterval(async()=>{if(u)try{let e=await fetch(`${_}/api/prompt-jobs/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"});if(e.ok){let s=await e.json();s.queued?.length>0&&console.log(`[prompt-jobs] dispatched ${s.queued.length} run(s)`),s.skipped?.length>0&&console.log(`[prompt-jobs] skipped ${s.skipped.length} job(s):`,s.skipped.map(e=>e.reason))}}catch{}},15e3),console.log("[prompt-jobs] poller started (every 15s)"),setInterval(async()=>{try{let e=l(),s=c(),r=await a({dispatchFunction:e,dispatchWork:s});if(r.tickedGraphIds.length>0&&console.log(`[schedules] ticked ${r.tickedGraphIds.length} graph(s)`),r.errors.length>0&&console.error(`[schedules] ${r.errors.length} error(s):`,r.errors.map(e=>e.error.message)),r.pendingWork.length>0){let t=new i;for(let o of r.pendingWork){let r=o.graph;for(let t of o.nodeIds)try{r=(await h(r,t,{dispatchFunction:e,dispatchWork:s})).graph,console.log(`[schedules] dispatched work node "${t}" for graph ${o.taskId}`)}catch(e){console.error(`[schedules] work dispatch failed for node "${t}":`,e)}if(t.updateGraphStructure(r.id,{nodes:r.nodes}),d(r)){let e=n(r);t.updateGraphStructure(e.id,{schedule:e.schedule}),console.log(`[schedules] tick complete for graph ${o.taskId}`)}}}}catch(e){console.error("[schedules] poll failed:",e)}},15e3),console.log("[schedules] poller started (every 15s)")}}e.s(["register",()=>s])},77510,e=>{e.v(s=>Promise.all(["server/chunks/lib_check-node-version_ts_ef89bf83._.js"].map(s=>e.l(s))).then(()=>s(4799)))},80001,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__529a6e1c._.js"].map(s=>e.l(s))).then(()=>s(40793)))},32984,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__4bce7db7._.js","server/chunks/lib_ea45fe73._.js","server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js"].map(s=>e.l(s))).then(()=>s(69324)))},57063,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__762ab29c._.js","server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js","server/chunks/_6519418b._.js","server/chunks/src_graph_executor_ts_a8bc8d58._.js"].map(s=>e.l(s))).then(()=>s(76109)))},73171,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__f9cff4b0._.js"].map(s=>e.l(s))).then(()=>s(58898)))},73045,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__da3a1ce7._.js"].map(s=>e.l(s))).then(()=>s(80469)))},9072,e=>{e.v(s=>Promise.all(["server/chunks/[externals]__986fcdb7._.js","server/chunks/_6bc1b3e1._.js","server/chunks/src_graph_executor_ts_a8bc8d58._.js"].map(s=>e.l(s))).then(()=>s(88840)))},24865,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__6db132e9._.js","server/chunks/_6519418b._.js"].map(s=>e.l(s))).then(()=>s(9662)))},2224,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__8f5cac13._.js","server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js"].map(s=>e.l(s))).then(()=>s(91329)))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_17e53c87._.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[97812,e=>{"use strict";var t=e.i(60447);let
|
|
1
|
+
module.exports=[97812,e=>{"use strict";var t=e.i(60447),r=e.i(59833);let a=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 o extends Error{constructor(e){super(`Execution graph not found: ${e}`),this.name="GraphNotFoundError"}}class i extends Error{nodeIds;constructor(e,t){super(`Execution graph ${e} is missing node(s): ${t.join(", ")}`),this.name="GraphNodeNotFoundError",this.nodeIds=t}}class s 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 d(e){return null==e?null:JSON.stringify(e)}function u(e){if(null==e)return null;if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}function p(e){let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toISOString()}function c(e){return!e||"object"!=typeof e||Array.isArray(e)?{}:e}function l(e){let{type:t,status:r,metrics:a,output:n,...o}=e;return{type:t,status:r,config:o,output:n??null,metrics:a??null}}function h(e){let t={...c(u(e.payload))};return"eventType"in t||(t.eventType=e.event_type),"timestamp"in t||(t.timestamp=p(e.timestamp)),t}function g(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 E{getDb(){return(0,t.getSQLiteDb)()}createGraph(e,t){let a=this.getDb(),n=g(a);t?.skipTaskBinding&&(0,r.pragmaSet)(a,"foreign_keys = OFF");try{return(0,r.transaction)(a,()=>{let r=n.query("SELECT id FROM execution_graphs WHERE task_id = ? LIMIT 1",[e.taskId]).rows[0];if(r&&r.id!==e.id)throw new s(e.taskId,r.id);for(let[t,r]of(n.query(`INSERT INTO execution_graphs
|
|
2
2
|
(id, task_id, graph_version, mode, policy, done_criteria, schedule, created_at, updated_at)
|
|
3
3
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
4
4
|
ON CONFLICT (id) DO UPDATE SET
|
|
@@ -9,38 +9,38 @@ module.exports=[97812,e=>{"use strict";var t=e.i(60447);let r=new Set(["replan",
|
|
|
9
9
|
done_criteria = excluded.done_criteria,
|
|
10
10
|
schedule = excluded.schedule,
|
|
11
11
|
created_at = excluded.created_at,
|
|
12
|
-
updated_at = excluded.updated_at`,[e.id,e.taskId,e.graphVersion,e.mode,
|
|
13
|
-
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e.id,t,
|
|
14
|
-
VALUES (?, ?, ?, ?, ?, ?)`,[e.id,t.from,t.to,t.type,t.condition??null,
|
|
15
|
-
FROM graph_nodes WHERE graph_id = ? AND node_id IN (${a})`,[e,...r]),l=new Map;for(let e of
|
|
16
|
-
WHERE graph_id = ? AND node_id = ?`,[r.status??n.status,
|
|
17
|
-
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e,r,t.type,t.status,
|
|
18
|
-
VALUES (?, ?, ?, ?, ?, ?)`,[e,r.from,r.to,r.type,r.condition??null,
|
|
12
|
+
updated_at = excluded.updated_at`,[e.id,e.taskId,e.graphVersion,e.mode,d(e.policy),d(e.doneCriteria),d(e.schedule??null),e.createdAt,e.updatedAt]),n.query("DELETE FROM graph_nodes WHERE graph_id = ?",[e.id]),n.query("DELETE FROM graph_edges WHERE graph_id = ?",[e.id]),Object.entries(e.nodes))){let a=l(r);n.query(`INSERT INTO graph_nodes (graph_id, node_id, type, status, config, output, metrics)
|
|
13
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e.id,t,a.type,a.status,d(a.config),d(a.output),d(a.metrics)])}for(let t of e.edges)n.query(`INSERT INTO graph_edges (graph_id, from_id, to_id, type, condition, data_mapping)
|
|
14
|
+
VALUES (?, ?, ?, ?, ?, ?)`,[e.id,t.from,t.to,t.type,t.condition??null,d(t.dataMapping??null)]);for(let t of e.versionHistory)this.appendEventInternal(n,e.id,t);for(let t of e.runtimeEvents??[])this.appendEventInternal(n,e.id,t);t?.skipTaskBinding||n.query("UPDATE tasks SET graph_id = ? WHERE id = ?",[e.id,e.taskId]);let a=this.getGraphForTask(n,e.taskId);if(!a)throw new o(e.id);return a})}finally{t?.skipTaskBinding&&(0,r.pragmaSet)(a,"foreign_keys = ON")}}getGraph(e){let t=this.getDb();return this.getGraphForTask(g(t),e)}updateNodeRuntime(e,t,a){let n=this.getDb(),s=g(n);return(0,r.transaction)(n,()=>{if(!s.query("SELECT id, graph_version FROM execution_graphs WHERE id = ?",[e]).rows[0])throw new o(e);let r=Object.keys(t);if(0===r.length){let t=s.query("SELECT graph_version, updated_at FROM execution_graphs WHERE id = ?",[e]);return{graphVersion:t.rows[0].graph_version,updatedAt:p(t.rows[0].updated_at)}}let a=r.map(()=>"?").join(", "),n=s.query(`SELECT node_id, type, status, config, output, metrics
|
|
15
|
+
FROM graph_nodes WHERE graph_id = ? AND node_id IN (${a})`,[e,...r]),l=new Map;for(let e of n.rows)l.set(e.node_id,e);let h=r.filter(e=>!l.has(e));if(h.length>0)throw new i(e,h);for(let a of r){let r=t[a],n=l.get(a);if(!n||!r)continue;let o={...c(u(n.config)),...c(r.configPatch)};void 0!==r.startedAt&&(o.startedAt=r.startedAt),void 0!==r.completedAt&&(o.completedAt=r.completedAt),void 0!==r.actualMinutes&&(o.actualMinutes=r.actualMinutes),s.query(`UPDATE graph_nodes SET status = ?, metrics = ?, output = ?, config = ?
|
|
16
|
+
WHERE graph_id = ? AND node_id = ?`,[r.status??n.status,d(r.metrics??u(n.metrics)),d(r.output??u(n.output)),d(o),e,a])}let g=s.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:p(g.rows[0].updated_at)}})}updateGraphStructure(e,t,a){let n=this.getDb(),i=g(n);return(0,r.transaction)(n,()=>{let r=i.query("SELECT id, graph_version, mode, policy, done_criteria, schedule FROM execution_graphs WHERE id = ?",[e]).rows[0];if(!r)throw new o(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=l(a);i.query(`INSERT INTO graph_nodes (graph_id, node_id, type, status, config, output, metrics)
|
|
17
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e,r,t.type,t.status,d(t.config),d(t.output),d(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)
|
|
18
|
+
VALUES (?, ?, ?, ?, ?, ?)`,[e,r.from,r.to,r.type,r.condition??null,d(r.dataMapping??null)]);let a=i.query(`UPDATE execution_graphs
|
|
19
19
|
SET mode = ?, policy = ?, done_criteria = ?, schedule = ?, updated_at = datetime('now')
|
|
20
20
|
WHERE id = ?
|
|
21
|
-
RETURNING graph_version, updated_at`,[t.mode??r.mode,
|
|
22
|
-
FROM execution_graphs WHERE task_id = ? ORDER BY updated_at DESC LIMIT 1`,[t]).rows[0];if(!
|
|
23
|
-
FROM graph_nodes WHERE graph_id = ? ORDER BY node_id ASC`,[
|
|
24
|
-
FROM graph_edges WHERE graph_id = ? ORDER BY from_id ASC, to_id ASC`,[
|
|
25
|
-
FROM graph_events WHERE graph_id = ? ORDER BY timestamp ASC, event_type ASC`,[
|
|
26
|
-
VALUES (?, ?, ?, ?)`,[t,r.eventType,
|
|
21
|
+
RETURNING graph_version, updated_at`,[t.mode??r.mode,d(t.policy??u(r.policy)??{}),d(t.doneCriteria??u(r.done_criteria)??{}),d(t.schedule??u(r.schedule)??null),e]);return{graphVersion:a.rows[0].graph_version,updatedAt:p(a.rows[0].updated_at)}})}appendEvent(e,t){let r=this.getDb();this.appendEventInternal(g(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
|
|
22
|
+
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
|
|
23
|
+
FROM graph_nodes WHERE graph_id = ? ORDER BY node_id ASC`,[r.id]),o=e.query(`SELECT from_id, to_id, type, condition, data_mapping
|
|
24
|
+
FROM graph_edges WHERE graph_id = ? ORDER BY from_id ASC, to_id ASC`,[r.id]),i=e.query(`SELECT event_type, payload, timestamp
|
|
25
|
+
FROM graph_events WHERE graph_id = ? ORDER BY timestamp ASC, event_type ASC`,[r.id]),s={};for(let e of n.rows)s[e.node_id]=function(e){let t={...c(u(e.config)),type:e.type,status:e.status},r=u(e.metrics);null!==r&&(t.metrics=r);let a=u(e.output);return null!==a&&(t.output=a),t}(e);let d=o.rows.map(e=>({from:e.from_id,to:e.to_id,type:e.type,...e.condition?{condition:u(e.condition)}:{},...e.data_mapping?{dataMapping:u(e.data_mapping)}:{}})),l=[],g=[];for(let e of i.rows){let t=h(e);a.has(t.eventType)?l.push(t):g.push(t)}return{id:r.id,taskId:r.task_id,graphVersion:r.graph_version,mode:r.mode,nodes:s,edges:d,policy:u(r.policy)??{},doneCriteria:u(r.done_criteria)??{},schedule:u(r.schedule)??void 0,versionHistory:l,runtimeEvents:g,createdAt:p(r.created_at),updatedAt:p(r.updated_at)}}appendEventInternal(e,t,r){e.query(`INSERT INTO graph_events (graph_id, event_type, payload, timestamp)
|
|
26
|
+
VALUES (?, ?, ?, ?)`,[t,r.eventType,d(r),r.timestamp])}}function m(){return new E}let _=new E;function f(e,t){return _.createGraph(e,t)}function R(e){return _.getGraph(e)}function y(e,t,r){return _.updateNodeRuntime(e,t,r)}function v(e,t,r){return _.updateGraphStructure(e,t,r)}function T(e,t){return _.appendEvent(e,t)}function S(e,r={}){let a=["graph_id = ?"],n=[e];r.eventType&&(a.push("event_type = ?"),n.push(r.eventType)),r.since&&(a.push("timestamp >= ?"),n.push(r.since));let o=r.limit??1e3,i=`SELECT event_type, payload, timestamp
|
|
27
27
|
FROM graph_events
|
|
28
28
|
WHERE ${a.join(" AND ")}
|
|
29
29
|
ORDER BY timestamp ASC, event_type ASC
|
|
30
|
-
LIMIT ?`;return n.push(o),
|
|
30
|
+
LIMIT ?`;return n.push(o),g((0,t.getSQLiteDb)()).query(i,n).rows.map(e=>h(e))}function I(e){let r=e.trim();return r?(0,t.getSQLiteDb)().prepare(`SELECT id AS graphId, task_id AS taskId
|
|
31
31
|
FROM execution_graphs
|
|
32
32
|
WHERE schedule IS NOT NULL
|
|
33
33
|
AND json_extract(schedule, '$.rootMessageId') = ?
|
|
34
34
|
AND json_extract(schedule, '$.state') = 'active'
|
|
35
35
|
ORDER BY updated_at DESC
|
|
36
|
-
LIMIT 1`).get(r)??null:null}function
|
|
36
|
+
LIMIT 1`).get(r)??null:null}function C(){return(0,t.getSQLiteDb)().prepare(`SELECT json_extract(schedule, '$.rootMessageId') AS rootMessageId
|
|
37
37
|
FROM execution_graphs
|
|
38
38
|
WHERE schedule IS NOT NULL
|
|
39
|
-
AND json_extract(schedule, '$.state') = 'active'`).all().map(e=>e.rootMessageId).filter(Boolean)}function
|
|
39
|
+
AND json_extract(schedule, '$.state') = 'active'`).all().map(e=>e.rootMessageId).filter(Boolean)}function k(e){let r=e.trim();return r?Number((0,t.getSQLiteDb)().prepare(`UPDATE execution_graphs
|
|
40
40
|
SET schedule = json_set(schedule, '$.state', 'stopped', '$.tickInProgress', json('false')),
|
|
41
41
|
updated_at = strftime('%Y-%m-%dT%H:%M:%fZ','now')
|
|
42
42
|
WHERE schedule IS NOT NULL
|
|
43
43
|
AND json_extract(schedule, '$.rootMessageId') = ?
|
|
44
|
-
AND json_extract(schedule, '$.state') = 'active'`).run(r).changes??0):0}e.s(["GraphNodeNotFoundError",()=>o,"GraphNotFoundError",()=>n,"GraphStore",()=>g,"GraphTaskAlreadyBoundError",()=>i,"GraphVersionConflictError",()=>a,"appendEvent",()=>v,"createGraph",()=>_,"createGraphStore",()=>E,"deactivateSchedulesByRootMessageId",()=>C,"getActiveScheduleForRootMessageId",()=>S,"getActiveScheduleRootMessageIds",()=>I,"getGraph",()=>f,"getGraphEvents",()=>T,"updateGraphStructure",()=>y,"updateNodeRuntime",()=>R])},6838,e=>{"use strict";var t=e.i(94028),r=e.i(49041),a=e.i(90081);async function n(e){let n=r.LOCAL_USER.id,o=await a.db.getTask(e.taskId,n);return o?{ok:!0,actor:{actorId:n,actorType:"service"},task:o,projectId:e.requestedProjectId??o.project_id??null}:{ok:!1,response:t.NextResponse.json({error:"Task not found"},{status:404})}}e.s(["authorizeGraphMutation",()=>n])},73122,77036,e=>{"use strict";function t(){return new Date().toISOString()}function r(e,t,r){return{actorId:e.actorId,actorType:e.actorType,action:t,...r?{projectId:r}:{}}}function a(e){return{eventType:"graph_created",timestamp:e.timestamp??t(),mode:e.mode,nodeCount:e.nodeCount,edgeCount:e.edgeCount,audit:r(e.actor,"graph_create",e.projectId)}}function n(e){return{eventType:"node_status",nodeId:e.nodeId,fromStatus:e.fromStatus,toStatus:e.toStatus,timestamp:e.timestamp??t(),...e.reason?{reason:e.reason}:{},audit:r(e.actor,"node_status_transition",e.projectId)}}function o(e){return{eventType:"gate_verification",nodeId:e.nodeId,timestamp:e.timestamp??t(),result:e.result,audit:r(e.actor,"gate_verification",e.projectId)}}function i(e){return{eventType:"budget_consumed",budgetType:e.budgetType,remaining:e.remaining,triggerNodeId:e.triggerNodeId,timestamp:e.timestamp??t(),audit:r(e.actor,"budget_consumption",e.projectId)}}function s(e){return{eventType:"replan",fromVersion:e.fromVersion,toVersion:e.toVersion,timestamp:e.timestamp??t(),reason:e.reason,triggeredBy:e.triggeredBy??("user"===e.actor.actorType?"human":"agent"),triggeredAtNodeId:e.triggeredAtNodeId,changes:e.changes,audit:r(e.actor,"graph_replan",e.projectId)}}function d(e){return{eventType:"rollback",toCheckpoint:e.toCheckpoint,timestamp:e.timestamp??t(),reason:e.reason,triggeredBy:e.triggeredBy??("user"===e.actor.actorType?"human":"agent"),audit:r(e.actor,"graph_rollback",e.projectId)}}e.s(["buildBudgetConsumedEvent",()=>i,"buildGateVerificationEvent",()=>o,"buildGraphCreatedEvent",()=>a,"buildNodeStatusEvent",()=>n,"buildReplanEvent",()=>s,"buildRollbackEvent",()=>d],73122);let u={graphCreateCount:0,replanCount:0,rollbackCount:0,migrationFailureCount:0,gatePassCount:0,gateFailCount:0};function p(){u.graphCreateCount+=1}function c(){u.replanCount+=1}function l(){u.rollbackCount+=1}function h(){u.migrationFailureCount+=1}function g(e){if(e){u.gatePassCount+=1;return}u.gateFailCount+=1}e.s(["recordGateVerificationResult",()=>g,"recordGraphCreate",()=>p,"recordMigrationFailure",()=>h,"recordReplan",()=>c,"recordRollback",()=>l],77036)},40931,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),o=e.i(61916),i=e.i(74677),s=e.i(69741),d=e.i(16795),u=e.i(87718),p=e.i(95169),c=e.i(47587),l=e.i(66012),h=e.i(70101),g=e.i(74838),E=e.i(10372),m=e.i(93695);e.i(52474);var _=e.i(220),f=e.i(69719),R=e.i(73122),y=e.i(63279),v=e.i(86582),T=e.i(6838),S=e.i(77036),I=e.i(97812);let C=f.z.object({graphId:f.z.string().min(1),graphVersion:f.z.number(),updatedAt:f.z.string().min(1),checkpoint:f.z.string().min(1)});async function k(e,{params:t}){let{id:r}=await t,a=(0,v.normalizeTaskId)(r);if(!a)return(0,v.jsonWithSchema)(y.ErrorResponseSchema,{error:"Invalid task id"},{status:400});let n=await (0,v.parseJsonBody)(e,y.RollbackRequestSchema);if(!n.ok)return n.response;let o=n.data,i=await (0,T.authorizeGraphMutation)({request:e,taskId:a,action:"rollback",requestedProjectId:o.projectId??o.project_id});if(!i.ok)return i.response;let s=await (0,I.getGraph)(a);if(!s)return(0,v.jsonWithSchema)(y.ErrorResponseSchema,{error:"Graph not found"},{status:404});if(!s.nodes[o.toCheckpoint])return(0,v.jsonWithSchema)(y.ErrorResponseSchema,{error:"toCheckpoint does not exist in graph"},{status:400});try{let e=await (0,I.updateGraphStructure)(s.id,{mode:s.mode,policy:s.policy,doneCriteria:s.doneCriteria},o.ifMatchGraphVersion);return await (0,I.appendEvent)(s.id,(0,R.buildRollbackEvent)({actor:i.actor,toCheckpoint:o.toCheckpoint,reason:o.reason?.trim()||"rollback requested",projectId:i.projectId})),(0,S.recordRollback)(),(0,v.jsonWithSchema)(C,{graphId:s.id,graphVersion:e.graphVersion,updatedAt:e.updatedAt,checkpoint:o.toCheckpoint})}catch(e){if(e instanceof I.GraphVersionConflictError)return(0,v.graphConflictResponse)(e);return console.error("Error handling graph rollback:",e),(0,v.jsonWithSchema)(y.ErrorResponseSchema,{error:"Failed to rollback graph"},{status:500})}}e.s(["POST",()=>k],7846);var A=e.i(7846);let N=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/tasks/[id]/graph/rollback/route",pathname:"/api/tasks/[id]/graph/rollback",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/tasks/[id]/graph/rollback/route.ts",nextConfigOutput:"standalone",userland:A}),{workAsyncStorage:w,workUnitAsyncStorage:b,serverHooks:x}=N;function O(){return(0,a.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:b})}async function D(e,t,a){N.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/tasks/[id]/graph/rollback/route";f=f.replace(/\/index$/,"")||"/";let R=await N.prepare(e,t,{srcPage:f,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:v,nextConfig:T,parsedUrl:S,isDraftMode:I,prerenderManifest:C,routerServerContext:k,isOnDemandRevalidate:A,revalidateOnlyGenerated:w,resolvedPathname:b,clientReferenceManifest:x,serverActionsManifest:O}=R,D=(0,s.normalizeAppPath)(f),M=!!(C.dynamicRoutes[D]||C.routes[b]),L=async()=>((null==k?void 0:k.render404)?await k.render404(e,t,S,!1):t.end("This page could not be found"),null);if(M&&!I){let e=!!C.routes[b],t=C.dynamicRoutes[D];if(t&&!1===t.fallback&&!e){if(T.experimental.adapterPath)return await L();throw new m.NoFallbackError}}let j=null;!M||N.isDev||I||(j="/index"===(j=b)?"/":j);let q=!0===N.isDev||!M,G=M&&!q;O&&x&&(0,i.setManifestsSingleton)({page:f,clientReferenceManifest:x,serverActionsManifest:O});let F=e.method||"GET",H=(0,o.getTracer)(),P=H.getActiveScopeSpan(),U={params:v,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!T.experimental.authInterrupts},cacheComponents:!!T.cacheComponents,supportsDynamicResponse:q,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:T.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>N.onRequestError(e,t,a,n,k)},sharedContext:{buildId:y}},V=new d.NodeNextRequest(e),W=new d.NodeNextResponse(t),$=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let i=async e=>N.handle($,U).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=H.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=`${F} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${F} ${f}`)}),s=!!(0,n.getRequestMeta)(e,"minimalMode"),d=async n=>{var o,d;let u=async({previousCacheEntry:r})=>{try{if(!s&&A&&w&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await i(n);e.fetchMetrics=U.renderOpts.fetchMetrics;let d=U.renderOpts.pendingWaitUntil;d&&a.waitUntil&&(a.waitUntil(d),d=void 0);let u=U.renderOpts.collectedTags;if(!M)return await (0,l.sendResponse)(V,W,o,U.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);u&&(t[E.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=E.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,a=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=E.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:_.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await N.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:G,isOnDemandRevalidate:A})},!1,k),t}},p=await N.handleResponse({req:e,nextConfig:T,cacheKey:j,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:w,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:s});if(!M)return null;if((null==p||null==(o=p.value)?void 0:o.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",A?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),I&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,h.fromNodeOutgoingHttpHeaders)(p.value.headers);return s&&M||m.delete(E.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,g.getCacheControlHeader)(p.cacheControl)),await (0,l.sendResponse)(V,W,new Response(p.value.body,{headers:m,status:p.value.status||200})),null};P?await d(P):await H.withPropagatedContext(e.headers,()=>H.trace(p.BaseServerSpan.handleRequest,{spanName:`${F} ${f}`,kind:o.SpanKind.SERVER,attributes:{"http.method":F,"http.target":e.url}},d))}catch(t){if(t instanceof m.NoFallbackError||await N.onRequestError(e,t,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:G,isOnDemandRevalidate:A})},!1,k),M)throw t;return await (0,l.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",()=>D,"patchFetch",()=>O,"routeModule",()=>N,"serverHooks",()=>x,"workAsyncStorage",()=>w,"workUnitAsyncStorage",()=>b],40931)}];
|
|
44
|
+
AND json_extract(schedule, '$.state') = 'active'`).run(r).changes??0):0}e.s(["GraphNodeNotFoundError",()=>i,"GraphNotFoundError",()=>o,"GraphStore",()=>E,"GraphTaskAlreadyBoundError",()=>s,"GraphVersionConflictError",()=>n,"appendEvent",()=>T,"createGraph",()=>f,"createGraphStore",()=>m,"deactivateSchedulesByRootMessageId",()=>k,"getActiveScheduleForRootMessageId",()=>I,"getActiveScheduleRootMessageIds",()=>C,"getGraph",()=>R,"getGraphEvents",()=>S,"updateGraphStructure",()=>v,"updateNodeRuntime",()=>y])},6838,e=>{"use strict";var t=e.i(94028),r=e.i(49041),a=e.i(90081);async function n(e){let n=r.LOCAL_USER.id,o=await a.db.getTask(e.taskId,n);return o?{ok:!0,actor:{actorId:n,actorType:"service"},task:o,projectId:e.requestedProjectId??o.project_id??null}:{ok:!1,response:t.NextResponse.json({error:"Task not found"},{status:404})}}e.s(["authorizeGraphMutation",()=>n])},73122,77036,e=>{"use strict";function t(){return new Date().toISOString()}function r(e,t,r){return{actorId:e.actorId,actorType:e.actorType,action:t,...r?{projectId:r}:{}}}function a(e){return{eventType:"graph_created",timestamp:e.timestamp??t(),mode:e.mode,nodeCount:e.nodeCount,edgeCount:e.edgeCount,audit:r(e.actor,"graph_create",e.projectId)}}function n(e){return{eventType:"node_status",nodeId:e.nodeId,fromStatus:e.fromStatus,toStatus:e.toStatus,timestamp:e.timestamp??t(),...e.reason?{reason:e.reason}:{},audit:r(e.actor,"node_status_transition",e.projectId)}}function o(e){return{eventType:"gate_verification",nodeId:e.nodeId,timestamp:e.timestamp??t(),result:e.result,audit:r(e.actor,"gate_verification",e.projectId)}}function i(e){return{eventType:"budget_consumed",budgetType:e.budgetType,remaining:e.remaining,triggerNodeId:e.triggerNodeId,timestamp:e.timestamp??t(),audit:r(e.actor,"budget_consumption",e.projectId)}}function s(e){return{eventType:"replan",fromVersion:e.fromVersion,toVersion:e.toVersion,timestamp:e.timestamp??t(),reason:e.reason,triggeredBy:e.triggeredBy??("user"===e.actor.actorType?"human":"agent"),triggeredAtNodeId:e.triggeredAtNodeId,changes:e.changes,audit:r(e.actor,"graph_replan",e.projectId)}}function d(e){return{eventType:"rollback",toCheckpoint:e.toCheckpoint,timestamp:e.timestamp??t(),reason:e.reason,triggeredBy:e.triggeredBy??("user"===e.actor.actorType?"human":"agent"),audit:r(e.actor,"graph_rollback",e.projectId)}}e.s(["buildBudgetConsumedEvent",()=>i,"buildGateVerificationEvent",()=>o,"buildGraphCreatedEvent",()=>a,"buildNodeStatusEvent",()=>n,"buildReplanEvent",()=>s,"buildRollbackEvent",()=>d],73122);let u={graphCreateCount:0,replanCount:0,rollbackCount:0,migrationFailureCount:0,gatePassCount:0,gateFailCount:0};function p(){u.graphCreateCount+=1}function c(){u.replanCount+=1}function l(){u.rollbackCount+=1}function h(){u.migrationFailureCount+=1}function g(e){if(e){u.gatePassCount+=1;return}u.gateFailCount+=1}e.s(["recordGateVerificationResult",()=>g,"recordGraphCreate",()=>p,"recordMigrationFailure",()=>h,"recordReplan",()=>c,"recordRollback",()=>l],77036)},40931,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),o=e.i(61916),i=e.i(74677),s=e.i(69741),d=e.i(16795),u=e.i(87718),p=e.i(95169),c=e.i(47587),l=e.i(66012),h=e.i(70101),g=e.i(74838),E=e.i(10372),m=e.i(93695);e.i(52474);var _=e.i(220),f=e.i(69719),R=e.i(73122),y=e.i(63279),v=e.i(86582),T=e.i(6838),S=e.i(77036),I=e.i(97812);let C=f.z.object({graphId:f.z.string().min(1),graphVersion:f.z.number(),updatedAt:f.z.string().min(1),checkpoint:f.z.string().min(1)});async function k(e,{params:t}){let{id:r}=await t,a=(0,v.normalizeTaskId)(r);if(!a)return(0,v.jsonWithSchema)(y.ErrorResponseSchema,{error:"Invalid task id"},{status:400});let n=await (0,v.parseJsonBody)(e,y.RollbackRequestSchema);if(!n.ok)return n.response;let o=n.data,i=await (0,T.authorizeGraphMutation)({request:e,taskId:a,action:"rollback",requestedProjectId:o.projectId??o.project_id});if(!i.ok)return i.response;let s=await (0,I.getGraph)(a);if(!s)return(0,v.jsonWithSchema)(y.ErrorResponseSchema,{error:"Graph not found"},{status:404});if(!s.nodes[o.toCheckpoint])return(0,v.jsonWithSchema)(y.ErrorResponseSchema,{error:"toCheckpoint does not exist in graph"},{status:400});try{let e=await (0,I.updateGraphStructure)(s.id,{mode:s.mode,policy:s.policy,doneCriteria:s.doneCriteria},o.ifMatchGraphVersion);return await (0,I.appendEvent)(s.id,(0,R.buildRollbackEvent)({actor:i.actor,toCheckpoint:o.toCheckpoint,reason:o.reason?.trim()||"rollback requested",projectId:i.projectId})),(0,S.recordRollback)(),(0,v.jsonWithSchema)(C,{graphId:s.id,graphVersion:e.graphVersion,updatedAt:e.updatedAt,checkpoint:o.toCheckpoint})}catch(e){if(e instanceof I.GraphVersionConflictError)return(0,v.graphConflictResponse)(e);return console.error("Error handling graph rollback:",e),(0,v.jsonWithSchema)(y.ErrorResponseSchema,{error:"Failed to rollback graph"},{status:500})}}e.s(["POST",()=>k],7846);var A=e.i(7846);let N=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/tasks/[id]/graph/rollback/route",pathname:"/api/tasks/[id]/graph/rollback",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/tasks/[id]/graph/rollback/route.ts",nextConfigOutput:"standalone",userland:A}),{workAsyncStorage:w,workUnitAsyncStorage:b,serverHooks:x}=N;function O(){return(0,a.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:b})}async function D(e,t,a){N.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/tasks/[id]/graph/rollback/route";f=f.replace(/\/index$/,"")||"/";let R=await N.prepare(e,t,{srcPage:f,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:v,nextConfig:T,parsedUrl:S,isDraftMode:I,prerenderManifest:C,routerServerContext:k,isOnDemandRevalidate:A,revalidateOnlyGenerated:w,resolvedPathname:b,clientReferenceManifest:x,serverActionsManifest:O}=R,D=(0,s.normalizeAppPath)(f),M=!!(C.dynamicRoutes[D]||C.routes[b]),L=async()=>((null==k?void 0:k.render404)?await k.render404(e,t,S,!1):t.end("This page could not be found"),null);if(M&&!I){let e=!!C.routes[b],t=C.dynamicRoutes[D];if(t&&!1===t.fallback&&!e){if(T.experimental.adapterPath)return await L();throw new m.NoFallbackError}}let j=null;!M||N.isDev||I||(j="/index"===(j=b)?"/":j);let q=!0===N.isDev||!M,G=M&&!q;O&&x&&(0,i.setManifestsSingleton)({page:f,clientReferenceManifest:x,serverActionsManifest:O});let F=e.method||"GET",H=(0,o.getTracer)(),P=H.getActiveScopeSpan(),U={params:v,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!T.experimental.authInterrupts},cacheComponents:!!T.cacheComponents,supportsDynamicResponse:q,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:T.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>N.onRequestError(e,t,a,n,k)},sharedContext:{buildId:y}},V=new d.NodeNextRequest(e),W=new d.NodeNextResponse(t),$=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let i=async e=>N.handle($,U).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=H.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=`${F} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${F} ${f}`)}),s=!!(0,n.getRequestMeta)(e,"minimalMode"),d=async n=>{var o,d;let u=async({previousCacheEntry:r})=>{try{if(!s&&A&&w&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await i(n);e.fetchMetrics=U.renderOpts.fetchMetrics;let d=U.renderOpts.pendingWaitUntil;d&&a.waitUntil&&(a.waitUntil(d),d=void 0);let u=U.renderOpts.collectedTags;if(!M)return await (0,l.sendResponse)(V,W,o,U.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);u&&(t[E.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=E.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,a=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=E.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:_.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await N.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:G,isOnDemandRevalidate:A})},!1,k),t}},p=await N.handleResponse({req:e,nextConfig:T,cacheKey:j,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:w,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:s});if(!M)return null;if((null==p||null==(o=p.value)?void 0:o.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",A?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),I&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,h.fromNodeOutgoingHttpHeaders)(p.value.headers);return s&&M||m.delete(E.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,g.getCacheControlHeader)(p.cacheControl)),await (0,l.sendResponse)(V,W,new Response(p.value.body,{headers:m,status:p.value.status||200})),null};P?await d(P):await H.withPropagatedContext(e.headers,()=>H.trace(p.BaseServerSpan.handleRequest,{spanName:`${F} ${f}`,kind:o.SpanKind.SERVER,attributes:{"http.method":F,"http.target":e.url}},d))}catch(t){if(t instanceof m.NoFallbackError||await N.onRequestError(e,t,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:G,isOnDemandRevalidate:A})},!1,k),M)throw t;return await (0,l.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",()=>D,"patchFetch",()=>O,"routeModule",()=>N,"serverHooks",()=>x,"workAsyncStorage",()=>w,"workUnitAsyncStorage",()=>b],40931)}];
|
|
45
45
|
|
|
46
46
|
//# sourceMappingURL=_4190f170._.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[97812,e=>{"use strict";var t=e.i(60447);let
|
|
1
|
+
module.exports=[97812,e=>{"use strict";var t=e.i(60447),r=e.i(59833);let a=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 i extends Error{constructor(e){super(`Execution graph not found: ${e}`),this.name="GraphNotFoundError"}}class o extends Error{nodeIds;constructor(e,t){super(`Execution graph ${e} is missing node(s): ${t.join(", ")}`),this.name="GraphNodeNotFoundError",this.nodeIds=t}}class s 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 d(e){return null==e?null:JSON.stringify(e)}function u(e){if(null==e)return null;if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}function p(e){let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toISOString()}function l(e){return!e||"object"!=typeof e||Array.isArray(e)?{}:e}function c(e){let{type:t,status:r,metrics:a,output:n,...i}=e;return{type:t,status:r,config:i,output:n??null,metrics:a??null}}function h(e){let t={...l(u(e.payload))};return"eventType"in t||(t.eventType=e.event_type),"timestamp"in t||(t.timestamp=p(e.timestamp)),t}function g(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 E{getDb(){return(0,t.getSQLiteDb)()}createGraph(e,t){let a=this.getDb(),n=g(a);t?.skipTaskBinding&&(0,r.pragmaSet)(a,"foreign_keys = OFF");try{return(0,r.transaction)(a,()=>{let r=n.query("SELECT id FROM execution_graphs WHERE task_id = ? LIMIT 1",[e.taskId]).rows[0];if(r&&r.id!==e.id)throw new s(e.taskId,r.id);for(let[t,r]of(n.query(`INSERT INTO execution_graphs
|
|
2
2
|
(id, task_id, graph_version, mode, policy, done_criteria, schedule, created_at, updated_at)
|
|
3
3
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
4
4
|
ON CONFLICT (id) DO UPDATE SET
|
|
@@ -9,38 +9,38 @@ module.exports=[97812,e=>{"use strict";var t=e.i(60447);let r=new Set(["replan",
|
|
|
9
9
|
done_criteria = excluded.done_criteria,
|
|
10
10
|
schedule = excluded.schedule,
|
|
11
11
|
created_at = excluded.created_at,
|
|
12
|
-
updated_at = excluded.updated_at`,[e.id,e.taskId,e.graphVersion,e.mode,
|
|
13
|
-
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e.id,t,
|
|
14
|
-
VALUES (?, ?, ?, ?, ?, ?)`,[e.id,t.from,t.to,t.type,t.condition??null,
|
|
15
|
-
FROM graph_nodes WHERE graph_id = ? AND node_id IN (${a})`,[e,...r]),c=new Map;for(let e of
|
|
16
|
-
WHERE graph_id = ? AND node_id = ?`,[r.status??n.status,
|
|
17
|
-
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e,r,t.type,t.status,
|
|
18
|
-
VALUES (?, ?, ?, ?, ?, ?)`,[e,r.from,r.to,r.type,r.condition??null,
|
|
12
|
+
updated_at = excluded.updated_at`,[e.id,e.taskId,e.graphVersion,e.mode,d(e.policy),d(e.doneCriteria),d(e.schedule??null),e.createdAt,e.updatedAt]),n.query("DELETE FROM graph_nodes WHERE graph_id = ?",[e.id]),n.query("DELETE FROM graph_edges WHERE graph_id = ?",[e.id]),Object.entries(e.nodes))){let a=c(r);n.query(`INSERT INTO graph_nodes (graph_id, node_id, type, status, config, output, metrics)
|
|
13
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e.id,t,a.type,a.status,d(a.config),d(a.output),d(a.metrics)])}for(let t of e.edges)n.query(`INSERT INTO graph_edges (graph_id, from_id, to_id, type, condition, data_mapping)
|
|
14
|
+
VALUES (?, ?, ?, ?, ?, ?)`,[e.id,t.from,t.to,t.type,t.condition??null,d(t.dataMapping??null)]);for(let t of e.versionHistory)this.appendEventInternal(n,e.id,t);for(let t of e.runtimeEvents??[])this.appendEventInternal(n,e.id,t);t?.skipTaskBinding||n.query("UPDATE tasks SET graph_id = ? WHERE id = ?",[e.id,e.taskId]);let a=this.getGraphForTask(n,e.taskId);if(!a)throw new i(e.id);return a})}finally{t?.skipTaskBinding&&(0,r.pragmaSet)(a,"foreign_keys = ON")}}getGraph(e){let t=this.getDb();return this.getGraphForTask(g(t),e)}updateNodeRuntime(e,t,a){let n=this.getDb(),s=g(n);return(0,r.transaction)(n,()=>{if(!s.query("SELECT id, graph_version FROM execution_graphs WHERE id = ?",[e]).rows[0])throw new i(e);let r=Object.keys(t);if(0===r.length){let t=s.query("SELECT graph_version, updated_at FROM execution_graphs WHERE id = ?",[e]);return{graphVersion:t.rows[0].graph_version,updatedAt:p(t.rows[0].updated_at)}}let a=r.map(()=>"?").join(", "),n=s.query(`SELECT node_id, type, status, config, output, metrics
|
|
15
|
+
FROM graph_nodes WHERE graph_id = ? AND node_id IN (${a})`,[e,...r]),c=new Map;for(let e of n.rows)c.set(e.node_id,e);let h=r.filter(e=>!c.has(e));if(h.length>0)throw new o(e,h);for(let a of r){let r=t[a],n=c.get(a);if(!n||!r)continue;let i={...l(u(n.config)),...l(r.configPatch)};void 0!==r.startedAt&&(i.startedAt=r.startedAt),void 0!==r.completedAt&&(i.completedAt=r.completedAt),void 0!==r.actualMinutes&&(i.actualMinutes=r.actualMinutes),s.query(`UPDATE graph_nodes SET status = ?, metrics = ?, output = ?, config = ?
|
|
16
|
+
WHERE graph_id = ? AND node_id = ?`,[r.status??n.status,d(r.metrics??u(n.metrics)),d(r.output??u(n.output)),d(i),e,a])}let g=s.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:p(g.rows[0].updated_at)}})}updateGraphStructure(e,t,a){let n=this.getDb(),o=g(n);return(0,r.transaction)(n,()=>{let r=o.query("SELECT id, graph_version, mode, policy, done_criteria, schedule FROM execution_graphs WHERE id = ?",[e]).rows[0];if(!r)throw new i(e);if(t.nodes)for(let[r,a]of(o.query("DELETE FROM graph_nodes WHERE graph_id = ?",[e]),Object.entries(t.nodes))){let t=c(a);o.query(`INSERT INTO graph_nodes (graph_id, node_id, type, status, config, output, metrics)
|
|
17
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,[e,r,t.type,t.status,d(t.config),d(t.output),d(t.metrics)])}if(t.edges)for(let r of(o.query("DELETE FROM graph_edges WHERE graph_id = ?",[e]),t.edges))o.query(`INSERT INTO graph_edges (graph_id, from_id, to_id, type, condition, data_mapping)
|
|
18
|
+
VALUES (?, ?, ?, ?, ?, ?)`,[e,r.from,r.to,r.type,r.condition??null,d(r.dataMapping??null)]);let a=o.query(`UPDATE execution_graphs
|
|
19
19
|
SET mode = ?, policy = ?, done_criteria = ?, schedule = ?, updated_at = datetime('now')
|
|
20
20
|
WHERE id = ?
|
|
21
|
-
RETURNING graph_version, updated_at`,[t.mode??r.mode,
|
|
22
|
-
FROM execution_graphs WHERE task_id = ? ORDER BY updated_at DESC LIMIT 1`,[t]).rows[0];if(!
|
|
23
|
-
FROM graph_nodes WHERE graph_id = ? ORDER BY node_id ASC`,[
|
|
24
|
-
FROM graph_edges WHERE graph_id = ? ORDER BY from_id ASC, to_id ASC`,[
|
|
25
|
-
FROM graph_events WHERE graph_id = ? ORDER BY timestamp ASC, event_type ASC`,[
|
|
26
|
-
VALUES (?, ?, ?, ?)`,[t,r.eventType,
|
|
21
|
+
RETURNING graph_version, updated_at`,[t.mode??r.mode,d(t.policy??u(r.policy)??{}),d(t.doneCriteria??u(r.done_criteria)??{}),d(t.schedule??u(r.schedule)??null),e]);return{graphVersion:a.rows[0].graph_version,updatedAt:p(a.rows[0].updated_at)}})}appendEvent(e,t){let r=this.getDb();this.appendEventInternal(g(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
|
|
22
|
+
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
|
|
23
|
+
FROM graph_nodes WHERE graph_id = ? ORDER BY node_id ASC`,[r.id]),i=e.query(`SELECT from_id, to_id, type, condition, data_mapping
|
|
24
|
+
FROM graph_edges WHERE graph_id = ? ORDER BY from_id ASC, to_id ASC`,[r.id]),o=e.query(`SELECT event_type, payload, timestamp
|
|
25
|
+
FROM graph_events WHERE graph_id = ? ORDER BY timestamp ASC, event_type ASC`,[r.id]),s={};for(let e of n.rows)s[e.node_id]=function(e){let t={...l(u(e.config)),type:e.type,status:e.status},r=u(e.metrics);null!==r&&(t.metrics=r);let a=u(e.output);return null!==a&&(t.output=a),t}(e);let d=i.rows.map(e=>({from:e.from_id,to:e.to_id,type:e.type,...e.condition?{condition:u(e.condition)}:{},...e.data_mapping?{dataMapping:u(e.data_mapping)}:{}})),c=[],g=[];for(let e of o.rows){let t=h(e);a.has(t.eventType)?c.push(t):g.push(t)}return{id:r.id,taskId:r.task_id,graphVersion:r.graph_version,mode:r.mode,nodes:s,edges:d,policy:u(r.policy)??{},doneCriteria:u(r.done_criteria)??{},schedule:u(r.schedule)??void 0,versionHistory:c,runtimeEvents:g,createdAt:p(r.created_at),updatedAt:p(r.updated_at)}}appendEventInternal(e,t,r){e.query(`INSERT INTO graph_events (graph_id, event_type, payload, timestamp)
|
|
26
|
+
VALUES (?, ?, ?, ?)`,[t,r.eventType,d(r),r.timestamp])}}function _(){return new E}let f=new E;function R(e,t){return f.createGraph(e,t)}function m(e){return f.getGraph(e)}function y(e,t,r){return f.updateNodeRuntime(e,t,r)}function v(e,t,r){return f.updateGraphStructure(e,t,r)}function T(e,t){return f.appendEvent(e,t)}function S(e,r={}){let a=["graph_id = ?"],n=[e];r.eventType&&(a.push("event_type = ?"),n.push(r.eventType)),r.since&&(a.push("timestamp >= ?"),n.push(r.since));let i=r.limit??1e3,o=`SELECT event_type, payload, timestamp
|
|
27
27
|
FROM graph_events
|
|
28
28
|
WHERE ${a.join(" AND ")}
|
|
29
29
|
ORDER BY timestamp ASC, event_type ASC
|
|
30
|
-
LIMIT ?`;return n.push(i),
|
|
30
|
+
LIMIT ?`;return n.push(i),g((0,t.getSQLiteDb)()).query(o,n).rows.map(e=>h(e))}function A(e){let r=e.trim();return r?(0,t.getSQLiteDb)().prepare(`SELECT id AS graphId, task_id AS taskId
|
|
31
31
|
FROM execution_graphs
|
|
32
32
|
WHERE schedule IS NOT NULL
|
|
33
33
|
AND json_extract(schedule, '$.rootMessageId') = ?
|
|
34
34
|
AND json_extract(schedule, '$.state') = 'active'
|
|
35
35
|
ORDER BY updated_at DESC
|
|
36
|
-
LIMIT 1`).get(r)??null:null}function
|
|
36
|
+
LIMIT 1`).get(r)??null:null}function I(){return(0,t.getSQLiteDb)().prepare(`SELECT json_extract(schedule, '$.rootMessageId') AS rootMessageId
|
|
37
37
|
FROM execution_graphs
|
|
38
38
|
WHERE schedule IS NOT NULL
|
|
39
|
-
AND json_extract(schedule, '$.state') = 'active'`).all().map(e=>e.rootMessageId).filter(Boolean)}function
|
|
39
|
+
AND json_extract(schedule, '$.state') = 'active'`).all().map(e=>e.rootMessageId).filter(Boolean)}function N(e){let r=e.trim();return r?Number((0,t.getSQLiteDb)().prepare(`UPDATE execution_graphs
|
|
40
40
|
SET schedule = json_set(schedule, '$.state', 'stopped', '$.tickInProgress', json('false')),
|
|
41
41
|
updated_at = strftime('%Y-%m-%dT%H:%M:%fZ','now')
|
|
42
42
|
WHERE schedule IS NOT NULL
|
|
43
43
|
AND json_extract(schedule, '$.rootMessageId') = ?
|
|
44
|
-
AND json_extract(schedule, '$.state') = 'active'`).run(r).changes??0):0}e.s(["GraphNodeNotFoundError",()=>
|
|
44
|
+
AND json_extract(schedule, '$.state') = 'active'`).run(r).changes??0):0}e.s(["GraphNodeNotFoundError",()=>o,"GraphNotFoundError",()=>i,"GraphStore",()=>E,"GraphTaskAlreadyBoundError",()=>s,"GraphVersionConflictError",()=>n,"appendEvent",()=>T,"createGraph",()=>R,"createGraphStore",()=>_,"deactivateSchedulesByRootMessageId",()=>N,"getActiveScheduleForRootMessageId",()=>A,"getActiveScheduleRootMessageIds",()=>I,"getGraph",()=>m,"getGraphEvents",()=>S,"updateGraphStructure",()=>v,"updateNodeRuntime",()=>y])},6838,e=>{"use strict";var t=e.i(94028),r=e.i(49041),a=e.i(90081);async function n(e){let n=r.LOCAL_USER.id,i=await a.db.getTask(e.taskId,n);return i?{ok:!0,actor:{actorId:n,actorType:"service"},task:i,projectId:e.requestedProjectId??i.project_id??null}:{ok:!1,response:t.NextResponse.json({error:"Task not found"},{status:404})}}e.s(["authorizeGraphMutation",()=>n])},1127,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),i=e.i(61916),o=e.i(74677),s=e.i(69741),d=e.i(16795),u=e.i(87718),p=e.i(95169),l=e.i(47587),c=e.i(66012),h=e.i(70101),g=e.i(74838),E=e.i(10372),_=e.i(93695);e.i(52474);var f=e.i(220),R=e.i(94028),m=e.i(86582),y=e.i(6838),v=e.i(97812);async function T(e,{params:t}){let{id:r}=await t,a=(0,m.normalizeTaskId)(r);if(!a)return R.NextResponse.json({error:"Invalid task id"},{status:400});let n=await (0,y.authorizeGraphMutation)({request:e,taskId:a,action:"create"});if(!n.ok)return n.response;let i=await (0,v.getGraph)(a);if(!i)return R.NextResponse.json({error:"Graph not found"},{status:404});let o=e.nextUrl.searchParams,s=o.get("eventType")??void 0,d=o.get("since")??void 0,u=o.get("limit"),p=u?Math.min(Math.max(1,parseInt(u,10)||1e3),1e4):1e3,l=await (0,v.getGraphEvents)(i.id,{eventType:s,since:d,limit:p});return R.NextResponse.json({graphId:i.id,taskId:a,currentGraphVersion:i.graphVersion,events:l})}e.s(["GET",()=>T],3847);var S=e.i(3847);let A=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/tasks/[id]/graph/events/route",pathname:"/api/tasks/[id]/graph/events",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/tasks/[id]/graph/events/route.ts",nextConfigOutput:"standalone",userland:S}),{workAsyncStorage:I,workUnitAsyncStorage:N,serverHooks:w}=A;function x(){return(0,a.patchFetch)({workAsyncStorage:I,workUnitAsyncStorage:N})}async function C(e,t,a){A.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/tasks/[id]/graph/events/route";R=R.replace(/\/index$/,"")||"/";let m=await A.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:y,params:v,nextConfig:T,parsedUrl:S,isDraftMode:I,prerenderManifest:N,routerServerContext:w,isOnDemandRevalidate:x,revalidateOnlyGenerated:C,resolvedPathname:O,clientReferenceManifest:k,serverActionsManifest:D}=m,M=(0,s.normalizeAppPath)(R),L=!!(N.dynamicRoutes[M]||N.routes[O]),b=async()=>((null==w?void 0:w.render404)?await w.render404(e,t,S,!1):t.end("This page could not be found"),null);if(L&&!I){let e=!!N.routes[O],t=N.dynamicRoutes[M];if(t&&!1===t.fallback&&!e){if(T.experimental.adapterPath)return await b();throw new _.NoFallbackError}}let q=null;!L||A.isDev||I||(q="/index"===(q=O)?"/":q);let H=!0===A.isDev||!L,G=L&&!H;D&&k&&(0,o.setManifestsSingleton)({page:R,clientReferenceManifest:k,serverActionsManifest:D});let U=e.method||"GET",F=(0,i.getTracer)(),P=F.getActiveScopeSpan(),j={params:v,prerenderManifest:N,renderOpts:{experimental:{authInterrupts:!!T.experimental.authInterrupts},cacheComponents:!!T.cacheComponents,supportsDynamicResponse:H,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:T.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>A.onRequestError(e,t,a,n,w)},sharedContext:{buildId:y}},$=new d.NodeNextRequest(e),W=new d.NodeNextResponse(t),V=u.NextRequestAdapter.fromNodeNextRequest($,(0,u.signalFromNodeResponse)(t));try{let o=async e=>A.handle(V,j).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.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} ${R}`)}),s=!!(0,n.getRequestMeta)(e,"minimalMode"),d=async n=>{var i,d;let u=async({previousCacheEntry:r})=>{try{if(!s&&x&&C&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await o(n);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(!L)return await (0,c.sendResponse)($,W,i,j.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(i.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:f.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:R,routeType:"route",revalidateReason:(0,l.getRevalidateReason)({isStaticGeneration:G,isOnDemandRevalidate:x})},!1,w),t}},p=await A.handleResponse({req:e,nextConfig:T,cacheKey:q,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:x,revalidateOnlyGenerated:C,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:s});if(!L)return null;if((null==p||null==(i=p.value)?void 0:i.kind)!==f.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",x?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),I&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let _=(0,h.fromNodeOutgoingHttpHeaders)(p.value.headers);return s&&L||_.delete(E.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||_.get("Cache-Control")||_.set("Cache-Control",(0,g.getCacheControlHeader)(p.cacheControl)),await (0,c.sendResponse)($,W,new Response(p.value.body,{headers:_,status:p.value.status||200})),null};P?await d(P):await F.withPropagatedContext(e.headers,()=>F.trace(p.BaseServerSpan.handleRequest,{spanName:`${U} ${R}`,kind:i.SpanKind.SERVER,attributes:{"http.method":U,"http.target":e.url}},d))}catch(t){if(t instanceof _.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,l.getRevalidateReason)({isStaticGeneration:G,isOnDemandRevalidate:x})},!1,w),L)throw t;return await (0,c.sendResponse)($,W,new Response(null,{status:500})),null}}e.s(["handler",()=>C,"patchFetch",()=>x,"routeModule",()=>A,"serverHooks",()=>w,"workAsyncStorage",()=>I,"workUnitAsyncStorage",()=>N],1127)}];
|
|
45
45
|
|
|
46
46
|
//# sourceMappingURL=_42e9c8d5._.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
module.exports=[33938,e=>{"use strict";var t=e.i(60447),r=e.i(77581);function
|
|
1
|
+
module.exports=[33938,e=>{"use strict";var t=e.i(60447),r=e.i(59833),n=e.i(77581);function o(e,r){let o=(0,t.getSQLiteDb)(),a=r?.producer;if("system"===a){let t=(0,n.getKnowledgeNote)("repo",e);return t?[{id:t.id,repo_id:e,content:t.content,producer:"system",created_at:t.updatedAt}]:[]}let i=a?o.prepare(`SELECT id, repo_id, content, producer, created_at
|
|
2
2
|
FROM repo_knowledge
|
|
3
3
|
WHERE repo_id = ? AND producer = ?
|
|
4
4
|
ORDER BY created_at DESC`).all(e,a):o.prepare(`SELECT id, repo_id, content, producer, created_at
|
|
5
5
|
FROM repo_knowledge
|
|
6
6
|
WHERE repo_id = ?
|
|
7
|
-
ORDER BY created_at DESC`).all(e);if(
|
|
7
|
+
ORDER BY created_at DESC`).all(e);if(r?.includeLegacyHumanFallback===!1)return i;let s=(0,t.getSQLiteDb)().prepare(`SELECT id, name, path, notes, created_at, updated_at
|
|
8
8
|
FROM project_repos
|
|
9
|
-
WHERE id = ?`).get(e)??null,l=s?.notes?.trim();return!l||i.some(e=>"human"===e.producer)||i.some(e=>"human"===e.producer&&e.content.trim()===l)?i:[{id:`legacy-notes:${e}`,repo_id:e,content:l,producer:"human",created_at:s?.updated_at??s?.created_at??new Date(0).toISOString()},...i]}function
|
|
9
|
+
WHERE id = ?`).get(e)??null,l=s?.notes?.trim();return!l||i.some(e=>"human"===e.producer)||i.some(e=>"human"===e.producer&&e.content.trim()===l)?i:[{id:`legacy-notes:${e}`,repo_id:e,content:l,producer:"human",created_at:s?.updated_at??s?.created_at??new Date(0).toISOString()},...i]}function a(e,n,a){let i=(0,t.getSQLiteDb)(),s=a.trim();return(0,r.transaction)(i,()=>{i.prepare("DELETE FROM repo_knowledge WHERE repo_id = ? AND producer = ?").run(e,n),s&&i.prepare("INSERT INTO repo_knowledge (repo_id, content, producer) VALUES (?, ?, ?)").run(e,s,n)}),o(e,{producer:n,includeLegacyHumanFallback:!1})}function i(e){let t=[];for(let r of e){if(!r.id){let e=r.notes?.trim();e&&t.push({repoId:"",repoName:r.name,path:r.path??null,content:e,producer:"human"});continue}for(let e of[...o(r.id,{producer:"human"}),...o(r.id,{producer:"system",includeLegacyHumanFallback:!1})]){let n=e.content.trim();n&&t.push({repoId:r.id,repoName:r.name,path:r.path??null,content:n,producer:e.producer})}}return t}e.s(["listRepoKnowledge",()=>o,"listResolvedRepoKnowledge",()=>i,"replaceRepoKnowledge",()=>a])},42304,e=>{"use strict";var t=e.i(54799),r=e.i(14350),n=e.i(60447),o=e.i(40813),a=e.i(77581);let i=new Set(["outcome","decision","pattern","gotcha"]),s=`You are a memory extractor for a task execution system.
|
|
10
10
|
Given a completed task, extract 0-3 memories worth remembering for future tasks.
|
|
11
11
|
|
|
12
12
|
Each memory must be:
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
module.exports=[12616,e=>{"use strict";function t(e,t){return`---
|
|
2
2
|
${Object.entries(e).map(([e,t])=>`${e}: ${null==t?"":String(t)}`).join("\n")}
|
|
3
3
|
---
|
|
4
|
-
${t}`}e.s(["buildMarkdownWithFrontmatter",()=>t])},33872,e=>{"use strict";var t=e.i(57431),r=e.i(62294),a=e.i(90081),n=e.i(12616);async function o(e){let o=e.nowIso??new Date().toISOString(),i=(0,t.createAdminDbClient)(),s=await a.db.getTask(e.taskId,e.userId),l={status:e.status,stage:"PROGRESS",updated_at:o};if(Object.prototype.hasOwnProperty.call(e,"startedAt")&&(l.started_at=e.startedAt??null),Object.prototype.hasOwnProperty.call(e,"completedAt")&&(l.completed_at=e.completedAt??null),s){let{frontmatter:t,body:a}=(0,r.parseFrontmatter)(String(s.content||""));t.status=e.status,t.stage="PROGRESS",e.clearError&&delete t.error,l.content=(0,n.buildMarkdownWithFrontmatter)(t,a)}let d=i.from("tasks").update(l).eq("id",e.taskId);e.userId&&(d=d.eq("user_id",e.userId));let{error:u}=await d;if(u)throw u}e.s(["syncTaskProgressForGraphExecution",()=>o])},33938,e=>{"use strict";var t=e.i(60447),r=e.i(77581);function
|
|
4
|
+
${t}`}e.s(["buildMarkdownWithFrontmatter",()=>t])},33872,e=>{"use strict";var t=e.i(57431),r=e.i(62294),a=e.i(90081),n=e.i(12616);async function o(e){let o=e.nowIso??new Date().toISOString(),i=(0,t.createAdminDbClient)(),s=await a.db.getTask(e.taskId,e.userId),l={status:e.status,stage:"PROGRESS",updated_at:o};if(Object.prototype.hasOwnProperty.call(e,"startedAt")&&(l.started_at=e.startedAt??null),Object.prototype.hasOwnProperty.call(e,"completedAt")&&(l.completed_at=e.completedAt??null),s){let{frontmatter:t,body:a}=(0,r.parseFrontmatter)(String(s.content||""));t.status=e.status,t.stage="PROGRESS",e.clearError&&delete t.error,l.content=(0,n.buildMarkdownWithFrontmatter)(t,a)}let d=i.from("tasks").update(l).eq("id",e.taskId);e.userId&&(d=d.eq("user_id",e.userId));let{error:u}=await d;if(u)throw u}e.s(["syncTaskProgressForGraphExecution",()=>o])},33938,e=>{"use strict";var t=e.i(60447),r=e.i(59833),a=e.i(77581);function n(e,r){let n=(0,t.getSQLiteDb)(),o=r?.producer;if("system"===o){let t=(0,a.getKnowledgeNote)("repo",e);return t?[{id:t.id,repo_id:e,content:t.content,producer:"system",created_at:t.updatedAt}]:[]}let i=o?n.prepare(`SELECT id, repo_id, content, producer, created_at
|
|
5
5
|
FROM repo_knowledge
|
|
6
6
|
WHERE repo_id = ? AND producer = ?
|
|
7
7
|
ORDER BY created_at DESC`).all(e,o):n.prepare(`SELECT id, repo_id, content, producer, created_at
|
|
8
8
|
FROM repo_knowledge
|
|
9
9
|
WHERE repo_id = ?
|
|
10
|
-
ORDER BY created_at DESC`).all(e);if(
|
|
10
|
+
ORDER BY created_at DESC`).all(e);if(r?.includeLegacyHumanFallback===!1)return i;let s=(0,t.getSQLiteDb)().prepare(`SELECT id, name, path, notes, created_at, updated_at
|
|
11
11
|
FROM project_repos
|
|
12
|
-
WHERE id = ?`).get(e)??null,l=s?.notes?.trim();return!l||i.some(e=>"human"===e.producer)||i.some(e=>"human"===e.producer&&e.content.trim()===l)?i:[{id:`legacy-notes:${e}`,repo_id:e,content:l,producer:"human",created_at:s?.updated_at??s?.created_at??new Date(0).toISOString()},...i]}function
|
|
12
|
+
WHERE id = ?`).get(e)??null,l=s?.notes?.trim();return!l||i.some(e=>"human"===e.producer)||i.some(e=>"human"===e.producer&&e.content.trim()===l)?i:[{id:`legacy-notes:${e}`,repo_id:e,content:l,producer:"human",created_at:s?.updated_at??s?.created_at??new Date(0).toISOString()},...i]}function o(e,a,o){let i=(0,t.getSQLiteDb)(),s=o.trim();return(0,r.transaction)(i,()=>{i.prepare("DELETE FROM repo_knowledge WHERE repo_id = ? AND producer = ?").run(e,a),s&&i.prepare("INSERT INTO repo_knowledge (repo_id, content, producer) VALUES (?, ?, ?)").run(e,s,a)}),n(e,{producer:a,includeLegacyHumanFallback:!1})}function i(e){let t=[];for(let r of e){if(!r.id){let e=r.notes?.trim();e&&t.push({repoId:"",repoName:r.name,path:r.path??null,content:e,producer:"human"});continue}for(let e of[...n(r.id,{producer:"human"}),...n(r.id,{producer:"system",includeLegacyHumanFallback:!1})]){let a=e.content.trim();a&&t.push({repoId:r.id,repoName:r.name,path:r.path??null,content:a,producer:e.producer})}}return t}e.s(["listRepoKnowledge",()=>n,"listResolvedRepoKnowledge",()=>i,"replaceRepoKnowledge",()=>o])},42304,e=>{"use strict";var t=e.i(54799),r=e.i(14350),a=e.i(60447),n=e.i(40813),o=e.i(77581);let i=new Set(["outcome","decision","pattern","gotcha"]),s=`You are a memory extractor for a task execution system.
|
|
13
13
|
Given a completed task, extract 0-3 memories worth remembering for future tasks.
|
|
14
14
|
|
|
15
15
|
Each memory must be:
|