@mndrk/agx 2.0.32 → 2.0.34

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 (804) hide show
  1. package/cloud-runtime/standalone/.next/BUILD_ID +1 -1
  2. package/cloud-runtime/standalone/.next/app-path-routes-manifest.json +18 -0
  3. package/cloud-runtime/standalone/.next/build-manifest.json +6 -6
  4. package/cloud-runtime/standalone/.next/prerender-manifest.json +27 -3
  5. package/cloud-runtime/standalone/.next/routes-manifest.json +116 -0
  6. package/cloud-runtime/standalone/.next/server/app/_global-error/page/build-manifest.json +4 -4
  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/build-manifest.json +4 -4
  15. package/cloud-runtime/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  16. package/cloud-runtime/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/cloud-runtime/standalone/.next/server/app/_not-found.html +2 -2
  18. package/cloud-runtime/standalone/.next/server/app/_not-found.rsc +2 -2
  19. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  20. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  21. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  22. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  23. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  24. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  25. package/cloud-runtime/standalone/.next/server/app/agents/[id]/page/build-manifest.json +4 -4
  26. package/cloud-runtime/standalone/.next/server/app/agents/[id]/page.js.nft.json +1 -1
  27. package/cloud-runtime/standalone/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
  28. package/cloud-runtime/standalone/.next/server/app/agents/page/build-manifest.json +4 -4
  29. package/cloud-runtime/standalone/.next/server/app/agents/page.js.nft.json +1 -1
  30. package/cloud-runtime/standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
  31. package/cloud-runtime/standalone/.next/server/app/agents.html +2 -2
  32. package/cloud-runtime/standalone/.next/server/app/agents.rsc +3 -3
  33. package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +3 -3
  34. package/cloud-runtime/standalone/.next/server/app/agents.segments/_head.segment.rsc +1 -1
  35. package/cloud-runtime/standalone/.next/server/app/agents.segments/_index.segment.rsc +2 -2
  36. package/cloud-runtime/standalone/.next/server/app/agents.segments/_tree.segment.rsc +2 -2
  37. package/cloud-runtime/standalone/.next/server/app/agents.segments/agents/__PAGE__.segment.rsc +2 -2
  38. package/cloud-runtime/standalone/.next/server/app/agents.segments/agents.segment.rsc +1 -1
  39. package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js +1 -1
  40. package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js.nft.json +1 -1
  41. package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js +1 -1
  42. package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js.nft.json +1 -1
  43. package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js +1 -1
  44. package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js.nft.json +1 -1
  45. package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js +4 -5
  46. package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js.nft.json +1 -1
  47. package/cloud-runtime/standalone/.next/server/app/api/automations/route.js +1 -1
  48. package/cloud-runtime/standalone/.next/server/app/api/automations/route.js.nft.json +1 -1
  49. package/cloud-runtime/standalone/.next/server/app/api/chat/route.js +6 -6
  50. package/cloud-runtime/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
  51. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/route.js +1 -1
  52. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/route.js.nft.json +1 -1
  53. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/signal/route.js +1 -1
  54. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/signal/route.js.nft.json +1 -1
  55. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/route.js +1 -1
  56. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/route.js.nft.json +1 -1
  57. package/cloud-runtime/standalone/.next/server/app/api/daemon/route.js +1 -1
  58. package/cloud-runtime/standalone/.next/server/app/api/daemon/route.js.nft.json +1 -1
  59. package/cloud-runtime/standalone/.next/server/app/api/file-search/route.js.nft.json +1 -1
  60. package/cloud-runtime/standalone/.next/server/app/api/filesystem/pick-folder/route/app-paths-manifest.json +3 -0
  61. package/cloud-runtime/standalone/.next/server/app/api/filesystem/pick-folder/route/build-manifest.json +11 -0
  62. package/cloud-runtime/standalone/.next/server/app/api/filesystem/pick-folder/route/server-reference-manifest.json +4 -0
  63. package/cloud-runtime/standalone/.next/server/app/api/filesystem/pick-folder/route.js +7 -0
  64. package/cloud-runtime/standalone/.next/server/app/api/filesystem/pick-folder/route.js.map +5 -0
  65. package/cloud-runtime/standalone/.next/server/app/api/filesystem/pick-folder/route.js.nft.json +1 -0
  66. package/cloud-runtime/standalone/.next/server/app/api/filesystem/pick-folder/route_client-reference-manifest.js +2 -0
  67. package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js +1 -1
  68. package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js.nft.json +1 -1
  69. package/cloud-runtime/standalone/.next/server/app/api/health/route.js +1 -1
  70. package/cloud-runtime/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
  71. package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route/app-paths-manifest.json +3 -0
  72. package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route/build-manifest.json +11 -0
  73. package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route/server-reference-manifest.json +4 -0
  74. package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js +8 -0
  75. package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js.map +5 -0
  76. package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js.nft.json +1 -0
  77. package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route_client-reference-manifest.js +2 -0
  78. package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js +1 -1
  79. package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js.nft.json +1 -1
  80. package/cloud-runtime/standalone/.next/server/app/api/memories/route.js +1 -1
  81. package/cloud-runtime/standalone/.next/server/app/api/memories/route.js.nft.json +1 -1
  82. package/cloud-runtime/standalone/.next/server/app/api/messages/[id]/route.js +1 -1
  83. package/cloud-runtime/standalone/.next/server/app/api/messages/[id]/route.js.nft.json +1 -1
  84. package/cloud-runtime/standalone/.next/server/app/api/migrate/teams-to-projects/route.js +1 -1
  85. package/cloud-runtime/standalone/.next/server/app/api/migrate/teams-to-projects/route.js.nft.json +1 -1
  86. package/cloud-runtime/standalone/.next/server/app/api/migrate/workspaces-to-projects/route.js +1 -1
  87. package/cloud-runtime/standalone/.next/server/app/api/migrate/workspaces-to-projects/route.js.nft.json +1 -1
  88. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js +2 -2
  89. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js.nft.json +1 -1
  90. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js +1 -1
  91. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js.nft.json +1 -1
  92. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js +3 -2
  93. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js.nft.json +1 -1
  94. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js +1 -1
  95. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js.nft.json +1 -1
  96. package/cloud-runtime/standalone/.next/server/app/api/participants/route.js +3 -3
  97. package/cloud-runtime/standalone/.next/server/app/api/participants/route.js.nft.json +1 -1
  98. package/cloud-runtime/standalone/.next/server/app/api/processes/route.js +1 -1
  99. package/cloud-runtime/standalone/.next/server/app/api/processes/route.js.nft.json +1 -1
  100. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js +1 -1
  101. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js.nft.json +1 -1
  102. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route.js +1 -1
  103. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route.js.nft.json +1 -1
  104. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js +1 -1
  105. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js.nft.json +1 -1
  106. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v2/route.js +1 -1
  107. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v2/route.js.nft.json +1 -1
  108. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/route.js +1 -1
  109. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  110. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/skills/route.js +1 -1
  111. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/skills/route.js.nft.json +1 -1
  112. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/threads/route.js +1 -1
  113. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/threads/route.js.nft.json +1 -1
  114. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/variables/route.js +1 -1
  115. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/variables/route.js.nft.json +1 -1
  116. package/cloud-runtime/standalone/.next/server/app/api/projects/route.js +1 -1
  117. package/cloud-runtime/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
  118. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route/app-paths-manifest.json +3 -0
  119. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route/build-manifest.json +11 -0
  120. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route/server-reference-manifest.json +4 -0
  121. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js +10 -0
  122. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js.map +5 -0
  123. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js.nft.json +1 -0
  124. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route_client-reference-manifest.js +2 -0
  125. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route/app-paths-manifest.json +3 -0
  126. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route/build-manifest.json +11 -0
  127. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route/server-reference-manifest.json +4 -0
  128. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js +10 -0
  129. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js.map +5 -0
  130. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js.nft.json +1 -0
  131. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route_client-reference-manifest.js +2 -0
  132. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route/app-paths-manifest.json +3 -0
  133. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route/build-manifest.json +11 -0
  134. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route/server-reference-manifest.json +4 -0
  135. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js +10 -0
  136. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js.map +5 -0
  137. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js.nft.json +1 -0
  138. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route_client-reference-manifest.js +2 -0
  139. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route/app-paths-manifest.json +3 -0
  140. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route/build-manifest.json +11 -0
  141. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route/server-reference-manifest.json +4 -0
  142. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js +9 -0
  143. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js.map +5 -0
  144. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js.nft.json +1 -0
  145. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route_client-reference-manifest.js +2 -0
  146. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route/app-paths-manifest.json +3 -0
  147. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route/build-manifest.json +11 -0
  148. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route/server-reference-manifest.json +4 -0
  149. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js +12 -0
  150. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js.map +5 -0
  151. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js.nft.json +1 -0
  152. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route_client-reference-manifest.js +2 -0
  153. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route/app-paths-manifest.json +3 -0
  154. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route/build-manifest.json +11 -0
  155. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route/server-reference-manifest.json +4 -0
  156. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js +10 -0
  157. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js.map +5 -0
  158. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js.nft.json +1 -0
  159. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route_client-reference-manifest.js +2 -0
  160. package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js +4 -3
  161. package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js.nft.json +1 -1
  162. package/cloud-runtime/standalone/.next/server/app/api/queue/route.js +6 -6
  163. package/cloud-runtime/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
  164. package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route.js +1 -1
  165. package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route.js.nft.json +1 -1
  166. package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js +4 -5
  167. package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js.nft.json +1 -1
  168. package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js +3 -4
  169. package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js.nft.json +1 -1
  170. package/cloud-runtime/standalone/.next/server/app/api/schedules/route.js +3 -4
  171. package/cloud-runtime/standalone/.next/server/app/api/schedules/route.js.nft.json +1 -1
  172. package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route/app-paths-manifest.json +3 -0
  173. package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route/build-manifest.json +11 -0
  174. package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route/server-reference-manifest.json +4 -0
  175. package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route.js +8 -0
  176. package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route.js.map +5 -0
  177. package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route.js.nft.json +1 -0
  178. package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route_client-reference-manifest.js +2 -0
  179. package/cloud-runtime/standalone/.next/server/app/api/skills/available/route/app-paths-manifest.json +3 -0
  180. package/cloud-runtime/standalone/.next/server/app/api/skills/available/route/build-manifest.json +11 -0
  181. package/cloud-runtime/standalone/.next/server/app/api/skills/available/route/server-reference-manifest.json +4 -0
  182. package/cloud-runtime/standalone/.next/server/app/api/skills/available/route.js +8 -0
  183. package/cloud-runtime/standalone/.next/server/app/api/skills/available/route.js.map +5 -0
  184. package/cloud-runtime/standalone/.next/server/app/api/skills/available/route.js.nft.json +1 -0
  185. package/cloud-runtime/standalone/.next/server/app/api/skills/available/route_client-reference-manifest.js +2 -0
  186. package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route/app-paths-manifest.json +3 -0
  187. package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route/build-manifest.json +11 -0
  188. package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route/server-reference-manifest.json +4 -0
  189. package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route.js +8 -0
  190. package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route.js.map +5 -0
  191. package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route.js.nft.json +1 -0
  192. package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route_client-reference-manifest.js +2 -0
  193. package/cloud-runtime/standalone/.next/server/app/api/skills/history/route/app-paths-manifest.json +3 -0
  194. package/cloud-runtime/standalone/.next/server/app/api/skills/history/route/build-manifest.json +11 -0
  195. package/cloud-runtime/standalone/.next/server/app/api/skills/history/route/server-reference-manifest.json +4 -0
  196. package/cloud-runtime/standalone/.next/server/app/api/skills/history/route.js +8 -0
  197. package/cloud-runtime/standalone/.next/server/app/api/skills/history/route.js.map +5 -0
  198. package/cloud-runtime/standalone/.next/server/app/api/skills/history/route.js.nft.json +1 -0
  199. package/cloud-runtime/standalone/.next/server/app/api/skills/history/route_client-reference-manifest.js +2 -0
  200. package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route/app-paths-manifest.json +3 -0
  201. package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route/build-manifest.json +11 -0
  202. package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route/server-reference-manifest.json +4 -0
  203. package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route.js +8 -0
  204. package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route.js.map +5 -0
  205. package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route.js.nft.json +1 -0
  206. package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route_client-reference-manifest.js +2 -0
  207. package/cloud-runtime/standalone/.next/server/app/api/skills/route/app-paths-manifest.json +3 -0
  208. package/cloud-runtime/standalone/.next/server/app/api/skills/route/build-manifest.json +11 -0
  209. package/cloud-runtime/standalone/.next/server/app/api/skills/route/server-reference-manifest.json +4 -0
  210. package/cloud-runtime/standalone/.next/server/app/api/skills/route.js +8 -0
  211. package/cloud-runtime/standalone/.next/server/app/api/skills/route.js.map +5 -0
  212. package/cloud-runtime/standalone/.next/server/app/api/skills/route.js.nft.json +1 -0
  213. package/cloud-runtime/standalone/.next/server/app/api/skills/route_client-reference-manifest.js +2 -0
  214. package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route/app-paths-manifest.json +3 -0
  215. package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route/build-manifest.json +11 -0
  216. package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route/server-reference-manifest.json +4 -0
  217. package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js +8 -0
  218. package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js.map +5 -0
  219. package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js.nft.json +1 -0
  220. package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route_client-reference-manifest.js +2 -0
  221. package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js +4 -4
  222. package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js.nft.json +1 -1
  223. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js +4 -4
  224. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js.nft.json +1 -1
  225. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/route.js +2 -2
  226. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/route.js.nft.json +1 -1
  227. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/costs/route.js +1 -1
  228. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/costs/route.js.nft.json +1 -1
  229. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/dependencies/route.js +5 -5
  230. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/dependencies/route.js.nft.json +1 -1
  231. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/events/route.js +1 -1
  232. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/events/route.js.nft.json +1 -1
  233. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/history/route.js +1 -1
  234. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/history/route.js.nft.json +1 -1
  235. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/metrics/route.js +1 -1
  236. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/metrics/route.js.nft.json +1 -1
  237. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/pause/route.js +1 -1
  238. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/pause/route.js.nft.json +1 -1
  239. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js +1 -1
  240. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js.nft.json +1 -1
  241. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/restart/route.js +1 -1
  242. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/restart/route.js.nft.json +1 -1
  243. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/resume/route.js +1 -1
  244. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/resume/route.js.nft.json +1 -1
  245. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/rollback/route.js +1 -1
  246. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/rollback/route.js.nft.json +1 -1
  247. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/route.js +1 -1
  248. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/route.js.nft.json +1 -1
  249. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/schedule/route.js +1 -1
  250. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/schedule/route.js.nft.json +1 -1
  251. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/start/route.js +1 -1
  252. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/start/route.js.nft.json +1 -1
  253. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/stop/route.js +1 -1
  254. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/stop/route.js.nft.json +1 -1
  255. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/heartbeat/route.js +1 -1
  256. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/heartbeat/route.js.nft.json +1 -1
  257. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js +1 -1
  258. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js.nft.json +1 -1
  259. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/route.js +1 -1
  260. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/route.js.nft.json +1 -1
  261. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js +1 -1
  262. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js.nft.json +1 -1
  263. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js +1 -1
  264. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js.nft.json +1 -1
  265. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js +1 -1
  266. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js.nft.json +1 -1
  267. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js +1 -1
  268. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js.nft.json +1 -1
  269. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js +1 -1
  270. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js.nft.json +1 -1
  271. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js +1 -1
  272. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js.nft.json +1 -1
  273. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js +6 -6
  274. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js.nft.json +1 -1
  275. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/route.js +4 -4
  276. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
  277. package/cloud-runtime/standalone/.next/server/app/api/tasks/assign-orphans/route.js +1 -1
  278. package/cloud-runtime/standalone/.next/server/app/api/tasks/assign-orphans/route.js.nft.json +1 -1
  279. package/cloud-runtime/standalone/.next/server/app/api/tasks/extract/route.js +4 -4
  280. package/cloud-runtime/standalone/.next/server/app/api/tasks/extract/route.js.nft.json +1 -1
  281. package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js +6 -6
  282. package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js.nft.json +1 -1
  283. package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route/app-paths-manifest.json +3 -0
  284. package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route/build-manifest.json +11 -0
  285. package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route/server-reference-manifest.json +4 -0
  286. package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route.js +7 -0
  287. package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route.js.map +5 -0
  288. package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route.js.nft.json +1 -0
  289. package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route_client-reference-manifest.js +2 -0
  290. package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js +3 -3
  291. package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js.nft.json +1 -1
  292. package/cloud-runtime/standalone/.next/server/app/api/threads/route.js +3 -3
  293. package/cloud-runtime/standalone/.next/server/app/api/threads/route.js.nft.json +1 -1
  294. package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js +1 -1
  295. package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js.nft.json +1 -1
  296. package/cloud-runtime/standalone/.next/server/app/automations/page/build-manifest.json +4 -4
  297. package/cloud-runtime/standalone/.next/server/app/automations/page/react-loadable-manifest.json +8 -1
  298. package/cloud-runtime/standalone/.next/server/app/automations/page.js.nft.json +1 -1
  299. package/cloud-runtime/standalone/.next/server/app/automations/page_client-reference-manifest.js +1 -1
  300. package/cloud-runtime/standalone/.next/server/app/automations.html +2 -2
  301. package/cloud-runtime/standalone/.next/server/app/automations.rsc +4 -4
  302. package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +4 -4
  303. package/cloud-runtime/standalone/.next/server/app/automations.segments/_head.segment.rsc +1 -1
  304. package/cloud-runtime/standalone/.next/server/app/automations.segments/_index.segment.rsc +2 -2
  305. package/cloud-runtime/standalone/.next/server/app/automations.segments/_tree.segment.rsc +3 -3
  306. package/cloud-runtime/standalone/.next/server/app/automations.segments/automations/__PAGE__.segment.rsc +3 -3
  307. package/cloud-runtime/standalone/.next/server/app/automations.segments/automations.segment.rsc +1 -1
  308. package/cloud-runtime/standalone/.next/server/app/board/page/build-manifest.json +4 -4
  309. package/cloud-runtime/standalone/.next/server/app/board/page.js.nft.json +1 -1
  310. package/cloud-runtime/standalone/.next/server/app/board/page_client-reference-manifest.js +1 -1
  311. package/cloud-runtime/standalone/.next/server/app/board.html +2 -2
  312. package/cloud-runtime/standalone/.next/server/app/board.rsc +2 -2
  313. package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +2 -2
  314. package/cloud-runtime/standalone/.next/server/app/board.segments/_head.segment.rsc +1 -1
  315. package/cloud-runtime/standalone/.next/server/app/board.segments/_index.segment.rsc +2 -2
  316. package/cloud-runtime/standalone/.next/server/app/board.segments/_tree.segment.rsc +2 -2
  317. package/cloud-runtime/standalone/.next/server/app/board.segments/board/__PAGE__.segment.rsc +1 -1
  318. package/cloud-runtime/standalone/.next/server/app/board.segments/board.segment.rsc +1 -1
  319. package/cloud-runtime/standalone/.next/server/app/execution-graph/page/build-manifest.json +4 -4
  320. package/cloud-runtime/standalone/.next/server/app/execution-graph/page.js.nft.json +1 -1
  321. package/cloud-runtime/standalone/.next/server/app/execution-graph/page_client-reference-manifest.js +1 -1
  322. package/cloud-runtime/standalone/.next/server/app/execution-graph.html +2 -2
  323. package/cloud-runtime/standalone/.next/server/app/execution-graph.rsc +3 -3
  324. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +3 -3
  325. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_head.segment.rsc +1 -1
  326. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_index.segment.rsc +2 -2
  327. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_tree.segment.rsc +2 -2
  328. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +2 -2
  329. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +1 -1
  330. package/cloud-runtime/standalone/.next/server/app/index.html +2 -2
  331. package/cloud-runtime/standalone/.next/server/app/index.rsc +5 -5
  332. package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  333. package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +5 -5
  334. package/cloud-runtime/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  335. package/cloud-runtime/standalone/.next/server/app/index.segments/_index.segment.rsc +2 -2
  336. package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +4 -4
  337. package/cloud-runtime/standalone/.next/server/app/page/build-manifest.json +4 -4
  338. package/cloud-runtime/standalone/.next/server/app/page.js.nft.json +1 -1
  339. package/cloud-runtime/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  340. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/app-paths-manifest.json +3 -0
  341. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/build-manifest.json +18 -0
  342. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/next-font-manifest.json +11 -0
  343. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/react-loadable-manifest.json +8 -0
  344. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/server-reference-manifest.json +4 -0
  345. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page.js +16 -0
  346. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page.js.map +5 -0
  347. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page.js.nft.json +1 -0
  348. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page_client-reference-manifest.js +2 -0
  349. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page/build-manifest.json +4 -4
  350. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page.js.nft.json +1 -1
  351. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page_client-reference-manifest.js +1 -1
  352. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page/build-manifest.json +4 -4
  353. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page.js.nft.json +1 -1
  354. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page_client-reference-manifest.js +1 -1
  355. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page/build-manifest.json +4 -4
  356. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page.js.nft.json +1 -1
  357. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
  358. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page/build-manifest.json +4 -4
  359. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page.js.nft.json +1 -1
  360. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page_client-reference-manifest.js +1 -1
  361. package/cloud-runtime/standalone/.next/server/app/projects/orphans/page/build-manifest.json +4 -4
  362. package/cloud-runtime/standalone/.next/server/app/projects/orphans/page.js.nft.json +1 -1
  363. package/cloud-runtime/standalone/.next/server/app/projects/orphans/page_client-reference-manifest.js +1 -1
  364. package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +2 -2
  365. package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +3 -3
  366. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +3 -3
  367. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_head.segment.rsc +1 -1
  368. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_index.segment.rsc +2 -2
  369. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_tree.segment.rsc +2 -2
  370. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +2 -2
  371. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +1 -1
  372. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects.segment.rsc +1 -1
  373. package/cloud-runtime/standalone/.next/server/app/projects/page/build-manifest.json +4 -4
  374. package/cloud-runtime/standalone/.next/server/app/projects/page.js.nft.json +1 -1
  375. package/cloud-runtime/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  376. package/cloud-runtime/standalone/.next/server/app/projects.html +2 -2
  377. package/cloud-runtime/standalone/.next/server/app/projects.rsc +3 -3
  378. package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +3 -3
  379. package/cloud-runtime/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
  380. package/cloud-runtime/standalone/.next/server/app/projects.segments/_index.segment.rsc +2 -2
  381. package/cloud-runtime/standalone/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
  382. package/cloud-runtime/standalone/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +2 -2
  383. package/cloud-runtime/standalone/.next/server/app/projects.segments/projects.segment.rsc +1 -1
  384. package/cloud-runtime/standalone/.next/server/app/settings/page/build-manifest.json +4 -4
  385. package/cloud-runtime/standalone/.next/server/app/settings/page.js.nft.json +1 -1
  386. package/cloud-runtime/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  387. package/cloud-runtime/standalone/.next/server/app/settings.html +2 -2
  388. package/cloud-runtime/standalone/.next/server/app/settings.rsc +3 -3
  389. package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +3 -3
  390. package/cloud-runtime/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  391. package/cloud-runtime/standalone/.next/server/app/settings.segments/_index.segment.rsc +2 -2
  392. package/cloud-runtime/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  393. package/cloud-runtime/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  394. package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  395. package/cloud-runtime/standalone/.next/server/app/skills/page/app-paths-manifest.json +3 -0
  396. package/cloud-runtime/standalone/.next/server/app/skills/page/build-manifest.json +18 -0
  397. package/cloud-runtime/standalone/.next/server/app/skills/page/next-font-manifest.json +11 -0
  398. package/cloud-runtime/standalone/.next/server/app/skills/page/react-loadable-manifest.json +1 -0
  399. package/cloud-runtime/standalone/.next/server/app/skills/page/server-reference-manifest.json +4 -0
  400. package/cloud-runtime/standalone/.next/server/app/skills/page.js +15 -0
  401. package/cloud-runtime/standalone/.next/server/app/skills/page.js.map +5 -0
  402. package/cloud-runtime/standalone/.next/server/app/skills/page.js.nft.json +1 -0
  403. package/cloud-runtime/standalone/.next/server/app/skills/page_client-reference-manifest.js +2 -0
  404. package/cloud-runtime/standalone/.next/server/app/skills.html +21 -0
  405. package/cloud-runtime/standalone/.next/server/app/skills.meta +15 -0
  406. package/cloud-runtime/standalone/.next/server/app/skills.rsc +23 -0
  407. package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +23 -0
  408. package/cloud-runtime/standalone/.next/server/app/skills.segments/_head.segment.rsc +5 -0
  409. package/cloud-runtime/standalone/.next/server/app/skills.segments/_index.segment.rsc +9 -0
  410. package/cloud-runtime/standalone/.next/server/app/skills.segments/_tree.segment.rsc +5 -0
  411. package/cloud-runtime/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +9 -0
  412. package/cloud-runtime/standalone/.next/server/app/skills.segments/skills.segment.rsc +4 -0
  413. package/cloud-runtime/standalone/.next/server/app/status/page/build-manifest.json +4 -4
  414. package/cloud-runtime/standalone/.next/server/app/status/page.js.nft.json +1 -1
  415. package/cloud-runtime/standalone/.next/server/app/status/page_client-reference-manifest.js +1 -1
  416. package/cloud-runtime/standalone/.next/server/app/status.html +2 -2
  417. package/cloud-runtime/standalone/.next/server/app/status.rsc +3 -3
  418. package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +3 -3
  419. package/cloud-runtime/standalone/.next/server/app/status.segments/_head.segment.rsc +1 -1
  420. package/cloud-runtime/standalone/.next/server/app/status.segments/_index.segment.rsc +2 -2
  421. package/cloud-runtime/standalone/.next/server/app/status.segments/_tree.segment.rsc +2 -2
  422. package/cloud-runtime/standalone/.next/server/app/status.segments/status/__PAGE__.segment.rsc +2 -2
  423. package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +1 -1
  424. package/cloud-runtime/standalone/.next/server/app/thread/[id]/page/build-manifest.json +4 -4
  425. package/cloud-runtime/standalone/.next/server/app/thread/[id]/page.js.nft.json +1 -1
  426. package/cloud-runtime/standalone/.next/server/app/thread/[id]/page_client-reference-manifest.js +1 -1
  427. package/cloud-runtime/standalone/.next/server/app/welcome/page/build-manifest.json +4 -4
  428. package/cloud-runtime/standalone/.next/server/app/welcome/page.js.nft.json +1 -1
  429. package/cloud-runtime/standalone/.next/server/app/welcome/page_client-reference-manifest.js +1 -1
  430. package/cloud-runtime/standalone/.next/server/app/welcome.html +2 -2
  431. package/cloud-runtime/standalone/.next/server/app/welcome.rsc +3 -3
  432. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +3 -3
  433. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_head.segment.rsc +1 -1
  434. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_index.segment.rsc +2 -2
  435. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_tree.segment.rsc +2 -2
  436. package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +2 -2
  437. package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +1 -1
  438. package/cloud-runtime/standalone/.next/server/app-paths-manifest.json +18 -0
  439. package/cloud-runtime/standalone/.next/server/chunks/[externals]__cf9f18a6._.js +3 -0
  440. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c5634f17._.js → [root-of-the-server]__005b3c82._.js} +2 -2
  441. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e446cb39._.js → [root-of-the-server]__056d94e4._.js} +2 -2
  442. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__06634853._.js +80 -0
  443. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__068b4f08._.js +15 -0
  444. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0b3b6a47._.js +51 -0
  445. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0bb52353._.js +46 -0
  446. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0f580808._.js +13 -0
  447. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__6c26221d._.js → [root-of-the-server]__1a8e0957._.js} +2 -2
  448. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1cc2fe7f._.js +3 -0
  449. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c08bef05._.js → [root-of-the-server]__23ad03bf._.js} +2 -2
  450. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__29419d66._.js +42 -0
  451. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__6c187704._.js → [root-of-the-server]__2948f712._.js} +2 -2
  452. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__86f7d27b._.js → [root-of-the-server]__32ef6623._.js} +2 -2
  453. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__399b2ca9._.js → [root-of-the-server]__34cb1b98._.js} +2 -2
  454. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__1dd062c1._.js → [root-of-the-server]__3c1567b6._.js} +2 -2
  455. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__29ce9c60._.js → [root-of-the-server]__3c37453e._.js} +2 -2
  456. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__507a4363._.js → [root-of-the-server]__3faa64cd._.js} +2 -2
  457. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42497c7b._.js +80 -0
  458. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__10940c29._.js → [root-of-the-server]__49c03d66._.js} +2 -2
  459. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__b40c7aab._.js → [root-of-the-server]__4a8d14c1._.js} +2 -2
  460. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__75bff965._.js → [root-of-the-server]__4c861686._.js} +2 -2
  461. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4d865017._.js +48 -0
  462. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5031f8d4._.js +30 -0
  463. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__543ba6c4._.js +1 -1
  464. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__94fa1edc._.js → [root-of-the-server]__588b6ab0._.js} +2 -2
  465. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ccfcbcd5._.js → [root-of-the-server]__596d0e81._.js} +2 -2
  466. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__9dfaaf72._.js → [root-of-the-server]__61c99680._.js} +2 -2
  467. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__64712846._.js +3 -0
  468. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__707c32af._.js +15 -0
  469. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7370bb86._.js +8 -0
  470. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__749af50f._.js +8 -0
  471. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__75cedecf._.js +6 -0
  472. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__98535eb3._.js → [root-of-the-server]__7e79d86a._.js} +2 -2
  473. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__dede3dcd._.js → [root-of-the-server]__7ee9b7b6._.js} +2 -2
  474. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8ac0286e._.js +58 -0
  475. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__13677d96._.js → [root-of-the-server]__8b0ab82f._.js} +2 -2
  476. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__f5b93200._.js → [root-of-the-server]__8b461158._.js} +2 -2
  477. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__918f0106._.js +80 -0
  478. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__922eb7cd._.js +80 -0
  479. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__927cfc20._.js +3 -0
  480. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__96ae701e._.js +3 -0
  481. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__981d92dd._.js +63 -0
  482. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__98b352f7._.js +13 -0
  483. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a44db634._.js +8 -0
  484. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a55c16a5._.js +158 -0
  485. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e6ad07c3._.js → [root-of-the-server]__a67cd108._.js} +2 -2
  486. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ab2bf82d._.js +13 -0
  487. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__d8cedc8a._.js → [root-of-the-server]__abb032c1._.js} +2 -2
  488. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__6e59b27c._.js → [root-of-the-server]__b4931ee1._.js} +2 -2
  489. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__e122cae2._.js → [root-of-the-server]__b500f1bf._.js} +2 -2
  490. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5ca87ba0._.js → [root-of-the-server]__b707e701._.js} +2 -2
  491. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__f4b70b67._.js → [root-of-the-server]__be4ad4b5._.js} +2 -2
  492. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bf5803eb._.js +13 -0
  493. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c0a18648._.js +80 -0
  494. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c8b49077._.js +79 -0
  495. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c99509c2._.js +101 -0
  496. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ccd4846e._.js +13 -0
  497. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ceb02db8._.js +1 -1
  498. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d4126e05._.js +15 -0
  499. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d908c9ea._.js +8 -0
  500. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__2388b2b3._.js → [root-of-the-server]__dcdeee3d._.js} +2 -2
  501. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__80655727._.js → [root-of-the-server]__e069c0a3._.js} +2 -2
  502. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__f5a2358a._.js → [root-of-the-server]__e1e51c02._.js} +2 -2
  503. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e3a4fd97._.js +13 -0
  504. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e4a87984._.js +15 -0
  505. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ee6511a0._.js +44 -0
  506. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__12afd8a3._.js → [root-of-the-server]__ef82dda1._.js} +2 -2
  507. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f168c6dc._.js +25 -0
  508. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__2e596cc8._.js → [root-of-the-server]__fee58db1._.js} +2 -2
  509. package/cloud-runtime/standalone/.next/server/chunks/_5462a047._.js +3 -0
  510. package/cloud-runtime/standalone/.next/server/chunks/_5fd6af5d._.js +57 -0
  511. package/cloud-runtime/standalone/.next/server/chunks/_c965f7b3._.js +3 -0
  512. package/cloud-runtime/standalone/.next/server/chunks/_d225c04f._.js +1 -1
  513. package/cloud-runtime/standalone/.next/server/chunks/{_3e0d34cc._.js → _d22934ab._.js} +24 -24
  514. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_filesystem_pick-folder_route_actions_162664ff.js +3 -0
  515. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_knowledge-notes_route_actions_0ddf6109.js +3 -0
  516. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_[id]_cancel_route_actions_fbd5be89.js +3 -0
  517. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_[id]_route_actions_774a2e21.js +3 -0
  518. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_[id]_runs_route_actions_6e59ee83.js +3 -0
  519. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_agents_route_actions_399e1f19.js +3 -0
  520. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_poll_route_actions_23fbbfa1.js +3 -0
  521. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_prompt-jobs_route_actions_acf03860.js +3 -0
  522. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_assign_route_actions_15267be8.js +3 -0
  523. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_available_route_actions_24023111.js +3 -0
  524. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_detail_route_actions_1148baef.js +3 -0
  525. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_history_route_actions_5e5c4757.js +3 -0
  526. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_learn_route_actions_d3a37d25.js +3 -0
  527. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_route_actions_780e175f.js +3 -0
  528. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_skills_unlearn_route_actions_3dfee433.js +3 -0
  529. package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_thread-repos_route_actions_e95d24ee.js +3 -0
  530. package/cloud-runtime/standalone/.next/server/chunks/lib_87c06aeb._.js +25 -0
  531. package/cloud-runtime/standalone/.next/server/chunks/lib_a5adca60._.js +64 -0
  532. package/cloud-runtime/standalone/.next/server/chunks/lib_db_ts_e06c6085._.js +1 -1
  533. package/cloud-runtime/standalone/.next/server/chunks/lib_ea45fe73._.js +1 -1
  534. package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_2e721df2._.js +50 -37
  535. package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_74d1c060._.js +50 -37
  536. package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js +38 -11
  537. package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_b0b1a9b2._.js +43 -16
  538. package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_371d0bff.js +19 -19
  539. package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_def8bfbe.js +10 -0
  540. package/cloud-runtime/standalone/.next/server/chunks/src_graph_executor_ts_55c06268._.js +4 -3
  541. package/cloud-runtime/standalone/.next/server/chunks/src_graph_executor_ts_a8bc8d58._.js +4 -3
  542. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__096c39a3._.js +3 -0
  543. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__226f8a19._.js +1 -1
  544. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__47caef59._.js +1 -1
  545. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__5ffa2883._.js +1 -1
  546. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__67d5f883._.js +3 -0
  547. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__8b4e7816._.js +3 -0
  548. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__8fe8b9dd._.js +3 -0
  549. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__a37fb1c3._.js +3 -0
  550. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__a456581d._.js +3 -0
  551. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__d74022f1._.js +3 -0
  552. package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__fcbe03e6._.js → [root-of-the-server]__e0c64529._.js} +2 -2
  553. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__ea035cd9._.js +3 -0
  554. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__ffbc2e98._.js +2 -2
  555. package/cloud-runtime/standalone/.next/server/chunks/ssr/_05c8a494._.js +3 -0
  556. package/cloud-runtime/standalone/.next/server/chunks/ssr/_0c5c111f._.js +3 -0
  557. package/cloud-runtime/standalone/.next/server/chunks/ssr/_0ffd2660._.js +1 -1
  558. package/cloud-runtime/standalone/.next/server/chunks/ssr/_23656a95._.js +3 -0
  559. package/cloud-runtime/standalone/.next/server/chunks/ssr/_23f5fddc._.js +3 -0
  560. package/cloud-runtime/standalone/.next/server/chunks/ssr/_24feb541._.js +4 -0
  561. package/cloud-runtime/standalone/.next/server/chunks/ssr/_27a789b3._.js +3 -0
  562. package/cloud-runtime/standalone/.next/server/chunks/ssr/{_508cd32f._.js → _314f4c49._.js} +2 -2
  563. package/cloud-runtime/standalone/.next/server/chunks/ssr/_36b413cc._.js +3 -0
  564. package/cloud-runtime/standalone/.next/server/chunks/ssr/_43472af3._.js +3 -0
  565. package/cloud-runtime/standalone/.next/server/chunks/ssr/_46e00a9b._.js +95 -0
  566. package/cloud-runtime/standalone/.next/server/chunks/ssr/_478f4991._.js +3 -0
  567. package/cloud-runtime/standalone/.next/server/chunks/ssr/_4bfdfb14._.js +3 -0
  568. package/cloud-runtime/standalone/.next/server/chunks/ssr/_52fe115d._.js +3 -0
  569. package/cloud-runtime/standalone/.next/server/chunks/ssr/_547b6462._.js +4 -0
  570. package/cloud-runtime/standalone/.next/server/chunks/ssr/_547f19ec._.js +3 -0
  571. package/cloud-runtime/standalone/.next/server/chunks/ssr/_85ca101b._.js +2 -2
  572. package/cloud-runtime/standalone/.next/server/chunks/ssr/_93914ecd._.js +1 -1
  573. package/cloud-runtime/standalone/.next/server/chunks/ssr/_9e07dcac._.js +95 -0
  574. package/cloud-runtime/standalone/.next/server/chunks/ssr/_a1b966f7._.js +3 -0
  575. package/cloud-runtime/standalone/.next/server/chunks/ssr/_a68d8f62._.js +3 -0
  576. package/cloud-runtime/standalone/.next/server/chunks/ssr/_a80e12c8._.js +3 -0
  577. package/cloud-runtime/standalone/.next/server/chunks/ssr/_b1e1ef71._.js +95 -0
  578. package/cloud-runtime/standalone/.next/server/chunks/ssr/_e1349560._.js +3 -0
  579. package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_projects_[slug]_automations_page_actions_9371bc66.js +3 -0
  580. package/cloud-runtime/standalone/.next/server/chunks/ssr/_next-internal_server_app_skills_page_actions_4ac82b1e.js +3 -0
  581. package/cloud-runtime/standalone/.next/server/chunks/ssr/app_agents_[id]_page_tsx_9c49d8c8._.js +1 -1
  582. package/cloud-runtime/standalone/.next/server/chunks/ssr/app_agents_page_tsx_f5f08ed8._.js +1 -1
  583. package/cloud-runtime/standalone/.next/server/chunks/ssr/app_execution-graph_page_tsx_f854185a._.js +2 -2
  584. package/cloud-runtime/standalone/.next/server/chunks/ssr/app_projects_[slug]_knowledge_page_tsx_e2a55cbd._.js +1 -1
  585. package/cloud-runtime/standalone/.next/server/chunks/ssr/components_chat-ui_bfeda794._.js +4 -5
  586. package/cloud-runtime/standalone/.next/server/chunks/ssr/components_thread_WorkspaceSidebar_tsx_e660301b._.js +1 -1
  587. package/cloud-runtime/standalone/.next/server/chunks/ssr/{node_modules_lucide-react_dist_esm_e70f9321._.js → node_modules_lucide-react_dist_esm_b82e03da._.js} +2 -2
  588. package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_61a87db9._.js +3 -0
  589. package/cloud-runtime/standalone/.next/server/chunks/ssr/{node_modules_next_920e7746._.js → node_modules_next_f2865b38._.js} +2 -2
  590. package/cloud-runtime/standalone/.next/server/functions-config-manifest.json +15 -0
  591. package/cloud-runtime/standalone/.next/server/middleware-build-manifest.js +4 -4
  592. package/cloud-runtime/standalone/.next/server/middleware-manifest.json +5 -5
  593. package/cloud-runtime/standalone/.next/server/next-font-manifest.js +1 -1
  594. package/cloud-runtime/standalone/.next/server/next-font-manifest.json +8 -0
  595. package/cloud-runtime/standalone/.next/server/pages/404.html +2 -2
  596. package/cloud-runtime/standalone/.next/server/pages/500.html +2 -2
  597. package/cloud-runtime/standalone/.next/server/server-reference-manifest.js +1 -1
  598. package/cloud-runtime/standalone/.next/server/server-reference-manifest.json +1 -1
  599. package/cloud-runtime/standalone/.next/static/chunks/01428247f94115a6.js +1 -0
  600. package/cloud-runtime/standalone/.next/static/chunks/06cf0ed16bf8aa70.js +28 -0
  601. package/cloud-runtime/standalone/.next/static/chunks/19dd745b663fdffa.js +1 -0
  602. package/cloud-runtime/standalone/.next/static/chunks/1a3298f21d1040e9.js +4 -0
  603. package/cloud-runtime/standalone/.next/static/chunks/1c8583feefee0765.js +1 -0
  604. package/cloud-runtime/standalone/.next/static/chunks/1e3dede69b464364.js +1 -0
  605. package/cloud-runtime/standalone/.next/static/chunks/238a28856e739dc9.js +2 -0
  606. package/cloud-runtime/standalone/.next/static/chunks/24772e179852c73e.js +1 -0
  607. package/cloud-runtime/standalone/.next/static/chunks/2d1d138d8ea3234c.css +1 -0
  608. package/cloud-runtime/standalone/.next/static/chunks/2e011469003993e9.js +28 -0
  609. package/cloud-runtime/standalone/.next/static/chunks/31a4164e40ca71e5.js +6 -0
  610. package/cloud-runtime/standalone/.next/static/chunks/3a55441b018d52e4.js +1 -0
  611. package/cloud-runtime/standalone/.next/static/chunks/3c202e89da05d9b9.js +1 -0
  612. package/cloud-runtime/standalone/.next/static/chunks/3c72becf6dff5597.js +1 -0
  613. package/cloud-runtime/standalone/.next/static/chunks/44dafb5e85578e12.js +16 -0
  614. package/cloud-runtime/standalone/.next/static/chunks/47f22a56011af8d3.js +1 -0
  615. package/cloud-runtime/standalone/.next/static/chunks/48e332ac3e9ed56c.js +1 -0
  616. package/cloud-runtime/standalone/.next/static/chunks/5b567b289ca2273e.css +1 -0
  617. package/cloud-runtime/standalone/.next/static/chunks/5d52c79d9812d06e.js +1 -0
  618. package/cloud-runtime/standalone/.next/static/chunks/617db51b7444f818.js +1 -0
  619. package/cloud-runtime/standalone/.next/static/chunks/673bb6094cea9ded.js +1 -0
  620. package/cloud-runtime/standalone/.next/static/chunks/787436fad75f5bc6.js +5 -0
  621. package/cloud-runtime/standalone/.next/static/chunks/8304e8487aa74059.css +2 -0
  622. package/cloud-runtime/standalone/.next/static/chunks/8a4684388ca0f6de.js +7 -0
  623. package/cloud-runtime/standalone/.next/static/chunks/9f236cc9572783b9.js +93 -0
  624. package/cloud-runtime/standalone/.next/static/chunks/a9aaec85125f69b1.js +1 -0
  625. package/cloud-runtime/standalone/.next/static/chunks/b4c29a62f9255268.js +1 -0
  626. package/cloud-runtime/standalone/.next/static/chunks/bf2bb1662353aff5.js +1 -0
  627. package/cloud-runtime/standalone/.next/static/chunks/c1fb885eed94aa8c.js +1 -0
  628. package/cloud-runtime/standalone/.next/static/chunks/c653186036e56204.js +1 -0
  629. package/cloud-runtime/standalone/.next/static/chunks/cb5581d868e78205.js +1 -0
  630. package/cloud-runtime/standalone/.next/static/chunks/cbdeb17a36b99000.js +1 -0
  631. package/cloud-runtime/standalone/.next/static/chunks/d5cc62984dc4205c.js +1 -0
  632. package/cloud-runtime/standalone/.next/static/chunks/d73f1cc3ebc9993b.js +1 -0
  633. package/cloud-runtime/standalone/.next/static/chunks/{88e24940a5d5d386.js → d78cc7d749043fef.js} +1 -1
  634. package/cloud-runtime/standalone/.next/static/chunks/{8d15ced2dc70090a.js → da2b00558cf32f37.js} +1 -1
  635. package/cloud-runtime/standalone/.next/static/chunks/{turbopack-97e846241a3a64af.js → turbopack-22475f0dd0c18f92.js} +1 -1
  636. package/cloud-runtime/standalone/app/agents/[id]/page.tsx +4 -1
  637. package/cloud-runtime/standalone/app/agents/page.tsx +22 -2
  638. package/cloud-runtime/standalone/app/api/agent-specs/route.ts +4 -0
  639. package/cloud-runtime/standalone/app/api/agents/export/route.ts +4 -0
  640. package/cloud-runtime/standalone/app/api/chat/route.ts +44 -2
  641. package/cloud-runtime/standalone/app/api/filesystem/pick-folder/route.ts +56 -0
  642. package/cloud-runtime/standalone/app/api/knowledge-notes/route.ts +53 -0
  643. package/cloud-runtime/standalone/app/api/participants/route.ts +50 -1
  644. package/cloud-runtime/standalone/app/api/prompt-jobs/[id]/cancel/route.ts +44 -0
  645. package/cloud-runtime/standalone/app/api/prompt-jobs/[id]/route.ts +94 -0
  646. package/cloud-runtime/standalone/app/api/prompt-jobs/[id]/runs/route.ts +30 -0
  647. package/cloud-runtime/standalone/app/api/prompt-jobs/agents/route.ts +25 -0
  648. package/cloud-runtime/standalone/app/api/prompt-jobs/poll/route.ts +232 -0
  649. package/cloud-runtime/standalone/app/api/prompt-jobs/route.ts +125 -0
  650. package/cloud-runtime/standalone/app/api/skills/assign/route.ts +30 -0
  651. package/cloud-runtime/standalone/app/api/skills/available/route.ts +20 -0
  652. package/cloud-runtime/standalone/app/api/skills/detail/route.ts +23 -0
  653. package/cloud-runtime/standalone/app/api/skills/history/route.ts +18 -0
  654. package/cloud-runtime/standalone/app/api/skills/learn/route.ts +31 -0
  655. package/cloud-runtime/standalone/app/api/skills/route.ts +19 -0
  656. package/cloud-runtime/standalone/app/api/skills/unlearn/route.ts +30 -0
  657. package/cloud-runtime/standalone/app/api/thread-repos/route.ts +30 -0
  658. package/cloud-runtime/standalone/app/automations/page.tsx +15 -3
  659. package/cloud-runtime/standalone/app/execution-graph/page.tsx +2 -2
  660. package/cloud-runtime/standalone/app/globals.css +2 -0
  661. package/cloud-runtime/standalone/app/layout.tsx +1 -1
  662. package/cloud-runtime/standalone/app/projects/[slug]/automations/page.tsx +17 -0
  663. package/cloud-runtime/standalone/app/projects/[slug]/knowledge/page.tsx +210 -26
  664. package/cloud-runtime/standalone/app/projects/[slug]/layout.tsx +3 -2
  665. package/cloud-runtime/standalone/app/projects/[slug]/page.tsx +401 -86
  666. package/cloud-runtime/standalone/app/projects/orphans/page.tsx +1 -0
  667. package/cloud-runtime/standalone/app/projects/page.tsx +3 -3
  668. package/cloud-runtime/standalone/app/skills/page.tsx +399 -0
  669. package/cloud-runtime/standalone/components/FloatingPanel.tsx +200 -0
  670. package/cloud-runtime/standalone/components/Layout.tsx +7 -1
  671. package/cloud-runtime/standalone/components/NowRunningPanel.tsx +86 -76
  672. package/cloud-runtime/standalone/components/ProjectModal.tsx +29 -12
  673. package/cloud-runtime/standalone/components/PromptJobBoard.tsx +1434 -0
  674. package/cloud-runtime/standalone/components/chat-ui/ChatContainer.tsx +147 -57
  675. package/cloud-runtime/standalone/components/chat-ui/Composer.tsx +215 -19
  676. package/cloud-runtime/standalone/components/chat-ui/Markdown.tsx +19 -9
  677. package/cloud-runtime/standalone/components/chat-ui/ParticipantBar.tsx +233 -213
  678. package/cloud-runtime/standalone/components/thread/WorkspaceSidebar.tsx +131 -68
  679. package/cloud-runtime/standalone/db/sqlite/001_agx_board_schema.sql +28 -0
  680. package/cloud-runtime/standalone/db/sqlite/002_prompt_scheduler_schema.sql +45 -0
  681. package/cloud-runtime/standalone/db/sqlite/003_prompt_scheduler_v2.sql +13 -0
  682. package/cloud-runtime/standalone/hooks/useAttachments.ts +2 -1
  683. package/cloud-runtime/standalone/hooks/useGroupChat.ts +8 -1
  684. package/cloud-runtime/standalone/hooks/useProcessPolling.ts +4 -3
  685. package/cloud-runtime/standalone/hooks/usePromptJobs.ts +111 -0
  686. package/cloud-runtime/standalone/hooks/useThreadState.ts +10 -2
  687. package/cloud-runtime/standalone/lib/agent-participants.ts +7 -0
  688. package/cloud-runtime/standalone/lib/agent-skill-bindings.ts +118 -0
  689. package/cloud-runtime/standalone/lib/chat/paste-attachments.ts +152 -0
  690. package/cloud-runtime/standalone/lib/cli-runner.ts +212 -14
  691. package/cloud-runtime/standalone/lib/db.ts +6 -1
  692. package/cloud-runtime/standalone/lib/debug-log.ts +48 -0
  693. package/cloud-runtime/standalone/lib/history-store.ts +116 -2
  694. package/cloud-runtime/standalone/lib/orchestrator/chat-processor.ts +51 -0
  695. package/cloud-runtime/standalone/lib/orchestrator/runtime.ts +6 -0
  696. package/cloud-runtime/standalone/lib/queue/sqlite-adapter.ts +117 -2
  697. package/cloud-runtime/standalone/lib/skills-library.ts +450 -0
  698. package/cloud-runtime/standalone/lib/sqlite-query-adapter.ts +32 -0
  699. package/cloud-runtime/standalone/lib/stream-multiplexer.ts +59 -11
  700. package/cloud-runtime/standalone/lib/types.ts +10 -0
  701. package/cloud-runtime/standalone/migrations/sqlite_schema.sql +28 -0
  702. package/cloud-runtime/standalone/src/graph/llm-review.ts +19 -2
  703. package/cloud-runtime/standalone/src/prompt-scheduler/cron.ts +46 -0
  704. package/cloud-runtime/standalone/src/prompt-scheduler/engine.ts +87 -0
  705. package/cloud-runtime/standalone/src/prompt-scheduler/get-store.ts +36 -0
  706. package/cloud-runtime/standalone/src/prompt-scheduler/runner.ts +144 -0
  707. package/cloud-runtime/standalone/src/prompt-scheduler/store.ts +327 -0
  708. package/cloud-runtime/standalone/src/prompt-scheduler/types.ts +82 -0
  709. package/cloud-runtime/standalone/state/floatingPanels.ts +47 -0
  710. package/cloud-runtime/standalone/styles/composer-pills.css +156 -2
  711. package/cloud-runtime/standalone/styles/workspaceSidebar.css +5 -3
  712. package/cloud-runtime/standalone/test/adapters/sqlite.ts +1 -0
  713. package/cloud-runtime/standalone/update_officeapp.js +36 -0
  714. package/cloud-runtime/standalone/update_store.js +47 -0
  715. package/cloud-runtime/standalone/worker/index.js +862 -176
  716. package/lib/cli/runCli.js +0 -97
  717. package/lib/commands/update.js +159 -17
  718. package/package.json +1 -1
  719. package/cloud-runtime/standalone/.next/server/chunks/[externals]__1f4b15dd._.js +0 -3
  720. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0925dd01._.js +0 -46
  721. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__12c7e188._.js +0 -29
  722. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__17c2d68f._.js +0 -52
  723. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__20b3baea._.js +0 -55
  724. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__254e942f._.js +0 -20
  725. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3198c5c8._.js +0 -52
  726. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__36d9edbd._.js +0 -67
  727. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4761dc17._.js +0 -8
  728. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4b1a512c._.js +0 -52
  729. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c8624cc._.js +0 -3
  730. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4d318eb0._.js +0 -146
  731. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4dc25d71._.js +0 -18
  732. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__666f8712._.js +0 -3
  733. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7be8f159._.js +0 -52
  734. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a189593a._.js +0 -3
  735. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ac3c2f7f._.js +0 -52
  736. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bfcedb7c._.js +0 -52
  737. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e1e7dd1e._.js +0 -25
  738. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e45a2a1d._.js +0 -3
  739. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fcd3e3b8._.js +0 -15
  740. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ff9c61da._.js +0 -3
  741. package/cloud-runtime/standalone/.next/server/chunks/_66e1ddec._.js +0 -57
  742. package/cloud-runtime/standalone/.next/server/chunks/lib_09aac4e7._.js +0 -57
  743. package/cloud-runtime/standalone/.next/server/chunks/lib_cli-runner_ts_dfcf3fda._.js +0 -18
  744. package/cloud-runtime/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_69b6b2e1.js +0 -3
  745. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__1322ced8._.js +0 -3
  746. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__783669c3._.js +0 -3
  747. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__8973b16a._.js +0 -3
  748. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__9166c1d6._.js +0 -3
  749. package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__a8a8afdc._.js +0 -3
  750. package/cloud-runtime/standalone/.next/server/chunks/ssr/_0061ebd8._.js +0 -3
  751. package/cloud-runtime/standalone/.next/server/chunks/ssr/_064370bc._.js +0 -3
  752. package/cloud-runtime/standalone/.next/server/chunks/ssr/_0f4e70b1._.js +0 -3
  753. package/cloud-runtime/standalone/.next/server/chunks/ssr/_16c45024._.js +0 -3
  754. package/cloud-runtime/standalone/.next/server/chunks/ssr/_54af99c5._.js +0 -3
  755. package/cloud-runtime/standalone/.next/server/chunks/ssr/_5b2b8a85._.js +0 -95
  756. package/cloud-runtime/standalone/.next/server/chunks/ssr/_68ac991e._.js +0 -95
  757. package/cloud-runtime/standalone/.next/server/chunks/ssr/_6de3f1de._.js +0 -3
  758. package/cloud-runtime/standalone/.next/server/chunks/ssr/_6fc3736e._.js +0 -95
  759. package/cloud-runtime/standalone/.next/server/chunks/ssr/_a0cc0fe7._.js +0 -3
  760. package/cloud-runtime/standalone/.next/server/chunks/ssr/_ccb409c5._.js +0 -3
  761. package/cloud-runtime/standalone/.next/server/chunks/ssr/_cd5e154b._.js +0 -3
  762. package/cloud-runtime/standalone/.next/server/chunks/ssr/_fb292eed._.js +0 -3
  763. package/cloud-runtime/standalone/.next/server/chunks/ssr/_ff5799d6._.js +0 -95
  764. package/cloud-runtime/standalone/.next/server/chunks/ssr/app_automations_page_tsx_3d732184._.js +0 -3
  765. package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_678fa868._.js +0 -3
  766. package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_852965c2._.js +0 -3
  767. package/cloud-runtime/standalone/.next/static/chunks/010aff7b601302de.js +0 -16
  768. package/cloud-runtime/standalone/.next/static/chunks/09f9eeea393db0fd.js +0 -4
  769. package/cloud-runtime/standalone/.next/static/chunks/0c467f54bc78a380.js +0 -1
  770. package/cloud-runtime/standalone/.next/static/chunks/10b0642440302e99.css +0 -2
  771. package/cloud-runtime/standalone/.next/static/chunks/1f415d0ce7ebbd08.js +0 -8
  772. package/cloud-runtime/standalone/.next/static/chunks/24a6ee21f430da93.js +0 -1
  773. package/cloud-runtime/standalone/.next/static/chunks/27129bea5b512ce8.js +0 -1
  774. package/cloud-runtime/standalone/.next/static/chunks/3e4e8857f875c964.js +0 -1
  775. package/cloud-runtime/standalone/.next/static/chunks/4200b512bdc226bc.js +0 -93
  776. package/cloud-runtime/standalone/.next/static/chunks/463edf3533d27a56.js +0 -1
  777. package/cloud-runtime/standalone/.next/static/chunks/486bf7ff282b91a6.js +0 -5
  778. package/cloud-runtime/standalone/.next/static/chunks/58025a80caa3629d.js +0 -93
  779. package/cloud-runtime/standalone/.next/static/chunks/5cb0c885b085ea6c.js +0 -1
  780. package/cloud-runtime/standalone/.next/static/chunks/60c054bb8b2cffa6.css +0 -1
  781. package/cloud-runtime/standalone/.next/static/chunks/651c7c97d3bd77e0.js +0 -28
  782. package/cloud-runtime/standalone/.next/static/chunks/6fbe08eab578c7d3.js +0 -93
  783. package/cloud-runtime/standalone/.next/static/chunks/7d4c1d97169c8522.js +0 -1
  784. package/cloud-runtime/standalone/.next/static/chunks/7e2edf97bd6c0874.js +0 -1
  785. package/cloud-runtime/standalone/.next/static/chunks/8249f202d33d0d95.js +0 -1
  786. package/cloud-runtime/standalone/.next/static/chunks/87f099ea02aa419d.js +0 -93
  787. package/cloud-runtime/standalone/.next/static/chunks/9048e44ed538b21a.js +0 -2
  788. package/cloud-runtime/standalone/.next/static/chunks/99174504a201d23e.js +0 -28
  789. package/cloud-runtime/standalone/.next/static/chunks/9f8f719c4aa25e3d.js +0 -1
  790. package/cloud-runtime/standalone/.next/static/chunks/a66e1891e808a664.js +0 -1
  791. package/cloud-runtime/standalone/.next/static/chunks/a8e8ef440c4daa5a.css +0 -1
  792. package/cloud-runtime/standalone/.next/static/chunks/bc727d3d9993e9be.js +0 -1
  793. package/cloud-runtime/standalone/.next/static/chunks/cd308f61797939cd.js +0 -6
  794. package/cloud-runtime/standalone/.next/static/chunks/d5d6be8239e57c56.js +0 -1
  795. package/cloud-runtime/standalone/.next/static/chunks/e62d5fa120fdf21f.js +0 -1
  796. package/cloud-runtime/standalone/agx-board.json +0 -264
  797. package/cloud-runtime/standalone/agx-cli.json +0 -2195
  798. package/cloud-runtime/standalone/fix-primary.js +0 -30
  799. package/cloud-runtime/standalone/fix-theme.js +0 -78
  800. package/cloud-runtime/standalone/test-file +0 -0
  801. package/cloud-runtime/standalone/testfile +0 -0
  802. /package/cloud-runtime/standalone/.next/static/{i_9nSHyb52FGkCbRgv7EJ → G0Hrt7JKBM1EtMPT0lUIr}/_buildManifest.js +0 -0
  803. /package/cloud-runtime/standalone/.next/static/{i_9nSHyb52FGkCbRgv7EJ → G0Hrt7JKBM1EtMPT0lUIr}/_clientMiddlewareManifest.json +0 -0
  804. /package/cloud-runtime/standalone/.next/static/{i_9nSHyb52FGkCbRgv7EJ → G0Hrt7JKBM1EtMPT0lUIr}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75254,e=>{"use strict";var t=e.i(71645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:i="",children:l,iconNode:u,...c},d)=>(0,t.createElement)("svg",{ref:d,...a,width:n,height:n,stroke:e,strokeWidth:s?24*Number(o)/Number(n):o,className:r("lucide",i),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]])),s=(e,a)=>{let s=(0,t.forwardRef)(({className:s,...i},l)=>(0,t.createElement)(o,{ref:l,iconNode:a,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...i}));return s.displayName=n(e),s};e.s(["default",()=>s],75254)},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,s(e));else t.set(r,s(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},61746,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(90809)._(e.r(98183)),s=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(o.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=o(e,n)),t&&(a.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>i.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(18967),a=e.r(52817);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(90809),s=e.r(18050),i=o._(e.r(71645)),l=e.r(61746),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(91949),h=e.r(73668),m=e.r(9396);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function x(t){var r;let n,a,o,[l,x]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),b=(0,i.useRef)(null),{href:v,as:j,children:w,prefetch:N=null,passHref:k,replace:C,shallow:P,scroll:O,onClick:_,onMouseEnter:E,onTouchStart:S,legacyBehavior:T=!1,onNavigate:L,ref:M,unstable_dynamicOnHover:R,...A}=t;n=w,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,s.jsx)("a",{children:n}));let $=i.default.useContext(u.AppRouterContext),U=!1!==N,I=!1!==N?null===(r=N)||"auto"===r?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:B,as:D}=i.default.useMemo(()=>{let e=g(v);return{href:e,as:j?g(j):e}},[v,j]);if(T){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=i.default.Children.only(n)}let F=T?a&&"object"==typeof a&&a.ref:M,K=i.default.useCallback(e=>(null!==$&&(b.current=(0,p.mountLinkInstance)(e,B,$,I,U,x)),()=>{b.current&&((0,p.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,p.unmountPrefetchableInstance)(e)}),[U,B,$,I,x]),z={ref:(0,c.useMergedRef)(K,F),onClick(t){T||"function"!=typeof _||_(t),T&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,a,o,s,l){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);i.default.startTransition(()=>{d(n||r,o?"replace":"push",s??!0,a.current)})}}(t,B,D,b,C,O,L)},onMouseEnter(e){T||"function"!=typeof E||E(e),T&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===R)},onTouchStart:function(e){T||"function"!=typeof S||S(e),T&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===R)}};return(0,d.isAbsoluteUrl)(D)?z.href=D:T&&!k&&("a"!==a.type||"href"in a.props)||(z.href=(0,f.addBasePath)(D)),o=T?i.default.cloneElement(a,z):(0,s.jsx)("a",{...A,...z,children:n}),(0,s.jsx)(y.Provider,{value:l,children:o})}e.r(84508);let y=(0,i.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,i.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},55436,e=>{"use strict";let t=(0,e.i(75254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],55436)},59015,e=>{"use strict";var t=e.i(18050),r=e.i(22016),n=e.i(71645);function a(){let[e,r]=(0,n.useState)(null),[a,o]=(0,n.useState)("loading");(0,n.useEffect)(()=>{let e=!0;async function t(){try{let t=await fetch("/api/health");if(!e)return;if(!t.ok)return void o("error");let n=await t.json();r(n),o(n.connected?"connected":"disconnected")}catch{e&&o("error")}}t();let n=setInterval(t,3e4);return()=>{e=!1,clearInterval(n)}},[]);let s={loading:"Checking database…",connected:`${e?.adapter??"db"} connected (${e?.latencyMs??"?"}ms)`,disconnected:`${e?.adapter??"db"} disconnected`,error:"Database unreachable"};return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-xs text-[var(--muted-foreground)]",role:"status","aria-label":s[a],children:[(0,t.jsx)("span",{className:`w-2 h-2 rounded-full ${{loading:"bg-yellow-400",connected:"bg-green-500",disconnected:"bg-red-500",error:"bg-red-500"}[a]}`}),(0,t.jsx)("span",{className:"hidden sm:inline",children:s[a]})]})}function o({children:e,fullWidth:n=!1,noFooter:o=!1}){return(0,t.jsxs)("div",{className:"h-screen flex flex-col overflow-hidden",children:[(0,t.jsx)("nav",{className:"flex-shrink-0 border-b border-[var(--card-border)] bg-[var(--card-bg)]/80 backdrop-blur-lg z-30",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"flex items-center justify-between h-16",children:[(0,t.jsx)("div",{className:"flex items-center gap-8",children:(0,t.jsx)(r.default,{href:"/",className:"flex items-center gap-3 group",children:(0,t.jsxs)("svg",{width:"52",height:"31",viewBox:"0 0 64 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"transition-transform group-hover:scale-105",children:[(0,t.jsx)("rect",{width:"64",height:"38",rx:"8",fill:"black"}),(0,t.jsxs)("g",{stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M 14 27 C 17 16 19 10 20 8 C 21 12 23 20 25 27"}),(0,t.jsx)("path",{d:"M 16 20 C 19 19 21 21 23 20"}),(0,t.jsx)("path",{d:"M 40 13 C 35 10 30 13 30 19 C 30 25 34 28 38 27 C 40 26 40 22 40 20 L 36 20"}),(0,t.jsx)("path",{d:"M 46 11 C 48 16 51 22 54 27"}),(0,t.jsx)("path",{d:"M 54 11 C 52 16 49 22 46 27"})]})]})})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(r.default,{href:"/",className:"text-sm font-medium text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:"Open Chat"}),(0,t.jsx)(r.default,{href:"/automations",className:"text-sm font-medium text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:"Automations"}),(0,t.jsx)(r.default,{href:"/settings",className:"text-sm font-medium text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:"Settings"})]})]})})}),(0,t.jsx)("main",{className:`flex-1 min-h-0 flex flex-col ${n?"p-0":"p-4 sm:p-6 lg:p-8 overflow-y-auto"}`,children:e}),!o&&(0,t.jsx)("footer",{className:"flex-shrink-0 border-t border-[var(--card-border)] bg-[var(--card-bg)]/50 py-4",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center justify-between text-xs text-[var(--muted-foreground)]",children:[(0,t.jsx)("span",{children:"AGX Board • Autonomous Agent Orchestration"}),(0,t.jsxs)("span",{className:"hidden sm:inline-flex items-center gap-3",children:[(0,t.jsx)(a,{}),(0,t.jsx)("span",{children:"Built with Next.js + Db"})]})]})})]})}function s(e){return(0,t.jsx)(n.Suspense,{fallback:(0,t.jsx)("div",{className:"h-screen flex items-center justify-center bg-[var(--background)]",children:(0,t.jsx)("span",{className:"spinner w-8 h-8 border-3 border-[var(--primary)] border-t-transparent rounded-full"})}),children:(0,t.jsx)(o,{...e})})}e.s(["default",()=>s],59015)},78463,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(55436),a=e.i(59015),o=e.i(36797),s=e.i(67041),i=e.i(19580),l=e.i(40461);function u(){let{tasks:e,isLoading:u,updateTask:c,deleteTask:d,completeTaskStage:f,cancelWorkflow:p,refetch:h,cancellingTaskId:m}=(0,i.useTasks)({realtime:!0,orphan:!0}),{workflow:g,stages:x,stageConfig:y,isValidTransition:b,isLoading:v}=(0,l.useWorkflows)(),[j,w]=(0,r.useState)(""),N=(0,r.useMemo)(()=>{if(!j.trim())return e;let t=j.toLowerCase();return e.filter(e=>(e.title||"").toLowerCase().includes(t)||(e.content||"").toLowerCase().includes(t))},[e,j]),k=(0,r.useCallback)(async e=>{},[]);return u||v?(0,t.jsx)(a.default,{children:(0,t.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("span",{className:"spinner w-8 h-8 border-3 border-[var(--primary)] border-t-transparent rounded-full"}),(0,t.jsx)("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Loading orphan tasks..."})]})})}):(0,t.jsx)(a.default,{children:(0,t.jsxs)("div",{className:"h-full flex flex-col p-4",children:[(0,t.jsxs)("div",{className:"flex-shrink-0 mb-4 space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-xl font-bold",children:"Orphan Tasks"}),(0,t.jsx)("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Tasks without a project assignment. Open a task to attach it to a project."})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[var(--muted-foreground)]"}),(0,t.jsx)("input",{type:"text",placeholder:"Search orphan tasks",value:j,onChange:e=>w(e.target.value),className:"w-full pl-9 pr-4 py-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-[var(--primary)] focus:border-transparent transition-all"})]}),(0,t.jsx)(s.default,{tasks:N,onTaskClick:()=>{},onStop:async e=>{await p({taskId:e}),await h()},onRetry:async e=>{await f({taskId:e,decision:"not_done",final_result:"Manual retry requested.",explanation:"Manual retry requested."})},cancellingTaskId:m})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden",children:(0,t.jsx)(o.default,{tasks:N,onSelectTask:k,onTasksChange:()=>{},onTaskUpdate:async(e,t)=>{await c(e,t)},stages:x,stageConfig:y,isValidTransition:b})})]})})}e.s(["default",()=>u])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75254,e=>{"use strict";var t=e.i(71645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:i="",children:l,iconNode:u,...c},d)=>(0,t.createElement)("svg",{ref:d,...a,width:n,height:n,stroke:e,strokeWidth:s?24*Number(o)/Number(n):o,className:r("lucide",i),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]])),s=(e,a)=>{let s=(0,t.forwardRef)(({className:s,...i},l)=>(0,t.createElement)(o,{ref:l,iconNode:a,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...i}));return s.displayName=n(e),s};e.s(["default",()=>s],75254)},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,s(e));else t.set(r,s(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},61746,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(90809)._(e.r(98183)),s=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(o.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=o(e,n)),t&&(a.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return b},NormalizeError:function(){return y},PageNotFoundError:function(){return v},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>i.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class y extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class b extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(18967),a=e.r(52817);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return v}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(90809),s=e.r(18050),i=o._(e.r(71645)),l=e.r(61746),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(91949),h=e.r(73668),m=e.r(9396);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function x(t){var r;let n,a,o,[l,x]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:b,as:j,children:w,prefetch:N=null,passHref:k,replace:C,shallow:P,scroll:O,onClick:_,onMouseEnter:E,onTouchStart:S,legacyBehavior:T=!1,onNavigate:L,ref:M,unstable_dynamicOnHover:R,...A}=t;n=w,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,s.jsx)("a",{children:n}));let $=i.default.useContext(u.AppRouterContext),U=!1!==N,I=!1!==N?null===(r=N)||"auto"===r?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:B,as:D}=i.default.useMemo(()=>{let e=g(b);return{href:e,as:j?g(j):e}},[b,j]);if(T){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=i.default.Children.only(n)}let F=T?a&&"object"==typeof a&&a.ref:M,K=i.default.useCallback(e=>(null!==$&&(v.current=(0,p.mountLinkInstance)(e,B,$,I,U,x)),()=>{v.current&&((0,p.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,p.unmountPrefetchableInstance)(e)}),[U,B,$,I,x]),z={ref:(0,c.useMergedRef)(K,F),onClick(t){T||"function"!=typeof _||_(t),T&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,a,o,s,l){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);i.default.startTransition(()=>{d(n||r,o?"replace":"push",s??!0,a.current)})}}(t,B,D,v,C,O,L)},onMouseEnter(e){T||"function"!=typeof E||E(e),T&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===R)},onTouchStart:function(e){T||"function"!=typeof S||S(e),T&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===R)}};return(0,d.isAbsoluteUrl)(D)?z.href=D:T&&!k&&("a"!==a.type||"href"in a.props)||(z.href=(0,f.addBasePath)(D)),o=T?i.default.cloneElement(a,z):(0,s.jsx)("a",{...A,...z,children:n}),(0,s.jsx)(y.Provider,{value:l,children:o})}e.r(84508);let y=(0,i.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,i.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},55436,e=>{"use strict";let t=(0,e.i(75254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],55436)},59015,e=>{"use strict";var t=e.i(18050),r=e.i(22016),n=e.i(71645);function a(){let[e,r]=(0,n.useState)(null),[a,o]=(0,n.useState)("loading");(0,n.useEffect)(()=>{let e=!0;async function t(){try{let t=await fetch("/api/health");if(!e)return;if(!t.ok)return void o("error");let n=await t.json();r(n),o(n.connected?"connected":"disconnected")}catch{e&&o("error")}}t();let n=setInterval(t,3e4);return()=>{e=!1,clearInterval(n)}},[]);let s={loading:"Checking database…",connected:`${e?.adapter??"db"} connected (${e?.latencyMs??"?"}ms)`,disconnected:`${e?.adapter??"db"} disconnected`,error:"Database unreachable"};return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-xs text-[var(--muted-foreground)]",role:"status","aria-label":s[a],children:[(0,t.jsx)("span",{className:`w-2 h-2 rounded-full ${{loading:"bg-yellow-400",connected:"bg-green-500",disconnected:"bg-red-500",error:"bg-red-500"}[a]}`}),(0,t.jsx)("span",{className:"hidden sm:inline",children:s[a]})]})}function o({children:e,fullWidth:n=!1,noFooter:o=!1}){return(0,t.jsxs)("div",{className:"h-screen flex flex-col overflow-hidden",children:[(0,t.jsx)("nav",{className:"desktop-titlebar flex-shrink-0 border-b border-[var(--card-border)] bg-[var(--card-bg)]/80 backdrop-blur-lg z-30",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"flex items-center justify-between h-16",children:[(0,t.jsx)("div",{className:"flex items-center gap-8",children:(0,t.jsx)(r.default,{href:"/",className:"flex items-center gap-3 group",children:(0,t.jsxs)("svg",{width:"52",height:"31",viewBox:"0 0 64 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"transition-transform group-hover:scale-105",children:[(0,t.jsx)("rect",{width:"64",height:"38",rx:"8",fill:"black"}),(0,t.jsxs)("g",{stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M 14 27 C 17 16 19 10 20 8 C 21 12 23 20 25 27"}),(0,t.jsx)("path",{d:"M 16 20 C 19 19 21 21 23 20"}),(0,t.jsx)("path",{d:"M 40 13 C 35 10 30 13 30 19 C 30 25 34 28 38 27 C 40 26 40 22 40 20 L 36 20"}),(0,t.jsx)("path",{d:"M 46 11 C 48 16 51 22 54 27"}),(0,t.jsx)("path",{d:"M 54 11 C 52 16 49 22 46 27"})]})]})})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(r.default,{href:"/",className:"text-sm font-medium text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:"Open Chat"}),(0,t.jsx)(r.default,{href:"/automations",className:"text-sm font-medium text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:"Automations"}),(0,t.jsx)(r.default,{href:"/skills",className:"text-sm font-medium text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:"Skills"}),(0,t.jsx)(r.default,{href:"/settings",className:"text-sm font-medium text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:"Settings"})]})]})})}),(0,t.jsx)("main",{className:`flex-1 min-h-0 flex flex-col ${n?"p-0":"p-4 sm:p-6 lg:p-8 overflow-y-auto"}`,children:e}),!o&&(0,t.jsx)("footer",{className:"flex-shrink-0 border-t border-[var(--card-border)] bg-[var(--card-bg)]/50 py-4",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center justify-between text-xs text-[var(--muted-foreground)]",children:[(0,t.jsx)("span",{children:"AGX Board • Autonomous Agent Orchestration"}),(0,t.jsxs)("span",{className:"hidden sm:inline-flex items-center gap-3",children:[(0,t.jsx)(a,{}),(0,t.jsx)("span",{children:"Built with Next.js + Db"})]})]})})]})}function s(e){return(0,t.jsx)(n.Suspense,{fallback:(0,t.jsx)("div",{className:"h-screen flex items-center justify-center bg-[var(--background)]",children:(0,t.jsx)("span",{className:"spinner w-8 h-8 border-3 border-[var(--primary)] border-t-transparent rounded-full"})}),children:(0,t.jsx)(o,{...e})})}e.s(["default",()=>s],59015)},78463,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(55436),a=e.i(59015),o=e.i(36797),s=e.i(67041),i=e.i(19580),l=e.i(40461);function u(){let{tasks:e,isLoading:u,updateTask:c,deleteTask:d,completeTaskStage:f,cancelWorkflow:p,refetch:h,cancellingTaskId:m}=(0,i.useTasks)({realtime:!0,orphan:!0}),{workflow:g,stages:x,stageConfig:y,isValidTransition:v,isLoading:b}=(0,l.useWorkflows)(),[j,w]=(0,r.useState)(""),N=(0,r.useMemo)(()=>{if(!j.trim())return e;let t=j.toLowerCase();return e.filter(e=>(e.title||"").toLowerCase().includes(t)||(e.content||"").toLowerCase().includes(t))},[e,j]),k=(0,r.useCallback)(async e=>{},[]);return u||b?(0,t.jsx)(a.default,{children:(0,t.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("span",{className:"spinner w-8 h-8 border-3 border-[var(--primary)] border-t-transparent rounded-full"}),(0,t.jsx)("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Loading orphan tasks..."})]})})}):(0,t.jsx)(a.default,{children:(0,t.jsxs)("div",{className:"h-full flex flex-col p-4",children:[(0,t.jsxs)("div",{className:"flex-shrink-0 mb-4 space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-xl font-bold",children:"Orphan Tasks"}),(0,t.jsx)("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Tasks without a project assignment. Open a task to attach it to a project."})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[var(--muted-foreground)]"}),(0,t.jsx)("input",{type:"text",placeholder:"Search orphan tasks",value:j,onChange:e=>w(e.target.value),className:"w-full pl-9 pr-4 py-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-[var(--primary)] focus:border-transparent transition-all"})]}),(0,t.jsx)(s.default,{tasks:N,onTaskClick:()=>{},onStop:async e=>{await p({taskId:e}),await h()},onRetry:async e=>{await f({taskId:e,decision:"not_done",final_result:"Manual retry requested.",explanation:"Manual retry requested."})},cancellingTaskId:m,panelId:"now-running:orphans"})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden",children:(0,t.jsx)(o.default,{tasks:N,onSelectTask:k,onTasksChange:()=>{},onTaskUpdate:async(e,t)=>{await c(e,t)},stages:x,stageConfig:y,isValidTransition:v})})]})})}e.s(["default",()=>u])}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/687d09973325dcf8.js","static/chunks/7d4c1d97169c8522.js","static/chunks/9048e44ed538b21a.js","static/chunks/dfff51033c303fc7.js","static/chunks/09f9eeea393db0fd.js"],runtimeModuleIds:[94553]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=(self.TURBOPACK_CHUNK_SUFFIX??document?.currentScript?.getAttribute?.("src")?.replace(/^(.*(?=\?)|^.*$)/,""))||"",n=new WeakMap;function o(e,t){this.m=e,this.e=t}let l=o.prototype,i=Object.prototype.hasOwnProperty,s="u">typeof Symbol&&Symbol.toStringTag;function u(e,t,r){i.call(e,t)||Object.defineProperty(e,t,r)}function c(e,t){let r=e[t];return r||(r=a(t),e[t]=r),r}function a(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function f(e,t){u(e,"__esModule",{value:!0}),s&&u(e,s,{value:"Module"});let r=0;for(;r<t.length;){let n=t[r++],o=t[r++];if("number"==typeof o)if(0===o)u(e,n,{value:t[r++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[r]?u(e,n,{get:o,set:t[r++],enumerable:!0}):u(e,n,{get:o,enumerable:!0})}Object.seal(e)}l.s=function(e,t){let r,n;null!=t?n=(r=c(this.c,t)).exports:(r=this.m,n=this.e),r.namespaceObject=n,f(n,e)},l.j=function(e,t){var r,o;let l,s,u;null!=t?s=(l=c(this.c,t)).exports:(l=this.m,s=this.e);let a=(r=l,o=s,(u=n.get(r))||(n.set(r,u=[]),r.exports=r.namespaceObject=new Proxy(o,{get(e,t){if(i.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);for(let e of u){let r=Reflect.get(e,t);if(void 0!==r)return r}},ownKeys(e){let t=Reflect.ownKeys(e);for(let e of u)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t}})),u);"object"==typeof e&&null!==e&&a.push(e)},l.v=function(e,t){(null!=t?c(this.c,t):this.m).exports=e},l.n=function(e,t){let r;(r=null!=t?c(this.c,t):this.m).exports=r.namespaceObject=e};let p=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,h=[null,p({}),p([]),p(p)];function d(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!h.includes(t);t=p(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),f(t,n),t}function m(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=d(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function b(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function y(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}l.i=m,l.A=function(e){return this.r(e)(m.bind(this))},l.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},l.r=function(e){return B(e,this.m).exports},l.f=function(e){function t(t){if(t=b(t),i.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=b(t),i.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let O=Symbol("turbopack queues"),g=Symbol("turbopack exports"),w=Symbol("turbopack error");function C(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}l.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:l,reject:i,promise:s}=y(),u=Object.assign(s,{[g]:r.exports,[O]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),c={get:()=>u,set(e){e!==u&&(u[g]=e)}};Object.defineProperty(r,"exports",c),Object.defineProperty(r,"namespaceObject",c),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(O in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[g]:{},[O]:e=>e(t)};return e.then(e=>{r[g]=e,C(t)},e=>{r[w]=e,C(t)}),r}}return{[g]:e,[O]:()=>{}}}),r=()=>t.map(e=>{if(e[w])throw e[w];return e[g]}),{promise:l,resolve:i}=y(),s=Object.assign(()=>i(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[O](u)),s.queueCount?l:r()},function(e){e?i(u[w]=e):l(u[g]),C(n)}),n&&-1===n.status&&(n.status=0)};let U=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function j(e,t){throw Error(`Invariant: ${t(e)}`)}U.prototype=URL.prototype,l.U=U,l.z=function(e){throw Error("dynamic usage of require is not supported")},l.g=globalThis;let R=o.prototype;var k,_=((k=_||{})[k.Runtime=0]="Runtime",k[k.Parent=1]="Parent",k[k.Update=2]="Update",k);let v=new Map;l.M=v;let $=new Map,P=new Map;async function S(e,t,r){let n;if("string"==typeof r)return E(e,t,K(r));let o=r.included||[],l=o.map(e=>!!v.has(e)||$.get(e));if(l.length>0&&l.every(e=>e))return void await Promise.all(l);let i=r.moduleChunks||[],s=i.map(e=>P.get(e)).filter(e=>e);if(s.length>0){if(s.length===i.length)return void await Promise.all(s);let r=new Set;for(let e of i)P.has(e)||r.add(e);for(let n of r){let r=E(e,t,K(n));P.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=E(e,t,K(r.path)),i))P.has(o)||P.set(o,n)}for(let e of o)$.has(e)||$.set(e,n);await n}R.l=function(e){return S(1,this.m.id,e)};let T=Promise.resolve(void 0),A=new WeakMap;function E(t,r,n){let o=e.loadChunkCached(t,n),l=A.get(o);if(void 0===l){let e=A.set.bind(A,o,T);l=o.then(e).catch(e=>{let o;switch(t){case 0:o=`as a runtime dependency of chunk ${r}`;break;case 1:o=`from module ${r}`;break;case 2:o="from an HMR update";break;default:j(t,e=>`Unknown source type: ${e}`)}let l=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw l.name="ChunkLoadError",l}),A.set(o,l)}return l}function K(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}R.L=function(e){return E(1,this.m.id,e)},R.R=function(e){let t=this.r(e);return t?.default??t},R.P=function(e){return`/ROOT/${e??""}`},R.b=function(e){let t=new Blob([`self.TURBOPACK_WORKER_LOCATION = ${JSON.stringify(location.origin)};
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/687d09973325dcf8.js","static/chunks/cbdeb17a36b99000.js","static/chunks/dfff51033c303fc7.js","static/chunks/238a28856e739dc9.js","static/chunks/1a3298f21d1040e9.js"],runtimeModuleIds:[94553]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=(self.TURBOPACK_CHUNK_SUFFIX??document?.currentScript?.getAttribute?.("src")?.replace(/^(.*(?=\?)|^.*$)/,""))||"",n=new WeakMap;function o(e,t){this.m=e,this.e=t}let l=o.prototype,i=Object.prototype.hasOwnProperty,s="u">typeof Symbol&&Symbol.toStringTag;function u(e,t,r){i.call(e,t)||Object.defineProperty(e,t,r)}function c(e,t){let r=e[t];return r||(r=a(t),e[t]=r),r}function a(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function f(e,t){u(e,"__esModule",{value:!0}),s&&u(e,s,{value:"Module"});let r=0;for(;r<t.length;){let n=t[r++],o=t[r++];if("number"==typeof o)if(0===o)u(e,n,{value:t[r++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[r]?u(e,n,{get:o,set:t[r++],enumerable:!0}):u(e,n,{get:o,enumerable:!0})}Object.seal(e)}l.s=function(e,t){let r,n;null!=t?n=(r=c(this.c,t)).exports:(r=this.m,n=this.e),r.namespaceObject=n,f(n,e)},l.j=function(e,t){var r,o;let l,s,u;null!=t?s=(l=c(this.c,t)).exports:(l=this.m,s=this.e);let a=(r=l,o=s,(u=n.get(r))||(n.set(r,u=[]),r.exports=r.namespaceObject=new Proxy(o,{get(e,t){if(i.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);for(let e of u){let r=Reflect.get(e,t);if(void 0!==r)return r}},ownKeys(e){let t=Reflect.ownKeys(e);for(let e of u)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t}})),u);"object"==typeof e&&null!==e&&a.push(e)},l.v=function(e,t){(null!=t?c(this.c,t):this.m).exports=e},l.n=function(e,t){let r;(r=null!=t?c(this.c,t):this.m).exports=r.namespaceObject=e};let p=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,h=[null,p({}),p([]),p(p)];function d(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!h.includes(t);t=p(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),f(t,n),t}function m(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=d(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function b(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function y(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}l.i=m,l.A=function(e){return this.r(e)(m.bind(this))},l.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},l.r=function(e){return B(e,this.m).exports},l.f=function(e){function t(t){if(t=b(t),i.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=b(t),i.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let O=Symbol("turbopack queues"),g=Symbol("turbopack exports"),w=Symbol("turbopack error");function C(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}l.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:l,reject:i,promise:s}=y(),u=Object.assign(s,{[g]:r.exports,[O]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),c={get:()=>u,set(e){e!==u&&(u[g]=e)}};Object.defineProperty(r,"exports",c),Object.defineProperty(r,"namespaceObject",c),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(O in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[g]:{},[O]:e=>e(t)};return e.then(e=>{r[g]=e,C(t)},e=>{r[w]=e,C(t)}),r}}return{[g]:e,[O]:()=>{}}}),r=()=>t.map(e=>{if(e[w])throw e[w];return e[g]}),{promise:l,resolve:i}=y(),s=Object.assign(()=>i(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[O](u)),s.queueCount?l:r()},function(e){e?i(u[w]=e):l(u[g]),C(n)}),n&&-1===n.status&&(n.status=0)};let U=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function j(e,t){throw Error(`Invariant: ${t(e)}`)}U.prototype=URL.prototype,l.U=U,l.z=function(e){throw Error("dynamic usage of require is not supported")},l.g=globalThis;let R=o.prototype;var k,_=((k=_||{})[k.Runtime=0]="Runtime",k[k.Parent=1]="Parent",k[k.Update=2]="Update",k);let v=new Map;l.M=v;let $=new Map,P=new Map;async function S(e,t,r){let n;if("string"==typeof r)return E(e,t,K(r));let o=r.included||[],l=o.map(e=>!!v.has(e)||$.get(e));if(l.length>0&&l.every(e=>e))return void await Promise.all(l);let i=r.moduleChunks||[],s=i.map(e=>P.get(e)).filter(e=>e);if(s.length>0){if(s.length===i.length)return void await Promise.all(s);let r=new Set;for(let e of i)P.has(e)||r.add(e);for(let n of r){let r=E(e,t,K(n));P.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=E(e,t,K(r.path)),i))P.has(o)||P.set(o,n)}for(let e of o)$.has(e)||$.set(e,n);await n}R.l=function(e){return S(1,this.m.id,e)};let T=Promise.resolve(void 0),A=new WeakMap;function E(t,r,n){let o=e.loadChunkCached(t,n),l=A.get(o);if(void 0===l){let e=A.set.bind(A,o,T);l=o.then(e).catch(e=>{let o;switch(t){case 0:o=`as a runtime dependency of chunk ${r}`;break;case 1:o=`from module ${r}`;break;case 2:o="from an HMR update";break;default:j(t,e=>`Unknown source type: ${e}`)}let l=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw l.name="ChunkLoadError",l}),A.set(o,l)}return l}function K(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}R.L=function(e){return E(1,this.m.id,e)},R.R=function(e){let t=this.r(e);return t?.default??t},R.P=function(e){return`/ROOT/${e??""}`},R.b=function(e){let t=new Blob([`self.TURBOPACK_WORKER_LOCATION = ${JSON.stringify(location.origin)};
2
2
  self.TURBOPACK_CHUNK_SUFFIX = ${JSON.stringify(r)};
3
3
  self.TURBOPACK_NEXT_CHUNK_URLS = ${JSON.stringify(e.reverse().map(K),null,2)};
4
4
  importScripts(...self.TURBOPACK_NEXT_CHUNK_URLS.map(c => self.TURBOPACK_WORKER_LOCATION + c).reverse());`],{type:"text/javascript"});return URL.createObjectURL(t)};let x=/\.js(?:\?[^#]*)?(?:#.*)?$/,N=/\.css(?:\?[^#]*)?(?:#.*)?$/;function M(e){return N.test(e)}l.w=function(t,r,n){return e.loadWebAssembly(1,this.m.id,t,r,n)},l.u=function(t,r){return e.loadWebAssemblyModule(1,this.m.id,t,r)};let L={};l.c=L;let B=(e,t)=>{let r=L[e];if(r){if(r.error)throw r.error;return r}return q(e,_.Parent,t.id)};function q(e,t,r){let n=v.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:j(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let l=a(e),i=l.exports;L[e]=l;let s=new o(l,i);try{n(s,l,i)}catch(e){throw l.error=e,e}return l.namespaceObject&&l.exports!==l.namespaceObject&&d(l.exports,l.namespaceObject),l}function I(r){let n,o=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(("u">typeof TURBOPACK_NEXT_CHUNK_URLS?TURBOPACK_NEXT_CHUNK_URLS.pop():e.getAttribute("src")).replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(r[0]);return 2===r.length?n=r[1]:(n=void 0,!function(e,t,r,n){let o=1;for(;o<e.length;){let t=e[o],n=o+1;for(;n<e.length&&"function"!=typeof e[n];)n++;if(n===e.length)throw Error("malformed chunk format, expected a factory function");if(!r.has(t)){let l=e[n];for(Object.defineProperty(l,"name",{value:"module evaluation"});o<n;o++)t=e[o],r.set(t,l)}o=n+1}}(r,0,v)),e.registerChunk(o,n)}let W=new Map;function H(e){let t=W.get(e);if(!t){let r,n;t={resolved:!1,loadingStarted:!1,promise:new Promise((e,t)=>{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},W.set(e,t)}return t}e={async registerChunk(e,t){if(H(K(e)).resolve(),null!=t){for(let e of t.otherChunks)H(K("string"==typeof e?e:e.path));if(await Promise.all(t.otherChunks.map(t=>S(0,e,t))),t.runtimeModuleIds.length>0)for(let r of t.runtimeModuleIds)!function(e,t){let r=L[t];if(r){if(r.error)throw r.error;return}q(t,_.Runtime,e)}(e,r)}},loadChunkCached:(e,t)=>(function(e,t){let r=H(t);if(r.loadingStarted)return r.promise;if(e===_.Runtime)return r.loadingStarted=!0,M(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(M(t));else if(x.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(TURBOPACK_WORKER_LOCATION+t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(M(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(x.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let l=fetch(K(r)),{instance:i}=await WebAssembly.instantiateStreaming(l,o);return i.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(K(r));return await WebAssembly.compileStreaming(o)}};let F=globalThis.TURBOPACK;globalThis.TURBOPACK={push:I},F.forEach(I)})();
@@ -249,7 +249,7 @@ export default function AgentProfilePage() {
249
249
  return (
250
250
  <div className="min-h-screen bg-[var(--background)] text-[var(--foreground)] font-sans selection:bg-amber-100/30">
251
251
  {/* Top Nav */}
252
- <nav className="sticky top-0 z-50 bg-[var(--card-bg)]/80 backdrop-blur-md border-b border-[var(--border)] px-4 md:px-8 h-14 flex items-center justify-between">
252
+ <nav className="desktop-titlebar sticky top-0 z-50 bg-[var(--card-bg)]/80 backdrop-blur-md border-b border-[var(--border)] px-4 md:px-8 h-14 flex items-center justify-between">
253
253
  <div className="flex items-center gap-4">
254
254
  <Link href="/agents" className="p-2 hover:bg-[var(--muted)] rounded-lg transition-colors group">
255
255
  <ArrowLeft className="w-5 h-5 text-[var(--muted-foreground)] group-hover:text-[var(--foreground)]" />
@@ -960,6 +960,7 @@ export default function AgentProfilePage() {
960
960
  title="Edit agent"
961
961
  initial={{
962
962
  name: agent.name,
963
+ title: agent.title || "",
963
964
  provider: agent.provider,
964
965
  model: agent.model || "",
965
966
  identity: agent.identity || "",
@@ -975,6 +976,7 @@ export default function AgentProfilePage() {
975
976
  body: JSON.stringify({
976
977
  id: agent.id,
977
978
  name: data.name,
979
+ title: data.title || null,
978
980
  provider: data.provider,
979
981
  model: data.model,
980
982
  color: data.color,
@@ -985,6 +987,7 @@ export default function AgentProfilePage() {
985
987
  setAgent({
986
988
  ...agent,
987
989
  name: data.name,
990
+ title: data.title || undefined,
988
991
  provider: data.provider,
989
992
  model: data.model,
990
993
  identity: data.identity,
@@ -33,6 +33,8 @@ interface BundleAgent {
33
33
  model: string | null;
34
34
  color: string;
35
35
  identity?: string | null;
36
+ voice?: string | null;
37
+ seed?: string | null;
36
38
  identityFile?: string | null;
37
39
  skills?: { file: string; condition: string }[];
38
40
  variables?: Record<string, string>;
@@ -56,6 +58,16 @@ function getBundleProjects(bundle: AgentBundle | null | undefined): BundleProjec
56
58
  return bundle.projects ?? [];
57
59
  }
58
60
 
61
+ const RANDOM_AGENT_NAMES = [
62
+ "Ada", "Kai", "Sage", "Nova", "Cleo", "Milo", "Iris", "Juno",
63
+ "Remy", "Zara", "Arlo", "Luna", "Ezra", "Wren", "Nico", "Thea",
64
+ "Fern", "Orla", "Kira", "Dax", "Lyra", "Soren", "Vera", "Elio",
65
+ ];
66
+
67
+ function randomAgentName(): string {
68
+ return RANDOM_AGENT_NAMES[Math.floor(Math.random() * RANDOM_AGENT_NAMES.length)];
69
+ }
70
+
59
71
  // ── Component ───────────────────────────────────────────────────────────────
60
72
 
61
73
  export default function AgentLibraryPage() {
@@ -299,6 +311,8 @@ export default function AgentLibraryPage() {
299
311
  model: agent.model,
300
312
  color: agent.color,
301
313
  identity: agent.identity || undefined,
314
+ voice: agent.voice || undefined,
315
+ seed: agent.seed || undefined,
302
316
  identityFile: agent.identityFile || undefined,
303
317
  skills: agent.skills || [],
304
318
  variables: agent.variables || {},
@@ -361,7 +375,7 @@ export default function AgentLibraryPage() {
361
375
  return (
362
376
  <div className="min-h-screen bg-[var(--secondary)] p-6">
363
377
  <div className="max-w-6xl mx-auto">
364
- <div className="flex items-center gap-3 mb-6">
378
+ <div className="desktop-titlebar sticky top-0 z-20 -mx-6 mb-6 flex items-center gap-3 border-b border-[var(--border)] bg-[var(--secondary)]/92 px-6 py-4 backdrop-blur-md">
365
379
  <Link
366
380
  href="/"
367
381
  className="inline-flex items-center gap-1 text-sm text-[var(--muted-foreground)] hover:text-[var(--secondary-foreground)] transition-colors"
@@ -866,7 +880,7 @@ export default function AgentLibraryPage() {
866
880
  {creatingNewAgent && (
867
881
  <AgentForm
868
882
  title="Create new agent"
869
- initial={{ name: "", provider: "claude", model: "", identity: "", skills: [] }}
883
+ initial={{ name: randomAgentName(), provider: "claude", model: "", identity: "", skills: [], skillBindings: [] }}
870
884
  submitLabel="Create"
871
885
  projects={nonDefaultProjects.map((project) => {
872
886
  const threadName = (project.thread_ids ?? []).map((threadId) => threadById.get(threadId)?.title?.trim()).filter(Boolean).join(", ") || "No thread";
@@ -883,8 +897,10 @@ export default function AgentLibraryPage() {
883
897
  headers: { "Content-Type": "application/json" },
884
898
  body: JSON.stringify({
885
899
  id, name: data.name, provider: data.provider, model: data.model, color: data.color ?? color,
900
+ ...(data.title ? { title: data.title } : {}),
886
901
  ...(data.identity ? { identity: data.identity } : {}),
887
902
  skills: data.skills ?? [],
903
+ skillBindings: data.skillBindings ?? [],
888
904
  ...(firstProjectId ? { projectId: firstProjectId } : {}),
889
905
  }),
890
906
  });
@@ -912,11 +928,13 @@ export default function AgentLibraryPage() {
912
928
  title="Edit agent"
913
929
  initial={{
914
930
  name: editAgent.name,
931
+ title: editAgent.title || "",
915
932
  provider: editAgent.provider,
916
933
  model: editAgent.model || "",
917
934
  identity: editAgent.identity || "",
918
935
  color: editAgent.color,
919
936
  skills: editAgent.skills || [],
937
+ skillBindings: editAgent.skillBindings || [],
920
938
  }}
921
939
  agentId={editAgent.id}
922
940
  submitLabel="Save"
@@ -937,11 +955,13 @@ export default function AgentLibraryPage() {
937
955
  body: JSON.stringify({
938
956
  id: editAgent.id,
939
957
  name: data.name,
958
+ title: data.title || null,
940
959
  provider: data.provider,
941
960
  model: data.model,
942
961
  color: data.color,
943
962
  ...(data.identity ? { identity: data.identity } : {}),
944
963
  skills: data.skills ?? [],
964
+ skillBindings: data.skillBindings ?? [],
945
965
  }),
946
966
  });
947
967
  setEditAgent(null);
@@ -3,6 +3,7 @@ import { readFileSync, existsSync } from "fs";
3
3
  import { join } from "path";
4
4
  import { homedir } from "os";
5
5
  import { getAgents, getAgentSkills } from "@/lib/db";
6
+ import { getAgentSkillBindings } from "@/lib/agent-skill-bindings";
6
7
  import { LOCAL_USER } from "@/lib/auth-mode";
7
8
 
8
9
  export const runtime = "nodejs";
@@ -41,11 +42,14 @@ export async function POST(request: NextRequest) {
41
42
  model: a.model || null,
42
43
  color: a.color || "#6B7280",
43
44
  identity: a.description || null,
45
+ voice: a.voice || null,
46
+ seed: a.seed || null,
44
47
  identityFile: null,
45
48
  skills: (await getAgentSkills(a.id)).map((skill) => ({
46
49
  file: skill.file,
47
50
  condition: skill.condition ?? "",
48
51
  })),
52
+ skillBindings: await getAgentSkillBindings(a.id),
49
53
  variables: {},
50
54
  self: includeSelf ? readSelfMd(a.id) : null,
51
55
  }))
@@ -3,6 +3,7 @@ import { readFileSync, existsSync } from "fs";
3
3
  import { join } from "path";
4
4
  import { homedir } from "os";
5
5
  import { getAgents, getAgentSkills } from "@/lib/db";
6
+ import { getAgentSkillBindings } from "@/lib/agent-skill-bindings";
6
7
  import { LOCAL_USER } from "@/lib/auth-mode";
7
8
 
8
9
  export const runtime = "nodejs";
@@ -39,11 +40,14 @@ export async function POST(request: NextRequest) {
39
40
  model: a.model || null,
40
41
  color: a.color || "#6B7280",
41
42
  identity: a.description || null,
43
+ voice: a.voice || null,
44
+ seed: a.seed || null,
42
45
  identityFile: null,
43
46
  skills: (await getAgentSkills(a.id)).map((skill) => ({
44
47
  file: skill.file,
45
48
  condition: skill.condition ?? "",
46
49
  })),
50
+ skillBindings: await getAgentSkillBindings(a.id),
47
51
  variables: {},
48
52
  self: readSelfMd(a.id),
49
53
  }))
@@ -14,6 +14,7 @@ import type { GroupMessage, Participant } from "@/lib/types";
14
14
  import { getQueue, QUEUE_NAMES } from "@/lib/queue/boss";
15
15
  import type { ChatRunPayload, ChatRunJobData } from "@/lib/orchestrator/chat-types";
16
16
  import { ensureOrchestratorRuntime } from "@/lib/orchestrator/runtime";
17
+ import { getDebugLogPath, writeDebugLog } from "@/lib/debug-log";
17
18
 
18
19
  export const runtime = "nodejs";
19
20
  export const dynamic = "force-dynamic";
@@ -27,6 +28,7 @@ interface ChatRequestBody {
27
28
  attachmentIds?: unknown;
28
29
  activeParticipantIds?: unknown;
29
30
  projectSlug?: unknown;
31
+ promptPrefix?: unknown;
30
32
  role?: unknown;
31
33
  agent?: unknown;
32
34
  }
@@ -437,9 +439,17 @@ export async function POST(request: NextRequest) {
437
439
  typeof body.threadId === "string"
438
440
  ? body.threadId.trim()
439
441
  : "";
442
+ const promptPrefix =
443
+ typeof body.promptPrefix === "string"
444
+ ? body.promptPrefix
445
+ : "";
440
446
  const scopedProjectSlug = normalizeProjectSlug(body.projectSlug);
441
447
 
442
448
  if (!threadId) {
449
+ writeDebugLog("chat.post.reject", {
450
+ reason: "missing_thread_id",
451
+ promptLength: prompt.length,
452
+ });
443
453
  return new Response(JSON.stringify({ error: "threadId is required" }), {
444
454
  status: 400,
445
455
  headers: { "Content-Type": "application/json" },
@@ -447,6 +457,10 @@ export async function POST(request: NextRequest) {
447
457
  }
448
458
 
449
459
  if (!prompt) {
460
+ writeDebugLog("chat.post.reject", {
461
+ reason: "missing_prompt",
462
+ threadId,
463
+ });
450
464
  return new Response(JSON.stringify({ error: "No prompt provided" }), {
451
465
  status: 400,
452
466
  headers: { "Content-Type": "application/json" },
@@ -488,6 +502,12 @@ export async function POST(request: NextRequest) {
488
502
  });
489
503
 
490
504
  if (allParticipants.length === 0) {
505
+ writeDebugLog("chat.post.reject", {
506
+ reason: "no_participants",
507
+ threadId,
508
+ requestedActiveIds,
509
+ scopedProjectSlug,
510
+ });
491
511
  return new Response(JSON.stringify({ error: "No active agents configured for this project" }), {
492
512
  status: 400,
493
513
  headers: { "Content-Type": "application/json" },
@@ -600,9 +620,10 @@ export async function POST(request: NextRequest) {
600
620
  50
601
621
  );
602
622
 
623
+ const enrichedPrompt = promptPrefix ? promptPrefix + prompt : prompt;
603
624
  const fullPrompt = promptContext
604
- ? `${promptContext}\n\n---\nCurrent user message:\n${prompt}${attachmentContext}`
605
- : `${prompt}${attachmentContext}`;
625
+ ? `${promptContext}\n\n---\nCurrent user message:\n${enrichedPrompt}${attachmentContext}`
626
+ : `${enrichedPrompt}${attachmentContext}`;
606
627
 
607
628
  // Extract recent assistant messages for dedup and recent messages for reaction targeting.
608
629
  const recentTargetableMessages = subthreadHistory
@@ -632,6 +653,21 @@ export async function POST(request: NextRequest) {
632
653
  participantIds: allParticipants.map((participant) => participant.id),
633
654
  };
634
655
 
656
+ writeDebugLog("chat.post.accepted", {
657
+ threadId,
658
+ chatRunId,
659
+ userMessageId,
660
+ rootMessageId: agentRootMessageId,
661
+ explicitRootMessageId,
662
+ participantIds: allParticipants.map((participant) => participant.id),
663
+ providerIdsMentioned: Array.from(mentioned),
664
+ parallelIds: Array.from(parallelMentioned),
665
+ scopedProjectSlug: scopedProjectSlug || null,
666
+ hasProjectContext: Boolean(projectContext),
667
+ promptLength: prompt.length,
668
+ debugLogPath: getDebugLogPath(),
669
+ });
670
+
635
671
  await createChatRun({
636
672
  id: chatRunId,
637
673
  threadId,
@@ -644,12 +680,18 @@ export async function POST(request: NextRequest) {
644
680
  });
645
681
 
646
682
  await ensureOrchestratorRuntime();
683
+ writeDebugLog("chat.runtime.ready", { chatRunId, threadId });
647
684
  const queue = await getQueue();
648
685
  await queue.send<ChatRunJobData>(QUEUE_NAMES.CHAT_RUN_PROCESS, {
649
686
  chatRunId,
650
687
  userId: LOCAL_USER.id,
651
688
  signal: "start",
652
689
  });
690
+ writeDebugLog("chat.queue.sent", {
691
+ chatRunId,
692
+ threadId,
693
+ queue: QUEUE_NAMES.CHAT_RUN_PROCESS,
694
+ });
653
695
 
654
696
  return Response.json({ ok: true, userMessageId, chatRunId }, { status: 202 });
655
697
  }
@@ -0,0 +1,56 @@
1
+ import { NextResponse } from "next/server";
2
+ import { execSync } from "node:child_process";
3
+ import os from "node:os";
4
+
5
+ export async function POST() {
6
+ const platform = os.platform();
7
+
8
+ try {
9
+ let selected: string | null = null;
10
+
11
+ if (platform === "darwin") {
12
+ // macOS: use osascript to open native folder picker
13
+ const result = execSync(
14
+ `osascript -e 'set folderPath to POSIX path of (choose folder with prompt "Select a repository folder")' 2>/dev/null`,
15
+ { encoding: "utf-8", timeout: 120_000 }
16
+ ).trim();
17
+ if (result) selected = result.replace(/\/$/, ""); // remove trailing slash
18
+ } else if (platform === "linux") {
19
+ // Linux: try zenity, then kdialog
20
+ try {
21
+ selected = execSync(
22
+ `zenity --file-selection --directory --title="Select a repository folder" 2>/dev/null`,
23
+ { encoding: "utf-8", timeout: 120_000 }
24
+ ).trim();
25
+ } catch {
26
+ try {
27
+ selected = execSync(
28
+ `kdialog --getexistingdirectory ~ 2>/dev/null`,
29
+ { encoding: "utf-8", timeout: 120_000 }
30
+ ).trim();
31
+ } catch {
32
+ return NextResponse.json(
33
+ { error: "No folder picker available. Install zenity or kdialog." },
34
+ { status: 500 }
35
+ );
36
+ }
37
+ }
38
+ } else if (platform === "win32") {
39
+ // Windows: PowerShell folder picker
40
+ const ps = `Add-Type -AssemblyName System.Windows.Forms; $f = New-Object System.Windows.Forms.FolderBrowserDialog; $f.Description = 'Select a repository folder'; if ($f.ShowDialog() -eq 'OK') { $f.SelectedPath } else { '' }`;
41
+ selected = execSync(`powershell -Command "${ps}"`, {
42
+ encoding: "utf-8",
43
+ timeout: 120_000,
44
+ }).trim();
45
+ }
46
+
47
+ if (!selected) {
48
+ return NextResponse.json({ cancelled: true }, { status: 200 });
49
+ }
50
+
51
+ return NextResponse.json({ path: selected });
52
+ } catch {
53
+ // User cancelled the dialog (osascript returns non-zero on cancel)
54
+ return NextResponse.json({ cancelled: true }, { status: 200 });
55
+ }
56
+ }
@@ -0,0 +1,53 @@
1
+ import { NextRequest, NextResponse } from "next/server";
2
+ import { getKnowledgeNote, upsertKnowledgeNote, type KnowledgeNoteScope } from "@/lib/knowledge-notes";
3
+
4
+ export const runtime = "nodejs";
5
+ export const dynamic = "force-dynamic";
6
+
7
+ /** GET /api/knowledge-notes?scope=project&subjectId=xxx */
8
+ export async function GET(request: NextRequest) {
9
+ try {
10
+ const url = new URL(request.url);
11
+ const scope = url.searchParams.get("scope") as KnowledgeNoteScope | null;
12
+ const subjectId = url.searchParams.get("subjectId");
13
+
14
+ if (!scope || !subjectId) {
15
+ return NextResponse.json({ error: "scope and subjectId are required" }, { status: 400 });
16
+ }
17
+
18
+ const note = getKnowledgeNote(scope, subjectId);
19
+ return NextResponse.json({ note });
20
+ } catch (error) {
21
+ console.error("Error fetching knowledge note:", error);
22
+ return NextResponse.json({ error: "Failed to fetch knowledge note" }, { status: 500 });
23
+ }
24
+ }
25
+
26
+ /** PUT /api/knowledge-notes — update a knowledge note's content */
27
+ export async function PUT(request: NextRequest) {
28
+ try {
29
+ const body = await request.json().catch(() => ({}));
30
+ const scope = body.scope as KnowledgeNoteScope | undefined;
31
+ const subjectId = typeof body.subjectId === "string" ? body.subjectId.trim() : "";
32
+ const content = typeof body.content === "string" ? body.content : "";
33
+
34
+ if (!scope || !subjectId) {
35
+ return NextResponse.json({ error: "scope and subjectId are required" }, { status: 400 });
36
+ }
37
+
38
+ const { note, changed } = upsertKnowledgeNote({
39
+ scope,
40
+ subjectId,
41
+ content,
42
+ changeSummary: "Manual edit",
43
+ sourceType: "task_completion",
44
+ sourceId: "manual-edit",
45
+ metadata: { manual_edit: true },
46
+ });
47
+
48
+ return NextResponse.json({ note, changed });
49
+ } catch (error) {
50
+ console.error("Error updating knowledge note:", error);
51
+ return NextResponse.json({ error: "Failed to update knowledge note" }, { status: 500 });
52
+ }
53
+ }