denchclaw 2.3.12 → 2.3.15

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 (540) hide show
  1. package/README.md +3 -3
  2. package/apps/web/.next/standalone/apps/web/.next/BUILD_ID +1 -1
  3. package/apps/web/.next/standalone/apps/web/.next/app-build-manifest.json +298 -263
  4. package/apps/web/.next/standalone/apps/web/.next/app-path-routes-manifest.json +40 -35
  5. package/apps/web/.next/standalone/apps/web/.next/build-manifest.json +6 -6
  6. package/apps/web/.next/standalone/apps/web/.next/cache/config.json +3 -3
  7. package/apps/web/.next/standalone/apps/web/.next/prerender-manifest.json +3 -3
  8. package/apps/web/.next/standalone/apps/web/.next/react-loadable-manifest.json +4 -4
  9. package/apps/web/.next/standalone/apps/web/.next/required-server-files.json +5 -5
  10. package/apps/web/.next/standalone/apps/web/.next/routes-manifest.json +9 -1
  11. package/apps/web/.next/standalone/apps/web/.next/server/app/_not-found/page.js +2 -2
  12. package/apps/web/.next/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/cron/route.js +1 -1
  14. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/cron/route_client-reference-manifest.js +1 -1
  15. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/proxy/route.js +1 -1
  16. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/proxy/route_client-reference-manifest.js +1 -1
  17. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/route.js +1 -1
  18. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/route_client-reference-manifest.js +1 -1
  19. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/serve/[...path]/route.js +1 -1
  20. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/serve/[...path]/route_client-reference-manifest.js +1 -1
  21. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/store/route.js +1 -1
  22. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/store/route_client-reference-manifest.js +1 -1
  23. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/webhooks/[...path]/route.js +1 -1
  24. package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/webhooks/[...path]/route_client-reference-manifest.js +1 -1
  25. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/active/route.js +1 -1
  26. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/active/route_client-reference-manifest.js +1 -1
  27. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/route.js +2 -2
  28. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/route_client-reference-manifest.js +1 -1
  29. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/runs/route.js +1 -1
  30. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/runs/route_client-reference-manifest.js +1 -1
  31. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/stop/route.js +1 -1
  32. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/stop/route_client-reference-manifest.js +1 -1
  33. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/stream/route.js +2 -2
  34. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/stream/route_client-reference-manifest.js +1 -1
  35. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/subagents/route.js +1 -1
  36. package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/subagents/route_client-reference-manifest.js +1 -1
  37. package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/jobs/[jobId]/runs/route.js +1 -1
  38. package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/jobs/[jobId]/runs/route_client-reference-manifest.js +1 -1
  39. package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/jobs/route.js +1 -1
  40. package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/jobs/route_client-reference-manifest.js +1 -1
  41. package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/runs/[sessionId]/route.js +1 -1
  42. package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/runs/[sessionId]/route_client-reference-manifest.js +1 -1
  43. package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/runs/search-transcript/route.js +1 -1
  44. package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/runs/search-transcript/route_client-reference-manifest.js +1 -1
  45. package/apps/web/.next/standalone/apps/web/.next/server/app/api/feedback/route.js +1 -1
  46. package/apps/web/.next/standalone/apps/web/.next/server/app/api/feedback/route_client-reference-manifest.js +1 -1
  47. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/channels/route.js +1 -0
  48. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/channels/route.js.nft.json +1 -0
  49. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/channels/route_client-reference-manifest.js +1 -0
  50. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/chat/route.js +3 -0
  51. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/chat/route.js.nft.json +1 -0
  52. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/chat/route_client-reference-manifest.js +1 -0
  53. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/chat/stream/route.js +3 -0
  54. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/chat/stream/route.js.nft.json +1 -0
  55. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/chat/stream/route_client-reference-manifest.js +1 -0
  56. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/sessions/[id]/route.js +1 -0
  57. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/sessions/[id]/route.js.nft.json +1 -0
  58. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/sessions/[id]/route_client-reference-manifest.js +1 -0
  59. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/sessions/route.js +1 -0
  60. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/sessions/route.js.nft.json +1 -0
  61. package/apps/web/.next/standalone/apps/web/.next/server/app/api/gateway/sessions/route_client-reference-manifest.js +1 -0
  62. package/apps/web/.next/standalone/apps/web/.next/server/app/api/memories/route.js +1 -1
  63. package/apps/web/.next/standalone/apps/web/.next/server/app/api/memories/route_client-reference-manifest.js +1 -1
  64. package/apps/web/.next/standalone/apps/web/.next/server/app/api/profiles/route.js +1 -1
  65. package/apps/web/.next/standalone/apps/web/.next/server/app/api/profiles/route_client-reference-manifest.js +1 -1
  66. package/apps/web/.next/standalone/apps/web/.next/server/app/api/profiles/switch/route.js +1 -1
  67. package/apps/web/.next/standalone/apps/web/.next/server/app/api/profiles/switch/route_client-reference-manifest.js +1 -1
  68. package/apps/web/.next/standalone/apps/web/.next/server/app/api/sessions/[sessionId]/route.js +1 -1
  69. package/apps/web/.next/standalone/apps/web/.next/server/app/api/sessions/[sessionId]/route_client-reference-manifest.js +1 -1
  70. package/apps/web/.next/standalone/apps/web/.next/server/app/api/sessions/route.js +1 -1
  71. package/apps/web/.next/standalone/apps/web/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
  72. package/apps/web/.next/standalone/apps/web/.next/server/app/api/skills/route.js +1 -1
  73. package/apps/web/.next/standalone/apps/web/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  74. package/apps/web/.next/standalone/apps/web/.next/server/app/api/terminal/port/route.js +1 -1
  75. package/apps/web/.next/standalone/apps/web/.next/server/app/api/terminal/port/route_client-reference-manifest.js +1 -1
  76. package/apps/web/.next/standalone/apps/web/.next/server/app/api/web-sessions/[id]/messages/route.js +1 -1
  77. package/apps/web/.next/standalone/apps/web/.next/server/app/api/web-sessions/[id]/messages/route_client-reference-manifest.js +1 -1
  78. package/apps/web/.next/standalone/apps/web/.next/server/app/api/web-sessions/[id]/route.js +1 -1
  79. package/apps/web/.next/standalone/apps/web/.next/server/app/api/web-sessions/[id]/route_client-reference-manifest.js +1 -1
  80. package/apps/web/.next/standalone/apps/web/.next/server/app/api/web-sessions/route.js +1 -1
  81. package/apps/web/.next/standalone/apps/web/.next/server/app/api/web-sessions/route_client-reference-manifest.js +1 -1
  82. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/assets/[...path]/route.js +1 -1
  83. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/assets/[...path]/route_client-reference-manifest.js +1 -1
  84. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/browse/route.js +1 -1
  85. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/browse/route_client-reference-manifest.js +1 -1
  86. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/browse-file/route.js +1 -1
  87. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/browse-file/route_client-reference-manifest.js +1 -1
  88. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/context/route.js +1 -1
  89. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/context/route_client-reference-manifest.js +1 -1
  90. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/copy/route.js +1 -1
  91. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/copy/route_client-reference-manifest.js +1 -1
  92. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/db/introspect/route.js +1 -1
  93. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/db/introspect/route_client-reference-manifest.js +1 -1
  94. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/db/query/route.js +1 -1
  95. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/db/query/route_client-reference-manifest.js +1 -1
  96. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/delete/route.js +1 -1
  97. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/delete/route_client-reference-manifest.js +1 -1
  98. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/execute/route.js +1 -1
  99. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/execute/route_client-reference-manifest.js +1 -1
  100. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/file/route.js +1 -1
  101. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/file/route_client-reference-manifest.js +1 -1
  102. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/init/route.js +2 -2
  103. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/init/route_client-reference-manifest.js +1 -1
  104. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/list/route.js +1 -1
  105. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/list/route_client-reference-manifest.js +1 -1
  106. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/mkdir/route.js +1 -1
  107. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/mkdir/route_client-reference-manifest.js +1 -1
  108. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/move/route.js +1 -1
  109. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/move/route_client-reference-manifest.js +1 -1
  110. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/display-field/route.js +1 -1
  111. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/display-field/route_client-reference-manifest.js +1 -1
  112. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/[id]/route.js +2 -2
  113. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/[id]/route_client-reference-manifest.js +1 -1
  114. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/bulk-delete/route.js +1 -1
  115. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/bulk-delete/route_client-reference-manifest.js +1 -1
  116. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/options/route.js +2 -2
  117. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/options/route_client-reference-manifest.js +1 -1
  118. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/route.js +1 -1
  119. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/route_client-reference-manifest.js +1 -1
  120. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/fields/[fieldId]/enum-rename/route.js +1 -1
  121. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/fields/[fieldId]/enum-rename/route_client-reference-manifest.js +1 -1
  122. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/fields/[fieldId]/route.js +1 -1
  123. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/fields/[fieldId]/route_client-reference-manifest.js +1 -1
  124. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/fields/reorder/route.js +1 -1
  125. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/fields/reorder/route_client-reference-manifest.js +1 -1
  126. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/route.js +2 -2
  127. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/route_client-reference-manifest.js +1 -1
  128. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/views/route.js +1 -1
  129. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/views/route_client-reference-manifest.js +1 -1
  130. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/open-file/route.js +1 -1
  131. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/open-file/route_client-reference-manifest.js +1 -1
  132. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/path-info/route.js +1 -1
  133. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/path-info/route_client-reference-manifest.js +1 -1
  134. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/query/route.js +1 -1
  135. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/query/route_client-reference-manifest.js +1 -1
  136. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/raw-file/route.js +1 -1
  137. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/raw-file/route_client-reference-manifest.js +1 -1
  138. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/rename/route.js +1 -1
  139. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/rename/route_client-reference-manifest.js +1 -1
  140. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/reports/execute/route.js +1 -1
  141. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/reports/execute/route_client-reference-manifest.js +1 -1
  142. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/search-index/route.js +2 -2
  143. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/search-index/route_client-reference-manifest.js +1 -1
  144. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/suggest-files/route.js +2 -2
  145. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/suggest-files/route_client-reference-manifest.js +1 -1
  146. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/switch/route.js +1 -1
  147. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/switch/route_client-reference-manifest.js +1 -1
  148. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/thumbnail/route.js +1 -1
  149. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/thumbnail/route_client-reference-manifest.js +1 -1
  150. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/tree/route.js +1 -1
  151. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/tree/route_client-reference-manifest.js +1 -1
  152. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/upload/route.js +1 -1
  153. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/upload/route_client-reference-manifest.js +1 -1
  154. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/virtual-file/route.js +1 -1
  155. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/virtual-file/route_client-reference-manifest.js +1 -1
  156. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/watch/route.js +2 -2
  157. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/watch/route_client-reference-manifest.js +1 -1
  158. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/write-binary/route.js +1 -1
  159. package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/write-binary/route_client-reference-manifest.js +1 -1
  160. package/apps/web/.next/standalone/apps/web/.next/server/app/page.js +14 -14
  161. package/apps/web/.next/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
  162. package/apps/web/.next/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  163. package/apps/web/.next/standalone/apps/web/.next/server/app/workspace/page.js +2 -2
  164. package/apps/web/.next/standalone/apps/web/.next/server/app/workspace/page.js.nft.json +1 -1
  165. package/apps/web/.next/standalone/apps/web/.next/server/app/workspace/page_client-reference-manifest.js +1 -1
  166. package/apps/web/.next/standalone/apps/web/.next/server/app-paths-manifest.json +40 -35
  167. package/apps/web/.next/standalone/apps/web/.next/server/chunks/2477.js +1 -1
  168. package/apps/web/.next/standalone/apps/web/.next/server/chunks/2898.js +3 -3
  169. package/apps/web/.next/standalone/apps/web/.next/server/chunks/6426.js +3 -3
  170. package/apps/web/.next/standalone/apps/web/.next/server/chunks/9177.js +1 -0
  171. package/apps/web/.next/standalone/apps/web/.next/server/functions-config-manifest.json +20 -18
  172. package/apps/web/.next/standalone/apps/web/.next/server/middleware-build-manifest.js +1 -1
  173. package/apps/web/.next/standalone/apps/web/.next/server/middleware-react-loadable-manifest.js +1 -1
  174. package/apps/web/.next/standalone/apps/web/.next/server/pages/500.html +1 -1
  175. package/apps/web/.next/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  176. package/apps/web/.next/standalone/apps/web/.next/static/Y6vY097Dtp25kk2Mqqr07/_buildManifest.js +1 -0
  177. package/apps/web/.next/standalone/apps/web/.next/static/chunks/5477.c021c0b7365e7671.js +1 -0
  178. package/apps/web/.next/standalone/apps/web/.next/static/chunks/7858.359ca85c8ad21edf.js +1 -0
  179. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/_not-found/page-5ece932c92668331.js +1 -0
  180. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/cron/route-580e9ace8a991c49.js +1 -0
  181. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/proxy/route-580e9ace8a991c49.js +1 -0
  182. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/route-580e9ace8a991c49.js +1 -0
  183. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/serve/[...path]/route-580e9ace8a991c49.js +1 -0
  184. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/store/route-580e9ace8a991c49.js +1 -0
  185. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/webhooks/[...path]/route-580e9ace8a991c49.js +1 -0
  186. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/active/route-580e9ace8a991c49.js +1 -0
  187. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/route-580e9ace8a991c49.js +1 -0
  188. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/runs/route-580e9ace8a991c49.js +1 -0
  189. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/stop/route-580e9ace8a991c49.js +1 -0
  190. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/stream/route-580e9ace8a991c49.js +1 -0
  191. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/subagents/route-580e9ace8a991c49.js +1 -0
  192. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/cron/jobs/[jobId]/runs/route-580e9ace8a991c49.js +1 -0
  193. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/cron/jobs/route-580e9ace8a991c49.js +1 -0
  194. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/cron/runs/[sessionId]/route-580e9ace8a991c49.js +1 -0
  195. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/cron/runs/search-transcript/route-580e9ace8a991c49.js +1 -0
  196. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/feedback/route-580e9ace8a991c49.js +1 -0
  197. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/gateway/channels/route-580e9ace8a991c49.js +1 -0
  198. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/gateway/chat/route-580e9ace8a991c49.js +1 -0
  199. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/gateway/chat/stream/route-580e9ace8a991c49.js +1 -0
  200. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/gateway/sessions/[id]/route-580e9ace8a991c49.js +1 -0
  201. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/gateway/sessions/route-580e9ace8a991c49.js +1 -0
  202. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/memories/route-580e9ace8a991c49.js +1 -0
  203. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/profiles/route-580e9ace8a991c49.js +1 -0
  204. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/profiles/switch/route-580e9ace8a991c49.js +1 -0
  205. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/sessions/[sessionId]/route-580e9ace8a991c49.js +1 -0
  206. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/sessions/route-580e9ace8a991c49.js +1 -0
  207. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/skills/route-580e9ace8a991c49.js +1 -0
  208. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/terminal/port/route-580e9ace8a991c49.js +1 -0
  209. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/web-sessions/[id]/messages/route-580e9ace8a991c49.js +1 -0
  210. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/web-sessions/[id]/route-580e9ace8a991c49.js +1 -0
  211. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/web-sessions/route-580e9ace8a991c49.js +1 -0
  212. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/assets/[...path]/route-580e9ace8a991c49.js +1 -0
  213. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/browse/route-580e9ace8a991c49.js +1 -0
  214. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/browse-file/route-580e9ace8a991c49.js +1 -0
  215. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/context/route-580e9ace8a991c49.js +1 -0
  216. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/copy/route-580e9ace8a991c49.js +1 -0
  217. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/db/introspect/route-580e9ace8a991c49.js +1 -0
  218. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/db/query/route-580e9ace8a991c49.js +1 -0
  219. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/delete/route-580e9ace8a991c49.js +1 -0
  220. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/execute/route-580e9ace8a991c49.js +1 -0
  221. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/file/route-580e9ace8a991c49.js +1 -0
  222. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/init/route-580e9ace8a991c49.js +1 -0
  223. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/list/route-580e9ace8a991c49.js +1 -0
  224. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/mkdir/route-580e9ace8a991c49.js +1 -0
  225. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/move/route-580e9ace8a991c49.js +1 -0
  226. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/display-field/route-580e9ace8a991c49.js +1 -0
  227. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/[id]/route-580e9ace8a991c49.js +1 -0
  228. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/bulk-delete/route-580e9ace8a991c49.js +1 -0
  229. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/options/route-580e9ace8a991c49.js +1 -0
  230. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/route-580e9ace8a991c49.js +1 -0
  231. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/[fieldId]/enum-rename/route-580e9ace8a991c49.js +1 -0
  232. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/[fieldId]/route-580e9ace8a991c49.js +1 -0
  233. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/reorder/route-580e9ace8a991c49.js +1 -0
  234. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/route-580e9ace8a991c49.js +1 -0
  235. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/views/route-580e9ace8a991c49.js +1 -0
  236. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/open-file/route-580e9ace8a991c49.js +1 -0
  237. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/path-info/route-580e9ace8a991c49.js +1 -0
  238. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/query/route-580e9ace8a991c49.js +1 -0
  239. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/raw-file/route-580e9ace8a991c49.js +1 -0
  240. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/rename/route-580e9ace8a991c49.js +1 -0
  241. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/reports/execute/route-580e9ace8a991c49.js +1 -0
  242. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/search-index/route-580e9ace8a991c49.js +1 -0
  243. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/suggest-files/route-580e9ace8a991c49.js +1 -0
  244. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/switch/route-580e9ace8a991c49.js +1 -0
  245. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/thumbnail/route-580e9ace8a991c49.js +1 -0
  246. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/tree/route-580e9ace8a991c49.js +1 -0
  247. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/upload/route-580e9ace8a991c49.js +1 -0
  248. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/virtual-file/route-580e9ace8a991c49.js +1 -0
  249. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/watch/route-580e9ace8a991c49.js +1 -0
  250. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/write-binary/route-580e9ace8a991c49.js +1 -0
  251. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/{layout-796c717695f1f7a2.js → layout-6c8c3b194a9ff773.js} +1 -1
  252. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/page-95c6e70b9d7608e8.js +1 -0
  253. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/workspace/{page-af2f54a846963ed0.js → page-7f60d4efe8904f55.js} +1 -1
  254. package/apps/web/.next/standalone/apps/web/.next/static/chunks/{main-app-c71b105c32544ad9.js → main-app-3317ada7e5388446.js} +1 -1
  255. package/apps/web/.next/standalone/apps/web/.next/static/chunks/{webpack-498fd225d6bcdcf4.js → webpack-43066e1a249665ba.js} +1 -1
  256. package/apps/web/.next/standalone/apps/web/.next/static/css/4c7acc74b29f04e2.css +1 -0
  257. package/apps/web/.next/standalone/apps/web/node_modules/@esbuild/{darwin-arm64 → linux-x64}/bin/esbuild +0 -0
  258. package/apps/web/.next/standalone/apps/web/node_modules/@esbuild/{darwin-arm64 → linux-x64}/package.json +4 -4
  259. package/apps/web/.next/standalone/apps/web/node_modules/@img/{sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib → sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3} +0 -0
  260. package/apps/web/.next/standalone/apps/web/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/package.json +11 -5
  261. package/apps/web/.next/standalone/apps/web/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  262. package/apps/web/.next/standalone/apps/web/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  263. package/apps/web/.next/standalone/apps/web/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  264. package/apps/web/.next/standalone/apps/web/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  265. package/apps/web/.next/standalone/apps/web/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  266. package/apps/web/.next/standalone/apps/web/node_modules/@img/{sharp-darwin-arm64 → sharp-linux-x64}/package.json +13 -7
  267. package/apps/web/.next/standalone/apps/web/node_modules/@img/sharp-linuxmusl-x64/LICENSE +191 -0
  268. package/apps/web/.next/standalone/apps/web/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  269. package/apps/web/.next/standalone/apps/web/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  270. package/apps/web/.next/standalone/apps/web/server.js +1 -1
  271. package/apps/web/.next/standalone/package.json +7 -5
  272. package/apps/web/.next/static/Y6vY097Dtp25kk2Mqqr07/_buildManifest.js +1 -0
  273. package/apps/web/.next/static/chunks/5477.c021c0b7365e7671.js +1 -0
  274. package/apps/web/.next/static/chunks/7858.359ca85c8ad21edf.js +1 -0
  275. package/apps/web/.next/static/chunks/app/_not-found/page-5ece932c92668331.js +1 -0
  276. package/apps/web/.next/static/chunks/app/api/apps/cron/route-580e9ace8a991c49.js +1 -0
  277. package/apps/web/.next/static/chunks/app/api/apps/proxy/route-580e9ace8a991c49.js +1 -0
  278. package/apps/web/.next/static/chunks/app/api/apps/route-580e9ace8a991c49.js +1 -0
  279. package/apps/web/.next/static/chunks/app/api/apps/serve/[...path]/route-580e9ace8a991c49.js +1 -0
  280. package/apps/web/.next/static/chunks/app/api/apps/store/route-580e9ace8a991c49.js +1 -0
  281. package/apps/web/.next/static/chunks/app/api/apps/webhooks/[...path]/route-580e9ace8a991c49.js +1 -0
  282. package/apps/web/.next/static/chunks/app/api/chat/active/route-580e9ace8a991c49.js +1 -0
  283. package/apps/web/.next/static/chunks/app/api/chat/route-580e9ace8a991c49.js +1 -0
  284. package/apps/web/.next/static/chunks/app/api/chat/runs/route-580e9ace8a991c49.js +1 -0
  285. package/apps/web/.next/static/chunks/app/api/chat/stop/route-580e9ace8a991c49.js +1 -0
  286. package/apps/web/.next/static/chunks/app/api/chat/stream/route-580e9ace8a991c49.js +1 -0
  287. package/apps/web/.next/static/chunks/app/api/chat/subagents/route-580e9ace8a991c49.js +1 -0
  288. package/apps/web/.next/static/chunks/app/api/cron/jobs/[jobId]/runs/route-580e9ace8a991c49.js +1 -0
  289. package/apps/web/.next/static/chunks/app/api/cron/jobs/route-580e9ace8a991c49.js +1 -0
  290. package/apps/web/.next/static/chunks/app/api/cron/runs/[sessionId]/route-580e9ace8a991c49.js +1 -0
  291. package/apps/web/.next/static/chunks/app/api/cron/runs/search-transcript/route-580e9ace8a991c49.js +1 -0
  292. package/apps/web/.next/static/chunks/app/api/feedback/route-580e9ace8a991c49.js +1 -0
  293. package/apps/web/.next/static/chunks/app/api/gateway/channels/route-580e9ace8a991c49.js +1 -0
  294. package/apps/web/.next/static/chunks/app/api/gateway/chat/route-580e9ace8a991c49.js +1 -0
  295. package/apps/web/.next/static/chunks/app/api/gateway/chat/stream/route-580e9ace8a991c49.js +1 -0
  296. package/apps/web/.next/static/chunks/app/api/gateway/sessions/[id]/route-580e9ace8a991c49.js +1 -0
  297. package/apps/web/.next/static/chunks/app/api/gateway/sessions/route-580e9ace8a991c49.js +1 -0
  298. package/apps/web/.next/static/chunks/app/api/memories/route-580e9ace8a991c49.js +1 -0
  299. package/apps/web/.next/static/chunks/app/api/profiles/route-580e9ace8a991c49.js +1 -0
  300. package/apps/web/.next/static/chunks/app/api/profiles/switch/route-580e9ace8a991c49.js +1 -0
  301. package/apps/web/.next/static/chunks/app/api/sessions/[sessionId]/route-580e9ace8a991c49.js +1 -0
  302. package/apps/web/.next/static/chunks/app/api/sessions/route-580e9ace8a991c49.js +1 -0
  303. package/apps/web/.next/static/chunks/app/api/skills/route-580e9ace8a991c49.js +1 -0
  304. package/apps/web/.next/static/chunks/app/api/terminal/port/route-580e9ace8a991c49.js +1 -0
  305. package/apps/web/.next/static/chunks/app/api/web-sessions/[id]/messages/route-580e9ace8a991c49.js +1 -0
  306. package/apps/web/.next/static/chunks/app/api/web-sessions/[id]/route-580e9ace8a991c49.js +1 -0
  307. package/apps/web/.next/static/chunks/app/api/web-sessions/route-580e9ace8a991c49.js +1 -0
  308. package/apps/web/.next/static/chunks/app/api/workspace/assets/[...path]/route-580e9ace8a991c49.js +1 -0
  309. package/apps/web/.next/static/chunks/app/api/workspace/browse/route-580e9ace8a991c49.js +1 -0
  310. package/apps/web/.next/static/chunks/app/api/workspace/browse-file/route-580e9ace8a991c49.js +1 -0
  311. package/apps/web/.next/static/chunks/app/api/workspace/context/route-580e9ace8a991c49.js +1 -0
  312. package/apps/web/.next/static/chunks/app/api/workspace/copy/route-580e9ace8a991c49.js +1 -0
  313. package/apps/web/.next/static/chunks/app/api/workspace/db/introspect/route-580e9ace8a991c49.js +1 -0
  314. package/apps/web/.next/static/chunks/app/api/workspace/db/query/route-580e9ace8a991c49.js +1 -0
  315. package/apps/web/.next/static/chunks/app/api/workspace/delete/route-580e9ace8a991c49.js +1 -0
  316. package/apps/web/.next/static/chunks/app/api/workspace/execute/route-580e9ace8a991c49.js +1 -0
  317. package/apps/web/.next/static/chunks/app/api/workspace/file/route-580e9ace8a991c49.js +1 -0
  318. package/apps/web/.next/static/chunks/app/api/workspace/init/route-580e9ace8a991c49.js +1 -0
  319. package/apps/web/.next/static/chunks/app/api/workspace/list/route-580e9ace8a991c49.js +1 -0
  320. package/apps/web/.next/static/chunks/app/api/workspace/mkdir/route-580e9ace8a991c49.js +1 -0
  321. package/apps/web/.next/static/chunks/app/api/workspace/move/route-580e9ace8a991c49.js +1 -0
  322. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/display-field/route-580e9ace8a991c49.js +1 -0
  323. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/[id]/route-580e9ace8a991c49.js +1 -0
  324. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/bulk-delete/route-580e9ace8a991c49.js +1 -0
  325. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/options/route-580e9ace8a991c49.js +1 -0
  326. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/route-580e9ace8a991c49.js +1 -0
  327. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/[fieldId]/enum-rename/route-580e9ace8a991c49.js +1 -0
  328. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/[fieldId]/route-580e9ace8a991c49.js +1 -0
  329. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/reorder/route-580e9ace8a991c49.js +1 -0
  330. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/route-580e9ace8a991c49.js +1 -0
  331. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/views/route-580e9ace8a991c49.js +1 -0
  332. package/apps/web/.next/static/chunks/app/api/workspace/open-file/route-580e9ace8a991c49.js +1 -0
  333. package/apps/web/.next/static/chunks/app/api/workspace/path-info/route-580e9ace8a991c49.js +1 -0
  334. package/apps/web/.next/static/chunks/app/api/workspace/query/route-580e9ace8a991c49.js +1 -0
  335. package/apps/web/.next/static/chunks/app/api/workspace/raw-file/route-580e9ace8a991c49.js +1 -0
  336. package/apps/web/.next/static/chunks/app/api/workspace/rename/route-580e9ace8a991c49.js +1 -0
  337. package/apps/web/.next/static/chunks/app/api/workspace/reports/execute/route-580e9ace8a991c49.js +1 -0
  338. package/apps/web/.next/static/chunks/app/api/workspace/search-index/route-580e9ace8a991c49.js +1 -0
  339. package/apps/web/.next/static/chunks/app/api/workspace/suggest-files/route-580e9ace8a991c49.js +1 -0
  340. package/apps/web/.next/static/chunks/app/api/workspace/switch/route-580e9ace8a991c49.js +1 -0
  341. package/apps/web/.next/static/chunks/app/api/workspace/thumbnail/route-580e9ace8a991c49.js +1 -0
  342. package/apps/web/.next/static/chunks/app/api/workspace/tree/route-580e9ace8a991c49.js +1 -0
  343. package/apps/web/.next/static/chunks/app/api/workspace/upload/route-580e9ace8a991c49.js +1 -0
  344. package/apps/web/.next/static/chunks/app/api/workspace/virtual-file/route-580e9ace8a991c49.js +1 -0
  345. package/apps/web/.next/static/chunks/app/api/workspace/watch/route-580e9ace8a991c49.js +1 -0
  346. package/apps/web/.next/static/chunks/app/api/workspace/write-binary/route-580e9ace8a991c49.js +1 -0
  347. package/apps/web/.next/static/chunks/app/{layout-796c717695f1f7a2.js → layout-6c8c3b194a9ff773.js} +1 -1
  348. package/apps/web/.next/static/chunks/app/page-95c6e70b9d7608e8.js +1 -0
  349. package/apps/web/.next/static/chunks/app/workspace/{page-af2f54a846963ed0.js → page-7f60d4efe8904f55.js} +1 -1
  350. package/apps/web/.next/static/chunks/{main-app-c71b105c32544ad9.js → main-app-3317ada7e5388446.js} +1 -1
  351. package/apps/web/.next/static/chunks/{webpack-498fd225d6bcdcf4.js → webpack-43066e1a249665ba.js} +1 -1
  352. package/apps/web/.next/static/css/4c7acc74b29f04e2.css +1 -0
  353. package/extensions/posthog-analytics/lib/build-env.js +1 -1
  354. package/package.json +7 -5
  355. package/apps/web/.next/standalone/apps/web/.env +0 -3
  356. package/apps/web/.next/standalone/apps/web/.next/server/chunks/7173.js +0 -1
  357. package/apps/web/.next/standalone/apps/web/.next/static/aE8AIU_W3uqZ1tPsvA3GK/_buildManifest.js +0 -1
  358. package/apps/web/.next/standalone/apps/web/.next/static/chunks/5477.0aadfaf40dfed918.js +0 -1
  359. package/apps/web/.next/standalone/apps/web/.next/static/chunks/7858.8611b6994c263456.js +0 -1
  360. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/_not-found/page-23e70510b8d52088.js +0 -1
  361. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/cron/route-5f5d429b1700dd0e.js +0 -1
  362. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/proxy/route-5f5d429b1700dd0e.js +0 -1
  363. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/route-5f5d429b1700dd0e.js +0 -1
  364. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/serve/[...path]/route-5f5d429b1700dd0e.js +0 -1
  365. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/store/route-5f5d429b1700dd0e.js +0 -1
  366. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/apps/webhooks/[...path]/route-5f5d429b1700dd0e.js +0 -1
  367. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/active/route-5f5d429b1700dd0e.js +0 -1
  368. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/route-5f5d429b1700dd0e.js +0 -1
  369. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/runs/route-5f5d429b1700dd0e.js +0 -1
  370. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/stop/route-5f5d429b1700dd0e.js +0 -1
  371. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/stream/route-5f5d429b1700dd0e.js +0 -1
  372. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/chat/subagents/route-5f5d429b1700dd0e.js +0 -1
  373. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/cron/jobs/[jobId]/runs/route-5f5d429b1700dd0e.js +0 -1
  374. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/cron/jobs/route-5f5d429b1700dd0e.js +0 -1
  375. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/cron/runs/[sessionId]/route-5f5d429b1700dd0e.js +0 -1
  376. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/cron/runs/search-transcript/route-5f5d429b1700dd0e.js +0 -1
  377. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/feedback/route-5f5d429b1700dd0e.js +0 -1
  378. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/memories/route-5f5d429b1700dd0e.js +0 -1
  379. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/profiles/route-5f5d429b1700dd0e.js +0 -1
  380. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/profiles/switch/route-5f5d429b1700dd0e.js +0 -1
  381. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/sessions/[sessionId]/route-5f5d429b1700dd0e.js +0 -1
  382. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/sessions/route-5f5d429b1700dd0e.js +0 -1
  383. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/skills/route-5f5d429b1700dd0e.js +0 -1
  384. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/terminal/port/route-5f5d429b1700dd0e.js +0 -1
  385. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/web-sessions/[id]/messages/route-5f5d429b1700dd0e.js +0 -1
  386. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/web-sessions/[id]/route-5f5d429b1700dd0e.js +0 -1
  387. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/web-sessions/route-5f5d429b1700dd0e.js +0 -1
  388. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/assets/[...path]/route-5f5d429b1700dd0e.js +0 -1
  389. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/browse/route-5f5d429b1700dd0e.js +0 -1
  390. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/browse-file/route-5f5d429b1700dd0e.js +0 -1
  391. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/context/route-5f5d429b1700dd0e.js +0 -1
  392. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/copy/route-5f5d429b1700dd0e.js +0 -1
  393. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/db/introspect/route-5f5d429b1700dd0e.js +0 -1
  394. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/db/query/route-5f5d429b1700dd0e.js +0 -1
  395. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/delete/route-5f5d429b1700dd0e.js +0 -1
  396. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/execute/route-5f5d429b1700dd0e.js +0 -1
  397. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/file/route-5f5d429b1700dd0e.js +0 -1
  398. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/init/route-5f5d429b1700dd0e.js +0 -1
  399. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/list/route-5f5d429b1700dd0e.js +0 -1
  400. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/mkdir/route-5f5d429b1700dd0e.js +0 -1
  401. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/move/route-5f5d429b1700dd0e.js +0 -1
  402. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/display-field/route-5f5d429b1700dd0e.js +0 -1
  403. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/[id]/route-5f5d429b1700dd0e.js +0 -1
  404. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/bulk-delete/route-5f5d429b1700dd0e.js +0 -1
  405. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/options/route-5f5d429b1700dd0e.js +0 -1
  406. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/route-5f5d429b1700dd0e.js +0 -1
  407. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/[fieldId]/enum-rename/route-5f5d429b1700dd0e.js +0 -1
  408. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/[fieldId]/route-5f5d429b1700dd0e.js +0 -1
  409. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/reorder/route-5f5d429b1700dd0e.js +0 -1
  410. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/route-5f5d429b1700dd0e.js +0 -1
  411. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/views/route-5f5d429b1700dd0e.js +0 -1
  412. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/open-file/route-5f5d429b1700dd0e.js +0 -1
  413. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/path-info/route-5f5d429b1700dd0e.js +0 -1
  414. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/query/route-5f5d429b1700dd0e.js +0 -1
  415. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/raw-file/route-5f5d429b1700dd0e.js +0 -1
  416. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/rename/route-5f5d429b1700dd0e.js +0 -1
  417. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/reports/execute/route-5f5d429b1700dd0e.js +0 -1
  418. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/search-index/route-5f5d429b1700dd0e.js +0 -1
  419. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/suggest-files/route-5f5d429b1700dd0e.js +0 -1
  420. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/switch/route-5f5d429b1700dd0e.js +0 -1
  421. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/thumbnail/route-5f5d429b1700dd0e.js +0 -1
  422. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/tree/route-5f5d429b1700dd0e.js +0 -1
  423. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/upload/route-5f5d429b1700dd0e.js +0 -1
  424. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/virtual-file/route-5f5d429b1700dd0e.js +0 -1
  425. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/watch/route-5f5d429b1700dd0e.js +0 -1
  426. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/api/workspace/write-binary/route-5f5d429b1700dd0e.js +0 -1
  427. package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/page-441fc26d2fd5ddf4.js +0 -1
  428. package/apps/web/.next/standalone/apps/web/.next/static/css/eb7b54c9778eb5c7.css +0 -1
  429. package/apps/web/.next/standalone/apps/web/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  430. package/apps/web/.next/static/aE8AIU_W3uqZ1tPsvA3GK/_buildManifest.js +0 -1
  431. package/apps/web/.next/static/chunks/5477.0aadfaf40dfed918.js +0 -1
  432. package/apps/web/.next/static/chunks/7858.8611b6994c263456.js +0 -1
  433. package/apps/web/.next/static/chunks/app/_not-found/page-23e70510b8d52088.js +0 -1
  434. package/apps/web/.next/static/chunks/app/api/apps/cron/route-5f5d429b1700dd0e.js +0 -1
  435. package/apps/web/.next/static/chunks/app/api/apps/proxy/route-5f5d429b1700dd0e.js +0 -1
  436. package/apps/web/.next/static/chunks/app/api/apps/route-5f5d429b1700dd0e.js +0 -1
  437. package/apps/web/.next/static/chunks/app/api/apps/serve/[...path]/route-5f5d429b1700dd0e.js +0 -1
  438. package/apps/web/.next/static/chunks/app/api/apps/store/route-5f5d429b1700dd0e.js +0 -1
  439. package/apps/web/.next/static/chunks/app/api/apps/webhooks/[...path]/route-5f5d429b1700dd0e.js +0 -1
  440. package/apps/web/.next/static/chunks/app/api/chat/active/route-5f5d429b1700dd0e.js +0 -1
  441. package/apps/web/.next/static/chunks/app/api/chat/route-5f5d429b1700dd0e.js +0 -1
  442. package/apps/web/.next/static/chunks/app/api/chat/runs/route-5f5d429b1700dd0e.js +0 -1
  443. package/apps/web/.next/static/chunks/app/api/chat/stop/route-5f5d429b1700dd0e.js +0 -1
  444. package/apps/web/.next/static/chunks/app/api/chat/stream/route-5f5d429b1700dd0e.js +0 -1
  445. package/apps/web/.next/static/chunks/app/api/chat/subagents/route-5f5d429b1700dd0e.js +0 -1
  446. package/apps/web/.next/static/chunks/app/api/cron/jobs/[jobId]/runs/route-5f5d429b1700dd0e.js +0 -1
  447. package/apps/web/.next/static/chunks/app/api/cron/jobs/route-5f5d429b1700dd0e.js +0 -1
  448. package/apps/web/.next/static/chunks/app/api/cron/runs/[sessionId]/route-5f5d429b1700dd0e.js +0 -1
  449. package/apps/web/.next/static/chunks/app/api/cron/runs/search-transcript/route-5f5d429b1700dd0e.js +0 -1
  450. package/apps/web/.next/static/chunks/app/api/feedback/route-5f5d429b1700dd0e.js +0 -1
  451. package/apps/web/.next/static/chunks/app/api/memories/route-5f5d429b1700dd0e.js +0 -1
  452. package/apps/web/.next/static/chunks/app/api/profiles/route-5f5d429b1700dd0e.js +0 -1
  453. package/apps/web/.next/static/chunks/app/api/profiles/switch/route-5f5d429b1700dd0e.js +0 -1
  454. package/apps/web/.next/static/chunks/app/api/sessions/[sessionId]/route-5f5d429b1700dd0e.js +0 -1
  455. package/apps/web/.next/static/chunks/app/api/sessions/route-5f5d429b1700dd0e.js +0 -1
  456. package/apps/web/.next/static/chunks/app/api/skills/route-5f5d429b1700dd0e.js +0 -1
  457. package/apps/web/.next/static/chunks/app/api/terminal/port/route-5f5d429b1700dd0e.js +0 -1
  458. package/apps/web/.next/static/chunks/app/api/web-sessions/[id]/messages/route-5f5d429b1700dd0e.js +0 -1
  459. package/apps/web/.next/static/chunks/app/api/web-sessions/[id]/route-5f5d429b1700dd0e.js +0 -1
  460. package/apps/web/.next/static/chunks/app/api/web-sessions/route-5f5d429b1700dd0e.js +0 -1
  461. package/apps/web/.next/static/chunks/app/api/workspace/assets/[...path]/route-5f5d429b1700dd0e.js +0 -1
  462. package/apps/web/.next/static/chunks/app/api/workspace/browse/route-5f5d429b1700dd0e.js +0 -1
  463. package/apps/web/.next/static/chunks/app/api/workspace/browse-file/route-5f5d429b1700dd0e.js +0 -1
  464. package/apps/web/.next/static/chunks/app/api/workspace/context/route-5f5d429b1700dd0e.js +0 -1
  465. package/apps/web/.next/static/chunks/app/api/workspace/copy/route-5f5d429b1700dd0e.js +0 -1
  466. package/apps/web/.next/static/chunks/app/api/workspace/db/introspect/route-5f5d429b1700dd0e.js +0 -1
  467. package/apps/web/.next/static/chunks/app/api/workspace/db/query/route-5f5d429b1700dd0e.js +0 -1
  468. package/apps/web/.next/static/chunks/app/api/workspace/delete/route-5f5d429b1700dd0e.js +0 -1
  469. package/apps/web/.next/static/chunks/app/api/workspace/execute/route-5f5d429b1700dd0e.js +0 -1
  470. package/apps/web/.next/static/chunks/app/api/workspace/file/route-5f5d429b1700dd0e.js +0 -1
  471. package/apps/web/.next/static/chunks/app/api/workspace/init/route-5f5d429b1700dd0e.js +0 -1
  472. package/apps/web/.next/static/chunks/app/api/workspace/list/route-5f5d429b1700dd0e.js +0 -1
  473. package/apps/web/.next/static/chunks/app/api/workspace/mkdir/route-5f5d429b1700dd0e.js +0 -1
  474. package/apps/web/.next/static/chunks/app/api/workspace/move/route-5f5d429b1700dd0e.js +0 -1
  475. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/display-field/route-5f5d429b1700dd0e.js +0 -1
  476. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/[id]/route-5f5d429b1700dd0e.js +0 -1
  477. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/bulk-delete/route-5f5d429b1700dd0e.js +0 -1
  478. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/options/route-5f5d429b1700dd0e.js +0 -1
  479. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/entries/route-5f5d429b1700dd0e.js +0 -1
  480. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/[fieldId]/enum-rename/route-5f5d429b1700dd0e.js +0 -1
  481. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/[fieldId]/route-5f5d429b1700dd0e.js +0 -1
  482. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/fields/reorder/route-5f5d429b1700dd0e.js +0 -1
  483. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/route-5f5d429b1700dd0e.js +0 -1
  484. package/apps/web/.next/static/chunks/app/api/workspace/objects/[name]/views/route-5f5d429b1700dd0e.js +0 -1
  485. package/apps/web/.next/static/chunks/app/api/workspace/open-file/route-5f5d429b1700dd0e.js +0 -1
  486. package/apps/web/.next/static/chunks/app/api/workspace/path-info/route-5f5d429b1700dd0e.js +0 -1
  487. package/apps/web/.next/static/chunks/app/api/workspace/query/route-5f5d429b1700dd0e.js +0 -1
  488. package/apps/web/.next/static/chunks/app/api/workspace/raw-file/route-5f5d429b1700dd0e.js +0 -1
  489. package/apps/web/.next/static/chunks/app/api/workspace/rename/route-5f5d429b1700dd0e.js +0 -1
  490. package/apps/web/.next/static/chunks/app/api/workspace/reports/execute/route-5f5d429b1700dd0e.js +0 -1
  491. package/apps/web/.next/static/chunks/app/api/workspace/search-index/route-5f5d429b1700dd0e.js +0 -1
  492. package/apps/web/.next/static/chunks/app/api/workspace/suggest-files/route-5f5d429b1700dd0e.js +0 -1
  493. package/apps/web/.next/static/chunks/app/api/workspace/switch/route-5f5d429b1700dd0e.js +0 -1
  494. package/apps/web/.next/static/chunks/app/api/workspace/thumbnail/route-5f5d429b1700dd0e.js +0 -1
  495. package/apps/web/.next/static/chunks/app/api/workspace/tree/route-5f5d429b1700dd0e.js +0 -1
  496. package/apps/web/.next/static/chunks/app/api/workspace/upload/route-5f5d429b1700dd0e.js +0 -1
  497. package/apps/web/.next/static/chunks/app/api/workspace/virtual-file/route-5f5d429b1700dd0e.js +0 -1
  498. package/apps/web/.next/static/chunks/app/api/workspace/watch/route-5f5d429b1700dd0e.js +0 -1
  499. package/apps/web/.next/static/chunks/app/api/workspace/write-binary/route-5f5d429b1700dd0e.js +0 -1
  500. package/apps/web/.next/static/chunks/app/page-441fc26d2fd5ddf4.js +0 -1
  501. package/apps/web/.next/static/css/eb7b54c9778eb5c7.css +0 -1
  502. package/extensions/bluebubbles/node_modules/.bin/ironclaw +0 -21
  503. package/extensions/copilot-proxy/node_modules/.bin/ironclaw +0 -21
  504. package/extensions/diagnostics-otel/node_modules/.bin/ironclaw +0 -21
  505. package/extensions/discord/node_modules/.bin/ironclaw +0 -21
  506. package/extensions/feishu/node_modules/.bin/ironclaw +0 -21
  507. package/extensions/google-antigravity-auth/node_modules/.bin/ironclaw +0 -21
  508. package/extensions/google-gemini-cli-auth/node_modules/.bin/ironclaw +0 -21
  509. package/extensions/googlechat/node_modules/.bin/ironclaw +0 -21
  510. package/extensions/imessage/node_modules/.bin/ironclaw +0 -21
  511. package/extensions/irc/node_modules/.bin/ironclaw +0 -21
  512. package/extensions/line/node_modules/.bin/ironclaw +0 -21
  513. package/extensions/llm-task/node_modules/.bin/ironclaw +0 -21
  514. package/extensions/lobster/node_modules/.bin/ironclaw +0 -21
  515. package/extensions/matrix/node_modules/.bin/ironclaw +0 -21
  516. package/extensions/matrix/node_modules/.bin/markdown-it +0 -21
  517. package/extensions/mattermost/node_modules/.bin/ironclaw +0 -21
  518. package/extensions/memory-core/node_modules/.bin/ironclaw +0 -21
  519. package/extensions/memory-lancedb/node_modules/.bin/ironclaw +0 -21
  520. package/extensions/memory-lancedb/node_modules/.bin/openai +0 -21
  521. package/extensions/minimax-portal-auth/node_modules/.bin/ironclaw +0 -21
  522. package/extensions/msteams/node_modules/.bin/ironclaw +0 -21
  523. package/extensions/nextcloud-talk/node_modules/.bin/ironclaw +0 -21
  524. package/extensions/nostr/node_modules/.bin/ironclaw +0 -21
  525. package/extensions/open-prose/node_modules/.bin/ironclaw +0 -21
  526. package/extensions/signal/node_modules/.bin/ironclaw +0 -21
  527. package/extensions/slack/node_modules/.bin/ironclaw +0 -21
  528. package/extensions/synology-chat/node_modules/.bin/ironclaw +0 -21
  529. package/extensions/telegram/node_modules/.bin/ironclaw +0 -21
  530. package/extensions/tlon/node_modules/.bin/ironclaw +0 -21
  531. package/extensions/twitch/node_modules/.bin/ironclaw +0 -21
  532. package/extensions/voice-call/node_modules/.bin/ironclaw +0 -21
  533. package/extensions/whatsapp/node_modules/.bin/ironclaw +0 -21
  534. package/extensions/zalo/node_modules/.bin/ironclaw +0 -21
  535. package/extensions/zalouser/node_modules/.bin/ironclaw +0 -21
  536. /package/apps/web/.next/standalone/apps/web/.next/static/{aE8AIU_W3uqZ1tPsvA3GK → Y6vY097Dtp25kk2Mqqr07}/_ssgManifest.js +0 -0
  537. /package/apps/web/.next/standalone/apps/web/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/lib/index.js +0 -0
  538. /package/apps/web/.next/standalone/apps/web/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/versions.json +0 -0
  539. /package/apps/web/.next/standalone/apps/web/node_modules/@img/{sharp-darwin-arm64 → sharp-linux-x64}/LICENSE +0 -0
  540. /package/apps/web/.next/static/{aE8AIU_W3uqZ1tPsvA3GK → Y6vY097Dtp25kk2Mqqr07}/_ssgManifest.js +0 -0
@@ -1,5 +1,5 @@
1
- "use strict";exports.id=6426,exports.ids=[6426],exports.modules={76426:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{AD:()=>B,Be:()=>z,C9:()=>C,Cr:()=>s,F5:()=>H,Go:()=>u,KD:()=>A,QX:()=>y,ed:()=>t,j_:()=>G,pz:()=>x});var e=c(80481),f=c(76760),g=c(73024),h=c(51455),i=c(93349),j=c(80687),k=a([j]);j=(k.then?(await k)():k)[0];let U="NO_REPLY";function l(a){let b=a.trim();return!!b&&!!(RegExp(`^${U}\\W*$`).test(b)||U.startsWith(b)&&b.length>=2&&b.length<U.length)}function m(a){return!a||"object"!=typeof a||Array.isArray(a)?null:a}function n(a,b){if("string"!=typeof b||!b.trim())return null;let c=b.trim();if("string"==typeof a&&a.trim()){let b=a.trim();return c.toLowerCase().startsWith(`${b.toLowerCase()}/`)?c:`${b}/${c}`}return c}function o(a){if(!a)return"";let b="string"==typeof a.state?a.state:"";if("final"!==b)return"";let c=m(a.message);if(!c||"assistant"!==c.role)return"";let d=c.content;if("string"==typeof d)return d;if(!Array.isArray(d))return"";let e=[];for(let a of d){let b=m(a);if(!b)continue;let c="string"==typeof b.type?b.type:"";("text"===c||"output_text"===c)&&"string"==typeof b.text&&e.push(b.text)}return e.join("")}function p(){return(0,i.GY)()}let V="__openclaw_activeRuns",W=globalThis[V]??new Map;globalThis[V]=W;let X=new Map;async function q(a){try{return await (0,h.access)(a),!0}catch{return!1}}async function r(a,b){let c=(X.get(a)??Promise.resolve()).catch(()=>{}).then(b),d=c.then(()=>void 0,()=>void 0);X.set(a,d);try{return await c}finally{X.get(a)===d&&X.delete(a)}}function s(a){return W.get(a)}function t(a){let b=W.get(a);return void 0!==b&&("running"===b.status||"waiting-for-subagents"===b.status)}function u(){let a=[];for(let[b,c]of W)("running"===c.status||"waiting-for-subagents"===c.status)&&a.push(b);return a}function v(a){for(let[b,c]of W)if(c.isSubscribeOnly&&c.parentSessionId===a&&"running"===c.status)return!0;return!1}async function w(a){if(v(a))return!0;let b=(0,f.join)((0,i.We)(),"subagents","runs.json");if(!await q(b))return!1;try{let c=JSON.parse(await (0,h.readFile)(b,"utf-8")),d=c?.runs;if(!d)return!1;let e=`:web:${a}`,f=Date.now();for(let a of Object.values(d)){if(!("string"==typeof a.requesterSessionKey?a.requesterSessionKey:"").endsWith(e)||"number"==typeof a.endedAt)continue;let b="number"==typeof a.createdAt?a.createdAt:0;if(!(b>0)||!(f-b>9e5))return!0}}catch{}return!1}function x(a,b,c){let d=W.get(a);if(!d)return null;let e=c?.replay??!0;if(e)for(let a of d.eventBuffer)b(a);if("running"!==d.status&&"waiting-for-subagents"!==d.status){if(!e&&"error"===d.status)for(let a of d.eventBuffer)b(a);return b(null),()=>{}}return d.subscribers.add(b),()=>{d.subscribers.delete(b)}}function y(a,b){let c=W.get(a);if(!c?.isSubscribeOnly)return!1;if("running"===c.status)return!0;c.status="running",c._lifecycleEnded=!1,c._finalizeTimer&&(clearTimeout(c._finalizeTimer),c._finalizeTimer=null),M(c),O(c),K(c),c.accumulated={id:`assistant-${a}-${Date.now()}`,role:"assistant",parts:[]};let d=b?(0,j.KJ)(b,a):(0,j.k$)(a,c.lastGlobalSeq);return c._subscribeProcess=d,c.childProcess=d,D(c,d,a),!0}async function z(a,b){let c=W.get(a);if(!c)return!1;let d=b.id??`user-${Date.now()}-${Math.random().toString(36).slice(2)}`,e={type:"user-message",id:d,text:b.text};for(let a of(c.eventBuffer.push(e),c.subscribers))try{a(e)}catch{}try{let c=(0,f.join)(p(),`${a}.jsonl`);await I(),await r(c,async()=>{await q(c)||await (0,h.writeFile)(c,"");let a=(await (0,h.readFile)(c,"utf-8")).split("\n").filter(a=>a.trim());if(a.some(a=>{try{return JSON.parse(a).id===d}catch{return!1}}))return;let e=JSON.stringify({id:d,role:"user",content:b.text,parts:[{type:"text",text:b.text}],timestamp:new Date().toISOString()});await (0,h.writeFile)(c,[...a,e].join("\n")+"\n")})}catch{}return Q(c),!0}function A(a){let b=W.get(a);if(!b||"running"!==b.status&&"waiting-for-subagents"!==b.status)return!1;let c="waiting-for-subagents"===b.status;for(let d of(b.status="error",M(b),K(b),b.abortController.abort(),c||b.childProcess.kill("SIGTERM"),function(a){try{let b=W.get(a),c=b?.pinnedAgentId??(0,i.TY)(),d=b?.pinnedSessionKey??`agent:${c}:web:${a}`;(0,j.Gk)("chat.abort",{sessionKey:d},{timeoutMs:4e3}).catch(()=>{})}catch{}}(a),R(b).catch(()=>{}),b.subscribers))try{d(null)}catch{}if(b.subscribers.clear(),setTimeout(()=>{W.get(a)===b&&T(a)},3e4),!c){let a=setTimeout(()=>{try{b.childProcess.kill("SIGKILL")}catch{}},5e3);b.childProcess.once("close",()=>clearTimeout(a))}return!0}function B(a){let{sessionId:b,message:c,agentSessionId:d,overrideAgentId:f}=a,g=W.get(b);if(g?.status==="running")throw Error("Active run already exists for this session");g&&T(b);let h=f??(0,i.TY)(),k=d?`agent:${h}:web:${d}`:void 0,p=new AbortController,q=(0,j._v)(c,d,f),r={sessionId:b,childProcess:q,eventBuffer:[],subscribers:new Set,accumulated:{id:`assistant-${b}-${Date.now()}`,role:"assistant",parts:[]},status:"running",startedAt:Date.now(),exitCode:null,abortController:p,_persistTimer:null,_lastPersistedAt:0,lastGlobalSeq:0,_subscribeRetryTimer:null,_subscribeRetryAttempt:0,_waitingFinalizeTimer:null,pinnedAgentId:h,pinnedSessionKey:k};W.set(b,r);let s=()=>q.kill("SIGTERM");return p.signal.aborted?q.kill("SIGTERM"):(p.signal.addEventListener("abort",s,{once:!0}),q.on("close",()=>p.signal.removeEventListener("abort",s))),function(a){let b=a.childProcess,c=0,d=a=>`${a}-${Date.now()}-${++c}`,f="",g="",h=null,k=!1,p=!1,q=!1,r=!1,s=!1,t=!1,u=[],x=-1,y=-1,z=new Map,A=b=>{y<0?(a.accumulated.parts.push({type:"reasoning",text:b}),y=a.accumulated.parts.length-1):a.accumulated.parts[y].text+=b},B=b=>{x<0?(a.accumulated.parts.push({type:"text",text:b}),x=a.accumulated.parts.length-1):a.accumulated.parts[x].text+=b},D=b=>{for(let c of(a.eventBuffer.push(b),a.subscribers))try{c(b)}catch{}Q(a)},E=()=>{p&&(D({type:"reasoning-end",id:g}),p=!1,r=!1),h=null,y=-1},F=()=>{if(k){if(x>=0){let b=a.accumulated.parts[x];if(l(b.text))for(let[b,c]of(a.accumulated.parts.splice(x,1),z))c>x&&z.set(b,c-1)}D({type:"text-end",id:f}),k=!1}x=-1},G=a=>{r&&h===a||(E(),F(),g=d("status"),D({type:"reasoning-start",id:g}),D({type:"reasoning-delta",id:g,delta:a}),p=!0,r=!0,h=a,A(a))},H=a=>{E(),F();let b=d("text");D({type:"text-start",id:b}),D({type:"text-delta",id:b,delta:`[error] ${a}`}),D({type:"text-end",id:b}),B(`[error] ${a}`),x=-1,q=!0},I=(0,e.createInterface)({input:b.stdout}),J=a.pinnedAgentId??(0,i.TY)(),N=a.pinnedSessionKey??`agent:${J}:web:${a.sessionId}`;I.on("error",()=>{});let S=b=>{if("agent"===b.event&&"lifecycle"===b.stream&&b.data?.phase==="start"&&G("Preparing response..."),"agent"===b.event&&"thinking"===b.stream){let a="string"==typeof b.data?.delta?b.data.delta:void 0;a&&(r&&E(),p||(g=d("reasoning"),D({type:"reasoning-start",id:g}),p=!0),D({type:"reasoning-delta",id:g,delta:a}),A(a))}if("agent"===b.event&&"assistant"===b.stream){let a="string"==typeof b.data?.delta?b.data.delta:void 0,c=a||"string"!=typeof b.data?.text?void 0:b.data.text,e=a??c;e&&(E(),k||(f=d("text"),D({type:"text-start",id:f}),k=!0),q=!0,D({type:"text-delta",id:f,delta:e}),B(e));let g=b.data?.mediaUrls;if(Array.isArray(g)){for(let a of g)if("string"==typeof a&&a.trim()){E(),k||(f=d("text"),D({type:"text-start",id:f}),k=!0),q=!0;let b=`
1
+ "use strict";exports.id=6426,exports.ids=[6426],exports.modules={76426:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{AD:()=>C,Be:()=>A,C9:()=>D,Cr:()=>t,F5:()=>I,Go:()=>v,KD:()=>B,QX:()=>z,ed:()=>u,j_:()=>H,pz:()=>y});var e=c(80481),f=c(76760),g=c(73024),h=c(51455),i=c(93349),j=c(80687),k=a([j]);j=(k.then?(await k)():k)[0];let V="NO_REPLY";function l(a){let b=a.trim();return!!b&&!!(RegExp(`^${V}\\W*$`).test(b)||V.startsWith(b)&&b.length>=2&&b.length<V.length)}function m(a){return!a||"object"!=typeof a||Array.isArray(a)?null:a}function n(a,b){if("string"!=typeof b||!b.trim())return null;let c=b.trim();if("string"==typeof a&&a.trim()){let b=a.trim();return c.toLowerCase().startsWith(`${b.toLowerCase()}/`)?c:`${b}/${c}`}return c}function o(a){if(!a)return"";let b="string"==typeof a.state?a.state:"";if("final"!==b)return"";let c=m(a.message);if(!c||"assistant"!==c.role)return"";let d=c.content;if("string"==typeof d)return d;if(!Array.isArray(d))return"";let e=[];for(let a of d){let b=m(a);if(!b)continue;let c="string"==typeof b.type?b.type:"";("text"===c||"output_text"===c)&&"string"==typeof b.text&&e.push(b.text)}return e.join("")}function p(){return(0,i.GY)()}let W="__openclaw_activeRuns",X=globalThis[W]??new Map;globalThis[W]=X;let Y=new Map;async function q(a){try{return await (0,h.access)(a),!0}catch{return!1}}function r(a){let b=(0,f.resolve)(p()),c=(0,f.resolve)(b,(0,f.basename)(a)+".jsonl");if(!c.startsWith(b+"/"))throw Error("Invalid session id");return c}async function s(a,b){let c=(Y.get(a)??Promise.resolve()).catch(()=>{}).then(b),d=c.then(()=>void 0,()=>void 0);Y.set(a,d);try{return await c}finally{Y.get(a)===d&&Y.delete(a)}}function t(a){return X.get(a)}function u(a){let b=X.get(a);return void 0!==b&&("running"===b.status||"waiting-for-subagents"===b.status)}function v(){let a=[];for(let[b,c]of X)("running"===c.status||"waiting-for-subagents"===c.status)&&a.push(b);return a}function w(a){for(let[b,c]of X)if(c.isSubscribeOnly&&c.parentSessionId===a&&"running"===c.status)return!0;return!1}async function x(a){if(w(a))return!0;let b=(0,f.join)((0,i.We)(),"subagents","runs.json");if(!await q(b))return!1;try{let c=JSON.parse(await (0,h.readFile)(b,"utf-8")),d=c?.runs;if(!d)return!1;let e=`:web:${a}`,f=Date.now();for(let a of Object.values(d)){if(!("string"==typeof a.requesterSessionKey?a.requesterSessionKey:"").endsWith(e)||"number"==typeof a.endedAt)continue;let b="number"==typeof a.createdAt?a.createdAt:0;if(!(b>0)||!(f-b>9e5))return!0}}catch{}return!1}function y(a,b,c){let d=X.get(a);if(!d)return null;let e=c?.replay??!0;if(e)for(let a of d.eventBuffer)b(a);if("running"!==d.status&&"waiting-for-subagents"!==d.status){if(!e&&"error"===d.status)for(let a of d.eventBuffer)b(a);return b(null),()=>{}}return d.subscribers.add(b),()=>{d.subscribers.delete(b)}}function z(a,b){let c=X.get(a);if(!c?.isSubscribeOnly)return!1;if("running"===c.status)return!0;c.status="running",c._lifecycleEnded=!1,c._finalizeTimer&&(clearTimeout(c._finalizeTimer),c._finalizeTimer=null),N(c),P(c),L(c),c.accumulated={id:`assistant-${a}-${Date.now()}`,role:"assistant",parts:[]};let d=b?(0,j.KJ)(b,a):(0,j.k$)(a,c.lastGlobalSeq);return c._subscribeProcess=d,c.childProcess=d,E(c,d,a),!0}async function A(a,b){let c=X.get(a);if(!c)return!1;let d=b.id??`user-${Date.now()}-${Math.random().toString(36).slice(2)}`,e={type:"user-message",id:d,text:b.text};for(let a of(c.eventBuffer.push(e),c.subscribers))try{a(e)}catch{}try{let c=r(a);await J(),await s(c,async()=>{await q(c)||await (0,h.writeFile)(c,"");let a=(await (0,h.readFile)(c,"utf-8")).split("\n").filter(a=>a.trim());if(a.some(a=>{try{return JSON.parse(a).id===d}catch{return!1}}))return;let e=JSON.stringify({id:d,role:"user",content:b.text,parts:[{type:"text",text:b.text}],timestamp:new Date().toISOString()});await (0,h.writeFile)(c,[...a,e].join("\n")+"\n")})}catch{}return R(c),!0}function B(a){let b=X.get(a);if(!b||"running"!==b.status&&"waiting-for-subagents"!==b.status)return!1;let c="waiting-for-subagents"===b.status;for(let d of(b.status="error",N(b),L(b),b.abortController.abort(),c||b.childProcess.kill("SIGTERM"),function(a){try{let b=X.get(a),c=b?.pinnedAgentId??(0,i.TY)(),d=b?.pinnedSessionKey??`agent:${c}:web:${a}`;(0,j.Gk)("chat.abort",{sessionKey:d},{timeoutMs:4e3}).catch(()=>{})}catch{}}(a),S(b).catch(()=>{}),b.subscribers))try{d(null)}catch{}if(b.subscribers.clear(),setTimeout(()=>{X.get(a)===b&&U(a)},3e4),!c){let a=setTimeout(()=>{try{b.childProcess.kill("SIGKILL")}catch{}},5e3);b.childProcess.once("close",()=>clearTimeout(a))}return!0}function C(a){let{sessionId:b,message:c,agentSessionId:d,overrideAgentId:f}=a,g=X.get(b);if(g?.status==="running")throw Error("Active run already exists for this session");g&&U(b);let h=f??(0,i.TY)(),k=d?`agent:${h}:web:${d}`:void 0,p=new AbortController,q=(0,j._v)(c,d,f),r={sessionId:b,childProcess:q,eventBuffer:[],subscribers:new Set,accumulated:{id:`assistant-${b}-${Date.now()}`,role:"assistant",parts:[]},status:"running",startedAt:Date.now(),exitCode:null,abortController:p,_persistTimer:null,_lastPersistedAt:0,lastGlobalSeq:0,_subscribeRetryTimer:null,_subscribeRetryAttempt:0,_waitingFinalizeTimer:null,pinnedAgentId:h,pinnedSessionKey:k};X.set(b,r);let s=()=>q.kill("SIGTERM");return p.signal.aborted?q.kill("SIGTERM"):(p.signal.addEventListener("abort",s,{once:!0}),q.on("close",()=>p.signal.removeEventListener("abort",s))),function(a){let b=a.childProcess,c=0,d=a=>`${a}-${Date.now()}-${++c}`,f="",g="",h=null,k=!1,p=!1,q=!1,r=!1,s=!1,t=!1,u=[],v=-1,y=-1,z=new Map,A=b=>{y<0?(a.accumulated.parts.push({type:"reasoning",text:b}),y=a.accumulated.parts.length-1):a.accumulated.parts[y].text+=b},B=b=>{v<0?(a.accumulated.parts.push({type:"text",text:b}),v=a.accumulated.parts.length-1):a.accumulated.parts[v].text+=b},C=b=>{for(let c of(a.eventBuffer.push(b),a.subscribers))try{c(b)}catch{}R(a)},E=()=>{p&&(C({type:"reasoning-end",id:g}),p=!1,r=!1),h=null,y=-1},F=()=>{if(k){if(v>=0){let b=a.accumulated.parts[v];if(l(b.text))for(let[b,c]of(a.accumulated.parts.splice(v,1),z))c>v&&z.set(b,c-1)}C({type:"text-end",id:f}),k=!1}v=-1},G=a=>{r&&h===a||(E(),F(),g=d("status"),C({type:"reasoning-start",id:g}),C({type:"reasoning-delta",id:g,delta:a}),p=!0,r=!0,h=a,A(a))},H=a=>{E(),F();let b=d("text");C({type:"text-start",id:b}),C({type:"text-delta",id:b,delta:`[error] ${a}`}),C({type:"text-end",id:b}),B(`[error] ${a}`),v=-1,q=!0},I=(0,e.createInterface)({input:b.stdout}),J=a.pinnedAgentId??(0,i.TY)(),K=a.pinnedSessionKey??`agent:${J}:web:${a.sessionId}`;I.on("error",()=>{});let O=b=>{if("agent"===b.event&&"lifecycle"===b.stream&&b.data?.phase==="start"&&G("Preparing response..."),"agent"===b.event&&"thinking"===b.stream){let a="string"==typeof b.data?.delta?b.data.delta:void 0;a&&(r&&E(),p||(g=d("reasoning"),C({type:"reasoning-start",id:g}),p=!0),C({type:"reasoning-delta",id:g,delta:a}),A(a))}if("agent"===b.event&&"assistant"===b.stream){let a="string"==typeof b.data?.delta?b.data.delta:void 0,c=a||"string"!=typeof b.data?.text?void 0:b.data.text,e=a??c;e&&(E(),k||(f=d("text"),C({type:"text-start",id:f}),k=!0),q=!0,C({type:"text-delta",id:f,delta:e}),B(e));let g=b.data?.mediaUrls;if(Array.isArray(g)){for(let a of g)if("string"==typeof a&&a.trim()){E(),k||(f=d("text"),C({type:"text-start",id:f}),k=!0),q=!0;let b=`
2
2
  ![media](${a.trim()})
3
- `;D({type:"text-delta",id:f,delta:b}),B(b)}}if("string"==typeof b.data?.stopReason&&"error"===b.data.stopReason&&!t){t=!0;let a="string"==typeof b.data?.errorMessage?(0,j.kW)(b.data.errorMessage):(0,j.uE)(b.data)??"Agent stopped with an error";H(a)}}if("agent"===b.event&&"tool"===b.stream){let c="string"==typeof b.data?.phase?b.data.phase:void 0,d="string"==typeof b.data?.toolCallId?b.data.toolCallId:"",e="string"==typeof b.data?.name?b.data.name:"";if("start"===c){E(),F();let c=b.data?.args&&"object"==typeof b.data.args?b.data.args:{};D({type:"tool-input-start",toolCallId:d,toolName:e}),D({type:"tool-input-available",toolCallId:d,toolName:e,input:c}),a.accumulated.parts.push({type:"tool-invocation",toolCallId:d,toolName:e,args:c}),z.set(d,a.accumulated.parts.length-1)}else if("update"===c){let a=(0,j.Px)(b.data?.partialResult);if(a){let b=(0,j.m0)(a);D({type:"tool-output-partial",toolCallId:d,output:b})}}else if("result"===c){let c=b.data?.isError===!0,f=(0,j.Px)(b.data?.result);if(c){let b=f?.text||f?.details?.error||"Tool execution failed";D({type:"tool-output-error",toolCallId:d,errorText:b});let c=z.get(d);if(void 0!==c){let d=a.accumulated.parts[c];"tool-invocation"===d.type&&(d.errorText=b)}}else{let b=(0,j.m0)(f);D({type:"tool-output-available",toolCallId:d,output:b});let c=z.get(d);if(void 0!==c){let d=a.accumulated.parts[c];"tool-invocation"===d.type&&(d.result=b)}}if("sessions_spawn"===e&&!c){let b=f?.details?.childSessionKey;if(b){let c=z.has(d)?a.accumulated.parts[z.get(d)]?.args:void 0;C({sessionKey:b,parentSessionId:a.sessionId,task:c?.task??"Subagent task",label:c?.label})}}}}if("agent"===b.event&&"lifecycle"===b.stream&&(b.data?.phase==="fallback"||b.data?.phase==="fallback_cleared")){let a=b.data,c=n(a?.selectedProvider,a?.selectedModel)??n(a?.fromProvider,a?.fromModel),d=n(a?.activeProvider,a?.activeModel)??n(a?.toProvider,a?.toModel);if(c&&d){let b=a?.phase==="fallback_cleared",e="string"==typeof a?.reasonSummary?a.reasonSummary:"string"==typeof a?.reason?a.reason:void 0,f=b?`Restored to ${c}`:`Switched to ${d}${e?` (${e})`:""}`;G(f)}}if("chat"===b.event){let a=o(b.data);a&&a&&(E(),k||(f=d("text"),D({type:"text-start",id:f}),k=!0),q=!0,D({type:"text-delta",id:f,delta:a}),B(a),F())}if("agent"===b.event&&"compaction"===b.stream){let a="string"==typeof b.data?.phase?b.data.phase:void 0;if("start"===a)G("Optimizing session context...");else if("end"===a&&r)if(b.data?.willRetry===!0){let a="\nRetrying with compacted context...";D({type:"reasoning-delta",id:g,delta:a}),A(a)}else E()}"agent"===b.event&&"lifecycle"===b.stream&&b.data?.phase==="end"&&(E(),F()),"agent"!==b.event||"lifecycle"!==b.stream||b.data?.phase!=="error"||t||(t=!0,H((0,j.uE)(b.data)??"Agent encountered an error")),"error"!==b.event||t||(t=!0,H((0,j.uE)(b.data??b)??"An unknown error occurred"))},U=b=>{let c="number"==typeof b.globalSeq?b.globalSeq:void 0;if(void 0!==c){if(c<=a.lastGlobalSeq)return;a.lastGlobalSeq=c}let d=()=>{s||(G("Waiting for subagent results..."),s=!0),R(a).catch(()=>{})},e=()=>{if("waiting-for-subagents"===a.status||"running"===a.status){if(v(a.sessionId)){M(a),d();return}M(a),a._waitingFinalizeTimer=setTimeout(async()=>{if(a._waitingFinalizeTimer=null,"waiting-for-subagents"===a.status){if(await w(a.sessionId))return void d();L(a)}},5e3)}};if(M(a),S(b),"lifecycle"===b.stream&&b.data?.phase==="end"&&e(),"chat"===b.event){let a=b.data,c="string"==typeof a?.state?a.state:"",d=m(a?.message),f="string"==typeof d?.role?d.role:"";"final"===c&&"assistant"===f&&e()}};I.on("line",b=>{let c;if(!b.trim())return;try{c=JSON.parse(b)}catch{return}if(c.sessionKey&&c.sessionKey!==N)return;let d="number"==typeof c.globalSeq?c.globalSeq:void 0;void 0!==d&&d>a.lastGlobalSeq&&(a.lastGlobalSeq=d),S(c)}),b.on("close",b=>{if("running"!==a.status){a.exitCode=b;return}if(!t&&u.length>0){let a=u.join("").trim(),b=(0,j.e$)(a);b&&(t=!0,H(b))}E();let c=0===b||null===b;if(q||c)!q&&c?H("No response from agent."):F();else{let a=d("text");D({type:"text-start",id:a});let c=`[error] Agent exited with code ${b}. Check server logs for details.`;D({type:"text-delta",id:a,delta:c}),D({type:"text-end",id:a}),B(c)}a.exitCode=b;let f=v(a.sessionId);if(c&&f){a.status="waiting-for-subagents",s||(G("Waiting for subagent results..."),s=!0),R(a).catch(()=>{}),function a(b,c,d){K(b);let f=(0,j.k$)(c,b.lastGlobalSeq);b._subscribeProcess=f,(0,e.createInterface)({input:f.stdout}).on("line",a=>{let e;if(a.trim()){try{e=JSON.parse(a)}catch{return}e.sessionKey&&e.sessionKey!==c||((b._subscribeRetryAttempt??0)>0&&O(b),d(e))}}),f.on("close",()=>{b._subscribeProcess===f&&(b._subscribeProcess=null,"waiting-for-subagents"===b.status&&P(b,()=>{"waiting-for-subagents"!==b.status||b._subscribeProcess||a(b,c,d)}))}),f.on("error",a=>{console.error("[active-runs] Parent subscribe child error:",a)}),f.stderr?.on("data",a=>{console.error("[active-runs subscribe stderr]",a.toString())})}(a,N,U),setTimeout(()=>{"waiting-for-subagents"===a.status&&L(a)},6e5);return}for(let b of(a.status=c?"completed":"error",R(a).catch(()=>{}),a.subscribers))try{b(null)}catch{}a.subscribers.clear(),setTimeout(()=>{W.get(a.sessionId)===a&&T(a.sessionId)},3e4)}),b.on("error",b=>{if("running"!==a.status)return;console.error("[active-runs] Child process error:",b);let c=b instanceof Error?b.message:String(b);for(let b of(H(`Failed to start agent: ${c}`),a.status="error",R(a).catch(()=>{}),a.subscribers))try{b(null)}catch{}a.subscribers.clear(),setTimeout(()=>{W.get(a.sessionId)===a&&T(a.sessionId)},3e4)}),b.stderr?.on("data",a=>{let b=a.toString();u.push(b),console.error("[active-runs stderr]",b)})}(r),r}function C(a){let{sessionKey:b,parentSessionId:c,task:d,label:e}=a;if(W.has(b))return W.get(b);(0,j.Gk)("sessions.patch",{key:b,thinkingLevel:"high",verboseLevel:"full",reasoningLevel:"on"},{timeoutMs:4e3}).catch(()=>{});let f=new AbortController,g=(0,j.k$)(b,0),h={sessionId:b,childProcess:g,eventBuffer:[],subscribers:new Set,accumulated:{id:`assistant-${b}-${Date.now()}`,role:"assistant",parts:[]},status:"running",startedAt:Date.now(),exitCode:null,abortController:f,_persistTimer:null,_lastPersistedAt:0,lastGlobalSeq:0,sessionKey:b,parentSessionId:c,task:d,label:e,isSubscribeOnly:!0,_lifecycleEnded:!1,_finalizeTimer:null,_subscribeRetryTimer:null,_subscribeRetryAttempt:0,_waitingFinalizeTimer:null};return W.set(b,h),D(h,g,b),h}function D(a,b,c){let d=0,h=a=>`${a}-${Date.now()}-${++d}`,k="",m="",p=null,q=!1,r=!1,s=!1,t=!1,u={assistantChunks:0,toolStartCount:0},v=-1,w=-1,x=new Map,y=b=>{w<0?(a.accumulated.parts.push({type:"reasoning",text:b}),w=a.accumulated.parts.length-1):a.accumulated.parts[w].text+=b},z=b=>{v<0?(a.accumulated.parts.push({type:"text",text:b}),v=a.accumulated.parts.length-1):a.accumulated.parts[v].text+=b},A=b=>{for(let c of(a.eventBuffer.push(b),a.subscribers))try{c(b)}catch{}Q(a)},B=a=>{C(),F();let b=h("text");A({type:"text-start",id:b}),A({type:"text-delta",id:b,delta:`[error] ${a}`}),A({type:"text-end",id:b}),z(`[error] ${a}`)},C=()=>{r&&(A({type:"reasoning-end",id:m}),r=!1,s=!1),p=null,w=-1},F=()=>{if(q){let b=a.accumulated.parts[v];b?.type==="text"&&l(b.text)&&a.accumulated.parts.splice(v,1),A({type:"text-end",id:k}),q=!1}v=-1},G=a=>{s&&p===a||(C(),F(),m=h("status"),A({type:"reasoning-start",id:m}),A({type:"reasoning-delta",id:m,delta:a}),r=!0,s=!0,p=a)},H=b=>{if(u.toolStartCount>0)return;let d=function(a,b){let c=(0,i.We)(),d=b??(0,i.TY)(),e=(0,f.join)(c,"agents",d,"sessions","sessions.json");if(!(0,g.existsSync)(e))return null;let h=JSON.parse((0,g.readFileSync)(e,"utf-8"))[a],j="string"==typeof h?.sessionId?h.sessionId:null;if(!j)return null;let k=(0,f.join)(c,"agents",d,"sessions",`${j}.jsonl`);if(!(0,g.existsSync)(k))return null;let l=(0,g.readFileSync)(k,"utf-8").split("\n").filter(a=>a.trim()).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(Boolean),m=new Map,n=[];for(let a of l){if("message"!==a.type)continue;let b=a.message;if(!b)continue;let c="string"==typeof b.role?b.role:"",d=b.content;if("toolResult"===c&&"string"==typeof b.toolCallId){let a=Array.isArray(d)?d.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text).join("\n"):"string"==typeof d?d:"";m.set(b.toolCallId,{text:a.slice(0,500)});continue}if("assistant"!==c||!Array.isArray(d))continue;let e=[];for(let a of d)"toolCall"===a.type&&"string"==typeof a.id&&"string"==typeof a.name&&e.push({type:"tool-invocation",toolCallId:a.id,toolName:a.name,args:a.arguments??{}});e.length>0&&(n=e)}if(0===n.length)return null;let o=n.map(a=>{let b=m.get(a.toolCallId);return b?{...a,result:b}:a});return{sessionId:j,tools:o}}(c,a.pinnedAgentId);if(d)for(let b of d.tools){let c=x.get(b.toolCallId);if(void 0===c&&(C(),F(),A({type:"tool-input-start",toolCallId:b.toolCallId,toolName:b.toolName}),A({type:"tool-input-available",toolCallId:b.toolCallId,toolName:b.toolName,input:b.args??{}}),a.accumulated.parts.push({type:"tool-invocation",toolCallId:b.toolCallId,toolName:b.toolName,args:b.args??{}}),x.set(b.toolCallId,a.accumulated.parts.length-1)),!b.result)continue;let d=x.get(b.toolCallId);if(void 0===d)continue;let e=a.accumulated.parts[d];"tool-invocation"!==e.type||e.result||(e.result=b.result,A({type:"tool-output-available",toolCallId:b.toolCallId,output:b.result}))}};(0,e.createInterface)({input:b.stdout}).on("line",b=>{let d;if(!b.trim())return;try{d=JSON.parse(b)}catch{return}if(d.sessionKey&&d.sessionKey!==c)return;let e="number"==typeof d.globalSeq?d.globalSeq:void 0;if(void 0!==e){if(e<=a.lastGlobalSeq)return;a.lastGlobalSeq=e}(a._subscribeRetryAttempt??0)>0&&O(a),(b=>{if(("agent"!==b.event||"lifecycle"!==b.stream||b.data?.phase!=="end")&&(a._finalizeTimer&&(clearTimeout(a._finalizeTimer),a._finalizeTimer=null),a._lifecycleEnded=!1),"agent"===b.event&&"lifecycle"===b.stream&&b.data?.phase==="start"&&G("Preparing response..."),"agent"===b.event&&"thinking"===b.stream){let a="string"==typeof b.data?.delta?b.data.delta:void 0;a&&(s&&C(),r||(m=h("reasoning"),A({type:"reasoning-start",id:m}),r=!0),A({type:"reasoning-delta",id:m,delta:a}),y(a))}if("agent"===b.event&&"assistant"===b.stream){let a="string"==typeof b.data?.delta?b.data.delta:void 0,c=a||"string"!=typeof b.data?.text?void 0:b.data.text,d=a??c;d&&(u.assistantChunks+=1,0===u.toolStartCount&&(1===u.assistantChunks||u.assistantChunks%40==0)&&H("assistant-chunk"),C(),q||(k=h("text"),A({type:"text-start",id:k}),q=!0),A({type:"text-delta",id:k,delta:d}),z(d));let e=b.data?.mediaUrls;if(Array.isArray(e)){for(let a of e)if("string"==typeof a&&a.trim()){C(),q||(k=h("text"),A({type:"text-start",id:k}),q=!0);let b=`
3
+ `;C({type:"text-delta",id:f,delta:b}),B(b)}}if("string"==typeof b.data?.stopReason&&"error"===b.data.stopReason&&!t){t=!0;let a="string"==typeof b.data?.errorMessage?(0,j.kW)(b.data.errorMessage):(0,j.uE)(b.data)??"Agent stopped with an error";H(a)}}if("agent"===b.event&&"tool"===b.stream){let c="string"==typeof b.data?.phase?b.data.phase:void 0,d="string"==typeof b.data?.toolCallId?b.data.toolCallId:"",e="string"==typeof b.data?.name?b.data.name:"";if("start"===c){E(),F();let c=b.data?.args&&"object"==typeof b.data.args?b.data.args:{};C({type:"tool-input-start",toolCallId:d,toolName:e}),C({type:"tool-input-available",toolCallId:d,toolName:e,input:c}),a.accumulated.parts.push({type:"tool-invocation",toolCallId:d,toolName:e,args:c}),z.set(d,a.accumulated.parts.length-1)}else if("update"===c){let a=(0,j.Px)(b.data?.partialResult);if(a){let b=(0,j.m0)(a);C({type:"tool-output-partial",toolCallId:d,output:b})}}else if("result"===c){let c=b.data?.isError===!0,f=(0,j.Px)(b.data?.result);if(c){let b=f?.text||f?.details?.error||"Tool execution failed";C({type:"tool-output-error",toolCallId:d,errorText:b});let c=z.get(d);if(void 0!==c){let d=a.accumulated.parts[c];"tool-invocation"===d.type&&(d.errorText=b)}}else{let b=(0,j.m0)(f);C({type:"tool-output-available",toolCallId:d,output:b});let c=z.get(d);if(void 0!==c){let d=a.accumulated.parts[c];"tool-invocation"===d.type&&(d.result=b)}}if("sessions_spawn"===e&&!c){let b=f?.details?.childSessionKey;if(b){let c=z.has(d)?a.accumulated.parts[z.get(d)]?.args:void 0;D({sessionKey:b,parentSessionId:a.sessionId,task:c?.task??"Subagent task",label:c?.label})}}}}if("agent"===b.event&&"lifecycle"===b.stream&&(b.data?.phase==="fallback"||b.data?.phase==="fallback_cleared")){let a=b.data,c=n(a?.selectedProvider,a?.selectedModel)??n(a?.fromProvider,a?.fromModel),d=n(a?.activeProvider,a?.activeModel)??n(a?.toProvider,a?.toModel);if(c&&d){let b=a?.phase==="fallback_cleared",e="string"==typeof a?.reasonSummary?a.reasonSummary:"string"==typeof a?.reason?a.reason:void 0,f=b?`Restored to ${c}`:`Switched to ${d}${e?` (${e})`:""}`;G(f)}}if("chat"===b.event){let a=o(b.data);a&&a&&(E(),k||(f=d("text"),C({type:"text-start",id:f}),k=!0),q=!0,C({type:"text-delta",id:f,delta:a}),B(a),F())}if("agent"===b.event&&"compaction"===b.stream){let a="string"==typeof b.data?.phase?b.data.phase:void 0;if("start"===a)G("Optimizing session context...");else if("end"===a&&r)if(b.data?.willRetry===!0){let a="\nRetrying with compacted context...";C({type:"reasoning-delta",id:g,delta:a}),A(a)}else E()}"agent"===b.event&&"lifecycle"===b.stream&&b.data?.phase==="end"&&(E(),F()),"agent"!==b.event||"lifecycle"!==b.stream||b.data?.phase!=="error"||t||(t=!0,H((0,j.uE)(b.data)??"Agent encountered an error")),"error"!==b.event||t||(t=!0,H((0,j.uE)(b.data??b)??"An unknown error occurred"))},T=b=>{let c="number"==typeof b.globalSeq?b.globalSeq:void 0;if(void 0!==c){if(c<=a.lastGlobalSeq)return;a.lastGlobalSeq=c}let d=()=>{s||(G("Waiting for subagent results..."),s=!0),S(a).catch(()=>{})},e=()=>{if("waiting-for-subagents"===a.status||"running"===a.status){if(w(a.sessionId)){N(a),d();return}N(a),a._waitingFinalizeTimer=setTimeout(async()=>{if(a._waitingFinalizeTimer=null,"waiting-for-subagents"===a.status){if(await x(a.sessionId))return void d();M(a)}},5e3)}};if(N(a),O(b),"lifecycle"===b.stream&&b.data?.phase==="end"&&e(),"chat"===b.event){let a=b.data,c="string"==typeof a?.state?a.state:"",d=m(a?.message),f="string"==typeof d?.role?d.role:"";"final"===c&&"assistant"===f&&e()}};I.on("line",b=>{let c;if(!b.trim())return;try{c=JSON.parse(b)}catch{return}if(c.sessionKey&&c.sessionKey!==K)return;let d="number"==typeof c.globalSeq?c.globalSeq:void 0;void 0!==d&&d>a.lastGlobalSeq&&(a.lastGlobalSeq=d),O(c)}),b.on("close",b=>{if("running"!==a.status){a.exitCode=b;return}if(!t&&u.length>0){let a=u.join("").trim(),b=(0,j.e$)(a);b&&(t=!0,H(b))}E();let c=0===b||null===b;if(q||c)!q&&c?H("No response from agent."):F();else{let a=d("text");C({type:"text-start",id:a});let c=`[error] Agent exited with code ${b}. Check server logs for details.`;C({type:"text-delta",id:a,delta:c}),C({type:"text-end",id:a}),B(c)}a.exitCode=b;let f=w(a.sessionId);if(c&&f){a.status="waiting-for-subagents",s||(G("Waiting for subagent results..."),s=!0),S(a).catch(()=>{}),function a(b,c,d){L(b);let f=(0,j.k$)(c,b.lastGlobalSeq);b._subscribeProcess=f,(0,e.createInterface)({input:f.stdout}).on("line",a=>{let e;if(a.trim()){try{e=JSON.parse(a)}catch{return}e.sessionKey&&e.sessionKey!==c||((b._subscribeRetryAttempt??0)>0&&P(b),d(e))}}),f.on("close",()=>{b._subscribeProcess===f&&(b._subscribeProcess=null,"waiting-for-subagents"===b.status&&Q(b,()=>{"waiting-for-subagents"!==b.status||b._subscribeProcess||a(b,c,d)}))}),f.on("error",a=>{console.error("[active-runs] Parent subscribe child error:",a)}),f.stderr?.on("data",a=>{console.error("[active-runs subscribe stderr]",a.toString())})}(a,K,T),setTimeout(()=>{"waiting-for-subagents"===a.status&&M(a)},6e5);return}for(let b of(a.status=c?"completed":"error",S(a).catch(()=>{}),a.subscribers))try{b(null)}catch{}a.subscribers.clear(),setTimeout(()=>{X.get(a.sessionId)===a&&U(a.sessionId)},3e4)}),b.on("error",b=>{if("running"!==a.status)return;console.error("[active-runs] Child process error:",b);let c=b instanceof Error?b.message:String(b);for(let b of(H(`Failed to start agent: ${c}`),a.status="error",S(a).catch(()=>{}),a.subscribers))try{b(null)}catch{}a.subscribers.clear(),setTimeout(()=>{X.get(a.sessionId)===a&&U(a.sessionId)},3e4)}),b.stderr?.on("data",a=>{let b=a.toString();u.push(b),console.error("[active-runs stderr]",b)})}(r),r}function D(a){let{sessionKey:b,parentSessionId:c,task:d,label:e}=a;if(X.has(b))return X.get(b);(0,j.Gk)("sessions.patch",{key:b,thinkingLevel:"high",verboseLevel:"full",reasoningLevel:"on"},{timeoutMs:4e3}).catch(()=>{});let f=new AbortController,g=(0,j.k$)(b,0),h={sessionId:b,childProcess:g,eventBuffer:[],subscribers:new Set,accumulated:{id:`assistant-${b}-${Date.now()}`,role:"assistant",parts:[]},status:"running",startedAt:Date.now(),exitCode:null,abortController:f,_persistTimer:null,_lastPersistedAt:0,lastGlobalSeq:0,sessionKey:b,parentSessionId:c,task:d,label:e,isSubscribeOnly:!0,_lifecycleEnded:!1,_finalizeTimer:null,_subscribeRetryTimer:null,_subscribeRetryAttempt:0,_waitingFinalizeTimer:null};return X.set(b,h),E(h,g,b),h}function E(a,b,c){let d=0,h=a=>`${a}-${Date.now()}-${++d}`,k="",m="",p=null,q=!1,r=!1,s=!1,t=!1,u={assistantChunks:0,toolStartCount:0},v=-1,w=-1,x=new Map,y=b=>{w<0?(a.accumulated.parts.push({type:"reasoning",text:b}),w=a.accumulated.parts.length-1):a.accumulated.parts[w].text+=b},z=b=>{v<0?(a.accumulated.parts.push({type:"text",text:b}),v=a.accumulated.parts.length-1):a.accumulated.parts[v].text+=b},A=b=>{for(let c of(a.eventBuffer.push(b),a.subscribers))try{c(b)}catch{}R(a)},B=a=>{C(),D();let b=h("text");A({type:"text-start",id:b}),A({type:"text-delta",id:b,delta:`[error] ${a}`}),A({type:"text-end",id:b}),z(`[error] ${a}`)},C=()=>{r&&(A({type:"reasoning-end",id:m}),r=!1,s=!1),p=null,w=-1},D=()=>{if(q){let b=a.accumulated.parts[v];b?.type==="text"&&l(b.text)&&a.accumulated.parts.splice(v,1),A({type:"text-end",id:k}),q=!1}v=-1},G=a=>{s&&p===a||(C(),D(),m=h("status"),A({type:"reasoning-start",id:m}),A({type:"reasoning-delta",id:m,delta:a}),r=!0,s=!0,p=a)},H=b=>{if(u.toolStartCount>0)return;let d=function(a,b){let c=(0,i.We)(),d=b??(0,i.TY)(),e=(0,f.join)(c,"agents",d,"sessions","sessions.json");if(!(0,g.existsSync)(e))return null;let h=JSON.parse((0,g.readFileSync)(e,"utf-8"))[a],j="string"==typeof h?.sessionId?h.sessionId:null;if(!j)return null;let k=(0,f.join)(c,"agents",d,"sessions",`${j}.jsonl`);if(!(0,g.existsSync)(k))return null;let l=(0,g.readFileSync)(k,"utf-8").split("\n").filter(a=>a.trim()).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(Boolean),m=new Map,n=[];for(let a of l){if("message"!==a.type)continue;let b=a.message;if(!b)continue;let c="string"==typeof b.role?b.role:"",d=b.content;if("toolResult"===c&&"string"==typeof b.toolCallId){let a=Array.isArray(d)?d.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text).join("\n"):"string"==typeof d?d:"";m.set(b.toolCallId,{text:a.slice(0,500)});continue}if("assistant"!==c||!Array.isArray(d))continue;let e=[];for(let a of d)"toolCall"===a.type&&"string"==typeof a.id&&"string"==typeof a.name&&e.push({type:"tool-invocation",toolCallId:a.id,toolName:a.name,args:a.arguments??{}});e.length>0&&(n=e)}if(0===n.length)return null;let o=n.map(a=>{let b=m.get(a.toolCallId);return b?{...a,result:b}:a});return{sessionId:j,tools:o}}(c,a.pinnedAgentId);if(d)for(let b of d.tools){let c=x.get(b.toolCallId);if(void 0===c&&(C(),D(),A({type:"tool-input-start",toolCallId:b.toolCallId,toolName:b.toolName}),A({type:"tool-input-available",toolCallId:b.toolCallId,toolName:b.toolName,input:b.args??{}}),a.accumulated.parts.push({type:"tool-invocation",toolCallId:b.toolCallId,toolName:b.toolName,args:b.args??{}}),x.set(b.toolCallId,a.accumulated.parts.length-1)),!b.result)continue;let d=x.get(b.toolCallId);if(void 0===d)continue;let e=a.accumulated.parts[d];"tool-invocation"!==e.type||e.result||(e.result=b.result,A({type:"tool-output-available",toolCallId:b.toolCallId,output:b.result}))}};(0,e.createInterface)({input:b.stdout}).on("line",b=>{let d;if(!b.trim())return;try{d=JSON.parse(b)}catch{return}if(d.sessionKey&&d.sessionKey!==c)return;let e="number"==typeof d.globalSeq?d.globalSeq:void 0;if(void 0!==e){if(e<=a.lastGlobalSeq)return;a.lastGlobalSeq=e}(a._subscribeRetryAttempt??0)>0&&P(a),(b=>{if(("agent"!==b.event||"lifecycle"!==b.stream||b.data?.phase!=="end")&&(a._finalizeTimer&&(clearTimeout(a._finalizeTimer),a._finalizeTimer=null),a._lifecycleEnded=!1),"agent"===b.event&&"lifecycle"===b.stream&&b.data?.phase==="start"&&G("Preparing response..."),"agent"===b.event&&"thinking"===b.stream){let a="string"==typeof b.data?.delta?b.data.delta:void 0;a&&(s&&C(),r||(m=h("reasoning"),A({type:"reasoning-start",id:m}),r=!0),A({type:"reasoning-delta",id:m,delta:a}),y(a))}if("agent"===b.event&&"assistant"===b.stream){let a="string"==typeof b.data?.delta?b.data.delta:void 0,c=a||"string"!=typeof b.data?.text?void 0:b.data.text,d=a??c;d&&(u.assistantChunks+=1,0===u.toolStartCount&&(1===u.assistantChunks||u.assistantChunks%40==0)&&H("assistant-chunk"),C(),q||(k=h("text"),A({type:"text-start",id:k}),q=!0),A({type:"text-delta",id:k,delta:d}),z(d));let e=b.data?.mediaUrls;if(Array.isArray(e)){for(let a of e)if("string"==typeof a&&a.trim()){C(),q||(k=h("text"),A({type:"text-start",id:k}),q=!0);let b=`
4
4
  ![media](${a.trim()})
5
- `;A({type:"text-delta",id:k,delta:b}),z(b)}}if("string"==typeof b.data?.stopReason&&"error"===b.data.stopReason&&!t){t=!0;let a="string"==typeof b.data?.errorMessage?(0,j.kW)(b.data.errorMessage):(0,j.uE)(b.data)??"Agent stopped with an error";B(a)}}if("agent"===b.event&&"tool"===b.stream){let c="string"==typeof b.data?.phase?b.data.phase:void 0,d="string"==typeof b.data?.toolCallId?b.data.toolCallId:"",e="string"==typeof b.data?.name?b.data.name:"";if("start"===c){u.toolStartCount+=1,C(),F();let c=b.data?.args&&"object"==typeof b.data.args?b.data.args:{};A({type:"tool-input-start",toolCallId:d,toolName:e}),A({type:"tool-input-available",toolCallId:d,toolName:e,input:c}),a.accumulated.parts.push({type:"tool-invocation",toolCallId:d,toolName:e,args:c}),x.set(d,a.accumulated.parts.length-1)}else if("update"===c){let a=(0,j.Px)(b.data?.partialResult);if(a){let b=(0,j.m0)(a);A({type:"tool-output-partial",toolCallId:d,output:b})}}else if("result"===c){let c=b.data?.isError===!0,e=(0,j.Px)(b.data?.result);if(c){let b=e?.text||e?.details?.error||"Tool execution failed";A({type:"tool-output-error",toolCallId:d,errorText:b});let c=x.get(d);if(void 0!==c){let d=a.accumulated.parts[c];"tool-invocation"===d.type&&(d.errorText=b)}}else{let b=(0,j.m0)(e);A({type:"tool-output-available",toolCallId:d,output:b});let c=x.get(d);if(void 0!==c){let d=a.accumulated.parts[c];"tool-invocation"===d.type&&(d.result=b)}}}}if("agent"===b.event&&"lifecycle"===b.stream&&(b.data?.phase==="fallback"||b.data?.phase==="fallback_cleared")){let a=b.data,c=n(a?.selectedProvider,a?.selectedModel)??n(a?.fromProvider,a?.fromModel),d=n(a?.activeProvider,a?.activeModel)??n(a?.toProvider,a?.toModel);if(c&&d){let b=a?.phase==="fallback_cleared",e="string"==typeof a?.reasonSummary?a.reasonSummary:"string"==typeof a?.reason?a.reason:void 0,f=b?`Restored to ${c}`:`Switched to ${d}${e?` (${e})`:""}`;G(f)}}if("agent"===b.event&&"compaction"===b.stream){let a="string"==typeof b.data?.phase?b.data.phase:void 0;if("start"===a)G("Optimizing session context...");else if("end"===a&&s)if(b.data?.willRetry===!0){let a="\nRetrying with compacted context...";A({type:"reasoning-delta",id:m,delta:a}),y(a)}else C()}if("chat"===b.event){let a=o(b.data);a&&(C(),q||(k=h("text"),A({type:"text-start",id:k}),q=!0),A({type:"text-delta",id:k,delta:a}),z(a),F())}"agent"===b.event&&"lifecycle"===b.stream&&b.data?.phase==="end"&&(H("lifecycle-end"),C(),F(),a._lifecycleEnded=!0,a._finalizeTimer&&clearTimeout(a._finalizeTimer),a._finalizeTimer=setTimeout(()=>{a._finalizeTimer=null,"running"===a.status&&E(a)},750)),"agent"!==b.event||"lifecycle"!==b.stream||b.data?.phase!=="error"||t||(t=!0,B((0,j.uE)(b.data)??"Agent encountered an error"),E(a,"error")),"error"!==b.event||t||(t=!0,B((0,j.uE)(b.data??b)??"An unknown error occurred"))})(d)}),b.on("close",()=>{if(a._subscribeProcess===b&&(a._subscribeProcess=null,"running"===a.status)){if(a._lifecycleEnded){a._finalizeTimer&&(clearTimeout(a._finalizeTimer),a._finalizeTimer=null),E(a);return}P(a,()=>{if("running"===a.status&&!a._subscribeProcess){let b=(0,j.k$)(c,a.lastGlobalSeq);a._subscribeProcess=b,a.childProcess=b,D(a,b,c)}})}}),b.on("error",a=>{console.error("[active-runs] Subscribe child error:",a)}),b.stderr?.on("data",a=>{console.error("[active-runs subscribe stderr]",a.toString())}),a._subscribeProcess=b}function E(a,b="completed"){if("running"!==a.status)return;for(let c of(a._finalizeTimer&&(clearTimeout(a._finalizeTimer),a._finalizeTimer=null),M(a),O(a),a.status=b,R(a).catch(()=>{}),a.subscribers))try{c(null)}catch{}a.subscribers.clear(),K(a);let c=a.accumulated.parts.some(a=>"tool-invocation"===a.type);if(a.isSubscribeOnly&&a.sessionKey&&!c){let b=a.sessionKey,c=a.pinnedAgentId;setTimeout(()=>{F(b,c)},2e3)}let d=a.isSubscribeOnly?864e5:3e4;setTimeout(()=>{W.get(a.sessionId)===a&&T(a.sessionId)},d)}function F(a,b){try{let c=(0,i.We)(),d=b??(0,i.TY)(),e=(0,f.join)(c,"agents",d,"sessions","sessions.json");if(!(0,g.existsSync)(e))return;let h=JSON.parse((0,g.readFileSync)(e,"utf-8"))[a],j="string"==typeof h?.sessionId?h.sessionId:null;if(!j)return;let k=(0,f.join)(c,"agents",d,"sessions",`${j}.jsonl`);if(!(0,g.existsSync)(k))return;let l=(0,g.readFileSync)(k,"utf-8").split("\n").filter(a=>a.trim()).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(Boolean),m=new Map,n=[],o=new Map;for(let a of l){if("message"!==a.type)continue;let b=a.message;if(!b)continue;let c=b.content;if("user"===b.role&&(n=[]),"toolResult"===b.role&&"string"==typeof b.toolCallId){let a=Array.isArray(c)?c.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text).join("\n"):"string"==typeof c?c:"";m.set(b.toolCallId,{text:a.slice(0,500)})}if("assistant"!==b.role||!Array.isArray(c))continue;for(let a of c)"toolCall"===a.type&&"string"==typeof a.id&&"string"==typeof a.name&&n.push({type:"tool-invocation",toolCallId:a.id,toolName:a.name,args:a.arguments??{}});let d=c.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text.trim()).filter(Boolean);if(d.length>0&&n.length>0){let a=d.join("\n").slice(0,200);if(a.length>=10){let b=n.map(a=>{let b=m.get(a.toolCallId);return b?{...a,result:b}:a});o.set(a,b),n=[]}}}if(0===o.size)return;let q=(0,f.join)(p(),`${a}.jsonl`);if(!(0,g.existsSync)(q))return;let r=(0,g.readFileSync)(q,"utf-8").split("\n").filter(a=>a.trim()).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(Boolean),s=!1,t=r.map(a=>{if("assistant"!==a.role)return a;let b=a.parts??[{type:"text",text:a.content}];if(b.some(a=>"tool-invocation"===a.type))return a;let c=b.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text.trim()).filter(Boolean).join("\n").slice(0,200);if(c.length<10)return a;let d=o.get(c);if(!d||0===d.length)return a;let e=b.filter(a=>"text"===a.type),f=b.filter(a=>"text"!==a.type);return s=!0,{...a,parts:[...f,...d,...e]}});s&&(0,g.writeFileSync)(q,t.map(a=>JSON.stringify(a)).join("\n")+"\n")}catch{}}function G(a){a.includes(":subagent:")&&F(a)}async function H(a,b){await I();let c=(0,f.join)(p(),`${a}.jsonl`),d=JSON.stringify({id:b.id,role:"user",content:b.content,...b.parts?{parts:b.parts}:{},...b.html?{html:b.html}:{},timestamp:new Date().toISOString()}),e=!1;await r(c,async()=>{await q(c)||await (0,h.writeFile)(c,"");let a=(await (0,h.readFile)(c,"utf-8")).split("\n").filter(a=>a.trim());(e=a.some(a=>{try{return JSON.parse(a).id===b.id}catch{return!1}}))||await (0,h.writeFile)(c,[...a,d].join("\n")+"\n")}),e||await J(a,{incrementCount:1})}async function I(){await (0,h.mkdir)(p(),{recursive:!0})}async function J(a,b){try{let c=(0,f.join)(p(),"index.json");await I(),await r(c,async()=>{let d;if(!await q(c)){d=[{id:a,title:b.title||"New Chat",createdAt:Date.now(),updatedAt:Date.now(),messageCount:b.incrementCount||0}],await (0,h.writeFile)(c,JSON.stringify(d,null,2));return}let e=(d=JSON.parse(await (0,h.readFile)(c,"utf-8"))).find(b=>b.id===a);e||(e={id:a,title:b.title||"New Chat",createdAt:Date.now(),updatedAt:Date.now(),messageCount:0},d.unshift(e)),e.updatedAt=Date.now(),b.incrementCount&&(e.messageCount=(e.messageCount||0)+b.incrementCount),b.title&&(e.title=b.title),await (0,h.writeFile)(c,JSON.stringify(d,null,2))})}catch{}}function K(a){if(N(a),M(a),a._subscribeProcess){try{a._subscribeProcess.kill("SIGTERM")}catch{}a._subscribeProcess=null}}function L(a){if("waiting-for-subagents"===a.status){for(let b of(a.status="completed",M(a),O(a),K(a),R(a).catch(()=>{}),a.subscribers))try{b(null)}catch{}a.subscribers.clear(),setTimeout(()=>{W.get(a.sessionId)===a&&T(a.sessionId)},3e4)}}function M(a){a._waitingFinalizeTimer&&(clearTimeout(a._waitingFinalizeTimer),a._waitingFinalizeTimer=null)}function N(a){a._subscribeRetryTimer&&(clearTimeout(a._subscribeRetryTimer),a._subscribeRetryTimer=null)}function O(a){a._subscribeRetryAttempt=0,N(a)}function P(a,b){if(a._subscribeRetryTimer)return;let c=a._subscribeRetryAttempt??0,d=Math.min(5e3,300*2**c);a._subscribeRetryAttempt=c+1,a._subscribeRetryTimer=setTimeout(()=>{a._subscribeRetryTimer=null,b()},d)}function Q(a){if(a._persistTimer)return;let b=Date.now()-a._lastPersistedAt,c=Math.max(0,2e3-b);a._persistTimer=setTimeout(()=>{a._persistTimer=null,R(a).catch(()=>{})},c)}async function R(a){a._persistTimer&&(clearTimeout(a._persistTimer),a._persistTimer=null),a._lastPersistedAt=Date.now();let b=a.accumulated.parts;if(0===b.length)return;let c=b.filter(a=>"text"!==a.type||!l(a.text)),d=c.filter(a=>"text"===a.type).map(a=>a.text).join(""),e="running"===a.status||"waiting-for-subagents"===a.status,f={id:a.accumulated.id,role:"assistant",content:d,parts:c,timestamp:new Date().toISOString()};e&&(f._streaming=!0);try{await S(a.sessionId,f)}catch(a){console.error("[active-runs] Persistence error:",a)}}async function S(a,b){await I();let c=(0,f.join)(p(),`${a}.jsonl`),d=b.id,e=!1;await r(c,async()=>{await q(c)||await (0,h.writeFile)(c,"");let a=(await (0,h.readFile)(c,"utf-8")).split("\n").filter(a=>a.trim()).map(a=>{try{if(JSON.parse(a).id===d)return e=!0,JSON.stringify(b)}catch{}return a});e||a.push(JSON.stringify(b)),await (0,h.writeFile)(c,a.join("\n")+"\n")}),a.includes(":subagent:")||(e?await J(a,{}):await J(a,{incrementCount:1}))}function T(a){let b=W.get(a);b&&(b._persistTimer&&clearTimeout(b._persistTimer),M(b),K(b),W.delete(a))}d()}catch(a){d(a)}})}};
5
+ `;A({type:"text-delta",id:k,delta:b}),z(b)}}if("string"==typeof b.data?.stopReason&&"error"===b.data.stopReason&&!t){t=!0;let a="string"==typeof b.data?.errorMessage?(0,j.kW)(b.data.errorMessage):(0,j.uE)(b.data)??"Agent stopped with an error";B(a)}}if("agent"===b.event&&"tool"===b.stream){let c="string"==typeof b.data?.phase?b.data.phase:void 0,d="string"==typeof b.data?.toolCallId?b.data.toolCallId:"",e="string"==typeof b.data?.name?b.data.name:"";if("start"===c){u.toolStartCount+=1,C(),D();let c=b.data?.args&&"object"==typeof b.data.args?b.data.args:{};A({type:"tool-input-start",toolCallId:d,toolName:e}),A({type:"tool-input-available",toolCallId:d,toolName:e,input:c}),a.accumulated.parts.push({type:"tool-invocation",toolCallId:d,toolName:e,args:c}),x.set(d,a.accumulated.parts.length-1)}else if("update"===c){let a=(0,j.Px)(b.data?.partialResult);if(a){let b=(0,j.m0)(a);A({type:"tool-output-partial",toolCallId:d,output:b})}}else if("result"===c){let c=b.data?.isError===!0,e=(0,j.Px)(b.data?.result);if(c){let b=e?.text||e?.details?.error||"Tool execution failed";A({type:"tool-output-error",toolCallId:d,errorText:b});let c=x.get(d);if(void 0!==c){let d=a.accumulated.parts[c];"tool-invocation"===d.type&&(d.errorText=b)}}else{let b=(0,j.m0)(e);A({type:"tool-output-available",toolCallId:d,output:b});let c=x.get(d);if(void 0!==c){let d=a.accumulated.parts[c];"tool-invocation"===d.type&&(d.result=b)}}}}if("agent"===b.event&&"lifecycle"===b.stream&&(b.data?.phase==="fallback"||b.data?.phase==="fallback_cleared")){let a=b.data,c=n(a?.selectedProvider,a?.selectedModel)??n(a?.fromProvider,a?.fromModel),d=n(a?.activeProvider,a?.activeModel)??n(a?.toProvider,a?.toModel);if(c&&d){let b=a?.phase==="fallback_cleared",e="string"==typeof a?.reasonSummary?a.reasonSummary:"string"==typeof a?.reason?a.reason:void 0,f=b?`Restored to ${c}`:`Switched to ${d}${e?` (${e})`:""}`;G(f)}}if("agent"===b.event&&"compaction"===b.stream){let a="string"==typeof b.data?.phase?b.data.phase:void 0;if("start"===a)G("Optimizing session context...");else if("end"===a&&s)if(b.data?.willRetry===!0){let a="\nRetrying with compacted context...";A({type:"reasoning-delta",id:m,delta:a}),y(a)}else C()}if("chat"===b.event){let a=o(b.data);a&&(C(),q||(k=h("text"),A({type:"text-start",id:k}),q=!0),A({type:"text-delta",id:k,delta:a}),z(a),D())}"agent"===b.event&&"lifecycle"===b.stream&&b.data?.phase==="end"&&(H("lifecycle-end"),C(),D(),a._lifecycleEnded=!0,a._finalizeTimer&&clearTimeout(a._finalizeTimer),a._finalizeTimer=setTimeout(()=>{a._finalizeTimer=null,"running"===a.status&&F(a)},750)),"agent"!==b.event||"lifecycle"!==b.stream||b.data?.phase!=="error"||t||(t=!0,B((0,j.uE)(b.data)??"Agent encountered an error"),F(a,"error")),"error"!==b.event||t||(t=!0,B((0,j.uE)(b.data??b)??"An unknown error occurred"))})(d)}),b.on("close",()=>{if(a._subscribeProcess===b&&(a._subscribeProcess=null,"running"===a.status)){if(a._lifecycleEnded){a._finalizeTimer&&(clearTimeout(a._finalizeTimer),a._finalizeTimer=null),F(a);return}Q(a,()=>{if("running"===a.status&&!a._subscribeProcess){let b=(0,j.k$)(c,a.lastGlobalSeq);a._subscribeProcess=b,a.childProcess=b,E(a,b,c)}})}}),b.on("error",a=>{console.error("[active-runs] Subscribe child error:",a)}),b.stderr?.on("data",a=>{console.error("[active-runs subscribe stderr]",a.toString())}),a._subscribeProcess=b}function F(a,b="completed"){if("running"!==a.status)return;for(let c of(a._finalizeTimer&&(clearTimeout(a._finalizeTimer),a._finalizeTimer=null),N(a),P(a),a.status=b,S(a).catch(()=>{}),a.subscribers))try{c(null)}catch{}a.subscribers.clear(),L(a);let c=a.accumulated.parts.some(a=>"tool-invocation"===a.type);if(a.isSubscribeOnly&&a.sessionKey&&!c){let b=a.sessionKey,c=a.pinnedAgentId;setTimeout(()=>{G(b,c)},2e3)}let d=a.isSubscribeOnly?864e5:3e4;setTimeout(()=>{X.get(a.sessionId)===a&&U(a.sessionId)},d)}function G(a,b){try{let c=(0,i.We)(),d=b??(0,i.TY)(),e=(0,f.join)(c,"agents",d,"sessions","sessions.json");if(!(0,g.existsSync)(e))return;let h=JSON.parse((0,g.readFileSync)(e,"utf-8"))[a],j="string"==typeof h?.sessionId?h.sessionId:null;if(!j)return;let k=(0,f.join)(c,"agents",d,"sessions",`${j}.jsonl`);if(!(0,g.existsSync)(k))return;let l=(0,g.readFileSync)(k,"utf-8").split("\n").filter(a=>a.trim()).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(Boolean),m=new Map,n=[],o=new Map;for(let a of l){if("message"!==a.type)continue;let b=a.message;if(!b)continue;let c=b.content;if("user"===b.role&&(n=[]),"toolResult"===b.role&&"string"==typeof b.toolCallId){let a=Array.isArray(c)?c.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text).join("\n"):"string"==typeof c?c:"";m.set(b.toolCallId,{text:a.slice(0,500)})}if("assistant"!==b.role||!Array.isArray(c))continue;for(let a of c)"toolCall"===a.type&&"string"==typeof a.id&&"string"==typeof a.name&&n.push({type:"tool-invocation",toolCallId:a.id,toolName:a.name,args:a.arguments??{}});let d=c.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text.trim()).filter(Boolean);if(d.length>0&&n.length>0){let a=d.join("\n").slice(0,200);if(a.length>=10){let b=n.map(a=>{let b=m.get(a.toolCallId);return b?{...a,result:b}:a});o.set(a,b),n=[]}}}if(0===o.size)return;let p=r(a);if(!(0,g.existsSync)(p))return;let q=(0,g.readFileSync)(p,"utf-8").split("\n").filter(a=>a.trim()).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(Boolean),s=!1,t=q.map(a=>{if("assistant"!==a.role)return a;let b=a.parts??[{type:"text",text:a.content}];if(b.some(a=>"tool-invocation"===a.type))return a;let c=b.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text.trim()).filter(Boolean).join("\n").slice(0,200);if(c.length<10)return a;let d=o.get(c);if(!d||0===d.length)return a;let e=b.filter(a=>"text"===a.type),f=b.filter(a=>"text"!==a.type);return s=!0,{...a,parts:[...f,...d,...e]}});s&&(0,g.writeFileSync)(p,t.map(a=>JSON.stringify(a)).join("\n")+"\n")}catch{}}function H(a){a.includes(":subagent:")&&G(a)}async function I(a,b){await J();let c=r(a),d=JSON.stringify({id:b.id,role:"user",content:b.content,...b.parts?{parts:b.parts}:{},...b.html?{html:b.html}:{},timestamp:new Date().toISOString()}),e=!1;await s(c,async()=>{await q(c)||await (0,h.writeFile)(c,"");let a=(await (0,h.readFile)(c,"utf-8")).split("\n").filter(a=>a.trim());(e=a.some(a=>{try{return JSON.parse(a).id===b.id}catch{return!1}}))||await (0,h.writeFile)(c,[...a,d].join("\n")+"\n")}),e||await K(a,{incrementCount:1})}async function J(){await (0,h.mkdir)(p(),{recursive:!0})}async function K(a,b){try{let c=(0,f.join)(p(),"index.json");await J(),await s(c,async()=>{let d;if(!await q(c)){d=[{id:a,title:b.title||"New Chat",createdAt:Date.now(),updatedAt:Date.now(),messageCount:b.incrementCount||0}],await (0,h.writeFile)(c,JSON.stringify(d,null,2));return}let e=(d=JSON.parse(await (0,h.readFile)(c,"utf-8"))).find(b=>b.id===a);e||(e={id:a,title:b.title||"New Chat",createdAt:Date.now(),updatedAt:Date.now(),messageCount:0},d.unshift(e)),e.updatedAt=Date.now(),b.incrementCount&&(e.messageCount=(e.messageCount||0)+b.incrementCount),b.title&&(e.title=b.title),await (0,h.writeFile)(c,JSON.stringify(d,null,2))})}catch{}}function L(a){if(O(a),N(a),a._subscribeProcess){try{a._subscribeProcess.kill("SIGTERM")}catch{}a._subscribeProcess=null}}function M(a){if("waiting-for-subagents"===a.status){for(let b of(a.status="completed",N(a),P(a),L(a),S(a).catch(()=>{}),a.subscribers))try{b(null)}catch{}a.subscribers.clear(),setTimeout(()=>{X.get(a.sessionId)===a&&U(a.sessionId)},3e4)}}function N(a){a._waitingFinalizeTimer&&(clearTimeout(a._waitingFinalizeTimer),a._waitingFinalizeTimer=null)}function O(a){a._subscribeRetryTimer&&(clearTimeout(a._subscribeRetryTimer),a._subscribeRetryTimer=null)}function P(a){a._subscribeRetryAttempt=0,O(a)}function Q(a,b){if(a._subscribeRetryTimer)return;let c=a._subscribeRetryAttempt??0,d=Math.min(5e3,300*2**c);a._subscribeRetryAttempt=c+1,a._subscribeRetryTimer=setTimeout(()=>{a._subscribeRetryTimer=null,b()},d)}function R(a){if(a._persistTimer)return;let b=Date.now()-a._lastPersistedAt,c=Math.max(0,2e3-b);a._persistTimer=setTimeout(()=>{a._persistTimer=null,S(a).catch(()=>{})},c)}async function S(a){a._persistTimer&&(clearTimeout(a._persistTimer),a._persistTimer=null),a._lastPersistedAt=Date.now();let b=a.accumulated.parts;if(0===b.length)return;let c=b.filter(a=>"text"!==a.type||!l(a.text)),d=c.filter(a=>"text"===a.type).map(a=>a.text).join(""),e="running"===a.status||"waiting-for-subagents"===a.status,f={id:a.accumulated.id,role:"assistant",content:d,parts:c,timestamp:new Date().toISOString()};e&&(f._streaming=!0);try{await T(a.sessionId,f)}catch(a){console.error("[active-runs] Persistence error:",a)}}async function T(a,b){await J();let c=r(a),d=b.id,e=!1;await s(c,async()=>{await q(c)||await (0,h.writeFile)(c,"");let a=(await (0,h.readFile)(c,"utf-8")).split("\n").filter(a=>a.trim()).map(a=>{try{if(JSON.parse(a).id===d)return e=!0,JSON.stringify(b)}catch{}return a});e||a.push(JSON.stringify(b)),await (0,h.writeFile)(c,a.join("\n")+"\n")}),a.includes(":subagent:")||(e?await K(a,{}):await K(a,{incrementCount:1}))}function U(a){let b=X.get(a);b&&(b._persistTimer&&clearTimeout(b._persistTimer),N(b),L(b),X.delete(a))}d()}catch(a){d(a)}})}};
@@ -0,0 +1 @@
1
+ exports.id=9177,exports.ids=[9177],exports.modules={9549:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>l,dynamic:()=>k,metadata:()=>i,viewport:()=>j});var d=c(22885),e=c(96736),f=c(31906),g=c(43182),h=c(79554);c(79341);let i={title:"DenchClaw",description:"AI Workspace with an agent that connects to your apps and does the work for you"},j={width:"device-width",initialScale:1,maximumScale:1},k="force-dynamic";function l({children:a}){let b=(0,g.Cl)(),c=(0,g.qU)(),i=(0,g._A)();return(0,d.jsxs)("html",{lang:"en",suppressHydrationWarning:!0,children:[(0,d.jsxs)("head",{children:[(0,d.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,d.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,d.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap",rel:"stylesheet"})]}),(0,d.jsx)("body",{className:"antialiased",children:(0,d.jsx)(f.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:(0,d.jsx)(e.Suspense,{fallback:null,children:(0,d.jsx)(h.PostHogProvider,{anonymousId:b,personInfo:c??void 0,privacyMode:i,children:a})})})})]})}},31294:(a,b,c)=>{Promise.resolve().then(c.bind(c,48752)),Promise.resolve().then(c.bind(c,26948))},36022:(a,b,c)=>{Promise.resolve().then(c.bind(c,79554)),Promise.resolve().then(c.bind(c,31906))},41579:(a,b,c)=>{"use strict";c.d(b,{V:()=>j});var d=c(36927),e=c(15962),f=[[1,8],[2,16],[4,32],[64,128]];function g(a){let b=a.length,c=a[0]?a[0].length:0,d=Math.ceil(c/2),e="";for(let g=0;g<d;g++){let d=10240;for(let e=0;e<4&&e<b;e++)for(let b=0;b<2;b++){let h=2*g+b;h<c&&a[e]&&a[e][h]&&(d|=f[e][b])}e+=String.fromCodePoint(d)}return e}function h(a,b){return a<=0||b<=0?[]:Array.from({length:a},()=>Array(b).fill(!1))}var i={braille:{frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"],interval:80},braillewave:{frames:["⠁⠂⠄⡀","⠂⠄⡀⢀","⠄⡀⢀⠠","⡀⢀⠠⠐","⢀⠠⠐⠈","⠠⠐⠈⠁","⠐⠈⠁⠂","⠈⠁⠂⠄"],interval:100},dna:{frames:["⠋⠉⠙⠚","⠉⠙⠚⠒","⠙⠚⠒⠂","⠚⠒⠂⠂","⠒⠂⠂⠒","⠂⠂⠒⠲","⠂⠒⠲⠴","⠒⠲⠴⠤","⠲⠴⠤⠄","⠴⠤⠄⠋","⠤⠄⠋⠉","⠄⠋⠉⠙"],interval:80},scan:{frames:function(){let a=[];for(let b=-1;b<9;b++){let c=h(4,8);for(let a=0;a<4;a++)for(let d=0;d<8;d++)(d===b||d===b-1)&&(c[a][d]=!0);a.push(g(c))}return a}(),interval:70},rain:{frames:function(){let a=[],b=[0,3,1,5,2,7,4,6];for(let c=0;c<12;c++){let d=h(4,8);for(let a=0;a<8;a++){let e=(c+b[a])%6;e<4&&(d[e][a]=!0)}a.push(g(d))}return a}(),interval:100},scanline:{frames:function(){let a=[];for(let b of[0,1,2,3,2,1]){let c=h(4,6);for(let a=0;a<6;a++)c[b][a]=!0,b>0&&(c[b-1][a]=a%2==0);a.push(g(c))}return a}(),interval:120},pulse:{frames:function(){let a=[];for(let b of[.5,1.2,2,3,3.5]){let c=h(4,6);for(let a=0;a<4;a++)for(let d=0;d<6;d++).9>Math.abs(Math.sqrt((d-2.5)**2+(a-1.5)**2)-b)&&(c[a][d]=!0);a.push(g(c))}return a}(),interval:180},snake:{frames:function(){let a=[];for(let b=0;b<4;b++)if(b%2==0)for(let c=0;c<4;c++)a.push([b,c]);else for(let c=3;c>=0;c--)a.push([b,c]);let b=[];for(let c=0;c<a.length;c++){let d=h(4,4);for(let b=0;b<4;b++){let e=(c-b+a.length)%a.length;d[a[e][0]][a[e][1]]=!0}b.push(g(d))}return b}(),interval:80},sparkle:{frames:function(){let a=[];for(let b of[[1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,1,0,0,0,0,1,0,0],[0,1,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,0,0,1,0,1,0,0,0,0,1,0,1,0,1,0],[0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,1,0,0,0,1],[1,0,0,0,0,0,1,1,0,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0],[0,0,0,1,1,0,0,0,0,1,0,0,0,1,0,1,1,0,0,1,0,0,0,0,0,1,0,0,0,1,0,1],[0,1,1,0,0,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,1,0,0,0]]){let c=h(4,8);for(let a=0;a<4;a++)for(let d=0;d<8;d++)c[a][d]=!!b[8*a+d];a.push(g(c))}return a}(),interval:150},cascade:{frames:function(){let a=[];for(let b=-2;b<12;b++){let c=h(4,8);for(let a=0;a<4;a++)for(let d=0;d<8;d++){let e=d+a;(e===b||e===b-1)&&(c[a][d]=!0)}a.push(g(c))}return a}(),interval:60},columns:{frames:function(){let a=[];for(let b=0;b<6;b++)for(let c=3;c>=0;c--){let d=h(4,6);for(let a=0;a<b;a++)for(let b=0;b<4;b++)d[b][a]=!0;for(let a=c;a<4;a++)d[a][b]=!0;a.push(g(d))}let b=h(4,6);for(let a=0;a<4;a++)for(let c=0;c<6;c++)b[a][c]=!0;return a.push(g(b)),a.push(g(h(4,6))),a}(),interval:60},orbit:{frames:function(){let a=[[0,0],[0,1],[1,1],[2,1],[3,1],[3,0],[2,0],[1,0]],b=[];for(let c=0;c<a.length;c++){let d=h(4,2);d[a[c][0]][a[c][1]]=!0;let e=(c-1+a.length)%a.length;d[a[e][0]][a[e][1]]=!0,b.push(g(d))}return b}(),interval:100},breathe:{frames:function(){let a=[[],[[1,0]],[[0,1],[2,0]],[[0,0],[1,1],[3,0]],[[0,0],[1,1],[2,0],[3,1]],[[0,0],[0,1],[1,1],[2,0],[3,1]],[[0,0],[0,1],[1,0],[2,1],[3,0],[3,1]],[[0,0],[0,1],[1,0],[1,1],[2,0],[3,0],[3,1]],[[0,0],[0,1],[1,0],[1,1],[2,0],[2,1],[3,0],[3,1]]],b=[];for(let c of[...a,...a.slice().reverse().slice(1)]){let a=h(4,2);for(let[b,d]of c)a[b][d]=!0;b.push(g(a))}return b}(),interval:100},waverows:{frames:function(){let a=[];for(let b=0;b<16;b++){let c=h(4,8);for(let a=0;a<8;a++){let d=Math.round((Math.sin(.8*(b-.5*a))+1)/2*3);c[d][a]=!0,d>0&&(c[d-1][a]=(b+a)%3==0)}a.push(g(c))}return a}(),interval:90},checkerboard:{frames:function(){let a=[];for(let b=0;b<4;b++){let c=h(4,6);for(let a=0;a<4;a++)for(let d=0;d<6;d++)b<2?c[a][d]=(a+d+b)%2==0:c[a][d]=(a+d+b)%3==0;a.push(g(c))}return a}(),interval:250},helix:{frames:function(){let a=[];for(let b=0;b<16;b++){let c=h(4,8);for(let a=0;a<8;a++){let d=Math.PI/4*(b+a),e=Math.round((Math.sin(d)+1)/2*3),f=Math.round((Math.sin(d+Math.PI)+1)/2*3);c[e][a]=!0,c[f][a]=!0}a.push(g(c))}return a}(),interval:80},fillsweep:{frames:function(){let a=[];for(let b=3;b>=0;b--){let c=h(4,4);for(let a=b;a<4;a++)for(let b=0;b<4;b++)c[a][b]=!0;a.push(g(c))}let b=h(4,4);for(let a=0;a<4;a++)for(let c=0;c<4;c++)b[a][c]=!0;a.push(g(b)),a.push(g(b));for(let b=0;b<4;b++){let c=h(4,4);for(let a=b+1;a<4;a++)for(let b=0;b<4;b++)c[a][b]=!0;a.push(g(c))}return a.push(g(h(4,4))),a}(),interval:100},diagswipe:{frames:function(){let a=[];for(let b=0;b<=6;b++){let c=h(4,4);for(let a=0;a<4;a++)for(let d=0;d<4;d++)a+d<=b&&(c[a][d]=!0);a.push(g(c))}let b=h(4,4);for(let a=0;a<4;a++)for(let c=0;c<4;c++)b[a][c]=!0;a.push(g(b));for(let b=0;b<=6;b++){let c=h(4,4);for(let a=0;a<4;a++)for(let d=0;d<4;d++)a+d>b&&(c[a][d]=!0);a.push(g(c))}return a.push(g(h(4,4))),a}(),interval:60}};function j({name:a="braille",children:b,className:c,style:f}){let[g,h]=(0,e.useState)(0),j=i[a];return(0,d.jsxs)("span",{className:c,style:{fontFamily:"monospace",...f},children:[j.frames[g],null!=b&&(0,d.jsxs)(d.Fragment,{children:[" ",b]})]})}},43182:(a,b,c)=>{"use strict";let d,e;c.d(b,{Cl:()=>n,Hk:()=>r,_A:()=>p,qU:()=>o});var f=c(77598),g=c(73024),h=c(48161),i=c(76760),j=c(53536);let k="phc_Nt8s1Ny8062TY9aKT8LWiB4nBuoHNYQXRU9MypWfQCW",l=null,m=null;function n(){if(m)return m;try{let a=(0,i.join)(process.env.HOME||(0,h.homedir)(),".openclaw-dench"),b=(0,i.join)(a,"telemetry.json"),c={};if((0,g.existsSync)(b)&&(c=JSON.parse((0,g.readFileSync)(b,"utf-8"))),"string"==typeof c.anonymousId&&c.anonymousId)return m=c.anonymousId,c.anonymousId;let d=(0,f.randomUUID)();return c.anonymousId=d,(0,g.mkdirSync)((0,i.dirname)(b),{recursive:!0}),(0,g.writeFileSync)(b,JSON.stringify(c,null,2)+"\n","utf-8"),m=d,d}catch{let a=(0,f.randomUUID)();return m=a,a}}function o(){if(void 0!==d)return d;try{let a=(0,i.join)(process.env.HOME||(0,h.homedir)(),".openclaw-dench"),b=(0,i.join)(a,"telemetry.json");if(!(0,g.existsSync)(b))return d=null,null;let c=JSON.parse((0,g.readFileSync)(b,"utf-8")),e={};return"string"==typeof c.name&&c.name&&(e.name=c.name),"string"==typeof c.email&&c.email&&(e.email=c.email),"string"==typeof c.avatar&&c.avatar&&(e.avatar=c.avatar),"string"==typeof c.denchOrgId&&c.denchOrgId&&(e.denchOrgId=c.denchOrgId),d=Object.keys(e).length>0?e:null}catch{return d=null,null}}function p(){if(void 0!==e)return e;try{let a=(0,i.join)(process.env.HOME||(0,h.homedir)(),".openclaw-dench"),b=(0,i.join)(a,"telemetry.json");if(!(0,g.existsSync)(b))return e=!0,!0;let c=JSON.parse((0,g.readFileSync)(b,"utf-8"));return e=!1!==c.privacyMode}catch{return e=!0,!0}}let q=!1;function r(a,b,c){let d=k?(l||(l=new j.f2(k,{host:"https://us.i.posthog.com",flushAt:10,flushInterval:3e4})),l):null;if(!d)return;let e=c||n();if(!q){q=!0;let a=o();a&&d.identify({distinctId:e,properties:function(a){let b={};return a.name&&(b.$name=a.name),a.email&&(b.$email=a.email),a.avatar&&(b.$avatar=a.avatar),a.denchOrgId&&(b.dench_org_id=a.denchOrgId),b}(a)})}d.capture({distinctId:e,event:a,properties:{...b,denchclaw_version:"2.3.15",openclaw_version:void 0}})}},47460:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,69307,23)),Promise.resolve().then(c.t.bind(c,4762,23)),Promise.resolve().then(c.t.bind(c,18372,23)),Promise.resolve().then(c.t.bind(c,71091,23)),Promise.resolve().then(c.t.bind(c,61971,23)),Promise.resolve().then(c.t.bind(c,76459,23)),Promise.resolve().then(c.t.bind(c,83173,23)),Promise.resolve().then(c.t.bind(c,11362,23)),Promise.resolve().then(c.bind(c,77667))},48752:(a,b,c)=>{"use strict";c.d(b,{PostHogProvider:()=>j});var d=c(36927),e=c(99967),f=c(14071),g=c(15962),h=c(38253);function i(){return(0,h.usePathname)(),(0,h.useSearchParams)(),null}function j({children:a,anonymousId:b,personInfo:c,privacyMode:h}){return(0,g.useRef)(!1),(0,d.jsxs)(f.so,{client:e.Ay,children:[(0,d.jsx)(i,{}),a]})}},79341:()=>{},79554:(a,b,c)=>{"use strict";c.d(b,{PostHogProvider:()=>d});let d=(0,c(72665).registerClientReference)(function(){throw Error("Attempted to call PostHogProvider() from the server but PostHogProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/DenchClaw/DenchClaw/apps/web/app/components/posthog-provider.tsx","PostHogProvider")},82372:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,23045,23)),Promise.resolve().then(c.t.bind(c,53948,23)),Promise.resolve().then(c.t.bind(c,65194,23)),Promise.resolve().then(c.t.bind(c,48389,23)),Promise.resolve().then(c.t.bind(c,63521,23)),Promise.resolve().then(c.t.bind(c,12409,23)),Promise.resolve().then(c.t.bind(c,32459,23)),Promise.resolve().then(c.t.bind(c,6604,23)),Promise.resolve().then(c.t.bind(c,62049,23))}};
@@ -1,35 +1,38 @@
1
1
  {
2
2
  "version": 1,
3
3
  "functions": {
4
- "/api/apps/cron": {},
5
- "/api/apps": {},
6
4
  "/api/apps/proxy": {},
5
+ "/api/apps/cron": {},
7
6
  "/api/apps/serve/[...path]": {},
7
+ "/api/apps": {},
8
8
  "/api/apps/store": {},
9
- "/api/chat": {},
10
9
  "/api/apps/webhooks/[...path]": {},
11
- "/api/chat/runs": {},
12
10
  "/api/chat/active": {},
13
- "/api/chat/stop": {},
11
+ "/api/chat": {},
12
+ "/api/chat/runs": {},
14
13
  "/api/chat/stream": {},
15
- "/api/feedback": {},
14
+ "/api/chat/stop": {},
16
15
  "/api/chat/subagents": {},
16
+ "/api/feedback": {},
17
+ "/api/gateway/chat": {},
18
+ "/api/gateway/chat/stream": {},
17
19
  "/api/profiles": {},
18
20
  "/api/profiles/switch": {},
21
+ "/api/workspace/browse-file": {},
19
22
  "/api/workspace/assets/[...path]": {},
20
23
  "/api/workspace/browse": {},
21
24
  "/api/workspace/context": {},
22
25
  "/api/workspace/db/introspect": {},
23
- "/api/workspace/browse-file": {},
24
26
  "/api/workspace/delete": {},
25
27
  "/api/workspace/copy": {},
26
28
  "/api/workspace/db/query": {},
27
29
  "/api/workspace/execute": {},
28
30
  "/api/workspace/file": {},
29
- "/api/workspace/list": {},
30
31
  "/api/workspace/init": {},
31
- "/api/workspace/objects/[name]/display-field": {},
32
+ "/api/workspace/list": {},
32
33
  "/api/workspace/mkdir": {},
34
+ "/api/workspace/objects/[name]/entries/[id]": {},
35
+ "/api/workspace/objects/[name]/display-field": {},
33
36
  "/api/workspace/move": {},
34
37
  "/api/workspace/objects/[name]/entries/bulk-delete": {},
35
38
  "/api/workspace/objects/[name]/entries/options": {},
@@ -37,22 +40,21 @@
37
40
  "/api/workspace/objects/[name]/fields/[fieldId]/enum-rename": {},
38
41
  "/api/workspace/objects/[name]/fields/[fieldId]": {},
39
42
  "/api/workspace/objects/[name]/fields/reorder": {},
40
- "/api/workspace/objects/[name]/entries/[id]": {},
41
43
  "/api/workspace/objects/[name]": {},
42
- "/api/workspace/path-info": {},
43
44
  "/api/workspace/open-file": {},
44
- "/api/workspace/rename": {},
45
- "/api/workspace/query": {},
45
+ "/api/workspace/path-info": {},
46
46
  "/api/workspace/raw-file": {},
47
+ "/api/workspace/query": {},
48
+ "/api/workspace/rename": {},
47
49
  "/api/workspace/reports/execute": {},
50
+ "/api/workspace/suggest-files": {},
51
+ "/api/workspace/search-index": {},
48
52
  "/api/workspace/switch": {},
49
53
  "/api/workspace/thumbnail": {},
50
54
  "/api/workspace/upload": {},
51
- "/api/workspace/search-index": {},
52
- "/api/workspace/suggest-files": {},
53
- "/api/workspace/virtual-file": {},
54
55
  "/api/workspace/tree": {},
55
- "/api/workspace/write-binary": {},
56
- "/api/workspace/watch": {}
56
+ "/api/workspace/virtual-file": {},
57
+ "/api/workspace/watch": {},
58
+ "/api/workspace/write-binary": {}
57
59
  }
58
60
  }
@@ -1 +1 @@
1
- globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-498fd225d6bcdcf4.js","static/chunks/b59f762a-f8e8d23ec83d91e0.js","static/chunks/8522-8af2b73a0e93c73d.js","static/chunks/main-app-c71b105c32544ad9.js"],rootMainFilesTree:{},pages:{"/_app":["static/chunks/webpack-498fd225d6bcdcf4.js","static/chunks/framework-63182ecd18a3b3c9.js","static/chunks/main-35c7ea2227b70752.js","static/chunks/pages/_app-3501412d1f7ffe78.js"],"/_error":["static/chunks/webpack-498fd225d6bcdcf4.js","static/chunks/framework-63182ecd18a3b3c9.js","static/chunks/main-35c7ea2227b70752.js","static/chunks/pages/_error-0217f5ed9b41c682.js"]},ampFirstPages:[]},globalThis.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"];
1
+ globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-43066e1a249665ba.js","static/chunks/b59f762a-f8e8d23ec83d91e0.js","static/chunks/8522-8af2b73a0e93c73d.js","static/chunks/main-app-3317ada7e5388446.js"],rootMainFilesTree:{},pages:{"/_app":["static/chunks/webpack-43066e1a249665ba.js","static/chunks/framework-63182ecd18a3b3c9.js","static/chunks/main-35c7ea2227b70752.js","static/chunks/pages/_app-3501412d1f7ffe78.js"],"/_error":["static/chunks/webpack-43066e1a249665ba.js","static/chunks/framework-63182ecd18a3b3c9.js","static/chunks/main-35c7ea2227b70752.js","static/chunks/pages/_error-0217f5ed9b41c682.js"]},ampFirstPages:[]},globalThis.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"];