hyperframes 0.9.64 → 0.9.66
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.
- package/dist/{add-VFWLLECU.js → add-Q4W2PAZ6.js} +22 -21
- package/dist/{agentPromptGenerator-FEZHETMZ.js → agentPromptGenerator-BZ77OPI4.js} +14 -13
- package/dist/{animatedGifPrep-JZPLKKB6.js → animatedGifPrep-3UBRNEEA.js} +15 -14
- package/dist/api.js +56 -53
- package/dist/{appHistory-AMDQO54F.js → appHistory-EWII7S5X.js} +4 -4
- package/dist/{asset-W6CMIIDB.js → asset-ZRTGYYEN.js} +10 -8
- package/dist/{assetCataloger-POC644N7.js → assetCataloger-GTSOUOBQ.js} +15 -14
- package/dist/{audio-QLPRSLD4.js → audio-ZUW3RHEO.js} +30 -28
- package/dist/{auth-UD5JKJ3M.js → auth-TE5FMKUT.js} +4 -4
- package/dist/{autoUpdate-WNTJWEIH.js → autoUpdate-6JGNDMLP.js} +24 -10
- package/dist/{avatars-BUQDDQZ2.js → avatars-BJEF4TZR.js} +25 -23
- package/dist/{backgroundChecks-AYK6ADD4.js → backgroundChecks-EN5XLRLY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-FZPZFGKB.js → batchRender-EEMYIEYR.js} +13 -10
- package/dist/{beats-EA7NEYGM.js → beats-IPGSP5BV.js} +14 -13
- package/dist/{benchmark-WGYT2WAG.js → benchmark-GZOATIPM.js} +25 -22
- package/dist/{billing-A2WKV5BH.js → billing-3LF2YYP7.js} +22 -20
- package/dist/{browser-DH3KXV4V.js → browser-2IH45NN6.js} +14 -13
- package/dist/{bundleWithLocalizedFonts-C5IIR6CQ.js → bundleWithLocalizedFonts-QV6WDOXF.js} +1 -1
- package/dist/{capture-Y7HEXFSY.js → capture-4SIGWC4Q.js} +10 -9
- package/dist/{capture-SPZCSPCC.js → capture-K75SADNY.js} +27 -26
- package/dist/{captureCompositionFrame-HBDM6FHB.js → captureCompositionFrame-XVEPPU4X.js} +22 -21
- package/dist/{captureFile-FNCMGYYJ.js → captureFile-GYZI5Y56.js} +3 -3
- package/dist/{catalog-GUACPRZO.js → catalog-6N22YQEE.js} +22 -21
- package/dist/{catch-up-7AC2W75E.js → catch-up-67LVADSA.js} +14 -13
- package/dist/{check-S7X45EVG.js → check-NYD3WGR2.js} +57 -53
- package/dist/{checkAudio-RGMZTJIM.js → checkAudio-APZTSEHX.js} +17 -16
- package/dist/{checkBrowser-4SDR745B.js → checkBrowser-2UA6O65I.js} +49 -45
- package/dist/{chunk-DWP5EIUS.js → chunk-244FN6TG.js} +2 -1
- package/dist/{chunk-3JVTHNDH.js → chunk-2FEZFXKE.js} +1 -1
- package/dist/{chunk-J5PZTR45.js → chunk-2OSPWUGX.js} +99 -33
- package/dist/{chunk-TY7WOSVR.js → chunk-2UIAN6N7.js} +2 -2
- package/dist/{chunk-KXE3JVEZ.js → chunk-2Z7IW5EY.js} +2 -2
- package/dist/{chunk-WDTX4PG5.js → chunk-35BZXE5L.js} +1 -1
- package/dist/{chunk-2PKURSBE.js → chunk-37SEGJEO.js} +11 -11
- package/dist/{chunk-Y6NTMCRF.js → chunk-3B4WQYCW.js} +6 -6
- package/dist/{chunk-6XGM5GHR.js → chunk-3BKNPN36.js} +56 -7
- package/dist/{chunk-GNKUAJXO.js → chunk-3ODOQWSB.js} +12 -7
- package/dist/{chunk-NORROE4L.js → chunk-3WE4UZHN.js} +2 -2
- package/dist/{chunk-LN36F5DC.js → chunk-4IIPERO4.js} +3 -3
- package/dist/{chunk-FHIOPTN4.js → chunk-4SY34UA2.js} +1 -1
- package/dist/{chunk-7R7OCEHI.js → chunk-4WUTXBRK.js} +6 -6
- package/dist/{chunk-RC2DDVX5.js → chunk-5E46EQ3U.js} +2 -2
- package/dist/{chunk-TVSB4K5O.js → chunk-5UOYRGKV.js} +2 -2
- package/dist/{chunk-UL2EO5VU.js → chunk-5WZSXP6R.js} +1 -1
- package/dist/{chunk-X63QVLMJ.js → chunk-64O3DG3E.js} +1 -1
- package/dist/{chunk-RO4RY5YB.js → chunk-66D5BC5K.js} +39 -11
- package/dist/{chunk-C6J6TZSW.js → chunk-6ACARSAZ.js} +1 -1
- package/dist/{chunk-WLAMY4XL.js → chunk-6PGDI5NG.js} +206 -95
- package/dist/{chunk-PEWBM2XF.js → chunk-6PYUPO4M.js} +4 -4
- package/dist/{chunk-CUGK6ZF6.js → chunk-6QITYZN7.js} +2 -2
- package/dist/{chunk-LWNHZUYJ.js → chunk-6QZNF3JF.js} +67 -32
- package/dist/chunk-6SYJN2KD.js +15 -0
- package/dist/{chunk-777GBBTE.js → chunk-6VNN3SYK.js} +1 -1
- package/dist/{chunk-RRIAHUG3.js → chunk-745HLQBA.js} +1 -1
- package/dist/{chunk-7WA77KXG.js → chunk-74M47HVE.js} +2 -2
- package/dist/{chunk-JFIN5P4E.js → chunk-7BREEOLQ.js} +16 -16
- package/dist/{chunk-BVA3NEQC.js → chunk-7CKKKBNM.js} +2 -2
- package/dist/{chunk-ASML5H5V.js → chunk-7EOREMZI.js} +12 -12
- package/dist/{chunk-DAN5KKFR.js → chunk-7LQFVACU.js} +1 -1
- package/dist/{chunk-VCTPYHOD.js → chunk-7QNCNGN6.js} +2 -2
- package/dist/{chunk-ZUYNFADS.js → chunk-A6O65H7G.js} +4 -4
- package/dist/{chunk-IW7QUJDU.js → chunk-AAZF6D3Z.js} +1 -1
- package/dist/{chunk-NHF32RRC.js → chunk-AI4MXYGK.js} +1 -1
- package/dist/{chunk-YT43XMYD.js → chunk-AI5KNXSL.js} +8 -8
- package/dist/{chunk-ZJQ23DJQ.js → chunk-AQBWVIT7.js} +1 -1
- package/dist/{chunk-NMYYW6QM.js → chunk-AQNI4TCF.js} +23 -15
- package/dist/{chunk-4HPXVTWY.js → chunk-AWOHPIKF.js} +9 -9
- package/dist/{chunk-NSRLO47G.js → chunk-BSY6ZHP6.js} +2 -2
- package/dist/{chunk-B2ZFTAZE.js → chunk-CANVWJB4.js} +101 -28
- package/dist/{chunk-NVE5ZPIV.js → chunk-CEHYC2UD.js} +3 -3
- package/dist/chunk-CINXWHRB.js +25 -0
- package/dist/{chunk-HYO4DIYT.js → chunk-CPQTWPMM.js} +1 -1
- package/dist/{chunk-ZAJ5SIG2.js → chunk-CTDCYNVK.js} +2 -2
- package/dist/{chunk-YV6I32RM.js → chunk-CUOX3TDY.js} +3 -3
- package/dist/{chunk-KRE7VIQV.js → chunk-D5YHSTHZ.js} +9 -16
- package/dist/{chunk-OM3PJLUG.js → chunk-DPMEWIVZ.js} +4 -4
- package/dist/{chunk-YFTPZZEE.js → chunk-DZ3JB4F3.js} +2 -2
- package/dist/{chunk-M4WT65UD.js → chunk-EIION6EA.js} +2 -2
- package/dist/{chunk-TU4IITMO.js → chunk-EPBYIJPM.js} +3 -3
- package/dist/{chunk-XO55FUXZ.js → chunk-ESYW3LJU.js} +2 -2
- package/dist/{chunk-GKRD43J2.js → chunk-FAJRDYFU.js} +6 -6
- package/dist/{chunk-HFRB7UTK.js → chunk-FBOKUG5B.js} +5 -5
- package/dist/{chunk-JGEDH5GJ.js → chunk-FCNBAYZ6.js} +3 -3
- package/dist/{chunk-XDVHQFEQ.js → chunk-FOALZ4MW.js} +1 -1
- package/dist/{chunk-KGPLIH7B.js → chunk-G37O3IZB.js} +1 -0
- package/dist/{chunk-GDKNEQ4E.js → chunk-GGY5M6BU.js} +1 -1
- package/dist/{chunk-HU2SPFNG.js → chunk-GHS4ZYQX.js} +1 -1
- package/dist/{chunk-NDXUDTLF.js → chunk-GXKCFOMR.js} +2 -2
- package/dist/{chunk-MH7FQ6N7.js → chunk-H6LFXHAV.js} +7 -7
- package/dist/{chunk-HC5GAPIW.js → chunk-HMNDJPLQ.js} +3 -3
- package/dist/{chunk-A6AH56HN.js → chunk-HYQ6S7R6.js} +2 -2
- package/dist/{chunk-LGIWC6KN.js → chunk-IUUEMVZV.js} +3 -3
- package/dist/{chunk-T7U6D2UW.js → chunk-IXGZSANV.js} +2 -2
- package/dist/{chunk-EMIOIMHN.js → chunk-IXSCGQS5.js} +1 -1
- package/dist/{chunk-ETMGDJ5P.js → chunk-JDJ6BM5E.js} +2 -2
- package/dist/{chunk-QQZ7DCAA.js → chunk-JGKI7FHX.js} +143 -47
- package/dist/{chunk-JYWFQ42F.js → chunk-JHPOKDZI.js} +13 -13
- package/dist/{chunk-YGO6PEYX.js → chunk-JK7JON6R.js} +1 -1
- package/dist/{chunk-UAM6PRKO.js → chunk-K2NOQNNY.js} +1 -1
- package/dist/{chunk-FWVJW5WC.js → chunk-KDQRJHLU.js} +4 -4
- package/dist/{chunk-ERM3UC6T.js → chunk-KFWSPEDG.js} +1 -1
- package/dist/{chunk-LUDXZKNH.js → chunk-KXCAIQE4.js} +10 -10
- package/dist/{chunk-IH2C53YV.js → chunk-KZ5PV5TL.js} +11 -9
- package/dist/{chunk-Q4FVSYTD.js → chunk-L3FQUUS6.js} +1 -1
- package/dist/{chunk-2PIQTMWA.js → chunk-L7BY2FDJ.js} +30 -23
- package/dist/{chunk-4YMMTQ45.js → chunk-LAXD6VM7.js} +10 -10
- package/dist/{chunk-5BNKWHG6.js → chunk-LBFV45YF.js} +1 -1
- package/dist/{chunk-FXMKHHPO.js → chunk-LIHELBPB.js} +0 -61
- package/dist/{chunk-ZM66CP4T.js → chunk-LIXAC5NE.js} +15 -15
- package/dist/{chunk-CFOPRL62.js → chunk-LNOG6KKM.js} +7 -7
- package/dist/{chunk-YWUE4CRU.js → chunk-LWX5PI73.js} +7 -7
- package/dist/{chunk-UJN7LD7Q.js → chunk-M4ABCFJO.js} +4 -4
- package/dist/{chunk-7G6OHKDZ.js → chunk-MEZAMIT6.js} +9 -9
- package/dist/{chunk-3PXZPI6I.js → chunk-MG7UJJCP.js} +29 -11
- package/dist/{chunk-Y7S7XM5T.js → chunk-MH46RGG6.js} +1 -1
- package/dist/{chunk-JXVUSNAG.js → chunk-MKZ73C57.js} +4 -4
- package/dist/{chunk-RIETR6VC.js → chunk-N6VNR4YE.js} +54 -17
- package/dist/{chunk-K6ARLNKJ.js → chunk-NIEOUHVQ.js} +1 -1
- package/dist/{chunk-K2FH6FRK.js → chunk-NMASYQXY.js} +3 -3
- package/dist/{chunk-G2US34LC.js → chunk-NOCU3FBX.js} +5 -5
- package/dist/{chunk-FZLY56DP.js → chunk-NSADX4IV.js} +19 -3
- package/dist/{chunk-D62TF745.js → chunk-OB56G4VA.js} +3 -3
- package/dist/{chunk-U2FL2MTE.js → chunk-OGL5VQGT.js} +4 -2
- package/dist/{chunk-7OVPWTCJ.js → chunk-OI5WGQE3.js} +5 -5
- package/dist/{chunk-3X72Y7FR.js → chunk-OMFIMZZD.js} +5 -5
- package/dist/chunk-PWRUMN7B.js +71 -0
- package/dist/{chunk-5F7M7PYP.js → chunk-PXMEW6TM.js} +3 -3
- package/dist/{chunk-5NSZ5XPH.js → chunk-QSQNXAHE.js} +1 -1
- package/dist/{chunk-LZDRK67I.js → chunk-R5C2CV7J.js} +5 -5
- package/dist/chunk-RAHYMZNU.js +5146 -0
- package/dist/{chunk-FO3FSJBJ.js → chunk-RD3DE4ZP.js} +2 -2
- package/dist/{chunk-MHEO2LYC.js → chunk-RHZE7BIX.js} +3 -3
- package/dist/{chunk-I3R2E6SE.js → chunk-ROODLZY7.js} +10 -10
- package/dist/{chunk-J5VEGTHN.js → chunk-RRGRETJ4.js} +2 -2
- package/dist/{chunk-WC6L7F3Z.js → chunk-S73AVUHJ.js} +1 -1
- package/dist/{chunk-3WHPQNTD.js → chunk-SITGBEFO.js} +41 -34
- package/dist/{chunk-5N7RRWIP.js → chunk-TIGMUHSL.js} +15 -11
- package/dist/{chunk-Q76FGC6A.js → chunk-TMB4L4GG.js} +5 -3
- package/dist/{chunk-QUAK4OPT.js → chunk-TQYHQKOK.js} +1 -1
- package/dist/{chunk-RZREOKHK.js → chunk-TU2WFCGS.js} +9 -2
- package/dist/{chunk-XKPBY4G2.js → chunk-TUJB74AE.js} +22 -27
- package/dist/{chunk-JO25BSM3.js → chunk-TXTVVIW7.js} +3 -3
- package/dist/{chunk-B7B7SGPV.js → chunk-TZ3EPV4B.js} +1 -1
- package/dist/{chunk-TPIQDAHD.js → chunk-U3WUAVAX.js} +3 -3
- package/dist/{chunk-TFAKFI3R.js → chunk-U6ZR7GBQ.js} +3 -3
- package/dist/{chunk-GFT3OQ33.js → chunk-UCQTLZDJ.js} +2 -2
- package/dist/{chunk-X3VHHQYM.js → chunk-ULE2EYEY.js} +2 -2
- package/dist/{chunk-S35RUNXJ.js → chunk-UVW5ZDAP.js} +4 -2
- package/dist/{chunk-KFR67U7E.js → chunk-VBLKGDVI.js} +1 -1
- package/dist/{chunk-A7NRMVUG.js → chunk-VTP3TBRY.js} +23 -42
- package/dist/{chunk-BQKQPYEP.js → chunk-W672RTMC.js} +8 -8
- package/dist/{chunk-4K6VNWJS.js → chunk-WMJ3PV37.js} +1 -1
- package/dist/{chunk-L5V57765.js → chunk-WWQWDRKU.js} +1 -1
- package/dist/{chunk-4I4ACRCU.js → chunk-WY6354ZO.js} +4 -4
- package/dist/{chunk-OKQ5OUJH.js → chunk-X3JZA7KH.js} +9 -9
- package/dist/{chunk-WMBZFHHZ.js → chunk-XEIVSW2F.js} +7 -7
- package/dist/{chunk-SREN5WTO.js → chunk-XKIXRSVB.js} +3 -3
- package/dist/{chunk-FNOAIEQC.js → chunk-XMKDDEX4.js} +7 -7
- package/dist/{chunk-DO6R4KYL.js → chunk-XNJEXXKC.js} +2 -2
- package/dist/{chunk-BXNWMRZL.js → chunk-XSARHJSW.js} +2 -2
- package/dist/{chunk-MY2XJULG.js → chunk-XTKNMYRR.js} +2 -2
- package/dist/{chunk-3FOIZLN4.js → chunk-Y4QE4LEB.js} +1 -1
- package/dist/{chunk-KR7FV3WD.js → chunk-Y57R6C5U.js} +4 -4
- package/dist/{chunk-IVAMWDMR.js → chunk-Y6A5LED6.js} +2 -2
- package/dist/{chunk-RO6MNXKE.js → chunk-YMSOS6CF.js} +1 -1
- package/dist/{chunk-KLIV2W5D.js → chunk-ZHIAAYY2.js} +4 -4
- package/dist/chunk-ZQPXWUCP.js +141 -0
- package/dist/{chunk-Z6BSZ2HK.js → chunk-ZS2ROUIG.js} +2 -2
- package/dist/{chunk-L3LVTSHX.js → chunk-ZY55U6ER.js} +8 -8
- package/dist/{clean-ROGNMYHH.js → clean-73IDEWIJ.js} +31 -29
- package/dist/cli.js +72 -71
- package/dist/{cloud-3A3ASGKH.js → cloud-P32MAEIJ.js} +4 -4
- package/dist/{cloud-SGY2DYTO.js → cloud-SOZPWTDL.js} +14 -12
- package/dist/{cloudrun-AU2TSYBU.js → cloudrun-H5TW5T4R.js} +9 -8
- package/dist/{compare-DARUHTKS.js → compare-BQSDHPZ3.js} +50 -49
- package/dist/{compiler-XLAW2M77.js → compiler-WNVDGRBH.js} +9 -6
- package/dist/{component-LHP7MJ3L.js → component-WWICYJFN.js} +18 -13
- package/dist/{compositions-BMQ4NTWM.js → compositions-VEMHHQR6.js} +22 -19
- package/dist/{contactSheet-JFEV75W2.js → contactSheet-G42BMJXO.js} +4 -4
- package/dist/{curve-FNX3ONSD.js → curve-5SCSMYX4.js} +20 -19
- package/dist/{cuts-HQI2ZBOS.js → cuts-POUL3RQ5.js} +21 -20
- package/dist/{delete-EDIDKV7H.js → delete-NVS5PXRM.js} +21 -17
- package/dist/{deploy-KFOOAJEE.js → deploy-SPJ5OWAI.js} +9 -16
- package/dist/{describeProject-A2TZSHVH.js → describeProject-KJGRR7FM.js} +15 -14
- package/dist/{destroy-LSQUDIVA.js → destroy-CPLVCITS.js} +6 -6
- package/dist/{deterministicFonts-XCYIRDQZ.js → deterministicFonts-645ILNLP.js} +3 -3
- package/dist/{diff-PRT5CIDJ.js → diff-O2JUFV2N.js} +51 -49
- package/dist/{dist-UIIZKERM.js → dist-DCRKIIL4.js} +18 -17
- package/dist/{dist-YXDW5VUV.js → dist-TTOW2KVO.js} +11 -9
- package/dist/{dist-VPMEUGIV.js → dist-XRESUN6B.js} +3 -3
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/{doctor-TQ3RNOYK.js → doctor-L5GGDS2F.js} +21 -19
- package/dist/{dotEnv-2VNMLGZC.js → dotEnv-7P4XI4ID.js} +11 -6
- package/dist/{energy-F7FS75TV.js → energy-43JTPLLL.js} +21 -20
- package/dist/{events-23GP74FO.js → events-33NDGOZM.js} +23 -22
- package/dist/{events-VN7QW7JU.js → events-K576EL47.js} +9 -8
- package/dist/{events-LJIO2U6Z.js → events-XRO5CFTD.js} +4 -3
- package/dist/{execute-GZLBWOFB.js → execute-EWZ3WK3L.js} +44 -43
- package/dist/{extract-NJSXJFB2.js → extract-NW375CQM.js} +22 -21
- package/dist/{face-JQBXWNMX.js → face-AVVUVV5L.js} +22 -21
- package/dist/{face-HJNH6TQM.js → face-IVXIPAO5.js} +19 -18
- package/dist/{feedback-T3WYFTGI.js → feedback-MS34KB74.js} +26 -24
- package/dist/{ffmpeg-HYYDF4FH.js → ffmpeg-I376KCKD.js} +15 -14
- package/dist/{figma-T5PCTXP7.js → figma-M37MXYPR.js} +3 -3
- package/dist/fontLocalizeCli.js +19 -18
- package/dist/{frames-QTYTUQ52.js → frames-6VGAHZBO.js} +23 -22
- package/dist/{generate-RNUZUNHG.js → generate-TM7AOJ27.js} +37 -35
- package/dist/{get-KP5FCZKQ.js → get-2JAJO7AP.js} +21 -17
- package/dist/{gpuPolicy-F7RTO2CS.js → gpuPolicy-DEH3KKNF.js} +13 -12
- package/dist/{grade-compare-55ZWESO7.js → grade-compare-UN6MPWVF.js} +47 -46
- package/dist/{hands-XZFTUVNT.js → hands-ANSG7WHU.js} +24 -23
- package/dist/{heifImagePrep-7T6EC2VL.js → heifImagePrep-YC3ZMWUC.js} +16 -15
- package/dist/{help-U36MZKGG.js → help-63QQYCMJ.js} +1 -1
- package/dist/{history-RFJGLXYS.js → history-DRSL755Q.js} +18 -17
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +72 -71
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{index-gen-3DWPA4FO.js → index-gen-TXP67YUY.js} +13 -1
- package/dist/{info-3NB5HOAS.js → info-UNIWLP7I.js} +21 -20
- package/dist/{init-H5L3KVSO.js → init-3W3XSGXC.js} +46 -44
- package/dist/{ink-C7YJAB4M.js → ink-OXJJIEQ7.js} +21 -20
- package/dist/{inspect-4LNO7C77.js → inspect-UOXP5ICV.js} +50 -46
- package/dist/{installer-WALAPPWF.js → installer-OWZSFVV2.js} +10 -9
- package/dist/{keyframes-FORZG2IO.js → keyframes-LNCXSQJ6.js} +23 -22
- package/dist/{lambda-PKVT2D45.js → lambda-3ZIM5NW2.js} +22 -21
- package/dist/{launch-PXZF4TSU.js → launch-HOSRCHWS.js} +15 -14
- package/dist/{layout-7BKIDH5L.js → layout-MRBHBZEA.js} +50 -46
- package/dist/{lint-ODMVBKA5.js → lint-U4PINYKO.js} +16 -15
- package/dist/{lintProject-XEWYQ2YP.js → lintProject-55U44GOP.js} +3 -3
- package/dist/{list-B223YD2L.js → list-AMH6UUTI.js} +27 -21
- package/dist/{live-WWPFZQ74.js → live-ZSDUN6U2.js} +1 -1
- package/dist/{localPage-GNT4KO7M.js → localPage-JJ56YNKB.js} +14 -13
- package/dist/{login-DTYGRX6S.js → login-U42SSWF4.js} +15 -13
- package/dist/{logout-WNVEAWWZ.js → logout-DQVPSI4E.js} +11 -9
- package/dist/{look-WGDSVD5A.js → look-6VTGMGIF.js} +21 -20
- package/dist/{manager-OMDGEDU2.js → manager-GHP2QIUD.js} +17 -16
- package/dist/{manager-C5S25OOK.js → manager-PXRZQDDT.js} +4 -4
- package/dist/{measure-UMINPIOA.js → measure-NC4LN7EZ.js} +12 -12
- package/dist/{media-6Y6RGH6H.js → media-VKM5WFRK.js} +21 -16
- package/dist/{media-treatment-CVVCARD4.js → media-treatment-VNZS2MIT.js} +28 -27
- package/dist/{media-use-4CDI2VV5.js → media-use-JOQWGBS5.js} +18 -13
- package/dist/{models-3DMHZYLD.js → models-S55TNWF7.js} +24 -22
- package/dist/{motionShot-EB2RQLG3.js → motionShot-OUOXFKUG.js} +26 -25
- package/dist/{normalize-KYVBGCEM.js → normalize-AH7CCULG.js} +3 -3
- package/dist/{normalize-audio-J5PRW2T2.js → normalize-audio-GYTTK5QE.js} +16 -15
- package/dist/{oauth-E5QBYYTX.js → oauth-RETRT7QD.js} +2 -1
- package/dist/{open-CTEBHEQB.js → open-KGXPI4BY.js} +35 -28
- package/dist/{parakeetRunner-JTYOFSEH.js → parakeetRunner-IXUUFPGG.js} +26 -24
- package/dist/{pipeline-MTFGTQBG.js → pipeline-UE2Y2ZRB.js} +18 -17
- package/dist/{plan-KWQMZCRP.js → plan-AD4FZA6N.js} +29 -28
- package/dist/{play-QAD7NEJH.js → play-G6JYDYIH.js} +45 -38
- package/dist/{preflight-FRZEYCAM.js → preflight-QNDXHMOT.js} +18 -16
- package/dist/{present-A236DAR5.js → present-OK7QMCLR.js} +42 -37
- package/dist/{preview-T7R3Y2P7.js → preview-XD7J2KHY.js} +69 -66
- package/dist/{privateProjectFile-6ZDCWIFO.js → privateProjectFile-2WJ6GPY6.js} +14 -11
- package/dist/{probe-DRYUMUVG.js → probe-34RS6LVV.js} +21 -20
- package/dist/processes.ps1 +20 -0
- package/dist/{producer-XGWE7D4U.js → producer-AX7EDIPJ.js} +1 -1
- package/dist/{progress-2FZHJMQ2.js → progress-WLBIHCZM.js} +4 -4
- package/dist/{projectConfig-V27XJAAR.js → projectConfig-YBFY4W5A.js} +13 -12
- package/dist/{publication-6GJPFPQK.js → publication-JPKV2ZQO.js} +8 -7
- package/dist/{publish-X32RPL6L.js → publish-LRUVQX2E.js} +38 -33
- package/dist/{receivedRecordFollow-3ZT7SRRY.js → receivedRecordFollow-6MPKPG36.js} +16 -15
- package/dist/{refresh-OD5KKKQ5.js → refresh-HFE7YV57.js} +11 -9
- package/dist/{remove-background-FC3B3BLA.js → remove-background-TS4QUALS.js} +19 -18
- package/dist/{render-6VLPVVIF.js → render-NYFK74KL.js} +13 -12
- package/dist/{render-WZ2LHRIR.js → render-PSUJ4UCJ.js} +71 -69
- package/dist/{render-GMINWEBY.js → render-UQICTWO6.js} +57 -52
- package/dist/{render-batch-F4WR3T2E.js → render-batch-57ZDTS7Z.js} +13 -12
- package/dist/renderSetupWorker.js +10 -9
- package/dist/{resolver-ZJTCLGJB.js → resolver-3HJC4XU3.js} +10 -9
- package/dist/{reverse-XDKTYZEM.js → reverse-CIMYQVFI.js} +1 -1
- package/dist/{run-5LP7BKUF.js → run-EFRNU53Z.js} +14 -12
- package/dist/{screenshotCapture-72HYLPYD.js → screenshotCapture-K63UAXO7.js} +16 -15
- package/dist/{service-DWVOCGDO.js → service-EEEGLRHX.js} +24 -22
- package/dist/{share-K6FYZ7OP.js → share-WQVRXWH4.js} +28 -26
- package/dist/{sherpa-4TUAQ25R.js → sherpa-BOHH3Q32.js} +25 -23
- package/dist/sherpaWorker.js +5 -5
- package/dist/{sites-SUB3WQRQ.js → sites-2IEQMGTW.js} +4 -4
- package/dist/skills/hyperframes/references/plugin-installation.md +11 -2
- package/dist/skills/hyperframes/references/skill-lifecycle.md +12 -3
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +44 -10
- package/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +35 -51
- package/dist/skills/media-use/scripts/lib/codex-provider.mjs +17 -10
- package/dist/skills/media-use/scripts/lib/cube-validate.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/index-gen.mjs +4 -2
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +6 -4
- package/dist/skills/media-use/scripts/lib/mflux-provider.mjs +6 -4
- package/dist/skills/media-use/scripts/lib/private-output.mjs +21 -0
- package/dist/skills/media-use/scripts/lib/received-env.d.mts +5 -0
- package/dist/skills/media-use/scripts/lib/received-env.mjs +567 -0
- package/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +9 -4
- package/dist/skills/media-use/scripts/resolve.mjs +36 -19
- package/dist/{skills-OEYS3FEC.js → skills-KB7UH26E.js} +12 -11
- package/dist/{skillsUpdateCheck-RFHPBIPU.js → skillsUpdateCheck-ZDA5FPJB.js} +3 -3
- package/dist/{snapshot-VJXNZMJZ.js → snapshot-HRR6LIPD.js} +93 -189
- package/dist/snapshotHeldVideos-QGJBXBJM.js +63 -0
- package/dist/{src-TDYI7QIO.js → src-FCITTGFH.js} +12 -11
- package/dist/{src-P4PHYYKA.js → src-QOVNNDZN.js} +18 -17
- package/dist/{start-U2SI4DAI.js → start-I7H5I3AS.js} +39 -36
- package/dist/{state-E3RFYMOF.js → state-O6CCLWF6.js} +4 -4
- package/dist/{staticProjectServer-NYBCXQPN.js → staticProjectServer-XEZD7JZE.js} +29 -28
- package/dist/{status-KCF3G7E5.js → status-2GKACMVC.js} +23 -21
- package/dist/studio/assets/hyperframes-player-VGx6ow_e.js +573 -0
- package/dist/studio/assets/{index-CVmmHGol.js → index-B8Xt_Oyw.js} +190 -186
- package/dist/studio/assets/{index-DN167Uqf.js → index-BH18TdX9.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-C8rhpGPx.js → pausedVideoDecoder-Bx3fGNkU.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TZHZLLCD.js → studio-api-KQ7DR667.js} +18 -17
- package/dist/{studioServer-IFEYMMIN.js → studioServer-KAU2XZ4F.js} +84 -81
- package/dist/subCompositionWorker.js +10 -9
- package/dist/{sync-H2SNHXZD.js → sync-3OJZRVPG.js} +21 -20
- package/dist/{synthesize-EIZ3XR5O.js → synthesize-JECKYUGO.js} +3 -3
- package/dist/{telemetry-BGBRABGW.js → telemetry-HIZZLE6W.js} +9 -8
- package/dist/templates/_shared/AGENTS.md +3 -1
- package/dist/templates/_shared/CLAUDE.md +3 -1
- package/dist/{templates-6OBD5XQI.js → templates-35GCXKO2.js} +24 -22
- package/dist/{textOverFace-5TTQHKZG.js → textOverFace-Q4I3PREP.js} +10 -4
- package/dist/{timeline-XZMIGQSE.js → timeline-U2V63I7B.js} +28 -27
- package/dist/{tokens-5VOBSSBN.js → tokens-24TKAZCA.js} +17 -12
- package/dist/{transcribe-F5VS2B2D.js → transcribe-M3JJZ27F.js} +22 -20
- package/dist/{transcribe-VOWDWAVU.js → transcribe-YHGN4HEM.js} +45 -42
- package/dist/{tts-URZ56ZN7.js → tts-CDBXQSAQ.js} +8 -7
- package/dist/{update-L5WLOBMT.js → update-4DIZ3YQQ.js} +17 -14
- package/dist/{updateCheck-NYDA3CKE.js → updateCheck-F56HX6MZ.js} +2 -2
- package/dist/{upgrade-APGW3TZA.js → upgrade-6WAFZ7WN.js} +5 -5
- package/dist/{urlDownloader-H67ZJV7Q.js → urlDownloader-DNNB6UOI.js} +12 -11
- package/dist/{validate-ZWNAZZMI.js → validate-N5KPU4GC.js} +36 -35
- package/dist/{video-IDLKJE2M.js → video-T6YYFBNI.js} +15 -14
- package/dist/{voices-TTD5VBUS.js → voices-OI37IYYG.js} +35 -33
- package/dist/warmCheck.js +57 -53
- package/package.json +1 -1
- package/dist/chunk-MJI4W7LY.js +0 -5101
- package/dist/studio/assets/hyperframes-player-mSF_GvRs.js +0 -573
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
// The media-use scripts run without the CLI's packages installed, so they keep this copy of the CLI's received-files
|
|
2
|
+
// rule (receivedFiles and receivedRecordStatus in packages/cli/src/utils/privateProjectFile.ts), read-only and for one
|
|
3
|
+
// file. receivedEnv.parity.test.ts runs both over the same projects.
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
5
|
+
import {
|
|
6
|
+
closeSync,
|
|
7
|
+
constants,
|
|
8
|
+
fstatSync,
|
|
9
|
+
lstatSync,
|
|
10
|
+
openSync,
|
|
11
|
+
readdirSync,
|
|
12
|
+
readFileSync,
|
|
13
|
+
readSync,
|
|
14
|
+
realpathSync,
|
|
15
|
+
statSync,
|
|
16
|
+
} from "node:fs";
|
|
17
|
+
import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
18
|
+
|
|
19
|
+
const RECEIVED_RECORD = join(".hyperframes", "received-files.json");
|
|
20
|
+
const RECEIVED_CONTENT = "received-content.json";
|
|
21
|
+
const RECEIVED_STATE_ENV = "HYPERFRAMES_RECEIVED_STATE_FILE";
|
|
22
|
+
const MAX_RECORD_BYTES = 16 * 1024 * 1024;
|
|
23
|
+
const KEPT_RECORDS = "received-records";
|
|
24
|
+
const SHA256 = /^[0-9a-f]{64}$/;
|
|
25
|
+
const WALK_MAX_ENTRIES = 20_000;
|
|
26
|
+
const WALK_MAX_MS = 2_000;
|
|
27
|
+
const NO_FOLLOW = constants.O_NOFOLLOW ?? 0;
|
|
28
|
+
const NON_BLOCK = constants.O_NONBLOCK ?? 0;
|
|
29
|
+
const CODE_FILE = new Set([".html", ".htm", ".xhtml", ".css", ".js", ".mjs", ".cjs", ".svg"]);
|
|
30
|
+
|
|
31
|
+
function realpath(path) {
|
|
32
|
+
try {
|
|
33
|
+
return realpathSync.native(path);
|
|
34
|
+
} catch (error) {
|
|
35
|
+
if (error.code === "EISDIR") return realpathSync(path);
|
|
36
|
+
throw error;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function walkStart(projectDir) {
|
|
41
|
+
try {
|
|
42
|
+
return realpath(projectDir);
|
|
43
|
+
} catch {
|
|
44
|
+
return resolve(projectDir);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function realFilePath(filePath) {
|
|
49
|
+
try {
|
|
50
|
+
return realpath(filePath);
|
|
51
|
+
} catch {
|
|
52
|
+
const dir = dirname(filePath);
|
|
53
|
+
return dir === filePath ? filePath : join(realFilePath(dir), basename(filePath));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const isAtOrUnder = (path, folder) => {
|
|
58
|
+
const inside = relative(folder, path);
|
|
59
|
+
return (
|
|
60
|
+
inside === "" || (inside !== ".." && !inside.startsWith(`..${sep}`) && !isAbsolute(inside))
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const isOutside = (fromDir) =>
|
|
65
|
+
fromDir === ".." || fromDir.startsWith(`..${sep}`) || isAbsolute(fromDir);
|
|
66
|
+
|
|
67
|
+
function fileIdentity(path) {
|
|
68
|
+
try {
|
|
69
|
+
const stat = lstatSync(path, { bigint: true });
|
|
70
|
+
return stat.ino === 0n ? null : `${stat.dev}:${stat.ino}`;
|
|
71
|
+
} catch {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function recordKind(dir) {
|
|
77
|
+
const path = join(dir, RECEIVED_RECORD);
|
|
78
|
+
let found;
|
|
79
|
+
try {
|
|
80
|
+
found = lstatSync(path, { throwIfNoEntry: false });
|
|
81
|
+
} catch (error) {
|
|
82
|
+
return error.code === "ENOTDIR" ? "absent" : "unknown";
|
|
83
|
+
}
|
|
84
|
+
if (!found) return "absent";
|
|
85
|
+
try {
|
|
86
|
+
return statSync(path).isFile() ? "file" : "other";
|
|
87
|
+
} catch {
|
|
88
|
+
return "other";
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const strongest = (a, b) => (a === "all" ? a : b);
|
|
93
|
+
|
|
94
|
+
function addNamed(map, key, received, path) {
|
|
95
|
+
const known = map.get(key);
|
|
96
|
+
map.set(key, {
|
|
97
|
+
received: strongest(known?.received, received),
|
|
98
|
+
paths: [...(known?.paths ?? []), path],
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function hostEntry(value) {
|
|
103
|
+
const { path, received, dev, ino } = value ?? {};
|
|
104
|
+
if (typeof path !== "string" || !isAbsolute(path)) throw new Error("path is not absolute");
|
|
105
|
+
if (received !== "expected" && received !== "all") throw new Error("unknown state");
|
|
106
|
+
const identity = typeof dev === "string" && typeof ino === "string" && ino !== "0";
|
|
107
|
+
return { path, received, ...(identity ? { dev, ino } : {}) };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function parseHostStates(file, text) {
|
|
111
|
+
const projects = JSON.parse(text)?.projects;
|
|
112
|
+
if (!Array.isArray(projects)) throw new Error("projects is not a list");
|
|
113
|
+
const states = { file, unreadable: false, byPath: new Map(), byIdentity: new Map() };
|
|
114
|
+
for (const value of projects) {
|
|
115
|
+
const { path, received, dev, ino } = hostEntry(value);
|
|
116
|
+
addNamed(states.byPath, walkStart(path), received, path);
|
|
117
|
+
if (dev !== undefined && ino !== undefined)
|
|
118
|
+
addNamed(states.byIdentity, `${dev}:${ino}`, received, path);
|
|
119
|
+
}
|
|
120
|
+
return states;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function hostStates() {
|
|
124
|
+
const file = process.env[RECEIVED_STATE_ENV];
|
|
125
|
+
if (!file) return null;
|
|
126
|
+
try {
|
|
127
|
+
return parseHostStates(file, readFileSync(file, "utf-8"));
|
|
128
|
+
} catch {
|
|
129
|
+
return { file, unreadable: true, byPath: new Map(), byIdentity: new Map() };
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function hostState(dir, states) {
|
|
134
|
+
if (!states) return undefined;
|
|
135
|
+
if (states.unreadable) return "all";
|
|
136
|
+
const named = states.byPath.get(dir)?.received;
|
|
137
|
+
if (named || states.byIdentity.size === 0) return named;
|
|
138
|
+
const identity = fileIdentity(dir);
|
|
139
|
+
return identity === null ? undefined : states.byIdentity.get(identity)?.received;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function folderBirth(dir) {
|
|
143
|
+
try {
|
|
144
|
+
return String(lstatSync(dir, { bigint: true }).birthtimeNs);
|
|
145
|
+
} catch {
|
|
146
|
+
return "";
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Each path the state file names the project by; one found only by dev and ino carries the folder's identity.
|
|
151
|
+
function namings(dir, states) {
|
|
152
|
+
const byPath = new Set(states.byPath.get(dir)?.paths);
|
|
153
|
+
const found = [...byPath].map((path) => ({ path }));
|
|
154
|
+
const identity = states.byIdentity.size === 0 ? null : fileIdentity(dir);
|
|
155
|
+
const named = identity === null ? undefined : states.byIdentity.get(identity);
|
|
156
|
+
if (!named) return found;
|
|
157
|
+
const kept = `${identity}:${folderBirth(dir)}`;
|
|
158
|
+
const moved = [...new Set(named.paths)].filter((path) => !byPath.has(path));
|
|
159
|
+
return [...found, ...moved.map((path) => ({ path, identity: kept }))];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function keptFilesIn(kept, { path, identity }) {
|
|
163
|
+
if (kept.project !== path) return "all";
|
|
164
|
+
if (identity !== undefined && kept.identity !== identity) return "all";
|
|
165
|
+
const { files } = kept;
|
|
166
|
+
if (kept.doubted === true || !Array.isArray(files)) return "all";
|
|
167
|
+
return files.every((entry) => typeof entry === "string") ? files : "all";
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function keptFilesFor(naming, text) {
|
|
171
|
+
try {
|
|
172
|
+
return keptFilesIn(JSON.parse(text) ?? {}, naming);
|
|
173
|
+
} catch {
|
|
174
|
+
return "all";
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// The host's kept copy of the record for one naming: its files, "all" when it cannot be trusted, null when absent.
|
|
179
|
+
function hostKeptRecord(stateFile, naming) {
|
|
180
|
+
const name = `${createHash("sha256").update(naming.path).digest("hex")}.json`;
|
|
181
|
+
const file = join(dirname(stateFile), KEPT_RECORDS, name);
|
|
182
|
+
try {
|
|
183
|
+
if (!lstatSync(file, { throwIfNoEntry: false })) return null;
|
|
184
|
+
} catch (error) {
|
|
185
|
+
return error.code === "ENOTDIR" ? null : { file, files: "all" };
|
|
186
|
+
}
|
|
187
|
+
const read = readPlainTail(file, MAX_RECORD_BYTES) ?? readPlainTail(file, MAX_RECORD_BYTES);
|
|
188
|
+
if (!read?.whole) return onDisk(file) ? { file, files: "all" } : null;
|
|
189
|
+
return { file, files: keptFilesFor(naming, read.text) };
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function withEntriesHostKept(dir, listed, states) {
|
|
193
|
+
if (!states || hostState(dir, states) !== "expected") return { listed };
|
|
194
|
+
const copies = namings(dir, states).flatMap(
|
|
195
|
+
(naming) => hostKeptRecord(states.file, naming) ?? [],
|
|
196
|
+
);
|
|
197
|
+
const unread = copies.find((copy) => copy.files === "all");
|
|
198
|
+
if (unread) return { listed, unreadKeptCopy: unread.file };
|
|
199
|
+
const present = new Set(listed.map(String));
|
|
200
|
+
const kept = copies.flatMap((copy) => copy.files);
|
|
201
|
+
const back = [...new Set(kept)].filter(
|
|
202
|
+
(entry) => !present.has(entry) && onDisk(join(dir, entry)),
|
|
203
|
+
);
|
|
204
|
+
return { listed: back.length === 0 ? listed : [...listed, ...back] };
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function allReceivedAtOrAbove(start, states) {
|
|
208
|
+
for (let dir = start; ; dir = dirname(dir)) {
|
|
209
|
+
if (hostState(dir, states) === "all") return true;
|
|
210
|
+
if (dirname(dir) === dir) return false;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function allReceivedAround(start, states) {
|
|
215
|
+
if (!states) return false;
|
|
216
|
+
if (states.unreadable) return true;
|
|
217
|
+
const overlaps = [...states.byPath].some(
|
|
218
|
+
([path, { received }]) =>
|
|
219
|
+
received === "all" && (isAtOrUnder(path, start) || isAtOrUnder(start, path)),
|
|
220
|
+
);
|
|
221
|
+
return overlaps || allReceivedAtOrAbove(start, states);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function readRecordAsWritten(dir, ownFolder, states) {
|
|
225
|
+
const kind = recordKind(dir);
|
|
226
|
+
if (kind === "absent" && hostState(dir, states) !== undefined) return { listed: undefined };
|
|
227
|
+
if (kind === "absent" || (kind === "unknown" && !ownFolder)) return null;
|
|
228
|
+
if (kind !== "file") return { listed: undefined };
|
|
229
|
+
try {
|
|
230
|
+
return { listed: JSON.parse(readFileSync(join(dir, RECEIVED_RECORD), "utf-8")).files };
|
|
231
|
+
} catch {
|
|
232
|
+
return { listed: undefined };
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function readRecord(dir, ownFolder, states) {
|
|
237
|
+
const record = readRecordAsWritten(dir, ownFolder, states);
|
|
238
|
+
return record && Array.isArray(record.listed)
|
|
239
|
+
? withEntriesHostKept(dir, record.listed, states)
|
|
240
|
+
: record;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
function recordsAtOrAbove(start, states) {
|
|
244
|
+
const records = [];
|
|
245
|
+
for (let dir = start; ; ) {
|
|
246
|
+
const record = readRecord(dir, dir === start, states);
|
|
247
|
+
if (record)
|
|
248
|
+
records.push({
|
|
249
|
+
file: join(dir, RECEIVED_RECORD),
|
|
250
|
+
root: dir,
|
|
251
|
+
projectDirFromRoot: relative(dir, start).split(sep).join("/"),
|
|
252
|
+
...record,
|
|
253
|
+
});
|
|
254
|
+
const parent = dirname(dir);
|
|
255
|
+
if (parent === dir) return records;
|
|
256
|
+
dir = parent;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function nestedRecord(start, dir, record) {
|
|
261
|
+
const folder = relative(start, dir).split(sep).join("/");
|
|
262
|
+
const listed = Array.isArray(record.listed)
|
|
263
|
+
? record.listed.map((entry) => (folder ? `${folder}/${String(entry)}` : String(entry)))
|
|
264
|
+
: undefined;
|
|
265
|
+
const nested = { file: join(dir, RECEIVED_RECORD), root: start, projectDirFromRoot: "", listed };
|
|
266
|
+
return record.unreadKeptCopy ? { ...nested, unreadKeptCopy: record.unreadKeptCopy } : nested;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// The parsers' projectPathSegments: a segment as a case-insensitive file system or Windows opens it.
|
|
270
|
+
const pathSegments = (relPath) =>
|
|
271
|
+
relPath
|
|
272
|
+
.normalize("NFKC")
|
|
273
|
+
.toUpperCase()
|
|
274
|
+
.toLowerCase()
|
|
275
|
+
.replace(/\p{Default_Ignorable_Code_Point}/gu, "")
|
|
276
|
+
.split(/[\\/]/)
|
|
277
|
+
.map((segment) => (segment.split(":", 1)[0] ?? "").replace(/[. ]+$/, ""));
|
|
278
|
+
|
|
279
|
+
// The parsers' isStudioPrivatePath (packages/parsers/src/privatePath.ts), which the CLI's walk uses to skip folders.
|
|
280
|
+
const STUDIO_FILES = new Set([
|
|
281
|
+
".hyperframes/studio-motion.json",
|
|
282
|
+
".hyperframes/studio-manual-edits.json",
|
|
283
|
+
]);
|
|
284
|
+
const STUDIO_FOLDERS = [".hyperframes/prepared-assets", ".hyperframes/requests"];
|
|
285
|
+
const UNCONVERTED_PREVIEW_DOWNLOADS = ".hyperframes/prepared-assets/downloads";
|
|
286
|
+
const CREDENTIAL_FILES = new Set([
|
|
287
|
+
".npmrc",
|
|
288
|
+
".yarnrc",
|
|
289
|
+
".yarnrc.yml",
|
|
290
|
+
".pypirc",
|
|
291
|
+
"pip.conf",
|
|
292
|
+
"pip.ini",
|
|
293
|
+
".netrc",
|
|
294
|
+
"_netrc",
|
|
295
|
+
".git-credentials",
|
|
296
|
+
".gitconfig",
|
|
297
|
+
".mcp.json",
|
|
298
|
+
"credentials.json",
|
|
299
|
+
"serviceaccountkey.json",
|
|
300
|
+
"service-account.json",
|
|
301
|
+
"service_account.json",
|
|
302
|
+
]);
|
|
303
|
+
const CREDENTIAL_FOLDERS = new Set([
|
|
304
|
+
".ssh",
|
|
305
|
+
".aws",
|
|
306
|
+
".gnupg",
|
|
307
|
+
".docker",
|
|
308
|
+
".kube",
|
|
309
|
+
".azure",
|
|
310
|
+
".claude",
|
|
311
|
+
".codex",
|
|
312
|
+
".cursor",
|
|
313
|
+
".agents",
|
|
314
|
+
".gemini",
|
|
315
|
+
".vscode",
|
|
316
|
+
".idea",
|
|
317
|
+
]);
|
|
318
|
+
const CREDENTIAL_CONFIG_FOLDERS = new Set(["gcloud", "gh"]);
|
|
319
|
+
const KEY_FILE =
|
|
320
|
+
/^(?:id_(?:rsa|dsa|ecdsa|ed25519).*|.*\.(?:pem|key|p12|pfx|p8|ppk|jks|keystore|kdbx))$/;
|
|
321
|
+
const SECRET_STORE_FILE = /\.(?:tfstate(?:\.backup)?|tfvars(?:\.json)?)$/;
|
|
322
|
+
const MEDIA_FOLDER = ".media";
|
|
323
|
+
const BUILD_OUTPUT_FOLDERS = new Set([
|
|
324
|
+
".next",
|
|
325
|
+
".nuxt",
|
|
326
|
+
".output",
|
|
327
|
+
".svelte-kit",
|
|
328
|
+
".vercel",
|
|
329
|
+
".netlify",
|
|
330
|
+
".wrangler",
|
|
331
|
+
".astro",
|
|
332
|
+
".turbo",
|
|
333
|
+
]);
|
|
334
|
+
const LOADED_ASSET_TYPE =
|
|
335
|
+
/.\.(?:png|jpe?g|gif|webp|avif|svg|ico|bmp|tiff?|heic|heif|mp4|m4v|mov|webm|mkv|mxf|avi|mp3|wav|m4a|aac|ogg|oga|opus|flac|woff2?|ttf|otf|css|m?js|cjs)$/;
|
|
336
|
+
|
|
337
|
+
const isVcsOrSecretPath = (relPath) =>
|
|
338
|
+
pathSegments(relPath).some((segment) => segment === ".git" || segment.startsWith(".env"));
|
|
339
|
+
|
|
340
|
+
function isCredentialOrToolStatePath(relPath) {
|
|
341
|
+
const segments = pathSegments(relPath);
|
|
342
|
+
const name = segments.at(-1) ?? "";
|
|
343
|
+
return (
|
|
344
|
+
CREDENTIAL_FILES.has(name) ||
|
|
345
|
+
KEY_FILE.test(name) ||
|
|
346
|
+
SECRET_STORE_FILE.test(name) ||
|
|
347
|
+
segments.some(
|
|
348
|
+
(segment, at) =>
|
|
349
|
+
CREDENTIAL_FOLDERS.has(segment) ||
|
|
350
|
+
(segment === ".config" && CREDENTIAL_CONFIG_FOLDERS.has(segments[at + 1] ?? "")),
|
|
351
|
+
)
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
function isStudioOwnFile(path) {
|
|
356
|
+
if (
|
|
357
|
+
path === UNCONVERTED_PREVIEW_DOWNLOADS ||
|
|
358
|
+
path.startsWith(`${UNCONVERTED_PREVIEW_DOWNLOADS}/`)
|
|
359
|
+
)
|
|
360
|
+
return false;
|
|
361
|
+
return (
|
|
362
|
+
STUDIO_FILES.has(path) ||
|
|
363
|
+
STUDIO_FOLDERS.some((folder) => path === folder || path.startsWith(`${folder}/`))
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
function isStudioPrivatePath(relPath) {
|
|
368
|
+
if (isVcsOrSecretPath(relPath) || isCredentialOrToolStatePath(relPath)) return true;
|
|
369
|
+
const segments = pathSegments(relPath);
|
|
370
|
+
const inside = !isAbsolute(relPath) && !/^\.\.[. ]*$/.test(relPath.split(/[\\/]/, 1)[0] ?? "");
|
|
371
|
+
const name = segments.at(-1) ?? "";
|
|
372
|
+
const loadedType = !name.startsWith(".") && LOADED_ASSET_TYPE.test(name);
|
|
373
|
+
return segments.some((segment, at) => {
|
|
374
|
+
const atRoot = segments.slice(0, at).every((before) => before === "");
|
|
375
|
+
if (segment === ".hyperframes")
|
|
376
|
+
return !atRoot || !isStudioOwnFile(segments.slice(at).join("/"));
|
|
377
|
+
if (BUILD_OUTPUT_FOLDERS.has(segment)) return inside;
|
|
378
|
+
const mediaFolder = atRoot && segment === MEDIA_FOLDER;
|
|
379
|
+
return inside && segment.startsWith(".") && !mediaFolder && !loadedType;
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
const GIT_AND_PACKAGE_FOLDERS = new Set([".git", "node_modules"]);
|
|
384
|
+
|
|
385
|
+
function mayHoldLoadedFiles(start, folder) {
|
|
386
|
+
const rel = relative(start, folder).split(sep).join("/");
|
|
387
|
+
const segments = pathSegments(rel);
|
|
388
|
+
if (GIT_AND_PACKAGE_FOLDERS.has(segments.at(-1) ?? "")) return false;
|
|
389
|
+
if (!segments.includes(".hyperframes")) return true;
|
|
390
|
+
return segments.length === 1 || !isStudioPrivatePath(rel);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
function recordsBelow(start, states) {
|
|
394
|
+
const deadline = Date.now() + WALK_MAX_MS;
|
|
395
|
+
let seen = 0;
|
|
396
|
+
const records = [];
|
|
397
|
+
const pending = [start];
|
|
398
|
+
for (let dir = pending.pop(); dir !== undefined; dir = pending.pop()) {
|
|
399
|
+
let folders;
|
|
400
|
+
try {
|
|
401
|
+
folders = readdirSync(dir, { withFileTypes: true })
|
|
402
|
+
.filter((entry) => entry.isDirectory())
|
|
403
|
+
.map((entry) => join(dir, entry.name))
|
|
404
|
+
.filter((folder) => mayHoldLoadedFiles(start, folder));
|
|
405
|
+
} catch {
|
|
406
|
+
return null;
|
|
407
|
+
}
|
|
408
|
+
seen += folders.length;
|
|
409
|
+
if (seen > WALK_MAX_ENTRIES || Date.now() > deadline) return null;
|
|
410
|
+
const record = dir === start ? null : readRecord(dir, true, states);
|
|
411
|
+
if (record) records.push(nestedRecord(start, dir, record));
|
|
412
|
+
pending.push(...folders);
|
|
413
|
+
}
|
|
414
|
+
return records;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
function receivedRecords(start, atOrAboveOnly) {
|
|
418
|
+
const states = hostStates();
|
|
419
|
+
const below = atOrAboveOnly ? [] : recordsBelow(start, states);
|
|
420
|
+
if (!below) return null;
|
|
421
|
+
const records = [...recordsAtOrAbove(start, states), ...below];
|
|
422
|
+
const everyFile = (file) => ({ file, root: start, listed: undefined });
|
|
423
|
+
records.push(...records.flatMap(({ unreadKeptCopy }) => unreadKeptCopy ?? []).map(everyFile));
|
|
424
|
+
const all = atOrAboveOnly
|
|
425
|
+
? states !== null && (states.unreadable || allReceivedAtOrAbove(start, states))
|
|
426
|
+
: allReceivedAround(start, states);
|
|
427
|
+
if (all) records.push(everyFile(process.env[RECEIVED_STATE_ENV] ?? ""));
|
|
428
|
+
return records;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// A plain file's text, or null for a link, a device or a missing file; `whole` is false past `maxBytes`.
|
|
432
|
+
function readPlainTail(path, maxBytes) {
|
|
433
|
+
let fd;
|
|
434
|
+
try {
|
|
435
|
+
fd = openSync(path, constants.O_RDONLY | NO_FOLLOW | NON_BLOCK);
|
|
436
|
+
} catch {
|
|
437
|
+
return null;
|
|
438
|
+
}
|
|
439
|
+
try {
|
|
440
|
+
const stats = fstatSync(fd);
|
|
441
|
+
const named = lstatSync(path);
|
|
442
|
+
const same = named.ino === stats.ino && named.dev === stats.dev;
|
|
443
|
+
if (!stats.isFile() || !named.isFile() || !same) return null;
|
|
444
|
+
const length = Math.min(stats.size, maxBytes);
|
|
445
|
+
const buffer = Buffer.alloc(length);
|
|
446
|
+
readSync(fd, buffer, 0, length, stats.size - length);
|
|
447
|
+
return { text: buffer.toString("utf8"), whole: length === stats.size };
|
|
448
|
+
} catch {
|
|
449
|
+
return null;
|
|
450
|
+
} finally {
|
|
451
|
+
closeSync(fd);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
function contentRecordKind(dir) {
|
|
456
|
+
let path = dir;
|
|
457
|
+
for (const [index, part] of [".hyperframes", RECEIVED_CONTENT].entries()) {
|
|
458
|
+
path = join(path, part);
|
|
459
|
+
try {
|
|
460
|
+
const stats = lstatSync(path, { throwIfNoEntry: false });
|
|
461
|
+
if (!stats) return "absent";
|
|
462
|
+
if (!(index === 1 ? stats.isFile() : stats.isDirectory())) return "other";
|
|
463
|
+
} catch {
|
|
464
|
+
return "other";
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
return "file";
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// The received content hashes kept beside the record in `dir`; null when that file cannot be read.
|
|
471
|
+
function receivedContentHashes(dir) {
|
|
472
|
+
let records;
|
|
473
|
+
try {
|
|
474
|
+
records = lstatSync(join(dir, ".hyperframes")).isDirectory() ? join(dir, ".hyperframes") : null;
|
|
475
|
+
} catch {
|
|
476
|
+
records = null;
|
|
477
|
+
}
|
|
478
|
+
const read = records ? readPlainTail(join(records, RECEIVED_CONTENT), MAX_RECORD_BYTES) : null;
|
|
479
|
+
if (read === null) return contentRecordKind(dir) === "absent" ? [] : null;
|
|
480
|
+
let saved;
|
|
481
|
+
try {
|
|
482
|
+
saved = read.whole ? JSON.parse(read.text) : null;
|
|
483
|
+
} catch {
|
|
484
|
+
saved = null;
|
|
485
|
+
}
|
|
486
|
+
if (saved === null || typeof saved !== "object" || Array.isArray(saved)) return null;
|
|
487
|
+
const listed = Array.isArray(saved.hashes) ? saved.hashes : [];
|
|
488
|
+
return listed.filter((hash) => typeof hash === "string" && SHA256.test(hash));
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
function contentHash(path) {
|
|
492
|
+
let fd;
|
|
493
|
+
try {
|
|
494
|
+
fd = openSync(path, constants.O_RDONLY | NO_FOLLOW | NON_BLOCK);
|
|
495
|
+
} catch {
|
|
496
|
+
return null;
|
|
497
|
+
}
|
|
498
|
+
try {
|
|
499
|
+
const stat = fstatSync(fd);
|
|
500
|
+
const hashable =
|
|
501
|
+
stat.isFile() &&
|
|
502
|
+
(stat.size <= MAX_RECORD_BYTES || CODE_FILE.has(extname(path).toLowerCase()));
|
|
503
|
+
return hashable ? createHash("sha256").update(readFileSync(fd)).digest("hex") : null;
|
|
504
|
+
} catch {
|
|
505
|
+
return null;
|
|
506
|
+
} finally {
|
|
507
|
+
closeSync(fd);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
function listedIn(record, projectDir, start, path) {
|
|
512
|
+
const listed = record.listed.map((entry) => String(entry).normalize("NFC"));
|
|
513
|
+
const key = (record.projectDirFromRoot ? `${record.projectDirFromRoot}/${path}` : path).normalize(
|
|
514
|
+
"NFC",
|
|
515
|
+
);
|
|
516
|
+
if (listed.includes(key)) return true;
|
|
517
|
+
const identity = fileIdentity(join(projectDir, path));
|
|
518
|
+
if (identity === null) return false;
|
|
519
|
+
return listed
|
|
520
|
+
.map((entry) => join(record.root, entry))
|
|
521
|
+
.some((file) => isAtOrUnder(file, start) && fileIdentity(file) === identity);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
function onDisk(path) {
|
|
525
|
+
try {
|
|
526
|
+
return lstatSync(path, { throwIfNoEntry: false }) !== undefined;
|
|
527
|
+
} catch {
|
|
528
|
+
return false;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
// Every received content hash beside the records; null when one of those stores cannot be read.
|
|
533
|
+
function receivedHashes(records) {
|
|
534
|
+
const hashes = new Set();
|
|
535
|
+
for (const folder of new Set(records.map((record) => dirname(dirname(record.file))))) {
|
|
536
|
+
const found = receivedContentHashes(folder);
|
|
537
|
+
if (found === null) return null;
|
|
538
|
+
for (const hash of found) hashes.add(hash);
|
|
539
|
+
}
|
|
540
|
+
return hashes;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/** "unchecked" when the project's folders are too many to scan, "received" when the CLI's rule counts
|
|
544
|
+
* `<projectDir>/<path>` as received, else null. With `atOrAboveOnly`, for a file in a folder above the one a script
|
|
545
|
+
* works in, only records and host state at or above that folder count: never a sibling's or a subfolder's. */
|
|
546
|
+
export function receivedFileState(projectDir, path, { atOrAboveOnly = false } = {}) {
|
|
547
|
+
const start = walkStart(projectDir);
|
|
548
|
+
const records = receivedRecords(start, atOrAboveOnly);
|
|
549
|
+
if (records === null) return "unchecked";
|
|
550
|
+
if (records.some((record) => !Array.isArray(record.listed))) return "received";
|
|
551
|
+
const hashes = receivedHashes(records);
|
|
552
|
+
if (hashes === null) return "received";
|
|
553
|
+
if (records.some((record) => listedIn(record, projectDir, start, path))) return "received";
|
|
554
|
+
const file = join(projectDir, path);
|
|
555
|
+
if (hashes.size > 0 && hashes.has(contentHash(file) ?? "")) return "received";
|
|
556
|
+
return !atOrAboveOnly && mayBeGoneFile(records, projectDir, start, path) ? "received" : null;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// The CLI's rule for a listed file that is gone: a page, script or a link out of the project may have taken its place.
|
|
560
|
+
function mayBeGoneFile(records, projectDir, start, path) {
|
|
561
|
+
const listedInProject = records
|
|
562
|
+
.flatMap((record) => record.listed.map((entry) => join(record.root, String(entry))))
|
|
563
|
+
.filter((file) => isAtOrUnder(file, start));
|
|
564
|
+
if (!listedInProject.some((listed) => !onDisk(listed))) return false;
|
|
565
|
+
if (CODE_FILE.has(extname(path).toLowerCase())) return true;
|
|
566
|
+
return isOutside(relative(realFilePath(projectDir), realFilePath(join(projectDir, path))));
|
|
567
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { execFileSync } from "node:child_process";
|
|
2
2
|
import { existsSync, statSync } from "node:fs";
|
|
3
|
-
import { tmpdir } from "node:os";
|
|
4
|
-
import { join } from "node:path";
|
|
5
3
|
import { ffprobeBinary } from "./ff-binaries.mjs";
|
|
4
|
+
import { discardPrivateOutput, privateOutputPath } from "./private-output.mjs";
|
|
6
5
|
import { resolveSpawnCommand } from "../../audio/scripts/lib/tts.mjs";
|
|
7
6
|
|
|
8
7
|
// Local voiceover via the packaged Kokoro-82M TTS (the `hyperframes tts` CLI),
|
|
@@ -41,7 +40,7 @@ export async function localTtsGenerate(
|
|
|
41
40
|
pathExists = existsSync,
|
|
42
41
|
) {
|
|
43
42
|
const ffprobe = ffprobeBinary();
|
|
44
|
-
const outPath =
|
|
43
|
+
const outPath = privateOutputPath("kokoro", ".wav");
|
|
45
44
|
const argv = ["hyperframes", "tts", intent, "--output", outPath];
|
|
46
45
|
if (ctx?.voice) argv.push("--voice", ctx.voice);
|
|
47
46
|
if (ctx?.lang && ctx.lang !== "en") argv.push("--lang", ctx.lang);
|
|
@@ -59,6 +58,7 @@ export async function localTtsGenerate(
|
|
|
59
58
|
);
|
|
60
59
|
} catch (err) {
|
|
61
60
|
console.error(`media-use: local voice not enabled (kokoro). ${err.message}`);
|
|
61
|
+
discardPrivateOutput(outPath);
|
|
62
62
|
return null;
|
|
63
63
|
}
|
|
64
64
|
if (!resolved) {
|
|
@@ -68,6 +68,7 @@ export async function localTtsGenerate(
|
|
|
68
68
|
"media-use: local voice not enabled (kokoro). Cannot run npx on Windows: " +
|
|
69
69
|
"npm's npx-cli.js was not found (install npm with Node, or run via npx/npm run so npm_execpath is set).",
|
|
70
70
|
);
|
|
71
|
+
discardPrivateOutput(outPath);
|
|
71
72
|
return null;
|
|
72
73
|
}
|
|
73
74
|
try {
|
|
@@ -82,9 +83,13 @@ export async function localTtsGenerate(
|
|
|
82
83
|
? "install for free on-device voice: pip install kokoro-onnx soundfile (or set HYPERFRAMES_PYTHON to a venv that has it)"
|
|
83
84
|
: out.slice(-200) || err.message;
|
|
84
85
|
console.error(`media-use: local voice not enabled (kokoro). ${hint}`);
|
|
86
|
+
discardPrivateOutput(outPath);
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
if (!existsSync(outPath) || statSync(outPath).size === 0) {
|
|
90
|
+
discardPrivateOutput(outPath);
|
|
85
91
|
return null;
|
|
86
92
|
}
|
|
87
|
-
if (!existsSync(outPath) || statSync(outPath).size === 0) return null;
|
|
88
93
|
return {
|
|
89
94
|
localPath: outPath,
|
|
90
95
|
ext: ".wav",
|