@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.
Files changed (440) hide show
  1. package/cloud-runtime/standalone/.linear-token.json +2 -2
  2. package/cloud-runtime/standalone/.next/BUILD_ID +1 -1
  3. package/cloud-runtime/standalone/.next/app-path-routes-manifest.json +2 -0
  4. package/cloud-runtime/standalone/.next/build-manifest.json +2 -2
  5. package/cloud-runtime/standalone/.next/prerender-manifest.json +3 -3
  6. package/cloud-runtime/standalone/.next/routes-manifest.json +13 -1
  7. package/cloud-runtime/standalone/.next/server/app/_global-error.html +2 -2
  8. package/cloud-runtime/standalone/.next/server/app/_global-error.rsc +1 -1
  9. package/cloud-runtime/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/cloud-runtime/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/cloud-runtime/standalone/.next/server/app/_not-found.html +2 -2
  16. package/cloud-runtime/standalone/.next/server/app/_not-found.rsc +2 -2
  17. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  18. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  20. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  23. package/cloud-runtime/standalone/.next/server/app/agents/[id]/page.js.nft.json +1 -1
  24. package/cloud-runtime/standalone/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
  25. package/cloud-runtime/standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
  26. package/cloud-runtime/standalone/.next/server/app/agents.html +2 -2
  27. package/cloud-runtime/standalone/.next/server/app/agents.rsc +2 -2
  28. package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +2 -2
  29. package/cloud-runtime/standalone/.next/server/app/agents.segments/_head.segment.rsc +1 -1
  30. package/cloud-runtime/standalone/.next/server/app/agents.segments/_index.segment.rsc +2 -2
  31. package/cloud-runtime/standalone/.next/server/app/agents.segments/_tree.segment.rsc +2 -2
  32. package/cloud-runtime/standalone/.next/server/app/agents.segments/agents/__PAGE__.segment.rsc +1 -1
  33. package/cloud-runtime/standalone/.next/server/app/agents.segments/agents.segment.rsc +1 -1
  34. package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js +1 -1
  35. package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js.nft.json +1 -1
  36. package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js +1 -1
  37. package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js.nft.json +1 -1
  38. package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js +1 -1
  39. package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js.nft.json +1 -1
  40. package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js +1 -1
  41. package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js.nft.json +1 -1
  42. package/cloud-runtime/standalone/.next/server/app/api/automations/route.js +1 -1
  43. package/cloud-runtime/standalone/.next/server/app/api/automations/route.js.nft.json +1 -1
  44. package/cloud-runtime/standalone/.next/server/app/api/chat/route.js +1 -1
  45. package/cloud-runtime/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
  46. package/cloud-runtime/standalone/.next/server/app/api/file-search/route.js.nft.json +1 -1
  47. package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js +1 -1
  48. package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js.nft.json +1 -1
  49. package/cloud-runtime/standalone/.next/server/app/api/health/route.js +1 -1
  50. package/cloud-runtime/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
  51. package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js +1 -1
  52. package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js.nft.json +1 -1
  53. package/cloud-runtime/standalone/.next/server/app/api/linear/callback/route.js +1 -1
  54. package/cloud-runtime/standalone/.next/server/app/api/linear/callback/route.js.nft.json +1 -1
  55. package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route/app-paths-manifest.json +3 -0
  56. package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route/build-manifest.json +11 -0
  57. package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route/server-reference-manifest.json +4 -0
  58. package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js +10 -0
  59. package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js.map +5 -0
  60. package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route.js.nft.json +1 -0
  61. package/cloud-runtime/standalone/.next/server/app/api/linear/issues/context/route_client-reference-manifest.js +2 -0
  62. package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route.js +5 -2
  63. package/cloud-runtime/standalone/.next/server/app/api/linear/issues/route.js.nft.json +1 -1
  64. package/cloud-runtime/standalone/.next/server/app/api/linear/options/route/app-paths-manifest.json +3 -0
  65. package/cloud-runtime/standalone/.next/server/app/api/linear/options/route/build-manifest.json +11 -0
  66. package/cloud-runtime/standalone/.next/server/app/api/linear/options/route/server-reference-manifest.json +4 -0
  67. package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js +7 -0
  68. package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js.map +5 -0
  69. package/cloud-runtime/standalone/.next/server/app/api/linear/options/route.js.nft.json +1 -0
  70. package/cloud-runtime/standalone/.next/server/app/api/linear/options/route_client-reference-manifest.js +2 -0
  71. package/cloud-runtime/standalone/.next/server/app/api/linear/status/route.js.nft.json +1 -1
  72. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js +1 -1
  73. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js.nft.json +1 -1
  74. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js +1 -1
  75. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js.nft.json +1 -1
  76. package/cloud-runtime/standalone/.next/server/app/api/participants/route.js +1 -1
  77. package/cloud-runtime/standalone/.next/server/app/api/participants/route.js.nft.json +1 -1
  78. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js +1 -1
  79. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js.nft.json +1 -1
  80. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js +1 -1
  81. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js.nft.json +1 -1
  82. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v2/route.js +1 -1
  83. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v2/route.js.nft.json +1 -1
  84. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/route.js +1 -1
  85. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  86. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/skills/route.js +1 -1
  87. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/skills/route.js.nft.json +1 -1
  88. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/threads/route.js +1 -1
  89. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/threads/route.js.nft.json +1 -1
  90. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/variables/route.js +1 -1
  91. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/variables/route.js.nft.json +1 -1
  92. package/cloud-runtime/standalone/.next/server/app/api/projects/route.js +1 -1
  93. package/cloud-runtime/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
  94. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js +1 -1
  95. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js.nft.json +1 -1
  96. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js +1 -1
  97. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js.nft.json +1 -1
  98. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js +1 -1
  99. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js.nft.json +1 -1
  100. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js +1 -1
  101. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js.nft.json +1 -1
  102. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js +1 -1
  103. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js.nft.json +1 -1
  104. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js +1 -1
  105. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js.nft.json +1 -1
  106. package/cloud-runtime/standalone/.next/server/app/api/providers/route.js.nft.json +1 -1
  107. package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js +1 -1
  108. package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js.nft.json +1 -1
  109. package/cloud-runtime/standalone/.next/server/app/api/queue/route.js +4 -4
  110. package/cloud-runtime/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
  111. package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js +4 -4
  112. package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js.nft.json +1 -1
  113. package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js +4 -4
  114. package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js.nft.json +1 -1
  115. package/cloud-runtime/standalone/.next/server/app/api/schedules/route.js +1 -1
  116. package/cloud-runtime/standalone/.next/server/app/api/schedules/route.js.nft.json +1 -1
  117. package/cloud-runtime/standalone/.next/server/app/api/status/route.js +1 -1
  118. package/cloud-runtime/standalone/.next/server/app/api/status/route.js.nft.json +1 -1
  119. package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js +1 -1
  120. package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js.nft.json +1 -1
  121. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js +1 -1
  122. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js.nft.json +1 -1
  123. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/route.js +1 -1
  124. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/route.js.nft.json +1 -1
  125. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/costs/route.js +1 -1
  126. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/costs/route.js.nft.json +1 -1
  127. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/dependencies/route.js +1 -1
  128. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/dependencies/route.js.nft.json +1 -1
  129. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/events/route.js +1 -1
  130. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/events/route.js.nft.json +1 -1
  131. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/history/route.js +1 -1
  132. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/history/route.js.nft.json +1 -1
  133. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/metrics/route.js +1 -1
  134. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/metrics/route.js.nft.json +1 -1
  135. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js +1 -1
  136. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js.nft.json +1 -1
  137. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/restart/route.js +1 -1
  138. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/restart/route.js.nft.json +1 -1
  139. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/resume/route.js +1 -1
  140. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/resume/route.js.nft.json +1 -1
  141. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/rollback/route.js +1 -1
  142. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/rollback/route.js.nft.json +1 -1
  143. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/route.js +1 -1
  144. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/route.js.nft.json +1 -1
  145. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/schedule/route.js +1 -1
  146. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/schedule/route.js.nft.json +1 -1
  147. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/start/route.js +1 -1
  148. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/start/route.js.nft.json +1 -1
  149. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/stop/route.js +1 -1
  150. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/stop/route.js.nft.json +1 -1
  151. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js +1 -1
  152. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js.nft.json +1 -1
  153. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/route.js +1 -1
  154. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/route.js.nft.json +1 -1
  155. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js +1 -1
  156. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js.nft.json +1 -1
  157. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js +1 -1
  158. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js.nft.json +1 -1
  159. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js +1 -1
  160. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js.nft.json +1 -1
  161. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js +1 -1
  162. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js.nft.json +1 -1
  163. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js +1 -1
  164. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js.nft.json +1 -1
  165. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js +1 -1
  166. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js.nft.json +1 -1
  167. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js +1 -1
  168. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js.nft.json +1 -1
  169. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/route.js +1 -1
  170. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
  171. package/cloud-runtime/standalone/.next/server/app/api/tasks/assign-orphans/route.js +1 -1
  172. package/cloud-runtime/standalone/.next/server/app/api/tasks/assign-orphans/route.js.nft.json +1 -1
  173. package/cloud-runtime/standalone/.next/server/app/api/tasks/extract/route.js +1 -1
  174. package/cloud-runtime/standalone/.next/server/app/api/tasks/extract/route.js.nft.json +1 -1
  175. package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js +3 -3
  176. package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js.nft.json +1 -1
  177. package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js +1 -1
  178. package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js.nft.json +1 -1
  179. package/cloud-runtime/standalone/.next/server/app/api/threads/route.js +1 -1
  180. package/cloud-runtime/standalone/.next/server/app/api/threads/route.js.nft.json +1 -1
  181. package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js +1 -1
  182. package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js.nft.json +1 -1
  183. package/cloud-runtime/standalone/.next/server/app/automations/page/react-loadable-manifest.json +2 -2
  184. package/cloud-runtime/standalone/.next/server/app/automations/page.js.nft.json +1 -1
  185. package/cloud-runtime/standalone/.next/server/app/automations/page_client-reference-manifest.js +1 -1
  186. package/cloud-runtime/standalone/.next/server/app/automations.html +2 -2
  187. package/cloud-runtime/standalone/.next/server/app/automations.rsc +3 -3
  188. package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +3 -3
  189. package/cloud-runtime/standalone/.next/server/app/automations.segments/_head.segment.rsc +1 -1
  190. package/cloud-runtime/standalone/.next/server/app/automations.segments/_index.segment.rsc +2 -2
  191. package/cloud-runtime/standalone/.next/server/app/automations.segments/_tree.segment.rsc +2 -2
  192. package/cloud-runtime/standalone/.next/server/app/automations.segments/automations/__PAGE__.segment.rsc +2 -2
  193. package/cloud-runtime/standalone/.next/server/app/automations.segments/automations.segment.rsc +1 -1
  194. package/cloud-runtime/standalone/.next/server/app/board/page_client-reference-manifest.js +1 -1
  195. package/cloud-runtime/standalone/.next/server/app/board.html +2 -2
  196. package/cloud-runtime/standalone/.next/server/app/board.rsc +2 -2
  197. package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +2 -2
  198. package/cloud-runtime/standalone/.next/server/app/board.segments/_head.segment.rsc +1 -1
  199. package/cloud-runtime/standalone/.next/server/app/board.segments/_index.segment.rsc +2 -2
  200. package/cloud-runtime/standalone/.next/server/app/board.segments/_tree.segment.rsc +2 -2
  201. package/cloud-runtime/standalone/.next/server/app/board.segments/board/__PAGE__.segment.rsc +1 -1
  202. package/cloud-runtime/standalone/.next/server/app/board.segments/board.segment.rsc +1 -1
  203. package/cloud-runtime/standalone/.next/server/app/execution-graph/page_client-reference-manifest.js +1 -1
  204. package/cloud-runtime/standalone/.next/server/app/execution-graph.html +2 -2
  205. package/cloud-runtime/standalone/.next/server/app/execution-graph.rsc +2 -2
  206. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +2 -2
  207. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_head.segment.rsc +1 -1
  208. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_index.segment.rsc +2 -2
  209. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_tree.segment.rsc +2 -2
  210. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +1 -1
  211. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +1 -1
  212. package/cloud-runtime/standalone/.next/server/app/index.html +2 -2
  213. package/cloud-runtime/standalone/.next/server/app/index.rsc +4 -4
  214. package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  215. package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +4 -4
  216. package/cloud-runtime/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  217. package/cloud-runtime/standalone/.next/server/app/index.segments/_index.segment.rsc +2 -2
  218. package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +3 -3
  219. package/cloud-runtime/standalone/.next/server/app/page.js.nft.json +1 -1
  220. package/cloud-runtime/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  221. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/react-loadable-manifest.json +2 -2
  222. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page.js.nft.json +1 -1
  223. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page_client-reference-manifest.js +1 -1
  224. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page_client-reference-manifest.js +1 -1
  225. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page_client-reference-manifest.js +1 -1
  226. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page/react-loadable-manifest.json +3 -3
  227. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page.js.nft.json +1 -1
  228. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/linear/page_client-reference-manifest.js +1 -1
  229. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
  230. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page.js.nft.json +1 -1
  231. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page_client-reference-manifest.js +1 -1
  232. package/cloud-runtime/standalone/.next/server/app/projects/orphans/page_client-reference-manifest.js +1 -1
  233. package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +2 -2
  234. package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +2 -2
  235. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +2 -2
  236. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_head.segment.rsc +1 -1
  237. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_index.segment.rsc +2 -2
  238. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_tree.segment.rsc +2 -2
  239. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +1 -1
  240. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +1 -1
  241. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects.segment.rsc +1 -1
  242. package/cloud-runtime/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  243. package/cloud-runtime/standalone/.next/server/app/projects.html +2 -2
  244. package/cloud-runtime/standalone/.next/server/app/projects.rsc +2 -2
  245. package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +2 -2
  246. package/cloud-runtime/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
  247. package/cloud-runtime/standalone/.next/server/app/projects.segments/_index.segment.rsc +2 -2
  248. package/cloud-runtime/standalone/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
  249. package/cloud-runtime/standalone/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +1 -1
  250. package/cloud-runtime/standalone/.next/server/app/projects.segments/projects.segment.rsc +1 -1
  251. package/cloud-runtime/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  252. package/cloud-runtime/standalone/.next/server/app/settings.html +2 -2
  253. package/cloud-runtime/standalone/.next/server/app/settings.rsc +2 -2
  254. package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  255. package/cloud-runtime/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  256. package/cloud-runtime/standalone/.next/server/app/settings.segments/_index.segment.rsc +2 -2
  257. package/cloud-runtime/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  258. package/cloud-runtime/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +1 -1
  259. package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  260. package/cloud-runtime/standalone/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  261. package/cloud-runtime/standalone/.next/server/app/skills.html +2 -2
  262. package/cloud-runtime/standalone/.next/server/app/skills.rsc +2 -2
  263. package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +2 -2
  264. package/cloud-runtime/standalone/.next/server/app/skills.segments/_head.segment.rsc +1 -1
  265. package/cloud-runtime/standalone/.next/server/app/skills.segments/_index.segment.rsc +2 -2
  266. package/cloud-runtime/standalone/.next/server/app/skills.segments/_tree.segment.rsc +2 -2
  267. package/cloud-runtime/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +1 -1
  268. package/cloud-runtime/standalone/.next/server/app/skills.segments/skills.segment.rsc +1 -1
  269. package/cloud-runtime/standalone/.next/server/app/status/page_client-reference-manifest.js +1 -1
  270. package/cloud-runtime/standalone/.next/server/app/status.html +2 -2
  271. package/cloud-runtime/standalone/.next/server/app/status.rsc +3 -3
  272. package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +3 -3
  273. package/cloud-runtime/standalone/.next/server/app/status.segments/_head.segment.rsc +1 -1
  274. package/cloud-runtime/standalone/.next/server/app/status.segments/_index.segment.rsc +2 -2
  275. package/cloud-runtime/standalone/.next/server/app/status.segments/_tree.segment.rsc +2 -2
  276. package/cloud-runtime/standalone/.next/server/app/status.segments/status/__PAGE__.segment.rsc +2 -2
  277. package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +1 -1
  278. package/cloud-runtime/standalone/.next/server/app/thread/[id]/page.js.nft.json +1 -1
  279. package/cloud-runtime/standalone/.next/server/app/thread/[id]/page_client-reference-manifest.js +1 -1
  280. package/cloud-runtime/standalone/.next/server/app/welcome/page_client-reference-manifest.js +1 -1
  281. package/cloud-runtime/standalone/.next/server/app/welcome.html +2 -2
  282. package/cloud-runtime/standalone/.next/server/app/welcome.rsc +2 -2
  283. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +2 -2
  284. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_head.segment.rsc +1 -1
  285. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_index.segment.rsc +2 -2
  286. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_tree.segment.rsc +2 -2
  287. package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +1 -1
  288. package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +1 -1
  289. package/cloud-runtime/standalone/.next/server/app-paths-manifest.json +2 -0
  290. package/cloud-runtime/standalone/.next/server/chunks/{[externals]__29a2424c._.js → [externals]__31e26905._.js} +1 -1
  291. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__fb1f7e58._.js → [root-of-the-server]__00fd30c8._.js} +2 -2
  292. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e4f01b5c._.js → [root-of-the-server]__0e98af48._.js} +2 -2
  293. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1154e5b3._.js +67 -0
  294. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__44ef900b._.js → [root-of-the-server]__11c1214e._.js} +2 -2
  295. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5e5eb809._.js → [root-of-the-server]__152b2000._.js} +10 -10
  296. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__f21849ad._.js → [root-of-the-server]__15f3bb96._.js} +2 -2
  297. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__7cade6c6._.js → [root-of-the-server]__1f53e82e._.js} +2 -2
  298. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c77efd85._.js → [root-of-the-server]__20533a2c._.js} +2 -2
  299. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e0994be2._.js → [root-of-the-server]__3b1431b6._.js} +2 -2
  300. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3b83b657._.js +147 -0
  301. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__d3945cae._.js → [root-of-the-server]__3bf516b6._.js} +2 -2
  302. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__2d15af44._.js → [root-of-the-server]__3fd3c5b1._.js} +2 -2
  303. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__13fe776f._.js → [root-of-the-server]__42e713f5._.js} +2 -2
  304. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__1be9b30e._.js → [root-of-the-server]__4b0b5fe1._.js} +2 -2
  305. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__558389f7._.js +3 -0
  306. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5a042505._.js → [root-of-the-server]__5aaf8c25._.js} +2 -2
  307. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__22b7bf38._.js → [root-of-the-server]__5b13e7a5._.js} +2 -2
  308. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__34efe92e._.js → [root-of-the-server]__635fe0f9._.js} +2 -2
  309. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c9550a93._.js → [root-of-the-server]__68da2825._.js} +2 -2
  310. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e5bad635._.js → [root-of-the-server]__6921fe3f._.js} +2 -2
  311. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__dc542063._.js → [root-of-the-server]__6988985c._.js} +2 -2
  312. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c5025f86._.js → [root-of-the-server]__7012e83d._.js} +7 -7
  313. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__9d3a2caa._.js → [root-of-the-server]__70327010._.js} +2 -2
  314. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__748c718f._.js +147 -0
  315. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__76290829._.js +46 -8
  316. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c0919d7d._.js → [root-of-the-server]__79fa35e4._.js} +2 -2
  317. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ac9b93fd._.js → [root-of-the-server]__8d205f82._.js} +2 -2
  318. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__0281ad06._.js → [root-of-the-server]__9ffa67b7._.js} +2 -2
  319. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__dd1cb250._.js → [root-of-the-server]__a300f072._.js} +2 -2
  320. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5fbc700c._.js → [root-of-the-server]__a7e0ac67._.js} +2 -2
  321. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__91b51f33._.js → [root-of-the-server]__aad349b4._.js} +2 -2
  322. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ad6d6402._.js +46 -8
  323. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__349d67e7._.js → [root-of-the-server]__b133856b._.js} +2 -2
  324. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__45a50de9._.js → [root-of-the-server]__c029daab._.js} +2 -2
  325. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__a1e62918._.js → [root-of-the-server]__c8195768._.js} +1 -1
  326. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ce2a1672._.js +67 -0
  327. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__a2e17f69._.js → [root-of-the-server]__d4f42f49._.js} +2 -2
  328. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d9f2041b._.js +47 -9
  329. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ad4cb055._.js → [root-of-the-server]__dca6026a._.js} +2 -2
  330. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__bacb0193._.js → [root-of-the-server]__ddb3aa76._.js} +2 -2
  331. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__de295ef3._.js +3 -0
  332. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__7d4fa0fd._.js → [root-of-the-server]__e7be56ba._.js} +2 -2
  333. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__73b17f49._.js → [root-of-the-server]__ebece93b._.js} +2 -2
  334. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ef27f8cd._.js +49 -0
  335. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__56dbe1a4._.js → [root-of-the-server]__f13c29c6._.js} +2 -2
  336. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__98d58423._.js → [root-of-the-server]__fcdaf6d8._.js} +2 -2
  337. package/cloud-runtime/standalone/.next/server/chunks/_6e7f0ae4._.js +6 -0
  338. package/cloud-runtime/standalone/.next/server/chunks/_a93e80e8._.js +3 -0
  339. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_issues_context_route_actions_0b2c282c.js +3 -0
  340. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_linear_options_route_actions_29764947.js +3 -0
  341. package/cloud-runtime/standalone/.next/server/chunks/lib_app-config_ts_7f2f30ad._.js +3 -0
  342. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__1c4256ce._.js +3 -0
  343. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__4c9d0778._.js +3 -0
  344. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__69887882._.js +3 -0
  345. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__f59f0dc7._.js +3 -0
  346. package/cloud-runtime/standalone/.next/server/chunks/ssr/{_95434d70._.js → _1d26be78._.js} +2 -2
  347. package/cloud-runtime/standalone/.next/server/chunks/ssr/_32c878b9._.js +3 -0
  348. package/cloud-runtime/standalone/.next/server/chunks/ssr/_60d0bae4._.js +3 -0
  349. package/cloud-runtime/standalone/.next/server/chunks/ssr/_77e1407a._.js +3 -0
  350. package/cloud-runtime/standalone/.next/server/chunks/ssr/_7f7a828a._.js +3 -0
  351. package/cloud-runtime/standalone/.next/server/chunks/ssr/_ba5903a7._.js +3 -0
  352. package/cloud-runtime/standalone/.next/server/chunks/ssr/_ed4fece9._.js +3 -0
  353. package/cloud-runtime/standalone/.next/server/chunks/ssr/_f51a3112._.js +3 -0
  354. package/cloud-runtime/standalone/.next/server/chunks/ssr/app_projects_[slug]_linear_page_tsx_971a6ba7._.js +3 -3
  355. package/cloud-runtime/standalone/.next/server/chunks/ssr/components_chat-ui_bfeda794._.js +7 -3
  356. package/cloud-runtime/standalone/.next/server/functions-config-manifest.json +2 -0
  357. package/cloud-runtime/standalone/.next/server/instrumentation.js +1 -1
  358. package/cloud-runtime/standalone/.next/server/middleware-manifest.json +5 -5
  359. package/cloud-runtime/standalone/.next/server/pages/404.html +2 -2
  360. package/cloud-runtime/standalone/.next/server/pages/500.html +2 -2
  361. package/cloud-runtime/standalone/.next/server/server-reference-manifest.js +1 -1
  362. package/cloud-runtime/standalone/.next/server/server-reference-manifest.json +1 -1
  363. package/cloud-runtime/standalone/.next/static/chunks/00716478a3ee55a2.js +37 -0
  364. package/cloud-runtime/standalone/.next/static/chunks/02add5a8d35c53fe.js +1 -0
  365. package/cloud-runtime/standalone/.next/static/chunks/2362d5c0dcaa5d64.js +1 -0
  366. package/cloud-runtime/standalone/.next/static/chunks/2730394502dd3664.js +1 -0
  367. package/cloud-runtime/standalone/.next/static/chunks/3091043e8c282dce.css +1 -0
  368. package/cloud-runtime/standalone/.next/static/chunks/3dc50de1c86e1ce9.js +1 -0
  369. package/cloud-runtime/standalone/.next/static/chunks/4ea8f08087116055.js +1 -0
  370. package/cloud-runtime/standalone/.next/static/chunks/5607ad702ebb8a4b.js +9 -0
  371. package/cloud-runtime/standalone/.next/static/chunks/6103b9b5538bba4d.css +2 -0
  372. package/cloud-runtime/standalone/.next/static/chunks/98c20da4973991f0.js +1 -0
  373. package/cloud-runtime/standalone/.next/static/chunks/a9da98f883ac833b.js +1 -0
  374. package/cloud-runtime/standalone/.next/static/chunks/{da12f313213a5615.js → b2127dc67c5ade9f.js} +1 -1
  375. package/cloud-runtime/standalone/.next/static/chunks/{76229fb555232113.js → b3377e39d47c71cf.js} +1 -1
  376. package/cloud-runtime/standalone/.next/static/chunks/bf2a2fafb710e63c.js +1 -0
  377. package/cloud-runtime/standalone/.next/static/chunks/c0d17e0c37ba8e7a.js +1 -0
  378. package/cloud-runtime/standalone/.next/static/chunks/db131a0b6350e416.js +1 -0
  379. package/cloud-runtime/standalone/.next/static/chunks/e51fddf53a6dc1e4.js +9 -0
  380. package/cloud-runtime/standalone/.next/static/chunks/{66769c2bf128027d.js → f4360c3e4089263f.js} +1 -1
  381. package/cloud-runtime/standalone/Dockerfile +5 -5
  382. package/cloud-runtime/standalone/app/api/linear/callback/route.ts +2 -1
  383. package/cloud-runtime/standalone/app/api/linear/issues/context/route.ts +26 -0
  384. package/cloud-runtime/standalone/app/api/linear/issues/route.ts +37 -42
  385. package/cloud-runtime/standalone/app/api/linear/options/route.ts +31 -0
  386. package/cloud-runtime/standalone/app/api/status/route.ts +2 -2
  387. package/cloud-runtime/standalone/components/LinearBoard.tsx +165 -117
  388. package/cloud-runtime/standalone/components/chat-ui/ChatContainer.tsx +3 -1
  389. package/cloud-runtime/standalone/components/chat-ui/Composer.tsx +54 -2
  390. package/cloud-runtime/standalone/components/chat-ui/MentionPopover.tsx +43 -2
  391. package/cloud-runtime/standalone/hooks/useLinearIssueMentions.ts +64 -0
  392. package/cloud-runtime/standalone/hooks/useLinearIssues.ts +26 -6
  393. package/cloud-runtime/standalone/hooks/useMentionAutocomplete.ts +54 -6
  394. package/cloud-runtime/standalone/instrumentation.ts +2 -1
  395. package/cloud-runtime/standalone/lib/app-config.ts +55 -0
  396. package/cloud-runtime/standalone/lib/chat/linear-issue-context.ts +79 -0
  397. package/cloud-runtime/standalone/lib/linear-client.ts +166 -15
  398. package/cloud-runtime/standalone/lib/linear-issue-store.ts +427 -0
  399. package/cloud-runtime/standalone/lib/linear-issues.ts +360 -0
  400. package/cloud-runtime/standalone/lib/security.ts +2 -2
  401. package/cloud-runtime/standalone/lib/tiptap/composer-mentions.ts +38 -0
  402. package/cloud-runtime/standalone/lib/tiptap/editor-utils.ts +11 -0
  403. package/cloud-runtime/standalone/lib/tiptap/serialize-composer.ts +10 -0
  404. package/cloud-runtime/standalone/next.config.ts +2 -1
  405. package/cloud-runtime/standalone/src/graph/internal-function-dispatcher.ts +2 -5
  406. package/cloud-runtime/standalone/state/automations/.state/24a6a5db-3b14-49c4-841f-29f10f015fbb.json +3 -3
  407. package/cloud-runtime/standalone/styles/composer-pills.css +13 -0
  408. package/package.json +1 -1
  409. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__05243927._.js +0 -29
  410. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1017e012._.js +0 -3
  411. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__28524c6a._.js +0 -3
  412. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c1b28690._.js +0 -49
  413. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dffa5183._.js +0 -29
  414. package/cloud-runtime/standalone/.next/server/chunks/_110bf46e._.js +0 -6
  415. package/cloud-runtime/standalone/.next/server/chunks/_22fe5fd2._.js +0 -3
  416. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__35f9b4a6._.js +0 -3
  417. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__43a0398d._.js +0 -3
  418. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__7e7d6790._.js +0 -3
  419. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__b6598a70._.js +0 -3
  420. package/cloud-runtime/standalone/.next/server/chunks/ssr/_087a5b2b._.js +0 -3
  421. package/cloud-runtime/standalone/.next/server/chunks/ssr/_1e5aee62._.js +0 -3
  422. package/cloud-runtime/standalone/.next/server/chunks/ssr/_45f91a8f._.js +0 -3
  423. package/cloud-runtime/standalone/.next/server/chunks/ssr/_fb404ac0._.js +0 -3
  424. package/cloud-runtime/standalone/.next/static/chunks/0010f3df27ae53b8.js +0 -1
  425. package/cloud-runtime/standalone/.next/static/chunks/09c637be82a06122.js +0 -1
  426. package/cloud-runtime/standalone/.next/static/chunks/0fe219bd73492107.js +0 -5
  427. package/cloud-runtime/standalone/.next/static/chunks/2dbfd095c1e1d01f.js +0 -1
  428. package/cloud-runtime/standalone/.next/static/chunks/360fde144fd22461.js +0 -1
  429. package/cloud-runtime/standalone/.next/static/chunks/416cf5039e669b5d.js +0 -1
  430. package/cloud-runtime/standalone/.next/static/chunks/95b85b1cb6868d27.js +0 -1
  431. package/cloud-runtime/standalone/.next/static/chunks/966278eaefc0aa32.js +0 -1
  432. package/cloud-runtime/standalone/.next/static/chunks/ab74849aeb87503e.js +0 -5
  433. package/cloud-runtime/standalone/.next/static/chunks/c5661b1d4c5abd6a.css +0 -2
  434. package/cloud-runtime/standalone/.next/static/chunks/d522224ad5c8d724.css +0 -1
  435. package/cloud-runtime/standalone/.next/static/chunks/e2fa3c18dd56dc25.js +0 -1
  436. package/cloud-runtime/standalone/.next/static/chunks/e910386016ceacad.js +0 -37
  437. package/cloud-runtime/standalone/.next/static/chunks/f2fe77583374541b.js +0 -1
  438. /package/cloud-runtime/standalone/.next/static/{1ixi4WIJBgIPp7LJeYeKs → Y8QdDdLJI3yzNjkyPjuJ-}/_buildManifest.js +0 -0
  439. /package/cloud-runtime/standalone/.next/static/{1ixi4WIJBgIPp7LJeYeKs → Y8QdDdLJI3yzNjkyPjuJ-}/_clientMiddlewareManifest.json +0 -0
  440. /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-14 shrink-0 font-mono text-xs text-[var(--muted-foreground)]">
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 [assignedToMe, setAssignedToMe] = useState(false);
716
- const [cycles, setCycles] = useState<Cycle[]>([]);
717
- const [selectedCycleId, setSelectedCycleId] = useState<string | undefined>(undefined);
718
- const [showCyclePicker, setShowCyclePicker] = useState(false);
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 cycles when connected
793
+ // Fetch filter options when connected
744
794
  useEffect(() => {
745
795
  if (!connected) return;
746
796
  let cancelled = false;
747
- fetch("/api/linear/cycles")
797
+ fetch("/api/linear/options")
748
798
  .then((res) => res.json())
749
799
  .then((data) => {
750
- if (!cancelled && Array.isArray(data.cycles)) {
751
- setCycles(data.cycles);
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
- return () => { cancelled = true; };
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 (!showCyclePicker) return;
761
- const handler = (e: MouseEvent) => {
762
- if (cyclePickerRef.current && !cyclePickerRef.current.contains(e.target as Node)) {
763
- setShowCyclePicker(false);
764
- }
765
- };
766
- document.addEventListener("mousedown", handler);
767
- return () => document.removeEventListener("mousedown", handler);
768
- }, [showCyclePicker]);
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
- assignedToMe: assignedToMe || undefined,
774
- cycleId: selectedCycleId,
845
+ assigneeId: selectedAssigneeId || undefined,
846
+ teamId: selectedWorkspaceId || undefined,
847
+ cycleId: selectedCycleId || undefined,
775
848
  }),
776
- [debouncedSearch, assignedToMe, selectedCycleId]
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
- } = useLinearIssues(filters, connected);
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
- <button
1035
- type="button"
1036
- className={`rounded-full border px-2.5 py-0.5 text-[11px] font-medium transition-colors ${
1037
- assignedToMe
1038
- ? "border-blue-500/30 bg-blue-500/10 text-blue-400"
1039
- : "border-[var(--card-border)] text-[var(--muted-foreground)] hover:bg-[var(--card-bg)]"
1040
- }`}
1041
- onClick={() => setAssignedToMe((v) => !v)}
1042
- >
1043
- My Issues
1044
- </button>
1045
- <div className="relative" ref={cyclePickerRef}>
1046
- <button
1047
- type="button"
1048
- className={`flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-[11px] font-medium transition-colors ${
1049
- selectedCycleId
1050
- ? "border-purple-500/30 bg-purple-500/10 text-purple-400"
1051
- : "border-[var(--card-border)] text-[var(--muted-foreground)] hover:bg-[var(--card-bg)]"
1052
- }`}
1053
- onClick={() => setShowCyclePicker((v) => !v)}
1054
- >
1055
- <span className="truncate max-w-[120px]">
1056
- {selectedCycleId
1057
- ? (() => {
1058
- const c = cycles.find((cy) => cy.id === selectedCycleId);
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 mention = useMentionAutocomplete({ participants, projectGroups, projects, maxSuggestions: 8 });
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.participant.id;
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
+ }