agentroam-runtime-darwin-arm64 0.2.0-preview.83 → 0.2.0-preview.84
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.
- package/manifest.json +2 -2
- package/package.json +1 -1
- package/runtime/.next/BUILD_ID +1 -1
- package/runtime/.next/app-build-manifest.json +14 -14
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +4 -4
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/required-server-files.json +1 -1
- package/runtime/.next/server/app/_not-found/page.js +1 -1
- package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app/_not-found.html +1 -1
- package/runtime/.next/server/app/_not-found.rsc +1 -1
- package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
- package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
- package/runtime/.next/server/app/api/agent/composer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
- package/runtime/.next/server/app/api/agent/model/route.js +1 -1
- package/runtime/.next/server/app/api/agent/models/route.js +1 -1
- package/runtime/.next/server/app/api/agent/run/route.js +1 -1
- package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
- package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/stream/route.js +3 -3
- package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
- package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
- package/runtime/.next/server/app/api/business/route.js +1 -1
- package/runtime/.next/server/app/api/calendar/route.js +2 -2
- package/runtime/.next/server/app/api/client-logs/route.js +1 -1
- package/runtime/.next/server/app/api/collaboration/route.js +2 -2
- package/runtime/.next/server/app/api/engine-threads/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
- package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
- package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
- package/runtime/.next/server/app/api/internal/todo-bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/internal/todo-mcp/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers.body +1 -1
- package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
- package/runtime/.next/server/app/api/memory/route.js +1 -1
- package/runtime/.next/server/app/api/messaging/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/[id]/ack/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/stream/route.js +2 -2
- package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
- package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/projects/check/route.js +1 -1
- package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
- package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
- package/runtime/.next/server/app/api/projects/route.js +1 -1
- package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/unsubscribe/route.js +3 -3
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid.body +1 -1
- package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
- package/runtime/.next/server/app/api/session-images/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/session-views/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
- package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/settings/route.js +1 -1
- package/runtime/.next/server/app/api/skills/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/commands/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/executions/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/todos/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
- package/runtime/.next/server/app/api/tools/route.js +1 -1
- package/runtime/.next/server/app/api/update/check/route.js +1 -1
- package/runtime/.next/server/app/api/update/install/route.js +1 -1
- package/runtime/.next/server/app/api/update/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
- package/runtime/.next/server/app/api/workspace-changes/route.js +1 -1
- package/runtime/.next/server/app/web/page.js +4 -4
- package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app-paths-manifest.json +45 -45
- package/runtime/.next/server/chunks/5303.js +2 -2
- package/runtime/.next/server/middleware-build-manifest.js +1 -1
- package/runtime/.next/server/pages/404.html +1 -1
- package/runtime/.next/server/pages/500.html +1 -1
- package/runtime/.next/server/pages-manifest.json +1 -1
- package/runtime/.next/server/server-reference-manifest.json +1 -1
- package/runtime/.next/static/chunks/{183-5019797f0b42210b.js → 183-9f47bd28d757e44e.js} +1 -1
- package/runtime/.next/static/chunks/app/web/{error-828d278147a0619d.js → error-6ca9afc69e38a945.js} +1 -1
- package/runtime/.next/static/chunks/app/web/layout-b1d0dc229e4be45a.js +1 -0
- package/runtime/.next/static/chunks/app/web/{page-8adf166584b0088e.js → page-36f160284a0d79fc.js} +1 -1
- package/runtime/.next/static/chunks/main-app-9e9b12e00c3ae35e.js +1 -0
- package/runtime/.next/static/css/0e673318adedd54a.css +1 -0
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
- package/runtime/node_modules/.package-lock.json +118 -118
- package/runtime/node_modules/@agent/native-runtime/dist/index.js +147 -32
- package/runtime/node_modules/sanitize-html/node_modules/postcss/README.md +1 -1
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.js +1 -3
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/parser.js +7 -3
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/processor.js +1 -1
- package/runtime/node_modules/sanitize-html/node_modules/postcss/package.json +2 -2
- package/runtime/package-lock.json +135 -135
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/assets/{AIHubView-HV2FIroL.js → AIHubView-DKUDkftP.js} +1 -1
- package/runtime/webapp/dist/assets/{AgentManager-C4zPGI-Y.js → AgentManager-DBsl9Tc-.js} +1 -1
- package/runtime/webapp/dist/assets/{AiHubPane-CEjQjdqT.js → AiHubPane-Cq9jov_Y.js} +1 -1
- package/runtime/webapp/dist/assets/{App-CS2wVlfV.js → App-Cw_UxB1o.js} +4 -4
- package/runtime/webapp/dist/assets/{BrowserLivePanel-BwtEM-IV.js → BrowserLivePanel-D4-GJ_9P.js} +1 -1
- package/runtime/webapp/dist/assets/{CalendarPage-DY8pZK7d.js → CalendarPage-X9TGiQFj.js} +1 -1
- package/runtime/webapp/dist/assets/{CalendarView-CuBzp-g8.js → CalendarView-HvfBGuRx.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationCreateDialog-DsXkxAd1.js → CollaborationCreateDialog-jp-Nu0XU.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationDashboard-CvE5vaOh.js → CollaborationDashboard-olO_GjsT.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationPage-Cjeo60S0.js → CollaborationPage-W8naHk0B.js} +1 -1
- package/runtime/webapp/dist/assets/{FilePreview-CyXKv1Cu.js → FilePreview-DI0rubgD.js} +3 -3
- package/runtime/webapp/dist/assets/{FileTree-DNI9VhEp.js → FileTree-rE46D8RD.js} +1 -1
- package/runtime/webapp/dist/assets/{FileWorkspaceDrawer-DRluuYWn.js → FileWorkspaceDrawer-wPD_Fs04.js} +1 -1
- package/runtime/webapp/dist/assets/{FlowStudioPane-CKlzxza_.js → FlowStudioPane-BILTrSF5.js} +1 -1
- package/runtime/webapp/dist/assets/{HostProjectPicker-CjlxN2ct.js → HostProjectPicker-0CHU4mlN.js} +1 -1
- package/runtime/webapp/dist/assets/{LSPServerList-BbAS_sm-.js → LSPServerList-T8zw5SN-.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-DkVUlKEJ.js → MCPServerList-CQNCdDdm.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-Ywl80xth.js → MemoryViewer-mQsBEa17.js} +1 -1
- package/runtime/webapp/dist/assets/{NewSessionWindow-B4H26X5c.js → NewSessionWindow-CCQJHuTO.js} +1 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-aaPt6Fto.css +1 -0
- package/runtime/webapp/dist/assets/{RemoteDesktopPage-B4q2I23i.js → RemoteDesktopPage-CSrZ5Ftv.js} +1 -1
- package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-B_cCKi7K.js → RemoteDesktopTabBridge-jgSmDncq.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-Cz8_524L.js → RunningSessionsIcon-Dj0GAkqr.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-DXPSvNsY.js → SessionDashboard-kC_8_Bza.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-7BjKdfN8.js → SessionDashboardBridge-BqLN9MBj.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-C78O9_ho.js → SettingsPanel-CqQv2eK-.js} +1 -1
- package/runtime/webapp/dist/assets/{SkillManager-BdkBUxhH.js → SkillManager-Bu2BSH0G.js} +1 -1
- package/runtime/webapp/dist/assets/{TaskPaneTerminal-B2WKBysj.js → TaskPaneTerminal-BdxQYNc6.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-CxGcN85G.js → TerminalPane-BvhhLZN1.js} +1 -1
- package/runtime/webapp/dist/assets/TodoPage-hbsap1E8.js +1 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DFIXyU71.js → abnfDiagram-VCTEODGH-C_PdiEVZ.js} +1 -1
- package/runtime/webapp/dist/assets/agentroam-welcome-DTi8uo_x.webp +0 -0
- package/runtime/webapp/dist/assets/agentroam-welcome-speaking-Bjq6llMN.webp +0 -0
- package/runtime/webapp/dist/assets/{arc-CLpaLEla.js → arc-CWNpomsA.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-Df8T0lx0.js → architectureDiagram-5GKGNRK7-BoOjl_r_.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-jCoyPZhV.js → blockDiagram-I7D4REHJ-vJ_8Ek3u.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-DsZuTCuo.js → c4Diagram-7LVT6UL2-DNA4gWKh.js} +1 -1
- package/runtime/webapp/dist/assets/{calendar-days-BIRmYMrW.js → calendar-days-D6jkCzJk.js} +1 -1
- package/runtime/webapp/dist/assets/channel-ComjzpL-.js +1 -0
- package/runtime/webapp/dist/assets/{check-DCU8YHqr.js → check-Dg_LqC82.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-down-BUEiUZA7.js → chevron-down-BEj7mlHA.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-right-B_ITnckH.js → chevron-right-BJjvR4c0.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-BEZp3wuG.js → chunk-2Q5K7J3B-CZDhxDbY.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-BGGDhFwD.js → chunk-5VM5RSS4-BnlDM5br.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-Mqzm4ODE.js → chunk-F27PBJKO-CB7O8_6v.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-DtnGgUQJ.js → chunk-IMKFNOWR-Bu3AW8DR.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-By3kXE4y.js → chunk-JWPE2WC7-CBQw1xgF.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-BTHuMHN1.js → chunk-POPQ4Y6H-Bun3CGx_.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-BeWH1pvB.js → chunk-SVP7TREG-XwWHVyss.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-oiekJTZh.js → chunk-TICWLB2K-B7j4XyQE.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-B7CKqUBs.js → chunk-XXDRQBXY-C4ccrA1p.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-CfdRqn0-.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-CfdRqn0-.js +1 -0
- package/runtime/webapp/dist/assets/{client-BpqlZTm2.js → client-dnf9nxPX.js} +1 -1
- package/runtime/webapp/dist/assets/{codeSyntax-GjP28nDI.js → codeSyntax-BLQm8ta3.js} +1 -1
- package/runtime/webapp/dist/assets/{collaboration-CYS2Soeh.js → collaboration-CJnVMp4H.js} +1 -1
- package/runtime/webapp/dist/assets/{composer-file-routing-DHdpFYk8.js → composer-file-routing-DX7AUQpe.js} +1 -1
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-BmhhO76e.js → cose-bilkent-JH36ORCC-610OTEmf.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-BesIxLGS.js → cynefin-OW5HDTMX-CM8PeVI5.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-DdF6XhwX.js → cynefinDiagram-5FMLGOSQ-BY4mC_Y_.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-CxUfRr5w.js → dagre-GXQ25YYZ-CW6OZxKS.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-zSD7nygh.js → diagram-S7CK7UJ4-BaPMOaHo.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-CgirUu7t.js → diagram-UQ7AKVKN-BWIQcSBB.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-CkI9kDpP.js → diagram-VSXAHHWV-BwkS6jsR.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-ZfbGJBGR.js → diagram-VX7I27RA-B7rXbpbO.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-CA44IJP4.js → diagram-Z3DM3KII-CrWfyJCt.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CVwSxyot.js → ebnfDiagram-PWID7BFC-DrpyBRGI.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-DwjlVHEs.js → erDiagram-RLTQ6QDP-D0lubMB8.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-Dj25tuty.js → file-types-ovF7t8nV.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-CEt0pwA8.js → flowDiagram-HODETNUW-mXqeEtep.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-CNsj7gWS.js → ganttDiagram-EL5Y4UJY-DgaN-2yI.js} +1 -1
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-ERbll1_Q.js → gitGraphDiagram-WWUBYQGX-DadHzOkE.js} +1 -1
- package/runtime/webapp/dist/assets/{history-DTS97eAH.js → history-2RoN6nWx.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-BmlwMe18.js → image-plus-CXCEGNi1.js} +1 -1
- package/runtime/webapp/dist/assets/{index-C30NoLsn.js → index-CpGyXlyq.js} +55 -55
- package/runtime/webapp/dist/assets/index-DVbDWmLY.css +1 -0
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-BiMEmJW5.js → infoDiagram-27XIBGKW-BPI3rG8e.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-CPlJXmF2.js → ishikawaDiagram-5VMMS53U-Cwhwp05P.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-DJJ-qvlw.js → journeyDiagram-3NMN7TZE-QeAIq98x.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-PHmavvDJ.js → kanban-definition-UXKFOSKX-BIV4KQ7w.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-DH5OfcVL.js → layout-DKTcc92n.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-DQek-QDQ.js → linear-CpgQ-vzl.js} +1 -1
- package/runtime/webapp/dist/assets/{list-todo-DULblcsU.js → list-todo-D0DdvDdC.js} +1 -1
- package/runtime/webapp/dist/assets/{locate-fixed-B3zScPI-.js → locate-fixed-PoSWErYt.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-D6eHnLLU.js → mermaid.core-DPgekxsA.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-D0TkZusX.js → mindmap-definition-YA3MSWOX-DScKRrns.js} +1 -1
- package/runtime/webapp/dist/assets/{mobileViewport-BhIxH-zP.js → mobileViewport-DoX18BIb.js} +1 -1
- package/runtime/webapp/dist/assets/{new-session-window-bxVA-U3Y.js → new-session-window-DUUfKFZL.js} +6 -6
- package/runtime/webapp/dist/assets/{page-DyPXAvyj.js → page-DLgrc2Gr.js} +3 -3
- package/runtime/webapp/dist/assets/{pause-C793N3J1.js → pause-MzDWMIVk.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-DMIjPBzH.js → pegDiagram-XKGWAZYB-CqPnfn9Z.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-DctF47JZ.js → pieDiagram-E7YTZNPT-Dj4dMQpn.js} +1 -1
- package/runtime/webapp/dist/assets/{pin-BLVakDSL.js → pin-eP6N3HGu.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-JnwbWWwT.js → quadrantDiagram-AXDQQJYC-C0OXtsjw.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-DcpHMNVP.js → railroadDiagram-O6MQD6OU-CxmJTI75.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-C-fRbIOI.js → requirementDiagram-BXWQKSXE-D27ZD0hS.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-CyZK_Om1.js → rotate-ccw-Dd67-fEX.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-ChAt9mcI.js → rotate-cw-bCvV5qtp.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-Sb34Y9Ep.js → sankeyDiagram-P5KCCOFB-BYXYPMbk.js} +1 -1
- package/runtime/webapp/dist/assets/{send-DlrISC4K.js → send-C3-_dAtW.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-BeHoOpkJ.js → sequenceDiagram-WJ2MYXX4-DjCzHsAJ.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-D1JY1ka0.js → session-dashboard-B5GjyN-j.js} +1 -1
- package/runtime/webapp/dist/assets/{session-tree-Q-jABJNB.js → session-tree-gH5384IE.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-Bzd1i1OQ.js → shield-check-BH6xSJDa.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-DspvE2eQ.js → sizeCapture-INFHLROL-C3V_IQDa.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-oBIvmRy9.js → stateDiagram-D77RDMKH-SIlV9QsN.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DBVpokaR.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-CAdrbVmI.js → swimlanes-42K2YHIH-B_lgpM0k.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CBmcZlgw.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-BtWjc4KI.js → timeline-definition-24CTP7MA-CTMVRkSU.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-DwFoTvHX.js → trash-2-BjV9I5RI.js} +1 -1
- package/runtime/webapp/dist/assets/{types-COzZsLPY.js → types-BB9G1ZRH.js} +1 -1
- package/runtime/webapp/dist/assets/{use-session-activity-BRhj0V5U.js → use-session-activity-CXZ-jSdd.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-Be4H6PYr.js → vennDiagram-4TSXK5OY-CGMGxBWQ.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-COVxCAu8.js → wardleyDiagram-VM6X3IG4-B9lm4S79.js} +1 -1
- package/runtime/webapp/dist/assets/{web-Qg6ZVe1T.js → web-BZLTjbMF.js} +1 -1
- package/runtime/webapp/dist/assets/{web-BdMHTzmo.js → web-DBwe40Mg.js} +1 -1
- package/runtime/webapp/dist/assets/{x-CoIXF2eL.js → x-C0vSZPZg.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-J_S9eMK9.js → xychartDiagram-S5SC5T6Z-D4dVIGis.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-C10hb0zX.js → zoom-out-CwT1ni3i.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/.next/static/chunks/app/web/layout-1127176e7e88e395.js +0 -1
- package/runtime/.next/static/chunks/main-app-07d67f2d4e96ecb8.js +0 -1
- package/runtime/.next/static/css/645d4c94ea111811.css +0 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-DOLG1XEp.css +0 -1
- package/runtime/webapp/dist/assets/TodoPage-CdzjZR2O.js +0 -1
- package/runtime/webapp/dist/assets/channel-0IyV-PVi.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-Dm5zwUmQ.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-Dm5zwUmQ.js +0 -1
- package/runtime/webapp/dist/assets/index-COFV-DUC.css +0 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DXD2F0in.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CXpNu-5Z.js +0 -8
- /package/runtime/.next/static/{XwGGZtJQeU5VoGqV-1dyI → edQT7mZJvA1tWdwiMLtSI}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{XwGGZtJQeU5VoGqV-1dyI → edQT7mZJvA1tWdwiMLtSI}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=6936,e.ids=[6936],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},3977:e=>{e.exports=require("node:fs/promises")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=6936,e.ids=[6936],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},3977:e=>{e.exports=require("node:fs/promises")},9411:e=>{e.exports=require("node:path")},7924:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>f,patchFetch:()=>w,requestAsyncStorage:()=>d,routeModule:()=>h,serverHooks:()=>m,staticGenerationAsyncStorage:()=>g});var a={};s.r(a),s.d(a,{POST:()=>c,dynamic:()=>l});var r=s(7786),n=s(5042),i=s(2184),o=s(1890),u=s(9605);let l="force-dynamic";async function c(e){try{if(function(e){let t=e.headers.get("origin");return!(t&&p.has(t))&&("cross-site"===e.headers.get("sec-fetch-site")||!!(t&&t!==new URL(e.url).origin))}(e))return o.NextResponse.json({error:"cross-site update request rejected"},{status:403});let t=await e.text();if(t&&"{}"!==t)return o.NextResponse.json({error:"update install does not accept parameters"},{status:400});return o.NextResponse.json(await (0,u.X)().installAvailable(),{status:202})}catch(t){let e=Number(t.status)||500;return o.NextResponse.json({error:t instanceof Error?t.message:"unable to start update"},{status:e})}}let p=new Set(["capacitor://localhost","ionic://localhost"]),h=new r.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/update/install/route",pathname:"/api/update/install",filename:"route",bundlePath:"app/api/update/install/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/update/install/route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:d,staticGenerationAsyncStorage:g,serverHooks:m}=h,f="/api/update/install/route";function w(){return(0,i.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:g})}},9605:(e,t,s)=>{let a;s.d(t,{X:()=>c});var r=s(7718),n=s(3977),i=s(9411),o=s(1636);let u=new Set(["downloading","installing","reconnecting"]);class l{constructor(e){this.options=e,this.launchStatus=null,this.spawnImpl=e.spawn??r.spawn,this.unavailableStatus={phase:"unavailable",currentVersion:e.currentVersion,message:"当前电脑服务暂不支持在线更新。请使用 AgentRoam CLI 安装的电脑服务。"},this.checker=e.platform?e.checker??new o.UpdateChecker({currentVersion:e.currentVersion,client:"cli",platform:e.platform}):null,this.checker?.schedule()}async status(){if(this.launchStatus?.phase==="downloading")return this.launchStatus;let e=await this.readDurableStatus(),t=this.checker?.getStatus()??this.unavailableStatus,s=this.launchStatus??e;return!s||u.has(s.phase)?s??t:"checking"===t.phase||t.message||"up-to-date"===t.phase||t.targetVersion&&s.targetVersion&&(0,o.compareAgentRoamVersions)(t.targetVersion,s.targetVersion)>0?t:s}requestCheck(){return this.checker?(this.checker.refresh({force:!0}).catch(()=>void 0),this.launchStatus?.phase==="downloading"?this.launchStatus:this.checker.getStatus()):this.unavailableStatus}async installAvailable(){if(!this.options.cliPath||!this.options.dataDir||!this.options.platform)throw Object.assign(Error("updates require a packaged AgentRoam service"),{status:409});let e=this.checker?.getStatus();if(!e||"available"!==e.phase||!e.targetVersion)throw Object.assign(Error("no validated update is available"),{status:409});let t=await this.readDurableStatus();if(this.launchStatus?.phase==="downloading")return this.launchStatus;if(t&&u.has(t.phase))return t;let s={...e,phase:"downloading"};this.launchStatus=s;let a=this.spawnImpl(process.execPath,[this.options.cliPath,"update",e.targetVersion,"--data-dir",this.options.dataDir],{detached:!0,stdio:"ignore",windowsHide:!0}),r=()=>{this.launchStatus={...s,phase:"failed",message:"无法启动 CLI 更新,请检查电脑网络后重试"}};return a.once("error",r),a.once("exit",e=>{0===e?this.launchStatus=null:r()}),a.unref(),s}async readDurableStatus(){if(!this.options.dataDir)return null;try{let e=JSON.parse(await (0,n.readFile)((0,i.resolve)(this.options.dataDir,"updates","state.json"),"utf8"));if(1!==e.schemaVersion||"string"!=typeof e.phase||"string"!=typeof e.targetVersion||!["downloading","installing","reconnecting","complete","failed"].includes(e.phase)||0>=(0,o.compareAgentRoamVersions)(e.targetVersion,this.options.currentVersion))return null;if(u.has(e.phase)&&("number"!=typeof e.updatedAt||Date.now()-e.updatedAt>18e5))return{phase:"failed",currentVersion:this.options.currentVersion,targetVersion:e.targetVersion,message:"更新已中断,请重试"};return{phase:e.phase,currentVersion:this.options.currentVersion,targetVersion:e.targetVersion,message:"string"==typeof e.message?e.message:void 0}}catch{return null}}}function c(){let e=process.env.AGENTROAM_CLI_VERSION?.trim()||process.env.AGENTROAM_VERSION?.trim(),t=process.env.AGENTROAM_DATA_DIR?.trim(),s=process.env.AGENTROAM_CLI_PATH?.trim();return a??=new l({currentVersion:e||"0.0.0",platform:s&&t&&e&&(0,o.parseAgentRoamVersion)(e)?"darwin"===process.platform&&"arm64"===process.arch?"darwin-arm64":"win32"===process.platform&&"x64"===process.arch?"windows-amd64":null:null,dataDir:t,cliPath:s})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[8375,6703],()=>s(7924));module.exports=a})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=4362,e.ids=[4362],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},3977:e=>{e.exports=require("node:fs/promises")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=4362,e.ids=[4362],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},3977:e=>{e.exports=require("node:fs/promises")},9411:e=>{e.exports=require("node:path")},9832:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>m,patchFetch:()=>f,requestAsyncStorage:()=>l,routeModule:()=>h,serverHooks:()=>g,staticGenerationAsyncStorage:()=>d});var a={};s.r(a),s.d(a,{GET:()=>p,dynamic:()=>c});var r=s(7786),n=s(5042),i=s(2184),o=s(1890),u=s(9605);let c="force-dynamic";async function p(){return o.NextResponse.json(await (0,u.X)().status(),{headers:{"cache-control":"no-store"}})}let h=new r.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/update/status/route",pathname:"/api/update/status",filename:"route",bundlePath:"app/api/update/status/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/update/status/route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:l,staticGenerationAsyncStorage:d,serverHooks:g}=h,m="/api/update/status/route";function f(){return(0,i.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:d})}},9605:(e,t,s)=>{let a;s.d(t,{X:()=>p});var r=s(7718),n=s(3977),i=s(9411),o=s(1636);let u=new Set(["downloading","installing","reconnecting"]);class c{constructor(e){this.options=e,this.launchStatus=null,this.spawnImpl=e.spawn??r.spawn,this.unavailableStatus={phase:"unavailable",currentVersion:e.currentVersion,message:"当前电脑服务暂不支持在线更新。请使用 AgentRoam CLI 安装的电脑服务。"},this.checker=e.platform?e.checker??new o.UpdateChecker({currentVersion:e.currentVersion,client:"cli",platform:e.platform}):null,this.checker?.schedule()}async status(){if(this.launchStatus?.phase==="downloading")return this.launchStatus;let e=await this.readDurableStatus(),t=this.checker?.getStatus()??this.unavailableStatus,s=this.launchStatus??e;return!s||u.has(s.phase)?s??t:"checking"===t.phase||t.message||"up-to-date"===t.phase||t.targetVersion&&s.targetVersion&&(0,o.compareAgentRoamVersions)(t.targetVersion,s.targetVersion)>0?t:s}requestCheck(){return this.checker?(this.checker.refresh({force:!0}).catch(()=>void 0),this.launchStatus?.phase==="downloading"?this.launchStatus:this.checker.getStatus()):this.unavailableStatus}async installAvailable(){if(!this.options.cliPath||!this.options.dataDir||!this.options.platform)throw Object.assign(Error("updates require a packaged AgentRoam service"),{status:409});let e=this.checker?.getStatus();if(!e||"available"!==e.phase||!e.targetVersion)throw Object.assign(Error("no validated update is available"),{status:409});let t=await this.readDurableStatus();if(this.launchStatus?.phase==="downloading")return this.launchStatus;if(t&&u.has(t.phase))return t;let s={...e,phase:"downloading"};this.launchStatus=s;let a=this.spawnImpl(process.execPath,[this.options.cliPath,"update",e.targetVersion,"--data-dir",this.options.dataDir],{detached:!0,stdio:"ignore",windowsHide:!0}),r=()=>{this.launchStatus={...s,phase:"failed",message:"无法启动 CLI 更新,请检查电脑网络后重试"}};return a.once("error",r),a.once("exit",e=>{0===e?this.launchStatus=null:r()}),a.unref(),s}async readDurableStatus(){if(!this.options.dataDir)return null;try{let e=JSON.parse(await (0,n.readFile)((0,i.resolve)(this.options.dataDir,"updates","state.json"),"utf8"));if(1!==e.schemaVersion||"string"!=typeof e.phase||"string"!=typeof e.targetVersion||!["downloading","installing","reconnecting","complete","failed"].includes(e.phase)||0>=(0,o.compareAgentRoamVersions)(e.targetVersion,this.options.currentVersion))return null;if(u.has(e.phase)&&("number"!=typeof e.updatedAt||Date.now()-e.updatedAt>18e5))return{phase:"failed",currentVersion:this.options.currentVersion,targetVersion:e.targetVersion,message:"更新已中断,请重试"};return{phase:e.phase,currentVersion:this.options.currentVersion,targetVersion:e.targetVersion,message:"string"==typeof e.message?e.message:void 0}}catch{return null}}}function p(){let e=process.env.AGENTROAM_CLI_VERSION?.trim()||process.env.AGENTROAM_VERSION?.trim(),t=process.env.AGENTROAM_DATA_DIR?.trim(),s=process.env.AGENTROAM_CLI_PATH?.trim();return a??=new c({currentVersion:e||"0.0.0",platform:s&&t&&e&&(0,o.parseAgentRoamVersion)(e)?"darwin"===process.platform&&"arm64"===process.arch?"darwin-arm64":"win32"===process.platform&&"x64"===process.arch?"windows-amd64":null:null,dataDir:t,cliPath:s})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[8375,6703],()=>s(9832));module.exports=a})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=2574,e.ids=[2574],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=2574,e.ids=[2574],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},2937:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>h,requestAsyncStorage:()=>p,routeModule:()=>d,serverHooks:()=>v,staticGenerationAsyncStorage:()=>l});var n={};r.r(n),r.d(n,{POST:()=>c});var o=r(7786),s=r(5042),i=r(2184),a=r(1890),u=r(3710);async function c(e){try{let t=await e.json(),r=await u.ZA.login(t.username||"",t.password||"",(0,u.$U)(e)),n=a.NextResponse.json({user:r.user,csrfToken:r.csrfToken,deviceId:r.deviceId});return n.cookies.set(u.VP,r.authToken,(0,u.Ci)(e,2592e3,!0)),n.cookies.set(u.ki,r.deviceId,(0,u.Ci)(e,31536e3,!1)),n}catch(e){return(0,u.yN)(e)}}let d=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-auth/login/route",pathname:"/api/web-auth/login",filename:"route",bundlePath:"app/api/web-auth/login/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-auth/login/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:p,staticGenerationAsyncStorage:l,serverHooks:v}=d,g="/api/web-auth/login/route";function h(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:l})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>u});var n=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function s(e=process.env,t=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return s()}function a(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},3710:(e,t,r)=>{r.d(t,{$U:()=>p,Ci:()=>v,VP:()=>s,Xd:()=>d,ZA:()=>a,ap:()=>l,hw:()=>u,ki:()=>i,yN:()=>g});var n=r(1636),o=r(785);let s="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function d(e){return c(e)[s]||null}function p(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[i],deviceName:e.headers.get("x-device-name")||""}}function l(e){let t=a.authenticateToken(d(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function v(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function g(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(2937));module.exports=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=9402,e.ids=[9402],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=9402,e.ids=[9402],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},3694:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>v,requestAsyncStorage:()=>l,routeModule:()=>p,serverHooks:()=>g,staticGenerationAsyncStorage:()=>d});var o={};r.r(o),r.d(o,{POST:()=>c});var n=r(7786),s=r(5042),u=r(2184),a=r(1890),i=r(3710);async function c(e){try{(0,i.ap)(e);let t=(0,i.Xd)(e);i.ZA.logout(t);let r=new a.NextResponse(null,{status:204});return r.cookies.set(i.VP,"",(0,i.Ci)(e,0,!0)),r}catch(e){return(0,i.yN)(e)}}let p=new n.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-auth/logout/route",pathname:"/api/web-auth/logout",filename:"route",bundlePath:"app/api/web-auth/logout/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-auth/logout/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:l,staticGenerationAsyncStorage:d,serverHooks:g}=p,h="/api/web-auth/logout/route";function v(){return(0,u.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:d})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>u,sr:()=>i});var o=r(9411);let n=function(){let e=process.argv[1];if(e){let t=(0,o.dirname)((0,o.resolve)(e)),r=`${o.sep}node_modules${o.sep}.bin`;return t.endsWith(r)?(0,o.resolve)(t,"..",".."):t}return(0,o.resolve)(process.cwd())}();function s(e=process.env,t=n){return(0,o.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function u(){return s()}function a(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,o.resolve)(r);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,o.resolve)(n,"logs"):(0,o.join)(t,".agent-data","logs")}function i(){return function(e=process.env,t=n){return(0,o.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,u())}},3710:(e,t,r)=>{r.d(t,{$U:()=>l,Ci:()=>g,VP:()=>s,Xd:()=>p,ZA:()=>a,ap:()=>d,hw:()=>i,ki:()=>u,yN:()=>h});var o=r(1636),n=r(785);let s="customer_agent_session",u="customer_agent_device",a=new o.WebAuthService(new o.SQLiteAuthStore((0,n.kO)())),i=new o.SQLiteWebConsoleStore((0,n.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function p(e){return c(e)[s]||null}function l(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[u],deviceName:e.headers.get("x-device-name")||""}}function d(e){let t=a.authenticateToken(p(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function g(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function h(e){let t=e instanceof o.WebAuthError?e:new o.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),o=t.X(0,[8375,6703],()=>r(3694));module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=843,e.ids=[843],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=843,e.ids=[843],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},6454:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>h,patchFetch:()=>f,requestAsyncStorage:()=>p,routeModule:()=>l,serverHooks:()=>v,staticGenerationAsyncStorage:()=>d});var o={};t.r(o),t.d(o,{POST:()=>c});var n=t(7786),s=t(5042),a=t(2184),i=t(1890),u=t(3710);async function c(e){try{(0,u.ap)(e);let r=(0,u.Xd)(e),t=u.ZA.revokeAll(r,!1),o=i.NextResponse.json({revoked:t});return o.cookies.set(u.VP,"",(0,u.Ci)(e,0,!0)),o}catch(e){return(0,u.yN)(e)}}let l=new n.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-auth/revoke-all/route",pathname:"/api/web-auth/revoke-all",filename:"route",bundlePath:"app/api/web-auth/revoke-all/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-auth/revoke-all/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:p,staticGenerationAsyncStorage:d,serverHooks:v}=l,h="/api/web-auth/revoke-all/route";function f(){return(0,a.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:d})}},785:(e,r,t)=>{t.d(r,{ME:()=>i,kO:()=>a,sr:()=>u});var o=t(9411);let n=function(){let e=process.argv[1];if(e){let r=(0,o.dirname)((0,o.resolve)(e)),t=`${o.sep}node_modules${o.sep}.bin`;return r.endsWith(t)?(0,o.resolve)(r,"..",".."):r}return(0,o.resolve)(process.cwd())}();function s(e=process.env,r=n){return(0,o.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function a(){return s()}function i(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,o.resolve)(t);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,o.resolve)(n,"logs"):(0,o.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=n){return(0,o.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,a())}},3710:(e,r,t)=>{t.d(r,{$U:()=>p,Ci:()=>v,VP:()=>s,Xd:()=>l,ZA:()=>i,ap:()=>d,hw:()=>u,ki:()=>a,yN:()=>h});var o=t(1636),n=t(785);let s="customer_agent_session",a="customer_agent_device",i=new o.WebAuthService(new o.SQLiteAuthStore((0,n.kO)())),u=new o.SQLiteWebConsoleStore((0,n.kO)());function c(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function l(e){return c(e)[s]||null}function p(e){let r=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[a],deviceName:e.headers.get("x-device-name")||""}}function d(e){let r=i.authenticateToken(l(e));return i.validateCsrf(r,e.headers.get("x-csrf-token")),r}function v(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function h(e){let r=e instanceof o.WebAuthError?e:new o.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[8375,6703],()=>t(6454));module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=234,e.ids=[234],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},6005:e=>{e.exports=require("node:crypto")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=234,e.ids=[234],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},6005:e=>{e.exports=require("node:crypto")},9411:e=>{e.exports=require("node:path")},4208:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>g,requestAsyncStorage:()=>f,routeModule:()=>l,serverHooks:()=>v,staticGenerationAsyncStorage:()=>h});var n={};r.r(n),r.d(n,{POST:()=>d});var s=r(7786),o=r(5042),i=r(2184),a=r(1890),u=r(6005),c=r(1636),p=r(3710);async function d(e){try{let t=await e.json();(function(e){let t=process.env.AGENT_PAIRING_HASH;if(!t)return;let r=Date.parse(process.env.AGENT_PAIRING_EXPIRES_AT||""),n=(0,u.createHash)("sha256").update(e||"").digest("hex");if(!(Number.isFinite(r)&&Date.now()<r&&n.length===t.length&&(0,u.timingSafeEqual)(Buffer.from(n),Buffer.from(t))))throw new c.WebAuthError("INVALID_INPUT","配对链接无效或已过期",403)})(t.pairingToken);let r=await p.ZA.setup(t.username||"",t.password||"",(0,p.$U)(e)),n=a.NextResponse.json({user:r.user,csrfToken:r.csrfToken,deviceId:r.deviceId},{status:201});return n.cookies.set(p.VP,r.authToken,(0,p.Ci)(e,2592e3,!0)),n.cookies.set(p.ki,r.deviceId,(0,p.Ci)(e,31536e3,!1)),n}catch(e){return(0,p.yN)(e)}}let l=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/web-auth/setup/route",pathname:"/api/web-auth/setup",filename:"route",bundlePath:"app/api/web-auth/setup/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-auth/setup/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:f,staticGenerationAsyncStorage:h,serverHooks:v}=l,m="/api/web-auth/setup/route";function g(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:h})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>u});var n=r(9411);let s=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function o(e=process.env,t=s){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return o()}function a(e=process.env,t=o(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let s=e.AGENTROAM_DATA_DIR?.trim();return s?(0,n.resolve)(s,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=s){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},3710:(e,t,r)=>{r.d(t,{$U:()=>d,Ci:()=>f,VP:()=>o,Xd:()=>p,ZA:()=>a,ap:()=>l,hw:()=>u,ki:()=>i,yN:()=>h});var n=r(1636),s=r(785);let o="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,s.kO)())),u=new n.SQLiteWebConsoleStore((0,s.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function p(e){return c(e)[o]||null}function d(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[i],deviceName:e.headers.get("x-device-name")||""}}function l(e){let t=a.authenticateToken(p(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function f(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function h(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(4208));module.exports=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=9558,e.ids=[9558],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=9558,e.ids=[9558],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},2393:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>v,patchFetch:()=>m,requestAsyncStorage:()=>l,routeModule:()=>p,serverHooks:()=>f,staticGenerationAsyncStorage:()=>h});var n={};r.r(n),r.d(n,{GET:()=>d,dynamic:()=>c});var s=r(7786),o=r(5042),i=r(2184),a=r(1890),u=r(3710);let c="force-dynamic";async function d(e){if(u.ZA.needsSetup())return a.NextResponse.json({needsSetup:!0,authenticated:!1});let t=(0,u.Xd)(e);if(!t)return a.NextResponse.json({needsSetup:!1,authenticated:!1});try{let r=u.ZA.refresh(t),n=a.NextResponse.json({needsSetup:!1,authenticated:!0,user:{id:r.principal.userId,username:r.principal.username},csrfToken:r.csrfToken,deviceId:r.principal.deviceId});return n.cookies.set(u.VP,t,(0,u.Ci)(e,2592e3,!0)),n.cookies.set(u.ki,r.principal.deviceId,(0,u.Ci)(e,31536e3,!1)),n}catch(r){let t=a.NextResponse.json({needsSetup:!1,authenticated:!1});return t.cookies.set(u.VP,"",(0,u.Ci)(e,0,!0)),t}}let p=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/web-auth/status/route",pathname:"/api/web-auth/status",filename:"route",bundlePath:"app/api/web-auth/status/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-auth/status/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:l,staticGenerationAsyncStorage:h,serverHooks:f}=p,v="/api/web-auth/status/route";function m(){return(0,i.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:h})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>u});var n=r(9411);let s=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function o(e=process.env,t=s){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return o()}function a(e=process.env,t=o(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let s=e.AGENTROAM_DATA_DIR?.trim();return s?(0,n.resolve)(s,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=s){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},3710:(e,t,r)=>{r.d(t,{$U:()=>p,Ci:()=>h,VP:()=>o,Xd:()=>d,ZA:()=>a,ap:()=>l,hw:()=>u,ki:()=>i,yN:()=>f});var n=r(1636),s=r(785);let o="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,s.kO)())),u=new n.SQLiteWebConsoleStore((0,s.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function d(e){return c(e)[o]||null}function p(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[i],deviceName:e.headers.get("x-device-name")||""}}function l(e){let t=a.authenticateToken(d(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function h(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function f(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(2393));module.exports=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=2285,e.ids=[2285],e.modules={399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=2285,e.ids=[2285],e.modules={399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},5443:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>m,patchFetch:()=>b,requestAsyncStorage:()=>c,routeModule:()=>u,serverHooks:()=>l,staticGenerationAsyncStorage:()=>d});var o={};t.r(o),t.d(o,{GET:()=>i,dynamic:()=>p});var a=t(7786),s=t(5042),n=t(2184);let p="force-dynamic";async function i(){return Response.json({error:"Device pairing gateway required"},{status:401})}let u=new a.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/bootstrap/route",pathname:"/api/web-console/bootstrap",filename:"route",bundlePath:"app/api/web-console/bootstrap/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-console/bootstrap/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:c,staticGenerationAsyncStorage:d,serverHooks:l}=u,m="/api/web-console/bootstrap/route";function b(){return(0,n.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:d})}},7786:(e,r,t)=>{e.exports=t(517)}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[8375],()=>t(5443));module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=842,e.ids=[842],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=842,e.ids=[842],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},2381:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>w,patchFetch:()=>A,requestAsyncStorage:()=>m,routeModule:()=>g,serverHooks:()=>h,staticGenerationAsyncStorage:()=>f});var s={};r.r(s),r.d(s,{GET:()=>p,PATCH:()=>v,dynamic:()=>l});var o=r(7786),n=r(5042),i=r(2184),a=r(1890),u=r(1636),c=r(2110);let l="force-dynamic",d=(e,t=200)=>a.NextResponse.json(e,{status:t,headers:{"Cache-Control":"no-store"}});async function p(){let{userId:e}=(0,c.nQ)();return d({settings:c.hw.getComputerSettings(e)??(0,u.defaultComputerSettings)(e)})}async function v(e){let t,r;let{userId:s}=(0,c.nQ)(),o=c.hw.getComputerSettings(s),n=o??(0,u.defaultComputerSettings)(s),i=!1;try{let s=await e.json(),o=["expectedRevision","visibleTools","savedPages","initializePages"];if(!s||Array.isArray(s)||"object"!=typeof s||Object.keys(s).some(e=>!o.includes(e)))throw Error("电脑配置参数无效。");if(!Number.isSafeInteger(s.expectedRevision)||s.expectedRevision<0)throw Error("缺少有效的配置版本,请重新加载。");r=s.expectedRevision;let a=e=>Object.prototype.hasOwnProperty.call(s,e);if((i=a("initializePages"))&&(a("savedPages")||a("visibleTools")))throw Error("旧页面导入不能与其他配置同时修改。");if(!i&&!a("visibleTools")&&!a("savedPages"))throw Error("请选择要保存的配置。");t={...n,visibleTools:a("visibleTools")?(0,u.validateComputerTools)(s.visibleTools):n.visibleTools,savedPages:i?(0,u.validateSavedComputerPages)(s.initializePages):a("savedPages")?(0,u.validateSavedComputerPages)(s.savedPages):n.savedPages,revision:n.revision+1,updatedAt:new Date().toISOString()}}catch(e){return d({error:{code:"INVALID_COMPUTER_SETTINGS",message:e instanceof Error?e.message:"电脑配置无效。"}},400)}return i&&null!==n.savedPages?d({settings:n}):r===n.revision&&c.hw.saveComputerSettings(t,o?n.revision:null)?d({settings:t}):d({error:{code:"REVISION_CONFLICT",message:"配置已在其他设备更新,请重新加载后重试。"}},409)}let g=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/web-console/computer-settings/route",pathname:"/api/web-console/computer-settings",filename:"route",bundlePath:"app/api/web-console/computer-settings/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-console/computer-settings/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:m,staticGenerationAsyncStorage:f,serverHooks:h}=g,w="/api/web-console/computer-settings/route";function A(){return(0,i.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:f})}},785:(e,t,r)=>{r.d(t,{ME:()=>a,kO:()=>i,sr:()=>u});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function n(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function i(){return n()}function a(e=process.env,t=n(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,i())}},2110:(e,t,r)=>{r.d(t,{hw:()=>n.hw,nQ:()=>a});var s=r(1636),o=r(785),n=r(3710);let i=new s.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(e,t,r)=>{r.d(t,{$U:()=>d,Ci:()=>v,VP:()=>n,Xd:()=>l,ZA:()=>a,ap:()=>p,hw:()=>u,ki:()=>i,yN:()=>g});var s=r(1636),o=r(785);let n="customer_agent_session",i="customer_agent_device",a=new s.WebAuthService(new s.SQLiteAuthStore((0,o.kO)())),u=new s.SQLiteWebConsoleStore((0,o.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function l(e){return c(e)[n]||null}function d(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[i],deviceName:e.headers.get("x-device-name")||""}}function p(e){let t=a.authenticateToken(l(e));return a.validateCsrf(t,e.headers.get("x-csrf-token")),t}function v(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function g(e){let t=e instanceof s.WebAuthError?e:new s.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(2381));module.exports=s})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=7843,e.ids=[7843],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=7843,e.ids=[7843],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},5206:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>E,patchFetch:()=>T,requestAsyncStorage:()=>w,routeModule:()=>v,serverHooks:()=>A,staticGenerationAsyncStorage:()=>C});var o={};t.r(o),t.d(o,{DELETE:()=>f,GET:()=>m,PATCH:()=>g,POST:()=>h,dynamic:()=>p});var n=t(7786),s=t(5042),i=t(2184),a=t(1890),u=t(1636),c=t(2110);let p="force-dynamic",d=(e,r=200)=>a.NextResponse.json(e,{status:r,headers:{"Cache-Control":"no-store"}}),l=e=>d({error:{code:"INVALID_COMPUTER_DIRECTORY",message:e instanceof Error?e.message:"电脑列表无效。"}},400);async function m(){return d({computers:c.hw.listComputerConnections((0,c.nQ)().userId)})}async function h(e){try{let r=await e.json();if(!r||Array.isArray(r)||"object"!=typeof r||Object.keys(r).some(e=>!["computers","restore"].includes(e))||void 0!==r.restore&&"boolean"!=typeof r.restore)throw Error("电脑列表参数无效。");let t=(0,u.validateComputerConnections)(r.computers);return d({computers:c.hw.mergeComputerConnections((0,c.nQ)().userId,t,!0===r.restore)})}catch(e){return l(e)}}async function f(e){try{let r=await e.json();if(!r||Array.isArray(r)||"object"!=typeof r||Object.keys(r).some(e=>"origin"!==e))throw Error("电脑列表参数无效。");let[t]=(0,u.validateComputerConnections)([{origin:r.origin,name:"电脑"}]),o=new URL(e.headers.get("origin")||e.url).origin;if(t.origin===o)throw Error("不能删除当前连接的电脑。");let{userId:n}=(0,c.nQ)();return c.hw.removeComputerConnection(n,t.origin),d({computers:c.hw.listComputerConnections(n)})}catch(e){return l(e)}}async function g(e){try{let r=await e.json(),[t]=(0,u.validateComputerConnections)([r]),{userId:o}=(0,c.nQ)();if(!c.hw.renameComputerConnection(o,t))return d({error:{code:"COMPUTER_NOT_FOUND",message:"电脑尚未添加,请重新加载列表。"}},404);return d({computers:c.hw.listComputerConnections(o)})}catch(e){return l(e)}}let v=new n.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/computers/route",pathname:"/api/web-console/computers",filename:"route",bundlePath:"app/api/web-console/computers/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-console/computers/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:w,staticGenerationAsyncStorage:C,serverHooks:A}=v,E="/api/web-console/computers/route";function T(){return(0,i.patchFetch)({serverHooks:A,staticGenerationAsyncStorage:C})}},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var o=t(9411);let n=function(){let e=process.argv[1];if(e){let r=(0,o.dirname)((0,o.resolve)(e)),t=`${o.sep}node_modules${o.sep}.bin`;return r.endsWith(t)?(0,o.resolve)(r,"..",".."):r}return(0,o.resolve)(process.cwd())}();function s(e=process.env,r=n){return(0,o.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return s()}function a(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,o.resolve)(t);let n=e.AGENTROAM_DATA_DIR?.trim();return n?(0,o.resolve)(n,"logs"):(0,o.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=n){return(0,o.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}},2110:(e,r,t)=>{t.d(r,{hw:()=>s.hw,nQ:()=>a});var o=t(1636),n=t(785),s=t(3710);let i=new o.SQLiteAnonymousWebStore((0,n.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(e,r,t)=>{t.d(r,{$U:()=>d,Ci:()=>m,VP:()=>s,Xd:()=>p,ZA:()=>a,ap:()=>l,hw:()=>u,ki:()=>i,yN:()=>h});var o=t(1636),n=t(785);let s="customer_agent_session",i="customer_agent_device",a=new o.WebAuthService(new o.SQLiteAuthStore((0,n.kO)())),u=new o.SQLiteWebConsoleStore((0,n.kO)());function c(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function p(e){return c(e)[s]||null}function d(e){let r=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[i],deviceName:e.headers.get("x-device-name")||""}}function l(e){let r=a.authenticateToken(p(e));return a.validateCsrf(r,e.headers.get("x-csrf-token")),r}function m(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function h(e){let r=e instanceof o.WebAuthError?e:new o.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[8375,6703],()=>t(5206));module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=7107,e.ids=[7107],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=7107,e.ids=[7107],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},7568:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>w,requestAsyncStorage:()=>g,routeModule:()=>v,serverHooks:()=>f,staticGenerationAsyncStorage:()=>m});var n={};r.r(n),r.d(n,{GET:()=>l,PUT:()=>p,dynamic:()=>c});var o=r(7786),s=r(5042),a=r(2184),i=r(1890),u=r(2110);let c="force-dynamic",d=(e,t)=>({userId:e,deviceId:t,activeTerminalId:null,drawerOpen:!1,drawerTab:"files",fileTreeRoot:null,fileTreeFollowMode:!0,expandedPaths:[],selectedFile:null,terminalScroll:{},updatedAt:new Date().toISOString()});async function l(e){let{userId:t}=(0,u.nQ)(),r=e.headers.get("x-agentroam-device-id");return r?i.NextResponse.json({deviceState:u.hw.getDeviceState(t,r)??d(t,r)}):i.NextResponse.json({error:"Device authorization required"},{status:401})}async function p(e){let{userId:t}=(0,u.nQ)(),r=e.headers.get("x-agentroam-device-id");if(!r)return i.NextResponse.json({error:"Device authorization required"},{status:401});let n=u.hw.getDeviceState(t,r)??d(t,r),o=await e.json(),s={...n,...o,userId:t,deviceId:r,updatedAt:new Date().toISOString()};return u.hw.saveDeviceState(s),i.NextResponse.json({deviceState:s})}let v=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/device-state/route",pathname:"/api/web-console/device-state",filename:"route",bundlePath:"app/api/web-console/device-state/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-console/device-state/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:g,staticGenerationAsyncStorage:m,serverHooks:f}=v,h="/api/web-console/device-state/route";function w(){return(0,a.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:m})}},785:(e,t,r)=>{r.d(t,{ME:()=>i,kO:()=>a,sr:()=>u});var n=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,n.dirname)((0,n.resolve)(e)),r=`${n.sep}node_modules${n.sep}.bin`;return t.endsWith(r)?(0,n.resolve)(t,"..",".."):t}return(0,n.resolve)(process.cwd())}();function s(e=process.env,t=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function a(){return s()}function i(e=process.env,t=s(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,n.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(t,".agent-data","logs")}function u(){return function(e=process.env,t=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,a())}},2110:(e,t,r)=>{r.d(t,{hw:()=>s.hw,nQ:()=>i});var n=r(1636),o=r(785),s=r(3710);let a=new n.SQLiteAnonymousWebStore((0,o.kO)());function i(){return{userId:a.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(e,t,r)=>{r.d(t,{$U:()=>l,Ci:()=>v,VP:()=>s,Xd:()=>d,ZA:()=>i,ap:()=>p,hw:()=>u,ki:()=>a,yN:()=>g});var n=r(1636),o=r(785);let s="customer_agent_session",a="customer_agent_device",i=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let t={};for(let r of(e.headers.get("cookie")||"").split(";")){let e=r.indexOf("=");e>0&&(t[r.slice(0,e).trim()]=decodeURIComponent(r.slice(e+1).trim()))}return t}function d(e){return c(e)[s]||null}function l(e){let t=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:t[a],deviceName:e.headers.get("x-device-name")||""}}function p(e){let t=i.authenticateToken(d(e));return i.validateCsrf(t,e.headers.get("x-csrf-token")),t}function v(e,t,r){return{httpOnly:r,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:t}}function g(e){let t=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:t.code,message:t.message}},{status:t.status})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703],()=>r(7568));module.exports=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=6289,e.ids=[6289],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=6289,e.ids=[6289],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},8238:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>m,patchFetch:()=>v,requestAsyncStorage:()=>l,routeModule:()=>d,serverHooks:()=>h,staticGenerationAsyncStorage:()=>p});var n={};t.r(n),t.d(n,{DELETE:()=>c,GET:()=>u});var o=t(7786),s=t(5042),i=t(2184),a=t(2110);async function u(e){let{userId:r}=(0,a.nQ)(),t=new URL(e.url);return Response.json({history:a.hw.listHistory(r,t.searchParams.get("q")||"",Math.min(200,Number(t.searchParams.get("limit")||100)),t.searchParams.get("terminalId")||void 0)})}async function c(e){let{userId:r}=(0,a.nQ)(),t=await e.json();return t.id?a.hw.deleteHistory(r,Number(t.id)):a.hw.clearHistory(r,t.terminalId||void 0),new Response(null,{status:204})}let d=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/history/route",pathname:"/api/web-console/history",filename:"route",bundlePath:"app/api/web-console/history/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-console/history/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:l,staticGenerationAsyncStorage:p,serverHooks:h}=d,m="/api/web-console/history/route";function v(){return(0,i.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:p})}},7786:(e,r,t)=>{e.exports=t(517)},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var n=t(9411);let o=function(){let e=process.argv[1];if(e){let r=(0,n.dirname)((0,n.resolve)(e)),t=`${n.sep}node_modules${n.sep}.bin`;return r.endsWith(t)?(0,n.resolve)(r,"..",".."):r}return(0,n.resolve)(process.cwd())}();function s(e=process.env,r=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return s()}function a(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,n.resolve)(t);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}},2110:(e,r,t)=>{t.d(r,{hw:()=>s.hw,nQ:()=>a});var n=t(1636),o=t(785),s=t(3710);let i=new n.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(e,r,t)=>{t.d(r,{$U:()=>l,Ci:()=>h,VP:()=>s,Xd:()=>d,ZA:()=>a,ap:()=>p,hw:()=>u,ki:()=>i,yN:()=>m});var n=t(1636),o=t(785);let s="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function d(e){return c(e)[s]||null}function l(e){let r=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[i],deviceName:e.headers.get("x-device-name")||""}}function p(e){let r=a.authenticateToken(d(e));return a.validateCsrf(r,e.headers.get("x-csrf-token")),r}function h(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function m(e){let r=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[8375],()=>t(8238));module.exports=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=9792,e.ids=[9792],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=9792,e.ids=[9792],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9411:e=>{e.exports=require("node:path")},2379:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>h,patchFetch:()=>w,requestAsyncStorage:()=>f,routeModule:()=>m,serverHooks:()=>g,staticGenerationAsyncStorage:()=>v});var n={};t.r(n),t.d(n,{GET:()=>p,PATCH:()=>l});var o=t(7786),s=t(5042),i=t(2184),a=t(1890),u=t(1636),c=t(2110);let d=e=>({userId:e,revision:1,theme:"black",terminalFontSize:11,fileButtonPosition:{xRatio:.94,yRatio:.65,anchor:"right"},keybarPosition:{xRatio:.5,yRatio:.95,anchor:"bottom"},keybarHidden:!1,keyOrder:[],pinnedCommands:(0,u.defaultPinnedCommands)(),updatedAt:new Date().toISOString()});async function p(){let{userId:e}=(0,c.nQ)();return a.NextResponse.json({preferences:c.hw.getPreferences(e)??d(e)})}async function l(e){let{userId:r}=(0,c.nQ)(),t=c.hw.getPreferences(r)??d(r),n=await e.json(),o=t.pinnedCommands;if(Object.prototype.hasOwnProperty.call(n,"pinnedCommands"))try{o=(0,u.validatePinnedCommands)(n.pinnedCommands)}catch(e){return a.NextResponse.json({error:{code:"INVALID_PINNED_COMMANDS",message:e instanceof Error?e.message:"置顶命令无效"}},{status:400})}let s={...t,...n,pinnedCommands:o,userId:r,revision:t.revision+1,updatedAt:new Date().toISOString()},i=c.hw.getPreferences(r);return c.hw.savePreferences(s,i?t.revision:null)?a.NextResponse.json({preferences:s}):a.NextResponse.json({error:{code:"REVISION_CONFLICT",message:"偏好已在其他设备更新"}},{status:409})}let m=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/web-console/preferences/route",pathname:"/api/web-console/preferences",filename:"route",bundlePath:"app/api/web-console/preferences/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/web-console/preferences/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:f,staticGenerationAsyncStorage:v,serverHooks:g}=m,h="/api/web-console/preferences/route";function w(){return(0,i.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:v})}},785:(e,r,t)=>{t.d(r,{ME:()=>a,kO:()=>i,sr:()=>u});var n=t(9411);let o=function(){let e=process.argv[1];if(e){let r=(0,n.dirname)((0,n.resolve)(e)),t=`${n.sep}node_modules${n.sep}.bin`;return r.endsWith(t)?(0,n.resolve)(r,"..",".."):r}return(0,n.resolve)(process.cwd())}();function s(e=process.env,r=o){return(0,n.resolve)(e.AGENT_DATA_DIR?.trim()||r)}function i(){return s()}function a(e=process.env,r=s(e)){let t=e.AGENT_LOG_DIR?.trim();if(t)return(0,n.resolve)(t);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,n.resolve)(o,"logs"):(0,n.join)(r,".agent-data","logs")}function u(){return function(e=process.env,r=o){return(0,n.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,i())}},2110:(e,r,t)=>{t.d(r,{hw:()=>s.hw,nQ:()=>a});var n=t(1636),o=t(785),s=t(3710);let i=new n.SQLiteAnonymousWebStore((0,o.kO)());function a(){return{userId:i.getOrCreatePrincipal().userId,username:"local",deviceId:"browser"}}},3710:(e,r,t)=>{t.d(r,{$U:()=>p,Ci:()=>m,VP:()=>s,Xd:()=>d,ZA:()=>a,ap:()=>l,hw:()=>u,ki:()=>i,yN:()=>f});var n=t(1636),o=t(785);let s="customer_agent_session",i="customer_agent_device",a=new n.WebAuthService(new n.SQLiteAuthStore((0,o.kO)())),u=new n.SQLiteWebConsoleStore((0,o.kO)());function c(e){let r={};for(let t of(e.headers.get("cookie")||"").split(";")){let e=t.indexOf("=");e>0&&(r[t.slice(0,e).trim()]=decodeURIComponent(t.slice(e+1).trim()))}return r}function d(e){return c(e)[s]||null}function p(e){let r=c(e);return{ip:e.headers.get("x-forwarded-for")?.split(",")[0].trim()||"unknown",userAgent:e.headers.get("user-agent")||"",deviceId:r[i],deviceName:e.headers.get("x-device-name")||""}}function l(e){let r=a.authenticateToken(d(e));return a.validateCsrf(r,e.headers.get("x-csrf-token")),r}function m(e,r,t){return{httpOnly:t,sameSite:"strict",secure:"https"===("1"===process.env.AGENT_TRUST_TUNNEL_PROXY?e.headers.get("x-forwarded-proto"):null)||"https:"===new URL(e.url).protocol,path:"/",maxAge:r}}function f(e){let r=e instanceof n.WebAuthError?e:new n.WebAuthError("UNAUTHENTICATED","认证失败",401);return Response.json({error:{code:r.code,message:r.message}},{status:r.status})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[8375,6703],()=>t(2379));module.exports=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=2138,e.ids=[2138],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},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")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=2138,e.ids=[2138],e.modules={1636:e=>{e.exports=require("@agent/core")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7718:e=>{e.exports=require("node:child_process")},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")},8344:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>y,patchFetch:()=>w,requestAsyncStorage:()=>f,routeModule:()=>m,serverHooks:()=>g,staticGenerationAsyncStorage:()=>v});var s={};r.r(s),r.d(s,{GET:()=>h,dynamic:()=>p});var o=r(7786),n=r(5042),a=r(2184),i=r(1890),c=r(7718);function u(e,t){return new Promise((r,s)=>{(0,c.execFile)("git",["--no-optional-locks","-c","core.quotepath=false",...t],{cwd:e,encoding:"utf8",timeout:8e3,maxBuffer:8388608},(e,t,o)=>{e?s(Object.assign(e,{gitStderr:o})):r(t)})})}async function l(e,t){let r;let s=t(e);try{r=(await u(s,["rev-parse","--show-toplevel"])).trim()}catch(e){if(/not a git repository/i.test(String(e.gitStderr)))return{repository:!1,root:null,branch:null,files:[]};throw e}r=t(r);let o=await u(r,["rev-parse","--verify","HEAD"]).then(()=>!0,()=>!1),[n,a,i]=await Promise.all([u(r,["symbolic-ref","--quiet","--short","HEAD"]).catch(()=>null),u(r,["status","--porcelain=v1","-z","--untracked-files=normal","--no-renames","--ignore-submodules=all"]),u(r,["diff","--numstat","-z","--no-renames","--no-ext-diff","--no-textconv",...o?["HEAD"]:[],"--","."])]),c=new Map;for(let e of i.split("\0")){let t=/^(\d+|-)\t(\d+|-)\t([\s\S]+)$/.exec(e);t&&c.set(t[3],{added:"-"===t[1]?null:Number(t[1]),removed:"-"===t[2]?null:Number(t[2])})}let l=a.split("\0").filter(Boolean).map(e=>{var t;return{path:e.slice(3),status:"??"===(t=e.slice(0,2))?"untracked":t.includes("U")||"AA"===t||"DD"===t?"conflict":t.includes("D")?"deleted":t.includes("A")?"added":"modified",...c.get(e.slice(3))??{added:null,removed:null}}});return{repository:!0,root:r,branch:n?.trim()||null,files:l}}var d=r(9142);let p="force-dynamic";async function h(e){let t=new URL(e.url).searchParams.get("path");if(!t?.trim())return i.NextResponse.json({error:"请选择工作目录"},{status:400});try{let e=await l(t,e=>d.a.canonicalDirectory(e));return i.NextResponse.json(e,{headers:{"Cache-Control":"no-store"}})}catch(t){let e=(0,d.r)(t);return i.NextResponse.json({error:500===e.status?"读取 Git 变更失败,请重试":e.body.error},{status:e.status})}}let m=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/workspace-changes/route",pathname:"/api/workspace-changes",filename:"route",bundlePath:"app/api/workspace-changes/route"},resolvedPagePath:"/Users/caoqu/.codex/artifacts/agentroam-preview84-desktop48-android46-20261127.pgKqA37h/source/packages/server/app/api/workspace-changes/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:f,staticGenerationAsyncStorage:v,serverHooks:g}=m,y="/api/workspace-changes/route";function w(){return(0,a.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:v})}},9142:(e,t,r)=>{r.d(t,{r:()=>p,a:()=>d});var s=r(612),o=r(1636),n=r(785),a=r(7561),i=r(9411),c=r(6005);class u extends Error{constructor(e,t,r){super(e),this.code=t,this.status=r,this.name="WebProjectError"}}class l{constructor(e,t,r=t.roots[0]){this.store=e,this.paths=t,this.installationDirectory=r}list(){return this.store.list()}async get(e){let t=await this.store.get(e);if(!t)throw new u("项目不存在","PROJECT_NOT_FOUND",404);return t}async create(e,t){let r=this.paths.assertDirectory(e);for(let e of(await this.store.list()))if(!e.id.startsWith("collaboration-"))try{if(this.paths.assertDirectory(e.description)===r)return e}catch{}let s=new Date().toISOString();return this.store.create({id:(0,c.randomUUID)(),name:t?.trim()||(0,i.basename)(r)||r,description:r,created:s,updated:s})}async rename(e,t){await this.get(e);let r=t.trim();if(!r)throw new u("项目名称不能为空","PROJECT_NAME_REQUIRED",400);return this.store.update(e,{name:r})}async delete(e){await this.get(e),await this.store.delete(e)}roots(){return this.paths.roots}pickerLocation(){return{roots:this.paths.roots,initialPath:this.paths.assertDirectory(this.installationDirectory)}}directories(e){return this.paths.listDirectories(e)}check(e){try{return this.paths.assertDirectory(e),!0}catch{return!1}}canonicalDirectory(e){return this.paths.assertDirectory(e)}}let d=new l(new o.SQLiteProjectStore((0,n.kO)()),o.HostPathPolicy.fromEnvironment(process.env.AGENT_WEB_ROOTS,(0,s.homedir)()),function(e,t=process.env,r=(0,s.homedir)()){let o=t.AGENTROAM_DATA_DIR?.trim();if(o)return(0,i.resolve)(o);let n=(0,i.join)(r,".agentroam");try{if((0,a.statSync)(n).isDirectory())return n}catch{}return(0,i.resolve)(e)}((0,n.kO)()));function p(e){return e instanceof u?{status:e.status,body:{error:e.message,code:e.code}}:e instanceof o.HostPathError?{status:400,body:{error:e.message,code:e.code}}:{status:500,body:{error:e instanceof Error?e.message:"项目操作失败",code:"PROJECT_OPERATION_FAILED"}}}},785:(e,t,r)=>{r.d(t,{ME:()=>i,kO:()=>a,sr:()=>c});var s=r(9411);let o=function(){let e=process.argv[1];if(e){let t=(0,s.dirname)((0,s.resolve)(e)),r=`${s.sep}node_modules${s.sep}.bin`;return t.endsWith(r)?(0,s.resolve)(t,"..",".."):t}return(0,s.resolve)(process.cwd())}();function n(e=process.env,t=o){return(0,s.resolve)(e.AGENT_DATA_DIR?.trim()||t)}function a(){return n()}function i(e=process.env,t=n(e)){let r=e.AGENT_LOG_DIR?.trim();if(r)return(0,s.resolve)(r);let o=e.AGENTROAM_DATA_DIR?.trim();return o?(0,s.resolve)(o,"logs"):(0,s.join)(t,".agent-data","logs")}function c(){return function(e=process.env,t=o){return(0,s.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||t)}(process.env,a())}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703],()=>r(8344));module.exports=s})();
|