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

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 (1155) hide show
  1. package/manifest.json +3 -2
  2. package/package.json +1 -1
  3. package/runtime/.next/BUILD_ID +1 -1
  4. package/runtime/.next/app-build-manifest.json +10 -10
  5. package/runtime/.next/app-path-routes-manifest.json +1 -1
  6. package/runtime/.next/build-manifest.json +5 -5
  7. package/runtime/.next/prerender-manifest.json +1 -1
  8. package/runtime/.next/required-server-files.json +1 -1
  9. package/runtime/.next/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 +4 -4
  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 +11 -11
  29. package/runtime/.next/server/app/api/collaboration/route.js.nft.json +1 -1
  30. package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
  31. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
  32. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +3 -3
  33. package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
  34. package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
  35. package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
  36. package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
  37. package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
  38. package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
  39. package/runtime/.next/server/app/api/memory/route.js +1 -1
  40. package/runtime/.next/server/app/api/messaging/route.js +1 -0
  41. package/runtime/.next/server/app/api/messaging/route.js.nft.json +1 -0
  42. package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
  43. package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
  44. package/runtime/.next/server/app/api/projects/check/route.js +1 -1
  45. package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
  46. package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
  47. package/runtime/.next/server/app/api/projects/route.js +1 -1
  48. package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
  49. package/runtime/.next/server/app/api/push/unsubscribe/route.js +3 -3
  50. package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
  51. package/runtime/.next/server/app/api/push/vapid.body +1 -1
  52. package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
  53. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
  54. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
  55. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
  56. package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
  57. package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  58. package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
  59. package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
  60. package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
  61. package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
  62. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
  63. package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
  64. package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
  65. package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
  66. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
  67. package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -0
  68. package/runtime/.next/server/app/api/sessions/parallel/route.js.nft.json +1 -0
  69. package/runtime/.next/server/app/api/sessions/route.js +1 -1
  70. package/runtime/.next/server/app/api/settings/route.js +1 -1
  71. package/runtime/.next/server/app/api/skills/route.js +1 -1
  72. package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
  73. package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
  74. package/runtime/.next/server/app/api/tools/route.js +1 -1
  75. package/runtime/.next/server/app/api/update/check/route.js +1 -1
  76. package/runtime/.next/server/app/api/update/install/route.js +1 -1
  77. package/runtime/.next/server/app/api/update/status/route.js +1 -1
  78. package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
  79. package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
  80. package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
  81. package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
  82. package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
  83. package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
  84. package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
  85. package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
  86. package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
  87. package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
  88. package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
  89. package/runtime/.next/server/app/web/page.js +13 -21
  90. package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
  91. package/runtime/.next/server/app-paths-manifest.json +39 -37
  92. package/runtime/.next/server/chunks/1614.js +1 -1
  93. package/runtime/.next/server/chunks/1973.js +1 -0
  94. package/runtime/.next/server/chunks/5303.js +2 -2
  95. package/runtime/.next/server/chunks/6977.js +1 -1
  96. package/runtime/.next/server/chunks/732.js +1 -1
  97. package/runtime/.next/server/chunks/7519.js +3 -3
  98. package/runtime/.next/server/middleware-build-manifest.js +1 -1
  99. package/runtime/.next/server/pages/404.html +1 -1
  100. package/runtime/.next/server/pages/500.html +1 -1
  101. package/runtime/.next/server/server-reference-manifest.json +1 -1
  102. package/runtime/.next/static/chunks/50-0b6604ece6278dc2.js +1 -0
  103. package/runtime/.next/static/chunks/app/web/{error-6470e38a145095eb.js → error-36b287ca40eab041.js} +1 -1
  104. package/runtime/.next/static/chunks/app/web/layout-62386960d8601cc2.js +1 -0
  105. package/runtime/.next/static/chunks/app/web/page-6b37d8153e607928.js +1 -0
  106. package/runtime/.next/static/chunks/{main-0de4062ff39c4193.js → main-94a733696db11b91.js} +1 -1
  107. package/runtime/.next/static/chunks/{main-app-41078426602904fd.js → main-app-07b9ccbb642d9b9d.js} +1 -1
  108. package/runtime/.next/static/css/50f255aa50ec70d1.css +1 -0
  109. package/runtime/lib/browser-live/viewer-frame-flow.mjs +10 -2
  110. package/runtime/lib/browser-live/viewer-video-flow.mjs +11 -0
  111. package/runtime/lib/remote-control/application/compound-video-session.mjs +383 -0
  112. package/runtime/lib/remote-control/application/paced-video-sender.mjs +261 -0
  113. package/runtime/lib/remote-control/application/remote-hover-dispatch.mjs +26 -0
  114. package/runtime/lib/remote-control/application/remote-video-session.mjs +232 -37
  115. package/runtime/lib/remote-control/helper-manager.mjs +5 -1
  116. package/runtime/lib/remote-control/infrastructure/compound-compression.mjs +20 -0
  117. package/runtime/lib/remote-control/infrastructure/native-compound-video.mjs +44 -0
  118. package/runtime/lib/remote-control/infrastructure/native-video-encoder.mjs +62 -8
  119. package/runtime/lib/remote-control/infrastructure/werift-video-feedback.mjs +98 -0
  120. package/runtime/lib/remote-control/infrastructure/werift-video-recovery.mjs +108 -0
  121. package/runtime/lib/remote-control/infrastructure/werift-video-transport.mjs +310 -24
  122. package/runtime/lib/remote-control/remote-authorization.mjs +55 -12
  123. package/runtime/lib/remote-control/remote-video-signal.mjs +25 -1
  124. package/runtime/lib/remote-control/webrtc-video.mjs +3 -1
  125. package/runtime/lib/remote-control/windows-helper.mjs +11 -2
  126. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
  127. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
  128. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
  129. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Info.plist +13 -0
  130. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/MacOS/NativeAXBridge +0 -0
  131. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Resources/agentroam-component.json +4 -0
  132. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/_CodeSignature/CodeResources +128 -0
  133. package/runtime/node_modules/.package-lock.json +26 -20
  134. package/runtime/node_modules/@agent/core/dist/index.js +2775 -154
  135. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/NativeAXBridge.swift +240 -0
  136. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/codec.py +133 -0
  137. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/native_sender.py +445 -0
  138. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/reader.py +309 -0
  139. package/runtime/node_modules/@agent/messaging/dist/index.js +1219 -0
  140. package/runtime/node_modules/@agent/messaging/package.json +7 -0
  141. package/runtime/node_modules/@agent/native-runtime/dist/index.js +6299 -808
  142. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +88 -82
  143. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +61 -61
  144. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-8zdh6hy9.mjs +45 -0
  145. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b5da77cd.mjs +34 -0
  146. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-f2yzhw4m.mjs +18 -0
  147. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-j29a9c1a.mjs +17 -0
  148. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +11 -11
  149. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +33 -25
  150. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +37 -29
  151. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +14 -14
  152. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +84 -81
  153. package/runtime/node_modules/caniuse-lite/data/agents.js +1 -1
  154. package/runtime/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  155. package/runtime/node_modules/caniuse-lite/data/features/aac.js +1 -1
  156. package/runtime/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  157. package/runtime/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  158. package/runtime/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  159. package/runtime/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  160. package/runtime/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  161. package/runtime/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  162. package/runtime/node_modules/caniuse-lite/data/features/apng.js +1 -1
  163. package/runtime/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  164. package/runtime/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  165. package/runtime/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  166. package/runtime/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  167. package/runtime/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  168. package/runtime/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  169. package/runtime/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  170. package/runtime/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  171. package/runtime/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  172. package/runtime/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  173. package/runtime/node_modules/caniuse-lite/data/features/audio.js +1 -1
  174. package/runtime/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  175. package/runtime/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  176. package/runtime/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  177. package/runtime/node_modules/caniuse-lite/data/features/av1.js +1 -1
  178. package/runtime/node_modules/caniuse-lite/data/features/avif.js +1 -1
  179. package/runtime/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  180. package/runtime/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  181. package/runtime/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  182. package/runtime/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  183. package/runtime/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  184. package/runtime/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  185. package/runtime/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  186. package/runtime/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  187. package/runtime/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  188. package/runtime/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  189. package/runtime/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  190. package/runtime/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  191. package/runtime/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  192. package/runtime/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  193. package/runtime/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  194. package/runtime/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  195. package/runtime/node_modules/caniuse-lite/data/features/calc.js +1 -1
  196. package/runtime/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  197. package/runtime/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  198. package/runtime/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  199. package/runtime/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  200. package/runtime/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  201. package/runtime/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  202. package/runtime/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  203. package/runtime/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  204. package/runtime/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  205. package/runtime/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  206. package/runtime/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  207. package/runtime/node_modules/caniuse-lite/data/features/colr.js +1 -1
  208. package/runtime/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  209. package/runtime/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  210. package/runtime/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  211. package/runtime/node_modules/caniuse-lite/data/features/const.js +1 -1
  212. package/runtime/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  213. package/runtime/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  214. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  215. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  216. package/runtime/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  217. package/runtime/node_modules/caniuse-lite/data/features/cors.js +1 -1
  218. package/runtime/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  219. package/runtime/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  220. package/runtime/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  221. package/runtime/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  222. package/runtime/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  223. package/runtime/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  224. package/runtime/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  225. package/runtime/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  226. package/runtime/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  227. package/runtime/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  228. package/runtime/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  229. package/runtime/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  230. package/runtime/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  231. package/runtime/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  232. package/runtime/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  233. package/runtime/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  234. package/runtime/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  235. package/runtime/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  236. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  237. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  238. package/runtime/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  239. package/runtime/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  240. package/runtime/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  241. package/runtime/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  242. package/runtime/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  243. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  244. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  245. package/runtime/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  246. package/runtime/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  247. package/runtime/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  248. package/runtime/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  249. package/runtime/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  250. package/runtime/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  251. package/runtime/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  252. package/runtime/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  253. package/runtime/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  254. package/runtime/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  255. package/runtime/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  256. package/runtime/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  257. package/runtime/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  258. package/runtime/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  259. package/runtime/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  260. package/runtime/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  261. package/runtime/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  262. package/runtime/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  263. package/runtime/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  264. package/runtime/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  265. package/runtime/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  266. package/runtime/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  267. package/runtime/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  268. package/runtime/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  269. package/runtime/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  270. package/runtime/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  271. package/runtime/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  272. package/runtime/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  273. package/runtime/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  274. package/runtime/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  275. package/runtime/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  276. package/runtime/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  277. package/runtime/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  278. package/runtime/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  279. package/runtime/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  280. package/runtime/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  281. package/runtime/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  282. package/runtime/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  283. package/runtime/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  284. package/runtime/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  285. package/runtime/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  286. package/runtime/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  287. package/runtime/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  288. package/runtime/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  289. package/runtime/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  290. package/runtime/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  291. package/runtime/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  292. package/runtime/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  293. package/runtime/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  294. package/runtime/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  295. package/runtime/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  296. package/runtime/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  297. package/runtime/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  298. package/runtime/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  299. package/runtime/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  300. package/runtime/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  301. package/runtime/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  302. package/runtime/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  303. package/runtime/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  304. package/runtime/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  305. package/runtime/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  306. package/runtime/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  307. package/runtime/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  308. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  309. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  310. package/runtime/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  311. package/runtime/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  312. package/runtime/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  313. package/runtime/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  314. package/runtime/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  315. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  316. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  317. package/runtime/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  318. package/runtime/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  319. package/runtime/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  320. package/runtime/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  321. package/runtime/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  322. package/runtime/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  323. package/runtime/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  324. package/runtime/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  325. package/runtime/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  326. package/runtime/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  327. package/runtime/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  328. package/runtime/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  329. package/runtime/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  330. package/runtime/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  331. package/runtime/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  332. package/runtime/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  333. package/runtime/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  334. package/runtime/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  335. package/runtime/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  336. package/runtime/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  337. package/runtime/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  338. package/runtime/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  339. package/runtime/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  340. package/runtime/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  341. package/runtime/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  342. package/runtime/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  343. package/runtime/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  344. package/runtime/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  345. package/runtime/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  346. package/runtime/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  347. package/runtime/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  348. package/runtime/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  349. package/runtime/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  350. package/runtime/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  351. package/runtime/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  352. package/runtime/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  353. package/runtime/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  354. package/runtime/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  355. package/runtime/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  356. package/runtime/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  357. package/runtime/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  358. package/runtime/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  359. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  360. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  361. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  362. package/runtime/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  363. package/runtime/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  364. package/runtime/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  365. package/runtime/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  366. package/runtime/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  367. package/runtime/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  368. package/runtime/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  369. package/runtime/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  370. package/runtime/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  371. package/runtime/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  372. package/runtime/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  373. package/runtime/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  374. package/runtime/node_modules/caniuse-lite/data/features/details.js +1 -1
  375. package/runtime/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  376. package/runtime/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  377. package/runtime/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  378. package/runtime/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  379. package/runtime/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  380. package/runtime/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  381. package/runtime/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  382. package/runtime/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  383. package/runtime/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  384. package/runtime/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  385. package/runtime/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  386. package/runtime/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  387. package/runtime/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  388. package/runtime/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  389. package/runtime/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  390. package/runtime/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  391. package/runtime/node_modules/caniuse-lite/data/features/download.js +1 -1
  392. package/runtime/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  393. package/runtime/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  394. package/runtime/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  395. package/runtime/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  396. package/runtime/node_modules/caniuse-lite/data/features/eme.js +1 -1
  397. package/runtime/node_modules/caniuse-lite/data/features/eot.js +1 -1
  398. package/runtime/node_modules/caniuse-lite/data/features/es5.js +1 -1
  399. package/runtime/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  400. package/runtime/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  401. package/runtime/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  402. package/runtime/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  403. package/runtime/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  404. package/runtime/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  405. package/runtime/node_modules/caniuse-lite/data/features/es6.js +1 -1
  406. package/runtime/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  407. package/runtime/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  408. package/runtime/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  409. package/runtime/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  410. package/runtime/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  411. package/runtime/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  412. package/runtime/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  413. package/runtime/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  414. package/runtime/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  415. package/runtime/node_modules/caniuse-lite/data/features/flac.js +1 -1
  416. package/runtime/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  417. package/runtime/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  418. package/runtime/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  419. package/runtime/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  420. package/runtime/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  421. package/runtime/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  422. package/runtime/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  423. package/runtime/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  424. package/runtime/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  425. package/runtime/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  426. package/runtime/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  427. package/runtime/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  428. package/runtime/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  429. package/runtime/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  430. package/runtime/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  431. package/runtime/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  432. package/runtime/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  433. package/runtime/node_modules/caniuse-lite/data/features/forms.js +1 -1
  434. package/runtime/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  435. package/runtime/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  436. package/runtime/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  437. package/runtime/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  438. package/runtime/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  439. package/runtime/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  440. package/runtime/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  441. package/runtime/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  442. package/runtime/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  443. package/runtime/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  444. package/runtime/node_modules/caniuse-lite/data/features/heif.js +1 -1
  445. package/runtime/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  446. package/runtime/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  447. package/runtime/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  448. package/runtime/node_modules/caniuse-lite/data/features/history.js +1 -1
  449. package/runtime/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  450. package/runtime/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  451. package/runtime/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  452. package/runtime/node_modules/caniuse-lite/data/features/http2.js +1 -1
  453. package/runtime/node_modules/caniuse-lite/data/features/http3.js +1 -1
  454. package/runtime/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  455. package/runtime/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  456. package/runtime/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  457. package/runtime/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  458. package/runtime/node_modules/caniuse-lite/data/features/ime.js +1 -1
  459. package/runtime/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  460. package/runtime/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  461. package/runtime/node_modules/caniuse-lite/data/features/imports.js +1 -1
  462. package/runtime/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  463. package/runtime/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  464. package/runtime/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  465. package/runtime/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  466. package/runtime/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  467. package/runtime/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  468. package/runtime/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  469. package/runtime/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  470. package/runtime/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  471. package/runtime/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  472. package/runtime/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  473. package/runtime/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  474. package/runtime/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  475. package/runtime/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  476. package/runtime/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  477. package/runtime/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  478. package/runtime/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  479. package/runtime/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  480. package/runtime/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  481. package/runtime/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  482. package/runtime/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  483. package/runtime/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  484. package/runtime/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  485. package/runtime/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  486. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  487. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  488. package/runtime/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  489. package/runtime/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  490. package/runtime/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  491. package/runtime/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  492. package/runtime/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  493. package/runtime/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  494. package/runtime/node_modules/caniuse-lite/data/features/json.js +1 -1
  495. package/runtime/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  496. package/runtime/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  497. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  498. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  499. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  500. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  501. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  502. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  503. package/runtime/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  504. package/runtime/node_modules/caniuse-lite/data/features/let.js +1 -1
  505. package/runtime/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  506. package/runtime/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  507. package/runtime/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  508. package/runtime/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  509. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  510. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  511. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  512. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  513. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  514. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  515. package/runtime/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  516. package/runtime/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  517. package/runtime/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  518. package/runtime/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  519. package/runtime/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  520. package/runtime/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  521. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  522. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  523. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  524. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  525. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  526. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  527. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  528. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  529. package/runtime/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  530. package/runtime/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  531. package/runtime/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  532. package/runtime/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  533. package/runtime/node_modules/caniuse-lite/data/features/menu.js +1 -1
  534. package/runtime/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  535. package/runtime/node_modules/caniuse-lite/data/features/meter.js +1 -1
  536. package/runtime/node_modules/caniuse-lite/data/features/midi.js +1 -1
  537. package/runtime/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  538. package/runtime/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  539. package/runtime/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  540. package/runtime/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  541. package/runtime/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  542. package/runtime/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  543. package/runtime/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  544. package/runtime/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  545. package/runtime/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  546. package/runtime/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  547. package/runtime/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  548. package/runtime/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  549. package/runtime/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  550. package/runtime/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  551. package/runtime/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  552. package/runtime/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  553. package/runtime/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  554. package/runtime/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  555. package/runtime/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  556. package/runtime/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  557. package/runtime/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  558. package/runtime/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  559. package/runtime/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  560. package/runtime/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  561. package/runtime/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  562. package/runtime/node_modules/caniuse-lite/data/features/opus.js +1 -1
  563. package/runtime/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  564. package/runtime/node_modules/caniuse-lite/data/features/outline.js +1 -1
  565. package/runtime/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  566. package/runtime/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  567. package/runtime/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  568. package/runtime/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  569. package/runtime/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  570. package/runtime/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  571. package/runtime/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  572. package/runtime/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  573. package/runtime/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  574. package/runtime/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  575. package/runtime/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  576. package/runtime/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  577. package/runtime/node_modules/caniuse-lite/data/features/picture.js +1 -1
  578. package/runtime/node_modules/caniuse-lite/data/features/ping.js +1 -1
  579. package/runtime/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  580. package/runtime/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  581. package/runtime/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  582. package/runtime/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  583. package/runtime/node_modules/caniuse-lite/data/features/portals.js +1 -1
  584. package/runtime/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  585. package/runtime/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  586. package/runtime/node_modules/caniuse-lite/data/features/progress.js +1 -1
  587. package/runtime/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  588. package/runtime/node_modules/caniuse-lite/data/features/promises.js +1 -1
  589. package/runtime/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  590. package/runtime/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  591. package/runtime/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  592. package/runtime/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  593. package/runtime/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  594. package/runtime/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  595. package/runtime/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  596. package/runtime/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  597. package/runtime/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  598. package/runtime/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  599. package/runtime/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  600. package/runtime/node_modules/caniuse-lite/data/features/rem.js +1 -1
  601. package/runtime/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  602. package/runtime/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  603. package/runtime/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  604. package/runtime/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  605. package/runtime/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  606. package/runtime/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  607. package/runtime/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  608. package/runtime/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  609. package/runtime/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  610. package/runtime/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  611. package/runtime/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  612. package/runtime/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  613. package/runtime/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  614. package/runtime/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  615. package/runtime/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  616. package/runtime/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  617. package/runtime/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  618. package/runtime/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  619. package/runtime/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  620. package/runtime/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  621. package/runtime/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  622. package/runtime/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  623. package/runtime/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  624. package/runtime/node_modules/caniuse-lite/data/features/sni.js +1 -1
  625. package/runtime/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  626. package/runtime/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  627. package/runtime/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  628. package/runtime/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  629. package/runtime/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  630. package/runtime/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  631. package/runtime/node_modules/caniuse-lite/data/features/stream.js +1 -1
  632. package/runtime/node_modules/caniuse-lite/data/features/streams.js +1 -1
  633. package/runtime/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  634. package/runtime/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  635. package/runtime/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  636. package/runtime/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  637. package/runtime/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  638. package/runtime/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  639. package/runtime/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  640. package/runtime/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  641. package/runtime/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  642. package/runtime/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  643. package/runtime/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  644. package/runtime/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  645. package/runtime/node_modules/caniuse-lite/data/features/svg.js +1 -1
  646. package/runtime/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  647. package/runtime/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  648. package/runtime/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  649. package/runtime/node_modules/caniuse-lite/data/features/template.js +1 -1
  650. package/runtime/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  651. package/runtime/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  652. package/runtime/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  653. package/runtime/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  654. package/runtime/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  655. package/runtime/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  656. package/runtime/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  657. package/runtime/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  658. package/runtime/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  659. package/runtime/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  660. package/runtime/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  661. package/runtime/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  662. package/runtime/node_modules/caniuse-lite/data/features/touch.js +1 -1
  663. package/runtime/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  664. package/runtime/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  665. package/runtime/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  666. package/runtime/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  667. package/runtime/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  668. package/runtime/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  669. package/runtime/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  670. package/runtime/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  671. package/runtime/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  672. package/runtime/node_modules/caniuse-lite/data/features/url.js +1 -1
  673. package/runtime/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  674. package/runtime/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  675. package/runtime/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  676. package/runtime/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  677. package/runtime/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  678. package/runtime/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  679. package/runtime/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  680. package/runtime/node_modules/caniuse-lite/data/features/video.js +1 -1
  681. package/runtime/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  682. package/runtime/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  683. package/runtime/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  684. package/runtime/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  685. package/runtime/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  686. package/runtime/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  687. package/runtime/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  688. package/runtime/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  689. package/runtime/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  690. package/runtime/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  691. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  692. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  693. package/runtime/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  694. package/runtime/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  695. package/runtime/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  696. package/runtime/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  697. package/runtime/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  698. package/runtime/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  699. package/runtime/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  700. package/runtime/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  701. package/runtime/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  702. package/runtime/node_modules/caniuse-lite/data/features/wav.js +1 -1
  703. package/runtime/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  704. package/runtime/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  705. package/runtime/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  706. package/runtime/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  707. package/runtime/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  708. package/runtime/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  709. package/runtime/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  710. package/runtime/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  711. package/runtime/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  712. package/runtime/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  713. package/runtime/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  714. package/runtime/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  715. package/runtime/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  716. package/runtime/node_modules/caniuse-lite/data/features/webm.js +1 -1
  717. package/runtime/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  718. package/runtime/node_modules/caniuse-lite/data/features/webp.js +1 -1
  719. package/runtime/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  720. package/runtime/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  721. package/runtime/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  722. package/runtime/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  723. package/runtime/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  724. package/runtime/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  725. package/runtime/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  726. package/runtime/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  727. package/runtime/node_modules/caniuse-lite/data/features/woff.js +1 -1
  728. package/runtime/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  729. package/runtime/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  730. package/runtime/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  731. package/runtime/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  732. package/runtime/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  733. package/runtime/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  734. package/runtime/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  735. package/runtime/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  736. package/runtime/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  737. package/runtime/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  738. package/runtime/node_modules/caniuse-lite/data/regions/AD.js +1 -1
  739. package/runtime/node_modules/caniuse-lite/data/regions/AE.js +1 -1
  740. package/runtime/node_modules/caniuse-lite/data/regions/AF.js +1 -1
  741. package/runtime/node_modules/caniuse-lite/data/regions/AG.js +1 -1
  742. package/runtime/node_modules/caniuse-lite/data/regions/AI.js +1 -1
  743. package/runtime/node_modules/caniuse-lite/data/regions/AL.js +1 -1
  744. package/runtime/node_modules/caniuse-lite/data/regions/AM.js +1 -1
  745. package/runtime/node_modules/caniuse-lite/data/regions/AO.js +1 -1
  746. package/runtime/node_modules/caniuse-lite/data/regions/AR.js +1 -1
  747. package/runtime/node_modules/caniuse-lite/data/regions/AS.js +1 -1
  748. package/runtime/node_modules/caniuse-lite/data/regions/AT.js +1 -1
  749. package/runtime/node_modules/caniuse-lite/data/regions/AU.js +1 -1
  750. package/runtime/node_modules/caniuse-lite/data/regions/AW.js +1 -1
  751. package/runtime/node_modules/caniuse-lite/data/regions/AX.js +1 -1
  752. package/runtime/node_modules/caniuse-lite/data/regions/AZ.js +1 -1
  753. package/runtime/node_modules/caniuse-lite/data/regions/BA.js +1 -1
  754. package/runtime/node_modules/caniuse-lite/data/regions/BB.js +1 -1
  755. package/runtime/node_modules/caniuse-lite/data/regions/BD.js +1 -1
  756. package/runtime/node_modules/caniuse-lite/data/regions/BE.js +1 -1
  757. package/runtime/node_modules/caniuse-lite/data/regions/BF.js +1 -1
  758. package/runtime/node_modules/caniuse-lite/data/regions/BG.js +1 -1
  759. package/runtime/node_modules/caniuse-lite/data/regions/BH.js +1 -1
  760. package/runtime/node_modules/caniuse-lite/data/regions/BI.js +1 -1
  761. package/runtime/node_modules/caniuse-lite/data/regions/BJ.js +1 -1
  762. package/runtime/node_modules/caniuse-lite/data/regions/BM.js +1 -1
  763. package/runtime/node_modules/caniuse-lite/data/regions/BN.js +1 -1
  764. package/runtime/node_modules/caniuse-lite/data/regions/BO.js +1 -1
  765. package/runtime/node_modules/caniuse-lite/data/regions/BR.js +1 -1
  766. package/runtime/node_modules/caniuse-lite/data/regions/BS.js +1 -1
  767. package/runtime/node_modules/caniuse-lite/data/regions/BT.js +1 -1
  768. package/runtime/node_modules/caniuse-lite/data/regions/BW.js +1 -1
  769. package/runtime/node_modules/caniuse-lite/data/regions/BY.js +1 -1
  770. package/runtime/node_modules/caniuse-lite/data/regions/BZ.js +1 -1
  771. package/runtime/node_modules/caniuse-lite/data/regions/CA.js +1 -1
  772. package/runtime/node_modules/caniuse-lite/data/regions/CD.js +1 -1
  773. package/runtime/node_modules/caniuse-lite/data/regions/CF.js +1 -1
  774. package/runtime/node_modules/caniuse-lite/data/regions/CG.js +1 -1
  775. package/runtime/node_modules/caniuse-lite/data/regions/CH.js +1 -1
  776. package/runtime/node_modules/caniuse-lite/data/regions/CI.js +1 -1
  777. package/runtime/node_modules/caniuse-lite/data/regions/CK.js +1 -1
  778. package/runtime/node_modules/caniuse-lite/data/regions/CL.js +1 -1
  779. package/runtime/node_modules/caniuse-lite/data/regions/CM.js +1 -1
  780. package/runtime/node_modules/caniuse-lite/data/regions/CN.js +1 -1
  781. package/runtime/node_modules/caniuse-lite/data/regions/CO.js +1 -1
  782. package/runtime/node_modules/caniuse-lite/data/regions/CR.js +1 -1
  783. package/runtime/node_modules/caniuse-lite/data/regions/CU.js +1 -1
  784. package/runtime/node_modules/caniuse-lite/data/regions/CV.js +1 -1
  785. package/runtime/node_modules/caniuse-lite/data/regions/CX.js +1 -1
  786. package/runtime/node_modules/caniuse-lite/data/regions/CY.js +1 -1
  787. package/runtime/node_modules/caniuse-lite/data/regions/CZ.js +1 -1
  788. package/runtime/node_modules/caniuse-lite/data/regions/DE.js +1 -1
  789. package/runtime/node_modules/caniuse-lite/data/regions/DJ.js +1 -1
  790. package/runtime/node_modules/caniuse-lite/data/regions/DK.js +1 -1
  791. package/runtime/node_modules/caniuse-lite/data/regions/DM.js +1 -1
  792. package/runtime/node_modules/caniuse-lite/data/regions/DO.js +1 -1
  793. package/runtime/node_modules/caniuse-lite/data/regions/DZ.js +1 -1
  794. package/runtime/node_modules/caniuse-lite/data/regions/EC.js +1 -1
  795. package/runtime/node_modules/caniuse-lite/data/regions/EE.js +1 -1
  796. package/runtime/node_modules/caniuse-lite/data/regions/EG.js +1 -1
  797. package/runtime/node_modules/caniuse-lite/data/regions/ER.js +1 -1
  798. package/runtime/node_modules/caniuse-lite/data/regions/ES.js +1 -1
  799. package/runtime/node_modules/caniuse-lite/data/regions/ET.js +1 -1
  800. package/runtime/node_modules/caniuse-lite/data/regions/FI.js +1 -1
  801. package/runtime/node_modules/caniuse-lite/data/regions/FJ.js +1 -1
  802. package/runtime/node_modules/caniuse-lite/data/regions/FK.js +1 -1
  803. package/runtime/node_modules/caniuse-lite/data/regions/FM.js +1 -1
  804. package/runtime/node_modules/caniuse-lite/data/regions/FO.js +1 -1
  805. package/runtime/node_modules/caniuse-lite/data/regions/FR.js +1 -1
  806. package/runtime/node_modules/caniuse-lite/data/regions/GA.js +1 -1
  807. package/runtime/node_modules/caniuse-lite/data/regions/GB.js +1 -1
  808. package/runtime/node_modules/caniuse-lite/data/regions/GD.js +1 -1
  809. package/runtime/node_modules/caniuse-lite/data/regions/GE.js +1 -1
  810. package/runtime/node_modules/caniuse-lite/data/regions/GF.js +1 -1
  811. package/runtime/node_modules/caniuse-lite/data/regions/GG.js +1 -1
  812. package/runtime/node_modules/caniuse-lite/data/regions/GH.js +1 -1
  813. package/runtime/node_modules/caniuse-lite/data/regions/GI.js +1 -1
  814. package/runtime/node_modules/caniuse-lite/data/regions/GL.js +1 -1
  815. package/runtime/node_modules/caniuse-lite/data/regions/GM.js +1 -1
  816. package/runtime/node_modules/caniuse-lite/data/regions/GN.js +1 -1
  817. package/runtime/node_modules/caniuse-lite/data/regions/GP.js +1 -1
  818. package/runtime/node_modules/caniuse-lite/data/regions/GQ.js +1 -1
  819. package/runtime/node_modules/caniuse-lite/data/regions/GR.js +1 -1
  820. package/runtime/node_modules/caniuse-lite/data/regions/GT.js +1 -1
  821. package/runtime/node_modules/caniuse-lite/data/regions/GU.js +1 -1
  822. package/runtime/node_modules/caniuse-lite/data/regions/GW.js +1 -1
  823. package/runtime/node_modules/caniuse-lite/data/regions/GY.js +1 -1
  824. package/runtime/node_modules/caniuse-lite/data/regions/HK.js +1 -1
  825. package/runtime/node_modules/caniuse-lite/data/regions/HN.js +1 -1
  826. package/runtime/node_modules/caniuse-lite/data/regions/HR.js +1 -1
  827. package/runtime/node_modules/caniuse-lite/data/regions/HT.js +1 -1
  828. package/runtime/node_modules/caniuse-lite/data/regions/HU.js +1 -1
  829. package/runtime/node_modules/caniuse-lite/data/regions/ID.js +1 -1
  830. package/runtime/node_modules/caniuse-lite/data/regions/IE.js +1 -1
  831. package/runtime/node_modules/caniuse-lite/data/regions/IL.js +1 -1
  832. package/runtime/node_modules/caniuse-lite/data/regions/IM.js +1 -1
  833. package/runtime/node_modules/caniuse-lite/data/regions/IN.js +1 -1
  834. package/runtime/node_modules/caniuse-lite/data/regions/IQ.js +1 -1
  835. package/runtime/node_modules/caniuse-lite/data/regions/IR.js +1 -1
  836. package/runtime/node_modules/caniuse-lite/data/regions/IS.js +1 -1
  837. package/runtime/node_modules/caniuse-lite/data/regions/IT.js +1 -1
  838. package/runtime/node_modules/caniuse-lite/data/regions/JE.js +1 -1
  839. package/runtime/node_modules/caniuse-lite/data/regions/JM.js +1 -1
  840. package/runtime/node_modules/caniuse-lite/data/regions/JO.js +1 -1
  841. package/runtime/node_modules/caniuse-lite/data/regions/JP.js +1 -1
  842. package/runtime/node_modules/caniuse-lite/data/regions/KE.js +1 -1
  843. package/runtime/node_modules/caniuse-lite/data/regions/KG.js +1 -1
  844. package/runtime/node_modules/caniuse-lite/data/regions/KH.js +1 -1
  845. package/runtime/node_modules/caniuse-lite/data/regions/KI.js +1 -1
  846. package/runtime/node_modules/caniuse-lite/data/regions/KM.js +1 -1
  847. package/runtime/node_modules/caniuse-lite/data/regions/KN.js +1 -1
  848. package/runtime/node_modules/caniuse-lite/data/regions/KP.js +1 -1
  849. package/runtime/node_modules/caniuse-lite/data/regions/KR.js +1 -1
  850. package/runtime/node_modules/caniuse-lite/data/regions/KW.js +1 -1
  851. package/runtime/node_modules/caniuse-lite/data/regions/KY.js +1 -1
  852. package/runtime/node_modules/caniuse-lite/data/regions/KZ.js +1 -1
  853. package/runtime/node_modules/caniuse-lite/data/regions/LA.js +1 -1
  854. package/runtime/node_modules/caniuse-lite/data/regions/LB.js +1 -1
  855. package/runtime/node_modules/caniuse-lite/data/regions/LC.js +1 -1
  856. package/runtime/node_modules/caniuse-lite/data/regions/LI.js +1 -1
  857. package/runtime/node_modules/caniuse-lite/data/regions/LK.js +1 -1
  858. package/runtime/node_modules/caniuse-lite/data/regions/LR.js +1 -1
  859. package/runtime/node_modules/caniuse-lite/data/regions/LS.js +1 -1
  860. package/runtime/node_modules/caniuse-lite/data/regions/LT.js +1 -1
  861. package/runtime/node_modules/caniuse-lite/data/regions/LU.js +1 -1
  862. package/runtime/node_modules/caniuse-lite/data/regions/LV.js +1 -1
  863. package/runtime/node_modules/caniuse-lite/data/regions/LY.js +1 -1
  864. package/runtime/node_modules/caniuse-lite/data/regions/MA.js +1 -1
  865. package/runtime/node_modules/caniuse-lite/data/regions/MC.js +1 -1
  866. package/runtime/node_modules/caniuse-lite/data/regions/MD.js +1 -1
  867. package/runtime/node_modules/caniuse-lite/data/regions/ME.js +1 -1
  868. package/runtime/node_modules/caniuse-lite/data/regions/MG.js +1 -1
  869. package/runtime/node_modules/caniuse-lite/data/regions/MH.js +1 -1
  870. package/runtime/node_modules/caniuse-lite/data/regions/MK.js +1 -1
  871. package/runtime/node_modules/caniuse-lite/data/regions/ML.js +1 -1
  872. package/runtime/node_modules/caniuse-lite/data/regions/MM.js +1 -1
  873. package/runtime/node_modules/caniuse-lite/data/regions/MN.js +1 -1
  874. package/runtime/node_modules/caniuse-lite/data/regions/MO.js +1 -1
  875. package/runtime/node_modules/caniuse-lite/data/regions/MP.js +1 -1
  876. package/runtime/node_modules/caniuse-lite/data/regions/MQ.js +1 -1
  877. package/runtime/node_modules/caniuse-lite/data/regions/MR.js +1 -1
  878. package/runtime/node_modules/caniuse-lite/data/regions/MS.js +1 -1
  879. package/runtime/node_modules/caniuse-lite/data/regions/MT.js +1 -1
  880. package/runtime/node_modules/caniuse-lite/data/regions/MU.js +1 -1
  881. package/runtime/node_modules/caniuse-lite/data/regions/MV.js +1 -1
  882. package/runtime/node_modules/caniuse-lite/data/regions/MW.js +1 -1
  883. package/runtime/node_modules/caniuse-lite/data/regions/MX.js +1 -1
  884. package/runtime/node_modules/caniuse-lite/data/regions/MY.js +1 -1
  885. package/runtime/node_modules/caniuse-lite/data/regions/MZ.js +1 -1
  886. package/runtime/node_modules/caniuse-lite/data/regions/NA.js +1 -1
  887. package/runtime/node_modules/caniuse-lite/data/regions/NC.js +1 -1
  888. package/runtime/node_modules/caniuse-lite/data/regions/NE.js +1 -1
  889. package/runtime/node_modules/caniuse-lite/data/regions/NF.js +1 -1
  890. package/runtime/node_modules/caniuse-lite/data/regions/NG.js +1 -1
  891. package/runtime/node_modules/caniuse-lite/data/regions/NI.js +1 -1
  892. package/runtime/node_modules/caniuse-lite/data/regions/NL.js +1 -1
  893. package/runtime/node_modules/caniuse-lite/data/regions/NO.js +1 -1
  894. package/runtime/node_modules/caniuse-lite/data/regions/NP.js +1 -1
  895. package/runtime/node_modules/caniuse-lite/data/regions/NR.js +1 -1
  896. package/runtime/node_modules/caniuse-lite/data/regions/NU.js +1 -1
  897. package/runtime/node_modules/caniuse-lite/data/regions/NZ.js +1 -1
  898. package/runtime/node_modules/caniuse-lite/data/regions/OM.js +1 -1
  899. package/runtime/node_modules/caniuse-lite/data/regions/PA.js +1 -1
  900. package/runtime/node_modules/caniuse-lite/data/regions/PE.js +1 -1
  901. package/runtime/node_modules/caniuse-lite/data/regions/PF.js +1 -1
  902. package/runtime/node_modules/caniuse-lite/data/regions/PG.js +1 -1
  903. package/runtime/node_modules/caniuse-lite/data/regions/PH.js +1 -1
  904. package/runtime/node_modules/caniuse-lite/data/regions/PK.js +1 -1
  905. package/runtime/node_modules/caniuse-lite/data/regions/PL.js +1 -1
  906. package/runtime/node_modules/caniuse-lite/data/regions/PM.js +1 -1
  907. package/runtime/node_modules/caniuse-lite/data/regions/PN.js +1 -1
  908. package/runtime/node_modules/caniuse-lite/data/regions/PR.js +1 -1
  909. package/runtime/node_modules/caniuse-lite/data/regions/PS.js +1 -1
  910. package/runtime/node_modules/caniuse-lite/data/regions/PT.js +1 -1
  911. package/runtime/node_modules/caniuse-lite/data/regions/PW.js +1 -1
  912. package/runtime/node_modules/caniuse-lite/data/regions/PY.js +1 -1
  913. package/runtime/node_modules/caniuse-lite/data/regions/QA.js +1 -1
  914. package/runtime/node_modules/caniuse-lite/data/regions/RE.js +1 -1
  915. package/runtime/node_modules/caniuse-lite/data/regions/RO.js +1 -1
  916. package/runtime/node_modules/caniuse-lite/data/regions/RS.js +1 -1
  917. package/runtime/node_modules/caniuse-lite/data/regions/RU.js +1 -1
  918. package/runtime/node_modules/caniuse-lite/data/regions/RW.js +1 -1
  919. package/runtime/node_modules/caniuse-lite/data/regions/SA.js +1 -1
  920. package/runtime/node_modules/caniuse-lite/data/regions/SB.js +1 -1
  921. package/runtime/node_modules/caniuse-lite/data/regions/SC.js +1 -1
  922. package/runtime/node_modules/caniuse-lite/data/regions/SD.js +1 -1
  923. package/runtime/node_modules/caniuse-lite/data/regions/SE.js +1 -1
  924. package/runtime/node_modules/caniuse-lite/data/regions/SG.js +1 -1
  925. package/runtime/node_modules/caniuse-lite/data/regions/SH.js +1 -1
  926. package/runtime/node_modules/caniuse-lite/data/regions/SI.js +1 -1
  927. package/runtime/node_modules/caniuse-lite/data/regions/SK.js +1 -1
  928. package/runtime/node_modules/caniuse-lite/data/regions/SL.js +1 -1
  929. package/runtime/node_modules/caniuse-lite/data/regions/SM.js +1 -1
  930. package/runtime/node_modules/caniuse-lite/data/regions/SN.js +1 -1
  931. package/runtime/node_modules/caniuse-lite/data/regions/SO.js +1 -1
  932. package/runtime/node_modules/caniuse-lite/data/regions/SR.js +1 -1
  933. package/runtime/node_modules/caniuse-lite/data/regions/ST.js +1 -1
  934. package/runtime/node_modules/caniuse-lite/data/regions/SV.js +1 -1
  935. package/runtime/node_modules/caniuse-lite/data/regions/SY.js +1 -1
  936. package/runtime/node_modules/caniuse-lite/data/regions/SZ.js +1 -1
  937. package/runtime/node_modules/caniuse-lite/data/regions/TC.js +1 -1
  938. package/runtime/node_modules/caniuse-lite/data/regions/TD.js +1 -1
  939. package/runtime/node_modules/caniuse-lite/data/regions/TG.js +1 -1
  940. package/runtime/node_modules/caniuse-lite/data/regions/TH.js +1 -1
  941. package/runtime/node_modules/caniuse-lite/data/regions/TJ.js +1 -1
  942. package/runtime/node_modules/caniuse-lite/data/regions/TL.js +1 -1
  943. package/runtime/node_modules/caniuse-lite/data/regions/TM.js +1 -1
  944. package/runtime/node_modules/caniuse-lite/data/regions/TN.js +1 -1
  945. package/runtime/node_modules/caniuse-lite/data/regions/TO.js +1 -1
  946. package/runtime/node_modules/caniuse-lite/data/regions/TR.js +1 -1
  947. package/runtime/node_modules/caniuse-lite/data/regions/TT.js +1 -1
  948. package/runtime/node_modules/caniuse-lite/data/regions/TV.js +1 -1
  949. package/runtime/node_modules/caniuse-lite/data/regions/TW.js +1 -1
  950. package/runtime/node_modules/caniuse-lite/data/regions/TZ.js +1 -1
  951. package/runtime/node_modules/caniuse-lite/data/regions/UA.js +1 -1
  952. package/runtime/node_modules/caniuse-lite/data/regions/UG.js +1 -1
  953. package/runtime/node_modules/caniuse-lite/data/regions/US.js +1 -1
  954. package/runtime/node_modules/caniuse-lite/data/regions/UY.js +1 -1
  955. package/runtime/node_modules/caniuse-lite/data/regions/UZ.js +1 -1
  956. package/runtime/node_modules/caniuse-lite/data/regions/VA.js +1 -1
  957. package/runtime/node_modules/caniuse-lite/data/regions/VC.js +1 -1
  958. package/runtime/node_modules/caniuse-lite/data/regions/VE.js +1 -1
  959. package/runtime/node_modules/caniuse-lite/data/regions/VG.js +1 -1
  960. package/runtime/node_modules/caniuse-lite/data/regions/VI.js +1 -1
  961. package/runtime/node_modules/caniuse-lite/data/regions/VN.js +1 -1
  962. package/runtime/node_modules/caniuse-lite/data/regions/VU.js +1 -1
  963. package/runtime/node_modules/caniuse-lite/data/regions/WF.js +1 -1
  964. package/runtime/node_modules/caniuse-lite/data/regions/WS.js +1 -1
  965. package/runtime/node_modules/caniuse-lite/data/regions/YE.js +1 -1
  966. package/runtime/node_modules/caniuse-lite/data/regions/YT.js +1 -1
  967. package/runtime/node_modules/caniuse-lite/data/regions/ZA.js +1 -1
  968. package/runtime/node_modules/caniuse-lite/data/regions/ZM.js +1 -1
  969. package/runtime/node_modules/caniuse-lite/data/regions/ZW.js +1 -1
  970. package/runtime/node_modules/caniuse-lite/data/regions/alt-af.js +1 -1
  971. package/runtime/node_modules/caniuse-lite/data/regions/alt-an.js +1 -1
  972. package/runtime/node_modules/caniuse-lite/data/regions/alt-as.js +1 -1
  973. package/runtime/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -1
  974. package/runtime/node_modules/caniuse-lite/data/regions/alt-na.js +1 -1
  975. package/runtime/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -1
  976. package/runtime/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -1
  977. package/runtime/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -1
  978. package/runtime/node_modules/caniuse-lite/data/versionGroups.js +1 -1
  979. package/runtime/node_modules/caniuse-lite/package.json +1 -1
  980. package/runtime/node_modules/mediabunny/README.md +1 -5
  981. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +312 -260
  982. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +12 -12
  983. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +12 -12
  984. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +312 -260
  985. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +312 -260
  986. package/runtime/node_modules/mediabunny/dist/modules/src/aes.js +53 -40
  987. package/runtime/node_modules/mediabunny/dist/modules/src/conversion.js +38 -10
  988. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +3 -2
  989. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +78 -78
  990. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +109 -110
  991. package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +23 -11
  992. package/runtime/node_modules/mediabunny/dist/modules/src/muxer.js +41 -22
  993. package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
  994. package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
  995. package/runtime/node_modules/mediabunny/package.json +14 -6
  996. package/runtime/node_modules/mediabunny/src/aes.ts +52 -39
  997. package/runtime/node_modules/mediabunny/src/conversion.ts +49 -10
  998. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +3 -1
  999. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +88 -96
  1000. package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +137 -146
  1001. package/runtime/node_modules/mediabunny/src/media-source.ts +24 -9
  1002. package/runtime/node_modules/mediabunny/src/muxer.ts +52 -33
  1003. package/runtime/node_modules/mediabunny/src/version.ts +1 -1
  1004. package/runtime/node_modules/ws/README.md +2 -3
  1005. package/runtime/node_modules/ws/lib/receiver.js +8 -0
  1006. package/runtime/node_modules/ws/lib/websocket.js +20 -6
  1007. package/runtime/node_modules/ws/package.json +1 -1
  1008. package/runtime/node_modules/zstd-codec/index.js +4 -0
  1009. package/runtime/node_modules/zstd-codec/lib/constants.js +2 -0
  1010. package/runtime/node_modules/zstd-codec/lib/helpers.js +60 -0
  1011. package/runtime/node_modules/zstd-codec/lib/module.js +27 -0
  1012. package/runtime/node_modules/zstd-codec/lib/zstd-codec-binding-wasm.js +21 -0
  1013. package/runtime/node_modules/zstd-codec/lib/zstd-codec-binding.js +63 -0
  1014. package/runtime/node_modules/zstd-codec/lib/zstd-codec.js +363 -0
  1015. package/runtime/node_modules/zstd-codec/lib/zstd-stream.js +116 -0
  1016. package/runtime/node_modules/zstd-codec/package.json +29 -0
  1017. package/runtime/package-lock.json +52 -45
  1018. package/runtime/package.json +1 -0
  1019. package/runtime/server.js +1 -1
  1020. package/runtime/webapp/dist/assets/AiHubPane-DBuhzcId.js +1 -0
  1021. package/runtime/webapp/dist/assets/App-CrZstnCH.css +1 -0
  1022. package/runtime/webapp/dist/assets/App-D3-qxUjs.js +187 -0
  1023. package/runtime/webapp/dist/assets/BrowserLivePanel-BywwOAML.js +76 -0
  1024. package/runtime/webapp/dist/assets/CollaborationDashboard-DQeiZyu9.js +1 -0
  1025. package/runtime/webapp/dist/assets/CollaborationPage-CGymkv8f.js +16 -0
  1026. package/runtime/webapp/dist/assets/{FilePreview-BjbfWw2s.js → FilePreview-CkY_jNql.js} +5 -5
  1027. package/runtime/webapp/dist/assets/FileTree-W85iiqhO.js +11 -0
  1028. package/runtime/webapp/dist/assets/FlowStudioPane-Ccp0FhYn.js +5 -0
  1029. package/runtime/webapp/dist/assets/MessagingBridge-D_cArR8-.js +6 -0
  1030. package/runtime/webapp/dist/assets/MessagingPage-BIgDwGgU.js +7 -0
  1031. package/runtime/webapp/dist/assets/MessagingPage-CpRafjqY.css +1 -0
  1032. package/runtime/webapp/dist/assets/RemoteDesktopPage-Di31a6s4.js +1 -0
  1033. package/runtime/webapp/dist/assets/{smartphone-D7oS3YTz.js → RunningSessionsIcon-BbgfV3Y9.js} +8 -18
  1034. package/runtime/webapp/dist/assets/SessionDashboard-D3n4eFut.css +1 -0
  1035. package/runtime/webapp/dist/assets/SessionDashboard-a7HETCwZ.js +16 -0
  1036. package/runtime/webapp/dist/assets/{SessionDashboardBridge-DYsMZhuH.js → SessionDashboardBridge-DEUcW6SI.js} +1 -1
  1037. package/runtime/webapp/dist/assets/{TerminalPane-CPOiBcye.js → TerminalPane-BLqkE0Sr.js} +2 -2
  1038. package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DCFFqJUU.js → abnfDiagram-VCTEODGH-DeYUTKWn.js} +1 -1
  1039. package/runtime/webapp/dist/assets/arc-Fb_TLw7m.js +1 -0
  1040. package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-DoK3A_n1.js → architectureDiagram-5GKGNRK7-CuFeRT7v.js} +1 -1
  1041. package/runtime/webapp/dist/assets/arrow-left-ChO37N0V.js +6 -0
  1042. package/runtime/webapp/dist/assets/{arrow-right-B0uCZ1Pd.js → arrow-right-CBoNjLZc.js} +1 -1
  1043. package/runtime/webapp/dist/assets/{artifact-links-nzx7joYs.js → artifact-links-DPEFlv87.js} +1 -1
  1044. package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-DgXszyX7.js → blockDiagram-I7D4REHJ-CSQFiZW1.js} +1 -1
  1045. package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-q7KO4v1Q.js → c4Diagram-7LVT6UL2-Dp0yNsZN.js} +1 -1
  1046. package/runtime/webapp/dist/assets/channel-CcOPsanj.js +1 -0
  1047. package/runtime/webapp/dist/assets/chevron-down-DqV6YJGE.js +6 -0
  1048. package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-CH8lOKmL.js → chunk-2Q5K7J3B-HGRodfIv.js} +1 -1
  1049. package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-DwP7xEWd.js → chunk-5VM5RSS4-CBrQNVFD.js} +1 -1
  1050. package/runtime/webapp/dist/assets/{chunk-F27PBJKO-BV3TTaxI.js → chunk-F27PBJKO-DB6uGYpD.js} +1 -1
  1051. package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BbaiG4yG.js → chunk-IMKFNOWR-Dedjjkdt.js} +1 -1
  1052. package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-Dv9x27hI.js → chunk-JWPE2WC7-CFqPSTPh.js} +1 -1
  1053. package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-Uk-GiSLP.js → chunk-POPQ4Y6H-3acvfPpy.js} +1 -1
  1054. package/runtime/webapp/dist/assets/{chunk-SVP7TREG-lFcKEwyL.js → chunk-SVP7TREG-Bn9tMxLG.js} +1 -1
  1055. package/runtime/webapp/dist/assets/{chunk-TICWLB2K-DFZALWPC.js → chunk-TICWLB2K-BjPHa9Ep.js} +1 -1
  1056. package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-8jLPZkMb.js → chunk-XXDRQBXY-pSIpAtkj.js} +1 -1
  1057. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-De9Vn3qI.js +1 -0
  1058. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-De9Vn3qI.js +1 -0
  1059. package/runtime/webapp/dist/assets/clipboard-BvwmdR4z.js +1 -0
  1060. package/runtime/webapp/dist/assets/{codeSyntax-Dgv0FfoZ.js → codeSyntax-Bs__ElW1.js} +3 -3
  1061. package/runtime/webapp/dist/assets/collaboration-DkVTQ-wS.css +1 -0
  1062. package/runtime/webapp/dist/assets/{collaboration-f29NaKWy.js → collaboration-xcnZxf7i.js} +2 -2
  1063. package/runtime/webapp/dist/assets/copilot-7BoBRmFo.png +0 -0
  1064. package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-86P-lxD4.js → cose-bilkent-JH36ORCC-Cc1ea8TO.js} +1 -1
  1065. package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-mtRVdchl.js → cynefin-OW5HDTMX-B2IeHhVa.js} +1 -1
  1066. package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-DhqAIoq6.js → cynefinDiagram-5FMLGOSQ-BeZhQnWx.js} +1 -1
  1067. package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DD9olCTy.js → dagre-GXQ25YYZ-DF08UpVJ.js} +1 -1
  1068. package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-CLGKipLp.js → diagram-S7CK7UJ4-Cx_tPRJp.js} +1 -1
  1069. package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-Dm7uGpUO.js → diagram-UQ7AKVKN-Cb6fFvJt.js} +1 -1
  1070. package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-OZYfwAth.js → diagram-VSXAHHWV-CvuweBru.js} +1 -1
  1071. package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BpQqNFxQ.js → diagram-VX7I27RA-BYouVdoe.js} +1 -1
  1072. package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-BrWsMYCU.js → diagram-Z3DM3KII-DRBjsxYw.js} +1 -1
  1073. package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-BRH-K-J7.js → ebnfDiagram-PWID7BFC-CxHOPzwg.js} +1 -1
  1074. package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-BDNSVr6H.js → erDiagram-RLTQ6QDP-tUK9K8ZD.js} +1 -1
  1075. package/runtime/webapp/dist/assets/external-link-DpecT7Vm.js +6 -0
  1076. package/runtime/webapp/dist/assets/{file-types-XHMBkbNr.js → file-types-CfFmgvNi.js} +4 -9
  1077. package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-DseLK02Y.js → flowDiagram-HODETNUW-BFd8shzR.js} +1 -1
  1078. package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-v_uNZx1g.js → ganttDiagram-EL5Y4UJY-Dt3qJ3nR.js} +1 -1
  1079. package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-EdvVYEMk.js → gitGraphDiagram-WWUBYQGX-L22kw422.js} +1 -1
  1080. package/runtime/webapp/dist/assets/image-plus-Bzr6FXFm.js +6 -0
  1081. package/runtime/webapp/dist/assets/index-C165MF0E.js +489 -0
  1082. package/runtime/webapp/dist/assets/index-IYQjHlQx.css +1 -0
  1083. package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-Ck26xp1i.js → infoDiagram-27XIBGKW-DBrWW4hh.js} +1 -1
  1084. package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-DGnOVObq.js → ishikawaDiagram-5VMMS53U-BiQERurn.js} +1 -1
  1085. package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-S7oKAQs8.js → journeyDiagram-3NMN7TZE-CbuOAsvy.js} +1 -1
  1086. package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-DcrYA4VY.js → kanban-definition-UXKFOSKX-BS0cpYtD.js} +1 -1
  1087. package/runtime/webapp/dist/assets/{layout-CYHINS_I.js → layout-C6lzLyIZ.js} +1 -1
  1088. package/runtime/webapp/dist/assets/{linear-B-lEfto_.js → linear-DOnDPVCl.js} +1 -1
  1089. package/runtime/webapp/dist/assets/{loader-circle-DMWQZenY.js → loader-circle-DzxGeGeP.js} +1 -1
  1090. package/runtime/webapp/dist/assets/{mermaid.core-B3fzlEw9.js → mermaid.core-CIbk74HW.js} +6 -6
  1091. package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-wJkCh55V.js → mindmap-definition-YA3MSWOX-BXA3aIva.js} +1 -1
  1092. package/runtime/webapp/dist/assets/page-oP1ftgSe.js +91 -0
  1093. package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-H4uk2OUO.js → pegDiagram-XKGWAZYB-oUTq5zGX.js} +1 -1
  1094. package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-yLnU_MCb.js → pieDiagram-E7YTZNPT-CES_HFyS.js} +1 -1
  1095. package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-DyD93O4P.js → quadrantDiagram-AXDQQJYC-BDJl9Tah.js} +1 -1
  1096. package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-DZ833xbw.js → railroadDiagram-O6MQD6OU-BCu1VCKA.js} +1 -1
  1097. package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-DJV4nGui.js → requirementDiagram-BXWQKSXE-CqUIqsRU.js} +1 -1
  1098. package/runtime/webapp/dist/assets/{rotate-ccw-CKqo62Ra.js → rotate-ccw-Bjr9jTxM.js} +1 -1
  1099. package/runtime/webapp/dist/assets/{rotate-cw-D-M3ZDSa.js → rotate-cw-A1YTnj9Q.js} +1 -1
  1100. package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-BeOYMFTR.js → sankeyDiagram-P5KCCOFB-DaveIjpG.js} +1 -1
  1101. package/runtime/webapp/dist/assets/search-rB9Vl5Kd.js +6 -0
  1102. package/runtime/webapp/dist/assets/{send-LvtpJMkk.js → send-BEl9srBG.js} +1 -1
  1103. package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-BBcgqG33.js → sequenceDiagram-WJ2MYXX4-C7zRgFw8.js} +1 -1
  1104. package/runtime/webapp/dist/assets/{shield-check-SeEkz1Nd.js → shield-check-C79GaqpX.js} +1 -1
  1105. package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-B0GJZjw0.js → sizeCapture-INFHLROL-BKOrYnP1.js} +1 -1
  1106. package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-BmSvB3vd.js → stateDiagram-D77RDMKH-Cz_WH93D.js} +1 -1
  1107. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dw9aybAU.js +1 -0
  1108. package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-BAZdMUD6.js → swimlanes-42K2YHIH-CbDMTwgn.js} +1 -1
  1109. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CZrm7vi4.js +8 -0
  1110. package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-BSgVFMNG.js → timeline-definition-24CTP7MA-CanMvfCK.js} +1 -1
  1111. package/runtime/webapp/dist/assets/{trash-2-CHYPyYDY.js → trash-2-RnFgAyKW.js} +5 -10
  1112. package/runtime/webapp/dist/assets/types-DguAd3Ud.js +6 -0
  1113. package/runtime/webapp/dist/assets/use-error-notice-CAYVDT8Z.css +1 -0
  1114. package/runtime/webapp/dist/assets/use-error-notice-_MLy2aPZ.js +11 -0
  1115. package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-C-brvbkB.js → vennDiagram-4TSXK5OY-CR-V0-y3.js} +1 -1
  1116. package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-CeqqVR1s.js → wardleyDiagram-VM6X3IG4-CjTtvx6s.js} +1 -1
  1117. package/runtime/webapp/dist/assets/{web-aLPH3xFw.js → web-DPag1EjS.js} +1 -1
  1118. package/runtime/webapp/dist/assets/{web-Dzd7NW_F.js → web-DedGjdA8.js} +1 -1
  1119. package/runtime/webapp/dist/assets/x-Bx8qOEL4.js +6 -0
  1120. package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-mPizwpXM.js → xychartDiagram-S5SC5T6Z-D2959gYR.js} +1 -1
  1121. package/runtime/webapp/dist/index.html +2 -2
  1122. package/runtime/ws-server.mjs +19 -5
  1123. package/runtime/.next/static/chunks/113-b9b8fc001b7cd590.js +0 -1
  1124. package/runtime/.next/static/chunks/app/web/layout-ecfb758d244808a4.js +0 -1
  1125. package/runtime/.next/static/chunks/app/web/page-27145471bd2171c2.js +0 -1
  1126. package/runtime/.next/static/css/afa521adcec25f87.css +0 -1
  1127. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-07pvccxf.mjs +0 -43
  1128. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0rjxgk9e.mjs +0 -18
  1129. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-fpeb751h.mjs +0 -33
  1130. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-jf0rbr11.mjs +0 -17
  1131. package/runtime/webapp/dist/assets/AiHubPane-Cp_tNJNR.js +0 -6
  1132. package/runtime/webapp/dist/assets/App-Cs8U1u-X.js +0 -175
  1133. package/runtime/webapp/dist/assets/App-QWoPBMW0.css +0 -1
  1134. package/runtime/webapp/dist/assets/BrowserLivePanel-B1zYRS_7.js +0 -76
  1135. package/runtime/webapp/dist/assets/CollaborationDashboard-DIVa26zk.js +0 -1
  1136. package/runtime/webapp/dist/assets/CollaborationPage-Fsvkw8ZM.js +0 -16
  1137. package/runtime/webapp/dist/assets/FileTree-C6gg9p4m.js +0 -11
  1138. package/runtime/webapp/dist/assets/FlowStudioPane-CCuxZBVJ.js +0 -5
  1139. package/runtime/webapp/dist/assets/RemoteDesktopPage-DpoYuKhA.js +0 -1
  1140. package/runtime/webapp/dist/assets/SessionDashboard-CAoW5-uN.css +0 -1
  1141. package/runtime/webapp/dist/assets/SessionDashboard-DOWjUIY1.js +0 -26
  1142. package/runtime/webapp/dist/assets/arc-vjNW9DYV.js +0 -1
  1143. package/runtime/webapp/dist/assets/channel-CsnhvX8S.js +0 -1
  1144. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-Bed40USf.js +0 -1
  1145. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-Bed40USf.js +0 -1
  1146. package/runtime/webapp/dist/assets/clipboard-BteN9-AC.js +0 -6
  1147. package/runtime/webapp/dist/assets/collaboration-BiaML8jX.css +0 -1
  1148. package/runtime/webapp/dist/assets/crown-y1qmM0NZ.js +0 -6
  1149. package/runtime/webapp/dist/assets/index--zKd3rTs.js +0 -507
  1150. package/runtime/webapp/dist/assets/index-D0gsdpeQ.css +0 -1
  1151. package/runtime/webapp/dist/assets/page-Cc56wyOt.js +0 -91
  1152. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-CQ9wpJCJ.js +0 -1
  1153. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-8XTJp3Fr.js +0 -8
  1154. /package/runtime/.next/static/{mGwTFWK2dzlY3HjsjZGzh → ngVhkJylacc9Set69K3lG}/_buildManifest.js +0 -0
  1155. /package/runtime/.next/static/{mGwTFWK2dzlY3HjsjZGzh → ngVhkJylacc9Set69K3lG}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=6668,e.ids=[6668],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")},9411:e=>{e.exports=require("node:path")},7387:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>v,requestAsyncStorage:()=>f,routeModule:()=>c,serverHooks:()=>m,staticGenerationAsyncStorage:()=>h});var i={};r.r(i),r.d(i,{GET:()=>u,POST:()=>l,dynamic:()=>p});var o=r(7786),s=r(5042),n=r(2184),a=r(1982),d=r(9001);let p="force-dynamic";async function u(){return Response.json((0,a.dp)().publicView(),{headers:{"cache-control":"no-store"}})}async function l(e){let t=(0,d.o)(e);if(t)return t;try{let t=await e.json();if(!t||"object"!=typeof t||Array.isArray(t))throw new a.kg("设置必须是对象");return Response.json((0,a.dp)().save(t),{headers:{"cache-control":"no-store"}})}catch(e){return Response.json({error:e instanceof Error?e.message:"保存失败"},{status:e instanceof a.kg?e.status:400})}}let c=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/settings/route",pathname:"/api/settings",filename:"route",bundlePath:"app/api/settings/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/settings/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:f,staticGenerationAsyncStorage:h,serverHooks:m}=c,g="/api/settings/route";function v(){return(0,n.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},7786:(e,t,r)=>{e.exports=r(517)},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>n,sr:()=>d});var i=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,i.dirname)((0,i.resolve)(e)),r=`${i.sep}node_modules${i.sep}.bin`;return t.endsWith(r)?(0,i.resolve)(t,"..",".."):t}return(0,i.resolve)(process.cwd())}();function s(e=process.env,t=o){return(0,i.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function n(){return s()}function a(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,i.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,i.resolve)(o,"logs"):(0,i.join)(t,".agent-data","logs")}function d(){return function(e=process.env,t=o){return(0,i.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,n())}},1982:(e,t,r)=>{let i;r.d(t,{dp:()=>l,kg:()=>d});var o=r(1636),s=r(785),n=r(6005);let a="__agentroam_stored_secret__";class d extends Error{constructor(e,t=400){super(e),this.status=t}}class p{constructor(e,t=process.env){this.baseDir=e,this.store=new o.SQLiteSettingsStore(e),null===this.store.get("sharedSettingsInitialized")&&(0,o.getDatabase)(e).db.transaction(()=>{if(!this.store.get("profiles")&&!this.store.get("apiKey")&&t.AGENT_API_KEY){let e={id:"server-default",name:"服务端默认",provider:t.AGENT_MODEL_PROVIDER||"openai",modelId:t.AGENT_MODEL_ID||"gpt-4o",apiKey:t.AGENT_API_KEY,baseUrl:t.AGENT_BASE_URL||""};this.store.saveAll({...this.store.getAll(),profiles:[e],activeProfileId:e.id,modelProvider:e.provider,modelId:e.modelId,apiKey:e.apiKey,baseUrl:e.baseUrl,isConfigured:!0})}this.store.set("sharedSettingsInitialized","1")})()}read(){let e=[];try{e=JSON.parse(this.store.get("activeAgentIds")||"[]")}catch{}return{...this.store.getAll(),activeAgentIds:e,revision:Number(this.store.get("sharedSettingsRevision")||0)}}publicView(){let e=this.read();return{...e,settingsSpaceId:(0,n.createHash)("sha256").update(this.baseDir).digest("hex").slice(0,24),apiKey:e.apiKey?a:"",profiles:e.profiles.map(e=>({...e,apiKey:e.apiKey?a:""}))}}save(e){return(0,o.getDatabase)(this.baseDir).db.transaction(()=>{let t=this.read();if(void 0!==e.revision&&e.revision!==t.revision)throw new d("设置已被另一端修改,请重新加载后保存",409);let r={...t};for(let t of["modelProvider","modelId","baseUrl","workingDirectory","activeProfileId"])if(void 0!==e[t]){if("string"!=typeof e[t])throw new d(`${t} 必须是字符串`);r[t]=e[t]}if(void 0!==e.maxIterations){if("number"!=typeof e.maxIterations||!Number.isSafeInteger(e.maxIterations)||e.maxIterations<0)throw new d("maxIterations 必须是非负整数");r.maxIterations=e.maxIterations}if(void 0!==e.contextWindow){if("number"!=typeof e.contextWindow||!Number.isFinite(e.contextWindow)||e.contextWindow<8||e.contextWindow>2e3)throw new d("contextWindow 超出范围");r.contextWindow=e.contextWindow}if(void 0!==e.reasoningEffort){if(!["off","low","medium","high"].includes(String(e.reasoningEffort)))throw new d("reasoningEffort 无效");r.reasoningEffort=e.reasoningEffort}if(void 0!==e.taskNotifications){if(!e.taskNotifications||"object"!=typeof e.taskNotifications||Array.isArray(e.taskNotifications))throw new d("taskNotifications 必须是对象");let t=e.taskNotifications;for(let e of["completionEnabled","soundEnabled","notifyWhileForeground"])if(void 0!==t[e]&&"boolean"!=typeof t[e])throw new d(`taskNotifications.${e} 必须是布尔值`);r.taskNotifications=(0,o.resolveTaskNotificationPreferences)({...r.taskNotifications,...t})}if(void 0!==e.apiKey&&(r.apiKey=u(e.apiKey,t.apiKey)),void 0!==e.profiles){if(!Array.isArray(e.profiles)||e.profiles.length>100)throw new d("profiles 必须是数组");let i=new Set;r.profiles=e.profiles.map(e=>{if(!e||"object"!=typeof e)throw new d("profile 无效");for(let t of["id","name","provider","modelId","baseUrl"])if("string"!=typeof e[t])throw new d(`profile.${t} 无效`);if(!e.id||i.has(e.id))throw new d("profile.id 重复或为空");if(i.add(e.id),!["openai","anthropic","deepseek","aihub"].includes(e.provider))throw new d("不支持的模型提供方");if(void 0!==e.maxOutputTokens&&("number"!=typeof e.maxOutputTokens||!Number.isInteger(e.maxOutputTokens)||e.maxOutputTokens<256||e.maxOutputTokens>131072))throw new d("profile.maxOutputTokens 超出范围");if(void 0!==e.requestTimeoutSeconds&&("number"!=typeof e.requestTimeoutSeconds||!Number.isInteger(e.requestTimeoutSeconds)||e.requestTimeoutSeconds<30||e.requestTimeoutSeconds>1800))throw new d("profile.requestTimeoutSeconds 超出范围");return{id:e.id,name:e.name,provider:e.provider,modelId:e.modelId,baseUrl:e.baseUrl,apiKey:u(e.apiKey,t.profiles.find(t=>t.id===e.id)?.apiKey||""),...void 0===e.maxOutputTokens?{}:{maxOutputTokens:e.maxOutputTokens},...void 0===e.requestTimeoutSeconds?{}:{requestTimeoutSeconds:e.requestTimeoutSeconds}}})}let i=r.profiles.find(e=>e.id===r.activeProfileId);if(r.activeProfileId&&!i)throw new d("找不到当前配置档案");if(i&&Object.assign(r,{modelProvider:i.provider,modelId:i.modelId,apiKey:i.apiKey,baseUrl:i.baseUrl}),void 0!==e.activeAgentIds){if(!Array.isArray(e.activeAgentIds)||!e.activeAgentIds.every(e=>"string"==typeof e))throw new d("activeAgentIds 无效");r.activeAgentIds=[...new Set(e.activeAgentIds)]}return r.isConfigured="aihub"===r.modelProvider?!!r.modelId:!!(r.apiKey&&r.modelId),this.store.saveAll(r),this.store.set("activeAgentIds",JSON.stringify(r.activeAgentIds)),this.store.set("sharedSettingsRevision",String(t.revision+1)),this.publicView()})()}}function u(e,t){if(void 0===e||""===e||e===a)return t;if("string"!=typeof e||e.length>16384)throw new d("apiKey 无效");return e}function l(){return i??=new p((0,s.kO)())}},9001:(e,t,r)=>{r.d(t,{o:()=>o});let i=new Set(["capacitor://localhost","ionic://localhost"]);function o(e){if(!e.headers.get("content-type")?.toLowerCase().startsWith("application/json"))return Response.json({error:"JSON required"},{status:415});let t=e.headers.get("origin");if(!t||i.has(t))return null;let r=new URL(e.url),o="1"===process.env.AGENT_TRUST_TUNNEL_PROXY,s=o?e.headers.get("x-forwarded-host")?.split(",")[0].trim()||e.headers.get("host")||r.host:e.headers.get("host")||r.host,n=o&&e.headers.get("x-forwarded-proto")?.split(",")[0].trim()||r.protocol.slice(0,-1);return t!==`${n}://${s}`?Response.json({error:"Cross-origin write denied"},{status:403}):null}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[8375],()=>r(7387));module.exports=i})();
1
+ "use strict";(()=>{var e={};e.id=6668,e.ids=[6668],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")},9411:e=>{e.exports=require("node:path")},9381:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>v,requestAsyncStorage:()=>f,routeModule:()=>c,serverHooks:()=>g,staticGenerationAsyncStorage:()=>h});var i={};r.r(i),r.d(i,{GET:()=>l,POST:()=>u,dynamic:()=>p});var o=r(7786),s=r(5042),n=r(2184),a=r(1982),d=r(9001);let p="force-dynamic";async function l(){return Response.json((0,a.dp)().publicView(),{headers:{"cache-control":"no-store"}})}async function u(e){let t=(0,d.o)(e);if(t)return t;try{let t=await e.json();if(!t||"object"!=typeof t||Array.isArray(t))throw new a.kg("设置必须是对象");return Response.json((0,a.dp)().save(t),{headers:{"cache-control":"no-store"}})}catch(e){return Response.json({error:e instanceof Error?e.message:"保存失败"},{status:e instanceof a.kg?e.status:400})}}let c=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/settings/route",pathname:"/api/settings",filename:"route",bundlePath:"app/api/settings/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/settings/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:f,staticGenerationAsyncStorage:h,serverHooks:g}=c,m="/api/settings/route";function v(){return(0,n.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:h})}},7786:(e,t,r)=>{e.exports=r(517)},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>n,sr:()=>d});var i=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,i.dirname)((0,i.resolve)(e)),r=`${i.sep}node_modules${i.sep}.bin`;return t.endsWith(r)?(0,i.resolve)(t,"..",".."):t}return(0,i.resolve)(process.cwd())}();function s(e=process.env,t=o){return(0,i.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function n(){return s()}function a(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,i.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,i.resolve)(o,"logs"):(0,i.join)(t,".agent-data","logs")}function d(){return function(e=process.env,t=o){return(0,i.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,n())}},1982:(e,t,r)=>{let i;r.d(t,{dp:()=>u,kg:()=>d});var o=r(1636),s=r(785),n=r(6005);let a="__agentroam_stored_secret__";class d extends Error{constructor(e,t=400){super(e),this.status=t}}class p{constructor(e,t=process.env){this.baseDir=e,this.store=new o.SQLiteSettingsStore(e),null===this.store.get("sharedSettingsInitialized")&&(0,o.getDatabase)(e).db.transaction(()=>{if(!this.store.get("profiles")&&!this.store.get("apiKey")&&t.AGENT_API_KEY){let e={id:"server-default",name:"服务端默认",provider:t.AGENT_MODEL_PROVIDER||"openai",modelId:t.AGENT_MODEL_ID||"gpt-4o",apiKey:t.AGENT_API_KEY,baseUrl:t.AGENT_BASE_URL||""};this.store.saveAll({...this.store.getAll(),profiles:[e],activeProfileId:e.id,modelProvider:e.provider,modelId:e.modelId,apiKey:e.apiKey,baseUrl:e.baseUrl,isConfigured:!0})}this.store.set("sharedSettingsInitialized","1")})()}read(){let e=[];try{e=JSON.parse(this.store.get("activeAgentIds")||"[]")}catch{}return{...this.store.getAll(),activeAgentIds:e,revision:Number(this.store.get("sharedSettingsRevision")||0)}}publicView(){let e=this.read();return{...e,settingsSpaceId:(0,n.createHash)("sha256").update(this.baseDir).digest("hex").slice(0,24),apiKey:e.apiKey?a:"",profiles:e.profiles.map(e=>({...e,apiKey:e.apiKey?a:""}))}}save(e){return(0,o.getDatabase)(this.baseDir).db.transaction(()=>{let t=this.read();if(void 0!==e.revision&&e.revision!==t.revision)throw new d("设置已被另一端修改,请重新加载后保存",409);let r={...t};for(let t of["modelProvider","modelId","baseUrl","workingDirectory","activeProfileId"])if(void 0!==e[t]){if("string"!=typeof e[t])throw new d(`${t} 必须是字符串`);r[t]=e[t]}if(void 0!==e.maxIterations){if("number"!=typeof e.maxIterations||!Number.isSafeInteger(e.maxIterations)||e.maxIterations<0)throw new d("maxIterations 必须是非负整数");r.maxIterations=e.maxIterations}if(void 0!==e.contextWindow){if("number"!=typeof e.contextWindow||!Number.isFinite(e.contextWindow)||e.contextWindow<8||e.contextWindow>2e3)throw new d("contextWindow 超出范围");r.contextWindow=e.contextWindow}if(void 0!==e.reasoningEffort){if(!["off","low","medium","high"].includes(String(e.reasoningEffort)))throw new d("reasoningEffort 无效");r.reasoningEffort=e.reasoningEffort}if(void 0!==e.taskNotifications){if(!e.taskNotifications||"object"!=typeof e.taskNotifications||Array.isArray(e.taskNotifications))throw new d("taskNotifications 必须是对象");let t=e.taskNotifications;for(let e of["completionEnabled","soundEnabled","notifyWhileForeground"])if(void 0!==t[e]&&"boolean"!=typeof t[e])throw new d(`taskNotifications.${e} 必须是布尔值`);r.taskNotifications=(0,o.resolveTaskNotificationPreferences)({...r.taskNotifications,...t})}if(void 0!==e.apiKey&&(r.apiKey=l(e.apiKey,t.apiKey)),void 0!==e.profiles){if(!Array.isArray(e.profiles)||e.profiles.length>100)throw new d("profiles 必须是数组");let i=new Set;r.profiles=e.profiles.map(e=>{if(!e||"object"!=typeof e)throw new d("profile 无效");for(let t of["id","name","provider","modelId","baseUrl"])if("string"!=typeof e[t])throw new d(`profile.${t} 无效`);if(!e.id||i.has(e.id))throw new d("profile.id 重复或为空");if(i.add(e.id),!["openai","anthropic","deepseek","aihub"].includes(e.provider))throw new d("不支持的模型提供方");if(void 0!==e.maxOutputTokens&&("number"!=typeof e.maxOutputTokens||!Number.isInteger(e.maxOutputTokens)||e.maxOutputTokens<256||e.maxOutputTokens>131072))throw new d("profile.maxOutputTokens 超出范围");if(void 0!==e.requestTimeoutSeconds&&("number"!=typeof e.requestTimeoutSeconds||!Number.isInteger(e.requestTimeoutSeconds)||e.requestTimeoutSeconds<30||e.requestTimeoutSeconds>1800))throw new d("profile.requestTimeoutSeconds 超出范围");return{id:e.id,name:e.name,provider:e.provider,modelId:e.modelId,baseUrl:e.baseUrl,apiKey:l(e.apiKey,t.profiles.find(t=>t.id===e.id)?.apiKey||""),...void 0===e.maxOutputTokens?{}:{maxOutputTokens:e.maxOutputTokens},...void 0===e.requestTimeoutSeconds?{}:{requestTimeoutSeconds:e.requestTimeoutSeconds}}})}let i=r.profiles.find(e=>e.id===r.activeProfileId);if(r.activeProfileId&&!i)throw new d("找不到当前配置档案");if(i&&Object.assign(r,{modelProvider:i.provider,modelId:i.modelId,apiKey:i.apiKey,baseUrl:i.baseUrl}),void 0!==e.activeAgentIds){if(!Array.isArray(e.activeAgentIds)||!e.activeAgentIds.every(e=>"string"==typeof e))throw new d("activeAgentIds 无效");r.activeAgentIds=[...new Set(e.activeAgentIds)]}return r.isConfigured="aihub"===r.modelProvider?!!r.modelId:!!(r.apiKey&&r.modelId),this.store.saveAll(r),this.store.set("activeAgentIds",JSON.stringify(r.activeAgentIds)),this.store.set("sharedSettingsRevision",String(t.revision+1)),this.publicView()})()}}function l(e,t){if(void 0===e||""===e||e===a)return t;if("string"!=typeof e||e.length>16384)throw new d("apiKey 无效");return e}function u(){return i??=new p((0,s.kO)())}},9001:(e,t,r)=>{r.d(t,{o:()=>o});let i=new Set(["capacitor://localhost","ionic://localhost"]);function o(e){if(!e.headers.get("content-type")?.toLowerCase().startsWith("application/json"))return Response.json({error:"JSON required"},{status:415});let t=e.headers.get("origin");if(!t||i.has(t))return null;let r=new URL(e.url),o="1"===process.env.AGENT_TRUST_TUNNEL_PROXY,s=o?e.headers.get("x-forwarded-host")?.split(",")[0].trim()||e.headers.get("host")||r.host:e.headers.get("host")||r.host,n=o&&e.headers.get("x-forwarded-proto")?.split(",")[0].trim()||r.protocol.slice(0,-1);return t!==`${n}://${s}`?Response.json({error:"Cross-origin write denied"},{status:403}):null}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[8375],()=>r(9381));module.exports=i})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=1731,e.ids=[1731],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},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")},549:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>x,patchFetch:()=>g,requestAsyncStorage:()=>m,routeModule:()=>c,serverHooks:()=>f,staticGenerationAsyncStorage:()=>h});var s={};t.r(s),t.d(s,{GET:()=>u,POST:()=>d});var i=t(7786),a=t(5042),o=t(2184),n=t(1890),p=t(1636),l=t(4621);async function u(){let e=await (0,l.i)().call("listSkills",[]);return n.NextResponse.json(e.map(e=>({name:e.name,description:e.description,triggers:e.triggers,filePath:e.filePath})))}async function d(e){try{let r=await e.json(),t=new p.SkillLoader,s=(0,l.i)().skills,i=[];if(r.filePath){let e=await t.loadFromFile(r.filePath);await s.save(e),i.push({name:e.name,description:e.description})}else if(!r.dirPath)return n.NextResponse.json({error:"filePath or dirPath is required"},{status:400});else for(let e of(await t.loadFromDirectory(r.dirPath)))await s.save(await t.loadFromFile(e.filePath)),i.push({name:e.name,description:e.description});return n.NextResponse.json({status:"imported",count:i.length,skills:i})}catch(e){return n.NextResponse.json({error:e instanceof Error?e.message:"Skill import failed"},{status:500})}}let c=new i.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/skills/route",pathname:"/api/skills",filename:"route",bundlePath:"app/api/skills/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/skills/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:m,staticGenerationAsyncStorage:h,serverHooks:f}=c,x="/api/skills/route";function g(){return(0,o.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:h})}}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8375,6703,4621],()=>t(549));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=1731,e.ids=[1731],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},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")},5941:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>x,patchFetch:()=>g,requestAsyncStorage:()=>m,routeModule:()=>c,serverHooks:()=>f,staticGenerationAsyncStorage:()=>h});var s={};t.r(s),t.d(s,{GET:()=>u,POST:()=>d});var i=t(7786),a=t(5042),o=t(2184),n=t(1890),l=t(1636),p=t(4621);async function u(){let e=await (0,p.i)().call("listSkills",[]);return n.NextResponse.json(e.map(e=>({name:e.name,description:e.description,triggers:e.triggers,filePath:e.filePath})))}async function d(e){try{let r=await e.json(),t=new l.SkillLoader,s=(0,p.i)().skills,i=[];if(r.filePath){let e=await t.loadFromFile(r.filePath);await s.save(e),i.push({name:e.name,description:e.description})}else if(!r.dirPath)return n.NextResponse.json({error:"filePath or dirPath is required"},{status:400});else for(let e of(await t.loadFromDirectory(r.dirPath)))await s.save(await t.loadFromFile(e.filePath)),i.push({name:e.name,description:e.description});return n.NextResponse.json({status:"imported",count:i.length,skills:i})}catch(e){return n.NextResponse.json({error:e instanceof Error?e.message:"Skill import failed"},{status:500})}}let c=new i.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/skills/route",pathname:"/api/skills",filename:"route",bundlePath:"app/api/skills/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/skills/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:m,staticGenerationAsyncStorage:h,serverHooks:f}=c,x="/api/skills/route";function g(){return(0,o.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:h})}}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8375,6703,4621],()=>t(5941));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=2489,e.ids=[2489],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")},551:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>y,patchFetch:()=>f,requestAsyncStorage:()=>p,routeModule:()=>d,serverHooks:()=>h,staticGenerationAsyncStorage:()=>g});var o={};r.r(o),r.d(o,{DELETE:()=>u,PUT:()=>c});var s=r(7786),n=r(5042),i=r(2184),a=r(9001),l=r(8615);async function c(e,{params:t}){let r=(0,a.o)(e);if(r)return r;try{if(!await (0,l.cm)().get(t.policyId))return Response.json({error:"Tool policy not found",code:"TOOL_POLICY_NOT_FOUND"},{status:404});let r=await e.json();if(!r||"object"!=typeof r||Array.isArray(r))return Response.json({error:"Tool policy must be an object",code:"INVALID_TOOL_POLICY"},{status:422});if("id"in r&&r.id!==t.policyId)return Response.json({error:"Tool policy ID cannot be changed",code:"INVALID_TOOL_POLICY"},{status:422});return Response.json(await (0,l.cm)().save({...r,id:t.policyId},(0,l.jw)()))}catch(e){return(0,l.H5)(e)}}async function u(e,{params:t}){return(0,a.o)(e)||(await (0,l.cm)().delete(t.policyId)?Response.json({deleted:!0,policyId:t.policyId}):Response.json({error:"Tool policy not found",code:"TOOL_POLICY_NOT_FOUND"},{status:404}))}let d=new s.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/tool-policies/[policyId]/route",pathname:"/api/tool-policies/[policyId]",filename:"route",bundlePath:"app/api/tool-policies/[policyId]/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/tool-policies/[policyId]/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:p,staticGenerationAsyncStorage:g,serverHooks:h}=d,y="/api/tool-policies/[policyId]/route";function f(){return(0,i.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:g})}},7786:(e,t,r)=>{e.exports=r(517)},6361:(e,t,r)=>{r.d(t,{Q:()=>i,e:()=>n});var o=r(1636),s=r(7519);function n(){let e=new o.ToolRegistry;(0,o.registerBuiltinTools)(e);let t=new o.SkillRegistry;for(let r of(e.register(new o.SkillDiscoverTool(t,null)),e.register(new o.SkillLoadTool(t,null)),s.agentHost.getBuilder().getToolRegistry().getAll()))e.register(r);return e.register(new o.DispatchAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; dispatch runs inside a Customer Agent session"}))),e.register(new o.SpawnAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; spawning runs inside a dynamic Customer Agent session"}))),e.register(new o.WaitAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; dispatch runs inside a Customer Agent session"}))),e}function i(){return n().getAll().map(e=>e.name).sort()}},1489:(e,t,r)=>{r.d(t,{N:()=>l});var o=r(1636),s=r(2847),n=r(785);class i{constructor(){this.tasks=new o.CronTasks((0,n.kO)()),this.scheduler=new s.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:o}=await Promise.all([r.e(7519),r.e(732)]).then(r.bind(r,732)),s=e.sessionId;s&&await t.getSessionStore().get(s)||(s=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:s})),await o().enqueue(s,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 l(){return a.__sharedCronService??=new i}},9001:(e,t,r)=>{r.d(t,{o:()=>s});let o=new Set(["capacitor://localhost","ionic://localhost"]);function s(e){if(!e.headers.get("content-type")?.toLowerCase().startsWith("application/json"))return Response.json({error:"JSON required"},{status:415});let t=e.headers.get("origin");if(!t||o.has(t))return null;let r=new URL(e.url),s="1"===process.env.AGENT_TRUST_TUNNEL_PROXY,n=s?e.headers.get("x-forwarded-host")?.split(",")[0].trim()||e.headers.get("host")||r.host:e.headers.get("host")||r.host,i=s&&e.headers.get("x-forwarded-proto")?.split(",")[0].trim()||r.protocol.slice(0,-1);return t!==`${i}://${n}`?Response.json({error:"Cross-origin write denied"},{status:403}):null}},8615:(e,t,r)=>{let o;r.d(t,{H5:()=>u,cm:()=>l,jw:()=>c});var s=r(1636),n=r(785),i=r(6361);class a{constructor(e=(0,n.kO)()){this.store=new s.SQLiteToolExecutionPolicyStore(e)}list(){return this.store.list()}get(e){return this.store.get(e)}async summaries(){return(await this.store.list()).filter(e=>e.enabled).map(s.toolExecutionPolicySummary)}save(e,t){let r=(0,s.validateToolExecutionPolicy)(e,{knownTools:t,requireExecutables:!0});return this.store.save(r)}delete(e){return this.store.delete(e)}}function l(){return o??=new a}function c(){return(0,i.Q)()}function u(e){let t=e instanceof s.ToolExecutionPolicyError?422:400;return Response.json({error:e instanceof Error?e.message:"Tool policy request failed",code:e instanceof s.ToolExecutionPolicyError?e.code:"INVALID_TOOL_POLICY"},{status:t})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),o=t.X(0,[8375,4621,7519],()=>r(551));module.exports=o})();
1
+ "use strict";(()=>{var e={};e.id=2489,e.ids=[2489],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")},9708:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>y,patchFetch:()=>f,requestAsyncStorage:()=>p,routeModule:()=>d,serverHooks:()=>h,staticGenerationAsyncStorage:()=>g});var o={};r.r(o),r.d(o,{DELETE:()=>u,PUT:()=>c});var s=r(7786),n=r(5042),i=r(2184),a=r(9001),l=r(8615);async function c(e,{params:t}){let r=(0,a.o)(e);if(r)return r;try{if(!await (0,l.cm)().get(t.policyId))return Response.json({error:"Tool policy not found",code:"TOOL_POLICY_NOT_FOUND"},{status:404});let r=await e.json();if(!r||"object"!=typeof r||Array.isArray(r))return Response.json({error:"Tool policy must be an object",code:"INVALID_TOOL_POLICY"},{status:422});if("id"in r&&r.id!==t.policyId)return Response.json({error:"Tool policy ID cannot be changed",code:"INVALID_TOOL_POLICY"},{status:422});return Response.json(await (0,l.cm)().save({...r,id:t.policyId},(0,l.jw)()))}catch(e){return(0,l.H5)(e)}}async function u(e,{params:t}){return(0,a.o)(e)||(await (0,l.cm)().delete(t.policyId)?Response.json({deleted:!0,policyId:t.policyId}):Response.json({error:"Tool policy not found",code:"TOOL_POLICY_NOT_FOUND"},{status:404}))}let d=new s.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/tool-policies/[policyId]/route",pathname:"/api/tool-policies/[policyId]",filename:"route",bundlePath:"app/api/tool-policies/[policyId]/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/tool-policies/[policyId]/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:p,staticGenerationAsyncStorage:g,serverHooks:h}=d,y="/api/tool-policies/[policyId]/route";function f(){return(0,i.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:g})}},7786:(e,t,r)=>{e.exports=r(517)},6361:(e,t,r)=>{r.d(t,{Q:()=>i,e:()=>n});var o=r(1636),s=r(7519);function n(){let e=new o.ToolRegistry;(0,o.registerBuiltinTools)(e);let t=new o.SkillRegistry;for(let r of(e.register(new o.SkillDiscoverTool(t,null)),e.register(new o.SkillLoadTool(t,null)),s.agentHost.getBuilder().getToolRegistry().getAll()))e.register(r);return e.register(new o.DispatchAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; dispatch runs inside a Customer Agent session"}))),e.register(new o.SpawnAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; spawning runs inside a dynamic Customer Agent session"}))),e.register(new o.WaitAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; dispatch runs inside a Customer Agent session"}))),e}function i(){return n().getAll().map(e=>e.name).sort()}},1489:(e,t,r)=>{r.d(t,{N:()=>l});var o=r(1636),s=r(2847),n=r(785);class i{constructor(){this.tasks=new o.CronTasks((0,n.kO)()),this.scheduler=new s.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:o}=await Promise.all([r.e(7519),r.e(732)]).then(r.bind(r,732)),s=e.sessionId;s&&await t.getSessionStore().get(s)||(s=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:s})),await o().enqueue(s,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 l(){return a.__sharedCronService??=new i}},9001:(e,t,r)=>{r.d(t,{o:()=>s});let o=new Set(["capacitor://localhost","ionic://localhost"]);function s(e){if(!e.headers.get("content-type")?.toLowerCase().startsWith("application/json"))return Response.json({error:"JSON required"},{status:415});let t=e.headers.get("origin");if(!t||o.has(t))return null;let r=new URL(e.url),s="1"===process.env.AGENT_TRUST_TUNNEL_PROXY,n=s?e.headers.get("x-forwarded-host")?.split(",")[0].trim()||e.headers.get("host")||r.host:e.headers.get("host")||r.host,i=s&&e.headers.get("x-forwarded-proto")?.split(",")[0].trim()||r.protocol.slice(0,-1);return t!==`${i}://${n}`?Response.json({error:"Cross-origin write denied"},{status:403}):null}},8615:(e,t,r)=>{let o;r.d(t,{H5:()=>u,cm:()=>l,jw:()=>c});var s=r(1636),n=r(785),i=r(6361);class a{constructor(e=(0,n.kO)()){this.store=new s.SQLiteToolExecutionPolicyStore(e)}list(){return this.store.list()}get(e){return this.store.get(e)}async summaries(){return(await this.store.list()).filter(e=>e.enabled).map(s.toolExecutionPolicySummary)}save(e,t){let r=(0,s.validateToolExecutionPolicy)(e,{knownTools:t,requireExecutables:!0});return this.store.save(r)}delete(e){return this.store.delete(e)}}function l(){return o??=new a}function c(){return(0,i.Q)()}function u(e){let t=e instanceof s.ToolExecutionPolicyError?422:400;return Response.json({error:e instanceof Error?e.message:"Tool policy request failed",code:e instanceof s.ToolExecutionPolicyError?e.code:"INVALID_TOOL_POLICY"},{status:t})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),o=t.X(0,[8375,4621,7519],()=>r(9708));module.exports=o})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=5913,e.ids=[5913],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")},311:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>y,requestAsyncStorage:()=>g,routeModule:()=>p,serverHooks:()=>m,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{GET:()=>c,POST:()=>d,dynamic:()=>u});var o=r(7786),n=r(5042),i=r(2184),a=r(9001),l=r(8615);let u="force-dynamic";async function c(){return Response.json({policies:await (0,l.cm)().list(),tools:(0,l.jw)()},{headers:{"cache-control":"no-store"}})}async function d(e){let t=(0,a.o)(e);if(t)return t;try{let t=await e.json();if(t&&"object"==typeof t&&!Array.isArray(t)&&"string"==typeof t.id&&await (0,l.cm)().get(t.id.trim()))return Response.json({error:"Tool policy already exists",code:"TOOL_POLICY_EXISTS"},{status:409});return Response.json(await (0,l.cm)().save(t,(0,l.jw)()),{status:201})}catch(e){return(0,l.H5)(e)}}let p=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/tool-policies/route",pathname:"/api/tool-policies",filename:"route",bundlePath:"app/api/tool-policies/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/tool-policies/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:g,staticGenerationAsyncStorage:h,serverHooks:m}=p,f="/api/tool-policies/route";function y(){return(0,i.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},7786:(e,t,r)=>{e.exports=r(517)},6361:(e,t,r)=>{r.d(t,{Q:()=>i,e:()=>n});var s=r(1636),o=r(7519);function n(){let e=new s.ToolRegistry;(0,s.registerBuiltinTools)(e);let t=new s.SkillRegistry;for(let r of(e.register(new s.SkillDiscoverTool(t,null)),e.register(new s.SkillLoadTool(t,null)),o.agentHost.getBuilder().getToolRegistry().getAll()))e.register(r);return e.register(new s.DispatchAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; dispatch runs inside a Customer Agent session"}))),e.register(new s.SpawnAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; spawning runs inside a dynamic Customer Agent session"}))),e.register(new s.WaitAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; dispatch runs inside a Customer Agent session"}))),e}function i(){return n().getAll().map(e=>e.name).sort()}},1489:(e,t,r)=>{r.d(t,{N:()=>l});var s=r(1636),o=r(2847),n=r(785);class i{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: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)),o=e.sessionId;o&&await t.getSessionStore().get(o)||(o=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:o})),await s().enqueue(o,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 l(){return a.__sharedCronService??=new i}},9001:(e,t,r)=>{r.d(t,{o:()=>o});let s=new Set(["capacitor://localhost","ionic://localhost"]);function o(e){if(!e.headers.get("content-type")?.toLowerCase().startsWith("application/json"))return Response.json({error:"JSON required"},{status:415});let t=e.headers.get("origin");if(!t||s.has(t))return null;let r=new URL(e.url),o="1"===process.env.AGENT_TRUST_TUNNEL_PROXY,n=o?e.headers.get("x-forwarded-host")?.split(",")[0].trim()||e.headers.get("host")||r.host:e.headers.get("host")||r.host,i=o&&e.headers.get("x-forwarded-proto")?.split(",")[0].trim()||r.protocol.slice(0,-1);return t!==`${i}://${n}`?Response.json({error:"Cross-origin write denied"},{status:403}):null}},8615:(e,t,r)=>{let s;r.d(t,{H5:()=>c,cm:()=>l,jw:()=>u});var o=r(1636),n=r(785),i=r(6361);class a{constructor(e=(0,n.kO)()){this.store=new o.SQLiteToolExecutionPolicyStore(e)}list(){return this.store.list()}get(e){return this.store.get(e)}async summaries(){return(await this.store.list()).filter(e=>e.enabled).map(o.toolExecutionPolicySummary)}save(e,t){let r=(0,o.validateToolExecutionPolicy)(e,{knownTools:t,requireExecutables:!0});return this.store.save(r)}delete(e){return this.store.delete(e)}}function l(){return s??=new a}function u(){return(0,i.Q)()}function c(e){let t=e instanceof o.ToolExecutionPolicyError?422:400;return Response.json({error:e instanceof Error?e.message:"Tool policy request failed",code:e instanceof o.ToolExecutionPolicyError?e.code:"INVALID_TOOL_POLICY"},{status:t})}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,4621,7519],()=>r(311));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=5913,e.ids=[5913],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")},6069:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>y,requestAsyncStorage:()=>g,routeModule:()=>p,serverHooks:()=>m,staticGenerationAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{GET:()=>c,POST:()=>d,dynamic:()=>u});var o=r(7786),n=r(5042),i=r(2184),a=r(9001),l=r(8615);let u="force-dynamic";async function c(){return Response.json({policies:await (0,l.cm)().list(),tools:(0,l.jw)()},{headers:{"cache-control":"no-store"}})}async function d(e){let t=(0,a.o)(e);if(t)return t;try{let t=await e.json();if(t&&"object"==typeof t&&!Array.isArray(t)&&"string"==typeof t.id&&await (0,l.cm)().get(t.id.trim()))return Response.json({error:"Tool policy already exists",code:"TOOL_POLICY_EXISTS"},{status:409});return Response.json(await (0,l.cm)().save(t,(0,l.jw)()),{status:201})}catch(e){return(0,l.H5)(e)}}let p=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/tool-policies/route",pathname:"/api/tool-policies",filename:"route",bundlePath:"app/api/tool-policies/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/tool-policies/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:g,staticGenerationAsyncStorage:h,serverHooks:m}=p,f="/api/tool-policies/route";function y(){return(0,i.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},7786:(e,t,r)=>{e.exports=r(517)},6361:(e,t,r)=>{r.d(t,{Q:()=>i,e:()=>n});var s=r(1636),o=r(7519);function n(){let e=new s.ToolRegistry;(0,s.registerBuiltinTools)(e);let t=new s.SkillRegistry;for(let r of(e.register(new s.SkillDiscoverTool(t,null)),e.register(new s.SkillLoadTool(t,null)),o.agentHost.getBuilder().getToolRegistry().getAll()))e.register(r);return e.register(new s.DispatchAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; dispatch runs inside a Customer Agent session"}))),e.register(new s.SpawnAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; spawning runs inside a dynamic Customer Agent session"}))),e.register(new s.WaitAgentTool(async()=>({status:"failed",agentName:"",subSessionId:"",error:"catalog listing only; dispatch runs inside a Customer Agent session"}))),e}function i(){return n().getAll().map(e=>e.name).sort()}},1489:(e,t,r)=>{r.d(t,{N:()=>l});var s=r(1636),o=r(2847),n=r(785);class i{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: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)),o=e.sessionId;o&&await t.getSessionStore().get(o)||(o=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:o})),await s().enqueue(o,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 l(){return a.__sharedCronService??=new i}},9001:(e,t,r)=>{r.d(t,{o:()=>o});let s=new Set(["capacitor://localhost","ionic://localhost"]);function o(e){if(!e.headers.get("content-type")?.toLowerCase().startsWith("application/json"))return Response.json({error:"JSON required"},{status:415});let t=e.headers.get("origin");if(!t||s.has(t))return null;let r=new URL(e.url),o="1"===process.env.AGENT_TRUST_TUNNEL_PROXY,n=o?e.headers.get("x-forwarded-host")?.split(",")[0].trim()||e.headers.get("host")||r.host:e.headers.get("host")||r.host,i=o&&e.headers.get("x-forwarded-proto")?.split(",")[0].trim()||r.protocol.slice(0,-1);return t!==`${i}://${n}`?Response.json({error:"Cross-origin write denied"},{status:403}):null}},8615:(e,t,r)=>{let s;r.d(t,{H5:()=>c,cm:()=>l,jw:()=>u});var o=r(1636),n=r(785),i=r(6361);class a{constructor(e=(0,n.kO)()){this.store=new o.SQLiteToolExecutionPolicyStore(e)}list(){return this.store.list()}get(e){return this.store.get(e)}async summaries(){return(await this.store.list()).filter(e=>e.enabled).map(o.toolExecutionPolicySummary)}save(e,t){let r=(0,o.validateToolExecutionPolicy)(e,{knownTools:t,requireExecutables:!0});return this.store.save(r)}delete(e){return this.store.delete(e)}}function l(){return s??=new a}function u(){return(0,i.Q)()}function c(e){let t=e instanceof o.ToolExecutionPolicyError?422:400;return Response.json({error:e instanceof Error?e.message:"Tool policy request failed",code:e instanceof o.ToolExecutionPolicyError?e.code:"INVALID_TOOL_POLICY"},{status:t})}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,4621,7519],()=>r(6069));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=443,e.ids=[443],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")},9634:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>m,requestAsyncStorage:()=>c,routeModule:()=>l,serverHooks:()=>h,staticGenerationAsyncStorage:()=>d});var s={};r.r(s),r.d(s,{GET:()=>p});var o=r(7786),a=r(5042),n=r(2184),i=r(1890),u=r(7519);async function p(){let e=u.agentHost.getBuilder().getToolRegistry().getAll();return i.NextResponse.json(e.map(e=>({name:e.name,description:e.description,parameters:e.parameters})))}let l=new o.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/tools/route",pathname:"/api/tools",filename:"route",bundlePath:"app/api/tools/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/tools/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:c,staticGenerationAsyncStorage:d,serverHooks:h}=l,g="/api/tools/route";function m(){return(0,n.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:d})}},1489:(e,t,r)=>{r.d(t,{N:()=>u});var s=r(1636),o=r(2847),a=r(785);class n{constructor(){this.tasks=new s.CronTasks((0,a.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: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)),o=e.sessionId;o&&await t.getSessionStore().get(o)||(o=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:o})),await s().enqueue(o,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 i=globalThis;function u(){return i.__sharedCronService??=new n}}};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(9634));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=443,e.ids=[443],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")},9285:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>m,requestAsyncStorage:()=>c,routeModule:()=>p,serverHooks:()=>h,staticGenerationAsyncStorage:()=>d});var s={};r.r(s),r.d(s,{GET:()=>l});var o=r(7786),a=r(5042),n=r(2184),i=r(1890),u=r(7519);async function l(){let e=u.agentHost.getBuilder().getToolRegistry().getAll();return i.NextResponse.json(e.map(e=>({name:e.name,description:e.description,parameters:e.parameters})))}let p=new o.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/tools/route",pathname:"/api/tools",filename:"route",bundlePath:"app/api/tools/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/tools/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:c,staticGenerationAsyncStorage:d,serverHooks:h}=p,g="/api/tools/route";function m(){return(0,n.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:d})}},1489:(e,t,r)=>{r.d(t,{N:()=>u});var s=r(1636),o=r(2847),a=r(785);class n{constructor(){this.tasks=new s.CronTasks((0,a.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: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)),o=e.sessionId;o&&await t.getSessionStore().get(o)||(o=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:o})),await s().enqueue(o,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 i=globalThis;function u(){return i.__sharedCronService??=new n}}};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(9285));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=907,e.ids=[907],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")},7718:e=>{e.exports=require("node:child_process")},3977:e=>{e.exports=require("node:fs/promises")},9411:e=>{e.exports=require("node:path")},6742:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>w,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>m,staticGenerationAsyncStorage:()=>g});var s={};r.r(s),r.d(s,{POST:()=>u,dynamic:()=>p});var a=r(7786),i=r(5042),o=r(2184),n=r(1890),c=r(9605);let p="force-dynamic";async function u(e){return!function(e){let t=e.headers.get("origin");return!(t&&h.has(t))&&("cross-site"===e.headers.get("sec-fetch-site")||!!(t&&t!==new URL(e.url).origin))}(e)?n.NextResponse.json((0,c.X)().requestCheck(),{status:202,headers:{"cache-control":"no-store"}}):n.NextResponse.json({error:"cross-site update request rejected"},{status:403})}let h=new Set(["capacitor://localhost","ionic://localhost"]),l=new a.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/update/check/route",pathname:"/api/update/check",filename:"route",bundlePath:"app/api/update/check/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/update/check/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:g,serverHooks:m}=l,f="/api/update/check/route";function w(){return(0,o.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:g})}},9605:(e,t,r)=>{let s;r.d(t,{X:()=>p});var a=r(7718),i=r(3977),o=r(9411),n=r(1636);class c{constructor(e){this.options=e,this.worker=null,this.spawnImpl=e.spawn??a.spawn,this.checker=e.platform?e.checker??new n.UpdateChecker({currentVersion:e.currentVersion,client:"cli",platform:e.platform}):null,this.checker?.schedule()}async status(){return await this.readDurableStatus()??this.checker?.getStatus()??{phase:"unavailable",currentVersion:this.options.currentVersion}}requestCheck(){return this.checker?(this.checker.refresh().catch(()=>void 0),this.checker.getStatus()):{phase:"unavailable",currentVersion:this.options.currentVersion}}async installAvailable(){if(!this.options.cliPath||!this.options.dataDir||!this.options.platform)throw Object.assign(Error("updates require a packaged AgentRoam service"),{status:409});let e=this.checker?.getStatus();if(!e||"available"!==e.phase||!e.targetVersion)throw Object.assign(Error("no validated update is available"),{status:409});return this.worker&&null===this.worker.exitCode?this.status():(this.worker=this.spawnImpl(process.execPath,[this.options.cliPath,"update",e.targetVersion,"--data-dir",this.options.dataDir],{detached:!0,stdio:"ignore",windowsHide:!0}),this.worker.unref(),{...e,phase:"downloading"})}async readDurableStatus(){if(!this.options.dataDir)return null;try{let e=JSON.parse(await (0,i.readFile)((0,o.resolve)(this.options.dataDir,"updates","state.json"),"utf8"));if(1!==e.schemaVersion||"string"!=typeof e.phase||"string"!=typeof e.targetVersion||!["downloading","installing","reconnecting","complete","failed"].includes(e.phase)||"complete"===e.phase&&0>=(0,n.compareAgentRoamVersions)(e.targetVersion,this.options.currentVersion))return null;return{phase:e.phase,currentVersion:this.options.currentVersion,targetVersion:e.targetVersion,message:"string"==typeof e.message?e.message:void 0}}catch{return null}}}function p(){let e=process.env.AGENTROAM_VERSION?.trim();return s??=new c({currentVersion:e||"0.0.0",platform:e?"darwin"===process.platform&&"arm64"===process.arch?"darwin-arm64":"win32"===process.platform&&"x64"===process.arch?"windows-amd64":null:null,dataDir:process.env.AGENTROAM_DATA_DIR?.trim(),cliPath:process.env.AGENTROAM_CLI_PATH?.trim()})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(6742));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=907,e.ids=[907],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")},7718:e=>{e.exports=require("node:child_process")},3977:e=>{e.exports=require("node:fs/promises")},9411:e=>{e.exports=require("node:path")},3678:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>w,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>m,staticGenerationAsyncStorage:()=>g});var s={};r.r(s),r.d(s,{POST:()=>u,dynamic:()=>p});var a=r(7786),i=r(5042),o=r(2184),n=r(1890),c=r(9605);let p="force-dynamic";async function u(e){return!function(e){let t=e.headers.get("origin");return!(t&&h.has(t))&&("cross-site"===e.headers.get("sec-fetch-site")||!!(t&&t!==new URL(e.url).origin))}(e)?n.NextResponse.json((0,c.X)().requestCheck(),{status:202,headers:{"cache-control":"no-store"}}):n.NextResponse.json({error:"cross-site update request rejected"},{status:403})}let h=new Set(["capacitor://localhost","ionic://localhost"]),l=new a.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/update/check/route",pathname:"/api/update/check",filename:"route",bundlePath:"app/api/update/check/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/update/check/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:g,serverHooks:m}=l,f="/api/update/check/route";function w(){return(0,o.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:g})}},9605:(e,t,r)=>{let s;r.d(t,{X:()=>p});var a=r(7718),i=r(3977),o=r(9411),n=r(1636);class c{constructor(e){this.options=e,this.worker=null,this.spawnImpl=e.spawn??a.spawn,this.checker=e.platform?e.checker??new n.UpdateChecker({currentVersion:e.currentVersion,client:"cli",platform:e.platform}):null,this.checker?.schedule()}async status(){return await this.readDurableStatus()??this.checker?.getStatus()??{phase:"unavailable",currentVersion:this.options.currentVersion}}requestCheck(){return this.checker?(this.checker.refresh().catch(()=>void 0),this.checker.getStatus()):{phase:"unavailable",currentVersion:this.options.currentVersion}}async installAvailable(){if(!this.options.cliPath||!this.options.dataDir||!this.options.platform)throw Object.assign(Error("updates require a packaged AgentRoam service"),{status:409});let e=this.checker?.getStatus();if(!e||"available"!==e.phase||!e.targetVersion)throw Object.assign(Error("no validated update is available"),{status:409});return this.worker&&null===this.worker.exitCode?this.status():(this.worker=this.spawnImpl(process.execPath,[this.options.cliPath,"update",e.targetVersion,"--data-dir",this.options.dataDir],{detached:!0,stdio:"ignore",windowsHide:!0}),this.worker.unref(),{...e,phase:"downloading"})}async readDurableStatus(){if(!this.options.dataDir)return null;try{let e=JSON.parse(await (0,i.readFile)((0,o.resolve)(this.options.dataDir,"updates","state.json"),"utf8"));if(1!==e.schemaVersion||"string"!=typeof e.phase||"string"!=typeof e.targetVersion||!["downloading","installing","reconnecting","complete","failed"].includes(e.phase)||"complete"===e.phase&&0>=(0,n.compareAgentRoamVersions)(e.targetVersion,this.options.currentVersion))return null;return{phase:e.phase,currentVersion:this.options.currentVersion,targetVersion:e.targetVersion,message:"string"==typeof e.message?e.message:void 0}}catch{return null}}}function p(){let e=process.env.AGENTROAM_VERSION?.trim();return s??=new c({currentVersion:e||"0.0.0",platform:e?"darwin"===process.platform&&"arm64"===process.arch?"darwin-arm64":"win32"===process.platform&&"x64"===process.arch?"windows-amd64":null:null,dataDir:process.env.AGENTROAM_DATA_DIR?.trim(),cliPath:process.env.AGENTROAM_CLI_PATH?.trim()})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(3678));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=6936,e.ids=[6936],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")},7718:e=>{e.exports=require("node:child_process")},3977:e=>{e.exports=require("node:fs/promises")},9411:e=>{e.exports=require("node:path")},9139:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>w,requestAsyncStorage:()=>h,routeModule:()=>d,serverHooks:()=>g,staticGenerationAsyncStorage:()=>m});var s={};r.r(s),r.d(s,{POST:()=>u,dynamic:()=>p});var a=r(7786),i=r(5042),n=r(2184),o=r(1890),c=r(9605);let p="force-dynamic";async function u(e){try{if(function(e){let t=e.headers.get("origin");return!(t&&l.has(t))&&("cross-site"===e.headers.get("sec-fetch-site")||!!(t&&t!==new URL(e.url).origin))}(e))return o.NextResponse.json({error:"cross-site update request rejected"},{status:403});let t=await e.text();if(t&&"{}"!==t)return o.NextResponse.json({error:"update install does not accept parameters"},{status:400});return o.NextResponse.json(await (0,c.X)().installAvailable(),{status:202})}catch(t){let e=Number(t.status)||500;return o.NextResponse.json({error:t instanceof Error?t.message:"unable to start update"},{status:e})}}let l=new Set(["capacitor://localhost","ionic://localhost"]),d=new a.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/update/install/route",pathname:"/api/update/install",filename:"route",bundlePath:"app/api/update/install/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/update/install/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:h,staticGenerationAsyncStorage:m,serverHooks:g}=d,f="/api/update/install/route";function w(){return(0,n.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:m})}},9605:(e,t,r)=>{let s;r.d(t,{X:()=>p});var a=r(7718),i=r(3977),n=r(9411),o=r(1636);class c{constructor(e){this.options=e,this.worker=null,this.spawnImpl=e.spawn??a.spawn,this.checker=e.platform?e.checker??new o.UpdateChecker({currentVersion:e.currentVersion,client:"cli",platform:e.platform}):null,this.checker?.schedule()}async status(){return await this.readDurableStatus()??this.checker?.getStatus()??{phase:"unavailable",currentVersion:this.options.currentVersion}}requestCheck(){return this.checker?(this.checker.refresh().catch(()=>void 0),this.checker.getStatus()):{phase:"unavailable",currentVersion:this.options.currentVersion}}async installAvailable(){if(!this.options.cliPath||!this.options.dataDir||!this.options.platform)throw Object.assign(Error("updates require a packaged AgentRoam service"),{status:409});let e=this.checker?.getStatus();if(!e||"available"!==e.phase||!e.targetVersion)throw Object.assign(Error("no validated update is available"),{status:409});return this.worker&&null===this.worker.exitCode?this.status():(this.worker=this.spawnImpl(process.execPath,[this.options.cliPath,"update",e.targetVersion,"--data-dir",this.options.dataDir],{detached:!0,stdio:"ignore",windowsHide:!0}),this.worker.unref(),{...e,phase:"downloading"})}async readDurableStatus(){if(!this.options.dataDir)return null;try{let e=JSON.parse(await (0,i.readFile)((0,n.resolve)(this.options.dataDir,"updates","state.json"),"utf8"));if(1!==e.schemaVersion||"string"!=typeof e.phase||"string"!=typeof e.targetVersion||!["downloading","installing","reconnecting","complete","failed"].includes(e.phase)||"complete"===e.phase&&0>=(0,o.compareAgentRoamVersions)(e.targetVersion,this.options.currentVersion))return null;return{phase:e.phase,currentVersion:this.options.currentVersion,targetVersion:e.targetVersion,message:"string"==typeof e.message?e.message:void 0}}catch{return null}}}function p(){let e=process.env.AGENTROAM_VERSION?.trim();return s??=new c({currentVersion:e||"0.0.0",platform:e?"darwin"===process.platform&&"arm64"===process.arch?"darwin-arm64":"win32"===process.platform&&"x64"===process.arch?"windows-amd64":null:null,dataDir:process.env.AGENTROAM_DATA_DIR?.trim(),cliPath:process.env.AGENTROAM_CLI_PATH?.trim()})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(9139));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=6936,e.ids=[6936],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")},7718:e=>{e.exports=require("node:child_process")},3977:e=>{e.exports=require("node:fs/promises")},9411:e=>{e.exports=require("node:path")},5105:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>w,requestAsyncStorage:()=>d,routeModule:()=>h,serverHooks:()=>g,staticGenerationAsyncStorage:()=>m});var s={};r.r(s),r.d(s,{POST:()=>u,dynamic:()=>c});var a=r(7786),i=r(5042),n=r(2184),o=r(1890),p=r(9605);let c="force-dynamic";async function u(e){try{if(function(e){let t=e.headers.get("origin");return!(t&&l.has(t))&&("cross-site"===e.headers.get("sec-fetch-site")||!!(t&&t!==new URL(e.url).origin))}(e))return o.NextResponse.json({error:"cross-site update request rejected"},{status:403});let t=await e.text();if(t&&"{}"!==t)return o.NextResponse.json({error:"update install does not accept parameters"},{status:400});return o.NextResponse.json(await (0,p.X)().installAvailable(),{status:202})}catch(t){let e=Number(t.status)||500;return o.NextResponse.json({error:t instanceof Error?t.message:"unable to start update"},{status:e})}}let l=new Set(["capacitor://localhost","ionic://localhost"]),h=new a.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/update/install/route",pathname:"/api/update/install",filename:"route",bundlePath:"app/api/update/install/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/update/install/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:m,serverHooks:g}=h,f="/api/update/install/route";function w(){return(0,n.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:m})}},9605:(e,t,r)=>{let s;r.d(t,{X:()=>c});var a=r(7718),i=r(3977),n=r(9411),o=r(1636);class p{constructor(e){this.options=e,this.worker=null,this.spawnImpl=e.spawn??a.spawn,this.checker=e.platform?e.checker??new o.UpdateChecker({currentVersion:e.currentVersion,client:"cli",platform:e.platform}):null,this.checker?.schedule()}async status(){return await this.readDurableStatus()??this.checker?.getStatus()??{phase:"unavailable",currentVersion:this.options.currentVersion}}requestCheck(){return this.checker?(this.checker.refresh().catch(()=>void 0),this.checker.getStatus()):{phase:"unavailable",currentVersion:this.options.currentVersion}}async installAvailable(){if(!this.options.cliPath||!this.options.dataDir||!this.options.platform)throw Object.assign(Error("updates require a packaged AgentRoam service"),{status:409});let e=this.checker?.getStatus();if(!e||"available"!==e.phase||!e.targetVersion)throw Object.assign(Error("no validated update is available"),{status:409});return this.worker&&null===this.worker.exitCode?this.status():(this.worker=this.spawnImpl(process.execPath,[this.options.cliPath,"update",e.targetVersion,"--data-dir",this.options.dataDir],{detached:!0,stdio:"ignore",windowsHide:!0}),this.worker.unref(),{...e,phase:"downloading"})}async readDurableStatus(){if(!this.options.dataDir)return null;try{let e=JSON.parse(await (0,i.readFile)((0,n.resolve)(this.options.dataDir,"updates","state.json"),"utf8"));if(1!==e.schemaVersion||"string"!=typeof e.phase||"string"!=typeof e.targetVersion||!["downloading","installing","reconnecting","complete","failed"].includes(e.phase)||"complete"===e.phase&&0>=(0,o.compareAgentRoamVersions)(e.targetVersion,this.options.currentVersion))return null;return{phase:e.phase,currentVersion:this.options.currentVersion,targetVersion:e.targetVersion,message:"string"==typeof e.message?e.message:void 0}}catch{return null}}}function c(){let e=process.env.AGENTROAM_VERSION?.trim();return s??=new p({currentVersion:e||"0.0.0",platform:e?"darwin"===process.platform&&"arm64"===process.arch?"darwin-arm64":"win32"===process.platform&&"x64"===process.arch?"windows-amd64":null:null,dataDir:process.env.AGENTROAM_DATA_DIR?.trim(),cliPath:process.env.AGENTROAM_CLI_PATH?.trim()})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(5105));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=4362,e.ids=[4362],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")},7718:e=>{e.exports=require("node:child_process")},3977:e=>{e.exports=require("node:fs/promises")},9411:e=>{e.exports=require("node:path")},6185:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>f,requestAsyncStorage:()=>h,routeModule:()=>l,serverHooks:()=>m,staticGenerationAsyncStorage:()=>d});var s={};r.r(s),r.d(s,{GET:()=>c,dynamic:()=>u});var a=r(7786),i=r(5042),o=r(2184),n=r(1890),p=r(9605);let u="force-dynamic";async function c(){return n.NextResponse.json(await (0,p.X)().status(),{headers:{"cache-control":"no-store"}})}let l=new a.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/update/status/route",pathname:"/api/update/status",filename:"route",bundlePath:"app/api/update/status/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/update/status/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:h,staticGenerationAsyncStorage:d,serverHooks:m}=l,g="/api/update/status/route";function f(){return(0,o.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:d})}},9605:(e,t,r)=>{let s;r.d(t,{X:()=>u});var a=r(7718),i=r(3977),o=r(9411),n=r(1636);class p{constructor(e){this.options=e,this.worker=null,this.spawnImpl=e.spawn??a.spawn,this.checker=e.platform?e.checker??new n.UpdateChecker({currentVersion:e.currentVersion,client:"cli",platform:e.platform}):null,this.checker?.schedule()}async status(){return await this.readDurableStatus()??this.checker?.getStatus()??{phase:"unavailable",currentVersion:this.options.currentVersion}}requestCheck(){return this.checker?(this.checker.refresh().catch(()=>void 0),this.checker.getStatus()):{phase:"unavailable",currentVersion:this.options.currentVersion}}async installAvailable(){if(!this.options.cliPath||!this.options.dataDir||!this.options.platform)throw Object.assign(Error("updates require a packaged AgentRoam service"),{status:409});let e=this.checker?.getStatus();if(!e||"available"!==e.phase||!e.targetVersion)throw Object.assign(Error("no validated update is available"),{status:409});return this.worker&&null===this.worker.exitCode?this.status():(this.worker=this.spawnImpl(process.execPath,[this.options.cliPath,"update",e.targetVersion,"--data-dir",this.options.dataDir],{detached:!0,stdio:"ignore",windowsHide:!0}),this.worker.unref(),{...e,phase:"downloading"})}async readDurableStatus(){if(!this.options.dataDir)return null;try{let e=JSON.parse(await (0,i.readFile)((0,o.resolve)(this.options.dataDir,"updates","state.json"),"utf8"));if(1!==e.schemaVersion||"string"!=typeof e.phase||"string"!=typeof e.targetVersion||!["downloading","installing","reconnecting","complete","failed"].includes(e.phase)||"complete"===e.phase&&0>=(0,n.compareAgentRoamVersions)(e.targetVersion,this.options.currentVersion))return null;return{phase:e.phase,currentVersion:this.options.currentVersion,targetVersion:e.targetVersion,message:"string"==typeof e.message?e.message:void 0}}catch{return null}}}function u(){let e=process.env.AGENTROAM_VERSION?.trim();return s??=new p({currentVersion:e||"0.0.0",platform:e?"darwin"===process.platform&&"arm64"===process.arch?"darwin-arm64":"win32"===process.platform&&"x64"===process.arch?"windows-amd64":null:null,dataDir:process.env.AGENTROAM_DATA_DIR?.trim(),cliPath:process.env.AGENTROAM_CLI_PATH?.trim()})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(6185));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=4362,e.ids=[4362],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")},7718:e=>{e.exports=require("node:child_process")},3977:e=>{e.exports=require("node:fs/promises")},9411:e=>{e.exports=require("node:path")},4359:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>w,requestAsyncStorage:()=>h,routeModule:()=>l,serverHooks:()=>m,staticGenerationAsyncStorage:()=>d});var s={};r.r(s),r.d(s,{GET:()=>c,dynamic:()=>u});var a=r(7786),i=r(5042),n=r(2184),o=r(1890),p=r(9605);let u="force-dynamic";async function c(){return o.NextResponse.json(await (0,p.X)().status(),{headers:{"cache-control":"no-store"}})}let l=new a.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/update/status/route",pathname:"/api/update/status",filename:"route",bundlePath:"app/api/update/status/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/update/status/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:h,staticGenerationAsyncStorage:d,serverHooks:m}=l,g="/api/update/status/route";function w(){return(0,n.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:d})}},9605:(e,t,r)=>{let s;r.d(t,{X:()=>u});var a=r(7718),i=r(3977),n=r(9411),o=r(1636);class p{constructor(e){this.options=e,this.worker=null,this.spawnImpl=e.spawn??a.spawn,this.checker=e.platform?e.checker??new o.UpdateChecker({currentVersion:e.currentVersion,client:"cli",platform:e.platform}):null,this.checker?.schedule()}async status(){return await this.readDurableStatus()??this.checker?.getStatus()??{phase:"unavailable",currentVersion:this.options.currentVersion}}requestCheck(){return this.checker?(this.checker.refresh().catch(()=>void 0),this.checker.getStatus()):{phase:"unavailable",currentVersion:this.options.currentVersion}}async installAvailable(){if(!this.options.cliPath||!this.options.dataDir||!this.options.platform)throw Object.assign(Error("updates require a packaged AgentRoam service"),{status:409});let e=this.checker?.getStatus();if(!e||"available"!==e.phase||!e.targetVersion)throw Object.assign(Error("no validated update is available"),{status:409});return this.worker&&null===this.worker.exitCode?this.status():(this.worker=this.spawnImpl(process.execPath,[this.options.cliPath,"update",e.targetVersion,"--data-dir",this.options.dataDir],{detached:!0,stdio:"ignore",windowsHide:!0}),this.worker.unref(),{...e,phase:"downloading"})}async readDurableStatus(){if(!this.options.dataDir)return null;try{let e=JSON.parse(await (0,i.readFile)((0,n.resolve)(this.options.dataDir,"updates","state.json"),"utf8"));if(1!==e.schemaVersion||"string"!=typeof e.phase||"string"!=typeof e.targetVersion||!["downloading","installing","reconnecting","complete","failed"].includes(e.phase)||"complete"===e.phase&&0>=(0,o.compareAgentRoamVersions)(e.targetVersion,this.options.currentVersion))return null;return{phase:e.phase,currentVersion:this.options.currentVersion,targetVersion:e.targetVersion,message:"string"==typeof e.message?e.message:void 0}}catch{return null}}}function u(){let e=process.env.AGENTROAM_VERSION?.trim();return s??=new p({currentVersion:e||"0.0.0",platform:e?"darwin"===process.platform&&"arm64"===process.arch?"darwin-arm64":"win32"===process.platform&&"x64"===process.arch?"windows-amd64":null:null,dataDir:process.env.AGENTROAM_DATA_DIR?.trim(),cliPath:process.env.AGENTROAM_CLI_PATH?.trim()})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(4359));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=2574,e.ids=[2574],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")},9411:e=>{e.exports=require("node:path")},474:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>h,requestAsyncStorage:()=>p,routeModule:()=>d,serverHooks:()=>v,staticGenerationAsyncStorage:()=>l});var n={};r.r(n),r.d(n,{POST:()=>c});var o=r(7786),s=r(5042),i=r(2184),a=r(1890),u=r(9580);async function c(e){try{let t=await e.json(),r=await u.ZA.login(t.username||"",t.password||"",(0,u.$U)(e)),n=a.NextResponse.json({user:r.user,csrfToken:r.csrfToken,deviceId:r.deviceId});return n.cookies.set(u.VP,r.authToken,(0,u.Ci)(e,2592e3,!0)),n.cookies.set(u.ki,r.deviceId,(0,u.Ci)(e,31536e3,!1)),n}catch(e){return(0,u.yN)(e)}}let d=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-auth/login/route",pathname:"/api/web-auth/login",filename:"route",bundlePath:"app/api/web-auth/login/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-auth/login/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:p,staticGenerationAsyncStorage:l,serverHooks:v}=d,g="/api/web-auth/login/route";function h(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:l})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>u});var n=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function s(e=process.env,t=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return s()}function a(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},9580:(e,t,r)=>{r.d(t,{$U:()=>p,Ci:()=>v,VP:()=>s,Xd:()=>d,ZA:()=>a,ap:()=>l,hw:()=>u,ki:()=>i,yN:()=>g});var n=r(1636),o=r(785);let s="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function d(e){return c(e)[s]||null}function p(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[i],deviceName:e.headers.get("x-device-name")||""}}function l(e){let t=a.authenticateToken(d(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function v(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function g(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(474));module.exports=n})();
1
+ "use strict";(()=>{var e={};e.id=2574,e.ids=[2574],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")},9411:e=>{e.exports=require("node:path")},5186:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>h,requestAsyncStorage:()=>l,routeModule:()=>d,serverHooks:()=>v,staticGenerationAsyncStorage:()=>p});var n={};r.r(n),r.d(n,{POST:()=>c});var o=r(7786),s=r(5042),i=r(2184),a=r(1890),u=r(9580);async function c(e){try{let t=await e.json(),r=await u.ZA.login(t.username||"",t.password||"",(0,u.$U)(e)),n=a.NextResponse.json({user:r.user,csrfToken:r.csrfToken,deviceId:r.deviceId});return n.cookies.set(u.VP,r.authToken,(0,u.Ci)(e,2592e3,!0)),n.cookies.set(u.ki,r.deviceId,(0,u.Ci)(e,31536e3,!1)),n}catch(e){return(0,u.yN)(e)}}let d=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-auth/login/route",pathname:"/api/web-auth/login",filename:"route",bundlePath:"app/api/web-auth/login/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-auth/login/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:l,staticGenerationAsyncStorage:p,serverHooks:v}=d,g="/api/web-auth/login/route";function h(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:p})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>u});var n=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function s(e=process.env,t=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return s()}function a(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},9580:(e,t,r)=>{r.d(t,{$U:()=>l,Ci:()=>v,VP:()=>s,Xd:()=>d,ZA:()=>a,ap:()=>p,hw:()=>u,ki:()=>i,yN:()=>g});var n=r(1636),o=r(785);let s="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function d(e){return c(e)[s]||null}function l(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[i],deviceName:e.headers.get("x-device-name")||""}}function p(e){let t=a.authenticateToken(d(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function v(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function g(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(5186));module.exports=n})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=9402,e.ids=[9402],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")},9411:e=>{e.exports=require("node:path")},9467:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>v,requestAsyncStorage:()=>p,routeModule:()=>l,serverHooks:()=>g,staticGenerationAsyncStorage:()=>d});var o={};r.r(o),r.d(o,{POST:()=>c});var n=r(7786),s=r(5042),u=r(2184),a=r(1890),i=r(9580);async function c(e){try{(0,i.ap)(e);let t=(0,i.Xd)(e);i.ZA.logout(t);let r=new a.NextResponse(null,{status:204});return r.cookies.set(i.VP,"",(0,i.Ci)(e,0,!0)),r}catch(e){return(0,i.yN)(e)}}let l=new n.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-auth/logout/route",pathname:"/api/web-auth/logout",filename:"route",bundlePath:"app/api/web-auth/logout/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-auth/logout/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:p,staticGenerationAsyncStorage:d,serverHooks:g}=l,h="/api/web-auth/logout/route";function v(){return(0,u.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:d})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>u,sr:()=>i});var o=r(9411);let n=function(){let e=process.argv[1];if(e){let t=(0,o.dirname)((0,o.resolve)(e)),r=`${o.sep}node_modules${o.sep}.bin`;return t.endsWith(r)?(0,o.resolve)(t,"..",".."):t}return(0,o.resolve)(process.cwd())}();function s(e=process.env,t=n){return(0,o.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function u(){return s()}function a(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,o.resolve)(r);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,o.resolve)(n,"logs"):(0,o.join)(t,".agent-data","logs")}function i(){return function(e=process.env,t=n){return(0,o.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,u())}},9580:(e,t,r)=>{r.d(t,{$U:()=>p,Ci:()=>g,VP:()=>s,Xd:()=>l,ZA:()=>a,ap:()=>d,hw:()=>i,ki:()=>u,yN:()=>h});var o=r(1636),n=r(785);let s="customer_agent_session",u="customer_agent_device",a=new o.WebAuthService(new o.SQLiteAuthStore((0,n.kO)())),i=new o.SQLiteWebConsoleStore((0,n.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function l(e){return c(e)[s]||null}function p(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[u],deviceName:e.headers.get("x-device-name")||""}}function d(e){let t=a.authenticateToken(l(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function g(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function h(e){let t=e instanceof o.WebAuthError?e:new o.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),o=t.X(0,[8375,6703],()=>r(9467));module.exports=o})();
1
+ "use strict";(()=>{var e={};e.id=9402,e.ids=[9402],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")},9411:e=>{e.exports=require("node:path")},8891:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>v,requestAsyncStorage:()=>p,routeModule:()=>l,serverHooks:()=>g,staticGenerationAsyncStorage:()=>d});var o={};r.r(o),r.d(o,{POST:()=>c});var n=r(7786),s=r(5042),u=r(2184),a=r(1890),i=r(9580);async function c(e){try{(0,i.ap)(e);let t=(0,i.Xd)(e);i.ZA.logout(t);let r=new a.NextResponse(null,{status:204});return r.cookies.set(i.VP,"",(0,i.Ci)(e,0,!0)),r}catch(e){return(0,i.yN)(e)}}let l=new n.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-auth/logout/route",pathname:"/api/web-auth/logout",filename:"route",bundlePath:"app/api/web-auth/logout/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-auth/logout/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:p,staticGenerationAsyncStorage:d,serverHooks:g}=l,h="/api/web-auth/logout/route";function v(){return(0,u.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:d})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>u,sr:()=>i});var o=r(9411);let n=function(){let e=process.argv[1];if(e){let t=(0,o.dirname)((0,o.resolve)(e)),r=`${o.sep}node_modules${o.sep}.bin`;return t.endsWith(r)?(0,o.resolve)(t,"..",".."):t}return(0,o.resolve)(process.cwd())}();function s(e=process.env,t=n){return(0,o.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function u(){return s()}function a(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,o.resolve)(r);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,o.resolve)(n,"logs"):(0,o.join)(t,".agent-data","logs")}function i(){return function(e=process.env,t=n){return(0,o.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,u())}},9580:(e,t,r)=>{r.d(t,{$U:()=>p,Ci:()=>g,VP:()=>s,Xd:()=>l,ZA:()=>a,ap:()=>d,hw:()=>i,ki:()=>u,yN:()=>h});var o=r(1636),n=r(785);let s="customer_agent_session",u="customer_agent_device",a=new o.WebAuthService(new o.SQLiteAuthStore((0,n.kO)())),i=new o.SQLiteWebConsoleStore((0,n.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function l(e){return c(e)[s]||null}function p(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[u],deviceName:e.headers.get("x-device-name")||""}}function d(e){let t=a.authenticateToken(l(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function g(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function h(e){let t=e instanceof o.WebAuthError?e:new o.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),o=t.X(0,[8375,6703],()=>r(8891));module.exports=o})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=843,e.ids=[843],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")},9411:e=>{e.exports=require("node:path")},102:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>m,requestAsyncStorage:()=>p,routeModule:()=>l,serverHooks:()=>v,staticGenerationAsyncStorage:()=>d});var n={};r.r(n),r.d(n,{POST:()=>c});var o=r(7786),s=r(5042),a=r(2184),i=r(1890),u=r(9580);async function c(e){try{(0,u.ap)(e);let t=(0,u.Xd)(e),r=u.ZA.revokeAll(t,!1),n=i.NextResponse.json({revoked:r});return n.cookies.set(u.VP,"",(0,u.Ci)(e,0,!0)),n}catch(e){return(0,u.yN)(e)}}let l=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-auth/revoke-all/route",pathname:"/api/web-auth/revoke-all",filename:"route",bundlePath:"app/api/web-auth/revoke-all/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-auth/revoke-all/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:p,staticGenerationAsyncStorage:d,serverHooks:v}=l,h="/api/web-auth/revoke-all/route";function m(){return(0,a.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:d})}},785:(e,t,r)=>{r.d(t,{ME:()=>i,kO:()=>a,sr:()=>u});var n=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function s(e=process.env,t=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function a(){return s()}function i(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,a())}},9580:(e,t,r)=>{r.d(t,{$U:()=>p,Ci:()=>v,VP:()=>s,Xd:()=>l,ZA:()=>i,ap:()=>d,hw:()=>u,ki:()=>a,yN:()=>h});var n=r(1636),o=r(785);let s="customer_agent_session",a="customer_agent_device",i=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function l(e){return c(e)[s]||null}function p(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[a],deviceName:e.headers.get("x-device-name")||""}}function d(e){let t=i.authenticateToken(l(e));return i.validateCsrf(t,e.headers.get("x-csrf-token")),t}function v(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function h(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(102));module.exports=n})();
1
+ "use strict";(()=>{var e={};e.id=843,e.ids=[843],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")},9411:e=>{e.exports=require("node:path")},8978:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>h,patchFetch:()=>m,requestAsyncStorage:()=>p,routeModule:()=>c,serverHooks:()=>v,staticGenerationAsyncStorage:()=>d});var n={};t.r(n),t.d(n,{POST:()=>l});var o=t(7786),s=t(5042),a=t(2184),i=t(1890),u=t(9580);async function l(e){try{(0,u.ap)(e);let r=(0,u.Xd)(e),t=u.ZA.revokeAll(r,!1),n=i.NextResponse.json({revoked:t});return n.cookies.set(u.VP,"",(0,u.Ci)(e,0,!0)),n}catch(e){return(0,u.yN)(e)}}let c=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-auth/revoke-all/route",pathname:"/api/web-auth/revoke-all",filename:"route",bundlePath:"app/api/web-auth/revoke-all/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-auth/revoke-all/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:p,staticGenerationAsyncStorage:d,serverHooks:v}=c,h="/api/web-auth/revoke-all/route";function m(){return(0,a.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:d})}},785:(e,r,t)=>{t.d(r,{ME:()=>i,kO:()=>a,sr:()=>u});var n=t(9411);let o=function(){let e=process.argv[1];if(e){let r=(0,n.dirname)((0,n.resolve)(e)),t=`${n.sep}node_modules${n.sep}.bin`;return r.endsWith(t)?(0,n.resolve)(r,"..",".."):r}return(0,n.resolve)(process.cwd())}();function s(e=process.env,r=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function a(){return s()}function i(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,n.resolve)(t);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,a())}},9580:(e,r,t)=>{t.d(r,{$U:()=>p,Ci:()=>v,VP:()=>s,Xd:()=>c,ZA:()=>i,ap:()=>d,hw:()=>u,ki:()=>a,yN:()=>h});var n=t(1636),o=t(785);let s="customer_agent_session",a="customer_agent_device",i=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function l(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function c(e){return l(e)[s]||null}function p(e){let r=l(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[a],deviceName:e.headers.get("x-device-name")||""}}function d(e){let r=i.authenticateToken(c(e));return i.validateCsrf(r,e.headers.get("x-csrf-token")),r}function v(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function h(e){let r=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[8375,6703],()=>t(8978));module.exports=n})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=234,e.ids=[234],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")},9411:e=>{e.exports=require("node:path")},6165:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>g,requestAsyncStorage:()=>f,routeModule:()=>l,serverHooks:()=>v,staticGenerationAsyncStorage:()=>h});var n={};r.r(n),r.d(n,{POST:()=>d});var s=r(7786),o=r(5042),a=r(2184),i=r(1890),u=r(6005),c=r(1636),p=r(9580);async function d(e){try{let t=await e.json();(function(e){let t=process.env.AGENT_PAIRING_HASH;if(!t)return;let r=Date.parse(process.env.AGENT_PAIRING_EXPIRES_AT||""),n=(0,u.createHash)("sha256").update(e||"").digest("hex");if(!(Number.isFinite(r)&&Date.now()<r&&n.length===t.length&&(0,u.timingSafeEqual)(Buffer.from(n),Buffer.from(t))))throw new c.WebAuthError("INVALID_INPUT","配对链接无效或已过期",403)})(t.pairingToken);let r=await p.ZA.setup(t.username||"",t.password||"",(0,p.$U)(e)),n=i.NextResponse.json({user:r.user,csrfToken:r.csrfToken,deviceId:r.deviceId},{status:201});return n.cookies.set(p.VP,r.authToken,(0,p.Ci)(e,2592e3,!0)),n.cookies.set(p.ki,r.deviceId,(0,p.Ci)(e,31536e3,!1)),n}catch(e){return(0,p.yN)(e)}}let l=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/web-auth/setup/route",pathname:"/api/web-auth/setup",filename:"route",bundlePath:"app/api/web-auth/setup/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-auth/setup/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:f,staticGenerationAsyncStorage:h,serverHooks:v}=l,m="/api/web-auth/setup/route";function g(){return(0,a.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:h})}},785:(e,t,r)=>{r.d(t,{ME:()=>i,kO:()=>a,sr:()=>u});var n=r(9411);let s=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function o(e=process.env,t=s){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function a(){return o()}function i(e=process.env,t=o(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let s=e.AGENTROAM_DATA_DIR?.trim();return s?(0,n.resolve)(s,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=s){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,a())}},9580:(e,t,r)=>{r.d(t,{$U:()=>d,Ci:()=>f,VP:()=>o,Xd:()=>p,ZA:()=>i,ap:()=>l,hw:()=>u,ki:()=>a,yN:()=>h});var n=r(1636),s=r(785);let o="customer_agent_session",a="customer_agent_device",i=new n.WebAuthService(new n.SQLiteAuthStore((0,s.kO)())),u=new n.SQLiteWebConsoleStore((0,s.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function p(e){return c(e)[o]||null}function d(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[a],deviceName:e.headers.get("x-device-name")||""}}function l(e){let t=i.authenticateToken(p(e));return i.validateCsrf(t,e.headers.get("x-csrf-token")),t}function f(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function h(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(6165));module.exports=n})();
1
+ "use strict";(()=>{var e={};e.id=234,e.ids=[234],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")},9411:e=>{e.exports=require("node:path")},5548:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>g,requestAsyncStorage:()=>f,routeModule:()=>l,serverHooks:()=>v,staticGenerationAsyncStorage:()=>h});var n={};r.r(n),r.d(n,{POST:()=>d});var s=r(7786),o=r(5042),a=r(2184),i=r(1890),u=r(6005),c=r(1636),p=r(9580);async function d(e){try{let t=await e.json();(function(e){let t=process.env.AGENT_PAIRING_HASH;if(!t)return;let r=Date.parse(process.env.AGENT_PAIRING_EXPIRES_AT||""),n=(0,u.createHash)("sha256").update(e||"").digest("hex");if(!(Number.isFinite(r)&&Date.now()<r&&n.length===t.length&&(0,u.timingSafeEqual)(Buffer.from(n),Buffer.from(t))))throw new c.WebAuthError("INVALID_INPUT","配对链接无效或已过期",403)})(t.pairingToken);let r=await p.ZA.setup(t.username||"",t.password||"",(0,p.$U)(e)),n=i.NextResponse.json({user:r.user,csrfToken:r.csrfToken,deviceId:r.deviceId},{status:201});return n.cookies.set(p.VP,r.authToken,(0,p.Ci)(e,2592e3,!0)),n.cookies.set(p.ki,r.deviceId,(0,p.Ci)(e,31536e3,!1)),n}catch(e){return(0,p.yN)(e)}}let l=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/web-auth/setup/route",pathname:"/api/web-auth/setup",filename:"route",bundlePath:"app/api/web-auth/setup/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-auth/setup/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:f,staticGenerationAsyncStorage:h,serverHooks:v}=l,m="/api/web-auth/setup/route";function g(){return(0,a.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:h})}},785:(e,t,r)=>{r.d(t,{ME:()=>i,kO:()=>a,sr:()=>u});var n=r(9411);let s=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function o(e=process.env,t=s){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function a(){return o()}function i(e=process.env,t=o(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let s=e.AGENTROAM_DATA_DIR?.trim();return s?(0,n.resolve)(s,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=s){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,a())}},9580:(e,t,r)=>{r.d(t,{$U:()=>d,Ci:()=>f,VP:()=>o,Xd:()=>p,ZA:()=>i,ap:()=>l,hw:()=>u,ki:()=>a,yN:()=>h});var n=r(1636),s=r(785);let o="customer_agent_session",a="customer_agent_device",i=new n.WebAuthService(new n.SQLiteAuthStore((0,s.kO)())),u=new n.SQLiteWebConsoleStore((0,s.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function p(e){return c(e)[o]||null}function d(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[a],deviceName:e.headers.get("x-device-name")||""}}function l(e){let t=i.authenticateToken(p(e));return i.validateCsrf(t,e.headers.get("x-csrf-token")),t}function f(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function h(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(5548));module.exports=n})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=9558,e.ids=[9558],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")},9411:e=>{e.exports=require("node:path")},4712:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>v,requestAsyncStorage:()=>l,routeModule:()=>p,serverHooks:()=>f,staticGenerationAsyncStorage:()=>h});var n={};r.r(n),r.d(n,{GET:()=>d,dynamic:()=>c});var s=r(7786),o=r(5042),i=r(2184),a=r(1890),u=r(9580);let c="force-dynamic";async function d(e){if(u.ZA.needsSetup())return a.NextResponse.json({needsSetup:!0,authenticated:!1});let t=(0,u.Xd)(e);if(!t)return a.NextResponse.json({needsSetup:!1,authenticated:!1});try{let r=u.ZA.refresh(t),n=a.NextResponse.json({needsSetup:!1,authenticated:!0,user:{id:r.principal.userId,username:r.principal.username},csrfToken:r.csrfToken,deviceId:r.principal.deviceId});return n.cookies.set(u.VP,t,(0,u.Ci)(e,2592e3,!0)),n.cookies.set(u.ki,r.principal.deviceId,(0,u.Ci)(e,31536e3,!1)),n}catch(r){let t=a.NextResponse.json({needsSetup:!1,authenticated:!1});return t.cookies.set(u.VP,"",(0,u.Ci)(e,0,!0)),t}}let p=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/web-auth/status/route",pathname:"/api/web-auth/status",filename:"route",bundlePath:"app/api/web-auth/status/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-auth/status/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:l,staticGenerationAsyncStorage:h,serverHooks:f}=p,m="/api/web-auth/status/route";function v(){return(0,i.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:h})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>u});var n=r(9411);let s=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function o(e=process.env,t=s){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return o()}function a(e=process.env,t=o(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let s=e.AGENTROAM_DATA_DIR?.trim();return s?(0,n.resolve)(s,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=s){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},9580:(e,t,r)=>{r.d(t,{$U:()=>p,Ci:()=>h,VP:()=>o,Xd:()=>d,ZA:()=>a,ap:()=>l,hw:()=>u,ki:()=>i,yN:()=>f});var n=r(1636),s=r(785);let o="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,s.kO)())),u=new n.SQLiteWebConsoleStore((0,s.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function d(e){return c(e)[o]||null}function p(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[i],deviceName:e.headers.get("x-device-name")||""}}function l(e){let t=a.authenticateToken(d(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function h(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function f(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(4712));module.exports=n})();
1
+ "use strict";(()=>{var e={};e.id=9558,e.ids=[9558],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")},9411:e=>{e.exports=require("node:path")},2240:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>v,patchFetch:()=>m,requestAsyncStorage:()=>l,routeModule:()=>p,serverHooks:()=>f,staticGenerationAsyncStorage:()=>h});var n={};r.r(n),r.d(n,{GET:()=>d,dynamic:()=>c});var s=r(7786),o=r(5042),i=r(2184),a=r(1890),u=r(9580);let c="force-dynamic";async function d(e){if(u.ZA.needsSetup())return a.NextResponse.json({needsSetup:!0,authenticated:!1});let t=(0,u.Xd)(e);if(!t)return a.NextResponse.json({needsSetup:!1,authenticated:!1});try{let r=u.ZA.refresh(t),n=a.NextResponse.json({needsSetup:!1,authenticated:!0,user:{id:r.principal.userId,username:r.principal.username},csrfToken:r.csrfToken,deviceId:r.principal.deviceId});return n.cookies.set(u.VP,t,(0,u.Ci)(e,2592e3,!0)),n.cookies.set(u.ki,r.principal.deviceId,(0,u.Ci)(e,31536e3,!1)),n}catch(r){let t=a.NextResponse.json({needsSetup:!1,authenticated:!1});return t.cookies.set(u.VP,"",(0,u.Ci)(e,0,!0)),t}}let p=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/web-auth/status/route",pathname:"/api/web-auth/status",filename:"route",bundlePath:"app/api/web-auth/status/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-auth/status/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:l,staticGenerationAsyncStorage:h,serverHooks:f}=p,v="/api/web-auth/status/route";function m(){return(0,i.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:h})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>u});var n=r(9411);let s=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function o(e=process.env,t=s){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return o()}function a(e=process.env,t=o(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let s=e.AGENTROAM_DATA_DIR?.trim();return s?(0,n.resolve)(s,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=s){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},9580:(e,t,r)=>{r.d(t,{$U:()=>p,Ci:()=>h,VP:()=>o,Xd:()=>d,ZA:()=>a,ap:()=>l,hw:()=>u,ki:()=>i,yN:()=>f});var n=r(1636),s=r(785);let o="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,s.kO)())),u=new n.SQLiteWebConsoleStore((0,s.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function d(e){return c(e)[o]||null}function p(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[i],deviceName:e.headers.get("x-device-name")||""}}function l(e){let t=a.authenticateToken(d(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function h(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function f(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(2240));module.exports=n})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=2285,e.ids=[2285],e.modules={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")},6461:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>b,requestAsyncStorage:()=>c,routeModule:()=>u,serverHooks:()=>l,staticGenerationAsyncStorage:()=>d});var o={};r.r(o),r.d(o,{GET:()=>i,dynamic:()=>p});var a=r(7786),s=r(5042),n=r(2184);let p="force-dynamic";async function i(){return Response.json({error:"Device pairing gateway required"},{status:401})}let u=new a.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/bootstrap/route",pathname:"/api/web-console/bootstrap",filename:"route",bundlePath:"app/api/web-console/bootstrap/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-console/bootstrap/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:c,staticGenerationAsyncStorage:d,serverHooks:l}=u,m="/api/web-console/bootstrap/route";function b(){return(0,n.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:d})}},7786:(e,t,r)=>{e.exports=r(517)}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),o=t.X(0,[8375],()=>r(6461));module.exports=o})();
1
+ "use strict";(()=>{var e={};e.id=2285,e.ids=[2285],e.modules={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")},6593:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>m,patchFetch:()=>b,requestAsyncStorage:()=>c,routeModule:()=>u,serverHooks:()=>l,staticGenerationAsyncStorage:()=>d});var o={};t.r(o),t.d(o,{GET:()=>i,dynamic:()=>p});var a=t(7786),s=t(5042),n=t(2184);let p="force-dynamic";async function i(){return Response.json({error:"Device pairing gateway required"},{status:401})}let u=new a.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/bootstrap/route",pathname:"/api/web-console/bootstrap",filename:"route",bundlePath:"app/api/web-console/bootstrap/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-console/bootstrap/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:c,staticGenerationAsyncStorage:d,serverHooks:l}=u,m="/api/web-console/bootstrap/route";function b(){return(0,n.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:d})}},7786:(e,r,t)=>{e.exports=t(517)}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[8375],()=>t(6593));module.exports=o})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=842,e.ids=[842],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")},9411:e=>{e.exports=require("node:path")},803:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>w,patchFetch:()=>T,requestAsyncStorage:()=>m,routeModule:()=>g,serverHooks:()=>h,staticGenerationAsyncStorage:()=>f});var s={};r.r(s),r.d(s,{GET:()=>p,PATCH:()=>v,dynamic:()=>l});var o=r(7786),n=r(5042),i=r(2184),a=r(1890),u=r(1636),c=r(2110);let l="force-dynamic",d=(e,t=200)=>a.NextResponse.json(e,{status:t,headers:{"Cache-Control":"no-store"}});async function p(){let{userId:e}=(0,c.nQ)();return d({settings:c.hw.getComputerSettings(e)??(0,u.defaultComputerSettings)(e)})}async function v(e){let t,r;let{userId:s}=(0,c.nQ)(),o=c.hw.getComputerSettings(s),n=o??(0,u.defaultComputerSettings)(s),i=!1;try{let s=await e.json(),o=["expectedRevision","visibleTools","savedPages","initializePages"];if(!s||Array.isArray(s)||"object"!=typeof s||Object.keys(s).some(e=>!o.includes(e)))throw Error("电脑配置参数无效。");if(!Number.isSafeInteger(s.expectedRevision)||s.expectedRevision<0)throw Error("缺少有效的配置版本,请重新加载。");r=s.expectedRevision;let a=e=>Object.prototype.hasOwnProperty.call(s,e);if((i=a("initializePages"))&&(a("savedPages")||a("visibleTools")))throw Error("旧页面导入不能与其他配置同时修改。");if(!i&&!a("visibleTools")&&!a("savedPages"))throw Error("请选择要保存的配置。");t={...n,visibleTools:a("visibleTools")?(0,u.validateComputerTools)(s.visibleTools):n.visibleTools,savedPages:i?(0,u.validateSavedComputerPages)(s.initializePages):a("savedPages")?(0,u.validateSavedComputerPages)(s.savedPages):n.savedPages,revision:n.revision+1,updatedAt:new Date().toISOString()}}catch(e){return d({error:{code:"INVALID_COMPUTER_SETTINGS",message:e instanceof Error?e.message:"电脑配置无效。"}},400)}return i&&null!==n.savedPages?d({settings:n}):r===n.revision&&c.hw.saveComputerSettings(t,o?n.revision:null)?d({settings:t}):d({error:{code:"REVISION_CONFLICT",message:"配置已在其他设备更新,请重新加载后重试。"}},409)}let g=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/web-console/computer-settings/route",pathname:"/api/web-console/computer-settings",filename:"route",bundlePath:"app/api/web-console/computer-settings/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-console/computer-settings/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:m,staticGenerationAsyncStorage:f,serverHooks:h}=g,w="/api/web-console/computer-settings/route";function T(){return(0,i.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:f})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>u});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 u(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},2110:(e,t,r)=>{r.d(t,{hw:()=>n.hw,nQ:()=>a});var s=r(1636),o=r(785),n=r(9580);let i=new s.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},9580:(e,t,r)=>{r.d(t,{$U:()=>d,Ci:()=>v,VP:()=>n,Xd:()=>l,ZA:()=>a,ap:()=>p,hw:()=>u,ki:()=>i,yN:()=>g});var s=r(1636),o=r(785);let n="customer_agent_session",i="customer_agent_device",a=new s.WebAuthService(new s.SQLiteAuthStore((0,o.kO)())),u=new s.SQLiteWebConsoleStore((0,o.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function l(e){return c(e)[n]||null}function d(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[i],deviceName:e.headers.get("x-device-name")||""}}function p(e){let t=a.authenticateToken(l(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function v(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function g(e){let t=e instanceof s.WebAuthError?e:new s.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(803));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=842,e.ids=[842],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")},9411:e=>{e.exports=require("node:path")},7532:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>w,patchFetch:()=>T,requestAsyncStorage:()=>m,routeModule:()=>g,serverHooks:()=>h,staticGenerationAsyncStorage:()=>f});var s={};r.r(s),r.d(s,{GET:()=>p,PATCH:()=>v,dynamic:()=>c});var o=r(7786),n=r(5042),i=r(2184),a=r(1890),u=r(1636),l=r(2110);let c="force-dynamic",d=(e,t=200)=>a.NextResponse.json(e,{status:t,headers:{"Cache-Control":"no-store"}});async function p(){let{userId:e}=(0,l.nQ)();return d({settings:l.hw.getComputerSettings(e)??(0,u.defaultComputerSettings)(e)})}async function v(e){let t,r;let{userId:s}=(0,l.nQ)(),o=l.hw.getComputerSettings(s),n=o??(0,u.defaultComputerSettings)(s),i=!1;try{let s=await e.json(),o=["expectedRevision","visibleTools","savedPages","initializePages"];if(!s||Array.isArray(s)||"object"!=typeof s||Object.keys(s).some(e=>!o.includes(e)))throw Error("电脑配置参数无效。");if(!Number.isSafeInteger(s.expectedRevision)||s.expectedRevision<0)throw Error("缺少有效的配置版本,请重新加载。");r=s.expectedRevision;let a=e=>Object.prototype.hasOwnProperty.call(s,e);if((i=a("initializePages"))&&(a("savedPages")||a("visibleTools")))throw Error("旧页面导入不能与其他配置同时修改。");if(!i&&!a("visibleTools")&&!a("savedPages"))throw Error("请选择要保存的配置。");t={...n,visibleTools:a("visibleTools")?(0,u.validateComputerTools)(s.visibleTools):n.visibleTools,savedPages:i?(0,u.validateSavedComputerPages)(s.initializePages):a("savedPages")?(0,u.validateSavedComputerPages)(s.savedPages):n.savedPages,revision:n.revision+1,updatedAt:new Date().toISOString()}}catch(e){return d({error:{code:"INVALID_COMPUTER_SETTINGS",message:e instanceof Error?e.message:"电脑配置无效。"}},400)}return i&&null!==n.savedPages?d({settings:n}):r===n.revision&&l.hw.saveComputerSettings(t,o?n.revision:null)?d({settings:t}):d({error:{code:"REVISION_CONFLICT",message:"配置已在其他设备更新,请重新加载后重试。"}},409)}let g=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/web-console/computer-settings/route",pathname:"/api/web-console/computer-settings",filename:"route",bundlePath:"app/api/web-console/computer-settings/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-console/computer-settings/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:m,staticGenerationAsyncStorage:f,serverHooks:h}=g,w="/api/web-console/computer-settings/route";function T(){return(0,i.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:f})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>u});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 u(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},2110:(e,t,r)=>{r.d(t,{hw:()=>n.hw,nQ:()=>a});var s=r(1636),o=r(785),n=r(9580);let i=new s.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},9580:(e,t,r)=>{r.d(t,{$U:()=>d,Ci:()=>v,VP:()=>n,Xd:()=>c,ZA:()=>a,ap:()=>p,hw:()=>u,ki:()=>i,yN:()=>g});var s=r(1636),o=r(785);let n="customer_agent_session",i="customer_agent_device",a=new s.WebAuthService(new s.SQLiteAuthStore((0,o.kO)())),u=new s.SQLiteWebConsoleStore((0,o.kO)());function l(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function c(e){return l(e)[n]||null}function d(e){let t=l(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[i],deviceName:e.headers.get("x-device-name")||""}}function p(e){let t=a.authenticateToken(c(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function v(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function g(e){let t=e instanceof s.WebAuthError?e:new s.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(7532));module.exports=s})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=7843,e.ids=[7843],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")},9411:e=>{e.exports=require("node:path")},6761:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>E,patchFetch:()=>T,requestAsyncStorage:()=>w,routeModule:()=>v,serverHooks:()=>A,staticGenerationAsyncStorage:()=>C});var o={};t.r(o),t.d(o,{DELETE:()=>h,GET:()=>m,PATCH:()=>g,POST:()=>f,dynamic:()=>p});var n=t(7786),s=t(5042),i=t(2184),a=t(1890),u=t(1636),c=t(2110);let p="force-dynamic",l=(e,r=200)=>a.NextResponse.json(e,{status:r,headers:{"Cache-Control":"no-store"}}),d=e=>l({error:{code:"INVALID_COMPUTER_DIRECTORY",message:e instanceof Error?e.message:"电脑列表无效。"}},400);async function m(){return l({computers:c.hw.listComputerConnections((0,c.nQ)().userId)})}async function f(e){try{let r=await e.json();if(!r||Array.isArray(r)||"object"!=typeof r||Object.keys(r).some(e=>!["computers","restore"].includes(e))||void 0!==r.restore&&"boolean"!=typeof r.restore)throw Error("电脑列表参数无效。");let t=(0,u.validateComputerConnections)(r.computers);return l({computers:c.hw.mergeComputerConnections((0,c.nQ)().userId,t,!0===r.restore)})}catch(e){return d(e)}}async function h(e){try{let r=await e.json();if(!r||Array.isArray(r)||"object"!=typeof r||Object.keys(r).some(e=>"origin"!==e))throw Error("电脑列表参数无效。");let[t]=(0,u.validateComputerConnections)([{origin:r.origin,name:"电脑"}]),o=new URL(e.headers.get("origin")||e.url).origin;if(t.origin===o)throw Error("不能删除当前连接的电脑。");let{userId:n}=(0,c.nQ)();return c.hw.removeComputerConnection(n,t.origin),l({computers:c.hw.listComputerConnections(n)})}catch(e){return d(e)}}async function g(e){try{let r=await e.json(),[t]=(0,u.validateComputerConnections)([r]),{userId:o}=(0,c.nQ)();if(!c.hw.renameComputerConnection(o,t))return l({error:{code:"COMPUTER_NOT_FOUND",message:"电脑尚未添加,请重新加载列表。"}},404);return l({computers:c.hw.listComputerConnections(o)})}catch(e){return d(e)}}let v=new n.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/computers/route",pathname:"/api/web-console/computers",filename:"route",bundlePath:"app/api/web-console/computers/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-console/computers/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:w,staticGenerationAsyncStorage:C,serverHooks:A}=v,E="/api/web-console/computers/route";function T(){return(0,i.patchFetch)({serverHooks:A,staticGenerationAsyncStorage:C})}},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var o=t(9411);let n=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 s(e=process.env,r=n){return(0,o.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return s()}function a(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,o.resolve)(t);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,o.resolve)(n,"logs"):(0,o.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=n){return(0,o.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}},2110:(e,r,t)=>{t.d(r,{hw:()=>s.hw,nQ:()=>a});var o=t(1636),n=t(785),s=t(9580);let i=new o.SQLiteAnonymousWebStore((0,n.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},9580:(e,r,t)=>{t.d(r,{$U:()=>l,Ci:()=>m,VP:()=>s,Xd:()=>p,ZA:()=>a,ap:()=>d,hw:()=>u,ki:()=>i,yN:()=>f});var o=t(1636),n=t(785);let s="customer_agent_session",i="customer_agent_device",a=new o.WebAuthService(new o.SQLiteAuthStore((0,n.kO)())),u=new o.SQLiteWebConsoleStore((0,n.kO)());function c(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function p(e){return c(e)[s]||null}function l(e){let r=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[i],deviceName:e.headers.get("x-device-name")||""}}function d(e){let r=a.authenticateToken(p(e));return a.validateCsrf(r,e.headers.get("x-csrf-token")),r}function m(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function f(e){let r=e instanceof o.WebAuthError?e:new o.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[8375,6703],()=>t(6761));module.exports=o})();
1
+ "use strict";(()=>{var e={};e.id=7843,e.ids=[7843],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")},9411:e=>{e.exports=require("node:path")},2633:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>E,patchFetch:()=>T,requestAsyncStorage:()=>w,routeModule:()=>v,serverHooks:()=>A,staticGenerationAsyncStorage:()=>C});var o={};t.r(o),t.d(o,{DELETE:()=>f,GET:()=>m,PATCH:()=>g,POST:()=>h,dynamic:()=>p});var n=t(7786),s=t(5042),i=t(2184),a=t(1890),u=t(1636),c=t(2110);let p="force-dynamic",l=(e,r=200)=>a.NextResponse.json(e,{status:r,headers:{"Cache-Control":"no-store"}}),d=e=>l({error:{code:"INVALID_COMPUTER_DIRECTORY",message:e instanceof Error?e.message:"电脑列表无效。"}},400);async function m(){return l({computers:c.hw.listComputerConnections((0,c.nQ)().userId)})}async function h(e){try{let r=await e.json();if(!r||Array.isArray(r)||"object"!=typeof r||Object.keys(r).some(e=>!["computers","restore"].includes(e))||void 0!==r.restore&&"boolean"!=typeof r.restore)throw Error("电脑列表参数无效。");let t=(0,u.validateComputerConnections)(r.computers);return l({computers:c.hw.mergeComputerConnections((0,c.nQ)().userId,t,!0===r.restore)})}catch(e){return d(e)}}async function f(e){try{let r=await e.json();if(!r||Array.isArray(r)||"object"!=typeof r||Object.keys(r).some(e=>"origin"!==e))throw Error("电脑列表参数无效。");let[t]=(0,u.validateComputerConnections)([{origin:r.origin,name:"电脑"}]),o=new URL(e.headers.get("origin")||e.url).origin;if(t.origin===o)throw Error("不能删除当前连接的电脑。");let{userId:n}=(0,c.nQ)();return c.hw.removeComputerConnection(n,t.origin),l({computers:c.hw.listComputerConnections(n)})}catch(e){return d(e)}}async function g(e){try{let r=await e.json(),[t]=(0,u.validateComputerConnections)([r]),{userId:o}=(0,c.nQ)();if(!c.hw.renameComputerConnection(o,t))return l({error:{code:"COMPUTER_NOT_FOUND",message:"电脑尚未添加,请重新加载列表。"}},404);return l({computers:c.hw.listComputerConnections(o)})}catch(e){return d(e)}}let v=new n.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/computers/route",pathname:"/api/web-console/computers",filename:"route",bundlePath:"app/api/web-console/computers/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-console/computers/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:w,staticGenerationAsyncStorage:C,serverHooks:A}=v,E="/api/web-console/computers/route";function T(){return(0,i.patchFetch)({serverHooks:A,staticGenerationAsyncStorage:C})}},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var o=t(9411);let n=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 s(e=process.env,r=n){return(0,o.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return s()}function a(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,o.resolve)(t);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,o.resolve)(n,"logs"):(0,o.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=n){return(0,o.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}},2110:(e,r,t)=>{t.d(r,{hw:()=>s.hw,nQ:()=>a});var o=t(1636),n=t(785),s=t(9580);let i=new o.SQLiteAnonymousWebStore((0,n.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},9580:(e,r,t)=>{t.d(r,{$U:()=>l,Ci:()=>m,VP:()=>s,Xd:()=>p,ZA:()=>a,ap:()=>d,hw:()=>u,ki:()=>i,yN:()=>h});var o=t(1636),n=t(785);let s="customer_agent_session",i="customer_agent_device",a=new o.WebAuthService(new o.SQLiteAuthStore((0,n.kO)())),u=new o.SQLiteWebConsoleStore((0,n.kO)());function c(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function p(e){return c(e)[s]||null}function l(e){let r=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[i],deviceName:e.headers.get("x-device-name")||""}}function d(e){let r=a.authenticateToken(p(e));return a.validateCsrf(r,e.headers.get("x-csrf-token")),r}function m(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function h(e){let r=e instanceof o.WebAuthError?e:new o.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[8375,6703],()=>t(2633));module.exports=o})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=7107,e.ids=[7107],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")},9411:e=>{e.exports=require("node:path")},5522:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>w,requestAsyncStorage:()=>m,routeModule:()=>v,serverHooks:()=>g,staticGenerationAsyncStorage:()=>f});var n={};r.r(n),r.d(n,{GET:()=>l,PUT:()=>p,dynamic:()=>c});var o=r(7786),s=r(5042),a=r(2184),i=r(1890),u=r(2110);let c="force-dynamic",d=(e,t)=>({userId:e,deviceId:t,activeTerminalId:null,drawerOpen:!1,drawerTab:"files",fileTreeRoot:null,fileTreeFollowMode:!0,expandedPaths:[],selectedFile:null,terminalScroll:{},updatedAt:new Date().toISOString()});async function l(e){let{userId:t}=(0,u.nQ)(),r=e.headers.get("x-agentroam-device-id");return r?i.NextResponse.json({deviceState:u.hw.getDeviceState(t,r)??d(t,r)}):i.NextResponse.json({error:"Device authorization required"},{status:401})}async function p(e){let{userId:t}=(0,u.nQ)(),r=e.headers.get("x-agentroam-device-id");if(!r)return i.NextResponse.json({error:"Device authorization required"},{status:401});let n=u.hw.getDeviceState(t,r)??d(t,r),o=await e.json(),s={...n,...o,userId:t,deviceId:r,updatedAt:new Date().toISOString()};return u.hw.saveDeviceState(s),i.NextResponse.json({deviceState:s})}let v=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/device-state/route",pathname:"/api/web-console/device-state",filename:"route",bundlePath:"app/api/web-console/device-state/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-console/device-state/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:m,staticGenerationAsyncStorage:f,serverHooks:g}=v,h="/api/web-console/device-state/route";function w(){return(0,a.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:f})}},785:(e,t,r)=>{r.d(t,{ME:()=>i,kO:()=>a,sr:()=>u});var n=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function s(e=process.env,t=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function a(){return s()}function i(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,a())}},2110:(e,t,r)=>{r.d(t,{hw:()=>s.hw,nQ:()=>i});var n=r(1636),o=r(785),s=r(9580);let a=new n.SQLiteAnonymousWebStore((0,o.kO)());function i(){return{userId:a.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},9580:(e,t,r)=>{r.d(t,{$U:()=>l,Ci:()=>v,VP:()=>s,Xd:()=>d,ZA:()=>i,ap:()=>p,hw:()=>u,ki:()=>a,yN:()=>m});var n=r(1636),o=r(785);let s="customer_agent_session",a="customer_agent_device",i=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function d(e){return c(e)[s]||null}function l(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[a],deviceName:e.headers.get("x-device-name")||""}}function p(e){let t=i.authenticateToken(d(e));return i.validateCsrf(t,e.headers.get("x-csrf-token")),t}function v(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function m(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(5522));module.exports=n})();
1
+ "use strict";(()=>{var e={};e.id=7107,e.ids=[7107],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")},9411:e=>{e.exports=require("node:path")},7295:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>w,requestAsyncStorage:()=>m,routeModule:()=>v,serverHooks:()=>f,staticGenerationAsyncStorage:()=>g});var n={};r.r(n),r.d(n,{GET:()=>l,PUT:()=>p,dynamic:()=>c});var o=r(7786),s=r(5042),a=r(2184),i=r(1890),u=r(2110);let c="force-dynamic",d=(e,t)=>({userId:e,deviceId:t,activeTerminalId:null,drawerOpen:!1,drawerTab:"files",fileTreeRoot:null,fileTreeFollowMode:!0,expandedPaths:[],selectedFile:null,terminalScroll:{},updatedAt:new Date().toISOString()});async function l(e){let{userId:t}=(0,u.nQ)(),r=e.headers.get("x-agentroam-device-id");return r?i.NextResponse.json({deviceState:u.hw.getDeviceState(t,r)??d(t,r)}):i.NextResponse.json({error:"Device authorization required"},{status:401})}async function p(e){let{userId:t}=(0,u.nQ)(),r=e.headers.get("x-agentroam-device-id");if(!r)return i.NextResponse.json({error:"Device authorization required"},{status:401});let n=u.hw.getDeviceState(t,r)??d(t,r),o=await e.json(),s={...n,...o,userId:t,deviceId:r,updatedAt:new Date().toISOString()};return u.hw.saveDeviceState(s),i.NextResponse.json({deviceState:s})}let v=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/device-state/route",pathname:"/api/web-console/device-state",filename:"route",bundlePath:"app/api/web-console/device-state/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-console/device-state/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:m,staticGenerationAsyncStorage:g,serverHooks:f}=v,h="/api/web-console/device-state/route";function w(){return(0,a.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:g})}},785:(e,t,r)=>{r.d(t,{ME:()=>i,kO:()=>a,sr:()=>u});var n=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function s(e=process.env,t=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function a(){return s()}function i(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,a())}},2110:(e,t,r)=>{r.d(t,{hw:()=>s.hw,nQ:()=>i});var n=r(1636),o=r(785),s=r(9580);let a=new n.SQLiteAnonymousWebStore((0,o.kO)());function i(){return{userId:a.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},9580:(e,t,r)=>{r.d(t,{$U:()=>l,Ci:()=>v,VP:()=>s,Xd:()=>d,ZA:()=>i,ap:()=>p,hw:()=>u,ki:()=>a,yN:()=>m});var n=r(1636),o=r(785);let s="customer_agent_session",a="customer_agent_device",i=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function d(e){return c(e)[s]||null}function l(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[a],deviceName:e.headers.get("x-device-name")||""}}function p(e){let t=i.authenticateToken(d(e));return i.validateCsrf(t,e.headers.get("x-csrf-token")),t}function v(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function m(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(7295));module.exports=n})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=6289,e.ids=[6289],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")},9411:e=>{e.exports=require("node:path")},2627:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>h,patchFetch:()=>v,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>m,staticGenerationAsyncStorage:()=>p});var n={};t.r(n),t.d(n,{DELETE:()=>c,GET:()=>u});var o=t(7786),s=t(5042),i=t(2184),a=t(2110);async function u(e){let{userId:r}=(0,a.nQ)(),t=new URL(e.url);return Response.json({history:a.hw.listHistory(r,t.searchParams.get("q")||"",Math.min(200,Number(t.searchParams.get("limit")||100)),t.searchParams.get("terminalId")||void 0)})}async function c(e){let{userId:r}=(0,a.nQ)(),t=await e.json();return t.id?a.hw.deleteHistory(r,Number(t.id)):a.hw.clearHistory(r,t.terminalId||void 0),new Response(null,{status:204})}let l=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/history/route",pathname:"/api/web-console/history",filename:"route",bundlePath:"app/api/web-console/history/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-console/history/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:d,staticGenerationAsyncStorage:p,serverHooks:m}=l,h="/api/web-console/history/route";function v(){return(0,i.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:p})}},7786:(e,r,t)=>{e.exports=t(517)},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var n=t(9411);let o=function(){let e=process.argv[1];if(e){let r=(0,n.dirname)((0,n.resolve)(e)),t=`${n.sep}node_modules${n.sep}.bin`;return r.endsWith(t)?(0,n.resolve)(r,"..",".."):r}return(0,n.resolve)(process.cwd())}();function s(e=process.env,r=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return s()}function a(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,n.resolve)(t);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}},2110:(e,r,t)=>{t.d(r,{hw:()=>s.hw,nQ:()=>a});var n=t(1636),o=t(785),s=t(9580);let i=new n.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},9580:(e,r,t)=>{t.d(r,{$U:()=>d,Ci:()=>m,VP:()=>s,Xd:()=>l,ZA:()=>a,ap:()=>p,hw:()=>u,ki:()=>i,yN:()=>h});var n=t(1636),o=t(785);let s="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function l(e){return c(e)[s]||null}function d(e){let r=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[i],deviceName:e.headers.get("x-device-name")||""}}function p(e){let r=a.authenticateToken(l(e));return a.validateCsrf(r,e.headers.get("x-csrf-token")),r}function m(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function h(e){let r=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[8375],()=>t(2627));module.exports=n})();
1
+ "use strict";(()=>{var e={};e.id=6289,e.ids=[6289],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")},9411:e=>{e.exports=require("node:path")},5711:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>m,patchFetch:()=>v,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>h,staticGenerationAsyncStorage:()=>p});var n={};t.r(n),t.d(n,{DELETE:()=>c,GET:()=>u});var o=t(7786),s=t(5042),i=t(2184),a=t(2110);async function u(e){let{userId:r}=(0,a.nQ)(),t=new URL(e.url);return Response.json({history:a.hw.listHistory(r,t.searchParams.get("q")||"",Math.min(200,Number(t.searchParams.get("limit")||100)),t.searchParams.get("terminalId")||void 0)})}async function c(e){let{userId:r}=(0,a.nQ)(),t=await e.json();return t.id?a.hw.deleteHistory(r,Number(t.id)):a.hw.clearHistory(r,t.terminalId||void 0),new Response(null,{status:204})}let l=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/history/route",pathname:"/api/web-console/history",filename:"route",bundlePath:"app/api/web-console/history/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-console/history/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:d,staticGenerationAsyncStorage:p,serverHooks:h}=l,m="/api/web-console/history/route";function v(){return(0,i.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:p})}},7786:(e,r,t)=>{e.exports=t(517)},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var n=t(9411);let o=function(){let e=process.argv[1];if(e){let r=(0,n.dirname)((0,n.resolve)(e)),t=`${n.sep}node_modules${n.sep}.bin`;return r.endsWith(t)?(0,n.resolve)(r,"..",".."):r}return(0,n.resolve)(process.cwd())}();function s(e=process.env,r=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return s()}function a(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,n.resolve)(t);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}},2110:(e,r,t)=>{t.d(r,{hw:()=>s.hw,nQ:()=>a});var n=t(1636),o=t(785),s=t(9580);let i=new n.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},9580:(e,r,t)=>{t.d(r,{$U:()=>d,Ci:()=>h,VP:()=>s,Xd:()=>l,ZA:()=>a,ap:()=>p,hw:()=>u,ki:()=>i,yN:()=>m});var n=t(1636),o=t(785);let s="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function l(e){return c(e)[s]||null}function d(e){let r=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[i],deviceName:e.headers.get("x-device-name")||""}}function p(e){let r=a.authenticateToken(l(e));return a.validateCsrf(r,e.headers.get("x-csrf-token")),r}function h(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function m(e){let r=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[8375],()=>t(5711));module.exports=n})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=9792,e.ids=[9792],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")},9411:e=>{e.exports=require("node:path")},5933:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>h,patchFetch:()=>w,requestAsyncStorage:()=>f,routeModule:()=>m,serverHooks:()=>g,staticGenerationAsyncStorage:()=>v});var n={};t.r(n),t.d(n,{GET:()=>p,PATCH:()=>l});var o=t(7786),s=t(5042),a=t(2184),i=t(1890),u=t(1636),c=t(2110);let d=e=>({userId:e,revision:1,theme:"black",terminalFontSize:11,fileButtonPosition:{xRatio:.94,yRatio:.65,anchor:"right"},keybarPosition:{xRatio:.5,yRatio:.95,anchor:"bottom"},keybarHidden:!1,keyOrder:[],pinnedCommands:(0,u.defaultPinnedCommands)(),updatedAt:new Date().toISOString()});async function p(){let{userId:e}=(0,c.nQ)();return i.NextResponse.json({preferences:c.hw.getPreferences(e)??d(e)})}async function l(e){let{userId:r}=(0,c.nQ)(),t=c.hw.getPreferences(r)??d(r),n=await e.json(),o=t.pinnedCommands;if(Object.prototype.hasOwnProperty.call(n,"pinnedCommands"))try{o=(0,u.validatePinnedCommands)(n.pinnedCommands)}catch(e){return i.NextResponse.json({error:{code:"INVALID_PINNED_COMMANDS",message:e instanceof Error?e.message:"置顶命令无效"}},{status:400})}let s={...t,...n,pinnedCommands:o,userId:r,revision:t.revision+1,updatedAt:new Date().toISOString()},a=c.hw.getPreferences(r);return c.hw.savePreferences(s,a?t.revision:null)?i.NextResponse.json({preferences:s}):i.NextResponse.json({error:{code:"REVISION_CONFLICT",message:"偏好已在其他设备更新"}},{status:409})}let m=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/preferences/route",pathname:"/api/web-console/preferences",filename:"route",bundlePath:"app/api/web-console/preferences/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-npm71-desktop35-20261102/source/packages/server/app/api/web-console/preferences/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:f,staticGenerationAsyncStorage:v,serverHooks:g}=m,h="/api/web-console/preferences/route";function w(){return(0,a.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:v})}},785:(e,r,t)=>{t.d(r,{ME:()=>i,kO:()=>a,sr:()=>u});var n=t(9411);let o=function(){let e=process.argv[1];if(e){let r=(0,n.dirname)((0,n.resolve)(e)),t=`${n.sep}node_modules${n.sep}.bin`;return r.endsWith(t)?(0,n.resolve)(r,"..",".."):r}return(0,n.resolve)(process.cwd())}();function s(e=process.env,r=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function a(){return s()}function i(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,n.resolve)(t);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,a())}},2110:(e,r,t)=>{t.d(r,{hw:()=>s.hw,nQ:()=>i});var n=t(1636),o=t(785),s=t(9580);let a=new n.SQLiteAnonymousWebStore((0,o.kO)());function i(){return{userId:a.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},9580:(e,r,t)=>{t.d(r,{$U:()=>p,Ci:()=>m,VP:()=>s,Xd:()=>d,ZA:()=>i,ap:()=>l,hw:()=>u,ki:()=>a,yN:()=>f});var n=t(1636),o=t(785);let s="customer_agent_session",a="customer_agent_device",i=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function d(e){return c(e)[s]||null}function p(e){let r=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[a],deviceName:e.headers.get("x-device-name")||""}}function l(e){let r=i.authenticateToken(d(e));return i.validateCsrf(r,e.headers.get("x-csrf-token")),r}function m(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function f(e){let r=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[8375,6703],()=>t(5933));module.exports=n})();
1
+ "use strict";(()=>{var e={};e.id=9792,e.ids=[9792],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")},9411:e=>{e.exports=require("node:path")},3951:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>h,patchFetch:()=>w,requestAsyncStorage:()=>f,routeModule:()=>m,serverHooks:()=>g,staticGenerationAsyncStorage:()=>v});var n={};t.r(n),t.d(n,{GET:()=>p,PATCH:()=>l});var o=t(7786),s=t(5042),a=t(2184),i=t(1890),u=t(1636),c=t(2110);let d=e=>({userId:e,revision:1,theme:"black",terminalFontSize:11,fileButtonPosition:{xRatio:.94,yRatio:.65,anchor:"right"},keybarPosition:{xRatio:.5,yRatio:.95,anchor:"bottom"},keybarHidden:!1,keyOrder:[],pinnedCommands:(0,u.defaultPinnedCommands)(),updatedAt:new Date().toISOString()});async function p(){let{userId:e}=(0,c.nQ)();return i.NextResponse.json({preferences:c.hw.getPreferences(e)??d(e)})}async function l(e){let{userId:r}=(0,c.nQ)(),t=c.hw.getPreferences(r)??d(r),n=await e.json(),o=t.pinnedCommands;if(Object.prototype.hasOwnProperty.call(n,"pinnedCommands"))try{o=(0,u.validatePinnedCommands)(n.pinnedCommands)}catch(e){return i.NextResponse.json({error:{code:"INVALID_PINNED_COMMANDS",message:e instanceof Error?e.message:"置顶命令无效"}},{status:400})}let s={...t,...n,pinnedCommands:o,userId:r,revision:t.revision+1,updatedAt:new Date().toISOString()},a=c.hw.getPreferences(r);return c.hw.savePreferences(s,a?t.revision:null)?i.NextResponse.json({preferences:s}):i.NextResponse.json({error:{code:"REVISION_CONFLICT",message:"偏好已在其他设备更新"}},{status:409})}let m=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/preferences/route",pathname:"/api/web-console/preferences",filename:"route",bundlePath:"app/api/web-console/preferences/route"},resolvedPagePath:"/Users/caoqu/agentroam-release-20261110/packages/server/app/api/web-console/preferences/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:f,staticGenerationAsyncStorage:v,serverHooks:g}=m,h="/api/web-console/preferences/route";function w(){return(0,a.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:v})}},785:(e,r,t)=>{t.d(r,{ME:()=>i,kO:()=>a,sr:()=>u});var n=t(9411);let o=function(){let e=process.argv[1];if(e){let r=(0,n.dirname)((0,n.resolve)(e)),t=`${n.sep}node_modules${n.sep}.bin`;return r.endsWith(t)?(0,n.resolve)(r,"..",".."):r}return(0,n.resolve)(process.cwd())}();function s(e=process.env,r=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function a(){return s()}function i(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,n.resolve)(t);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,a())}},2110:(e,r,t)=>{t.d(r,{hw:()=>s.hw,nQ:()=>i});var n=t(1636),o=t(785),s=t(9580);let a=new n.SQLiteAnonymousWebStore((0,o.kO)());function i(){return{userId:a.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},9580:(e,r,t)=>{t.d(r,{$U:()=>p,Ci:()=>m,VP:()=>s,Xd:()=>d,ZA:()=>i,ap:()=>l,hw:()=>u,ki:()=>a,yN:()=>f});var n=t(1636),o=t(785);let s="customer_agent_session",a="customer_agent_device",i=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function d(e){return c(e)[s]||null}function p(e){let r=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[a],deviceName:e.headers.get("x-device-name")||""}}function l(e){let r=i.authenticateToken(d(e));return i.validateCsrf(r,e.headers.get("x-csrf-token")),r}function m(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function f(e){let r=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[8375,6703],()=>t(3951));module.exports=n})();