mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
* feat(core): give the preview parent a typed editing port to prepare for an opaque frame Studio reads the preview frame's window and document directly, which stops working once the preview runs in an opaque origin. This adds the runtime half of the replacement, with no Studio consumer changed yet: - runtime/editingPort.ts: a versioned request/reply protocol, a validator that turns any bad request into a typed error, and a promise-based parent client with request ids, timeouts and dispose. Exported as @hyperframes/core/runtime/editing-port. - runtime/editingAgent.ts: on the parent's connect, the runtime hands window.parent a MessagePort once and answers hello, runtime-snapshot, wait-for-seek and set-loop-start on it. A connect from anything but the parent is ignored and does not use up the handoff. Playback transport stays on the existing control protocol. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(core): type the handed-off port under the runtime's strict index checks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(core): emit the editing-port module so the published subpath resolves Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(producer): raise the packed size budget for the runtime's editing agent The producer ships the preview runtime, which now carries the editing agent and its request validator. The packed tarball measured 878,763 bytes in CI against an 870,000 budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
962 B
JSON
40 lines
962 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"strict": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"declaration": true,
|
|
"outDir": "./dist",
|
|
"rootDir": "./src"
|
|
},
|
|
"files": [
|
|
"src/runtime/clipTree.ts",
|
|
"src/runtime/clipReveal.ts",
|
|
"src/runtime/compositionLength.ts",
|
|
"src/runtime/customEase.ts",
|
|
"src/runtime/mediaVolumeEnvelope.ts",
|
|
"src/runtime/mediaSteer.ts",
|
|
"src/runtime/positionEdits.ts",
|
|
"src/runtime/protocol.ts",
|
|
"src/runtime/editingPort.ts",
|
|
"src/runtime/stackingContext.ts",
|
|
"src/runtime/webAudioRoute.ts",
|
|
"src/runtime/levelTap.ts",
|
|
"src/runtime/wiggleEase.ts"
|
|
],
|
|
"include": ["src/**/*"],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist",
|
|
"src/tests",
|
|
"src/runtime",
|
|
"**/*.test.ts",
|
|
"**/*.test-helpers.ts",
|
|
"src/parsers/test-utils.ts"
|
|
]
|
|
}
|