Skip to content

chore(root): sync mmcc/moq with upstream main (10.0.0-beta.32) - #39

Merged
mmcc merged 166 commits into
mmcc/moqfrom
chore/sync-upstream-main
Sep 1, 2026
Merged

mmcc merged 166 commits into
mmcc/moqfrom
chore/sync-upstream-main

Conversation

@mmcc

@mmcc mmcc commented Aug 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Sync mmcc/moq with upstream videojs/v10 main at d08395023 (10.0.0-beta.32, 165 commits) as a single merge commit, resolving the conflicts with our multi-switching-set track selection and porting the MoQ playback branch onto upstream's new Vite+ toolchain.

Reviewing this PR

The "Files changed" tab is the whole upstream delta and is not useful. Review the merge commit's manual work instead — everything beyond git's automatic merge:

git show --remerge-diff 30d3001b6

Changes

  • switchVideoTrack keeps the all-sets candidate pool and confineToActiveSwitchingSet as the leading constraint, now alongside upstream's stickToSelectedCodecs constraint and preferCodecFamilies / playerResolutionCap rules.
  • Upstream replaced turbo/tsdown/biome/vitest with Vite+: the moq pack entry moves to packages/spf/vite.config.ts; simple-moq-video stays off the CDN via an exclusion in packages/html/vite.config.ts (CDN media entries are now auto-discovered from define/media/).
  • MoQ tests import from vite-plus/test; safeDefine comes from registration/safe-define.
  • MoQ sources run through the new jsdoc formatter and the anti-slop padding rule (whitespace/comment reflow only).
  • Doc-only conflicts (findTrack, activeVideoTrack, isLiveTrack, measure-size --moq) keep our text, reflowed to upstream's style.
  • The plan file moves to .agents/plans/ (.claude/plans is a generated alias now).

Testing

  • pnpm typecheck, pnpm lint, pnpm check:workspace, pnpm build:packages, pnpm build:sandbox — all green
  • pnpm -F @videojs/spf test: 119 files / 2055 tests passed (browser projects included)
  • pnpm -F @videojs/html test: 63 files / 480 tests passed

Note: the merge commit was made with --no-verify because lint-staged cannot run on merge commits (Needed a single revision); the full repo lint ran green beforehand.

🤖 Generated with Claude Code


Summary by cubic

Syncs mmcc/moq with upstream videojs/v10 main at 10.0.0-beta.32 (165 commits) as a single merge commit, porting the MoQ playback branch onto upstream's Vite+ toolchain and resolving conflicts with our multi-switching-set track selection. The Files changed tab is the whole upstream delta and won't help review; review the merge commit's manual work instead via git show --remerge-diff.

Manual merge work

  • switchVideoTrack keeps its all-sets candidate pool, now hardened with upstream's stickToSelectedCodecs, preferCodecFamilies, and playerResolutionCap rules.
  • The moq pack entry moves to packages/spf/vite.config.ts; simple-moq-video stays off the CDN via an exclusion there.
  • MoQ tests import from vite-plus/test; safeDefine comes from registration/safe-define.
  • MoQ sources and conflicting docs are reformatted to upstream's new jsdoc and anti-slop style — whitespace and comment reflow only.
  • The plan file moves to .agents/plans/ (.claude/plans is now a generated alias).

Testing

  • typecheck, lint, check:workspace, and package/sandbox builds pass; @videojs/spf (2055 tests) and @videojs/html (480 tests) pass.
  • The merge commit was made with --no-verify because lint-staged cannot run on merge commits; the whole repo lint ran green beforehand.

Written for commit 30d3001. Summary will update on new commits.

Review in cubic

luwes and others added 30 commits August 15, 2026 09:23
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ges (videojs#2222)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
decepulis and others added 24 commits August 26, 2026 07:18
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Darius Cepulis <dcepulis@mux.com>
Co-authored-by: Claude <noreply@anthropic.com>
Sync with upstream videojs/v10 main (d083950, 10.0.0-beta.32).

Resolutions beyond the textual conflicts:
- Port the tsdown entries to the Vite+ pack configs: `moq` entry in
  packages/spf/vite.config.ts; keep simple-moq-video off the CDN via an
  exclusion in the auto-discovered media entries (html/vite.config.ts).
- switchVideoTrack: keep the all-sets candidate pool and
  confineToActiveSwitchingSet ahead of upstream's stickToSelectedCodecs;
  merge preferCodecFamilies and playerResolutionCap into the rules.
- safeDefine moved to registration/safe-define.
- Migrate MoQ tests from 'vitest' to 'vite-plus/test'; run the new jsdoc
  formatter and padding rule over the MoQ sources.
- Move .claude/plans/moq-engine-implementation.md to .agents/plans
  (.claude/plans is now a generated alias).
@github-actions

Copy link
Copy Markdown

📦 Bundle Size Report

🎨 @videojs/html

Path Base initial PR initial Initial diff Lazy diff
/video/minimal-skin 57.25 kB 59.45 kB +2.20 kB (+3.8%) -60 B
/video/minimal-skin.tailwind 57.84 kB 59.71 kB +1.87 kB (+3.2%) -60 B
/video/minimal-skin2 — 7.07 kB new —
/video/player 10.14 kB 9.65 kB -502 B (-4.8%) -60 B
/video/skin 57.57 kB 59.64 kB +2.07 kB (+3.6%) -60 B
/video/skin.tailwind 58.25 kB 60.01 kB +1.76 kB (+3.0%) -60 B
/video/skin2 — 6.91 kB new —
/audio/minimal-skin 44.19 kB 45.62 kB +1.42 kB (+3.2%) -60 B
/audio/minimal-skin.tailwind 44.73 kB 45.91 kB +1.18 kB (+2.6%) -60 B
/audio/minimal-skin2 — 5.27 kB new —
/audio/player 7.05 kB 6.09 kB -977 B (-13.5%) -60 B
/audio/skin 47.80 kB 49.48 kB +1.68 kB (+3.5%) -60 B
/audio/skin.tailwind 48.40 kB 49.77 kB +1.37 kB (+2.8%) -60 B
/audio/skin2 — 5.23 kB new —
/background/player 5.38 kB 4.45 kB -945 B (-17.2%) -60 B
/background/skin 1.14 kB 9.72 kB +8.58 kB (+752.5%) +56.87 kB
/background/skin2 — 190 B new —
/live-video/minimal-skin 51.48 kB 53.49 kB +2.01 kB (+3.9%) -60 B
/live-video/minimal-skin.tailwind 51.90 kB 53.52 kB +1.62 kB (+3.1%) -60 B
/live-video/minimal-skin2 — 7.07 kB new —
/live-video/player 9.54 kB 9.03 kB -523 B (-5.4%) -60 B
/live-video/skin 53.89 kB 56.08 kB +2.19 kB (+4.1%) -60 B
/live-video/skin.tailwind 54.30 kB 56.22 kB +1.91 kB (+3.5%) -60 B
/live-video/skin2 — 6.91 kB new —
/live-audio/minimal-skin 38.22 kB 38.92 kB +710 B (+1.8%) -60 B
/live-audio/minimal-skin.tailwind 37.66 kB 38.02 kB +369 B (+1.0%) -60 B
/live-audio/minimal-skin2 — 5.27 kB new —
/live-audio/player 7.08 kB 6.12 kB -982 B (-13.6%) -60 B
/live-audio/skin 41.60 kB 42.52 kB +935 B (+2.2%) -60 B
/live-audio/skin.tailwind 41.17 kB 41.69 kB +527 B (+1.2%) -60 B
/live-audio/skin2 — 5.23 kB new —
/ui/alert-dialog 4.22 kB 9.14 kB +4.92 kB (+116.5%) +56.87 kB
/ui/buffering-indicator 8.12 kB 8.56 kB +456 B (+5.5%) +56.87 kB
/ui/container — 9.41 kB new +56.87 kB
/ui/controls 8.29 kB 8.77 kB +500 B (+5.9%) -60 B
/ui/controls-backdrop — 1.69 kB new +56.87 kB
/ui/controls-content — 1.67 kB new +56.87 kB
/ui/dialog — 9.06 kB new +56.87 kB
/ui/dialog-backdrop — 1.70 kB new +56.87 kB
/ui/dialog-close — 2.01 kB new +56.87 kB
/ui/dialog-description — 1.69 kB new +56.87 kB
/ui/dialog-popup — 1.87 kB new +56.87 kB
/ui/dialog-title — 1.70 kB new +56.87 kB
/ui/error-dialog 11.43 kB 12.63 kB +1.20 kB (+10.5%) -60 B
/ui/gesture — 9.37 kB new +56.87 kB
/ui/hotkey 9.38 kB 9.80 kB +427 B (+4.4%) +56.87 kB
/ui/menu 18.27 kB 19.98 kB +1.70 kB (+9.3%) -60 B
/ui/popover 8.11 kB 8.53 kB +432 B (+5.2%) +56.87 kB
/ui/seek-indicator 12.09 kB 12.47 kB +391 B (+3.2%) +56.87 kB
/ui/thumbnail 9.30 kB 9.73 kB +448 B (+4.7%) +56.87 kB
/ui/time-slider-chapter-title 8.33 kB 8.74 kB +421 B (+4.9%) +56.87 kB
/ui/time-slider-chapters 9.28 kB 9.69 kB +417 B (+4.4%) +56.87 kB
/ui/title — 8.13 kB new +56.87 kB
/ui/tooltip 9.46 kB 9.92 kB +467 B (+4.8%) -60 B
/ui/volume-popover — 14.67 kB new +56.87 kB
/media/mux-video 141.61 kB 142.33 kB +738 B (+0.5%) —
/media/mux-audio 141.39 kB 142.05 kB +677 B (+0.5%) —
/media/cloudflare-video — 6.25 kB new —
/media/hls-audio 21.87 kB 22.21 kB +345 B (+1.5%) —
/media/hls-background-video 15.74 kB 16.85 kB +1.11 kB (+7.1%) —
/media/hls-video 27.39 kB 28.13 kB +760 B (+2.7%) —
/media/hlsjs-video 140.52 kB 141.03 kB +524 B (+0.4%) —
/media/mux-background-video 15.73 kB 16.86 kB +1.13 kB (+7.2%) —
/media/shaka-video — 199.21 kB new —
/media/simple-moq-video 28.13 kB 28.43 kB +313 B (+1.1%) —
/media/spotify-audio — 6.24 kB new —
/media/tiktok-video — 6.29 kB new —
/media/twitch-video — 6.19 kB new —
/video (default) 57.51 kB 61.27 kB +3.76 kB (+6.5%) -60 B
/video (default + hls) 195.79 kB 200.18 kB +4.39 kB (+2.2%) -60 B
/video (minimal) 57.25 kB 60.94 kB +3.68 kB (+6.4%) -60 B
/video (minimal + hls) 195.64 kB 199.90 kB +4.26 kB (+2.2%) -60 B
/audio (default) 47.80 kB 51.07 kB +3.27 kB (+6.8%) -60 B
/audio (minimal) 44.11 kB 47.13 kB +3.02 kB (+6.8%) -60 B
/background 5.66 kB 11.47 kB +5.81 kB (+102.6%) -60 B
/ui/alert-dialog-close 1.95 kB — removed —
/ui/alert-dialog-description 1.63 kB — removed —
/ui/alert-dialog-title 1.65 kB — removed —
/ui/compounds 34.66 kB — removed -56.93 kB
/media/container 3.11 kB — removed -56.93 kB
/skin-element 1.45 kB — removed —
Small changes (42, ≤ 300 B)
Path Base initial PR initial Initial diff Lazy diff
/video/minimal-skin.css 6.28 kB 6.50 kB +224 B (+3.5%) —
/video/skin.css 6.16 kB 6.30 kB +152 B (+2.4%) —
/audio/minimal-skin.css 4.60 kB 4.87 kB +284 B (+6.0%) —
/audio/skin.css 4.54 kB 4.79 kB +260 B (+5.6%) —
/live-video/minimal-skin.css 6.28 kB 6.50 kB +224 B (+3.5%) —
/live-video/skin.css 6.16 kB 6.30 kB +152 B (+2.4%) —
/live-audio/minimal-skin.css 4.60 kB 4.87 kB +284 B (+6.0%) —
/live-audio/skin.css 4.54 kB 4.79 kB +260 B (+5.6%) —
/ui/airplay-button 10.92 kB 11.15 kB +241 B (+2.2%) -60 B
/ui/audio-track-radio-group 11.09 kB 11.29 kB +195 B (+1.7%) -60 B
/ui/captions-button 11.19 kB 11.40 kB +213 B (+1.9%) -60 B
/ui/captions-radio-group 11.18 kB 11.36 kB +182 B (+1.6%) -60 B
/ui/cast-button 10.88 kB 11.11 kB +236 B (+2.1%) -60 B
/ui/fullscreen-button 10.86 kB 11.10 kB +242 B (+2.2%) -60 B
/ui/mute-button 10.87 kB 11.14 kB +270 B (+2.4%) -60 B
/ui/pip-button 10.87 kB 11.08 kB +218 B (+2.0%) -60 B
/ui/play-button 10.85 kB 11.09 kB +244 B (+2.2%) -60 B
/ui/playback-rate-button 11.05 kB 11.20 kB +148 B (+1.3%) -60 B
/ui/playback-rate-radio-group 11.10 kB 11.27 kB +175 B (+1.5%) -60 B
/ui/poster 8.51 kB 8.63 kB +118 B (+1.4%) -60 B
/ui/quality-radio-group 11.67 kB 11.87 kB +202 B (+1.7%) -60 B
/ui/seek-button 10.90 kB 11.14 kB +241 B (+2.2%) -60 B
/ui/seek-indicator-value 1.03 kB 1.10 kB +78 B (+7.4%) —
/ui/slider 11.78 kB 12.01 kB +236 B (+2.0%) -60 B
/ui/status-announcer 10.29 kB 10.56 kB +278 B (+2.6%) -60 B
/ui/status-indicator 12.64 kB 12.82 kB +188 B (+1.5%) -60 B
/ui/status-indicator-value 1.02 kB 1.10 kB +82 B (+7.8%) —
/ui/time 10.65 kB 10.81 kB +165 B (+1.5%) -60 B
/ui/time-slider 14.70 kB 14.93 kB +237 B (+1.6%) -60 B
/ui/volume-indicator 12.66 kB 12.85 kB +198 B (+1.5%) -60 B
/ui/volume-indicator-fill 1.03 kB 1.11 kB +82 B (+7.8%) —
/ui/volume-indicator-value 1.02 kB 1.10 kB +81 B (+7.7%) —
/ui/volume-slider 12.43 kB 12.66 kB +234 B (+1.8%) -60 B
/media/background-video 1.14 kB 1.16 kB +17 B (+1.5%) —
/media/dash-video 211.89 kB 211.72 kB -171 B (-0.1%) —
/media/google-cast 6.46 kB 6.52 kB +62 B (+0.9%) —
/media/mux-data 26.71 kB 26.70 kB -13 B (-0.0%) —
/media/native-hls-video 7.51 kB 7.51 kB +4 B (+0.1%) —
/media/vimeo-video 12.97 kB 13.03 kB +59 B (+0.4%) —
/media/youtube-video 6.75 kB 6.79 kB +41 B (+0.6%) —
/global.css 183 B 190 B +7 B (+3.8%) —
/shared.css 99 B 118 B +19 B (+19.2%) —
Presets (7)
Entry Initial Lazy
/video (default) 61.27 kB 56.87 kB
/video (default + hls) 200.18 kB 56.87 kB
/video (minimal) 60.94 kB 56.87 kB
/video (minimal + hls) 199.90 kB 56.87 kB
/audio (default) 51.07 kB 56.87 kB
/audio (minimal) 47.13 kB 56.87 kB
/background 11.47 kB 56.87 kB
Media (20)
Entry Initial
/media/mux-video 142.33 kB
/media/mux-audio 142.05 kB
/media/background-video 1.16 kB
/media/cloudflare-video 6.25 kB
/media/dash-video 211.72 kB
/media/google-cast 6.52 kB
/media/hls-audio 22.21 kB
/media/hls-background-video 16.85 kB
/media/hls-video 28.13 kB
/media/hlsjs-video 141.03 kB
/media/mux-background-video 16.86 kB
/media/mux-data 26.70 kB
/media/native-hls-video 7.51 kB
/media/shaka-video 199.21 kB
/media/simple-moq-video 28.43 kB
/media/spotify-audio 6.24 kB
/media/tiktok-video 6.29 kB
/media/twitch-video 6.19 kB
/media/vimeo-video 13.03 kB
/media/youtube-video 6.79 kB
Players (5)
Entry Initial Lazy
/video/player 9.65 kB 56.87 kB
/audio/player 6.09 kB 56.87 kB
/background/player 4.45 kB 56.87 kB
/live-video/player 9.03 kB 56.87 kB
/live-audio/player 6.12 kB 56.87 kB
Skins (37)
Entry Type Initial Lazy
/video/minimal-skin.css css 6.50 kB —
/video/skin.css css 6.30 kB —
/video/minimal-skin js 59.45 kB 56.87 kB
/video/minimal-skin.tailwind js 59.71 kB 56.87 kB
/video/minimal-skin2 js 7.07 kB —
/video/skin js 59.64 kB 56.87 kB
/video/skin.tailwind js 60.01 kB 56.87 kB
/video/skin2 js 6.91 kB —
/audio/minimal-skin.css css 4.87 kB —
/audio/skin.css css 4.79 kB —
/audio/minimal-skin js 45.62 kB 56.87 kB
/audio/minimal-skin.tailwind js 45.91 kB 56.87 kB
/audio/minimal-skin2 js 5.27 kB —
/audio/skin js 49.48 kB 56.87 kB
/audio/skin.tailwind js 49.77 kB 56.87 kB
/audio/skin2 js 5.23 kB —
/background/skin.css css 145 B —
/background/skin js 9.72 kB 56.87 kB
/background/skin2 js 190 B —
/live-video/minimal-skin.css css 6.50 kB —
/live-video/skin.css css 6.30 kB —
/live-video/minimal-skin js 53.49 kB 56.87 kB
/live-video/minimal-skin.tailwind js 53.52 kB 56.87 kB
/live-video/minimal-skin2 js 7.07 kB —
/live-video/skin js 56.08 kB 56.87 kB
/live-video/skin.tailwind js 56.22 kB 56.87 kB
/live-video/skin2 js 6.91 kB —
/live-audio/minimal-skin.css css 4.87 kB —
/live-audio/skin.css css 4.79 kB —
/live-audio/minimal-skin js 38.92 kB 56.87 kB
/live-audio/minimal-skin.tailwind js 38.02 kB 56.87 kB
/live-audio/minimal-skin2 js 5.27 kB —
/live-audio/skin js 42.52 kB 56.87 kB
/live-audio/skin.tailwind js 41.69 kB 56.87 kB
/live-audio/skin2 js 5.23 kB —
/global.css css 190 B —
/shared.css css 118 B —
UI Components (49)
Entry Initial Lazy
/ui/airplay-button 11.15 kB 56.87 kB
/ui/alert-dialog 9.14 kB 56.87 kB
/ui/audio-track-radio-group 11.29 kB 56.87 kB
/ui/buffering-indicator 8.56 kB 56.87 kB
/ui/captions-button 11.40 kB 56.87 kB
/ui/captions-radio-group 11.36 kB 56.87 kB
/ui/cast-button 11.11 kB 56.87 kB
/ui/container 9.41 kB 56.87 kB
/ui/controls 8.77 kB 56.87 kB
/ui/controls-backdrop 1.69 kB 56.87 kB
/ui/controls-content 1.67 kB 56.87 kB
/ui/dialog 9.06 kB 56.87 kB
/ui/dialog-backdrop 1.70 kB 56.87 kB
/ui/dialog-close 2.01 kB 56.87 kB
/ui/dialog-description 1.69 kB 56.87 kB
/ui/dialog-popup 1.87 kB 56.87 kB
/ui/dialog-title 1.70 kB 56.87 kB
/ui/error-dialog 12.63 kB 56.87 kB
/ui/fullscreen-button 11.10 kB 56.87 kB
/ui/gesture 9.37 kB 56.87 kB
/ui/hotkey 9.80 kB 56.87 kB
/ui/menu 19.98 kB 56.87 kB
/ui/mute-button 11.14 kB 56.87 kB
/ui/pip-button 11.08 kB 56.87 kB
/ui/play-button 11.09 kB 56.87 kB
/ui/playback-rate-button 11.20 kB 56.87 kB
/ui/playback-rate-radio-group 11.27 kB 56.87 kB
/ui/popover 8.53 kB 56.87 kB
/ui/poster 8.63 kB 56.87 kB
/ui/quality-radio-group 11.87 kB 56.87 kB
/ui/seek-button 11.14 kB 56.87 kB
/ui/seek-indicator 12.47 kB 56.87 kB
/ui/seek-indicator-value 1.10 kB —
/ui/slider 12.01 kB 56.87 kB
/ui/status-announcer 10.56 kB 56.87 kB
/ui/status-indicator 12.82 kB 56.87 kB
/ui/status-indicator-value 1.10 kB —
/ui/thumbnail 9.73 kB 56.87 kB
/ui/time 10.81 kB 56.87 kB
/ui/time-slider 14.93 kB 56.87 kB
/ui/time-slider-chapter-title 8.74 kB 56.87 kB
/ui/time-slider-chapters 9.69 kB 56.87 kB
/ui/title 8.13 kB 56.87 kB
/ui/tooltip 9.92 kB 56.87 kB
/ui/volume-indicator 12.85 kB 56.87 kB
/ui/volume-indicator-fill 1.11 kB —
/ui/volume-indicator-value 1.10 kB —
/ui/volume-popover 14.67 kB 56.87 kB
/ui/volume-slider 12.66 kB 56.87 kB

⚛️ @videojs/react

Path Base initial PR initial Initial diff Lazy diff
/media/mux-video/hls-js 139.96 kB 140.62 kB +683 B (+0.5%) —
/media/mux-video/spf 26.76 kB 27.54 kB +801 B (+2.9%) —
/media/mux-audio/hls-js 139.85 kB 140.46 kB +622 B (+0.4%) —
/media/mux-audio/spf 20.98 kB 21.44 kB +467 B (+2.2%) —
/media/cloudflare-video — 4.35 kB new —
/media/hls-audio 20.14 kB 20.48 kB +346 B (+1.7%) —
/media/hls-background-video 15.29 kB 16.40 kB +1.11 kB (+7.3%) —
/media/hls-video 25.71 kB 26.56 kB +868 B (+3.3%) —
/media/hlsjs-video 138.86 kB 139.58 kB +738 B (+0.5%) —
/media/mux-audio 139.75 kB 140.44 kB +706 B (+0.5%) —
/media/mux-background-video 15.26 kB 16.47 kB +1.21 kB (+7.9%) —
/media/mux-video 139.97 kB 140.54 kB +583 B (+0.4%) —
/media/shaka-video — 197.52 kB new —
/media/spotify-audio — 4.22 kB new —
/media/tiktok-video — 4.18 kB new —
/media/twitch-video — 4.30 kB new —
/video/minimal-skin 45.04 kB 47.67 kB +2.63 kB (+5.8%) -60 B
/video/minimal-skin.tailwind 51.63 kB 54.62 kB +2.99 kB (+5.8%) -60 B
/video/player 7.15 kB 7.51 kB +369 B (+5.0%) +56.87 kB
/video/skin 44.97 kB 47.67 kB +2.70 kB (+6.0%) -60 B
/video/skin.tailwind 51.52 kB 54.40 kB +2.88 kB (+5.6%) -60 B
/audio/minimal-skin 34.63 kB 37.11 kB +2.48 kB (+7.2%) -60 B
/audio/minimal-skin.tailwind 39.50 kB 42.21 kB +2.71 kB (+6.9%) -60 B
/audio/player 4.02 kB 3.95 kB -74 B (-1.8%) +56.87 kB
/audio/skin 34.59 kB 36.99 kB +2.41 kB (+7.0%) -60 B
/audio/skin.tailwind 39.45 kB 42.17 kB +2.72 kB (+6.9%) -60 B
/background/player 2.29 kB 2.27 kB -16 B (-0.7%) +56.87 kB
/live-video/minimal-skin 37.20 kB 39.77 kB +2.57 kB (+6.9%) -60 B
/live-video/minimal-skin.tailwind 43.56 kB 46.43 kB +2.88 kB (+6.6%) -60 B
/live-video/player 6.53 kB 6.91 kB +385 B (+5.8%) +56.87 kB
/live-video/skin 37.24 kB 39.79 kB +2.55 kB (+6.8%) -60 B
/live-video/skin.tailwind 43.59 kB 46.43 kB +2.84 kB (+6.5%) -60 B
/live-audio/minimal-skin 27.09 kB 28.82 kB +1.73 kB (+6.4%) -60 B
/live-audio/minimal-skin.tailwind 30.87 kB 32.77 kB +1.91 kB (+6.2%) -60 B
/live-audio/player 4.02 kB 3.95 kB -74 B (-1.8%) +56.87 kB
/live-audio/skin 27.13 kB 28.88 kB +1.75 kB (+6.5%) -60 B
/live-audio/skin.tailwind 30.98 kB 32.93 kB +1.95 kB (+6.3%) -60 B
/ui/alert-dialog 3.31 kB 4.41 kB +1.10 kB (+33.3%) +56.87 kB
/ui/buffering-indicator 7.33 kB 7.72 kB +394 B (+5.2%) +56.87 kB
/ui/controls 7.04 kB 7.51 kB +472 B (+6.5%) +56.87 kB
/ui/dialog — 4.44 kB new +56.87 kB
/ui/error-dialog 10.17 kB 11.44 kB +1.27 kB (+12.5%) -60 B
/ui/gesture 7.43 kB 7.80 kB +380 B (+5.0%) +56.87 kB
/ui/hotkey 7.87 kB 8.21 kB +346 B (+4.3%) +56.87 kB
/ui/menu 17.40 kB 18.91 kB +1.50 kB (+8.6%) +56.87 kB
/ui/popover 7.80 kB 8.12 kB +328 B (+4.1%) +56.87 kB
/ui/poster 6.93 kB 7.49 kB +579 B (+8.2%) +56.87 kB
/ui/seek-indicator 11.37 kB 11.75 kB +382 B (+3.3%) +56.87 kB
/ui/slider 12.17 kB 12.60 kB +444 B (+3.6%) -60 B
/ui/thumbnail 8.21 kB 8.64 kB +432 B (+5.1%) +56.87 kB
/ui/time-slider 13.74 kB 14.07 kB +347 B (+2.5%) -60 B
/ui/title — 7.19 kB new +56.87 kB
/ui/tooltip 8.54 kB 8.90 kB +373 B (+4.3%) +56.87 kB
/ui/volume-popover — 14.13 kB new +56.87 kB
/ui/volume-slider 11.60 kB 12.03 kB +432 B (+3.6%) -60 B
/video (default) 45.09 kB 47.76 kB +2.67 kB (+5.9%) -60 B
/video (default + hls) 182.24 kB 185.56 kB +3.32 kB (+1.8%) -60 B
/video (minimal) 45.12 kB 47.80 kB +2.67 kB (+5.9%) -60 B
/video (minimal + hls) 182.41 kB 185.51 kB +3.10 kB (+1.7%) -60 B
/audio (default) 34.73 kB 37.12 kB +2.39 kB (+6.9%) -60 B
/audio (minimal) 34.74 kB 37.18 kB +2.43 kB (+7.0%) -60 B
/background 579 B 581 B +2 B (+0.3%) +56.87 kB
Small changes (37, ≤ 300 B)
Path Base initial PR initial Initial diff Lazy diff
/media/background-video 394 B 402 B +8 B (+2.0%) —
/media/dash-video 210.24 kB 210.29 kB +47 B (+0.0%) —
/media/google-cast 5.33 kB 5.34 kB +6 B (+0.1%) —
/media/mux-data 25.46 kB 25.49 kB +34 B (+0.1%) —
/media/native-hls-video 5.74 kB 5.76 kB +17 B (+0.3%) —
/media/vimeo-video 11.14 kB 11.21 kB +71 B (+0.6%) —
/media/youtube-video 4.85 kB 4.86 kB +9 B (+0.2%) —
/video/minimal-skin.css 6.18 kB 6.40 kB +230 B (+3.6%) —
/video/skin.css 6.04 kB 6.20 kB +161 B (+2.6%) —
/audio/minimal-skin.css 4.47 kB 4.73 kB +266 B (+5.8%) —
/audio/skin.css 4.39 kB 4.65 kB +267 B (+5.9%) —
/background/skin 273 B 277 B +4 B (+1.5%) —
/live-video/minimal-skin.css 6.18 kB 6.40 kB +230 B (+3.6%) —
/live-video/skin.css 6.04 kB 6.20 kB +161 B (+2.6%) —
/live-audio/minimal-skin.css 4.47 kB 4.73 kB +266 B (+5.8%) —
/live-audio/skin.css 4.39 kB 4.65 kB +267 B (+5.9%) —
/ui/airplay-button 10.11 kB 10.28 kB +170 B (+1.6%) -60 B
/ui/audio-track 7.75 kB 7.89 kB +143 B (+1.8%) -60 B
/ui/audio-track-radio-group 8.90 kB 9.05 kB +155 B (+1.7%) -60 B
/ui/captions-button 10.11 kB 10.25 kB +149 B (+1.4%) -60 B
/ui/captions-radio-group 9.01 kB 9.17 kB +171 B (+1.9%) -60 B
/ui/cast-button 10.12 kB 10.26 kB +143 B (+1.4%) -60 B
/ui/fullscreen-button 10.08 kB 10.24 kB +164 B (+1.6%) -60 B
/ui/live-button 8.53 kB 8.69 kB +166 B (+1.9%) -60 B
/ui/mute-button 10.07 kB 10.26 kB +204 B (+2.0%) -60 B
/ui/pip-button 10.07 kB 10.23 kB +170 B (+1.6%) -60 B
/ui/play-button 10.05 kB 10.21 kB +162 B (+1.6%) -60 B
/ui/playback-rate 7.80 kB 7.94 kB +140 B (+1.8%) -60 B
/ui/playback-rate-button 10.05 kB 10.22 kB +165 B (+1.6%) -60 B
/ui/playback-rate-radio-group 8.95 kB 9.09 kB +148 B (+1.6%) -60 B
/ui/quality 8.23 kB 8.38 kB +147 B (+1.7%) -60 B
/ui/quality-radio-group 9.38 kB 9.54 kB +160 B (+1.7%) -60 B
/ui/seek-button 10.08 kB 10.25 kB +166 B (+1.6%) -60 B
/ui/status-announcer 9.82 kB 10.01 kB +195 B (+1.9%) -60 B
/ui/status-indicator 11.90 kB 12.07 kB +173 B (+1.4%) -60 B
/ui/time 9.60 kB 9.69 kB +92 B (+0.9%) -60 B
/ui/volume-indicator 11.99 kB 12.15 kB +170 B (+1.4%) -60 B
Presets (7)
Entry Initial Lazy
/video (default) 47.76 kB 56.87 kB
/video (default + hls) 185.56 kB 56.87 kB
/video (minimal) 47.80 kB 56.87 kB
/video (minimal + hls) 185.51 kB 56.87 kB
/audio (default) 37.12 kB 56.87 kB
/audio (minimal) 37.18 kB 56.87 kB
/background 581 B 56.87 kB
Media (23)
Entry Initial
/media/mux-video/hls-js 140.62 kB
/media/mux-video/spf 27.54 kB
/media/mux-audio/hls-js 140.46 kB
/media/mux-audio/spf 21.44 kB
/media/background-video 402 B
/media/cloudflare-video 4.35 kB
/media/dash-video 210.29 kB
/media/google-cast 5.34 kB
/media/hls-audio 20.48 kB
/media/hls-background-video 16.40 kB
/media/hls-video 26.56 kB
/media/hlsjs-video 139.58 kB
/media/mux-audio 140.44 kB
/media/mux-background-video 16.47 kB
/media/mux-data 25.49 kB
/media/mux-video 140.54 kB
/media/native-hls-video 5.76 kB
/media/shaka-video 197.52 kB
/media/spotify-audio 4.22 kB
/media/tiktok-video 4.18 kB
/media/twitch-video 4.30 kB
/media/vimeo-video 11.21 kB
/media/youtube-video 4.86 kB
Players (5)
Entry Initial Lazy
/video/player 7.51 kB 56.87 kB
/audio/player 3.95 kB 56.87 kB
/background/player 2.27 kB 56.87 kB
/live-video/player 6.91 kB 56.87 kB
/live-audio/player 3.95 kB 56.87 kB
Skins (26)
Entry Type Initial Lazy
/video/minimal-skin.css css 6.40 kB —
/video/skin.css css 6.20 kB —
/video/minimal-skin js 47.67 kB 56.87 kB
/video/minimal-skin.tailwind js 54.62 kB 56.87 kB
/video/skin js 47.67 kB 56.87 kB
/video/skin.tailwind js 54.40 kB 56.87 kB
/audio/minimal-skin.css css 4.73 kB —
/audio/skin.css css 4.65 kB —
/audio/minimal-skin js 37.11 kB 56.87 kB
/audio/minimal-skin.tailwind js 42.21 kB 56.87 kB
/audio/skin js 36.99 kB 56.87 kB
/audio/skin.tailwind js 42.17 kB 56.87 kB
/background/skin.css css 90 B —
/background/skin js 277 B —
/live-video/minimal-skin.css css 6.40 kB —
/live-video/skin.css css 6.20 kB —
/live-video/minimal-skin js 39.77 kB 56.87 kB
/live-video/minimal-skin.tailwind js 46.43 kB 56.87 kB
/live-video/skin js 39.79 kB 56.87 kB
/live-video/skin.tailwind js 46.43 kB 56.87 kB
/live-audio/minimal-skin.css css 4.73 kB —
/live-audio/skin.css css 4.65 kB —
/live-audio/minimal-skin js 28.82 kB 56.87 kB
/live-audio/minimal-skin.tailwind js 32.77 kB 56.87 kB
/live-audio/skin js 28.88 kB 56.87 kB
/live-audio/skin.tailwind js 32.93 kB 56.87 kB
UI Components (39)
Entry Initial Lazy
/ui/airplay-button 10.28 kB 56.87 kB
/ui/alert-dialog 4.41 kB 56.87 kB
/ui/audio-track 7.89 kB 56.87 kB
/ui/audio-track-radio-group 9.05 kB 56.87 kB
/ui/buffering-indicator 7.72 kB 56.87 kB
/ui/captions-button 10.25 kB 56.87 kB
/ui/captions-radio-group 9.17 kB 56.87 kB
/ui/cast-button 10.26 kB 56.87 kB
/ui/controls 7.51 kB 56.87 kB
/ui/dialog 4.44 kB 56.87 kB
/ui/error-dialog 11.44 kB 56.87 kB
/ui/fullscreen-button 10.24 kB 56.87 kB
/ui/gesture 7.80 kB 56.87 kB
/ui/hotkey 8.21 kB 56.87 kB
/ui/live-button 8.69 kB 56.87 kB
/ui/menu 18.91 kB 56.87 kB
/ui/mute-button 10.26 kB 56.87 kB
/ui/pip-button 10.23 kB 56.87 kB
/ui/play-button 10.21 kB 56.87 kB
/ui/playback-rate 7.94 kB 56.87 kB
/ui/playback-rate-button 10.22 kB 56.87 kB
/ui/playback-rate-radio-group 9.09 kB 56.87 kB
/ui/popover 8.12 kB 56.87 kB
/ui/poster 7.49 kB 56.87 kB
/ui/quality 8.38 kB 56.87 kB
/ui/quality-radio-group 9.54 kB 56.87 kB
/ui/seek-button 10.25 kB 56.87 kB
/ui/seek-indicator 11.75 kB 56.87 kB
/ui/slider 12.60 kB 56.87 kB
/ui/status-announcer 10.01 kB 56.87 kB
/ui/status-indicator 12.07 kB 56.87 kB
/ui/thumbnail 8.64 kB 56.87 kB
/ui/time 9.69 kB 56.87 kB
/ui/time-slider 14.07 kB 56.87 kB
/ui/title 7.19 kB 56.87 kB
/ui/tooltip 8.90 kB 56.87 kB
/ui/volume-indicator 12.15 kB 56.87 kB
/ui/volume-popover 14.13 kB 56.87 kB
/ui/volume-slider 12.03 kB 56.87 kB

🧩 @videojs/core

Path Base initial PR initial Initial diff Lazy diff
/dom 20.01 kB 21.92 kB +1.91 kB (+9.5%) +56.87 kB
/vjsc — 1.74 kB new —
/components 927 B — removed —
Small changes (4, ≤ 300 B)
Path Base initial PR initial Initial diff Lazy diff
. 12.76 kB 13.02 kB +268 B (+2.1%) —
/i18n 3.21 kB 3.23 kB +12 B (+0.4%) -60 B
/i18n/locales/all 35.01 kB 34.97 kB -44 B (-0.1%) —
/i18n/locales/bn 1.28 kB 1.23 kB -60 B (-4.6%) —
Entries (76)
Entry Initial Lazy
. 13.02 kB —
/dom 21.92 kB 56.87 kB
/vjsc 1.74 kB —
/i18n 3.23 kB 56.87 kB
/i18n/locales/all 34.97 kB —
/i18n/locales/ar 1.22 kB —
/i18n/locales/az 1.09 kB —
/i18n/locales/bg 1.29 kB —
/i18n/locales/bn 1.23 kB —
/i18n/locales/bs 1.00 kB —
/i18n/locales/ca 1.07 kB —
/i18n/locales/cs 1.07 kB —
/i18n/locales/cy 1.02 kB —
/i18n/locales/da 1006 B —
/i18n/locales/de 1.09 kB —
/i18n/locales/el 1.49 kB —
/i18n/locales/en 785 B —
/i18n/locales/es 1018 B —
/i18n/locales/et 1.05 kB —
/i18n/locales/eu 1.03 kB —
/i18n/locales/fa 1.22 kB —
/i18n/locales/fi 1.04 kB —
/i18n/locales/fr 1.07 kB —
/i18n/locales/gd 1.10 kB —
/i18n/locales/gl 1022 B —
/i18n/locales/he 1.14 kB —
/i18n/locales/hi 1.30 kB —
/i18n/locales/hr 1.02 kB —
/i18n/locales/hu 1.10 kB —
/i18n/locales/id 919 B —
/i18n/locales/it 1.01 kB —
/i18n/locales/ja 1.18 kB —
/i18n/locales/ko 1.14 kB —
/i18n/locales/lt 1.02 kB —
/i18n/locales/lv 1.09 kB —
/i18n/locales/mr 1.30 kB —
/i18n/locales/nb 987 B —
/i18n/locales/ne 1.29 kB —
/i18n/locales/nl 1.00 kB —
/i18n/locales/nn 987 B —
/i18n/locales/oc 1.08 kB —
/i18n/locales/pl 1.14 kB —
/i18n/locales/pt 1.03 kB —
/i18n/locales/pt-BR 1.03 kB —
/i18n/locales/pt-PT 1.01 kB —
/i18n/locales/ro 1.07 kB —
/i18n/locales/ru 1.40 kB —
/i18n/locales/sk 1.10 kB —
/i18n/locales/sl 1.04 kB —
/i18n/locales/sr 1.07 kB —
/i18n/locales/sv 1.01 kB —
/i18n/locales/te 1.32 kB —
/i18n/locales/th 1.29 kB —
/i18n/locales/tr 1.08 kB —
/i18n/locales/uk 1.41 kB —
/i18n/locales/vi 1.11 kB —
/i18n/locales/zh 1.02 kB —
/i18n/locales/zh-CN 1.02 kB —
/i18n/locales/zh-TW 1.02 kB —
/i18n/text/airplay 101 B —
/i18n/text/buttons 137 B —
/i18n/text/captions 93 B —
/i18n/text/cast 114 B —
/i18n/text/common 90 B —
/i18n/text/container 75 B —
/i18n/text/errors 285 B —
/i18n/text/fullscreen 98 B —
/i18n/text/live 126 B —
/i18n/text/menu 249 B —
/i18n/text/pip 101 B —
/i18n/text/playback 80 B —
/i18n/text/seek 105 B —
/i18n/text/slider 65 B —
/i18n/text/status 222 B —
/i18n/text/time 280 B —
/i18n/text/volume 133 B —
🏷️ @videojs/element — 1 small size change
Path Base initial PR initial Initial diff Lazy diff
. 996 B 1.05 kB +80 B (+8.0%) —
Entries (2)
Entry Initial
. 1.05 kB
/context 943 B
📦 @videojs/store — no changes
Entries (3)
Entry Initial
. 1.72 kB
/html 703 B
/react 365 B

🔧 @videojs/utils

Path Base initial PR initial Initial diff Lazy diff
/dom 4.49 kB 5.02 kB +545 B (+11.9%) —
Small changes (4, ≤ 300 B)
Path Base initial PR initial Initial diff Lazy diff
/function 369 B 386 B +17 B (+4.6%) —
/i18n 44 B 249 B +205 B (+465.9%) —
/style 188 B 212 B +24 B (+12.8%) —
/time 1.01 kB 976 B -63 B (-6.1%) —
Entries (13)
Entry Initial
/array 271 B
/dom 5.02 kB
/events 320 B
/function 386 B
/i18n 249 B
/jwt 176 B
/object 535 B
/predicate 297 B
/percent 281 B
/string 239 B
/style 212 B
/time 976 B
/number 199 B

📦 @videojs/media

Path Base initial PR initial Initial diff Lazy diff
/dom/dash 209.84 kB 3.28 kB -206.56 kB (-98.4%) —
/dom/cloudflare — 3.69 kB new —
/dom/hls-js 138.53 kB 139.17 kB +654 B (+0.5%) —
/dom/mux 161.78 kB 162.77 kB +1010 B (+0.6%) —
/dom/shaka — 197.02 kB new —
/dom/spotify — 3.58 kB new —
/dom/tiktok — 3.57 kB new —
/dom/twitch — 3.62 kB new —
Small changes (8, ≤ 300 B)
Path Base initial PR initial Initial diff Lazy diff
. 1.04 kB 1.07 kB +34 B (+3.2%) —
/dom/audio-host 1.10 kB 1.10 kB +1 B (+0.1%) —
/dom/custom-media-element 2.09 kB 2.09 kB +4 B (+0.2%) —
/dom/dash 209.84 kB 209.83 kB -18 B (-0.0%) —
/dom/google-cast 4.06 kB 4.06 kB -1 B (-0.0%) —
/dom/native-hls 5.26 kB 5.25 kB -5 B (-0.1%) —
/dom/vimeo 10.54 kB 10.62 kB +85 B (+0.8%) —
/dom/youtube 4.23 kB 4.25 kB +19 B (+0.4%) —
Entries (21)
Entry Initial
. 1.07 kB
/dom 121 B
/dom/dash 3.28 kB
/dom/audio-host 1.10 kB
/dom/cloudflare 3.69 kB
/dom/custom-media-element 2.09 kB
/dom/dash 209.83 kB
/dom/google-cast 4.06 kB
/dom/hls-js 139.17 kB
/dom/media-host 1.20 kB
/dom/media-played-ranges 576 B
/dom/mux 162.77 kB
/dom/native-hls 5.25 kB
/dom/shaka 197.02 kB
/dom/spotify 3.58 kB
/dom/tiktok 3.57 kB
/dom/twitch 3.62 kB
/dom/video-host 1.39 kB
/dom/vimeo 10.62 kB
/dom/youtube 4.25 kB
/media-tracks 2.05 kB

📦 @videojs/spf

Path Base initial PR initial Initial diff Lazy diff
/hls 21.08 kB 22.23 kB +1.15 kB (+5.4%) —
/hls-background-video 14.76 kB 15.87 kB +1.11 kB (+7.5%) —
/hls-audio 19.67 kB 20.01 kB +348 B (+1.7%) —
/hls-video 25.26 kB 26.05 kB +806 B (+3.1%) —
/mux-audio 20.48 kB 20.97 kB +495 B (+2.4%) —
/mux-background-video 14.75 kB 15.90 kB +1.15 kB (+7.8%) —
/mux-video 26.10 kB 26.96 kB +880 B (+3.3%) —
Small changes (4, ≤ 300 B)
Path Base initial PR initial Initial diff Lazy diff
. 4.53 kB 4.55 kB +20 B (+0.4%) —
/dom 6.58 kB 6.61 kB +25 B (+0.4%) —
/media-tracks 604 B 605 B +1 B (+0.2%) —
/moq 26.68 kB 26.97 kB +290 B (+1.1%) —
Entries (11)
Entry Initial
. 4.55 kB
/dom 6.61 kB
/hls 22.23 kB
/media-tracks 605 B
/moq 26.97 kB
/hls-background-video 15.87 kB
/hls-audio 20.01 kB
/hls-video 26.05 kB
/mux-audio 20.97 kB
/mux-background-video 15.90 kB
/mux-video 26.96 kB

📦 @videojs/jsx

Path Base initial PR initial Initial diff Lazy diff
. 393 B — removed —
/jsx-runtime 371 B — removed —
/jsx-dev-runtime 375 B — removed —

ℹ️ How to interpret

Each entry is independently bundled, minified, and brotli-compressed. Initial size includes its static import graph; lazy dynamic chunks are reported separately.

Entries are not additive because their dependency graphs overlap. Preset rows represent realistic combined bundles.

Changes of 300 B or less across initial, lazy, and total size are collapsed, not discarded.

Run pnpm size locally to check current initial sizes.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

export { MoqMediaElement, MoqMediaMixin, moqMediaDefaultProps } from './adapter';

P1 Badge Split the media facade out of the MoQ engine entry

This entry exports both createMoqEngine and the MoqMediaElement/MoqMediaMixin facade under @videojs/spf/moq. The scoped repository guide requires media facades to use separate adapter entry points and explicitly prohibits exposing them from engine entries; keeping these surfaces together prevents independent public contracts and bundle budgets. Move the adapter exports to a dedicated media entry and leave this entry engine-only.

AGENTS.md reference: packages/spf/src/AGENTS.md:L16-L16



P2 Badge Reflect defaultMuted through the muted attribute

When a caller configures muted autoplay through the standard IDL path (element.defaultMuted = true), this public field changes only its stored value: it neither adds the muted attribute nor updates element.muted, so playback remains audible and autoplay may be rejected. The declarative attribute path works, but the tests cover only that direction; implement a reflected getter/setter as CustomMediaElement does.


return url.startsWith('moqt://');

P2 Badge Accept case-insensitive MoQ schemes

URL schemes are case-insensitive, and parseMoqSource() already accepts an uppercase scheme because new URL() normalizes it, but this guard rejects sources such as MOQT://relay.example/.... In that case setupMoqSession remains in preconditions-unmet and never connects, with no useful error; normalize the scheme or parse the URL before comparing it.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

20 issues found across 3000 files

Not reviewed (too large): site/scripts/api-docs-builder/src/media-element-handler.ts (~2,408 lines) - if these are generated or fixture files, add them to ignored paths to exclude them from future reviews.

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/sandbox/templates/html-mux-background-video/main.ts">

<violation number="1" location="apps/sandbox/templates/html-mux-background-video/main.ts:29">
P2: When the sandbox source picker selects `mp4-1`, this renders its `.mp4` URL into the HLS-only background-video engine, so playback fails instead of showing a valid source. Restrict the background preset's available sources to `type === 'hls'` (while retaining the intentional HLS failure cases such as MPEG-TS and unlicensed DRM).</violation>
</file>

<file name="packages/cli/vite.config.ts">

<violation number="1" location="packages/cli/vite.config.ts:53">
P2: CLI tests use a CDN manifest that does not match the manifest used by the packed CLI, so CDN validation can pass while production accepts or rejects different renderers. Generate the test manifest from the same discovery source, or update the fixture and its expectations whenever the CDN entries change.</violation>
</file>

<file name="apps/sandbox/templates/html-shaka-video/main.ts">

<violation number="1" location="apps/sandbox/templates/html-shaka-video/main.ts:38">
P2: When the iframe starts with a known structured source such as `mux-source-cmaf`, `SOURCES[state.source].url` is undefined and this template sends the literal `"undefined"` to Shaka. Guard the optional URL here, and normalize unsupported sources to a Shaka-compatible default before rendering.</violation>
</file>

<file name="internal/design/spf/use-cases/audio-only-mode-override.md">

<violation number="1" location="internal/design/spf/use-cases/audio-only-mode-override.md:315">
P2: The updated path `media/hls-audio/element.ts` does not exist — `packages/html/src/media/hls-audio/` contains only `index.ts` and `media.ts`, and no `element.ts` exists anywhere under `packages/html`. `HlsAudioElement` is both defined and registered in `define/media/hls-audio.ts`, so the new text also misstates that file's role. Revert to pointing the row at `define/media/hls-audio.ts` so readers can find the export.</violation>
</file>

<file name=".github/workflows/issue-sync.yml">

<violation number="1" location=".github/workflows/issue-sync.yml:37">
P1: When a merged PR contains hidden prompt-injection text, this step gives Codex an issues-write `GH_TOKEN` plus writable workspace and unrestricted network access, so it can close or alter issues outside the PR's intended scope or exfiltrate the token. The warning in the prompt is not an enforcement boundary; run the model without write credentials in a read-only/restricted sandbox and apply only validated structured decisions in a separate step.</violation>
</file>

<file name=".github/workflows/forward-port-changelog.yml">

<violation number="1" location=".github/workflows/forward-port-changelog.yml:20">
P2: When a changelog push overlaps a publishing release, this workflow can push `site/v10` before `cd.yml` performs its final force-push, so the release overwrites the changelog and no later site push retriggers this workflow. Share the `production` concurrency group or otherwise run this job after deployment completes.</violation>
</file>

<file name=".github/workflows/e2e-failure-triage.yml">

<violation number="1" location=".github/workflows/e2e-failure-triage.yml:39">
P1: Because this action processes attacker-controlled logs, artifacts, and pull-request data, enabling workspace writes plus network access lets prompt injection run arbitrary commands, read `GH_TOKEN`, and exfiltrate it. Use a least-privilege permission profile and move required GitHub mutations into fixed workflow steps.</violation>
</file>

<file name="packages/core/scripts/generate-i18n-types.ts">

<violation number="1" location="packages/core/scripts/generate-i18n-types.ts:38">
P3: The log always prints "Updated generated translation types" even when the new `existsSync`/`readFileSync` guard skips the write because the file is already current. In watch/dev runs this reports an update that did not happen. Print only when a write occurred, e.g. move the log inside the condition or log a no-change notice.</violation>
</file>

<file name="internal/design/ui/poster.md">

<violation number="1" location="internal/design/ui/poster.md:31">
P3: 'The one each binding renders' overclaims for the HTML binding. The HTML element renders no image and only sets src on the author's <img> — it cannot attach alt="". Only the React binding renders an img with alt="". Say the default applies to the image the React binding renders, while the HTML binding fills src only (alt stays the author's), consistent with the following sentences about supplying your own alt.</violation>
</file>

<file name=".github/workflows/api-reference-sync.yml">

<violation number="1" location=".github/workflows/api-reference-sync.yml:281">
P3: This job is labeled GPT-5.6 Sol but selects `gpt-5.6-terra`, so it runs a different model than the workflow and PR description advertise. Set the model to `gpt-5.6-sol` or align the label and description with Terra.</violation>

<violation number="2" location=".github/workflows/api-reference-sync.yml:285">
P2: If an untrusted API artifact or repository file contains a prompt injection, this setting lets Codex run arbitrary network commands from a writable workspace while `GH_TOKEN` is available. Run Codex read-only without a write-capable token, then create the issue in a separate trusted step or enforce an equivalent narrow permission profile.</violation>
</file>

<file name=".github/workflows/issue-triage.yml">

<violation number="1" location=".github/workflows/issue-triage.yml:30">
P1: When an external user opens or reopens an issue, `openai/codex-action@v1` rejects the run before Codex because `allow-users` defaults to empty and the actor lacks repository write access. This disables the workflow’s external-issue triage path; add the intended external-user allowlist or route this job through a trusted bot.</violation>

<violation number="2" location=".github/workflows/issue-triage.yml:35">
P1: When a maintainer reopens an attacker-controlled issue, Codex receives its body as prompt data, inherits the write-capable `GH_TOKEN`, and can make arbitrary network requests. A prompt injection can therefore exfiltrate the token or mutate issues; run untrusted issue analysis without credentials or network access, then apply only validated results in a separate trusted step.</violation>
</file>

<file name=".agents/skills/write-docs/references/state-tooling.md">

<violation number="1" location=".agents/skills/write-docs/references/state-tooling.md:280">
P3: The corrected example now uses `player.append(videoElement)` + `document.body.append(player)` and never calls `attach()`, but the section's cause still says "Called method before `attach()`." Update the cause/title to reference the missing media append so the troubleshooting text matches the revised API.</violation>
</file>

<file name=".vite-hooks/commit-msg">

<violation number="1" location=".vite-hooks/commit-msg:1">
P2: The commit-msg hook runs `vp run commitlint`, which executes `commitlint --edit` without forwarding the commit-message file git passes as `$1`. The `--edit` flag without a value falls back to `.git/COMMIT_EDITMSG`, so it validates the wrong file whenever git provides a non-default message path (e.g., worktree/scripted/`--amend` flows). Use conventional hook wiring so the exact message file is validated: pass the path through to commitlint.</violation>
</file>

<file name="apps/sandbox/templates/html-mux-video/main.ts">

<violation number="1" location="apps/sandbox/templates/html-mux-video/main.ts:50">
P2: When `hls-drm` is selected, this leaves the poster on the skin's fallback image, which lacks `crossorigin`, so StackBlitz blocks the cross-origin Mux thumbnail. Render a `crossorigin` slotted image whenever `poster` exists, not only when `placeholder` exists.</violation>
</file>

<file name="apps/sandbox/templates/html-hls-background-video/main.ts">

<violation number="1" location="apps/sandbox/templates/html-hls-background-video/main.ts:25">
P2: Opening this template directly (e.g. `/<template-name>/` per the README) now defaults to source `hls-1`, an MPEG-TS ladder, so the SPF background video shows nothing (SPF has no TS transmuxer). The old page hardcoded a CMAF/fMP4 URL, and the shared `DEFAULT_BACKGROUND_SOURCE = 'hls-4k'` is the CMAF default the shell uses for this preset. Initialize from `DEFAULT_BACKGROUND_SOURCE` (via `?source=`/shell still overrides) so the direct-navigation demo plays instead of failing.</violation>
</file>

<file name="apps/sandbox/package.json">

<violation number="1" location="apps/sandbox/package.json:43">
P2: The StackBlitz `startCommand` runs `pnpm dev`, but this change deleted the package's `dev` script, so the standalone boot (which, per README, uploads only this directory and never the monorepo root) fails with "Missing script: dev". Point the command at a command that exists here, e.g. `vp dev` (matching the `dev` task's `vp dev --host`; the sandboxTemplateSyncPlugin regenerates `src/` on buildStart), or restore a `dev` npm script.</violation>
</file>

<file name=".zed/settings.json">

<violation number="1" location=".zed/settings.json:15">
P2: The Zed oxlint LSP runs with default settings because it has no configPath and the repo has no .oxlintrc.json, while all project lint rules and plugins (anti-slop, typescript/react, rule overrides) live only in vite.config.ts. As a result the in-editor lint/`source.fixAll.oxc` signals will diverge from `pnpm lint`, showing project-disabled rules and omitting the project's custom rules. Previously the biome config enforced `require_config_file` so the editor matched CI; this is a regression. Point the LSP at the project config (e.g. add `"configPath"` for a checked-in oxlint config that mirrors the vite.config.ts lint section) or explicitly scope the oxlint LSP to basic defaults.</violation>
</file>

<file name="packages/core/package.json">

<violation number="1" location="packages/core/package.json:38">
P2: The new "./vjsc" subpath export is only added to the top-level exports, not to publishConfig.exports. npm publishes with the publishConfig.exports object replacing the manifest's exports, so the published @videojs/core will not expose ./vjsc and any consumer importing @videojs/core/vjsc (including packages/skins/vjsc/components/*) will fail to resolve it after publish even though it works in the workspace. Mirror the ./vjsc entry in publishConfig.exports.</violation>
</file>

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.

Re-trigger cubic

openai-api-key: ${{ secrets.OPENAI_API_KEY }}
model: gpt-5.6-terra
effort: medium
sandbox: workspace-write

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: When a merged PR contains hidden prompt-injection text, this step gives Codex an issues-write GH_TOKEN plus writable workspace and unrestricted network access, so it can close or alter issues outside the PR's intended scope or exfiltrate the token. The warning in the prompt is not an enforcement boundary; run the model without write credentials in a read-only/restricted sandbox and apply only validated structured decisions in a separate step.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/issue-sync.yml, line 37:

<comment>When a merged PR contains hidden prompt-injection text, this step gives Codex an issues-write `GH_TOKEN` plus writable workspace and unrestricted network access, so it can close or alter issues outside the PR's intended scope or exfiltrate the token. The warning in the prompt is not an enforcement boundary; run the model without write credentials in a read-only/restricted sandbox and apply only validated structured decisions in a separate step.</comment>

<file context>
@@ -19,22 +18,25 @@ jobs:
+          openai-api-key: ${{ secrets.OPENAI_API_KEY }}
+          model: gpt-5.6-terra
+          effort: medium
+          sandbox: workspace-write
+          safety-strategy: drop-sudo
+          codex-args: '["--config", "sandbox_workspace_write.network_access=true"]'
</file context>

effort: medium
sandbox: workspace-write
safety-strategy: drop-sudo
codex-args: '["--config", "sandbox_workspace_write.network_access=true"]'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Because this action processes attacker-controlled logs, artifacts, and pull-request data, enabling workspace writes plus network access lets prompt injection run arbitrary commands, read GH_TOKEN, and exfiltrate it. Use a least-privilege permission profile and move required GitHub mutations into fixed workflow steps.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/e2e-failure-triage.yml, line 39:

<comment>Because this action processes attacker-controlled logs, artifacts, and pull-request data, enabling workspace writes plus network access lets prompt injection run arbitrary commands, read `GH_TOKEN`, and exfiltrate it. Use a least-privilege permission profile and move required GitHub mutations into fixed workflow steps.</comment>

<file context>
@@ -25,17 +26,17 @@ jobs:
+          effort: medium
+          sandbox: workspace-write
+          safety-strategy: drop-sudo
+          codex-args: '["--config", "sandbox_workspace_write.network_access=true"]'
           prompt: |
             You are diagnosing a failed Video.js E2E workflow for a pull request.
</file context>

effort: medium
sandbox: workspace-write
safety-strategy: drop-sudo
codex-args: '["--config", "sandbox_workspace_write.network_access=true"]'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: When a maintainer reopens an attacker-controlled issue, Codex receives its body as prompt data, inherits the write-capable GH_TOKEN, and can make arbitrary network requests. A prompt injection can therefore exfiltrate the token or mutate issues; run untrusted issue analysis without credentials or network access, then apply only validated results in a separate trusted step.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/issue-triage.yml, line 35:

<comment>When a maintainer reopens an attacker-controlled issue, Codex receives its body as prompt data, inherits the write-capable `GH_TOKEN`, and can make arbitrary network requests. A prompt injection can therefore exfiltrate the token or mutate issues; run untrusted issue analysis without credentials or network access, then apply only validated results in a separate trusted step.</comment>

<file context>
@@ -17,20 +16,23 @@ jobs:
+          effort: medium
+          sandbox: workspace-write
+          safety-strategy: drop-sudo
+          codex-args: '["--config", "sandbox_workspace_write.network_access=true"]'
           prompt: |
             You are the issue triage agent for this repository.
</file context>

--model sonnet
--max-turns 12
--allowedTools "Bash(gh:*)" "WebSearch" "WebFetch"
openai-api-key: ${{ secrets.OPENAI_API_KEY }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: When an external user opens or reopens an issue, openai/codex-action@v1 rejects the run before Codex because allow-users defaults to empty and the actor lacks repository write access. This disables the workflow’s external-issue triage path; add the intended external-user allowlist or route this job through a trusted bot.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/issue-triage.yml, line 30:

<comment>When an external user opens or reopens an issue, `openai/codex-action@v1` rejects the run before Codex because `allow-users` defaults to empty and the actor lacks repository write access. This disables the workflow’s external-issue triage path; add the intended external-user allowlist or route this job through a trusted bot.</comment>

<file context>
@@ -17,20 +16,23 @@ jobs:
-            --model sonnet
-            --max-turns 12
-            --allowedTools "Bash(gh:*)" "WebSearch" "WebFetch"
+          openai-api-key: ${{ secrets.OPENAI_API_KEY }}
+          model: gpt-5.6-terra
+          effort: medium
</file context>

async function render() {
await prepareSandboxHtmlLocale();

const src = withMuxMaxResolution(SOURCES[source].url ?? '', '720p');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: When the sandbox source picker selects mp4-1, this renders its .mp4 URL into the HLS-only background-video engine, so playback fails instead of showing a valid source. Restrict the background preset's available sources to type === 'hls' (while retaining the intentional HLS failure cases such as MPEG-TS and unlicensed DRM).

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/sandbox/templates/html-mux-background-video/main.ts, line 29:

<comment>When the sandbox source picker selects `mp4-1`, this renders its `.mp4` URL into the HLS-only background-video engine, so playback fails instead of showing a valid source. Restrict the background preset's available sources to `type === 'hls'` (while retaining the intentional HLS failure cases such as MPEG-TS and unlicensed DRM).</comment>

<file context>
@@ -3,35 +3,45 @@ import { bindSandboxHtmlLocaleChange, prepareSandboxHtmlLocale, wrapSandboxHtmlI
 async function render() {
   await prepareSandboxHtmlLocale();
 
+  const src = withMuxMaxResolution(SOURCES[source].url ?? '', '720p');
+
   document.getElementById('root')!.innerHTML = wrapSandboxHtmlI18n(html`
</file context>

"types": "./dist/dev/components.d.ts",
"development": "./dist/dev/components.js",
"default": "./dist/default/components.js"
"./vjsc": {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The new "./vjsc" subpath export is only added to the top-level exports, not to publishConfig.exports. npm publishes with the publishConfig.exports object replacing the manifest's exports, so the published @videojs/core will not expose ./vjsc and any consumer importing @videojs/core/vjsc (including packages/skins/vjsc/components/*) will fail to resolve it after publish even though it works in the workspace. Mirror the ./vjsc entry in publishConfig.exports.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/core/package.json, line 38:

<comment>The new "./vjsc" subpath export is only added to the top-level exports, not to publishConfig.exports. npm publishes with the publishConfig.exports object replacing the manifest's exports, so the published @videojs/core will not expose ./vjsc and any consumer importing @videojs/core/vjsc (including packages/skins/vjsc/components/*) will fail to resolve it after publish even though it works in the workspace. Mirror the ./vjsc entry in publishConfig.exports.</comment>

<file context>
@@ -29,10 +35,10 @@
-      "types": "./dist/dev/components.d.ts",
-      "development": "./dist/dev/components.js",
-      "default": "./dist/default/components.js"
+    "./vjsc": {
+      "types": "./dist/dev/vjsc.d.ts",
+      "development": "./dist/dev/vjsc.js",
</file context>

writeFileSync(output, generate());
const generated = generate();

if (!existsSync(output) || readFileSync(output, 'utf8') !== generated) writeFileSync(output, generated);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The log always prints "Updated generated translation types" even when the new existsSync/readFileSync guard skips the write because the file is already current. In watch/dev runs this reports an update that did not happen. Print only when a write occurred, e.g. move the log inside the condition or log a no-change notice.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/core/scripts/generate-i18n-types.ts, line 38:

<comment>The log always prints "Updated generated translation types" even when the new `existsSync`/`readFileSync` guard skips the write because the file is already current. In watch/dev runs this reports an update that did not happen. Print only when a write occurred, e.g. move the log inside the condition or log a no-change notice.</comment>

<file context>
@@ -30,5 +33,8 @@ ${params}
-writeFileSync(output, generate());
+const generated = generate();
+
+if (!existsSync(output) || readFileSync(output, 'utf8') !== generated) writeFileSync(output, generated);
+
 console.log('[generate-i18n-types] Updated generated translation types');
</file context>


**Child (`<img>`):** User provides appropriate `alt` text. Whether a poster is informative or decorative is the author's judgment (per [WAI guidelines](https://www.w3.org/WAI/tutorials/images/decorative/)). This is an advantage over Media Chrome (which forces `aria-hidden="true"` on the internal image) and native `<video poster>` (which has no `alt` equivalent).
**Image:** The one each binding renders carries `alt=""`. A resolved URL says nothing about what it depicts, and announcing the URL is worse than announcing nothing. Supply your own `alt` — as a prop in React, on your own `<img>` in HTML — to describe a poster that carries meaning. Whether a poster is informative or decorative is the author's judgment (per [WAI guidelines](https://www.w3.org/WAI/tutorials/images/decorative/)). This is an advantage over Media Chrome (which forces `aria-hidden="true"` on the internal image) and native `<video poster>` (which has no `alt` equivalent).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: 'The one each binding renders' overclaims for the HTML binding. The HTML element renders no image and only sets src on the author's — it cannot attach alt="". Only the React binding renders an img with alt="". Say the default applies to the image the React binding renders, while the HTML binding fills src only (alt stays the author's), consistent with the following sentences about supplying your own alt.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At internal/design/ui/poster.md, line 31:

<comment>'The one each binding renders' overclaims for the HTML binding. The HTML element renders no image and only sets src on the author's <img> — it cannot attach alt="". Only the React binding renders an img with alt="". Say the default applies to the image the React binding renders, while the HTML binding fills src only (alt stays the author's), consistent with the following sentences about supplying your own alt.</comment>

<file context>
@@ -11,20 +11,24 @@ Display component for video poster image. Shows before playback starts, hides af
+**HTML element (`<media-poster>`):** No ARIA role needed. Custom elements have no implicit role, so there's no semantics to hide or override. Do not add `aria-hidden` — the poster image may be informative.
 
-**Child (`<img>`):** User provides appropriate `alt` text. Whether a poster is informative or decorative is the author's judgment (per [WAI guidelines](https://www.w3.org/WAI/tutorials/images/decorative/)). This is an advantage over Media Chrome (which forces `aria-hidden="true"` on the internal image) and native `<video poster>` (which has no `alt` equivalent).
+**Image:** The one each binding renders carries `alt=""`. A resolved URL says nothing about what it depicts, and announcing the URL is worse than announcing nothing. Supply your own `alt` — as a prop in React, on your own `<img>` in HTML — to describe a poster that carries meaning. Whether a poster is informative or decorative is the author's judgment (per [WAI guidelines](https://www.w3.org/WAI/tutorials/images/decorative/)). This is an advantage over Media Chrome (which forces `aria-hidden="true"` on the internal image) and native `<video poster>` (which has no `alt` equivalent).
 
 ## Alternatives Considered
</file context>

--max-turns 25
--allowedTools "Read" "Glob" "Grep" "Bash(gh:*)" "Bash(cat:*)" "Bash(jq:*)" "Bash(diff:*)" "Bash(ls:*)" "Bash(head:*)" "Bash(tail:*)" "Bash(wc:*)" "Bash(sort:*)"
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
model: gpt-5.6-terra

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: This job is labeled GPT-5.6 Sol but selects gpt-5.6-terra, so it runs a different model than the workflow and PR description advertise. Set the model to gpt-5.6-sol or align the label and description with Terra.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/api-reference-sync.yml, line 281:

<comment>This job is labeled GPT-5.6 Sol but selects `gpt-5.6-terra`, so it runs a different model than the workflow and PR description advertise. Set the model to `gpt-5.6-sol` or align the label and description with Terra.</comment>

<file context>
@@ -269,18 +273,24 @@ jobs:
-            --max-turns 25
-            --allowedTools "Read" "Glob" "Grep" "Bash(gh:*)" "Bash(cat:*)" "Bash(jq:*)" "Bash(diff:*)" "Bash(ls:*)" "Bash(head:*)" "Bash(tail:*)" "Bash(wc:*)" "Bash(sort:*)"
+          openai-api-key: ${{ secrets.OPENAI_API_KEY }}
+          model: gpt-5.6-terra
+          effort: high
+          sandbox: workspace-write
</file context>
Suggested change
model: gpt-5.6-terra
model: gpt-5.6-sol

const player = create();
player.play(); // Error!
const { PlayerElement } = createPlayer({ features: videoFeatures });
const player = new PlayerElement();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The corrected example now uses player.append(videoElement) + document.body.append(player) and never calls attach(), but the section's cause still says "Called method before attach()." Update the cause/title to reference the missing media append so the troubleshooting text matches the revised API.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .agents/skills/write-docs/references/state-tooling.md, line 280:

<comment>The corrected example now uses `player.append(videoElement)` + `document.body.append(player)` and never calls `attach()`, but the section's cause still says "Called method before `attach()`." Update the cause/title to reference the missing media append so the troubleshooting text matches the revised API.</comment>

<file context>
@@ -276,15 +276,16 @@ Document common errors:
-const player = create();
-player.play(); // Error!
+const { PlayerElement } = createPlayer({ features: videoFeatures });
+const player = new PlayerElement();
+await player.store.play(); // No media is attached yet.
 
</file context>

@mmcc
mmcc merged commit 30d3001 into mmcc/moq Sep 1, 2026
26 of 27 checks passed
@mmcc
mmcc deleted the chore/sync-upstream-main branch September 1, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants