hyperframes 0.9.56 → 0.9.59

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 (428) hide show
  1. package/bin/hyperframes.mjs +3 -1
  2. package/dist/{add-KW7OTOWF.js → add-C7J7HSLI.js} +35 -31
  3. package/dist/{agentPromptGenerator-NNXUWNU4.js → agentPromptGenerator-GCLJUGVE.js} +18 -16
  4. package/dist/{animatedGifPrep-6ATQHQON.js → animatedGifPrep-JPQZPZC4.js} +20 -17
  5. package/dist/api.js +69 -67
  6. package/dist/{appHistory-KHX53SGI.js → appHistory-TQ6JAEP5.js} +7 -5
  7. package/dist/{asset-QVINGJRK.js → asset-HQEPGBDJ.js} +6 -5
  8. package/dist/{assetCataloger-DENJPUBH.js → assetCataloger-LMPPKPF6.js} +20 -18
  9. package/dist/{audio-LB7HQYPJ.js → audio-FD2EBZ6D.js} +45 -43
  10. package/dist/{auth-7AGRVI5A.js → auth-JA7XH6NG.js} +4 -4
  11. package/dist/{autoUpdate-ITCP2JDM.js → autoUpdate-WKW2OMIY.js} +6 -6
  12. package/dist/{avatars-2K2C74EQ.js → avatars-Q7U6CO4X.js} +30 -28
  13. package/dist/{backgroundChecks-UOTBCWPN.js → backgroundChecks-H2SOS2CM.js} +16 -9
  14. package/dist/backgroundChecksWorker.js +9 -9
  15. package/dist/{batchRender-Z7ESYQDS.js → batchRender-75OLVMZY.js} +18 -14
  16. package/dist/{beats-TG6ZB3XH.js → beats-R4EHWWJN.js} +21 -19
  17. package/dist/{benchmark-RU5MLZHE.js → benchmark-F5OHG3Q3.js} +34 -31
  18. package/dist/{billing-VB5PYYSN.js → billing-LBRSBVXQ.js} +49 -33
  19. package/dist/{browser-VSQRY5GG.js → browser-CNTCFZOG.js} +23 -21
  20. package/dist/{bundleWithLocalizedFonts-XDPJE355.js → bundleWithLocalizedFonts-RVF7AFP5.js} +1 -1
  21. package/dist/{capture-TQCFWPAT.js → capture-CTRZEZTC.js} +38 -15
  22. package/dist/{capture-M4FL7MWI.js → capture-DLYM3V5F.js} +51 -46
  23. package/dist/{captureCompositionFrame-XF67Q6YK.js → captureCompositionFrame-2O2HP6SK.js} +28 -26
  24. package/dist/{captureFile-F254H22J.js → captureFile-W7ZDDBCD.js} +5 -3
  25. package/dist/captureProxy-4K3J652A.js +23 -0
  26. package/dist/{catalog-24EGH662.js → catalog-6XL63LU3.js} +46 -40
  27. package/dist/{catch-up-L23HGDLB.js → catch-up-AOFQWE6O.js} +36 -27
  28. package/dist/{check-F4HQVV2M.js → check-5V7K4RL6.js} +71 -69
  29. package/dist/{checkAudio-6DT3ONR7.js → checkAudio-4YUTDQSQ.js} +29 -25
  30. package/dist/{checkBrowser-S7P4X7QV.js → checkBrowser-BAWRZZZU.js} +62 -60
  31. package/dist/{chunk-OXT2LXZB.js → chunk-2ARKMOCD.js} +8 -8
  32. package/dist/{chunk-VC4YMXUQ.js → chunk-2LJPBYKI.js} +1 -1
  33. package/dist/{chunk-YOMFN6HH.js → chunk-3DFEBAWJ.js} +3 -3
  34. package/dist/{chunk-4RPIEGL3.js → chunk-3JVTHNDH.js} +1 -1
  35. package/dist/{chunk-WUY74LHU.js → chunk-3QMGLSKC.js} +3 -3
  36. package/dist/{chunk-QJDMX53S.js → chunk-3RTZ2UX7.js} +1 -1
  37. package/dist/{chunk-BA33QNKK.js → chunk-4NDSGKPO.js} +54 -22
  38. package/dist/{chunk-VVXSMYXQ.js → chunk-4QSDXDLV.js} +3 -3
  39. package/dist/{chunk-WGWKT7ME.js → chunk-4STRMCGD.js} +12 -4
  40. package/dist/{chunk-IDGWNOBX.js → chunk-4VJQVTQI.js} +1 -1
  41. package/dist/{chunk-LK7F7P2X.js → chunk-5T6HPV25.js} +2 -2
  42. package/dist/{chunk-NCJSN6SV.js → chunk-65X2G57W.js} +24 -14
  43. package/dist/{chunk-RFULFCYW.js → chunk-6ATP7YPZ.js} +4 -4
  44. package/dist/{chunk-CPSD7337.js → chunk-6K6RIX2A.js} +9 -9
  45. package/dist/{chunk-PHAZT6EB.js → chunk-6LGB4MVX.js} +2 -2
  46. package/dist/{chunk-B6BWLFAF.js → chunk-6R4MEYWD.js} +3 -3
  47. package/dist/{chunk-UIMXEY4U.js → chunk-6UAYOSE7.js} +36 -21
  48. package/dist/{chunk-ZLTB7ZCQ.js → chunk-6VY52EVW.js} +1 -1
  49. package/dist/{chunk-GTC2STHN.js → chunk-6VY6WTY5.js} +22 -13
  50. package/dist/{chunk-QTZICZWT.js → chunk-763UG5II.js} +26 -23
  51. package/dist/{chunk-XEVAW42J.js → chunk-7CI5MLCC.js} +18 -18
  52. package/dist/{chunk-BZULWFMJ.js → chunk-7FIJRDUG.js} +45 -10
  53. package/dist/{chunk-R2LP7QPB.js → chunk-7Q4EGB3N.js} +1 -1
  54. package/dist/{chunk-ICDGP335.js → chunk-7XOORL2Q.js} +14 -14
  55. package/dist/{chunk-CKIYT34K.js → chunk-7YRZBB4C.js} +1 -1
  56. package/dist/{chunk-CNAOJ7XI.js → chunk-A7NRMVUG.js} +1 -1
  57. package/dist/{chunk-CDNVZEGQ.js → chunk-AEXDJU77.js} +5 -2
  58. package/dist/{chunk-TVZTTWU7.js → chunk-AQIHV4PM.js} +4 -4
  59. package/dist/{chunk-Q2TT62RQ.js → chunk-B653JKWT.js} +4 -4
  60. package/dist/{chunk-QNIID7EN.js → chunk-BMTT2T7M.js} +17 -7
  61. package/dist/{chunk-RCGNYXWK.js → chunk-BTXYXM2A.js} +64 -34
  62. package/dist/{chunk-664QGMR4.js → chunk-C3NDLM4S.js} +6 -6
  63. package/dist/{chunk-DUZ6Z2ZN.js → chunk-CAMD2NBN.js} +31 -23
  64. package/dist/{chunk-6LONEKJR.js → chunk-CC72LTIT.js} +2650 -2430
  65. package/dist/{chunk-L27Z3PZT.js → chunk-CIXP5G7Z.js} +1 -1
  66. package/dist/{chunk-AN6KWGYI.js → chunk-D44MBZI6.js} +2 -2
  67. package/dist/{chunk-VCSQLM36.js → chunk-DCRHNRUY.js} +9 -9
  68. package/dist/{chunk-BTJYK56C.js → chunk-DSCMYTKJ.js} +5 -5
  69. package/dist/{chunk-6RPKPL22.js → chunk-EGZQX3UX.js} +1 -1
  70. package/dist/{chunk-4DJGUZJR.js → chunk-ELDZ6C3R.js} +3 -3
  71. package/dist/{chunk-PCKKKICA.js → chunk-EUVU5JS4.js} +4 -4
  72. package/dist/{chunk-CWIOKI2R.js → chunk-FC77MYAD.js} +1 -1
  73. package/dist/{chunk-XKNNZ4WR.js → chunk-FFL5R2EZ.js} +7 -4
  74. package/dist/{chunk-BW4H55SU.js → chunk-FGJUVWAM.js} +1 -1
  75. package/dist/{chunk-BR7GOCQJ.js → chunk-FQ26QE5N.js} +1 -1
  76. package/dist/{chunk-BMVUB2CY.js → chunk-GMIFMRWR.js} +9 -9
  77. package/dist/{chunk-2GRCTZNS.js → chunk-GYJ7AJXN.js} +2 -2
  78. package/dist/{chunk-PPLFDG7N.js → chunk-H3TD4VKX.js} +3 -3
  79. package/dist/{chunk-YQSVPHOS.js → chunk-HLOJSBGC.js} +34 -17
  80. package/dist/chunk-HOIEN7O4.js +31 -0
  81. package/dist/{chunk-MYETYFDI.js → chunk-HTISHNLA.js} +2 -2
  82. package/dist/{chunk-DDCXMXAD.js → chunk-HXFGAI6L.js} +49 -249
  83. package/dist/{chunk-CUO2HF4M.js → chunk-HY7FPTBD.js} +2 -2
  84. package/dist/{chunk-I6V25IXG.js → chunk-HYXQR5I3.js} +2 -2
  85. package/dist/{chunk-PVF32NRA.js → chunk-I5H2FPNP.js} +2 -2
  86. package/dist/{chunk-L5NPBGQB.js → chunk-I6OSAVHD.js} +33 -29
  87. package/dist/{chunk-43CQTZGB.js → chunk-ISSG4PUD.js} +27 -14
  88. package/dist/{chunk-7QFFS657.js → chunk-J3H6QDDY.js} +1 -1
  89. package/dist/{chunk-UHVKV5IF.js → chunk-J4OHC5FU.js} +1 -1
  90. package/dist/{chunk-TY7EHE4Q.js → chunk-JLMMY3UI.js} +2 -2
  91. package/dist/{chunk-XLP34AJR.js → chunk-JQ7BPN2R.js} +20 -8
  92. package/dist/{chunk-JDXALWOM.js → chunk-JT7RXK2N.js} +59 -7
  93. package/dist/{chunk-7F4RAWDS.js → chunk-JUUOYXWH.js} +4 -4
  94. package/dist/{chunk-PUTPYYE4.js → chunk-K2WLOTTF.js} +5 -2
  95. package/dist/{chunk-D3WRRPHI.js → chunk-K33E3YNK.js} +11 -11
  96. package/dist/{chunk-OIO7YMBP.js → chunk-KGPHUBBA.js} +1 -1
  97. package/dist/chunk-KK5Z5XQ3.js +109 -0
  98. package/dist/{chunk-WHX2OV4C.js → chunk-KQHDFVFF.js} +3 -3
  99. package/dist/chunk-KUJJJBV2.js +211 -0
  100. package/dist/{chunk-CHCMXYER.js → chunk-KVIXXJLO.js} +1 -1
  101. package/dist/{chunk-YDNBMPP3.js → chunk-KYXH4JWF.js} +8 -8
  102. package/dist/{chunk-XD5T43S7.js → chunk-L456Q4KU.js} +1 -1
  103. package/dist/{chunk-EBRN4YJH.js → chunk-L4MXZHRB.js} +3 -3
  104. package/dist/{chunk-YTHXSYYB.js → chunk-LB6ZAP4I.js} +19 -11
  105. package/dist/{chunk-ADVVQX4I.js → chunk-LMNCEQCC.js} +4 -2
  106. package/dist/{chunk-IO7PRQQC.js → chunk-LSGJY2FG.js} +1 -1
  107. package/dist/{chunk-CLRHKYOK.js → chunk-LTOUXR3X.js} +8 -8
  108. package/dist/{chunk-5ZDNSYTO.js → chunk-LZWG4GCC.js} +3 -3
  109. package/dist/{chunk-UVPLW55S.js → chunk-MHF5F4FF.js} +69 -68
  110. package/dist/{chunk-52XHPMCX.js → chunk-MTKXKULM.js} +2 -2
  111. package/dist/{chunk-ON3CGL3V.js → chunk-MVA4OQL7.js} +2 -2
  112. package/dist/{chunk-6XRXUMFG.js → chunk-N6QWL3E7.js} +5 -2
  113. package/dist/{chunk-MCDNAIFF.js → chunk-NGRWDXRZ.js} +1 -1
  114. package/dist/chunk-NI7JVGOE.js +5083 -0
  115. package/dist/{chunk-IT2QBRVS.js → chunk-NLN5NY3P.js} +1 -1
  116. package/dist/{chunk-MDRLJ737.js → chunk-O733DEVT.js} +2 -2
  117. package/dist/{chunk-ANYW22IT.js → chunk-ODLSLYJR.js} +10 -4
  118. package/dist/{chunk-BZXW5QU7.js → chunk-OF7SQ77J.js} +1 -1
  119. package/dist/{chunk-D2LIT7UR.js → chunk-OH3MUFZG.js} +1 -1
  120. package/dist/{chunk-EGR2ZFFP.js → chunk-OPIS2YMA.js} +13 -11
  121. package/dist/{chunk-IHXMN5YH.js → chunk-ORKZUTZW.js} +2 -2
  122. package/dist/{chunk-HVG656G6.js → chunk-OV5OSN74.js} +6 -4
  123. package/dist/{chunk-MVLAPENI.js → chunk-OYKAS3J5.js} +3 -3
  124. package/dist/{chunk-XCJ2YYMV.js → chunk-P5M3IEXO.js} +1 -1
  125. package/dist/{chunk-CNXZCMJZ.js → chunk-PCHUX7Y5.js} +2 -2
  126. package/dist/{chunk-7QFLMCTD.js → chunk-PDT6CBK2.js} +37 -6
  127. package/dist/{chunk-AGTBMLNM.js → chunk-PHYFZXOS.js} +2 -2
  128. package/dist/{chunk-OSKSTJNQ.js → chunk-PJQVJSMG.js} +21 -12
  129. package/dist/{chunk-CZCZ5YXT.js → chunk-PLOCYJ5U.js} +1 -1
  130. package/dist/{chunk-NFST2HIM.js → chunk-PMKWTXHE.js} +2 -2
  131. package/dist/{chunk-APCVZGU6.js → chunk-POFQOZOF.js} +267 -81
  132. package/dist/{chunk-72GTIFAI.js → chunk-POVOGRMU.js} +2 -2
  133. package/dist/{chunk-ZIF44RW2.js → chunk-PSREPOJ4.js} +11 -8
  134. package/dist/{chunk-7DKWEIH4.js → chunk-PYRM3OAI.js} +31 -25
  135. package/dist/{chunk-X6JUUQCM.js → chunk-Q4FVSYTD.js} +5 -2
  136. package/dist/{chunk-T5HYPGST.js → chunk-QC35TPEE.js} +37 -13
  137. package/dist/{chunk-JQKCRTVQ.js → chunk-QHVE6AFU.js} +2 -2
  138. package/dist/{chunk-W4AR7UZH.js → chunk-QJ2BV7FM.js} +2 -2
  139. package/dist/{chunk-MP52CUHL.js → chunk-QKHW5NXL.js} +12 -6
  140. package/dist/{chunk-KRYXZVA2.js → chunk-QVHDAS3L.js} +5 -5
  141. package/dist/{chunk-5GSCSZOS.js → chunk-R3ONQOLE.js} +177 -55
  142. package/dist/{chunk-JPEIUGS5.js → chunk-RAOGN2HG.js} +2 -2
  143. package/dist/{chunk-LRWWCTSJ.js → chunk-RDWGNSVI.js} +2 -2
  144. package/dist/{chunk-LH5FRVAO.js → chunk-RHFB457E.js} +3 -3
  145. package/dist/{chunk-PGJYA6I3.js → chunk-RKIF4EU7.js} +77 -23
  146. package/dist/{chunk-B2WXMYMA.js → chunk-RPICLHBJ.js} +1 -1
  147. package/dist/{chunk-GWSMTN55.js → chunk-RX67N2PU.js} +55 -1
  148. package/dist/{chunk-7E7VKASF.js → chunk-SC7SX2I3.js} +20 -10
  149. package/dist/{chunk-RRT6URIP.js → chunk-SGQKP2JT.js} +4 -4
  150. package/dist/{chunk-CXFW7YPT.js → chunk-SO7FT7YA.js} +99 -77
  151. package/dist/chunk-SXCM6VY3.js +125 -0
  152. package/dist/{chunk-LKWWY6WN.js → chunk-T5QI7ZL2.js} +1 -1
  153. package/dist/{chunk-BAWGEGKD.js → chunk-TFAKFI3R.js} +4 -4
  154. package/dist/{chunk-3GVHDPEP.js → chunk-THGJTFYB.js} +42 -31
  155. package/dist/{chunk-EKSS3KI7.js → chunk-TIBFCGLT.js} +1 -1
  156. package/dist/{chunk-IHX3AFTY.js → chunk-TIZC4XKU.js} +8 -5
  157. package/dist/{chunk-WFB4XPJR.js → chunk-TJGGLLQJ.js} +13 -13
  158. package/dist/{chunk-MPOWSPBD.js → chunk-TNFTRLLJ.js} +4 -4
  159. package/dist/{chunk-YWH7HWDP.js → chunk-TVWDS5AT.js} +345 -331
  160. package/dist/{chunk-66W5IWLO.js → chunk-U7M4SZUB.js} +13 -2
  161. package/dist/{chunk-2ZOJCSLJ.js → chunk-UBNJWS2H.js} +74 -19
  162. package/dist/{chunk-PGHROSLJ.js → chunk-UNB2DFR2.js} +4 -4
  163. package/dist/{chunk-4GPKDDQZ.js → chunk-URHIQHDR.js} +15 -15
  164. package/dist/chunk-UVZIABYZ.js +40 -0
  165. package/dist/{chunk-OZDELWQP.js → chunk-VFGFXE6J.js} +1 -1
  166. package/dist/{chunk-QBADK3LD.js → chunk-VPPKUCSP.js} +3 -3
  167. package/dist/{chunk-EUP7ODOV.js → chunk-VXRTE7MZ.js} +1 -1
  168. package/dist/{chunk-YFWFCKKF.js → chunk-WDMSNDHS.js} +7646 -7450
  169. package/dist/{chunk-HOCV5AW6.js → chunk-WI3FM54X.js} +8 -4
  170. package/dist/{chunk-SEC76O65.js → chunk-WKE3WTIU.js} +1 -1
  171. package/dist/{chunk-SGWDJLFL.js → chunk-WQGDE3L6.js} +1 -1
  172. package/dist/{chunk-BPYNILOZ.js → chunk-WRSGWDDB.js} +11 -9
  173. package/dist/{chunk-DY7PQLIE.js → chunk-WTJZ5QFR.js} +42 -5
  174. package/dist/{chunk-FGGRBKWL.js → chunk-WTZT6FSK.js} +1 -1
  175. package/dist/{chunk-BUG5AOPJ.js → chunk-XWV6BOCG.js} +3 -3
  176. package/dist/{chunk-HCQXGGVY.js → chunk-XXJBWKDS.js} +241 -25
  177. package/dist/{chunk-4WSJ5MUN.js → chunk-XXOEYRD5.js} +5 -5
  178. package/dist/{chunk-IRZUZ32B.js → chunk-XZ6THYIK.js} +11 -5
  179. package/dist/{chunk-CBG6MIT2.js → chunk-YBYNBKCN.js} +2 -2
  180. package/dist/{chunk-7HQC5MDZ.js → chunk-YMKCJRVK.js} +1 -1
  181. package/dist/{chunk-CKIVYAKG.js → chunk-Z2U7ELGP.js} +3 -3
  182. package/dist/{chunk-L5CBCPUH.js → chunk-ZIYYSD6S.js} +44 -21
  183. package/dist/{chunk-Z72VXQPN.js → chunk-ZMLZRMG7.js} +2 -2
  184. package/dist/{chunk-LRQEIKFT.js → chunk-ZQIMO52O.js} +9 -9
  185. package/dist/{clean-VB6BH3FV.js → clean-Z5REUSNY.js} +43 -40
  186. package/dist/cli.js +123 -79
  187. package/dist/{cloud-7KRPD2K4.js → cloud-NJ7G3NF3.js} +4 -4
  188. package/dist/{cloud-A67BW6OH.js → cloud-QP5R6B6A.js} +11 -9
  189. package/dist/{cloudrun-VKBARVVT.js → cloudrun-CPAZLNTW.js} +16 -14
  190. package/dist/{compare-SE55PMC3.js → compare-T5CHD25P.js} +63 -60
  191. package/dist/{compiler-WK7ABGRW.js → compiler-QVDXN4OS.js} +9 -7
  192. package/dist/{component-XT2AT3RY.js → component-QMZ46KTE.js} +24 -7
  193. package/dist/{compositions-ZZWLQNDQ.js → compositions-JHYYNBAK.js} +29 -28
  194. package/dist/{contactSheet-MXOASCDR.js → contactSheet-7SPGUTDV.js} +8 -6
  195. package/dist/contract/path-policy.json +12 -2
  196. package/dist/{curve-4RQQKZ2K.js → curve-ON6QQY7T.js} +26 -24
  197. package/dist/{cuts-M3QU2CBE.js → cuts-K4FOVP4E.js} +27 -25
  198. package/dist/{delete-5ZZNPK5G.js → delete-6WFQ3FC2.js} +22 -20
  199. package/dist/{deploy-VR5SQP4U.js → deploy-UAZQ5PBA.js} +18 -15
  200. package/dist/{describeProject-NU5BVVIA.js → describeProject-7W6BN5A2.js} +18 -16
  201. package/dist/{destroy-FFS62PAW.js → destroy-4B4OVPHJ.js} +17 -14
  202. package/dist/{deterministicFonts-FQQNGORI.js → deterministicFonts-VLIVGXUQ.js} +8 -6
  203. package/dist/{diff-NQGTF6GR.js → diff-ZSA37QQS.js} +295 -106
  204. package/dist/{dist-B7IBHWIW.js → dist-2O52E7QZ.js} +21 -18
  205. package/dist/{dist-APXZ5EN2.js → dist-ACT5C6ME.js} +5 -4
  206. package/dist/{dist-6GYOC3BU.js → dist-VRYZIJFZ.js} +14 -5
  207. package/dist/{docs-YTM4NX2R.js → docs-3OAPSKPG.js} +1 -1
  208. package/dist/{doctor-FATJGTPD.js → doctor-RXQ2Y2YY.js} +30 -28
  209. package/dist/{energy-PHDK6SKL.js → energy-DRA3DCRO.js} +27 -25
  210. package/dist/{events-OIWXSBZA.js → events-4SNBQE3M.js} +29 -27
  211. package/dist/{events-25VQ2O66.js → events-AJNF2C3H.js} +16 -14
  212. package/dist/{events-RXVHG2NT.js → events-GA3YM3WT.js} +9 -9
  213. package/dist/{execute-MKP4Z573.js → execute-6LTZRWE4.js} +53 -51
  214. package/dist/{extract-YYNYXPOC.js → extract-XZQN654B.js} +30 -28
  215. package/dist/{face-JSTMFQRM.js → face-RKUNVSN3.js} +28 -26
  216. package/dist/{feedback-PY6LMZCX.js → feedback-AL7NPPMZ.js} +33 -30
  217. package/dist/{ffmpeg-KLIB55FK.js → ffmpeg-BEL7EZBA.js} +18 -16
  218. package/dist/{figma-ACFOXVPM.js → figma-IZ3NH2KZ.js} +3 -3
  219. package/dist/fontLocalizeCli.js +26 -23
  220. package/dist/{frames-BLZCBXO7.js → frames-AYE53CSZ.js} +29 -27
  221. package/dist/{generate-DMVEKZEV.js → generate-BZ4EVVQI.js} +47 -45
  222. package/dist/{get-3WZDQ5YM.js → get-2GG4NSOK.js} +18 -16
  223. package/dist/{gpuPolicy-TT6UCOLQ.js → gpuPolicy-W2ZGBXNG.js} +17 -15
  224. package/dist/{grade-compare-F5DJ53XH.js → grade-compare-65NWHVXK.js} +65 -62
  225. package/dist/{gsapParserAcorn-SKGP4R4N.js → gsapParserAcorn-RODCGO2L.js} +1 -1
  226. package/dist/hangReport.js +2 -2
  227. package/dist/{heifImagePrep-UV23RWOG.js → heifImagePrep-MRQ4KKDF.js} +21 -18
  228. package/dist/{help-QMP5KFYW.js → help-TEQWNNPI.js} +2 -2
  229. package/dist/{history-UOZ4RDEZ.js → history-MVNPETRW.js} +32 -29
  230. package/dist/hyperframe.manifest.json +1 -1
  231. package/dist/hyperframe.runtime.iife.js +67 -67
  232. package/dist/hyperframes-player.global.js +14 -6
  233. package/dist/{index-gen-OPMQ5WSN.js → index-gen-3DWPA4FO.js} +14 -12
  234. package/dist/{info-A6KSO64E.js → info-NGNTHWYX.js} +34 -33
  235. package/dist/{init-OQU46K3Q.js → init-H7SUGVZX.js} +58 -54
  236. package/dist/{ink-HGRKLGII.js → ink-CPZ4YZFM.js} +27 -25
  237. package/dist/{inspect-BKENKUXF.js → inspect-GZBQ7XN7.js} +63 -57
  238. package/dist/{installer-Z6FTR7BJ.js → installer-ZTHYVK4L.js} +12 -10
  239. package/dist/{keyframes-UDQGWKPW.js → keyframes-B52LQUOI.js} +96 -48
  240. package/dist/{lambda-SHXQFHLE.js → lambda-SZDQJMKA.js} +31 -29
  241. package/dist/{layout-CJAVQ4D3.js → layout-BOUOG2D2.js} +63 -59
  242. package/dist/{lint-RAPNYPWS.js → lint-H4OWI5JN.js} +26 -25
  243. package/dist/{lintProject-JZRM7UKH.js → lintProject-P4EAXFU2.js} +5 -4
  244. package/dist/{list-4BKFMJQN.js → list-VNEYACGL.js} +21 -19
  245. package/dist/{localPage-BJW2TP77.js → localPage-ZP7WVA2N.js} +18 -16
  246. package/dist/{login-S5VZAGCI.js → login-RUDOUO5Z.js} +10 -10
  247. package/dist/{logout-CCATTNTL.js → logout-5ZO6ZNS3.js} +5 -5
  248. package/dist/{look-V2I6BGUY.js → look-G3NVPKXZ.js} +27 -25
  249. package/dist/{manager-WQWU5VJ4.js → manager-KWNID2ZA.js} +6 -6
  250. package/dist/{manager-OS2FYJI5.js → manager-NXH2NJC6.js} +19 -17
  251. package/dist/{manifest-QSJYVERU.js → manifest-TSKRUXZ5.js} +5 -1
  252. package/dist/{measure-RO5R2SUZ.js → measure-5PVIZ2W2.js} +11 -11
  253. package/dist/{media-treatment-CS7BVMJW.js → media-treatment-T5QJI4PQ.js} +37 -31
  254. package/dist/{media-use-W3DGCKFB.js → media-use-RTN3SMVY.js} +9 -9
  255. package/dist/{models-ZOGYW2SC.js → models-J2CJ7EVX.js} +30 -28
  256. package/dist/{motionShot-IMRI7W7T.js → motionShot-HU7P26WJ.js} +45 -35
  257. package/dist/{normalize-PGMS24I2.js → normalize-44E7R6T5.js} +5 -1
  258. package/dist/{normalize-audio-HXTFAZUK.js → normalize-audio-2YFTP2T6.js} +25 -22
  259. package/dist/{oauth-SAVP2YM4.js → oauth-E5QBYYTX.js} +3 -3
  260. package/dist/{open-LJDQ37KV.js → open-RSCNUV6E.js} +36 -33
  261. package/dist/{parakeetRunner-CKMSKDH6.js → parakeetRunner-BUY25EIR.js} +29 -27
  262. package/dist/{pipeline-ZNCYOTUH.js → pipeline-A4RL5R5P.js} +23 -21
  263. package/dist/{plan-NCFS5T6W.js → plan-7WYNPILA.js} +40 -38
  264. package/dist/{play-5UZDFFXJ.js → play-UKHFNMYZ.js} +52 -48
  265. package/dist/{policies-5RUNO47I.js → policies-XG6OTGQC.js} +2 -2
  266. package/dist/{preflight-H5XYFKFF.js → preflight-2VFCT3PI.js} +21 -19
  267. package/dist/{present-EFXUFT5Y.js → present-ZUGFCQOF.js} +43 -39
  268. package/dist/{preview-RV7ALGDQ.js → preview-BT2ZFYMC.js} +55 -53
  269. package/dist/{probe-UB6DM2Q3.js → probe-2CLEK2UT.js} +27 -25
  270. package/dist/{producer-2PKB5CW5.js → producer-HCAMS55D.js} +1 -1
  271. package/dist/{progress-S36VQBQW.js → progress-5A4N7PTR.js} +7 -4
  272. package/dist/{projectConfig-EUH5DILC.js → projectConfig-2KJ2PXIM.js} +15 -13
  273. package/dist/{prompts-7VQEH645.js → prompts-XC3IBT4D.js} +2 -2
  274. package/dist/{publicNetwork-GW7SVP7N.js → publicNetwork-66HWFKYG.js} +3 -1
  275. package/dist/{publication-VI2AXXKR.js → publication-AR63EGJF.js} +9 -7
  276. package/dist/{publish-225GB7R4.js → publish-EGKYOJWV.js} +78 -67
  277. package/dist/{refresh-X5ZLKQO5.js → refresh-GYRLZ7DZ.js} +5 -5
  278. package/dist/{remove-background-W2RLEQHJ.js → remove-background-IQQPMM24.js} +27 -25
  279. package/dist/{render-KXKBSNOQ.js → render-HJRMJYTA.js} +16 -13
  280. package/dist/{render-Y3JKWEN4.js → render-ROJ5X53T.js} +69 -66
  281. package/dist/{render-WMWCCMWI.js → render-YNSZYEEK.js} +101 -91
  282. package/dist/{render-batch-GK6CDHKN.js → render-batch-MXYDIHRO.js} +20 -16
  283. package/dist/renderSetupWorker.js +21 -11
  284. package/dist/{resolver-5CRZD5XB.js → resolver-SPLAVF76.js} +12 -10
  285. package/dist/{reverse-YPYKKQSJ.js → reverse-CE6OGBB7.js} +1 -1
  286. package/dist/{run-FQ76QNES.js → run-YVNJJL26.js} +15 -13
  287. package/dist/runtimeVersion.js +6 -1
  288. package/dist/{sam-A4NXDWSU.js → sam-2D3BUTL7.js} +5 -5
  289. package/dist/{screenshotCapture-R6VE66NR.js → screenshotCapture-DRO7VMNI.js} +20 -18
  290. package/dist/{service-P3IKHZFC.js → service-K65JYG4O.js} +30 -27
  291. package/dist/{share-BU4VQL3B.js → share-CSVWF6SB.js} +38 -35
  292. package/dist/{sherpa-44GLXY3A.js → sherpa-JE6AFUEV.js} +28 -26
  293. package/dist/sherpaWorker.js +7 -5
  294. package/dist/{sites-TAX3JLNX.js → sites-QCGTWVNF.js} +9 -5
  295. package/dist/skills/hyperframes/references/plugin-installation.md +12 -0
  296. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +47 -9
  297. package/dist/skills/hyperframes-cli/references/lambda.md +1 -1
  298. package/dist/skills/media-use/audio/scripts/audio.mjs +24 -7
  299. package/dist/skills/media-use/audio/scripts/carve.mjs +10 -82
  300. package/dist/skills/media-use/audio/scripts/lib/audio-carve.mjs +4 -0
  301. package/dist/skills/media-use/audio/scripts/lib/media-record.mjs +25 -7
  302. package/dist/skills/media-use/audio/scripts/lib/project-path.mjs +56 -0
  303. package/dist/skills/media-use/audio/scripts/lib/recording.mjs +66 -3
  304. package/dist/skills/media-use/audio/scripts/wait-bgm.mjs +12 -7
  305. package/dist/skills/media-use/references/audio.md +2 -2
  306. package/dist/skills/media-use/references/mixing.md +1 -1
  307. package/dist/skills/media-use/scripts/lib/credit-limit.d.mts +1 -1
  308. package/dist/skills/media-use/scripts/lib/credit-limit.mjs +14 -9
  309. package/dist/skills/media-use/scripts/lib/index-gen.mjs +13 -11
  310. package/dist/skills/media-use/scripts/lib/manifest.mjs +51 -4
  311. package/dist/{skills-H4OZQ6VR.js → skills-L3BXM7VJ.js} +22 -20
  312. package/dist/{skillsUpdateCheck-U3XZX7UE.js → skillsUpdateCheck-VUENI5OR.js} +7 -7
  313. package/dist/{snapshot-FJQVXBFB.js → snapshot-GI2GWIF6.js} +121 -99
  314. package/dist/{src-PAM5LJ6K.js → src-B646B52O.js} +36 -22
  315. package/dist/{src-O6BHCR4O.js → src-ZXZO5RCJ.js} +30 -27
  316. package/dist/{start-R7CYOQ5S.js → start-ZNGKXRNE.js} +46 -44
  317. package/dist/{state-YFRV6TQH.js → state-7CJBWHXJ.js} +7 -4
  318. package/dist/{staticProjectServer-4X2OSUN4.js → staticProjectServer-46T6YTPF.js} +35 -32
  319. package/dist/{status-VN3FAN4M.js → status-7SWTPLVI.js} +43 -39
  320. package/dist/studio/assets/hyperframes-player-bya4hgms.js +573 -0
  321. package/dist/studio/assets/{index-yuN1pZrv.js → index--dcfSUzI.js} +1 -1
  322. package/dist/studio/assets/{index-CgyBYe2L.js → index-Bxh5lW0C.js} +178 -178
  323. package/dist/studio/assets/{pausedVideoDecoder-DtvSF8bV.js → pausedVideoDecoder-BKym1jA6.js} +1 -1
  324. package/dist/studio/index.html +1 -1
  325. package/dist/{studio-api-V3TMIWFB.js → studio-api-4XKM5HDR.js} +21 -18
  326. package/dist/{studioServer-GY2ZTR2E.js → studioServer-4TWRIZNU.js} +206 -139
  327. package/dist/subCompositionWorker.js +1163 -0
  328. package/dist/{sync-2V3JYCDE.js → sync-R3K6LYB3.js} +27 -25
  329. package/dist/{synthesize-TQELPMS5.js → synthesize-OZ3SJTOF.js} +22 -12
  330. package/dist/{system-2YOII5LZ.js → system-LZ4PMOJD.js} +3 -3
  331. package/dist/{telemetry-M722DCXI.js → telemetry-UC4MSMG3.js} +1 -1
  332. package/dist/{telemetry-KMRZ3IJV.js → telemetry-WSBY25O3.js} +16 -14
  333. package/dist/{templates-EEFY4FPS.js → templates-ITP6ISAF.js} +41 -33
  334. package/dist/{timeline-HSRGYZ3Q.js → timeline-U7GJMYKV.js} +51 -44
  335. package/dist/{tokens-NYFORL53.js → tokens-3YTSUU27.js} +6 -5
  336. package/dist/{transcribe-GFFWRWK3.js → transcribe-ISCBYWN4.js} +24 -22
  337. package/dist/{transcribe-CNIQYQ52.js → transcribe-QHHY5M3G.js} +58 -56
  338. package/dist/{tts-NPMDYSXP.js → tts-24IJXIT2.js} +9 -9
  339. package/dist/{update-BDMPUNNA.js → update-SVEH2GOL.js} +25 -23
  340. package/dist/{updateCheck-43UZ2USJ.js → updateCheck-MDG7N7VO.js} +6 -6
  341. package/dist/{upgrade-Z5B57UWL.js → upgrade-6CGAI4OR.js} +12 -10
  342. package/dist/{urlDownloader-KDZ76BKM.js → urlDownloader-VPQTIGEH.js} +16 -14
  343. package/dist/{validate-UQKZNR5K.js → validate-QUB4KCEQ.js} +50 -43
  344. package/dist/{video-VR4363OG.js → video-PUGZ5UHS.js} +37 -30
  345. package/dist/{voices-GUWAM3TH.js → voices-4UO5AYLS.js} +44 -42
  346. package/dist/warmCheck.js +72 -70
  347. package/dist/warmCheckClient.js +4 -4
  348. package/package.json +1 -1
  349. package/dist/chunk-56T2OGYR.js +0 -5085
  350. package/dist/chunk-IJYIIHGK.js +0 -21
  351. package/dist/chunk-JOQR4AP6.js +0 -22
  352. package/dist/chunk-MK4RH5L7.js +0 -81
  353. package/dist/skills/hyperframes/scripts/lib/main-module.test.mjs +0 -46
  354. package/dist/skills/hyperframes/scripts/lib/windows-exe-search.test.mjs +0 -149
  355. package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +0 -231
  356. package/dist/skills/media-use/audio/scripts/audio.test.mjs +0 -166
  357. package/dist/skills/media-use/audio/scripts/carve.test.mjs +0 -254
  358. package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +0 -131
  359. package/dist/skills/media-use/audio/scripts/heygen-tts.test.mjs +0 -38
  360. package/dist/skills/media-use/audio/scripts/heygen-voice.test.mjs +0 -233
  361. package/dist/skills/media-use/audio/scripts/lib/audio-meta.test.mjs +0 -136
  362. package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +0 -135
  363. package/dist/skills/media-use/audio/scripts/lib/concurrency.test.mjs +0 -41
  364. package/dist/skills/media-use/audio/scripts/lib/gemini-auth.test.mjs +0 -86
  365. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +0 -253
  366. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +0 -627
  367. package/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +0 -239
  368. package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +0 -198
  369. package/dist/skills/media-use/audio/scripts/lib/sfx.test.mjs +0 -331
  370. package/dist/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +0 -181
  371. package/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +0 -183
  372. package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +0 -280
  373. package/dist/skills/media-use/audio/scripts/lib/voice-credit.test.mjs +0 -21
  374. package/dist/skills/media-use/audio/scripts/recording.test.mjs +0 -139
  375. package/dist/skills/media-use/audio/scripts/trusted-program.test.mjs +0 -106
  376. package/dist/skills/media-use/audio/scripts/wait-bgm.test.mjs +0 -108
  377. package/dist/skills/media-use/scripts/compatibility.test.mjs +0 -41
  378. package/dist/skills/media-use/scripts/dither.test.mjs +0 -176
  379. package/dist/skills/media-use/scripts/lib/adopt.test.mjs +0 -143
  380. package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +0 -178
  381. package/dist/skills/media-use/scripts/lib/cache.test.mjs +0 -110
  382. package/dist/skills/media-use/scripts/lib/candidates.test.mjs +0 -155
  383. package/dist/skills/media-use/scripts/lib/codex-provider.test.mjs +0 -34
  384. package/dist/skills/media-use/scripts/lib/config-lock.test.mjs +0 -79
  385. package/dist/skills/media-use/scripts/lib/coverage.test.mjs +0 -136
  386. package/dist/skills/media-use/scripts/lib/credit-limit.test.mjs +0 -39
  387. package/dist/skills/media-use/scripts/lib/cube-build.test.mjs +0 -80
  388. package/dist/skills/media-use/scripts/lib/cube-validate.test.mjs +0 -130
  389. package/dist/skills/media-use/scripts/lib/cutlist.test.mjs +0 -174
  390. package/dist/skills/media-use/scripts/lib/duck.test.mjs +0 -319
  391. package/dist/skills/media-use/scripts/lib/error-diffusion.test.mjs +0 -102
  392. package/dist/skills/media-use/scripts/lib/freeze.test.mjs +0 -138
  393. package/dist/skills/media-use/scripts/lib/grade-analyzer.test.mjs +0 -285
  394. package/dist/skills/media-use/scripts/lib/heygen-cli.test.mjs +0 -315
  395. package/dist/skills/media-use/scripts/lib/heygen-search.test.mjs +0 -49
  396. package/dist/skills/media-use/scripts/lib/heygen-video-provider.test.mjs +0 -435
  397. package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +0 -92
  398. package/dist/skills/media-use/scripts/lib/local-models.test.mjs +0 -220
  399. package/dist/skills/media-use/scripts/lib/local-run.test.mjs +0 -121
  400. package/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +0 -312
  401. package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +0 -331
  402. package/dist/skills/media-use/scripts/lib/lut-preset-provider.test.mjs +0 -199
  403. package/dist/skills/media-use/scripts/lib/manifest.test.mjs +0 -397
  404. package/dist/skills/media-use/scripts/lib/media-fetch.test.mjs +0 -197
  405. package/dist/skills/media-use/scripts/lib/media-home.test.mjs +0 -61
  406. package/dist/skills/media-use/scripts/lib/mflux-provider.test.mjs +0 -174
  407. package/dist/skills/media-use/scripts/lib/misses.test.mjs +0 -89
  408. package/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +0 -41
  409. package/dist/skills/media-use/scripts/lib/openverse.test.mjs +0 -219
  410. package/dist/skills/media-use/scripts/lib/parakeet-words.test.mjs +0 -44
  411. package/dist/skills/media-use/scripts/lib/prefs-store.concurrent.test.mjs +0 -173
  412. package/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +0 -245
  413. package/dist/skills/media-use/scripts/lib/probe.test.mjs +0 -221
  414. package/dist/skills/media-use/scripts/lib/recipe-store.test.mjs +0 -391
  415. package/dist/skills/media-use/scripts/lib/registry.test.mjs +0 -261
  416. package/dist/skills/media-use/scripts/lib/search.test.mjs +0 -32
  417. package/dist/skills/media-use/scripts/lib/specs.test.mjs +0 -157
  418. package/dist/skills/media-use/scripts/lib/stats.test.mjs +0 -165
  419. package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +0 -550
  420. package/dist/skills/media-use/scripts/lib/test-home.test.mjs +0 -10
  421. package/dist/skills/media-use/scripts/lib/transcriptCutFade.test.mjs +0 -33
  422. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +0 -59
  423. package/dist/skills/media-use/scripts/lib/usage.test.mjs +0 -54
  424. package/dist/skills/media-use/scripts/lib/voice-provider.test.mjs +0 -46
  425. package/dist/skills/media-use/scripts/resolve-plugin.test.mjs +0 -86
  426. package/dist/skills/media-use/scripts/transcribe.test.mjs +0 -215
  427. package/dist/skills/media-use/scripts/transcript-cut.test.mjs +0 -341
  428. package/dist/studio/assets/hyperframes-player-SRLbmEDB.js +0 -565
@@ -5,11 +5,13 @@ var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
- isProjectIgnoredDir,
9
8
  mkdirOwnedWithinProject,
10
9
  pinProjectRecord,
11
10
  realFilePath
12
- } from "./chunk-3GVHDPEP.js";
11
+ } from "./chunk-THGJTFYB.js";
12
+ import {
13
+ isProjectIgnoredDir
14
+ } from "./chunk-HOIEN7O4.js";
13
15
  import {
14
16
  atomicTempPath,
15
17
  cannotHardLink,
@@ -18,38 +20,25 @@ import {
18
20
  refuseReadOnly,
19
21
  renameWithRetryAsync,
20
22
  replaceFileAtomically
21
- } from "./chunk-PUTPYYE4.js";
23
+ } from "./chunk-K2WLOTTF.js";
22
24
  import {
23
25
  isSafePath,
24
26
  realProjectRoot,
25
27
  realpath
26
- } from "./chunk-UVPLW55S.js";
28
+ } from "./chunk-MHF5F4FF.js";
27
29
  import {
28
30
  namesAnotherNetworkRoot
29
31
  } from "./chunk-6EMFSRTW.js";
32
+ import {
33
+ isStudioPrivatePath
34
+ } from "./chunk-KK5Z5XQ3.js";
30
35
  import {
31
36
  hyperframesCacheDir
32
- } from "./chunk-JOQR4AP6.js";
37
+ } from "./chunk-KUJJJBV2.js";
33
38
 
34
- // ../studio-server/dist/chunk-LUUWFSIH.js
35
- import { randomUUID as randomUUID7 } from "crypto";
36
- import { mkdir as mkdir2, readdir as readdir4, rm as rm3, rmdir, stat as stat2, writeFile as writeFile2 } from "fs/promises";
37
- import {
38
- existsSync as existsSync4,
39
- lstatSync as lstatSync5,
40
- statSync as statSync5,
41
- mkdirSync as mkdirSync6,
42
- readdirSync as readdirSync4,
43
- readFileSync as readFileSync9,
44
- realpathSync,
45
- rmSync as rmSync4
46
- } from "fs";
47
- import { basename as basename4, dirname as dirname6, isAbsolute as isAbsolute5, join as join9, relative as relative5, resolve as resolve8, sep as sep5 } from "path";
48
- import { createHash, randomUUID } from "crypto";
49
- import { readFileSync as readFileSync2 } from "fs";
50
- import { isAbsolute, relative, resolve, sep } from "path";
39
+ // ../studio-server/dist/chunk-XH6BBN23.js
51
40
  import { spawnSync } from "child_process";
52
- import { randomUUID as randomUUID2 } from "crypto";
41
+ import { randomUUID } from "crypto";
53
42
  import {
54
43
  closeSync,
55
44
  constants,
@@ -64,148 +53,14 @@ import {
64
53
  } from "fs";
65
54
  import { uptime } from "os";
66
55
  import { join } from "path";
67
- import { createHash as createHash2 } from "crypto";
56
+ import { readFileSync as readFileSync2 } from "fs";
57
+ import { isAbsolute, relative, resolve, sep } from "path";
58
+ import { createHash } from "crypto";
68
59
  import { lstatSync, readFileSync as readFileSync3, readdirSync } from "fs";
69
60
  import { lstat, readFile, readdir } from "fs/promises";
70
61
  import { extname, isAbsolute as isAbsolute2, relative as relative2, resolve as resolve2, sep as sep2 } from "path";
71
- import { createHash as createHash3, randomUUID as randomUUID3 } from "crypto";
72
- import { constants as constants2, createReadStream, createWriteStream } from "fs";
73
- import {
74
- chmod,
75
- copyFile,
76
- mkdir,
77
- open,
78
- readdir as readdir2,
79
- readFile as readFile2,
80
- rename,
81
- rm,
82
- stat,
83
- writeFile
84
- } from "fs/promises";
85
- import { basename as basename2, dirname as dirname2, join as join3 } from "path";
86
- import { pipeline } from "stream/promises";
62
+ import { createHash as createHash2, randomUUID as randomUUID2 } from "crypto";
87
63
  import { resolve as resolve3 } from "path";
88
- import { lstatSync as lstatSync2, mkdirSync as mkdirSync2, renameSync, rmdirSync, rmSync as rmSync2 } from "fs";
89
- import { basename, dirname, join as join2 } from "path";
90
- import { extname as extname2 } from "path";
91
- import { randomUUID as randomUUID5 } from "crypto";
92
- import { readdirSync as readdirSync2, renameSync as renameSync2, statSync as statSync3 } from "fs";
93
- import { lstat as lstat2, readdir as readdir3, rm as rm2 } from "fs/promises";
94
- import { tmpdir } from "os";
95
- import { dirname as dirname3, join as join5 } from "path";
96
- import { randomUUID as randomUUID4 } from "crypto";
97
- import { existsSync, mkdirSync as mkdirSync3, readFileSync as readFileSync4, statSync as statSync2, utimesSync } from "fs";
98
- import { basename as basename3, join as join4, resolve as resolve4 } from "path";
99
- import { createHash as createHash5, randomUUID as randomUUID6 } from "crypto";
100
- import { createReadStream as createReadStream2, existsSync as existsSync3, readFileSync as readFileSync7, renameSync as renameSync3, statSync as statSync4 } from "fs";
101
- import { isAbsolute as isAbsolute4, join as join8, resolve as resolve7 } from "path";
102
- import { createHash as createHash4 } from "crypto";
103
- import {
104
- closeSync as closeSync2,
105
- constants as constants3,
106
- existsSync as existsSync2,
107
- fstatSync as fstatSync2,
108
- lstatSync as lstatSync3,
109
- openSync as openSync2,
110
- readFileSync as readFileSync5,
111
- unlinkSync
112
- } from "fs";
113
- import { isAbsolute as isAbsolute3, join as join6, parse, relative as relative3, resolve as resolve5, sep as sep3 } from "path";
114
- import {
115
- closeSync as closeSync3,
116
- constants as constants4,
117
- fstatSync as fstatSync3,
118
- lstatSync as lstatSync4,
119
- openSync as openSync3,
120
- mkdirSync as mkdirSync4,
121
- readFileSync as readFileSync6,
122
- readdirSync as readdirSync3,
123
- rmSync as rmSync3,
124
- ftruncateSync,
125
- writeSync,
126
- writeFileSync as writeFileSync2
127
- } from "fs";
128
- import { dirname as dirname4, join as join7, relative as relative4, resolve as resolve6, sep as sep4 } from "path";
129
- import { closeSync as closeSync4, constants as constants5, mkdirSync as mkdirSync5, openSync as openSync4, readFileSync as readFileSync8, writeSync as writeSync2 } from "fs";
130
- import { dirname as dirname5 } from "path";
131
- import { readdirSync as readdirSync5 } from "fs";
132
- import { rm as rm4, stat as stat3 } from "fs/promises";
133
- import { join as join10 } from "path";
134
- var RECEIPT_TTL_MS = 1e4;
135
- var receipts = /* @__PURE__ */ new Map();
136
- var overwriteListeners = /* @__PURE__ */ new Set();
137
- function fileContentVersion(content) {
138
- return hashVersion(createHash("sha256").update(content).digest("hex"));
139
- }
140
- var DELETED_VERSION = '"deleted"';
141
- function hashVersion(hex) {
142
- return `"sha256:${hex}"`;
143
- }
144
- function hashOfVersion(version) {
145
- return /^"sha256:([0-9a-f]{64})"$/.exec(version)?.[1];
146
- }
147
- function settledFileTag(stat4, now = Date.now()) {
148
- if (now - stat4.ctimeMs < 3e3) return null;
149
- return [stat4.ino, stat4.ctimeMs, stat4.size].map((n) => n.toString(36)).join("-");
150
- }
151
- function createWriteToken(requestToken) {
152
- const token = requestToken?.trim();
153
- return token && token.length <= 200 ? token : randomUUID();
154
- }
155
- function onFileOverwritten(listener) {
156
- overwriteListeners.add(listener);
157
- return () => overwriteListeners.delete(listener);
158
- }
159
- function recordFileWriteReceipt(filePath, {
160
- overwrote,
161
- path,
162
- version,
163
- writeToken
164
- }) {
165
- const receipt = { path, version, writeToken };
166
- const absPath = realFilePath(filePath);
167
- if (overwrote !== void 0)
168
- for (const listener of overwriteListeners) listener(absPath, receipt.version, overwrote);
169
- const now = Date.now();
170
- for (const [path2, list] of receipts) {
171
- const live = list.filter((entry) => now - entry.recordedAt < RECEIPT_TTL_MS);
172
- if (live.length > 0) receipts.set(path2, live);
173
- else receipts.delete(path2);
174
- }
175
- const from = overwrote === void 0 ? void 0 : fileContentVersion(overwrote);
176
- receipts.set(absPath, [
177
- ...receipts.get(absPath) ?? [],
178
- { ...receipt, ...from && { from }, recordedAt: now }
179
- ]);
180
- }
181
- function clearFileWriteReceipt(filePath, version, writeToken) {
182
- const absPath = realFilePath(filePath);
183
- const current = (receipts.get(absPath) ?? []).filter(
184
- (entry) => entry.version !== version || entry.writeToken !== writeToken
185
- );
186
- if (current.length > 0) receipts.set(absPath, current);
187
- else receipts.delete(absPath);
188
- }
189
- function identifyFileWrite(filePath, expectedVersion) {
190
- const receipt = newestReceipt(realFilePath(filePath), expectedVersion);
191
- if (!receipt) return null;
192
- const { path, version, writeToken, from } = receipt;
193
- return { path, version, writeToken, ...from && { from } };
194
- }
195
- function newestReceipt(absPath, expectedVersion) {
196
- const now = Date.now();
197
- const current = (receipts.get(absPath) ?? []).filter(
198
- (entry) => now - entry.recordedAt < RECEIPT_TTL_MS
199
- );
200
- if (current.length > 0) receipts.set(absPath, current);
201
- else receipts.delete(absPath);
202
- let receipt;
203
- for (let i = current.length - 1; i >= 0 && !receipt; i -= 1) {
204
- if (current[i]?.version === expectedVersion) receipt = current[i];
205
- }
206
- return receipt;
207
- }
208
- var consumeFileWriteReceipt = identifyFileWrite;
209
64
  var HistoryBusyError = class extends Error {
210
65
  constructor(pid, url) {
211
66
  super(`This project's history is open in another process (pid ${pid}).`);
@@ -311,7 +166,7 @@ function deadHolder(file, pid) {
311
166
  return !holdsLock(file, pid) && !beingTaken(file);
312
167
  }
313
168
  function claim(file) {
314
- const draft = `${file}-${process.pid}-${randomUUID2()}.tmp`;
169
+ const draft = `${file}-${process.pid}-${randomUUID()}.tmp`;
315
170
  writeFileSync(draft, String(process.pid));
316
171
  try {
317
172
  try {
@@ -582,7 +437,7 @@ async function collectProjectSignatureFilesAsync(projectDir, dir, files, outputs
582
437
  }
583
438
  }
584
439
  function createProjectFingerprint(projectDir, files) {
585
- const hash = createHash2("sha256");
440
+ const hash = createHash("sha256");
586
441
  for (const entry of files) {
587
442
  hash.update(relative2(projectDir, entry.file));
588
443
  hash.update("\0");
@@ -637,7 +492,7 @@ function planSignature(dir, collected, excluding, signedAt) {
637
492
  (entry) => !excluding.has(relative2(dir, entry.file).split(sep2).join("/"))
638
493
  );
639
494
  files.sort((a, b) => a.file.localeCompare(b.file));
640
- const cacheKey = excluding.size ? `${dir}\0${createHash2("sha256").update([...excluding].sort().join("\0")).digest("hex")}` : dir;
495
+ const cacheKey = excluding.size ? `${dir}\0${createHash("sha256").update([...excluding].sort().join("\0")).digest("hex")}` : dir;
641
496
  return { dir, files, cacheKey, fingerprint: createProjectFingerprint(dir, files), signedAt };
642
497
  }
643
498
  function hashSignatureEntry(hash, dir, entry, content) {
@@ -667,7 +522,7 @@ function createProjectSignature(projectDir, excluding = /* @__PURE__ */ new Set(
667
522
  const plan = planSignature(dir, collectProjectFiles(dir), excluding, Date.now());
668
523
  const cached = cachedSignature(plan);
669
524
  if (cached !== void 0) return cached;
670
- const hash = createHash2("sha256");
525
+ const hash = createHash("sha256");
671
526
  for (const entry of plan.files) {
672
527
  let content = null;
673
528
  if (entry.textContentEligible) {
@@ -688,7 +543,7 @@ async function createProjectSignatureAsync(projectDir, excluding = /* @__PURE__
688
543
  const plan = planSignature(dir, await collectProjectFilesAsync(dir), excluding, signedAt);
689
544
  const cached = cachedSignature(plan);
690
545
  if (cached !== void 0) return cached;
691
- const hash = createHash2("sha256");
546
+ const hash = createHash("sha256");
692
547
  for (let at = 0; at < plan.files.length; at += SIGNATURE_READ_BATCH) {
693
548
  const batch = plan.files.slice(at, at + SIGNATURE_READ_BATCH);
694
549
  const contents = await Promise.all(
@@ -700,6 +555,81 @@ async function createProjectSignatureAsync(projectDir, excluding = /* @__PURE__
700
555
  }
701
556
  return finishSignature(plan, hash);
702
557
  }
558
+ var RECEIPT_TTL_MS = 1e4;
559
+ var receipts = /* @__PURE__ */ new Map();
560
+ var overwriteListeners = /* @__PURE__ */ new Set();
561
+ function fileContentVersion(content) {
562
+ return hashVersion(createHash2("sha256").update(content).digest("hex"));
563
+ }
564
+ var DELETED_VERSION = '"deleted"';
565
+ function hashVersion(hex) {
566
+ return `"sha256:${hex}"`;
567
+ }
568
+ function hashOfVersion(version) {
569
+ return /^"sha256:([0-9a-f]{64})"$/.exec(version)?.[1];
570
+ }
571
+ function settledFileTag(stat4, now = Date.now()) {
572
+ if (now - stat4.ctimeMs < 3e3) return null;
573
+ return [stat4.ino, stat4.ctimeMs, stat4.size].map((n) => n.toString(36)).join("-");
574
+ }
575
+ function createWriteToken(requestToken) {
576
+ const token = requestToken?.trim();
577
+ return token && token.length <= 200 ? token : randomUUID2();
578
+ }
579
+ function onFileOverwritten(listener) {
580
+ overwriteListeners.add(listener);
581
+ return () => overwriteListeners.delete(listener);
582
+ }
583
+ function recordFileWriteReceipt(filePath, {
584
+ overwrote,
585
+ path,
586
+ version,
587
+ writeToken
588
+ }) {
589
+ const receipt = { path, version, writeToken };
590
+ const absPath = realFilePath(filePath);
591
+ if (overwrote !== void 0)
592
+ for (const listener of overwriteListeners) listener(absPath, receipt.version, overwrote);
593
+ const now = Date.now();
594
+ for (const [path2, list] of receipts) {
595
+ const live = list.filter((entry) => now - entry.recordedAt < RECEIPT_TTL_MS);
596
+ if (live.length > 0) receipts.set(path2, live);
597
+ else receipts.delete(path2);
598
+ }
599
+ const from = overwrote === void 0 ? void 0 : fileContentVersion(overwrote);
600
+ receipts.set(absPath, [
601
+ ...receipts.get(absPath) ?? [],
602
+ { ...receipt, ...from && { from }, recordedAt: now }
603
+ ]);
604
+ }
605
+ function clearFileWriteReceipt(filePath, version, writeToken) {
606
+ const absPath = realFilePath(filePath);
607
+ const current = (receipts.get(absPath) ?? []).filter(
608
+ (entry) => entry.version !== version || entry.writeToken !== writeToken
609
+ );
610
+ if (current.length > 0) receipts.set(absPath, current);
611
+ else receipts.delete(absPath);
612
+ }
613
+ function identifyFileWrite(filePath, expectedVersion) {
614
+ const receipt = newestReceipt(realFilePath(filePath), expectedVersion);
615
+ if (!receipt) return null;
616
+ const { path, version, writeToken, from } = receipt;
617
+ return { path, version, writeToken, ...from && { from } };
618
+ }
619
+ function newestReceipt(absPath, expectedVersion) {
620
+ const now = Date.now();
621
+ const current = (receipts.get(absPath) ?? []).filter(
622
+ (entry) => now - entry.recordedAt < RECEIPT_TTL_MS
623
+ );
624
+ if (current.length > 0) receipts.set(absPath, current);
625
+ else receipts.delete(absPath);
626
+ let receipt;
627
+ for (let i = current.length - 1; i >= 0 && !receipt; i -= 1) {
628
+ if (current[i]?.version === expectedVersion) receipt = current[i];
629
+ }
630
+ return receipt;
631
+ }
632
+ var consumeFileWriteReceipt = identifyFileWrite;
703
633
  var serving = /* @__PURE__ */ new Map();
704
634
  var keyOf = (path) => process.platform === "win32" ? resolve3(path).toLowerCase() : resolve3(path);
705
635
  function serveWhileOpen(path, stream) {
@@ -724,6 +654,83 @@ async function stopServingAndClose(path) {
724
654
  )
725
655
  );
726
656
  }
657
+
658
+ // ../studio-server/dist/chunk-BVNMSZEZ.js
659
+ import { randomUUID as randomUUID5 } from "crypto";
660
+ import { mkdir as mkdir2, readdir as readdir3, rm as rm3, rmdir, stat as stat2, writeFile as writeFile2 } from "fs/promises";
661
+ import {
662
+ existsSync as existsSync4,
663
+ lstatSync as lstatSync4,
664
+ statSync as statSync4,
665
+ mkdirSync as mkdirSync5,
666
+ readdirSync as readdirSync3,
667
+ readFileSync as readFileSync6,
668
+ realpathSync,
669
+ rmSync as rmSync3
670
+ } from "fs";
671
+ import { basename as basename4, dirname as dirname6, isAbsolute as isAbsolute3, join as join8, relative as relative3, resolve as resolve5, sep as sep3 } from "path";
672
+ import { createHash as createHash3, randomUUID as randomUUID3 } from "crypto";
673
+ import { constants as constants2, createReadStream, createWriteStream } from "fs";
674
+ import {
675
+ chmod,
676
+ copyFile,
677
+ mkdir,
678
+ open,
679
+ readdir as readdir2,
680
+ readFile as readFile2,
681
+ rename,
682
+ rm,
683
+ stat,
684
+ writeFile
685
+ } from "fs/promises";
686
+ import { basename as basename2, dirname as dirname2, join as join2 } from "path";
687
+ import { pipeline } from "stream/promises";
688
+ import { lstatSync as lstatSync2, mkdirSync as mkdirSync2, renameSync, rmdirSync, rmSync as rmSync2 } from "fs";
689
+ import { basename, dirname, join as join3 } from "path";
690
+ import { extname as extname2 } from "path";
691
+ import { randomUUID as randomUUID32 } from "crypto";
692
+ import { readdirSync as readdirSync2, renameSync as renameSync2, statSync as statSync2 } from "fs";
693
+ import { lstat as lstat2, readdir as readdir22, rm as rm2 } from "fs/promises";
694
+ import { tmpdir } from "os";
695
+ import { dirname as dirname3, join as join4 } from "path";
696
+ import { randomUUID as randomUUID22 } from "crypto";
697
+ import { existsSync, mkdirSync as mkdirSync22, readFileSync as readFileSync4, statSync as statSync3, utimesSync } from "fs";
698
+ import { basename as basename3, join as join32, resolve as resolve4 } from "path";
699
+ import { createHash as createHash32, randomUUID as randomUUID4 } from "crypto";
700
+ import { createReadStream as createReadStream2, existsSync as existsSync3, readFileSync as readFileSync42, renameSync as renameSync3, statSync as statSync32 } from "fs";
701
+ import { isAbsolute as isAbsolute22, join as join7, resolve as resolve42 } from "path";
702
+ import { createHash as createHash22 } from "crypto";
703
+ import {
704
+ closeSync as closeSync2,
705
+ constants as constants22,
706
+ existsSync as existsSync2,
707
+ fstatSync as fstatSync2,
708
+ lstatSync as lstatSync22,
709
+ openSync as openSync2,
710
+ readFileSync as readFileSync22,
711
+ unlinkSync
712
+ } from "fs";
713
+ import { isAbsolute as isAbsolute4, join as join5, parse, relative as relative4, resolve as resolve22, sep as sep4 } from "path";
714
+ import {
715
+ closeSync as closeSync22,
716
+ constants as constants3,
717
+ fstatSync as fstatSync22,
718
+ lstatSync as lstatSync3,
719
+ openSync as openSync22,
720
+ mkdirSync as mkdirSync3,
721
+ readFileSync as readFileSync32,
722
+ readdirSync as readdirSync22,
723
+ rmSync as rmSync22,
724
+ ftruncateSync,
725
+ writeSync,
726
+ writeFileSync as writeFileSync2
727
+ } from "fs";
728
+ import { dirname as dirname4, join as join6, relative as relative22, resolve as resolve32, sep as sep22 } from "path";
729
+ import { closeSync as closeSync3, constants as constants4, mkdirSync as mkdirSync4, openSync as openSync3, readFileSync as readFileSync5, writeSync as writeSync2 } from "fs";
730
+ import { dirname as dirname5 } from "path";
731
+ import { readdirSync as readdirSync4 } from "fs";
732
+ import { rm as rm4, stat as stat3 } from "fs/promises";
733
+ import { join as join9 } from "path";
727
734
  var DRIVE = /^[a-z]:/i;
728
735
  function withoutTrailingDotsAndSpaces(name) {
729
736
  let end = name.length;
@@ -741,7 +748,7 @@ function folderWithin(root, path, make) {
741
748
  let folder = realProjectRoot(root);
742
749
  const names = path.split("/").slice(0, -1);
743
750
  for (const [depth, name] of names.entries()) {
744
- const next = join2(folder, name);
751
+ const next = join3(folder, name);
745
752
  let made = false;
746
753
  if (!lstatSync2(next, { throwIfNoEntry: false })) {
747
754
  if (!make) return null;
@@ -780,7 +787,7 @@ function assertLandedIn(folder, path) {
780
787
  throw changedWhileWriting(folder);
781
788
  }
782
789
  async function removeWithin(folder, path, keep) {
783
- const at = join2(folder, basename(path));
790
+ const at = join3(folder, basename(path));
784
791
  const standing = lstatSync2(at, { throwIfNoEntry: false });
785
792
  if (!standing) return;
786
793
  if (standing.isDirectory()) throw inTheWay(path);
@@ -812,7 +819,7 @@ var isSettling = (file, now) => Math.abs(now - Math.max(file.mtimeMs, file.ctime
812
819
  var unchanged = (before, after) => before.size === after.size && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs;
813
820
  function blobPath(dir, hash) {
814
821
  if (!BLOB_HASH.test(hash)) throw new Error("That is not a history blob.");
815
- return join3(dir, hash.slice(0, 2), hash);
822
+ return join2(dir, hash.slice(0, 2), hash);
816
823
  }
817
824
  var sha256 = (bytes) => createHash3("sha256").update(bytes).digest("hex");
818
825
  var damaged = () => new Error("History's copy of this version is damaged, so it was not used. Nothing was changed.");
@@ -853,8 +860,8 @@ function onRestoredInPlace(listener) {
853
860
  }
854
861
  async function cloneOrCopy(from, hash, root, path, beforeReplace) {
855
862
  const folder = folderWithin(root, path, true);
856
- const to = join3(folder, basename2(path));
857
- const servedAs = join3(root, path);
863
+ const to = join2(folder, basename2(path));
864
+ const servedAs = join2(root, path);
858
865
  refuseReadOnly(to);
859
866
  const temp = atomicTempPath(to);
860
867
  try {
@@ -902,7 +909,7 @@ var listDir = (path) => readdir2(path, { withFileTypes: true }).catch((error) =>
902
909
  });
903
910
  async function openBlobStore(dir) {
904
911
  const sizes = /* @__PURE__ */ new Map();
905
- const asideDir = join3(dirname2(dir), "aside");
912
+ const asideDir = join2(dirname2(dir), "aside");
906
913
  const asideSizes = /* @__PURE__ */ new Map();
907
914
  const holds = /* @__PURE__ */ new Map();
908
915
  await mkdir(dir, { recursive: true });
@@ -912,11 +919,11 @@ async function openBlobStore(dir) {
912
919
  ])
913
920
  for (const shard of await listDir(root)) {
914
921
  if (!shard.isDirectory()) {
915
- if (shard.name.startsWith("incoming-")) await rm(join3(root, shard.name), { force: true });
922
+ if (shard.name.startsWith("incoming-")) await rm(join2(root, shard.name), { force: true });
916
923
  continue;
917
924
  }
918
- for (const hash of await listDir(join3(root, shard.name)))
919
- found.set(hash.name, (await stat(join3(root, shard.name, hash.name))).size);
925
+ for (const hash of await listDir(join2(root, shard.name)))
926
+ found.set(hash.name, (await stat(join2(root, shard.name, hash.name))).size);
920
927
  }
921
928
  for (const hash of asideSizes.keys()) holds.set(hash, /* @__PURE__ */ new Set(["*"]));
922
929
  const pathOf = (hash) => blobPath(sizes.has(hash) ? dir : asideDir, hash);
@@ -943,7 +950,7 @@ async function openBlobStore(dir) {
943
950
  const putBytes = async (bytes, mode) => {
944
951
  const hash = sha256(bytes);
945
952
  if (sizes.has(hash)) return hash;
946
- const temp = join3(dir, `incoming-${randomUUID3()}`);
953
+ const temp = join2(dir, `incoming-${randomUUID3()}`);
947
954
  try {
948
955
  await withFolderMadeIfMissing(dir, () => writeFile(temp, bytes, { mode }));
949
956
  await chmod(temp, mode & 4095);
@@ -959,7 +966,7 @@ async function openBlobStore(dir) {
959
966
  const putIfUnchanged = async (absPath) => {
960
967
  const small = await readIfSmall(absPath);
961
968
  if (small) return small.moved ? null : putBytes(small.bytes, small.mode);
962
- const temp = join3(dir, `incoming-${randomUUID3()}`);
969
+ const temp = join2(dir, `incoming-${randomUUID3()}`);
963
970
  await mkdir(dir, { recursive: true });
964
971
  const before = await stat(absPath);
965
972
  const moved = await cloneOrStream(absPath, temp).then(async () => !unchanged(before, await stat(absPath))).catch(async (error) => {
@@ -1013,7 +1020,7 @@ async function openBlobStore(dir) {
1013
1020
  () => false
1014
1021
  );
1015
1022
  if (!moved) {
1016
- const temp = join3(asideDir, `incoming-${randomUUID3()}`);
1023
+ const temp = join2(asideDir, `incoming-${randomUUID3()}`);
1017
1024
  await cloneOrStream(absPath, temp).catch(async (error) => {
1018
1025
  await rm(temp, { force: true });
1019
1026
  throw error;
@@ -1068,12 +1075,12 @@ function uncopiedOnlyHashes(log, sizeOf) {
1068
1075
  }
1069
1076
  return [...uncopied].filter((hash) => !copied.has(hash));
1070
1077
  }
1071
- var ID_PATH = join4(".hyperframes", "history-id");
1078
+ var ID_PATH = join32(".hyperframes", "history-id");
1072
1079
  var ID_SHAPE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
1073
1080
  var isHistoryId = (name) => ID_SHAPE.test(name);
1074
1081
  function readId(projectDir) {
1075
1082
  try {
1076
- const id = readFileSync4(join4(projectDir, ID_PATH), "utf-8").trim();
1083
+ const id = readFileSync4(join32(projectDir, ID_PATH), "utf-8").trim();
1077
1084
  return ID_SHAPE.test(id) ? id : null;
1078
1085
  } catch {
1079
1086
  return null;
@@ -1090,7 +1097,7 @@ function isRecordedFolder(historyDir, folder) {
1090
1097
  }
1091
1098
  function readRecord(historyDir) {
1092
1099
  try {
1093
- return JSON.parse(readFileSync4(join4(historyDir, "project.json"), "utf-8"));
1100
+ return JSON.parse(readFileSync4(join32(historyDir, "project.json"), "utf-8"));
1094
1101
  } catch {
1095
1102
  return null;
1096
1103
  }
@@ -1098,7 +1105,7 @@ function readRecord(historyDir) {
1098
1105
  function isCopyOf0878Folder(recordedDir, id, folder) {
1099
1106
  let there;
1100
1107
  try {
1101
- there = statSync2(recordedDir, { throwIfNoEntry: false });
1108
+ there = statSync3(recordedDir, { throwIfNoEntry: false });
1102
1109
  } catch {
1103
1110
  return false;
1104
1111
  }
@@ -1106,19 +1113,19 @@ function isCopyOf0878Folder(recordedDir, id, folder) {
1106
1113
  }
1107
1114
  function projectHistoryId(projectDir, historyRoot) {
1108
1115
  const dir = resolve4(projectDir);
1109
- const folder = statSync2(dir);
1116
+ const folder = statSync3(dir);
1110
1117
  let id = readId(dir);
1111
- if (!id && existsSync(join4(dir, ID_PATH)))
1118
+ if (!id && existsSync(join32(dir, ID_PATH)))
1112
1119
  throw new HistoryIdError(
1113
- `${join4(dir, ID_PATH)} holds no history id this version can read; move it aside to start anew.`
1120
+ `${join32(dir, ID_PATH)} holds no history id this version can read; move it aside to start anew.`
1114
1121
  );
1115
- if (!id || existsSync(join4(historyRoot, id)) && !isRecordedFolder(join4(historyRoot, id), folder)) {
1116
- id = randomUUID4();
1117
- mkdirOwnedWithinProject(dir, join4(dir, ".hyperframes"));
1118
- replaceFileAtomically(join4(dir, ID_PATH), `${id}
1122
+ if (!id || existsSync(join32(historyRoot, id)) && !isRecordedFolder(join32(historyRoot, id), folder)) {
1123
+ id = randomUUID22();
1124
+ mkdirOwnedWithinProject(dir, join32(dir, ".hyperframes"));
1125
+ replaceFileAtomically(join32(dir, ID_PATH), `${id}
1119
1126
  `);
1120
1127
  }
1121
- recordProject(join4(historyRoot, id), dir, folder);
1128
+ recordProject(join32(historyRoot, id), dir, folder);
1122
1129
  return id;
1123
1130
  }
1124
1131
  var HistoryIdError = class extends Error {
@@ -1130,7 +1137,7 @@ var HistoryIdError = class extends Error {
1130
1137
  function markUsed(historyDir) {
1131
1138
  const now = /* @__PURE__ */ new Date();
1132
1139
  try {
1133
- utimesSync(join4(historyDir, "project.json"), now, now);
1140
+ utimesSync(join32(historyDir, "project.json"), now, now);
1134
1141
  } catch {
1135
1142
  return;
1136
1143
  }
@@ -1142,8 +1149,8 @@ function recordProject(historyDir, dir, folder) {
1142
1149
  markUsed(historyDir);
1143
1150
  return;
1144
1151
  }
1145
- mkdirSync3(historyDir, { recursive: true });
1146
- replaceFileAtomically(join4(historyDir, "project.json"), JSON.stringify(record), 420);
1152
+ mkdirSync22(historyDir, { recursive: true });
1153
+ replaceFileAtomically(join32(historyDir, "project.json"), JSON.stringify(record), 420);
1147
1154
  }
1148
1155
  var DAY_MS = 24 * 60 * 60 * 1e3;
1149
1156
  var KEEP_GONE_PROJECT_HISTORY_MS = 14 * DAY_MS;
@@ -1151,7 +1158,7 @@ var PRUNED_PREFIX = ".pruned-";
1151
1158
  var LAST_PRUNE_FILE = ".last-prune";
1152
1159
  function listProjectHistories(historyRoot) {
1153
1160
  return namesIn(historyRoot).filter(isHistoryId).flatMap((id) => {
1154
- const home = join5(historyRoot, id);
1161
+ const home = join4(historyRoot, id);
1155
1162
  const projectDir = readRecord(home)?.dir;
1156
1163
  if (typeof projectDir !== "string" || readId(projectDir) !== id) return [];
1157
1164
  return [{ id, projectDir, lastUsedMs: lastUsed(home) }];
@@ -1192,13 +1199,13 @@ async function pruneWithin(historyRoot, {
1192
1199
  }
1193
1200
  async function pruneEntry(historyRoot, name, run) {
1194
1201
  if (name.startsWith(PRUNED_PREFIX)) {
1195
- if (!run.dryRun) await rm2(join5(historyRoot, name), { recursive: true, force: true });
1202
+ if (!run.dryRun) await rm2(join4(historyRoot, name), { recursive: true, force: true });
1196
1203
  return null;
1197
1204
  }
1198
1205
  return isHistoryId(name) ? pruneOne(historyRoot, name, run) : null;
1199
1206
  }
1200
1207
  async function pruneOne(historyRoot, id, run) {
1201
- const home = join5(historyRoot, id);
1208
+ const home = join4(historyRoot, id);
1202
1209
  if (abandonedProject(home, id, run.now, run.tempDir) === null) return null;
1203
1210
  const release = await takeUnlessBusy(home);
1204
1211
  if (!release) return null;
@@ -1228,11 +1235,11 @@ async function takeUnlessBusy(home) {
1228
1235
  }
1229
1236
  }
1230
1237
  function recheckAndMoveAway(historyRoot, id, { now, dryRun, tempDir }) {
1231
- const home = join5(historyRoot, id);
1238
+ const home = join4(historyRoot, id);
1232
1239
  const projectDir = abandonedProject(home, id, now, tempDir);
1233
1240
  if (projectDir === null) return null;
1234
1241
  if (dryRun) return { projectDir, trash: null };
1235
- const trash = join5(historyRoot, `${PRUNED_PREFIX}${id}-${randomUUID5()}`);
1242
+ const trash = join4(historyRoot, `${PRUNED_PREFIX}${id}-${randomUUID32()}`);
1236
1243
  renameSync2(home, trash);
1237
1244
  return { projectDir, trash };
1238
1245
  }
@@ -1244,30 +1251,30 @@ function abandonedProject(home, id, now, tempDir) {
1244
1251
  return projectGone(dir, id, record?.dev, tempDir) ? dir : null;
1245
1252
  }
1246
1253
  function projectGone(dir, id, dev, tempDir) {
1247
- if (!statSync3(join5(dir, ID_PATH), { throwIfNoEntry: false }))
1254
+ if (!statSync2(join4(dir, ID_PATH), { throwIfNoEntry: false }))
1248
1255
  return diskStillHere(dir, dev, tempDir);
1249
1256
  const there = readId(dir);
1250
1257
  return there !== null && there !== id;
1251
1258
  }
1252
1259
  function diskStillHere(dir, dev, tempDir) {
1253
1260
  let at = dir;
1254
- let stat4 = statSync3(at, { throwIfNoEntry: false });
1261
+ let stat4 = statSync2(at, { throwIfNoEntry: false });
1255
1262
  while (!stat4) {
1256
1263
  if (dirname3(at) === at) return false;
1257
1264
  at = dirname3(at);
1258
- stat4 = statSync3(at, { throwIfNoEntry: false });
1265
+ stat4 = statSync2(at, { throwIfNoEntry: false });
1259
1266
  }
1260
1267
  if (typeof dev === "number") return stat4.dev === dev;
1261
1268
  return at === dir || isSafePath(tempDir, at);
1262
1269
  }
1263
1270
  function lastUsed(home) {
1264
- const mtime = (file) => statSync3(join5(home, file), { throwIfNoEntry: false })?.mtimeMs ?? 0;
1271
+ const mtime = (file) => statSync2(join4(home, file), { throwIfNoEntry: false })?.mtimeMs ?? 0;
1265
1272
  return Math.max(mtime("project.json"), mtime("log.jsonl"));
1266
1273
  }
1267
1274
  async function bytesIn(dir) {
1268
1275
  let total = 0;
1269
- for (const entry of await readdir3(dir, { withFileTypes: true })) {
1270
- const path = join5(dir, entry.name);
1276
+ for (const entry of await readdir22(dir, { withFileTypes: true })) {
1277
+ const path = join4(dir, entry.name);
1271
1278
  total += entry.isDirectory() ? await bytesIn(path) : (await lstat2(path)).size;
1272
1279
  }
1273
1280
  return total;
@@ -1282,7 +1289,7 @@ function prunedWithinADay(stamp, now) {
1282
1289
  }
1283
1290
  var pruning = /* @__PURE__ */ new Set();
1284
1291
  function pruneGoneProjectHistoriesDaily(historyRoot, now, { onError, budgetMs } = {}) {
1285
- const stamp = join5(historyRoot, LAST_PRUNE_FILE);
1292
+ const stamp = join4(historyRoot, LAST_PRUNE_FILE);
1286
1293
  if (pruning.has(historyRoot) || prunedWithinADay(stamp, now)) return;
1287
1294
  pruning.add(historyRoot);
1288
1295
  setImmediate(() => {
@@ -1295,24 +1302,24 @@ var records = (state, kind) => [
1295
1302
  ...state[kind].unversioned
1296
1303
  ];
1297
1304
  var protectedRevisions = (state) => /* @__PURE__ */ new Set([state.currentRevision, ...state.renders?.retainedRevisions ?? []]);
1298
- var canonicalUnlessOnAnotherShare = (projectDir, path) => namesAnotherNetworkRoot(projectDir, path) ? resolve5(path) : realFilePath(path);
1305
+ var canonicalUnlessOnAnotherShare = (projectDir, path) => namesAnotherNetworkRoot(projectDir, path) ? resolve22(path) : realFilePath(path);
1299
1306
  var recordedFileGone = (projectDir, path) => namesAnotherNetworkRoot(projectDir, path) || !existsSync2(path);
1300
1307
  function spelledInsideArtifactsFolder(projectDir, path, kind) {
1301
- if (!isAbsolute3(path) || namesAnotherNetworkRoot(projectDir, path)) return false;
1302
- if (parse(resolve5(path)).root.toLowerCase() !== parse(resolve5(projectDir)).root.toLowerCase())
1308
+ if (!isAbsolute4(path) || namesAnotherNetworkRoot(projectDir, path)) return false;
1309
+ if (parse(resolve22(path)).root.toLowerCase() !== parse(resolve22(projectDir)).root.toLowerCase())
1303
1310
  return false;
1304
- const parts = resolve5(path).split(sep3).map((part) => part.toLowerCase());
1311
+ const parts = resolve22(path).split(sep4).map((part) => part.toLowerCase());
1305
1312
  return parts.some(
1306
1313
  (part, i) => part === ".hyperframes" && parts[i + 1] === "artifacts" && parts[i + 2] === kind && i + 3 < parts.length
1307
1314
  );
1308
1315
  }
1309
1316
  function managedPath(projectDir, path, kind) {
1310
1317
  if (!spelledInsideArtifactsFolder(projectDir, path, kind)) return false;
1311
- const canonicalProject = realFilePath(resolve5(projectDir));
1318
+ const canonicalProject = realFilePath(resolve22(projectDir));
1312
1319
  const canonicalPath = realFilePath(path);
1313
- const root = join6(canonicalProject, ".hyperframes", "artifacts", kind);
1314
- const rel = relative3(root, canonicalPath);
1315
- return isAbsolute3(path) && rel !== "" && rel !== ".." && !rel.startsWith(`..${sep3}`) && !isAbsolute3(rel) && pinProjectRecord(canonicalProject, relative3(canonicalProject, canonicalPath)) === canonicalPath;
1320
+ const root = join5(canonicalProject, ".hyperframes", "artifacts", kind);
1321
+ const rel = relative4(root, canonicalPath);
1322
+ return isAbsolute4(path) && rel !== "" && rel !== ".." && !rel.startsWith(`..${sep4}`) && !isAbsolute4(rel) && pinProjectRecord(canonicalProject, relative4(canonicalProject, canonicalPath)) === canonicalPath;
1316
1323
  }
1317
1324
  function updateLatest(state) {
1318
1325
  for (const kind of kinds) {
@@ -1369,12 +1376,12 @@ function restoreCleaned(state, item) {
1369
1376
  function stillPendingAfterUnlink(item) {
1370
1377
  let descriptor;
1371
1378
  try {
1372
- descriptor = openSync2(item.path, constants3.O_RDONLY | constants3.O_NOFOLLOW);
1379
+ descriptor = openSync2(item.path, constants22.O_RDONLY | constants22.O_NOFOLLOW);
1373
1380
  const stat4 = fstatSync2(descriptor);
1374
1381
  if (!stat4.isFile() || stat4.isSymbolicLink()) return false;
1375
- const hash = createHash4("sha256").update(readFileSync5(descriptor)).digest("hex");
1382
+ const hash = createHash22("sha256").update(readFileSync22(descriptor)).digest("hex");
1376
1383
  if (hash !== item.hash) return false;
1377
- const current = lstatSync3(item.path);
1384
+ const current = lstatSync22(item.path);
1378
1385
  if (current.dev !== stat4.dev || current.ino !== stat4.ino) return false;
1379
1386
  unlinkSync(item.path);
1380
1387
  return false;
@@ -1409,16 +1416,16 @@ var SNAPSHOT_GRACE_MS = 24 * 60 * 60 * 1e3;
1409
1416
  var OWNER = ".capture-owner.json";
1410
1417
  var ownedMarkers = /* @__PURE__ */ new Map();
1411
1418
  var UUID = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/i;
1412
- var rootOf = (project) => join7(resolve6(project), ".hyperframes", "artifacts", "snapshots");
1419
+ var rootOf = (project) => join6(resolve32(project), ".hyperframes", "artifacts", "snapshots");
1413
1420
  function ordinaryPath(project, path) {
1414
- const root = resolve6(project);
1415
- const rel = relative4(root, path);
1416
- if (rel === ".." || rel.startsWith(`..${sep4}`)) return false;
1421
+ const root = resolve32(project);
1422
+ const rel = relative22(root, path);
1423
+ if (rel === ".." || rel.startsWith(`..${sep22}`)) return false;
1417
1424
  let current = root;
1418
- for (const part of rel.split(sep4).filter(Boolean)) {
1419
- current = join7(current, part);
1425
+ for (const part of rel.split(sep22).filter(Boolean)) {
1426
+ current = join6(current, part);
1420
1427
  try {
1421
- if (lstatSync4(current).isSymbolicLink()) return false;
1428
+ if (lstatSync3(current).isSymbolicLink()) return false;
1422
1429
  } catch {
1423
1430
  return false;
1424
1431
  }
@@ -1426,11 +1433,11 @@ function ordinaryPath(project, path) {
1426
1433
  return true;
1427
1434
  }
1428
1435
  function createSnapshotParents(project, path) {
1429
- let parent = resolve6(project);
1430
- for (const part of relative4(parent, path).split(sep4).filter(Boolean)) {
1431
- parent = join7(parent, part);
1436
+ let parent = resolve32(project);
1437
+ for (const part of relative22(parent, path).split(sep22).filter(Boolean)) {
1438
+ parent = join6(parent, part);
1432
1439
  try {
1433
- mkdirSync4(parent);
1440
+ mkdirSync3(parent);
1434
1441
  } catch (error) {
1435
1442
  if (!(error instanceof Error && "code" in error && error.code === "EEXIST")) throw error;
1436
1443
  }
@@ -1441,14 +1448,14 @@ function ownSnapshotRun(project, path) {
1441
1448
  const root = rootOf(project);
1442
1449
  if (dirname4(path) !== root || !UUID.test(path.slice(root.length + 1))) return;
1443
1450
  createSnapshotParents(project, root);
1444
- mkdirSync4(path);
1445
- const marker = join7(path, OWNER);
1446
- const fd = openSync3(marker, "wx");
1451
+ mkdirSync3(path);
1452
+ const marker = join6(path, OWNER);
1453
+ const fd = openSync22(marker, "wx");
1447
1454
  try {
1448
1455
  writeFileSync2(fd, JSON.stringify({ version: 1, pid: process.pid }));
1449
- ownedMarkers.set(marker, fstatSync3(fd));
1456
+ ownedMarkers.set(marker, fstatSync22(fd));
1450
1457
  } finally {
1451
- closeSync3(fd);
1458
+ closeSync22(fd);
1452
1459
  }
1453
1460
  }
1454
1461
  function missingFile(error) {
@@ -1456,7 +1463,7 @@ function missingFile(error) {
1456
1463
  }
1457
1464
  function retainedOutput(path) {
1458
1465
  try {
1459
- lstatSync4(join7(path, ".user-output"));
1466
+ lstatSync3(join6(path, ".user-output"));
1460
1467
  return true;
1461
1468
  } catch (error) {
1462
1469
  return !missingFile(error);
@@ -1482,24 +1489,24 @@ function sameOwnerFile(before, current) {
1482
1489
  return current.dev === before.dev && current.ino === before.ino;
1483
1490
  }
1484
1491
  function openOwner(marker, access) {
1485
- const fd = openSync3(marker, access | (constants4.O_NOFOLLOW ?? 0) | (constants4.O_NONBLOCK ?? 0));
1492
+ const fd = openSync22(marker, access | (constants3.O_NOFOLLOW ?? 0) | (constants3.O_NONBLOCK ?? 0));
1486
1493
  try {
1487
- const current = fstatSync3(fd);
1488
- const named = lstatSync4(marker);
1494
+ const current = fstatSync22(fd);
1495
+ const named = lstatSync3(marker);
1489
1496
  if (!ordinaryOwner(current) || !ordinaryOwner(named) || !sameOwnerFile(named, current))
1490
1497
  throw new Error("Snapshot owner changed while opening.");
1491
1498
  return fd;
1492
1499
  } catch (error) {
1493
- closeSync3(fd);
1500
+ closeSync22(fd);
1494
1501
  throw error;
1495
1502
  }
1496
1503
  }
1497
1504
  function readOwner(marker) {
1498
- const fd = openOwner(marker, constants4.O_RDONLY);
1505
+ const fd = openOwner(marker, constants3.O_RDONLY);
1499
1506
  try {
1500
- return JSON.parse(readFileSync6(fd, "utf8"));
1507
+ return JSON.parse(readFileSync32(fd, "utf8"));
1501
1508
  } finally {
1502
- closeSync3(fd);
1509
+ closeSync22(fd);
1503
1510
  }
1504
1511
  }
1505
1512
  function releasedOwner(owner) {
@@ -1508,7 +1515,7 @@ function releasedOwner(owner) {
1508
1515
  function liveOwner(path) {
1509
1516
  if (retainedOutput(path)) return true;
1510
1517
  try {
1511
- const marker = join7(path, OWNER);
1518
+ const marker = join6(path, OWNER);
1512
1519
  const owner = readOwner(marker);
1513
1520
  if (releasedOwner(owner)) return false;
1514
1521
  const pid = ownerPid(owner);
@@ -1522,8 +1529,8 @@ function recordsOf(state) {
1522
1529
  }
1523
1530
  function containingRun(root, path) {
1524
1531
  if (!path) return null;
1525
- const name = relative4(root, resolve6(path)).split(sep4)[0];
1526
- return name && UUID.test(name) ? join7(root, name) : null;
1532
+ const name = relative22(root, resolve32(path)).split(sep22)[0];
1533
+ return name && UUID.test(name) ? join6(root, name) : null;
1527
1534
  }
1528
1535
  function keepContainingRun(keep, root, path) {
1529
1536
  const run = containingRun(root, path);
@@ -1543,14 +1550,14 @@ function protectedRuns(root, state, records2) {
1543
1550
  function runsOnDisk(root) {
1544
1551
  let entries;
1545
1552
  try {
1546
- entries = readdirSync3(root, { withFileTypes: true });
1553
+ entries = readdirSync22(root, { withFileTypes: true });
1547
1554
  } catch {
1548
1555
  return [];
1549
1556
  }
1550
1557
  return entries.filter((entry) => entry.isDirectory() && UUID.test(entry.name)).flatMap((entry) => {
1551
- const path = join7(root, entry.name);
1558
+ const path = join6(root, entry.name);
1552
1559
  try {
1553
- const stat4 = lstatSync4(path);
1560
+ const stat4 = lstatSync3(path);
1554
1561
  return [{ path, stat: stat4 }];
1555
1562
  } catch {
1556
1563
  return [];
@@ -1586,33 +1593,33 @@ function retireReferences(records2, root, path) {
1586
1593
  }
1587
1594
  function unchangedRun(project, run) {
1588
1595
  if (!ordinaryPath(project, run.path)) return false;
1589
- const current = lstatSync4(run.path);
1596
+ const current = lstatSync3(run.path);
1590
1597
  return current.isDirectory() && current.dev === run.dev && current.ino === run.ino && current.mtimeMs === run.mtimeMs;
1591
1598
  }
1592
1599
  function finishSnapshotCleanup(project, runs) {
1593
1600
  for (const run of runs) {
1594
1601
  try {
1595
1602
  if (!unchangedRun(project, run) || liveOwner(run.path)) continue;
1596
- rmSync3(run.path, { recursive: true });
1603
+ rmSync22(run.path, { recursive: true });
1597
1604
  } catch {
1598
1605
  }
1599
1606
  }
1600
1607
  }
1601
1608
  function releaseSnapshotRun(project, path) {
1602
- const marker = join7(path, OWNER);
1609
+ const marker = join6(path, OWNER);
1603
1610
  const expected = ownedMarkers.get(marker);
1604
1611
  if (!expected) return;
1605
1612
  try {
1606
1613
  if (dirname4(path) !== rootOf(project) || !ordinaryPath(project, path)) return;
1607
- const fd = openOwner(marker, constants4.O_RDWR);
1614
+ const fd = openOwner(marker, constants3.O_RDWR);
1608
1615
  try {
1609
- if (!sameOwnerFile(expected, fstatSync3(fd))) return;
1610
- const owner = JSON.parse(readFileSync6(fd, "utf8"));
1616
+ if (!sameOwnerFile(expected, fstatSync22(fd))) return;
1617
+ const owner = JSON.parse(readFileSync32(fd, "utf8"));
1611
1618
  if (ownerPid(owner) !== process.pid) return;
1612
1619
  ftruncateSync(fd, 0);
1613
1620
  writeSync(fd, JSON.stringify({ version: 1, pid: process.pid, released: true }), 0, "utf8");
1614
1621
  } finally {
1615
- closeSync3(fd);
1622
+ closeSync22(fd);
1616
1623
  }
1617
1624
  } catch {
1618
1625
  } finally {
@@ -1623,10 +1630,10 @@ function retainSnapshotOutput(project, path) {
1623
1630
  const root = rootOf(project);
1624
1631
  const run = containingRun(root, path);
1625
1632
  if (!run) return;
1626
- createSnapshotParents(project, resolve6(path));
1633
+ createSnapshotParents(project, resolve32(path));
1627
1634
  try {
1628
1635
  writeFileSync2(
1629
- join7(run, ".user-output"),
1636
+ join6(run, ".user-output"),
1630
1637
  "Explicit --output; retained until manual cleanup.\n",
1631
1638
  { flag: "wx" }
1632
1639
  );
@@ -1652,7 +1659,7 @@ var emptyState = () => ({
1652
1659
  });
1653
1660
  function readState(dir) {
1654
1661
  if (!existsSync3(statePath(dir))) return emptyState();
1655
- const state = JSON.parse(readFileSync7(statePath(dir), "utf8"));
1662
+ const state = JSON.parse(readFileSync42(statePath(dir), "utf8"));
1656
1663
  if (state.version !== 1 || !state.checks || !state.snapshots || !state.revisions || !state.files)
1657
1664
  throw new Error("Unsupported video-state schema.");
1658
1665
  return state;
@@ -1667,7 +1674,7 @@ async function updateState(dir, update) {
1667
1674
  state = readState(dir);
1668
1675
  } catch (error) {
1669
1676
  if (!(error instanceof SyntaxError)) throw error;
1670
- renameSync3(statePath(dir), `${statePath(dir)}.invalid-${randomUUID6()}`);
1677
+ renameSync3(statePath(dir), `${statePath(dir)}.invalid-${randomUUID4()}`);
1671
1678
  state = emptyState();
1672
1679
  }
1673
1680
  update(state);
@@ -1677,7 +1684,7 @@ async function updateState(dir, update) {
1677
1684
  }
1678
1685
  }
1679
1686
  async function writeHistoryState(projectDir, historyId, historyDirectory, entries, currentFiles, committedFiles) {
1680
- const blob = (hash) => hash === null ? null : resolve7(historyDirectory, "blobs", hash.slice(0, 2), hash);
1687
+ const blob = (hash) => hash === null ? null : resolve42(historyDirectory, "blobs", hash.slice(0, 2), hash);
1681
1688
  await updateState(projectDir, (state) => {
1682
1689
  if (state.historyId && state.historyId !== historyId) {
1683
1690
  state.checks = collection();
@@ -1730,8 +1737,8 @@ async function fileHashes(dir) {
1730
1737
  for (const { path } of (await listProjectFilesAsync(dir)).sort(
1731
1738
  (a, b) => a.path.localeCompare(b.path)
1732
1739
  )) {
1733
- const hash = createHash5("sha256");
1734
- for await (const chunk of createReadStream2(join8(dir, path))) hash.update(chunk);
1740
+ const hash = createHash32("sha256");
1741
+ for await (const chunk of createReadStream2(join7(dir, path))) hash.update(chunk);
1735
1742
  files[path] = hash.digest("hex");
1736
1743
  }
1737
1744
  return files;
@@ -1742,7 +1749,7 @@ async function beginArtifactCapture(projectDir) {
1742
1749
  const matches = state.historyId !== null && readId(projectDir) === state.historyId && !state.pendingChanges && Object.entries(state.files).every(([path, file]) => files[path] === file.hash) && Object.keys(files).filter((path) => !path.split("/").some((part) => part.startsWith("."))).every((path) => state.files[path]?.hash === files[path]);
1743
1750
  return {
1744
1751
  revision: matches ? state.currentRevision : null,
1745
- fingerprint: createHash5("sha256").update(JSON.stringify(files)).digest("hex")
1752
+ fingerprint: createHash32("sha256").update(JSON.stringify(files)).digest("hex")
1746
1753
  };
1747
1754
  }
1748
1755
  async function recordArtifact(projectDir, capture, artifact) {
@@ -1753,8 +1760,8 @@ async function recordArtifacts(projectDir, capture, artifactsToRecord) {
1753
1760
  const hashes = /* @__PURE__ */ new Map();
1754
1761
  for (const artifact of artifactsToRecord) {
1755
1762
  const path = artifact.kind === "check" ? artifact.report : artifact.image;
1756
- if (!path || !isAbsolute4(path)) throw new Error("Artifact needs an absolute output path.");
1757
- hashes.set(artifact.id, createHash5("sha256").update(readFileSync7(path)).digest("hex"));
1763
+ if (!path || !isAbsolute22(path)) throw new Error("Artifact needs an absolute output path.");
1764
+ hashes.set(artifact.id, createHash32("sha256").update(readFileSync42(path)).digest("hex"));
1758
1765
  }
1759
1766
  const after = await beginArtifactCapture(projectDir);
1760
1767
  const unchanged2 = after.fingerprint === capture.fingerprint;
@@ -1810,7 +1817,7 @@ function listsOf(artifacts) {
1810
1817
  return [...Object.values(artifacts.revisions), artifacts.unversioned];
1811
1818
  }
1812
1819
  async function forgetRecordedArtifacts(projectDir, paths) {
1813
- const gone = new Set(paths.map((path) => resolve7(path)));
1820
+ const gone = new Set(paths.map((path) => resolve42(path)));
1814
1821
  if (gone.size === 0) return;
1815
1822
  await updateState(projectDir, (state) => {
1816
1823
  for (const artifacts of [state.checks, state.snapshots]) {
@@ -1818,7 +1825,7 @@ async function forgetRecordedArtifacts(projectDir, paths) {
1818
1825
  for (let i = list.length - 1; i >= 0; i--) {
1819
1826
  const record = list[i];
1820
1827
  const path = record.image ?? record.report;
1821
- if (path && gone.has(resolve7(path))) list.splice(i, 1);
1828
+ if (path && gone.has(resolve42(path))) list.splice(i, 1);
1822
1829
  }
1823
1830
  }
1824
1831
  if (artifacts.latest && !listsOf(artifacts).some(
@@ -1830,7 +1837,7 @@ async function forgetRecordedArtifacts(projectDir, paths) {
1830
1837
  });
1831
1838
  }
1832
1839
  function artifactDirectory(projectDir, kind) {
1833
- const path = join8(resolve7(projectDir), ".hyperframes", "artifacts", kind, randomUUID6());
1840
+ const path = join7(resolve42(projectDir), ".hyperframes", "artifacts", kind, randomUUID4());
1834
1841
  if (kind === "snapshots") ownSnapshotRun(projectDir, path);
1835
1842
  return path;
1836
1843
  }
@@ -1839,14 +1846,14 @@ function retainRevision(retained, revision) {
1839
1846
  return [revision, ...retained.filter((id) => id !== revision)].slice(0, 2);
1840
1847
  }
1841
1848
  async function recordRenderSuccess(projectDir, output, status = "completed", capture) {
1842
- const outputFile = statSync4(output);
1849
+ const outputFile = statSync32(output);
1843
1850
  if (!outputFile.isFile() && !outputFile.isDirectory() || outputFile.isFile() && outputFile.size === 0)
1844
1851
  throw new Error("Render output is missing or empty.");
1845
1852
  const after = capture ? await beginArtifactCapture(projectDir) : null;
1846
1853
  const record = {
1847
- id: randomUUID6(),
1854
+ id: randomUUID4(),
1848
1855
  completedAt: Date.now(),
1849
- output: resolve7(output),
1856
+ output: resolve42(output),
1850
1857
  status
1851
1858
  };
1852
1859
  const unchanged2 = Boolean(capture && after?.fingerprint === capture.fingerprint);
@@ -1883,7 +1890,7 @@ function parseRecord(line) {
1883
1890
  function readLog(file, onUnreadable) {
1884
1891
  let text;
1885
1892
  try {
1886
- text = readFileSync8(file, "utf-8");
1893
+ text = readFileSync5(file, "utf-8");
1887
1894
  } catch {
1888
1895
  return null;
1889
1896
  }
@@ -1907,7 +1914,7 @@ function applyRecord(log, record) {
1907
1914
  function saveRecord(file, log, record) {
1908
1915
  let fd;
1909
1916
  try {
1910
- fd = openSync4(file, constants5.O_WRONLY | constants5.O_APPEND);
1917
+ fd = openSync3(file, constants4.O_WRONLY | constants4.O_APPEND);
1911
1918
  } catch (error) {
1912
1919
  if (error.code !== "ENOENT") throw error;
1913
1920
  return writeLog(file, log);
@@ -1916,7 +1923,7 @@ function saveRecord(file, log, record) {
1916
1923
  writeSync2(fd, `${JSON.stringify(record)}
1917
1924
  `);
1918
1925
  } finally {
1919
- closeSync4(fd);
1926
+ closeSync3(fd);
1920
1927
  }
1921
1928
  }
1922
1929
  function baselineRecord(log) {
@@ -1932,7 +1939,7 @@ function writeLog(file, log) {
1932
1939
  ...log.entries.map((entry) => ({ type: "entry", entry })),
1933
1940
  ...[...log.pins].map((id) => ({ type: "pin", id, pinned: true }))
1934
1941
  ];
1935
- mkdirSync5(dirname5(file), { recursive: true });
1942
+ mkdirSync4(dirname5(file), { recursive: true });
1936
1943
  replaceFileAtomically(file, records2.map((r) => `${JSON.stringify(r)}
1937
1944
  `).join(""), 420);
1938
1945
  }
@@ -2028,11 +2035,11 @@ async function inFirstCopySlot(copy) {
2028
2035
  var MEDIA_LEDGER = ".media/manifest.jsonl";
2029
2036
  var KEPT_HIDDEN_PATHS = /* @__PURE__ */ new Set([...STUDIO_SIGNATURE_MANIFEST_PATHS, MEDIA_LEDGER]);
2030
2037
  function isHistoryPath(path) {
2031
- if (!isRelativeProjectPath(path)) return false;
2038
+ if (!isRelativeProjectPath(path) || isStudioPrivatePath(path)) return false;
2032
2039
  if (KEPT_HIDDEN_PATHS.has(path)) return true;
2033
2040
  return !path.split("/").some((segment) => segment.startsWith("."));
2034
2041
  }
2035
- var logFileIn = (home) => join9(home, "log.jsonl");
2042
+ var logFileIn = (home) => join8(home, "log.jsonl");
2036
2043
  function listOf(log) {
2037
2044
  const undone = undoneIds(log.entries);
2038
2045
  return log.entries.map((entry) => ({
@@ -2045,6 +2052,12 @@ function peekOf(log, point) {
2045
2052
  const files = manifestAt(log, point);
2046
2053
  return files && Object.fromEntries(files);
2047
2054
  }
2055
+ function namesBlob(log, hash) {
2056
+ for (const kept of log.baseline.values()) if (kept === hash) return true;
2057
+ return log.entries.some(
2058
+ (entry) => entry.files.some((file) => file.before === hash || file.after === hash)
2059
+ );
2060
+ }
2048
2061
  function withoutHiddenPaths(log) {
2049
2062
  for (const path of log.baseline.keys()) if (!isHistoryPath(path)) log.baseline.delete(path);
2050
2063
  for (const entry of log.entries)
@@ -2066,27 +2079,27 @@ var isMissingFolder = (error) => ["ENOENT", "ENOTDIR"].includes(error.code ?? ""
2066
2079
  async function removeEmptyFolders(dir) {
2067
2080
  let entries;
2068
2081
  try {
2069
- entries = await readdir4(dir, { withFileTypes: true });
2082
+ entries = await readdir3(dir, { withFileTypes: true });
2070
2083
  } catch (error) {
2071
2084
  if (isMissingFolder(error)) return;
2072
2085
  throw error;
2073
2086
  }
2074
2087
  for (const entry of entries)
2075
- if (entry.isDirectory()) await removeEmptyFolders(join9(dir, entry.name));
2088
+ if (entry.isDirectory()) await removeEmptyFolders(join8(dir, entry.name));
2076
2089
  assertStillWithin(dirname6(dir));
2077
2090
  await rmdir(dir);
2078
2091
  }
2079
2092
  function fileLeftIn(dir, at, deleted) {
2080
- for (const entry of readdirSync4(dir, { withFileTypes: true })) {
2093
+ for (const entry of readdirSync3(dir, { withFileTypes: true })) {
2081
2094
  const path = `${at}/${entry.name}`;
2082
- const left = entry.isDirectory() ? fileLeftIn(join9(dir, entry.name), path, deleted) : deleted.has(path) ? void 0 : path;
2095
+ const left = entry.isDirectory() ? fileLeftIn(join8(dir, entry.name), path, deleted) : deleted.has(path) ? void 0 : path;
2083
2096
  if (left) return left;
2084
2097
  }
2085
2098
  return void 0;
2086
2099
  }
2087
2100
  function ignoresCase(dir) {
2088
- const self = statSync5(join9(dir, ID_PATH), { throwIfNoEntry: false });
2089
- const other = statSync5(join9(dir, ID_PATH.toUpperCase()), { throwIfNoEntry: false });
2101
+ const self = statSync4(join8(dir, ID_PATH), { throwIfNoEntry: false });
2102
+ const other = statSync4(join8(dir, ID_PATH.toUpperCase()), { throwIfNoEntry: false });
2090
2103
  return self !== void 0 && other?.ino === self.ino && other.dev === self.dev;
2091
2104
  }
2092
2105
  var blocks = (removed, added) => added.startsWith(`${removed}/`) || removed.startsWith(`${added}/`);
@@ -2138,10 +2151,10 @@ var Engine = class {
2138
2151
  this.options = options;
2139
2152
  this.projectId = projectId;
2140
2153
  this.blobs = blobs;
2141
- this.dir = resolve8(options.projectDir);
2142
- this.home = join9(options.historyRoot, projectId);
2154
+ this.dir = resolve5(options.projectDir);
2155
+ this.home = join8(options.historyRoot, projectId);
2143
2156
  this.foldsCase = ignoresCase(this.dir);
2144
- const folder = statSync5(this.dir, { throwIfNoEntry: false });
2157
+ const folder = statSync4(this.dir, { throwIfNoEntry: false });
2145
2158
  if (!folder || readId(this.dir) !== projectId || !isRecordedFolder(this.home, folder))
2146
2159
  throw this.replaced();
2147
2160
  this.folder = { dev: folder.dev, ino: folder.ino, birthtimeMs: folder.birthtimeMs };
@@ -2211,7 +2224,7 @@ var Engine = class {
2211
2224
  }
2212
2225
  /** Another project if the folder or its id changed, or the id is gone: a recreated folder may reuse the inode. */
2213
2226
  whereFolder() {
2214
- const now = statSync5(this.dir, { throwIfNoEntry: false });
2227
+ const now = statSync4(this.dir, { throwIfNoEntry: false });
2215
2228
  if (!now) return "gone";
2216
2229
  const same = now.dev === this.folder.dev && sameFolder(now, this.folder);
2217
2230
  return same && readId(this.dir) === this.projectId ? "here" : "replaced";
@@ -2225,7 +2238,7 @@ var Engine = class {
2225
2238
  this.owesVideoState = true;
2226
2239
  if (record) saveRecord(this.logFile, this.log, record);
2227
2240
  else writeLog(this.logFile, this.log);
2228
- if (!existsSync4(join9(this.home, "project.json")))
2241
+ if (!existsSync4(join8(this.home, "project.json")))
2229
2242
  recordProject(this.home, this.dir, this.folder);
2230
2243
  }
2231
2244
  replaced() {
@@ -2269,7 +2282,7 @@ var Engine = class {
2269
2282
  if (!after || !affectsProjectSignature(realDir, absPath)) return;
2270
2283
  const replaced = hashOfVersion(fileContentVersion(bytes));
2271
2284
  if (!replaced || replaced === after) return;
2272
- const path = relative5(realDir, absPath).split(sep5).join("/");
2285
+ const path = relative3(realDir, absPath).split(sep3).join("/");
2273
2286
  if (!isHistoryPath(path)) return;
2274
2287
  this.overwritten.set(
2275
2288
  path,
@@ -2282,7 +2295,7 @@ var Engine = class {
2282
2295
  });
2283
2296
  }
2284
2297
  async storeBytes(bytes) {
2285
- const staged = join9(this.home, `overwrote-${randomUUID7()}`);
2298
+ const staged = join8(this.home, `overwrote-${randomUUID5()}`);
2286
2299
  await mkdir2(this.home, { recursive: true });
2287
2300
  await writeFile2(staged, bytes);
2288
2301
  try {
@@ -2348,9 +2361,9 @@ var Engine = class {
2348
2361
  this.saveAdopting();
2349
2362
  }
2350
2363
  saveAdopting() {
2351
- const file = join9(this.home, "adopting.json");
2352
- if (!this.adopting.size) return rmSync4(file, { force: true });
2353
- mkdirSync6(this.home, { recursive: true });
2364
+ const file = join8(this.home, "adopting.json");
2365
+ if (!this.adopting.size) return rmSync3(file, { force: true });
2366
+ mkdirSync5(this.home, { recursive: true });
2354
2367
  replaceFileAtomically(file, JSON.stringify([...this.adopting.keys()]), 420);
2355
2368
  }
2356
2369
  /** A file still changing stays named until a whole copy of it lands; the next open retries it. */
@@ -2424,7 +2437,7 @@ var Engine = class {
2424
2437
  }
2425
2438
  readStatCache() {
2426
2439
  try {
2427
- const files = JSON.parse(readFileSync9(join9(this.home, "stat.json"), "utf-8"));
2440
+ const files = JSON.parse(readFileSync6(join8(this.home, "stat.json"), "utf-8"));
2428
2441
  return new Map(Object.entries(files));
2429
2442
  } catch {
2430
2443
  return /* @__PURE__ */ new Map();
@@ -2433,7 +2446,7 @@ var Engine = class {
2433
2446
  readAdopting() {
2434
2447
  try {
2435
2448
  return new Set(
2436
- JSON.parse(readFileSync9(join9(this.home, "adopting.json"), "utf-8"))
2449
+ JSON.parse(readFileSync6(join8(this.home, "adopting.json"), "utf-8"))
2437
2450
  );
2438
2451
  } catch {
2439
2452
  return /* @__PURE__ */ new Set();
@@ -2441,8 +2454,8 @@ var Engine = class {
2441
2454
  }
2442
2455
  saveStatCache() {
2443
2456
  const files = JSON.stringify(Object.fromEntries(this.tracked));
2444
- mkdirSync6(this.home, { recursive: true });
2445
- replaceFileAtomically(join9(this.home, "stat.json"), files, 420);
2457
+ mkdirSync5(this.home, { recursive: true });
2458
+ replaceFileAtomically(join8(this.home, "stat.json"), files, 420);
2446
2459
  }
2447
2460
  /**
2448
2461
  * Takes in every write since the last sweep and files each change to its writer. ponytail: always the whole
@@ -2491,7 +2504,7 @@ var Engine = class {
2491
2504
  /** The file's hash once copied in, or why there is none: gone, or still changing through every read. */
2492
2505
  async storeIfPresent(path) {
2493
2506
  try {
2494
- const abs = join9(this.dir, path);
2507
+ const abs = join8(this.dir, path);
2495
2508
  const { size } = await stat2(abs);
2496
2509
  if (isUncopied(path, size)) return { hash: await this.blobs.reference(abs) };
2497
2510
  const hash = await this.blobs.put(abs);
@@ -2570,7 +2583,7 @@ var Engine = class {
2570
2583
  return group && taken.every((change) => after(change.path, change.before) === change.before) && [...group.changes.values()].every(untouched) ? group : null;
2571
2584
  }
2572
2585
  logPath(path) {
2573
- return relative5(this.dir, resolve8(this.dir, path)).split(sep5).join("/");
2586
+ return relative3(this.dir, resolve5(this.dir, path)).split(sep3).join("/");
2574
2587
  }
2575
2588
  /** Takes `paths`' uncommitted changes from others, cut at what `who` overwrote. */
2576
2589
  async takeClaimed(who, paths, overwrote) {
@@ -2661,7 +2674,7 @@ var Engine = class {
2661
2674
  return this.outside;
2662
2675
  }
2663
2676
  newGroup(who, label) {
2664
- return { id: randomUUID7(), who, label, startedAt: this.now(), changes: /* @__PURE__ */ new Map() };
2677
+ return { id: randomUUID5(), who, label, startedAt: this.now(), changes: /* @__PURE__ */ new Map() };
2665
2678
  }
2666
2679
  async commitOutside() {
2667
2680
  if (this.outside?.changes.size) await this.commitClaim();
@@ -2731,9 +2744,9 @@ var Engine = class {
2731
2744
  }
2732
2745
  /** A watcher saw a write: one sweep per burst takes it in (a deleted folder is reported by its name alone). */
2733
2746
  noteChange(path) {
2734
- const absolute = resolve8(this.dir, path);
2747
+ const absolute = resolve5(this.dir, path);
2735
2748
  if (this.notedTimer || !affectsProjectSignature(this.dir, absolute)) return;
2736
- if (!isHistoryPath(relative5(this.dir, absolute).split(sep5).join("/"))) return;
2749
+ if (!isHistoryPath(relative3(this.dir, absolute).split(sep3).join("/"))) return;
2737
2750
  this.sweepIn(20);
2738
2751
  }
2739
2752
  sweepIn(ms) {
@@ -2813,7 +2826,7 @@ var Engine = class {
2813
2826
  const parts = path.split("/");
2814
2827
  for (let depth = 1; depth <= parts.length; depth += 1) {
2815
2828
  const at = parts.slice(0, depth).join("/");
2816
- const stat4 = lstatSync5(join9(this.dir, at), { throwIfNoEntry: false });
2829
+ const stat4 = lstatSync4(join8(this.dir, at), { throwIfNoEntry: false });
2817
2830
  if (!stat4) return void 0;
2818
2831
  if (at === path || !stat4.isDirectory()) return { at, stat: stat4 };
2819
2832
  }
@@ -2825,8 +2838,8 @@ var Engine = class {
2825
2838
  if (!standing) return void 0;
2826
2839
  if (standing.stat.isSymbolicLink()) return standing.at;
2827
2840
  if (standing.at === path && !standing.stat.isDirectory()) return void 0;
2828
- const real = realpathSync.native(join9(this.dir, standing.at));
2829
- const at = relative5(realpathSync.native(this.dir), real).split(sep5).join("/");
2841
+ const real = realpathSync.native(join8(this.dir, standing.at));
2842
+ const at = relative3(realpathSync.native(this.dir), real).split(sep3).join("/");
2830
2843
  if (standing.at !== path) return deleted.has(at) ? void 0 : at;
2831
2844
  return fileLeftIn(real, at, deleted);
2832
2845
  }
@@ -2863,7 +2876,7 @@ var Engine = class {
2863
2876
  /** Writes one project file (null deletes it), first leaving the running operation's receipt for its echo. */
2864
2877
  async writeProjectFile(path, hash) {
2865
2878
  this.assertWritable();
2866
- const absPath = join9(this.dir, path);
2879
+ const absPath = join8(this.dir, path);
2867
2880
  const { writeToken } = this;
2868
2881
  if (writeToken) {
2869
2882
  const version = hash === null ? DELETED_VERSION : hashVersion(hash);
@@ -2871,8 +2884,8 @@ var Engine = class {
2871
2884
  }
2872
2885
  const folder = folderWithin(this.dir, path, hash !== null);
2873
2886
  if (!folder) return;
2874
- const at = join9(folder, basename4(path));
2875
- const standing = lstatSync5(at, { throwIfNoEntry: false });
2887
+ const at = join8(folder, basename4(path));
2888
+ const standing = lstatSync4(at, { throwIfNoEntry: false });
2876
2889
  const uncopied = standing?.isFile() === true && isUncopied(path, standing.size);
2877
2890
  if (hash === null) {
2878
2891
  this.assertWritable();
@@ -3029,10 +3042,10 @@ var Engine = class {
3029
3042
  checkout: (entryId, side, emptyDir) => this.queue(async () => {
3030
3043
  this.entry(entryId);
3031
3044
  if (!existsSync4(this.dir)) throw new Error(`The project folder is gone: ${this.dir}`);
3032
- const dest = resolve8(emptyDir);
3045
+ const dest = resolve5(emptyDir);
3033
3046
  if (isWithin(this.dir, dest))
3034
3047
  throw new Error(`Checkout writes outside the project only: ${dest}`);
3035
- if ((await readdir4(dest).catch(missingIsEmpty)).length > 0)
3048
+ if ((await readdir3(dest).catch(missingIsEmpty)).length > 0)
3036
3049
  throw new Error(`Checkout writes into an empty folder only: ${dest}`);
3037
3050
  const files = manifestAround(this.log, entryId, side);
3038
3051
  for (const [path, hash] of files)
@@ -3042,8 +3055,8 @@ var Engine = class {
3042
3055
  await mkdir2(dest, { recursive: true });
3043
3056
  for (const [path, hash] of files) await this.blobs.writeTo(hash, dest, path);
3044
3057
  } catch (error) {
3045
- for (const name of await readdir4(dest).catch(() => []))
3046
- await rm3(join9(dest, name), { recursive: true, force: true });
3058
+ for (const name of await readdir3(dest).catch(() => []))
3059
+ await rm3(join8(dest, name), { recursive: true, force: true });
3047
3060
  throw error;
3048
3061
  }
3049
3062
  }),
@@ -3053,6 +3066,7 @@ var Engine = class {
3053
3066
  },
3054
3067
  readBlob: async (hash) => {
3055
3068
  this.assertOpen();
3069
+ if (!namesBlob(this.log, hash)) throw new Error("That is not a history blob.");
3056
3070
  return this.blobs.read(hash);
3057
3071
  },
3058
3072
  pin: (id, pinned) => {
@@ -3083,10 +3097,10 @@ var Engine = class {
3083
3097
  }
3084
3098
  };
3085
3099
  function isWithin(dir, path) {
3086
- let probe = resolve8(path);
3100
+ let probe = resolve5(path);
3087
3101
  while (!existsSync4(probe) && dirname6(probe) !== probe) probe = dirname6(probe);
3088
- const rel = relative5(realpathSync.native(dir), realpathSync.native(probe));
3089
- return rel === "" || rel !== ".." && !rel.startsWith(`..${sep5}`) && !isAbsolute5(rel);
3102
+ const rel = relative3(realpathSync.native(dir), realpathSync.native(probe));
3103
+ return rel === "" || rel !== ".." && !rel.startsWith(`..${sep3}`) && !isAbsolute3(rel);
3090
3104
  }
3091
3105
  function missingIsEmpty(error) {
3092
3106
  if (error.code === "ENOENT") return [];
@@ -3109,12 +3123,12 @@ async function openProjectHistory(options) {
3109
3123
  throw new HistoryClosedError(`${options.projectDir} is gone or now another project.`);
3110
3124
  const projectId = projectHistoryId(options.projectDir, options.historyRoot);
3111
3125
  const release = await takeHistoryOwnership(
3112
- join9(options.historyRoot, projectId),
3126
+ join8(options.historyRoot, projectId),
3113
3127
  options.ownerWaitMs ?? 5e3,
3114
3128
  options.ownerUrl
3115
3129
  );
3116
3130
  try {
3117
- const blobs = await openBlobStore(join9(options.historyRoot, projectId, "blobs"));
3131
+ const blobs = await openBlobStore(join8(options.historyRoot, projectId, "blobs"));
3118
3132
  const closedWindow = options.closedWindowAfterOwnership?.() ?? options.closedWindow;
3119
3133
  const engine = new Engine({ ...options, closedWindow }, projectId, blobs);
3120
3134
  await engine.queue(async () => {
@@ -3136,9 +3150,9 @@ async function openProjectHistory(options) {
3136
3150
  }
3137
3151
  }
3138
3152
  function readProjectHistory(options) {
3139
- const dir = resolve8(options.projectDir);
3153
+ const dir = resolve5(options.projectDir);
3140
3154
  const id = readId(dir);
3141
- const home = id && isRecordedFolder(join9(options.historyRoot, id), statSync5(dir)) ? join9(options.historyRoot, id) : null;
3155
+ const home = id && isRecordedFolder(join8(options.historyRoot, id), statSync4(dir)) ? join8(options.historyRoot, id) : null;
3142
3156
  const read = home && readLog(logFileIn(home), () => {
3143
3157
  });
3144
3158
  const log = withoutHiddenPaths(read || { baseline: /* @__PURE__ */ new Map(), entries: [], pins: /* @__PURE__ */ new Set() });
@@ -3146,14 +3160,14 @@ function readProjectHistory(options) {
3146
3160
  list: () => listOf(log),
3147
3161
  peek: (point) => peekOf(log, point),
3148
3162
  readBlob: async (hash) => {
3149
- if (!home) throw new Error("That is not a history blob.");
3150
- return readBlob(join9(home, "blobs"), hash);
3163
+ if (!home || !namesBlob(log, hash)) throw new Error("That is not a history blob.");
3164
+ return readBlob(join8(home, "blobs"), hash);
3151
3165
  }
3152
3166
  };
3153
3167
  }
3154
3168
  function historyIds(historyRoot) {
3155
3169
  try {
3156
- return readdirSync5(historyRoot).filter(isHistoryId);
3170
+ return readdirSync4(historyRoot).filter(isHistoryId);
3157
3171
  } catch {
3158
3172
  return [];
3159
3173
  }
@@ -3175,10 +3189,10 @@ async function blobSizes(blobs, hashes) {
3175
3189
  return sizes;
3176
3190
  }
3177
3191
  async function reclaimOne(home, dryRun) {
3178
- const log = readLog(join10(home, "log.jsonl"), () => {
3192
+ const log = readLog(join9(home, "log.jsonl"), () => {
3179
3193
  });
3180
3194
  if (!log) return 0;
3181
- const blobs = join10(home, "blobs");
3195
+ const blobs = join9(home, "blobs");
3182
3196
  const sizes = await blobSizes(blobs, namedHashes(log));
3183
3197
  let bytes = 0;
3184
3198
  for (const hash of uncopiedOnlyHashes(log, (known) => sizes.get(known) ?? 0)) {
@@ -3192,7 +3206,7 @@ async function reclaimOne(home, dryRun) {
3192
3206
  async function reclaimUncopiedBlobs(historyRoot, { dryRun = false, onError } = {}) {
3193
3207
  const reclaimed = [];
3194
3208
  for (const id of historyIds(historyRoot)) {
3195
- const home = join10(historyRoot, id);
3209
+ const home = join9(historyRoot, id);
3196
3210
  let release;
3197
3211
  try {
3198
3212
  release = await takeHistoryOwnership(home, 0);
@@ -3230,14 +3244,6 @@ function historyCache(open2) {
3230
3244
  }
3231
3245
 
3232
3246
  export {
3233
- fileContentVersion,
3234
- DELETED_VERSION,
3235
- settledFileTag,
3236
- createWriteToken,
3237
- recordFileWriteReceipt,
3238
- clearFileWriteReceipt,
3239
- identifyFileWrite,
3240
- consumeFileWriteReceipt,
3241
3247
  HistoryBusyError,
3242
3248
  registerRenderOutput,
3243
3249
  STUDIO_SIGNATURE_MANIFEST_PATHS,
@@ -3246,6 +3252,14 @@ export {
3246
3252
  resolveProjectAndSignature,
3247
3253
  createProjectSignature,
3248
3254
  createProjectSignatureAsync,
3255
+ fileContentVersion,
3256
+ DELETED_VERSION,
3257
+ settledFileTag,
3258
+ createWriteToken,
3259
+ recordFileWriteReceipt,
3260
+ clearFileWriteReceipt,
3261
+ identifyFileWrite,
3262
+ consumeFileWriteReceipt,
3249
3263
  serveWhileOpen,
3250
3264
  onRestoredInPlace,
3251
3265
  isUncopiedMedia,