@hyperframes/producer 0.9.56 → 0.9.59
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/distributed.js +112 -44
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframeLintWorker.js +9 -0
- package/dist/index.js +251 -58
- package/dist/logger.d.ts +1 -1
- package/dist/public-server.js +244 -55
- package/dist/services/assetMediaType.d.ts +1 -1
- package/dist/services/htmlCompiler.d.ts +1 -0
- package/dist/services/hyperframeLint.d.ts +8 -2
- package/dist/services/hyperframeLintWorker.d.ts +1 -0
- package/dist/services/render/shared.d.ts +7 -0
- package/dist/services/render/stages/audioStage.d.ts +1 -0
- package/dist/services/render/stages/probeStage.d.ts +4 -2
- package/package.json +7 -7
|
@@ -24,7 +24,7 @@ interface CompositionMediaAssets {
|
|
|
24
24
|
images: readonly ImageElement[];
|
|
25
25
|
}
|
|
26
26
|
export declare function mediaAssetRoots(projectDir: string, compiledDir: string): string[];
|
|
27
|
-
/** Treats local media outside the project, compiled and download dirs as missing:
|
|
27
|
+
/** Treats local media outside the project, compiled and download dirs, or private there, as missing: none is opened. */
|
|
28
28
|
export declare function dropMediaOutsideProject(input: {
|
|
29
29
|
projectDir: string;
|
|
30
30
|
workDir: string;
|
|
@@ -12,6 +12,7 @@ export interface CompiledComposition {
|
|
|
12
12
|
gradedCanvas: boolean;
|
|
13
13
|
masterFxChain?: string;
|
|
14
14
|
unresolvedCompositions: UnresolvedElement[];
|
|
15
|
+
variablesByComp: Record<string, Record<string, unknown>>;
|
|
15
16
|
/** Assets that resolve outside projectDir. Keys are the path used in HTML, values are absolute filesystem paths. */
|
|
16
17
|
externalAssets: Map<string, string>;
|
|
17
18
|
width: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { HyperframeLintResult } from "@hyperframes/lint";
|
|
2
2
|
export interface PreparedHyperframeLintInput {
|
|
3
3
|
entryFile: string;
|
|
4
4
|
html: string;
|
|
@@ -9,4 +9,10 @@ export declare function prepareHyperframeLintBody(body: Record<string, unknown>,
|
|
|
9
9
|
} | {
|
|
10
10
|
error: string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export interface HyperframeLintWorkerOptions {
|
|
13
|
+
workerEntry?: string;
|
|
14
|
+
timeoutMs?: number;
|
|
15
|
+
heapMb?: number;
|
|
16
|
+
maxWorkers?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare function runHyperframeLint(prepared: PreparedHyperframeLintInput, options?: HyperframeLintWorkerOptions): Promise<HyperframeLintResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -112,6 +112,13 @@ export declare function reportFrameProgress(job: RenderJob, stage: string, progr
|
|
|
112
112
|
export declare function reportExtractProgress(job: RenderJob, done: number, total: number, onProgress: ProgressCallback | undefined): void;
|
|
113
113
|
/** Frames ffmpeg has encoded, from where capture left the bar up to 90%; same cadence as capture. */
|
|
114
114
|
export declare function reportEncodeProgress(job: RenderJob, done: number, total: number, onProgress: ProgressCallback | undefined, from: number): void;
|
|
115
|
+
export declare const AUDIO_STAGE = "Processing audio tracks";
|
|
116
|
+
/** Once capture waits on the audio mix: a line at most every 5 s in which an FFmpeg of the mix wrote more, so whoever
|
|
117
|
+
* watches the render for silence hears it working, and a mix that writes nothing stays silent. */
|
|
118
|
+
export declare function audioWaitReporter(job: RenderJob, onProgress: ProgressCallback | undefined): {
|
|
119
|
+
progressed(): void;
|
|
120
|
+
wait<T>(audio: Promise<T>): Promise<T>;
|
|
121
|
+
};
|
|
115
122
|
/** Seconds of the final file written, 90% to 99%: only a complete file reaches 100. */
|
|
116
123
|
export declare function reportAssembleProgress(job: RenderJob, done: number, total: number, onProgress: ProgressCallback | undefined): void;
|
|
117
124
|
export declare function forgetWorkerPhases(job: object): void;
|
|
@@ -44,6 +44,7 @@ export interface AudioStageInput {
|
|
|
44
44
|
log?: ProducerLogger;
|
|
45
45
|
/** Leave the delivered PCM in `workDir` for the assemble stage; its owner removes the dir. */
|
|
46
46
|
keepDeliverySource?: boolean;
|
|
47
|
+
onFfmpegProgress?: () => void;
|
|
47
48
|
}
|
|
48
49
|
export interface AudioStageResult {
|
|
49
50
|
/** Actual delivery attenuation, for the render warning and metadata. */
|
|
@@ -92,11 +92,12 @@ export declare function hasScriptedAudioVolumeAutomation(html: string, audioCoun
|
|
|
92
92
|
* comment or prose that merely mentions the attribute (issue #1938).
|
|
93
93
|
*/
|
|
94
94
|
export declare function hasAutoStartVideos(html: string): boolean;
|
|
95
|
+
type VariablesByComp = Record<string, Record<string, unknown>>;
|
|
95
96
|
/**
|
|
96
97
|
* Variable-bound sources are resolved by the browser runtime, not the static compiler. Probe them whenever the
|
|
97
|
-
* element's variable has a value (the render's, its mount's
|
|
98
|
+
* element's variable has a value (the render's, its scope's compiled table entry, its mount's, a declared default).
|
|
98
99
|
*/
|
|
99
|
-
export declare function hasVariableBoundMedia(html: string, variables: Record<string, unknown> | undefined): boolean;
|
|
100
|
+
export declare function hasVariableBoundMedia(html: string, variables: Record<string, unknown> | undefined, variablesByComp?: VariablesByComp): boolean;
|
|
100
101
|
/** Reported `strictVariables`: undefined if not asked; true if checked or nothing needed checking; else false. */
|
|
101
102
|
export declare function strictVariablesAttestation(config: RenderConfig, probeSession: CaptureSession | null): boolean | undefined;
|
|
102
103
|
/**
|
|
@@ -143,3 +144,4 @@ export declare function pruneMutedBrowserMedia(composition: {
|
|
|
143
144
|
tagName: string;
|
|
144
145
|
muted?: boolean;
|
|
145
146
|
}[], existingAudioIds?: Set<string>): void;
|
|
147
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/producer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.59",
|
|
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/lint": "0.9.
|
|
39
|
-
"@hyperframes/core": "0.9.
|
|
40
|
-
"@hyperframes/
|
|
41
|
-
"@hyperframes/
|
|
42
|
-
"@hyperframes/
|
|
38
|
+
"@hyperframes/lint": "0.9.59",
|
|
39
|
+
"@hyperframes/core": "0.9.59",
|
|
40
|
+
"@hyperframes/engine": "0.9.59",
|
|
41
|
+
"@hyperframes/parsers": "0.9.59",
|
|
42
|
+
"@hyperframes/studio-server": "0.9.59"
|
|
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.59"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=22"
|