@mndrk/agx 2.0.44 → 2.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cloud-runtime/standalone/.linear-token.json +2 -2
- 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/00716478a3ee55a2.js +37 -0
- 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/3091043e8c282dce.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/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 +37 -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 +165 -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 +26 -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 +427 -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/.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/.next/static/{1ixi4WIJBgIPp7LJeYeKs → Y8QdDdLJI3yzNjkyPjuJ-}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/.next/static/{1ixi4WIJBgIPp7LJeYeKs → Y8QdDdLJI3yzNjkyPjuJ-}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/.next/static/{1ixi4WIJBgIPp7LJeYeKs → Y8QdDdLJI3yzNjkyPjuJ-}/_ssgManifest.js +0 -0
|
@@ -14,10 +14,16 @@ interface Filters {
|
|
|
14
14
|
teamId?: string;
|
|
15
15
|
status?: string;
|
|
16
16
|
search?: string;
|
|
17
|
+
assigneeId?: string;
|
|
17
18
|
assignedToMe?: boolean;
|
|
18
19
|
cycleId?: string;
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
interface UseLinearIssuesOptions {
|
|
23
|
+
projectSlug?: string;
|
|
24
|
+
limit?: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
interface UseLinearIssuesReturn {
|
|
22
28
|
issues: LinearIssue[];
|
|
23
29
|
loading: boolean;
|
|
@@ -26,16 +32,25 @@ interface UseLinearIssuesReturn {
|
|
|
26
32
|
refresh: () => Promise<void>;
|
|
27
33
|
}
|
|
28
34
|
|
|
29
|
-
export function useLinearIssues(
|
|
35
|
+
export function useLinearIssues(
|
|
36
|
+
filters: Filters,
|
|
37
|
+
enabled = true,
|
|
38
|
+
options: UseLinearIssuesOptions = {}
|
|
39
|
+
): UseLinearIssuesReturn {
|
|
30
40
|
const [issues, setIssues] = useState<LinearIssue[]>([]);
|
|
31
41
|
const [loading, setLoading] = useState(true);
|
|
32
42
|
const [cursor, setCursor] = useState<string | null>(null);
|
|
33
43
|
const [hasMore, setHasMore] = useState(false);
|
|
34
44
|
const cursorRef = useRef(cursor);
|
|
45
|
+
const hydratedRef = useRef(false);
|
|
35
46
|
cursorRef.current = cursor;
|
|
36
47
|
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
hydratedRef.current = false;
|
|
50
|
+
}, [options.projectSlug]);
|
|
51
|
+
|
|
37
52
|
const fetchPage = useCallback(
|
|
38
|
-
async (append: boolean) => {
|
|
53
|
+
async (append: boolean, refresh = false) => {
|
|
39
54
|
if (!enabled) return;
|
|
40
55
|
setLoading(true);
|
|
41
56
|
try {
|
|
@@ -43,9 +58,13 @@ export function useLinearIssues(filters: Filters, enabled = true): UseLinearIssu
|
|
|
43
58
|
if (filters.teamId) params.set("teamId", filters.teamId);
|
|
44
59
|
if (filters.status) params.set("status", filters.status);
|
|
45
60
|
if (filters.search) params.set("search", filters.search);
|
|
46
|
-
if (filters.
|
|
61
|
+
if (filters.assigneeId) params.set("assigneeId", filters.assigneeId);
|
|
62
|
+
else if (filters.assignedToMe) params.set("assignedToMe", "true");
|
|
47
63
|
if (filters.cycleId) params.set("cycleId", filters.cycleId);
|
|
48
64
|
if (append && cursorRef.current) params.set("cursor", cursorRef.current);
|
|
65
|
+
if (options.projectSlug) params.set("projectSlug", options.projectSlug);
|
|
66
|
+
if (options.limit) params.set("limit", String(options.limit));
|
|
67
|
+
if (refresh) params.set("refresh", "true");
|
|
49
68
|
|
|
50
69
|
const res = await fetch(`/api/linear/issues?${params.toString()}`);
|
|
51
70
|
const data = await res.json();
|
|
@@ -54,24 +73,25 @@ export function useLinearIssues(filters: Filters, enabled = true): UseLinearIssu
|
|
|
54
73
|
setIssues((prev) => (append ? [...prev, ...newIssues] : newIssues));
|
|
55
74
|
setCursor(data.pageInfo?.endCursor ?? null);
|
|
56
75
|
setHasMore(data.pageInfo?.hasNextPage ?? false);
|
|
76
|
+
hydratedRef.current = true;
|
|
57
77
|
} catch {
|
|
58
78
|
if (!append) setIssues([]);
|
|
59
79
|
} finally {
|
|
60
80
|
setLoading(false);
|
|
61
81
|
}
|
|
62
82
|
},
|
|
63
|
-
[filters.teamId, filters.status, filters.search, filters.assignedToMe, filters.cycleId, enabled],
|
|
83
|
+
[filters.teamId, filters.status, filters.search, filters.assigneeId, filters.assignedToMe, filters.cycleId, enabled, options.projectSlug, options.limit],
|
|
64
84
|
);
|
|
65
85
|
|
|
66
86
|
useEffect(() => {
|
|
67
87
|
setCursor(null);
|
|
68
|
-
fetchPage(false);
|
|
88
|
+
void fetchPage(false, !hydratedRef.current);
|
|
69
89
|
}, [fetchPage]);
|
|
70
90
|
|
|
71
91
|
const loadMore = useCallback(() => fetchPage(true), [fetchPage]);
|
|
72
92
|
const refresh = useCallback(() => {
|
|
73
93
|
setCursor(null);
|
|
74
|
-
return fetchPage(false);
|
|
94
|
+
return fetchPage(false, true);
|
|
75
95
|
}, [fetchPage]);
|
|
76
96
|
|
|
77
97
|
return { issues, loading, hasMore, loadMore, refresh };
|
|
@@ -25,10 +25,21 @@ export interface MentionProject {
|
|
|
25
25
|
slug: string;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
export interface MentionLinearIssue {
|
|
29
|
+
id: string;
|
|
30
|
+
identifier: string;
|
|
31
|
+
title: string;
|
|
32
|
+
status: string;
|
|
33
|
+
url: string | null;
|
|
34
|
+
assignee: string | null;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
export type MentionItem =
|
|
29
39
|
| { kind: "agent"; participant: Participant; group: string }
|
|
30
40
|
| { kind: "project-group"; project: ProjectWithAgents; group: string }
|
|
31
|
-
| { kind: "project"; project: MentionProject; group: string }
|
|
41
|
+
| { kind: "project"; project: MentionProject; group: string }
|
|
42
|
+
| { kind: "ticket"; issue: MentionLinearIssue; group: string };
|
|
32
43
|
|
|
33
44
|
export type MentionSuggestion = MentionItem;
|
|
34
45
|
|
|
@@ -39,6 +50,8 @@ export interface UseMentionAutocompleteOptions {
|
|
|
39
50
|
projectGroups?: ProjectWithAgents[];
|
|
40
51
|
/** Mentionable projects */
|
|
41
52
|
projects?: MentionProject[];
|
|
53
|
+
/** Cached Linear tickets available for @ mentions */
|
|
54
|
+
linearIssues?: MentionLinearIssue[];
|
|
42
55
|
/** Maximum number of suggestions to show */
|
|
43
56
|
maxSuggestions?: number;
|
|
44
57
|
}
|
|
@@ -151,7 +164,8 @@ export function filterSuggestions(
|
|
|
151
164
|
query: string,
|
|
152
165
|
maxSuggestions: number,
|
|
153
166
|
projectGroups: ProjectWithAgents[] = [],
|
|
154
|
-
projects: MentionProject[] = []
|
|
167
|
+
projects: MentionProject[] = [],
|
|
168
|
+
linearIssues: MentionLinearIssue[] = []
|
|
155
169
|
): MentionSuggestion[] {
|
|
156
170
|
const lowerQuery = query.toLowerCase();
|
|
157
171
|
const participantById = new Map(participants.map((p) => [p.id, p]));
|
|
@@ -216,7 +230,26 @@ export function filterSuggestions(
|
|
|
216
230
|
}
|
|
217
231
|
}
|
|
218
232
|
|
|
219
|
-
// 4.
|
|
233
|
+
// 4. Linear tickets (only once the user has started typing)
|
|
234
|
+
if (lowerQuery) {
|
|
235
|
+
linearIssues
|
|
236
|
+
.map((issue) => ({
|
|
237
|
+
issue,
|
|
238
|
+
score: scoreIssueMatch(issue, lowerQuery),
|
|
239
|
+
}))
|
|
240
|
+
.filter((entry): entry is { issue: MentionLinearIssue; score: number } => entry.score !== null)
|
|
241
|
+
.sort((left, right) => {
|
|
242
|
+
if (right.score !== left.score) {
|
|
243
|
+
return right.score - left.score;
|
|
244
|
+
}
|
|
245
|
+
return left.issue.identifier.localeCompare(right.issue.identifier);
|
|
246
|
+
})
|
|
247
|
+
.forEach(({ issue }) => {
|
|
248
|
+
result.push({ kind: "ticket", issue, group: "Tickets" });
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// 5. Ungrouped agents (not in any project)
|
|
220
253
|
const ungrouped: { participant: Participant; score: number }[] = [];
|
|
221
254
|
for (const p of participants) {
|
|
222
255
|
if (projectAgentIds.has(p.id)) continue;
|
|
@@ -236,6 +269,7 @@ export function useMentionAutocomplete({
|
|
|
236
269
|
participants,
|
|
237
270
|
projectGroups = [],
|
|
238
271
|
projects = [],
|
|
272
|
+
linearIssues = [],
|
|
239
273
|
maxSuggestions = 6,
|
|
240
274
|
}: UseMentionAutocompleteOptions): UseMentionAutocompleteReturn {
|
|
241
275
|
const [token, setToken] = useState<MentionToken | null>(null);
|
|
@@ -246,8 +280,8 @@ export function useMentionAutocomplete({
|
|
|
246
280
|
const query = token?.query ?? "";
|
|
247
281
|
|
|
248
282
|
const filteredSuggestions = useMemo(() => {
|
|
249
|
-
return filterSuggestions(participants, query, maxSuggestions, projectGroups, projects);
|
|
250
|
-
}, [participants, query, maxSuggestions, projectGroups, projects]);
|
|
283
|
+
return filterSuggestions(participants, query, maxSuggestions, projectGroups, projects, linearIssues);
|
|
284
|
+
}, [participants, query, maxSuggestions, projectGroups, projects, linearIssues]);
|
|
251
285
|
|
|
252
286
|
const updateTokenFromInput = useCallback((text: string, cursorPos: number) => {
|
|
253
287
|
const newToken = detectMentionToken(text, cursorPos);
|
|
@@ -320,7 +354,9 @@ export function useMentionAutocomplete({
|
|
|
320
354
|
? suggestion.project.name
|
|
321
355
|
: suggestion.kind === "project"
|
|
322
356
|
? suggestion.project.name
|
|
323
|
-
: suggestion.
|
|
357
|
+
: suggestion.kind === "ticket"
|
|
358
|
+
? suggestion.issue.identifier
|
|
359
|
+
: suggestion.participant.name;
|
|
324
360
|
const atPrefix = token.isParallel ? "@@" : "@";
|
|
325
361
|
const replacement = `${atPrefix}${name} `;
|
|
326
362
|
|
|
@@ -362,3 +398,15 @@ export function useMentionAutocomplete({
|
|
|
362
398
|
endComposition,
|
|
363
399
|
};
|
|
364
400
|
}
|
|
401
|
+
|
|
402
|
+
function scoreIssueMatch(issue: MentionLinearIssue, lowerQuery: string): number | null {
|
|
403
|
+
const identifier = issue.identifier.toLowerCase();
|
|
404
|
+
const title = issue.title.toLowerCase();
|
|
405
|
+
|
|
406
|
+
if (identifier === lowerQuery) return 5;
|
|
407
|
+
if (identifier.startsWith(lowerQuery)) return 4;
|
|
408
|
+
if (title.startsWith(lowerQuery)) return 3;
|
|
409
|
+
if (identifier.includes(lowerQuery)) return 2;
|
|
410
|
+
if (title.includes(lowerQuery)) return 1;
|
|
411
|
+
return null;
|
|
412
|
+
}
|
|
@@ -3,6 +3,7 @@ const PROMPT_JOB_POLL_INTERVAL_MS = 15_000;
|
|
|
3
3
|
|
|
4
4
|
export async function register() {
|
|
5
5
|
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
|
6
|
+
const { getConfiguredLocalServerPort } = await import("./lib/app-config");
|
|
6
7
|
await import("./lib/check-node-version");
|
|
7
8
|
const { getQueue, QUEUE_NAMES } = await import('@/lib/queue/boss');
|
|
8
9
|
const { taskProcessor } = await import('@/lib/orchestrator/processor');
|
|
@@ -22,7 +23,7 @@ export async function register() {
|
|
|
22
23
|
const { GraphStore } = await import('@/src/graph/store');
|
|
23
24
|
|
|
24
25
|
// Prompt job poller — drives recurring prompt-based scheduled tasks
|
|
25
|
-
const port =
|
|
26
|
+
const port = getConfiguredLocalServerPort();
|
|
26
27
|
const baseUrl = `http://localhost:${port}`;
|
|
27
28
|
let promptJobPollReady = false;
|
|
28
29
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const DEFAULT_LOCAL_APP_PORT = 41741;
|
|
2
|
+
|
|
3
|
+
function normalizeBaseUrl(value: string | null | undefined): string | null {
|
|
4
|
+
const trimmed = value?.trim();
|
|
5
|
+
if (!trimmed) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
return trimmed.replace(/\/+$/, "");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const LOCAL_APP_PORT = DEFAULT_LOCAL_APP_PORT;
|
|
13
|
+
export const LOCAL_APP_URL = `http://localhost:${LOCAL_APP_PORT}`;
|
|
14
|
+
|
|
15
|
+
export function getConfiguredAppBaseUrl(): string {
|
|
16
|
+
return (
|
|
17
|
+
normalizeBaseUrl(process.env.NEXT_PUBLIC_APP_URL) ??
|
|
18
|
+
normalizeBaseUrl(process.env.AGX_BOARD_URL) ??
|
|
19
|
+
normalizeBaseUrl(process.env.NEXT_PUBLIC_AGX_BOARD_URL) ??
|
|
20
|
+
LOCAL_APP_URL
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function getConfiguredBoardBaseUrl(): string {
|
|
25
|
+
return (
|
|
26
|
+
normalizeBaseUrl(process.env.AGX_BOARD_URL) ??
|
|
27
|
+
normalizeBaseUrl(process.env.NEXT_PUBLIC_AGX_BOARD_URL) ??
|
|
28
|
+
normalizeBaseUrl(process.env.NEXT_PUBLIC_APP_URL) ??
|
|
29
|
+
LOCAL_APP_URL
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function getConfiguredLocalServerPort(): string {
|
|
34
|
+
return process.env.PORT?.trim() || String(LOCAL_APP_PORT);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function getAllowedOrigins(): string[] {
|
|
38
|
+
const origins = new Set<string>([
|
|
39
|
+
LOCAL_APP_URL,
|
|
40
|
+
`http://127.0.0.1:${LOCAL_APP_PORT}`,
|
|
41
|
+
]);
|
|
42
|
+
|
|
43
|
+
for (const value of [
|
|
44
|
+
process.env.NEXT_PUBLIC_APP_URL,
|
|
45
|
+
process.env.AGX_BOARD_URL,
|
|
46
|
+
process.env.NEXT_PUBLIC_AGX_BOARD_URL,
|
|
47
|
+
]) {
|
|
48
|
+
const normalized = normalizeBaseUrl(value);
|
|
49
|
+
if (normalized) {
|
|
50
|
+
origins.add(normalized);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return Array.from(origins);
|
|
55
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { JSONContent } from "@tiptap/core";
|
|
2
|
+
|
|
3
|
+
export interface MentionedLinearIssueContext {
|
|
4
|
+
id: string;
|
|
5
|
+
identifier: string;
|
|
6
|
+
title: string;
|
|
7
|
+
url: string | null;
|
|
8
|
+
status: string;
|
|
9
|
+
assignee: string | null;
|
|
10
|
+
assigneeId: string | null;
|
|
11
|
+
assigneeEmail: string | null;
|
|
12
|
+
isAssignedToMe: boolean;
|
|
13
|
+
teamId: string | null;
|
|
14
|
+
teamName: string | null;
|
|
15
|
+
teamKey: string | null;
|
|
16
|
+
cycleId: string | null;
|
|
17
|
+
cycleName: string | null;
|
|
18
|
+
cycleNumber: number | null;
|
|
19
|
+
description: string | null;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
pulledAt: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function walkNodes(
|
|
25
|
+
nodes: JSONContent[] | undefined,
|
|
26
|
+
visitor: (node: JSONContent) => void
|
|
27
|
+
): void {
|
|
28
|
+
if (!nodes) return;
|
|
29
|
+
for (const node of nodes) {
|
|
30
|
+
visitor(node);
|
|
31
|
+
walkNodes(node.content, visitor);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function escapeAttribute(value: string): string {
|
|
36
|
+
return value
|
|
37
|
+
.replace(/&/g, "&")
|
|
38
|
+
.replace(/"/g, """)
|
|
39
|
+
.replace(/</g, "<")
|
|
40
|
+
.replace(/>/g, ">");
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function extractMentionedLinearIssueIds(doc: JSONContent): string[] {
|
|
44
|
+
const issueIds = new Set<string>();
|
|
45
|
+
|
|
46
|
+
walkNodes(doc.content, (node) => {
|
|
47
|
+
if (node.type !== "linearIssueMention") return;
|
|
48
|
+
const id = typeof node.attrs?.id === "string" ? node.attrs.id.trim() : "";
|
|
49
|
+
if (id) {
|
|
50
|
+
issueIds.add(id);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
return Array.from(issueIds);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function buildLinearIssueContextPrefix(issues: MentionedLinearIssueContext[]): string {
|
|
58
|
+
if (issues.length === 0) return "";
|
|
59
|
+
|
|
60
|
+
const blocks = issues.map((issue) => {
|
|
61
|
+
const parts = [
|
|
62
|
+
`<linear-issue identifier="${escapeAttribute(issue.identifier)}" status="${escapeAttribute(issue.status)}"${issue.assignee ? ` assignee="${escapeAttribute(issue.assignee)}"` : ""}>`,
|
|
63
|
+
`Title: ${issue.title}`,
|
|
64
|
+
issue.url ? `URL: ${issue.url}` : null,
|
|
65
|
+
issue.teamName ? `Team: ${issue.teamName}` : null,
|
|
66
|
+
issue.cycleName || issue.cycleNumber != null
|
|
67
|
+
? `Cycle: ${issue.cycleName ?? `Cycle ${issue.cycleNumber}`}`
|
|
68
|
+
: null,
|
|
69
|
+
`Updated: ${issue.updatedAt}`,
|
|
70
|
+
"",
|
|
71
|
+
issue.description?.trim() || "No description provided.",
|
|
72
|
+
"</linear-issue>",
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
return parts.filter((part): part is string => part !== null).join("\n");
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
return `Referenced Linear tickets (only because the user explicitly @mentioned them):\n\n${blocks.join("\n\n")}\n\n`;
|
|
79
|
+
}
|
|
@@ -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> {
|