@mndrk/agx 2.0.46 → 2.0.48
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/app-path-routes-manifest.json +1 -0
- package/cloud-runtime/standalone/.next/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/prerender-manifest.json +27 -3
- package/cloud-runtime/standalone/.next/routes-manifest.json +6 -0
- 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_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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +3 -3
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents/__PAGE__.segment.rsc +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 +1 -1
- 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]/profile/route.js +1 -1
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat/route.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/api/chat/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.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/health/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js +1 -1
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/callback/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/callback/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/cycles/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/cycles/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js +5 -2
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/status/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/token/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/linear/token/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js +1 -1
- 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 +1 -1
- 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/projects/[id]/agents/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js +1 -1
- 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 +1 -1
- 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.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js +1 -1
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/schedules/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/replan/route.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js +1 -1
- 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 +1 -1
- 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]/nodes/[nodeId]/comments/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js +1 -1
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/threads/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js +1 -1
- 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/react-loadable-manifest.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +3 -3
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_tree.segment.rsc +2 -2
- 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_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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.segments/board/__PAGE__.segment.rsc +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.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +3 -3
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +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/folders/page/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/folders/page/build-manifest.json +18 -0
- package/cloud-runtime/standalone/.next/server/app/folders/page/next-font-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/folders/page/react-loadable-manifest.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/folders/page/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/folders/page.js +15 -0
- package/cloud-runtime/standalone/.next/server/app/folders/page.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/folders/page.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/folders/page_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/folders.html +21 -0
- package/cloud-runtime/standalone/.next/server/app/folders.meta +15 -0
- package/cloud-runtime/standalone/.next/server/app/folders.rsc +24 -0
- package/cloud-runtime/standalone/.next/server/app/folders.segments/_full.segment.rsc +24 -0
- package/cloud-runtime/standalone/.next/server/app/folders.segments/_head.segment.rsc +5 -0
- package/cloud-runtime/standalone/.next/server/app/folders.segments/_index.segment.rsc +10 -0
- package/cloud-runtime/standalone/.next/server/app/folders.segments/_tree.segment.rsc +5 -0
- package/cloud-runtime/standalone/.next/server/app/folders.segments/folders/__PAGE__.segment.rsc +9 -0
- package/cloud-runtime/standalone/.next/server/app/folders.segments/folders.segment.rsc +4 -0
- package/cloud-runtime/standalone/.next/server/app/index.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/index.rsc +3 -3
- 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 +3 -3
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/react-loadable-manifest.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page/react-loadable-manifest.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +1 -1
- 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.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +3 -3
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +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_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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.segments/status/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +3 -3
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app-paths-manifest.json +1 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[externals]__31e26905._.js → [externals]__7b4c6b2b._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[externals]__a21cc96d._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__015d40a6._.js +67 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__067034dd._.js +67 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5aaf8c25._.js → [root-of-the-server]__143fdf69._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__74a37ca4._.js → [root-of-the-server]__158df4bf._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c029daab._.js → [root-of-the-server]__179cb224._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__3fd3c5b1._.js → [root-of-the-server]__1a1f66b1._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__20a2cb22._.js +150 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__d2ac93f2._.js → [root-of-the-server]__23b075bd._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__3bf516b6._.js → [root-of-the-server]__3170b7bf._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__558389f7._.js → [root-of-the-server]__33865410._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__4c2d07e0._.js → [root-of-the-server]__36d15de5._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__37844df7._.js +67 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__d9f2041b._.js → [root-of-the-server]__3a93931b._.js} +4 -4
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3fae531a._.js +89 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__76658fd6._.js → [root-of-the-server]__4cb22e4d._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ebece93b._.js → [root-of-the-server]__4ce74056._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__635fe0f9._.js → [root-of-the-server]__538b0bdd._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__3b1431b6._.js → [root-of-the-server]__5c55f67a._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e20922e8._.js → [root-of-the-server]__69a3c480._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__42804c1d._.js → [root-of-the-server]__6c53437e._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8cbd8c56._.js +79 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__92ed2961._.js +48 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__509b1dd2._.js → [root-of-the-server]__94499e9a._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ddb3aa76._.js → [root-of-the-server]__a280fa63._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__8c7d1318._.js → [root-of-the-server]__a2d31df1._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a3955224._.js +150 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__4b0b5fe1._.js → [root-of-the-server]__a7b2350e._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5b13e7a5._.js → [root-of-the-server]__ab655b9f._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ac6326b6._.js +106 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__0284ea89._.js → [root-of-the-server]__b2748382._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e7be56ba._.js → [root-of-the-server]__b627cb83._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__0e98af48._.js → [root-of-the-server]__bab85495._.js} +63 -18
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__dca6026a._.js → [root-of-the-server]__c21747df._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c22dd3a6._.js +179 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c8890cd6._.js +150 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__aad349b4._.js → [root-of-the-server]__ca4987eb._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__fcdaf6d8._.js → [root-of-the-server]__d16caed5._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__1f53e82e._.js → [root-of-the-server]__d324f8a1._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__6988985c._.js → [root-of-the-server]__da645a5e._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__d4f42f49._.js → [root-of-the-server]__e58e9f91._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f4b3df16._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c8195768._.js → [root-of-the-server]__f7f336c7._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fcfa3690._.js +93 -0
- package/cloud-runtime/standalone/.next/server/chunks/_4d07f8db._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_7f7835f1._.js +66 -21
- package/cloud-runtime/standalone/.next/server/chunks/lib_9f439b27._.js +61 -16
- package/cloud-runtime/standalone/.next/server/chunks/lib_f81d6da9._.js +70 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__4c9d0778._.js → [root-of-the-server]__01e1641e._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__0b2a2b86._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__32546242._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__4140bb73._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ffbc2e98._.js → [root-of-the-server]__5e73414b._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__5ff9ead4._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__ec81a3d9._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__f2c3b7ab._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__a42e4555._.js → [root-of-the-server]__fbe1ab4a._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_1e9b9b1e._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_24fe6213._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_36a0c486._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_3b21d3b2._.js +95 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_3eeac8f9._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_48db42b7._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_59f30a73._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_7d3b0032._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_916950b3._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_b598ae8a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_b7009996._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_cc8c8302._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_d972a4e1._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_dd7bb6fb._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_dd9880fb._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_e70d5625._.js +4 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_f02d786a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_f53d31e0._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_fd8cafe9._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_folders_page_actions_9c8dfb6c.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_projects_[slug]_linear_page_tsx_971a6ba7._.js +15 -12
- package/cloud-runtime/standalone/.next/server/chunks/ssr/components_chat-ui_bfeda794._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/components_thread_WorkspaceSidebar_tsx_e660301b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_54bf563f._.js +3 -0
- package/cloud-runtime/standalone/.next/server/instrumentation.js +1 -1
- package/cloud-runtime/standalone/.next/server/middleware-manifest.json +5 -5
- package/cloud-runtime/standalone/.next/server/next-font-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/next-font-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/pages/404.html +2 -2
- package/cloud-runtime/standalone/.next/server/pages/500.html +2 -2
- package/cloud-runtime/standalone/.next/server/server-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/server-reference-manifest.json +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/04c135686161dbb1.js +40 -0
- package/cloud-runtime/standalone/.next/static/chunks/0d63db0c39c0a3b2.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/136ed07d84b14632.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/18866ed04ed3a063.css +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/1b808cdaa28a10b4.js +16 -0
- package/cloud-runtime/standalone/.next/static/chunks/{ccaf68956da192f8.js → 1bb38e61d891453c.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/2c7c8259c2b56bf5.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2da1f13d50dc4e54.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/442eb8ef62bef9f9.js +3 -0
- package/cloud-runtime/standalone/.next/static/chunks/5f33b52d582b0bb4.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/{1fa91c34c99502bf.js → 64c2961edd3a3b13.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/{db131a0b6350e416.js → 692ce04abdbb3970.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/83be8569d298c6b0.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/87b3afe828c8cc52.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/{14922fd23cdc223b.js → 9328740727c6456d.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/95d47e285ae9c031.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/b9bf5d3ee92a1313.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/ea35fb870141bcff.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/f59722264449b61c.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/f727d2c8f039511d.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/{f4360c3e4089263f.js → f8706212baa8ec67.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/fd823c9d1381335d.js +1 -0
- package/cloud-runtime/standalone/app/api/linear/issues/route.ts +9 -2
- package/cloud-runtime/standalone/app/api/linear/options/route.ts +16 -4
- package/cloud-runtime/standalone/app/automations/page.tsx +11 -1
- package/cloud-runtime/standalone/app/folders/page.tsx +318 -0
- package/cloud-runtime/standalone/app/projects/[slug]/layout.tsx +11 -1
- package/cloud-runtime/standalone/components/LinearBoard.tsx +211 -28
- package/cloud-runtime/standalone/components/chat-ui/ChatContainer.tsx +10 -0
- package/cloud-runtime/standalone/components/linear/RunScriptManager.tsx +356 -0
- package/cloud-runtime/standalone/components/thread/WorkspaceSidebar.tsx +55 -10
- package/cloud-runtime/standalone/hooks/useLinearIssues.ts +7 -3
- package/cloud-runtime/standalone/hooks/useLinearRunScripts.ts +115 -0
- package/cloud-runtime/standalone/instrumentation.ts +3 -0
- package/cloud-runtime/standalone/lib/cli-runner.ts +27 -6
- package/cloud-runtime/standalone/lib/linear-client.ts +33 -3
- package/cloud-runtime/standalone/lib/linear-execution-prompt.ts +92 -15
- package/cloud-runtime/standalone/lib/linear-issue-store.ts +33 -5
- package/cloud-runtime/standalone/lib/scheduled-task-skill.ts +119 -0
- package/cloud-runtime/standalone/state/automations/.state/c4300b01-1203-40fe-b3a9-b9fb9ec0c5cc.json +8 -0
- package/cloud-runtime/standalone/state/automations/active/c4300b01-1203-40fe-b3a9-b9fb9ec0c5cc.md +15 -0
- package/cloud-runtime/standalone/state/linearBoardFilters.ts +90 -0
- package/cloud-runtime/standalone/state/linearRunScripts.test.ts +99 -0
- package/cloud-runtime/standalone/state/linearRunScripts.ts +132 -0
- package/cloud-runtime/standalone/state/windowState.ts +21 -0
- package/cloud-runtime/standalone/tsconfig.tsbuildinfo +1 -1
- package/cloud-runtime/standalone/worker/index.js +147 -28
- package/package.json +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1154e5b3._.js +0 -67
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3b83b657._.js +0 -147
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__6921fe3f._.js +0 -44
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__70327010._.js +0 -134
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__748c718f._.js +0 -147
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__76290829._.js +0 -67
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__79fa35e4._.js +0 -101
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8d205f82._.js +0 -48
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a7e0ac67._.js +0 -25
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ad6d6402._.js +0 -67
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b133856b._.js +0 -61
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ce2a1672._.js +0 -67
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f168c6dc._.js +0 -25
- package/cloud-runtime/standalone/.next/server/chunks/_a93e80e8._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__1c4256ce._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__69887882._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__bb149a22._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_11ce4c04._.js +0 -95
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_1d26be78._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_22e99a52._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_260b10ce._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_32c878b9._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_4bfdfb14._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_52fe115d._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_69164b06._.js +0 -95
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_77e1407a._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_7f7a828a._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_84a166cb._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_ba5903a7._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_cee3cf86._.js +0 -95
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_ed4fece9._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_f51a3112._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_e8bdedc5._.js +0 -3
- package/cloud-runtime/standalone/.next/static/chunks/2362d5c0dcaa5d64.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/2730394502dd3664.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/2a9c83f8211196e0.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/34dd491bc4ce9561.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/37f07896b044d69f.css +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/3dc50de1c86e1ce9.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/4ea8f08087116055.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/98c20da4973991f0.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/a72fbac84e32f665.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/a9da98f883ac833b.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/b2127dc67c5ade9f.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/b3377e39d47c71cf.js +0 -3
- package/cloud-runtime/standalone/.next/static/chunks/b553dba1f51e709b.js +0 -16
- package/cloud-runtime/standalone/.next/static/chunks/bf2a2fafb710e63c.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/c0d17e0c37ba8e7a.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/cca7c8e4ade050f0.js +0 -37
- package/cloud-runtime/standalone/state/automations/.state/24a6a5db-3b14-49c4-841f-29f10f015fbb.json +0 -8
- package/cloud-runtime/standalone/state/automations/active/24a6a5db-3b14-49c4-841f-29f10f015fbb.md +0 -17
- /package/cloud-runtime/standalone/.next/static/{1Q0q2lXllTpqCvmNQYtpD → gty0FO80D_lbq3o9lSpQQ}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/.next/static/{1Q0q2lXllTpqCvmNQYtpD → gty0FO80D_lbq3o9lSpQQ}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/.next/static/{1Q0q2lXllTpqCvmNQYtpD → gty0FO80D_lbq3o9lSpQQ}/_ssgManifest.js +0 -0
|
@@ -287,9 +287,9 @@ function reflectionStatePath(agentId) {
|
|
|
287
287
|
return (0, import_path5.join)(AGENTS_DIR2, agentId, "reflection-state.json");
|
|
288
288
|
}
|
|
289
289
|
function readSelf(agentId) {
|
|
290
|
-
const
|
|
291
|
-
if (!(0, import_fs5.existsSync)(
|
|
292
|
-
const raw = (0, import_fs5.readFileSync)(
|
|
290
|
+
const path13 = selfPath(agentId);
|
|
291
|
+
if (!(0, import_fs5.existsSync)(path13)) return null;
|
|
292
|
+
const raw = (0, import_fs5.readFileSync)(path13, "utf-8");
|
|
293
293
|
if (!raw.trim()) return null;
|
|
294
294
|
const lines = raw.split("\n");
|
|
295
295
|
let version = 0;
|
|
@@ -330,10 +330,10 @@ ${content}
|
|
|
330
330
|
logActivity(agentId, "self-updated", { meta: { version } });
|
|
331
331
|
}
|
|
332
332
|
function readReflectionState(agentId) {
|
|
333
|
-
const
|
|
334
|
-
if (!(0, import_fs5.existsSync)(
|
|
333
|
+
const path13 = reflectionStatePath(agentId);
|
|
334
|
+
if (!(0, import_fs5.existsSync)(path13)) return null;
|
|
335
335
|
try {
|
|
336
|
-
const parsed = JSON.parse((0, import_fs5.readFileSync)(
|
|
336
|
+
const parsed = JSON.parse((0, import_fs5.readFileSync)(path13, "utf-8"));
|
|
337
337
|
const lastProcessedJournalId = typeof parsed?.lastProcessedJournalId === "string" && parsed.lastProcessedJournalId.trim() ? parsed.lastProcessedJournalId.trim() : null;
|
|
338
338
|
const updatedAt = typeof parsed?.updatedAt === "string" && parsed.updatedAt.trim() ? parsed.updatedAt : (/* @__PURE__ */ new Date()).toISOString();
|
|
339
339
|
return { lastProcessedJournalId, updatedAt };
|
|
@@ -451,9 +451,9 @@ function ensureAgentDir(agentId) {
|
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
function readJournalLines(agentId) {
|
|
454
|
-
const
|
|
455
|
-
if (!(0, import_fs6.existsSync)(
|
|
456
|
-
return (0, import_fs6.readFileSync)(
|
|
454
|
+
const path13 = journalPath(agentId);
|
|
455
|
+
if (!(0, import_fs6.existsSync)(path13)) return [];
|
|
456
|
+
return (0, import_fs6.readFileSync)(path13, "utf-8").split("\n").filter((l) => l.trim());
|
|
457
457
|
}
|
|
458
458
|
function parseMaxSeq(agentId, lines) {
|
|
459
459
|
let maxSeq = 0;
|
|
@@ -564,10 +564,10 @@ I am ${agentId}. ${seed}
|
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
function readIdentity(agentId) {
|
|
567
|
-
const
|
|
568
|
-
if (!(0, import_fs7.existsSync)(
|
|
567
|
+
const path13 = (0, import_path7.join)(AGENTS_DIR4, agentId, "identity.json");
|
|
568
|
+
if (!(0, import_fs7.existsSync)(path13)) return null;
|
|
569
569
|
try {
|
|
570
|
-
return JSON.parse((0, import_fs7.readFileSync)(
|
|
570
|
+
return JSON.parse((0, import_fs7.readFileSync)(path13, "utf-8"));
|
|
571
571
|
} catch {
|
|
572
572
|
return null;
|
|
573
573
|
}
|
|
@@ -8971,6 +8971,111 @@ function commandExists(bin) {
|
|
|
8971
8971
|
}
|
|
8972
8972
|
}
|
|
8973
8973
|
|
|
8974
|
+
// ../agx-cloud/lib/scheduled-task-skill.ts
|
|
8975
|
+
var import_node_fs2 = __toESM(require("node:fs"));
|
|
8976
|
+
var import_node_os2 = __toESM(require("node:os"));
|
|
8977
|
+
var import_node_path2 = __toESM(require("node:path"));
|
|
8978
|
+
var SCHEDULED_TASK_SKILL_ID = "scheduled-task-manager";
|
|
8979
|
+
function toDisplayPath(value) {
|
|
8980
|
+
return value.replace(/\\/g, "/");
|
|
8981
|
+
}
|
|
8982
|
+
function resolveAgxDataDir(explicitDir) {
|
|
8983
|
+
const trimmed = explicitDir?.trim();
|
|
8984
|
+
if (trimmed) return trimmed;
|
|
8985
|
+
const configured = process.env.AGX_DATA_DIR?.trim();
|
|
8986
|
+
if (configured) return configured;
|
|
8987
|
+
return import_node_path2.default.join(import_node_os2.default.homedir(), ".agx");
|
|
8988
|
+
}
|
|
8989
|
+
function resolveWorkspaceRoot(explicitRoot) {
|
|
8990
|
+
const trimmed = explicitRoot?.trim();
|
|
8991
|
+
if (trimmed) return trimmed;
|
|
8992
|
+
return process.cwd();
|
|
8993
|
+
}
|
|
8994
|
+
function getScheduledTaskSkillPath(options = {}) {
|
|
8995
|
+
return import_node_path2.default.join(
|
|
8996
|
+
resolveAgxDataDir(options.agxDataDir),
|
|
8997
|
+
"skills",
|
|
8998
|
+
SCHEDULED_TASK_SKILL_ID,
|
|
8999
|
+
"SKILL.md"
|
|
9000
|
+
);
|
|
9001
|
+
}
|
|
9002
|
+
function buildScheduledTaskSkillContent(options = {}) {
|
|
9003
|
+
const workspaceRoot = resolveWorkspaceRoot(options.workspaceRoot);
|
|
9004
|
+
const specPath = toDisplayPath(import_node_path2.default.join(workspaceRoot, "planning", "automation-frontmatter-migration-spec.md"));
|
|
9005
|
+
const automationsDir = toDisplayPath(import_node_path2.default.join(workspaceRoot, "src", "automations"));
|
|
9006
|
+
const promptSchedulerDir = toDisplayPath(import_node_path2.default.join(workspaceRoot, "src", "prompt-scheduler"));
|
|
9007
|
+
const graphScheduleRunnerPath = toDisplayPath(import_node_path2.default.join(workspaceRoot, "src", "graph", "schedule-runner.ts"));
|
|
9008
|
+
const graphStorePath = toDisplayPath(import_node_path2.default.join(workspaceRoot, "src", "graph", "store.ts"));
|
|
9009
|
+
const automationsRoutePath = toDisplayPath(import_node_path2.default.join(workspaceRoot, "app", "api", "automations", "route.ts"));
|
|
9010
|
+
const promptJobsRoutePath = toDisplayPath(import_node_path2.default.join(workspaceRoot, "app", "api", "prompt-jobs", "route.ts"));
|
|
9011
|
+
return `---
|
|
9012
|
+
name: scheduled-task-manager
|
|
9013
|
+
description: Use when creating, editing, migrating, debugging, or reviewing AGX scheduled tasks, automations, prompt jobs, execution graph schedules, or frontmatter-backed automation definitions.
|
|
9014
|
+
---
|
|
9015
|
+
|
|
9016
|
+
# Scheduled Task Manager
|
|
9017
|
+
|
|
9018
|
+
Use this skill whenever the task touches scheduled tasks, automations, prompt jobs, execution graph schedules, or automation frontmatter.
|
|
9019
|
+
|
|
9020
|
+
## Read First
|
|
9021
|
+
|
|
9022
|
+
- [automation-frontmatter-migration-spec](${specPath})
|
|
9023
|
+
- Shared automation model lives in [src/automations](${automationsDir})
|
|
9024
|
+
- Prompt-job scheduling lives in [src/prompt-scheduler](${promptSchedulerDir})
|
|
9025
|
+
- Execution-graph scheduling flows through [schedule-runner.ts](${graphScheduleRunnerPath}) and [store.ts](${graphStorePath})
|
|
9026
|
+
- API entry points are [app/api/automations/route.ts](${automationsRoutePath}) and [app/api/prompt-jobs/route.ts](${promptJobsRoutePath})
|
|
9027
|
+
|
|
9028
|
+
## Guardrails
|
|
9029
|
+
|
|
9030
|
+
- Reject malformed frontmatter. Do not coerce invalid enum values into defaults.
|
|
9031
|
+
- Preserve stable automation ids. Renaming a task must not create a new id.
|
|
9032
|
+
- Keep runtime state such as last run, next run, and archival flags out of frontmatter unless the spec explicitly says otherwise.
|
|
9033
|
+
- Preserve sub-minute scheduled cadences when they are represented as \`intervalMs\`.
|
|
9034
|
+
- For \`execution_graph\` targets, keep \`graphId\` and \`taskId\` resolution correct. Do not assume \`definition.id === taskId\`.
|
|
9035
|
+
- Updating an automation definition should advance user-visible \`updatedAt\`.
|
|
9036
|
+
- Avoid eager file-backed repository initialization on request paths that should stay lazy or rollout-gated.
|
|
9037
|
+
- Keep parser and serializer behavior round-trippable unless the spec explicitly requires normalization.
|
|
9038
|
+
|
|
9039
|
+
## Working Pattern
|
|
9040
|
+
|
|
9041
|
+
1. Read the migration spec before changing storage, rollout, or validation behavior.
|
|
9042
|
+
2. Trace the full path: parser -> validation -> repository -> scheduler -> API.
|
|
9043
|
+
3. Add or update regression tests for parsing, serialization, due selection, and the affected API or runtime path.
|
|
9044
|
+
4. Prefer small fixes in the shared automation layer over duplicating logic in adapters.
|
|
9045
|
+
|
|
9046
|
+
## Validation Checklist
|
|
9047
|
+
|
|
9048
|
+
- Scheduled triggers keep \`cronExpr\`, \`cadence\`, and sub-minute \`intervalMs\` semantics intact.
|
|
9049
|
+
- Condition triggers validate required fields and reject unsupported polling intervals.
|
|
9050
|
+
- Target-specific required fields are enforced.
|
|
9051
|
+
- Invalid definitions fail closed and are excluded instead of silently rewritten.
|
|
9052
|
+
- Prompt-job and execution-graph adapters preserve the same runtime meaning before and after frontmatter serialization.
|
|
9053
|
+
`;
|
|
9054
|
+
}
|
|
9055
|
+
function ensureScheduledTaskSkillInstalled(options = {}) {
|
|
9056
|
+
const skillPath = getScheduledTaskSkillPath(options);
|
|
9057
|
+
const skillContent = buildScheduledTaskSkillContent(options);
|
|
9058
|
+
try {
|
|
9059
|
+
import_node_fs2.default.mkdirSync(import_node_path2.default.dirname(skillPath), { recursive: true });
|
|
9060
|
+
const existing = import_node_fs2.default.existsSync(skillPath) ? import_node_fs2.default.readFileSync(skillPath, "utf8") : null;
|
|
9061
|
+
if (existing !== skillContent) {
|
|
9062
|
+
import_node_fs2.default.writeFileSync(skillPath, skillContent, "utf8");
|
|
9063
|
+
}
|
|
9064
|
+
} catch (error) {
|
|
9065
|
+
console.warn("[scheduled-task-skill] Failed to install skill:", error);
|
|
9066
|
+
}
|
|
9067
|
+
return skillPath;
|
|
9068
|
+
}
|
|
9069
|
+
function buildScheduledTaskSkillPromptContext(options = {}) {
|
|
9070
|
+
const skillPath = ensureScheduledTaskSkillInstalled(options);
|
|
9071
|
+
return [
|
|
9072
|
+
"<scheduled-task-skill>",
|
|
9073
|
+
`Path: ${toDisplayPath(skillPath)}`,
|
|
9074
|
+
"Read this skill whenever the task involves scheduled tasks, automations, prompt jobs, execution graph schedules, or frontmatter-backed automation definitions.",
|
|
9075
|
+
"</scheduled-task-skill>"
|
|
9076
|
+
].join("\n");
|
|
9077
|
+
}
|
|
9078
|
+
|
|
8974
9079
|
// ../agx-cloud/lib/cli-runner.ts
|
|
8975
9080
|
var isNonEmptyString = (value) => typeof value === "string" && value.trim().length > 0;
|
|
8976
9081
|
var createRawParser = (onDelta) => ({
|
|
@@ -9505,18 +9610,12 @@ async function runCliResponse({
|
|
|
9505
9610
|
const cleaned = sanitize(chunk);
|
|
9506
9611
|
if (cleaned) onDelta(cleaned);
|
|
9507
9612
|
};
|
|
9508
|
-
const
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
${self}
|
|
9515
|
-
</self>`);
|
|
9516
|
-
if (skills) systemParts.push(`<skills>
|
|
9517
|
-
${skills}
|
|
9518
|
-
</skills>`);
|
|
9519
|
-
const systemPrompt = systemParts.length > 0 ? systemParts.join("\n\n") : void 0;
|
|
9613
|
+
const systemPrompt = buildCliSystemPrompt({
|
|
9614
|
+
identity,
|
|
9615
|
+
self,
|
|
9616
|
+
skills,
|
|
9617
|
+
systemContext
|
|
9618
|
+
});
|
|
9520
9619
|
const attempts = buildCliAttempts({
|
|
9521
9620
|
provider,
|
|
9522
9621
|
model,
|
|
@@ -9576,6 +9675,26 @@ ${skills}
|
|
|
9576
9675
|
}
|
|
9577
9676
|
throw lastError || new Error("CLI execution failed.");
|
|
9578
9677
|
}
|
|
9678
|
+
function buildCliSystemPrompt({
|
|
9679
|
+
identity,
|
|
9680
|
+
self,
|
|
9681
|
+
skills,
|
|
9682
|
+
systemContext
|
|
9683
|
+
}) {
|
|
9684
|
+
const systemParts = [];
|
|
9685
|
+
if (systemContext) systemParts.push(systemContext);
|
|
9686
|
+
systemParts.push(buildScheduledTaskSkillPromptContext());
|
|
9687
|
+
if (identity) systemParts.push(`<identity>
|
|
9688
|
+
${identity}
|
|
9689
|
+
</identity>`);
|
|
9690
|
+
if (self) systemParts.push(`<self>
|
|
9691
|
+
${self}
|
|
9692
|
+
</self>`);
|
|
9693
|
+
if (skills) systemParts.push(`<skills>
|
|
9694
|
+
${skills}
|
|
9695
|
+
</skills>`);
|
|
9696
|
+
return systemParts.length > 0 ? systemParts.join("\n\n") : void 0;
|
|
9697
|
+
}
|
|
9579
9698
|
|
|
9580
9699
|
// ../agx-cloud/lib/memory-extractor.ts
|
|
9581
9700
|
init_sqlite_query_adapter();
|
|
@@ -11325,11 +11444,11 @@ function appendReaction(agentId, targetEntry, type) {
|
|
|
11325
11444
|
init_activity();
|
|
11326
11445
|
|
|
11327
11446
|
// ../agx-cloud/lib/agent-skill-bindings.ts
|
|
11328
|
-
var
|
|
11447
|
+
var import_node_fs3 = __toESM(require("node:fs"));
|
|
11329
11448
|
init_sqlite_query_adapter();
|
|
11330
11449
|
|
|
11331
11450
|
// ../agx-cloud/lib/skills-library.ts
|
|
11332
|
-
var
|
|
11451
|
+
var import_node_path3 = __toESM(require("node:path"));
|
|
11333
11452
|
var import_node_child_process = require("node:child_process");
|
|
11334
11453
|
init_sqlite_query_adapter();
|
|
11335
11454
|
var SKILLS_CACHE_TTL = 60 * 60 * 1e3;
|
|
@@ -11351,7 +11470,7 @@ function skillAgentName(provider) {
|
|
|
11351
11470
|
return null;
|
|
11352
11471
|
}
|
|
11353
11472
|
function installedSkillPath(skillId) {
|
|
11354
|
-
return
|
|
11473
|
+
return import_node_path3.default.join(process.cwd(), ".agents", "skills", skillId, "SKILL.md");
|
|
11355
11474
|
}
|
|
11356
11475
|
function recordSkillHistory(input) {
|
|
11357
11476
|
const db2 = getSQLiteDb();
|
|
@@ -11477,7 +11596,7 @@ function resolveBoundSkillFiles(bindings, prompt, provider) {
|
|
|
11477
11596
|
for (const binding of bindings) {
|
|
11478
11597
|
if (!isBindingRelevant(binding, prompt)) continue;
|
|
11479
11598
|
const file = installedSkillPath(binding.skillId);
|
|
11480
|
-
if (!
|
|
11599
|
+
if (!import_node_fs3.default.existsSync(file)) {
|
|
11481
11600
|
const installResult = installSkill({
|
|
11482
11601
|
repo: binding.repo,
|
|
11483
11602
|
skillId: binding.skillId,
|
package/package.json
CHANGED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
module.exports=[193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},810010,e=>{"use strict";function t(e){let t=e?.trim();return t?t.replace(/\/+$/,""):null}let r="http://localhost:41741";function n(){return t("http://localhost:3000")??t(process.env.AGX_BOARD_URL)??t(process.env.NEXT_PUBLIC_AGX_BOARD_URL)??r}function a(){return t(process.env.AGX_BOARD_URL)??t(process.env.NEXT_PUBLIC_AGX_BOARD_URL)??t("http://localhost:3000")??r}function s(){let e=new Set([r,"http://127.0.0.1:41741"]);for(let r of["http://localhost:3000",process.env.AGX_BOARD_URL,process.env.NEXT_PUBLIC_AGX_BOARD_URL]){let n=t(r);n&&e.add(n)}return Array.from(e)}e.s(["getAllowedOrigins",()=>s,"getConfiguredAppBaseUrl",()=>n,"getConfiguredBoardBaseUrl",()=>a])},423502,(e,t,r)=>{},841897,e=>{"use strict";e.i(423502);var t=e.i(902157),r=e.i(750227);function n(){return r.default.join(process.cwd(),".linear-token.json")}function a(e){(0,t.writeFileSync)(n(),JSON.stringify(e,null,2))}function s(){try{(0,t.unlinkSync)(n())}catch{}}class i{accessToken;constructor(e){this.accessToken=e}get viewer(){return this.request("query { viewer { id name email } }").then(e=>e.viewer)}async users(){return(await this.request(`query {
|
|
2
|
-
users(first: 100) {
|
|
3
|
-
nodes {
|
|
4
|
-
id
|
|
5
|
-
name
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}`)).users.nodes.filter(e=>e.name.trim().length>0).map(e=>({id:e.id,name:e.name})).sort((e,t)=>e.name.localeCompare(t.name))}async teams(){return(await this.request(`query {
|
|
9
|
-
teams(first: 50) {
|
|
10
|
-
nodes {
|
|
11
|
-
id
|
|
12
|
-
name
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}`)).teams.nodes.filter(e=>e.name.trim().length>0).map(e=>({id:e.id,name:e.name})).sort((e,t)=>e.name.localeCompare(t.name))}async issues(e){let t,r=(t=[`first: ${e.first}`],e.after&&t.push(`after: ${JSON.stringify(e.after)}`),e.orderBy&&t.push(`orderBy: ${e.orderBy}`),e.filter&&Object.keys(e.filter).length>0&&t.push(`filter: ${function e(t){if(null===t)return"null";if(Array.isArray(t))return`[${t.map(e).join(", ")}]`;if("string"==typeof t)return JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return String(t);if("object"==typeof t){let r=Object.entries(t).filter(([,e])=>void 0!==e);return`{ ${r.map(([t,r])=>`${t}: ${e(r)}`).join(", ")} }`}throw Error(`Unsupported GraphQL value: ${typeof t}`)}(e.filter)}`),t.join(", ")),n=await this.request(`query {
|
|
16
|
-
issues(${r}) {
|
|
17
|
-
nodes {
|
|
18
|
-
id
|
|
19
|
-
identifier
|
|
20
|
-
title
|
|
21
|
-
description
|
|
22
|
-
url
|
|
23
|
-
updatedAt
|
|
24
|
-
state { name }
|
|
25
|
-
assignee { id name email }
|
|
26
|
-
team { id name key }
|
|
27
|
-
cycle { id number name }
|
|
28
|
-
}
|
|
29
|
-
pageInfo {
|
|
30
|
-
hasNextPage
|
|
31
|
-
endCursor
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}`);return{nodes:n.issues.nodes.map(e=>({id:e.id,identifier:e.identifier,title:e.title,description:e.description,url:e.url,updatedAt:e.updatedAt,state:Promise.resolve(e.state),assignee:Promise.resolve(e.assignee),team:Promise.resolve(e.team),cycle:Promise.resolve(e.cycle)})),pageInfo:n.issues.pageInfo}}async cycles(){let e=await this.request(`query {
|
|
35
|
-
teams(first: 50) {
|
|
36
|
-
nodes {
|
|
37
|
-
id
|
|
38
|
-
name
|
|
39
|
-
activeCycle {
|
|
40
|
-
id
|
|
41
|
-
number
|
|
42
|
-
name
|
|
43
|
-
startsAt
|
|
44
|
-
endsAt
|
|
45
|
-
team {
|
|
46
|
-
id
|
|
47
|
-
name
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
cycles(first: 20) {
|
|
51
|
-
nodes {
|
|
52
|
-
id
|
|
53
|
-
number
|
|
54
|
-
name
|
|
55
|
-
startsAt
|
|
56
|
-
endsAt
|
|
57
|
-
team {
|
|
58
|
-
id
|
|
59
|
-
name
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}`),t=new Map;for(let r of e.teams.nodes)for(let e of[...r.activeCycle?[r.activeCycle]:[],...r.cycles.nodes])t.has(e.id)||t.set(e.id,{id:e.id,number:e.number,name:e.name,startsAt:e.startsAt,endsAt:e.endsAt,teamId:e.team?.id??r.id,teamName:e.team?.name??r.name});return[...t.values()].sort((e,t)=>new Date(t.startsAt).getTime()-new Date(e.startsAt).getTime())}async request(e){let t=await fetch("https://api.linear.app/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.accessToken},body:JSON.stringify({query:e}),cache:"no-store"}),r=await t.json();if(!t.ok||r.errors?.length)throw Error(r.errors?.map(e=>e.message).find(Boolean)??`Linear request failed with status ${t.status}`);if(!r.data)throw Error("Linear response did not include data");return r.data}}function o(){let e=function(){try{let e=(0,t.readFileSync)(n(),"utf8");return JSON.parse(e)}catch{return null}}();return e?new i(e.accessToken):null}e.s(["LinearClient",()=>i,"deleteLinearToken",()=>s,"getLinearClient",()=>o,"saveLinearToken",()=>a])},924006,e=>{"use strict";var t=e.i(747909),r=e.i(174017),n=e.i(996250),a=e.i(759756),s=e.i(561916),i=e.i(174677),o=e.i(869741),l=e.i(316795),d=e.i(487718),u=e.i(995169),c=e.i(47587),p=e.i(666012),f=e.i(570101),h=e.i(626937),m=e.i(10372),y=e.i(193695);e.i(52474);var g=e.i(600220),v=e.i(89171),R=e.i(810010),x=e.i(841897);async function w(e){let t=e.nextUrl.searchParams.get("code");if(!t)return v.NextResponse.redirect("/?linear=error");let r=process.env.LINEAR_CLIENT_ID,n=process.env.LINEAR_CLIENT_SECRET,a=`${(0,R.getConfiguredAppBaseUrl)()}/api/linear/callback`,s=await fetch("https://api.linear.app/oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:t,client_id:r,client_secret:n,redirect_uri:a})});if(!s.ok)return v.NextResponse.redirect("/?linear=error");let i=await s.json();return(0,x.saveLinearToken)({accessToken:i.access_token,expiresAt:i.expires_in?Date.now()+1e3*i.expires_in:void 0}),v.NextResponse.redirect("/?linear=connected")}e.s(["GET",()=>w,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],825472);var A=e.i(825472);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/linear/callback/route",pathname:"/api/linear/callback",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/linear/callback/route.ts",nextConfigOutput:"standalone",userland:A}),{workAsyncStorage:E,workUnitAsyncStorage:_,serverHooks:T}=C;function b(){return(0,n.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:_})}async function k(e,t,n){C.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/linear/callback/route";v=v.replace(/\/index$/,"")||"/";let R=await C.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:x,params:w,nextConfig:A,parsedUrl:E,isDraftMode:_,prerenderManifest:T,routerServerContext:b,isOnDemandRevalidate:k,revalidateOnlyGenerated:N,resolvedPathname:O,clientReferenceManifest:P,serverActionsManifest:q}=R,S=(0,o.normalizeAppPath)(v),U=!!(T.dynamicRoutes[S]||T.routes[O]),j=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,E,!1):t.end("This page could not be found"),null);if(U&&!_){let e=!!T.routes[O],t=T.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(A.experimental.adapterPath)return await j();throw new y.NoFallbackError}}let I=null;!U||C.isDev||_||(I="/index"===(I=O)?"/":I);let L=!0===C.isDev||!U,D=U&&!L;q&&P&&(0,i.setManifestsSingleton)({page:v,clientReferenceManifest:P,serverActionsManifest:q});let B=e.method||"GET",$=(0,s.getTracer)(),H=$.getActiveScopeSpan(),M={params:w,prerenderManifest:T,renderOpts:{experimental:{authInterrupts:!!A.experimental.authInterrupts},cacheComponents:!!A.cacheComponents,supportsDynamicResponse:L,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:A.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>C.onRequestError(e,t,n,a,b)},sharedContext:{buildId:x}},X=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),F=d.NextRequestAdapter.fromNodeNextRequest(X,(0,d.signalFromNodeResponse)(t));try{let i=async e=>C.handle(F,M).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.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 n=r.get("next.route");if(n){let t=`${B} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${B} ${v}`)}),o=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var s,l;let d=async({previousCacheEntry:r})=>{try{if(!o&&k&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(a);e.fetchMetrics=M.renderOpts.fetchMetrics;let l=M.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let d=M.renderOpts.collectedTags;if(!U)return await (0,p.sendResponse)(X,G,s,M.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(s.headers);d&&(t[m.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,n=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:k})},!1,b),t}},u=await C.handleResponse({req:e,nextConfig:A,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:k,revalidateOnlyGenerated:N,responseGenerator:d,waitUntil:n.waitUntil,isMinimalMode:o});if(!U)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",k?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let y=(0,f.fromNodeOutgoingHttpHeaders)(u.value.headers);return o&&U||y.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||y.get("Cache-Control")||y.set("Cache-Control",(0,h.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(X,G,new Response(u.value.body,{headers:y,status:u.value.status||200})),null};H?await l(H):await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${B} ${v}`,kind:s.SpanKind.SERVER,attributes:{"http.method":B,"http.target":e.url}},l))}catch(t){if(t instanceof y.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:k})},!1,b),U)throw t;return await (0,p.sendResponse)(X,G,new Response(null,{status:500})),null}}e.s(["handler",()=>k,"patchFetch",()=>b,"routeModule",()=>C,"serverHooks",()=>T,"workAsyncStorage",()=>E,"workUnitAsyncStorage",()=>_],924006)}];
|
|
66
|
-
|
|
67
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1154e5b3._.js.map
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
module.exports=[918622,(e,t,s)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,s)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,s)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,s)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},193695,(e,t,s)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},522734,(e,t,s)=>{t.exports=e.x("fs",()=>require("fs"))},814747,(e,t,s)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,s)=>{t.exports=e.x("os",()=>require("os"))},259833,e=>{"use strict";function t(e,t){let s=e.prepare(`PRAGMA ${t}`).get();if(!s)return;let i=Object.values(s);return i.length>0?i[0]:void 0}function s(e,t){return e.prepare(`PRAGMA ${t}`).all()}function i(e,t){e.exec(`PRAGMA ${t}`)}function n(e,t){e.exec("BEGIN");try{let s=t();return e.exec("COMMIT"),s}catch(t){throw e.exec("ROLLBACK"),t}}function a(e,t){return(...s)=>{e.exec("BEGIN");try{let i=t(...s);return e.exec("COMMIT"),i}catch(t){throw e.exec("ROLLBACK"),t}}}e.s(["pragmaAll",()=>s,"pragmaGet",()=>t,"pragmaSet",()=>i,"transaction",()=>n,"transactionFn",()=>a])},233405,(e,t,s)=>{t.exports=e.x("child_process",()=>require("child_process"))},949041,e=>{"use strict";let t={id:"2c3cc1ca-956d-4b62-b295-4d2d3374103f",email:process.env.AGX_BOARD_USER_EMAIL||"local@agx.board",name:process.env.AGX_BOARD_USER_NAME||"Local Board User"};e.s(["LOCAL_USER",0,t])},121729,e=>{"use strict";e.x("node:sqlite",()=>require("node:sqlite"),!0);var t=e.i(259833);e.i(522734);var s=e.i(446786),i=e.i(814747);let n="3.35.0",a=["json1"],r=["fts5"],l=["nfs","smb","cifs","efs","fuse.sshfs"];function u(e,t){try{if("json1"===t)return e.prepare("SELECT json('{}')").get(),!0;if("fts5"===t)return e.exec("CREATE VIRTUAL TABLE IF NOT EXISTS _fts5_check USING fts5(x)"),e.exec("DROP TABLE IF EXISTS _fts5_check"),!0;return!1}catch{return!1}}function o(o,d){let c=[],p=o.prepare("SELECT sqlite_version() as v").get();for(let e of(0>function(e,t){let s=e.split(".").map(Number),i=t.split(".").map(Number);for(let e=0;e<3;e++){let t=(s[e]||0)-(i[e]||0);if(0!==t)return t}return 0}(p.v,n)&&c.push({kind:"version_mismatch",message:`SQLite version ${p.v} is below minimum ${n}`,found:p.v,required:`>= ${n}`,fix:"Ensure Node.js >= 22.16 is installed (node:sqlite is built-in)"}),a))u(o,e)||c.push({kind:"missing_extension",message:`Required SQLite extension '${e}' is not available`,required:e,fix:`Rebuild SQLite with -DSQLITE_ENABLE_${e.toUpperCase()}=1, or use a system SQLite that includes it`});for(let e of r)u(o,e)||console.warn(`[startup] Recommended SQLite extension '${e}' is not available. Full-text search will be disabled.`);let m=function(t){"linux"!==s.default.platform()&&s.default.platform();try{let n=i.default.resolve(t),{execSync:a}=e.r(233405);if("darwin"===s.default.platform()){let e=a(`df -T "${n}" 2>/dev/null || df "${n}"`,{encoding:"utf-8",timeout:3e3}).trim().split("\n");if(e.length>=2){let t=e[1].split(/\s+/),s=t[0]?.toLowerCase()||"";if(s.includes("://")||s.includes("nfs")||s.includes("smb"))return s}}}catch{}return null}(d);m&&l.some(e=>m.toLowerCase().includes(e))&&c.push({kind:"filesystem_error",message:`Database path '${d}' is on a network filesystem (${m})`,path:d,found:m,fix:"Move the database file to a local SSD. WAL mode requires local filesystem with reliable fsync."});try{(0,t.pragmaSet)(o,"journal_mode = wal"),(0,t.pragmaSet)(o,"foreign_keys = 1"),(0,t.pragmaSet)(o,"busy_timeout = 5000"),(0,t.pragmaSet)(o,"synchronous = 1"),(0,t.pragmaSet)(o,"cache_size = -64000");let e=(0,t.pragmaGet)(o,"journal_mode").toLowerCase(),s=new Set(["wal","delete"]);if(!s.has(e)){(0,t.pragmaSet)(o,"journal_mode = DELETE");let e=(0,t.pragmaGet)(o,"journal_mode").toLowerCase();s.has(e)?((0,t.pragmaSet)(o,"synchronous = FULL"),console.warn(`[startup] WAL unavailable, using journal_mode=${e} with synchronous=FULL`)):c.push({kind:"pragma_error",message:`Failed to set journal_mode (got '${e}', tried WAL then DELETE)`,found:e,required:"wal or delete",fix:"Ensure the database file is on a local filesystem and no other process holds an exclusive lock."})}}catch(e){c.push({kind:"pragma_error",message:`Failed to apply required PRAGMAs: ${e.message}`,fix:"Check file permissions and ensure the database is not read-only."})}return c}e.s(["validateSQLiteEnvironment",()=>o])},500874,(e,t,s)=>{t.exports=e.x("buffer",()=>require("buffer"))},666680,(e,t,s)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},750227,(e,t,s)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,s)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},660526,(e,t,s)=>{t.exports=e.x("node:os",()=>require("node:os"))},423502,(e,t,s)=>{},841897,e=>{"use strict";e.i(423502);var t=e.i(902157),s=e.i(750227);function i(){return s.default.join(process.cwd(),".linear-token.json")}function n(e){(0,t.writeFileSync)(i(),JSON.stringify(e,null,2))}function a(){try{(0,t.unlinkSync)(i())}catch{}}class r{accessToken;constructor(e){this.accessToken=e}get viewer(){return this.request("query { viewer { id name email } }").then(e=>e.viewer)}async users(){return(await this.request(`query {
|
|
2
|
-
users(first: 100) {
|
|
3
|
-
nodes {
|
|
4
|
-
id
|
|
5
|
-
name
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}`)).users.nodes.filter(e=>e.name.trim().length>0).map(e=>({id:e.id,name:e.name})).sort((e,t)=>e.name.localeCompare(t.name))}async teams(){return(await this.request(`query {
|
|
9
|
-
teams(first: 50) {
|
|
10
|
-
nodes {
|
|
11
|
-
id
|
|
12
|
-
name
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}`)).teams.nodes.filter(e=>e.name.trim().length>0).map(e=>({id:e.id,name:e.name})).sort((e,t)=>e.name.localeCompare(t.name))}async issues(e){let t,s=(t=[`first: ${e.first}`],e.after&&t.push(`after: ${JSON.stringify(e.after)}`),e.orderBy&&t.push(`orderBy: ${e.orderBy}`),e.filter&&Object.keys(e.filter).length>0&&t.push(`filter: ${function e(t){if(null===t)return"null";if(Array.isArray(t))return`[${t.map(e).join(", ")}]`;if("string"==typeof t)return JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return String(t);if("object"==typeof t){let s=Object.entries(t).filter(([,e])=>void 0!==e);return`{ ${s.map(([t,s])=>`${t}: ${e(s)}`).join(", ")} }`}throw Error(`Unsupported GraphQL value: ${typeof t}`)}(e.filter)}`),t.join(", ")),i=await this.request(`query {
|
|
16
|
-
issues(${s}) {
|
|
17
|
-
nodes {
|
|
18
|
-
id
|
|
19
|
-
identifier
|
|
20
|
-
title
|
|
21
|
-
description
|
|
22
|
-
url
|
|
23
|
-
updatedAt
|
|
24
|
-
state { name }
|
|
25
|
-
assignee { id name email }
|
|
26
|
-
team { id name key }
|
|
27
|
-
cycle { id number name }
|
|
28
|
-
}
|
|
29
|
-
pageInfo {
|
|
30
|
-
hasNextPage
|
|
31
|
-
endCursor
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}`);return{nodes:i.issues.nodes.map(e=>({id:e.id,identifier:e.identifier,title:e.title,description:e.description,url:e.url,updatedAt:e.updatedAt,state:Promise.resolve(e.state),assignee:Promise.resolve(e.assignee),team:Promise.resolve(e.team),cycle:Promise.resolve(e.cycle)})),pageInfo:i.issues.pageInfo}}async cycles(){let e=await this.request(`query {
|
|
35
|
-
teams(first: 50) {
|
|
36
|
-
nodes {
|
|
37
|
-
id
|
|
38
|
-
name
|
|
39
|
-
activeCycle {
|
|
40
|
-
id
|
|
41
|
-
number
|
|
42
|
-
name
|
|
43
|
-
startsAt
|
|
44
|
-
endsAt
|
|
45
|
-
team {
|
|
46
|
-
id
|
|
47
|
-
name
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
cycles(first: 20) {
|
|
51
|
-
nodes {
|
|
52
|
-
id
|
|
53
|
-
number
|
|
54
|
-
name
|
|
55
|
-
startsAt
|
|
56
|
-
endsAt
|
|
57
|
-
team {
|
|
58
|
-
id
|
|
59
|
-
name
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}`),t=new Map;for(let s of e.teams.nodes)for(let e of[...s.activeCycle?[s.activeCycle]:[],...s.cycles.nodes])t.has(e.id)||t.set(e.id,{id:e.id,number:e.number,name:e.name,startsAt:e.startsAt,endsAt:e.endsAt,teamId:e.team?.id??s.id,teamName:e.team?.name??s.name});return[...t.values()].sort((e,t)=>new Date(t.startsAt).getTime()-new Date(e.startsAt).getTime())}async request(e){let t=await fetch("https://api.linear.app/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.accessToken},body:JSON.stringify({query:e}),cache:"no-store"}),s=await t.json();if(!t.ok||s.errors?.length)throw Error(s.errors?.map(e=>e.message).find(Boolean)??`Linear request failed with status ${t.status}`);if(!s.data)throw Error("Linear response did not include data");return s.data}}function l(){let e=function(){try{let e=(0,t.readFileSync)(i(),"utf8");return JSON.parse(e)}catch{return null}}();return e?new r(e.accessToken):null}e.s(["LinearClient",()=>r,"deleteLinearToken",()=>a,"getLinearClient",()=>l,"saveLinearToken",()=>n])},832674,e=>{"use strict";e.i(423502);var t=e.i(902157),s=e.i(750227),i=e.i(260476),n=e.i(841897),a=e.x("node:sqlite",()=>require("node:sqlite"),!0),r=e.i(660526),l=e.i(259833);let u=process.env.AGX_LINEAR_DIR?.trim()||s.default.join(process.env.AGX_DATA_DIR||s.default.join(r.default.homedir(),".agx"),"linear"),o=s.default.join(u,"issues.sqlite");function d(e){return e?.trim()||null}function c(e){return new Date(e).toISOString()}function p(e){return{id:e.issue_id,identifier:e.identifier,title:e.title,description:e.description,url:e.url,status:e.status,assigneeId:e.assignee_id,assignee:e.assignee_name,assigneeEmail:e.assignee_email,isAssignedToMe:1===e.is_assigned_to_me,teamId:e.team_id,teamName:e.team_name,teamKey:e.team_key,cycleId:e.cycle_id,cycleName:e.cycle_name,cycleNumber:e.cycle_number,updatedAt:e.updated_at,pulledAt:c(e.pulled_at)}}async function m(e){await t.promises.mkdir(u,{recursive:!0});let s=new a.DatabaseSync(o);(0,l.pragmaSet)(s,"journal_mode = WAL");try{return s.exec(`
|
|
66
|
-
CREATE TABLE IF NOT EXISTS linear_issues (
|
|
67
|
-
issue_id TEXT PRIMARY KEY,
|
|
68
|
-
identifier TEXT NOT NULL,
|
|
69
|
-
title TEXT NOT NULL,
|
|
70
|
-
description TEXT,
|
|
71
|
-
url TEXT,
|
|
72
|
-
status TEXT NOT NULL,
|
|
73
|
-
assignee_id TEXT,
|
|
74
|
-
assignee_name TEXT,
|
|
75
|
-
assignee_email TEXT,
|
|
76
|
-
is_assigned_to_me INTEGER NOT NULL DEFAULT 0,
|
|
77
|
-
team_id TEXT,
|
|
78
|
-
team_name TEXT,
|
|
79
|
-
team_key TEXT,
|
|
80
|
-
cycle_id TEXT,
|
|
81
|
-
cycle_name TEXT,
|
|
82
|
-
cycle_number INTEGER,
|
|
83
|
-
updated_at TEXT NOT NULL,
|
|
84
|
-
pulled_at INTEGER NOT NULL
|
|
85
|
-
);
|
|
86
|
-
CREATE INDEX IF NOT EXISTS idx_linear_issues_updated
|
|
87
|
-
ON linear_issues (updated_at DESC, identifier ASC);
|
|
88
|
-
CREATE INDEX IF NOT EXISTS idx_linear_issues_cycle
|
|
89
|
-
ON linear_issues (cycle_id, updated_at DESC);
|
|
90
|
-
CREATE INDEX IF NOT EXISTS idx_linear_issues_assignee_me
|
|
91
|
-
ON linear_issues (is_assigned_to_me, updated_at DESC);
|
|
92
|
-
CREATE TABLE IF NOT EXISTS linear_issue_sync_state (
|
|
93
|
-
scope_key TEXT PRIMARY KEY,
|
|
94
|
-
last_pulled_at INTEGER NOT NULL,
|
|
95
|
-
issue_count INTEGER NOT NULL
|
|
96
|
-
);
|
|
97
|
-
`),e(s)}finally{s.close()}}async function f(e){let t=e.pulledAtMs??Date.now();return m(s=>{s.exec("BEGIN");try{let n=s.prepare(`
|
|
98
|
-
INSERT INTO linear_issues (
|
|
99
|
-
issue_id, identifier, title, description, url, status,
|
|
100
|
-
assignee_id, assignee_name, assignee_email, is_assigned_to_me,
|
|
101
|
-
team_id, team_name, team_key, cycle_id, cycle_name, cycle_number,
|
|
102
|
-
updated_at, pulled_at
|
|
103
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
104
|
-
ON CONFLICT(issue_id) DO UPDATE SET
|
|
105
|
-
identifier = excluded.identifier,
|
|
106
|
-
title = excluded.title,
|
|
107
|
-
description = excluded.description,
|
|
108
|
-
url = excluded.url,
|
|
109
|
-
status = excluded.status,
|
|
110
|
-
assignee_id = excluded.assignee_id,
|
|
111
|
-
assignee_name = excluded.assignee_name,
|
|
112
|
-
assignee_email = excluded.assignee_email,
|
|
113
|
-
is_assigned_to_me = excluded.is_assigned_to_me,
|
|
114
|
-
team_id = excluded.team_id,
|
|
115
|
-
team_name = excluded.team_name,
|
|
116
|
-
team_key = excluded.team_key,
|
|
117
|
-
cycle_id = excluded.cycle_id,
|
|
118
|
-
cycle_name = excluded.cycle_name,
|
|
119
|
-
cycle_number = excluded.cycle_number,
|
|
120
|
-
updated_at = excluded.updated_at,
|
|
121
|
-
pulled_at = excluded.pulled_at
|
|
122
|
-
`);for(let s of e.issues){var i;n.run(s.id.trim(),s.identifier.trim(),s.title.trim(),d(s.description??null),d(s.url??null),s.status.trim(),d(s.assigneeId??null),d(s.assignee??null),d(s.assigneeEmail??null),+!!s.isAssignedToMe,d(s.teamId??null),d(s.teamName??null),d(s.teamKey??null),d(s.cycleId??null),d(s.cycleName??null),(i=s.cycleNumber??null,"number"==typeof i&&Number.isFinite(i)?i:null),s.updatedAt.trim(),t)}if(e.complete)if(0===e.issues.length)s.exec("DELETE FROM linear_issues");else{let t=e.issues.map(()=>"?").join(", ");s.prepare(`DELETE FROM linear_issues WHERE issue_id NOT IN (${t})`).run(...e.issues.map(e=>e.id.trim()))}s.exec("COMMIT")}catch(e){throw s.exec("ROLLBACK"),e}})}async function g(e,t,s=Date.now()){let i=e.trim()||"global";return m(e=>{e.prepare(`
|
|
123
|
-
INSERT INTO linear_issue_sync_state (scope_key, last_pulled_at, issue_count)
|
|
124
|
-
VALUES (?, ?, ?)
|
|
125
|
-
ON CONFLICT(scope_key) DO UPDATE SET
|
|
126
|
-
last_pulled_at = excluded.last_pulled_at,
|
|
127
|
-
issue_count = excluded.issue_count
|
|
128
|
-
`).run(i,s,t)})}async function _(e="global"){let t=e.trim()||"global";return m(e=>{let s=e.prepare(`SELECT scope_key, last_pulled_at, issue_count
|
|
129
|
-
FROM linear_issue_sync_state
|
|
130
|
-
WHERE scope_key = ?
|
|
131
|
-
LIMIT 1`).get(t);return s?{scopeKey:s.scope_key,lastPulledAt:c(s.last_pulled_at),issueCount:s.issue_count}:null})}async function y(){return m(e=>{let t=e.prepare("SELECT COUNT(*) AS count FROM linear_issues").get();return t?.count??0})}async function E(e={}){let t=Number.isFinite(e.limit)?Math.min(Math.max(Number(e.limit),1),500):50,s=Number.isFinite(Number(e.cursor))?Math.max(Number(e.cursor),0):0;return m(i=>{let n=[],a=[],r=d(e.search??null);if(r){let e=`%${r.toLowerCase().replace(/[\\%_]/g,"\\$&")}%`;n.push("(LOWER(identifier) LIKE ? ESCAPE '\\' OR LOWER(title) LIKE ? ESCAPE '\\' OR LOWER(COALESCE(description, '')) LIKE ? ESCAPE '\\')"),a.push(e,e,e)}let l=d(e.status??null);l&&(n.push("LOWER(status) = ?"),a.push(l.toLowerCase()));let u=Array.from(new Set((e.assigneeIds??[]).map(e=>d(e)).filter(e=>!!e)));u.length>0&&(n.push(`assignee_id IN (${u.map(()=>"?").join(", ")})`),a.push(...u)),e.assignedToMe&&n.push("is_assigned_to_me = 1");let o=d(e.teamId??null);o&&(n.push("team_id = ?"),a.push(o));let c=d(e.cycleId??null);c&&(n.push("cycle_id = ?"),a.push(c));let m=n.length>0?`WHERE ${n.join(" AND ")}`:"",f=i.prepare(`SELECT *
|
|
132
|
-
FROM linear_issues
|
|
133
|
-
${m}
|
|
134
|
-
ORDER BY updated_at DESC, identifier ASC
|
|
135
|
-
LIMIT ? OFFSET ?`).all(...a,t+1,s),g=f.length>t,_=g?f.slice(0,t):f,y=g?String(s+t):null;return{issues:_.map(p),pageInfo:{hasNextPage:g,endCursor:y}}})}async function h(e){let t=Array.from(new Set(e.map(e=>e.trim()).filter(Boolean)));return 0===t.length?[]:m(e=>{let s=t.map(()=>"?").join(", "),i=new Map(e.prepare(`SELECT *
|
|
136
|
-
FROM linear_issues
|
|
137
|
-
WHERE issue_id IN (${s})`).all(...t).map(e=>[e.issue_id,p(e)]));return t.map(e=>i.get(e)).filter(e=>!!e)})}var T=e.i(492952);let x="global";function A(e){let t=String(e??"").trim().toLowerCase();return t?`project:${t}`:x}function N(e){t.default.mkdirSync(e,{recursive:!0})}function R(e,i){N(s.default.dirname(e));let n=`${e}.tmp-${process.pid}-${Date.now()}`;t.default.writeFileSync(n,i,"utf8"),t.default.renameSync(n,e)}function S(e){return{id:e.id,identifier:e.identifier,title:e.title,url:e.url,status:e.status,assignee:e.assignee,updatedAt:e.updatedAt}}function I(e){return{...S(e),description:e.description,assigneeId:e.assigneeId,assigneeEmail:e.assigneeEmail,isAssignedToMe:e.isAssignedToMe,teamId:e.teamId,teamName:e.teamName,teamKey:e.teamKey,cycleId:e.cycleId,cycleName:e.cycleName,cycleNumber:e.cycleNumber,pulledAt:e.pulledAt}}function w(e,t){return e.trim().replace(/[\\/]/g,"-")||t}async function L(e={}){let t,a=(0,n.getLinearClient)();if(!a)throw Error("Not connected");let r=await a.viewer,l=Date.now(),u=new Date(l).toISOString(),o=0,d=!0,c=[];for(;o<500;){let e=500-o,s=await a.issues({first:Math.min(100,e),after:t,orderBy:"updatedAt"}),i=await Promise.all(s.nodes.map(async e=>{let[t,s,i,n]=await Promise.all([e.state,e.assignee,e.team,e.cycle]);return{id:e.id,identifier:e.identifier,title:e.title,description:e.description??null,url:e.url,status:t?.name??"Unknown",assigneeId:s?.id??null,assignee:s?.name??null,assigneeEmail:s?.email??null,isAssignedToMe:!!(s?.id&&s.id===r.id),teamId:i?.id??null,teamName:i?.name??null,teamKey:i?.key??null,cycleId:n?.id??null,cycleName:n?.name??null,cycleNumber:n?.number??null,updatedAt:e.updatedAt}}));if(c.push(...i),o+=i.length,!s.pageInfo.hasNextPage||!s.pageInfo.endCursor)break;if(o>=500){d=!1;break}t=s.pageInfo.endCursor}await f({issues:c,complete:d,pulledAtMs:l}),await g(x,c.length,l);let p=A(e.projectSlug);return p!==x&&await g(p,c.length,l),!function(e,t,n){let a=function(e){let t=T.vaultStore.getRootDir(),i=String(e??"").trim();if(i){let e=T.vaultStore.getProjectWithRepos(i),n=e?.slug??i;return s.default.join(t,n,"issues")}return s.default.join(t,"_global","Linear","issues")}(n);N(a);let r=["# Linear Issues","",`Last pulled: ${t}`,""];for(let n of e){let e=s.default.join(a,w(n.identifier,n.id));!function(e,t,s){let n=(0,i.dump)(t,{lineWidth:120,noRefs:!0,sortKeys:!0}).trimEnd(),a=String(s||"").replace(/\r\n/g,"\n").split("\n").map(e=>e.replace(/\s+$/g,"")).join("\n").trim();R(e,a?`---
|
|
138
|
-
${n}
|
|
139
|
-
---
|
|
140
|
-
${a}
|
|
141
|
-
`:`---
|
|
142
|
-
${n}
|
|
143
|
-
---
|
|
144
|
-
`)}(s.default.join(e,"README.md"),{type:"linear-issue",issue_id:n.id,identifier:n.identifier,title:n.title,status:n.status,assignee_id:n.assigneeId??null,assignee_name:n.assignee??null,assignee_email:n.assigneeEmail??null,team_id:n.teamId??null,team_name:n.teamName??null,team_key:n.teamKey??null,cycle_id:n.cycleId??null,cycle_name:n.cycleName??null,cycle_number:n.cycleNumber??null,url:n.url??null,updated_at:n.updatedAt,pulled_at:t},[`# ${n.identifier}: ${n.title}`,"",`- Status: ${n.status}`,`- Assignee: ${n.assignee??"Unassigned"}`,n.teamName?`- Team: ${n.teamName}`:null,n.cycleName||null!=n.cycleNumber?`- Cycle: ${n.cycleName??`Cycle ${n.cycleNumber}`}`:null,`- Updated in Linear: ${n.updatedAt}`,`- Pulled locally: ${t}`,n.url?`- URL: ${n.url}`:null,"","## Description","",n.description?.trim()||"_No description provided._"].filter(e=>null!==e).join("\n")),r.push(`- [${n.identifier}](${encodeURIComponent(w(n.identifier,n.id))}/README.md) - ${n.title} (${n.status})`)}R(s.default.join(a,"_index.md"),`${r.join("\n")}
|
|
145
|
-
`)}(c,u,e.projectSlug),{issueCount:c.length,complete:d,pulledAt:u}}async function v(e={}){let t=!!e.refresh,s=A(e.projectSlug);if(!t){let[e,t]=await Promise.all([y(),_(s)]);if(e>0&&t)return null}return(0,n.getLinearClient)()?L({projectSlug:e.projectSlug}):null}async function C(e={}){let[t,s]=await Promise.all([E(e),_(x)]);return{issues:t.issues.map(S),pageInfo:t.pageInfo,syncState:{lastPulledAt:s?.lastPulledAt??null}}}async function b(e){return(await h(e)).map(I)}e.s(["ensureLinearIssueCache",()=>v,"getLinearIssueContexts",()=>b,"listLinearIssueSummaries",()=>C],832674)},107194,e=>{"use strict";var t=e.i(747909),s=e.i(174017),i=e.i(996250),n=e.i(759756),a=e.i(561916),r=e.i(174677),l=e.i(869741),u=e.i(316795),o=e.i(487718),d=e.i(995169),c=e.i(47587),p=e.i(666012),m=e.i(570101),f=e.i(626937),g=e.i(10372),_=e.i(193695);e.i(52474);var y=e.i(600220),E=e.i(89171),h=e.i(832674),T=e.i(841897);function x(e){return e?.trim()||void 0}async function A(e){let t=e.nextUrl.searchParams,s=x(t.get("status")),i=x(t.get("search")),n=x(t.get("teamId")),a=Array.from(new Set(t.getAll("assigneeId").map(e=>e.trim()).filter(Boolean))),r=x(t.get("cursor")),l=x(t.get("cycleId")),u=x(t.get("projectSlug")),o="true"===t.get("assignedToMe"),d="true"===t.get("refresh"),c=Number(t.get("limit")??"50");try{let e=await (0,h.ensureLinearIssueCache)({refresh:d,projectSlug:u}),t=await (0,h.listLinearIssueSummaries)({status:s,search:i,assigneeIds:a,assignedToMe:o,teamId:n,cycleId:l,cursor:r,limit:c});if(!t.syncState.lastPulledAt&&!e&&!(0,T.getLinearClient)())return E.NextResponse.json({error:"Not connected"},{status:401});return E.NextResponse.json({issues:t.issues,pageInfo:t.pageInfo,syncState:t.syncState,refreshedAt:e?.pulledAt??null})}catch(e){return E.NextResponse.json({error:e.message??"Failed to fetch issues"},{status:500})}}e.s(["GET",()=>A,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],159699);var N=e.i(159699);let R=new t.AppRouteRouteModule({definition:{kind:s.RouteKind.APP_ROUTE,page:"/api/linear/issues/route",pathname:"/api/linear/issues",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/linear/issues/route.ts",nextConfigOutput:"standalone",userland:N}),{workAsyncStorage:S,workUnitAsyncStorage:I,serverHooks:w}=R;function L(){return(0,i.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:I})}async function v(e,t,i){R.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/linear/issues/route";E=E.replace(/\/index$/,"")||"/";let h=await R.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!h)return t.statusCode=400,t.end("Bad Request"),null==i.waitUntil||i.waitUntil.call(i,Promise.resolve()),null;let{buildId:T,params:x,nextConfig:A,parsedUrl:N,isDraftMode:S,prerenderManifest:I,routerServerContext:w,isOnDemandRevalidate:L,revalidateOnlyGenerated:v,resolvedPathname:C,clientReferenceManifest:b,serverActionsManifest:O}=h,$=(0,l.normalizeAppPath)(E),j=!!(I.dynamicRoutes[$]||I.routes[C]),k=async()=>((null==w?void 0:w.render404)?await w.render404(e,t,N,!1):t.end("This page could not be found"),null);if(j&&!S){let e=!!I.routes[C],t=I.dynamicRoutes[$];if(t&&!1===t.fallback&&!e){if(A.experimental.adapterPath)return await k();throw new _.NoFallbackError}}let q=null;!j||R.isDev||S||(q="/index"===(q=C)?"/":q);let D=!0===R.isDev||!j,P=j&&!D;O&&b&&(0,r.setManifestsSingleton)({page:E,clientReferenceManifest:b,serverActionsManifest:O});let M=e.method||"GET",U=(0,a.getTracer)(),F=U.getActiveScopeSpan(),X={params:x,prerenderManifest:I,renderOpts:{experimental:{authInterrupts:!!A.experimental.authInterrupts},cacheComponents:!!A.cacheComponents,supportsDynamicResponse:D,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:A.cacheLife,waitUntil:i.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,s,i,n)=>R.onRequestError(e,t,i,n,w)},sharedContext:{buildId:T}},B=new u.NodeNextRequest(e),G=new u.NodeNextResponse(t),K=o.NextRequestAdapter.fromNodeNextRequest(B,(0,o.signalFromNodeResponse)(t));try{let r=async e=>R.handle(K,X).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let s=U.getRootSpanAttributes();if(!s)return;if(s.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${s.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let i=s.get("next.route");if(i){let t=`${M} ${i}`;e.setAttributes({"next.route":i,"http.route":i,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${E}`)}),l=!!(0,n.getRequestMeta)(e,"minimalMode"),u=async n=>{var a,u;let o=async({previousCacheEntry:s})=>{try{if(!l&&L&&v&&!s)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await r(n);e.fetchMetrics=X.renderOpts.fetchMetrics;let u=X.renderOpts.pendingWaitUntil;u&&i.waitUntil&&(i.waitUntil(u),u=void 0);let o=X.renderOpts.collectedTags;if(!j)return await (0,p.sendResponse)(B,G,a,X.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(a.headers);o&&(t[g.NEXT_CACHE_TAGS_HEADER]=o),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let s=void 0!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,i=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:X.renderOpts.collectedExpire;return{value:{kind:y.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:s,expire:i}}}}catch(t){throw(null==s?void 0:s.isStale)&&await R.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:P,isOnDemandRevalidate:L})},!1,w),t}},d=await R.handleResponse({req:e,nextConfig:A,cacheKey:q,routeKind:s.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:I,isRoutePPREnabled:!1,isOnDemandRevalidate:L,revalidateOnlyGenerated:v,responseGenerator:o,waitUntil:i.waitUntil,isMinimalMode:l});if(!j)return null;if((null==d||null==(a=d.value)?void 0:a.kind)!==y.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(u=d.value)?void 0:u.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",L?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),S&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let _=(0,m.fromNodeOutgoingHttpHeaders)(d.value.headers);return l&&j||_.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||_.get("Cache-Control")||_.set("Cache-Control",(0,f.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(B,G,new Response(d.value.body,{headers:_,status:d.value.status||200})),null};F?await u(F):await U.withPropagatedContext(e.headers,()=>U.trace(d.BaseServerSpan.handleRequest,{spanName:`${M} ${E}`,kind:a.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},u))}catch(t){if(t instanceof _.NoFallbackError||await R.onRequestError(e,t,{routerKind:"App Router",routePath:$,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:P,isOnDemandRevalidate:L})},!1,w),j)throw t;return await (0,p.sendResponse)(B,G,new Response(null,{status:500})),null}}e.s(["handler",()=>v,"patchFetch",()=>L,"routeModule",()=>R,"serverHooks",()=>w,"workAsyncStorage",()=>S,"workUnitAsyncStorage",()=>I],107194)}];
|
|
146
|
-
|
|
147
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__3b83b657._.js.map
|