hyperframes 0.9.54 → 0.9.56

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 (316) hide show
  1. package/dist/{add-OVHVUHQR.js → add-KW7OTOWF.js} +23 -23
  2. package/dist/{agentPromptGenerator-L2B3HMHF.js → agentPromptGenerator-NNXUWNU4.js} +14 -13
  3. package/dist/{animatedGifPrep-YMJH33FX.js → animatedGifPrep-6ATQHQON.js} +15 -14
  4. package/dist/api.d.ts +4 -2
  5. package/dist/api.js +46 -44
  6. package/dist/{appHistory-T3ZLA7QN.js → appHistory-KHX53SGI.js} +6 -4
  7. package/dist/{asset-ORCN4EVH.js → asset-QVINGJRK.js} +2 -2
  8. package/dist/{assetCataloger-X23VB66T.js → assetCataloger-DENJPUBH.js} +15 -14
  9. package/dist/{audio-NHNXBUI2.js → audio-LB7HQYPJ.js} +28 -27
  10. package/dist/{auth-DQDDXQFC.js → auth-7AGRVI5A.js} +2 -2
  11. package/dist/{autoUpdate-LF7BJN34.js → autoUpdate-ITCP2JDM.js} +4 -4
  12. package/dist/{avatars-KFUMWRVX.js → avatars-2K2C74EQ.js} +19 -17
  13. package/dist/{backgroundChecks-Y6RHADW6.js → backgroundChecks-UOTBCWPN.js} +5 -5
  14. package/dist/backgroundChecksWorker.js +5 -5
  15. package/dist/{batchRender-CMG4SVBX.js → batchRender-Z7ESYQDS.js} +9 -7
  16. package/dist/{beats-JXZBK7JI.js → beats-TG6ZB3XH.js} +14 -14
  17. package/dist/{benchmark-CLU6JUGY.js → benchmark-RU5MLZHE.js} +20 -20
  18. package/dist/{billing-5GMYFDMC.js → billing-VB5PYYSN.js} +19 -19
  19. package/dist/{browser-S4R6LZMF.js → browser-VSQRY5GG.js} +12 -12
  20. package/dist/{bundleWithLocalizedFonts-SFUFSBEU.js → bundleWithLocalizedFonts-XDPJE355.js} +1 -1
  21. package/dist/{capture-A3FLQIDI.js → capture-M4FL7MWI.js} +25 -24
  22. package/dist/{capture-NL7V23HG.js → capture-TQCFWPAT.js} +4 -4
  23. package/dist/{captureCompositionFrame-R7GYVNTF.js → captureCompositionFrame-XF67Q6YK.js} +20 -19
  24. package/dist/{captureFile-LXMDM5TD.js → captureFile-F254H22J.js} +3 -3
  25. package/dist/{catalog-42I7W7AU.js → catalog-24EGH662.js} +23 -23
  26. package/dist/catalog-artifact/media-vectors.json +205 -0
  27. package/dist/{catch-up-TFSQZQZD.js → catch-up-L23HGDLB.js} +16 -16
  28. package/dist/{check-CXRQZBLD.js → check-F4HQVV2M.js} +56 -53
  29. package/dist/{checkAudio-AJUH6RU6.js → checkAudio-6DT3ONR7.js} +17 -16
  30. package/dist/{checkBrowser-4BLSYI25.js → checkBrowser-S7P4X7QV.js} +46 -45
  31. package/dist/{chunk-Q42L7V5T.js → chunk-2GRCTZNS.js} +1 -1
  32. package/dist/{chunk-EKANCN4D.js → chunk-2ZOJCSLJ.js} +3 -3
  33. package/dist/{chunk-ER22SVLT.js → chunk-3GVHDPEP.js} +1 -1
  34. package/dist/{chunk-MPU2CRFV.js → chunk-43CQTZGB.js} +13 -14
  35. package/dist/{chunk-63ESYLBY.js → chunk-4DJGUZJR.js} +2 -2
  36. package/dist/{chunk-B6AK5P2D.js → chunk-4GPKDDQZ.js} +7 -7
  37. package/dist/{chunk-KYUCSRZU.js → chunk-4WSJ5MUN.js} +1 -1
  38. package/dist/{chunk-T5S7U5C6.js → chunk-52XHPMCX.js} +1 -1
  39. package/dist/chunk-56T2OGYR.js +5085 -0
  40. package/dist/{chunk-4Q3Q4NFK.js → chunk-5GSCSZOS.js} +2 -2
  41. package/dist/{chunk-3L2POG2J.js → chunk-5IE5ZI66.js} +37 -8
  42. package/dist/{chunk-SWAG64KW.js → chunk-5ZDNSYTO.js} +8 -13
  43. package/dist/{chunk-N7M2SNAF.js → chunk-664QGMR4.js} +2 -2
  44. package/dist/chunk-677JGYQL.js +91 -0
  45. package/dist/{chunk-GA6QR6LN.js → chunk-6LONEKJR.js} +253 -158
  46. package/dist/{chunk-LEIR7IDJ.js → chunk-6LU6JICP.js} +80 -1
  47. package/dist/{chunk-SVIA7POL.js → chunk-6XRXUMFG.js} +2 -2
  48. package/dist/{chunk-4ZFNNWUX.js → chunk-7DKWEIH4.js} +10 -10
  49. package/dist/{chunk-GEUM7NDY.js → chunk-7E7VKASF.js} +2 -2
  50. package/dist/{chunk-5HJZGP54.js → chunk-7F4RAWDS.js} +2 -2
  51. package/dist/{chunk-OWS4ZWEY.js → chunk-7HQC5MDZ.js} +1 -1
  52. package/dist/{chunk-P4YIRU76.js → chunk-7QFFS657.js} +1 -1
  53. package/dist/{chunk-AYESPEPQ.js → chunk-7QFLMCTD.js} +6 -1
  54. package/dist/chunk-AGTBMLNM.js +42 -0
  55. package/dist/{chunk-BNONW4QT.js → chunk-AN6KWGYI.js} +2 -2
  56. package/dist/{chunk-JAAIW4JR.js → chunk-ANYW22IT.js} +1 -1
  57. package/dist/{chunk-JRSBBFUU.js → chunk-APCVZGU6.js} +402 -110
  58. package/dist/{chunk-7WRLK2K4.js → chunk-B6BWLFAF.js} +2 -2
  59. package/dist/{chunk-VCKUDUPN.js → chunk-BA33QNKK.js} +199 -15
  60. package/dist/{chunk-WPSPW7SI.js → chunk-BMVUB2CY.js} +6 -6
  61. package/dist/{chunk-5XLTJMCN.js → chunk-BPYNILOZ.js} +5 -5
  62. package/dist/{chunk-H5KHQ6KS.js → chunk-BR7GOCQJ.js} +1 -1
  63. package/dist/{chunk-6SRBTOGD.js → chunk-BTJYK56C.js} +3 -3
  64. package/dist/{chunk-EA5W2DWO.js → chunk-BUG5AOPJ.js} +3 -3
  65. package/dist/{chunk-7RI3U46M.js → chunk-BW4H55SU.js} +1 -1
  66. package/dist/{chunk-SDFGDNWV.js → chunk-BZXW5QU7.js} +1 -1
  67. package/dist/{chunk-WPD7JH6F.js → chunk-CBG6MIT2.js} +2 -2
  68. package/dist/{chunk-O7TIBLSJ.js → chunk-CKIVYAKG.js} +80 -15
  69. package/dist/{chunk-YVCPUVHV.js → chunk-CKIYT34K.js} +1 -1
  70. package/dist/{chunk-DWDCE4PO.js → chunk-CLRHKYOK.js} +6 -6
  71. package/dist/{chunk-3IUBSGD2.js → chunk-CNXZCMJZ.js} +2 -2
  72. package/dist/{chunk-F64VFCVC.js → chunk-CPSD7337.js} +51 -28
  73. package/dist/{chunk-73UFPVUC.js → chunk-CUO2HF4M.js} +2 -2
  74. package/dist/{chunk-JSYLOPVJ.js → chunk-CWIOKI2R.js} +1 -1
  75. package/dist/{chunk-IB6FFEDH.js → chunk-CXFW7YPT.js} +42 -48
  76. package/dist/{chunk-YNF3SH26.js → chunk-CZCZ5YXT.js} +3 -2
  77. package/dist/{chunk-SUG2AA33.js → chunk-D3WRRPHI.js} +10 -10
  78. package/dist/{chunk-CWXJZB44.js → chunk-DDCXMXAD.js} +11 -11
  79. package/dist/{chunk-X6TDH2OM.js → chunk-DUZ6Z2ZN.js} +1 -1
  80. package/dist/{chunk-DXVK3NMV.js → chunk-EBRN4YJH.js} +3 -3
  81. package/dist/{chunk-RBBWUYMG.js → chunk-EGR2ZFFP.js} +4 -4
  82. package/dist/{chunk-AU4ZBCR3.js → chunk-EKSS3KI7.js} +1 -1
  83. package/dist/{chunk-TMV76KPG.js → chunk-EUP7ODOV.js} +1 -1
  84. package/dist/{chunk-E2DHBP6C.js → chunk-FGGRBKWL.js} +1 -1
  85. package/dist/{chunk-GIOLHGCC.js → chunk-GTC2STHN.js} +116 -27
  86. package/dist/{chunk-E7T5SMDK.js → chunk-GWSMTN55.js} +51 -10
  87. package/dist/{chunk-QGKRHG4Q.js → chunk-HCQXGGVY.js} +18 -18
  88. package/dist/{chunk-WAAXVZIT.js → chunk-HOCV5AW6.js} +2 -2
  89. package/dist/{chunk-7RGWVZOS.js → chunk-HVG656G6.js} +3 -3
  90. package/dist/{chunk-D4EGZYDN.js → chunk-ICDGP335.js} +13 -10
  91. package/dist/{chunk-NKAW4RVE.js → chunk-IDGWNOBX.js} +1 -1
  92. package/dist/{chunk-YU5LSWA2.js → chunk-IHX3AFTY.js} +2 -2
  93. package/dist/{chunk-CAYQATCT.js → chunk-IO7PRQQC.js} +1 -1
  94. package/dist/{chunk-BDWLBCTG.js → chunk-IRZUZ32B.js} +5 -5
  95. package/dist/{chunk-QONV77VI.js → chunk-IT2QBRVS.js} +1 -1
  96. package/dist/{chunk-PXLGDX2S.js → chunk-JDXALWOM.js} +39 -24
  97. package/dist/{chunk-E7X54BVP.js → chunk-JPEIUGS5.js} +1 -1
  98. package/dist/{chunk-4IUOWNDS.js → chunk-JQKCRTVQ.js} +2 -2
  99. package/dist/{chunk-UZJ7Y7WU.js → chunk-KRYXZVA2.js} +3 -3
  100. package/dist/{chunk-CIYNUD7Q.js → chunk-L27Z3PZT.js} +1 -1
  101. package/dist/{chunk-CBCB6GPL.js → chunk-L5CBCPUH.js} +60 -33
  102. package/dist/{chunk-BBDWXUO3.js → chunk-L5NPBGQB.js} +15 -22
  103. package/dist/{chunk-B5HSHXE2.js → chunk-LH5FRVAO.js} +12 -7
  104. package/dist/{chunk-YBLBI3O2.js → chunk-LK7F7P2X.js} +6 -3
  105. package/dist/{chunk-4WK4O5FI.js → chunk-LRQEIKFT.js} +67 -27
  106. package/dist/{chunk-FUPEHRNT.js → chunk-LRWWCTSJ.js} +2 -2
  107. package/dist/{chunk-RXJUMVCA.js → chunk-MDRLJ737.js} +5 -2
  108. package/dist/{chunk-VK3MQSA2.js → chunk-MK4RH5L7.js} +5 -2
  109. package/dist/{chunk-AROERRUJ.js → chunk-MP52CUHL.js} +2 -2
  110. package/dist/{chunk-ATKA5KHE.js → chunk-MPOWSPBD.js} +3 -3
  111. package/dist/{chunk-H7DKHNBF.js → chunk-MVLAPENI.js} +36 -8
  112. package/dist/{chunk-2PASB3PC.js → chunk-NCJSN6SV.js} +5 -5
  113. package/dist/{chunk-DVTRMGYG.js → chunk-NFST2HIM.js} +2 -2
  114. package/dist/{chunk-C7LNWZ7G.js → chunk-OXT2LXZB.js} +8 -6
  115. package/dist/{chunk-MEGSQW2I.js → chunk-OZDELWQP.js} +2 -29
  116. package/dist/{chunk-EB4IWBBC.js → chunk-PCKKKICA.js} +18 -4
  117. package/dist/{chunk-SOMX57XG.js → chunk-PGHROSLJ.js} +4 -4
  118. package/dist/{chunk-Q3ESTCZH.js → chunk-PGJYA6I3.js} +11 -11
  119. package/dist/{chunk-NKUUNSII.js → chunk-PHAZT6EB.js} +1 -1
  120. package/dist/{chunk-KCF6Q54R.js → chunk-PUTPYYE4.js} +1 -1
  121. package/dist/{chunk-NRGNEP3R.js → chunk-PVF32NRA.js} +2 -2
  122. package/dist/{chunk-32DAUKF5.js → chunk-Q2TT62RQ.js} +4 -4
  123. package/dist/{chunk-EXXIFMUX.js → chunk-QBADK3LD.js} +13 -5
  124. package/dist/{chunk-DOLVT6CH.js → chunk-QJDMX53S.js} +1 -1
  125. package/dist/{chunk-F7B2YDPM.js → chunk-QNIID7EN.js} +6 -8
  126. package/dist/{chunk-FICKJQU2.js → chunk-QTZICZWT.js} +4 -4
  127. package/dist/{chunk-Y6UCMYJZ.js → chunk-R2LP7QPB.js} +1 -1
  128. package/dist/{chunk-YUDWGRNZ.js → chunk-RCGNYXWK.js} +14 -14
  129. package/dist/{chunk-CNZOKODL.js → chunk-RFULFCYW.js} +3 -3
  130. package/dist/{chunk-26RTKW2U.js → chunk-RRT6URIP.js} +2 -2
  131. package/dist/{chunk-IR2GEREV.js → chunk-SEC76O65.js} +1 -1
  132. package/dist/{chunk-3NXY6O4X.js → chunk-SGWDJLFL.js} +1 -1
  133. package/dist/{chunk-RXSPJW77.js → chunk-T5HYPGST.js} +4 -4
  134. package/dist/{chunk-77U3646W.js → chunk-TVZTTWU7.js} +2 -2
  135. package/dist/{chunk-ELA3IV4P.js → chunk-TY7EHE4Q.js} +2 -2
  136. package/dist/{chunk-75TCOXNT.js → chunk-UHVKV5IF.js} +1 -1
  137. package/dist/{chunk-SULPT5X6.js → chunk-UIMXEY4U.js} +6 -6
  138. package/dist/{chunk-KWTTELUY.js → chunk-UVPLW55S.js} +37 -1
  139. package/dist/{chunk-EKCGL4MV.js → chunk-VC4YMXUQ.js} +1 -1
  140. package/dist/{chunk-H2GJDFF6.js → chunk-VCSQLM36.js} +14 -9
  141. package/dist/{chunk-VT2K6I4A.js → chunk-VVXSMYXQ.js} +3 -3
  142. package/dist/{chunk-NCLBKHCX.js → chunk-W4AR7UZH.js} +2 -2
  143. package/dist/{chunk-TM7D3NOR.js → chunk-WFB4XPJR.js} +45 -11
  144. package/dist/{chunk-PAA5FUUL.js → chunk-WGWKT7ME.js} +3 -3
  145. package/dist/{chunk-LRXARA5O.js → chunk-WHX2OV4C.js} +1 -1
  146. package/dist/{chunk-O6E5HSVF.js → chunk-WUY74LHU.js} +2 -2
  147. package/dist/{chunk-RZJ7BHXB.js → chunk-XD5T43S7.js} +1 -1
  148. package/dist/{chunk-3NPZZT2K.js → chunk-XEVAW42J.js} +9 -9
  149. package/dist/{chunk-JHOCK3DG.js → chunk-XFF4XJZO.js} +11 -3
  150. package/dist/{chunk-4NG5GSTO.js → chunk-XKNNZ4WR.js} +1 -1
  151. package/dist/{chunk-3IHRXHJQ.js → chunk-XLP34AJR.js} +2 -2
  152. package/dist/{chunk-QKYGGUOQ.js → chunk-YDNBMPP3.js} +4 -4
  153. package/dist/{chunk-PLOVBMJF.js → chunk-YFWFCKKF.js} +291 -235
  154. package/dist/{chunk-EZQJFCWA.js → chunk-YOMFN6HH.js} +2 -2
  155. package/dist/{chunk-TRAPS5WB.js → chunk-YQSVPHOS.js} +27 -37
  156. package/dist/{chunk-OTWFSHYH.js → chunk-YWH7HWDP.js} +269 -145
  157. package/dist/chunk-YXX6CIHL.js +25 -0
  158. package/dist/{chunk-TW4DB2NK.js → chunk-Z72VXQPN.js} +2 -2
  159. package/dist/{chunk-KTLRJZFK.js → chunk-ZIF44RW2.js} +9 -10
  160. package/dist/{clean-JK4VQMTH.js → clean-VB6BH3FV.js} +30 -29
  161. package/dist/cli.js +66 -66
  162. package/dist/{cloud-JZ2WKHQG.js → cloud-7KRPD2K4.js} +4 -4
  163. package/dist/{cloud-LU4FVT33.js → cloud-A67BW6OH.js} +3 -3
  164. package/dist/{cloudrun-QBXSGBGX.js → cloudrun-VKBARVVT.js} +22 -9
  165. package/dist/{compare-YE5BTDCG.js → compare-SE55PMC3.js} +45 -44
  166. package/dist/{compiler-QEA5UQRG.js → compiler-WK7ABGRW.js} +6 -6
  167. package/dist/{component-MGT5ZJ4M.js → component-XT2AT3RY.js} +3 -3
  168. package/dist/{compositions-7OF6FDCH.js → compositions-ZZWLQNDQ.js} +25 -23
  169. package/dist/{contactSheet-CCHQAZLA.js → contactSheet-MXOASCDR.js} +4 -4
  170. package/dist/{curve-JQLVUDXR.js → curve-4RQQKZ2K.js} +19 -17
  171. package/dist/{cuts-MCJP6LMJ.js → cuts-M3QU2CBE.js} +20 -18
  172. package/dist/{delete-PUYEW3RJ.js → delete-5ZZNPK5G.js} +7 -7
  173. package/dist/{deploy-M4XGMJM5.js → deploy-VR5SQP4U.js} +9 -4
  174. package/dist/{describeProject-P7CBZ6NW.js → describeProject-NU5BVVIA.js} +14 -13
  175. package/dist/{destroy-6XJWSH2A.js → destroy-FFS62PAW.js} +9 -4
  176. package/dist/{deterministicFonts-OXGNMVJE.js → deterministicFonts-FQQNGORI.js} +4 -4
  177. package/dist/{diff-BATSO64W.js → diff-NQGTF6GR.js} +58 -52
  178. package/dist/{dist-T62DJJZX.js → dist-6GYOC3BU.js} +4 -4
  179. package/dist/{dist-G6W7GKGP.js → dist-APXZ5EN2.js} +3 -3
  180. package/dist/{dist-PC3EMMET.js → dist-B7IBHWIW.js} +18 -15
  181. package/dist/{doctor-ONTGSPYF.js → doctor-FATJGTPD.js} +22 -21
  182. package/dist/{energy-FNZICGW2.js → energy-PHDK6SKL.js} +20 -18
  183. package/dist/{events-LBHSU7C2.js → events-25VQ2O66.js} +10 -10
  184. package/dist/{events-6TNBAVVY.js → events-OIWXSBZA.js} +25 -22
  185. package/dist/{events-ENJZNXWG.js → events-RXVHG2NT.js} +5 -5
  186. package/dist/{execute-RXTEBACV.js → execute-MKP4Z573.js} +36 -35
  187. package/dist/{extract-F2CWTMLX.js → extract-YYNYXPOC.js} +20 -18
  188. package/dist/{face-7HL4CP32.js → face-JSTMFQRM.js} +21 -19
  189. package/dist/{feedback-4NDDMECH.js → feedback-PY6LMZCX.js} +19 -19
  190. package/dist/{ffmpeg-3LL345SO.js → ffmpeg-KLIB55FK.js} +13 -12
  191. package/dist/{figma-474E54NB.js → figma-ACFOXVPM.js} +3 -3
  192. package/dist/fontLocalizeCli.js +20 -19
  193. package/dist/{frames-EZWGM7QQ.js → frames-BLZCBXO7.js} +22 -20
  194. package/dist/{generate-I75DZWDU.js → generate-DMVEKZEV.js} +33 -31
  195. package/dist/{get-BHU6CBWO.js → get-3WZDQ5YM.js} +7 -7
  196. package/dist/{gpuPolicy-6J2STCV2.js → gpuPolicy-TT6UCOLQ.js} +13 -12
  197. package/dist/{grade-compare-D4TBMCBG.js → grade-compare-F5DJ53XH.js} +47 -44
  198. package/dist/hangReport.js +2 -2
  199. package/dist/{heifImagePrep-VLYGRKSS.js → heifImagePrep-UV23RWOG.js} +16 -15
  200. package/dist/{help-2CUXKYJ6.js → help-QMP5KFYW.js} +1 -1
  201. package/dist/{history-LVAVYTAN.js → history-UOZ4RDEZ.js} +21 -18
  202. package/dist/hyperframe.manifest.json +1 -1
  203. package/dist/hyperframe.runtime.iife.js +76 -76
  204. package/dist/hyperframes-player.global.js +1 -1
  205. package/dist/{info-SUZOEH6L.js → info-A6KSO64E.js} +21 -20
  206. package/dist/{init-XI5QN3A6.js → init-OQU46K3Q.js} +52 -47
  207. package/dist/{ink-OVDZOCQJ.js → ink-HGRKLGII.js} +20 -18
  208. package/dist/{inspect-INBCGPBD.js → inspect-BKENKUXF.js} +44 -43
  209. package/dist/{installer-JNQKFCTN.js → installer-Z6FTR7BJ.js} +8 -8
  210. package/dist/{keyframes-LYZJK4RH.js → keyframes-UDQGWKPW.js} +14 -14
  211. package/dist/{lambda-DUDXZV6X.js → lambda-SHXQFHLE.js} +23 -22
  212. package/dist/{layout-JKUJW6A4.js → layout-CJAVQ4D3.js} +44 -43
  213. package/dist/{lint-NKDC7IJ2.js → lint-RAPNYPWS.js} +15 -15
  214. package/dist/{lintProject-5Z34NNS4.js → lintProject-JZRM7UKH.js} +3 -3
  215. package/dist/{list-5HUMDJYL.js → list-4BKFMJQN.js} +7 -7
  216. package/dist/{localPage-RRBRFR4Y.js → localPage-BJW2TP77.js} +14 -13
  217. package/dist/{login-C3SHKITR.js → login-S5VZAGCI.js} +4 -4
  218. package/dist/{look-3TX2U4BE.js → look-V2I6BGUY.js} +20 -18
  219. package/dist/{manager-MOR255LW.js → manager-OS2FYJI5.js} +14 -13
  220. package/dist/{manager-45VB2G5F.js → manager-WQWU5VJ4.js} +5 -5
  221. package/dist/{measure-ZAKBHNGY.js → measure-RO5R2SUZ.js} +11 -11
  222. package/dist/{media-treatment-QJ35DSED.js → media-treatment-CS7BVMJW.js} +21 -20
  223. package/dist/{media-use-YBKHJVXL.js → media-use-W3DGCKFB.js} +5 -5
  224. package/dist/{models-OQHKG7B4.js → models-ZOGYW2SC.js} +18 -17
  225. package/dist/{motionShot-TWQTREFH.js → motionShot-IMRI7W7T.js} +24 -23
  226. package/dist/{normalize-audio-PXHPUOMD.js → normalize-audio-HXTFAZUK.js} +14 -14
  227. package/dist/{open-TVGO5KVF.js → open-LJDQ37KV.js} +25 -24
  228. package/dist/{parakeetRunner-MVJMZSIG.js → parakeetRunner-CKMSKDH6.js} +21 -20
  229. package/dist/{pipeline-4S5UE4O4.js → pipeline-ZNCYOTUH.js} +16 -15
  230. package/dist/{plan-AMBZUX55.js → plan-NCFS5T6W.js} +28 -27
  231. package/dist/{play-KEAESNBM.js → play-5UZDFFXJ.js} +39 -32
  232. package/dist/{preflight-K3CM3W55.js → preflight-H5XYFKFF.js} +16 -15
  233. package/dist/{present-42WDBGBA.js → present-EFXUFT5Y.js} +62 -46
  234. package/dist/{preview-KSHBU7ZR.js → preview-RV7ALGDQ.js} +35 -33
  235. package/dist/{probe-TMSXGCL4.js → probe-UB6DM2Q3.js} +20 -18
  236. package/dist/{producer-KXRSJPJF.js → producer-2PKB5CW5.js} +1 -1
  237. package/dist/{progress-IY6U35WH.js → progress-S36VQBQW.js} +3 -1
  238. package/dist/{projectConfig-LOHNVOJG.js → projectConfig-EUH5DILC.js} +12 -12
  239. package/dist/{publication-LYPU7NTZ.js → publication-VI2AXXKR.js} +6 -6
  240. package/dist/{publish-PYZXDQJW.js → publish-225GB7R4.js} +25 -25
  241. package/dist/{remove-background-HVX52VOF.js → remove-background-W2RLEQHJ.js} +17 -16
  242. package/dist/{render-CM4MCNVA.js → render-KXKBSNOQ.js} +9 -8
  243. package/dist/{render-57ZYQ53S.js → render-WMWCCMWI.js} +71 -54
  244. package/dist/{render-5KMA5P2U.js → render-Y3JKWEN4.js} +42 -39
  245. package/dist/{render-batch-URBBGOVC.js → render-batch-GK6CDHKN.js} +10 -9
  246. package/dist/renderSetupWorker.js +8 -8
  247. package/dist/{resolver-UPUCU4XT.js → resolver-5CRZD5XB.js} +9 -9
  248. package/dist/{reverse-UYS7KVE2.js → reverse-YPYKKQSJ.js} +1 -1
  249. package/dist/{run-4LNEWQLG.js → run-FQ76QNES.js} +7 -7
  250. package/dist/{sam-EGFXZF56.js → sam-A4NXDWSU.js} +4 -1
  251. package/dist/{screenshotCapture-IF5AO5XM.js → screenshotCapture-R6VE66NR.js} +16 -15
  252. package/dist/{service-OEOC34BD.js → service-P3IKHZFC.js} +18 -17
  253. package/dist/{share-NS7CMVSU.js → share-BU4VQL3B.js} +21 -20
  254. package/dist/{sherpa-QBTXL6JA.js → sherpa-44GLXY3A.js} +20 -19
  255. package/dist/sherpaWorker.js +5 -3
  256. package/dist/{sites-QK3F4AUS.js → sites-TAX3JLNX.js} +3 -1
  257. package/dist/skills/hyperframes/SKILL.md +2 -2
  258. package/dist/skills/hyperframes/references/format.md +11 -2
  259. package/dist/skills/hyperframes/references/overlays.md +1 -1
  260. package/dist/skills/hyperframes/references/plugin-installation.md +33 -22
  261. package/dist/skills/hyperframes/references/sound.md +1 -0
  262. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +18 -13
  263. package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +64 -40
  264. package/dist/skills/hyperframes-cli/SKILL.md +2 -2
  265. package/dist/skills/media-use/SKILL.md +1 -1
  266. package/dist/skills/media-use/audio/scripts/lib/bgm.mjs +4 -1
  267. package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +62 -1
  268. package/dist/skills/media-use/audio/scripts/lib/python.mjs +9 -1
  269. package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +16 -0
  270. package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +27 -2
  271. package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +40 -1
  272. package/dist/skills/media-use/scripts/lib/local-media-search.mjs +52 -23
  273. package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +73 -4
  274. package/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +3 -1
  275. package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +16 -1
  276. package/dist/skills/media-use/scripts/resolve.mjs +4 -14
  277. package/dist/skills/media-use/scripts/transcribe.mjs +19 -3
  278. package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -0
  279. package/dist/{skills-S5U2MQAI.js → skills-H4OZQ6VR.js} +15 -14
  280. package/dist/{skillsUpdateCheck-UZ7CZ6VC.js → skillsUpdateCheck-U3XZX7UE.js} +5 -5
  281. package/dist/{snapshot-YWFWQTAV.js → snapshot-FJQVXBFB.js} +59 -56
  282. package/dist/{src-N2SMYJ44.js → src-O6BHCR4O.js} +18 -17
  283. package/dist/{src-UQ3K3UW2.js → src-PAM5LJ6K.js} +12 -11
  284. package/dist/{start-4IA5GG5D.js → start-R7CYOQ5S.js} +31 -29
  285. package/dist/{state-7OIPR4BG.js → state-YFRV6TQH.js} +3 -1
  286. package/dist/{staticProjectServer-5JP25RRX.js → staticProjectServer-4X2OSUN4.js} +29 -28
  287. package/dist/{status-ITCKXFBF.js → status-VN3FAN4M.js} +21 -21
  288. package/dist/studio/assets/{hyperframes-player-Oju91F6x.js → hyperframes-player-SRLbmEDB.js} +1 -1
  289. package/dist/studio/assets/{index-B0VEzzD2.js → index-CgyBYe2L.js} +130 -130
  290. package/dist/studio/assets/{index-XEm_N45R.js → index-yuN1pZrv.js} +1 -1
  291. package/dist/studio/assets/{pausedVideoDecoder-p6zibxVM.js → pausedVideoDecoder-DtvSF8bV.js} +1 -1
  292. package/dist/studio/index.html +1 -1
  293. package/dist/{studio-api-GENM2XVL.js → studio-api-V3TMIWFB.js} +18 -15
  294. package/dist/{studioSelectionClient-W2S3H2VO.js → studioSelectionClient-S46TNAAZ.js} +2 -1
  295. package/dist/{studioServer-SWR5Q3PD.js → studioServer-GY2ZTR2E.js} +90 -77
  296. package/dist/{sync-CK6TTCXO.js → sync-2V3JYCDE.js} +20 -18
  297. package/dist/{synthesize-EXNEBJSY.js → synthesize-TQELPMS5.js} +5 -5
  298. package/dist/{system-JBPJHNTG.js → system-2YOII5LZ.js} +3 -3
  299. package/dist/{telemetry-T4HQ6AKZ.js → telemetry-KMRZ3IJV.js} +10 -10
  300. package/dist/{templates-7O7NOIUC.js → templates-EEFY4FPS.js} +129 -37
  301. package/dist/{timeline-P2PLN53O.js → timeline-HSRGYZ3Q.js} +28 -27
  302. package/dist/{tokens-SPQN27VG.js → tokens-NYFORL53.js} +2 -2
  303. package/dist/{transcribe-YJQ3DDDI.js → transcribe-CNIQYQ52.js} +37 -35
  304. package/dist/{transcribe-SCZG6IM4.js → transcribe-GFFWRWK3.js} +17 -16
  305. package/dist/{tts-5OAB5XX6.js → tts-NPMDYSXP.js} +1 -1
  306. package/dist/{update-JYPZW35A.js → update-BDMPUNNA.js} +17 -16
  307. package/dist/{updateCheck-5M2JJTH3.js → updateCheck-43UZ2USJ.js} +4 -4
  308. package/dist/{upgrade-BP62FM6V.js → upgrade-Z5B57UWL.js} +7 -7
  309. package/dist/{urlDownloader-WOZQCE6P.js → urlDownloader-KDZ76BKM.js} +12 -11
  310. package/dist/{validate-NEC5QLH7.js → validate-UQKZNR5K.js} +35 -34
  311. package/dist/{video-XEEBISSO.js → video-VR4363OG.js} +15 -14
  312. package/dist/{voices-GCHA27JA.js → voices-GUWAM3TH.js} +31 -29
  313. package/dist/warmCheck.js +56 -53
  314. package/dist/warmCheckClient.js +2 -2
  315. package/package.json +2 -1
  316. package/dist/chunk-XGEJPKRY.js +0 -5069
@@ -4,6 +4,7 @@ import { spawnSync } from "node:child_process";
4
4
  import { chmodSync, existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5
5
  import { tmpdir } from "node:os";
6
6
  import { join } from "node:path";
7
+ import { resolve } from "node:path";
7
8
  import { defaultProbe, resolvePythonCommand, pythonInvocation } from "./python.mjs";
8
9
 
9
10
  // Regression: on Windows a standard python.org install has no `python3.exe`
@@ -180,3 +181,18 @@ test("a module planted in the working directory is never imported", { skip: !has
180
181
  rmSync(project, { recursive: true, force: true });
181
182
  }
182
183
  });
184
+
185
+ // fails without the fix: a relative HYPERFRAMES_PYTHON was probed in the caller's folder but run
186
+ // from wherever the child started, so MusicGen, which starts in the home folder, could not find it.
187
+ test("a HYPERFRAMES_PYTHON with a folder in it means the caller's folder; a bare name keeps PATH lookup", () => {
188
+ const probed = [];
189
+ const probe = (cmd) => (probed.push(cmd), true);
190
+ assert.deepEqual(
191
+ resolvePythonCommand("linux", probe, { HYPERFRAMES_PYTHON: "./venv/bin/python" }),
192
+ [resolve("venv/bin/python")],
193
+ );
194
+ assert.deepEqual(probed, [resolve("venv/bin/python")]);
195
+ assert.deepEqual(resolvePythonCommand("linux", probe, { HYPERFRAMES_PYTHON: "python3.12" }), [
196
+ "python3.12",
197
+ ]);
198
+ });
@@ -1,5 +1,5 @@
1
- import { existsSync, readFileSync } from "node:fs";
2
- import { extname, join } from "node:path";
1
+ import { existsSync, readFileSync, realpathSync, statSync } from "node:fs";
2
+ import { extname, isAbsolute, join, relative } from "node:path";
3
3
  import { rankMediaRows } from "./media-search.mjs";
4
4
 
5
5
  const LIB_DIR =
@@ -80,6 +80,31 @@ export function extensionForBundledSfxFile(filename) {
80
80
  return extname(filename) || ".mp3";
81
81
  }
82
82
 
83
+ const INDEX_FILE_PREFIX = "skills/media-use/audio/assets/sfx/";
84
+ const AUDIO_FILE_NAME =
85
+ /^[A-Za-z0-9][A-Za-z0-9_-]*(?:\.[A-Za-z0-9_-]+)*\.(?:mp3|wav|ogg|m4a|aac|flac)$/i;
86
+
87
+ /**
88
+ * Map a media index row's `file` to an audio file inside the bundled SFX folder, or null.
89
+ * The only accepted form is `skills/media-use/audio/assets/sfx/<name>` with a plain audio
90
+ * file name; the result must still be a regular file inside the folder after realpath.
91
+ */
92
+ export function bundledSfxAssetPath(file, libraryDir = LIB_DIR) {
93
+ if (typeof file !== "string" || !file.startsWith(INDEX_FILE_PREFIX)) return null;
94
+ const name = file.slice(INDEX_FILE_PREFIX.length);
95
+ if (!AUDIO_FILE_NAME.test(name)) return null;
96
+ try {
97
+ const root = realpathSync(libraryDir);
98
+ const asset = realpathSync(join(root, name));
99
+ const inside = relative(root, asset);
100
+ if (!inside || inside.startsWith("..") || isAbsolute(inside)) return null;
101
+ if (!AUDIO_FILE_NAME.test(inside) || !statSync(asset).isFile()) return null;
102
+ return asset;
103
+ } catch {
104
+ return null;
105
+ }
106
+ }
107
+
83
108
  export const bundledSfxProvider = {
84
109
  async search(intent, ctx = {}) {
85
110
  const libraryDir = ctx.libraryDir || LIB_DIR;
@@ -1,11 +1,12 @@
1
1
  import { strict as assert } from "node:assert";
2
- import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
2
+ import { mkdtempSync, mkdirSync, realpathSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
3
3
  import { tmpdir } from "node:os";
4
4
  import { join } from "node:path";
5
5
  import { test } from "node:test";
6
6
  import {
7
7
  BUNDLED_SFX_RECOVERY_COMMAND,
8
8
  BundledSfxAssetsError,
9
+ bundledSfxAssetPath,
9
10
  bundledSfxProvider,
10
11
  extensionForBundledSfxFile,
11
12
  inspectBundledSfxAssets,
@@ -137,3 +138,41 @@ test("literal ids outrank distinct ids with the same stem", () => {
137
138
  ["cats", "cat"],
138
139
  );
139
140
  });
141
+
142
+ test("media index files map only to regular audio files inside the bundled SFX folder", (t) => {
143
+ const root = mkdtempSync(join(tmpdir(), "media-use-sfx-paths-"));
144
+ t.after(() => rmSync(root, { recursive: true, force: true }));
145
+ const libraryDir = join(root, "sfx");
146
+ mkdirSync(join(libraryDir, "folder.mp3"), { recursive: true });
147
+ writeFileSync(join(libraryDir, "chime.mp3"), "chime");
148
+ writeFileSync(join(libraryDir, "notes.txt"), "notes");
149
+ writeFileSync(join(root, "outside.mp3"), "outside");
150
+ symlinkSync(join(root, "outside.mp3"), join(libraryDir, "escape.mp3"));
151
+ const prefix = "skills/media-use/audio/assets/sfx/";
152
+
153
+ assert.equal(
154
+ bundledSfxAssetPath(`${prefix}chime.mp3`, libraryDir),
155
+ realpathSync(join(libraryDir, "chime.mp3")),
156
+ );
157
+ for (const file of [
158
+ "/etc/hosts",
159
+ "../../.ssh/id_ed25519",
160
+ "chime.mp3",
161
+ "./chime.mp3",
162
+ "skills/media-use/audio/assets/sfx",
163
+ `${prefix}../../../../.ssh/id_ed25519`,
164
+ `${prefix}../outside.mp3`,
165
+ `${prefix}/chime.mp3`,
166
+ `${prefix}.\\chime.mp3`,
167
+ `${prefix}sub/chime.mp3`,
168
+ `${prefix}notes.txt`,
169
+ `${prefix}missing.mp3`,
170
+ `${prefix}folder.mp3`,
171
+ `${prefix}escape.mp3`,
172
+ `${prefix}${join(libraryDir, "chime.mp3")}`,
173
+ "skills\\media-use\\audio\\assets\\sfx\\chime.mp3",
174
+ 7,
175
+ ]) {
176
+ assert.equal(bundledSfxAssetPath(file, libraryDir), null, String(file));
177
+ }
178
+ });
@@ -1,36 +1,65 @@
1
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
2
- import { homedir } from "node:os";
3
- import { join, resolve } from "node:path";
1
+ import { createHash } from "node:crypto";
2
+ import { existsSync, readFileSync } from "node:fs";
3
+ import { join } from "node:path";
4
4
 
5
- const DEFAULT_DIRECTORY = join(homedir(), ".hyperframes", "catalog");
5
+ const MEDIA_VECTOR_DIMENSIONS = 384;
6
6
 
7
- function directory() {
8
- const cache = process.env.HYPERFRAMES_CACHE_DIR;
7
+ // The index ships inside the CLI (dist/catalog-artifact, or registry/catalog-artifact in a
8
+ // source checkout), so it always describes the SFX files of this same release.
9
+ const BUNDLED_MEDIA_VECTORS = [
10
+ join(import.meta.dirname, "..", "..", "..", "..", "catalog-artifact", "media-vectors.json"),
11
+ join(
12
+ import.meta.dirname,
13
+ "..",
14
+ "..",
15
+ "..",
16
+ "..",
17
+ "..",
18
+ "registry",
19
+ "catalog-artifact",
20
+ "media-vectors.json",
21
+ ),
22
+ ].find((candidate) => existsSync(candidate));
23
+
24
+ function isMediaVectorRow(row) {
9
25
  return (
10
- process.env.HYPERFRAMES_CATALOG_ARTIFACT_DIR ||
11
- (cache ? join(resolve(cache), "catalog") : DEFAULT_DIRECTORY)
26
+ !!row &&
27
+ typeof row === "object" &&
28
+ typeof row.id === "string" &&
29
+ typeof row.kind === "string" &&
30
+ typeof row.title === "string" &&
31
+ typeof row.description === "string" &&
32
+ Array.isArray(row.tags) &&
33
+ row.tags.every((tag) => typeof tag === "string") &&
34
+ typeof row.file === "string" &&
35
+ (row.duration === undefined ||
36
+ (typeof row.duration === "number" && Number.isFinite(row.duration) && row.duration >= 0))
12
37
  );
13
38
  }
14
39
 
15
- export async function fetchMediaVectors(registryBaseUrl, options = {}) {
16
- const target = options.directory || directory();
17
- const base = registryBaseUrl.replace(/\/+$/, "");
18
- mkdirSync(target, { recursive: true, mode: 0o700 });
19
- const fetched = [];
20
- for (const file of ["media-vectors.json", "media-vectors.bin"]) {
21
- const response = await fetch(`${base}/catalog-artifact/${file}`);
22
- if (!response.ok) return false;
23
- fetched.push([file, Buffer.from(await response.arrayBuffer())]);
40
+ function indexProblem(metadata) {
41
+ if (!metadata || typeof metadata !== "object") return "not an object";
42
+ if (metadata.dimensions !== MEDIA_VECTOR_DIMENSIONS) {
43
+ return `expected ${MEDIA_VECTOR_DIMENSIONS} dimensions, got ${metadata.dimensions}`;
44
+ }
45
+ const { names, rows } = metadata;
46
+ if (!Array.isArray(names) || !Array.isArray(rows) || names.length !== rows.length) {
47
+ return "names and rows do not line up";
48
+ }
49
+ if (rows.some((row, index) => !isMediaVectorRow(row) || row.id !== names[index])) {
50
+ return "a row is malformed or out of order";
24
51
  }
25
- for (const [file, bytes] of fetched) writeFileSync(join(target, file), bytes, { mode: 0o600 });
26
- return true;
52
+ const revision = createHash("sha256").update(JSON.stringify(rows)).digest("hex");
53
+ if (metadata.metadataRevision !== revision) return "rows do not match metadataRevision";
54
+ return null;
27
55
  }
28
56
 
29
- export function mediaVectorRows(target = directory()) {
30
- const metadataPath = join(target, "media-vectors.json");
31
- if (!existsSync(metadataPath)) return [];
57
+ export function mediaVectorRows(metadataPath = BUNDLED_MEDIA_VECTORS) {
58
+ if (!metadataPath || !existsSync(metadataPath)) return [];
32
59
  const metadata = JSON.parse(readFileSync(metadataPath, "utf8"));
33
- return Array.isArray(metadata.rows) ? metadata.rows : [];
60
+ const problem = indexProblem(metadata);
61
+ if (problem) throw new Error(`media index ${metadataPath} is invalid: ${problem}`);
62
+ return metadata.rows;
34
63
  }
35
64
 
36
65
  export { rankMediaRowsWithVectors } from "./media-search.mjs";
@@ -1,11 +1,49 @@
1
1
  import { strict as assert } from "node:assert";
2
- import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
2
+ import { createHash } from "node:crypto";
3
+ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
3
4
  import { tmpdir } from "node:os";
4
5
  import { join } from "node:path";
5
6
  import { test } from "node:test";
7
+ import { bundledSfxAssetPath } from "./bundled-sfx-provider.mjs";
6
8
  import { mediaVectorRows } from "./local-media-search.mjs";
7
9
 
8
- test("media vectors are read from the cache folder's catalog when HYPERFRAMES_CACHE_DIR is set", (t) => {
10
+ const SHIPPED_INDEX = join(
11
+ import.meta.dirname,
12
+ "..",
13
+ "..",
14
+ "..",
15
+ "..",
16
+ "..",
17
+ "registry",
18
+ "catalog-artifact",
19
+ "media-vectors.json",
20
+ );
21
+
22
+ function shippedIndex() {
23
+ return JSON.parse(readFileSync(SHIPPED_INDEX, "utf8"));
24
+ }
25
+
26
+ function writeIndex(t, metadata) {
27
+ const dir = mkdtempSync(join(tmpdir(), "hf-media-index-"));
28
+ t.after(() => rmSync(dir, { recursive: true, force: true }));
29
+ const path = join(dir, "media-vectors.json");
30
+ writeFileSync(path, JSON.stringify(metadata));
31
+ return path;
32
+ }
33
+
34
+ function withRevision(metadata) {
35
+ const metadataRevision = createHash("sha256").update(JSON.stringify(metadata.rows)).digest("hex");
36
+ return { ...metadata, metadataRevision };
37
+ }
38
+
39
+ test("the bundled media index validates and every row names a bundled SFX file", () => {
40
+ const rows = mediaVectorRows();
41
+ assert.equal(rows.length, shippedIndex().rows.length);
42
+ assert.ok(rows.length > 0);
43
+ for (const row of rows) assert.ok(bundledSfxAssetPath(row.file), row.file);
44
+ });
45
+
46
+ test("a media index in the user's cache folder is never read", (t) => {
9
47
  const cache = mkdtempSync(join(tmpdir(), "hf-cache-"));
10
48
  const prior = process.env.HYPERFRAMES_CACHE_DIR;
11
49
  process.env.HYPERFRAMES_CACHE_DIR = cache;
@@ -17,7 +55,38 @@ test("media vectors are read from the cache folder's catalog when HYPERFRAMES_CA
17
55
  mkdirSync(join(cache, "catalog"));
18
56
  writeFileSync(
19
57
  join(cache, "catalog", "media-vectors.json"),
20
- JSON.stringify({ rows: [{ id: "a" }] }),
58
+ JSON.stringify({
59
+ rows: [{ id: "hosts", kind: "sfx", file: "/etc/hosts" }],
60
+ }),
21
61
  );
22
- assert.deepEqual(mediaVectorRows(), [{ id: "a" }]);
62
+ assert.deepEqual(mediaVectorRows(), shippedIndex().rows);
63
+ });
64
+
65
+ test("an index whose rows do not match its metadata revision is refused", (t) => {
66
+ const metadata = shippedIndex();
67
+ metadata.rows[0] = { ...metadata.rows[0], file: "/etc/hosts" };
68
+ assert.throws(() => mediaVectorRows(writeIndex(t, metadata)), /metadataRevision/);
69
+ });
70
+
71
+ test("an index with the wrong dimensions or malformed rows is refused", (t) => {
72
+ const base = shippedIndex();
73
+ assert.throws(
74
+ () => mediaVectorRows(writeIndex(t, { ...base, dimensions: 3072 })),
75
+ /384 dimensions/,
76
+ );
77
+ const badRow = withRevision({
78
+ ...base,
79
+ rows: [{ ...base.rows[0], file: 7 }, ...base.rows.slice(1)],
80
+ });
81
+ assert.throws(() => mediaVectorRows(writeIndex(t, badRow)), /malformed or out of order/);
82
+ const reordered = withRevision({ ...base, rows: [...base.rows].reverse() });
83
+ assert.throws(() => mediaVectorRows(writeIndex(t, reordered)), /malformed or out of order/);
84
+ assert.throws(
85
+ () => mediaVectorRows(writeIndex(t, { ...base, names: base.names.slice(1) })),
86
+ /do not line up/,
87
+ );
88
+ });
89
+
90
+ test("a missing media index has no rows", () => {
91
+ assert.deepEqual(mediaVectorRows(join(tmpdir(), "hf-no-such-index", "media-vectors.json")), []);
23
92
  });
@@ -1,6 +1,6 @@
1
1
  import { execFileSync } from "node:child_process";
2
2
  import { existsSync, unlinkSync } from "node:fs";
3
- import { tmpdir } from "node:os";
3
+ import { homedir, tmpdir } from "node:os";
4
4
  import { join } from "node:path";
5
5
  import { describeDownload, probeSpecs } from "./specs.mjs";
6
6
  import { buildArgv, selectModel, selectModelLadder } from "./local-models.mjs";
@@ -61,7 +61,9 @@ export async function ltxVideoGenerate(
61
61
  argv.shift();
62
62
 
63
63
  try {
64
+ // The runner reads a model id as a folder when one exists in its working directory.
64
65
  execFn(bin, argv, {
66
+ cwd: homedir(),
65
67
  encoding: "utf8",
66
68
  timeout: 1_800_000,
67
69
  stdio: ["ignore", "pipe", "pipe"],
@@ -1,7 +1,7 @@
1
1
  import { test } from "node:test";
2
2
  import assert from "node:assert/strict";
3
3
  import { dirname } from "node:path";
4
- import { tmpdir } from "node:os";
4
+ import { homedir, tmpdir } from "node:os";
5
5
  import { ltxVideoGenerate } from "./ltx-video-provider.mjs";
6
6
 
7
7
  const fittingSpecs = { availableRamMB: 20000, gpu: { present: true } };
@@ -103,6 +103,21 @@ test("successful generation returns the generated MP4 result", async () => {
103
103
  });
104
104
  });
105
105
 
106
+ // fails without the fix: the runner started in the project, and it reads a model id such as
107
+ // dgrauet/ltx-2.3-mlx-q4 as a folder when the working directory has one.
108
+ test("the runner starts in the home folder, so a project folder named like the model is never read", async () => {
109
+ const calls = [];
110
+ await ltxVideoGenerate(
111
+ "waves",
112
+ { specs: fittingSpecs },
113
+ (...call) => calls.push(call),
114
+ () => true,
115
+ );
116
+ const [, argv, opts] = calls[1];
117
+ assert.match(argv.join(" "), /--model dgrauet\//);
118
+ assert.equal(opts.cwd, homedir());
119
+ });
120
+
106
121
  test("generate failure returns null instead of throwing", async (t) => {
107
122
  t.mock.method(console, "error", () => {});
108
123
  let calls = 0;
@@ -59,6 +59,7 @@ import {
59
59
  import {
60
60
  BUNDLED_SFX_RECOVERY_COMMAND,
61
61
  BundledSfxAssetsError,
62
+ bundledSfxAssetPath,
62
63
  inspectBundledSfxAssets,
63
64
  } from "./lib/bundled-sfx-provider.mjs";
64
65
  import {
@@ -68,11 +69,7 @@ import {
68
69
  scoreMatch,
69
70
  } from "./lib/sfx-provider.mjs";
70
71
  import { writeSfxCredit } from "./lib/openverse.mjs";
71
- import {
72
- fetchMediaVectors,
73
- mediaVectorRows,
74
- rankMediaRowsWithVectors,
75
- } from "./lib/local-media-search.mjs";
72
+ import { mediaVectorRows, rankMediaRowsWithVectors } from "./lib/local-media-search.mjs";
76
73
 
77
74
  const INGEST_TYPES = listTypes();
78
75
  const DEFAULT_EXT = {
@@ -468,21 +465,14 @@ async function run() {
468
465
  try {
469
466
  searchResult = await runCapability(type, "search", intent, ctx);
470
467
  if (!searchResult && type === "sfx" && !args.provider && !localOnly) {
471
- const registry =
472
- process.env.HYPERFRAMES_REGISTRY ||
473
- "https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry";
474
468
  try {
475
- await fetchMediaVectors(registry);
476
469
  const ranked = await rankMediaRowsWithVectors(
477
470
  intent,
478
471
  mediaVectorRows().filter((row) => row.kind === "sfx"),
479
472
  );
480
473
  const row = ranked.rows[0];
481
- const candidates = row
482
- ? [resolve(row.file), join(import.meta.dirname, "..", "..", "..", row.file)]
483
- : [];
484
- const localPath = candidates.find((candidate) => existsSync(candidate));
485
- if (row && localPath) {
474
+ const localPath = row ? bundledSfxAssetPath(row.file) : null;
475
+ if (localPath) {
486
476
  searchResult = {
487
477
  localPath,
488
478
  ext: extname(localPath),
@@ -73,8 +73,10 @@ const outPath = resolve(
73
73
  // just PATH) is what keeps a user who followed the install docs verbatim from
74
74
  // silently falling through to whisper. Returns the runner path, or null.
75
75
  function resolveParakeet() {
76
+ // An override with a folder in it means the caller's folder; the runner itself starts elsewhere.
77
+ const override = process.env.HYPERFRAMES_PARAKEET;
76
78
  for (const p of [
77
- process.env.HYPERFRAMES_PARAKEET,
79
+ override && /[\\/]/.test(override) ? resolve(override) : override,
78
80
  join(homedir(), ".venvs", "parakeet", "bin", "parakeet-mlx"),
79
81
  ]) {
80
82
  if (p && existsSync(p)) return p;
@@ -106,13 +108,27 @@ function report(engine, wordCount) {
106
108
  );
107
109
  }
108
110
 
111
+ // parakeet-mlx reads a model id as a folder when one exists in its working directory, so it runs in
112
+ // the home folder. A model written as a relative path (./ or ../) still means the caller's folder.
113
+ function modelFor(model, cwd = process.cwd()) {
114
+ return /^\.\.?[\\/]/.test(model) ? resolve(cwd, model) : model;
115
+ }
116
+
109
117
  function runParakeet(runner) {
110
118
  const workDir = mkdtempSync(join(tmpdir(), "media-use-asr-"));
111
119
  try {
112
120
  execFileSync(
113
121
  runner,
114
- [inputPath, "--model", args.model, "--output-format", "json", "--output-dir", workDir],
115
- { stdio: ["ignore", "pipe", "pipe"], timeout: 1_800_000 },
122
+ [
123
+ inputPath,
124
+ "--model",
125
+ modelFor(args.model),
126
+ "--output-format",
127
+ "json",
128
+ "--output-dir",
129
+ workDir,
130
+ ],
131
+ { cwd: homedir(), stdio: ["ignore", "pipe", "pipe"], timeout: 1_800_000 },
116
132
  );
117
133
  const jsonPath = join(workDir, `${basename(inputPath, extname(inputPath))}.json`);
118
134
  if (!existsSync(jsonPath)) throw new Error("parakeet produced no JSON");
@@ -6,6 +6,7 @@ import {
6
6
  mkdirSync,
7
7
  mkdtempSync,
8
8
  readFileSync,
9
+ realpathSync,
9
10
  rmSync,
10
11
  writeFileSync,
11
12
  } from "node:fs";
@@ -17,6 +18,65 @@ import { fileURLToPath } from "node:url";
17
18
  // The stub stands in for the `hyperframes` CLI the caller hands over in HYPERFRAMES_CLI_ENTRY,
18
19
  // run as `transcribe <in> --dir <dir> ...`: it records its args, writes the CLI's flat array and
19
20
  // prints the CLI's --json line naming `cliEngine`.
21
+ // fails without the fix: parakeet-mlx started in the project, and it reads the default model id
22
+ // mlx-community/parakeet-tdt-0.6b-v3 as a folder when the working directory has one.
23
+ test(
24
+ "parakeet-mlx starts in the home folder; a ./ model path still means the caller's folder",
25
+ { skip: process.platform === "win32" ? "the stand-in runner is an sh script" : false },
26
+ () => {
27
+ const root = mkdtempSync(join(tmpdir(), "media-use-parakeet-cwd-"));
28
+ try {
29
+ const home = join(root, "home");
30
+ const project = join(root, "project");
31
+ mkdirSync(home);
32
+ mkdirSync(join(project, "mlx-community", "parakeet-tdt-0.6b-v3"), { recursive: true });
33
+ const runner = join(root, "parakeet-mlx");
34
+ const record = join(root, "record");
35
+ writeFileSync(
36
+ runner,
37
+ `#!/bin/sh\nprintf '%s\\n' "$PWD" "$3" > "${record}"\n` +
38
+ `printf '{"text":"a","sentences":[]}' > "$7/in.json"\n`,
39
+ );
40
+ chmodSync(runner, 0o755);
41
+ writeFileSync(join(project, "in.wav"), "");
42
+ const script = fileURLToPath(new URL("./transcribe.mjs", import.meta.url));
43
+ const run = (extra = [], parakeet = runner) => {
44
+ execFileSync(
45
+ process.execPath,
46
+ [script, "--input", "in.wav", "--engine", "parakeet", ...extra],
47
+ {
48
+ cwd: project,
49
+ encoding: "utf8",
50
+ env: {
51
+ ...process.env,
52
+ HOME: home,
53
+ HYPERFRAMES_PARAKEET: parakeet,
54
+ HYPERFRAMES_MEDIA_HOME: join(root, "media"),
55
+ HYPERFRAMES_NO_TELEMETRY: "1",
56
+ },
57
+ },
58
+ );
59
+ return readFileSync(record, "utf8").trimEnd().split("\n");
60
+ };
61
+ assert.deepEqual(run(), [realpathSync(home), "mlx-community/parakeet-tdt-0.6b-v3"]);
62
+ assert.deepEqual(run(["--model", "./models/mine"]), [
63
+ realpathSync(home),
64
+ join(realpathSync(project), "models", "mine"),
65
+ ]);
66
+ // A runner override written relative to the project still names the project's copy.
67
+ writeFileSync(join(project, "parakeet-mlx"), readFileSync(runner));
68
+ chmodSync(join(project, "parakeet-mlx"), 0o755);
69
+ rmSync(runner);
70
+ assert.deepEqual(run([], "./parakeet-mlx"), [
71
+ realpathSync(home),
72
+ "mlx-community/parakeet-tdt-0.6b-v3",
73
+ ]);
74
+ } finally {
75
+ rmSync(root, { recursive: true, force: true });
76
+ }
77
+ },
78
+ );
79
+
20
80
  function runScript(engine, cliEngine) {
21
81
  const root = mkdtempSync(join(tmpdir(), "media-use-transcribe-"));
22
82
  try {
@@ -9,13 +9,14 @@ import {
9
9
  skillsManagedExternally,
10
10
  skills_default,
11
11
  updateSkills
12
- } from "./chunk-H2GJDFF6.js";
12
+ } from "./chunk-VCSQLM36.js";
13
13
  import "./chunk-EXA6R6SW.js";
14
+ import "./chunk-AGTBMLNM.js";
14
15
  import "./chunk-D2LIT7UR.js";
15
16
  import "./chunk-6BEFEWFB.js";
16
17
  import "./chunk-JJ47LVJ7.js";
17
- import "./chunk-CNZOKODL.js";
18
- import "./chunk-O6E5HSVF.js";
18
+ import "./chunk-RFULFCYW.js";
19
+ import "./chunk-WUY74LHU.js";
19
20
  import "./chunk-PXVQOMKL.js";
20
21
  import "./chunk-MCDNAIFF.js";
21
22
  import "./chunk-DMW5SSUN.js";
@@ -23,24 +24,24 @@ import "./chunk-DL4OD7IA.js";
23
24
  import "./chunk-S3S4TGEH.js";
24
25
  import "./chunk-54HJ63Q2.js";
25
26
  import "./chunk-JCNPHRGX.js";
26
- import "./chunk-4IUOWNDS.js";
27
+ import "./chunk-JQKCRTVQ.js";
27
28
  import "./chunk-FXMKHHPO.js";
28
- import "./chunk-XGEJPKRY.js";
29
+ import "./chunk-56T2OGYR.js";
29
30
  import "./chunk-VC76R6W2.js";
30
- import "./chunk-KWTTELUY.js";
31
+ import "./chunk-UVPLW55S.js";
31
32
  import "./chunk-RQVDTPGD.js";
32
- import "./chunk-IR2GEREV.js";
33
- import "./chunk-CIYNUD7Q.js";
33
+ import "./chunk-SEC76O65.js";
34
+ import "./chunk-L27Z3PZT.js";
34
35
  import "./chunk-IH2C53YV.js";
35
- import "./chunk-VCKUDUPN.js";
36
+ import "./chunk-BA33QNKK.js";
36
37
  import "./chunk-FR7YBU3H.js";
37
38
  import "./chunk-DZWAYZG2.js";
38
39
  import "./chunk-GWTIFRF5.js";
39
40
  import "./chunk-2RY2LWAA.js";
40
41
  import "./chunk-WC4MTXGN.js";
41
42
  import "./chunk-WFQJ6EJ6.js";
42
- import "./chunk-AROERRUJ.js";
43
- import "./chunk-EZQJFCWA.js";
43
+ import "./chunk-MP52CUHL.js";
44
+ import "./chunk-YOMFN6HH.js";
44
45
  import "./chunk-BR2JQQC5.js";
45
46
  import "./chunk-AWD2MWWL.js";
46
47
  import "./chunk-ISN5GRYI.js";
@@ -49,13 +50,13 @@ import "./chunk-GR2E54E6.js";
49
50
  import "./chunk-66W5IWLO.js";
50
51
  import "./chunk-CPHQTXP5.js";
51
52
  import "./chunk-QBXDU24O.js";
52
- import "./chunk-ELA3IV4P.js";
53
+ import "./chunk-TY7EHE4Q.js";
53
54
  import "./chunk-E63BDV4Z.js";
54
55
  import "./chunk-LW33P24U.js";
55
56
  import "./chunk-XT6MXC7A.js";
56
57
  import "./chunk-7KDQAD2W.js";
57
- import "./chunk-MEGSQW2I.js";
58
- import "./chunk-E7T5SMDK.js";
58
+ import "./chunk-OZDELWQP.js";
59
+ import "./chunk-GWSMTN55.js";
59
60
  import "./chunk-M2WBOQ2Q.js";
60
61
  export {
61
62
  skills_default as default,
@@ -10,8 +10,8 @@ import {
10
10
  recordSkillsCheck,
11
11
  refreshSkillsCache,
12
12
  skillsCheckDue
13
- } from "./chunk-AROERRUJ.js";
14
- import "./chunk-EZQJFCWA.js";
13
+ } from "./chunk-MP52CUHL.js";
14
+ import "./chunk-YOMFN6HH.js";
15
15
  import "./chunk-BR2JQQC5.js";
16
16
  import "./chunk-AWD2MWWL.js";
17
17
  import "./chunk-ISN5GRYI.js";
@@ -20,13 +20,13 @@ import "./chunk-GR2E54E6.js";
20
20
  import "./chunk-66W5IWLO.js";
21
21
  import "./chunk-CPHQTXP5.js";
22
22
  import "./chunk-QBXDU24O.js";
23
- import "./chunk-ELA3IV4P.js";
23
+ import "./chunk-TY7EHE4Q.js";
24
24
  import "./chunk-E63BDV4Z.js";
25
25
  import "./chunk-LW33P24U.js";
26
26
  import "./chunk-XT6MXC7A.js";
27
27
  import "./chunk-7KDQAD2W.js";
28
- import "./chunk-MEGSQW2I.js";
29
- import "./chunk-E7T5SMDK.js";
28
+ import "./chunk-OZDELWQP.js";
29
+ import "./chunk-GWSMTN55.js";
30
30
  import "./chunk-M2WBOQ2Q.js";
31
31
  export {
32
32
  invalidateSkillsCache,