@hyperframes/producer 0.9.69 → 0.9.70
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 +69 -56
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +66 -66
- package/dist/index.js +304 -258
- package/dist/public-server.js +193 -149
- package/dist/services/render/audioPadTrim.d.ts +2 -1
- package/dist/services/render/segmentManifest.d.ts +3 -4
- package/dist/services/renderOrchestrator.d.ts +1 -1
- package/package.json +7 -7
|
@@ -38,6 +38,7 @@ export interface AudioProbeInfo {
|
|
|
38
38
|
audioCodec?: string;
|
|
39
39
|
}
|
|
40
40
|
export interface PadTrimAudioInput {
|
|
41
|
+
audioContainer?: "mov";
|
|
41
42
|
/** Path to the assembled video. Used to derive `frameCount / fps`. */
|
|
42
43
|
videoPath: string;
|
|
43
44
|
/** Path to the pre-mixed audio (typically `<planDir>/audio.m4a`). */
|
|
@@ -138,6 +139,6 @@ export declare function constrainAacTruePeak(input: {
|
|
|
138
139
|
}>;
|
|
139
140
|
/** Writes `sourcePath` through `filter` to `outputPath` as float PCM. */
|
|
140
141
|
type SourceRewriter = (sourcePath: string, outputPath: string, filter: string) => Promise<StepResult>;
|
|
141
|
-
export declare function defaultProbeVideoFrameInfo(videoPath: string, signal?: AbortSignal): Promise<ProbeVideoFrameInfo>;
|
|
142
|
+
export declare function defaultProbeVideoFrameInfo(videoPath: string, signal?: AbortSignal, container?: "mov" | "matroska"): Promise<ProbeVideoFrameInfo>;
|
|
142
143
|
export declare function runFfprobeJson<T>(args: string[], signal?: AbortSignal): Promise<T>;
|
|
143
144
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type SegmentSlice } from "./segmentPlan.js";
|
|
2
1
|
export interface SegmentManifestEntry {
|
|
3
2
|
index: number;
|
|
4
3
|
startFrame: number;
|
|
@@ -50,7 +49,7 @@ export interface SegmentPlanHashInput {
|
|
|
50
49
|
}
|
|
51
50
|
/** Everything that determines segment bytes. Key order is fixed by construction. */
|
|
52
51
|
export declare function computeSegmentPlanHash(input: SegmentPlanHashInput): string;
|
|
53
|
-
export declare function segmentDirFor(
|
|
52
|
+
export declare function segmentDirFor(projectDir: string, planHash: string): string;
|
|
54
53
|
export declare function readSegmentManifest(segmentDir: string): SegmentManifest | null;
|
|
55
54
|
/**
|
|
56
55
|
* The key that signs segment manifests, derived from this user's preview token, which lives in the
|
|
@@ -75,8 +74,8 @@ export declare function probeSegmentFrameCount(path: string, probe: (path: strin
|
|
|
75
74
|
export interface SegmentResumeCheck {
|
|
76
75
|
expectedHash: string;
|
|
77
76
|
segmentDir: string;
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
totalFrames: number;
|
|
78
|
+
segmentFrames: number;
|
|
80
79
|
key: Buffer | null;
|
|
81
80
|
probeFrames: (path: string) => Promise<number | null>;
|
|
82
81
|
}
|
|
@@ -30,7 +30,7 @@ export interface RenderConfig {
|
|
|
30
30
|
quality: "draft" | "standard" | "high";
|
|
31
31
|
/** Segmented capture: reuse segments recorded in a matching manifest (Phase 2b). */
|
|
32
32
|
resumeSegments?: boolean;
|
|
33
|
-
/** Segmented capture: keep
|
|
33
|
+
/** Segmented capture: keep the local segment cache after a successful render. */
|
|
34
34
|
keepSegments?: boolean;
|
|
35
35
|
/**
|
|
36
36
|
* Output container format. Defaults to `"mp4"`; set explicitly for other formats.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/producer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.70",
|
|
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.70",
|
|
39
|
+
"@hyperframes/lint": "0.9.70",
|
|
40
|
+
"@hyperframes/engine": "0.9.70",
|
|
41
|
+
"@hyperframes/parsers": "0.9.70",
|
|
42
|
+
"@hyperframes/studio-server": "0.9.70"
|
|
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.70"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=22"
|