@mndrk/agx 2.0.44 → 2.0.46
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 +2 -0
- package/cloud-runtime/standalone/.next/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/prerender-manifest.json +3 -3
- package/cloud-runtime/standalone/.next/routes-manifest.json +13 -1
- 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_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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +2 -2
- 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 +1 -1
- 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 +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 +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 +1 -1
- 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 +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/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/issues/context/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js +10 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route.js +5 -2
- 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/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js +7 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/options/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/linear/status/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 +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 +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 +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 +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 +4 -4
- 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 +4 -4
- package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js +4 -4
- 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 +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/status/route.js +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 +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 +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 +3 -3
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations.rsc +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_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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +2 -2
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/index.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +4 -4
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/react-loadable-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page_client-reference-manifest.js +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 +3 -3
- 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_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_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_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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +2 -2
- 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 +1 -1
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +3 -3
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page.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_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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +2 -2
- 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 +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app-paths-manifest.json +2 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[externals]__29a2424c._.js → [externals]__31e26905._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__fb1f7e58._.js → [root-of-the-server]__00fd30c8._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e4f01b5c._.js → [root-of-the-server]__0e98af48._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1154e5b3._.js +67 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__44ef900b._.js → [root-of-the-server]__11c1214e._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5e5eb809._.js → [root-of-the-server]__152b2000._.js} +10 -10
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__f21849ad._.js → [root-of-the-server]__15f3bb96._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__7cade6c6._.js → [root-of-the-server]__1f53e82e._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c77efd85._.js → [root-of-the-server]__20533a2c._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e0994be2._.js → [root-of-the-server]__3b1431b6._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3b83b657._.js +147 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__d3945cae._.js → [root-of-the-server]__3bf516b6._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__2d15af44._.js → [root-of-the-server]__3fd3c5b1._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__13fe776f._.js → [root-of-the-server]__42e713f5._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__1be9b30e._.js → [root-of-the-server]__4b0b5fe1._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__558389f7._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5a042505._.js → [root-of-the-server]__5aaf8c25._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__22b7bf38._.js → [root-of-the-server]__5b13e7a5._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__34efe92e._.js → [root-of-the-server]__635fe0f9._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c9550a93._.js → [root-of-the-server]__68da2825._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e5bad635._.js → [root-of-the-server]__6921fe3f._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__dc542063._.js → [root-of-the-server]__6988985c._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c5025f86._.js → [root-of-the-server]__7012e83d._.js} +7 -7
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__9d3a2caa._.js → [root-of-the-server]__70327010._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__748c718f._.js +147 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__76290829._.js +46 -8
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c0919d7d._.js → [root-of-the-server]__79fa35e4._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ac9b93fd._.js → [root-of-the-server]__8d205f82._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__0281ad06._.js → [root-of-the-server]__9ffa67b7._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__dd1cb250._.js → [root-of-the-server]__a300f072._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5fbc700c._.js → [root-of-the-server]__a7e0ac67._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__91b51f33._.js → [root-of-the-server]__aad349b4._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ad6d6402._.js +46 -8
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__349d67e7._.js → [root-of-the-server]__b133856b._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__45a50de9._.js → [root-of-the-server]__c029daab._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__a1e62918._.js → [root-of-the-server]__c8195768._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ce2a1672._.js +67 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__a2e17f69._.js → [root-of-the-server]__d4f42f49._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d9f2041b._.js +47 -9
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ad4cb055._.js → [root-of-the-server]__dca6026a._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__bacb0193._.js → [root-of-the-server]__ddb3aa76._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__de295ef3._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__7d4fa0fd._.js → [root-of-the-server]__e7be56ba._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__73b17f49._.js → [root-of-the-server]__ebece93b._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ef27f8cd._.js +49 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__56dbe1a4._.js → [root-of-the-server]__f13c29c6._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__98d58423._.js → [root-of-the-server]__fcdaf6d8._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/_6e7f0ae4._.js +6 -0
- package/cloud-runtime/standalone/.next/server/chunks/_a93e80e8._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_issues_context_route_actions_0b2c282c.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_options_route_actions_29764947.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_app-config_ts_7f2f30ad._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__1c4256ce._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__4c9d0778._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__69887882._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__f59f0dc7._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_95434d70._.js → _1d26be78._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_32c878b9._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_60d0bae4._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_77e1407a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_7f7a828a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_ba5903a7._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_ed4fece9._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_f51a3112._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_projects_[slug]_linear_page_tsx_971a6ba7._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/components_chat-ui_bfeda794._.js +7 -3
- package/cloud-runtime/standalone/.next/server/functions-config-manifest.json +2 -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/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/02add5a8d35c53fe.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2362d5c0dcaa5d64.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2730394502dd3664.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/37f07896b044d69f.css +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/3dc50de1c86e1ce9.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/4ea8f08087116055.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/5607ad702ebb8a4b.js +9 -0
- package/cloud-runtime/standalone/.next/static/chunks/6103b9b5538bba4d.css +2 -0
- package/cloud-runtime/standalone/.next/static/chunks/98c20da4973991f0.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/a9da98f883ac833b.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/{da12f313213a5615.js → b2127dc67c5ade9f.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/{76229fb555232113.js → b3377e39d47c71cf.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/bf2a2fafb710e63c.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/c0d17e0c37ba8e7a.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/cca7c8e4ade050f0.js +37 -0
- package/cloud-runtime/standalone/.next/static/chunks/db131a0b6350e416.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/e51fddf53a6dc1e4.js +9 -0
- package/cloud-runtime/standalone/.next/static/chunks/{66769c2bf128027d.js → f4360c3e4089263f.js} +1 -1
- package/cloud-runtime/standalone/Dockerfile +5 -5
- package/cloud-runtime/standalone/app/api/linear/callback/route.ts +2 -1
- package/cloud-runtime/standalone/app/api/linear/issues/context/route.ts +26 -0
- package/cloud-runtime/standalone/app/api/linear/issues/route.ts +44 -42
- package/cloud-runtime/standalone/app/api/linear/options/route.ts +31 -0
- package/cloud-runtime/standalone/app/api/status/route.ts +2 -2
- package/cloud-runtime/standalone/components/LinearBoard.tsx +411 -117
- package/cloud-runtime/standalone/components/chat-ui/ChatContainer.tsx +3 -1
- package/cloud-runtime/standalone/components/chat-ui/Composer.tsx +54 -2
- package/cloud-runtime/standalone/components/chat-ui/MentionPopover.tsx +43 -2
- package/cloud-runtime/standalone/hooks/useLinearIssueMentions.ts +64 -0
- package/cloud-runtime/standalone/hooks/useLinearIssues.ts +30 -6
- package/cloud-runtime/standalone/hooks/useMentionAutocomplete.ts +54 -6
- package/cloud-runtime/standalone/instrumentation.ts +2 -1
- package/cloud-runtime/standalone/lib/app-config.ts +55 -0
- package/cloud-runtime/standalone/lib/chat/linear-issue-context.ts +79 -0
- package/cloud-runtime/standalone/lib/linear-client.ts +166 -15
- package/cloud-runtime/standalone/lib/linear-issue-store.ts +433 -0
- package/cloud-runtime/standalone/lib/linear-issues.ts +360 -0
- package/cloud-runtime/standalone/lib/security.ts +2 -2
- package/cloud-runtime/standalone/lib/tiptap/composer-mentions.ts +38 -0
- package/cloud-runtime/standalone/lib/tiptap/editor-utils.ts +11 -0
- package/cloud-runtime/standalone/lib/tiptap/serialize-composer.ts +10 -0
- package/cloud-runtime/standalone/next.config.ts +2 -1
- package/cloud-runtime/standalone/src/graph/internal-function-dispatcher.ts +2 -5
- package/cloud-runtime/standalone/state/automations/.state/24a6a5db-3b14-49c4-841f-29f10f015fbb.json +3 -3
- package/cloud-runtime/standalone/styles/composer-pills.css +13 -0
- package/package.json +1 -1
- package/cloud-runtime/standalone/.linear-token.json +0 -4
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__05243927._.js +0 -29
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1017e012._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__28524c6a._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c1b28690._.js +0 -49
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dffa5183._.js +0 -29
- package/cloud-runtime/standalone/.next/server/chunks/_110bf46e._.js +0 -6
- package/cloud-runtime/standalone/.next/server/chunks/_22fe5fd2._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__35f9b4a6._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__43a0398d._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__7e7d6790._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__b6598a70._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_087a5b2b._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_1e5aee62._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_45f91a8f._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_fb404ac0._.js +0 -3
- package/cloud-runtime/standalone/.next/static/chunks/0010f3df27ae53b8.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/09c637be82a06122.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/0fe219bd73492107.js +0 -5
- package/cloud-runtime/standalone/.next/static/chunks/2dbfd095c1e1d01f.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/360fde144fd22461.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/416cf5039e669b5d.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/95b85b1cb6868d27.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/966278eaefc0aa32.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/ab74849aeb87503e.js +0 -5
- package/cloud-runtime/standalone/.next/static/chunks/c5661b1d4c5abd6a.css +0 -2
- package/cloud-runtime/standalone/.next/static/chunks/d522224ad5c8d724.css +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/e2fa3c18dd56dc25.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/e910386016ceacad.js +0 -37
- package/cloud-runtime/standalone/.next/static/chunks/f2fe77583374541b.js +0 -1
- package/cloud-runtime/standalone/coverage/clover.xml +0 -1208
- package/cloud-runtime/standalone/coverage/coverage-final.json +0 -29
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/audit/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/audit/route.ts.html +0 -208
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/[...nextauth]/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/[...nextauth]/route.ts.html +0 -166
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/daemon-secret/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/daemon-secret/route.ts.html +0 -532
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/status/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/status/route.ts.html +0 -178
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/learnings/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/learnings/route.ts.html +0 -262
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/logs/stream/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/logs/stream/route.ts.html +0 -448
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/complete/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/complete/route.ts.html +0 -331
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/route.ts.html +0 -505
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/stage-prompts/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/stage-prompts/route.ts.html +0 -412
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/advance/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/advance/route.ts.html +0 -304
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/logs/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/logs/route.ts.html +0 -202
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/route.ts.html +0 -373
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/route.ts.html +0 -499
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/stream/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/stream/route.ts.html +0 -349
- package/cloud-runtime/standalone/coverage/lcov-report/base.css +0 -224
- package/cloud-runtime/standalone/coverage/lcov-report/block-navigation.js +0 -87
- package/cloud-runtime/standalone/coverage/lcov-report/components/AuthProvider.tsx.html +0 -259
- package/cloud-runtime/standalone/coverage/lcov-report/components/ChatInterface.tsx.html +0 -1228
- package/cloud-runtime/standalone/coverage/lcov-report/components/KanbanBoard.tsx.html +0 -1024
- package/cloud-runtime/standalone/coverage/lcov-report/components/Layout.tsx.html +0 -211
- package/cloud-runtime/standalone/coverage/lcov-report/components/LearningsPanel.tsx.html +0 -535
- package/cloud-runtime/standalone/coverage/lcov-report/components/LogTimeline.tsx.html +0 -415
- package/cloud-runtime/standalone/coverage/lcov-report/components/SortableTaskCard.tsx.html +0 -358
- package/cloud-runtime/standalone/coverage/lcov-report/components/StagePills.tsx.html +0 -439
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskCard.tsx.html +0 -514
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskCardOverlay.tsx.html +0 -256
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskDetail.tsx.html +0 -622
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskList.tsx.html +0 -253
- package/cloud-runtime/standalone/coverage/lcov-report/components/index.html +0 -281
- package/cloud-runtime/standalone/coverage/lcov-report/favicon.png +0 -0
- package/cloud-runtime/standalone/coverage/lcov-report/hooks/index.html +0 -116
- package/cloud-runtime/standalone/coverage/lcov-report/hooks/useTasks.ts.html +0 -1042
- package/cloud-runtime/standalone/coverage/lcov-report/index.html +0 -341
- package/cloud-runtime/standalone/coverage/lcov-report/lib/auth-client.ts.html +0 -202
- package/cloud-runtime/standalone/coverage/lcov-report/lib/auth-server.ts.html +0 -172
- package/cloud-runtime/standalone/coverage/lcov-report/lib/auth.ts.html +0 -265
- package/cloud-runtime/standalone/coverage/lcov-report/lib/db.ts.html +0 -1252
- package/cloud-runtime/standalone/coverage/lcov-report/lib/index.html +0 -131
- package/cloud-runtime/standalone/coverage/lcov-report/lib/orchestrator.ts.html +0 -409
- package/cloud-runtime/standalone/coverage/lcov-report/lib/security.ts.html +0 -1165
- package/cloud-runtime/standalone/coverage/lcov-report/lib/supabase-server.ts.html +0 -175
- package/cloud-runtime/standalone/coverage/lcov-report/lib/supabase.ts.html +0 -157
- package/cloud-runtime/standalone/coverage/lcov-report/prettify.css +0 -1
- package/cloud-runtime/standalone/coverage/lcov-report/prettify.js +0 -2
- package/cloud-runtime/standalone/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/cloud-runtime/standalone/coverage/lcov-report/sorter.js +0 -210
- package/cloud-runtime/standalone/coverage/lcov.info +0 -2386
- /package/cloud-runtime/standalone/.next/static/{1ixi4WIJBgIPp7LJeYeKs → 1Q0q2lXllTpqCvmNQYtpD}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/.next/static/{1ixi4WIJBgIPp7LJeYeKs → 1Q0q2lXllTpqCvmNQYtpD}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/.next/static/{1ixi4WIJBgIPp7LJeYeKs → 1Q0q2lXllTpqCvmNQYtpD}/_ssgManifest.js +0 -0
|
@@ -21,26 +21,64 @@ interface LinearGraphQLResponse<TData> {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
interface LinearViewer {
|
|
24
|
+
id: string;
|
|
24
25
|
name: string;
|
|
25
26
|
email: string;
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
export interface LinearUser {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface RawLinearUserNode {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface LinearTeam {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface RawLinearTeamNode {
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
28
49
|
interface LinearIssueState {
|
|
29
50
|
name: string;
|
|
30
51
|
}
|
|
31
52
|
|
|
32
53
|
interface LinearIssueAssignee {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
email: string | null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface LinearIssueTeam {
|
|
60
|
+
id: string;
|
|
33
61
|
name: string;
|
|
62
|
+
key: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface LinearIssueCycle {
|
|
66
|
+
id: string;
|
|
67
|
+
number: number;
|
|
68
|
+
name: string | null;
|
|
34
69
|
}
|
|
35
70
|
|
|
36
71
|
interface RawLinearIssueNode {
|
|
37
72
|
id: string;
|
|
38
73
|
identifier: string;
|
|
39
74
|
title: string;
|
|
75
|
+
description: string | null;
|
|
40
76
|
url: string | null;
|
|
41
77
|
updatedAt: string;
|
|
42
78
|
state: LinearIssueState | null;
|
|
43
79
|
assignee: LinearIssueAssignee | null;
|
|
80
|
+
team: LinearIssueTeam | null;
|
|
81
|
+
cycle: LinearIssueCycle | null;
|
|
44
82
|
}
|
|
45
83
|
|
|
46
84
|
type LinearIssueFilter = Record<string, unknown>;
|
|
@@ -49,10 +87,13 @@ export interface LinearIssueNode {
|
|
|
49
87
|
id: string;
|
|
50
88
|
identifier: string;
|
|
51
89
|
title: string;
|
|
90
|
+
description: string | null;
|
|
52
91
|
url: string | null;
|
|
53
92
|
updatedAt: string;
|
|
54
93
|
state: Promise<LinearIssueState | null>;
|
|
55
94
|
assignee: Promise<LinearIssueAssignee | null>;
|
|
95
|
+
team: Promise<LinearIssueTeam | null>;
|
|
96
|
+
cycle: Promise<LinearIssueCycle | null>;
|
|
56
97
|
}
|
|
57
98
|
|
|
58
99
|
export interface LinearCycle {
|
|
@@ -61,6 +102,8 @@ export interface LinearCycle {
|
|
|
61
102
|
name: string | null;
|
|
62
103
|
startsAt: string;
|
|
63
104
|
endsAt: string;
|
|
105
|
+
teamId: string | null;
|
|
106
|
+
teamName: string | null;
|
|
64
107
|
}
|
|
65
108
|
|
|
66
109
|
interface RawLinearCycleNode {
|
|
@@ -69,6 +112,10 @@ interface RawLinearCycleNode {
|
|
|
69
112
|
name: string | null;
|
|
70
113
|
startsAt: string;
|
|
71
114
|
endsAt: string;
|
|
115
|
+
team: {
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
} | null;
|
|
72
119
|
}
|
|
73
120
|
|
|
74
121
|
interface LinearIssueConnection {
|
|
@@ -159,10 +206,60 @@ export class LinearClient {
|
|
|
159
206
|
|
|
160
207
|
get viewer(): Promise<LinearViewer> {
|
|
161
208
|
return this.request<{ viewer: LinearViewer }>(
|
|
162
|
-
`query { viewer { name email } }`,
|
|
209
|
+
`query { viewer { id name email } }`,
|
|
163
210
|
).then((data) => data.viewer);
|
|
164
211
|
}
|
|
165
212
|
|
|
213
|
+
async users(): Promise<LinearUser[]> {
|
|
214
|
+
const data = await this.request<{
|
|
215
|
+
users: {
|
|
216
|
+
nodes: RawLinearUserNode[];
|
|
217
|
+
};
|
|
218
|
+
}>(
|
|
219
|
+
`query {
|
|
220
|
+
users(first: 100) {
|
|
221
|
+
nodes {
|
|
222
|
+
id
|
|
223
|
+
name
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}`,
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
return data.users.nodes
|
|
230
|
+
.filter((user) => user.name.trim().length > 0)
|
|
231
|
+
.map((user) => ({
|
|
232
|
+
id: user.id,
|
|
233
|
+
name: user.name,
|
|
234
|
+
}))
|
|
235
|
+
.sort((left, right) => left.name.localeCompare(right.name));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
async teams(): Promise<LinearTeam[]> {
|
|
239
|
+
const data = await this.request<{
|
|
240
|
+
teams: {
|
|
241
|
+
nodes: RawLinearTeamNode[];
|
|
242
|
+
};
|
|
243
|
+
}>(
|
|
244
|
+
`query {
|
|
245
|
+
teams(first: 50) {
|
|
246
|
+
nodes {
|
|
247
|
+
id
|
|
248
|
+
name
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}`,
|
|
252
|
+
);
|
|
253
|
+
|
|
254
|
+
return data.teams.nodes
|
|
255
|
+
.filter((team) => team.name.trim().length > 0)
|
|
256
|
+
.map((team) => ({
|
|
257
|
+
id: team.id,
|
|
258
|
+
name: team.name,
|
|
259
|
+
}))
|
|
260
|
+
.sort((left, right) => left.name.localeCompare(right.name));
|
|
261
|
+
}
|
|
262
|
+
|
|
166
263
|
async issues(params: {
|
|
167
264
|
first: number;
|
|
168
265
|
after?: string;
|
|
@@ -185,10 +282,13 @@ export class LinearClient {
|
|
|
185
282
|
id
|
|
186
283
|
identifier
|
|
187
284
|
title
|
|
285
|
+
description
|
|
188
286
|
url
|
|
189
287
|
updatedAt
|
|
190
288
|
state { name }
|
|
191
|
-
assignee { name }
|
|
289
|
+
assignee { id name email }
|
|
290
|
+
team { id name key }
|
|
291
|
+
cycle { id number name }
|
|
192
292
|
}
|
|
193
293
|
pageInfo {
|
|
194
294
|
hasNextPage
|
|
@@ -203,10 +303,13 @@ export class LinearClient {
|
|
|
203
303
|
id: issue.id,
|
|
204
304
|
identifier: issue.identifier,
|
|
205
305
|
title: issue.title,
|
|
306
|
+
description: issue.description,
|
|
206
307
|
url: issue.url,
|
|
207
308
|
updatedAt: issue.updatedAt,
|
|
208
309
|
state: Promise.resolve(issue.state),
|
|
209
310
|
assignee: Promise.resolve(issue.assignee),
|
|
311
|
+
team: Promise.resolve(issue.team),
|
|
312
|
+
cycle: Promise.resolve(issue.cycle),
|
|
210
313
|
})),
|
|
211
314
|
pageInfo: data.issues.pageInfo,
|
|
212
315
|
};
|
|
@@ -214,30 +317,78 @@ export class LinearClient {
|
|
|
214
317
|
|
|
215
318
|
async cycles(): Promise<LinearCycle[]> {
|
|
216
319
|
const data = await this.request<{
|
|
217
|
-
|
|
218
|
-
nodes:
|
|
320
|
+
teams: {
|
|
321
|
+
nodes: Array<{
|
|
322
|
+
id: string;
|
|
323
|
+
name: string;
|
|
324
|
+
activeCycle: RawLinearCycleNode | null;
|
|
325
|
+
cycles: {
|
|
326
|
+
nodes: RawLinearCycleNode[];
|
|
327
|
+
};
|
|
328
|
+
}>;
|
|
219
329
|
};
|
|
220
330
|
}>(
|
|
221
331
|
`query {
|
|
222
|
-
|
|
332
|
+
teams(first: 50) {
|
|
223
333
|
nodes {
|
|
224
334
|
id
|
|
225
|
-
number
|
|
226
335
|
name
|
|
227
|
-
|
|
228
|
-
|
|
336
|
+
activeCycle {
|
|
337
|
+
id
|
|
338
|
+
number
|
|
339
|
+
name
|
|
340
|
+
startsAt
|
|
341
|
+
endsAt
|
|
342
|
+
team {
|
|
343
|
+
id
|
|
344
|
+
name
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
cycles(first: 20) {
|
|
348
|
+
nodes {
|
|
349
|
+
id
|
|
350
|
+
number
|
|
351
|
+
name
|
|
352
|
+
startsAt
|
|
353
|
+
endsAt
|
|
354
|
+
team {
|
|
355
|
+
id
|
|
356
|
+
name
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
229
360
|
}
|
|
230
361
|
}
|
|
231
362
|
}`,
|
|
232
363
|
);
|
|
233
364
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
365
|
+
const deduped = new Map<string, LinearCycle>();
|
|
366
|
+
for (const team of data.teams.nodes) {
|
|
367
|
+
const cycleNodes = [
|
|
368
|
+
...(team.activeCycle ? [team.activeCycle] : []),
|
|
369
|
+
...team.cycles.nodes,
|
|
370
|
+
];
|
|
371
|
+
|
|
372
|
+
for (const cycle of cycleNodes) {
|
|
373
|
+
if (deduped.has(cycle.id)) {
|
|
374
|
+
continue;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
deduped.set(cycle.id, {
|
|
378
|
+
id: cycle.id,
|
|
379
|
+
number: cycle.number,
|
|
380
|
+
name: cycle.name,
|
|
381
|
+
startsAt: cycle.startsAt,
|
|
382
|
+
endsAt: cycle.endsAt,
|
|
383
|
+
teamId: cycle.team?.id ?? team.id,
|
|
384
|
+
teamName: cycle.team?.name ?? team.name,
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
return [...deduped.values()].sort(
|
|
390
|
+
(left, right) => new Date(right.startsAt).getTime() - new Date(left.startsAt).getTime()
|
|
391
|
+
);
|
|
241
392
|
}
|
|
242
393
|
|
|
243
394
|
private async request<TData>(query: string): Promise<TData> {
|
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
|
|
3
|
+
import { DatabaseSync } from "node:sqlite";
|
|
4
|
+
import { promises as fs } from "node:fs";
|
|
5
|
+
import os from "node:os";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import { pragmaSet } from "./sqlite-compat";
|
|
8
|
+
|
|
9
|
+
const LINEAR_DIR =
|
|
10
|
+
process.env.AGX_LINEAR_DIR?.trim() ||
|
|
11
|
+
path.join(process.env.AGX_DATA_DIR || path.join(os.homedir(), ".agx"), "linear");
|
|
12
|
+
const DB_PATH = path.join(LINEAR_DIR, "issues.sqlite");
|
|
13
|
+
|
|
14
|
+
interface LinearIssueRow {
|
|
15
|
+
issue_id: string;
|
|
16
|
+
identifier: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description: string | null;
|
|
19
|
+
url: string | null;
|
|
20
|
+
status: string;
|
|
21
|
+
assignee_id: string | null;
|
|
22
|
+
assignee_name: string | null;
|
|
23
|
+
assignee_email: string | null;
|
|
24
|
+
is_assigned_to_me: number;
|
|
25
|
+
team_id: string | null;
|
|
26
|
+
team_name: string | null;
|
|
27
|
+
team_key: string | null;
|
|
28
|
+
cycle_id: string | null;
|
|
29
|
+
cycle_name: string | null;
|
|
30
|
+
cycle_number: number | null;
|
|
31
|
+
updated_at: string;
|
|
32
|
+
pulled_at: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface LinearIssueSyncStateRow {
|
|
36
|
+
scope_key: string;
|
|
37
|
+
last_pulled_at: number;
|
|
38
|
+
issue_count: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface CachedLinearIssueRecord {
|
|
42
|
+
id: string;
|
|
43
|
+
identifier: string;
|
|
44
|
+
title: string;
|
|
45
|
+
description: string | null;
|
|
46
|
+
url: string | null;
|
|
47
|
+
status: string;
|
|
48
|
+
assigneeId: string | null;
|
|
49
|
+
assignee: string | null;
|
|
50
|
+
assigneeEmail: string | null;
|
|
51
|
+
isAssignedToMe: boolean;
|
|
52
|
+
teamId: string | null;
|
|
53
|
+
teamName: string | null;
|
|
54
|
+
teamKey: string | null;
|
|
55
|
+
cycleId: string | null;
|
|
56
|
+
cycleName: string | null;
|
|
57
|
+
cycleNumber: number | null;
|
|
58
|
+
updatedAt: string;
|
|
59
|
+
pulledAt: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface CachedLinearIssueInput {
|
|
63
|
+
id: string;
|
|
64
|
+
identifier: string;
|
|
65
|
+
title: string;
|
|
66
|
+
description?: string | null;
|
|
67
|
+
url?: string | null;
|
|
68
|
+
status: string;
|
|
69
|
+
assigneeId?: string | null;
|
|
70
|
+
assignee?: string | null;
|
|
71
|
+
assigneeEmail?: string | null;
|
|
72
|
+
isAssignedToMe?: boolean;
|
|
73
|
+
teamId?: string | null;
|
|
74
|
+
teamName?: string | null;
|
|
75
|
+
teamKey?: string | null;
|
|
76
|
+
cycleId?: string | null;
|
|
77
|
+
cycleName?: string | null;
|
|
78
|
+
cycleNumber?: number | null;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface LinearIssueSyncState {
|
|
83
|
+
scopeKey: string;
|
|
84
|
+
lastPulledAt: string;
|
|
85
|
+
issueCount: number;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface ListCachedLinearIssuesInput {
|
|
89
|
+
search?: string;
|
|
90
|
+
status?: string;
|
|
91
|
+
assigneeIds?: string[];
|
|
92
|
+
assignedToMe?: boolean;
|
|
93
|
+
teamId?: string;
|
|
94
|
+
cycleId?: string;
|
|
95
|
+
limit?: number;
|
|
96
|
+
cursor?: string | null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface ListCachedLinearIssuesResult {
|
|
100
|
+
issues: CachedLinearIssueRecord[];
|
|
101
|
+
pageInfo: {
|
|
102
|
+
hasNextPage: boolean;
|
|
103
|
+
endCursor: string | null;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function toOptionalString(value: string | null | undefined): string | null {
|
|
108
|
+
const trimmed = value?.trim();
|
|
109
|
+
return trimmed ? trimmed : null;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function toOptionalNumber(value: number | null | undefined): number | null {
|
|
113
|
+
return typeof value === "number" && Number.isFinite(value) ? value : null;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function toIso(timestampMs: number): string {
|
|
117
|
+
return new Date(timestampMs).toISOString();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function mapRow(row: LinearIssueRow): CachedLinearIssueRecord {
|
|
121
|
+
return {
|
|
122
|
+
id: row.issue_id,
|
|
123
|
+
identifier: row.identifier,
|
|
124
|
+
title: row.title,
|
|
125
|
+
description: row.description,
|
|
126
|
+
url: row.url,
|
|
127
|
+
status: row.status,
|
|
128
|
+
assigneeId: row.assignee_id,
|
|
129
|
+
assignee: row.assignee_name,
|
|
130
|
+
assigneeEmail: row.assignee_email,
|
|
131
|
+
isAssignedToMe: row.is_assigned_to_me === 1,
|
|
132
|
+
teamId: row.team_id,
|
|
133
|
+
teamName: row.team_name,
|
|
134
|
+
teamKey: row.team_key,
|
|
135
|
+
cycleId: row.cycle_id,
|
|
136
|
+
cycleName: row.cycle_name,
|
|
137
|
+
cycleNumber: row.cycle_number,
|
|
138
|
+
updatedAt: row.updated_at,
|
|
139
|
+
pulledAt: toIso(row.pulled_at),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function mapSyncState(row: LinearIssueSyncStateRow): LinearIssueSyncState {
|
|
144
|
+
return {
|
|
145
|
+
scopeKey: row.scope_key,
|
|
146
|
+
lastPulledAt: toIso(row.last_pulled_at),
|
|
147
|
+
issueCount: row.issue_count,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function escapeLike(value: string): string {
|
|
152
|
+
return value.replace(/[\\%_]/g, "\\$&");
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
async function withLinearIssueDatabase<T>(run: (db: DatabaseSync) => T): Promise<T> {
|
|
156
|
+
await fs.mkdir(LINEAR_DIR, { recursive: true });
|
|
157
|
+
const db = new DatabaseSync(DB_PATH);
|
|
158
|
+
pragmaSet(db, "journal_mode = WAL");
|
|
159
|
+
try {
|
|
160
|
+
db.exec(`
|
|
161
|
+
CREATE TABLE IF NOT EXISTS linear_issues (
|
|
162
|
+
issue_id TEXT PRIMARY KEY,
|
|
163
|
+
identifier TEXT NOT NULL,
|
|
164
|
+
title TEXT NOT NULL,
|
|
165
|
+
description TEXT,
|
|
166
|
+
url TEXT,
|
|
167
|
+
status TEXT NOT NULL,
|
|
168
|
+
assignee_id TEXT,
|
|
169
|
+
assignee_name TEXT,
|
|
170
|
+
assignee_email TEXT,
|
|
171
|
+
is_assigned_to_me INTEGER NOT NULL DEFAULT 0,
|
|
172
|
+
team_id TEXT,
|
|
173
|
+
team_name TEXT,
|
|
174
|
+
team_key TEXT,
|
|
175
|
+
cycle_id TEXT,
|
|
176
|
+
cycle_name TEXT,
|
|
177
|
+
cycle_number INTEGER,
|
|
178
|
+
updated_at TEXT NOT NULL,
|
|
179
|
+
pulled_at INTEGER NOT NULL
|
|
180
|
+
);
|
|
181
|
+
CREATE INDEX IF NOT EXISTS idx_linear_issues_updated
|
|
182
|
+
ON linear_issues (updated_at DESC, identifier ASC);
|
|
183
|
+
CREATE INDEX IF NOT EXISTS idx_linear_issues_cycle
|
|
184
|
+
ON linear_issues (cycle_id, updated_at DESC);
|
|
185
|
+
CREATE INDEX IF NOT EXISTS idx_linear_issues_assignee_me
|
|
186
|
+
ON linear_issues (is_assigned_to_me, updated_at DESC);
|
|
187
|
+
CREATE TABLE IF NOT EXISTS linear_issue_sync_state (
|
|
188
|
+
scope_key TEXT PRIMARY KEY,
|
|
189
|
+
last_pulled_at INTEGER NOT NULL,
|
|
190
|
+
issue_count INTEGER NOT NULL
|
|
191
|
+
);
|
|
192
|
+
`);
|
|
193
|
+
return run(db);
|
|
194
|
+
} finally {
|
|
195
|
+
db.close();
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export async function replaceCachedLinearIssues(input: {
|
|
200
|
+
issues: CachedLinearIssueInput[];
|
|
201
|
+
complete: boolean;
|
|
202
|
+
pulledAtMs?: number;
|
|
203
|
+
}): Promise<void> {
|
|
204
|
+
const pulledAtMs = input.pulledAtMs ?? Date.now();
|
|
205
|
+
|
|
206
|
+
return withLinearIssueDatabase((db) => {
|
|
207
|
+
db.exec("BEGIN");
|
|
208
|
+
|
|
209
|
+
try {
|
|
210
|
+
const upsert = db.prepare(`
|
|
211
|
+
INSERT INTO linear_issues (
|
|
212
|
+
issue_id, identifier, title, description, url, status,
|
|
213
|
+
assignee_id, assignee_name, assignee_email, is_assigned_to_me,
|
|
214
|
+
team_id, team_name, team_key, cycle_id, cycle_name, cycle_number,
|
|
215
|
+
updated_at, pulled_at
|
|
216
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
217
|
+
ON CONFLICT(issue_id) DO UPDATE SET
|
|
218
|
+
identifier = excluded.identifier,
|
|
219
|
+
title = excluded.title,
|
|
220
|
+
description = excluded.description,
|
|
221
|
+
url = excluded.url,
|
|
222
|
+
status = excluded.status,
|
|
223
|
+
assignee_id = excluded.assignee_id,
|
|
224
|
+
assignee_name = excluded.assignee_name,
|
|
225
|
+
assignee_email = excluded.assignee_email,
|
|
226
|
+
is_assigned_to_me = excluded.is_assigned_to_me,
|
|
227
|
+
team_id = excluded.team_id,
|
|
228
|
+
team_name = excluded.team_name,
|
|
229
|
+
team_key = excluded.team_key,
|
|
230
|
+
cycle_id = excluded.cycle_id,
|
|
231
|
+
cycle_name = excluded.cycle_name,
|
|
232
|
+
cycle_number = excluded.cycle_number,
|
|
233
|
+
updated_at = excluded.updated_at,
|
|
234
|
+
pulled_at = excluded.pulled_at
|
|
235
|
+
`);
|
|
236
|
+
|
|
237
|
+
for (const issue of input.issues) {
|
|
238
|
+
upsert.run(
|
|
239
|
+
issue.id.trim(),
|
|
240
|
+
issue.identifier.trim(),
|
|
241
|
+
issue.title.trim(),
|
|
242
|
+
toOptionalString(issue.description ?? null),
|
|
243
|
+
toOptionalString(issue.url ?? null),
|
|
244
|
+
issue.status.trim(),
|
|
245
|
+
toOptionalString(issue.assigneeId ?? null),
|
|
246
|
+
toOptionalString(issue.assignee ?? null),
|
|
247
|
+
toOptionalString(issue.assigneeEmail ?? null),
|
|
248
|
+
issue.isAssignedToMe ? 1 : 0,
|
|
249
|
+
toOptionalString(issue.teamId ?? null),
|
|
250
|
+
toOptionalString(issue.teamName ?? null),
|
|
251
|
+
toOptionalString(issue.teamKey ?? null),
|
|
252
|
+
toOptionalString(issue.cycleId ?? null),
|
|
253
|
+
toOptionalString(issue.cycleName ?? null),
|
|
254
|
+
toOptionalNumber(issue.cycleNumber ?? null),
|
|
255
|
+
issue.updatedAt.trim(),
|
|
256
|
+
pulledAtMs
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
if (input.complete) {
|
|
261
|
+
if (input.issues.length === 0) {
|
|
262
|
+
db.exec("DELETE FROM linear_issues");
|
|
263
|
+
} else {
|
|
264
|
+
const placeholders = input.issues.map(() => "?").join(", ");
|
|
265
|
+
db.prepare(`DELETE FROM linear_issues WHERE issue_id NOT IN (${placeholders})`).run(
|
|
266
|
+
...input.issues.map((issue) => issue.id.trim())
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
db.exec("COMMIT");
|
|
272
|
+
} catch (error) {
|
|
273
|
+
db.exec("ROLLBACK");
|
|
274
|
+
throw error;
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export async function setLinearIssueSyncState(
|
|
280
|
+
scopeKey: string,
|
|
281
|
+
issueCount: number,
|
|
282
|
+
pulledAtMs = Date.now()
|
|
283
|
+
): Promise<void> {
|
|
284
|
+
const normalizedScopeKey = scopeKey.trim() || "global";
|
|
285
|
+
|
|
286
|
+
return withLinearIssueDatabase((db) => {
|
|
287
|
+
db.prepare(`
|
|
288
|
+
INSERT INTO linear_issue_sync_state (scope_key, last_pulled_at, issue_count)
|
|
289
|
+
VALUES (?, ?, ?)
|
|
290
|
+
ON CONFLICT(scope_key) DO UPDATE SET
|
|
291
|
+
last_pulled_at = excluded.last_pulled_at,
|
|
292
|
+
issue_count = excluded.issue_count
|
|
293
|
+
`).run(normalizedScopeKey, pulledAtMs, issueCount);
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export async function getLinearIssueSyncState(scopeKey = "global"): Promise<LinearIssueSyncState | null> {
|
|
298
|
+
const normalizedScopeKey = scopeKey.trim() || "global";
|
|
299
|
+
|
|
300
|
+
return withLinearIssueDatabase((db) => {
|
|
301
|
+
const row = db
|
|
302
|
+
.prepare(
|
|
303
|
+
`SELECT scope_key, last_pulled_at, issue_count
|
|
304
|
+
FROM linear_issue_sync_state
|
|
305
|
+
WHERE scope_key = ?
|
|
306
|
+
LIMIT 1`
|
|
307
|
+
)
|
|
308
|
+
.get(normalizedScopeKey) as LinearIssueSyncStateRow | undefined;
|
|
309
|
+
|
|
310
|
+
return row ? mapSyncState(row) : null;
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export async function countCachedLinearIssues(): Promise<number> {
|
|
315
|
+
return withLinearIssueDatabase((db) => {
|
|
316
|
+
const row = db
|
|
317
|
+
.prepare("SELECT COUNT(*) AS count FROM linear_issues")
|
|
318
|
+
.get() as { count: number } | undefined;
|
|
319
|
+
return row?.count ?? 0;
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export async function listCachedLinearIssues(
|
|
324
|
+
input: ListCachedLinearIssuesInput = {}
|
|
325
|
+
): Promise<ListCachedLinearIssuesResult> {
|
|
326
|
+
const limit = Number.isFinite(input.limit)
|
|
327
|
+
? Math.min(Math.max(Number(input.limit), 1), 500)
|
|
328
|
+
: 50;
|
|
329
|
+
const offset = Number.isFinite(Number(input.cursor))
|
|
330
|
+
? Math.max(Number(input.cursor), 0)
|
|
331
|
+
: 0;
|
|
332
|
+
|
|
333
|
+
return withLinearIssueDatabase((db) => {
|
|
334
|
+
const clauses: string[] = [];
|
|
335
|
+
const params: Array<string | number> = [];
|
|
336
|
+
|
|
337
|
+
const search = toOptionalString(input.search ?? null);
|
|
338
|
+
if (search) {
|
|
339
|
+
const pattern = `%${escapeLike(search.toLowerCase())}%`;
|
|
340
|
+
clauses.push(
|
|
341
|
+
`(LOWER(identifier) LIKE ? ESCAPE '\\' OR LOWER(title) LIKE ? ESCAPE '\\' OR LOWER(COALESCE(description, '')) LIKE ? ESCAPE '\\')`
|
|
342
|
+
);
|
|
343
|
+
params.push(pattern, pattern, pattern);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
const status = toOptionalString(input.status ?? null);
|
|
347
|
+
if (status) {
|
|
348
|
+
clauses.push("LOWER(status) = ?");
|
|
349
|
+
params.push(status.toLowerCase());
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
const assigneeIds = Array.from(
|
|
353
|
+
new Set(
|
|
354
|
+
(input.assigneeIds ?? [])
|
|
355
|
+
.map((assigneeId) => toOptionalString(assigneeId))
|
|
356
|
+
.filter((assigneeId): assigneeId is string => Boolean(assigneeId))
|
|
357
|
+
)
|
|
358
|
+
);
|
|
359
|
+
if (assigneeIds.length > 0) {
|
|
360
|
+
clauses.push(`assignee_id IN (${assigneeIds.map(() => "?").join(", ")})`);
|
|
361
|
+
params.push(...assigneeIds);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (input.assignedToMe) {
|
|
365
|
+
clauses.push("is_assigned_to_me = 1");
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
const teamId = toOptionalString(input.teamId ?? null);
|
|
369
|
+
if (teamId) {
|
|
370
|
+
clauses.push("team_id = ?");
|
|
371
|
+
params.push(teamId);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
const cycleId = toOptionalString(input.cycleId ?? null);
|
|
375
|
+
if (cycleId) {
|
|
376
|
+
clauses.push("cycle_id = ?");
|
|
377
|
+
params.push(cycleId);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
const whereClause = clauses.length > 0 ? `WHERE ${clauses.join(" AND ")}` : "";
|
|
381
|
+
const rows = db
|
|
382
|
+
.prepare(
|
|
383
|
+
`SELECT *
|
|
384
|
+
FROM linear_issues
|
|
385
|
+
${whereClause}
|
|
386
|
+
ORDER BY updated_at DESC, identifier ASC
|
|
387
|
+
LIMIT ? OFFSET ?`
|
|
388
|
+
)
|
|
389
|
+
.all(...params, limit + 1, offset) as unknown as LinearIssueRow[];
|
|
390
|
+
|
|
391
|
+
const hasNextPage = rows.length > limit;
|
|
392
|
+
const pageRows = hasNextPage ? rows.slice(0, limit) : rows;
|
|
393
|
+
const endCursor = hasNextPage ? String(offset + limit) : null;
|
|
394
|
+
|
|
395
|
+
return {
|
|
396
|
+
issues: pageRows.map(mapRow),
|
|
397
|
+
pageInfo: {
|
|
398
|
+
hasNextPage,
|
|
399
|
+
endCursor,
|
|
400
|
+
},
|
|
401
|
+
};
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export async function getCachedLinearIssueContexts(issueIds: string[]): Promise<CachedLinearIssueRecord[]> {
|
|
406
|
+
const normalizedIds = Array.from(
|
|
407
|
+
new Set(
|
|
408
|
+
issueIds
|
|
409
|
+
.map((issueId) => issueId.trim())
|
|
410
|
+
.filter(Boolean)
|
|
411
|
+
)
|
|
412
|
+
);
|
|
413
|
+
|
|
414
|
+
if (normalizedIds.length === 0) {
|
|
415
|
+
return [];
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
return withLinearIssueDatabase((db) => {
|
|
419
|
+
const placeholders = normalizedIds.map(() => "?").join(", ");
|
|
420
|
+
const rows = db
|
|
421
|
+
.prepare(
|
|
422
|
+
`SELECT *
|
|
423
|
+
FROM linear_issues
|
|
424
|
+
WHERE issue_id IN (${placeholders})`
|
|
425
|
+
)
|
|
426
|
+
.all(...normalizedIds) as unknown as LinearIssueRow[];
|
|
427
|
+
|
|
428
|
+
const byId = new Map(rows.map((row) => [row.issue_id, mapRow(row)]));
|
|
429
|
+
return normalizedIds
|
|
430
|
+
.map((issueId) => byId.get(issueId))
|
|
431
|
+
.filter((issue): issue is CachedLinearIssueRecord => Boolean(issue));
|
|
432
|
+
});
|
|
433
|
+
}
|