@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import dynamic from "next/dynamic";
|
|
5
|
-
import { Check, ChevronDown, Clock, Link2, Play, Search, Settings, User } from "lucide-react";
|
|
5
|
+
import { Check, ChevronDown, Clock, Link2, Play, RefreshCw, Search, Settings, User } from "lucide-react";
|
|
6
6
|
import { useLinearIssues, type LinearIssue } from "@/hooks/useLinearIssues";
|
|
7
7
|
import { useLinearConnection } from "@/hooks/useLinearConnection";
|
|
8
8
|
import { useLinearRuns, type LinearRun } from "@/hooks/useLinearRuns";
|
|
@@ -126,6 +126,61 @@ const STATUS_DOT_COLORS: Record<LinearRun["status"], string> = {
|
|
|
126
126
|
cancelled: "bg-zinc-400",
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
+
interface FilterOption {
|
|
130
|
+
value: string;
|
|
131
|
+
label: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
interface FilterSelectProps {
|
|
135
|
+
label: string;
|
|
136
|
+
value: string;
|
|
137
|
+
options: FilterOption[];
|
|
138
|
+
activeClasses: string;
|
|
139
|
+
onChange: (value: string) => void;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function FilterSelect({ label, value, options, activeClasses, onChange }: FilterSelectProps) {
|
|
143
|
+
const isActive = value.trim().length > 0;
|
|
144
|
+
|
|
145
|
+
return (
|
|
146
|
+
<div className="relative">
|
|
147
|
+
<select
|
|
148
|
+
aria-label={label}
|
|
149
|
+
className={`max-w-[160px] appearance-none rounded-full border bg-transparent px-2.5 py-0.5 pr-6 text-[11px] font-medium outline-none transition-colors ${
|
|
150
|
+
isActive
|
|
151
|
+
? activeClasses
|
|
152
|
+
: "border-[var(--card-border)] text-[var(--muted-foreground)] hover:bg-[var(--card-bg)]"
|
|
153
|
+
}`}
|
|
154
|
+
value={value}
|
|
155
|
+
onChange={(event) => onChange(event.target.value)}
|
|
156
|
+
>
|
|
157
|
+
{options.map((option) => (
|
|
158
|
+
<option key={`${label}-${option.value || "all"}`} value={option.value}>
|
|
159
|
+
{option.label}
|
|
160
|
+
</option>
|
|
161
|
+
))}
|
|
162
|
+
</select>
|
|
163
|
+
<ChevronDown
|
|
164
|
+
size={12}
|
|
165
|
+
className="pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-current"
|
|
166
|
+
/>
|
|
167
|
+
</div>
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface CycleOption {
|
|
172
|
+
id: string;
|
|
173
|
+
number: number;
|
|
174
|
+
name: string | null;
|
|
175
|
+
startsAt: string;
|
|
176
|
+
endsAt: string;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
interface LinearEntityOption {
|
|
180
|
+
id: string;
|
|
181
|
+
name: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
129
184
|
function TicketChatStarter({
|
|
130
185
|
issue,
|
|
131
186
|
participants,
|
|
@@ -339,6 +394,7 @@ function TicketChatStarter({
|
|
|
339
394
|
onSend={handleSend}
|
|
340
395
|
onStop={() => {}}
|
|
341
396
|
participants={participants}
|
|
397
|
+
projectSlug={projectSlug ?? undefined}
|
|
342
398
|
loading={activityStatus !== "ready"}
|
|
343
399
|
commands={[]}
|
|
344
400
|
activityStatus={activityStatus}
|
|
@@ -559,6 +615,7 @@ function ThreadMessageList({
|
|
|
559
615
|
onSend={handleSend}
|
|
560
616
|
onStop={stop}
|
|
561
617
|
participants={participants}
|
|
618
|
+
projectSlug={run.projectSlug ?? undefined}
|
|
562
619
|
loading={activityStatus !== "ready"}
|
|
563
620
|
commands={[]}
|
|
564
621
|
activityStatus={activityStatus}
|
|
@@ -639,10 +696,10 @@ function TicketRow({
|
|
|
639
696
|
{selected && (
|
|
640
697
|
<div className="absolute left-0 top-0 bottom-0 w-[3px] rounded-r-full bg-blue-500" />
|
|
641
698
|
)}
|
|
642
|
-
<span className="w-
|
|
699
|
+
<span className="w-24 shrink-0 whitespace-nowrap font-mono text-xs text-[var(--muted-foreground)]">
|
|
643
700
|
{issue.identifier}
|
|
644
701
|
</span>
|
|
645
|
-
<span className={`flex-1 truncate text-xs ${selected ? "font-medium text-[var(--foreground)]" : "text-[var(--muted-foreground)]"}`}>
|
|
702
|
+
<span className={`min-w-0 flex-1 truncate text-xs ${selected ? "font-medium text-[var(--foreground)]" : "text-[var(--muted-foreground)]"}`}>
|
|
646
703
|
{issue.title}
|
|
647
704
|
</span>
|
|
648
705
|
<span className="shrink-0 text-xs text-[var(--muted-foreground)]">
|
|
@@ -698,31 +755,24 @@ export default function LinearBoard({ projectId, projectSlug, initialShowSetting
|
|
|
698
755
|
configureMcp,
|
|
699
756
|
} = useLinearConnection();
|
|
700
757
|
|
|
701
|
-
interface Cycle {
|
|
702
|
-
id: string;
|
|
703
|
-
number: number;
|
|
704
|
-
name: string | null;
|
|
705
|
-
startsAt: string;
|
|
706
|
-
endsAt: string;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
758
|
const [setupDismissed, setSetupDismissed] = useState(false);
|
|
710
759
|
const [showSettings, setShowSettings] = useState(initialShowSettings ?? false);
|
|
711
760
|
const [ticketPanelWidth, setTicketPanelWidth] = useState(576);
|
|
712
761
|
const [runsPanelWidth, setRunsPanelWidth] = useState(224);
|
|
713
762
|
const [search, setSearch] = useState("");
|
|
714
763
|
const [debouncedSearch, setDebouncedSearch] = useState("");
|
|
715
|
-
const [
|
|
716
|
-
const [
|
|
717
|
-
const [
|
|
718
|
-
const [
|
|
764
|
+
const [assignees, setAssignees] = useState<LinearEntityOption[]>([]);
|
|
765
|
+
const [workspaces, setWorkspaces] = useState<LinearEntityOption[]>([]);
|
|
766
|
+
const [selectedAssigneeId, setSelectedAssigneeId] = useState("");
|
|
767
|
+
const [cycles, setCycles] = useState<CycleOption[]>([]);
|
|
768
|
+
const [selectedCycleId, setSelectedCycleId] = useState("");
|
|
769
|
+
const [selectedWorkspaceId, setSelectedWorkspaceId] = useState("");
|
|
719
770
|
const [selectedIssue, setSelectedIssue] = useState<LinearIssue | null>(null);
|
|
720
771
|
const [selectedRunId, setSelectedRunId] = useState<string | null>(null);
|
|
721
772
|
const [participants, setParticipants] = useState<Participant[]>([]);
|
|
722
773
|
const [pickerIssue, setPickerIssue] = useState<LinearIssue | null>(null);
|
|
723
774
|
const [pickerAnchor, setPickerAnchor] = useState<{ top: number; left: number } | null>(null);
|
|
724
775
|
const searchDebounceRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
725
|
-
const cyclePickerRef = useRef<HTMLDivElement | null>(null);
|
|
726
776
|
|
|
727
777
|
const handleSearchChange = useCallback((value: string) => {
|
|
728
778
|
setSearch(value);
|
|
@@ -740,40 +790,63 @@ export default function LinearBoard({ projectId, projectSlug, initialShowSetting
|
|
|
740
790
|
};
|
|
741
791
|
}, []);
|
|
742
792
|
|
|
743
|
-
// Fetch
|
|
793
|
+
// Fetch filter options when connected
|
|
744
794
|
useEffect(() => {
|
|
745
795
|
if (!connected) return;
|
|
746
796
|
let cancelled = false;
|
|
747
|
-
fetch("/api/linear/
|
|
797
|
+
fetch("/api/linear/options")
|
|
748
798
|
.then((res) => res.json())
|
|
749
799
|
.then((data) => {
|
|
750
|
-
if (
|
|
751
|
-
|
|
800
|
+
if (cancelled) {
|
|
801
|
+
return;
|
|
752
802
|
}
|
|
803
|
+
setAssignees(Array.isArray(data.assignees) ? data.assignees : []);
|
|
804
|
+
setWorkspaces(Array.isArray(data.teams) ? data.teams : []);
|
|
805
|
+
setCycles(Array.isArray(data.cycles) ? data.cycles : []);
|
|
753
806
|
})
|
|
754
|
-
.catch(() => {
|
|
755
|
-
|
|
807
|
+
.catch(() => {
|
|
808
|
+
if (!cancelled) {
|
|
809
|
+
setAssignees([]);
|
|
810
|
+
setWorkspaces([]);
|
|
811
|
+
setCycles([]);
|
|
812
|
+
}
|
|
813
|
+
});
|
|
814
|
+
return () => {
|
|
815
|
+
cancelled = true;
|
|
816
|
+
};
|
|
756
817
|
}, [connected]);
|
|
757
818
|
|
|
758
|
-
// Close cycle picker on outside click
|
|
759
819
|
useEffect(() => {
|
|
760
|
-
if (!
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
820
|
+
if (selectedAssigneeId && !assignees.some((assignee) => assignee.id === selectedAssigneeId)) {
|
|
821
|
+
setSelectedAssigneeId("");
|
|
822
|
+
}
|
|
823
|
+
}, [assignees, selectedAssigneeId]);
|
|
824
|
+
|
|
825
|
+
useEffect(() => {
|
|
826
|
+
if (workspaces.length <= 1 && selectedWorkspaceId) {
|
|
827
|
+
setSelectedWorkspaceId("");
|
|
828
|
+
return;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
if (selectedWorkspaceId && !workspaces.some((workspace) => workspace.id === selectedWorkspaceId)) {
|
|
832
|
+
setSelectedWorkspaceId("");
|
|
833
|
+
}
|
|
834
|
+
}, [selectedWorkspaceId, workspaces]);
|
|
835
|
+
|
|
836
|
+
useEffect(() => {
|
|
837
|
+
if (selectedCycleId && !cycles.some((cycle) => cycle.id === selectedCycleId)) {
|
|
838
|
+
setSelectedCycleId("");
|
|
839
|
+
}
|
|
840
|
+
}, [cycles, selectedCycleId]);
|
|
769
841
|
|
|
770
842
|
const filters = useMemo(
|
|
771
843
|
() => ({
|
|
772
844
|
search: debouncedSearch || undefined,
|
|
773
|
-
|
|
774
|
-
|
|
845
|
+
assigneeId: selectedAssigneeId || undefined,
|
|
846
|
+
teamId: selectedWorkspaceId || undefined,
|
|
847
|
+
cycleId: selectedCycleId || undefined,
|
|
775
848
|
}),
|
|
776
|
-
[debouncedSearch,
|
|
849
|
+
[debouncedSearch, selectedAssigneeId, selectedCycleId, selectedWorkspaceId]
|
|
777
850
|
);
|
|
778
851
|
|
|
779
852
|
const {
|
|
@@ -781,7 +854,8 @@ export default function LinearBoard({ projectId, projectSlug, initialShowSetting
|
|
|
781
854
|
loading: issuesLoading,
|
|
782
855
|
hasMore,
|
|
783
856
|
loadMore,
|
|
784
|
-
|
|
857
|
+
refresh: refreshIssues,
|
|
858
|
+
} = useLinearIssues(filters, connected, { projectSlug });
|
|
785
859
|
const {
|
|
786
860
|
runs,
|
|
787
861
|
loading: runsLoading,
|
|
@@ -790,6 +864,26 @@ export default function LinearBoard({ projectId, projectSlug, initialShowSetting
|
|
|
790
864
|
} = useLinearRuns(selectedIssue?.id, projectId ?? null);
|
|
791
865
|
|
|
792
866
|
const selectedRun = runs.find((run) => run.id === selectedRunId) ?? null;
|
|
867
|
+
const assigneeOptions = useMemo<FilterOption[]>(
|
|
868
|
+
() => [{ value: "", label: "Assignee" }, ...assignees.map((assignee) => ({ value: assignee.id, label: assignee.name }))],
|
|
869
|
+
[assignees]
|
|
870
|
+
);
|
|
871
|
+
const workspaceOptions = useMemo<FilterOption[]>(
|
|
872
|
+
() => [{ value: "", label: "Workspace" }, ...workspaces.map((workspace) => ({ value: workspace.id, label: workspace.name }))],
|
|
873
|
+
[workspaces]
|
|
874
|
+
);
|
|
875
|
+
const cycleOptions = useMemo<FilterOption[]>(
|
|
876
|
+
() => [
|
|
877
|
+
{ value: "", label: "Cycle" },
|
|
878
|
+
...cycles.map((cycle) => ({
|
|
879
|
+
value: cycle.id,
|
|
880
|
+
label: cycle.name || `Cycle ${cycle.number}`,
|
|
881
|
+
})),
|
|
882
|
+
],
|
|
883
|
+
[cycles]
|
|
884
|
+
);
|
|
885
|
+
const showCycleFilter = cycleOptions.length > 1;
|
|
886
|
+
const showWorkspaceFilter = workspaceOptions.length > 2;
|
|
793
887
|
|
|
794
888
|
useEffect(() => {
|
|
795
889
|
if (issues.length === 0) {
|
|
@@ -1021,6 +1115,16 @@ export default function LinearBoard({ projectId, projectSlug, initialShowSetting
|
|
|
1021
1115
|
onChange={(event) => handleSearchChange(event.target.value)}
|
|
1022
1116
|
/>
|
|
1023
1117
|
</div>
|
|
1118
|
+
<button
|
|
1119
|
+
type="button"
|
|
1120
|
+
className="shrink-0 rounded p-1.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--card-bg)] hover:text-[var(--foreground)] disabled:cursor-not-allowed disabled:opacity-50"
|
|
1121
|
+
onClick={() => void refreshIssues()}
|
|
1122
|
+
title="Refresh tickets"
|
|
1123
|
+
aria-label="Refresh tickets"
|
|
1124
|
+
disabled={issuesLoading}
|
|
1125
|
+
>
|
|
1126
|
+
<RefreshCw size={16} className={issuesLoading ? "animate-spin" : undefined} />
|
|
1127
|
+
</button>
|
|
1024
1128
|
<button
|
|
1025
1129
|
type="button"
|
|
1026
1130
|
className="shrink-0 rounded p-1.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--card-bg)] hover:text-[var(--foreground)]"
|
|
@@ -1031,87 +1135,31 @@ export default function LinearBoard({ projectId, projectSlug, initialShowSetting
|
|
|
1031
1135
|
</button>
|
|
1032
1136
|
</div>
|
|
1033
1137
|
<div className="flex items-center gap-1.5 px-3 pb-2">
|
|
1034
|
-
<
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
return c ? (c.name || `Cycle ${c.number}`) : "Cycle";
|
|
1060
|
-
})()
|
|
1061
|
-
: "Cycle"}
|
|
1062
|
-
</span>
|
|
1063
|
-
<ChevronDown size={12} />
|
|
1064
|
-
</button>
|
|
1065
|
-
{showCyclePicker && (
|
|
1066
|
-
<div className="absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-[var(--card-border)] bg-[var(--card-bg)] py-1 shadow-lg">
|
|
1067
|
-
<button
|
|
1068
|
-
type="button"
|
|
1069
|
-
className={`flex w-full items-center px-3 py-1.5 text-left text-xs transition-colors hover:bg-[var(--background)] ${
|
|
1070
|
-
!selectedCycleId ? "font-medium text-[var(--foreground)]" : "text-[var(--muted-foreground)]"
|
|
1071
|
-
}`}
|
|
1072
|
-
onClick={() => {
|
|
1073
|
-
setSelectedCycleId(undefined);
|
|
1074
|
-
setShowCyclePicker(false);
|
|
1075
|
-
}}
|
|
1076
|
-
>
|
|
1077
|
-
All cycles
|
|
1078
|
-
</button>
|
|
1079
|
-
{cycles.map((cycle) => {
|
|
1080
|
-
const now = new Date();
|
|
1081
|
-
const start = new Date(cycle.startsAt);
|
|
1082
|
-
const end = new Date(cycle.endsAt);
|
|
1083
|
-
const isCurrent = now >= start && now <= end;
|
|
1084
|
-
const label = cycle.name || `Cycle ${cycle.number}`;
|
|
1085
|
-
return (
|
|
1086
|
-
<button
|
|
1087
|
-
key={cycle.id}
|
|
1088
|
-
type="button"
|
|
1089
|
-
className={`flex w-full items-center justify-between px-3 py-1.5 text-left text-xs transition-colors hover:bg-[var(--background)] ${
|
|
1090
|
-
selectedCycleId === cycle.id ? "font-medium text-[var(--foreground)]" : "text-[var(--muted-foreground)]"
|
|
1091
|
-
}`}
|
|
1092
|
-
onClick={() => {
|
|
1093
|
-
setSelectedCycleId(cycle.id);
|
|
1094
|
-
setShowCyclePicker(false);
|
|
1095
|
-
}}
|
|
1096
|
-
>
|
|
1097
|
-
<span className="flex items-center gap-1.5">
|
|
1098
|
-
{label}
|
|
1099
|
-
{isCurrent && (
|
|
1100
|
-
<span className="rounded bg-green-500/10 px-1 py-0.5 text-[9px] font-bold uppercase text-green-400">
|
|
1101
|
-
current
|
|
1102
|
-
</span>
|
|
1103
|
-
)}
|
|
1104
|
-
</span>
|
|
1105
|
-
{selectedCycleId === cycle.id && <Check size={12} />}
|
|
1106
|
-
</button>
|
|
1107
|
-
);
|
|
1108
|
-
})}
|
|
1109
|
-
{cycles.length === 0 && (
|
|
1110
|
-
<div className="px-3 py-2 text-xs text-[var(--muted-foreground)]">No cycles found</div>
|
|
1111
|
-
)}
|
|
1112
|
-
</div>
|
|
1113
|
-
)}
|
|
1114
|
-
</div>
|
|
1138
|
+
<FilterSelect
|
|
1139
|
+
label="Assignee"
|
|
1140
|
+
value={selectedAssigneeId}
|
|
1141
|
+
options={assigneeOptions}
|
|
1142
|
+
activeClasses="border-blue-500/30 bg-blue-500/10 text-blue-400"
|
|
1143
|
+
onChange={setSelectedAssigneeId}
|
|
1144
|
+
/>
|
|
1145
|
+
{showWorkspaceFilter ? (
|
|
1146
|
+
<FilterSelect
|
|
1147
|
+
label="Workspace"
|
|
1148
|
+
value={selectedWorkspaceId}
|
|
1149
|
+
options={workspaceOptions}
|
|
1150
|
+
activeClasses="border-emerald-500/30 bg-emerald-500/10 text-emerald-400"
|
|
1151
|
+
onChange={setSelectedWorkspaceId}
|
|
1152
|
+
/>
|
|
1153
|
+
) : null}
|
|
1154
|
+
{showCycleFilter ? (
|
|
1155
|
+
<FilterSelect
|
|
1156
|
+
label="Cycle"
|
|
1157
|
+
value={selectedCycleId}
|
|
1158
|
+
options={cycleOptions}
|
|
1159
|
+
activeClasses="border-purple-500/30 bg-purple-500/10 text-purple-400"
|
|
1160
|
+
onChange={setSelectedCycleId}
|
|
1161
|
+
/>
|
|
1162
|
+
) : null}
|
|
1115
1163
|
</div>
|
|
1116
1164
|
</div>
|
|
1117
1165
|
|
|
@@ -1543,6 +1543,7 @@ export function ChatContainer({
|
|
|
1543
1543
|
participants={activeParticipants}
|
|
1544
1544
|
projectGroups={threadProjects}
|
|
1545
1545
|
projects={projectMentions}
|
|
1546
|
+
projectSlug={effectiveProjectSlug}
|
|
1546
1547
|
messages={messages}
|
|
1547
1548
|
commands={slashCommands}
|
|
1548
1549
|
placeholder="Reply — @name to mention, /search, /summarize"
|
|
@@ -1554,7 +1555,7 @@ export function ChatContainer({
|
|
|
1554
1555
|
/>
|
|
1555
1556
|
);
|
|
1556
1557
|
},
|
|
1557
|
-
[handleThreadReply, handleStopThread, streaming, activeParticipants, threadProjects, projectMentions, slashCommands, messages, autoMode, handleAutoModeChange, activeProcesses, activeChatRuns, activeProjectRepos, selectedRepoIds, handleRepoSelectionChange]
|
|
1558
|
+
[handleThreadReply, handleStopThread, streaming, activeParticipants, threadProjects, projectMentions, effectiveProjectSlug, slashCommands, messages, autoMode, handleAutoModeChange, activeProcesses, activeChatRuns, activeProjectRepos, selectedRepoIds, handleRepoSelectionChange]
|
|
1558
1559
|
);
|
|
1559
1560
|
|
|
1560
1561
|
const toggleWorkspaceSidebar = useCallback(() => {
|
|
@@ -1950,6 +1951,7 @@ export function ChatContainer({
|
|
|
1950
1951
|
participants={activeParticipants}
|
|
1951
1952
|
projects={projectMentions}
|
|
1952
1953
|
projectGroups={threadProjects}
|
|
1954
|
+
projectSlug={effectiveProjectSlug}
|
|
1953
1955
|
messages={messages}
|
|
1954
1956
|
commands={slashCommands}
|
|
1955
1957
|
pendingThreadInsert={pendingThreadInsert}
|
|
@@ -6,6 +6,7 @@ import StarterKit from "@tiptap/starter-kit";
|
|
|
6
6
|
import Placeholder from "@tiptap/extension-placeholder";
|
|
7
7
|
import {
|
|
8
8
|
useMentionAutocomplete,
|
|
9
|
+
type MentionLinearIssue,
|
|
9
10
|
type MentionProject,
|
|
10
11
|
type MentionSuggestion,
|
|
11
12
|
} from "@/hooks/useMentionAutocomplete";
|
|
@@ -15,7 +16,12 @@ import { useFileMention } from "@/hooks/useFileMention";
|
|
|
15
16
|
import { useThreadMention, type Discussion } from "@/hooks/useThreadMention";
|
|
16
17
|
import { useComposerAttachments } from "@/hooks/useComposerAttachments";
|
|
17
18
|
import { useComposerHistory } from "@/hooks/useComposerHistory";
|
|
19
|
+
import { useLinearIssueMentions } from "@/hooks/useLinearIssueMentions";
|
|
18
20
|
import { buildAgentContext } from "@/lib/chat/agentContextBuilder";
|
|
21
|
+
import {
|
|
22
|
+
buildLinearIssueContextPrefix,
|
|
23
|
+
extractMentionedLinearIssueIds,
|
|
24
|
+
} from "@/lib/chat/linear-issue-context";
|
|
19
25
|
import {
|
|
20
26
|
extractComposerRouting,
|
|
21
27
|
type ComposerRoutingMetadata,
|
|
@@ -31,6 +37,7 @@ import {
|
|
|
31
37
|
ProjectMention,
|
|
32
38
|
FileMention,
|
|
33
39
|
ThreadMention,
|
|
40
|
+
LinearIssueMention,
|
|
34
41
|
} from "@/lib/tiptap/composer-mentions";
|
|
35
42
|
import { serializeToPlainText } from "@/lib/tiptap/serialize-composer";
|
|
36
43
|
import { getCurrentParagraphText, plainTextRangeToPos } from "@/lib/tiptap/editor-utils";
|
|
@@ -76,6 +83,8 @@ interface Props {
|
|
|
76
83
|
projects?: MentionProject[];
|
|
77
84
|
/** Projects with agent rosters */
|
|
78
85
|
projectGroups?: ProjectWithAgents[];
|
|
86
|
+
/** Active project slug, used for scoping cached Linear issue pulls */
|
|
87
|
+
projectSlug?: string;
|
|
79
88
|
/** All messages in the current thread — used for @# discussion mentions */
|
|
80
89
|
messages?: GroupMessage[];
|
|
81
90
|
commands: SlashCommand[];
|
|
@@ -129,6 +138,7 @@ export function Composer({
|
|
|
129
138
|
participants,
|
|
130
139
|
projects = [],
|
|
131
140
|
projectGroups = [],
|
|
141
|
+
projectSlug,
|
|
132
142
|
messages: allMessages = [],
|
|
133
143
|
commands,
|
|
134
144
|
placeholder = "Message — @name to mention, /search, /summarize",
|
|
@@ -173,8 +183,16 @@ export function Composer({
|
|
|
173
183
|
}, []);
|
|
174
184
|
|
|
175
185
|
const [threadRefs, setThreadRefs] = useState<ThreadRef[]>([]);
|
|
176
|
-
|
|
177
|
-
const
|
|
186
|
+
const { issues: cachedLinearIssues } = useLinearIssueMentions({ projectSlug });
|
|
187
|
+
const linearIssues = cachedLinearIssues as MentionLinearIssue[];
|
|
188
|
+
|
|
189
|
+
const mention = useMentionAutocomplete({
|
|
190
|
+
participants,
|
|
191
|
+
projectGroups,
|
|
192
|
+
projects,
|
|
193
|
+
linearIssues,
|
|
194
|
+
maxSuggestions: 8,
|
|
195
|
+
});
|
|
178
196
|
const command = useCommandAutocomplete({ commands, maxSuggestions: 6 });
|
|
179
197
|
const fileMention = useFileMention({ maxSuggestions: 8 });
|
|
180
198
|
const threadMention = useThreadMention({ messages: allMessages, maxSuggestions: 8 });
|
|
@@ -235,6 +253,7 @@ export function Composer({
|
|
|
235
253
|
ProjectMention,
|
|
236
254
|
FileMention,
|
|
237
255
|
ThreadMention,
|
|
256
|
+
LinearIssueMention,
|
|
238
257
|
],
|
|
239
258
|
editorProps: {
|
|
240
259
|
attributes: {
|
|
@@ -473,6 +492,17 @@ export function Composer({
|
|
|
473
492
|
name: suggestion.project.name,
|
|
474
493
|
},
|
|
475
494
|
}
|
|
495
|
+
: suggestion.kind === "ticket"
|
|
496
|
+
? {
|
|
497
|
+
type: "linearIssueMention",
|
|
498
|
+
attrs: {
|
|
499
|
+
id: suggestion.issue.id,
|
|
500
|
+
identifier: suggestion.issue.identifier,
|
|
501
|
+
title: suggestion.issue.title,
|
|
502
|
+
status: suggestion.issue.status,
|
|
503
|
+
url: suggestion.issue.url,
|
|
504
|
+
},
|
|
505
|
+
}
|
|
476
506
|
: {
|
|
477
507
|
type: "participantMention",
|
|
478
508
|
attrs: {
|
|
@@ -628,6 +658,28 @@ export function Composer({
|
|
|
628
658
|
}
|
|
629
659
|
}
|
|
630
660
|
|
|
661
|
+
const mentionedLinearIssueIds = extractMentionedLinearIssueIds(doc);
|
|
662
|
+
if (mentionedLinearIssueIds.length > 0) {
|
|
663
|
+
try {
|
|
664
|
+
const response = await fetch("/api/linear/issues/context", {
|
|
665
|
+
method: "POST",
|
|
666
|
+
headers: { "Content-Type": "application/json" },
|
|
667
|
+
body: JSON.stringify({ issueIds: mentionedLinearIssueIds }),
|
|
668
|
+
});
|
|
669
|
+
if (!response.ok) {
|
|
670
|
+
throw new Error(`Failed to load issue context: ${response.status}`);
|
|
671
|
+
}
|
|
672
|
+
const data = await response.json().catch(() => ({}));
|
|
673
|
+
const issues = Array.isArray(data.issues) ? data.issues : [];
|
|
674
|
+
const issueContext = buildLinearIssueContextPrefix(issues);
|
|
675
|
+
if (issueContext) {
|
|
676
|
+
prefixParts.push(issueContext.trimEnd());
|
|
677
|
+
}
|
|
678
|
+
} catch (error) {
|
|
679
|
+
console.error("Failed to load Linear issue mention context:", error);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
|
|
631
683
|
const promptPrefix = prefixParts.length > 0 ? prefixParts.join("\n\n") + "\n\n" : undefined;
|
|
632
684
|
const routing = extractComposerRouting(doc, pinnedParticipantId);
|
|
633
685
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
4
|
import type { MentionSuggestion } from "@/hooks/useMentionAutocomplete";
|
|
5
|
-
import { FolderKanban, Users } from "lucide-react";
|
|
5
|
+
import { FolderKanban, Tag, Users } from "lucide-react";
|
|
6
6
|
|
|
7
7
|
interface MentionPopoverProps {
|
|
8
8
|
isOpen: boolean;
|
|
@@ -55,7 +55,9 @@ export function MentionPopover({
|
|
|
55
55
|
? `project-group-${suggestion.project.id}`
|
|
56
56
|
: suggestion.kind === "project"
|
|
57
57
|
? `project-${suggestion.project.id}`
|
|
58
|
-
: suggestion.
|
|
58
|
+
: suggestion.kind === "ticket"
|
|
59
|
+
? `ticket-${suggestion.issue.id}`
|
|
60
|
+
: suggestion.participant.id;
|
|
59
61
|
const group = suggestion.group;
|
|
60
62
|
|
|
61
63
|
// Show group header if this is a new non-empty group
|
|
@@ -131,6 +133,45 @@ export function MentionPopover({
|
|
|
131
133
|
);
|
|
132
134
|
}
|
|
133
135
|
|
|
136
|
+
if (suggestion.kind === "ticket") {
|
|
137
|
+
return (
|
|
138
|
+
<div key={id}>
|
|
139
|
+
{groupHeader}
|
|
140
|
+
<button
|
|
141
|
+
type="button"
|
|
142
|
+
role="option"
|
|
143
|
+
id={`${optionIdPrefix}-${id}`}
|
|
144
|
+
aria-selected={isActive}
|
|
145
|
+
ref={(element) => {
|
|
146
|
+
optionRefs.current[index] = element;
|
|
147
|
+
}}
|
|
148
|
+
className={`w-full px-3 py-2 text-left text-sm transition-colors ${
|
|
149
|
+
isActive ? "bg-[var(--primary-muted)] text-[var(--foreground)]" : "text-[var(--foreground)] hover:bg-[var(--app-shell-subtle)]"
|
|
150
|
+
}`}
|
|
151
|
+
onMouseDown={(e) => {
|
|
152
|
+
e.preventDefault();
|
|
153
|
+
}}
|
|
154
|
+
onClick={() => onSelect(suggestion)}
|
|
155
|
+
>
|
|
156
|
+
<span className="flex items-start gap-2">
|
|
157
|
+
<Tag className="mt-0.5 h-3.5 w-3.5 text-[var(--muted-foreground)]" aria-hidden />
|
|
158
|
+
<span className="min-w-0">
|
|
159
|
+
<span className="block font-medium">
|
|
160
|
+
{suggestion.issue.identifier}
|
|
161
|
+
<span className="ml-2 text-xs text-[var(--muted-foreground)]">
|
|
162
|
+
{suggestion.issue.status}
|
|
163
|
+
</span>
|
|
164
|
+
</span>
|
|
165
|
+
<span className="block truncate text-xs text-[var(--muted-foreground)]">
|
|
166
|
+
{suggestion.issue.title}
|
|
167
|
+
</span>
|
|
168
|
+
</span>
|
|
169
|
+
</span>
|
|
170
|
+
</button>
|
|
171
|
+
</div>
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
134
175
|
const participant = suggestion.participant;
|
|
135
176
|
return (
|
|
136
177
|
<div key={id}>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
import type { LinearIssue } from "@/hooks/useLinearIssues";
|
|
5
|
+
|
|
6
|
+
interface UseLinearIssueMentionsOptions {
|
|
7
|
+
projectSlug?: string;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
limit?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface UseLinearIssueMentionsReturn {
|
|
13
|
+
issues: LinearIssue[];
|
|
14
|
+
loading: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function useLinearIssueMentions({
|
|
18
|
+
projectSlug,
|
|
19
|
+
enabled = true,
|
|
20
|
+
limit = 500,
|
|
21
|
+
}: UseLinearIssueMentionsOptions = {}): UseLinearIssueMentionsReturn {
|
|
22
|
+
const [issues, setIssues] = useState<LinearIssue[]>([]);
|
|
23
|
+
const [loading, setLoading] = useState(false);
|
|
24
|
+
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (!enabled) {
|
|
27
|
+
setIssues([]);
|
|
28
|
+
setLoading(false);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
let cancelled = false;
|
|
33
|
+
const params = new URLSearchParams();
|
|
34
|
+
params.set("limit", String(limit));
|
|
35
|
+
if (projectSlug) {
|
|
36
|
+
params.set("projectSlug", projectSlug);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
setLoading(true);
|
|
40
|
+
fetch(`/api/linear/issues?${params.toString()}`)
|
|
41
|
+
.then(async (response) => {
|
|
42
|
+
const data = await response.json().catch(() => ({}));
|
|
43
|
+
if (!cancelled) {
|
|
44
|
+
setIssues(Array.isArray(data.issues) ? data.issues : []);
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
.catch(() => {
|
|
48
|
+
if (!cancelled) {
|
|
49
|
+
setIssues([]);
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
.finally(() => {
|
|
53
|
+
if (!cancelled) {
|
|
54
|
+
setLoading(false);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
return () => {
|
|
59
|
+
cancelled = true;
|
|
60
|
+
};
|
|
61
|
+
}, [enabled, limit, projectSlug]);
|
|
62
|
+
|
|
63
|
+
return { issues, loading };
|
|
64
|
+
}
|