agentroam-runtime-darwin-arm64 0.2.0-preview.80 → 0.2.0-preview.82
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 +8 -8
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +5 -5
- 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 -0
- package/runtime/.next/server/app/api/agent/composer/route.js.nft.json +1 -0
- 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 +2 -2
- 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/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 +2 -2
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- 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 +36 -35
- package/runtime/.next/server/chunks/5303.js +2 -2
- package/runtime/.next/server/chunks/5801.js +1 -1
- package/runtime/.next/server/chunks/9119.js +3 -3
- 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/server-reference-manifest.json +1 -1
- package/runtime/.next/static/chunks/app/web/{error-f313c4014e78cef5.js → error-828d278147a0619d.js} +1 -1
- package/runtime/.next/static/chunks/app/web/layout-1127176e7e88e395.js +1 -0
- package/runtime/.next/static/chunks/app/web/{page-2e962377e57d3383.js → page-f008ab6dfeab7ce7.js} +1 -1
- package/runtime/.next/static/chunks/{main-68faabab5d101471.js → main-9c08f7656f9692e6.js} +1 -1
- package/runtime/.next/static/chunks/main-app-07d67f2d4e96ecb8.js +1 -0
- package/runtime/lib/remote-control/application/paced-video-sender.mjs +20 -1
- package/runtime/lib/remote-control/application/remote-video-session.mjs +18 -4
- package/runtime/lib/remote-control/helper-manager.mjs +36 -2
- package/runtime/lib/remote-control/infrastructure/native-video-encoder.mjs +15 -2
- package/runtime/lib/remote-control/infrastructure/werift-video-transport.mjs +3 -1
- package/runtime/lib/remote-control/macos-helper-app.mjs +85 -15
- package/runtime/lib/remote-control/macos-helper-permissions.mjs +113 -0
- package/runtime/lib/remote-control/remote-authorization.mjs +2 -2
- package/runtime/lib/remote-control/remote-video-signal.mjs +2 -0
- package/runtime/lib/todo-completion-worker.mjs +45 -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 +129 -129
- package/runtime/node_modules/@agent/core/dist/index.js +286 -68
- package/runtime/node_modules/@agent/native-runtime/dist/index.js +444 -127
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +75 -79
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +52 -52
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-2g5j09ba.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-59ydwk0g.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-q4cwy1ja.mjs → core-664d5mmy.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-zn1abzvs.mjs → core-70sfhqm6.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-95gcz3n1.mjs +38 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ew5sfvfe.mjs +39 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gjhs7gf6.mjs +20 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-kvdt1szx.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-p654hjkr.mjs +22 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-q9bjbxkv.mjs +19 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-samdvsjh.mjs +33 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x6bt758j.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +12 -12
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +22 -22
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +26 -26
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +22 -23
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +84 -83
- package/runtime/node_modules/caniuse-lite/package.json +1 -1
- package/runtime/node_modules/mediabunny/README.md +4 -0
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +185 -127
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +11 -11
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +12 -12
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +185 -127
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +185 -127
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.worker.js +8 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +4 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/aes.js +6 -4
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +6 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +17 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +2 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +12 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +34 -18
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +3 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +3 -8
- package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +5 -12
- package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +19 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +4 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +22 -13
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +2 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +70 -65
- 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/dist/modules/src/worker.js +26 -0
- package/runtime/node_modules/mediabunny/package.json +1 -1
- package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +5 -0
- package/runtime/node_modules/mediabunny/src/aes.ts +7 -4
- package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +7 -0
- package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +19 -6
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +2 -1
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +15 -1
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +37 -19
- package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +4 -0
- package/runtime/node_modules/mediabunny/src/media-sink.ts +3 -12
- package/runtime/node_modules/mediabunny/src/media-source.ts +5 -20
- package/runtime/node_modules/mediabunny/src/misc.ts +26 -5
- package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +5 -0
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +30 -19
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +2 -2
- package/runtime/node_modules/mediabunny/src/segmented-input.ts +76 -79
- package/runtime/node_modules/mediabunny/src/version.ts +1 -1
- package/runtime/node_modules/mediabunny/src/worker.ts +28 -0
- package/runtime/package-lock.json +162 -162
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/assets/AIHubView-CNKanNZa.js +1 -0
- package/runtime/webapp/dist/assets/{AgentManager-dXI31b0a.js → AgentManager-B8TTqJaL.js} +2 -2
- package/runtime/webapp/dist/assets/AiHubPane-Coyn3P-J.js +1 -0
- package/runtime/webapp/dist/assets/App-BGIGpBp3.js +68 -0
- package/runtime/webapp/dist/assets/BrowserLivePanel-DnzJOz5w.js +61 -0
- package/runtime/webapp/dist/assets/CalendarPage-D0oaq2_l.js +1 -0
- package/runtime/webapp/dist/assets/{CalendarView-QfbrlL9X.js → CalendarView-QXZbXnXA.js} +3 -3
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-CE8OML-A.js +1 -0
- package/runtime/webapp/dist/assets/CollaborationDashboard-CV18iiBO.js +1 -0
- package/runtime/webapp/dist/assets/{CollaborationPage-B1tiqgnG.js → CollaborationPage-B2mIAc-h.js} +2 -2
- package/runtime/webapp/dist/assets/{FilePreview-CPY6dP8Q.js → FilePreview-BCEiERA1.js} +9 -9
- package/runtime/webapp/dist/assets/{FileTree-BBgrOian.js → FileTree-CMbs1Gj3.js} +2 -2
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BxFS-0sF.js +1 -0
- package/runtime/webapp/dist/assets/FlowStudioPane-CVP0Q6zR.js +5 -0
- package/runtime/webapp/dist/assets/HostProjectPicker-DUUgM2Cm.js +1 -0
- package/runtime/webapp/dist/assets/{LSPServerList-B-R7HDSP.js → LSPServerList-COMVmsvb.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-CTc0iAwT.js → MCPServerList-C_juD6B4.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-Dzh_miRv.js → MemoryViewer-Et2vysSN.js} +1 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-DwJhkRJd.js +1 -0
- package/runtime/webapp/dist/assets/RemoteDesktopPage-Cqsea4X7.js +1 -0
- package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-BA_HQv3V.js → RemoteDesktopTabBridge-BFzNwpUn.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-BvFSI9OF.js → RunningSessionsIcon-D_cOqmmk.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-DcPPoXe2.js → SessionDashboard-yjdEKypJ.js} +2 -2
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-CjoeUy-v.js → SessionDashboardBridge-Kc_1Et9r.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-DmdXDQUm.js → SettingsPanel-t26XhKHP.js} +2 -2
- package/runtime/webapp/dist/assets/{SkillManager-CS_skFZj.js → SkillManager-nZU7b1sc.js} +1 -1
- package/runtime/webapp/dist/assets/{TaskPaneTerminal-BFHDRCb9.js → TaskPaneTerminal-BPaCKman.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-Dr_nY9pI.js → TerminalPane-CiIpI1Id.js} +1 -1
- package/runtime/webapp/dist/assets/TodoPage-CG__S6_l.js +1 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-FEEApB15.js → abnfDiagram-VCTEODGH-DmKjGVfG.js} +1 -1
- package/runtime/webapp/dist/assets/{arc-CycwMc2c.js → arc-D6bpvBke.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-BFq9JapX.js → architectureDiagram-5GKGNRK7-NEKc2BYf.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-DkOJ55Ag.js → blockDiagram-I7D4REHJ-V6G00twZ.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-CRvi_3RM.js → c4Diagram-7LVT6UL2-CojA33V5.js} +1 -1
- package/runtime/webapp/dist/assets/{calendar-days-CLwKstxM.js → calendar-days-DXE_2mLa.js} +1 -1
- package/runtime/webapp/dist/assets/channel-D66Qxmo0.js +1 -0
- package/runtime/webapp/dist/assets/{check-8EVJMrTV.js → check-UipgMBET.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-down-ChNxfI2x.js → chevron-down-Dvinwg2S.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-right-Cbkc_d70.js → chevron-right-BGU3tcLA.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-Cklzvs8u.js → chunk-2Q5K7J3B-DObpPEgk.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-NxozE5UP.js → chunk-5VM5RSS4-PaTzAg6w.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-Dyb8E7YM.js → chunk-F27PBJKO-Pn4gut94.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BqbMMc1n.js → chunk-IMKFNOWR-nRaVFzK9.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-do0R2H6U.js → chunk-JWPE2WC7-CxssjKKN.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-B2HIaynf.js → chunk-POPQ4Y6H-CweDXr-B.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-C_zmjkwn.js → chunk-SVP7TREG-C7T3FGE-.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-Dh2bZgM1.js → chunk-TICWLB2K-Nc0H-0_V.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-CnqciVDz.js → chunk-XXDRQBXY-D_GQGF5g.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BAX0-S6b.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BAX0-S6b.js +1 -0
- package/runtime/webapp/dist/assets/{client-I0ZVCjOI.js → client-Bb0hpbIR.js} +1 -1
- package/runtime/webapp/dist/assets/{codeSyntax-C8n4_KZS.js → codeSyntax-DHonp3tF.js} +3 -3
- package/runtime/webapp/dist/assets/{collaboration-lVxWL5ce.js → collaboration-e_iziKU1.js} +1 -1
- package/runtime/webapp/dist/assets/composer-file-routing-CWyT7leB.js +6 -0
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-CulKVUkj.js → cose-bilkent-JH36ORCC-Ac_FBan4.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-C1LUI1_G.js → cynefin-OW5HDTMX-vr6c389q.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-D3Ymzw_P.js → cynefinDiagram-5FMLGOSQ-sXmUCrp_.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DRaL0cGu.js → dagre-GXQ25YYZ-B0DmGxDv.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-D8gLHoZo.js → diagram-S7CK7UJ4-Dn-2jJ6S.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-CaVU0aQT.js → diagram-UQ7AKVKN-BcasYsju.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-LFAKRvZz.js → diagram-VSXAHHWV-DCgGkc82.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-DXpxUERc.js → diagram-VX7I27RA-Cjs0Ny4i.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-vAiik55G.js → diagram-Z3DM3KII-0nyddp0v.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-MaFL7Kgb.js → ebnfDiagram-PWID7BFC-By7gCUsz.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-DuEu79B3.js → erDiagram-RLTQ6QDP-DdwBp45A.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-ZVLWtslN.js → file-types-nujx8XUw.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BAQ6nP2D.js → flowDiagram-HODETNUW-DbOwRaT9.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-C48VBnPy.js → ganttDiagram-EL5Y4UJY-CG8obc7O.js} +3 -3
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-BfWAh9Kr.js → gitGraphDiagram-WWUBYQGX-ru6aSu_g.js} +1 -1
- package/runtime/webapp/dist/assets/{history-D4E3D_aM.js → history-DaBh5_SJ.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-DQV_EEAN.js → image-plus-Cm9jq1yo.js} +1 -1
- package/runtime/webapp/dist/assets/index-BAGzBXQc.css +1 -0
- package/runtime/webapp/dist/assets/index-YrEOkxAg.js +500 -0
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-BM7P_-u_.js → infoDiagram-27XIBGKW-Crx1iSbW.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-Cwd8XR-p.js → ishikawaDiagram-5VMMS53U-ClQPMEk5.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-MOgiksTh.js → journeyDiagram-3NMN7TZE-DHso2Xht.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-DulC5OLL.js → kanban-definition-UXKFOSKX-D6psIAhv.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-Dku9sXQ7.js → layout-B6AVZ9v9.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-B3-dddD7.js → linear-CEZOUjlB.js} +1 -1
- package/runtime/webapp/dist/assets/{list-todo-Bik5IY2r.js → list-todo-D9ChIz0f.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-C5C-IzGK.js → loader-circle-CAHZbD5s.js} +1 -1
- package/runtime/webapp/dist/assets/{locate-fixed-CHkezEEh.js → locate-fixed-2R48MVg_.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-CRRXKysA.js → mermaid.core-DH0df9xk.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-CaaP-nEb.js → mindmap-definition-YA3MSWOX-QWt8leZC.js} +1 -1
- package/runtime/webapp/dist/assets/{mobileViewport-CekmYKqS.js → mobileViewport-CKvpvxYc.js} +1 -1
- package/runtime/webapp/dist/assets/new-session-window-CiRwM3Od.js +191 -0
- package/runtime/webapp/dist/assets/{new-session-window-BfDMd-h3.css → new-session-window-DIU2v1uh.css} +1 -1
- package/runtime/webapp/dist/assets/{page-_fFyRId-.js → page-Cd9ci9uo.js} +6 -6
- package/runtime/webapp/dist/assets/{pause-BsmUCuwZ.js → pause-ddt7BLlm.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-BqybPEwk.js → pegDiagram-XKGWAZYB-JNBt0nDx.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-BX1H2lh2.js → pieDiagram-E7YTZNPT-g0hnDqNp.js} +1 -1
- package/runtime/webapp/dist/assets/{pin-BsEEYq8M.js → pin-BTP5lC_c.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-Btnywv1k.js → quadrantDiagram-AXDQQJYC-mLZASjSm.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-Da_TV1ER.js → railroadDiagram-O6MQD6OU-CAXNAZhB.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-5V1Aow9h.js → requirementDiagram-BXWQKSXE-BC8y1ZXE.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-BbSby0GQ.js → rotate-ccw-CHFTy38a.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-BMdX-ln4.js → rotate-cw-CFCtRFDl.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-D_OIVihV.js → sankeyDiagram-P5KCCOFB-Boi5NPjT.js} +1 -1
- package/runtime/webapp/dist/assets/{send-Cb7EWSJF.js → send-CzCncLlt.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-LKeF5Mri.js → sequenceDiagram-WJ2MYXX4-D4ccoVEB.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-BFqNDCc8.js → session-dashboard-C0KfSCDl.js} +1 -1
- package/runtime/webapp/dist/assets/{session-tree-BK_qaCnb.js → session-tree-CTzXmV6R.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-C-r87aMq.js → shield-check-Da6EGdIt.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-B6j7Q_MN.js → sizeCapture-INFHLROL-Cd5jIVgK.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-zhPFqHdQ.js → stateDiagram-D77RDMKH-DXlmaNwu.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dh6coc1l.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-C_FCENx1.js → swimlanes-42K2YHIH-DyhRB_e0.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-BzriATjP.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-C3DBXjDU.js → timeline-definition-24CTP7MA-Bkfs9Mi-.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-DjggJGbw.js → trash-2-C682LDDA.js} +1 -1
- package/runtime/webapp/dist/assets/{types-BQCEWNQz.js → types-CfOuS-6l.js} +1 -1
- package/runtime/webapp/dist/assets/{use-session-activity-BbTXGW7Z.js → use-session-activity-C9Cn92Hj.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CssdTIB0.js → vennDiagram-4TSXK5OY-APWT64sw.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-C58K2vVU.js → wardleyDiagram-VM6X3IG4-H7xLoxwM.js} +1 -1
- package/runtime/webapp/dist/assets/{web-B4y8vdRZ.js → web-CT8e03DV.js} +1 -1
- package/runtime/webapp/dist/assets/{web-D9rJZXHW.js → web-DG022HwJ.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-CQi8bD6A.js → xychartDiagram-S5SC5T6Z-DIrxZ4UJ.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-iMMWRXJs.js → zoom-out-CRN76HNZ.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/ws-server.mjs +5 -0
- package/runtime/.next/static/chunks/app/web/layout-80fa1b5f4c96b0b5.js +0 -1
- package/runtime/.next/static/chunks/main-app-ea4c5663714943e2.js +0 -1
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0e6mn0ck.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0ssqfy51.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82ghff97.mjs +0 -39
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82yhcz2x.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b8jr1m8m.mjs +0 -23
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-cj0jh226.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ebtbxtjf.mjs +0 -28
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-pb4erfqh.mjs +0 -42
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-rs058s2g.mjs +0 -16
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-w6pv4szb.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wjeh40nr.mjs +0 -20
- package/runtime/webapp/dist/assets/AIHubView-CM6ugXG3.js +0 -1
- package/runtime/webapp/dist/assets/AiHubPane-DFzC3nbd.js +0 -1
- package/runtime/webapp/dist/assets/App-mF6ELC07.js +0 -68
- package/runtime/webapp/dist/assets/BrowserLivePanel-CamAULwS.js +0 -61
- package/runtime/webapp/dist/assets/CalendarPage-BbYdGYWn.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-CWhmFQtA.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationDashboard-XL5SnFOu.js +0 -1
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BXDuKlrL.js +0 -1
- package/runtime/webapp/dist/assets/FlowStudioPane-lnjLcd9c.js +0 -5
- package/runtime/webapp/dist/assets/HostProjectPicker-DN_vGqQb.js +0 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-zjqAUfKb.js +0 -1
- package/runtime/webapp/dist/assets/RemoteDesktopPage-9AhztqA2.js +0 -1
- package/runtime/webapp/dist/assets/TodoPage-guIvBCW0.js +0 -1
- package/runtime/webapp/dist/assets/artifact-links-B0ApmgK6.js +0 -2
- package/runtime/webapp/dist/assets/channel-BwDuyJO4.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BfyV8P0w.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BfyV8P0w.js +0 -1
- package/runtime/webapp/dist/assets/composer-file-routing-qSvJpT-v.js +0 -6
- package/runtime/webapp/dist/assets/download-BE31-Qm0.js +0 -6
- package/runtime/webapp/dist/assets/index-DSgLFE4Q.js +0 -489
- package/runtime/webapp/dist/assets/index-zQk0NCEB.css +0 -1
- package/runtime/webapp/dist/assets/new-session-window-Dgl7UWPR.js +0 -190
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DWnBZAiI.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-DOZCbCJP.js +0 -8
- package/runtime/webapp/dist/assets/x-BYUglEo9.js +0 -6
- /package/runtime/.next/static/{57IUKkg-db8mOGDMma8be → _rMvYWpbWkNWrFkCQx3rK}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{57IUKkg-db8mOGDMma8be → _rMvYWpbWkNWrFkCQx3rK}/_ssgManifest.js +0 -0
|
@@ -1314,6 +1314,7 @@ function normalizeSessionMessageRunOptions(value) {
|
|
|
1314
1314
|
model: { id: model.id, ...typeof model.providerID === "string" && model.providerID ? { providerID: model.providerID } : {} }
|
|
1315
1315
|
} : {},
|
|
1316
1316
|
...effort ? { reasoningEffort: effort } : {},
|
|
1317
|
+
...raw.codexMode === "plan" || raw.codexMode === "default" ? { codexMode: raw.codexMode } : {},
|
|
1317
1318
|
...typeof raw.profileId === "string" && raw.profileId.trim() ? { profileId: raw.profileId } : {},
|
|
1318
1319
|
...attachments?.length ? { attachments } : {}
|
|
1319
1320
|
};
|
|
@@ -3204,16 +3205,31 @@ class RemoteVideoReceiverPolicy {
|
|
|
3204
3205
|
scale = 1;
|
|
3205
3206
|
latencyPressure = 0;
|
|
3206
3207
|
sourceEdge = 0;
|
|
3207
|
-
|
|
3208
|
-
|
|
3208
|
+
fpsCeiling = 30;
|
|
3209
|
+
displayedEdge = 0;
|
|
3210
|
+
reset(fpsCeiling = 30) {
|
|
3211
|
+
this.fpsCeiling = this.maxFps = fpsCeiling;
|
|
3209
3212
|
this.maxEdge = undefined;
|
|
3210
3213
|
this.sequence = -1;
|
|
3211
3214
|
this.lastSampleAt = this.sizeAt = -Infinity;
|
|
3212
3215
|
this.pressure = this.healthy = this.latencyPressure = 0;
|
|
3213
3216
|
this.scale = 1;
|
|
3214
|
-
this.sourceEdge = 0;
|
|
3217
|
+
this.sourceEdge = this.displayedEdge = 0;
|
|
3218
|
+
}
|
|
3219
|
+
reduceSizeForMotion(now) {
|
|
3220
|
+
const edge = Math.min(this.displayedEdge, this.maxEdge ?? Infinity);
|
|
3221
|
+
if (edge <= 640)
|
|
3222
|
+
return false;
|
|
3223
|
+
if (now - this.sizeAt < 5000)
|
|
3224
|
+
return true;
|
|
3225
|
+
const next = EDGES.filter((value) => value <= edge * 0.8).at(-1) ?? 640;
|
|
3226
|
+
this.scale = Math.max(0.1, this.scale * next / edge);
|
|
3227
|
+
this.maxEdge = next;
|
|
3228
|
+
this.sizeAt = now;
|
|
3229
|
+
this.healthy = 0;
|
|
3230
|
+
return true;
|
|
3215
3231
|
}
|
|
3216
|
-
observe(sample, quality, fps, now) {
|
|
3232
|
+
observe(sample, quality, fps, now, preferFrameRate = false) {
|
|
3217
3233
|
if (!sample || !Number.isSafeInteger(sample.sequence) || sample.sequence <= this.sequence || !Number.isFinite(now))
|
|
3218
3234
|
return false;
|
|
3219
3235
|
this.sequence = sample.sequence;
|
|
@@ -3225,20 +3241,23 @@ class RemoteVideoReceiverPolicy {
|
|
|
3225
3241
|
return false;
|
|
3226
3242
|
this.lastSampleAt = now;
|
|
3227
3243
|
const oldFps = this.maxFps, oldEdge = this.maxEdge;
|
|
3244
|
+
if (sample.width && sample.height)
|
|
3245
|
+
this.displayedEdge = Math.max(sample.width, sample.height);
|
|
3228
3246
|
const validInterval = sample.intervalMs !== undefined && sample.intervalMs >= 250 && sample.intervalMs <= 5000;
|
|
3229
3247
|
const evidence = validInterval && (sample.decodedFrames ?? 0) >= 3;
|
|
3230
3248
|
const minimumBufferMs = Math.max(0, sample.jitterBufferMinimumMs ?? 0);
|
|
3231
3249
|
const delayed = validInterval && (sample.decodedFrames ?? 0) >= 1 && (sample.jitterBufferMs ?? 0) >= Math.max(200, minimumBufferMs + 100);
|
|
3232
3250
|
this.latencyPressure = delayed ? this.latencyPressure + 1 : 0;
|
|
3233
|
-
const frameBudget = 1000 / clamp(fps, 5,
|
|
3251
|
+
const frameBudget = 1000 / clamp(fps, 5, this.fpsCeiling);
|
|
3234
3252
|
const overloaded = evidence && ((sample.decodeMs ?? 0) > frameBudget * 0.8 || (sample.droppedRatio ?? 0) >= 0.08 || (sample.presentationDelayMs ?? 0) >= Math.max(50, frameBudget * 0.8));
|
|
3235
3253
|
const knownHealthy = evidence && (sample.jitterBufferMs ?? 0) < Math.max(120, minimumBufferMs + 100) && [sample.decodeMs, sample.droppedRatio, sample.presentationDelayMs].some(Number.isFinite) && (sample.decodeMs ?? 0) < 20 && (sample.droppedRatio ?? 0) < 0.02 && (sample.presentationDelayMs ?? 0) < Math.max(20, frameBudget * 0.6);
|
|
3236
3254
|
if (overloaded) {
|
|
3237
3255
|
this.healthy = 0;
|
|
3238
3256
|
this.pressure += 1;
|
|
3239
|
-
if (this.pressure >= 2)
|
|
3240
|
-
this.maxFps = this.maxFps > 15 ? 15 : 5;
|
|
3241
|
-
|
|
3257
|
+
if (this.pressure >= 2 && !(preferFrameRate && this.reduceSizeForMotion(now))) {
|
|
3258
|
+
this.maxFps = this.maxFps > 30 ? 30 : this.maxFps > 15 ? 15 : 5;
|
|
3259
|
+
}
|
|
3260
|
+
if (!preferFrameRate && this.pressure >= 4 && now - this.sizeAt >= 5000) {
|
|
3242
3261
|
this.scale = Math.max(0.4, this.scale * 0.75);
|
|
3243
3262
|
this.pressure = 0;
|
|
3244
3263
|
}
|
|
@@ -3246,7 +3265,7 @@ class RemoteVideoReceiverPolicy {
|
|
|
3246
3265
|
this.pressure = 0;
|
|
3247
3266
|
this.healthy += 1;
|
|
3248
3267
|
if (this.healthy >= 5) {
|
|
3249
|
-
this.maxFps = this.maxFps < 15 ? 15 : 30;
|
|
3268
|
+
this.maxFps = this.maxFps < 15 ? 15 : this.maxFps < 30 ? 30 : this.fpsCeiling;
|
|
3250
3269
|
this.scale = Math.min(1, this.scale / 0.75);
|
|
3251
3270
|
this.healthy = 0;
|
|
3252
3271
|
}
|
|
@@ -3300,14 +3319,16 @@ function clamp2(value, min, max) {
|
|
|
3300
3319
|
return Math.max(min, Math.min(max, value));
|
|
3301
3320
|
}
|
|
3302
3321
|
function lowerFps(value) {
|
|
3322
|
+
if (value > 30)
|
|
3323
|
+
return 30;
|
|
3303
3324
|
if (value > 15)
|
|
3304
3325
|
return 15;
|
|
3305
3326
|
return 5;
|
|
3306
3327
|
}
|
|
3307
|
-
function raiseFps(value) {
|
|
3328
|
+
function raiseFps(value, ceiling) {
|
|
3308
3329
|
if (value < 15)
|
|
3309
3330
|
return 15;
|
|
3310
|
-
return 30;
|
|
3331
|
+
return value < 30 ? 30 : ceiling;
|
|
3311
3332
|
}
|
|
3312
3333
|
function networkPressure(network, bitRate, baselineRttMs) {
|
|
3313
3334
|
const lossRate = clamp2(finite(network.lossRate), 0, 1);
|
|
@@ -3323,6 +3344,7 @@ function networkPressure(network, bitRate, baselineRttMs) {
|
|
|
3323
3344
|
class RemoteVideoPolicy {
|
|
3324
3345
|
capabilities;
|
|
3325
3346
|
quality;
|
|
3347
|
+
motionMode = "balanced";
|
|
3326
3348
|
bitRate;
|
|
3327
3349
|
receiver = new RemoteVideoReceiverPolicy;
|
|
3328
3350
|
activityFps = 30;
|
|
@@ -3353,19 +3375,28 @@ class RemoteVideoPolicy {
|
|
|
3353
3375
|
this.lastPressureAt = -Infinity;
|
|
3354
3376
|
this.lastPressureLossRate = 0;
|
|
3355
3377
|
this.lastPressureQueueDelayMs = 0;
|
|
3356
|
-
this.receiver.reset();
|
|
3378
|
+
this.receiver.reset(this.fpsCeiling);
|
|
3357
3379
|
return this.current("quality");
|
|
3358
3380
|
}
|
|
3381
|
+
get fpsCeiling() {
|
|
3382
|
+
return this.motionMode === "motion-60" && this.capabilities.maxFrameRate === 60 ? 60 : 30;
|
|
3383
|
+
}
|
|
3384
|
+
setMotionMode(mode) {
|
|
3385
|
+
this.motionMode = mode;
|
|
3386
|
+
this.activityFps = this.pressureFps = this.fpsCeiling;
|
|
3387
|
+
this.receiver.reset(this.fpsCeiling);
|
|
3388
|
+
}
|
|
3359
3389
|
setCapabilities(capabilities) {
|
|
3390
|
+
const previous = this.fpsCeiling;
|
|
3360
3391
|
Object.assign(this.capabilities, capabilities);
|
|
3392
|
+
if (previous !== this.fpsCeiling)
|
|
3393
|
+
this.setMotionMode(this.motionMode);
|
|
3361
3394
|
this.preferredCodec = this.capabilities.codecPreferences.includes("high") ? "high" : "baseline";
|
|
3362
3395
|
}
|
|
3363
3396
|
resetSession() {
|
|
3364
|
-
this.
|
|
3397
|
+
this.setMotionMode("balanced");
|
|
3365
3398
|
this.baselineRttMs = null;
|
|
3366
3399
|
this.bitRate = REMOTE_VIDEO_PROFILES[this.quality].maxBitRate;
|
|
3367
|
-
this.activityFps = 30;
|
|
3368
|
-
this.pressureFps = 30;
|
|
3369
3400
|
this.idleSince = null;
|
|
3370
3401
|
this.motionSamples = 0;
|
|
3371
3402
|
this.healthySamples = 0;
|
|
@@ -3404,7 +3435,7 @@ class RemoteVideoPolicy {
|
|
|
3404
3435
|
noteInteraction(now = Date.now()) {
|
|
3405
3436
|
this.idleSince = null;
|
|
3406
3437
|
this.motionSamples = 0;
|
|
3407
|
-
this.activityFps =
|
|
3438
|
+
this.activityFps = this.fpsCeiling;
|
|
3408
3439
|
if (this.pressureFps <= 5 && this.lastPressureKind === "sender" && now - this.lastPressureAt <= 2500 && this.lastPressureLossRate < 0.02 && this.lastPressureQueueDelayMs < 150) {
|
|
3409
3440
|
this.pressureFps = 15;
|
|
3410
3441
|
}
|
|
@@ -3416,7 +3447,8 @@ class RemoteVideoPolicy {
|
|
|
3416
3447
|
update(observation = {}) {
|
|
3417
3448
|
const now = finite(observation.now, observation.content?.observedAt ?? Date.now());
|
|
3418
3449
|
this.updateActivity(observation, now);
|
|
3419
|
-
const
|
|
3450
|
+
const preferFrameRate = this.motionMode !== "balanced" && this.capabilities.dynamicResolution === true;
|
|
3451
|
+
const receiverChanged = this.receiver.observe(observation.receiver, this.quality, this.current().maxFps, now, preferFrameRate);
|
|
3420
3452
|
const network = observation.network ?? {};
|
|
3421
3453
|
const encoder = observation.encoder;
|
|
3422
3454
|
const rttMs = Math.max(0, finite(network.rttMs));
|
|
@@ -3442,7 +3474,9 @@ class RemoteVideoPolicy {
|
|
|
3442
3474
|
this.bitRate = Math.max(profile.minBitRate, Math.min(reduced, measuredCeiling || reduced));
|
|
3443
3475
|
}
|
|
3444
3476
|
if (encoderPressure || this.congestedSamples >= 2) {
|
|
3445
|
-
|
|
3477
|
+
const reducedSize = preferFrameRate && this.receiver.reduceSizeForMotion(now);
|
|
3478
|
+
if (!reducedSize || severeNetwork)
|
|
3479
|
+
this.pressureFps = lowerFps(this.pressureFps);
|
|
3446
3480
|
this.congestedSamples = 0;
|
|
3447
3481
|
}
|
|
3448
3482
|
return this.current(encoderPressure ? "encoder-pressure" : severeNetwork ? "severe-congestion" : senderPressure ? "sender-pressure" : "congestion");
|
|
@@ -3459,7 +3493,7 @@ class RemoteVideoPolicy {
|
|
|
3459
3493
|
this.bitRate = Math.min(profile.maxBitRate, Math.max(this.bitRate + 1e5, Math.floor(this.bitRate * 1.12)));
|
|
3460
3494
|
}
|
|
3461
3495
|
if (this.capabilities.dynamicFrameRate)
|
|
3462
|
-
this.pressureFps = raiseFps(this.pressureFps);
|
|
3496
|
+
this.pressureFps = raiseFps(this.pressureFps, this.fpsCeiling);
|
|
3463
3497
|
return this.current("recovery");
|
|
3464
3498
|
}
|
|
3465
3499
|
updateActivity(observation, now) {
|
|
@@ -3470,7 +3504,7 @@ class RemoteVideoPolicy {
|
|
|
3470
3504
|
this.idleSince = null;
|
|
3471
3505
|
this.motionSamples += 1;
|
|
3472
3506
|
if (this.motionSamples >= 2)
|
|
3473
|
-
this.activityFps =
|
|
3507
|
+
this.activityFps = this.fpsCeiling;
|
|
3474
3508
|
return;
|
|
3475
3509
|
}
|
|
3476
3510
|
this.motionSamples = 0;
|
|
@@ -3784,7 +3818,7 @@ function remoteVideoEncodeAdmission(maxFps) {
|
|
|
3784
3818
|
return { maxPendingFrames: Number.isFinite(maxFps) && maxFps >= 20 ? 2 : 1 };
|
|
3785
3819
|
}
|
|
3786
3820
|
function remoteVideoKeyframeInterval(maxFps, reason = "steady") {
|
|
3787
|
-
const fps = Number.isFinite(maxFps) ? Math.max(5, Math.min(
|
|
3821
|
+
const fps = Number.isFinite(maxFps) ? Math.max(5, Math.min(60, Math.floor(maxFps))) : 30;
|
|
3788
3822
|
return Math.max(5, Math.min(120, fps * (/pressure|congest|loss/.test(reason) ? 1 : fps <= 5 ? 4 : 2)));
|
|
3789
3823
|
}
|
|
3790
3824
|
// src/domain/live-view/remote-compound-quality.ts
|
|
@@ -4908,14 +4942,98 @@ function validateReleaseManifest(value, candidateVersion, client, platform) {
|
|
|
4908
4942
|
function isRecord(value) {
|
|
4909
4943
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
4910
4944
|
}
|
|
4945
|
+
// src/domain/update/app-release.ts
|
|
4946
|
+
var RELEASES_API = "https://api.github.com/repos/tclxqu-cao/team-agent/releases?per_page=50";
|
|
4947
|
+
var RELEASES_PAGE = `${AGENTROAM_REPOSITORY_BASE}/releases`;
|
|
4948
|
+
var TAG_PATH = `${new URL(RELEASES_PAGE).pathname}/tag/`;
|
|
4949
|
+
function coordinates(tag, target) {
|
|
4950
|
+
const prefix = target.client === "desktop" && tag.startsWith("v") ? "v" : `${target.client}-v`;
|
|
4951
|
+
if (!tag.startsWith(prefix))
|
|
4952
|
+
return null;
|
|
4953
|
+
const version = tag.slice(prefix.length);
|
|
4954
|
+
if (!parseAgentRoamVersion(version))
|
|
4955
|
+
return null;
|
|
4956
|
+
const name = target.client === "desktop-lite" ? "AgentRoam-Lite" : "AgentRoam";
|
|
4957
|
+
const fileName = target.platform === "android" ? `AgentRoam-${version}-android.apk` : target.platform === "darwin-arm64" ? `${name}-${version}-arm64.dmg` : `${name}-Setup-${version}-x64.exe`;
|
|
4958
|
+
return { version, baseUrl: `${AGENTROAM_RELEASE_BASE}/${tag}`, fileName };
|
|
4959
|
+
}
|
|
4960
|
+
function assetFromApi(value, release) {
|
|
4961
|
+
if (!value || typeof value !== "object")
|
|
4962
|
+
return null;
|
|
4963
|
+
const { name, state, size, digest, browser_download_url: url } = value;
|
|
4964
|
+
if (name !== release.fileName || state !== "uploaded" || url !== `${release.baseUrl}/${name}`)
|
|
4965
|
+
return null;
|
|
4966
|
+
if (typeof size !== "number" || !Number.isSafeInteger(size) || size <= 0)
|
|
4967
|
+
return null;
|
|
4968
|
+
if (typeof digest !== "string" || !/^sha256:[a-f0-9]{64}$/.test(digest))
|
|
4969
|
+
return null;
|
|
4970
|
+
return { fileName: name, sha256: digest.slice(7), size, url };
|
|
4971
|
+
}
|
|
4972
|
+
function fromApi(value, target, currentVersion) {
|
|
4973
|
+
if (!Array.isArray(value))
|
|
4974
|
+
throw new Error("Invalid GitHub release list");
|
|
4975
|
+
let best = null;
|
|
4976
|
+
for (const release of value) {
|
|
4977
|
+
if (release?.draft !== false || typeof release.tag_name !== "string" || !release.published_at || !Array.isArray(release.assets))
|
|
4978
|
+
continue;
|
|
4979
|
+
const match = coordinates(release.tag_name, target);
|
|
4980
|
+
if (!match || compareAgentRoamVersions(match.version, best?.version ?? currentVersion) <= 0)
|
|
4981
|
+
continue;
|
|
4982
|
+
const asset = release.assets.map((entry) => assetFromApi(entry, match)).find(Boolean);
|
|
4983
|
+
if (asset)
|
|
4984
|
+
best = { version: match.version, asset };
|
|
4985
|
+
}
|
|
4986
|
+
return best;
|
|
4987
|
+
}
|
|
4988
|
+
async function readAppRelease(target, currentVersion, fetchImpl, timeoutMs) {
|
|
4989
|
+
try {
|
|
4990
|
+
const response = await fetchImpl(RELEASES_API, {
|
|
4991
|
+
headers: { accept: "application/vnd.github+json" },
|
|
4992
|
+
signal: AbortSignal.timeout(timeoutMs)
|
|
4993
|
+
});
|
|
4994
|
+
if (response.ok)
|
|
4995
|
+
return fromApi(await response.json(), target, currentVersion);
|
|
4996
|
+
} catch {}
|
|
4997
|
+
const query = target.client === "desktop-lite" ? "lite" : target.client;
|
|
4998
|
+
const pages = await Promise.allSettled([RELEASES_PAGE, `${RELEASES_PAGE}?q=${query}`].map(async (url) => {
|
|
4999
|
+
const response = await fetchImpl(url, { signal: AbortSignal.timeout(timeoutMs) });
|
|
5000
|
+
if (!response.ok)
|
|
5001
|
+
throw new Error("GitHub releases unavailable");
|
|
5002
|
+
return [...(await response.text()).matchAll(/\bhref="([^"<>]+)"/g)].flatMap(([, href]) => {
|
|
5003
|
+
const path = href.startsWith("https://github.com/") ? href.slice("https://github.com".length) : href;
|
|
5004
|
+
return path.startsWith(TAG_PATH) ? [path.slice(TAG_PATH.length)] : [];
|
|
5005
|
+
});
|
|
5006
|
+
}));
|
|
5007
|
+
const tags = new Set(pages.flatMap((result) => result.status === "fulfilled" ? result.value : []));
|
|
5008
|
+
if (!tags.size)
|
|
5009
|
+
throw new Error("GitHub releases unavailable");
|
|
5010
|
+
const candidates = [...tags].map((tag) => coordinates(tag, target)).filter((release) => Boolean(release && compareAgentRoamVersions(release.version, currentVersion) > 0)).sort((left, right) => compareAgentRoamVersions(right.version, left.version));
|
|
5011
|
+
const signal = AbortSignal.timeout(timeoutMs);
|
|
5012
|
+
for (const release of candidates) {
|
|
5013
|
+
const response = await fetchImpl(`${release.baseUrl}/SHA256SUMS`, { signal });
|
|
5014
|
+
if (response.status === 404)
|
|
5015
|
+
continue;
|
|
5016
|
+
if (!response.ok)
|
|
5017
|
+
throw new Error("Release checksums unavailable");
|
|
5018
|
+
const digest = (await response.text()).split(/\r?\n/).map((line) => /^([a-f0-9]{64})[ \t]+\*?(\S+)$/.exec(line.trim())).find((match) => match?.[2] === release.fileName)?.[1];
|
|
5019
|
+
if (digest)
|
|
5020
|
+
return {
|
|
5021
|
+
version: release.version,
|
|
5022
|
+
asset: { fileName: release.fileName, sha256: digest, url: `${release.baseUrl}/${release.fileName}` }
|
|
5023
|
+
};
|
|
5024
|
+
}
|
|
5025
|
+
return null;
|
|
5026
|
+
}
|
|
5027
|
+
|
|
4911
5028
|
// src/domain/update/update-checker.ts
|
|
5029
|
+
var UPDATE_CHECK_INTERVAL_MS = 5 * 60000;
|
|
5030
|
+
|
|
4912
5031
|
class UpdateChecker {
|
|
4913
5032
|
options;
|
|
4914
5033
|
status;
|
|
4915
5034
|
checkedAt = 0;
|
|
4916
|
-
|
|
5035
|
+
registryCache = new Map;
|
|
4917
5036
|
inFlight = null;
|
|
4918
|
-
channel;
|
|
4919
5037
|
fetchImpl;
|
|
4920
5038
|
now;
|
|
4921
5039
|
random;
|
|
@@ -4928,13 +5046,12 @@ class UpdateChecker {
|
|
|
4928
5046
|
this.options = options;
|
|
4929
5047
|
if (!parseAgentRoamVersion(options.currentVersion))
|
|
4930
5048
|
throw new Error("invalid current AgentRoam version");
|
|
4931
|
-
this.channel = resolveUpdateChannel(options.currentVersion);
|
|
4932
5049
|
this.fetchImpl = options.fetch ?? globalThis.fetch;
|
|
4933
5050
|
this.now = options.now ?? Date.now;
|
|
4934
5051
|
this.random = options.random ?? Math.random;
|
|
4935
5052
|
this.setTimer = options.setTimer ?? setTimeout;
|
|
4936
5053
|
this.timeoutMs = options.timeoutMs ?? 4000;
|
|
4937
|
-
this.intervalMs = options.intervalMs ??
|
|
5054
|
+
this.intervalMs = options.intervalMs ?? UPDATE_CHECK_INTERVAL_MS;
|
|
4938
5055
|
this.status = { phase: "idle", currentVersion: options.currentVersion };
|
|
4939
5056
|
}
|
|
4940
5057
|
getStatus() {
|
|
@@ -4975,68 +5092,57 @@ class UpdateChecker {
|
|
|
4975
5092
|
async runRefresh() {
|
|
4976
5093
|
const previous = this.status;
|
|
4977
5094
|
this.publish({ ...previous, phase: "checking", message: undefined });
|
|
4978
|
-
const controller = new AbortController;
|
|
4979
|
-
const timer = setTimeout(() => controller.abort(), this.timeoutMs);
|
|
4980
|
-
timer.unref?.();
|
|
4981
5095
|
try {
|
|
4982
|
-
const candidate = await this.
|
|
5096
|
+
const candidate = this.options.client === "cli" ? await this.readCliRelease(this.options.platform) : await readAppRelease(this.options, this.options.currentVersion, this.fetchImpl, this.timeoutMs);
|
|
4983
5097
|
this.checkedAt = this.now();
|
|
4984
|
-
if (!candidate
|
|
4985
|
-
if (candidate.notModified)
|
|
4986
|
-
return this.publish({ ...previous, checkedAt: this.checkedAt });
|
|
4987
|
-
throw new Error("registry candidate unavailable");
|
|
4988
|
-
}
|
|
4989
|
-
const latest = candidate.version;
|
|
4990
|
-
if (compareAgentRoamVersions(latest, this.options.currentVersion) <= 0) {
|
|
5098
|
+
if (!candidate) {
|
|
4991
5099
|
return this.publish({ phase: "up-to-date", currentVersion: this.options.currentVersion, checkedAt: this.checkedAt });
|
|
4992
5100
|
}
|
|
4993
|
-
|
|
4994
|
-
return this.publish({ phase: "available", currentVersion: this.options.currentVersion, targetVersion: latest, checkedAt: this.checkedAt, asset });
|
|
5101
|
+
return this.publish({ phase: "available", currentVersion: this.options.currentVersion, targetVersion: candidate.version, checkedAt: this.checkedAt, asset: candidate.asset });
|
|
4995
5102
|
} catch {
|
|
4996
5103
|
this.checkedAt = this.now();
|
|
4997
5104
|
if (["available", "up-to-date"].includes(previous.phase))
|
|
4998
5105
|
return this.publish({ ...previous, checkedAt: this.checkedAt });
|
|
4999
5106
|
return this.publish({ phase: "unavailable", currentVersion: this.options.currentVersion, checkedAt: this.checkedAt });
|
|
5000
|
-
} finally {
|
|
5001
|
-
clearTimeout(timer);
|
|
5002
5107
|
}
|
|
5003
5108
|
}
|
|
5004
|
-
async
|
|
5005
|
-
const
|
|
5006
|
-
const
|
|
5007
|
-
|
|
5109
|
+
async readCliRelease(platform) {
|
|
5110
|
+
const signal = AbortSignal.timeout(this.timeoutMs);
|
|
5111
|
+
const version = await this.readRegistryCandidate(signal);
|
|
5112
|
+
if (compareAgentRoamVersions(version, this.options.currentVersion) <= 0)
|
|
5113
|
+
return null;
|
|
5114
|
+
const response = await this.fetchImpl(buildCliInstallManifestUrl(), { headers: { accept: "application/json" }, signal });
|
|
5008
5115
|
if (!response.ok)
|
|
5009
|
-
throw new Error("
|
|
5010
|
-
|
|
5011
|
-
return isCli ? validateCliInstallManifest(body, this.options.platform) : validateReleaseManifest(body, version, "desktop", this.options.platform).asset;
|
|
5116
|
+
throw new Error("CLI installer manifest unavailable");
|
|
5117
|
+
return { version, asset: validateCliInstallManifest(await response.json(), platform) };
|
|
5012
5118
|
}
|
|
5013
5119
|
async readRegistryCandidate(signal) {
|
|
5014
|
-
|
|
5015
|
-
let notModified = false;
|
|
5016
|
-
let sawResponse = false;
|
|
5017
|
-
for (const url of registryUrlsForChannel(this.channel)) {
|
|
5120
|
+
const results = await Promise.allSettled(registryUrlsForChannel("preview").map(async (url) => {
|
|
5018
5121
|
const headers = { accept: "application/json" };
|
|
5019
|
-
const
|
|
5020
|
-
if (etag)
|
|
5021
|
-
headers["if-none-match"] = etag;
|
|
5122
|
+
const cached = this.registryCache.get(url);
|
|
5123
|
+
if (cached?.etag)
|
|
5124
|
+
headers["if-none-match"] = cached.etag;
|
|
5022
5125
|
const response = await this.fetchImpl(url, { headers, signal });
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
this.etags.set(url, responseEtag);
|
|
5026
|
-
if (response.status === 304) {
|
|
5027
|
-
notModified = true;
|
|
5028
|
-
continue;
|
|
5029
|
-
}
|
|
5126
|
+
if (response.status === 304)
|
|
5127
|
+
return cached?.version;
|
|
5030
5128
|
if (!response.ok)
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5129
|
+
return;
|
|
5130
|
+
const version = parseChannelVersion((await response.json()).version, "preview");
|
|
5131
|
+
if (version)
|
|
5132
|
+
this.registryCache.set(url, { version, etag: response.headers.get("etag") });
|
|
5133
|
+
return version;
|
|
5134
|
+
}));
|
|
5135
|
+
let best = null;
|
|
5136
|
+
for (const result of results) {
|
|
5137
|
+
const candidate = result.status === "fulfilled" ? result.value : null;
|
|
5034
5138
|
if (!candidate)
|
|
5035
5139
|
continue;
|
|
5036
5140
|
if (!best || compareAgentRoamVersions(candidate, best) > 0)
|
|
5037
5141
|
best = candidate;
|
|
5038
5142
|
}
|
|
5039
|
-
|
|
5143
|
+
if (!best)
|
|
5144
|
+
throw new Error("npm release channel unavailable");
|
|
5145
|
+
return best;
|
|
5040
5146
|
}
|
|
5041
5147
|
publish(status) {
|
|
5042
5148
|
this.status = status;
|
|
@@ -19158,6 +19264,10 @@ class SQLiteDatabase {
|
|
|
19158
19264
|
this.migratePinnedCommands();
|
|
19159
19265
|
this.migrateCommandHistoryExitCode();
|
|
19160
19266
|
this.migrateEngineSwitch();
|
|
19267
|
+
this.db.exec(`CREATE TABLE IF NOT EXISTS todo_completion_jobs(
|
|
19268
|
+
owner_id TEXT NOT NULL, session_id TEXT NOT NULL, run_id TEXT NOT NULL, started_at INTEGER NOT NULL,
|
|
19269
|
+
evidence TEXT NOT NULL, retry_at INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(owner_id,session_id,run_id));
|
|
19270
|
+
CREATE INDEX IF NOT EXISTS todo_completion_jobs_ready ON todo_completion_jobs(retry_at);`);
|
|
19161
19271
|
migrateTodoTables(this.db);
|
|
19162
19272
|
}
|
|
19163
19273
|
migrateCommandHistoryExitCode() {
|
|
@@ -21101,8 +21211,8 @@ class SQLiteSessionStore {
|
|
|
21101
21211
|
const db = getDatabase(this.baseDir);
|
|
21102
21212
|
db.db.transaction(() => {
|
|
21103
21213
|
const at = Date.now();
|
|
21104
|
-
db.db.prepare("INSERT INTO events (session_id, type, data, timestamp) VALUES (?,?,?,?)").run(sessionId, event.type, JSON.stringify(event), at);
|
|
21105
|
-
this.eventCommit?.(db.db, sessionId, event, at);
|
|
21214
|
+
const inserted = db.db.prepare("INSERT INTO events (session_id, type, data, timestamp) VALUES (?,?,?,?)").run(sessionId, event.type, JSON.stringify(event), at);
|
|
21215
|
+
this.eventCommit?.(db.db, sessionId, event, at, Number(inserted.lastInsertRowid));
|
|
21106
21216
|
})();
|
|
21107
21217
|
}
|
|
21108
21218
|
async replaceMessages(sessionId, messages) {
|
|
@@ -23122,6 +23232,36 @@ class ReminderScheduleCalculator {
|
|
|
23122
23232
|
// src/application/todo/TodoApplicationService.ts
|
|
23123
23233
|
import { randomUUID as randomUUID5, createHash as createHash5 } from "node:crypto";
|
|
23124
23234
|
|
|
23235
|
+
// src/application/todo/completed-work.ts
|
|
23236
|
+
function normalizedTodoTitle(title) {
|
|
23237
|
+
return title.normalize("NFKC").toLowerCase().replace(/\s+/gu, "");
|
|
23238
|
+
}
|
|
23239
|
+
function declaredTitle(sentence) {
|
|
23240
|
+
const text2 = sentence.trim().replace(/\*\*/g, "").replace(/[。.!!]$/, "").trim();
|
|
23241
|
+
const match = /^(.+?)(?:已经完成了?|已完成了?|完成了|做完了)$/.exec(text2) ?? /^(?:已完成|已经完成)\s*[::]?\s*(.+)$/.exec(text2) ?? /^(.+?)\s+(?:is complete|is completed|is done)$/i.exec(text2);
|
|
23242
|
+
return match?.[1]?.trim().replace(/^[「“](.+)[」”]$/u, "$1");
|
|
23243
|
+
}
|
|
23244
|
+
function completedWorkTitles(input, finalText, plan) {
|
|
23245
|
+
if (/(?:不要|先别|暂缓|暂不|不必|不用|别).{0,16}(?:勾|更新|同步|标记|待办|日历)|(?:待办|日历).{0,8}(?:先别动|保持原样)|(?:do not|don't) (?:complete|check off|update|sync)/i.test(input))
|
|
23246
|
+
return [];
|
|
23247
|
+
const titles = new Set;
|
|
23248
|
+
const [statement, ...rest] = input.trim().split(/[。!!\n]/u);
|
|
23249
|
+
const followup = rest.join(" ").trim();
|
|
23250
|
+
const userTitle = !followup || /^(?:结论|结果|交付物|报告)(?:是|如下|[::])/u.test(followup) ? declaredTitle(statement) : undefined;
|
|
23251
|
+
if (userTitle)
|
|
23252
|
+
titles.add(userTitle);
|
|
23253
|
+
const firstSentence = finalText.trim().split(/[。!!\n]/u, 1)[0];
|
|
23254
|
+
const delivered = declaredTitle(firstSentence);
|
|
23255
|
+
const requested = input.trim().replace(/[。!!.]$/u, "").replace(/^(?:请)?(?:帮我)?(?:完成|做一下|做个|做一项|做)?/u, "");
|
|
23256
|
+
if (delivered && normalizedTodoTitle(requested) === normalizedTodoTitle(delivered))
|
|
23257
|
+
titles.add(delivered);
|
|
23258
|
+
for (const item of plan)
|
|
23259
|
+
if (item.status === "completed")
|
|
23260
|
+
titles.add(item.title);
|
|
23261
|
+
const unfinished = new Set(plan.filter((item) => item.status !== "completed").map((item) => normalizedTodoTitle(item.title)));
|
|
23262
|
+
return [...titles].filter((title) => !unfinished.has(normalizedTodoTitle(title)));
|
|
23263
|
+
}
|
|
23264
|
+
|
|
23125
23265
|
// src/application/notification/NotificationService.ts
|
|
23126
23266
|
import { createHash as createHash4 } from "node:crypto";
|
|
23127
23267
|
function dismissTaskReminders(tx, ownerId, taskId, at) {
|
|
@@ -23235,6 +23375,34 @@ class TodoApplicationService {
|
|
|
23235
23375
|
get(id, ownerId) {
|
|
23236
23376
|
return this.uow.run((tx) => todoDetail(tx, ownerId, id));
|
|
23237
23377
|
}
|
|
23378
|
+
completeReportedWork(titles, startedAt, context) {
|
|
23379
|
+
if (!titles.length || !Number.isFinite(startedAt) || !context.runId)
|
|
23380
|
+
return;
|
|
23381
|
+
const reported = new Set(titles.map(normalizedTodoTitle).filter(Boolean));
|
|
23382
|
+
this.uow.run((tx) => {
|
|
23383
|
+
const matches = new Map;
|
|
23384
|
+
for (const task of tx.todo_tasks.list(context.ownerId)) {
|
|
23385
|
+
if (task.kind !== "normal" || task.createdAt > startedAt)
|
|
23386
|
+
continue;
|
|
23387
|
+
if (task.updatedAt < startedAt && task.status !== "pending" && task.status !== "in_progress")
|
|
23388
|
+
continue;
|
|
23389
|
+
const title = normalizedTodoTitle(task.title);
|
|
23390
|
+
if (reported.has(title))
|
|
23391
|
+
matches.set(title, matches.has(title) ? null : task);
|
|
23392
|
+
}
|
|
23393
|
+
for (const task of matches.values()) {
|
|
23394
|
+
if (!task || task.updatedAt > startedAt || task.updatedAt === startedAt && task.version > 1)
|
|
23395
|
+
continue;
|
|
23396
|
+
if (task.status !== "pending" && task.status !== "in_progress")
|
|
23397
|
+
continue;
|
|
23398
|
+
this.execute({ type: "complete", taskId: task.id, expectedVersion: task.version }, {
|
|
23399
|
+
ownerId: context.ownerId,
|
|
23400
|
+
sourceSessionRef: context.sessionId,
|
|
23401
|
+
requestId: `run-complete:${context.runId}:${task.id}`
|
|
23402
|
+
});
|
|
23403
|
+
}
|
|
23404
|
+
});
|
|
23405
|
+
}
|
|
23238
23406
|
list(query, ownerId) {
|
|
23239
23407
|
return this.uow.run((tx) => {
|
|
23240
23408
|
let tasks = tx.todo_tasks.list(ownerId).filter((t) => (!query.status || t.status === query.status) && (!query.kind || t.kind === query.kind)).sort((a, b) => b.createdAt - a.createdAt || b.id.localeCompare(a.id));
|
|
@@ -23569,6 +23737,50 @@ class TodoExecutionService {
|
|
|
23569
23737
|
});
|
|
23570
23738
|
}
|
|
23571
23739
|
}
|
|
23740
|
+
// src/infrastructure/SQLiteTodoCompletionQueue.ts
|
|
23741
|
+
function enqueueTodoCompletion(db, job) {
|
|
23742
|
+
db.prepare(`INSERT INTO todo_completion_jobs(owner_id,session_id,run_id,started_at,evidence)
|
|
23743
|
+
VALUES (?,?,?,?,?) ON CONFLICT(owner_id,session_id,run_id) DO NOTHING`).run(job.ownerId, job.sessionId, job.runId, job.startedAt, JSON.stringify(job.evidence));
|
|
23744
|
+
}
|
|
23745
|
+
function readTitles(db, sessionId, runId, evidence) {
|
|
23746
|
+
if (evidence.kind === "reported")
|
|
23747
|
+
return evidence.titles;
|
|
23748
|
+
if (evidence.kind === "native")
|
|
23749
|
+
return completedWorkTitles(evidence.input, evidence.finalText, evidence.plan);
|
|
23750
|
+
const terminal = db.prepare("SELECT data FROM events WHERE id=? AND session_id=? AND type='done'").get(evidence.terminalEventId, sessionId);
|
|
23751
|
+
if (!terminal)
|
|
23752
|
+
return [];
|
|
23753
|
+
const done = JSON.parse(terminal.data);
|
|
23754
|
+
if (done.result?.runId !== runId || done.result.status !== "completed")
|
|
23755
|
+
return [];
|
|
23756
|
+
const message = db.prepare("SELECT role,content FROM messages WHERE session_id=? ORDER BY id LIMIT 1 OFFSET ?").get(sessionId, evidence.messageStart);
|
|
23757
|
+
const latest = db.prepare(`SELECT json_extract(data, '$.todos') AS todos FROM events
|
|
23758
|
+
WHERE session_id=? AND id<=? AND type='todo_update'
|
|
23759
|
+
AND id >= (SELECT id FROM events WHERE session_id=? ORDER BY id LIMIT 1 OFFSET ?)
|
|
23760
|
+
ORDER BY id DESC LIMIT 1`).get(sessionId, evidence.terminalEventId, sessionId, evidence.eventStart);
|
|
23761
|
+
return completedWorkTitles(message?.role === "user" ? message.content : "", done.finalText, latest ? JSON.parse(latest.todos) : []);
|
|
23762
|
+
}
|
|
23763
|
+
function processNextTodoCompletion(db, todos, now2 = Date.now()) {
|
|
23764
|
+
let job;
|
|
23765
|
+
try {
|
|
23766
|
+
return db.transaction(() => {
|
|
23767
|
+
const row = db.prepare(`SELECT rowid AS id, owner_id AS ownerId, session_id AS sessionId, run_id AS runId,
|
|
23768
|
+
started_at AS startedAt, evidence FROM todo_completion_jobs WHERE retry_at<=? ORDER BY retry_at,rowid LIMIT 1`).get(now2);
|
|
23769
|
+
if (!row)
|
|
23770
|
+
return false;
|
|
23771
|
+
job = row;
|
|
23772
|
+
const titles = readTitles(db, row.sessionId, row.runId, JSON.parse(row.evidence));
|
|
23773
|
+
todos.completeReportedWork(titles, row.startedAt, row);
|
|
23774
|
+
db.prepare("DELETE FROM todo_completion_jobs WHERE rowid=?").run(row.id);
|
|
23775
|
+
return true;
|
|
23776
|
+
}).deferred();
|
|
23777
|
+
} catch (error) {
|
|
23778
|
+
if (job) {
|
|
23779
|
+
db.prepare("UPDATE todo_completion_jobs SET retry_at=? WHERE owner_id=? AND session_id=? AND run_id=?").run(now2 + 5000, job.ownerId, job.sessionId, job.runId);
|
|
23780
|
+
}
|
|
23781
|
+
throw error;
|
|
23782
|
+
}
|
|
23783
|
+
}
|
|
23572
23784
|
// src/application/session/SyncSessionViews.ts
|
|
23573
23785
|
var SESSION_VIEW_BATCH_SIZE = 256;
|
|
23574
23786
|
function syncSessionViews(repository, request, now2) {
|
|
@@ -24203,11 +24415,13 @@ export {
|
|
|
24203
24415
|
readPromptAttachments,
|
|
24204
24416
|
readNavigationLayoutMessage,
|
|
24205
24417
|
readLiveFramePacket,
|
|
24418
|
+
readAppRelease,
|
|
24206
24419
|
queuedSessionMessages,
|
|
24207
24420
|
questionReplyMatches,
|
|
24208
24421
|
promoteNextSessionQueueItem,
|
|
24209
24422
|
projectSessionGoals,
|
|
24210
24423
|
projectSessionActivity,
|
|
24424
|
+
processNextTodoCompletion,
|
|
24211
24425
|
persistNotification,
|
|
24212
24426
|
parseWebShellOpenBrowserLive,
|
|
24213
24427
|
parseWebProjectResponse,
|
|
@@ -24227,6 +24441,7 @@ export {
|
|
|
24227
24441
|
parseAgentRoamVersion,
|
|
24228
24442
|
parallelAgentTypes,
|
|
24229
24443
|
paginateSessionHistory,
|
|
24444
|
+
normalizedTodoTitle,
|
|
24230
24445
|
normalizeUsername,
|
|
24231
24446
|
normalizeToolPermissionMode,
|
|
24232
24447
|
normalizeTokenUsage,
|
|
@@ -24276,6 +24491,7 @@ export {
|
|
|
24276
24491
|
expandRRule,
|
|
24277
24492
|
estimateTextTokens,
|
|
24278
24493
|
estimateRequestTokens,
|
|
24494
|
+
enqueueTodoCompletion,
|
|
24279
24495
|
enqueueSessionMessage,
|
|
24280
24496
|
enqueueSessionGoal,
|
|
24281
24497
|
engineThreadPhases,
|
|
@@ -24305,6 +24521,7 @@ export {
|
|
|
24305
24521
|
compoundRtpTimestamp,
|
|
24306
24522
|
compoundPngBytes,
|
|
24307
24523
|
composeAiHubTranscript,
|
|
24524
|
+
completedWorkTitles,
|
|
24308
24525
|
completeSteeredSessionGoal,
|
|
24309
24526
|
compareAgentRoamVersions,
|
|
24310
24527
|
collaborationImages,
|
|
@@ -24343,6 +24560,7 @@ export {
|
|
|
24343
24560
|
WEBAPP_ARTIFACT_OPEN_TYPE,
|
|
24344
24561
|
UpdateGoalTool,
|
|
24345
24562
|
UpdateChecker,
|
|
24563
|
+
UPDATE_CHECK_INTERVAL_MS,
|
|
24346
24564
|
ToolRegistry,
|
|
24347
24565
|
ToolPermissionGate,
|
|
24348
24566
|
ToolExecutionPolicyError,
|
|
@@ -24533,4 +24751,4 @@ export {
|
|
|
24533
24751
|
AGENTROAM_CLI_INSTALL_BASE
|
|
24534
24752
|
};
|
|
24535
24753
|
|
|
24536
|
-
//# debugId=
|
|
24754
|
+
//# debugId=CEF2640169CA670564756E2164756E21
|