agentroam-runtime-darwin-arm64 0.2.0-preview.68 → 0.2.0-preview.69

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 (896) hide show
  1. package/manifest.json +2 -2
  2. package/package.json +1 -1
  3. package/runtime/.next/BUILD_ID +1 -1
  4. package/runtime/.next/app-build-manifest.json +8 -8
  5. package/runtime/.next/app-path-routes-manifest.json +1 -1
  6. package/runtime/.next/build-manifest.json +3 -3
  7. package/runtime/.next/prerender-manifest.json +1 -1
  8. package/runtime/.next/required-server-files.json +1 -1
  9. package/runtime/.next/server/app/_not-found/page.js +1 -1
  10. package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/runtime/.next/server/app/_not-found.html +1 -1
  12. package/runtime/.next/server/app/_not-found.rsc +1 -1
  13. package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
  14. package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
  15. package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
  16. package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
  17. package/runtime/.next/server/app/api/agent/model/route.js +1 -1
  18. package/runtime/.next/server/app/api/agent/models/route.js +1 -1
  19. package/runtime/.next/server/app/api/agent/run/route.js +1 -1
  20. package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
  21. package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
  22. package/runtime/.next/server/app/api/agent/stream/route.js +2 -2
  23. package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
  24. package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
  25. package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
  26. package/runtime/.next/server/app/api/business/route.js +1 -1
  27. package/runtime/.next/server/app/api/client-logs/route.js +1 -1
  28. package/runtime/.next/server/app/api/collaboration/route.js +4 -4
  29. package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
  30. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
  31. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +4 -4
  32. package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
  33. package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
  34. package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
  35. package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
  36. package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
  37. package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
  38. package/runtime/.next/server/app/api/memory/route.js +1 -1
  39. package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
  40. package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
  41. package/runtime/.next/server/app/api/projects/check/route.js +1 -1
  42. package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
  43. package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
  44. package/runtime/.next/server/app/api/projects/route.js +1 -1
  45. package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
  46. package/runtime/.next/server/app/api/push/unsubscribe/route.js +3 -3
  47. package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
  48. package/runtime/.next/server/app/api/push/vapid.body +1 -1
  49. package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
  50. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
  51. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
  52. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
  53. package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
  54. package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  55. package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
  56. package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
  57. package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
  58. package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
  59. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
  60. package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
  61. package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
  62. package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
  63. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
  64. package/runtime/.next/server/app/api/sessions/route.js +1 -1
  65. package/runtime/.next/server/app/api/settings/route.js +1 -1
  66. package/runtime/.next/server/app/api/skills/route.js +1 -1
  67. package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
  68. package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
  69. package/runtime/.next/server/app/api/tools/route.js +1 -1
  70. package/runtime/.next/server/app/api/update/check/route.js +1 -1
  71. package/runtime/.next/server/app/api/update/install/route.js +1 -1
  72. package/runtime/.next/server/app/api/update/status/route.js +1 -1
  73. package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
  74. package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
  75. package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
  76. package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
  77. package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
  78. package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
  79. package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
  80. package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
  81. package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
  82. package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
  83. package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
  84. package/runtime/.next/server/app/web/page.js +4 -4
  85. package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
  86. package/runtime/.next/server/app-paths-manifest.json +30 -30
  87. package/runtime/.next/server/chunks/5303.js +2 -2
  88. package/runtime/.next/server/middleware-build-manifest.js +1 -1
  89. package/runtime/.next/server/pages/404.html +1 -1
  90. package/runtime/.next/server/pages/500.html +1 -1
  91. package/runtime/.next/server/server-reference-manifest.json +1 -1
  92. package/runtime/.next/static/chunks/app/web/{error-b5d1875531d2eeb6.js → error-c3847c5e65100576.js} +1 -1
  93. package/runtime/.next/static/chunks/app/web/layout-579afeab60c11faf.js +1 -0
  94. package/runtime/.next/static/chunks/app/web/page-1586e76a5cff32d5.js +1 -0
  95. package/runtime/.next/static/chunks/{main-app-3734d90a62991817.js → main-app-c797e818a3f2a09f.js} +1 -1
  96. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
  97. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
  98. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
  99. package/runtime/node_modules/.package-lock.json +128 -128
  100. package/runtime/node_modules/@agent/native-runtime/dist/index.js +442 -69
  101. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/README.md +1 -1
  102. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +75 -82
  103. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +28 -37
  104. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-a9vq6p1m.mjs +31 -0
  105. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-bb8r6h44.mjs +17 -0
  106. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-kzw924e6.mjs +18 -0
  107. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-t4mxrz5y.mjs +43 -0
  108. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +12 -21
  109. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +19 -20
  110. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +23 -24
  111. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +14 -14
  112. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +73 -82
  113. package/runtime/node_modules/caniuse-lite/data/agents.js +1 -1
  114. package/runtime/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  115. package/runtime/node_modules/caniuse-lite/data/features/aac.js +1 -1
  116. package/runtime/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  117. package/runtime/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  118. package/runtime/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  119. package/runtime/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  120. package/runtime/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  121. package/runtime/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  122. package/runtime/node_modules/caniuse-lite/data/features/apng.js +1 -1
  123. package/runtime/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  124. package/runtime/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  125. package/runtime/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  126. package/runtime/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  127. package/runtime/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  128. package/runtime/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  129. package/runtime/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  130. package/runtime/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  131. package/runtime/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  132. package/runtime/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  133. package/runtime/node_modules/caniuse-lite/data/features/audio.js +1 -1
  134. package/runtime/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  135. package/runtime/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  136. package/runtime/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  137. package/runtime/node_modules/caniuse-lite/data/features/av1.js +1 -1
  138. package/runtime/node_modules/caniuse-lite/data/features/avif.js +1 -1
  139. package/runtime/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  140. package/runtime/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  141. package/runtime/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  142. package/runtime/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  143. package/runtime/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  144. package/runtime/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  145. package/runtime/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  146. package/runtime/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  147. package/runtime/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  148. package/runtime/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  149. package/runtime/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  150. package/runtime/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  151. package/runtime/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  152. package/runtime/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  153. package/runtime/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  154. package/runtime/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  155. package/runtime/node_modules/caniuse-lite/data/features/calc.js +1 -1
  156. package/runtime/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  157. package/runtime/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  158. package/runtime/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  159. package/runtime/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  160. package/runtime/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  161. package/runtime/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  162. package/runtime/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  163. package/runtime/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  164. package/runtime/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  165. package/runtime/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  166. package/runtime/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  167. package/runtime/node_modules/caniuse-lite/data/features/colr.js +1 -1
  168. package/runtime/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  169. package/runtime/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  170. package/runtime/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  171. package/runtime/node_modules/caniuse-lite/data/features/const.js +1 -1
  172. package/runtime/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  173. package/runtime/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  174. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  175. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  176. package/runtime/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  177. package/runtime/node_modules/caniuse-lite/data/features/cors.js +1 -1
  178. package/runtime/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  179. package/runtime/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  180. package/runtime/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  181. package/runtime/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  182. package/runtime/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  183. package/runtime/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  184. package/runtime/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  185. package/runtime/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  186. package/runtime/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  187. package/runtime/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  188. package/runtime/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  189. package/runtime/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  190. package/runtime/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  191. package/runtime/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  192. package/runtime/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  193. package/runtime/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  194. package/runtime/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  195. package/runtime/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  196. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  197. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  198. package/runtime/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  199. package/runtime/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  200. package/runtime/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  201. package/runtime/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  202. package/runtime/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  203. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  204. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  205. package/runtime/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  206. package/runtime/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  207. package/runtime/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  208. package/runtime/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  209. package/runtime/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  210. package/runtime/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  211. package/runtime/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  212. package/runtime/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  213. package/runtime/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  214. package/runtime/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  215. package/runtime/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  216. package/runtime/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  217. package/runtime/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  218. package/runtime/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  219. package/runtime/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  220. package/runtime/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  221. package/runtime/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  222. package/runtime/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  223. package/runtime/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  224. package/runtime/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  225. package/runtime/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  226. package/runtime/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  227. package/runtime/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  228. package/runtime/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  229. package/runtime/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  230. package/runtime/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  231. package/runtime/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  232. package/runtime/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  233. package/runtime/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  234. package/runtime/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  235. package/runtime/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  236. package/runtime/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  237. package/runtime/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  238. package/runtime/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  239. package/runtime/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  240. package/runtime/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  241. package/runtime/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  242. package/runtime/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  243. package/runtime/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  244. package/runtime/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  245. package/runtime/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  246. package/runtime/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  247. package/runtime/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  248. package/runtime/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  249. package/runtime/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  250. package/runtime/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  251. package/runtime/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  252. package/runtime/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  253. package/runtime/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  254. package/runtime/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  255. package/runtime/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  256. package/runtime/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  257. package/runtime/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  258. package/runtime/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  259. package/runtime/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  260. package/runtime/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  261. package/runtime/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  262. package/runtime/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  263. package/runtime/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  264. package/runtime/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  265. package/runtime/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  266. package/runtime/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  267. package/runtime/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  268. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  269. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  270. package/runtime/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  271. package/runtime/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  272. package/runtime/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  273. package/runtime/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  274. package/runtime/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  275. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  276. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  277. package/runtime/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  278. package/runtime/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  279. package/runtime/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  280. package/runtime/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  281. package/runtime/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  282. package/runtime/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  283. package/runtime/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  284. package/runtime/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  285. package/runtime/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  286. package/runtime/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  287. package/runtime/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  288. package/runtime/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  289. package/runtime/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  290. package/runtime/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  291. package/runtime/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  292. package/runtime/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  293. package/runtime/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  294. package/runtime/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  295. package/runtime/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  296. package/runtime/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  297. package/runtime/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  298. package/runtime/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  299. package/runtime/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  300. package/runtime/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  301. package/runtime/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  302. package/runtime/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  303. package/runtime/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  304. package/runtime/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  305. package/runtime/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  306. package/runtime/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  307. package/runtime/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  308. package/runtime/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  309. package/runtime/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  310. package/runtime/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  311. package/runtime/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  312. package/runtime/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  313. package/runtime/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  314. package/runtime/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  315. package/runtime/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  316. package/runtime/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  317. package/runtime/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  318. package/runtime/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  319. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  320. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  321. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  322. package/runtime/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  323. package/runtime/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  324. package/runtime/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  325. package/runtime/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  326. package/runtime/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  327. package/runtime/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  328. package/runtime/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  329. package/runtime/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  330. package/runtime/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  331. package/runtime/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  332. package/runtime/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  333. package/runtime/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  334. package/runtime/node_modules/caniuse-lite/data/features/details.js +1 -1
  335. package/runtime/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  336. package/runtime/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  337. package/runtime/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  338. package/runtime/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  339. package/runtime/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  340. package/runtime/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  341. package/runtime/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  342. package/runtime/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  343. package/runtime/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  344. package/runtime/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  345. package/runtime/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  346. package/runtime/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  347. package/runtime/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  348. package/runtime/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  349. package/runtime/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  350. package/runtime/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  351. package/runtime/node_modules/caniuse-lite/data/features/download.js +1 -1
  352. package/runtime/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  353. package/runtime/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  354. package/runtime/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  355. package/runtime/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  356. package/runtime/node_modules/caniuse-lite/data/features/eme.js +1 -1
  357. package/runtime/node_modules/caniuse-lite/data/features/eot.js +1 -1
  358. package/runtime/node_modules/caniuse-lite/data/features/es5.js +1 -1
  359. package/runtime/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  360. package/runtime/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  361. package/runtime/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  362. package/runtime/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  363. package/runtime/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  364. package/runtime/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  365. package/runtime/node_modules/caniuse-lite/data/features/es6.js +1 -1
  366. package/runtime/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  367. package/runtime/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  368. package/runtime/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  369. package/runtime/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  370. package/runtime/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  371. package/runtime/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  372. package/runtime/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  373. package/runtime/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  374. package/runtime/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  375. package/runtime/node_modules/caniuse-lite/data/features/flac.js +1 -1
  376. package/runtime/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  377. package/runtime/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  378. package/runtime/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  379. package/runtime/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  380. package/runtime/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  381. package/runtime/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  382. package/runtime/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  383. package/runtime/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  384. package/runtime/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  385. package/runtime/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  386. package/runtime/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  387. package/runtime/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  388. package/runtime/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  389. package/runtime/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  390. package/runtime/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  391. package/runtime/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  392. package/runtime/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  393. package/runtime/node_modules/caniuse-lite/data/features/forms.js +1 -1
  394. package/runtime/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  395. package/runtime/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  396. package/runtime/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  397. package/runtime/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  398. package/runtime/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  399. package/runtime/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  400. package/runtime/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  401. package/runtime/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  402. package/runtime/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  403. package/runtime/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  404. package/runtime/node_modules/caniuse-lite/data/features/heif.js +1 -1
  405. package/runtime/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  406. package/runtime/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  407. package/runtime/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  408. package/runtime/node_modules/caniuse-lite/data/features/history.js +1 -1
  409. package/runtime/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  410. package/runtime/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  411. package/runtime/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  412. package/runtime/node_modules/caniuse-lite/data/features/http2.js +1 -1
  413. package/runtime/node_modules/caniuse-lite/data/features/http3.js +1 -1
  414. package/runtime/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  415. package/runtime/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  416. package/runtime/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  417. package/runtime/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  418. package/runtime/node_modules/caniuse-lite/data/features/ime.js +1 -1
  419. package/runtime/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  420. package/runtime/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  421. package/runtime/node_modules/caniuse-lite/data/features/imports.js +1 -1
  422. package/runtime/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  423. package/runtime/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  424. package/runtime/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  425. package/runtime/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  426. package/runtime/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  427. package/runtime/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  428. package/runtime/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  429. package/runtime/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  430. package/runtime/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  431. package/runtime/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  432. package/runtime/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  433. package/runtime/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  434. package/runtime/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  435. package/runtime/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  436. package/runtime/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  437. package/runtime/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  438. package/runtime/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  439. package/runtime/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  440. package/runtime/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  441. package/runtime/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  442. package/runtime/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  443. package/runtime/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  444. package/runtime/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  445. package/runtime/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  446. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  447. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  448. package/runtime/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  449. package/runtime/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  450. package/runtime/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  451. package/runtime/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  452. package/runtime/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  453. package/runtime/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  454. package/runtime/node_modules/caniuse-lite/data/features/json.js +1 -1
  455. package/runtime/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  456. package/runtime/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  457. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  458. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  459. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  460. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  461. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  462. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  463. package/runtime/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  464. package/runtime/node_modules/caniuse-lite/data/features/let.js +1 -1
  465. package/runtime/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  466. package/runtime/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  467. package/runtime/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  468. package/runtime/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  469. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  470. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  471. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  472. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  473. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  474. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  475. package/runtime/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  476. package/runtime/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  477. package/runtime/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  478. package/runtime/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  479. package/runtime/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  480. package/runtime/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  481. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  482. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  483. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  484. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  485. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  486. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  487. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  488. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  489. package/runtime/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  490. package/runtime/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  491. package/runtime/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  492. package/runtime/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  493. package/runtime/node_modules/caniuse-lite/data/features/menu.js +1 -1
  494. package/runtime/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  495. package/runtime/node_modules/caniuse-lite/data/features/meter.js +1 -1
  496. package/runtime/node_modules/caniuse-lite/data/features/midi.js +1 -1
  497. package/runtime/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  498. package/runtime/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  499. package/runtime/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  500. package/runtime/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  501. package/runtime/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  502. package/runtime/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  503. package/runtime/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  504. package/runtime/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  505. package/runtime/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  506. package/runtime/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  507. package/runtime/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  508. package/runtime/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  509. package/runtime/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  510. package/runtime/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  511. package/runtime/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  512. package/runtime/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  513. package/runtime/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  514. package/runtime/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  515. package/runtime/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  516. package/runtime/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  517. package/runtime/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  518. package/runtime/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  519. package/runtime/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  520. package/runtime/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  521. package/runtime/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  522. package/runtime/node_modules/caniuse-lite/data/features/opus.js +1 -1
  523. package/runtime/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  524. package/runtime/node_modules/caniuse-lite/data/features/outline.js +1 -1
  525. package/runtime/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  526. package/runtime/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  527. package/runtime/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  528. package/runtime/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  529. package/runtime/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  530. package/runtime/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  531. package/runtime/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  532. package/runtime/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  533. package/runtime/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  534. package/runtime/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  535. package/runtime/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  536. package/runtime/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  537. package/runtime/node_modules/caniuse-lite/data/features/picture.js +1 -1
  538. package/runtime/node_modules/caniuse-lite/data/features/ping.js +1 -1
  539. package/runtime/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  540. package/runtime/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  541. package/runtime/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  542. package/runtime/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  543. package/runtime/node_modules/caniuse-lite/data/features/portals.js +1 -1
  544. package/runtime/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  545. package/runtime/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  546. package/runtime/node_modules/caniuse-lite/data/features/progress.js +1 -1
  547. package/runtime/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  548. package/runtime/node_modules/caniuse-lite/data/features/promises.js +1 -1
  549. package/runtime/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  550. package/runtime/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  551. package/runtime/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  552. package/runtime/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  553. package/runtime/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  554. package/runtime/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  555. package/runtime/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  556. package/runtime/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  557. package/runtime/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  558. package/runtime/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  559. package/runtime/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  560. package/runtime/node_modules/caniuse-lite/data/features/rem.js +1 -1
  561. package/runtime/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  562. package/runtime/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  563. package/runtime/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  564. package/runtime/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  565. package/runtime/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  566. package/runtime/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  567. package/runtime/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  568. package/runtime/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  569. package/runtime/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  570. package/runtime/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  571. package/runtime/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  572. package/runtime/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  573. package/runtime/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  574. package/runtime/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  575. package/runtime/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  576. package/runtime/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  577. package/runtime/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  578. package/runtime/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  579. package/runtime/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  580. package/runtime/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  581. package/runtime/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  582. package/runtime/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  583. package/runtime/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  584. package/runtime/node_modules/caniuse-lite/data/features/sni.js +1 -1
  585. package/runtime/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  586. package/runtime/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  587. package/runtime/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  588. package/runtime/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  589. package/runtime/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  590. package/runtime/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  591. package/runtime/node_modules/caniuse-lite/data/features/stream.js +1 -1
  592. package/runtime/node_modules/caniuse-lite/data/features/streams.js +1 -1
  593. package/runtime/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  594. package/runtime/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  595. package/runtime/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  596. package/runtime/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  597. package/runtime/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  598. package/runtime/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  599. package/runtime/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  600. package/runtime/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  601. package/runtime/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  602. package/runtime/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  603. package/runtime/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  604. package/runtime/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  605. package/runtime/node_modules/caniuse-lite/data/features/svg.js +1 -1
  606. package/runtime/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  607. package/runtime/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  608. package/runtime/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  609. package/runtime/node_modules/caniuse-lite/data/features/template.js +1 -1
  610. package/runtime/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  611. package/runtime/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  612. package/runtime/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  613. package/runtime/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  614. package/runtime/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  615. package/runtime/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  616. package/runtime/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  617. package/runtime/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  618. package/runtime/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  619. package/runtime/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  620. package/runtime/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  621. package/runtime/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  622. package/runtime/node_modules/caniuse-lite/data/features/touch.js +1 -1
  623. package/runtime/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  624. package/runtime/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  625. package/runtime/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  626. package/runtime/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  627. package/runtime/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  628. package/runtime/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  629. package/runtime/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  630. package/runtime/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  631. package/runtime/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  632. package/runtime/node_modules/caniuse-lite/data/features/url.js +1 -1
  633. package/runtime/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  634. package/runtime/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  635. package/runtime/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  636. package/runtime/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  637. package/runtime/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  638. package/runtime/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  639. package/runtime/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  640. package/runtime/node_modules/caniuse-lite/data/features/video.js +1 -1
  641. package/runtime/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  642. package/runtime/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  643. package/runtime/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  644. package/runtime/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  645. package/runtime/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  646. package/runtime/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  647. package/runtime/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  648. package/runtime/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  649. package/runtime/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  650. package/runtime/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  651. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  652. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  653. package/runtime/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  654. package/runtime/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  655. package/runtime/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  656. package/runtime/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  657. package/runtime/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  658. package/runtime/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  659. package/runtime/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  660. package/runtime/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  661. package/runtime/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  662. package/runtime/node_modules/caniuse-lite/data/features/wav.js +1 -1
  663. package/runtime/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  664. package/runtime/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  665. package/runtime/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  666. package/runtime/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  667. package/runtime/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  668. package/runtime/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  669. package/runtime/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  670. package/runtime/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  671. package/runtime/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  672. package/runtime/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  673. package/runtime/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  674. package/runtime/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  675. package/runtime/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  676. package/runtime/node_modules/caniuse-lite/data/features/webm.js +1 -1
  677. package/runtime/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  678. package/runtime/node_modules/caniuse-lite/data/features/webp.js +1 -1
  679. package/runtime/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  680. package/runtime/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  681. package/runtime/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  682. package/runtime/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  683. package/runtime/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  684. package/runtime/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  685. package/runtime/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  686. package/runtime/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  687. package/runtime/node_modules/caniuse-lite/data/features/woff.js +1 -1
  688. package/runtime/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  689. package/runtime/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  690. package/runtime/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  691. package/runtime/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  692. package/runtime/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  693. package/runtime/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  694. package/runtime/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  695. package/runtime/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  696. package/runtime/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  697. package/runtime/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  698. package/runtime/node_modules/caniuse-lite/data/versionGroups.js +1 -1
  699. package/runtime/node_modules/caniuse-lite/package.json +1 -1
  700. package/runtime/node_modules/mediabunny/README.md +8 -0
  701. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +1438 -659
  702. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +20 -20
  703. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +20 -20
  704. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +1438 -659
  705. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +1438 -659
  706. package/runtime/node_modules/mediabunny/dist/modules/shared/aac-misc.js +9 -1
  707. package/runtime/node_modules/mediabunny/dist/modules/shared/mp3-misc.js +2 -0
  708. package/runtime/node_modules/mediabunny/dist/modules/shared/truehd-misc.js +10 -0
  709. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +1 -2
  710. package/runtime/node_modules/mediabunny/dist/modules/src/codec-data.js +11 -0
  711. package/runtime/node_modules/mediabunny/dist/modules/src/codec.js +111 -4
  712. package/runtime/node_modules/mediabunny/dist/modules/src/conversion.js +10 -13
  713. package/runtime/node_modules/mediabunny/dist/modules/src/encode.js +4 -2
  714. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js +1 -1
  715. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +48 -1
  716. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-misc.js +4 -0
  717. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-muxer.js +32 -4
  718. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +102 -17
  719. package/runtime/node_modules/mediabunny/dist/modules/src/id3.js +26 -8
  720. package/runtime/node_modules/mediabunny/dist/modules/src/input-track.js +25 -5
  721. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +76 -7
  722. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +31 -0
  723. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +79 -59
  724. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/ebml.js +2 -0
  725. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +28 -9
  726. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-muxer.js +114 -105
  727. package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +138 -48
  728. package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +165 -31
  729. package/runtime/node_modules/mediabunny/dist/modules/src/metadata.js +3 -2
  730. package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +9 -2
  731. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +28 -13
  732. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-muxer.js +53 -28
  733. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-writer.js +30 -8
  734. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +21 -28
  735. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-misc.js +24 -1
  736. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +5 -8
  737. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js +15 -10
  738. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js +4 -5
  739. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-muxer.js +14 -11
  740. package/runtime/node_modules/mediabunny/dist/modules/src/output-format.js +11 -1
  741. package/runtime/node_modules/mediabunny/dist/modules/src/resample.js +6 -7
  742. package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +56 -17
  743. package/runtime/node_modules/mediabunny/dist/modules/src/source.js +16 -0
  744. package/runtime/node_modules/mediabunny/dist/modules/src/target.js +16 -1
  745. package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
  746. package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
  747. package/runtime/node_modules/mediabunny/package.json +3 -3
  748. package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +1 -2
  749. package/runtime/node_modules/mediabunny/src/codec-data.ts +13 -2
  750. package/runtime/node_modules/mediabunny/src/codec.ts +128 -3
  751. package/runtime/node_modules/mediabunny/src/conversion.ts +16 -17
  752. package/runtime/node_modules/mediabunny/src/encode.ts +6 -2
  753. package/runtime/node_modules/mediabunny/src/flac/flac-demuxer.ts +1 -1
  754. package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +62 -1
  755. package/runtime/node_modules/mediabunny/src/hls/hls-misc.ts +5 -0
  756. package/runtime/node_modules/mediabunny/src/hls/hls-muxer.ts +39 -3
  757. package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +139 -17
  758. package/runtime/node_modules/mediabunny/src/id3.ts +25 -8
  759. package/runtime/node_modules/mediabunny/src/input-track.ts +35 -5
  760. package/runtime/node_modules/mediabunny/src/input.ts +4 -1
  761. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +89 -5
  762. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +35 -0
  763. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +100 -54
  764. package/runtime/node_modules/mediabunny/src/matroska/ebml.ts +2 -0
  765. package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +31 -8
  766. package/runtime/node_modules/mediabunny/src/matroska/matroska-muxer.ts +148 -118
  767. package/runtime/node_modules/mediabunny/src/media-sink.ts +165 -47
  768. package/runtime/node_modules/mediabunny/src/media-source.ts +211 -37
  769. package/runtime/node_modules/mediabunny/src/metadata.ts +9 -4
  770. package/runtime/node_modules/mediabunny/src/misc.ts +11 -2
  771. package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +33 -12
  772. package/runtime/node_modules/mediabunny/src/mp3/mp3-muxer.ts +63 -30
  773. package/runtime/node_modules/mediabunny/src/mp3/mp3-writer.ts +36 -11
  774. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +28 -38
  775. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-misc.ts +36 -1
  776. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +6 -9
  777. package/runtime/node_modules/mediabunny/src/ogg/ogg-demuxer.ts +17 -13
  778. package/runtime/node_modules/mediabunny/src/ogg/ogg-misc.ts +4 -5
  779. package/runtime/node_modules/mediabunny/src/ogg/ogg-muxer.ts +20 -17
  780. package/runtime/node_modules/mediabunny/src/output-format.ts +32 -0
  781. package/runtime/node_modules/mediabunny/src/resample.ts +8 -7
  782. package/runtime/node_modules/mediabunny/src/segmented-input.ts +67 -18
  783. package/runtime/node_modules/mediabunny/src/source.ts +21 -0
  784. package/runtime/node_modules/mediabunny/src/target.ts +21 -6
  785. package/runtime/node_modules/mediabunny/src/version.ts +1 -1
  786. package/runtime/package-lock.json +161 -161
  787. package/runtime/server.js +1 -1
  788. package/runtime/webapp/dist/assets/{AiHubPane-DIk3VHVD.js → AiHubPane-BQ8CJAQL.js} +1 -1
  789. package/runtime/webapp/dist/assets/App-GXFFBAhW.js +174 -0
  790. package/runtime/webapp/dist/assets/{BrowserLivePanel-C2eapgzC.js → BrowserLivePanel-DxhSUu4j.js} +1 -1
  791. package/runtime/webapp/dist/assets/{CollaborationDashboard-CmbzUAIn.js → CollaborationDashboard-c_iNusPf.js} +1 -1
  792. package/runtime/webapp/dist/assets/{CollaborationPage-DdGiWsrN.js → CollaborationPage-DRBPK_iH.js} +1 -1
  793. package/runtime/webapp/dist/assets/{FilePreview-C35N6c_1.js → FilePreview-DScFSi_K.js} +3 -3
  794. package/runtime/webapp/dist/assets/{FileTree-DHyts8Fp.js → FileTree-BB5xTMg6.js} +1 -1
  795. package/runtime/webapp/dist/assets/{FlowStudioPane-v-fObPNM.js → FlowStudioPane-BBf0zyw1.js} +1 -1
  796. package/runtime/webapp/dist/assets/{RemoteDesktopPage-D7mgoU7b.js → RemoteDesktopPage-CWW4T1QF.js} +1 -1
  797. package/runtime/webapp/dist/assets/SessionDashboard-BdGlakPd.js +26 -0
  798. package/runtime/webapp/dist/assets/SessionDashboard-CUCEDkCI.css +1 -0
  799. package/runtime/webapp/dist/assets/SessionDashboardBridge-8zrk0Bub.js +1 -0
  800. package/runtime/webapp/dist/assets/{TerminalPane-BPk3av7L.js → TerminalPane-DkEyD1ge.js} +1 -1
  801. package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-pOFLDnXP.js → abnfDiagram-VCTEODGH-Dlsyu96y.js} +1 -1
  802. package/runtime/webapp/dist/assets/{arc-Dtxck3vK.js → arc-D0AvBRtK.js} +1 -1
  803. package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-BvgB-eqr.js → architectureDiagram-5GKGNRK7-BLAHjBcI.js} +1 -1
  804. package/runtime/webapp/dist/assets/{arrow-right-C4BiGWqO.js → arrow-right-B15rGLIR.js} +1 -1
  805. package/runtime/webapp/dist/assets/{artifact-links-oA81jfGt.js → artifact-links-BkoUldDR.js} +1 -1
  806. package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-BsbUYhsJ.js → blockDiagram-I7D4REHJ-CqIb0xz-.js} +1 -1
  807. package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-CWyR12wW.js → c4Diagram-7LVT6UL2-CG98ZTHr.js} +1 -1
  808. package/runtime/webapp/dist/assets/channel-Bw3F6pJc.js +1 -0
  809. package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-C7QXnn8h.js → chunk-2Q5K7J3B-DQh8kgcp.js} +1 -1
  810. package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-CWJADtCm.js → chunk-5VM5RSS4-BesfCxeX.js} +1 -1
  811. package/runtime/webapp/dist/assets/{chunk-F27PBJKO-Cweh6MCq.js → chunk-F27PBJKO-BCXEjgx-.js} +1 -1
  812. package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-DF-E9vxt.js → chunk-IMKFNOWR-ydMd7mT-.js} +1 -1
  813. package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-Bt0XKJGJ.js → chunk-JWPE2WC7-K3_myO-F.js} +1 -1
  814. package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-Wv9f4r1o.js → chunk-POPQ4Y6H-BtqLafwd.js} +1 -1
  815. package/runtime/webapp/dist/assets/{chunk-SVP7TREG-CyaFVrLD.js → chunk-SVP7TREG-mKZUbHcv.js} +1 -1
  816. package/runtime/webapp/dist/assets/{chunk-TICWLB2K-DOIbwoJY.js → chunk-TICWLB2K-hDH9_eNh.js} +1 -1
  817. package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-CAwhKZv-.js → chunk-XXDRQBXY-B6wXA24N.js} +1 -1
  818. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-By2XJYuW.js +1 -0
  819. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-By2XJYuW.js +1 -0
  820. package/runtime/webapp/dist/assets/{clipboard-Ct7ZTYsT.js → clipboard-CrmYgzo8.js} +1 -1
  821. package/runtime/webapp/dist/assets/{codeSyntax-KLkJvvR9.js → codeSyntax-KyRYSqw_.js} +1 -1
  822. package/runtime/webapp/dist/assets/{collaboration-CiUq-T01.js → collaboration-B7rPFZje.js} +1 -1
  823. package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-gN410IPt.js → cose-bilkent-JH36ORCC-MoeyZZ6x.js} +1 -1
  824. package/runtime/webapp/dist/assets/{crown-o7sh7UXl.js → crown-BKylWZLt.js} +1 -1
  825. package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-5wFL_0bx.js → cynefin-OW5HDTMX-BWYtTqVq.js} +1 -1
  826. package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-CS8w0Cb8.js → cynefinDiagram-5FMLGOSQ-CoqnJ7eo.js} +1 -1
  827. package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-Bbk8onQY.js → dagre-GXQ25YYZ-DMwZ_7F7.js} +1 -1
  828. package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-BHFR1JYZ.js → diagram-S7CK7UJ4-DJ2BAyzP.js} +1 -1
  829. package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-DYuD9-hs.js → diagram-UQ7AKVKN-ChujnpjG.js} +1 -1
  830. package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-B8ZYNIIS.js → diagram-VSXAHHWV-CDSAKYID.js} +1 -1
  831. package/runtime/webapp/dist/assets/{diagram-VX7I27RA-CNIniP-o.js → diagram-VX7I27RA-DXvCy8w-.js} +1 -1
  832. package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-BRIldGhQ.js → diagram-Z3DM3KII-BWrKegI9.js} +1 -1
  833. package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-BeZcHuYS.js → ebnfDiagram-PWID7BFC-CqDhPmpp.js} +1 -1
  834. package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-DHwEwxeO.js → erDiagram-RLTQ6QDP-D5HR9ddP.js} +1 -1
  835. package/runtime/webapp/dist/assets/{file-types-CALnsqxP.js → file-types-D_egQYAD.js} +1 -1
  836. package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-DIN9fq8w.js → flowDiagram-HODETNUW-Bz89eEJ2.js} +1 -1
  837. package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-DEnztfWv.js → ganttDiagram-EL5Y4UJY-Bw1lo_RG.js} +1 -1
  838. package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-U_QimY5P.js → gitGraphDiagram-WWUBYQGX-CMxwIm3p.js} +1 -1
  839. package/runtime/webapp/dist/assets/index-6B8SDnzK.css +1 -0
  840. package/runtime/webapp/dist/assets/{index-DzIkFOL8.js → index-CkVSxxim.js} +53 -68
  841. package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-Db9evdVP.js → infoDiagram-27XIBGKW-DEWyQUst.js} +1 -1
  842. package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-BOaYc_-H.js → ishikawaDiagram-5VMMS53U-BfJdGhe_.js} +1 -1
  843. package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE--bpKX21G.js → journeyDiagram-3NMN7TZE-C6gh2ejc.js} +1 -1
  844. package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-CA_e9zyr.js → kanban-definition-UXKFOSKX-1UHi9Lfv.js} +1 -1
  845. package/runtime/webapp/dist/assets/{layout-BWROikQL.js → layout-CKq-cSTm.js} +1 -1
  846. package/runtime/webapp/dist/assets/{linear-Cs-tTwlC.js → linear-DF4sJk10.js} +1 -1
  847. package/runtime/webapp/dist/assets/{loader-circle-CCZ5vEFX.js → loader-circle-Dpjix4wZ.js} +1 -1
  848. package/runtime/webapp/dist/assets/{mermaid.core-DC45Ncse.js → mermaid.core-OAHUFl3p.js} +5 -5
  849. package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-CcBYbQBC.js → mindmap-definition-YA3MSWOX-JiyyEKeC.js} +1 -1
  850. package/runtime/webapp/dist/assets/{page-3RMj5dQT.js → page-DqgtSgo3.js} +3 -3
  851. package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-nG1uS_No.js → pegDiagram-XKGWAZYB-CpBwPi33.js} +1 -1
  852. package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-BrT1k-K2.js → pieDiagram-E7YTZNPT-BjM_PcYH.js} +1 -1
  853. package/runtime/webapp/dist/assets/qoder-CGHn7M84.png +0 -0
  854. package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-C13tJOvq.js → quadrantDiagram-AXDQQJYC-Vdz77obz.js} +1 -1
  855. package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-DnJ5PQG8.js → railroadDiagram-O6MQD6OU-DsQjNf1f.js} +1 -1
  856. package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-BQqwdK06.js → requirementDiagram-BXWQKSXE-TpfT8TjT.js} +1 -1
  857. package/runtime/webapp/dist/assets/{rotate-ccw-DC73nBn1.js → rotate-ccw-wJiVuYlm.js} +1 -1
  858. package/runtime/webapp/dist/assets/{rotate-cw-DqS4ePZN.js → rotate-cw-CtpBETpM.js} +1 -1
  859. package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-BsDbHSXS.js → sankeyDiagram-P5KCCOFB-Ckh_skQw.js} +1 -1
  860. package/runtime/webapp/dist/assets/{send-DAfqf9Ri.js → send-DL0qj0xE.js} +1 -1
  861. package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-BBDPxIMt.js → sequenceDiagram-WJ2MYXX4-CkKC0JEA.js} +1 -1
  862. package/runtime/webapp/dist/assets/{shield-check-BfU-zJrL.js → shield-check-B5q8YhWs.js} +1 -1
  863. package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-C6YHKU_U.js → sizeCapture-INFHLROL-DB_NzdXU.js} +1 -1
  864. package/runtime/webapp/dist/assets/{smartphone-DiwRttf1.js → smartphone-DJEfFl42.js} +1 -1
  865. package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-hLZSwbqs.js → stateDiagram-D77RDMKH-Ch2r76jY.js} +1 -1
  866. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-BCjtOHJv.js +1 -0
  867. package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-DE3K-s08.js → swimlanes-42K2YHIH-BBMlDhHH.js} +1 -1
  868. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CYzCynNs.js +8 -0
  869. package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-CCGtRdJn.js → timeline-definition-24CTP7MA-BELJuISI.js} +1 -1
  870. package/runtime/webapp/dist/assets/{trash-2-DypDAsgq.js → trash-2-D4LqA3q5.js} +1 -1
  871. package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-h20IaWBe.js → vennDiagram-4TSXK5OY-NSlXdmyy.js} +1 -1
  872. package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-CbMZyM2K.js → wardleyDiagram-VM6X3IG4-BVbNDhZr.js} +1 -1
  873. package/runtime/webapp/dist/assets/{web--NKliblj.js → web-BpA_VIiS.js} +1 -1
  874. package/runtime/webapp/dist/assets/{web-COkIp2EM.js → web-CoxxvfFh.js} +1 -1
  875. package/runtime/webapp/dist/assets/workbuddy-hEyEE8dU.png +0 -0
  876. package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-pPLfOQTQ.js → xychartDiagram-S5SC5T6Z-Bt3XghTc.js} +1 -1
  877. package/runtime/webapp/dist/assets/zcode-CsXrmDtX.png +0 -0
  878. package/runtime/webapp/dist/index.html +2 -2
  879. package/runtime/.next/static/chunks/app/web/layout-249cdd2909744bce.js +0 -1
  880. package/runtime/.next/static/chunks/app/web/page-2ce49f8aebe2474a.js +0 -1
  881. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-azmey26z.mjs +0 -52
  882. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-jhgm58v5.mjs +0 -40
  883. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-qw4t51gr.mjs +0 -27
  884. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x7q9bdvq.mjs +0 -26
  885. package/runtime/webapp/dist/assets/App-Bh7-ZKY-.js +0 -174
  886. package/runtime/webapp/dist/assets/SessionDashboard-DAzTBMO2.css +0 -1
  887. package/runtime/webapp/dist/assets/SessionDashboard-DFOqRo3U.js +0 -16
  888. package/runtime/webapp/dist/assets/SessionDashboardBridge-K2ripwXe.js +0 -1
  889. package/runtime/webapp/dist/assets/channel-DRUF4BK-.js +0 -1
  890. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-jMAd-PMJ.js +0 -1
  891. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-jMAd-PMJ.js +0 -1
  892. package/runtime/webapp/dist/assets/index-8zCfKdi_.css +0 -1
  893. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-BJ_AsUFj.js +0 -1
  894. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-5nRFPxoo.js +0 -8
  895. /package/runtime/.next/static/{yFTf4OsMQId8Kv7Is6hgk → irWde_R_H09SV2jvfhWC2}/_buildManifest.js +0 -0
  896. /package/runtime/.next/static/{yFTf4OsMQId8Kv7Is6hgk → irWde_R_H09SV2jvfhWC2}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=2538,e.ids=[2538],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")},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")},1102:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>w,requestAsyncStorage:()=>g,routeModule:()=>c,serverHooks:()=>m,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{POST:()=>p});var a=r(7786),n=r(5042),i=r(2184),o=r(1890),u=r(1636),l=r(7519);let d=new u.PluginManager(l.agentHost.getBuilder().getToolRegistry(),l.agentHost.getBuilder().getSkillRegistry(),process.cwd());async function p(e){try{let t=await e.json();if(!t.dirPath)return o.NextResponse.json({error:"dirPath is required"},{status:400});let r=await d.loadPlugin(t.dirPath);return await d.activatePlugin(r.manifest.name),o.NextResponse.json({status:"loaded",plugin:{name:r.manifest.name,version:r.manifest.version,description:r.manifest.description}})}catch(e){return o.NextResponse.json({error:e instanceof Error?e.message:"Plugin load failed"},{status:500})}}let c=new a.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/plugins/load/route",pathname:"/api/plugins/load",filename:"route",bundlePath:"app/api/plugins/load/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/plugins/load/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:g,staticGenerationAsyncStorage:h,serverHooks:m}=c,f="/api/plugins/load/route";function w(){return(0,i.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},1489:(e,t,r)=>{r.d(t,{N:()=>u});var s=r(1636),a=r(2847),n=r(785);class i{constructor(){this.tasks=new s.CronTasks((0,n.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 o=globalThis;function u(){return o.__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],()=>r(1102));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=2538,e.ids=[2538],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")},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")},2026:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>w,requestAsyncStorage:()=>g,routeModule:()=>c,serverHooks:()=>m,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{POST:()=>d});var a=r(7786),n=r(5042),i=r(2184),o=r(1890),u=r(1636),l=r(7519);let p=new u.PluginManager(l.agentHost.getBuilder().getToolRegistry(),l.agentHost.getBuilder().getSkillRegistry(),process.cwd());async function d(e){try{let t=await e.json();if(!t.dirPath)return o.NextResponse.json({error:"dirPath is required"},{status:400});let r=await p.loadPlugin(t.dirPath);return await p.activatePlugin(r.manifest.name),o.NextResponse.json({status:"loaded",plugin:{name:r.manifest.name,version:r.manifest.version,description:r.manifest.description}})}catch(e){return o.NextResponse.json({error:e instanceof Error?e.message:"Plugin load failed"},{status:500})}}let c=new a.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/plugins/load/route",pathname:"/api/plugins/load",filename:"route",bundlePath:"app/api/plugins/load/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/plugins/load/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:g,staticGenerationAsyncStorage:h,serverHooks:m}=c,f="/api/plugins/load/route";function w(){return(0,i.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},1489:(e,t,r)=>{r.d(t,{N:()=>u});var s=r(1636),a=r(2847),n=r(785);class i{constructor(){this.tasks=new s.CronTasks((0,n.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 o=globalThis;function u(){return o.__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],()=>r(2026));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=7361,e.ids=[7361],e.modules={1636:e=>{e.exports=require("@agent/core")},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")},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")},3148:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>v,requestAsyncStorage:()=>h,routeModule:()=>l,serverHooks:()=>y,staticGenerationAsyncStorage:()=>m});var s={};r.r(s),r.d(s,{DELETE:()=>d,GET:()=>u,PATCH:()=>p});var o=r(7786),n=r(5042),i=r(2184),a=r(1890),c=r(9142);async function u(e,{params:t}){try{return a.NextResponse.json(await c.a.get(t.id))}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}async function p(e,{params:t}){try{let r=await e.json();return a.NextResponse.json(await c.a.rename(t.id,r.name??""))}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}async function d(e,{params:t}){try{return await c.a.delete(t.id),a.NextResponse.json({deleted:!0,projectId:t.id})}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}let l=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/projects/[id]/route",pathname:"/api/projects/[id]",filename:"route",bundlePath:"app/api/projects/[id]/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/projects/[id]/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:h,staticGenerationAsyncStorage:m,serverHooks:y}=l,f="/api/projects/[id]/route";function v(){return(0,i.patchFetch)({serverHooks:y,staticGenerationAsyncStorage:m})}},9142:(e,t,r)=>{r.d(t,{r:()=>l,a:()=>d});var s=r(612),o=r(1636),n=r(785),i=r(7561),a=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class p{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,a.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let d=new p(new o.SQLiteProjectStore((0,n.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,a.resolve)(o);let n=(0,a.join)(r,".agentroam");try{if((0,i.statSync)(n).isDirectory())return n}catch{}return(0,a.resolve)(e)}((0,n.kO)()));function l(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function n(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return n()}function a(e=process.env,t=n(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.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),s=t.X(0,[8375,6703],()=>r(3148));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=7361,e.ids=[7361],e.modules={1636:e=>{e.exports=require("@agent/core")},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")},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")},6841:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>v,patchFetch:()=>f,requestAsyncStorage:()=>h,routeModule:()=>l,serverHooks:()=>y,staticGenerationAsyncStorage:()=>m});var s={};r.r(s),r.d(s,{DELETE:()=>d,GET:()=>u,PATCH:()=>p});var o=r(7786),n=r(5042),i=r(2184),a=r(1890),c=r(9142);async function u(e,{params:t}){try{return a.NextResponse.json(await c.a.get(t.id))}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}async function p(e,{params:t}){try{let r=await e.json();return a.NextResponse.json(await c.a.rename(t.id,r.name??""))}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}async function d(e,{params:t}){try{return await c.a.delete(t.id),a.NextResponse.json({deleted:!0,projectId:t.id})}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}let l=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/projects/[id]/route",pathname:"/api/projects/[id]",filename:"route",bundlePath:"app/api/projects/[id]/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/projects/[id]/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:h,staticGenerationAsyncStorage:m,serverHooks:y}=l,v="/api/projects/[id]/route";function f(){return(0,i.patchFetch)({serverHooks:y,staticGenerationAsyncStorage:m})}},9142:(e,t,r)=>{r.d(t,{r:()=>l,a:()=>d});var s=r(612),o=r(1636),n=r(785),i=r(7561),a=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class p{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,a.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let d=new p(new o.SQLiteProjectStore((0,n.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,a.resolve)(o);let n=(0,a.join)(r,".agentroam");try{if((0,i.statSync)(n).isDirectory())return n}catch{}return(0,a.resolve)(e)}((0,n.kO)()));function l(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function n(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return n()}function a(e=process.env,t=n(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.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),s=t.X(0,[8375,6703],()=>r(6841));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=6315,e.ids=[6315],e.modules={1636:e=>{e.exports=require("@agent/core")},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")},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")},9975:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>v,requestAsyncStorage:()=>h,routeModule:()=>p,serverHooks:()=>l,staticGenerationAsyncStorage:()=>d});var s={};r.r(s),r.d(s,{GET:()=>u});var o=r(7786),i=r(5042),n=r(2184),a=r(1890),c=r(9142);async function u(e){let t=new URL(e.url).searchParams.get("path")??"";return a.NextResponse.json({valid:c.a.check(t)},{headers:{"Cache-Control":"no-store"}})}let p=new o.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/projects/check/route",pathname:"/api/projects/check",filename:"route",bundlePath:"app/api/projects/check/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/projects/check/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:h,staticGenerationAsyncStorage:d,serverHooks:l}=p,m="/api/projects/check/route";function v(){return(0,n.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:d})}},9142:(e,t,r)=>{r.d(t,{r:()=>d,a:()=>h});var s=r(612),o=r(1636),i=r(785),n=r(7561),a=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class p{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,a.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let h=new p(new o.SQLiteProjectStore((0,i.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,a.resolve)(o);let i=(0,a.join)(r,".agentroam");try{if((0,n.statSync)(i).isDirectory())return i}catch{}return(0,a.resolve)(e)}((0,i.kO)()));function d(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>n,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function i(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function n(){return i()}function a(e=process.env,t=i(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,n())}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(9975));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=6315,e.ids=[6315],e.modules={1636:e=>{e.exports=require("@agent/core")},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")},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")},6248:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>v,requestAsyncStorage:()=>h,routeModule:()=>p,serverHooks:()=>d,staticGenerationAsyncStorage:()=>l});var s={};r.r(s),r.d(s,{GET:()=>u});var o=r(7786),i=r(5042),n=r(2184),a=r(1890),c=r(9142);async function u(e){let t=new URL(e.url).searchParams.get("path")??"";return a.NextResponse.json({valid:c.a.check(t)},{headers:{"Cache-Control":"no-store"}})}let p=new o.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/projects/check/route",pathname:"/api/projects/check",filename:"route",bundlePath:"app/api/projects/check/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/projects/check/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:h,staticGenerationAsyncStorage:l,serverHooks:d}=p,m="/api/projects/check/route";function v(){return(0,n.patchFetch)({serverHooks:d,staticGenerationAsyncStorage:l})}},9142:(e,t,r)=>{r.d(t,{r:()=>l,a:()=>h});var s=r(612),o=r(1636),i=r(785),n=r(7561),a=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class p{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,a.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let h=new p(new o.SQLiteProjectStore((0,i.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,a.resolve)(o);let i=(0,a.join)(r,".agentroam");try{if((0,n.statSync)(i).isDirectory())return i}catch{}return(0,a.resolve)(e)}((0,i.kO)()));function l(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>n,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function i(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function n(){return i()}function a(e=process.env,t=i(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,n())}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(6248));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=4737,e.ids=[4737],e.modules={1636:e=>{e.exports=require("@agent/core")},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")},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")},7688:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>v,requestAsyncStorage:()=>d,routeModule:()=>p,serverHooks:()=>h,staticGenerationAsyncStorage:()=>l});var s={};r.r(s),r.d(s,{GET:()=>u});var o=r(7786),i=r(5042),n=r(2184),a=r(1890),c=r(9142);async function u(e){try{let t=new URL(e.url).searchParams.get("path")??"";return a.NextResponse.json(c.a.directories(t))}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}let p=new o.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/projects/directories/route",pathname:"/api/projects/directories",filename:"route",bundlePath:"app/api/projects/directories/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/projects/directories/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:l,serverHooks:h}=p,m="/api/projects/directories/route";function v(){return(0,n.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:l})}},9142:(e,t,r)=>{r.d(t,{r:()=>l,a:()=>d});var s=r(612),o=r(1636),i=r(785),n=r(7561),a=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class p{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,a.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let d=new p(new o.SQLiteProjectStore((0,i.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,a.resolve)(o);let i=(0,a.join)(r,".agentroam");try{if((0,n.statSync)(i).isDirectory())return i}catch{}return(0,a.resolve)(e)}((0,i.kO)()));function l(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>n,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function i(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function n(){return i()}function a(e=process.env,t=i(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,n())}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(7688));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=4737,e.ids=[4737],e.modules={1636:e=>{e.exports=require("@agent/core")},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")},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")},1641:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>v,requestAsyncStorage:()=>d,routeModule:()=>p,serverHooks:()=>h,staticGenerationAsyncStorage:()=>l});var s={};r.r(s),r.d(s,{GET:()=>u});var o=r(7786),i=r(5042),n=r(2184),a=r(1890),c=r(9142);async function u(e){try{let t=new URL(e.url).searchParams.get("path")??"";return a.NextResponse.json(c.a.directories(t))}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}let p=new o.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/projects/directories/route",pathname:"/api/projects/directories",filename:"route",bundlePath:"app/api/projects/directories/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/projects/directories/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:l,serverHooks:h}=p,m="/api/projects/directories/route";function v(){return(0,n.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:l})}},9142:(e,t,r)=>{r.d(t,{r:()=>l,a:()=>d});var s=r(612),o=r(1636),i=r(785),n=r(7561),a=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class p{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,a.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let d=new p(new o.SQLiteProjectStore((0,i.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,a.resolve)(o);let i=(0,a.join)(r,".agentroam");try{if((0,n.statSync)(i).isDirectory())return i}catch{}return(0,a.resolve)(e)}((0,i.kO)()));function l(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>n,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function i(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function n(){return i()}function a(e=process.env,t=i(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,n())}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(1641));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=1199,e.ids=[1199],e.modules={1636:e=>{e.exports=require("@agent/core")},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")},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")},8020:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>v,requestAsyncStorage:()=>d,routeModule:()=>p,serverHooks:()=>l,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{GET:()=>u});var o=r(7786),n=r(5042),i=r(2184),a=r(1890),c=r(9142);async function u(e){try{return a.NextResponse.json(new URL(e.url).searchParams.has("picker")?c.a.pickerLocation():c.a.roots(),{headers:{"Cache-Control":"no-store"}})}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}let p=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/projects/roots/route",pathname:"/api/projects/roots",filename:"route",bundlePath:"app/api/projects/roots/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/projects/roots/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:h,serverHooks:l}=p,m="/api/projects/roots/route";function v(){return(0,i.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:h})}},9142:(e,t,r)=>{r.d(t,{r:()=>h,a:()=>d});var s=r(612),o=r(1636),n=r(785),i=r(7561),a=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class p{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,a.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let d=new p(new o.SQLiteProjectStore((0,n.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,a.resolve)(o);let n=(0,a.join)(r,".agentroam");try{if((0,i.statSync)(n).isDirectory())return n}catch{}return(0,a.resolve)(e)}((0,n.kO)()));function h(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function n(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return n()}function a(e=process.env,t=n(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.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),s=t.X(0,[8375,6703],()=>r(8020));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=1199,e.ids=[1199],e.modules={1636:e=>{e.exports=require("@agent/core")},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")},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")},4089:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>v,requestAsyncStorage:()=>h,routeModule:()=>p,serverHooks:()=>l,staticGenerationAsyncStorage:()=>d});var s={};r.r(s),r.d(s,{GET:()=>u});var o=r(7786),i=r(5042),n=r(2184),a=r(1890),c=r(9142);async function u(e){try{return a.NextResponse.json(new URL(e.url).searchParams.has("picker")?c.a.pickerLocation():c.a.roots(),{headers:{"Cache-Control":"no-store"}})}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}let p=new o.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/projects/roots/route",pathname:"/api/projects/roots",filename:"route",bundlePath:"app/api/projects/roots/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/projects/roots/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:h,staticGenerationAsyncStorage:d,serverHooks:l}=p,m="/api/projects/roots/route";function v(){return(0,n.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:d})}},9142:(e,t,r)=>{r.d(t,{r:()=>d,a:()=>h});var s=r(612),o=r(1636),i=r(785),n=r(7561),a=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class p{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,a.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let h=new p(new o.SQLiteProjectStore((0,i.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,a.resolve)(o);let i=(0,a.join)(r,".agentroam");try{if((0,n.statSync)(i).isDirectory())return i}catch{}return(0,a.resolve)(e)}((0,i.kO)()));function d(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>n,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function i(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function n(){return i()}function a(e=process.env,t=i(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,n())}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(4089));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=4871,e.ids=[4871],e.modules={1636:e=>{e.exports=require("@agent/core")},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")},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")},2367:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>v,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>m,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{GET:()=>u,POST:()=>p});var o=r(7786),i=r(5042),n=r(2184),a=r(1890),c=r(9142);async function u(){return a.NextResponse.json((await c.a.list()).filter(e=>!e.id.startsWith("collaboration-")))}async function p(e){try{let t=await e.json();return a.NextResponse.json(await c.a.create(t.path??"",t.name),{status:201})}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}let l=new o.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/projects/route",pathname:"/api/projects",filename:"route",bundlePath:"app/api/projects/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/projects/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:h,serverHooks:m}=l,f="/api/projects/route";function v(){return(0,n.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},9142:(e,t,r)=>{r.d(t,{r:()=>d,a:()=>l});var s=r(612),o=r(1636),i=r(785),n=r(7561),a=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class p{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,a.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let l=new p(new o.SQLiteProjectStore((0,i.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,a.resolve)(o);let i=(0,a.join)(r,".agentroam");try{if((0,n.statSync)(i).isDirectory())return i}catch{}return(0,a.resolve)(e)}((0,i.kO)()));function d(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>n,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function i(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function n(){return i()}function a(e=process.env,t=i(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,n())}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(2367));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=4871,e.ids=[4871],e.modules={1636:e=>{e.exports=require("@agent/core")},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")},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")},6903:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>v,patchFetch:()=>f,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>m,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{GET:()=>u,POST:()=>p});var o=r(7786),i=r(5042),n=r(2184),a=r(1890),c=r(9142);async function u(){return a.NextResponse.json((await c.a.list()).filter(e=>!e.id.startsWith("collaboration-")))}async function p(e){try{let t=await e.json();return a.NextResponse.json(await c.a.create(t.path??"",t.name),{status:201})}catch(t){let e=(0,c.r)(t);return a.NextResponse.json(e.body,{status:e.status})}}let l=new o.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/projects/route",pathname:"/api/projects",filename:"route",bundlePath:"app/api/projects/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/projects/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:h,serverHooks:m}=l,v="/api/projects/route";function f(){return(0,n.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},9142:(e,t,r)=>{r.d(t,{r:()=>d,a:()=>l});var s=r(612),o=r(1636),i=r(785),n=r(7561),a=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class p{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,a.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let l=new p(new o.SQLiteProjectStore((0,i.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,a.resolve)(o);let i=(0,a.join)(r,".agentroam");try{if((0,n.statSync)(i).isDirectory())return i}catch{}return(0,a.resolve)(e)}((0,i.kO)()));function d(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>n,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function i(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function n(){return i()}function a(e=process.env,t=i(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,n())}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(6903));module.exports=s})();
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var e={};e.id=3611,e.ids=[3611,9362],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")},5890:e=>{e.exports=require("better-sqlite3")},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")},7790:e=>{e.exports=require("assert")},8893:e=>{e.exports=require("buffer")},4770:e=>{e.exports=require("crypto")},2615:e=>{e.exports=require("http")},5240:e=>{e.exports=require("https")},8216:e=>{e.exports=require("net")},9801:e=>{e.exports=require("os")},6162:e=>{e.exports=require("stream")},2452:e=>{e.exports=require("tls")},4175:e=>{e.exports=require("tty")},7360:e=>{e.exports=require("url")},1764:e=>{e.exports=require("util")},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")},3769:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>b,patchFetch:()=>f,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>y,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{POST:()=>d});var i=r(7786),o=r(5042),n=r(2184),a=r(1890),u=r(9362),p=r(1079);async function d(e){try{(0,p.j)();let t=await e.json(),r=e.headers.get("x-agentroam-device-id"),s=(0,u.getWebPushService)().saveSubscription(r,{endpoint:t?.endpoint,keys:{p256dh:t?.keys?.p256dh,auth:t?.keys?.auth}});return a.NextResponse.json(s)}catch(t){let e=t?.status;return a.NextResponse.json({error:t instanceof Error?t.message:"Unable to save push subscription"},{status:e&&e>=400&&e<500?e:500})}}let c=new i.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/push/subscribe/route",pathname:"/api/push/subscribe",filename:"route",bundlePath:"app/api/push/subscribe/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/push/subscribe/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:l,staticGenerationAsyncStorage:h,serverHooks:y}=c,b="/api/push/subscribe/route";function f(){return(0,n.patchFetch)({serverHooks:y,staticGenerationAsyncStorage:h})}},1079:(e,t,r)=>{r.d(t,{j:()=>p});var s=r(7519),i=r(535),o=r(1636),n=r(1982);let a=!1,u=new o.NotificationDeduper;function p(){a||(a=!0,s.agentHost.setGlobalEventObserver(async(e,t,s)=>{try{if(!["ask_user","done","goal_updated","error"].includes(t.type))return;let{getWebPushService:i}=await Promise.all([r.e(6977),r.e(9362)]).then(r.bind(r,9362));if("ask_user"===t.type){i().notifySession({notificationId:`${e}:${t.questionId}:approval`,sessionId:e,kind:"approval",title:"需要你的审批",body:"string"==typeof t.question&&t.question.trim()?t.question.trim().slice(0,160):"会话正在等待确认",url:"/app/"});return}if("done"===t.type){if("goal"===s.source)return;let r=(0,o.resolveTaskNotificationPreferences)((0,n.dp)().read().taskNotifications),a=s.runId?(0,o.createTaskCompletionNotification)({sessionId:e,runId:s.runId,title:"任务已完成",finalText:t.finalText,outcome:"completed",source:"user"},r):null;a&&u.accept(a.notificationId)&&i().notifySession({...a,url:`/app/?session=${encodeURIComponent(e)}`});return}if("goal_updated"===t.type&&"complete"===t.goal.status){let r=(0,o.resolveTaskNotificationPreferences)((0,n.dp)().read().taskNotifications),s=(0,o.createTaskCompletionNotification)({sessionId:e,runId:`goal:${t.goal.createdAt}`,title:"目标已完成",finalText:t.goal.objective,outcome:"completed",source:"goal",goalFinished:!0},r);s&&u.accept(s.notificationId)&&i().notifySession({...s,url:`/app/?session=${encodeURIComponent(e)}`});return}"error"===t.type&&i().notifySession({notificationId:`${e}:${s.runId??"unknown"}:error`,sessionId:e,kind:"error",title:"会话出错",body:"string"==typeof t.message&&t.message.trim()?t.message.trim().slice(0,160):"运行失败",url:"/app/"})}catch(t){(0,i.L)().warn("web push notify failed",{sessionId:e,error:t instanceof Error?t.message:String(t)})}}))}},1489:(e,t,r)=>{r.d(t,{N:()=>u});var s=r(1636),i=r(2847),o=r(785);class n{constructor(){this.tasks=new s.CronTasks((0,o.kO)()),this.scheduler=new i.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)),i=e.sessionId;i&&await t.getSessionStore().get(i)||(i=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:i})),await s().enqueue(i,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 a=globalThis;function u(){return a.__sharedCronService??=new n}},9362:(e,t,r)=>{r.d(t,{getWebPushService:()=>l});var s=r(6005),i=r(7561),o=r(9411),n=r(5890),a=r(6977);let u=e=>JSON.stringify(e??null);class p{constructor(e,t=Date.now){this.now=t;let r=(0,o.resolve)(e,".agentroam-auth");(0,i.mkdirSync)(r,{recursive:!0,mode:448});let s=(0,o.join)(r,"push.sqlite");this.db=new n(s),(0,i.chmodSync)(s,384),this.db.pragma("busy_timeout = 5000"),this.db.exec(`
1
+ "use strict";(()=>{var e={};e.id=3611,e.ids=[3611,9362],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")},5890:e=>{e.exports=require("better-sqlite3")},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")},7790:e=>{e.exports=require("assert")},8893:e=>{e.exports=require("buffer")},4770:e=>{e.exports=require("crypto")},2615:e=>{e.exports=require("http")},5240:e=>{e.exports=require("https")},8216:e=>{e.exports=require("net")},9801:e=>{e.exports=require("os")},6162:e=>{e.exports=require("stream")},2452:e=>{e.exports=require("tls")},4175:e=>{e.exports=require("tty")},7360:e=>{e.exports=require("url")},1764:e=>{e.exports=require("util")},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")},9163:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>b,patchFetch:()=>f,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>y,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{POST:()=>d});var i=r(7786),n=r(5042),o=r(2184),a=r(1890),u=r(9362),p=r(1079);async function d(e){try{(0,p.j)();let t=await e.json(),r=e.headers.get("x-agentroam-device-id"),s=(0,u.getWebPushService)().saveSubscription(r,{endpoint:t?.endpoint,keys:{p256dh:t?.keys?.p256dh,auth:t?.keys?.auth}});return a.NextResponse.json(s)}catch(t){let e=t?.status;return a.NextResponse.json({error:t instanceof Error?t.message:"Unable to save push subscription"},{status:e&&e>=400&&e<500?e:500})}}let c=new i.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/push/subscribe/route",pathname:"/api/push/subscribe",filename:"route",bundlePath:"app/api/push/subscribe/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/push/subscribe/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:l,staticGenerationAsyncStorage:h,serverHooks:y}=c,b="/api/push/subscribe/route";function f(){return(0,o.patchFetch)({serverHooks:y,staticGenerationAsyncStorage:h})}},1079:(e,t,r)=>{r.d(t,{j:()=>p});var s=r(7519),i=r(535),n=r(1636),o=r(1982);let a=!1,u=new n.NotificationDeduper;function p(){a||(a=!0,s.agentHost.setGlobalEventObserver(async(e,t,s)=>{try{if(!["ask_user","done","goal_updated","error"].includes(t.type))return;let{getWebPushService:i}=await Promise.all([r.e(6977),r.e(9362)]).then(r.bind(r,9362));if("ask_user"===t.type){i().notifySession({notificationId:`${e}:${t.questionId}:approval`,sessionId:e,kind:"approval",title:"需要你的审批",body:"string"==typeof t.question&&t.question.trim()?t.question.trim().slice(0,160):"会话正在等待确认",url:"/app/"});return}if("done"===t.type){if("goal"===s.source)return;let r=(0,n.resolveTaskNotificationPreferences)((0,o.dp)().read().taskNotifications),a=s.runId?(0,n.createTaskCompletionNotification)({sessionId:e,runId:s.runId,title:"任务已完成",finalText:t.finalText,outcome:"completed",source:"user"},r):null;a&&u.accept(a.notificationId)&&i().notifySession({...a,url:`/app/?session=${encodeURIComponent(e)}`});return}if("goal_updated"===t.type&&"complete"===t.goal.status){let r=(0,n.resolveTaskNotificationPreferences)((0,o.dp)().read().taskNotifications),s=(0,n.createTaskCompletionNotification)({sessionId:e,runId:`goal:${t.goal.createdAt}`,title:"目标已完成",finalText:t.goal.objective,outcome:"completed",source:"goal",goalFinished:!0},r);s&&u.accept(s.notificationId)&&i().notifySession({...s,url:`/app/?session=${encodeURIComponent(e)}`});return}"error"===t.type&&i().notifySession({notificationId:`${e}:${s.runId??"unknown"}:error`,sessionId:e,kind:"error",title:"会话出错",body:"string"==typeof t.message&&t.message.trim()?t.message.trim().slice(0,160):"运行失败",url:"/app/"})}catch(t){(0,i.L)().warn("web push notify failed",{sessionId:e,error:t instanceof Error?t.message:String(t)})}}))}},1489:(e,t,r)=>{r.d(t,{N:()=>u});var s=r(1636),i=r(2847),n=r(785);class o{constructor(){this.tasks=new s.CronTasks((0,n.kO)()),this.scheduler=new i.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)),i=e.sessionId;i&&await t.getSessionStore().get(i)||(i=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:i})),await s().enqueue(i,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 a=globalThis;function u(){return a.__sharedCronService??=new o}},9362:(e,t,r)=>{r.d(t,{getWebPushService:()=>l});var s=r(6005),i=r(7561),n=r(9411),o=r(5890),a=r(6977);let u=e=>JSON.stringify(e??null);class p{constructor(e,t=Date.now){this.now=t;let r=(0,n.resolve)(e,".agentroam-auth");(0,i.mkdirSync)(r,{recursive:!0,mode:448});let s=(0,n.join)(r,"push.sqlite");this.db=new o(s),(0,i.chmodSync)(s,384),this.db.pragma("busy_timeout = 5000"),this.db.exec(`
2
2
  CREATE TABLE IF NOT EXISTS push_keys (id INTEGER PRIMARY KEY CHECK(id=1), public_key TEXT NOT NULL, private_key TEXT NOT NULL);
3
3
  CREATE TABLE IF NOT EXISTS push_subscriptions (
4
4
  endpoint_hash TEXT PRIMARY KEY,
@@ -12,4 +12,4 @@
12
12
  INSERT INTO push_subscriptions (endpoint_hash, endpoint, p256dh, auth, device_id, created)
13
13
  VALUES (?, ?, ?, ?, ?, ?)
14
14
  ON CONFLICT(endpoint_hash) DO UPDATE SET p256dh=excluded.p256dh, auth=excluded.auth, device_id=excluded.device_id
15
- `).run(d(r),r,s,i,"string"==typeof e?e:null,this.now()),{ok:!0}}deleteSubscription(e){if("string"!=typeof e||!e)throw Object.assign(Error("Endpoint required"),{status:400});return this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e)),{ok:!0}}listSubscriptions(){return this.db.prepare("SELECT endpoint, p256dh, auth, device_id FROM push_subscriptions").all().map(e=>({endpoint:e.endpoint,keys:{p256dh:e.p256dh,auth:e.auth},deviceId:e.device_id}))}notifySession({notificationId:e,sessionId:t,title:r,body:s,url:i}){let o=e||`${t}:notification`;if(!this.delivered.has(o)){for(this.delivered.add(o);this.delivered.size>500;)this.delivered.delete(this.delivered.values().next().value);this.sendToAll({notificationId:o,sessionId:t,title:r,body:s,tag:o,url:i})}}async sendToAll(e){let t=this.listSubscriptions();await Promise.allSettled(t.map(t=>this.send(t,e)))}async send(e,t){try{a.setVapidDetails("mailto:agentroam@localhost",this.keys.publicKey,this.keys.privateKey),await a.sendNotification(e,u(t),{TTL:3600})}catch(r){let t=r?.statusCode;(404===t||410===t)&&this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e.endpoint))}}close(){this.db.close()}}function d(e){return(0,s.createHash)("sha256").update(e).digest("hex")}let c=null;function l(e=process.env.AGENT_DATA_DIR?.trim()||process.cwd()){return c??=new p(e)}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,6977,4621,7519],()=>r(3769));module.exports=s})();
15
+ `).run(d(r),r,s,i,"string"==typeof e?e:null,this.now()),{ok:!0}}deleteSubscription(e){if("string"!=typeof e||!e)throw Object.assign(Error("Endpoint required"),{status:400});return this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e)),{ok:!0}}listSubscriptions(){return this.db.prepare("SELECT endpoint, p256dh, auth, device_id FROM push_subscriptions").all().map(e=>({endpoint:e.endpoint,keys:{p256dh:e.p256dh,auth:e.auth},deviceId:e.device_id}))}notifySession({notificationId:e,sessionId:t,title:r,body:s,url:i}){let n=e||`${t}:notification`;if(!this.delivered.has(n)){for(this.delivered.add(n);this.delivered.size>500;)this.delivered.delete(this.delivered.values().next().value);this.sendToAll({notificationId:n,sessionId:t,title:r,body:s,tag:n,url:i})}}async sendToAll(e){let t=this.listSubscriptions();await Promise.allSettled(t.map(t=>this.send(t,e)))}async send(e,t){try{a.setVapidDetails("mailto:agentroam@localhost",this.keys.publicKey,this.keys.privateKey),await a.sendNotification(e,u(t),{TTL:3600})}catch(r){let t=r?.statusCode;(404===t||410===t)&&this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e.endpoint))}}close(){this.db.close()}}function d(e){return(0,s.createHash)("sha256").update(e).digest("hex")}let c=null;function l(e=process.env.AGENT_DATA_DIR?.trim()||process.cwd()){return c??=new p(e)}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,6977,4621,7519],()=>r(9163));module.exports=s})();
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var e={};e.id=6163,e.ids=[6163,9362],e.modules={5890:e=>{e.exports=require("better-sqlite3")},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")},7790:e=>{e.exports=require("assert")},8893:e=>{e.exports=require("buffer")},4770:e=>{e.exports=require("crypto")},2615:e=>{e.exports=require("http")},5240:e=>{e.exports=require("https")},8216:e=>{e.exports=require("net")},9801:e=>{e.exports=require("os")},6162:e=>{e.exports=require("stream")},2452:e=>{e.exports=require("tls")},4175:e=>{e.exports=require("tty")},7360:e=>{e.exports=require("url")},1764:e=>{e.exports=require("util")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},9411:e=>{e.exports=require("node:path")},6773:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>b,patchFetch:()=>y,requestAsyncStorage:()=>h,routeModule:()=>d,serverHooks:()=>l,staticGenerationAsyncStorage:()=>c});var r={};s.r(r),s.d(r,{POST:()=>a});var i=s(7786),n=s(5042),p=s(2184),o=s(1890),u=s(9362);async function a(e){try{let t=await e.json();return o.NextResponse.json((0,u.getWebPushService)().deleteSubscription(t?.endpoint))}catch(t){let e=t?.status;return o.NextResponse.json({error:t instanceof Error?t.message:"Unable to remove push subscription"},{status:e&&e>=400&&e<500?e:500})}}let d=new i.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/push/unsubscribe/route",pathname:"/api/push/unsubscribe",filename:"route",bundlePath:"app/api/push/unsubscribe/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/push/unsubscribe/route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:h,staticGenerationAsyncStorage:c,serverHooks:l}=d,b="/api/push/unsubscribe/route";function y(){return(0,p.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:c})}},9362:(e,t,s)=>{s.d(t,{getWebPushService:()=>c});var r=s(6005),i=s(7561),n=s(9411),p=s(5890),o=s(6977);let u=e=>JSON.stringify(e??null);class a{constructor(e,t=Date.now){this.now=t;let s=(0,n.resolve)(e,".agentroam-auth");(0,i.mkdirSync)(s,{recursive:!0,mode:448});let r=(0,n.join)(s,"push.sqlite");this.db=new p(r),(0,i.chmodSync)(r,384),this.db.pragma("busy_timeout = 5000"),this.db.exec(`
1
+ "use strict";(()=>{var e={};e.id=6163,e.ids=[6163,9362],e.modules={5890:e=>{e.exports=require("better-sqlite3")},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")},7790:e=>{e.exports=require("assert")},8893:e=>{e.exports=require("buffer")},4770:e=>{e.exports=require("crypto")},2615:e=>{e.exports=require("http")},5240:e=>{e.exports=require("https")},8216:e=>{e.exports=require("net")},9801:e=>{e.exports=require("os")},6162:e=>{e.exports=require("stream")},2452:e=>{e.exports=require("tls")},4175:e=>{e.exports=require("tty")},7360:e=>{e.exports=require("url")},1764:e=>{e.exports=require("util")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},9411:e=>{e.exports=require("node:path")},7869:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>b,patchFetch:()=>y,requestAsyncStorage:()=>h,routeModule:()=>d,serverHooks:()=>l,staticGenerationAsyncStorage:()=>c});var s={};r.r(s),r.d(s,{POST:()=>a});var i=r(7786),n=r(5042),p=r(2184),u=r(1890),o=r(9362);async function a(e){try{let t=await e.json();return u.NextResponse.json((0,o.getWebPushService)().deleteSubscription(t?.endpoint))}catch(t){let e=t?.status;return u.NextResponse.json({error:t instanceof Error?t.message:"Unable to remove push subscription"},{status:e&&e>=400&&e<500?e:500})}}let d=new i.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/push/unsubscribe/route",pathname:"/api/push/unsubscribe",filename:"route",bundlePath:"app/api/push/unsubscribe/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/push/unsubscribe/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:h,staticGenerationAsyncStorage:c,serverHooks:l}=d,b="/api/push/unsubscribe/route";function y(){return(0,p.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:c})}},9362:(e,t,r)=>{r.d(t,{getWebPushService:()=>c});var s=r(6005),i=r(7561),n=r(9411),p=r(5890),u=r(6977);let o=e=>JSON.stringify(e??null);class a{constructor(e,t=Date.now){this.now=t;let r=(0,n.resolve)(e,".agentroam-auth");(0,i.mkdirSync)(r,{recursive:!0,mode:448});let s=(0,n.join)(r,"push.sqlite");this.db=new p(s),(0,i.chmodSync)(s,384),this.db.pragma("busy_timeout = 5000"),this.db.exec(`
2
2
  CREATE TABLE IF NOT EXISTS push_keys (id INTEGER PRIMARY KEY CHECK(id=1), public_key TEXT NOT NULL, private_key TEXT NOT NULL);
3
3
  CREATE TABLE IF NOT EXISTS push_subscriptions (
4
4
  endpoint_hash TEXT PRIMARY KEY,
@@ -8,8 +8,8 @@
8
8
  device_id TEXT,
9
9
  created INTEGER NOT NULL
10
10
  );
11
- `),this.keys=this.loadKeys(),this.delivered=new Set}loadKeys(){let e=this.db.prepare("SELECT public_key, private_key FROM push_keys WHERE id=1").get();if(e)return{publicKey:e.public_key,privateKey:e.private_key};let t=o.generateVAPIDKeys();return this.db.prepare("INSERT INTO push_keys VALUES (1, ?, ?)").run(t.publicKey,t.privateKey),{publicKey:t.publicKey,privateKey:t.privateKey}}getPublicKey(){return this.keys.publicKey}saveSubscription(e,t){let s="string"==typeof t?.endpoint?t.endpoint:"",r=t?.keys?.p256dh,i=t?.keys?.auth;if(!s.startsWith("https://")||"string"!=typeof r||!r||"string"!=typeof i||!i)throw Object.assign(Error("Invalid push subscription"),{status:400});return this.db.prepare(`
11
+ `),this.keys=this.loadKeys(),this.delivered=new Set}loadKeys(){let e=this.db.prepare("SELECT public_key, private_key FROM push_keys WHERE id=1").get();if(e)return{publicKey:e.public_key,privateKey:e.private_key};let t=u.generateVAPIDKeys();return this.db.prepare("INSERT INTO push_keys VALUES (1, ?, ?)").run(t.publicKey,t.privateKey),{publicKey:t.publicKey,privateKey:t.privateKey}}getPublicKey(){return this.keys.publicKey}saveSubscription(e,t){let r="string"==typeof t?.endpoint?t.endpoint:"",s=t?.keys?.p256dh,i=t?.keys?.auth;if(!r.startsWith("https://")||"string"!=typeof s||!s||"string"!=typeof i||!i)throw Object.assign(Error("Invalid push subscription"),{status:400});return this.db.prepare(`
12
12
  INSERT INTO push_subscriptions (endpoint_hash, endpoint, p256dh, auth, device_id, created)
13
13
  VALUES (?, ?, ?, ?, ?, ?)
14
14
  ON CONFLICT(endpoint_hash) DO UPDATE SET p256dh=excluded.p256dh, auth=excluded.auth, device_id=excluded.device_id
15
- `).run(d(s),s,r,i,"string"==typeof e?e:null,this.now()),{ok:!0}}deleteSubscription(e){if("string"!=typeof e||!e)throw Object.assign(Error("Endpoint required"),{status:400});return this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e)),{ok:!0}}listSubscriptions(){return this.db.prepare("SELECT endpoint, p256dh, auth, device_id FROM push_subscriptions").all().map(e=>({endpoint:e.endpoint,keys:{p256dh:e.p256dh,auth:e.auth},deviceId:e.device_id}))}notifySession({notificationId:e,sessionId:t,title:s,body:r,url:i}){let n=e||`${t}:notification`;if(!this.delivered.has(n)){for(this.delivered.add(n);this.delivered.size>500;)this.delivered.delete(this.delivered.values().next().value);this.sendToAll({notificationId:n,sessionId:t,title:s,body:r,tag:n,url:i})}}async sendToAll(e){let t=this.listSubscriptions();await Promise.allSettled(t.map(t=>this.send(t,e)))}async send(e,t){try{o.setVapidDetails("mailto:agentroam@localhost",this.keys.publicKey,this.keys.privateKey),await o.sendNotification(e,u(t),{TTL:3600})}catch(s){let t=s?.statusCode;(404===t||410===t)&&this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e.endpoint))}}close(){this.db.close()}}function d(e){return(0,r.createHash)("sha256").update(e).digest("hex")}let h=null;function c(e=process.env.AGENT_DATA_DIR?.trim()||process.cwd()){return h??=new a(e)}}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[8375,6703,6977],()=>s(6773));module.exports=r})();
15
+ `).run(d(r),r,s,i,"string"==typeof e?e:null,this.now()),{ok:!0}}deleteSubscription(e){if("string"!=typeof e||!e)throw Object.assign(Error("Endpoint required"),{status:400});return this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e)),{ok:!0}}listSubscriptions(){return this.db.prepare("SELECT endpoint, p256dh, auth, device_id FROM push_subscriptions").all().map(e=>({endpoint:e.endpoint,keys:{p256dh:e.p256dh,auth:e.auth},deviceId:e.device_id}))}notifySession({notificationId:e,sessionId:t,title:r,body:s,url:i}){let n=e||`${t}:notification`;if(!this.delivered.has(n)){for(this.delivered.add(n);this.delivered.size>500;)this.delivered.delete(this.delivered.values().next().value);this.sendToAll({notificationId:n,sessionId:t,title:r,body:s,tag:n,url:i})}}async sendToAll(e){let t=this.listSubscriptions();await Promise.allSettled(t.map(t=>this.send(t,e)))}async send(e,t){try{u.setVapidDetails("mailto:agentroam@localhost",this.keys.publicKey,this.keys.privateKey),await u.sendNotification(e,o(t),{TTL:3600})}catch(r){let t=r?.statusCode;(404===t||410===t)&&this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e.endpoint))}}close(){this.db.close()}}function d(e){return(0,s.createHash)("sha256").update(e).digest("hex")}let h=null;function c(e=process.env.AGENT_DATA_DIR?.trim()||process.cwd()){return h??=new a(e)}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,6977],()=>r(7869));module.exports=s})();
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var e={};e.id=3807,e.ids=[3807,9362],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")},5890:e=>{e.exports=require("better-sqlite3")},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")},7790:e=>{e.exports=require("assert")},8893:e=>{e.exports=require("buffer")},4770:e=>{e.exports=require("crypto")},2615:e=>{e.exports=require("http")},5240:e=>{e.exports=require("https")},8216:e=>{e.exports=require("net")},9801:e=>{e.exports=require("os")},6162:e=>{e.exports=require("stream")},2452:e=>{e.exports=require("tls")},4175:e=>{e.exports=require("tty")},7360:e=>{e.exports=require("url")},1764:e=>{e.exports=require("util")},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")},9566:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>g,requestAsyncStorage:()=>c,routeModule:()=>l,serverHooks:()=>y,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{GET:()=>d});var i=r(7786),o=r(5042),n=r(2184),a=r(1890),p=r(9362),u=r(1079);async function d(){try{return(0,u.j)(),a.NextResponse.json({publicKey:(0,p.getWebPushService)().getPublicKey()})}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Push is unavailable"},{status:500})}}let l=new i.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/push/vapid/route",pathname:"/api/push/vapid",filename:"route",bundlePath:"app/api/push/vapid/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/push/vapid/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:c,staticGenerationAsyncStorage:h,serverHooks:y}=l,f="/api/push/vapid/route";function g(){return(0,n.patchFetch)({serverHooks:y,staticGenerationAsyncStorage:h})}},1079:(e,t,r)=>{r.d(t,{j:()=>u});var s=r(7519),i=r(535),o=r(1636),n=r(1982);let a=!1,p=new o.NotificationDeduper;function u(){a||(a=!0,s.agentHost.setGlobalEventObserver(async(e,t,s)=>{try{if(!["ask_user","done","goal_updated","error"].includes(t.type))return;let{getWebPushService:i}=await Promise.all([r.e(6977),r.e(9362)]).then(r.bind(r,9362));if("ask_user"===t.type){i().notifySession({notificationId:`${e}:${t.questionId}:approval`,sessionId:e,kind:"approval",title:"需要你的审批",body:"string"==typeof t.question&&t.question.trim()?t.question.trim().slice(0,160):"会话正在等待确认",url:"/app/"});return}if("done"===t.type){if("goal"===s.source)return;let r=(0,o.resolveTaskNotificationPreferences)((0,n.dp)().read().taskNotifications),a=s.runId?(0,o.createTaskCompletionNotification)({sessionId:e,runId:s.runId,title:"任务已完成",finalText:t.finalText,outcome:"completed",source:"user"},r):null;a&&p.accept(a.notificationId)&&i().notifySession({...a,url:`/app/?session=${encodeURIComponent(e)}`});return}if("goal_updated"===t.type&&"complete"===t.goal.status){let r=(0,o.resolveTaskNotificationPreferences)((0,n.dp)().read().taskNotifications),s=(0,o.createTaskCompletionNotification)({sessionId:e,runId:`goal:${t.goal.createdAt}`,title:"目标已完成",finalText:t.goal.objective,outcome:"completed",source:"goal",goalFinished:!0},r);s&&p.accept(s.notificationId)&&i().notifySession({...s,url:`/app/?session=${encodeURIComponent(e)}`});return}"error"===t.type&&i().notifySession({notificationId:`${e}:${s.runId??"unknown"}:error`,sessionId:e,kind:"error",title:"会话出错",body:"string"==typeof t.message&&t.message.trim()?t.message.trim().slice(0,160):"运行失败",url:"/app/"})}catch(t){(0,i.L)().warn("web push notify failed",{sessionId:e,error:t instanceof Error?t.message:String(t)})}}))}},1489:(e,t,r)=>{r.d(t,{N:()=>p});var s=r(1636),i=r(2847),o=r(785);class n{constructor(){this.tasks=new s.CronTasks((0,o.kO)()),this.scheduler=new i.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)),i=e.sessionId;i&&await t.getSessionStore().get(i)||(i=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:i})),await s().enqueue(i,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 a=globalThis;function p(){return a.__sharedCronService??=new n}},9362:(e,t,r)=>{r.d(t,{getWebPushService:()=>c});var s=r(6005),i=r(7561),o=r(9411),n=r(5890),a=r(6977);let p=e=>JSON.stringify(e??null);class u{constructor(e,t=Date.now){this.now=t;let r=(0,o.resolve)(e,".agentroam-auth");(0,i.mkdirSync)(r,{recursive:!0,mode:448});let s=(0,o.join)(r,"push.sqlite");this.db=new n(s),(0,i.chmodSync)(s,384),this.db.pragma("busy_timeout = 5000"),this.db.exec(`
1
+ "use strict";(()=>{var e={};e.id=3807,e.ids=[3807,9362],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")},5890:e=>{e.exports=require("better-sqlite3")},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")},7790:e=>{e.exports=require("assert")},8893:e=>{e.exports=require("buffer")},4770:e=>{e.exports=require("crypto")},2615:e=>{e.exports=require("http")},5240:e=>{e.exports=require("https")},8216:e=>{e.exports=require("net")},9801:e=>{e.exports=require("os")},6162:e=>{e.exports=require("stream")},2452:e=>{e.exports=require("tls")},4175:e=>{e.exports=require("tty")},7360:e=>{e.exports=require("url")},1764:e=>{e.exports=require("util")},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")},7832:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>g,requestAsyncStorage:()=>c,routeModule:()=>l,serverHooks:()=>y,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{GET:()=>d});var i=r(7786),o=r(5042),n=r(2184),a=r(1890),p=r(9362),u=r(1079);async function d(){try{return(0,u.j)(),a.NextResponse.json({publicKey:(0,p.getWebPushService)().getPublicKey()})}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"Push is unavailable"},{status:500})}}let l=new i.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/push/vapid/route",pathname:"/api/push/vapid",filename:"route",bundlePath:"app/api/push/vapid/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/push/vapid/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:c,staticGenerationAsyncStorage:h,serverHooks:y}=l,f="/api/push/vapid/route";function g(){return(0,n.patchFetch)({serverHooks:y,staticGenerationAsyncStorage:h})}},1079:(e,t,r)=>{r.d(t,{j:()=>u});var s=r(7519),i=r(535),o=r(1636),n=r(1982);let a=!1,p=new o.NotificationDeduper;function u(){a||(a=!0,s.agentHost.setGlobalEventObserver(async(e,t,s)=>{try{if(!["ask_user","done","goal_updated","error"].includes(t.type))return;let{getWebPushService:i}=await Promise.all([r.e(6977),r.e(9362)]).then(r.bind(r,9362));if("ask_user"===t.type){i().notifySession({notificationId:`${e}:${t.questionId}:approval`,sessionId:e,kind:"approval",title:"需要你的审批",body:"string"==typeof t.question&&t.question.trim()?t.question.trim().slice(0,160):"会话正在等待确认",url:"/app/"});return}if("done"===t.type){if("goal"===s.source)return;let r=(0,o.resolveTaskNotificationPreferences)((0,n.dp)().read().taskNotifications),a=s.runId?(0,o.createTaskCompletionNotification)({sessionId:e,runId:s.runId,title:"任务已完成",finalText:t.finalText,outcome:"completed",source:"user"},r):null;a&&p.accept(a.notificationId)&&i().notifySession({...a,url:`/app/?session=${encodeURIComponent(e)}`});return}if("goal_updated"===t.type&&"complete"===t.goal.status){let r=(0,o.resolveTaskNotificationPreferences)((0,n.dp)().read().taskNotifications),s=(0,o.createTaskCompletionNotification)({sessionId:e,runId:`goal:${t.goal.createdAt}`,title:"目标已完成",finalText:t.goal.objective,outcome:"completed",source:"goal",goalFinished:!0},r);s&&p.accept(s.notificationId)&&i().notifySession({...s,url:`/app/?session=${encodeURIComponent(e)}`});return}"error"===t.type&&i().notifySession({notificationId:`${e}:${s.runId??"unknown"}:error`,sessionId:e,kind:"error",title:"会话出错",body:"string"==typeof t.message&&t.message.trim()?t.message.trim().slice(0,160):"运行失败",url:"/app/"})}catch(t){(0,i.L)().warn("web push notify failed",{sessionId:e,error:t instanceof Error?t.message:String(t)})}}))}},1489:(e,t,r)=>{r.d(t,{N:()=>p});var s=r(1636),i=r(2847),o=r(785);class n{constructor(){this.tasks=new s.CronTasks((0,o.kO)()),this.scheduler=new i.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)),i=e.sessionId;i&&await t.getSessionStore().get(i)||(i=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:i})),await s().enqueue(i,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 a=globalThis;function p(){return a.__sharedCronService??=new n}},9362:(e,t,r)=>{r.d(t,{getWebPushService:()=>c});var s=r(6005),i=r(7561),o=r(9411),n=r(5890),a=r(6977);let p=e=>JSON.stringify(e??null);class u{constructor(e,t=Date.now){this.now=t;let r=(0,o.resolve)(e,".agentroam-auth");(0,i.mkdirSync)(r,{recursive:!0,mode:448});let s=(0,o.join)(r,"push.sqlite");this.db=new n(s),(0,i.chmodSync)(s,384),this.db.pragma("busy_timeout = 5000"),this.db.exec(`
2
2
  CREATE TABLE IF NOT EXISTS push_keys (id INTEGER PRIMARY KEY CHECK(id=1), public_key TEXT NOT NULL, private_key TEXT NOT NULL);
3
3
  CREATE TABLE IF NOT EXISTS push_subscriptions (
4
4
  endpoint_hash TEXT PRIMARY KEY,
@@ -12,4 +12,4 @@
12
12
  INSERT INTO push_subscriptions (endpoint_hash, endpoint, p256dh, auth, device_id, created)
13
13
  VALUES (?, ?, ?, ?, ?, ?)
14
14
  ON CONFLICT(endpoint_hash) DO UPDATE SET p256dh=excluded.p256dh, auth=excluded.auth, device_id=excluded.device_id
15
- `).run(d(r),r,s,i,"string"==typeof e?e:null,this.now()),{ok:!0}}deleteSubscription(e){if("string"!=typeof e||!e)throw Object.assign(Error("Endpoint required"),{status:400});return this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e)),{ok:!0}}listSubscriptions(){return this.db.prepare("SELECT endpoint, p256dh, auth, device_id FROM push_subscriptions").all().map(e=>({endpoint:e.endpoint,keys:{p256dh:e.p256dh,auth:e.auth},deviceId:e.device_id}))}notifySession({notificationId:e,sessionId:t,title:r,body:s,url:i}){let o=e||`${t}:notification`;if(!this.delivered.has(o)){for(this.delivered.add(o);this.delivered.size>500;)this.delivered.delete(this.delivered.values().next().value);this.sendToAll({notificationId:o,sessionId:t,title:r,body:s,tag:o,url:i})}}async sendToAll(e){let t=this.listSubscriptions();await Promise.allSettled(t.map(t=>this.send(t,e)))}async send(e,t){try{a.setVapidDetails("mailto:agentroam@localhost",this.keys.publicKey,this.keys.privateKey),await a.sendNotification(e,p(t),{TTL:3600})}catch(r){let t=r?.statusCode;(404===t||410===t)&&this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e.endpoint))}}close(){this.db.close()}}function d(e){return(0,s.createHash)("sha256").update(e).digest("hex")}let l=null;function c(e=process.env.AGENT_DATA_DIR?.trim()||process.cwd()){return l??=new u(e)}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,6977,4621,7519],()=>r(9566));module.exports=s})();
15
+ `).run(d(r),r,s,i,"string"==typeof e?e:null,this.now()),{ok:!0}}deleteSubscription(e){if("string"!=typeof e||!e)throw Object.assign(Error("Endpoint required"),{status:400});return this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e)),{ok:!0}}listSubscriptions(){return this.db.prepare("SELECT endpoint, p256dh, auth, device_id FROM push_subscriptions").all().map(e=>({endpoint:e.endpoint,keys:{p256dh:e.p256dh,auth:e.auth},deviceId:e.device_id}))}notifySession({notificationId:e,sessionId:t,title:r,body:s,url:i}){let o=e||`${t}:notification`;if(!this.delivered.has(o)){for(this.delivered.add(o);this.delivered.size>500;)this.delivered.delete(this.delivered.values().next().value);this.sendToAll({notificationId:o,sessionId:t,title:r,body:s,tag:o,url:i})}}async sendToAll(e){let t=this.listSubscriptions();await Promise.allSettled(t.map(t=>this.send(t,e)))}async send(e,t){try{a.setVapidDetails("mailto:agentroam@localhost",this.keys.publicKey,this.keys.privateKey),await a.sendNotification(e,p(t),{TTL:3600})}catch(r){let t=r?.statusCode;(404===t||410===t)&&this.db.prepare("DELETE FROM push_subscriptions WHERE endpoint_hash=?").run(d(e.endpoint))}}close(){this.db.close()}}function d(e){return(0,s.createHash)("sha256").update(e).digest("hex")}let l=null;function c(e=process.env.AGENT_DATA_DIR?.trim()||process.cwd()){return l??=new u(e)}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,6977,4621,7519],()=>r(7832));module.exports=s})();
@@ -1 +1 @@
1
- {"publicKey":"BPtMj1KqIY8pkcs-kI9ptx_d5iPVXVxRLh7ADlGKQY9_XaWJpVPXugoGmSKfpP-hrgJMPIVaWA3xxzg7NppCid0"}
1
+ {"publicKey":"BExanSiKrQb1ye8Oh0vHzs6nv7fX7AApplQ4LFWHn5aGiIz7aiHxE4eCiDCTS_kZ2S-Z2shDmDtBUQBXXAHWilw"}
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=2166,e.ids=[2166],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")},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")},8494:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>f,patchFetch:()=>g,requestAsyncStorage:()=>d,routeModule:()=>p,serverHooks:()=>m,staticGenerationAsyncStorage:()=>h});var s={};t.r(s),t.d(s,{POST:()=>l});var o=t(7786),n=t(5042),u=t(2184),a=t(1890),i=t(7519);function c(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}async function l(e){let r;try{r=await e.json()}catch{return a.NextResponse.json({error:"Invalid JSON"},{status:400})}let t=function(e){if(!c(e))return{success:!1,error:"Request body must be an object"};if("string"!=typeof e.projectId||0===e.projectId.length)return{success:!1,error:"projectId is required"};if(!Array.isArray(e.tools)||0===e.tools.length)return{success:!1,error:"tools must contain at least one tool"};let r=[];for(let o of e.tools){var t,s;if(!c(o))return{success:!1,error:"tool must be an object"};if("string"!=typeof o.scheme||0===o.scheme.length)return{success:!1,error:"tool.scheme is required"};if("string"!=typeof o.purpose||0===o.purpose.length)return{success:!1,error:"tool.purpose is required"};if("string"!=typeof o.url)return{success:!1,error:"tool.url is required"};try{new URL(o.url)}catch{return{success:!1,error:"tool.url must be a valid URL"}}if(void 0!==o.method&&"POST"!==o.method)return{success:!1,error:"tool.method must be POST"};let e=void 0===o.headers?{}:c(t=o.headers)&&Object.values(t).every(e=>"string"==typeof e)?t:null,n=void 0===o.inputSchema?{}:o.inputSchema,u=void 0===o.outputSchema?{}:o.outputSchema,a=void 0===o.examples?[]:Array.isArray(s=o.examples)&&s.every(c)?s:null,i=void 0===o.auth?{}:o.auth;if(!e)return{success:!1,error:"tool.headers must be a string record"};if(!c(n))return{success:!1,error:"tool.inputSchema must be an object"};if(!c(u))return{success:!1,error:"tool.outputSchema must be an object"};if(!a)return{success:!1,error:"tool.examples must be an array of objects"};if(!c(i))return{success:!1,error:"tool.auth must be an object"};r.push({scheme:o.scheme,purpose:o.purpose,url:o.url,method:"POST",headers:e,inputSchema:n,outputSchema:u,examples:a,auth:i})}return{success:!0,data:{projectId:e.projectId,tools:r}}}(r);if(!t.success)return a.NextResponse.json({error:t.error},{status:400});if(!function(e,r){let t=e.headers.get("authorization");if([process.env.AGENT_REMOTE_TOOLS_REGISTER_TOKEN,process.env.AGENT_SDK_REGISTRATION_TOKEN].filter(e=>!!e).some(e=>t===`Bearer ${e}`))return!0;let s=process.env.AGENT_SDK_TOKEN;return!!s&&t===`Bearer ${s}`&&function(e,r){var t;let s;if(!process.env.AGENT_PROJECT_ID)return!1;let o=e.headers.get("origin");if(!o)return!1;try{s=new URL(o).origin}catch{return!1}let n=(t=r.projectId,process.env.AGENT_PROJECT_ID&&t===process.env.AGENT_PROJECT_ID?process.env.AGENT_SDK_ALLOWED_ORIGIN??process.env.AGENT_BROWSER_ORIGIN??null:null);if(n)try{if(new URL(n).origin!==s)return!1}catch{return!1}else if(process.env.AGENT_PROJECT_ID)return!1;return r.tools.every(e=>{try{return new URL(e.url).origin===s}catch{return!1}})}(e,r)}(e,t.data))return a.NextResponse.json({error:"UNAUTHORIZED"},{status:401});let s=i.agentHost.registerRemoteTools(t.data.projectId,t.data.tools);return a.NextResponse.json({ok:!0,tools:s.map(e=>({scheme:e.scheme,purpose:e.purpose}))})}let p=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/remote-tools/register/route",pathname:"/api/remote-tools/register",filename:"route",bundlePath:"app/api/remote-tools/register/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/remote-tools/register/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:h,serverHooks:m}=p,f="/api/remote-tools/register/route";function g(){return(0,u.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},1489:(e,r,t)=>{t.d(r,{N:()=>i});var s=t(1636),o=t(2847),n=t(785);class u{constructor(){this.tasks=new s.CronTasks((0,n.kO)()),this.scheduler=new o.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:r}=await t.e(7519).then(t.bind(t,7519)),{getCustomerGoalCoordinator:s}=await Promise.all([t.e(7519),t.e(732)]).then(t.bind(t,732)),o=e.sessionId;o&&await r.getSessionStore().get(o)||(o=(await r.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:o})),await s().enqueue(o,e.prompt)}call(e,r){let t=String(r[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof r[0]||"string"!=typeof r[1]||!r[1].trim())throw Error("cron and prompt required");let e=r[2]&&"object"==typeof r[2]?r[2]:{};return this.tasks.create({cron:r[0],prompt:r[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(t);case"cronResume":return this.tasks.resume(t);case"cronDelete":return this.tasks.delete(t);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let a=globalThis;function i(){return a.__sharedCronService??=new u}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8375,6703,4621,7519],()=>t(8494));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=2166,e.ids=[2166],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")},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")},3009:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>f,patchFetch:()=>g,requestAsyncStorage:()=>d,routeModule:()=>p,serverHooks:()=>m,staticGenerationAsyncStorage:()=>h});var s={};t.r(s),t.d(s,{POST:()=>l});var o=t(7786),n=t(5042),u=t(2184),a=t(1890),i=t(7519);function c(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}async function l(e){let r;try{r=await e.json()}catch{return a.NextResponse.json({error:"Invalid JSON"},{status:400})}let t=function(e){if(!c(e))return{success:!1,error:"Request body must be an object"};if("string"!=typeof e.projectId||0===e.projectId.length)return{success:!1,error:"projectId is required"};if(!Array.isArray(e.tools)||0===e.tools.length)return{success:!1,error:"tools must contain at least one tool"};let r=[];for(let o of e.tools){var t,s;if(!c(o))return{success:!1,error:"tool must be an object"};if("string"!=typeof o.scheme||0===o.scheme.length)return{success:!1,error:"tool.scheme is required"};if("string"!=typeof o.purpose||0===o.purpose.length)return{success:!1,error:"tool.purpose is required"};if("string"!=typeof o.url)return{success:!1,error:"tool.url is required"};try{new URL(o.url)}catch{return{success:!1,error:"tool.url must be a valid URL"}}if(void 0!==o.method&&"POST"!==o.method)return{success:!1,error:"tool.method must be POST"};let e=void 0===o.headers?{}:c(t=o.headers)&&Object.values(t).every(e=>"string"==typeof e)?t:null,n=void 0===o.inputSchema?{}:o.inputSchema,u=void 0===o.outputSchema?{}:o.outputSchema,a=void 0===o.examples?[]:Array.isArray(s=o.examples)&&s.every(c)?s:null,i=void 0===o.auth?{}:o.auth;if(!e)return{success:!1,error:"tool.headers must be a string record"};if(!c(n))return{success:!1,error:"tool.inputSchema must be an object"};if(!c(u))return{success:!1,error:"tool.outputSchema must be an object"};if(!a)return{success:!1,error:"tool.examples must be an array of objects"};if(!c(i))return{success:!1,error:"tool.auth must be an object"};r.push({scheme:o.scheme,purpose:o.purpose,url:o.url,method:"POST",headers:e,inputSchema:n,outputSchema:u,examples:a,auth:i})}return{success:!0,data:{projectId:e.projectId,tools:r}}}(r);if(!t.success)return a.NextResponse.json({error:t.error},{status:400});if(!function(e,r){let t=e.headers.get("authorization");if([process.env.AGENT_REMOTE_TOOLS_REGISTER_TOKEN,process.env.AGENT_SDK_REGISTRATION_TOKEN].filter(e=>!!e).some(e=>t===`Bearer ${e}`))return!0;let s=process.env.AGENT_SDK_TOKEN;return!!s&&t===`Bearer ${s}`&&function(e,r){var t;let s;if(!process.env.AGENT_PROJECT_ID)return!1;let o=e.headers.get("origin");if(!o)return!1;try{s=new URL(o).origin}catch{return!1}let n=(t=r.projectId,process.env.AGENT_PROJECT_ID&&t===process.env.AGENT_PROJECT_ID?process.env.AGENT_SDK_ALLOWED_ORIGIN??process.env.AGENT_BROWSER_ORIGIN??null:null);if(n)try{if(new URL(n).origin!==s)return!1}catch{return!1}else if(process.env.AGENT_PROJECT_ID)return!1;return r.tools.every(e=>{try{return new URL(e.url).origin===s}catch{return!1}})}(e,r)}(e,t.data))return a.NextResponse.json({error:"UNAUTHORIZED"},{status:401});let s=i.agentHost.registerRemoteTools(t.data.projectId,t.data.tools);return a.NextResponse.json({ok:!0,tools:s.map(e=>({scheme:e.scheme,purpose:e.purpose}))})}let p=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/remote-tools/register/route",pathname:"/api/remote-tools/register",filename:"route",bundlePath:"app/api/remote-tools/register/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/remote-tools/register/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:h,serverHooks:m}=p,f="/api/remote-tools/register/route";function g(){return(0,u.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},1489:(e,r,t)=>{t.d(r,{N:()=>i});var s=t(1636),o=t(2847),n=t(785);class u{constructor(){this.tasks=new s.CronTasks((0,n.kO)()),this.scheduler=new o.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:r}=await t.e(7519).then(t.bind(t,7519)),{getCustomerGoalCoordinator:s}=await Promise.all([t.e(7519),t.e(732)]).then(t.bind(t,732)),o=e.sessionId;o&&await r.getSessionStore().get(o)||(o=(await r.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:o})),await s().enqueue(o,e.prompt)}call(e,r){let t=String(r[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof r[0]||"string"!=typeof r[1]||!r[1].trim())throw Error("cron and prompt required");let e=r[2]&&"object"==typeof r[2]?r[2]:{};return this.tasks.create({cron:r[0],prompt:r[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(t);case"cronResume":return this.tasks.resume(t);case"cronDelete":return this.tasks.delete(t);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let a=globalThis;function i(){return a.__sharedCronService??=new u}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8375,6703,4621,7519],()=>t(3009));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=8381,e.ids=[8381],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")},7911:(e,r,o)=>{o.r(r),o.d(r,{originalPathname:()=>m,patchFetch:()=>b,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>v,staticGenerationAsyncStorage:()=>g});var t={};o.r(t),o.d(t,{GET:()=>p,dynamic:()=>d});var s=o(7786),n=o(5042),i=o(2184),a=o(1890),u=o(1614);let d="force-dynamic";async function p(e,{params:r}){if(!(0,u.V_)(r.id)||!r.jobId.trim())return a.NextResponse.json({error:"后台任务标识无效"},{status:400});try{return a.NextResponse.json(await (0,u.NL)().getBackgroundJobOutput(r.id,r.jobId))}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"后台任务输出读取失败"},{status:(0,u.WW)(e)})}}let c=new s.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/sessions/[id]/background-jobs/[jobId]/route",pathname:"/api/sessions/[id]/background-jobs/[jobId]",filename:"route",bundlePath:"app/api/sessions/[id]/background-jobs/[jobId]/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/sessions/[id]/background-jobs/[jobId]/route.ts",nextConfigOutput:"standalone",userland:t}),{requestAsyncStorage:l,staticGenerationAsyncStorage:g,serverHooks:v}=c,m="/api/sessions/[id]/background-jobs/[jobId]/route";function b(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:g})}},535:(e,r,o)=>{o.d(r,{L:()=>i});var t=o(1636),s=o(785);let n=!1;function i(){let e=(0,t.getGlobalLogger)();if(e)return e;let r=(0,t.installGlobalLogging)({dir:(0,s.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return n||(n=!0,r.info("server logger attached",{dir:r.dir,pid:process.pid})),r}},785:(e,r,o)=>{o.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var t=o(9411);let s=function(){let e=process.argv[1];if(e){let r=(0,t.dirname)((0,t.resolve)(e)),o=`${t.sep}node_modules${t.sep}.bin`;return r.endsWith(o)?(0,t.resolve)(r,"..",".."):r}return(0,t.resolve)(process.cwd())}();function n(e=process.env,r=s){return(0,t.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return n()}function a(e=process.env,r=n(e)){let o=e.AGENT_LOG_DIR?.trim();if(o)return(0,t.resolve)(o);let s=e.AGENTROAM_DATA_DIR?.trim();return s?(0,t.resolve)(s,"logs"):(0,t.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=s){return(0,t.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}}};var r=require("../../../../../../webpack-runtime.js");r.C(e);var o=e=>r(r.s=e),t=r.X(0,[8375,6703,1614],()=>o(7911));module.exports=t})();
1
+ "use strict";(()=>{var e={};e.id=8381,e.ids=[8381],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")},2912:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>m,patchFetch:()=>b,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>v,staticGenerationAsyncStorage:()=>g});var o={};t.r(o),t.d(o,{GET:()=>p,dynamic:()=>d});var s=t(7786),n=t(5042),i=t(2184),a=t(1890),u=t(1614);let d="force-dynamic";async function p(e,{params:r}){if(!(0,u.V_)(r.id)||!r.jobId.trim())return a.NextResponse.json({error:"后台任务标识无效"},{status:400});try{return a.NextResponse.json(await (0,u.NL)().getBackgroundJobOutput(r.id,r.jobId))}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"后台任务输出读取失败"},{status:(0,u.WW)(e)})}}let c=new s.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/sessions/[id]/background-jobs/[jobId]/route",pathname:"/api/sessions/[id]/background-jobs/[jobId]",filename:"route",bundlePath:"app/api/sessions/[id]/background-jobs/[jobId]/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/sessions/[id]/background-jobs/[jobId]/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:l,staticGenerationAsyncStorage:g,serverHooks:v}=c,m="/api/sessions/[id]/background-jobs/[jobId]/route";function b(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:g})}},535:(e,r,t)=>{t.d(r,{L:()=>i});var o=t(1636),s=t(785);let n=!1;function i(){let e=(0,o.getGlobalLogger)();if(e)return e;let r=(0,o.installGlobalLogging)({dir:(0,s.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return n||(n=!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 o=t(9411);let s=function(){let e=process.argv[1];if(e){let r=(0,o.dirname)((0,o.resolve)(e)),t=`${o.sep}node_modules${o.sep}.bin`;return r.endsWith(t)?(0,o.resolve)(r,"..",".."):r}return(0,o.resolve)(process.cwd())}();function n(e=process.env,r=s){return(0,o.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return n()}function a(e=process.env,r=n(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,o.resolve)(t);let s=e.AGENTROAM_DATA_DIR?.trim();return s?(0,o.resolve)(s,"logs"):(0,o.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=s){return(0,o.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),o=r.X(0,[8375,6703,1614],()=>t(2912));module.exports=o})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=3392,e.ids=[3392],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")},7958:(e,r,o)=>{o.r(r),o.d(r,{originalPathname:()=>v,patchFetch:()=>b,requestAsyncStorage:()=>c,routeModule:()=>p,serverHooks:()=>g,staticGenerationAsyncStorage:()=>l});var s={};o.r(s),o.d(s,{POST:()=>d});var t=o(7786),n=o(5042),i=o(2184),a=o(1890),u=o(1614);async function d(e,{params:r}){if(!(0,u.V_)(r.id)||!r.jobId.trim())return a.NextResponse.json({error:"后台任务标识无效"},{status:400});try{return a.NextResponse.json(await (0,u.NL)().stopBackgroundJob(r.id,r.jobId))}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"后台任务停止失败"},{status:(0,u.WW)(e)})}}let p=new t.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/sessions/[id]/background-jobs/[jobId]/stop/route",pathname:"/api/sessions/[id]/background-jobs/[jobId]/stop",filename:"route",bundlePath:"app/api/sessions/[id]/background-jobs/[jobId]/stop/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:c,staticGenerationAsyncStorage:l,serverHooks:g}=p,v="/api/sessions/[id]/background-jobs/[jobId]/stop/route";function b(){return(0,i.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:l})}},535:(e,r,o)=>{o.d(r,{L:()=>i});var s=o(1636),t=o(785);let n=!1;function i(){let e=(0,s.getGlobalLogger)();if(e)return e;let r=(0,s.installGlobalLogging)({dir:(0,t.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return n||(n=!0,r.info("server logger attached",{dir:r.dir,pid:process.pid})),r}},785:(e,r,o)=>{o.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var s=o(9411);let t=function(){let e=process.argv[1];if(e){let r=(0,s.dirname)((0,s.resolve)(e)),o=`${s.sep}node_modules${s.sep}.bin`;return r.endsWith(o)?(0,s.resolve)(r,"..",".."):r}return(0,s.resolve)(process.cwd())}();function n(e=process.env,r=t){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return n()}function a(e=process.env,r=n(e)){let o=e.AGENT_LOG_DIR?.trim();if(o)return(0,s.resolve)(o);let t=e.AGENTROAM_DATA_DIR?.trim();return t?(0,s.resolve)(t,"logs"):(0,s.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=t){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}}};var r=require("../../../../../../../webpack-runtime.js");r.C(e);var o=e=>r(r.s=e),s=r.X(0,[8375,6703,1614],()=>o(7958));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=3392,e.ids=[3392],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")},7575:(e,r,o)=>{o.r(r),o.d(r,{originalPathname:()=>v,patchFetch:()=>b,requestAsyncStorage:()=>c,routeModule:()=>d,serverHooks:()=>g,staticGenerationAsyncStorage:()=>l});var t={};o.r(t),o.d(t,{POST:()=>p});var s=o(7786),n=o(5042),i=o(2184),a=o(1890),u=o(1614);async function p(e,{params:r}){if(!(0,u.V_)(r.id)||!r.jobId.trim())return a.NextResponse.json({error:"后台任务标识无效"},{status:400});try{return a.NextResponse.json(await (0,u.NL)().stopBackgroundJob(r.id,r.jobId))}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"后台任务停止失败"},{status:(0,u.WW)(e)})}}let d=new s.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/sessions/[id]/background-jobs/[jobId]/stop/route",pathname:"/api/sessions/[id]/background-jobs/[jobId]/stop",filename:"route",bundlePath:"app/api/sessions/[id]/background-jobs/[jobId]/stop/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.ts",nextConfigOutput:"standalone",userland:t}),{requestAsyncStorage:c,staticGenerationAsyncStorage:l,serverHooks:g}=d,v="/api/sessions/[id]/background-jobs/[jobId]/stop/route";function b(){return(0,i.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:l})}},535:(e,r,o)=>{o.d(r,{L:()=>i});var t=o(1636),s=o(785);let n=!1;function i(){let e=(0,t.getGlobalLogger)();if(e)return e;let r=(0,t.installGlobalLogging)({dir:(0,s.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return n||(n=!0,r.info("server logger attached",{dir:r.dir,pid:process.pid})),r}},785:(e,r,o)=>{o.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var t=o(9411);let s=function(){let e=process.argv[1];if(e){let r=(0,t.dirname)((0,t.resolve)(e)),o=`${t.sep}node_modules${t.sep}.bin`;return r.endsWith(o)?(0,t.resolve)(r,"..",".."):r}return(0,t.resolve)(process.cwd())}();function n(e=process.env,r=s){return(0,t.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return n()}function a(e=process.env,r=n(e)){let o=e.AGENT_LOG_DIR?.trim();if(o)return(0,t.resolve)(o);let s=e.AGENTROAM_DATA_DIR?.trim();return s?(0,t.resolve)(s,"logs"):(0,t.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=s){return(0,t.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}}};var r=require("../../../../../../../webpack-runtime.js");r.C(e);var o=e=>r(r.s=e),t=r.X(0,[8375,6703,1614],()=>o(7575));module.exports=t})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=161,e.ids=[161],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")},3237:(e,r,s)=>{s.r(r),s.d(r,{originalPathname:()=>m,patchFetch:()=>f,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>v,staticGenerationAsyncStorage:()=>g});var t={};s.r(t),s.d(t,{GET:()=>p,dynamic:()=>d});var o=s(7786),n=s(5042),i=s(2184),a=s(1890),u=s(1614);let d="force-dynamic";async function p(e,{params:r}){if(!(0,u.V_)(r.id))return a.NextResponse.json({error:"此会话不支持后台任务管理"},{status:400});try{return a.NextResponse.json({jobs:await (0,u.NL)().listBackgroundJobs(r.id)})}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"后台任务读取失败"},{status:(0,u.WW)(e)})}}let c=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/sessions/[id]/background-jobs/route",pathname:"/api/sessions/[id]/background-jobs",filename:"route",bundlePath:"app/api/sessions/[id]/background-jobs/route"},resolvedPagePath:"/Users/caoqu/.codex/worktrees/agentroam-npm-preview68-20261028/packages/server/app/api/sessions/[id]/background-jobs/route.ts",nextConfigOutput:"standalone",userland:t}),{requestAsyncStorage:l,staticGenerationAsyncStorage:g,serverHooks:v}=c,m="/api/sessions/[id]/background-jobs/route";function f(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:g})}},535:(e,r,s)=>{s.d(r,{L:()=>i});var t=s(1636),o=s(785);let n=!1;function i(){let e=(0,t.getGlobalLogger)();if(e)return e;let r=(0,t.installGlobalLogging)({dir:(0,o.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return n||(n=!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 o=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 n(e=process.env,r=o){return(0,t.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return n()}function a(e=process.env,r=n(e)){let s=e.AGENT_LOG_DIR?.trim();if(s)return(0,t.resolve)(s);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,t.resolve)(o,"logs"):(0,t.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=o){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(3237));module.exports=t})();
1
+ "use strict";(()=>{var e={};e.id=161,e.ids=[161],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")},5070:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>m,patchFetch:()=>f,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>v,staticGenerationAsyncStorage:()=>g});var s={};t.r(s),t.d(s,{GET:()=>d,dynamic:()=>p});var o=t(7786),n=t(5042),i=t(2184),a=t(1890),u=t(1614);let p="force-dynamic";async function d(e,{params:r}){if(!(0,u.V_)(r.id))return a.NextResponse.json({error:"此会话不支持后台任务管理"},{status:400});try{return a.NextResponse.json({jobs:await (0,u.NL)().listBackgroundJobs(r.id)})}catch(e){return a.NextResponse.json({error:e instanceof Error?e.message:"后台任务读取失败"},{status:(0,u.WW)(e)})}}let c=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/sessions/[id]/background-jobs/route",pathname:"/api/sessions/[id]/background-jobs",filename:"route",bundlePath:"app/api/sessions/[id]/background-jobs/route"},resolvedPagePath:"/private/tmp/agentroam-preview69-20261030/packages/server/app/api/sessions/[id]/background-jobs/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:l,staticGenerationAsyncStorage:g,serverHooks:v}=c,m="/api/sessions/[id]/background-jobs/route";function f(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:g})}},535:(e,r,t)=>{t.d(r,{L:()=>i});var s=t(1636),o=t(785);let n=!1;function i(){let e=(0,s.getGlobalLogger)();if(e)return e;let r=(0,s.installGlobalLogging)({dir:(0,o.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return n||(n=!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 o=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 n(e=process.env,r=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return n()}function a(e=process.env,r=n(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,s.resolve)(t);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=o){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(5070));module.exports=s})();
@@ -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")},895:(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")},4160:(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/.codex/worktrees/agentroam-npm-preview68-20261028/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(895));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:"/private/tmp/agentroam-preview69-20261030/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(4160));module.exports=i})();