agentroam-runtime-darwin-arm64 0.2.0-preview.79 → 0.2.0-preview.80
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 +3 -3
- 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 +2 -2
- 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/harness/status/route.js +1 -1
- package/runtime/.next/server/app/api/agent/model/route.js +1 -1
- package/runtime/.next/server/app/api/agent/models/route.js +1 -1
- package/runtime/.next/server/app/api/agent/run/route.js +1 -1
- package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
- package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/stream/route.js +3 -3
- package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
- package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
- package/runtime/.next/server/app/api/business/route.js +1 -1
- package/runtime/.next/server/app/api/calendar/route.js +2 -2
- package/runtime/.next/server/app/api/client-logs/route.js +1 -1
- package/runtime/.next/server/app/api/collaboration/route.js +2 -2
- package/runtime/.next/server/app/api/engine-threads/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
- package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
- package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
- package/runtime/.next/server/app/api/internal/todo-bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/internal/todo-mcp/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
- package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
- package/runtime/.next/server/app/api/memory/route.js +1 -1
- package/runtime/.next/server/app/api/messaging/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/[id]/ack/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/stream/route.js +2 -2
- package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
- package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/projects/check/route.js +1 -1
- package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
- package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
- package/runtime/.next/server/app/api/projects/route.js +1 -1
- package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/unsubscribe/route.js +3 -3
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- package/runtime/.next/server/app/api/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 +33 -33
- package/runtime/.next/server/chunks/1298.js +1 -1
- package/runtime/.next/server/chunks/5303.js +1 -1
- package/runtime/.next/server/chunks/6703.js +1 -1
- package/runtime/.next/server/chunks/9119.js +2 -2
- 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-fac7681c6397fcd7.js → error-f313c4014e78cef5.js} +1 -1
- package/runtime/.next/static/chunks/app/web/layout-80fa1b5f4c96b0b5.js +1 -0
- package/runtime/.next/static/chunks/app/web/page-2e962377e57d3383.js +1 -0
- package/runtime/.next/static/chunks/{main-app-0c7cccb2825ad747.js → main-app-ea4c5663714943e2.js} +1 -1
- package/runtime/lib/device-pairing-gateway.mjs +1 -1
- package/runtime/lib/pairing-page.mjs +5 -4
- package/runtime/lib/pwa-assets.mjs +3 -0
- package/runtime/lib/tunnel-control.mjs +38 -3
- 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/@anthropic-ai/claude-agent-sdk/bridge.mjs +79 -75
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +52 -52
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0e6mn0ck.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0ssqfy51.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82ghff97.mjs +39 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82yhcz2x.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b8jr1m8m.mjs +23 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-cj0jh226.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ebtbxtjf.mjs +28 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-pb4erfqh.mjs +42 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-664d5mmy.mjs → core-q4cwy1ja.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-rs058s2g.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-w6pv4szb.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wjeh40nr.mjs +20 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-70sfhqm6.mjs → core-zn1abzvs.mjs} +2 -2
- 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 +23 -22
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +83 -84
- package/runtime/node_modules/caniuse-lite/package.json +1 -1
- package/runtime/node_modules/mediabunny/README.md +0 -4
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +127 -185
- 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 +127 -185
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +127 -185
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +0 -4
- package/runtime/node_modules/mediabunny/dist/modules/src/aes.js +4 -6
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +0 -6
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +5 -17
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +1 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +1 -12
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +18 -34
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +0 -3
- package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +8 -3
- package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +12 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +5 -19
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +0 -4
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +13 -22
- 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 +65 -70
- package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
- package/runtime/node_modules/mediabunny/package.json +1 -1
- package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +0 -5
- package/runtime/node_modules/mediabunny/src/aes.ts +4 -7
- package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +0 -7
- package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +6 -19
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +1 -2
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +1 -15
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +19 -37
- package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +0 -4
- package/runtime/node_modules/mediabunny/src/media-sink.ts +12 -3
- package/runtime/node_modules/mediabunny/src/media-source.ts +20 -5
- package/runtime/node_modules/mediabunny/src/misc.ts +5 -26
- package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +0 -5
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +19 -30
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +2 -2
- package/runtime/node_modules/mediabunny/src/segmented-input.ts +79 -76
- package/runtime/node_modules/mediabunny/src/version.ts +1 -1
- package/runtime/package-lock.json +162 -162
- package/runtime/public/pwa/apple-touch-icon.png +0 -0
- package/runtime/public/pwa/icon-maskable-512.png +0 -0
- package/runtime/public/pwa/manifest.webmanifest +2 -1
- package/runtime/public/pwa/pairing-scan.js +32 -14
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/apple-touch-icon.png +0 -0
- package/runtime/webapp/dist/assets/{AIHubView-4kqTaPjO.js → AIHubView-CM6ugXG3.js} +1 -1
- package/runtime/webapp/dist/assets/{AgentManager-CDgiLqF_.js → AgentManager-dXI31b0a.js} +1 -1
- package/runtime/webapp/dist/assets/{AiHubPane-C070jRHe.js → AiHubPane-DFzC3nbd.js} +1 -1
- package/runtime/webapp/dist/assets/{App-iZlxRHaL.js → App-mF6ELC07.js} +4 -4
- package/runtime/webapp/dist/assets/{BrowserLivePanel-DxjgVXXK.js → BrowserLivePanel-CamAULwS.js} +1 -1
- package/runtime/webapp/dist/assets/{CalendarPage-CxPVBlzd.js → CalendarPage-BbYdGYWn.js} +1 -1
- package/runtime/webapp/dist/assets/{CalendarView-CS-OG-13.js → CalendarView-QfbrlL9X.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationCreateDialog-tI6S1cha.js → CollaborationCreateDialog-CWhmFQtA.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationDashboard-DSZa3Cns.js → CollaborationDashboard-XL5SnFOu.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationPage-COyvllTJ.js → CollaborationPage-B1tiqgnG.js} +1 -1
- package/runtime/webapp/dist/assets/{FilePreview-CcJXlLge.js → FilePreview-CPY6dP8Q.js} +3 -3
- package/runtime/webapp/dist/assets/{FileTree-BuhW-pqR.js → FileTree-BBgrOian.js} +1 -1
- package/runtime/webapp/dist/assets/{FileWorkspaceDrawer-ByWXnJ0B.js → FileWorkspaceDrawer-BXDuKlrL.js} +1 -1
- package/runtime/webapp/dist/assets/{FlowStudioPane-CxQ-QIOf.js → FlowStudioPane-lnjLcd9c.js} +1 -1
- package/runtime/webapp/dist/assets/{HostProjectPicker--J4_JpSW.js → HostProjectPicker-DN_vGqQb.js} +1 -1
- package/runtime/webapp/dist/assets/{LSPServerList-fkagcDVv.js → LSPServerList-B-R7HDSP.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-w7tetX3J.js → MCPServerList-CTc0iAwT.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-Xac9EeaV.js → MemoryViewer-Dzh_miRv.js} +1 -1
- package/runtime/webapp/dist/assets/{NewSessionWindow-C460-gxX.js → NewSessionWindow-zjqAUfKb.js} +1 -1
- package/runtime/webapp/dist/assets/{RemoteDesktopPage-BniHztmt.js → RemoteDesktopPage-9AhztqA2.js} +1 -1
- package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-BF1dFltY.js → RemoteDesktopTabBridge-BA_HQv3V.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-D6rY-IzV.js → RunningSessionsIcon-BvFSI9OF.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-D868NjZ_.js → SessionDashboard-DcPPoXe2.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-AhmhQ1Xn.js → SessionDashboardBridge-CjoeUy-v.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-DoDRBreZ.js → SettingsPanel-DmdXDQUm.js} +1 -1
- package/runtime/webapp/dist/assets/{SkillManager-Da7bpT-s.js → SkillManager-CS_skFZj.js} +1 -1
- package/runtime/webapp/dist/assets/{TaskPaneTerminal-DTDU88Rr.js → TaskPaneTerminal-BFHDRCb9.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-_dVVs00I.js → TerminalPane-Dr_nY9pI.js} +1 -1
- package/runtime/webapp/dist/assets/TodoPage-guIvBCW0.js +1 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-D3GW7M1R.js → abnfDiagram-VCTEODGH-FEEApB15.js} +1 -1
- package/runtime/webapp/dist/assets/{arc-CkEemU1L.js → arc-CycwMc2c.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-GYQtcFLY.js → architectureDiagram-5GKGNRK7-BFq9JapX.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-D5_bj13P.js → blockDiagram-I7D4REHJ-DkOJ55Ag.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-Cyg1YunN.js → c4Diagram-7LVT6UL2-CRvi_3RM.js} +1 -1
- package/runtime/webapp/dist/assets/{calendar-days-B1Mn3x8A.js → calendar-days-CLwKstxM.js} +1 -1
- package/runtime/webapp/dist/assets/channel-BwDuyJO4.js +1 -0
- package/runtime/webapp/dist/assets/{check-D-yTByNl.js → check-8EVJMrTV.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-down-hiPnZS_M.js → chevron-down-ChNxfI2x.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-right-DKsui_wS.js → chevron-right-Cbkc_d70.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-ZYdmLJUM.js → chunk-2Q5K7J3B-Cklzvs8u.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-C-zA5MxE.js → chunk-5VM5RSS4-NxozE5UP.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-cWERJSPb.js → chunk-F27PBJKO-Dyb8E7YM.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BDqkH2_j.js → chunk-IMKFNOWR-BqbMMc1n.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-D0hOf4wm.js → chunk-JWPE2WC7-do0R2H6U.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-bGKHqXLU.js → chunk-POPQ4Y6H-B2HIaynf.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-DbzwWcno.js → chunk-SVP7TREG-C_zmjkwn.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-CmCx8YTb.js → chunk-TICWLB2K-Dh2bZgM1.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-COAufrJq.js → chunk-XXDRQBXY-CnqciVDz.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BfyV8P0w.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BfyV8P0w.js +1 -0
- package/runtime/webapp/dist/assets/{client-5Hu1eVTX.js → client-I0ZVCjOI.js} +1 -1
- package/runtime/webapp/dist/assets/{codeSyntax-Jy5nWtHv.js → codeSyntax-C8n4_KZS.js} +1 -1
- package/runtime/webapp/dist/assets/{collaboration-DRFqpcAz.js → collaboration-lVxWL5ce.js} +1 -1
- package/runtime/webapp/dist/assets/{composer-file-routing-BtvXnu_o.js → composer-file-routing-qSvJpT-v.js} +1 -1
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-BU8MmGqT.js → cose-bilkent-JH36ORCC-CulKVUkj.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-BHXgPQGq.js → cynefin-OW5HDTMX-C1LUI1_G.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-DSJJ_PpM.js → cynefinDiagram-5FMLGOSQ-D3Ymzw_P.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-pJr8jDyF.js → dagre-GXQ25YYZ-DRaL0cGu.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-BZ_7PPQn.js → diagram-S7CK7UJ4-D8gLHoZo.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-c8pu5Rp4.js → diagram-UQ7AKVKN-CaVU0aQT.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-D1xao_j-.js → diagram-VSXAHHWV-LFAKRvZz.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-CnBWGCHa.js → diagram-VX7I27RA-DXpxUERc.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-D-TCo4OF.js → diagram-Z3DM3KII-vAiik55G.js} +1 -1
- package/runtime/webapp/dist/assets/{download-B2jLl85N.js → download-BE31-Qm0.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-BGBuf1T3.js → ebnfDiagram-PWID7BFC-MaFL7Kgb.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-D8rCYH4y.js → erDiagram-RLTQ6QDP-DuEu79B3.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-BZ8YZAV-.js → file-types-ZVLWtslN.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BJGQL6in.js → flowDiagram-HODETNUW-BAQ6nP2D.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-K9o-Kk2M.js → ganttDiagram-EL5Y4UJY-C48VBnPy.js} +1 -1
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-BC2r8pLT.js → gitGraphDiagram-WWUBYQGX-BfWAh9Kr.js} +1 -1
- package/runtime/webapp/dist/assets/{history-Ci0s2eVL.js → history-D4E3D_aM.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-Cx4LQVvj.js → image-plus-DQV_EEAN.js} +1 -1
- package/runtime/webapp/dist/assets/{index-D1AQffdA.js → index-DSgLFE4Q.js} +3 -3
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-bFnrh7W7.js → infoDiagram-27XIBGKW-BM7P_-u_.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-Qun77xRt.js → ishikawaDiagram-5VMMS53U-Cwd8XR-p.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-DjCfoBNX.js → journeyDiagram-3NMN7TZE-MOgiksTh.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-BJGlhVsx.js → kanban-definition-UXKFOSKX-DulC5OLL.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-CYTxygXU.js → layout-Dku9sXQ7.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-CzJGOwUm.js → linear-B3-dddD7.js} +1 -1
- package/runtime/webapp/dist/assets/{list-todo-CP9DqU2D.js → list-todo-Bik5IY2r.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-xEKTnlp3.js → loader-circle-C5C-IzGK.js} +1 -1
- package/runtime/webapp/dist/assets/{locate-fixed-CfEojGOl.js → locate-fixed-CHkezEEh.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-BTbaaIjb.js → mermaid.core-CRRXKysA.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-eiKdbp4J.js → mindmap-definition-YA3MSWOX-CaaP-nEb.js} +1 -1
- package/runtime/webapp/dist/assets/{mobileViewport-DF1R6qR2.js → mobileViewport-CekmYKqS.js} +1 -1
- package/runtime/webapp/dist/assets/{new-session-window-BtGAiW4A.css → new-session-window-BfDMd-h3.css} +1 -1
- package/runtime/webapp/dist/assets/{new-session-window-BFILhYAe.js → new-session-window-Dgl7UWPR.js} +26 -26
- package/runtime/webapp/dist/assets/page-_fFyRId-.js +86 -0
- package/runtime/webapp/dist/assets/{pause-C-ecDo3W.js → pause-BsmUCuwZ.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-BuvePvoF.js → pegDiagram-XKGWAZYB-BqybPEwk.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-Csgh2lYE.js → pieDiagram-E7YTZNPT-BX1H2lh2.js} +1 -1
- package/runtime/webapp/dist/assets/{pin-CjmuX5Tq.js → pin-BsEEYq8M.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-8Bbl_RHv.js → quadrantDiagram-AXDQQJYC-Btnywv1k.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-CvYQkIeK.js → railroadDiagram-O6MQD6OU-Da_TV1ER.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-CytOuQX4.js → requirementDiagram-BXWQKSXE-5V1Aow9h.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-HY6j6nBt.js → rotate-ccw-BbSby0GQ.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-CyYR2IEw.js → rotate-cw-BMdX-ln4.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-BoyI7ZhF.js → sankeyDiagram-P5KCCOFB-D_OIVihV.js} +1 -1
- package/runtime/webapp/dist/assets/{send-jSK0YaRl.js → send-Cb7EWSJF.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-Ckvtmn2N.js → sequenceDiagram-WJ2MYXX4-LKeF5Mri.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-B4lyuZYF.js → session-dashboard-BFqNDCc8.js} +1 -1
- package/runtime/webapp/dist/assets/{session-tree-CEy-pW8A.js → session-tree-BK_qaCnb.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-CFebh9do.js → shield-check-C-r87aMq.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-yUQjHNrI.js → sizeCapture-INFHLROL-B6j7Q_MN.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-Dj8oPHDB.js → stateDiagram-D77RDMKH-zhPFqHdQ.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DWnBZAiI.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-GDjg8QNS.js → swimlanes-42K2YHIH-C_FCENx1.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-DOZCbCJP.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-DFDHsxzp.js → timeline-definition-24CTP7MA-C3DBXjDU.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-BF9eI5Bh.js → trash-2-DjggJGbw.js} +1 -1
- package/runtime/webapp/dist/assets/{types-BuPq0iQM.js → types-BQCEWNQz.js} +1 -1
- package/runtime/webapp/dist/assets/{use-session-activity-Ceb8OBjB.js → use-session-activity-BbTXGW7Z.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-DR5HBqo1.js → vennDiagram-4TSXK5OY-CssdTIB0.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-Bb6pROnE.js → wardleyDiagram-VM6X3IG4-C58K2vVU.js} +1 -1
- package/runtime/webapp/dist/assets/{web-BV7fxnr4.js → web-B4y8vdRZ.js} +1 -1
- package/runtime/webapp/dist/assets/{web-C8kCU9om.js → web-D9rJZXHW.js} +1 -1
- package/runtime/webapp/dist/assets/{x-uSekqXJV.js → x-BYUglEo9.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-CrpaVklx.js → xychartDiagram-S5SC5T6Z-CQi8bD6A.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-B59mGU6c.js → zoom-out-iMMWRXJs.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/.next/static/chunks/app/web/layout-79492e587e5930cf.js +0 -1
- package/runtime/.next/static/chunks/app/web/page-0f06deb6eb4d49e0.js +0 -1
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-2g5j09ba.mjs +0 -16
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-59ydwk0g.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-95gcz3n1.mjs +0 -38
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ew5sfvfe.mjs +0 -39
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gjhs7gf6.mjs +0 -20
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-kvdt1szx.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-p654hjkr.mjs +0 -22
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-q9bjbxkv.mjs +0 -19
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-samdvsjh.mjs +0 -33
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x6bt758j.mjs +0 -17
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.worker.js +0 -8
- package/runtime/node_modules/mediabunny/dist/modules/src/worker.js +0 -26
- package/runtime/node_modules/mediabunny/src/worker.ts +0 -28
- package/runtime/webapp/dist/assets/TodoPage-Bqu8bqNk.js +0 -1
- package/runtime/webapp/dist/assets/channel-CnNsi-lz.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-DVRTvUTS.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-DVRTvUTS.js +0 -1
- package/runtime/webapp/dist/assets/page-B-CkpInM.js +0 -86
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Csg946NK.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-BUnuRfXp.js +0 -8
- /package/runtime/.next/static/{Ra6nQooMsDWN9-yjPL93f → 57IUKkg-db8mOGDMma8be}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{Ra6nQooMsDWN9-yjPL93f → 57IUKkg-db8mOGDMma8be}/_ssgManifest.js +0 -0
|
@@ -214,8 +214,10 @@ export const createAes128CbcDecryptStream = (reader, getInit, close) => {
|
|
|
214
214
|
return new ReadableStream({
|
|
215
215
|
pull: async (controller) => {
|
|
216
216
|
try {
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
if (!initted) {
|
|
218
|
+
aesContext.init(await getInit());
|
|
219
|
+
initted = true;
|
|
220
|
+
}
|
|
219
221
|
const requestedLength = CHUNK_SIZE + BLOCK_SIZE;
|
|
220
222
|
let nextSlice = reader.requestSliceRange(pos, 0, requestedLength);
|
|
221
223
|
if (isThenable(nextSlice))
|
|
@@ -233,10 +235,6 @@ export const createAes128CbcDecryptStream = (reader, getInit, close) => {
|
|
|
233
235
|
: sliceLength;
|
|
234
236
|
const input = readBytes(nextSlice, bytesToRead);
|
|
235
237
|
const output = new Uint8Array(bytesToRead);
|
|
236
|
-
if (initPromise) {
|
|
237
|
-
aesContext.init(await initPromise);
|
|
238
|
-
initted = true;
|
|
239
|
-
}
|
|
240
238
|
for (let i = 0; i < bytesToRead; i += 16) {
|
|
241
239
|
aesContext.in.set(input.subarray(i, i + 16));
|
|
242
240
|
aesContext.decrypt();
|
|
@@ -612,17 +612,14 @@ class HlsInputTrackBacking {
|
|
|
612
612
|
return this.internalTrack.hasOnlyKeyPackets || null;
|
|
613
613
|
}
|
|
614
614
|
async getFirstPacket(options) {
|
|
615
|
-
this.prefetchReferencePlaylist();
|
|
616
615
|
await this.hydrate();
|
|
617
616
|
return this.internalTrack.backingTrack.getFirstPacket(options);
|
|
618
617
|
}
|
|
619
618
|
async getPacket(timestamp, options) {
|
|
620
|
-
this.prefetchReferencePlaylist();
|
|
621
619
|
await this.hydrate();
|
|
622
620
|
return this.internalTrack.backingTrack.getPacket(timestamp, options);
|
|
623
621
|
}
|
|
624
622
|
async getKeyPacket(timestamp, options) {
|
|
625
|
-
this.prefetchReferencePlaylist();
|
|
626
623
|
await this.hydrate();
|
|
627
624
|
return this.internalTrack.backingTrack.getKeyPacket(timestamp, options);
|
|
628
625
|
}
|
|
@@ -634,9 +631,6 @@ class HlsInputTrackBacking {
|
|
|
634
631
|
await this.hydrate();
|
|
635
632
|
return this.internalTrack.backingTrack.getNextKeyPacket(packet, options);
|
|
636
633
|
}
|
|
637
|
-
prefetchReferencePlaylist() {
|
|
638
|
-
void this.internalTrack.demuxer.getReferenceSegmentedInput().getFirstSegment().catch(() => { });
|
|
639
|
-
}
|
|
640
634
|
}
|
|
641
635
|
class HlsInputVideoTrackBacking extends HlsInputTrackBacking {
|
|
642
636
|
constructor(internalTrack) {
|
|
@@ -567,16 +567,8 @@ export class HlsSegmentedInput extends SegmentedInput {
|
|
|
567
567
|
return cacheEntry.input;
|
|
568
568
|
}
|
|
569
569
|
let initInput = null;
|
|
570
|
-
if (hlsSegment.initSegment) {
|
|
571
|
-
initInput = this.getInputForSegment(hlsSegment.initSegment);
|
|
572
|
-
// Fetch the init input's data immediately to avoid the serial request chain of first having to go through
|
|
573
|
-
// the segment before the init section is even requested. Reduces latency.
|
|
574
|
-
void initInput.getTracks().catch(() => { });
|
|
575
|
-
}
|
|
576
|
-
else if (hlsSegment.firstSegment) {
|
|
577
|
-
// Don't prefetch this one. It's only needed in rare cases, like MPEG-TS segments that are missing media
|
|
578
|
-
// initialization, so it's not generally worth it to prefetch this.
|
|
579
|
-
initInput = this.getInputForSegment(hlsSegment.firstSegment);
|
|
570
|
+
if (hlsSegment.initSegment || hlsSegment.firstSegment) {
|
|
571
|
+
initInput = this.getInputForSegment((hlsSegment.initSegment ?? hlsSegment.firstSegment));
|
|
580
572
|
}
|
|
581
573
|
const formatOptions = {
|
|
582
574
|
...this.input._formatOptions,
|
|
@@ -702,17 +694,15 @@ export class HlsSegmentedInput extends SegmentedInput {
|
|
|
702
694
|
}
|
|
703
695
|
getFirstSegmentTimestampOffset() {
|
|
704
696
|
return this.segmentTimestampOffsetPromise ??= (async () => {
|
|
697
|
+
const firstSegment = await this.getFirstSegment();
|
|
698
|
+
assert(firstSegment);
|
|
705
699
|
const referenceSegmentedInput = this.demuxer.getReferenceSegmentedInput();
|
|
706
700
|
if (this === referenceSegmentedInput) {
|
|
707
701
|
return 0;
|
|
708
702
|
}
|
|
709
|
-
const [firstSegment, referenceFirstSegment] = await Promise.all([
|
|
710
|
-
this.getFirstSegment(),
|
|
711
|
-
referenceSegmentedInput.getFirstSegment(),
|
|
712
|
-
]);
|
|
713
|
-
assert(firstSegment);
|
|
714
703
|
// An offset of 0 is only safe (= close enough) if we start at the same point as the reference: either both
|
|
715
704
|
// of us list all segments since the presentation's start, or both of us are on date-time-based timelines
|
|
705
|
+
const referenceFirstSegment = await referenceSegmentedInput.getFirstSegment();
|
|
716
706
|
if (referenceFirstSegment
|
|
717
707
|
&& ((this.listsAllSegments() && referenceSegmentedInput.listsAllSegments())
|
|
718
708
|
|| (firstSegment.unixEpochTimestamp === firstSegment.timestamp
|
|
@@ -722,8 +712,6 @@ export class HlsSegmentedInput extends SegmentedInput {
|
|
|
722
712
|
// Otherwise, we must fetch the actual media timestamp of the first segment to properly deduce the offset
|
|
723
713
|
// that we need
|
|
724
714
|
const input = this.getInputForSegment(firstSegment);
|
|
725
|
-
// Kick this off early so it runs in parallel to loading our own media
|
|
726
|
-
void this.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => { });
|
|
727
715
|
if (await this.getRawTimestampOffset(input) === null) {
|
|
728
716
|
return 0;
|
|
729
717
|
}
|
|
@@ -1305,8 +1305,7 @@ export const tfhd = (trackData) => {
|
|
|
1305
1305
|
export const tfdt = (trackData) => {
|
|
1306
1306
|
assert(trackData.currentChunk);
|
|
1307
1307
|
return fullBox('tfdt', 1, 0, [
|
|
1308
|
-
// Base Media Decode Time
|
|
1309
|
-
u64(intoTimescale(trackData.currentChunk.samples[0].decodeTimestamp, trackData.timescale)),
|
|
1308
|
+
u64(intoTimescale(trackData.currentChunk.startTimestamp, trackData.timescale)), // Base Media Decode Time
|
|
1310
1309
|
]);
|
|
1311
1310
|
};
|
|
1312
1311
|
/** Track Run Box: Specifies a run of contiguous samples for a given track. */
|
|
@@ -128,10 +128,7 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
128
128
|
}
|
|
129
129
|
currentPos = startPos + boxInfo.totalSize;
|
|
130
130
|
}
|
|
131
|
-
if (!foundMovieBoxes) {
|
|
132
|
-
if (!this.input._initInput) {
|
|
133
|
-
throw new Error('No "moov" box found; the file is invalid or incomplete.');
|
|
134
|
-
}
|
|
131
|
+
if (!foundMovieBoxes && this.input._initInput) {
|
|
135
132
|
// A segment file is allowed to hold zero fragments, in which case there's no moof box to key off of.
|
|
136
133
|
// It's still a perfectly valid segment, so let's take the tracks from the init input.
|
|
137
134
|
await this.copyMetadataFromInitInput(this.input._initInput);
|
|
@@ -2918,10 +2915,6 @@ class IsobmffTrackBacking {
|
|
|
2918
2915
|
if (!sampleInfo) {
|
|
2919
2916
|
return null;
|
|
2920
2917
|
}
|
|
2921
|
-
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
2922
|
-
if (fileSize !== null && sampleInfo.sampleOffset + sampleInfo.sampleSize > fileSize) {
|
|
2923
|
-
return null; // Data is definitely outside
|
|
2924
|
-
}
|
|
2925
2918
|
let data;
|
|
2926
2919
|
if (options.metadataOnly && this.internalTrack.info?.codec !== 'eac3') { // E-AC-3 is split by its data
|
|
2927
2920
|
data = PLACEHOLDER_DATA;
|
|
@@ -2965,10 +2958,6 @@ class IsobmffTrackBacking {
|
|
|
2965
2958
|
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
2966
2959
|
const fragmentSample = trackData.samples[sampleIndex];
|
|
2967
2960
|
assert(fragmentSample);
|
|
2968
|
-
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
2969
|
-
if (fileSize !== null && fragmentSample.byteOffset + fragmentSample.byteSize > fileSize) {
|
|
2970
|
-
return null; // Data is definitely outside
|
|
2971
|
-
}
|
|
2972
2961
|
let data;
|
|
2973
2962
|
if (options.metadataOnly && this.internalTrack.info?.codec !== 'eac3') { // E-AC-3 is split by its data
|
|
2974
2963
|
data = PLACEHOLDER_DATA;
|
|
@@ -727,36 +727,21 @@ export class IsobmffMuxer extends Muxer {
|
|
|
727
727
|
trackData.timestampProcessingQueue.length = 0;
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
-
const
|
|
731
|
-
const sortedTimestamps = queue.map(x => x.timestamp).sort((a, b) => a - b);
|
|
732
|
-
const firstTimestampInTimescale = intoTimescale(sortedTimestamps[0], trackData.timescale);
|
|
730
|
+
const sortedTimestamps = trackData.timestampProcessingQueue.map(x => x.timestamp).sort((a, b) => a - b);
|
|
733
731
|
if (this.isFragmented) {
|
|
734
732
|
trackData.startTimestampOffset ??= Math.min(sortedTimestamps[0], 0);
|
|
735
733
|
}
|
|
736
734
|
else {
|
|
737
735
|
trackData.startTimestampOffset ??= sortedTimestamps[0];
|
|
738
736
|
}
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
else {
|
|
748
|
-
assert(trackData.lastSample);
|
|
749
|
-
groupStartTimescaleUnits = Math.round(trackData.lastTimescaleUnits)
|
|
750
|
-
+ trackData.lastSample.timescaleUnitsToNextSample;
|
|
751
|
-
}
|
|
752
|
-
let lastDecodeStep = 0;
|
|
753
|
-
for (let i = 0; i < queue.length; i++) {
|
|
754
|
-
const sample = queue[i];
|
|
755
|
-
const decodeTimescaleUnits = groupStartTimescaleUnits
|
|
756
|
-
+ intoTimescale(sortedTimestamps[i], trackData.timescale)
|
|
757
|
-
- firstTimestampInTimescale;
|
|
758
|
-
sample.decodeTimestamp = decodeTimescaleUnits / trackData.timescale;
|
|
759
|
-
const sampleCompositionTimeOffset = intoTimescale(sample.timestamp, trackData.timescale) - decodeTimescaleUnits;
|
|
737
|
+
for (let i = 0; i < trackData.timestampProcessingQueue.length; i++) {
|
|
738
|
+
const sample = trackData.timestampProcessingQueue[i];
|
|
739
|
+
// Since the user only supplies presentation time, but these may be out of order, we reverse-engineer from
|
|
740
|
+
// that a sensible decode timestamp. The notion of a decode timestamp doesn't really make sense
|
|
741
|
+
// (presentation timestamp & decode order are all you need), but it is a concept in ISOBMFF so we need to
|
|
742
|
+
// model it.
|
|
743
|
+
sample.decodeTimestamp = sortedTimestamps[i];
|
|
744
|
+
const sampleCompositionTimeOffset = intoTimescale(sample.timestamp - sample.decodeTimestamp, trackData.timescale);
|
|
760
745
|
const durationInTimescale = intoTimescale(sample.duration, trackData.timescale);
|
|
761
746
|
if (trackData.lastTimescaleUnits !== null) {
|
|
762
747
|
assert(trackData.lastSample);
|
|
@@ -765,7 +750,6 @@ export class IsobmffMuxer extends Muxer {
|
|
|
765
750
|
assert(delta >= 0);
|
|
766
751
|
trackData.lastTimescaleUnits += delta;
|
|
767
752
|
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
768
|
-
lastDecodeStep = delta;
|
|
769
753
|
if (!this.isFragmented) {
|
|
770
754
|
let lastTableEntry = last(trackData.timeToSampleTable);
|
|
771
755
|
assert(lastTableEntry);
|
|
@@ -833,15 +817,15 @@ export class IsobmffMuxer extends Muxer {
|
|
|
833
817
|
trackData.timestampProcessingQueue.length = 0;
|
|
834
818
|
assert(trackData.lastSample);
|
|
835
819
|
assert(trackData.lastTimescaleUnits !== null);
|
|
836
|
-
if (nextSample) {
|
|
837
|
-
|
|
838
|
-
//
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
//
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
820
|
+
if (nextSample !== undefined && trackData.lastSample.timescaleUnitsToNextSample === 0) {
|
|
821
|
+
assert(nextSample.type === 'key');
|
|
822
|
+
// Given the next sample, we can make a guess about the duration of the last sample. This avoids having
|
|
823
|
+
// the last sample's duration in each fragment be "0" for fragmented files. The guess we make here is
|
|
824
|
+
// actually correct most of the time, since typically, no delta frame with a lower timestamp follows the key
|
|
825
|
+
// frame (although it can happen).
|
|
826
|
+
const timescaleUnits = intoTimescale(nextSample.timestamp, trackData.timescale, false);
|
|
827
|
+
const delta = Math.round(timescaleUnits - trackData.lastTimescaleUnits);
|
|
828
|
+
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
845
829
|
}
|
|
846
830
|
}
|
|
847
831
|
async registerSample(trackData, sample) {
|
|
@@ -162,9 +162,6 @@ export class MatroskaDemuxer extends Demuxer {
|
|
|
162
162
|
assertDefinedSize(size);
|
|
163
163
|
currentPos = dataStartPos + size;
|
|
164
164
|
}
|
|
165
|
-
if (this.segments.length === 0) {
|
|
166
|
-
throw new Error('No Segment element found; the file is invalid or incomplete.');
|
|
167
|
-
}
|
|
168
165
|
})();
|
|
169
166
|
}
|
|
170
167
|
async readSegment(segmentDataStart, dataSize) {
|
|
@@ -10,7 +10,7 @@ import { addAvcBitstreamRestriction, AvcNalUnitType, concatAvcNalUnits, countSho
|
|
|
10
10
|
import { customVideoDecoders, customAudioDecoders } from './custom-coder.js';
|
|
11
11
|
import { InputDisposedError } from './input.js';
|
|
12
12
|
import { InputAudioTrack, InputTrack, InputVideoTrack } from './input-track.js';
|
|
13
|
-
import { assert, assertNever, CallSerializer, clamp, colorSpaceIsComplete,
|
|
13
|
+
import { assert, assertNever, CallSerializer, clamp, colorSpaceIsComplete, getInt24, getUint24, insertSorted, isAndroid, isChromium, isFirefox, isNumber, isWebKit, last, mapAsyncGenerator, missingWebCodecsClassMessage, promiseWithResolvers, removeItem, roundToDivisor, toAsyncIterator, toDataView, toUint8Array, validateAnyIterable, } from './misc.js';
|
|
14
14
|
import { EncodedPacket } from './packet.js';
|
|
15
15
|
import { fromAlaw, fromUlaw } from './pcm.js';
|
|
16
16
|
import { AudioSample, clampCropRectangle, validateCropRectangle, VideoSample, } from './sample.js';
|
|
@@ -1294,6 +1294,7 @@ class VideoDecoderWrapper extends DecoderWrapper {
|
|
|
1294
1294
|
this.sampleQueue.length = 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
|
+
let mergerWorkerUrl = null;
|
|
1297
1298
|
/** Utility class that merges together color and alpha information on the CPU in a pool of workers. */
|
|
1298
1299
|
export class ColorAlphaMerger {
|
|
1299
1300
|
constructor() {
|
|
@@ -1304,9 +1305,13 @@ export class ColorAlphaMerger {
|
|
|
1304
1305
|
}
|
|
1305
1306
|
merge(color, alpha) {
|
|
1306
1307
|
if (this.workers.length === 0) {
|
|
1308
|
+
if (!mergerWorkerUrl) {
|
|
1309
|
+
const blob = new Blob([`(${colorAlphaMergerWorkerCode.toString()})()`], { type: 'application/javascript' });
|
|
1310
|
+
mergerWorkerUrl = URL.createObjectURL(blob);
|
|
1311
|
+
}
|
|
1307
1312
|
const poolSize = clamp(navigator.hardwareConcurrency, 1, 4);
|
|
1308
1313
|
for (let i = 0; i < poolSize; i++) {
|
|
1309
|
-
const worker =
|
|
1314
|
+
const worker = new Worker(mergerWorkerUrl);
|
|
1310
1315
|
worker.addEventListener('message', (event) => {
|
|
1311
1316
|
const data = event.data;
|
|
1312
1317
|
const pending = this.pendingRequests.get(data.id);
|
|
@@ -1355,7 +1360,7 @@ export class ColorAlphaMerger {
|
|
|
1355
1360
|
this.pendingRequests.clear();
|
|
1356
1361
|
}
|
|
1357
1362
|
}
|
|
1358
|
-
|
|
1363
|
+
const colorAlphaMergerWorkerCode = () => {
|
|
1359
1364
|
// These buffers are reused across frames as long as the size matches, since consecutive frames usually share
|
|
1360
1365
|
// dimensions
|
|
1361
1366
|
let cpuAlphaBuffer = null;
|
|
@@ -59,7 +59,7 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres
|
|
|
59
59
|
});
|
|
60
60
|
import { buildAacAudioSpecificConfig, parseAacAudioSpecificConfig } from '../shared/aac-misc.js';
|
|
61
61
|
import { AUDIO_CODECS, extractVideoCodecString, getAudioEncoderConfigExtension, OPUS_SAMPLE_RATE, parsePcmCodec, PCM_AUDIO_CODECS, SUBTITLE_CODECS, VIDEO_CODECS, } from './codec.js';
|
|
62
|
-
import { assert, assertNever, AsyncMutex, binarySearchLessOrEqual, CallSerializer, clamp, clearIntervalUnthrottled,
|
|
62
|
+
import { assert, assertNever, AsyncMutex, binarySearchLessOrEqual, CallSerializer, clamp, clearIntervalUnthrottled, floorToDivisor, isCodecReclaimedError, isFirefox, isThenable, isWebKit, last, missingWebCodecsClassMessage, promiseWithResolvers, roundToDivisor, setInt24, setIntervalUnthrottled, setUint24, toUint8Array, wait, } from './misc.js';
|
|
63
63
|
import { SubtitleParser } from './subtitles.js';
|
|
64
64
|
import { toAlaw, toUlaw } from './pcm.js';
|
|
65
65
|
import { customVideoEncoders, customAudioEncoders, } from './custom-coder.js';
|
|
@@ -1042,6 +1042,7 @@ const detectAvcChunkTimestampShift = () => {
|
|
|
1042
1042
|
return chunkTimestamp === 500;
|
|
1043
1043
|
})();
|
|
1044
1044
|
};
|
|
1045
|
+
let splitterWorkerUrl = null;
|
|
1045
1046
|
/** Utility class for splitting a composite frame into separate color and alpha parts on the CPU in a worker. */
|
|
1046
1047
|
export class ColorAlphaSplitter {
|
|
1047
1048
|
constructor() {
|
|
@@ -1051,7 +1052,11 @@ export class ColorAlphaSplitter {
|
|
|
1051
1052
|
}
|
|
1052
1053
|
split(sourceFrame) {
|
|
1053
1054
|
if (!this.worker) {
|
|
1054
|
-
|
|
1055
|
+
if (!splitterWorkerUrl) {
|
|
1056
|
+
const blob = new Blob([`(${colorAlphaSplitterWorkerCode.toString()})()`], { type: 'application/javascript' });
|
|
1057
|
+
splitterWorkerUrl = URL.createObjectURL(blob);
|
|
1058
|
+
}
|
|
1059
|
+
this.worker = new Worker(splitterWorkerUrl);
|
|
1055
1060
|
this.worker.addEventListener('message', (event) => {
|
|
1056
1061
|
const data = event.data;
|
|
1057
1062
|
const pending = this.pendingRequests.get(data.id);
|
|
@@ -1090,7 +1095,7 @@ export class ColorAlphaSplitter {
|
|
|
1090
1095
|
this.pendingRequests.clear();
|
|
1091
1096
|
}
|
|
1092
1097
|
}
|
|
1093
|
-
|
|
1098
|
+
const colorAlphaSplitterWorkerCode = () => {
|
|
1094
1099
|
// Reused across frames as long as the size matches, since consecutive frames usually share dimensions.
|
|
1095
1100
|
let cpuSourceBuffer = null;
|
|
1096
1101
|
// Serialize execution internally so concurrent requests don't race on the shared cpuSourceBuffer.
|
|
@@ -2750,7 +2755,7 @@ export class MediaStreamAudioTrackSource extends AudioSource {
|
|
|
2750
2755
|
}
|
|
2751
2756
|
}
|
|
2752
2757
|
}
|
|
2753
|
-
|
|
2758
|
+
const mediaStreamTrackProcessorWorkerCode = () => {
|
|
2754
2759
|
const sendMessage = (message, transfer) => {
|
|
2755
2760
|
if (transfer) {
|
|
2756
2761
|
self.postMessage(message, { transfer });
|
|
@@ -2828,7 +2833,9 @@ export const mediaStreamTrackProcessorWorkerCode = () => {
|
|
|
2828
2833
|
let nextMediaStreamTrackProcessorWorkerId = 0;
|
|
2829
2834
|
let mediaStreamTrackProcessorWorker = null;
|
|
2830
2835
|
const initMediaStreamTrackProcessorWorker = () => {
|
|
2831
|
-
|
|
2836
|
+
const blob = new Blob([`(${mediaStreamTrackProcessorWorkerCode.toString()})()`], { type: 'application/javascript' });
|
|
2837
|
+
const url = URL.createObjectURL(blob);
|
|
2838
|
+
mediaStreamTrackProcessorWorker = new Worker(url);
|
|
2832
2839
|
};
|
|
2833
2840
|
let mediaStreamTrackProcessorIsSupportedInWorkerCache = null;
|
|
2834
2841
|
const mediaStreamTrackProcessorIsSupportedInWorker = async () => {
|
|
@@ -1103,7 +1103,7 @@ const unthrottledIntervalCallbacks = new Map();
|
|
|
1103
1103
|
const shouldUseNativeTimers = () => {
|
|
1104
1104
|
return typeof window === 'undefined';
|
|
1105
1105
|
};
|
|
1106
|
-
|
|
1106
|
+
const unthrottledTimerWorkerMain = () => {
|
|
1107
1107
|
const timeoutHandles = new Map();
|
|
1108
1108
|
const intervalHandles = new Map();
|
|
1109
1109
|
self.onmessage = (event) => {
|
|
@@ -1155,7 +1155,10 @@ const getUnthrottledTimerWorker = () => {
|
|
|
1155
1155
|
if (unthrottledTimerWorker) {
|
|
1156
1156
|
return unthrottledTimerWorker;
|
|
1157
1157
|
}
|
|
1158
|
-
|
|
1158
|
+
const workerSource = `(${unthrottledTimerWorkerMain.toString()})();`;
|
|
1159
|
+
const workerURL = URL.createObjectURL(new Blob([workerSource], { type: 'text/javascript' }));
|
|
1160
|
+
unthrottledTimerWorker = new Worker(workerURL);
|
|
1161
|
+
URL.revokeObjectURL(workerURL);
|
|
1159
1162
|
unthrottledTimerWorker.onmessage = (event) => {
|
|
1160
1163
|
const message = event.data;
|
|
1161
1164
|
const timeoutCallback = unthrottledTimeoutCallbacks.get(message.timerId);
|
|
@@ -1171,23 +1174,6 @@ const getUnthrottledTimerWorker = () => {
|
|
|
1171
1174
|
};
|
|
1172
1175
|
return unthrottledTimerWorker;
|
|
1173
1176
|
};
|
|
1174
|
-
const workerBlobUrls = new Map();
|
|
1175
|
-
export const createWorker = (name, workerMain) => {
|
|
1176
|
-
const workerUrl = globalThis[Symbol.for('mediabunny:workerUrl')];
|
|
1177
|
-
if (workerUrl !== undefined && typeof workerUrl !== 'string' && !(workerUrl instanceof URL)) {
|
|
1178
|
-
throw new TypeError('globalThis[Symbol.for(\'mediabunny:workerUrl\')], when provided, must be a string or URL.');
|
|
1179
|
-
}
|
|
1180
|
-
// For environments that can't run blob: workers. The standalone worker file runs the program matching the name.
|
|
1181
|
-
if (workerUrl !== undefined) {
|
|
1182
|
-
return new Worker(workerUrl, { name });
|
|
1183
|
-
}
|
|
1184
|
-
let blobUrl = workerBlobUrls.get(workerMain);
|
|
1185
|
-
if (!blobUrl) {
|
|
1186
|
-
blobUrl = URL.createObjectURL(new Blob([`(${workerMain.toString()})();`], { type: 'text/javascript' }));
|
|
1187
|
-
workerBlobUrls.set(workerMain, blobUrl);
|
|
1188
|
-
}
|
|
1189
|
-
return new Worker(blobUrl, { name });
|
|
1190
|
-
};
|
|
1191
1177
|
export const setTimeoutUnthrottled = (
|
|
1192
1178
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
1193
1179
|
callback, delay) => {
|
|
@@ -361,10 +361,6 @@ class Mp3AudioTrackBacking {
|
|
|
361
361
|
if (!rawSample) {
|
|
362
362
|
return null;
|
|
363
363
|
}
|
|
364
|
-
const fileSize = this.demuxer.reader.fileSize;
|
|
365
|
-
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
366
|
-
return null; // Data definitely doesn't fit
|
|
367
|
-
}
|
|
368
364
|
let data;
|
|
369
365
|
if (options.metadataOnly) {
|
|
370
366
|
data = PLACEHOLDER_DATA;
|
|
@@ -85,7 +85,6 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
85
85
|
// Some files contain these multiple times, but we only care about their first appearance
|
|
86
86
|
let hasProgramAssociationTable = false;
|
|
87
87
|
let hasProgramMap = false;
|
|
88
|
-
let initDemuxer = null;
|
|
89
88
|
while (true) {
|
|
90
89
|
const packetHeader = await this.readPacketHeader(currentPos);
|
|
91
90
|
if (!packetHeader) {
|
|
@@ -353,31 +352,23 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
353
352
|
}
|
|
354
353
|
elementaryStream.firstSection = section;
|
|
355
354
|
elementaryStream.canBeTrustedWithKeyPackets = section.randomAccessIndicator === 1;
|
|
355
|
+
if (this.input._initInput) {
|
|
356
|
+
const initDemuxer = (await this.input._initInput._getDemuxer());
|
|
357
|
+
if (initDemuxer.constructor !== MpegTsDemuxer) {
|
|
358
|
+
throw new Error('Init input must match the input\'s format.');
|
|
359
|
+
}
|
|
360
|
+
await initDemuxer.readMetadata();
|
|
361
|
+
const matchingStream = initDemuxer.elementaryStreams.find(x => (x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized));
|
|
362
|
+
if (matchingStream) {
|
|
363
|
+
elementaryStream.info = matchingStream.info;
|
|
364
|
+
elementaryStream.initialized = true;
|
|
365
|
+
break outer; // We have the stream info, we're done
|
|
366
|
+
}
|
|
367
|
+
}
|
|
356
368
|
const context = new PacketReadingContext(elementaryStream, section.startPos);
|
|
357
369
|
if (elementaryStream.info.type === 'video') {
|
|
358
|
-
let packetCount = 0;
|
|
359
370
|
// We loop because in some files, the video parameters are not in the first packet
|
|
360
371
|
while (true) {
|
|
361
|
-
if (packetCount === 1 && this.input._initInput) {
|
|
362
|
-
// The parameters aren't in the first packet, so instead of searching further (which
|
|
363
|
-
// may take long), get them from the init input
|
|
364
|
-
if (!initDemuxer) {
|
|
365
|
-
initDemuxer = (await this.input._initInput._getDemuxer());
|
|
366
|
-
if (initDemuxer.constructor !== MpegTsDemuxer) {
|
|
367
|
-
throw new Error('Init input must match the input\'s format.');
|
|
368
|
-
}
|
|
369
|
-
await initDemuxer.readMetadata();
|
|
370
|
-
}
|
|
371
|
-
const matchingStream = initDemuxer.elementaryStreams.find(x => (x.pid === section.pid
|
|
372
|
-
&& x.info.codec === elementaryStream.info.codec
|
|
373
|
-
&& x.initialized));
|
|
374
|
-
if (matchingStream) {
|
|
375
|
-
elementaryStream.info = matchingStream.info;
|
|
376
|
-
elementaryStream.initialized = true;
|
|
377
|
-
break outer; // We have the stream info, we're done
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
packetCount++;
|
|
381
372
|
const contextAlias = context; // TyyyyypeScript 😩
|
|
382
373
|
contextAlias.suppliedPacket = null;
|
|
383
374
|
await context.markNextPacket();
|
|
@@ -14,8 +14,8 @@ import { Muxer } from '../muxer.js';
|
|
|
14
14
|
import { buildMpegTsMimeType, MPEG_TS_TIMESCALE, secondsToMpegTsTimestamp, TS_PACKET_SIZE, } from './mpeg-ts-misc.js';
|
|
15
15
|
// Resources:
|
|
16
16
|
// ISO/IEC 13818-1
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const PAT_PID = 0x0000;
|
|
18
|
+
const PMT_PID = 0x1000;
|
|
19
19
|
const FIRST_TRACK_PID = 0x0100;
|
|
20
20
|
const VIDEO_STREAM_ID_BASE = 0xE0;
|
|
21
21
|
const AUDIO_STREAM_ID_BASE = 0xC0;
|