agentroam-runtime-darwin-arm64 0.2.0-preview.63 → 0.2.0-preview.64

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 (793) hide show
  1. package/manifest.json +2 -2
  2. package/package.json +1 -1
  3. package/runtime/.next/BUILD_ID +1 -1
  4. package/runtime/.next/app-build-manifest.json +8 -8
  5. package/runtime/.next/app-path-routes-manifest.json +1 -1
  6. package/runtime/.next/build-manifest.json +3 -3
  7. package/runtime/.next/prerender-manifest.json +1 -1
  8. package/runtime/.next/required-server-files.json +1 -1
  9. package/runtime/.next/server/app/_not-found/page.js +1 -1
  10. package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/runtime/.next/server/app/_not-found.html +1 -1
  12. package/runtime/.next/server/app/_not-found.rsc +1 -1
  13. package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
  14. package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
  15. package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
  16. package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
  17. package/runtime/.next/server/app/api/agent/model/route.js +1 -1
  18. package/runtime/.next/server/app/api/agent/models/route.js +1 -1
  19. package/runtime/.next/server/app/api/agent/run/route.js +2 -2
  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 +3 -3
  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 +1 -1
  29. package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
  30. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
  31. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +3 -3
  32. package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
  33. package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
  34. package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
  35. package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
  36. package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
  37. package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
  38. package/runtime/.next/server/app/api/memory/route.js +1 -1
  39. package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
  40. package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
  41. package/runtime/.next/server/app/api/projects/check/route.js +1 -1
  42. package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
  43. package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
  44. package/runtime/.next/server/app/api/projects/route.js +1 -1
  45. package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
  46. package/runtime/.next/server/app/api/push/unsubscribe/route.js +2 -2
  47. package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
  48. package/runtime/.next/server/app/api/push/vapid.body +1 -1
  49. package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
  50. package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
  51. package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  52. package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
  53. package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
  54. package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
  55. package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
  56. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
  57. package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
  58. package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
  59. package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
  60. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
  61. package/runtime/.next/server/app/api/sessions/route.js +1 -1
  62. package/runtime/.next/server/app/api/settings/route.js +1 -1
  63. package/runtime/.next/server/app/api/skills/route.js +1 -1
  64. package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
  65. package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
  66. package/runtime/.next/server/app/api/tools/route.js +1 -1
  67. package/runtime/.next/server/app/api/update/check/route.js +1 -1
  68. package/runtime/.next/server/app/api/update/install/route.js +1 -1
  69. package/runtime/.next/server/app/api/update/status/route.js +1 -1
  70. package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
  71. package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
  72. package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
  73. package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
  74. package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
  75. package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
  76. package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
  77. package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
  78. package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
  79. package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
  80. package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
  81. package/runtime/.next/server/app/web/page.js +4 -4
  82. package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
  83. package/runtime/.next/server/app-paths-manifest.json +33 -33
  84. package/runtime/.next/server/chunks/5303.js +1 -1
  85. package/runtime/.next/server/middleware-build-manifest.js +1 -1
  86. package/runtime/.next/server/pages/404.html +1 -1
  87. package/runtime/.next/server/pages/500.html +1 -1
  88. package/runtime/.next/server/server-reference-manifest.json +1 -1
  89. package/runtime/.next/static/chunks/app/web/{error-7ac82267d3330344.js → error-4d3646f97c1344d3.js} +1 -1
  90. package/runtime/.next/static/chunks/app/web/layout-c8709c08fb7ad857.js +1 -0
  91. package/runtime/.next/static/chunks/app/web/page-b876912c109021db.js +1 -0
  92. package/runtime/.next/static/chunks/{main-app-51ee029f2d3c9d9e.js → main-app-00dfdb2d5c09719c.js} +1 -1
  93. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
  94. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
  95. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
  96. package/runtime/node_modules/.package-lock.json +19 -14
  97. package/runtime/node_modules/@agent/native-runtime/dist/index.js +572 -93
  98. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +71 -71
  99. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +37 -37
  100. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-36zyfan5.mjs +52 -0
  101. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-p79weg14.mjs → core-5682eevd.mjs} +4 -4
  102. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-nne0e2ds.mjs +40 -0
  103. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-mh5qmqqf.mjs → core-xpxe8nzb.mjs} +1 -1
  104. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +10 -10
  105. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +19 -20
  106. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +23 -24
  107. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +14 -14
  108. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +74 -74
  109. package/runtime/node_modules/caniuse-lite/data/agents.js +1 -1
  110. package/runtime/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  111. package/runtime/node_modules/caniuse-lite/data/features/aac.js +1 -1
  112. package/runtime/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  113. package/runtime/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  114. package/runtime/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  115. package/runtime/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  116. package/runtime/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  117. package/runtime/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  118. package/runtime/node_modules/caniuse-lite/data/features/apng.js +1 -1
  119. package/runtime/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  120. package/runtime/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  121. package/runtime/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  122. package/runtime/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  123. package/runtime/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  124. package/runtime/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  125. package/runtime/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  126. package/runtime/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  127. package/runtime/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  128. package/runtime/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  129. package/runtime/node_modules/caniuse-lite/data/features/audio.js +1 -1
  130. package/runtime/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  131. package/runtime/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  132. package/runtime/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  133. package/runtime/node_modules/caniuse-lite/data/features/av1.js +1 -1
  134. package/runtime/node_modules/caniuse-lite/data/features/avif.js +1 -1
  135. package/runtime/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  136. package/runtime/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  137. package/runtime/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  138. package/runtime/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  139. package/runtime/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  140. package/runtime/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  141. package/runtime/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  142. package/runtime/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  143. package/runtime/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  144. package/runtime/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  145. package/runtime/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  146. package/runtime/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  147. package/runtime/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  148. package/runtime/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  149. package/runtime/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  150. package/runtime/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  151. package/runtime/node_modules/caniuse-lite/data/features/calc.js +1 -1
  152. package/runtime/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  153. package/runtime/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  154. package/runtime/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  155. package/runtime/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  156. package/runtime/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  157. package/runtime/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  158. package/runtime/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  159. package/runtime/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  160. package/runtime/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  161. package/runtime/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  162. package/runtime/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  163. package/runtime/node_modules/caniuse-lite/data/features/colr.js +1 -1
  164. package/runtime/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  165. package/runtime/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  166. package/runtime/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  167. package/runtime/node_modules/caniuse-lite/data/features/const.js +1 -1
  168. package/runtime/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  169. package/runtime/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  170. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  171. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  172. package/runtime/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  173. package/runtime/node_modules/caniuse-lite/data/features/cors.js +1 -1
  174. package/runtime/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  175. package/runtime/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  176. package/runtime/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  177. package/runtime/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  178. package/runtime/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  179. package/runtime/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  180. package/runtime/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  181. package/runtime/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  182. package/runtime/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  183. package/runtime/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  184. package/runtime/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  185. package/runtime/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  186. package/runtime/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  187. package/runtime/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  188. package/runtime/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  189. package/runtime/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  190. package/runtime/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  191. package/runtime/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  192. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  193. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  194. package/runtime/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  195. package/runtime/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  196. package/runtime/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  197. package/runtime/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  198. package/runtime/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  199. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  200. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  201. package/runtime/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  202. package/runtime/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  203. package/runtime/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  204. package/runtime/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  205. package/runtime/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  206. package/runtime/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  207. package/runtime/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  208. package/runtime/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  209. package/runtime/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  210. package/runtime/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  211. package/runtime/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  212. package/runtime/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  213. package/runtime/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  214. package/runtime/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  215. package/runtime/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  216. package/runtime/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  217. package/runtime/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  218. package/runtime/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  219. package/runtime/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  220. package/runtime/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  221. package/runtime/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  222. package/runtime/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  223. package/runtime/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  224. package/runtime/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  225. package/runtime/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  226. package/runtime/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  227. package/runtime/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  228. package/runtime/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  229. package/runtime/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  230. package/runtime/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  231. package/runtime/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  232. package/runtime/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  233. package/runtime/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  234. package/runtime/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  235. package/runtime/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  236. package/runtime/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  237. package/runtime/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  238. package/runtime/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  239. package/runtime/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  240. package/runtime/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  241. package/runtime/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  242. package/runtime/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  243. package/runtime/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  244. package/runtime/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  245. package/runtime/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  246. package/runtime/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  247. package/runtime/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  248. package/runtime/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  249. package/runtime/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  250. package/runtime/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  251. package/runtime/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  252. package/runtime/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  253. package/runtime/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  254. package/runtime/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  255. package/runtime/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  256. package/runtime/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  257. package/runtime/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  258. package/runtime/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  259. package/runtime/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  260. package/runtime/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  261. package/runtime/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  262. package/runtime/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  263. package/runtime/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  264. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  265. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  266. package/runtime/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  267. package/runtime/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  268. package/runtime/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  269. package/runtime/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  270. package/runtime/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  271. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  272. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  273. package/runtime/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  274. package/runtime/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  275. package/runtime/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  276. package/runtime/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  277. package/runtime/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  278. package/runtime/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  279. package/runtime/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  280. package/runtime/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  281. package/runtime/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  282. package/runtime/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  283. package/runtime/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  284. package/runtime/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  285. package/runtime/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  286. package/runtime/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  287. package/runtime/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  288. package/runtime/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  289. package/runtime/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  290. package/runtime/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  291. package/runtime/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  292. package/runtime/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  293. package/runtime/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  294. package/runtime/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  295. package/runtime/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  296. package/runtime/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  297. package/runtime/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  298. package/runtime/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  299. package/runtime/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  300. package/runtime/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  301. package/runtime/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  302. package/runtime/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  303. package/runtime/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  304. package/runtime/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  305. package/runtime/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  306. package/runtime/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  307. package/runtime/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  308. package/runtime/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  309. package/runtime/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  310. package/runtime/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  311. package/runtime/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  312. package/runtime/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  313. package/runtime/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  314. package/runtime/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  315. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  316. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  317. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  318. package/runtime/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  319. package/runtime/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  320. package/runtime/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  321. package/runtime/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  322. package/runtime/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  323. package/runtime/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  324. package/runtime/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  325. package/runtime/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  326. package/runtime/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  327. package/runtime/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  328. package/runtime/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  329. package/runtime/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  330. package/runtime/node_modules/caniuse-lite/data/features/details.js +1 -1
  331. package/runtime/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  332. package/runtime/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  333. package/runtime/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  334. package/runtime/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  335. package/runtime/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  336. package/runtime/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  337. package/runtime/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  338. package/runtime/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  339. package/runtime/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  340. package/runtime/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  341. package/runtime/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  342. package/runtime/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  343. package/runtime/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  344. package/runtime/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  345. package/runtime/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  346. package/runtime/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  347. package/runtime/node_modules/caniuse-lite/data/features/download.js +1 -1
  348. package/runtime/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  349. package/runtime/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  350. package/runtime/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  351. package/runtime/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  352. package/runtime/node_modules/caniuse-lite/data/features/eme.js +1 -1
  353. package/runtime/node_modules/caniuse-lite/data/features/eot.js +1 -1
  354. package/runtime/node_modules/caniuse-lite/data/features/es5.js +1 -1
  355. package/runtime/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  356. package/runtime/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  357. package/runtime/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  358. package/runtime/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  359. package/runtime/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  360. package/runtime/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  361. package/runtime/node_modules/caniuse-lite/data/features/es6.js +1 -1
  362. package/runtime/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  363. package/runtime/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  364. package/runtime/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  365. package/runtime/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  366. package/runtime/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  367. package/runtime/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  368. package/runtime/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  369. package/runtime/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  370. package/runtime/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  371. package/runtime/node_modules/caniuse-lite/data/features/flac.js +1 -1
  372. package/runtime/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  373. package/runtime/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  374. package/runtime/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  375. package/runtime/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  376. package/runtime/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  377. package/runtime/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  378. package/runtime/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  379. package/runtime/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  380. package/runtime/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  381. package/runtime/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  382. package/runtime/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  383. package/runtime/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  384. package/runtime/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  385. package/runtime/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  386. package/runtime/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  387. package/runtime/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  388. package/runtime/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  389. package/runtime/node_modules/caniuse-lite/data/features/forms.js +1 -1
  390. package/runtime/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  391. package/runtime/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  392. package/runtime/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  393. package/runtime/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  394. package/runtime/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  395. package/runtime/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  396. package/runtime/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  397. package/runtime/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  398. package/runtime/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  399. package/runtime/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  400. package/runtime/node_modules/caniuse-lite/data/features/heif.js +1 -1
  401. package/runtime/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  402. package/runtime/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  403. package/runtime/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  404. package/runtime/node_modules/caniuse-lite/data/features/history.js +1 -1
  405. package/runtime/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  406. package/runtime/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  407. package/runtime/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  408. package/runtime/node_modules/caniuse-lite/data/features/http2.js +1 -1
  409. package/runtime/node_modules/caniuse-lite/data/features/http3.js +1 -1
  410. package/runtime/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  411. package/runtime/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  412. package/runtime/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  413. package/runtime/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  414. package/runtime/node_modules/caniuse-lite/data/features/ime.js +1 -1
  415. package/runtime/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  416. package/runtime/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  417. package/runtime/node_modules/caniuse-lite/data/features/imports.js +1 -1
  418. package/runtime/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  419. package/runtime/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  420. package/runtime/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  421. package/runtime/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  422. package/runtime/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  423. package/runtime/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  424. package/runtime/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  425. package/runtime/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  426. package/runtime/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  427. package/runtime/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  428. package/runtime/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  429. package/runtime/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  430. package/runtime/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  431. package/runtime/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  432. package/runtime/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  433. package/runtime/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  434. package/runtime/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  435. package/runtime/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  436. package/runtime/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  437. package/runtime/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  438. package/runtime/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  439. package/runtime/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  440. package/runtime/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  441. package/runtime/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  442. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  443. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  444. package/runtime/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  445. package/runtime/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  446. package/runtime/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  447. package/runtime/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  448. package/runtime/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  449. package/runtime/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  450. package/runtime/node_modules/caniuse-lite/data/features/json.js +1 -1
  451. package/runtime/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  452. package/runtime/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  453. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  454. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  455. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  456. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  457. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  458. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  459. package/runtime/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  460. package/runtime/node_modules/caniuse-lite/data/features/let.js +1 -1
  461. package/runtime/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  462. package/runtime/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  463. package/runtime/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  464. package/runtime/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  465. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  466. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  467. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  468. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  469. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  470. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  471. package/runtime/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  472. package/runtime/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  473. package/runtime/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  474. package/runtime/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  475. package/runtime/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  476. package/runtime/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  477. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  478. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  479. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  480. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  481. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  482. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  483. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  484. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  485. package/runtime/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  486. package/runtime/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  487. package/runtime/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  488. package/runtime/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  489. package/runtime/node_modules/caniuse-lite/data/features/menu.js +1 -1
  490. package/runtime/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  491. package/runtime/node_modules/caniuse-lite/data/features/meter.js +1 -1
  492. package/runtime/node_modules/caniuse-lite/data/features/midi.js +1 -1
  493. package/runtime/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  494. package/runtime/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  495. package/runtime/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  496. package/runtime/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  497. package/runtime/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  498. package/runtime/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  499. package/runtime/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  500. package/runtime/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  501. package/runtime/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  502. package/runtime/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  503. package/runtime/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  504. package/runtime/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  505. package/runtime/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  506. package/runtime/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  507. package/runtime/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  508. package/runtime/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  509. package/runtime/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  510. package/runtime/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  511. package/runtime/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  512. package/runtime/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  513. package/runtime/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  514. package/runtime/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  515. package/runtime/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  516. package/runtime/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  517. package/runtime/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  518. package/runtime/node_modules/caniuse-lite/data/features/opus.js +1 -1
  519. package/runtime/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  520. package/runtime/node_modules/caniuse-lite/data/features/outline.js +1 -1
  521. package/runtime/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  522. package/runtime/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  523. package/runtime/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  524. package/runtime/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  525. package/runtime/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  526. package/runtime/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  527. package/runtime/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  528. package/runtime/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  529. package/runtime/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  530. package/runtime/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  531. package/runtime/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  532. package/runtime/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  533. package/runtime/node_modules/caniuse-lite/data/features/picture.js +1 -1
  534. package/runtime/node_modules/caniuse-lite/data/features/ping.js +1 -1
  535. package/runtime/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  536. package/runtime/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  537. package/runtime/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  538. package/runtime/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  539. package/runtime/node_modules/caniuse-lite/data/features/portals.js +1 -1
  540. package/runtime/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  541. package/runtime/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  542. package/runtime/node_modules/caniuse-lite/data/features/progress.js +1 -1
  543. package/runtime/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  544. package/runtime/node_modules/caniuse-lite/data/features/promises.js +1 -1
  545. package/runtime/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  546. package/runtime/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  547. package/runtime/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  548. package/runtime/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  549. package/runtime/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  550. package/runtime/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  551. package/runtime/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  552. package/runtime/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  553. package/runtime/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  554. package/runtime/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  555. package/runtime/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  556. package/runtime/node_modules/caniuse-lite/data/features/rem.js +1 -1
  557. package/runtime/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  558. package/runtime/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  559. package/runtime/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  560. package/runtime/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  561. package/runtime/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  562. package/runtime/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  563. package/runtime/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  564. package/runtime/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  565. package/runtime/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  566. package/runtime/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  567. package/runtime/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  568. package/runtime/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  569. package/runtime/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  570. package/runtime/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  571. package/runtime/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  572. package/runtime/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  573. package/runtime/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  574. package/runtime/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  575. package/runtime/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  576. package/runtime/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  577. package/runtime/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  578. package/runtime/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  579. package/runtime/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  580. package/runtime/node_modules/caniuse-lite/data/features/sni.js +1 -1
  581. package/runtime/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  582. package/runtime/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  583. package/runtime/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  584. package/runtime/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  585. package/runtime/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  586. package/runtime/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  587. package/runtime/node_modules/caniuse-lite/data/features/stream.js +1 -1
  588. package/runtime/node_modules/caniuse-lite/data/features/streams.js +1 -1
  589. package/runtime/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  590. package/runtime/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  591. package/runtime/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  592. package/runtime/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  593. package/runtime/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  594. package/runtime/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  595. package/runtime/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  596. package/runtime/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  597. package/runtime/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  598. package/runtime/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  599. package/runtime/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  600. package/runtime/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  601. package/runtime/node_modules/caniuse-lite/data/features/svg.js +1 -1
  602. package/runtime/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  603. package/runtime/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  604. package/runtime/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  605. package/runtime/node_modules/caniuse-lite/data/features/template.js +1 -1
  606. package/runtime/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  607. package/runtime/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  608. package/runtime/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  609. package/runtime/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  610. package/runtime/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  611. package/runtime/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  612. package/runtime/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  613. package/runtime/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  614. package/runtime/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  615. package/runtime/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  616. package/runtime/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  617. package/runtime/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  618. package/runtime/node_modules/caniuse-lite/data/features/touch.js +1 -1
  619. package/runtime/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  620. package/runtime/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  621. package/runtime/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  622. package/runtime/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  623. package/runtime/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  624. package/runtime/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  625. package/runtime/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  626. package/runtime/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  627. package/runtime/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  628. package/runtime/node_modules/caniuse-lite/data/features/url.js +1 -1
  629. package/runtime/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  630. package/runtime/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  631. package/runtime/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  632. package/runtime/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  633. package/runtime/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  634. package/runtime/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  635. package/runtime/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  636. package/runtime/node_modules/caniuse-lite/data/features/video.js +1 -1
  637. package/runtime/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  638. package/runtime/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  639. package/runtime/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  640. package/runtime/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  641. package/runtime/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  642. package/runtime/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  643. package/runtime/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  644. package/runtime/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  645. package/runtime/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  646. package/runtime/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  647. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  648. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  649. package/runtime/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  650. package/runtime/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  651. package/runtime/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  652. package/runtime/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  653. package/runtime/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  654. package/runtime/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  655. package/runtime/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  656. package/runtime/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  657. package/runtime/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  658. package/runtime/node_modules/caniuse-lite/data/features/wav.js +1 -1
  659. package/runtime/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  660. package/runtime/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  661. package/runtime/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  662. package/runtime/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  663. package/runtime/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  664. package/runtime/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  665. package/runtime/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  666. package/runtime/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  667. package/runtime/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  668. package/runtime/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  669. package/runtime/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  670. package/runtime/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  671. package/runtime/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  672. package/runtime/node_modules/caniuse-lite/data/features/webm.js +1 -1
  673. package/runtime/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  674. package/runtime/node_modules/caniuse-lite/data/features/webp.js +1 -1
  675. package/runtime/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  676. package/runtime/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  677. package/runtime/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  678. package/runtime/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  679. package/runtime/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  680. package/runtime/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  681. package/runtime/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  682. package/runtime/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  683. package/runtime/node_modules/caniuse-lite/data/features/woff.js +1 -1
  684. package/runtime/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  685. package/runtime/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  686. package/runtime/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  687. package/runtime/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  688. package/runtime/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  689. package/runtime/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  690. package/runtime/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  691. package/runtime/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  692. package/runtime/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  693. package/runtime/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  694. package/runtime/node_modules/caniuse-lite/data/versionGroups.js +1 -1
  695. package/runtime/node_modules/caniuse-lite/package.json +1 -1
  696. package/runtime/package-lock.json +43 -38
  697. package/runtime/server.js +1 -1
  698. package/runtime/webapp/dist/assets/{AiHubPane-D3O__UGN.js → AiHubPane-D1SGdI6y.js} +1 -1
  699. package/runtime/webapp/dist/assets/{App-DJXr24vO.js → App-Y_UUrP8i.js} +57 -57
  700. package/runtime/webapp/dist/assets/{BrowserLivePanel-DEl_6FZj.js → BrowserLivePanel-CapyOwFL.js} +2 -2
  701. package/runtime/webapp/dist/assets/{CollaborationDashboard-DhLKl7mR.js → CollaborationDashboard-CEF41i5J.js} +1 -1
  702. package/runtime/webapp/dist/assets/CollaborationPage-C8PN5oNe.js +16 -0
  703. package/runtime/webapp/dist/assets/{FilePreview-BQBYZYpb.js → FilePreview-BdB8syBQ.js} +3 -3
  704. package/runtime/webapp/dist/assets/{FileTree-CXiXQO4N.js → FileTree-Cf8wDAVy.js} +1 -1
  705. package/runtime/webapp/dist/assets/{FlowStudioPane-DUjBX_7t.js → FlowStudioPane-DuUmV_ki.js} +1 -1
  706. package/runtime/webapp/dist/assets/{RemoteDesktopPage-BDK0Mq5I.js → RemoteDesktopPage-DBoSlmlh.js} +1 -1
  707. package/runtime/webapp/dist/assets/{TerminalPane-L6DN1Y0T.js → TerminalPane-B2s2ff23.js} +1 -1
  708. package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-Dloq4lbc.js → abnfDiagram-VCTEODGH-CQ78RP8v.js} +1 -1
  709. package/runtime/webapp/dist/assets/{arc-DdmNhDp9.js → arc-B4CNFgtV.js} +1 -1
  710. package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-BTqm_9oY.js → architectureDiagram-5GKGNRK7-B-pYUJdJ.js} +1 -1
  711. package/runtime/webapp/dist/assets/{artifact-links-BI9xeGhs.js → artifact-links-DrWFmMXT.js} +1 -1
  712. package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-jT-ztA_A.js → blockDiagram-I7D4REHJ-CEEpSPhh.js} +1 -1
  713. package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-DxX89YpZ.js → c4Diagram-7LVT6UL2-Bq7l-OxC.js} +1 -1
  714. package/runtime/webapp/dist/assets/channel-B0Az_kl0.js +1 -0
  715. package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-BgXNuFPn.js → chunk-2Q5K7J3B-B2yw0jQL.js} +1 -1
  716. package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-Bv7-4JNt.js → chunk-5VM5RSS4-D7AIGjlP.js} +1 -1
  717. package/runtime/webapp/dist/assets/{chunk-F27PBJKO-BNSskrgg.js → chunk-F27PBJKO-_wNxBMaG.js} +1 -1
  718. package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-C166MQKM.js → chunk-IMKFNOWR-bMSiSCLu.js} +1 -1
  719. package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-Bl1a_rZ8.js → chunk-JWPE2WC7-Zu8gSQip.js} +1 -1
  720. package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-Ck6xvnVw.js → chunk-POPQ4Y6H-8G7L6RqL.js} +1 -1
  721. package/runtime/webapp/dist/assets/{chunk-SVP7TREG-h6j1DDv5.js → chunk-SVP7TREG-a6VVTk08.js} +1 -1
  722. package/runtime/webapp/dist/assets/{chunk-TICWLB2K-BFafTq0K.js → chunk-TICWLB2K-ddeHMudM.js} +1 -1
  723. package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-BQPWRmrg.js → chunk-XXDRQBXY-DSuvta0Q.js} +1 -1
  724. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-HNxe_TWF.js +1 -0
  725. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-HNxe_TWF.js +1 -0
  726. package/runtime/webapp/dist/assets/{clipboard-B2fwlVD5.js → clipboard-DS4Pu9OB.js} +1 -1
  727. package/runtime/webapp/dist/assets/{codeSyntax-VUYFxRDg.js → codeSyntax-BWSPpoSH.js} +1 -1
  728. package/runtime/webapp/dist/assets/{collaboration-CalhGKdD.js → collaboration-D7MlFa87.js} +1 -1
  729. package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-IgwThNmP.js → cose-bilkent-JH36ORCC-D1TkGbTC.js} +1 -1
  730. package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-kfamOzdb.js → cynefin-OW5HDTMX-CYPV2qwK.js} +1 -1
  731. package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-TVskTO_2.js → cynefinDiagram-5FMLGOSQ-DH8spH6U.js} +1 -1
  732. package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DA85rDs9.js → dagre-GXQ25YYZ-Dkv69aQ5.js} +1 -1
  733. package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-CK0LkDfU.js → diagram-S7CK7UJ4-Gl094s_z.js} +1 -1
  734. package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-Bkskt6g2.js → diagram-UQ7AKVKN-DKzCe2K6.js} +1 -1
  735. package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-DN2UO2Hh.js → diagram-VSXAHHWV-Dq1LtLSa.js} +1 -1
  736. package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BLSOCEKl.js → diagram-VX7I27RA-CN9QKehv.js} +1 -1
  737. package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-DNr6MVnd.js → diagram-Z3DM3KII-1J67VxEA.js} +1 -1
  738. package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CRASUUeC.js → ebnfDiagram-PWID7BFC-CRyJYtkK.js} +1 -1
  739. package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-1VwQNW79.js → erDiagram-RLTQ6QDP-C0jVGZ7x.js} +1 -1
  740. package/runtime/webapp/dist/assets/{file-types-MDD5RUla.js → file-types-Bi7YTERW.js} +1 -1
  741. package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-DzhiH-fC.js → flowDiagram-HODETNUW-wm5Kefw0.js} +1 -1
  742. package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-DH8HcfJq.js → ganttDiagram-EL5Y4UJY-DN5F7ix3.js} +1 -1
  743. package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-DYOG2d-R.js → gitGraphDiagram-WWUBYQGX-DcpXNY21.js} +1 -1
  744. package/runtime/webapp/dist/assets/{index-Bqpz5--c.js → index-Ddj6oQ7t.js} +3 -3
  745. package/runtime/webapp/dist/assets/index-hju2LxNM.css +1 -0
  746. package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-DOjkALCi.js → infoDiagram-27XIBGKW-B1iXrK9c.js} +1 -1
  747. package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-DBXZxz82.js → ishikawaDiagram-5VMMS53U-C1jZv655.js} +1 -1
  748. package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-DEpi9Fbd.js → journeyDiagram-3NMN7TZE-BRSFQ0r1.js} +1 -1
  749. package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-Chbcb2nn.js → kanban-definition-UXKFOSKX-Cl9je8cc.js} +1 -1
  750. package/runtime/webapp/dist/assets/{layout-0ld5oekM.js → layout-CKkSxSc4.js} +1 -1
  751. package/runtime/webapp/dist/assets/{linear-BCRtBckJ.js → linear-CC85eD8_.js} +1 -1
  752. package/runtime/webapp/dist/assets/{loader-circle-DGJsEr0r.js → loader-circle-C63zcjMg.js} +1 -1
  753. package/runtime/webapp/dist/assets/{mermaid.core-ByBSaE2T.js → mermaid.core-DIjc2ZR6.js} +5 -5
  754. package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-BW9I4Kuv.js → mindmap-definition-YA3MSWOX-mJUtqDVt.js} +1 -1
  755. package/runtime/webapp/dist/assets/{page-DVdz2jp6.js → page-bnT1btVj.js} +6 -6
  756. package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-D9oxCTQA.js → pegDiagram-XKGWAZYB-Dt3xAyl2.js} +1 -1
  757. package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-Ca4vPJj3.js → pieDiagram-E7YTZNPT-DleFmb0m.js} +1 -1
  758. package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-DM9Go2ES.js → quadrantDiagram-AXDQQJYC-BpeD8UfU.js} +1 -1
  759. package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-BinalW7_.js → railroadDiagram-O6MQD6OU-BBQ5ixic.js} +1 -1
  760. package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-C4KXL_m1.js → requirementDiagram-BXWQKSXE-xO5TSQS3.js} +1 -1
  761. package/runtime/webapp/dist/assets/{rotate-ccw-DrBaBbCR.js → rotate-ccw-AmWkL3kV.js} +1 -1
  762. package/runtime/webapp/dist/assets/{rotate-cw-Ccsl7hB3.js → rotate-cw-DrY9cGmB.js} +1 -1
  763. package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-Ba3vi6ln.js → sankeyDiagram-P5KCCOFB-Fyt0-RhU.js} +1 -1
  764. package/runtime/webapp/dist/assets/{send-OgOSXSRs.js → send-ATfKaKHb.js} +1 -1
  765. package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-DJzCQdxN.js → sequenceDiagram-WJ2MYXX4-xkFumv3g.js} +1 -1
  766. package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-DYsPME1d.js → sizeCapture-INFHLROL-Ch5NIy5j.js} +1 -1
  767. package/runtime/webapp/dist/assets/{smartphone-BaeWE4n-.js → smartphone-BL3ONtnq.js} +1 -1
  768. package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-D2prIqK-.js → stateDiagram-D77RDMKH-BYyhiW6f.js} +1 -1
  769. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-BbZH2Sb9.js +1 -0
  770. package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-NODzX6Rz.js → swimlanes-42K2YHIH-Da71LrsA.js} +1 -1
  771. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CxBioyEE.js +8 -0
  772. package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-CTh1zdtP.js → timeline-definition-24CTP7MA-BaXSS2__.js} +1 -1
  773. package/runtime/webapp/dist/assets/{trash-2-DoqYR_LW.js → trash-2-DBC-hIuM.js} +1 -1
  774. package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-DyjbbvAr.js → vennDiagram-4TSXK5OY-D_V4cbSG.js} +1 -1
  775. package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-BFWVhSKh.js → wardleyDiagram-VM6X3IG4-C-31z3KF.js} +1 -1
  776. package/runtime/webapp/dist/assets/{web-W_qr76-r.js → web-C3itPQLn.js} +1 -1
  777. package/runtime/webapp/dist/assets/{web-BeDKAt7R.js → web-Co-fisS2.js} +1 -1
  778. package/runtime/webapp/dist/assets/{x-Dp1u7spG.js → x-qYJy8CK-.js} +1 -1
  779. package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-CkRP6Drf.js → xychartDiagram-S5SC5T6Z-DKF--ymA.js} +1 -1
  780. package/runtime/webapp/dist/index.html +2 -2
  781. package/runtime/.next/static/chunks/app/web/layout-4e2120c7c4a57f7c.js +0 -1
  782. package/runtime/.next/static/chunks/app/web/page-aa406cbaa5109651.js +0 -1
  783. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-50f20fv8.mjs +0 -40
  784. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x5tcx9zy.mjs +0 -52
  785. package/runtime/webapp/dist/assets/CollaborationPage-BCzxWWHA.js +0 -16
  786. package/runtime/webapp/dist/assets/channel-9wfiqrt1.js +0 -1
  787. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-CTD9Lt2V.js +0 -1
  788. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-CTD9Lt2V.js +0 -1
  789. package/runtime/webapp/dist/assets/index-WGJ3Mevp.css +0 -1
  790. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-tpTQhbGu.js +0 -1
  791. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CUH3ZqiP.js +0 -8
  792. /package/runtime/.next/static/{wybbbDbeFWOi1186WVCZe → 4yVGaJwabJff1LDiyzYia}/_buildManifest.js +0 -0
  793. /package/runtime/.next/static/{wybbbDbeFWOi1186WVCZe → 4yVGaJwabJff1LDiyzYia}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=1772,e.ids=[1772],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},6826:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>E,patchFetch:()=>N,requestAsyncStorage:()=>g,routeModule:()=>p,serverHooks:()=>f,staticGenerationAsyncStorage:()=>w});var s={};r.r(s),r.d(s,{GET:()=>h,POST:()=>d});var i=r(7786),n=r(5042),a=r(2184),o=r(1890),u=r(1636),l=r(7519),c=r(355),m=r(1614);async function h(e){let t=new URL(e.url),r=t.searchParams.get("projectId")||void 0,s="1"===t.searchParams.get("refresh"),i=(0,c.v)(),n=(await l.agentHost.getSessionStore().list(r)).filter(e=>!i.has(e.id)),a=(0,m.NL)(),h=n.map(({messages:e,events:t,...r})=>({...r,agentType:"customer-agent",messageQueueVersion:1,canDelete:!l.agentHost.isSessionRunning(r.id),permissionMode:(0,u.normalizeToolPermissionMode)(r.metadata.permissionMode)}));try{let e=s?await a.refresh(r):await a.list(r);return o.NextResponse.json([...h,...e.filter(e=>!i.has(e.id))])}catch(e){return console.error("Native session discovery failed:",e),o.NextResponse.json(h)}}async function d(e){let t=await e.json(),r=t.agentType??"customer-agent";if("customer-agent"!==r)try{if(!t.projectId&&!t.cwd?.trim())throw new l.B("请选择宿主机项目","PROJECT_PATH_REQUIRED",400);let e=t.cwd?.trim()||(t.projectId?await l.agentHost.resolveProjectWorkingDirectory(t.projectId,!0):""),s=await (0,m.NL)().create({agentType:r,title:t.title??"新会话",cwd:e,...t.projectId?{projectId:t.projectId}:{}});return o.NextResponse.json(s,{status:201})}catch(e){if(e instanceof l.B)return o.NextResponse.json({error:{code:e.code,message:e.message}},{status:e.status});return o.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,m.WW)(e)})}let s=await l.agentHost.createSession(t.title??"Untitled",t.projectId??"");return o.NextResponse.json({...s,agentType:"customer-agent",messageQueueVersion:1},{status:201})}let p=new i.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/sessions/route",pathname:"/api/sessions",filename:"route",bundlePath:"app/api/sessions/route"},resolvedPagePath:"/private/tmp/agentroam-preview63-source/packages/server/app/api/sessions/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:g,staticGenerationAsyncStorage:w,serverHooks:f}=p,E="/api/sessions/route";function N(){return(0,a.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:w})}},355:(e,t,r)=>{r.d(t,{v:()=>n});var s=r(1636),i=r(785);function n(){return new s.SQLiteCollaborationRepository((0,i.kO)()).memberSessionIds()}},1614:(e,t,r)=>{r.d(t,{NL:()=>E,V_:()=>O,WW:()=>P});var s=r(7561),i=r(612),n=r(9411),a=r(7718),o=r(1636);function u(e){if(!e.trim())return!1;try{return(0,s.accessSync)(e,s.constants.X_OK),!0}catch{return!1}}function l(e){try{return(0,o.parseVersion)((0,a.execFileSync)(e,["--version"],{encoding:"utf8",timeout:5e3,stdio:["ignore","pipe","pipe"]}))}catch{return}}function c(e){let t=[],r=process.env[e.environmentVariable]?.trim();if(r){let s=u(r);t.push({source:"pin",path:r,executable:s,version:s?l(r):void 0,error:s?void 0:`${e.environmentVariable} "${r}" is not executable`})}let s=function(e){for(let t of(process.env.PATH??"").split(n.delimiter).filter(Boolean)){let r=(0,n.resolve)(t,e);if(u(r))return r}}(e.name);return s&&s!==r&&t.push({source:"path",path:s,executable:!0,version:l(s)}),(0,o.selectExternalCli)(t,{name:e.name,minimumVersion:e.minimumVersion})}var m=r(535),h=r(2847),d=r(785);let p=globalThis;class g{constructor(e,t=async()=>[],r=process.platform){this.runtime=e,this.listProjects=t,this.platform=r,this.pendingCreations=new Map}health(){return this.runtime.health()}listModels(e){return this.runtime.listModels(e)}listWorkspaces(e,t){return this.runtime.listWorkspaces(e,t)}importWorkspace(e,t,r){if(!this.runtime.importWorkspace)throw new h.RuntimeSessionError("Native workspace import is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.importWorkspace(e,t,r)}async listWorkspaceSessions(e,t,r){let s=await this.runtime.listWorkspaceSessions(e,t,r);if(r?.cursor)return s;let i=new Set(s.data.map(e=>e.id)),n=s.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),w(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||i.has(r.id)||n.unshift(r);return{...s,data:n}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return v(this.withPendingCreations(t).map(e=>N(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return v(this.withPendingCreations(t).map(e=>N(e,r,this.platform)),e)}async create(e){let t=N(await this.runtime.create(e),await this.listProjects(),this.platform),r=e.projectId?{...t,projectId:e.projectId}:t;return this.pendingCreations.set(r.id,r),r}async fork(e,t){if(!O(e))throw new h.RuntimeSessionError("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let r=N(t?await this.runtime.fork(e,t):await this.runtime.fork(e),await this.listProjects(),this.platform);return this.pendingCreations.set(r.id,r),r}async delete(e){await this.runtime.delete(e),this.pendingCreations.delete(e)}async get(e,t){let r;try{r=await this.runtime.get(e,t)}catch(s){let r=this.pendingCreations.get(e);if(!r)throw s;return t?{...r,messages:[],events:[],history:{nextCursor:null,hasMore:!1,pageSize:0,totalItems:0}}:{...r,messages:[],events:[]}}return N(r,await this.listProjects(),this.platform)}async getQueryIndex(e){if(this.runtime.getQueryIndex)return this.runtime.getQueryIndex(e);let t=await this.runtime.get(e),{buildSessionQueryIndex:s}=await Promise.resolve().then(r.t.bind(r,1636,23));return s(e,t.messages)}getSessionToolResult(e,t){return this.runtime.getSessionToolResult(e,t)}getSessionWatchPath(e){return this.runtime.getSessionWatchPath(e)}run(e,t,r,s,i){return this.runtime.run(e,t,r,s,i)}steer(e,t){return this.runtime.steer(e,t)}abort(e){return this.runtime.abort(e)}async release(e){if(!this.runtime.release)throw new h.RuntimeSessionError("Native runtime release is unavailable","RUNTIME_UNAVAILABLE");await this.runtime.release(e)}answerQuestion(e,t){return this.runtime.answerQuestion(e,t)}async startRun(e,t,r,s="web",i){if(!this.runtime.startRun)throw new h.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,s,i)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new h.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.subscribe(e,t,r)}async snapshot(e,t=0){if(!this.runtime.snapshot)throw new h.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new h.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async setNativeMode(e,t){if(!this.runtime.setNativeMode)throw new h.RuntimeSessionError("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativeMode(e,t)}async setNativePermissionPreset(e,t){if(!this.runtime.setNativePermissionPreset)throw new h.RuntimeSessionError("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativePermissionPreset(e,t)}async getNativeGoal(e){if(!this.runtime.getNativeGoal)throw new h.RuntimeSessionError("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.getNativeGoal(e)}async mutateNativeGoal(e,t){if(!this.runtime.mutateNativeGoal)throw new h.RuntimeSessionError("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.mutateNativeGoal(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new h.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.handoff(e,t)}async getGoals(e,t="web"){if(!this.runtime.getGoals)throw new h.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.getGoals(e,t)}async enqueueGoal(e,t,r,s="web"){if(!this.runtime.enqueueGoal)throw new h.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueGoal(e,t,r,s)}async reorderGoals(e,t){if(!this.runtime.reorderGoals)throw new h.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new h.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelGoal(e,t,"web")}async enqueueMessage(e,t,r="web"){if(!this.runtime.enqueueMessage)throw new h.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueMessage(e,t,r)}async reorderMessages(e,t){if(!this.runtime.reorderMessages)throw new h.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderMessages(e,t)}async updateMessage(e,t,r,s){if(!this.runtime.updateMessage)throw new h.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.updateMessage(e,t,r,s)}async cancelMessage(e,t){if(!this.runtime.cancelMessage)throw new h.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new h.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.steerMessage(e,t)}withPendingCreations(e){let t=new Set,r=e.map(e=>{t.add(e.id);let r=this.pendingCreations.get(e.id);return this.pendingCreations.delete(e.id),r?w(e,r):e});return[...[...this.pendingCreations.values()].filter(e=>!t.has(e.id)).sort((e,t)=>t.updated.localeCompare(e.updated)),...r]}}function w(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function f(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function E(){if(!p.__nativeRuntimeService){!function(){let e=[(0,n.join)((0,i.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(n.delimiter),r=e.filter(e=>(0,s.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(n.delimiter))}();let e=new o.SQLiteProjectStore((0,d.kO)());p.__nativeRuntimeService=new g((0,h.createNativeRuntimeBrokerClient)({runtimeFactory:e=>{let t=c({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:o.CODEX_MINIMUM_VERSION}),r=c({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,f("AGENT_CODEX_RUNTIME_ERROR",t),f("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,m.L)().info("native runtime host elected",{pid:process.pid,codex:t.executable??null,codexSource:t.source??null,codexDetail:t.detail,opencode:r.executable??null,opencodeDetail:r.detail}),(0,h.createNativeRuntimeBrokerHostRuntime)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return p.__nativeRuntimeService}function N(e,t,r=process.platform){let{projectId:s,...i}=e;if(!e.cwd)return i;let a=R(e.cwd,r),o="win32"===r?n.win32.sep:n.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:R(e.description,r)})).filter(({path:e})=>a===e||a.startsWith(`${e}${o}`)).sort((e,t)=>t.path.length-e.path.length)[0];return u?{...i,projectId:u.project.id}:i}function R(e,t=process.platform){if("win32"!==t)return(0,n.resolve)(e);let r=n.win32.resolve(e),s=n.win32.parse(r).root;return(r.length>s.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function v(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function O(e){try{return"customer-agent"!==(0,h.decodeUnifiedSessionId)(e).agentType}catch{return!1}}function P(e){if(e instanceof h.RuntimeSessionError)switch(e.code){case"SESSION_NOT_FOUND":return 404;case"SESSION_OCCUPIED":case"SESSION_ALREADY_RUNNING":case"APPROVAL_EXPIRED":case"CODEX_SESSION_VERSION_INCOMPATIBLE":case"STALE_SESSION_ANCHOR":case"NATIVE_GOAL_CONFLICT":return 409;case"RUNTIME_UNAVAILABLE":return 503;case"OPERATION_NOT_SUPPORTED":return 405;default:return 400}return 500}},1489:(e,t,r)=>{r.d(t,{N:()=>u});var s=r(1636),i=r(2847),n=r(785);class a{constructor(){this.tasks=new s.CronTasks((0,n.kO)()),this.scheduler=new i.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await r.e(7519).then(r.bind(r,7519)),{getCustomerGoalCoordinator:s}=await Promise.all([r.e(7519),r.e(732)]).then(r.bind(r,732)),i=e.sessionId;i&&await t.getSessionStore().get(i)||(i=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:i})),await s().enqueue(i,e.prompt)}call(e,t){let r=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(r);case"cronResume":return this.tasks.resume(r);case"cronDelete":return this.tasks.delete(r);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let o=globalThis;function u(){return o.__sharedCronService??=new a}}};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(6826));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=1772,e.ids=[1772],e.modules={8042:e=>{e.exports=require("@agent/computer-use")},1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},7561:e=>{e.exports=require("node:fs")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},7061:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>E,patchFetch:()=>N,requestAsyncStorage:()=>g,routeModule:()=>p,serverHooks:()=>f,staticGenerationAsyncStorage:()=>w});var s={};r.r(s),r.d(s,{GET:()=>h,POST:()=>d});var i=r(7786),n=r(5042),a=r(2184),o=r(1890),u=r(1636),l=r(7519),c=r(355),m=r(1614);async function h(e){let t=new URL(e.url),r=t.searchParams.get("projectId")||void 0,s="1"===t.searchParams.get("refresh"),i=(0,c.v)(),n=(await l.agentHost.getSessionStore().list(r)).filter(e=>!i.has(e.id)),a=(0,m.NL)(),h=n.map(({messages:e,events:t,...r})=>({...r,agentType:"customer-agent",messageQueueVersion:1,canDelete:!l.agentHost.isSessionRunning(r.id),permissionMode:(0,u.normalizeToolPermissionMode)(r.metadata.permissionMode)}));try{let e=s?await a.refresh(r):await a.list(r);return o.NextResponse.json([...h,...e.filter(e=>!i.has(e.id))])}catch(e){return console.error("Native session discovery failed:",e),o.NextResponse.json(h)}}async function d(e){let t=await e.json(),r=t.agentType??"customer-agent";if("customer-agent"!==r)try{if(!t.projectId&&!t.cwd?.trim())throw new l.B("请选择宿主机项目","PROJECT_PATH_REQUIRED",400);let e=t.cwd?.trim()||(t.projectId?await l.agentHost.resolveProjectWorkingDirectory(t.projectId,!0):""),s=await (0,m.NL)().create({agentType:r,title:t.title??"新会话",cwd:e,...t.projectId?{projectId:t.projectId}:{}});return o.NextResponse.json(s,{status:201})}catch(e){if(e instanceof l.B)return o.NextResponse.json({error:{code:e.code,message:e.message}},{status:e.status});return o.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,m.WW)(e)})}let s=await l.agentHost.createSession(t.title??"Untitled",t.projectId??"");return o.NextResponse.json({...s,agentType:"customer-agent",messageQueueVersion:1},{status:201})}let p=new i.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/sessions/route",pathname:"/api/sessions",filename:"route",bundlePath:"app/api/sessions/route"},resolvedPagePath:"/private/tmp/agentroam-all64.baB7t1/source/packages/server/app/api/sessions/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:g,staticGenerationAsyncStorage:w,serverHooks:f}=p,E="/api/sessions/route";function N(){return(0,a.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:w})}},355:(e,t,r)=>{r.d(t,{v:()=>n});var s=r(1636),i=r(785);function n(){return new s.SQLiteCollaborationRepository((0,i.kO)()).memberSessionIds()}},1614:(e,t,r)=>{r.d(t,{NL:()=>E,V_:()=>O,WW:()=>P});var s=r(7561),i=r(612),n=r(9411),a=r(7718),o=r(1636);function u(e){if(!e.trim())return!1;try{return(0,s.accessSync)(e,s.constants.X_OK),!0}catch{return!1}}function l(e){try{return(0,o.parseVersion)((0,a.execFileSync)(e,["--version"],{encoding:"utf8",timeout:5e3,stdio:["ignore","pipe","pipe"]}))}catch{return}}function c(e){let t=[],r=process.env[e.environmentVariable]?.trim();if(r){let s=u(r);t.push({source:"pin",path:r,executable:s,version:s?l(r):void 0,error:s?void 0:`${e.environmentVariable} "${r}" is not executable`})}let s=function(e){for(let t of(process.env.PATH??"").split(n.delimiter).filter(Boolean)){let r=(0,n.resolve)(t,e);if(u(r))return r}}(e.name);return s&&s!==r&&t.push({source:"path",path:s,executable:!0,version:l(s)}),(0,o.selectExternalCli)(t,{name:e.name,minimumVersion:e.minimumVersion})}var m=r(535),h=r(2847),d=r(785);let p=globalThis;class g{constructor(e,t=async()=>[],r=process.platform){this.runtime=e,this.listProjects=t,this.platform=r,this.pendingCreations=new Map}health(){return this.runtime.health()}listModels(e){return this.runtime.listModels(e)}listWorkspaces(e,t){return this.runtime.listWorkspaces(e,t)}importWorkspace(e,t,r){if(!this.runtime.importWorkspace)throw new h.RuntimeSessionError("Native workspace import is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.importWorkspace(e,t,r)}async listWorkspaceSessions(e,t,r){let s=await this.runtime.listWorkspaceSessions(e,t,r);if(r?.cursor)return s;let i=new Set(s.data.map(e=>e.id)),n=s.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),w(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||i.has(r.id)||n.unshift(r);return{...s,data:n}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return v(this.withPendingCreations(t).map(e=>N(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return v(this.withPendingCreations(t).map(e=>N(e,r,this.platform)),e)}async create(e){let t=N(await this.runtime.create(e),await this.listProjects(),this.platform),r=e.projectId?{...t,projectId:e.projectId}:t;return this.pendingCreations.set(r.id,r),r}async fork(e,t){if(!O(e))throw new h.RuntimeSessionError("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let r=N(t?await this.runtime.fork(e,t):await this.runtime.fork(e),await this.listProjects(),this.platform);return this.pendingCreations.set(r.id,r),r}async delete(e){await this.runtime.delete(e),this.pendingCreations.delete(e)}async get(e,t){let r;try{r=await this.runtime.get(e,t)}catch(s){let r=this.pendingCreations.get(e);if(!r)throw s;return t?{...r,messages:[],events:[],history:{nextCursor:null,hasMore:!1,pageSize:0,totalItems:0}}:{...r,messages:[],events:[]}}return N(r,await this.listProjects(),this.platform)}async getQueryIndex(e){if(this.runtime.getQueryIndex)return this.runtime.getQueryIndex(e);let t=await this.runtime.get(e),{buildSessionQueryIndex:s}=await Promise.resolve().then(r.t.bind(r,1636,23));return s(e,t.messages)}getSessionToolResult(e,t){return this.runtime.getSessionToolResult(e,t)}getSessionWatchPath(e){return this.runtime.getSessionWatchPath(e)}run(e,t,r,s,i){return this.runtime.run(e,t,r,s,i)}steer(e,t){return this.runtime.steer(e,t)}abort(e){return this.runtime.abort(e)}async release(e){if(!this.runtime.release)throw new h.RuntimeSessionError("Native runtime release is unavailable","RUNTIME_UNAVAILABLE");await this.runtime.release(e)}answerQuestion(e,t){return this.runtime.answerQuestion(e,t)}async startRun(e,t,r,s="web",i){if(!this.runtime.startRun)throw new h.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,s,i)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new h.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.subscribe(e,t,r)}async snapshot(e,t=0){if(!this.runtime.snapshot)throw new h.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new h.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async setNativeMode(e,t){if(!this.runtime.setNativeMode)throw new h.RuntimeSessionError("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativeMode(e,t)}async setNativePermissionPreset(e,t){if(!this.runtime.setNativePermissionPreset)throw new h.RuntimeSessionError("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativePermissionPreset(e,t)}async getNativeGoal(e){if(!this.runtime.getNativeGoal)throw new h.RuntimeSessionError("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.getNativeGoal(e)}async mutateNativeGoal(e,t){if(!this.runtime.mutateNativeGoal)throw new h.RuntimeSessionError("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.mutateNativeGoal(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new h.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.handoff(e,t)}async getGoals(e,t="web"){if(!this.runtime.getGoals)throw new h.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.getGoals(e,t)}async enqueueGoal(e,t,r,s="web"){if(!this.runtime.enqueueGoal)throw new h.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueGoal(e,t,r,s)}async reorderGoals(e,t){if(!this.runtime.reorderGoals)throw new h.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new h.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelGoal(e,t,"web")}async enqueueMessage(e,t,r="web"){if(!this.runtime.enqueueMessage)throw new h.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueMessage(e,t,r)}async reorderMessages(e,t){if(!this.runtime.reorderMessages)throw new h.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderMessages(e,t)}async updateMessage(e,t,r,s){if(!this.runtime.updateMessage)throw new h.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.updateMessage(e,t,r,s)}async cancelMessage(e,t){if(!this.runtime.cancelMessage)throw new h.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new h.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.steerMessage(e,t)}withPendingCreations(e){let t=new Set,r=e.map(e=>{t.add(e.id);let r=this.pendingCreations.get(e.id);return this.pendingCreations.delete(e.id),r?w(e,r):e});return[...[...this.pendingCreations.values()].filter(e=>!t.has(e.id)).sort((e,t)=>t.updated.localeCompare(e.updated)),...r]}}function w(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function f(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function E(){if(!p.__nativeRuntimeService){!function(){let e=[(0,n.join)((0,i.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(n.delimiter),r=e.filter(e=>(0,s.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(n.delimiter))}();let e=new o.SQLiteProjectStore((0,d.kO)());p.__nativeRuntimeService=new g((0,h.createNativeRuntimeBrokerClient)({runtimeFactory:e=>{let t=c({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:o.CODEX_MINIMUM_VERSION}),r=c({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,f("AGENT_CODEX_RUNTIME_ERROR",t),f("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,m.L)().info("native runtime host elected",{pid:process.pid,codex:t.executable??null,codexSource:t.source??null,codexDetail:t.detail,opencode:r.executable??null,opencodeDetail:r.detail}),(0,h.createNativeRuntimeBrokerHostRuntime)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return p.__nativeRuntimeService}function N(e,t,r=process.platform){let{projectId:s,...i}=e;if(!e.cwd)return i;let a=R(e.cwd,r),o="win32"===r?n.win32.sep:n.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:R(e.description,r)})).filter(({path:e})=>a===e||a.startsWith(`${e}${o}`)).sort((e,t)=>t.path.length-e.path.length)[0];return u?{...i,projectId:u.project.id}:i}function R(e,t=process.platform){if("win32"!==t)return(0,n.resolve)(e);let r=n.win32.resolve(e),s=n.win32.parse(r).root;return(r.length>s.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function v(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function O(e){try{return"customer-agent"!==(0,h.decodeUnifiedSessionId)(e).agentType}catch{return!1}}function P(e){if(e instanceof h.RuntimeSessionError)switch(e.code){case"SESSION_NOT_FOUND":return 404;case"SESSION_OCCUPIED":case"SESSION_ALREADY_RUNNING":case"APPROVAL_EXPIRED":case"CODEX_SESSION_VERSION_INCOMPATIBLE":case"STALE_SESSION_ANCHOR":case"NATIVE_GOAL_CONFLICT":return 409;case"RUNTIME_UNAVAILABLE":return 503;case"OPERATION_NOT_SUPPORTED":return 405;default:return 400}return 500}},1489:(e,t,r)=>{r.d(t,{N:()=>u});var s=r(1636),i=r(2847),n=r(785);class a{constructor(){this.tasks=new s.CronTasks((0,n.kO)()),this.scheduler=new i.CronScheduler(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await r.e(7519).then(r.bind(r,7519)),{getCustomerGoalCoordinator:s}=await Promise.all([r.e(7519),r.e(732)]).then(r.bind(r,732)),i=e.sessionId;i&&await t.getSessionStore().get(i)||(i=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:i})),await s().enqueue(i,e.prompt)}call(e,t){let r=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(r);case"cronResume":return this.tasks.resume(r);case"cronDelete":return this.tasks.delete(r);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let o=globalThis;function u(){return o.__sharedCronService??=new a}}};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(7061));module.exports=s})();
@@ -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")},9383:(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:()=>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:"/private/tmp/agentroam-preview63-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:()=>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(9383));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")},656:(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:()=>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:"/private/tmp/agentroam-all64.baB7t1/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:()=>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(656));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")},2361:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>x,patchFetch:()=>g,requestAsyncStorage:()=>m,routeModule:()=>c,serverHooks:()=>f,staticGenerationAsyncStorage:()=>h});var i={};t.r(i),t.d(i,{GET:()=>u,POST:()=>d});var s=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,i=(0,l.i)().skills,s=[];if(r.filePath){let e=await t.loadFromFile(r.filePath);await i.save(e),s.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 i.save(await t.loadFromFile(e.filePath)),s.push({name:e.name,description:e.description});return n.NextResponse.json({status:"imported",count:s.length,skills:s})}catch(e){return n.NextResponse.json({error:e instanceof Error?e.message:"Skill import failed"},{status:500})}}let c=new s.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/skills/route",pathname:"/api/skills",filename:"route",bundlePath:"app/api/skills/route"},resolvedPagePath:"/private/tmp/agentroam-preview63-source/packages/server/app/api/skills/route.ts",nextConfigOutput:"standalone",userland:i}),{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),i=r.X(0,[8375,6703,4621],()=>t(2361));module.exports=i})();
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")},1948:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>x,patchFetch:()=>g,requestAsyncStorage:()=>m,routeModule:()=>c,serverHooks:()=>f,staticGenerationAsyncStorage:()=>h});var i={};r.r(i),r.d(i,{GET:()=>u,POST:()=>d});var s=r(7786),a=r(5042),o=r(2184),n=r(1890),l=r(1636),p=r(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 t=await e.json(),r=new l.SkillLoader,i=(0,p.i)().skills,s=[];if(t.filePath){let e=await r.loadFromFile(t.filePath);await i.save(e),s.push({name:e.name,description:e.description})}else if(!t.dirPath)return n.NextResponse.json({error:"filePath or dirPath is required"},{status:400});else for(let e of(await r.loadFromDirectory(t.dirPath)))await i.save(await r.loadFromFile(e.filePath)),s.push({name:e.name,description:e.description});return n.NextResponse.json({status:"imported",count:s.length,skills:s})}catch(e){return n.NextResponse.json({error:e instanceof Error?e.message:"Skill import failed"},{status:500})}}let c=new s.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/skills/route",pathname:"/api/skills",filename:"route",bundlePath:"app/api/skills/route"},resolvedPagePath:"/private/tmp/agentroam-all64.baB7t1/source/packages/server/app/api/skills/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:m,staticGenerationAsyncStorage:h,serverHooks:f}=c,x="/api/skills/route";function g(){return(0,o.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:h})}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[8375,6703,4621],()=>r(1948));module.exports=i})();
@@ -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")},6742:(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:"/private/tmp/agentroam-preview63-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(6742));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")},4115:(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:"/private/tmp/agentroam-all64.baB7t1/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(4115));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")},6421:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>w,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),i=r(5042),n=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:i.x.APP_ROUTE,page:"/api/tool-policies/route",pathname:"/api/tool-policies",filename:"route",bundlePath:"app/api/tool-policies/route"},resolvedPagePath:"/private/tmp/agentroam-preview63-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 w(){return(0,n.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},7786:(e,t,r)=>{e.exports=r(517)},6361:(e,t,r)=>{r.d(t,{Q:()=>n,e:()=>i});var s=r(1636),o=r(7519);function i(){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 n(){return i().getAll().map(e=>e.name).sort()}},1489:(e,t,r)=>{r.d(t,{N:()=>l});var s=r(1636),o=r(2847),i=r(785);class n{constructor(){this.tasks=new s.CronTasks((0,i.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 n}},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,i=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}://${i}`?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),i=r(785),n=r(6361);class a{constructor(e=(0,i.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,n.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(6421));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")},3983:(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),i=r(5042),n=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:i.x.APP_ROUTE,page:"/api/tool-policies/route",pathname:"/api/tool-policies",filename:"route",bundlePath:"app/api/tool-policies/route"},resolvedPagePath:"/private/tmp/agentroam-all64.baB7t1/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,n.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:h})}},7786:(e,t,r)=>{e.exports=r(517)},6361:(e,t,r)=>{r.d(t,{Q:()=>n,e:()=>i});var s=r(1636),o=r(7519);function i(){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 n(){return i().getAll().map(e=>e.name).sort()}},1489:(e,t,r)=>{r.d(t,{N:()=>l});var s=r(1636),o=r(2847),i=r(785);class n{constructor(){this.tasks=new s.CronTasks((0,i.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 n}},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,i=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}://${i}`?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),i=r(785),n=r(6361);class a{constructor(e=(0,i.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,n.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(3983));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")},3162:(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:"/private/tmp/agentroam-preview63-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(3162));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")},2581:(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:"/private/tmp/agentroam-all64.baB7t1/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(2581));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")},4165:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>w,patchFetch:()=>f,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:"/private/tmp/agentroam-preview63-source/packages/server/app/api/update/check/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:g,serverHooks:m}=l,w="/api/update/check/route";function f(){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(4165));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")},8361:(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:"/private/tmp/agentroam-all64.baB7t1/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(8361));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")},9028:(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:"/private/tmp/agentroam-preview63-source/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(9028));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")},9170:(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:"/private/tmp/agentroam-all64.baB7t1/source/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(9170));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")},7650:(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:"/private/tmp/agentroam-preview63-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 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(7650));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")},9236:(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:"/private/tmp/agentroam-all64.baB7t1/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 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(9236));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")},5886:(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(3710);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:"/private/tmp/agentroam-preview63-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())}},3710:(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(5886));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")},2252:(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(3710);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:"/private/tmp/agentroam-all64.baB7t1/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())}},3710:(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(2252));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")},5594:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>v,patchFetch:()=>h,requestAsyncStorage:()=>l,routeModule:()=>p,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(3710);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 p=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:"/private/tmp/agentroam-preview63-source/packages/server/app/api/web-auth/logout/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:l,staticGenerationAsyncStorage:d,serverHooks:g}=p,v="/api/web-auth/logout/route";function h(){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())}},3710:(e,t,r)=>{r.d(t,{$U:()=>l,Ci:()=>g,VP:()=>s,Xd:()=>p,ZA:()=>a,ap:()=>d,hw:()=>i,ki:()=>u,yN:()=>v});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 p(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[u],deviceName:e.headers.get("x-device-name")||""}}function d(e){let t=a.authenticateToken(p(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 v(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(5594));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")},4883:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>v,patchFetch:()=>h,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(3710);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:"/private/tmp/agentroam-all64.baB7t1/source/packages/server/app/api/web-auth/logout/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:p,staticGenerationAsyncStorage:d,serverHooks:g}=l,v="/api/web-auth/logout/route";function h(){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())}},3710:(e,t,r)=>{r.d(t,{$U:()=>p,Ci:()=>g,VP:()=>s,Xd:()=>l,ZA:()=>a,ap:()=>d,hw:()=>i,ki:()=>u,yN:()=>v});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 v(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(4883));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")},132:(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(3710);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:"/private/tmp/agentroam-preview63-source/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())}},3710:(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(132));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")},272:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>m,requestAsyncStorage:()=>p,routeModule:()=>c,serverHooks:()=>v,staticGenerationAsyncStorage:()=>d});var n={};r.r(n),r.d(n,{POST:()=>l});var o=r(7786),s=r(5042),a=r(2184),i=r(1890),u=r(3710);async function l(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 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:"/private/tmp/agentroam-all64.baB7t1/source/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,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())}},3710:(e,t,r)=>{r.d(t,{$U:()=>p,Ci:()=>v,VP:()=>s,Xd:()=>c,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 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)[s]||null}function p(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[a],deviceName:e.headers.get("x-device-name")||""}}function d(e){let t=i.authenticateToken(c(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(272));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")},7466:(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),i=r(2184),u=r(1890),a=r(6005),p=r(1636),c=r(3710);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,a.createHash)("sha256").update(e||"").digest("hex");if(!(Number.isFinite(r)&&Date.now()<r&&n.length===t.length&&(0,a.timingSafeEqual)(Buffer.from(n),Buffer.from(t))))throw new p.WebAuthError("INVALID_INPUT","配对链接无效或已过期",403)})(t.pairingToken);let r=await c.ZA.setup(t.username||"",t.password||"",(0,c.$U)(e)),n=u.NextResponse.json({user:r.user,csrfToken:r.csrfToken,deviceId:r.deviceId},{status:201});return n.cookies.set(c.VP,r.authToken,(0,c.Ci)(e,2592e3,!0)),n.cookies.set(c.ki,r.deviceId,(0,c.Ci)(e,31536e3,!1)),n}catch(e){return(0,c.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:"/private/tmp/agentroam-preview63-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,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:h})}},785:(e,t,r)=>{r.d(t,{ME:()=>u,kO:()=>i,sr:()=>a});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 u(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 a(){return function(e=process.env,t=s){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},3710:(e,t,r)=>{r.d(t,{$U:()=>d,Ci:()=>f,VP:()=>o,Xd:()=>c,ZA:()=>u,ap:()=>l,hw:()=>a,ki:()=>i,yN:()=>h});var n=r(1636),s=r(785);let o="customer_agent_session",i="customer_agent_device",u=new n.WebAuthService(new n.SQLiteAuthStore((0,s.kO)())),a=new n.SQLiteWebConsoleStore((0,s.kO)());function p(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 p(e)[o]||null}function d(e){let t=p(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=u.authenticateToken(c(e));return u.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(7466));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")},8537:(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(3710);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:"/private/tmp/agentroam-all64.baB7t1/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())}},3710:(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(8537));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")},4967:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>m,requestAsyncStorage:()=>l,routeModule:()=>d,serverHooks:()=>v,staticGenerationAsyncStorage:()=>h});var n={};r.r(n),r.d(n,{GET:()=>p,dynamic:()=>c});var s=r(7786),o=r(5042),i=r(2184),a=r(1890),u=r(3710);let c="force-dynamic";async function p(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 d=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:"/private/tmp/agentroam-preview63-source/packages/server/app/api/web-auth/status/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:l,staticGenerationAsyncStorage:h,serverHooks:v}=d,f="/api/web-auth/status/route";function m(){return(0,i.patchFetch)({serverHooks:v,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())}},3710:(e,t,r)=>{r.d(t,{$U:()=>d,Ci:()=>h,VP:()=>o,Xd:()=>p,ZA:()=>a,ap:()=>l,hw:()=>u,ki:()=>i,yN:()=>v});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 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[i],deviceName:e.headers.get("x-device-name")||""}}function l(e){let t=a.authenticateToken(p(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 v(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(4967));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")},5877:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>m,requestAsyncStorage:()=>l,routeModule:()=>d,serverHooks:()=>v,staticGenerationAsyncStorage:()=>h});var n={};r.r(n),r.d(n,{GET:()=>p,dynamic:()=>c});var s=r(7786),o=r(5042),i=r(2184),a=r(1890),u=r(3710);let c="force-dynamic";async function p(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 d=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:"/private/tmp/agentroam-all64.baB7t1/source/packages/server/app/api/web-auth/status/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:l,staticGenerationAsyncStorage:h,serverHooks:v}=d,f="/api/web-auth/status/route";function m(){return(0,i.patchFetch)({serverHooks:v,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())}},3710:(e,t,r)=>{r.d(t,{$U:()=>d,Ci:()=>h,VP:()=>o,Xd:()=>p,ZA:()=>a,ap:()=>l,hw:()=>u,ki:()=>i,yN:()=>v});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 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[i],deviceName:e.headers.get("x-device-name")||""}}function l(e){let t=a.authenticateToken(p(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 v(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(5877));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")},7016:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>v,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:"/private/tmp/agentroam-preview63-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 v(){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(7016));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")},6108:(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:"/private/tmp/agentroam-all64.baB7t1/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(6108));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")},1563:(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:"/private/tmp/agentroam-preview63-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(3710);let i=new s.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(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(1563));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")},329:(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:"/private/tmp/agentroam-all64.baB7t1/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(3710);let i=new s.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(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(329));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")},7862:(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:"/private/tmp/agentroam-preview63-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(3710);let i=new o.SQLiteAnonymousWebStore((0,n.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(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(7862));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")},5829:(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:"/private/tmp/agentroam-all64.baB7t1/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(3710);let i=new o.SQLiteAnonymousWebStore((0,n.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(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(5829));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")},8885:(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),i=r(2184),a=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?a.NextResponse.json({deviceState:u.hw.getDeviceState(t,r)??d(t,r)}):a.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 a.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),a.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:"/private/tmp/agentroam-preview63-source/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,i.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:g})}},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())}},2110:(e,t,r)=>{r.d(t,{hw:()=>s.hw,nQ:()=>a});var n=r(1636),o=r(785),s=r(3710);let i=new n.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(e,t,r)=>{r.d(t,{$U:()=>l,Ci:()=>v,VP:()=>s,Xd:()=>d,ZA:()=>a,ap:()=>p,hw:()=>u,ki:()=>i,yN:()=>m});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 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(8885));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")},3473:(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:"/private/tmp/agentroam-all64.baB7t1/source/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(3710);let a=new n.SQLiteAnonymousWebStore((0,o.kO)());function i(){return{userId:a.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(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(3473));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")},9141:(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:"/private/tmp/agentroam-preview63-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(3710);let i=new n.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(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(9141));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")},6743:(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:"/private/tmp/agentroam-all64.baB7t1/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(3710);let i=new n.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(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(6743));module.exports=n})();