agentroam-runtime-darwin-arm64 0.2.0-preview.81 → 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/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 +2 -2
- 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 +34 -33
- package/runtime/.next/server/chunks/1298.js +1 -1
- package/runtime/.next/server/chunks/5303.js +2 -2
- package/runtime/.next/server/chunks/5801.js +1 -1
- package/runtime/.next/server/chunks/6703.js +1 -1
- package/runtime/.next/server/chunks/9119.js +3 -3
- package/runtime/.next/server/chunks/9457.js +1 -1
- 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-828d278147a0619d.js +1 -0
- package/runtime/.next/static/chunks/app/web/layout-1127176e7e88e395.js +1 -0
- package/runtime/.next/static/chunks/app/web/{page-b0da5ef19349a66b.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/infrastructure/native-video-encoder.mjs +15 -2
- package/runtime/lib/remote-control/infrastructure/werift-video-transport.mjs +3 -1
- 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/error-30cea9cffce0ebc2.js +0 -1
- package/runtime/.next/static/chunks/app/web/layout-d8a4f4131e7f2330.js +0 -1
- package/runtime/.next/static/chunks/main-app-30a478479a347a9e.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/{5rv6PMhU7yq1sI1ClFWRU → _rMvYWpbWkNWrFkCQx3rK}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{5rv6PMhU7yq1sI1ClFWRU → _rMvYWpbWkNWrFkCQx3rK}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026-present, Vanilagy and contributors
|
|
3
|
+
*
|
|
4
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
5
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
|
+
*/
|
|
8
|
+
import { colorAlphaMergerWorkerCode } from './media-sink.js';
|
|
9
|
+
import { colorAlphaSplitterWorkerCode, mediaStreamTrackProcessorWorkerCode } from './media-source.js';
|
|
10
|
+
import { unthrottledTimerWorkerCode } from './misc.js';
|
|
11
|
+
switch (self.name) {
|
|
12
|
+
case 'unthrottled-timer':
|
|
13
|
+
unthrottledTimerWorkerCode();
|
|
14
|
+
break;
|
|
15
|
+
case 'color-alpha-splitter':
|
|
16
|
+
colorAlphaSplitterWorkerCode();
|
|
17
|
+
break;
|
|
18
|
+
case 'color-alpha-merger':
|
|
19
|
+
colorAlphaMergerWorkerCode();
|
|
20
|
+
break;
|
|
21
|
+
case 'media-stream-track-processor':
|
|
22
|
+
mediaStreamTrackProcessorWorkerCode();
|
|
23
|
+
break;
|
|
24
|
+
default:
|
|
25
|
+
throw new Error(`Unknown worker name '${self.name}'.`);
|
|
26
|
+
}
|
|
@@ -327,6 +327,11 @@ class AdtsAudioTrackBacking implements InputAudioTrackBacking {
|
|
|
327
327
|
return null;
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
+
const fileSize = this.demuxer.reader.fileSize;
|
|
331
|
+
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
332
|
+
return null; // Data definitely doesn't fit
|
|
333
|
+
}
|
|
334
|
+
|
|
330
335
|
let data: Uint8Array;
|
|
331
336
|
if (options.metadataOnly) {
|
|
332
337
|
data = PLACEHOLDER_DATA;
|
|
@@ -259,10 +259,8 @@ export const createAes128CbcDecryptStream = (
|
|
|
259
259
|
return new ReadableStream<Uint8Array>({
|
|
260
260
|
pull: async (controller) => {
|
|
261
261
|
try {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
initted = true;
|
|
265
|
-
}
|
|
262
|
+
const initPromise = initted ? null : Promise.resolve(getInit());
|
|
263
|
+
void initPromise?.catch(() => {}); // Awaited below
|
|
266
264
|
|
|
267
265
|
const requestedLength = CHUNK_SIZE + BLOCK_SIZE;
|
|
268
266
|
|
|
@@ -285,6 +283,11 @@ export const createAes128CbcDecryptStream = (
|
|
|
285
283
|
const input = readBytes(nextSlice, bytesToRead);
|
|
286
284
|
const output = new Uint8Array(bytesToRead);
|
|
287
285
|
|
|
286
|
+
if (initPromise) {
|
|
287
|
+
aesContext.init(await initPromise);
|
|
288
|
+
initted = true;
|
|
289
|
+
}
|
|
290
|
+
|
|
288
291
|
for (let i = 0; i < bytesToRead; i += 16) {
|
|
289
292
|
aesContext.in.set(input.subarray(i, i + 16));
|
|
290
293
|
aesContext.decrypt();
|
|
@@ -842,16 +842,19 @@ abstract class HlsInputTrackBacking implements InputTrackBacking {
|
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
async getFirstPacket(options: PacketRetrievalOptions): Promise<EncodedPacket | null> {
|
|
845
|
+
this.prefetchReferencePlaylist();
|
|
845
846
|
await this.hydrate();
|
|
846
847
|
return this.internalTrack.backingTrack!.getFirstPacket(options);
|
|
847
848
|
}
|
|
848
849
|
|
|
849
850
|
async getPacket(timestamp: number, options: PacketRetrievalOptions): Promise<EncodedPacket | null> {
|
|
851
|
+
this.prefetchReferencePlaylist();
|
|
850
852
|
await this.hydrate();
|
|
851
853
|
return this.internalTrack.backingTrack!.getPacket(timestamp, options);
|
|
852
854
|
}
|
|
853
855
|
|
|
854
856
|
async getKeyPacket(timestamp: number, options: PacketRetrievalOptions): Promise<EncodedPacket | null> {
|
|
857
|
+
this.prefetchReferencePlaylist();
|
|
855
858
|
await this.hydrate();
|
|
856
859
|
return this.internalTrack.backingTrack!.getKeyPacket(timestamp, options);
|
|
857
860
|
}
|
|
@@ -865,6 +868,10 @@ abstract class HlsInputTrackBacking implements InputTrackBacking {
|
|
|
865
868
|
await this.hydrate();
|
|
866
869
|
return this.internalTrack.backingTrack!.getNextKeyPacket(packet, options);
|
|
867
870
|
}
|
|
871
|
+
|
|
872
|
+
prefetchReferencePlaylist() {
|
|
873
|
+
void this.internalTrack.demuxer.getReferenceSegmentedInput().getFirstSegment().catch(() => {});
|
|
874
|
+
}
|
|
868
875
|
}
|
|
869
876
|
|
|
870
877
|
class HlsInputVideoTrackBacking
|
|
@@ -676,8 +676,16 @@ export class HlsSegmentedInput extends SegmentedInput {
|
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
let initInput: Input | null = null;
|
|
679
|
-
if (hlsSegment.initSegment
|
|
680
|
-
initInput = this.getInputForSegment(
|
|
679
|
+
if (hlsSegment.initSegment) {
|
|
680
|
+
initInput = this.getInputForSegment(hlsSegment.initSegment);
|
|
681
|
+
|
|
682
|
+
// Fetch the init input's data immediately to avoid the serial request chain of first having to go through
|
|
683
|
+
// the segment before the init section is even requested. Reduces latency.
|
|
684
|
+
void initInput.getTracks().catch(() => {});
|
|
685
|
+
} else if (hlsSegment.firstSegment) {
|
|
686
|
+
// Don't prefetch this one. It's only needed in rare cases, like MPEG-TS segments that are missing media
|
|
687
|
+
// initialization, so it's not generally worth it to prefetch this.
|
|
688
|
+
initInput = this.getInputForSegment(hlsSegment.firstSegment);
|
|
681
689
|
}
|
|
682
690
|
|
|
683
691
|
const formatOptions: InputFormatOptions = {
|
|
@@ -839,17 +847,19 @@ export class HlsSegmentedInput extends SegmentedInput {
|
|
|
839
847
|
|
|
840
848
|
getFirstSegmentTimestampOffset() {
|
|
841
849
|
return this.segmentTimestampOffsetPromise ??= (async () => {
|
|
842
|
-
const firstSegment = await this.getFirstSegment();
|
|
843
|
-
assert(firstSegment);
|
|
844
|
-
|
|
845
850
|
const referenceSegmentedInput = this.demuxer.getReferenceSegmentedInput();
|
|
846
851
|
if (this === referenceSegmentedInput) {
|
|
847
852
|
return 0;
|
|
848
853
|
}
|
|
849
854
|
|
|
855
|
+
const [firstSegment, referenceFirstSegment] = await Promise.all([
|
|
856
|
+
this.getFirstSegment(),
|
|
857
|
+
referenceSegmentedInput.getFirstSegment(),
|
|
858
|
+
]);
|
|
859
|
+
assert(firstSegment);
|
|
860
|
+
|
|
850
861
|
// An offset of 0 is only safe (= close enough) if we start at the same point as the reference: either both
|
|
851
862
|
// of us list all segments since the presentation's start, or both of us are on date-time-based timelines
|
|
852
|
-
const referenceFirstSegment = await referenceSegmentedInput.getFirstSegment();
|
|
853
863
|
if (
|
|
854
864
|
referenceFirstSegment
|
|
855
865
|
&& (
|
|
@@ -867,6 +877,9 @@ export class HlsSegmentedInput extends SegmentedInput {
|
|
|
867
877
|
// that we need
|
|
868
878
|
|
|
869
879
|
const input = this.getInputForSegment(firstSegment);
|
|
880
|
+
// Kick this off early so it runs in parallel to loading our own media
|
|
881
|
+
void this.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {});
|
|
882
|
+
|
|
870
883
|
if (await this.getRawTimestampOffset(input) === null) {
|
|
871
884
|
return 0;
|
|
872
885
|
}
|
|
@@ -1641,7 +1641,8 @@ export const tfdt = (trackData: IsobmffTrackData) => {
|
|
|
1641
1641
|
assert(trackData.currentChunk);
|
|
1642
1642
|
|
|
1643
1643
|
return fullBox('tfdt', 1, 0, [
|
|
1644
|
-
|
|
1644
|
+
// Base Media Decode Time
|
|
1645
|
+
u64(intoTimescale(trackData.currentChunk.samples[0]!.decodeTimestamp, trackData.timescale)),
|
|
1645
1646
|
]);
|
|
1646
1647
|
};
|
|
1647
1648
|
|
|
@@ -473,7 +473,11 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
473
473
|
currentPos = startPos + boxInfo.totalSize;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
if (!foundMovieBoxes
|
|
476
|
+
if (!foundMovieBoxes) {
|
|
477
|
+
if (!this.input._initInput) {
|
|
478
|
+
throw new Error('No "moov" box found; the file is invalid or incomplete.');
|
|
479
|
+
}
|
|
480
|
+
|
|
477
481
|
// A segment file is allowed to hold zero fragments, in which case there's no moof box to key off of.
|
|
478
482
|
// It's still a perfectly valid segment, so let's take the tracks from the init input.
|
|
479
483
|
await this.copyMetadataFromInitInput(this.input._initInput);
|
|
@@ -3540,6 +3544,11 @@ abstract class IsobmffTrackBacking implements InputTrackBacking {
|
|
|
3540
3544
|
return null;
|
|
3541
3545
|
}
|
|
3542
3546
|
|
|
3547
|
+
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
3548
|
+
if (fileSize !== null && sampleInfo.sampleOffset + sampleInfo.sampleSize > fileSize) {
|
|
3549
|
+
return null; // Data is definitely outside
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3543
3552
|
let data: Uint8Array;
|
|
3544
3553
|
if (options.metadataOnly && this.internalTrack.info?.codec !== 'eac3') { // E-AC-3 is split by its data
|
|
3545
3554
|
data = PLACEHOLDER_DATA;
|
|
@@ -3612,6 +3621,11 @@ abstract class IsobmffTrackBacking implements InputTrackBacking {
|
|
|
3612
3621
|
const fragmentSample = trackData.samples[sampleIndex];
|
|
3613
3622
|
assert(fragmentSample);
|
|
3614
3623
|
|
|
3624
|
+
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
3625
|
+
if (fileSize !== null && fragmentSample.byteOffset + fragmentSample.byteSize > fileSize) {
|
|
3626
|
+
return null; // Data is definitely outside
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3615
3629
|
let data: Uint8Array;
|
|
3616
3630
|
if (options.metadataOnly && this.internalTrack.info?.codec !== 'eac3') { // E-AC-3 is split by its data
|
|
3617
3631
|
data = PLACEHOLDER_DATA;
|
|
@@ -1128,7 +1128,9 @@ export class IsobmffMuxer extends Muxer {
|
|
|
1128
1128
|
return;
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
|
-
const
|
|
1131
|
+
const queue = trackData.timestampProcessingQueue;
|
|
1132
|
+
const sortedTimestamps = queue.map(x => x.timestamp).sort((a, b) => a - b);
|
|
1133
|
+
const firstTimestampInTimescale = intoTimescale(sortedTimestamps[0]!, trackData.timescale);
|
|
1132
1134
|
|
|
1133
1135
|
if (this.isFragmented) {
|
|
1134
1136
|
trackData.startTimestampOffset ??= Math.min(sortedTimestamps[0]!, 0);
|
|
@@ -1136,17 +1138,31 @@ export class IsobmffMuxer extends Muxer {
|
|
|
1136
1138
|
trackData.startTimestampOffset ??= sortedTimestamps[0]!;
|
|
1137
1139
|
}
|
|
1138
1140
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
+
// Since the user only supplies presentation time & decode order, we have to reverse-engineer from that a
|
|
1142
|
+
// sensible decode timestamp, which is a concept in ISOBMFF: we hand out the sorted presentation timestamps in
|
|
1143
|
+
// decode order. The first group starts at its lowest timestamp, every following group exactly where the
|
|
1144
|
+
// previous one ended, so that there are no gaps or overlaps in the decode timeline.
|
|
1145
|
+
let groupStartTimescaleUnits: number;
|
|
1146
|
+
if (trackData.lastTimescaleUnits === null) {
|
|
1147
|
+
groupStartTimescaleUnits = firstTimestampInTimescale;
|
|
1148
|
+
} else {
|
|
1149
|
+
assert(trackData.lastSample);
|
|
1150
|
+
groupStartTimescaleUnits = Math.round(trackData.lastTimescaleUnits)
|
|
1151
|
+
+ trackData.lastSample.timescaleUnitsToNextSample;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
let lastDecodeStep = 0;
|
|
1141
1155
|
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1156
|
+
for (let i = 0; i < queue.length; i++) {
|
|
1157
|
+
const sample = queue[i]!;
|
|
1158
|
+
|
|
1159
|
+
const decodeTimescaleUnits = groupStartTimescaleUnits
|
|
1160
|
+
+ intoTimescale(sortedTimestamps[i]!, trackData.timescale)
|
|
1161
|
+
- firstTimestampInTimescale;
|
|
1162
|
+
sample.decodeTimestamp = decodeTimescaleUnits / trackData.timescale;
|
|
1147
1163
|
|
|
1148
1164
|
const sampleCompositionTimeOffset
|
|
1149
|
-
= intoTimescale(sample.timestamp
|
|
1165
|
+
= intoTimescale(sample.timestamp, trackData.timescale) - decodeTimescaleUnits;
|
|
1150
1166
|
const durationInTimescale = intoTimescale(sample.duration, trackData.timescale);
|
|
1151
1167
|
|
|
1152
1168
|
if (trackData.lastTimescaleUnits !== null) {
|
|
@@ -1158,6 +1174,7 @@ export class IsobmffMuxer extends Muxer {
|
|
|
1158
1174
|
|
|
1159
1175
|
trackData.lastTimescaleUnits += delta;
|
|
1160
1176
|
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
1177
|
+
lastDecodeStep = delta;
|
|
1161
1178
|
|
|
1162
1179
|
if (!this.isFragmented) {
|
|
1163
1180
|
let lastTableEntry = last(trackData.timeToSampleTable);
|
|
@@ -1234,16 +1251,17 @@ export class IsobmffMuxer extends Muxer {
|
|
|
1234
1251
|
assert(trackData.lastSample);
|
|
1235
1252
|
assert(trackData.lastTimescaleUnits !== null);
|
|
1236
1253
|
|
|
1237
|
-
if (nextSample
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1254
|
+
if (nextSample) {
|
|
1255
|
+
// The last sample fills the time until the next key frame, where the next group starts. The next sample
|
|
1256
|
+
// will also set the last sample's duration, but the last sample may get written before that.
|
|
1257
|
+
const nextTimestampInTimescale = intoTimescale(nextSample.timestamp, trackData.timescale);
|
|
1258
|
+
trackData.lastSample.timescaleUnitsToNextSample = Math.max(
|
|
1259
|
+
nextTimestampInTimescale - Math.round(trackData.lastTimescaleUnits),
|
|
1260
|
+
// With open GOPs, the last sample's decode timestamp may already lie past the next key frame. Then, it
|
|
1261
|
+
// still gets a regular decode step to keep decode timestamps strictly increasing, and the next group
|
|
1262
|
+
// starts later. If we didn't do this, we'd get duplicate DTSs.
|
|
1263
|
+
lastDecodeStep,
|
|
1264
|
+
);
|
|
1247
1265
|
}
|
|
1248
1266
|
}
|
|
1249
1267
|
|
|
@@ -438,6 +438,10 @@ export class MatroskaDemuxer extends Demuxer {
|
|
|
438
438
|
assertDefinedSize(size);
|
|
439
439
|
currentPos = dataStartPos + size;
|
|
440
440
|
}
|
|
441
|
+
|
|
442
|
+
if (this.segments.length === 0) {
|
|
443
|
+
throw new Error('No Segment element found; the file is invalid or incomplete.');
|
|
444
|
+
}
|
|
441
445
|
})();
|
|
442
446
|
}
|
|
443
447
|
|
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
CallSerializer,
|
|
35
35
|
clamp,
|
|
36
36
|
colorSpaceIsComplete,
|
|
37
|
+
createWorker,
|
|
37
38
|
getInt24,
|
|
38
39
|
getUint24,
|
|
39
40
|
insertSorted,
|
|
@@ -1610,8 +1611,6 @@ class VideoDecoderWrapper extends DecoderWrapper<VideoSample> {
|
|
|
1610
1611
|
}
|
|
1611
1612
|
}
|
|
1612
1613
|
|
|
1613
|
-
let mergerWorkerUrl: string | null = null;
|
|
1614
|
-
|
|
1615
1614
|
/** Utility class that merges together color and alpha information on the CPU in a pool of workers. */
|
|
1616
1615
|
export class ColorAlphaMerger {
|
|
1617
1616
|
private workers: Worker[] = [];
|
|
@@ -1621,17 +1620,9 @@ export class ColorAlphaMerger {
|
|
|
1621
1620
|
|
|
1622
1621
|
merge(color: VideoFrame, alpha: VideoFrame): Promise<VideoFrame> {
|
|
1623
1622
|
if (this.workers.length === 0) {
|
|
1624
|
-
if (!mergerWorkerUrl) {
|
|
1625
|
-
const blob = new Blob(
|
|
1626
|
-
[`(${colorAlphaMergerWorkerCode.toString()})()`],
|
|
1627
|
-
{ type: 'application/javascript' },
|
|
1628
|
-
);
|
|
1629
|
-
mergerWorkerUrl = URL.createObjectURL(blob);
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
1623
|
const poolSize = clamp(navigator.hardwareConcurrency, 1, 4);
|
|
1633
1624
|
for (let i = 0; i < poolSize; i++) {
|
|
1634
|
-
const worker =
|
|
1625
|
+
const worker = createWorker('color-alpha-merger', colorAlphaMergerWorkerCode);
|
|
1635
1626
|
|
|
1636
1627
|
worker.addEventListener('message', (event: MessageEvent<ColorAlphaMergerWorkerResponse>) => {
|
|
1637
1628
|
const data = event.data;
|
|
@@ -1700,7 +1691,7 @@ type ColorAlphaMergerWorkerResponse =
|
|
|
1700
1691
|
| { id: number; frame: VideoFrame }
|
|
1701
1692
|
| { id: number; error: string };
|
|
1702
1693
|
|
|
1703
|
-
const colorAlphaMergerWorkerCode = () => {
|
|
1694
|
+
export const colorAlphaMergerWorkerCode = () => {
|
|
1704
1695
|
// These buffers are reused across frames as long as the size matches, since consecutive frames usually share
|
|
1705
1696
|
// dimensions
|
|
1706
1697
|
let cpuAlphaBuffer: Uint8Array | null = null;
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
CallSerializer,
|
|
32
32
|
clamp,
|
|
33
33
|
clearIntervalUnthrottled,
|
|
34
|
+
createWorker,
|
|
34
35
|
floorToDivisor,
|
|
35
36
|
isCodecReclaimedError,
|
|
36
37
|
isFirefox,
|
|
@@ -1239,8 +1240,6 @@ const detectAvcChunkTimestampShift = () => {
|
|
|
1239
1240
|
})();
|
|
1240
1241
|
};
|
|
1241
1242
|
|
|
1242
|
-
let splitterWorkerUrl: string | null = null;
|
|
1243
|
-
|
|
1244
1243
|
/** Utility class for splitting a composite frame into separate color and alpha parts on the CPU in a worker. */
|
|
1245
1244
|
export class ColorAlphaSplitter {
|
|
1246
1245
|
private worker: Worker | null = null;
|
|
@@ -1253,15 +1252,7 @@ export class ColorAlphaSplitter {
|
|
|
1253
1252
|
|
|
1254
1253
|
split(sourceFrame: VideoFrame): Promise<{ colorFrame: VideoFrame; alphaFrame: VideoFrame }> {
|
|
1255
1254
|
if (!this.worker) {
|
|
1256
|
-
|
|
1257
|
-
const blob = new Blob(
|
|
1258
|
-
[`(${colorAlphaSplitterWorkerCode.toString()})()`],
|
|
1259
|
-
{ type: 'application/javascript' },
|
|
1260
|
-
);
|
|
1261
|
-
splitterWorkerUrl = URL.createObjectURL(blob);
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
this.worker = new Worker(splitterWorkerUrl);
|
|
1255
|
+
this.worker = createWorker('color-alpha-splitter', colorAlphaSplitterWorkerCode);
|
|
1265
1256
|
|
|
1266
1257
|
this.worker.addEventListener('message', (event: MessageEvent<ColorAlphaSplitterWorkerResponse>) => {
|
|
1267
1258
|
const data = event.data;
|
|
@@ -1316,7 +1307,7 @@ type ColorAlphaSplitterWorkerResponse =
|
|
|
1316
1307
|
| { id: number; colorFrame: VideoFrame; alphaFrame: VideoFrame }
|
|
1317
1308
|
| { id: number; error: string };
|
|
1318
1309
|
|
|
1319
|
-
const colorAlphaSplitterWorkerCode = () => {
|
|
1310
|
+
export const colorAlphaSplitterWorkerCode = () => {
|
|
1320
1311
|
// Reused across frames as long as the size matches, since consecutive frames usually share dimensions.
|
|
1321
1312
|
let cpuSourceBuffer: Uint8Array | null = null;
|
|
1322
1313
|
|
|
@@ -3406,7 +3397,7 @@ type MediaStreamTrackProcessorControllerMessage = {
|
|
|
3406
3397
|
trackId: number;
|
|
3407
3398
|
};
|
|
3408
3399
|
|
|
3409
|
-
const mediaStreamTrackProcessorWorkerCode = () => {
|
|
3400
|
+
export const mediaStreamTrackProcessorWorkerCode = () => {
|
|
3410
3401
|
const sendMessage = (message: MediaStreamTrackProcessorWorkerMessage, transfer?: Transferable[]) => {
|
|
3411
3402
|
if (transfer) {
|
|
3412
3403
|
self.postMessage(message, { transfer });
|
|
@@ -3491,13 +3482,7 @@ let nextMediaStreamTrackProcessorWorkerId = 0;
|
|
|
3491
3482
|
let mediaStreamTrackProcessorWorker: Worker | null = null;
|
|
3492
3483
|
|
|
3493
3484
|
const initMediaStreamTrackProcessorWorker = () => {
|
|
3494
|
-
|
|
3495
|
-
[`(${mediaStreamTrackProcessorWorkerCode.toString()})()`],
|
|
3496
|
-
{ type: 'application/javascript' },
|
|
3497
|
-
);
|
|
3498
|
-
const url = URL.createObjectURL(blob);
|
|
3499
|
-
|
|
3500
|
-
mediaStreamTrackProcessorWorker = new Worker(url);
|
|
3485
|
+
mediaStreamTrackProcessorWorker = createWorker('media-stream-track-processor', mediaStreamTrackProcessorWorkerCode);
|
|
3501
3486
|
};
|
|
3502
3487
|
|
|
3503
3488
|
let mediaStreamTrackProcessorIsSupportedInWorkerCache: boolean | null = null;
|
|
@@ -1450,7 +1450,7 @@ const shouldUseNativeTimers = () => {
|
|
|
1450
1450
|
return typeof window === 'undefined';
|
|
1451
1451
|
};
|
|
1452
1452
|
|
|
1453
|
-
const
|
|
1453
|
+
export const unthrottledTimerWorkerCode = () => {
|
|
1454
1454
|
const timeoutHandles = new Map<number, ReturnType<typeof setTimeout>>();
|
|
1455
1455
|
const intervalHandles = new Map<number, ReturnType<typeof setInterval>>();
|
|
1456
1456
|
|
|
@@ -1499,10 +1499,7 @@ const getUnthrottledTimerWorker = () => {
|
|
|
1499
1499
|
return unthrottledTimerWorker;
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
|
-
|
|
1503
|
-
const workerURL = URL.createObjectURL(new Blob([workerSource], { type: 'text/javascript' }));
|
|
1504
|
-
unthrottledTimerWorker = new Worker(workerURL);
|
|
1505
|
-
URL.revokeObjectURL(workerURL);
|
|
1502
|
+
unthrottledTimerWorker = createWorker('unthrottled-timer', unthrottledTimerWorkerCode);
|
|
1506
1503
|
|
|
1507
1504
|
unthrottledTimerWorker.onmessage = (event: MessageEvent<UnthrottledTimerEvent>) => {
|
|
1508
1505
|
const message = event.data;
|
|
@@ -1523,6 +1520,30 @@ const getUnthrottledTimerWorker = () => {
|
|
|
1523
1520
|
return unthrottledTimerWorker;
|
|
1524
1521
|
};
|
|
1525
1522
|
|
|
1523
|
+
const workerBlobUrls = new Map<() => void, string>();
|
|
1524
|
+
|
|
1525
|
+
export const createWorker = (name: string, workerMain: () => void) => {
|
|
1526
|
+
const workerUrl = (globalThis as Record<symbol, unknown>)[Symbol.for('mediabunny:workerUrl')];
|
|
1527
|
+
if (workerUrl !== undefined && typeof workerUrl !== 'string' && !(workerUrl instanceof URL)) {
|
|
1528
|
+
throw new TypeError(
|
|
1529
|
+
'globalThis[Symbol.for(\'mediabunny:workerUrl\')], when provided, must be a string or URL.',
|
|
1530
|
+
);
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
// For environments that can't run blob: workers. The standalone worker file runs the program matching the name.
|
|
1534
|
+
if (workerUrl !== undefined) {
|
|
1535
|
+
return new Worker(workerUrl, { name });
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
let blobUrl = workerBlobUrls.get(workerMain);
|
|
1539
|
+
if (!blobUrl) {
|
|
1540
|
+
blobUrl = URL.createObjectURL(new Blob([`(${workerMain.toString()})();`], { type: 'text/javascript' }));
|
|
1541
|
+
workerBlobUrls.set(workerMain, blobUrl);
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
return new Worker(blobUrl, { name });
|
|
1545
|
+
};
|
|
1546
|
+
|
|
1526
1547
|
export const setTimeoutUnthrottled = (
|
|
1527
1548
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
1528
1549
|
callback: Function,
|
|
@@ -490,6 +490,11 @@ class Mp3AudioTrackBacking implements InputAudioTrackBacking {
|
|
|
490
490
|
return null;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
+
const fileSize = this.demuxer.reader.fileSize;
|
|
494
|
+
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
495
|
+
return null; // Data definitely doesn't fit
|
|
496
|
+
}
|
|
497
|
+
|
|
493
498
|
let data: Uint8Array;
|
|
494
499
|
if (options.metadataOnly) {
|
|
495
500
|
data = PLACEHOLDER_DATA;
|
|
@@ -234,6 +234,7 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
234
234
|
// Some files contain these multiple times, but we only care about their first appearance
|
|
235
235
|
let hasProgramAssociationTable = false;
|
|
236
236
|
let hasProgramMap = false;
|
|
237
|
+
let initDemuxer: MpegTsDemuxer | null = null;
|
|
237
238
|
|
|
238
239
|
while (true) {
|
|
239
240
|
const packetHeader = await this.readPacketHeader(currentPos);
|
|
@@ -542,31 +543,41 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
542
543
|
elementaryStream.firstSection = section;
|
|
543
544
|
elementaryStream.canBeTrustedWithKeyPackets = section.randomAccessIndicator === 1;
|
|
544
545
|
|
|
545
|
-
|
|
546
|
-
const initDemuxer = (await this.input._initInput._getDemuxer()) as MpegTsDemuxer;
|
|
547
|
-
if (initDemuxer.constructor !== MpegTsDemuxer) {
|
|
548
|
-
throw new Error('Init input must match the input\'s format.');
|
|
549
|
-
}
|
|
546
|
+
const context = new PacketReadingContext(elementaryStream, section.startPos);
|
|
550
547
|
|
|
551
|
-
|
|
548
|
+
if (elementaryStream.info.type === 'video') {
|
|
549
|
+
let packetCount = 0;
|
|
552
550
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
551
|
+
// We loop because in some files, the video parameters are not in the first packet
|
|
552
|
+
while (true) {
|
|
553
|
+
if (packetCount === 1 && this.input._initInput) {
|
|
554
|
+
// The parameters aren't in the first packet, so instead of searching further (which
|
|
555
|
+
// may take long), get them from the init input
|
|
556
|
+
if (!initDemuxer) {
|
|
557
|
+
initDemuxer = (await this.input._initInput._getDemuxer()) as MpegTsDemuxer;
|
|
558
|
+
if (initDemuxer.constructor !== MpegTsDemuxer) {
|
|
559
|
+
throw new Error('Init input must match the input\'s format.');
|
|
560
|
+
}
|
|
556
561
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
elementaryStream.initialized = true;
|
|
562
|
+
await initDemuxer.readMetadata();
|
|
563
|
+
}
|
|
560
564
|
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
565
|
+
const matchingStream = initDemuxer.elementaryStreams.find(x => (
|
|
566
|
+
x.pid === section.pid
|
|
567
|
+
&& x.info.codec === elementaryStream.info.codec
|
|
568
|
+
&& x.initialized
|
|
569
|
+
));
|
|
564
570
|
|
|
565
|
-
|
|
571
|
+
if (matchingStream) {
|
|
572
|
+
elementaryStream.info = matchingStream.info;
|
|
573
|
+
elementaryStream.initialized = true;
|
|
574
|
+
|
|
575
|
+
break outer; // We have the stream info, we're done
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
packetCount++;
|
|
566
580
|
|
|
567
|
-
if (elementaryStream.info.type === 'video') {
|
|
568
|
-
// We loop because in some files, the video parameters are not in the first packet
|
|
569
|
-
while (true) {
|
|
570
581
|
const contextAlias = context; // TyyyyypeScript 😩
|
|
571
582
|
contextAlias.suppliedPacket = null;
|
|
572
583
|
await context.markNextPacket();
|