@hyperframes/producer 0.9.99 → 0.9.101

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.
@@ -0,0 +1,34 @@
1
+ import type { Page } from "puppeteer-core";
2
+ import type { ProducerLogger } from "../../../logger.js";
3
+ export declare const RUNTIME_AUDIO_SUBDIR = "__hf_runtime_audio";
4
+ interface AudioSrcTarget {
5
+ id: string;
6
+ src: string;
7
+ }
8
+ interface InlineAudioLimits {
9
+ maxPerClipBytes?: number;
10
+ maxTotalBytes?: number;
11
+ }
12
+ /**
13
+ * Fetches same-origin `blob:` audio URLs while the probe page is still open and writes them under
14
+ * `compiledDir/__hf_runtime_audio/` so Node's audio mixer can read them on disk.
15
+ */
16
+ export declare function materializeBlobAudioSources(input: {
17
+ page: Page;
18
+ fileServerUrl: string;
19
+ audios: AudioSrcTarget[];
20
+ compiledDir: string;
21
+ log?: ProducerLogger;
22
+ assertNotAborted?: () => void;
23
+ limits?: InlineAudioLimits;
24
+ }): Promise<void>;
25
+ /**
26
+ * Decodes inline `data:` audio URIs into `compiledDir/__hf_runtime_audio/` so FFmpeg can read them.
27
+ */
28
+ export declare function materializeDataAudioSources(input: {
29
+ audios: AudioSrcTarget[];
30
+ compiledDir: string;
31
+ log?: ProducerLogger;
32
+ limits?: InlineAudioLimits;
33
+ }): void;
34
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/producer",
3
- "version": "0.9.99",
3
+ "version": "0.9.101",
4
4
  "description": "HTML-to-video rendering engine using Chrome's BeginFrame API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,12 +35,12 @@
35
35
  "postcss": "^8.4.0",
36
36
  "puppeteer": "~25.13.0",
37
37
  "puppeteer-core": "^25.13.0",
38
- "@hyperframes/core": "0.9.99",
39
- "@hyperframes/parsers": "0.9.99",
40
- "@hyperframes/lint": "0.9.99",
41
- "@hyperframes/share": "0.9.99",
42
- "@hyperframes/studio-server": "0.9.99",
43
- "@hyperframes/engine": "0.9.99"
38
+ "@hyperframes/core": "0.9.101",
39
+ "@hyperframes/engine": "0.9.101",
40
+ "@hyperframes/lint": "0.9.101",
41
+ "@hyperframes/parsers": "0.9.101",
42
+ "@hyperframes/studio-server": "0.9.101",
43
+ "@hyperframes/share": "0.9.101"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^25.0.10",
@@ -49,7 +49,7 @@
49
49
  "tsx": "^4.21.0",
50
50
  "typescript": "^5.7.2",
51
51
  "vitest": "^4.1.12",
52
- "@hyperframes/aws-lambda": "0.9.99"
52
+ "@hyperframes/aws-lambda": "0.9.101"
53
53
  },
54
54
  "engines": {
55
55
  "node": ">=22"