agentroam-runtime-win32-x64 0.2.0-preview.53 → 0.2.0-preview.56

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 (246) hide show
  1. package/manifest.json +1 -1
  2. package/package.json +1 -1
  3. package/runtime/.next/BUILD_ID +1 -1
  4. package/runtime/.next/app-path-routes-manifest.json +1 -1
  5. package/runtime/.next/build-manifest.json +2 -2
  6. package/runtime/.next/prerender-manifest.json +1 -1
  7. package/runtime/.next/required-server-files.json +1 -1
  8. package/runtime/.next/server/app/_not-found.html +1 -1
  9. package/runtime/.next/server/app/_not-found.rsc +1 -1
  10. package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
  11. package/runtime/.next/server/app/api/agent/abort/route.js.nft.json +1 -1
  12. package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
  13. package/runtime/.next/server/app/api/agent/answer/route.js.nft.json +1 -1
  14. package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
  15. package/runtime/.next/server/app/api/agent/codex-sharing/route.js.nft.json +1 -1
  16. package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
  17. package/runtime/.next/server/app/api/agent/harness/status/route.js.nft.json +1 -1
  18. package/runtime/.next/server/app/api/agent/model/route.js +1 -1
  19. package/runtime/.next/server/app/api/agent/model/route.js.nft.json +1 -1
  20. package/runtime/.next/server/app/api/agent/models/route.js +1 -1
  21. package/runtime/.next/server/app/api/agent/models/route.js.nft.json +1 -1
  22. package/runtime/.next/server/app/api/agent/run/route.js +3 -3
  23. package/runtime/.next/server/app/api/agent/run/route.js.nft.json +1 -1
  24. package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
  25. package/runtime/.next/server/app/api/agent/runtime-health/route.js.nft.json +1 -1
  26. package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
  27. package/runtime/.next/server/app/api/agent/steer/route.js.nft.json +1 -1
  28. package/runtime/.next/server/app/api/agent/stream/route.js +7 -7
  29. package/runtime/.next/server/app/api/agent/stream/route.js.nft.json +1 -1
  30. package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
  31. package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js.nft.json +1 -1
  32. package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
  33. package/runtime/.next/server/app/api/agent-workspaces/route.js.nft.json +1 -1
  34. package/runtime/.next/server/app/api/business/route.js +1 -1
  35. package/runtime/.next/server/app/api/business/route.js.nft.json +1 -1
  36. package/runtime/.next/server/app/api/client-logs/route.js +1 -1
  37. package/runtime/.next/server/app/api/client-logs/route.js.nft.json +1 -1
  38. package/runtime/.next/server/app/api/collaboration/route.js +1 -1
  39. package/runtime/.next/server/app/api/collaboration/route.js.nft.json +1 -1
  40. package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
  41. package/runtime/.next/server/app/api/flow/v1/catalog/route.js.nft.json +1 -1
  42. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
  43. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js.nft.json +1 -1
  44. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +3 -3
  45. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js.nft.json +1 -1
  46. package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
  47. package/runtime/.next/server/app/api/flow/v1/runs/route.js.nft.json +1 -1
  48. package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
  49. package/runtime/.next/server/app/api/mcp/connect/route.js.nft.json +1 -1
  50. package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
  51. package/runtime/.next/server/app/api/mcp/disconnect/route.js.nft.json +1 -1
  52. package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
  53. package/runtime/.next/server/app/api/mcp/servers/route.js.nft.json +1 -1
  54. package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
  55. package/runtime/.next/server/app/api/memory/[key]/route.js.nft.json +1 -1
  56. package/runtime/.next/server/app/api/memory/route.js +1 -1
  57. package/runtime/.next/server/app/api/memory/route.js.nft.json +1 -1
  58. package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
  59. package/runtime/.next/server/app/api/plugins/load/route.js.nft.json +1 -1
  60. package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
  61. package/runtime/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  62. package/runtime/.next/server/app/api/projects/check/route.js +1 -1
  63. package/runtime/.next/server/app/api/projects/check/route.js.nft.json +1 -1
  64. package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
  65. package/runtime/.next/server/app/api/projects/directories/route.js.nft.json +1 -1
  66. package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
  67. package/runtime/.next/server/app/api/projects/roots/route.js.nft.json +1 -1
  68. package/runtime/.next/server/app/api/projects/route.js +1 -1
  69. package/runtime/.next/server/app/api/projects/route.js.nft.json +1 -1
  70. package/runtime/.next/server/app/api/push/subscribe/route.js +3 -3
  71. package/runtime/.next/server/app/api/push/subscribe/route.js.nft.json +1 -1
  72. package/runtime/.next/server/app/api/push/unsubscribe/route.js +1 -1
  73. package/runtime/.next/server/app/api/push/vapid/route.js +3 -3
  74. package/runtime/.next/server/app/api/push/vapid/route.js.nft.json +1 -1
  75. package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
  76. package/runtime/.next/server/app/api/remote-tools/register/route.js.nft.json +1 -1
  77. package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +4 -4
  78. package/runtime/.next/server/app/api/sessions/[id]/changes/route.js.nft.json +1 -1
  79. package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  80. package/runtime/.next/server/app/api/sessions/[id]/fork/route.js.nft.json +1 -1
  81. package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
  82. package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js.nft.json +1 -1
  83. package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
  84. package/runtime/.next/server/app/api/sessions/[id]/goals/route.js.nft.json +1 -1
  85. package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
  86. package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js.nft.json +1 -1
  87. package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
  88. package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js.nft.json +1 -1
  89. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
  90. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js.nft.json +1 -1
  91. package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
  92. package/runtime/.next/server/app/api/sessions/[id]/release/route.js.nft.json +1 -1
  93. package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
  94. package/runtime/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  95. package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
  96. package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js.nft.json +1 -1
  97. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
  98. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js.nft.json +1 -1
  99. package/runtime/.next/server/app/api/sessions/route.js +1 -1
  100. package/runtime/.next/server/app/api/sessions/route.js.nft.json +1 -1
  101. package/runtime/.next/server/app/api/settings/route.js +1 -1
  102. package/runtime/.next/server/app/api/settings/route.js.nft.json +1 -1
  103. package/runtime/.next/server/app/api/skills/route.js +1 -1
  104. package/runtime/.next/server/app/api/skills/route.js.nft.json +1 -1
  105. package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
  106. package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js.nft.json +1 -1
  107. package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
  108. package/runtime/.next/server/app/api/tool-policies/route.js.nft.json +1 -1
  109. package/runtime/.next/server/app/api/tools/route.js +1 -1
  110. package/runtime/.next/server/app/api/tools/route.js.nft.json +1 -1
  111. package/runtime/.next/server/app/api/update/check/route.js +1 -1
  112. package/runtime/.next/server/app/api/update/check/route.js.nft.json +1 -1
  113. package/runtime/.next/server/app/api/update/install/route.js +1 -1
  114. package/runtime/.next/server/app/api/update/install/route.js.nft.json +1 -1
  115. package/runtime/.next/server/app/api/update/status/route.js +1 -1
  116. package/runtime/.next/server/app/api/update/status/route.js.nft.json +1 -1
  117. package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
  118. package/runtime/.next/server/app/api/web-auth/login/route.js.nft.json +1 -1
  119. package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
  120. package/runtime/.next/server/app/api/web-auth/logout/route.js.nft.json +1 -1
  121. package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
  122. package/runtime/.next/server/app/api/web-auth/revoke-all/route.js.nft.json +1 -1
  123. package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
  124. package/runtime/.next/server/app/api/web-auth/setup/route.js.nft.json +1 -1
  125. package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
  126. package/runtime/.next/server/app/api/web-auth/status/route.js.nft.json +1 -1
  127. package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
  128. package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
  129. package/runtime/.next/server/app/api/web-console/computer-settings/route.js.nft.json +1 -1
  130. package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
  131. package/runtime/.next/server/app/api/web-console/computers/route.js.nft.json +1 -1
  132. package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
  133. package/runtime/.next/server/app/api/web-console/device-state/route.js.nft.json +1 -1
  134. package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
  135. package/runtime/.next/server/app/api/web-console/history/route.js.nft.json +1 -1
  136. package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
  137. package/runtime/.next/server/app/api/web-console/preferences/route.js.nft.json +1 -1
  138. package/runtime/.next/server/app/web/page.js +4 -4
  139. package/runtime/.next/server/app/web/page.js.nft.json +1 -1
  140. package/runtime/.next/server/app-paths-manifest.json +27 -27
  141. package/runtime/.next/server/chunks/2293.js +1 -1
  142. package/runtime/.next/server/chunks/366.js +1 -1
  143. package/runtime/.next/server/chunks/4621.js +1 -14
  144. package/runtime/.next/server/chunks/732.js +1 -1
  145. package/runtime/.next/server/chunks/7519.js +3 -3
  146. package/runtime/.next/server/chunks/7788.js +1 -1
  147. package/runtime/.next/server/chunks/8532.js +1 -1
  148. package/runtime/.next/server/pages/404.html +1 -1
  149. package/runtime/.next/server/pages/500.html +1 -1
  150. package/runtime/.next/server/server-reference-manifest.json +1 -1
  151. package/runtime/lib/remote-control/helper-manager.mjs +13 -16
  152. package/runtime/lib/remote-control/macos-helper-app.mjs +181 -0
  153. package/runtime/lib/remote-control/remote-authorization.mjs +2 -1
  154. package/runtime/server.js +1 -1
  155. package/runtime/webapp/dist/assets/{AiHubPane-28mWQJ4O.js → AiHubPane-Cu92elLn.js} +1 -1
  156. package/runtime/webapp/dist/assets/{App-ekMWYwJF.js → App-CIoUFqUR.js} +3 -3
  157. package/runtime/webapp/dist/assets/{BrowserLivePanel-jpMOjMFS.js → BrowserLivePanel-BsthwY1a.js} +1 -1
  158. package/runtime/webapp/dist/assets/{CollaborationDashboard-DWlttP3f.js → CollaborationDashboard-DG7Y0h1s.js} +1 -1
  159. package/runtime/webapp/dist/assets/{CollaborationPage-CsXdyER9.js → CollaborationPage-DA902wqi.js} +1 -1
  160. package/runtime/webapp/dist/assets/{FilePreview-C8hi9jdd.js → FilePreview-CGjiY6Oh.js} +3 -3
  161. package/runtime/webapp/dist/assets/{FileTree-Bl3OeqMa.js → FileTree-BC45MKRL.js} +1 -1
  162. package/runtime/webapp/dist/assets/{FlowStudioPane-B2Crgund.js → FlowStudioPane-9TrQcObf.js} +1 -1
  163. package/runtime/webapp/dist/assets/{RemoteDesktopPage-BuGJBiP2.js → RemoteDesktopPage-DMnDxASQ.js} +1 -1
  164. package/runtime/webapp/dist/assets/{TerminalPane-JNs8BUgC.js → TerminalPane-Ds9JxVMt.js} +1 -1
  165. package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-Da5MSN2N.js → abnfDiagram-VCTEODGH-2YNJ76WG.js} +1 -1
  166. package/runtime/webapp/dist/assets/{arc-CJB563ao.js → arc-CcKuP0ye.js} +1 -1
  167. package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-DHyh6h-n.js → architectureDiagram-5GKGNRK7-Bw49xhZn.js} +1 -1
  168. package/runtime/webapp/dist/assets/{artifact-links-CPifzsfG.js → artifact-links-OG5Ksgyd.js} +1 -1
  169. package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-Cuk8q0Bq.js → blockDiagram-I7D4REHJ-Dqm_qfY7.js} +1 -1
  170. package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-BCPECNbi.js → c4Diagram-7LVT6UL2-CASULDQ9.js} +1 -1
  171. package/runtime/webapp/dist/assets/channel-xKavBx6z.js +1 -0
  172. package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-B1J-5flF.js → chunk-2Q5K7J3B-yEnUXBZC.js} +1 -1
  173. package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-CaM_vBe1.js → chunk-5VM5RSS4-Djs5IDQf.js} +1 -1
  174. package/runtime/webapp/dist/assets/{chunk-F27PBJKO-BDwB4XD_.js → chunk-F27PBJKO-CdLh9ewF.js} +1 -1
  175. package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-N5RKmqRM.js → chunk-IMKFNOWR-I-pRrlxR.js} +1 -1
  176. package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-B1hPaIN0.js → chunk-JWPE2WC7-BD2Gv69T.js} +1 -1
  177. package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-DtWE5sgA.js → chunk-POPQ4Y6H-BhuerIJs.js} +1 -1
  178. package/runtime/webapp/dist/assets/{chunk-SVP7TREG-5FC9DbzN.js → chunk-SVP7TREG-AWEtUvjM.js} +1 -1
  179. package/runtime/webapp/dist/assets/{chunk-TICWLB2K-CpXAEy0r.js → chunk-TICWLB2K-BiO_dQcW.js} +1 -1
  180. package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-b8vc4bP6.js → chunk-XXDRQBXY-zkjO5GCv.js} +1 -1
  181. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-B6zj-gda.js +1 -0
  182. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-B6zj-gda.js +1 -0
  183. package/runtime/webapp/dist/assets/{clipboard-3WFkCzei.js → clipboard-CvdeFLww.js} +1 -1
  184. package/runtime/webapp/dist/assets/{codeSyntax-DS1_JVNX.js → codeSyntax-ByG7L1fi.js} +1 -1
  185. package/runtime/webapp/dist/assets/{collaboration-D-rkE6BZ.js → collaboration-Be_9WEiY.js} +1 -1
  186. package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-KBhpU3xZ.js → cose-bilkent-JH36ORCC-CAxuJw-v.js} +1 -1
  187. package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-DcTIXxSW.js → cynefin-OW5HDTMX-hLWhgC57.js} +1 -1
  188. package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-BDw54V_6.js → cynefinDiagram-5FMLGOSQ-uelhySIx.js} +1 -1
  189. package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-BH9md9Zn.js → dagre-GXQ25YYZ-DPO7KxIX.js} +1 -1
  190. package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-D_g32W87.js → diagram-S7CK7UJ4-B8jQa5Lm.js} +1 -1
  191. package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-CS8ZEPA3.js → diagram-UQ7AKVKN-DdymRFf0.js} +1 -1
  192. package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-VvEP2JUb.js → diagram-VSXAHHWV-BHAv1Uzp.js} +1 -1
  193. package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BfoXLyAq.js → diagram-VX7I27RA-DlRev6E7.js} +1 -1
  194. package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-BpzHahJO.js → diagram-Z3DM3KII-DspqqK0b.js} +1 -1
  195. package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CAGXPKzY.js → ebnfDiagram-PWID7BFC-BwStWg-O.js} +1 -1
  196. package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-DXgIcNCs.js → erDiagram-RLTQ6QDP-jUH66GeO.js} +1 -1
  197. package/runtime/webapp/dist/assets/{file-types-BzGqzhLB.js → file-types-Bbr1oDan.js} +1 -1
  198. package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-CflNqqOn.js → flowDiagram-HODETNUW-b2JhyYZh.js} +1 -1
  199. package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-BXuekM-f.js → ganttDiagram-EL5Y4UJY-k6xQA8nM.js} +1 -1
  200. package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-bYPad77G.js → gitGraphDiagram-WWUBYQGX-Cg8O3XcX.js} +1 -1
  201. package/runtime/webapp/dist/assets/{index-Br90NYRo.js → index-CQepZy15.js} +4 -4
  202. package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-CQPIcUL0.js → infoDiagram-27XIBGKW-BEZuUiUV.js} +1 -1
  203. package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-DEq3JCpB.js → ishikawaDiagram-5VMMS53U-D8cPBWA9.js} +1 -1
  204. package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-BOsgjYtC.js → journeyDiagram-3NMN7TZE-BiCIZoXl.js} +1 -1
  205. package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-DQoyHlvK.js → kanban-definition-UXKFOSKX-DBGsdTe3.js} +1 -1
  206. package/runtime/webapp/dist/assets/{layout-Dvzdsu8z.js → layout-CESwBcoQ.js} +1 -1
  207. package/runtime/webapp/dist/assets/{linear-CZ1jj4Qd.js → linear-meicA11o.js} +1 -1
  208. package/runtime/webapp/dist/assets/{loader-circle-QarW4WFo.js → loader-circle-gCGomGeo.js} +1 -1
  209. package/runtime/webapp/dist/assets/{mermaid.core-KMEOhVvg.js → mermaid.core-BsSrKkY-.js} +5 -5
  210. package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-D9I0keet.js → mindmap-definition-YA3MSWOX-Ci76EHnj.js} +1 -1
  211. package/runtime/webapp/dist/assets/{page-AR_mj5nj.js → page-CaBcebHM.js} +3 -3
  212. package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-DDAP2JW5.js → pegDiagram-XKGWAZYB-BJ9fzsRy.js} +1 -1
  213. package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-IH7ebgtF.js → pieDiagram-E7YTZNPT-Dr_g_s7V.js} +1 -1
  214. package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-DPPZl9Er.js → quadrantDiagram-AXDQQJYC-DRUIkYzL.js} +1 -1
  215. package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-DNvgDa9Z.js → railroadDiagram-O6MQD6OU-z_f3jTzL.js} +1 -1
  216. package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-BnwKpB1I.js → requirementDiagram-BXWQKSXE-BZ9192zw.js} +1 -1
  217. package/runtime/webapp/dist/assets/{rotate-ccw-DpluTZOU.js → rotate-ccw-CU6Ofovh.js} +1 -1
  218. package/runtime/webapp/dist/assets/{rotate-cw-7IpfF4VS.js → rotate-cw-CI-k2c-H.js} +1 -1
  219. package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-6DPBxCTG.js → sankeyDiagram-P5KCCOFB-D_bYtKCw.js} +1 -1
  220. package/runtime/webapp/dist/assets/{send-zD9gXsHU.js → send-B_L3JVTV.js} +1 -1
  221. package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-9tGhIDjG.js → sequenceDiagram-WJ2MYXX4-BRPkyVwo.js} +1 -1
  222. package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-DOG6MmJx.js → sizeCapture-INFHLROL-D0IXlEUO.js} +1 -1
  223. package/runtime/webapp/dist/assets/{smartphone-CMucPYln.js → smartphone-BaM-cilR.js} +1 -1
  224. package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-BH_8rviv.js → stateDiagram-D77RDMKH-DOPcJmKu.js} +1 -1
  225. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-CosKh0dU.js +1 -0
  226. package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-C1OBfphK.js → swimlanes-42K2YHIH-DkWPxpZR.js} +1 -1
  227. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-eLjpgpHz.js +8 -0
  228. package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-C7NbwS8G.js → timeline-definition-24CTP7MA-DSSrwQZc.js} +1 -1
  229. package/runtime/webapp/dist/assets/{trash-2-CzmPRys1.js → trash-2-CCZMuVfC.js} +1 -1
  230. package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-BAv8h8Fn.js → vennDiagram-4TSXK5OY-QRwqQ2e4.js} +1 -1
  231. package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-DwXhvlJe.js → wardleyDiagram-VM6X3IG4-BOSS_TSY.js} +1 -1
  232. package/runtime/webapp/dist/assets/{web-C9euibRI.js → web-DX0wjWUS.js} +1 -1
  233. package/runtime/webapp/dist/assets/{web-BIr9lkvO.js → web-ebzGWnSw.js} +1 -1
  234. package/runtime/webapp/dist/assets/{x-rqFWnP_p.js → x-CbdLQm7m.js} +1 -1
  235. package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-CRXqCYvA.js → xychartDiagram-S5SC5T6Z-D9Rp3n6B.js} +1 -1
  236. package/runtime/webapp/dist/index.html +1 -1
  237. package/runtime/.next/server/chunks/1322.js +0 -686
  238. package/runtime/.next/server/chunks/1773.js +0 -421
  239. package/runtime/.next/server/chunks/6244.js +0 -1
  240. package/runtime/webapp/dist/assets/channel-C5zXYGqL.js +0 -1
  241. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-LwOeM-av.js +0 -1
  242. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-LwOeM-av.js +0 -1
  243. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-a8sCg_CM.js +0 -1
  244. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-JsP2CwDv.js +0 -8
  245. /package/runtime/.next/static/{gT1sVPKvoSQGi2K39GoT_ → 1ar2wXugWliv3TmyVCQiY}/_buildManifest.js +0 -0
  246. /package/runtime/.next/static/{gT1sVPKvoSQGi2K39GoT_ → 1ar2wXugWliv3TmyVCQiY}/_ssgManifest.js +0 -0
package/manifest.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "packageVersion": "0.2.0-preview.53",
2
+ "packageVersion": "0.2.0-preview.56",
3
3
  "target": "windows-amd64",
4
4
  "schemaVersion": 2,
5
5
  "capabilities": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentroam-runtime-win32-x64",
3
- "version": "0.2.0-preview.53",
3
+ "version": "0.2.0-preview.56",
4
4
  "description": "AgentRoam server runtime for Windows x64",
5
5
  "license": "MIT",
6
6
  "os": [
@@ -1 +1 @@
1
- gT1sVPKvoSQGi2K39GoT_
1
+ 1ar2wXugWliv3TmyVCQiY
@@ -1 +1 @@
1
- {"/_not-found/page":"/_not-found","/api/collaboration/route":"/api/collaboration","/api/auth/verify/route":"/api/auth/verify","/api/flow/v1/runs/[runId]/cancel/route":"/api/flow/v1/runs/[runId]/cancel","/api/mcp/connect/route":"/api/mcp/connect","/api/mcp/disconnect/route":"/api/mcp/disconnect","/api/memory/route":"/api/memory","/api/flow/v1/runs/[runId]/events/route":"/api/flow/v1/runs/[runId]/events","/api/flow/v1/runs/route":"/api/flow/v1/runs","/api/mcp/servers/route":"/api/mcp/servers","/api/memory/[key]/route":"/api/memory/[key]","/api/plugins/load/route":"/api/plugins/load","/api/projects/[id]/route":"/api/projects/[id]","/api/projects/directories/route":"/api/projects/directories","/api/projects/roots/route":"/api/projects/roots","/api/projects/check/route":"/api/projects/check","/api/push/unsubscribe/route":"/api/push/unsubscribe","/api/projects/route":"/api/projects","/api/push/subscribe/route":"/api/push/subscribe","/api/push/vapid/route":"/api/push/vapid","/api/sessions/[id]/fork-at/route":"/api/sessions/[id]/fork-at","/api/remote-tools/register/route":"/api/remote-tools/register","/api/skills/route":"/api/skills","/api/tools/route":"/api/tools","/api/web-auth/revoke-all/route":"/api/web-auth/revoke-all","/api/web-auth/logout/route":"/api/web-auth/logout","/api/web-console/history/route":"/api/web-console/history","/api/tool-policies/[policyId]/route":"/api/tool-policies/[policyId]","/api/web-auth/setup/route":"/api/web-auth/setup","/api/web-auth/login/route":"/api/web-auth/login","/api/web-console/preferences/route":"/api/web-console/preferences","/api/agent/codex-sharing/route":"/api/agent/codex-sharing","/api/agent-workspaces/route":"/api/agent-workspaces","/api/agent/answer/route":"/api/agent/answer","/api/agent-workspaces/[workspaceId]/sessions/route":"/api/agent-workspaces/[workspaceId]/sessions","/api/agent/harness/status/route":"/api/agent/harness/status","/api/agent/model/route":"/api/agent/model","/api/agent/runtime-health/route":"/api/agent/runtime-health","/api/agent/abort/route":"/api/agent/abort","/api/agent/models/route":"/api/agent/models","/api/agent/steer/route":"/api/agent/steer","/api/business/route":"/api/business","/api/flow-studio/config/route":"/api/flow-studio/config","/api/flow/v1/catalog/route":"/api/flow/v1/catalog","/api/agent/stream/route":"/api/agent/stream","/api/sessions/[id]/changes/route":"/api/sessions/[id]/changes","/api/sessions/[id]/fork/route":"/api/sessions/[id]/fork","/api/sessions/[id]/handoff/route":"/api/sessions/[id]/handoff","/api/agent/run/route":"/api/agent/run","/api/sessions/[id]/native-goal/route":"/api/sessions/[id]/native-goal","/api/sessions/[id]/release/route":"/api/sessions/[id]/release","/api/sessions/[id]/query-index/route":"/api/sessions/[id]/query-index","/api/sessions/[id]/thread-goal/route":"/api/sessions/[id]/thread-goal","/api/client-logs/route":"/api/client-logs","/api/sessions/route":"/api/sessions","/api/sessions/[id]/tool-result/route":"/api/sessions/[id]/tool-result","/api/settings/route":"/api/settings","/api/tool-policies/route":"/api/tool-policies","/api/update/install/route":"/api/update/install","/api/sessions/[id]/route":"/api/sessions/[id]","/api/update/check/route":"/api/update/check","/api/update/status/route":"/api/update/status","/api/web-console/bootstrap/route":"/api/web-console/bootstrap","/api/web-auth/status/route":"/api/web-auth/status","/api/sessions/[id]/goals/route":"/api/sessions/[id]/goals","/api/web-console/device-state/route":"/api/web-console/device-state","/api/web-console/computer-settings/route":"/api/web-console/computer-settings","/api/web-console/computers/route":"/api/web-console/computers","/web/page":"/web"}
1
+ {"/_not-found/page":"/_not-found","/api/collaboration/route":"/api/collaboration","/api/auth/verify/route":"/api/auth/verify","/api/flow/v1/runs/[runId]/events/route":"/api/flow/v1/runs/[runId]/events","/api/flow/v1/runs/[runId]/cancel/route":"/api/flow/v1/runs/[runId]/cancel","/api/flow/v1/runs/route":"/api/flow/v1/runs","/api/mcp/connect/route":"/api/mcp/connect","/api/mcp/servers/route":"/api/mcp/servers","/api/memory/[key]/route":"/api/memory/[key]","/api/memory/route":"/api/memory","/api/mcp/disconnect/route":"/api/mcp/disconnect","/api/plugins/load/route":"/api/plugins/load","/api/projects/[id]/route":"/api/projects/[id]","/api/projects/roots/route":"/api/projects/roots","/api/projects/check/route":"/api/projects/check","/api/push/unsubscribe/route":"/api/push/unsubscribe","/api/projects/directories/route":"/api/projects/directories","/api/push/vapid/route":"/api/push/vapid","/api/push/subscribe/route":"/api/push/subscribe","/api/remote-tools/register/route":"/api/remote-tools/register","/api/projects/route":"/api/projects","/api/sessions/[id]/fork-at/route":"/api/sessions/[id]/fork-at","/api/skills/route":"/api/skills","/api/tool-policies/[policyId]/route":"/api/tool-policies/[policyId]","/api/tools/route":"/api/tools","/api/web-auth/revoke-all/route":"/api/web-auth/revoke-all","/api/web-auth/logout/route":"/api/web-auth/logout","/api/web-auth/setup/route":"/api/web-auth/setup","/api/web-console/history/route":"/api/web-console/history","/api/web-console/preferences/route":"/api/web-console/preferences","/api/web-auth/login/route":"/api/web-auth/login","/api/agent-workspaces/[workspaceId]/sessions/route":"/api/agent-workspaces/[workspaceId]/sessions","/api/agent/abort/route":"/api/agent/abort","/api/agent-workspaces/route":"/api/agent-workspaces","/api/agent/answer/route":"/api/agent/answer","/api/agent/harness/status/route":"/api/agent/harness/status","/api/agent/model/route":"/api/agent/model","/api/agent/runtime-health/route":"/api/agent/runtime-health","/api/agent/models/route":"/api/agent/models","/api/agent/steer/route":"/api/agent/steer","/api/business/route":"/api/business","/api/agent/codex-sharing/route":"/api/agent/codex-sharing","/api/flow/v1/catalog/route":"/api/flow/v1/catalog","/api/flow-studio/config/route":"/api/flow-studio/config","/api/agent/stream/route":"/api/agent/stream","/api/sessions/[id]/fork/route":"/api/sessions/[id]/fork","/api/agent/run/route":"/api/agent/run","/api/sessions/[id]/changes/route":"/api/sessions/[id]/changes","/api/sessions/[id]/handoff/route":"/api/sessions/[id]/handoff","/api/sessions/[id]/release/route":"/api/sessions/[id]/release","/api/client-logs/route":"/api/client-logs","/api/sessions/[id]/native-goal/route":"/api/sessions/[id]/native-goal","/api/sessions/[id]/query-index/route":"/api/sessions/[id]/query-index","/api/settings/route":"/api/settings","/api/sessions/[id]/tool-result/route":"/api/sessions/[id]/tool-result","/api/sessions/route":"/api/sessions","/api/sessions/[id]/thread-goal/route":"/api/sessions/[id]/thread-goal","/api/tool-policies/route":"/api/tool-policies","/api/update/status/route":"/api/update/status","/api/update/install/route":"/api/update/install","/api/update/check/route":"/api/update/check","/api/sessions/[id]/goals/route":"/api/sessions/[id]/goals","/api/web-auth/status/route":"/api/web-auth/status","/api/web-console/bootstrap/route":"/api/web-console/bootstrap","/api/sessions/[id]/route":"/api/sessions/[id]","/api/web-console/computer-settings/route":"/api/web-console/computer-settings","/api/web-console/device-state/route":"/api/web-console/device-state","/api/web-console/computers/route":"/api/web-console/computers","/web/page":"/web"}
@@ -5,8 +5,8 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/gT1sVPKvoSQGi2K39GoT_/_buildManifest.js",
9
- "static/gT1sVPKvoSQGi2K39GoT_/_ssgManifest.js"
8
+ "static/1ar2wXugWliv3TmyVCQiY/_buildManifest.js",
9
+ "static/1ar2wXugWliv3TmyVCQiY/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [
12
12
  "static/chunks/webpack-df5191d21627ba96.js",
@@ -1 +1 @@
1
- {"version":4,"routes":{"/api/mcp/servers":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/mcp/layout,_N_T_/api/mcp/servers/layout,_N_T_/api/mcp/servers/route,_N_T_/api/mcp/servers"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/mcp/servers","dataRoute":null},"/api/push/vapid":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/push/layout,_N_T_/api/push/vapid/layout,_N_T_/api/push/vapid/route,_N_T_/api/push/vapid"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/push/vapid","dataRoute":null},"/api/tools":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/tools/layout,_N_T_/api/tools/route,_N_T_/api/tools"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/tools","dataRoute":null}},"dynamicRoutes":{},"notFoundRoutes":[],"preview":{"previewModeId":"ea5d6084c08ab875a0cbbbf0ba38fbc1","previewModeSigningKey":"50327c04d6c71199ae5de7a5b977333f97dd422b155ce48b886146db91d751f0","previewModeEncryptionKey":"de7ce98dd2a285d9de33d7be983c14c57349e0889fc5f0543cea203bbd237b90"}}
1
+ {"version":4,"routes":{"/api/mcp/servers":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/mcp/layout,_N_T_/api/mcp/servers/layout,_N_T_/api/mcp/servers/route,_N_T_/api/mcp/servers"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/mcp/servers","dataRoute":null},"/api/tools":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/tools/layout,_N_T_/api/tools/route,_N_T_/api/tools"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/tools","dataRoute":null},"/api/push/vapid":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/push/layout,_N_T_/api/push/vapid/layout,_N_T_/api/push/vapid/route,_N_T_/api/push/vapid"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/push/vapid","dataRoute":null}},"dynamicRoutes":{},"notFoundRoutes":[],"preview":{"previewModeId":"436bb2d66305425d515350bf83c189c6","previewModeSigningKey":"66688b79cfb8a19c488d1c4eeb79dae6ce91966400bf188ee216d0d7a9db3ed9","previewModeEncryptionKey":"1e0cc620a419c66ef819710c787ea469b20428d3c2d34ac917df672affa7b6ab"}}
@@ -1 +1 @@
1
- {"version":1,"config":{"env":{},"eslint":{"ignoreDuringBuilds":false},"typescript":{"ignoreBuildErrors":false,"tsconfigPath":"tsconfig.json"},"distDir":".next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.js","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"analyticsId":"","images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false},"devIndicators":{"buildActivity":true,"buildActivityPosition":"bottom-right"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"amp":{"canonicalBase":""},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"optimizeFonts":true,"excludeDefaultMomentLocales":true,"serverRuntimeConfig":{},"publicRuntimeConfig":{},"reactProductionProfiling":false,"reactStrictMode":null,"httpAgentOptions":{"keepAlive":true},"outputFileTracing":true,"staticPageGenerationTimeout":60,"swcMinify":true,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"experimental":{"multiZoneDraftMode":false,"prerenderEarlyExit":false,"serverMinification":true,"serverSourceMaps":false,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","middlewarePrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":10,"memoryBasedWorkersCount":false,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":true,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"outputFileTracingRoot":"/private/tmp/agentroam-npm-preview49.GAVmnh/source","swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"adjustFontFallbacks":false,"adjustFontFallbacksWithSizeAdjust":false,"typedRoutes":false,"instrumentationHook":false,"bundlePagesExternals":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"missingSuspenseWithCSRBailout":true,"optimizeServerReact":true,"useEarlyImport":false,"staleTimes":{"dynamic":30,"static":300},"serverComponentsExternalPackages":["@anthropic-ai/claude-agent-sdk"],"optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"configFileName":"next.config.js"},"appDir":"/private/tmp/agentroam-npm-preview49.GAVmnh/source/packages/server","relativeAppDir":"packages/server","files":[".next/routes-manifest.json",".next/server/pages-manifest.json",".next/build-manifest.json",".next/prerender-manifest.json",".next/server/middleware-manifest.json",".next/server/middleware-build-manifest.js",".next/server/middleware-react-loadable-manifest.js",".next/server/app-paths-manifest.json",".next/app-path-routes-manifest.json",".next/app-build-manifest.json",".next/server/server-reference-manifest.js",".next/server/server-reference-manifest.json",".next/react-loadable-manifest.json",".next/server/font-manifest.json",".next/BUILD_ID",".next/server/next-font-manifest.js",".next/server/next-font-manifest.json"],"ignore":["../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*"]}
1
+ {"version":1,"config":{"env":{},"eslint":{"ignoreDuringBuilds":false},"typescript":{"ignoreBuildErrors":false,"tsconfigPath":"tsconfig.json"},"distDir":".next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.js","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"analyticsId":"","images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false},"devIndicators":{"buildActivity":true,"buildActivityPosition":"bottom-right"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"amp":{"canonicalBase":""},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"optimizeFonts":true,"excludeDefaultMomentLocales":true,"serverRuntimeConfig":{},"publicRuntimeConfig":{},"reactProductionProfiling":false,"reactStrictMode":null,"httpAgentOptions":{"keepAlive":true},"outputFileTracing":true,"staticPageGenerationTimeout":60,"swcMinify":true,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"experimental":{"multiZoneDraftMode":false,"prerenderEarlyExit":false,"serverMinification":true,"serverSourceMaps":false,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","middlewarePrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":10,"memoryBasedWorkersCount":false,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":true,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"outputFileTracingRoot":"/private/tmp/agentroam-npm-preview49.GAVmnh/source","swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"adjustFontFallbacks":false,"adjustFontFallbacksWithSizeAdjust":false,"typedRoutes":false,"instrumentationHook":false,"bundlePagesExternals":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"missingSuspenseWithCSRBailout":true,"optimizeServerReact":true,"useEarlyImport":false,"staleTimes":{"dynamic":30,"static":300},"serverComponentsExternalPackages":["@anthropic-ai/claude-agent-sdk","@agent/core","@agent/computer-use","@agent/native-runtime"],"optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"configFileName":"next.config.js"},"appDir":"/private/tmp/agentroam-npm-preview49.GAVmnh/source/packages/server","relativeAppDir":"packages/server","files":[".next/routes-manifest.json",".next/server/pages-manifest.json",".next/build-manifest.json",".next/prerender-manifest.json",".next/server/middleware-manifest.json",".next/server/middleware-build-manifest.js",".next/server/middleware-react-loadable-manifest.js",".next/server/app-paths-manifest.json",".next/app-path-routes-manifest.json",".next/app-build-manifest.json",".next/server/server-reference-manifest.js",".next/server/server-reference-manifest.json",".next/react-loadable-manifest.json",".next/server/font-manifest.json",".next/BUILD_ID",".next/server/next-font-manifest.js",".next/server/next-font-manifest.json"],"ignore":["../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*"]}
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="zh-CN" style="background:#070a0b;color-scheme:dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-df5191d21627ba96.js"/><script src="/_next/static/chunks/3cc391f0-d7ec74603652803d.js" async=""></script><script src="/_next/static/chunks/183-d2f78a21998813ba.js" async=""></script><script src="/_next/static/chunks/main-app-f508b4b3ab30eea6.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="theme-color" content="#070a0b"/><meta name="color-scheme" content="dark"/><title>AgentRoam</title><meta name="description" content="General-purpose AI agent API server"/><link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="AgentRoam"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><link rel="icon" href="/pwa/icon-192.png"/><link rel="apple-touch-icon" href="/pwa/icon-192.png"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;min-height:100dvh;background:#070a0b"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/pwa/install.js" defer=""></script><script src="/_next/static/chunks/webpack-df5191d21627ba96.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[7709,[],\"\"]\n3:I[1338,[],\"\"]\n4:I[1573,[],\"\"]\na:I[6554,[],\"\"]\n5:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L1\",null,{\"buildId\":\"gT1sVPKvoSQGi2K39GoT_\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[null,[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"style\":{\"background\":\"#070a0b\",\"colorScheme\":\"dark\"},\"children\":[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"minHeight\":\"100dvh\",\"background\":\"#070a0b\"},\"children\":[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$5\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}],[\"$\",\"script\",null,{\"src\":\"/pwa/install.js\",\"defer\":true}]]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"name\":\"theme-color\",\"content\":\"#070a0b\"}],[\"$\",\"meta\",\"2\",{\"name\":\"color-scheme\",\"content\":\"dark\"}],[\"$\",\"meta\",\"3\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"4\",{\"children\":\"AgentRoam\"}],[\"$\",\"meta\",\"5\",{\"name\":\"description\",\"content\":\"General-purpose AI agent API server\"}],[\"$\",\"link\",\"6\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"7\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"AgentRoam\"}],[\"$\",\"meta\",\"9\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"link\",\"10\",{\"rel\":\"icon\",\"href\":\"/pwa/icon-192.png\"}],[\"$\",\"link\",\"11\",{\"rel\":\"apple-touch-icon\",\"href\":\"/pwa/icon-192.png\"}]]\n2:null\n"])</script></body></html>
1
+ <!DOCTYPE html><html lang="zh-CN" style="background:#070a0b;color-scheme:dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-df5191d21627ba96.js"/><script src="/_next/static/chunks/3cc391f0-d7ec74603652803d.js" async=""></script><script src="/_next/static/chunks/183-d2f78a21998813ba.js" async=""></script><script src="/_next/static/chunks/main-app-f508b4b3ab30eea6.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="theme-color" content="#070a0b"/><meta name="color-scheme" content="dark"/><title>AgentRoam</title><meta name="description" content="General-purpose AI agent API server"/><link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="AgentRoam"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><link rel="icon" href="/pwa/icon-192.png"/><link rel="apple-touch-icon" href="/pwa/icon-192.png"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;min-height:100dvh;background:#070a0b"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/pwa/install.js" defer=""></script><script src="/_next/static/chunks/webpack-df5191d21627ba96.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[7709,[],\"\"]\n3:I[1338,[],\"\"]\n4:I[1573,[],\"\"]\na:I[6554,[],\"\"]\n5:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L1\",null,{\"buildId\":\"1ar2wXugWliv3TmyVCQiY\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[null,[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"style\":{\"background\":\"#070a0b\",\"colorScheme\":\"dark\"},\"children\":[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"minHeight\":\"100dvh\",\"background\":\"#070a0b\"},\"children\":[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$5\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}],[\"$\",\"script\",null,{\"src\":\"/pwa/install.js\",\"defer\":true}]]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"name\":\"theme-color\",\"content\":\"#070a0b\"}],[\"$\",\"meta\",\"2\",{\"name\":\"color-scheme\",\"content\":\"dark\"}],[\"$\",\"meta\",\"3\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"4\",{\"children\":\"AgentRoam\"}],[\"$\",\"meta\",\"5\",{\"name\":\"description\",\"content\":\"General-purpose AI agent API server\"}],[\"$\",\"link\",\"6\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"7\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"AgentRoam\"}],[\"$\",\"meta\",\"9\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"link\",\"10\",{\"rel\":\"icon\",\"href\":\"/pwa/icon-192.png\"}],[\"$\",\"link\",\"11\",{\"rel\":\"apple-touch-icon\",\"href\":\"/pwa/icon-192.png\"}]]\n2:null\n"])</script></body></html>
@@ -4,6 +4,6 @@
4
4
  5:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"}
5
5
  6:{"display":"inline-block"}
6
6
  7:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0}
7
- 0:["gT1sVPKvoSQGi2K39GoT_",[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["/_not-found",{"children":["__PAGE__",{},[["$L1",[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null],null],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","/_not-found","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[null,["$","html",null,{"lang":"zh-CN","style":{"background":"#070a0b","colorScheme":"dark"},"children":["$","body",null,{"style":{"margin":0,"minHeight":"100dvh","background":"#070a0b"},"children":[["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$4","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$5","children":"404"}],["$","div",null,{"style":"$6","children":["$","h2",null,{"style":"$7","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}],["$","script",null,{"src":"/pwa/install.js","defer":true}]]}]}]],null],null],["$L8",["$","meta",null,{"name":"robots","content":"noindex"}]]]]]
7
+ 0:["1ar2wXugWliv3TmyVCQiY",[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["/_not-found",{"children":["__PAGE__",{},[["$L1",[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null],null],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","/_not-found","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[null,["$","html",null,{"lang":"zh-CN","style":{"background":"#070a0b","colorScheme":"dark"},"children":["$","body",null,{"style":{"margin":0,"minHeight":"100dvh","background":"#070a0b"},"children":[["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$4","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$5","children":"404"}],["$","div",null,{"style":"$6","children":["$","h2",null,{"style":"$7","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}],["$","script",null,{"src":"/pwa/install.js","defer":true}]]}]}]],null],null],["$L8",["$","meta",null,{"name":"robots","content":"noindex"}]]]]]
8
8
  8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"name":"theme-color","content":"#070a0b"}],["$","meta","2",{"name":"color-scheme","content":"dark"}],["$","meta","3",{"charSet":"utf-8"}],["$","title","4",{"children":"AgentRoam"}],["$","meta","5",{"name":"description","content":"General-purpose AI agent API server"}],["$","link","6",{"rel":"manifest","href":"/manifest.webmanifest","crossOrigin":"use-credentials"}],["$","meta","7",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","8",{"name":"apple-mobile-web-app-title","content":"AgentRoam"}],["$","meta","9",{"name":"apple-mobile-web-app-status-bar-style","content":"black-translucent"}],["$","link","10",{"rel":"icon","href":"/pwa/icon-192.png"}],["$","link","11",{"rel":"apple-touch-icon","href":"/pwa/icon-192.png"}]]
9
9
  1:null
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=816,e.ids=[816],e.modules={7728:e=>{e.exports=require("@anthropic-ai/claude-agent-sdk")},5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},4492:e=>{e.exports=require("node:stream")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},4564:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>w,requestAsyncStorage:()=>p,routeModule:()=>h,serverHooks:()=>g,staticGenerationAsyncStorage:()=>m});var s={};r.r(s),r.d(s,{POST:()=>d});var n=r(7786),i=r(5042),a=r(2184),o=r(1890),u=r(7519),l=r(1614),c=r(1366);async function d(e){let t;try{t=(await e.json()).sessionId}catch{}if(t&&(0,l.V_)(t)){try{await (0,l.NL)().abort(t)}catch(e){return o.NextResponse.json({error:e instanceof Error?e.message:"Abort failed"},{status:500})}return o.NextResponse.json({status:"aborted"})}return t&&(0,c.C)().requestStop(t),u.agentHost.abort(t),o.NextResponse.json({status:"aborted"})}let h=new n.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/agent/abort/route",pathname:"/api/agent/abort",filename:"route",bundlePath:"app/api/agent/abort/route"},resolvedPagePath:"/private/tmp/agentroam-npm-preview49.GAVmnh/source/packages/server/app/api/agent/abort/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:p,staticGenerationAsyncStorage:m,serverHooks:g}=h,f="/api/agent/abort/route";function w(){return(0,a.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:m})}},1614:(e,t,r)=>{r.d(t,{NL:()=>N,V_:()=>_,WW:()=>E});var s=r(7561),n=r(612),i=r(9411),a=r(7718),o=r(1322);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.wyD)((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(i.delimiter).filter(Boolean)){let r=(0,i.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.neJ)(t,{name:e.name,minimumVersion:e.minimumVersion})}var d=r(535),h=r(6279),p=r(785);let m=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.no("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 n=new Set(s.data.map(e=>e.id)),i=s.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),f(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||n.has(r.id)||i.unshift(r);return{...s,data:i}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return P(this.withPendingCreations(t).map(e=>v(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return P(this.withPendingCreations(t).map(e=>v(e,r,this.platform)),e)}async create(e){let t=v(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(!_(e))throw new h.no("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let r=v(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 v(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.bind(r,1322));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,n){return this.runtime.run(e,t,r,s,n)}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.no("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",n){if(!this.runtime.startRun)throw new h.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,s,n)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new h.no("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.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new h.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async setNativeMode(e,t){if(!this.runtime.setNativeMode)throw new h.no("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.no("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativePermissionPreset(e,t)}async getNativeGoal(e){if(!this.runtime.getNativeGoal)throw new h.no("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.getNativeGoal(e)}async mutateNativeGoal(e,t){if(!this.runtime.mutateNativeGoal)throw new h.no("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.mutateNativeGoal(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new h.no("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.no("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.no("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.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new h.no("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.no("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.no("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.no("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.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new h.no("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?f(e,r):e});return[...[...this.pendingCreations.values()].filter(e=>!t.has(e.id)).sort((e,t)=>t.updated.localeCompare(e.updated)),...r]}}function f(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function w(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function N(){if(!m.__nativeRuntimeService){!function(){let e=[(0,i.join)((0,n.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(i.delimiter),r=e.filter(e=>(0,s.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(i.delimiter))}();let e=new o.XWE((0,p.kO)());m.__nativeRuntimeService=new g((0,h.v6)({runtimeFactory:e=>{let t=c({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:o.hix}),r=c({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,w("AGENT_CODEX_RUNTIME_ERROR",t),w("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,d.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.WH)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return m.__nativeRuntimeService}function v(e,t,r=process.platform){let{projectId:s,...n}=e;if(!e.cwd)return n;let a=O(e.cwd,r),o="win32"===r?i.win32.sep:i.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:O(e.description,r)})).filter(({path:e})=>a===e||a.startsWith(`${e}${o}`)).sort((e,t)=>t.path.length-e.path.length)[0];return u?{...n,projectId:u.project.id}:n}function O(e,t=process.platform){if("win32"!==t)return(0,i.resolve)(e);let r=i.win32.resolve(e),s=i.win32.parse(r).root;return(r.length>s.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function P(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function _(e){try{return"customer-agent"!==(0,h.Vu)(e).agentType}catch{return!1}}function E(e){if(e instanceof h.no)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(1322),n=r(6279),i=r(785);class a{constructor(){this.tasks=new s.vo4((0,i.kO)()),this.scheduler=new n.ST(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)),n=e.sessionId;n&&await t.getSessionStore().get(n)||(n=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:n})),await s().enqueue(n,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}},1366:(e,t,r)=>{r.d(t,{C:()=>o,a:()=>u});var s=r(1322),n=r(7519),i=r(785);let a=globalThis;function o(){if(a.__threadGoalService)return a.__threadGoalService;let e=new s.rA9(new s.ZIW((0,i.kO)()),{isSessionRunning:e=>n.agentHost.isSessionRunning(e),startTurn:async(e,t)=>{if(n.agentHost.isSessionRunning(e))return!1;try{return n.agentHost.startRun(t,e,void 0,{source:"goal"}).completion.catch(()=>{}),!0}catch(e){if(e instanceof n.A)return!1;throw e}},steerHidden:(e,t)=>n.agentHost.steer(t,e,"__goal__"),sessionExists:async e=>!!await n.agentHost.getSessionStore().get(e)},{onUpdated:(e,t)=>n.agentHost.publishExternal(e,{type:"goal_updated",goal:t}),onCleared:e=>n.agentHost.publishExternal(e,{type:"goal_cleared",sessionId:e})});return n.agentHost.onRunSettled=t=>{e.onRunSettled({sessionId:t.sessionId,failed:t.failed,usageLimited:t.usageLimited,tokens:t.newTokens,seconds:t.durationMs/1e3}).catch(()=>{})},n.agentHost.threadGoalToolsProvider=t=>(0,s.DAt)(e,t),a.__threadGoalService=e,e}function u(){o().resumeInterrupted().catch(()=>{})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,6244,1322,1773,4621,7519],()=>r(4564));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=816,e.ids=[816],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")},4564:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>w,requestAsyncStorage:()=>m,routeModule:()=>d,serverHooks:()=>g,staticGenerationAsyncStorage:()=>p});var s={};r.r(s),r.d(s,{POST:()=>h});var i=r(7786),n=r(5042),a=r(2184),o=r(1890),u=r(7519),l=r(1614),c=r(1366);async function h(e){let t;try{t=(await e.json()).sessionId}catch{}if(t&&(0,l.V_)(t)){try{await (0,l.NL)().abort(t)}catch(e){return o.NextResponse.json({error:e instanceof Error?e.message:"Abort failed"},{status:500})}return o.NextResponse.json({status:"aborted"})}return t&&(0,c.C)().requestStop(t),u.agentHost.abort(t),o.NextResponse.json({status:"aborted"})}let d=new i.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/agent/abort/route",pathname:"/api/agent/abort",filename:"route",bundlePath:"app/api/agent/abort/route"},resolvedPagePath:"/private/tmp/agentroam-npm-preview49.GAVmnh/source/packages/server/app/api/agent/abort/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:m,staticGenerationAsyncStorage:p,serverHooks:g}=d,f="/api/agent/abort/route";function w(){return(0,a.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:p})}},1614:(e,t,r)=>{r.d(t,{NL:()=>E,V_:()=>v,WW:()=>O});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 h=r(535),d=r(2847),m=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 d.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),f(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 S(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 S(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(!v(e))throw new d.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 d.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 d.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 d.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 d.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new d.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async setNativeMode(e,t){if(!this.runtime.setNativeMode)throw new d.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 d.RuntimeSessionError("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativePermissionPreset(e,t)}async getNativeGoal(e){if(!this.runtime.getNativeGoal)throw new d.RuntimeSessionError("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.getNativeGoal(e)}async mutateNativeGoal(e,t){if(!this.runtime.mutateNativeGoal)throw new d.RuntimeSessionError("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.mutateNativeGoal(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new d.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 d.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 d.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 d.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new d.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 d.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 d.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 d.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 d.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new d.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?f(e,r):e});return[...[...this.pendingCreations.values()].filter(e=>!t.has(e.id)).sort((e,t)=>t.updated.localeCompare(e.updated)),...r]}}function f(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function w(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,m.kO)());p.__nativeRuntimeService=new g((0,d.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,w("AGENT_CODEX_RUNTIME_ERROR",t),w("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,h.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,d.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 S(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function v(e){try{return"customer-agent"!==(0,d.decodeUnifiedSessionId)(e).agentType}catch{return!1}}function O(e){if(e instanceof d.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}},1366:(e,t,r)=>{r.d(t,{C:()=>o,a:()=>u});var s=r(1636),i=r(7519),n=r(785);let a=globalThis;function o(){if(a.__threadGoalService)return a.__threadGoalService;let e=new s.ThreadGoalService(new s.SQLiteThreadGoalStore((0,n.kO)()),{isSessionRunning:e=>i.agentHost.isSessionRunning(e),startTurn:async(e,t)=>{if(i.agentHost.isSessionRunning(e))return!1;try{return i.agentHost.startRun(t,e,void 0,{source:"goal"}).completion.catch(()=>{}),!0}catch(e){if(e instanceof i.A)return!1;throw e}},steerHidden:(e,t)=>i.agentHost.steer(t,e,"__goal__"),sessionExists:async e=>!!await i.agentHost.getSessionStore().get(e)},{onUpdated:(e,t)=>i.agentHost.publishExternal(e,{type:"goal_updated",goal:t}),onCleared:e=>i.agentHost.publishExternal(e,{type:"goal_cleared",sessionId:e})});return i.agentHost.onRunSettled=t=>{e.onRunSettled({sessionId:t.sessionId,failed:t.failed,usageLimited:t.usageLimited,tokens:t.newTokens,seconds:t.durationMs/1e3}).catch(()=>{})},i.agentHost.threadGoalToolsProvider=t=>(0,s.createThreadGoalTools)(e,t),a.__threadGoalService=e,e}function u(){o().resumeInterrupted().catch(()=>{})}}};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(4564));module.exports=s})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+35e45c978e9f7cc7/node_modules/@anthropic-ai/claude-agent-sdk/package.json","../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+35e45c978e9f7cc7/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/binding.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/explain.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-x64.node","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/async-local-storage.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/package.json","../../../../../../../../package.json","../../../../../../../computer-use/package.json","../../../../../../../core/package.json","../../../../../../../native-runtime/package.json","../../../../../../node_modules/@anthropic-ai/claude-agent-sdk","../../../../../../node_modules/better-sqlite3","../../../../../../node_modules/next","../../../../../../package.json","../../../../../package.json","../../../../chunks/1322.js","../../../../chunks/1773.js","../../../../chunks/4621.js","../../../../chunks/6244.js","../../../../chunks/6703.js","../../../../chunks/732.js","../../../../chunks/7519.js","../../../../chunks/8375.js","../../../../webpack-runtime.js"]}
1
+ {"version":1,"files":["../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+c37f1ebc82a0b1f5/node_modules/@anthropic-ai/claude-agent-sdk/package.json","../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+c37f1ebc82a0b1f5/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/client.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/error-interceptor.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/client.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/index.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/utils.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/auth.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/bodySerializer.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/params.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/pathSerializer.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/serverSentEvents.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/utils.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/sdk.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/types.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/index.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/process.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/server.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/package.json","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/cross-spawn","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/binding.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/explain.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-x64.node","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/package.json","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/path-key","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/shebang-command","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/which","../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js","../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js","../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/package.json","../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/async-local-storage.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/package.json","../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.js","../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/package.json","../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.js","../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/package.json","../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-regex","../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/package.json","../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/isexe","../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/package.json","../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/which.js","../../../../../../../../package.json","../../../../../../../computer-use/dist/index.js","../../../../../../../computer-use/package.json","../../../../../../../core/dist/index.js","../../../../../../../core/node_modules/better-sqlite3","../../../../../../../core/package.json","../../../../../../../native-runtime/dist/index.js","../../../../../../../native-runtime/node_modules/@agent/core","../../../../../../../native-runtime/node_modules/@anthropic-ai/claude-agent-sdk","../../../../../../../native-runtime/node_modules/@opencode-ai/sdk","../../../../../../../native-runtime/package.json","../../../../../../node_modules/@agent/computer-use","../../../../../../node_modules/@agent/core","../../../../../../node_modules/@agent/native-runtime","../../../../../../node_modules/next","../../../../../../package.json","../../../../../package.json","../../../../chunks/4621.js","../../../../chunks/6703.js","../../../../chunks/732.js","../../../../chunks/7519.js","../../../../chunks/8375.js","../../../../webpack-runtime.js"]}
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=8195,e.ids=[8195],e.modules={7728:e=>{e.exports=require("@anthropic-ai/claude-agent-sdk")},5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},4492:e=>{e.exports=require("node:stream")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},3013:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>w,patchFetch:()=>f,requestAsyncStorage:()=>h,routeModule:()=>d,serverHooks:()=>m,staticGenerationAsyncStorage:()=>p});var s={};r.r(s),r.d(s,{POST:()=>c});var n=r(7786),i=r(5042),a=r(2184),o=r(1890),u=r(7519),l=r(1614);async function c(e){try{let t=await e.json();if(!t.questionId||!t.answer)return o.NextResponse.json({error:"questionId and answer are required"},{status:400});let r=u.agentHost.answerQuestion(t.questionId,t.answer,t.selectedIndices);if(r||(r=await (0,l.NL)().answerQuestion(t.questionId,{answer:t.answer,selectedIndices:t.selectedIndices})),!r)return o.NextResponse.json({error:"Question not found or already answered"},{status:404});return o.NextResponse.json({ok:!0})}catch(e){return o.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,l.WW)(e)})}}let d=new n.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/agent/answer/route",pathname:"/api/agent/answer",filename:"route",bundlePath:"app/api/agent/answer/route"},resolvedPagePath:"/private/tmp/agentroam-npm-preview49.GAVmnh/source/packages/server/app/api/agent/answer/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:h,staticGenerationAsyncStorage:p,serverHooks:m}=d,w="/api/agent/answer/route";function f(){return(0,a.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:p})}},1614:(e,t,r)=>{r.d(t,{NL:()=>g,V_:()=>E,WW:()=>T});var s=r(7561),n=r(612),i=r(9411),a=r(7718),o=r(1322);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.wyD)((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(i.delimiter).filter(Boolean)){let r=(0,i.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.neJ)(t,{name:e.name,minimumVersion:e.minimumVersion})}var d=r(535),h=r(6279),p=r(785);let m=globalThis;class w{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.no("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 n=new Set(s.data.map(e=>e.id)),i=s.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),f(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||n.has(r.id)||i.unshift(r);return{...s,data:i}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return P(this.withPendingCreations(t).map(e=>O(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return P(this.withPendingCreations(t).map(e=>O(e,r,this.platform)),e)}async create(e){let t=O(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(!E(e))throw new h.no("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let r=O(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 O(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.bind(r,1322));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,n){return this.runtime.run(e,t,r,s,n)}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.no("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",n){if(!this.runtime.startRun)throw new h.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,s,n)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new h.no("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.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new h.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async setNativeMode(e,t){if(!this.runtime.setNativeMode)throw new h.no("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.no("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativePermissionPreset(e,t)}async getNativeGoal(e){if(!this.runtime.getNativeGoal)throw new h.no("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.getNativeGoal(e)}async mutateNativeGoal(e,t){if(!this.runtime.mutateNativeGoal)throw new h.no("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.mutateNativeGoal(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new h.no("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.no("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.no("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.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new h.no("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.no("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.no("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.no("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.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new h.no("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?f(e,r):e});return[...[...this.pendingCreations.values()].filter(e=>!t.has(e.id)).sort((e,t)=>t.updated.localeCompare(e.updated)),...r]}}function f(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function N(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function g(){if(!m.__nativeRuntimeService){!function(){let e=[(0,i.join)((0,n.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(i.delimiter),r=e.filter(e=>(0,s.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(i.delimiter))}();let e=new o.XWE((0,p.kO)());m.__nativeRuntimeService=new w((0,h.v6)({runtimeFactory:e=>{let t=c({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:o.hix}),r=c({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,N("AGENT_CODEX_RUNTIME_ERROR",t),N("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,d.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.WH)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return m.__nativeRuntimeService}function O(e,t,r=process.platform){let{projectId:s,...n}=e;if(!e.cwd)return n;let a=v(e.cwd,r),o="win32"===r?i.win32.sep:i.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:v(e.description,r)})).filter(({path:e})=>a===e||a.startsWith(`${e}${o}`)).sort((e,t)=>t.path.length-e.path.length)[0];return u?{...n,projectId:u.project.id}:n}function v(e,t=process.platform){if("win32"!==t)return(0,i.resolve)(e);let r=i.win32.resolve(e),s=i.win32.parse(r).root;return(r.length>s.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function P(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function E(e){try{return"customer-agent"!==(0,h.Vu)(e).agentType}catch{return!1}}function T(e){if(e instanceof h.no)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(1322),n=r(6279),i=r(785);class a{constructor(){this.tasks=new s.vo4((0,i.kO)()),this.scheduler=new n.ST(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)),n=e.sessionId;n&&await t.getSessionStore().get(n)||(n=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:n})),await s().enqueue(n,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,6244,1322,1773,4621,7519],()=>r(3013));module.exports=s})();
1
+ "use strict";(()=>{var e={};e.id=8195,e.ids=[8195],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")},3013:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>w,patchFetch:()=>E,requestAsyncStorage:()=>m,routeModule:()=>h,serverHooks:()=>p,staticGenerationAsyncStorage:()=>d});var s={};r.r(s),r.d(s,{POST:()=>c});var i=r(7786),n=r(5042),a=r(2184),o=r(1890),u=r(7519),l=r(1614);async function c(e){try{let t=await e.json();if(!t.questionId||!t.answer)return o.NextResponse.json({error:"questionId and answer are required"},{status:400});let r=u.agentHost.answerQuestion(t.questionId,t.answer,t.selectedIndices);if(r||(r=await (0,l.NL)().answerQuestion(t.questionId,{answer:t.answer,selectedIndices:t.selectedIndices})),!r)return o.NextResponse.json({error:"Question not found or already answered"},{status:404});return o.NextResponse.json({ok:!0})}catch(e){return o.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,l.WW)(e)})}}let h=new i.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/agent/answer/route",pathname:"/api/agent/answer",filename:"route",bundlePath:"app/api/agent/answer/route"},resolvedPagePath:"/private/tmp/agentroam-npm-preview49.GAVmnh/source/packages/server/app/api/agent/answer/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:m,staticGenerationAsyncStorage:d,serverHooks:p}=h,w="/api/agent/answer/route";function E(){return(0,a.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:d})}},1614:(e,t,r)=>{r.d(t,{NL:()=>f,V_:()=>P,WW:()=>v});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 h=r(535),m=r(2847),d=r(785);let p=globalThis;class w{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 m.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),E(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 R(this.withPendingCreations(t).map(e=>g(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return R(this.withPendingCreations(t).map(e=>g(e,r,this.platform)),e)}async create(e){let t=g(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(!P(e))throw new m.RuntimeSessionError("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let r=g(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 g(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 m.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 m.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 m.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 m.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new m.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async setNativeMode(e,t){if(!this.runtime.setNativeMode)throw new m.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 m.RuntimeSessionError("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativePermissionPreset(e,t)}async getNativeGoal(e){if(!this.runtime.getNativeGoal)throw new m.RuntimeSessionError("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.getNativeGoal(e)}async mutateNativeGoal(e,t){if(!this.runtime.mutateNativeGoal)throw new m.RuntimeSessionError("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.mutateNativeGoal(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new m.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 m.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 m.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 m.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new m.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 m.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 m.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 m.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 m.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new m.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?E(e,r):e});return[...[...this.pendingCreations.values()].filter(e=>!t.has(e.id)).sort((e,t)=>t.updated.localeCompare(e.updated)),...r]}}function E(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function N(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function f(){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 w((0,m.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,N("AGENT_CODEX_RUNTIME_ERROR",t),N("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,h.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,m.createNativeRuntimeBrokerHostRuntime)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return p.__nativeRuntimeService}function g(e,t,r=process.platform){let{projectId:s,...i}=e;if(!e.cwd)return i;let a=O(e.cwd,r),o="win32"===r?n.win32.sep:n.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:O(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 O(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 R(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function P(e){try{return"customer-agent"!==(0,m.decodeUnifiedSessionId)(e).agentType}catch{return!1}}function v(e){if(e instanceof m.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(3013));module.exports=s})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+35e45c978e9f7cc7/node_modules/@anthropic-ai/claude-agent-sdk/package.json","../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+35e45c978e9f7cc7/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/binding.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/explain.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-x64.node","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/async-local-storage.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/package.json","../../../../../../../../package.json","../../../../../../../computer-use/package.json","../../../../../../../core/package.json","../../../../../../../native-runtime/package.json","../../../../../../node_modules/@anthropic-ai/claude-agent-sdk","../../../../../../node_modules/better-sqlite3","../../../../../../node_modules/next","../../../../../../package.json","../../../../../package.json","../../../../chunks/1322.js","../../../../chunks/1773.js","../../../../chunks/4621.js","../../../../chunks/6244.js","../../../../chunks/6703.js","../../../../chunks/732.js","../../../../chunks/7519.js","../../../../chunks/8375.js","../../../../webpack-runtime.js"]}
1
+ {"version":1,"files":["../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+c37f1ebc82a0b1f5/node_modules/@anthropic-ai/claude-agent-sdk/package.json","../../../../../../../../node_modules/.bun/@anthropic-ai+claude-agent-sdk@0.3.259+c37f1ebc82a0b1f5/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/client.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/error-interceptor.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/client.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/index.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/client/utils.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/auth.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/bodySerializer.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/params.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/pathSerializer.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/serverSentEvents.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/core/utils.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/sdk.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/gen/types.gen.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/index.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/process.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/dist/server.js","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/@opencode-ai/sdk/package.json","../../../../../../../../node_modules/.bun/@opencode-ai+sdk@1.18.27/node_modules/cross-spawn","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/binding.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/explain.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/darwin-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linux-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/linuxmusl-x64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-arm64.node","../../../../../../../../node_modules/.bun/better-sqlite3@13.0.3/node_modules/better-sqlite3/prebuilds/win32-x64.node","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/package.json","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/path-key","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/shebang-command","../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/which","../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js","../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js","../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/package.json","../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/async-local-storage.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/package.json","../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.js","../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/package.json","../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.js","../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/package.json","../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-regex","../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/package.json","../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/isexe","../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/package.json","../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/which.js","../../../../../../../../package.json","../../../../../../../computer-use/dist/index.js","../../../../../../../computer-use/package.json","../../../../../../../core/dist/index.js","../../../../../../../core/node_modules/better-sqlite3","../../../../../../../core/package.json","../../../../../../../native-runtime/dist/index.js","../../../../../../../native-runtime/node_modules/@agent/core","../../../../../../../native-runtime/node_modules/@anthropic-ai/claude-agent-sdk","../../../../../../../native-runtime/node_modules/@opencode-ai/sdk","../../../../../../../native-runtime/package.json","../../../../../../node_modules/@agent/computer-use","../../../../../../node_modules/@agent/core","../../../../../../node_modules/@agent/native-runtime","../../../../../../node_modules/next","../../../../../../package.json","../../../../../package.json","../../../../chunks/4621.js","../../../../chunks/6703.js","../../../../chunks/732.js","../../../../chunks/7519.js","../../../../chunks/8375.js","../../../../webpack-runtime.js"]}
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=3768,e.ids=[3768],e.modules={7728:e=>{e.exports=require("@anthropic-ai/claude-agent-sdk")},5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},4492:e=>{e.exports=require("node:stream")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},5164:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>R,patchFetch:()=>A,requestAsyncStorage:()=>T,routeModule:()=>P,serverHooks:()=>_,staticGenerationAsyncStorage:()=>E});var n={};r.r(n),r.d(n,{GET:()=>v,POST:()=>O,dynamic:()=>g});var i=r(7786),s=r(5042),a=r(2184),o=r(1890),u=r(7718),l=r(3977),c=r(9411);let d=(0,r(5881).promisify)(u.execFile);async function p(){let e=process.env.AGENTROAM_CLI_PATH;for(let t of e?[e]:[(0,c.resolve)(process.cwd(),"../cli/bin/agentroam.mjs"),(0,c.resolve)(process.cwd(),"packages/cli/bin/agentroam.mjs")])if((0,c.isAbsolute)(t))try{return await (0,l.access)(t),t}catch{}throw Error("未找到 AgentRoam 管理工具,请更新本机安装。")}let h=null;async function m(e=!1){if("darwin"!==process.platform)return{state:"unsupported",configured:!1,autoStart:!1,daemonReachable:!1,message:"当前系统暂不支持 Codex 桌面共享配置。"};let t=async()=>{let t=[await p(),"codex-desktop",e?"--repair":"--status"];process.env.AGENTROAM_DATA_DIR&&t.push("--data-dir",process.env.AGENTROAM_DATA_DIR);let{stdout:r}=await d(process.execPath,t,{env:process.env,timeout:45e3,maxBuffer:1048576}),n=JSON.parse(r);if(!["shared","independent","failed","stopped","not-installed","unsupported"].includes(n.state)||"string"!=typeof n.message||[n.configured,n.autoStart,n.daemonReachable].some(e=>"boolean"!=typeof e))throw Error("共享状态响应无效,请更新管理工具。");return n};return e?h??=t().finally(()=>{h=null}):t()}var f=r(1614);let g="force-dynamic",w=(e,t=200)=>o.NextResponse.json(e,{status:t,headers:{"Cache-Control":"no-store"}});async function N(e=!1){try{let[t,r]=await Promise.all([m(e),(0,f.NL)().health()]),n=r.find(e=>"codex"===e.agentType);return w(function(e,t,r){let{backendEndpoint:n,...i}=e,s={...i,runtimeMode:t};return["unsupported","not-installed"].includes(e.state)?s:"standalone"===t?{...s,state:"independent",message:"AgentRoam 正在使用独立后台。修复配置后,请在任务结束时重启 AgentRoam 和 Codex。"}:"desktop"!==t||n&&r===n?t?s:{...s,state:"failed",message:"AgentRoam 的 Codex 后台尚未连接。请重试或修复共享连接。"}:{...s,state:"failed",message:"AgentRoam 当前连接的后台与默认共享后台不一致。请在任务结束后修复连接并重新打开。"}}(t,n?.connectionMode??null,n?.connectionEndpoint))}catch{return w({error:{message:"无法检查或修复共享后台,请确认本机 AgentRoam 管理工具可用后重试。"}},503)}}async function v(){return N()}async function O(e){let t=e.headers.get("origin"),r="1"===process.env.AGENT_TRUST_TUNNEL_PROXY&&"https"===e.headers.get("x-forwarded-proto")?"https:":new URL(e.url).protocol;return t&&t!==new URL(e.url).origin&&t!==`${r}//${e.headers.get("host")}`?w({error:{message:"不允许跨站修复共享连接。"}},403):N(!0)}let P=new i.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/agent/codex-sharing/route",pathname:"/api/agent/codex-sharing",filename:"route",bundlePath:"app/api/agent/codex-sharing/route"},resolvedPagePath:"/private/tmp/agentroam-npm-preview49.GAVmnh/source/packages/server/app/api/agent/codex-sharing/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:T,staticGenerationAsyncStorage:E,serverHooks:_}=P,R="/api/agent/codex-sharing/route";function A(){return(0,a.patchFetch)({serverHooks:_,staticGenerationAsyncStorage:E})}},535:(e,t,r)=>{r.d(t,{L:()=>a});var n=r(1322),i=r(785);let s=!1;function a(){let e=(0,n.Qfc)();if(e)return e;let t=(0,n.qZ_)({dir:(0,i.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return s||(s=!0,t.info("server logger attached",{dir:t.dir,pid:process.pid})),t}},1614:(e,t,r)=>{r.d(t,{NL:()=>N,V_:()=>T,WW:()=>E});var n=r(7561),i=r(612),s=r(9411),a=r(7718),o=r(1322);function u(e){if(!e.trim())return!1;try{return(0,n.accessSync)(e,n.constants.X_OK),!0}catch{return!1}}function l(e){try{return(0,o.wyD)((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 n=u(r);t.push({source:"pin",path:r,executable:n,version:n?l(r):void 0,error:n?void 0:`${e.environmentVariable} "${r}" is not executable`})}let n=function(e){for(let t of(process.env.PATH??"").split(s.delimiter).filter(Boolean)){let r=(0,s.resolve)(t,e);if(u(r))return r}}(e.name);return n&&n!==r&&t.push({source:"path",path:n,executable:!0,version:l(n)}),(0,o.neJ)(t,{name:e.name,minimumVersion:e.minimumVersion})}var d=r(535),p=r(6279),h=r(785);let m=globalThis;class f{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 p.no("Native workspace import is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.importWorkspace(e,t,r)}async listWorkspaceSessions(e,t,r){let n=await this.runtime.listWorkspaceSessions(e,t,r);if(r?.cursor)return n;let i=new Set(n.data.map(e=>e.id)),s=n.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),g(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||i.has(r.id)||s.unshift(r);return{...n,data:s}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return P(this.withPendingCreations(t).map(e=>v(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return P(this.withPendingCreations(t).map(e=>v(e,r,this.platform)),e)}async create(e){let t=v(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(!T(e))throw new p.no("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let r=v(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(n){let r=this.pendingCreations.get(e);if(!r)throw n;return t?{...r,messages:[],events:[],history:{nextCursor:null,hasMore:!1,pageSize:0,totalItems:0}}:{...r,messages:[],events:[]}}return v(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:n}=await Promise.resolve().then(r.bind(r,1322));return n(e,t.messages)}getSessionToolResult(e,t){return this.runtime.getSessionToolResult(e,t)}getSessionWatchPath(e){return this.runtime.getSessionWatchPath(e)}run(e,t,r,n,i){return this.runtime.run(e,t,r,n,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 p.no("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,n="web",i){if(!this.runtime.startRun)throw new p.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,n,i)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new p.no("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 p.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new p.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async setNativeMode(e,t){if(!this.runtime.setNativeMode)throw new p.no("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativeMode(e,t)}async setNativePermissionPreset(e,t){if(!this.runtime.setNativePermissionPreset)throw new p.no("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativePermissionPreset(e,t)}async getNativeGoal(e){if(!this.runtime.getNativeGoal)throw new p.no("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.getNativeGoal(e)}async mutateNativeGoal(e,t){if(!this.runtime.mutateNativeGoal)throw new p.no("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.mutateNativeGoal(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new p.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.handoff(e,t)}async getGoals(e,t="web"){if(!this.runtime.getGoals)throw new p.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.getGoals(e,t)}async enqueueGoal(e,t,r,n="web"){if(!this.runtime.enqueueGoal)throw new p.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueGoal(e,t,r,n)}async reorderGoals(e,t){if(!this.runtime.reorderGoals)throw new p.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new p.no("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 p.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueMessage(e,t,r)}async reorderMessages(e,t){if(!this.runtime.reorderMessages)throw new p.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderMessages(e,t)}async updateMessage(e,t,r,n){if(!this.runtime.updateMessage)throw new p.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.updateMessage(e,t,r,n)}async cancelMessage(e,t){if(!this.runtime.cancelMessage)throw new p.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new p.no("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?g(e,r):e});return[...[...this.pendingCreations.values()].filter(e=>!t.has(e.id)).sort((e,t)=>t.updated.localeCompare(e.updated)),...r]}}function g(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function w(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function N(){if(!m.__nativeRuntimeService){!function(){let e=[(0,s.join)((0,i.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(s.delimiter),r=e.filter(e=>(0,n.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(s.delimiter))}();let e=new o.XWE((0,h.kO)());m.__nativeRuntimeService=new f((0,p.v6)({runtimeFactory:e=>{let t=c({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:o.hix}),r=c({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,w("AGENT_CODEX_RUNTIME_ERROR",t),w("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,d.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,p.WH)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return m.__nativeRuntimeService}function v(e,t,r=process.platform){let{projectId:n,...i}=e;if(!e.cwd)return i;let a=O(e.cwd,r),o="win32"===r?s.win32.sep:s.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:O(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 O(e,t=process.platform){if("win32"!==t)return(0,s.resolve)(e);let r=s.win32.resolve(e),n=s.win32.parse(r).root;return(r.length>n.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function P(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function T(e){try{return"customer-agent"!==(0,p.Vu)(e).agentType}catch{return!1}}function E(e){if(e instanceof p.no)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}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703,6244,1322,1773],()=>r(5164));module.exports=n})();
1
+ "use strict";(()=>{var e={};e.id=3768,e.ids=[3768],e.modules={1636:e=>{e.exports=require("@agent/core")},2847:e=>{e.exports=require("@agent/native-runtime")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},5881:e=>{e.exports=require("node:util")},5164:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>_,patchFetch:()=>A,requestAsyncStorage:()=>w,routeModule:()=>O,serverHooks:()=>P,staticGenerationAsyncStorage:()=>T});var n={};r.r(n),r.d(n,{GET:()=>v,POST:()=>N,dynamic:()=>f});var i=r(7786),s=r(5042),a=r(2184),o=r(1890),u=r(7718),l=r(3977),c=r(9411);let m=(0,r(5881).promisify)(u.execFile);async function d(){let e=process.env.AGENTROAM_CLI_PATH;for(let t of e?[e]:[(0,c.resolve)(process.cwd(),"../cli/bin/agentroam.mjs"),(0,c.resolve)(process.cwd(),"packages/cli/bin/agentroam.mjs")])if((0,c.isAbsolute)(t))try{return await (0,l.access)(t),t}catch{}throw Error("未找到 AgentRoam 管理工具,请更新本机安装。")}let p=null;async function h(e=!1){if("darwin"!==process.platform)return{state:"unsupported",configured:!1,autoStart:!1,daemonReachable:!1,message:"当前系统暂不支持 Codex 桌面共享配置。"};let t=async()=>{let t=[await d(),"codex-desktop",e?"--repair":"--status"];process.env.AGENTROAM_DATA_DIR&&t.push("--data-dir",process.env.AGENTROAM_DATA_DIR);let{stdout:r}=await m(process.execPath,t,{env:process.env,timeout:45e3,maxBuffer:1048576}),n=JSON.parse(r);if(!["shared","independent","failed","stopped","not-installed","unsupported"].includes(n.state)||"string"!=typeof n.message||[n.configured,n.autoStart,n.daemonReachable].some(e=>"boolean"!=typeof e))throw Error("共享状态响应无效,请更新管理工具。");return n};return e?p??=t().finally(()=>{p=null}):t()}var g=r(1614);let f="force-dynamic",E=(e,t=200)=>o.NextResponse.json(e,{status:t,headers:{"Cache-Control":"no-store"}});async function R(e=!1){try{let[t,r]=await Promise.all([h(e),(0,g.NL)().health()]),n=r.find(e=>"codex"===e.agentType);return E(function(e,t,r){let{backendEndpoint:n,...i}=e,s={...i,runtimeMode:t};return["unsupported","not-installed"].includes(e.state)?s:"standalone"===t?{...s,state:"independent",message:"AgentRoam 正在使用独立后台。修复配置后,请在任务结束时重启 AgentRoam 和 Codex。"}:"desktop"!==t||n&&r===n?t?s:{...s,state:"failed",message:"AgentRoam 的 Codex 后台尚未连接。请重试或修复共享连接。"}:{...s,state:"failed",message:"AgentRoam 当前连接的后台与默认共享后台不一致。请在任务结束后修复连接并重新打开。"}}(t,n?.connectionMode??null,n?.connectionEndpoint))}catch{return E({error:{message:"无法检查或修复共享后台,请确认本机 AgentRoam 管理工具可用后重试。"}},503)}}async function v(){return R()}async function N(e){let t=e.headers.get("origin"),r="1"===process.env.AGENT_TRUST_TUNNEL_PROXY&&"https"===e.headers.get("x-forwarded-proto")?"https:":new URL(e.url).protocol;return t&&t!==new URL(e.url).origin&&t!==`${r}//${e.headers.get("host")}`?E({error:{message:"不允许跨站修复共享连接。"}},403):R(!0)}let O=new i.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/agent/codex-sharing/route",pathname:"/api/agent/codex-sharing",filename:"route",bundlePath:"app/api/agent/codex-sharing/route"},resolvedPagePath:"/private/tmp/agentroam-npm-preview49.GAVmnh/source/packages/server/app/api/agent/codex-sharing/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:w,staticGenerationAsyncStorage:T,serverHooks:P}=O,_="/api/agent/codex-sharing/route";function A(){return(0,a.patchFetch)({serverHooks:P,staticGenerationAsyncStorage:T})}},535:(e,t,r)=>{r.d(t,{L:()=>a});var n=r(1636),i=r(785);let s=!1;function a(){let e=(0,n.getGlobalLogger)();if(e)return e;let t=(0,n.installGlobalLogging)({dir:(0,i.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return s||(s=!0,t.info("server logger attached",{dir:t.dir,pid:process.pid})),t}},1614:(e,t,r)=>{r.d(t,{NL:()=>R,V_:()=>w,WW:()=>T});var n=r(7561),i=r(612),s=r(9411),a=r(7718),o=r(1636);function u(e){if(!e.trim())return!1;try{return(0,n.accessSync)(e,n.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 n=u(r);t.push({source:"pin",path:r,executable:n,version:n?l(r):void 0,error:n?void 0:`${e.environmentVariable} "${r}" is not executable`})}let n=function(e){for(let t of(process.env.PATH??"").split(s.delimiter).filter(Boolean)){let r=(0,s.resolve)(t,e);if(u(r))return r}}(e.name);return n&&n!==r&&t.push({source:"path",path:n,executable:!0,version:l(n)}),(0,o.selectExternalCli)(t,{name:e.name,minimumVersion:e.minimumVersion})}var m=r(535),d=r(2847),p=r(785);let h=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 d.RuntimeSessionError("Native workspace import is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.importWorkspace(e,t,r)}async listWorkspaceSessions(e,t,r){let n=await this.runtime.listWorkspaceSessions(e,t,r);if(r?.cursor)return n;let i=new Set(n.data.map(e=>e.id)),s=n.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),f(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||i.has(r.id)||s.unshift(r);return{...n,data:s}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return O(this.withPendingCreations(t).map(e=>v(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return O(this.withPendingCreations(t).map(e=>v(e,r,this.platform)),e)}async create(e){let t=v(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(!w(e))throw new d.RuntimeSessionError("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let r=v(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(n){let r=this.pendingCreations.get(e);if(!r)throw n;return t?{...r,messages:[],events:[],history:{nextCursor:null,hasMore:!1,pageSize:0,totalItems:0}}:{...r,messages:[],events:[]}}return v(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:n}=await Promise.resolve().then(r.t.bind(r,1636,23));return n(e,t.messages)}getSessionToolResult(e,t){return this.runtime.getSessionToolResult(e,t)}getSessionWatchPath(e){return this.runtime.getSessionWatchPath(e)}run(e,t,r,n,i){return this.runtime.run(e,t,r,n,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 d.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,n="web",i){if(!this.runtime.startRun)throw new d.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,n,i)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new d.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 d.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new d.RuntimeSessionError("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async setNativeMode(e,t){if(!this.runtime.setNativeMode)throw new d.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 d.RuntimeSessionError("Native permission presets are unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.setNativePermissionPreset(e,t)}async getNativeGoal(e){if(!this.runtime.getNativeGoal)throw new d.RuntimeSessionError("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.getNativeGoal(e)}async mutateNativeGoal(e,t){if(!this.runtime.mutateNativeGoal)throw new d.RuntimeSessionError("此运行时未提供原生目标","OPERATION_NOT_SUPPORTED");return this.runtime.mutateNativeGoal(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new d.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 d.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.getGoals(e,t)}async enqueueGoal(e,t,r,n="web"){if(!this.runtime.enqueueGoal)throw new d.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueGoal(e,t,r,n)}async reorderGoals(e,t){if(!this.runtime.reorderGoals)throw new d.RuntimeSessionError("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new d.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 d.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 d.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderMessages(e,t)}async updateMessage(e,t,r,n){if(!this.runtime.updateMessage)throw new d.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.updateMessage(e,t,r,n)}async cancelMessage(e,t){if(!this.runtime.cancelMessage)throw new d.RuntimeSessionError("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new d.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?f(e,r):e});return[...[...this.pendingCreations.values()].filter(e=>!t.has(e.id)).sort((e,t)=>t.updated.localeCompare(e.updated)),...r]}}function f(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function E(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function R(){if(!h.__nativeRuntimeService){!function(){let e=[(0,s.join)((0,i.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(s.delimiter),r=e.filter(e=>(0,n.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(s.delimiter))}();let e=new o.SQLiteProjectStore((0,p.kO)());h.__nativeRuntimeService=new g((0,d.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,E("AGENT_CODEX_RUNTIME_ERROR",t),E("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,d.createNativeRuntimeBrokerHostRuntime)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return h.__nativeRuntimeService}function v(e,t,r=process.platform){let{projectId:n,...i}=e;if(!e.cwd)return i;let a=N(e.cwd,r),o="win32"===r?s.win32.sep:s.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:N(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 N(e,t=process.platform){if("win32"!==t)return(0,s.resolve)(e);let r=s.win32.resolve(e),n=s.win32.parse(r).root;return(r.length>n.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function O(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function w(e){try{return"customer-agent"!==(0,d.decodeUnifiedSessionId)(e).agentType}catch{return!1}}function T(e){if(e instanceof d.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}},785:(e,t,r)=>{r.d(t,{ME:()=>o,kO:()=>a,sr:()=>u});var n=r(9411);let i=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=i){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function a(){return s()}function o(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let i=e.AGENTROAM_DATA_DIR?.trim();return i?(0,n.resolve)(i,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=i){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,a())}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(5164));module.exports=n})();