hyperframes 0.8.135 → 0.8.137

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 (163) hide show
  1. package/dist/{add-7E2GRDW5.js → add-RUYRFHHN.js} +14 -14
  2. package/dist/{animatedGifPrep-3AKQSXPU.js → animatedGifPrep-VMLA2P45.js} +5 -5
  3. package/dist/{asset-43SXDTJI.js → asset-DHOG5RFW.js} +2 -2
  4. package/dist/{assetCataloger-KBN5LNK4.js → assetCataloger-7XIMSAPT.js} +2 -2
  5. package/dist/{auth-BWQ4HPK7.js → auth-FUBCZVUH.js} +2 -2
  6. package/dist/{autoUpdate-JTHQKHG5.js → autoUpdate-LHVP2DWF.js} +2 -2
  7. package/dist/{backgroundChecks-H43RKGRE.js → backgroundChecks-JO3KP5QE.js} +3 -3
  8. package/dist/backgroundChecksWorker.js +3 -3
  9. package/dist/{batchRender-VFXGGGJG.js → batchRender-PBCQ3R2Y.js} +3 -3
  10. package/dist/{beats-HAOQC7GJ.js → beats-AF7C54FH.js} +11 -11
  11. package/dist/{benchmark-ANUXIEPD.js → benchmark-QST66S5G.js} +11 -11
  12. package/dist/{browser-HEICRDNT.js → browser-NBKY3N66.js} +8 -8
  13. package/dist/{bundleWithLocalizedFonts-5ATL25BF.js → bundleWithLocalizedFonts-ZYZHO7IV.js} +2 -2
  14. package/dist/{capture-UEJG6BUX.js → capture-6GM7SIH5.js} +2 -2
  15. package/dist/{capture-DYBK5LGE.js → capture-MGC5AO5D.js} +8 -8
  16. package/dist/{catalog-2F5L72ZT.js → catalog-IT2TP2YE.js} +15 -15
  17. package/dist/{check-WZ5QMBBF.js → check-HNTSVBUV.js} +30 -30
  18. package/dist/{checkBrowser-FXVVADP6.js → checkBrowser-XH446M7L.js} +29 -29
  19. package/dist/{chunk-KZ7B3XK7.js → chunk-2DQ356HE.js} +1 -1
  20. package/dist/{chunk-2EAXUCCE.js → chunk-2NCHQUPX.js} +1 -1
  21. package/dist/{chunk-Z3EFUXL5.js → chunk-4HWOEWMH.js} +3 -3
  22. package/dist/{chunk-XFKPUKL7.js → chunk-4LBBWEEH.js} +4 -4
  23. package/dist/{chunk-3NCZ2SCH.js → chunk-5ORPW6RH.js} +3 -3
  24. package/dist/{chunk-XE6S5CE6.js → chunk-6IEDWKFR.js} +1 -1
  25. package/dist/{chunk-LYJNFBD6.js → chunk-6XCIGLRQ.js} +43 -13
  26. package/dist/{chunk-I54AADBN.js → chunk-7LAWNKVY.js} +1 -1
  27. package/dist/{chunk-H4UIYRZZ.js → chunk-7MF7FTFV.js} +1 -1
  28. package/dist/{chunk-BWJ27MQP.js → chunk-ADXD2HP4.js} +1 -1
  29. package/dist/{chunk-PULS7UW7.js → chunk-BVOGEPHM.js} +2 -2
  30. package/dist/{chunk-XSWKLDVC.js → chunk-DKYXU4F4.js} +2 -2
  31. package/dist/{chunk-GN6GW6IP.js → chunk-DRYF6HV2.js} +9 -9
  32. package/dist/{chunk-T5LPCY6I.js → chunk-E2C5SLHT.js} +27 -41
  33. package/dist/{chunk-KZJPREW7.js → chunk-E6WZHX7J.js} +1 -1
  34. package/dist/{chunk-HNUHWAHR.js → chunk-FAID56IK.js} +1 -1
  35. package/dist/{chunk-N3DZEPNT.js → chunk-GR7YLWXS.js} +1 -1
  36. package/dist/{chunk-2BJCQN7K.js → chunk-GYVUR4XC.js} +1 -1
  37. package/dist/{chunk-PGFP4FLW.js → chunk-HUV6BP7O.js} +1 -1
  38. package/dist/{chunk-RVG35AL2.js → chunk-J4AOOISS.js} +1 -1
  39. package/dist/{chunk-WVRNPWVW.js → chunk-J6BHZVM3.js} +1 -1
  40. package/dist/{chunk-XZVPQYLU.js → chunk-JVJQL42J.js} +6 -6
  41. package/dist/{chunk-XZABUQTX.js → chunk-JYYOAKHS.js} +1 -1
  42. package/dist/{chunk-GK5W3SIJ.js → chunk-LSLJIVWV.js} +2 -2
  43. package/dist/{chunk-527WRFUQ.js → chunk-MBSFY6Y5.js} +1 -1
  44. package/dist/{chunk-37EDNWLQ.js → chunk-MOBLZWAK.js} +1 -1
  45. package/dist/{chunk-SMWYGLTD.js → chunk-N4Y4KZFV.js} +7 -7
  46. package/dist/{chunk-RTURM45Q.js → chunk-NSLSFVFN.js} +1 -1
  47. package/dist/{chunk-4AXZWUQ6.js → chunk-OEJQAXS3.js} +1 -1
  48. package/dist/{chunk-TKSAWNNI.js → chunk-OUKLD6D2.js} +2 -2
  49. package/dist/{chunk-SRXQEQWZ.js → chunk-P7GAS5DG.js} +1 -1
  50. package/dist/{chunk-OAF4XJOW.js → chunk-PXSM4HPB.js} +7 -2
  51. package/dist/{chunk-LO7L5PJ3.js → chunk-R2MFCLGW.js} +5 -5
  52. package/dist/{chunk-32QEFPDS.js → chunk-RQLZL5KC.js} +1 -1
  53. package/dist/{chunk-IQ3OUQ5Z.js → chunk-S3S2LSZX.js} +22 -2
  54. package/dist/{chunk-BHOKLX4F.js → chunk-SCCJUPPX.js} +1 -1
  55. package/dist/{chunk-VNC6YQOC.js → chunk-SMGQFCBC.js} +1 -1
  56. package/dist/{chunk-N3KRRPL7.js → chunk-TTBOUHWT.js} +2 -2
  57. package/dist/{chunk-LKCICE2T.js → chunk-VU7RRQNA.js} +9 -9
  58. package/dist/{chunk-BSU7EOWJ.js → chunk-VYGC4AJL.js} +1 -1
  59. package/dist/{chunk-X5HWXQPU.js → chunk-WCJGTLPF.js} +22 -10
  60. package/dist/{chunk-V26IB6L2.js → chunk-WFNNUWFN.js} +2 -2
  61. package/dist/{chunk-NDKVPWBH.js → chunk-WTGGSKAJ.js} +3 -3
  62. package/dist/{chunk-AV7FBRWP.js → chunk-WYX6L7AV.js} +2 -2
  63. package/dist/{chunk-Z3KAYWE5.js → chunk-X2GKNLHE.js} +3 -3
  64. package/dist/{chunk-5ALWCRBU.js → chunk-YDCEBBEL.js} +7 -7
  65. package/dist/{chunk-V2J2ZWPR.js → chunk-ZBAC7334.js} +2 -2
  66. package/dist/{chunk-OSSVNAI5.js → chunk-ZBKSKJ37.js} +1 -1
  67. package/dist/{clean-SZMPUNNQ.js → clean-OWDWVJBN.js} +14 -14
  68. package/dist/cli.js +52 -52
  69. package/dist/{cloud-L7RFQB5E.js → cloud-S3MPN5VF.js} +4 -4
  70. package/dist/{cloudrun-FA4XHPZS.js → cloudrun-TLB7DEIN.js} +3 -3
  71. package/dist/{compare-DN5GHUAZ.js → compare-YRR6E22F.js} +24 -24
  72. package/dist/{compiler-XZ654ZH2.js → compiler-ENHZ73DN.js} +2 -2
  73. package/dist/{component-RYYGPCCC.js → component-EIJRLMDN.js} +3 -3
  74. package/dist/{compositions-TF42YRGQ.js → compositions-5CBYWP55.js} +10 -10
  75. package/dist/{delete-KYGP772F.js → delete-3U5L6XFA.js} +2 -2
  76. package/dist/{dist-HVJAGLHF.js → dist-7Y5HTID7.js} +2 -2
  77. package/dist/{doctor-AWERBYTS.js → doctor-IZQZRMWC.js} +9 -9
  78. package/dist/{events-QMT3TXJ2.js → events-6BYBCUBA.js} +8 -8
  79. package/dist/{events-W4AILK4F.js → events-BYDKYSIJ.js} +7 -7
  80. package/dist/{feedback-KNKJFGOK.js → feedback-I4YN55BC.js} +9 -9
  81. package/dist/{figma-D76N4WD7.js → figma-A3FAM3JT.js} +3 -3
  82. package/dist/fontLocalizeCli.js +7 -7
  83. package/dist/{get-JHNZVDVT.js → get-PIFWLOAB.js} +2 -2
  84. package/dist/{gpuPolicy-ON3RMSWD.js → gpuPolicy-26BEFD3H.js} +5 -5
  85. package/dist/{grade-compare-22SRAVPO.js → grade-compare-H2OKE5QQ.js} +24 -24
  86. package/dist/{help-CKKLDL3G.js → help-AXK7X72W.js} +1 -1
  87. package/dist/{history-44SS2VJQ.js → history-KUS6IXSL.js} +14 -14
  88. package/dist/hyperframes-player.global.js +1 -1
  89. package/dist/{info-A2CXIT7G.js → info-DRASLTTJ.js} +10 -10
  90. package/dist/{init-6D2GNNON.js → init-3BZKVTW5.js} +49 -26
  91. package/dist/{inspect-QLYCCDHV.js → inspect-ROKMT5V7.js} +25 -25
  92. package/dist/{installer-DDJVY4TO.js → installer-ERYE2UVI.js} +4 -4
  93. package/dist/{keyframes-TBS3BUZ5.js → keyframes-PXGT4QQ5.js} +11 -11
  94. package/dist/{lambda-LPLYOEYY.js → lambda-EQAPNZDT.js} +4 -4
  95. package/dist/{layout-YLBD2653.js → layout-PMFNU7NB.js} +25 -25
  96. package/dist/{lint-6XERRN4E.js → lint-G26WF3YE.js} +11 -11
  97. package/dist/{list-DPVTICQX.js → list-WIPSPI6M.js} +2 -2
  98. package/dist/{login-FJJH3ZPU.js → login-3CPZGZKC.js} +4 -4
  99. package/dist/{manager-GFN75DM4.js → manager-524RPYO7.js} +2 -2
  100. package/dist/{manager-67P2XFXQ.js → manager-DXB7JDHU.js} +2 -2
  101. package/dist/{media-treatment-CQWZZRHR.js → media-treatment-MGAQ5DQJ.js} +11 -11
  102. package/dist/{models-54NL5PRB.js → models-QHS7P3NJ.js} +7 -7
  103. package/dist/{motionShot-BSI4U6X7.js → motionShot-OLA4DIP7.js} +11 -11
  104. package/dist/{normalize-audio-2QQBNTAW.js → normalize-audio-PAPIKX2Y.js} +10 -10
  105. package/dist/{open-YCWBIUNN.js → open-D5INI7M6.js} +9 -9
  106. package/dist/{pipeline-P7QRGI5H.js → pipeline-IWP6BVSS.js} +7 -7
  107. package/dist/{play-5OX76SR5.js → play-O2WTUH6O.js} +19 -19
  108. package/dist/{preflight-X3XFRJPQ.js → preflight-EUCDEHR5.js} +6 -6
  109. package/dist/{present-UFG6NPCO.js → present-YDJZIRYD.js} +15 -15
  110. package/dist/{preview-AGS4TAWM.js → preview-AS6S5EKV.js} +16 -16
  111. package/dist/{producer-KQNJKM7F.js → producer-S77FHAAG.js} +1 -1
  112. package/dist/{projectConfig-EAAQYRMP.js → projectConfig-6XCGW6KX.js} +6 -6
  113. package/dist/{publication-H3G346EX.js → publication-E46VH7XO.js} +2 -2
  114. package/dist/{publish-NEGKIS35.js → publish-GQXWU7NF.js} +7 -7
  115. package/dist/{remove-background-HU4S4HH5.js → remove-background-JPPYOSD2.js} +9 -9
  116. package/dist/{render-KEZFDRDA.js → render-HQJEYV6Q.js} +20 -20
  117. package/dist/{render-POQI3EKS.js → render-IPOSWART.js} +11 -11
  118. package/dist/{render-F3CNO2IE.js → render-XC3O77AK.js} +3 -3
  119. package/dist/{render-batch-63CBIJYR.js → render-batch-FX5TZDGW.js} +3 -3
  120. package/dist/{renderCancellation-FT3JJ7GB.js → renderCancellation-66SZW2VF.js} +5 -5
  121. package/dist/{resolver-YJJKOGQF.js → resolver-JU3VRG4K.js} +4 -4
  122. package/dist/{sherpa-3BQDMJPJ.js → sherpa-I5YSMJNV.js} +24 -10
  123. package/dist/sherpaWorker.js +1 -1
  124. package/dist/{skills-L7SZ45NC.js → skills-SLCG4D3C.js} +10 -10
  125. package/dist/{skillsUpdateCheck-HP3GJFBP.js → skillsUpdateCheck-KJBSMNG3.js} +3 -3
  126. package/dist/{snapshot-CYB2PZPW.js → snapshot-WOPONARS.js} +25 -25
  127. package/dist/{src-CUR36DBE.js → src-A7PS67DT.js} +4 -4
  128. package/dist/{src-ZPAJ44CP.js → src-EDXJKFXO.js} +6 -6
  129. package/dist/{staticProjectServer-U5DMWKWA.js → staticProjectServer-XUCQPVTF.js} +13 -13
  130. package/dist/{status-6CGT2PJT.js → status-Z23IJMWJ.js} +5 -5
  131. package/dist/studio/assets/{hyperframes-player-DFv9heE6.js → hyperframes-player-D_Mh6hbx.js} +1 -1
  132. package/dist/studio/assets/{index-N_4Ij4X6.js → index-B3lJsA-e.js} +108 -108
  133. package/dist/studio/assets/{index-syMK0_9C.css → index-CC_E-Cbl.css} +1 -1
  134. package/dist/studio/assets/{index-CTp4loy9.js → index-CHEctGzc.js} +1 -1
  135. package/dist/studio/assets/{index-Buy06mZy.js → index-rtccfg9b.js} +1 -1
  136. package/dist/studio/{chunk-QRLKWENQ.js → chunk-4S3AYCOG.js} +2 -2
  137. package/dist/studio/{chunk-NM7BXNZ7.js → chunk-LOVBLSMR.js} +10 -4
  138. package/dist/studio/chunk-LOVBLSMR.js.map +1 -0
  139. package/dist/studio/index.html +2 -2
  140. package/dist/studio/index.js +2831 -2822
  141. package/dist/studio/index.js.map +1 -1
  142. package/dist/studio/player.js +2 -2
  143. package/dist/studio/styles.css +1 -1
  144. package/dist/studio/ui.d.ts +2 -1
  145. package/dist/studio/ui.js +1 -1
  146. package/dist/{studio-api-KMBTUYG5.js → studio-api-SAZ65ULH.js} +9 -7
  147. package/dist/{studioServer-LOJ6IOWA.js → studioServer-525NV45Z.js} +37 -37
  148. package/dist/{synthesize-K62TIZWI.js → synthesize-4RPDY46T.js} +2 -2
  149. package/dist/{system-3BTZGJNK.js → system-SXBUUXBG.js} +5 -5
  150. package/dist/{telemetry-MCEZ5JYB.js → telemetry-MUWYEQ42.js} +8 -8
  151. package/dist/{timeline-XWH4I5CF.js → timeline-BUCFPNP6.js} +14 -14
  152. package/dist/{tokens-6UTTSLVN.js → tokens-OOJBPXYD.js} +2 -2
  153. package/dist/{transcribe-S3NI7SYU.js → transcribe-GCVTFFIF.js} +79 -23
  154. package/dist/{transcribe-HC35FL6W.js → transcribe-JAADNKL7.js} +8 -8
  155. package/dist/{tts-P3LIPIL5.js → tts-XGVL5UHX.js} +3 -3
  156. package/dist/{updateCheck-3YAKEXSX.js → updateCheck-AVUIJNVC.js} +2 -2
  157. package/dist/{upgrade-JQPBH5RY.js → upgrade-DV6IVILG.js} +2 -2
  158. package/dist/{urlDownloader-A5TT3AFE.js → urlDownloader-N7LDOVHK.js} +4 -4
  159. package/dist/{validate-BLUPV5H5.js → validate-22IQFLYH.js} +15 -15
  160. package/dist/{video-USXMJDEZ.js → video-22M7YBQT.js} +5 -5
  161. package/package.json +1 -1
  162. package/dist/studio/chunk-NM7BXNZ7.js.map +0 -1
  163. /package/dist/studio/{chunk-QRLKWENQ.js.map → chunk-4S3AYCOG.js.map} +0 -0
@@ -10,17 +10,17 @@ import {
10
10
  import {
11
11
  ambiguousIssue,
12
12
  loadBrowserScript
13
- } from "./chunk-GN6GW6IP.js";
13
+ } from "./chunk-DRYF6HV2.js";
14
14
  import {
15
15
  serveStaticProjectHtml
16
- } from "./chunk-3NCZ2SCH.js";
16
+ } from "./chunk-5ORPW6RH.js";
17
17
  import {
18
18
  auditClipDurations,
19
19
  shouldIgnoreHttpError,
20
20
  shouldIgnoreRequestFailure
21
- } from "./chunk-LKCICE2T.js";
21
+ } from "./chunk-VU7RRQNA.js";
22
22
  import "./chunk-XUHOIDKG.js";
23
- import "./chunk-XSWKLDVC.js";
23
+ import "./chunk-DKYXU4F4.js";
24
24
  import "./chunk-X7MTZ4T2.js";
25
25
  import {
26
26
  AUDIT_SEEK_OPTIONS,
@@ -33,55 +33,55 @@ import {
33
33
  resolveCliChromeGpuMode,
34
34
  seekCompositionTimeline,
35
35
  waitForPreferredSeekTarget
36
- } from "./chunk-LO7L5PJ3.js";
36
+ } from "./chunk-R2MFCLGW.js";
37
37
  import "./chunk-5Z63TBTX.js";
38
- import "./chunk-XE6S5CE6.js";
39
- import "./chunk-BSU7EOWJ.js";
38
+ import "./chunk-6IEDWKFR.js";
39
+ import "./chunk-VYGC4AJL.js";
40
40
  import "./chunk-YEIFI443.js";
41
- import "./chunk-LYJNFBD6.js";
42
- import "./chunk-GK5W3SIJ.js";
41
+ import "./chunk-6XCIGLRQ.js";
42
+ import "./chunk-LSLJIVWV.js";
43
43
  import "./chunk-EOVYQ3IG.js";
44
- import "./chunk-37EDNWLQ.js";
44
+ import "./chunk-MOBLZWAK.js";
45
45
  import {
46
46
  decideMediaProxyEligibility,
47
47
  proxyVariantFor,
48
48
  resolveProxy,
49
49
  scanProjectMediaCodecMap
50
- } from "./chunk-RVG35AL2.js";
51
- import "./chunk-WVRNPWVW.js";
50
+ } from "./chunk-J4AOOISS.js";
51
+ import "./chunk-J6BHZVM3.js";
52
52
  import "./chunk-IHFUKJOR.js";
53
- import "./chunk-OSSVNAI5.js";
53
+ import "./chunk-ZBKSKJ37.js";
54
54
  import "./chunk-PFCFR3KZ.js";
55
55
  import {
56
56
  resolveAutoProxy
57
- } from "./chunk-VNC6YQOC.js";
57
+ } from "./chunk-SMGQFCBC.js";
58
58
  import "./chunk-XT7X6QCP.js";
59
59
  import "./chunk-4YYJOFKS.js";
60
60
  import "./chunk-HVW7ABXD.js";
61
- import "./chunk-32QEFPDS.js";
62
- import "./chunk-V2J2ZWPR.js";
63
- import "./chunk-RTURM45Q.js";
61
+ import "./chunk-RQLZL5KC.js";
62
+ import "./chunk-ZBAC7334.js";
63
+ import "./chunk-NSLSFVFN.js";
64
64
  import "./chunk-AWDFDFI3.js";
65
65
  import "./chunk-P6LJ4Y32.js";
66
66
  import "./chunk-GMECXFAN.js";
67
67
  import "./chunk-374QQGBQ.js";
68
- import "./chunk-NDKVPWBH.js";
69
- import "./chunk-Z3KAYWE5.js";
68
+ import "./chunk-WTGGSKAJ.js";
69
+ import "./chunk-X2GKNLHE.js";
70
70
  import "./chunk-VWG7OQKU.js";
71
71
  import "./chunk-ZTZA4UWZ.js";
72
- import "./chunk-4AXZWUQ6.js";
72
+ import "./chunk-OEJQAXS3.js";
73
73
  import "./chunk-AMKC3AXA.js";
74
74
  import "./chunk-S3S4TGEH.js";
75
75
  import "./chunk-54HJ63Q2.js";
76
76
  import "./chunk-PBN6GBJE.js";
77
77
  import "./chunk-KC5XXX3X.js";
78
78
  import "./chunk-TJSTGSAW.js";
79
- import "./chunk-N3KRRPL7.js";
80
- import "./chunk-BHOKLX4F.js";
79
+ import "./chunk-TTBOUHWT.js";
80
+ import "./chunk-SCCJUPPX.js";
81
81
  import "./chunk-OZUQF4NB.js";
82
82
  import "./chunk-DPVXBVLL.js";
83
- import "./chunk-PGFP4FLW.js";
84
- import "./chunk-SRXQEQWZ.js";
83
+ import "./chunk-HUV6BP7O.js";
84
+ import "./chunk-P7GAS5DG.js";
85
85
  import "./chunk-VC76R6W2.js";
86
86
  import "./chunk-OFQWTKPW.js";
87
87
  import "./chunk-TWWSYAKJ.js";
@@ -91,12 +91,12 @@ import "./chunk-PJ3HDUCY.js";
91
91
  import "./chunk-TQFG7HTI.js";
92
92
  import "./chunk-GK4AIFIH.js";
93
93
  import "./chunk-2PSPARWP.js";
94
- import "./chunk-KZ7B3XK7.js";
94
+ import "./chunk-2DQ356HE.js";
95
95
  import "./chunk-K4WIOZFP.js";
96
96
  import "./chunk-XUXGIA7H.js";
97
97
  import "./chunk-WERLJGIC.js";
98
98
  import "./chunk-ISN5GRYI.js";
99
- import "./chunk-AV7FBRWP.js";
99
+ import "./chunk-WYX6L7AV.js";
100
100
  import {
101
101
  normalizeErrorMessage
102
102
  } from "./chunk-KNU5COPB.js";
@@ -139,7 +139,7 @@ async function preResolveHostileMediaProxies(projectDir, html, autoProxyOverride
139
139
  );
140
140
  }
141
141
  async function runBrowserCheck(project, options, motion, runGrid) {
142
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-5ATL25BF.js");
142
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-ZYZHO7IV.js");
143
143
  const html = await bundleWithLocalizedFonts(project.dir);
144
144
  await preResolveHostileMediaProxies(project.dir, html, options.autoProxy);
145
145
  const server = await serveStaticProjectHtml(
@@ -166,7 +166,7 @@ async function runBrowserCheck(project, options, motion, runGrid) {
166
166
  await waitForPreferredSeekTarget(page);
167
167
  const rootAnchor = await resolveRootAnchor(page);
168
168
  const launchSettleMs = Date.now() - launchSettleStart;
169
- const { analyzeClipMediaFit } = await import("./src-CUR36DBE.js");
169
+ const { analyzeClipMediaFit } = await import("./src-A7PS67DT.js");
170
170
  for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
171
171
  drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
172
172
  }
@@ -186,7 +186,7 @@ async function runBrowserCheck(project, options, motion, runGrid) {
186
186
  }
187
187
  async function captureFindingCrops(project, options, requests) {
188
188
  if (requests.length === 0) return [];
189
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-5ATL25BF.js");
189
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-ZYZHO7IV.js");
190
190
  const html = await bundleWithLocalizedFonts(project.dir);
191
191
  const server = await serveStaticProjectHtml(
192
192
  project.dir,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-ISN5GRYI.js";
18
18
  import {
19
19
  VERSION
20
- } from "./chunk-AV7FBRWP.js";
20
+ } from "./chunk-WYX6L7AV.js";
21
21
 
22
22
  // src/utils/updateCheck.ts
23
23
  import { existsSync, readFileSync } from "fs";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  downloadFile
9
- } from "./chunk-X5HWXQPU.js";
9
+ } from "./chunk-WCJGTLPF.js";
10
10
 
11
11
  // src/background-removal/manager.ts
12
12
  import { existsSync, mkdirSync } from "fs";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  ensureModel,
9
9
  selectProviders
10
- } from "./chunk-2EAXUCCE.js";
10
+ } from "./chunk-2NCHQUPX.js";
11
11
  import {
12
12
  findFFmpeg,
13
13
  findFFprobe,
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  DEFAULT_VP9_CPU_USED,
18
18
  renderProvenanceArgs
19
- } from "./chunk-N3KRRPL7.js";
19
+ } from "./chunk-TTBOUHWT.js";
20
20
  import {
21
21
  loadOptionalPackage
22
22
  } from "./chunk-XT5P4QMO.js";
@@ -202,7 +202,7 @@ function inferInputKind(inputPath) {
202
202
  }
203
203
  async function probeMedia(inputPath) {
204
204
  const isImage = inferInputKind(inputPath) === "image";
205
- const engine = await import("./src-CUR36DBE.js");
205
+ const engine = await import("./src-A7PS67DT.js");
206
206
  const meta = await engine.extractMediaMetadata(inputPath);
207
207
  if (isImage) {
208
208
  return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
@@ -7,16 +7,16 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-NDKVPWBH.js";
10
+ } from "./chunk-WTGGSKAJ.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-Z3KAYWE5.js";
13
+ } from "./chunk-X2GKNLHE.js";
14
14
  import {
15
15
  c
16
16
  } from "./chunk-ZTZA4UWZ.js";
17
17
  import {
18
18
  detectAgentRuntime
19
- } from "./chunk-4AXZWUQ6.js";
19
+ } from "./chunk-OEJQAXS3.js";
20
20
  import {
21
21
  readConfig,
22
22
  writeConfig
@@ -83,7 +83,7 @@ async function maybePromptRenderFeedback(opts) {
83
83
  async function getDoctorSummary() {
84
84
  try {
85
85
  const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
86
- import("./system-3BTZGJNK.js"),
86
+ import("./system-SXBUUXBG.js"),
87
87
  import("./ffmpeg-QIUFEFTY.js")
88
88
  ]);
89
89
  const sys = getSystemMeta();
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-LYJNFBD6.js";
10
+ } from "./chunk-6XCIGLRQ.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-RVG35AL2.js";
21
+ } from "./chunk-J4AOOISS.js";
22
22
  import {
23
23
  resolveAutoProxy
24
- } from "./chunk-VNC6YQOC.js";
24
+ } from "./chunk-SMGQFCBC.js";
25
25
 
26
26
  // src/utils/staticProjectServer.ts
27
27
  import { createServer } from "http";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveCaptureBrowserGpuMode
9
- } from "./chunk-OSSVNAI5.js";
9
+ } from "./chunk-ZBKSKJ37.js";
10
10
  import {
11
11
  requestCliExit
12
12
  } from "./chunk-PBN6GBJE.js";
@@ -21,7 +21,7 @@ import {
21
21
  splitElementInHtml,
22
22
  unwrapElementsFromHtml,
23
23
  wrapElementsInHtml
24
- } from "./chunk-GK5W3SIJ.js";
24
+ } from "./chunk-LSLJIVWV.js";
25
25
  import {
26
26
  atomicTempPath,
27
27
  createFileAtomically,
@@ -34,7 +34,7 @@ import {
34
34
  measureAudio,
35
35
  requiredFfmpeg,
36
36
  resolveLocalAudioPath
37
- } from "./chunk-37EDNWLQ.js";
37
+ } from "./chunk-MOBLZWAK.js";
38
38
  import {
39
39
  PROXY_PARAMS_VERSION,
40
40
  PROXY_PENDING_RETRY_AFTER_SECONDS,
@@ -60,7 +60,7 @@ import {
60
60
  shouldPrewarmProxy,
61
61
  waitForProxy,
62
62
  walkDir
63
- } from "./chunk-RVG35AL2.js";
63
+ } from "./chunk-J4AOOISS.js";
64
64
  import {
65
65
  findTimelineScript,
66
66
  parseGsapScriptAcorn
@@ -81,7 +81,7 @@ import {
81
81
  motionPathPluginUrl,
82
82
  parseFps,
83
83
  sameInstant
84
- } from "./chunk-BHOKLX4F.js";
84
+ } from "./chunk-SCCJUPPX.js";
85
85
  import {
86
86
  MagicString,
87
87
  VALID_CANVAS_RESOLUTIONS,
@@ -90,7 +90,7 @@ import {
90
90
  import {
91
91
  addScenePartsManifest,
92
92
  ensureHfIds
93
- } from "./chunk-PGFP4FLW.js";
93
+ } from "./chunk-HUV6BP7O.js";
94
94
  import {
95
95
  AFTER_FONTS_SCRIPT_TYPE,
96
96
  RUNTIME_BOOTSTRAP_ATTR,
@@ -104,7 +104,7 @@ import {
104
104
  resolveRateSpec,
105
105
  sourceTimeAt,
106
106
  stripEmbeddedRuntimeScripts
107
- } from "./chunk-SRXQEQWZ.js";
107
+ } from "./chunk-P7GAS5DG.js";
108
108
  import {
109
109
  ProjectRootMissingError,
110
110
  folderGone,
@@ -7097,7 +7097,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
7097
7097
  let block = extractGsapScriptBlock(html);
7098
7098
  if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
7099
7099
  const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
7100
- const { GSAP_CDN } = await import("./dist-HVJAGLHF.js");
7100
+ const { GSAP_CDN } = await import("./dist-7Y5HTID7.js");
7101
7101
  const bootstrap = [
7102
7102
  `<script src="${GSAP_CDN}"></script>`,
7103
7103
  "<script>",
@@ -7914,8 +7914,8 @@ async function foldAtomicCutFile(c, file, absPath, before, writer) {
7914
7914
  skippedSelectors: [...skippedSelectors]
7915
7915
  };
7916
7916
  }
7917
+ var MAX_UPLOAD_BYTES = 500 * 1024 * 1024;
7917
7918
  async function processUploadedFiles(formData, targetDir, projectDir) {
7918
- const MAX_UPLOAD_BYTES = 500 * 1024 * 1024;
7919
7919
  const uploaded = [];
7920
7920
  const skipped = [];
7921
7921
  const invalid = [];
@@ -8728,7 +8728,6 @@ function registerFileRoutes(api, adapter) {
8728
8728
  }
8729
8729
  return c.json({ ok: true, path: copyPath }, 201);
8730
8730
  });
8731
- const MAX_UPLOAD_BYTES = 500 * 1024 * 1024;
8732
8731
  api.post(
8733
8732
  "/projects/:id/upload",
8734
8733
  bodyLimit({
@@ -8829,7 +8828,11 @@ function registerFileRoutes(api, adapter) {
8829
8828
  });
8830
8829
  }
8831
8830
  var ALWAYS_AFFECTS = ["hyperframes.json", ...STUDIO_SIGNATURE_MANIFEST_PATHS];
8831
+ var MAX_PREVIEW_PATH_LENGTH = 4096;
8832
+ var SHOW_ELEMENT = 1;
8832
8833
  var REFERENCE = /\b(?:src|href|poster|data-composition-src)\s*=\s*(?:"([^"\n]*)"|'([^'\n]*)')|url\(\s*(?:"([^"\n]*)"|'([^'\n]*)'|([^"'\s)]+))/gi;
8834
+ var REFERENCE_ATTRIBUTE = /\b(?:src|href|poster|data-composition-src)$/i;
8835
+ var isElement = (node) => node.nodeType === 1;
8833
8836
  var pathKey = process.platform === "darwin" || process.platform === "win32" ? (path) => resolve32(path).toLowerCase() : (path) => resolve32(path);
8834
8837
  var readsByProject = /* @__PURE__ */ new Map();
8835
8838
  var builtProjects = /* @__PURE__ */ new Set();
@@ -8854,6 +8857,7 @@ function linksOnTheWay(path) {
8854
8857
  continue;
8855
8858
  }
8856
8859
  const next = join7(at, part);
8860
+ if (next.length > MAX_PREVIEW_PATH_LENGTH) return passed;
8857
8861
  const target = hops < 40 ? readLink(next) : null;
8858
8862
  if (target === null) {
8859
8863
  at = next;
@@ -8869,26 +8873,51 @@ function linksOnTheWay(path) {
8869
8873
  return passed;
8870
8874
  }
8871
8875
  function recordPreviewRead(projectDir, filePath) {
8876
+ if (filePath.length > MAX_PREVIEW_PATH_LENGTH) return;
8872
8877
  const key = projectKey(projectDir);
8873
8878
  let reads = readsByProject.get(key);
8874
8879
  if (!reads) readsByProject.set(key, reads = /* @__PURE__ */ new Set());
8875
8880
  const read = inRealProject(projectDir, filePath);
8881
+ if (read.length > MAX_PREVIEW_PATH_LENGTH) return;
8876
8882
  for (const found of [read, ...linksOnTheWay(read)]) {
8877
8883
  for (let path = pathKey(found); !reads.has(path); path = dirname42(path)) reads.add(path);
8878
8884
  }
8879
8885
  }
8880
8886
  function recordPreviewReferences(projectDir, html) {
8881
8887
  const named = /* @__PURE__ */ new Set();
8882
- for (const match of html.matchAll(REFERENCE)) {
8883
- const url = (match[1] ?? match[2] ?? match[3] ?? match[4] ?? match[5] ?? "").trim();
8884
- if (!url || /^(?:[a-z][a-z0-9+.-]*:|[/#])/i.test(url)) continue;
8888
+ const add = (reference) => {
8889
+ const url = reference.trim();
8890
+ if (!url || /^(?:[a-z][a-z0-9+.-]*:|[/#])/i.test(url)) return;
8885
8891
  const path = url.split(/[?#]/)[0] ?? "";
8886
8892
  let decoded = path;
8887
8893
  try {
8888
8894
  decoded = decodeURIComponent(path);
8889
8895
  } catch {
8890
8896
  }
8891
- if (decoded) named.add(decoded);
8897
+ if (decoded && decoded.length <= MAX_PREVIEW_PATH_LENGTH) named.add(decoded);
8898
+ };
8899
+ const scan = (text2) => {
8900
+ for (const match of text2.matchAll(REFERENCE)) {
8901
+ add(match[1] ?? match[2] ?? match[3] ?? match[4] ?? match[5] ?? "");
8902
+ }
8903
+ };
8904
+ const scanElement = (element) => {
8905
+ for (const attribute of element.attributes) {
8906
+ if (REFERENCE_ATTRIBUTE.test(attribute.name)) add(attribute.value);
8907
+ }
8908
+ const style = element.getAttribute("style");
8909
+ if (style) scan(style);
8910
+ if (element.localName === "style" || element.localName === "script") {
8911
+ scan(element.textContent ?? "");
8912
+ }
8913
+ };
8914
+ const { document: document2 } = parseHTML(html);
8915
+ for (const root of document2.children) {
8916
+ scanElement(root);
8917
+ const elements = document2.createTreeWalker(root, SHOW_ELEMENT);
8918
+ for (let node = elements.nextNode(); node; node = elements.nextNode()) {
8919
+ if (isElement(node)) scanElement(node);
8920
+ }
8892
8921
  }
8893
8922
  for (const path of named) recordPreviewRead(projectDir, path);
8894
8923
  }
@@ -11506,6 +11535,7 @@ export {
11506
11535
  compositionsAffectedBy,
11507
11536
  applyFileMutations,
11508
11537
  requestSubPath,
11538
+ MAX_UPLOAD_BYTES,
11509
11539
  affectsPreview,
11510
11540
  PREVIEW_BUNDLE_OPTIONS,
11511
11541
  createStudioApi,
@@ -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-QMT3TXJ2.js");
1281
+ const { trackCommandFailure } = await import("./events-6BYBCUBA.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  formatVariableValidationIssue,
21
21
  validateVariables
22
- } from "./chunk-BHOKLX4F.js";
22
+ } from "./chunk-SCCJUPPX.js";
23
23
  import {
24
24
  extractCompositionMetadata
25
25
  } from "./chunk-OZUQF4NB.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-TVCRUG2S.js";
14
14
  import {
15
15
  getFreeDiskMb
16
- } from "./chunk-4AXZWUQ6.js";
16
+ } from "./chunk-OEJQAXS3.js";
17
17
  import {
18
18
  ensureBrowser,
19
19
  findBrowser
@@ -20,7 +20,7 @@ import {
20
20
  typeDirPath,
21
21
  updateRecord,
22
22
  withFigmaErrors
23
- } from "./chunk-I54AADBN.js";
23
+ } from "./chunk-7LAWNKVY.js";
24
24
  import {
25
25
  defineCommand
26
26
  } from "./chunk-S3S4TGEH.js";
@@ -221,7 +221,7 @@ var asset_default = defineCommand({
221
221
  rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
222
222
  );
223
223
  }
224
- const { trackFigmaImport } = await import("./telemetry-MCEZ5JYB.js");
224
+ const { trackFigmaImport } = await import("./telemetry-MUWYEQ42.js");
225
225
  trackFigmaImport({
226
226
  phase: "asset",
227
227
  reused: results.every((r) => r.reused),
@@ -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-LYJNFBD6.js";
9
+ } from "./chunk-6XCIGLRQ.js";
10
10
  import {
11
11
  injectTagsAtHeadStart
12
- } from "./chunk-SRXQEQWZ.js";
12
+ } from "./chunk-P7GAS5DG.js";
13
13
 
14
14
  // src/utils/compositionServer.ts
15
15
  import { createHash } from "crypto";
@@ -6,24 +6,24 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  serveStaticProjectHtml
9
- } from "./chunk-3NCZ2SCH.js";
9
+ } from "./chunk-5ORPW6RH.js";
10
10
  import {
11
11
  AUDIT_SEEK_OPTIONS,
12
12
  installPageFunctionGuard,
13
13
  seekCompositionTimeline,
14
14
  waitForCompositionFonts,
15
15
  waitForRuntimeReady
16
- } from "./chunk-LO7L5PJ3.js";
16
+ } from "./chunk-R2MFCLGW.js";
17
17
  import {
18
18
  launchManagedBrowser,
19
19
  resolveManagedGpuMode
20
- } from "./chunk-XE6S5CE6.js";
20
+ } from "./chunk-6IEDWKFR.js";
21
21
  import {
22
22
  resolveDiagnosticNavigationTimeoutMs
23
- } from "./chunk-BSU7EOWJ.js";
23
+ } from "./chunk-VYGC4AJL.js";
24
24
  import {
25
25
  resolveProject
26
- } from "./chunk-WVRNPWVW.js";
26
+ } from "./chunk-J6BHZVM3.js";
27
27
  import {
28
28
  c
29
29
  } from "./chunk-ZTZA4UWZ.js";
@@ -37,7 +37,7 @@ import {
37
37
  import {
38
38
  printDeprecationNotice,
39
39
  withMeta
40
- } from "./chunk-KZ7B3XK7.js";
40
+ } from "./chunk-2DQ356HE.js";
41
41
  import {
42
42
  normalizeErrorMessage
43
43
  } from "./chunk-KNU5COPB.js";
@@ -670,7 +670,7 @@ async function collectTweenBoundaries(page) {
670
670
  });
671
671
  }
672
672
  async function bundleProjectHtml(projectDir) {
673
- const { bundleToSingleHtml } = await import("./compiler-XZ654ZH2.js");
673
+ const { bundleToSingleHtml } = await import("./compiler-ENHZ73DN.js");
674
674
  return bundleToSingleHtml(projectDir);
675
675
  }
676
676
  async function alignViewportToComposition(page, url) {
@@ -692,8 +692,8 @@ async function alignViewportToComposition(page, url) {
692
692
  async function runLayoutAudit(projectDir, opts) {
693
693
  const { ensureBrowser } = await import("./manager-CT3D67CG.js");
694
694
  const puppeteer = await import("puppeteer-core");
695
- const { buildChromeArgs } = await import("./src-CUR36DBE.js");
696
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalBrowserGpuMode } = await import("./gpuPolicy-ON3RMSWD.js");
695
+ const { buildChromeArgs } = await import("./src-A7PS67DT.js");
696
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalBrowserGpuMode } = await import("./gpuPolicy-26BEFD3H.js");
697
697
  const html = await bundleProjectHtml(projectDir);
698
698
  const server = await serveStaticProjectHtml(
699
699
  projectDir,
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  stoppedByCancelSignal
9
- } from "./chunk-KZJPREW7.js";
9
+ } from "./chunk-E6WZHX7J.js";
10
10
  import {
11
11
  DEFAULT_MODEL,
12
12
  ensureModel,
13
13
  ensureWhisper,
14
14
  hasFFmpeg
15
- } from "./chunk-OAF4XJOW.js";
15
+ } from "./chunk-PXSM4HPB.js";
16
16
  import {
17
17
  findFFmpeg,
18
18
  findFFprobe,
@@ -25,19 +25,6 @@ import { existsSync, readFileSync, mkdirSync, rmSync, statSync, unlinkSync } fro
25
25
  import { join, extname } from "path";
26
26
  import { tmpdir } from "os";
27
27
  import { randomUUID } from "crypto";
28
- function detectLanguage(whisperPath, modelPath, wavPath) {
29
- try {
30
- const output = execFileSync(whisperPath, ["--model", modelPath, "--detect-language", wavPath], {
31
- encoding: "utf-8",
32
- timeout: 3e4,
33
- stdio: ["ignore", "pipe", "pipe"]
34
- });
35
- const match = output.match(/auto-detected language:\s*(\w+)/);
36
- return match?.[1] ?? null;
37
- } catch {
38
- return null;
39
- }
40
- }
41
28
  function findWavDataChunk(buf) {
42
29
  if (buf.length < 12) return null;
43
30
  let pos = 12;
@@ -287,48 +274,42 @@ function prepareWav(inputPath, onProgress) {
287
274
  async function transcribe(inputPath, outputDir, options) {
288
275
  const model = initialModelForLanguage(options?.model ?? DEFAULT_MODEL, options?.language);
289
276
  options?.onProgress?.("Checking whisper...");
290
- const whisper = await ensureWhisper({ onProgress: options?.onProgress });
277
+ const whisper = await ensureWhisper({
278
+ onProgress: options?.onProgress,
279
+ installRuntime: options?.installRuntime
280
+ });
291
281
  options?.onProgress?.("Checking model...");
292
282
  const modelPath = await ensureModel(model, {
293
- onProgress: options?.onProgress
283
+ onProgress: options?.onProgress,
284
+ onDownloadProgress: options?.onEvent ? (receivedBytes, totalBytes) => options.onEvent?.({
285
+ type: "progress",
286
+ phase: "download",
287
+ model,
288
+ receivedBytes,
289
+ totalBytes
290
+ }) : void 0
294
291
  });
295
292
  const wavPath = prepareWav(inputPath, options?.onProgress);
296
- let effectiveModel = model;
297
- let effectiveModelPath = modelPath;
298
- let detectedLanguage = options?.language ?? null;
299
- if (!detectedLanguage && !effectiveModel.endsWith(".en")) {
300
- options?.onProgress?.("Detecting language...");
301
- detectedLanguage = detectLanguage(whisper.executablePath, effectiveModelPath, wavPath);
302
- }
303
- if (detectedLanguage && detectedLanguage !== "en" && effectiveModel.endsWith(".en")) {
304
- const multilingualModel = effectiveModel.replace(/\.en$/, "");
305
- options?.onProgress?.(
306
- `Detected ${detectedLanguage} \u2014 switching to ${multilingualModel} model...`
307
- );
308
- effectiveModelPath = await ensureModel(multilingualModel, {
309
- onProgress: options?.onProgress
310
- });
311
- effectiveModel = multilingualModel;
312
- }
293
+ const automaticLanguage = options?.language === void 0 && !model.endsWith(".en");
294
+ const language = options?.language ?? (automaticLanguage ? "auto" : "en");
313
295
  options?.onProgress?.("Transcribing...");
296
+ options?.onEvent?.({ type: "progress", phase: "transcription", model, status: "started" });
314
297
  const outputBase = join(outputDir, "transcript");
315
298
  mkdirSync(outputDir, { recursive: true });
316
299
  const whisperArgs = [
317
300
  "--model",
318
- effectiveModelPath,
301
+ modelPath,
319
302
  "--output-json-full",
320
303
  "--output-file",
321
304
  outputBase,
322
305
  "--dtw",
323
- dtwPresetForModel(effectiveModel),
306
+ dtwPresetForModel(model),
324
307
  "--suppress-nst"
325
308
  ];
326
- if (detectedLanguage) {
327
- whisperArgs.push("--language", detectedLanguage);
328
- }
309
+ whisperArgs.push("--language", language);
329
310
  whisperArgs.push(wavPath);
330
311
  const whisperTimeoutMs = resolveWhisperTimeoutMs(getPreparedWavDurationSeconds(wavPath), {
331
- model: effectiveModel,
312
+ model,
332
313
  overrideMs: options?.timeoutMs
333
314
  });
334
315
  try {
@@ -339,7 +320,7 @@ async function transcribe(inputPath, outputDir, options) {
339
320
  } catch (err) {
340
321
  throw wrapWhisperTimeoutError(err, {
341
322
  effectiveTimeoutMs: whisperTimeoutMs,
342
- model: effectiveModel,
323
+ model,
343
324
  wasOverride: options?.timeoutMs != null
344
325
  });
345
326
  }
@@ -348,6 +329,8 @@ async function transcribe(inputPath, outputDir, options) {
348
329
  throw new Error("Whisper did not produce output. Check the input file.");
349
330
  }
350
331
  const transcript = JSON.parse(readFileSync(transcriptPath, "utf-8"));
332
+ const reportedLanguage = transcript.result?.language;
333
+ const detectedLanguage = automaticLanguage && typeof reportedLanguage === "string" && reportedLanguage.length > 0 ? reportedLanguage : null;
351
334
  const segments = transcript.transcription ?? [];
352
335
  let wordCount = 0;
353
336
  let maxEnd = 0;
@@ -366,7 +349,10 @@ async function transcribe(inputPath, outputDir, options) {
366
349
  } catch {
367
350
  }
368
351
  }
352
+ options?.onEvent?.({ type: "progress", phase: "transcription", model, status: "completed" });
369
353
  return {
354
+ model,
355
+ detectedLanguage,
370
356
  transcriptPath,
371
357
  wordCount,
372
358
  durationSeconds: maxEnd / 1e3,
@@ -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-N3KRRPL7.js";
9
+ } from "./chunk-TTBOUHWT.js";
10
10
  import {
11
11
  processAncestorSnapshot,
12
12
  processIdentity,