Skip to content

Commit 2fa8452

Browse files
SanHsienclaude
andcommitted
chore(upstream): adopt bf7ebe9 (merge heygen-com/hyperframes main)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2 parents 255aa63 + bf7ebe9 commit 2fa8452

507 files changed

Lines changed: 16057 additions & 2429 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.206",
4+
"version": "0.8.210",
55
"author": {
66
"name": "HeyGen",
77
"email": "[email protected]",

‎.claude/settings.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"type": "command",
99
"timeout": 180,
1010
"statusMessage": "Running build + lint + typecheck before commit…",
11-
"command": "node -e \"\nconst chunks = [];\nprocess.stdin.on('data', d => chunks.push(d));\nprocess.stdin.on('end', () => {\n const input = JSON.parse(Buffer.concat(chunks).toString());\n const cmd = input.tool_input?.command || '';\n if (!/git\\s+commit\\b/.test(cmd)) process.exit(0);\n const { execSync } = require('child_process');\n const fs = require('fs');\n const path = require('path');\n const os = require('os');\n // A leading 'cd <path>' in the command is the real target directory:\n // Claude Code prefixes this whenever the session's tracked cwd differs\n // from this hook process's own cwd (e.g. a sibling repo worktree) — the\n // hook process itself always inherits the primary working directory,\n // never the command's actual target.\n function resolveTargetDir() {\n const m = cmd.match(/^\\s*cd\\s+('([^']+)'|(\\S+))\\s*(?:&&|;|\\n|$)/);\n if (m) {\n let dir = m[2] || m[3];\n if (dir.startsWith('~')) dir = path.join(os.homedir(), dir.slice(1));\n dir = path.resolve(process.cwd(), dir);\n if (fs.existsSync(dir)) return dir;\n }\n return process.cwd();\n }\n const targetDir = resolveTargetDir();\n let repoRoot;\n try {\n repoRoot = execSync('git rev-parse --show-toplevel', { cwd: targetDir, encoding: 'utf8' }).trim();\n } catch {\n process.exit(0);\n }\n // Only this repo's own bun build/lint/typecheck applies — skip silently\n // for any other repo (e.g. a sibling Go/Python repo touched in the same session).\n const pkgPath = path.join(repoRoot, 'package.json');\n if (!fs.existsSync(pkgPath)) process.exit(0);\n let pkg;\n try {\n pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));\n } catch {\n process.exit(0);\n }\n if (pkg.name !== 'hyperframes-monorepo') process.exit(0);\n const steps = [\n ['bun run build', 'Build'],\n ['bun run lint', 'Lint'],\n ['bun run --filter \\'*\\' typecheck 2>&1 | grep -v \\'vitest\\\\|test\\\\.ts\\' || true', 'Typecheck'],\n ];\n const failures = [];\n for (const [script, label] of steps) {\n try {\n execSync(script, { cwd: repoRoot, stdio: 'pipe' });\n } catch (e) {\n failures.push(label + ':\\n' + (e.stdout?.toString() || e.message).slice(0, 400));\n }\n }\n if (failures.length > 0) {\n process.stdout.write(JSON.stringify({\n hookSpecificOutput: {\n hookEventName: 'PreToolUse',\n permissionDecision: 'deny',\n permissionDecisionReason: '❌ Pre-commit checks failed:\\n\\n' + failures.join('\\n\\n') + '\\n\\nFix the issues above, then retry the commit.',\n },\n }));\n }\n});\""
11+
"command": "node -e \"\nconst chunks = [];\nprocess.stdin.on('data', d => chunks.push(d));\nprocess.stdin.on('end', () => {\n const input = JSON.parse(Buffer.concat(chunks).toString());\n const cmd = input.tool_input?.command || '';\n if (!/git\\s+commit\\b/.test(cmd)) process.exit(0);\n const { execSync } = require('child_process');\n const fs = require('fs');\n const path = require('path');\n const os = require('os');\n // A leading 'cd <path>' in the command is the real target directory:\n // Claude Code prefixes this whenever the session's tracked cwd differs\n // from this hook process's own cwd (e.g. a sibling repo worktree) — the\n // hook process itself always inherits the primary working directory,\n // never the command's actual target.\n function resolveTargetDir() {\n const m = cmd.match(/^\\s*cd\\s+('([^']+)'|(\\S+))\\s*(?:&&|;|\\n|$)/);\n if (m) {\n let dir = m[2] || m[3];\n if (dir.startsWith('~')) dir = path.join(os.homedir(), dir.slice(1));\n dir = path.resolve(process.cwd(), dir);\n if (fs.existsSync(dir)) return dir;\n }\n return process.cwd();\n }\n const targetDir = resolveTargetDir();\n let repoRoot;\n try {\n repoRoot = execSync('git rev-parse --show-toplevel', { cwd: targetDir, encoding: 'utf8' }).trim();\n } catch {\n process.exit(0);\n }\n // Only this repo's own bun build/lint/typecheck applies — skip silently\n // for any other repo (e.g. a sibling Go/Python repo touched in the same session).\n const pkgPath = path.join(repoRoot, 'package.json');\n if (!fs.existsSync(pkgPath)) process.exit(0);\n let pkg;\n try {\n pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));\n } catch {\n process.exit(0);\n }\n if (pkg.name !== 'hyperframes-monorepo') process.exit(0);\n // Type errors in test files (vitest globals, *.test.ts) don't block a commit.\n // Filtered here, not by a shell pipe: execSync runs cmd.exe on Windows,\n // where single quotes don't quote, so a quoted pipe would split the command.\n function typeErrors(output) {\n return output\n .split('\\n')\n .filter((line) => /error TS\\d+/.test(line) && !/vitest|test\\.ts/.test(line))\n .join('\\n');\n }\n const steps = [\n ['bun run build', 'Build'],\n ['bun run lint', 'Lint'],\n ['bun run --filter=* typecheck', 'Typecheck', typeErrors],\n ];\n const failures = [];\n for (const [script, label, filter] of steps) {\n try {\n execSync(script, { cwd: repoRoot, stdio: 'pipe' });\n } catch (e) {\n const output = (e.stdout?.toString() || '') + (e.stderr?.toString() || '');\n const detail = filter ? filter(output) : e.stdout?.toString() || e.message;\n if (detail) failures.push(label + ':\\n' + detail.slice(0, 400));\n }\n }\n if (failures.length > 0) {\n process.stdout.write(JSON.stringify({\n hookSpecificOutput: {\n hookEventName: 'PreToolUse',\n permissionDecision: 'deny',\n permissionDecisionReason: '❌ Pre-commit checks failed:\\n\\n' + failures.join('\\n\\n') + '\\n\\nFix the issues above, then retry the commit.',\n },\n }));\n }\n});\""
1212
}
1313
]
1414
}

‎.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.206",
4+
"version": "0.8.210",
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.206",
6+
"version": "0.8.210",
77
"author": {
88
"name": "HeyGen",
99
"email": "[email protected]"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Fetch history
2+
description: >-
3+
Fetches this commit's ancestry and main without file contents, so the change-detection diffs run on a shallow
4+
checkout. The diffs read no other branch or tag. Needs a checkout first.
5+
runs:
6+
using: composite
7+
steps:
8+
- shell: bash
9+
run: |
10+
git fetch --no-tags --filter=blob:none --unshallow origin "$(git rev-parse HEAD)"
11+
git fetch --no-tags --filter=blob:none origin +refs/heads/main:refs/remotes/origin/main
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release-only diff
2+
description: >-
3+
Says whether a pull request changes only package and plugin versions, release notes and the changelog, so heavy suites
4+
can skip it. Main and the merge queue never skip. Needs a checkout with full history.
5+
outputs:
6+
release_only:
7+
description: "'true' when every changed file is a version bump, release note or changelog entry."
8+
value: ${{ steps.diff.outputs.release_only }}
9+
runs:
10+
using: composite
11+
steps:
12+
- id: diff
13+
shell: bash
14+
run: |
15+
if [ "${{ github.event_name }}" = pull_request ]; then
16+
node scripts/ci/release-only-diff.mjs
17+
else
18+
echo "release_only=false" >> "$GITHUB_OUTPUT"
19+
fi

‎.github/workflows/lambda-arm64-image.yml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,25 @@ concurrency:
2626
cancel-in-progress: true
2727

2828
jobs:
29+
changes:
30+
name: Detect changes
31+
runs-on: ubuntu-latest
32+
timeout-minutes: 4
33+
outputs:
34+
release_only: ${{ steps.release.outputs.release_only }}
35+
steps:
36+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
37+
with:
38+
fetch-depth: 0
39+
- name: Find a release-only diff
40+
id: release
41+
uses: ./.github/actions/release-only-diff
42+
2943
ffmpeg:
3044
name: ffmpeg ${{ matrix.copy }}
45+
needs: changes
46+
# A release PR changes versions and notes only; a failed change detection must not skip the build.
47+
if: ${{ !cancelled() && needs.changes.outputs.release_only != 'true' }}
3148
runs-on: ubuntu-24.04-arm
3249
timeout-minutes: 90
3350
strategy:

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

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,17 @@ jobs:
2121
changes:
2222
name: Detect changes
2323
runs-on: ubuntu-latest
24-
timeout-minutes: 4
24+
timeout-minutes: 8
2525
outputs:
26-
perf: ${{ steps.filter.outputs.perf }}
26+
perf: ${{ steps.release.outputs.release_only == 'true' && 'false' || steps.filter.outputs.perf }}
2727
steps:
2828
# Force git-based change detection instead of the pull_request REST API.
2929
# The API path can fail the perf workflow on transient listFiles timeouts.
30-
# A history fetch now and then stalls until the job's limit; a second fetch gets through.
31-
- id: checkout
32-
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
33-
timeout-minutes: 1
34-
continue-on-error: true
35-
with:
36-
fetch-depth: 0
37-
- if: steps.checkout.outcome != 'success'
38-
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
39-
timeout-minutes: 1
40-
with:
41-
fetch-depth: 0
30+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
31+
timeout-minutes: 3
32+
- name: Fetch the history the diffs read
33+
timeout-minutes: 2
34+
uses: ./.github/actions/fetch-history
4235
# HEAD is the PR merge ref; its first parent is the current base tip, unlike the payload's
4336
# base.sha, which goes stale and would count the base's newer commits as the PR's changes.
4437
- name: Find the pull request's current base
@@ -48,6 +41,9 @@ jobs:
4841
git rev-parse --verify -q HEAD^2 > /dev/null || { echo "::error::HEAD is not the pull request merge commit"; exit 1; }
4942
sha="$(git rev-parse --verify HEAD^1)"
5043
echo "sha=$sha" >> "$GITHUB_OUTPUT"
44+
- name: Find a release-only diff
45+
id: release
46+
uses: ./.github/actions/release-only-diff
5147
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4
5248
id: filter
5349
with:

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,25 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
24+
changes:
25+
name: Detect changes
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 4
28+
outputs:
29+
release_only: ${{ steps.release.outputs.release_only }}
30+
steps:
31+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
32+
with:
33+
fetch-depth: 0
34+
- name: Find a release-only diff
35+
id: release
36+
uses: ./.github/actions/release-only-diff
37+
2438
heavy-films:
2539
name: "Heavy films: Safari vs Chrome"
40+
needs: changes
41+
# A release PR changes versions and notes only; a failed change detection must not skip the films.
42+
if: ${{ !cancelled() && needs.changes.outputs.release_only != 'true' }}
2643
runs-on: macos-latest
2744
timeout-minutes: 45
2845
steps:

‎.github/workflows/preview-regression.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
timeout-minutes: 5
2626
outputs:
27-
preview: ${{ steps.filter.outputs.preview }}
27+
preview: ${{ steps.release.outputs.release_only == 'true' && 'false' || steps.filter.outputs.preview }}
2828
steps:
2929
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
3030
with:
@@ -38,6 +38,9 @@ jobs:
3838
git rev-parse --verify -q HEAD^2 > /dev/null || { echo "::error::HEAD is not the pull request merge commit"; exit 1; }
3939
sha="$(git rev-parse --verify HEAD^1)"
4040
echo "sha=$sha" >> "$GITHUB_OUTPUT"
41+
- name: Find a release-only diff
42+
id: release
43+
uses: ./.github/actions/release-only-diff
4144
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4
4245
id: filter
4346
with:

0 commit comments

Comments
 (0)