agentroam-runtime-darwin-arm64 0.2.0-preview.72 → 0.2.0-preview.74

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 (1017) hide show
  1. package/manifest.json +2 -3
  2. package/package.json +1 -1
  3. package/runtime/.next/BUILD_ID +1 -1
  4. package/runtime/.next/app-build-manifest.json +9 -9
  5. package/runtime/.next/app-path-routes-manifest.json +1 -1
  6. package/runtime/.next/build-manifest.json +5 -5
  7. package/runtime/.next/prerender-manifest.json +1 -1
  8. package/runtime/.next/required-server-files.json +1 -1
  9. package/runtime/.next/routes-manifest.json +1 -1
  10. package/runtime/.next/server/app/_not-found/page.js +1 -1
  11. package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/runtime/.next/server/app/_not-found.html +1 -1
  13. package/runtime/.next/server/app/_not-found.rsc +1 -1
  14. package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
  15. package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
  16. package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
  17. package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
  18. package/runtime/.next/server/app/api/agent/model/route.js +1 -1
  19. package/runtime/.next/server/app/api/agent/models/route.js +1 -1
  20. package/runtime/.next/server/app/api/agent/run/route.js +1 -1
  21. package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
  22. package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
  23. package/runtime/.next/server/app/api/agent/stream/route.js +2 -2
  24. package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
  25. package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
  26. package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
  27. package/runtime/.next/server/app/api/business/route.js +1 -1
  28. package/runtime/.next/server/app/api/client-logs/route.js +1 -1
  29. package/runtime/.next/server/app/api/collaboration/route.js +9 -9
  30. package/runtime/.next/server/app/api/collaboration/route.js.nft.json +1 -1
  31. package/runtime/.next/server/app/api/engine-threads/route.js +1 -0
  32. package/runtime/.next/server/app/api/engine-threads/route.js.nft.json +1 -0
  33. package/runtime/.next/server/app/api/engine-threads.body +1 -0
  34. package/runtime/.next/server/app/api/engine-threads.meta +1 -0
  35. package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
  36. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
  37. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
  38. package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
  39. package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
  40. package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
  41. package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
  42. package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
  43. package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
  44. package/runtime/.next/server/app/api/memory/route.js +1 -1
  45. package/runtime/.next/server/app/api/messaging/route.js +1 -1
  46. package/runtime/.next/server/app/api/messaging/route.js.nft.json +1 -1
  47. package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
  48. package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
  49. package/runtime/.next/server/app/api/projects/check/route.js +1 -1
  50. package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
  51. package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
  52. package/runtime/.next/server/app/api/projects/route.js +1 -1
  53. package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
  54. package/runtime/.next/server/app/api/push/unsubscribe/route.js +2 -2
  55. package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
  56. package/runtime/.next/server/app/api/push/vapid.body +1 -1
  57. package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
  58. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
  59. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
  60. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
  61. package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
  62. package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js +1 -0
  63. package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js.nft.json +1 -0
  64. package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  65. package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
  66. package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
  67. package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
  68. package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
  69. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
  70. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js.nft.json +1 -1
  71. package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
  72. package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
  73. package/runtime/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  74. package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js +1 -0
  75. package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js.nft.json +1 -0
  76. package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
  77. package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js +1 -0
  78. package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js.nft.json +1 -0
  79. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
  80. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js.nft.json +1 -1
  81. package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -1
  82. package/runtime/.next/server/app/api/sessions/route.js +1 -1
  83. package/runtime/.next/server/app/api/settings/route.js +1 -1
  84. package/runtime/.next/server/app/api/skills/route.js +1 -1
  85. package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
  86. package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
  87. package/runtime/.next/server/app/api/tools/route.js +1 -1
  88. package/runtime/.next/server/app/api/update/check/route.js +1 -1
  89. package/runtime/.next/server/app/api/update/install/route.js +1 -1
  90. package/runtime/.next/server/app/api/update/status/route.js +1 -1
  91. package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
  92. package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
  93. package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
  94. package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
  95. package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
  96. package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
  97. package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
  98. package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
  99. package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
  100. package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
  101. package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
  102. package/runtime/.next/server/app/web/page.js +4 -4
  103. package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
  104. package/runtime/.next/server/app-paths-manifest.json +34 -30
  105. package/runtime/.next/server/chunks/1614.js +1 -1
  106. package/runtime/.next/server/chunks/5303.js +1 -1
  107. package/runtime/.next/server/chunks/5762.js +18 -0
  108. package/runtime/.next/server/chunks/6977.js +1 -1
  109. package/runtime/.next/server/middleware-build-manifest.js +1 -1
  110. package/runtime/.next/server/pages/404.html +1 -1
  111. package/runtime/.next/server/pages/500.html +1 -1
  112. package/runtime/.next/server/server-reference-manifest.json +1 -1
  113. package/runtime/.next/static/chunks/333-9881c3d2c558a28d.js +1 -0
  114. package/runtime/.next/static/chunks/app/web/{error-36b287ca40eab041.js → error-53531bb27b3b87f8.js} +1 -1
  115. package/runtime/.next/static/chunks/app/web/layout-88328c61ec0589af.js +1 -0
  116. package/runtime/.next/static/chunks/app/web/page-84b5f00b4c9cd4ce.js +1 -0
  117. package/runtime/.next/static/chunks/{main-94a733696db11b91.js → main-93c452d518291b1c.js} +1 -1
  118. package/runtime/.next/static/chunks/{main-app-07b9ccbb642d9b9d.js → main-app-ba2527534563adfe.js} +1 -1
  119. package/runtime/lib/device-pairing-gateway.mjs +6 -1
  120. package/runtime/lib/web-app-cache.mjs +6 -0
  121. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
  122. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
  123. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
  124. package/runtime/node_modules/.package-lock.json +138 -138
  125. package/runtime/node_modules/@agent/core/dist/index.js +874 -128
  126. package/runtime/node_modules/@agent/native-runtime/dist/index.js +203 -38
  127. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/README.md +1 -1
  128. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +104 -84
  129. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +78 -67
  130. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0a66n3e7.mjs +16 -0
  131. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0bmnpbz2.mjs +45 -0
  132. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-9je8ee1j.mjs +16 -0
  133. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ds2jqcef.mjs +19 -0
  134. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-fxa8mwbm.mjs +18 -0
  135. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gbbw9cgm.mjs +17 -0
  136. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-msnqqcc2.mjs +42 -0
  137. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wadgcjfh.mjs +18 -0
  138. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x20yarwf.mjs +17 -0
  139. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x3hc9abc.mjs +17 -0
  140. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-zg882d22.mjs +16 -0
  141. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +11 -11
  142. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +23 -23
  143. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +27 -27
  144. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +21 -14
  145. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +96 -85
  146. package/runtime/node_modules/caniuse-lite/data/agents.js +1 -1
  147. package/runtime/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  148. package/runtime/node_modules/caniuse-lite/data/features/aac.js +1 -1
  149. package/runtime/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  150. package/runtime/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  151. package/runtime/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  152. package/runtime/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  153. package/runtime/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  154. package/runtime/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  155. package/runtime/node_modules/caniuse-lite/data/features/apng.js +1 -1
  156. package/runtime/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  157. package/runtime/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  158. package/runtime/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  159. package/runtime/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  160. package/runtime/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  161. package/runtime/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  162. package/runtime/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  163. package/runtime/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  164. package/runtime/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  165. package/runtime/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  166. package/runtime/node_modules/caniuse-lite/data/features/audio.js +1 -1
  167. package/runtime/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  168. package/runtime/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  169. package/runtime/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  170. package/runtime/node_modules/caniuse-lite/data/features/av1.js +1 -1
  171. package/runtime/node_modules/caniuse-lite/data/features/av2.js +1 -0
  172. package/runtime/node_modules/caniuse-lite/data/features/avif.js +1 -1
  173. package/runtime/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  174. package/runtime/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  175. package/runtime/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  176. package/runtime/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  177. package/runtime/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  178. package/runtime/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  179. package/runtime/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  180. package/runtime/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  181. package/runtime/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  182. package/runtime/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  183. package/runtime/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  184. package/runtime/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  185. package/runtime/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  186. package/runtime/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  187. package/runtime/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  188. package/runtime/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  189. package/runtime/node_modules/caniuse-lite/data/features/calc.js +1 -1
  190. package/runtime/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  191. package/runtime/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  192. package/runtime/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  193. package/runtime/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  194. package/runtime/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  195. package/runtime/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  196. package/runtime/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  197. package/runtime/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  198. package/runtime/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  199. package/runtime/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  200. package/runtime/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  201. package/runtime/node_modules/caniuse-lite/data/features/colr.js +1 -1
  202. package/runtime/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  203. package/runtime/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  204. package/runtime/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  205. package/runtime/node_modules/caniuse-lite/data/features/const.js +1 -1
  206. package/runtime/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  207. package/runtime/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  208. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  209. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  210. package/runtime/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  211. package/runtime/node_modules/caniuse-lite/data/features/cors.js +1 -1
  212. package/runtime/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  213. package/runtime/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  214. package/runtime/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  215. package/runtime/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  216. package/runtime/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  217. package/runtime/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  218. package/runtime/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  219. package/runtime/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  220. package/runtime/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  221. package/runtime/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  222. package/runtime/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  223. package/runtime/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  224. package/runtime/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  225. package/runtime/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  226. package/runtime/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  227. package/runtime/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  228. package/runtime/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  229. package/runtime/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  230. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  231. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  232. package/runtime/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  233. package/runtime/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  234. package/runtime/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  235. package/runtime/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  236. package/runtime/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  237. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  238. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  239. package/runtime/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  240. package/runtime/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  241. package/runtime/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  242. package/runtime/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  243. package/runtime/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  244. package/runtime/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  245. package/runtime/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  246. package/runtime/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  247. package/runtime/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  248. package/runtime/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  249. package/runtime/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  250. package/runtime/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  251. package/runtime/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  252. package/runtime/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  253. package/runtime/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  254. package/runtime/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  255. package/runtime/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  256. package/runtime/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  257. package/runtime/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  258. package/runtime/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  259. package/runtime/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  260. package/runtime/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  261. package/runtime/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  262. package/runtime/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  263. package/runtime/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  264. package/runtime/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  265. package/runtime/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  266. package/runtime/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  267. package/runtime/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  268. package/runtime/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  269. package/runtime/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  270. package/runtime/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  271. package/runtime/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  272. package/runtime/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  273. package/runtime/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  274. package/runtime/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  275. package/runtime/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  276. package/runtime/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  277. package/runtime/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  278. package/runtime/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  279. package/runtime/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  280. package/runtime/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  281. package/runtime/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  282. package/runtime/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  283. package/runtime/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  284. package/runtime/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  285. package/runtime/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  286. package/runtime/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  287. package/runtime/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  288. package/runtime/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  289. package/runtime/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  290. package/runtime/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  291. package/runtime/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  292. package/runtime/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  293. package/runtime/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  294. package/runtime/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  295. package/runtime/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  296. package/runtime/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  297. package/runtime/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  298. package/runtime/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  299. package/runtime/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  300. package/runtime/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  301. package/runtime/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  302. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  303. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  304. package/runtime/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  305. package/runtime/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  306. package/runtime/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  307. package/runtime/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  308. package/runtime/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  309. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  310. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  311. package/runtime/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  312. package/runtime/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  313. package/runtime/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  314. package/runtime/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  315. package/runtime/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  316. package/runtime/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  317. package/runtime/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  318. package/runtime/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  319. package/runtime/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  320. package/runtime/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  321. package/runtime/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  322. package/runtime/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  323. package/runtime/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  324. package/runtime/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  325. package/runtime/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  326. package/runtime/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  327. package/runtime/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  328. package/runtime/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  329. package/runtime/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  330. package/runtime/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  331. package/runtime/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  332. package/runtime/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  333. package/runtime/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  334. package/runtime/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  335. package/runtime/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  336. package/runtime/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  337. package/runtime/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  338. package/runtime/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  339. package/runtime/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  340. package/runtime/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  341. package/runtime/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  342. package/runtime/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  343. package/runtime/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  344. package/runtime/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  345. package/runtime/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  346. package/runtime/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  347. package/runtime/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  348. package/runtime/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  349. package/runtime/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  350. package/runtime/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  351. package/runtime/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  352. package/runtime/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  353. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  354. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  355. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  356. package/runtime/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  357. package/runtime/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  358. package/runtime/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  359. package/runtime/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  360. package/runtime/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  361. package/runtime/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  362. package/runtime/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  363. package/runtime/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  364. package/runtime/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  365. package/runtime/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  366. package/runtime/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  367. package/runtime/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  368. package/runtime/node_modules/caniuse-lite/data/features/details.js +1 -1
  369. package/runtime/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  370. package/runtime/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  371. package/runtime/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  372. package/runtime/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  373. package/runtime/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  374. package/runtime/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  375. package/runtime/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  376. package/runtime/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  377. package/runtime/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  378. package/runtime/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  379. package/runtime/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  380. package/runtime/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  381. package/runtime/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  382. package/runtime/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  383. package/runtime/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  384. package/runtime/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  385. package/runtime/node_modules/caniuse-lite/data/features/download.js +1 -1
  386. package/runtime/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  387. package/runtime/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  388. package/runtime/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  389. package/runtime/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  390. package/runtime/node_modules/caniuse-lite/data/features/eme.js +1 -1
  391. package/runtime/node_modules/caniuse-lite/data/features/eot.js +1 -1
  392. package/runtime/node_modules/caniuse-lite/data/features/es5.js +1 -1
  393. package/runtime/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  394. package/runtime/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  395. package/runtime/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  396. package/runtime/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  397. package/runtime/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  398. package/runtime/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  399. package/runtime/node_modules/caniuse-lite/data/features/es6.js +1 -1
  400. package/runtime/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  401. package/runtime/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  402. package/runtime/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  403. package/runtime/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  404. package/runtime/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  405. package/runtime/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  406. package/runtime/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  407. package/runtime/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  408. package/runtime/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  409. package/runtime/node_modules/caniuse-lite/data/features/flac.js +1 -1
  410. package/runtime/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  411. package/runtime/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  412. package/runtime/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  413. package/runtime/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  414. package/runtime/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  415. package/runtime/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  416. package/runtime/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  417. package/runtime/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  418. package/runtime/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  419. package/runtime/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  420. package/runtime/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  421. package/runtime/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  422. package/runtime/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  423. package/runtime/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  424. package/runtime/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  425. package/runtime/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  426. package/runtime/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  427. package/runtime/node_modules/caniuse-lite/data/features/forms.js +1 -1
  428. package/runtime/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  429. package/runtime/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  430. package/runtime/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  431. package/runtime/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  432. package/runtime/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  433. package/runtime/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  434. package/runtime/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  435. package/runtime/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  436. package/runtime/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  437. package/runtime/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  438. package/runtime/node_modules/caniuse-lite/data/features/heif.js +1 -1
  439. package/runtime/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  440. package/runtime/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  441. package/runtime/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  442. package/runtime/node_modules/caniuse-lite/data/features/history.js +1 -1
  443. package/runtime/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  444. package/runtime/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  445. package/runtime/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  446. package/runtime/node_modules/caniuse-lite/data/features/http2.js +1 -1
  447. package/runtime/node_modules/caniuse-lite/data/features/http3.js +1 -1
  448. package/runtime/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  449. package/runtime/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  450. package/runtime/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  451. package/runtime/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  452. package/runtime/node_modules/caniuse-lite/data/features/ime.js +1 -1
  453. package/runtime/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  454. package/runtime/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  455. package/runtime/node_modules/caniuse-lite/data/features/imports.js +1 -1
  456. package/runtime/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  457. package/runtime/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  458. package/runtime/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  459. package/runtime/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  460. package/runtime/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  461. package/runtime/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  462. package/runtime/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  463. package/runtime/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  464. package/runtime/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  465. package/runtime/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  466. package/runtime/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  467. package/runtime/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  468. package/runtime/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  469. package/runtime/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  470. package/runtime/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  471. package/runtime/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  472. package/runtime/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  473. package/runtime/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  474. package/runtime/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  475. package/runtime/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  476. package/runtime/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  477. package/runtime/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  478. package/runtime/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  479. package/runtime/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  480. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  481. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  482. package/runtime/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  483. package/runtime/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  484. package/runtime/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  485. package/runtime/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  486. package/runtime/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  487. package/runtime/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  488. package/runtime/node_modules/caniuse-lite/data/features/json.js +1 -1
  489. package/runtime/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  490. package/runtime/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  491. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  492. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  493. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  494. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  495. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  496. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  497. package/runtime/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  498. package/runtime/node_modules/caniuse-lite/data/features/let.js +1 -1
  499. package/runtime/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  500. package/runtime/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  501. package/runtime/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  502. package/runtime/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  503. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  504. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  505. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  506. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  507. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  508. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  509. package/runtime/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  510. package/runtime/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  511. package/runtime/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  512. package/runtime/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  513. package/runtime/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  514. package/runtime/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  515. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  516. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  517. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  518. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  519. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  520. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  521. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  522. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  523. package/runtime/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  524. package/runtime/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  525. package/runtime/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  526. package/runtime/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  527. package/runtime/node_modules/caniuse-lite/data/features/menu.js +1 -1
  528. package/runtime/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  529. package/runtime/node_modules/caniuse-lite/data/features/meter.js +1 -1
  530. package/runtime/node_modules/caniuse-lite/data/features/midi.js +1 -1
  531. package/runtime/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  532. package/runtime/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  533. package/runtime/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  534. package/runtime/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  535. package/runtime/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  536. package/runtime/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  537. package/runtime/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  538. package/runtime/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  539. package/runtime/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  540. package/runtime/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  541. package/runtime/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  542. package/runtime/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  543. package/runtime/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  544. package/runtime/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  545. package/runtime/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  546. package/runtime/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  547. package/runtime/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  548. package/runtime/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  549. package/runtime/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  550. package/runtime/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  551. package/runtime/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  552. package/runtime/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  553. package/runtime/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  554. package/runtime/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  555. package/runtime/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  556. package/runtime/node_modules/caniuse-lite/data/features/opus.js +1 -1
  557. package/runtime/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  558. package/runtime/node_modules/caniuse-lite/data/features/outline.js +1 -1
  559. package/runtime/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  560. package/runtime/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  561. package/runtime/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  562. package/runtime/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  563. package/runtime/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  564. package/runtime/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  565. package/runtime/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  566. package/runtime/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  567. package/runtime/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  568. package/runtime/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  569. package/runtime/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  570. package/runtime/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  571. package/runtime/node_modules/caniuse-lite/data/features/picture.js +1 -1
  572. package/runtime/node_modules/caniuse-lite/data/features/ping.js +1 -1
  573. package/runtime/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  574. package/runtime/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  575. package/runtime/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  576. package/runtime/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  577. package/runtime/node_modules/caniuse-lite/data/features/portals.js +1 -1
  578. package/runtime/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  579. package/runtime/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  580. package/runtime/node_modules/caniuse-lite/data/features/progress.js +1 -1
  581. package/runtime/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  582. package/runtime/node_modules/caniuse-lite/data/features/promises.js +1 -1
  583. package/runtime/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  584. package/runtime/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  585. package/runtime/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  586. package/runtime/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  587. package/runtime/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  588. package/runtime/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  589. package/runtime/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  590. package/runtime/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  591. package/runtime/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  592. package/runtime/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  593. package/runtime/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  594. package/runtime/node_modules/caniuse-lite/data/features/rem.js +1 -1
  595. package/runtime/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  596. package/runtime/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  597. package/runtime/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  598. package/runtime/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  599. package/runtime/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  600. package/runtime/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  601. package/runtime/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  602. package/runtime/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  603. package/runtime/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  604. package/runtime/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  605. package/runtime/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  606. package/runtime/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  607. package/runtime/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  608. package/runtime/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  609. package/runtime/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  610. package/runtime/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  611. package/runtime/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  612. package/runtime/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  613. package/runtime/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  614. package/runtime/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  615. package/runtime/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  616. package/runtime/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  617. package/runtime/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  618. package/runtime/node_modules/caniuse-lite/data/features/sni.js +1 -1
  619. package/runtime/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  620. package/runtime/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  621. package/runtime/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  622. package/runtime/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  623. package/runtime/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  624. package/runtime/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  625. package/runtime/node_modules/caniuse-lite/data/features/stream.js +1 -1
  626. package/runtime/node_modules/caniuse-lite/data/features/streams.js +1 -1
  627. package/runtime/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  628. package/runtime/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  629. package/runtime/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  630. package/runtime/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  631. package/runtime/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  632. package/runtime/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  633. package/runtime/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  634. package/runtime/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  635. package/runtime/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  636. package/runtime/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  637. package/runtime/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  638. package/runtime/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  639. package/runtime/node_modules/caniuse-lite/data/features/svg.js +1 -1
  640. package/runtime/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  641. package/runtime/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  642. package/runtime/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  643. package/runtime/node_modules/caniuse-lite/data/features/template.js +1 -1
  644. package/runtime/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  645. package/runtime/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  646. package/runtime/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  647. package/runtime/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  648. package/runtime/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  649. package/runtime/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  650. package/runtime/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  651. package/runtime/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  652. package/runtime/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  653. package/runtime/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  654. package/runtime/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  655. package/runtime/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  656. package/runtime/node_modules/caniuse-lite/data/features/touch.js +1 -1
  657. package/runtime/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  658. package/runtime/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  659. package/runtime/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  660. package/runtime/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  661. package/runtime/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  662. package/runtime/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  663. package/runtime/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  664. package/runtime/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  665. package/runtime/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  666. package/runtime/node_modules/caniuse-lite/data/features/url.js +1 -1
  667. package/runtime/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  668. package/runtime/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  669. package/runtime/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  670. package/runtime/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  671. package/runtime/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  672. package/runtime/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  673. package/runtime/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  674. package/runtime/node_modules/caniuse-lite/data/features/video.js +1 -1
  675. package/runtime/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  676. package/runtime/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  677. package/runtime/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  678. package/runtime/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  679. package/runtime/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  680. package/runtime/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  681. package/runtime/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  682. package/runtime/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  683. package/runtime/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  684. package/runtime/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  685. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  686. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  687. package/runtime/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  688. package/runtime/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  689. package/runtime/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  690. package/runtime/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  691. package/runtime/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  692. package/runtime/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  693. package/runtime/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  694. package/runtime/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  695. package/runtime/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  696. package/runtime/node_modules/caniuse-lite/data/features/wav.js +1 -1
  697. package/runtime/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  698. package/runtime/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  699. package/runtime/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  700. package/runtime/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  701. package/runtime/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  702. package/runtime/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  703. package/runtime/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  704. package/runtime/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  705. package/runtime/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  706. package/runtime/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  707. package/runtime/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  708. package/runtime/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  709. package/runtime/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  710. package/runtime/node_modules/caniuse-lite/data/features/webm.js +1 -1
  711. package/runtime/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  712. package/runtime/node_modules/caniuse-lite/data/features/webp.js +1 -1
  713. package/runtime/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  714. package/runtime/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  715. package/runtime/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  716. package/runtime/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  717. package/runtime/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  718. package/runtime/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  719. package/runtime/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  720. package/runtime/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  721. package/runtime/node_modules/caniuse-lite/data/features/woff.js +1 -1
  722. package/runtime/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  723. package/runtime/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  724. package/runtime/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  725. package/runtime/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  726. package/runtime/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  727. package/runtime/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  728. package/runtime/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  729. package/runtime/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  730. package/runtime/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  731. package/runtime/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  732. package/runtime/node_modules/caniuse-lite/data/features.js +1 -1
  733. package/runtime/node_modules/caniuse-lite/data/versionGroups.js +1 -1
  734. package/runtime/node_modules/caniuse-lite/package.json +1 -1
  735. package/runtime/node_modules/graceful-fs/LICENSE.md +55 -0
  736. package/runtime/node_modules/graceful-fs/package.json +3 -4
  737. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +4312 -2466
  738. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +30 -24
  739. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +30 -24
  740. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +4312 -2466
  741. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +4312 -2466
  742. package/runtime/node_modules/mediabunny/dist/modules/shared/aac-misc.js +202 -5
  743. package/runtime/node_modules/mediabunny/dist/modules/shared/bitstream.js +4 -3
  744. package/runtime/node_modules/mediabunny/dist/modules/shared/dts-misc.js +7 -8
  745. package/runtime/node_modules/mediabunny/dist/modules/shared/mp3-misc.js +7 -1
  746. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +60 -41
  747. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-muxer.js +12 -8
  748. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js +39 -5
  749. package/runtime/node_modules/mediabunny/dist/modules/src/codec-data.js +220 -48
  750. package/runtime/node_modules/mediabunny/dist/modules/src/codec.js +80 -54
  751. package/runtime/node_modules/mediabunny/dist/modules/src/conversion.js +144 -96
  752. package/runtime/node_modules/mediabunny/dist/modules/src/decode.js +14 -8
  753. package/runtime/node_modules/mediabunny/dist/modules/src/encode.js +22 -9
  754. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js +16 -13
  755. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js +3 -2
  756. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-muxer.js +40 -26
  757. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +129 -115
  758. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-muxer.js +392 -326
  759. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +27 -24
  760. package/runtime/node_modules/mediabunny/dist/modules/src/id3.js +111 -33
  761. package/runtime/node_modules/mediabunny/dist/modules/src/input-format.js +81 -149
  762. package/runtime/node_modules/mediabunny/dist/modules/src/input-track.js +48 -15
  763. package/runtime/node_modules/mediabunny/dist/modules/src/input.js +37 -15
  764. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +104 -21
  765. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +347 -216
  766. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js +11 -2
  767. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +257 -163
  768. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/ebml.js +93 -32
  769. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +193 -99
  770. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-muxer.js +129 -116
  771. package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +216 -136
  772. package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +237 -129
  773. package/runtime/node_modules/mediabunny/dist/modules/src/metadata.js +6 -0
  774. package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +96 -49
  775. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +101 -29
  776. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-muxer.js +18 -9
  777. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js +45 -2
  778. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-writer.js +9 -2
  779. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +253 -254
  780. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-misc.js +5 -10
  781. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +69 -43
  782. package/runtime/node_modules/mediabunny/dist/modules/src/muxer.js +11 -1
  783. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js +89 -57
  784. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js +1 -1
  785. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-muxer.js +183 -73
  786. package/runtime/node_modules/mediabunny/dist/modules/src/output-format.js +70 -5
  787. package/runtime/node_modules/mediabunny/dist/modules/src/output.js +54 -29
  788. package/runtime/node_modules/mediabunny/dist/modules/src/packet.js +1 -1
  789. package/runtime/node_modules/mediabunny/dist/modules/src/resample.js +1 -0
  790. package/runtime/node_modules/mediabunny/dist/modules/src/sample.js +85 -42
  791. package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +40 -21
  792. package/runtime/node_modules/mediabunny/dist/modules/src/source.js +188 -88
  793. package/runtime/node_modules/mediabunny/dist/modules/src/subtitles.js +15 -9
  794. package/runtime/node_modules/mediabunny/dist/modules/src/target.js +63 -39
  795. package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
  796. package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
  797. package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js +77 -41
  798. package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-muxer.js +83 -20
  799. package/runtime/node_modules/mediabunny/dist/modules/src/writer.js +4 -1
  800. package/runtime/node_modules/mediabunny/package.json +5 -4
  801. package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +76 -47
  802. package/runtime/node_modules/mediabunny/src/adts/adts-muxer.ts +13 -11
  803. package/runtime/node_modules/mediabunny/src/adts/adts-reader.ts +54 -5
  804. package/runtime/node_modules/mediabunny/src/codec-data.ts +249 -52
  805. package/runtime/node_modules/mediabunny/src/codec.ts +85 -58
  806. package/runtime/node_modules/mediabunny/src/conversion.ts +161 -94
  807. package/runtime/node_modules/mediabunny/src/decode.ts +15 -8
  808. package/runtime/node_modules/mediabunny/src/encode.ts +23 -14
  809. package/runtime/node_modules/mediabunny/src/flac/flac-demuxer.ts +21 -20
  810. package/runtime/node_modules/mediabunny/src/flac/flac-misc.ts +3 -2
  811. package/runtime/node_modules/mediabunny/src/flac/flac-muxer.ts +44 -29
  812. package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +161 -129
  813. package/runtime/node_modules/mediabunny/src/hls/hls-muxer.ts +453 -379
  814. package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +35 -24
  815. package/runtime/node_modules/mediabunny/src/id3.ts +123 -35
  816. package/runtime/node_modules/mediabunny/src/input-format.ts +86 -170
  817. package/runtime/node_modules/mediabunny/src/input-track.ts +57 -17
  818. package/runtime/node_modules/mediabunny/src/input.ts +41 -17
  819. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +118 -21
  820. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +435 -253
  821. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-misc.ts +13 -4
  822. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +318 -191
  823. package/runtime/node_modules/mediabunny/src/matroska/ebml.ts +91 -38
  824. package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +212 -103
  825. package/runtime/node_modules/mediabunny/src/matroska/matroska-muxer.ts +155 -148
  826. package/runtime/node_modules/mediabunny/src/media-sink.ts +229 -146
  827. package/runtime/node_modules/mediabunny/src/media-source.ts +263 -141
  828. package/runtime/node_modules/mediabunny/src/metadata.ts +7 -1
  829. package/runtime/node_modules/mediabunny/src/misc.ts +122 -54
  830. package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +121 -33
  831. package/runtime/node_modules/mediabunny/src/mp3/mp3-muxer.ts +16 -12
  832. package/runtime/node_modules/mediabunny/src/mp3/mp3-reader.ts +66 -2
  833. package/runtime/node_modules/mediabunny/src/mp3/mp3-writer.ts +11 -2
  834. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +295 -325
  835. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-misc.ts +5 -14
  836. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +90 -51
  837. package/runtime/node_modules/mediabunny/src/muxer.ts +14 -1
  838. package/runtime/node_modules/mediabunny/src/ogg/ogg-demuxer.ts +92 -62
  839. package/runtime/node_modules/mediabunny/src/ogg/ogg-misc.ts +1 -1
  840. package/runtime/node_modules/mediabunny/src/ogg/ogg-muxer.ts +203 -88
  841. package/runtime/node_modules/mediabunny/src/output-format.ts +91 -7
  842. package/runtime/node_modules/mediabunny/src/output.ts +57 -30
  843. package/runtime/node_modules/mediabunny/src/packet.ts +1 -1
  844. package/runtime/node_modules/mediabunny/src/resample.ts +1 -0
  845. package/runtime/node_modules/mediabunny/src/sample.ts +105 -51
  846. package/runtime/node_modules/mediabunny/src/segmented-input.ts +50 -24
  847. package/runtime/node_modules/mediabunny/src/source.ts +227 -97
  848. package/runtime/node_modules/mediabunny/src/subtitles.ts +16 -9
  849. package/runtime/node_modules/mediabunny/src/target.ts +65 -41
  850. package/runtime/node_modules/mediabunny/src/version.ts +1 -1
  851. package/runtime/node_modules/mediabunny/src/wave/wave-demuxer.ts +103 -56
  852. package/runtime/node_modules/mediabunny/src/wave/wave-muxer.ts +88 -21
  853. package/runtime/node_modules/mediabunny/src/writer.ts +4 -1
  854. package/runtime/node_modules/sanitize-html/index.js +50 -20
  855. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.js +6 -4
  856. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/map-generator.js +12 -2
  857. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/processor.js +1 -1
  858. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/tokenize.js +6 -13
  859. package/runtime/node_modules/sanitize-html/node_modules/postcss/package.json +1 -1
  860. package/runtime/node_modules/sanitize-html/package.json +1 -1
  861. package/runtime/node_modules/ws/lib/websocket-server.js +3 -0
  862. package/runtime/node_modules/ws/lib/websocket.js +38 -7
  863. package/runtime/node_modules/ws/package.json +1 -1
  864. package/runtime/package-lock.json +195 -171
  865. package/runtime/server.js +1 -1
  866. package/runtime/webapp/dist/assets/AIHubView-DBOyOZzW.js +1 -0
  867. package/runtime/webapp/dist/assets/AgentManager-BLHvEA2d.js +3 -0
  868. package/runtime/webapp/dist/assets/{AiHubPane-DBuhzcId.js → AiHubPane-CWvL3HSl.js} +1 -1
  869. package/runtime/webapp/dist/assets/App-DGtdMfGk.js +179 -0
  870. package/runtime/webapp/dist/assets/BrowserLivePanel-Cl5kMDJF.js +56 -0
  871. package/runtime/webapp/dist/assets/CollaborationCreateDialog-DPs4doOz.js +1 -0
  872. package/runtime/webapp/dist/assets/CollaborationDashboard-ChUaJ5xA.js +1 -0
  873. package/runtime/webapp/dist/assets/CollaborationPage-Cg22tJGB.js +6 -0
  874. package/runtime/webapp/dist/assets/{FilePreview-CkY_jNql.js → FilePreview-BItgMeyP.js} +9 -14
  875. package/runtime/webapp/dist/assets/FileTree-t-YjjCDU.js +11 -0
  876. package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BnOoPJA6.js +1 -0
  877. package/runtime/webapp/dist/assets/FlowStudioPane-DHrpQpBA.js +5 -0
  878. package/runtime/webapp/dist/assets/LSPServerList-CB2Cwqw_.js +4 -0
  879. package/runtime/webapp/dist/assets/MCPServerList-DUpgIcHk.js +8 -0
  880. package/runtime/webapp/dist/assets/MemoryViewer-DCFueBdK.js +1 -0
  881. package/runtime/webapp/dist/assets/RemoteDesktopPage-DD9aNe8m.js +1 -0
  882. package/runtime/webapp/dist/assets/{RunningSessionsIcon-BbgfV3Y9.js → RunningSessionsIcon-CKKjZfu_.js} +1 -1
  883. package/runtime/webapp/dist/assets/SessionDashboard-CCpxslxg.js +21 -0
  884. package/runtime/webapp/dist/assets/{SessionDashboardBridge-DEUcW6SI.js → SessionDashboardBridge-DG1fQUEQ.js} +1 -1
  885. package/runtime/webapp/dist/assets/SettingsPanel-CA0Pj7qk.js +4 -0
  886. package/runtime/webapp/dist/assets/SkillManager-BzgAJlVW.js +1 -0
  887. package/runtime/webapp/dist/assets/{TerminalPane-BLqkE0Sr.js → TerminalPane-Bc4cGUmA.js} +2 -2
  888. package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DeYUTKWn.js → abnfDiagram-VCTEODGH-Dsp6XgB7.js} +1 -1
  889. package/runtime/webapp/dist/assets/arc-DROGDR5M.js +1 -0
  890. package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-CuFeRT7v.js → architectureDiagram-5GKGNRK7-S8c_fFRN.js} +1 -1
  891. package/runtime/webapp/dist/assets/{arrow-right-CBoNjLZc.js → arrow-right-CUDfCOna.js} +1 -1
  892. package/runtime/webapp/dist/assets/{artifact-links-DPEFlv87.js → artifact-links-C7zYRJaC.js} +1 -1
  893. package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-CSQFiZW1.js → blockDiagram-I7D4REHJ-DrTz3v2B.js} +1 -1
  894. package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-Dp0yNsZN.js → c4Diagram-7LVT6UL2-wuHRphdr.js} +1 -1
  895. package/runtime/webapp/dist/assets/channel-C_3UNQvo.js +1 -0
  896. package/runtime/webapp/dist/assets/{chevron-down-DqV6YJGE.js → chevron-down-fUU2ZKzR.js} +1 -1
  897. package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-HGRodfIv.js → chunk-2Q5K7J3B-BpV5cOX0.js} +1 -1
  898. package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-CBrQNVFD.js → chunk-5VM5RSS4-1_IZosIm.js} +1 -1
  899. package/runtime/webapp/dist/assets/{chunk-F27PBJKO-DB6uGYpD.js → chunk-F27PBJKO-IZ7w-WCZ.js} +1 -1
  900. package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-Dedjjkdt.js → chunk-IMKFNOWR-BuicwmZn.js} +3 -3
  901. package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-CFqPSTPh.js → chunk-JWPE2WC7-CfNSj3eC.js} +1 -1
  902. package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-3acvfPpy.js → chunk-POPQ4Y6H-Bxryudz4.js} +1 -1
  903. package/runtime/webapp/dist/assets/{chunk-SVP7TREG-Bn9tMxLG.js → chunk-SVP7TREG-DSZbEEd6.js} +3 -3
  904. package/runtime/webapp/dist/assets/{chunk-TICWLB2K-BjPHa9Ep.js → chunk-TICWLB2K-CHqUfDzl.js} +1 -1
  905. package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-pSIpAtkj.js → chunk-XXDRQBXY-CPbMDiSF.js} +1 -1
  906. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-j9nJ5DUm.js +1 -0
  907. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-j9nJ5DUm.js +1 -0
  908. package/runtime/webapp/dist/assets/{codeSyntax-Bs__ElW1.js → codeSyntax-BENnBdX2.js} +3 -3
  909. package/runtime/webapp/dist/assets/{collaboration-xcnZxf7i.js → collaboration-DwgXZbHy.js} +1 -1
  910. package/runtime/webapp/dist/assets/composer-file-routing-CKLnrVkP.js +11 -0
  911. package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-Cc1ea8TO.js → cose-bilkent-JH36ORCC-BPzEzfJw.js} +1 -1
  912. package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-B2IeHhVa.js → cynefin-OW5HDTMX-BZgzPIdr.js} +1 -1
  913. package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-BeZhQnWx.js → cynefinDiagram-5FMLGOSQ-CyNjL-LN.js} +2 -2
  914. package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DF08UpVJ.js → dagre-GXQ25YYZ-QqLmAYnp.js} +2 -2
  915. package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-Cx_tPRJp.js → diagram-S7CK7UJ4-DrIIbhV6.js} +1 -1
  916. package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-Cb6fFvJt.js → diagram-UQ7AKVKN-B7JON90e.js} +1 -1
  917. package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-CvuweBru.js → diagram-VSXAHHWV-C1Fzjcgp.js} +1 -1
  918. package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BYouVdoe.js → diagram-VX7I27RA-HmkXh54q.js} +1 -1
  919. package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-DRBjsxYw.js → diagram-Z3DM3KII-Ca5jnESS.js} +1 -1
  920. package/runtime/webapp/dist/assets/download-CKrjXoG9.js +6 -0
  921. package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CxHOPzwg.js → ebnfDiagram-PWID7BFC-a3qnPIiF.js} +1 -1
  922. package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-tUK9K8ZD.js → erDiagram-RLTQ6QDP-EZKQ4NYt.js} +1 -1
  923. package/runtime/webapp/dist/assets/{external-link-DpecT7Vm.js → external-link-C9AwR_tM.js} +1 -1
  924. package/runtime/webapp/dist/assets/{file-types-CfFmgvNi.js → file-types-BlRT2KnS.js} +9 -4
  925. package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BFd8shzR.js → flowDiagram-HODETNUW-C4U9dCin.js} +5 -5
  926. package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-Dt3qJ3nR.js → ganttDiagram-EL5Y4UJY-B5iyiF0_.js} +2 -2
  927. package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-L22kw422.js → gitGraphDiagram-WWUBYQGX-D9CfK-tl.js} +1 -1
  928. package/runtime/webapp/dist/assets/{image-plus-Bzr6FXFm.js → image-plus-DsCC5WAa.js} +1 -1
  929. package/runtime/webapp/dist/assets/{index-C165MF0E.js → index-DBNVLOBM.js} +53 -53
  930. package/runtime/webapp/dist/assets/index-DrzCwyPu.css +1 -0
  931. package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-DBrWW4hh.js → infoDiagram-27XIBGKW-DBcCijd6.js} +1 -1
  932. package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-BiQERurn.js → ishikawaDiagram-5VMMS53U-D_m8F4n9.js} +1 -1
  933. package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-CbuOAsvy.js → journeyDiagram-3NMN7TZE-4oy2R7XW.js} +1 -1
  934. package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-BS0cpYtD.js → kanban-definition-UXKFOSKX-O6jHSf0E.js} +5 -5
  935. package/runtime/webapp/dist/assets/layout-P82L_S-q.js +1 -0
  936. package/runtime/webapp/dist/assets/{linear-DOnDPVCl.js → linear-B-Cl5K73.js} +1 -1
  937. package/runtime/webapp/dist/assets/{loader-circle-DzxGeGeP.js → loader-circle--s-WzZxC.js} +1 -1
  938. package/runtime/webapp/dist/assets/{mermaid.core-CIbk74HW.js → mermaid.core-BEmIap6p.js} +6 -6
  939. package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-BXA3aIva.js → mindmap-definition-YA3MSWOX-Bnlqql-j.js} +1 -1
  940. package/runtime/webapp/dist/assets/page-BtLq1udo.js +91 -0
  941. package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-oUTq5zGX.js → pegDiagram-XKGWAZYB-AbRjuoUM.js} +1 -1
  942. package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-5-ms1WT0.js +39 -0
  943. package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-BDJl9Tah.js → quadrantDiagram-AXDQQJYC-BXr5BqtQ.js} +2 -2
  944. package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-BCu1VCKA.js → railroadDiagram-O6MQD6OU-DqBC-aod.js} +1 -1
  945. package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-CqUIqsRU.js → requirementDiagram-BXWQKSXE-VOUcatZG.js} +1 -1
  946. package/runtime/webapp/dist/assets/{rotate-ccw-Bjr9jTxM.js → rotate-ccw-CSiD4c4O.js} +1 -1
  947. package/runtime/webapp/dist/assets/{rotate-cw-A1YTnj9Q.js → rotate-cw-CclBpLSU.js} +1 -1
  948. package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-DaveIjpG.js → sankeyDiagram-P5KCCOFB-Bs23XmVr.js} +1 -1
  949. package/runtime/webapp/dist/assets/{send-BEl9srBG.js → send-CfzPXlfx.js} +1 -1
  950. package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-C7zRgFw8.js → sequenceDiagram-WJ2MYXX4-DO-oDX3L.js} +1 -1
  951. package/runtime/webapp/dist/assets/session-dashboard-D-0Cip5Y.js +6 -0
  952. package/runtime/webapp/dist/assets/{shield-check-C79GaqpX.js → shield-check-Dsex8w1k.js} +1 -1
  953. package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-BKOrYnP1.js → sizeCapture-INFHLROL-hCQ98eA9.js} +1 -1
  954. package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-DLODIaTQ.js +1 -0
  955. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-CTpD-7Re.js +1 -0
  956. package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-CbDMTwgn.js → swimlanes-42K2YHIH-B3Qg_5tW.js} +1 -1
  957. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-v5rUeqtL.js +8 -0
  958. package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-CanMvfCK.js → timeline-definition-24CTP7MA-BdFnRV4K.js} +1 -1
  959. package/runtime/webapp/dist/assets/{trash-2-RnFgAyKW.js → trash-2-CZp_yMDT.js} +10 -5
  960. package/runtime/webapp/dist/assets/{types-DguAd3Ud.js → types-BWTyn3Bs.js} +1 -1
  961. package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CR-V0-y3.js → vennDiagram-4TSXK5OY-CRU6BY1c.js} +1 -1
  962. package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-CjTtvx6s.js → wardleyDiagram-VM6X3IG4-CXK3g3al.js} +1 -1
  963. package/runtime/webapp/dist/assets/{web-DPag1EjS.js → web-Den_EYDz.js} +1 -1
  964. package/runtime/webapp/dist/assets/{web-DedGjdA8.js → web-JmfGsfI_.js} +1 -1
  965. package/runtime/webapp/dist/assets/{x-Bx8qOEL4.js → x-CLvev0bC.js} +1 -1
  966. package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-D2959gYR.js → xychartDiagram-S5SC5T6Z-CeISrKUm.js} +1 -1
  967. package/runtime/webapp/dist/assets/zoom-out-CSyjX26v.js +21 -0
  968. package/runtime/webapp/dist/index.html +18 -3
  969. package/runtime/ws-server.mjs +3 -6
  970. package/runtime/.next/server/chunks/1973.js +0 -1
  971. package/runtime/.next/static/chunks/50-0b6604ece6278dc2.js +0 -1
  972. package/runtime/.next/static/chunks/app/web/layout-62386960d8601cc2.js +0 -1
  973. package/runtime/.next/static/chunks/app/web/page-6b37d8153e607928.js +0 -1
  974. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Info.plist +0 -13
  975. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/MacOS/NativeAXBridge +0 -0
  976. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Resources/agentroam-component.json +0 -4
  977. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/_CodeSignature/CodeResources +0 -128
  978. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/NativeAXBridge.swift +0 -240
  979. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/codec.py +0 -133
  980. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/native_sender.py +0 -445
  981. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/reader.py +0 -309
  982. package/runtime/node_modules/@agent/messaging/dist/index.js +0 -1219
  983. package/runtime/node_modules/@agent/messaging/package.json +0 -7
  984. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-8zdh6hy9.mjs +0 -45
  985. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b5da77cd.mjs +0 -34
  986. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-f2yzhw4m.mjs +0 -18
  987. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-j29a9c1a.mjs +0 -17
  988. package/runtime/node_modules/graceful-fs/LICENSE +0 -15
  989. package/runtime/webapp/dist/assets/App-D3-qxUjs.js +0 -187
  990. package/runtime/webapp/dist/assets/BrowserLivePanel-BywwOAML.js +0 -76
  991. package/runtime/webapp/dist/assets/CollaborationDashboard-DQeiZyu9.js +0 -1
  992. package/runtime/webapp/dist/assets/CollaborationPage-CGymkv8f.js +0 -16
  993. package/runtime/webapp/dist/assets/FileTree-W85iiqhO.js +0 -11
  994. package/runtime/webapp/dist/assets/FlowStudioPane-Ccp0FhYn.js +0 -5
  995. package/runtime/webapp/dist/assets/MessagingBridge-D_cArR8-.js +0 -6
  996. package/runtime/webapp/dist/assets/MessagingPage-BIgDwGgU.js +0 -7
  997. package/runtime/webapp/dist/assets/MessagingPage-CpRafjqY.css +0 -1
  998. package/runtime/webapp/dist/assets/RemoteDesktopPage-Di31a6s4.js +0 -1
  999. package/runtime/webapp/dist/assets/SessionDashboard-a7HETCwZ.js +0 -16
  1000. package/runtime/webapp/dist/assets/arc-Fb_TLw7m.js +0 -1
  1001. package/runtime/webapp/dist/assets/arrow-left-ChO37N0V.js +0 -6
  1002. package/runtime/webapp/dist/assets/channel-CcOPsanj.js +0 -1
  1003. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-De9Vn3qI.js +0 -1
  1004. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-De9Vn3qI.js +0 -1
  1005. package/runtime/webapp/dist/assets/index-IYQjHlQx.css +0 -1
  1006. package/runtime/webapp/dist/assets/layout-C6lzLyIZ.js +0 -1
  1007. package/runtime/webapp/dist/assets/page-oP1ftgSe.js +0 -91
  1008. package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-CES_HFyS.js +0 -39
  1009. package/runtime/webapp/dist/assets/search-rB9Vl5Kd.js +0 -6
  1010. package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-Cz_WH93D.js +0 -1
  1011. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dw9aybAU.js +0 -1
  1012. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CZrm7vi4.js +0 -8
  1013. package/runtime/webapp/dist/assets/use-error-notice-_MLy2aPZ.js +0 -11
  1014. /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → 5l3_g1bKM6rXvoGoMh_OC}/_buildManifest.js +0 -0
  1015. /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → 5l3_g1bKM6rXvoGoMh_OC}/_ssgManifest.js +0 -0
  1016. /package/runtime/webapp/dist/assets/{use-error-notice-CAYVDT8Z.css → SessionDashboard-CAYVDT8Z.css} +0 -0
  1017. /package/runtime/webapp/dist/assets/{SessionDashboard-D3n4eFut.css → session-dashboard-D3n4eFut.css} +0 -0
@@ -1,8 +1,8 @@
1
- "use strict";(()=>{var e={};e.id=8917,e.ids=[8917],e.modules={1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},8432:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>ex,patchFetch:()=>eA,requestAsyncStorage:()=>eD,routeModule:()=>eR,serverHooks:()=>eT,staticGenerationAsyncStorage:()=>eI});var i={};s.r(i),s.d(i,{GET:()=>eP,dynamic:()=>ev,runtime:()=>eE});var r=s(7786),n=s(5042),a=s(2184),o=s(1636),h=s(785),l=s(1614);let d=require("node:events");var c=s(7561),p=s(3977),u=s(9411);let f=require("node:stream"),_={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},m={root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:_.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:256};Object.freeze(m);let w="READDIRP_RECURSIVE_ERROR",g=new Set(["ENOENT","EPERM","EACCES","ELOOP",w]),y=[_.DIR_TYPE,_.EVERYTHING_TYPE,_.FILE_DIR_TYPE,_.FILE_TYPE],v=new Set([_.DIR_TYPE,_.EVERYTHING_TYPE,_.FILE_DIR_TYPE]),E=new Set([_.EVERYTHING_TYPE,_.FILE_DIR_TYPE,_.FILE_TYPE]),b=e=>g.has(e.code),P="win32"===process.platform,R=e=>!0,D=e=>{if(void 0===e)return R;if("function"==typeof e)return e;if("string"==typeof e){let t=e.trim();return e=>e.basename===t}if(Array.isArray(e)){let t=e.map(e=>e.trim());return e=>t.some(t=>e.basename===t)}return R};class I extends f.Readable{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;_relStart;constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark??m.highWaterMark});let t={...m,...e},s=t.root??m.root,i=t.type??m.type;this._fileFilter=D(t.fileFilter),this._directoryFilter=D(t.directoryFilter);let r=t.lstat?p.lstat:p.stat;P?this._stat=e=>r(e,{bigint:!0}):this._stat=r,this._maxDepth=null!=t.depth&&Number.isSafeInteger(t.depth)?t.depth:m.depth,this._wantsDir=v.has(i),this._wantsFile=E.has(i),this._wantsEverything=i===_.EVERYTHING_TYPE,this._root=(0,u.resolve)(s),this._relStart=this._root.endsWith(u.sep)?this._root.length:this._root.length+1,this._isDirent=!t.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent};let n={path:this._root,depth:1};n.pending=this._exploreDir(this._root,1),this.parents=[n],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let t=this.parent,s=t&&t.files;if(s&&s.length>0){let{path:i,depth:r}=t,n=s.splice(0,e).map(e=>this._formatEntry(e,i));for(let t of this._isDirent?n:await Promise.all(n)){if(!t)continue;if(this.destroyed)return;let s=this._getEntryType(t);"string"!=typeof s&&(s=await s),"directory"===s&&this._directoryFilter(t)?(r<=this._maxDepth&&this.parents.push({path:t.fullPath,depth:r+1}),this._wantsDir&&(this.push(t),e--)):("file"===s||this._includeAsFile(t))&&this._fileFilter(t)&&this._wantsFile&&(this.push(t),e--)}}else{let e=this.parents.pop();if(!e){this.push(null);break}let t=e.pending??this._exploreDir(e.path,e.depth),s=this.parents[this.parents.length-1];if(s&&!s.pending&&(s.pending=this._exploreDir(s.path,s.depth)),this.parent=await t,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(e,t){let s;try{s=await (0,p.readdir)(e,this._rdOptions)}catch(e){this._onError(e)}return{files:s,depth:t,path:e}}_formatEntry(e,t){let s=this._isDirent?e.name:e,i=(0,u.join)(t,s),r={path:i.slice(this._relStart),fullPath:i,basename:s};return this._isDirent?(r.dirent=e,r):this._stat(i).then(e=>(r.stats=e,r),e=>{this._onError(e)})}_onError(e){b(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}_getEntryType(e){if(!e||!(this._statsProp in e))return"";let t=e[this._statsProp];return t.isFile()?"file":t.isDirectory()?"directory":t.isSymbolicLink()?this._getSymlinkEntryType(e):""}async _getSymlinkEntryType(e){let t=e.fullPath;try{let e=await (0,p.realpath)(t),s=await (0,p.lstat)(e);if(s.isFile())return"file";if(s.isDirectory()){let s=e.length;if(t.startsWith(e)&&t[s]===u.sep){let s=Error(`Circular symlink detected: "${t}" points to "${e}"`);return s.code=w,this._onError(s),""}return"directory"}}catch(e){this._onError(e)}return""}_includeAsFile(e){let t=e&&e[this._statsProp];return t&&this._wantsEverything&&!t.isDirectory()}}var T=s(612);let x=()=>{},A=process.platform,k="win32"===A,S="darwin"===A,W="linux"===A,F="freebsd"===A,C="OS400"===(0,T.type)(),N={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},L={lstat:p.lstat,stat:p.stat},M="listeners",O="errHandlers",j="rawEmitters",z=[M,O,j],H=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),G=e=>H.has(u.extname(e).slice(1).toLowerCase()),Y=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},q=(e,t,s)=>{let i=e[t];i instanceof Set||(e[t]=i=new Set([i])),i.add(s)},U=e=>t=>{let s=e[t];s instanceof Set?s.clear():delete e[t]},$=(e,t,s)=>{let i=e[t];i instanceof Set?i.delete(s):i===s&&delete e[t]},K=e=>e instanceof Set?0===e.size:!e,V=new Map;function X(e,t,s,i,r){try{return(0,c.watch)(e,{persistent:t.persistent},(t,i)=>{s(e),r(t,i,{watchedPath:e}),i&&e!==i&&J(u.resolve(e,i),M,u.join(e,i))})}catch(e){i(e);return}}let J=(e,t,s,i,r)=>{let n=V.get(e);n&&Y(n[t],e=>{e(s,i,r)})},B=(e,t,s,i)=>{let r;let{listener:n,errHandler:a,rawEmitter:o}=i,h=V.get(t);if(!s.persistent){if(!(r=X(e,s,n,a,o)))return;return r.close.bind(r)}if(h)q(h,M,n),q(h,O,a),q(h,j,o);else{if(!(r=X(e,s,J.bind(null,t,M),a,J.bind(null,t,j))))return;r.on(N.ERROR,async s=>{let i=J.bind(null,t,O);if(h&&(h.watcherUnusable=!0),k&&"EPERM"===s.code)try{let t=await (0,p.open)(e,"r");await t.close(),i(s)}catch(e){}else i(s)}),h={listeners:n,errHandlers:a,rawEmitters:o,watcher:r},V.set(t,h)}return()=>{$(h,M,n),$(h,O,a),$(h,j,o),K(h.listeners)&&(h.watcher.close(),V.delete(t),z.forEach(U(h)),h.watcher=void 0,Object.freeze(h))}},Q=new Map,Z=(e,t,s,i)=>{let{listener:r,rawEmitter:n}=i,a=Q.get(t),o=a&&a.options;return o&&(o.persistent<s.persistent||o.interval>s.interval)&&((0,c.unwatchFile)(t),a=void 0),a?(q(a,M,r),q(a,j,n)):(a={listeners:r,rawEmitters:n,options:s,watcher:(0,c.watchFile)(t,s,(s,i)=>{Y(a.rawEmitters,e=>{e(N.CHANGE,t,{curr:s,prev:i})});let r=s.mtimeMs;(s.size!==i.size||r>i.mtimeMs||0===r)&&Y(a.listeners,t=>t(e,s))})},Q.set(t,a)),()=>{$(a,M,r),$(a,j,n),K(a.listeners)&&(Q.delete(t),(0,c.unwatchFile)(t),a.options=a.watcher=void 0,Object.freeze(a))}};class ee{fsw;_boundHandleError;constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t)}_watchWithNodeFs(e,t){let s;let i=this.fsw.options,r=u.dirname(e),n=u.basename(e);this.fsw._getWatchedDir(r).add(n);let a=u.resolve(e),o={persistent:i.persistent};if(t||(t=x),i.usePolling){let r=i.interval!==i.binaryInterval;o.interval=r&&G(n)?i.binaryInterval:i.interval,s=Z(e,a,o,{listener:t,rawEmitter:this.fsw._emitRaw})}else s=B(e,a,o,{listener:t,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return s}_handleFile(e,t,s){if(this.fsw.closed)return;let i=u.dirname(e),r=u.basename(e),n=this.fsw._getWatchedDir(i),a=t;if(n.has(r))return;let o=async(t,s)=>{if(this.fsw._throttle("watch",e,5)){if(s&&0!==s.mtimeMs){if(n.has(r)){let t=s.atimeMs,i=s.mtimeMs;(!t||t<=i||i!==a.mtimeMs)&&this.fsw._emit(N.CHANGE,e,s),a=s}}else try{let s=await (0,p.stat)(e);if(this.fsw.closed)return;let i=s.atimeMs,r=s.mtimeMs;if((!i||i<=r||r!==a.mtimeMs)&&this.fsw._emit(N.CHANGE,e,s),(S||W||F)&&a.ino!==s.ino){this.fsw._closeFile(t),a=s;let i=this._watchWithNodeFs(e,o);i&&this.fsw._addPathCloser(t,i)}else a=s}catch(e){this.fsw._remove(i,r)}}},h=this._watchWithNodeFs(e,o);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(N.ADD,e,0))return;this.fsw._emit(N.ADD,e,t)}return h}async _handleSymlink(e,t,s,i){if(this.fsw.closed)return;let r=e.fullPath,n=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){let t;this.fsw._incrReadyCount();try{t=await (0,p.realpath)(s)}catch(e){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;return n.has(i)?this.fsw._symlinkPaths.get(r)!==t&&(this.fsw._symlinkPaths.set(r,t),this.fsw._emit(N.CHANGE,s,e.stats)):(n.add(i),this.fsw._symlinkPaths.set(r,t),this.fsw._emit(N.ADD,s,e.stats)),this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(r))return!0;this.fsw._symlinkPaths.set(r,!0)}_handleRead(e,t,s,i,r,n,a){e=u.join(e,"");let o=i?`${e}:${i}`:e;if(!(a=this.fsw._throttle("readdir",o,1e3)))return;let h=this.fsw._getWatchedDir(s.path),l=new Set,d=this.fsw._readdirp(e,{fileFilter:e=>s.filterPath(e),directoryFilter:e=>s.filterDir(e)});if(d)return d.on("data",async a=>{if(this.fsw.closed){d=void 0;return}let o=a.path,c=u.join(e,o);if(l.add(o),!(a.stats.isSymbolicLink()&&await this._handleSymlink(a,e,c,o))){if(this.fsw.closed){d=void 0;return}o!==i&&(i||h.has(o))||(this.fsw._incrReadyCount(),c=u.join(r,u.relative(r,c)),this._addToNodeFs(c,t,s,n+1))}}).on(N.ERROR,this._boundHandleError),new Promise((t,o)=>{if(!d)return o();d.once("end",()=>{if(this.fsw.closed){d=void 0;return}let o=!!a&&a.clear();t(void 0),h.getChildren().filter(t=>t!==e&&!l.has(t)).forEach(t=>{this.fsw._remove(e,t)}),d=void 0,o&&this._handleRead(e,!1,s,i,r,n,a)})})}async _handleDir(e,t,s,i,r,n,a){let o,h;let l=this.fsw._getWatchedDir(u.dirname(e)),d=l.has(u.basename(e));s&&this.fsw.options.ignoreInitial||r||d||this.fsw._emit(N.ADD_DIR,e,t),l.add(u.basename(e)),this.fsw._getWatchedDir(e);let c=this.fsw.options.depth;if((null==c||i<=c)&&!this.fsw._symlinkPaths.has(a)){if(!r&&(await this._handleRead(e,s,n,r,e,i,o),this.fsw.closed))return;h=this._watchWithNodeFs(e,(t,s)=>{s&&0===s.mtimeMs||this._handleRead(t,!1,n,r,e,i,o)})}return h}async _addToNodeFs(e,t,s,i,r){let n=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return n(),!1;let a=this.fsw._getWatchHelpers(e);s&&(a.filterPath=e=>s.filterPath(e),a.filterDir=e=>s.filterDir(e));try{let s;let o=await L[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,o))return n(),!1;let h=this.fsw.options.followSymlinks;if(o.isDirectory()){let n=u.resolve(e),l=h?await (0,p.realpath)(e):e;if(this.fsw.closed||(s=await this._handleDir(a.watchPath,o,t,i,r,a,l),this.fsw.closed))return;n!==l&&void 0!==l&&this.fsw._symlinkPaths.set(n,l)}else if(o.isSymbolicLink()){let r=h?await (0,p.realpath)(e):e;if(this.fsw.closed)return;let n=u.dirname(a.watchPath);if(this.fsw._getWatchedDir(n).add(a.watchPath),this.fsw._emit(N.ADD,a.watchPath,o),s=await this._handleDir(n,o,t,i,e,a,r),this.fsw.closed)return;void 0!==r&&this.fsw._symlinkPaths.set(u.resolve(e),r)}else s=this._handleFile(a.watchPath,o,t);return n(),s&&this.fsw._addPathCloser(e,s),!1}catch(t){if(this.fsw._handleError(t))return n(),e}}}let et=/\\/g,es=/\/\//g,ei=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,er=/^\.[/\\]/;function en(e){return Array.isArray(e)?e:[e]}let ea=e=>"object"==typeof e&&null!==e&&!(e instanceof RegExp);function eo(e,t,s){let i=function(e){if("string"!=typeof e)throw Error("string expected");e=(e=u.normalize(e)).replace(/\\/g,"/");let t=!1;return e.startsWith("//")&&(t=!0),e=e.replace(es,"/"),t&&(e="/"+e),e}(t);for(let t=0;t<e.length;t++)if((0,e[t])(i,s))return!0;return!1}let eh=e=>{let t=en(e).flat();if(!t.every(e=>"string"==typeof e))throw TypeError(`Non-string provided as watch path: ${t}`);return t.map(ed)},el=e=>{let t=e.replace(et,"/"),s=!1;return t.startsWith("//")&&(s=!0),t=t.replace(es,"/"),s&&(t="/"+t),t},ed=e=>el(u.normalize(el(e))),ec=(e="")=>t=>"string"==typeof t?ed(u.isAbsolute(t)?t:u.join(e,t)):t,ep=(e,t)=>u.isAbsolute(e)?e:u.join(t,e),eu=Object.freeze(new Set);class ef{path;_removeWatcher;items;constructor(e,t){this.path=e,this._removeWatcher=t,this.items=new Set}add(e){let{items:t}=this;t&&"."!==e&&".."!==e&&t.add(e)}async remove(e){let{items:t}=this;if(!t||(t.delete(e),t.size>0))return;let s=this.path;try{await (0,p.readdir)(s)}catch(e){this._removeWatcher&&this._removeWatcher(u.dirname(s),u.basename(s))}}has(e){let{items:t}=this;if(t)return t.has(e)}getChildren(){let{items:e}=this;return e?[...e.values()]:[]}dispose(){this.items.clear(),this.path="",this._removeWatcher=x,this.items=eu,Object.freeze(this)}}class e_{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(e,t,s){this.fsw=s;let i=e;this.path=e=e.replace(er,""),this.watchPath=i,this.fullWatchPath=u.resolve(i),this.dirParts=[],this.dirParts.forEach(e=>{e.length>1&&e.pop()}),this.followSymlinks=t,this.statMethod=t?"stat":"lstat"}entryPath(e){return u.join(this.watchPath,u.relative(this.watchPath,e.fullPath))}filterPath(e){let{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);let s=this.entryPath(e);return this.fsw._isntIgnored(s,t)&&this.fsw._hasReadPermissions(t)}filterDir(e){return this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class em extends d.EventEmitter{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(e={}){super(),this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let t=e.awaitWriteFinish,s={stabilityThreshold:2e3,pollInterval:100},i={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...e,ignored:e.ignored?en(e.ignored):en([]),awaitWriteFinish:!0===t?s:"object"==typeof t&&{...s,...t}};C&&(i.usePolling=!0),void 0===i.atomic&&(i.atomic=!i.usePolling);let r=process.env.CHOKIDAR_USEPOLLING;if(void 0!==r){let e=r.toLowerCase();"false"===e||"0"===e?i.usePolling=!1:"true"===e||"1"===e?i.usePolling=!0:i.usePolling=!!e}let n=process.env.CHOKIDAR_INTERVAL;n&&(i.interval=Number.parseInt(n,10));let a=0;this._emitReady=()=>{++a>=this._readyCount&&(this._emitReady=x,this._readyEmitted=!0,process.nextTick(()=>this.emit(N.READY)))},this._emitRaw=(...e)=>this.emit(N.RAW,...e),this._boundRemove=this._remove.bind(this),this.options=i,this._nodeFsHandler=new ee(this),Object.freeze(i)}_addIgnoredPath(e){if(ea(e)){for(let t of this._ignoredPaths)if(ea(t)&&t.path===e.path&&t.recursive===e.recursive)return}this._ignoredPaths.add(e)}_removeIgnoredPath(e){if(this._ignoredPaths.delete(e),"string"==typeof e)for(let t of this._ignoredPaths)ea(t)&&t.path===e&&this._ignoredPaths.delete(t)}add(e,t,s){let{cwd:i}=this.options;this.closed=!1,this._closePromise=void 0;let r=eh(e);return i&&(r=r.map(e=>ep(e,i))),r.forEach(e=>{this._removeIgnoredPath(e)}),this._userIgnored=void 0,this._readyCount||(this._readyCount=0),this._readyCount+=r.length,Promise.all(r.map(async e=>{let i=await this._nodeFsHandler._addToNodeFs(e,!s,void 0,0,t);return i&&this._emitReady(),i})).then(e=>{this.closed||e.forEach(e=>{e&&this.add(u.dirname(e),u.basename(t||e))})}),this}unwatch(e){if(this.closed)return this;let t=eh(e),{cwd:s}=this.options;return t.forEach(e=>{u.isAbsolute(e)||this._closers.has(e)||(s&&(e=u.join(s,e)),e=u.resolve(e)),this._closePath(e),this._addIgnoredPath(e),this._watched.has(e)&&this._addIgnoredPath({path:e,recursive:!0}),this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(t=>t.forEach(t=>{let s=t();s instanceof Promise&&e.push(s)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=e.length?Promise.all(e).then(()=>void 0):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((t,s)=>{e[(this.options.cwd?u.relative(this.options.cwd,s):s)||"."]=t.getChildren().sort()}),e}emitWithAll(e,t){this.emit(e,...t),e!==N.ERROR&&this.emit(N.ALL,e,...t)}async _emit(e,t,s){let i;if(this.closed)return;let r=this.options;k&&(t=u.normalize(t)),r.cwd&&(t=u.relative(r.cwd,t));let n=[t];null!=s&&n.push(s);let a=r.awaitWriteFinish;if(a&&(i=this._pendingWrites.get(t)))return i.lastChange=new Date,this;if(r.atomic){if(e===N.UNLINK)return this._pendingUnlinks.set(t,[e,...n]),setTimeout(()=>{this._pendingUnlinks.forEach((e,t)=>{this.emit(...e),this.emit(N.ALL,...e),this._pendingUnlinks.delete(t)})},"number"==typeof r.atomic?r.atomic:100),this;e===N.ADD&&this._pendingUnlinks.has(t)&&(e=N.CHANGE,this._pendingUnlinks.delete(t))}if(a&&(e===N.ADD||e===N.CHANGE)&&this._readyEmitted)return this._awaitWriteFinish(t,a.stabilityThreshold,e,(t,s)=>{t?(e=N.ERROR,n[0]=t,this.emitWithAll(e,n)):s&&(n.length>1?n[1]=s:n.push(s),this.emitWithAll(e,n))}),this;if(e===N.CHANGE&&!this._throttle(N.CHANGE,t,50))return this;if(r.alwaysStat&&void 0===s&&(e===N.ADD||e===N.ADD_DIR||e===N.CHANGE)){let e;let s=r.cwd?u.join(r.cwd,t):t;try{e=await (0,p.stat)(s)}catch(e){}if(!e||this.closed)return;n.push(e)}return this.emitWithAll(e,n),this}_handleError(e){let t=e&&e.code;return e&&"ENOENT"!==t&&"ENOTDIR"!==t&&(!this.options.ignorePermissionErrors||"EPERM"!==t&&"EACCES"!==t)&&this.emit(N.ERROR,e),e||this.closed}_throttle(e,t,s){let i;this._throttled.has(e)||this._throttled.set(e,new Map);let r=this._throttled.get(e);if(!r)throw Error("invalid throttle");let n=r.get(t);if(n)return n.count++,!1;let a=()=>{let e=r.get(t),s=e?e.count:0;return r.delete(t),clearTimeout(i),e&&clearTimeout(e.timeoutObject),s},o={timeoutObject:i=setTimeout(a,s),clear:a,count:0};return r.set(t,o),o}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,t,s,i){let r;let n=this.options.awaitWriteFinish;if("object"!=typeof n)return;let a=n.pollInterval,o=e;this.options.cwd&&!u.isAbsolute(e)&&(o=u.join(this.options.cwd,e));let h=new Date,l=this._pendingWrites;l.has(e)||(l.set(e,{lastChange:h,cancelWait:()=>(l.delete(e),clearTimeout(r),s)}),r=setTimeout(function s(n){(0,c.stat)(o,(o,h)=>{if(o||!l.has(e)){o&&"ENOENT"!==o.code&&i(o);return}let d=Number(new Date);n&&h.size!==n.size&&(l.get(e).lastChange=d),d-l.get(e).lastChange>=t?(l.delete(e),i(void 0,h)):r=setTimeout(s,a,h)})},a))}_isIgnored(e,t){if(this.options.atomic&&ei.test(e))return!0;if(!this._userIgnored){let{cwd:e}=this.options,t=(this.options.ignored||[]).map(ec(e)),s=[...[...this._ignoredPaths].map(ec(e)),...t];this._userIgnored=function(e,t){if(null==e)throw TypeError("anymatch: specify first argument");let s=en(e).map(e=>"function"==typeof e?e:"string"==typeof e?t=>e===t:e instanceof RegExp?t=>e.test(t):"object"==typeof e&&null!==e?t=>{if(e.path===t)return!0;if(e.recursive){let s=u.relative(e.path,t);return!!s&&!s.startsWith("..")&&!u.isAbsolute(s)}return!1}:()=>!1);return null==t?(e,t)=>eo(s,e,t):eo(s,t)}(s,void 0)}return this._userIgnored(e,t)}_isntIgnored(e,t){return!this._isIgnored(e,t)}_getWatchHelpers(e){return new e_(e,this.options.followSymlinks,this)}_getWatchedDir(e){let t=u.resolve(e);return this._watched.has(t)||this._watched.set(t,new ef(t,this._boundRemove)),this._watched.get(t)}_hasReadPermissions(e){return!!this.options.ignorePermissionErrors||!!(256&Number(e.mode))}_remove(e,t,s){let i=u.join(e,t),r=u.resolve(i);if(s=null!=s?s:this._watched.has(i)||this._watched.has(r),!this._throttle("remove",i,100))return;s||1!==this._watched.size||this.add(e,t,!0),this._getWatchedDir(i).getChildren().forEach(e=>this._remove(i,e));let n=this._getWatchedDir(e),a=n.has(t);n.remove(t),this._symlinkPaths.has(r)&&this._symlinkPaths.delete(r);let o=i;if(this.options.cwd&&(o=u.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(o)&&this._pendingWrites.get(o).cancelWait()===N.ADD)return;this._watched.delete(i),this._watched.delete(r);let h=s?N.UNLINK_DIR:N.UNLINK;a&&!this._isIgnored(i)&&this._emit(h,i),this._closePath(i)}_closePath(e){this._closeFile(e);let t=u.dirname(e);this._getWatchedDir(t).remove(u.basename(e))}_closeFile(e){let t=this._closers.get(e);t&&(t.forEach(e=>e()),this._closers.delete(e))}_addPathCloser(e,t){if(!t)return;let s=this._closers.get(e);s||(s=[],this._closers.set(e,s)),s.push(t)}_readdirp(e,t){if(this.closed)return;let s=function(e,t={}){let s=t.entryType||t.type;if("both"===s&&(s=_.FILE_DIR_TYPE),e){if("string"!=typeof e)throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(s&&!y.includes(s))throw Error(`readdirp: Invalid type passed. Use one of ${y.join(", ")}`)}else throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");let i={...t,root:e};return s&&(i.type=s),new I(i)}(e,{type:N.ALL,alwaysStat:!0,lstat:!0,...t,depth:0});return this._streams.add(s),s.once("close",()=>{s=void 0}),s.once("end",()=>{s&&(this._streams.delete(s),s=void 0)}),s}}let ew=e=>(function(e,t={}){let s=new em(t);return s.add(e),s})(e,{ignoreInitial:!0,persistent:!0});class eg{constructor(e=ew,t=150){this.watchFile=e,this.debounceMs=t,this.entries=new Map}subscribe(e,t,s){let i=`${e}\0${t}`,r=this.entries.get(i);if(!r){let e=this.watchFile(t);r={watcher:e,subscribers:new Set,revision:0,debounceTimer:null},e.on("add",()=>this.schedule(r)),e.on("change",()=>this.schedule(r)),this.entries.set(i,r)}r.subscribers.add(s);let n=!0;return()=>{if(!n)return;n=!1;let e=this.entries.get(i);e&&(e.subscribers.delete(s),0===e.subscribers.size&&this.releaseEntry(i,e))}}async dispose(){let e=[...this.entries.entries()];this.entries.clear(),await Promise.all(e.map(async([,e])=>{e.debounceTimer&&clearTimeout(e.debounceTimer),await e.watcher.close()}))}schedule(e){e.debounceTimer&&clearTimeout(e.debounceTimer),e.debounceTimer=setTimeout(()=>{e.debounceTimer=null,e.revision+=1;let t={type:"session_history_changed",revision:e.revision};for(let s of e.subscribers)try{s(t)}catch{}},this.debounceMs)}releaseEntry(e,t){this.entries.get(e)===t&&this.entries.delete(e),t.debounceTimer&&clearTimeout(t.debounceTimer),t.debounceTimer=null,t.watcher.close()}}let ey=globalThis,ev="force-dynamic",eE="nodejs",eb=new TextEncoder;async function eP(e,{params:t}){if(!(0,l.V_)(t.id))return function(e,t){let s=(0,o.getDatabase)((0,h.kO)()).db.prepare(`SELECT updated, status,
1
+ "use strict";(()=>{var e={};e.id=8917,e.ids=[8917],e.modules={1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},7424:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>ex,patchFetch:()=>eA,requestAsyncStorage:()=>eD,routeModule:()=>eR,serverHooks:()=>eT,staticGenerationAsyncStorage:()=>eI});var i={};s.r(i),s.d(i,{GET:()=>eP,dynamic:()=>ev,runtime:()=>eE});var r=s(7786),n=s(5042),a=s(2184),o=s(1636),h=s(785),l=s(1614);let d=require("node:events");var c=s(7561),p=s(3977),u=s(9411);let f=require("node:stream"),_={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},m={root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:_.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:256};Object.freeze(m);let w="READDIRP_RECURSIVE_ERROR",g=new Set(["ENOENT","EPERM","EACCES","ELOOP",w]),y=[_.DIR_TYPE,_.EVERYTHING_TYPE,_.FILE_DIR_TYPE,_.FILE_TYPE],v=new Set([_.DIR_TYPE,_.EVERYTHING_TYPE,_.FILE_DIR_TYPE]),E=new Set([_.EVERYTHING_TYPE,_.FILE_DIR_TYPE,_.FILE_TYPE]),b=e=>g.has(e.code),P="win32"===process.platform,R=e=>!0,D=e=>{if(void 0===e)return R;if("function"==typeof e)return e;if("string"==typeof e){let t=e.trim();return e=>e.basename===t}if(Array.isArray(e)){let t=e.map(e=>e.trim());return e=>t.some(t=>e.basename===t)}return R};class I extends f.Readable{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;_relStart;constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark??m.highWaterMark});let t={...m,...e},s=t.root??m.root,i=t.type??m.type;this._fileFilter=D(t.fileFilter),this._directoryFilter=D(t.directoryFilter);let r=t.lstat?p.lstat:p.stat;P?this._stat=e=>r(e,{bigint:!0}):this._stat=r,this._maxDepth=null!=t.depth&&Number.isSafeInteger(t.depth)?t.depth:m.depth,this._wantsDir=v.has(i),this._wantsFile=E.has(i),this._wantsEverything=i===_.EVERYTHING_TYPE,this._root=(0,u.resolve)(s),this._relStart=this._root.endsWith(u.sep)?this._root.length:this._root.length+1,this._isDirent=!t.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent};let n={path:this._root,depth:1};n.pending=this._exploreDir(this._root,1),this.parents=[n],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let t=this.parent,s=t&&t.files;if(s&&s.length>0){let{path:i,depth:r}=t,n=s.splice(0,e).map(e=>this._formatEntry(e,i));for(let t of this._isDirent?n:await Promise.all(n)){if(!t)continue;if(this.destroyed)return;let s=this._getEntryType(t);"string"!=typeof s&&(s=await s),"directory"===s&&this._directoryFilter(t)?(r<=this._maxDepth&&this.parents.push({path:t.fullPath,depth:r+1}),this._wantsDir&&(this.push(t),e--)):("file"===s||this._includeAsFile(t))&&this._fileFilter(t)&&this._wantsFile&&(this.push(t),e--)}}else{let e=this.parents.pop();if(!e){this.push(null);break}let t=e.pending??this._exploreDir(e.path,e.depth),s=this.parents[this.parents.length-1];if(s&&!s.pending&&(s.pending=this._exploreDir(s.path,s.depth)),this.parent=await t,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(e,t){let s;try{s=await (0,p.readdir)(e,this._rdOptions)}catch(e){this._onError(e)}return{files:s,depth:t,path:e}}_formatEntry(e,t){let s=this._isDirent?e.name:e,i=(0,u.join)(t,s),r={path:i.slice(this._relStart),fullPath:i,basename:s};return this._isDirent?(r.dirent=e,r):this._stat(i).then(e=>(r.stats=e,r),e=>{this._onError(e)})}_onError(e){b(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}_getEntryType(e){if(!e||!(this._statsProp in e))return"";let t=e[this._statsProp];return t.isFile()?"file":t.isDirectory()?"directory":t.isSymbolicLink()?this._getSymlinkEntryType(e):""}async _getSymlinkEntryType(e){let t=e.fullPath;try{let e=await (0,p.realpath)(t),s=await (0,p.lstat)(e);if(s.isFile())return"file";if(s.isDirectory()){let s=e.length;if(t.startsWith(e)&&t[s]===u.sep){let s=Error(`Circular symlink detected: "${t}" points to "${e}"`);return s.code=w,this._onError(s),""}return"directory"}}catch(e){this._onError(e)}return""}_includeAsFile(e){let t=e&&e[this._statsProp];return t&&this._wantsEverything&&!t.isDirectory()}}var T=s(612);let x=()=>{},A=process.platform,k="win32"===A,S="darwin"===A,W="linux"===A,F="freebsd"===A,C="OS400"===(0,T.type)(),N={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},L={lstat:p.lstat,stat:p.stat},M="listeners",O="errHandlers",j="rawEmitters",z=[M,O,j],H=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),G=e=>H.has(u.extname(e).slice(1).toLowerCase()),Y=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},q=(e,t,s)=>{let i=e[t];i instanceof Set||(e[t]=i=new Set([i])),i.add(s)},U=e=>t=>{let s=e[t];s instanceof Set?s.clear():delete e[t]},$=(e,t,s)=>{let i=e[t];i instanceof Set?i.delete(s):i===s&&delete e[t]},K=e=>e instanceof Set?0===e.size:!e,V=new Map;function X(e,t,s,i,r){try{return(0,c.watch)(e,{persistent:t.persistent},(t,i)=>{s(e),r(t,i,{watchedPath:e}),i&&e!==i&&J(u.resolve(e,i),M,u.join(e,i))})}catch(e){i(e);return}}let J=(e,t,s,i,r)=>{let n=V.get(e);n&&Y(n[t],e=>{e(s,i,r)})},B=(e,t,s,i)=>{let r;let{listener:n,errHandler:a,rawEmitter:o}=i,h=V.get(t);if(!s.persistent){if(!(r=X(e,s,n,a,o)))return;return r.close.bind(r)}if(h)q(h,M,n),q(h,O,a),q(h,j,o);else{if(!(r=X(e,s,J.bind(null,t,M),a,J.bind(null,t,j))))return;r.on(N.ERROR,async s=>{let i=J.bind(null,t,O);if(h&&(h.watcherUnusable=!0),k&&"EPERM"===s.code)try{let t=await (0,p.open)(e,"r");await t.close(),i(s)}catch(e){}else i(s)}),h={listeners:n,errHandlers:a,rawEmitters:o,watcher:r},V.set(t,h)}return()=>{$(h,M,n),$(h,O,a),$(h,j,o),K(h.listeners)&&(h.watcher.close(),V.delete(t),z.forEach(U(h)),h.watcher=void 0,Object.freeze(h))}},Q=new Map,Z=(e,t,s,i)=>{let{listener:r,rawEmitter:n}=i,a=Q.get(t),o=a&&a.options;return o&&(o.persistent<s.persistent||o.interval>s.interval)&&((0,c.unwatchFile)(t),a=void 0),a?(q(a,M,r),q(a,j,n)):(a={listeners:r,rawEmitters:n,options:s,watcher:(0,c.watchFile)(t,s,(s,i)=>{Y(a.rawEmitters,e=>{e(N.CHANGE,t,{curr:s,prev:i})});let r=s.mtimeMs;(s.size!==i.size||r>i.mtimeMs||0===r)&&Y(a.listeners,t=>t(e,s))})},Q.set(t,a)),()=>{$(a,M,r),$(a,j,n),K(a.listeners)&&(Q.delete(t),(0,c.unwatchFile)(t),a.options=a.watcher=void 0,Object.freeze(a))}};class ee{fsw;_boundHandleError;constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t)}_watchWithNodeFs(e,t){let s;let i=this.fsw.options,r=u.dirname(e),n=u.basename(e);this.fsw._getWatchedDir(r).add(n);let a=u.resolve(e),o={persistent:i.persistent};if(t||(t=x),i.usePolling){let r=i.interval!==i.binaryInterval;o.interval=r&&G(n)?i.binaryInterval:i.interval,s=Z(e,a,o,{listener:t,rawEmitter:this.fsw._emitRaw})}else s=B(e,a,o,{listener:t,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return s}_handleFile(e,t,s){if(this.fsw.closed)return;let i=u.dirname(e),r=u.basename(e),n=this.fsw._getWatchedDir(i),a=t;if(n.has(r))return;let o=async(t,s)=>{if(this.fsw._throttle("watch",e,5)){if(s&&0!==s.mtimeMs){if(n.has(r)){let t=s.atimeMs,i=s.mtimeMs;(!t||t<=i||i!==a.mtimeMs)&&this.fsw._emit(N.CHANGE,e,s),a=s}}else try{let s=await (0,p.stat)(e);if(this.fsw.closed)return;let i=s.atimeMs,r=s.mtimeMs;if((!i||i<=r||r!==a.mtimeMs)&&this.fsw._emit(N.CHANGE,e,s),(S||W||F)&&a.ino!==s.ino){this.fsw._closeFile(t),a=s;let i=this._watchWithNodeFs(e,o);i&&this.fsw._addPathCloser(t,i)}else a=s}catch(e){this.fsw._remove(i,r)}}},h=this._watchWithNodeFs(e,o);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(N.ADD,e,0))return;this.fsw._emit(N.ADD,e,t)}return h}async _handleSymlink(e,t,s,i){if(this.fsw.closed)return;let r=e.fullPath,n=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){let t;this.fsw._incrReadyCount();try{t=await (0,p.realpath)(s)}catch(e){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;return n.has(i)?this.fsw._symlinkPaths.get(r)!==t&&(this.fsw._symlinkPaths.set(r,t),this.fsw._emit(N.CHANGE,s,e.stats)):(n.add(i),this.fsw._symlinkPaths.set(r,t),this.fsw._emit(N.ADD,s,e.stats)),this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(r))return!0;this.fsw._symlinkPaths.set(r,!0)}_handleRead(e,t,s,i,r,n,a){e=u.join(e,"");let o=i?`${e}:${i}`:e;if(!(a=this.fsw._throttle("readdir",o,1e3)))return;let h=this.fsw._getWatchedDir(s.path),l=new Set,d=this.fsw._readdirp(e,{fileFilter:e=>s.filterPath(e),directoryFilter:e=>s.filterDir(e)});if(d)return d.on("data",async a=>{if(this.fsw.closed){d=void 0;return}let o=a.path,c=u.join(e,o);if(l.add(o),!(a.stats.isSymbolicLink()&&await this._handleSymlink(a,e,c,o))){if(this.fsw.closed){d=void 0;return}o!==i&&(i||h.has(o))||(this.fsw._incrReadyCount(),c=u.join(r,u.relative(r,c)),this._addToNodeFs(c,t,s,n+1))}}).on(N.ERROR,this._boundHandleError),new Promise((t,o)=>{if(!d)return o();d.once("end",()=>{if(this.fsw.closed){d=void 0;return}let o=!!a&&a.clear();t(void 0),h.getChildren().filter(t=>t!==e&&!l.has(t)).forEach(t=>{this.fsw._remove(e,t)}),d=void 0,o&&this._handleRead(e,!1,s,i,r,n,a)})})}async _handleDir(e,t,s,i,r,n,a){let o,h;let l=this.fsw._getWatchedDir(u.dirname(e)),d=l.has(u.basename(e));s&&this.fsw.options.ignoreInitial||r||d||this.fsw._emit(N.ADD_DIR,e,t),l.add(u.basename(e)),this.fsw._getWatchedDir(e);let c=this.fsw.options.depth;if((null==c||i<=c)&&!this.fsw._symlinkPaths.has(a)){if(!r&&(await this._handleRead(e,s,n,r,e,i,o),this.fsw.closed))return;h=this._watchWithNodeFs(e,(t,s)=>{s&&0===s.mtimeMs||this._handleRead(t,!1,n,r,e,i,o)})}return h}async _addToNodeFs(e,t,s,i,r){let n=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return n(),!1;let a=this.fsw._getWatchHelpers(e);s&&(a.filterPath=e=>s.filterPath(e),a.filterDir=e=>s.filterDir(e));try{let s;let o=await L[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,o))return n(),!1;let h=this.fsw.options.followSymlinks;if(o.isDirectory()){let n=u.resolve(e),l=h?await (0,p.realpath)(e):e;if(this.fsw.closed||(s=await this._handleDir(a.watchPath,o,t,i,r,a,l),this.fsw.closed))return;n!==l&&void 0!==l&&this.fsw._symlinkPaths.set(n,l)}else if(o.isSymbolicLink()){let r=h?await (0,p.realpath)(e):e;if(this.fsw.closed)return;let n=u.dirname(a.watchPath);if(this.fsw._getWatchedDir(n).add(a.watchPath),this.fsw._emit(N.ADD,a.watchPath,o),s=await this._handleDir(n,o,t,i,e,a,r),this.fsw.closed)return;void 0!==r&&this.fsw._symlinkPaths.set(u.resolve(e),r)}else s=this._handleFile(a.watchPath,o,t);return n(),s&&this.fsw._addPathCloser(e,s),!1}catch(t){if(this.fsw._handleError(t))return n(),e}}}let et=/\\/g,es=/\/\//g,ei=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,er=/^\.[/\\]/;function en(e){return Array.isArray(e)?e:[e]}let ea=e=>"object"==typeof e&&null!==e&&!(e instanceof RegExp);function eo(e,t,s){let i=function(e){if("string"!=typeof e)throw Error("string expected");e=(e=u.normalize(e)).replace(/\\/g,"/");let t=!1;return e.startsWith("//")&&(t=!0),e=e.replace(es,"/"),t&&(e="/"+e),e}(t);for(let t=0;t<e.length;t++)if((0,e[t])(i,s))return!0;return!1}let eh=e=>{let t=en(e).flat();if(!t.every(e=>"string"==typeof e))throw TypeError(`Non-string provided as watch path: ${t}`);return t.map(ed)},el=e=>{let t=e.replace(et,"/"),s=!1;return t.startsWith("//")&&(s=!0),t=t.replace(es,"/"),s&&(t="/"+t),t},ed=e=>el(u.normalize(el(e))),ec=(e="")=>t=>"string"==typeof t?ed(u.isAbsolute(t)?t:u.join(e,t)):t,ep=(e,t)=>u.isAbsolute(e)?e:u.join(t,e),eu=Object.freeze(new Set);class ef{path;_removeWatcher;items;constructor(e,t){this.path=e,this._removeWatcher=t,this.items=new Set}add(e){let{items:t}=this;t&&"."!==e&&".."!==e&&t.add(e)}async remove(e){let{items:t}=this;if(!t||(t.delete(e),t.size>0))return;let s=this.path;try{await (0,p.readdir)(s)}catch(e){this._removeWatcher&&this._removeWatcher(u.dirname(s),u.basename(s))}}has(e){let{items:t}=this;if(t)return t.has(e)}getChildren(){let{items:e}=this;return e?[...e.values()]:[]}dispose(){this.items.clear(),this.path="",this._removeWatcher=x,this.items=eu,Object.freeze(this)}}class e_{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(e,t,s){this.fsw=s;let i=e;this.path=e=e.replace(er,""),this.watchPath=i,this.fullWatchPath=u.resolve(i),this.dirParts=[],this.dirParts.forEach(e=>{e.length>1&&e.pop()}),this.followSymlinks=t,this.statMethod=t?"stat":"lstat"}entryPath(e){return u.join(this.watchPath,u.relative(this.watchPath,e.fullPath))}filterPath(e){let{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);let s=this.entryPath(e);return this.fsw._isntIgnored(s,t)&&this.fsw._hasReadPermissions(t)}filterDir(e){return this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class em extends d.EventEmitter{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(e={}){super(),this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let t=e.awaitWriteFinish,s={stabilityThreshold:2e3,pollInterval:100},i={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...e,ignored:e.ignored?en(e.ignored):en([]),awaitWriteFinish:!0===t?s:"object"==typeof t&&{...s,...t}};C&&(i.usePolling=!0),void 0===i.atomic&&(i.atomic=!i.usePolling);let r=process.env.CHOKIDAR_USEPOLLING;if(void 0!==r){let e=r.toLowerCase();"false"===e||"0"===e?i.usePolling=!1:"true"===e||"1"===e?i.usePolling=!0:i.usePolling=!!e}let n=process.env.CHOKIDAR_INTERVAL;n&&(i.interval=Number.parseInt(n,10));let a=0;this._emitReady=()=>{++a>=this._readyCount&&(this._emitReady=x,this._readyEmitted=!0,process.nextTick(()=>this.emit(N.READY)))},this._emitRaw=(...e)=>this.emit(N.RAW,...e),this._boundRemove=this._remove.bind(this),this.options=i,this._nodeFsHandler=new ee(this),Object.freeze(i)}_addIgnoredPath(e){if(ea(e)){for(let t of this._ignoredPaths)if(ea(t)&&t.path===e.path&&t.recursive===e.recursive)return}this._ignoredPaths.add(e)}_removeIgnoredPath(e){if(this._ignoredPaths.delete(e),"string"==typeof e)for(let t of this._ignoredPaths)ea(t)&&t.path===e&&this._ignoredPaths.delete(t)}add(e,t,s){let{cwd:i}=this.options;this.closed=!1,this._closePromise=void 0;let r=eh(e);return i&&(r=r.map(e=>ep(e,i))),r.forEach(e=>{this._removeIgnoredPath(e)}),this._userIgnored=void 0,this._readyCount||(this._readyCount=0),this._readyCount+=r.length,Promise.all(r.map(async e=>{let i=await this._nodeFsHandler._addToNodeFs(e,!s,void 0,0,t);return i&&this._emitReady(),i})).then(e=>{this.closed||e.forEach(e=>{e&&this.add(u.dirname(e),u.basename(t||e))})}),this}unwatch(e){if(this.closed)return this;let t=eh(e),{cwd:s}=this.options;return t.forEach(e=>{u.isAbsolute(e)||this._closers.has(e)||(s&&(e=u.join(s,e)),e=u.resolve(e)),this._closePath(e),this._addIgnoredPath(e),this._watched.has(e)&&this._addIgnoredPath({path:e,recursive:!0}),this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(t=>t.forEach(t=>{let s=t();s instanceof Promise&&e.push(s)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=e.length?Promise.all(e).then(()=>void 0):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((t,s)=>{e[(this.options.cwd?u.relative(this.options.cwd,s):s)||"."]=t.getChildren().sort()}),e}emitWithAll(e,t){this.emit(e,...t),e!==N.ERROR&&this.emit(N.ALL,e,...t)}async _emit(e,t,s){let i;if(this.closed)return;let r=this.options;k&&(t=u.normalize(t)),r.cwd&&(t=u.relative(r.cwd,t));let n=[t];null!=s&&n.push(s);let a=r.awaitWriteFinish;if(a&&(i=this._pendingWrites.get(t)))return i.lastChange=new Date,this;if(r.atomic){if(e===N.UNLINK)return this._pendingUnlinks.set(t,[e,...n]),setTimeout(()=>{this._pendingUnlinks.forEach((e,t)=>{this.emit(...e),this.emit(N.ALL,...e),this._pendingUnlinks.delete(t)})},"number"==typeof r.atomic?r.atomic:100),this;e===N.ADD&&this._pendingUnlinks.has(t)&&(e=N.CHANGE,this._pendingUnlinks.delete(t))}if(a&&(e===N.ADD||e===N.CHANGE)&&this._readyEmitted)return this._awaitWriteFinish(t,a.stabilityThreshold,e,(t,s)=>{t?(e=N.ERROR,n[0]=t,this.emitWithAll(e,n)):s&&(n.length>1?n[1]=s:n.push(s),this.emitWithAll(e,n))}),this;if(e===N.CHANGE&&!this._throttle(N.CHANGE,t,50))return this;if(r.alwaysStat&&void 0===s&&(e===N.ADD||e===N.ADD_DIR||e===N.CHANGE)){let e;let s=r.cwd?u.join(r.cwd,t):t;try{e=await (0,p.stat)(s)}catch(e){}if(!e||this.closed)return;n.push(e)}return this.emitWithAll(e,n),this}_handleError(e){let t=e&&e.code;return e&&"ENOENT"!==t&&"ENOTDIR"!==t&&(!this.options.ignorePermissionErrors||"EPERM"!==t&&"EACCES"!==t)&&this.emit(N.ERROR,e),e||this.closed}_throttle(e,t,s){let i;this._throttled.has(e)||this._throttled.set(e,new Map);let r=this._throttled.get(e);if(!r)throw Error("invalid throttle");let n=r.get(t);if(n)return n.count++,!1;let a=()=>{let e=r.get(t),s=e?e.count:0;return r.delete(t),clearTimeout(i),e&&clearTimeout(e.timeoutObject),s},o={timeoutObject:i=setTimeout(a,s),clear:a,count:0};return r.set(t,o),o}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,t,s,i){let r;let n=this.options.awaitWriteFinish;if("object"!=typeof n)return;let a=n.pollInterval,o=e;this.options.cwd&&!u.isAbsolute(e)&&(o=u.join(this.options.cwd,e));let h=new Date,l=this._pendingWrites;l.has(e)||(l.set(e,{lastChange:h,cancelWait:()=>(l.delete(e),clearTimeout(r),s)}),r=setTimeout(function s(n){(0,c.stat)(o,(o,h)=>{if(o||!l.has(e)){o&&"ENOENT"!==o.code&&i(o);return}let d=Number(new Date);n&&h.size!==n.size&&(l.get(e).lastChange=d),d-l.get(e).lastChange>=t?(l.delete(e),i(void 0,h)):r=setTimeout(s,a,h)})},a))}_isIgnored(e,t){if(this.options.atomic&&ei.test(e))return!0;if(!this._userIgnored){let{cwd:e}=this.options,t=(this.options.ignored||[]).map(ec(e)),s=[...[...this._ignoredPaths].map(ec(e)),...t];this._userIgnored=function(e,t){if(null==e)throw TypeError("anymatch: specify first argument");let s=en(e).map(e=>"function"==typeof e?e:"string"==typeof e?t=>e===t:e instanceof RegExp?t=>e.test(t):"object"==typeof e&&null!==e?t=>{if(e.path===t)return!0;if(e.recursive){let s=u.relative(e.path,t);return!!s&&!s.startsWith("..")&&!u.isAbsolute(s)}return!1}:()=>!1);return null==t?(e,t)=>eo(s,e,t):eo(s,t)}(s,void 0)}return this._userIgnored(e,t)}_isntIgnored(e,t){return!this._isIgnored(e,t)}_getWatchHelpers(e){return new e_(e,this.options.followSymlinks,this)}_getWatchedDir(e){let t=u.resolve(e);return this._watched.has(t)||this._watched.set(t,new ef(t,this._boundRemove)),this._watched.get(t)}_hasReadPermissions(e){return!!this.options.ignorePermissionErrors||!!(256&Number(e.mode))}_remove(e,t,s){let i=u.join(e,t),r=u.resolve(i);if(s=null!=s?s:this._watched.has(i)||this._watched.has(r),!this._throttle("remove",i,100))return;s||1!==this._watched.size||this.add(e,t,!0),this._getWatchedDir(i).getChildren().forEach(e=>this._remove(i,e));let n=this._getWatchedDir(e),a=n.has(t);n.remove(t),this._symlinkPaths.has(r)&&this._symlinkPaths.delete(r);let o=i;if(this.options.cwd&&(o=u.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(o)&&this._pendingWrites.get(o).cancelWait()===N.ADD)return;this._watched.delete(i),this._watched.delete(r);let h=s?N.UNLINK_DIR:N.UNLINK;a&&!this._isIgnored(i)&&this._emit(h,i),this._closePath(i)}_closePath(e){this._closeFile(e);let t=u.dirname(e);this._getWatchedDir(t).remove(u.basename(e))}_closeFile(e){let t=this._closers.get(e);t&&(t.forEach(e=>e()),this._closers.delete(e))}_addPathCloser(e,t){if(!t)return;let s=this._closers.get(e);s||(s=[],this._closers.set(e,s)),s.push(t)}_readdirp(e,t){if(this.closed)return;let s=function(e,t={}){let s=t.entryType||t.type;if("both"===s&&(s=_.FILE_DIR_TYPE),e){if("string"!=typeof e)throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(s&&!y.includes(s))throw Error(`readdirp: Invalid type passed. Use one of ${y.join(", ")}`)}else throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");let i={...t,root:e};return s&&(i.type=s),new I(i)}(e,{type:N.ALL,alwaysStat:!0,lstat:!0,...t,depth:0});return this._streams.add(s),s.once("close",()=>{s=void 0}),s.once("end",()=>{s&&(this._streams.delete(s),s=void 0)}),s}}let ew=e=>(function(e,t={}){let s=new em(t);return s.add(e),s})(e,{ignoreInitial:!0,persistent:!0});class eg{constructor(e=ew,t=150){this.watchFile=e,this.debounceMs=t,this.entries=new Map}subscribe(e,t,s){let i=`${e}\0${t}`,r=this.entries.get(i);if(!r){let e=this.watchFile(t);r={watcher:e,subscribers:new Set,revision:0,debounceTimer:null},e.on("add",()=>this.schedule(r)),e.on("change",()=>this.schedule(r)),this.entries.set(i,r)}r.subscribers.add(s);let n=!0;return()=>{if(!n)return;n=!1;let e=this.entries.get(i);e&&(e.subscribers.delete(s),0===e.subscribers.size&&this.releaseEntry(i,e))}}async dispose(){let e=[...this.entries.entries()];this.entries.clear(),await Promise.all(e.map(async([,e])=>{e.debounceTimer&&clearTimeout(e.debounceTimer),await e.watcher.close()}))}schedule(e){e.debounceTimer&&clearTimeout(e.debounceTimer),e.debounceTimer=setTimeout(()=>{e.debounceTimer=null,e.revision+=1;let t={type:"session_history_changed",revision:e.revision};for(let s of e.subscribers)try{s(t)}catch{}},this.debounceMs)}releaseEntry(e,t){this.entries.get(e)===t&&this.entries.delete(e),t.debounceTimer&&clearTimeout(t.debounceTimer),t.debounceTimer=null,t.watcher.close()}}let ey=globalThis,ev="force-dynamic",eE="nodejs",eb=new TextEncoder;async function eP(e,{params:t}){if(!(0,l.V_)(t.id))return function(e,t){let s=(0,o.getDatabase)((0,h.kO)()).db.prepare(`SELECT updated, status,
2
2
  (SELECT MAX(id) FROM events WHERE session_id = sessions.id) AS eventId,
3
3
  (SELECT MAX(id) FROM messages WHERE session_id = sessions.id) AS messageId
4
4
  FROM sessions WHERE id = ?`),i=JSON.stringify(s.get(t));if(void 0===i)return Response.json({error:"Session not found"},{status:404});let r=()=>{};return new Response(new ReadableStream({start(n){let a=!1,o=new TextEncoder,h=setInterval(()=>{if(!a)try{let e=JSON.stringify(s.get(t));e!==i?(i=e,n.enqueue(o.encode(`data: ${JSON.stringify({type:"session_history_changed",revision:Date.now()})}
5
5
 
6
6
  `))):n.enqueue(o.encode(": keep-alive\n\n"))}catch{r();try{n.close()}catch{}}},1e3);r=()=>{a||(a=!0,clearInterval(h),e.signal.removeEventListener("abort",r))},e.signal.addEventListener("abort",r,{once:!0}),e.signal.aborted?r():n.enqueue(o.encode(": connected\n\n"))},cancel(){r()}}),{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform","X-Accel-Buffering":"no"}})}(e,t.id);try{let s=await (0,l.NL)().getSessionWatchPath(t.id);if(!s)return Response.json({error:"Native session transcript is unavailable"},{status:404});let i=()=>void 0,r=new ReadableStream({start(r){let n=!1,a=(ey.__nativeSessionChangeMonitor||(ey.__nativeSessionChangeMonitor=new eg),ey.__nativeSessionChangeMonitor).subscribe(t.id,s,e=>{n||r.enqueue(eb.encode(`data: ${JSON.stringify(e)}
7
7
 
8
- `))}),o=setInterval(()=>{n||r.enqueue(eb.encode(": keep-alive\n\n"))},15e3);i=()=>{n||(n=!0,clearInterval(o),a(),e.signal.removeEventListener("abort",i))},e.signal.addEventListener("abort",i,{once:!0}),r.enqueue(eb.encode(": connected\n\n"))},cancel(){i()}});return new Response(r,{headers:{"Cache-Control":"no-cache, no-transform",Connection:"keep-alive","Content-Type":"text/event-stream; charset=utf-8","X-Accel-Buffering":"no"}})}catch(e){return Response.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,l.WW)(e)})}}let eR=new r.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/sessions/[id]/changes/route",pathname:"/api/sessions/[id]/changes",filename:"route",bundlePath:"app/api/sessions/[id]/changes/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/sessions/[id]/changes/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:eD,staticGenerationAsyncStorage:eI,serverHooks:eT}=eR,ex="/api/sessions/[id]/changes/route";function eA(){return(0,a.patchFetch)({serverHooks:eT,staticGenerationAsyncStorage:eI})}},7786:(e,t,s)=>{e.exports=s(517)},535:(e,t,s)=>{s.d(t,{L:()=>a});var i=s(1636),r=s(785);let n=!1;function a(){let e=(0,i.getGlobalLogger)();if(e)return e;let t=(0,i.installGlobalLogging)({dir:(0,r.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return n||(n=!0,t.info("server logger attached",{dir:t.dir,pid:process.pid})),t}},785:(e,t,s)=>{s.d(t,{ME:()=>o,kO:()=>a,sr:()=>h});var i=s(9411);let r=function(){let e=process.argv[1];if(e){let t=(0,i.dirname)((0,i.resolve)(e)),s=`${i.sep}node_modules${i.sep}.bin`;return t.endsWith(s)?(0,i.resolve)(t,"..",".."):t}return(0,i.resolve)(process.cwd())}();function n(e=process.env,t=r){return(0,i.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function a(){return n()}function o(e=process.env,t=n(e)){let s=e.AGENT_LOG_DIR?.trim();if(s)return(0,i.resolve)(s);let r=e.AGENTROAM_DATA_DIR?.trim();return r?(0,i.resolve)(r,"logs"):(0,i.join)(t,".agent-data","logs")}function h(){return function(e=process.env,t=r){return(0,i.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,a())}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),i=t.X(0,[8375,1614],()=>s(8432));module.exports=i})();
8
+ `))}),o=setInterval(()=>{n||r.enqueue(eb.encode(": keep-alive\n\n"))},15e3);i=()=>{n||(n=!0,clearInterval(o),a(),e.signal.removeEventListener("abort",i))},e.signal.addEventListener("abort",i,{once:!0}),r.enqueue(eb.encode(": connected\n\n"))},cancel(){i()}});return new Response(r,{headers:{"Cache-Control":"no-cache, no-transform",Connection:"keep-alive","Content-Type":"text/event-stream; charset=utf-8","X-Accel-Buffering":"no"}})}catch(e){return Response.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,l.WW)(e)})}}let eR=new r.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/sessions/[id]/changes/route",pathname:"/api/sessions/[id]/changes",filename:"route",bundlePath:"app/api/sessions/[id]/changes/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261116-74/packages/server/app/api/sessions/[id]/changes/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:eD,staticGenerationAsyncStorage:eI,serverHooks:eT}=eR,ex="/api/sessions/[id]/changes/route";function eA(){return(0,a.patchFetch)({serverHooks:eT,staticGenerationAsyncStorage:eI})}},7786:(e,t,s)=>{e.exports=s(517)},535:(e,t,s)=>{s.d(t,{L:()=>a});var i=s(1636),r=s(785);let n=!1;function a(){let e=(0,i.getGlobalLogger)();if(e)return e;let t=(0,i.installGlobalLogging)({dir:(0,r.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return n||(n=!0,t.info("server logger attached",{dir:t.dir,pid:process.pid})),t}},785:(e,t,s)=>{s.d(t,{ME:()=>o,kO:()=>a,sr:()=>h});var i=s(9411);let r=function(){let e=process.argv[1];if(e){let t=(0,i.dirname)((0,i.resolve)(e)),s=`${i.sep}node_modules${i.sep}.bin`;return t.endsWith(s)?(0,i.resolve)(t,"..",".."):t}return(0,i.resolve)(process.cwd())}();function n(e=process.env,t=r){return(0,i.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function a(){return n()}function o(e=process.env,t=n(e)){let s=e.AGENT_LOG_DIR?.trim();if(s)return(0,i.resolve)(s);let r=e.AGENTROAM_DATA_DIR?.trim();return r?(0,i.resolve)(r,"logs"):(0,i.join)(t,".agent-data","logs")}function h(){return function(e=process.env,t=r){return(0,i.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,a())}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),i=t.X(0,[8375,1614],()=>s(7424));module.exports=i})();
@@ -0,0 +1 @@
1
+ "use strict";(()=>{var e={};e.id=8112,e.ids=[8112],e.modules={1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},7586:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>f,requestAsyncStorage:()=>p,routeModule:()=>u,serverHooks:()=>h,staticGenerationAsyncStorage:()=>g});var n={};r.r(n),r.d(n,{GET:()=>c});var s=r(7786),o=r(5042),i=r(2184),a=r(1890),d=r(2133),l=r(1289);async function c(e,{params:t}){try{let{ledger:e}=(0,d.v)(),{thread:r,records:n}=e.ledger(t.id);return a.NextResponse.json({thread:r,records:n.map(t=>{let r=e.handoffForRecord(t.id);return{...(0,l.WX)(t),handoff:r?(0,l.E_)(r):void 0}})})}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Failed to read switch ledger"},{status:500})}}let u=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/engine-switches/route",pathname:"/api/sessions/[id]/engine-switches",filename:"route",bundlePath:"app/api/sessions/[id]/engine-switches/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261116-74/packages/server/app/api/sessions/[id]/engine-switches/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:p,staticGenerationAsyncStorage:g,serverHooks:h}=u,m="/api/sessions/[id]/engine-switches/route";function f(){return(0,i.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:g})}},2133:(e,t,r)=>{let n;r.d(t,{v:()=>u});var s=r(1636),o=r(2847),i=r(785),a=r(1614),d=r(3977),l=r(9411);async function c(e){if(!/^[a-zA-Z0-9-]+$/.test(e.id))throw Error("Invalid handoff artifact id");let t=(0,l.join)((0,o.resolveNativeRuntimeDirectory)(),".agent-data","engine-handoffs",e.id);await (0,d.mkdir)(t,{recursive:!0,mode:448});let r=[];for(let[n,s]of e.messages.entries()){let e=[...new Set([...s.images??[],...(s.presentation?.attachments??[]).flatMap(e=>e.dataUrl?[e.dataUrl]:[])])],o=[];for(let[r,s]of e.entries()){let e=/^data:image\/(png|jpeg|jpg|gif|webp);base64,([\s\S]+)$/.exec(s);if(!e)throw Error("交接图片格式无法保存");let i=(0,l.join)(t,`${n}-${r}.${e[1]}`);await (0,d.writeFile)(i,Buffer.from(e[2],"base64"),{mode:384}),o.push(i)}r.push({historyId:s.historyId,role:s.role,content:s.content,toolCalls:s.toolCalls,toolCallId:s.toolCallId,isError:s.isError,imageFiles:o})}let n=(0,l.join)(t,"history.json");return await (0,d.writeFile)(n,JSON.stringify({workState:e.workStateText,items:r},null,2),{mode:384}),n}function u(){let e=globalThis;if(!e.__engineSwitchContainer){let t=function(){if(!n){let e=(0,s.getDatabase)((0,o.resolveNativeRuntimeDirectory)()).db,t=new s.SQLiteEngineSwitchRepository(e),r=(0,s.getDatabase)((0,i.kO)()).db;r!==e&&t.importLegacy(new s.SQLiteEngineSwitchRepository(r)),n=t}return n}(),r=function(){let e=()=>(0,a.NL)();return{materializeHistory:c,health:async()=>(await e().health()).map(e=>({agentType:e.agentType,available:e.available,label:e.label,...e.error?{error:e.error}:{}})),async getSession(t){let r=await e().get(t),n=await e().get(t,{limit:1,..."codex"===r.agentType?{view:"core"}:{}}),s=r.goalState,o=await e().listBackgroundJobs(t).catch(e=>{if(e?.code==="OPERATION_NOT_SUPPORTED")return[];throw e}),i=await e().getNativeGoal(t).catch(e=>{if(e?.code==="OPERATION_NOT_SUPPORTED")return null;throw e}),a=o.some(e=>"running"===e.status||"stopping"===e.status),d=s?.active||s?.queued.length?"会话还有未结束的目标或排队消息,请完成或取消后切换":a?"会话仍有后台任务运行,请结束后切换":i?.activation==="armed"&&"complete"!==i.phase?"原生目标仍在执行,请暂停后切换":void 0,l=[...r.events].reverse().find(e=>"todo_update"===e.type);return{id:r.id,agentType:r.agentType,title:r.title,cwd:r.cwd,...r.projectId?{projectId:r.projectId}:{},status:r.status,occupancy:String(r.occupancy),canResume:r.canResume,readOnly:r.readOnly,canDelete:r.canDelete,switchBlockReason:d,workStateText:JSON.stringify({cwd:r.cwd,todos:l?.type==="todo_update"?l.todos:[],nativeGoal:i,backgroundJobs:o.map(({id:e,label:t,status:r})=>({id:e,label:t,status:r}))}),messages:r.messages,historyItemCount:n.history?.totalItems,historyLastId:n.messages.filter(e=>"user"===e.role||"assistant"===e.role).at(-1)?.historyId}},async createSession(t){let r=await e().create({agentType:t.agentType,cwd:t.cwd,...t.projectId?{projectId:t.projectId}:{},title:t.title});return{id:r.id,agentType:r.agentType,title:r.title,cwd:r.cwd,status:r.status,occupancy:r.occupancy,canResume:r.canResume,readOnly:r.readOnly,canDelete:r.canDelete,...r.projectId?{projectId:r.projectId}:{}}}}}();e.__engineSwitchContainer={useCase:new s.SwitchEngineUseCase({runtime:r,repository:t}),ledger:new s.EngineSwitchLedger(t)}}return e.__engineSwitchContainer}},1289:(e,t,r)=>{function n(e){let{images:t,...r}=e;return{...r,omittedHistoryIds:e.omittedHistoryIds.slice(-20),omittedCount:e.omittedHistoryIds.length}}function s(e){let{sourceSnapshot:t,phaseMessages:r,...n}=e;return n}r.d(t,{E_:()=>n,WX:()=>s})},535:(e,t,r)=>{r.d(t,{L:()=>i});var n=r(1636),s=r(785);let o=!1;function i(){let e=(0,n.getGlobalLogger)();if(e)return e;let t=(0,n.installGlobalLogging)({dir:(0,s.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return o||(o=!0,t.info("server logger attached",{dir:t.dir,pid:process.pid})),t}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>d});var n=r(9411);let s=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function o(e=process.env,t=s){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return o()}function a(e=process.env,t=o(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let s=e.AGENTROAM_DATA_DIR?.trim();return s?(0,n.resolve)(s,"logs"):(0,n.join)(t,".agent-data","logs")}function d(){return function(e=process.env,t=s){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703,1614],()=>r(7586));module.exports=n})();
@@ -0,0 +1 @@
1
+ {"version":1,"files":["../../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+c37f1ebc82a0b1f5/node_modules/@anthropic-ai/claude-agent-sdk/package.json","../../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+c37f1ebc82a0b1f5/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/client.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/error-interceptor.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/client.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/index.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/utils.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/auth.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/bodySerializer.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/params.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/pathSerializer.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/serverSentEvents.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/utils.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/sdk.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/types.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/index.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/process.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/server.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/package.json","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/cross-spawn","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/binding.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/explain.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-x64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-x64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-x64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-x64.node","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/package.json","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/path-key","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/shebang-command","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/which","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/package.json","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/async-local-storage.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/package.json","../../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.js","../../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/package.json","../../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.js","../../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/package.json","../../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-regex","../../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","../../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/package.json","../../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/isexe","../../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/package.json","../../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/which.js","../../../../../../../../../package.json","../../../../../../../../core/dist/index.js","../../../../../../../../core/node_modules/better-sqlite3","../../../../../../../../core/package.json","../../../../../../../../native-runtime/dist/index.js","../../../../../../../../native-runtime/node_modules/@agent/core","../../../../../../../../native-runtime/node_modules/@anthropic-ai/claude-agent-sdk","../../../../../../../../native-runtime/node_modules/@opencode-ai/sdk","../../../../../../../../native-runtime/package.json","../../../../../../../node_modules/@agent/core","../../../../../../../node_modules/@agent/native-runtime","../../../../../../../node_modules/next","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1614.js","../../../../../chunks/6703.js","../../../../../chunks/8375.js","../../../../../webpack-runtime.js"]}
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=6939,e.ids=[6939],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},3336:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>p,patchFetch:()=>l,requestAsyncStorage:()=>d,routeModule:()=>n,serverHooks:()=>c,staticGenerationAsyncStorage:()=>u});var s=r(7786),a=r(5042),o=r(2184),i=r(555);let n=new s.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/sessions/[id]/fork/route",pathname:"/api/sessions/[id]/fork",filename:"route",bundlePath:"app/api/sessions/[id]/fork/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/sessions/[id]/fork/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:d,staticGenerationAsyncStorage:u,serverHooks:c}=n,p="/api/sessions/[id]/fork/route";function l(){return(0,o.patchFetch)({serverHooks:c,staticGenerationAsyncStorage:u})}},555:(e,t,r)=>{r.r(t),r.d(t,{POST:()=>c});var s=r(1890),a=r(2847),o=r(7519),i=r(6005),n=r(1636);async function d(e,t,r,s){if(!r.messageId)throw new a.RuntimeSessionError("Customer Agent Fork 需要消息 ID","INVALID_SESSION_ID");let o=await e.get(t);if(!o)throw new a.RuntimeSessionError("会话不存在","SESSION_NOT_FOUND");let d=0,u=o.messages.map(e=>({...e,..."user"===e.role||"assistant"===e.role?{historyId:(0,n.sessionHistoryMessageId)(d++,e)}:{}})),c=(0,a.completedForkMessageIndex)(u,r.messageId,s||"failed"===o.status||"aborted"===o.status),p=new Date().toISOString(),l=await e.create({id:(0,i.randomUUID)(),projectId:o.projectId,title:`${o.title}(副本)`,status:"idle",messages:[],events:[],metadata:{permissionMode:o.metadata.permissionMode,forkedFrom:t},created:p,updated:p});try{await e.replaceMessages(l.id,structuredClone(o.messages.slice(0,c+1)))}catch(t){throw await e.delete(l.id).catch(()=>void 0),t}return{id:l.id,nativeSessionId:l.id,agentType:"customer-agent",projectId:l.projectId,title:l.title,cwd:"",status:"idle",occupancy:"available",sourceLabel:"Customer Agent",canResume:!0,canDelete:!0,created:l.created,updated:l.updated}}var u=r(1614);async function c(e,{params:t}){let r=t.id,i=new URL(e.url).pathname.endsWith("/fork-at");try{let t;try{let r=await e.text();if(!(t=r.trim()?JSON.parse(r):{})||"object"!=typeof t||Array.isArray(t))throw Error()}catch{throw new a.RuntimeSessionError("Fork 参数格式无效","INVALID_SESSION_ID")}let n=i||void 0!==t.point?(0,a.parseSessionForkPoint)(t.point):void 0,c=n&&!r.startsWith("runtime:")?await d(o.agentHost.getSessionStore(),r,n,o.agentHost.isSessionRunning(r)):n?await (0,u.NL)().fork(r,n):await (0,u.NL)().fork(r);return s.NextResponse.json(c,{status:201})}catch(e){return s.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,u.WW)(e)})}}},1489:(e,t,r)=>{r.d(t,{N:()=>d});var s=r(1636),a=r(2847),o=r(785);class i{constructor(){this.tasks=new s.CronTasks((0,o.kO)()),this.scheduler=new a.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await r.e(7519).then(r.bind(r,7519)),{getCustomerGoalCoordinator:s}=await Promise.all([r.e(7519),r.e(732)]).then(r.bind(r,732)),a=e.sessionId;a&&await t.getSessionStore().get(a)||(a=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:a})),await s().enqueue(a,e.prompt)}call(e,t){let r=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(r);case"cronResume":return this.tasks.resume(r);case"cronDelete":return this.tasks.delete(r);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let n=globalThis;function d(){return n.__sharedCronService??=new i}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,4621,7519,1614],()=>r(3336));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=6939,e.ids=[6939],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},8475:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>p,patchFetch:()=>l,requestAsyncStorage:()=>d,routeModule:()=>n,serverHooks:()=>c,staticGenerationAsyncStorage:()=>u});var s=r(7786),a=r(5042),o=r(2184),i=r(555);let n=new s.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/sessions/[id]/fork/route",pathname:"/api/sessions/[id]/fork",filename:"route",bundlePath:"app/api/sessions/[id]/fork/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261116-74/packages/server/app/api/sessions/[id]/fork/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:d,staticGenerationAsyncStorage:u,serverHooks:c}=n,p="/api/sessions/[id]/fork/route";function l(){return(0,o.patchFetch)({serverHooks:c,staticGenerationAsyncStorage:u})}},555:(e,t,r)=>{r.r(t),r.d(t,{POST:()=>c});var s=r(1890),a=r(2847),o=r(7519),i=r(6005),n=r(1636);async function d(e,t,r,s){if(!r.messageId)throw new a.RuntimeSessionError("Customer Agent Fork 需要消息 ID","INVALID_SESSION_ID");let o=await e.get(t);if(!o)throw new a.RuntimeSessionError("会话不存在","SESSION_NOT_FOUND");let d=0,u=o.messages.map(e=>({...e,..."user"===e.role||"assistant"===e.role?{historyId:(0,n.sessionHistoryMessageId)(d++,e)}:{}})),c=(0,a.completedForkMessageIndex)(u,r.messageId,s||"failed"===o.status||"aborted"===o.status),p=new Date().toISOString(),l=await e.create({id:(0,i.randomUUID)(),projectId:o.projectId,title:`${o.title}(副本)`,status:"idle",messages:[],events:[],metadata:{permissionMode:o.metadata.permissionMode,forkedFrom:t},created:p,updated:p});try{await e.replaceMessages(l.id,structuredClone(o.messages.slice(0,c+1)))}catch(t){throw await e.delete(l.id).catch(()=>void 0),t}return{id:l.id,nativeSessionId:l.id,agentType:"customer-agent",projectId:l.projectId,title:l.title,cwd:"",status:"idle",occupancy:"available",sourceLabel:"Customer Agent",canResume:!0,canDelete:!0,created:l.created,updated:l.updated}}var u=r(1614);async function c(e,{params:t}){let r=t.id,i=new URL(e.url).pathname.endsWith("/fork-at");try{let t;try{let r=await e.text();if(!(t=r.trim()?JSON.parse(r):{})||"object"!=typeof t||Array.isArray(t))throw Error()}catch{throw new a.RuntimeSessionError("Fork 参数格式无效","INVALID_SESSION_ID")}let n=i||void 0!==t.point?(0,a.parseSessionForkPoint)(t.point):void 0,c=n&&!r.startsWith("runtime:")?await d(o.agentHost.getSessionStore(),r,n,o.agentHost.isSessionRunning(r)):n?await (0,u.NL)().fork(r,n):await (0,u.NL)().fork(r);return s.NextResponse.json(c,{status:201})}catch(e){return s.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,u.WW)(e)})}}},1489:(e,t,r)=>{r.d(t,{N:()=>d});var s=r(1636),a=r(2847),o=r(785);class i{constructor(){this.tasks=new s.CronTasks((0,o.kO)()),this.scheduler=new a.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await r.e(7519).then(r.bind(r,7519)),{getCustomerGoalCoordinator:s}=await Promise.all([r.e(7519),r.e(732)]).then(r.bind(r,732)),a=e.sessionId;a&&await t.getSessionStore().get(a)||(a=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:a})),await s().enqueue(a,e.prompt)}call(e,t){let r=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(r);case"cronResume":return this.tasks.resume(r);case"cronDelete":return this.tasks.delete(r);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let n=globalThis;function d(){return n.__sharedCronService??=new i}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,4621,7519,1614],()=>r(8475));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=1904,e.ids=[1904],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},3930:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>l,patchFetch:()=>h,requestAsyncStorage:()=>u,routeModule:()=>d,serverHooks:()=>p,staticGenerationAsyncStorage:()=>c});var s={};r.r(s),r.d(s,{POST:()=>n.POST});var a=r(7786),o=r(5042),i=r(2184),n=r(555);let d=new a.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/fork-at/route",pathname:"/api/sessions/[id]/fork-at",filename:"route",bundlePath:"app/api/sessions/[id]/fork-at/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/sessions/[id]/fork-at/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:u,staticGenerationAsyncStorage:c,serverHooks:p}=d,l="/api/sessions/[id]/fork-at/route";function h(){return(0,i.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:c})}},555:(e,t,r)=>{r.r(t),r.d(t,{POST:()=>c});var s=r(1890),a=r(2847),o=r(7519),i=r(6005),n=r(1636);async function d(e,t,r,s){if(!r.messageId)throw new a.RuntimeSessionError("Customer Agent Fork 需要消息 ID","INVALID_SESSION_ID");let o=await e.get(t);if(!o)throw new a.RuntimeSessionError("会话不存在","SESSION_NOT_FOUND");let d=0,u=o.messages.map(e=>({...e,..."user"===e.role||"assistant"===e.role?{historyId:(0,n.sessionHistoryMessageId)(d++,e)}:{}})),c=(0,a.completedForkMessageIndex)(u,r.messageId,s||"failed"===o.status||"aborted"===o.status),p=new Date().toISOString(),l=await e.create({id:(0,i.randomUUID)(),projectId:o.projectId,title:`${o.title}(副本)`,status:"idle",messages:[],events:[],metadata:{permissionMode:o.metadata.permissionMode,forkedFrom:t},created:p,updated:p});try{await e.replaceMessages(l.id,structuredClone(o.messages.slice(0,c+1)))}catch(t){throw await e.delete(l.id).catch(()=>void 0),t}return{id:l.id,nativeSessionId:l.id,agentType:"customer-agent",projectId:l.projectId,title:l.title,cwd:"",status:"idle",occupancy:"available",sourceLabel:"Customer Agent",canResume:!0,canDelete:!0,created:l.created,updated:l.updated}}var u=r(1614);async function c(e,{params:t}){let r=t.id,i=new URL(e.url).pathname.endsWith("/fork-at");try{let t;try{let r=await e.text();if(!(t=r.trim()?JSON.parse(r):{})||"object"!=typeof t||Array.isArray(t))throw Error()}catch{throw new a.RuntimeSessionError("Fork 参数格式无效","INVALID_SESSION_ID")}let n=i||void 0!==t.point?(0,a.parseSessionForkPoint)(t.point):void 0,c=n&&!r.startsWith("runtime:")?await d(o.agentHost.getSessionStore(),r,n,o.agentHost.isSessionRunning(r)):n?await (0,u.NL)().fork(r,n):await (0,u.NL)().fork(r);return s.NextResponse.json(c,{status:201})}catch(e){return s.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,u.WW)(e)})}}},1489:(e,t,r)=>{r.d(t,{N:()=>d});var s=r(1636),a=r(2847),o=r(785);class i{constructor(){this.tasks=new s.CronTasks((0,o.kO)()),this.scheduler=new a.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await r.e(7519).then(r.bind(r,7519)),{getCustomerGoalCoordinator:s}=await Promise.all([r.e(7519),r.e(732)]).then(r.bind(r,732)),a=e.sessionId;a&&await t.getSessionStore().get(a)||(a=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:a})),await s().enqueue(a,e.prompt)}call(e,t){let r=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(r);case"cronResume":return this.tasks.resume(r);case"cronDelete":return this.tasks.delete(r);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let n=globalThis;function d(){return n.__sharedCronService??=new i}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,4621,7519,1614],()=>r(3930));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=1904,e.ids=[1904],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},4331:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>l,patchFetch:()=>h,requestAsyncStorage:()=>u,routeModule:()=>d,serverHooks:()=>p,staticGenerationAsyncStorage:()=>c});var s={};r.r(s),r.d(s,{POST:()=>n.POST});var a=r(7786),o=r(5042),i=r(2184),n=r(555);let d=new a.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/fork-at/route",pathname:"/api/sessions/[id]/fork-at",filename:"route",bundlePath:"app/api/sessions/[id]/fork-at/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261116-74/packages/server/app/api/sessions/[id]/fork-at/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:u,staticGenerationAsyncStorage:c,serverHooks:p}=d,l="/api/sessions/[id]/fork-at/route";function h(){return(0,i.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:c})}},555:(e,t,r)=>{r.r(t),r.d(t,{POST:()=>c});var s=r(1890),a=r(2847),o=r(7519),i=r(6005),n=r(1636);async function d(e,t,r,s){if(!r.messageId)throw new a.RuntimeSessionError("Customer Agent Fork 需要消息 ID","INVALID_SESSION_ID");let o=await e.get(t);if(!o)throw new a.RuntimeSessionError("会话不存在","SESSION_NOT_FOUND");let d=0,u=o.messages.map(e=>({...e,..."user"===e.role||"assistant"===e.role?{historyId:(0,n.sessionHistoryMessageId)(d++,e)}:{}})),c=(0,a.completedForkMessageIndex)(u,r.messageId,s||"failed"===o.status||"aborted"===o.status),p=new Date().toISOString(),l=await e.create({id:(0,i.randomUUID)(),projectId:o.projectId,title:`${o.title}(副本)`,status:"idle",messages:[],events:[],metadata:{permissionMode:o.metadata.permissionMode,forkedFrom:t},created:p,updated:p});try{await e.replaceMessages(l.id,structuredClone(o.messages.slice(0,c+1)))}catch(t){throw await e.delete(l.id).catch(()=>void 0),t}return{id:l.id,nativeSessionId:l.id,agentType:"customer-agent",projectId:l.projectId,title:l.title,cwd:"",status:"idle",occupancy:"available",sourceLabel:"Customer Agent",canResume:!0,canDelete:!0,created:l.created,updated:l.updated}}var u=r(1614);async function c(e,{params:t}){let r=t.id,i=new URL(e.url).pathname.endsWith("/fork-at");try{let t;try{let r=await e.text();if(!(t=r.trim()?JSON.parse(r):{})||"object"!=typeof t||Array.isArray(t))throw Error()}catch{throw new a.RuntimeSessionError("Fork 参数格式无效","INVALID_SESSION_ID")}let n=i||void 0!==t.point?(0,a.parseSessionForkPoint)(t.point):void 0,c=n&&!r.startsWith("runtime:")?await d(o.agentHost.getSessionStore(),r,n,o.agentHost.isSessionRunning(r)):n?await (0,u.NL)().fork(r,n):await (0,u.NL)().fork(r);return s.NextResponse.json(c,{status:201})}catch(e){return s.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,u.WW)(e)})}}},1489:(e,t,r)=>{r.d(t,{N:()=>d});var s=r(1636),a=r(2847),o=r(785);class i{constructor(){this.tasks=new s.CronTasks((0,o.kO)()),this.scheduler=new a.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await r.e(7519).then(r.bind(r,7519)),{getCustomerGoalCoordinator:s}=await Promise.all([r.e(7519),r.e(732)]).then(r.bind(r,732)),a=e.sessionId;a&&await t.getSessionStore().get(a)||(a=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:a})),await s().enqueue(a,e.prompt)}call(e,t){let r=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(r);case"cronResume":return this.tasks.resume(r);case"cronDelete":return this.tasks.delete(r);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let n=globalThis;function d(){return n.__sharedCronService??=new i}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,4621,7519,1614],()=>r(4331));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=5937,e.ids=[5937,732],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},4335:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>I,patchFetch:()=>b,requestAsyncStorage:()=>w,routeModule:()=>f,serverHooks:()=>v,staticGenerationAsyncStorage:()=>S});var a={};s.r(a),s.d(a,{DELETE:()=>h,GET:()=>c,PATCH:()=>p,POST:()=>g});var r=s(7786),i=s(5042),o=s(2184),n=s(1890),u=s(1636),d=s(732),l=s(1614);async function c(e,{params:t}){try{let e=(0,l.V_)(t.id)?await (0,l.NL)().getGoals(t.id,"web"):await (0,d.getCustomerGoalCoordinator)().get(t.id);return n.NextResponse.json(e)}catch(e){return y(e)}}async function g(e,{params:t}){try{let s=await e.json();if("string"!=typeof s.objective||!s.objective.trim())return n.NextResponse.json({error:"objective is required"},{status:400});if((0,l.V_)(t.id)){let e="message"===s.kind?await (0,l.NL)().enqueueMessage(t.id,{sourceMessageId:"string"==typeof s.sourceMessageId?s.sourceMessageId:crypto.randomUUID(),content:s.objective,messagePayload:m(s.messagePayload)},"web"):await (0,l.NL)().enqueueGoal(t.id,s.objective,"string"==typeof s.sourceMessageId?s.sourceMessageId:void 0,"web");return n.NextResponse.json(e)}if("message"===s.kind)return n.NextResponse.json({state:await (0,d.getCustomerGoalCoordinator)().enqueueMessage(t.id,s.objective,"string"==typeof s.sourceMessageId?s.sourceMessageId:crypto.randomUUID(),m(s.messagePayload))});let a=await (0,d.getCustomerGoalCoordinator)().enqueue(t.id,s.objective,"string"==typeof s.sourceMessageId?s.sourceMessageId:void 0);return n.NextResponse.json({state:a})}catch(e){return y(e)}}async function p(e,{params:t}){try{let s=await e.json();if("message"===s.kind&&"string"==typeof s.messageId){if("string"!=typeof s.objective||!s.objective.trim())return n.NextResponse.json({error:"objective is required"},{status:400});if(!(0,l.V_)(t.id))return n.NextResponse.json(await (0,d.getCustomerGoalCoordinator)().updateMessage(t.id,s.messageId,s.objective,m(s.messagePayload)));return n.NextResponse.json(await (0,l.NL)().updateMessage(t.id,s.messageId,s.objective,m(s.messagePayload)))}if(!Array.isArray(s.orderedIds)||!s.orderedIds.every(e=>"string"==typeof e))return n.NextResponse.json({error:"orderedIds must be a string array"},{status:400});let a=(0,l.V_)(t.id)?"message"===s.kind?await (0,l.NL)().reorderMessages(t.id,s.orderedIds):await (0,l.NL)().reorderGoals(t.id,s.orderedIds):await (0,d.getCustomerGoalCoordinator)().reorder(t.id,s.orderedIds,"message"===s.kind);return n.NextResponse.json(a)}catch(e){return y(e)}}async function h(e,{params:t}){try{let s=new URL(e.url),a=s.searchParams.get("goalId");if(!a)return n.NextResponse.json({error:"goalId is required"},{status:400});let r=(0,l.V_)(t.id)?"message"===s.searchParams.get("kind")?await (0,l.NL)().cancelMessage(t.id,a):await (0,l.NL)().cancelGoal(t.id,a):await (0,d.getCustomerGoalCoordinator)().cancel(t.id,a);return n.NextResponse.json(r)}catch(e){return y(e)}}function m(e){if(!e||"object"!=typeof e)return;let t=(0,u.normalizeSessionMessageRunOptions)(e.runOptions),s=Array.isArray(e.images)&&e.images.every(e=>"string"==typeof e)?e.images:void 0,a=Array.isArray(e.agentIds)&&e.agentIds.every(e=>"string"==typeof e)?e.agentIds:void 0;return{...s?.length?{images:s}:{},...a?.length?{agentIds:a}:{},..."string"==typeof e.agentName&&e.agentName?{agentName:e.agentName}:{},...t?{runOptions:t}:{}}}function y(e){return n.NextResponse.json({error:e instanceof Error?e.message:"Goal operation failed"},{status:(0,l.WW)(e)})}let f=new r.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/sessions/[id]/goals/route",pathname:"/api/sessions/[id]/goals",filename:"route",bundlePath:"app/api/sessions/[id]/goals/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/sessions/[id]/goals/route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:w,staticGenerationAsyncStorage:S,serverHooks:v}=f,I="/api/sessions/[id]/goals/route";function b(){return(0,o.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:S})}},732:(e,t,s)=>{s.d(t,{getCustomerGoalCoordinator:()=>d,U:()=>l});var a=s(1636),r=s(7519);class i{constructor(e,t,s,a,r,i){this.store=e,this.busy=t,this.run=s,this.abort=a,this.steerRun=r,this.persist=i,this.tails=new Map,this.draining=new Set}async get(e,t=!0){let s=(0,a.readSessionGoalState)((await this.require(e)).metadata);return t&&this.resume(e),s}async enqueue(e,t,s){let r=await this.mutate(e,r=>(0,a.enqueueSessionGoal)(r,{id:crypto.randomUUID(),sessionId:e,objective:t,sourceMessageId:s,now:Date.now()}));return this.resume(e),r}async enqueueMessage(e,t,s,r){let i=await this.mutate(e,i=>[i.active,...i.queued,...i.history].some(e=>e?.sourceMessageId===s)?i:(0,a.enqueueSessionMessage)(i,{id:crypto.randomUUID(),sessionId:e,objective:t,sourceMessageId:s,messagePayload:r,now:Date.now(),activate:!1}));return this.resume(e),i}reorder(e,t,s=!1){return this.mutate(e,e=>s?(0,a.reorderQueuedSessionMessages)(e,t):(0,a.reorderQueuedSessionGoals)(e,t))}updateMessage(e,t,s,r){return this.mutate(e,e=>(0,a.updateQueuedSessionMessage)(e,t,s,r))}async cancel(e,t){let s=await this.mutate(e,s=>(s.active?.id===t&&this.draining.has(e)&&this.abort(e),(0,a.cancelSessionGoal)(s,t,Date.now())));return this.resume(e),s}async steer(e,t){return this.mutate(e,async s=>{let r=s.queued.find(e=>e.id===t&&"message"===e.kind);if(!r||!this.busy(e))throw Error("没有可引导的运行或排队消息");if(!await this.steerRun(e,r.objective))throw Error("运行已结束,请继续排队");return(0,a.cancelSessionGoal)(s,t,Date.now())})}resume(e){this.draining.has(e)||(this.draining.add(e),this.drain(e).catch(e=>console.error("Customer queue failed",e)).finally(()=>this.draining.delete(e)))}async drain(e){for(;;){let t;let s=await this.get(e,!1);if(!s.active&&!s.queued.length)return;if(this.busy(e)){await new Promise(e=>setTimeout(e,100));continue}let r=(await this.mutate(e,e=>(0,a.promoteNextSessionQueueItem)(e,Date.now()))).active;if(!r)continue;let i="failed";try{i=await this.run(e,r)}catch(e){if(e?.code==="SESSION_ALREADY_RUNNING")continue;t=e instanceof Error?e.message:String(e)}await this.mutate(e,e=>e.active?.id===r.id?(0,a.finishActiveSessionGoal)(e,i,Date.now(),t):e)}}async require(e){let t=await this.store.get(e);if(!t)throw Error("Session not found");return t}async mutate(e,t){let s=(this.tails.get(e)??Promise.resolve()).catch(()=>{}).then(async()=>{let s=await this.require(e),r=await t((0,a.readSessionGoalState)(s.metadata));if(this.persist)this.persist(e,r);else{let t=await this.require(e);await this.store.update(e,{metadata:(0,a.writeSessionGoalState)(t.metadata,r)})}return r});this.tails.set(e,s);try{return await s}finally{this.tails.get(e)===s&&this.tails.delete(e)}}}var o=s(785);let n=globalThis,u=new Set;function d(){return n.__sharedCustomerQueue??=new i(r.agentHost.getSessionStore(),e=>r.agentHost.isSessionRunning(e),async(e,t)=>{u.add(e);try{return await r.agentHost.startRun(t.objective,e,t.messagePayload?.images,{agentIds:t.messagePayload?.agentIds,...t.messagePayload?.runOptions?.profileId?{profileId:t.messagePayload.runOptions.profileId}:{}}).completion,(await r.agentHost.getSessionStore().get(e))?.status==="completed"?"completed":"failed"}finally{u.delete(e)}},e=>{u.has(e)&&r.agentHost.abort(e)},(e,t)=>r.agentHost.steer(t,e),(e,t)=>{(0,a.getDatabase)((0,o.kO)()).db.prepare("UPDATE sessions SET metadata = json_set(metadata, '$.goalState', json(?)), updated = ? WHERE id = ?").run(JSON.stringify(t),new Date().toISOString(),e)})}function l(){for(let e of(0,a.getDatabase)((0,o.kO)()).db.prepare("SELECT id FROM sessions WHERE json_extract(metadata, '$.goalState.active') IS NOT NULL OR json_array_length(metadata, '$.goalState.queued') > 0").all())d().resume(e.id)}},1489:(e,t,s)=>{s.d(t,{N:()=>u});var a=s(1636),r=s(2847),i=s(785);class o{constructor(){this.tasks=new a.CronTasks((0,i.kO)()),this.scheduler=new r.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await s.e(7519).then(s.bind(s,7519)),{getCustomerGoalCoordinator:a}=await Promise.all([s.e(7519),s.e(732)]).then(s.bind(s,732)),r=e.sessionId;r&&await t.getSessionStore().get(r)||(r=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:r})),await a().enqueue(r,e.prompt)}call(e,t){let s=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(s);case"cronResume":return this.tasks.resume(s);case"cronDelete":return this.tasks.delete(s);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let n=globalThis;function u(){return n.__sharedCronService??=new o}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[8375,6703,4621,7519,1614],()=>s(4335));module.exports=a})();
1
+ "use strict";(()=>{var e={};e.id=5937,e.ids=[5937,732],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},2728:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>I,patchFetch:()=>b,requestAsyncStorage:()=>w,routeModule:()=>f,serverHooks:()=>v,staticGenerationAsyncStorage:()=>S});var a={};s.r(a),s.d(a,{DELETE:()=>h,GET:()=>c,PATCH:()=>p,POST:()=>g});var r=s(7786),i=s(5042),o=s(2184),n=s(1890),u=s(1636),d=s(732),l=s(1614);async function c(e,{params:t}){try{let e=(0,l.V_)(t.id)?await (0,l.NL)().getGoals(t.id,"web"):await (0,d.getCustomerGoalCoordinator)().get(t.id);return n.NextResponse.json(e)}catch(e){return y(e)}}async function g(e,{params:t}){try{let s=await e.json();if("string"!=typeof s.objective||!s.objective.trim())return n.NextResponse.json({error:"objective is required"},{status:400});if((0,l.V_)(t.id)){let e="message"===s.kind?await (0,l.NL)().enqueueMessage(t.id,{sourceMessageId:"string"==typeof s.sourceMessageId?s.sourceMessageId:crypto.randomUUID(),content:s.objective,messagePayload:m(s.messagePayload)},"web"):await (0,l.NL)().enqueueGoal(t.id,s.objective,"string"==typeof s.sourceMessageId?s.sourceMessageId:void 0,"web");return n.NextResponse.json(e)}if("message"===s.kind)return n.NextResponse.json({state:await (0,d.getCustomerGoalCoordinator)().enqueueMessage(t.id,s.objective,"string"==typeof s.sourceMessageId?s.sourceMessageId:crypto.randomUUID(),m(s.messagePayload))});let a=await (0,d.getCustomerGoalCoordinator)().enqueue(t.id,s.objective,"string"==typeof s.sourceMessageId?s.sourceMessageId:void 0);return n.NextResponse.json({state:a})}catch(e){return y(e)}}async function p(e,{params:t}){try{let s=await e.json();if("message"===s.kind&&"string"==typeof s.messageId){if("string"!=typeof s.objective||!s.objective.trim())return n.NextResponse.json({error:"objective is required"},{status:400});if(!(0,l.V_)(t.id))return n.NextResponse.json(await (0,d.getCustomerGoalCoordinator)().updateMessage(t.id,s.messageId,s.objective,m(s.messagePayload)));return n.NextResponse.json(await (0,l.NL)().updateMessage(t.id,s.messageId,s.objective,m(s.messagePayload)))}if(!Array.isArray(s.orderedIds)||!s.orderedIds.every(e=>"string"==typeof e))return n.NextResponse.json({error:"orderedIds must be a string array"},{status:400});let a=(0,l.V_)(t.id)?"message"===s.kind?await (0,l.NL)().reorderMessages(t.id,s.orderedIds):await (0,l.NL)().reorderGoals(t.id,s.orderedIds):await (0,d.getCustomerGoalCoordinator)().reorder(t.id,s.orderedIds,"message"===s.kind);return n.NextResponse.json(a)}catch(e){return y(e)}}async function h(e,{params:t}){try{let s=new URL(e.url),a=s.searchParams.get("goalId");if(!a)return n.NextResponse.json({error:"goalId is required"},{status:400});let r=(0,l.V_)(t.id)?"message"===s.searchParams.get("kind")?await (0,l.NL)().cancelMessage(t.id,a):await (0,l.NL)().cancelGoal(t.id,a):await (0,d.getCustomerGoalCoordinator)().cancel(t.id,a);return n.NextResponse.json(r)}catch(e){return y(e)}}function m(e){if(!e||"object"!=typeof e)return;let t=(0,u.normalizeSessionMessageRunOptions)(e.runOptions),s=Array.isArray(e.images)&&e.images.every(e=>"string"==typeof e)?e.images:void 0,a=Array.isArray(e.agentIds)&&e.agentIds.every(e=>"string"==typeof e)?e.agentIds:void 0;return{...s?.length?{images:s}:{},...a?.length?{agentIds:a}:{},..."string"==typeof e.agentName&&e.agentName?{agentName:e.agentName}:{},...t?{runOptions:t}:{}}}function y(e){return n.NextResponse.json({error:e instanceof Error?e.message:"Goal operation failed"},{status:(0,l.WW)(e)})}let f=new r.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/sessions/[id]/goals/route",pathname:"/api/sessions/[id]/goals",filename:"route",bundlePath:"app/api/sessions/[id]/goals/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261116-74/packages/server/app/api/sessions/[id]/goals/route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:w,staticGenerationAsyncStorage:S,serverHooks:v}=f,I="/api/sessions/[id]/goals/route";function b(){return(0,o.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:S})}},732:(e,t,s)=>{s.d(t,{getCustomerGoalCoordinator:()=>d,U:()=>l});var a=s(1636),r=s(7519);class i{constructor(e,t,s,a,r,i){this.store=e,this.busy=t,this.run=s,this.abort=a,this.steerRun=r,this.persist=i,this.tails=new Map,this.draining=new Set}async get(e,t=!0){let s=(0,a.readSessionGoalState)((await this.require(e)).metadata);return t&&this.resume(e),s}async enqueue(e,t,s){let r=await this.mutate(e,r=>(0,a.enqueueSessionGoal)(r,{id:crypto.randomUUID(),sessionId:e,objective:t,sourceMessageId:s,now:Date.now()}));return this.resume(e),r}async enqueueMessage(e,t,s,r){let i=await this.mutate(e,i=>[i.active,...i.queued,...i.history].some(e=>e?.sourceMessageId===s)?i:(0,a.enqueueSessionMessage)(i,{id:crypto.randomUUID(),sessionId:e,objective:t,sourceMessageId:s,messagePayload:r,now:Date.now(),activate:!1}));return this.resume(e),i}reorder(e,t,s=!1){return this.mutate(e,e=>s?(0,a.reorderQueuedSessionMessages)(e,t):(0,a.reorderQueuedSessionGoals)(e,t))}updateMessage(e,t,s,r){return this.mutate(e,e=>(0,a.updateQueuedSessionMessage)(e,t,s,r))}async cancel(e,t){let s=await this.mutate(e,s=>(s.active?.id===t&&this.draining.has(e)&&this.abort(e),(0,a.cancelSessionGoal)(s,t,Date.now())));return this.resume(e),s}async steer(e,t){return this.mutate(e,async s=>{let r=s.queued.find(e=>e.id===t&&"message"===e.kind);if(!r||!this.busy(e))throw Error("没有可引导的运行或排队消息");if(!await this.steerRun(e,r.objective))throw Error("运行已结束,请继续排队");return(0,a.cancelSessionGoal)(s,t,Date.now())})}resume(e){this.draining.has(e)||(this.draining.add(e),this.drain(e).catch(e=>console.error("Customer queue failed",e)).finally(()=>this.draining.delete(e)))}async drain(e){for(;;){let t;let s=await this.get(e,!1);if(!s.active&&!s.queued.length)return;if(this.busy(e)){await new Promise(e=>setTimeout(e,100));continue}let r=(await this.mutate(e,e=>(0,a.promoteNextSessionQueueItem)(e,Date.now()))).active;if(!r)continue;let i="failed";try{i=await this.run(e,r)}catch(e){if(e?.code==="SESSION_ALREADY_RUNNING")continue;t=e instanceof Error?e.message:String(e)}await this.mutate(e,e=>e.active?.id===r.id?(0,a.finishActiveSessionGoal)(e,i,Date.now(),t):e)}}async require(e){let t=await this.store.get(e);if(!t)throw Error("Session not found");return t}async mutate(e,t){let s=(this.tails.get(e)??Promise.resolve()).catch(()=>{}).then(async()=>{let s=await this.require(e),r=await t((0,a.readSessionGoalState)(s.metadata));if(this.persist)this.persist(e,r);else{let t=await this.require(e);await this.store.update(e,{metadata:(0,a.writeSessionGoalState)(t.metadata,r)})}return r});this.tails.set(e,s);try{return await s}finally{this.tails.get(e)===s&&this.tails.delete(e)}}}var o=s(785);let n=globalThis,u=new Set;function d(){return n.__sharedCustomerQueue??=new i(r.agentHost.getSessionStore(),e=>r.agentHost.isSessionRunning(e),async(e,t)=>{u.add(e);try{return await r.agentHost.startRun(t.objective,e,t.messagePayload?.images,{agentIds:t.messagePayload?.agentIds,...t.messagePayload?.runOptions?.profileId?{profileId:t.messagePayload.runOptions.profileId}:{}}).completion,(await r.agentHost.getSessionStore().get(e))?.status==="completed"?"completed":"failed"}finally{u.delete(e)}},e=>{u.has(e)&&r.agentHost.abort(e)},(e,t)=>r.agentHost.steer(t,e),(e,t)=>{(0,a.getDatabase)((0,o.kO)()).db.prepare("UPDATE sessions SET metadata = json_set(metadata, '$.goalState', json(?)), updated = ? WHERE id = ?").run(JSON.stringify(t),new Date().toISOString(),e)})}function l(){for(let e of(0,a.getDatabase)((0,o.kO)()).db.prepare("SELECT id FROM sessions WHERE json_extract(metadata, '$.goalState.active') IS NOT NULL OR json_array_length(metadata, '$.goalState.queued') > 0").all())d().resume(e.id)}},1489:(e,t,s)=>{s.d(t,{N:()=>u});var a=s(1636),r=s(2847),i=s(785);class o{constructor(){this.tasks=new a.CronTasks((0,i.kO)()),this.scheduler=new r.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await s.e(7519).then(s.bind(s,7519)),{getCustomerGoalCoordinator:a}=await Promise.all([s.e(7519),s.e(732)]).then(s.bind(s,732)),r=e.sessionId;r&&await t.getSessionStore().get(r)||(r=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:r})),await a().enqueue(r,e.prompt)}call(e,t){let s=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(s);case"cronResume":return this.tasks.resume(s);case"cronDelete":return this.tasks.delete(s);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let n=globalThis;function u(){return n.__sharedCronService??=new o}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[8375,6703,4621,7519,1614],()=>s(2728));module.exports=a})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=7719,e.ids=[7719],e.modules={1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1341:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>v,patchFetch:()=>g,requestAsyncStorage:()=>l,routeModule:()=>p,serverHooks:()=>f,staticGenerationAsyncStorage:()=>c});var s={};t.r(s),t.d(s,{POST:()=>d});var n=t(7786),o=t(5042),i=t(2184),a=t(1890),u=t(1614);async function d(e,{params:r}){if(!(0,u.V_)(r.id))return a.NextResponse.json({error:"Only native sessions can be handed off"},{status:405});try{let e=await (0,u.NL)().handoff(r.id,"desktop");return a.NextResponse.json(e)}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Native handoff failed"},{status:(0,u.WW)(e)})}}let p=new n.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/handoff/route",pathname:"/api/sessions/[id]/handoff",filename:"route",bundlePath:"app/api/sessions/[id]/handoff/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/sessions/[id]/handoff/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:l,staticGenerationAsyncStorage:c,serverHooks:f}=p,v="/api/sessions/[id]/handoff/route";function g(){return(0,i.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:c})}},535:(e,r,t)=>{t.d(r,{L:()=>i});var s=t(1636),n=t(785);let o=!1;function i(){let e=(0,s.getGlobalLogger)();if(e)return e;let r=(0,s.installGlobalLogging)({dir:(0,n.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return o||(o=!0,r.info("server logger attached",{dir:r.dir,pid:process.pid})),r}},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var s=t(9411);let n=function(){let e=process.argv[1];if(e){let r=(0,s.dirname)((0,s.resolve)(e)),t=`${s.sep}node_modules${s.sep}.bin`;return r.endsWith(t)?(0,s.resolve)(r,"..",".."):r}return(0,s.resolve)(process.cwd())}();function o(e=process.env,r=n){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return o()}function a(e=process.env,r=o(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,s.resolve)(t);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,s.resolve)(n,"logs"):(0,s.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=n){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}}};var r=require("../../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8375,6703,1614],()=>t(1341));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=7719,e.ids=[7719],e.modules={1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},2534:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>v,patchFetch:()=>g,requestAsyncStorage:()=>l,routeModule:()=>p,serverHooks:()=>f,staticGenerationAsyncStorage:()=>c});var s={};t.r(s),t.d(s,{POST:()=>d});var n=t(7786),o=t(5042),i=t(2184),a=t(1890),u=t(1614);async function d(e,{params:r}){if(!(0,u.V_)(r.id))return a.NextResponse.json({error:"Only native sessions can be handed off"},{status:405});try{let e=await (0,u.NL)().handoff(r.id,"desktop");return a.NextResponse.json(e)}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Native handoff failed"},{status:(0,u.WW)(e)})}}let p=new n.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/handoff/route",pathname:"/api/sessions/[id]/handoff",filename:"route",bundlePath:"app/api/sessions/[id]/handoff/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261116-74/packages/server/app/api/sessions/[id]/handoff/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:l,staticGenerationAsyncStorage:c,serverHooks:f}=p,v="/api/sessions/[id]/handoff/route";function g(){return(0,i.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:c})}},535:(e,r,t)=>{t.d(r,{L:()=>i});var s=t(1636),n=t(785);let o=!1;function i(){let e=(0,s.getGlobalLogger)();if(e)return e;let r=(0,s.installGlobalLogging)({dir:(0,n.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return o||(o=!0,r.info("server logger attached",{dir:r.dir,pid:process.pid})),r}},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var s=t(9411);let n=function(){let e=process.argv[1];if(e){let r=(0,s.dirname)((0,s.resolve)(e)),t=`${s.sep}node_modules${s.sep}.bin`;return r.endsWith(t)?(0,s.resolve)(r,"..",".."):r}return(0,s.resolve)(process.cwd())}();function o(e=process.env,r=n){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return o()}function a(e=process.env,r=o(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,s.resolve)(t);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,s.resolve)(n,"logs"):(0,s.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=n){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}}};var r=require("../../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8375,6703,1614],()=>t(2534));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=5348,e.ids=[5348],e.modules={1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},5536:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>h,patchFetch:()=>N,requestAsyncStorage:()=>f,routeModule:()=>g,serverHooks:()=>x,staticGenerationAsyncStorage:()=>m});var s={};t.r(s),t.d(s,{GET:()=>c,POST:()=>d,dynamic:()=>l});var n=t(7786),o=t(5042),i=t(2184),a=t(1890),u=t(2847),p=t(1614);let l="force-dynamic";async function c(e,{params:r}){if(!(0,p.V_)(r.id))return a.NextResponse.json({error:"此会话不支持原生目标"},{status:400});try{return a.NextResponse.json({goal:await (0,p.NL)().getNativeGoal(r.id)})}catch(e){return v(e)}}async function d(e,{params:r}){let t;if(!(0,p.V_)(r.id))return a.NextResponse.json({error:"此会话不支持原生目标"},{status:400});try{t=(0,u.parseNativeGoalMutation)(await e.json())}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"目标操作格式无效"},{status:400})}try{return a.NextResponse.json({goal:await (0,p.NL)().mutateNativeGoal(r.id,t)})}catch(e){return v(e)}}function v(e){return a.NextResponse.json({error:e instanceof Error?e.message:"原生目标操作失败"},{status:(0,p.WW)(e)})}let g=new n.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/native-goal/route",pathname:"/api/sessions/[id]/native-goal",filename:"route",bundlePath:"app/api/sessions/[id]/native-goal/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/sessions/[id]/native-goal/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:f,staticGenerationAsyncStorage:m,serverHooks:x}=g,h="/api/sessions/[id]/native-goal/route";function N(){return(0,i.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:m})}},535:(e,r,t)=>{t.d(r,{L:()=>i});var s=t(1636),n=t(785);let o=!1;function i(){let e=(0,s.getGlobalLogger)();if(e)return e;let r=(0,s.installGlobalLogging)({dir:(0,n.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return o||(o=!0,r.info("server logger attached",{dir:r.dir,pid:process.pid})),r}},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var s=t(9411);let n=function(){let e=process.argv[1];if(e){let r=(0,s.dirname)((0,s.resolve)(e)),t=`${s.sep}node_modules${s.sep}.bin`;return r.endsWith(t)?(0,s.resolve)(r,"..",".."):r}return(0,s.resolve)(process.cwd())}();function o(e=process.env,r=n){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return o()}function a(e=process.env,r=o(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,s.resolve)(t);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,s.resolve)(n,"logs"):(0,s.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=n){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}}};var r=require("../../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8375,6703,1614],()=>t(5536));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=5348,e.ids=[5348],e.modules={1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},9181:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>h,patchFetch:()=>N,requestAsyncStorage:()=>f,routeModule:()=>g,serverHooks:()=>x,staticGenerationAsyncStorage:()=>m});var s={};t.r(s),t.d(s,{GET:()=>c,POST:()=>d,dynamic:()=>l});var n=t(7786),o=t(5042),i=t(2184),a=t(1890),u=t(2847),p=t(1614);let l="force-dynamic";async function c(e,{params:r}){if(!(0,p.V_)(r.id))return a.NextResponse.json({error:"此会话不支持原生目标"},{status:400});try{return a.NextResponse.json({goal:await (0,p.NL)().getNativeGoal(r.id)})}catch(e){return v(e)}}async function d(e,{params:r}){let t;if(!(0,p.V_)(r.id))return a.NextResponse.json({error:"此会话不支持原生目标"},{status:400});try{t=(0,u.parseNativeGoalMutation)(await e.json())}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"目标操作格式无效"},{status:400})}try{return a.NextResponse.json({goal:await (0,p.NL)().mutateNativeGoal(r.id,t)})}catch(e){return v(e)}}function v(e){return a.NextResponse.json({error:e instanceof Error?e.message:"原生目标操作失败"},{status:(0,p.WW)(e)})}let g=new n.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/native-goal/route",pathname:"/api/sessions/[id]/native-goal",filename:"route",bundlePath:"app/api/sessions/[id]/native-goal/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261116-74/packages/server/app/api/sessions/[id]/native-goal/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:f,staticGenerationAsyncStorage:m,serverHooks:x}=g,h="/api/sessions/[id]/native-goal/route";function N(){return(0,i.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:m})}},535:(e,r,t)=>{t.d(r,{L:()=>i});var s=t(1636),n=t(785);let o=!1;function i(){let e=(0,s.getGlobalLogger)();if(e)return e;let r=(0,s.installGlobalLogging)({dir:(0,n.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return o||(o=!0,r.info("server logger attached",{dir:r.dir,pid:process.pid})),r}},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var s=t(9411);let n=function(){let e=process.argv[1];if(e){let r=(0,s.dirname)((0,s.resolve)(e)),t=`${s.sep}node_modules${s.sep}.bin`;return r.endsWith(t)?(0,s.resolve)(r,"..",".."):r}return(0,s.resolve)(process.cwd())}();function o(e=process.env,r=n){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return o()}function a(e=process.env,r=o(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,s.resolve)(t);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,s.resolve)(n,"logs"):(0,s.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=n){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}}};var r=require("../../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8375,6703,1614],()=>t(9181));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=3097,e.ids=[3097],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},5920:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>q,patchFetch:()=>w,requestAsyncStorage:()=>f,routeModule:()=>g,serverHooks:()=>y,staticGenerationAsyncStorage:()=>x});var r={};s.r(r),s.d(r,{GET:()=>m});var n=s(7786),o=s(5042),i=s(2184),a=s(1890),l=s(1636),u=s(7519),d=s(1614),c=s(8274),p=s(2847);let h=new l.SessionQueryIndexCache;async function m(e,{params:t}){if((0,d.V_)(t.id))try{return a.NextResponse.json(await (0,d.NL)().getQueryIndex(t.id))}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Internal error",...e instanceof p.RuntimeSessionError?{code:e.code}:{}},{status:(0,d.WW)(e)})}let s=await u.agentHost.getSessionStore().get(t.id);if(!s)return a.NextResponse.json({error:"Session not found"},{status:404});let r=(!s.messages?.length&&s.events?.length?c.Q(s.events):s.messages)?.filter(e=>!l.isInternalGoalMessage(e))??[];return a.NextResponse.json(h.getOrCreate(t.id,r))}let g=new n.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/query-index/route",pathname:"/api/sessions/[id]/query-index",filename:"route",bundlePath:"app/api/sessions/[id]/query-index/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/sessions/[id]/query-index/route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:f,staticGenerationAsyncStorage:x,serverHooks:y}=g,q="/api/sessions/[id]/query-index/route";function w(){return(0,i.patchFetch)({serverHooks:y,staticGenerationAsyncStorage:x})}},8274:(e,t,s)=>{s.d(t,{Q:()=>r});function r(e,t={}){let s=[],r=null,n=0,o=()=>`${t.runId??"event-history"}:${n++}`;for(let n of e){if("text_chunk"===n.type){r||(r={id:o(),role:"assistant",content:"",isStreaming:t.isStreaming??!0,timestamp:Date.now()},s.push(r)),r.content=`${r.content??""}${n.text??""}`;continue}if("tool_call"===n.type&&n.toolCall){r?(r.toolCalls=[n.toolCall],r.isStreaming=!1):s.push({id:o(),role:"assistant",content:"",toolCalls:[n.toolCall],isStreaming:!1,timestamp:Date.now()}),r=null;continue}if("tool_result"===n.type&&n.result){let e=n.result;s.push({id:o(),role:"tool",content:e.content??"",toolCallId:e.toolCallId,timestamp:Date.now()});continue}if("ask_user"===n.type){s.push({id:o(),role:"assistant",content:"",askUser:{questionId:n.questionId,question:n.question??"",options:n.options,fields:n.fields,multiSelect:n.multiSelect},timestamp:Date.now()});continue}"done"===n.type&&"string"==typeof n.finalText&&(r?(r.content=n.finalText,r.isStreaming=!1):n.finalText.trim()&&s.push({id:o(),role:"assistant",content:n.finalText,timestamp:Date.now()}),r=null)}return s}},1489:(e,t,s)=>{s.d(t,{N:()=>l});var r=s(1636),n=s(2847),o=s(785);class i{constructor(){this.tasks=new r.CronTasks((0,o.kO)()),this.scheduler=new n.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await s.e(7519).then(s.bind(s,7519)),{getCustomerGoalCoordinator:r}=await Promise.all([s.e(7519),s.e(732)]).then(s.bind(s,732)),n=e.sessionId;n&&await t.getSessionStore().get(n)||(n=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:n})),await r().enqueue(n,e.prompt)}call(e,t){let s=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(s);case"cronResume":return this.tasks.resume(s);case"cronDelete":return this.tasks.delete(s);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let a=globalThis;function l(){return a.__sharedCronService??=new i}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[8375,6703,4621,7519,1614],()=>s(5920));module.exports=r})();
1
+ "use strict";(()=>{var e={};e.id=3097,e.ids=[3097],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},4480:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>y,patchFetch:()=>w,requestAsyncStorage:()=>x,routeModule:()=>g,serverHooks:()=>q,staticGenerationAsyncStorage:()=>S});var r={};s.r(r),s.d(r,{GET:()=>f});var n=s(7786),o=s(5042),i=s(2184),a=s(1890),l=s(1636),u=s(7519),d=s(1614),c=s(8274),p=s(2847),h=s(5762);let m=new l.SessionQueryIndexCache;async function f(e,{params:t}){if((0,d.V_)(t.id))try{let e=await (0,h.SU)(t.id);if(e)return a.NextResponse.json(e);return a.NextResponse.json(await (0,d.NL)().getQueryIndex(t.id))}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Internal error",...e instanceof p.RuntimeSessionError||e instanceof l.StaleSessionAnchorError?{code:e.code}:{}},{status:e instanceof l.StaleSessionAnchorError?409:(0,d.WW)(e)})}let s=await u.agentHost.getSessionStore().get(t.id);if(!s)return a.NextResponse.json({error:"Session not found"},{status:404});let r=(!s.messages?.length&&s.events?.length?c.Q(s.events):s.messages)?.filter(e=>!l.isInternalGoalMessage(e))??[];return a.NextResponse.json(m.getOrCreate(t.id,r))}let g=new n.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/query-index/route",pathname:"/api/sessions/[id]/query-index",filename:"route",bundlePath:"app/api/sessions/[id]/query-index/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261116-74/packages/server/app/api/sessions/[id]/query-index/route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:x,staticGenerationAsyncStorage:S,serverHooks:q}=g,y="/api/sessions/[id]/query-index/route";function w(){return(0,i.patchFetch)({serverHooks:q,staticGenerationAsyncStorage:S})}},8274:(e,t,s)=>{s.d(t,{Q:()=>r});function r(e,t={}){let s=[],r=null,n=0,o=()=>`${t.runId??"event-history"}:${n++}`;for(let n of e){if("text_chunk"===n.type){r||(r={id:o(),role:"assistant",content:"",isStreaming:t.isStreaming??!0,timestamp:Date.now()},s.push(r)),r.content=`${r.content??""}${n.text??""}`;continue}if("tool_call"===n.type&&n.toolCall){r?(r.toolCalls=[n.toolCall],r.isStreaming=!1):s.push({id:o(),role:"assistant",content:"",toolCalls:[n.toolCall],isStreaming:!1,timestamp:Date.now()}),r=null;continue}if("tool_result"===n.type&&n.result){let e=n.result;s.push({id:o(),role:"tool",content:e.content??"",toolCallId:e.toolCallId,timestamp:Date.now()});continue}if("ask_user"===n.type){s.push({id:o(),role:"assistant",content:"",askUser:{questionId:n.questionId,question:n.question??"",options:n.options,fields:n.fields,multiSelect:n.multiSelect},timestamp:Date.now()});continue}"done"===n.type&&"string"==typeof n.finalText&&(r?(r.content=n.finalText,r.isStreaming=!1):n.finalText.trim()&&s.push({id:o(),role:"assistant",content:n.finalText,timestamp:Date.now()}),r=null)}return s}},1489:(e,t,s)=>{s.d(t,{N:()=>l});var r=s(1636),n=s(2847),o=s(785);class i{constructor(){this.tasks=new r.CronTasks((0,o.kO)()),this.scheduler=new n.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await s.e(7519).then(s.bind(s,7519)),{getCustomerGoalCoordinator:r}=await Promise.all([s.e(7519),s.e(732)]).then(s.bind(s,732)),n=e.sessionId;n&&await t.getSessionStore().get(n)||(n=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:n})),await r().enqueue(n,e.prompt)}call(e,t){let s=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(s);case"cronResume":return this.tasks.resume(s);case"cronDelete":return this.tasks.delete(s);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let a=globalThis;function l(){return a.__sharedCronService??=new i}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[8375,6703,4621,7519,1614,5762],()=>s(4480));module.exports=r})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+c37f1ebc82a0b1f5/node_modules/@anthropic-ai/claude-agent-sdk/package.json","../../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+c37f1ebc82a0b1f5/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/client.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/error-interceptor.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/client.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/index.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/utils.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/auth.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/bodySerializer.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/params.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/pathSerializer.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/serverSentEvents.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/utils.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/sdk.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/types.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/index.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/process.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/server.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/package.json","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/cross-spawn","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/binding.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/explain.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-x64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-x64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-x64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-x64.node","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/package.json","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/path-key","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/shebang-command","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/which","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/package.json","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/async-local-storage.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/package.json","../../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.js","../../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/package.json","../../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.js","../../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/package.json","../../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-regex","../../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","../../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/package.json","../../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/isexe","../../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/package.json","../../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/which.js","../../../../../../../../../package.json","../../../../../../../../computer-use/dist/index.js","../../../../../../../../computer-use/package.json","../../../../../../../../core/dist/index.js","../../../../../../../../core/node_modules/better-sqlite3","../../../../../../../../core/package.json","../../../../../../../../native-runtime/dist/index.js","../../../../../../../../native-runtime/node_modules/@agent/core","../../../../../../../../native-runtime/node_modules/@anthropic-ai/claude-agent-sdk","../../../../../../../../native-runtime/node_modules/@opencode-ai/sdk","../../../../../../../../native-runtime/package.json","../../../../../../../node_modules/@agent/computer-use","../../../../../../../node_modules/@agent/core","../../../../../../../node_modules/@agent/native-runtime","../../../../../../../node_modules/next","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1614.js","../../../../../chunks/4621.js","../../../../../chunks/6703.js","../../../../../chunks/732.js","../../../../../chunks/7519.js","../../../../../chunks/8375.js","../../../../../webpack-runtime.js"]}
1
+ {"version":1,"files":["../../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+c37f1ebc82a0b1f5/node_modules/@anthropic-ai/claude-agent-sdk/package.json","../../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+c37f1ebc82a0b1f5/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/client.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/error-interceptor.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/client.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/index.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/utils.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/auth.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/bodySerializer.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/params.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/pathSerializer.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/serverSentEvents.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/utils.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/sdk.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/types.gen.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/index.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/process.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/server.js","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/package.json","../../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/cross-spawn","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/binding.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/explain.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-x64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-x64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-x64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-arm64.node","../../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-x64.node","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/package.json","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/path-key","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/shebang-command","../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/which","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/package.json","../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/async-local-storage.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/package.json","../../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.js","../../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/package.json","../../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.js","../../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/package.json","../../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-regex","../../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","../../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/package.json","../../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/isexe","../../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/package.json","../../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/which.js","../../../../../../../../../package.json","../../../../../../../../computer-use/dist/index.js","../../../../../../../../computer-use/package.json","../../../../../../../../core/dist/index.js","../../../../../../../../core/node_modules/better-sqlite3","../../../../../../../../core/package.json","../../../../../../../../native-runtime/dist/index.js","../../../../../../../../native-runtime/node_modules/@agent/core","../../../../../../../../native-runtime/node_modules/@anthropic-ai/claude-agent-sdk","../../../../../../../../native-runtime/node_modules/@opencode-ai/sdk","../../../../../../../../native-runtime/package.json","../../../../../../../node_modules/@agent/computer-use","../../../../../../../node_modules/@agent/core","../../../../../../../node_modules/@agent/native-runtime","../../../../../../../node_modules/next","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1614.js","../../../../../chunks/4621.js","../../../../../chunks/5762.js","../../../../../chunks/6703.js","../../../../../chunks/732.js","../../../../../chunks/7519.js","../../../../../chunks/8375.js","../../../../../webpack-runtime.js"]}
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=3610,e.ids=[3610],e.modules={1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},5455:(e,r,s)=>{s.r(r),s.d(r,{originalPathname:()=>g,patchFetch:()=>x,requestAsyncStorage:()=>p,routeModule:()=>l,serverHooks:()=>v,staticGenerationAsyncStorage:()=>c});var t={};s.r(t),s.d(t,{POST:()=>d});var n=s(7786),o=s(5042),i=s(2184),a=s(1890),u=s(1614);async function d(e,{params:r}){if(!(0,u.V_)(r.id)||!r.id.startsWith("runtime:codex:"))return a.NextResponse.json({error:"Only Codex sessions can be released"},{status:405});try{return await (0,u.NL)().release(r.id),a.NextResponse.json({status:"released"})}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Codex release failed"},{status:(0,u.WW)(e)})}}let l=new n.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/release/route",pathname:"/api/sessions/[id]/release",filename:"route",bundlePath:"app/api/sessions/[id]/release/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/sessions/[id]/release/route.ts",nextConfigOutput:"standalone",userland:t}),{requestAsyncStorage:p,staticGenerationAsyncStorage:c,serverHooks:v}=l,g="/api/sessions/[id]/release/route";function x(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:c})}},535:(e,r,s)=>{s.d(r,{L:()=>i});var t=s(1636),n=s(785);let o=!1;function i(){let e=(0,t.getGlobalLogger)();if(e)return e;let r=(0,t.installGlobalLogging)({dir:(0,n.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return o||(o=!0,r.info("server logger attached",{dir:r.dir,pid:process.pid})),r}},785:(e,r,s)=>{s.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var t=s(9411);let n=function(){let e=process.argv[1];if(e){let r=(0,t.dirname)((0,t.resolve)(e)),s=`${t.sep}node_modules${t.sep}.bin`;return r.endsWith(s)?(0,t.resolve)(r,"..",".."):r}return(0,t.resolve)(process.cwd())}();function o(e=process.env,r=n){return(0,t.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return o()}function a(e=process.env,r=o(e)){let s=e.AGENT_LOG_DIR?.trim();if(s)return(0,t.resolve)(s);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,t.resolve)(n,"logs"):(0,t.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=n){return(0,t.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}}};var r=require("../../../../../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[8375,6703,1614],()=>s(5455));module.exports=t})();
1
+ "use strict";(()=>{var e={};e.id=3610,e.ids=[3610],e.modules={1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},3849:(e,r,s)=>{s.r(r),s.d(r,{originalPathname:()=>g,patchFetch:()=>x,requestAsyncStorage:()=>p,routeModule:()=>l,serverHooks:()=>v,staticGenerationAsyncStorage:()=>c});var t={};s.r(t),s.d(t,{POST:()=>d});var n=s(7786),o=s(5042),i=s(2184),a=s(1890),u=s(1614);async function d(e,{params:r}){if(!(0,u.V_)(r.id)||!r.id.startsWith("runtime:codex:"))return a.NextResponse.json({error:"Only Codex sessions can be released"},{status:405});try{return await (0,u.NL)().release(r.id),a.NextResponse.json({status:"released"})}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Codex release failed"},{status:(0,u.WW)(e)})}}let l=new n.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/release/route",pathname:"/api/sessions/[id]/release",filename:"route",bundlePath:"app/api/sessions/[id]/release/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261116-74/packages/server/app/api/sessions/[id]/release/route.ts",nextConfigOutput:"standalone",userland:t}),{requestAsyncStorage:p,staticGenerationAsyncStorage:c,serverHooks:v}=l,g="/api/sessions/[id]/release/route";function x(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:c})}},535:(e,r,s)=>{s.d(r,{L:()=>i});var t=s(1636),n=s(785);let o=!1;function i(){let e=(0,t.getGlobalLogger)();if(e)return e;let r=(0,t.installGlobalLogging)({dir:(0,n.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return o||(o=!0,r.info("server logger attached",{dir:r.dir,pid:process.pid})),r}},785:(e,r,s)=>{s.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var t=s(9411);let n=function(){let e=process.argv[1];if(e){let r=(0,t.dirname)((0,t.resolve)(e)),s=`${t.sep}node_modules${t.sep}.bin`;return r.endsWith(s)?(0,t.resolve)(r,"..",".."):r}return(0,t.resolve)(process.cwd())}();function o(e=process.env,r=n){return(0,t.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return o()}function a(e=process.env,r=o(e)){let s=e.AGENT_LOG_DIR?.trim();if(s)return(0,t.resolve)(s);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,t.resolve)(n,"logs"):(0,t.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=n){return(0,t.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}}};var r=require("../../../../../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[8375,6703,1614],()=>s(3849));module.exports=t})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=5241,e.ids=[5241],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},255:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>y,patchFetch:()=>S,requestAsyncStorage:()=>v,routeModule:()=>f,serverHooks:()=>P,staticGenerationAsyncStorage:()=>x});var r={};s.r(r),s.d(r,{DELETE:()=>h,GET:()=>m,PATCH:()=>g});var n=s(7786),o=s(5042),i=s(2184),a=s(1890),u=s(1636),l=s(7519),d=s(1614),c=s(2847),p=s(8274);async function m(e,{params:t}){let s=new URL(e.url),r=s.searchParams.get("before"),n=s.searchParams.get("after"),o=s.searchParams.get("anchor"),i=s.searchParams.get("limit"),m=s.searchParams.get("view"),g=s.searchParams.get("revision"),h=s.searchParams.get("turnId"),f="core"===m||"trace"===m?m:void 0,v=null!==r||null!==n||null!==o||null!==i||f||g||h?{before:r||void 0,after:n||void 0,anchor:o||void 0,limit:function(e){if(null===e)return;let t=Number(e);return Number.isFinite(t)?t:void 0}(i),view:f,revision:g||void 0,turnId:h||void 0}:void 0;if((0,d.V_)(t.id))try{let e=await (0,d.NL)().get(t.id,v);return a.NextResponse.json(e)}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Internal error",...e instanceof c.RuntimeSessionError?{code:e.code}:{}},{status:(0,d.WW)(e)})}let x=await l.agentHost.getSessionStore().get(t.id);if(!x)return a.NextResponse.json({error:"Session not found"},{status:404});let P=l.agentHost.getRecoverableRun(x),y=[...(!x.messages?.length&&!P&&Array.isArray(x.events)&&x.events.length>0?p.Q(x.events):x.messages)?.filter(e=>!u.isInternalGoalMessage(e))??[]??[],...P?(0,p.Q)(x.events.slice(P.eventStart),{runId:P.runId,isStreaming:P.running}):[]],S=P?P.running?"active":"failed":x.status,w=P?{runId:P.runId,eventId:P.eventId,running:P.running}:void 0;try{let e=v?{...x,agentType:"customer-agent",status:S,permissionMode:(0,u.normalizeToolPermissionMode)(x.metadata.permissionMode),...w?{activeRun:w}:{},...(0,u.paginateSessionHistory)(y??[],x.events??[],v)}:{...x,agentType:"customer-agent",status:S,messages:y,permissionMode:(0,u.normalizeToolPermissionMode)(x.metadata.permissionMode),...w?{activeRun:w}:{}};return a.NextResponse.json({...e,messageQueueVersion:1,goalState:(0,u.readSessionGoalState)(x.metadata)})}catch(e){if(e instanceof u.StaleSessionAnchorError)return a.NextResponse.json({error:e.message,code:e.code},{status:409});throw e}}async function g(e,{params:t}){let s=await e.json();if(void 0!==s.nativeMode){if(!(0,d.V_)(t.id)||void 0!==s.permissionMode||void 0!==s.nativePermissionPreset||"string"!=typeof s.nativeMode||!s.nativeMode.trim()||s.nativeMode.length>128)return a.NextResponse.json({error:"Invalid native mode"},{status:400});try{return a.NextResponse.json(await (0,d.NL)().setNativeMode(t.id,s.nativeMode))}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Unable to update native mode"},{status:(0,d.WW)(e)})}}if(void 0!==s.nativePermissionPreset){if(!(0,d.V_)(t.id)||void 0!==s.permissionMode||"string"!=typeof s.nativePermissionPreset||!s.nativePermissionPreset.trim()||s.nativePermissionPreset.length>128)return a.NextResponse.json({error:"Invalid native permission preset"},{status:400});try{return a.NextResponse.json(await (0,d.NL)().setNativePermissionPreset(t.id,s.nativePermissionPreset))}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Unable to update native permissions"},{status:(0,d.WW)(e)})}}if(!(0,u.isToolPermissionMode)(s.permissionMode))return a.NextResponse.json({error:"Invalid permission mode"},{status:400});if((0,d.V_)(t.id))try{let e=await (0,d.NL)().setPermissionMode(t.id,s.permissionMode);return a.NextResponse.json(e)}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Unable to update permission mode"},{status:(0,d.WW)(e)})}try{let e=await l.agentHost.setSessionPermissionMode(t.id,s.permissionMode);return a.NextResponse.json({...e,permissionMode:(0,u.normalizeToolPermissionMode)(e.metadata.permissionMode)})}catch(s){let e=s instanceof Error?s.message:"Unable to update permission mode",t=e.startsWith("Session not found")?404:500;return a.NextResponse.json({error:e},{status:t})}}async function h(e,{params:t}){if((0,d.V_)(t.id))try{return await (0,d.NL)().delete(t.id),a.NextResponse.json({status:"deleted"})}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Unable to delete session"},{status:(0,d.WW)(e)})}return l.agentHost.isSessionRunning(t.id)?a.NextResponse.json({error:"Session is currently running"},{status:409}):(await l.agentHost.getSessionStore().delete(t.id),a.NextResponse.json({status:"deleted"}))}let f=new n.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/route",pathname:"/api/sessions/[id]",filename:"route",bundlePath:"app/api/sessions/[id]/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/sessions/[id]/route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:v,staticGenerationAsyncStorage:x,serverHooks:P}=f,y="/api/sessions/[id]/route";function S(){return(0,i.patchFetch)({serverHooks:P,staticGenerationAsyncStorage:x})}},8274:(e,t,s)=>{s.d(t,{Q:()=>r});function r(e,t={}){let s=[],r=null,n=0,o=()=>`${t.runId??"event-history"}:${n++}`;for(let n of e){if("text_chunk"===n.type){r||(r={id:o(),role:"assistant",content:"",isStreaming:t.isStreaming??!0,timestamp:Date.now()},s.push(r)),r.content=`${r.content??""}${n.text??""}`;continue}if("tool_call"===n.type&&n.toolCall){r?(r.toolCalls=[n.toolCall],r.isStreaming=!1):s.push({id:o(),role:"assistant",content:"",toolCalls:[n.toolCall],isStreaming:!1,timestamp:Date.now()}),r=null;continue}if("tool_result"===n.type&&n.result){let e=n.result;s.push({id:o(),role:"tool",content:e.content??"",toolCallId:e.toolCallId,timestamp:Date.now()});continue}if("ask_user"===n.type){s.push({id:o(),role:"assistant",content:"",askUser:{questionId:n.questionId,question:n.question??"",options:n.options,fields:n.fields,multiSelect:n.multiSelect},timestamp:Date.now()});continue}"done"===n.type&&"string"==typeof n.finalText&&(r?(r.content=n.finalText,r.isStreaming=!1):n.finalText.trim()&&s.push({id:o(),role:"assistant",content:n.finalText,timestamp:Date.now()}),r=null)}return s}},1489:(e,t,s)=>{s.d(t,{N:()=>u});var r=s(1636),n=s(2847),o=s(785);class i{constructor(){this.tasks=new r.CronTasks((0,o.kO)()),this.scheduler=new n.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await s.e(7519).then(s.bind(s,7519)),{getCustomerGoalCoordinator:r}=await Promise.all([s.e(7519),s.e(732)]).then(s.bind(s,732)),n=e.sessionId;n&&await t.getSessionStore().get(n)||(n=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:n})),await r().enqueue(n,e.prompt)}call(e,t){let s=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(s);case"cronResume":return this.tasks.resume(s);case"cronDelete":return this.tasks.delete(s);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let a=globalThis;function u(){return a.__sharedCronService??=new i}}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[8375,6703,4621,7519,1614],()=>s(255));module.exports=r})();
1
+ "use strict";(()=>{var e={};e.id=5241,e.ids=[5241],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},9768:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>y,patchFetch:()=>w,requestAsyncStorage:()=>x,routeModule:()=>v,serverHooks:()=>P,staticGenerationAsyncStorage:()=>S});var r={};s.r(r),s.d(r,{DELETE:()=>f,GET:()=>g,PATCH:()=>h});var n=s(7786),o=s(5042),i=s(2184),a=s(1890),u=s(1636),l=s(7519),d=s(1614),c=s(2847),p=s(8274),m=s(5762);async function g(e,{params:t}){let s=new URL(e.url),r=s.searchParams.get("before"),n=s.searchParams.get("after"),o=s.searchParams.get("anchor"),i=s.searchParams.get("limit"),g=s.searchParams.get("view"),h=s.searchParams.get("revision"),f=s.searchParams.get("turnId"),v="core"===g||"trace"===g?g:void 0,x=null!==r||null!==n||null!==o||null!==i||v||h||f?{before:r||void 0,after:n||void 0,anchor:o||void 0,limit:function(e){if(null===e)return;let t=Number(e);return Number.isFinite(t)?t:void 0}(i),view:v,revision:h||void 0,turnId:f||void 0}:void 0;if((0,d.V_)(t.id))try{let e=await (0,m.dh)(t.id,x);if(e)return a.NextResponse.json(e);let s=await (0,d.NL)().get(t.id,x);return a.NextResponse.json(s)}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Internal error",...e instanceof c.RuntimeSessionError||e instanceof u.StaleSessionAnchorError?{code:e.code}:{}},{status:e instanceof u.StaleSessionAnchorError?409:(0,d.WW)(e)})}let S=await l.agentHost.getSessionStore().get(t.id);if(!S)return a.NextResponse.json({error:"Session not found"},{status:404});let P=l.agentHost.getRecoverableRun(S),y=[...(!S.messages?.length&&!P&&Array.isArray(S.events)&&S.events.length>0?p.Q(S.events):S.messages)?.filter(e=>!u.isInternalGoalMessage(e))??[]??[],...P?(0,p.Q)(S.events.slice(P.eventStart),{runId:P.runId,isStreaming:P.running}):[]],w=P?P.running?"active":"failed":S.status,N=P?{runId:P.runId,eventId:P.eventId,running:P.running}:void 0;try{let e=x?{...S,agentType:"customer-agent",status:w,permissionMode:(0,u.normalizeToolPermissionMode)(S.metadata.permissionMode),...N?{activeRun:N}:{},...(0,u.paginateSessionHistory)(y??[],S.events??[],x)}:{...S,agentType:"customer-agent",status:w,messages:y,permissionMode:(0,u.normalizeToolPermissionMode)(S.metadata.permissionMode),...N?{activeRun:N}:{}};return a.NextResponse.json({...e,messageQueueVersion:1,goalState:(0,u.readSessionGoalState)(S.metadata)})}catch(e){if(e instanceof u.StaleSessionAnchorError)return a.NextResponse.json({error:e.message,code:e.code},{status:409});throw e}}async function h(e,{params:t}){let s=await e.json();if(void 0!==s.nativeMode){if(!(0,d.V_)(t.id)||void 0!==s.permissionMode||void 0!==s.nativePermissionPreset||"string"!=typeof s.nativeMode||!s.nativeMode.trim()||s.nativeMode.length>128)return a.NextResponse.json({error:"Invalid native mode"},{status:400});try{return a.NextResponse.json(await (0,d.NL)().setNativeMode(t.id,s.nativeMode))}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Unable to update native mode"},{status:(0,d.WW)(e)})}}if(void 0!==s.nativePermissionPreset){if(!(0,d.V_)(t.id)||void 0!==s.permissionMode||"string"!=typeof s.nativePermissionPreset||!s.nativePermissionPreset.trim()||s.nativePermissionPreset.length>128)return a.NextResponse.json({error:"Invalid native permission preset"},{status:400});try{return a.NextResponse.json(await (0,d.NL)().setNativePermissionPreset(t.id,s.nativePermissionPreset))}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Unable to update native permissions"},{status:(0,d.WW)(e)})}}if(!(0,u.isToolPermissionMode)(s.permissionMode))return a.NextResponse.json({error:"Invalid permission mode"},{status:400});if((0,d.V_)(t.id))try{let e=await (0,d.NL)().setPermissionMode(t.id,s.permissionMode);return a.NextResponse.json(e)}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Unable to update permission mode"},{status:(0,d.WW)(e)})}try{let e=await l.agentHost.setSessionPermissionMode(t.id,s.permissionMode);return a.NextResponse.json({...e,permissionMode:(0,u.normalizeToolPermissionMode)(e.metadata.permissionMode)})}catch(s){let e=s instanceof Error?s.message:"Unable to update permission mode",t=e.startsWith("Session not found")?404:500;return a.NextResponse.json({error:e},{status:t})}}async function f(e,{params:t}){if((0,d.V_)(t.id))try{return await (0,d.NL)().delete(t.id),a.NextResponse.json({status:"deleted"})}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Unable to delete session"},{status:(0,d.WW)(e)})}return l.agentHost.isSessionRunning(t.id)?a.NextResponse.json({error:"Session is currently running"},{status:409}):(await l.agentHost.getSessionStore().delete(t.id),a.NextResponse.json({status:"deleted"}))}let v=new n.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/sessions/[id]/route",pathname:"/api/sessions/[id]",filename:"route",bundlePath:"app/api/sessions/[id]/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261116-74/packages/server/app/api/sessions/[id]/route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:x,staticGenerationAsyncStorage:S,serverHooks:P}=v,y="/api/sessions/[id]/route";function w(){return(0,i.patchFetch)({serverHooks:P,staticGenerationAsyncStorage:S})}},8274:(e,t,s)=>{s.d(t,{Q:()=>r});function r(e,t={}){let s=[],r=null,n=0,o=()=>`${t.runId??"event-history"}:${n++}`;for(let n of e){if("text_chunk"===n.type){r||(r={id:o(),role:"assistant",content:"",isStreaming:t.isStreaming??!0,timestamp:Date.now()},s.push(r)),r.content=`${r.content??""}${n.text??""}`;continue}if("tool_call"===n.type&&n.toolCall){r?(r.toolCalls=[n.toolCall],r.isStreaming=!1):s.push({id:o(),role:"assistant",content:"",toolCalls:[n.toolCall],isStreaming:!1,timestamp:Date.now()}),r=null;continue}if("tool_result"===n.type&&n.result){let e=n.result;s.push({id:o(),role:"tool",content:e.content??"",toolCallId:e.toolCallId,timestamp:Date.now()});continue}if("ask_user"===n.type){s.push({id:o(),role:"assistant",content:"",askUser:{questionId:n.questionId,question:n.question??"",options:n.options,fields:n.fields,multiSelect:n.multiSelect},timestamp:Date.now()});continue}"done"===n.type&&"string"==typeof n.finalText&&(r?(r.content=n.finalText,r.isStreaming=!1):n.finalText.trim()&&s.push({id:o(),role:"assistant",content:n.finalText,timestamp:Date.now()}),r=null)}return s}},1489:(e,t,s)=>{s.d(t,{N:()=>u});var r=s(1636),n=s(2847),o=s(785);class i{constructor(){this.tasks=new r.CronTasks((0,o.kO)()),this.scheduler=new n.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await s.e(7519).then(s.bind(s,7519)),{getCustomerGoalCoordinator:r}=await Promise.all([s.e(7519),s.e(732)]).then(s.bind(s,732)),n=e.sessionId;n&&await t.getSessionStore().get(n)||(n=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:n})),await r().enqueue(n,e.prompt)}call(e,t){let s=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(s);case"cronResume":return this.tasks.resume(s);case"cronDelete":return this.tasks.delete(s);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let a=globalThis;function u(){return a.__sharedCronService??=new i}}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[8375,6703,4621,7519,1614,5762],()=>s(9768));module.exports=r})();