@namzu/cli 62.0.1 → 62.1.0
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/CHANGELOG.md +62 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-XDHKC3S3.js → acp-6CGBHCQA.js} +144 -142
- package/dist/chunks/acp-6CGBHCQA.js.map +6 -0
- package/dist/chunks/{activity-command-IPUTIWSY.js → activity-command-LBFSBUTO.js} +15 -15
- package/dist/chunks/{add-V25Q5HXG.js → add-QKYYI3YT.js} +34 -34
- package/dist/chunks/{agent-I7EPRW2H.js → agent-JIYXK5JR.js} +59 -59
- package/dist/chunks/agent-session-NMIKA55B.js +103 -0
- package/dist/chunks/{apply-at-exit-FR464TY4.js → apply-at-exit-7RHQBQPY.js} +7 -7
- package/dist/chunks/{archive-XXGELXD4.js → archive-J4ZUAJ2G.js} +13 -13
- package/dist/chunks/{auth-MPYY5JGI.js → auth-UJVEA47C.js} +13 -13
- package/dist/chunks/{bin-main-XOHYP3G4.js → bin-main-ZH7BZUOM.js} +9 -9
- package/dist/chunks/{binding-5GGFSURJ.js → binding-3PCEKVOO.js} +3 -3
- package/dist/chunks/{browser-KGFFFY3K.js → browser-A67ROZXW.js} +7 -7
- package/dist/chunks/{chat-HPKRZNH3.js → chat-UU23NM3Q.js} +18 -18
- package/dist/chunks/{chunk-Z5Y4B2YZ.js → chunk-224LDNU5.js} +3 -3
- package/dist/chunks/{chunk-WUS3BMCC.js → chunk-25VC6FKF.js} +3 -3
- package/dist/chunks/{chunk-L3VPXYCF.js → chunk-2AMVNSDK.js} +4 -4
- package/dist/chunks/{chunk-Y7HOTNZR.js → chunk-33U2WYBU.js} +96 -85
- package/dist/chunks/chunk-33U2WYBU.js.map +6 -0
- package/dist/chunks/{chunk-HIQPFIIA.js → chunk-35JUKJRN.js} +2 -2
- package/dist/chunks/{chunk-T6C246EO.js → chunk-37ZR2RAN.js} +61 -13
- package/dist/chunks/chunk-37ZR2RAN.js.map +6 -0
- package/dist/chunks/{chunk-MAYUNNCO.js → chunk-3FYZVHC5.js} +6 -6
- package/dist/chunks/{chunk-3R2WLJTS.js → chunk-3L5ICOUV.js} +3 -3
- package/dist/chunks/{chunk-XFXDGALU.js → chunk-3LZDJBR4.js} +3 -3
- package/dist/chunks/{chunk-JIZVBGOC.js → chunk-3T2SSK3Z.js} +4 -4
- package/dist/chunks/{chunk-MHAHZX7U.js → chunk-46VWCTBU.js} +3 -3
- package/dist/chunks/{chunk-Q3XC7YNF.js → chunk-47HEFQUP.js} +2 -2
- package/dist/chunks/{chunk-BLAZEM4K.js → chunk-4EL7KEYZ.js} +3 -3
- package/dist/chunks/{chunk-RNWMX73V.js → chunk-4LHHK42J.js} +2 -2
- package/dist/chunks/{chunk-QR5CH34W.js → chunk-5CS5WG6N.js} +20 -20
- package/dist/chunks/{chunk-JAN5CCP6.js → chunk-5HRR6OQX.js} +7 -7
- package/dist/chunks/{chunk-R3PJX3K2.js → chunk-6MT5PLKV.js} +2 -2
- package/dist/chunks/{chunk-RY4DDC4G.js → chunk-6RDYLP52.js} +2 -2
- package/dist/chunks/{chunk-7L5SU6SJ.js → chunk-6W6ILBXE.js} +15 -9
- package/dist/chunks/chunk-6W6ILBXE.js.map +6 -0
- package/dist/chunks/{chunk-PM5FTMHH.js → chunk-72VCA33E.js} +2 -2
- package/dist/chunks/{chunk-PSWUXFIH.js → chunk-73QLEKJH.js} +6 -6
- package/dist/chunks/{chunk-MHJU6VYG.js → chunk-7BZZGFKW.js} +4 -4
- package/dist/chunks/{chunk-PD3HXBQJ.js → chunk-7ENFV3XO.js} +2 -2
- package/dist/chunks/{chunk-5CZ4LVMK.js → chunk-7P4QN2RO.js} +3 -3
- package/dist/chunks/{chunk-I3O2GYYO.js → chunk-7WU6QNGO.js} +2 -2
- package/dist/chunks/{chunk-2IK7T634.js → chunk-7ZEX6QP7.js} +3 -3
- package/dist/chunks/{chunk-Q3JPM2YR.js → chunk-AD7Z5UEB.js} +2 -2
- package/dist/chunks/{chunk-NZPMAK4R.js → chunk-AHFKN3F5.js} +2 -2
- package/dist/chunks/{chunk-4UX36WUG.js → chunk-AV3WM4TM.js} +17 -7
- package/dist/chunks/chunk-AV3WM4TM.js.map +6 -0
- package/dist/chunks/{chunk-ES5JVNIN.js → chunk-BXO7FXUF.js} +2 -2
- package/dist/chunks/{chunk-Z3334TMV.js → chunk-C56SXFLU.js} +10 -10
- package/dist/chunks/{chunk-F3DXPL7W.js → chunk-CN4W3FVM.js} +5 -5
- package/dist/chunks/{chunk-FPVI455T.js → chunk-CNTMRBQT.js} +2 -2
- package/dist/chunks/{chunk-VR26KRXW.js → chunk-DCNCIL5A.js} +4 -4
- package/dist/chunks/{chunk-FRID6OTI.js → chunk-DHRN4HVT.js} +6 -6
- package/dist/chunks/{chunk-ZF3PIJU3.js → chunk-E2LKNISN.js} +3 -3
- package/dist/chunks/{chunk-GI2HAEIZ.js → chunk-E6BMB5D4.js} +3 -3
- package/dist/chunks/{chunk-VRZQ35XP.js → chunk-EE4ROHCL.js} +5 -5
- package/dist/chunks/{chunk-X53XISBP.js → chunk-ENKSNZTO.js} +11 -3
- package/dist/chunks/{chunk-X53XISBP.js.map → chunk-ENKSNZTO.js.map} +1 -1
- package/dist/chunks/{chunk-DCGBINKP.js → chunk-EV7PYTOP.js} +2 -2
- package/dist/chunks/{chunk-5ZPOPPZS.js → chunk-FHR5FWGS.js} +4 -4
- package/dist/chunks/{chunk-KXT5I2IA.js → chunk-FPKL3N3J.js} +3 -3
- package/dist/chunks/{chunk-OFATBCW3.js → chunk-FSY26KLI.js} +3 -3
- package/dist/chunks/{chunk-RFW54PAJ.js → chunk-G3R447P4.js} +4 -4
- package/dist/chunks/{chunk-WD362LUZ.js → chunk-GPYNBNZV.js} +2 -2
- package/dist/chunks/{chunk-W2FQ5ZYB.js → chunk-GQU2MHNZ.js} +8 -8
- package/dist/chunks/{chunk-YCKZCLQS.js → chunk-H2FQ4QLS.js} +6 -6
- package/dist/chunks/{chunk-GQGUPWXT.js → chunk-H3763MSH.js} +3 -3
- package/dist/chunks/{chunk-F4VM5RP6.js → chunk-IWPDMUHJ.js} +2 -2
- package/dist/chunks/{chunk-UYEYPKTN.js → chunk-IX4KSPGQ.js} +5 -5
- package/dist/chunks/{chunk-BKVZRD7Z.js → chunk-J35W6BKJ.js} +2 -2
- package/dist/chunks/{chunk-6SQX7MYY.js → chunk-J3BP3W2N.js} +2 -2
- package/dist/chunks/{chunk-6VJLJOXM.js → chunk-J6XAYUON.js} +3 -3
- package/dist/chunks/{chunk-HHMZIAE7.js → chunk-JWZLFRII.js} +2 -2
- package/dist/chunks/{chunk-KQV475J4.js → chunk-K3PXRK3Z.js} +8 -8
- package/dist/chunks/{chunk-S7LDCBOF.js → chunk-K6M4OTHF.js} +3 -3
- package/dist/chunks/{chunk-ZPWHSJZL.js → chunk-KCEVJCGE.js} +11 -11
- package/dist/chunks/{chunk-YFH6PPLO.js → chunk-KID2I7VD.js} +2 -2
- package/dist/chunks/{chunk-MB5EOUEL.js → chunk-KK6CWJFZ.js} +2 -2
- package/dist/chunks/{chunk-NRIXMFMF.js → chunk-KKFKXDT4.js} +3 -3
- package/dist/chunks/{chunk-AVCIXXYB.js → chunk-KXGVJ55A.js} +5 -5
- package/dist/chunks/{chunk-3H4L2VND.js → chunk-L4QIJVNX.js} +4 -4
- package/dist/chunks/{chunk-HWYK5R5V.js → chunk-LAU4ESKV.js} +5 -4
- package/dist/chunks/chunk-LAU4ESKV.js.map +6 -0
- package/dist/chunks/{chunk-SIFGFAJK.js → chunk-LIX2TWWW.js} +64 -798
- package/dist/chunks/chunk-LIX2TWWW.js.map +6 -0
- package/dist/chunks/{chunk-FHFVXJYD.js → chunk-LJWCYIQV.js} +10 -10
- package/dist/chunks/{chunk-RJNQRL5C.js → chunk-LO7LBC5T.js} +2 -2
- package/dist/chunks/{chunk-FLSWKVLP.js → chunk-LPYA4GW7.js} +16 -16
- package/dist/chunks/{chunk-Y7GNAKOV.js → chunk-LUH7N5AG.js} +3 -3
- package/dist/chunks/{chunk-ZM5E5GJM.js → chunk-LWBPCNGV.js} +2 -2
- package/dist/chunks/{chunk-43GB5MUE.js → chunk-LYTU6DQ7.js} +2 -2
- package/dist/chunks/chunk-M3Z7V3DJ.js +568 -0
- package/dist/chunks/chunk-M3Z7V3DJ.js.map +6 -0
- package/dist/chunks/{chunk-WZPEJ7TC.js → chunk-MAFRPAQY.js} +13 -518
- package/dist/chunks/chunk-MAFRPAQY.js.map +6 -0
- package/dist/chunks/{chunk-5P3DXU4Y.js → chunk-MGU27EKU.js} +2 -2
- package/dist/chunks/{chunk-5CN3PILD.js → chunk-MNSSDI5Y.js} +3 -3
- package/dist/chunks/{chunk-DVIFMGRP.js → chunk-MYSCS3LD.js} +2 -2
- package/dist/chunks/{chunk-OT2R6PIV.js → chunk-MZWFJMIM.js} +5 -5
- package/dist/chunks/{chunk-HNLFFNCE.js → chunk-N7BCFEJJ.js} +2 -2
- package/dist/chunks/{chunk-NNFYDBI7.js → chunk-NE2J7UOC.js} +2 -2
- package/dist/chunks/{chunk-6NNRR7U5.js → chunk-NEAH7HVP.js} +26 -5
- package/dist/chunks/chunk-NEAH7HVP.js.map +6 -0
- package/dist/chunks/{chunk-HOPL46NH.js → chunk-NGGXYIAN.js} +4 -4
- package/dist/chunks/{chunk-ALONJM6J.js → chunk-NV3AX3OX.js} +4 -4
- package/dist/chunks/{chunk-JCXGOCDK.js → chunk-O4WK5FUN.js} +88 -60
- package/dist/chunks/chunk-O4WK5FUN.js.map +6 -0
- package/dist/chunks/{chunk-W2OTZAXB.js → chunk-ODPKECHM.js} +3 -3
- package/dist/chunks/{chunk-YC4FEFC6.js → chunk-OFUZHNUY.js} +5 -5
- package/dist/chunks/{chunk-VZTSMFNP.js → chunk-OICFYPUQ.js} +44 -44
- package/dist/chunks/{chunk-6LFX4W7C.js → chunk-ON7XQGDA.js} +4 -4
- package/dist/chunks/{chunk-HNR6STBM.js → chunk-ONKMPBPP.js} +2 -2
- package/dist/chunks/{chunk-CFVWDSLP.js → chunk-OT6WAUFD.js} +8 -8
- package/dist/chunks/{chunk-ID7UHZRL.js → chunk-OTVNG2RH.js} +3 -3
- package/dist/chunks/{chunk-5RAKWCRN.js → chunk-P72VIXPI.js} +2 -2
- package/dist/chunks/{chunk-I32DOGZZ.js → chunk-PH2VOYXI.js} +10 -9
- package/dist/chunks/chunk-PH2VOYXI.js.map +6 -0
- package/dist/chunks/{chunk-ODQMMH6C.js → chunk-PPXMVZZM.js} +3 -3
- package/dist/chunks/{chunk-IYTFRC6Q.js → chunk-PR3MVT6X.js} +6 -6
- package/dist/chunks/{chunk-IYTFRC6Q.js.map → chunk-PR3MVT6X.js.map} +1 -1
- package/dist/chunks/{chunk-54PRSLXD.js → chunk-Q3ZCXNLT.js} +4 -4
- package/dist/chunks/{chunk-6VAF56WU.js → chunk-Q4LY4V73.js} +5 -5
- package/dist/chunks/{chunk-67YA6NCA.js → chunk-QH55BL6G.js} +3 -3
- package/dist/chunks/{chunk-2XFMPGZR.js → chunk-QK3MI3SB.js} +49 -19
- package/dist/chunks/chunk-QK3MI3SB.js.map +6 -0
- package/dist/chunks/{chunk-4L67MGBK.js → chunk-QS3W6PHW.js} +7 -7
- package/dist/chunks/{chunk-OAJIF4BZ.js → chunk-RAD42QX6.js} +2 -2
- package/dist/chunks/{chunk-GI7I4Z3C.js → chunk-RF6XIV7O.js} +5 -5
- package/dist/chunks/{chunk-2DMP56LU.js → chunk-RLT3CQPF.js} +4 -4
- package/dist/chunks/{chunk-LJSMDUFY.js → chunk-S3MI73RJ.js} +3 -3
- package/dist/chunks/{chunk-DD4YRQRY.js → chunk-S4O2YFPC.js} +13 -13
- package/dist/chunks/{chunk-J72ATHQJ.js → chunk-S5XNNB36.js} +1313 -644
- package/dist/chunks/chunk-S5XNNB36.js.map +6 -0
- package/dist/chunks/{chunk-PPDREHTL.js → chunk-SIJ5UTXM.js} +3 -3
- package/dist/chunks/chunk-SJIDADHD.js +800 -0
- package/dist/chunks/chunk-SJIDADHD.js.map +6 -0
- package/dist/chunks/{chunk-NP7ZN2MJ.js → chunk-SOFHWWJH.js} +2 -2
- package/dist/chunks/{chunk-PPEFN2RU.js → chunk-SOUXHV54.js} +2 -2
- package/dist/chunks/{chunk-E7SV3COW.js → chunk-SRY4THD4.js} +9 -9
- package/dist/chunks/{chunk-2Y3AG5SV.js → chunk-ST23JVRU.js} +5 -5
- package/dist/chunks/{chunk-GHYEVNIG.js → chunk-SUR4OMA6.js} +9 -9
- package/dist/chunks/{chunk-DV6W7RWZ.js → chunk-SVQV6RXR.js} +3 -3
- package/dist/chunks/{chunk-ECWJCDCK.js → chunk-T7LGBJ3Y.js} +2 -2
- package/dist/chunks/{chunk-SXLTOS4V.js → chunk-T7WRPQ65.js} +2 -2
- package/dist/chunks/{chunk-WUGXLX6O.js → chunk-TIXLIDHF.js} +2 -2
- package/dist/chunks/{chunk-GL74BFJI.js → chunk-TJVM2KTD.js} +9 -9
- package/dist/chunks/{chunk-WAHSZG2X.js → chunk-TQGVEISD.js} +2 -2
- package/dist/chunks/{chunk-HJ7F7C73.js → chunk-UI7QTTM2.js} +6 -6
- package/dist/chunks/{chunk-GNTKC72Z.js → chunk-UM3XWJVJ.js} +2 -2
- package/dist/chunks/{chunk-WMFEVIDC.js → chunk-UOX7WH3J.js} +3 -3
- package/dist/chunks/{chunk-IWVZTMTO.js → chunk-UP77FF2W.js} +3 -3
- package/dist/chunks/{chunk-FEUHUXWS.js → chunk-VISMRN4J.js} +4 -4
- package/dist/chunks/{chunk-YLAWGDZY.js → chunk-VPWFFR5J.js} +2 -2
- package/dist/chunks/{chunk-TECFNZPY.js → chunk-VQN7GC3B.js} +12 -12
- package/dist/chunks/{chunk-C3JE4IVH.js → chunk-W7XW3NXA.js} +4 -4
- package/dist/chunks/{chunk-2PAS45UY.js → chunk-WSB2MCTI.js} +2 -2
- package/dist/chunks/{chunk-K3BICM3T.js → chunk-WSPWJYLQ.js} +7 -7
- package/dist/chunks/{chunk-D6D5D6UJ.js → chunk-XGEW2R3P.js} +2 -2
- package/dist/chunks/{chunk-JF3HXJFC.js → chunk-XVKQQTVV.js} +2 -2
- package/dist/chunks/{chunk-WDMO2XAW.js → chunk-XXXJOYTQ.js} +2 -2
- package/dist/chunks/{chunk-LCF3ZVDZ.js → chunk-Y24UJ26G.js} +3 -3
- package/dist/chunks/{chunk-MD6OIFFN.js → chunk-YFIKYLOB.js} +9 -9
- package/dist/chunks/{chunk-RFCS6LFH.js → chunk-YXQG466V.js} +3 -3
- package/dist/chunks/{chunk-L55M6CYI.js → chunk-ZACF6CVM.js} +2 -2
- package/dist/chunks/{cli-runtime-O6RCYI3Y.js → cli-runtime-RAHU2FF7.js} +24 -24
- package/dist/chunks/{commands-E5ZM2I2Z.js → commands-252QNZKK.js} +6 -6
- package/dist/chunks/{config-EBPES6V6.js → config-CX6PRTEY.js} +14 -14
- package/dist/chunks/{cost-QRWAQ3XB.js → cost-L3RROPK6.js} +5 -5
- package/dist/chunks/{crash-report-ANVLQYLO.js → crash-report-NND4WWJA.js} +6 -6
- package/dist/chunks/{desktop-host-schedule-tool-RG4EV45N.js → desktop-host-schedule-tool-IKWEHI4H.js} +33 -33
- package/dist/chunks/{dist-N32BP5B4.js → dist-2MHNJVOM.js} +14 -2
- package/dist/chunks/{dist-ROGRBORV.js → dist-3DMPFVGW.js} +3 -3
- package/dist/chunks/{dist-FVTPQX57.js → dist-7TMA3NQ7.js} +2 -2
- package/dist/chunks/{dist-TEJDPUVZ.js → dist-DFKDXC5Q.js} +2 -2
- package/dist/chunks/{dist-EKAXB5R5.js → dist-MFWZVDSA.js} +2 -2
- package/dist/chunks/{dist-CM4LL25P.js → dist-TH2HM2GH.js} +2 -2
- package/dist/chunks/{dist-Y3CNYMQK.js → dist-UAUXP4UC.js} +2 -2
- package/dist/chunks/{dist-ACZRXAK4.js → dist-YXOQEPCZ.js} +2 -2
- package/dist/chunks/{doctor-Y6STEUN5.js → doctor-O5OZR6YG.js} +49 -46
- package/dist/chunks/{drain-H6TQDCQI.js → drain-LUUO4FI3.js} +22 -22
- package/dist/chunks/{entry-4TMEDNAU.js → entry-XPFYPIDS.js} +6 -6
- package/dist/chunks/{eval-6O2RPJ35.js → eval-V4HUXXC2.js} +18 -12
- package/dist/chunks/{eval-6O2RPJ35.js.map → eval-V4HUXXC2.js.map} +1 -1
- package/dist/chunks/{exec-W5QZD5IX.js → exec-QYZKP6RS.js} +72 -54
- package/dist/chunks/exec-QYZKP6RS.js.map +6 -0
- package/dist/chunks/{extension-7PBXYICA.js → extension-AVJ2LV2G.js} +6 -6
- package/dist/chunks/{feed-FQKHFH3J.js → feed-UKN7XNCC.js} +4 -4
- package/dist/chunks/{home-5EQVZ7PU.js → home-A7434CUG.js} +3 -3
- package/dist/chunks/{homes-IIDNJKRK.js → homes-U4IALPDB.js} +5 -5
- package/dist/chunks/{hooks-NDWCMIVN.js → hooks-TQ7KEIX5.js} +24 -24
- package/dist/chunks/{hooks-report-CAWNXYJS.js → hooks-report-R6KBKZOI.js} +20 -20
- package/dist/chunks/{host-HGZEZXLB.js → host-S2OSQNIF.js} +12 -12
- package/dist/chunks/{host-queries-DOXYXFOD.js → host-queries-VKIZCSD3.js} +18 -18
- package/dist/chunks/{installed-list-OJNSGNIT.js → installed-list-VGP7FMFB.js} +4 -4
- package/dist/chunks/{launch-NVHWNZSA.js → launch-LWAQXYIA.js} +29 -29
- package/dist/chunks/{learn-FLJL53VN.js → learn-GIKQBJN5.js} +18 -18
- package/dist/chunks/{learn-builtin-XJLP6EZ3.js → learn-builtin-HOFMWHQP.js} +21 -21
- package/dist/chunks/{lifecycle-I5PHIQPV.js → lifecycle-4OBW7B42.js} +39 -39
- package/dist/chunks/{list-BAQT6SDH.js → list-O2I3ECME.js} +20 -20
- package/dist/chunks/{live-UXV3V4JM.js → live-DCRF5F6P.js} +49 -45
- package/dist/chunks/{load-WSB7ECXC.js → load-LHCKRZFB.js} +11 -11
- package/dist/chunks/{logs-WN65RRIX.js → logs-UMD7HBUO.js} +4 -4
- package/dist/chunks/{mcp-D3BUCLEX.js → mcp-35NTHODS.js} +27 -27
- package/dist/chunks/{mcp-serve-QRXGVK26.js → mcp-serve-PCEC55MI.js} +19 -19
- package/dist/chunks/{message-command-A4AEJCMT.js → message-command-34BVXT5R.js} +65 -65
- package/dist/chunks/{open-AOHMCTVP.js → open-DK276PG4.js} +8 -8
- package/dist/chunks/{operator-tools-LHXXEP4G.js → operator-tools-RG247DOI.js} +16 -16
- package/dist/chunks/{output-schema-QHSTBSFC.js → output-schema-WBFGDY7D.js} +3 -3
- package/dist/chunks/{pal-NI3NH6SX.js → pal-OBXTNMGX.js} +16 -16
- package/dist/chunks/{peers-3QLWWGWY.js → peers-RBR7QYPG.js} +9 -9
- package/dist/chunks/{peers-B5TCECUP.js → peers-ZSKWVLA4.js} +21 -21
- package/dist/chunks/{plugin-GUNR5UED.js → plugin-PBIAJSYH.js} +52 -51
- package/dist/chunks/plugin-PBIAJSYH.js.map +6 -0
- package/dist/chunks/{providers-A6Q444EB.js → providers-EW4LE5AZ.js} +11 -11
- package/dist/chunks/{providers-G2UTRKAK.js → providers-V4MMZ7X5.js} +18 -18
- package/dist/chunks/{pty-M4K6JLLS.js → pty-XV7IOHGX.js} +3 -3
- package/dist/chunks/resume-GA7INROY.js +27 -0
- package/dist/chunks/{resume-command-JUKPZVVL.js → resume-command-VABS2KGI.js} +4 -4
- package/dist/chunks/{running-ZPS6OB4K.js → running-LDQLXUGW.js} +4 -4
- package/dist/chunks/{schedule-PCKX74XC.js → schedule-L5AAS4JQ.js} +12 -12
- package/dist/chunks/{send-6R5NCGY5.js → send-2KB5VRUT.js} +20 -20
- package/dist/chunks/send-person-EFHYG2GX.js +34 -0
- package/dist/chunks/{servers-F23WQJDI.js → servers-WIKRFBKU.js} +8 -8
- package/dist/chunks/{service-NI642AJQ.js → service-LXQA5RI7.js} +40 -40
- package/dist/chunks/{session-options-CRFJNFLM.js → session-options-2LDJWGYZ.js} +5 -5
- package/dist/chunks/{setting-cli-QEUWWR2W.js → setting-cli-6T6H6TJ7.js} +14 -14
- package/dist/chunks/{skills-VDOUBAYU.js → skills-YAIICRGB.js} +28 -28
- package/dist/chunks/{source-deliveries-VWFHCFRQ.js → source-deliveries-VB4F2DV5.js} +18 -18
- package/dist/chunks/{start-check-K6BTRM72.js → start-check-TE3CE7NZ.js} +2 -2
- package/dist/chunks/{startup-failure-WREVDPC2.js → startup-failure-PBWJF4DV.js} +2 -2
- package/dist/chunks/{state-LJR3IEAF.js → state-UGZ334GT.js} +21 -21
- package/dist/chunks/{store-T7M3ICIS.js → store-3REZKYH5.js} +9 -9
- package/dist/chunks/{store-U5LOY365.js → store-75XB557Z.js} +13 -13
- package/dist/chunks/{store-C7SEV4YB.js → store-RV6QGLU2.js} +4 -4
- package/dist/chunks/{store-L7CJVHD7.js → store-VQ5OTKXT.js} +3 -3
- package/dist/chunks/{tui-5YVBMPEE.js → tui-IEPKJA46.js} +114 -108
- package/dist/chunks/tui-IEPKJA46.js.map +6 -0
- package/dist/chunks/{update-RO3UZBFM.js → update-NPWMEWAL.js} +8 -8
- package/dist/chunks/{watch-4CX3QMDL.js → watch-SI7TFFVA.js} +112 -111
- package/dist/chunks/watch-SI7TFFVA.js.map +6 -0
- package/dist/chunks/{windows-home-WVGVXCRL.js → windows-home-4XSPGUOR.js} +5 -5
- package/dist/chunks/{workspaces-B46MHVPJ.js → workspaces-UB6NF7LY.js} +17 -17
- package/dist/chunks/{worktree-57C3ECED.js → worktree-QCSW5VQC.js} +29 -29
- package/dist/commands/eval.d.ts.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/config/hook-common-shape.d.ts.map +1 -1
- package/dist/config/hooks-report.d.ts +1 -1
- package/dist/config/hooks-report.d.ts.map +1 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/index.js +49 -46
- package/dist/integrations/mcp/servers.d.ts +13 -0
- package/dist/integrations/mcp/servers.d.ts.map +1 -1
- package/dist/integrations/plugins/hook-entries.d.ts.map +1 -1
- package/dist/integrations/plugins/remote-marketplace.d.ts +12 -0
- package/dist/integrations/plugins/remote-marketplace.d.ts.map +1 -1
- package/dist/integrations/plugins/runtime.d.ts +1 -1
- package/dist/integrations/plugins/runtime.d.ts.map +1 -1
- package/dist/integrations/plugins/surface.d.ts +2 -2
- package/dist/integrations/plugins/surface.d.ts.map +1 -1
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/state/project-lookup.d.ts.map +1 -1
- package/dist/integrations/subagents/agent-hooks.d.ts.map +1 -1
- package/dist/integrations/subagents/worktree-driver.d.ts +11 -0
- package/dist/integrations/subagents/worktree-driver.d.ts.map +1 -1
- package/dist/integrations/trust/folder-grants.d.ts.map +1 -1
- package/dist/integrations/worktrees/managed.d.ts +35 -2
- package/dist/integrations/worktrees/managed.d.ts.map +1 -1
- package/dist/sdk-peer.js +13 -1
- package/dist/skills/skill-hooks.d.ts.map +1 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/status-line/run-command.d.ts +5 -1
- package/dist/tui/status-line/run-command.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/chunks/acp-XDHKC3S3.js.map +0 -6
- package/dist/chunks/agent-session-KUU5HEMJ.js +0 -103
- package/dist/chunks/chunk-2XFMPGZR.js.map +0 -6
- package/dist/chunks/chunk-4UX36WUG.js.map +0 -6
- package/dist/chunks/chunk-6NNRR7U5.js.map +0 -6
- package/dist/chunks/chunk-7L5SU6SJ.js.map +0 -6
- package/dist/chunks/chunk-BBTPD3DU.js +0 -19
- package/dist/chunks/chunk-BBTPD3DU.js.map +0 -6
- package/dist/chunks/chunk-HWYK5R5V.js.map +0 -6
- package/dist/chunks/chunk-I32DOGZZ.js.map +0 -6
- package/dist/chunks/chunk-J72ATHQJ.js.map +0 -6
- package/dist/chunks/chunk-JCXGOCDK.js.map +0 -6
- package/dist/chunks/chunk-SIFGFAJK.js.map +0 -6
- package/dist/chunks/chunk-T6C246EO.js.map +0 -6
- package/dist/chunks/chunk-WZPEJ7TC.js.map +0 -6
- package/dist/chunks/chunk-Y7HOTNZR.js.map +0 -6
- package/dist/chunks/exec-W5QZD5IX.js.map +0 -6
- package/dist/chunks/plugin-GUNR5UED.js.map +0 -6
- package/dist/chunks/resume-RXOBUAEA.js +0 -27
- package/dist/chunks/send-person-I7B6Y2V3.js +0 -34
- package/dist/chunks/tui-5YVBMPEE.js.map +0 -6
- package/dist/chunks/watch-4CX3QMDL.js.map +0 -6
- /package/dist/chunks/{activity-command-IPUTIWSY.js.map → activity-command-LBFSBUTO.js.map} +0 -0
- /package/dist/chunks/{add-V25Q5HXG.js.map → add-QKYYI3YT.js.map} +0 -0
- /package/dist/chunks/{agent-I7EPRW2H.js.map → agent-JIYXK5JR.js.map} +0 -0
- /package/dist/chunks/{agent-session-KUU5HEMJ.js.map → agent-session-NMIKA55B.js.map} +0 -0
- /package/dist/chunks/{apply-at-exit-FR464TY4.js.map → apply-at-exit-7RHQBQPY.js.map} +0 -0
- /package/dist/chunks/{archive-XXGELXD4.js.map → archive-J4ZUAJ2G.js.map} +0 -0
- /package/dist/chunks/{auth-MPYY5JGI.js.map → auth-UJVEA47C.js.map} +0 -0
- /package/dist/chunks/{bin-main-XOHYP3G4.js.map → bin-main-ZH7BZUOM.js.map} +0 -0
- /package/dist/chunks/{binding-5GGFSURJ.js.map → binding-3PCEKVOO.js.map} +0 -0
- /package/dist/chunks/{browser-KGFFFY3K.js.map → browser-A67ROZXW.js.map} +0 -0
- /package/dist/chunks/{chat-HPKRZNH3.js.map → chat-UU23NM3Q.js.map} +0 -0
- /package/dist/chunks/{chunk-Z5Y4B2YZ.js.map → chunk-224LDNU5.js.map} +0 -0
- /package/dist/chunks/{chunk-WUS3BMCC.js.map → chunk-25VC6FKF.js.map} +0 -0
- /package/dist/chunks/{chunk-L3VPXYCF.js.map → chunk-2AMVNSDK.js.map} +0 -0
- /package/dist/chunks/{chunk-HIQPFIIA.js.map → chunk-35JUKJRN.js.map} +0 -0
- /package/dist/chunks/{chunk-MAYUNNCO.js.map → chunk-3FYZVHC5.js.map} +0 -0
- /package/dist/chunks/{chunk-3R2WLJTS.js.map → chunk-3L5ICOUV.js.map} +0 -0
- /package/dist/chunks/{chunk-XFXDGALU.js.map → chunk-3LZDJBR4.js.map} +0 -0
- /package/dist/chunks/{chunk-JIZVBGOC.js.map → chunk-3T2SSK3Z.js.map} +0 -0
- /package/dist/chunks/{chunk-MHAHZX7U.js.map → chunk-46VWCTBU.js.map} +0 -0
- /package/dist/chunks/{chunk-Q3XC7YNF.js.map → chunk-47HEFQUP.js.map} +0 -0
- /package/dist/chunks/{chunk-BLAZEM4K.js.map → chunk-4EL7KEYZ.js.map} +0 -0
- /package/dist/chunks/{chunk-RNWMX73V.js.map → chunk-4LHHK42J.js.map} +0 -0
- /package/dist/chunks/{chunk-QR5CH34W.js.map → chunk-5CS5WG6N.js.map} +0 -0
- /package/dist/chunks/{chunk-JAN5CCP6.js.map → chunk-5HRR6OQX.js.map} +0 -0
- /package/dist/chunks/{chunk-R3PJX3K2.js.map → chunk-6MT5PLKV.js.map} +0 -0
- /package/dist/chunks/{chunk-RY4DDC4G.js.map → chunk-6RDYLP52.js.map} +0 -0
- /package/dist/chunks/{chunk-PM5FTMHH.js.map → chunk-72VCA33E.js.map} +0 -0
- /package/dist/chunks/{chunk-PSWUXFIH.js.map → chunk-73QLEKJH.js.map} +0 -0
- /package/dist/chunks/{chunk-MHJU6VYG.js.map → chunk-7BZZGFKW.js.map} +0 -0
- /package/dist/chunks/{chunk-PD3HXBQJ.js.map → chunk-7ENFV3XO.js.map} +0 -0
- /package/dist/chunks/{chunk-5CZ4LVMK.js.map → chunk-7P4QN2RO.js.map} +0 -0
- /package/dist/chunks/{chunk-I3O2GYYO.js.map → chunk-7WU6QNGO.js.map} +0 -0
- /package/dist/chunks/{chunk-2IK7T634.js.map → chunk-7ZEX6QP7.js.map} +0 -0
- /package/dist/chunks/{chunk-Q3JPM2YR.js.map → chunk-AD7Z5UEB.js.map} +0 -0
- /package/dist/chunks/{chunk-NZPMAK4R.js.map → chunk-AHFKN3F5.js.map} +0 -0
- /package/dist/chunks/{chunk-ES5JVNIN.js.map → chunk-BXO7FXUF.js.map} +0 -0
- /package/dist/chunks/{chunk-Z3334TMV.js.map → chunk-C56SXFLU.js.map} +0 -0
- /package/dist/chunks/{chunk-F3DXPL7W.js.map → chunk-CN4W3FVM.js.map} +0 -0
- /package/dist/chunks/{chunk-FPVI455T.js.map → chunk-CNTMRBQT.js.map} +0 -0
- /package/dist/chunks/{chunk-VR26KRXW.js.map → chunk-DCNCIL5A.js.map} +0 -0
- /package/dist/chunks/{chunk-FRID6OTI.js.map → chunk-DHRN4HVT.js.map} +0 -0
- /package/dist/chunks/{chunk-ZF3PIJU3.js.map → chunk-E2LKNISN.js.map} +0 -0
- /package/dist/chunks/{chunk-GI2HAEIZ.js.map → chunk-E6BMB5D4.js.map} +0 -0
- /package/dist/chunks/{chunk-VRZQ35XP.js.map → chunk-EE4ROHCL.js.map} +0 -0
- /package/dist/chunks/{chunk-DCGBINKP.js.map → chunk-EV7PYTOP.js.map} +0 -0
- /package/dist/chunks/{chunk-5ZPOPPZS.js.map → chunk-FHR5FWGS.js.map} +0 -0
- /package/dist/chunks/{chunk-KXT5I2IA.js.map → chunk-FPKL3N3J.js.map} +0 -0
- /package/dist/chunks/{chunk-OFATBCW3.js.map → chunk-FSY26KLI.js.map} +0 -0
- /package/dist/chunks/{chunk-RFW54PAJ.js.map → chunk-G3R447P4.js.map} +0 -0
- /package/dist/chunks/{chunk-WD362LUZ.js.map → chunk-GPYNBNZV.js.map} +0 -0
- /package/dist/chunks/{chunk-W2FQ5ZYB.js.map → chunk-GQU2MHNZ.js.map} +0 -0
- /package/dist/chunks/{chunk-YCKZCLQS.js.map → chunk-H2FQ4QLS.js.map} +0 -0
- /package/dist/chunks/{chunk-GQGUPWXT.js.map → chunk-H3763MSH.js.map} +0 -0
- /package/dist/chunks/{chunk-F4VM5RP6.js.map → chunk-IWPDMUHJ.js.map} +0 -0
- /package/dist/chunks/{chunk-UYEYPKTN.js.map → chunk-IX4KSPGQ.js.map} +0 -0
- /package/dist/chunks/{chunk-BKVZRD7Z.js.map → chunk-J35W6BKJ.js.map} +0 -0
- /package/dist/chunks/{chunk-6SQX7MYY.js.map → chunk-J3BP3W2N.js.map} +0 -0
- /package/dist/chunks/{chunk-6VJLJOXM.js.map → chunk-J6XAYUON.js.map} +0 -0
- /package/dist/chunks/{chunk-HHMZIAE7.js.map → chunk-JWZLFRII.js.map} +0 -0
- /package/dist/chunks/{chunk-KQV475J4.js.map → chunk-K3PXRK3Z.js.map} +0 -0
- /package/dist/chunks/{chunk-S7LDCBOF.js.map → chunk-K6M4OTHF.js.map} +0 -0
- /package/dist/chunks/{chunk-ZPWHSJZL.js.map → chunk-KCEVJCGE.js.map} +0 -0
- /package/dist/chunks/{chunk-YFH6PPLO.js.map → chunk-KID2I7VD.js.map} +0 -0
- /package/dist/chunks/{chunk-MB5EOUEL.js.map → chunk-KK6CWJFZ.js.map} +0 -0
- /package/dist/chunks/{chunk-NRIXMFMF.js.map → chunk-KKFKXDT4.js.map} +0 -0
- /package/dist/chunks/{chunk-AVCIXXYB.js.map → chunk-KXGVJ55A.js.map} +0 -0
- /package/dist/chunks/{chunk-3H4L2VND.js.map → chunk-L4QIJVNX.js.map} +0 -0
- /package/dist/chunks/{chunk-FHFVXJYD.js.map → chunk-LJWCYIQV.js.map} +0 -0
- /package/dist/chunks/{chunk-RJNQRL5C.js.map → chunk-LO7LBC5T.js.map} +0 -0
- /package/dist/chunks/{chunk-FLSWKVLP.js.map → chunk-LPYA4GW7.js.map} +0 -0
- /package/dist/chunks/{chunk-Y7GNAKOV.js.map → chunk-LUH7N5AG.js.map} +0 -0
- /package/dist/chunks/{chunk-ZM5E5GJM.js.map → chunk-LWBPCNGV.js.map} +0 -0
- /package/dist/chunks/{chunk-43GB5MUE.js.map → chunk-LYTU6DQ7.js.map} +0 -0
- /package/dist/chunks/{chunk-5P3DXU4Y.js.map → chunk-MGU27EKU.js.map} +0 -0
- /package/dist/chunks/{chunk-5CN3PILD.js.map → chunk-MNSSDI5Y.js.map} +0 -0
- /package/dist/chunks/{chunk-DVIFMGRP.js.map → chunk-MYSCS3LD.js.map} +0 -0
- /package/dist/chunks/{chunk-OT2R6PIV.js.map → chunk-MZWFJMIM.js.map} +0 -0
- /package/dist/chunks/{chunk-HNLFFNCE.js.map → chunk-N7BCFEJJ.js.map} +0 -0
- /package/dist/chunks/{chunk-NNFYDBI7.js.map → chunk-NE2J7UOC.js.map} +0 -0
- /package/dist/chunks/{chunk-HOPL46NH.js.map → chunk-NGGXYIAN.js.map} +0 -0
- /package/dist/chunks/{chunk-ALONJM6J.js.map → chunk-NV3AX3OX.js.map} +0 -0
- /package/dist/chunks/{chunk-W2OTZAXB.js.map → chunk-ODPKECHM.js.map} +0 -0
- /package/dist/chunks/{chunk-YC4FEFC6.js.map → chunk-OFUZHNUY.js.map} +0 -0
- /package/dist/chunks/{chunk-VZTSMFNP.js.map → chunk-OICFYPUQ.js.map} +0 -0
- /package/dist/chunks/{chunk-6LFX4W7C.js.map → chunk-ON7XQGDA.js.map} +0 -0
- /package/dist/chunks/{chunk-HNR6STBM.js.map → chunk-ONKMPBPP.js.map} +0 -0
- /package/dist/chunks/{chunk-CFVWDSLP.js.map → chunk-OT6WAUFD.js.map} +0 -0
- /package/dist/chunks/{chunk-ID7UHZRL.js.map → chunk-OTVNG2RH.js.map} +0 -0
- /package/dist/chunks/{chunk-5RAKWCRN.js.map → chunk-P72VIXPI.js.map} +0 -0
- /package/dist/chunks/{chunk-ODQMMH6C.js.map → chunk-PPXMVZZM.js.map} +0 -0
- /package/dist/chunks/{chunk-54PRSLXD.js.map → chunk-Q3ZCXNLT.js.map} +0 -0
- /package/dist/chunks/{chunk-6VAF56WU.js.map → chunk-Q4LY4V73.js.map} +0 -0
- /package/dist/chunks/{chunk-67YA6NCA.js.map → chunk-QH55BL6G.js.map} +0 -0
- /package/dist/chunks/{chunk-4L67MGBK.js.map → chunk-QS3W6PHW.js.map} +0 -0
- /package/dist/chunks/{chunk-OAJIF4BZ.js.map → chunk-RAD42QX6.js.map} +0 -0
- /package/dist/chunks/{chunk-GI7I4Z3C.js.map → chunk-RF6XIV7O.js.map} +0 -0
- /package/dist/chunks/{chunk-2DMP56LU.js.map → chunk-RLT3CQPF.js.map} +0 -0
- /package/dist/chunks/{chunk-LJSMDUFY.js.map → chunk-S3MI73RJ.js.map} +0 -0
- /package/dist/chunks/{chunk-DD4YRQRY.js.map → chunk-S4O2YFPC.js.map} +0 -0
- /package/dist/chunks/{chunk-PPDREHTL.js.map → chunk-SIJ5UTXM.js.map} +0 -0
- /package/dist/chunks/{chunk-NP7ZN2MJ.js.map → chunk-SOFHWWJH.js.map} +0 -0
- /package/dist/chunks/{chunk-PPEFN2RU.js.map → chunk-SOUXHV54.js.map} +0 -0
- /package/dist/chunks/{chunk-E7SV3COW.js.map → chunk-SRY4THD4.js.map} +0 -0
- /package/dist/chunks/{chunk-2Y3AG5SV.js.map → chunk-ST23JVRU.js.map} +0 -0
- /package/dist/chunks/{chunk-GHYEVNIG.js.map → chunk-SUR4OMA6.js.map} +0 -0
- /package/dist/chunks/{chunk-DV6W7RWZ.js.map → chunk-SVQV6RXR.js.map} +0 -0
- /package/dist/chunks/{chunk-ECWJCDCK.js.map → chunk-T7LGBJ3Y.js.map} +0 -0
- /package/dist/chunks/{chunk-SXLTOS4V.js.map → chunk-T7WRPQ65.js.map} +0 -0
- /package/dist/chunks/{chunk-WUGXLX6O.js.map → chunk-TIXLIDHF.js.map} +0 -0
- /package/dist/chunks/{chunk-GL74BFJI.js.map → chunk-TJVM2KTD.js.map} +0 -0
- /package/dist/chunks/{chunk-WAHSZG2X.js.map → chunk-TQGVEISD.js.map} +0 -0
- /package/dist/chunks/{chunk-HJ7F7C73.js.map → chunk-UI7QTTM2.js.map} +0 -0
- /package/dist/chunks/{chunk-GNTKC72Z.js.map → chunk-UM3XWJVJ.js.map} +0 -0
- /package/dist/chunks/{chunk-WMFEVIDC.js.map → chunk-UOX7WH3J.js.map} +0 -0
- /package/dist/chunks/{chunk-IWVZTMTO.js.map → chunk-UP77FF2W.js.map} +0 -0
- /package/dist/chunks/{chunk-FEUHUXWS.js.map → chunk-VISMRN4J.js.map} +0 -0
- /package/dist/chunks/{chunk-YLAWGDZY.js.map → chunk-VPWFFR5J.js.map} +0 -0
- /package/dist/chunks/{chunk-TECFNZPY.js.map → chunk-VQN7GC3B.js.map} +0 -0
- /package/dist/chunks/{chunk-C3JE4IVH.js.map → chunk-W7XW3NXA.js.map} +0 -0
- /package/dist/chunks/{chunk-2PAS45UY.js.map → chunk-WSB2MCTI.js.map} +0 -0
- /package/dist/chunks/{chunk-K3BICM3T.js.map → chunk-WSPWJYLQ.js.map} +0 -0
- /package/dist/chunks/{chunk-D6D5D6UJ.js.map → chunk-XGEW2R3P.js.map} +0 -0
- /package/dist/chunks/{chunk-JF3HXJFC.js.map → chunk-XVKQQTVV.js.map} +0 -0
- /package/dist/chunks/{chunk-WDMO2XAW.js.map → chunk-XXXJOYTQ.js.map} +0 -0
- /package/dist/chunks/{chunk-LCF3ZVDZ.js.map → chunk-Y24UJ26G.js.map} +0 -0
- /package/dist/chunks/{chunk-MD6OIFFN.js.map → chunk-YFIKYLOB.js.map} +0 -0
- /package/dist/chunks/{chunk-RFCS6LFH.js.map → chunk-YXQG466V.js.map} +0 -0
- /package/dist/chunks/{chunk-L55M6CYI.js.map → chunk-ZACF6CVM.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-O6RCYI3Y.js.map → cli-runtime-RAHU2FF7.js.map} +0 -0
- /package/dist/chunks/{commands-E5ZM2I2Z.js.map → commands-252QNZKK.js.map} +0 -0
- /package/dist/chunks/{config-EBPES6V6.js.map → config-CX6PRTEY.js.map} +0 -0
- /package/dist/chunks/{cost-QRWAQ3XB.js.map → cost-L3RROPK6.js.map} +0 -0
- /package/dist/chunks/{crash-report-ANVLQYLO.js.map → crash-report-NND4WWJA.js.map} +0 -0
- /package/dist/chunks/{desktop-host-schedule-tool-RG4EV45N.js.map → desktop-host-schedule-tool-IKWEHI4H.js.map} +0 -0
- /package/dist/chunks/{dist-N32BP5B4.js.map → dist-2MHNJVOM.js.map} +0 -0
- /package/dist/chunks/{dist-ROGRBORV.js.map → dist-3DMPFVGW.js.map} +0 -0
- /package/dist/chunks/{dist-FVTPQX57.js.map → dist-7TMA3NQ7.js.map} +0 -0
- /package/dist/chunks/{dist-TEJDPUVZ.js.map → dist-DFKDXC5Q.js.map} +0 -0
- /package/dist/chunks/{dist-EKAXB5R5.js.map → dist-MFWZVDSA.js.map} +0 -0
- /package/dist/chunks/{dist-CM4LL25P.js.map → dist-TH2HM2GH.js.map} +0 -0
- /package/dist/chunks/{dist-Y3CNYMQK.js.map → dist-UAUXP4UC.js.map} +0 -0
- /package/dist/chunks/{dist-ACZRXAK4.js.map → dist-YXOQEPCZ.js.map} +0 -0
- /package/dist/chunks/{doctor-Y6STEUN5.js.map → doctor-O5OZR6YG.js.map} +0 -0
- /package/dist/chunks/{drain-H6TQDCQI.js.map → drain-LUUO4FI3.js.map} +0 -0
- /package/dist/chunks/{entry-4TMEDNAU.js.map → entry-XPFYPIDS.js.map} +0 -0
- /package/dist/chunks/{extension-7PBXYICA.js.map → extension-AVJ2LV2G.js.map} +0 -0
- /package/dist/chunks/{feed-FQKHFH3J.js.map → feed-UKN7XNCC.js.map} +0 -0
- /package/dist/chunks/{home-5EQVZ7PU.js.map → home-A7434CUG.js.map} +0 -0
- /package/dist/chunks/{homes-IIDNJKRK.js.map → homes-U4IALPDB.js.map} +0 -0
- /package/dist/chunks/{hooks-NDWCMIVN.js.map → hooks-TQ7KEIX5.js.map} +0 -0
- /package/dist/chunks/{hooks-report-CAWNXYJS.js.map → hooks-report-R6KBKZOI.js.map} +0 -0
- /package/dist/chunks/{host-HGZEZXLB.js.map → host-S2OSQNIF.js.map} +0 -0
- /package/dist/chunks/{host-queries-DOXYXFOD.js.map → host-queries-VKIZCSD3.js.map} +0 -0
- /package/dist/chunks/{installed-list-OJNSGNIT.js.map → installed-list-VGP7FMFB.js.map} +0 -0
- /package/dist/chunks/{launch-NVHWNZSA.js.map → launch-LWAQXYIA.js.map} +0 -0
- /package/dist/chunks/{learn-FLJL53VN.js.map → learn-GIKQBJN5.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-XJLP6EZ3.js.map → learn-builtin-HOFMWHQP.js.map} +0 -0
- /package/dist/chunks/{lifecycle-I5PHIQPV.js.map → lifecycle-4OBW7B42.js.map} +0 -0
- /package/dist/chunks/{list-BAQT6SDH.js.map → list-O2I3ECME.js.map} +0 -0
- /package/dist/chunks/{live-UXV3V4JM.js.map → live-DCRF5F6P.js.map} +0 -0
- /package/dist/chunks/{load-WSB7ECXC.js.map → load-LHCKRZFB.js.map} +0 -0
- /package/dist/chunks/{logs-WN65RRIX.js.map → logs-UMD7HBUO.js.map} +0 -0
- /package/dist/chunks/{mcp-D3BUCLEX.js.map → mcp-35NTHODS.js.map} +0 -0
- /package/dist/chunks/{mcp-serve-QRXGVK26.js.map → mcp-serve-PCEC55MI.js.map} +0 -0
- /package/dist/chunks/{message-command-A4AEJCMT.js.map → message-command-34BVXT5R.js.map} +0 -0
- /package/dist/chunks/{open-AOHMCTVP.js.map → open-DK276PG4.js.map} +0 -0
- /package/dist/chunks/{operator-tools-LHXXEP4G.js.map → operator-tools-RG247DOI.js.map} +0 -0
- /package/dist/chunks/{output-schema-QHSTBSFC.js.map → output-schema-WBFGDY7D.js.map} +0 -0
- /package/dist/chunks/{pal-NI3NH6SX.js.map → pal-OBXTNMGX.js.map} +0 -0
- /package/dist/chunks/{peers-3QLWWGWY.js.map → peers-RBR7QYPG.js.map} +0 -0
- /package/dist/chunks/{peers-B5TCECUP.js.map → peers-ZSKWVLA4.js.map} +0 -0
- /package/dist/chunks/{providers-A6Q444EB.js.map → providers-EW4LE5AZ.js.map} +0 -0
- /package/dist/chunks/{providers-G2UTRKAK.js.map → providers-V4MMZ7X5.js.map} +0 -0
- /package/dist/chunks/{pty-M4K6JLLS.js.map → pty-XV7IOHGX.js.map} +0 -0
- /package/dist/chunks/{resume-RXOBUAEA.js.map → resume-GA7INROY.js.map} +0 -0
- /package/dist/chunks/{resume-command-JUKPZVVL.js.map → resume-command-VABS2KGI.js.map} +0 -0
- /package/dist/chunks/{running-ZPS6OB4K.js.map → running-LDQLXUGW.js.map} +0 -0
- /package/dist/chunks/{schedule-PCKX74XC.js.map → schedule-L5AAS4JQ.js.map} +0 -0
- /package/dist/chunks/{send-6R5NCGY5.js.map → send-2KB5VRUT.js.map} +0 -0
- /package/dist/chunks/{send-person-I7B6Y2V3.js.map → send-person-EFHYG2GX.js.map} +0 -0
- /package/dist/chunks/{servers-F23WQJDI.js.map → servers-WIKRFBKU.js.map} +0 -0
- /package/dist/chunks/{service-NI642AJQ.js.map → service-LXQA5RI7.js.map} +0 -0
- /package/dist/chunks/{session-options-CRFJNFLM.js.map → session-options-2LDJWGYZ.js.map} +0 -0
- /package/dist/chunks/{setting-cli-QEUWWR2W.js.map → setting-cli-6T6H6TJ7.js.map} +0 -0
- /package/dist/chunks/{skills-VDOUBAYU.js.map → skills-YAIICRGB.js.map} +0 -0
- /package/dist/chunks/{source-deliveries-VWFHCFRQ.js.map → source-deliveries-VB4F2DV5.js.map} +0 -0
- /package/dist/chunks/{start-check-K6BTRM72.js.map → start-check-TE3CE7NZ.js.map} +0 -0
- /package/dist/chunks/{startup-failure-WREVDPC2.js.map → startup-failure-PBWJF4DV.js.map} +0 -0
- /package/dist/chunks/{state-LJR3IEAF.js.map → state-UGZ334GT.js.map} +0 -0
- /package/dist/chunks/{store-C7SEV4YB.js.map → store-3REZKYH5.js.map} +0 -0
- /package/dist/chunks/{store-L7CJVHD7.js.map → store-75XB557Z.js.map} +0 -0
- /package/dist/chunks/{store-T7M3ICIS.js.map → store-RV6QGLU2.js.map} +0 -0
- /package/dist/chunks/{store-U5LOY365.js.map → store-VQ5OTKXT.js.map} +0 -0
- /package/dist/chunks/{update-RO3UZBFM.js.map → update-NPWMEWAL.js.map} +0 -0
- /package/dist/chunks/{windows-home-WVGVXCRL.js.map → windows-home-4XSPGUOR.js.map} +0 -0
- /package/dist/chunks/{workspaces-B46MHVPJ.js.map → workspaces-UB6NF7LY.js.map} +0 -0
- /package/dist/chunks/{worktree-57C3ECED.js.map → worktree-QCSW5VQC.js.map} +0 -0
|
@@ -0,0 +1,800 @@
|
|
|
1
|
+
import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
2
|
+
const require = __namzuCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
oneLine,
|
|
5
|
+
readPluginManifestDetails,
|
|
6
|
+
surfaceChanges
|
|
7
|
+
} from "./chunk-LIX2TWWW.js";
|
|
8
|
+
import {
|
|
9
|
+
listMarkdownNames,
|
|
10
|
+
resolvePluginFileDirs
|
|
11
|
+
} from "./chunk-6W6ILBXE.js";
|
|
12
|
+
import {
|
|
13
|
+
admissionScope,
|
|
14
|
+
currentEnabledAnswer,
|
|
15
|
+
installedPluginRefusal,
|
|
16
|
+
installedRefusalText,
|
|
17
|
+
isExecutablePath,
|
|
18
|
+
loadInstalledManifest,
|
|
19
|
+
manifestDigest,
|
|
20
|
+
readInstallManifest,
|
|
21
|
+
readLayers,
|
|
22
|
+
readRecordLayer,
|
|
23
|
+
recordLayerPath,
|
|
24
|
+
setEnabledPlugin,
|
|
25
|
+
verifyInstalledCopy
|
|
26
|
+
} from "./chunk-7BZZGFKW.js";
|
|
27
|
+
import {
|
|
28
|
+
readPluginHookEntriesOf
|
|
29
|
+
} from "./chunk-PR3MVT6X.js";
|
|
30
|
+
import {
|
|
31
|
+
installedPluginDataFolder,
|
|
32
|
+
installedPluginsPath,
|
|
33
|
+
isPluginId,
|
|
34
|
+
isReservedPluginDir,
|
|
35
|
+
readInstalledPlugins,
|
|
36
|
+
readKnownMarketplaces,
|
|
37
|
+
realPathOrResolved,
|
|
38
|
+
samePath,
|
|
39
|
+
splitPluginId
|
|
40
|
+
} from "./chunk-XGEW2R3P.js";
|
|
41
|
+
import {
|
|
42
|
+
StateFileBusyError,
|
|
43
|
+
StateFileUnreadableError
|
|
44
|
+
} from "./chunk-47HEFQUP.js";
|
|
45
|
+
import {
|
|
46
|
+
EXIT_FAIL,
|
|
47
|
+
EXIT_NOINPUT,
|
|
48
|
+
EXIT_OK,
|
|
49
|
+
EXIT_UNTRUSTED,
|
|
50
|
+
EXIT_USAGE
|
|
51
|
+
} from "./chunk-24V2WEKR.js";
|
|
52
|
+
import {
|
|
53
|
+
terminalDisplayText
|
|
54
|
+
} from "./chunk-I4GTRFPK.js";
|
|
55
|
+
import {
|
|
56
|
+
COMMON_MANIFEST_DIR,
|
|
57
|
+
PLUGIN_MANIFEST_FILENAME,
|
|
58
|
+
discoverAllPluginDirs,
|
|
59
|
+
loadPluginManifest
|
|
60
|
+
} from "./chunk-S5XNNB36.js";
|
|
61
|
+
import {
|
|
62
|
+
__name
|
|
63
|
+
} from "./chunk-76FLAFCG.js";
|
|
64
|
+
|
|
65
|
+
// src/commands/plugin-records.ts
|
|
66
|
+
import { lstatSync, readdirSync } from "node:fs";
|
|
67
|
+
import { join, resolve } from "node:path";
|
|
68
|
+
var PLUGIN_RECORD_VERBS = ["list", "details", "enable", "disable"];
|
|
69
|
+
var PLUGIN_RECORD_HELP = [
|
|
70
|
+
"Usage:",
|
|
71
|
+
" namzu plugin list [--cwd <dir>] [--json]",
|
|
72
|
+
" namzu plugin details <id> [--cwd <dir>] [--json]",
|
|
73
|
+
" namzu plugin enable <id> [--scope user|project|local] [--cwd <dir>] [--json]",
|
|
74
|
+
" namzu plugin disable <id> [--scope user|project|local] [--cwd <dir>] [--json]",
|
|
75
|
+
"",
|
|
76
|
+
"list The installed plugins that apply here: id, version, scope, on or off, and what needs attention.",
|
|
77
|
+
"details One plugin: what it brings by its exact names, the record, who turned it on, where its data is.",
|
|
78
|
+
"enable Record a yes for an installed plugin. It takes effect in new conversations.",
|
|
79
|
+
"disable Record a no. Nothing is removed; the plugin stays installed.",
|
|
80
|
+
"",
|
|
81
|
+
"An id is <name>@<marketplace>; a bare name works when only one installed plugin has it.",
|
|
82
|
+
"Without --scope a user plugin is changed in your own settings file, and a project plugin in",
|
|
83
|
+
"this computer\u2019s file for the folder (.namzu/settings.local.json), so a shared file is not",
|
|
84
|
+
"edited by a toggle. --scope project edits the shared .namzu/settings.json.",
|
|
85
|
+
"",
|
|
86
|
+
"Options:",
|
|
87
|
+
" --scope user|project|local The record to act on, and the settings file it is written to",
|
|
88
|
+
" --cwd <dir> The folder whose project plugins are meant (default: here)",
|
|
89
|
+
" --json Print one JSON object on standard output",
|
|
90
|
+
"",
|
|
91
|
+
"Exit status: 0 done, 1 something failed, 64 the command line is wrong,",
|
|
92
|
+
"66 not installed or a record could not be read, 77 the folder is not trusted."
|
|
93
|
+
].join("\n");
|
|
94
|
+
function parseFlags(args) {
|
|
95
|
+
let json = false;
|
|
96
|
+
let scope;
|
|
97
|
+
let cwd;
|
|
98
|
+
const positional = [];
|
|
99
|
+
for (let i = 0; i < args.length; i++) {
|
|
100
|
+
const arg = args[i];
|
|
101
|
+
const value = /* @__PURE__ */ __name((name) => {
|
|
102
|
+
if (arg === name) return args[++i];
|
|
103
|
+
if (arg.startsWith(`${name}=`)) return arg.slice(name.length + 1);
|
|
104
|
+
return void 0;
|
|
105
|
+
}, "value");
|
|
106
|
+
if (arg === "--json") json = true;
|
|
107
|
+
else if (arg === "--scope" || arg.startsWith("--scope=")) {
|
|
108
|
+
const v = value("--scope");
|
|
109
|
+
if (v !== "user" && v !== "project" && v !== "local")
|
|
110
|
+
return { json, positional, error: "--scope is user, project or local." };
|
|
111
|
+
scope = v;
|
|
112
|
+
} else if (arg === "--cwd" || arg.startsWith("--cwd=")) {
|
|
113
|
+
const v = value("--cwd");
|
|
114
|
+
if (v === void 0 || v === "") return { json, positional, error: "--cwd needs a folder." };
|
|
115
|
+
cwd = v;
|
|
116
|
+
} else if (arg.startsWith("-") && arg !== "-")
|
|
117
|
+
return { json, positional, error: `unknown option: ${arg}` };
|
|
118
|
+
else positional.push(arg);
|
|
119
|
+
}
|
|
120
|
+
return { json, ...scope ? { scope } : {}, ...cwd ? { cwd } : {}, positional };
|
|
121
|
+
}
|
|
122
|
+
__name(parseFlags, "parseFlags");
|
|
123
|
+
function failure(deps, json, command, code, message, extra = {}) {
|
|
124
|
+
if (json) deps.out(`${JSON.stringify({ command, outcome: "failed", message, ...extra })}
|
|
125
|
+
`);
|
|
126
|
+
else deps.err(`${message}
|
|
127
|
+
`);
|
|
128
|
+
return code;
|
|
129
|
+
}
|
|
130
|
+
__name(failure, "failure");
|
|
131
|
+
function stateFailure(error) {
|
|
132
|
+
if (error instanceof StateFileUnreadableError)
|
|
133
|
+
return {
|
|
134
|
+
code: EXIT_NOINPUT,
|
|
135
|
+
message: `The install record could not be read, so nothing was changed: ${error.file}
|
|
136
|
+
${error.sentence((p) => p)}`
|
|
137
|
+
};
|
|
138
|
+
if (error instanceof StateFileBusyError)
|
|
139
|
+
return { code: EXIT_FAIL, message: error.sentence((p) => p) };
|
|
140
|
+
return { code: EXIT_FAIL, message: error instanceof Error ? error.message : String(error) };
|
|
141
|
+
}
|
|
142
|
+
__name(stateFailure, "stateFailure");
|
|
143
|
+
function resolveId(deps, json, command, arg) {
|
|
144
|
+
const read = readInstalledPlugins(deps.namzuHome);
|
|
145
|
+
if (read.state === "unreadable")
|
|
146
|
+
return failure(
|
|
147
|
+
deps,
|
|
148
|
+
json,
|
|
149
|
+
command,
|
|
150
|
+
EXIT_NOINPUT,
|
|
151
|
+
`The install record could not be read, so nothing was changed: ${installedPluginsPath(deps.namzuHome)} (${read.reason}). Fix or remove the file, then try again.`
|
|
152
|
+
);
|
|
153
|
+
if (isPluginId(arg)) {
|
|
154
|
+
const records = read.plugins.get(arg);
|
|
155
|
+
if (!records)
|
|
156
|
+
return failure(
|
|
157
|
+
deps,
|
|
158
|
+
json,
|
|
159
|
+
command,
|
|
160
|
+
EXIT_NOINPUT,
|
|
161
|
+
`${arg} is not installed on this computer.`,
|
|
162
|
+
{
|
|
163
|
+
id: arg
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
return { id: arg, records };
|
|
167
|
+
}
|
|
168
|
+
if (arg.includes("@") || arg === "")
|
|
169
|
+
return failure(
|
|
170
|
+
deps,
|
|
171
|
+
json,
|
|
172
|
+
command,
|
|
173
|
+
EXIT_USAGE,
|
|
174
|
+
`"${arg}" is not a plugin id (name@marketplace).`
|
|
175
|
+
);
|
|
176
|
+
const matches = [...read.plugins.keys()].filter((id2) => splitPluginId(id2).name === arg);
|
|
177
|
+
if (matches.length === 0)
|
|
178
|
+
return failure(deps, json, command, EXIT_NOINPUT, `${arg} is not installed on this computer.`);
|
|
179
|
+
if (matches.length > 1)
|
|
180
|
+
return failure(
|
|
181
|
+
deps,
|
|
182
|
+
json,
|
|
183
|
+
command,
|
|
184
|
+
EXIT_USAGE,
|
|
185
|
+
`More than one installed plugin is named ${arg}: ${matches.join(", ")}. Name one of them.`,
|
|
186
|
+
{ matches }
|
|
187
|
+
);
|
|
188
|
+
const id = matches[0];
|
|
189
|
+
return { id, records: read.plugins.get(id) };
|
|
190
|
+
}
|
|
191
|
+
__name(resolveId, "resolveId");
|
|
192
|
+
function applicable(records, cwd, trusted) {
|
|
193
|
+
const rank = { local: 3, project: 2, user: 1 };
|
|
194
|
+
const here = [];
|
|
195
|
+
let unread = 0;
|
|
196
|
+
for (const record of records) {
|
|
197
|
+
if (record.scope === "user") here.push(record);
|
|
198
|
+
else if (record.projectPath !== void 0 && samePath(record.projectPath, cwd)) {
|
|
199
|
+
if (trusted) here.push(record);
|
|
200
|
+
else unread++;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
here.sort((a, b) => rank[b.scope] - rank[a.scope]);
|
|
204
|
+
return { here, unread };
|
|
205
|
+
}
|
|
206
|
+
__name(applicable, "applicable");
|
|
207
|
+
function contextOf(deps, flags) {
|
|
208
|
+
const cwd = resolve(deps.cwd(), flags.cwd ?? ".");
|
|
209
|
+
return { cwd: realPathOrResolved(cwd), trusted: deps.isTrusted(cwd) };
|
|
210
|
+
}
|
|
211
|
+
__name(contextOf, "contextOf");
|
|
212
|
+
function layerSentence(by, answer) {
|
|
213
|
+
if (by === void 0) return "no setting says so";
|
|
214
|
+
return by === "user" ? `your settings say ${answer ? "yes" : "no"}` : by === "project" ? `the folder\u2019s shared settings say ${answer ? "yes" : "no"}` : `this computer\u2019s settings for the folder say ${answer ? "yes" : "no"}`;
|
|
215
|
+
}
|
|
216
|
+
__name(layerSentence, "layerSentence");
|
|
217
|
+
function candidateFor(id, record, answer) {
|
|
218
|
+
return {
|
|
219
|
+
id,
|
|
220
|
+
name: splitPluginId(id).name,
|
|
221
|
+
record,
|
|
222
|
+
scope: admissionScope(record.scope),
|
|
223
|
+
installPath: realPathOrResolved(record.installPath),
|
|
224
|
+
answer
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
__name(candidateFor, "candidateFor");
|
|
228
|
+
var CLASH_ALLOWED_SCOPES = ["project", "user"];
|
|
229
|
+
async function nameClashes(deps, ctx, plugins) {
|
|
230
|
+
const names = /* @__PURE__ */ new Set();
|
|
231
|
+
try {
|
|
232
|
+
const discovered = await discoverAllPluginDirs(ctx.cwd, {
|
|
233
|
+
enabled: true,
|
|
234
|
+
autoDiscovery: true,
|
|
235
|
+
allowedScopes: CLASH_ALLOWED_SCOPES,
|
|
236
|
+
userRoot: deps.namzuHome
|
|
237
|
+
});
|
|
238
|
+
for (const scope of CLASH_ALLOWED_SCOPES)
|
|
239
|
+
for (const dir of discovered[scope]) {
|
|
240
|
+
if (scope === "user" && isReservedPluginDir(deps.namzuHome, dir)) continue;
|
|
241
|
+
try {
|
|
242
|
+
names.add((await loadPluginManifest(dir, { skillsSupported: true })).name);
|
|
243
|
+
} catch {
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
} catch {
|
|
247
|
+
}
|
|
248
|
+
const candidates = [];
|
|
249
|
+
for (const [id, records] of plugins) {
|
|
250
|
+
const chosen = applicable(records, ctx.cwd, ctx.trusted).here[0];
|
|
251
|
+
if (chosen === void 0) continue;
|
|
252
|
+
if (!verifyInstalledCopy(deps.namzuHome, id, chosen.installPath, chosen.surfaceSha256).ok)
|
|
253
|
+
continue;
|
|
254
|
+
candidates.push({ id, at: chosen.installedAt ?? "" });
|
|
255
|
+
}
|
|
256
|
+
candidates.sort((a, b) => a.at.localeCompare(b.at) || a.id.localeCompare(b.id));
|
|
257
|
+
const clashes = /* @__PURE__ */ new Map();
|
|
258
|
+
for (const { id } of candidates) {
|
|
259
|
+
const { name } = splitPluginId(id);
|
|
260
|
+
if (names.has(name))
|
|
261
|
+
clashes.set(id, `${id} will not load: the name "${name}" is already used by another plugin.`);
|
|
262
|
+
else names.add(name);
|
|
263
|
+
}
|
|
264
|
+
return clashes;
|
|
265
|
+
}
|
|
266
|
+
__name(nameClashes, "nameClashes");
|
|
267
|
+
async function runList(deps, flags) {
|
|
268
|
+
const command = "plugin list";
|
|
269
|
+
if (flags.positional.length > 0)
|
|
270
|
+
return failure(deps, flags.json, command, EXIT_USAGE, "plugin list takes no arguments.");
|
|
271
|
+
const ctx = contextOf(deps, flags);
|
|
272
|
+
const read = readInstalledPlugins(deps.namzuHome);
|
|
273
|
+
if (read.state === "unreadable")
|
|
274
|
+
return failure(
|
|
275
|
+
deps,
|
|
276
|
+
flags.json,
|
|
277
|
+
command,
|
|
278
|
+
EXIT_NOINPUT,
|
|
279
|
+
`The install record could not be read: ${installedPluginsPath(deps.namzuHome)} (${read.reason}). Nothing was changed.`
|
|
280
|
+
);
|
|
281
|
+
const layers = readLayers(deps.namzuHome, ctx.cwd, ctx.trusted);
|
|
282
|
+
const problems = read.invalid.map((bad) => `${bad.id}: ${bad.reason}`);
|
|
283
|
+
for (const [layer, layerRead] of Object.entries(layers)) {
|
|
284
|
+
if (layerRead?.state === "unreadable")
|
|
285
|
+
problems.push(
|
|
286
|
+
`${recordLayerPath(layer, { home: deps.namzuHome, cwd: ctx.cwd })} could not be read (${layerRead.reason}), so what it says was not used`
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
const clashes = await nameClashes(deps, ctx, read.plugins);
|
|
290
|
+
const known = readKnownMarketplaces(deps.namzuHome);
|
|
291
|
+
const rows = [];
|
|
292
|
+
let unread = 0;
|
|
293
|
+
for (const [id, records] of [...read.plugins.entries()].sort(([a], [b]) => a.localeCompare(b))) {
|
|
294
|
+
const found = applicable(records, ctx.cwd, ctx.trusted);
|
|
295
|
+
unread += found.unread;
|
|
296
|
+
if (found.here.length === 0) continue;
|
|
297
|
+
const answer = currentEnabledAnswer(
|
|
298
|
+
{ home: deps.namzuHome, cwd: ctx.cwd, projectTrusted: ctx.trusted },
|
|
299
|
+
id
|
|
300
|
+
);
|
|
301
|
+
for (const record of found.here) {
|
|
302
|
+
const verdict = verifyInstalledCopy(
|
|
303
|
+
deps.namzuHome,
|
|
304
|
+
id,
|
|
305
|
+
record.installPath,
|
|
306
|
+
record.surfaceSha256
|
|
307
|
+
);
|
|
308
|
+
const notes = record.findings.filter(
|
|
309
|
+
(f) => f.level === "notUsed" || f.level === "refused"
|
|
310
|
+
).length;
|
|
311
|
+
const { name, marketplace } = splitPluginId(id);
|
|
312
|
+
const clash = verdict.ok ? clashes.get(id) : void 0;
|
|
313
|
+
const problem = verdict.ok ? clash : verdict.message;
|
|
314
|
+
rows.push({
|
|
315
|
+
id,
|
|
316
|
+
name,
|
|
317
|
+
marketplace,
|
|
318
|
+
version: record.version ?? null,
|
|
319
|
+
scope: record.scope,
|
|
320
|
+
...record.projectPath ? { projectPath: record.projectPath } : {},
|
|
321
|
+
enabled: answer.on,
|
|
322
|
+
enabledBy: answer.by ?? null,
|
|
323
|
+
state: problem !== void 0 ? "blocked" : answer.on ? "on" : "off",
|
|
324
|
+
attention: notes + (problem !== void 0 ? 1 : 0),
|
|
325
|
+
...problem !== void 0 ? { problem } : {},
|
|
326
|
+
source: known.state !== "unreadable" ? known.marketplaces.get(marketplace)?.source ?? null : null,
|
|
327
|
+
layout: record.layout ?? null,
|
|
328
|
+
installPath: record.installPath
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
const asked = [];
|
|
333
|
+
for (const layer of ["project", "local"]) {
|
|
334
|
+
const layerRead = layers[layer];
|
|
335
|
+
if (layerRead === void 0 || layerRead.state === "unreadable") continue;
|
|
336
|
+
for (const [id, value] of layerRead.enabledPlugins) {
|
|
337
|
+
if (!value) continue;
|
|
338
|
+
const have = rows.some((row) => row.id === id);
|
|
339
|
+
if (!have) asked.push({ id, layer, installed: false });
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
const declared = [];
|
|
343
|
+
for (const layer of ["project", "local"]) {
|
|
344
|
+
const layerRead = layers[layer];
|
|
345
|
+
if (layerRead === void 0 || layerRead.state === "unreadable") continue;
|
|
346
|
+
for (const market of layerRead.marketplaces.values())
|
|
347
|
+
declared.push({
|
|
348
|
+
name: market.name,
|
|
349
|
+
layer,
|
|
350
|
+
source: market.source,
|
|
351
|
+
added: known.state !== "unreadable" && known.marketplaces.has(market.name)
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
const notice = unread > 0 ? `${unread} plugin ${unread === 1 ? "record" : "records"} for this folder ${unread === 1 ? "was" : "were"} not read because the folder is not trusted yet.` : void 0;
|
|
355
|
+
if (flags.json) {
|
|
356
|
+
deps.out(
|
|
357
|
+
`${JSON.stringify({
|
|
358
|
+
command,
|
|
359
|
+
cwd: ctx.cwd,
|
|
360
|
+
trusted: ctx.trusted,
|
|
361
|
+
loading: deps.loadingOn ? "on" : "off",
|
|
362
|
+
plugins: rows,
|
|
363
|
+
asked,
|
|
364
|
+
declaredMarketplaces: declared,
|
|
365
|
+
problems,
|
|
366
|
+
...notice ? { notice } : {}
|
|
367
|
+
})}
|
|
368
|
+
`
|
|
369
|
+
);
|
|
370
|
+
return EXIT_OK;
|
|
371
|
+
}
|
|
372
|
+
const lines = [];
|
|
373
|
+
if (rows.length === 0) lines.push("No plugins are installed here.");
|
|
374
|
+
else {
|
|
375
|
+
const width = /* @__PURE__ */ __name((pick) => Math.max(...rows.map((row) => pick(row).length)), "width");
|
|
376
|
+
const wId = width((r) => oneLine(r.id));
|
|
377
|
+
const wVer = width((r) => oneLine(r.version ?? "-"));
|
|
378
|
+
const wScope = width((r) => r.scope);
|
|
379
|
+
for (const row of rows) {
|
|
380
|
+
lines.push(
|
|
381
|
+
`${oneLine(row.id).padEnd(wId)} ${oneLine(row.version ?? "-").padEnd(wVer)} ${row.scope.padEnd(wScope)} ${row.state}${row.attention > 0 ? ` (${row.attention} to look at)` : ""}`
|
|
382
|
+
);
|
|
383
|
+
if (row.problem) lines.push(` ${oneLine(row.problem)}`);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
for (const ask of asked)
|
|
387
|
+
lines.push(`${oneLine(ask.id)} is asked for here and is not installed on this computer.`);
|
|
388
|
+
for (const market of declared)
|
|
389
|
+
lines.push(
|
|
390
|
+
`${oneLine(market.name)} is declared by this project, ${market.added ? "and added" : "not added"}.`
|
|
391
|
+
);
|
|
392
|
+
for (const problem of problems) lines.push(`Not used: ${oneLine(problem)}`);
|
|
393
|
+
if (notice) lines.push(notice);
|
|
394
|
+
if (!deps.loadingOn && rows.length > 0)
|
|
395
|
+
lines.push(
|
|
396
|
+
"Plugin loading is off, so none of these run. Turn it on: namzu config set plugins.enabled true"
|
|
397
|
+
);
|
|
398
|
+
deps.out(`${lines.join("\n")}
|
|
399
|
+
`);
|
|
400
|
+
return EXIT_OK;
|
|
401
|
+
}
|
|
402
|
+
__name(runList, "runList");
|
|
403
|
+
function dataSize(path) {
|
|
404
|
+
let total = 0;
|
|
405
|
+
let seen = 0;
|
|
406
|
+
const walk = /* @__PURE__ */ __name((dir) => {
|
|
407
|
+
for (const entry of readdirSync(dir)) {
|
|
408
|
+
if (++seen > 2e4) return;
|
|
409
|
+
const full = join(dir, entry);
|
|
410
|
+
const stat = lstatSync(full);
|
|
411
|
+
if (stat.isDirectory()) walk(full);
|
|
412
|
+
else total += stat.size;
|
|
413
|
+
}
|
|
414
|
+
}, "walk");
|
|
415
|
+
try {
|
|
416
|
+
if (!lstatSync(path).isDirectory()) return null;
|
|
417
|
+
walk(path);
|
|
418
|
+
return total;
|
|
419
|
+
} catch {
|
|
420
|
+
return null;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
__name(dataSize, "dataSize");
|
|
424
|
+
async function runDetails(deps, flags) {
|
|
425
|
+
const command = "plugin details";
|
|
426
|
+
if (flags.positional.length !== 1)
|
|
427
|
+
return failure(deps, flags.json, command, EXIT_USAGE, "plugin details takes one plugin id.");
|
|
428
|
+
const ctx = contextOf(deps, flags);
|
|
429
|
+
const resolved = resolveId(deps, flags.json, command, flags.positional[0]);
|
|
430
|
+
if (typeof resolved === "number") return resolved;
|
|
431
|
+
const { id } = resolved;
|
|
432
|
+
const found = applicable(resolved.records, ctx.cwd, ctx.trusted);
|
|
433
|
+
if (found.here.length === 0)
|
|
434
|
+
return failure(
|
|
435
|
+
deps,
|
|
436
|
+
flags.json,
|
|
437
|
+
command,
|
|
438
|
+
found.unread > 0 ? EXIT_UNTRUSTED : EXIT_NOINPUT,
|
|
439
|
+
found.unread > 0 ? "This folder is not trusted yet. Open it with namzu once, or use --scope user." : `${id} is not installed for this folder or for you.`,
|
|
440
|
+
{ id }
|
|
441
|
+
);
|
|
442
|
+
const record = found.here[0];
|
|
443
|
+
const answer = currentEnabledAnswer(
|
|
444
|
+
{ home: deps.namzuHome, cwd: ctx.cwd, projectTrusted: ctx.trusted },
|
|
445
|
+
id
|
|
446
|
+
);
|
|
447
|
+
const verdict = verifyInstalledCopy(deps.namzuHome, id, record.installPath, record.surfaceSha256);
|
|
448
|
+
const all = readInstalledPlugins(deps.namzuHome);
|
|
449
|
+
const clash = verdict.ok && all.state !== "unreadable" ? (await nameClashes(deps, ctx, all.plugins)).get(id) : void 0;
|
|
450
|
+
const blockedBy = verdict.ok ? clash : verdict.message;
|
|
451
|
+
const manifestRead = readInstallManifest(deps.namzuHome, id);
|
|
452
|
+
const { name, marketplace } = splitPluginId(id);
|
|
453
|
+
const known = readKnownMarketplaces(deps.namzuHome);
|
|
454
|
+
const source = known.state !== "unreadable" ? known.marketplaces.get(marketplace)?.source ?? null : null;
|
|
455
|
+
const dataPath = installedPluginDataFolder(deps.namzuHome, id);
|
|
456
|
+
let inventory;
|
|
457
|
+
if (verdict.ok) {
|
|
458
|
+
try {
|
|
459
|
+
const candidate = candidateFor(id, record, answer);
|
|
460
|
+
const manifest = await loadInstalledManifest(candidate, {
|
|
461
|
+
home: deps.namzuHome,
|
|
462
|
+
cwd: ctx.cwd,
|
|
463
|
+
installedNames: /* @__PURE__ */ new Set()
|
|
464
|
+
});
|
|
465
|
+
const details = await readPluginManifestDetails(candidate.installPath, manifest);
|
|
466
|
+
const prefix = `${manifest.name}__`;
|
|
467
|
+
const files = /* @__PURE__ */ __name((declared) => resolvePluginFileDirs(
|
|
468
|
+
manifest.name,
|
|
469
|
+
candidate.installPath,
|
|
470
|
+
declared,
|
|
471
|
+
manifest.layout
|
|
472
|
+
).dirs.flatMap(
|
|
473
|
+
(source2) => listMarkdownNames(source2.dir, source2.only).map((file) => `${prefix}${file}`)
|
|
474
|
+
), "files");
|
|
475
|
+
const hookRead = readPluginHookEntriesOf({ rootDir: candidate.installPath, manifest });
|
|
476
|
+
inventory = {
|
|
477
|
+
description: manifest.description,
|
|
478
|
+
hooks: Object.entries(hookRead.hooks).filter(([, entries]) => (entries?.length ?? 0) > 0).map(([event, entries]) => `${event} (${entries?.length ?? 0})`),
|
|
479
|
+
skills: (details.skills ?? []).map((skill) => skill.name),
|
|
480
|
+
commands: files(manifest.commands),
|
|
481
|
+
agents: files(manifest.agents),
|
|
482
|
+
servers: (manifest.mcpServers ?? []).map((server) => server.name),
|
|
483
|
+
...details.author ? { author: details.author } : {}
|
|
484
|
+
};
|
|
485
|
+
} catch (error) {
|
|
486
|
+
inventory = { error: error instanceof Error ? error.message : String(error) };
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
const surface = manifestRead.state === "ok" ? manifestRead.manifest.surface : null;
|
|
490
|
+
const output = {
|
|
491
|
+
command,
|
|
492
|
+
id,
|
|
493
|
+
name,
|
|
494
|
+
marketplace,
|
|
495
|
+
enabled: answer.on,
|
|
496
|
+
enabledBy: answer.by ?? null,
|
|
497
|
+
verification: verdict.ok ? clash !== void 0 ? { ok: false, code: "name-clash", message: clash } : { ok: true } : { ok: false, code: verdict.code, message: verdict.message },
|
|
498
|
+
records: found.here.map((r) => ({
|
|
499
|
+
scope: r.scope,
|
|
500
|
+
...r.projectPath ? { projectPath: r.projectPath } : {},
|
|
501
|
+
installPath: r.installPath,
|
|
502
|
+
version: r.version ?? null,
|
|
503
|
+
installedAt: r.installedAt ?? null,
|
|
504
|
+
lastUpdated: r.lastUpdated ?? null,
|
|
505
|
+
gitCommitSha: r.gitCommitSha ?? null,
|
|
506
|
+
layout: r.layout ?? null,
|
|
507
|
+
findings: r.findings
|
|
508
|
+
})),
|
|
509
|
+
origin: source ?? (manifestRead.state === "ok" ? manifestRead.manifest.installedFrom ?? null : null),
|
|
510
|
+
surface,
|
|
511
|
+
surfaceSha256: manifestRead.state === "ok" ? manifestRead.manifest.surfaceSha256 : null,
|
|
512
|
+
executableFiles: manifestRead.state === "ok" ? manifestRead.manifest.executable : [],
|
|
513
|
+
consent: manifestRead.state === "ok" ? manifestRead.manifest.consent ?? null : null,
|
|
514
|
+
data: { path: dataPath, bytes: dataSize(dataPath) },
|
|
515
|
+
inventory: inventory ?? null
|
|
516
|
+
};
|
|
517
|
+
if (flags.json) {
|
|
518
|
+
deps.out(`${JSON.stringify(output)}
|
|
519
|
+
`);
|
|
520
|
+
return EXIT_OK;
|
|
521
|
+
}
|
|
522
|
+
const lines = [`${oneLine(id)}${record.version ? ` ${oneLine(record.version)}` : ""}`];
|
|
523
|
+
const inv = inventory;
|
|
524
|
+
if (inv?.description) lines.push(oneLine(inv.description));
|
|
525
|
+
lines.push(
|
|
526
|
+
` State: ${answer.on ? "on" : "off"} (${layerSentence(answer.by, answer.on)})`,
|
|
527
|
+
` Scope: ${found.here.map((r) => r.scope).join(", ")}`,
|
|
528
|
+
` Origin: ${source ? oneLine(JSON.stringify(source)) : `marketplace ${marketplace}`}`,
|
|
529
|
+
` Folder: ${oneLine(record.installPath)}`,
|
|
530
|
+
` Data: ${oneLine(dataPath)}${output.data.bytes === null ? " (none yet)" : ` (${output.data.bytes} bytes)`}`
|
|
531
|
+
);
|
|
532
|
+
if (blockedBy !== void 0) lines.push(` Blocked: ${oneLine(blockedBy)}`);
|
|
533
|
+
const listed = /* @__PURE__ */ __name((label, items) => {
|
|
534
|
+
if (Array.isArray(items) && items.length > 0)
|
|
535
|
+
lines.push(` ${label}${items.map((item) => oneLine(String(item))).join(", ")}`);
|
|
536
|
+
}, "listed");
|
|
537
|
+
if (inventory) {
|
|
538
|
+
listed("Skills: ", inventory.skills);
|
|
539
|
+
listed("Commands: ", inventory.commands);
|
|
540
|
+
listed("Agents: ", inventory.agents);
|
|
541
|
+
listed("Hooks: ", inventory.hooks);
|
|
542
|
+
listed("Servers: ", inventory.servers);
|
|
543
|
+
}
|
|
544
|
+
if (manifestRead.state === "ok") {
|
|
545
|
+
lines.push(
|
|
546
|
+
` Checked before it loads: ${manifestRead.manifest.executable.length} ${manifestRead.manifest.executable.length === 1 ? "file" : "files"}, surface sha256:${manifestRead.manifest.surfaceSha256.slice(0, 12)}`
|
|
547
|
+
);
|
|
548
|
+
const consent = manifestRead.manifest.consent;
|
|
549
|
+
if (consent && typeof consent.at === "string")
|
|
550
|
+
lines.push(
|
|
551
|
+
` Accepted: ${oneLine(consent.at)}${typeof consent.by === "string" ? ` by ${oneLine(consent.by)}` : ""}`
|
|
552
|
+
);
|
|
553
|
+
}
|
|
554
|
+
for (const finding of record.findings)
|
|
555
|
+
if (finding.level === "notUsed" || finding.level === "refused")
|
|
556
|
+
lines.push(
|
|
557
|
+
` ${finding.level === "refused" ? "Refused" : "Not used"}: ${oneLine(finding.message)}`
|
|
558
|
+
);
|
|
559
|
+
deps.out(`${lines.join("\n")}
|
|
560
|
+
`);
|
|
561
|
+
return EXIT_OK;
|
|
562
|
+
}
|
|
563
|
+
__name(runDetails, "runDetails");
|
|
564
|
+
async function runToggle(deps, flags, enable) {
|
|
565
|
+
const command = enable ? "plugin enable" : "plugin disable";
|
|
566
|
+
const verb = enable ? "on" : "off";
|
|
567
|
+
if (flags.positional.length !== 1)
|
|
568
|
+
return failure(deps, flags.json, command, EXIT_USAGE, `${command} takes one plugin id.`);
|
|
569
|
+
const ctx = contextOf(deps, flags);
|
|
570
|
+
const untrusted = "This folder is not trusted yet. Open it with namzu once, or use --scope user.";
|
|
571
|
+
if (!ctx.trusted && (flags.scope === "project" || flags.scope === "local"))
|
|
572
|
+
return failure(deps, flags.json, command, EXIT_UNTRUSTED, untrusted);
|
|
573
|
+
const resolved = resolveId(deps, flags.json, command, flags.positional[0]);
|
|
574
|
+
if (typeof resolved === "number") return resolved;
|
|
575
|
+
const { id } = resolved;
|
|
576
|
+
const found = applicable(resolved.records, ctx.cwd, ctx.trusted);
|
|
577
|
+
const chosen = flags.scope ? found.here.find((r) => r.scope === flags.scope) : found.here[0];
|
|
578
|
+
if (chosen === void 0) {
|
|
579
|
+
if (!flags.scope && found.unread > 0)
|
|
580
|
+
return failure(deps, flags.json, command, EXIT_UNTRUSTED, untrusted, { id });
|
|
581
|
+
return failure(
|
|
582
|
+
deps,
|
|
583
|
+
flags.json,
|
|
584
|
+
command,
|
|
585
|
+
EXIT_NOINPUT,
|
|
586
|
+
flags.scope ? `${id} is not installed at scope ${flags.scope} here.` : `${id} is not installed for this folder or for you.`,
|
|
587
|
+
{ id }
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
if (enable) {
|
|
591
|
+
const refusal = installedPluginRefusal(deps.namzuHome, id, {
|
|
592
|
+
blocked: deps.blockedMarketplaces,
|
|
593
|
+
allowed: deps.allowedMarketplaces
|
|
594
|
+
});
|
|
595
|
+
if (refusal !== void 0)
|
|
596
|
+
return failure(deps, flags.json, command, EXIT_UNTRUSTED, installedRefusalText(id, refusal), {
|
|
597
|
+
id
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
const layer = flags.scope ?? (chosen.scope === "user" ? "user" : "local");
|
|
601
|
+
const path = recordLayerPath(layer, { home: deps.namzuHome, cwd: ctx.cwd });
|
|
602
|
+
const own = readRecordLayer(path);
|
|
603
|
+
if (own.state === "unreadable")
|
|
604
|
+
return failure(
|
|
605
|
+
deps,
|
|
606
|
+
flags.json,
|
|
607
|
+
command,
|
|
608
|
+
EXIT_NOINPUT,
|
|
609
|
+
`The plugin records in ${path} could not be read (${own.reason}), so nothing was changed.`,
|
|
610
|
+
{ id }
|
|
611
|
+
);
|
|
612
|
+
let changed = false;
|
|
613
|
+
if (own.enabledPlugins.get(id) !== enable) {
|
|
614
|
+
try {
|
|
615
|
+
setEnabledPlugin(path, deps.namzuHome, id, enable);
|
|
616
|
+
changed = true;
|
|
617
|
+
} catch (error) {
|
|
618
|
+
const failed = stateFailure(error);
|
|
619
|
+
return failure(deps, flags.json, command, failed.code, failed.message, { id });
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
const answer = currentEnabledAnswer(
|
|
623
|
+
{ home: deps.namzuHome, cwd: ctx.cwd, projectTrusted: ctx.trusted },
|
|
624
|
+
id
|
|
625
|
+
);
|
|
626
|
+
const notes = [];
|
|
627
|
+
if (answer.on !== enable)
|
|
628
|
+
notes.push(
|
|
629
|
+
`It is still ${answer.on ? "on" : "off"} here: ${layerSentence(answer.by, answer.on)}.`
|
|
630
|
+
);
|
|
631
|
+
if (enable) {
|
|
632
|
+
const verdict = verifyInstalledCopy(
|
|
633
|
+
deps.namzuHome,
|
|
634
|
+
id,
|
|
635
|
+
chosen.installPath,
|
|
636
|
+
chosen.surfaceSha256
|
|
637
|
+
);
|
|
638
|
+
const all = readInstalledPlugins(deps.namzuHome);
|
|
639
|
+
const blocked = !verdict.ok ? verdict.message : all.state !== "unreadable" ? (await nameClashes(deps, ctx, all.plugins)).get(id) : void 0;
|
|
640
|
+
if (blocked !== void 0) notes.push(`It is still blocked and will not load: ${blocked}`);
|
|
641
|
+
}
|
|
642
|
+
if (enable && !deps.loadingOn)
|
|
643
|
+
notes.push(
|
|
644
|
+
"Plugin loading is off, so it will not run until you run: namzu config set plugins.enabled true"
|
|
645
|
+
);
|
|
646
|
+
const message = changed ? `Turned ${verb} ${id} (scope: ${layer}). It takes effect in new conversations.` : `${id} is already ${verb} at scope ${layer}.`;
|
|
647
|
+
if (flags.json)
|
|
648
|
+
deps.out(
|
|
649
|
+
`${JSON.stringify({
|
|
650
|
+
command,
|
|
651
|
+
outcome: changed ? enable ? "enabled" : "disabled" : "unchanged",
|
|
652
|
+
id,
|
|
653
|
+
scope: layer,
|
|
654
|
+
message,
|
|
655
|
+
effective: { enabled: answer.on, by: answer.by ?? null },
|
|
656
|
+
loading: deps.loadingOn ? "on" : "off",
|
|
657
|
+
...notes.length > 0 ? { notes } : {}
|
|
658
|
+
})}
|
|
659
|
+
`
|
|
660
|
+
);
|
|
661
|
+
else deps.out(`${[message, ...notes].join("\n")}
|
|
662
|
+
`);
|
|
663
|
+
return EXIT_OK;
|
|
664
|
+
}
|
|
665
|
+
__name(runToggle, "runToggle");
|
|
666
|
+
async function runPluginRecords(verb, args, deps) {
|
|
667
|
+
const flags = parseFlags(args);
|
|
668
|
+
if (flags.error) return failure(deps, flags.json, `plugin ${verb}`, EXIT_USAGE, flags.error);
|
|
669
|
+
switch (verb) {
|
|
670
|
+
case "list":
|
|
671
|
+
return runList(deps, flags);
|
|
672
|
+
case "details":
|
|
673
|
+
return runDetails(deps, flags);
|
|
674
|
+
case "enable":
|
|
675
|
+
return runToggle(deps, flags, true);
|
|
676
|
+
case "disable":
|
|
677
|
+
return runToggle(deps, flags, false);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
__name(runPluginRecords, "runPluginRecords");
|
|
681
|
+
|
|
682
|
+
// src/integrations/plugins/install-preview.ts
|
|
683
|
+
var one = /* @__PURE__ */ __name((value) => terminalDisplayText(value).replace(/[\t\n\r]+/g, " "), "one");
|
|
684
|
+
function list(items) {
|
|
685
|
+
return items.map(one).join(", ");
|
|
686
|
+
}
|
|
687
|
+
__name(list, "list");
|
|
688
|
+
function bytes(count) {
|
|
689
|
+
return count < 1024 ? `${count} B` : `${(count / 1024).toFixed(1)} KB`;
|
|
690
|
+
}
|
|
691
|
+
__name(bytes, "bytes");
|
|
692
|
+
function runsLines(surface) {
|
|
693
|
+
const lines = [];
|
|
694
|
+
for (const hook of surface.hooks)
|
|
695
|
+
lines.push(
|
|
696
|
+
` hook ${one(hook.event)}${hook.matcher !== void 0 ? ` ${one(hook.matcher)}` : ""} -> ${hook.type === "command" ? "" : `${hook.type}: `}${one(hook.run)}`
|
|
697
|
+
);
|
|
698
|
+
for (const hook of surface.fileHooks)
|
|
699
|
+
lines.push(
|
|
700
|
+
` hook ${one(hook.event)} in ${hook.kind} ${one(hook.name)} -> ${hook.type === "command" ? "" : `${hook.type}: `}${one(hook.run)}`
|
|
701
|
+
);
|
|
702
|
+
for (const server of surface.mcpLocal)
|
|
703
|
+
lines.push(
|
|
704
|
+
` server ${one(server.name)} -> ${one([server.command, ...server.args].join(" "))}${Object.keys(server.env).length > 0 ? ` (environment: ${list(Object.keys(server.env))})` : ""}${server.needsSetup === true ? " (needs setup: not started until its variables are set)" : ""}`
|
|
705
|
+
);
|
|
706
|
+
for (const server of surface.mcpRemote)
|
|
707
|
+
lines.push(
|
|
708
|
+
` server ${one(server.name)} -> ${one(server.origin)} (asks you before it connects${server.sendsEnv.length > 0 ? `; would send ${server.sendsEnv.map((name) => `$${one(name)}`).join(", ")}` : ""}${server.headers.length > 0 ? `; headers: ${list(server.headers)}` : ""}${server.needsSetup === true ? "; needs setup" : ""})`
|
|
709
|
+
);
|
|
710
|
+
for (const module of surface.modules)
|
|
711
|
+
lines.push(
|
|
712
|
+
module.refused !== void 0 ? ` module ${one(module.path)} (not run: ${one(module.refused)}; a tool call is refused while it stays refused)` : module.tool === true ? ` module ${one(module.path)} (tools: JavaScript that runs inside the session when the plugin is turned on; what it declares is not read before it runs)` : module.isolated === true ? ` module ${one(module.path)} (runs in a worker with your permissions${module.declares !== void 0 && module.declares.length > 0 ? `; ${list(module.declares)}` : ""})` : ` module ${one(module.path)} (JavaScript that runs inside the session; what it declares is not read before it runs)`
|
|
713
|
+
);
|
|
714
|
+
const moduleTools = new Set(surface.modules.filter((m) => m.tool === true).map((m) => m.path));
|
|
715
|
+
for (const script of surface.scripts)
|
|
716
|
+
lines.push(
|
|
717
|
+
` script ${one(script.path)} (${bytes(script.bytes)}${script.exec ? ", executable" : ""}${moduleTools.has(script.path) ? "; also imported as a module" : ""})`
|
|
718
|
+
);
|
|
719
|
+
return lines;
|
|
720
|
+
}
|
|
721
|
+
__name(runsLines, "runsLines");
|
|
722
|
+
function renderInstallPreview(plan, options) {
|
|
723
|
+
const lines = [
|
|
724
|
+
options.headline ?? `Install ${one(plan.name)} ${one(plan.version)} from ${one(plan.marketplace)}${plan.commit !== void 0 ? ` (commit ${plan.commit.slice(0, 7)})` : ""}? ${options.scopeLine}`,
|
|
725
|
+
""
|
|
726
|
+
];
|
|
727
|
+
if (options.changes !== void 0 && options.changes.length > 0) {
|
|
728
|
+
lines.push(" What changed since the version you have:");
|
|
729
|
+
for (const change of options.changes) lines.push(` ${one(change)}`);
|
|
730
|
+
lines.push("");
|
|
731
|
+
}
|
|
732
|
+
const { inventory, surface } = plan;
|
|
733
|
+
if (inventory.skills.length > 0)
|
|
734
|
+
lines.push(` Skills (${inventory.skills.length}): ${list(inventory.skills)}`);
|
|
735
|
+
if (inventory.commands.length > 0)
|
|
736
|
+
lines.push(
|
|
737
|
+
` Commands (${inventory.commands.length}): ${inventory.commands.map((name) => `/${one(name)}`).join(", ")}`
|
|
738
|
+
);
|
|
739
|
+
if (inventory.agents.length > 0)
|
|
740
|
+
lines.push(` Agents (${inventory.agents.length}): ${list(inventory.agents)}`);
|
|
741
|
+
const runs = runsLines(surface);
|
|
742
|
+
lines.push(
|
|
743
|
+
runs.length > 0 ? " Runs on this computer:" : " Runs on this computer: nothing found."
|
|
744
|
+
);
|
|
745
|
+
lines.push(...runs);
|
|
746
|
+
if (surface.unpinnedDownload) lines.push(" This download is not pinned to a digest.");
|
|
747
|
+
for (const tools of surface.allowedTools)
|
|
748
|
+
lines.push(` Pre-approves tools: ${tools.kind} ${one(tools.name)} allows ${list(tools.tools)}`);
|
|
749
|
+
const listedElsewhere = /* @__PURE__ */ new Set(["mcp-server-remote", "mcp-needs-setup"]);
|
|
750
|
+
const notUsed = plan.findings.filter((f) => f.level === "notUsed" && !listedElsewhere.has(f.code));
|
|
751
|
+
if (notUsed.length > 0)
|
|
752
|
+
lines.push(
|
|
753
|
+
` Not used by Namzu: ${[...new Set(notUsed.map((f) => f.field ?? f.code))].map(one).join(", ")}`
|
|
754
|
+
);
|
|
755
|
+
for (const finding of plan.findings.filter((f) => f.level === "refused"))
|
|
756
|
+
lines.push(` Left out: ${one(finding.message)}`);
|
|
757
|
+
for (const warning of plan.warnings) lines.push(` Note: ${one(warning)}`);
|
|
758
|
+
lines.push(
|
|
759
|
+
"",
|
|
760
|
+
"This plugin runs programs on your computer with your permissions. Namzu cannot",
|
|
761
|
+
"check what they do. Install only plugins you trust.",
|
|
762
|
+
`Surface: sha256:${plan.digest}`
|
|
763
|
+
);
|
|
764
|
+
return lines.join("\n");
|
|
765
|
+
}
|
|
766
|
+
__name(renderInstallPreview, "renderInstallPreview");
|
|
767
|
+
|
|
768
|
+
// src/integrations/plugins/update-compare.ts
|
|
769
|
+
var OWN_MANIFESTS = /* @__PURE__ */ new Set([
|
|
770
|
+
PLUGIN_MANIFEST_FILENAME,
|
|
771
|
+
`${COMMON_MANIFEST_DIR}/${PLUGIN_MANIFEST_FILENAME}`
|
|
772
|
+
]);
|
|
773
|
+
function compareUpdate(recorded, plan) {
|
|
774
|
+
const before = recorded.surface;
|
|
775
|
+
const changes = surfaceChanges(before, plan.surface);
|
|
776
|
+
const manifestChanged = recorded.manifestSha256 !== manifestDigest(plan.manifest);
|
|
777
|
+
const nothingRunsDifferently = JSON.stringify(before) === JSON.stringify(plan.surface) && [.../* @__PURE__ */ new Set([...Object.keys(plan.files), ...Object.keys(recorded.files)])].filter((path) => plan.files[path] !== recorded.files[path]).every((path) => {
|
|
778
|
+
if (path.split("/").pop() === PLUGIN_MANIFEST_FILENAME)
|
|
779
|
+
return OWN_MANIFESTS.has(path) && !manifestChanged;
|
|
780
|
+
return !isExecutablePath(path, 0) && !plan.surface.scripts.some((script) => script.path === path);
|
|
781
|
+
});
|
|
782
|
+
return {
|
|
783
|
+
changes: recorded.manifestSha256 !== void 0 && manifestChanged ? [...changes, "the plugin manifest changed"] : changes,
|
|
784
|
+
unchangedSurface: recorded.surfaceSha256 === plan.digest || nothingRunsDifferently
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
__name(compareUpdate, "compareUpdate");
|
|
788
|
+
|
|
789
|
+
export {
|
|
790
|
+
renderInstallPreview,
|
|
791
|
+
compareUpdate,
|
|
792
|
+
PLUGIN_RECORD_VERBS,
|
|
793
|
+
PLUGIN_RECORD_HELP,
|
|
794
|
+
failure,
|
|
795
|
+
stateFailure,
|
|
796
|
+
resolveId,
|
|
797
|
+
applicable,
|
|
798
|
+
runPluginRecords
|
|
799
|
+
};
|
|
800
|
+
//# sourceMappingURL=chunk-SJIDADHD.js.map
|