@hyperframes/producer 0.9.86 → 0.9.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compileWorker.js +3210 -0
- package/dist/distributed.js +401 -279
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/index.js +476 -353
- package/dist/public-server.js +284 -163
- package/dist/services/compileInWorker.d.ts +10 -0
- package/dist/services/compileWorker.d.ts +1 -0
- package/dist/services/distributed/chunkFrames.d.ts +1 -0
- package/dist/services/render/deferredVideoFrames.d.ts +1 -0
- package/dist/services/render/shared.d.ts +3 -3
- package/package.json +7 -7
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CompiledComposition, type CompileForRenderOptions } from "./htmlCompiler.js";
|
|
2
|
+
/**
|
|
3
|
+
* {@link compileForRender} on a worker thread. A compile that runs past its deadline ends with a
|
|
4
|
+
* {@link CompileTimeoutError}, and `options.abortSignal` ends it with the signal's reason. Either
|
|
5
|
+
* way the thread is stopped, even inside a synchronous pass, and this thread stays free meanwhile.
|
|
6
|
+
*/
|
|
7
|
+
export declare function compileForRenderInWorker(projectDir: string, htmlPath: string, downloadDir: string, options?: CompileForRenderOptions, worker?: {
|
|
8
|
+
entry?: string;
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
}): Promise<CompiledComposition>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -57,4 +57,5 @@ export declare function extractDeferredVideoFramesForChunk(input: {
|
|
|
57
57
|
cfg: Pick<EngineConfig, "ffmpegProcessTimeout">;
|
|
58
58
|
remoteSources?: PlanV2RemoteSources;
|
|
59
59
|
shownBoxes?: ReadonlyMap<string, ShownBox>;
|
|
60
|
+
onProgress?: () => void;
|
|
60
61
|
}): Promise<ExtractedFrames[]>;
|
|
@@ -24,6 +24,7 @@ export declare function extractDeferredFrames(input: {
|
|
|
24
24
|
shownBoxes?: ReadonlyMap<string, ShownBox>;
|
|
25
25
|
/** The error to throw when the extractor returns no frame for an index the video shows. */
|
|
26
26
|
onMissingFrame: (video: ExtractedFrames, index: number) => Error;
|
|
27
|
+
onProgress?: () => void;
|
|
27
28
|
}): Promise<ExtractedFrames[]>;
|
|
28
29
|
/**
|
|
29
30
|
* Fills every deferred video in place with the frames a full extraction writes, into the folder it
|
|
@@ -122,9 +122,9 @@ export declare function audioWaitReporter(job: RenderJob, onProgress: ProgressCa
|
|
|
122
122
|
/** Seconds of the final file written, 90% to 99%: only a complete file reaches 100. */
|
|
123
123
|
export declare function reportAssembleProgress(job: RenderJob, done: number, total: number, onProgress: ProgressCallback | undefined): void;
|
|
124
124
|
export declare function forgetWorkerPhases(job: object): void;
|
|
125
|
-
/** Counts a
|
|
126
|
-
export declare function
|
|
127
|
-
export declare function
|
|
125
|
+
/** Counts capture work between frames (still checks, a chunk's video frames); the stall watcher reads it. */
|
|
126
|
+
export declare function noteCaptureActivity(job: object): void;
|
|
127
|
+
export declare function captureActivity(job: object): number;
|
|
128
128
|
export declare function describeWorkerPhases(job: object): string | undefined;
|
|
129
129
|
/** Browser warm-up before the first frame, from the parallel workers' phase events. */
|
|
130
130
|
export declare function reportWorkerStartup(job: RenderJob, progress: ParallelProgress, onProgress: ProgressCallback | undefined): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/producer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.88",
|
|
4
4
|
"description": "HTML-to-video rendering engine using Chrome's BeginFrame API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"postcss": "^8.4.0",
|
|
36
36
|
"puppeteer": "~25.13.0",
|
|
37
37
|
"puppeteer-core": "^25.13.0",
|
|
38
|
-
"@hyperframes/core": "0.9.
|
|
39
|
-
"@hyperframes/
|
|
40
|
-
"@hyperframes/
|
|
41
|
-
"@hyperframes/parsers": "0.9.
|
|
42
|
-
"@hyperframes/studio-server": "0.9.
|
|
38
|
+
"@hyperframes/core": "0.9.88",
|
|
39
|
+
"@hyperframes/lint": "0.9.88",
|
|
40
|
+
"@hyperframes/engine": "0.9.88",
|
|
41
|
+
"@hyperframes/parsers": "0.9.88",
|
|
42
|
+
"@hyperframes/studio-server": "0.9.88"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^25.0.10",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"tsx": "^4.21.0",
|
|
49
49
|
"typescript": "^5.7.2",
|
|
50
50
|
"vitest": "^4.1.12",
|
|
51
|
-
"@hyperframes/aws-lambda": "0.9.
|
|
51
|
+
"@hyperframes/aws-lambda": "0.9.88"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=22"
|