hyperframes 0.8.220 → 0.8.222

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 (214) hide show
  1. package/dist/{add-7BJGQPZT.js → add-6MPLIWVP.js} +19 -15
  2. package/dist/{agentPromptGenerator-NFN3AYLJ.js → agentPromptGenerator-X7SQPCXZ.js} +12 -11
  3. package/dist/{animatedGifPrep-HC45HF7H.js → animatedGifPrep-ESOJ4FQ7.js} +12 -11
  4. package/dist/api.js +23 -22
  5. package/dist/{asset-TSP3CMU4.js → asset-Y735VQV6.js} +2 -2
  6. package/dist/{assetCataloger-KIN2UKI7.js → assetCataloger-AOJAUEZW.js} +13 -12
  7. package/dist/{audio-NEJOZZXG.js → audio-VMMCGPOV.js} +22 -20
  8. package/dist/{auth-7EEBDTBK.js → auth-BD5NHYRA.js} +1 -1
  9. package/dist/{autoUpdate-67ZMQDED.js → autoUpdate-VTMNHOAJ.js} +2 -2
  10. package/dist/{backgroundChecks-YN424YG5.js → backgroundChecks-SUDYQZSW.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-I2GRQUPY.js → batchRender-4NR7RMT7.js} +11 -8
  13. package/dist/{beats-VVY6JZEU.js → beats-PKEHQHBY.js} +53 -21
  14. package/dist/{benchmark-BJJVW6RH.js → benchmark-K55DDFHG.js} +12 -11
  15. package/dist/{browser-IOP3IU24.js → browser-G2WFWJJ3.js} +3 -3
  16. package/dist/{bundleWithLocalizedFonts-TLEZEZXN.js → bundleWithLocalizedFonts-MNG2UVH3.js} +2 -2
  17. package/dist/{capture-4Z3KBJNP.js → capture-24PIC3TZ.js} +67 -25
  18. package/dist/{capture-HVIWNBQA.js → capture-U3EEAPI6.js} +3 -3
  19. package/dist/{captureCompositionFrame-J3OOHGC2.js → captureCompositionFrame-KL4V6ORD.js} +18 -17
  20. package/dist/{catalog-G65QCBXG.js → catalog-J3BU4TFW.js} +17 -15
  21. package/dist/{catch-up-VHTDAQYM.js → catch-up-LDGNMEGL.js} +4 -4
  22. package/dist/{check-W7TCUAXY.js → check-J6HG6EKE.js} +48 -46
  23. package/dist/{checkAudio-AV7R24FD.js → checkAudio-MAX7JUYG.js} +17 -16
  24. package/dist/{checkBrowser-QTMNRNPF.js → checkBrowser-3W74WJ26.js} +44 -38
  25. package/dist/{chunk-KGM6VQ6D.js → chunk-3RXZZIDQ.js} +5 -5
  26. package/dist/{chunk-6YIBMA6Y.js → chunk-42Q3VX34.js} +9 -9
  27. package/dist/{chunk-6MHKL2TB.js → chunk-4VEXJTUT.js} +3 -3
  28. package/dist/{chunk-NSKIGECI.js → chunk-52VXA3SC.js} +1 -1
  29. package/dist/{chunk-RIG7XBHW.js → chunk-537WSYHU.js} +1 -1
  30. package/dist/{chunk-A32ZEFZT.js → chunk-5GSEM63G.js} +12 -10
  31. package/dist/{chunk-SUQ77SEY.js → chunk-6CFBFWLF.js} +9 -2
  32. package/dist/{chunk-FGGZKCOT.js → chunk-6W3DY5BP.js} +2 -2
  33. package/dist/{chunk-RHEQ7RXZ.js → chunk-7D2LTSNV.js} +1 -1
  34. package/dist/{chunk-SW5XTDRD.js → chunk-7IH3RSSG.js} +82 -33
  35. package/dist/{chunk-YMKTEQIA.js → chunk-AIXH3V5A.js} +86 -51
  36. package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
  37. package/dist/{chunk-NEVX7YHH.js → chunk-AN4USOFT.js} +5 -1
  38. package/dist/{chunk-KJ2ORDQZ.js → chunk-AOHG22HQ.js} +6 -5
  39. package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
  40. package/dist/{chunk-P3XF3ZZF.js → chunk-AXVTL7B6.js} +6 -6
  41. package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
  42. package/dist/{chunk-DA6GOIIA.js → chunk-BDZSH6P3.js} +6 -57
  43. package/dist/{chunk-RECS6EGQ.js → chunk-BPIY5LB3.js} +9 -8
  44. package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
  45. package/dist/{chunk-PIKANFFV.js → chunk-CVY6OIKN.js} +4 -4
  46. package/dist/{chunk-XPV5K5MD.js → chunk-CZOC7WY7.js} +1 -1
  47. package/dist/{chunk-PCKWLYKA.js → chunk-D6LGD472.js} +4 -4
  48. package/dist/{chunk-NSJPSQZ3.js → chunk-DC26QLB7.js} +1 -1
  49. package/dist/{chunk-LZPNAI7P.js → chunk-DIXTEVWQ.js} +3 -3
  50. package/dist/{chunk-6CWSMSOC.js → chunk-DNTPNSH5.js} +3 -3
  51. package/dist/{chunk-OWV36OJP.js → chunk-DS372VSV.js} +2 -5
  52. package/dist/{chunk-O332YWQV.js → chunk-DSHFKKSZ.js} +3 -3
  53. package/dist/{chunk-UOIVSNPI.js → chunk-E5IIR67Q.js} +1 -1
  54. package/dist/{chunk-5RGVBSDS.js → chunk-EE7YWKDY.js} +3 -27
  55. package/dist/{chunk-XFMO3BEN.js → chunk-EGJ4UECR.js} +11 -5
  56. package/dist/{chunk-2MDFNL2E.js → chunk-EOUKB53E.js} +1 -1
  57. package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
  58. package/dist/{chunk-IZBJZBBF.js → chunk-F6QV5N3A.js} +2 -2
  59. package/dist/{chunk-EUZYVUUS.js → chunk-FMKI7ZLM.js} +2 -2
  60. package/dist/{chunk-DB6OJRZB.js → chunk-FT3CNACL.js} +5 -5
  61. package/dist/{chunk-5XOOBNU2.js → chunk-G2EY3MVW.js} +1 -1
  62. package/dist/{chunk-JIGD5ZXE.js → chunk-G675S644.js} +21 -22
  63. package/dist/{chunk-AUGHXWJC.js → chunk-GHEYGMKD.js} +2 -2
  64. package/dist/{chunk-TQ3W64VT.js → chunk-GODT7QDZ.js} +3 -3
  65. package/dist/{chunk-DBT7CRK4.js → chunk-GOWU3NCE.js} +1 -1
  66. package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
  67. package/dist/{chunk-22U7OCYM.js → chunk-HQDHMAUI.js} +1 -1
  68. package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
  69. package/dist/{chunk-NYSB3CWY.js → chunk-IB7UYGXR.js} +10 -10
  70. package/dist/{chunk-DJWAL7AW.js → chunk-IGBOFU2Y.js} +3 -3
  71. package/dist/{chunk-NKNKRN7G.js → chunk-JQWITWVC.js} +2 -2
  72. package/dist/{chunk-ZS5PARPI.js → chunk-K5UCRKUK.js} +4 -6
  73. package/dist/{chunk-BASBBBNB.js → chunk-KEY2VA65.js} +1 -1
  74. package/dist/{chunk-RIYARQ2O.js → chunk-L37AZWB2.js} +2 -2
  75. package/dist/{chunk-OURH3TLX.js → chunk-L55LAERP.js} +1 -1
  76. package/dist/chunk-LL3VMDAC.js +5013 -0
  77. package/dist/chunk-MEJH7VEA.js +63 -0
  78. package/dist/{chunk-K7APBNPW.js → chunk-NUE44RN2.js} +1 -1
  79. package/dist/{chunk-VZVRF3JX.js → chunk-OAXWHPNS.js} +2 -2
  80. package/dist/{chunk-6A7DOGSP.js → chunk-OQLYKDL5.js} +1 -1
  81. package/dist/{chunk-VJGQLC2A.js → chunk-OROHGC7W.js} +8 -8
  82. package/dist/{chunk-6OXVMHTB.js → chunk-P5M3AXEP.js} +1 -1
  83. package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
  84. package/dist/{chunk-ARZGHKST.js → chunk-QOZPWIYV.js} +10 -10
  85. package/dist/{chunk-3F6EGZ6C.js → chunk-QYRMR45H.js} +2 -2
  86. package/dist/{chunk-AGFHQTZD.js → chunk-RIGSGNDQ.js} +54 -18
  87. package/dist/{chunk-CIUEQLWL.js → chunk-RRPO44PE.js} +5 -5
  88. package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
  89. package/dist/{chunk-CMI2POHT.js → chunk-SKCS4SUZ.js} +4455 -4312
  90. package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
  91. package/dist/{chunk-543U46OR.js → chunk-US4BCRYB.js} +5 -0
  92. package/dist/{chunk-D5TOH3QI.js → chunk-VJVVWYP6.js} +1 -1
  93. package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
  94. package/dist/{chunk-MHZB6QSC.js → chunk-VQMHDS2V.js} +123 -12
  95. package/dist/{chunk-IMVM6E65.js → chunk-WJYFJGYT.js} +3 -3
  96. package/dist/{chunk-MS2SDIPC.js → chunk-WWT6ETQA.js} +43 -43
  97. package/dist/chunk-WYKRGEDD.js +62 -0
  98. package/dist/{chunk-GLC5XHN5.js → chunk-XC3BGWCJ.js} +3 -44
  99. package/dist/{chunk-DEXGPHAZ.js → chunk-XHD7RKEZ.js} +2 -2
  100. package/dist/{chunk-RK3LW7NO.js → chunk-Y7IV5MAK.js} +2 -2
  101. package/dist/{chunk-2L645DAG.js → chunk-YEKJOA47.js} +1 -1
  102. package/dist/{chunk-RF5LOY22.js → chunk-YHL4CVTF.js} +14 -14
  103. package/dist/{chunk-FK5TW3IM.js → chunk-Z5VQBRU2.js} +1 -1
  104. package/dist/{chunk-24F7TOW2.js → chunk-ZAJQFY5Q.js} +126 -53
  105. package/dist/{chunk-X2YBRPCM.js → chunk-ZBNK6X5O.js} +5 -5
  106. package/dist/{chunk-NQP44XMF.js → chunk-ZLXWRYOO.js} +3 -3
  107. package/dist/{chunk-WQYLRTVT.js → chunk-ZPTNLDOB.js} +2 -2
  108. package/dist/{clean-AYZ2RAMN.js → clean-K6IM3LC4.js} +24 -23
  109. package/dist/cli.js +62 -60
  110. package/dist/{cloud-A53ZNOO6.js → cloud-OV7EA4BJ.js} +4 -4
  111. package/dist/{cloudrun-USB736UD.js → cloudrun-ZEMODIOP.js} +10 -9
  112. package/dist/commands/layout-audit.browser.js +19 -3
  113. package/dist/commands/motion-signature.browser.js +18 -9
  114. package/dist/{compare-42CWJXBR.js → compare-MJZ3D3HA.js} +37 -35
  115. package/dist/{compiler-SV2WYWTI.js → compiler-6KKETX77.js} +8 -8
  116. package/dist/{component-7JC7NQGM.js → component-EVXMYIP3.js} +3 -3
  117. package/dist/{compositions-6F6743GP.js → compositions-PZ7FQ7WN.js} +16 -15
  118. package/dist/{delete-7TRRZI5M.js → delete-DL3XA4QV.js} +2 -2
  119. package/dist/{deploy-6SSC2FBD.js → deploy-VEYP3IP5.js} +1 -1
  120. package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
  121. package/dist/{dist-KP2GVAQU.js → dist-M77KFAYW.js} +7 -6
  122. package/dist/{dist-XXBCSQYF.js → dist-SHMQOKMF.js} +6 -6
  123. package/dist/docs/motion-blur.md +28 -0
  124. package/dist/{docs-6EM6FDNI.js → docs-VAF5NM5B.js} +4 -0
  125. package/dist/{doctor-XEG3GZAA.js → doctor-JM2WHH7Y.js} +16 -15
  126. package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
  127. package/dist/{events-I7F24HFX.js → events-GW5I5RCG.js} +2 -2
  128. package/dist/{events-33HQE43K.js → events-S7KVBRSL.js} +3 -3
  129. package/dist/{feedback-XDTUBZX3.js → feedback-7OR5FVTX.js} +11 -10
  130. package/dist/{ffmpeg-ABXU2TYH.js → ffmpeg-A7CSIX3U.js} +12 -11
  131. package/dist/{figma-4JKNWEKN.js → figma-444HKFX5.js} +3 -3
  132. package/dist/fontLocalizeCli.js +16 -15
  133. package/dist/{get-EX2INNLN.js → get-6UTF3225.js} +2 -2
  134. package/dist/{gpuPolicy-7TSXQHK4.js → gpuPolicy-ORPUS5Z2.js} +12 -11
  135. package/dist/{grade-compare-TLUTRM2K.js → grade-compare-UCTAYN3B.js} +38 -36
  136. package/dist/{heifImagePrep-UOBBQFA2.js → heifImagePrep-ED6V6RFN.js} +13 -12
  137. package/dist/{help-BB4FPW2K.js → help-HZR32XWP.js} +1 -1
  138. package/dist/{history-JNETCPLB.js → history-TQ56MZIA.js} +18 -9
  139. package/dist/hyperframe.manifest.json +1 -1
  140. package/dist/hyperframe.runtime.iife.js +69 -69
  141. package/dist/hyperframes-player.global.js +1 -1
  142. package/dist/hyperframes-slideshow.global.js +8 -8
  143. package/dist/{info-7LBANHQG.js → info-RPIIP7RN.js} +11 -10
  144. package/dist/{init-GZ36UP5K.js → init-ONAWKHFW.js} +34 -32
  145. package/dist/{inspect-OD54TEQN.js → inspect-A75PYOWJ.js} +38 -36
  146. package/dist/{installer-4KJ7T3KB.js → installer-ISMCCFBZ.js} +8 -7
  147. package/dist/{keyframes-KLBNYGYC.js → keyframes-2I75DP3O.js} +7 -7
  148. package/dist/{lambda-554LSIHM.js → lambda-4QIHGPGJ.js} +17 -16
  149. package/dist/{layout-EQAJKTIW.js → layout-GW7WE7RT.js} +38 -36
  150. package/dist/{lint-ZMSIAVMI.js → lint-OWP72OZQ.js} +12 -12
  151. package/dist/{lintProject-I4XPWIQZ.js → lintProject-XYQ5L7RQ.js} +6 -6
  152. package/dist/{list-KUZLCZUK.js → list-WVK7ZCPW.js} +2 -2
  153. package/dist/{localPage-MQJZAR7Z.js → localPage-IQWHN7BH.js} +12 -11
  154. package/dist/{login-644VKQTJ.js → login-Q5CNHYWU.js} +4 -4
  155. package/dist/{manager-3C33QHJB.js → manager-JCYVNEWH.js} +13 -12
  156. package/dist/{media-treatment-XYS2O3JD.js → media-treatment-M5IUP7H4.js} +21 -20
  157. package/dist/{models-KOTMJX4Z.js → models-CFXKDYZ3.js} +16 -15
  158. package/dist/{motionShot-YOSDJ26I.js → motionShot-CWUEI4ZM.js} +21 -20
  159. package/dist/{normalize-audio-FNT6Y4MC.js → normalize-audio-FASY33LR.js} +15 -14
  160. package/dist/{open-COIGEQCX.js → open-KOVVESYN.js} +16 -14
  161. package/dist/{parakeetRunner-BBXLGDZW.js → parakeetRunner-E4IP5SL4.js} +18 -17
  162. package/dist/{pipeline-23GAJEQO.js → pipeline-C6EZVV43.js} +15 -14
  163. package/dist/{play-GOCWJH7Z.js → play-MZJI6SMH.js} +28 -26
  164. package/dist/{preflight-7IWI3INL.js → preflight-K4SPUWXP.js} +13 -12
  165. package/dist/{present-VN2RAATE.js → present-7L7ZTG7F.js} +24 -23
  166. package/dist/{preview-MD7W5T56.js → preview-QGDVMR3X.js} +29 -26
  167. package/dist/{producer-IRENEI2Y.js → producer-EJPNNY3E.js} +1 -1
  168. package/dist/{projectConfig-3IXWY6VF.js → projectConfig-EEF6OPXO.js} +11 -9
  169. package/dist/{publication-MCDU4VIJ.js → publication-5KF44AKQ.js} +6 -5
  170. package/dist/{publish-5477WXAK.js → publish-SSKWZ5TE.js} +17 -15
  171. package/dist/{remove-background-XYO5ENFU.js → remove-background-PCL6I5SZ.js} +16 -15
  172. package/dist/{render-34GMNN2B.js → render-DH4UA7KW.js} +10 -9
  173. package/dist/{render-54SCVHMS.js → render-DRWQ6F37.js} +22 -21
  174. package/dist/{render-L66MXLV2.js → render-UPRWOGLS.js} +158 -43
  175. package/dist/{render-batch-DOCRB7KQ.js → render-batch-EBW5WHB5.js} +10 -9
  176. package/dist/renderSetupWorker.js +6 -6
  177. package/dist/{resolver-Q5XTMECS.js → resolver-ZSZXNRFP.js} +9 -7
  178. package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
  179. package/dist/{sherpa-E7C2ZGKD.js → sherpa-IKVUCBOW.js} +17 -16
  180. package/dist/skills/hyperframes-cli/references/beats.md +1 -1
  181. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
  182. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
  183. package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -10
  184. package/dist/skills/media-use/scripts/lib/adopt.test.mjs +22 -0
  185. package/dist/{skills-DDZCYTVS.js → skills-ZREHX3TU.js} +5 -5
  186. package/dist/{skillsUpdateCheck-4XX7YYZA.js → skillsUpdateCheck-PPJ5NGAL.js} +3 -3
  187. package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
  188. package/dist/{snapshot-PTLZ25S3.js → snapshot-KPFLZNEL.js} +87 -52
  189. package/dist/{src-RDWYM4KF.js → src-EPOGDJTT.js} +11 -10
  190. package/dist/{src-KT325UQS.js → src-QRV3466B.js} +21 -14
  191. package/dist/{staticProjectServer-JCGTNF4E.js → staticProjectServer-ERKLMZVM.js} +26 -24
  192. package/dist/studio/assets/{hyperframes-player-CC1Ue2mg.js → hyperframes-player-Dka6e1BG.js} +1 -1
  193. package/dist/studio/assets/{index-BgjuGqZk.js → index-C8VIUiGz.js} +117 -117
  194. package/dist/studio/assets/{index-hc5Ru1gB.js → index-CVPNbydK.js} +1 -1
  195. package/dist/studio/index.html +1 -1
  196. package/dist/{studio-api-GTN767PW.js → studio-api-7WFZIIPL.js} +21 -16
  197. package/dist/{studioSelectionClient-D6VMGTKQ.js → studioSelectionClient-FA6XPVIL.js} +1 -1
  198. package/dist/{studioServer-X6O4WB7E.js → studioServer-3XZTLI26.js} +79 -121
  199. package/dist/{telemetry-OY2PKIWO.js → telemetry-BMLI4TMC.js} +3 -3
  200. package/dist/templates/blank/index.html +1 -1
  201. package/dist/templates/from-file/index.html +1 -1
  202. package/dist/{timeline-IZZRAXKP.js → timeline-EDCDO2ZR.js} +28 -26
  203. package/dist/{tokens-JHIYKROF.js → tokens-2ZFLFO3K.js} +2 -2
  204. package/dist/{transcribe-2MPZHRG5.js → transcribe-3WMH62HH.js} +16 -15
  205. package/dist/{transcribe-WJ2DIE3W.js → transcribe-Y2LPBT7I.js} +22 -21
  206. package/dist/{updateCheck-6XMEFB74.js → updateCheck-5LFZGC3P.js} +2 -2
  207. package/dist/{upgrade-MSNQIWR7.js → upgrade-X7QVSEKP.js} +2 -2
  208. package/dist/{urlDownloader-CD6NVJE5.js → urlDownloader-TYD6ROKL.js} +11 -10
  209. package/dist/{validate-7L5LJFTK.js → validate-26KQ5VX7.js} +31 -30
  210. package/dist/{video-HFIDOIQI.js → video-BPKLZIJK.js} +13 -12
  211. package/dist/warmCheck.js +48 -46
  212. package/package.json +1 -1
  213. package/dist/chunk-2Q7XV4F6.js +0 -5061
  214. /package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
@@ -0,0 +1,62 @@
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/utils/didYouMean.ts
9
+ function editDistance(a, b) {
10
+ let previous = Array.from({ length: b.length + 1 }, (_, i) => i);
11
+ for (let i = 1; i <= a.length; i++) {
12
+ const current = [i];
13
+ for (let j = 1; j <= b.length; j++) {
14
+ const substitution = previous[j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1);
15
+ current[j] = Math.min(previous[j] + 1, current[j - 1] + 1, substitution);
16
+ }
17
+ previous = current;
18
+ }
19
+ return previous[b.length];
20
+ }
21
+ function closestMatch(input, candidates) {
22
+ const names = [...candidates];
23
+ const prefixed = input.length >= 2 ? names.find((name) => name.startsWith(input)) : void 0;
24
+ if (prefixed) return prefixed;
25
+ const limit = input.length <= 3 ? 1 : Math.max(2, Math.floor(input.length / 3));
26
+ let best;
27
+ let bestDistance = limit + 1;
28
+ for (const name of names) {
29
+ const distance = editDistance(input, name);
30
+ if (distance < bestDistance) {
31
+ best = name;
32
+ bestDistance = distance;
33
+ }
34
+ }
35
+ return best;
36
+ }
37
+ function closestNames(input, candidates, limit = 5) {
38
+ const words = new Set(input.split("-"));
39
+ return [...candidates].map((name) => ({
40
+ name,
41
+ shared: name.split("-").filter((word) => words.has(word)).length,
42
+ distance: editDistance(input, name)
43
+ })).filter(({ shared }) => shared > 0).sort((a, b) => b.shared - a.shared || a.distance - b.distance || a.name.localeCompare(b.name)).slice(0, limit).map(({ name }) => name);
44
+ }
45
+ var COMMAND_SYNONYMS = {
46
+ search: "catalog",
47
+ find: "catalog",
48
+ browse: "catalog",
49
+ registry: "catalog",
50
+ list: "catalog",
51
+ install: "add"
52
+ };
53
+ function synonymMatch(input, candidates) {
54
+ const target = COMMAND_SYNONYMS[input];
55
+ return target !== void 0 && [...candidates].includes(target) ? target : void 0;
56
+ }
57
+
58
+ export {
59
+ closestMatch,
60
+ closestNames,
61
+ synonymMatch
62
+ };
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ closestMatch
9
+ } from "./chunk-WYKRGEDD.js";
7
10
  import {
8
11
  c
9
12
  } from "./chunk-2GICKZ3I.js";
@@ -11,48 +14,6 @@ import {
11
14
  CliUsageError
12
15
  } from "./chunk-DP5LF7GF.js";
13
16
 
14
- // src/utils/didYouMean.ts
15
- function editDistance(a, b) {
16
- let previous = Array.from({ length: b.length + 1 }, (_, i) => i);
17
- for (let i = 1; i <= a.length; i++) {
18
- const current = [i];
19
- for (let j = 1; j <= b.length; j++) {
20
- const substitution = previous[j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1);
21
- current[j] = Math.min(previous[j] + 1, current[j - 1] + 1, substitution);
22
- }
23
- previous = current;
24
- }
25
- return previous[b.length];
26
- }
27
- function closestMatch(input, candidates) {
28
- const names = [...candidates];
29
- const prefixed = input.length >= 2 ? names.find((name) => name.startsWith(input)) : void 0;
30
- if (prefixed) return prefixed;
31
- const limit = input.length <= 3 ? 1 : Math.max(2, Math.floor(input.length / 3));
32
- let best;
33
- let bestDistance = limit + 1;
34
- for (const name of names) {
35
- const distance = editDistance(input, name);
36
- if (distance < bestDistance) {
37
- best = name;
38
- bestDistance = distance;
39
- }
40
- }
41
- return best;
42
- }
43
- var COMMAND_SYNONYMS = {
44
- search: "catalog",
45
- find: "catalog",
46
- browse: "catalog",
47
- registry: "catalog",
48
- list: "catalog",
49
- install: "add"
50
- };
51
- function synonymMatch(input, candidates) {
52
- const target = COMMAND_SYNONYMS[input];
53
- return target !== void 0 && [...candidates].includes(target) ? target : void 0;
54
- }
55
-
56
17
  // src/utils/reject-unknown-flags.ts
57
18
  var ALWAYS_KNOWN = /* @__PURE__ */ new Set(["help", "h", "version", "v"]);
58
19
  function nameVariants(name) {
@@ -192,8 +153,6 @@ function guardSwallowedFlagValues(cmd, path, rawArgs) {
192
153
  }
193
154
 
194
155
  export {
195
- closestMatch,
196
- synonymMatch,
197
156
  assertKnownFlags,
198
157
  swallowedFlagUsageError,
199
158
  guardSwallowedFlagValues
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  withOwner
9
- } from "./chunk-6MHKL2TB.js";
9
+ } from "./chunk-4VEXJTUT.js";
10
10
  import {
11
11
  HistoryBusyError,
12
12
  beginArtifactCapture
13
- } from "./chunk-24F7TOW2.js";
13
+ } from "./chunk-ZAJQFY5Q.js";
14
14
 
15
15
  // src/utils/artifactCapture.ts
16
16
  var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
@@ -8,11 +8,11 @@ import {
8
8
  normalizeRelPath,
9
9
  resolveLocalImageSourcePath,
10
10
  splitUrlSuffix
11
- } from "./chunk-WQYLRTVT.js";
11
+ } from "./chunk-ZPTNLDOB.js";
12
12
  import {
13
13
  runFfmpeg,
14
14
  runFfprobe
15
- } from "./chunk-YMKTEQIA.js";
15
+ } from "./chunk-AIXH3V5A.js";
16
16
  import {
17
17
  renameWithRetry
18
18
  } from "./chunk-YWRUQ7XZ.js";
@@ -11,7 +11,7 @@ import {
11
11
  PRORES_PROFILE_NAMES,
12
12
  appendRateCapArgs,
13
13
  isProresProfile
14
- } from "./chunk-YMKTEQIA.js";
14
+ } from "./chunk-AIXH3V5A.js";
15
15
  import {
16
16
  failUsage
17
17
  } from "./chunk-DP5LF7GF.js";
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-FK5TW3IM.js";
9
+ } from "./chunk-Z5VQBRU2.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
13
13
  seekCompositionTimeline,
14
14
  waitForRuntimeReady
15
- } from "./chunk-NYSB3CWY.js";
15
+ } from "./chunk-IB7UYGXR.js";
16
16
  import {
17
17
  pageNavigationTimeoutMs
18
- } from "./chunk-6CWSMSOC.js";
18
+ } from "./chunk-DNTPNSH5.js";
19
19
  import {
20
20
  resolveCompositionViewportFromHtml
21
- } from "./chunk-NSKIGECI.js";
21
+ } from "./chunk-52VXA3SC.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode
25
- } from "./chunk-RIYARQ2O.js";
25
+ } from "./chunk-L37AZWB2.js";
26
26
  import {
27
27
  defineCommand
28
28
  } from "./chunk-DL4OD7IA.js";
@@ -31,14 +31,14 @@ import {
31
31
  } from "./chunk-2GICKZ3I.js";
32
32
  import {
33
33
  resolveNaturalMediaTimelineDuration
34
- } from "./chunk-2Q7XV4F6.js";
34
+ } from "./chunk-LL3VMDAC.js";
35
35
  import {
36
36
  decodeWellFormedEscapes
37
- } from "./chunk-KSC4O2RY.js";
37
+ } from "./chunk-C2KEGBR3.js";
38
38
  import {
39
39
  printDeprecationNotice,
40
40
  withMeta
41
- } from "./chunk-OURH3TLX.js";
41
+ } from "./chunk-L55LAERP.js";
42
42
  import {
43
43
  failureMessage,
44
44
  jsonFailure
@@ -252,7 +252,7 @@ function extractCompositionErrorsFromLint(lintResult) {
252
252
  async function localizeRemoteAssets(html) {
253
253
  let dir;
254
254
  try {
255
- const { loadProducer } = await import("./producer-IRENEI2Y.js");
255
+ const { loadProducer } = await import("./producer-EJPNNY3E.js");
256
256
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
257
257
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
258
258
  const assetDir = dir;
@@ -273,10 +273,10 @@ async function localizeRemoteAssets(html) {
273
273
  }
274
274
  async function validateInBrowser(project, opts) {
275
275
  const projectDir = project.dir;
276
- const { bundleToSingleHtml } = await import("./compiler-SV2WYWTI.js");
276
+ const { bundleToSingleHtml } = await import("./compiler-6KKETX77.js");
277
277
  const { ensureBrowser } = await import("./manager-ENFYM32B.js");
278
- const { serveStaticProjectHtml } = await import("./staticProjectServer-JCGTNF4E.js");
279
- const { lintProject } = await import("./lintProject-I4XPWIQZ.js");
278
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-ERKLMZVM.js");
279
+ const { lintProject } = await import("./lintProject-XYQ5L7RQ.js");
280
280
  const lintResult = await lintProject(projectDir);
281
281
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
282
282
  const html = await bundleToSingleHtml(projectDir);
@@ -297,9 +297,9 @@ async function validateInBrowser(project, opts) {
297
297
  try {
298
298
  const browser = await ensureBrowser();
299
299
  const puppeteer = await import("puppeteer-core");
300
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-RDWYM4KF.js");
300
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-EPOGDJTT.js");
301
301
  const requestedGpuMode = resolveCliChromeGpuMode();
302
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-7TSXQHK4.js");
302
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-ORPUS5Z2.js");
303
303
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
304
304
  const requiresWebGpu = compositionRequiresWebGpu(html);
305
305
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-5ZBMHUY2.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-NEVX7YHH.js";
12
+ } from "./chunk-AN4USOFT.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-DP5LF7GF.js";
@@ -26,9 +26,9 @@ import {
26
26
  mkdirWithinProject
27
27
  } from "./chunk-OFQWTKPW.js";
28
28
 
29
- // ../studio-server/dist/chunk-UMPRW7BV.js
29
+ // ../studio-server/dist/chunk-CZ2QLV2C.js
30
30
  import { randomUUID as randomUUID7 } from "crypto";
31
- import { mkdir as mkdir2, readdir as readdir3, rm as rm3, rmdir, stat as stat2, writeFile } from "fs/promises";
31
+ import { mkdir as mkdir2, readdir as readdir4, rm as rm3, rmdir, stat as stat2, writeFile } from "fs/promises";
32
32
  import {
33
33
  existsSync as existsSync3,
34
34
  lstatSync as lstatSync4,
@@ -51,17 +51,18 @@ import { uptime } from "os";
51
51
  import { join } from "path";
52
52
  import { createHash as createHash2 } from "crypto";
53
53
  import { lstatSync, readFileSync as readFileSync3, readdirSync } from "fs";
54
+ import { lstat, readFile, readdir } from "fs/promises";
54
55
  import { extname, isAbsolute as isAbsolute2, relative as relative2, resolve as resolve2, sep as sep2 } from "path";
55
56
  import { createHash as createHash3, randomUUID as randomUUID3 } from "crypto";
56
57
  import { constants, createReadStream, createWriteStream } from "fs";
57
- import { copyFile, mkdir, open, readdir, readFile, rm, stat } from "fs/promises";
58
+ import { copyFile, mkdir, open, readdir as readdir2, readFile as readFile2, rm, stat } from "fs/promises";
58
59
  import { dirname, join as join2 } from "path";
59
60
  import { pipeline } from "stream/promises";
60
61
  import { resolve as resolve3 } from "path";
61
62
  import { extname as extname2 } from "path";
62
63
  import { randomUUID as randomUUID5 } from "crypto";
63
64
  import { readdirSync as readdirSync2, readFileSync as readFileSync5, renameSync, statSync as statSync3, writeFileSync as writeFileSync3 } from "fs";
64
- import { lstat, readdir as readdir2, rm as rm2 } from "fs/promises";
65
+ import { lstat as lstat2, readdir as readdir3, rm as rm2 } from "fs/promises";
65
66
  import { tmpdir } from "os";
66
67
  import { dirname as dirname2, join as join4 } from "path";
67
68
  import { randomUUID as randomUUID4 } from "crypto";
@@ -463,6 +464,15 @@ function signatureEntryStat(projectDir, entry, file, outputs) {
463
464
  return null;
464
465
  }
465
466
  }
467
+ function signatureFileOf(file, stat4) {
468
+ return {
469
+ file,
470
+ mtimeMs: stat4.mtimeMs,
471
+ ctimeMs: stat4.ctimeMs,
472
+ size: stat4.size,
473
+ textContentEligible: isTextContentEligible(file, stat4.size)
474
+ };
475
+ }
466
476
  function collectProjectSignatureFiles(projectDir, dir, files, outputs = readRenderOutputsOrNone(projectDir)) {
467
477
  let entries;
468
478
  try {
@@ -477,13 +487,7 @@ function collectProjectSignatureFiles(projectDir, dir, files, outputs = readRend
477
487
  if (stat4.isDirectory()) {
478
488
  collectProjectSignatureFiles(projectDir, file, files, outputs);
479
489
  } else if (stat4.isFile()) {
480
- files.push({
481
- file,
482
- mtimeMs: stat4.mtimeMs,
483
- ctimeMs: stat4.ctimeMs,
484
- size: stat4.size,
485
- textContentEligible: isTextContentEligible(file, stat4.size)
486
- });
490
+ files.push(signatureFileOf(file, stat4));
487
491
  }
488
492
  }
489
493
  }
@@ -499,16 +503,40 @@ function collectProjectSignatureManifestFiles(projectDir, files) {
499
503
  continue;
500
504
  }
501
505
  if (stat4.isSymbolicLink() || !stat4.isFile()) continue;
502
- files.push({
503
- file,
504
- mtimeMs: stat4.mtimeMs,
505
- ctimeMs: stat4.ctimeMs,
506
- size: stat4.size,
507
- textContentEligible: isTextContentEligible(file, stat4.size)
508
- });
506
+ files.push(signatureFileOf(file, stat4));
509
507
  seen.add(file);
510
508
  }
511
509
  }
510
+ async function signatureEntryStatAsync(projectDir, entry, file, outputs) {
511
+ if (isSkippedEntry(entry) || !isPathWithin(projectDir, file)) return null;
512
+ if (isRenderOutput(projectDir, file, outputs)) return null;
513
+ try {
514
+ const stat4 = await lstat(file);
515
+ return stat4.isSymbolicLink() ? null : stat4;
516
+ } catch {
517
+ return null;
518
+ }
519
+ }
520
+ async function collectProjectSignatureFilesAsync(projectDir, dir, files, outputs) {
521
+ let entries;
522
+ try {
523
+ entries = (await readdir(dir)).sort();
524
+ } catch {
525
+ return;
526
+ }
527
+ const paths = entries.map((entry) => resolve2(dir, entry));
528
+ const stats = await Promise.all(
529
+ entries.map((entry, i) => signatureEntryStatAsync(projectDir, entry, paths[i], outputs))
530
+ );
531
+ for (const [i, stat4] of stats.entries()) {
532
+ if (!stat4) continue;
533
+ if (stat4.isDirectory()) {
534
+ await collectProjectSignatureFilesAsync(projectDir, paths[i], files, outputs);
535
+ } else if (stat4.isFile()) {
536
+ files.push(signatureFileOf(paths[i], stat4));
537
+ }
538
+ }
539
+ }
512
540
  function createProjectFingerprint(projectDir, files) {
513
541
  const hash = createHash2("sha256");
514
542
  for (const entry of files) {
@@ -531,6 +559,17 @@ function collectProjectFiles(normalizedProjectDir) {
531
559
  collectProjectSignatureManifestFiles(normalizedProjectDir, collected);
532
560
  return collected;
533
561
  }
562
+ async function collectProjectFilesAsync(normalizedProjectDir) {
563
+ const collected = [];
564
+ await collectProjectSignatureFilesAsync(
565
+ normalizedProjectDir,
566
+ normalizedProjectDir,
567
+ collected,
568
+ readRenderOutputsOrNone(normalizedProjectDir)
569
+ );
570
+ collectProjectSignatureManifestFiles(normalizedProjectDir, collected);
571
+ return collected;
572
+ }
534
573
  function listProjectFiles(projectDir) {
535
574
  const normalizedProjectDir = resolve2(projectDir);
536
575
  return collectProjectFiles(normalizedProjectDir).map((entry) => ({
@@ -548,42 +587,73 @@ async function resolveProjectAndSignature(adapter, projectId) {
548
587
  if (!project) return null;
549
588
  return { project, signature: resolveProjectSignature(adapter, project.dir) };
550
589
  }
551
- function createProjectSignature(projectDir, excluding = /* @__PURE__ */ new Set()) {
552
- const normalizedProjectDir = resolve2(projectDir);
553
- const signedAt = Date.now();
554
- const collected = collectProjectFiles(normalizedProjectDir);
590
+ function planSignature(dir, collected, excluding, signedAt) {
555
591
  const files = collected.filter(
556
- (entry) => !excluding.has(relative2(normalizedProjectDir, entry.file).split(sep2).join("/"))
592
+ (entry) => !excluding.has(relative2(dir, entry.file).split(sep2).join("/"))
557
593
  );
558
594
  files.sort((a, b) => a.file.localeCompare(b.file));
559
- const fingerprint = createProjectFingerprint(normalizedProjectDir, files);
560
- const cacheKey = excluding.size ? `${normalizedProjectDir}\0${createHash2("sha256").update([...excluding].sort().join("\0")).digest("hex")}` : normalizedProjectDir;
561
- const cached = projectSignatureCache.get(cacheKey);
562
- if (cached?.fingerprint === fingerprint) return cached.signature;
595
+ const cacheKey = excluding.size ? `${dir}\0${createHash2("sha256").update([...excluding].sort().join("\0")).digest("hex")}` : dir;
596
+ return { dir, files, cacheKey, fingerprint: createProjectFingerprint(dir, files), signedAt };
597
+ }
598
+ function hashSignatureEntry(hash, dir, entry, content) {
599
+ hash.update(relative2(dir, entry.file));
600
+ hash.update("\0");
601
+ hash.update(String(entry.size));
602
+ hash.update("\0");
603
+ hash.update(content ?? String(entry.mtimeMs));
604
+ hash.update("\0");
605
+ }
606
+ function finishSignature(plan, hash) {
607
+ const signature = hash.digest("hex").slice(0, 24);
608
+ const settledATickBeforeSigning = plan.files.every(
609
+ (entry) => Math.max(entry.mtimeMs, entry.ctimeMs) < plan.signedAt - COARSEST_FILE_TIME_TICK_MS
610
+ );
611
+ if (settledATickBeforeSigning) {
612
+ projectSignatureCache.set(plan.cacheKey, { fingerprint: plan.fingerprint, signature });
613
+ }
614
+ return signature;
615
+ }
616
+ var cachedSignature = (plan) => {
617
+ const cached = projectSignatureCache.get(plan.cacheKey);
618
+ return cached?.fingerprint === plan.fingerprint ? cached.signature : void 0;
619
+ };
620
+ function createProjectSignature(projectDir, excluding = /* @__PURE__ */ new Set()) {
621
+ const dir = resolve2(projectDir);
622
+ const plan = planSignature(dir, collectProjectFiles(dir), excluding, Date.now());
623
+ const cached = cachedSignature(plan);
624
+ if (cached !== void 0) return cached;
563
625
  const hash = createHash2("sha256");
564
- for (const entry of files) {
565
- const relativePath = relative2(normalizedProjectDir, entry.file);
566
- hash.update(relativePath);
567
- hash.update("\0");
568
- hash.update(String(entry.size));
569
- hash.update("\0");
626
+ for (const entry of plan.files) {
627
+ let content = null;
570
628
  if (entry.textContentEligible) {
571
629
  try {
572
- hash.update(readFileSync3(entry.file));
630
+ content = readFileSync3(entry.file);
573
631
  } catch {
574
- hash.update(String(entry.mtimeMs));
632
+ content = null;
575
633
  }
576
- } else {
577
- hash.update(String(entry.mtimeMs));
578
634
  }
579
- hash.update("\0");
635
+ hashSignatureEntry(hash, dir, entry, content);
580
636
  }
581
- const signature = hash.digest("hex").slice(0, 24);
582
- const settledATickBeforeSigning = files.every(
583
- (entry) => Math.max(entry.mtimeMs, entry.ctimeMs) < signedAt - COARSEST_FILE_TIME_TICK_MS
584
- );
585
- if (settledATickBeforeSigning) projectSignatureCache.set(cacheKey, { fingerprint, signature });
586
- return signature;
637
+ return finishSignature(plan, hash);
638
+ }
639
+ var SIGNATURE_READ_BATCH = 32;
640
+ async function createProjectSignatureAsync(projectDir, excluding = /* @__PURE__ */ new Set()) {
641
+ const dir = resolve2(projectDir);
642
+ const signedAt = Date.now();
643
+ const plan = planSignature(dir, await collectProjectFilesAsync(dir), excluding, signedAt);
644
+ const cached = cachedSignature(plan);
645
+ if (cached !== void 0) return cached;
646
+ const hash = createHash2("sha256");
647
+ for (let at = 0; at < plan.files.length; at += SIGNATURE_READ_BATCH) {
648
+ const batch = plan.files.slice(at, at + SIGNATURE_READ_BATCH);
649
+ const contents = await Promise.all(
650
+ batch.map(
651
+ (entry) => entry.textContentEligible ? readFile(entry.file).catch(() => null) : null
652
+ )
653
+ );
654
+ for (const [i, entry] of batch.entries()) hashSignatureEntry(hash, dir, entry, contents[i]);
655
+ }
656
+ return finishSignature(plan, hash);
587
657
  }
588
658
  var serving = /* @__PURE__ */ new Map();
589
659
  var keyOf = (path) => process.platform === "win32" ? resolve3(path).toLowerCase() : resolve3(path);
@@ -614,7 +684,7 @@ function blobPath(dir, hash) {
614
684
  if (!BLOB_HASH.test(hash)) throw new Error("That is not a history blob.");
615
685
  return join2(dir, hash.slice(0, 2), hash);
616
686
  }
617
- var readBlob = (dir, hash) => readFile(blobPath(dir, hash));
687
+ var readBlob = (dir, hash) => readFile2(blobPath(dir, hash));
618
688
  async function hashFile(path) {
619
689
  const hash = createHash3("sha256");
620
690
  for await (const chunk of createReadStream(path)) hash.update(chunk);
@@ -667,7 +737,7 @@ async function writeInPlace(temp, to, hash) {
667
737
  if (outcome === "mismatch")
668
738
  throw new Error("The file was written in place, but it does not match the copy history kept.");
669
739
  }
670
- var listDir = (path) => readdir(path, { withFileTypes: true }).catch((error) => {
740
+ var listDir = (path) => readdir2(path, { withFileTypes: true }).catch((error) => {
671
741
  if (error.code === "ENOENT") return [];
672
742
  throw error;
673
743
  });
@@ -724,7 +794,7 @@ async function openBlobStore(dir) {
724
794
  },
725
795
  reference: (absPath) => hashFile(absPath),
726
796
  has: (hash) => sizes.has(hash) || asideSizes.has(hash),
727
- read: (hash) => readFile(pathOf(hash)),
797
+ read: (hash) => readFile2(pathOf(hash)),
728
798
  writeTo: async (hash, absPath, beforeReplace) => cloneOrCopy(pathOf(hash), absPath, hash, beforeReplace),
729
799
  async release(held) {
730
800
  for (const [hash, path] of held) {
@@ -785,7 +855,8 @@ var MEDIA_EXTENSIONS = /* @__PURE__ */ new Set([
785
855
  ".opus"
786
856
  ]);
787
857
  var COPY_NOTHING_ABOVE_BYTES = 64 * 1024 ** 2;
788
- var isUncopied = (path, size) => size > COPY_NOTHING_ABOVE_BYTES || MEDIA_EXTENSIONS.has(extname2(path).toLowerCase());
858
+ var isUncopiedMedia = (path) => MEDIA_EXTENSIONS.has(extname2(path).toLowerCase());
859
+ var isUncopied = (path, size) => size > COPY_NOTHING_ABOVE_BYTES || isUncopiedMedia(path);
789
860
  function uncopiedOnlyHashes(log, sizeOf) {
790
861
  const copied = /* @__PURE__ */ new Set();
791
862
  const uncopied = /* @__PURE__ */ new Set();
@@ -985,9 +1056,9 @@ function lastUsed(home) {
985
1056
  }
986
1057
  async function bytesIn(dir) {
987
1058
  let total = 0;
988
- for (const entry of await readdir2(dir, { withFileTypes: true })) {
1059
+ for (const entry of await readdir3(dir, { withFileTypes: true })) {
989
1060
  const path = join4(dir, entry.name);
990
- total += entry.isDirectory() ? await bytesIn(path) : (await lstat(path)).size;
1061
+ total += entry.isDirectory() ? await bytesIn(path) : (await lstat2(path)).size;
991
1062
  }
992
1063
  return total;
993
1064
  }
@@ -1755,7 +1826,7 @@ var isMissingFolder = (error) => ["ENOENT", "ENOTDIR"].includes(error.code ?? ""
1755
1826
  async function removeEmptyFolders(dir) {
1756
1827
  let entries;
1757
1828
  try {
1758
- entries = await readdir3(dir, { withFileTypes: true });
1829
+ entries = await readdir4(dir, { withFileTypes: true });
1759
1830
  } catch (error) {
1760
1831
  if (isMissingFolder(error)) return;
1761
1832
  throw error;
@@ -2627,7 +2698,7 @@ var Engine = class {
2627
2698
  const dest = resolve8(emptyDir);
2628
2699
  if (isWithin(this.dir, dest))
2629
2700
  throw new Error(`Checkout writes outside the project only: ${dest}`);
2630
- if ((await readdir3(dest).catch(missingIsEmpty)).length > 0)
2701
+ if ((await readdir4(dest).catch(missingIsEmpty)).length > 0)
2631
2702
  throw new Error(`Checkout writes into an empty folder only: ${dest}`);
2632
2703
  const files = manifestAround(this.log, entryId, side);
2633
2704
  for (const [path, hash] of files)
@@ -2636,7 +2707,7 @@ var Engine = class {
2636
2707
  try {
2637
2708
  for (const [path, hash] of files) await this.blobs.writeTo(hash, join8(dest, path));
2638
2709
  } catch (error) {
2639
- for (const name of await readdir3(dest).catch(() => []))
2710
+ for (const name of await readdir4(dest).catch(() => []))
2640
2711
  await rm3(join8(dest, name), { recursive: true, force: true });
2641
2712
  throw error;
2642
2713
  }
@@ -2837,8 +2908,10 @@ export {
2837
2908
  resolveProjectSignature,
2838
2909
  resolveProjectAndSignature,
2839
2910
  createProjectSignature,
2911
+ createProjectSignatureAsync,
2840
2912
  serveWhileOpen,
2841
2913
  onRestoredInPlace,
2914
+ isUncopiedMedia,
2842
2915
  HistoryIdError,
2843
2916
  listProjectHistories,
2844
2917
  pruneGoneProjectHistories,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeAudioTrack
9
- } from "./chunk-3F6EGZ6C.js";
9
+ } from "./chunk-QYRMR45H.js";
10
10
  import {
11
11
  resolveWithinProject
12
12
  } from "./chunk-ALVXFXUG.js";
@@ -14,18 +14,18 @@ import {
14
14
  MAX_AUDIO_GAIN_DB,
15
15
  formatAudioGain,
16
16
  isAudibleVideoElement
17
- } from "./chunk-2Q7XV4F6.js";
17
+ } from "./chunk-LL3VMDAC.js";
18
18
  import {
19
19
  findFfBinary
20
- } from "./chunk-BIROA7JM.js";
20
+ } from "./chunk-HYRPH6LL.js";
21
21
  import {
22
22
  decodeWellFormedEscapes,
23
23
  decodedUrlPath,
24
24
  readMediaOffsetSeconds
25
- } from "./chunk-KSC4O2RY.js";
25
+ } from "./chunk-C2KEGBR3.js";
26
26
  import {
27
27
  decodeAuthoredAttribute
28
- } from "./chunk-NHA4NRBE.js";
28
+ } from "./chunk-T5ELONXY.js";
29
29
 
30
30
  // ../studio-server/dist/chunk-H4NVSSDJ.js
31
31
  import { execFile } from "child_process";
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType
9
- } from "./chunk-MS2SDIPC.js";
9
+ } from "./chunk-WWT6ETQA.js";
10
10
  import {
11
11
  stripSdrPngColourTags
12
- } from "./chunk-KGM6VQ6D.js";
12
+ } from "./chunk-3RXZZIDQ.js";
13
13
  import {
14
14
  injectTagsAtHeadStart
15
- } from "./chunk-2Q7XV4F6.js";
15
+ } from "./chunk-LL3VMDAC.js";
16
16
 
17
17
  // src/utils/compositionServer.ts
18
18
  import { createHash } from "crypto";
@@ -8,13 +8,13 @@ import {
8
8
  DEFAULT_VP9_CPU_USED,
9
9
  isHttpUrl,
10
10
  runFfmpeg
11
- } from "./chunk-YMKTEQIA.js";
11
+ } from "./chunk-AIXH3V5A.js";
12
12
  import {
13
13
  renameWithRetry
14
14
  } from "./chunk-YWRUQ7XZ.js";
15
15
  import {
16
16
  parseAnimatedGifMetadata
17
- } from "./chunk-DA6GOIIA.js";
17
+ } from "./chunk-BDZSH6P3.js";
18
18
  import {
19
19
  parseHTML
20
20
  } from "./chunk-GWTIFRF5.js";