@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
@@ -14,10 +14,16 @@ interface Filters {
14
14
  teamId?: string;
15
15
  status?: string;
16
16
  search?: string;
17
+ assigneeId?: string;
17
18
  assignedToMe?: boolean;
18
19
  cycleId?: string;
19
20
  }
20
21
 
22
+ interface UseLinearIssuesOptions {
23
+ projectSlug?: string;
24
+ limit?: number;
25
+ }
26
+
21
27
  interface UseLinearIssuesReturn {
22
28
  issues: LinearIssue[];
23
29
  loading: boolean;
@@ -26,16 +32,25 @@ interface UseLinearIssuesReturn {
26
32
  refresh: () => Promise<void>;
27
33
  }
28
34
 
29
- export function useLinearIssues(filters: Filters, enabled = true): UseLinearIssuesReturn {
35
+ export function useLinearIssues(
36
+ filters: Filters,
37
+ enabled = true,
38
+ options: UseLinearIssuesOptions = {}
39
+ ): UseLinearIssuesReturn {
30
40
  const [issues, setIssues] = useState<LinearIssue[]>([]);
31
41
  const [loading, setLoading] = useState(true);
32
42
  const [cursor, setCursor] = useState<string | null>(null);
33
43
  const [hasMore, setHasMore] = useState(false);
34
44
  const cursorRef = useRef(cursor);
45
+ const hydratedRef = useRef(false);
35
46
  cursorRef.current = cursor;
36
47
 
48
+ useEffect(() => {
49
+ hydratedRef.current = false;
50
+ }, [options.projectSlug]);
51
+
37
52
  const fetchPage = useCallback(
38
- async (append: boolean) => {
53
+ async (append: boolean, refresh = false) => {
39
54
  if (!enabled) return;
40
55
  setLoading(true);
41
56
  try {
@@ -43,9 +58,13 @@ export function useLinearIssues(filters: Filters, enabled = true): UseLinearIssu
43
58
  if (filters.teamId) params.set("teamId", filters.teamId);
44
59
  if (filters.status) params.set("status", filters.status);
45
60
  if (filters.search) params.set("search", filters.search);
46
- if (filters.assignedToMe) params.set("assignedToMe", "true");
61
+ if (filters.assigneeId) params.set("assigneeId", filters.assigneeId);
62
+ else if (filters.assignedToMe) params.set("assignedToMe", "true");
47
63
  if (filters.cycleId) params.set("cycleId", filters.cycleId);
48
64
  if (append && cursorRef.current) params.set("cursor", cursorRef.current);
65
+ if (options.projectSlug) params.set("projectSlug", options.projectSlug);
66
+ if (options.limit) params.set("limit", String(options.limit));
67
+ if (refresh) params.set("refresh", "true");
49
68
 
50
69
  const res = await fetch(`/api/linear/issues?${params.toString()}`);
51
70
  const data = await res.json();
@@ -54,24 +73,25 @@ export function useLinearIssues(filters: Filters, enabled = true): UseLinearIssu
54
73
  setIssues((prev) => (append ? [...prev, ...newIssues] : newIssues));
55
74
  setCursor(data.pageInfo?.endCursor ?? null);
56
75
  setHasMore(data.pageInfo?.hasNextPage ?? false);
76
+ hydratedRef.current = true;
57
77
  } catch {
58
78
  if (!append) setIssues([]);
59
79
  } finally {
60
80
  setLoading(false);
61
81
  }
62
82
  },
63
- [filters.teamId, filters.status, filters.search, filters.assignedToMe, filters.cycleId, enabled],
83
+ [filters.teamId, filters.status, filters.search, filters.assigneeId, filters.assignedToMe, filters.cycleId, enabled, options.projectSlug, options.limit],
64
84
  );
65
85
 
66
86
  useEffect(() => {
67
87
  setCursor(null);
68
- fetchPage(false);
88
+ void fetchPage(false, !hydratedRef.current);
69
89
  }, [fetchPage]);
70
90
 
71
91
  const loadMore = useCallback(() => fetchPage(true), [fetchPage]);
72
92
  const refresh = useCallback(() => {
73
93
  setCursor(null);
74
- return fetchPage(false);
94
+ return fetchPage(false, true);
75
95
  }, [fetchPage]);
76
96
 
77
97
  return { issues, loading, hasMore, loadMore, refresh };
@@ -25,10 +25,21 @@ export interface MentionProject {
25
25
  slug: string;
26
26
  }
27
27
 
28
+ export interface MentionLinearIssue {
29
+ id: string;
30
+ identifier: string;
31
+ title: string;
32
+ status: string;
33
+ url: string | null;
34
+ assignee: string | null;
35
+ updatedAt: string;
36
+ }
37
+
28
38
  export type MentionItem =
29
39
  | { kind: "agent"; participant: Participant; group: string }
30
40
  | { kind: "project-group"; project: ProjectWithAgents; group: string }
31
- | { kind: "project"; project: MentionProject; group: string };
41
+ | { kind: "project"; project: MentionProject; group: string }
42
+ | { kind: "ticket"; issue: MentionLinearIssue; group: string };
32
43
 
33
44
  export type MentionSuggestion = MentionItem;
34
45
 
@@ -39,6 +50,8 @@ export interface UseMentionAutocompleteOptions {
39
50
  projectGroups?: ProjectWithAgents[];
40
51
  /** Mentionable projects */
41
52
  projects?: MentionProject[];
53
+ /** Cached Linear tickets available for @ mentions */
54
+ linearIssues?: MentionLinearIssue[];
42
55
  /** Maximum number of suggestions to show */
43
56
  maxSuggestions?: number;
44
57
  }
@@ -151,7 +164,8 @@ export function filterSuggestions(
151
164
  query: string,
152
165
  maxSuggestions: number,
153
166
  projectGroups: ProjectWithAgents[] = [],
154
- projects: MentionProject[] = []
167
+ projects: MentionProject[] = [],
168
+ linearIssues: MentionLinearIssue[] = []
155
169
  ): MentionSuggestion[] {
156
170
  const lowerQuery = query.toLowerCase();
157
171
  const participantById = new Map(participants.map((p) => [p.id, p]));
@@ -216,7 +230,26 @@ export function filterSuggestions(
216
230
  }
217
231
  }
218
232
 
219
- // 4. Ungrouped agents (not in any project)
233
+ // 4. Linear tickets (only once the user has started typing)
234
+ if (lowerQuery) {
235
+ linearIssues
236
+ .map((issue) => ({
237
+ issue,
238
+ score: scoreIssueMatch(issue, lowerQuery),
239
+ }))
240
+ .filter((entry): entry is { issue: MentionLinearIssue; score: number } => entry.score !== null)
241
+ .sort((left, right) => {
242
+ if (right.score !== left.score) {
243
+ return right.score - left.score;
244
+ }
245
+ return left.issue.identifier.localeCompare(right.issue.identifier);
246
+ })
247
+ .forEach(({ issue }) => {
248
+ result.push({ kind: "ticket", issue, group: "Tickets" });
249
+ });
250
+ }
251
+
252
+ // 5. Ungrouped agents (not in any project)
220
253
  const ungrouped: { participant: Participant; score: number }[] = [];
221
254
  for (const p of participants) {
222
255
  if (projectAgentIds.has(p.id)) continue;
@@ -236,6 +269,7 @@ export function useMentionAutocomplete({
236
269
  participants,
237
270
  projectGroups = [],
238
271
  projects = [],
272
+ linearIssues = [],
239
273
  maxSuggestions = 6,
240
274
  }: UseMentionAutocompleteOptions): UseMentionAutocompleteReturn {
241
275
  const [token, setToken] = useState<MentionToken | null>(null);
@@ -246,8 +280,8 @@ export function useMentionAutocomplete({
246
280
  const query = token?.query ?? "";
247
281
 
248
282
  const filteredSuggestions = useMemo(() => {
249
- return filterSuggestions(participants, query, maxSuggestions, projectGroups, projects);
250
- }, [participants, query, maxSuggestions, projectGroups, projects]);
283
+ return filterSuggestions(participants, query, maxSuggestions, projectGroups, projects, linearIssues);
284
+ }, [participants, query, maxSuggestions, projectGroups, projects, linearIssues]);
251
285
 
252
286
  const updateTokenFromInput = useCallback((text: string, cursorPos: number) => {
253
287
  const newToken = detectMentionToken(text, cursorPos);
@@ -320,7 +354,9 @@ export function useMentionAutocomplete({
320
354
  ? suggestion.project.name
321
355
  : suggestion.kind === "project"
322
356
  ? suggestion.project.name
323
- : suggestion.participant.name;
357
+ : suggestion.kind === "ticket"
358
+ ? suggestion.issue.identifier
359
+ : suggestion.participant.name;
324
360
  const atPrefix = token.isParallel ? "@@" : "@";
325
361
  const replacement = `${atPrefix}${name} `;
326
362
 
@@ -362,3 +398,15 @@ export function useMentionAutocomplete({
362
398
  endComposition,
363
399
  };
364
400
  }
401
+
402
+ function scoreIssueMatch(issue: MentionLinearIssue, lowerQuery: string): number | null {
403
+ const identifier = issue.identifier.toLowerCase();
404
+ const title = issue.title.toLowerCase();
405
+
406
+ if (identifier === lowerQuery) return 5;
407
+ if (identifier.startsWith(lowerQuery)) return 4;
408
+ if (title.startsWith(lowerQuery)) return 3;
409
+ if (identifier.includes(lowerQuery)) return 2;
410
+ if (title.includes(lowerQuery)) return 1;
411
+ return null;
412
+ }
@@ -3,6 +3,7 @@ const PROMPT_JOB_POLL_INTERVAL_MS = 15_000;
3
3
 
4
4
  export async function register() {
5
5
  if (process.env.NEXT_RUNTIME === 'nodejs') {
6
+ const { getConfiguredLocalServerPort } = await import("./lib/app-config");
6
7
  await import("./lib/check-node-version");
7
8
  const { getQueue, QUEUE_NAMES } = await import('@/lib/queue/boss');
8
9
  const { taskProcessor } = await import('@/lib/orchestrator/processor');
@@ -22,7 +23,7 @@ export async function register() {
22
23
  const { GraphStore } = await import('@/src/graph/store');
23
24
 
24
25
  // Prompt job poller — drives recurring prompt-based scheduled tasks
25
- const port = process.env.PORT || '3000';
26
+ const port = getConfiguredLocalServerPort();
26
27
  const baseUrl = `http://localhost:${port}`;
27
28
  let promptJobPollReady = false;
28
29
 
@@ -0,0 +1,55 @@
1
+ const DEFAULT_LOCAL_APP_PORT = 41741;
2
+
3
+ function normalizeBaseUrl(value: string | null | undefined): string | null {
4
+ const trimmed = value?.trim();
5
+ if (!trimmed) {
6
+ return null;
7
+ }
8
+
9
+ return trimmed.replace(/\/+$/, "");
10
+ }
11
+
12
+ export const LOCAL_APP_PORT = DEFAULT_LOCAL_APP_PORT;
13
+ export const LOCAL_APP_URL = `http://localhost:${LOCAL_APP_PORT}`;
14
+
15
+ export function getConfiguredAppBaseUrl(): string {
16
+ return (
17
+ normalizeBaseUrl(process.env.NEXT_PUBLIC_APP_URL) ??
18
+ normalizeBaseUrl(process.env.AGX_BOARD_URL) ??
19
+ normalizeBaseUrl(process.env.NEXT_PUBLIC_AGX_BOARD_URL) ??
20
+ LOCAL_APP_URL
21
+ );
22
+ }
23
+
24
+ export function getConfiguredBoardBaseUrl(): string {
25
+ return (
26
+ normalizeBaseUrl(process.env.AGX_BOARD_URL) ??
27
+ normalizeBaseUrl(process.env.NEXT_PUBLIC_AGX_BOARD_URL) ??
28
+ normalizeBaseUrl(process.env.NEXT_PUBLIC_APP_URL) ??
29
+ LOCAL_APP_URL
30
+ );
31
+ }
32
+
33
+ export function getConfiguredLocalServerPort(): string {
34
+ return process.env.PORT?.trim() || String(LOCAL_APP_PORT);
35
+ }
36
+
37
+ export function getAllowedOrigins(): string[] {
38
+ const origins = new Set<string>([
39
+ LOCAL_APP_URL,
40
+ `http://127.0.0.1:${LOCAL_APP_PORT}`,
41
+ ]);
42
+
43
+ for (const value of [
44
+ process.env.NEXT_PUBLIC_APP_URL,
45
+ process.env.AGX_BOARD_URL,
46
+ process.env.NEXT_PUBLIC_AGX_BOARD_URL,
47
+ ]) {
48
+ const normalized = normalizeBaseUrl(value);
49
+ if (normalized) {
50
+ origins.add(normalized);
51
+ }
52
+ }
53
+
54
+ return Array.from(origins);
55
+ }
@@ -0,0 +1,79 @@
1
+ import type { JSONContent } from "@tiptap/core";
2
+
3
+ export interface MentionedLinearIssueContext {
4
+ id: string;
5
+ identifier: string;
6
+ title: string;
7
+ url: string | null;
8
+ status: string;
9
+ assignee: string | null;
10
+ assigneeId: string | null;
11
+ assigneeEmail: string | null;
12
+ isAssignedToMe: boolean;
13
+ teamId: string | null;
14
+ teamName: string | null;
15
+ teamKey: string | null;
16
+ cycleId: string | null;
17
+ cycleName: string | null;
18
+ cycleNumber: number | null;
19
+ description: string | null;
20
+ updatedAt: string;
21
+ pulledAt: string;
22
+ }
23
+
24
+ function walkNodes(
25
+ nodes: JSONContent[] | undefined,
26
+ visitor: (node: JSONContent) => void
27
+ ): void {
28
+ if (!nodes) return;
29
+ for (const node of nodes) {
30
+ visitor(node);
31
+ walkNodes(node.content, visitor);
32
+ }
33
+ }
34
+
35
+ function escapeAttribute(value: string): string {
36
+ return value
37
+ .replace(/&/g, "&amp;")
38
+ .replace(/"/g, "&quot;")
39
+ .replace(/</g, "&lt;")
40
+ .replace(/>/g, "&gt;");
41
+ }
42
+
43
+ export function extractMentionedLinearIssueIds(doc: JSONContent): string[] {
44
+ const issueIds = new Set<string>();
45
+
46
+ walkNodes(doc.content, (node) => {
47
+ if (node.type !== "linearIssueMention") return;
48
+ const id = typeof node.attrs?.id === "string" ? node.attrs.id.trim() : "";
49
+ if (id) {
50
+ issueIds.add(id);
51
+ }
52
+ });
53
+
54
+ return Array.from(issueIds);
55
+ }
56
+
57
+ export function buildLinearIssueContextPrefix(issues: MentionedLinearIssueContext[]): string {
58
+ if (issues.length === 0) return "";
59
+
60
+ const blocks = issues.map((issue) => {
61
+ const parts = [
62
+ `<linear-issue identifier="${escapeAttribute(issue.identifier)}" status="${escapeAttribute(issue.status)}"${issue.assignee ? ` assignee="${escapeAttribute(issue.assignee)}"` : ""}>`,
63
+ `Title: ${issue.title}`,
64
+ issue.url ? `URL: ${issue.url}` : null,
65
+ issue.teamName ? `Team: ${issue.teamName}` : null,
66
+ issue.cycleName || issue.cycleNumber != null
67
+ ? `Cycle: ${issue.cycleName ?? `Cycle ${issue.cycleNumber}`}`
68
+ : null,
69
+ `Updated: ${issue.updatedAt}`,
70
+ "",
71
+ issue.description?.trim() || "No description provided.",
72
+ "</linear-issue>",
73
+ ];
74
+
75
+ return parts.filter((part): part is string => part !== null).join("\n");
76
+ });
77
+
78
+ return `Referenced Linear tickets (only because the user explicitly @mentioned them):\n\n${blocks.join("\n\n")}\n\n`;
79
+ }
@@ -21,26 +21,64 @@ interface LinearGraphQLResponse<TData> {
21
21
  }
22
22
 
23
23
  interface LinearViewer {
24
+ id: string;
24
25
  name: string;
25
26
  email: string;
26
27
  }
27
28
 
29
+ export interface LinearUser {
30
+ id: string;
31
+ name: string;
32
+ }
33
+
34
+ interface RawLinearUserNode {
35
+ id: string;
36
+ name: string;
37
+ }
38
+
39
+ export interface LinearTeam {
40
+ id: string;
41
+ name: string;
42
+ }
43
+
44
+ interface RawLinearTeamNode {
45
+ id: string;
46
+ name: string;
47
+ }
48
+
28
49
  interface LinearIssueState {
29
50
  name: string;
30
51
  }
31
52
 
32
53
  interface LinearIssueAssignee {
54
+ id: string;
55
+ name: string;
56
+ email: string | null;
57
+ }
58
+
59
+ interface LinearIssueTeam {
60
+ id: string;
33
61
  name: string;
62
+ key: string;
63
+ }
64
+
65
+ interface LinearIssueCycle {
66
+ id: string;
67
+ number: number;
68
+ name: string | null;
34
69
  }
35
70
 
36
71
  interface RawLinearIssueNode {
37
72
  id: string;
38
73
  identifier: string;
39
74
  title: string;
75
+ description: string | null;
40
76
  url: string | null;
41
77
  updatedAt: string;
42
78
  state: LinearIssueState | null;
43
79
  assignee: LinearIssueAssignee | null;
80
+ team: LinearIssueTeam | null;
81
+ cycle: LinearIssueCycle | null;
44
82
  }
45
83
 
46
84
  type LinearIssueFilter = Record<string, unknown>;
@@ -49,10 +87,13 @@ export interface LinearIssueNode {
49
87
  id: string;
50
88
  identifier: string;
51
89
  title: string;
90
+ description: string | null;
52
91
  url: string | null;
53
92
  updatedAt: string;
54
93
  state: Promise<LinearIssueState | null>;
55
94
  assignee: Promise<LinearIssueAssignee | null>;
95
+ team: Promise<LinearIssueTeam | null>;
96
+ cycle: Promise<LinearIssueCycle | null>;
56
97
  }
57
98
 
58
99
  export interface LinearCycle {
@@ -61,6 +102,8 @@ export interface LinearCycle {
61
102
  name: string | null;
62
103
  startsAt: string;
63
104
  endsAt: string;
105
+ teamId: string | null;
106
+ teamName: string | null;
64
107
  }
65
108
 
66
109
  interface RawLinearCycleNode {
@@ -69,6 +112,10 @@ interface RawLinearCycleNode {
69
112
  name: string | null;
70
113
  startsAt: string;
71
114
  endsAt: string;
115
+ team: {
116
+ id: string;
117
+ name: string;
118
+ } | null;
72
119
  }
73
120
 
74
121
  interface LinearIssueConnection {
@@ -159,10 +206,60 @@ export class LinearClient {
159
206
 
160
207
  get viewer(): Promise<LinearViewer> {
161
208
  return this.request<{ viewer: LinearViewer }>(
162
- `query { viewer { name email } }`,
209
+ `query { viewer { id name email } }`,
163
210
  ).then((data) => data.viewer);
164
211
  }
165
212
 
213
+ async users(): Promise<LinearUser[]> {
214
+ const data = await this.request<{
215
+ users: {
216
+ nodes: RawLinearUserNode[];
217
+ };
218
+ }>(
219
+ `query {
220
+ users(first: 100) {
221
+ nodes {
222
+ id
223
+ name
224
+ }
225
+ }
226
+ }`,
227
+ );
228
+
229
+ return data.users.nodes
230
+ .filter((user) => user.name.trim().length > 0)
231
+ .map((user) => ({
232
+ id: user.id,
233
+ name: user.name,
234
+ }))
235
+ .sort((left, right) => left.name.localeCompare(right.name));
236
+ }
237
+
238
+ async teams(): Promise<LinearTeam[]> {
239
+ const data = await this.request<{
240
+ teams: {
241
+ nodes: RawLinearTeamNode[];
242
+ };
243
+ }>(
244
+ `query {
245
+ teams(first: 50) {
246
+ nodes {
247
+ id
248
+ name
249
+ }
250
+ }
251
+ }`,
252
+ );
253
+
254
+ return data.teams.nodes
255
+ .filter((team) => team.name.trim().length > 0)
256
+ .map((team) => ({
257
+ id: team.id,
258
+ name: team.name,
259
+ }))
260
+ .sort((left, right) => left.name.localeCompare(right.name));
261
+ }
262
+
166
263
  async issues(params: {
167
264
  first: number;
168
265
  after?: string;
@@ -185,10 +282,13 @@ export class LinearClient {
185
282
  id
186
283
  identifier
187
284
  title
285
+ description
188
286
  url
189
287
  updatedAt
190
288
  state { name }
191
- assignee { name }
289
+ assignee { id name email }
290
+ team { id name key }
291
+ cycle { id number name }
192
292
  }
193
293
  pageInfo {
194
294
  hasNextPage
@@ -203,10 +303,13 @@ export class LinearClient {
203
303
  id: issue.id,
204
304
  identifier: issue.identifier,
205
305
  title: issue.title,
306
+ description: issue.description,
206
307
  url: issue.url,
207
308
  updatedAt: issue.updatedAt,
208
309
  state: Promise.resolve(issue.state),
209
310
  assignee: Promise.resolve(issue.assignee),
311
+ team: Promise.resolve(issue.team),
312
+ cycle: Promise.resolve(issue.cycle),
210
313
  })),
211
314
  pageInfo: data.issues.pageInfo,
212
315
  };
@@ -214,30 +317,78 @@ export class LinearClient {
214
317
 
215
318
  async cycles(): Promise<LinearCycle[]> {
216
319
  const data = await this.request<{
217
- cycles: {
218
- nodes: RawLinearCycleNode[];
320
+ teams: {
321
+ nodes: Array<{
322
+ id: string;
323
+ name: string;
324
+ activeCycle: RawLinearCycleNode | null;
325
+ cycles: {
326
+ nodes: RawLinearCycleNode[];
327
+ };
328
+ }>;
219
329
  };
220
330
  }>(
221
331
  `query {
222
- cycles(orderBy: startsAt, first: 20) {
332
+ teams(first: 50) {
223
333
  nodes {
224
334
  id
225
- number
226
335
  name
227
- startsAt
228
- endsAt
336
+ activeCycle {
337
+ id
338
+ number
339
+ name
340
+ startsAt
341
+ endsAt
342
+ team {
343
+ id
344
+ name
345
+ }
346
+ }
347
+ cycles(first: 20) {
348
+ nodes {
349
+ id
350
+ number
351
+ name
352
+ startsAt
353
+ endsAt
354
+ team {
355
+ id
356
+ name
357
+ }
358
+ }
359
+ }
229
360
  }
230
361
  }
231
362
  }`,
232
363
  );
233
364
 
234
- return data.cycles.nodes.map((cycle) => ({
235
- id: cycle.id,
236
- number: cycle.number,
237
- name: cycle.name,
238
- startsAt: cycle.startsAt,
239
- endsAt: cycle.endsAt,
240
- }));
365
+ const deduped = new Map<string, LinearCycle>();
366
+ for (const team of data.teams.nodes) {
367
+ const cycleNodes = [
368
+ ...(team.activeCycle ? [team.activeCycle] : []),
369
+ ...team.cycles.nodes,
370
+ ];
371
+
372
+ for (const cycle of cycleNodes) {
373
+ if (deduped.has(cycle.id)) {
374
+ continue;
375
+ }
376
+
377
+ deduped.set(cycle.id, {
378
+ id: cycle.id,
379
+ number: cycle.number,
380
+ name: cycle.name,
381
+ startsAt: cycle.startsAt,
382
+ endsAt: cycle.endsAt,
383
+ teamId: cycle.team?.id ?? team.id,
384
+ teamName: cycle.team?.name ?? team.name,
385
+ });
386
+ }
387
+ }
388
+
389
+ return [...deduped.values()].sort(
390
+ (left, right) => new Date(right.startsAt).getTime() - new Date(left.startsAt).getTime()
391
+ );
241
392
  }
242
393
 
243
394
  private async request<TData>(query: string): Promise<TData> {