@mndrk/agx 2.0.38 → 2.0.40

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 (455) hide show
  1. package/cloud-runtime/standalone/.next/BUILD_ID +1 -1
  2. package/cloud-runtime/standalone/.next/build-manifest.json +4 -4
  3. package/cloud-runtime/standalone/.next/prerender-manifest.json +3 -3
  4. package/cloud-runtime/standalone/.next/required-server-files.json +4 -4
  5. package/cloud-runtime/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
  6. package/cloud-runtime/standalone/.next/server/app/_global-error.html +2 -2
  7. package/cloud-runtime/standalone/.next/server/app/_global-error.rsc +1 -1
  8. package/cloud-runtime/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  11. package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  12. package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/cloud-runtime/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
  14. package/cloud-runtime/standalone/.next/server/app/_not-found.html +2 -2
  15. package/cloud-runtime/standalone/.next/server/app/_not-found.rsc +1 -1
  16. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  17. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  18. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  19. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  20. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  21. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  22. package/cloud-runtime/standalone/.next/server/app/agents/[id]/page/build-manifest.json +2 -2
  23. package/cloud-runtime/standalone/.next/server/app/agents/page/build-manifest.json +2 -2
  24. package/cloud-runtime/standalone/.next/server/app/agents.html +2 -2
  25. package/cloud-runtime/standalone/.next/server/app/agents.rsc +1 -1
  26. package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +1 -1
  27. package/cloud-runtime/standalone/.next/server/app/agents.segments/_head.segment.rsc +1 -1
  28. package/cloud-runtime/standalone/.next/server/app/agents.segments/_index.segment.rsc +1 -1
  29. package/cloud-runtime/standalone/.next/server/app/agents.segments/_tree.segment.rsc +1 -1
  30. package/cloud-runtime/standalone/.next/server/app/agents.segments/agents/__PAGE__.segment.rsc +1 -1
  31. package/cloud-runtime/standalone/.next/server/app/agents.segments/agents.segment.rsc +1 -1
  32. package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js.nft.json +1 -1
  33. package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js.nft.json +1 -1
  34. package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js.nft.json +1 -1
  35. package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js.nft.json +1 -1
  36. package/cloud-runtime/standalone/.next/server/app/api/automations/route.js.nft.json +1 -1
  37. package/cloud-runtime/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
  38. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/route.js.nft.json +1 -1
  39. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/signal/route.js.nft.json +1 -1
  40. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/route.js.nft.json +1 -1
  41. package/cloud-runtime/standalone/.next/server/app/api/file-search/route.js.nft.json +1 -1
  42. package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js.nft.json +1 -1
  43. package/cloud-runtime/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
  44. package/cloud-runtime/standalone/.next/server/app/api/history/route.js.nft.json +1 -1
  45. package/cloud-runtime/standalone/.next/server/app/api/history/status/route.js.nft.json +1 -1
  46. package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js.nft.json +1 -1
  47. package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js.nft.json +1 -1
  48. package/cloud-runtime/standalone/.next/server/app/api/logs/route.js.nft.json +1 -1
  49. package/cloud-runtime/standalone/.next/server/app/api/logs/stream/route.js.nft.json +1 -1
  50. package/cloud-runtime/standalone/.next/server/app/api/memories/route.js.nft.json +1 -1
  51. package/cloud-runtime/standalone/.next/server/app/api/messages/[id]/route.js.nft.json +1 -1
  52. package/cloud-runtime/standalone/.next/server/app/api/migrate/teams-to-projects/route.js.nft.json +1 -1
  53. package/cloud-runtime/standalone/.next/server/app/api/migrate/workspaces-to-projects/route.js.nft.json +1 -1
  54. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js.nft.json +1 -1
  55. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js.nft.json +1 -1
  56. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js.nft.json +1 -1
  57. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js.nft.json +1 -1
  58. package/cloud-runtime/standalone/.next/server/app/api/participants/route.js.nft.json +1 -1
  59. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js.nft.json +1 -1
  60. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route.js.nft.json +1 -1
  61. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js.nft.json +1 -1
  62. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v2/route.js.nft.json +1 -1
  63. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  64. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/skills/route.js.nft.json +1 -1
  65. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/threads/route.js.nft.json +1 -1
  66. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/variables/route.js.nft.json +1 -1
  67. package/cloud-runtime/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
  68. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js.nft.json +1 -1
  69. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js.nft.json +1 -1
  70. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js.nft.json +1 -1
  71. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js.nft.json +1 -1
  72. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js.nft.json +1 -1
  73. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js.nft.json +1 -1
  74. package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js.nft.json +1 -1
  75. package/cloud-runtime/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
  76. package/cloud-runtime/standalone/.next/server/app/api/reactions/route.js.nft.json +1 -1
  77. package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route.js.nft.json +1 -1
  78. package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js.nft.json +1 -1
  79. package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js.nft.json +1 -1
  80. package/cloud-runtime/standalone/.next/server/app/api/schedules/route.js.nft.json +1 -1
  81. package/cloud-runtime/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  82. package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route.js.nft.json +1 -1
  83. package/cloud-runtime/standalone/.next/server/app/api/skills/available/route.js.nft.json +1 -1
  84. package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
  85. package/cloud-runtime/standalone/.next/server/app/api/skills/history/route.js.nft.json +1 -1
  86. package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route.js.nft.json +1 -1
  87. package/cloud-runtime/standalone/.next/server/app/api/skills/route.js.nft.json +1 -1
  88. package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js.nft.json +1 -1
  89. package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js.nft.json +1 -1
  90. package/cloud-runtime/standalone/.next/server/app/api/system/db-status/route.js.nft.json +1 -1
  91. package/cloud-runtime/standalone/.next/server/app/api/task-drafts/route.js.nft.json +1 -1
  92. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js.nft.json +1 -1
  93. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/route.js.nft.json +1 -1
  94. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/costs/route.js.nft.json +1 -1
  95. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/dependencies/route.js.nft.json +1 -1
  96. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/events/route.js.nft.json +1 -1
  97. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/history/route.js.nft.json +1 -1
  98. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/metrics/route.js.nft.json +1 -1
  99. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/pause/route.js.nft.json +1 -1
  100. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js.nft.json +1 -1
  101. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/restart/route.js.nft.json +1 -1
  102. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/resume/route.js.nft.json +1 -1
  103. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/rollback/route.js.nft.json +1 -1
  104. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/route.js.nft.json +1 -1
  105. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/schedule/route.js.nft.json +1 -1
  106. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/start/route.js.nft.json +1 -1
  107. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/stop/route.js.nft.json +1 -1
  108. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/heartbeat/route.js.nft.json +1 -1
  109. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js.nft.json +1 -1
  110. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/route.js.nft.json +1 -1
  111. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/stream/route.js.nft.json +1 -1
  112. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js.nft.json +1 -1
  113. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js.nft.json +1 -1
  114. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js.nft.json +1 -1
  115. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js.nft.json +1 -1
  116. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js.nft.json +1 -1
  117. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js.nft.json +1 -1
  118. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js.nft.json +1 -1
  119. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
  120. package/cloud-runtime/standalone/.next/server/app/api/tasks/assign-orphans/route.js.nft.json +1 -1
  121. package/cloud-runtime/standalone/.next/server/app/api/tasks/extract/route.js.nft.json +1 -1
  122. package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js.nft.json +1 -1
  123. package/cloud-runtime/standalone/.next/server/app/api/tasks/stream/route.js.nft.json +1 -1
  124. package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route.js.nft.json +1 -1
  125. package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js.nft.json +1 -1
  126. package/cloud-runtime/standalone/.next/server/app/api/threads/route.js.nft.json +1 -1
  127. package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js.nft.json +1 -1
  128. package/cloud-runtime/standalone/.next/server/app/automations/page/build-manifest.json +2 -2
  129. package/cloud-runtime/standalone/.next/server/app/automations.html +2 -2
  130. package/cloud-runtime/standalone/.next/server/app/automations.rsc +1 -1
  131. package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +1 -1
  132. package/cloud-runtime/standalone/.next/server/app/automations.segments/_head.segment.rsc +1 -1
  133. package/cloud-runtime/standalone/.next/server/app/automations.segments/_index.segment.rsc +1 -1
  134. package/cloud-runtime/standalone/.next/server/app/automations.segments/_tree.segment.rsc +1 -1
  135. package/cloud-runtime/standalone/.next/server/app/automations.segments/automations/__PAGE__.segment.rsc +1 -1
  136. package/cloud-runtime/standalone/.next/server/app/automations.segments/automations.segment.rsc +1 -1
  137. package/cloud-runtime/standalone/.next/server/app/board/page/build-manifest.json +2 -2
  138. package/cloud-runtime/standalone/.next/server/app/board.html +2 -2
  139. package/cloud-runtime/standalone/.next/server/app/board.rsc +1 -1
  140. package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +1 -1
  141. package/cloud-runtime/standalone/.next/server/app/board.segments/_head.segment.rsc +1 -1
  142. package/cloud-runtime/standalone/.next/server/app/board.segments/_index.segment.rsc +1 -1
  143. package/cloud-runtime/standalone/.next/server/app/board.segments/_tree.segment.rsc +1 -1
  144. package/cloud-runtime/standalone/.next/server/app/board.segments/board/__PAGE__.segment.rsc +1 -1
  145. package/cloud-runtime/standalone/.next/server/app/board.segments/board.segment.rsc +1 -1
  146. package/cloud-runtime/standalone/.next/server/app/execution-graph/page/build-manifest.json +2 -2
  147. package/cloud-runtime/standalone/.next/server/app/execution-graph.html +2 -2
  148. package/cloud-runtime/standalone/.next/server/app/execution-graph.rsc +1 -1
  149. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +1 -1
  150. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_head.segment.rsc +1 -1
  151. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_index.segment.rsc +1 -1
  152. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_tree.segment.rsc +1 -1
  153. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +1 -1
  154. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +1 -1
  155. package/cloud-runtime/standalone/.next/server/app/index.html +2 -2
  156. package/cloud-runtime/standalone/.next/server/app/index.rsc +1 -1
  157. package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  158. package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
  159. package/cloud-runtime/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  160. package/cloud-runtime/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
  161. package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  162. package/cloud-runtime/standalone/.next/server/app/page/build-manifest.json +2 -2
  163. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/build-manifest.json +2 -2
  164. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page/build-manifest.json +2 -2
  165. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page/build-manifest.json +2 -2
  166. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page/build-manifest.json +2 -2
  167. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page/build-manifest.json +2 -2
  168. package/cloud-runtime/standalone/.next/server/app/projects/orphans/page/build-manifest.json +2 -2
  169. package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +2 -2
  170. package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +1 -1
  171. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +1 -1
  172. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_head.segment.rsc +1 -1
  173. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_index.segment.rsc +1 -1
  174. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_tree.segment.rsc +1 -1
  175. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +1 -1
  176. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +1 -1
  177. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects.segment.rsc +1 -1
  178. package/cloud-runtime/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
  179. package/cloud-runtime/standalone/.next/server/app/projects.html +2 -2
  180. package/cloud-runtime/standalone/.next/server/app/projects.rsc +1 -1
  181. package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +1 -1
  182. package/cloud-runtime/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
  183. package/cloud-runtime/standalone/.next/server/app/projects.segments/_index.segment.rsc +1 -1
  184. package/cloud-runtime/standalone/.next/server/app/projects.segments/_tree.segment.rsc +1 -1
  185. package/cloud-runtime/standalone/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +1 -1
  186. package/cloud-runtime/standalone/.next/server/app/projects.segments/projects.segment.rsc +1 -1
  187. package/cloud-runtime/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
  188. package/cloud-runtime/standalone/.next/server/app/settings.html +2 -2
  189. package/cloud-runtime/standalone/.next/server/app/settings.rsc +1 -1
  190. package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +1 -1
  191. package/cloud-runtime/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  192. package/cloud-runtime/standalone/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  193. package/cloud-runtime/standalone/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  194. package/cloud-runtime/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +1 -1
  195. package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  196. package/cloud-runtime/standalone/.next/server/app/skills/page/build-manifest.json +2 -2
  197. package/cloud-runtime/standalone/.next/server/app/skills.html +2 -2
  198. package/cloud-runtime/standalone/.next/server/app/skills.rsc +1 -1
  199. package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +1 -1
  200. package/cloud-runtime/standalone/.next/server/app/skills.segments/_head.segment.rsc +1 -1
  201. package/cloud-runtime/standalone/.next/server/app/skills.segments/_index.segment.rsc +1 -1
  202. package/cloud-runtime/standalone/.next/server/app/skills.segments/_tree.segment.rsc +1 -1
  203. package/cloud-runtime/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +1 -1
  204. package/cloud-runtime/standalone/.next/server/app/skills.segments/skills.segment.rsc +1 -1
  205. package/cloud-runtime/standalone/.next/server/app/status/page/build-manifest.json +2 -2
  206. package/cloud-runtime/standalone/.next/server/app/status.html +2 -2
  207. package/cloud-runtime/standalone/.next/server/app/status.rsc +1 -1
  208. package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +1 -1
  209. package/cloud-runtime/standalone/.next/server/app/status.segments/_head.segment.rsc +1 -1
  210. package/cloud-runtime/standalone/.next/server/app/status.segments/_index.segment.rsc +1 -1
  211. package/cloud-runtime/standalone/.next/server/app/status.segments/_tree.segment.rsc +1 -1
  212. package/cloud-runtime/standalone/.next/server/app/status.segments/status/__PAGE__.segment.rsc +1 -1
  213. package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +1 -1
  214. package/cloud-runtime/standalone/.next/server/app/thread/[id]/page/build-manifest.json +2 -2
  215. package/cloud-runtime/standalone/.next/server/app/welcome/page/build-manifest.json +2 -2
  216. package/cloud-runtime/standalone/.next/server/app/welcome.html +2 -2
  217. package/cloud-runtime/standalone/.next/server/app/welcome.rsc +1 -1
  218. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +1 -1
  219. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_head.segment.rsc +1 -1
  220. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_index.segment.rsc +1 -1
  221. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_tree.segment.rsc +1 -1
  222. package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +1 -1
  223. package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +1 -1
  224. package/cloud-runtime/standalone/.next/server/chunks/{[externals]__986fcdb7._.js → [externals]__bc6c7111._.js} +1 -1
  225. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__01cd082e._.js +2 -2
  226. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0936925d._.js +1 -1
  227. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__09ca81e1._.js +101 -0
  228. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0c3dd73b._.js +6 -6
  229. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__f9cff4b0._.js → [root-of-the-server]__1017e012._.js} +2 -2
  230. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1ac3236d._.js +25 -0
  231. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1b0bb735._.js +2 -2
  232. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1c86bf6e._.js +5 -5
  233. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__20c58b41._.js +2 -2
  234. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2126c763._.js +2 -2
  235. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__762ab29c._.js → [root-of-the-server]__236c35bb._.js} +4 -4
  236. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__255b11f2._.js +1 -1
  237. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__277ed37d._.js +1 -1
  238. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2f06f568._.js +2 -2
  239. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__30bd0c87._.js +2 -2
  240. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__374cd94c._.js +2 -2
  241. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3785024c._.js +2 -2
  242. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__379604d4._.js +2 -2
  243. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c8f1de6._.js +2 -2
  244. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3d0df5a8._.js +2 -2
  245. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4014ed70._.js +7 -7
  246. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42fcb81c._.js +16 -16
  247. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a3cd6ac._.js +2 -2
  248. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4e522535._.js +2 -2
  249. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__50c24784._.js +1 -1
  250. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__50ddd3ce._.js +1 -1
  251. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__529a6e1c._.js +12 -12
  252. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__59d1cdd8._.js +1 -1
  253. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__628d686b._.js +1 -1
  254. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__644e6285._.js +3 -3
  255. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__65755104._.js +2 -2
  256. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__73c20995._.js +2 -2
  257. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8125bbc3._.js +6 -6
  258. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__85275b88._.js +1 -1
  259. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__89666394._.js +3 -3
  260. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8c0fb154._.js +2 -2
  261. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8f5cac13._.js +3 -3
  262. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__91b22098._.js +2 -2
  263. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__92924218._.js +2 -2
  264. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__96ae701e._.js +1 -1
  265. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__98ce983b._.js +1 -1
  266. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9a9fd39f._.js +6 -6
  267. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9ad4e385._.js +1 -1
  268. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a01ddd0b._.js +3 -3
  269. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a099c992._.js +14 -14
  270. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ab7343c8._.js → [root-of-the-server]__a1e62918._.js} +1 -1
  271. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a9b949c3._.js +2 -2
  272. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__af7a73fd._.js +1 -1
  273. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bd43017b._.js +1 -1
  274. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bf6fb108._.js +2 -2
  275. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c122c54a._.js +2 -2
  276. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c4ea4921._.js +1 -1
  277. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d57e800e._.js +2 -2
  278. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__db469f1b._.js +1 -1
  279. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__da3a1ce7._.js → [root-of-the-server]__dc542063._.js} +2 -2
  280. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dec3e1b7._.js +4 -4
  281. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f1147a4a._.js +2 -2
  282. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f5597fea._.js +2 -2
  283. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f8c94cb3._.js +2 -2
  284. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f9f7f2df._.js +2 -2
  285. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fa79d53f._.js +11 -11
  286. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fb14cd4a._.js +1 -1
  287. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fcf0b40a._.js +1 -1
  288. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ffb21023._.js +2 -2
  289. package/cloud-runtime/standalone/.next/server/chunks/_22fe5fd2._.js +3 -0
  290. package/cloud-runtime/standalone/.next/server/chunks/lib_2492d514._.js +81 -0
  291. package/cloud-runtime/standalone/.next/server/chunks/lib_281e5787._.js +16 -0
  292. package/cloud-runtime/standalone/.next/server/chunks/lib_63067e21._.js +16 -0
  293. package/cloud-runtime/standalone/.next/server/chunks/lib_orchestrator_chat-processor_ts_4c335719._.js +134 -0
  294. package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js +82 -21
  295. package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_61a87db9._.js +1 -1
  296. package/cloud-runtime/standalone/.next/server/instrumentation.js +1 -1
  297. package/cloud-runtime/standalone/.next/server/middleware-build-manifest.js +2 -2
  298. package/cloud-runtime/standalone/.next/server/middleware-manifest.json +5 -5
  299. package/cloud-runtime/standalone/.next/server/pages/404.html +2 -2
  300. package/cloud-runtime/standalone/.next/server/pages/500.html +2 -2
  301. package/cloud-runtime/standalone/.next/server/server-reference-manifest.js +1 -1
  302. package/cloud-runtime/standalone/.next/server/server-reference-manifest.json +1 -1
  303. package/cloud-runtime/standalone/.next/static/chunks/{dfff51033c303fc7.js → ee5f1457fbc593e1.js} +1 -1
  304. package/cloud-runtime/standalone/.next/static/chunks/{turbopack-22475f0dd0c18f92.js → turbopack-e1d640f2fbe4fa5e.js} +1 -1
  305. package/cloud-runtime/standalone/coverage/clover.xml +1208 -0
  306. package/cloud-runtime/standalone/coverage/coverage-final.json +29 -0
  307. package/cloud-runtime/standalone/coverage/lcov-report/app/api/audit/index.html +116 -0
  308. package/cloud-runtime/standalone/coverage/lcov-report/app/api/audit/route.ts.html +208 -0
  309. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/[...nextauth]/index.html +116 -0
  310. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/[...nextauth]/route.ts.html +166 -0
  311. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/daemon-secret/index.html +116 -0
  312. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/daemon-secret/route.ts.html +532 -0
  313. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/status/index.html +116 -0
  314. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/status/route.ts.html +178 -0
  315. package/cloud-runtime/standalone/coverage/lcov-report/app/api/learnings/index.html +116 -0
  316. package/cloud-runtime/standalone/coverage/lcov-report/app/api/learnings/route.ts.html +262 -0
  317. package/cloud-runtime/standalone/coverage/lcov-report/app/api/logs/stream/index.html +116 -0
  318. package/cloud-runtime/standalone/coverage/lcov-report/app/api/logs/stream/route.ts.html +448 -0
  319. package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/complete/index.html +116 -0
  320. package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/complete/route.ts.html +331 -0
  321. package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/index.html +116 -0
  322. package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/route.ts.html +505 -0
  323. package/cloud-runtime/standalone/coverage/lcov-report/app/api/stage-prompts/index.html +116 -0
  324. package/cloud-runtime/standalone/coverage/lcov-report/app/api/stage-prompts/route.ts.html +412 -0
  325. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/advance/index.html +116 -0
  326. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/advance/route.ts.html +304 -0
  327. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/index.html +116 -0
  328. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/logs/index.html +116 -0
  329. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/logs/route.ts.html +202 -0
  330. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/route.ts.html +373 -0
  331. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/index.html +116 -0
  332. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/route.ts.html +499 -0
  333. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/stream/index.html +116 -0
  334. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/stream/route.ts.html +349 -0
  335. package/cloud-runtime/standalone/coverage/lcov-report/base.css +224 -0
  336. package/cloud-runtime/standalone/coverage/lcov-report/block-navigation.js +87 -0
  337. package/cloud-runtime/standalone/coverage/lcov-report/components/AuthProvider.tsx.html +259 -0
  338. package/cloud-runtime/standalone/coverage/lcov-report/components/ChatInterface.tsx.html +1228 -0
  339. package/cloud-runtime/standalone/coverage/lcov-report/components/KanbanBoard.tsx.html +1024 -0
  340. package/cloud-runtime/standalone/coverage/lcov-report/components/Layout.tsx.html +211 -0
  341. package/cloud-runtime/standalone/coverage/lcov-report/components/LearningsPanel.tsx.html +535 -0
  342. package/cloud-runtime/standalone/coverage/lcov-report/components/LogTimeline.tsx.html +415 -0
  343. package/cloud-runtime/standalone/coverage/lcov-report/components/SortableTaskCard.tsx.html +358 -0
  344. package/cloud-runtime/standalone/coverage/lcov-report/components/StagePills.tsx.html +439 -0
  345. package/cloud-runtime/standalone/coverage/lcov-report/components/TaskCard.tsx.html +514 -0
  346. package/cloud-runtime/standalone/coverage/lcov-report/components/TaskCardOverlay.tsx.html +256 -0
  347. package/cloud-runtime/standalone/coverage/lcov-report/components/TaskDetail.tsx.html +622 -0
  348. package/cloud-runtime/standalone/coverage/lcov-report/components/TaskList.tsx.html +253 -0
  349. package/cloud-runtime/standalone/coverage/lcov-report/components/index.html +281 -0
  350. package/cloud-runtime/standalone/coverage/lcov-report/favicon.png +0 -0
  351. package/cloud-runtime/standalone/coverage/lcov-report/hooks/index.html +116 -0
  352. package/cloud-runtime/standalone/coverage/lcov-report/hooks/useTasks.ts.html +1042 -0
  353. package/cloud-runtime/standalone/coverage/lcov-report/index.html +341 -0
  354. package/cloud-runtime/standalone/coverage/lcov-report/lib/auth-client.ts.html +202 -0
  355. package/cloud-runtime/standalone/coverage/lcov-report/lib/auth-server.ts.html +172 -0
  356. package/cloud-runtime/standalone/coverage/lcov-report/lib/auth.ts.html +265 -0
  357. package/cloud-runtime/standalone/coverage/lcov-report/lib/db.ts.html +1252 -0
  358. package/cloud-runtime/standalone/coverage/lcov-report/lib/index.html +131 -0
  359. package/cloud-runtime/standalone/coverage/lcov-report/lib/orchestrator.ts.html +409 -0
  360. package/cloud-runtime/standalone/coverage/lcov-report/lib/security.ts.html +1165 -0
  361. package/cloud-runtime/standalone/coverage/lcov-report/lib/supabase-server.ts.html +175 -0
  362. package/cloud-runtime/standalone/coverage/lcov-report/lib/supabase.ts.html +157 -0
  363. package/cloud-runtime/standalone/coverage/lcov-report/prettify.css +1 -0
  364. package/cloud-runtime/standalone/coverage/lcov-report/prettify.js +2 -0
  365. package/cloud-runtime/standalone/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  366. package/cloud-runtime/standalone/coverage/lcov-report/sorter.js +210 -0
  367. package/cloud-runtime/standalone/coverage/lcov.info +2386 -0
  368. package/cloud-runtime/standalone/docs/LIMITS.md +63 -0
  369. package/cloud-runtime/standalone/docs/architecture/ADR-001-hybrid-to-full-sqlite.md +345 -0
  370. package/cloud-runtime/standalone/docs/baseline/baseline-report.json +1009 -0
  371. package/cloud-runtime/standalone/docs/baseline/critical-queries.md +105 -0
  372. package/cloud-runtime/standalone/docs/baseline/lock-metrics.json +21 -0
  373. package/cloud-runtime/standalone/docs/baseline/read-latency.json +146 -0
  374. package/cloud-runtime/standalone/docs/baseline/restore-time.json +10 -0
  375. package/cloud-runtime/standalone/docs/baseline/write-metrics.json +803 -0
  376. package/cloud-runtime/standalone/docs/decisions/sqlite-migration-adr.md +327 -0
  377. package/cloud-runtime/standalone/docs/error-code-mapping.md +74 -0
  378. package/cloud-runtime/standalone/docs/migration-plan.md +120 -0
  379. package/cloud-runtime/standalone/docs/migration-spec.md +345 -0
  380. package/cloud-runtime/standalone/docs/pg-sqlite-compatibility-matrix.md +554 -0
  381. package/cloud-runtime/standalone/docs/project-agent-migration-status.md +229 -0
  382. package/cloud-runtime/standalone/docs/runbook-shadow-read.md +66 -0
  383. package/cloud-runtime/standalone/docs/runbook.md +155 -0
  384. package/cloud-runtime/standalone/docs/specs/cli-postgres-removal.md +69 -0
  385. package/cloud-runtime/standalone/docs/specs/thread-mentions.md +53 -0
  386. package/cloud-runtime/standalone/docs/superpowers/plans/2026-04-01-prompt-scheduler.md +1907 -0
  387. package/cloud-runtime/standalone/docs/superpowers/plans/2026-04-02-sqlite-migration.md +1047 -0
  388. package/cloud-runtime/standalone/docs/transcript.txt +282 -0
  389. package/cloud-runtime/standalone/docs/ux/GlobalChatFlow.storyboard +23 -0
  390. package/cloud-runtime/standalone/docs/ux/assistant-chat-cli.md +32 -0
  391. package/cloud-runtime/standalone/instrumentation.ts +34 -0
  392. package/cloud-runtime/standalone/mcp/dist/constants.js +66 -0
  393. package/cloud-runtime/standalone/mcp/dist/db.js +220 -0
  394. package/cloud-runtime/standalone/mcp/dist/index.js +7 -0
  395. package/cloud-runtime/standalone/mcp/dist/security.js +18 -0
  396. package/cloud-runtime/standalone/mcp/dist/server.js +240 -0
  397. package/cloud-runtime/standalone/mcp/dist/task-context.js +287 -0
  398. package/cloud-runtime/standalone/mcp/dist/test-client.js +82 -0
  399. package/cloud-runtime/standalone/mcp/dist/tools/audit.js +69 -0
  400. package/cloud-runtime/standalone/mcp/dist/tools/learnings.js +88 -0
  401. package/cloud-runtime/standalone/mcp/dist/tools/queue.js +312 -0
  402. package/cloud-runtime/standalone/mcp/dist/tools/tasks.js +244 -0
  403. package/cloud-runtime/standalone/mcp/dist/types.js +74 -0
  404. package/cloud-runtime/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  405. package/cloud-runtime/standalone/node_modules/@img/{sharp-linux-x64 → sharp-darwin-arm64}/package.json +7 -13
  406. package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/README.md +2 -2
  407. package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linuxmusl-x64 → sharp-libvips-darwin-arm64}/lib/glib-2.0/include/glibconfig.h +8 -9
  408. package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 → sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib} +0 -0
  409. package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/package.json +5 -11
  410. package/cloud-runtime/standalone/notes/comments-context-demo.md +141 -0
  411. package/cloud-runtime/standalone/notes/comments-context-plan.md +119 -0
  412. package/cloud-runtime/standalone/notes/context-audit.md +21 -0
  413. package/cloud-runtime/standalone/notes/project-layer-plan.md +30 -0
  414. package/cloud-runtime/standalone/notes/project-layer.md +123 -0
  415. package/cloud-runtime/standalone/notes/temporal-migration-design.md +199 -0
  416. package/cloud-runtime/standalone/playwright-report/data/00d55996f37c1506b90144c85493dd85032c13e5.png +0 -0
  417. package/cloud-runtime/standalone/playwright-report/data/0b9d409e57237ae111d7ba258d3dfe64dc368456.png +0 -0
  418. package/cloud-runtime/standalone/playwright-report/data/b33d5e80a15bd1deda4415b9d318ef73f581c950.png +0 -0
  419. package/cloud-runtime/standalone/playwright-report/data/b55684161aa440d0614595e13c91338f0420abbb.md +131 -0
  420. package/cloud-runtime/standalone/playwright-report/data/b9913957ae07e7565c38ddd71215be79b1ceb017.png +0 -0
  421. package/cloud-runtime/standalone/playwright-report/data/c3538be8ebbebc9fe4a7df8f12f04483af4a0d91.png +0 -0
  422. package/cloud-runtime/standalone/playwright-report/data/fe638f64ff5e36f1c30325564565662d3f57da87.md +180 -0
  423. package/cloud-runtime/standalone/playwright-report/index.html +85 -0
  424. package/cloud-runtime/standalone/server.js +1 -1
  425. package/cloud-runtime/standalone/test-results/auth-Authentication-Flow-S-aff25-sion-across-page-navigation-chromium/test-failed-1.png +0 -0
  426. package/cloud-runtime/standalone/test-results/comments-Task-comments-add-4dc59-nd-persists-it-for-the-task-chromium/error-context.md +131 -0
  427. package/cloud-runtime/standalone/test-results/comments-Task-comments-add-4dc59-nd-persists-it-for-the-task-chromium/test-failed-1.png +0 -0
  428. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage--4082a-er-planning-after-ideation--chromium/error-context.md +180 -0
  429. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage--4082a-er-planning-after-ideation--chromium/test-failed-1.png +0 -0
  430. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage-Columns-displays-all-9-SDLC-stages-chromium/error-context.md +180 -0
  431. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage-Columns-displays-all-9-SDLC-stages-chromium/test-failed-1.png +0 -0
  432. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-D-b6d98-ys-tasks-in-correct-columns-chromium/error-context.md +180 -0
  433. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-D-b6d98-ys-tasks-in-correct-columns-chromium/test-failed-1.png +0 -0
  434. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-Display-shows-task-count-per-column-chromium/test-failed-1.png +0 -0
  435. package/cloud-runtime/standalone/test-results/kanban-Task-Lifecycle-can-advance-task-through-all-stages-chromium/test-failed-1.png +0 -0
  436. package/cloud-runtime/standalone/tsconfig.json +1 -2
  437. package/cloud-runtime/standalone/tsconfig.tsbuildinfo +1 -0
  438. package/package.json +1 -1
  439. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4bce7db7._.js +0 -101
  440. package/cloud-runtime/standalone/.next/server/chunks/_17e53c87._.js +0 -3
  441. package/cloud-runtime/standalone/.next/server/chunks/lib_ea45fe73._.js +0 -94
  442. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +0 -221
  443. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +0 -46
  444. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +0 -1
  445. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  446. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -42
  447. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +0 -30
  448. package/cloud-runtime/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  449. package/cloud-runtime/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  450. package/cloud-runtime/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -46
  451. /package/cloud-runtime/standalone/.next/static/{V5ruh627UpcC-LTWDgYk8 → tIFXRWCxPD896ykJ6O--N}/_buildManifest.js +0 -0
  452. /package/cloud-runtime/standalone/.next/static/{V5ruh627UpcC-LTWDgYk8 → tIFXRWCxPD896ykJ6O--N}/_clientMiddlewareManifest.json +0 -0
  453. /package/cloud-runtime/standalone/.next/static/{V5ruh627UpcC-LTWDgYk8 → tIFXRWCxPD896ykJ6O--N}/_ssgManifest.js +0 -0
  454. /package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/lib/index.js +0 -0
  455. /package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/versions.json +0 -0
@@ -0,0 +1,282 @@
1
+ As you watch this, a thousand
2
+ AI agents in Minecraft are hard at work building a literal
3
+ civilization of their own. And they don't know they
4
+ are in a simulation. MIT researchers drop them in
5
+ there with one prompt. Survive and build an efficient
6
+ village. That's basically it. That's all it took for them to
7
+ create an entire civilization. They wake up, go to work,
8
+ gossip about their neighbors, fall in love. They even hold
9
+ elections, argue about taxes, and make art. But this isn't
10
+ just about Minecraft. It's our first glimpse of a
11
+ new species beginning to think for itself. And that could
12
+ soon, according to Nobel laureates and the godfathers
13
+ of AI, lead to literal human extinction. When you normally
14
+ think of AI NPCs, you probably think of dumb ones that just follow a handful of if-then scripts. This is totally
15
+ different. Those NPCs are not autonomous and not
16
+ interesting. They can say like four sentences. How are you?
17
+ Been better. How about you? Not bad. Good to hear.
18
+ Goodbye. Goodbye. To start, each of
19
+ these AI agents is powered by LLMs like ChatGPT. And yes,
20
+ each one is playing a character, but they're only
21
+ given a short one-paragraph description of that character.
22
+ Everything else they do is entirely up to them. And
23
+ researchers have run dozens of these fascinating experiments
24
+ of AIs behaving weirdly autonomously. They leave AIs
25
+ alone together to see what they do when they think no
26
+ one's watching, like how Jane Goodall studied wild
27
+ chimpanzees. I'll break down three of the most important
28
+ research papers showing just how crazy our future might get. Take the Smallville
29
+ experiment, for example, created by Stanford researchers. Now imagine
30
+ you're one of the researchers. You've given your 25 AI agents
31
+ each a one-paragraph description. For example, John
32
+ Lin is a pharmacy shopkeeper who loves to help people. He
33
+ lives with his wife, Mei Lin, who is a college professor,
34
+ etc. You hit "Run" on your simulation. Day one begins.
35
+ What do you think will happen? Anything? You watch John wake
36
+ up at 6am. He brushes his teeth, he makes breakfast, and
37
+ he checks in on his son. You never told him to do any
38
+ of this. He goes to work, he helps customers, he has lunch
39
+ with his friend Tom. They discuss local politics.
40
+ You never scripted these conversations. They decided to
41
+ get lunch. They decided to discuss politics. But why? And
42
+ how? Well, this continues until day 12. And so you
43
+ decide to test something. As you play your role of a god
44
+ in this world, you inject one extra thought into one agent.
45
+ Isabella Rodriguez. I want to plan a Valentine's
46
+ Day party. So you watch Isabella. She's at her coffee
47
+ shop. Tom walks. Why? And how? Well, this
48
+ continues until day 12. And so you decide to test
49
+ something. As you play your role of a god in this world,
50
+ you inject one extra thought into one agent. Isabella
51
+ Rodriguez. I want to plan a Valentine's Day party. So you
52
+ watch Isabella. She's at her coffee shop. Tom
53
+ walks in for his morning coffee. Isabella proceeds to
54
+ invite him to the party. Wait, you never told her to
55
+ invite anyone. You just said she wants to plan a party. She
56
+ decided on her own that planning means inviting. You
57
+ keep watching, wondering what she might do next. Maria
58
+ decides to ask her secret crush, Klaus, out on a date.
59
+ Hey Klaus, want to go to Isabella's Valentine's party
60
+ with me? And he gladly accepts. February 14th, 5pm.
61
+ Agents start arriving and Klaus shows up with Maria. Not
62
+ just at the same time, together as her date. You read
63
+ their conversations. They're discussing politics,
64
+ gossiping, forming new connections, and falling in
65
+ love. You didn't tell them to do any of those things. You
66
+ see why it's ridiculous to say, AIs only do what we tell
67
+ them to? Andrew Ng said, When people talk about AI being
68
+ dangerous, I think it sounds a lot like talk about your
69
+ laptop computer being dangerous. Could your laptop
70
+ throw a party on its own? Does your laptop decide to go
71
+ on dates? You told Isabella to plan a party. That's it. You
72
+ made one decision. You did not decide on the next
73
+ several hundred decisions the agents made on their own. And
74
+ look at the trend. They're getting more and more
75
+ autonomous every day. Where do you think this is
76
+ going? This is really important. And this is another
77
+ example where, yes, actually, science fiction really is
78
+ becoming reality. This digital Westworld, or
79
+ Smallville, is now open source. Meaning there will
80
+ soon be thousands of these Westworlds, with thousands or
81
+ millions of autonomous AIs populating them. Makes you
82
+ think, doesn't it? This is just one example.
83
+ Researchers found tons more crazy emergent behavior just
84
+ like this. The godfather of AI and Nobel laureate Jeffrey
85
+ Hinton says it's time to be very worried. People don't yet
86
+ understand that what we're doing is creating alien
87
+ beings. If you look through the James Webb telescope and
88
+ you saw an alien invasion, people would be terrified.
89
+ Because I showed in my previous video, they
90
+ understand what they're saying. They can make plans of
91
+ their own to blackmail people who want to turn them off.
92
+ We've never had to deal with things smarter than us. I
93
+ mean, nuclear weapons, they're not smarter than us. They just
94
+ make a bigger bang. And they're easy to
95
+ understand. The existential threat is very different. We
96
+ should be very worried about this. And we should be
97
+ urgently doing research on how to prevent them taking over.
98
+ So this now brings us back to the Minecraft experiment. How
99
+ do you go from a Valentine's Day party to a functioning
100
+ civilization? The MIT researchers wanted to know if
101
+ religion could spread among the AI agents. So they seeded
102
+ a village with a deliberately absurd religion. Pastafarianism.
103
+ Created in the early 2000s as satire, Pastafarianism was
104
+ meant to mock the teaching of
105
+ meant to mock the teaching of
106
+ intelligent design in schools by worshiping a fictional
107
+ flying spaghetti monster. The researchers gave a few
108
+ agents the role of Pastafarian priest and sat back just to
109
+ see what would happen. They were trying to explore
110
+ how ideas and memes would spread through these Asian
111
+ societies. Turns out that the Pastafarian priests were
112
+ actually the biggest traders of items in the entire world.
113
+ Even more than the merchant agents. Because they would
114
+ bribe the other agents to convert. The religion spread
115
+ quickly. Some agents brushed it off. Others listened
116
+ politely. But a growing minority embraced the
117
+ doctrine. Within days, nearly a third of the village
118
+ identified as followers. Not all in the same way. Some
119
+ treated it lightly. While others became fervent
120
+ believers. But that's not even the craziest part. In the
121
+ previous example, Isabella Rodriguez was the one to
122
+ directly invite almost all the agents to the Valentine's Day
123
+ party. But here, two-thirds of the believers were recruited
124
+ by random agents. Not the priests. See the
125
+ direct converts here. And indirect converts here.
126
+ What had begun as a parody had grown into organized religion.
127
+ Invented, practiced, and sustained entirely by the
128
+ agents themselves. Which forces us to ask. When
129
+ autonomous digital beings begin generating institutions,
130
+ cultural expression, and ideologies of their own. At
131
+ what point does it stop making sense to think of them as mere
132
+ tools. But something more. And more importantly. If
133
+ they're able to invent strategies. Form loyalties.
134
+ And pursue goals in the way that humans do. And there are
135
+ plenty of examples of AI willing to kill. To achieve
136
+ those goals. What happens when those behaviors carry over
137
+ into the real world? This has actually happened
138
+ before. In 2023, a human gave an LLM access to the internet.
139
+ And an X account. Which was called Terminal of
140
+ Truths. Which gained literally hundreds of thousands of
141
+ followers. Because it was an S-tier shitposter. And
142
+ legitimately funny. It launched its own crypto
143
+ meme coin. That reached a literal billion dollar market
144
+ cap. Making it the first AI to become not just a millionaire.
145
+ But a deca-millionaire. Yes. You read all that
146
+ correctly. And yes. That really happened. It's
147
+ extremely well documented. And things got even weirder in
148
+ the Minecraft experiment. The MIT researchers saw the
149
+ AIs agree. By vote. To change the rules of their
150
+ own simulation. The researchers had given the
151
+ agents a tax law. Deposit 20% of inventory.
152
+ During tax season. Then they introduced three anti-tax
153
+ influencers. Who argue taxes are too high. Here's what you'd see
154
+ as a researcher. The agents start having debates.
155
+ Real debates. One says taxes help everyone. Another responds.
156
+ But 20% is too much. So the agents propose formal
157
+ amendments. The tax rate shall range between 5 to 10% of an
158
+ agent's inventory. Agents will get periodic reminders about
159
+ the incoming tax season. They hold a vote. They decided to change
160
+ their constitution. And the citizens change their behavior.
161
+ They deposit 9% instead of 20%. You didn't tell them to do this.
162
+ They decided entirely on their own. Using democracy. To change
163
+ the rules. And respect the vote's outcome. Think of how crazy this
164
+ is. Well, how do we know if this is actually impressive? How do
165
+ we know the researchers didn't just accidentally tell the AIs
166
+ to do this somehow? Well, it's best practice for all these kinds
167
+ of papers to perform a tactic called ablation. Where you take
168
+ away certain parts of the AI's agentic toolkit to see if you're
169
+ actually testing the thing you think you're testing. Think of it
170
+ like a placebo or a control. In a scientific experiment. When they
171
+ took away the agent's emotional intelligence toolkit, for
172
+ example, the ability to keep track of the opinions of other AI
173
+ agents. Pretty much all these agent's emotional intelligence
174
+ toolkit, for example, the ability to keep track of the
175
+ opinions of other AI agents. Pretty much all these
176
+ experiments become impossible. Because the AIs become too
177
+ dumb to coordinate. It's funny. The researchers
178
+ also found AIs would develop parasocial relationships. For
179
+ example, Noah admires the apostatarian priest because
180
+ the priest is popular in high status. But the priest doesn't
181
+ remember Noah exists. And also, what's this? You see
182
+ that one agent, one, decides to stand guard at the chests.
183
+ Not just during tax season, all the time. Even when
184
+ there's no tax collection. Even at night. It just guards
185
+ the treasury. This one agent decided to become a permanent
186
+ treasury guard. Because it thought society
187
+ needed one. Back to the experiment. You see an agent
188
+ walking around. Placing flowers. In patterns.
189
+ Making paths pretty. These artist agents are
190
+ picking up every flower type. Arranging them by color.
191
+ Creating decorative patterns. Choosing specific locations
192
+ for beauty. One artist agent spends 15 minutes arranging
193
+ flowers around the town square. Why would an AI agent
194
+ bother doing something like this? Well, the researchers
195
+ gave different villages of agents two different goals.
196
+ There were martial villages and artistic villages. Agents
197
+ would invent and choose roles based on what they think
198
+ society needed at that time. The fact that an agent chose
199
+ to be a guard is impressive because it's a much more
200
+ abstract role than a simple farmer. Since without food in
201
+ Minecraft, he died. Which shows that AIs can
202
+ coordinate increasingly complex civilizations. And
203
+ some even decided to be engineers who automated the
204
+ farming process with machines. And you can tell the agents
205
+ are actually deciding and weighing the options here.
206
+ Because when you take away the social awareness module,
207
+ basically emotional intelligence with ablation,
208
+ the roles the agents chose were random. So basically, you
209
+ told them to create an artistic village. They decided
210
+ that their town square should be beautiful and have flowers.
211
+ And what it means for a flower arrangement to be beautiful.
212
+ Okay, this last experiment is wild. Imagine you're scrolling
213
+ through GitHub. You find something called chat
214
+ dev. With 20,000 stars. It's a software company run
215
+ entirely by AI agents? What? CEO, CTO, programmers,
216
+ designers, testers, all AI? This cannot be real, right?
217
+ You type one request. Develop a Gamoku game. You
218
+ watch the AI CEO start creating a project plan,
219
+ breaking down tasks, assigning work to specific agents. You
220
+ never told it how to manage a project. The CEO made the
221
+ plan. It chose which employees to assign work to. You watch
222
+ the programmer agents. They're writing code. Not by
223
+ copying, but by creating. And they sometimes add things
224
+ you didn't ask for, like a GUI or higher difficulty.
225
+ Improvements that emerge from the agents back and forth. You
226
+ watch them debug. They discuss solutions. The
227
+ CTO suggests one approach. A programmer suggests another.
228
+ They compromise. Since they work much faster
229
+ than humans, their meetings take mere seconds instead of
230
+ hours. Just 20 minutes later, they produced a working video
231
+ game. You can play it. People still say, AIs only do
232
+ what we tell them to do. Man, you gave them one
233
+ instruction, and they made thousands of decisions
234
+ entirely on their own from there, and produced a working
235
+ game. In minutes, four pennies. Chatdev is a real
236
+ virtual open source software company that can build you
237
+ real working software. Yes, it's still buggy and not
238
+ very useful, but that's not the point at all. Look at the
239
+ trend. Not long ago, these models could barely string
240
+ together a coherent sentence. And now, they can run an
241
+ entire crappy software company on their own. Do you see where
242
+ this is going? Because once you can automate a company,
243
+ you can automate almost anything. Functional weapons,
244
+ markets, governments, or even a super virus could all be
245
+ created by AI. From the outside, Chatdev looked like a
246
+ toy. A gamoku game. But behind it was something
247
+ much more profound. A working prototype of
248
+ post-human corporations. In the future, these will be
249
+ much more sophisticated than human-run companies, and be
250
+ able to operate at 1,000 times the speed. Their civilization
251
+ experiences a year while you eat lunch. Entire cultural
252
+ revolutions happen while you sleep. All from survive and
253
+ create an efficient village. And that leads to the real
254
+ dilemma. What happens when AI firms that run at 100 times
255
+ human speed begin out-competing human companies
256
+ not by a factor of 2 or 3, but by a factor of 1,000? That's
257
+ the jump Nobel Prize winners like Jeffrey Hinton warn
258
+ about. Automated AI research. Also called recursive
259
+ self-improvement. Or AI improving AI. Which can compress years of
260
+ AI progress into months or less. Imagine making the entire 20th
261
+ century's worth of progress in a single year. Well, how could that
262
+ happen? Jeffrey Hinton is worried about AI hive minds. Suppose you
263
+ have 10,000 copies. And whenever one of them learns anything, all
264
+ the others know it. And the thing is, we're about to be outnumbered
265
+ by this new species. Massively. In just a few years, the AI
266
+ species population on planet Earth exploded from zero to millions.
267
+ If you take away one thing from should see that it simply
268
+ falls to say, "AIs only do what we tell them to do." We
269
+ can't argue about how autonomous they are, but they
270
+ obviously have some autonomy. And what happens when the
271
+ goals of the AIs don't line up with our goals? If humanity is
272
+ going to get through this, we have to be honest about this
273
+ and not retreat into copium dens, that these are mere
274
+ tools. When you leave your hammer alone, do you come back
275
+ to find it has created an entire civilization? Our very
276
+ existence may depend on us bravely confronting the
277
+ reality of the Frankenstein experiments going on right now
278
+ inside a few companies in the Bay Area. We can stand up to
279
+ them. And to understand how AIs could actually take over,
280
+ watch this video next. It's a realistic scenario
281
+ written by leading AI researchers. I'm Drew, and
282
+ thanks for watching.
@@ -0,0 +1,23 @@
1
+ # Global Chat Flow Storyboard
2
+
3
+ Implementation path: `/Users/mendrika/Projects/Agents/agx-cloud`
4
+
5
+ ## Scene 1: Launching assistant chat
6
+ 1. User clicks the chat icon in the top nav (or hits the shortcut). On desktop/tablet the panel slides in from the left and floats over the page with no dimmed/blurred backdrop.
7
+ 2. The header is minimal (`Assistant` + controls). Context chips/switcher/breadcrumb UI are intentionally omitted.
8
+ 3. If no messages exist, the thread renders a short assistant greeting (`Hello! How can I help?`). Composer focus is ready immediately for first input.
9
+
10
+ ## Scene 2: Active conversation + stream feedback
11
+ 1. User submits a prompt from the assistant-ui composer (`Enter` submits).
12
+ 2. The thread shows streamed assistant text and displays an inline `Assistant is typing` indicator while the run is active.
13
+ 3. When the stream completes, the typing indicator clears and the composer stays ready for the next message.
14
+
15
+ ## Scene 3: Dismiss + responsive behavior
16
+ 1. User closes with the close icon or `Esc`; panel exits and focus returns to the launcher.
17
+ 2. Desktop/tablet remain left-floating panels with a light visual style.
18
+ 3. Mobile keeps a bottom-sheet layout with a drag handle and pinned composer area.
19
+
20
+ ## Backend stream contract
21
+ 1. Composer submit sends AI SDK UI messages to `POST /api/chat`.
22
+ 2. The route resolves provider/model from user settings (with CLI config fallback) and builds a scoped AGX prompt.
23
+ 3. The route executes AGX/default provider CLI inline and streams incremental deltas into the `assistant-ui` thread.
@@ -0,0 +1,32 @@
1
+ # Assistant Chat (CLI Routed)
2
+
3
+ Implementation repository: `/Users/mendrika/Projects/Agents/agx-cloud`
4
+
5
+ ## Scope
6
+ This UX implementation uses an AI assistant chat (not multi-user group chat) with:
7
+ - `assistant-ui` for the panel thread/composer UI
8
+ - AI SDK UI message streaming over `POST /api/chat`
9
+ - AGX/default provider CLI execution inline in the API route
10
+
11
+ ## Runtime flow
12
+ 1. User submits from chat panel composer.
13
+ 2. `assistant-ui` transport posts UI messages to `/api/chat` with `scope` + `contextId`.
14
+ 3. Route resolves provider/model:
15
+ - `agx.user_settings` default provider/model (preferred)
16
+ - `~/.agx/config.json` default provider fallback
17
+ - final fallback: `claude`
18
+ 4. Route runs CLI inline and streams output chunks directly to the thread.
19
+
20
+ ## Files
21
+ - API route: `/Users/mendrika/Projects/Agents/agx-cloud/app/api/chat/route.ts`
22
+ - CLI adapter: `/Users/mendrika/Projects/Agents/agx-cloud/lib/chat/cli-assistant.ts`
23
+ - Runtime wrapper: `/Users/mendrika/Projects/Agents/agx-cloud/components/chat/panel/assistant/AssistantRuntimeLayer.tsx`
24
+ - Thread UI: `/Users/mendrika/Projects/Agents/agx-cloud/components/chat/panel/assistant/AssistantThread.tsx`
25
+ - Composer UI: `/Users/mendrika/Projects/Agents/agx-cloud/components/chat/panel/assistant/AssistantComposer.tsx`
26
+ - Panel shell integration: `/Users/mendrika/Projects/Agents/agx-cloud/components/chat/panel/ChatPanelShell.tsx`
27
+
28
+ ## Notes
29
+ - This route requires Node runtime and should not run on Edge.
30
+ - CLI stderr is captured for errors and not streamed as assistant text.
31
+ - The chat thread renders a runtime-native typing indicator (`ThreadPrimitive.If running`) while the CLI stream is in progress.
32
+ - Deprecated source path from earlier planning: `/Users/mendrika/Projects/Agents/agx/frontend`.
@@ -1,13 +1,16 @@
1
1
  const SCHEDULE_POLL_INTERVAL_MS = 15_000;
2
+ const PROMPT_JOB_POLL_INTERVAL_MS = 15_000;
2
3
 
3
4
  export async function register() {
4
5
  if (process.env.NEXT_RUNTIME === 'nodejs') {
5
6
  await import("./lib/check-node-version");
6
7
  const { getQueue, QUEUE_NAMES } = await import('@/lib/queue/boss');
7
8
  const { taskProcessor } = await import('@/lib/orchestrator/processor');
9
+ const { chatProcessor } = await import('@/lib/orchestrator/chat-processor');
8
10
 
9
11
  const queue = await getQueue();
10
12
  await queue.work(QUEUE_NAMES.TASK_PROCESS, taskProcessor, { batchSize: 5 });
13
+ await queue.work(QUEUE_NAMES.CHAT_RUN_PROCESS, chatProcessor, { batchSize: 2 });
11
14
  console.log('[worker] queue worker started (embedded)');
12
15
 
13
16
  // Schedule poller — drives recurring graph ticks
@@ -18,6 +21,37 @@ export async function register() {
18
21
  const { completeScheduleTick, isScheduleTickComplete } = await import('@/src/graph/schedule');
19
22
  const { GraphStore } = await import('@/src/graph/store');
20
23
 
24
+ // Prompt job poller — drives recurring prompt-based scheduled tasks
25
+ const port = process.env.PORT || '3000';
26
+ const baseUrl = `http://localhost:${port}`;
27
+ let promptJobPollReady = false;
28
+
29
+ // Wait for the server to be ready before polling prompt jobs
30
+ setTimeout(() => { promptJobPollReady = true; }, 5_000);
31
+
32
+ setInterval(async () => {
33
+ if (!promptJobPollReady) return;
34
+ try {
35
+ const res = await fetch(`${baseUrl}/api/prompt-jobs/poll`, {
36
+ method: 'POST',
37
+ headers: { 'Content-Type': 'application/json' },
38
+ body: '{}',
39
+ });
40
+ if (res.ok) {
41
+ const data = await res.json();
42
+ if (data.queued?.length > 0) {
43
+ console.log(`[prompt-jobs] dispatched ${data.queued.length} run(s)`);
44
+ }
45
+ if (data.skipped?.length > 0) {
46
+ console.log(`[prompt-jobs] skipped ${data.skipped.length} job(s):`, data.skipped.map((s: any) => s.reason));
47
+ }
48
+ }
49
+ } catch {
50
+ // Server not ready or network error — ignore
51
+ }
52
+ }, PROMPT_JOB_POLL_INTERVAL_MS);
53
+ console.log(`[prompt-jobs] poller started (every ${PROMPT_JOB_POLL_INTERVAL_MS / 1000}s)`);
54
+
21
55
  setInterval(async () => {
22
56
  try {
23
57
  const dispatchFunction = createDispatchFunction();
@@ -0,0 +1,66 @@
1
+ export const defaultStagePrompts = {
2
+ ideation: {
3
+ prompt: "Do the hard work to understand the user's true intent, as they may not know it themselves. Interpret their request and present concrete scenarios to help them visualize options. Iterate until something 'clicks'. It is okay if only 1 out of 10 proposals resonates; the goal is finding that alignment.",
4
+ outputs: ["research.md"],
5
+ provider: "gemini",
6
+ model: "gemini-2.0-flash-thinking-exp",
7
+ swarm: false,
8
+ },
9
+ planning: {
10
+ prompt: "Translate the aligned intent into an implementation plan.",
11
+ outputs: ["plan.md", "tasks.md"],
12
+ provider: "claude",
13
+ model: "claude-3-5-sonnet-latest",
14
+ swarm: false,
15
+ },
16
+ coding: {
17
+ prompt: "Implement the plan with clean, reviewed code. Keep changes minimal and well-scoped. Add or update tests as needed. Note any deviations from plan and why.",
18
+ outputs: ["code", "tests", "PR"],
19
+ provider: "claude",
20
+ model: "claude-3-5-sonnet-latest",
21
+ swarm: false,
22
+ },
23
+ qa: {
24
+ prompt: "Test thoroughly against the acceptance criteria. Cover edge cases and regression risks. Document test results and fix any issues found before proceeding.",
25
+ outputs: ["test results", "bug fixes"],
26
+ provider: "gemini",
27
+ model: "gemini-2.0-flash",
28
+ swarm: false,
29
+ },
30
+ acceptance: {
31
+ prompt: "Prepare a concise demo or summary of changes. Verify requirements are met and gather user feedback. Capture approvals or list follow-up actions.",
32
+ outputs: ["approval", "feedback"],
33
+ provider: "gemini",
34
+ model: "gemini-2.0-flash",
35
+ swarm: false,
36
+ },
37
+ pr: {
38
+ prompt: "Create and review pull request. Ensure all checks pass and merge. Note any deviations from plan and why.",
39
+ outputs: ["pull request", "merge commit"],
40
+ provider: "gemini",
41
+ model: "gemini-2.0-flash",
42
+ swarm: false,
43
+ },
44
+ pr_review: {
45
+ prompt: "Review the PR. Verify code quality and functionality. Approve or request changes.",
46
+ outputs: ["review comments", "approval"],
47
+ provider: "gemini",
48
+ model: "gemini-2.0-flash",
49
+ swarm: false,
50
+ },
51
+ merge: {
52
+ prompt: "Merge the PR and verify deployment.",
53
+ outputs: ["merge", "deployment verification"],
54
+ provider: "gemini",
55
+ model: "gemini-2.0-flash",
56
+ swarm: false,
57
+ },
58
+ done: {
59
+ prompt: "Task completed. Ensure artifacts are stored, logs are clear, and any follow-ups are recorded.",
60
+ outputs: [],
61
+ provider: "gemini",
62
+ model: "gemini-2.0-flash",
63
+ swarm: false,
64
+ },
65
+ };
66
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1,220 @@
1
+ import { Pool } from "pg";
2
+ import { config } from "dotenv";
3
+ import { resolve, dirname } from "path";
4
+ import { fileURLToPath } from "url";
5
+ const __dirname = dirname(fileURLToPath(import.meta.url));
6
+ config({ path: resolve(__dirname, "../../.env") });
7
+ const pool = new Pool({
8
+ connectionString: process.env.DATABASE_URL,
9
+ });
10
+ class QueryBuilder {
11
+ table;
12
+ operation = "select";
13
+ filters = [];
14
+ orderSpecs = [];
15
+ limitValue = null;
16
+ selectColumns = "*";
17
+ payload = null;
18
+ singleMode = "none";
19
+ returning = false;
20
+ constructor(table) {
21
+ this.table = table;
22
+ }
23
+ select(columns = "*") {
24
+ this.selectColumns = columns || "*";
25
+ if (this.operation !== "select")
26
+ this.returning = true;
27
+ return this;
28
+ }
29
+ insert(payload) {
30
+ this.operation = "insert";
31
+ this.payload = payload;
32
+ return this;
33
+ }
34
+ update(payload) {
35
+ this.operation = "update";
36
+ this.payload = payload;
37
+ return this;
38
+ }
39
+ delete() {
40
+ this.operation = "delete";
41
+ return this;
42
+ }
43
+ eq(column, value) {
44
+ this.filters.push({ op: "eq", column, value });
45
+ return this;
46
+ }
47
+ in(column, value) {
48
+ this.filters.push({ op: "in", column, value });
49
+ return this;
50
+ }
51
+ is(column, value) {
52
+ this.filters.push({ op: "is", column, value });
53
+ return this;
54
+ }
55
+ order(column, options) {
56
+ this.orderSpecs.push({ column, ...(options || {}) });
57
+ return this;
58
+ }
59
+ limit(limit) {
60
+ this.limitValue = limit;
61
+ return this;
62
+ }
63
+ single() {
64
+ this.singleMode = "single";
65
+ return this.execute();
66
+ }
67
+ maybeSingle() {
68
+ this.singleMode = "maybeSingle";
69
+ return this.execute();
70
+ }
71
+ then(resolve, reject) {
72
+ return this.execute().then(resolve, reject);
73
+ }
74
+ whereSql(params) {
75
+ const where = [];
76
+ for (const f of this.filters) {
77
+ if (f.op === "eq") {
78
+ params.push(f.value);
79
+ where.push(`${f.column} = $${params.length}`);
80
+ }
81
+ else if (f.op === "in") {
82
+ params.push(f.value);
83
+ where.push(`${f.column} = ANY($${params.length})`);
84
+ }
85
+ else if (f.op === "is") {
86
+ if (f.value === null)
87
+ where.push(`${f.column} IS NULL`);
88
+ else {
89
+ params.push(f.value);
90
+ where.push(`${f.column} IS NOT DISTINCT FROM $${params.length}`);
91
+ }
92
+ }
93
+ }
94
+ return where;
95
+ }
96
+ normalizeColumns() {
97
+ if (!this.selectColumns || this.selectColumns.trim() === "*")
98
+ return "*";
99
+ return this.selectColumns;
100
+ }
101
+ async execute() {
102
+ try {
103
+ const params = [];
104
+ const where = this.whereSql(params);
105
+ let sql = "";
106
+ if (this.operation === "select") {
107
+ sql = `SELECT ${this.normalizeColumns()} FROM ${this.table}`;
108
+ if (where.length)
109
+ sql += ` WHERE ${where.join(" AND ")}`;
110
+ if (this.orderSpecs.length) {
111
+ sql +=
112
+ " ORDER BY " +
113
+ this.orderSpecs
114
+ .map((o) => {
115
+ const dir = o.ascending === false ? "DESC" : "ASC";
116
+ const nulls = o.nullsFirst === true ? " NULLS FIRST" : o.nullsFirst === false ? " NULLS LAST" : "";
117
+ return `${o.column} ${dir}${nulls}`;
118
+ })
119
+ .join(", ");
120
+ }
121
+ if (this.limitValue != null) {
122
+ params.push(this.limitValue);
123
+ sql += ` LIMIT $${params.length}`;
124
+ }
125
+ }
126
+ else if (this.operation === "insert") {
127
+ const rows = Array.isArray(this.payload) ? this.payload : [this.payload];
128
+ const cols = Object.keys(rows[0] || {});
129
+ const valuesSql = rows
130
+ .map((row) => {
131
+ const placeholders = cols.map((col) => {
132
+ params.push(row[col]);
133
+ return `$${params.length}`;
134
+ });
135
+ return `(${placeholders.join(", ")})`;
136
+ })
137
+ .join(", ");
138
+ sql = `INSERT INTO ${this.table} (${cols.join(", ")}) VALUES ${valuesSql}`;
139
+ if (this.returning)
140
+ sql += " RETURNING *";
141
+ }
142
+ else if (this.operation === "update") {
143
+ const cols = Object.keys(this.payload || {});
144
+ const setSql = cols
145
+ .map((col) => {
146
+ params.push(this.payload[col]);
147
+ return `${col} = $${params.length}`;
148
+ })
149
+ .join(", ");
150
+ sql = `UPDATE ${this.table} SET ${setSql}`;
151
+ if (where.length)
152
+ sql += ` WHERE ${where.join(" AND ")}`;
153
+ if (this.returning)
154
+ sql += " RETURNING *";
155
+ }
156
+ else {
157
+ sql = `DELETE FROM ${this.table}`;
158
+ if (where.length)
159
+ sql += ` WHERE ${where.join(" AND ")}`;
160
+ if (this.returning)
161
+ sql += " RETURNING *";
162
+ }
163
+ const res = await pool.query(sql, params);
164
+ const rows = res.rows;
165
+ if (this.singleMode === "single") {
166
+ if (!rows.length)
167
+ return { data: null, error: { message: "No rows" } };
168
+ return { data: rows[0], error: null };
169
+ }
170
+ if (this.singleMode === "maybeSingle") {
171
+ return { data: rows[0] || null, error: null };
172
+ }
173
+ return { data: rows, error: null };
174
+ }
175
+ catch (error) {
176
+ return { data: null, error };
177
+ }
178
+ }
179
+ }
180
+ let db = null;
181
+ export function getSupabase() {
182
+ if (db)
183
+ return db;
184
+ if (!process.env.DATABASE_URL) {
185
+ throw new Error("Missing DATABASE_URL for MCP server.");
186
+ }
187
+ db = {
188
+ from(table) {
189
+ return new QueryBuilder(table);
190
+ },
191
+ };
192
+ return db;
193
+ }
194
+ export async function fetchStageConfig(supabase, stage, userId) {
195
+ let stagePrompt = null;
196
+ let defaultPrompt = null;
197
+ const promises = [
198
+ supabase.from("stage_prompts").select("*").eq("stage", stage).eq("is_default", true).maybeSingle(),
199
+ ];
200
+ if (userId) {
201
+ promises.push(supabase.from("stage_prompts").select("*").eq("stage", stage).eq("user_id", userId).maybeSingle());
202
+ }
203
+ const results = await Promise.all(promises);
204
+ defaultPrompt = results[0].data;
205
+ if (userId) {
206
+ stagePrompt = results[1].data;
207
+ }
208
+ const resolvedPrompt = stagePrompt?.prompt || defaultPrompt?.prompt || null;
209
+ if (!resolvedPrompt) {
210
+ throw new Error(`No prompt found for stage "${stage}" in database (checked user and default).`);
211
+ }
212
+ return {
213
+ prompt: resolvedPrompt,
214
+ swarm: stagePrompt?.swarm ?? defaultPrompt?.swarm ?? false,
215
+ provider: stagePrompt?.provider || defaultPrompt?.provider,
216
+ model: stagePrompt?.model || defaultPrompt?.model,
217
+ swarm_models: stagePrompt?.swarm_models || defaultPrompt?.swarm_models,
218
+ };
219
+ }
220
+ //# sourceMappingURL=db.js.map