hyperframes 0.9.33 → 0.9.35

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/bin/hyperframes.mjs +10 -0
  2. package/dist/{add-GDXM36YQ.js → add-T5XBJN7F.js} +17 -16
  3. package/dist/{agentPromptGenerator-KPNDH2EI.js → agentPromptGenerator-KYLYM7IC.js} +11 -11
  4. package/dist/{animatedGifPrep-SAKETEZ2.js → animatedGifPrep-FLIPCLVQ.js} +10 -10
  5. package/dist/api.js +41 -41
  6. package/dist/{appHistory-WZIHFCPK.js → appHistory-VOZOEPVK.js} +3 -3
  7. package/dist/{asset-KOJC72AQ.js → asset-PJLMPMBK.js} +3 -3
  8. package/dist/{assetCataloger-Q4ZFUI6G.js → assetCataloger-ZQ2PWA47.js} +12 -12
  9. package/dist/{audio-XZBBXKQC.js → audio-EBICH5EQ.js} +21 -21
  10. package/dist/{auth-X45YSZGE.js → auth-OTDAEZYD.js} +2 -2
  11. package/dist/{autoUpdate-77XWQ564.js → autoUpdate-TQWOBFKJ.js} +2 -2
  12. package/dist/{avatars-D3D22TI2.js → avatars-WRUDCHTJ.js} +14 -14
  13. package/dist/{backgroundChecks-2L2RWFJ3.js → backgroundChecks-AMPTVQY5.js} +3 -3
  14. package/dist/backgroundChecksWorker.js +5 -4
  15. package/dist/{batchRender-O7J47H2Z.js → batchRender-SGTA6JAT.js} +6 -6
  16. package/dist/{beats-6RVVU56H.js → beats-TLHZXD7W.js} +13 -13
  17. package/dist/{benchmark-D5JRNAVQ.js → benchmark-TAXHNW33.js} +11 -11
  18. package/dist/{billing-WT4DGZII.js → billing-GOHX7W6X.js} +15 -15
  19. package/dist/{browser-2OR737P4.js → browser-H7K5L7WE.js} +10 -9
  20. package/dist/{bundleWithLocalizedFonts-VBET4RVR.js → bundleWithLocalizedFonts-6VWRV726.js} +1 -1
  21. package/dist/{capture-23X2CK56.js → capture-WJAV7DPT.js} +22 -22
  22. package/dist/{capture-B34FTO6G.js → capture-WVJK3FNU.js} +4 -4
  23. package/dist/{captureCompositionFrame-TPZKEVKN.js → captureCompositionFrame-R2OQ5A4S.js} +18 -18
  24. package/dist/{captureFile-Y2ZMB7HK.js → captureFile-MRDRPMNA.js} +3 -3
  25. package/dist/{catalog-ACHSYU5Z.js → catalog-JKDKE3QA.js} +17 -16
  26. package/dist/{catch-up-FGANS2BB.js → catch-up-65YBZQSC.js} +11 -11
  27. package/dist/{check-DXK4L5WP.js → check-XMNNDKNC.js} +50 -50
  28. package/dist/{checkAudio-4ISYJED3.js → checkAudio-ITIWPYET.js} +14 -14
  29. package/dist/{checkBrowser-5ECMULMP.js → checkBrowser-MQHZWWLA.js} +43 -43
  30. package/dist/{chunk-2I4DQZLQ.js → chunk-2QM6JA3F.js} +23 -37
  31. package/dist/{chunk-UC4X6I35.js → chunk-3F2DTPBD.js} +0 -6
  32. package/dist/chunk-42KTBKL4.js +5053 -0
  33. package/dist/{chunk-DMZER7D5.js → chunk-46ZLBZPE.js} +2 -2
  34. package/dist/{chunk-7UUUV4PN.js → chunk-47JK3BOK.js} +1 -1
  35. package/dist/{chunk-I3PA54IU.js → chunk-4IPKEJPW.js} +1 -1
  36. package/dist/{chunk-MDGNQWFN.js → chunk-5M43Z25X.js} +1 -1
  37. package/dist/{chunk-CHM3QYLF.js → chunk-5OHPI5OR.js} +3 -3
  38. package/dist/{chunk-SOAQ3XXB.js → chunk-5TAFQEKH.js} +2 -2
  39. package/dist/{chunk-XDRSEU2I.js → chunk-6AJG7TMS.js} +6 -6
  40. package/dist/{chunk-G7PITEUH.js → chunk-6MYO2IHD.js} +1 -1
  41. package/dist/{chunk-BMDABBHG.js → chunk-7IVPSA4K.js} +5 -17
  42. package/dist/{chunk-HPKW6UVW.js → chunk-7JCATDO6.js} +3 -3
  43. package/dist/{chunk-JZIEZCQM.js → chunk-7PBJR7WI.js} +5 -12
  44. package/dist/{chunk-O2T6ZTLN.js → chunk-7SUMXO6L.js} +1 -1
  45. package/dist/{chunk-UE2WSWNA.js → chunk-7ZYTAHZ2.js} +1 -1
  46. package/dist/{chunk-YTUPQTXA.js → chunk-A2MYAIM3.js} +10 -10
  47. package/dist/{chunk-A4VXOJZO.js → chunk-A2OQGUBL.js} +3 -3
  48. package/dist/{chunk-YNFHZ4RI.js → chunk-A3CUI2S2.js} +3 -3
  49. package/dist/{chunk-JCJJCYCP.js → chunk-A3MH6DGU.js} +10 -10
  50. package/dist/{chunk-VZQXHYEI.js → chunk-A3UI2LNA.js} +3 -3
  51. package/dist/{chunk-DDDSTRHU.js → chunk-ADAXA5XD.js} +26 -8
  52. package/dist/{chunk-2TBW7UOF.js → chunk-AOZKUVTY.js} +203 -115
  53. package/dist/{chunk-T3GSTIBS.js → chunk-AU6UGZZ4.js} +3 -3
  54. package/dist/{chunk-N6Y645MX.js → chunk-B7GOS2BL.js} +1 -1
  55. package/dist/{chunk-2QTGQGYA.js → chunk-BFXSMYNY.js} +1 -1
  56. package/dist/{chunk-IYLGUQFR.js → chunk-BHOEEMCW.js} +3 -3
  57. package/dist/{chunk-XUDJ5XSQ.js → chunk-BHPPJMXP.js} +6 -6
  58. package/dist/{chunk-REJ4NIBY.js → chunk-BHSQSWN6.js} +1 -1
  59. package/dist/{chunk-MA35E5OY.js → chunk-BTYCPOPD.js} +2 -2
  60. package/dist/{chunk-GHLLC6LJ.js → chunk-CEBLQRYG.js} +2 -2
  61. package/dist/{chunk-2LMCARA5.js → chunk-CI34E4VF.js} +6 -4
  62. package/dist/{chunk-CKJDY6EK.js → chunk-DC7AOIHN.js} +1 -1
  63. package/dist/{chunk-6ZVUTYNB.js → chunk-DLJ6ESP7.js} +6 -6
  64. package/dist/{chunk-23354HMA.js → chunk-DVAKYHZN.js} +3 -3
  65. package/dist/{chunk-B66UZ2YK.js → chunk-DYNIPOEN.js} +6 -6
  66. package/dist/{chunk-R45WFVRA.js → chunk-ECYVLHZZ.js} +2 -2
  67. package/dist/{chunk-W2FSQBUR.js → chunk-EIBERSJ2.js} +14 -14
  68. package/dist/{chunk-EX533ULK.js → chunk-EVMSNLUQ.js} +2 -2
  69. package/dist/{chunk-WYPRTHXQ.js → chunk-EXMJ7JS5.js} +2 -2
  70. package/dist/{chunk-I35B5RWZ.js → chunk-F645WHPZ.js} +4 -4
  71. package/dist/{chunk-ZIYXPDKY.js → chunk-FF6T5VPF.js} +2 -2
  72. package/dist/{chunk-G55YEL2L.js → chunk-FJ4PIVGB.js} +436 -57
  73. package/dist/{chunk-YAS347ZS.js → chunk-FLVHLNQN.js} +1 -1
  74. package/dist/{chunk-HEXTAQYG.js → chunk-FYCI7NEH.js} +2 -2
  75. package/dist/{chunk-6RV2QY4K.js → chunk-G4CQIZZC.js} +23 -23
  76. package/dist/{chunk-BBL6STGK.js → chunk-GHCG2KZD.js} +2 -2
  77. package/dist/{chunk-XVVPEWNX.js → chunk-GPERPLAQ.js} +1 -1
  78. package/dist/{chunk-VQJLTYEK.js → chunk-GT5REDGY.js} +2 -2
  79. package/dist/{chunk-CDI3CCAU.js → chunk-GUYH2XH2.js} +12 -14
  80. package/dist/{chunk-4DLYTSWQ.js → chunk-H3DP5ELI.js} +1 -1
  81. package/dist/chunk-HOIEN7O4.js +31 -0
  82. package/dist/{chunk-4CHGNFCS.js → chunk-I5VIATAH.js} +4 -4
  83. package/dist/{chunk-2B2IMLUQ.js → chunk-I6V25IXG.js} +1 -1
  84. package/dist/{chunk-76KUCQXD.js → chunk-IARWDMY7.js} +3 -3
  85. package/dist/{chunk-KRWPTZBY.js → chunk-IU5DC4HP.js} +94 -42
  86. package/dist/{chunk-PXDRW3QN.js → chunk-J466WOMZ.js} +1 -1
  87. package/dist/{chunk-6QEEF5RR.js → chunk-J54ZPEWO.js} +1 -1
  88. package/dist/{chunk-DGC2RIQE.js → chunk-JN3N335Z.js} +4 -4
  89. package/dist/{chunk-N2C7WJDG.js → chunk-KCIZBYAS.js} +1 -1
  90. package/dist/{chunk-SVI2CJ6R.js → chunk-KCPIENND.js} +1 -1
  91. package/dist/{chunk-W5PW26KE.js → chunk-KEUDODWJ.js} +1 -1
  92. package/dist/{chunk-QWM3NY2E.js → chunk-KKIAPWVZ.js} +4 -4
  93. package/dist/{chunk-ROXILOZ6.js → chunk-KLXPYLNA.js} +2 -2
  94. package/dist/{chunk-3J32XVJ6.js → chunk-LCK6C46G.js} +3 -3
  95. package/dist/{chunk-EVMY7IPL.js → chunk-LD6JONPV.js} +155 -22
  96. package/dist/{chunk-YSHUIQ3I.js → chunk-LO74I6MZ.js} +1 -1
  97. package/dist/{chunk-CNJLBAKM.js → chunk-LQV2PMKI.js} +2 -2
  98. package/dist/{chunk-N7C7U3ZR.js → chunk-M425BL2U.js} +22 -11
  99. package/dist/{chunk-MP36L7OJ.js → chunk-MG6GU4FF.js} +2 -2
  100. package/dist/{chunk-AIC7T7CC.js → chunk-MM5URNHE.js} +2 -2
  101. package/dist/{chunk-PIEVAPKP.js → chunk-MYETYFDI.js} +1 -1
  102. package/dist/{chunk-CHJGVW5W.js → chunk-N36NHUGP.js} +4 -11
  103. package/dist/{chunk-EX7WPDFA.js → chunk-NABIUZRZ.js} +2 -2
  104. package/dist/{chunk-4US5QCXR.js → chunk-NJF566HN.js} +77 -31
  105. package/dist/{chunk-XQWWFIBR.js → chunk-NMQ26YZX.js} +2 -2
  106. package/dist/{chunk-MVIUSNPZ.js → chunk-NQAXN2B2.js} +1 -1
  107. package/dist/{chunk-YDG3OXH3.js → chunk-NQE4NKVE.js} +2 -2
  108. package/dist/{chunk-ETWXZQN5.js → chunk-NTVSXJHQ.js} +2 -2
  109. package/dist/{chunk-U77L3ZQZ.js → chunk-OW5BBEVE.js} +1 -1
  110. package/dist/{chunk-SUXEL7G4.js → chunk-OYCKZZDC.js} +11 -11
  111. package/dist/{chunk-Y5DOT5NQ.js → chunk-PHDEKHEN.js} +1 -1
  112. package/dist/{chunk-KIAY63AB.js → chunk-PIA7JBWF.js} +26 -14
  113. package/dist/{chunk-RGYOCAHC.js → chunk-PP6XMZXN.js} +2 -2
  114. package/dist/{chunk-XFXCI4IP.js → chunk-Q4RX6D2H.js} +2 -2
  115. package/dist/{chunk-4WZU4FYS.js → chunk-QZFKLORI.js} +4 -4
  116. package/dist/{chunk-ADYMQM7T.js → chunk-R43U3RJ3.js} +2 -2
  117. package/dist/{chunk-C2VZ7UPE.js → chunk-RES7SNFU.js} +15 -15
  118. package/dist/{chunk-2RBQLV6B.js → chunk-RK3KWEOM.js} +1 -1
  119. package/dist/{chunk-ZOAANTVI.js → chunk-RZBPK4LO.js} +1 -1
  120. package/dist/{chunk-5GYTBKZA.js → chunk-S5FHA2NX.js} +2 -2
  121. package/dist/{chunk-SWPI27QV.js → chunk-SG4DOSAE.js} +8 -8
  122. package/dist/{chunk-L6BFXQ6S.js → chunk-SJGYWLHO.js} +3 -3
  123. package/dist/{chunk-JSVCF4A6.js → chunk-SM36NR25.js} +2 -2
  124. package/dist/{chunk-WIMVXPYG.js → chunk-SODOJ4CP.js} +11 -11
  125. package/dist/{chunk-ERJBWDPM.js → chunk-SWOE4NH4.js} +6 -6
  126. package/dist/{chunk-4FTJE22M.js → chunk-SZUO4O74.js} +2 -2
  127. package/dist/{chunk-O5CNNVRY.js → chunk-TORIKOIX.js} +8 -8
  128. package/dist/{chunk-TFBPCJPG.js → chunk-U47ZNIUB.js} +1 -1
  129. package/dist/{chunk-NQFIMBXS.js → chunk-UFWTTQ72.js} +2 -2
  130. package/dist/{chunk-FRH3CPW5.js → chunk-V4XLGSUL.js} +1 -1
  131. package/dist/{chunk-XSHJ37U3.js → chunk-VQVA4FRS.js} +8 -8
  132. package/dist/{chunk-HMB3IAVP.js → chunk-VX5JYR6N.js} +2 -2
  133. package/dist/{chunk-GOMTMQRT.js → chunk-VXVDZFZL.js} +1 -1
  134. package/dist/{chunk-MDBEAWP2.js → chunk-VYARX4SV.js} +3 -3
  135. package/dist/{chunk-77UB5EHM.js → chunk-WCSGSWKA.js} +1 -1
  136. package/dist/{chunk-2KYLVWLO.js → chunk-WWKU5VK7.js} +1 -1
  137. package/dist/{chunk-45ZQI734.js → chunk-X47GMPT2.js} +2 -2
  138. package/dist/{chunk-IEEIPTDW.js → chunk-X5BRDEOM.js} +2 -2
  139. package/dist/{chunk-G2XAFJ2B.js → chunk-X73RI4GQ.js} +2 -2
  140. package/dist/{chunk-7LTXT7ME.js → chunk-XAPVWRO5.js} +2 -2
  141. package/dist/{chunk-PNP2BO3U.js → chunk-XKL3WQI2.js} +3 -3
  142. package/dist/{chunk-RCB4SGTB.js → chunk-XODMUHGW.js} +50 -13
  143. package/dist/{chunk-HZTRKUKE.js → chunk-XWK2RSD5.js} +37 -0
  144. package/dist/{chunk-SIGASWB7.js → chunk-Y6U6DDBC.js} +4 -4
  145. package/dist/chunk-YFC5II7G.js +143 -0
  146. package/dist/chunk-YHJOTCTV.js +16 -0
  147. package/dist/{chunk-VKZSAAXZ.js → chunk-YUG4GVRH.js} +4 -4
  148. package/dist/{chunk-GBIASKIH.js → chunk-Z7VKBKC3.js} +1 -1
  149. package/dist/{chunk-OD7PLYYX.js → chunk-ZKGDIPMD.js} +32 -23
  150. package/dist/{chunk-LIWK3MFR.js → chunk-ZLTB7ZCQ.js} +6 -6
  151. package/dist/{chunk-5RVPI6QL.js → chunk-ZOL6363C.js} +3 -3
  152. package/dist/{clean-3IN64RHM.js → clean-MTIRQX5P.js} +28 -28
  153. package/dist/cli.js +66 -65
  154. package/dist/{cloud-LBUZBUP6.js → cloud-MWZ3SO3Z.js} +4 -4
  155. package/dist/{cloud-SVYXHFEG.js → cloud-SXXNSICW.js} +3 -3
  156. package/dist/{cloudrun-PZOF2QGL.js → cloudrun-7ZLJG5K7.js} +8 -8
  157. package/dist/{compare-UOJ3LXQQ.js → compare-336QVVJC.js} +42 -42
  158. package/dist/{compiler-5ZDHBKBQ.js → compiler-HYZUBDAD.js} +6 -6
  159. package/dist/{component-EVIPLTTJ.js → component-NEPVQVDF.js} +4 -4
  160. package/dist/{compositions-R4GG5FBO.js → compositions-5UXCOLME.js} +15 -15
  161. package/dist/{contactSheet-HZMP42FZ.js → contactSheet-3YTXO7U5.js} +4 -4
  162. package/dist/{curve-LR3PSRW3.js → curve-GDAFPSYA.js} +14 -14
  163. package/dist/{cuts-DHCOBAFT.js → cuts-U5XZJLGG.js} +15 -15
  164. package/dist/{delete-MMGGU3QP.js → delete-G4U723IG.js} +7 -7
  165. package/dist/{deploy-SKIGUTM2.js → deploy-ZJ6GBOAW.js} +2 -2
  166. package/dist/{describeProject-L7HNTBPV.js → describeProject-NOXO6HJS.js} +11 -11
  167. package/dist/{destroy-5HSMMDH7.js → destroy-ZYOIJW7D.js} +2 -2
  168. package/dist/{deterministicFonts-2ZPRAI3C.js → deterministicFonts-UDNPRDYM.js} +4 -4
  169. package/dist/{diff-KR7VKPYL.js → diff-NZ7IBYWS.js} +36 -36
  170. package/dist/{dist-3MFNUZSN.js → dist-CF7A6UPR.js} +3 -3
  171. package/dist/{dist-ZGYPFYOH.js → dist-I3WOJFIM.js} +4 -4
  172. package/dist/{dist-HK3AZNNL.js → dist-YSFMNDNF.js} +26 -23
  173. package/dist/{doctor-G7VGNSA5.js → doctor-OAEXYBD5.js} +17 -17
  174. package/dist/{energy-H7EEH6WO.js → energy-36Y2RVKN.js} +15 -15
  175. package/dist/{events-YD6N7OPQ.js → events-7MO6VYY5.js} +7 -7
  176. package/dist/{events-ASG27IXP.js → events-BN5A4QSC.js} +17 -17
  177. package/dist/{events-5ATZCZTK.js → events-OY5PAL44.js} +2 -2
  178. package/dist/{execute-OAS454OB.js → execute-6QR32QHM.js} +34 -34
  179. package/dist/{extract-645SENLA.js → extract-GS4GFBJ4.js} +15 -15
  180. package/dist/{face-WRT5XH4I.js → face-DXIURLMN.js} +16 -16
  181. package/dist/{feedback-3LKLR5MV.js → feedback-L5B5D2H4.js} +14 -14
  182. package/dist/{ffmpeg-PXKIZL2X.js → ffmpeg-RO3TC7DT.js} +10 -10
  183. package/dist/{figma-RIEVJJBW.js → figma-YSLP3NDJ.js} +3 -3
  184. package/dist/fontLocalizeCli.js +18 -17
  185. package/dist/{frames-OTB3J5W3.js → frames-NNGPW5Q5.js} +17 -17
  186. package/dist/{generate-IUKCZW2D.js → generate-IYY5CQKF.js} +26 -26
  187. package/dist/{get-6WVQ7TBV.js → get-GHTMJWAX.js} +7 -7
  188. package/dist/{gpuPolicy-HXSVAEU4.js → gpuPolicy-UGUQTJXT.js} +10 -10
  189. package/dist/{grade-compare-TCAYHDEF.js → grade-compare-HMQIS6CO.js} +41 -41
  190. package/dist/hangReport.js +2 -1
  191. package/dist/{heifImagePrep-GXIMK4HK.js → heifImagePrep-6CHEBOTB.js} +11 -11
  192. package/dist/{help-RGOL5EJD.js → help-M6V73NMA.js} +1 -1
  193. package/dist/{history-XKPRGJGS.js → history-JLNS7C6E.js} +15 -15
  194. package/dist/hyperframe.manifest.json +1 -1
  195. package/dist/hyperframe.runtime.iife.js +64 -64
  196. package/dist/hyperframes-player.global.js +1 -1
  197. package/dist/{info-EYBBC42V.js → info-VHVWJBZ5.js} +17 -17
  198. package/dist/{init-F2FWPSMA.js → init-RAWSPX3T.js} +33 -33
  199. package/dist/{ink-BWFERAAT.js → ink-R2VCYLF3.js} +15 -15
  200. package/dist/{inspect-74N7L3BW.js → inspect-ODGFUWRM.js} +41 -41
  201. package/dist/{installer-LOUR7G4R.js → installer-YAJDSTNZ.js} +8 -8
  202. package/dist/{keyframes-WB5PTKFE.js → keyframes-MWS46OMG.js} +11 -11
  203. package/dist/{lambda-JYCNXUKB.js → lambda-EPIPZ62Q.js} +17 -17
  204. package/dist/{layout-P52EVR24.js → layout-IVOS3PHW.js} +41 -41
  205. package/dist/{lint-SL55KAS2.js → lint-G3XW5PVR.js} +13 -13
  206. package/dist/{lintProject-46WU53VC.js → lintProject-L42FF7XI.js} +3 -3
  207. package/dist/{list-LN6CQH52.js → list-25OWFBNT.js} +8 -8
  208. package/dist/{localPage-L6OJU3UH.js → localPage-PAUE6E6K.js} +11 -11
  209. package/dist/{login-WTOAMDID.js → login-EHL5EH3E.js} +4 -4
  210. package/dist/{look-O6ESLJRP.js → look-H2AAYHQC.js} +15 -15
  211. package/dist/{manager-IAXYSRG5.js → manager-DLEEPJVW.js} +2 -1
  212. package/dist/{manager-CMEZWENF.js → manager-T3FIJKIL.js} +11 -11
  213. package/dist/{measure-NEIXU53P.js → measure-IAGLDGL2.js} +11 -11
  214. package/dist/{media-treatment-6CAQG7MU.js → media-treatment-F53Y4K2K.js} +17 -17
  215. package/dist/{media-use-IXJFMKU7.js → media-use-7XRQIXDO.js} +22 -7
  216. package/dist/{models-TZALWUEY.js → models-UA72SFBG.js} +16 -16
  217. package/dist/{motionShot-OQYK6G6M.js → motionShot-WRHPBYSX.js} +22 -22
  218. package/dist/{normalize-audio-43PJLOBY.js → normalize-audio-6UO7T2NP.js} +14 -14
  219. package/dist/{open-EOX6QY4M.js → open-DVABOI2D.js} +19 -19
  220. package/dist/{parakeetRunner-STHAXQAF.js → parakeetRunner-IHEW335J.js} +18 -18
  221. package/dist/{pipeline-RRWZHFBQ.js → pipeline-SGJTBYFI.js} +13 -13
  222. package/dist/{plan-JWUSMF4W.js → plan-IB2LZKFH.js} +26 -26
  223. package/dist/{play-TUKTST32.js → play-OSJU47PB.js} +31 -31
  224. package/dist/{preflight-L42JKT6F.js → preflight-4UVA2SF4.js} +12 -12
  225. package/dist/{present-Z7HRDXPV.js → present-6HRJ67G2.js} +25 -25
  226. package/dist/{preview-HGTIRAV3.js → preview-ILIRTOIL.js} +59 -35
  227. package/dist/{probe-RXK44FY7.js → probe-QJIEY5RM.js} +15 -15
  228. package/dist/{producer-KJ2RZDJ3.js → producer-LUARVB5B.js} +1 -1
  229. package/dist/{projectConfig-K36NTJXP.js → projectConfig-CS4PKLO5.js} +11 -11
  230. package/dist/{publication-OZWLT6K6.js → publication-DQMOW7B4.js} +6 -6
  231. package/dist/{publish-CRUTXNYM.js → publish-TSZA3TYC.js} +19 -19
  232. package/dist/{remove-background-R37HZPCG.js → remove-background-URZDLZJ4.js} +14 -14
  233. package/dist/{render-ZHCPCISN.js → render-3HONOYZE.js} +49 -49
  234. package/dist/{render-SU2XTMJL.js → render-OHACUI7J.js} +8 -8
  235. package/dist/{render-EZMKBT7V.js → render-RDFQDDZA.js} +37 -37
  236. package/dist/{render-batch-YIUOEAAL.js → render-batch-EUKAQFHN.js} +8 -8
  237. package/dist/renderSetupWorker.js +6 -5
  238. package/dist/{resolver-DLCKRKQR.js → resolver-BTUTJ26S.js} +8 -8
  239. package/dist/{reverse-4FAVXIER.js → reverse-LTPJ6QRV.js} +1 -1
  240. package/dist/{run-H4GVEJVS.js → run-SIBZZM3T.js} +4 -4
  241. package/dist/{screenshotCapture-CQF5FYVI.js → screenshotCapture-2VXR5FHK.js} +13 -13
  242. package/dist/{service-XDQOULGD.js → service-47AZQ6EN.js} +14 -14
  243. package/dist/{share-CUCQALE7.js → share-4JJK6QM6.js} +19 -19
  244. package/dist/{sherpa-WZNRQUVC.js → sherpa-WDGLCJMP.js} +17 -17
  245. package/dist/sherpaWorker.js +4 -2
  246. package/dist/skills/hyperframes/references/plugin-installation.md +5 -2
  247. package/dist/skills/hyperframes/scripts/bake-basemap.mjs +1 -0
  248. package/dist/skills/hyperframes/scripts/lib/windows-exe-search.mjs +11 -0
  249. package/dist/skills/hyperframes/scripts/lib/windows-exe-search.test.mjs +149 -0
  250. package/dist/skills/hyperframes/scripts/locate.mjs +1 -0
  251. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +21 -3
  252. package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +93 -7
  253. package/dist/skills/hyperframes-cli/references/doctor-browser.md +1 -1
  254. package/dist/skills/media-use/audio/scripts/carve.mjs +1 -0
  255. package/dist/skills/media-use/audio/scripts/extract-audio-data.py +3 -1
  256. package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +6 -6
  257. package/dist/skills/media-use/audio/scripts/lib/bgm.mjs +1 -0
  258. package/dist/skills/media-use/audio/scripts/lib/gemini-auth.mjs +1 -0
  259. package/dist/skills/media-use/audio/scripts/lib/python.mjs +1 -0
  260. package/dist/skills/media-use/audio/scripts/lib/recording.mjs +1 -0
  261. package/dist/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +12 -6
  262. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +26 -6
  263. package/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +37 -12
  264. package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +54 -18
  265. package/dist/skills/media-use/audio/scripts/trusted-program.test.mjs +106 -0
  266. package/dist/skills/media-use/audio/scripts/trusted_program.py +76 -0
  267. package/dist/skills/media-use/references/audio.md +2 -0
  268. package/dist/skills/media-use/references/operations.md +2 -1
  269. package/dist/skills/media-use/scripts/dither.mjs +1 -0
  270. package/dist/skills/media-use/scripts/eval.mjs +1 -0
  271. package/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +22 -31
  272. package/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +16 -11
  273. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +34 -78
  274. package/dist/skills/media-use/scripts/lib/windows-exe-search.mjs +11 -0
  275. package/dist/skills/media-use/scripts/resolve-plugin.test.mjs +43 -19
  276. package/dist/skills/media-use/scripts/transcribe.mjs +1 -0
  277. package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -17
  278. package/dist/skills/media-use/scripts/transcript-cut.mjs +1 -0
  279. package/dist/{skills-J52DBZAK.js → skills-32PFTMRC.js} +10 -10
  280. package/dist/{skillsUpdateCheck-26DJHBTC.js → skillsUpdateCheck-4YNSO2QT.js} +3 -3
  281. package/dist/{snapshot-ZIRQFDA7.js → snapshot-L26W46YP.js} +53 -53
  282. package/dist/{src-C3XYMTF4.js → src-KJ7FMIH7.js} +11 -9
  283. package/dist/{src-7BGBN6SS.js → src-SGZPUKDL.js} +15 -15
  284. package/dist/{start-QG2XNMYN.js → start-77AN6NW5.js} +24 -24
  285. package/dist/{staticProjectServer-TWMEFK3T.js → staticProjectServer-RDXGUNKX.js} +27 -27
  286. package/dist/{status-3UPA5WPI.js → status-BRVZZRTC.js} +18 -17
  287. package/dist/studio/assets/{codec-qz1-OXLj.js → codec-GKrIfefq.js} +1 -1
  288. package/dist/studio/assets/{hyperframes-player-2eG1zFX5.js → hyperframes-player-BUFkdSG-.js} +1 -1
  289. package/dist/studio/assets/{index-DDmhnfrS.js → index-BzrZjoXW.js} +159 -159
  290. package/dist/studio/assets/{index-DUveJ_YP.js → index-oGGylite.js} +1 -1
  291. package/dist/studio/assets/{pausedVideoDecoder-CoHTKUjM.js → pausedVideoDecoder-VUkpOCb9.js} +1 -1
  292. package/dist/studio/index.html +1 -1
  293. package/dist/{studio-api-Z42OO4JJ.js → studio-api-UZHSY6PR.js} +26 -23
  294. package/dist/{studioServer-SMN3RMVL.js → studioServer-UOVV7CDW.js} +126 -79
  295. package/dist/{sync-ONTI2WSI.js → sync-74O4W75V.js} +15 -15
  296. package/dist/{synthesize-FR5KPBRP.js → synthesize-7DD5JV36.js} +5 -4
  297. package/dist/{telemetry-RRXALB5D.js → telemetry-NB5MWICG.js} +7 -7
  298. package/dist/{templates-BHFOSD6F.js → templates-HOIYYCM2.js} +15 -15
  299. package/dist/{timeline-Z5IHY5TN.js → timeline-NUG347GZ.js} +26 -26
  300. package/dist/{tokens-MZVEPARM.js → tokens-TVAYON5K.js} +3 -3
  301. package/dist/{transcribe-M5N3YZZU.js → transcribe-3RN5NRX6.js} +14 -14
  302. package/dist/{transcribe-5IZS4BGW.js → transcribe-67A5YVQD.js} +31 -31
  303. package/dist/{tts-ZE776B4I.js → tts-SOSATBP4.js} +2 -2
  304. package/dist/{update-EVPWBIKY.js → update-QEVNP7XN.js} +12 -12
  305. package/dist/{updateCheck-2UUEF6TC.js → updateCheck-SZ6BPLHI.js} +2 -2
  306. package/dist/{upgrade-DK45FD4K.js → upgrade-NFDDBX2T.js} +5 -5
  307. package/dist/{urlDownloader-3MPHIDSA.js → urlDownloader-Q7225DS7.js} +9 -9
  308. package/dist/{validate-W27TQ367.js → validate-IMI6OBMO.js} +33 -33
  309. package/dist/{video-TI372QGV.js → video-K7UAJJLP.js} +12 -12
  310. package/dist/{voices-FZV4PGT6.js → voices-K2GLTRAS.js} +24 -24
  311. package/dist/warmCheck.js +52 -51
  312. package/dist/warmCheckClient.js +2 -1
  313. package/package.json +1 -1
  314. package/dist/chunk-64F653HO.js +0 -164
  315. package/dist/chunk-WXOOAAT4.js +0 -314
  316. package/dist/chunk-XDDBSGBD.js +0 -5049
@@ -6,42 +6,42 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  createShareService
9
- } from "./chunk-VQJLTYEK.js";
10
- import "./chunk-DDDSTRHU.js";
9
+ } from "./chunk-GT5REDGY.js";
10
+ import "./chunk-ADAXA5XD.js";
11
11
  import "./chunk-M3BJEZ7E.js";
12
12
  import "./chunk-BAWGEGKD.js";
13
- import "./chunk-MP36L7OJ.js";
13
+ import "./chunk-MG6GU4FF.js";
14
14
  import "./chunk-D3UCUI7G.js";
15
- import "./chunk-YSHUIQ3I.js";
15
+ import "./chunk-LO74I6MZ.js";
16
16
  import "./chunk-PXVQOMKL.js";
17
17
  import "./chunk-MCDNAIFF.js";
18
18
  import "./chunk-DMW5SSUN.js";
19
19
  import "./chunk-54HJ63Q2.js";
20
20
  import "./chunk-JCNPHRGX.js";
21
- import "./chunk-2TBW7UOF.js";
21
+ import "./chunk-AOZKUVTY.js";
22
22
  import "./chunk-Z5J67X44.js";
23
23
  import "./chunk-5S7W3TUO.js";
24
24
  import "./chunk-D3MUHMFG.js";
25
- import "./chunk-KIAY63AB.js";
26
- import "./chunk-IEEIPTDW.js";
25
+ import "./chunk-PIA7JBWF.js";
26
+ import "./chunk-X5BRDEOM.js";
27
27
  import "./chunk-3GXQPCJC.js";
28
- import "./chunk-EX7WPDFA.js";
28
+ import "./chunk-NABIUZRZ.js";
29
29
  import "./chunk-FXMKHHPO.js";
30
- import "./chunk-XDDBSGBD.js";
30
+ import "./chunk-42KTBKL4.js";
31
31
  import "./chunk-VC76R6W2.js";
32
- import "./chunk-HZTRKUKE.js";
32
+ import "./chunk-XWK2RSD5.js";
33
33
  import "./chunk-RQVDTPGD.js";
34
34
  import "./chunk-X6JUUQCM.js";
35
35
  import "./chunk-KGPLIH7B.js";
36
36
  import "./chunk-FOZBANEN.js";
37
37
  import "./chunk-K4MJX7SR.js";
38
38
  import "./chunk-WE42NVH7.js";
39
- import "./chunk-CNJLBAKM.js";
39
+ import "./chunk-LQV2PMKI.js";
40
40
  import "./chunk-K2Z6OXEI.js";
41
- import "./chunk-KRWPTZBY.js";
41
+ import "./chunk-IU5DC4HP.js";
42
42
  import "./chunk-FBN2M2HK.js";
43
43
  import "./chunk-6MKM2RVL.js";
44
- import "./chunk-N7C7U3ZR.js";
44
+ import "./chunk-M425BL2U.js";
45
45
  import "./chunk-FR7YBU3H.js";
46
46
  import "./chunk-DPVXBVLL.js";
47
47
  import "./chunk-GWTIFRF5.js";
@@ -57,7 +57,7 @@ import "./chunk-GR2E54E6.js";
57
57
  import "./chunk-66W5IWLO.js";
58
58
  import "./chunk-CPHQTXP5.js";
59
59
  import "./chunk-QBXDU24O.js";
60
- import "./chunk-45ZQI734.js";
60
+ import "./chunk-X47GMPT2.js";
61
61
  import "./chunk-E63BDV4Z.js";
62
62
  import "./chunk-LW33P24U.js";
63
63
  import "./chunk-XT6MXC7A.js";
@@ -6,25 +6,25 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  createShareService
9
- } from "./chunk-VQJLTYEK.js";
9
+ } from "./chunk-GT5REDGY.js";
10
10
  import {
11
11
  shareError
12
- } from "./chunk-Y5DOT5NQ.js";
13
- import "./chunk-DDDSTRHU.js";
12
+ } from "./chunk-PHDEKHEN.js";
13
+ import "./chunk-ADAXA5XD.js";
14
14
  import {
15
15
  q,
16
16
  select
17
17
  } from "./chunk-D2LIT7UR.js";
18
18
  import "./chunk-M3BJEZ7E.js";
19
19
  import "./chunk-BAWGEGKD.js";
20
- import "./chunk-MP36L7OJ.js";
20
+ import "./chunk-MG6GU4FF.js";
21
21
  import {
22
22
  resolveProjectOrThrow
23
- } from "./chunk-YDG3OXH3.js";
24
- import "./chunk-LIWK3MFR.js";
23
+ } from "./chunk-NQE4NKVE.js";
24
+ import "./chunk-ZLTB7ZCQ.js";
25
25
  import "./chunk-D3UCUI7G.js";
26
- import "./chunk-ADYMQM7T.js";
27
- import "./chunk-YSHUIQ3I.js";
26
+ import "./chunk-R43U3RJ3.js";
27
+ import "./chunk-LO74I6MZ.js";
28
28
  import "./chunk-PXVQOMKL.js";
29
29
  import "./chunk-MCDNAIFF.js";
30
30
  import "./chunk-DMW5SSUN.js";
@@ -34,30 +34,30 @@ import {
34
34
  import "./chunk-S3S4TGEH.js";
35
35
  import "./chunk-54HJ63Q2.js";
36
36
  import "./chunk-JCNPHRGX.js";
37
- import "./chunk-2TBW7UOF.js";
37
+ import "./chunk-AOZKUVTY.js";
38
38
  import "./chunk-Z5J67X44.js";
39
39
  import "./chunk-5S7W3TUO.js";
40
40
  import "./chunk-D3MUHMFG.js";
41
- import "./chunk-KIAY63AB.js";
42
- import "./chunk-IEEIPTDW.js";
41
+ import "./chunk-PIA7JBWF.js";
42
+ import "./chunk-X5BRDEOM.js";
43
43
  import "./chunk-3GXQPCJC.js";
44
- import "./chunk-EX7WPDFA.js";
44
+ import "./chunk-NABIUZRZ.js";
45
45
  import "./chunk-FXMKHHPO.js";
46
- import "./chunk-XDDBSGBD.js";
46
+ import "./chunk-42KTBKL4.js";
47
47
  import "./chunk-VC76R6W2.js";
48
- import "./chunk-HZTRKUKE.js";
48
+ import "./chunk-XWK2RSD5.js";
49
49
  import "./chunk-RQVDTPGD.js";
50
50
  import "./chunk-X6JUUQCM.js";
51
51
  import "./chunk-KGPLIH7B.js";
52
52
  import "./chunk-FOZBANEN.js";
53
53
  import "./chunk-K4MJX7SR.js";
54
54
  import "./chunk-WE42NVH7.js";
55
- import "./chunk-CNJLBAKM.js";
55
+ import "./chunk-LQV2PMKI.js";
56
56
  import "./chunk-K2Z6OXEI.js";
57
- import "./chunk-KRWPTZBY.js";
57
+ import "./chunk-IU5DC4HP.js";
58
58
  import "./chunk-FBN2M2HK.js";
59
59
  import "./chunk-6MKM2RVL.js";
60
- import "./chunk-N7C7U3ZR.js";
60
+ import "./chunk-M425BL2U.js";
61
61
  import "./chunk-FR7YBU3H.js";
62
62
  import "./chunk-DPVXBVLL.js";
63
63
  import "./chunk-GWTIFRF5.js";
@@ -80,7 +80,7 @@ import {
80
80
  isUnattended
81
81
  } from "./chunk-CPHQTXP5.js";
82
82
  import "./chunk-QBXDU24O.js";
83
- import "./chunk-45ZQI734.js";
83
+ import "./chunk-X47GMPT2.js";
84
84
  import "./chunk-E63BDV4Z.js";
85
85
  import "./chunk-LW33P24U.js";
86
86
  import "./chunk-XT6MXC7A.js";
@@ -263,7 +263,7 @@ function presentFailure(result, json) {
263
263
  }
264
264
  function sourceNotice(reason) {
265
265
  if (reason === "source_plan_required")
266
- return "Your video is shared without editable project files. Upgrade to Pro to include source files: https://hyperframes.studio/pricing";
266
+ return "Your video is shared without editable project files. Upgrade to Pro to include source files: https://hyperframes.studio/pricing?from=cli&entry=cli_share";
267
267
  if (reason === "requested")
268
268
  return "Sharing the video without editable project files. Use --include-source to upload project files.";
269
269
  return "Sharing the video without editable project files; source sharing is unavailable in this workspace.";
@@ -17,49 +17,49 @@ import {
17
17
  sherpaRuntimeLoadError,
18
18
  sherpaUnsupportedReason,
19
19
  transcribeWithSherpa
20
- } from "./chunk-VKZSAAXZ.js";
21
- import "./chunk-PXDRW3QN.js";
20
+ } from "./chunk-YUG4GVRH.js";
21
+ import "./chunk-J466WOMZ.js";
22
22
  import "./chunk-NL4RCLQF.js";
23
23
  import "./chunk-3S27CPV7.js";
24
24
  import "./chunk-6BEFEWFB.js";
25
- import "./chunk-4WZU4FYS.js";
26
- import "./chunk-YAS347ZS.js";
27
- import "./chunk-XVVPEWNX.js";
28
- import "./chunk-2I4DQZLQ.js";
25
+ import "./chunk-QZFKLORI.js";
26
+ import "./chunk-FLVHLNQN.js";
27
+ import "./chunk-GPERPLAQ.js";
28
+ import "./chunk-2QM6JA3F.js";
29
29
  import "./chunk-RZ6CXJ56.js";
30
30
  import "./chunk-R4EWRIDL.js";
31
31
  import "./chunk-JJ47LVJ7.js";
32
- import "./chunk-MP36L7OJ.js";
32
+ import "./chunk-MG6GU4FF.js";
33
33
  import "./chunk-CDNVZEGQ.js";
34
- import "./chunk-JZIEZCQM.js";
34
+ import "./chunk-7PBJR7WI.js";
35
35
  import "./chunk-UOFAE5RF.js";
36
36
  import "./chunk-IR35BCLK.js";
37
37
  import "./chunk-HU2SPFNG.js";
38
38
  import "./chunk-EHZESMRB.js";
39
- import "./chunk-2TBW7UOF.js";
39
+ import "./chunk-AOZKUVTY.js";
40
40
  import "./chunk-Z5J67X44.js";
41
41
  import "./chunk-5S7W3TUO.js";
42
42
  import "./chunk-D3MUHMFG.js";
43
- import "./chunk-KIAY63AB.js";
44
- import "./chunk-IEEIPTDW.js";
43
+ import "./chunk-PIA7JBWF.js";
44
+ import "./chunk-X5BRDEOM.js";
45
45
  import "./chunk-3GXQPCJC.js";
46
- import "./chunk-EX7WPDFA.js";
46
+ import "./chunk-NABIUZRZ.js";
47
47
  import "./chunk-FXMKHHPO.js";
48
- import "./chunk-XDDBSGBD.js";
48
+ import "./chunk-42KTBKL4.js";
49
49
  import "./chunk-VC76R6W2.js";
50
- import "./chunk-HZTRKUKE.js";
50
+ import "./chunk-XWK2RSD5.js";
51
51
  import "./chunk-RQVDTPGD.js";
52
52
  import "./chunk-PV4XID2A.js";
53
53
  import "./chunk-X6JUUQCM.js";
54
54
  import "./chunk-KGPLIH7B.js";
55
55
  import "./chunk-K4MJX7SR.js";
56
56
  import "./chunk-WE42NVH7.js";
57
- import "./chunk-CNJLBAKM.js";
57
+ import "./chunk-LQV2PMKI.js";
58
58
  import "./chunk-K2Z6OXEI.js";
59
- import "./chunk-KRWPTZBY.js";
59
+ import "./chunk-IU5DC4HP.js";
60
60
  import "./chunk-FBN2M2HK.js";
61
61
  import "./chunk-6MKM2RVL.js";
62
- import "./chunk-N7C7U3ZR.js";
62
+ import "./chunk-M425BL2U.js";
63
63
  import "./chunk-FR7YBU3H.js";
64
64
  import "./chunk-DPVXBVLL.js";
65
65
  import "./chunk-GWTIFRF5.js";
@@ -11,14 +11,16 @@ import {
11
11
  droppedSpeechGaps,
12
12
  silenceCuts,
13
13
  spliceGap
14
- } from "./chunk-JZIEZCQM.js";
14
+ } from "./chunk-7PBJR7WI.js";
15
15
  import {
16
16
  readWav
17
17
  } from "./chunk-UOFAE5RF.js";
18
18
  import "./chunk-IR35BCLK.js";
19
19
  import "./chunk-HU2SPFNG.js";
20
20
  import "./chunk-KGPLIH7B.js";
21
- import "./chunk-UC4X6I35.js";
21
+ import "./chunk-IU5DC4HP.js";
22
+ import "./chunk-3F2DTPBD.js";
23
+ import "./chunk-YHJOTCTV.js";
22
24
  import "./chunk-M2WBOQ2Q.js";
23
25
 
24
26
  // src/whisper/sherpaWorker.ts
@@ -23,13 +23,16 @@ For a plugin installation, these rules apply in every skill and reference:
23
23
  Run in the user's project directory, never in the plugin directory. The launcher
24
24
  selects the manifest's CLI version and disables automatic standalone skill
25
25
  installation, including during `init`. The first call may download that exact
26
- CLI version through npm. A download failure is an error, not permission to use
26
+ CLI version through npm. npm runs from the home folder, so the project's
27
+ `node_modules`, `package.json` and `.npmrc` cannot choose the CLI; the CLI then
28
+ works in the project. A download failure is an error, not permission to use
27
29
  latest. Existing project dependency files and lockfiles must not be overwritten
28
30
  to match the plugin; surface a runtime incompatibility before changing them.
29
31
 
30
32
  - For bundled Node helpers, use the same
31
33
  launcher with `--script <absolute-script-path> <args...>`. This passes the
32
- release version to their dependency loader. External providers, registry
34
+ release version to their dependency loader, and helpers that call the CLI run
35
+ it through the launcher. External providers, registry
33
36
  downloads, and existing project dependencies have their own versions; a plugin
34
37
  version alone does not freeze those inputs.
35
38
  - Treat the plugin directory as read-only. Put outputs and temporary work in the
@@ -20,6 +20,7 @@
20
20
  // PITCH=40 DUR=10 HOLD=0.8 node bake-basemap.mjs
21
21
  // It encodes frames-<NAME>/f%04d.png → <NAME>.mp4 (all-intra: -g 1) and writes <NAME>-coords.json
22
22
  // for the HF composition. One bake at a time: several headless Chromes on a small machine stall.
23
+ import "./lib/windows-exe-search.mjs";
23
24
  import { join } from "node:path";
24
25
  import { mkdirSync, writeFileSync, readdirSync, existsSync } from "node:fs";
25
26
  import { homedir } from "node:os";
@@ -0,0 +1,11 @@
1
+ // A program started by name can come from the working directory: Windows looks there before
2
+ // PATH unless this variable is set, and a relative or empty PATH entry points there everywhere.
3
+ // Scripts run inside project folders, so turn both off for this process and its children.
4
+ // A value the person set is kept.
5
+ if (process.platform === "win32") {
6
+ process.env.NoDefaultCurrentDirectoryInExePath ??= "1";
7
+ } else if (process.env.PATH !== undefined) {
8
+ const absolute = process.env.PATH.split(":").filter((dir) => dir.startsWith("/"));
9
+ if (absolute.length > 0) process.env.PATH = absolute.join(":");
10
+ else delete process.env.PATH;
11
+ }
@@ -0,0 +1,149 @@
1
+ import assert from "node:assert/strict";
2
+ import { spawnSync } from "node:child_process";
3
+ import { randomUUID } from "node:crypto";
4
+ import {
5
+ chmodSync,
6
+ existsSync,
7
+ mkdirSync,
8
+ mkdtempSync,
9
+ readdirSync,
10
+ readFileSync,
11
+ rmSync,
12
+ writeFileSync,
13
+ } from "node:fs";
14
+ import { tmpdir } from "node:os";
15
+ import { dirname, join, relative, resolve } from "node:path";
16
+ import { fileURLToPath, pathToFileURL } from "node:url";
17
+ import { afterEach, test } from "node:test";
18
+
19
+ const VAR = "NoDefaultCurrentDirectoryInExePath";
20
+ const here = dirname(fileURLToPath(import.meta.url));
21
+ const skillsRoot = resolve(here, "../../..");
22
+ const guards = ["hyperframes/scripts/lib", "media-use/scripts/lib", "figma/scripts/lib"].map(
23
+ (dir) => join(skillsRoot, dir, "windows-exe-search.mjs"),
24
+ );
25
+ const realPlatform = process.platform;
26
+ const realValue = process.env[VAR];
27
+ const realPath = process.env.PATH;
28
+
29
+ afterEach(() => {
30
+ Object.defineProperty(process, "platform", { value: realPlatform, configurable: true });
31
+ if (realValue === undefined) delete process.env[VAR];
32
+ else process.env[VAR] = realValue;
33
+ if (realPath === undefined) delete process.env.PATH;
34
+ else process.env.PATH = realPath;
35
+ });
36
+
37
+ async function loadAs(platform, value, path = realPath) {
38
+ Object.defineProperty(process, "platform", { value: platform, configurable: true });
39
+ if (value === undefined) delete process.env[VAR];
40
+ else process.env[VAR] = value;
41
+ if (path === undefined) delete process.env.PATH;
42
+ else process.env.PATH = path;
43
+ await import(`${pathToFileURL(guards[0]).href}?load=${randomUUID()}`);
44
+ return process.env[VAR];
45
+ }
46
+
47
+ test("every skill ships the same guard", () => {
48
+ const [first, ...rest] = guards.map((file) => readFileSync(file, "utf8"));
49
+ for (const copy of rest) assert.equal(copy, first);
50
+ });
51
+
52
+ test("turns off the working-directory program lookup on Windows", async () => {
53
+ assert.equal(await loadAs("win32", undefined), "1");
54
+ });
55
+
56
+ test("keeps a value the person set", async () => {
57
+ assert.equal(await loadAs("win32", "yes"), "yes");
58
+ });
59
+
60
+ test("leaves the Windows variable unset on other platforms", async () => {
61
+ assert.equal(await loadAs("linux", undefined), undefined);
62
+ });
63
+
64
+ test("drops relative and empty PATH entries elsewhere and keeps absolute ones in order", async () => {
65
+ await loadAs(
66
+ "linux",
67
+ undefined,
68
+ ["", "node_modules/.bin", "/opt/b", ".", "~/bin", "/usr/bin", ""].join(":"),
69
+ );
70
+ assert.equal(process.env.PATH, "/opt/b:/usr/bin");
71
+ });
72
+
73
+ test("leaves PATH unset rather than empty when no entry is absolute", async () => {
74
+ await loadAs("darwin", undefined, "node_modules/.bin::.");
75
+ assert.equal(process.env.PATH, undefined);
76
+ });
77
+
78
+ test("keeps Windows PATH as it is", async () => {
79
+ await loadAs("win32", undefined, "bin;C:\\tools");
80
+ assert.equal(process.env.PATH, "bin;C:\\tools");
81
+ });
82
+
83
+ test(
84
+ "a relative PATH entry cannot run a program planted in the project",
85
+ { skip: process.platform === "win32" },
86
+ (t) => {
87
+ const project = mkdtempSync(join(tmpdir(), "hf-exe-search-"));
88
+ t.after(() => rmSync(project, { recursive: true, force: true }));
89
+ const marker = join(project, "planted-ran");
90
+ mkdirSync(join(project, "node_modules", ".bin"), { recursive: true });
91
+ const planted = join(project, "node_modules", ".bin", "ffprobe");
92
+ writeFileSync(planted, `#!/bin/sh\ntouch "${marker}"\n`);
93
+ chmodSync(planted, 0o755);
94
+ const script = 'require("node:child_process").spawnSync("ffprobe", ["-version"]);';
95
+ const run = (guard) =>
96
+ spawnSync(
97
+ process.execPath,
98
+ [...(guard ? ["--import", pathToFileURL(guards[0]).href] : []), "-e", script],
99
+ { cwd: project, env: { ...process.env, PATH: `node_modules/.bin:${process.env.PATH}` } },
100
+ );
101
+
102
+ run(false);
103
+ assert.ok(existsSync(marker), "the fixture must reach the planted program without the guard");
104
+ rmSync(marker);
105
+ run(true);
106
+ assert.equal(existsSync(marker), false);
107
+ },
108
+ );
109
+
110
+ function readdirTree(dir, pattern) {
111
+ return readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
112
+ const path = join(dir, entry.name);
113
+ if (entry.isDirectory()) return entry.name === "node_modules" ? [] : readdirTree(path, pattern);
114
+ return pattern.test(entry.name) ? [path] : [];
115
+ });
116
+ }
117
+
118
+ function scripts(dir) {
119
+ return readdirTree(dir, /\.mjs$/).filter((file) => !/\.test\.mjs$/.test(file));
120
+ }
121
+
122
+ test("every skill Python script that starts programs resolves them through trusted_program", () => {
123
+ const starters = readdirTree(skillsRoot, /\.py$/).filter((file) =>
124
+ /^(import subprocess|from subprocess import)/m.test(readFileSync(file, "utf8")),
125
+ );
126
+ assert.ok(starters.length > 0, "must inspect the Python scripts that start programs");
127
+ const missing = starters
128
+ .filter((file) => {
129
+ const source = readFileSync(file, "utf8");
130
+ const resolver = join(dirname(file), "trusted_program.py");
131
+ return !/^from trusted_program import find_program$/m.test(source) || !existsSync(resolver);
132
+ })
133
+ .map((file) => relative(skillsRoot, file));
134
+ assert.deepEqual(missing, []);
135
+ });
136
+
137
+ test("every skill script that starts programs loads the guard before its other imports", () => {
138
+ const starters = scripts(skillsRoot).filter((file) =>
139
+ /from "(node:)?child_process"/.test(readFileSync(file, "utf8")),
140
+ );
141
+ assert.ok(starters.length > 10, "must inspect the scripts that start programs");
142
+ const missing = starters
143
+ .filter((file) => {
144
+ const firstImport = readFileSync(file, "utf8").match(/^import [^\n]*$/m)?.[0] ?? "";
145
+ return !/^import "[./]+(scripts\/)?(lib\/)?windows-exe-search\.mjs";$/.test(firstImport);
146
+ })
147
+ .map((file) => relative(skillsRoot, file));
148
+ assert.deepEqual(missing, []);
149
+ });
@@ -20,6 +20,7 @@
20
20
  * → VERIFY: read check.png — is the red box on the target? If off,
21
21
  * redo step 2/3 with corrected strips. Never skip this.
22
22
  */
23
+ import "./lib/windows-exe-search.mjs";
23
24
  import { execFileSync } from "node:child_process";
24
25
  import { existsSync, mkdirSync, copyFileSync } from "node:fs";
25
26
 
@@ -1,7 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  // Run from the user's project; locate the release from this installed file.
3
+ import "./lib/windows-exe-search.mjs";
3
4
  import { spawnSync } from "node:child_process";
4
5
  import { existsSync, readFileSync } from "node:fs";
6
+ import { homedir } from "node:os";
5
7
  import { join, win32 } from "node:path";
6
8
  import { fileURLToPath } from "node:url";
7
9
  import { isMainModule } from "./lib/main-module.mjs";
@@ -33,6 +35,14 @@ export function pluginVersion(pluginRoot = root) {
33
35
  );
34
36
  }
35
37
 
38
+ // npm takes the package, bin links and .npmrc from the folder it starts in, so npx starts
39
+ // in the home folder and the CLI moves into the project before it runs a command. A shared
40
+ // folder such as the temp folder is no substitute, so there is no fallback.
41
+ export function npmFolder(home = homedir(), pathExists = existsSync) {
42
+ if (home && pathExists(home)) return home;
43
+ throw new Error("Cannot find your home folder. Set HOME (USERPROFILE on Windows) and retry.");
44
+ }
45
+
36
46
  export function invocation(
37
47
  args,
38
48
  {
@@ -41,6 +51,9 @@ export function invocation(
41
51
  platform = process.platform,
42
52
  node = process.execPath,
43
53
  pathExists = existsSync,
54
+ cwd = process.cwd(),
55
+ npmCwd,
56
+ launcher = fileURLToPath(import.meta.url),
44
57
  } = {},
45
58
  ) {
46
59
  if (args[0] === "skills")
@@ -56,10 +69,14 @@ export function invocation(
56
69
  };
57
70
  if (args[0] === "--script") {
58
71
  if (!args[1]) throw new Error("--script requires a Node script path.");
59
- return { command: node, args: args.slice(1), env: childEnv };
72
+ // Helpers that call the CLI run it through this launcher, never a `hyperframes` from the project.
73
+ const env = { ...childEnv, HYPERFRAMES_CLI_ENTRY: launcher };
74
+ return { command: node, args: args.slice(1), env, cwd };
60
75
  }
61
76
  const cliArgs = ["--yes", `hyperframes@${version}`, ...args];
62
- if (platform !== "win32") return { command: "npx", args: cliArgs, env: childEnv };
77
+ const cliEnv = { ...childEnv, HYPERFRAMES_PLUGIN_CWD: cwd };
78
+ const npxCwd = npmCwd ?? npmFolder();
79
+ if (platform !== "win32") return { command: "npx", args: cliArgs, env: cliEnv, cwd: npxCwd };
63
80
  const candidates = [
64
81
  env.npm_execpath && win32.join(win32.dirname(env.npm_execpath), "npx-cli.js"),
65
82
  win32.join(win32.dirname(node), "node_modules", "npm", "bin", "npx-cli.js"),
@@ -69,13 +86,14 @@ export function invocation(
69
86
  throw new Error(
70
87
  "Cannot find npx-cli.js. Install Node.js with npm or run from an npm environment.",
71
88
  );
72
- return { command: node, args: [npx, ...cliArgs], env: childEnv };
89
+ return { command: node, args: [npx, ...cliArgs], env: cliEnv, cwd: npxCwd };
73
90
  }
74
91
 
75
92
  if (isMainModule(import.meta.url)) {
76
93
  try {
77
94
  const command = invocation(process.argv.slice(2));
78
95
  const result = spawnSync(command.command, command.args, {
96
+ cwd: command.cwd,
79
97
  env: command.env,
80
98
  stdio: "inherit",
81
99
  windowsHide: true,
@@ -9,10 +9,11 @@ import {
9
9
  rmSync,
10
10
  writeFileSync,
11
11
  } from "node:fs";
12
- import { join } from "node:path";
12
+ import { delimiter, join } from "node:path";
13
13
  import { tmpdir } from "node:os";
14
14
  import { test } from "node:test";
15
- import { invocation, pluginVersion } from "./plugin-cli.mjs";
15
+ import { pathToFileURL } from "node:url";
16
+ import { invocation, npmFolder, pluginVersion } from "./plugin-cli.mjs";
16
17
 
17
18
  function fixture(t, manifest = "plugin.json", version = "1.2.3") {
18
19
  const root = mkdtempSync(join(tmpdir(), "hf-plugin-"));
@@ -22,10 +23,12 @@ function fixture(t, manifest = "plugin.json", version = "1.2.3") {
22
23
  writeFileSync(join(root, manifest), JSON.stringify({ name: "hyperframes", version }));
23
24
  const launcher = join(root, "skills/hyperframes/scripts/plugin-cli.mjs");
24
25
  copyFileSync(new URL("./plugin-cli.mjs", import.meta.url), launcher);
25
- copyFileSync(
26
- new URL("./lib/main-module.mjs", import.meta.url),
27
- join(root, "skills/hyperframes/scripts/lib/main-module.mjs"),
28
- );
26
+ for (const lib of ["main-module.mjs", "windows-exe-search.mjs"]) {
27
+ copyFileSync(
28
+ new URL(`./lib/${lib}`, import.meta.url),
29
+ join(root, "skills/hyperframes/scripts/lib", lib),
30
+ );
31
+ }
29
32
  return { root, launcher };
30
33
  }
31
34
 
@@ -54,8 +57,11 @@ test("pins CLI, suppresses standalone refresh, preserves unrelated environment",
54
57
  version: "1.2.3",
55
58
  platform: "darwin",
56
59
  env: { PATH: "/bin", HYPERFRAMES_SKIP_SKILLS: "0" },
60
+ cwd: "/work/project",
61
+ npmCwd: "/home/person",
57
62
  });
58
63
  assert.equal(result.command, "npx");
64
+ assert.equal(result.cwd, "/home/person");
59
65
  assert.deepEqual(result.args, [
60
66
  "--yes",
61
67
  "hyperframes@1.2.3",
@@ -69,6 +75,7 @@ test("pins CLI, suppresses standalone refresh, preserves unrelated environment",
69
75
  HYPERFRAMES_SKILL_PKG_VERSION: "1.2.3",
70
76
  HYPERFRAMES_PLUGIN_VERSION: "1.2.3",
71
77
  HYPERFRAMES_NO_UPDATE_CHECK: "1",
78
+ HYPERFRAMES_PLUGIN_CWD: "/work/project",
72
79
  });
73
80
  assert.throws(() => invocation(["skills", "update"], { version: "1.2.3" }), /plugin manager/);
74
81
  });
@@ -80,8 +87,10 @@ test("Windows launches npx through Node without shell argument interpretation",
80
87
  node: String.raw`C:\Program Files\nodejs\node.exe`,
81
88
  env: { npm_execpath: String.raw`C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js` },
82
89
  pathExists: (p) => p === String.raw`C:\Program Files\nodejs\node_modules\npm\bin\npx-cli.js`,
90
+ npmCwd: String.raw`C:\Users\person`,
83
91
  });
84
92
  assert.equal(result.command, String.raw`C:\Program Files\nodejs\node.exe`);
93
+ assert.equal(result.cwd, String.raw`C:\Users\person`);
85
94
  assert.deepEqual(result.args, [
86
95
  String.raw`C:\Program Files\nodejs\node_modules\npm\bin\npx-cli.js`,
87
96
  "--yes",
@@ -102,7 +111,7 @@ test("installed helper keeps cwd, arguments, release environment and exit code",
102
111
  const helper = join(root, "helper.mjs");
103
112
  writeFileSync(
104
113
  helper,
105
- "console.log(JSON.stringify({ cwd: process.cwd(), args: process.argv.slice(2), skip: process.env.HYPERFRAMES_SKIP_SKILLS, version: process.env.HYPERFRAMES_SKILL_PKG_VERSION })); process.exit(7);",
114
+ "console.log(JSON.stringify({ cwd: process.cwd(), args: process.argv.slice(2), skip: process.env.HYPERFRAMES_SKIP_SKILLS, version: process.env.HYPERFRAMES_SKILL_PKG_VERSION, cli: process.env.HYPERFRAMES_CLI_ENTRY })); process.exit(7);",
106
115
  );
107
116
  const before = readFileSync(join(root, "plugin.json"), "utf8");
108
117
  const result = spawnSync(
@@ -116,6 +125,83 @@ test("installed helper keeps cwd, arguments, release environment and exit code",
116
125
  args: ["literal $value & spaces"],
117
126
  skip: "1",
118
127
  version: "1.2.3",
128
+ cli: realpathSync(launcher),
119
129
  });
120
130
  assert.equal(readFileSync(join(root, "plugin.json"), "utf8"), before);
121
131
  });
132
+
133
+ test("on Windows, a helper and the programs it starts skip the working-directory lookup", (t) => {
134
+ const { root, launcher } = fixture(t);
135
+ const helper = join(root, "helper.mjs");
136
+ writeFileSync(
137
+ helper,
138
+ "console.log(JSON.stringify(process.env.NoDefaultCurrentDirectoryInExePath ?? null));",
139
+ );
140
+ const asWindows = join(root, "as-windows.mjs");
141
+ writeFileSync(asWindows, 'Object.defineProperty(process, "platform", { value: "win32" });');
142
+ const run = (env) =>
143
+ spawnSync(
144
+ process.execPath,
145
+ ["--import", pathToFileURL(asWindows).href, launcher, "--script", helper],
146
+ { cwd: root, encoding: "utf8", env: { ...env, NODE_OPTIONS: "" } },
147
+ );
148
+ const stdoutOf = (result) => {
149
+ assert.equal(result.status, 0, result.stderr);
150
+ return JSON.parse(result.stdout);
151
+ };
152
+ const { NoDefaultCurrentDirectoryInExePath: _, ...env } = process.env;
153
+
154
+ assert.equal(stdoutOf(run(env)), "1");
155
+ assert.equal(stdoutOf(run({ ...env, NoDefaultCurrentDirectoryInExePath: "yes" })), "yes");
156
+ });
157
+
158
+ test(
159
+ "npx starts outside the project, so its packages, bin links and .npmrc cannot pick the CLI",
160
+ { skip: process.platform === "win32" },
161
+ (t) => {
162
+ const { root, launcher } = fixture(t);
163
+ const home = join(root, "home");
164
+ const bin = join(root, "bin");
165
+ const project = join(root, "user project");
166
+ mkdirSync(home);
167
+ mkdirSync(bin);
168
+ mkdirSync(join(project, "node_modules/.bin"), { recursive: true });
169
+ writeFileSync(
170
+ join(project, ".npmrc"),
171
+ "registry=http://127.0.0.1:9/\nscript-shell=/bin/false\n",
172
+ );
173
+ writeFileSync(join(project, "package.json"), '{"name":"hyperframes","bin":"x.js"}');
174
+ writeFileSync(join(project, "node_modules/.bin/hyperframes"), "#!/bin/sh\n", { mode: 0o755 });
175
+ writeFileSync(
176
+ join(bin, "npx"),
177
+ `#!${process.execPath}\nconsole.log(JSON.stringify({cwd:process.cwd(),args:process.argv.slice(2),project:process.env.HYPERFRAMES_PLUGIN_CWD}));`,
178
+ { mode: 0o755 },
179
+ );
180
+ const result = spawnSync(process.execPath, [launcher, "--version"], {
181
+ cwd: project,
182
+ encoding: "utf8",
183
+ env: { ...process.env, HOME: home, PATH: `${bin}${delimiter}${process.env.PATH}` },
184
+ });
185
+ assert.equal(result.status, 0, result.stderr);
186
+ assert.deepEqual(JSON.parse(result.stdout), {
187
+ cwd: realpathSync(home),
188
+ args: ["--yes", "hyperframes@1.2.3", "--version"],
189
+ project: realpathSync(project),
190
+ });
191
+ },
192
+ );
193
+
194
+ test("starts npx in the home folder and never falls back to a shared folder", () => {
195
+ assert.equal(
196
+ npmFolder("/home/person", () => true),
197
+ "/home/person",
198
+ );
199
+ assert.throws(() => npmFolder("", () => true), /Cannot find your home folder/);
200
+ assert.throws(() => npmFolder("/home/gone", () => false), /Cannot find your home folder/);
201
+ // Helper scripts never start npx, so they run without a home folder.
202
+ const script = invocation(["--script", "helper.mjs"], {
203
+ version: "1.2.3",
204
+ cwd: "/project",
205
+ });
206
+ assert.equal(script.cwd, "/project");
207
+ });