@mndrk/agx 2.0.0-next.8 → 2.0.0

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 (407) hide show
  1. package/README.md +16 -5
  2. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/BUILD_ID +1 -1
  3. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/app-path-routes-manifest.json +9 -1
  4. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/build-manifest.json +2 -2
  5. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/prerender-manifest.json +27 -3
  6. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/routes-manifest.json +57 -0
  7. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error/page.js +1 -1
  8. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error/page.js.nft.json +1 -1
  9. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.html +2 -2
  11. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.rsc +1 -1
  12. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  13. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  14. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found/page.js +1 -1
  18. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found/page.js.nft.json +1 -1
  19. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.html +2 -2
  21. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.rsc +2 -2
  22. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  23. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  24. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  25. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  26. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  27. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  28. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route/app-paths-manifest.json +3 -0
  29. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route/build-manifest.json +11 -0
  30. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route/server-reference-manifest.json +4 -0
  31. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route.js +7 -0
  32. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route.js.map +5 -0
  33. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route.js.nft.json +1 -0
  34. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route_client-reference-manifest.js +2 -0
  35. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/file-search/route.js.nft.json +1 -1
  36. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/health/route.js.nft.json +1 -1
  37. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/history/route.js +2 -2
  38. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/learnings/route.js.nft.json +1 -1
  39. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/logs/stream/route.js.nft.json +1 -1
  40. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/memories/route.js.nft.json +1 -1
  41. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route/app-paths-manifest.json +3 -0
  42. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route/build-manifest.json +11 -0
  43. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route/server-reference-manifest.json +4 -0
  44. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route.js +8 -0
  45. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route.js.map +5 -0
  46. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route.js.nft.json +1 -0
  47. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route_client-reference-manifest.js +2 -0
  48. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route/app-paths-manifest.json +3 -0
  49. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route/build-manifest.json +11 -0
  50. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route/server-reference-manifest.json +4 -0
  51. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route.js +8 -0
  52. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route.js.map +5 -0
  53. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route.js.nft.json +1 -0
  54. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route_client-reference-manifest.js +2 -0
  55. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route/app-paths-manifest.json +3 -0
  56. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route/build-manifest.json +11 -0
  57. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route/server-reference-manifest.json +4 -0
  58. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route.js +8 -0
  59. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route.js.map +5 -0
  60. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route.js.nft.json +1 -0
  61. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route_client-reference-manifest.js +2 -0
  62. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route/app-paths-manifest.json +3 -0
  63. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route/build-manifest.json +11 -0
  64. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route/server-reference-manifest.json +4 -0
  65. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route.js +8 -0
  66. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route.js.map +5 -0
  67. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route.js.nft.json +1 -0
  68. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route_client-reference-manifest.js +2 -0
  69. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js.nft.json +1 -1
  70. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js.nft.json +1 -1
  71. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js.nft.json +1 -1
  72. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js.nft.json +1 -1
  73. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/projects/[id]/migrate-v1/route.js.nft.json +1 -1
  74. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/projects/[id]/migrate-v2/route.js.nft.json +1 -1
  75. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  76. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/projects/route.js.nft.json +1 -1
  77. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/queue/complete/route.js.nft.json +1 -1
  78. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/queue/route.js.nft.json +1 -1
  79. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/system/db-status/route.js.nft.json +1 -1
  80. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js.nft.json +1 -1
  81. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/comments/route.js.nft.json +1 -1
  82. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/costs/route.js.nft.json +1 -1
  83. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/dependencies/route.js.nft.json +1 -1
  84. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/events/route.js.nft.json +1 -1
  85. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/history/route.js.nft.json +1 -1
  86. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/metrics/route.js.nft.json +1 -1
  87. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/pause/route.js.nft.json +1 -1
  88. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/replan/route.js.nft.json +1 -1
  89. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/restart/route.js.nft.json +1 -1
  90. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/resume/route.js.nft.json +1 -1
  91. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/rollback/route.js.nft.json +1 -1
  92. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/route.js.nft.json +1 -1
  93. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/start/route.js.nft.json +1 -1
  94. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/stop/route.js.nft.json +1 -1
  95. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/heartbeat/route.js.nft.json +1 -1
  96. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/history/route.js.nft.json +1 -1
  97. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/logs/route.js.nft.json +1 -1
  98. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/logs/stream/route.js.nft.json +1 -1
  99. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js.nft.json +1 -1
  100. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js.nft.json +1 -1
  101. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js.nft.json +1 -1
  102. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js.nft.json +1 -1
  103. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js.nft.json +1 -1
  104. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js.nft.json +1 -1
  105. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js.nft.json +1 -1
  106. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
  107. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/assign-orphans/route.js.nft.json +1 -1
  108. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/route.js.nft.json +1 -1
  109. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/stream/route.js.nft.json +1 -1
  110. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/user-settings/route.js.nft.json +1 -1
  111. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board/page.js +1 -1
  112. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board/page.js.nft.json +1 -1
  113. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board/page_client-reference-manifest.js +1 -1
  114. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.html +2 -2
  115. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.rsc +2 -2
  116. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/_full.segment.rsc +2 -2
  117. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/_head.segment.rsc +1 -1
  118. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/_index.segment.rsc +2 -2
  119. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/_tree.segment.rsc +2 -2
  120. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/board/__PAGE__.segment.rsc +1 -1
  121. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/board.segment.rsc +1 -1
  122. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph/page.js +1 -1
  123. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph/page.js.nft.json +1 -1
  124. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph/page_client-reference-manifest.js +1 -1
  125. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.html +2 -2
  126. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.rsc +3 -3
  127. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/_full.segment.rsc +3 -3
  128. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/_head.segment.rsc +1 -1
  129. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/_index.segment.rsc +2 -2
  130. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/_tree.segment.rsc +2 -2
  131. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +2 -2
  132. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +1 -1
  133. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.html +2 -2
  134. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.rsc +3 -3
  135. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  136. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.segments/_full.segment.rsc +3 -3
  137. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.segments/_head.segment.rsc +1 -1
  138. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.segments/_index.segment.rsc +2 -2
  139. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  140. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/page.js +1 -1
  141. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/page.js.nft.json +1 -1
  142. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/page_client-reference-manifest.js +1 -1
  143. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/graph/[taskId]/page.js +1 -1
  144. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/graph/[taskId]/page.js.nft.json +1 -1
  145. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/graph/[taskId]/page_client-reference-manifest.js +1 -1
  146. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/page.js +1 -1
  147. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/page.js.nft.json +1 -1
  148. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
  149. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans/page.js +1 -1
  150. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans/page.js.nft.json +1 -1
  151. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans/page_client-reference-manifest.js +1 -1
  152. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.html +1 -1
  153. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.rsc +3 -3
  154. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/_full.segment.rsc +3 -3
  155. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/_head.segment.rsc +1 -1
  156. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/_index.segment.rsc +2 -2
  157. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/_tree.segment.rsc +2 -2
  158. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +2 -2
  159. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +1 -1
  160. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/projects.segment.rsc +1 -1
  161. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/page.js +1 -1
  162. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/page.js.nft.json +1 -1
  163. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  164. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.html +2 -2
  165. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.rsc +3 -3
  166. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/_full.segment.rsc +3 -3
  167. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/_head.segment.rsc +1 -1
  168. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/_index.segment.rsc +2 -2
  169. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
  170. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +2 -2
  171. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/projects.segment.rsc +1 -1
  172. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings/page.js +1 -1
  173. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings/page.js.nft.json +1 -1
  174. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  175. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.html +2 -2
  176. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.rsc +3 -3
  177. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/_full.segment.rsc +3 -3
  178. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  179. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/_index.segment.rsc +2 -2
  180. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  181. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  182. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  183. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status/page.js +1 -1
  184. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status/page.js.nft.json +1 -1
  185. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status/page_client-reference-manifest.js +1 -1
  186. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.html +2 -2
  187. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.rsc +3 -3
  188. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/_full.segment.rsc +3 -3
  189. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/_head.segment.rsc +1 -1
  190. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/_index.segment.rsc +2 -2
  191. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/_tree.segment.rsc +2 -2
  192. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/status/__PAGE__.segment.rsc +2 -2
  193. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/status.segment.rsc +1 -1
  194. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page/app-paths-manifest.json +3 -0
  195. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page/build-manifest.json +18 -0
  196. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page/next-font-manifest.json +11 -0
  197. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page/react-loadable-manifest.json +1 -0
  198. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page/server-reference-manifest.json +4 -0
  199. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page.js +16 -0
  200. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page.js.map +5 -0
  201. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page.js.nft.json +1 -0
  202. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page_client-reference-manifest.js +2 -0
  203. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page/app-paths-manifest.json +3 -0
  204. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page/build-manifest.json +18 -0
  205. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page/next-font-manifest.json +11 -0
  206. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page/react-loadable-manifest.json +1 -0
  207. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page/server-reference-manifest.json +4 -0
  208. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page.js +16 -0
  209. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page.js.map +5 -0
  210. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page.js.nft.json +1 -0
  211. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page_client-reference-manifest.js +2 -0
  212. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page/app-paths-manifest.json +3 -0
  213. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page/build-manifest.json +18 -0
  214. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page/next-font-manifest.json +11 -0
  215. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page/react-loadable-manifest.json +1 -0
  216. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page/server-reference-manifest.json +4 -0
  217. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page.js +15 -0
  218. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page.js.map +5 -0
  219. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page.js.nft.json +1 -0
  220. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page_client-reference-manifest.js +2 -0
  221. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.html +9 -0
  222. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.meta +15 -0
  223. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.rsc +23 -0
  224. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/_full.segment.rsc +23 -0
  225. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/_head.segment.rsc +5 -0
  226. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/_index.segment.rsc +9 -0
  227. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/_tree.segment.rsc +5 -0
  228. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +9 -0
  229. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/welcome.segment.rsc +4 -0
  230. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app-paths-manifest.json +9 -1
  231. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/7e210_Agents_agx-cloud__next-internal_server_app_api_daemon_route_actions_460dc557.js +3 -0
  232. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/Projects_Agents_agx-cloud_ef3cf579._.js +8 -8
  233. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/Projects_Agents_agx-cloud_lib_6a5d1c80._.js +11 -11
  234. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/Projects_Agents_agx-cloud_lib_7eefb426._.js +10 -10
  235. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__1f176ebf._.js +4 -0
  236. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__22d0d2cc._.js +10 -0
  237. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__26bfcde9._.js +7 -7
  238. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__27e9e463._.js +3 -0
  239. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__299302d8._.js +1 -1
  240. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__2ed85740._.js +3 -0
  241. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__33e7bfc0._.js +5 -0
  242. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__8f9b0934._.js +28 -28
  243. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__9b8efd58._.js +1 -1
  244. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__a7a82510._.js +7 -7
  245. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__bea8711d._.js +1 -1
  246. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__ec8bbb77._.js +1 -1
  247. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/a2576__next-internal_server_app_api_notification-outbox_[id]_route_actions_c429c549.js +3 -0
  248. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/a2576__next-internal_server_app_api_notifications_[id]_read_route_actions_615ae13d.js +3 -0
  249. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/a2576__next-internal_server_app_api_notifications_unread-count_route_actions_b61a9301.js +3 -0
  250. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ad555_agx-cloud__next-internal_server_app_api_notifications_route_actions_06dbcdc4.js +3 -0
  251. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ae43b_next_dist_esm_build_templates_app-route_122e31fe.js +28 -24
  252. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/7e210_Agents_agx-cloud__next-internal_server_app_welcome_page_actions_5176f4d4.js +3 -0
  253. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_033373a0._.js +3 -0
  254. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_039c43e5._.js +1 -1
  255. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_0562c9cd._.js +3 -0
  256. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_0cf15b7b._.js +8 -0
  257. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_0d91718c._.js +3 -0
  258. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_1e1c23f7._.js +1 -1
  259. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_502ede06._.js +1 -1
  260. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_68972519._.js +1 -1
  261. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_69570e90._.js +3 -0
  262. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_6cbdc6fd._.js +4 -0
  263. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_82783170._.js +3 -0
  264. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_a0e26bca._.js +1 -1
  265. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_a2a39dbe._.js +1 -1
  266. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_aaa774d8._.js +4 -0
  267. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_afe007c2._.js +4 -0
  268. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_b2707e4d._.js +1 -1
  269. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_components_chat-ui_f59beea5._.js +95 -0
  270. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/{Projects_Agents_agx-cloud_e7635878._.js → Projects_Agents_agx-cloud_dc82c7bf._.js} +2 -2
  271. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_ef6ea3fc._.js +1 -1
  272. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_ff11dd7c._.js +1 -1
  273. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/{[root-of-the-server]__9d72d782._.js → [root-of-the-server]__00507cd5._.js} +2 -2
  274. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__24a978df._.js +3 -0
  275. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__523e8b0b._.js +3 -0
  276. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__546c34e3._.js +3 -0
  277. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__807e5ecc._.js +3 -0
  278. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__9668fae0._.js +3 -0
  279. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__97870484._.js +3 -0
  280. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/{[root-of-the-server]__657b446b._.js → [root-of-the-server]__99fa92e8._.js} +2 -2
  281. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__a4a5c57b._.js +3 -0
  282. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__b549e8c2._.js +4 -0
  283. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/{[root-of-the-server]__5dace3c6._.js → [root-of-the-server]__d78dfcf2._.js} +2 -2
  284. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__e915acb2._.js +3 -0
  285. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/a2576__next-internal_server_app_w_[workspaceId]_[threadId]_page_actions_f668795b.js +3 -0
  286. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ad555_agx-cloud__next-internal_server_app_w_[workspaceId]_page_actions_8ade5a6c.js +3 -0
  287. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_@dnd-kit_core_dist_core_esm_e4fe20d7.js +3 -0
  288. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_db3f38e3._.js +1 -1
  289. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_lucide-react_dist_esm_63b016a6._.js +3 -0
  290. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_next_dist_2cd20dd7._.js +1 -1
  291. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_next_dist_832595f2._.js +1 -1
  292. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_next_dist_esm_build_templates_app-page_e4003e94.js +1 -1
  293. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/functions-config-manifest.json +1 -0
  294. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/middleware-manifest.json +5 -5
  295. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/next-font-manifest.js +1 -1
  296. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/next-font-manifest.json +12 -0
  297. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/pages/404.html +1 -1
  298. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/pages/500.html +2 -2
  299. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/server-reference-manifest.js +1 -1
  300. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/server-reference-manifest.json +1 -1
  301. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/0804e1cf36ac4c40.js +1 -0
  302. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/245ea04687930f1c.css +1 -0
  303. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/2f63efec13a9346a.js +1 -0
  304. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/54fbb309ba7c2b4b.js +1 -0
  305. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/55f8c843a8037ac8.js +1 -0
  306. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/5eda5cd286808293.js +93 -0
  307. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/6bfec2ea0d682ffc.js +18 -0
  308. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/7d2c10033c8a8554.js +1 -0
  309. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/{b47938cee3a79764.js → 822bd641355a9397.js} +2 -2
  310. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/{49b2630db3ff37fe.js → 8dad5ee086c3d46d.js} +1 -1
  311. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/c6ed4939c63ba444.js +1 -0
  312. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/e4b656247e95267b.js +1 -0
  313. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/ef426b92c6ce58a5.js +1 -0
  314. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/daemon/route.ts +55 -0
  315. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/notification-outbox/[id]/route.ts +42 -0
  316. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/notifications/[id]/read/route.ts +43 -0
  317. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/notifications/route.ts +46 -0
  318. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/notifications/unread-count/route.ts +24 -0
  319. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/participants/route.ts +13 -6
  320. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/system/db-status/route.ts +23 -15
  321. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/projects/[slug]/layout.tsx +28 -10
  322. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/w/[workspaceId]/[threadId]/page.tsx +4 -0
  323. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/w/[workspaceId]/layout.tsx +7 -0
  324. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/w/[workspaceId]/page.tsx +4 -0
  325. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/welcome/page.tsx +117 -0
  326. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/Layout.tsx +4 -6
  327. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/Notifications/NotificationBell.tsx +62 -0
  328. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/Notifications/NotificationItem.tsx +96 -0
  329. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/Notifications/NotificationsPanel.tsx +127 -0
  330. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/Notifications/index.ts +3 -0
  331. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/WorkspaceNav.tsx +67 -0
  332. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/ChatContainer.tsx +181 -122
  333. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/ChatPreview.tsx +85 -0
  334. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/MessageBubble.tsx +3 -0
  335. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/MessageList.tsx +3 -16
  336. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/ParticipantBar.tsx +41 -86
  337. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/ThreadView.tsx +4 -3
  338. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/thread/ThreadItem.tsx +9 -9
  339. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/thread/ThreadList.tsx +15 -15
  340. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/thread/ThreadSidebar.tsx +34 -34
  341. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/db/sqlite/001_agx_board_schema.sql +52 -0
  342. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/hooks/useNotifications.ts +115 -0
  343. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/hooks/useThreadState.ts +85 -85
  344. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/cli-runner.ts +6 -1
  345. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/db/cursors.js +75 -0
  346. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/db/notifications.js +70 -0
  347. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/db/preferences.js +110 -0
  348. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/demo-threads.ts +76 -0
  349. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/jobs/pruneNotifications.js +87 -0
  350. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/participants-store.ts +7 -3
  351. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/projectors/notificationProjector.js +351 -0
  352. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/storage/index.ts +1 -1
  353. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/storage/local-thread-adapter.ts +27 -27
  354. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/storage/thread-adapter.ts +31 -31
  355. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/stream-multiplexer.ts +45 -9
  356. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/types.ts +7 -1
  357. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/migrations/sqlite_schema.sql +45 -0
  358. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/script.txt +111 -0
  359. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/services/threadService.ts +32 -32
  360. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/state/threadSelection.test.ts +30 -30
  361. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/state/threadSelection.ts +21 -21
  362. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/state/uiSettings.ts +14 -11
  363. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tests/projector/_helpers.js +68 -0
  364. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tests/projector/crash.test.js +139 -0
  365. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tests/projector/duplicate.test.js +111 -0
  366. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tests/projector/flood.test.js +162 -0
  367. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tests/projector/replay.test.js +107 -0
  368. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tsconfig.tsbuildinfo +1 -1
  369. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/types/userPreferences.ts +12 -8
  370. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/worker/index.js +5 -1
  371. package/lib/cli/daemon.js +7 -1
  372. package/lib/cli/onboarding.js +71 -1
  373. package/lib/cli/providers.js +5 -5
  374. package/lib/cli/runCli.js +12 -1
  375. package/lib/commands/chat.js +8 -2
  376. package/lib/executor.js +56 -3
  377. package/lib/proc/commandExists.js +14 -8
  378. package/package.json +1 -1
  379. package/scripts/postinstall.js +19 -7
  380. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_215731e9._.js +0 -3
  381. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_2b2a91e2._.js +0 -3
  382. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_a7533794._.js +0 -3
  383. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_e1b68242._.js +0 -8
  384. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__0d6259d5._.js +0 -3
  385. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__13df20fe._.js +0 -95
  386. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__c76acf29._.js +0 -4
  387. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__e5a1e0b5._.js +0 -3
  388. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_lucide-react_dist_esm_6c755856._.js +0 -3
  389. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_lucide-react_dist_esm_icons_search_04b9412a.js +0 -3
  390. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/0d58db99a936501d.js +0 -1
  391. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/20d98b7f52e93d14.js +0 -18
  392. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/216d8e2f28fa9ab1.js +0 -1
  393. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/5d94ba021f22122d.js +0 -1
  394. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/5e2849404c532f70.js +0 -1
  395. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/81d22c5173d36098.js +0 -93
  396. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/9b2c429432840844.css +0 -1
  397. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/9fa263ad20d27969.js +0 -1
  398. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/dc534541f2bd6342.js +0 -1
  399. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-board.db +0 -0
  400. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-board.db-shm +0 -0
  401. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-board.db-wal +0 -0
  402. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-queue.db +0 -0
  403. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-queue.db-shm +0 -0
  404. package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-queue.db-wal +0 -0
  405. /package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/{m5R8F5c1zxb5EWbYNiR5n → UBZZwc9vLlz1xCm5PYCTc}/_buildManifest.js +0 -0
  406. /package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/{m5R8F5c1zxb5EWbYNiR5n → UBZZwc9vLlz1xCm5PYCTc}/_clientMiddlewareManifest.json +0 -0
  407. /package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/{m5R8F5c1zxb5EWbYNiR5n → UBZZwc9vLlz1xCm5PYCTc}/_ssgManifest.js +0 -0
@@ -1,16 +1,16 @@
1
- import type { Thread } from "@/lib/storage";
1
+ import type { Workspace } from "@/lib/storage";
2
2
  import {
3
- clearLastThreadId,
4
- loadLastThreadId,
5
- persistLastThreadId,
6
- resolveInitialThreadSelection,
3
+ clearLastWorkspaceId,
4
+ loadLastWorkspaceId,
5
+ persistLastWorkspaceId,
6
+ resolveInitialWorkspaceSelection,
7
7
  } from "./threadSelection";
8
8
 
9
- type ThreadStorage = Record<string, string>;
9
+ type WorkspaceStorage = Record<string, string>;
10
10
 
11
- function withFakeLocalStorage<T>(callback: (storage: ThreadStorage) => T): T {
11
+ function withFakeLocalStorage<T>(callback: (storage: WorkspaceStorage) => T): T {
12
12
  const originalWindow = globalThis.window;
13
- const storage: ThreadStorage = {};
13
+ const storage: WorkspaceStorage = {};
14
14
  const fakeLocalStorage = {
15
15
  getItem(key: string) {
16
16
  return storage[key] ?? null;
@@ -31,7 +31,7 @@ function withFakeLocalStorage<T>(callback: (storage: ThreadStorage) => T): T {
31
31
  }
32
32
  }
33
33
 
34
- function createThread(id: string, updatedAt: number): Thread {
34
+ function createWorkspace(id: string, updatedAt: number): Workspace {
35
35
  return {
36
36
  id,
37
37
  title: "",
@@ -41,39 +41,39 @@ function createThread(id: string, updatedAt: number): Thread {
41
41
  };
42
42
  }
43
43
 
44
- describe("threadSelection", () => {
45
- test("persist/load/clear enjoy the last thread id lifecycle", () => {
44
+ describe("workspaceSelection", () => {
45
+ test("persist/load/clear enjoy the last workspace id lifecycle", () => {
46
46
  withFakeLocalStorage(() => {
47
- expect(loadLastThreadId()).toBeNull();
48
- persistLastThreadId("thread-abc");
49
- expect(loadLastThreadId()).toBe("thread-abc");
50
- persistLastThreadId("thread-def");
51
- expect(loadLastThreadId()).toBe("thread-def");
52
- clearLastThreadId();
53
- expect(loadLastThreadId()).toBeNull();
47
+ expect(loadLastWorkspaceId()).toBeNull();
48
+ persistLastWorkspaceId("workspace-abc");
49
+ expect(loadLastWorkspaceId()).toBe("workspace-abc");
50
+ persistLastWorkspaceId("workspace-def");
51
+ expect(loadLastWorkspaceId()).toBe("workspace-def");
52
+ clearLastWorkspaceId();
53
+ expect(loadLastWorkspaceId()).toBeNull();
54
54
  });
55
55
  });
56
56
 
57
- test("resolveInitialThreadSelection restores saved thread when it exists", () => {
58
- const threads = [createThread("thread-1", 2), createThread("thread-2", 1)];
59
- const result = resolveInitialThreadSelection(threads, "thread-2");
60
- expect(result.threadId).toBe("thread-2");
57
+ test("resolveInitialWorkspaceSelection restores saved workspace when it exists", () => {
58
+ const workspaces = [createWorkspace("workspace-1", 2), createWorkspace("workspace-2", 1)];
59
+ const result = resolveInitialWorkspaceSelection(workspaces, "workspace-2");
60
+ expect(result.workspaceId).toBe("workspace-2");
61
61
  expect(result.shouldClearSavedId).toBe(false);
62
62
  expect(result.restoredFromStorage).toBe(true);
63
63
  });
64
64
 
65
- test("resolveInitialThreadSelection falls back and clears missing saved id", () => {
66
- const threads = [createThread("thread-1", 2), createThread("thread-2", 1)];
67
- const result = resolveInitialThreadSelection(threads, "missing");
68
- expect(result.threadId).toBe("thread-1");
65
+ test("resolveInitialWorkspaceSelection falls back and clears missing saved id", () => {
66
+ const workspaces = [createWorkspace("workspace-1", 2), createWorkspace("workspace-2", 1)];
67
+ const result = resolveInitialWorkspaceSelection(workspaces, "missing");
68
+ expect(result.workspaceId).toBe("workspace-1");
69
69
  expect(result.shouldClearSavedId).toBe(true);
70
70
  expect(result.restoredFromStorage).toBe(false);
71
71
  });
72
72
 
73
- test("resolveInitialThreadSelection defaults to first thread when no saved id exists", () => {
74
- const threads = [createThread("thread-1", 2), createThread("thread-2", 1)];
75
- const result = resolveInitialThreadSelection(threads, null);
76
- expect(result.threadId).toBe("thread-1");
73
+ test("resolveInitialWorkspaceSelection defaults to first workspace when no saved id exists", () => {
74
+ const workspaces = [createWorkspace("workspace-1", 2), createWorkspace("workspace-2", 1)];
75
+ const result = resolveInitialWorkspaceSelection(workspaces, null);
76
+ expect(result.workspaceId).toBe("workspace-1");
77
77
  expect(result.shouldClearSavedId).toBe(false);
78
78
  expect(result.restoredFromStorage).toBe(false);
79
79
  });
@@ -1,67 +1,67 @@
1
- import type { Thread } from "@/lib/storage";
1
+ import type { Workspace } from "@/lib/storage";
2
2
 
3
- const THREAD_SELECTION_STORAGE_KEY = "agx-chat:last-thread";
3
+ const WORKSPACE_SELECTION_STORAGE_KEY = "agx-chat:last-thread";
4
4
 
5
5
  function isStorageAvailable(): boolean {
6
6
  return typeof window !== "undefined" && typeof window.localStorage !== "undefined";
7
7
  }
8
8
 
9
- export function loadLastThreadId(): string | null {
9
+ export function loadLastWorkspaceId(): string | null {
10
10
  if (!isStorageAvailable()) {
11
11
  return null;
12
12
  }
13
13
 
14
14
  try {
15
- return window.localStorage.getItem(THREAD_SELECTION_STORAGE_KEY);
15
+ return window.localStorage.getItem(WORKSPACE_SELECTION_STORAGE_KEY);
16
16
  } catch {
17
17
  return null;
18
18
  }
19
19
  }
20
20
 
21
- export function persistLastThreadId(threadId: string): void {
21
+ export function persistLastWorkspaceId(workspaceId: string): void {
22
22
  if (!isStorageAvailable()) {
23
23
  return;
24
24
  }
25
25
 
26
26
  try {
27
- window.localStorage.setItem(THREAD_SELECTION_STORAGE_KEY, threadId);
27
+ window.localStorage.setItem(WORKSPACE_SELECTION_STORAGE_KEY, workspaceId);
28
28
  } catch {
29
29
  // ignore storage failures (e.g., quota exceeded)
30
30
  }
31
31
  }
32
32
 
33
- export function clearLastThreadId(): void {
33
+ export function clearLastWorkspaceId(): void {
34
34
  if (!isStorageAvailable()) {
35
35
  return;
36
36
  }
37
37
 
38
38
  try {
39
- window.localStorage.removeItem(THREAD_SELECTION_STORAGE_KEY);
39
+ window.localStorage.removeItem(WORKSPACE_SELECTION_STORAGE_KEY);
40
40
  } catch {
41
41
  // ignore storage failures (e.g., quota exceeded)
42
42
  }
43
43
  }
44
44
 
45
- export type InitialThreadSelection = {
46
- threadId: string | null;
45
+ export type InitialWorkspaceSelection = {
46
+ workspaceId: string | null;
47
47
  shouldClearSavedId: boolean;
48
48
  restoredFromStorage: boolean;
49
49
  };
50
50
 
51
- export function resolveInitialThreadSelection(
52
- threads: Thread[],
53
- savedThreadId: string | null
54
- ): InitialThreadSelection {
55
- const fallbackThreadId = threads[0]?.id ?? null;
51
+ export function resolveInitialWorkspaceSelection(
52
+ workspaces: Workspace[],
53
+ savedWorkspaceId: string | null
54
+ ): InitialWorkspaceSelection {
55
+ const fallbackWorkspaceId = workspaces[0]?.id ?? null;
56
56
 
57
- if (!savedThreadId) {
58
- return { threadId: fallbackThreadId, shouldClearSavedId: false, restoredFromStorage: false };
57
+ if (!savedWorkspaceId) {
58
+ return { workspaceId: fallbackWorkspaceId, shouldClearSavedId: false, restoredFromStorage: false };
59
59
  }
60
60
 
61
- const savedThreadExists = threads.some((thread) => thread.id === savedThreadId);
62
- if (savedThreadExists) {
63
- return { threadId: savedThreadId, shouldClearSavedId: false, restoredFromStorage: true };
61
+ const savedWorkspaceExists = workspaces.some((workspace) => workspace.id === savedWorkspaceId);
62
+ if (savedWorkspaceExists) {
63
+ return { workspaceId: savedWorkspaceId, shouldClearSavedId: false, restoredFromStorage: true };
64
64
  }
65
65
 
66
- return { threadId: fallbackThreadId, shouldClearSavedId: true, restoredFromStorage: false };
66
+ return { workspaceId: fallbackWorkspaceId, shouldClearSavedId: true, restoredFromStorage: false };
67
67
  }
@@ -1,12 +1,12 @@
1
1
  export const UI_SETTINGS_STORAGE_KEY = "agx-chat:uiSettings";
2
- const DEFAULT_THREAD_SIDEBAR_VISIBLE = false;
2
+ const DEFAULT_WORKSPACE_SIDEBAR_VISIBLE = false;
3
3
 
4
4
  export interface UiSettings {
5
- threadSidebarVisible: boolean;
5
+ workspaceSidebarVisible: boolean;
6
6
  }
7
7
 
8
8
  const DEFAULT_UI_SETTINGS: UiSettings = {
9
- threadSidebarVisible: DEFAULT_THREAD_SIDEBAR_VISIBLE,
9
+ workspaceSidebarVisible: DEFAULT_WORKSPACE_SIDEBAR_VISIBLE,
10
10
  };
11
11
 
12
12
  function isStorageAvailable(): boolean {
@@ -27,10 +27,13 @@ function readUiSettings(): UiSettings {
27
27
  const parsed = JSON.parse(raw) as Partial<UiSettings>;
28
28
  return {
29
29
  ...DEFAULT_UI_SETTINGS,
30
- threadSidebarVisible:
31
- typeof parsed.threadSidebarVisible === "boolean"
32
- ? parsed.threadSidebarVisible
33
- : DEFAULT_THREAD_SIDEBAR_VISIBLE,
30
+ workspaceSidebarVisible:
31
+ typeof parsed.workspaceSidebarVisible === "boolean"
32
+ ? parsed.workspaceSidebarVisible
33
+ : // backwards compat: read old key
34
+ typeof (parsed as Record<string, unknown>).threadSidebarVisible === "boolean"
35
+ ? (parsed as Record<string, unknown>).threadSidebarVisible as boolean
36
+ : DEFAULT_WORKSPACE_SIDEBAR_VISIBLE,
34
37
  };
35
38
  } catch {
36
39
  return { ...DEFAULT_UI_SETTINGS };
@@ -49,14 +52,14 @@ function writeUiSettings(settings: UiSettings): void {
49
52
  }
50
53
  }
51
54
 
52
- export function loadThreadSidebarVisible(): boolean {
53
- return readUiSettings().threadSidebarVisible;
55
+ export function loadWorkspaceSidebarVisible(): boolean {
56
+ return readUiSettings().workspaceSidebarVisible;
54
57
  }
55
58
 
56
- export function persistThreadSidebarVisible(visible: boolean): void {
59
+ export function persistWorkspaceSidebarVisible(visible: boolean): void {
57
60
  const nextSettings: UiSettings = {
58
61
  ...readUiSettings(),
59
- threadSidebarVisible: visible,
62
+ workspaceSidebarVisible: visible,
60
63
  };
61
64
  writeUiSettings(nextSettings);
62
65
  }
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Shared test helpers for projector tests.
3
+ * @jest-environment node
4
+ */
5
+
6
+ 'use strict';
7
+
8
+ const Database = require('better-sqlite3');
9
+ const os = require('os');
10
+ const path = require('path');
11
+ const fs = require('fs');
12
+
13
+ const SCHEMA_SQL = fs.readFileSync(
14
+ path.join(__dirname, '../../migrations/sqlite_schema.sql'),
15
+ 'utf8'
16
+ );
17
+
18
+ function tmpDbPath() {
19
+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'agx-proj-test-'));
20
+ return path.join(dir, 'test.db');
21
+ }
22
+
23
+ function makeDb(dbPath) {
24
+ const db = new Database(dbPath);
25
+ db.pragma('journal_mode = WAL');
26
+ db.pragma('foreign_keys = ON');
27
+ db.exec(SCHEMA_SQL);
28
+ return db;
29
+ }
30
+
31
+ function insertTask(db, { userId, title = 'Test Task' } = {}) {
32
+ const id = `task-${Math.random().toString(36).slice(2)}`;
33
+ db.prepare(`
34
+ INSERT INTO tasks (id, user_id, content, title, status)
35
+ VALUES (?, ?, ?, ?, 'queued')
36
+ `).run(id, userId, 'content', title);
37
+ return id;
38
+ }
39
+
40
+ function insertAuditEvent(db, { taskId, userId, action, payload = {} } = {}) {
41
+ const id = `evt-${Math.random().toString(36).slice(2)}`;
42
+ db.prepare(`
43
+ INSERT INTO task_audit_log (id, task_id, user_id, action, payload, signature)
44
+ VALUES (?, ?, ?, ?, ?, 'sig')
45
+ `).run(id, taskId, userId, action, JSON.stringify(payload));
46
+ return id;
47
+ }
48
+
49
+ /**
50
+ * Load projector module bound to a specific db instance (isolated module cache).
51
+ */
52
+ function loadProjectorWithDb(db) {
53
+ jest.resetModules();
54
+ jest.mock('@/lib/sqlite-query-adapter', () => ({
55
+ getSQLiteDb: () => db,
56
+ SqlExpression: class SqlExpression { constructor(e) { this.expr = e; } },
57
+ sqlExpr: (e) => ({ expr: e }),
58
+ }));
59
+ const cursors = require('@/lib/db/cursors');
60
+ const projector = require('@/lib/projectors/notificationProjector');
61
+ return { projector, cursors };
62
+ }
63
+
64
+ function countRows(db, table) {
65
+ return db.prepare(`SELECT COUNT(*) AS n FROM ${table}`).get().n;
66
+ }
67
+
68
+ module.exports = { tmpDbPath, makeDb, insertTask, insertAuditEvent, loadProjectorWithDb, countRows };
@@ -0,0 +1,139 @@
1
+ /**
2
+ * @jest-environment node
3
+ *
4
+ * Crash/restart test: simulate mid-transaction kill by reloading the module
5
+ * mid-stream and verify cursor durability + DB consistency.
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ const fs = require('fs');
11
+ const path = require('path');
12
+ const { tmpDbPath, makeDb, insertTask, insertAuditEvent, loadProjectorWithDb, countRows } = require('./_helpers');
13
+
14
+ describe('projector crash/restart test', () => {
15
+ let dbPath, db;
16
+
17
+ beforeEach(() => {
18
+ dbPath = tmpDbPath();
19
+ db = makeDb(dbPath);
20
+ jest.resetModules();
21
+ });
22
+
23
+ afterEach(() => {
24
+ db.close();
25
+ fs.rmSync(path.dirname(dbPath), { recursive: true });
26
+ });
27
+
28
+ test('cursor is durable across simulated restart', () => {
29
+ const { projector, cursors } = loadProjectorWithDb(db);
30
+ const userId = 'user-crash';
31
+ const taskId = insertTask(db, { userId });
32
+
33
+ // Insert 5 events
34
+ for (let i = 0; i < 5; i++) {
35
+ insertAuditEvent(db, { taskId, userId, action: 'complete' });
36
+ }
37
+
38
+ projector.runOnce();
39
+ const cursorAfterFirst = cursors.readCursor('notification_projector');
40
+ expect(cursorAfterFirst).toBeGreaterThan(0);
41
+ expect(countRows(db, 'notifications')).toBe(5);
42
+
43
+ // Simulate crash: reload module (in-memory debounce state is lost, cursor is from DB)
44
+ jest.resetModules();
45
+ jest.mock('@/lib/sqlite-query-adapter', () => ({
46
+ getSQLiteDb: () => db,
47
+ SqlExpression: class SqlExpression { constructor(e) { this.expr = e; } },
48
+ sqlExpr: (e) => ({ expr: e }),
49
+ }));
50
+ const projector2 = require('@/lib/projectors/notificationProjector');
51
+ const cursors2 = require('@/lib/db/cursors');
52
+
53
+ // Cursor must be persisted from previous run
54
+ expect(cursors2.readCursor('notification_projector')).toBe(cursorAfterFirst);
55
+
56
+ // Insert 3 more events
57
+ for (let i = 0; i < 3; i++) {
58
+ insertAuditEvent(db, { taskId, userId, action: 'fail' });
59
+ }
60
+
61
+ projector2.runOnce();
62
+ // Only the 3 new events are processed; the 5 old ones are not re-delivered
63
+ expect(countRows(db, 'notifications')).toBe(8);
64
+ });
65
+
66
+ test('DB is consistent after simulated crash at cursor boundary', () => {
67
+ const { projector, cursors } = loadProjectorWithDb(db);
68
+ const userId = 'user-boundary';
69
+ const taskIds = [
70
+ insertTask(db, { userId }),
71
+ insertTask(db, { userId }),
72
+ ];
73
+
74
+ // Insert exactly BATCH_SIZE (100) events across two tasks
75
+ for (let i = 0; i < 100; i++) {
76
+ insertAuditEvent(db, { taskId: taskIds[i % 2], userId, action: 'complete' });
77
+ }
78
+
79
+ projector.runOnce(); // processes 100
80
+ const cursor1 = cursors.readCursor('notification_projector');
81
+ const notifCount1 = countRows(db, 'notifications');
82
+ expect(notifCount1).toBe(100);
83
+
84
+ // Insert 50 more, then "crash" before processing
85
+ for (let i = 0; i < 50; i++) {
86
+ insertAuditEvent(db, { taskId: taskIds[i % 2], userId, action: 'fail' });
87
+ }
88
+
89
+ // Simulate crash: reload module without running
90
+ jest.resetModules();
91
+ jest.mock('@/lib/sqlite-query-adapter', () => ({
92
+ getSQLiteDb: () => db,
93
+ SqlExpression: class SqlExpression { constructor(e) { this.expr = e; } },
94
+ sqlExpr: (e) => ({ expr: e }),
95
+ }));
96
+ const projector3 = require('@/lib/projectors/notificationProjector');
97
+ const cursors3 = require('@/lib/db/cursors');
98
+
99
+ // Cursor still at 100-event boundary
100
+ expect(cursors3.readCursor('notification_projector')).toBe(cursor1);
101
+
102
+ // Process the 50 new events
103
+ projector3.runOnce();
104
+ expect(countRows(db, 'notifications')).toBe(150);
105
+ });
106
+
107
+ test('outbox and notifications stay in sync after restart', () => {
108
+ const { projector } = loadProjectorWithDb(db);
109
+ const userId = 'user-sync';
110
+ const taskId = insertTask(db, { userId });
111
+
112
+ for (let i = 0; i < 20; i++) {
113
+ insertAuditEvent(db, { taskId, userId, action: i % 2 === 0 ? 'complete' : 'fail' });
114
+ }
115
+
116
+ projector.runOnce();
117
+
118
+ const notifCount = countRows(db, 'notifications');
119
+ const outboxCount = countRows(db, 'notification_outbox');
120
+
121
+ // Every notification must have exactly one outbox entry
122
+ expect(notifCount).toBe(outboxCount);
123
+ expect(notifCount).toBe(20);
124
+
125
+ // Simulate restart
126
+ jest.resetModules();
127
+ jest.mock('@/lib/sqlite-query-adapter', () => ({
128
+ getSQLiteDb: () => db,
129
+ SqlExpression: class SqlExpression { constructor(e) { this.expr = e; } },
130
+ sqlExpr: (e) => ({ expr: e }),
131
+ }));
132
+ const projector2 = require('@/lib/projectors/notificationProjector');
133
+ projector2.runOnce(); // no-op — no new events
134
+
135
+ // Counts unchanged after restart + no-op run
136
+ expect(countRows(db, 'notifications')).toBe(notifCount);
137
+ expect(countRows(db, 'notification_outbox')).toBe(outboxCount);
138
+ });
139
+ });
@@ -0,0 +1,111 @@
1
+ /**
2
+ * @jest-environment node
3
+ *
4
+ * Duplicate-event test: replaying the same event_id must produce exactly one
5
+ * notification row (idempotency via UNIQUE(event_id, user_id, type)).
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ const fs = require('fs');
11
+ const path = require('path');
12
+ const { tmpDbPath, makeDb, insertTask, insertAuditEvent, loadProjectorWithDb, countRows } = require('./_helpers');
13
+
14
+ describe('projector duplicate-event test', () => {
15
+ let dbPath, db;
16
+
17
+ beforeEach(() => {
18
+ dbPath = tmpDbPath();
19
+ db = makeDb(dbPath);
20
+ jest.resetModules();
21
+ });
22
+
23
+ afterEach(() => {
24
+ db.close();
25
+ fs.rmSync(path.dirname(dbPath), { recursive: true });
26
+ });
27
+
28
+ test('same event_id processed twice yields exactly one notification row', () => {
29
+ const { projector, cursors } = loadProjectorWithDb(db);
30
+ const userId = 'user-dup';
31
+ const taskId = insertTask(db, { userId });
32
+
33
+ insertAuditEvent(db, { taskId, userId, action: 'complete' });
34
+
35
+ // First processing
36
+ projector.runOnce();
37
+ expect(countRows(db, 'notifications')).toBe(1);
38
+ expect(countRows(db, 'notification_outbox')).toBe(1);
39
+
40
+ // Reset cursor to force replay of same event
41
+ cursors.resetCursor('notification_projector');
42
+ projector.runOnce();
43
+
44
+ expect(countRows(db, 'notifications')).toBe(1); // still exactly one
45
+ expect(countRows(db, 'notification_outbox')).toBe(1);
46
+ });
47
+
48
+ test('same event replayed 10 times yields exactly one notification', () => {
49
+ const { projector, cursors } = loadProjectorWithDb(db);
50
+ const userId = 'user-dup10';
51
+ const taskId = insertTask(db, { userId });
52
+
53
+ insertAuditEvent(db, { taskId, userId, action: 'fail' });
54
+
55
+ for (let i = 0; i < 10; i++) {
56
+ cursors.resetCursor('notification_projector');
57
+ projector.runOnce();
58
+ }
59
+
60
+ expect(countRows(db, 'notifications')).toBe(1);
61
+ expect(countRows(db, 'notification_outbox')).toBe(1);
62
+ });
63
+
64
+ test('different event types for same task produce separate notifications', () => {
65
+ const { projector } = loadProjectorWithDb(db);
66
+ const userId = 'user-types';
67
+ const taskId = insertTask(db, { userId });
68
+
69
+ // Each action produces a distinct (event_id, user_id, type) tuple
70
+ insertAuditEvent(db, { taskId, userId, action: 'dispatch' });
71
+ insertAuditEvent(db, { taskId, userId, action: 'execute' });
72
+ insertAuditEvent(db, { taskId, userId, action: 'complete' });
73
+
74
+ projector.runOnce();
75
+ expect(countRows(db, 'notifications')).toBe(3);
76
+ });
77
+
78
+ test('duplicate same-type events across different users create per-user rows', () => {
79
+ const { projector, cursors } = loadProjectorWithDb(db);
80
+ const taskId1 = insertTask(db, { userId: 'user-a' });
81
+ const taskId2 = insertTask(db, { userId: 'user-b' });
82
+
83
+ insertAuditEvent(db, { taskId: taskId1, userId: 'user-a', action: 'complete' });
84
+ insertAuditEvent(db, { taskId: taskId2, userId: 'user-b', action: 'complete' });
85
+
86
+ projector.runOnce();
87
+ expect(countRows(db, 'notifications')).toBe(2); // one per user
88
+
89
+ // Replay: still exactly 2
90
+ cursors.resetCursor('notification_projector');
91
+ projector.runOnce();
92
+ expect(countRows(db, 'notifications')).toBe(2);
93
+ });
94
+
95
+ test('notification fields are correctly populated on first insert', () => {
96
+ const { projector } = loadProjectorWithDb(db);
97
+ const userId = 'user-fields';
98
+ const taskId = insertTask(db, { userId, title: 'My Task' });
99
+
100
+ insertAuditEvent(db, { taskId, userId, action: 'complete' });
101
+ projector.runOnce();
102
+
103
+ const notif = db.prepare('SELECT * FROM notifications').get();
104
+ expect(notif.user_id).toBe(userId);
105
+ expect(notif.task_id).toBe(taskId);
106
+ expect(notif.type).toBe('task.completed');
107
+ expect(notif.tier).toBe('success');
108
+ expect(notif.title).toContain('My Task');
109
+ expect(notif.read_at).toBeNull();
110
+ });
111
+ });