mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-10-30 09:16:55 +00:00
* perf(producer): distributed chunks download only the videos they show A project video under compiled/ that chunks extract their own frames from now goes only to the chunks that show it, like video-sources/ files. A chunk skips the readiness wait for a deferred video it does not show, so it no longer logs media_load_failed for a file it was never given. * fix(producer): cloud site uploads pack the files their id hashes, symlinks included * perf(aws-lambda): chunks read only the byte ranges of a video they need A chunk that extracts its own frames from a deferred project video now reads it from S3 by byte range through a short-lived pre-signed URL, instead of downloading and hashing the whole object first. S3 attests the object's stored SHA-256 before the URL is signed; every other artifact is still downloaded and verified as before. * perf(aws-lambda): upload project files once to a shared content-addressed area * chore(producer): keep planV2 comment share at the base level * fix(engine): verify the TLS certificate of https video inputs and never surface their signed query * fix(aws-lambda): renders re-upload a site's expired files instead of failing * perf(aws-lambda): the plan step probes project videos in place instead of downloading them * fix(engine): https video reads reconnect and time out, and redaction covers wrapped causes Signed-URL reads now pass -rw_timeout, -reconnect and -reconnect_delay_max (both Lambda builds accept them) and ffmpeg also -reconnect_on_network_error, so a transient S3 error or a stalled read fails fast or recovers instead of waiting out the process timeout. Query redaction now descends into error.cause. * fix(aws-lambda): share entry bundles and ratchet package budget * fix(aws-lambda): site ids uploaded before files.json still render A site id from an earlier sites create has only sites/<id>/project.tar.gz. renderToLambda now falls back to that tarball, which the plan step still reads, and when neither key exists it fails before starting with both keys named and the fix (run sites create again). * fix(aws-lambda): renders fail before upload on a stack too old to read sites A stack deployed before files.json sites untars the site file in its plan step and fails after four retries. renderToLambda now reads the state machine definition first and stops with STACK_TOO_OLD and the redeploy command when the plan task does not list SITE_MANIFEST_INVALID, which new SAM and CDK stacks now treat as terminal. The README's upgrade section drops the planProtocol v1 fallback, which hits the same failure. * docs(aws-lambda): document shared content storage and the upgrade path The deploy guide still described the tarball HeadObject short-circuit. It now covers the cas/sha256/ store and its 30-day lifecycle rule, the STACK_TOO_OLD, SITE_FILES_MISSING and SITE_NOT_FOUND errors, that old site ids keep working, and that every project uploads once more after the upgrade. A test keeps a troubleshooting entry for each pre-submit error. * fix(producer): chunks log each video they read by URL, without its query A chunk reading a video straight from the bucket left no trace in its log. It now logs one line per remote source with the path and the URL minus its query string, so signatures never reach the log. * fix(engine): ffmpeg errors never keep part of a signed URL's query A process's stderr tail was trimmed before its URLs were redacted, so a cut inside a signed URL left a query fragment the URL pattern no longer matched, and the fragment reached the error. The stderr tail is now redacted before every trim, and the redactor also strips a signing parameter cut off from its URL. * fix(aws-lambda): comments name the site manifest instead of a file path * fix(engine): stderr redaction survives chunk splits, and every ffmpeg spawn uses it The stderr tail was redacted on each chunk and then cut, so once a cut severed a long URL's scheme, the rest of its signature in the next chunk matched neither pattern. The tail is now kept raw with 2x slack and redacted only when the text is produced, then cut to size. The unused producer audioExtractor (its own spawn, unredacted stderr) is deleted and the parity harness's PCM decode goes through ManagedChildProcess; a test fails on any ffmpeg/ffprobe spawn in engine, producer or aws-lambda that does not. * chore(producer): record the audioExtractor deletion as intended * fix(engine): drop a signature fragment the stderr tail cut from its URL The raw tail is kept at twice the cap, but that cut can itself land inside a signature, and when redaction shrinks the rest below the cap the fragment survived. After a cut, the severed token is dropped before redaction. * refactor(engine): name the severed-token drop instead of commenting it * test(engine): a cut-off URL leaves nothing behind; aws-lambda size budget to measured * fix(producer): chunk URL-read tests use main's frame list; producer size budget to measured * chore(producer): size budget at the measured size, no headroom * chore(producer): size budget back to measured x1.05, the check's own rule
110 lines
2.8 KiB
JSON
110 lines
2.8 KiB
JSON
{
|
|
"name": "@hyperframes/aws-lambda",
|
|
"version": "0.8.177",
|
|
"description": "AWS Lambda adapter for HyperFrames distributed rendering — handler, client-side SDK, and CDK construct.",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
"directory": "packages/aws-lambda"
|
|
},
|
|
"files": [
|
|
"dist/",
|
|
"scripts/",
|
|
"README.md"
|
|
],
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"bun": "./src/index.ts",
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts"
|
|
},
|
|
"./handler": {
|
|
"bun": "./src/handler.ts",
|
|
"import": "./src/handler.ts",
|
|
"types": "./src/handler.ts"
|
|
},
|
|
"./sdk": {
|
|
"bun": "./src/sdk/index.ts",
|
|
"import": "./src/sdk/index.ts",
|
|
"types": "./src/sdk/index.ts"
|
|
},
|
|
"./cdk": {
|
|
"bun": "./src/cdk/index.ts",
|
|
"import": "./src/cdk/index.ts",
|
|
"types": "./src/cdk/index.ts"
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./handler": {
|
|
"import": "./dist/handler.js",
|
|
"types": "./dist/handler.d.ts"
|
|
},
|
|
"./sdk": {
|
|
"import": "./dist/sdk/index.js",
|
|
"types": "./dist/sdk/index.d.ts"
|
|
},
|
|
"./cdk": {
|
|
"import": "./dist/cdk/index.js",
|
|
"types": "./dist/cdk/index.d.ts"
|
|
}
|
|
},
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"scripts": {
|
|
"build": "node build.mjs",
|
|
"build:zip": "tsx scripts/build-zip.ts",
|
|
"probe:beginframe": "tsx scripts/probe-beginframe.ts",
|
|
"probe:beginframe:docker": "docker build -f scripts/probe-beginframe.dockerfile -t hyperframes-lambda-probe:local ../.. && docker run --rm hyperframes-lambda-probe:local",
|
|
"test": "bun test",
|
|
"typecheck": "tsc --noEmit",
|
|
"verify:zip-size": "tsx scripts/verify-zip-size.ts"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-lambda": "^3.1146.0",
|
|
"@aws-sdk/client-s3": "^3.1146.0",
|
|
"@aws-sdk/client-sfn": "^3.1146.0",
|
|
"@aws-sdk/s3-request-presigner": "3.1146.0",
|
|
"@hyperframes/producer": "workspace:^",
|
|
"@sparticuz/chromium": "148.0.0",
|
|
"ffmpeg-static": "^5.2.0",
|
|
"ffprobe-static": "^3.1.0",
|
|
"puppeteer-core": "^25.8.0",
|
|
"tar": "^7.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/aws-lambda": "^8.10.146",
|
|
"@types/node": "^25.0.10",
|
|
"@types/tar": "^6.1.13",
|
|
"aws-cdk-lib": "^2.130.0",
|
|
"constructs": "^10.3.0",
|
|
"esbuild": "^0.25.12",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.7.2",
|
|
"yaml": "^2.9.0"
|
|
},
|
|
"peerDependencies": {
|
|
"aws-cdk-lib": "^2.130.0",
|
|
"constructs": "^10.3.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"aws-cdk-lib": {
|
|
"optional": true
|
|
},
|
|
"constructs": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
}
|
|
}
|