mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-10-30 09:16:55 +00:00
* feat(cli): lambda deploy works from the npm install, no repo checkout Each release builds the Lambda handler zip on Linux, attaches it to the GitHub release, and pins its URL and sha256 (plus the SAM template) in @hyperframes/aws-lambda before npm publish. Outside a checkout, lambda deploy downloads that zip, refuses it on a sha256 mismatch, and deploys it with the packaged template. With neither a checkout nor a pinned zip it fails up front with one message naming every way out. * fix(cli): lambda deploy test mocks the pinned-handler reader, comments fit the checks * test(cli): sam tests deploy from a SAM directory, not the repo root * chore(aws-lambda): raise the package size budget for the pinned handler template Measured with pnpm@10.17.1 pack on Linux. Release state (prebuilt/ written by pin-handler-zip): 77,307 packed / 285,654 unpacked. CI state (no prebuilt/): 70,104 / 253,390. Packed is the check's 5% headroom over the release size. Unpacked is 292,000 (2.2% over release) because a 5% budget would put the CI pack under the 85% ratchet. * test(cli): anchor the docs link check in the lambda deploy fallback test * fix(cli): lambda deploy logs the verified handler sha256 and keeps a presigned query out of errors * fix(cli): a redirect-limit download error keeps a signed query out of its message * test(cli): the redirect-limit leak test types its rejection * docs(aws-lambda): header comments cut to what the code cannot say * chore(aws-lambda): size budget fits both the CI and the release package
111 lines
2.9 KiB
JSON
111 lines
2.9 KiB
JSON
{
|
|
"name": "@hyperframes/aws-lambda",
|
|
"version": "0.8.178",
|
|
"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/",
|
|
"prebuilt/",
|
|
"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"
|
|
}
|
|
}
|