agentroam-runtime-darwin-arm64 0.2.0-preview.82 → 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 +26 -25
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +8 -8
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/react-loadable-manifest.json +4 -4
- 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/engine-threads.body +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 +38 -38
- package/runtime/.next/server/chunks/5303.js +2 -2
- package/runtime/.next/server/middleware-build-manifest.js +1 -1
- package/runtime/.next/server/middleware-react-loadable-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-dbd3e343da4ba103.js → 183-9f47bd28d757e44e.js} +1 -1
- package/runtime/.next/static/chunks/20.2eb9bc3a5b4d410b.js +1 -0
- package/runtime/.next/static/chunks/325-0818ba5a4060a0e8.js +1 -0
- package/runtime/.next/static/chunks/34.c7dbf7ffc8914be9.js +1 -0
- package/runtime/.next/static/chunks/686.7b5c444243fcf29a.js +1 -0
- 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-36f160284a0d79fc.js +1 -0
- package/runtime/.next/static/chunks/main-app-9e9b12e00c3ae35e.js +1 -0
- package/runtime/.next/static/chunks/{webpack-f51a057f833e73eb.js → webpack-040c7a20dd455025.js} +1 -1
- package/runtime/.next/static/css/0e673318adedd54a.css +1 -0
- package/runtime/lib/tunnel-control.mjs +1 -1
- 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 +120 -120
- package/runtime/node_modules/@agent/core/dist/index.js +10 -3
- package/runtime/node_modules/@agent/native-runtime/dist/index.js +201 -55
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +41 -10
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +9 -9
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +10 -10
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +41 -10
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +41 -10
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +50 -11
- package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
- package/runtime/node_modules/mediabunny/package.json +1 -1
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +59 -13
- package/runtime/node_modules/mediabunny/src/metadata.ts +1 -0
- package/runtime/node_modules/mediabunny/src/version.ts +1 -1
- 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 +137 -137
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/assets/AIHubView-DKUDkftP.js +1 -0
- package/runtime/webapp/dist/assets/{AgentManager-B8TTqJaL.js → AgentManager-DBsl9Tc-.js} +1 -1
- package/runtime/webapp/dist/assets/AiHubPane-Cq9jov_Y.js +1 -0
- package/runtime/webapp/dist/assets/App-Cw_UxB1o.js +68 -0
- package/runtime/webapp/dist/assets/{BrowserLivePanel-DnzJOz5w.js → BrowserLivePanel-D4-GJ_9P.js} +2 -2
- package/runtime/webapp/dist/assets/CalendarPage-X9TGiQFj.js +1 -0
- package/runtime/webapp/dist/assets/{CalendarView-QXZbXnXA.js → CalendarView-HvfBGuRx.js} +3 -3
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-jp-Nu0XU.js +1 -0
- package/runtime/webapp/dist/assets/CollaborationDashboard-olO_GjsT.js +1 -0
- package/runtime/webapp/dist/assets/{CollaborationPage-B2mIAc-h.js → CollaborationPage-W8naHk0B.js} +2 -2
- package/runtime/webapp/dist/assets/{FilePreview-BCEiERA1.js → FilePreview-DI0rubgD.js} +5 -5
- package/runtime/webapp/dist/assets/{FileTree-CMbs1Gj3.js → FileTree-rE46D8RD.js} +2 -2
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-wPD_Fs04.js +1 -0
- package/runtime/webapp/dist/assets/FlowStudioPane-BILTrSF5.js +5 -0
- package/runtime/webapp/dist/assets/HostProjectPicker-0CHU4mlN.js +1 -0
- package/runtime/webapp/dist/assets/{LSPServerList-COMVmsvb.js → LSPServerList-T8zw5SN-.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-C_juD6B4.js → MCPServerList-CQNCdDdm.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-Et2vysSN.js → MemoryViewer-mQsBEa17.js} +1 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-CCQJHuTO.js +1 -0
- package/runtime/webapp/dist/assets/NewSessionWindow-aaPt6Fto.css +1 -0
- package/runtime/webapp/dist/assets/RemoteDesktopPage-CSrZ5Ftv.js +1 -0
- package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-BFzNwpUn.js → RemoteDesktopTabBridge-jgSmDncq.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-D_cOqmmk.js → RunningSessionsIcon-Dj0GAkqr.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-yjdEKypJ.js → SessionDashboard-kC_8_Bza.js} +2 -2
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-Kc_1Et9r.js → SessionDashboardBridge-BqLN9MBj.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-t26XhKHP.js → SettingsPanel-CqQv2eK-.js} +1 -1
- package/runtime/webapp/dist/assets/{SkillManager-nZU7b1sc.js → SkillManager-Bu2BSH0G.js} +1 -1
- package/runtime/webapp/dist/assets/{TaskPaneTerminal-BPaCKman.js → TaskPaneTerminal-BdxQYNc6.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-CiIpI1Id.js → TerminalPane-BvhhLZN1.js} +1 -1
- package/runtime/webapp/dist/assets/TodoPage-hbsap1E8.js +1 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DmKjGVfG.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-D6bpvBke.js → arc-CWNpomsA.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-NEKc2BYf.js → architectureDiagram-5GKGNRK7-BoOjl_r_.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-V6G00twZ.js → blockDiagram-I7D4REHJ-vJ_8Ek3u.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-CojA33V5.js → c4Diagram-7LVT6UL2-DNA4gWKh.js} +1 -1
- package/runtime/webapp/dist/assets/{calendar-days-DXE_2mLa.js → calendar-days-D6jkCzJk.js} +1 -1
- package/runtime/webapp/dist/assets/channel-ComjzpL-.js +1 -0
- package/runtime/webapp/dist/assets/{check-UipgMBET.js → check-Dg_LqC82.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-down-Dvinwg2S.js → chevron-down-BEj7mlHA.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-right-BGU3tcLA.js → chevron-right-BJjvR4c0.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-DObpPEgk.js → chunk-2Q5K7J3B-CZDhxDbY.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-PaTzAg6w.js → chunk-5VM5RSS4-BnlDM5br.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-Pn4gut94.js → chunk-F27PBJKO-CB7O8_6v.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-nRaVFzK9.js → chunk-IMKFNOWR-Bu3AW8DR.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-CxssjKKN.js → chunk-JWPE2WC7-CBQw1xgF.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-CweDXr-B.js → chunk-POPQ4Y6H-Bun3CGx_.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-C7T3FGE-.js → chunk-SVP7TREG-XwWHVyss.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-Nc0H-0_V.js → chunk-TICWLB2K-B7j4XyQE.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-D_GQGF5g.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-Bb0hpbIR.js → client-dnf9nxPX.js} +1 -1
- package/runtime/webapp/dist/assets/{codeSyntax-DHonp3tF.js → codeSyntax-BLQm8ta3.js} +1 -1
- package/runtime/webapp/dist/assets/{collaboration-e_iziKU1.js → collaboration-CJnVMp4H.js} +1 -1
- package/runtime/webapp/dist/assets/{composer-file-routing-CWyT7leB.js → composer-file-routing-DX7AUQpe.js} +2 -2
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-Ac_FBan4.js → cose-bilkent-JH36ORCC-610OTEmf.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-vr6c389q.js → cynefin-OW5HDTMX-CM8PeVI5.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-sXmUCrp_.js → cynefinDiagram-5FMLGOSQ-BY4mC_Y_.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-B0DmGxDv.js → dagre-GXQ25YYZ-CW6OZxKS.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-Dn-2jJ6S.js → diagram-S7CK7UJ4-BaPMOaHo.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-BcasYsju.js → diagram-UQ7AKVKN-BWIQcSBB.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-DCgGkc82.js → diagram-VSXAHHWV-BwkS6jsR.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-Cjs0Ny4i.js → diagram-VX7I27RA-B7rXbpbO.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-0nyddp0v.js → diagram-Z3DM3KII-CrWfyJCt.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-By7gCUsz.js → ebnfDiagram-PWID7BFC-DrpyBRGI.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-DdwBp45A.js → erDiagram-RLTQ6QDP-D0lubMB8.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-nujx8XUw.js → file-types-ovF7t8nV.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-DbOwRaT9.js → flowDiagram-HODETNUW-mXqeEtep.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-CG8obc7O.js → ganttDiagram-EL5Y4UJY-DgaN-2yI.js} +1 -1
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-ru6aSu_g.js → gitGraphDiagram-WWUBYQGX-DadHzOkE.js} +1 -1
- package/runtime/webapp/dist/assets/{history-DaBh5_SJ.js → history-2RoN6nWx.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-Cm9jq1yo.js → image-plus-CXCEGNi1.js} +1 -1
- package/runtime/webapp/dist/assets/index-CpGyXlyq.js +500 -0
- package/runtime/webapp/dist/assets/index-DVbDWmLY.css +1 -0
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-Crx1iSbW.js → infoDiagram-27XIBGKW-BPI3rG8e.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-ClQPMEk5.js → ishikawaDiagram-5VMMS53U-Cwhwp05P.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-DHso2Xht.js → journeyDiagram-3NMN7TZE-QeAIq98x.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-D6psIAhv.js → kanban-definition-UXKFOSKX-BIV4KQ7w.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-B6AVZ9v9.js → layout-DKTcc92n.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-CEZOUjlB.js → linear-CpgQ-vzl.js} +1 -1
- package/runtime/webapp/dist/assets/{list-todo-D9ChIz0f.js → list-todo-D0DdvDdC.js} +1 -1
- package/runtime/webapp/dist/assets/{locate-fixed-2R48MVg_.js → locate-fixed-PoSWErYt.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-DH0df9xk.js → mermaid.core-DPgekxsA.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-QWt8leZC.js → mindmap-definition-YA3MSWOX-DScKRrns.js} +1 -1
- package/runtime/webapp/dist/assets/{mobileViewport-CKvpvxYc.js → mobileViewport-DoX18BIb.js} +1 -1
- package/runtime/webapp/dist/assets/new-session-window-DUUfKFZL.js +191 -0
- package/runtime/webapp/dist/assets/page-DLgrc2Gr.js +86 -0
- package/runtime/webapp/dist/assets/{pause-ddt7BLlm.js → pause-MzDWMIVk.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-JNBt0nDx.js → pegDiagram-XKGWAZYB-CqPnfn9Z.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-g0hnDqNp.js → pieDiagram-E7YTZNPT-Dj4dMQpn.js} +1 -1
- package/runtime/webapp/dist/assets/{pin-BTP5lC_c.js → pin-eP6N3HGu.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-mLZASjSm.js → quadrantDiagram-AXDQQJYC-C0OXtsjw.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-CAXNAZhB.js → railroadDiagram-O6MQD6OU-CxmJTI75.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-BC8y1ZXE.js → requirementDiagram-BXWQKSXE-D27ZD0hS.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-CHFTy38a.js → rotate-ccw-Dd67-fEX.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-CFCtRFDl.js → rotate-cw-bCvV5qtp.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-Boi5NPjT.js → sankeyDiagram-P5KCCOFB-BYXYPMbk.js} +1 -1
- package/runtime/webapp/dist/assets/{send-CzCncLlt.js → send-C3-_dAtW.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-D4ccoVEB.js → sequenceDiagram-WJ2MYXX4-DjCzHsAJ.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-C0KfSCDl.js → session-dashboard-B5GjyN-j.js} +1 -1
- package/runtime/webapp/dist/assets/{session-tree-CTzXmV6R.js → session-tree-gH5384IE.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-Da6EGdIt.js → shield-check-BH6xSJDa.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-Cd5jIVgK.js → sizeCapture-INFHLROL-C3V_IQDa.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-DXlmaNwu.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-DyhRB_e0.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-Bkfs9Mi-.js → timeline-definition-24CTP7MA-CTMVRkSU.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-C682LDDA.js → trash-2-BjV9I5RI.js} +1 -1
- package/runtime/webapp/dist/assets/{types-CfOuS-6l.js → types-BB9G1ZRH.js} +1 -1
- package/runtime/webapp/dist/assets/{use-session-activity-C9Cn92Hj.js → use-session-activity-CXZ-jSdd.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-APWT64sw.js → vennDiagram-4TSXK5OY-CGMGxBWQ.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-H7xLoxwM.js → wardleyDiagram-VM6X3IG4-B9lm4S79.js} +1 -1
- package/runtime/webapp/dist/assets/{web-DG022HwJ.js → web-BZLTjbMF.js} +1 -1
- package/runtime/webapp/dist/assets/{web-CT8e03DV.js → web-DBwe40Mg.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-CAHZbD5s.js → x-C0vSZPZg.js} +2 -2
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-DIrxZ4UJ.js → xychartDiagram-S5SC5T6Z-D4dVIGis.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-CRN76HNZ.js → zoom-out-CwT1ni3i.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/.next/static/chunks/106.b2050e53421795af.js +0 -1
- package/runtime/.next/static/chunks/20.7bd5212774091396.js +0 -1
- package/runtime/.next/static/chunks/34.40a88b70750502fb.js +0 -1
- package/runtime/.next/static/chunks/753-90c7dd1ba08be9be.js +0 -1
- package/runtime/.next/static/chunks/app/web/layout-1127176e7e88e395.js +0 -1
- package/runtime/.next/static/chunks/app/web/page-f008ab6dfeab7ce7.js +0 -1
- package/runtime/.next/static/chunks/main-app-07d67f2d4e96ecb8.js +0 -1
- package/runtime/webapp/dist/assets/AIHubView-CNKanNZa.js +0 -1
- package/runtime/webapp/dist/assets/AiHubPane-Coyn3P-J.js +0 -1
- package/runtime/webapp/dist/assets/App-BGIGpBp3.js +0 -68
- package/runtime/webapp/dist/assets/CalendarPage-D0oaq2_l.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-CE8OML-A.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationDashboard-CV18iiBO.js +0 -1
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BxFS-0sF.js +0 -1
- package/runtime/webapp/dist/assets/FlowStudioPane-CVP0Q6zR.js +0 -5
- package/runtime/webapp/dist/assets/HostProjectPicker-DUUgM2Cm.js +0 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-DOLG1XEp.css +0 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-DwJhkRJd.js +0 -1
- package/runtime/webapp/dist/assets/RemoteDesktopPage-Cqsea4X7.js +0 -1
- package/runtime/webapp/dist/assets/TodoPage-CG__S6_l.js +0 -1
- package/runtime/webapp/dist/assets/channel-D66Qxmo0.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BAX0-S6b.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BAX0-S6b.js +0 -1
- package/runtime/webapp/dist/assets/index-BAGzBXQc.css +0 -1
- package/runtime/webapp/dist/assets/index-YrEOkxAg.js +0 -500
- package/runtime/webapp/dist/assets/new-session-window-CiRwM3Od.js +0 -191
- package/runtime/webapp/dist/assets/page-Cd9ci9uo.js +0 -86
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dh6coc1l.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-BzriATjP.js +0 -8
- /package/runtime/.next/static/chunks/{3cc391f0-4ff886cecc4d6d79.js → 3cc391f0-6cd083946ece156d.js} +0 -0
- /package/runtime/.next/static/chunks/app/_not-found/{page-c0fc9b6684d4f0ca.js → page-cffe4d626dcef5fd.js} +0 -0
- /package/runtime/.next/static/{_rMvYWpbWkNWrFkCQx3rK → edQT7mZJvA1tWdwiMLtSI}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{_rMvYWpbWkNWrFkCQx3rK → edQT7mZJvA1tWdwiMLtSI}/_ssgManifest.js +0 -0
|
@@ -5093,6 +5093,12 @@ class UpdateChecker {
|
|
|
5093
5093
|
const previous = this.status;
|
|
5094
5094
|
this.publish({ ...previous, phase: "checking", message: undefined });
|
|
5095
5095
|
try {
|
|
5096
|
+
if (this.options.client === "ios") {
|
|
5097
|
+
const version = await this.options.readStoreVersion();
|
|
5098
|
+
this.checkedAt = this.now();
|
|
5099
|
+
const base = { currentVersion: this.options.currentVersion, checkedAt: this.checkedAt };
|
|
5100
|
+
return this.publish(compareAgentRoamVersions(version, base.currentVersion) > 0 ? { ...base, phase: "available", targetVersion: version } : { ...base, phase: "up-to-date" });
|
|
5101
|
+
}
|
|
5096
5102
|
const candidate = this.options.client === "cli" ? await this.readCliRelease(this.options.platform) : await readAppRelease(this.options, this.options.currentVersion, this.fetchImpl, this.timeoutMs);
|
|
5097
5103
|
this.checkedAt = this.now();
|
|
5098
5104
|
if (!candidate) {
|
|
@@ -5101,9 +5107,10 @@ class UpdateChecker {
|
|
|
5101
5107
|
return this.publish({ phase: "available", currentVersion: this.options.currentVersion, targetVersion: candidate.version, checkedAt: this.checkedAt, asset: candidate.asset });
|
|
5102
5108
|
} catch {
|
|
5103
5109
|
this.checkedAt = this.now();
|
|
5110
|
+
const failure = { checkedAt: this.checkedAt, message: "检查更新失败,请稍后重试。" };
|
|
5104
5111
|
if (["available", "up-to-date"].includes(previous.phase))
|
|
5105
|
-
return this.publish({ ...previous,
|
|
5106
|
-
return this.publish({ phase: "unavailable", currentVersion: this.options.currentVersion,
|
|
5112
|
+
return this.publish({ ...previous, ...failure });
|
|
5113
|
+
return this.publish({ phase: "unavailable", currentVersion: this.options.currentVersion, ...failure });
|
|
5107
5114
|
}
|
|
5108
5115
|
}
|
|
5109
5116
|
async readCliRelease(platform) {
|
|
@@ -24751,4 +24758,4 @@ export {
|
|
|
24751
24758
|
AGENTROAM_CLI_INSTALL_BASE
|
|
24752
24759
|
};
|
|
24753
24760
|
|
|
24754
|
-
//# debugId=
|
|
24761
|
+
//# debugId=65802CD86EE757C264756E2164756E21
|
|
@@ -29911,6 +29911,7 @@ import {
|
|
|
29911
29911
|
buildSessionQueryIndex as buildSessionQueryIndex2,
|
|
29912
29912
|
cleanEngineHistory,
|
|
29913
29913
|
computeSessionHistoryRevision as computeSessionHistoryRevision2,
|
|
29914
|
+
CONTEXT_COMPACTION_PROGRESS_ID,
|
|
29914
29915
|
decodeSessionHistoryAnchor as decodeSessionHistoryAnchor2,
|
|
29915
29916
|
normalizeToolPermissionMode as normalizeToolPermissionMode2,
|
|
29916
29917
|
parsePersistedQuestionReplies as parsePersistedQuestionReplies2,
|
|
@@ -31153,6 +31154,8 @@ ${JSON.stringify([{
|
|
|
31153
31154
|
import { open as open3 } from "node:fs/promises";
|
|
31154
31155
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
31155
31156
|
var MAX_BUFFERED_LINE_BYTES = 256 * 1024;
|
|
31157
|
+
var MAX_IMAGE_GENERATION_LINE_BYTES = 32 * 1024 * 1024;
|
|
31158
|
+
var IMAGE_GENERATION_LINE_HEADER = /"type"\s*:\s*"item_completed".*"item"\s*:\s*\{\s*"type"\s*:\s*"(?:Extension"\s*,\s*"kind"\s*:\s*"image_gen\.generation|ImageGeneration)"/;
|
|
31156
31159
|
var MAX_FINAL_ANSWER_LOOKBACK_BYTES = 1024 * 1024;
|
|
31157
31160
|
var START_EVENTS = new Set(["task_started", "turn_started"]);
|
|
31158
31161
|
var TERMINAL_EVENTS = new Set(["task_complete", "turn_complete", "turn_aborted"]);
|
|
@@ -31172,14 +31175,14 @@ function codexRolloutActivityFromLine(line) {
|
|
|
31172
31175
|
} catch {}
|
|
31173
31176
|
return "unknown";
|
|
31174
31177
|
}
|
|
31175
|
-
async function readCodexRolloutFinalizingAnswer(path,
|
|
31178
|
+
async function readCodexRolloutFinalizingAnswer(path, isVisibleAnswer) {
|
|
31176
31179
|
let handle = null;
|
|
31177
31180
|
try {
|
|
31178
31181
|
handle = await open3(path, "r");
|
|
31179
31182
|
const metadata = await handle.stat();
|
|
31180
31183
|
if (!metadata.isFile() || metadata.size === 0)
|
|
31181
31184
|
return null;
|
|
31182
|
-
const length = Math.min(metadata.size,
|
|
31185
|
+
const length = Math.min(metadata.size, MAX_FINAL_ANSWER_LOOKBACK_BYTES);
|
|
31183
31186
|
const start = metadata.size - length;
|
|
31184
31187
|
const buffer = Buffer.allocUnsafe(length);
|
|
31185
31188
|
const { bytesRead } = await handle.read(buffer, 0, length, start);
|
|
@@ -31191,7 +31194,7 @@ async function readCodexRolloutFinalizingAnswer(path, maxBytes = MAX_FINAL_ANSWE
|
|
|
31191
31194
|
if (start > 0)
|
|
31192
31195
|
lines.shift();
|
|
31193
31196
|
for (let index = lines.length - 1;index >= 0; index -= 1) {
|
|
31194
|
-
const signal = codexRolloutTailSignalFromLine(lines[index]);
|
|
31197
|
+
const signal = codexRolloutTailSignalFromLine(lines[index], isVisibleAnswer);
|
|
31195
31198
|
if (signal.boundary)
|
|
31196
31199
|
return null;
|
|
31197
31200
|
if (signal.finalAnswer)
|
|
@@ -31206,7 +31209,7 @@ async function readCodexRolloutFinalizingAnswer(path, maxBytes = MAX_FINAL_ANSWE
|
|
|
31206
31209
|
});
|
|
31207
31210
|
}
|
|
31208
31211
|
}
|
|
31209
|
-
function codexRolloutTailSignalFromLine(line) {
|
|
31212
|
+
function codexRolloutTailSignalFromLine(line, isVisibleAnswer) {
|
|
31210
31213
|
if (!line.trim())
|
|
31211
31214
|
return { boundary: false, finalAnswer: null };
|
|
31212
31215
|
try {
|
|
@@ -31217,11 +31220,15 @@ function codexRolloutTailSignalFromLine(line) {
|
|
|
31217
31220
|
return { boundary: true, finalAnswer: null };
|
|
31218
31221
|
}
|
|
31219
31222
|
if (payload.type === "item_completed") {
|
|
31220
|
-
|
|
31223
|
+
const item = asRecord2(payload.item);
|
|
31224
|
+
const finalAnswer = asString(item.type).toLowerCase() === "agentmessage" ? finalAnswerFromItem(item, payload.turn_id) : null;
|
|
31225
|
+
return { boundary: false, finalAnswer };
|
|
31221
31226
|
}
|
|
31222
31227
|
}
|
|
31223
|
-
if (record2.type === "response_item") {
|
|
31224
|
-
|
|
31228
|
+
if (record2.type === "response_item" && isVisibleAnswer) {
|
|
31229
|
+
const candidate = finalAnswerFromItem(payload, payload.turn_id);
|
|
31230
|
+
if (candidate && isVisibleAnswer(candidate))
|
|
31231
|
+
return { boundary: false, finalAnswer: candidate };
|
|
31225
31232
|
}
|
|
31226
31233
|
} catch {}
|
|
31227
31234
|
return { boundary: false, finalAnswer: null };
|
|
@@ -31232,7 +31239,7 @@ function finalAnswerFromItem(value, fallbackTurnId) {
|
|
|
31232
31239
|
const role = typeof item.role === "string" ? item.role.toLowerCase() : "";
|
|
31233
31240
|
if (type !== "agentmessage" && type !== "message" || role && role !== "assistant")
|
|
31234
31241
|
return null;
|
|
31235
|
-
if (item.phase !== "final_answer")
|
|
31242
|
+
if (item.phase !== "final_answer" || item.delivery === "async")
|
|
31236
31243
|
return null;
|
|
31237
31244
|
const turnId = asString(asRecord2(item.internal_chat_message_metadata_passthrough).turn_id) || asString(item.turn_id) || asString(fallbackTurnId);
|
|
31238
31245
|
if (!turnId)
|
|
@@ -31383,6 +31390,7 @@ class CodexRolloutCommentaryReader {
|
|
|
31383
31390
|
class CodexRolloutUserMessageReader {
|
|
31384
31391
|
chunkSize;
|
|
31385
31392
|
cache = new Map;
|
|
31393
|
+
pending = new Map;
|
|
31386
31394
|
constructor(chunkSize = DEFAULT_CHUNK_SIZE) {
|
|
31387
31395
|
this.chunkSize = chunkSize;
|
|
31388
31396
|
if (!Number.isInteger(chunkSize) || chunkSize <= 0) {
|
|
@@ -31390,6 +31398,18 @@ class CodexRolloutUserMessageReader {
|
|
|
31390
31398
|
}
|
|
31391
31399
|
}
|
|
31392
31400
|
async read(path) {
|
|
31401
|
+
const current = this.pending.get(path);
|
|
31402
|
+
if (current)
|
|
31403
|
+
return current;
|
|
31404
|
+
const reading = this.readFile(path);
|
|
31405
|
+
this.pending.set(path, reading);
|
|
31406
|
+
try {
|
|
31407
|
+
return await reading;
|
|
31408
|
+
} finally {
|
|
31409
|
+
this.pending.delete(path);
|
|
31410
|
+
}
|
|
31411
|
+
}
|
|
31412
|
+
async readFile(path) {
|
|
31393
31413
|
let handle = null;
|
|
31394
31414
|
try {
|
|
31395
31415
|
handle = await open3(path, "r");
|
|
@@ -31403,12 +31423,15 @@ class CodexRolloutUserMessageReader {
|
|
|
31403
31423
|
identity: identity2,
|
|
31404
31424
|
size: 0,
|
|
31405
31425
|
mtimeMs: metadata.mtimeMs,
|
|
31406
|
-
trailing:
|
|
31426
|
+
trailing: [],
|
|
31427
|
+
trailingBytes: 0,
|
|
31428
|
+
trailingLimit: MAX_BUFFERED_LINE_BYTES,
|
|
31407
31429
|
trailingOverflow: false,
|
|
31408
31430
|
turns: new Map,
|
|
31409
31431
|
itemIds: new Set,
|
|
31410
|
-
|
|
31411
|
-
completionDurations: new Map
|
|
31432
|
+
timelineItems: new Map,
|
|
31433
|
+
completionDurations: new Map,
|
|
31434
|
+
generatedImages: new Map
|
|
31412
31435
|
};
|
|
31413
31436
|
await this.readAppended(handle, entry, metadata.size);
|
|
31414
31437
|
entry.size = metadata.size;
|
|
@@ -31426,14 +31449,18 @@ class CodexRolloutUserMessageReader {
|
|
|
31426
31449
|
});
|
|
31427
31450
|
}
|
|
31428
31451
|
}
|
|
31429
|
-
async
|
|
31452
|
+
async readTimelineItems(path) {
|
|
31430
31453
|
await this.read(path);
|
|
31431
|
-
return [...this.cache.get(path)?.
|
|
31454
|
+
return [...this.cache.get(path)?.timelineItems.values() ?? []];
|
|
31432
31455
|
}
|
|
31433
31456
|
async readCompletionDurations(path) {
|
|
31434
31457
|
await this.read(path);
|
|
31435
31458
|
return new Map(this.cache.get(path)?.completionDurations);
|
|
31436
31459
|
}
|
|
31460
|
+
async readGeneratedImages(path) {
|
|
31461
|
+
await this.read(path);
|
|
31462
|
+
return new Map(Array.from(this.cache.get(path)?.generatedImages ?? [], ([turnId, paths]) => [turnId, [...paths]]));
|
|
31463
|
+
}
|
|
31437
31464
|
async readAppended(handle, entry, targetSize) {
|
|
31438
31465
|
let offset = entry.size;
|
|
31439
31466
|
while (offset < targetSize) {
|
|
@@ -31443,31 +31470,46 @@ class CodexRolloutUserMessageReader {
|
|
|
31443
31470
|
if (bytesRead <= 0)
|
|
31444
31471
|
break;
|
|
31445
31472
|
offset += bytesRead;
|
|
31446
|
-
|
|
31447
|
-
|
|
31448
|
-
const newline = content.indexOf(10);
|
|
31473
|
+
const content = chunk.subarray(0, bytesRead);
|
|
31474
|
+
for (let start = 0;start < content.length; ) {
|
|
31475
|
+
const newline = content.indexOf(10, start);
|
|
31476
|
+
const part = content.subarray(start, newline < 0 ? content.length : newline);
|
|
31477
|
+
if (!entry.trailingOverflow) {
|
|
31478
|
+
if (newline >= 0 && entry.trailingBytes === 0 && part.length <= MAX_BUFFERED_LINE_BYTES) {
|
|
31479
|
+
this.consumeLine(entry, part.toString("utf8"));
|
|
31480
|
+
} else {
|
|
31481
|
+
this.bufferLinePart(entry, part);
|
|
31482
|
+
if (newline >= 0 && !entry.trailingOverflow) {
|
|
31483
|
+
this.consumeLine(entry, Buffer.concat(entry.trailing, entry.trailingBytes).toString("utf8"));
|
|
31484
|
+
}
|
|
31485
|
+
}
|
|
31486
|
+
}
|
|
31449
31487
|
if (newline < 0)
|
|
31450
|
-
|
|
31451
|
-
|
|
31488
|
+
break;
|
|
31489
|
+
entry.trailing = [];
|
|
31490
|
+
entry.trailingBytes = 0;
|
|
31491
|
+
entry.trailingLimit = MAX_BUFFERED_LINE_BYTES;
|
|
31452
31492
|
entry.trailingOverflow = false;
|
|
31453
|
-
|
|
31454
|
-
content = Buffer.concat([entry.trailing, content]);
|
|
31455
|
-
}
|
|
31456
|
-
const lastNewline = content.lastIndexOf(10);
|
|
31457
|
-
if (lastNewline < 0) {
|
|
31458
|
-
entry.trailing = content.length <= MAX_BUFFERED_LINE_BYTES ? Buffer.from(content) : Buffer.alloc(0);
|
|
31459
|
-
entry.trailingOverflow = content.length > MAX_BUFFERED_LINE_BYTES;
|
|
31460
|
-
continue;
|
|
31493
|
+
start = newline + 1;
|
|
31461
31494
|
}
|
|
31462
|
-
const complete = content.subarray(0, lastNewline).toString("utf8").split(`
|
|
31463
|
-
`);
|
|
31464
|
-
for (const line of complete)
|
|
31465
|
-
this.consumeLine(entry, line);
|
|
31466
|
-
const trailing = content.subarray(lastNewline + 1);
|
|
31467
|
-
entry.trailing = trailing.length <= MAX_BUFFERED_LINE_BYTES ? Buffer.from(trailing) : Buffer.alloc(0);
|
|
31468
|
-
entry.trailingOverflow = trailing.length > MAX_BUFFERED_LINE_BYTES;
|
|
31469
31495
|
}
|
|
31470
31496
|
}
|
|
31497
|
+
bufferLinePart(entry, part) {
|
|
31498
|
+
const size = entry.trailingBytes + part.length;
|
|
31499
|
+
if (size > entry.trailingLimit && entry.trailingLimit === MAX_BUFFERED_LINE_BYTES) {
|
|
31500
|
+
const header = Buffer.concat([...entry.trailing, part], 4096).toString("utf8");
|
|
31501
|
+
if (IMAGE_GENERATION_LINE_HEADER.test(header))
|
|
31502
|
+
entry.trailingLimit = MAX_IMAGE_GENERATION_LINE_BYTES;
|
|
31503
|
+
}
|
|
31504
|
+
if (size > entry.trailingLimit) {
|
|
31505
|
+
entry.trailing = [];
|
|
31506
|
+
entry.trailingBytes = 0;
|
|
31507
|
+
entry.trailingOverflow = true;
|
|
31508
|
+
return;
|
|
31509
|
+
}
|
|
31510
|
+
entry.trailing.push(part);
|
|
31511
|
+
entry.trailingBytes = size;
|
|
31512
|
+
}
|
|
31471
31513
|
consumeLine(entry, line) {
|
|
31472
31514
|
if (!line.trim())
|
|
31473
31515
|
return;
|
|
@@ -31521,15 +31563,26 @@ class CodexRolloutUserMessageReader {
|
|
|
31521
31563
|
if (!turnId)
|
|
31522
31564
|
return;
|
|
31523
31565
|
const itemId = asString(item.id);
|
|
31524
|
-
|
|
31525
|
-
|
|
31566
|
+
const itemType = asString(item.type).toLowerCase();
|
|
31567
|
+
if (item.status === "completed" && typeof item.savedPath === "string" && item.savedPath && (itemType === "imagegeneration" || itemType === "extension" && item.kind === "image_gen.generation")) {
|
|
31568
|
+
const paths = entry.generatedImages.get(turnId) ?? new Set;
|
|
31569
|
+
paths.add(item.savedPath);
|
|
31570
|
+
entry.generatedImages.set(turnId, paths);
|
|
31571
|
+
return;
|
|
31572
|
+
}
|
|
31573
|
+
const isCompaction = itemType === "contextcompaction";
|
|
31574
|
+
const isAsyncQuestion = itemType === "agentmessage" && item.delivery === "async" && Array.isArray(item.questions);
|
|
31575
|
+
if (itemId && (isCompaction || isAsyncQuestion)) {
|
|
31576
|
+
if (isCompaction && entry.timelineItems.has(itemId))
|
|
31577
|
+
return;
|
|
31578
|
+
entry.timelineItems.set(itemId, {
|
|
31526
31579
|
turnId,
|
|
31527
31580
|
afterUserItemId: entry.turns.get(turnId)?.at(-1)?.itemId,
|
|
31528
|
-
item: { ...item, type: "agentMessage", id: itemId }
|
|
31581
|
+
item: isCompaction ? { type: "contextCompaction", id: itemId } : { ...item, type: "agentMessage", id: itemId }
|
|
31529
31582
|
});
|
|
31530
31583
|
return;
|
|
31531
31584
|
}
|
|
31532
|
-
if (
|
|
31585
|
+
if (itemType !== "usermessage" || !Array.isArray(item.content))
|
|
31533
31586
|
return;
|
|
31534
31587
|
if (itemId && entry.itemIds.has(itemId))
|
|
31535
31588
|
return;
|
|
@@ -31904,6 +31957,7 @@ class CodexRuntimeAdapter {
|
|
|
31904
31957
|
const response = await this.discoveryClient.request("thread/list", {
|
|
31905
31958
|
cursor,
|
|
31906
31959
|
limit: 200,
|
|
31960
|
+
modelProviders: [],
|
|
31907
31961
|
sortKey: "recency_at",
|
|
31908
31962
|
sortDirection: "desc"
|
|
31909
31963
|
});
|
|
@@ -31962,6 +32016,7 @@ class CodexRuntimeAdapter {
|
|
|
31962
32016
|
const response = await this.discoveryClient.request("thread/list", {
|
|
31963
32017
|
cursor: query2.cursor ?? null,
|
|
31964
32018
|
limit: workspacePageSize(query2.limit),
|
|
32019
|
+
modelProviders: [],
|
|
31965
32020
|
sortKey: "recency_at",
|
|
31966
32021
|
sortDirection: "desc",
|
|
31967
32022
|
cwd: workspace.roots
|
|
@@ -31985,6 +32040,7 @@ class CodexRuntimeAdapter {
|
|
|
31985
32040
|
const response = await this.discoveryClient.request("thread/list", {
|
|
31986
32041
|
cursor: query2.cursor ?? null,
|
|
31987
32042
|
limit: workspacePageSize(query2.limit),
|
|
32043
|
+
modelProviders: [],
|
|
31988
32044
|
sortKey: "recency_at",
|
|
31989
32045
|
sortDirection: "desc",
|
|
31990
32046
|
cwd: [cwd]
|
|
@@ -32015,7 +32071,7 @@ class CodexRuntimeAdapter {
|
|
|
32015
32071
|
platform: this.platform
|
|
32016
32072
|
});
|
|
32017
32073
|
const rolloutActivities = await this.rolloutActivityReader.readMany(this.platform === "win32" ? rolloutPaths([response.thread], this.platform) : openFiles);
|
|
32018
|
-
const turns = await this.withCompletionDurations(response.thread.turns, response.thread.path);
|
|
32074
|
+
const turns = await this.withGeneratedImages(await this.withCompletionDurations(response.thread.turns, response.thread.path), nativeSessionId, response.thread.path);
|
|
32019
32075
|
return {
|
|
32020
32076
|
...this.toSummary(response.thread, openFiles, rolloutActivities),
|
|
32021
32077
|
messages: await codexTurnsToMessages(turns, { nativeSessionId }),
|
|
@@ -32061,7 +32117,7 @@ class CodexRuntimeAdapter {
|
|
|
32061
32117
|
let summary = this.toSummary(meta.thread, openFiles, rolloutActivities);
|
|
32062
32118
|
const isLatestCorePage = query2.view === "core" && !query2.before && !query2.after && !query2.anchor;
|
|
32063
32119
|
if (isLatestCorePage && summary.status === "running" && meta.thread.path) {
|
|
32064
|
-
const finalizing = await readCodexRolloutFinalizingAnswer(meta.thread.path);
|
|
32120
|
+
const finalizing = await readCodexRolloutFinalizingAnswer(meta.thread.path, (candidate) => Boolean(candidate.itemId) && ascTurns.find((turn) => turn.id === candidate.turnId)?.items.some((item) => item.type === "agentMessage" && item.id === candidate.itemId && item.text === candidate.text && item.delivery !== "async" && item.phase !== "commentary") === true);
|
|
32065
32121
|
if (finalizing)
|
|
32066
32122
|
this.finalizingAnswers.set(nativeSessionId, finalizing);
|
|
32067
32123
|
}
|
|
@@ -32075,15 +32131,24 @@ class CodexRuntimeAdapter {
|
|
|
32075
32131
|
const skeleton = [];
|
|
32076
32132
|
for (const turn of ascTurns) {
|
|
32077
32133
|
const legacyFinalAgentMessage = codexLegacyFinalAgentMessage(turn);
|
|
32134
|
+
let hasFinalAnswer = false;
|
|
32078
32135
|
for (const item of turn.items ?? []) {
|
|
32079
32136
|
if (item.type === "userMessage")
|
|
32080
32137
|
skeleton.push({ turnId: turn.id, role: "user" });
|
|
32138
|
+
else if (item.type === "contextCompaction")
|
|
32139
|
+
skeleton.push({ turnId: turn.id, role: "assistant", compaction: true });
|
|
32081
32140
|
else if (item.id && questionHistory.has(item.id)) {
|
|
32082
32141
|
skeleton.push(...questionHistory.get(item.id).map(() => ({ turnId: turn.id, role: "assistant" })));
|
|
32083
|
-
} else if (codexPlanText(item)
|
|
32142
|
+
} else if (codexPlanText(item)) {
|
|
32084
32143
|
skeleton.push({ turnId: turn.id, role: "assistant" });
|
|
32144
|
+
} else if (isCodexCoreAgentMessage(item, turn.status, legacyFinalAgentMessage) && typeof item.text === "string" && item.text.trim()) {
|
|
32145
|
+
skeleton.push({ turnId: turn.id, role: "assistant" });
|
|
32146
|
+
hasFinalAnswer = true;
|
|
32085
32147
|
}
|
|
32086
32148
|
}
|
|
32149
|
+
if (!hasFinalAnswer && turn.generatedImagePaths?.length) {
|
|
32150
|
+
skeleton.push({ turnId: turn.id, role: "assistant" });
|
|
32151
|
+
}
|
|
32087
32152
|
}
|
|
32088
32153
|
const skeletonMessages = codexSummaryTurnsToMessages(ascTurns, undefined, nativeSessionId, questionHistory);
|
|
32089
32154
|
const revision = computeSessionHistoryRevision2(skeletonMessages);
|
|
@@ -32106,7 +32171,8 @@ class CodexRuntimeAdapter {
|
|
|
32106
32171
|
}
|
|
32107
32172
|
const hydratedTurn = {
|
|
32108
32173
|
...turn,
|
|
32109
|
-
items: hydratedItems
|
|
32174
|
+
items: hydratedItems,
|
|
32175
|
+
generatedImagePaths: undefined
|
|
32110
32176
|
};
|
|
32111
32177
|
const messages4 = (await codexTurnsToMessages([hydratedTurn], {
|
|
32112
32178
|
nativeSessionId,
|
|
@@ -32259,11 +32325,11 @@ class CodexRuntimeAdapter {
|
|
|
32259
32325
|
rolloutPath = detail.thread.path;
|
|
32260
32326
|
}
|
|
32261
32327
|
if (!rolloutPath)
|
|
32262
|
-
return turns;
|
|
32328
|
+
return this.withGeneratedImages(turns, nativeSessionId, rolloutPath);
|
|
32263
32329
|
const userMessages = await this.rolloutUserMessageReader.read(rolloutPath);
|
|
32264
32330
|
const merged = mergeCodexSummaryUserMessages(turns, userMessages, readHandoffs);
|
|
32265
|
-
const
|
|
32266
|
-
for (const message of [...
|
|
32331
|
+
const timelineItems = await this.rolloutUserMessageReader.readTimelineItems?.(rolloutPath) ?? [];
|
|
32332
|
+
for (const message of [...timelineItems].reverse()) {
|
|
32267
32333
|
const turn = merged.find((candidate) => candidate.id === message.turnId);
|
|
32268
32334
|
if (!turn)
|
|
32269
32335
|
continue;
|
|
@@ -32274,9 +32340,39 @@ class CodexRuntimeAdapter {
|
|
|
32274
32340
|
}
|
|
32275
32341
|
const userIndex = turn.items.findIndex((item2) => item2.type === "userMessage" && item2.id === message.afterUserItemId);
|
|
32276
32342
|
const lastUserIndex = turn.items.reduce((found, item2, index) => item2.type === "userMessage" ? index : found, -1);
|
|
32277
|
-
|
|
32343
|
+
const beforeInput = item.type === "contextCompaction" && !message.afterUserItemId;
|
|
32344
|
+
turn.items.splice(beforeInput ? 0 : (userIndex >= 0 ? userIndex : lastUserIndex) + 1, 0, item);
|
|
32278
32345
|
}
|
|
32279
|
-
return this.withCompletionDurations(merged, rolloutPath);
|
|
32346
|
+
return this.withGeneratedImages(await this.withCompletionDurations(merged, rolloutPath), nativeSessionId, rolloutPath);
|
|
32347
|
+
}
|
|
32348
|
+
async withGeneratedImages(turns, nativeSessionId, rolloutPath) {
|
|
32349
|
+
if (!nativeSessionId || basename5(nativeSessionId) !== nativeSessionId || nativeSessionId === "." || nativeSessionId === "..") {
|
|
32350
|
+
return turns;
|
|
32351
|
+
}
|
|
32352
|
+
const fromRollout = rolloutPath ? await this.rolloutUserMessageReader.readGeneratedImages?.(rolloutPath) : undefined;
|
|
32353
|
+
const pathsByTurn = turns.map((turn) => [...new Set([
|
|
32354
|
+
...fromRollout?.get(turn.id) ?? [],
|
|
32355
|
+
...(turn.items ?? []).flatMap((item) => item.type === "imageGeneration" && item.status === "completed" && typeof item.savedPath === "string" ? [item.savedPath] : [])
|
|
32356
|
+
])]);
|
|
32357
|
+
if (!pathsByTurn.some((paths) => paths.length))
|
|
32358
|
+
return turns;
|
|
32359
|
+
const generatedRoot = join7(this.codexHome, "generated_images");
|
|
32360
|
+
const threadRoot = join7(generatedRoot, nativeSessionId);
|
|
32361
|
+
const canonicalRoot = await realpath(generatedRoot).catch(() => null);
|
|
32362
|
+
if (!canonicalRoot)
|
|
32363
|
+
return turns;
|
|
32364
|
+
const canonicalThreadRoot = join7(canonicalRoot, nativeSessionId);
|
|
32365
|
+
return Promise.all(turns.map(async (turn, index) => {
|
|
32366
|
+
const images = [];
|
|
32367
|
+
for (const path of pathsByTurn[index]) {
|
|
32368
|
+
if (!isAbsolute2(path) || !resolve5(path).startsWith(threadRoot + sep))
|
|
32369
|
+
continue;
|
|
32370
|
+
const canonicalPath = await realpath(path).catch(() => null);
|
|
32371
|
+
if (canonicalPath?.startsWith(canonicalThreadRoot + sep) && IMAGE_MIME_TYPES[extname(canonicalPath).toLowerCase()])
|
|
32372
|
+
images.push(canonicalPath);
|
|
32373
|
+
}
|
|
32374
|
+
return images.length ? { ...turn, generatedImagePaths: [...new Set(images)] } : turn;
|
|
32375
|
+
}));
|
|
32280
32376
|
}
|
|
32281
32377
|
goalHandoffs(nativeSessionId) {
|
|
32282
32378
|
let handoffs;
|
|
@@ -32295,6 +32391,12 @@ class CodexRuntimeAdapter {
|
|
|
32295
32391
|
const newestFirstPaths = [];
|
|
32296
32392
|
const seen = new Set;
|
|
32297
32393
|
for (const turn of [...turns].reverse()) {
|
|
32394
|
+
for (const path of [...turn.generatedImagePaths ?? []].reverse()) {
|
|
32395
|
+
if (seen.has(path))
|
|
32396
|
+
continue;
|
|
32397
|
+
seen.add(path);
|
|
32398
|
+
newestFirstPaths.push(path);
|
|
32399
|
+
}
|
|
32298
32400
|
for (const item of [...turn.items ?? []].reverse()) {
|
|
32299
32401
|
if (item.type !== "userMessage")
|
|
32300
32402
|
continue;
|
|
@@ -32509,7 +32611,11 @@ class CodexRuntimeAdapter {
|
|
|
32509
32611
|
continue;
|
|
32510
32612
|
if (skeleton[pointer]?.role !== role)
|
|
32511
32613
|
continue;
|
|
32512
|
-
message.
|
|
32614
|
+
const isCompaction = message.name === "__compaction_checkpoint__";
|
|
32615
|
+
if (Boolean(skeleton[pointer].compaction) !== isCompaction)
|
|
32616
|
+
continue;
|
|
32617
|
+
if (!isCompaction)
|
|
32618
|
+
message.historyId = sessionHistoryMessageId2(pointer, message);
|
|
32513
32619
|
pointer += 1;
|
|
32514
32620
|
}
|
|
32515
32621
|
}
|
|
@@ -33920,6 +34026,7 @@ function codexSummaryTurnsToMessages(turns, imageAttachments, nativeSessionId, q
|
|
|
33920
34026
|
const messages3 = [];
|
|
33921
34027
|
for (const turn of turns) {
|
|
33922
34028
|
let segmentIndex = 0;
|
|
34029
|
+
let answer;
|
|
33923
34030
|
const legacyFinalAgentMessage = codexLegacyFinalAgentMessage(turn);
|
|
33924
34031
|
for (const item of turn.items ?? []) {
|
|
33925
34032
|
const planText = codexPlanText(item);
|
|
@@ -33948,6 +34055,8 @@ function codexSummaryTurnsToMessages(turns, imageAttachments, nativeSessionId, q
|
|
|
33948
34055
|
}
|
|
33949
34056
|
});
|
|
33950
34057
|
segmentIndex += 1;
|
|
34058
|
+
} else if (item.type === "contextCompaction") {
|
|
34059
|
+
messages3.push(codexCompactionMessage(item.id));
|
|
33951
34060
|
} else if (item.id && questionHistory.has(item.id)) {
|
|
33952
34061
|
messages3.push(...questionHistory.get(item.id));
|
|
33953
34062
|
} else if (planText) {
|
|
@@ -33957,16 +34066,35 @@ function codexSummaryTurnsToMessages(turns, imageAttachments, nativeSessionId, q
|
|
|
33957
34066
|
...codexAgentMessagePresentation(item, turn.id),
|
|
33958
34067
|
...turn.status === "completed" ? { forkPoint: { turnId: turn.id } } : {}
|
|
33959
34068
|
};
|
|
33960
|
-
|
|
34069
|
+
answer = {
|
|
33961
34070
|
role: "assistant",
|
|
33962
34071
|
content: item.text,
|
|
33963
34072
|
...presentation ? { presentation } : {}
|
|
33964
|
-
}
|
|
34073
|
+
};
|
|
34074
|
+
messages3.push(answer);
|
|
33965
34075
|
}
|
|
33966
34076
|
}
|
|
34077
|
+
if (turn.generatedImagePaths?.length) {
|
|
34078
|
+
attachCodexGeneratedImages(messages3, turn, answer, turn.generatedImagePaths.map((path) => imageAttachments?.get(path) ?? { type: "image", name: basename5(path), unavailable: true }));
|
|
34079
|
+
}
|
|
33967
34080
|
}
|
|
33968
34081
|
return messages3;
|
|
33969
34082
|
}
|
|
34083
|
+
function attachCodexGeneratedImages(messages3, turn, answer, attachments) {
|
|
34084
|
+
if (answer) {
|
|
34085
|
+
answer.presentation = { ...answer.presentation, attachments };
|
|
34086
|
+
return;
|
|
34087
|
+
}
|
|
34088
|
+
messages3.push({
|
|
34089
|
+
role: "assistant",
|
|
34090
|
+
content: "",
|
|
34091
|
+
presentation: {
|
|
34092
|
+
nativeMessageId: `codex-generated-images:${turn.id}`,
|
|
34093
|
+
attachments,
|
|
34094
|
+
...turn.status === "completed" ? { forkPoint: { turnId: turn.id } } : {}
|
|
34095
|
+
}
|
|
34096
|
+
});
|
|
34097
|
+
}
|
|
33970
34098
|
function truncateUtf8(value, maxBytes) {
|
|
33971
34099
|
if (Buffer.byteLength(value, "utf8") <= maxBytes)
|
|
33972
34100
|
return value;
|
|
@@ -34017,15 +34145,25 @@ function boundedToolArguments(value, maxBytes) {
|
|
|
34017
34145
|
preview: truncateUtf8(serialized, maxBytes - 64)
|
|
34018
34146
|
};
|
|
34019
34147
|
}
|
|
34148
|
+
function codexCompactionMessage(itemId) {
|
|
34149
|
+
return {
|
|
34150
|
+
role: "assistant",
|
|
34151
|
+
name: "__compaction_checkpoint__",
|
|
34152
|
+
content: JSON.stringify({ summary: "上下文已压缩" }),
|
|
34153
|
+
...itemId ? { historyId: `${CONTEXT_COMPACTION_PROGRESS_ID}:${itemId}` } : {}
|
|
34154
|
+
};
|
|
34155
|
+
}
|
|
34020
34156
|
async function codexTurnsToMessages(turns, options = {}) {
|
|
34021
34157
|
const messages3 = [];
|
|
34022
34158
|
const questionHistory = options.questionHistory ?? codexQuestionHistory(turns, options.nativeSessionId);
|
|
34023
34159
|
for (const turn of turns) {
|
|
34024
34160
|
let segmentIndex = -1;
|
|
34161
|
+
let answer;
|
|
34162
|
+
const legacyFinalAgentMessage = codexLegacyFinalAgentMessage(turn);
|
|
34025
34163
|
for (const item of turn.items ?? []) {
|
|
34026
34164
|
const planText = codexPlanText(item);
|
|
34027
34165
|
if (item.type === "contextCompaction") {
|
|
34028
|
-
messages3.push(
|
|
34166
|
+
messages3.push(codexCompactionMessage(item.id));
|
|
34029
34167
|
continue;
|
|
34030
34168
|
}
|
|
34031
34169
|
if (item.type === "userMessage") {
|
|
@@ -34060,7 +34198,7 @@ async function codexTurnsToMessages(turns, options = {}) {
|
|
|
34060
34198
|
...nativePresentation,
|
|
34061
34199
|
executionTrace: { turnId: turn.id, segmentIndex: Math.max(0, segmentIndex) }
|
|
34062
34200
|
} : nativePresentation;
|
|
34063
|
-
|
|
34201
|
+
const message = {
|
|
34064
34202
|
role: "assistant",
|
|
34065
34203
|
content: item.text,
|
|
34066
34204
|
...codexTraceHistoryId(turn.id, "agent", item.id) ? {
|
|
@@ -34070,7 +34208,10 @@ async function codexTurnsToMessages(turns, options = {}) {
|
|
|
34070
34208
|
...presentation,
|
|
34071
34209
|
...turn.status === "completed" && item.phase !== "commentary" ? { forkPoint: { turnId: turn.id } } : {}
|
|
34072
34210
|
}
|
|
34073
|
-
}
|
|
34211
|
+
};
|
|
34212
|
+
messages3.push(message);
|
|
34213
|
+
if (isCodexCoreAgentMessage(item, turn.status, legacyFinalAgentMessage))
|
|
34214
|
+
answer = message;
|
|
34074
34215
|
} else if (item.type === "reasoning" && Array.isArray(item.summary)) {
|
|
34075
34216
|
const reasoning = item.summary.flatMap((entry, sectionIndex) => typeof entry === "string" && entry.trim() ? [{
|
|
34076
34217
|
itemId: item.id ?? `reasoning-${sectionIndex}`,
|
|
@@ -34139,6 +34280,10 @@ async function codexTurnsToMessages(turns, options = {}) {
|
|
|
34139
34280
|
}
|
|
34140
34281
|
}
|
|
34141
34282
|
}
|
|
34283
|
+
if (turn.generatedImagePaths?.length) {
|
|
34284
|
+
const attachments = await Promise.all(turn.generatedImagePaths.map(loadCodexImageAttachment));
|
|
34285
|
+
attachCodexGeneratedImages(messages3, turn, answer, attachments);
|
|
34286
|
+
}
|
|
34142
34287
|
}
|
|
34143
34288
|
return messages3;
|
|
34144
34289
|
}
|
|
@@ -34243,9 +34388,10 @@ function codexProgressNotificationToEvent(message) {
|
|
|
34243
34388
|
const completed = message.method === "item/completed";
|
|
34244
34389
|
return {
|
|
34245
34390
|
type: "runtime_progress",
|
|
34246
|
-
progressId:
|
|
34391
|
+
progressId: CONTEXT_COMPACTION_PROGRESS_ID,
|
|
34392
|
+
...typeof item.id === "string" && item.id ? { itemId: item.id } : {},
|
|
34247
34393
|
phase: "status",
|
|
34248
|
-
label: completed ? "
|
|
34394
|
+
label: completed ? "上下文已压缩" : "正在压缩上下文",
|
|
34249
34395
|
status: completed ? "completed" : "running"
|
|
34250
34396
|
};
|
|
34251
34397
|
}
|
|
@@ -52662,4 +52808,4 @@ export {
|
|
|
52662
52808
|
AcpCliRuntimeAdapter
|
|
52663
52809
|
};
|
|
52664
52810
|
|
|
52665
|
-
//# debugId=
|
|
52811
|
+
//# debugId=225CBB4D2877659E64756E2164756E21
|