hyperframes 0.8.197 → 0.8.199

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 (170) hide show
  1. package/dist/{add-5GQIR5OE.js → add-7LA5CGDM.js} +12 -12
  2. package/dist/{animatedGifPrep-MGFQWIGJ.js → animatedGifPrep-NB2MZTMQ.js} +6 -6
  3. package/dist/api.js +14 -14
  4. package/dist/{asset-ADX55DGH.js → asset-4BIOI6GN.js} +2 -2
  5. package/dist/{assetCataloger-GGBWBQZW.js → assetCataloger-TX5KL5VV.js} +6 -6
  6. package/dist/{audio-SPB4CLRU.js → audio-ZGMIIDNU.js} +13 -13
  7. package/dist/{auth-WBAB35QA.js → auth-OQ5PWEUG.js} +1 -1
  8. package/dist/{autoUpdate-5VUDX7JO.js → autoUpdate-QREPD6I4.js} +3 -3
  9. package/dist/{backgroundChecks-ATZQQUMR.js → backgroundChecks-5CJPJX2O.js} +4 -4
  10. package/dist/backgroundChecksWorker.js +4 -4
  11. package/dist/{batchRender-6S2XULOE.js → batchRender-BW2ZK4MA.js} +3 -3
  12. package/dist/{beats-WJPHWDZ6.js → beats-I5XARMDB.js} +9 -9
  13. package/dist/{benchmark-LZVR7PF6.js → benchmark-S2WWY4U7.js} +9 -9
  14. package/dist/{browser-QJ3PFVDY.js → browser-PAXVQYQZ.js} +4 -4
  15. package/dist/{bundleWithLocalizedFonts-564BQ73K.js → bundleWithLocalizedFonts-3ED26VCR.js} +2 -2
  16. package/dist/{capture-3PUQLQNM.js → capture-23574YLP.js} +9 -9
  17. package/dist/{capture-IRAYPK52.js → capture-OVITDMKK.js} +2 -2
  18. package/dist/{captureCompositionFrame-OHS3WBTA.js → captureCompositionFrame-KAUUHCOL.js} +11 -11
  19. package/dist/{catalog-IQKJLTSF.js → catalog-CM3VXSQE.js} +12 -12
  20. package/dist/{catch-up-C4JJJNP3.js → catch-up-HMFREOC2.js} +5 -5
  21. package/dist/{check-46Z5CAA4.js → check-CYJZ6CGT.js} +34 -34
  22. package/dist/{checkBrowser-KAC54SLQ.js → checkBrowser-GZJ3W2OP.js} +29 -29
  23. package/dist/{chunk-AHE4R7PV.js → chunk-2KZSKIYY.js} +1 -1
  24. package/dist/chunk-2ONVJ7NT.js +3901 -0
  25. package/dist/{chunk-5FY7ARKL.js → chunk-3CFTCM7X.js} +1 -1
  26. package/dist/{chunk-SD2IVQXM.js → chunk-4QG64APO.js} +2 -2
  27. package/dist/{chunk-ZE6CLWXL.js → chunk-65HUC64P.js} +1 -1
  28. package/dist/{chunk-PRURJIVL.js → chunk-6RRO4GE3.js} +1 -1
  29. package/dist/{chunk-6UX32GRW.js → chunk-7QB46WTF.js} +1 -1
  30. package/dist/{chunk-B6D7KOXQ.js → chunk-7SKOZHIY.js} +2 -2
  31. package/dist/{chunk-IY2NZKMG.js → chunk-7YZME6DE.js} +1 -1
  32. package/dist/{chunk-DTC4KKFP.js → chunk-AHZLNYZY.js} +1 -1
  33. package/dist/{chunk-4FXJ54L4.js → chunk-BFYDVTD3.js} +1 -1
  34. package/dist/{chunk-2R7QYR2D.js → chunk-BYLC52GJ.js} +1 -1
  35. package/dist/{chunk-MGSQPE6P.js → chunk-CMHVLASW.js} +1 -1
  36. package/dist/{chunk-POYHL7UJ.js → chunk-D5CZCYYT.js} +2 -2
  37. package/dist/{chunk-NAZ54XAE.js → chunk-DMRDGGNM.js} +6 -6
  38. package/dist/{chunk-XE5DW6UC.js → chunk-DWUOGV3M.js} +3 -3
  39. package/dist/{chunk-46J53I7B.js → chunk-FHDKRWQN.js} +54 -16
  40. package/dist/{chunk-GC4NUZAR.js → chunk-FV5GKRAO.js} +3 -3
  41. package/dist/{chunk-WWE73ZFN.js → chunk-FZ2VPLXL.js} +2 -2
  42. package/dist/{chunk-4MNF7ALL.js → chunk-GQACWAOC.js} +1 -1
  43. package/dist/{chunk-33BFEUCL.js → chunk-HK45GJMI.js} +748 -432
  44. package/dist/{chunk-BF3ACZAB.js → chunk-HOAXHVRR.js} +9 -9
  45. package/dist/{chunk-GI2WXOY5.js → chunk-HRZ6ZBKO.js} +2 -2
  46. package/dist/{chunk-YUODO5H2.js → chunk-IC6BO4GU.js} +25 -2
  47. package/dist/{chunk-IFOJM6PV.js → chunk-IELYOY6S.js} +3 -3
  48. package/dist/{chunk-RHYXITPN.js → chunk-ILFDFMYJ.js} +3 -3
  49. package/dist/{chunk-3DEBV7RH.js → chunk-IMVTN367.js} +2 -2
  50. package/dist/{chunk-454VK7CA.js → chunk-JFIEV2J4.js} +7 -7
  51. package/dist/{chunk-WNLHEUZU.js → chunk-JN63IPHT.js} +1 -1
  52. package/dist/{chunk-3HOQ5ZMS.js → chunk-K5O6JTJQ.js} +5 -5
  53. package/dist/{chunk-ZAY376M4.js → chunk-K65XUUJX.js} +1 -1
  54. package/dist/{chunk-BNMVX4JK.js → chunk-KFZPWUPN.js} +7 -7
  55. package/dist/{chunk-GM6WM6YH.js → chunk-KG3BVLA4.js} +1 -1
  56. package/dist/{chunk-T3CBCGU4.js → chunk-L6FG62QM.js} +43 -24
  57. package/dist/{chunk-PDDVEHWJ.js → chunk-LPDNR3R4.js} +2 -2
  58. package/dist/{chunk-WKHPW2BC.js → chunk-M2GO2AAS.js} +1 -1
  59. package/dist/{chunk-AXJMD32I.js → chunk-M6IMQBK6.js} +1 -1
  60. package/dist/{chunk-VFSFTVOT.js → chunk-NUZMP7SV.js} +17 -17
  61. package/dist/{chunk-5L6UY76S.js → chunk-NY2OH5XD.js} +1 -1
  62. package/dist/{chunk-BXXEQFRW.js → chunk-OZVRCLEN.js} +2 -2
  63. package/dist/{chunk-FUAS4KCJ.js → chunk-PO5PAROC.js} +3 -3
  64. package/dist/{chunk-6NLPPKBO.js → chunk-PSX5SF2N.js} +36 -0
  65. package/dist/{chunk-WY6X5Q33.js → chunk-QH4425AL.js} +1 -1
  66. package/dist/{chunk-7JMUJID2.js → chunk-QYOUK3UO.js} +1 -1
  67. package/dist/{chunk-X73MOLUS.js → chunk-RYCANWOM.js} +4 -4
  68. package/dist/{chunk-6DMFWXDH.js → chunk-S5WSJVHP.js} +3 -3
  69. package/dist/{chunk-UP7IRMTI.js → chunk-SQQZUUK6.js} +9 -9
  70. package/dist/{chunk-RNPTRRLX.js → chunk-T4IJMVCB.js} +1 -1
  71. package/dist/{chunk-FFPKJU7T.js → chunk-TF7LCULS.js} +2 -2
  72. package/dist/{chunk-6LN4GQH3.js → chunk-TTWFTEUG.js} +5 -5
  73. package/dist/{chunk-IHSFWHXI.js → chunk-TVR744AS.js} +2 -2
  74. package/dist/{chunk-C4REI4HU.js → chunk-UBSAHYWA.js} +2 -2
  75. package/dist/{chunk-2C4VIQ2H.js → chunk-UMBCYIFE.js} +1 -1
  76. package/dist/{chunk-IK4Q7EKF.js → chunk-UVQLSMAR.js} +27 -4
  77. package/dist/{chunk-J756NYRP.js → chunk-VWPU6URV.js} +5 -5
  78. package/dist/{chunk-GGURM4ZM.js → chunk-XP55QWOB.js} +13 -13
  79. package/dist/{chunk-OEC7RJVD.js → chunk-XVZZQVT4.js} +1 -1
  80. package/dist/{chunk-X56HO2IP.js → chunk-YAMRODVV.js} +3 -2
  81. package/dist/{chunk-KBVJ6G65.js → chunk-Z6Q4ASCD.js} +107 -44
  82. package/dist/{clean-JM6Y5V2G.js → clean-QX6LKOWJ.js} +15 -15
  83. package/dist/cli.js +54 -54
  84. package/dist/{cloud-DWKTRWWB.js → cloud-ASA7Y3HA.js} +4 -4
  85. package/dist/{cloudrun-HLUQOVRO.js → cloudrun-LK4GJWUZ.js} +4 -4
  86. package/dist/{compare-GVTQBP4N.js → compare-426Z2ND6.js} +26 -26
  87. package/dist/{compiler-3MDCAKFB.js → compiler-WER7FC5O.js} +3 -3
  88. package/dist/{component-QSRD6BSP.js → component-HTDWZMEG.js} +3 -3
  89. package/dist/{compositions-BDITIWMO.js → compositions-EKRLQ5TU.js} +11 -11
  90. package/dist/{delete-G2MXPSLU.js → delete-KHXM6R7A.js} +3 -3
  91. package/dist/{deploy-Q7RDYGFL.js → deploy-WJ5JQJBD.js} +1 -1
  92. package/dist/{dist-WHAM6TAE.js → dist-EYJATCTF.js} +2 -2
  93. package/dist/{dist-XPD7X6JB.js → dist-ONHJ6ZDA.js} +1 -1
  94. package/dist/{doctor-Q7SJW3MZ.js → doctor-NB3G2GDG.js} +11 -11
  95. package/dist/{events-DOABLVUG.js → events-6EL5NIJV.js} +3 -3
  96. package/dist/{events-XEAJVOX2.js → events-LH6W5ZCV.js} +4 -4
  97. package/dist/{feedback-K7I2FQQF.js → feedback-2GNY725M.js} +7 -7
  98. package/dist/{ffmpeg-2LKYJYAF.js → ffmpeg-XX3O53B3.js} +6 -6
  99. package/dist/{figma-LXJRAIDI.js → figma-X7KKOOXB.js} +3 -3
  100. package/dist/fontLocalizeCli.js +8 -8
  101. package/dist/{get-EDCTYZB6.js → get-M57U7QCX.js} +3 -3
  102. package/dist/{gpuPolicy-4YOOXLBX.js → gpuPolicy-GIBBYBI5.js} +6 -6
  103. package/dist/{grade-compare-ZWUXB3MD.js → grade-compare-XNY37UYQ.js} +27 -27
  104. package/dist/{help-LEZ3E433.js → help-ZXSPZBUG.js} +1 -1
  105. package/dist/{history-YD7OKO74.js → history-G5B4IPBH.js} +7 -7
  106. package/dist/hyperframe.manifest.json +1 -1
  107. package/dist/hyperframe.runtime.iife.js +59 -59
  108. package/dist/hyperframes-player.global.js +1 -1
  109. package/dist/{info-SI2KU7J7.js → info-ZWZDG54W.js} +8 -8
  110. package/dist/{init-INX5WA2G.js → init-F4XMU6SV.js} +27 -27
  111. package/dist/{inspect-SJENYN3F.js → inspect-6VXFMQRR.js} +27 -27
  112. package/dist/{installer-JQ6DMFZ2.js → installer-4M3Y5T5F.js} +4 -4
  113. package/dist/{keyframes-EAVHD4PM.js → keyframes-3U466AWX.js} +7 -7
  114. package/dist/{lambda-323RMLN5.js → lambda-OPSTAEF6.js} +6 -6
  115. package/dist/{layout-JGCQYWWK.js → layout-B3MXD3F3.js} +27 -27
  116. package/dist/{lint-SFE43W5P.js → lint-TVOEGW63.js} +8 -8
  117. package/dist/{lintProject-Q4ZVEF3G.js → lintProject-FKPKSU6M.js} +1 -1
  118. package/dist/{list-N2NSYK6G.js → list-M5GQSFVT.js} +3 -3
  119. package/dist/{login-QGISW3KF.js → login-HBHGZIDN.js} +4 -4
  120. package/dist/{manager-IXZJADWC.js → manager-VLIJARMF.js} +7 -7
  121. package/dist/{media-treatment-BTA7BV52.js → media-treatment-RQZ437VS.js} +13 -13
  122. package/dist/{models-NZEBSWXZ.js → models-2CCKVBTR.js} +10 -10
  123. package/dist/{motionShot-E4GNRX4N.js → motionShot-3IFRSICA.js} +14 -14
  124. package/dist/{normalize-audio-F4Q5ZX5R.js → normalize-audio-23H2MBDP.js} +5 -5
  125. package/dist/{open-A4U2RXCG.js → open-J33KT3G7.js} +12 -12
  126. package/dist/{parakeetRunner-OVNNGTEB.js → parakeetRunner-QTXNEMVY.js} +11 -11
  127. package/dist/{pipeline-Z76DCEY7.js → pipeline-2ECWWEBD.js} +7 -7
  128. package/dist/{play-NWSZMZZG.js → play-G5777L7A.js} +18 -18
  129. package/dist/{preflight-I6UXFNYV.js → preflight-NVFB4HXQ.js} +7 -7
  130. package/dist/{present-QFZQ5VRM.js → present-4EI2BE4Z.js} +14 -14
  131. package/dist/{preview-GXNG3UOV.js → preview-HYCIDZ52.js} +18 -18
  132. package/dist/{producer-MGXGNSQX.js → producer-6JAATJVD.js} +1 -1
  133. package/dist/{projectConfig-TNL3ZDIP.js → projectConfig-XPGN76VV.js} +6 -6
  134. package/dist/{publication-OO772CBM.js → publication-YRZ7EBUV.js} +2 -2
  135. package/dist/{publish-X33ZCMFO.js → publish-UIDHN7KD.js} +8 -8
  136. package/dist/{remove-background-JAD2RBYP.js → remove-background-LPQP4WBN.js} +8 -8
  137. package/dist/{render-OJEKVJNG.js → render-DT3OCUCV.js} +117 -37
  138. package/dist/{render-2FX26ITP.js → render-LFJQNVCK.js} +5 -5
  139. package/dist/{render-BZCK6XNT.js → render-NZSNQFYW.js} +14 -14
  140. package/dist/{render-batch-SP6HKIF4.js → render-batch-QI2A45WH.js} +5 -5
  141. package/dist/renderSetupWorker.js +1 -1
  142. package/dist/{resolver-QB7L6U4Q.js → resolver-4YDXG4PP.js} +4 -4
  143. package/dist/{sherpa-BZLXBJTD.js → sherpa-XLKWFYFO.js} +10 -10
  144. package/dist/skills/media-use/references/mixing.md +1 -0
  145. package/dist/{skills-OMKCU4HZ.js → skills-OVVLZHF5.js} +6 -6
  146. package/dist/{skillsUpdateCheck-NNURJXBS.js → skillsUpdateCheck-Y2UQA7I5.js} +4 -4
  147. package/dist/{snapshot-J7Y3PCCI.js → snapshot-7NVB5WSO.js} +50 -36
  148. package/dist/{src-T5WHBOD2.js → src-ACAFJXAJ.js} +7 -7
  149. package/dist/{src-2YZVFDNC.js → src-QQPHMIJ7.js} +11 -5
  150. package/dist/{staticProjectServer-PHNKV2NL.js → staticProjectServer-JUN6BRTW.js} +14 -14
  151. package/dist/studio/assets/{hyperframes-player-Cyi8HgFo.js → hyperframes-player-BDtBfwof.js} +1 -1
  152. package/dist/studio/assets/{index-DG6ZXBnu.js → index--W_0fuR8.js} +1 -1
  153. package/dist/studio/assets/{index-6njHuMnJ.js → index-BFfBBQMu.js} +4 -4
  154. package/dist/studio/index.html +1 -1
  155. package/dist/{studio-api-VLJJP2GQ.js → studio-api-D76Q4Q2N.js} +7 -7
  156. package/dist/{studioServer-G7RGGTWJ.js → studioServer-HG3RFAOY.js} +45 -45
  157. package/dist/{telemetry-4K6CPMNT.js → telemetry-IHU4HL3R.js} +1 -1
  158. package/dist/{telemetry-2R6G2A54.js → telemetry-Q2EHWVO4.js} +4 -4
  159. package/dist/{timeline-B2CM5IZO.js → timeline-WDQCCETQ.js} +16 -16
  160. package/dist/{tokens-7EOFUTMX.js → tokens-2GJWP2HY.js} +2 -2
  161. package/dist/{transcribe-7GTD3CEW.js → transcribe-SRLAY6RG.js} +9 -9
  162. package/dist/{transcribe-YJM673R7.js → transcribe-Z63Y53GQ.js} +16 -16
  163. package/dist/{updateCheck-JBIJ7L2D.js → updateCheck-MJ6NDE3T.js} +3 -3
  164. package/dist/{upgrade-WF2CBHOE.js → upgrade-D5XEX3XE.js} +3 -3
  165. package/dist/{urlDownloader-HMXLCV4T.js → urlDownloader-R7BZ47TY.js} +5 -5
  166. package/dist/{validate-OHWQ7DQO.js → validate-F5BIDZLN.js} +21 -21
  167. package/dist/{video-OEEM43V6.js → video-QUG5OG5Q.js} +6 -6
  168. package/dist/warmCheck.js +34 -34
  169. package/package.json +1 -1
  170. package/dist/chunk-G5RNOVAV.js +0 -3901
@@ -13,7 +13,7 @@ import {
13
13
  formatPreviewProxyBox,
14
14
  hdrToSdrToneMapFilter,
15
15
  parseFirstFrameColour
16
- } from "./chunk-IK4Q7EKF.js";
16
+ } from "./chunk-UVQLSMAR.js";
17
17
  import {
18
18
  decodeAuthoredAttribute,
19
19
  scanHtmlOpeningTags
@@ -340,7 +340,7 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
340
340
  return map;
341
341
  }
342
342
 
343
- // ../studio-server/dist/chunk-N2HH4SGD.js
343
+ // ../studio-server/dist/chunk-URMIRXBS.js
344
344
  import { spawn } from "child_process";
345
345
  import { createHash, randomUUID } from "crypto";
346
346
  import {
@@ -353,7 +353,7 @@ import {
353
353
  utimesSync,
354
354
  writeFileSync
355
355
  } from "fs";
356
- import { tmpdir } from "os";
356
+ import { availableParallelism, tmpdir } from "os";
357
357
  import { basename, dirname, extname as extname2, isAbsolute, join as join2, relative, resolve, sep as sep2 } from "path";
358
358
  import { existsSync, readdirSync, statSync as statSync3, unlinkSync } from "fs";
359
359
  import { extname as extname3, join } from "path";
@@ -465,7 +465,7 @@ function cleanupProxyCache(cacheDir, options = {}) {
465
465
  skipped: false
466
466
  };
467
467
  }
468
- var PROXY_PARAMS_VERSION = "v5";
468
+ var PROXY_PARAMS_VERSION = "v6";
469
469
  var CACHE_DIR_NAME = ".transcode-cache";
470
470
  function boundedEnvInteger(name, fallback, min, max) {
471
471
  const raw = process.env[name]?.trim();
@@ -476,8 +476,13 @@ function boundedEnvInteger(name, fallback, min, max) {
476
476
  var MAX_CONCURRENT_TRANSCODES = boundedEnvInteger("HYPERFRAMES_PROXY_MAX_CONCURRENCY", 2, 1, 16);
477
477
  var MAX_QUEUED_TRANSCODES = boundedEnvInteger("HYPERFRAMES_PROXY_MAX_QUEUE", 8, 0, 256);
478
478
  var STDERR_TAIL_MAX_CHARS = 4e3;
479
- var TRANSCODE_TIMEOUT_MS = 15 * 60 * 1e3;
480
- var PROXY_CHUNK_SECONDS = 60;
479
+ var TRANSCODE_STALL_MS = boundedEnvInteger(
480
+ "HYPERFRAMES_PROXY_STALL_MS",
481
+ 3 * 60 * 1e3,
482
+ 1e4,
483
+ 60 * 60 * 1e3
484
+ );
485
+ var PROXY_CHUNK_SECONDS = 15;
481
486
  var CHUNK_PREFIX = ".part-";
482
487
  var CONCAT_TIMEOUT_MS = 2 * 60 * 1e3;
483
488
  var FAILURE_CACHE_TTL_MS = 60 * 1e3;
@@ -586,6 +591,10 @@ function getProxyCachePath(projectDir, absoluteSourcePath, variant = "h264", box
586
591
  box
587
592
  );
588
593
  }
594
+ function reportProgress(job, progress) {
595
+ job.lastProgress = progress;
596
+ for (const listener of job.progress) listener(progress);
597
+ }
589
598
  var ProxyDroppedError = class extends ProxyTranscodeError {
590
599
  constructor() {
591
600
  super("media proxy copy dropped: every caller left", null, "");
@@ -704,11 +713,15 @@ function rememberFailure(cachePath, error) {
704
713
  failedTranscodes.delete(oldest);
705
714
  }
706
715
  }
707
- function proxyScaleFilter(box) {
708
- if (!box) return "scale=trunc(iw/2)*2:trunc(ih/2)*2";
716
+ function proxyScaleSize(box) {
717
+ if (!box) return { width: "trunc(iw/2)*2", height: "trunc(ih/2)*2" };
709
718
  const factor = `min(1\\,max(${box.width}/iw\\,${box.height}/ih))`;
710
719
  const side = (d) => `min(trunc(${d}/2)*2\\,ceil(${d}*${factor}/2)*2)`;
711
- return `scale=${side("iw")}:${side("ih")}`;
720
+ return { width: side("iw"), height: side("ih") };
721
+ }
722
+ function proxyScaleFilter(box) {
723
+ const { width, height } = proxyScaleSize(box);
724
+ return `scale=${width}:${height}`;
712
725
  }
713
726
  var STDERR_ERROR_LINE = /error|invalid|denied|no space|not found|unknown/i;
714
727
  function stderrReason(stderrTail) {
@@ -725,26 +738,24 @@ function chunkRanges(durationSeconds) {
725
738
  lengthSeconds: index === count - 1 ? durationSeconds - index * PROXY_CHUNK_SECONDS : PROXY_CHUNK_SECONDS
726
739
  }));
727
740
  }
728
- function ffmpegBudgetError(chunksKept, chunkCount) {
729
- return new ProxyTranscodeError(
730
- `ffmpeg ran out of its ${TRANSCODE_TIMEOUT_MS}ms budget with ${chunksKept}/${chunkCount} pieces done; the finished pieces are kept and the next attempt continues from them`,
731
- null,
732
- ""
733
- );
734
- }
735
- async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat) {
741
+ async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat, onDone = () => {
742
+ }) {
736
743
  const extension = extname2(tempPath);
737
- const deadline = Date.now() + TRANSCODE_TIMEOUT_MS;
738
744
  const pieces = ranges.map((_, index) => `${chunkPrefix}${index}${extension}`);
745
+ let doneSeconds = 0;
746
+ for (const [index, range] of ranges.entries()) {
747
+ if (existsSync2(pieces[index])) doneSeconds += range.lengthSeconds;
748
+ }
749
+ if (doneSeconds) onDone(doneSeconds);
739
750
  for (const [index, range] of ranges.entries()) {
740
751
  const piece = pieces[index];
741
752
  if (existsSync2(piece)) continue;
742
- const timeoutMs = deadline - Date.now();
743
- if (timeoutMs <= 0) throw ffmpegBudgetError(index, ranges.length);
744
753
  const pieceTemp = join2(dirname(piece), `.tmp-${randomUUID()}-${basename(piece)}`);
745
754
  try {
746
- await encode(pieceTemp, timeoutMs, range);
755
+ await encode(pieceTemp, range);
747
756
  renameSync(pieceTemp, piece);
757
+ doneSeconds += range.lengthSeconds;
758
+ onDone(doneSeconds);
748
759
  } finally {
749
760
  if (existsSync2(pieceTemp)) unlinkSync2(pieceTemp);
750
761
  }
@@ -785,6 +796,7 @@ var H264_ARGS = [
785
796
  "-movflags",
786
797
  "+faststart"
787
798
  ];
799
+ var VP8_THREADS = String(Math.min(4, availableParallelism()));
788
800
  var VP8_ARGS = [
789
801
  "-c:v",
790
802
  "libvpx",
@@ -804,6 +816,8 @@ var VP8_ARGS = [
804
816
  "bt709",
805
817
  "-cpu-used",
806
818
  "4",
819
+ "-threads",
820
+ VP8_THREADS,
807
821
  "-auto-alt-ref",
808
822
  "0",
809
823
  "-metadata:s:v:0",
@@ -821,12 +835,12 @@ async function buildVideoFilter(ffmpegPath, sourcePath, metadata, keepsAlpha, bo
821
835
  const evenScale = proxyScaleFilter(box);
822
836
  const pixelFormat = keepsAlpha ? "yuva420p" : "yuv420p";
823
837
  return toneMap ? [
824
- hdrToSdrToneMapFilter(metadata.color, firstFrame),
838
+ hdrToSdrToneMapFilter(metadata.color, firstFrame, box && proxyScaleSize(box)),
825
839
  `${evenScale}:out_color_matrix=bt709:out_range=tv`,
826
840
  `format=${pixelFormat}`
827
841
  ].join(",") : [evenScale, `format=${pixelFormat}`].join(",");
828
842
  }
829
- async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, signal) {
843
+ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, signal, onProgress) {
830
844
  const metadata = await probeMediaMetadata(sourcePath);
831
845
  const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true });
832
846
  if (!ffmpegPath) {
@@ -836,10 +850,14 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, sign
836
850
  const videoFilter = await buildVideoFilter(ffmpegPath, sourcePath, metadata, keepsAlpha, box);
837
851
  const alphaDecoder = keepsAlpha ? alphaDecoderFor(metadata.color.codecName) : null;
838
852
  const decoderArgs = alphaDecoder ? ["-c:v", alphaDecoder] : [];
839
- const encode = (target, timeoutMs, range) => spawnFfmpeg(
853
+ const totalSeconds = metadata.durationSeconds;
854
+ const encode = (target, range) => spawnFfmpeg(
840
855
  ffmpegPath,
841
856
  [
842
857
  "-y",
858
+ "-progress",
859
+ "pipe:1",
860
+ "-nostats",
843
861
  ...range ? ["-ss", String(range.startSeconds)] : [],
844
862
  ...decoderArgs,
845
863
  "-i",
@@ -850,17 +868,19 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, sign
850
868
  ...variant === "vp8" ? VP8_ARGS : H264_ARGS,
851
869
  target
852
870
  ],
853
- timeoutMs,
854
- signal
871
+ TRANSCODE_STALL_MS,
872
+ signal,
873
+ (encodedSeconds) => onProgress({ doneSeconds: (range?.startSeconds ?? 0) + encodedSeconds, totalSeconds })
855
874
  );
856
- const ranges = chunkRanges(metadata.durationSeconds);
857
- if (!ranges) return encode(outputPath, TRANSCODE_TIMEOUT_MS);
875
+ const ranges = chunkRanges(totalSeconds);
876
+ if (!ranges) return encode(outputPath);
858
877
  await encodeInChunks(
859
878
  ranges,
860
879
  chunkPrefix,
861
880
  outputPath,
862
881
  encode,
863
- (listPath, target) => spawnFfmpeg(ffmpegPath, concatArgs(listPath, target, variant), CONCAT_TIMEOUT_MS, signal)
882
+ (listPath, target) => spawnFfmpeg(ffmpegPath, concatArgs(listPath, target, variant), CONCAT_TIMEOUT_MS, signal),
883
+ (doneSeconds) => onProgress({ doneSeconds, totalSeconds })
864
884
  );
865
885
  }
866
886
  function concatArgs(listPath, target, variant) {
@@ -878,35 +898,67 @@ function concatArgs(listPath, target, variant) {
878
898
  target
879
899
  ];
880
900
  }
881
- function spawnFfmpeg(ffmpegPath, args, timeoutMs, signal) {
901
+ var OUT_TIME = /^out_time_(?:us|ms)=(\d+)$/;
902
+ function spawnFfmpeg(ffmpegPath, args, stallMs, signal, onProgress) {
882
903
  return new Promise((resolvePromise, reject) => {
883
904
  signal.throwIfAborted();
884
905
  const proc = spawn(ffmpegPath, args, {
885
- stdio: ["ignore", "ignore", "pipe"],
886
- timeout: timeoutMs,
906
+ stdio: ["ignore", "pipe", "pipe"],
887
907
  killSignal: "SIGKILL",
888
908
  signal,
889
909
  windowsHide: true
890
910
  });
911
+ let stalled = false;
912
+ let timer;
913
+ const armStall = () => {
914
+ clearTimeout(timer);
915
+ timer = setTimeout(() => {
916
+ stalled = true;
917
+ proc.kill("SIGKILL");
918
+ }, stallMs);
919
+ timer.unref();
920
+ };
921
+ armStall();
922
+ let furthest = 0;
923
+ let lineTail = "";
924
+ proc.stdout?.on("data", (chunk) => {
925
+ const lines = (lineTail + chunk.toString()).split("\n");
926
+ lineTail = lines.pop() ?? "";
927
+ for (const line of lines) {
928
+ const reached = OUT_TIME.exec(line.trim());
929
+ if (!reached) continue;
930
+ const seconds = Number(reached[1]) / 1e6;
931
+ if (seconds <= furthest) continue;
932
+ furthest = seconds;
933
+ armStall();
934
+ onProgress?.(seconds);
935
+ }
936
+ });
891
937
  let stderrTail = "";
892
938
  proc.stderr?.on("data", (chunk) => {
893
939
  stderrTail = (stderrTail + chunk.toString()).slice(-STDERR_TAIL_MAX_CHARS);
894
940
  });
895
941
  proc.on("error", (err) => {
942
+ clearTimeout(timer);
896
943
  if (signal.aborted) return;
897
944
  reject(new FfmpegUnavailableError(`failed to spawn ffmpeg: ${err.message}`, stderrTail));
898
945
  });
899
- proc.on("close", (code, signal2) => {
946
+ proc.on("close", (code, killedBy) => {
947
+ clearTimeout(timer);
900
948
  if (code === 0) {
901
949
  resolvePromise();
902
- } else if (signal2) {
950
+ } else if (stalled) {
903
951
  reject(
904
952
  new ProxyTranscodeError(
905
- `ffmpeg killed by ${signal2} (timeout ${timeoutMs}ms or external kill)`,
953
+ `ffmpeg made no progress for ${Math.round(stallMs / 1e3)}s and was ended; finished pieces are kept for the next attempt`,
906
954
  null,
907
955
  stderrTail
908
956
  )
909
957
  );
958
+ } else if (killedBy) {
959
+ reject(
960
+ new ProxyTranscodeError(`ffmpeg killed by ${killedBy} (external kill)`, null, stderrTail)
961
+ );
910
962
  } else {
911
963
  reject(
912
964
  new ProxyTranscodeError(
@@ -937,7 +989,8 @@ async function transcodeToCache(job, projectDir, absoluteSourcePath, cachePath,
937
989
  chunkPrefix,
938
990
  variant,
939
991
  box,
940
- job.abandoned.signal
992
+ job.abandoned.signal,
993
+ (progress) => reportProgress(job, progress)
941
994
  );
942
995
  renameSync(tempPath, cachePath);
943
996
  maintainProxyCache(cacheDir);
@@ -980,7 +1033,8 @@ async function resolveProxy(projectDir, absoluteSourcePath, variant = "h264", bo
980
1033
  cachePath,
981
1034
  priority: options.priority === true,
982
1035
  callers: 0,
983
- abandoned: new AbortController()
1036
+ abandoned: new AbortController(),
1037
+ progress: /* @__PURE__ */ new Set()
984
1038
  };
985
1039
  const promise = transcodeToCache(
986
1040
  job,
@@ -1002,10 +1056,19 @@ async function resolveProxy(projectDir, absoluteSourcePath, variant = "h264", bo
1002
1056
  inFlight.set(cachePath, entry);
1003
1057
  }
1004
1058
  if (options.priority) prioritize(entry.job);
1005
- return joinJob(entry.promise, entry.job, options.signal);
1059
+ const listener = options.onProgress;
1060
+ const joined = joinJob(entry.promise, entry.job, options.signal);
1061
+ if (listener) {
1062
+ entry.job.progress.add(listener);
1063
+ if (entry.job.lastProgress) listener(entry.job.lastProgress);
1064
+ const stop = () => void entry.job.progress.delete(listener);
1065
+ joined.then(stop, stop);
1066
+ }
1067
+ return joined;
1006
1068
  }
1007
1069
  async function resolveProxies(projectDir, sources, onSettled = () => {
1008
- }) {
1070
+ }, onProgress = () => {
1071
+ }, signal) {
1009
1072
  const first = sources[0];
1010
1073
  if (first) {
1011
1074
  maintainProxyCache(
@@ -1021,14 +1084,14 @@ async function resolveProxies(projectDir, sources, onSettled = () => {
1021
1084
  const worker = async () => {
1022
1085
  for (let index = next++; index < sources.length; index = next++) {
1023
1086
  const { sourcePath, variant, box } = sources[index];
1024
- results[index] = await waitForProxy(
1025
- resolveProxy(projectDir, sourcePath, variant, box),
1026
- TRANSCODE_TIMEOUT_MS
1027
- ).then(
1087
+ results[index] = await resolveProxy(projectDir, sourcePath, variant, box, {
1088
+ onProgress: (progress) => onProgress(index, progress),
1089
+ signal
1090
+ }).then(
1028
1091
  (value) => ({ status: "fulfilled", value }),
1029
1092
  (reason) => ({ status: "rejected", reason })
1030
1093
  );
1031
- onSettled();
1094
+ onSettled(index);
1032
1095
  }
1033
1096
  };
1034
1097
  const workers = Math.min(MAX_CONCURRENT_TRANSCODES, sources.length);
@@ -6,18 +6,18 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  redactHome
9
- } from "./chunk-NAZ54XAE.js";
9
+ } from "./chunk-DMRDGGNM.js";
10
10
  import "./chunk-Z27A7NUB.js";
11
11
  import "./chunk-5ETJX6WM.js";
12
- import "./chunk-5FY7ARKL.js";
12
+ import "./chunk-3CFTCM7X.js";
13
13
  import "./chunk-EXAX37XR.js";
14
14
  import "./chunk-6BEFEWFB.js";
15
- import "./chunk-7JMUJID2.js";
15
+ import "./chunk-QYOUK3UO.js";
16
16
  import {
17
17
  loadProducer
18
- } from "./chunk-PRURJIVL.js";
19
- import "./chunk-454VK7CA.js";
20
- import "./chunk-GC4NUZAR.js";
18
+ } from "./chunk-6RRO4GE3.js";
19
+ import "./chunk-JFIEV2J4.js";
20
+ import "./chunk-FV5GKRAO.js";
21
21
  import "./chunk-6JR2XUEE.js";
22
22
  import "./chunk-QXPZGDTI.js";
23
23
  import {
@@ -29,7 +29,7 @@ import {
29
29
  import {
30
30
  CACHE_DIR_NAME,
31
31
  cleanupProxyCache
32
- } from "./chunk-KBVJ6G65.js";
32
+ } from "./chunk-Z6Q4ASCD.js";
33
33
  import "./chunk-ALVXFXUG.js";
34
34
  import {
35
35
  formatBytes
@@ -53,12 +53,12 @@ import {
53
53
  directorySizeBytes,
54
54
  gcExtractionCache,
55
55
  resolveExtractCacheDir
56
- } from "./chunk-T3CBCGU4.js";
56
+ } from "./chunk-L6FG62QM.js";
57
57
  import "./chunk-5S7W3TUO.js";
58
- import "./chunk-IK4Q7EKF.js";
58
+ import "./chunk-UVQLSMAR.js";
59
59
  import "./chunk-RQVDTPGD.js";
60
- import "./chunk-GI2WXOY5.js";
61
- import "./chunk-G5RNOVAV.js";
60
+ import "./chunk-HRZ6ZBKO.js";
61
+ import "./chunk-2ONVJ7NT.js";
62
62
  import "./chunk-VC76R6W2.js";
63
63
  import "./chunk-X7HBSTCZ.js";
64
64
  import "./chunk-XOTUPVIF.js";
@@ -73,7 +73,7 @@ import "./chunk-T6AGUTZJ.js";
73
73
  import "./chunk-XT6MXC7A.js";
74
74
  import "./chunk-K4MJX7SR.js";
75
75
  import "./chunk-4UMPIPCQ.js";
76
- import "./chunk-YUODO5H2.js";
76
+ import "./chunk-IC6BO4GU.js";
77
77
  import "./chunk-VAS6HQX3.js";
78
78
  import "./chunk-6BNTGNGD.js";
79
79
  import "./chunk-CZGHFATT.js";
@@ -86,12 +86,12 @@ import "./chunk-RXATE6FZ.js";
86
86
  import "./chunk-W2LGJSEN.js";
87
87
  import {
88
88
  withMeta
89
- } from "./chunk-SD2IVQXM.js";
89
+ } from "./chunk-4QG64APO.js";
90
90
  import "./chunk-K4WIOZFP.js";
91
- import "./chunk-6NLPPKBO.js";
91
+ import "./chunk-PSX5SF2N.js";
92
92
  import "./chunk-WERLJGIC.js";
93
93
  import "./chunk-ISN5GRYI.js";
94
- import "./chunk-BXXEQFRW.js";
94
+ import "./chunk-OZVRCLEN.js";
95
95
  import "./chunk-T2EUWCJE.js";
96
96
  import "./chunk-KGPLIH7B.js";
97
97
  import "./chunk-M2WBOQ2Q.js";
package/dist/cli.js CHANGED
@@ -42,7 +42,7 @@ import {
42
42
  } from "./chunk-ISN5GRYI.js";
43
43
  import {
44
44
  VERSION
45
- } from "./chunk-BXXEQFRW.js";
45
+ } from "./chunk-OZVRCLEN.js";
46
46
  import "./chunk-M2WBOQ2Q.js";
47
47
 
48
48
  // src/cli.ts
@@ -92,7 +92,7 @@ function guardLeafFlags(cmd, path, ctx, rawArgs) {
92
92
  }
93
93
  async function reportCommandFailure(command2, err) {
94
94
  try {
95
- const { trackCommandFailure } = await import("./events-XEAJVOX2.js");
95
+ const { trackCommandFailure } = await import("./events-LH6W5ZCV.js");
96
96
  trackCommandFailure(command2, err);
97
97
  } catch {
98
98
  }
@@ -172,55 +172,55 @@ async function assertStudioWorkspaceBuilt() {
172
172
  });
173
173
  }
174
174
  var commandLoaders = {
175
- init: () => import("./init-INX5WA2G.js").then((m) => m.default),
176
- add: () => import("./add-5GQIR5OE.js").then((m) => m.default),
177
- catalog: () => import("./catalog-IQKJLTSF.js").then((m) => m.default),
175
+ init: () => import("./init-F4XMU6SV.js").then((m) => m.default),
176
+ add: () => import("./add-7LA5CGDM.js").then((m) => m.default),
177
+ catalog: () => import("./catalog-CM3VXSQE.js").then((m) => m.default),
178
178
  "media-use": () => import("./media-use-JBN57JE3.js").then((m) => m.default),
179
- play: () => import("./play-NWSZMZZG.js").then((m) => m.default),
180
- present: () => import("./present-QFZQ5VRM.js").then((m) => m.default),
181
- preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-GXNG3UOV.js").then((m) => m.default)),
182
- publish: () => import("./publish-X33ZCMFO.js").then((m) => m.default),
183
- open: () => import("./open-A4U2RXCG.js").then((m) => m.default),
184
- "catch-up": () => import("./catch-up-C4JJJNP3.js").then((m) => m.default),
185
- render: () => import("./render-OJEKVJNG.js").then((m) => m.default),
186
- lint: () => import("./lint-SFE43W5P.js").then((m) => m.default),
187
- check: () => import("./check-46Z5CAA4.js").then((m) => m.default),
188
- beats: () => import("./beats-WJPHWDZ6.js").then((m) => m.default),
189
- audio: () => import("./audio-SPB4CLRU.js").then((m) => m.default),
190
- "normalize-audio": () => import("./normalize-audio-F4Q5ZX5R.js").then((m) => m.default),
191
- inspect: () => import("./inspect-SJENYN3F.js").then((m) => m.default),
192
- keyframes: () => import("./keyframes-EAVHD4PM.js").then((m) => m.default),
193
- layout: () => import("./layout-JGCQYWWK.js").then((m) => m.default),
194
- info: () => import("./info-SI2KU7J7.js").then((m) => m.default),
195
- compositions: () => import("./compositions-BDITIWMO.js").then((m) => m.default),
196
- timeline: () => import("./timeline-B2CM5IZO.js").then((m) => m.default),
197
- history: () => import("./history-YD7OKO74.js").then((m) => m.default),
198
- benchmark: () => import("./benchmark-LZVR7PF6.js").then((m) => m.default),
199
- browser: () => import("./browser-QJ3PFVDY.js").then((m) => m.default),
200
- "remove-background": () => import("./remove-background-JAD2RBYP.js").then((m) => m.default),
201
- transcribe: () => import("./transcribe-YJM673R7.js").then((m) => m.default),
179
+ play: () => import("./play-G5777L7A.js").then((m) => m.default),
180
+ present: () => import("./present-4EI2BE4Z.js").then((m) => m.default),
181
+ preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-HYCIDZ52.js").then((m) => m.default)),
182
+ publish: () => import("./publish-UIDHN7KD.js").then((m) => m.default),
183
+ open: () => import("./open-J33KT3G7.js").then((m) => m.default),
184
+ "catch-up": () => import("./catch-up-HMFREOC2.js").then((m) => m.default),
185
+ render: () => import("./render-DT3OCUCV.js").then((m) => m.default),
186
+ lint: () => import("./lint-TVOEGW63.js").then((m) => m.default),
187
+ check: () => import("./check-CYJZ6CGT.js").then((m) => m.default),
188
+ beats: () => import("./beats-I5XARMDB.js").then((m) => m.default),
189
+ audio: () => import("./audio-ZGMIIDNU.js").then((m) => m.default),
190
+ "normalize-audio": () => import("./normalize-audio-23H2MBDP.js").then((m) => m.default),
191
+ inspect: () => import("./inspect-6VXFMQRR.js").then((m) => m.default),
192
+ keyframes: () => import("./keyframes-3U466AWX.js").then((m) => m.default),
193
+ layout: () => import("./layout-B3MXD3F3.js").then((m) => m.default),
194
+ info: () => import("./info-ZWZDG54W.js").then((m) => m.default),
195
+ compositions: () => import("./compositions-EKRLQ5TU.js").then((m) => m.default),
196
+ timeline: () => import("./timeline-WDQCCETQ.js").then((m) => m.default),
197
+ history: () => import("./history-G5B4IPBH.js").then((m) => m.default),
198
+ benchmark: () => import("./benchmark-S2WWY4U7.js").then((m) => m.default),
199
+ browser: () => import("./browser-PAXVQYQZ.js").then((m) => m.default),
200
+ "remove-background": () => import("./remove-background-LPQP4WBN.js").then((m) => m.default),
201
+ transcribe: () => import("./transcribe-Z63Y53GQ.js").then((m) => m.default),
202
202
  usage: () => import("./usage-HG4WMM7A.js").then((m) => m.default),
203
- models: () => import("./models-NZEBSWXZ.js").then((m) => m.default),
203
+ models: () => import("./models-2CCKVBTR.js").then((m) => m.default),
204
204
  tts: () => import("./tts-5I2AJNLM.js").then((m) => m.default),
205
205
  docs: () => import("./docs-UEWLIP6D.js").then((m) => m.default),
206
- doctor: () => import("./doctor-Q7SJW3MZ.js").then((m) => m.default),
207
- clean: () => import("./clean-JM6Y5V2G.js").then((m) => m.default),
208
- upgrade: () => import("./upgrade-WF2CBHOE.js").then((m) => m.default),
209
- skills: () => import("./skills-OMKCU4HZ.js").then((m) => m.default),
210
- feedback: () => import("./feedback-K7I2FQQF.js").then((m) => m.default),
211
- telemetry: () => import("./telemetry-4K6CPMNT.js").then((m) => m.default),
212
- events: () => import("./events-DOABLVUG.js").then((m) => m.default),
213
- validate: () => import("./validate-OHWQ7DQO.js").then((m) => m.default),
214
- snapshot: () => import("./snapshot-J7Y3PCCI.js").then((m) => m.default),
215
- "media-treatment": () => import("./media-treatment-BTA7BV52.js").then((m) => m.mediaTreatmentCommand),
216
- "grade-compare": () => import("./grade-compare-ZWUXB3MD.js").then((m) => m.default),
217
- compare: () => import("./compare-GVTQBP4N.js").then((m) => m.default),
218
- capture: () => import("./capture-IRAYPK52.js").then((m) => m.default),
219
- lambda: () => import("./lambda-323RMLN5.js").then((m) => m.default),
220
- cloudrun: () => import("./cloudrun-HLUQOVRO.js").then((m) => m.default),
221
- cloud: () => import("./cloud-DWKTRWWB.js").then((m) => m.default),
222
- auth: () => import("./auth-WBAB35QA.js").then((m) => m.default),
223
- figma: () => import("./figma-LXJRAIDI.js").then((m) => m.default)
206
+ doctor: () => import("./doctor-NB3G2GDG.js").then((m) => m.default),
207
+ clean: () => import("./clean-QX6LKOWJ.js").then((m) => m.default),
208
+ upgrade: () => import("./upgrade-D5XEX3XE.js").then((m) => m.default),
209
+ skills: () => import("./skills-OVVLZHF5.js").then((m) => m.default),
210
+ feedback: () => import("./feedback-2GNY725M.js").then((m) => m.default),
211
+ telemetry: () => import("./telemetry-IHU4HL3R.js").then((m) => m.default),
212
+ events: () => import("./events-6EL5NIJV.js").then((m) => m.default),
213
+ validate: () => import("./validate-F5BIDZLN.js").then((m) => m.default),
214
+ snapshot: () => import("./snapshot-7NVB5WSO.js").then((m) => m.default),
215
+ "media-treatment": () => import("./media-treatment-RQZ437VS.js").then((m) => m.mediaTreatmentCommand),
216
+ "grade-compare": () => import("./grade-compare-XNY37UYQ.js").then((m) => m.default),
217
+ compare: () => import("./compare-426Z2ND6.js").then((m) => m.default),
218
+ capture: () => import("./capture-OVITDMKK.js").then((m) => m.default),
219
+ lambda: () => import("./lambda-OPSTAEF6.js").then((m) => m.default),
220
+ cloudrun: () => import("./cloudrun-LK4GJWUZ.js").then((m) => m.default),
221
+ cloud: () => import("./cloud-ASA7Y3HA.js").then((m) => m.default),
222
+ auth: () => import("./auth-OQ5PWEUG.js").then((m) => m.default),
223
+ figma: () => import("./figma-X7KKOOXB.js").then((m) => m.default)
224
224
  };
225
225
  var subCommands = Object.fromEntries(
226
226
  Object.entries(commandLoaders).map(([name, load]) => [name, trackCommandFailures(load)])
@@ -244,7 +244,7 @@ var _printStalePinNotice;
244
244
  var _printSkillsUpdateNotice;
245
245
  var telemetryReady = Promise.resolve();
246
246
  if (!isHelp && command !== "telemetry" && command !== "events" && command !== "usage" && command !== "unknown") {
247
- telemetryReady = import("./telemetry-2R6G2A54.js").then((mod) => {
247
+ telemetryReady = import("./telemetry-Q2EHWVO4.js").then((mod) => {
248
248
  _flushSync = mod.flushSync;
249
249
  _trackCliError = mod.trackCliError;
250
250
  _trackCommandResult = mod.trackCommandResult;
@@ -255,24 +255,24 @@ if (!isHelp && command !== "telemetry" && command !== "events" && command !== "u
255
255
  }
256
256
  if (!isHelp && command !== "upgrade" && command !== "events" && command !== "telemetry" && command !== "skills" && command !== "usage") {
257
257
  if (!hasJsonFlag) {
258
- import("./autoUpdate-5VUDX7JO.js").then((mod) => mod.reportCompletedUpdate()).catch(() => {
258
+ import("./autoUpdate-QREPD6I4.js").then((mod) => mod.reportCompletedUpdate()).catch(() => {
259
259
  });
260
- import("./updateCheck-JBIJ7L2D.js").then(async (mod) => {
260
+ import("./updateCheck-MJ6NDE3T.js").then(async (mod) => {
261
261
  _printUpdateNotice = mod.printUpdateNotice;
262
262
  _printStalePinNotice = mod.printStalePinNotice;
263
263
  const result = mod.cachedUpdateCheck();
264
264
  if (result.updateAvailable) {
265
- const auto = await import("./autoUpdate-5VUDX7JO.js").catch(() => null);
265
+ const auto = await import("./autoUpdate-QREPD6I4.js").catch(() => null);
266
266
  auto?.scheduleBackgroundInstall(result.latest, result.current);
267
267
  }
268
268
  }).catch(() => {
269
269
  });
270
270
  }
271
- import("./skillsUpdateCheck-NNURJXBS.js").then((mod) => {
271
+ import("./skillsUpdateCheck-Y2UQA7I5.js").then((mod) => {
272
272
  _printSkillsUpdateNotice = mod.printSkillsUpdateNotice;
273
273
  }).catch(() => {
274
274
  });
275
- import("./backgroundChecks-ATZQQUMR.js").then((mod) => mod.launchBackgroundChecks()).catch(() => {
275
+ import("./backgroundChecks-5CJPJX2O.js").then((mod) => mod.launchBackgroundChecks()).catch(() => {
276
276
  });
277
277
  }
278
278
  var _appHistoryNotice = null;
@@ -393,7 +393,7 @@ process.on("unhandledRejection", (reason) => {
393
393
  emitCliErrorEvent("unhandled_rejection", error);
394
394
  });
395
395
  async function showUsage(cmd, parent) {
396
- const { showUsage: impl } = await import("./help-LEZ3E433.js");
396
+ const { showUsage: impl } = await import("./help-ZXSPZBUG.js");
397
397
  return impl(cmd, parent);
398
398
  }
399
399
  async function showRequestedUsage() {
@@ -55,10 +55,10 @@ ${c.bold("AUTH:")}
55
55
  var cloud_default = defineCommand({
56
56
  meta: { name: "cloud", description: "Render HyperFrames compositions on the HeyGen cloud" },
57
57
  subCommands: {
58
- render: () => import("./render-BZCK6XNT.js").then((m) => m.default),
59
- list: () => import("./list-N2NSYK6G.js").then((m) => m.default),
60
- get: () => import("./get-EDCTYZB6.js").then((m) => m.default),
61
- delete: () => import("./delete-G2MXPSLU.js").then((m) => m.default)
58
+ render: () => import("./render-NZSNQFYW.js").then((m) => m.default),
59
+ list: () => import("./list-M5GQSFVT.js").then((m) => m.default),
60
+ get: () => import("./get-M57U7QCX.js").then((m) => m.default),
61
+ delete: () => import("./delete-KHXM6R7A.js").then((m) => m.default)
62
62
  },
63
63
  async run({ args }) {
64
64
  if (!args._?.[0]) console.log(HELP);
@@ -15,10 +15,10 @@ import {
15
15
  reportVariableIssues,
16
16
  resolveVariablesArg,
17
17
  validateVariablesAgainstProject
18
- } from "./chunk-2C4VIQ2H.js";
18
+ } from "./chunk-UMBCYIFE.js";
19
19
  import {
20
20
  defaultCloudFps
21
- } from "./chunk-DTC4KKFP.js";
21
+ } from "./chunk-AHZLNYZY.js";
22
22
  import "./chunk-K2FLNJVB.js";
23
23
  import "./chunk-442JNXRM.js";
24
24
  import {
@@ -33,9 +33,9 @@ import {
33
33
  import {
34
34
  DISTRIBUTED_FPS,
35
35
  isDistributedFps
36
- } from "./chunk-IK4Q7EKF.js";
36
+ } from "./chunk-UVQLSMAR.js";
37
37
  import "./chunk-RQVDTPGD.js";
38
- import "./chunk-G5RNOVAV.js";
38
+ import "./chunk-2ONVJ7NT.js";
39
39
  import "./chunk-VC76R6W2.js";
40
40
  import "./chunk-X7HBSTCZ.js";
41
41
  import "./chunk-XOTUPVIF.js";