hyperframes 0.9.56 → 0.9.58

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 (392) hide show
  1. package/dist/{add-KW7OTOWF.js → add-JQUKPSEZ.js} +30 -28
  2. package/dist/{agentPromptGenerator-NNXUWNU4.js → agentPromptGenerator-3NEY7FPP.js} +15 -14
  3. package/dist/{animatedGifPrep-6ATQHQON.js → animatedGifPrep-VMUZ6IVJ.js} +17 -15
  4. package/dist/api.js +60 -59
  5. package/dist/{appHistory-KHX53SGI.js → appHistory-JNI6IOR6.js} +5 -4
  6. package/dist/{asset-QVINGJRK.js → asset-ZT3VXZ67.js} +3 -2
  7. package/dist/{assetCataloger-DENJPUBH.js → assetCataloger-D2DV65BA.js} +16 -15
  8. package/dist/{audio-LB7HQYPJ.js → audio-LD5H2R5V.js} +37 -36
  9. package/dist/{auth-7AGRVI5A.js → auth-4FPYYMSH.js} +4 -4
  10. package/dist/{autoUpdate-ITCP2JDM.js → autoUpdate-5ZKSFCG4.js} +5 -5
  11. package/dist/{avatars-2K2C74EQ.js → avatars-DCLFE7VG.js} +25 -24
  12. package/dist/{backgroundChecks-UOTBCWPN.js → backgroundChecks-UZA3F46H.js} +6 -6
  13. package/dist/backgroundChecksWorker.js +6 -6
  14. package/dist/{batchRender-Z7ESYQDS.js → batchRender-TAUW3CT2.js} +11 -8
  15. package/dist/{beats-TG6ZB3XH.js → beats-X3LCR6OG.js} +16 -15
  16. package/dist/{benchmark-RU5MLZHE.js → benchmark-DNZQT3YQ.js} +23 -22
  17. package/dist/{billing-VB5PYYSN.js → billing-4BFUAHWX.js} +44 -29
  18. package/dist/{browser-VSQRY5GG.js → browser-5J2MTDB6.js} +13 -12
  19. package/dist/{bundleWithLocalizedFonts-XDPJE355.js → bundleWithLocalizedFonts-XWK47ZVF.js} +1 -1
  20. package/dist/{capture-M4FL7MWI.js → capture-2YSVFKWV.js} +39 -38
  21. package/dist/{capture-TQCFWPAT.js → capture-TVYTKWTG.js} +4 -4
  22. package/dist/{captureCompositionFrame-XF67Q6YK.js → captureCompositionFrame-L765HLCT.js} +21 -20
  23. package/dist/{captureFile-F254H22J.js → captureFile-DOCK42K3.js} +4 -3
  24. package/dist/{catalog-24EGH662.js → catalog-CHGGRRQX.js} +30 -28
  25. package/dist/{catch-up-L23HGDLB.js → catch-up-OCFU6ZR3.js} +16 -15
  26. package/dist/{check-F4HQVV2M.js → check-LWK4Z7FI.js} +64 -63
  27. package/dist/{checkAudio-6DT3ONR7.js → checkAudio-R5ORBXBO.js} +26 -23
  28. package/dist/{checkBrowser-S7P4X7QV.js → checkBrowser-6SH73T47.js} +55 -54
  29. package/dist/{chunk-MK4RH5L7.js → chunk-23SG3B6M.js} +1 -1
  30. package/dist/{chunk-QBADK3LD.js → chunk-2GRCLLKU.js} +1 -1
  31. package/dist/chunk-2RUCE54M.js +5083 -0
  32. package/dist/{chunk-SGWDJLFL.js → chunk-2SJNGWSY.js} +1 -1
  33. package/dist/{chunk-RFULFCYW.js → chunk-2WA62M3B.js} +3 -3
  34. package/dist/{chunk-FGGRBKWL.js → chunk-37VS6QY6.js} +1 -1
  35. package/dist/{chunk-ZIF44RW2.js → chunk-37Y334MN.js} +11 -8
  36. package/dist/{chunk-3GVHDPEP.js → chunk-3GKGBYW3.js} +7 -27
  37. package/dist/{chunk-BZXW5QU7.js → chunk-3VMZQQUI.js} +1 -1
  38. package/dist/{chunk-B6BWLFAF.js → chunk-4LZSNWFJ.js} +2 -2
  39. package/dist/{chunk-L5NPBGQB.js → chunk-4N3WOFP3.js} +21 -21
  40. package/dist/{chunk-7DKWEIH4.js → chunk-4NNYYCJN.js} +15 -15
  41. package/dist/{chunk-5GSCSZOS.js → chunk-4QPT3IEL.js} +5 -5
  42. package/dist/{chunk-JQKCRTVQ.js → chunk-5IUVWP3A.js} +2 -2
  43. package/dist/{chunk-APCVZGU6.js → chunk-5SGGOZNL.js} +84 -46
  44. package/dist/{chunk-T5HYPGST.js → chunk-7ECPFKQV.js} +4 -4
  45. package/dist/{chunk-BZULWFMJ.js → chunk-7FIJRDUG.js} +45 -10
  46. package/dist/{chunk-BA33QNKK.js → chunk-7IMHPBSH.js} +51 -19
  47. package/dist/{chunk-TVZTTWU7.js → chunk-7WAWUQDQ.js} +3 -3
  48. package/dist/{chunk-QNIID7EN.js → chunk-7WYJXKIG.js} +17 -7
  49. package/dist/{chunk-CZCZ5YXT.js → chunk-7ZHBY7T5.js} +1 -1
  50. package/dist/{chunk-WHX2OV4C.js → chunk-A4L7G74T.js} +1 -1
  51. package/dist/{chunk-LK7F7P2X.js → chunk-A4YRESMH.js} +2 -2
  52. package/dist/{chunk-MDRLJ737.js → chunk-AJ7YRQS4.js} +1 -1
  53. package/dist/{chunk-CBG6MIT2.js → chunk-ALD7JBPV.js} +2 -2
  54. package/dist/{chunk-7F4RAWDS.js → chunk-AM4Y3XMR.js} +2 -2
  55. package/dist/{chunk-D3WRRPHI.js → chunk-AM6UYKVR.js} +10 -10
  56. package/dist/{chunk-YDNBMPP3.js → chunk-AMS7Q7P7.js} +4 -4
  57. package/dist/{chunk-VC4YMXUQ.js → chunk-BSDUTNFX.js} +1 -1
  58. package/dist/{chunk-IRZUZ32B.js → chunk-BSFTB6AM.js} +4 -4
  59. package/dist/{chunk-XKNNZ4WR.js → chunk-CGJIMWNU.js} +5 -2
  60. package/dist/{chunk-WFB4XPJR.js → chunk-CGODFJZ7.js} +9 -9
  61. package/dist/{chunk-BMVUB2CY.js → chunk-CPDPSNSB.js} +8 -8
  62. package/dist/{chunk-OXT2LXZB.js → chunk-CRPLPK6J.js} +8 -8
  63. package/dist/{chunk-PPLFDG7N.js → chunk-CVTIGS5K.js} +3 -3
  64. package/dist/{chunk-IDGWNOBX.js → chunk-D2LSYXLW.js} +1 -1
  65. package/dist/{chunk-5ZDNSYTO.js → chunk-D3M5VOC5.js} +3 -3
  66. package/dist/{chunk-PGHROSLJ.js → chunk-DH3M5X3Y.js} +4 -4
  67. package/dist/{chunk-LRQEIKFT.js → chunk-DHVRVI7F.js} +5 -5
  68. package/dist/{chunk-PUTPYYE4.js → chunk-DL6PEJWH.js} +5 -2
  69. package/dist/{chunk-DDCXMXAD.js → chunk-DWFWF6IR.js} +30 -22
  70. package/dist/{chunk-BUG5AOPJ.js → chunk-DX5Y3L5B.js} +2 -2
  71. package/dist/{chunk-52XHPMCX.js → chunk-E26Z73S3.js} +1 -1
  72. package/dist/{chunk-YWH7HWDP.js → chunk-E4IR34CF.js} +332 -328
  73. package/dist/{chunk-BTJYK56C.js → chunk-ELRE6LVJ.js} +3 -3
  74. package/dist/{chunk-XLP34AJR.js → chunk-EOXNEA4Z.js} +2 -2
  75. package/dist/{chunk-7E7VKASF.js → chunk-ERDQIRUL.js} +4 -4
  76. package/dist/{chunk-MPOWSPBD.js → chunk-EWKJDXH6.js} +3 -3
  77. package/dist/{chunk-MVLAPENI.js → chunk-EZJHKHWU.js} +3 -3
  78. package/dist/{chunk-TY7EHE4Q.js → chunk-FFOFGL2O.js} +2 -2
  79. package/dist/{chunk-UHVKV5IF.js → chunk-FNXU56VT.js} +1 -1
  80. package/dist/{chunk-PHAZT6EB.js → chunk-G3U5CUF3.js} +1 -1
  81. package/dist/{chunk-ON3CGL3V.js → chunk-GDIBE57N.js} +2 -2
  82. package/dist/{chunk-VVXSMYXQ.js → chunk-GEOJA37C.js} +3 -3
  83. package/dist/{chunk-CUO2HF4M.js → chunk-GIVMQDSK.js} +2 -2
  84. package/dist/{chunk-NFST2HIM.js → chunk-GRSZAGJB.js} +2 -2
  85. package/dist/{chunk-AGTBMLNM.js → chunk-GVIJFPZV.js} +2 -2
  86. package/dist/{chunk-CKIYT34K.js → chunk-H3LEOZVK.js} +1 -1
  87. package/dist/{chunk-UIMXEY4U.js → chunk-H7DTMLAR.js} +7 -7
  88. package/dist/{chunk-7HQC5MDZ.js → chunk-HFIVZJJD.js} +1 -1
  89. package/dist/{chunk-IT2QBRVS.js → chunk-HFUI6LVF.js} +1 -1
  90. package/dist/chunk-HOIEN7O4.js +31 -0
  91. package/dist/{chunk-WGWKT7ME.js → chunk-HTGJOOXE.js} +12 -4
  92. package/dist/{chunk-GWSMTN55.js → chunk-IE6BIB3L.js} +53 -1
  93. package/dist/{chunk-YFWFCKKF.js → chunk-IGZQYMZA.js} +7638 -7451
  94. package/dist/{chunk-IO7PRQQC.js → chunk-J6VYWZSO.js} +1 -1
  95. package/dist/{chunk-OZDELWQP.js → chunk-JKLWQUSV.js} +1 -1
  96. package/dist/{chunk-WUY74LHU.js → chunk-JOOKM2NC.js} +2 -2
  97. package/dist/{chunk-BR7GOCQJ.js → chunk-JQZ5WP7L.js} +1 -1
  98. package/dist/{chunk-EBRN4YJH.js → chunk-JZVI2TMX.js} +3 -3
  99. package/dist/{chunk-R2LP7QPB.js → chunk-K2EJQ44S.js} +1 -1
  100. package/dist/{chunk-YOMFN6HH.js → chunk-KYKQO4VN.js} +2 -2
  101. package/dist/{chunk-QJDMX53S.js → chunk-LO5USUM4.js} +1 -1
  102. package/dist/{chunk-L5CBCPUH.js → chunk-M3IHARIW.js} +13 -13
  103. package/dist/{chunk-664QGMR4.js → chunk-M5TTYUZM.js} +2 -2
  104. package/dist/{chunk-IJYIIHGK.js → chunk-MK23FXLH.js} +1 -1
  105. package/dist/{chunk-7QFLMCTD.js → chunk-MPC3OODR.js} +36 -5
  106. package/dist/{chunk-DUZ6Z2ZN.js → chunk-MSC5KBCE.js} +1 -1
  107. package/dist/{chunk-KRYXZVA2.js → chunk-N6PAWR5C.js} +3 -3
  108. package/dist/{chunk-RRT6URIP.js → chunk-NJPLH762.js} +2 -2
  109. package/dist/{chunk-Q2TT62RQ.js → chunk-NLVIE7VN.js} +4 -4
  110. package/dist/{chunk-XD5T43S7.js → chunk-O2BLY7PO.js} +1 -1
  111. package/dist/{chunk-SEC76O65.js → chunk-O2INZCGB.js} +1 -1
  112. package/dist/{chunk-NCJSN6SV.js → chunk-O4K22EFS.js} +5 -5
  113. package/dist/{chunk-L27Z3PZT.js → chunk-O5U3Y5DX.js} +1 -1
  114. package/dist/{chunk-MP52CUHL.js → chunk-OD7XWF5T.js} +2 -2
  115. package/dist/{chunk-7QFFS657.js → chunk-OEGWTN6N.js} +1 -1
  116. package/dist/{chunk-2GRCTZNS.js → chunk-OL7RHRNJ.js} +1 -1
  117. package/dist/{chunk-EKSS3KI7.js → chunk-OMZSPAK5.js} +1 -1
  118. package/dist/{chunk-RCGNYXWK.js → chunk-OPSGEOCO.js} +27 -19
  119. package/dist/{chunk-IHX3AFTY.js → chunk-PGITR2WX.js} +7 -4
  120. package/dist/{chunk-XEVAW42J.js → chunk-PS7WBIPK.js} +10 -10
  121. package/dist/{chunk-HVG656G6.js → chunk-PYTF6VHF.js} +6 -4
  122. package/dist/{chunk-OIO7YMBP.js → chunk-QGQCWG7F.js} +1 -1
  123. package/dist/{chunk-CXFW7YPT.js → chunk-ROESFEBP.js} +62 -47
  124. package/dist/{chunk-VCSQLM36.js → chunk-RV3HR3BZ.js} +5 -5
  125. package/dist/{chunk-UVPLW55S.js → chunk-SALNTRJA.js} +10 -2
  126. package/dist/{chunk-LKWWY6WN.js → chunk-SE4NOUB6.js} +1 -1
  127. package/dist/{chunk-JPEIUGS5.js → chunk-SM5PNCDI.js} +1 -1
  128. package/dist/{chunk-W4AR7UZH.js → chunk-SNKBI4YB.js} +2 -2
  129. package/dist/{chunk-43CQTZGB.js → chunk-SV72WLBE.js} +2 -2
  130. package/dist/{chunk-JDXALWOM.js → chunk-SYKUNH25.js} +1 -1
  131. package/dist/{chunk-CNXZCMJZ.js → chunk-TAXMLPTE.js} +2 -2
  132. package/dist/{chunk-QTZICZWT.js → chunk-TLDIP7Y3.js} +16 -12
  133. package/dist/{chunk-EGR2ZFFP.js → chunk-TLGQQ324.js} +4 -4
  134. package/dist/{chunk-CWIOKI2R.js → chunk-U5MILT4G.js} +1 -1
  135. package/dist/{chunk-YQSVPHOS.js → chunk-UDLWVQ74.js} +8 -5
  136. package/dist/{chunk-6XRXUMFG.js → chunk-UGKUGYHD.js} +1 -1
  137. package/dist/{chunk-EUP7ODOV.js → chunk-UJTLTFB6.js} +1 -1
  138. package/dist/{chunk-4GPKDDQZ.js → chunk-V3O4AFO3.js} +9 -9
  139. package/dist/{chunk-2ZOJCSLJ.js → chunk-VBEDZGBW.js} +3 -3
  140. package/dist/{chunk-PVF32NRA.js → chunk-VI2LLFW6.js} +2 -2
  141. package/dist/{chunk-6LONEKJR.js → chunk-VLFBOKZX.js} +5743 -5615
  142. package/dist/{chunk-Z72VXQPN.js → chunk-VSM7OIG2.js} +2 -2
  143. package/dist/{chunk-4RPIEGL3.js → chunk-VXE46PXX.js} +1 -1
  144. package/dist/{chunk-LH5FRVAO.js → chunk-W2OXNTHG.js} +3 -3
  145. package/dist/{chunk-4DJGUZJR.js → chunk-WEU6WLVT.js} +2 -2
  146. package/dist/{chunk-BPYNILOZ.js → chunk-WGHJUGNU.js} +11 -9
  147. package/dist/{chunk-HOCV5AW6.js → chunk-WJIWXHXK.js} +8 -4
  148. package/dist/{chunk-CPSD7337.js → chunk-WLNHZ2OM.js} +9 -9
  149. package/dist/{chunk-HCQXGGVY.js → chunk-WQZQMADW.js} +14 -14
  150. package/dist/{chunk-DY7PQLIE.js → chunk-WTJZ5QFR.js} +42 -5
  151. package/dist/{chunk-CKIVYAKG.js → chunk-X3IVUSOX.js} +2 -2
  152. package/dist/{chunk-LRWWCTSJ.js → chunk-X3UXEB2U.js} +2 -2
  153. package/dist/{chunk-ICDGP335.js → chunk-XMT4MG6W.js} +9 -9
  154. package/dist/{chunk-4WSJ5MUN.js → chunk-XYP4T6TQ.js} +1 -1
  155. package/dist/{chunk-PGJYA6I3.js → chunk-Y6CZFX5X.js} +65 -20
  156. package/dist/{chunk-GTC2STHN.js → chunk-Z642P33A.js} +4 -4
  157. package/dist/{chunk-CLRHKYOK.js → chunk-ZAWQJOTW.js} +8 -8
  158. package/dist/{chunk-BW4H55SU.js → chunk-ZCLC3KVY.js} +1 -1
  159. package/dist/{chunk-PCKKKICA.js → chunk-ZFOV3R2L.js} +4 -4
  160. package/dist/{chunk-ANYW22IT.js → chunk-ZO5NHAF3.js} +1 -1
  161. package/dist/{chunk-AN6KWGYI.js → chunk-ZYNNZ5DE.js} +2 -2
  162. package/dist/{clean-VB6BH3FV.js → clean-6ODSABBF.js} +34 -32
  163. package/dist/cli.js +70 -70
  164. package/dist/{cloud-7KRPD2K4.js → cloud-IMYQB5RC.js} +4 -4
  165. package/dist/{cloud-A67BW6OH.js → cloud-NTKLXMBS.js} +9 -8
  166. package/dist/{cloudrun-VKBARVVT.js → cloudrun-JNLDP33J.js} +12 -11
  167. package/dist/{compare-SE55PMC3.js → compare-VLYZ6ZS4.js} +54 -52
  168. package/dist/{compiler-WK7ABGRW.js → compiler-7M2UCEWG.js} +7 -6
  169. package/dist/{component-XT2AT3RY.js → component-KMUHKZ4R.js} +4 -3
  170. package/dist/{compositions-ZZWLQNDQ.js → compositions-ESLWNOMS.js} +23 -23
  171. package/dist/{contactSheet-MXOASCDR.js → contactSheet-4YF7U6U7.js} +5 -4
  172. package/dist/contract/path-policy.json +12 -2
  173. package/dist/{curve-4RQQKZ2K.js → curve-7RPSNRPE.js} +21 -20
  174. package/dist/{cuts-M3QU2CBE.js → cuts-KBAAZSPS.js} +22 -21
  175. package/dist/{delete-5ZZNPK5G.js → delete-EP5Z7HKF.js} +14 -13
  176. package/dist/{deploy-VR5SQP4U.js → deploy-MVR63JLD.js} +14 -13
  177. package/dist/{describeProject-NU5BVVIA.js → describeProject-NBVZT5EN.js} +15 -14
  178. package/dist/{destroy-FFS62PAW.js → destroy-DQKIT574.js} +13 -12
  179. package/dist/{deterministicFonts-FQQNGORI.js → deterministicFonts-LYBMXXBW.js} +5 -4
  180. package/dist/{diff-NQGTF6GR.js → diff-RI3FTMOZ.js} +57 -56
  181. package/dist/{dist-6GYOC3BU.js → dist-G7VFX23I.js} +8 -4
  182. package/dist/{dist-APXZ5EN2.js → dist-LRGTXDSM.js} +3 -3
  183. package/dist/{dist-B7IBHWIW.js → dist-TOOMD57O.js} +19 -17
  184. package/dist/{doctor-FATJGTPD.js → doctor-43YNRCRB.js} +24 -23
  185. package/dist/{energy-PHDK6SKL.js → energy-YCH36KCC.js} +22 -21
  186. package/dist/{events-OIWXSBZA.js → events-6RJBITYN.js} +24 -23
  187. package/dist/{events-RXVHG2NT.js → events-JCPYG3CD.js} +6 -6
  188. package/dist/{events-25VQ2O66.js → events-VUR27EF6.js} +12 -11
  189. package/dist/{execute-MKP4Z573.js → execute-OXMKWIFI.js} +44 -43
  190. package/dist/{extract-YYNYXPOC.js → extract-XGD2RDEX.js} +24 -23
  191. package/dist/{face-JSTMFQRM.js → face-XCNWNTGN.js} +23 -22
  192. package/dist/{feedback-PY6LMZCX.js → feedback-JNFDVBFV.js} +27 -26
  193. package/dist/{ffmpeg-KLIB55FK.js → ffmpeg-YQLAJUEA.js} +14 -13
  194. package/dist/{figma-ACFOXVPM.js → figma-XXGHYEB3.js} +3 -3
  195. package/dist/fontLocalizeCli.js +22 -20
  196. package/dist/{frames-BLZCBXO7.js → frames-PEMWFRRY.js} +24 -23
  197. package/dist/{generate-DMVEKZEV.js → generate-H5M4QSJR.js} +41 -40
  198. package/dist/{get-3WZDQ5YM.js → get-R6Y2OE5P.js} +14 -13
  199. package/dist/{gpuPolicy-TT6UCOLQ.js → gpuPolicy-2WVDQYZA.js} +14 -13
  200. package/dist/{grade-compare-F5DJ53XH.js → grade-compare-KFXPZFDL.js} +54 -52
  201. package/dist/{gsapParserAcorn-SKGP4R4N.js → gsapParserAcorn-RODCGO2L.js} +1 -1
  202. package/dist/hangReport.js +2 -2
  203. package/dist/{heifImagePrep-UV23RWOG.js → heifImagePrep-VLKYA5QZ.js} +18 -16
  204. package/dist/{help-QMP5KFYW.js → help-T3XUX5RI.js} +2 -2
  205. package/dist/{history-UOZ4RDEZ.js → history-QJPUCUUC.js} +25 -23
  206. package/dist/hyperframe.manifest.json +1 -1
  207. package/dist/hyperframe.runtime.iife.js +67 -67
  208. package/dist/hyperframes-player.global.js +1 -1
  209. package/dist/{index-gen-OPMQ5WSN.js → index-gen-3DWPA4FO.js} +14 -12
  210. package/dist/{info-A6KSO64E.js → info-556DHJHJ.js} +25 -25
  211. package/dist/{init-OQU46K3Q.js → init-P62TPWR3.js} +46 -45
  212. package/dist/{ink-HGRKLGII.js → ink-SRN65OZH.js} +22 -21
  213. package/dist/{inspect-BKENKUXF.js → inspect-U5FWQQFB.js} +53 -52
  214. package/dist/{installer-Z6FTR7BJ.js → installer-3TNMANQV.js} +9 -8
  215. package/dist/{keyframes-UDQGWKPW.js → keyframes-FPGEFGCH.js} +63 -28
  216. package/dist/{lambda-SHXQFHLE.js → lambda-YJY2MYWL.js} +24 -23
  217. package/dist/{layout-CJAVQ4D3.js → layout-QIKSVA44.js} +53 -52
  218. package/dist/{lint-RAPNYPWS.js → lint-RD33ESM5.js} +20 -20
  219. package/dist/{lintProject-JZRM7UKH.js → lintProject-ZWLXB3A2.js} +3 -3
  220. package/dist/{list-4BKFMJQN.js → list-FFO3WOB2.js} +14 -13
  221. package/dist/{localPage-BJW2TP77.js → localPage-DHIBMNJH.js} +15 -14
  222. package/dist/{login-S5VZAGCI.js → login-IMFRQOEQ.js} +8 -8
  223. package/dist/{logout-CCATTNTL.js → logout-SLBKP67J.js} +4 -4
  224. package/dist/{look-V2I6BGUY.js → look-ZZHJYSPC.js} +22 -21
  225. package/dist/{manager-WQWU5VJ4.js → manager-U4WEPCLV.js} +4 -4
  226. package/dist/{manager-OS2FYJI5.js → manager-V4LGD4HB.js} +15 -14
  227. package/dist/{manifest-QSJYVERU.js → manifest-TSKRUXZ5.js} +5 -1
  228. package/dist/{measure-RO5R2SUZ.js → measure-ZRBVN45B.js} +11 -11
  229. package/dist/{media-treatment-CS7BVMJW.js → media-treatment-3I2CMQJZ.js} +29 -24
  230. package/dist/{media-use-W3DGCKFB.js → media-use-2OYJ3CCN.js} +8 -8
  231. package/dist/{models-ZOGYW2SC.js → models-PRW7EWSV.js} +19 -18
  232. package/dist/{motionShot-IMRI7W7T.js → motionShot-VWILMLHQ.js} +38 -29
  233. package/dist/{normalize-audio-HXTFAZUK.js → normalize-audio-42XMF35K.js} +19 -17
  234. package/dist/{oauth-SAVP2YM4.js → oauth-V3HSFZRE.js} +2 -2
  235. package/dist/{open-LJDQ37KV.js → open-D52MJZQA.js} +29 -27
  236. package/dist/{parakeetRunner-CKMSKDH6.js → parakeetRunner-ZR2JWQZH.js} +22 -21
  237. package/dist/{pipeline-ZNCYOTUH.js → pipeline-W3H4JA6H.js} +17 -16
  238. package/dist/{plan-NCFS5T6W.js → plan-2HQOFJO7.js} +33 -32
  239. package/dist/{play-5UZDFFXJ.js → play-G5XDRDIZ.js} +46 -44
  240. package/dist/{preflight-H5XYFKFF.js → preflight-W2JDYF3T.js} +17 -16
  241. package/dist/{present-EFXUFT5Y.js → present-CYMTHQFM.js} +36 -34
  242. package/dist/{preview-RV7ALGDQ.js → preview-DTQPQZTK.js} +46 -45
  243. package/dist/{probe-UB6DM2Q3.js → probe-WZJK3YQI.js} +22 -21
  244. package/dist/{producer-2PKB5CW5.js → producer-2BSMSO6I.js} +1 -1
  245. package/dist/{progress-S36VQBQW.js → progress-KRDVC24C.js} +4 -3
  246. package/dist/{projectConfig-EUH5DILC.js → projectConfig-BYRVYLCC.js} +12 -11
  247. package/dist/{publication-VI2AXXKR.js → publication-UCFJLELD.js} +7 -6
  248. package/dist/{publish-225GB7R4.js → publish-KXVPSWCO.js} +36 -35
  249. package/dist/{refresh-X5ZLKQO5.js → refresh-2GVNKDQE.js} +4 -4
  250. package/dist/{remove-background-W2RLEQHJ.js → remove-background-O7BZNS3X.js} +18 -17
  251. package/dist/{render-WMWCCMWI.js → render-DGAP4Q2Z.js} +69 -67
  252. package/dist/{render-Y3JKWEN4.js → render-QOWXGWQZ.js} +54 -53
  253. package/dist/{render-KXKBSNOQ.js → render-TYS3LCIQ.js} +10 -9
  254. package/dist/{render-batch-GK6CDHKN.js → render-batch-TEQRGAUC.js} +10 -9
  255. package/dist/renderSetupWorker.js +7 -7
  256. package/dist/{resolver-5CRZD5XB.js → resolver-RN2JGGQL.js} +9 -8
  257. package/dist/{reverse-YPYKKQSJ.js → reverse-FUARFEG2.js} +1 -1
  258. package/dist/{run-FQ76QNES.js → run-V722HMUG.js} +12 -11
  259. package/dist/{sam-A4NXDWSU.js → sam-KHLM2DJA.js} +4 -4
  260. package/dist/{screenshotCapture-R6VE66NR.js → screenshotCapture-4BB4LUMX.js} +17 -16
  261. package/dist/{service-P3IKHZFC.js → service-ZPCHJY6B.js} +23 -22
  262. package/dist/{share-BU4VQL3B.js → share-PXUN7AH7.js} +28 -27
  263. package/dist/{sherpa-44GLXY3A.js → sherpa-LT6Y7IGM.js} +21 -20
  264. package/dist/sherpaWorker.js +6 -5
  265. package/dist/{sites-TAX3JLNX.js → sites-WWCABDSX.js} +4 -3
  266. package/dist/skills/hyperframes/references/plugin-installation.md +12 -0
  267. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +47 -9
  268. package/dist/skills/media-use/audio/scripts/audio.mjs +24 -7
  269. package/dist/skills/media-use/audio/scripts/carve.mjs +10 -82
  270. package/dist/skills/media-use/audio/scripts/lib/audio-carve.mjs +4 -0
  271. package/dist/skills/media-use/audio/scripts/lib/media-record.mjs +25 -7
  272. package/dist/skills/media-use/audio/scripts/lib/project-path.mjs +56 -0
  273. package/dist/skills/media-use/audio/scripts/lib/recording.mjs +66 -3
  274. package/dist/skills/media-use/audio/scripts/wait-bgm.mjs +12 -7
  275. package/dist/skills/media-use/references/audio.md +2 -2
  276. package/dist/skills/media-use/references/mixing.md +1 -1
  277. package/dist/skills/media-use/scripts/lib/index-gen.mjs +13 -11
  278. package/dist/skills/media-use/scripts/lib/manifest.mjs +51 -4
  279. package/dist/{skills-H4OZQ6VR.js → skills-G63W5GD5.js} +17 -16
  280. package/dist/{skillsUpdateCheck-U3XZX7UE.js → skillsUpdateCheck-2T3JVDAA.js} +6 -6
  281. package/dist/{snapshot-FJQVXBFB.js → snapshot-EVSKTVDG.js} +89 -78
  282. package/dist/{src-O6BHCR4O.js → src-K5FSMLTB.js} +22 -20
  283. package/dist/{src-PAM5LJ6K.js → src-R57EQQSI.js} +28 -19
  284. package/dist/{start-R7CYOQ5S.js → start-XBCYKGBV.js} +40 -39
  285. package/dist/{state-YFRV6TQH.js → state-FO64CPYE.js} +4 -3
  286. package/dist/{staticProjectServer-4X2OSUN4.js → staticProjectServer-Q6VR7CXT.js} +32 -30
  287. package/dist/{status-VN3FAN4M.js → status-E5XIWRCQ.js} +37 -34
  288. package/dist/studio/assets/{hyperframes-player-SRLbmEDB.js → hyperframes-player-B78JDyI_.js} +1 -1
  289. package/dist/studio/assets/{index-CgyBYe2L.js → index-D7ICtobF.js} +178 -178
  290. package/dist/studio/assets/{index-yuN1pZrv.js → index-ww7-RmuM.js} +1 -1
  291. package/dist/studio/assets/{pausedVideoDecoder-DtvSF8bV.js → pausedVideoDecoder-Dbe8Cmab.js} +1 -1
  292. package/dist/studio/index.html +1 -1
  293. package/dist/{studio-api-V3TMIWFB.js → studio-api-GMJVYGET.js} +19 -17
  294. package/dist/{studioServer-GY2ZTR2E.js → studioServer-MIQCMK6U.js} +117 -101
  295. package/dist/subCompositionWorker.js +1162 -0
  296. package/dist/{sync-2V3JYCDE.js → sync-WJOFN6VN.js} +22 -21
  297. package/dist/{synthesize-TQELPMS5.js → synthesize-FXM7ZD6J.js} +6 -5
  298. package/dist/{system-2YOII5LZ.js → system-DBUN5UDD.js} +3 -3
  299. package/dist/{telemetry-KMRZ3IJV.js → telemetry-HZ4P4DMC.js} +12 -11
  300. package/dist/{templates-EEFY4FPS.js → templates-KFZZSSKW.js} +29 -28
  301. package/dist/{timeline-HSRGYZ3Q.js → timeline-5M6DPCXF.js} +37 -35
  302. package/dist/{tokens-NYFORL53.js → tokens-H4NPNRFR.js} +3 -2
  303. package/dist/{transcribe-CNIQYQ52.js → transcribe-6STI2ALX.js} +47 -46
  304. package/dist/{transcribe-GFFWRWK3.js → transcribe-7PE5UH7J.js} +18 -17
  305. package/dist/{tts-NPMDYSXP.js → tts-D7CLD3AD.js} +1 -1
  306. package/dist/{update-BDMPUNNA.js → update-H3T3AVVG.js} +19 -18
  307. package/dist/{updateCheck-43UZ2USJ.js → updateCheck-TLCXUNBV.js} +5 -5
  308. package/dist/{upgrade-Z5B57UWL.js → upgrade-BZVTMCQU.js} +9 -8
  309. package/dist/{urlDownloader-KDZ76BKM.js → urlDownloader-FJXNC3IM.js} +13 -12
  310. package/dist/{validate-UQKZNR5K.js → validate-WTRVCEL5.js} +39 -37
  311. package/dist/{video-VR4363OG.js → video-TVO2U5F2.js} +17 -16
  312. package/dist/{voices-GUWAM3TH.js → voices-F3EW43LX.js} +39 -38
  313. package/dist/warmCheck.js +64 -63
  314. package/dist/warmCheckClient.js +2 -2
  315. package/package.json +1 -1
  316. package/dist/chunk-56T2OGYR.js +0 -5085
  317. package/dist/skills/hyperframes/scripts/lib/main-module.test.mjs +0 -46
  318. package/dist/skills/hyperframes/scripts/lib/windows-exe-search.test.mjs +0 -149
  319. package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +0 -231
  320. package/dist/skills/media-use/audio/scripts/audio.test.mjs +0 -166
  321. package/dist/skills/media-use/audio/scripts/carve.test.mjs +0 -254
  322. package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +0 -131
  323. package/dist/skills/media-use/audio/scripts/heygen-tts.test.mjs +0 -38
  324. package/dist/skills/media-use/audio/scripts/heygen-voice.test.mjs +0 -233
  325. package/dist/skills/media-use/audio/scripts/lib/audio-meta.test.mjs +0 -136
  326. package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +0 -135
  327. package/dist/skills/media-use/audio/scripts/lib/concurrency.test.mjs +0 -41
  328. package/dist/skills/media-use/audio/scripts/lib/gemini-auth.test.mjs +0 -86
  329. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +0 -253
  330. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +0 -627
  331. package/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +0 -239
  332. package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +0 -198
  333. package/dist/skills/media-use/audio/scripts/lib/sfx.test.mjs +0 -331
  334. package/dist/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +0 -181
  335. package/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +0 -183
  336. package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +0 -280
  337. package/dist/skills/media-use/audio/scripts/lib/voice-credit.test.mjs +0 -21
  338. package/dist/skills/media-use/audio/scripts/recording.test.mjs +0 -139
  339. package/dist/skills/media-use/audio/scripts/trusted-program.test.mjs +0 -106
  340. package/dist/skills/media-use/audio/scripts/wait-bgm.test.mjs +0 -108
  341. package/dist/skills/media-use/scripts/compatibility.test.mjs +0 -41
  342. package/dist/skills/media-use/scripts/dither.test.mjs +0 -176
  343. package/dist/skills/media-use/scripts/lib/adopt.test.mjs +0 -143
  344. package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +0 -178
  345. package/dist/skills/media-use/scripts/lib/cache.test.mjs +0 -110
  346. package/dist/skills/media-use/scripts/lib/candidates.test.mjs +0 -155
  347. package/dist/skills/media-use/scripts/lib/codex-provider.test.mjs +0 -34
  348. package/dist/skills/media-use/scripts/lib/config-lock.test.mjs +0 -79
  349. package/dist/skills/media-use/scripts/lib/coverage.test.mjs +0 -136
  350. package/dist/skills/media-use/scripts/lib/credit-limit.test.mjs +0 -39
  351. package/dist/skills/media-use/scripts/lib/cube-build.test.mjs +0 -80
  352. package/dist/skills/media-use/scripts/lib/cube-validate.test.mjs +0 -130
  353. package/dist/skills/media-use/scripts/lib/cutlist.test.mjs +0 -174
  354. package/dist/skills/media-use/scripts/lib/duck.test.mjs +0 -319
  355. package/dist/skills/media-use/scripts/lib/error-diffusion.test.mjs +0 -102
  356. package/dist/skills/media-use/scripts/lib/freeze.test.mjs +0 -138
  357. package/dist/skills/media-use/scripts/lib/grade-analyzer.test.mjs +0 -285
  358. package/dist/skills/media-use/scripts/lib/heygen-cli.test.mjs +0 -315
  359. package/dist/skills/media-use/scripts/lib/heygen-search.test.mjs +0 -49
  360. package/dist/skills/media-use/scripts/lib/heygen-video-provider.test.mjs +0 -435
  361. package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +0 -92
  362. package/dist/skills/media-use/scripts/lib/local-models.test.mjs +0 -220
  363. package/dist/skills/media-use/scripts/lib/local-run.test.mjs +0 -121
  364. package/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +0 -312
  365. package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +0 -331
  366. package/dist/skills/media-use/scripts/lib/lut-preset-provider.test.mjs +0 -199
  367. package/dist/skills/media-use/scripts/lib/manifest.test.mjs +0 -397
  368. package/dist/skills/media-use/scripts/lib/media-fetch.test.mjs +0 -197
  369. package/dist/skills/media-use/scripts/lib/media-home.test.mjs +0 -61
  370. package/dist/skills/media-use/scripts/lib/mflux-provider.test.mjs +0 -174
  371. package/dist/skills/media-use/scripts/lib/misses.test.mjs +0 -89
  372. package/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +0 -41
  373. package/dist/skills/media-use/scripts/lib/openverse.test.mjs +0 -219
  374. package/dist/skills/media-use/scripts/lib/parakeet-words.test.mjs +0 -44
  375. package/dist/skills/media-use/scripts/lib/prefs-store.concurrent.test.mjs +0 -173
  376. package/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +0 -245
  377. package/dist/skills/media-use/scripts/lib/probe.test.mjs +0 -221
  378. package/dist/skills/media-use/scripts/lib/recipe-store.test.mjs +0 -391
  379. package/dist/skills/media-use/scripts/lib/registry.test.mjs +0 -261
  380. package/dist/skills/media-use/scripts/lib/search.test.mjs +0 -32
  381. package/dist/skills/media-use/scripts/lib/specs.test.mjs +0 -157
  382. package/dist/skills/media-use/scripts/lib/stats.test.mjs +0 -165
  383. package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +0 -550
  384. package/dist/skills/media-use/scripts/lib/test-home.test.mjs +0 -10
  385. package/dist/skills/media-use/scripts/lib/transcriptCutFade.test.mjs +0 -33
  386. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +0 -59
  387. package/dist/skills/media-use/scripts/lib/usage.test.mjs +0 -54
  388. package/dist/skills/media-use/scripts/lib/voice-provider.test.mjs +0 -46
  389. package/dist/skills/media-use/scripts/resolve-plugin.test.mjs +0 -86
  390. package/dist/skills/media-use/scripts/transcribe.test.mjs +0 -215
  391. package/dist/skills/media-use/scripts/transcript-cut.test.mjs +0 -341
  392. package/dist/{chunk-BAWGEGKD.js → chunk-XMAU5ZQX.js} +3 -3
@@ -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-3GKGBYW3.js";
12
+ import {
13
+ isProjectIgnoredDir
14
+ } from "./chunk-HOIEN7O4.js";
13
15
  import {
14
16
  atomicTempPath,
15
17
  cannotHardLink,
@@ -18,12 +20,12 @@ import {
18
20
  refuseReadOnly,
19
21
  renameWithRetryAsync,
20
22
  replaceFileAtomically
21
- } from "./chunk-PUTPYYE4.js";
23
+ } from "./chunk-DL6PEJWH.js";
22
24
  import {
23
25
  isSafePath,
24
26
  realProjectRoot,
25
27
  realpath
26
- } from "./chunk-UVPLW55S.js";
28
+ } from "./chunk-SALNTRJA.js";
27
29
  import {
28
30
  namesAnotherNetworkRoot
29
31
  } from "./chunk-6EMFSRTW.js";
@@ -31,25 +33,9 @@ import {
31
33
  hyperframesCacheDir
32
34
  } from "./chunk-JOQR4AP6.js";
33
35
 
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";
36
+ // ../studio-server/dist/chunk-NKYZCHYS.js
51
37
  import { spawnSync } from "child_process";
52
- import { randomUUID as randomUUID2 } from "crypto";
38
+ import { randomUUID } from "crypto";
53
39
  import {
54
40
  closeSync,
55
41
  constants,
@@ -64,148 +50,14 @@ import {
64
50
  } from "fs";
65
51
  import { uptime } from "os";
66
52
  import { join } from "path";
67
- import { createHash as createHash2 } from "crypto";
53
+ import { readFileSync as readFileSync2 } from "fs";
54
+ import { isAbsolute, relative, resolve, sep } from "path";
55
+ import { createHash } from "crypto";
68
56
  import { lstatSync, readFileSync as readFileSync3, readdirSync } from "fs";
69
57
  import { lstat, readFile, readdir } from "fs/promises";
70
58
  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";
59
+ import { createHash as createHash2, randomUUID as randomUUID2 } from "crypto";
87
60
  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
61
  var HistoryBusyError = class extends Error {
210
62
  constructor(pid, url) {
211
63
  super(`This project's history is open in another process (pid ${pid}).`);
@@ -311,7 +163,7 @@ function deadHolder(file, pid) {
311
163
  return !holdsLock(file, pid) && !beingTaken(file);
312
164
  }
313
165
  function claim(file) {
314
- const draft = `${file}-${process.pid}-${randomUUID2()}.tmp`;
166
+ const draft = `${file}-${process.pid}-${randomUUID()}.tmp`;
315
167
  writeFileSync(draft, String(process.pid));
316
168
  try {
317
169
  try {
@@ -582,7 +434,7 @@ async function collectProjectSignatureFilesAsync(projectDir, dir, files, outputs
582
434
  }
583
435
  }
584
436
  function createProjectFingerprint(projectDir, files) {
585
- const hash = createHash2("sha256");
437
+ const hash = createHash("sha256");
586
438
  for (const entry of files) {
587
439
  hash.update(relative2(projectDir, entry.file));
588
440
  hash.update("\0");
@@ -637,7 +489,7 @@ function planSignature(dir, collected, excluding, signedAt) {
637
489
  (entry) => !excluding.has(relative2(dir, entry.file).split(sep2).join("/"))
638
490
  );
639
491
  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;
492
+ const cacheKey = excluding.size ? `${dir}\0${createHash("sha256").update([...excluding].sort().join("\0")).digest("hex")}` : dir;
641
493
  return { dir, files, cacheKey, fingerprint: createProjectFingerprint(dir, files), signedAt };
642
494
  }
643
495
  function hashSignatureEntry(hash, dir, entry, content) {
@@ -667,7 +519,7 @@ function createProjectSignature(projectDir, excluding = /* @__PURE__ */ new Set(
667
519
  const plan = planSignature(dir, collectProjectFiles(dir), excluding, Date.now());
668
520
  const cached = cachedSignature(plan);
669
521
  if (cached !== void 0) return cached;
670
- const hash = createHash2("sha256");
522
+ const hash = createHash("sha256");
671
523
  for (const entry of plan.files) {
672
524
  let content = null;
673
525
  if (entry.textContentEligible) {
@@ -688,7 +540,7 @@ async function createProjectSignatureAsync(projectDir, excluding = /* @__PURE__
688
540
  const plan = planSignature(dir, await collectProjectFilesAsync(dir), excluding, signedAt);
689
541
  const cached = cachedSignature(plan);
690
542
  if (cached !== void 0) return cached;
691
- const hash = createHash2("sha256");
543
+ const hash = createHash("sha256");
692
544
  for (let at = 0; at < plan.files.length; at += SIGNATURE_READ_BATCH) {
693
545
  const batch = plan.files.slice(at, at + SIGNATURE_READ_BATCH);
694
546
  const contents = await Promise.all(
@@ -700,6 +552,81 @@ async function createProjectSignatureAsync(projectDir, excluding = /* @__PURE__
700
552
  }
701
553
  return finishSignature(plan, hash);
702
554
  }
555
+ var RECEIPT_TTL_MS = 1e4;
556
+ var receipts = /* @__PURE__ */ new Map();
557
+ var overwriteListeners = /* @__PURE__ */ new Set();
558
+ function fileContentVersion(content) {
559
+ return hashVersion(createHash2("sha256").update(content).digest("hex"));
560
+ }
561
+ var DELETED_VERSION = '"deleted"';
562
+ function hashVersion(hex) {
563
+ return `"sha256:${hex}"`;
564
+ }
565
+ function hashOfVersion(version) {
566
+ return /^"sha256:([0-9a-f]{64})"$/.exec(version)?.[1];
567
+ }
568
+ function settledFileTag(stat4, now = Date.now()) {
569
+ if (now - stat4.ctimeMs < 3e3) return null;
570
+ return [stat4.ino, stat4.ctimeMs, stat4.size].map((n) => n.toString(36)).join("-");
571
+ }
572
+ function createWriteToken(requestToken) {
573
+ const token = requestToken?.trim();
574
+ return token && token.length <= 200 ? token : randomUUID2();
575
+ }
576
+ function onFileOverwritten(listener) {
577
+ overwriteListeners.add(listener);
578
+ return () => overwriteListeners.delete(listener);
579
+ }
580
+ function recordFileWriteReceipt(filePath, {
581
+ overwrote,
582
+ path,
583
+ version,
584
+ writeToken
585
+ }) {
586
+ const receipt = { path, version, writeToken };
587
+ const absPath = realFilePath(filePath);
588
+ if (overwrote !== void 0)
589
+ for (const listener of overwriteListeners) listener(absPath, receipt.version, overwrote);
590
+ const now = Date.now();
591
+ for (const [path2, list] of receipts) {
592
+ const live = list.filter((entry) => now - entry.recordedAt < RECEIPT_TTL_MS);
593
+ if (live.length > 0) receipts.set(path2, live);
594
+ else receipts.delete(path2);
595
+ }
596
+ const from = overwrote === void 0 ? void 0 : fileContentVersion(overwrote);
597
+ receipts.set(absPath, [
598
+ ...receipts.get(absPath) ?? [],
599
+ { ...receipt, ...from && { from }, recordedAt: now }
600
+ ]);
601
+ }
602
+ function clearFileWriteReceipt(filePath, version, writeToken) {
603
+ const absPath = realFilePath(filePath);
604
+ const current = (receipts.get(absPath) ?? []).filter(
605
+ (entry) => entry.version !== version || entry.writeToken !== writeToken
606
+ );
607
+ if (current.length > 0) receipts.set(absPath, current);
608
+ else receipts.delete(absPath);
609
+ }
610
+ function identifyFileWrite(filePath, expectedVersion) {
611
+ const receipt = newestReceipt(realFilePath(filePath), expectedVersion);
612
+ if (!receipt) return null;
613
+ const { path, version, writeToken, from } = receipt;
614
+ return { path, version, writeToken, ...from && { from } };
615
+ }
616
+ function newestReceipt(absPath, expectedVersion) {
617
+ const now = Date.now();
618
+ const current = (receipts.get(absPath) ?? []).filter(
619
+ (entry) => now - entry.recordedAt < RECEIPT_TTL_MS
620
+ );
621
+ if (current.length > 0) receipts.set(absPath, current);
622
+ else receipts.delete(absPath);
623
+ let receipt;
624
+ for (let i = current.length - 1; i >= 0 && !receipt; i -= 1) {
625
+ if (current[i]?.version === expectedVersion) receipt = current[i];
626
+ }
627
+ return receipt;
628
+ }
629
+ var consumeFileWriteReceipt = identifyFileWrite;
703
630
  var serving = /* @__PURE__ */ new Map();
704
631
  var keyOf = (path) => process.platform === "win32" ? resolve3(path).toLowerCase() : resolve3(path);
705
632
  function serveWhileOpen(path, stream) {
@@ -724,6 +651,83 @@ async function stopServingAndClose(path) {
724
651
  )
725
652
  );
726
653
  }
654
+
655
+ // ../studio-server/dist/chunk-RT5WAA4N.js
656
+ import { randomUUID as randomUUID5 } from "crypto";
657
+ import { mkdir as mkdir2, readdir as readdir3, rm as rm3, rmdir, stat as stat2, writeFile as writeFile2 } from "fs/promises";
658
+ import {
659
+ existsSync as existsSync4,
660
+ lstatSync as lstatSync4,
661
+ statSync as statSync4,
662
+ mkdirSync as mkdirSync5,
663
+ readdirSync as readdirSync3,
664
+ readFileSync as readFileSync6,
665
+ realpathSync,
666
+ rmSync as rmSync3
667
+ } from "fs";
668
+ import { basename as basename4, dirname as dirname6, isAbsolute as isAbsolute3, join as join8, relative as relative3, resolve as resolve5, sep as sep3 } from "path";
669
+ import { createHash as createHash3, randomUUID as randomUUID3 } from "crypto";
670
+ import { constants as constants2, createReadStream, createWriteStream } from "fs";
671
+ import {
672
+ chmod,
673
+ copyFile,
674
+ mkdir,
675
+ open,
676
+ readdir as readdir2,
677
+ readFile as readFile2,
678
+ rename,
679
+ rm,
680
+ stat,
681
+ writeFile
682
+ } from "fs/promises";
683
+ import { basename as basename2, dirname as dirname2, join as join2 } from "path";
684
+ import { pipeline } from "stream/promises";
685
+ import { lstatSync as lstatSync2, mkdirSync as mkdirSync2, renameSync, rmdirSync, rmSync as rmSync2 } from "fs";
686
+ import { basename, dirname, join as join3 } from "path";
687
+ import { extname as extname2 } from "path";
688
+ import { randomUUID as randomUUID32 } from "crypto";
689
+ import { readdirSync as readdirSync2, renameSync as renameSync2, statSync as statSync2 } from "fs";
690
+ import { lstat as lstat2, readdir as readdir22, rm as rm2 } from "fs/promises";
691
+ import { tmpdir } from "os";
692
+ import { dirname as dirname3, join as join4 } from "path";
693
+ import { randomUUID as randomUUID22 } from "crypto";
694
+ import { existsSync, mkdirSync as mkdirSync22, readFileSync as readFileSync4, statSync as statSync3, utimesSync } from "fs";
695
+ import { basename as basename3, join as join32, resolve as resolve4 } from "path";
696
+ import { createHash as createHash32, randomUUID as randomUUID4 } from "crypto";
697
+ import { createReadStream as createReadStream2, existsSync as existsSync3, readFileSync as readFileSync42, renameSync as renameSync3, statSync as statSync32 } from "fs";
698
+ import { isAbsolute as isAbsolute22, join as join7, resolve as resolve42 } from "path";
699
+ import { createHash as createHash22 } from "crypto";
700
+ import {
701
+ closeSync as closeSync2,
702
+ constants as constants22,
703
+ existsSync as existsSync2,
704
+ fstatSync as fstatSync2,
705
+ lstatSync as lstatSync22,
706
+ openSync as openSync2,
707
+ readFileSync as readFileSync22,
708
+ unlinkSync
709
+ } from "fs";
710
+ import { isAbsolute as isAbsolute4, join as join5, parse, relative as relative4, resolve as resolve22, sep as sep4 } from "path";
711
+ import {
712
+ closeSync as closeSync22,
713
+ constants as constants3,
714
+ fstatSync as fstatSync22,
715
+ lstatSync as lstatSync3,
716
+ openSync as openSync22,
717
+ mkdirSync as mkdirSync3,
718
+ readFileSync as readFileSync32,
719
+ readdirSync as readdirSync22,
720
+ rmSync as rmSync22,
721
+ ftruncateSync,
722
+ writeSync,
723
+ writeFileSync as writeFileSync2
724
+ } from "fs";
725
+ import { dirname as dirname4, join as join6, relative as relative22, resolve as resolve32, sep as sep22 } from "path";
726
+ import { closeSync as closeSync3, constants as constants4, mkdirSync as mkdirSync4, openSync as openSync3, readFileSync as readFileSync5, writeSync as writeSync2 } from "fs";
727
+ import { dirname as dirname5 } from "path";
728
+ import { readdirSync as readdirSync4 } from "fs";
729
+ import { rm as rm4, stat as stat3 } from "fs/promises";
730
+ import { join as join9 } from "path";
727
731
  var DRIVE = /^[a-z]:/i;
728
732
  function withoutTrailingDotsAndSpaces(name) {
729
733
  let end = name.length;
@@ -741,7 +745,7 @@ function folderWithin(root, path, make) {
741
745
  let folder = realProjectRoot(root);
742
746
  const names = path.split("/").slice(0, -1);
743
747
  for (const [depth, name] of names.entries()) {
744
- const next = join2(folder, name);
748
+ const next = join3(folder, name);
745
749
  let made = false;
746
750
  if (!lstatSync2(next, { throwIfNoEntry: false })) {
747
751
  if (!make) return null;
@@ -780,7 +784,7 @@ function assertLandedIn(folder, path) {
780
784
  throw changedWhileWriting(folder);
781
785
  }
782
786
  async function removeWithin(folder, path, keep) {
783
- const at = join2(folder, basename(path));
787
+ const at = join3(folder, basename(path));
784
788
  const standing = lstatSync2(at, { throwIfNoEntry: false });
785
789
  if (!standing) return;
786
790
  if (standing.isDirectory()) throw inTheWay(path);
@@ -812,7 +816,7 @@ var isSettling = (file, now) => Math.abs(now - Math.max(file.mtimeMs, file.ctime
812
816
  var unchanged = (before, after) => before.size === after.size && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs;
813
817
  function blobPath(dir, hash) {
814
818
  if (!BLOB_HASH.test(hash)) throw new Error("That is not a history blob.");
815
- return join3(dir, hash.slice(0, 2), hash);
819
+ return join2(dir, hash.slice(0, 2), hash);
816
820
  }
817
821
  var sha256 = (bytes) => createHash3("sha256").update(bytes).digest("hex");
818
822
  var damaged = () => new Error("History's copy of this version is damaged, so it was not used. Nothing was changed.");
@@ -853,8 +857,8 @@ function onRestoredInPlace(listener) {
853
857
  }
854
858
  async function cloneOrCopy(from, hash, root, path, beforeReplace) {
855
859
  const folder = folderWithin(root, path, true);
856
- const to = join3(folder, basename2(path));
857
- const servedAs = join3(root, path);
860
+ const to = join2(folder, basename2(path));
861
+ const servedAs = join2(root, path);
858
862
  refuseReadOnly(to);
859
863
  const temp = atomicTempPath(to);
860
864
  try {
@@ -902,7 +906,7 @@ var listDir = (path) => readdir2(path, { withFileTypes: true }).catch((error) =>
902
906
  });
903
907
  async function openBlobStore(dir) {
904
908
  const sizes = /* @__PURE__ */ new Map();
905
- const asideDir = join3(dirname2(dir), "aside");
909
+ const asideDir = join2(dirname2(dir), "aside");
906
910
  const asideSizes = /* @__PURE__ */ new Map();
907
911
  const holds = /* @__PURE__ */ new Map();
908
912
  await mkdir(dir, { recursive: true });
@@ -912,11 +916,11 @@ async function openBlobStore(dir) {
912
916
  ])
913
917
  for (const shard of await listDir(root)) {
914
918
  if (!shard.isDirectory()) {
915
- if (shard.name.startsWith("incoming-")) await rm(join3(root, shard.name), { force: true });
919
+ if (shard.name.startsWith("incoming-")) await rm(join2(root, shard.name), { force: true });
916
920
  continue;
917
921
  }
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);
922
+ for (const hash of await listDir(join2(root, shard.name)))
923
+ found.set(hash.name, (await stat(join2(root, shard.name, hash.name))).size);
920
924
  }
921
925
  for (const hash of asideSizes.keys()) holds.set(hash, /* @__PURE__ */ new Set(["*"]));
922
926
  const pathOf = (hash) => blobPath(sizes.has(hash) ? dir : asideDir, hash);
@@ -943,7 +947,7 @@ async function openBlobStore(dir) {
943
947
  const putBytes = async (bytes, mode) => {
944
948
  const hash = sha256(bytes);
945
949
  if (sizes.has(hash)) return hash;
946
- const temp = join3(dir, `incoming-${randomUUID3()}`);
950
+ const temp = join2(dir, `incoming-${randomUUID3()}`);
947
951
  try {
948
952
  await withFolderMadeIfMissing(dir, () => writeFile(temp, bytes, { mode }));
949
953
  await chmod(temp, mode & 4095);
@@ -959,7 +963,7 @@ async function openBlobStore(dir) {
959
963
  const putIfUnchanged = async (absPath) => {
960
964
  const small = await readIfSmall(absPath);
961
965
  if (small) return small.moved ? null : putBytes(small.bytes, small.mode);
962
- const temp = join3(dir, `incoming-${randomUUID3()}`);
966
+ const temp = join2(dir, `incoming-${randomUUID3()}`);
963
967
  await mkdir(dir, { recursive: true });
964
968
  const before = await stat(absPath);
965
969
  const moved = await cloneOrStream(absPath, temp).then(async () => !unchanged(before, await stat(absPath))).catch(async (error) => {
@@ -1013,7 +1017,7 @@ async function openBlobStore(dir) {
1013
1017
  () => false
1014
1018
  );
1015
1019
  if (!moved) {
1016
- const temp = join3(asideDir, `incoming-${randomUUID3()}`);
1020
+ const temp = join2(asideDir, `incoming-${randomUUID3()}`);
1017
1021
  await cloneOrStream(absPath, temp).catch(async (error) => {
1018
1022
  await rm(temp, { force: true });
1019
1023
  throw error;
@@ -1068,12 +1072,12 @@ function uncopiedOnlyHashes(log, sizeOf) {
1068
1072
  }
1069
1073
  return [...uncopied].filter((hash) => !copied.has(hash));
1070
1074
  }
1071
- var ID_PATH = join4(".hyperframes", "history-id");
1075
+ var ID_PATH = join32(".hyperframes", "history-id");
1072
1076
  var ID_SHAPE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
1073
1077
  var isHistoryId = (name) => ID_SHAPE.test(name);
1074
1078
  function readId(projectDir) {
1075
1079
  try {
1076
- const id = readFileSync4(join4(projectDir, ID_PATH), "utf-8").trim();
1080
+ const id = readFileSync4(join32(projectDir, ID_PATH), "utf-8").trim();
1077
1081
  return ID_SHAPE.test(id) ? id : null;
1078
1082
  } catch {
1079
1083
  return null;
@@ -1090,7 +1094,7 @@ function isRecordedFolder(historyDir, folder) {
1090
1094
  }
1091
1095
  function readRecord(historyDir) {
1092
1096
  try {
1093
- return JSON.parse(readFileSync4(join4(historyDir, "project.json"), "utf-8"));
1097
+ return JSON.parse(readFileSync4(join32(historyDir, "project.json"), "utf-8"));
1094
1098
  } catch {
1095
1099
  return null;
1096
1100
  }
@@ -1098,7 +1102,7 @@ function readRecord(historyDir) {
1098
1102
  function isCopyOf0878Folder(recordedDir, id, folder) {
1099
1103
  let there;
1100
1104
  try {
1101
- there = statSync2(recordedDir, { throwIfNoEntry: false });
1105
+ there = statSync3(recordedDir, { throwIfNoEntry: false });
1102
1106
  } catch {
1103
1107
  return false;
1104
1108
  }
@@ -1106,19 +1110,19 @@ function isCopyOf0878Folder(recordedDir, id, folder) {
1106
1110
  }
1107
1111
  function projectHistoryId(projectDir, historyRoot) {
1108
1112
  const dir = resolve4(projectDir);
1109
- const folder = statSync2(dir);
1113
+ const folder = statSync3(dir);
1110
1114
  let id = readId(dir);
1111
- if (!id && existsSync(join4(dir, ID_PATH)))
1115
+ if (!id && existsSync(join32(dir, ID_PATH)))
1112
1116
  throw new HistoryIdError(
1113
- `${join4(dir, ID_PATH)} holds no history id this version can read; move it aside to start anew.`
1117
+ `${join32(dir, ID_PATH)} holds no history id this version can read; move it aside to start anew.`
1114
1118
  );
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}
1119
+ if (!id || existsSync(join32(historyRoot, id)) && !isRecordedFolder(join32(historyRoot, id), folder)) {
1120
+ id = randomUUID22();
1121
+ mkdirOwnedWithinProject(dir, join32(dir, ".hyperframes"));
1122
+ replaceFileAtomically(join32(dir, ID_PATH), `${id}
1119
1123
  `);
1120
1124
  }
1121
- recordProject(join4(historyRoot, id), dir, folder);
1125
+ recordProject(join32(historyRoot, id), dir, folder);
1122
1126
  return id;
1123
1127
  }
1124
1128
  var HistoryIdError = class extends Error {
@@ -1130,7 +1134,7 @@ var HistoryIdError = class extends Error {
1130
1134
  function markUsed(historyDir) {
1131
1135
  const now = /* @__PURE__ */ new Date();
1132
1136
  try {
1133
- utimesSync(join4(historyDir, "project.json"), now, now);
1137
+ utimesSync(join32(historyDir, "project.json"), now, now);
1134
1138
  } catch {
1135
1139
  return;
1136
1140
  }
@@ -1142,8 +1146,8 @@ function recordProject(historyDir, dir, folder) {
1142
1146
  markUsed(historyDir);
1143
1147
  return;
1144
1148
  }
1145
- mkdirSync3(historyDir, { recursive: true });
1146
- replaceFileAtomically(join4(historyDir, "project.json"), JSON.stringify(record), 420);
1149
+ mkdirSync22(historyDir, { recursive: true });
1150
+ replaceFileAtomically(join32(historyDir, "project.json"), JSON.stringify(record), 420);
1147
1151
  }
1148
1152
  var DAY_MS = 24 * 60 * 60 * 1e3;
1149
1153
  var KEEP_GONE_PROJECT_HISTORY_MS = 14 * DAY_MS;
@@ -1151,7 +1155,7 @@ var PRUNED_PREFIX = ".pruned-";
1151
1155
  var LAST_PRUNE_FILE = ".last-prune";
1152
1156
  function listProjectHistories(historyRoot) {
1153
1157
  return namesIn(historyRoot).filter(isHistoryId).flatMap((id) => {
1154
- const home = join5(historyRoot, id);
1158
+ const home = join4(historyRoot, id);
1155
1159
  const projectDir = readRecord(home)?.dir;
1156
1160
  if (typeof projectDir !== "string" || readId(projectDir) !== id) return [];
1157
1161
  return [{ id, projectDir, lastUsedMs: lastUsed(home) }];
@@ -1192,13 +1196,13 @@ async function pruneWithin(historyRoot, {
1192
1196
  }
1193
1197
  async function pruneEntry(historyRoot, name, run) {
1194
1198
  if (name.startsWith(PRUNED_PREFIX)) {
1195
- if (!run.dryRun) await rm2(join5(historyRoot, name), { recursive: true, force: true });
1199
+ if (!run.dryRun) await rm2(join4(historyRoot, name), { recursive: true, force: true });
1196
1200
  return null;
1197
1201
  }
1198
1202
  return isHistoryId(name) ? pruneOne(historyRoot, name, run) : null;
1199
1203
  }
1200
1204
  async function pruneOne(historyRoot, id, run) {
1201
- const home = join5(historyRoot, id);
1205
+ const home = join4(historyRoot, id);
1202
1206
  if (abandonedProject(home, id, run.now, run.tempDir) === null) return null;
1203
1207
  const release = await takeUnlessBusy(home);
1204
1208
  if (!release) return null;
@@ -1228,11 +1232,11 @@ async function takeUnlessBusy(home) {
1228
1232
  }
1229
1233
  }
1230
1234
  function recheckAndMoveAway(historyRoot, id, { now, dryRun, tempDir }) {
1231
- const home = join5(historyRoot, id);
1235
+ const home = join4(historyRoot, id);
1232
1236
  const projectDir = abandonedProject(home, id, now, tempDir);
1233
1237
  if (projectDir === null) return null;
1234
1238
  if (dryRun) return { projectDir, trash: null };
1235
- const trash = join5(historyRoot, `${PRUNED_PREFIX}${id}-${randomUUID5()}`);
1239
+ const trash = join4(historyRoot, `${PRUNED_PREFIX}${id}-${randomUUID32()}`);
1236
1240
  renameSync2(home, trash);
1237
1241
  return { projectDir, trash };
1238
1242
  }
@@ -1244,30 +1248,30 @@ function abandonedProject(home, id, now, tempDir) {
1244
1248
  return projectGone(dir, id, record?.dev, tempDir) ? dir : null;
1245
1249
  }
1246
1250
  function projectGone(dir, id, dev, tempDir) {
1247
- if (!statSync3(join5(dir, ID_PATH), { throwIfNoEntry: false }))
1251
+ if (!statSync2(join4(dir, ID_PATH), { throwIfNoEntry: false }))
1248
1252
  return diskStillHere(dir, dev, tempDir);
1249
1253
  const there = readId(dir);
1250
1254
  return there !== null && there !== id;
1251
1255
  }
1252
1256
  function diskStillHere(dir, dev, tempDir) {
1253
1257
  let at = dir;
1254
- let stat4 = statSync3(at, { throwIfNoEntry: false });
1258
+ let stat4 = statSync2(at, { throwIfNoEntry: false });
1255
1259
  while (!stat4) {
1256
1260
  if (dirname3(at) === at) return false;
1257
1261
  at = dirname3(at);
1258
- stat4 = statSync3(at, { throwIfNoEntry: false });
1262
+ stat4 = statSync2(at, { throwIfNoEntry: false });
1259
1263
  }
1260
1264
  if (typeof dev === "number") return stat4.dev === dev;
1261
1265
  return at === dir || isSafePath(tempDir, at);
1262
1266
  }
1263
1267
  function lastUsed(home) {
1264
- const mtime = (file) => statSync3(join5(home, file), { throwIfNoEntry: false })?.mtimeMs ?? 0;
1268
+ const mtime = (file) => statSync2(join4(home, file), { throwIfNoEntry: false })?.mtimeMs ?? 0;
1265
1269
  return Math.max(mtime("project.json"), mtime("log.jsonl"));
1266
1270
  }
1267
1271
  async function bytesIn(dir) {
1268
1272
  let total = 0;
1269
- for (const entry of await readdir3(dir, { withFileTypes: true })) {
1270
- const path = join5(dir, entry.name);
1273
+ for (const entry of await readdir22(dir, { withFileTypes: true })) {
1274
+ const path = join4(dir, entry.name);
1271
1275
  total += entry.isDirectory() ? await bytesIn(path) : (await lstat2(path)).size;
1272
1276
  }
1273
1277
  return total;
@@ -1282,7 +1286,7 @@ function prunedWithinADay(stamp, now) {
1282
1286
  }
1283
1287
  var pruning = /* @__PURE__ */ new Set();
1284
1288
  function pruneGoneProjectHistoriesDaily(historyRoot, now, { onError, budgetMs } = {}) {
1285
- const stamp = join5(historyRoot, LAST_PRUNE_FILE);
1289
+ const stamp = join4(historyRoot, LAST_PRUNE_FILE);
1286
1290
  if (pruning.has(historyRoot) || prunedWithinADay(stamp, now)) return;
1287
1291
  pruning.add(historyRoot);
1288
1292
  setImmediate(() => {
@@ -1295,24 +1299,24 @@ var records = (state, kind) => [
1295
1299
  ...state[kind].unversioned
1296
1300
  ];
1297
1301
  var protectedRevisions = (state) => /* @__PURE__ */ new Set([state.currentRevision, ...state.renders?.retainedRevisions ?? []]);
1298
- var canonicalUnlessOnAnotherShare = (projectDir, path) => namesAnotherNetworkRoot(projectDir, path) ? resolve5(path) : realFilePath(path);
1302
+ var canonicalUnlessOnAnotherShare = (projectDir, path) => namesAnotherNetworkRoot(projectDir, path) ? resolve22(path) : realFilePath(path);
1299
1303
  var recordedFileGone = (projectDir, path) => namesAnotherNetworkRoot(projectDir, path) || !existsSync2(path);
1300
1304
  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())
1305
+ if (!isAbsolute4(path) || namesAnotherNetworkRoot(projectDir, path)) return false;
1306
+ if (parse(resolve22(path)).root.toLowerCase() !== parse(resolve22(projectDir)).root.toLowerCase())
1303
1307
  return false;
1304
- const parts = resolve5(path).split(sep3).map((part) => part.toLowerCase());
1308
+ const parts = resolve22(path).split(sep4).map((part) => part.toLowerCase());
1305
1309
  return parts.some(
1306
1310
  (part, i) => part === ".hyperframes" && parts[i + 1] === "artifacts" && parts[i + 2] === kind && i + 3 < parts.length
1307
1311
  );
1308
1312
  }
1309
1313
  function managedPath(projectDir, path, kind) {
1310
1314
  if (!spelledInsideArtifactsFolder(projectDir, path, kind)) return false;
1311
- const canonicalProject = realFilePath(resolve5(projectDir));
1315
+ const canonicalProject = realFilePath(resolve22(projectDir));
1312
1316
  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;
1317
+ const root = join5(canonicalProject, ".hyperframes", "artifacts", kind);
1318
+ const rel = relative4(root, canonicalPath);
1319
+ return isAbsolute4(path) && rel !== "" && rel !== ".." && !rel.startsWith(`..${sep4}`) && !isAbsolute4(rel) && pinProjectRecord(canonicalProject, relative4(canonicalProject, canonicalPath)) === canonicalPath;
1316
1320
  }
1317
1321
  function updateLatest(state) {
1318
1322
  for (const kind of kinds) {
@@ -1369,12 +1373,12 @@ function restoreCleaned(state, item) {
1369
1373
  function stillPendingAfterUnlink(item) {
1370
1374
  let descriptor;
1371
1375
  try {
1372
- descriptor = openSync2(item.path, constants3.O_RDONLY | constants3.O_NOFOLLOW);
1376
+ descriptor = openSync2(item.path, constants22.O_RDONLY | constants22.O_NOFOLLOW);
1373
1377
  const stat4 = fstatSync2(descriptor);
1374
1378
  if (!stat4.isFile() || stat4.isSymbolicLink()) return false;
1375
- const hash = createHash4("sha256").update(readFileSync5(descriptor)).digest("hex");
1379
+ const hash = createHash22("sha256").update(readFileSync22(descriptor)).digest("hex");
1376
1380
  if (hash !== item.hash) return false;
1377
- const current = lstatSync3(item.path);
1381
+ const current = lstatSync22(item.path);
1378
1382
  if (current.dev !== stat4.dev || current.ino !== stat4.ino) return false;
1379
1383
  unlinkSync(item.path);
1380
1384
  return false;
@@ -1409,16 +1413,16 @@ var SNAPSHOT_GRACE_MS = 24 * 60 * 60 * 1e3;
1409
1413
  var OWNER = ".capture-owner.json";
1410
1414
  var ownedMarkers = /* @__PURE__ */ new Map();
1411
1415
  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");
1416
+ var rootOf = (project) => join6(resolve32(project), ".hyperframes", "artifacts", "snapshots");
1413
1417
  function ordinaryPath(project, path) {
1414
- const root = resolve6(project);
1415
- const rel = relative4(root, path);
1416
- if (rel === ".." || rel.startsWith(`..${sep4}`)) return false;
1418
+ const root = resolve32(project);
1419
+ const rel = relative22(root, path);
1420
+ if (rel === ".." || rel.startsWith(`..${sep22}`)) return false;
1417
1421
  let current = root;
1418
- for (const part of rel.split(sep4).filter(Boolean)) {
1419
- current = join7(current, part);
1422
+ for (const part of rel.split(sep22).filter(Boolean)) {
1423
+ current = join6(current, part);
1420
1424
  try {
1421
- if (lstatSync4(current).isSymbolicLink()) return false;
1425
+ if (lstatSync3(current).isSymbolicLink()) return false;
1422
1426
  } catch {
1423
1427
  return false;
1424
1428
  }
@@ -1426,11 +1430,11 @@ function ordinaryPath(project, path) {
1426
1430
  return true;
1427
1431
  }
1428
1432
  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);
1433
+ let parent = resolve32(project);
1434
+ for (const part of relative22(parent, path).split(sep22).filter(Boolean)) {
1435
+ parent = join6(parent, part);
1432
1436
  try {
1433
- mkdirSync4(parent);
1437
+ mkdirSync3(parent);
1434
1438
  } catch (error) {
1435
1439
  if (!(error instanceof Error && "code" in error && error.code === "EEXIST")) throw error;
1436
1440
  }
@@ -1441,14 +1445,14 @@ function ownSnapshotRun(project, path) {
1441
1445
  const root = rootOf(project);
1442
1446
  if (dirname4(path) !== root || !UUID.test(path.slice(root.length + 1))) return;
1443
1447
  createSnapshotParents(project, root);
1444
- mkdirSync4(path);
1445
- const marker = join7(path, OWNER);
1446
- const fd = openSync3(marker, "wx");
1448
+ mkdirSync3(path);
1449
+ const marker = join6(path, OWNER);
1450
+ const fd = openSync22(marker, "wx");
1447
1451
  try {
1448
1452
  writeFileSync2(fd, JSON.stringify({ version: 1, pid: process.pid }));
1449
- ownedMarkers.set(marker, fstatSync3(fd));
1453
+ ownedMarkers.set(marker, fstatSync22(fd));
1450
1454
  } finally {
1451
- closeSync3(fd);
1455
+ closeSync22(fd);
1452
1456
  }
1453
1457
  }
1454
1458
  function missingFile(error) {
@@ -1456,7 +1460,7 @@ function missingFile(error) {
1456
1460
  }
1457
1461
  function retainedOutput(path) {
1458
1462
  try {
1459
- lstatSync4(join7(path, ".user-output"));
1463
+ lstatSync3(join6(path, ".user-output"));
1460
1464
  return true;
1461
1465
  } catch (error) {
1462
1466
  return !missingFile(error);
@@ -1482,24 +1486,24 @@ function sameOwnerFile(before, current) {
1482
1486
  return current.dev === before.dev && current.ino === before.ino;
1483
1487
  }
1484
1488
  function openOwner(marker, access) {
1485
- const fd = openSync3(marker, access | (constants4.O_NOFOLLOW ?? 0) | (constants4.O_NONBLOCK ?? 0));
1489
+ const fd = openSync22(marker, access | (constants3.O_NOFOLLOW ?? 0) | (constants3.O_NONBLOCK ?? 0));
1486
1490
  try {
1487
- const current = fstatSync3(fd);
1488
- const named = lstatSync4(marker);
1491
+ const current = fstatSync22(fd);
1492
+ const named = lstatSync3(marker);
1489
1493
  if (!ordinaryOwner(current) || !ordinaryOwner(named) || !sameOwnerFile(named, current))
1490
1494
  throw new Error("Snapshot owner changed while opening.");
1491
1495
  return fd;
1492
1496
  } catch (error) {
1493
- closeSync3(fd);
1497
+ closeSync22(fd);
1494
1498
  throw error;
1495
1499
  }
1496
1500
  }
1497
1501
  function readOwner(marker) {
1498
- const fd = openOwner(marker, constants4.O_RDONLY);
1502
+ const fd = openOwner(marker, constants3.O_RDONLY);
1499
1503
  try {
1500
- return JSON.parse(readFileSync6(fd, "utf8"));
1504
+ return JSON.parse(readFileSync32(fd, "utf8"));
1501
1505
  } finally {
1502
- closeSync3(fd);
1506
+ closeSync22(fd);
1503
1507
  }
1504
1508
  }
1505
1509
  function releasedOwner(owner) {
@@ -1508,7 +1512,7 @@ function releasedOwner(owner) {
1508
1512
  function liveOwner(path) {
1509
1513
  if (retainedOutput(path)) return true;
1510
1514
  try {
1511
- const marker = join7(path, OWNER);
1515
+ const marker = join6(path, OWNER);
1512
1516
  const owner = readOwner(marker);
1513
1517
  if (releasedOwner(owner)) return false;
1514
1518
  const pid = ownerPid(owner);
@@ -1522,8 +1526,8 @@ function recordsOf(state) {
1522
1526
  }
1523
1527
  function containingRun(root, path) {
1524
1528
  if (!path) return null;
1525
- const name = relative4(root, resolve6(path)).split(sep4)[0];
1526
- return name && UUID.test(name) ? join7(root, name) : null;
1529
+ const name = relative22(root, resolve32(path)).split(sep22)[0];
1530
+ return name && UUID.test(name) ? join6(root, name) : null;
1527
1531
  }
1528
1532
  function keepContainingRun(keep, root, path) {
1529
1533
  const run = containingRun(root, path);
@@ -1543,14 +1547,14 @@ function protectedRuns(root, state, records2) {
1543
1547
  function runsOnDisk(root) {
1544
1548
  let entries;
1545
1549
  try {
1546
- entries = readdirSync3(root, { withFileTypes: true });
1550
+ entries = readdirSync22(root, { withFileTypes: true });
1547
1551
  } catch {
1548
1552
  return [];
1549
1553
  }
1550
1554
  return entries.filter((entry) => entry.isDirectory() && UUID.test(entry.name)).flatMap((entry) => {
1551
- const path = join7(root, entry.name);
1555
+ const path = join6(root, entry.name);
1552
1556
  try {
1553
- const stat4 = lstatSync4(path);
1557
+ const stat4 = lstatSync3(path);
1554
1558
  return [{ path, stat: stat4 }];
1555
1559
  } catch {
1556
1560
  return [];
@@ -1586,33 +1590,33 @@ function retireReferences(records2, root, path) {
1586
1590
  }
1587
1591
  function unchangedRun(project, run) {
1588
1592
  if (!ordinaryPath(project, run.path)) return false;
1589
- const current = lstatSync4(run.path);
1593
+ const current = lstatSync3(run.path);
1590
1594
  return current.isDirectory() && current.dev === run.dev && current.ino === run.ino && current.mtimeMs === run.mtimeMs;
1591
1595
  }
1592
1596
  function finishSnapshotCleanup(project, runs) {
1593
1597
  for (const run of runs) {
1594
1598
  try {
1595
1599
  if (!unchangedRun(project, run) || liveOwner(run.path)) continue;
1596
- rmSync3(run.path, { recursive: true });
1600
+ rmSync22(run.path, { recursive: true });
1597
1601
  } catch {
1598
1602
  }
1599
1603
  }
1600
1604
  }
1601
1605
  function releaseSnapshotRun(project, path) {
1602
- const marker = join7(path, OWNER);
1606
+ const marker = join6(path, OWNER);
1603
1607
  const expected = ownedMarkers.get(marker);
1604
1608
  if (!expected) return;
1605
1609
  try {
1606
1610
  if (dirname4(path) !== rootOf(project) || !ordinaryPath(project, path)) return;
1607
- const fd = openOwner(marker, constants4.O_RDWR);
1611
+ const fd = openOwner(marker, constants3.O_RDWR);
1608
1612
  try {
1609
- if (!sameOwnerFile(expected, fstatSync3(fd))) return;
1610
- const owner = JSON.parse(readFileSync6(fd, "utf8"));
1613
+ if (!sameOwnerFile(expected, fstatSync22(fd))) return;
1614
+ const owner = JSON.parse(readFileSync32(fd, "utf8"));
1611
1615
  if (ownerPid(owner) !== process.pid) return;
1612
1616
  ftruncateSync(fd, 0);
1613
1617
  writeSync(fd, JSON.stringify({ version: 1, pid: process.pid, released: true }), 0, "utf8");
1614
1618
  } finally {
1615
- closeSync3(fd);
1619
+ closeSync22(fd);
1616
1620
  }
1617
1621
  } catch {
1618
1622
  } finally {
@@ -1623,10 +1627,10 @@ function retainSnapshotOutput(project, path) {
1623
1627
  const root = rootOf(project);
1624
1628
  const run = containingRun(root, path);
1625
1629
  if (!run) return;
1626
- createSnapshotParents(project, resolve6(path));
1630
+ createSnapshotParents(project, resolve32(path));
1627
1631
  try {
1628
1632
  writeFileSync2(
1629
- join7(run, ".user-output"),
1633
+ join6(run, ".user-output"),
1630
1634
  "Explicit --output; retained until manual cleanup.\n",
1631
1635
  { flag: "wx" }
1632
1636
  );
@@ -1652,7 +1656,7 @@ var emptyState = () => ({
1652
1656
  });
1653
1657
  function readState(dir) {
1654
1658
  if (!existsSync3(statePath(dir))) return emptyState();
1655
- const state = JSON.parse(readFileSync7(statePath(dir), "utf8"));
1659
+ const state = JSON.parse(readFileSync42(statePath(dir), "utf8"));
1656
1660
  if (state.version !== 1 || !state.checks || !state.snapshots || !state.revisions || !state.files)
1657
1661
  throw new Error("Unsupported video-state schema.");
1658
1662
  return state;
@@ -1667,7 +1671,7 @@ async function updateState(dir, update) {
1667
1671
  state = readState(dir);
1668
1672
  } catch (error) {
1669
1673
  if (!(error instanceof SyntaxError)) throw error;
1670
- renameSync3(statePath(dir), `${statePath(dir)}.invalid-${randomUUID6()}`);
1674
+ renameSync3(statePath(dir), `${statePath(dir)}.invalid-${randomUUID4()}`);
1671
1675
  state = emptyState();
1672
1676
  }
1673
1677
  update(state);
@@ -1677,7 +1681,7 @@ async function updateState(dir, update) {
1677
1681
  }
1678
1682
  }
1679
1683
  async function writeHistoryState(projectDir, historyId, historyDirectory, entries, currentFiles, committedFiles) {
1680
- const blob = (hash) => hash === null ? null : resolve7(historyDirectory, "blobs", hash.slice(0, 2), hash);
1684
+ const blob = (hash) => hash === null ? null : resolve42(historyDirectory, "blobs", hash.slice(0, 2), hash);
1681
1685
  await updateState(projectDir, (state) => {
1682
1686
  if (state.historyId && state.historyId !== historyId) {
1683
1687
  state.checks = collection();
@@ -1730,8 +1734,8 @@ async function fileHashes(dir) {
1730
1734
  for (const { path } of (await listProjectFilesAsync(dir)).sort(
1731
1735
  (a, b) => a.path.localeCompare(b.path)
1732
1736
  )) {
1733
- const hash = createHash5("sha256");
1734
- for await (const chunk of createReadStream2(join8(dir, path))) hash.update(chunk);
1737
+ const hash = createHash32("sha256");
1738
+ for await (const chunk of createReadStream2(join7(dir, path))) hash.update(chunk);
1735
1739
  files[path] = hash.digest("hex");
1736
1740
  }
1737
1741
  return files;
@@ -1742,7 +1746,7 @@ async function beginArtifactCapture(projectDir) {
1742
1746
  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
1747
  return {
1744
1748
  revision: matches ? state.currentRevision : null,
1745
- fingerprint: createHash5("sha256").update(JSON.stringify(files)).digest("hex")
1749
+ fingerprint: createHash32("sha256").update(JSON.stringify(files)).digest("hex")
1746
1750
  };
1747
1751
  }
1748
1752
  async function recordArtifact(projectDir, capture, artifact) {
@@ -1753,8 +1757,8 @@ async function recordArtifacts(projectDir, capture, artifactsToRecord) {
1753
1757
  const hashes = /* @__PURE__ */ new Map();
1754
1758
  for (const artifact of artifactsToRecord) {
1755
1759
  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"));
1760
+ if (!path || !isAbsolute22(path)) throw new Error("Artifact needs an absolute output path.");
1761
+ hashes.set(artifact.id, createHash32("sha256").update(readFileSync42(path)).digest("hex"));
1758
1762
  }
1759
1763
  const after = await beginArtifactCapture(projectDir);
1760
1764
  const unchanged2 = after.fingerprint === capture.fingerprint;
@@ -1810,7 +1814,7 @@ function listsOf(artifacts) {
1810
1814
  return [...Object.values(artifacts.revisions), artifacts.unversioned];
1811
1815
  }
1812
1816
  async function forgetRecordedArtifacts(projectDir, paths) {
1813
- const gone = new Set(paths.map((path) => resolve7(path)));
1817
+ const gone = new Set(paths.map((path) => resolve42(path)));
1814
1818
  if (gone.size === 0) return;
1815
1819
  await updateState(projectDir, (state) => {
1816
1820
  for (const artifacts of [state.checks, state.snapshots]) {
@@ -1818,7 +1822,7 @@ async function forgetRecordedArtifacts(projectDir, paths) {
1818
1822
  for (let i = list.length - 1; i >= 0; i--) {
1819
1823
  const record = list[i];
1820
1824
  const path = record.image ?? record.report;
1821
- if (path && gone.has(resolve7(path))) list.splice(i, 1);
1825
+ if (path && gone.has(resolve42(path))) list.splice(i, 1);
1822
1826
  }
1823
1827
  }
1824
1828
  if (artifacts.latest && !listsOf(artifacts).some(
@@ -1830,7 +1834,7 @@ async function forgetRecordedArtifacts(projectDir, paths) {
1830
1834
  });
1831
1835
  }
1832
1836
  function artifactDirectory(projectDir, kind) {
1833
- const path = join8(resolve7(projectDir), ".hyperframes", "artifacts", kind, randomUUID6());
1837
+ const path = join7(resolve42(projectDir), ".hyperframes", "artifacts", kind, randomUUID4());
1834
1838
  if (kind === "snapshots") ownSnapshotRun(projectDir, path);
1835
1839
  return path;
1836
1840
  }
@@ -1839,14 +1843,14 @@ function retainRevision(retained, revision) {
1839
1843
  return [revision, ...retained.filter((id) => id !== revision)].slice(0, 2);
1840
1844
  }
1841
1845
  async function recordRenderSuccess(projectDir, output, status = "completed", capture) {
1842
- const outputFile = statSync4(output);
1846
+ const outputFile = statSync32(output);
1843
1847
  if (!outputFile.isFile() && !outputFile.isDirectory() || outputFile.isFile() && outputFile.size === 0)
1844
1848
  throw new Error("Render output is missing or empty.");
1845
1849
  const after = capture ? await beginArtifactCapture(projectDir) : null;
1846
1850
  const record = {
1847
- id: randomUUID6(),
1851
+ id: randomUUID4(),
1848
1852
  completedAt: Date.now(),
1849
- output: resolve7(output),
1853
+ output: resolve42(output),
1850
1854
  status
1851
1855
  };
1852
1856
  const unchanged2 = Boolean(capture && after?.fingerprint === capture.fingerprint);
@@ -1883,7 +1887,7 @@ function parseRecord(line) {
1883
1887
  function readLog(file, onUnreadable) {
1884
1888
  let text;
1885
1889
  try {
1886
- text = readFileSync8(file, "utf-8");
1890
+ text = readFileSync5(file, "utf-8");
1887
1891
  } catch {
1888
1892
  return null;
1889
1893
  }
@@ -1907,7 +1911,7 @@ function applyRecord(log, record) {
1907
1911
  function saveRecord(file, log, record) {
1908
1912
  let fd;
1909
1913
  try {
1910
- fd = openSync4(file, constants5.O_WRONLY | constants5.O_APPEND);
1914
+ fd = openSync3(file, constants4.O_WRONLY | constants4.O_APPEND);
1911
1915
  } catch (error) {
1912
1916
  if (error.code !== "ENOENT") throw error;
1913
1917
  return writeLog(file, log);
@@ -1916,7 +1920,7 @@ function saveRecord(file, log, record) {
1916
1920
  writeSync2(fd, `${JSON.stringify(record)}
1917
1921
  `);
1918
1922
  } finally {
1919
- closeSync4(fd);
1923
+ closeSync3(fd);
1920
1924
  }
1921
1925
  }
1922
1926
  function baselineRecord(log) {
@@ -1932,7 +1936,7 @@ function writeLog(file, log) {
1932
1936
  ...log.entries.map((entry) => ({ type: "entry", entry })),
1933
1937
  ...[...log.pins].map((id) => ({ type: "pin", id, pinned: true }))
1934
1938
  ];
1935
- mkdirSync5(dirname5(file), { recursive: true });
1939
+ mkdirSync4(dirname5(file), { recursive: true });
1936
1940
  replaceFileAtomically(file, records2.map((r) => `${JSON.stringify(r)}
1937
1941
  `).join(""), 420);
1938
1942
  }
@@ -2032,7 +2036,7 @@ function isHistoryPath(path) {
2032
2036
  if (KEPT_HIDDEN_PATHS.has(path)) return true;
2033
2037
  return !path.split("/").some((segment) => segment.startsWith("."));
2034
2038
  }
2035
- var logFileIn = (home) => join9(home, "log.jsonl");
2039
+ var logFileIn = (home) => join8(home, "log.jsonl");
2036
2040
  function listOf(log) {
2037
2041
  const undone = undoneIds(log.entries);
2038
2042
  return log.entries.map((entry) => ({
@@ -2066,27 +2070,27 @@ var isMissingFolder = (error) => ["ENOENT", "ENOTDIR"].includes(error.code ?? ""
2066
2070
  async function removeEmptyFolders(dir) {
2067
2071
  let entries;
2068
2072
  try {
2069
- entries = await readdir4(dir, { withFileTypes: true });
2073
+ entries = await readdir3(dir, { withFileTypes: true });
2070
2074
  } catch (error) {
2071
2075
  if (isMissingFolder(error)) return;
2072
2076
  throw error;
2073
2077
  }
2074
2078
  for (const entry of entries)
2075
- if (entry.isDirectory()) await removeEmptyFolders(join9(dir, entry.name));
2079
+ if (entry.isDirectory()) await removeEmptyFolders(join8(dir, entry.name));
2076
2080
  assertStillWithin(dirname6(dir));
2077
2081
  await rmdir(dir);
2078
2082
  }
2079
2083
  function fileLeftIn(dir, at, deleted) {
2080
- for (const entry of readdirSync4(dir, { withFileTypes: true })) {
2084
+ for (const entry of readdirSync3(dir, { withFileTypes: true })) {
2081
2085
  const path = `${at}/${entry.name}`;
2082
- const left = entry.isDirectory() ? fileLeftIn(join9(dir, entry.name), path, deleted) : deleted.has(path) ? void 0 : path;
2086
+ const left = entry.isDirectory() ? fileLeftIn(join8(dir, entry.name), path, deleted) : deleted.has(path) ? void 0 : path;
2083
2087
  if (left) return left;
2084
2088
  }
2085
2089
  return void 0;
2086
2090
  }
2087
2091
  function ignoresCase(dir) {
2088
- const self = statSync5(join9(dir, ID_PATH), { throwIfNoEntry: false });
2089
- const other = statSync5(join9(dir, ID_PATH.toUpperCase()), { throwIfNoEntry: false });
2092
+ const self = statSync4(join8(dir, ID_PATH), { throwIfNoEntry: false });
2093
+ const other = statSync4(join8(dir, ID_PATH.toUpperCase()), { throwIfNoEntry: false });
2090
2094
  return self !== void 0 && other?.ino === self.ino && other.dev === self.dev;
2091
2095
  }
2092
2096
  var blocks = (removed, added) => added.startsWith(`${removed}/`) || removed.startsWith(`${added}/`);
@@ -2138,10 +2142,10 @@ var Engine = class {
2138
2142
  this.options = options;
2139
2143
  this.projectId = projectId;
2140
2144
  this.blobs = blobs;
2141
- this.dir = resolve8(options.projectDir);
2142
- this.home = join9(options.historyRoot, projectId);
2145
+ this.dir = resolve5(options.projectDir);
2146
+ this.home = join8(options.historyRoot, projectId);
2143
2147
  this.foldsCase = ignoresCase(this.dir);
2144
- const folder = statSync5(this.dir, { throwIfNoEntry: false });
2148
+ const folder = statSync4(this.dir, { throwIfNoEntry: false });
2145
2149
  if (!folder || readId(this.dir) !== projectId || !isRecordedFolder(this.home, folder))
2146
2150
  throw this.replaced();
2147
2151
  this.folder = { dev: folder.dev, ino: folder.ino, birthtimeMs: folder.birthtimeMs };
@@ -2211,7 +2215,7 @@ var Engine = class {
2211
2215
  }
2212
2216
  /** Another project if the folder or its id changed, or the id is gone: a recreated folder may reuse the inode. */
2213
2217
  whereFolder() {
2214
- const now = statSync5(this.dir, { throwIfNoEntry: false });
2218
+ const now = statSync4(this.dir, { throwIfNoEntry: false });
2215
2219
  if (!now) return "gone";
2216
2220
  const same = now.dev === this.folder.dev && sameFolder(now, this.folder);
2217
2221
  return same && readId(this.dir) === this.projectId ? "here" : "replaced";
@@ -2225,7 +2229,7 @@ var Engine = class {
2225
2229
  this.owesVideoState = true;
2226
2230
  if (record) saveRecord(this.logFile, this.log, record);
2227
2231
  else writeLog(this.logFile, this.log);
2228
- if (!existsSync4(join9(this.home, "project.json")))
2232
+ if (!existsSync4(join8(this.home, "project.json")))
2229
2233
  recordProject(this.home, this.dir, this.folder);
2230
2234
  }
2231
2235
  replaced() {
@@ -2269,7 +2273,7 @@ var Engine = class {
2269
2273
  if (!after || !affectsProjectSignature(realDir, absPath)) return;
2270
2274
  const replaced = hashOfVersion(fileContentVersion(bytes));
2271
2275
  if (!replaced || replaced === after) return;
2272
- const path = relative5(realDir, absPath).split(sep5).join("/");
2276
+ const path = relative3(realDir, absPath).split(sep3).join("/");
2273
2277
  if (!isHistoryPath(path)) return;
2274
2278
  this.overwritten.set(
2275
2279
  path,
@@ -2282,7 +2286,7 @@ var Engine = class {
2282
2286
  });
2283
2287
  }
2284
2288
  async storeBytes(bytes) {
2285
- const staged = join9(this.home, `overwrote-${randomUUID7()}`);
2289
+ const staged = join8(this.home, `overwrote-${randomUUID5()}`);
2286
2290
  await mkdir2(this.home, { recursive: true });
2287
2291
  await writeFile2(staged, bytes);
2288
2292
  try {
@@ -2348,9 +2352,9 @@ var Engine = class {
2348
2352
  this.saveAdopting();
2349
2353
  }
2350
2354
  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 });
2355
+ const file = join8(this.home, "adopting.json");
2356
+ if (!this.adopting.size) return rmSync3(file, { force: true });
2357
+ mkdirSync5(this.home, { recursive: true });
2354
2358
  replaceFileAtomically(file, JSON.stringify([...this.adopting.keys()]), 420);
2355
2359
  }
2356
2360
  /** A file still changing stays named until a whole copy of it lands; the next open retries it. */
@@ -2424,7 +2428,7 @@ var Engine = class {
2424
2428
  }
2425
2429
  readStatCache() {
2426
2430
  try {
2427
- const files = JSON.parse(readFileSync9(join9(this.home, "stat.json"), "utf-8"));
2431
+ const files = JSON.parse(readFileSync6(join8(this.home, "stat.json"), "utf-8"));
2428
2432
  return new Map(Object.entries(files));
2429
2433
  } catch {
2430
2434
  return /* @__PURE__ */ new Map();
@@ -2433,7 +2437,7 @@ var Engine = class {
2433
2437
  readAdopting() {
2434
2438
  try {
2435
2439
  return new Set(
2436
- JSON.parse(readFileSync9(join9(this.home, "adopting.json"), "utf-8"))
2440
+ JSON.parse(readFileSync6(join8(this.home, "adopting.json"), "utf-8"))
2437
2441
  );
2438
2442
  } catch {
2439
2443
  return /* @__PURE__ */ new Set();
@@ -2441,8 +2445,8 @@ var Engine = class {
2441
2445
  }
2442
2446
  saveStatCache() {
2443
2447
  const files = JSON.stringify(Object.fromEntries(this.tracked));
2444
- mkdirSync6(this.home, { recursive: true });
2445
- replaceFileAtomically(join9(this.home, "stat.json"), files, 420);
2448
+ mkdirSync5(this.home, { recursive: true });
2449
+ replaceFileAtomically(join8(this.home, "stat.json"), files, 420);
2446
2450
  }
2447
2451
  /**
2448
2452
  * Takes in every write since the last sweep and files each change to its writer. ponytail: always the whole
@@ -2491,7 +2495,7 @@ var Engine = class {
2491
2495
  /** The file's hash once copied in, or why there is none: gone, or still changing through every read. */
2492
2496
  async storeIfPresent(path) {
2493
2497
  try {
2494
- const abs = join9(this.dir, path);
2498
+ const abs = join8(this.dir, path);
2495
2499
  const { size } = await stat2(abs);
2496
2500
  if (isUncopied(path, size)) return { hash: await this.blobs.reference(abs) };
2497
2501
  const hash = await this.blobs.put(abs);
@@ -2570,7 +2574,7 @@ var Engine = class {
2570
2574
  return group && taken.every((change) => after(change.path, change.before) === change.before) && [...group.changes.values()].every(untouched) ? group : null;
2571
2575
  }
2572
2576
  logPath(path) {
2573
- return relative5(this.dir, resolve8(this.dir, path)).split(sep5).join("/");
2577
+ return relative3(this.dir, resolve5(this.dir, path)).split(sep3).join("/");
2574
2578
  }
2575
2579
  /** Takes `paths`' uncommitted changes from others, cut at what `who` overwrote. */
2576
2580
  async takeClaimed(who, paths, overwrote) {
@@ -2661,7 +2665,7 @@ var Engine = class {
2661
2665
  return this.outside;
2662
2666
  }
2663
2667
  newGroup(who, label) {
2664
- return { id: randomUUID7(), who, label, startedAt: this.now(), changes: /* @__PURE__ */ new Map() };
2668
+ return { id: randomUUID5(), who, label, startedAt: this.now(), changes: /* @__PURE__ */ new Map() };
2665
2669
  }
2666
2670
  async commitOutside() {
2667
2671
  if (this.outside?.changes.size) await this.commitClaim();
@@ -2731,9 +2735,9 @@ var Engine = class {
2731
2735
  }
2732
2736
  /** A watcher saw a write: one sweep per burst takes it in (a deleted folder is reported by its name alone). */
2733
2737
  noteChange(path) {
2734
- const absolute = resolve8(this.dir, path);
2738
+ const absolute = resolve5(this.dir, path);
2735
2739
  if (this.notedTimer || !affectsProjectSignature(this.dir, absolute)) return;
2736
- if (!isHistoryPath(relative5(this.dir, absolute).split(sep5).join("/"))) return;
2740
+ if (!isHistoryPath(relative3(this.dir, absolute).split(sep3).join("/"))) return;
2737
2741
  this.sweepIn(20);
2738
2742
  }
2739
2743
  sweepIn(ms) {
@@ -2813,7 +2817,7 @@ var Engine = class {
2813
2817
  const parts = path.split("/");
2814
2818
  for (let depth = 1; depth <= parts.length; depth += 1) {
2815
2819
  const at = parts.slice(0, depth).join("/");
2816
- const stat4 = lstatSync5(join9(this.dir, at), { throwIfNoEntry: false });
2820
+ const stat4 = lstatSync4(join8(this.dir, at), { throwIfNoEntry: false });
2817
2821
  if (!stat4) return void 0;
2818
2822
  if (at === path || !stat4.isDirectory()) return { at, stat: stat4 };
2819
2823
  }
@@ -2825,8 +2829,8 @@ var Engine = class {
2825
2829
  if (!standing) return void 0;
2826
2830
  if (standing.stat.isSymbolicLink()) return standing.at;
2827
2831
  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("/");
2832
+ const real = realpathSync.native(join8(this.dir, standing.at));
2833
+ const at = relative3(realpathSync.native(this.dir), real).split(sep3).join("/");
2830
2834
  if (standing.at !== path) return deleted.has(at) ? void 0 : at;
2831
2835
  return fileLeftIn(real, at, deleted);
2832
2836
  }
@@ -2863,7 +2867,7 @@ var Engine = class {
2863
2867
  /** Writes one project file (null deletes it), first leaving the running operation's receipt for its echo. */
2864
2868
  async writeProjectFile(path, hash) {
2865
2869
  this.assertWritable();
2866
- const absPath = join9(this.dir, path);
2870
+ const absPath = join8(this.dir, path);
2867
2871
  const { writeToken } = this;
2868
2872
  if (writeToken) {
2869
2873
  const version = hash === null ? DELETED_VERSION : hashVersion(hash);
@@ -2871,8 +2875,8 @@ var Engine = class {
2871
2875
  }
2872
2876
  const folder = folderWithin(this.dir, path, hash !== null);
2873
2877
  if (!folder) return;
2874
- const at = join9(folder, basename4(path));
2875
- const standing = lstatSync5(at, { throwIfNoEntry: false });
2878
+ const at = join8(folder, basename4(path));
2879
+ const standing = lstatSync4(at, { throwIfNoEntry: false });
2876
2880
  const uncopied = standing?.isFile() === true && isUncopied(path, standing.size);
2877
2881
  if (hash === null) {
2878
2882
  this.assertWritable();
@@ -3029,10 +3033,10 @@ var Engine = class {
3029
3033
  checkout: (entryId, side, emptyDir) => this.queue(async () => {
3030
3034
  this.entry(entryId);
3031
3035
  if (!existsSync4(this.dir)) throw new Error(`The project folder is gone: ${this.dir}`);
3032
- const dest = resolve8(emptyDir);
3036
+ const dest = resolve5(emptyDir);
3033
3037
  if (isWithin(this.dir, dest))
3034
3038
  throw new Error(`Checkout writes outside the project only: ${dest}`);
3035
- if ((await readdir4(dest).catch(missingIsEmpty)).length > 0)
3039
+ if ((await readdir3(dest).catch(missingIsEmpty)).length > 0)
3036
3040
  throw new Error(`Checkout writes into an empty folder only: ${dest}`);
3037
3041
  const files = manifestAround(this.log, entryId, side);
3038
3042
  for (const [path, hash] of files)
@@ -3042,8 +3046,8 @@ var Engine = class {
3042
3046
  await mkdir2(dest, { recursive: true });
3043
3047
  for (const [path, hash] of files) await this.blobs.writeTo(hash, dest, path);
3044
3048
  } catch (error) {
3045
- for (const name of await readdir4(dest).catch(() => []))
3046
- await rm3(join9(dest, name), { recursive: true, force: true });
3049
+ for (const name of await readdir3(dest).catch(() => []))
3050
+ await rm3(join8(dest, name), { recursive: true, force: true });
3047
3051
  throw error;
3048
3052
  }
3049
3053
  }),
@@ -3083,10 +3087,10 @@ var Engine = class {
3083
3087
  }
3084
3088
  };
3085
3089
  function isWithin(dir, path) {
3086
- let probe = resolve8(path);
3090
+ let probe = resolve5(path);
3087
3091
  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);
3092
+ const rel = relative3(realpathSync.native(dir), realpathSync.native(probe));
3093
+ return rel === "" || rel !== ".." && !rel.startsWith(`..${sep3}`) && !isAbsolute3(rel);
3090
3094
  }
3091
3095
  function missingIsEmpty(error) {
3092
3096
  if (error.code === "ENOENT") return [];
@@ -3109,12 +3113,12 @@ async function openProjectHistory(options) {
3109
3113
  throw new HistoryClosedError(`${options.projectDir} is gone or now another project.`);
3110
3114
  const projectId = projectHistoryId(options.projectDir, options.historyRoot);
3111
3115
  const release = await takeHistoryOwnership(
3112
- join9(options.historyRoot, projectId),
3116
+ join8(options.historyRoot, projectId),
3113
3117
  options.ownerWaitMs ?? 5e3,
3114
3118
  options.ownerUrl
3115
3119
  );
3116
3120
  try {
3117
- const blobs = await openBlobStore(join9(options.historyRoot, projectId, "blobs"));
3121
+ const blobs = await openBlobStore(join8(options.historyRoot, projectId, "blobs"));
3118
3122
  const closedWindow = options.closedWindowAfterOwnership?.() ?? options.closedWindow;
3119
3123
  const engine = new Engine({ ...options, closedWindow }, projectId, blobs);
3120
3124
  await engine.queue(async () => {
@@ -3136,9 +3140,9 @@ async function openProjectHistory(options) {
3136
3140
  }
3137
3141
  }
3138
3142
  function readProjectHistory(options) {
3139
- const dir = resolve8(options.projectDir);
3143
+ const dir = resolve5(options.projectDir);
3140
3144
  const id = readId(dir);
3141
- const home = id && isRecordedFolder(join9(options.historyRoot, id), statSync5(dir)) ? join9(options.historyRoot, id) : null;
3145
+ const home = id && isRecordedFolder(join8(options.historyRoot, id), statSync4(dir)) ? join8(options.historyRoot, id) : null;
3142
3146
  const read = home && readLog(logFileIn(home), () => {
3143
3147
  });
3144
3148
  const log = withoutHiddenPaths(read || { baseline: /* @__PURE__ */ new Map(), entries: [], pins: /* @__PURE__ */ new Set() });
@@ -3147,13 +3151,13 @@ function readProjectHistory(options) {
3147
3151
  peek: (point) => peekOf(log, point),
3148
3152
  readBlob: async (hash) => {
3149
3153
  if (!home) throw new Error("That is not a history blob.");
3150
- return readBlob(join9(home, "blobs"), hash);
3154
+ return readBlob(join8(home, "blobs"), hash);
3151
3155
  }
3152
3156
  };
3153
3157
  }
3154
3158
  function historyIds(historyRoot) {
3155
3159
  try {
3156
- return readdirSync5(historyRoot).filter(isHistoryId);
3160
+ return readdirSync4(historyRoot).filter(isHistoryId);
3157
3161
  } catch {
3158
3162
  return [];
3159
3163
  }
@@ -3175,10 +3179,10 @@ async function blobSizes(blobs, hashes) {
3175
3179
  return sizes;
3176
3180
  }
3177
3181
  async function reclaimOne(home, dryRun) {
3178
- const log = readLog(join10(home, "log.jsonl"), () => {
3182
+ const log = readLog(join9(home, "log.jsonl"), () => {
3179
3183
  });
3180
3184
  if (!log) return 0;
3181
- const blobs = join10(home, "blobs");
3185
+ const blobs = join9(home, "blobs");
3182
3186
  const sizes = await blobSizes(blobs, namedHashes(log));
3183
3187
  let bytes = 0;
3184
3188
  for (const hash of uncopiedOnlyHashes(log, (known) => sizes.get(known) ?? 0)) {
@@ -3192,7 +3196,7 @@ async function reclaimOne(home, dryRun) {
3192
3196
  async function reclaimUncopiedBlobs(historyRoot, { dryRun = false, onError } = {}) {
3193
3197
  const reclaimed = [];
3194
3198
  for (const id of historyIds(historyRoot)) {
3195
- const home = join10(historyRoot, id);
3199
+ const home = join9(historyRoot, id);
3196
3200
  let release;
3197
3201
  try {
3198
3202
  release = await takeHistoryOwnership(home, 0);
@@ -3230,14 +3234,6 @@ function historyCache(open2) {
3230
3234
  }
3231
3235
 
3232
3236
  export {
3233
- fileContentVersion,
3234
- DELETED_VERSION,
3235
- settledFileTag,
3236
- createWriteToken,
3237
- recordFileWriteReceipt,
3238
- clearFileWriteReceipt,
3239
- identifyFileWrite,
3240
- consumeFileWriteReceipt,
3241
3237
  HistoryBusyError,
3242
3238
  registerRenderOutput,
3243
3239
  STUDIO_SIGNATURE_MANIFEST_PATHS,
@@ -3246,6 +3242,14 @@ export {
3246
3242
  resolveProjectAndSignature,
3247
3243
  createProjectSignature,
3248
3244
  createProjectSignatureAsync,
3245
+ fileContentVersion,
3246
+ DELETED_VERSION,
3247
+ settledFileTag,
3248
+ createWriteToken,
3249
+ recordFileWriteReceipt,
3250
+ clearFileWriteReceipt,
3251
+ identifyFileWrite,
3252
+ consumeFileWriteReceipt,
3249
3253
  serveWhileOpen,
3250
3254
  onRestoredInPlace,
3251
3255
  isUncopiedMedia,