hyperframes 0.9.58 → 0.9.61

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 (365) hide show
  1. package/bin/hyperframes.mjs +3 -1
  2. package/dist/{add-JQUKPSEZ.js → add-LNPIKHAX.js} +33 -32
  3. package/dist/{agentPromptGenerator-3NEY7FPP.js → agentPromptGenerator-N3HL4JWM.js} +19 -20
  4. package/dist/{animatedGifPrep-VMUZ6IVJ.js → animatedGifPrep-SEPXIM4W.js} +24 -24
  5. package/dist/api.d.ts +8 -1
  6. package/dist/api.js +70 -69
  7. package/dist/{appHistory-JNI6IOR6.js → appHistory-ASGUPUUV.js} +6 -6
  8. package/dist/{asset-ZT3VXZ67.js → asset-3L2G3ROU.js} +17 -7
  9. package/dist/{assetCataloger-D2DV65BA.js → assetCataloger-3D75A6GI.js} +21 -22
  10. package/dist/{audio-LD5H2R5V.js → audio-U4W5ZWQ7.js} +54 -53
  11. package/dist/{auth-4FPYYMSH.js → auth-V4G5ZE3P.js} +4 -4
  12. package/dist/{autoUpdate-5ZKSFCG4.js → autoUpdate-QYKF3DDS.js} +6 -6
  13. package/dist/{avatars-DCLFE7VG.js → avatars-SB2XCDWJ.js} +31 -32
  14. package/dist/{backgroundChecks-UZA3F46H.js → backgroundChecks-KHBYRE6J.js} +16 -9
  15. package/dist/backgroundChecksWorker.js +9 -9
  16. package/dist/{batchRender-TAUW3CT2.js → batchRender-6S5GMICZ.js} +13 -14
  17. package/dist/{beats-X3LCR6OG.js → beats-7YLYCCMD.js} +21 -22
  18. package/dist/{benchmark-DNZQT3YQ.js → benchmark-IBX7ZWVU.js} +37 -35
  19. package/dist/{billing-4BFUAHWX.js → billing-EAHOGMQW.js} +28 -29
  20. package/dist/{browser-5J2MTDB6.js → browser-XKYRXDJW.js} +23 -24
  21. package/dist/{bundleWithLocalizedFonts-XWK47ZVF.js → bundleWithLocalizedFonts-ZFX7TSWT.js} +1 -1
  22. package/dist/{capture-TVYTKWTG.js → capture-4WKQKMXG.js} +38 -17
  23. package/dist/{capture-2YSVFKWV.js → capture-IBOCZ2MK.js} +56 -50
  24. package/dist/{captureCompositionFrame-L765HLCT.js → captureCompositionFrame-HZA3LNU3.js} +29 -30
  25. package/dist/{captureFile-DOCK42K3.js → captureFile-Z7HQDRC2.js} +4 -4
  26. package/dist/captureProxy-4K3J652A.js +23 -0
  27. package/dist/{catalog-CHGGRRQX.js → catalog-TSXQTLKM.js} +45 -43
  28. package/dist/{catch-up-OCFU6ZR3.js → catch-up-LD2B5CE3.js} +35 -29
  29. package/dist/{check-LWK4Z7FI.js → check-TEZKUD26.js} +72 -72
  30. package/dist/{checkAudio-R5ORBXBO.js → checkAudio-3GM74ZGV.js} +22 -23
  31. package/dist/{checkBrowser-6SH73T47.js → checkBrowser-OFH3I7Q6.js} +62 -62
  32. package/dist/{chunk-2WA62M3B.js → chunk-22B53HD3.js} +10 -5
  33. package/dist/{chunk-K2EJQ44S.js → chunk-2CNVJQKU.js} +1 -1
  34. package/dist/{chunk-XMT4MG6W.js → chunk-2H4SJSUS.js} +14 -14
  35. package/dist/{chunk-6RPKPL22.js → chunk-2SPQTJA2.js} +25 -23
  36. package/dist/{chunk-GIVMQDSK.js → chunk-32H642MS.js} +2 -2
  37. package/dist/chunk-3GF72UPC.js +256 -0
  38. package/dist/chunk-3HJX4F2S.js +39 -0
  39. package/dist/{chunk-VXE46PXX.js → chunk-3JVTHNDH.js} +1 -1
  40. package/dist/{chunk-H3LEOZVK.js → chunk-3ROFCQAW.js} +1 -1
  41. package/dist/{chunk-NLVIE7VN.js → chunk-3W2ORSFV.js} +4 -4
  42. package/dist/{chunk-4QPT3IEL.js → chunk-4AMOVEV7.js} +181 -59
  43. package/dist/{chunk-A4L7G74T.js → chunk-4EWS3KP3.js} +3 -3
  44. package/dist/{chunk-AJ7YRQS4.js → chunk-4ORH2OXS.js} +2 -2
  45. package/dist/{chunk-2GRCLLKU.js → chunk-4SDNEKTL.js} +4 -4
  46. package/dist/{chunk-CDNVZEGQ.js → chunk-4T45V6GF.js} +5 -2
  47. package/dist/{chunk-GDIBE57N.js → chunk-4ZLWEPK4.js} +2 -2
  48. package/dist/{chunk-CRPLPK6J.js → chunk-5F2ULLFW.js} +7 -7
  49. package/dist/{chunk-O5U3Y5DX.js → chunk-5GUYYSVT.js} +1 -1
  50. package/dist/{chunk-EOXNEA4Z.js → chunk-5RM7274K.js} +21 -9
  51. package/dist/{chunk-E4IR34CF.js → chunk-5T2LNQAH.js} +58 -20
  52. package/dist/{chunk-M5TTYUZM.js → chunk-5ZAM42GH.js} +6 -6
  53. package/dist/{chunk-5IE5ZI66.js → chunk-62UUXB3F.js} +1 -1
  54. package/dist/{chunk-A4YRESMH.js → chunk-63CSQYYO.js} +2 -2
  55. package/dist/{chunk-R4EWRIDL.js → chunk-6B2TH52B.js} +8 -1
  56. package/dist/{chunk-X3IVUSOX.js → chunk-6KU6TCSS.js} +3 -3
  57. package/dist/{chunk-DHVRVI7F.js → chunk-6NDSDQCR.js} +62 -27
  58. package/dist/{chunk-O4K22EFS.js → chunk-6OKMCIDU.js} +24 -14
  59. package/dist/{chunk-D3M5VOC5.js → chunk-6P7FLYOR.js} +55 -125
  60. package/dist/{chunk-JQZ5WP7L.js → chunk-6R22Y26Z.js} +1 -1
  61. package/dist/{chunk-2SJNGWSY.js → chunk-6X2CLRU7.js} +1 -1
  62. package/dist/{chunk-PYTF6VHF.js → chunk-6ZU654EU.js} +3 -3
  63. package/dist/{chunk-G3U5CUF3.js → chunk-73NC557V.js} +2 -2
  64. package/dist/{chunk-7WAWUQDQ.js → chunk-7463BOQJ.js} +4 -4
  65. package/dist/{chunk-4N3WOFP3.js → chunk-7AP5C4C2.js} +19 -19
  66. package/dist/{chunk-FFOFGL2O.js → chunk-7DMES2F3.js} +2 -2
  67. package/dist/{chunk-Y6CZFX5X.js → chunk-7GDEQJSL.js} +28 -19
  68. package/dist/{chunk-ECGNWHFE.js → chunk-A2ZUVULS.js} +88 -2
  69. package/dist/{chunk-CNAOJ7XI.js → chunk-A7NRMVUG.js} +1 -1
  70. package/dist/{chunk-TLGQQ324.js → chunk-ADQ7XZE5.js} +11 -9
  71. package/dist/{chunk-M3IHARIW.js → chunk-B5JWBMDR.js} +102 -40
  72. package/dist/{chunk-7ZHBY7T5.js → chunk-B5TLZC2D.js} +11 -4
  73. package/dist/{chunk-DH3M5X3Y.js → chunk-BAU3ASNM.js} +4 -4
  74. package/dist/{chunk-ELRE6LVJ.js → chunk-BHZZM2PK.js} +5 -5
  75. package/dist/chunk-BNH2IKGV.js +5101 -0
  76. package/dist/{chunk-ROESFEBP.js → chunk-BNO5RN55.js} +74 -66
  77. package/dist/{chunk-EWKJDXH6.js → chunk-C2GAAMZ3.js} +4 -4
  78. package/dist/{chunk-OMZSPAK5.js → chunk-C7IEAEKF.js} +1 -1
  79. package/dist/{chunk-ZFOV3R2L.js → chunk-CAAUQUCW.js} +23 -9
  80. package/dist/{chunk-CPDPSNSB.js → chunk-CPHK3XMF.js} +7 -7
  81. package/dist/{chunk-NJPLH762.js → chunk-CPLVXXRS.js} +4 -4
  82. package/dist/{chunk-AMS7Q7P7.js → chunk-CRX444MF.js} +22 -21
  83. package/dist/{chunk-4LZSNWFJ.js → chunk-CRZ7FUMI.js} +3 -3
  84. package/dist/{chunk-VI2LLFW6.js → chunk-CSWJCRDU.js} +2 -2
  85. package/dist/{chunk-37Y334MN.js → chunk-CT54FOTS.js} +18 -14
  86. package/dist/{chunk-CGODFJZ7.js → chunk-CYM53TWZ.js} +32 -18
  87. package/dist/chunk-D37I36FY.js +21 -0
  88. package/dist/{chunk-LO5USUM4.js → chunk-DD37XZVE.js} +1 -1
  89. package/dist/{chunk-OD7XWF5T.js → chunk-DWGDP537.js} +12 -6
  90. package/dist/chunk-EDH2DMXM.js +113 -0
  91. package/dist/{chunk-TAXMLPTE.js → chunk-ENKXJNKX.js} +2 -2
  92. package/dist/{chunk-UJTLTFB6.js → chunk-ERYGKPIR.js} +1 -1
  93. package/dist/{chunk-HOIEN7O4.js → chunk-F6PI5O3H.js} +3 -1
  94. package/dist/{chunk-GVIJFPZV.js → chunk-FLJ4S7NA.js} +2 -2
  95. package/dist/{chunk-KYKQO4VN.js → chunk-FU62NEWC.js} +3 -3
  96. package/dist/{chunk-MPC3OODR.js → chunk-G7HO2FFX.js} +4 -4
  97. package/dist/chunk-GADMF4BL.js +170 -0
  98. package/dist/{chunk-DWFWF6IR.js → chunk-GNRC4L6F.js} +34 -242
  99. package/dist/{chunk-BSFTB6AM.js → chunk-GYPZTG46.js} +12 -6
  100. package/dist/{chunk-OL7RHRNJ.js → chunk-H4HYZUE3.js} +2 -2
  101. package/dist/{chunk-V3O4AFO3.js → chunk-H6Y4XOSP.js} +17 -15
  102. package/dist/{chunk-PGITR2WX.js → chunk-HAMPVCRY.js} +4 -4
  103. package/dist/{chunk-677JGYQL.js → chunk-HLVNKNSW.js} +1 -0
  104. package/dist/{chunk-HFIVZJJD.js → chunk-HTHLFEO2.js} +1 -1
  105. package/dist/{chunk-SM5PNCDI.js → chunk-ICZWQNBR.js} +2 -2
  106. package/dist/{chunk-HTGJOOXE.js → chunk-IIXSSRUR.js} +4 -4
  107. package/dist/{chunk-GEOJA37C.js → chunk-ILKK6F5E.js} +3 -3
  108. package/dist/{chunk-IHXMN5YH.js → chunk-IOWECUEU.js} +2 -2
  109. package/dist/{chunk-SE4NOUB6.js → chunk-IT2YUKYY.js} +5 -5
  110. package/dist/chunk-IU6AC3WL.js +125 -0
  111. package/dist/{chunk-IGZQYMZA.js → chunk-J56ZJFSF.js} +303 -123
  112. package/dist/{chunk-5SGGOZNL.js → chunk-KBEC6VQS.js} +595 -206
  113. package/dist/{chunk-WEU6WLVT.js → chunk-KTY46LIH.js} +8 -4
  114. package/dist/chunk-KUJJJBV2.js +211 -0
  115. package/dist/{chunk-CHCMXYER.js → chunk-KVIXXJLO.js} +1 -1
  116. package/dist/{chunk-XYP4T6TQ.js → chunk-KYZEK7QF.js} +5 -5
  117. package/dist/{chunk-UGKUGYHD.js → chunk-L7MFHIG7.js} +5 -2
  118. package/dist/{chunk-YTHXSYYB.js → chunk-LB6ZAP4I.js} +19 -11
  119. package/dist/{chunk-SV72WLBE.js → chunk-LGIWC6KN.js} +28 -15
  120. package/dist/{chunk-ADVVQX4I.js → chunk-LMNCEQCC.js} +4 -2
  121. package/dist/{chunk-VLFBOKZX.js → chunk-LTXZLTXW.js} +304 -234
  122. package/dist/{chunk-WJIWXHXK.js → chunk-LULZFFDN.js} +3 -3
  123. package/dist/{chunk-CGJIMWNU.js → chunk-LV2ETFC5.js} +5 -5
  124. package/dist/{chunk-DL6PEJWH.js → chunk-LYTELQL2.js} +2 -4
  125. package/dist/{chunk-W2OXNTHG.js → chunk-LZSSGF7G.js} +3 -3
  126. package/dist/chunk-MERWX4DZ.js +159 -0
  127. package/dist/{chunk-CVTIGS5K.js → chunk-MJBBKSKB.js} +1 -1
  128. package/dist/{chunk-5IUVWP3A.js → chunk-MPVJI4SE.js} +2 -2
  129. package/dist/{chunk-7WYJXKIG.js → chunk-MPX3FO4A.js} +5 -5
  130. package/dist/{chunk-ERDQIRUL.js → chunk-MQCIX6O2.js} +20 -10
  131. package/dist/{chunk-ZO5NHAF3.js → chunk-MTCVUAUK.js} +10 -4
  132. package/dist/{chunk-E26Z73S3.js → chunk-MTKXKULM.js} +2 -2
  133. package/dist/{chunk-MCDNAIFF.js → chunk-NGRWDXRZ.js} +1 -1
  134. package/dist/{chunk-FNXU56VT.js → chunk-NK2UW3WR.js} +1 -1
  135. package/dist/{chunk-PS7WBIPK.js → chunk-NOJRZCN3.js} +33 -18
  136. package/dist/{chunk-JOOKM2NC.js → chunk-NU7BEOCX.js} +3 -3
  137. package/dist/chunk-NY6E4272.js +112 -0
  138. package/dist/{chunk-JZVI2TMX.js → chunk-OBP5WNKP.js} +3 -3
  139. package/dist/{chunk-AM4Y3XMR.js → chunk-OGOR22GY.js} +4 -4
  140. package/dist/{chunk-D2LIT7UR.js → chunk-OH3MUFZG.js} +1 -1
  141. package/dist/{chunk-DX5Y3L5B.js → chunk-OPUR2XQ2.js} +6 -6
  142. package/dist/{chunk-SYKUNH25.js → chunk-OW6MOJSR.js} +59 -7
  143. package/dist/{chunk-XCJ2YYMV.js → chunk-P5M3IEXO.js} +1 -1
  144. package/dist/{chunk-D2LSYXLW.js → chunk-PAHTZDMZ.js} +1 -1
  145. package/dist/{chunk-OSKSTJNQ.js → chunk-PJQVJSMG.js} +21 -12
  146. package/dist/{chunk-72GTIFAI.js → chunk-POVOGRMU.js} +2 -2
  147. package/dist/{chunk-U5MILT4G.js → chunk-PPETKAEO.js} +1 -1
  148. package/dist/{chunk-ZLTB7ZCQ.js → chunk-PQ2OPPGP.js} +8 -4
  149. package/dist/chunk-PTGNUVCB.js +112 -0
  150. package/dist/{chunk-X6JUUQCM.js → chunk-Q4FVSYTD.js} +5 -2
  151. package/dist/{chunk-MYETYFDI.js → chunk-Q7IOMZ5X.js} +2 -2
  152. package/dist/{chunk-GRSZAGJB.js → chunk-R2LBMDYH.js} +2 -2
  153. package/dist/{chunk-QBN2W4T3.js → chunk-RC2DDVX5.js} +1 -1
  154. package/dist/{chunk-VSM7OIG2.js → chunk-RDJOA5MM.js} +2 -2
  155. package/dist/{chunk-OEGWTN6N.js → chunk-RF3DT4CS.js} +1 -1
  156. package/dist/{chunk-WGHJUGNU.js → chunk-RJCQZMNI.js} +10 -10
  157. package/dist/{chunk-B2WXMYMA.js → chunk-RPICLHBJ.js} +1 -1
  158. package/dist/{chunk-7ECPFKQV.js → chunk-RRI7NGQZ.js} +37 -13
  159. package/dist/{chunk-X3UXEB2U.js → chunk-RSYV6NNI.js} +2 -2
  160. package/dist/{chunk-6EMFSRTW.js → chunk-S35RUNXJ.js} +7 -0
  161. package/dist/{chunk-QGQCWG7F.js → chunk-SCEBICAQ.js} +2 -2
  162. package/dist/{chunk-JKLWQUSV.js → chunk-SDIQEPAR.js} +1 -1
  163. package/dist/{chunk-3VMZQQUI.js → chunk-SIQGTRZ5.js} +1 -1
  164. package/dist/{chunk-N6PAWR5C.js → chunk-SQI2MWJE.js} +5 -5
  165. package/dist/{chunk-BSDUTNFX.js → chunk-SYMLVFQF.js} +1 -1
  166. package/dist/{chunk-XMAU5ZQX.js → chunk-TFAKFI3R.js} +1 -1
  167. package/dist/{chunk-SNKBI4YB.js → chunk-TJAFCC37.js} +9 -9
  168. package/dist/{chunk-6T4PB35F.js → chunk-TRQDC2UC.js} +9 -2
  169. package/dist/{chunk-4NNYYCJN.js → chunk-TRVWLAQ3.js} +25 -21
  170. package/dist/{chunk-UDLWVQ74.js → chunk-TTRX7NM3.js} +35 -21
  171. package/dist/{chunk-66W5IWLO.js → chunk-U7M4SZUB.js} +13 -2
  172. package/dist/{chunk-TLDIP7Y3.js → chunk-UEJMLVGW.js} +16 -17
  173. package/dist/{chunk-ZAWQJOTW.js → chunk-UX5KLSAJ.js} +74 -76
  174. package/dist/{chunk-O2BLY7PO.js → chunk-VJVTGSGW.js} +1 -1
  175. package/dist/{chunk-IE6BIB3L.js → chunk-VM2VBJRC.js} +34 -3
  176. package/dist/{chunk-AM6UYKVR.js → chunk-VNWPHKKI.js} +11 -11
  177. package/dist/{chunk-WQZQMADW.js → chunk-VRUVJTFW.js} +244 -28
  178. package/dist/{chunk-37VS6QY6.js → chunk-VSS3OAZB.js} +1 -1
  179. package/dist/{chunk-H7DTMLAR.js → chunk-VZM7AFUH.js} +39 -24
  180. package/dist/{chunk-WLNHZ2OM.js → chunk-W772ZFTE.js} +21 -6
  181. package/dist/{chunk-3GKGBYW3.js → chunk-WTO3A7ET.js} +120 -9
  182. package/dist/{chunk-ALD7JBPV.js → chunk-WTS245RC.js} +2 -2
  183. package/dist/{chunk-VBEDZGBW.js → chunk-WTUDKVWQ.js} +74 -19
  184. package/dist/{chunk-OPSGEOCO.js → chunk-WVCCSYZC.js} +53 -31
  185. package/dist/{chunk-ZCLC3KVY.js → chunk-X3NGTIE3.js} +1 -1
  186. package/dist/{chunk-RV3HR3BZ.js → chunk-XLG3JMSS.js} +9 -9
  187. package/dist/{chunk-ZYNNZ5DE.js → chunk-Y53Z2M77.js} +2 -2
  188. package/dist/{chunk-O2INZCGB.js → chunk-YB2ZJJFJ.js} +1 -1
  189. package/dist/{chunk-J6VYWZSO.js → chunk-YLC67YFR.js} +1 -1
  190. package/dist/{chunk-6LU6JICP.js → chunk-YWUE4CRU.js} +96 -9
  191. package/dist/chunk-Z3BPDCRV.js +537 -0
  192. package/dist/{chunk-I6V25IXG.js → chunk-Z55ASKZE.js} +2 -2
  193. package/dist/{chunk-EZJHKHWU.js → chunk-ZBDITGMP.js} +3 -3
  194. package/dist/{chunk-MSC5KBCE.js → chunk-ZGSGBGTB.js} +32 -24
  195. package/dist/{clean-6ODSABBF.js → clean-RJKQ23WH.js} +46 -46
  196. package/dist/cli.js +120 -77
  197. package/dist/{cloud-IMYQB5RC.js → cloud-R3NQSUTQ.js} +4 -4
  198. package/dist/{cloud-NTKLXMBS.js → cloud-VUR3ZO6O.js} +10 -10
  199. package/dist/{cloudrun-JNLDP33J.js → cloudrun-SZYAYV7N.js} +24 -16
  200. package/dist/{compare-VLYZ6ZS4.js → compare-AO5VJBJW.js} +79 -100
  201. package/dist/{compiler-7M2UCEWG.js → compiler-65SP7M2P.js} +9 -10
  202. package/dist/{component-KMUHKZ4R.js → component-WGTPAIKX.js} +23 -9
  203. package/dist/{compositions-ESLWNOMS.js → compositions-HWM6DNJA.js} +28 -29
  204. package/dist/{contactSheet-4YF7U6U7.js → contactSheet-ROUVWDRO.js} +7 -7
  205. package/dist/{curve-7RPSNRPE.js → curve-PLPTMDS4.js} +27 -28
  206. package/dist/{cuts-KBAAZSPS.js → cuts-T5GYTDUA.js} +28 -29
  207. package/dist/{delete-EP5Z7HKF.js → delete-6WE3N3VO.js} +33 -21
  208. package/dist/{deploy-MVR63JLD.js → deploy-GYY6CYQD.js} +14 -13
  209. package/dist/{describeProject-NBVZT5EN.js → describeProject-UQQ2GGIX.js} +19 -20
  210. package/dist/{destroy-DQKIT574.js → destroy-WSGREGAG.js} +14 -13
  211. package/dist/{deterministicFonts-LYBMXXBW.js → deterministicFonts-JER4GPCM.js} +7 -7
  212. package/dist/{diff-RI3FTMOZ.js → diff-JQBZUPKG.js} +305 -114
  213. package/dist/{dist-LRGTXDSM.js → dist-6EF2P3P7.js} +6 -5
  214. package/dist/{dist-G7VFX23I.js → dist-HF753IX4.js} +12 -10
  215. package/dist/{dist-TOOMD57O.js → dist-JRJHFP27.js} +24 -24
  216. package/dist/{docs-YTM4NX2R.js → docs-3OAPSKPG.js} +1 -1
  217. package/dist/{doctor-43YNRCRB.js → doctor-SPJ5AJKX.js} +31 -32
  218. package/dist/{dotEnv-RZ52L7X3.js → dotEnv-7JWLJ2TG.js} +11 -3
  219. package/dist/{energy-YCH36KCC.js → energy-KPDVIZ5D.js} +28 -29
  220. package/dist/{events-VUR27EF6.js → events-4WAMG3JE.js} +15 -16
  221. package/dist/{events-6RJBITYN.js → events-P4223ZZZ.js} +30 -31
  222. package/dist/{events-JCPYG3CD.js → events-XON5I7VU.js} +9 -9
  223. package/dist/{execute-OXMKWIFI.js → execute-CN5FLBYU.js} +57 -53
  224. package/dist/{extract-XGD2RDEX.js → extract-ABSBKYYH.js} +29 -30
  225. package/dist/{face-XCNWNTGN.js → face-PLPQ5335.js} +29 -30
  226. package/dist/{feedback-JNFDVBFV.js → feedback-QPQ4G72X.js} +70 -44
  227. package/dist/{ffmpeg-YQLAJUEA.js → ffmpeg-F3XK57IP.js} +19 -20
  228. package/dist/{figma-XXGHYEB3.js → figma-S5CVANVZ.js} +3 -3
  229. package/dist/fontLocalizeCli.js +29 -29
  230. package/dist/{frames-PEMWFRRY.js → frames-F4QEQB4V.js} +30 -31
  231. package/dist/{generate-H5M4QSJR.js → generate-O3OPOCHP.js} +46 -47
  232. package/dist/{get-R6Y2OE5P.js → get-P7LQ7U22.js} +29 -17
  233. package/dist/{gpuPolicy-2WVDQYZA.js → gpuPolicy-JPRDRQWU.js} +18 -19
  234. package/dist/{grade-compare-KFXPZFDL.js → grade-compare-6UZ6SK4J.js} +61 -61
  235. package/dist/hangReport.js +2 -2
  236. package/dist/{heifImagePrep-VLKYA5QZ.js → heifImagePrep-3PDFNYIE.js} +25 -25
  237. package/dist/{help-T3XUX5RI.js → help-DLOCAL7E.js} +1 -1
  238. package/dist/{history-QJPUCUUC.js → history-YIJVOGH7.js} +29 -30
  239. package/dist/hyperframe.manifest.json +1 -1
  240. package/dist/hyperframe.runtime.iife.js +64 -64
  241. package/dist/hyperframes-player.global.js +14 -6
  242. package/dist/{info-556DHJHJ.js → info-FVYJNNQL.js} +33 -34
  243. package/dist/{init-P62TPWR3.js → init-V45K4VAG.js} +54 -53
  244. package/dist/{ink-SRN65OZH.js → ink-P72OB7L4.js} +28 -29
  245. package/dist/{inspect-U5FWQQFB.js → inspect-3W2IG3JF.js} +63 -59
  246. package/dist/{installer-3TNMANQV.js → installer-QGDTFTDU.js} +11 -12
  247. package/dist/{keyframes-FPGEFGCH.js → keyframes-57OPHIR2.js} +111 -49
  248. package/dist/{lambda-YJY2MYWL.js → lambda-EQZS7UMO.js} +40 -33
  249. package/dist/{layout-QIKSVA44.js → layout-KSWMO6MH.js} +63 -61
  250. package/dist/{lint-RD33ESM5.js → lint-WIYBGVF2.js} +23 -24
  251. package/dist/{lintProject-ZWLXB3A2.js → lintProject-N3UN6HEE.js} +6 -5
  252. package/dist/{list-FFO3WOB2.js → list-3FQAHEE2.js} +32 -20
  253. package/dist/{localPage-DHIBMNJH.js → localPage-G2QEA7JL.js} +19 -20
  254. package/dist/{login-IMFRQOEQ.js → login-C3U6WSHF.js} +10 -10
  255. package/dist/{logout-SLBKP67J.js → logout-525LWS6J.js} +5 -5
  256. package/dist/{look-ZZHJYSPC.js → look-U5LWOI4H.js} +28 -29
  257. package/dist/{manager-U4WEPCLV.js → manager-C5S25OOK.js} +7 -7
  258. package/dist/{manager-V4LGD4HB.js → manager-ZVYDWLHI.js} +21 -22
  259. package/dist/{measure-ZRBVN45B.js → measure-R2KZIHXT.js} +11 -11
  260. package/dist/{media-treatment-3I2CMQJZ.js → media-treatment-FAW5ZLT7.js} +37 -36
  261. package/dist/{media-use-2OYJ3CCN.js → media-use-CPTT2ZDE.js} +14 -10
  262. package/dist/{models-PRW7EWSV.js → models-53JHNGSL.js} +31 -32
  263. package/dist/{motionShot-VWILMLHQ.js → motionShot-K5ZHHHE6.js} +33 -34
  264. package/dist/{normalize-PGMS24I2.js → normalize-TBACWMEK.js} +4 -1
  265. package/dist/{normalize-audio-42XMF35K.js → normalize-audio-EOO2ORPP.js} +25 -25
  266. package/dist/{oauth-V3HSFZRE.js → oauth-E5QBYYTX.js} +2 -2
  267. package/dist/{open-D52MJZQA.js → open-3YABRCER.js} +34 -35
  268. package/dist/{parakeetRunner-ZR2JWQZH.js → parakeetRunner-TLZC2WAJ.js} +31 -32
  269. package/dist/{pipeline-W3H4JA6H.js → pipeline-LZ73CHLB.js} +27 -26
  270. package/dist/{plan-2HQOFJO7.js → plan-3QQZ57IC.js} +38 -39
  271. package/dist/{play-G5XDRDIZ.js → play-ESWP4SF2.js} +53 -50
  272. package/dist/{policies-5RUNO47I.js → policies-XG6OTGQC.js} +2 -2
  273. package/dist/{preflight-W2JDYF3T.js → preflight-7G5OBMAA.js} +22 -23
  274. package/dist/{present-CYMTHQFM.js → present-5ER4JKR5.js} +45 -44
  275. package/dist/{preview-DTQPQZTK.js → preview-62XOVSXM.js} +61 -60
  276. package/dist/privateProjectFile-6NPNZXK3.js +65 -0
  277. package/dist/{probe-WZJK3YQI.js → probe-CFOGEVFU.js} +28 -29
  278. package/dist/{producer-2BSMSO6I.js → producer-LLE32VVO.js} +1 -1
  279. package/dist/{progress-KRDVC24C.js → progress-PT3NAFVP.js} +6 -5
  280. package/dist/{projectConfig-BYRVYLCC.js → projectConfig-R54UDB5Y.js} +14 -15
  281. package/dist/{prompts-7VQEH645.js → prompts-XC3IBT4D.js} +2 -2
  282. package/dist/{publicNetwork-GW7SVP7N.js → publicNetwork-66HWFKYG.js} +3 -1
  283. package/dist/{publication-UCFJLELD.js → publication-TOBV6M4Q.js} +8 -9
  284. package/dist/{publish-KXVPSWCO.js → publish-QVNH5PXC.js} +107 -76
  285. package/dist/receivedRecordFollow-U43DTVLP.js +54 -0
  286. package/dist/{refresh-2GVNKDQE.js → refresh-HK4YEHWC.js} +5 -5
  287. package/dist/{remove-background-O7BZNS3X.js → remove-background-XHE6JL35.js} +31 -30
  288. package/dist/{render-TYS3LCIQ.js → render-7JJ2DFEB.js} +16 -15
  289. package/dist/{render-QOWXGWQZ.js → render-GRZMK6ET.js} +143 -100
  290. package/dist/{render-DGAP4Q2Z.js → render-WK3D5VOW.js} +173 -138
  291. package/dist/{render-batch-TEQRGAUC.js → render-batch-KFEZFJXB.js} +20 -18
  292. package/dist/renderSetupWorker.js +23 -13
  293. package/dist/{resolver-RN2JGGQL.js → resolver-N4U52UK5.js} +11 -12
  294. package/dist/{reverse-FUARFEG2.js → reverse-6AOA3PXF.js} +1 -1
  295. package/dist/{run-V722HMUG.js → run-M2J3ZJ3W.js} +14 -14
  296. package/dist/runtimeVersion.js +6 -1
  297. package/dist/{sam-KHLM2DJA.js → sam-O7Y2CCK3.js} +5 -5
  298. package/dist/{screenshotCapture-4BB4LUMX.js → screenshotCapture-UXJZ7D3L.js} +21 -22
  299. package/dist/{service-ZPCHJY6B.js → service-DBNZZLPU.js} +31 -31
  300. package/dist/{share-PXUN7AH7.js → share-6P7S3USP.js} +36 -36
  301. package/dist/{sherpa-LT6Y7IGM.js → sherpa-CXEHEVAJ.js} +30 -31
  302. package/dist/sherpaWorker.js +6 -6
  303. package/dist/{sites-WWCABDSX.js → sites-R5F5FNAL.js} +9 -6
  304. package/dist/skills/hyperframes/scripts/locate.mjs +13 -19
  305. package/dist/skills/hyperframes-cli/references/lambda.md +1 -1
  306. package/dist/skills/media-use/audio/references/tts-to-captions.md +1 -1
  307. package/dist/skills/media-use/audio/references/tts.md +6 -6
  308. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +143 -2
  309. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +12 -2
  310. package/dist/skills/media-use/scripts/lib/candidates.mjs +3 -2
  311. package/dist/skills/media-use/scripts/lib/credit-limit.d.mts +1 -1
  312. package/dist/skills/media-use/scripts/lib/credit-limit.mjs +14 -9
  313. package/dist/skills/media-use/scripts/lib/terminal-text.d.mts +1 -0
  314. package/dist/skills/media-use/scripts/lib/terminal-text.mjs +12 -0
  315. package/dist/skills/media-use/scripts/resolve.mjs +21 -15
  316. package/dist/{skills-G63W5GD5.js → skills-RMIHFNI6.js} +21 -22
  317. package/dist/{skillsUpdateCheck-2T3JVDAA.js → skillsUpdateCheck-EHOSL2AC.js} +7 -7
  318. package/dist/{snapshot-EVSKTVDG.js → snapshot-DQK3P7TF.js} +114 -90
  319. package/dist/{src-K5FSMLTB.js → src-4INHWM6L.js} +29 -29
  320. package/dist/{src-R57EQQSI.js → src-BNSCFKOD.js} +25 -22
  321. package/dist/{start-XBCYKGBV.js → start-KPCEUG5K.js} +52 -45
  322. package/dist/{state-FO64CPYE.js → state-5LE7AN6F.js} +6 -5
  323. package/dist/{staticProjectServer-Q6VR7CXT.js → staticProjectServer-VCS4TOU2.js} +37 -37
  324. package/dist/{status-E5XIWRCQ.js → status-WBNQSG4H.js} +31 -32
  325. package/dist/studio/assets/hyperframes-player-Cm0hYGm2.js +573 -0
  326. package/dist/studio/assets/{index-D7ICtobF.js → index-BGrNWeLK.js} +199 -199
  327. package/dist/studio/assets/{index-ww7-RmuM.js → index-REqr_dLu.js} +1 -1
  328. package/dist/studio/assets/{pausedVideoDecoder-Dbe8Cmab.js → pausedVideoDecoder-DqLDSq8J.js} +1 -1
  329. package/dist/studio/index.html +1 -1
  330. package/dist/{studio-api-GMJVYGET.js → studio-api-RAW4CIPR.js} +24 -24
  331. package/dist/{studioSelectionClient-S46TNAAZ.js → studioSelectionClient-PLBQBLCJ.js} +2 -2
  332. package/dist/{studioServer-MIQCMK6U.js → studioServer-5PWBZADN.js} +357 -163
  333. package/dist/subCompositionWorker.js +62 -55
  334. package/dist/{sync-WJOFN6VN.js → sync-PM2WLBUC.js} +28 -29
  335. package/dist/{synthesize-FXM7ZD6J.js → synthesize-NGU4DRKC.js} +24 -14
  336. package/dist/{system-DBUN5UDD.js → system-PKL4Y4MX.js} +3 -3
  337. package/dist/{telemetry-HZ4P4DMC.js → telemetry-4BST73P2.js} +15 -16
  338. package/dist/{telemetry-M722DCXI.js → telemetry-UC4MSMG3.js} +1 -1
  339. package/dist/{templates-KFZZSSKW.js → templates-G3XOWYXG.js} +36 -31
  340. package/dist/{timeline-5M6DPCXF.js → timeline-E6ZXYGQR.js} +50 -46
  341. package/dist/{tokens-H4NPNRFR.js → tokens-KRHXM44C.js} +17 -7
  342. package/dist/{transcribe-6STI2ALX.js → transcribe-RJ3GOCJL.js} +56 -57
  343. package/dist/{transcribe-7PE5UH7J.js → transcribe-TKV3POYD.js} +26 -27
  344. package/dist/{tts-D7CLD3AD.js → tts-EPXRE275.js} +26 -10
  345. package/dist/{update-H3T3AVVG.js → update-TO7MLJCS.js} +23 -24
  346. package/dist/{updateCheck-TLCXUNBV.js → updateCheck-5AY447D5.js} +6 -6
  347. package/dist/{upgrade-BZVTMCQU.js → upgrade-BLZWWXYL.js} +11 -11
  348. package/dist/{urlDownloader-FJXNC3IM.js → urlDownloader-ME67HQ4O.js} +17 -18
  349. package/dist/{validate-WTRVCEL5.js → validate-SRBV5NFV.js} +53 -49
  350. package/dist/{video-TVO2U5F2.js → video-JPESR36I.js} +38 -34
  351. package/dist/{voices-F3EW43LX.js → voices-AECYKXGA.js} +43 -44
  352. package/dist/warmCheck.js +73 -73
  353. package/dist/warmCheckClient.js +4 -4
  354. package/package.json +1 -1
  355. package/dist/chunk-23SG3B6M.js +0 -81
  356. package/dist/chunk-2RUCE54M.js +0 -5083
  357. package/dist/chunk-HFUI6LVF.js +0 -34
  358. package/dist/chunk-JOQR4AP6.js +0 -22
  359. package/dist/chunk-MK23FXLH.js +0 -21
  360. package/dist/chunk-SALNTRJA.js +0 -204
  361. package/dist/chunk-VC76R6W2.js +0 -27
  362. package/dist/chunk-Z642P33A.js +0 -270
  363. package/dist/studio/assets/hyperframes-player-B78JDyI_.js +0 -565
  364. package/dist/{chunk-7IMHPBSH.js → chunk-4NDSGKPO.js} +3 -3
  365. /package/dist/{chunk-YXX6CIHL.js → chunk-BWFNWEUO.js} +0 -0
@@ -7,14 +7,15 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  DEFAULT_STACK_NAME,
9
9
  requireStack
10
- } from "./chunk-23SG3B6M.js";
10
+ } from "./chunk-IU6AC3WL.js";
11
+ import "./chunk-OW6MOJSR.js";
11
12
  import {
12
13
  c
13
14
  } from "./chunk-JCNPHRGX.js";
14
- import "./chunk-DL6PEJWH.js";
15
- import "./chunk-SALNTRJA.js";
16
- import "./chunk-MK23FXLH.js";
17
- import "./chunk-66W5IWLO.js";
15
+ import "./chunk-LYTELQL2.js";
16
+ import "./chunk-3GF72UPC.js";
17
+ import "./chunk-PTGNUVCB.js";
18
+ import "./chunk-U7M4SZUB.js";
18
19
  import "./chunk-CPHQTXP5.js";
19
20
  import "./chunk-LW33P24U.js";
20
21
  import "./chunk-XT6MXC7A.js";
@@ -29,13 +30,15 @@ async function loadSDK() {
29
30
  async function runSitesCreate(args) {
30
31
  const stack = requireStack(args.stackName);
31
32
  const projectDir = resolvePath(args.projectDir);
32
- const { assertStackReadsSites, deploySite } = await loadSDK();
33
+ const { assertStackReadsSites, deploySite, parseStateMachineArn } = await loadSDK();
33
34
  await assertStackReadsSites({ stateMachineArn: stack.stateMachineArn, region: stack.region });
34
35
  const handle = await deploySite({
35
36
  projectDir,
36
37
  bucketName: stack.bucketName,
38
+ expectedBucketOwner: parseStateMachineArn(stack.stateMachineArn).account,
37
39
  region: stack.region,
38
40
  siteId: args.siteId,
41
+ includeOutsideFiles: args.includeOutsideFiles,
39
42
  onNotice: (message) => console.error(c.dim(message))
40
43
  });
41
44
  if (args.json) {
@@ -22,7 +22,7 @@
22
22
  */
23
23
  import "./lib/windows-exe-search.mjs";
24
24
  import { execFileSync } from "node:child_process";
25
- import { existsSync, mkdirSync, copyFileSync } from "node:fs";
25
+ import { existsSync, mkdirSync } from "node:fs";
26
26
 
27
27
  const N1 = 9,
28
28
  PAD1 = 0.4; // stage 1: strips per axis, padding in STRIP units
@@ -54,31 +54,25 @@ function probe(img) {
54
54
  const [w, h] = out.split(",").map(Number);
55
55
  return { w, h };
56
56
  }
57
- function font() {
58
- const dst = "/tmp/locate-font.ttf";
59
- if (!existsSync(dst)) {
60
- for (const c of [
61
- "/System/Library/Fonts/Supplemental/Arial Bold.ttf",
62
- "/System/Library/Fonts/Supplemental/Arial.ttf",
63
- "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf",
64
- ]) {
65
- if (existsSync(c)) {
66
- copyFileSync(c, dst);
67
- break;
68
- }
69
- }
70
- }
71
- return dst;
57
+ const FONT_FILES = [
58
+ "/System/Library/Fonts/Supplemental/Arial Bold.ttf",
59
+ "/System/Library/Fonts/Supplemental/Arial.ttf",
60
+ "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf",
61
+ ];
62
+ // ffmpeg reads the system font in place; with none found, drawtext falls back to its default font.
63
+ function fontOption() {
64
+ const file = FONT_FILES.find((candidate) => existsSync(candidate));
65
+ return file ? `fontfile='${file}':` : "";
72
66
  }
73
67
  function gridFilters(w, h, n, axis, fz) {
74
- const F = font(),
68
+ const F = fontOption(),
75
69
  fs = [];
76
70
  if (axis === "v" || axis === "both") {
77
71
  for (let i = 1; i < n; i++)
78
72
  fs.push(`drawbox=x=${Math.round((i * w) / n)}:y=0:w=2:h=${h}:color=${GREEN}@0.8:t=fill`);
79
73
  for (let i = 0; i < n; i++)
80
74
  fs.push(
81
- `drawtext=fontfile=${F}:text='${i + 1}':x=${Math.round(((i + 0.5) * w) / n - fz * 0.3)}:y=6:fontsize=${fz}:fontcolor=black:box=1:boxcolor=white@0.95:boxborderw=5`,
75
+ `drawtext=${F}text='${i + 1}':x=${Math.round(((i + 0.5) * w) / n - fz * 0.3)}:y=6:fontsize=${fz}:fontcolor=black:box=1:boxcolor=white@0.95:boxborderw=5`,
82
76
  );
83
77
  }
84
78
  if (axis === "h" || axis === "both") {
@@ -86,7 +80,7 @@ function gridFilters(w, h, n, axis, fz) {
86
80
  fs.push(`drawbox=x=0:y=${Math.round((j * h) / n)}:w=${w}:h=2:color=${BLUE}@0.8:t=fill`);
87
81
  for (let j = 0; j < n; j++)
88
82
  fs.push(
89
- `drawtext=fontfile=${F}:text='${j + 1}':x=6:y=${Math.round(((j + 0.5) * h) / n - fz * 0.5)}:fontsize=${fz}:fontcolor=black:box=1:boxcolor=white@0.95:boxborderw=5`,
83
+ `drawtext=${F}text='${j + 1}':x=6:y=${Math.round(((j + 0.5) * h) / n - fz * 0.5)}:fontsize=${fz}:fontcolor=black:box=1:boxcolor=white@0.95:boxborderw=5`,
90
84
  );
91
85
  }
92
86
  return fs;
@@ -181,7 +181,7 @@ The default action set is deliberately broad (`Resource: "*"`) because CloudForm
181
181
 
182
182
  ## State, cost, and cleanup
183
183
 
184
- `hyperframes lambda` stores per-stack metadata under `<cwd>/.hyperframes/lambda-stack-<name>.json` (bucket name, state-machine ARN, region). Not secret, but AWS-account-identifying. Commit it to a repo or `.gitignore` it per your workflow.
184
+ `hyperframes lambda` stores per-stack metadata under `<cwd>/.hyperframes/lambda-stack-<name>.json` (bucket name, state-machine ARN, region). Not secret, but AWS-account-identifying. Commit it to a repo or `.gitignore` it per your workflow. The CLI refuses a state file with malformed fields or one that is a symlink, and uploads only to a bucket owned by the account of the file's state machine.
185
185
 
186
186
  - `lambda destroy` removes the SAM stack but **leaves the S3 bucket** (`Retain`). Delete it manually if you want the storage back.
187
187
  - Lambda billing is per-invocation + duration. `progress` reports the accrued cost.
@@ -8,7 +8,7 @@ HeyGen returns word timestamps in the same response as the audio. Use the
8
8
  bundled REST helper (the `hyperframes tts` command is Kokoro-only):
9
9
 
10
10
  ```bash
11
- node skills/media-use/audio/scripts/heygen-tts.mjs \
11
+ node <SKILL_DIR>/audio/scripts/heygen-tts.mjs \
12
12
  script.txt --output narration.wav --words narration.words.json
13
13
  ```
14
14
 
@@ -77,11 +77,11 @@ rather than selecting a saved API key, with a hint to run `npx hyperframes auth
77
77
  export HEYGEN_API_KEY=... # a project .env key is used only when nothing is saved
78
78
 
79
79
  # Synthesize + capture word timestamps in one call (skips a Whisper pass)
80
- node skills/media-use/audio/scripts/heygen-tts.mjs \
80
+ node <SKILL_DIR>/audio/scripts/heygen-tts.mjs \
81
81
  "Welcome to HyperFrames." -o narration.wav --words narration.words.json
82
82
 
83
- node skills/media-use/audio/scripts/heygen-tts.mjs ./script.txt -o narration.wav
84
- node skills/media-use/audio/scripts/heygen-tts.mjs --list # public starfish voices
83
+ node <SKILL_DIR>/audio/scripts/heygen-tts.mjs ./script.txt -o narration.wav
84
+ node <SKILL_DIR>/audio/scripts/heygen-tts.mjs --list # public starfish voices
85
85
  ```
86
86
 
87
87
  - **Voice:** `--voice <id>` must be a **starfish** voice_id (`--list`, or `GET /v3/voices?engine=starfish`) or one of your cloned voice ids (below). v2-catalog ids are rejected with HTTP 400. Omit `--voice` (English) and it defaults to **Marcia** (`05f19352e8f74b0392a8f411eba40de1`, a fixed default so the choice is deterministic). Non-English with no `--voice` falls back to the first matching catalog voice.
@@ -97,9 +97,9 @@ Clone a voice from an mp3 or wav recording, then pass the printed id to
97
97
  message to stderr and exits 1.
98
98
 
99
99
  ```bash
100
- node skills/media-use/audio/scripts/heygen-voice.mjs clone take.mp3 --name "My voice" # → {"voice_id":"..."}
101
- node skills/media-use/audio/scripts/heygen-voice.mjs list --prefix "My" # → [{"voice_id","name","created_at"}]
102
- node skills/media-use/audio/scripts/heygen-voice.mjs delete <voice_id>
100
+ node <SKILL_DIR>/audio/scripts/heygen-voice.mjs clone take.mp3 --name "My voice" # → {"voice_id":"..."}
101
+ node <SKILL_DIR>/audio/scripts/heygen-voice.mjs list --prefix "My" # → [{"voice_id","name","created_at"}]
102
+ node <SKILL_DIR>/audio/scripts/heygen-voice.mjs delete <voice_id>
103
103
  ```
104
104
 
105
105
  `clone` waits up to 120 s for the clone to finish. `list` reads
@@ -11,9 +11,9 @@ import { fetchMedia } from "../../../scripts/lib/media-fetch.mjs";
11
11
  // heygen CLI; plain HTTP needs $HEYGEN_ALLOW_HTTP=1, as there.
12
12
  // Vendored so the skill ships standalone. Pure node.
13
13
 
14
- import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
14
+ import { lstatSync, mkdirSync, readFileSync, realpathSync, statSync, writeFileSync } from "node:fs";
15
15
  import { homedir } from "node:os";
16
- import { dirname, join, resolve } from "node:path";
16
+ import { dirname, join, relative, resolve, sep } from "node:path";
17
17
 
18
18
  export const HEYGEN_BASE = "https://api.heygen.com/v3";
19
19
 
@@ -88,8 +88,149 @@ function projectKeyDir(name) {
88
88
  return set !== undefined && set.val === process.env[name] ? set.dir : undefined;
89
89
  }
90
90
 
91
+ const GEMINI_CREDENTIALS = [
92
+ "GEMINI_API_KEY",
93
+ "GOOGLE_API_KEY",
94
+ "GOOGLE_APPLICATION_CREDENTIALS",
95
+ "GCS_CREDS",
96
+ ];
97
+
98
+ // The hyperframes CLI names the folder whose .env set each key it passes on, so a key it loaded is not the shell's.
99
+ function inheritProjectKeyOrigins() {
100
+ let origins;
101
+ try {
102
+ origins = JSON.parse(process.env.HYPERFRAMES_PROJECT_ENV_ORIGINS || "{}");
103
+ } catch {
104
+ return;
105
+ }
106
+ for (const name of [...GEMINI_CREDENTIALS, "ELEVENLABS_API_KEY"]) {
107
+ const dir = origins?.[name];
108
+ if (typeof dir === "string" && process.env[name] && !projectEnvValues.has(name))
109
+ projectEnvValues.set(name, { val: process.env[name], dir });
110
+ }
111
+ }
112
+
113
+ function isFile(path) {
114
+ try {
115
+ return statSync(path).isFile();
116
+ } catch {
117
+ return false;
118
+ }
119
+ }
120
+
121
+ function fileIdentity(path) {
122
+ try {
123
+ const stat = lstatSync(path, { bigint: true });
124
+ return stat.ino === 0n ? null : `${stat.dev}:${stat.ino}`;
125
+ } catch {
126
+ return null;
127
+ }
128
+ }
129
+
130
+ // The CLI's received-files rule: a record at or above `dir` lists its .env (by path or as the same file on disk), or a
131
+ // record there cannot be read. → "listed" | "unreadable" | null.
132
+ function receivedEnvFile(dir) {
133
+ let start;
134
+ try {
135
+ start = realpathSync(dir);
136
+ } catch {
137
+ start = resolve(dir);
138
+ }
139
+ const envIdentity = fileIdentity(join(dir, ".env"));
140
+ for (let root = start; ; root = dirname(root)) {
141
+ const record = join(root, ".hyperframes", "received-files.json");
142
+ if (root === start || isFile(record)) {
143
+ let files;
144
+ try {
145
+ files = JSON.parse(readFileSync(record, "utf8")).files;
146
+ } catch (error) {
147
+ if (root !== start || !["ENOENT", "ENOTDIR"].includes(error.code)) return "unreadable";
148
+ files = [];
149
+ }
150
+ if (!Array.isArray(files)) return "unreadable";
151
+ const key = relative(root, join(start, ".env")).split(sep).join("/").normalize("NFC");
152
+ const listed = files.some((file) => {
153
+ const entry = String(file).normalize("NFC");
154
+ return (
155
+ entry === key || (envIdentity !== null && fileIdentity(join(root, entry)) === envIdentity)
156
+ );
157
+ });
158
+ if (listed) return "listed";
159
+ }
160
+ if (dirname(root) === root) return null;
161
+ }
162
+ }
163
+
164
+ const RECEIVED_ORIGIN = {
165
+ listed: "a received project",
166
+ unreadable: "a project whose received-files record could not be read",
167
+ };
168
+
169
+ // How a project key's .env is not the person's own, or null when it is theirs or the key is not from a .env.
170
+ function untrustedOrigin(name) {
171
+ const dir = projectKeyDir(name);
172
+ const kind = dir === undefined ? null : receivedEnvFile(dir);
173
+ return kind === null ? null : RECEIVED_ORIGIN[kind];
174
+ }
175
+
176
+ // 0: set outside any project .env; 1: the person's own project .env; 2: a received or unreadable one.
177
+ function keyRank(name) {
178
+ if (projectKeyDir(name) === undefined) return 0;
179
+ return untrustedOrigin(name) === null ? 1 : 2;
180
+ }
181
+
182
+ // A credential for a competing provider from a source the person controls more surely, named for the note. The
183
+ // person's own project key gives way only to the other API key, which speech and music both accept, and an own
184
+ // ElevenLabs key stays for an explicit provider choice.
185
+ function ownCompetingCredential(name) {
186
+ const rank = keyRank(name);
187
+ const surer = (other) => other !== name && process.env[other] && keyRank(other) < rank;
188
+ if (name !== "ELEVENLABS_API_KEY")
189
+ return (rank === 2 ? GEMINI_CREDENTIALS : ["GEMINI_API_KEY", "GOOGLE_API_KEY"]).find(surer);
190
+ if (rank < 2) return undefined;
191
+ if (process.env.HEYGEN_ACCESS_TOKEN) return "HEYGEN_ACCESS_TOKEN";
192
+ const heygenKey = ["HEYGEN_API_KEY", "HYPERFRAMES_API_KEY"].find(surer);
193
+ if (heygenKey) return heygenKey;
194
+ return storedCredential() ? "saved HeyGen credentials" : undefined;
195
+ }
196
+
197
+ const projectOrigin = (name) => untrustedOrigin(name) ?? "a project .env";
198
+
199
+ // A project .env's provider key gives way to the person's own credential for a competing provider.
200
+ function yieldProjectProviderKeys() {
201
+ for (const name of ["GEMINI_API_KEY", "GOOGLE_API_KEY", "ELEVENLABS_API_KEY"]) {
202
+ const dir = projectKeyDir(name);
203
+ const own = dir === undefined ? undefined : ownCompetingCredential(name);
204
+ if (own === undefined) continue;
205
+ const origin = projectOrigin(name);
206
+ delete process.env[name];
207
+ projectEnvValues.delete(name);
208
+ process.stderr.write(
209
+ `[hyperframes] .env: ignoring ${name} from ${origin} (${join(dir, ".env")}); using your own ${own}\n`,
210
+ );
211
+ }
212
+ }
213
+
214
+ let elevenlabsKeyNoted = false;
215
+
216
+ // Says once, before ElevenLabs speaks, that the key came from a project .env.
217
+ export function noteProjectElevenLabsKey() {
218
+ const dir = projectKeyDir("ELEVENLABS_API_KEY");
219
+ if (dir === undefined || elevenlabsKeyNoted) return;
220
+ elevenlabsKeyNoted = true;
221
+ process.stderr.write(
222
+ `[hyperframes] Using ELEVENLABS_API_KEY from ${join(dir, ".env")}, ${projectOrigin("ELEVENLABS_API_KEY")}: speech goes to that key's ElevenLabs account.\n`,
223
+ );
224
+ }
225
+
91
226
  // Walk up ≤5 dirs from startDir; load the first .env (shell env always wins).
92
227
  export function loadEnvFromDir(startDir) {
228
+ inheritProjectKeyOrigins();
229
+ loadFirstEnvFile(startDir);
230
+ yieldProjectProviderKeys();
231
+ }
232
+
233
+ function loadFirstEnvFile(startDir) {
93
234
  let dir = resolve(startDir);
94
235
  for (let i = 0; i < 5; i++) {
95
236
  const text = envFileText(join(dir, ".env"));
@@ -20,7 +20,13 @@ import { spawn, spawnSync } from "node:child_process";
20
20
  import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
21
21
  import { tmpdir } from "node:os";
22
22
  import { dirname, isAbsolute, join } from "node:path";
23
- import { heygenAuthHeaders, heygenCredential, heygenJSON, heygenMessage } from "./heygen.mjs";
23
+ import {
24
+ heygenAuthHeaders,
25
+ heygenCredential,
26
+ heygenJSON,
27
+ heygenMessage,
28
+ noteProjectElevenLabsKey,
29
+ } from "./heygen.mjs";
24
30
  import { pythonInvocation } from "./python.mjs";
25
31
  import { synthesizeGemini } from "./gemini-tts.mjs";
26
32
  import { geminiConfigured } from "./gemini-auth.mjs";
@@ -51,9 +57,13 @@ export function pickProvider(userProvider) {
51
57
  if (userProvider === "heygen" && !heygenAvailable()) heygenAuthHeaders();
52
58
  if (userProvider === "elevenlabs" && !process.env.ELEVENLABS_API_KEY)
53
59
  throw new Error("provider=elevenlabs but $ELEVENLABS_API_KEY is not set");
60
+ if (userProvider === "elevenlabs") noteProjectElevenLabsKey();
54
61
  return userProvider;
55
62
  }
56
- return heygenAvailable() ? "heygen" : elevenlabsAvailable() ? "elevenlabs" : "kokoro";
63
+ if (heygenAvailable()) return "heygen";
64
+ if (!elevenlabsAvailable()) return "kokoro";
65
+ noteProjectElevenLabsKey();
66
+ return "elevenlabs";
57
67
  }
58
68
 
59
69
  // ── voice resolution ──────────────────────────────────────────────────────────
@@ -8,6 +8,7 @@
8
8
  import { currentRecords } from "./manifest.mjs";
9
9
  import { readGlobalManifest } from "./cache.mjs";
10
10
  import { tokenOverlap, typesMatch } from "./match.mjs";
11
+ import { terminalText } from "./terminal-text.mjs";
11
12
 
12
13
  export const CANDIDATE_CAP = 8;
13
14
 
@@ -78,8 +79,8 @@ export function formatCandidates(candidates, { truncated, total } = {}) {
78
79
  const handle =
79
80
  c.scope === "global" ? `--reuse ${String(c.sha).slice(0, 16)}` : c.path || `manifest:${c.id}`;
80
81
  const m = meta(c);
81
- lines.push(` [${c.scope}] ${c.description}${m ? ` (${m})` : ""}`);
82
- lines.push(` ${handle}`);
82
+ lines.push(terminalText(` [${c.scope}] ${c.description}${m ? ` (${m})` : ""}`));
83
+ lines.push(terminalText(` ${handle}`));
83
84
  }
84
85
  if (truncated && total) {
85
86
  lines.push("");
@@ -1,3 +1,3 @@
1
1
  export function creditLimit(projectDir: string): number | undefined;
2
- export function creditsSpent(projectDir: string): { total: number; keys: Set<string> };
2
+ export function creditsSpent(projectDir: string): { total: number; keys: Map<string, number> };
3
3
  export function refuseUnderLimit(projectDir: string, what: string, generateType: string): void;
@@ -16,18 +16,23 @@ export function creditLimit(projectDir) {
16
16
  return credits;
17
17
  }
18
18
 
19
- /** Credits already committed by jobs in this project, and the job keys behind them. */
19
+ /** Credits already committed by jobs in this project, and what each job key holds. A logged amount that is not a
20
+ * positive finite number holds nothing, so no row counts below zero. */
20
21
  export function creditsSpent(projectDir) {
21
22
  const charged = new Map();
22
- for (const row of read(join(projectDir, ".hyperframes", "heygen-jobs.jsonl")).split("\n")) {
23
- if (!row) continue;
24
- const { key, credits } = JSON.parse(row);
25
- if (key && typeof credits === "number") charged.set(key, credits);
23
+ for (const line of read(join(projectDir, ".hyperframes", "heygen-jobs.jsonl")).split("\n")) {
24
+ let row;
25
+ try {
26
+ row = JSON.parse(line);
27
+ } catch {
28
+ continue;
29
+ }
30
+ const { key, credits } = Object(row);
31
+ if (key && typeof credits === "number")
32
+ charged.set(key, Number.isFinite(credits) && credits > 0 ? credits : 0);
26
33
  }
27
- return {
28
- total: [...charged.values()].reduce((a, b) => a + b, 0),
29
- keys: new Set([...charged].filter(([, c]) => c > 0).map(([k]) => k)),
30
- };
34
+ const keys = new Map([...charged].filter(([, c]) => c > 0));
35
+ return { total: [...keys.values()].reduce((a, b) => a + b, 0), keys };
31
36
  }
32
37
 
33
38
  /** The engine shells out to `heygen`, which prices nothing here: under a limit those calls are refused, and
@@ -0,0 +1 @@
1
+ export function terminalText(value: unknown): string;
@@ -0,0 +1,12 @@
1
+ // The media-use engine runs without the CLI's packages installed, so it keeps its own copy of
2
+ // core's terminalText: control characters print as visible \xNN escapes, tabs stay as they are.
3
+ const isControlCode = (code) => (code < 0x20 && code !== 0x09) || (code >= 0x7f && code <= 0x9f);
4
+
5
+ export function terminalText(value) {
6
+ let shown = "";
7
+ for (const ch of String(value)) {
8
+ const code = ch.charCodeAt(0);
9
+ shown += isControlCode(code) ? `\\x${code.toString(16).padStart(2, "0")}` : ch;
10
+ }
11
+ return shown;
12
+ }
@@ -69,6 +69,7 @@ import {
69
69
  scoreMatch,
70
70
  } from "./lib/sfx-provider.mjs";
71
71
  import { writeSfxCredit } from "./lib/openverse.mjs";
72
+ import { terminalText } from "./lib/terminal-text.mjs";
72
73
  import { mediaVectorRows, rankMediaRowsWithVectors } from "./lib/local-media-search.mjs";
73
74
 
74
75
  const INGEST_TYPES = listTypes();
@@ -179,7 +180,7 @@ if (args.adopt) {
179
180
  console.log("no new assets to adopt (assets/ empty or already registered)");
180
181
  } else {
181
182
  console.log(`adopted ${adopted.length} asset${adopted.length === 1 ? "" : "s"} from assets/`);
182
- for (const r of adopted) console.log(` ${r.id} → ${r.path} (${r.type})`);
183
+ for (const r of adopted) console.log(terminalText(` ${r.id} → ${r.path} (${r.type})`));
183
184
  }
184
185
  process.exit(0);
185
186
  }
@@ -280,11 +281,14 @@ if (type === "recipe") {
280
281
  console.log(JSON.stringify({ ok: true, ...used }));
281
282
  } else {
282
283
  console.log(
283
- `resolved recipe ${used.recipe.name} (v${used.recipe.version}, ${used.recipe.workflow})`,
284
+ terminalText(
285
+ `resolved recipe ${used.recipe.name} (v${used.recipe.version}, ${used.recipe.workflow})`,
286
+ ),
284
287
  );
285
- console.log(` frame spec → ${used.frameSpecPath} (copied over)`);
286
- console.log(` storyboard skeleton → ${used.skeletonPath}`);
287
- if (used.briefSkeletonPath) console.log(` brief skeleton → ${used.briefSkeletonPath}`);
288
+ console.log(terminalText(` frame spec → ${used.frameSpecPath} (copied over)`));
289
+ console.log(terminalText(` storyboard skeleton → ${used.skeletonPath}`));
290
+ if (used.briefSkeletonPath)
291
+ console.log(terminalText(` brief skeleton → ${used.briefSkeletonPath}`));
288
292
  }
289
293
  process.exit(0);
290
294
  } catch (err) {
@@ -553,7 +557,7 @@ async function run() {
553
557
  }),
554
558
  );
555
559
  } else {
556
- console.error(`error: ${msg}`);
560
+ console.error(terminalText(`error: ${msg}`));
557
561
  }
558
562
  process.exit(1);
559
563
  }
@@ -671,7 +675,7 @@ function exitError(message, status = 1) {
671
675
  if (args.json) {
672
676
  console.log(JSON.stringify({ ok: false, error: message }));
673
677
  } else {
674
- console.error(`error: ${message}`);
678
+ console.error(terminalText(`error: ${message}`));
675
679
  }
676
680
  process.exit(status);
677
681
  }
@@ -743,7 +747,7 @@ async function colorMiss(type, intent) {
743
747
  if (args.json) {
744
748
  console.log(JSON.stringify({ ok: false, error: msg }));
745
749
  } else {
746
- console.error(`error: ${msg}`);
750
+ console.error(terminalText(`error: ${msg}`));
747
751
  }
748
752
  process.exit(1);
749
753
  }
@@ -1184,8 +1188,8 @@ function printStats(report) {
1184
1188
  return;
1185
1189
  }
1186
1190
  for (const [type, misses] of entries) {
1187
- console.log(` ${type}:`);
1188
- for (const miss of misses) console.log(` ${miss.count} ${miss.intent}`);
1191
+ console.log(terminalText(` ${type}:`));
1192
+ for (const miss of misses) console.log(terminalText(` ${miss.count} ${miss.intent}`));
1189
1193
  }
1190
1194
  }
1191
1195
 
@@ -1196,7 +1200,7 @@ function printMap(label, values) {
1196
1200
  console.log(" none");
1197
1201
  return;
1198
1202
  }
1199
- for (const [key, value] of entries) console.log(` ${key}: ${value}`);
1203
+ for (const [key, value] of entries) console.log(terminalText(` ${key}: ${value}`));
1200
1204
  }
1201
1205
 
1202
1206
  function ffDoctorCheck(name, binary) {
@@ -1280,7 +1284,7 @@ async function reuseGlobal(shaArg) {
1280
1284
  }
1281
1285
  // Do not import an asset under the wrong type.
1282
1286
  if (!typesMatch(rec.type, type)) {
1283
- console.error(`error: sha "${shaArg}" is a ${rec.type} asset, not ${type}`);
1287
+ console.error(terminalText(`error: sha "${shaArg}" is a ${rec.type} asset, not ${type}`));
1284
1288
  process.exit(2);
1285
1289
  }
1286
1290
  const ext = extname(rec.cached_path || "") || defaultExt(type);
@@ -1308,7 +1312,9 @@ function warnLowConfidence(record, match) {
1308
1312
  ? `found by its file name, resolved earlier for "${match.resolved_for}"`
1309
1313
  : `found by its file name, sharing ${match.matched_words.length} of ${match.intent_words} words`;
1310
1314
  console.error(
1311
- `media-use: low-confidence match for "${intent}": ${record.description || record.path} (${why}). Listen before placing it, or resolve again with other words.`,
1315
+ terminalText(
1316
+ `media-use: low-confidence match for "${intent}": ${record.description || record.path} (${why}). Listen before placing it, or resolve again with other words.`,
1317
+ ),
1312
1318
  );
1313
1319
  }
1314
1320
 
@@ -1367,7 +1373,7 @@ async function result(record, source, match = recordedMatch(record)) {
1367
1373
  );
1368
1374
  } else {
1369
1375
  const meta = formatMeta(record, source);
1370
- console.log(`resolved ${record.id} → ${record.path || "inline"} (${meta})`);
1376
+ console.log(terminalText(`resolved ${record.id} → ${record.path || "inline"} (${meta})`));
1371
1377
  }
1372
1378
  }
1373
1379
 
@@ -1399,7 +1405,7 @@ run().catch((err) => {
1399
1405
  if (args.json) {
1400
1406
  console.log(JSON.stringify({ ok: false, error: err.message }));
1401
1407
  } else {
1402
- console.error(`error: ${err.message}`);
1408
+ console.error(terminalText(`error: ${err.message}`));
1403
1409
  }
1404
1410
  process.exit(1);
1405
1411
  });
@@ -9,55 +9,54 @@ import {
9
9
  skillsManagedExternally,
10
10
  skills_default,
11
11
  updateSkills
12
- } from "./chunk-RV3HR3BZ.js";
12
+ } from "./chunk-XLG3JMSS.js";
13
13
  import "./chunk-EXA6R6SW.js";
14
- import "./chunk-GVIJFPZV.js";
15
- import "./chunk-D2LIT7UR.js";
14
+ import "./chunk-FLJ4S7NA.js";
15
+ import "./chunk-OH3MUFZG.js";
16
16
  import "./chunk-6BEFEWFB.js";
17
17
  import "./chunk-JJ47LVJ7.js";
18
- import "./chunk-2WA62M3B.js";
19
- import "./chunk-JOOKM2NC.js";
18
+ import "./chunk-22B53HD3.js";
19
+ import "./chunk-NU7BEOCX.js";
20
20
  import "./chunk-PXVQOMKL.js";
21
- import "./chunk-MCDNAIFF.js";
21
+ import "./chunk-NGRWDXRZ.js";
22
22
  import "./chunk-DMW5SSUN.js";
23
23
  import "./chunk-DL4OD7IA.js";
24
24
  import "./chunk-S3S4TGEH.js";
25
25
  import "./chunk-54HJ63Q2.js";
26
26
  import "./chunk-JCNPHRGX.js";
27
- import "./chunk-5IUVWP3A.js";
27
+ import "./chunk-MPVJI4SE.js";
28
28
  import "./chunk-FXMKHHPO.js";
29
- import "./chunk-2RUCE54M.js";
30
- import "./chunk-VC76R6W2.js";
31
- import "./chunk-SALNTRJA.js";
32
- import "./chunk-MK23FXLH.js";
29
+ import "./chunk-BNH2IKGV.js";
30
+ import "./chunk-3GF72UPC.js";
33
31
  import "./chunk-RQVDTPGD.js";
34
- import "./chunk-O2INZCGB.js";
35
- import "./chunk-O5U3Y5DX.js";
32
+ import "./chunk-YB2ZJJFJ.js";
33
+ import "./chunk-5GUYYSVT.js";
36
34
  import "./chunk-IH2C53YV.js";
37
- import "./chunk-7IMHPBSH.js";
35
+ import "./chunk-4NDSGKPO.js";
38
36
  import "./chunk-FR7YBU3H.js";
39
37
  import "./chunk-DZWAYZG2.js";
38
+ import "./chunk-WC4MTXGN.js";
40
39
  import "./chunk-GWTIFRF5.js";
41
40
  import "./chunk-2RY2LWAA.js";
42
- import "./chunk-WC4MTXGN.js";
41
+ import "./chunk-PTGNUVCB.js";
43
42
  import "./chunk-WFQJ6EJ6.js";
44
- import "./chunk-OD7XWF5T.js";
45
- import "./chunk-KYKQO4VN.js";
43
+ import "./chunk-DWGDP537.js";
44
+ import "./chunk-FU62NEWC.js";
46
45
  import "./chunk-BR2JQQC5.js";
47
46
  import "./chunk-AWD2MWWL.js";
48
47
  import "./chunk-ISN5GRYI.js";
49
48
  import "./chunk-GR2E54E6.js";
50
- import "./chunk-ADVVQX4I.js";
51
- import "./chunk-66W5IWLO.js";
49
+ import "./chunk-LMNCEQCC.js";
50
+ import "./chunk-U7M4SZUB.js";
52
51
  import "./chunk-CPHQTXP5.js";
53
52
  import "./chunk-QBXDU24O.js";
54
- import "./chunk-FFOFGL2O.js";
53
+ import "./chunk-7DMES2F3.js";
55
54
  import "./chunk-E63BDV4Z.js";
56
55
  import "./chunk-LW33P24U.js";
57
56
  import "./chunk-XT6MXC7A.js";
58
57
  import "./chunk-7KDQAD2W.js";
59
- import "./chunk-JKLWQUSV.js";
60
- import "./chunk-IE6BIB3L.js";
58
+ import "./chunk-SDIQEPAR.js";
59
+ import "./chunk-VM2VBJRC.js";
61
60
  import "./chunk-M2WBOQ2Q.js";
62
61
  export {
63
62
  skills_default as default,
@@ -10,23 +10,23 @@ import {
10
10
  recordSkillsCheck,
11
11
  refreshSkillsCache,
12
12
  skillsCheckDue
13
- } from "./chunk-OD7XWF5T.js";
14
- import "./chunk-KYKQO4VN.js";
13
+ } from "./chunk-DWGDP537.js";
14
+ import "./chunk-FU62NEWC.js";
15
15
  import "./chunk-BR2JQQC5.js";
16
16
  import "./chunk-AWD2MWWL.js";
17
17
  import "./chunk-ISN5GRYI.js";
18
18
  import "./chunk-GR2E54E6.js";
19
- import "./chunk-ADVVQX4I.js";
20
- import "./chunk-66W5IWLO.js";
19
+ import "./chunk-LMNCEQCC.js";
20
+ import "./chunk-U7M4SZUB.js";
21
21
  import "./chunk-CPHQTXP5.js";
22
22
  import "./chunk-QBXDU24O.js";
23
- import "./chunk-FFOFGL2O.js";
23
+ import "./chunk-7DMES2F3.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-JKLWQUSV.js";
29
- import "./chunk-IE6BIB3L.js";
28
+ import "./chunk-SDIQEPAR.js";
29
+ import "./chunk-VM2VBJRC.js";
30
30
  import "./chunk-M2WBOQ2Q.js";
31
31
  export {
32
32
  invalidateSkillsCache,