hyperframes 0.8.148 → 0.8.150

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.
Files changed (185) hide show
  1. package/dist/{add-JAHZJYB7.js → add-3ZIFEN2U.js} +19 -19
  2. package/dist/{animatedGifPrep-HV4ZFVPV.js → animatedGifPrep-77LPFLKJ.js} +6 -6
  3. package/dist/api.d.ts +209 -0
  4. package/dist/api.js +75 -0
  5. package/dist/{asset-SJA7DT6Q.js → asset-EYSZEHM6.js} +3 -3
  6. package/dist/{assetCataloger-JJQ4JW2P.js → assetCataloger-KX3HD7ZI.js} +3 -3
  7. package/dist/{auth-RR3OIXLH.js → auth-L6IWNRXY.js} +4 -4
  8. package/dist/{autoUpdate-KLDV2XWV.js → autoUpdate-2O3HZB65.js} +2 -2
  9. package/dist/{backgroundChecks-OVL3E2RK.js → backgroundChecks-BH2LMJYE.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-2SAJGOHU.js → batchRender-ZBKAYLWU.js} +7 -7
  12. package/dist/{beats-HTYS42CC.js → beats-IVLF2566.js} +22 -22
  13. package/dist/{benchmark-CAHP4GLB.js → benchmark-SYZFW2G7.js} +19 -19
  14. package/dist/{browser-M7I67IGX.js → browser-OSW3L25S.js} +14 -13
  15. package/dist/{bundleWithLocalizedFonts-EKRXJBXU.js → bundleWithLocalizedFonts-I4CWOXLK.js} +5 -5
  16. package/dist/{capture-P5SNZ6HL.js → capture-AZOQ57TM.js} +2 -2
  17. package/dist/{capture-YZQZ5LKM.js → capture-V5ICGSVJ.js} +20 -20
  18. package/dist/{catalog-LREZPRJS.js → catalog-VBJOA2Y5.js} +35 -35
  19. package/dist/{catch-up-2MLRYAYP.js → catch-up-TKSEDNJK.js} +13 -13
  20. package/dist/{check-BH6NUR22.js → check-3HFISKDB.js} +50 -50
  21. package/dist/{checkBrowser-BM6JBFST.js → checkBrowser-MXBDNZJB.js} +38 -38
  22. package/dist/chunk-2KAL22B5.js +26 -0
  23. package/dist/{chunk-X2G54Y2V.js → chunk-3UAIVF4L.js} +4 -4
  24. package/dist/{chunk-KQHJKJ3V.js → chunk-423DJVX2.js} +1 -1
  25. package/dist/{chunk-UTBQSOEC.js → chunk-4WFNTWKZ.js} +3 -3
  26. package/dist/{chunk-VC7JBNPS.js → chunk-5NAYNDBT.js} +477 -68
  27. package/dist/{chunk-QX26JK43.js → chunk-6KWA3XPS.js} +10 -10
  28. package/dist/{chunk-AY2BONTF.js → chunk-6NPFJ255.js} +1 -1
  29. package/dist/{chunk-ZK3BQXHC.js → chunk-6QB7F2II.js} +1 -1
  30. package/dist/{chunk-54TV77W5.js → chunk-6SFPQ2RZ.js} +6 -8
  31. package/dist/{chunk-YQK445YQ.js → chunk-73RBX2E7.js} +2 -2
  32. package/dist/chunk-7E4VHPKJ.js +329 -0
  33. package/dist/{chunk-A6S35NYA.js → chunk-7IEGPJ4P.js} +1 -1
  34. package/dist/{chunk-NT7EK6ET.js → chunk-7JTFPUMA.js} +1 -1
  35. package/dist/{chunk-VHJPGKUW.js → chunk-A6ZO4BX7.js} +2 -2
  36. package/dist/{chunk-ASEJ2FBO.js → chunk-AFRXL75S.js} +1 -1
  37. package/dist/{chunk-QIJLIULK.js → chunk-AKYQGZLU.js} +2 -2
  38. package/dist/{chunk-4S4VUXW3.js → chunk-AXPNVC3N.js} +1 -1
  39. package/dist/{chunk-A4Q7W4LV.js → chunk-B3XLIBFL.js} +4 -2
  40. package/dist/{chunk-PR7QQBSC.js → chunk-BLRJKBKP.js} +1 -1
  41. package/dist/chunk-CEND6BLF.js +3795 -0
  42. package/dist/{chunk-KVGDFUVO.js → chunk-CZQLCBWY.js} +26 -13
  43. package/dist/{chunk-6IIGT7BX.js → chunk-DNZMBQTH.js} +1 -1
  44. package/dist/{chunk-ELACLQPC.js → chunk-DOVJRUFM.js} +1 -1
  45. package/dist/{chunk-SYUGVPYH.js → chunk-DUUFDLC4.js} +1 -1
  46. package/dist/{chunk-KMJLHHBF.js → chunk-EL5QVJEG.js} +1 -1
  47. package/dist/{chunk-JN4EK6MC.js → chunk-F2RLIE7P.js} +17 -17
  48. package/dist/{chunk-TLGJRK6Q.js → chunk-FN6KAS7A.js} +10 -10
  49. package/dist/{chunk-24GKVAEE.js → chunk-FPAT5HTI.js} +15 -15
  50. package/dist/chunk-HU2SPFNG.js +103 -0
  51. package/dist/{chunk-KQESKXAC.js → chunk-I6DATIHC.js} +2 -2
  52. package/dist/{chunk-4OA4LDTU.js → chunk-IYLHJV34.js} +1 -1
  53. package/dist/{chunk-KBB4RG6F.js → chunk-JZIEZCQM.js} +9 -2
  54. package/dist/chunk-KGPLIH7B.js +127 -0
  55. package/dist/{chunk-B4P5VDFQ.js → chunk-KMAAOHLO.js} +1 -1
  56. package/dist/chunk-LW5VFBSY.js +56 -0
  57. package/dist/{chunk-66SAATRI.js → chunk-M5B42RL5.js} +9 -9
  58. package/dist/{chunk-Q2Y5OZCY.js → chunk-M6UDJ2E7.js} +2 -2
  59. package/dist/{chunk-URYAKNQ2.js → chunk-NFQY7EIC.js} +1 -1
  60. package/dist/{chunk-S7E2I3HT.js → chunk-O4DC5CHF.js} +1 -1
  61. package/dist/{chunk-K35E45SI.js → chunk-OQ7XMM3S.js} +1 -1
  62. package/dist/{chunk-AHBYQRGI.js → chunk-PCWOSS7G.js} +1 -1
  63. package/dist/{chunk-BHVFTYSI.js → chunk-PO2SDVQA.js} +4 -1
  64. package/dist/{chunk-K4RIT6PX.js → chunk-R5A7454P.js} +2 -2
  65. package/dist/{chunk-VXM4BH23.js → chunk-RW7NLGPD.js} +121 -47
  66. package/dist/{chunk-BB3HJLHD.js → chunk-S5F26DUL.js} +3 -3
  67. package/dist/{chunk-OLENCLFE.js → chunk-TZPZE5PS.js} +81 -8
  68. package/dist/{chunk-74JDPWQ3.js → chunk-UAIUVPZE.js} +9 -9
  69. package/dist/{chunk-XIL7KT5Q.js → chunk-UJB7356Y.js} +6 -6
  70. package/dist/{chunk-YA62XGXS.js → chunk-UJKQWGFF.js} +1 -1
  71. package/dist/{chunk-O3EALI4M.js → chunk-UQYQ7TBA.js} +4 -4
  72. package/dist/{chunk-C24LU5XD.js → chunk-UVVI2NJQ.js} +12 -12
  73. package/dist/{normalize-U3SL5VG3.js → chunk-VHZ6DL3M.js} +3 -3
  74. package/dist/{chunk-CNEYCO24.js → chunk-VQ7YIURZ.js} +13 -13
  75. package/dist/{chunk-62RUQJ5J.js → chunk-WLIUULZQ.js} +20 -8
  76. package/dist/{chunk-RKBES4XP.js → chunk-XANZ4R4P.js} +88 -28
  77. package/dist/{chunk-BYSBRF24.js → chunk-XPQSL5VS.js} +5 -120
  78. package/dist/{chunk-SP6XL3NP.js → chunk-XQMEGSHG.js} +1 -1
  79. package/dist/{chunk-ZFN6GQU4.js → chunk-XXPYZBZ3.js} +1 -1
  80. package/dist/{chunk-4SFGME7K.js → chunk-YJDB4FLT.js} +1 -1
  81. package/dist/{chunk-QATWIE4K.js → chunk-YU2QRNWN.js} +2 -2
  82. package/dist/{chunk-6VKQ5JT3.js → chunk-Z6WZDGCS.js} +2 -2
  83. package/dist/{chunk-2HWB4TCI.js → chunk-ZNHAJCEA.js} +1 -1
  84. package/dist/{clean-K7GYTLQE.js → clean-7HU7S7DT.js} +34 -33
  85. package/dist/cli.js +55 -55
  86. package/dist/{cloud-I3J5HTN7.js → cloud-HAXHBO25.js} +4 -4
  87. package/dist/{cloudrun-MJQ363PB.js → cloudrun-A3PIJ6DX.js} +7 -7
  88. package/dist/{compare-LHW6NEFR.js → compare-6IPSQMSM.js} +37 -37
  89. package/dist/{compiler-NPD3MYMO.js → compiler-UQP2VXN6.js} +3 -3
  90. package/dist/{component-LTPK2D3K.js → component-FF3AU24M.js} +4 -4
  91. package/dist/{compositions-QGEHXGIL.js → compositions-JSH4MZXB.js} +20 -20
  92. package/dist/{delete-ATNRBUDJ.js → delete-G763SW64.js} +11 -11
  93. package/dist/{dist-CUIR3GFX.js → dist-Z7Q3JS7K.js} +3 -3
  94. package/dist/{doctor-6B76R5BJ.js → doctor-WZB6WMBY.js} +21 -20
  95. package/dist/{events-BLABPRD5.js → events-MUWJJCC7.js} +6 -6
  96. package/dist/{events-33GOPHSS.js → events-T4YFQC5G.js} +8 -8
  97. package/dist/{feedback-HLXEG7RT.js → feedback-AUTHQNN2.js} +25 -25
  98. package/dist/{ffmpeg-5V4FP3R6.js → ffmpeg-TZB5WAYE.js} +3 -2
  99. package/dist/{figma-T6W7H23L.js → figma-NBG6WBI7.js} +3 -3
  100. package/dist/fontLocalizeCli.js +11 -11
  101. package/dist/{get-UDMLOTKJ.js → get-OXBJLKLV.js} +11 -11
  102. package/dist/{gpuPolicy-M2JZGGVW.js → gpuPolicy-HBCCEQUS.js} +6 -6
  103. package/dist/{grade-compare-P4CHFVBR.js → grade-compare-2LX4FDH7.js} +42 -41
  104. package/dist/{help-4MW6L6YB.js → help-LJI46EDO.js} +3 -3
  105. package/dist/{history-336VM6SH.js → history-MFKAQEHU.js} +15 -15
  106. package/dist/hyperframe-runtime.js +65 -58
  107. package/dist/hyperframe.manifest.json +1 -1
  108. package/dist/hyperframe.runtime.iife.js +65 -58
  109. package/dist/hyperframes-player.global.js +1 -1
  110. package/dist/{info-FPMIDMD5.js → info-D6Y5O2QE.js} +18 -18
  111. package/dist/{init-IWM4PWLO.js → init-47NZPEBI.js} +53 -52
  112. package/dist/{inspect-IIG7756C.js → inspect-U5UXJK5D.js} +34 -34
  113. package/dist/{installer-Q4MMZKLA.js → installer-AW7VFVTQ.js} +5 -5
  114. package/dist/{keyframes-TWO4BXBA.js → keyframes-5G334NWB.js} +16 -16
  115. package/dist/{lambda-2JB2QUK2.js → lambda-GASGXN3A.js} +9 -9
  116. package/dist/{layout-TPKEKFQQ.js → layout-OXAQFLJS.js} +34 -34
  117. package/dist/{lint-H3KL7KSX.js → lint-F36QFSNF.js} +19 -19
  118. package/dist/{list-LYPO4KRE.js → list-TR6QCI53.js} +11 -11
  119. package/dist/{login-SQQWKWTD.js → login-6LA2RWTC.js} +9 -9
  120. package/dist/{logout-B4KS4A7S.js → logout-DKJANASY.js} +3 -3
  121. package/dist/{manager-5ORDVWJB.js → manager-ES2UFT4X.js} +6 -4
  122. package/dist/{manager-BPSR6D3V.js → manager-GWU5J6RJ.js} +3 -2
  123. package/dist/{media-treatment-KSRINVUA.js → media-treatment-BOHYDWVY.js} +28 -27
  124. package/dist/{models-WUBF6GDB.js → models-6GW5Q3IW.js} +20 -18
  125. package/dist/{motionShot-STKG4KYQ.js → motionShot-O7AOMPUN.js} +14 -14
  126. package/dist/normalize-4UDISLPL.js +24 -0
  127. package/dist/{normalize-audio-CA47XZ4I.js → normalize-audio-UO5B4O76.js} +17 -17
  128. package/dist/{open-B5WYEM3Z.js → open-JV2EHVKM.js} +13 -13
  129. package/dist/{parakeetRunner-JBK2JPEH.js → parakeetRunner-23DZUF6G.js} +18 -28
  130. package/dist/{pipeline-FEAAD2RJ.js → pipeline-KTICSIK7.js} +10 -10
  131. package/dist/{play-2LC5XRM6.js → play-CMUYPXBC.js} +37 -37
  132. package/dist/{preflight-ONF5AJNO.js → preflight-JOD4OXGC.js} +5 -4
  133. package/dist/{present-XKYF3VGC.js → present-ZDT5FM2H.js} +27 -27
  134. package/dist/{preview-WDPZRHE5.js → preview-ASHLGKDD.js} +40 -38
  135. package/dist/{producer-343ENLAM.js → producer-FFH2KUAZ.js} +1 -1
  136. package/dist/{projectConfig-YXKU3CTB.js → projectConfig-FHIAOPKW.js} +7 -7
  137. package/dist/{publication-ODXP3JI7.js → publication-WO5ZXURT.js} +3 -3
  138. package/dist/{publish-3OYXNY44.js → publish-QWO2W7FB.js} +23 -23
  139. package/dist/{refresh-PVHBEABE.js → refresh-MGCVWX56.js} +3 -3
  140. package/dist/{remove-background-F6QTJIPZ.js → remove-background-BO5MQR25.js} +39 -35
  141. package/dist/{render-SC77I7FT.js → render-HS3YOLSD.js} +7 -7
  142. package/dist/{render-QQ7NUREG.js → render-SDHFXL3Y.js} +62 -61
  143. package/dist/{render-JKB6GZDB.js → render-XTJKGT3G.js} +31 -31
  144. package/dist/{render-batch-4F44JFAB.js → render-batch-J64AJHQY.js} +7 -7
  145. package/dist/renderSetupWorker.js +4 -3
  146. package/dist/{resolver-7MYXNEAX.js → resolver-IHNWMDJA.js} +5 -5
  147. package/dist/{sherpa-FOXB4XBN.js → sherpa-FXBBYMDR.js} +16 -15
  148. package/dist/sherpaWorker.js +3 -1
  149. package/dist/{skills-GG756RCG.js → skills-ALLSN7TB.js} +15 -15
  150. package/dist/{skillsUpdateCheck-N2LDCNAS.js → skillsUpdateCheck-EIT5NWM6.js} +3 -3
  151. package/dist/{snapshot-2LDOY65W.js → snapshot-Y3I76OIZ.js} +56 -55
  152. package/dist/{src-VMTHSARJ.js → src-7V6LBC56.js} +7 -5
  153. package/dist/{src-PTIV7IVV.js → src-S5IZVJUX.js} +7 -7
  154. package/dist/{staticProjectServer-QBB6WUAY.js → staticProjectServer-QLWWGHZE.js} +16 -16
  155. package/dist/{status-PTKNQD2E.js → status-NBRMGL7D.js} +5 -5
  156. package/dist/studio/assets/{hyperframes-player-BBBg-uvu.js → hyperframes-player-kup62bDR.js} +1 -1
  157. package/dist/studio/assets/{index-BXJLeCqB.js → index-B8BBYY8L.js} +1 -1
  158. package/dist/studio/assets/{index-BJIpZeuk.js → index-CS_m0TkX.js} +131 -131
  159. package/dist/studio/assets/{index-DARhiE_i.js → index-DQ5jGodF.js} +1 -1
  160. package/dist/studio/index.html +1 -1
  161. package/dist/{studio-api-VPTZF2AW.js → studio-api-UBFLZ3DA.js} +9 -9
  162. package/dist/{studioServer-VZKX2MG7.js → studioServer-REOVCIFP.js} +72 -71
  163. package/dist/{synthesize-UCI4X5O7.js → synthesize-22B7L5GX.js} +6 -6
  164. package/dist/{telemetry-76XND6XK.js → telemetry-C3GDIXHO.js} +8 -8
  165. package/dist/{timeline-UJLTA4AX.js → timeline-H42EGLMT.js} +26 -26
  166. package/dist/{tokens-VMWANYJY.js → tokens-2K7ISTKV.js} +3 -3
  167. package/dist/transcribe-DVM7UFZZ.js +332 -0
  168. package/dist/{transcribe-JNOG667L.js → transcribe-NUPASAUP.js} +14 -13
  169. package/dist/{tts-B6AHFQEO.js → tts-QSAQZVEZ.js} +3 -3
  170. package/dist/{updateCheck-WI3HYM72.js → updateCheck-3RWFSEZD.js} +2 -2
  171. package/dist/{upgrade-52RIOKFX.js → upgrade-YKKL36N7.js} +5 -5
  172. package/dist/{urlDownloader-352AY25I.js → urlDownloader-6JNJYLPN.js} +5 -5
  173. package/dist/{validate-MJVNR7YY.js → validate-Z7KQT7GO.js} +27 -27
  174. package/dist/{video-72VNEQEI.js → video-EXL2JDSL.js} +9 -9
  175. package/package.json +8 -1
  176. package/dist/chunk-3WD4JNMU.js +0 -3795
  177. package/dist/chunk-6IHWCZ3W.js +0 -54
  178. package/dist/chunk-SQLK7SJL.js +0 -88
  179. package/dist/manager-RFZNG5YT.js +0 -30
  180. package/dist/renderCancellation-7OEBNE2L.js +0 -43
  181. package/dist/transcribe-FD7A2SH3.js +0 -466
  182. package/dist/{chunk-DKSDVDXG.js → chunk-NAMGMP3R.js} +3 -3
  183. package/dist/{policies-4FEXMXPK.js → policies-DCSIM4AB.js} +3 -3
  184. package/dist/{screenshotCapture-3JXXUZND.js → screenshotCapture-TEUIWXWN.js} +3 -3
  185. package/dist/{telemetry-W5AKPI4R.js → telemetry-CQYHCCPL.js} +3 -3
@@ -8,25 +8,91 @@ import {
8
8
  loadOptionalPackage
9
9
  } from "./chunk-3DKN5WKL.js";
10
10
  import {
11
- ensureModel,
12
- selectProviders
13
- } from "./chunk-SQLK7SJL.js";
11
+ downloadFile
12
+ } from "./chunk-PO2SDVQA.js";
14
13
  import {
15
14
  findFFmpeg,
16
15
  findFFprobe,
17
16
  getFFmpegInstallHint
18
- } from "./chunk-SYUGVPYH.js";
17
+ } from "./chunk-DUUFDLC4.js";
19
18
  import {
20
19
  DEFAULT_VP9_CPU_USED,
21
20
  SDR_RGB_TO_BT709_FILTER,
22
21
  renderProvenanceArgs
23
- } from "./chunk-VC7JBNPS.js";
22
+ } from "./chunk-5NAYNDBT.js";
24
23
 
25
24
  // src/background-removal/pipeline.ts
26
25
  import { spawn } from "child_process";
27
26
  import { randomUUID } from "crypto";
28
27
  import { renameSync, rmSync } from "fs";
29
- import { basename, dirname, extname, join } from "path";
28
+ import { basename, dirname, extname, join as join2 } from "path";
29
+
30
+ // src/background-removal/manager.ts
31
+ import { existsSync, mkdirSync } from "fs";
32
+ import { homedir, platform, arch } from "os";
33
+ import { join } from "path";
34
+ var MODELS_DIR = join(homedir(), ".cache", "hyperframes", "background-removal", "models");
35
+ var DEFAULT_MODEL = "u2net_human_seg";
36
+ var MODEL_URLS = {
37
+ u2net_human_seg: "https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net_human_seg.onnx"
38
+ };
39
+ var MODEL_MEMORY_MB = {
40
+ u2net_human_seg: 1500
41
+ };
42
+ var DEVICES = ["auto", "cpu", "coreml", "cuda"];
43
+ function isDevice(value) {
44
+ return typeof value === "string" && DEVICES.includes(value);
45
+ }
46
+ function selectProviders(device = "auto") {
47
+ if (device === "cpu") return { providers: ["cpu"], label: "CPU" };
48
+ const available = listAvailableProviders();
49
+ const hasCoreML = available.includes("coreml");
50
+ const hasCUDA = available.includes("cuda");
51
+ if (device === "coreml") {
52
+ if (!hasCoreML) {
53
+ throw new Error(
54
+ "CoreML execution provider not available. Install onnxruntime-node on Apple Silicon, or use --device cpu."
55
+ );
56
+ }
57
+ return { providers: ["coreml", "cpu"], label: "CoreML" };
58
+ }
59
+ if (device === "cuda") {
60
+ if (!hasCUDA) {
61
+ throw new Error(
62
+ "CUDA execution provider not available. Use --device cpu or install an onnxruntime-node build with CUDA support."
63
+ );
64
+ }
65
+ return { providers: ["cuda", "cpu"], label: "CUDA" };
66
+ }
67
+ if (hasCoreML && platform() === "darwin" && arch() === "arm64") {
68
+ return { providers: ["coreml", "cpu"], label: "CoreML" };
69
+ }
70
+ if (hasCUDA) return { providers: ["cuda", "cpu"], label: "CUDA" };
71
+ return { providers: ["cpu"], label: "CPU" };
72
+ }
73
+ var _cachedProviders;
74
+ function listAvailableProviders() {
75
+ if (_cachedProviders) return _cachedProviders;
76
+ const out = ["cpu"];
77
+ if (platform() === "darwin" && arch() === "arm64") out.push("coreml");
78
+ if (process.env["HYPERFRAMES_CUDA"] === "1") out.push("cuda");
79
+ _cachedProviders = out;
80
+ return out;
81
+ }
82
+ function modelPath(model = DEFAULT_MODEL) {
83
+ return join(MODELS_DIR, `${model}.onnx`);
84
+ }
85
+ async function ensureModel(model = DEFAULT_MODEL, options) {
86
+ const dest = modelPath(model);
87
+ if (existsSync(dest)) return dest;
88
+ mkdirSync(MODELS_DIR, { recursive: true });
89
+ options?.onProgress?.(`Downloading ${model} weights (~168 MB)...`);
90
+ await downloadFile(MODEL_URLS[model], dest);
91
+ if (!existsSync(dest)) {
92
+ throw new Error(`Model download failed: ${model}`);
93
+ }
94
+ return dest;
95
+ }
30
96
 
31
97
  // src/background-removal/inference.ts
32
98
  var INPUT_SIZE = 320;
@@ -203,7 +269,7 @@ function inferInputKind(inputPath) {
203
269
  }
204
270
  async function probeMedia(inputPath) {
205
271
  const isImage = inferInputKind(inputPath) === "image";
206
- const engine = await import("./src-VMTHSARJ.js");
272
+ const engine = await import("./src-7V6LBC56.js");
207
273
  const meta = await engine.extractMediaMetadata(inputPath);
208
274
  if (isImage) {
209
275
  return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
@@ -374,7 +440,7 @@ async function render(options) {
374
440
  }
375
441
  }
376
442
  function tempBeside(path) {
377
- return join(dirname(path), `.tmp-${randomUUID()}-${basename(path)}`);
443
+ return join2(dirname(path), `.tmp-${randomUUID()}-${basename(path)}`);
378
444
  }
379
445
  var RECENT_WINDOW = 30;
380
446
  function spawnFfmpeg(ffmpegPath, args, label, stdio) {
@@ -484,6 +550,13 @@ function waitForExit(proc, label, getStderr) {
484
550
  }
485
551
 
486
552
  export {
553
+ DEFAULT_MODEL,
554
+ MODEL_MEMORY_MB,
555
+ DEVICES,
556
+ isDevice,
557
+ selectProviders,
558
+ listAvailableProviders,
559
+ modelPath,
487
560
  QUALITIES,
488
561
  DEFAULT_QUALITY,
489
562
  isQuality,
@@ -10,25 +10,25 @@ import {
10
10
  import {
11
11
  launchManagedBrowser,
12
12
  resolveManagedGpuMode
13
- } from "./chunk-4S4VUXW3.js";
13
+ } from "./chunk-AXPNVC3N.js";
14
14
  import {
15
15
  resolveDiagnosticNavigationTimeoutMs,
16
16
  windowsChromeCrashRemediation
17
- } from "./chunk-KQHJKJ3V.js";
17
+ } from "./chunk-423DJVX2.js";
18
18
  import {
19
19
  resolveLocalBrowserGpuMode,
20
20
  resolveLocalWebGpu
21
- } from "./chunk-QIJLIULK.js";
21
+ } from "./chunk-AKYQGZLU.js";
22
+ import {
23
+ c
24
+ } from "./chunk-ZTZA4UWZ.js";
22
25
  import {
23
26
  assertWebGpuAdapterAvailable,
24
27
  compositionRequiresWebGpu
25
- } from "./chunk-VC7JBNPS.js";
28
+ } from "./chunk-5NAYNDBT.js";
26
29
  import {
27
30
  normalizeErrorMessage
28
31
  } from "./chunk-KNU5COPB.js";
29
- import {
30
- c
31
- } from "./chunk-ZTZA4UWZ.js";
32
32
 
33
33
  // src/capture/captureCompositionFrame.ts
34
34
  import { spawn } from "child_process";
@@ -104,10 +104,10 @@ async function installPageFunctionGuard(page) {
104
104
  }
105
105
  async function openSettledCompositionPage(html, url, options) {
106
106
  const viewport = resolveCompositionViewportFromHtml(html);
107
- const { ensureBrowser, findSystemBrowser } = await import("./manager-BPSR6D3V.js");
107
+ const { ensureBrowser, findSystemBrowser } = await import("./manager-GWU5J6RJ.js");
108
108
  const browser = await ensureBrowser();
109
109
  const puppeteer = await import("puppeteer-core");
110
- const { buildChromeArgs } = await import("./src-VMTHSARJ.js");
110
+ const { buildChromeArgs } = await import("./src-7V6LBC56.js");
111
111
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
112
112
  const requiresWebGpu = compositionRequiresWebGpu(html);
113
113
  let softwareWebGpu = false;
@@ -7,20 +7,20 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-X2G54Y2V.js";
10
+ } from "./chunk-3UAIVF4L.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-QX26JK43.js";
13
+ } from "./chunk-6KWA3XPS.js";
14
14
  import {
15
15
  detectAgentRuntime
16
16
  } from "./chunk-XBSPQ52S.js";
17
+ import {
18
+ c
19
+ } from "./chunk-ZTZA4UWZ.js";
17
20
  import {
18
21
  readConfig,
19
22
  writeConfig
20
23
  } from "./chunk-XUXGIA7H.js";
21
- import {
22
- c
23
- } from "./chunk-ZTZA4UWZ.js";
24
24
 
25
25
  // src/telemetry/feedback.ts
26
26
  import * as readline from "readline";
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
84
84
  try {
85
85
  const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
86
86
  import("./system-OXRG57F2.js"),
87
- import("./ffmpeg-5V4FP3R6.js")
87
+ import("./ffmpeg-TZB5WAYE.js")
88
88
  ]);
89
89
  const sys = getSystemMeta();
90
90
  const parts = [
@@ -15,7 +15,7 @@ function isAudibleVideoElement(el) {
15
15
  return declared === null || declared === "true";
16
16
  }
17
17
  function audibleVideoNeedsWebAudio(fields) {
18
- return (fields.volume ?? 1) > 1 || Boolean(fields.fxChain || fields.automation || fields.audioGroup);
18
+ return (fields.volume ?? 1) > 1 || Boolean(fields.fxChain || fields.automation || fields.audioGroup || fields.masterChain);
19
19
  }
20
20
 
21
21
  // ../core/dist/audioGain.js
@@ -13,16 +13,16 @@ import {
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-PBN6GBJE.js";
16
+ import {
17
+ c
18
+ } from "./chunk-ZTZA4UWZ.js";
16
19
  import {
17
20
  formatVariableValidationIssue,
18
21
  validateVariables
19
- } from "./chunk-AHBYQRGI.js";
22
+ } from "./chunk-PCWOSS7G.js";
20
23
  import {
21
24
  extractCompositionMetadata
22
25
  } from "./chunk-LFNQDTSH.js";
23
- import {
24
- c
25
- } from "./chunk-ZTZA4UWZ.js";
26
26
 
27
27
  // src/utils/variables.ts
28
28
  import { readFileSync } from "fs";
@@ -21,7 +21,7 @@ import {
21
21
  splitElementInHtml,
22
22
  unwrapElementsFromHtml,
23
23
  wrapElementsInHtml
24
- } from "./chunk-2HWB4TCI.js";
24
+ } from "./chunk-ZNHAJCEA.js";
25
25
  import {
26
26
  MAX_WINDOW_IDLE_MS,
27
27
  STUDIO_SIGNATURE_MANIFEST_PATHS,
@@ -43,7 +43,7 @@ import {
43
43
  requestedProjectPath,
44
44
  requiredFfmpeg,
45
45
  resolveLocalAudioPath
46
- } from "./chunk-ZFN6GQU4.js";
46
+ } from "./chunk-XXPYZBZ3.js";
47
47
  import {
48
48
  PROXY_PARAMS_VERSION,
49
49
  PROXY_PENDING_RETRY_AFTER_SECONDS,
@@ -65,7 +65,7 @@ import {
65
65
  scanProjectMediaCodecMap,
66
66
  shouldPrewarmProxy,
67
67
  waitForProxy
68
- } from "./chunk-KMJLHHBF.js";
68
+ } from "./chunk-EL5QVJEG.js";
69
69
  import {
70
70
  STUDIO_MOTION_PATH,
71
71
  createStudioMotionRenderBodyScript,
@@ -77,11 +77,6 @@ import {
77
77
  resolveWithinProject,
78
78
  walkDir
79
79
  } from "./chunk-AIJS74LG.js";
80
- import {
81
- atomicTempPath,
82
- createFileAtomically,
83
- replaceFileAtomically
84
- } from "./chunk-EOVYQ3IG.js";
85
80
  import {
86
81
  findTimelineScript,
87
82
  parseGsapScriptAcorn
@@ -96,9 +91,14 @@ import {
96
91
  getSystemProfilerFamilies,
97
92
  locateSystemFont
98
93
  } from "./chunk-TJSTGSAW.js";
94
+ import {
95
+ atomicTempPath,
96
+ createFileAtomically,
97
+ replaceFileAtomically
98
+ } from "./chunk-EOVYQ3IG.js";
99
99
  import {
100
100
  addScenePartsManifest
101
- } from "./chunk-62RUQJ5J.js";
101
+ } from "./chunk-WLIUULZQ.js";
102
102
  import {
103
103
  ensureHfIds
104
104
  } from "./chunk-NE55C6S5.js";
@@ -111,7 +111,7 @@ import {
111
111
  parseFps,
112
112
  parsePreviewProxyBox,
113
113
  sameInstant
114
- } from "./chunk-AHBYQRGI.js";
114
+ } from "./chunk-PCWOSS7G.js";
115
115
  import {
116
116
  AFTER_FONTS_SCRIPT_TYPE,
117
117
  RUNTIME_BOOTSTRAP_ATTR,
@@ -125,7 +125,7 @@ import {
125
125
  resolveRateSpec,
126
126
  sourceTimeAt,
127
127
  stripEmbeddedRuntimeScripts
128
- } from "./chunk-3WD4JNMU.js";
128
+ } from "./chunk-CEND6BLF.js";
129
129
  import {
130
130
  HTML_ATTRIBUTE_ENTITIES,
131
131
  MagicString,
@@ -5446,7 +5446,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
5446
5446
  let block = extractGsapScriptBlock(html);
5447
5447
  if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
5448
5448
  const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
5449
- const { GSAP_CDN } = await import("./dist-CUIR3GFX.js");
5449
+ const { GSAP_CDN } = await import("./dist-Z7Q3JS7K.js");
5450
5450
  const bootstrap = [
5451
5451
  `<script src="${GSAP_CDN}"></script>`,
5452
5452
  "<script>",
@@ -7,7 +7,6 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseHTML
9
9
  } from "./chunk-SDYDNHEE.js";
10
- import "./chunk-M2WBOQ2Q.js";
11
10
 
12
11
  // src/whisper/normalize.ts
13
12
  import { readFileSync, readdirSync, writeFileSync } from "fs";
@@ -330,11 +329,12 @@ function patchCaptionHtml(dir, words) {
330
329
  }
331
330
  }
332
331
  }
332
+
333
333
  export {
334
334
  detectFormat,
335
+ wordsToCues,
335
336
  formatSrt,
336
337
  formatVtt,
337
338
  loadTranscript,
338
- patchCaptionHtml,
339
- wordsToCues
339
+ patchCaptionHtml
340
340
  };
@@ -14,13 +14,9 @@ import {
14
14
  describeRejectedPythonOverride,
15
15
  hasPythonModules
16
16
  } from "./chunk-5ETJX6WM.js";
17
- import {
18
- OPTIONAL_PACKAGES,
19
- installedOptionalPackageVersion
20
- } from "./chunk-3DKN5WKL.js";
21
17
  import {
22
18
  runEnvironmentChecks
23
- } from "./chunk-66SAATRI.js";
19
+ } from "./chunk-M5B42RL5.js";
24
20
  import {
25
21
  getAvailableMemoryMb,
26
22
  getFreeDiskMb,
@@ -31,25 +27,29 @@ import {
31
27
  defineCommand
32
28
  } from "./chunk-S3S4TGEH.js";
33
29
  import {
34
- resolveExtractCacheDir
35
- } from "./chunk-VC7JBNPS.js";
30
+ c
31
+ } from "./chunk-ZTZA4UWZ.js";
36
32
  import {
37
33
  getUpdateMeta,
38
34
  withMeta
39
- } from "./chunk-ASEJ2FBO.js";
35
+ } from "./chunk-AFRXL75S.js";
40
36
  import {
41
37
  CONFIG_PATH,
42
38
  withFileLock
43
39
  } from "./chunk-XUXGIA7H.js";
44
40
  import {
45
41
  VERSION
46
- } from "./chunk-KQESKXAC.js";
42
+ } from "./chunk-I6DATIHC.js";
43
+ import {
44
+ OPTIONAL_PACKAGES,
45
+ installedOptionalPackageVersion
46
+ } from "./chunk-3DKN5WKL.js";
47
+ import {
48
+ resolveExtractCacheDir
49
+ } from "./chunk-5NAYNDBT.js";
47
50
  import {
48
51
  normalizeErrorMessage
49
52
  } from "./chunk-KNU5COPB.js";
50
- import {
51
- c
52
- } from "./chunk-ZTZA4UWZ.js";
53
53
 
54
54
  // src/commands/doctor.ts
55
55
  import { execFileSync, execSync } from "child_process";
@@ -232,7 +232,7 @@ function checkEnvironment() {
232
232
  return { ok: true, detail: parts.join(" \xB7 ") };
233
233
  }
234
234
  async function checkWhisper() {
235
- const { findWhisper, getInstallInstructions } = await import("./manager-5ORDVWJB.js");
235
+ const { findWhisper, getInstallInstructions } = await import("./manager-ES2UFT4X.js");
236
236
  const result = findWhisper();
237
237
  if (result) {
238
238
  return { ok: true, detail: result.executablePath };
@@ -8,6 +8,7 @@ import {
8
8
  ensureHfIds
9
9
  } from "./chunk-NE55C6S5.js";
10
10
  import {
11
+ HF_AUDIO_FX_ATTR,
11
12
  HF_COLOR_GRADING_ATTR,
12
13
  INLINED_FILE_ATTR,
13
14
  RUNTIME_BOOTSTRAP_ATTR,
@@ -38,7 +39,7 @@ import {
38
39
  stripEmbeddedRuntimeScripts,
39
40
  styleElementsFor,
40
41
  warnUnknownEnumValues
41
- } from "./chunk-3WD4JNMU.js";
42
+ } from "./chunk-CEND6BLF.js";
42
43
  import {
43
44
  cssVariableName
44
45
  } from "./chunk-VC76R6W2.js";
@@ -275,26 +276,35 @@ function isTemplateEntry(html) {
275
276
  function normalizeCompositionSrcPath(srcPath) {
276
277
  return srcPath.replace(/\\/g, "/").replace(/^\.\//, "");
277
278
  }
278
- function readSceneRootDuration(entryHtml) {
279
+ function readSceneRoot(entryHtml) {
279
280
  if (!entryHtml)
280
281
  return null;
281
282
  const { document } = parseHTML(entryHtml);
282
283
  const template = document.querySelector("template");
283
284
  const scope = template ? parseHTML(template.innerHTML).document : document;
284
- const root = scope.querySelector("[data-composition-id]");
285
- return root?.getAttribute("data-duration") ?? null;
285
+ return scope.querySelector("[data-composition-id]");
286
286
  }
287
- function createStandaloneEntryRenderClone(root, host, sceneDuration) {
287
+ function setSceneFxChain(el, sceneFxChain) {
288
+ if (sceneFxChain) {
289
+ el.setAttribute(HF_AUDIO_FX_ATTR, sceneFxChain);
290
+ } else {
291
+ el.removeAttribute(HF_AUDIO_FX_ATTR);
292
+ }
293
+ }
294
+ function createStandaloneEntryRenderClone(root, host, sceneDuration, sceneFxChain) {
288
295
  const hostClone = host.cloneNode(true);
289
296
  hostClone.setAttribute("data-start", "0");
290
- if (root === host)
297
+ if (root === host) {
298
+ setSceneFxChain(hostClone, sceneFxChain);
291
299
  return hostClone;
300
+ }
292
301
  const rootClone = root.cloneNode(false);
293
302
  if (sceneDuration != null) {
294
303
  rootClone.setAttribute("data-duration", sceneDuration);
295
304
  } else {
296
305
  rootClone.removeAttribute("data-duration");
297
306
  }
307
+ setSceneFxChain(rootClone, sceneFxChain);
298
308
  rootClone.appendChild(hostClone);
299
309
  return rootClone;
300
310
  }
@@ -320,8 +330,10 @@ function extractStandaloneEntryFromIndex(indexHtml, entryFile, entryHtml) {
320
330
  const root = Array.from(body.children).find((candidate) => candidate.hasAttribute("data-composition-id")) ?? null;
321
331
  if (!root)
322
332
  return null;
323
- const sceneDuration = readSceneRootDuration(entryHtml) ?? host.getAttribute("data-duration");
324
- const renderClone = createStandaloneEntryRenderClone(root, host, sceneDuration);
333
+ const sceneRoot = readSceneRoot(entryHtml);
334
+ const sceneDuration = sceneRoot?.getAttribute("data-duration") ?? host.getAttribute("data-duration");
335
+ const sceneFxChain = sceneRoot?.getAttribute(HF_AUDIO_FX_ATTR) || null;
336
+ const renderClone = createStandaloneEntryRenderClone(root, host, sceneDuration, sceneFxChain);
325
337
  replaceBodyWithRenderClone(body, renderClone);
326
338
  return document.toString();
327
339
  }