hyperframes 0.8.202 → 0.8.204

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-YC7QXNDO.js → add-HBFVYKGU.js} +15 -13
  2. package/dist/{animatedGifPrep-SFHFVFFE.js → animatedGifPrep-VBUKGEZ6.js} +11 -9
  3. package/dist/api.js +23 -21
  4. package/dist/{asset-5E5BQ6BR.js → asset-OVLMJY4S.js} +4 -3
  5. package/dist/{assetCataloger-F6YSU3H6.js → assetCataloger-K4INCLFU.js} +11 -9
  6. package/dist/{audio-UZKBYVZ5.js → audio-JHW3HLHK.js} +21 -19
  7. package/dist/{auth-5DWW5DMO.js → auth-RH67KQMZ.js} +1 -1
  8. package/dist/{autoUpdate-D6HTQGOE.js → autoUpdate-JYR2RW5Z.js} +2 -2
  9. package/dist/{backgroundChecks-FW4MBBK2.js → backgroundChecks-DPHRM4HJ.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-DXD5THWY.js → batchRender-JFUWZR3M.js} +8 -6
  12. package/dist/{beats-WRF4CRL7.js → beats-AWAFZGOT.js} +13 -11
  13. package/dist/{benchmark-NDCR2AAG.js → benchmark-VQCCULJ2.js} +12 -10
  14. package/dist/{browser-KSG6M66G.js → browser-TT5L7D32.js} +3 -3
  15. package/dist/{bundleWithLocalizedFonts-GJ2UYZ6E.js → bundleWithLocalizedFonts-EHXEP5ZL.js} +4 -4
  16. package/dist/{capture-FRVDEVPB.js → capture-5CM2P6CB.js} +14 -12
  17. package/dist/{capture-DTF47QX3.js → capture-Y7TGR3BI.js} +2 -2
  18. package/dist/{captureCompositionFrame-IC3MEOJR.js → captureCompositionFrame-LIT6U6C4.js} +16 -15
  19. package/dist/{catalog-TX3BMPOA.js → catalog-WZN2XB7D.js} +15 -13
  20. package/dist/{catch-up-YMVIJI2W.js → catch-up-WZMQUW5H.js} +4 -4
  21. package/dist/{check-2LBOZR6Z.js → check-YVJCDCJS.js} +40 -39
  22. package/dist/{checkBrowser-56C73ZNX.js → checkBrowser-7V2DGDVD.js} +36 -33
  23. package/dist/{chunk-24PUQCZO.js → chunk-23RPCDGE.js} +2 -2
  24. package/dist/{chunk-OJDOYHPQ.js → chunk-2756LXGY.js} +1 -1
  25. package/dist/chunk-2RY2LWAA.js +3466 -0
  26. package/dist/{chunk-WAXBJLV6.js → chunk-34VLVDOU.js} +3 -3
  27. package/dist/{chunk-B7CYKBXQ.js → chunk-3CISA3OS.js} +1 -1
  28. package/dist/{chunk-ABTBAQDB.js → chunk-3GPDAE3D.js} +1 -1
  29. package/dist/{chunk-5KPZ4QAS.js → chunk-4CR23IYU.js} +7 -7
  30. package/dist/{chunk-DMZ3SCCU.js → chunk-4HJMZI4H.js} +140 -31
  31. package/dist/{chunk-PI256PSW.js → chunk-54FO6TN7.js} +149 -23
  32. package/dist/{chunk-MO4VKSFT.js → chunk-54K7HW46.js} +1 -1
  33. package/dist/{chunk-7KGCJQGS.js → chunk-5RJSWYWL.js} +2 -2
  34. package/dist/{chunk-REUZB3HL.js → chunk-5UW7WCHQ.js} +8 -8
  35. package/dist/{chunk-LEQU6P6H.js → chunk-65VFH2UV.js} +7 -3
  36. package/dist/{chunk-QXQ74PYD.js → chunk-6KZY5RSV.js} +2 -2
  37. package/dist/{chunk-CFUCHO4T.js → chunk-6MUI2H6P.js} +1 -1
  38. package/dist/{chunk-3HTXEXQ6.js → chunk-6RLP6RDE.js} +1 -1
  39. package/dist/{chunk-UMGDRGF5.js → chunk-7PRESGFT.js} +3 -3
  40. package/dist/{chunk-AQLRXGNN.js → chunk-7RB4I2E6.js} +5 -5
  41. package/dist/{chunk-QZTFCWG7.js → chunk-AII6P2TC.js} +1 -1
  42. package/dist/{chunk-ANH7DV34.js → chunk-AQS3MMEQ.js} +23 -20
  43. package/dist/{chunk-DYDFCX4L.js → chunk-CXZDIWMK.js} +1 -1
  44. package/dist/{chunk-AQVLMH5C.js → chunk-D3EZHD2D.js} +1 -1
  45. package/dist/{chunk-MS4BAXOQ.js → chunk-D5CAZ7R4.js} +2 -2
  46. package/dist/{chunk-4OPDZMV6.js → chunk-DBF6LLXB.js} +1 -1
  47. package/dist/{chunk-IKX2UHEM.js → chunk-DRDG46KK.js} +13 -13
  48. package/dist/{chunk-JNBHYUEU.js → chunk-DTV3VHFE.js} +5 -5
  49. package/dist/{chunk-REFMKHRE.js → chunk-EF7R5EBJ.js} +9 -9
  50. package/dist/{chunk-LMRTEJYY.js → chunk-EUFBE5BW.js} +2 -2
  51. package/dist/chunk-FR7YBU3H.js +179 -0
  52. package/dist/{chunk-GZCACSED.js → chunk-GGEA5EHR.js} +1 -1
  53. package/dist/{chunk-SDYDNHEE.js → chunk-GWTIFRF5.js} +262 -3711
  54. package/dist/{chunk-QDEZ7LRH.js → chunk-HBDQGIQA.js} +2 -2
  55. package/dist/{chunk-CV32PRH3.js → chunk-IDASYE4U.js} +5 -3
  56. package/dist/{chunk-JCS7WFRM.js → chunk-IJ6RY4CH.js} +5 -6
  57. package/dist/{chunk-PYS6IKKM.js → chunk-KOBPUFCN.js} +1 -1
  58. package/dist/{chunk-IB6ICAI7.js → chunk-LN5EJMSC.js} +22 -13
  59. package/dist/{chunk-B2OUZUY5.js → chunk-LVMJXO45.js} +1 -1
  60. package/dist/{chunk-RFZJGC6V.js → chunk-MSH2F7VW.js} +2 -2
  61. package/dist/{chunk-NZEASM7M.js → chunk-N3EJG2X4.js} +1 -1
  62. package/dist/{chunk-PLL6VC4F.js → chunk-NJT6SZGL.js} +1 -1
  63. package/dist/{chunk-Z4PSJSDF.js → chunk-OPFG563D.js} +3 -3
  64. package/dist/{chunk-6BNTGNGD.js → chunk-PBNWRWKA.js} +1 -1
  65. package/dist/{chunk-PZIWSVMO.js → chunk-PLGGKTCB.js} +5 -1
  66. package/dist/{chunk-FWS2ZWV6.js → chunk-QCQDUQVJ.js} +5 -5
  67. package/dist/{chunk-73BGPSUW.js → chunk-QWATUGUX.js} +3 -3
  68. package/dist/{chunk-BU6XD7H2.js → chunk-QZ4HQQYS.js} +2 -2
  69. package/dist/{chunk-BUIJG2BQ.js → chunk-RFCLI6TW.js} +3 -3
  70. package/dist/{chunk-CL6ZTNQH.js → chunk-S35XO2ZA.js} +121 -41
  71. package/dist/{chunk-E3F5L6AB.js → chunk-SVVAUJPL.js} +4 -83
  72. package/dist/{chunk-B22YBW5W.js → chunk-TAYZSNYS.js} +1 -1
  73. package/dist/{chunk-QGB5DECO.js → chunk-TBSYUEB7.js} +1 -1
  74. package/dist/{chunk-J3CZK6PI.js → chunk-TCI4MUT6.js} +1 -1
  75. package/dist/{chunk-UI7YYCN2.js → chunk-TNOERLC6.js} +3 -3
  76. package/dist/{chunk-CXTXB2LZ.js → chunk-TQH7BF7K.js} +1 -1
  77. package/dist/{chunk-TOFL5P27.js → chunk-UKXF4IPA.js} +6 -6
  78. package/dist/{chunk-COHU6S2X.js → chunk-US6JSQ2L.js} +2 -2
  79. package/dist/{chunk-L5IKISP2.js → chunk-VC3BMKYO.js} +3 -3
  80. package/dist/{chunk-NT3L4IMM.js → chunk-VCBZOU7U.js} +1 -1
  81. package/dist/{chunk-RNLJJDGE.js → chunk-WLD4PX3P.js} +2 -2
  82. package/dist/{chunk-PH5PJY5Z.js → chunk-WM7GOKEP.js} +2 -2
  83. package/dist/{chunk-I64A5P5H.js → chunk-WMCGD4XL.js} +3 -3
  84. package/dist/{chunk-V6MTGX7B.js → chunk-WXAQT63P.js} +3 -3
  85. package/dist/{chunk-BIV4FVEN.js → chunk-X7XICOVM.js} +1 -1
  86. package/dist/{chunk-SQNPFWFM.js → chunk-XX5U64F2.js} +2 -2
  87. package/dist/{chunk-75KIZWAD.js → chunk-Y63CT2ZC.js} +53 -39
  88. package/dist/{chunk-7J4GQHSG.js → chunk-YIN2JAZE.js} +198 -88
  89. package/dist/{chunk-KFJMWPZT.js → chunk-YLGRZSH4.js} +1 -1
  90. package/dist/chunk-YRQPU7SV.js +3983 -0
  91. package/dist/{chunk-VOKI2HSE.js → chunk-YU53JSUZ.js} +1 -1
  92. package/dist/{chunk-442JNXRM.js → chunk-ZBAF6L74.js} +1 -1
  93. package/dist/{chunk-EPZXTQOO.js → chunk-ZBDVKLIU.js} +5 -5
  94. package/dist/{clean-LFPT6GNS.js → clean-3JE2KYTC.js} +20 -18
  95. package/dist/cli.js +53 -53
  96. package/dist/{cloud-XX5XB277.js → cloud-Z54BHP6G.js} +4 -4
  97. package/dist/{cloudrun-ANWC6QGV.js → cloudrun-4CPQLU5M.js} +10 -8
  98. package/dist/{compare-CISKXIRF.js → compare-AQMLMTFD.js} +31 -30
  99. package/dist/{compiler-XYZMBTYR.js → compiler-LIJYMSEL.js} +8 -6
  100. package/dist/{component-D4JJIDOC.js → component-ZH37EIYB.js} +5 -4
  101. package/dist/{compositions-UGRTLUBT.js → compositions-DF2FM6YD.js} +18 -16
  102. package/dist/{delete-TPH7N5PK.js → delete-A3NSK2HH.js} +2 -2
  103. package/dist/{deploy-ZUXLAVVX.js → deploy-6RC2DXPQ.js} +1 -1
  104. package/dist/{deterministicFonts-NQ6KL66D.js → deterministicFonts-HQYCUUAL.js} +5 -3
  105. package/dist/{dist-TFHABY7N.js → dist-6JMYDD7F.js} +4 -3
  106. package/dist/{dist-UXLDRI4D.js → dist-VSIT3UAX.js} +10 -4
  107. package/dist/{doctor-LVOS4EDV.js → doctor-RILK4ATO.js} +15 -13
  108. package/dist/{dom-37K6YOH4.js → dom-VFHEO7VM.js} +3 -2
  109. package/dist/{events-FIWA6UBT.js → events-B5EKVEPW.js} +3 -3
  110. package/dist/{events-UHIKJIWA.js → events-SL434XAY.js} +2 -2
  111. package/dist/{feedback-SPOCVRKJ.js → feedback-S4PC6VAR.js} +11 -9
  112. package/dist/{ffmpeg-7SDXE5P5.js → ffmpeg-XSDPPZCU.js} +11 -9
  113. package/dist/{figma-ONGILUUE.js → figma-MV2L6E2Z.js} +3 -3
  114. package/dist/fontLocalizeCli.js +15 -13
  115. package/dist/{get-W7ADZ5XS.js → get-ID3Y3PCN.js} +2 -2
  116. package/dist/{gpuPolicy-GETTDB3G.js → gpuPolicy-2LRMQOAD.js} +11 -9
  117. package/dist/{grade-compare-YIIQJNL3.js → grade-compare-NV3TKIOO.js} +32 -31
  118. package/dist/{help-HSKEDFT6.js → help-ZPT23LZ3.js} +1 -1
  119. package/dist/{history-JS6QALDS.js → history-MZGDX3TR.js} +6 -6
  120. package/dist/hyperframe.manifest.json +1 -1
  121. package/dist/hyperframe.runtime.iife.js +65 -65
  122. package/dist/hyperframes-player.global.js +3 -3
  123. package/dist/{info-BIIA6M7Q.js → info-FIZ4A54H.js} +14 -12
  124. package/dist/{init-TGDKBWUY.js → init-WX4MNPL2.js} +32 -30
  125. package/dist/{inspect-MVMUFUHY.js → inspect-R5KWWKNJ.js} +32 -31
  126. package/dist/inspection.js +2088 -0
  127. package/dist/{installer-HITNNXHY.js → installer-CTV5FKYQ.js} +8 -6
  128. package/dist/{keyframes-XJ7DUUBW.js → keyframes-FAJY5RK5.js} +12 -11
  129. package/dist/{lambda-4C7APDR5.js → lambda-3MCC2ZH7.js} +11 -9
  130. package/dist/{layout-O3LEAM7S.js → layout-3RTVYRRN.js} +32 -31
  131. package/dist/{lint-72FKMBD2.js → lint-ZDCVL7K4.js} +10 -9
  132. package/dist/{lintProject-Q36Y3AHA.js → lintProject-4IVYXS5J.js} +4 -3
  133. package/dist/{list-YUK5VA2D.js → list-SBCXW2UT.js} +2 -2
  134. package/dist/live-LAHBXVK2.js +4165 -0
  135. package/dist/{login-TXBDKLOH.js → login-VQ2LQ2YG.js} +4 -4
  136. package/dist/{manager-APB2JLSH.js → manager-ZRF6UXUM.js} +12 -10
  137. package/dist/{media-treatment-GMP4JL46.js → media-treatment-MFIP7Q4G.js} +18 -16
  138. package/dist/{models-DW22WMQ5.js → models-OU36YZCT.js} +15 -13
  139. package/dist/{motionShot-UQJVQT76.js → motionShot-SHDUG7YR.js} +19 -18
  140. package/dist/{normalize-FASIPBUM.js → normalize-QJVXFMWO.js} +3 -2
  141. package/dist/{normalize-audio-4KYSZBWI.js → normalize-audio-7RTPEV7Y.js} +13 -11
  142. package/dist/{open-HNYN6VM2.js → open-HT4RG32S.js} +15 -13
  143. package/dist/{parakeetRunner-SJ2QW77R.js → parakeetRunner-DOVPZDCH.js} +16 -14
  144. package/dist/{pipeline-MG2W6NIW.js → pipeline-NIVQ6E2G.js} +12 -10
  145. package/dist/{play-ZQ6RNKIE.js → play-HPX5SIRQ.js} +23 -21
  146. package/dist/{preflight-HSQEJNA2.js → preflight-TNYC7EIS.js} +12 -10
  147. package/dist/{present-7M3W5E3Q.js → present-QSOIMURR.js} +19 -17
  148. package/dist/{preview-TT5Z6JK6.js → preview-WDO53XKK.js} +22 -20
  149. package/dist/{producer-B2Y4IKZS.js → producer-G27KP3IY.js} +1 -1
  150. package/dist/{projectConfig-VZVY6ZZP.js → projectConfig-CP722RCM.js} +10 -8
  151. package/dist/{publication-SRAYE6LT.js → publication-LCWVBLDN.js} +6 -4
  152. package/dist/{publish-3QMV3Q7B.js → publish-BIY6LEZ2.js} +14 -12
  153. package/dist/{remove-background-5GA2S5OI.js → remove-background-NPLZGLZ3.js} +13 -11
  154. package/dist/{render-WRLXYVSQ.js → render-HHUGUKG6.js} +34 -32
  155. package/dist/{render-W3VX647V.js → render-IHNAZXA2.js} +10 -8
  156. package/dist/{render-LN24E3OI.js → render-J57LAXB5.js} +20 -18
  157. package/dist/{render-batch-C73ELOQ7.js → render-batch-FK26OQ5E.js} +10 -8
  158. package/dist/renderSetupWorker.js +4 -3
  159. package/dist/{resolver-ALD2ZELQ.js → resolver-FWJXO6DY.js} +8 -6
  160. package/dist/{sherpa-AHD5UPU3.js → sherpa-BXFJU5EP.js} +15 -13
  161. package/dist/{skills-WYJGVMR5.js → skills-7XS4HZBC.js} +5 -5
  162. package/dist/{skillsUpdateCheck-OHEGRQ2N.js → skillsUpdateCheck-MGU5KLR4.js} +3 -3
  163. package/dist/{snapshot-S6CGQACZ.js → snapshot-O2PMEMKH.js} +37 -36
  164. package/dist/{src-DAW4JYSR.js → src-OQRG6BT7.js} +10 -8
  165. package/dist/{src-I6WD5SMQ.js → src-Q4R2YPKA.js} +16 -14
  166. package/dist/{staticProjectServer-3BFEACQ6.js → staticProjectServer-6OY4VMO6.js} +20 -19
  167. package/dist/studio/assets/{hyperframes-player-DnrkDR-_.js → hyperframes-player-CttA4PW7.js} +1 -1
  168. package/dist/studio/assets/{index-BhFxhBMA.js → index-DmST2bTJ.js} +120 -120
  169. package/dist/studio/assets/{index-WFQeAouT.js → index-DpxSurnJ.js} +1 -1
  170. package/dist/studio/index.html +1 -1
  171. package/dist/{studio-api-2O6R4CM5.js → studio-api-YSUTKHV7.js} +13 -11
  172. package/dist/{studioServer-6ZSAJBVY.js → studioServer-APGEQIW5.js} +51 -50
  173. package/dist/{telemetry-WFLPGSUG.js → telemetry-3B6EA5IU.js} +3 -3
  174. package/dist/{timeline-BZJH266Q.js → timeline-QWM6JS4B.js} +24 -22
  175. package/dist/{tokens-5TX42ZMQ.js → tokens-TKLSP3OQ.js} +4 -3
  176. package/dist/{transcribe-WPFFLNTS.js → transcribe-PODOCWCC.js} +14 -12
  177. package/dist/{transcribe-IEYR46HB.js → transcribe-XOPMHJLJ.js} +21 -19
  178. package/dist/{updateCheck-TESZGKRJ.js → updateCheck-RO6FPYMZ.js} +2 -2
  179. package/dist/{upgrade-3EW4MYS7.js → upgrade-EVNIL5TZ.js} +2 -2
  180. package/dist/{urlDownloader-JULHEBLS.js → urlDownloader-F5HYFRA6.js} +10 -8
  181. package/dist/{validate-RSJPGXUZ.js → validate-NXLFCHGG.js} +26 -25
  182. package/dist/{video-TW4TSAM4.js → video-ECV2OIQN.js} +11 -9
  183. package/dist/warmCheck.js +40 -39
  184. package/package.json +2 -2
  185. package/dist/chunk-QTGKDF7D.js +0 -3983
@@ -8,14 +8,14 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-CXTXB2LZ.js";
11
+ } from "./chunk-TQH7BF7K.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-LEQU6P6H.js";
18
+ } from "./chunk-65VFH2UV.js";
19
19
  import {
20
20
  realProjectRoot
21
21
  } from "./chunk-OFQWTKPW.js";
@@ -18,7 +18,7 @@ import {
18
18
  resolveExistingLocalAsset,
19
19
  resolveLocalAssetCandidates,
20
20
  resolveProjectRelativeSrc
21
- } from "./chunk-6BNTGNGD.js";
21
+ } from "./chunk-PBNWRWKA.js";
22
22
  import {
23
23
  TIMING_TOLERANCE_SECONDS,
24
24
  resolveCompositionDuration
@@ -50,9 +50,11 @@ import {
50
50
  validateColorGradingContract
51
51
  } from "./chunk-2BGOB2QK.js";
52
52
  import {
53
- Parser,
54
53
  parseHTML
55
- } from "./chunk-SDYDNHEE.js";
54
+ } from "./chunk-GWTIFRF5.js";
55
+ import {
56
+ Parser
57
+ } from "./chunk-2RY2LWAA.js";
56
58
  import {
57
59
  isSceneLikeCompositionId,
58
60
  parseSlideshowManifest,
@@ -4,12 +4,12 @@ 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
- ensureDOMParser
9
- } from "./chunk-442JNXRM.js";
10
7
  import {
11
8
  quantizePreviewProxyBox
12
- } from "./chunk-LEQU6P6H.js";
9
+ } from "./chunk-65VFH2UV.js";
10
+ import {
11
+ parseHTML
12
+ } from "./chunk-GWTIFRF5.js";
13
13
 
14
14
  // src/utils/compositionViewport.ts
15
15
  var DEFAULT_VIEWPORT = { width: 1920, height: 1080 };
@@ -21,8 +21,7 @@ function parseViewportDimension(value) {
21
21
  return Math.min(parsed, MAX_VIEWPORT_DIMENSION);
22
22
  }
23
23
  function findCompositionDimensions(html) {
24
- ensureDOMParser();
25
- const doc = new DOMParser().parseFromString(html, "text/html");
24
+ const { document: doc } = parseHTML(html);
26
25
  const root = doc.querySelector("[data-composition-id][data-width][data-height]");
27
26
  if (!root) return null;
28
27
  const width = parseViewportDimension(root.getAttribute("data-width"));
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-3HTXEXQ6.js";
9
+ } from "./chunk-6RLP6RDE.js";
10
10
  import {
11
11
  DEFAULT_HISTORY_ROOT,
12
12
  HistoryBusyError,
@@ -19,7 +19,7 @@ import {
19
19
  splitElementInHtml,
20
20
  unwrapElementsFromHtml,
21
21
  wrapElementsInHtml
22
- } from "./chunk-JNBHYUEU.js";
22
+ } from "./chunk-DTV3VHFE.js";
23
23
  import {
24
24
  MEDIA_LINK_ATTR,
25
25
  relinkSplitHalves
@@ -32,7 +32,7 @@ import {
32
32
  requestedProjectPath,
33
33
  requiredFfmpeg,
34
34
  resolveLocalAudioPath
35
- } from "./chunk-QXQ74PYD.js";
35
+ } from "./chunk-6KZY5RSV.js";
36
36
  import {
37
37
  HistoryBusyError,
38
38
  MAX_WINDOW_IDLE_MS,
@@ -60,15 +60,17 @@ import {
60
60
  probeAssetCodec,
61
61
  probeMediaMetadata,
62
62
  proxyActivityMark,
63
+ proxyCopyProgress,
63
64
  proxyVariantFor,
64
65
  recordProxyPrewarm,
65
66
  recordProxyRequest,
66
67
  resolveProxy,
67
68
  resolveProxyVariantRequest,
69
+ retryProxyCopy,
68
70
  scanProjectMedia,
69
71
  shouldPrewarmProxy,
70
72
  waitForProxy
71
- } from "./chunk-CL6ZTNQH.js";
73
+ } from "./chunk-S35XO2ZA.js";
72
74
  import {
73
75
  STUDIO_MOTION_PATH,
74
76
  createStudioMotionRenderBodyScript,
@@ -105,6 +107,8 @@ import {
105
107
  GSAP_BASE_URL_META,
106
108
  PREVIEW_PROXY_BOX_PARAM,
107
109
  PREVIEW_PROXY_LIGHT_PARAM,
110
+ PREVIEW_PROXY_PROGRESS_HEADER,
111
+ PREVIEW_PROXY_RETRY_PARAM,
108
112
  formatPreviewProxyBox,
109
113
  formatRenderOutputTimestamp,
110
114
  gsapCdnDist,
@@ -113,12 +117,12 @@ import {
113
117
  normalizeGsapLocalRoot,
114
118
  parseFps,
115
119
  parsePreviewProxyBox
116
- } from "./chunk-LEQU6P6H.js";
120
+ } from "./chunk-65VFH2UV.js";
117
121
  import {
118
122
  addScenePartsManifest,
119
123
  ensureHfIds,
120
124
  stampHfIdsInPlace
121
- } from "./chunk-I64A5P5H.js";
125
+ } from "./chunk-WMCGD4XL.js";
122
126
  import {
123
127
  AFTER_FONTS_SCRIPT_TYPE,
124
128
  RUNTIME_BOOTSTRAP_ATTR,
@@ -132,7 +136,7 @@ import {
132
136
  resolveRateSpec,
133
137
  sourceTimeAt,
134
138
  stripEmbeddedRuntimeScripts
135
- } from "./chunk-QTGKDF7D.js";
139
+ } from "./chunk-YRQPU7SV.js";
136
140
  import {
137
141
  HTML_ATTRIBUTE_ENTITIES,
138
142
  MagicString,
@@ -140,7 +144,7 @@ import {
140
144
  decodeAuthoredAttribute,
141
145
  scanHtmlOpeningTags,
142
146
  unrollComputedTimeline
143
- } from "./chunk-E3F5L6AB.js";
147
+ } from "./chunk-SVVAUJPL.js";
144
148
  import {
145
149
  ProjectRootMissingError,
146
150
  folderGone,
@@ -156,7 +160,7 @@ import {
156
160
  import {
157
161
  isWithinProjectRoot,
158
162
  readProjectFile
159
- } from "./chunk-6BNTGNGD.js";
163
+ } from "./chunk-PBNWRWKA.js";
160
164
  import {
161
165
  decodeCssEscapes,
162
166
  decodeWellFormedEscapes,
@@ -170,7 +174,7 @@ import {
170
174
  } from "./chunk-2BGOB2QK.js";
171
175
  import {
172
176
  parseHTML
173
- } from "./chunk-SDYDNHEE.js";
177
+ } from "./chunk-GWTIFRF5.js";
174
178
  import {
175
179
  ancestor,
176
180
  full,
@@ -307,7 +311,7 @@ function clearElementScreenshotIsolation() {
307
311
  page.__hfThumbnailFaded = [];
308
312
  }
309
313
 
310
- // ../studio-server/dist/chunk-2MJKVMZU.js
314
+ // ../studio-server/dist/chunk-OAHY2RQP.js
311
315
  import { resolve } from "path";
312
316
  function isAutoProxyEnabled(adapter) {
313
317
  return adapter.autoProxy !== false;
@@ -5545,7 +5549,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
5545
5549
  let block = extractGsapScriptBlock(html);
5546
5550
  if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
5547
5551
  const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
5548
- const { GSAP_CDN } = await import("./dist-UXLDRI4D.js");
5552
+ const { GSAP_CDN } = await import("./dist-VSIT3UAX.js");
5549
5553
  const bootstrap = [
5550
5554
  `<script src="${GSAP_CDN}"></script>`,
5551
5555
  "<script>",
@@ -7898,12 +7902,17 @@ ${etag}`;
7898
7902
  let servedContentType = contentType;
7899
7903
  if (proxyVariant !== void 0) {
7900
7904
  try {
7905
+ if (c.req.query(PREVIEW_PROXY_RETRY_PARAM) !== void 0) {
7906
+ retryProxyCopy(project.dir, file, proxyVariant, proxyBox);
7907
+ }
7901
7908
  servedPath = await waitForProxy(resolveProxy(project.dir, file, proxyVariant, proxyBox), 0);
7902
7909
  } catch (err) {
7903
7910
  if (err instanceof ProxyWaitTimeoutError) {
7911
+ const progress = proxyCopyProgress(project.dir, file, proxyVariant, proxyBox);
7904
7912
  return c.text("media proxy is being made", 202, {
7905
- "Retry-After": String(PROXY_PENDING_RETRY_AFTER_SECONDS),
7906
- "Cache-Control": "no-store"
7913
+ "Retry-After": progress === void 0 ? String(PROXY_PENDING_RETRY_AFTER_SECONDS) : "1",
7914
+ "Cache-Control": "no-store",
7915
+ ...progress !== void 0 && { [PREVIEW_PROXY_PROGRESS_HEADER]: progress.toFixed(3) }
7907
7916
  });
7908
7917
  }
7909
7918
  if (err instanceof ProxyCapacityError) {
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-B22YBW5W.js";
11
+ } from "./chunk-TAYZSNYS.js";
12
12
  import {
13
13
  CliRuntimeError
14
14
  } from "./chunk-JVBRJMOP.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-VC76R6W2.js";
17
17
  import {
18
18
  DOMParser
19
- } from "./chunk-SDYDNHEE.js";
19
+ } from "./chunk-GWTIFRF5.js";
20
20
 
21
21
  // ../core/dist/figma/client.js
22
22
  var FigmaClientError = class extends Error {
@@ -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-FIWA6UBT.js");
1281
+ const { trackCommandFailure } = await import("./events-B5EKVEPW.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -11,7 +11,7 @@ import {
11
11
  distroLabel,
12
12
  getFFmpegInstallHint,
13
13
  parseLddMissingLibs
14
- } from "./chunk-AQVLMH5C.js";
14
+ } from "./chunk-D3EZHD2D.js";
15
15
  import {
16
16
  ensureBrowser,
17
17
  findBrowser
@@ -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-MS4BAXOQ.js";
9
+ } from "./chunk-D5CAZ7R4.js";
10
10
 
11
11
  // src/registry/compatibility.ts
12
12
  import { compareVersions } from "compare-versions";
@@ -16,11 +16,11 @@ import {
16
16
  } from "./chunk-ELP5QZWL.js";
17
17
  import {
18
18
  rewriteSrcsetUrls
19
- } from "./chunk-QTGKDF7D.js";
19
+ } from "./chunk-YRQPU7SV.js";
20
20
  import {
21
21
  decodeUrlPathVariants,
22
22
  encodeUrlPath
23
- } from "./chunk-E3F5L6AB.js";
23
+ } from "./chunk-SVVAUJPL.js";
24
24
  import {
25
25
  CSS_URL_RE,
26
26
  isNonRelativeUrl,
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-2BGOB2QK.js";
29
29
  import {
30
30
  parseHTML
31
- } from "./chunk-SDYDNHEE.js";
31
+ } from "./chunk-GWTIFRF5.js";
32
32
 
33
33
  // src/utils/projectLink.ts
34
34
  import { randomUUID } 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
  decodeHTMLAttribute
9
- } from "./chunk-SDYDNHEE.js";
9
+ } from "./chunk-2RY2LWAA.js";
10
10
 
11
11
  // ../parsers/dist/assetResolution.js
12
12
  import { closeSync, constants, existsSync, fstatSync, openSync, readFileSync } from "fs";
@@ -36,7 +36,11 @@ function parseProjectLock(value) {
36
36
  }
37
37
  function parseCheckReview(value) {
38
38
  if (!isRecord(value)) return void 0;
39
- return { skipContrastInMotion: value.skipContrastInMotion === true };
39
+ return {
40
+ skipContrastInMotion: value.skipContrastInMotion === true,
41
+ findingFrames: value.findingFrames === true,
42
+ inspect: value.inspect === true
43
+ };
40
44
  }
41
45
  function readToolContext(raw = process.env.HF_TOOL_CONTEXT) {
42
46
  if (!raw) return {};
@@ -4,12 +4,12 @@ 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
+ ensureDOMParser
9
+ } from "./chunk-ZBAF6L74.js";
7
10
  import {
8
11
  errorBox
9
12
  } from "./chunk-K2FLNJVB.js";
10
- import {
11
- ensureDOMParser
12
- } from "./chunk-442JNXRM.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-JVBRJMOP.js";
@@ -19,10 +19,10 @@ import {
19
19
  import {
20
20
  formatVariableValidationIssue,
21
21
  validateVariables
22
- } from "./chunk-LEQU6P6H.js";
22
+ } from "./chunk-65VFH2UV.js";
23
23
  import {
24
24
  extractCompositionMetadata
25
- } from "./chunk-E3F5L6AB.js";
25
+ } from "./chunk-SVVAUJPL.js";
26
26
 
27
27
  // src/utils/variables.ts
28
28
  import { readFileSync } from "fs";
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-B2OUZUY5.js";
10
+ } from "./chunk-LVMJXO45.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-B22YBW5W.js";
13
+ } from "./chunk-TAYZSNYS.js";
14
14
  import {
15
15
  c
16
16
  } from "./chunk-ZTZA4UWZ.js";
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
84
84
  try {
85
85
  const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
86
86
  import("./system-YD4AW5ZX.js"),
87
- import("./ffmpeg-7SDXE5P5.js")
87
+ import("./ffmpeg-XSDPPZCU.js")
88
88
  ]);
89
89
  const sys = getSystemMeta();
90
90
  const parts = [
@@ -10,10 +10,10 @@ import {
10
10
  import {
11
11
  DISTRIBUTED_FPS,
12
12
  isDistributedFps
13
- } from "./chunk-LEQU6P6H.js";
13
+ } from "./chunk-65VFH2UV.js";
14
14
  import {
15
15
  parseHTML
16
- } from "./chunk-SDYDNHEE.js";
16
+ } from "./chunk-GWTIFRF5.js";
17
17
 
18
18
  // src/utils/compositionFps.ts
19
19
  import { readFileSync } from "fs";
@@ -21,13 +21,13 @@ import {
21
21
  emitWords,
22
22
  getPreparedWavDurationSeconds,
23
23
  prepareWav
24
- } from "./chunk-WAXBJLV6.js";
24
+ } from "./chunk-34VLVDOU.js";
25
25
  import {
26
26
  stoppedByCancelSignal
27
- } from "./chunk-MO4VKSFT.js";
27
+ } from "./chunk-54K7HW46.js";
28
28
  import {
29
29
  verifies
30
- } from "./chunk-QGB5DECO.js";
30
+ } from "./chunk-TBSYUEB7.js";
31
31
  import {
32
32
  PARAKEET_MODEL_LABEL,
33
33
  SHERPA_ERROR_PREFIX,
@@ -14,11 +14,11 @@ import {
14
14
  hdrToSdrToneMapFilter,
15
15
  isHeavyForPreview,
16
16
  parseFirstFrameColour
17
- } from "./chunk-LEQU6P6H.js";
17
+ } from "./chunk-65VFH2UV.js";
18
18
  import {
19
19
  decodeAuthoredAttribute,
20
20
  scanHtmlOpeningTags
21
- } from "./chunk-E3F5L6AB.js";
21
+ } from "./chunk-SVVAUJPL.js";
22
22
  import {
23
23
  mkdirWithinProject,
24
24
  realProjectRoot,
@@ -32,12 +32,12 @@ import {
32
32
  isRemoteOrInlineUrl,
33
33
  isUnresolvedAssetPlaceholder,
34
34
  resolveExistingLocalAsset
35
- } from "./chunk-6BNTGNGD.js";
35
+ } from "./chunk-PBNWRWKA.js";
36
36
  import {
37
37
  rewriteAssetPath
38
38
  } from "./chunk-2BGOB2QK.js";
39
39
 
40
- // ../studio-server/dist/chunk-C2RFW2FX.js
40
+ // ../studio-server/dist/chunk-JKPLDWAB.js
41
41
  import { statSync } from "fs";
42
42
  import { sep } from "path";
43
43
  import { execFile } from "child_process";
@@ -141,6 +141,30 @@ function sourceFactsOf(stream, formatBitrate) {
141
141
  bitrate: Number.isFinite(bitrate) ? bitrate : 0
142
142
  };
143
143
  }
144
+ var STREAM_SUMMARY_MAX = 12;
145
+ function summarizeStream(stream) {
146
+ const flags = Object.entries(stream.disposition ?? {}).filter(([, on]) => on === 1).map(([name]) => name);
147
+ return `${stream.codec_type ?? "?"}:${stream.codec_name ?? "?"}[${flags.join(",")}]`;
148
+ }
149
+ function metadataFromProbe(kind, parsed) {
150
+ const stream = parsed.streams?.find((item) => {
151
+ if (kind === "image") return item.codec_type === "video";
152
+ return item.codec_type === kind && item.disposition?.attached_pic !== 1;
153
+ });
154
+ const metadata = {
155
+ kind,
156
+ color: classifyMediaColor(stream),
157
+ streams: (parsed.streams ?? []).slice(0, STREAM_SUMMARY_MAX).map(summarizeStream)
158
+ };
159
+ if (kind === "video") {
160
+ metadata.hasAudio = (parsed.streams ?? []).some((item) => item.codec_type === "audio");
161
+ metadata.hasAlpha = stream !== void 0 && videoStreamHasAlpha(stream);
162
+ const duration = Number(parsed.format?.duration);
163
+ if (Number.isFinite(duration) && duration > 0) metadata.durationSeconds = duration;
164
+ metadata.source = sourceFactsOf(stream, parsed.format?.bit_rate);
165
+ }
166
+ return metadata;
167
+ }
144
168
  async function probeMediaMetadata(filePath, runner = execFileRunner) {
145
169
  const kind = inferKindFromPath(filePath);
146
170
  if (kind === "audio" || kind === "unknown") {
@@ -156,7 +180,7 @@ async function probeMediaMetadata(filePath, runner = execFileRunner) {
156
180
  "-v",
157
181
  "error",
158
182
  "-show_entries",
159
- "stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample,width,height,bit_rate:stream_disposition=attached_pic:stream_tags=alpha_mode:format=duration,bit_rate",
183
+ "stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample,width,height,bit_rate:stream_disposition:stream_tags=alpha_mode:format=duration,bit_rate",
160
184
  "-of",
161
185
  "json",
162
186
  "--",
@@ -171,20 +195,7 @@ async function probeMediaMetadata(filePath, runner = execFileRunner) {
171
195
  return { kind, color: classifyMediaColor(null), probeError: "ffprobe failed" };
172
196
  }
173
197
  try {
174
- const parsed = JSON.parse(String(result.stdout || "{}"));
175
- const stream = parsed.streams?.find((item) => {
176
- if (kind === "image") return item.codec_type === "video";
177
- return item.codec_type === kind && item.disposition?.attached_pic !== 1;
178
- });
179
- const metadata = { kind, color: classifyMediaColor(stream) };
180
- if (kind === "video") {
181
- metadata.hasAudio = (parsed.streams ?? []).some((item) => item.codec_type === "audio");
182
- metadata.hasAlpha = stream !== void 0 && videoStreamHasAlpha(stream);
183
- const duration = Number(parsed.format?.duration);
184
- if (Number.isFinite(duration) && duration > 0) metadata.durationSeconds = duration;
185
- metadata.source = sourceFactsOf(stream, parsed.format?.bit_rate);
186
- }
187
- return metadata;
198
+ return metadataFromProbe(kind, JSON.parse(String(result.stdout || "{}")));
188
199
  } catch {
189
200
  return { kind, color: classifyMediaColor(null), probeError: "ffprobe returned invalid json" };
190
201
  }
@@ -359,7 +370,7 @@ async function scanProjectMedia(projectDir, htmlSources, options = {}) {
359
370
  const scan = { codecMap: {}, sourceFacts: {} };
360
371
  for (const [pathname, facts] of await probeProjectAssets(projectDir, htmlSources, options)) {
361
372
  if (facts?.browserHostile) scan.codecMap[pathname] = facts;
362
- if (facts?.source) scan.sourceFacts[pathname] = facts.source;
373
+ if (facts?.source) scan.sourceFacts[pathname] = { ...facts.source, codec: facts.codecName };
363
374
  }
364
375
  return scan;
365
376
  }
@@ -367,7 +378,7 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
367
378
  return (await scanProjectMedia(projectDir, htmlSources, options)).codecMap;
368
379
  }
369
380
 
370
- // ../studio-server/dist/chunk-RX6VALW3.js
381
+ // ../studio-server/dist/chunk-MNJZQCBL.js
371
382
  import { spawn } from "child_process";
372
383
  import { randomUUID } from "crypto";
373
384
  import {
@@ -545,6 +556,18 @@ async function contentCopyKey(sourcePath, version, variant, box, signal) {
545
556
  }
546
557
  return digest(hash.digest("hex"), version, variant, boxPart(box));
547
558
  }
559
+ function sourceSizeBytes(sourcePath) {
560
+ try {
561
+ const fd = openSync(sourcePath, "r");
562
+ try {
563
+ return fstatSync(fd).size;
564
+ } finally {
565
+ closeSync(fd);
566
+ }
567
+ } catch {
568
+ return void 0;
569
+ }
570
+ }
548
571
  function fastIndexPath(cachePath) {
549
572
  return join2(dirname(cachePath), `.fast-${basename(cachePath, extname22(cachePath))}`);
550
573
  }
@@ -858,11 +881,53 @@ function proxyScaleFilter(box) {
858
881
  return `scale=${width}:${height}`;
859
882
  }
860
883
  var STDERR_ERROR_LINE = /error|invalid|denied|no space|not found|unknown/i;
861
- function stderrReason(stderrTail) {
862
- const lines = stderrTail.split("\n").map((line2) => line2.trim()).filter(Boolean);
863
- const errorLines = lines.filter((line2) => STDERR_ERROR_LINE.test(line2));
864
- const line = errorLines.at(-1) ?? lines.at(-1);
865
- return line ? `: ${line.replace(/[.!]+$/, "")}` : "";
884
+ var OPEN_OUTPUT_LINE = /^Error opening output file /;
885
+ var ABSOLUTE_PATH = /(?:[A-Za-z]:)?(?:[\\/][^\\/\s'"]+){2,}/g;
886
+ var REASON_LINES = 3;
887
+ function stderrReason(stderrTail, knownPaths) {
888
+ const lines = stderrTail.split("\n").map((line) => line.trim()).filter(Boolean);
889
+ const openedAt = lines.map((candidate) => OPEN_OUTPUT_LINE.test(candidate)).lastIndexOf(true);
890
+ const causes = lines.filter(
891
+ (line, index) => !OPEN_OUTPUT_LINE.test(line) && (STDERR_ERROR_LINE.test(line) || index === openedAt - 1)
892
+ );
893
+ const shown = (causes.length ? causes : lines.slice(-1)).slice(-REASON_LINES);
894
+ const byLength = knownPaths.filter(isAbsolute).sort((a, b) => b.length - a.length);
895
+ const reason = shown.map(
896
+ (line) => byLength.reduce((text, path) => text.split(path).join("<path>"), line).replace(ABSOLUTE_PATH, "<path>").replace(/[.!]+$/, "")
897
+ );
898
+ return reason.length ? `: ${reason.join("; ")}` : "";
899
+ }
900
+ var CLOUD_FOLDER = /\/(?:Library\/CloudStorage|Dropbox|OneDrive|Google Drive)(?:[ \-/]|$)/i;
901
+ function sourceFolderKind(sourcePath) {
902
+ const path = sourcePath.replace(/\\/g, "/");
903
+ if (path.includes("/Library/Mobile Documents/")) return "icloud";
904
+ if (CLOUD_FOLDER.test(path)) return "cloud-storage";
905
+ return path.startsWith("/Volumes/") ? "external-volume" : "local";
906
+ }
907
+ function describeSource(sourcePath, metadata) {
908
+ const { codecName, pixelFormat, colorTransfer } = metadata.color;
909
+ const megabytes = sourceSizeBytes(sourcePath);
910
+ return [
911
+ metadata.kind,
912
+ codecName,
913
+ pixelFormat,
914
+ colorTransfer,
915
+ metadata.hasAudio ? "with audio" : "no audio",
916
+ metadata.streams?.length ? `streams ${metadata.streams.join(" ")}` : void 0,
917
+ metadata.durationSeconds ? `${Math.round(metadata.durationSeconds)}s` : void 0,
918
+ megabytes === void 0 ? "missing" : `${Math.round(megabytes / 1e6)} MB`,
919
+ sourceFolderKind(sourcePath)
920
+ ].filter(Boolean).join(", ");
921
+ }
922
+ function withSource(err, describe) {
923
+ if (err instanceof ProxyTranscodeError && err.name === "ProxyTranscodeError") {
924
+ return new ProxyTranscodeError(
925
+ `${err.message} (source: ${describe()})`,
926
+ err.exitCode,
927
+ err.stderrTail
928
+ );
929
+ }
930
+ return err;
866
931
  }
867
932
  function chunkRanges(durationSeconds) {
868
933
  if (!durationSeconds || durationSeconds <= PROXY_CHUNK_SECONDS * 1.5) return null;
@@ -1079,24 +1144,28 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, sign
1079
1144
  onEncoded
1080
1145
  );
1081
1146
  const ranges = chunkRanges(totalSeconds);
1082
- if (!ranges) {
1083
- return encode(
1147
+ try {
1148
+ if (!ranges) {
1149
+ return await encode(
1150
+ outputPath,
1151
+ void 0,
1152
+ signal,
1153
+ (encodedSeconds) => onProgress({ doneSeconds: encodedSeconds, totalSeconds })
1154
+ );
1155
+ }
1156
+ await encodeInChunks(
1157
+ ranges,
1158
+ chunkPrefix,
1084
1159
  outputPath,
1085
- void 0,
1160
+ encode,
1161
+ (listPath, target) => spawnFfmpeg(ffmpegPath, concatArgs(listPath, target, variant), CONCAT_TIMEOUT_MS, signal),
1086
1162
  signal,
1087
- (encodedSeconds) => onProgress({ doneSeconds: encodedSeconds, totalSeconds })
1163
+ gate,
1164
+ (doneSeconds) => onProgress({ doneSeconds, totalSeconds })
1088
1165
  );
1166
+ } catch (err) {
1167
+ throw withSource(err, () => describeSource(sourcePath, metadata));
1089
1168
  }
1090
- await encodeInChunks(
1091
- ranges,
1092
- chunkPrefix,
1093
- outputPath,
1094
- encode,
1095
- (listPath, target) => spawnFfmpeg(ffmpegPath, concatArgs(listPath, target, variant), CONCAT_TIMEOUT_MS, signal),
1096
- signal,
1097
- gate,
1098
- (doneSeconds) => onProgress({ doneSeconds, totalSeconds })
1099
- );
1100
1169
  }
1101
1170
  function concatArgs(listPath, target, variant) {
1102
1171
  return [
@@ -1177,7 +1246,7 @@ function spawnFfmpeg(ffmpegPath, args, stallMs, signal, onProgress) {
1177
1246
  } else {
1178
1247
  reject(
1179
1248
  new ProxyTranscodeError(
1180
- `ffmpeg exited with code ${code}${stderrReason(stderrTail)}`,
1249
+ `ffmpeg exited with code ${code}${stderrReason(stderrTail, args)}`,
1181
1250
  code,
1182
1251
  stderrTail
1183
1252
  )
@@ -1236,6 +1305,15 @@ async function transcodeToCache(job, projectDir, absoluteSourcePath, cachePath,
1236
1305
  releaseSlot();
1237
1306
  }
1238
1307
  }
1308
+ function proxyCopyProgress(projectDir, absoluteSourcePath, variant, box) {
1309
+ const source = canonicalizeProxySource(projectDir, absoluteSourcePath);
1310
+ const progress = inFlight.get(getCanonicalProxyCachePath(source, variant, box))?.job.lastProgress;
1311
+ return progress?.totalSeconds ? Math.min(1, progress.doneSeconds / progress.totalSeconds) : void 0;
1312
+ }
1313
+ function retryProxyCopy(projectDir, absoluteSourcePath, variant, box) {
1314
+ const source = canonicalizeProxySource(projectDir, absoluteSourcePath);
1315
+ failedTranscodes.delete(getCanonicalProxyCachePath(source, variant, box));
1316
+ }
1239
1317
  var proxyActivity = 0;
1240
1318
  function proxyActivityMark(projectDir) {
1241
1319
  if (!existsSync4(projectDir)) return String(proxyActivity);
@@ -1369,6 +1447,8 @@ export {
1369
1447
  ProxyWaitTimeoutError,
1370
1448
  waitForProxy,
1371
1449
  getProxyCachePath,
1450
+ proxyCopyProgress,
1451
+ retryProxyCopy,
1372
1452
  proxyActivityMark,
1373
1453
  resolveProxy,
1374
1454
  resolveProxies