mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-10-30 17:27:09 +00:00
* fix(cli): a Chrome that fails to start says how it ended, and a slow start says so A failed launch only reported "Protocol error (Target.setDiscoverTargets): Target closed". It now runs the browser once more on its own with the same flags and reports its exit code (Windows codes named: missing runtime, out of memory, security software), its last stderr lines, or that it stayed up. The CLI and the engine's render launch both use it. A start slower than 5 s prints "Chrome is still starting...", and a --timeout that looks like seconds says it is milliseconds. * chore(cli): cut the Chrome launch diagnosis comments to the comment limit * fix(cli): the Chrome startup check runs Chrome as puppeteer does and can be cancelled The check started the browser with only the caller's flags, so a full Chrome ran headful and was blamed for a missing X server. It now uses puppeteer's default arguments (headless included). The check is stopped when the CLI is stopped, and the GPU probe, whose failure falls back to software anyway, skips it. * fix(cli): a Chrome launch error is never replaced by a failure to explain it The startup diagnosis asks puppeteer for its default arguments before re-running Chrome. If that call fails, its error used to replace the launch error the caller needed. The launch error is now reported as it was. The core package size budget rises to cover the new chromeStartup module (about 4.7 KB unpacked). * refactor(engine): the Chrome startup diagnosis lives in the engine, not core Both callers launch Chrome through the engine (the CLI already imports it), so the engine owns the diagnosis. Core's package size budget is back to its old value.
115 lines
3.3 KiB
JSON
115 lines
3.3 KiB
JSON
{
|
|
"name": "@hyperframes/engine",
|
|
"version": "0.8.207",
|
|
"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",
|
|
"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"
|
|
},
|
|
"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"
|
|
},
|
|
"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.8.0",
|
|
"puppeteer-core": "^25.8.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.0.10",
|
|
"@webgpu/types": "^0.1.69",
|
|
"typescript": "^5.7.2",
|
|
"vitest": "^4.1.11"
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
}
|
|
}
|