hyperframes 0.8.162 → 0.8.164

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 (153) hide show
  1. package/dist/{add-UW7GCPQF.js → add-5UR2S4ZU.js} +11 -11
  2. package/dist/{animatedGifPrep-YAJTDXB7.js → animatedGifPrep-NUU6VMFL.js} +5 -5
  3. package/dist/api.js +11 -11
  4. package/dist/{asset-TWBPYQOL.js → asset-TB7K7OFL.js} +2 -2
  5. package/dist/{assetCataloger-BIDQA34M.js → assetCataloger-FE4K64GW.js} +27 -7
  6. package/dist/{audio-DJIE4YLH.js → audio-WH3XWV6N.js} +10 -10
  7. package/dist/{auth-VTCEZYBT.js → auth-4BBOL3DI.js} +1 -1
  8. package/dist/{autoUpdate-JA3SV472.js → autoUpdate-7LARILUN.js} +2 -2
  9. package/dist/{backgroundChecks-J3WJDPQJ.js → backgroundChecks-5A5VAWOQ.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-C2JCG5EK.js → batchRender-GJ65EZ26.js} +3 -3
  12. package/dist/{beats-QVJVXZV5.js → beats-EVQOYYYQ.js} +4 -4
  13. package/dist/{benchmark-WNBAKOXS.js → benchmark-5KE22VUG.js} +8 -8
  14. package/dist/{browser-VJOTRIXL.js → browser-BLGJSG23.js} +3 -3
  15. package/dist/{bundleWithLocalizedFonts-SLBVWQ7O.js → bundleWithLocalizedFonts-O3BXZLCD.js} +2 -2
  16. package/dist/{capture-M5ZAD3BI.js → capture-KSXWVLT7.js} +312 -98
  17. package/dist/{capture-GUO23PVN.js → capture-PR52XOEQ.js} +2 -2
  18. package/dist/{catalog-SAC4GFIN.js → catalog-W3AG6ISP.js} +11 -11
  19. package/dist/{catch-up-T5RIRFJF.js → catch-up-JLZUALKW.js} +4 -4
  20. package/dist/{check-IRETF27J.js → check-PGH3VCIR.js} +30 -30
  21. package/dist/{checkBrowser-5IXR4QCK.js → checkBrowser-MNJBUCZD.js} +28 -27
  22. package/dist/{chunk-YLBV2PXM.js → chunk-36CWAWB7.js} +12 -1
  23. package/dist/{chunk-RTS7BGEC.js → chunk-3E3VMAAM.js} +1 -1
  24. package/dist/{chunk-MMV6IY6U.js → chunk-3KY7FUSS.js} +2 -2
  25. package/dist/{chunk-XTLV6UVP.js → chunk-3TKNBY6K.js} +2 -2
  26. package/dist/{chunk-KAKBRDU4.js → chunk-3XJVN7MR.js} +2 -2
  27. package/dist/{chunk-LYIG2GZ5.js → chunk-42AER3PM.js} +1 -1
  28. package/dist/{chunk-B7RUGHBT.js → chunk-4LXWLCIX.js} +1 -1
  29. package/dist/{chunk-T5BG7PYZ.js → chunk-56RENSU4.js} +1 -1
  30. package/dist/{chunk-B5FZ2CQM.js → chunk-57SASPYR.js} +13 -2
  31. package/dist/{chunk-NGKM64BP.js → chunk-5CTORVUM.js} +17 -2
  32. package/dist/{chunk-4ID635FL.js → chunk-5K5YH6M7.js} +1 -1
  33. package/dist/{chunk-T65MIV36.js → chunk-6DJLEE74.js} +3 -3
  34. package/dist/{chunk-GJQHHAAX.js → chunk-74H5SHQL.js} +3 -3
  35. package/dist/{chunk-PLEMSN3E.js → chunk-A356JY2J.js} +29 -19
  36. package/dist/{chunk-OMJA7JP6.js → chunk-AFPGUKMN.js} +4 -4
  37. package/dist/{chunk-RGYEL7QD.js → chunk-AXATVUCD.js} +3 -3
  38. package/dist/{chunk-GG37I7B3.js → chunk-BHGIBGUZ.js} +1 -1
  39. package/dist/{chunk-5YSHR4XC.js → chunk-CXVBPW5F.js} +6 -6
  40. package/dist/{chunk-GIPNECWL.js → chunk-D5PUMG2P.js} +1 -1
  41. package/dist/{chunk-D33YJZOH.js → chunk-DSXDYQQV.js} +1 -1
  42. package/dist/{chunk-3LQEZ4EI.js → chunk-FTFWZHTZ.js} +1 -1
  43. package/dist/{chunk-3NSVHCOH.js → chunk-G3QMPIFG.js} +2 -2
  44. package/dist/{chunk-PPF65XAF.js → chunk-GD7VU7CY.js} +1 -1
  45. package/dist/{chunk-GNFWKGSQ.js → chunk-GJOW6ZFW.js} +2 -2
  46. package/dist/{chunk-ERTJPFCH.js → chunk-H3JGPRWA.js} +1 -1
  47. package/dist/{chunk-EVRUR7DW.js → chunk-H45RC6HN.js} +1 -1
  48. package/dist/{chunk-DJZEIVAP.js → chunk-H46R2BND.js} +1 -1
  49. package/dist/{chunk-NQR5SBXX.js → chunk-HYRDV7AL.js} +1 -1
  50. package/dist/{chunk-XWWYGXJ5.js → chunk-JEW5CCRU.js} +2 -2
  51. package/dist/{chunk-FF5TAEPT.js → chunk-KR3M4GKH.js} +1 -1
  52. package/dist/{chunk-G642IIVK.js → chunk-LMHXUDSR.js} +1 -1
  53. package/dist/{chunk-VXVRPIJA.js → chunk-NOVAH7N4.js} +69 -1
  54. package/dist/{chunk-Q3TFX4OZ.js → chunk-NZ7K76Y2.js} +1 -1
  55. package/dist/{chunk-MP676E4B.js → chunk-O2CXBATN.js} +4 -3
  56. package/dist/{chunk-YJKUE3LV.js → chunk-PRZDWAH3.js} +1 -1
  57. package/dist/{chunk-KIJO75L4.js → chunk-Q4XFXAQ3.js} +18 -4
  58. package/dist/{chunk-N2NDDTYW.js → chunk-QGYAHDOR.js} +2 -2
  59. package/dist/{chunk-2ZLYSXZC.js → chunk-R64V3KQN.js} +10 -9
  60. package/dist/{chunk-PBNV5V5G.js → chunk-SYOB5Y35.js} +191 -3
  61. package/dist/{chunk-ON2HYNGB.js → chunk-UF45OJ3N.js} +6 -6
  62. package/dist/{chunk-S6OLD4SL.js → chunk-UH4IL4K4.js} +7 -7
  63. package/dist/{chunk-P4QE7SSN.js → chunk-ULAB77ZO.js} +1 -1
  64. package/dist/{chunk-YU2QRNWN.js → chunk-UZOZ2W2E.js} +3 -2
  65. package/dist/{chunk-ZEWX3GHP.js → chunk-VEAKQW4X.js} +1 -1
  66. package/dist/{chunk-AAUK5GDI.js → chunk-WE5X5AKF.js} +9 -9
  67. package/dist/{chunk-5K34RPE5.js → chunk-WLQII3K3.js} +2 -2
  68. package/dist/{chunk-JJYFRAI4.js → chunk-WZSWLCEH.js} +1 -1
  69. package/dist/{chunk-GS5EXZBV.js → chunk-XYDPJ3CQ.js} +9 -9
  70. package/dist/{chunk-SB5DX6AD.js → chunk-Z6VBXCYN.js} +2 -2
  71. package/dist/{chunk-P47XYVEQ.js → chunk-ZJO4SLHC.js} +1 -1
  72. package/dist/{clean-WB62QULT.js → clean-R7BXTAFB.js} +11 -11
  73. package/dist/cli.js +68 -60
  74. package/dist/{cloud-E5WB4DWZ.js → cloud-IPXFPX7M.js} +4 -4
  75. package/dist/{cloudrun-BIQXBUDO.js → cloudrun-RMBT2JQK.js} +3 -3
  76. package/dist/commands/layout-audit.browser.js +347 -20
  77. package/dist/{compare-GHFVHZ5A.js → compare-S3RMZBB4.js} +22 -22
  78. package/dist/{compiler-57M6W5WY.js → compiler-RKH75FZH.js} +2 -2
  79. package/dist/{component-ZGCC3MHX.js → component-VSOWEAK4.js} +3 -3
  80. package/dist/{compositions-THPEDDIX.js → compositions-7LPCAY7M.js} +9 -9
  81. package/dist/{delete-6FWT7DZX.js → delete-L32WDJGO.js} +2 -2
  82. package/dist/{dist-4JFB3WAR.js → dist-P5OHBFEV.js} +2 -2
  83. package/dist/{doctor-RDGDOUC4.js → doctor-7TSVAIF2.js} +7 -7
  84. package/dist/{dotEnv-AECLXQSO.js → dotEnv-64S3VKGH.js} +3 -1
  85. package/dist/{events-CU6FDXHC.js → events-FDHKA6NV.js} +3 -3
  86. package/dist/{events-VHXICDA2.js → events-RFABFHWU.js} +2 -2
  87. package/dist/{feedback-PUPN6EKP.js → feedback-SDAJ2HAM.js} +7 -7
  88. package/dist/{figma-ZKWBF7QH.js → figma-KJBYCHXQ.js} +3 -3
  89. package/dist/fontLocalizeCli.js +7 -7
  90. package/dist/{get-JHIBQRPM.js → get-6Z3JCPJ6.js} +2 -2
  91. package/dist/{gpuPolicy-VGE3I5J4.js → gpuPolicy-SYV7N237.js} +5 -5
  92. package/dist/{grade-compare-GPLUXDPW.js → grade-compare-HAQXCQSE.js} +22 -22
  93. package/dist/{help-GO6RGM37.js → help-WMMVG2PR.js} +1 -1
  94. package/dist/{history-RUTC4SH5.js → history-5AQNASLD.js} +6 -6
  95. package/dist/hyperframe-runtime.js +23 -23
  96. package/dist/hyperframe.manifest.json +1 -1
  97. package/dist/hyperframe.runtime.iife.js +23 -23
  98. package/dist/hyperframes-player.global.js +1 -1
  99. package/dist/{info-773VXW37.js → info-OUJ3HXTN.js} +7 -7
  100. package/dist/{init-YXSIRYZI.js → init-NEEYHH7E.js} +20 -20
  101. package/dist/{inspect-L4RRJEAA.js → inspect-ZWBDYWTY.js} +23 -23
  102. package/dist/{installer-T3STEB4U.js → installer-QWK7EA5M.js} +4 -4
  103. package/dist/{keyframes-P5IOQ6AM.js → keyframes-BA5R5Q7G.js} +6 -6
  104. package/dist/{lambda-RAJA6ZNA.js → lambda-LQHGF3LK.js} +4 -4
  105. package/dist/{layout-OH2VTN5E.js → layout-GJVLRWIJ.js} +23 -23
  106. package/dist/{lint-YEEPVE6Q.js → lint-FBH2BA2A.js} +6 -6
  107. package/dist/{list-QURRZTVN.js → list-XDZIX2PU.js} +2 -2
  108. package/dist/{login-DFT4L5YY.js → login-CUHIF5GP.js} +4 -4
  109. package/dist/{media-treatment-ERQ2PBIN.js → media-treatment-HZDD67IL.js} +8 -8
  110. package/dist/{models-OA4MXEYG.js → models-J2FZXHMD.js} +8 -8
  111. package/dist/{motionShot-C2YDYRNB.js → motionShot-D2C44I6P.js} +11 -11
  112. package/dist/{normalize-audio-R23VODOA.js → normalize-audio-B6PKQGHV.js} +4 -4
  113. package/dist/{open-GEOB4L3S.js → open-EIN2FH4D.js} +4 -4
  114. package/dist/{parakeetRunner-DBLHMD5T.js → parakeetRunner-NDIU5PKO.js} +8 -8
  115. package/dist/{pipeline-FSY65OQ4.js → pipeline-UKGI44NN.js} +5 -5
  116. package/dist/{play-BYUS37GA.js → play-KLOHE5XH.js} +16 -16
  117. package/dist/{present-BZLRNHDY.js → present-4K53KZ3P.js} +12 -12
  118. package/dist/{preview-TXML6PQ7.js → preview-PSALQBNR.js} +15 -15
  119. package/dist/{producer-C5V2A3YL.js → producer-66MQWVVQ.js} +1 -1
  120. package/dist/{projectConfig-X2IEHCSK.js → projectConfig-EVBNJKPS.js} +6 -6
  121. package/dist/{publication-JEANCWBW.js → publication-F6BOBZMI.js} +2 -2
  122. package/dist/{publish-VX5OH4ST.js → publish-6KTQDKL6.js} +8 -8
  123. package/dist/{remove-background-IXCISD26.js → remove-background-TJTKY3YM.js} +6 -6
  124. package/dist/{render-57SXH6NS.js → render-2QY3DTYM.js} +42 -29
  125. package/dist/{render-JTY7XQFQ.js → render-NAJFHWUG.js} +9 -9
  126. package/dist/{render-ISUT7Q3X.js → render-X4MWSR5L.js} +3 -3
  127. package/dist/{render-batch-2C6RUP3F.js → render-batch-VKFOIMV5.js} +3 -3
  128. package/dist/{resolver-KTNKZVIB.js → resolver-VGAM26OR.js} +4 -4
  129. package/dist/{sherpa-GFRG3TMM.js → sherpa-3OI5VMCY.js} +9 -7
  130. package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
  131. package/dist/{skills-2LBVMKVY.js → skills-ETYVJOLG.js} +5 -5
  132. package/dist/{skillsUpdateCheck-5DRXL565.js → skillsUpdateCheck-6P4VCFZZ.js} +3 -3
  133. package/dist/{snapshot-V2L77FCF.js → snapshot-P3RZFXUC.js} +25 -25
  134. package/dist/{src-GPUDUKY6.js → src-LZXECBBQ.js} +4 -4
  135. package/dist/{src-IMCQRH4P.js → src-RQPKPFRO.js} +6 -6
  136. package/dist/{staticProjectServer-4CQ3KDQK.js → staticProjectServer-DMG2CER4.js} +12 -12
  137. package/dist/studio/assets/{hyperframes-player-CAclPB6q.js → hyperframes-player-CQX9TDla.js} +1 -1
  138. package/dist/studio/assets/{index-DCwGKghK.js → index-BnU7S7oM.js} +1 -1
  139. package/dist/studio/assets/{index-B82aOvgB.js → index-DHqUZqg6.js} +4 -4
  140. package/dist/studio/index.html +1 -1
  141. package/dist/{studio-api-RYCDLEOR.js → studio-api-KRPBPUYQ.js} +6 -6
  142. package/dist/{studioServer-B7H7EQ4U.js → studioServer-HF6ZCYQO.js} +54 -41
  143. package/dist/{telemetry-WVHWY3DU.js → telemetry-ASFTF5YV.js} +3 -3
  144. package/dist/{timeline-EDXJ5L45.js → timeline-H7Q2K6ZQ.js} +13 -13
  145. package/dist/{tokens-UNJONAXT.js → tokens-LWCXLQCR.js} +2 -2
  146. package/dist/{transcribe-FL6NGWHF.js → transcribe-HOLKYWY5.js} +6 -6
  147. package/dist/{transcribe-VX7ZE2IZ.js → transcribe-X2GOG3HZ.js} +12 -12
  148. package/dist/{updateCheck-NLH5E44Q.js → updateCheck-EA7X36NI.js} +2 -2
  149. package/dist/{upgrade-RGQJA2B4.js → upgrade-Y6H3ZEEJ.js} +2 -2
  150. package/dist/{urlDownloader-KDJGLR2Y.js → urlDownloader-Z435W35E.js} +4 -4
  151. package/dist/{validate-4AN4PDV7.js → validate-TZAB2PVX.js} +17 -17
  152. package/dist/{video-AHO4CDCK.js → video-LNLD2PKZ.js} +5 -5
  153. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  extractMediaMetadata,
19
19
  resolveReferencedDuration,
20
20
  resolveReferencedStart
21
- } from "./chunk-PLEMSN3E.js";
21
+ } from "./chunk-A356JY2J.js";
22
22
  import {
23
23
  byStart,
24
24
  compositionOriginSeconds,
@@ -27,14 +27,14 @@ import {
27
27
  hostInPointSeconds,
28
28
  parseFpsWithDefault,
29
29
  resolveMediaStartSeconds
30
- } from "./chunk-Q3TFX4OZ.js";
30
+ } from "./chunk-NZ7K76Y2.js";
31
31
  import {
32
32
  HF_AUDIO_AUTOMATION_ATTR,
33
33
  HF_AUDIO_FX_ATTR,
34
34
  parseAudioFxChain,
35
35
  parseAutomation,
36
36
  resolveAutomation
37
- } from "./chunk-P47XYVEQ.js";
37
+ } from "./chunk-ZJO4SLHC.js";
38
38
  import {
39
39
  topLevelElements,
40
40
  trackKindOf
@@ -30,7 +30,7 @@ import {
30
30
  renderFrameIdForRenderId,
31
31
  resolveAuthoredTimingWindow,
32
32
  toFps
33
- } from "./chunk-Q3TFX4OZ.js";
33
+ } from "./chunk-NZ7K76Y2.js";
34
34
  import {
35
35
  AUDIO_GROUP_RENDER_ID_ATTR,
36
36
  COLOR_GRADING_SOURCE_HIDDEN_ATTR,
@@ -59,7 +59,7 @@ import {
59
59
  shiftRateLane,
60
60
  sourceTimeAt,
61
61
  timeAtSourceTime
62
- } from "./chunk-P47XYVEQ.js";
62
+ } from "./chunk-ZJO4SLHC.js";
63
63
  import {
64
64
  clampAudioGain,
65
65
  isAudibleVideoElement
@@ -8051,8 +8051,12 @@ ${tail}` : `FFmpeg exited with code ${exitCode}`;
8051
8051
  }
8052
8052
  function describeFfmpegFailure(result, timeoutMs) {
8053
8053
  const error = formatFfmpegError(result.exitCode, result.stderr);
8054
- if (result.terminationReason !== "deadline") return error;
8055
- return `FFmpeg timed out after ${timeoutMs} ms (ffmpegProcessTimeout; long renders can raise FFMPEG_PROCESS_TIMEOUT_MS). ${error}`;
8054
+ if (result.terminationReason === "deadline") {
8055
+ return `FFmpeg timed out after ${timeoutMs} ms (ffmpegProcessTimeout; long renders can raise FFMPEG_PROCESS_TIMEOUT_MS). ${error}`;
8056
+ }
8057
+ if (result.exitCode !== null) return error;
8058
+ const signalOrRequestedStop = result.terminationReason === "exit" ? result.signal : result.terminationReason;
8059
+ return signalOrRequestedStop ? `FFmpeg ended without an exit code (${signalOrRequestedStop}). ${error}` : error;
8056
8060
  }
8057
8061
  function spawnFfmpeg(args) {
8058
8062
  const ffmpeg = spawn2(getFfmpegBinary(), args, { windowsHide: true });
@@ -15368,6 +15372,7 @@ async function mixThroughMasterBus(tracks, masterChain, outputPath, workDir, tot
15368
15372
  async function processCompositionAudio(elements, baseDir, workDir, outputPath, totalDuration, signal, config, compiledDir) {
15369
15373
  const startMs = Date.now();
15370
15374
  const tracks = [];
15375
+ const preparedTracks = new Array(elements.length);
15371
15376
  const failures = [];
15372
15377
  const groupTracks = /* @__PURE__ */ new Map();
15373
15378
  const groupMeta = /* @__PURE__ */ new Map();
@@ -15379,7 +15384,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
15379
15384
  else signal.addEventListener("abort", () => internalController.abort(), { once: true });
15380
15385
  }
15381
15386
  await Promise.all(
15382
- elements.map(async (element) => {
15387
+ elements.map(async (element, index) => {
15383
15388
  if (effectiveSignal.aborted) {
15384
15389
  failures.push({
15385
15390
  stage: "cancelled",
@@ -15559,20 +15564,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
15559
15564
  ...element.fadeOut ? { fadeOut: element.fadeOut } : {},
15560
15565
  ...tailSeconds > 0 ? { tailSeconds } : {}
15561
15566
  };
15562
- if (element.groupId) {
15563
- const bucket = groupTracks.get(element.groupId);
15564
- if (bucket) bucket.push(track);
15565
- else groupTracks.set(element.groupId, [track]);
15566
- if (!groupMeta.has(element.groupId)) {
15567
- groupMeta.set(element.groupId, {
15568
- ...element.groupFxChain ? { fxChain: element.groupFxChain } : {},
15569
- ...element.groupAutomation ? { automation: element.groupAutomation } : {},
15570
- volume: element.groupVolume ?? 1
15571
- });
15572
- }
15573
- } else {
15574
- tracks.push(track);
15575
- }
15567
+ preparedTracks[index] = track;
15576
15568
  } catch (err) {
15577
15569
  if (err instanceof AudioFxRenderError) throw err;
15578
15570
  failures.push({
@@ -15595,6 +15587,24 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
15595
15587
  }
15596
15588
  throw err;
15597
15589
  });
15590
+ elements.forEach((element, index) => {
15591
+ const track = preparedTracks[index];
15592
+ if (!track) return;
15593
+ if (element.groupId) {
15594
+ const bucket = groupTracks.get(element.groupId);
15595
+ if (bucket) bucket.push(track);
15596
+ else groupTracks.set(element.groupId, [track]);
15597
+ if (!groupMeta.has(element.groupId)) {
15598
+ groupMeta.set(element.groupId, {
15599
+ ...element.groupFxChain ? { fxChain: element.groupFxChain } : {},
15600
+ ...element.groupAutomation ? { automation: element.groupAutomation } : {},
15601
+ volume: element.groupVolume ?? 1
15602
+ });
15603
+ }
15604
+ } else {
15605
+ tracks.push(track);
15606
+ }
15607
+ });
15598
15608
  const removeWorkDir = () => {
15599
15609
  try {
15600
15610
  rmSync7(workDir, { recursive: true, force: true });
@@ -6,21 +6,21 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parakeetRunner
9
- } from "./chunk-RTS7BGEC.js";
9
+ } from "./chunk-3E3VMAAM.js";
10
10
  import {
11
11
  DecodeCancelled,
12
12
  prepareSherpaWav,
13
13
  sherpaUnsupportedReason,
14
14
  transcribeWithSherpa
15
- } from "./chunk-MP676E4B.js";
15
+ } from "./chunk-O2CXBATN.js";
16
16
  import {
17
17
  initialModelForLanguage,
18
18
  transcribe
19
- } from "./chunk-DJZEIVAP.js";
19
+ } from "./chunk-H46R2BND.js";
20
20
  import {
21
21
  createRenderCancellationScope,
22
22
  stoppedByCancelSignal
23
- } from "./chunk-G642IIVK.js";
23
+ } from "./chunk-LMHXUDSR.js";
24
24
  import {
25
25
  formatSrt,
26
26
  formatVtt,
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-5YSHR4XC.js";
10
+ } from "./chunk-CXVBPW5F.js";
11
11
  import {
12
12
  PROXY_VARIANT_CONFIG,
13
13
  ProxyCapacityError,
@@ -18,10 +18,10 @@ import {
18
18
  recordProxyRequest,
19
19
  resolveProxy,
20
20
  resolveProxyVariantRequest
21
- } from "./chunk-4ID635FL.js";
21
+ } from "./chunk-5K5YH6M7.js";
22
22
  import {
23
23
  resolveAutoProxy
24
- } from "./chunk-GG37I7B3.js";
24
+ } from "./chunk-BHGIBGUZ.js";
25
25
  import {
26
26
  decodeWellFormedEscapes
27
27
  } from "./chunk-BSQ7XANM.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-HVW7ABXD.js";
13
13
  import {
14
14
  DEFAULT_REGISTRY_URL
15
- } from "./chunk-EVRUR7DW.js";
15
+ } from "./chunk-H45RC6HN.js";
16
16
 
17
17
  // src/utils/projectConfig.ts
18
18
  import { readFileSync, writeFileSync } from "fs";
@@ -19,7 +19,7 @@ import {
19
19
  splitElementInHtml,
20
20
  unwrapElementsFromHtml,
21
21
  wrapElementsInHtml
22
- } from "./chunk-GIPNECWL.js";
22
+ } from "./chunk-D5PUMG2P.js";
23
23
  import {
24
24
  MEDIA_LINK_ATTR,
25
25
  relinkSplitHalves
@@ -54,7 +54,7 @@ import {
54
54
  scanProjectMediaCodecMap,
55
55
  shouldPrewarmProxy,
56
56
  waitForProxy
57
- } from "./chunk-4ID635FL.js";
57
+ } from "./chunk-5K5YH6M7.js";
58
58
  import {
59
59
  MAX_WINDOW_IDLE_MS,
60
60
  STUDIO_SIGNATURE_MANIFEST_PATHS,
@@ -103,7 +103,7 @@ import {
103
103
  } from "./chunk-EOVYQ3IG.js";
104
104
  import {
105
105
  addScenePartsManifest
106
- } from "./chunk-LYIG2GZ5.js";
106
+ } from "./chunk-42AER3PM.js";
107
107
  import {
108
108
  ensureHfIds,
109
109
  stampHfIdsInPlace
@@ -117,7 +117,7 @@ import {
117
117
  parseFps,
118
118
  parsePreviewProxyBox,
119
119
  sameInstant
120
- } from "./chunk-Q3TFX4OZ.js";
120
+ } from "./chunk-NZ7K76Y2.js";
121
121
  import {
122
122
  AFTER_FONTS_SCRIPT_TYPE,
123
123
  RUNTIME_BOOTSTRAP_ATTR,
@@ -131,7 +131,7 @@ import {
131
131
  resolveRateSpec,
132
132
  sourceTimeAt,
133
133
  stripEmbeddedRuntimeScripts
134
- } from "./chunk-P47XYVEQ.js";
134
+ } from "./chunk-ZJO4SLHC.js";
135
135
  import {
136
136
  HTML_ATTRIBUTE_ENTITIES,
137
137
  MagicString,
@@ -5495,7 +5495,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
5495
5495
  let block = extractGsapScriptBlock(html);
5496
5496
  if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
5497
5497
  const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
5498
- const { GSAP_CDN } = await import("./dist-4JFB3WAR.js");
5498
+ const { GSAP_CDN } = await import("./dist-P5OHBFEV.js");
5499
5499
  const bootstrap = [
5500
5500
  `<script src="${GSAP_CDN}"></script>`,
5501
5501
  "<script>",
@@ -17,7 +17,7 @@ import {
17
17
  isAllowedHtmlAttribute,
18
18
  isSafeAttributeValue,
19
19
  sanitizeRichTextChildren
20
- } from "./chunk-Q3TFX4OZ.js";
20
+ } from "./chunk-NZ7K76Y2.js";
21
21
  import {
22
22
  decodedUrlPath,
23
23
  removeElementWithGsapCascade
@@ -8,7 +8,7 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemManifest,
10
10
  fetchRegistryManifest
11
- } from "./chunk-EVRUR7DW.js";
11
+ } from "./chunk-H45RC6HN.js";
12
12
 
13
13
  // src/registry/resolver.ts
14
14
  function defaultWarn(message) {
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
1278
1278
  } catch (err) {
1279
1279
  if (err instanceof Error) {
1280
1280
  try {
1281
- const { trackCommandFailure } = await import("./events-CU6FDXHC.js");
1281
+ const { trackCommandFailure } = await import("./events-FDHKA6NV.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/version.ts
9
- var VERSION = true ? "0.8.162" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.8.162" : "0.0.0-dev";
9
+ var VERSION = true ? "0.8.164" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.8.164" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -10,7 +10,7 @@ import {
10
10
  isDevice,
11
11
  isQuality,
12
12
  render
13
- } from "./chunk-XTLV6UVP.js";
13
+ } from "./chunk-3TKNBY6K.js";
14
14
 
15
15
  // src/api/removeBackground.ts
16
16
  import { resolve } from "path";
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  trackLintReport,
9
9
  trackLintRuleStreak
10
- } from "./chunk-YLBV2PXM.js";
10
+ } from "./chunk-36CWAWB7.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-ZEWX3GHP.js";
13
+ } from "./chunk-VEAKQW4X.js";
14
14
  import {
15
15
  LINT_RULE_COUNT,
16
16
  LINT_RULE_GROUP_COUNTS
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-PBN6GBJE.js";
16
16
  import {
17
17
  parseFps
18
- } from "./chunk-Q3TFX4OZ.js";
18
+ } from "./chunk-NZ7K76Y2.js";
19
19
 
20
20
  // src/browser/windowsCrash.ts
21
21
  var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-GMECXFAN.js";
28
28
  import {
29
29
  ITEM_TYPE_DIRS
30
- } from "./chunk-Q3TFX4OZ.js";
30
+ } from "./chunk-NZ7K76Y2.js";
31
31
  import {
32
32
  realProjectRoot
33
33
  } from "./chunk-OFQWTKPW.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  stoppedByCancelSignal
9
- } from "./chunk-G642IIVK.js";
9
+ } from "./chunk-LMHXUDSR.js";
10
10
  import {
11
11
  DEFAULT_MODEL,
12
12
  ensureModel,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-3NSVHCOH.js";
9
+ } from "./chunk-G3QMPIFG.js";
10
10
 
11
11
  // src/registry/compatibility.ts
12
12
  import { compareVersions } from "compare-versions";
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType
9
- } from "./chunk-5YSHR4XC.js";
9
+ } from "./chunk-CXVBPW5F.js";
10
10
  import {
11
11
  injectTagsAtHeadStart
12
- } from "./chunk-P47XYVEQ.js";
12
+ } from "./chunk-ZJO4SLHC.js";
13
13
 
14
14
  // src/utils/compositionServer.ts
15
15
  import { createHash } from "crypto";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  withOwner
9
- } from "./chunk-JJYFRAI4.js";
9
+ } from "./chunk-WZSWLCEH.js";
10
10
  import {
11
11
  beginArtifactCapture
12
12
  } from "./chunk-JGYHWVXQ.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  setHostHandlesSigint
9
- } from "./chunk-PLEMSN3E.js";
9
+ } from "./chunk-A356JY2J.js";
10
10
  import {
11
11
  processAncestorSnapshot,
12
12
  processIdentity,
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ shouldTrack
9
+ } from "./chunk-VEAKQW4X.js";
7
10
 
8
11
  // src/telemetry/renderObservability.ts
9
12
  function renderObservabilityTelemetryPayload(observability) {
@@ -99,7 +102,72 @@ function renderJobObservabilityTelemetryPayload(job) {
99
102
  };
100
103
  }
101
104
 
105
+ // src/telemetry/renderCpu.ts
106
+ import { cpus, loadavg, platform } from "os";
107
+ var SAMPLE_INTERVAL_MS = 2e3;
108
+ var BUSY_CORE_PCT = 80;
109
+ function readCoreTimes() {
110
+ return cpus().map(({ times }) => {
111
+ const total = times.user + times.nice + times.sys + times.idle + times.irq;
112
+ return { busy: total - times.idle, total };
113
+ });
114
+ }
115
+ function busyBetween(from, to) {
116
+ let busy = 0;
117
+ let total = 0;
118
+ let coresBusy = 0;
119
+ to.forEach((core, i) => {
120
+ const before = from[i];
121
+ if (!before) return;
122
+ const dBusy = core.busy - before.busy;
123
+ const dTotal = core.total - before.total;
124
+ if (dTotal <= 0) return;
125
+ busy += dBusy;
126
+ total += dTotal;
127
+ if (dBusy / dTotal * 100 >= BUSY_CORE_PCT) coresBusy++;
128
+ });
129
+ return total > 0 ? { pct: Math.round(busy / total * 100), coresBusy } : null;
130
+ }
131
+ function readLoadAvg() {
132
+ if (platform() === "win32") return void 0;
133
+ return Math.round((loadavg()[0] ?? 0) * 100) / 100;
134
+ }
135
+ var DISABLED = { stop: () => ({}) };
136
+ function startRenderCpuSampler(requesterOptedIn = true) {
137
+ if (!requesterOptedIn || !shouldTrack()) return DISABLED;
138
+ const start = readCoreTimes();
139
+ const loadAvgStart = readLoadAvg();
140
+ let last = start;
141
+ let peak = null;
142
+ const sample = () => {
143
+ const now = readCoreTimes();
144
+ const window = busyBetween(last, now);
145
+ if (window && (!peak || window.pct > peak.pct)) peak = window;
146
+ last = now;
147
+ };
148
+ const timer = setInterval(sample, SAMPLE_INTERVAL_MS);
149
+ timer.unref?.();
150
+ let result;
151
+ return {
152
+ stop() {
153
+ if (result) return result;
154
+ clearInterval(timer);
155
+ sample();
156
+ const avg = busyBetween(start, last);
157
+ result = {
158
+ cpuBusyAvgPct: avg?.pct,
159
+ cpuBusyPeakPct: peak?.pct,
160
+ cpuCoresBusyPeak: peak?.coresBusy,
161
+ loadAvgStart,
162
+ loadAvgEnd: readLoadAvg()
163
+ };
164
+ return result;
165
+ }
166
+ };
167
+ }
168
+
102
169
  export {
103
170
  renderObservabilityTelemetryPayload,
104
- renderJobObservabilityTelemetryPayload
171
+ renderJobObservabilityTelemetryPayload,
172
+ startRenderCpuSampler
105
173
  };
@@ -9,7 +9,7 @@ import {
9
9
  parseStrictFiniteTimingNumber,
10
10
  resolveNaturalMediaTimelineDuration,
11
11
  resolveTimedImageDurationSeconds
12
- } from "./chunk-P47XYVEQ.js";
12
+ } from "./chunk-ZJO4SLHC.js";
13
13
  import {
14
14
  CANVAS_DIMENSIONS,
15
15
  isCompositionElement,
@@ -21,10 +21,10 @@ import {
21
21
  emitWords,
22
22
  getPreparedWavDurationSeconds,
23
23
  prepareWav
24
- } from "./chunk-DJZEIVAP.js";
24
+ } from "./chunk-H46R2BND.js";
25
25
  import {
26
26
  stoppedByCancelSignal
27
- } from "./chunk-G642IIVK.js";
27
+ } from "./chunk-LMHXUDSR.js";
28
28
  import {
29
29
  PARAKEET_MODEL_LABEL,
30
30
  SHERPA_ERROR_PREFIX,
@@ -79,7 +79,7 @@ var PARAKEET_MODEL_FILES = [
79
79
  sha256: "d58544679ea4bc6ac563d1f545eb7d474bd6cfa467f0a6e2c1dc1c7d37e3c35d"
80
80
  }
81
81
  ];
82
- var decodeTimeoutMs = (audioSeconds) => Math.max(18e5, audioSeconds * 2e3);
82
+ var decodeTimeoutMs = (audioSeconds) => Math.min(2 ** 31 - 1, Math.max(18e5, Math.ceil(audioSeconds * 2e3)));
83
83
  var SUPPORTED_TARGETS = [
84
84
  "darwin-arm64",
85
85
  "darwin-x64",
@@ -381,6 +381,7 @@ async function transcribeWithSherpa(wavPath, dir, options) {
381
381
  export {
382
382
  SHERPA_RUNTIME_DIR,
383
383
  PARAKEET_MODEL_DIR,
384
+ decodeTimeoutMs,
384
385
  sherpaUnsupportedReason,
385
386
  sherpaRuntimeLoadError,
386
387
  sherpaPlatformPackage,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-K2FLNJVB.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-YLBV2PXM.js";
12
+ } from "./chunk-36CWAWB7.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-PBN6GBJE.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  updateNoticesSuppressed
9
- } from "./chunk-T5BG7PYZ.js";
9
+ } from "./chunk-56RENSU4.js";
10
10
  import {
11
11
  hostAnswers
12
12
  } from "./chunk-K4WIOZFP.js";
@@ -66,14 +66,28 @@ var FALLBACK_CORE_SKILLS = [
66
66
  "hyperframes-studio",
67
67
  "media-use"
68
68
  ];
69
+ var RUNTIME_DIRS = /* @__PURE__ */ new Set([
70
+ "__pycache__",
71
+ ".pytest_cache",
72
+ ".mypy_cache",
73
+ ".ruff_cache",
74
+ "node_modules"
75
+ ]);
76
+ var RUNTIME_FILES = /* @__PURE__ */ new Set([".DS_Store", "Thumbs.db"]);
77
+ var RUNTIME_FILE_SUFFIXES = [".pyc", ".pyo", ".swp", ".swo", "~"];
78
+ function isRuntimeFile(name) {
79
+ return RUNTIME_FILES.has(name) || RUNTIME_FILE_SUFFIXES.some((s) => name.endsWith(s));
80
+ }
69
81
  function listFilesSorted(dir) {
70
82
  const out = [];
71
83
  const walk = (d) => {
72
84
  for (const name of readdirSync(d)) {
73
- if (name === ".DS_Store") continue;
74
85
  const p = join(d, name);
75
- if (statSync(p).isDirectory()) walk(p);
76
- else out.push(p);
86
+ if (statSync(p).isDirectory()) {
87
+ if (!RUNTIME_DIRS.has(name)) walk(p);
88
+ } else if (!isRuntimeFile(name)) {
89
+ out.push(p);
90
+ }
77
91
  }
78
92
  };
79
93
  walk(dir);
@@ -8,14 +8,14 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-EVRUR7DW.js";
11
+ } from "./chunk-H45RC6HN.js";
12
12
  import {
13
13
  publishRegistryFile,
14
14
  registryTargetPath
15
15
  } from "./chunk-GMECXFAN.js";
16
16
  import {
17
17
  validateVariables
18
- } from "./chunk-Q3TFX4OZ.js";
18
+ } from "./chunk-NZ7K76Y2.js";
19
19
  import {
20
20
  realProjectRoot
21
21
  } from "./chunk-OFQWTKPW.js";