hyperframes 0.8.177 → 0.8.178

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 (169) hide show
  1. package/dist/{add-YVP5YBNV.js → add-C4GN5ZDP.js} +12 -12
  2. package/dist/{animatedGifPrep-6SPYXSHE.js → animatedGifPrep-S6XXOOXK.js} +7 -7
  3. package/dist/api.js +15 -15
  4. package/dist/{asset-CZHAZMDR.js → asset-WTZ44Q7G.js} +2 -2
  5. package/dist/{assetCataloger-5GGNQC3Y.js → assetCataloger-MSAMR77T.js} +7 -7
  6. package/dist/{audio-F37HJPGZ.js → audio-ZSWOKO3D.js} +13 -13
  7. package/dist/{auth-CADZEUXD.js → auth-EUSWPXME.js} +1 -1
  8. package/dist/{autoUpdate-46XNDX2V.js → autoUpdate-WWXRJ2W7.js} +2 -2
  9. package/dist/{backgroundChecks-UWDSDJHJ.js → backgroundChecks-B2IJHAP6.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-KXXTVNPB.js → batchRender-OOQYGH5A.js} +4 -4
  12. package/dist/{beats-COVC2QGG.js → beats-OJT75KQY.js} +5 -5
  13. package/dist/{benchmark-HDPPG2FE.js → benchmark-EZTB4ITW.js} +9 -9
  14. package/dist/{browser-JEIXZKJN.js → browser-DNHBS5C7.js} +9 -8
  15. package/dist/{bundleWithLocalizedFonts-PMRGOQWD.js → bundleWithLocalizedFonts-GJAML42J.js} +2 -2
  16. package/dist/{capture-QVW6JPTF.js → capture-YRS6SZ6B.js} +11 -11
  17. package/dist/{capture-YMF7J55W.js → capture-ZBGAJYVH.js} +2 -2
  18. package/dist/{captureCompositionFrame-QUYL3DEX.js → captureCompositionFrame-Z33NWUED.js} +11 -11
  19. package/dist/{catalog-DTB6S66P.js → catalog-YF23PXV2.js} +12 -12
  20. package/dist/{catch-up-Y4KO7XHK.js → catch-up-YZZDUDRQ.js} +5 -5
  21. package/dist/{check-3YLTRK6W.js → check-NVGQ5PMF.js} +39 -39
  22. package/dist/{checkBrowser-LEUOWFNZ.js → checkBrowser-JX22QQDH.js} +35 -35
  23. package/dist/{chunk-42T7OP4O.js → chunk-32GKQ73S.js} +1 -1
  24. package/dist/{chunk-PIH4P2G6.js → chunk-3EJYUZHW.js} +16 -14
  25. package/dist/{chunk-L6XT6GSV.js → chunk-52L2L46Q.js} +1 -1
  26. package/dist/chunk-537IYAEE.js +80 -0
  27. package/dist/{chunk-BEX7K4WO.js → chunk-5PK3RLSB.js} +2 -2
  28. package/dist/{chunk-GVIH4ZQY.js → chunk-5RS2FIZU.js} +1 -1
  29. package/dist/{chunk-2YT3SCXL.js → chunk-62OXHKLS.js} +2 -2
  30. package/dist/{chunk-T76PLPD6.js → chunk-634HSJ3J.js} +2 -1
  31. package/dist/{chunk-JWUKHXM6.js → chunk-74Z2T3YM.js} +1 -1
  32. package/dist/{chunk-457OAAL2.js → chunk-7IAVKLNC.js} +1 -1
  33. package/dist/{chunk-L3LJVYXS.js → chunk-A2BB2XQU.js} +2 -2
  34. package/dist/{chunk-DQY6WTF7.js → chunk-A3RUVTGB.js} +1 -1
  35. package/dist/{chunk-OYEDHVSI.js → chunk-AFKVI7FJ.js} +1 -1
  36. package/dist/{chunk-VEQ7DKPG.js → chunk-AHS5QYKF.js} +1 -1
  37. package/dist/{chunk-FFDC5OWV.js → chunk-ALVXFXUG.js} +5 -3
  38. package/dist/{chunk-XXHHPB6E.js → chunk-AR5MS234.js} +11 -11
  39. package/dist/{chunk-M3MXTYDE.js → chunk-AYEWZYYC.js} +1 -1
  40. package/dist/{chunk-TNDNFZOK.js → chunk-BGKZ37BC.js} +2 -2
  41. package/dist/{chunk-LY2GLSOS.js → chunk-BJJ3QF7T.js} +1 -1
  42. package/dist/{chunk-GZG3ZZOO.js → chunk-BNGRVR3Y.js} +4 -4
  43. package/dist/{chunk-MPNVXG3J.js → chunk-C4FH67KI.js} +2 -2
  44. package/dist/{chunk-MG66UO4N.js → chunk-CJRGV2JW.js} +1 -1
  45. package/dist/{chunk-P3MMF2JQ.js → chunk-DKGZR7QA.js} +1 -1
  46. package/dist/{chunk-XRKMITSS.js → chunk-E24HSMZV.js} +12 -51
  47. package/dist/{chunk-MNEC244Z.js → chunk-EBKIF46T.js} +2 -2
  48. package/dist/{chunk-BQTCQ6VN.js → chunk-EINNFZAW.js} +3 -3
  49. package/dist/{chunk-EOOEC32M.js → chunk-EVMY7IPL.js} +22 -0
  50. package/dist/{chunk-PL4WM5XE.js → chunk-FIAQ4J45.js} +2 -2
  51. package/dist/{chunk-6OV3YGZF.js → chunk-FTWOVWHR.js} +2 -2
  52. package/dist/{chunk-2CEIKEFU.js → chunk-G3M4BIFN.js} +1 -1
  53. package/dist/{chunk-BHFIITTD.js → chunk-HFUMZZ4T.js} +5 -5
  54. package/dist/{chunk-7L4JOVV7.js → chunk-HNMRB77F.js} +1 -1
  55. package/dist/{chunk-GMJ3ILLW.js → chunk-ICMXC3MI.js} +7 -24
  56. package/dist/{chunk-LZT3NUTE.js → chunk-IE6O2VXV.js} +1 -1
  57. package/dist/{chunk-AFSBPASX.js → chunk-J4GE3BCG.js} +5 -5
  58. package/dist/{chunk-X4PK5ZXP.js → chunk-LO4DHZLH.js} +3 -3
  59. package/dist/{chunk-YCRX5APY.js → chunk-N66NVE65.js} +1 -1
  60. package/dist/{chunk-6GMZRHYD.js → chunk-N6S6V2DY.js} +3 -3
  61. package/dist/{chunk-LEILKM2N.js → chunk-O7PFPCQF.js} +193 -65
  62. package/dist/{chunk-UEGULMAH.js → chunk-ORM7SJ7K.js} +7 -7
  63. package/dist/chunk-PLNQW2C6.js +3805 -0
  64. package/dist/{chunk-JNL3RMDG.js → chunk-PU33GPG4.js} +1 -1
  65. package/dist/{chunk-W47D3KOB.js → chunk-RHWJKSGH.js} +1 -1
  66. package/dist/{chunk-B7DJQFAC.js → chunk-RTABHL2G.js} +3 -3
  67. package/dist/{chunk-K535ASAM.js → chunk-TINAVSGR.js} +1 -1
  68. package/dist/{chunk-C6TPGUWD.js → chunk-TTVHYD5R.js} +2 -2
  69. package/dist/{chunk-S3T3TDAB.js → chunk-U2AIXPAQ.js} +2 -2
  70. package/dist/{chunk-MXFCQCKE.js → chunk-UIXHQ4QG.js} +7 -7
  71. package/dist/{chunk-QWCXGTOH.js → chunk-UOHQV6AV.js} +24 -12
  72. package/dist/{chunk-HLBAQBHT.js → chunk-UQEBSY5U.js} +1 -1
  73. package/dist/{chunk-5ZSLJXQX.js → chunk-UWPUEI5U.js} +2 -2
  74. package/dist/{chunk-WNQUXBDU.js → chunk-V6WIQWUB.js} +3 -3
  75. package/dist/{chunk-4YBNQDZM.js → chunk-VCDWVVDV.js} +11 -7
  76. package/dist/{chunk-YWSXFFO3.js → chunk-VU4JLRNH.js} +156 -76
  77. package/dist/{chunk-SJFA4CZ3.js → chunk-XBZOYP4D.js} +1 -1
  78. package/dist/{chunk-X6HYBA4A.js → chunk-XSQWXUK2.js} +1 -1
  79. package/dist/{chunk-2PNLYDGZ.js → chunk-Y6JLEN3P.js} +10 -10
  80. package/dist/{chunk-KRKSY2AE.js → chunk-YAPJOCSH.js} +1 -1
  81. package/dist/{chunk-NWEER3QY.js → chunk-YH7VQAKX.js} +2 -2
  82. package/dist/{chunk-DZMWNCHM.js → chunk-ZAJO3YCQ.js} +2 -2
  83. package/dist/{chunk-SSYUONVH.js → chunk-ZAO7FTQM.js} +2 -2
  84. package/dist/{clean-BDXOJ4PW.js → clean-ODNP4ELD.js} +20 -20
  85. package/dist/cli.js +53 -53
  86. package/dist/{cloud-HVG2LUBO.js → cloud-2DACBBEP.js} +4 -4
  87. package/dist/{cloudrun-P35BPQCO.js → cloudrun-QSVGI2TT.js} +5 -5
  88. package/dist/{compare-ZXORZDGQ.js → compare-HMMGOM4F.js} +29 -29
  89. package/dist/{compiler-5TFPJPQQ.js → compiler-CQ6OKYT5.js} +2 -2
  90. package/dist/{component-AZHVBBVP.js → component-C6OLXSIK.js} +3 -3
  91. package/dist/{compositions-WFILUFC4.js → compositions-MOGZ4ASK.js} +11 -11
  92. package/dist/{delete-I34NH2Q4.js → delete-MDAYHORQ.js} +2 -2
  93. package/dist/{dist-U2HCECNB.js → dist-MHJYD5IZ.js} +6 -4
  94. package/dist/{doctor-6YID47TF.js → doctor-VEKKYMQT.js} +12 -12
  95. package/dist/{events-G76VOIBQ.js → events-CSKJXRJU.js} +4 -4
  96. package/dist/{events-OKT2KO6S.js → events-SKMTX6HF.js} +2 -2
  97. package/dist/{feedback-EGU7SSXF.js → feedback-64AKUFHZ.js} +7 -7
  98. package/dist/{ffmpeg-CSJLJAQ3.js → ffmpeg-64E4VH6W.js} +7 -7
  99. package/dist/{figma-SUJPNBQQ.js → figma-YEY76ZPG.js} +3 -3
  100. package/dist/fontLocalizeCli.js +10 -10
  101. package/dist/{get-7MYYFGO7.js → get-YJS76PGZ.js} +2 -2
  102. package/dist/{gpuPolicy-C6JWEX7F.js → gpuPolicy-IGZOHHMX.js} +7 -7
  103. package/dist/{grade-compare-P22VRQLA.js → grade-compare-35UEA52Z.js} +30 -30
  104. package/dist/{help-HL6QBZMC.js → help-I5TCDUVH.js} +1 -1
  105. package/dist/{history-OG2IXOQA.js → history-7BKIWSP2.js} +10 -10
  106. package/dist/hyperframe-runtime.js +57 -55
  107. package/dist/hyperframe.manifest.json +1 -1
  108. package/dist/hyperframe.runtime.iife.js +57 -55
  109. package/dist/hyperframes-player.global.js +1 -1
  110. package/dist/{info-7P77JIWI.js → info-UEPOM2LV.js} +8 -8
  111. package/dist/{init-JI7QDJV4.js → init-HIB66K2S.js} +27 -27
  112. package/dist/{inspect-7GSF776P.js → inspect-634XIKDS.js} +30 -30
  113. package/dist/{installer-NY5E5HCO.js → installer-ADKWK4I4.js} +5 -5
  114. package/dist/{keyframes-6NM477BA.js → keyframes-7BJX3EVE.js} +7 -7
  115. package/dist/{lambda-4DNBHUPF.js → lambda-Q4TRSMHZ.js} +6 -6
  116. package/dist/{layout-IBDEMDYP.js → layout-6DUVSHEB.js} +30 -30
  117. package/dist/{lint-BGAON4GT.js → lint-UPFD4JQZ.js} +7 -7
  118. package/dist/{list-PGWNFSLX.js → list-M6OMQXJX.js} +2 -2
  119. package/dist/{login-IAGLU3R3.js → login-QH6JDXDP.js} +4 -4
  120. package/dist/{manager-VOGZQSK4.js → manager-B4MSVFMK.js} +8 -8
  121. package/dist/{manager-HEUPD2YB.js → manager-V2QCCPOJ.js} +4 -3
  122. package/dist/{media-treatment-Z4N3JEDB.js → media-treatment-SHFTIG4K.js} +13 -13
  123. package/dist/{models-QUOIJVQI.js → models-USEFHJFY.js} +11 -11
  124. package/dist/{motionShot-GPNESXTN.js → motionShot-HRM6NMT4.js} +15 -15
  125. package/dist/{normalize-audio-C264N2QE.js → normalize-audio-EP3HPQZB.js} +8 -8
  126. package/dist/{open-HB5F4HSD.js → open-HXZEXQ4X.js} +12 -12
  127. package/dist/{parakeetRunner-2ZQOINZQ.js → parakeetRunner-D5RSHQB2.js} +12 -12
  128. package/dist/{pipeline-JWGTH2BJ.js → pipeline-BDG52SPL.js} +8 -8
  129. package/dist/{play-VQ4HA4CC.js → play-LSRQ6R66.js} +21 -21
  130. package/dist/{preflight-4WTT4D5X.js → preflight-GBPRLIM6.js} +9 -9
  131. package/dist/{present-HU46P43M.js → present-2VKAE63Q.js} +17 -17
  132. package/dist/{preview-LNTJ62DX.js → preview-MWH5CHTN.js} +18 -18
  133. package/dist/{producer-UZZQX6IJ.js → producer-W24FRIN7.js} +1 -1
  134. package/dist/{projectConfig-HDALEM6S.js → projectConfig-NQQDEDAK.js} +7 -7
  135. package/dist/{publication-NX4VC7UU.js → publication-7DW4IJPC.js} +3 -3
  136. package/dist/{publish-AZRRQUXM.js → publish-FJKJ74IF.js} +10 -10
  137. package/dist/{remove-background-OX5WZTXY.js → remove-background-JBOJAUIM.js} +9 -9
  138. package/dist/{render-HGT3EGIK.js → render-5TTZDI5N.js} +7 -14
  139. package/dist/{render-DV76TO7S.js → render-BROS2AIU.js} +9 -9
  140. package/dist/{render-TPE44TOW.js → render-JCYFNDWT.js} +32 -32
  141. package/dist/{render-batch-MUCDZ2WF.js → render-batch-FW56ZFGW.js} +8 -17
  142. package/dist/renderSetupWorker.js +2 -2
  143. package/dist/{resolver-FLQ42X2Y.js → resolver-UW6NYBJA.js} +5 -5
  144. package/dist/{sherpa-IBMU4WV6.js → sherpa-GWYCXYEP.js} +11 -11
  145. package/dist/{skills-M2ANTFD6.js → skills-YNM5SIHQ.js} +6 -6
  146. package/dist/{skillsUpdateCheck-4WNEKKDW.js → skillsUpdateCheck-FNC6VALY.js} +3 -3
  147. package/dist/{snapshot-5AKBT5IQ.js → snapshot-6EMEL4O3.js} +33 -33
  148. package/dist/{src-SGPA7DM7.js → src-VUIKXEFU.js} +9 -9
  149. package/dist/{src-JGPFLYBL.js → src-XRFOS5LP.js} +6 -6
  150. package/dist/{staticProjectServer-UVFPQEUZ.js → staticProjectServer-COEAKTGH.js} +17 -17
  151. package/dist/studio/assets/{hyperframes-player-BulZP0_1.js → hyperframes-player-Dfw61RJK.js} +1 -1
  152. package/dist/studio/assets/{index-B1Gypobp.js → index-Bi6yVTq9.js} +118 -117
  153. package/dist/studio/assets/{index-CGncBUsJ.js → index-eTRj5rY2.js} +1 -1
  154. package/dist/studio/index.html +1 -1
  155. package/dist/{studio-api-RVIU7JP2.js → studio-api-455XWQPD.js} +11 -11
  156. package/dist/{studioServer-K22MWDLW.js → studioServer-ZP2LJT7H.js} +52 -67
  157. package/dist/{telemetry-SUAMGBFK.js → telemetry-HJQ7IO6R.js} +4 -4
  158. package/dist/{timeline-SGVBFT36.js → timeline-CYW3YKMX.js} +20 -20
  159. package/dist/{tokens-IFHWY5WC.js → tokens-VOARLAAH.js} +2 -2
  160. package/dist/{transcribe-KAOCI5CW.js → transcribe-F6UOG57Z.js} +10 -10
  161. package/dist/{transcribe-GY4JHB7V.js → transcribe-FJGNOR6R.js} +16 -16
  162. package/dist/{updateCheck-YUNDJDLW.js → updateCheck-IOLCO3XV.js} +2 -2
  163. package/dist/{upgrade-PL2BFWTO.js → upgrade-BVW67SB7.js} +2 -2
  164. package/dist/{urlDownloader-FZ5ISJES.js → urlDownloader-QF7EBQC2.js} +6 -6
  165. package/dist/{validate-2NALRIFW.js → validate-3NHIT4VT.js} +24 -24
  166. package/dist/{video-7CDAIWYC.js → video-2KGC3RIQ.js} +7 -7
  167. package/package.json +1 -2
  168. package/dist/chunk-EEXE43II.js +0 -3805
  169. package/dist/chunk-TWWSYAKJ.js +0 -24
@@ -37,7 +37,7 @@ import {
37
37
  stripEmbeddedRuntimeScripts,
38
38
  styleElementsFor,
39
39
  warnUnknownEnumValues
40
- } from "./chunk-EEXE43II.js";
40
+ } from "./chunk-PLNQW2C6.js";
41
41
  import {
42
42
  cssVariableName
43
43
  } from "./chunk-VC76R6W2.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  artifactDirectory,
9
9
  finishSnapshotRun
10
- } from "./chunk-GMJ3ILLW.js";
10
+ } from "./chunk-ICMXC3MI.js";
11
11
 
12
12
  // src/utils/checkSnapshotDirectory.ts
13
13
  import { resolve } from "path";
@@ -14,13 +14,13 @@ import {
14
14
  findFFmpeg,
15
15
  findFFprobe,
16
16
  getFFmpegInstallHint
17
- } from "./chunk-GVIH4ZQY.js";
17
+ } from "./chunk-5RS2FIZU.js";
18
18
  import {
19
19
  DEFAULT_VP9_CPU_USED,
20
20
  SDR_RGB_TO_BT709_FILTER,
21
21
  SDR_RGB_TO_TAGGED_BT709_FILTER,
22
22
  renderProvenanceArgs
23
- } from "./chunk-YWSXFFO3.js";
23
+ } from "./chunk-VU4JLRNH.js";
24
24
 
25
25
  // src/background-removal/pipeline.ts
26
26
  import { spawn } from "child_process";
@@ -270,7 +270,7 @@ function inferInputKind(inputPath) {
270
270
  }
271
271
  async function probeMedia(inputPath) {
272
272
  const isImage = inferInputKind(inputPath) === "image";
273
- const engine = await import("./src-JGPFLYBL.js");
273
+ const engine = await import("./src-XRFOS5LP.js");
274
274
  const meta = await engine.extractMediaMetadata(inputPath);
275
275
  if (isImage) {
276
276
  return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-AWDFDFI3.js";
15
15
  import {
16
16
  isBlockedNetworkHost
17
- } from "./chunk-YWSXFFO3.js";
17
+ } from "./chunk-VU4JLRNH.js";
18
18
  import {
19
19
  DOMParser,
20
20
  parseHTML
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveWithinProject
9
- } from "./chunk-FFDC5OWV.js";
9
+ } from "./chunk-ALVXFXUG.js";
10
10
  import {
11
11
  MAX_AUDIO_GAIN_DB,
12
12
  formatAudioGain,
@@ -21,7 +21,7 @@ import {
21
21
  readMediaOffsetSeconds
22
22
  } from "./chunk-BSQ7XANM.js";
23
23
 
24
- // ../studio-server/dist/chunk-KR3B6IJC.js
24
+ // ../studio-server/dist/chunk-ERQWOZ7E.js
25
25
  import { execFile } from "child_process";
26
26
  import { isAbsolute, relative, resolve } from "path";
27
27
  import { promisify } from "util";
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-2CEIKEFU.js";
11
+ } from "./chunk-G3M4BIFN.js";
12
12
  import {
13
13
  getPowerState
14
14
  } from "./chunk-T6AGUTZJ.js";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-XUXGIA7H.js";
21
21
  import {
22
22
  redactTelemetryString
23
- } from "./chunk-T76PLPD6.js";
23
+ } from "./chunk-634HSJ3J.js";
24
24
 
25
25
  // src/utils/feedbackRating.ts
26
26
  var FEEDBACK_RATING_SCALE = 10;
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-P3MMF2JQ.js";
10
+ } from "./chunk-DKGZR7QA.js";
11
11
  import {
12
12
  DEFAULT_PROJECT_CONFIG,
13
13
  createProjectConfig,
14
14
  loadProjectConfig,
15
15
  projectConfigPath,
16
16
  recordProjectRegistryItems
17
- } from "./chunk-LZT3NUTE.js";
17
+ } from "./chunk-IE6O2VXV.js";
18
18
  import {
19
19
  resolveItemWithDependencies,
20
20
  resolveItemsByTag
21
- } from "./chunk-42T7OP4O.js";
21
+ } from "./chunk-32GKQ73S.js";
22
22
  import {
23
23
  InvalidVariableValuesError,
24
24
  prepareItem,
25
25
  publishItem
26
- } from "./chunk-NWEER3QY.js";
26
+ } from "./chunk-YH7VQAKX.js";
27
27
  import {
28
28
  DEFAULT_REGISTRY_URL
29
- } from "./chunk-OYEDHVSI.js";
29
+ } from "./chunk-AFKVI7FJ.js";
30
30
  import {
31
31
  trackRegistryItemAdded
32
- } from "./chunk-S3T3TDAB.js";
32
+ } from "./chunk-U2AIXPAQ.js";
33
33
  import {
34
34
  defineCommand
35
35
  } from "./chunk-S3S4TGEH.js";
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-ZTZA4UWZ.js";
42
42
  import {
43
43
  ITEM_TYPE_DIRS
44
- } from "./chunk-VEQ7DKPG.js";
44
+ } from "./chunk-AHS5QYKF.js";
45
45
  import {
46
46
  isProjectRootMissing,
47
47
  realpath
@@ -9,7 +9,7 @@ import {
9
9
  formatPreviewProxyBox,
10
10
  hdrToSdrToneMapFilter,
11
11
  parseFirstFrameColour
12
- } from "./chunk-VEQ7DKPG.js";
12
+ } from "./chunk-AHS5QYKF.js";
13
13
  import {
14
14
  decodeAuthoredAttribute,
15
15
  scanHtmlOpeningTags
@@ -32,7 +32,7 @@ import {
32
32
  rewriteAssetPath
33
33
  } from "./chunk-BSQ7XANM.js";
34
34
 
35
- // ../studio-server/dist/chunk-EZMTFRUX.js
35
+ // ../studio-server/dist/chunk-E3VGIAMJ.js
36
36
  import { statSync } from "fs";
37
37
  import { sep } from "path";
38
38
  import { execFile } from "child_process";
@@ -337,7 +337,7 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
337
337
  return map;
338
338
  }
339
339
 
340
- // ../studio-server/dist/chunk-XRUVTG5G.js
340
+ // ../studio-server/dist/chunk-QFJR3NIL.js
341
341
  import { spawn } from "child_process";
342
342
  import { createHash, randomUUID } from "crypto";
343
343
  import { existsSync as existsSync2, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, utimesSync } from "fs";
@@ -551,7 +551,7 @@ function getCanonicalProxyCachePath(source, variant, box) {
551
551
  }
552
552
  var ProxyDroppedError = class extends ProxyTranscodeError {
553
553
  constructor() {
554
- super("media proxy copy dropped: every caller left before it started", null, "");
554
+ super("media proxy copy dropped: every caller left", null, "");
555
555
  this.name = "ProxyDroppedError";
556
556
  }
557
557
  };
@@ -604,7 +604,13 @@ function prioritize(job) {
604
604
  }
605
605
  function leave(job) {
606
606
  job.callers--;
607
- if (job.callers === 0) job.queued?.drop();
607
+ if (job.callers > 0) return;
608
+ if (job.queued) {
609
+ job.queued.drop();
610
+ return;
611
+ }
612
+ forget(job);
613
+ job.abandoned.abort();
608
614
  }
609
615
  var inFlight = /* @__PURE__ */ new Map();
610
616
  function forget(job) {
@@ -674,7 +680,7 @@ function stderrReason(stderrTail) {
674
680
  const line = errorLines.at(-1) ?? lines.at(-1);
675
681
  return line ? `: ${line.replace(/[.!]+$/, "")}` : "";
676
682
  }
677
- async function runFfmpeg(sourcePath, outputPath, variant, box) {
683
+ async function runFfmpeg(sourcePath, outputPath, variant, box, signal) {
678
684
  const metadata = await probeMediaMetadata(sourcePath);
679
685
  const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true });
680
686
  if (!ffmpegPath) {
@@ -745,10 +751,12 @@ async function runFfmpeg(sourcePath, outputPath, variant, box) {
745
751
  "libopus"
746
752
  ];
747
753
  const args = [...commonArgs, ...variant === "vp8" ? vp8Args : h264Args, outputPath];
754
+ signal.throwIfAborted();
748
755
  const proc = spawn(ffmpegPath, args, {
749
756
  stdio: ["ignore", "ignore", "pipe"],
750
757
  timeout: TRANSCODE_TIMEOUT_MS,
751
758
  killSignal: "SIGKILL",
759
+ signal,
752
760
  windowsHide: true
753
761
  });
754
762
  let stderrTail = "";
@@ -756,15 +764,16 @@ async function runFfmpeg(sourcePath, outputPath, variant, box) {
756
764
  stderrTail = (stderrTail + chunk.toString()).slice(-STDERR_TAIL_MAX_CHARS);
757
765
  });
758
766
  proc.on("error", (err) => {
767
+ if (signal.aborted) return;
759
768
  reject(new FfmpegUnavailableError(`failed to spawn ffmpeg: ${err.message}`, stderrTail));
760
769
  });
761
- proc.on("close", (code, signal) => {
770
+ proc.on("close", (code, signal2) => {
762
771
  if (code === 0) {
763
772
  resolvePromise();
764
- } else if (signal) {
773
+ } else if (signal2) {
765
774
  reject(
766
775
  new ProxyTranscodeError(
767
- `ffmpeg killed by ${signal} (timeout ${TRANSCODE_TIMEOUT_MS}ms or external kill)`,
776
+ `ffmpeg killed by ${signal2} (timeout ${TRANSCODE_TIMEOUT_MS}ms or external kill)`,
768
777
  null,
769
778
  stderrTail
770
779
  )
@@ -789,7 +798,7 @@ async function transcodeToCache(job, projectDir, absoluteSourcePath, cachePath,
789
798
  mkdirWithinProject(projectDir, cacheDir);
790
799
  const tempPath = join2(cacheDir, `.tmp-${randomUUID()}-${basename(cachePath)}`);
791
800
  try {
792
- await runFfmpeg(absoluteSourcePath, tempPath, variant, box);
801
+ await runFfmpeg(absoluteSourcePath, tempPath, variant, box, job.abandoned.signal);
793
802
  renameSync(tempPath, cachePath);
794
803
  maintainProxyCache(cacheDir);
795
804
  return cachePath;
@@ -830,7 +839,8 @@ async function resolveProxy(projectDir, absoluteSourcePath, variant = "h264", bo
830
839
  const job = {
831
840
  cachePath,
832
841
  priority: options.priority === true,
833
- callers: 0
842
+ callers: 0,
843
+ abandoned: new AbortController()
834
844
  };
835
845
  const promise = transcodeToCache(
836
846
  job,
@@ -840,7 +850,9 @@ async function resolveProxy(projectDir, absoluteSourcePath, variant = "h264", bo
840
850
  variant,
841
851
  box
842
852
  ).catch((err) => {
843
- if (!(err instanceof ProxyDroppedError)) rememberFailure(cachePath, err);
853
+ if (!(err instanceof ProxyDroppedError) && !job.abandoned.signal.aborted) {
854
+ rememberFailure(cachePath, err);
855
+ }
844
856
  throw err;
845
857
  }).finally(() => {
846
858
  forget(job);
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-K2FLNJVB.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-S3T3TDAB.js";
12
+ } from "./chunk-U2AIXPAQ.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-PBN6GBJE.js";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  ensureBrowser,
12
12
  findBrowser
13
- } from "./chunk-XRKMITSS.js";
13
+ } from "./chunk-E24HSMZV.js";
14
14
  import {
15
15
  FIRST_LAUNCH_TIMEOUT_MS,
16
16
  chromeDepsInstallCommand,
@@ -18,7 +18,7 @@ import {
18
18
  distroLabel,
19
19
  getFFmpegInstallHint,
20
20
  parseLddMissingLibs
21
- } from "./chunk-GVIH4ZQY.js";
21
+ } from "./chunk-5RS2FIZU.js";
22
22
  import {
23
23
  runCancellableProcess
24
24
  } from "./chunk-D3ZWBHZP.js";
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-S3T3TDAB.js";
10
+ } from "./chunk-U2AIXPAQ.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-2CEIKEFU.js";
13
+ } from "./chunk-G3M4BIFN.js";
14
14
  import {
15
15
  detectAgentRuntime
16
16
  } from "./chunk-T6AGUTZJ.js";
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
84
84
  try {
85
85
  const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
86
86
  import("./system-7F3UEHQT.js"),
87
- import("./ffmpeg-CSJLJAQ3.js")
87
+ import("./ffmpeg-64E4VH6W.js")
88
88
  ]);
89
89
  const sys = getSystemMeta();
90
90
  const parts = [
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-PIH4P2G6.js";
10
+ } from "./chunk-3EJYUZHW.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-QWCXGTOH.js";
21
+ } from "./chunk-UOHQV6AV.js";
22
22
  import {
23
23
  resolveAutoProxy
24
- } from "./chunk-LZT3NUTE.js";
24
+ } from "./chunk-IE6O2VXV.js";
25
25
  import {
26
26
  decodeWellFormedEscapes
27
27
  } from "./chunk-BSQ7XANM.js";
@@ -141,7 +141,7 @@ function writeProxyError(err, res) {
141
141
  res.writeHead(500);
142
142
  res.end();
143
143
  }
144
- async function serveProxyRequest(projectDir, filePath, request, autoProxy, rangeHeader, res) {
144
+ async function serveProxyRequest(projectDir, filePath, request, autoProxy, rangeHeader, res, signal) {
145
145
  const contentType = getMimeType(filePath);
146
146
  if (!autoProxy || !contentType.startsWith("video/")) {
147
147
  res.writeHead(404);
@@ -168,7 +168,7 @@ async function serveProxyRequest(projectDir, filePath, request, autoProxy, range
168
168
  return;
169
169
  }
170
170
  recordProxyRequest();
171
- const proxyPath = await resolveProxy(projectDir, filePath, variant);
171
+ const proxyPath = await resolveProxy(projectDir, filePath, variant, void 0, { signal });
172
172
  if (res.writableEnded || res.destroyed) return;
173
173
  serveFileWithRange(proxyPath, rangeHeader, res, PROXY_VARIANT_CONFIG[variant].contentType);
174
174
  } catch (err) {
@@ -178,7 +178,8 @@ async function serveProxyRequest(projectDir, filePath, request, autoProxy, range
178
178
  async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Failed to bind local HTTP server", assetRoots = [], autoProxyOverride) {
179
179
  const roots = [projectDir, ...assetRoots];
180
180
  const autoProxy = resolveAutoProxy(projectDir, autoProxyOverride);
181
- const servedHtml = autoProxy ? await injectMediaCodecMapIntoHtml(html, projectDir, [{ html }]) : html;
181
+ const copies = new AbortController();
182
+ const servedHtml = autoProxy ? await injectMediaCodecMapIntoHtml(html, projectDir, [{ html }], void 0, true, copies.signal) : html;
182
183
  const server = createServer((req, res) => {
183
184
  const url = req.url ?? "/";
184
185
  if (url === "/" || url === "/index.html") {
@@ -203,7 +204,8 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
203
204
  proxyRequest,
204
205
  autoProxy,
205
206
  req.headers.range,
206
- res
207
+ res,
208
+ copies.signal
207
209
  );
208
210
  } else {
209
211
  serveFileWithRange(filePath, req.headers.range, res);
@@ -235,6 +237,7 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
235
237
  url,
236
238
  port: 0,
237
239
  close: async () => {
240
+ copies.abort();
238
241
  inProcessAnswers.delete(new URL(url).origin);
239
242
  },
240
243
  answer
@@ -244,6 +247,7 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
244
247
  url: `http://127.0.0.1:${port}/`,
245
248
  port,
246
249
  close: () => new Promise((resolveClose) => {
250
+ copies.abort();
247
251
  server.close(() => resolveClose());
248
252
  })
249
253
  };