hyperframes 0.9.58 → 0.9.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/bin/hyperframes.mjs +3 -1
  2. package/dist/{add-JQUKPSEZ.js → add-C7J7HSLI.js} +31 -29
  3. package/dist/{agentPromptGenerator-3NEY7FPP.js → agentPromptGenerator-GCLJUGVE.js} +17 -16
  4. package/dist/{animatedGifPrep-VMUZ6IVJ.js → animatedGifPrep-JPQZPZC4.js} +18 -17
  5. package/dist/api.js +61 -60
  6. package/dist/{appHistory-JNI6IOR6.js → appHistory-TQ6JAEP5.js} +7 -6
  7. package/dist/{asset-ZT3VXZ67.js → asset-HQEPGBDJ.js} +6 -6
  8. package/dist/{assetCataloger-D2DV65BA.js → assetCataloger-LMPPKPF6.js} +19 -18
  9. package/dist/{audio-LD5H2R5V.js → audio-FD2EBZ6D.js} +38 -37
  10. package/dist/{auth-4FPYYMSH.js → auth-JA7XH6NG.js} +4 -4
  11. package/dist/{autoUpdate-5ZKSFCG4.js → autoUpdate-WKW2OMIY.js} +6 -6
  12. package/dist/{avatars-DCLFE7VG.js → avatars-Q7U6CO4X.js} +28 -27
  13. package/dist/{backgroundChecks-UZA3F46H.js → backgroundChecks-H2SOS2CM.js} +16 -9
  14. package/dist/backgroundChecksWorker.js +9 -9
  15. package/dist/{batchRender-TAUW3CT2.js → batchRender-75OLVMZY.js} +14 -13
  16. package/dist/{beats-X3LCR6OG.js → beats-R4EHWWJN.js} +21 -20
  17. package/dist/{benchmark-DNZQT3YQ.js → benchmark-F5OHG3Q3.js} +33 -31
  18. package/dist/{billing-4BFUAHWX.js → billing-LBRSBVXQ.js} +28 -27
  19. package/dist/{browser-5J2MTDB6.js → browser-CNTCFZOG.js} +23 -22
  20. package/dist/{bundleWithLocalizedFonts-XWK47ZVF.js → bundleWithLocalizedFonts-RVF7AFP5.js} +1 -1
  21. package/dist/{capture-TVYTKWTG.js → capture-CTRZEZTC.js} +38 -15
  22. package/dist/{capture-2YSVFKWV.js → capture-DLYM3V5F.js} +37 -33
  23. package/dist/{captureCompositionFrame-L765HLCT.js → captureCompositionFrame-2O2HP6SK.js} +27 -26
  24. package/dist/{captureFile-DOCK42K3.js → captureFile-W7ZDDBCD.js} +5 -4
  25. package/dist/captureProxy-4K3J652A.js +23 -0
  26. package/dist/{catalog-CHGGRRQX.js → catalog-6XL63LU3.js} +42 -38
  27. package/dist/{catch-up-OCFU6ZR3.js → catch-up-AOFQWE6O.js} +36 -28
  28. package/dist/{check-LWK4Z7FI.js → check-5V7K4RL6.js} +64 -63
  29. package/dist/{checkAudio-R5ORBXBO.js → checkAudio-4YUTDQSQ.js} +20 -19
  30. package/dist/{checkBrowser-6SH73T47.js → checkBrowser-BAWRZZZU.js} +56 -55
  31. package/dist/{chunk-CRPLPK6J.js → chunk-2ARKMOCD.js} +6 -6
  32. package/dist/{chunk-BSDUTNFX.js → chunk-2LJPBYKI.js} +1 -1
  33. package/dist/{chunk-KYKQO4VN.js → chunk-3DFEBAWJ.js} +3 -3
  34. package/dist/{chunk-VXE46PXX.js → chunk-3JVTHNDH.js} +1 -1
  35. package/dist/{chunk-JOOKM2NC.js → chunk-3QMGLSKC.js} +3 -3
  36. package/dist/{chunk-LO5USUM4.js → chunk-3RTZ2UX7.js} +1 -1
  37. package/dist/{chunk-GEOJA37C.js → chunk-4QSDXDLV.js} +3 -3
  38. package/dist/{chunk-HTGJOOXE.js → chunk-4STRMCGD.js} +3 -3
  39. package/dist/{chunk-D2LSYXLW.js → chunk-4VJQVTQI.js} +1 -1
  40. package/dist/{chunk-A4YRESMH.js → chunk-5T6HPV25.js} +2 -2
  41. package/dist/{chunk-O4K22EFS.js → chunk-65X2G57W.js} +24 -14
  42. package/dist/{chunk-2WA62M3B.js → chunk-6ATP7YPZ.js} +4 -4
  43. package/dist/{chunk-WLNHZ2OM.js → chunk-6K6RIX2A.js} +3 -3
  44. package/dist/{chunk-G3U5CUF3.js → chunk-6LGB4MVX.js} +2 -2
  45. package/dist/{chunk-4LZSNWFJ.js → chunk-6R4MEYWD.js} +3 -3
  46. package/dist/{chunk-H7DTMLAR.js → chunk-6UAYOSE7.js} +36 -21
  47. package/dist/{chunk-ZLTB7ZCQ.js → chunk-6VY52EVW.js} +1 -1
  48. package/dist/{chunk-Z642P33A.js → chunk-6VY6WTY5.js} +22 -13
  49. package/dist/{chunk-TLDIP7Y3.js → chunk-763UG5II.js} +16 -17
  50. package/dist/{chunk-PS7WBIPK.js → chunk-7CI5MLCC.js} +18 -18
  51. package/dist/{chunk-K2EJQ44S.js → chunk-7Q4EGB3N.js} +1 -1
  52. package/dist/{chunk-XMT4MG6W.js → chunk-7XOORL2Q.js} +14 -14
  53. package/dist/{chunk-H3LEOZVK.js → chunk-7YRZBB4C.js} +1 -1
  54. package/dist/{chunk-CNAOJ7XI.js → chunk-A7NRMVUG.js} +1 -1
  55. package/dist/{chunk-CDNVZEGQ.js → chunk-AEXDJU77.js} +5 -2
  56. package/dist/{chunk-7WAWUQDQ.js → chunk-AQIHV4PM.js} +4 -4
  57. package/dist/{chunk-NLVIE7VN.js → chunk-B653JKWT.js} +4 -4
  58. package/dist/{chunk-7WYJXKIG.js → chunk-BMTT2T7M.js} +4 -4
  59. package/dist/{chunk-OPSGEOCO.js → chunk-BTXYXM2A.js} +51 -29
  60. package/dist/{chunk-M5TTYUZM.js → chunk-C3NDLM4S.js} +6 -6
  61. package/dist/{chunk-MSC5KBCE.js → chunk-CAMD2NBN.js} +31 -23
  62. package/dist/{chunk-VLFBOKZX.js → chunk-CC72LTIT.js} +135 -43
  63. package/dist/{chunk-O5U3Y5DX.js → chunk-CIXP5G7Z.js} +1 -1
  64. package/dist/{chunk-ZYNNZ5DE.js → chunk-D44MBZI6.js} +2 -2
  65. package/dist/{chunk-RV3HR3BZ.js → chunk-DCRHNRUY.js} +9 -9
  66. package/dist/{chunk-ELRE6LVJ.js → chunk-DSCMYTKJ.js} +5 -5
  67. package/dist/{chunk-6RPKPL22.js → chunk-EGZQX3UX.js} +1 -1
  68. package/dist/{chunk-WEU6WLVT.js → chunk-ELDZ6C3R.js} +3 -3
  69. package/dist/{chunk-ZFOV3R2L.js → chunk-EUVU5JS4.js} +4 -4
  70. package/dist/{chunk-U5MILT4G.js → chunk-FC77MYAD.js} +1 -1
  71. package/dist/{chunk-CGJIMWNU.js → chunk-FFL5R2EZ.js} +4 -4
  72. package/dist/{chunk-ZCLC3KVY.js → chunk-FGJUVWAM.js} +1 -1
  73. package/dist/{chunk-JQZ5WP7L.js → chunk-FQ26QE5N.js} +1 -1
  74. package/dist/{chunk-CPDPSNSB.js → chunk-GMIFMRWR.js} +7 -7
  75. package/dist/{chunk-OL7RHRNJ.js → chunk-GYJ7AJXN.js} +2 -2
  76. package/dist/{chunk-CVTIGS5K.js → chunk-H3TD4VKX.js} +1 -1
  77. package/dist/{chunk-UDLWVQ74.js → chunk-HLOJSBGC.js} +28 -14
  78. package/dist/{chunk-MYETYFDI.js → chunk-HTISHNLA.js} +2 -2
  79. package/dist/{chunk-DWFWF6IR.js → chunk-HXFGAI6L.js} +31 -239
  80. package/dist/{chunk-GIVMQDSK.js → chunk-HY7FPTBD.js} +2 -2
  81. package/dist/{chunk-I6V25IXG.js → chunk-HYXQR5I3.js} +2 -2
  82. package/dist/{chunk-VI2LLFW6.js → chunk-I5H2FPNP.js} +2 -2
  83. package/dist/{chunk-4N3WOFP3.js → chunk-I6OSAVHD.js} +17 -13
  84. package/dist/{chunk-SV72WLBE.js → chunk-ISSG4PUD.js} +27 -14
  85. package/dist/{chunk-OEGWTN6N.js → chunk-J3H6QDDY.js} +1 -1
  86. package/dist/{chunk-FNXU56VT.js → chunk-J4OHC5FU.js} +1 -1
  87. package/dist/{chunk-FFOFGL2O.js → chunk-JLMMY3UI.js} +2 -2
  88. package/dist/{chunk-EOXNEA4Z.js → chunk-JQ7BPN2R.js} +20 -8
  89. package/dist/{chunk-SYKUNH25.js → chunk-JT7RXK2N.js} +59 -7
  90. package/dist/{chunk-AM4Y3XMR.js → chunk-JUUOYXWH.js} +4 -4
  91. package/dist/{chunk-DL6PEJWH.js → chunk-K2WLOTTF.js} +2 -2
  92. package/dist/{chunk-AM6UYKVR.js → chunk-K33E3YNK.js} +11 -11
  93. package/dist/{chunk-QGQCWG7F.js → chunk-KGPHUBBA.js} +1 -1
  94. package/dist/chunk-KK5Z5XQ3.js +109 -0
  95. package/dist/{chunk-A4L7G74T.js → chunk-KQHDFVFF.js} +3 -3
  96. package/dist/chunk-KUJJJBV2.js +211 -0
  97. package/dist/{chunk-CHCMXYER.js → chunk-KVIXXJLO.js} +1 -1
  98. package/dist/{chunk-AMS7Q7P7.js → chunk-KYXH4JWF.js} +8 -8
  99. package/dist/{chunk-O2BLY7PO.js → chunk-L456Q4KU.js} +1 -1
  100. package/dist/{chunk-JZVI2TMX.js → chunk-L4MXZHRB.js} +3 -3
  101. package/dist/{chunk-YTHXSYYB.js → chunk-LB6ZAP4I.js} +19 -11
  102. package/dist/{chunk-ADVVQX4I.js → chunk-LMNCEQCC.js} +4 -2
  103. package/dist/{chunk-J6VYWZSO.js → chunk-LSGJY2FG.js} +1 -1
  104. package/dist/{chunk-ZAWQJOTW.js → chunk-LTOUXR3X.js} +8 -8
  105. package/dist/{chunk-D3M5VOC5.js → chunk-LZWG4GCC.js} +3 -3
  106. package/dist/{chunk-SALNTRJA.js → chunk-MHF5F4FF.js} +69 -76
  107. package/dist/{chunk-E26Z73S3.js → chunk-MTKXKULM.js} +2 -2
  108. package/dist/{chunk-GDIBE57N.js → chunk-MVA4OQL7.js} +2 -2
  109. package/dist/{chunk-UGKUGYHD.js → chunk-N6QWL3E7.js} +5 -2
  110. package/dist/{chunk-MCDNAIFF.js → chunk-NGRWDXRZ.js} +1 -1
  111. package/dist/chunk-NI7JVGOE.js +5083 -0
  112. package/dist/{chunk-HFUI6LVF.js → chunk-NLN5NY3P.js} +1 -1
  113. package/dist/{chunk-AJ7YRQS4.js → chunk-O733DEVT.js} +2 -2
  114. package/dist/{chunk-ZO5NHAF3.js → chunk-ODLSLYJR.js} +10 -4
  115. package/dist/{chunk-3VMZQQUI.js → chunk-OF7SQ77J.js} +1 -1
  116. package/dist/{chunk-D2LIT7UR.js → chunk-OH3MUFZG.js} +1 -1
  117. package/dist/{chunk-TLGQQ324.js → chunk-OPIS2YMA.js} +13 -11
  118. package/dist/{chunk-IHXMN5YH.js → chunk-ORKZUTZW.js} +2 -2
  119. package/dist/{chunk-PYTF6VHF.js → chunk-OV5OSN74.js} +3 -3
  120. package/dist/{chunk-EZJHKHWU.js → chunk-OYKAS3J5.js} +3 -3
  121. package/dist/{chunk-XCJ2YYMV.js → chunk-P5M3IEXO.js} +1 -1
  122. package/dist/{chunk-TAXMLPTE.js → chunk-PCHUX7Y5.js} +2 -2
  123. package/dist/{chunk-MPC3OODR.js → chunk-PDT6CBK2.js} +4 -4
  124. package/dist/{chunk-GVIJFPZV.js → chunk-PHYFZXOS.js} +2 -2
  125. package/dist/{chunk-OSKSTJNQ.js → chunk-PJQVJSMG.js} +21 -12
  126. package/dist/{chunk-7ZHBY7T5.js → chunk-PLOCYJ5U.js} +1 -1
  127. package/dist/{chunk-GRSZAGJB.js → chunk-PMKWTXHE.js} +2 -2
  128. package/dist/{chunk-5SGGOZNL.js → chunk-POFQOZOF.js} +203 -55
  129. package/dist/{chunk-72GTIFAI.js → chunk-POVOGRMU.js} +2 -2
  130. package/dist/{chunk-37Y334MN.js → chunk-PSREPOJ4.js} +6 -6
  131. package/dist/{chunk-4NNYYCJN.js → chunk-PYRM3OAI.js} +26 -20
  132. package/dist/{chunk-X6JUUQCM.js → chunk-Q4FVSYTD.js} +5 -2
  133. package/dist/{chunk-7ECPFKQV.js → chunk-QC35TPEE.js} +37 -13
  134. package/dist/{chunk-5IUVWP3A.js → chunk-QHVE6AFU.js} +2 -2
  135. package/dist/{chunk-SNKBI4YB.js → chunk-QJ2BV7FM.js} +2 -2
  136. package/dist/{chunk-OD7XWF5T.js → chunk-QKHW5NXL.js} +12 -6
  137. package/dist/{chunk-N6PAWR5C.js → chunk-QVHDAS3L.js} +5 -5
  138. package/dist/{chunk-4QPT3IEL.js → chunk-R3ONQOLE.js} +177 -55
  139. package/dist/{chunk-SM5PNCDI.js → chunk-RAOGN2HG.js} +2 -2
  140. package/dist/{chunk-X3UXEB2U.js → chunk-RDWGNSVI.js} +2 -2
  141. package/dist/{chunk-W2OXNTHG.js → chunk-RHFB457E.js} +3 -3
  142. package/dist/{chunk-Y6CZFX5X.js → chunk-RKIF4EU7.js} +28 -19
  143. package/dist/{chunk-B2WXMYMA.js → chunk-RPICLHBJ.js} +1 -1
  144. package/dist/{chunk-IE6BIB3L.js → chunk-RX67N2PU.js} +3 -1
  145. package/dist/{chunk-ERDQIRUL.js → chunk-SC7SX2I3.js} +18 -8
  146. package/dist/{chunk-NJPLH762.js → chunk-SGQKP2JT.js} +4 -4
  147. package/dist/{chunk-ROESFEBP.js → chunk-SO7FT7YA.js} +67 -60
  148. package/dist/chunk-SXCM6VY3.js +125 -0
  149. package/dist/{chunk-SE4NOUB6.js → chunk-T5QI7ZL2.js} +1 -1
  150. package/dist/{chunk-XMAU5ZQX.js → chunk-TFAKFI3R.js} +1 -1
  151. package/dist/{chunk-3GKGBYW3.js → chunk-THGJTFYB.js} +37 -6
  152. package/dist/{chunk-OMZSPAK5.js → chunk-TIBFCGLT.js} +1 -1
  153. package/dist/{chunk-PGITR2WX.js → chunk-TIZC4XKU.js} +4 -4
  154. package/dist/{chunk-CGODFJZ7.js → chunk-TJGGLLQJ.js} +13 -13
  155. package/dist/{chunk-EWKJDXH6.js → chunk-TNFTRLLJ.js} +4 -4
  156. package/dist/{chunk-E4IR34CF.js → chunk-TVWDS5AT.js} +18 -8
  157. package/dist/{chunk-66W5IWLO.js → chunk-U7M4SZUB.js} +13 -2
  158. package/dist/{chunk-VBEDZGBW.js → chunk-UBNJWS2H.js} +74 -19
  159. package/dist/{chunk-DH3M5X3Y.js → chunk-UNB2DFR2.js} +4 -4
  160. package/dist/{chunk-V3O4AFO3.js → chunk-URHIQHDR.js} +13 -13
  161. package/dist/{chunk-MK23FXLH.js → chunk-UVZIABYZ.js} +20 -1
  162. package/dist/{chunk-JKLWQUSV.js → chunk-VFGFXE6J.js} +1 -1
  163. package/dist/{chunk-2GRCLLKU.js → chunk-VPPKUCSP.js} +3 -3
  164. package/dist/{chunk-UJTLTFB6.js → chunk-VXRTE7MZ.js} +1 -1
  165. package/dist/{chunk-IGZQYMZA.js → chunk-WDMSNDHS.js} +34 -25
  166. package/dist/{chunk-WJIWXHXK.js → chunk-WI3FM54X.js} +3 -3
  167. package/dist/{chunk-O2INZCGB.js → chunk-WKE3WTIU.js} +1 -1
  168. package/dist/{chunk-2SJNGWSY.js → chunk-WQGDE3L6.js} +1 -1
  169. package/dist/{chunk-WGHJUGNU.js → chunk-WRSGWDDB.js} +7 -7
  170. package/dist/{chunk-37VS6QY6.js → chunk-WTZT6FSK.js} +1 -1
  171. package/dist/{chunk-DX5Y3L5B.js → chunk-XWV6BOCG.js} +3 -3
  172. package/dist/{chunk-WQZQMADW.js → chunk-XXJBWKDS.js} +241 -25
  173. package/dist/{chunk-XYP4T6TQ.js → chunk-XXOEYRD5.js} +5 -5
  174. package/dist/{chunk-BSFTB6AM.js → chunk-XZ6THYIK.js} +11 -5
  175. package/dist/{chunk-ALD7JBPV.js → chunk-YBYNBKCN.js} +2 -2
  176. package/dist/{chunk-HFIVZJJD.js → chunk-YMKCJRVK.js} +1 -1
  177. package/dist/{chunk-X3IVUSOX.js → chunk-Z2U7ELGP.js} +3 -3
  178. package/dist/{chunk-M3IHARIW.js → chunk-ZIYYSD6S.js} +44 -21
  179. package/dist/{chunk-VSM7OIG2.js → chunk-ZMLZRMG7.js} +2 -2
  180. package/dist/{chunk-DHVRVI7F.js → chunk-ZQIMO52O.js} +9 -9
  181. package/dist/{clean-6ODSABBF.js → clean-Z5REUSNY.js} +40 -39
  182. package/dist/cli.js +119 -75
  183. package/dist/{cloud-IMYQB5RC.js → cloud-NJ7G3NF3.js} +4 -4
  184. package/dist/{cloud-NTKLXMBS.js → cloud-QP5R6B6A.js} +10 -9
  185. package/dist/{cloudrun-JNLDP33J.js → cloudrun-CPAZLNTW.js} +16 -15
  186. package/dist/{compare-VLYZ6ZS4.js → compare-T5CHD25P.js} +53 -52
  187. package/dist/{compiler-7M2UCEWG.js → compiler-QVDXN4OS.js} +9 -8
  188. package/dist/{component-KMUHKZ4R.js → component-QMZ46KTE.js} +24 -8
  189. package/dist/{compositions-ESLWNOMS.js → compositions-JHYYNBAK.js} +26 -25
  190. package/dist/{contactSheet-4YF7U6U7.js → contactSheet-7SPGUTDV.js} +8 -7
  191. package/dist/{curve-7RPSNRPE.js → curve-ON6QQY7T.js} +25 -24
  192. package/dist/{cuts-KBAAZSPS.js → cuts-K4FOVP4E.js} +26 -25
  193. package/dist/{delete-EP5Z7HKF.js → delete-6WFQ3FC2.js} +21 -20
  194. package/dist/{deploy-MVR63JLD.js → deploy-UAZQ5PBA.js} +14 -12
  195. package/dist/{describeProject-NBVZT5EN.js → describeProject-7W6BN5A2.js} +17 -16
  196. package/dist/{destroy-DQKIT574.js → destroy-4B4OVPHJ.js} +14 -12
  197. package/dist/{deterministicFonts-LYBMXXBW.js → deterministicFonts-VLIVGXUQ.js} +8 -7
  198. package/dist/{diff-RI3FTMOZ.js → diff-ZSA37QQS.js} +292 -104
  199. package/dist/{dist-TOOMD57O.js → dist-2O52E7QZ.js} +20 -19
  200. package/dist/{dist-LRGTXDSM.js → dist-ACT5C6ME.js} +5 -4
  201. package/dist/{dist-G7VFX23I.js → dist-VRYZIJFZ.js} +12 -7
  202. package/dist/{docs-YTM4NX2R.js → docs-3OAPSKPG.js} +1 -1
  203. package/dist/{doctor-43YNRCRB.js → doctor-RXQ2Y2YY.js} +29 -28
  204. package/dist/{energy-YCH36KCC.js → energy-DRA3DCRO.js} +26 -25
  205. package/dist/{events-6RJBITYN.js → events-4SNBQE3M.js} +28 -27
  206. package/dist/{events-VUR27EF6.js → events-AJNF2C3H.js} +16 -15
  207. package/dist/{events-JCPYG3CD.js → events-GA3YM3WT.js} +9 -9
  208. package/dist/{execute-OXMKWIFI.js → execute-6LTZRWE4.js} +48 -47
  209. package/dist/{extract-XGD2RDEX.js → extract-XZQN654B.js} +27 -26
  210. package/dist/{face-XCNWNTGN.js → face-RKUNVSN3.js} +27 -26
  211. package/dist/{feedback-JNFDVBFV.js → feedback-AL7NPPMZ.js} +31 -29
  212. package/dist/{ffmpeg-YQLAJUEA.js → ffmpeg-BEL7EZBA.js} +17 -16
  213. package/dist/{figma-XXGHYEB3.js → figma-IZ3NH2KZ.js} +3 -3
  214. package/dist/fontLocalizeCli.js +24 -23
  215. package/dist/{frames-PEMWFRRY.js → frames-AYE53CSZ.js} +28 -27
  216. package/dist/{generate-H5M4QSJR.js → generate-BZ4EVVQI.js} +43 -42
  217. package/dist/{get-R6Y2OE5P.js → get-2GG4NSOK.js} +17 -16
  218. package/dist/{gpuPolicy-2WVDQYZA.js → gpuPolicy-W2ZGBXNG.js} +16 -15
  219. package/dist/{grade-compare-KFXPZFDL.js → grade-compare-65NWHVXK.js} +54 -53
  220. package/dist/hangReport.js +2 -2
  221. package/dist/{heifImagePrep-VLKYA5QZ.js → heifImagePrep-MRQ4KKDF.js} +19 -18
  222. package/dist/{help-T3XUX5RI.js → help-TEQWNNPI.js} +1 -1
  223. package/dist/{history-QJPUCUUC.js → history-MVNPETRW.js} +26 -25
  224. package/dist/hyperframe.manifest.json +1 -1
  225. package/dist/hyperframe.runtime.iife.js +64 -64
  226. package/dist/hyperframes-player.global.js +14 -6
  227. package/dist/{info-556DHJHJ.js → info-NGNTHWYX.js} +31 -30
  228. package/dist/{init-P62TPWR3.js → init-H7SUGVZX.js} +51 -48
  229. package/dist/{ink-SRN65OZH.js → ink-CPZ4YZFM.js} +26 -25
  230. package/dist/{inspect-U5FWQQFB.js → inspect-GZBQ7XN7.js} +56 -51
  231. package/dist/{installer-3TNMANQV.js → installer-ZTHYVK4L.js} +12 -11
  232. package/dist/{keyframes-FPGEFGCH.js → keyframes-B52LQUOI.js} +50 -37
  233. package/dist/{lambda-YJY2MYWL.js → lambda-SZDQJMKA.js} +30 -29
  234. package/dist/{layout-QIKSVA44.js → layout-BOUOG2D2.js} +56 -53
  235. package/dist/{lint-RD33ESM5.js → lint-H4OWI5JN.js} +23 -22
  236. package/dist/{lintProject-ZWLXB3A2.js → lintProject-P4EAXFU2.js} +5 -4
  237. package/dist/{list-FFO3WOB2.js → list-VNEYACGL.js} +20 -19
  238. package/dist/{localPage-DHIBMNJH.js → localPage-ZP7WVA2N.js} +17 -16
  239. package/dist/{login-IMFRQOEQ.js → login-RUDOUO5Z.js} +9 -9
  240. package/dist/{logout-SLBKP67J.js → logout-5ZO6ZNS3.js} +4 -4
  241. package/dist/{look-ZZHJYSPC.js → look-G3NVPKXZ.js} +26 -25
  242. package/dist/{manager-U4WEPCLV.js → manager-KWNID2ZA.js} +6 -6
  243. package/dist/{manager-V4LGD4HB.js → manager-NXH2NJC6.js} +18 -17
  244. package/dist/{measure-ZRBVN45B.js → measure-5PVIZ2W2.js} +11 -11
  245. package/dist/{media-treatment-3I2CMQJZ.js → media-treatment-T5QJI4PQ.js} +29 -28
  246. package/dist/{media-use-2OYJ3CCN.js → media-use-RTN3SMVY.js} +8 -8
  247. package/dist/{models-PRW7EWSV.js → models-J2CJ7EVX.js} +29 -28
  248. package/dist/{motionShot-VWILMLHQ.js → motionShot-HU7P26WJ.js} +31 -30
  249. package/dist/{normalize-PGMS24I2.js → normalize-44E7R6T5.js} +5 -1
  250. package/dist/{normalize-audio-42XMF35K.js → normalize-audio-2YFTP2T6.js} +21 -20
  251. package/dist/{oauth-V3HSFZRE.js → oauth-E5QBYYTX.js} +2 -2
  252. package/dist/{open-D52MJZQA.js → open-RSCNUV6E.js} +32 -31
  253. package/dist/{parakeetRunner-ZR2JWQZH.js → parakeetRunner-BUY25EIR.js} +28 -27
  254. package/dist/{pipeline-W3H4JA6H.js → pipeline-A4RL5R5P.js} +22 -21
  255. package/dist/{plan-2HQOFJO7.js → plan-7WYNPILA.js} +36 -35
  256. package/dist/{play-G5XDRDIZ.js → play-UKHFNMYZ.js} +44 -42
  257. package/dist/{policies-5RUNO47I.js → policies-XG6OTGQC.js} +2 -2
  258. package/dist/{preflight-W2JDYF3T.js → preflight-2VFCT3PI.js} +20 -19
  259. package/dist/{present-CYMTHQFM.js → present-ZUGFCQOF.js} +39 -37
  260. package/dist/{preview-DTQPQZTK.js → preview-BT2ZFYMC.js} +43 -42
  261. package/dist/{probe-WZJK3YQI.js → probe-2CLEK2UT.js} +26 -25
  262. package/dist/{producer-2BSMSO6I.js → producer-HCAMS55D.js} +1 -1
  263. package/dist/{progress-KRDVC24C.js → progress-5A4N7PTR.js} +7 -5
  264. package/dist/{projectConfig-BYRVYLCC.js → projectConfig-2KJ2PXIM.js} +15 -14
  265. package/dist/{prompts-7VQEH645.js → prompts-XC3IBT4D.js} +2 -2
  266. package/dist/{publicNetwork-GW7SVP7N.js → publicNetwork-66HWFKYG.js} +3 -1
  267. package/dist/{publication-UCFJLELD.js → publication-AR63EGJF.js} +9 -8
  268. package/dist/{publish-KXVPSWCO.js → publish-EGKYOJWV.js} +73 -63
  269. package/dist/{refresh-2GVNKDQE.js → refresh-GYRLZ7DZ.js} +4 -4
  270. package/dist/{remove-background-O7BZNS3X.js → remove-background-IQQPMM24.js} +26 -25
  271. package/dist/{render-TYS3LCIQ.js → render-HJRMJYTA.js} +16 -14
  272. package/dist/{render-QOWXGWQZ.js → render-ROJ5X53T.js} +62 -60
  273. package/dist/{render-DGAP4Q2Z.js → render-YNSZYEEK.js} +91 -83
  274. package/dist/{render-batch-TEQRGAUC.js → render-batch-MXYDIHRO.js} +20 -17
  275. package/dist/renderSetupWorker.js +21 -11
  276. package/dist/{resolver-RN2JGGQL.js → resolver-SPLAVF76.js} +12 -11
  277. package/dist/{reverse-FUARFEG2.js → reverse-CE6OGBB7.js} +1 -1
  278. package/dist/{run-V722HMUG.js → run-YVNJJL26.js} +14 -13
  279. package/dist/runtimeVersion.js +6 -1
  280. package/dist/{sam-KHLM2DJA.js → sam-2D3BUTL7.js} +5 -5
  281. package/dist/{screenshotCapture-4BB4LUMX.js → screenshotCapture-DRO7VMNI.js} +19 -18
  282. package/dist/{service-ZPCHJY6B.js → service-K65JYG4O.js} +28 -26
  283. package/dist/{share-PXUN7AH7.js → share-CSVWF6SB.js} +33 -31
  284. package/dist/{sherpa-LT6Y7IGM.js → sherpa-JE6AFUEV.js} +27 -26
  285. package/dist/sherpaWorker.js +7 -6
  286. package/dist/{sites-WWCABDSX.js → sites-QCGTWVNF.js} +9 -6
  287. package/dist/skills/hyperframes-cli/references/lambda.md +1 -1
  288. package/dist/skills/media-use/scripts/lib/credit-limit.d.mts +1 -1
  289. package/dist/skills/media-use/scripts/lib/credit-limit.mjs +14 -9
  290. package/dist/{skills-G63W5GD5.js → skills-L3BXM7VJ.js} +22 -21
  291. package/dist/{skillsUpdateCheck-2T3JVDAA.js → skillsUpdateCheck-VUENI5OR.js} +7 -7
  292. package/dist/{snapshot-EVSKTVDG.js → snapshot-GI2GWIF6.js} +90 -79
  293. package/dist/{src-R57EQQSI.js → src-B646B52O.js} +19 -14
  294. package/dist/{src-K5FSMLTB.js → src-ZXZO5RCJ.js} +25 -24
  295. package/dist/{start-XBCYKGBV.js → start-ZNGKXRNE.js} +40 -39
  296. package/dist/{state-FO64CPYE.js → state-7CJBWHXJ.js} +7 -5
  297. package/dist/{staticProjectServer-Q6VR7CXT.js → staticProjectServer-46T6YTPF.js} +31 -30
  298. package/dist/{status-E5XIWRCQ.js → status-7SWTPLVI.js} +31 -30
  299. package/dist/studio/assets/hyperframes-player-bya4hgms.js +573 -0
  300. package/dist/studio/assets/{index-ww7-RmuM.js → index--dcfSUzI.js} +1 -1
  301. package/dist/studio/assets/{index-D7ICtobF.js → index-Bxh5lW0C.js} +117 -117
  302. package/dist/studio/assets/{pausedVideoDecoder-Dbe8Cmab.js → pausedVideoDecoder-BKym1jA6.js} +1 -1
  303. package/dist/studio/index.html +1 -1
  304. package/dist/{studio-api-GMJVYGET.js → studio-api-4XKM5HDR.js} +20 -19
  305. package/dist/{studioServer-MIQCMK6U.js → studioServer-4TWRIZNU.js} +176 -125
  306. package/dist/subCompositionWorker.js +11 -10
  307. package/dist/{sync-WJOFN6VN.js → sync-R3K6LYB3.js} +26 -25
  308. package/dist/{synthesize-FXM7ZD6J.js → synthesize-OZ3SJTOF.js} +22 -13
  309. package/dist/{system-DBUN5UDD.js → system-LZ4PMOJD.js} +3 -3
  310. package/dist/{telemetry-M722DCXI.js → telemetry-UC4MSMG3.js} +1 -1
  311. package/dist/{telemetry-HZ4P4DMC.js → telemetry-WSBY25O3.js} +16 -15
  312. package/dist/{templates-KFZZSSKW.js → templates-ITP6ISAF.js} +36 -29
  313. package/dist/{timeline-5M6DPCXF.js → timeline-U7GJMYKV.js} +42 -37
  314. package/dist/{tokens-H4NPNRFR.js → tokens-3YTSUU27.js} +6 -6
  315. package/dist/{transcribe-7PE5UH7J.js → transcribe-ISCBYWN4.js} +23 -22
  316. package/dist/{transcribe-6STI2ALX.js → transcribe-QHHY5M3G.js} +51 -50
  317. package/dist/{tts-D7CLD3AD.js → tts-24IJXIT2.js} +9 -9
  318. package/dist/{update-H3T3AVVG.js → update-SVEH2GOL.js} +24 -23
  319. package/dist/{updateCheck-TLCXUNBV.js → updateCheck-MDG7N7VO.js} +6 -6
  320. package/dist/{upgrade-BZVTMCQU.js → upgrade-6CGAI4OR.js} +12 -11
  321. package/dist/{urlDownloader-FJXNC3IM.js → urlDownloader-VPQTIGEH.js} +15 -14
  322. package/dist/{validate-WTRVCEL5.js → validate-QUB4KCEQ.js} +47 -42
  323. package/dist/{video-TVO2U5F2.js → video-PUGZ5UHS.js} +35 -29
  324. package/dist/{voices-F3EW43LX.js → voices-4UO5AYLS.js} +40 -39
  325. package/dist/warmCheck.js +65 -64
  326. package/dist/warmCheckClient.js +4 -4
  327. package/package.json +1 -1
  328. package/dist/chunk-23SG3B6M.js +0 -81
  329. package/dist/chunk-2RUCE54M.js +0 -5083
  330. package/dist/chunk-JOQR4AP6.js +0 -22
  331. package/dist/studio/assets/hyperframes-player-B78JDyI_.js +0 -565
  332. package/dist/{chunk-7IMHPBSH.js → chunk-4NDSGKPO.js} +3 -3
@@ -7,34 +7,37 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  cliCheckoutLink,
9
9
  pageUrl
10
- } from "./chunk-WJIWXHXK.js";
10
+ } from "./chunk-WI3FM54X.js";
11
11
  import {
12
12
  Fix
13
- } from "./chunk-EZJHKHWU.js";
13
+ } from "./chunk-OYKAS3J5.js";
14
14
  import {
15
15
  refreshIfNeeded,
16
16
  resolveCloudAuthHeaders,
17
17
  resolveCloudBaseUrl
18
- } from "./chunk-GDIBE57N.js";
18
+ } from "./chunk-MVA4OQL7.js";
19
19
  import {
20
20
  HyperframesApiError,
21
21
  HyperframesCloudClient
22
22
  } from "./chunk-D3NWGOXW.js";
23
23
  import {
24
24
  resolveCredential
25
- } from "./chunk-QGQCWG7F.js";
25
+ } from "./chunk-KGPHUBBA.js";
26
26
  import {
27
27
  AuthClient,
28
28
  buildAuthHeaders
29
- } from "./chunk-XMAU5ZQX.js";
29
+ } from "./chunk-TFAKFI3R.js";
30
+ import {
31
+ appendRecord
32
+ } from "./chunk-JT7RXK2N.js";
30
33
  import {
31
34
  configDir
32
35
  } from "./chunk-DMW5SSUN.js";
33
36
 
34
37
  // src/heygen/v3.ts
35
- import { createHash } from "crypto";
36
- import { appendFileSync, existsSync as existsSync2, mkdirSync, readFileSync as readFileSync2 } from "fs";
37
- import { dirname, join as join2 } from "path";
38
+ import { createHash as createHash2 } from "crypto";
39
+ import { appendFileSync as appendFileSync2, existsSync as existsSync3, mkdirSync as mkdirSync2, readFileSync as readFileSync3 } from "fs";
40
+ import { dirname, join as join3 } from "path";
38
41
 
39
42
  // src/media-use/lib/credit-limit.mjs
40
43
  import { existsSync, readFileSync } from "fs";
@@ -50,16 +53,120 @@ function creditLimit(projectDir) {
50
53
  }
51
54
  function creditsSpent(projectDir) {
52
55
  const charged = /* @__PURE__ */ new Map();
53
- for (const row of read(join(projectDir, ".hyperframes", "heygen-jobs.jsonl")).split("\n")) {
56
+ for (const line of read(join(projectDir, ".hyperframes", "heygen-jobs.jsonl")).split("\n")) {
57
+ let row;
58
+ try {
59
+ row = JSON.parse(line);
60
+ } catch {
61
+ continue;
62
+ }
63
+ const { key, credits } = Object(row);
64
+ if (key && typeof credits === "number")
65
+ charged.set(key, Number.isFinite(credits) && credits > 0 ? credits : 0);
66
+ }
67
+ const keys = new Map([...charged].filter(([, c]) => c > 0));
68
+ return { total: [...keys.values()].reduce((a, b) => a + b, 0), keys };
69
+ }
70
+
71
+ // src/heygen/jobLedger.ts
72
+ import { createHash } from "crypto";
73
+ import {
74
+ appendFileSync,
75
+ existsSync as existsSync2,
76
+ mkdirSync,
77
+ readFileSync as readFileSync2,
78
+ realpathSync,
79
+ renameSync,
80
+ writeFileSync
81
+ } from "fs";
82
+ import { join as join2, resolve } from "path";
83
+ var ledgerFile = () => join2(configDir(), "heygen-job-ledger");
84
+ var LINES_KEPT = 1e4;
85
+ var toCredits = (value) => typeof value === "number" && Number.isFinite(value) && value > 0 ? value : 0;
86
+ function ledgerScope(scope, projectDir) {
87
+ if (!scope || !projectDir) return null;
88
+ let real;
89
+ try {
90
+ real = realpathSync(projectDir);
91
+ } catch {
92
+ real = resolve(projectDir);
93
+ }
94
+ return `${scope}:${createHash("sha256").update(real).digest("hex").slice(0, 16)}`;
95
+ }
96
+ function parse(line) {
97
+ try {
98
+ return Object(JSON.parse(line));
99
+ } catch {
100
+ return null;
101
+ }
102
+ }
103
+ function readLedger(at) {
104
+ const ledger = { own: /* @__PURE__ */ new Map(), seen: /* @__PURE__ */ new Map() };
105
+ const file = ledgerFile();
106
+ if (!existsSync2(file)) return ledger;
107
+ for (const line of readFileSync2(file, "utf8").split("\n")) {
108
+ const row = parse(line);
54
109
  if (!row) continue;
55
- const { key, credits } = JSON.parse(row);
56
- if (key && typeof credits === "number") charged.set(key, credits);
110
+ const { kind, key } = row;
111
+ if (row.at === at && typeof key === "string" && (kind === "own" || kind === "seen"))
112
+ ledger[kind].set(key, toCredits(row.credits));
57
113
  }
58
- return {
59
- total: [...charged.values()].reduce((a, b) => a + b, 0),
60
- keys: new Set([...charged].filter(([, c]) => c > 0).map(([k]) => k))
61
- };
114
+ return ledger;
115
+ }
116
+ function note(at, kind, entries) {
117
+ if (entries.length === 0) return;
118
+ mkdirSync(configDir(), { recursive: true, mode: 448 });
119
+ const lines = entries.map(([key, credits]) => `${JSON.stringify({ at, kind, key, credits })}
120
+ `);
121
+ appendFileSync(ledgerFile(), lines.join(""), { mode: 384 });
122
+ const kept = readFileSync2(ledgerFile(), "utf8").split("\n").filter(Boolean);
123
+ if (kept.length <= LINES_KEPT) return;
124
+ const temp = `${ledgerFile()}.${process.pid}.tmp`;
125
+ writeFileSync(temp, `${trimmed(kept, at).join("\n")}
126
+ `, { mode: 384 });
127
+ renameSync(temp, ledgerFile());
62
128
  }
129
+ function trimmed(lines, at) {
130
+ const last = /* @__PURE__ */ new Map();
131
+ const live = lines.map((line, n) => {
132
+ const row = parse(line);
133
+ if (row?.at === at) last.set(`${String(row.kind)} ${String(row.key)}`, n);
134
+ return row?.at === at;
135
+ });
136
+ const keep = new Set(last.values());
137
+ let room = LINES_KEPT - keep.size;
138
+ for (let n = lines.length - 1; n >= 0 && room > 0; n--)
139
+ if (!live[n]) {
140
+ keep.add(n);
141
+ room--;
142
+ }
143
+ return lines.filter((_, n) => keep.has(n));
144
+ }
145
+ function noteOwn(at, key, credits) {
146
+ if (at) note(at, "own", [[key, toCredits(credits)]]);
147
+ }
148
+ function spentIn(projectDir, at) {
149
+ if (!at)
150
+ throw new Fix(
151
+ "can't tell which account is signed in, so the limit can't be checked; nothing was made",
152
+ "run the same command again; if this comes back, npx hyperframes auth login"
153
+ );
154
+ const ledger = readLedger(at);
155
+ const logged = creditsSpent(projectDir).keys;
156
+ const others = new Map(ledger.seen);
157
+ for (const [key, credits] of logged) others.set(key, Math.max(credits, others.get(key) ?? 0));
158
+ for (const key of ledger.own.keys()) others.delete(key);
159
+ note(
160
+ at,
161
+ "seen",
162
+ [...others].filter(([key, credits]) => credits > (ledger.seen.get(key) ?? 0))
163
+ );
164
+ const total = [...ledger.own.values(), ...others.values()].reduce((a, b) => a + b, 0);
165
+ let gone = 0;
166
+ for (const [key, credits] of others) gone += credits - (logged.get(key) ?? 0);
167
+ return { total, own: ledger.own, others, gone };
168
+ }
169
+ var goneNote = (spent) => spent.gone > 0 ? `. ${spent.gone} of the credits counted are from job log rows no longer in the project, noted in ${ledgerFile()}` : "";
63
170
 
64
171
  // src/heygen/v3.ts
65
172
  var MEDIA_USE_SKILL = "media-use";
@@ -75,7 +182,7 @@ function limitCheck(credits, vendorPriced = false) {
75
182
  };
76
183
  }
77
184
  function idempotencyKey(route, parts) {
78
- const h = createHash("sha256").update(route);
185
+ const h = createHash2("sha256").update(route);
79
186
  for (const p of parts) h.update(p).update("\0");
80
187
  return `hf-${h.digest("hex").slice(0, 40)}`;
81
188
  }
@@ -83,7 +190,7 @@ var Refused = class extends Fix {
83
190
  status = 0;
84
191
  };
85
192
  var KEEPS_KEY = /* @__PURE__ */ new Set([401, 403, 408, 409, 425, 429]);
86
- var failedKeysFile = () => join2(configDir(), "heygen-failed-keys");
193
+ var failedKeysFile = () => join3(configDir(), "heygen-failed-keys");
87
194
  var noSignIn = () => {
88
195
  throw new Fix("no HeyGen sign-in on this machine", "npx hyperframes auth login");
89
196
  };
@@ -93,24 +200,24 @@ async function jobSender() {
93
200
  (user) => user.username ?? user.email,
94
201
  () => void 0
95
202
  );
96
- const scope = who ? createHash("sha256").update(`${resolveCloudBaseUrl()}\0${who}`).digest("hex").slice(0, 16) : null;
203
+ const scope = who ? createHash2("sha256").update(`${resolveCloudBaseUrl()}\0${who}`).digest("hex").slice(0, 16) : null;
97
204
  return { auth: buildAuthHeaders(credential), scope };
98
205
  }
99
- function failedKeys(scope) {
100
- const file = failedKeysFile();
101
- const lines = existsSync2(file) ? readFileSync2(file, "utf8").split("\n") : [];
206
+ function scopedKeys(file, scope) {
207
+ const lines = existsSync3(file) ? readFileSync3(file, "utf8").split("\n") : [];
102
208
  return new Set(
103
209
  lines.filter((l) => l.startsWith(`${scope} `)).map((l) => l.slice(scope.length + 1))
104
210
  );
105
211
  }
106
- function markFailed(key, scope) {
212
+ function noteKey(file, key, scope) {
107
213
  if (!scope) return;
108
- mkdirSync(configDir(), { recursive: true });
109
- appendFileSync(failedKeysFile(), `${scope} ${key}
110
- `);
214
+ mkdirSync2(configDir(), { recursive: true, mode: 448 });
215
+ appendFileSync2(file, `${scope} ${key}
216
+ `, { mode: 384 });
111
217
  }
218
+ var markFailed = (key, scope) => noteKey(failedKeysFile(), key, scope);
112
219
  function liveKey(key, scope) {
113
- const failed = scope ? failedKeys(scope) : /* @__PURE__ */ new Set();
220
+ const failed = scope ? scopedKeys(failedKeysFile(), scope) : /* @__PURE__ */ new Set();
114
221
  let sent = key;
115
222
  for (let n = 1; failed.has(sent); n++) sent = `${key}-${n}`;
116
223
  return sent;
@@ -205,23 +312,32 @@ async function call(route, send, timeoutMs, estimate, auth) {
205
312
  status: String(data.status ?? (id ? "pending" : "completed"))
206
313
  };
207
314
  }
208
- function log(entry, record) {
209
- if (!entry.projectDir) return;
210
- const dir = join2(entry.projectDir, ".hyperframes");
211
- mkdirSync(dir, { recursive: true });
212
- appendFileSync(
213
- join2(dir, "heygen-jobs.jsonl"),
214
- `${JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), what: entry.what, ...record })}
315
+ var JOB_LOG = "heygen-jobs.jsonl";
316
+ function appendJobLog(projectDir, line) {
317
+ if (!appendRecord(
318
+ projectDir,
319
+ JOB_LOG,
320
+ `${JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), ...line })}
215
321
  `
216
- );
322
+ ))
323
+ throw new Fix(
324
+ `${join3(projectDir, ".hyperframes", JOB_LOG)} could not be added to; a link or anything but a plain file there, or in place of .hyperframes, is never written through`,
325
+ "remove that link or file and run the same command again"
326
+ );
327
+ }
328
+ function log(entry, record, at) {
329
+ if (!entry.projectDir) return;
330
+ appendJobLog(entry.projectDir, { what: entry.what, ...record });
331
+ if (typeof record.key === "string" && typeof record.credits === "number")
332
+ noteOwn(at, record.key, record.credits);
217
333
  }
218
- function withinLimit(limitLog, sent, credits, vendorPriced) {
334
+ function withinLimit(limitLog, sent, at, credits, vendorPriced) {
219
335
  if (!limitLog?.projectDir) return false;
220
336
  const limit = creditLimit(limitLog.projectDir);
221
337
  if (limit === void 0) return false;
222
- const spent = creditsSpent(limitLog.projectDir);
223
- if (spent.keys.has(sent)) return false;
224
- const left = limit - spent.total;
338
+ const spent = spentIn(limitLog.projectDir, at);
339
+ if ((spent.own.get(sent) ?? 0) > 0) return false;
340
+ const left = limit - spent.total + (spent.others.get(sent) ?? 0);
225
341
  const fix = "tell the person what their limit leaves out, then ask whether to raise it or make the video without this piece";
226
342
  if (credits === void 0)
227
343
  throw new Fix(
@@ -231,10 +347,10 @@ function withinLimit(limitLog, sent, credits, vendorPriced) {
231
347
  const { checked, about } = limitCheck(credits, vendorPriced);
232
348
  if (checked > left)
233
349
  throw new Fix(
234
- `this call is ${about} and the run's credit limit of ${limit} leaves ${Math.max(0, left)}; nothing was made or charged`,
350
+ `this call is ${about} and the run's credit limit of ${limit} leaves ${Math.max(0, left)}; nothing was made or charged${goneNote(spent)}`,
235
351
  fix
236
352
  );
237
- log(limitLog, { key: sent, status: "reserved", credits: checked });
353
+ log(limitLog, { key: sent, status: "reserved", credits: checked }, at);
238
354
  return true;
239
355
  }
240
356
  async function runJob(jobRoute, body, key, opts = {}) {
@@ -242,7 +358,8 @@ async function runJob(jobRoute, body, key, opts = {}) {
242
358
  const route = jobRoute.path;
243
359
  const { auth, scope } = await jobSender();
244
360
  const sent = liveKey(key, scope);
245
- const reserved = withinLimit(opts.log, sent, opts.credits, opts.vendorPriced);
361
+ const at = ledgerScope(scope, opts.log?.projectDir);
362
+ const reserved = withinLimit(opts.log, sent, at, opts.credits, opts.vendorPriced);
246
363
  const held = opts.credits === void 0 ? void 0 : limitCheck(opts.credits, opts.vendorPriced).checked;
247
364
  let job;
248
365
  try {
@@ -256,13 +373,13 @@ async function runJob(jobRoute, body, key, opts = {}) {
256
373
  } catch (err) {
257
374
  if (err instanceof Refused && !KEEPS_KEY.has(err.status)) {
258
375
  markFailed(sent, scope);
259
- if (reserved && opts.log) log(opts.log, { key: sent, status: "refused", credits: 0 });
376
+ if (reserved && opts.log) log(opts.log, { key: sent, status: "refused", credits: 0 }, at);
260
377
  }
261
378
  throw err;
262
379
  }
263
380
  const waits = RUNNING.has(job.status.toLowerCase());
264
381
  if (opts.log && waits)
265
- log(opts.log, { route, id: job.id, key: sent, status: job.status, credits: held });
382
+ log(opts.log, { route, id: job.id, key: sent, status: job.status, credits: held }, at);
266
383
  const status = jobRoute.status;
267
384
  while (status && RUNNING.has(job.status.toLowerCase())) {
268
385
  if (Date.now() - started > (opts.timeoutMs ?? 15 * 6e4))
@@ -280,13 +397,17 @@ async function runJob(jobRoute, body, key, opts = {}) {
280
397
  );
281
398
  }
282
399
  if (opts.log)
283
- log(opts.log, {
284
- route,
285
- id: job.id,
286
- key: sent,
287
- status: job.status,
288
- credits: chargedCredits(job) ?? opts.credits
289
- });
400
+ log(
401
+ opts.log,
402
+ {
403
+ route,
404
+ id: job.id,
405
+ key: sent,
406
+ status: job.status,
407
+ credits: chargedCredits(job) ?? opts.credits
408
+ },
409
+ at
410
+ );
290
411
  if (!/^(completed|succeeded|success|done)$/i.test(job.status)) {
291
412
  markFailed(sent, scope);
292
413
  throw await refusal(422, {
@@ -318,20 +439,21 @@ var ownVoices = (limit) => listVoices({ type: "private" }, limit);
318
439
  async function senderScope() {
319
440
  return (await jobSender()).scope;
320
441
  }
321
- var picksFile = (projectDir) => projectDir ? join2(projectDir, ".hyperframes", "heygen-jobs.jsonl") : join2(configDir(), "heygen-voice-picks.jsonl");
442
+ var picksFile = (projectDir) => projectDir ? join3(projectDir, ".hyperframes", "heygen-jobs.jsonl") : join3(configDir(), "heygen-voice-picks.jsonl");
322
443
  function keptVoice(projectDir, request) {
323
444
  const file = picksFile(projectDir);
324
- if (!existsSync2(file)) return void 0;
325
- for (const line of readFileSync2(file, "utf8").split("\n")) {
445
+ if (!existsSync3(file)) return void 0;
446
+ for (const line of readFileSync3(file, "utf8").split("\n")) {
326
447
  const entry = line ? JSON.parse(line) : null;
327
448
  if (isRecord(entry) && entry.voice_pick === request && isVoice(entry.voice)) return entry.voice;
328
449
  }
329
450
  return void 0;
330
451
  }
331
452
  function keepVoice(projectDir, request, voice) {
453
+ if (projectDir) return appendJobLog(projectDir, { voice_pick: request, voice });
332
454
  const file = picksFile(projectDir);
333
- mkdirSync(dirname(file), { recursive: true });
334
- appendFileSync(
455
+ mkdirSync2(dirname(file), { recursive: true });
456
+ appendFileSync2(
335
457
  file,
336
458
  `${JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), voice_pick: request, voice })}
337
459
  `
@@ -6,12 +6,12 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  setHostHandlesSigint
9
- } from "./chunk-VLFBOKZX.js";
9
+ } from "./chunk-CC72LTIT.js";
10
10
  import {
11
11
  processAncestorSnapshot,
12
12
  processIdentity,
13
13
  processParentPid
14
- } from "./chunk-CNAOJ7XI.js";
14
+ } from "./chunk-A7NRMVUG.js";
15
15
  import {
16
16
  processIsAlive
17
17
  } from "./chunk-KGPLIH7B.js";
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  sherpaParakeetInstalled,
9
9
  sherpaUnsupportedReason
10
- } from "./chunk-TLGQQ324.js";
10
+ } from "./chunk-OPIS2YMA.js";
11
11
  import {
12
12
  findParakeet
13
- } from "./chunk-A4YRESMH.js";
13
+ } from "./chunk-5T6HPV25.js";
14
14
 
15
15
  // src/whisper/parakeetRunner.ts
16
16
  function parakeetRunner({
@@ -6,16 +6,16 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  writeNewFileSync
9
- } from "./chunk-3VMZQQUI.js";
9
+ } from "./chunk-OF7SQ77J.js";
10
10
  import {
11
11
  normalizeSkillSlug
12
12
  } from "./chunk-HVW7ABXD.js";
13
13
  import {
14
14
  DEFAULT_REGISTRY_URL
15
- } from "./chunk-EWKJDXH6.js";
15
+ } from "./chunk-TNFTRLLJ.js";
16
16
  import {
17
17
  replaceFileAtomically
18
- } from "./chunk-DL6PEJWH.js";
18
+ } from "./chunk-K2WLOTTF.js";
19
19
 
20
20
  // src/utils/projectConfig.ts
21
21
  import { lstatSync, mkdirSync, readFileSync } from "fs";
@@ -6,29 +6,29 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  gotoWhenSent
9
- } from "./chunk-NJPLH762.js";
9
+ } from "./chunk-SGQKP2JT.js";
10
+ import {
11
+ windowsChromeCrashRemediation
12
+ } from "./chunk-262C25DQ.js";
10
13
  import {
11
14
  SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
12
15
  } from "./chunk-YGGZ23BB.js";
13
16
  import {
14
17
  resolveCompositionViewportFromHtml
15
- } from "./chunk-H3LEOZVK.js";
16
- import {
17
- windowsChromeCrashRemediation
18
- } from "./chunk-262C25DQ.js";
18
+ } from "./chunk-7YRZBB4C.js";
19
19
  import {
20
20
  pageNavigationTimeoutMs
21
- } from "./chunk-N6PAWR5C.js";
21
+ } from "./chunk-QVHDAS3L.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  registerBrowserSessionCleanup,
25
25
  resolveManagedGpuMode,
26
26
  rethrowAfterBrowserCleanup
27
- } from "./chunk-DX5Y3L5B.js";
27
+ } from "./chunk-XWV6BOCG.js";
28
28
  import {
29
29
  resolveLocalBrowserGpuMode,
30
30
  resolveLocalWebGpu
31
- } from "./chunk-ZYNNZ5DE.js";
31
+ } from "./chunk-D44MBZI6.js";
32
32
  import {
33
33
  c
34
34
  } from "./chunk-JCNPHRGX.js";
@@ -37,7 +37,7 @@ import {
37
37
  compositionRequiresWebGpu,
38
38
  oneProcessOverPipe,
39
39
  resolveRestrictPageNetwork
40
- } from "./chunk-VLFBOKZX.js";
40
+ } from "./chunk-CC72LTIT.js";
41
41
  import {
42
42
  normalizeErrorMessage
43
43
  } from "./chunk-E63BDV4Z.js";
@@ -47,28 +47,37 @@ import { spawn } from "child_process";
47
47
 
48
48
  // src/browser/pageNetwork.ts
49
49
  async function launchWithPageNetwork(pageUrl, launch) {
50
- const { resolveRestrictPageNetwork: resolveRestrictPageNetwork2 } = await import("./src-R57EQQSI.js");
50
+ const { resolveRestrictPageNetwork: resolveRestrictPageNetwork2 } = await import("./src-B646B52O.js");
51
51
  if (!resolveRestrictPageNetwork2()) return launch({ args: [] });
52
52
  if (!pageUrl)
53
53
  throw new Error("A restricted page network needs the page's URL before Chrome launches.");
54
- const { browserProxyArgs, createPublicOnlyProfile, logRefusal, startCaptureProxy } = await import("./publicNetwork-GW7SVP7N.js");
54
+ const {
55
+ browserProxyArgs,
56
+ createPublicOnlyProfile,
57
+ logRefusal,
58
+ pageServerDirectHost,
59
+ startCaptureProxy
60
+ } = await import("./publicNetwork-66HWFKYG.js");
55
61
  const { rm } = await import("fs/promises");
56
62
  const proxy = await startCaptureProxy(null, logRefusal);
57
- let userDataDir;
63
+ let profile;
58
64
  let released;
59
65
  let stopWatching = () => {
60
66
  };
61
67
  const release = () => released ??= (async () => {
62
68
  stopWatching();
63
69
  await proxy.close();
70
+ const userDataDir = await profile?.catch(() => void 0);
64
71
  if (userDataDir) await rm(userDataDir, { recursive: true, force: true }).catch(() => {
65
72
  });
66
73
  })();
67
74
  try {
68
75
  stopWatching = registerBrowserSessionCleanup(release);
69
- userDataDir = await createPublicOnlyProfile("hf-cli-profile-");
76
+ profile = createPublicOnlyProfile("hf-cli-profile-");
77
+ const userDataDir = await profile;
78
+ if (released) throw new Error("The CLI is stopping; Chrome was not launched.");
70
79
  const browser = await launch({
71
- args: browserProxyArgs(proxy.url, new URL(pageUrl).host),
80
+ args: browserProxyArgs(proxy.url, pageServerDirectHost(pageUrl)),
72
81
  userDataDir
73
82
  });
74
83
  if (browser.connected) browser.once("disconnected", () => void release());
@@ -183,7 +192,7 @@ async function waitForCompositionSettle(page, options) {
183
192
  console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
184
193
  });
185
194
  await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
186
- const { resolveConfig, waitForImagesReady } = await import("./src-R57EQQSI.js");
195
+ const { resolveConfig, waitForImagesReady } = await import("./src-B646B52O.js");
187
196
  const imageTimeoutMs = resolveConfig().playerReadyTimeout;
188
197
  await waitForImagesReady(
189
198
  page,
@@ -232,7 +241,7 @@ async function installPageFunctionGuard(page) {
232
241
  async function openSettledCompositionPage(html, url, options) {
233
242
  const viewport = resolveCompositionViewportFromHtml(html);
234
243
  const requiresWebGpu = compositionRequiresWebGpu(html);
235
- const answer = (await import("./staticProjectServer-Q6VR7CXT.js")).inProcessAnswer(url);
244
+ const answer = (await import("./staticProjectServer-46T6YTPF.js")).inProcessAnswer(url);
236
245
  const noListen = answer !== void 0;
237
246
  let chromeBrowser;
238
247
  try {
@@ -243,7 +252,7 @@ async function openSettledCompositionPage(html, url, options) {
243
252
  options.onBrowserReady?.();
244
253
  const page = await chromeBrowser.newPage();
245
254
  await installPageFunctionGuard(page);
246
- const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-R57EQQSI.js");
255
+ const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-B646B52O.js");
247
256
  await installMediaRenderIdBridge(page);
248
257
  await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
249
258
  await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
@@ -261,10 +270,10 @@ async function openSettledCompositionPage(html, url, options) {
261
270
  }
262
271
  async function launchCompositionBrowser(html, noListen, options, pageUrl) {
263
272
  const viewport = resolveCompositionViewportFromHtml(html);
264
- const { ensureBrowser, findSystemBrowser } = await import("./manager-U4WEPCLV.js");
273
+ const { ensureBrowser, findSystemBrowser } = await import("./manager-KWNID2ZA.js");
265
274
  const browser = await ensureBrowser({ signal: options.signal });
266
275
  const puppeteer = await import("puppeteer-core");
267
- const { buildChromeArgs } = await import("./src-R57EQQSI.js");
276
+ const { buildChromeArgs } = await import("./src-B646B52O.js");
268
277
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
269
278
  const requiresWebGpu = compositionRequiresWebGpu(html);
270
279
  let softwareWebGpu = false;
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-JCNPHRGX.js";
13
13
  import {
14
14
  CliUsageError
15
- } from "./chunk-66W5IWLO.js";
15
+ } from "./chunk-U7M4SZUB.js";
16
16
 
17
17
  // src/utils/reject-unknown-flags.ts
18
18
  var ALWAYS_KNOWN = /* @__PURE__ */ new Set(["help", "h", "version", "v"]);
@@ -289,6 +289,7 @@ var PATH_OPENING_DEMUXERS = /* @__PURE__ */ new Set([
289
289
  "vapoursynth",
290
290
  "lavfi"
291
291
  ]);
292
+ var TEXT_ART_DEMUXERS = /* @__PURE__ */ new Set(["tty", "bin", "xbin", "idf", "adf"]);
292
293
  function demuxersFromListing(listing) {
293
294
  const row = /Is a device/.test(listing) ? /^ D[E ]([d ]) (\S+)/ : /^ D[E ]() (\S+)/;
294
295
  const names = /* @__PURE__ */ new Set();
@@ -296,7 +297,8 @@ function demuxersFromListing(listing) {
296
297
  const match = row.exec(line);
297
298
  if (!match || match[1] === "d") continue;
298
299
  const aliases = match[2].split(",");
299
- if (aliases.some((alias) => PATH_OPENING_DEMUXERS.has(alias))) continue;
300
+ if (aliases.some((alias) => PATH_OPENING_DEMUXERS.has(alias) || TEXT_ART_DEMUXERS.has(alias)))
301
+ continue;
300
302
  for (const alias of aliases) names.add(alias);
301
303
  }
302
304
  return names.size > 0 ? [...names].join(",") : void 0;
@@ -10,23 +10,28 @@ import {
10
10
  round,
11
11
  runFfmpeg,
12
12
  sumOf
13
- } from "./chunk-EZJHKHWU.js";
13
+ } from "./chunk-OYKAS3J5.js";
14
14
  import {
15
15
  downloadToFile
16
- } from "./chunk-D2LSYXLW.js";
16
+ } from "./chunk-4VJQVTQI.js";
17
17
  import {
18
18
  verifies
19
19
  } from "./chunk-RZ6CXJ56.js";
20
20
  import {
21
- hyperframesCacheDir
22
- } from "./chunk-JOQR4AP6.js";
21
+ assertPrivateCachePath,
22
+ ensurePrivateCacheDir,
23
+ foreignWritablePath,
24
+ sealCacheInstall,
25
+ trustedCacheRoot
26
+ } from "./chunk-KUJJJBV2.js";
23
27
 
24
28
  // src/measure/opencv.ts
25
- import { mkdirSync, readFileSync, renameSync, rmSync } from "fs";
29
+ import { readFileSync, renameSync, rmSync } from "fs";
26
30
  import { createRequire } from "module";
27
31
  import { join } from "path";
28
32
  var VERSION = "4.10.0";
29
- var OPENCV_DIR = hyperframesCacheDir("opencv", VERSION);
33
+ var CODE_ROOT = trustedCacheRoot();
34
+ var OPENCV_DIR = join(CODE_ROOT, "opencv", VERSION);
30
35
  var CASCADES = "https://raw.githubusercontent.com/opencv/opencv/4.10.0/data/haarcascades";
31
36
  var FILES = [
32
37
  {
@@ -51,9 +56,12 @@ var FILES = [
51
56
  var isCv = (v) => typeof v === "object" && v !== null && "Mat" in v && "matFromArray" in v;
52
57
  async function ensureOpenCv(onStatus) {
53
58
  const missing = [];
54
- for (const f of FILES) if (!await verifies(join(OPENCV_DIR, f.name), f)) missing.push(f);
59
+ for (const f of FILES) {
60
+ const file = join(OPENCV_DIR, f.name);
61
+ if (foreignWritablePath(file, CODE_ROOT) || !await verifies(file, f)) missing.push(f);
62
+ }
55
63
  if (!missing.length) return;
56
- mkdirSync(OPENCV_DIR, { recursive: true });
64
+ ensurePrivateCacheDir(OPENCV_DIR, CODE_ROOT);
57
65
  for (const f of missing) {
58
66
  onStatus?.(`Downloading ${f.name} (${Math.round(f.bytes / 1e5) / 10} MB, once)...`);
59
67
  const temp = join(OPENCV_DIR, `${f.name}.part-${process.pid}`);
@@ -75,6 +83,8 @@ async function ensureOpenCv(onStatus) {
75
83
  rmSync(temp, { force: true });
76
84
  }
77
85
  }
86
+ sealCacheInstall(OPENCV_DIR, CODE_ROOT);
87
+ for (const f of FILES) assertPrivateCachePath(join(OPENCV_DIR, f.name), CODE_ROOT);
78
88
  }
79
89
  var loaded = null;
80
90
  function loadOpenCv(onStatus) {
@@ -4,17 +4,17 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ bundledGsapFor
9
+ } from "./chunk-LSGJY2FG.js";
7
10
  import {
8
11
  isDegradableEvaluateTimeoutError,
9
12
  isNavigationTimeoutError,
10
13
  withRemainingBudget
11
14
  } from "./chunk-YGGZ23BB.js";
12
- import {
13
- bundledGsapFor
14
- } from "./chunk-J6VYWZSO.js";
15
15
  import {
16
16
  gsapCdnDist
17
- } from "./chunk-5IUVWP3A.js";
17
+ } from "./chunk-QHVE6AFU.js";
18
18
 
19
19
  // src/capture/navigateForCapture.ts
20
20
  var NETWORK_IDLE_ATTEMPT_MS = 3e4;