Skip to content

Commit 41ee6f6

Browse files
vanceingallsclaude
andcommitted
Merge main into perf/page-build-reuse after #5893 squash
#5893 (perf/compile-variable-defines) landed on main as 0d51eb0. Both conflicts resolve to this branch's side: in htmlBundler.ts and htmlBundler.entryPaths.test.ts main's side is the squashed #5893 code, identical to the copy this branch already carried, so the branch side is #5893 plus this PR's changes. main's #5930 lazy esbuild import merges in cleanly. The merged tree differs from main by exactly this PR's delta. — Via Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2 parents 2378600 + 0d51eb0 commit 41ee6f6

461 files changed

Lines changed: 24187 additions & 3471 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hyperframes",
33
"description": "HyperFrames by HeyGen. Write HTML, render video. Compositions, GSAP and runtime adapter animations, captions, voiceovers, audio-reactive visuals, and website capture for HyperFrames.",
4-
"version": "0.8.175",
4+
"version": "0.8.183",
55
"author": {
66
"name": "HeyGen",
77
"email": "[email protected]",

‎.codex-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hyperframes",
33
"description": "Write HTML, render video. Compositions, Tailwind v4 styles, GSAP and runtime adapter animations, captions, voiceovers, audio-reactive visuals, and website capture for HyperFrames.",
4-
"version": "0.8.175",
4+
"version": "0.8.183",
55
"author": {
66
"name": "HeyGen",
77
"email": "[email protected]",

‎.cursor-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "hyperframes",
44
"displayName": "HyperFrames by HeyGen",
55
"description": "Write HTML, render video. Compositions, Tailwind v4 styles, GSAP and runtime adapter animations, captions, voiceovers, audio-reactive visuals, and website capture for HyperFrames.",
6-
"version": "0.8.175",
6+
"version": "0.8.183",
77
"author": {
88
"name": "HeyGen",
99
"email": "[email protected]"

‎.fallowrc.jsonc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@
5959
"packages/cli/src/backgroundChecksWorker.ts",
6060
// Parakeet decode worker, spawned by path from whisper/sherpa.ts.
6161
"packages/cli/src/whisper/sherpaWorker.ts",
62+
// Warm-check client, spawned by path from warmCheck.process.test.ts.
63+
"packages/cli/src/warmCheckClient.fixture.ts",
64+
"packages/cli/src/browser/chromeOrphans.fixture.ts",
65+
"packages/cli/src/capture/publicNetwork.fixture.ts",
66+
"packages/cli/src/utils/commandResult.fixture.ts",
6267
// Test fixture worker, spawned by path via the pools' workerEntryPath
6368
// option from the crash-recovery tests; has no import-graph referrer.
6469
"packages/producer/src/services/__fixtures__/crashOnMessageWorker.mjs",

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ jobs:
330330
- run: bash scripts/ci/install-workspace-dependencies.sh
331331
- run: bun run build
332332
- run: bun run verify:packed-manifests
333+
- run: bun run check:cli-lazy-deps
333334
- name: Share the built CLI with the edit accuracy shards
334335
if: needs.changes.outputs.edit_accuracy == 'true'
335336
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
@@ -1522,9 +1523,10 @@ jobs:
15221523
runs-on: ubuntu-latest
15231524
timeout-minutes: 1
15241525
steps:
1526+
# A pull request checks out its merge commit, whose first parent is the base: two commits are the whole diff.
15251527
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
15261528
with:
1527-
fetch-depth: 0
1529+
fetch-depth: 2
15281530
- name: Check file sizes (max 600 lines)
15291531
# Scoped to files THIS PR changed under packages/studio. Walking the
15301532
# whole tree blamed every unrelated PR for pre-existing offenders.
@@ -1535,7 +1537,7 @@ jobs:
15351537
if [ -n "${{ github.base_ref }}" ]; then
15361538
mapfile -t files < <(
15371539
git diff --name-only --diff-filter=ACMR \
1538-
"origin/${{ github.base_ref }}...HEAD" -- \
1540+
HEAD^1 HEAD -- \
15391541
'packages/studio/**/*.ts' 'packages/studio/**/*.tsx' \
15401542
| grep -vE '\.(test|spec)\.(ts|tsx)$|\.generated\.' || true
15411543
)

‎.github/workflows/player-perf.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ jobs:
140140
PUPPETEER_EXECUTABLE_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
141141
run: bun run test:browser-raster
142142

143+
- name: Verify the player takes the box its embed asks for (load shard only)
144+
if: matrix.shard == 'load'
145+
working-directory: packages/player
146+
env:
147+
PUPPETEER_EXECUTABLE_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
148+
run: bun run test:browser-box
149+
143150
- name: Run player perf — ${{ matrix.shard }} (measure mode)
144151
working-directory: packages/player
145152
env:
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Player Safari perf
2+
3+
permissions:
4+
contents: read
5+
6+
env:
7+
HYPERFRAMES_NO_TELEMETRY: "1"
8+
9+
on:
10+
pull_request:
11+
paths:
12+
- "packages/player/**"
13+
- "packages/core/src/runtime/**"
14+
- ".github/workflows/player-safari.yml"
15+
schedule:
16+
- cron: "23 7 * * *"
17+
workflow_dispatch:
18+
19+
concurrency:
20+
group: player-safari-${{ github.ref }}
21+
cancel-in-progress: true
22+
23+
jobs:
24+
heavy-films:
25+
name: "Heavy films: Safari vs Chrome"
26+
runs-on: macos-latest
27+
timeout-minutes: 45
28+
steps:
29+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
30+
31+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
32+
33+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
34+
with:
35+
node-version: 22
36+
37+
- run: bun install --frozen-lockfile
38+
39+
# The bench serves packages/player/dist and packages/core/dist, as the Linux perf shards do.
40+
- run: bun run build
41+
42+
- name: Generate heavy media
43+
run: |
44+
brew install ffmpeg
45+
bash packages/player/tests/perf/browsers/make-media.sh
46+
47+
- name: Enable safaridriver
48+
run: sudo safaridriver --enable
49+
50+
- name: Run heavy films in Safari and Chrome
51+
working-directory: packages/player
52+
run: |
53+
sw_vers
54+
CHROMEDRIVER="$CHROMEWEBDRIVER/chromedriver" bun run tests/perf/browsers/run.ts --browsers safari,chrome --runs 2
55+
56+
- name: Upload results
57+
if: always()
58+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
59+
with:
60+
name: player-safari-heavy-films
61+
path: packages/player/tests/perf/results/
62+
if-no-files-found: warn
63+
retention-days: 30

‎.github/workflows/publish.yml‎

Lines changed: 52 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
publish:
1717
name: Publish
1818
runs-on: ubuntu-latest
19-
timeout-minutes: 10
19+
timeout-minutes: 20
2020
environment: npm-publish
2121
permissions:
2222
contents: write
@@ -120,8 +120,59 @@ jobs:
120120
- run: corepack prepare [email protected] --activate
121121
- run: bun install --frozen-lockfile
122122
- run: bun run build
123+
124+
# Before `npm publish`, so @hyperframes/aws-lambda pins this exact zip.
125+
- name: Build Lambda handler zip
126+
id: lambda_zip
127+
env:
128+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129+
VERSION: ${{ steps.version.outputs.version }}
130+
REPO: ${{ github.repository }}
131+
run: |
132+
# A retried run reuses the zip already on the release, so the pin still matches it.
133+
if gh release download "v${VERSION}" --repo "$REPO" --pattern hyperframes-lambda-handler.zip --dir dist; then
134+
echo "attached=true" >> "$GITHUB_OUTPUT"
135+
else
136+
bun run --cwd packages/aws-lambda build:zip
137+
fi
138+
bun packages/aws-lambda/scripts/pin-handler-zip.ts
139+
123140
- run: bun run verify:packed-manifests
124141

142+
- name: Create GitHub Release
143+
env:
144+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
145+
VERSION: ${{ steps.version.outputs.version }}
146+
PRERELEASE: ${{ steps.version.outputs.prerelease }}
147+
REPO: ${{ github.repository }}
148+
run: |
149+
NOTES_FILE="releases/v${VERSION}.md"
150+
151+
# Skip if release already exists (idempotent re-runs)
152+
if gh release view "v${VERSION}" --repo "$REPO" >/dev/null 2>&1; then
153+
echo "Release v${VERSION} already exists — skipping"
154+
else
155+
FLAGS=(--repo "$REPO" --title "v${VERSION}")
156+
if [ -f "$NOTES_FILE" ]; then
157+
FLAGS+=(--notes-file "$NOTES_FILE")
158+
else
159+
echo "No reviewed release notes found at $NOTES_FILE — using GitHub generated notes"
160+
FLAGS+=(--generate-notes)
161+
fi
162+
if [ "$PRERELEASE" = "true" ]; then
163+
FLAGS+=(--prerelease)
164+
fi
165+
gh release create "v${VERSION}" "${FLAGS[@]}"
166+
fi
167+
168+
- name: Attach Lambda handler zip to release
169+
if: steps.lambda_zip.outputs.attached != 'true'
170+
env:
171+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
172+
VERSION: ${{ steps.version.outputs.version }}
173+
REPO: ${{ github.repository }}
174+
run: gh release upload "v${VERSION}" dist/hyperframes-lambda-handler.zip dist/hyperframes-lambda-handler.sha256 --repo "$REPO"
175+
125176
- name: Publish packages
126177
env:
127178
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -190,32 +241,6 @@ jobs:
190241
exit 1
191242
fi
192243
193-
- name: Create GitHub Release
194-
env:
195-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
196-
VERSION: ${{ steps.version.outputs.version }}
197-
PRERELEASE: ${{ steps.version.outputs.prerelease }}
198-
REPO: ${{ github.repository }}
199-
run: |
200-
NOTES_FILE="releases/v${VERSION}.md"
201-
202-
# Skip if release already exists (idempotent re-runs)
203-
if gh release view "v${VERSION}" --repo "$REPO" >/dev/null 2>&1; then
204-
echo "Release v${VERSION} already exists — skipping"
205-
else
206-
FLAGS=(--repo "$REPO" --title "v${VERSION}")
207-
if [ -f "$NOTES_FILE" ]; then
208-
FLAGS+=(--notes-file "$NOTES_FILE")
209-
else
210-
echo "No reviewed release notes found at $NOTES_FILE — using GitHub generated notes"
211-
FLAGS+=(--generate-notes)
212-
fi
213-
if [ "$PRERELEASE" = "true" ]; then
214-
FLAGS+=(--prerelease)
215-
fi
216-
gh release create "v${VERSION}" "${FLAGS[@]}"
217-
fi
218-
219244
- name: Build portable agent plugin
220245
run: node scripts/package-agent-plugin.mjs
221246

‎.github/workflows/windows-render.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ jobs:
428428
needs: [changes, preflight]
429429
if: needs.changes.outputs.code == 'true' || github.event_name == 'workflow_dispatch'
430430
runs-on: windows-latest
431-
timeout-minutes: 20
431+
timeout-minutes: 30
432432
strategy:
433433
fail-fast: false
434434
matrix:
@@ -508,17 +508,20 @@ jobs:
508508
shell: pwsh
509509
run: node --import tsx packages/cli/scripts/prepare-process-test-browser.mjs
510510

511+
# Step limits stay under the job limit minus setup (~5 min), so a hung run fails its step and keeps the log.
511512
- name: Run Studio shard ${{ matrix.studio_shard }}
512513
if: matrix.studio_shard
513514
shell: pwsh
514-
run: bun run --cwd packages/studio test -- --shard=${{ matrix.studio_shard }} --maxWorkers=2
515+
timeout-minutes: 16
516+
run: bun run --cwd packages/studio test -- --shard=${{ matrix.studio_shard }} --maxWorkers=2 --reporter=verbose
515517

516518
- name: Run ${{ matrix.lane }} package tests
517519
if: matrix.packages
518520
shell: pwsh
521+
timeout-minutes: 16
519522
# Each package starts its own Vitest pool. Bound every pool so concurrent
520523
# package scripts cannot oversubscribe the hosted Windows runner.
521-
run: bun run ${{ matrix.packages }} test -- --maxWorkers=2
524+
run: bun run ${{ matrix.packages }} test -- --maxWorkers=2 --reporter=verbose
522525

523526
- name: Verify waveform cache writes on Windows
524527
if: matrix.lane == 'engine-cli'

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules/
33

44
# Build output
55
dist/
6+
packages/aws-lambda/prebuilt/
67
*.tsbuildinfo
78

89
# Environment
@@ -45,6 +46,7 @@ packages/producer/tests/parity/fixtures/hyperframe.runtime.iife.js
4546

4647
# Player perf test results (generated each run, attached as CI artifact)
4748
packages/player/tests/perf/results/
49+
packages/player/tests/perf/fixtures/_media/
4850

4951
# Rendered output (not test fixtures — those use git LFS)
5052
output/

0 commit comments

Comments
 (0)