hyperframes 0.8.138 → 0.8.139

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 (164) hide show
  1. package/dist/{add-IZQPSHT5.js → add-VYJQ4S3P.js} +14 -14
  2. package/dist/{animatedGifPrep-MQF3GRFW.js → animatedGifPrep-IBMW6FZB.js} +5 -5
  3. package/dist/{asset-RNZX4ISG.js → asset-FLSUS73X.js} +2 -2
  4. package/dist/{assetCataloger-5YRUY3PJ.js → assetCataloger-TGD7TRCR.js} +2 -2
  5. package/dist/{auth-LUELYGJ4.js → auth-EZXIN4M4.js} +2 -2
  6. package/dist/{autoUpdate-ECMQWUU5.js → autoUpdate-ZPMY5T3X.js} +2 -2
  7. package/dist/{backgroundChecks-PBEJMSA3.js → backgroundChecks-JIDTAUFE.js} +3 -3
  8. package/dist/backgroundChecksWorker.js +3 -3
  9. package/dist/{batchRender-2GXKBPFQ.js → batchRender-FNZ6TJYY.js} +3 -3
  10. package/dist/{beats-AAAZVDOY.js → beats-EAA4U3YN.js} +11 -11
  11. package/dist/{benchmark-EI767IB4.js → benchmark-KKZQVK2Y.js} +11 -11
  12. package/dist/{browser-KAA2VXYH.js → browser-ZIVVJLJT.js} +8 -8
  13. package/dist/{bundleWithLocalizedFonts-MWDYAPGB.js → bundleWithLocalizedFonts-2XWC3PEM.js} +2 -2
  14. package/dist/{capture-VYT5NQQI.js → capture-EFYPXI42.js} +8 -8
  15. package/dist/{capture-IRRHK6BT.js → capture-MKJHABUL.js} +2 -2
  16. package/dist/{catalog-FYTZ2ET6.js → catalog-EWX4BBI2.js} +14 -14
  17. package/dist/{catch-up-XH3OAKQR.js → catch-up-FJFH7T4W.js} +9 -9
  18. package/dist/{check-MUMIOK5K.js → check-YJNVDCBP.js} +30 -30
  19. package/dist/{checkBrowser-LKSZFOU6.js → checkBrowser-I6SPPEGD.js} +29 -29
  20. package/dist/{chunk-WH6PRFNX.js → chunk-25DHUDOK.js} +3 -3
  21. package/dist/{chunk-FSSMOTMS.js → chunk-3RT6D4P6.js} +1 -1
  22. package/dist/{chunk-OBC75KXL.js → chunk-4VZBKOQJ.js} +1 -1
  23. package/dist/chunk-6IHWCZ3W.js +54 -0
  24. package/dist/{chunk-VR5UQWGV.js → chunk-7SI7GCX6.js} +3 -3
  25. package/dist/{chunk-W3KQCJVP.js → chunk-A4X2YWNQ.js} +1 -1
  26. package/dist/{chunk-DJMXTKKK.js → chunk-BC3OY2ED.js} +1 -1
  27. package/dist/{chunk-HUZYBV2Z.js → chunk-CDJ7FPPJ.js} +1 -1
  28. package/dist/{chunk-IRYC5BRO.js → chunk-CDMB3PRC.js} +4 -4
  29. package/dist/{chunk-R6C6URKB.js → chunk-DUQJF7FK.js} +2 -2
  30. package/dist/{chunk-RH5VML6E.js → chunk-DW32KBHN.js} +9 -9
  31. package/dist/{chunk-KBUUCAIZ.js → chunk-EH4VUY27.js} +2 -2
  32. package/dist/{chunk-RLNB3JCY.js → chunk-EJ7OWYF2.js} +1 -1
  33. package/dist/{chunk-SDRKEYZV.js → chunk-EZ2P7LAP.js} +5 -5
  34. package/dist/{chunk-QPOK6I32.js → chunk-FLRCVYNE.js} +2 -2
  35. package/dist/{chunk-KRLYIT22.js → chunk-GIDHR5OL.js} +1 -1
  36. package/dist/{chunk-P5WDMFBB.js → chunk-GWV2Y36Q.js} +1 -1
  37. package/dist/{chunk-YGXLBX3N.js → chunk-HOIHGPWO.js} +1 -1
  38. package/dist/chunk-HYYSJI5D.js +3742 -0
  39. package/dist/{chunk-HXXX6N2G.js → chunk-IBRZUVTH.js} +2 -2
  40. package/dist/{chunk-PHRWQQOJ.js → chunk-JIIIBTN2.js} +1 -1
  41. package/dist/{chunk-L5E5ZN6G.js → chunk-JTAYFSLO.js} +1 -1
  42. package/dist/{chunk-XQODEVF3.js → chunk-JX7Y57YY.js} +1 -1
  43. package/dist/{chunk-S3S2LSZX.js → chunk-KDPYVTEU.js} +2 -1
  44. package/dist/{chunk-7OLMGFDN.js → chunk-NTIOLSFE.js} +2 -2
  45. package/dist/{chunk-UUMK6VME.js → chunk-O6K5DWXM.js} +1 -1
  46. package/dist/{chunk-DXHYACUC.js → chunk-OENM2JVZ.js} +3 -3
  47. package/dist/{chunk-MKVKVMUH.js → chunk-PFI3VD77.js} +7 -7
  48. package/dist/{chunk-MIOBYUXT.js → chunk-PLNWWGE7.js} +1 -1
  49. package/dist/{chunk-ASPTQ6DT.js → chunk-Q73ISOVQ.js} +1 -1
  50. package/dist/{chunk-7Y5SMPRV.js → chunk-QXOFUKBF.js} +2 -2
  51. package/dist/{chunk-IC5L6L7K.js → chunk-R7LWDIKB.js} +1 -1
  52. package/dist/{chunk-3F6YLT72.js → chunk-SIKMUO45.js} +9 -9
  53. package/dist/{chunk-YNBXJWSD.js → chunk-TCWL4BKK.js} +1 -1
  54. package/dist/{chunk-APMG37MX.js → chunk-U3GEXWI5.js} +1 -1
  55. package/dist/{chunk-I3BRUEKD.js → chunk-U3HX7WE6.js} +1 -1
  56. package/dist/{chunk-PHXBLIKK.js → chunk-UGI77E35.js} +7 -7
  57. package/dist/{chunk-P75OFLZN.js → chunk-UMWROSIP.js} +2 -2
  58. package/dist/chunk-UOFAE5RF.js +42 -0
  59. package/dist/{chunk-JOUVZO7M.js → chunk-UQXOHEQ7.js} +1 -1
  60. package/dist/{chunk-5K33TNUJ.js → chunk-VTVS4IIP.js} +2 -2
  61. package/dist/{chunk-SIMYRD5P.js → chunk-W7SAWBQC.js} +78 -20
  62. package/dist/{chunk-JCRJBB4E.js → chunk-X3TMMIDP.js} +5 -5
  63. package/dist/{chunk-SZITAGRK.js → chunk-XOZ3J3LB.js} +1 -1
  64. package/dist/{chunk-GNHJ4ONK.js → chunk-YOL4QRSL.js} +2 -2
  65. package/dist/{chunk-GJGVYREG.js → chunk-Z67RZ4XO.js} +12 -11
  66. package/dist/{clean-LZPDOAV4.js → clean-P4KTCOUA.js} +14 -14
  67. package/dist/cli.js +52 -52
  68. package/dist/{cloud-RVAH5NNL.js → cloud-PDY7S4HU.js} +4 -4
  69. package/dist/{cloudrun-NFGM6TRT.js → cloudrun-54MA2W5H.js} +3 -3
  70. package/dist/{compare-S3M5OAL2.js → compare-LDWVSPC5.js} +24 -24
  71. package/dist/{compiler-SZ4GTYFB.js → compiler-CWSZ4W7J.js} +2 -2
  72. package/dist/{component-PR2WZTQ4.js → component-FIEGC22U.js} +3 -3
  73. package/dist/{compositions-6RYXH2UA.js → compositions-JR7PX356.js} +10 -10
  74. package/dist/{delete-EO7C3LQ6.js → delete-FXA2IHOS.js} +2 -2
  75. package/dist/{dist-RVC3JTID.js → dist-4JZWRWS6.js} +2 -2
  76. package/dist/{doctor-UTCCMN32.js → doctor-OTDHPM6K.js} +9 -9
  77. package/dist/{events-RCGWL4LI.js → events-6T7M2VCO.js} +8 -8
  78. package/dist/{events-RE3OR6KY.js → events-UAFTI24U.js} +7 -7
  79. package/dist/{feedback-V7C64JIR.js → feedback-ZGZODHB6.js} +9 -9
  80. package/dist/{figma-26LOX5PV.js → figma-D26EJ7ZB.js} +3 -3
  81. package/dist/fontLocalizeCli.js +7 -7
  82. package/dist/{get-E2K2JRTV.js → get-IAREU7IK.js} +2 -2
  83. package/dist/{gpuPolicy-Z3PQN6ZK.js → gpuPolicy-NS7WZRDJ.js} +5 -5
  84. package/dist/{grade-compare-OTZDU463.js → grade-compare-ZXHFHCD2.js} +24 -24
  85. package/dist/{gsapParser-2OL54XZ5.js → gsapParser-UP3PNPC2.js} +3 -2
  86. package/dist/{help-IRSQLNI5.js → help-RVNYHW3N.js} +1 -1
  87. package/dist/{history-G44U6762.js → history-THP4VNMF.js} +14 -14
  88. package/dist/hyperframe-runtime.js +56 -56
  89. package/dist/hyperframe.manifest.json +1 -1
  90. package/dist/hyperframe.runtime.iife.js +56 -56
  91. package/dist/hyperframes-player.global.js +1 -1
  92. package/dist/{info-KXQ2TAHX.js → info-EOFRHN5A.js} +10 -10
  93. package/dist/{init-7SXMLHJE.js → init-YLIJE4CG.js} +23 -21
  94. package/dist/{inspect-7JTINR25.js → inspect-3D56ONJD.js} +25 -25
  95. package/dist/{installer-RH4E6WXT.js → installer-GRR2GDZK.js} +4 -4
  96. package/dist/{keyframes-PIV573S6.js → keyframes-NXNCTQPK.js} +11 -11
  97. package/dist/{lambda-GO5HAA4S.js → lambda-VGRZD7TR.js} +4 -4
  98. package/dist/{layout-N2736OO3.js → layout-Z5DOS6DU.js} +25 -25
  99. package/dist/{lint-WUXZ5WWZ.js → lint-YD6NJGR2.js} +11 -11
  100. package/dist/{list-QF7AMX5F.js → list-XGDKILYN.js} +2 -2
  101. package/dist/{login-6RGSXHQJ.js → login-GD5SA4RD.js} +4 -4
  102. package/dist/{media-treatment-T4KDEDYW.js → media-treatment-TY4X4GQQ.js} +11 -11
  103. package/dist/{models-6JMNK3XI.js → models-MXRDH4WJ.js} +7 -7
  104. package/dist/{motionShot-74WM7KF6.js → motionShot-6LKR3C2E.js} +11 -11
  105. package/dist/{normalize-audio-ZZU36ZMD.js → normalize-audio-5ADDZKPJ.js} +10 -10
  106. package/dist/{open-G523K45B.js → open-JXAMO325.js} +9 -9
  107. package/dist/{pipeline-AKDGCWRE.js → pipeline-Q5MOPIIX.js} +5 -5
  108. package/dist/{play-SHIGXVON.js → play-3SPH5GWZ.js} +19 -19
  109. package/dist/{preflight-6ERLORWK.js → preflight-2PWAPKWC.js} +6 -6
  110. package/dist/{present-QOYYNZCE.js → present-ZTJQDKXZ.js} +15 -15
  111. package/dist/{preview-KUXTDJL3.js → preview-4A3XZR6J.js} +16 -16
  112. package/dist/{producer-CH33JXHK.js → producer-5ZKKKQPB.js} +1 -1
  113. package/dist/{projectConfig-NKIPRWAE.js → projectConfig-WA4CS4SN.js} +6 -6
  114. package/dist/{publication-4RBVVR5Z.js → publication-CLG2FRRI.js} +2 -2
  115. package/dist/{publish-OLHR4Z4U.js → publish-YTT2WMXO.js} +7 -7
  116. package/dist/{remove-background-NPKZSIPY.js → remove-background-W35INR3B.js} +6 -6
  117. package/dist/{render-UOKPAJNH.js → render-7A4P5WMU.js} +3 -3
  118. package/dist/{render-GYYGWYQC.js → render-KICXUPNR.js} +11 -11
  119. package/dist/{render-P4NWFUS7.js → render-WUBFQMAH.js} +20 -20
  120. package/dist/{render-batch-ZDG3EXSD.js → render-batch-N7EFGE6S.js} +3 -3
  121. package/dist/{renderCancellation-QYQLWHZY.js → renderCancellation-LYQPPFAO.js} +5 -5
  122. package/dist/{resolver-CWH3VVB7.js → resolver-YTT2NENF.js} +4 -4
  123. package/dist/{sherpa-WEQE23S5.js → sherpa-353MW4UV.js} +36 -11
  124. package/dist/sherpaWorker.js +11 -3
  125. package/dist/{skills-BVONI6TC.js → skills-2XJIOEBT.js} +10 -10
  126. package/dist/{skillsUpdateCheck-KKDPTFM7.js → skillsUpdateCheck-LMCCWGNO.js} +3 -3
  127. package/dist/{snapshot-PWZFJEDR.js → snapshot-WBRSTLJ2.js} +25 -25
  128. package/dist/{src-YO7MAWGD.js → src-YWFJILQF.js} +4 -4
  129. package/dist/{src-HH4C5GZV.js → src-ZS3BLTZ5.js} +6 -6
  130. package/dist/{staticProjectServer-PR5INXSA.js → staticProjectServer-4VKVHPNG.js} +13 -13
  131. package/dist/{status-AK67DTED.js → status-73MBN37B.js} +5 -5
  132. package/dist/studio/assets/{hyperframes-player-B30apksz.js → hyperframes-player-CckOoCJ8.js} +1 -1
  133. package/dist/studio/assets/{index-DIJuIBwI.js → index-BmIPrb8I.js} +1 -1
  134. package/dist/studio/assets/{index-BdjA0CLD.js → index-Br1Whc0f.js} +192 -192
  135. package/dist/studio/assets/{index-DXVvWfQG.js → index-DsEkE5_G.js} +1 -1
  136. package/dist/studio/{chunk-4S3AYCOG.js → chunk-E422JDF5.js} +2 -2
  137. package/dist/studio/{chunk-TDWGXBUT.js → chunk-TFLU2MGI.js} +1 -6
  138. package/dist/studio/chunk-TFLU2MGI.js.map +1 -0
  139. package/dist/studio/{chunk-7UQWVN52.js → chunk-UYWON5AX.js} +2 -2
  140. package/dist/studio/{domEditingLayers-IEVLO54Z.js → domEditingLayers-KBTPQKGA.js} +3 -3
  141. package/dist/studio/index.d.ts +2 -1
  142. package/dist/studio/index.html +1 -1
  143. package/dist/studio/index.js +846 -469
  144. package/dist/studio/index.js.map +1 -1
  145. package/dist/studio/player.js +2 -2
  146. package/dist/{studio-api-NFJMFAB7.js → studio-api-5V4TVSQV.js} +7 -7
  147. package/dist/{studioServer-TQZVCIEL.js → studioServer-M5XY3HYC.js} +37 -37
  148. package/dist/{system-ZWIBWWE6.js → system-RCRNX5VF.js} +5 -5
  149. package/dist/{telemetry-63L2ORO3.js → telemetry-LOBRQGUD.js} +8 -8
  150. package/dist/{timeline-QKZQL5DJ.js → timeline-3JCP6PXU.js} +14 -14
  151. package/dist/{tokens-ELK62U4A.js → tokens-MLMIJBVF.js} +2 -2
  152. package/dist/{transcribe-OSK7HEOJ.js → transcribe-KNFXDEAX.js} +8 -6
  153. package/dist/{transcribe-VKSXTM7K.js → transcribe-POH25ZPX.js} +29 -46
  154. package/dist/{updateCheck-PM4FEI7P.js → updateCheck-5ITBSBST.js} +2 -2
  155. package/dist/{upgrade-G635QCNO.js → upgrade-K6OK4FKT.js} +2 -2
  156. package/dist/{urlDownloader-MVYQTP73.js → urlDownloader-TJJQKADT.js} +4 -4
  157. package/dist/{validate-AZTMI3HR.js → validate-PPPOBJHB.js} +15 -15
  158. package/dist/{video-H56FK33V.js → video-OB22HWXZ.js} +5 -5
  159. package/package.json +1 -1
  160. package/dist/chunk-UINDCCO7.js +0 -3742
  161. package/dist/studio/chunk-TDWGXBUT.js.map +0 -1
  162. /package/dist/studio/{chunk-4S3AYCOG.js.map → chunk-E422JDF5.js.map} +0 -0
  163. /package/dist/studio/{chunk-7UQWVN52.js.map → chunk-UYWON5AX.js.map} +0 -0
  164. /package/dist/studio/{domEditingLayers-IEVLO54Z.js.map → domEditingLayers-KBTPQKGA.js.map} +0 -0
@@ -20,7 +20,7 @@ import {
20
20
  typeDirPath,
21
21
  updateRecord,
22
22
  withFigmaErrors
23
- } from "./chunk-XQODEVF3.js";
23
+ } from "./chunk-JX7Y57YY.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-63L2ORO3.js");
224
+ const { trackFigmaImport } = await import("./telemetry-LOBRQGUD.js");
225
225
  trackFigmaImport({
226
226
  phase: "asset",
227
227
  reused: results.every((r) => r.reused),
@@ -13,7 +13,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
13
13
  return "auto";
14
14
  }
15
15
  async function resolveCaptureBrowserGpuMode(requestedMode, chromePath) {
16
- const { resolveBrowserGpuMode } = await import("./src-YO7MAWGD.js");
16
+ const { resolveBrowserGpuMode } = await import("./src-YWFJILQF.js");
17
17
  return resolveBrowserGpuMode(requestedMode, { chromePath });
18
18
  }
19
19
 
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-IHFUKJOR.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-WH6PRFNX.js";
12
+ } from "./chunk-25DHUDOK.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-PBN6GBJE.js";
@@ -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-RCGWL4LI.js");
1281
+ const { trackCommandFailure } = await import("./events-6T7M2VCO.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -13,6 +13,7 @@ import { basename, extname, join } from "path";
13
13
  var PARAKEET_MODEL_LABEL = "parakeet-tdt-0.6b-v3";
14
14
  var SHERPA_RESULT_PREFIX = "HYPERFRAMES_PARAKEET_RESULT:";
15
15
  var SHERPA_ERROR_PREFIX = "HYPERFRAMES_PARAKEET_ERROR:";
16
+ var SHERPA_WINDOW_PREFIX = "HYPERFRAMES_PARAKEET_WINDOW:";
16
17
  var PARAKEET_LANGUAGES = "en es fr de bg hr cs da nl et fi el hu it lv lt mt pl pt ro sk sl sv ru uk";
17
18
  function parakeetSpeaks(language) {
18
19
  const base = language?.trim().toLowerCase().split(/[-_]/, 1)[0];
@@ -177,7 +178,6 @@ function transcribeWithParakeet(inputPath, dir, options) {
177
178
  const workDir = mkdtempSync(join(tmpdir(), "hyperframes-parakeet-"));
178
179
  try {
179
180
  const argv = [inputPath, "--model", model, "--output-format", "json", "--output-dir", workDir];
180
- if (options?.language) argv.push("--language", options.language);
181
181
  options?.onEvent?.({
182
182
  type: "progress",
183
183
  phase: "transcription",
@@ -221,6 +221,7 @@ export {
221
221
  PARAKEET_MODEL_LABEL,
222
222
  SHERPA_RESULT_PREFIX,
223
223
  SHERPA_ERROR_PREFIX,
224
+ SHERPA_WINDOW_PREFIX,
224
225
  PARAKEET_LANGUAGES,
225
226
  parakeetSpeaks,
226
227
  findParakeet,
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  trackLintReport,
9
9
  trackLintRuleStreak
10
- } from "./chunk-WH6PRFNX.js";
10
+ } from "./chunk-25DHUDOK.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-VR5UQWGV.js";
13
+ } from "./chunk-7SI7GCX6.js";
14
14
  import {
15
15
  LINT_RULE_COUNT,
16
16
  LINT_RULE_GROUP_COUNTS
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-TVCRUG2S.js";
14
14
  import {
15
15
  getFreeDiskMb
16
- } from "./chunk-MIOBYUXT.js";
16
+ } from "./chunk-PLNWWGE7.js";
17
17
  import {
18
18
  ensureBrowser,
19
19
  findBrowser
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-GJGVYREG.js";
10
+ } from "./chunk-Z67RZ4XO.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-W3KQCJVP.js";
21
+ } from "./chunk-A4X2YWNQ.js";
22
22
  import {
23
23
  resolveAutoProxy
24
- } from "./chunk-SZITAGRK.js";
24
+ } from "./chunk-XOZ3J3LB.js";
25
25
 
26
26
  // src/utils/staticProjectServer.ts
27
27
  import { createServer } from "http";
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-HUZYBV2Z.js";
10
+ } from "./chunk-CDJ7FPPJ.js";
11
11
  import {
12
12
  DEFAULT_PROJECT_CONFIG,
13
13
  createProjectConfig,
14
14
  loadProjectConfig,
15
15
  projectConfigPath,
16
16
  recordProjectRegistryItems
17
- } from "./chunk-SZITAGRK.js";
17
+ } from "./chunk-XOZ3J3LB.js";
18
18
  import {
19
19
  resolveItemWithDependencies,
20
20
  resolveItemsByTag
21
- } from "./chunk-YGXLBX3N.js";
21
+ } from "./chunk-HOIHGPWO.js";
22
22
  import {
23
23
  InvalidVariableValuesError,
24
24
  prepareItem,
25
25
  publishItem
26
- } from "./chunk-5K33TNUJ.js";
26
+ } from "./chunk-VTVS4IIP.js";
27
27
  import {
28
28
  DEFAULT_REGISTRY_URL
29
- } from "./chunk-KRLYIT22.js";
29
+ } from "./chunk-GIDHR5OL.js";
30
30
  import {
31
31
  trackRegistryItemAdded
32
- } from "./chunk-WH6PRFNX.js";
32
+ } from "./chunk-25DHUDOK.js";
33
33
  import {
34
34
  c
35
35
  } from "./chunk-ZTZA4UWZ.js";
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-PBN6GBJE.js";
42
42
  import {
43
43
  ITEM_TYPE_DIRS
44
- } from "./chunk-RLNB3JCY.js";
44
+ } from "./chunk-EJ7OWYF2.js";
45
45
  import {
46
46
  isProjectRootMissing,
47
47
  realpath
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-AMKC3AXA.js";
10
10
  import {
11
11
  getSystemTotalMb
12
- } from "./chunk-7Y5SMPRV.js";
12
+ } from "./chunk-QXOFUKBF.js";
13
13
 
14
14
  // src/telemetry/system.ts
15
15
  import { cpus, freemem, platform as platform2, release as release2 } from "os";
@@ -8,7 +8,7 @@ import {
8
8
  MAX_AUDIO_GAIN_DB,
9
9
  formatAudioGain,
10
10
  isAudibleVideoElement
11
- } from "./chunk-UINDCCO7.js";
11
+ } from "./chunk-HYYSJI5D.js";
12
12
  import {
13
13
  findFfBinary
14
14
  } from "./chunk-PJ3HDUCY.js";
@@ -22,7 +22,7 @@ import {
22
22
  renderFrameIdForRenderId,
23
23
  resolveAuthoredTimingWindow,
24
24
  toFps
25
- } from "./chunk-RLNB3JCY.js";
25
+ } from "./chunk-EJ7OWYF2.js";
26
26
  import {
27
27
  AUDIO_GROUP_RENDER_ID_ATTR,
28
28
  COLOR_GRADING_SOURCE_HIDDEN_ATTR,
@@ -53,7 +53,7 @@ import {
53
53
  shiftRateLane,
54
54
  sourceTimeAt,
55
55
  timeAtSourceTime
56
- } from "./chunk-UINDCCO7.js";
56
+ } from "./chunk-HYYSJI5D.js";
57
57
  import {
58
58
  chromeMajorCeiling,
59
59
  exceedsChromeCeiling
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-PBN6GBJE.js";
16
16
  import {
17
17
  parseFps
18
- } from "./chunk-RLNB3JCY.js";
18
+ } from "./chunk-EJ7OWYF2.js";
19
19
 
20
20
  // src/browser/windowsCrash.ts
21
21
  var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
@@ -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-DXHYACUC.js";
9
+ } from "./chunk-OENM2JVZ.js";
10
10
  import {
11
11
  resolveProject
12
- } from "./chunk-L5E5ZN6G.js";
12
+ } from "./chunk-JTAYFSLO.js";
13
13
  import {
14
14
  AUDIT_SEEK_OPTIONS,
15
15
  installPageFunctionGuard,
16
16
  seekCompositionTimeline,
17
17
  waitForCompositionFonts,
18
18
  waitForRuntimeReady
19
- } from "./chunk-SDRKEYZV.js";
19
+ } from "./chunk-EZ2P7LAP.js";
20
20
  import {
21
21
  launchManagedBrowser,
22
22
  resolveManagedGpuMode
23
- } from "./chunk-OBC75KXL.js";
23
+ } from "./chunk-4VZBKOQJ.js";
24
24
  import {
25
25
  resolveDiagnosticNavigationTimeoutMs
26
- } from "./chunk-IC5L6L7K.js";
26
+ } from "./chunk-R7LWDIKB.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-YNBXJWSD.js";
40
+ } from "./chunk-TCWL4BKK.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-SZ4GTYFB.js");
673
+ const { bundleToSingleHtml } = await import("./compiler-CWSZ4W7J.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-YO7MAWGD.js");
696
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalBrowserGpuMode } = await import("./gpuPolicy-Z3PQN6ZK.js");
695
+ const { buildChromeArgs } = await import("./src-YWFJILQF.js");
696
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalBrowserGpuMode } = await import("./gpuPolicy-NS7WZRDJ.js");
697
697
  const html = await bundleProjectHtml(projectDir);
698
698
  const server = await serveStaticProjectHtml(
699
699
  projectDir,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-ISN5GRYI.js";
18
18
  import {
19
19
  VERSION
20
- } from "./chunk-P75OFLZN.js";
20
+ } from "./chunk-UMWROSIP.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
  updateNoticesSuppressed
9
- } from "./chunk-YNBXJWSD.js";
9
+ } from "./chunk-TCWL4BKK.js";
10
10
  import {
11
11
  hostAnswers
12
12
  } from "./chunk-K4WIOZFP.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-AWDFDFI3.js";
15
15
  import {
16
16
  isBlockedNetworkHost
17
- } from "./chunk-7Y5SMPRV.js";
17
+ } from "./chunk-QXOFUKBF.js";
18
18
  import {
19
19
  DOMParser,
20
20
  parseHTML
@@ -16,7 +16,7 @@ import {
16
16
  EncoderInterruptedError,
17
17
  encoderFailureError,
18
18
  prepareAnimatedGifInputs
19
- } from "./chunk-GNHJ4ONK.js";
19
+ } from "./chunk-YOL4QRSL.js";
20
20
  import {
21
21
  createStudioPositionSeekReapplyScript
22
22
  } from "./chunk-KC5XXX3X.js";
@@ -144,7 +144,7 @@ import {
144
144
  validateEngineConfigSnapshot,
145
145
  verifyDiskDrawElementSamples,
146
146
  writeCapturedFrame
147
- } from "./chunk-7Y5SMPRV.js";
147
+ } from "./chunk-QXOFUKBF.js";
148
148
  import {
149
149
  HF_VFX_ATTR,
150
150
  MEDIA_START_BASIS_ATTR,
@@ -162,7 +162,7 @@ import {
162
162
  resolveAbsoluteMediaStartSeconds,
163
163
  resolveAuthoredTimingWindow,
164
164
  toFps
165
- } from "./chunk-RLNB3JCY.js";
165
+ } from "./chunk-EJ7OWYF2.js";
166
166
  import {
167
167
  CANVAS_DIMENSIONS,
168
168
  HTML_BODY_CSS_HEIGHT_FIRST_RE,
@@ -183,7 +183,7 @@ import {
183
183
  ensureExternalScriptTag,
184
184
  inlineSubCompositions,
185
185
  prepareFlattenedInnerRoot
186
- } from "./chunk-P5WDMFBB.js";
186
+ } from "./chunk-GWV2Y36Q.js";
187
187
  import {
188
188
  COMPOSITION_SOURCE_URL,
189
189
  HF_COLOR_GRADING_ATTR,
@@ -211,7 +211,7 @@ import {
211
211
  shouldClampResolvedMediaDuration,
212
212
  sourceTimeAt,
213
213
  styleElementsFor
214
- } from "./chunk-UINDCCO7.js";
214
+ } from "./chunk-HYYSJI5D.js";
215
215
  import {
216
216
  chromeMajorCeiling
217
217
  } from "./chunk-TWWSYAKJ.js";
@@ -14213,7 +14213,7 @@ function startServer(options = {}) {
14213
14213
  });
14214
14214
  async function shutdown(signal) {
14215
14215
  log.info(`Received ${signal}, shutting down`);
14216
- const { drainBrowserPool } = await import("./src-YO7MAWGD.js");
14216
+ const { drainBrowserPool } = await import("./src-YWFJILQF.js");
14217
14217
  await drainBrowserPool().catch(() => {
14218
14218
  });
14219
14219
  const handle = await Promise.race([
@@ -15336,7 +15336,7 @@ async function buildLocalExecutionPlan(projectDir, config, executionPlanDir, opt
15336
15336
  if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
15337
15337
  if (probeResult.probeSession) {
15338
15338
  try {
15339
- const { closeCaptureSession: closeCaptureSession2 } = await import("./src-YO7MAWGD.js");
15339
+ const { closeCaptureSession: closeCaptureSession2 } = await import("./src-YWFJILQF.js");
15340
15340
  await closeCaptureSession2(probeResult.probeSession);
15341
15341
  } catch (err) {
15342
15342
  log.warn("[plan] probe session close failed", {
@@ -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.138" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.8.138" : "0.0.0-dev";
9
+ var VERSION = true ? "0.8.139" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.8.139" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -0,0 +1,42 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+
8
+ // src/whisper/wav.ts
9
+ import { readFileSync } from "fs";
10
+ function findWavChunk(buf, want) {
11
+ if (buf.length < 12) return null;
12
+ let pos = 12;
13
+ while (pos + 8 <= buf.length) {
14
+ const id = buf.toString("ascii", pos, pos + 4);
15
+ const size = buf.readUInt32LE(pos + 4);
16
+ if (id === want) return { offset: pos + 8, size: Math.min(size, buf.length - pos - 8) };
17
+ pos += 8 + size;
18
+ if (size % 2 !== 0) pos++;
19
+ }
20
+ return null;
21
+ }
22
+ var PCM = 1;
23
+ var EXTENSIBLE = 65534;
24
+ function readWav(path) {
25
+ const buf = readFileSync(path);
26
+ const riff = buf.toString("ascii", 0, 4) === "RIFF" && buf.toString("ascii", 8, 12) === "WAVE";
27
+ const fmt = riff ? findWavChunk(buf, "fmt ") : null;
28
+ const data = fmt && findWavChunk(buf, "data");
29
+ const format = fmt && buf.readUInt16LE(fmt.offset);
30
+ if (!fmt || !data || format !== PCM && format !== EXTENSIBLE || buf.readUInt16LE(fmt.offset + 2) !== 1 || buf.readUInt16LE(fmt.offset + 14) !== 16) {
31
+ throw new Error(`${path} is not a 16-bit mono PCM WAV`);
32
+ }
33
+ const samples = new Float32Array(data.size >> 1);
34
+ for (let i = 0; i < samples.length; i++)
35
+ samples[i] = buf.readInt16LE(data.offset + 2 * i) / 32768;
36
+ return { samples, sampleRate: buf.readUInt32LE(fmt.offset + 4) };
37
+ }
38
+
39
+ export {
40
+ findWavChunk,
41
+ readWav
42
+ };
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  formatVariableValidationIssue,
21
21
  validateVariables
22
- } from "./chunk-RLNB3JCY.js";
22
+ } from "./chunk-EJ7OWYF2.js";
23
23
  import {
24
24
  extractCompositionMetadata
25
25
  } from "./chunk-OZUQF4NB.js";
@@ -8,14 +8,14 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-KRLYIT22.js";
11
+ } from "./chunk-GIDHR5OL.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-RLNB3JCY.js";
18
+ } from "./chunk-EJ7OWYF2.js";
19
19
  import {
20
20
  realProjectRoot
21
21
  } from "./chunk-OFQWTKPW.js";
@@ -4,9 +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
+ emitWords
9
+ } from "./chunk-6IHWCZ3W.js";
7
10
  import {
8
11
  stoppedByCancelSignal
9
- } from "./chunk-DJMXTKKK.js";
12
+ } from "./chunk-BC3OY2ED.js";
10
13
  import {
11
14
  DEFAULT_MODEL,
12
15
  ensureModel,
@@ -18,25 +21,18 @@ import {
18
21
  findFFprobe,
19
22
  getFFmpegInstallHint
20
23
  } from "./chunk-TVCRUG2S.js";
24
+ import {
25
+ findWavChunk
26
+ } from "./chunk-UOFAE5RF.js";
21
27
 
22
28
  // src/whisper/transcribe.ts
23
- import { execFileSync } from "child_process";
29
+ import { execFile, execFileSync } from "child_process";
30
+ import { once } from "events";
31
+ import { createInterface } from "readline";
24
32
  import { existsSync, readFileSync, mkdirSync, rmSync, statSync, unlinkSync } from "fs";
25
33
  import { join, extname } from "path";
26
34
  import { tmpdir } from "os";
27
35
  import { randomUUID } from "crypto";
28
- function findWavDataChunk(buf) {
29
- if (buf.length < 12) return null;
30
- let pos = 12;
31
- while (pos + 8 < buf.length) {
32
- const id = buf.toString("ascii", pos, pos + 4);
33
- const size = buf.readUInt32LE(pos + 4);
34
- if (id === "data") return { offset: pos + 8, size: Math.min(size, buf.length - pos - 8) };
35
- pos += 8 + size;
36
- if (size % 2 !== 0) pos++;
37
- }
38
- return null;
39
- }
40
36
  var WHISPER_TIMEOUT_FLOOR_MS = 3e5;
41
37
  var WHISPER_TIMEOUT_PER_AUDIO_SECOND_MS = 1e4;
42
38
  var WHISPER_TIMEOUT_CAP_MS = 432e5;
@@ -129,7 +125,7 @@ function detectSpeechOnset(wavPath) {
129
125
  const MIN_INTRO_SECONDS = 3;
130
126
  try {
131
127
  const buf = readFileSync(wavPath);
132
- const dataChunk = findWavDataChunk(buf);
128
+ const dataChunk = findWavChunk(buf, "data");
133
129
  if (!dataChunk) return null;
134
130
  const pcm = new Int16Array(buf.buffer, buf.byteOffset + dataChunk.offset, dataChunk.size / 2);
135
131
  const totalWindows = Math.floor(pcm.length / WINDOW_SAMPLES);
@@ -293,7 +289,14 @@ async function transcribe(inputPath, outputDir, options) {
293
289
  const automaticLanguage = options?.language === void 0 && !model.endsWith(".en");
294
290
  const language = options?.language ?? (automaticLanguage ? "auto" : "en");
295
291
  options?.onProgress?.("Transcribing...");
296
- options?.onEvent?.({ type: "progress", phase: "transcription", model, status: "started" });
292
+ const wavSeconds = getPreparedWavDurationSeconds(wavPath);
293
+ options?.onEvent?.({
294
+ type: "progress",
295
+ phase: "transcription",
296
+ model,
297
+ status: "started",
298
+ durationSeconds: wavSeconds
299
+ });
297
300
  const outputBase = join(outputDir, "transcript");
298
301
  mkdirSync(outputDir, { recursive: true });
299
302
  const whisperArgs = [
@@ -307,15 +310,31 @@ async function transcribe(inputPath, outputDir, options) {
307
310
  "--suppress-nst"
308
311
  ];
309
312
  whisperArgs.push("--language", language);
313
+ const onEvent = options?.onEvent;
314
+ if (onEvent) whisperArgs.push("--print-progress");
310
315
  whisperArgs.push(wavPath);
311
- const whisperTimeoutMs = resolveWhisperTimeoutMs(getPreparedWavDurationSeconds(wavPath), {
316
+ const whisperTimeoutMs = resolveWhisperTimeoutMs(wavSeconds, {
312
317
  model,
313
318
  overrideMs: options?.timeoutMs
314
319
  });
320
+ let through = 0;
321
+ const heard = (words, at) => {
322
+ if (!onEvent || words.length === 0 && at <= through) return;
323
+ through = Math.max(through, at);
324
+ emitWords(onEvent, model, words, through);
325
+ };
315
326
  try {
316
- execFileSync(whisper.executablePath, whisperArgs, {
317
- stdio: "ignore",
318
- timeout: whisperTimeoutMs
327
+ await runWhisper(whisper.executablePath, whisperArgs, {
328
+ timeoutMs: whisperTimeoutMs,
329
+ signal: options?.startCancellation?.(),
330
+ onStdout: onEvent && ((line) => {
331
+ const segment = segmentWords(line);
332
+ if (segment) heard(segment.words, segment.end);
333
+ }),
334
+ onStderr: onEvent && wavSeconds ? (line) => {
335
+ const percent = /progress =\s*(\d+)%/.exec(line)?.[1];
336
+ if (percent) heard([], Number(percent) / 100 * wavSeconds);
337
+ } : void 0
319
338
  });
320
339
  } catch (err) {
321
340
  throw wrapWhisperTimeoutError(err, {
@@ -359,6 +378,45 @@ async function transcribe(inputPath, outputDir, options) {
359
378
  speechOnsetSeconds
360
379
  };
361
380
  }
381
+ var SEGMENT_LINE = /^\[(\d+):(\d+):([\d.]+) --> (\d+):(\d+):([\d.]+)\]\s*(.*)$/;
382
+ var toSeconds = (h, m, s) => Number(h) * 3600 + Number(m) * 60 + Number(s);
383
+ var toMs = (seconds) => Math.round(seconds * 1e3) / 1e3;
384
+ function segmentWords(line) {
385
+ const m = SEGMENT_LINE.exec(line);
386
+ if (!m) return null;
387
+ const start = toSeconds(m[1], m[2], m[3]);
388
+ const end = toSeconds(m[4], m[5], m[6]);
389
+ const texts = m[7].split(/\s+/).filter((t) => t && !t.startsWith("[_") && !t.startsWith("[BLANK"));
390
+ const letters = texts.reduce((n, t) => n + t.length, 0);
391
+ let at = start;
392
+ const words = texts.map((text) => {
393
+ const from = at;
394
+ at += (end - start) * text.length / letters;
395
+ return { text, start: toMs(from), end: toMs(at) };
396
+ });
397
+ return { words, end };
398
+ }
399
+ async function runWhisper(executable, args, options) {
400
+ let stdout = null;
401
+ let stderr = null;
402
+ const exited = new Promise((resolve, reject) => {
403
+ const child = execFile(
404
+ executable,
405
+ args,
406
+ { timeout: options.timeoutMs, signal: options.signal, maxBuffer: 256 * 1024 * 1024 },
407
+ (err, _out, errText) => {
408
+ if (!err) return resolve();
409
+ const timedOut = err.killed && err.signal === "SIGTERM" && !options.signal?.aborted;
410
+ err.message = err.message.split("\n")[0];
411
+ reject(Object.assign(err, { stderr: errText }, timedOut ? { code: "ETIMEDOUT" } : {}));
412
+ }
413
+ );
414
+ stdout = child.stdout;
415
+ stderr = child.stderr;
416
+ });
417
+ const read = (stream, onLine) => stream && onLine ? once(createInterface({ input: stream }).on("line", onLine), "close") : null;
418
+ await Promise.all([exited, read(stdout, options.onStdout), read(stderr, options.onStderr)]);
419
+ }
362
420
  function isWhisperTimeoutError(err) {
363
421
  return err instanceof Error && err.code === "ETIMEDOUT";
364
422
  }
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-3DKN5WKL.js";
21
21
  import {
22
22
  runEnvironmentChecks
23
- } from "./chunk-UUMK6VME.js";
23
+ } from "./chunk-O6K5DWXM.js";
24
24
  import {
25
25
  c
26
26
  } from "./chunk-ZTZA4UWZ.js";
@@ -29,24 +29,24 @@ import {
29
29
  getFreeDiskMb,
30
30
  getShmSizeMb,
31
31
  getSystemMeta
32
- } from "./chunk-MIOBYUXT.js";
32
+ } from "./chunk-PLNWWGE7.js";
33
33
  import {
34
34
  defineCommand
35
35
  } from "./chunk-S3S4TGEH.js";
36
36
  import {
37
37
  resolveExtractCacheDir
38
- } from "./chunk-7Y5SMPRV.js";
38
+ } from "./chunk-QXOFUKBF.js";
39
39
  import {
40
40
  getUpdateMeta,
41
41
  withMeta
42
- } from "./chunk-YNBXJWSD.js";
42
+ } from "./chunk-TCWL4BKK.js";
43
43
  import {
44
44
  CONFIG_PATH,
45
45
  withFileLock
46
46
  } from "./chunk-XUXGIA7H.js";
47
47
  import {
48
48
  VERSION
49
- } from "./chunk-P75OFLZN.js";
49
+ } from "./chunk-UMWROSIP.js";
50
50
  import {
51
51
  normalizeErrorMessage
52
52
  } from "./chunk-KNU5COPB.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-HVW7ABXD.js";
13
13
  import {
14
14
  DEFAULT_REGISTRY_URL
15
- } from "./chunk-KRLYIT22.js";
15
+ } from "./chunk-GIDHR5OL.js";
16
16
 
17
17
  // src/utils/projectConfig.ts
18
18
  import { readFileSync, writeFileSync } from "fs";
@@ -8,10 +8,10 @@ import {
8
8
  DEFAULT_VP9_CPU_USED,
9
9
  isHttpUrl,
10
10
  runFfmpeg
11
- } from "./chunk-7Y5SMPRV.js";
11
+ } from "./chunk-QXOFUKBF.js";
12
12
  import {
13
13
  parseAnimatedGifMetadata
14
- } from "./chunk-RLNB3JCY.js";
14
+ } from "./chunk-EJ7OWYF2.js";
15
15
  import {
16
16
  parseHTML
17
17
  } from "./chunk-GK4AIFIH.js";