mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* test(engine): pixel invariants for capture blur against blur off Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(engine): fixtures for every capture blur failure class seen so far Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(engine): nested canvas fixture reproduces #6975, sharp-tile fixtures have no moving times Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(engine): capture blur must match blur off outside the trail and the shutter average inside it Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(engine): differential tests pin known bugs by symptom, history test checks the reference frame Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(engine): a playing preview keeps changing with blur on Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(producer): a multi-worker blur render must match blur off outside the trail Renders five blur fixtures through the real producer as a PNG sequence with 4 workers (contiguous blocks, three of them starting mid-film, the #6967 condition): blur off twice, blur on once. Outside the trail of everything that moved, blur on must equal blur off in every frame with two neighbours. The callbacks and scroll-list known differences are pinned by symptom. Import route: a relative import of blurDifferential.ts, fixtures.ts and thresholds.ts from packages/engine/src/services/__fixtures__. The producer tsconfig excludes test files, so I type-checked the file with a temporary tsconfig (rootDir widened); no error. No package subpath was needed. RENDER_OUTSIDE_MAX_MAE: render noise is 0 (blur off, twice, bit-identical), the rewind mutation measured 111.085 when caught, so the 1.0 floor applies. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(producer): render callbacks with workers that start between its calls With 4 workers the blocks started at 0, 15, 30, 45, each on a call, so the rewind mutation showed in a render only 3 times in 5. Seven workers over 60 frames start at 0, 9, 18, 27, 36, 45 and 54, two of them strictly between the calls at frames 16 and 30; the mutation then fails callbacks in 8 of 8 runs (worst MAE 97.02), the clean build in none. A new case checks the partition with distributeFrames. The #list and #label rects now come from the fixture's markup, and MEASURED_RENDER_REWIND_MUTATION is 97.02. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(engine): blur pins bound the symptom, liveness detector reports blindness, fixtures time out Pinned known bugs now require every bad tile inside the pinned region and a worst MAE within half to double of the measured one. tileTouches, Rect and the band check move into blurDifferential.ts with a dpr 2 unit test. The blank-frame census counts canvases it cannot read and asserts none, and names both readings when no blank frame is seen. No console.info on passing runs. Fixtures cases get a 30 s timeout. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(producer): scroll-list render case bounds the race, pins share the engine helpers The scroll-list loss depends on timing per worker block, so the case now requires frames 2..27 clean and any later bad tile inside #list, without requiring the loss. The callbacks pin keeps requiring its symptom, bounds it to the label and to half to double of its measured size, and its message names the entry to delete. Wording says multi-worker, not 4-worker. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * build(engine): keep the blur test helpers out of the published tarball Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(engine): print the worst outside tile of each arm to explain the CI text diff Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test: both arms draw grayscale text so host subpixel settings are not read as blur Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(producer): run the multi-worker blur render alone so it cannot skew other Chrome tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test: re-pin the producer lane runner after splitting out the heavy blur render Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(engine): read the blank-frame pin from a wrap observer, not an animation frame poll The pin sampled in requestAnimationFrame, so it could miss the gap between the wrap and the first draw. A MutationObserver now reads the output canvas the moment the root is wrapped, which is deterministic, and every fixture must report a wrapped root. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(engine): drop the blurs field no fixture could set to false Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * ci: give the flake gate 60 minutes, it budgets runs by file count not time Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
127 lines
3.7 KiB
JSON
127 lines
3.7 KiB
JSON
{
|
|
"name": "@hyperframes/engine",
|
|
"version": "0.9.12",
|
|
"description": "Seekable web page to video rendering engine (Puppeteer + FFmpeg)",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
"directory": "packages/engine"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"!dist/services/__fixtures__/blurDifferential.*",
|
|
"!dist/services/__fixtures__/motionBlur",
|
|
"README.md"
|
|
],
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"bun": "./src/index.ts",
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts"
|
|
},
|
|
"./alpha-blit": {
|
|
"bun": "./src/utils/alphaBlit.ts",
|
|
"import": "./src/utils/alphaBlit.ts",
|
|
"types": "./src/utils/alphaBlit.ts"
|
|
},
|
|
"./chrome-host-ceiling": {
|
|
"bun": "./src/services/chromeHostCeiling.ts",
|
|
"import": "./src/services/chromeHostCeiling.ts",
|
|
"types": "./src/services/chromeHostCeiling.ts"
|
|
},
|
|
"./chrome-startup": {
|
|
"bun": "./src/services/chromeStartup.ts",
|
|
"import": "./src/services/chromeStartup.ts",
|
|
"types": "./src/services/chromeStartup.ts"
|
|
},
|
|
"./system-memory": {
|
|
"bun": "./src/services/systemMemory.ts",
|
|
"import": "./src/services/systemMemory.ts",
|
|
"types": "./src/services/systemMemory.ts"
|
|
},
|
|
"./wsl-host": {
|
|
"bun": "./src/services/wslHost.ts",
|
|
"import": "./src/services/wslHost.ts",
|
|
"types": "./src/services/wslHost.ts"
|
|
},
|
|
"./shader-transitions": {
|
|
"bun": "./src/utils/shaderTransitions.ts",
|
|
"import": "./src/utils/shaderTransitions.ts",
|
|
"types": "./src/utils/shaderTransitions.ts"
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./network-policy": {
|
|
"bun": "./src/utils/networkPolicy.ts",
|
|
"import": "./src/utils/networkPolicy.ts",
|
|
"types": "./src/utils/networkPolicy.ts"
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./alpha-blit": {
|
|
"import": "./dist/utils/alphaBlit.js",
|
|
"types": "./dist/utils/alphaBlit.d.ts"
|
|
},
|
|
"./chrome-host-ceiling": {
|
|
"import": "./dist/services/chromeHostCeiling.js",
|
|
"types": "./dist/services/chromeHostCeiling.d.ts"
|
|
},
|
|
"./chrome-startup": {
|
|
"import": "./dist/services/chromeStartup.js",
|
|
"types": "./dist/services/chromeStartup.d.ts"
|
|
},
|
|
"./system-memory": {
|
|
"import": "./dist/services/systemMemory.js",
|
|
"types": "./dist/services/systemMemory.d.ts"
|
|
},
|
|
"./wsl-host": {
|
|
"import": "./dist/services/wslHost.js",
|
|
"types": "./dist/services/wslHost.d.ts"
|
|
},
|
|
"./shader-transitions": {
|
|
"import": "./dist/utils/shaderTransitions.js",
|
|
"types": "./dist/utils/shaderTransitions.d.ts"
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./network-policy": {
|
|
"import": "./dist/utils/networkPolicy.js",
|
|
"types": "./dist/utils/networkPolicy.d.ts"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc && node ../../scripts/rewrite-relative-import-extensions.mjs dist",
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@hono/node-server": "^2.0.5",
|
|
"@hyperframes/core": "workspace:^",
|
|
"@hyperframes/parsers": "workspace:^",
|
|
"hono": "^4.6.0",
|
|
"linkedom": "^0.18.12",
|
|
"puppeteer": "~25.11.0",
|
|
"puppeteer-core": "^25.11.0",
|
|
"undici": "7.25.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.0.10",
|
|
"@webgpu/types": "^0.1.69",
|
|
"typescript": "^5.7.2",
|
|
"vitest": "^4.1.11"
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
}
|
|
}
|