@mndrk/agx 2.0.36 → 2.0.39

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 (765) 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 -7
  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/page_client-reference-manifest.js +1 -1
  15. package/cloud-runtime/standalone/.next/server/app/_not-found.html +2 -2
  16. package/cloud-runtime/standalone/.next/server/app/_not-found.rsc +4 -4
  17. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  18. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
  20. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  23. package/cloud-runtime/standalone/.next/server/app/agents/[id]/page/build-manifest.json +2 -2
  24. package/cloud-runtime/standalone/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
  25. package/cloud-runtime/standalone/.next/server/app/agents/page/build-manifest.json +2 -2
  26. package/cloud-runtime/standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
  27. package/cloud-runtime/standalone/.next/server/app/agents.html +2 -2
  28. package/cloud-runtime/standalone/.next/server/app/agents.rsc +5 -5
  29. package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +5 -5
  30. package/cloud-runtime/standalone/.next/server/app/agents.segments/_head.segment.rsc +1 -1
  31. package/cloud-runtime/standalone/.next/server/app/agents.segments/_index.segment.rsc +4 -4
  32. package/cloud-runtime/standalone/.next/server/app/agents.segments/_tree.segment.rsc +1 -1
  33. package/cloud-runtime/standalone/.next/server/app/agents.segments/agents/__PAGE__.segment.rsc +2 -2
  34. package/cloud-runtime/standalone/.next/server/app/agents.segments/agents.segment.rsc +1 -1
  35. package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js +3 -3
  36. package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js.nft.json +1 -1
  37. package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/messages/route.js +1 -1
  38. package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/messages/route.js.nft.json +1 -1
  39. package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js +3 -3
  40. package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js.nft.json +1 -1
  41. package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js +3 -3
  42. package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js.nft.json +1 -1
  43. package/cloud-runtime/standalone/.next/server/app/api/attachments/[id]/route.js +1 -1
  44. package/cloud-runtime/standalone/.next/server/app/api/attachments/[id]/route.js.nft.json +1 -1
  45. package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js +3 -3
  46. package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js.nft.json +1 -1
  47. package/cloud-runtime/standalone/.next/server/app/api/automations/route.js +1 -1
  48. package/cloud-runtime/standalone/.next/server/app/api/automations/route.js.nft.json +1 -1
  49. package/cloud-runtime/standalone/.next/server/app/api/chat/route.js +4 -4
  50. package/cloud-runtime/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
  51. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/route.js +1 -1
  52. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/route.js.nft.json +1 -1
  53. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/signal/route.js +1 -1
  54. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/signal/route.js.nft.json +1 -1
  55. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/route.js +1 -1
  56. package/cloud-runtime/standalone/.next/server/app/api/chat-runs/route.js.nft.json +1 -1
  57. package/cloud-runtime/standalone/.next/server/app/api/daemon/route.js +1 -1
  58. package/cloud-runtime/standalone/.next/server/app/api/daemon/route.js.nft.json +1 -1
  59. package/cloud-runtime/standalone/.next/server/app/api/file-search/route.js.nft.json +1 -1
  60. package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js +1 -1
  61. package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js.nft.json +1 -1
  62. package/cloud-runtime/standalone/.next/server/app/api/health/route.js +3 -3
  63. package/cloud-runtime/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
  64. package/cloud-runtime/standalone/.next/server/app/api/history/route.js +1 -1
  65. package/cloud-runtime/standalone/.next/server/app/api/history/route.js.nft.json +1 -1
  66. package/cloud-runtime/standalone/.next/server/app/api/history/status/route.js +1 -1
  67. package/cloud-runtime/standalone/.next/server/app/api/history/status/route.js.nft.json +1 -1
  68. package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js +2 -2
  69. package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js.nft.json +1 -1
  70. package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js +3 -3
  71. package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js.nft.json +1 -1
  72. package/cloud-runtime/standalone/.next/server/app/api/logs/route.js +1 -1
  73. package/cloud-runtime/standalone/.next/server/app/api/logs/route.js.nft.json +1 -1
  74. package/cloud-runtime/standalone/.next/server/app/api/logs/stream/route.js +1 -1
  75. package/cloud-runtime/standalone/.next/server/app/api/logs/stream/route.js.nft.json +1 -1
  76. package/cloud-runtime/standalone/.next/server/app/api/memories/route.js +2 -2
  77. package/cloud-runtime/standalone/.next/server/app/api/memories/route.js.nft.json +1 -1
  78. package/cloud-runtime/standalone/.next/server/app/api/messages/[id]/route.js +1 -1
  79. package/cloud-runtime/standalone/.next/server/app/api/messages/[id]/route.js.nft.json +1 -1
  80. package/cloud-runtime/standalone/.next/server/app/api/migrate/teams-to-projects/route.js +1 -1
  81. package/cloud-runtime/standalone/.next/server/app/api/migrate/teams-to-projects/route.js.nft.json +1 -1
  82. package/cloud-runtime/standalone/.next/server/app/api/migrate/workspaces-to-projects/route.js +1 -1
  83. package/cloud-runtime/standalone/.next/server/app/api/migrate/workspaces-to-projects/route.js.nft.json +1 -1
  84. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js +2 -2
  85. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js.nft.json +1 -1
  86. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js +2 -2
  87. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js.nft.json +1 -1
  88. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js +4 -4
  89. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js.nft.json +1 -1
  90. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js +3 -3
  91. package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js.nft.json +1 -1
  92. package/cloud-runtime/standalone/.next/server/app/api/participants/route.js +1 -1
  93. package/cloud-runtime/standalone/.next/server/app/api/participants/route.js.nft.json +1 -1
  94. package/cloud-runtime/standalone/.next/server/app/api/processes/route.js +1 -1
  95. package/cloud-runtime/standalone/.next/server/app/api/processes/route.js.nft.json +1 -1
  96. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js +4 -4
  97. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js.nft.json +1 -1
  98. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route.js +4 -4
  99. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route.js.nft.json +1 -1
  100. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js +2 -2
  101. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js.nft.json +1 -1
  102. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v2/route.js +2 -2
  103. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v2/route.js.nft.json +1 -1
  104. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/route.js +3 -3
  105. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  106. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/skills/route.js +4 -4
  107. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/skills/route.js.nft.json +1 -1
  108. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/threads/route.js +4 -4
  109. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/threads/route.js.nft.json +1 -1
  110. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/variables/route.js +4 -4
  111. package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/variables/route.js.nft.json +1 -1
  112. package/cloud-runtime/standalone/.next/server/app/api/projects/route.js +3 -3
  113. package/cloud-runtime/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
  114. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js +4 -4
  115. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js.nft.json +1 -1
  116. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js +4 -4
  117. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js.nft.json +1 -1
  118. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js +4 -4
  119. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js.nft.json +1 -1
  120. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js +4 -4
  121. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js.nft.json +1 -1
  122. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js +4 -4
  123. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js.nft.json +1 -1
  124. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js +4 -4
  125. package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js.nft.json +1 -1
  126. package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js +3 -3
  127. package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js.nft.json +1 -1
  128. package/cloud-runtime/standalone/.next/server/app/api/queue/route.js +3 -3
  129. package/cloud-runtime/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
  130. package/cloud-runtime/standalone/.next/server/app/api/reactions/route.js +1 -1
  131. package/cloud-runtime/standalone/.next/server/app/api/reactions/route.js.nft.json +1 -1
  132. package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route.js +1 -1
  133. package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route.js.nft.json +1 -1
  134. package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js +2 -2
  135. package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js.nft.json +1 -1
  136. package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js +1 -1
  137. package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js.nft.json +1 -1
  138. package/cloud-runtime/standalone/.next/server/app/api/schedules/route.js +2 -2
  139. package/cloud-runtime/standalone/.next/server/app/api/schedules/route.js.nft.json +1 -1
  140. package/cloud-runtime/standalone/.next/server/app/api/search/route.js +1 -1
  141. package/cloud-runtime/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  142. package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route.js +1 -1
  143. package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route.js.nft.json +1 -1
  144. package/cloud-runtime/standalone/.next/server/app/api/skills/available/route.js +2 -2
  145. package/cloud-runtime/standalone/.next/server/app/api/skills/available/route.js.nft.json +1 -1
  146. package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route.js +2 -2
  147. package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
  148. package/cloud-runtime/standalone/.next/server/app/api/skills/history/route.js +2 -2
  149. package/cloud-runtime/standalone/.next/server/app/api/skills/history/route.js.nft.json +1 -1
  150. package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route.js +2 -2
  151. package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route.js.nft.json +1 -1
  152. package/cloud-runtime/standalone/.next/server/app/api/skills/route.js +2 -2
  153. package/cloud-runtime/standalone/.next/server/app/api/skills/route.js.nft.json +1 -1
  154. package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js +2 -2
  155. package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js.nft.json +1 -1
  156. package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js +3 -3
  157. package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js.nft.json +1 -1
  158. package/cloud-runtime/standalone/.next/server/app/api/system/db-status/route.js +1 -1
  159. package/cloud-runtime/standalone/.next/server/app/api/system/db-status/route.js.nft.json +1 -1
  160. package/cloud-runtime/standalone/.next/server/app/api/task-drafts/route.js +1 -1
  161. package/cloud-runtime/standalone/.next/server/app/api/task-drafts/route.js.nft.json +1 -1
  162. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js +4 -4
  163. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js.nft.json +1 -1
  164. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/route.js +2 -2
  165. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/route.js.nft.json +1 -1
  166. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/costs/route.js +3 -3
  167. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/costs/route.js.nft.json +1 -1
  168. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/dependencies/route.js +1 -1
  169. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/dependencies/route.js.nft.json +1 -1
  170. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/events/route.js +3 -3
  171. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/events/route.js.nft.json +1 -1
  172. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/history/route.js +2 -2
  173. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/history/route.js.nft.json +1 -1
  174. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/metrics/route.js +2 -2
  175. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/metrics/route.js.nft.json +1 -1
  176. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/pause/route.js +1 -1
  177. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/pause/route.js.nft.json +1 -1
  178. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js +4 -4
  179. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js.nft.json +1 -1
  180. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/restart/route.js +3 -3
  181. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/restart/route.js.nft.json +1 -1
  182. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/resume/route.js +3 -3
  183. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/resume/route.js.nft.json +1 -1
  184. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/rollback/route.js +4 -4
  185. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/rollback/route.js.nft.json +1 -1
  186. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/route.js +4 -4
  187. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/route.js.nft.json +1 -1
  188. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/schedule/route.js +4 -4
  189. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/schedule/route.js.nft.json +1 -1
  190. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/start/route.js +3 -3
  191. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/start/route.js.nft.json +1 -1
  192. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/stop/route.js +1 -1
  193. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/stop/route.js.nft.json +1 -1
  194. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/heartbeat/route.js +1 -1
  195. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/heartbeat/route.js.nft.json +1 -1
  196. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js +3 -3
  197. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js.nft.json +1 -1
  198. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/route.js +4 -4
  199. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/route.js.nft.json +1 -1
  200. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/stream/route.js +1 -1
  201. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/stream/route.js.nft.json +1 -1
  202. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js +2 -2
  203. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js.nft.json +1 -1
  204. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js +5 -5
  205. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js.nft.json +1 -1
  206. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js +5 -5
  207. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js.nft.json +1 -1
  208. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js +5 -5
  209. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js.nft.json +1 -1
  210. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js +5 -5
  211. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js.nft.json +1 -1
  212. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js +5 -5
  213. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js.nft.json +1 -1
  214. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js +6 -6
  215. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js.nft.json +1 -1
  216. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/route.js +4 -4
  217. package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
  218. package/cloud-runtime/standalone/.next/server/app/api/tasks/assign-orphans/route.js +3 -3
  219. package/cloud-runtime/standalone/.next/server/app/api/tasks/assign-orphans/route.js.nft.json +1 -1
  220. package/cloud-runtime/standalone/.next/server/app/api/tasks/extract/route.js +3 -3
  221. package/cloud-runtime/standalone/.next/server/app/api/tasks/extract/route.js.nft.json +1 -1
  222. package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js +4 -4
  223. package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js.nft.json +1 -1
  224. package/cloud-runtime/standalone/.next/server/app/api/tasks/stream/route.js +1 -1
  225. package/cloud-runtime/standalone/.next/server/app/api/tasks/stream/route.js.nft.json +1 -1
  226. package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route.js +1 -1
  227. package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route.js.nft.json +1 -1
  228. package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js +3 -3
  229. package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js.nft.json +1 -1
  230. package/cloud-runtime/standalone/.next/server/app/api/threads/route.js +3 -3
  231. package/cloud-runtime/standalone/.next/server/app/api/threads/route.js.nft.json +1 -1
  232. package/cloud-runtime/standalone/.next/server/app/api/upload/[id]/route.js +1 -1
  233. package/cloud-runtime/standalone/.next/server/app/api/upload/[id]/route.js.nft.json +1 -1
  234. package/cloud-runtime/standalone/.next/server/app/api/upload/route.js +1 -1
  235. package/cloud-runtime/standalone/.next/server/app/api/upload/route.js.nft.json +1 -1
  236. package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js +3 -3
  237. package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js.nft.json +1 -1
  238. package/cloud-runtime/standalone/.next/server/app/automations/page/build-manifest.json +2 -2
  239. package/cloud-runtime/standalone/.next/server/app/automations/page_client-reference-manifest.js +1 -1
  240. package/cloud-runtime/standalone/.next/server/app/automations.html +2 -2
  241. package/cloud-runtime/standalone/.next/server/app/automations.rsc +5 -5
  242. package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +5 -5
  243. package/cloud-runtime/standalone/.next/server/app/automations.segments/_head.segment.rsc +1 -1
  244. package/cloud-runtime/standalone/.next/server/app/automations.segments/_index.segment.rsc +4 -4
  245. package/cloud-runtime/standalone/.next/server/app/automations.segments/_tree.segment.rsc +1 -1
  246. package/cloud-runtime/standalone/.next/server/app/automations.segments/automations/__PAGE__.segment.rsc +2 -2
  247. package/cloud-runtime/standalone/.next/server/app/automations.segments/automations.segment.rsc +1 -1
  248. package/cloud-runtime/standalone/.next/server/app/board/page/build-manifest.json +2 -2
  249. package/cloud-runtime/standalone/.next/server/app/board/page_client-reference-manifest.js +1 -1
  250. package/cloud-runtime/standalone/.next/server/app/board.html +2 -2
  251. package/cloud-runtime/standalone/.next/server/app/board.rsc +4 -4
  252. package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +4 -4
  253. package/cloud-runtime/standalone/.next/server/app/board.segments/_head.segment.rsc +1 -1
  254. package/cloud-runtime/standalone/.next/server/app/board.segments/_index.segment.rsc +4 -4
  255. package/cloud-runtime/standalone/.next/server/app/board.segments/_tree.segment.rsc +1 -1
  256. package/cloud-runtime/standalone/.next/server/app/board.segments/board/__PAGE__.segment.rsc +1 -1
  257. package/cloud-runtime/standalone/.next/server/app/board.segments/board.segment.rsc +1 -1
  258. package/cloud-runtime/standalone/.next/server/app/execution-graph/page/build-manifest.json +2 -2
  259. package/cloud-runtime/standalone/.next/server/app/execution-graph/page_client-reference-manifest.js +1 -1
  260. package/cloud-runtime/standalone/.next/server/app/execution-graph.html +2 -2
  261. package/cloud-runtime/standalone/.next/server/app/execution-graph.rsc +5 -5
  262. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +5 -5
  263. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_head.segment.rsc +1 -1
  264. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_index.segment.rsc +4 -4
  265. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_tree.segment.rsc +1 -1
  266. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +2 -2
  267. package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +1 -1
  268. package/cloud-runtime/standalone/.next/server/app/index.html +2 -2
  269. package/cloud-runtime/standalone/.next/server/app/index.rsc +5 -5
  270. package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  271. package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +5 -5
  272. package/cloud-runtime/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  273. package/cloud-runtime/standalone/.next/server/app/index.segments/_index.segment.rsc +4 -4
  274. package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  275. package/cloud-runtime/standalone/.next/server/app/page/build-manifest.json +2 -2
  276. package/cloud-runtime/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  277. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/build-manifest.json +2 -2
  278. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page_client-reference-manifest.js +1 -1
  279. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page/build-manifest.json +2 -2
  280. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page_client-reference-manifest.js +1 -1
  281. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page/build-manifest.json +2 -2
  282. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page_client-reference-manifest.js +1 -1
  283. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page/build-manifest.json +2 -2
  284. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
  285. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page/build-manifest.json +2 -2
  286. package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page_client-reference-manifest.js +1 -1
  287. package/cloud-runtime/standalone/.next/server/app/projects/orphans/page/build-manifest.json +2 -2
  288. package/cloud-runtime/standalone/.next/server/app/projects/orphans/page_client-reference-manifest.js +1 -1
  289. package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +2 -2
  290. package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +5 -5
  291. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +5 -5
  292. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_head.segment.rsc +1 -1
  293. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_index.segment.rsc +4 -4
  294. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_tree.segment.rsc +1 -1
  295. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +2 -2
  296. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +1 -1
  297. package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects.segment.rsc +1 -1
  298. package/cloud-runtime/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
  299. package/cloud-runtime/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  300. package/cloud-runtime/standalone/.next/server/app/projects.html +2 -2
  301. package/cloud-runtime/standalone/.next/server/app/projects.rsc +5 -5
  302. package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +5 -5
  303. package/cloud-runtime/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
  304. package/cloud-runtime/standalone/.next/server/app/projects.segments/_index.segment.rsc +4 -4
  305. package/cloud-runtime/standalone/.next/server/app/projects.segments/_tree.segment.rsc +1 -1
  306. package/cloud-runtime/standalone/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +2 -2
  307. package/cloud-runtime/standalone/.next/server/app/projects.segments/projects.segment.rsc +1 -1
  308. package/cloud-runtime/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
  309. package/cloud-runtime/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  310. package/cloud-runtime/standalone/.next/server/app/settings.html +2 -2
  311. package/cloud-runtime/standalone/.next/server/app/settings.rsc +5 -5
  312. package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +5 -5
  313. package/cloud-runtime/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  314. package/cloud-runtime/standalone/.next/server/app/settings.segments/_index.segment.rsc +4 -4
  315. package/cloud-runtime/standalone/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  316. package/cloud-runtime/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  317. package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  318. package/cloud-runtime/standalone/.next/server/app/skills/page/build-manifest.json +2 -2
  319. package/cloud-runtime/standalone/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  320. package/cloud-runtime/standalone/.next/server/app/skills.html +2 -2
  321. package/cloud-runtime/standalone/.next/server/app/skills.rsc +5 -5
  322. package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +5 -5
  323. package/cloud-runtime/standalone/.next/server/app/skills.segments/_head.segment.rsc +1 -1
  324. package/cloud-runtime/standalone/.next/server/app/skills.segments/_index.segment.rsc +4 -4
  325. package/cloud-runtime/standalone/.next/server/app/skills.segments/_tree.segment.rsc +1 -1
  326. package/cloud-runtime/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +2 -2
  327. package/cloud-runtime/standalone/.next/server/app/skills.segments/skills.segment.rsc +1 -1
  328. package/cloud-runtime/standalone/.next/server/app/status/page/build-manifest.json +2 -2
  329. package/cloud-runtime/standalone/.next/server/app/status/page_client-reference-manifest.js +1 -1
  330. package/cloud-runtime/standalone/.next/server/app/status.html +2 -2
  331. package/cloud-runtime/standalone/.next/server/app/status.rsc +5 -5
  332. package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +5 -5
  333. package/cloud-runtime/standalone/.next/server/app/status.segments/_head.segment.rsc +1 -1
  334. package/cloud-runtime/standalone/.next/server/app/status.segments/_index.segment.rsc +4 -4
  335. package/cloud-runtime/standalone/.next/server/app/status.segments/_tree.segment.rsc +1 -1
  336. package/cloud-runtime/standalone/.next/server/app/status.segments/status/__PAGE__.segment.rsc +2 -2
  337. package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +1 -1
  338. package/cloud-runtime/standalone/.next/server/app/thread/[id]/page/build-manifest.json +2 -2
  339. package/cloud-runtime/standalone/.next/server/app/thread/[id]/page_client-reference-manifest.js +1 -1
  340. package/cloud-runtime/standalone/.next/server/app/welcome/page/build-manifest.json +2 -2
  341. package/cloud-runtime/standalone/.next/server/app/welcome/page_client-reference-manifest.js +1 -1
  342. package/cloud-runtime/standalone/.next/server/app/welcome.html +2 -2
  343. package/cloud-runtime/standalone/.next/server/app/welcome.rsc +5 -5
  344. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +5 -5
  345. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_head.segment.rsc +1 -1
  346. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_index.segment.rsc +4 -4
  347. package/cloud-runtime/standalone/.next/server/app/welcome.segments/_tree.segment.rsc +1 -1
  348. package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +2 -2
  349. package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +1 -1
  350. package/cloud-runtime/standalone/.next/server/chunks/{[externals]__cf9f18a6._.js → [externals]__986fcdb7._.js} +1 -1
  351. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__01cd082e._.js +13 -0
  352. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0936925d._.js +3 -0
  353. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0c3dd73b._.js +13 -0
  354. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0cc3f3b7._.js +18 -0
  355. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__d4126e05._.js → [root-of-the-server]__1b0bb735._.js} +3 -3
  356. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__4d865017._.js → [root-of-the-server]__1c86bf6e._.js} +6 -6
  357. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1dce6c15._.js +3 -0
  358. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__0bb52353._.js → [root-of-the-server]__20c58b41._.js} +18 -18
  359. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2126c763._.js +42 -0
  360. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__255b11f2._.js +3 -0
  361. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__26817611._.js +3 -0
  362. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__277ed37d._.js +3 -0
  363. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__294fceef._.js +3 -0
  364. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2f06f568._.js +46 -0
  365. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__30bd0c87._.js +13 -0
  366. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__314d5c41._.js +3 -0
  367. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__352dad6d._.js +3 -0
  368. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__374cd94c._.js +42 -0
  369. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3785024c._.js +80 -0
  370. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__379604d4._.js +13 -0
  371. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c8f1de6._.js +15 -0
  372. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3d0df5a8._.js +8 -0
  373. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__0b3b6a47._.js → [root-of-the-server]__4014ed70._.js} +20 -20
  374. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42fcb81c._.js +52 -0
  375. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a3cd6ac._.js +13 -0
  376. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a4265e0._.js +22 -0
  377. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4bce7db7._.js +101 -0
  378. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c5c536d._.js +18 -0
  379. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4e522535._.js +6 -0
  380. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__50c24784._.js +3 -0
  381. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__50ddd3ce._.js +1 -1
  382. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__529a6e1c._.js +80 -0
  383. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__59d1cdd8._.js +3 -0
  384. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5a1fd688._.js +3 -0
  385. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5d359afa._.js +18 -18
  386. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__628d686b._.js +3 -0
  387. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__005b3c82._.js → [root-of-the-server]__644e6285._.js} +8 -8
  388. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__65755104._.js +7 -0
  389. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__068b4f08._.js → [root-of-the-server]__73c20995._.js} +3 -3
  390. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__762ab29c._.js +51 -0
  391. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__981d92dd._.js → [root-of-the-server]__8125bbc3._.js} +19 -19
  392. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__85275b88._.js +3 -0
  393. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__89666394._.js +8 -0
  394. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8c0fb154._.js +13 -0
  395. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8f5cac13._.js +46 -0
  396. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__91b22098._.js +8 -0
  397. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__92924218._.js +13 -0
  398. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__94bd7f65._.js +3 -0
  399. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__96ae701e._.js +1 -1
  400. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9746d1f5._.js +18 -0
  401. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__98ce983b._.js +3 -0
  402. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ee6511a0._.js → [root-of-the-server]__9a9fd39f._.js} +10 -10
  403. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9ad4e385._.js +3 -0
  404. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9b69f93e._.js +18 -0
  405. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a01ddd0b._.js +46 -0
  406. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__8ac0286e._.js → [root-of-the-server]__a099c992._.js} +20 -20
  407. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a9b949c3._.js +7 -0
  408. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ab7343c8._.js +3 -0
  409. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__af7a73fd._.js +3 -0
  410. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bd43017b._.js +3 -0
  411. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bf6fb108._.js +80 -0
  412. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c0a18648._.js +10 -10
  413. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__7ee9b7b6._.js → [root-of-the-server]__c122c54a._.js} +3 -3
  414. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c4ea4921._.js +3 -0
  415. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__8b0ab82f._.js → [root-of-the-server]__c4ed5d83._.js} +7 -7
  416. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c695a5f2._.js +18 -0
  417. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c8b49077._.js +10 -10
  418. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d57e800e._.js +13 -0
  419. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d8b615bf._.js +34 -0
  420. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d9bd6334._.js +3 -0
  421. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__543ba6c4._.js → [root-of-the-server]__da3a1ce7._.js} +2 -2
  422. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__db469f1b._.js +3 -0
  423. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__de2a1e43._.js +3 -0
  424. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5031f8d4._.js → [root-of-the-server]__dec3e1b7._.js} +11 -11
  425. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f1147a4a._.js +15 -0
  426. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f5597fea._.js +13 -0
  427. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f8c94cb3._.js +8 -0
  428. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ceb02db8._.js → [root-of-the-server]__f9cff4b0._.js} +2 -2
  429. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f9f7f2df._.js +4 -0
  430. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fa79d53f._.js +46 -0
  431. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fb14cd4a._.js +3 -0
  432. package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__a55c16a5._.js → [root-of-the-server]__fc27a898._.js} +31 -31
  433. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fcf0b40a._.js +3 -0
  434. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ffb21023._.js +80 -0
  435. package/cloud-runtime/standalone/.next/server/chunks/_05fa3b89._.js +18 -18
  436. package/cloud-runtime/standalone/.next/server/chunks/_17e53c87._.js +3 -0
  437. package/cloud-runtime/standalone/.next/server/chunks/_4190f170._.js +18 -18
  438. package/cloud-runtime/standalone/.next/server/chunks/_42e9c8d5._.js +18 -18
  439. package/cloud-runtime/standalone/.next/server/chunks/_5ca51127._.js +3 -3
  440. package/cloud-runtime/standalone/.next/server/chunks/_5fd6af5d._.js +3 -3
  441. package/cloud-runtime/standalone/.next/server/chunks/_8b9fde82._.js +20 -20
  442. package/cloud-runtime/standalone/.next/server/chunks/_994414cd._.js +3 -3
  443. package/cloud-runtime/standalone/.next/server/chunks/_99b78daf._.js +18 -18
  444. package/cloud-runtime/standalone/.next/server/chunks/_affbdbb0._.js +18 -18
  445. package/cloud-runtime/standalone/.next/server/chunks/_d22934ab._.js +20 -20
  446. package/cloud-runtime/standalone/.next/server/chunks/_efc73784._.js +18 -18
  447. package/cloud-runtime/standalone/.next/server/chunks/lib_a5adca60._.js +15 -15
  448. package/cloud-runtime/standalone/.next/server/chunks/lib_check-node-version_ts_ef89bf83._.js +3 -0
  449. package/cloud-runtime/standalone/.next/server/chunks/lib_ea45fe73._.js +18 -18
  450. package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_2e721df2._.js +39 -39
  451. package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_74d1c060._.js +39 -39
  452. package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js +18 -18
  453. package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_b0b1a9b2._.js +19 -19
  454. package/cloud-runtime/standalone/.next/server/chunks/src_graph_14067235._.js +18 -18
  455. package/cloud-runtime/standalone/.next/server/chunks/src_graph_b63e2d39._.js +18 -18
  456. package/cloud-runtime/standalone/.next/server/chunks/ssr/_0c5c111f._.js +1 -1
  457. package/cloud-runtime/standalone/.next/server/chunks/ssr/_314f4c49._.js +1 -1
  458. package/cloud-runtime/standalone/.next/server/chunks/ssr/components_thread_WorkspaceSidebar_tsx_e660301b._.js +1 -1
  459. package/cloud-runtime/standalone/.next/server/instrumentation.js +1 -1
  460. package/cloud-runtime/standalone/.next/server/middleware-build-manifest.js +2 -2
  461. package/cloud-runtime/standalone/.next/server/middleware-manifest.json +5 -5
  462. package/cloud-runtime/standalone/.next/server/pages/404.html +2 -2
  463. package/cloud-runtime/standalone/.next/server/pages/500.html +2 -2
  464. package/cloud-runtime/standalone/.next/server/server-reference-manifest.js +1 -1
  465. package/cloud-runtime/standalone/.next/server/server-reference-manifest.json +1 -1
  466. package/cloud-runtime/standalone/.next/static/chunks/{47f22a56011af8d3.js → 5c0819dcc4bfec85.js} +1 -1
  467. package/cloud-runtime/standalone/.next/static/chunks/{25c9ac515cfe5635.js → 9bde80696400d2ff.js} +2 -2
  468. package/cloud-runtime/standalone/.next/static/chunks/ac9a7d8cf17b5d75.js +1 -0
  469. package/cloud-runtime/standalone/.next/static/chunks/{dfff51033c303fc7.js → ee5f1457fbc593e1.js} +1 -1
  470. package/cloud-runtime/standalone/.next/static/chunks/{turbopack-22475f0dd0c18f92.js → turbopack-e1d640f2fbe4fa5e.js} +1 -1
  471. package/cloud-runtime/standalone/app/api/agents/[id]/messages/route.ts +4 -3
  472. package/cloud-runtime/standalone/app/api/agents/[id]/profile/route.ts +1 -1
  473. package/cloud-runtime/standalone/app/api/automations/route.ts +1 -1
  474. package/cloud-runtime/standalone/app/api/chat/route.ts +2 -2
  475. package/cloud-runtime/standalone/app/api/memories/route.ts +2 -2
  476. package/cloud-runtime/standalone/app/api/prompt-jobs/[id]/route.ts +9 -1
  477. package/cloud-runtime/standalone/app/api/system/db-status/route.ts +12 -11
  478. package/cloud-runtime/standalone/components/PromptJobBoard.tsx +12 -1
  479. package/cloud-runtime/standalone/components/errors/StartupGuard.tsx +1 -1
  480. package/cloud-runtime/standalone/components/errors/StartupGuardWrapper.tsx +1 -1
  481. package/cloud-runtime/standalone/components/thread/WorkspaceSidebar.tsx +1 -1
  482. package/cloud-runtime/standalone/coverage/clover.xml +1208 -0
  483. package/cloud-runtime/standalone/coverage/coverage-final.json +29 -0
  484. package/cloud-runtime/standalone/coverage/lcov-report/app/api/audit/index.html +116 -0
  485. package/cloud-runtime/standalone/coverage/lcov-report/app/api/audit/route.ts.html +208 -0
  486. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/[...nextauth]/index.html +116 -0
  487. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/[...nextauth]/route.ts.html +166 -0
  488. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/daemon-secret/index.html +116 -0
  489. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/daemon-secret/route.ts.html +532 -0
  490. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/status/index.html +116 -0
  491. package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/status/route.ts.html +178 -0
  492. package/cloud-runtime/standalone/coverage/lcov-report/app/api/learnings/index.html +116 -0
  493. package/cloud-runtime/standalone/coverage/lcov-report/app/api/learnings/route.ts.html +262 -0
  494. package/cloud-runtime/standalone/coverage/lcov-report/app/api/logs/stream/index.html +116 -0
  495. package/cloud-runtime/standalone/coverage/lcov-report/app/api/logs/stream/route.ts.html +448 -0
  496. package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/complete/index.html +116 -0
  497. package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/complete/route.ts.html +331 -0
  498. package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/index.html +116 -0
  499. package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/route.ts.html +505 -0
  500. package/cloud-runtime/standalone/coverage/lcov-report/app/api/stage-prompts/index.html +116 -0
  501. package/cloud-runtime/standalone/coverage/lcov-report/app/api/stage-prompts/route.ts.html +412 -0
  502. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/advance/index.html +116 -0
  503. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/advance/route.ts.html +304 -0
  504. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/index.html +116 -0
  505. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/logs/index.html +116 -0
  506. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/logs/route.ts.html +202 -0
  507. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/route.ts.html +373 -0
  508. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/index.html +116 -0
  509. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/route.ts.html +499 -0
  510. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/stream/index.html +116 -0
  511. package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/stream/route.ts.html +349 -0
  512. package/cloud-runtime/standalone/coverage/lcov-report/base.css +224 -0
  513. package/cloud-runtime/standalone/coverage/lcov-report/block-navigation.js +87 -0
  514. package/cloud-runtime/standalone/coverage/lcov-report/components/AuthProvider.tsx.html +259 -0
  515. package/cloud-runtime/standalone/coverage/lcov-report/components/ChatInterface.tsx.html +1228 -0
  516. package/cloud-runtime/standalone/coverage/lcov-report/components/KanbanBoard.tsx.html +1024 -0
  517. package/cloud-runtime/standalone/coverage/lcov-report/components/Layout.tsx.html +211 -0
  518. package/cloud-runtime/standalone/coverage/lcov-report/components/LearningsPanel.tsx.html +535 -0
  519. package/cloud-runtime/standalone/coverage/lcov-report/components/LogTimeline.tsx.html +415 -0
  520. package/cloud-runtime/standalone/coverage/lcov-report/components/SortableTaskCard.tsx.html +358 -0
  521. package/cloud-runtime/standalone/coverage/lcov-report/components/StagePills.tsx.html +439 -0
  522. package/cloud-runtime/standalone/coverage/lcov-report/components/TaskCard.tsx.html +514 -0
  523. package/cloud-runtime/standalone/coverage/lcov-report/components/TaskCardOverlay.tsx.html +256 -0
  524. package/cloud-runtime/standalone/coverage/lcov-report/components/TaskDetail.tsx.html +622 -0
  525. package/cloud-runtime/standalone/coverage/lcov-report/components/TaskList.tsx.html +253 -0
  526. package/cloud-runtime/standalone/coverage/lcov-report/components/index.html +281 -0
  527. package/cloud-runtime/standalone/coverage/lcov-report/favicon.png +0 -0
  528. package/cloud-runtime/standalone/coverage/lcov-report/hooks/index.html +116 -0
  529. package/cloud-runtime/standalone/coverage/lcov-report/hooks/useTasks.ts.html +1042 -0
  530. package/cloud-runtime/standalone/coverage/lcov-report/index.html +341 -0
  531. package/cloud-runtime/standalone/coverage/lcov-report/lib/auth-client.ts.html +202 -0
  532. package/cloud-runtime/standalone/coverage/lcov-report/lib/auth-server.ts.html +172 -0
  533. package/cloud-runtime/standalone/coverage/lcov-report/lib/auth.ts.html +265 -0
  534. package/cloud-runtime/standalone/coverage/lcov-report/lib/db.ts.html +1252 -0
  535. package/cloud-runtime/standalone/coverage/lcov-report/lib/index.html +131 -0
  536. package/cloud-runtime/standalone/coverage/lcov-report/lib/orchestrator.ts.html +409 -0
  537. package/cloud-runtime/standalone/coverage/lcov-report/lib/security.ts.html +1165 -0
  538. package/cloud-runtime/standalone/coverage/lcov-report/lib/supabase-server.ts.html +175 -0
  539. package/cloud-runtime/standalone/coverage/lcov-report/lib/supabase.ts.html +157 -0
  540. package/cloud-runtime/standalone/coverage/lcov-report/prettify.css +1 -0
  541. package/cloud-runtime/standalone/coverage/lcov-report/prettify.js +2 -0
  542. package/cloud-runtime/standalone/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  543. package/cloud-runtime/standalone/coverage/lcov-report/sorter.js +210 -0
  544. package/cloud-runtime/standalone/coverage/lcov.info +2386 -0
  545. package/cloud-runtime/standalone/docs/LIMITS.md +63 -0
  546. package/cloud-runtime/standalone/docs/architecture/ADR-001-hybrid-to-full-sqlite.md +345 -0
  547. package/cloud-runtime/standalone/docs/baseline/baseline-report.json +1009 -0
  548. package/cloud-runtime/standalone/docs/baseline/critical-queries.md +105 -0
  549. package/cloud-runtime/standalone/docs/baseline/lock-metrics.json +21 -0
  550. package/cloud-runtime/standalone/docs/baseline/read-latency.json +146 -0
  551. package/cloud-runtime/standalone/docs/baseline/restore-time.json +10 -0
  552. package/cloud-runtime/standalone/docs/baseline/write-metrics.json +803 -0
  553. package/cloud-runtime/standalone/docs/decisions/sqlite-migration-adr.md +327 -0
  554. package/cloud-runtime/standalone/docs/error-code-mapping.md +74 -0
  555. package/cloud-runtime/standalone/docs/migration-plan.md +120 -0
  556. package/cloud-runtime/standalone/docs/migration-spec.md +345 -0
  557. package/cloud-runtime/standalone/docs/pg-sqlite-compatibility-matrix.md +554 -0
  558. package/cloud-runtime/standalone/docs/project-agent-migration-status.md +229 -0
  559. package/cloud-runtime/standalone/docs/runbook-shadow-read.md +66 -0
  560. package/cloud-runtime/standalone/docs/runbook.md +155 -0
  561. package/cloud-runtime/standalone/docs/specs/cli-postgres-removal.md +69 -0
  562. package/cloud-runtime/standalone/docs/specs/thread-mentions.md +53 -0
  563. package/cloud-runtime/standalone/docs/superpowers/plans/2026-04-01-prompt-scheduler.md +1907 -0
  564. package/cloud-runtime/standalone/docs/superpowers/plans/2026-04-02-sqlite-migration.md +1047 -0
  565. package/cloud-runtime/standalone/docs/transcript.txt +282 -0
  566. package/cloud-runtime/standalone/docs/ux/GlobalChatFlow.storyboard +23 -0
  567. package/cloud-runtime/standalone/docs/ux/assistant-chat-cli.md +32 -0
  568. package/cloud-runtime/standalone/hooks/usePromptJobs.ts +9 -18
  569. package/cloud-runtime/standalone/instrumentation.ts +33 -0
  570. package/cloud-runtime/standalone/lib/agent-process-registry.ts +10 -9
  571. package/cloud-runtime/standalone/lib/attachment-store.ts +6 -5
  572. package/cloud-runtime/standalone/lib/check-node-version.ts +12 -0
  573. package/cloud-runtime/standalone/lib/db-adapter.interface.ts +1 -1
  574. package/cloud-runtime/standalone/lib/history-store.ts +46 -46
  575. package/cloud-runtime/standalone/lib/knowledge-store.ts +2 -1
  576. package/cloud-runtime/standalone/lib/participants-store.ts +9 -8
  577. package/cloud-runtime/standalone/lib/queue/sqlite-adapter.ts +12 -11
  578. package/cloud-runtime/standalone/lib/repo-knowledge.ts +6 -5
  579. package/cloud-runtime/standalone/lib/sqlite-compat.ts +75 -0
  580. package/cloud-runtime/standalone/lib/sqlite-query-adapter.ts +15 -14
  581. package/cloud-runtime/standalone/lib/sqlite_writer.ts +10 -9
  582. package/cloud-runtime/standalone/lib/startup.ts +18 -19
  583. package/cloud-runtime/standalone/lib/thread-knowledge-runs.ts +2 -1
  584. package/cloud-runtime/standalone/lib/workspaces-to-projects-migration.ts +19 -18
  585. package/cloud-runtime/standalone/mcp/dist/constants.js +66 -0
  586. package/cloud-runtime/standalone/mcp/dist/db.js +220 -0
  587. package/cloud-runtime/standalone/mcp/dist/index.js +7 -0
  588. package/cloud-runtime/standalone/mcp/dist/security.js +18 -0
  589. package/cloud-runtime/standalone/mcp/dist/server.js +240 -0
  590. package/cloud-runtime/standalone/mcp/dist/task-context.js +287 -0
  591. package/cloud-runtime/standalone/mcp/dist/test-client.js +82 -0
  592. package/cloud-runtime/standalone/mcp/dist/tools/audit.js +69 -0
  593. package/cloud-runtime/standalone/mcp/dist/tools/learnings.js +88 -0
  594. package/cloud-runtime/standalone/mcp/dist/tools/queue.js +312 -0
  595. package/cloud-runtime/standalone/mcp/dist/tools/tasks.js +244 -0
  596. package/cloud-runtime/standalone/mcp/dist/types.js +74 -0
  597. package/cloud-runtime/standalone/mcp/package-lock.json +3 -147
  598. package/cloud-runtime/standalone/mcp/package.json +1 -1
  599. package/cloud-runtime/standalone/mcp/src/check-node-version.ts +8 -0
  600. package/cloud-runtime/standalone/mcp/src/db.ts +4 -5
  601. package/cloud-runtime/standalone/mcp/src/index.ts +1 -0
  602. package/cloud-runtime/standalone/next.config.ts +0 -1
  603. package/cloud-runtime/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  604. package/cloud-runtime/standalone/node_modules/@img/{sharp-linux-x64 → sharp-darwin-arm64}/package.json +7 -13
  605. package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/README.md +2 -2
  606. package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linuxmusl-x64 → sharp-libvips-darwin-arm64}/lib/glib-2.0/include/glibconfig.h +8 -9
  607. 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
  608. package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/package.json +5 -11
  609. package/cloud-runtime/standalone/notes/comments-context-demo.md +141 -0
  610. package/cloud-runtime/standalone/notes/comments-context-plan.md +119 -0
  611. package/cloud-runtime/standalone/notes/context-audit.md +21 -0
  612. package/cloud-runtime/standalone/notes/project-layer-plan.md +30 -0
  613. package/cloud-runtime/standalone/notes/project-layer.md +123 -0
  614. package/cloud-runtime/standalone/notes/temporal-migration-design.md +199 -0
  615. package/cloud-runtime/standalone/package-lock.json +9 -413
  616. package/cloud-runtime/standalone/package.json +3 -2
  617. package/cloud-runtime/standalone/playwright-report/data/00d55996f37c1506b90144c85493dd85032c13e5.png +0 -0
  618. package/cloud-runtime/standalone/playwright-report/data/0b9d409e57237ae111d7ba258d3dfe64dc368456.png +0 -0
  619. package/cloud-runtime/standalone/playwright-report/data/b33d5e80a15bd1deda4415b9d318ef73f581c950.png +0 -0
  620. package/cloud-runtime/standalone/playwright-report/data/b55684161aa440d0614595e13c91338f0420abbb.md +131 -0
  621. package/cloud-runtime/standalone/playwright-report/data/b9913957ae07e7565c38ddd71215be79b1ceb017.png +0 -0
  622. package/cloud-runtime/standalone/playwright-report/data/c3538be8ebbebc9fe4a7df8f12f04483af4a0d91.png +0 -0
  623. package/cloud-runtime/standalone/playwright-report/data/fe638f64ff5e36f1c30325564565662d3f57da87.md +180 -0
  624. package/cloud-runtime/standalone/playwright-report/index.html +85 -0
  625. package/cloud-runtime/standalone/scripts/bench-queue.ts +5 -4
  626. package/cloud-runtime/standalone/server.js +1 -1
  627. package/cloud-runtime/standalone/src/db/backup.ts +12 -11
  628. package/cloud-runtime/standalone/src/db/checks.ts +3 -3
  629. package/cloud-runtime/standalone/src/db/init.ts +13 -12
  630. package/cloud-runtime/standalone/src/graph/schedule-runner.ts +1 -1
  631. package/cloud-runtime/standalone/src/graph/store.ts +14 -13
  632. package/cloud-runtime/standalone/src/prompt-scheduler/get-store.ts +19 -3
  633. package/cloud-runtime/standalone/src/prompt-scheduler/store.ts +9 -9
  634. package/cloud-runtime/standalone/test/adapters/sqlite.ts +7 -6
  635. package/cloud-runtime/standalone/test-results/auth-Authentication-Flow-S-aff25-sion-across-page-navigation-chromium/test-failed-1.png +0 -0
  636. package/cloud-runtime/standalone/test-results/comments-Task-comments-add-4dc59-nd-persists-it-for-the-task-chromium/error-context.md +131 -0
  637. package/cloud-runtime/standalone/test-results/comments-Task-comments-add-4dc59-nd-persists-it-for-the-task-chromium/test-failed-1.png +0 -0
  638. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage--4082a-er-planning-after-ideation--chromium/error-context.md +180 -0
  639. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage--4082a-er-planning-after-ideation--chromium/test-failed-1.png +0 -0
  640. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage-Columns-displays-all-9-SDLC-stages-chromium/error-context.md +180 -0
  641. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage-Columns-displays-all-9-SDLC-stages-chromium/test-failed-1.png +0 -0
  642. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-D-b6d98-ys-tasks-in-correct-columns-chromium/error-context.md +180 -0
  643. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-D-b6d98-ys-tasks-in-correct-columns-chromium/test-failed-1.png +0 -0
  644. package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-Display-shows-task-count-per-column-chromium/test-failed-1.png +0 -0
  645. package/cloud-runtime/standalone/test-results/kanban-Task-Lifecycle-can-advance-task-through-all-stages-chromium/test-failed-1.png +0 -0
  646. package/cloud-runtime/standalone/tsconfig.json +1 -2
  647. package/cloud-runtime/standalone/tsconfig.tsbuildinfo +1 -0
  648. package/cloud-runtime/standalone/worker/index.js +110 -823
  649. package/cloud-runtime/standalone/worker/index.ts +1 -0
  650. package/package.json +1 -1
  651. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__017f03c3._.js +0 -13
  652. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__056d94e4._.js +0 -3
  653. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__06634853._.js +0 -80
  654. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0f580808._.js +0 -13
  655. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__164a80ba._.js +0 -18
  656. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__16dd1fd7._.js +0 -13
  657. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1a8e0957._.js +0 -7
  658. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1cc2fe7f._.js +0 -3
  659. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__23ad03bf._.js +0 -3
  660. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__241a8bcf._.js +0 -3
  661. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__29419d66._.js +0 -42
  662. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2948f712._.js +0 -3
  663. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__32ef6623._.js +0 -3
  664. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__34cb1b98._.js +0 -3
  665. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c1567b6._.js +0 -3
  666. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c37453e._.js +0 -3
  667. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3faa64cd._.js +0 -4
  668. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4041bb93._.js +0 -18
  669. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42497c7b._.js +0 -80
  670. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__49c03d66._.js +0 -3
  671. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a8d14c1._.js +0 -3
  672. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c50f159._.js +0 -18
  673. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c861686._.js +0 -46
  674. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__588b6ab0._.js +0 -46
  675. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__596d0e81._.js +0 -42
  676. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__59b5d4e5._.js +0 -3
  677. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__61c99680._.js +0 -52
  678. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__64712846._.js +0 -3
  679. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__707c32af._.js +0 -15
  680. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7370bb86._.js +0 -8
  681. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__749af50f._.js +0 -8
  682. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__74b97f0a._.js +0 -3
  683. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__75cedecf._.js +0 -6
  684. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7e79d86a._.js +0 -3
  685. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8b461158._.js +0 -3
  686. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__918f0106._.js +0 -80
  687. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__922eb7cd._.js +0 -80
  688. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__927cfc20._.js +0 -3
  689. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__952af4b3._.js +0 -22
  690. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__98b352f7._.js +0 -13
  691. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a44db634._.js +0 -8
  692. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a67cd108._.js +0 -51
  693. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ab2bf82d._.js +0 -13
  694. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__abb032c1._.js +0 -34
  695. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b4931ee1._.js +0 -3
  696. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b4d05543._.js +0 -3
  697. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b500f1bf._.js +0 -3
  698. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b707e701._.js +0 -3
  699. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b9e41767._.js +0 -3
  700. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__be4ad4b5._.js +0 -46
  701. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bf5803eb._.js +0 -13
  702. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c99509c2._.js +0 -101
  703. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ccd4846e._.js +0 -13
  704. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d7e839a8._.js +0 -18
  705. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d908c9ea._.js +0 -8
  706. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__da20a0aa._.js +0 -18
  707. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dcdeee3d._.js +0 -3
  708. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e069c0a3._.js +0 -3
  709. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e1e51c02._.js +0 -7
  710. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e3a4fd97._.js +0 -13
  711. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e4a87984._.js +0 -15
  712. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ef82dda1._.js +0 -3
  713. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fa0ebee3._.js +0 -13
  714. package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fee58db1._.js +0 -46
  715. package/cloud-runtime/standalone/.next/server/chunks/_d225c04f._.js +0 -3
  716. package/cloud-runtime/standalone/.next/static/chunks/d73f1cc3ebc9993b.js +0 -1
  717. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +0 -221
  718. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +0 -46
  719. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +0 -1
  720. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  721. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -42
  722. package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +0 -30
  723. package/cloud-runtime/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  724. package/cloud-runtime/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  725. package/cloud-runtime/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -46
  726. package/cloud-runtime/standalone/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  727. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/database.js +0 -90
  728. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/index.js +0 -3
  729. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/aggregate.js +0 -43
  730. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/backup.js +0 -67
  731. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/function.js +0 -31
  732. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/inspect.js +0 -7
  733. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/pragma.js +0 -12
  734. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/serialize.js +0 -16
  735. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/table.js +0 -189
  736. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/transaction.js +0 -78
  737. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/wrappers.js +0 -54
  738. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/sqlite-error.js +0 -20
  739. package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/util.js +0 -12
  740. package/cloud-runtime/standalone/node_modules/better-sqlite3/package.json +0 -59
  741. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/build/Release/better_sqlite3.node +0 -0
  742. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/database.js +0 -90
  743. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/index.js +0 -3
  744. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/aggregate.js +0 -43
  745. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/backup.js +0 -67
  746. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/function.js +0 -31
  747. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/inspect.js +0 -7
  748. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/pragma.js +0 -12
  749. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/serialize.js +0 -16
  750. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/table.js +0 -189
  751. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/transaction.js +0 -78
  752. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/wrappers.js +0 -54
  753. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/sqlite-error.js +0 -20
  754. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/util.js +0 -12
  755. package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/package.json +0 -59
  756. package/cloud-runtime/standalone/node_modules/bindings/bindings.js +0 -221
  757. package/cloud-runtime/standalone/node_modules/bindings/package.json +0 -28
  758. package/cloud-runtime/standalone/node_modules/file-uri-to-path/index.js +0 -66
  759. package/cloud-runtime/standalone/node_modules/file-uri-to-path/package.json +0 -32
  760. package/cloud-runtime/standalone/scripts/fix-turbopack-externals.mjs +0 -87
  761. /package/cloud-runtime/standalone/.next/static/{15nzSRnot8KsYYP8yMBe- → 9PXl40CrFxI8nirdJ1A-T}/_buildManifest.js +0 -0
  762. /package/cloud-runtime/standalone/.next/static/{15nzSRnot8KsYYP8yMBe- → 9PXl40CrFxI8nirdJ1A-T}/_clientMiddlewareManifest.json +0 -0
  763. /package/cloud-runtime/standalone/.next/static/{15nzSRnot8KsYYP8yMBe- → 9PXl40CrFxI8nirdJ1A-T}/_ssgManifest.js +0 -0
  764. /package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/lib/index.js +0 -0
  765. /package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/versions.json +0 -0
@@ -8,9 +8,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __esm = (fn, res) => function __init() {
9
9
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
10
  };
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
14
11
  var __export = (target, all) => {
15
12
  for (var name in all)
16
13
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -33,775 +30,46 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
30
  ));
34
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
32
 
36
- // ../agx-cloud/node_modules/better-sqlite3/lib/util.js
37
- var require_util = __commonJS({
38
- "../agx-cloud/node_modules/better-sqlite3/lib/util.js"(exports2) {
39
- "use strict";
40
- exports2.getBooleanOption = (options, key) => {
41
- let value = false;
42
- if (key in options && typeof (value = options[key]) !== "boolean") {
43
- throw new TypeError(`Expected the "${key}" option to be a boolean`);
44
- }
45
- return value;
46
- };
47
- exports2.cppdb = Symbol();
48
- exports2.inspect = Symbol.for("nodejs.util.inspect.custom");
49
- }
50
- });
51
-
52
- // ../agx-cloud/node_modules/better-sqlite3/lib/sqlite-error.js
53
- var require_sqlite_error = __commonJS({
54
- "../agx-cloud/node_modules/better-sqlite3/lib/sqlite-error.js"(exports2, module2) {
55
- "use strict";
56
- var descriptor = { value: "SqliteError", writable: true, enumerable: false, configurable: true };
57
- function SqliteError(message, code) {
58
- if (new.target !== SqliteError) {
59
- return new SqliteError(message, code);
60
- }
61
- if (typeof code !== "string") {
62
- throw new TypeError("Expected second argument to be a string");
63
- }
64
- Error.call(this, message);
65
- descriptor.value = "" + message;
66
- Object.defineProperty(this, "message", descriptor);
67
- Error.captureStackTrace(this, SqliteError);
68
- this.code = code;
69
- }
70
- Object.setPrototypeOf(SqliteError, Error);
71
- Object.setPrototypeOf(SqliteError.prototype, Error.prototype);
72
- Object.defineProperty(SqliteError.prototype, "name", descriptor);
73
- module2.exports = SqliteError;
74
- }
75
- });
76
-
77
- // ../agx-cloud/node_modules/file-uri-to-path/index.js
78
- var require_file_uri_to_path = __commonJS({
79
- "../agx-cloud/node_modules/file-uri-to-path/index.js"(exports2, module2) {
80
- var sep = require("path").sep || "/";
81
- module2.exports = fileUriToPath;
82
- function fileUriToPath(uri) {
83
- if ("string" != typeof uri || uri.length <= 7 || "file://" != uri.substring(0, 7)) {
84
- throw new TypeError("must pass in a file:// URI to convert to a file path");
85
- }
86
- var rest = decodeURI(uri.substring(7));
87
- var firstSlash = rest.indexOf("/");
88
- var host = rest.substring(0, firstSlash);
89
- var path11 = rest.substring(firstSlash + 1);
90
- if ("localhost" == host) host = "";
91
- if (host) {
92
- host = sep + sep + host;
93
- }
94
- path11 = path11.replace(/^(.+)\|/, "$1:");
95
- if (sep == "\\") {
96
- path11 = path11.replace(/\//g, "\\");
97
- }
98
- if (/^.+\:/.test(path11)) {
99
- } else {
100
- path11 = sep + path11;
101
- }
102
- return host + path11;
103
- }
33
+ // ../agx-cloud/lib/sqlite-compat.ts
34
+ function pragmaGet(db2, key) {
35
+ const row = db2.prepare(`PRAGMA ${key}`).get();
36
+ if (!row) return void 0;
37
+ const values = Object.values(row);
38
+ return values.length > 0 ? values[0] : void 0;
39
+ }
40
+ function pragmaAll(db2, key) {
41
+ return db2.prepare(`PRAGMA ${key}`).all();
42
+ }
43
+ function pragmaSet(db2, pragma) {
44
+ db2.exec(`PRAGMA ${pragma}`);
45
+ }
46
+ function transaction(db2, fn) {
47
+ db2.exec("BEGIN");
48
+ try {
49
+ const result = fn();
50
+ db2.exec("COMMIT");
51
+ return result;
52
+ } catch (err) {
53
+ db2.exec("ROLLBACK");
54
+ throw err;
104
55
  }
105
- });
106
-
107
- // ../agx-cloud/node_modules/bindings/bindings.js
108
- var require_bindings = __commonJS({
109
- "../agx-cloud/node_modules/bindings/bindings.js"(exports2, module2) {
110
- var fs8 = require("fs");
111
- var path11 = require("path");
112
- var fileURLToPath = require_file_uri_to_path();
113
- var join6 = path11.join;
114
- var dirname = path11.dirname;
115
- var exists = fs8.accessSync && function(path12) {
116
- try {
117
- fs8.accessSync(path12);
118
- } catch (e) {
119
- return false;
120
- }
121
- return true;
122
- } || fs8.existsSync || path11.existsSync;
123
- var defaults = {
124
- arrow: process.env.NODE_BINDINGS_ARROW || " \u2192 ",
125
- compiled: process.env.NODE_BINDINGS_COMPILED_DIR || "compiled",
126
- platform: process.platform,
127
- arch: process.arch,
128
- nodePreGyp: "node-v" + process.versions.modules + "-" + process.platform + "-" + process.arch,
129
- version: process.versions.node,
130
- bindings: "bindings.node",
131
- try: [
132
- // node-gyp's linked version in the "build" dir
133
- ["module_root", "build", "bindings"],
134
- // node-waf and gyp_addon (a.k.a node-gyp)
135
- ["module_root", "build", "Debug", "bindings"],
136
- ["module_root", "build", "Release", "bindings"],
137
- // Debug files, for development (legacy behavior, remove for node v0.9)
138
- ["module_root", "out", "Debug", "bindings"],
139
- ["module_root", "Debug", "bindings"],
140
- // Release files, but manually compiled (legacy behavior, remove for node v0.9)
141
- ["module_root", "out", "Release", "bindings"],
142
- ["module_root", "Release", "bindings"],
143
- // Legacy from node-waf, node <= 0.4.x
144
- ["module_root", "build", "default", "bindings"],
145
- // Production "Release" buildtype binary (meh...)
146
- ["module_root", "compiled", "version", "platform", "arch", "bindings"],
147
- // node-qbs builds
148
- ["module_root", "addon-build", "release", "install-root", "bindings"],
149
- ["module_root", "addon-build", "debug", "install-root", "bindings"],
150
- ["module_root", "addon-build", "default", "install-root", "bindings"],
151
- // node-pre-gyp path ./lib/binding/{node_abi}-{platform}-{arch}
152
- ["module_root", "lib", "binding", "nodePreGyp", "bindings"]
153
- ]
154
- };
155
- function bindings(opts) {
156
- if (typeof opts == "string") {
157
- opts = { bindings: opts };
158
- } else if (!opts) {
159
- opts = {};
160
- }
161
- Object.keys(defaults).map(function(i2) {
162
- if (!(i2 in opts)) opts[i2] = defaults[i2];
163
- });
164
- if (!opts.module_root) {
165
- opts.module_root = exports2.getRoot(exports2.getFileName());
166
- }
167
- if (path11.extname(opts.bindings) != ".node") {
168
- opts.bindings += ".node";
169
- }
170
- var requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : require;
171
- var tries = [], i = 0, l = opts.try.length, n, b, err;
172
- for (; i < l; i++) {
173
- n = join6.apply(
174
- null,
175
- opts.try[i].map(function(p) {
176
- return opts[p] || p;
177
- })
178
- );
179
- tries.push(n);
180
- try {
181
- b = opts.path ? requireFunc.resolve(n) : requireFunc(n);
182
- if (!opts.path) {
183
- b.path = n;
184
- }
185
- return b;
186
- } catch (e) {
187
- if (e.code !== "MODULE_NOT_FOUND" && e.code !== "QUALIFIED_PATH_RESOLUTION_FAILED" && !/not find/i.test(e.message)) {
188
- throw e;
189
- }
190
- }
191
- }
192
- err = new Error(
193
- "Could not locate the bindings file. Tried:\n" + tries.map(function(a) {
194
- return opts.arrow + a;
195
- }).join("\n")
196
- );
197
- err.tries = tries;
56
+ }
57
+ function transactionFn(db2, fn) {
58
+ return (...args) => {
59
+ db2.exec("BEGIN");
60
+ try {
61
+ const result = fn(...args);
62
+ db2.exec("COMMIT");
63
+ return result;
64
+ } catch (err) {
65
+ db2.exec("ROLLBACK");
198
66
  throw err;
199
67
  }
200
- module2.exports = exports2 = bindings;
201
- exports2.getFileName = function getFileName(calling_file) {
202
- var origPST = Error.prepareStackTrace, origSTL = Error.stackTraceLimit, dummy = {}, fileName;
203
- Error.stackTraceLimit = 10;
204
- Error.prepareStackTrace = function(e, st) {
205
- for (var i = 0, l = st.length; i < l; i++) {
206
- fileName = st[i].getFileName();
207
- if (fileName !== __filename) {
208
- if (calling_file) {
209
- if (fileName !== calling_file) {
210
- return;
211
- }
212
- } else {
213
- return;
214
- }
215
- }
216
- }
217
- };
218
- Error.captureStackTrace(dummy);
219
- dummy.stack;
220
- Error.prepareStackTrace = origPST;
221
- Error.stackTraceLimit = origSTL;
222
- var fileSchema = "file://";
223
- if (fileName.indexOf(fileSchema) === 0) {
224
- fileName = fileURLToPath(fileName);
225
- }
226
- return fileName;
227
- };
228
- exports2.getRoot = function getRoot(file) {
229
- var dir = dirname(file), prev;
230
- while (true) {
231
- if (dir === ".") {
232
- dir = process.cwd();
233
- }
234
- if (exists(join6(dir, "package.json")) || exists(join6(dir, "node_modules"))) {
235
- return dir;
236
- }
237
- if (prev === dir) {
238
- throw new Error(
239
- 'Could not find module root given file: "' + file + '". Do you have a `package.json` file? '
240
- );
241
- }
242
- prev = dir;
243
- dir = join6(dir, "..");
244
- }
245
- };
246
- }
247
- });
248
-
249
- // ../agx-cloud/node_modules/better-sqlite3/lib/methods/wrappers.js
250
- var require_wrappers = __commonJS({
251
- "../agx-cloud/node_modules/better-sqlite3/lib/methods/wrappers.js"(exports2) {
252
- "use strict";
253
- var { cppdb } = require_util();
254
- exports2.prepare = function prepare(sql) {
255
- return this[cppdb].prepare(sql, this, false);
256
- };
257
- exports2.exec = function exec(sql) {
258
- this[cppdb].exec(sql);
259
- return this;
260
- };
261
- exports2.close = function close() {
262
- this[cppdb].close();
263
- return this;
264
- };
265
- exports2.loadExtension = function loadExtension(...args) {
266
- this[cppdb].loadExtension(...args);
267
- return this;
268
- };
269
- exports2.defaultSafeIntegers = function defaultSafeIntegers(...args) {
270
- this[cppdb].defaultSafeIntegers(...args);
271
- return this;
272
- };
273
- exports2.unsafeMode = function unsafeMode(...args) {
274
- this[cppdb].unsafeMode(...args);
275
- return this;
276
- };
277
- exports2.getters = {
278
- name: {
279
- get: function name() {
280
- return this[cppdb].name;
281
- },
282
- enumerable: true
283
- },
284
- open: {
285
- get: function open() {
286
- return this[cppdb].open;
287
- },
288
- enumerable: true
289
- },
290
- inTransaction: {
291
- get: function inTransaction() {
292
- return this[cppdb].inTransaction;
293
- },
294
- enumerable: true
295
- },
296
- readonly: {
297
- get: function readonly() {
298
- return this[cppdb].readonly;
299
- },
300
- enumerable: true
301
- },
302
- memory: {
303
- get: function memory() {
304
- return this[cppdb].memory;
305
- },
306
- enumerable: true
307
- }
308
- };
309
- }
310
- });
311
-
312
- // ../agx-cloud/node_modules/better-sqlite3/lib/methods/transaction.js
313
- var require_transaction = __commonJS({
314
- "../agx-cloud/node_modules/better-sqlite3/lib/methods/transaction.js"(exports2, module2) {
315
- "use strict";
316
- var { cppdb } = require_util();
317
- var controllers = /* @__PURE__ */ new WeakMap();
318
- module2.exports = function transaction(fn) {
319
- if (typeof fn !== "function") throw new TypeError("Expected first argument to be a function");
320
- const db2 = this[cppdb];
321
- const controller = getController(db2, this);
322
- const { apply } = Function.prototype;
323
- const properties = {
324
- default: { value: wrapTransaction(apply, fn, db2, controller.default) },
325
- deferred: { value: wrapTransaction(apply, fn, db2, controller.deferred) },
326
- immediate: { value: wrapTransaction(apply, fn, db2, controller.immediate) },
327
- exclusive: { value: wrapTransaction(apply, fn, db2, controller.exclusive) },
328
- database: { value: this, enumerable: true }
329
- };
330
- Object.defineProperties(properties.default.value, properties);
331
- Object.defineProperties(properties.deferred.value, properties);
332
- Object.defineProperties(properties.immediate.value, properties);
333
- Object.defineProperties(properties.exclusive.value, properties);
334
- return properties.default.value;
335
- };
336
- var getController = (db2, self) => {
337
- let controller = controllers.get(db2);
338
- if (!controller) {
339
- const shared = {
340
- commit: db2.prepare("COMMIT", self, false),
341
- rollback: db2.prepare("ROLLBACK", self, false),
342
- savepoint: db2.prepare("SAVEPOINT ` _bs3. `", self, false),
343
- release: db2.prepare("RELEASE ` _bs3. `", self, false),
344
- rollbackTo: db2.prepare("ROLLBACK TO ` _bs3. `", self, false)
345
- };
346
- controllers.set(db2, controller = {
347
- default: Object.assign({ begin: db2.prepare("BEGIN", self, false) }, shared),
348
- deferred: Object.assign({ begin: db2.prepare("BEGIN DEFERRED", self, false) }, shared),
349
- immediate: Object.assign({ begin: db2.prepare("BEGIN IMMEDIATE", self, false) }, shared),
350
- exclusive: Object.assign({ begin: db2.prepare("BEGIN EXCLUSIVE", self, false) }, shared)
351
- });
352
- }
353
- return controller;
354
- };
355
- var wrapTransaction = (apply, fn, db2, { begin, commit, rollback, savepoint, release, rollbackTo }) => function sqliteTransaction() {
356
- let before, after, undo;
357
- if (db2.inTransaction) {
358
- before = savepoint;
359
- after = release;
360
- undo = rollbackTo;
361
- } else {
362
- before = begin;
363
- after = commit;
364
- undo = rollback;
365
- }
366
- before.run();
367
- try {
368
- const result = apply.call(fn, this, arguments);
369
- if (result && typeof result.then === "function") {
370
- throw new TypeError("Transaction function cannot return a promise");
371
- }
372
- after.run();
373
- return result;
374
- } catch (ex) {
375
- if (db2.inTransaction) {
376
- undo.run();
377
- if (undo !== rollback) after.run();
378
- }
379
- throw ex;
380
- }
381
- };
382
- }
383
- });
384
-
385
- // ../agx-cloud/node_modules/better-sqlite3/lib/methods/pragma.js
386
- var require_pragma = __commonJS({
387
- "../agx-cloud/node_modules/better-sqlite3/lib/methods/pragma.js"(exports2, module2) {
388
- "use strict";
389
- var { getBooleanOption, cppdb } = require_util();
390
- module2.exports = function pragma(source, options) {
391
- if (options == null) options = {};
392
- if (typeof source !== "string") throw new TypeError("Expected first argument to be a string");
393
- if (typeof options !== "object") throw new TypeError("Expected second argument to be an options object");
394
- const simple = getBooleanOption(options, "simple");
395
- const stmt = this[cppdb].prepare(`PRAGMA ${source}`, this, true);
396
- return simple ? stmt.pluck().get() : stmt.all();
397
- };
398
- }
399
- });
400
-
401
- // ../agx-cloud/node_modules/better-sqlite3/lib/methods/backup.js
402
- var require_backup = __commonJS({
403
- "../agx-cloud/node_modules/better-sqlite3/lib/methods/backup.js"(exports2, module2) {
404
- "use strict";
405
- var fs8 = require("fs");
406
- var path11 = require("path");
407
- var { promisify } = require("util");
408
- var { cppdb } = require_util();
409
- var fsAccess = promisify(fs8.access);
410
- module2.exports = async function backup(filename, options) {
411
- if (options == null) options = {};
412
- if (typeof filename !== "string") throw new TypeError("Expected first argument to be a string");
413
- if (typeof options !== "object") throw new TypeError("Expected second argument to be an options object");
414
- filename = filename.trim();
415
- const attachedName = "attached" in options ? options.attached : "main";
416
- const handler = "progress" in options ? options.progress : null;
417
- if (!filename) throw new TypeError("Backup filename cannot be an empty string");
418
- if (filename === ":memory:") throw new TypeError('Invalid backup filename ":memory:"');
419
- if (typeof attachedName !== "string") throw new TypeError('Expected the "attached" option to be a string');
420
- if (!attachedName) throw new TypeError('The "attached" option cannot be an empty string');
421
- if (handler != null && typeof handler !== "function") throw new TypeError('Expected the "progress" option to be a function');
422
- await fsAccess(path11.dirname(filename)).catch(() => {
423
- throw new TypeError("Cannot save backup because the directory does not exist");
424
- });
425
- const isNewFile = await fsAccess(filename).then(() => false, () => true);
426
- return runBackup(this[cppdb].backup(this, attachedName, filename, isNewFile), handler || null);
427
- };
428
- var runBackup = (backup, handler) => {
429
- let rate = 0;
430
- let useDefault = true;
431
- return new Promise((resolve, reject) => {
432
- setImmediate(function step() {
433
- try {
434
- const progress = backup.transfer(rate);
435
- if (!progress.remainingPages) {
436
- backup.close();
437
- resolve(progress);
438
- return;
439
- }
440
- if (useDefault) {
441
- useDefault = false;
442
- rate = 100;
443
- }
444
- if (handler) {
445
- const ret = handler(progress);
446
- if (ret !== void 0) {
447
- if (typeof ret === "number" && ret === ret) rate = Math.max(0, Math.min(2147483647, Math.round(ret)));
448
- else throw new TypeError("Expected progress callback to return a number or undefined");
449
- }
450
- }
451
- setImmediate(step);
452
- } catch (err) {
453
- backup.close();
454
- reject(err);
455
- }
456
- });
457
- });
458
- };
459
- }
460
- });
461
-
462
- // ../agx-cloud/node_modules/better-sqlite3/lib/methods/serialize.js
463
- var require_serialize = __commonJS({
464
- "../agx-cloud/node_modules/better-sqlite3/lib/methods/serialize.js"(exports2, module2) {
465
- "use strict";
466
- var { cppdb } = require_util();
467
- module2.exports = function serialize(options) {
468
- if (options == null) options = {};
469
- if (typeof options !== "object") throw new TypeError("Expected first argument to be an options object");
470
- const attachedName = "attached" in options ? options.attached : "main";
471
- if (typeof attachedName !== "string") throw new TypeError('Expected the "attached" option to be a string');
472
- if (!attachedName) throw new TypeError('The "attached" option cannot be an empty string');
473
- return this[cppdb].serialize(attachedName);
474
- };
475
- }
476
- });
477
-
478
- // ../agx-cloud/node_modules/better-sqlite3/lib/methods/function.js
479
- var require_function = __commonJS({
480
- "../agx-cloud/node_modules/better-sqlite3/lib/methods/function.js"(exports2, module2) {
481
- "use strict";
482
- var { getBooleanOption, cppdb } = require_util();
483
- module2.exports = function defineFunction(name, options, fn) {
484
- if (options == null) options = {};
485
- if (typeof options === "function") {
486
- fn = options;
487
- options = {};
488
- }
489
- if (typeof name !== "string") throw new TypeError("Expected first argument to be a string");
490
- if (typeof fn !== "function") throw new TypeError("Expected last argument to be a function");
491
- if (typeof options !== "object") throw new TypeError("Expected second argument to be an options object");
492
- if (!name) throw new TypeError("User-defined function name cannot be an empty string");
493
- const safeIntegers = "safeIntegers" in options ? +getBooleanOption(options, "safeIntegers") : 2;
494
- const deterministic = getBooleanOption(options, "deterministic");
495
- const directOnly = getBooleanOption(options, "directOnly");
496
- const varargs = getBooleanOption(options, "varargs");
497
- let argCount = -1;
498
- if (!varargs) {
499
- argCount = fn.length;
500
- if (!Number.isInteger(argCount) || argCount < 0) throw new TypeError("Expected function.length to be a positive integer");
501
- if (argCount > 100) throw new RangeError("User-defined functions cannot have more than 100 arguments");
502
- }
503
- this[cppdb].function(fn, name, argCount, safeIntegers, deterministic, directOnly);
504
- return this;
505
- };
506
- }
507
- });
508
-
509
- // ../agx-cloud/node_modules/better-sqlite3/lib/methods/aggregate.js
510
- var require_aggregate = __commonJS({
511
- "../agx-cloud/node_modules/better-sqlite3/lib/methods/aggregate.js"(exports2, module2) {
512
- "use strict";
513
- var { getBooleanOption, cppdb } = require_util();
514
- module2.exports = function defineAggregate(name, options) {
515
- if (typeof name !== "string") throw new TypeError("Expected first argument to be a string");
516
- if (typeof options !== "object" || options === null) throw new TypeError("Expected second argument to be an options object");
517
- if (!name) throw new TypeError("User-defined function name cannot be an empty string");
518
- const start = "start" in options ? options.start : null;
519
- const step = getFunctionOption(options, "step", true);
520
- const inverse = getFunctionOption(options, "inverse", false);
521
- const result = getFunctionOption(options, "result", false);
522
- const safeIntegers = "safeIntegers" in options ? +getBooleanOption(options, "safeIntegers") : 2;
523
- const deterministic = getBooleanOption(options, "deterministic");
524
- const directOnly = getBooleanOption(options, "directOnly");
525
- const varargs = getBooleanOption(options, "varargs");
526
- let argCount = -1;
527
- if (!varargs) {
528
- argCount = Math.max(getLength(step), inverse ? getLength(inverse) : 0);
529
- if (argCount > 0) argCount -= 1;
530
- if (argCount > 100) throw new RangeError("User-defined functions cannot have more than 100 arguments");
531
- }
532
- this[cppdb].aggregate(start, step, inverse, result, name, argCount, safeIntegers, deterministic, directOnly);
533
- return this;
534
- };
535
- var getFunctionOption = (options, key, required) => {
536
- const value = key in options ? options[key] : null;
537
- if (typeof value === "function") return value;
538
- if (value != null) throw new TypeError(`Expected the "${key}" option to be a function`);
539
- if (required) throw new TypeError(`Missing required option "${key}"`);
540
- return null;
541
- };
542
- var getLength = ({ length }) => {
543
- if (Number.isInteger(length) && length >= 0) return length;
544
- throw new TypeError("Expected function.length to be a positive integer");
545
- };
546
- }
547
- });
548
-
549
- // ../agx-cloud/node_modules/better-sqlite3/lib/methods/table.js
550
- var require_table = __commonJS({
551
- "../agx-cloud/node_modules/better-sqlite3/lib/methods/table.js"(exports2, module2) {
552
- "use strict";
553
- var { cppdb } = require_util();
554
- module2.exports = function defineTable(name, factory) {
555
- if (typeof name !== "string") throw new TypeError("Expected first argument to be a string");
556
- if (!name) throw new TypeError("Virtual table module name cannot be an empty string");
557
- let eponymous = false;
558
- if (typeof factory === "object" && factory !== null) {
559
- eponymous = true;
560
- factory = defer(parseTableDefinition(factory, "used", name));
561
- } else {
562
- if (typeof factory !== "function") throw new TypeError("Expected second argument to be a function or a table definition object");
563
- factory = wrapFactory(factory);
564
- }
565
- this[cppdb].table(factory, name, eponymous);
566
- return this;
567
- };
568
- function wrapFactory(factory) {
569
- return function virtualTableFactory(moduleName, databaseName, tableName, ...args) {
570
- const thisObject = {
571
- module: moduleName,
572
- database: databaseName,
573
- table: tableName
574
- };
575
- const def = apply.call(factory, thisObject, args);
576
- if (typeof def !== "object" || def === null) {
577
- throw new TypeError(`Virtual table module "${moduleName}" did not return a table definition object`);
578
- }
579
- return parseTableDefinition(def, "returned", moduleName);
580
- };
581
- }
582
- function parseTableDefinition(def, verb, moduleName) {
583
- if (!hasOwnProperty.call(def, "rows")) {
584
- throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition without a "rows" property`);
585
- }
586
- if (!hasOwnProperty.call(def, "columns")) {
587
- throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition without a "columns" property`);
588
- }
589
- const rows = def.rows;
590
- if (typeof rows !== "function" || Object.getPrototypeOf(rows) !== GeneratorFunctionPrototype) {
591
- throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with an invalid "rows" property (should be a generator function)`);
592
- }
593
- let columns = def.columns;
594
- if (!Array.isArray(columns) || !(columns = [...columns]).every((x) => typeof x === "string")) {
595
- throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with an invalid "columns" property (should be an array of strings)`);
596
- }
597
- if (columns.length !== new Set(columns).size) {
598
- throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with duplicate column names`);
599
- }
600
- if (!columns.length) {
601
- throw new RangeError(`Virtual table module "${moduleName}" ${verb} a table definition with zero columns`);
602
- }
603
- let parameters;
604
- if (hasOwnProperty.call(def, "parameters")) {
605
- parameters = def.parameters;
606
- if (!Array.isArray(parameters) || !(parameters = [...parameters]).every((x) => typeof x === "string")) {
607
- throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with an invalid "parameters" property (should be an array of strings)`);
608
- }
609
- } else {
610
- parameters = inferParameters(rows);
611
- }
612
- if (parameters.length !== new Set(parameters).size) {
613
- throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with duplicate parameter names`);
614
- }
615
- if (parameters.length > 32) {
616
- throw new RangeError(`Virtual table module "${moduleName}" ${verb} a table definition with more than the maximum number of 32 parameters`);
617
- }
618
- for (const parameter of parameters) {
619
- if (columns.includes(parameter)) {
620
- throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with column "${parameter}" which was ambiguously defined as both a column and parameter`);
621
- }
622
- }
623
- let safeIntegers = 2;
624
- if (hasOwnProperty.call(def, "safeIntegers")) {
625
- const bool = def.safeIntegers;
626
- if (typeof bool !== "boolean") {
627
- throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with an invalid "safeIntegers" property (should be a boolean)`);
628
- }
629
- safeIntegers = +bool;
630
- }
631
- let directOnly = false;
632
- if (hasOwnProperty.call(def, "directOnly")) {
633
- directOnly = def.directOnly;
634
- if (typeof directOnly !== "boolean") {
635
- throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with an invalid "directOnly" property (should be a boolean)`);
636
- }
637
- }
638
- const columnDefinitions = [
639
- ...parameters.map(identifier).map((str) => `${str} HIDDEN`),
640
- ...columns.map(identifier)
641
- ];
642
- return [
643
- `CREATE TABLE x(${columnDefinitions.join(", ")});`,
644
- wrapGenerator(rows, new Map(columns.map((x, i) => [x, parameters.length + i])), moduleName),
645
- parameters,
646
- safeIntegers,
647
- directOnly
648
- ];
649
- }
650
- function wrapGenerator(generator, columnMap, moduleName) {
651
- return function* virtualTable(...args) {
652
- const output = args.map((x) => Buffer.isBuffer(x) ? Buffer.from(x) : x);
653
- for (let i = 0; i < columnMap.size; ++i) {
654
- output.push(null);
655
- }
656
- for (const row of generator(...args)) {
657
- if (Array.isArray(row)) {
658
- extractRowArray(row, output, columnMap.size, moduleName);
659
- yield output;
660
- } else if (typeof row === "object" && row !== null) {
661
- extractRowObject(row, output, columnMap, moduleName);
662
- yield output;
663
- } else {
664
- throw new TypeError(`Virtual table module "${moduleName}" yielded something that isn't a valid row object`);
665
- }
666
- }
667
- };
668
- }
669
- function extractRowArray(row, output, columnCount, moduleName) {
670
- if (row.length !== columnCount) {
671
- throw new TypeError(`Virtual table module "${moduleName}" yielded a row with an incorrect number of columns`);
672
- }
673
- const offset = output.length - columnCount;
674
- for (let i = 0; i < columnCount; ++i) {
675
- output[i + offset] = row[i];
676
- }
677
- }
678
- function extractRowObject(row, output, columnMap, moduleName) {
679
- let count = 0;
680
- for (const key of Object.keys(row)) {
681
- const index = columnMap.get(key);
682
- if (index === void 0) {
683
- throw new TypeError(`Virtual table module "${moduleName}" yielded a row with an undeclared column "${key}"`);
684
- }
685
- output[index] = row[key];
686
- count += 1;
687
- }
688
- if (count !== columnMap.size) {
689
- throw new TypeError(`Virtual table module "${moduleName}" yielded a row with missing columns`);
690
- }
691
- }
692
- function inferParameters({ length }) {
693
- if (!Number.isInteger(length) || length < 0) {
694
- throw new TypeError("Expected function.length to be a positive integer");
695
- }
696
- const params = [];
697
- for (let i = 0; i < length; ++i) {
698
- params.push(`$${i + 1}`);
699
- }
700
- return params;
701
- }
702
- var { hasOwnProperty } = Object.prototype;
703
- var { apply } = Function.prototype;
704
- var GeneratorFunctionPrototype = Object.getPrototypeOf(function* () {
705
- });
706
- var identifier = (str) => `"${str.replace(/"/g, '""')}"`;
707
- var defer = (x) => () => x;
708
- }
709
- });
710
-
711
- // ../agx-cloud/node_modules/better-sqlite3/lib/methods/inspect.js
712
- var require_inspect = __commonJS({
713
- "../agx-cloud/node_modules/better-sqlite3/lib/methods/inspect.js"(exports2, module2) {
714
- "use strict";
715
- var DatabaseInspection = function Database7() {
716
- };
717
- module2.exports = function inspect(depth, opts) {
718
- return Object.assign(new DatabaseInspection(), this);
719
- };
720
- }
721
- });
722
-
723
- // ../agx-cloud/node_modules/better-sqlite3/lib/database.js
724
- var require_database = __commonJS({
725
- "../agx-cloud/node_modules/better-sqlite3/lib/database.js"(exports2, module2) {
726
- "use strict";
727
- var fs8 = require("fs");
728
- var path11 = require("path");
729
- var util = require_util();
730
- var SqliteError = require_sqlite_error();
731
- var DEFAULT_ADDON;
732
- function Database7(filenameGiven, options) {
733
- if (new.target == null) {
734
- return new Database7(filenameGiven, options);
735
- }
736
- let buffer;
737
- if (Buffer.isBuffer(filenameGiven)) {
738
- buffer = filenameGiven;
739
- filenameGiven = ":memory:";
740
- }
741
- if (filenameGiven == null) filenameGiven = "";
742
- if (options == null) options = {};
743
- if (typeof filenameGiven !== "string") throw new TypeError("Expected first argument to be a string");
744
- if (typeof options !== "object") throw new TypeError("Expected second argument to be an options object");
745
- if ("readOnly" in options) throw new TypeError('Misspelled option "readOnly" should be "readonly"');
746
- if ("memory" in options) throw new TypeError('Option "memory" was removed in v7.0.0 (use ":memory:" filename instead)');
747
- const filename = filenameGiven.trim();
748
- const anonymous = filename === "" || filename === ":memory:";
749
- const readonly = util.getBooleanOption(options, "readonly");
750
- const fileMustExist = util.getBooleanOption(options, "fileMustExist");
751
- const timeout = "timeout" in options ? options.timeout : 5e3;
752
- const verbose = "verbose" in options ? options.verbose : null;
753
- const nativeBinding = "nativeBinding" in options ? options.nativeBinding : null;
754
- if (readonly && anonymous && !buffer) throw new TypeError("In-memory/temporary databases cannot be readonly");
755
- if (!Number.isInteger(timeout) || timeout < 0) throw new TypeError('Expected the "timeout" option to be a positive integer');
756
- if (timeout > 2147483647) throw new RangeError('Option "timeout" cannot be greater than 2147483647');
757
- if (verbose != null && typeof verbose !== "function") throw new TypeError('Expected the "verbose" option to be a function');
758
- if (nativeBinding != null && typeof nativeBinding !== "string" && typeof nativeBinding !== "object") throw new TypeError('Expected the "nativeBinding" option to be a string or addon object');
759
- let addon;
760
- if (nativeBinding == null) {
761
- addon = DEFAULT_ADDON || (DEFAULT_ADDON = require_bindings()("better_sqlite3.node"));
762
- } else if (typeof nativeBinding === "string") {
763
- const requireFunc = typeof __non_webpack_require__ === "function" ? __non_webpack_require__ : require;
764
- addon = requireFunc(path11.resolve(nativeBinding).replace(/(\.node)?$/, ".node"));
765
- } else {
766
- addon = nativeBinding;
767
- }
768
- if (!addon.isInitialized) {
769
- addon.setErrorConstructor(SqliteError);
770
- addon.isInitialized = true;
771
- }
772
- if (!anonymous && !filename.startsWith("file:") && !fs8.existsSync(path11.dirname(filename))) {
773
- throw new TypeError("Cannot open database because the directory does not exist");
774
- }
775
- Object.defineProperties(this, {
776
- [util.cppdb]: { value: new addon.Database(filename, filenameGiven, anonymous, readonly, fileMustExist, timeout, verbose || null, buffer || null) },
777
- ...wrappers.getters
778
- });
779
- }
780
- var wrappers = require_wrappers();
781
- Database7.prototype.prepare = wrappers.prepare;
782
- Database7.prototype.transaction = require_transaction();
783
- Database7.prototype.pragma = require_pragma();
784
- Database7.prototype.backup = require_backup();
785
- Database7.prototype.serialize = require_serialize();
786
- Database7.prototype.function = require_function();
787
- Database7.prototype.aggregate = require_aggregate();
788
- Database7.prototype.table = require_table();
789
- Database7.prototype.loadExtension = wrappers.loadExtension;
790
- Database7.prototype.exec = wrappers.exec;
791
- Database7.prototype.close = wrappers.close;
792
- Database7.prototype.defaultSafeIntegers = wrappers.defaultSafeIntegers;
793
- Database7.prototype.unsafeMode = wrappers.unsafeMode;
794
- Database7.prototype[util.inspect] = require_inspect();
795
- module2.exports = Database7;
796
- }
797
- });
798
-
799
- // ../agx-cloud/node_modules/better-sqlite3/lib/index.js
800
- var require_lib = __commonJS({
801
- "../agx-cloud/node_modules/better-sqlite3/lib/index.js"(exports2, module2) {
68
+ };
69
+ }
70
+ var init_sqlite_compat = __esm({
71
+ "../agx-cloud/lib/sqlite-compat.ts"() {
802
72
  "use strict";
803
- module2.exports = require_database();
804
- module2.exports.SqliteError = require_sqlite_error();
805
73
  }
806
74
  });
807
75
 
@@ -875,7 +143,7 @@ function validateSQLiteEnvironment(db2, dbPath) {
875
143
  message: `SQLite version ${version.v} is below minimum ${MIN_SQLITE_VERSION}`,
876
144
  found: version.v,
877
145
  required: `>= ${MIN_SQLITE_VERSION}`,
878
- fix: import_os.default.platform() === "darwin" ? "brew install sqlite3 && npm rebuild better-sqlite3" : "apt-get install -y libsqlite3-dev && npm rebuild better-sqlite3"
146
+ fix: "Ensure Node.js >= 22.16 is installed (node:sqlite is built-in)"
879
147
  });
880
148
  }
881
149
  for (const ext of REQUIRED_EXTENSIONS) {
@@ -907,16 +175,16 @@ function validateSQLiteEnvironment(db2, dbPath) {
907
175
  }
908
176
  }
909
177
  try {
910
- db2.pragma(`journal_mode = ${REQUIRED_PRAGMAS.journal_mode}`);
911
- db2.pragma(`foreign_keys = ${REQUIRED_PRAGMAS.foreign_keys}`);
912
- db2.pragma(`busy_timeout = ${REQUIRED_PRAGMAS.busy_timeout}`);
913
- db2.pragma(`synchronous = ${REQUIRED_PRAGMAS.synchronous}`);
914
- db2.pragma(`cache_size = ${REQUIRED_PRAGMAS.cache_size}`);
915
- const jm = db2.pragma("journal_mode", { simple: true }).toLowerCase();
178
+ pragmaSet(db2, `journal_mode = ${REQUIRED_PRAGMAS.journal_mode}`);
179
+ pragmaSet(db2, `foreign_keys = ${REQUIRED_PRAGMAS.foreign_keys}`);
180
+ pragmaSet(db2, `busy_timeout = ${REQUIRED_PRAGMAS.busy_timeout}`);
181
+ pragmaSet(db2, `synchronous = ${REQUIRED_PRAGMAS.synchronous}`);
182
+ pragmaSet(db2, `cache_size = ${REQUIRED_PRAGMAS.cache_size}`);
183
+ const jm = pragmaGet(db2, "journal_mode").toLowerCase();
916
184
  const ACCEPTABLE_JOURNAL_MODES = /* @__PURE__ */ new Set(["wal", "delete"]);
917
185
  if (!ACCEPTABLE_JOURNAL_MODES.has(jm)) {
918
- db2.pragma("journal_mode = DELETE");
919
- const jm2 = db2.pragma("journal_mode", { simple: true }).toLowerCase();
186
+ pragmaSet(db2, "journal_mode = DELETE");
187
+ const jm2 = pragmaGet(db2, "journal_mode").toLowerCase();
920
188
  if (!ACCEPTABLE_JOURNAL_MODES.has(jm2)) {
921
189
  errors.push({
922
190
  kind: "pragma_error",
@@ -926,7 +194,7 @@ function validateSQLiteEnvironment(db2, dbPath) {
926
194
  fix: "Ensure the database file is on a local filesystem and no other process holds an exclusive lock."
927
195
  });
928
196
  } else {
929
- db2.pragma("synchronous = FULL");
197
+ pragmaSet(db2, "synchronous = FULL");
930
198
  console.warn(`[startup] WAL unavailable, using journal_mode=${jm2} with synchronous=FULL`);
931
199
  }
932
200
  }
@@ -939,10 +207,12 @@ function validateSQLiteEnvironment(db2, dbPath) {
939
207
  }
940
208
  return errors;
941
209
  }
942
- var import_fs, import_os, import_path, MIN_SQLITE_VERSION, REQUIRED_PRAGMAS, REQUIRED_EXTENSIONS, RECOMMENDED_EXTENSIONS, BANNED_FS_PREFIXES;
210
+ var import_node_sqlite, import_fs, import_os, import_path, MIN_SQLITE_VERSION, REQUIRED_PRAGMAS, REQUIRED_EXTENSIONS, RECOMMENDED_EXTENSIONS, BANNED_FS_PREFIXES;
943
211
  var init_startup = __esm({
944
212
  "../agx-cloud/lib/startup.ts"() {
945
213
  "use strict";
214
+ import_node_sqlite = require("node:sqlite");
215
+ init_sqlite_compat();
946
216
  import_fs = __toESM(require("fs"));
947
217
  import_os = __toESM(require("os"));
948
218
  import_path = __toESM(require("path"));
@@ -1405,7 +675,7 @@ function migrateLegacyParticipantIds(db2) {
1405
675
  const tableNames = new Set(
1406
676
  db2.prepare("SELECT name FROM sqlite_master WHERE type = 'table'").all().map((row) => row.name)
1407
677
  );
1408
- const migrateTxn = db2.transaction((participantOps, referenceOps) => {
678
+ const migrateTxn = transactionFn(db2, (participantOps, referenceOps) => {
1409
679
  const updateParticipant = db2.prepare("UPDATE participants SET id = ? WHERE id = ?");
1410
680
  const updateMessages = tableNames.has("messages") ? db2.prepare("UPDATE messages SET participant_id = ? WHERE participant_id = ?") : null;
1411
681
  const updateAgentProcesses = tableNames.has("agent_processes") ? db2.prepare("UPDATE agent_processes SET agent_id = ? WHERE agent_id = ?") : null;
@@ -1429,8 +699,8 @@ function migrateLegacyParticipantIds(db2) {
1429
699
  }
1430
700
  function getDb() {
1431
701
  (0, import_fs8.mkdirSync)(STORE_DIR, { recursive: true });
1432
- const db2 = new import_better_sqlite32.default(DB_PATH);
1433
- db2.pragma("journal_mode = WAL");
702
+ const db2 = new import_node_sqlite3.DatabaseSync(DB_PATH);
703
+ pragmaSet(db2, "journal_mode = WAL");
1434
704
  db2.exec(`
1435
705
  CREATE TABLE IF NOT EXISTS participants (
1436
706
  id TEXT PRIMARY KEY,
@@ -1444,7 +714,7 @@ function getDb() {
1444
714
  sort_order INTEGER NOT NULL DEFAULT 0
1445
715
  );
1446
716
  `);
1447
- const columns = db2.prepare("PRAGMA table_info(participants)").all();
717
+ const columns = pragmaAll(db2, "table_info(participants)");
1448
718
  if (columns.some((column) => column.name === "persona")) {
1449
719
  db2.exec("ALTER TABLE participants RENAME COLUMN persona TO identity");
1450
720
  db2.exec("ALTER TABLE participants RENAME COLUMN persona_file TO identity_file");
@@ -1506,11 +776,12 @@ function loadParticipants() {
1506
776
  db2.close();
1507
777
  }
1508
778
  }
1509
- var import_better_sqlite32, import_fs8, import_path8, import_os8, STORE_DIR, DB_PATH, AGENTS_DIR5;
779
+ var import_node_sqlite3, import_fs8, import_path8, import_os8, STORE_DIR, DB_PATH, AGENTS_DIR5;
1510
780
  var init_participants_store = __esm({
1511
781
  "../agx-cloud/lib/participants-store.ts"() {
1512
782
  "use strict";
1513
- import_better_sqlite32 = __toESM(require_lib());
783
+ import_node_sqlite3 = require("node:sqlite");
784
+ init_sqlite_compat();
1514
785
  import_fs8 = require("fs");
1515
786
  import_path8 = __toESM(require("path"));
1516
787
  import_os8 = __toESM(require("os"));
@@ -1699,7 +970,7 @@ function migrateLegacyWorkspacesToProjects(inputDb) {
1699
970
  list.push(row.thread_id);
1700
971
  workspacesByTeam.set(row.team_id, list);
1701
972
  }
1702
- const migrateTxn = db2.transaction(() => {
973
+ const migrateTxn = () => transaction(db2, () => {
1703
974
  for (const [userId, userTeams] of teamsByUser.entries()) {
1704
975
  result.usersProcessed++;
1705
976
  const effectiveUserId = userId || LOCAL_USER.id;
@@ -1750,7 +1021,7 @@ function migrateLegacyWorkspacesToProjects(inputDb) {
1750
1021
  for (const [projectId, threadIds] of intendedThreadsByProject.entries()) {
1751
1022
  for (const threadId of threadIds) {
1752
1023
  const removed = deleteThreadLinksElsewhere.run(threadId, projectId);
1753
- result.remappedThreadLinks += removed.changes;
1024
+ result.remappedThreadLinks += Number(removed.changes);
1754
1025
  const linked = insertProjectThread.run(projectId, threadId);
1755
1026
  if (linked.changes > 0) result.projectThreadsLinked++;
1756
1027
  }
@@ -1791,6 +1062,7 @@ var WORKSPACES_TO_PROJECTS_MIGRATION_KEY;
1791
1062
  var init_workspaces_to_projects_migration = __esm({
1792
1063
  "../agx-cloud/lib/workspaces-to-projects-migration.ts"() {
1793
1064
  "use strict";
1065
+ init_sqlite_compat();
1794
1066
  init_participants_store();
1795
1067
  init_auth_mode();
1796
1068
  WORKSPACES_TO_PROJECTS_MIGRATION_KEY = "legacy_workspaces_to_projects_v1";
@@ -1811,7 +1083,7 @@ function sqlExpr(expr) {
1811
1083
  function getSQLiteDb() {
1812
1084
  if (_db) return _db;
1813
1085
  const dbPath = process.env.SQLITE_DB_PATH || import_path9.default.join(AGX_DATA_DIR3, "agx-board.db");
1814
- _db = new import_better_sqlite33.default(dbPath);
1086
+ _db = new import_node_sqlite4.DatabaseSync(dbPath);
1815
1087
  const errors = validateSQLiteEnvironment(_db, dbPath);
1816
1088
  if (errors.length > 0) {
1817
1089
  const msgs = errors.map((e) => ` - ${e.message}${e.fix ? ` (fix: ${e.fix})` : ""}`);
@@ -1861,14 +1133,14 @@ function dropLegacyTeamsTables(db2) {
1861
1133
  function runMigrations(db2) {
1862
1134
  const graphTables = db2.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='execution_graphs'").all();
1863
1135
  if (graphTables.length > 0) {
1864
- const columns = db2.pragma("table_info(execution_graphs)");
1136
+ const columns = pragmaAll(db2, "table_info(execution_graphs)");
1865
1137
  if (!columns.some((column) => column.name === "schedule")) {
1866
1138
  db2.exec("ALTER TABLE execution_graphs ADD COLUMN schedule JSON");
1867
1139
  }
1868
1140
  }
1869
1141
  const projectMemoryTables = db2.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='project_memory'").all();
1870
1142
  if (projectMemoryTables.length > 0) {
1871
- const projectMemoryCols = db2.pragma("table_info(project_memory)");
1143
+ const projectMemoryCols = pragmaAll(db2, "table_info(project_memory)");
1872
1144
  if (!projectMemoryCols.some((column) => column.name === "producer")) {
1873
1145
  db2.exec("ALTER TABLE project_memory ADD COLUMN producer TEXT NOT NULL DEFAULT 'human' CHECK(producer IN ('human', 'system'))");
1874
1146
  }
@@ -1876,7 +1148,7 @@ function runMigrations(db2) {
1876
1148
  }
1877
1149
  const agentTables = db2.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='agents'").all();
1878
1150
  if (agentTables.length > 0) {
1879
- const agentCols = db2.pragma("table_info(agents)");
1151
+ const agentCols = pragmaAll(db2, "table_info(agents)");
1880
1152
  const agentColNames = new Set(agentCols.map((c) => c.name));
1881
1153
  if (!agentColNames.has("voice")) db2.exec("ALTER TABLE agents ADD COLUMN voice TEXT");
1882
1154
  if (!agentColNames.has("seed")) db2.exec("ALTER TABLE agents ADD COLUMN seed TEXT");
@@ -2273,11 +1545,12 @@ function createAdminDbClientSQLite() {
2273
1545
  }
2274
1546
  };
2275
1547
  }
2276
- var import_better_sqlite33, import_fs9, import_path9, import_os9, AGX_DATA_DIR3, SqlExpression, _db, JSON_COLUMNS, SQLiteQueryBuilder, KNOWN_JSON_COLUMNS;
1548
+ var import_node_sqlite4, import_fs9, import_path9, import_os9, AGX_DATA_DIR3, SqlExpression, _db, JSON_COLUMNS, SQLiteQueryBuilder, KNOWN_JSON_COLUMNS;
2277
1549
  var init_sqlite_query_adapter = __esm({
2278
1550
  "../agx-cloud/lib/sqlite-query-adapter.ts"() {
2279
1551
  "use strict";
2280
- import_better_sqlite33 = __toESM(require_lib());
1552
+ import_node_sqlite4 = require("node:sqlite");
1553
+ init_sqlite_compat();
2281
1554
  import_fs9 = __toESM(require("fs"));
2282
1555
  import_path9 = __toESM(require("path"));
2283
1556
  import_os9 = __toESM(require("os"));
@@ -2691,7 +1964,6 @@ function createAdminDbClient() {
2691
1964
  }
2692
1965
  var init_db_adapter = __esm({
2693
1966
  "../agx-cloud/lib/db-adapter.ts"() {
2694
- "use strict";
2695
1967
  init_auth_mode();
2696
1968
  }
2697
1969
  });
@@ -4501,8 +3773,20 @@ var init_sqlite_adapter = __esm({
4501
3773
  }
4502
3774
  });
4503
3775
 
3776
+ // ../agx-cloud/lib/check-node-version.ts
3777
+ if (typeof process !== "undefined" && process.versions?.node) {
3778
+ const [major, minor] = process.versions.node.split(".").map(Number);
3779
+ if (major < 22 || major === 22 && minor < 16) {
3780
+ console.error(
3781
+ `agx-cloud requires Node.js >= 22.16.0 (found ${process.version}). node:sqlite is not available on older versions.`
3782
+ );
3783
+ process.exit(1);
3784
+ }
3785
+ }
3786
+
4504
3787
  // ../agx-cloud/lib/queue/sqlite-adapter.ts
4505
- var import_better_sqlite3 = __toESM(require_lib());
3788
+ var import_node_sqlite2 = require("node:sqlite");
3789
+ init_sqlite_compat();
4506
3790
 
4507
3791
  // ../agx-cloud/node_modules/uuid/dist-node/stringify.js
4508
3792
  var byteToHex = [];
@@ -4661,7 +3945,7 @@ var SQLiteQueueAdapter = class {
4661
3945
  if (!import_fs3.default.existsSync(dir)) {
4662
3946
  import_fs3.default.mkdirSync(dir, { recursive: true });
4663
3947
  }
4664
- this.db = new import_better_sqlite3.default(finalPath);
3948
+ this.db = new import_node_sqlite2.DatabaseSync(finalPath);
4665
3949
  const errors = validateSQLiteEnvironment(this.db, finalPath);
4666
3950
  if (errors.length > 0) {
4667
3951
  const msgs = errors.map((e) => e.message).join("; ");
@@ -4696,7 +3980,7 @@ var SQLiteQueueAdapter = class {
4696
3980
  );
4697
3981
  CREATE INDEX IF NOT EXISTS idx_jobs_fetch ON agx_jobs (queue, status, start_after, priority DESC, created_at ASC);
4698
3982
  `);
4699
- const cols = this.db.pragma("table_info(agx_jobs)");
3983
+ const cols = pragmaAll(this.db, "table_info(agx_jobs)");
4700
3984
  const colNames = new Set(cols.map((c) => c.name));
4701
3985
  if (!colNames.has("failed_at")) {
4702
3986
  this.db.exec(`ALTER TABLE agx_jobs ADD COLUMN failed_at INTEGER`);
@@ -4772,7 +4056,7 @@ var SQLiteQueueAdapter = class {
4772
4056
  const batchSize = worker.options.batchSize || 1;
4773
4057
  const now = Date.now();
4774
4058
  const staleBefore = now - getStaleJobTimeoutMs();
4775
- const jobs = this.db.transaction(() => {
4059
+ const jobs = transaction(this.db, () => {
4776
4060
  const reapedJobs = this.reapStaleJobs(queue2, now, staleBefore);
4777
4061
  if (reapedJobs.length > 0) {
4778
4062
  writeDebugLog("queue.reap_stale", {
@@ -4805,7 +4089,7 @@ var SQLiteQueueAdapter = class {
4805
4089
  name: queue2,
4806
4090
  data: JSON.parse(c.data)
4807
4091
  }));
4808
- })();
4092
+ });
4809
4093
  if (jobs.length > 0) {
4810
4094
  writeDebugLog("queue.claim", {
4811
4095
  queue: queue2,
@@ -4837,9 +4121,9 @@ var SQLiteQueueAdapter = class {
4837
4121
  SET status = 'completed', completed_at = ?, worker_id = NULL
4838
4122
  WHERE id = ?
4839
4123
  `);
4840
- this.db.transaction(() => {
4124
+ transaction(this.db, () => {
4841
4125
  for (const id of ids) stmt.run(now, id);
4842
- })();
4126
+ });
4843
4127
  }
4844
4128
  failJobs(ids, error) {
4845
4129
  const now = Date.now();
@@ -4860,7 +4144,7 @@ var SQLiteQueueAdapter = class {
4860
4144
  SET status = 'failed', failed_at = ?, started_at = NULL, worker_id = NULL, error = ?
4861
4145
  WHERE id = ?
4862
4146
  `);
4863
- this.db.transaction(() => {
4147
+ transaction(this.db, () => {
4864
4148
  for (const id of ids) {
4865
4149
  const job = stmt.get(id);
4866
4150
  if (job && job.retry_count < job.retry_limit) {
@@ -4870,7 +4154,7 @@ var SQLiteQueueAdapter = class {
4870
4154
  updateFailed.run(now, error, id);
4871
4155
  }
4872
4156
  }
4873
- })();
4157
+ });
4874
4158
  }
4875
4159
  reapStaleJobs(queue2, now, staleBefore) {
4876
4160
  const staleJobs = this.db.prepare(`
@@ -5838,6 +5122,7 @@ init_sqlite_query_adapter();
5838
5122
  // ../agx-cloud/lib/knowledge-store.ts
5839
5123
  var import_crypto2 = require("crypto");
5840
5124
  init_sqlite_query_adapter();
5125
+ init_sqlite_compat();
5841
5126
  function clampUnitNumber(value) {
5842
5127
  if (typeof value !== "number" || !Number.isFinite(value)) return null;
5843
5128
  return Math.max(0, Math.min(1, value));
@@ -5929,7 +5214,7 @@ function storeKnowledgeEntries(drafts) {
5929
5214
  ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
5930
5215
  );
5931
5216
  let inserted = 0;
5932
- const tx = db2.transaction((entries) => {
5217
+ const tx = transactionFn(db2, (entries) => {
5933
5218
  for (const draft of entries) {
5934
5219
  const subjectId = draft.subjectId.trim();
5935
5220
  const title = draft.title.trim();
@@ -6891,7 +6176,8 @@ async function handleCancel(taskId, userId, reason) {
6891
6176
  var import_promises = require("fs/promises");
6892
6177
 
6893
6178
  // ../agx-cloud/lib/agent-process-registry.ts
6894
- var import_better_sqlite34 = __toESM(require_lib());
6179
+ var import_node_sqlite5 = require("node:sqlite");
6180
+ init_sqlite_compat();
6895
6181
  var import_path11 = __toESM(require("path"));
6896
6182
  var import_os10 = __toESM(require("os"));
6897
6183
  var import_fs11 = require("fs");
@@ -6914,8 +6200,8 @@ function toEntry(row) {
6914
6200
  }
6915
6201
  function getDb2() {
6916
6202
  (0, import_fs11.mkdirSync)(HISTORY_DIR, { recursive: true });
6917
- const db2 = new import_better_sqlite34.default(DB_PATH2);
6918
- db2.pragma("journal_mode = WAL");
6203
+ const db2 = new import_node_sqlite5.DatabaseSync(DB_PATH2);
6204
+ pragmaSet(db2, "journal_mode = WAL");
6919
6205
  db2.exec(`
6920
6206
  CREATE TABLE IF NOT EXISTS agent_processes (
6921
6207
  id INTEGER PRIMARY KEY AUTOINCREMENT,
@@ -7067,7 +6353,8 @@ function killByWorkspace(workspaceId) {
7067
6353
  }
7068
6354
 
7069
6355
  // ../agx-cloud/lib/history-store.ts
7070
- var import_better_sqlite35 = __toESM(require_lib());
6356
+ var import_node_sqlite6 = require("node:sqlite");
6357
+ init_sqlite_compat();
7071
6358
  var import_fs12 = require("fs");
7072
6359
  var import_path12 = __toESM(require("path"));
7073
6360
  var import_os11 = __toESM(require("os"));
@@ -7133,11 +6420,11 @@ function initializeMessageSearch(db2) {
7133
6420
  }
7134
6421
  }
7135
6422
  function isThreadScopedTable(db2, tableName) {
7136
- const columns = db2.prepare(`PRAGMA table_info(${tableName})`).all();
6423
+ const columns = pragmaAll(db2, `table_info(${tableName})`);
7137
6424
  return columns.some((column) => column.name === "thread_id");
7138
6425
  }
7139
6426
  function migrateThreadReplyColumns(db2) {
7140
- const columns = db2.prepare(`PRAGMA table_info(messages)`).all();
6427
+ const columns = pragmaAll(db2, `table_info(messages)`);
7141
6428
  const colNames = new Set(columns.map((c) => c.name));
7142
6429
  if (!colNames.has("root_message_id")) {
7143
6430
  db2.exec(`
@@ -7149,7 +6436,7 @@ function migrateThreadReplyColumns(db2) {
7149
6436
  }
7150
6437
  }
7151
6438
  function migrateThreadStatusColumns(db2) {
7152
- const columns = db2.prepare(`PRAGMA table_info(messages)`).all();
6439
+ const columns = pragmaAll(db2, `table_info(messages)`);
7153
6440
  const colNames = new Set(columns.map((c) => c.name));
7154
6441
  if (!colNames.has("thread_status")) {
7155
6442
  db2.exec(`
@@ -7159,7 +6446,7 @@ function migrateThreadStatusColumns(db2) {
7159
6446
  }
7160
6447
  }
7161
6448
  function migrateReactionHostPidColumn(db2) {
7162
- const columns = db2.prepare(`PRAGMA table_info(message_reactions)`).all();
6449
+ const columns = pragmaAll(db2, `table_info(message_reactions)`);
7163
6450
  const colNames = new Set(columns.map((c) => c.name));
7164
6451
  if (!colNames.has("host_pid")) {
7165
6452
  db2.exec(`ALTER TABLE message_reactions ADD COLUMN host_pid INTEGER`);
@@ -7169,7 +6456,7 @@ function migrateReactionHostPidColumn(db2) {
7169
6456
  }
7170
6457
  }
7171
6458
  function migrateLogsToAgentProcessId(db2) {
7172
- const columns = db2.prepare(`PRAGMA table_info(logs)`).all();
6459
+ const columns = pragmaAll(db2, `table_info(logs)`);
7173
6460
  const colNames = new Set(columns.map((c) => c.name));
7174
6461
  if (colNames.has("agent_process_id")) return;
7175
6462
  db2.exec(`
@@ -7184,7 +6471,7 @@ function migrateLogsToAgentProcessId(db2) {
7184
6471
  `);
7185
6472
  }
7186
6473
  function migrateAgentProcessesAddId(db2) {
7187
- const columns = db2.prepare(`PRAGMA table_info(agent_processes)`).all();
6474
+ const columns = pragmaAll(db2, `table_info(agent_processes)`);
7188
6475
  if (columns.length === 0) return;
7189
6476
  const colNames = new Set(columns.map((c) => c.name));
7190
6477
  if (colNames.has("id")) return;
@@ -7304,8 +6591,8 @@ function migrateLegacyTables(db2) {
7304
6591
  }
7305
6592
  var withDatabase = async (run) => {
7306
6593
  await import_fs12.promises.mkdir(HISTORY_DIR2, { recursive: true });
7307
- const db2 = new import_better_sqlite35.default(DB_PATH3);
7308
- db2.pragma("journal_mode = WAL");
6594
+ const db2 = new import_node_sqlite6.DatabaseSync(DB_PATH3);
6595
+ pragmaSet(db2, "journal_mode = WAL");
7309
6596
  try {
7310
6597
  db2.exec(`
7311
6598
  CREATE TABLE IF NOT EXISTS messages (
@@ -7482,7 +6769,7 @@ async function saveMessages(threadId, messages) {
7482
6769
  `INSERT OR REPLACE INTO messages (thread_id, id, role, participant_id, content, timestamp, root_message_id, parent_message_id, depth, thread_status, outcome_note)
7483
6770
  VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
7484
6771
  );
7485
- const insertMany = db2.transaction((msgs) => {
6772
+ const insertMany = transactionFn(db2, (msgs) => {
7486
6773
  for (const m of msgs) {
7487
6774
  stmt.run(normalizedThreadId, m.id, m.role, m.participantId, m.content, m.timestamp, m.rootMessageId ?? null, m.parentMessageId ?? null, m.depth ?? 0, m.threadStatus ?? null, m.outcomeNote ?? null);
7488
6775
  }
@@ -7510,7 +6797,7 @@ async function sweepStaleChatRuns(input) {
7510
6797
  completed_at = COALESCE(completed_at, ?)
7511
6798
  WHERE ${clauses.join(" AND ")}`
7512
6799
  ).run(now, now, ...params);
7513
- return result.changes;
6800
+ return Number(result.changes);
7514
6801
  });
7515
6802
  }
7516
6803
  async function getChatRun(chatRunId) {
@@ -7689,12 +6976,11 @@ async function saveLogs(agentProcessId, entries) {
7689
6976
  const stmt = db2.prepare(
7690
6977
  "INSERT INTO logs (agent_process_id, stream, line, timestamp) VALUES (?, ?, ?, ?)"
7691
6978
  );
7692
- const tx = db2.transaction(() => {
6979
+ transaction(db2, () => {
7693
6980
  for (const e of entries) {
7694
6981
  stmt.run(agentProcessId, e.stream, e.line, e.timestamp);
7695
6982
  }
7696
6983
  });
7697
- tx();
7698
6984
  });
7699
6985
  }
7700
6986
 
@@ -7761,15 +7047,16 @@ function parseReactionSignals(content) {
7761
7047
  }
7762
7048
 
7763
7049
  // ../agx-cloud/lib/attachment-store.ts
7764
- var import_better_sqlite36 = __toESM(require_lib());
7050
+ var import_node_sqlite7 = require("node:sqlite");
7051
+ init_sqlite_compat();
7765
7052
  var import_path13 = __toESM(require("path"));
7766
7053
  var import_os12 = __toESM(require("os"));
7767
7054
  var HISTORY_DIR3 = process.env.AGX_GROUP_CHAT_DIR?.trim() || import_path13.default.join(import_os12.default.homedir(), ".agx", "group-chat");
7768
7055
  var DB_PATH4 = import_path13.default.join(HISTORY_DIR3, "history.sqlite");
7769
7056
  var UPLOADS_DIR = import_path13.default.join(HISTORY_DIR3, "uploads");
7770
7057
  function getDb3() {
7771
- const db2 = new import_better_sqlite36.default(DB_PATH4);
7772
- db2.pragma("journal_mode = WAL");
7058
+ const db2 = new import_node_sqlite7.DatabaseSync(DB_PATH4);
7059
+ pragmaSet(db2, "journal_mode = WAL");
7773
7060
  return db2;
7774
7061
  }
7775
7062
  function initAttachmentsTable(db2) {