@namzu/cli 59.0.0 → 60.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 +51 -0
- package/README.md +1 -1
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-AQUZCZSO.js → acp-6R4I2A3Q.js} +2063 -248
- package/dist/chunks/acp-6R4I2A3Q.js.map +6 -0
- package/dist/chunks/{activity-command-Y3A6GIFW.js → activity-command-JU4HLIQJ.js} +14 -14
- package/dist/chunks/{add-DWFKSOYI.js → add-S6JYKDI4.js} +24 -24
- package/dist/chunks/{agent-Z6PJYBAO.js → agent-E343AQV7.js} +53 -50
- package/dist/chunks/agent-session-D6JIOCON.js +95 -0
- package/dist/chunks/{apply-at-exit-SHGR2BAB.js → apply-at-exit-MEOJMGNT.js} +7 -7
- package/dist/chunks/{archive-KYXU4AZZ.js → archive-ZPWC7GZU.js} +13 -13
- package/dist/chunks/{auth-R3RCZZ7U.js → auth-6NX4TMIG.js} +12 -12
- package/dist/chunks/{bin-main-DUZFYUCJ.js → bin-main-P3KAQDKC.js} +8 -8
- package/dist/chunks/{binding-5UJYMFMU.js → binding-6QZVGFQ5.js} +3 -3
- package/dist/chunks/{browser-7CFZ6BZS.js → browser-KK2U5524.js} +7 -7
- package/dist/chunks/{chat-BELD32ZP.js → chat-VEXJRSZN.js} +17 -17
- package/dist/chunks/{chunk-OSC47PCX.js → chunk-2DCOB33W.js} +13 -7
- package/dist/chunks/{chunk-OSC47PCX.js.map → chunk-2DCOB33W.js.map} +1 -1
- package/dist/chunks/{chunk-MDBUSIPW.js → chunk-2KVQVPJ7.js} +5 -5
- package/dist/chunks/chunk-32OIBGYI.js +188 -0
- package/dist/chunks/chunk-32OIBGYI.js.map +6 -0
- package/dist/chunks/{chunk-MRZHTIE7.js → chunk-42JIZXVL.js} +4 -4
- package/dist/chunks/{chunk-ESIICAI3.js → chunk-4473VICE.js} +3 -3
- package/dist/chunks/{chunk-DGYMR4WJ.js → chunk-44YG6EI4.js} +4 -4
- package/dist/chunks/{chunk-ZQGCZYAE.js → chunk-452SL2Y4.js} +2 -2
- package/dist/chunks/{chunk-VE4XIWDW.js → chunk-4BNCVR3U.js} +2 -2
- package/dist/chunks/{chunk-2EVP6BX4.js → chunk-4CJ3HPOT.js} +2 -2
- package/dist/chunks/{chunk-4BAXYUZQ.js → chunk-4DSUVT37.js} +13 -10
- package/dist/chunks/chunk-4DSUVT37.js.map +6 -0
- package/dist/chunks/{chunk-TORIEDBN.js → chunk-4ENL4VUO.js} +4 -4
- package/dist/chunks/{chunk-IJ6Z6FNY.js → chunk-4KVYTHY7.js} +3 -3
- package/dist/chunks/{chunk-YNWPC3HO.js → chunk-4Y242BU4.js} +5 -5
- package/dist/chunks/{chunk-OA7QKUCM.js → chunk-5F4DSPZC.js} +10 -10
- package/dist/chunks/{chunk-DRWJTADQ.js → chunk-5IGEQN7L.js} +4 -4
- package/dist/chunks/{chunk-W752G3FM.js → chunk-5ZLKTFU2.js} +3 -3
- package/dist/chunks/{chunk-KETRBV2E.js → chunk-66QIFMEO.js} +2 -2
- package/dist/chunks/{chunk-4TIUY3Q6.js → chunk-6HYK4DDB.js} +36 -14
- package/dist/chunks/{chunk-4TIUY3Q6.js.map → chunk-6HYK4DDB.js.map} +1 -1
- package/dist/chunks/{chunk-AEXGGJUW.js → chunk-6TUHWKXP.js} +15 -6
- package/dist/chunks/chunk-6TUHWKXP.js.map +6 -0
- package/dist/chunks/{chunk-CEZW3NVM.js → chunk-6W3UGXGG.js} +4 -4
- package/dist/chunks/{chunk-S7FE35WQ.js → chunk-75YLZNZW.js} +3 -3
- package/dist/chunks/{chunk-P4TCLMD6.js → chunk-AC5P6W3G.js} +2 -2
- package/dist/chunks/chunk-AMYP2WPW.js +1055 -0
- package/dist/chunks/chunk-AMYP2WPW.js.map +6 -0
- package/dist/chunks/{chunk-GUK47JTV.js → chunk-AYMB4AOZ.js} +4 -4
- package/dist/chunks/{chunk-23D5IXMW.js → chunk-B4AOCHH6.js} +3 -3
- package/dist/chunks/{chunk-FEOS7UZ2.js → chunk-BA7KUG6V.js} +2 -2
- package/dist/chunks/{chunk-D35UCVTK.js → chunk-BHQHTM3Z.js} +5 -5
- package/dist/chunks/chunk-BJT37HR4.js +3644 -0
- package/dist/chunks/chunk-BJT37HR4.js.map +6 -0
- package/dist/chunks/{chunk-KPOOM7QT.js → chunk-BNLIRJ3M.js} +4 -4
- package/dist/chunks/{chunk-MDVYEFTI.js → chunk-BURGRQWO.js} +2 -2
- package/dist/chunks/{chunk-DKSFQRUM.js → chunk-BWD2TUI4.js} +5 -5
- package/dist/chunks/{chunk-HGTOAMV6.js → chunk-BZR5PIFF.js} +2098 -812
- package/dist/chunks/chunk-BZR5PIFF.js.map +6 -0
- package/dist/chunks/{chunk-7Y4RR47U.js → chunk-C7E7YCRD.js} +5 -5
- package/dist/chunks/{chunk-44MFZJ24.js → chunk-CXW7I2S3.js} +2 -2
- package/dist/chunks/{chunk-3ETXWTV4.js → chunk-D2R47LDH.js} +121 -8
- package/dist/chunks/chunk-D2R47LDH.js.map +6 -0
- package/dist/chunks/chunk-D4TXOX34.js +342 -0
- package/dist/chunks/chunk-D4TXOX34.js.map +6 -0
- package/dist/chunks/{chunk-73HWWJYC.js → chunk-D6PB3Z7Q.js} +2 -2
- package/dist/chunks/{chunk-QTHG6UPU.js → chunk-DEAG4G5J.js} +2 -2
- package/dist/chunks/{chunk-WGC5DJEW.js → chunk-DRSQTKDN.js} +3 -3
- package/dist/chunks/chunk-EBBT2I5S.js +153 -0
- package/dist/chunks/chunk-EBBT2I5S.js.map +6 -0
- package/dist/chunks/{chunk-FK5C7SHM.js → chunk-EWPGU4HH.js} +10 -441
- package/dist/chunks/chunk-EWPGU4HH.js.map +6 -0
- package/dist/chunks/{chunk-WXYRLTRY.js → chunk-EXJJLYZK.js} +3 -3
- package/dist/chunks/{chunk-PFVYYH6O.js → chunk-F5W4TNCR.js} +2 -2
- package/dist/chunks/{chunk-Q6PZODSV.js → chunk-F7KOBJVW.js} +4 -4
- package/dist/chunks/{chunk-VSNV3U2B.js → chunk-FK4MAZV2.js} +5 -5
- package/dist/chunks/{chunk-ATCVFWXD.js → chunk-FMD4REZQ.js} +41 -41
- package/dist/chunks/{chunk-ATCVFWXD.js.map → chunk-FMD4REZQ.js.map} +1 -1
- package/dist/chunks/{chunk-G5LPTLLY.js → chunk-FPC3K4TT.js} +3 -3
- package/dist/chunks/{chunk-XLXPPVUT.js → chunk-FVIKYFYD.js} +2 -2
- package/dist/chunks/{chunk-PQT7624W.js → chunk-GPTYDM26.js} +8 -8
- package/dist/chunks/{chunk-TP7DRQXE.js → chunk-GT22EDUB.js} +6 -6
- package/dist/chunks/{chunk-GEVWZWLM.js → chunk-GTUTBTOV.js} +3 -3
- package/dist/chunks/{chunk-GQ6WXY3M.js → chunk-H6NTNPWD.js} +4 -4
- package/dist/chunks/{chunk-TYNAB5GR.js → chunk-HCQGZPVT.js} +2 -2
- package/dist/chunks/{chunk-LB4HC5U7.js → chunk-HG2PPCAE.js} +3 -3
- package/dist/chunks/{chunk-ABKURT35.js → chunk-HKRUNZVI.js} +3 -3
- package/dist/chunks/{chunk-JPM3JXZB.js → chunk-HM7L5PM2.js} +3 -3
- package/dist/chunks/{chunk-UFGLSUGU.js → chunk-I4RC6KQQ.js} +19 -19
- package/dist/chunks/{chunk-HW2QBNAA.js → chunk-IL4Y3JGT.js} +13 -13
- package/dist/chunks/{chunk-D3SCA6NT.js → chunk-IMMUS7IW.js} +278 -7
- package/dist/chunks/chunk-IMMUS7IW.js.map +6 -0
- package/dist/chunks/{chunk-D6XZ4ZAV.js → chunk-IQ44C7Y3.js} +33 -9
- package/dist/chunks/chunk-IQ44C7Y3.js.map +6 -0
- package/dist/chunks/{chunk-24EZWZDZ.js → chunk-J4PL65DJ.js} +6 -6
- package/dist/chunks/chunk-JANK2R3L.js +402 -0
- package/dist/chunks/chunk-JANK2R3L.js.map +6 -0
- package/dist/chunks/{chunk-E65IWYTT.js → chunk-JECLB23L.js} +6 -6
- package/dist/chunks/{chunk-3RLKUXXG.js → chunk-JJ72TLOA.js} +15 -15
- package/dist/chunks/{chunk-CG5CGXNF.js → chunk-JRBFL6WT.js} +2 -2
- package/dist/chunks/{chunk-KBLYZ7L7.js → chunk-K2EKXCLZ.js} +3 -3
- package/dist/chunks/{chunk-567CSU37.js → chunk-K7YZJV2X.js} +248 -24
- package/dist/chunks/chunk-K7YZJV2X.js.map +6 -0
- package/dist/chunks/chunk-KF6IKSF2.js +472 -0
- package/dist/chunks/chunk-KF6IKSF2.js.map +6 -0
- package/dist/chunks/{chunk-OQWLQUO7.js → chunk-KSRN5Y2O.js} +196 -59
- package/dist/chunks/chunk-KSRN5Y2O.js.map +6 -0
- package/dist/chunks/{chunk-WW3AU2YN.js → chunk-ME4LETA3.js} +2 -2
- package/dist/chunks/{chunk-J5E4DV6R.js → chunk-MF3SFDBW.js} +3 -3
- package/dist/chunks/{chunk-WSDZIJNK.js → chunk-MK42KB72.js} +4 -4
- package/dist/chunks/{chunk-RZKIZTPA.js → chunk-MUSGZEFY.js} +2 -2
- package/dist/chunks/{chunk-MF5KTVGJ.js → chunk-N5CCXOYK.js} +7 -7
- package/dist/chunks/{chunk-KVNL7XA6.js → chunk-NBJ5PRAY.js} +3 -3
- package/dist/chunks/{chunk-E4RVHFV6.js → chunk-NKHEBASJ.js} +2 -2
- package/dist/chunks/{chunk-SS6IJAPA.js → chunk-NVWD5XDT.js} +2 -2
- package/dist/chunks/{chunk-7LDUPEXP.js → chunk-O45DCUNX.js} +2 -2
- package/dist/chunks/{chunk-KHGY6QJR.js → chunk-O4EILTV6.js} +145 -20
- package/dist/chunks/chunk-O4EILTV6.js.map +6 -0
- package/dist/chunks/{chunk-G76POTWW.js → chunk-PAUMCJPX.js} +3 -3
- package/dist/chunks/{chunk-MF57EX7H.js → chunk-PE4MWWUW.js} +3 -3
- package/dist/chunks/{chunk-4RW7GDJ4.js → chunk-PLCWCIL4.js} +2 -2
- package/dist/chunks/{chunk-XVOPQCPD.js → chunk-PRJO4XM3.js} +2 -2
- package/dist/chunks/{chunk-CQFWLYTK.js → chunk-PRRX5LNR.js} +2 -2
- package/dist/chunks/{chunk-3PH6F6Z3.js → chunk-PS5SVAUJ.js} +2 -2
- package/dist/chunks/chunk-PZLPACNY.js +407 -0
- package/dist/chunks/chunk-PZLPACNY.js.map +6 -0
- package/dist/chunks/{chunk-P725GKKG.js → chunk-PZWSRAE7.js} +6 -6
- package/dist/chunks/{chunk-6IOZY2AB.js → chunk-QBLHOG2F.js} +36 -14
- package/dist/chunks/chunk-QBLHOG2F.js.map +6 -0
- package/dist/chunks/{chunk-CNSKJ3DZ.js → chunk-QCV3HH4P.js} +2 -2
- package/dist/chunks/{chunk-7J23SPSX.js → chunk-QGBR42TV.js} +8 -7
- package/dist/chunks/{chunk-6CSJRIUZ.js → chunk-QNJXULU7.js} +2 -2
- package/dist/chunks/{chunk-5JVKE4LB.js → chunk-QQ4S6MNH.js} +13638 -4103
- package/dist/chunks/chunk-QQ4S6MNH.js.map +6 -0
- package/dist/chunks/{chunk-DJKWBSVM.js → chunk-R2KAESOM.js} +2 -2
- package/dist/chunks/{chunk-AIQKSTVJ.js → chunk-R6M6EIAH.js} +4 -4
- package/dist/chunks/{chunk-VJHENTNB.js → chunk-RKKU2RE4.js} +2 -2
- package/dist/chunks/{chunk-JZTTOZRG.js → chunk-RMOTHWPV.js} +2 -2
- package/dist/chunks/{chunk-EA6YICQ7.js → chunk-RQAY7REG.js} +3 -3
- package/dist/chunks/{chunk-LWJJDERP.js → chunk-SLTJNYOU.js} +2 -2
- package/dist/chunks/{chunk-UL6MZ5OM.js → chunk-SXONHO4H.js} +9 -9
- package/dist/chunks/{chunk-W4S4ZBXX.js → chunk-T7ILM666.js} +11 -11
- package/dist/chunks/{chunk-E6FMAE5Q.js → chunk-TBGKPWCL.js} +9 -9
- package/dist/chunks/{chunk-ACO3LTRT.js → chunk-TBJ6XU3T.js} +3 -3
- package/dist/chunks/{chunk-5HMJ3DYR.js → chunk-TMPP2DEY.js} +4 -4
- package/dist/chunks/{chunk-6YXHH5JW.js → chunk-TSOZBRM6.js} +2 -2
- package/dist/chunks/{chunk-SSPHAILP.js → chunk-TTFPWGIU.js} +2 -2
- package/dist/chunks/{chunk-TRRKG642.js → chunk-TTKMQW6B.js} +3 -3
- package/dist/chunks/{chunk-2VP2Q657.js → chunk-UCML5ZXB.js} +3 -3
- package/dist/chunks/{chunk-OH7EYW3T.js → chunk-VG7245VJ.js} +6 -6
- package/dist/chunks/{chunk-QZTTIL3A.js → chunk-VQZPXK4X.js} +3 -3
- package/dist/chunks/{chunk-O2PZDA5H.js → chunk-VWUTJ4EU.js} +3 -3
- package/dist/chunks/{chunk-VL6Z2OMG.js → chunk-WDKAL7EW.js} +2 -2
- package/dist/chunks/{chunk-2KC52MDS.js → chunk-WJ6QRVL6.js} +2 -2
- package/dist/chunks/{chunk-XJALHM5Z.js → chunk-WOTA5FO5.js} +3 -3
- package/dist/chunks/{chunk-4TJ7AGQO.js → chunk-WPGVZMSU.js} +2 -2
- package/dist/chunks/{chunk-IRAG3YXW.js → chunk-WYA4QWWE.js} +181 -7
- package/dist/chunks/chunk-WYA4QWWE.js.map +6 -0
- package/dist/chunks/{chunk-DJTCZSSY.js → chunk-XDUA6PBP.js} +2 -2
- package/dist/chunks/{chunk-PKFXIWVX.js → chunk-XE6XT6R6.js} +4 -4
- package/dist/chunks/{chunk-JUDJGDYX.js → chunk-XNQY26AE.js} +31 -131
- package/dist/chunks/chunk-XNQY26AE.js.map +6 -0
- package/dist/chunks/{chunk-FRGOWO6N.js → chunk-YR3TWNIV.js} +13 -12
- package/dist/chunks/chunk-YR3TWNIV.js.map +6 -0
- package/dist/chunks/{chunk-LXJW3ZYI.js → chunk-YWRRS7SO.js} +2 -2
- package/dist/chunks/{chunk-OOJP5BEK.js → chunk-Z5OG4HXI.js} +51 -25
- package/dist/chunks/chunk-Z5OG4HXI.js.map +6 -0
- package/dist/chunks/{chunk-JRWUIW4J.js → chunk-ZHEEG3NS.js} +2 -2
- package/dist/chunks/{cli-runtime-P6LCHPBA.js → cli-runtime-ZJKKIW4H.js} +22 -22
- package/dist/chunks/{commands-BNHIQVYO.js → commands-TQH5DD22.js} +6 -6
- package/dist/chunks/{computer-6P3GAOV2.js → computer-WOU5WIIR.js} +2 -2
- package/dist/chunks/{config-ZMXMX2WY.js → config-APYUJ5UW.js} +13 -13
- package/dist/chunks/{cost-BJKADKEZ.js → cost-5YV27U7F.js} +5 -5
- package/dist/chunks/{crash-report-OJHGVRD7.js → crash-report-QVXU2YVL.js} +6 -6
- package/dist/chunks/{dist-PMSBTFU5.js → dist-2FSOLP72.js} +2 -2
- package/dist/chunks/{dist-43XWK3LF.js → dist-AOT4CEP5.js} +2 -2
- package/dist/chunks/{dist-4ZPDHZOX.js → dist-H7CAJ3ZW.js} +48 -2
- package/dist/chunks/{dist-NCBDELMI.js → dist-IZGKRIWL.js} +2 -2
- package/dist/chunks/{dist-BGJEX527.js → dist-J4UXFVYR.js} +2 -2
- package/dist/chunks/{dist-FMFNU4M3.js → dist-JHKRSGW6.js} +2 -2
- package/dist/chunks/{dist-4LEGETQA.js → dist-PZYMYR7N.js} +3 -3
- package/dist/chunks/{dist-ADQAO5C3.js → dist-Z2HW2SJR.js} +2 -2
- package/dist/chunks/{doctor-AIYB27QY.js → doctor-CM6UPXG5.js} +40 -38
- package/dist/chunks/{drain-PYKX4QNR.js → drain-X6RURKKC.js} +17 -17
- package/dist/chunks/{entry-HM5E7KCD.js → entry-QQDPY6ZL.js} +6 -6
- package/dist/chunks/{eval-H4NKZYVV.js → eval-GZA22B4I.js} +9 -9
- package/dist/chunks/{exec-2PRVZNUX.js → exec-3NE75Z6E.js} +46 -45
- package/dist/chunks/exec-3NE75Z6E.js.map +6 -0
- package/dist/chunks/{extension-4233XOZW.js → extension-N5IQNKVZ.js} +6 -5
- package/dist/chunks/{github-IF3JVVJF.js → github-AUOENJUY.js} +2 -2
- package/dist/chunks/{home-AZY7APF6.js → home-I4FIB6FV.js} +3 -3
- package/dist/chunks/{homes-WL6LAAY5.js → homes-WTMMXQ6G.js} +5 -5
- package/dist/chunks/{hooks-AK5S4YUS.js → hooks-R42OTZDT.js} +22 -21
- package/dist/chunks/hooks-R42OTZDT.js.map +6 -0
- package/dist/chunks/{hooks-report-NJLGBWN3.js → hooks-report-K6VOPVBR.js} +18 -17
- package/dist/chunks/{host-SX3QC5FN.js → host-65UFBZJV.js} +10 -10
- package/dist/chunks/host-queries-L4PYE2BW.js +37 -0
- package/dist/chunks/{installed-list-44QXUJFE.js → installed-list-7QIWVKLQ.js} +4 -4
- package/dist/chunks/{learn-LW4DLSGZ.js → learn-NZXLKYV4.js} +17 -17
- package/dist/chunks/{learn-builtin-4RV2XDH4.js → learn-builtin-RC4XXVBS.js} +20 -20
- package/dist/chunks/{lifecycle-AJCHTSAF.js → lifecycle-NLCZ6OPA.js} +30 -30
- package/dist/chunks/{list-DT7AJVPX.js → list-2U67CAWS.js} +18 -18
- package/dist/chunks/{live-Z6HZFXPW.js → live-CWJ2NWUQ.js} +39 -37
- package/dist/chunks/{load-454TJBPW.js → load-H52QQBVE.js} +13 -9
- package/dist/chunks/{logs-GRUSUSL7.js → logs-ZIW3QFU4.js} +4 -4
- package/dist/chunks/{mcp-AFLRDYNN.js → mcp-FNSMEMCM.js} +145 -35
- package/dist/chunks/mcp-FNSMEMCM.js.map +6 -0
- package/dist/chunks/{mcp-serve-NNWP4IES.js → mcp-serve-ZC2OKIPP.js} +17 -17
- package/dist/chunks/{message-command-ZR2JQBBU.js → message-command-IHZWL5GI.js} +59 -56
- package/dist/chunks/message-command-IHZWL5GI.js.map +6 -0
- package/dist/chunks/{open-Z3BELFL7.js → open-AHDQMVXI.js} +7 -7
- package/dist/chunks/{operator-tools-PN3SPQ3C.js → operator-tools-P5R4TF6N.js} +15 -15
- package/dist/chunks/{output-schema-DSR56W6A.js → output-schema-Q5RWHNKE.js} +3 -3
- package/dist/chunks/{pal-ZOH5ILEV.js → pal-T42HU4AK.js} +15 -15
- package/dist/chunks/{peers-LXNB4QSL.js → peers-5RYEA7IA.js} +7 -7
- package/dist/chunks/{peers-WINODTEB.js → peers-7ZG3DEBO.js} +19 -19
- package/dist/chunks/plugin-DGEINYG5.js +2958 -0
- package/dist/chunks/plugin-DGEINYG5.js.map +6 -0
- package/dist/chunks/{providers-UOTUEQOJ.js → providers-BXXIM7EW.js} +18 -18
- package/dist/chunks/{providers-AVECY67I.js → providers-I24HYZXG.js} +10 -10
- package/dist/chunks/{pty-GW2YC23H.js → pty-WVKM6ATI.js} +3 -3
- package/dist/chunks/resume-F7JEDBHI.js +25 -0
- package/dist/chunks/{resume-command-FXT3KGLC.js → resume-command-4I47WN7T.js} +4 -4
- package/dist/chunks/{running-3NLAODZ7.js → running-VID6BVT2.js} +4 -4
- package/dist/chunks/{schedule-TTQUT45H.js → schedule-75IZH76Z.js} +12 -12
- package/dist/chunks/{send-FRNTRW2M.js → send-QRYY2NCG.js} +19 -19
- package/dist/chunks/send-person-VADQNJBN.js +32 -0
- package/dist/chunks/{service-TCKPUGL5.js → service-B6BNESZB.js} +30 -30
- package/dist/chunks/{setting-cli-HGYOIGC6.js → setting-cli-O4YWOIU5.js} +12 -12
- package/dist/chunks/skills-PEMVX5C3.js +604 -0
- package/dist/chunks/skills-PEMVX5C3.js.map +6 -0
- package/dist/chunks/{start-check-C5VJXVPY.js → start-check-EKRXJ5VE.js} +2 -2
- package/dist/chunks/{startup-failure-YQSEQRNQ.js → startup-failure-2UJKPNMR.js} +2 -2
- package/dist/chunks/{state-2DBTSDEP.js → state-X3MKUFYM.js} +20 -20
- package/dist/chunks/{store-CZGKLVTT.js → store-4OXWHFS5.js} +12 -12
- package/dist/chunks/{store-RJZCW2MI.js → store-MK5IYBE5.js} +8 -8
- package/dist/chunks/{store-JJKCDY7Y.js → store-QFNY4BV4.js} +10 -4
- package/dist/chunks/{store-S4BT3ESJ.js → store-VRKKFOYW.js} +3 -3
- package/dist/chunks/{tui-Q7ED7VFI.js → tui-MI72TUST.js} +96 -92
- package/dist/chunks/tui-MI72TUST.js.map +6 -0
- package/dist/chunks/{update-G7D3YCH5.js → update-ELZEXYIX.js} +8 -8
- package/dist/chunks/{watch-EON3IWRY.js → watch-HPINGMZZ.js} +100 -96
- package/dist/chunks/watch-HPINGMZZ.js.map +6 -0
- package/dist/chunks/{workspaces-O6S2OTDL.js → workspaces-3LB4SPPS.js} +15 -15
- package/dist/chunks/{worktree-A2DNXLOT.js → worktree-5CWUUWNO.js} +26 -22
- package/dist/chunks/worktree-5CWUUWNO.js.map +6 -0
- package/dist/commands/acp.d.ts +4 -2
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/actions/mcp.d.ts.map +1 -1
- package/dist/commands/actions/small.d.ts.map +1 -1
- package/dist/commands/desktop-host-plugins.d.ts +321 -0
- package/dist/commands/desktop-host-plugins.d.ts.map +1 -0
- package/dist/commands/desktop-host-skills.d.ts +103 -0
- package/dist/commands/desktop-host-skills.d.ts.map +1 -0
- package/dist/commands/desktop-host.d.ts +230 -18
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/manifest.d.ts.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/plugin-install.d.ts +28 -0
- package/dist/commands/plugin-install.d.ts.map +1 -0
- package/dist/commands/plugin-records.d.ts +48 -0
- package/dist/commands/plugin-records.d.ts.map +1 -0
- package/dist/commands/plugin.d.ts.map +1 -1
- package/dist/commands/skills-manage.d.ts +32 -0
- package/dist/commands/skills-manage.d.ts.map +1 -0
- package/dist/commands/skills.d.ts.map +1 -1
- package/dist/config/hooks-report.d.ts.map +1 -1
- package/dist/config/load.d.ts +9 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +19 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/settings-descriptors.d.ts.map +1 -1
- package/dist/index.js +40 -38
- package/dist/integrations/archive/zip.d.ts +36 -0
- package/dist/integrations/archive/zip.d.ts.map +1 -0
- package/dist/integrations/extensions/package.d.ts +7 -16
- package/dist/integrations/extensions/package.d.ts.map +1 -1
- package/dist/integrations/mcp/all-servers.d.ts +30 -0
- package/dist/integrations/mcp/all-servers.d.ts.map +1 -0
- package/dist/integrations/mcp/plugin-remote.d.ts +141 -0
- package/dist/integrations/mcp/plugin-remote.d.ts.map +1 -0
- package/dist/integrations/mcp/project-approval.d.ts +29 -1
- package/dist/integrations/mcp/project-approval.d.ts.map +1 -1
- package/dist/integrations/mcp/server-listing.d.ts +7 -3
- package/dist/integrations/mcp/server-listing.d.ts.map +1 -1
- package/dist/integrations/mcp/servers.d.ts +6 -0
- package/dist/integrations/mcp/servers.d.ts.map +1 -1
- package/dist/integrations/mcp/user-config.d.ts +10 -0
- package/dist/integrations/mcp/user-config.d.ts.map +1 -1
- package/dist/integrations/plugins/enabled-records.d.ts +78 -0
- package/dist/integrations/plugins/enabled-records.d.ts.map +1 -0
- package/dist/integrations/plugins/fetch/archive.d.ts +15 -0
- package/dist/integrations/plugins/fetch/archive.d.ts.map +1 -0
- package/dist/integrations/plugins/fetch/git.d.ts +145 -0
- package/dist/integrations/plugins/fetch/git.d.ts.map +1 -0
- package/dist/integrations/plugins/fetch/index.d.ts +33 -0
- package/dist/integrations/plugins/fetch/index.d.ts.map +1 -0
- package/dist/integrations/plugins/fetch/source.d.ts +107 -0
- package/dist/integrations/plugins/fetch/source.d.ts.map +1 -0
- package/dist/integrations/plugins/fetch/url.d.ts +34 -0
- package/dist/integrations/plugins/fetch/url.d.ts.map +1 -0
- package/dist/integrations/plugins/files.d.ts +15 -3
- package/dist/integrations/plugins/files.d.ts.map +1 -1
- package/dist/integrations/plugins/hook-entries.d.ts +2 -0
- package/dist/integrations/plugins/hook-entries.d.ts.map +1 -1
- package/dist/integrations/plugins/install-manifest.d.ts +70 -0
- package/dist/integrations/plugins/install-manifest.d.ts.map +1 -0
- package/dist/integrations/plugins/install-plan.d.ts +119 -0
- package/dist/integrations/plugins/install-plan.d.ts.map +1 -0
- package/dist/integrations/plugins/install-preview.d.ts +24 -0
- package/dist/integrations/plugins/install-preview.d.ts.map +1 -0
- package/dist/integrations/plugins/install.d.ts +118 -0
- package/dist/integrations/plugins/install.d.ts.map +1 -0
- package/dist/integrations/plugins/installed-source.d.ts +80 -0
- package/dist/integrations/plugins/installed-source.d.ts.map +1 -0
- package/dist/integrations/plugins/inventory.d.ts +2 -1
- package/dist/integrations/plugins/inventory.d.ts.map +1 -1
- package/dist/integrations/plugins/json-state.d.ts +52 -0
- package/dist/integrations/plugins/json-state.d.ts.map +1 -0
- package/dist/integrations/plugins/manifest-details.d.ts +23 -0
- package/dist/integrations/plugins/manifest-details.d.ts.map +1 -0
- package/dist/integrations/plugins/marketplace.d.ts +111 -0
- package/dist/integrations/plugins/marketplace.d.ts.map +1 -0
- package/dist/integrations/plugins/records.d.ts +127 -0
- package/dist/integrations/plugins/records.d.ts.map +1 -0
- package/dist/integrations/plugins/remote-marketplace.d.ts +100 -0
- package/dist/integrations/plugins/remote-marketplace.d.ts.map +1 -0
- package/dist/integrations/plugins/runtime.d.ts +28 -0
- package/dist/integrations/plugins/runtime.d.ts.map +1 -1
- package/dist/integrations/plugins/surface.d.ts +126 -0
- package/dist/integrations/plugins/surface.d.ts.map +1 -0
- package/dist/integrations/plugins/update-compare.d.ts +18 -0
- package/dist/integrations/plugins/update-compare.d.ts.map +1 -0
- package/dist/integrations/plugins/validate.d.ts +50 -1
- package/dist/integrations/plugins/validate.d.ts.map +1 -1
- package/dist/integrations/subagents/definitions.d.ts +4 -0
- package/dist/integrations/subagents/definitions.d.ts.map +1 -1
- package/dist/integrations/trust/folder-grants.d.ts +21 -1
- package/dist/integrations/trust/folder-grants.d.ts.map +1 -1
- package/dist/reminders/skills.d.ts.map +1 -1
- package/dist/rounds/types.d.ts +5 -0
- package/dist/rounds/types.d.ts.map +1 -1
- package/dist/skills/add.d.ts +104 -0
- package/dist/skills/add.d.ts.map +1 -0
- package/dist/skills/audit.d.ts +7 -1
- package/dist/skills/audit.d.ts.map +1 -1
- package/dist/skills/catalog.d.ts +14 -1
- package/dist/skills/catalog.d.ts.map +1 -1
- package/dist/skills/create.d.ts +19 -0
- package/dist/skills/create.d.ts.map +1 -0
- package/dist/skills/desktop-catalog.d.ts +64 -0
- package/dist/skills/desktop-catalog.d.ts.map +1 -0
- package/dist/skills/install.d.ts +73 -0
- package/dist/skills/install.d.ts.map +1 -0
- package/dist/skills/installed-list.d.ts +1 -1
- package/dist/skills/installed-list.d.ts.map +1 -1
- package/dist/skills/overrides.d.ts +56 -0
- package/dist/skills/overrides.d.ts.map +1 -0
- package/dist/skills/remove.d.ts +38 -0
- package/dist/skills/remove.d.ts.map +1 -0
- package/dist/skills/save.d.ts +4 -48
- package/dist/skills/save.d.ts.map +1 -1
- package/dist/skills/store.d.ts +20 -3
- package/dist/skills/store.d.ts.map +1 -1
- package/dist/skills/usage.d.ts +54 -0
- package/dist/skills/usage.d.ts.map +1 -0
- package/dist/skills/validate.d.ts +57 -0
- package/dist/skills/validate.d.ts.map +1 -0
- package/dist/tui/App.d.ts +10 -15
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +6 -10
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/PendingInputPanel.d.ts +4 -4
- package/dist/tui/PendingInputPanel.d.ts.map +1 -1
- package/dist/tui/PluginScreen.d.ts +17 -0
- package/dist/tui/PluginScreen.d.ts.map +1 -0
- package/dist/tui/SaveSkillOverlay.d.ts +8 -0
- package/dist/tui/SaveSkillOverlay.d.ts.map +1 -1
- package/dist/tui/SkillsManager.d.ts +9 -0
- package/dist/tui/SkillsManager.d.ts.map +1 -0
- package/dist/tui/TrustPrompt.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +17 -0
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/plugin-screen.d.ts +243 -0
- package/dist/tui/plugin-screen.d.ts.map +1 -0
- package/dist/tui/plugin-view.d.ts +4 -0
- package/dist/tui/plugin-view.d.ts.map +1 -1
- package/dist/tui/skills/suggest-setting.d.ts +3 -3
- package/dist/tui/skills-manager.d.ts +145 -0
- package/dist/tui/skills-manager.d.ts.map +1 -0
- package/dist/tui/slashCommands.d.ts +1 -1
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/user-commands/store.d.ts +12 -0
- package/dist/user-commands/store.d.ts.map +1 -1
- package/package.json +3 -3
- package/skills/skill-creator/SKILL.md +2 -2
- package/dist/chunks/acp-AQUZCZSO.js.map +0 -6
- package/dist/chunks/agent-session-WXWW7E5M.js +0 -92
- package/dist/chunks/chunk-3ETXWTV4.js.map +0 -6
- package/dist/chunks/chunk-4BAXYUZQ.js.map +0 -6
- package/dist/chunks/chunk-567CSU37.js.map +0 -6
- package/dist/chunks/chunk-5JVKE4LB.js.map +0 -6
- package/dist/chunks/chunk-6IOZY2AB.js.map +0 -6
- package/dist/chunks/chunk-AEXGGJUW.js.map +0 -6
- package/dist/chunks/chunk-D3SCA6NT.js.map +0 -6
- package/dist/chunks/chunk-D6XZ4ZAV.js.map +0 -6
- package/dist/chunks/chunk-FK5C7SHM.js.map +0 -6
- package/dist/chunks/chunk-FMQCPAKR.js +0 -116
- package/dist/chunks/chunk-FMQCPAKR.js.map +0 -6
- package/dist/chunks/chunk-FRGOWO6N.js.map +0 -6
- package/dist/chunks/chunk-HGTOAMV6.js.map +0 -6
- package/dist/chunks/chunk-IRAG3YXW.js.map +0 -6
- package/dist/chunks/chunk-JUDJGDYX.js.map +0 -6
- package/dist/chunks/chunk-KHGY6QJR.js.map +0 -6
- package/dist/chunks/chunk-OOJP5BEK.js.map +0 -6
- package/dist/chunks/chunk-OQWLQUO7.js.map +0 -6
- package/dist/chunks/chunk-RHJOIAFS.js +0 -201
- package/dist/chunks/chunk-RHJOIAFS.js.map +0 -6
- package/dist/chunks/exec-2PRVZNUX.js.map +0 -6
- package/dist/chunks/hooks-AK5S4YUS.js.map +0 -6
- package/dist/chunks/host-queries-HBW7AW44.js +0 -37
- package/dist/chunks/mcp-AFLRDYNN.js.map +0 -6
- package/dist/chunks/message-command-ZR2JQBBU.js.map +0 -6
- package/dist/chunks/plugin-MLHZ42NZ.js +0 -1132
- package/dist/chunks/plugin-MLHZ42NZ.js.map +0 -6
- package/dist/chunks/resume-AYWSKWEX.js +0 -25
- package/dist/chunks/send-person-57F5RJA7.js +0 -32
- package/dist/chunks/skills-ICVGYWBH.js +0 -350
- package/dist/chunks/skills-ICVGYWBH.js.map +0 -6
- package/dist/chunks/tui-Q7ED7VFI.js.map +0 -6
- package/dist/chunks/watch-EON3IWRY.js.map +0 -6
- package/dist/chunks/worktree-A2DNXLOT.js.map +0 -6
- /package/dist/chunks/{activity-command-Y3A6GIFW.js.map → activity-command-JU4HLIQJ.js.map} +0 -0
- /package/dist/chunks/{add-DWFKSOYI.js.map → add-S6JYKDI4.js.map} +0 -0
- /package/dist/chunks/{agent-Z6PJYBAO.js.map → agent-E343AQV7.js.map} +0 -0
- /package/dist/chunks/{agent-session-WXWW7E5M.js.map → agent-session-D6JIOCON.js.map} +0 -0
- /package/dist/chunks/{apply-at-exit-SHGR2BAB.js.map → apply-at-exit-MEOJMGNT.js.map} +0 -0
- /package/dist/chunks/{archive-KYXU4AZZ.js.map → archive-ZPWC7GZU.js.map} +0 -0
- /package/dist/chunks/{auth-R3RCZZ7U.js.map → auth-6NX4TMIG.js.map} +0 -0
- /package/dist/chunks/{bin-main-DUZFYUCJ.js.map → bin-main-P3KAQDKC.js.map} +0 -0
- /package/dist/chunks/{binding-5UJYMFMU.js.map → binding-6QZVGFQ5.js.map} +0 -0
- /package/dist/chunks/{browser-7CFZ6BZS.js.map → browser-KK2U5524.js.map} +0 -0
- /package/dist/chunks/{chat-BELD32ZP.js.map → chat-VEXJRSZN.js.map} +0 -0
- /package/dist/chunks/{chunk-MDBUSIPW.js.map → chunk-2KVQVPJ7.js.map} +0 -0
- /package/dist/chunks/{chunk-MRZHTIE7.js.map → chunk-42JIZXVL.js.map} +0 -0
- /package/dist/chunks/{chunk-ESIICAI3.js.map → chunk-4473VICE.js.map} +0 -0
- /package/dist/chunks/{chunk-DGYMR4WJ.js.map → chunk-44YG6EI4.js.map} +0 -0
- /package/dist/chunks/{chunk-ZQGCZYAE.js.map → chunk-452SL2Y4.js.map} +0 -0
- /package/dist/chunks/{chunk-VE4XIWDW.js.map → chunk-4BNCVR3U.js.map} +0 -0
- /package/dist/chunks/{chunk-2EVP6BX4.js.map → chunk-4CJ3HPOT.js.map} +0 -0
- /package/dist/chunks/{chunk-TORIEDBN.js.map → chunk-4ENL4VUO.js.map} +0 -0
- /package/dist/chunks/{chunk-IJ6Z6FNY.js.map → chunk-4KVYTHY7.js.map} +0 -0
- /package/dist/chunks/{chunk-YNWPC3HO.js.map → chunk-4Y242BU4.js.map} +0 -0
- /package/dist/chunks/{chunk-OA7QKUCM.js.map → chunk-5F4DSPZC.js.map} +0 -0
- /package/dist/chunks/{chunk-DRWJTADQ.js.map → chunk-5IGEQN7L.js.map} +0 -0
- /package/dist/chunks/{chunk-W752G3FM.js.map → chunk-5ZLKTFU2.js.map} +0 -0
- /package/dist/chunks/{chunk-KETRBV2E.js.map → chunk-66QIFMEO.js.map} +0 -0
- /package/dist/chunks/{chunk-CEZW3NVM.js.map → chunk-6W3UGXGG.js.map} +0 -0
- /package/dist/chunks/{chunk-S7FE35WQ.js.map → chunk-75YLZNZW.js.map} +0 -0
- /package/dist/chunks/{chunk-P4TCLMD6.js.map → chunk-AC5P6W3G.js.map} +0 -0
- /package/dist/chunks/{chunk-GUK47JTV.js.map → chunk-AYMB4AOZ.js.map} +0 -0
- /package/dist/chunks/{chunk-23D5IXMW.js.map → chunk-B4AOCHH6.js.map} +0 -0
- /package/dist/chunks/{chunk-FEOS7UZ2.js.map → chunk-BA7KUG6V.js.map} +0 -0
- /package/dist/chunks/{chunk-D35UCVTK.js.map → chunk-BHQHTM3Z.js.map} +0 -0
- /package/dist/chunks/{chunk-KPOOM7QT.js.map → chunk-BNLIRJ3M.js.map} +0 -0
- /package/dist/chunks/{chunk-MDVYEFTI.js.map → chunk-BURGRQWO.js.map} +0 -0
- /package/dist/chunks/{chunk-DKSFQRUM.js.map → chunk-BWD2TUI4.js.map} +0 -0
- /package/dist/chunks/{chunk-7Y4RR47U.js.map → chunk-C7E7YCRD.js.map} +0 -0
- /package/dist/chunks/{chunk-44MFZJ24.js.map → chunk-CXW7I2S3.js.map} +0 -0
- /package/dist/chunks/{chunk-73HWWJYC.js.map → chunk-D6PB3Z7Q.js.map} +0 -0
- /package/dist/chunks/{chunk-QTHG6UPU.js.map → chunk-DEAG4G5J.js.map} +0 -0
- /package/dist/chunks/{chunk-WGC5DJEW.js.map → chunk-DRSQTKDN.js.map} +0 -0
- /package/dist/chunks/{chunk-WXYRLTRY.js.map → chunk-EXJJLYZK.js.map} +0 -0
- /package/dist/chunks/{chunk-PFVYYH6O.js.map → chunk-F5W4TNCR.js.map} +0 -0
- /package/dist/chunks/{chunk-Q6PZODSV.js.map → chunk-F7KOBJVW.js.map} +0 -0
- /package/dist/chunks/{chunk-VSNV3U2B.js.map → chunk-FK4MAZV2.js.map} +0 -0
- /package/dist/chunks/{chunk-G5LPTLLY.js.map → chunk-FPC3K4TT.js.map} +0 -0
- /package/dist/chunks/{chunk-XLXPPVUT.js.map → chunk-FVIKYFYD.js.map} +0 -0
- /package/dist/chunks/{chunk-PQT7624W.js.map → chunk-GPTYDM26.js.map} +0 -0
- /package/dist/chunks/{chunk-TP7DRQXE.js.map → chunk-GT22EDUB.js.map} +0 -0
- /package/dist/chunks/{chunk-GEVWZWLM.js.map → chunk-GTUTBTOV.js.map} +0 -0
- /package/dist/chunks/{chunk-GQ6WXY3M.js.map → chunk-H6NTNPWD.js.map} +0 -0
- /package/dist/chunks/{chunk-TYNAB5GR.js.map → chunk-HCQGZPVT.js.map} +0 -0
- /package/dist/chunks/{chunk-LB4HC5U7.js.map → chunk-HG2PPCAE.js.map} +0 -0
- /package/dist/chunks/{chunk-ABKURT35.js.map → chunk-HKRUNZVI.js.map} +0 -0
- /package/dist/chunks/{chunk-JPM3JXZB.js.map → chunk-HM7L5PM2.js.map} +0 -0
- /package/dist/chunks/{chunk-UFGLSUGU.js.map → chunk-I4RC6KQQ.js.map} +0 -0
- /package/dist/chunks/{chunk-HW2QBNAA.js.map → chunk-IL4Y3JGT.js.map} +0 -0
- /package/dist/chunks/{chunk-24EZWZDZ.js.map → chunk-J4PL65DJ.js.map} +0 -0
- /package/dist/chunks/{chunk-E65IWYTT.js.map → chunk-JECLB23L.js.map} +0 -0
- /package/dist/chunks/{chunk-3RLKUXXG.js.map → chunk-JJ72TLOA.js.map} +0 -0
- /package/dist/chunks/{chunk-CG5CGXNF.js.map → chunk-JRBFL6WT.js.map} +0 -0
- /package/dist/chunks/{chunk-KBLYZ7L7.js.map → chunk-K2EKXCLZ.js.map} +0 -0
- /package/dist/chunks/{chunk-WW3AU2YN.js.map → chunk-ME4LETA3.js.map} +0 -0
- /package/dist/chunks/{chunk-J5E4DV6R.js.map → chunk-MF3SFDBW.js.map} +0 -0
- /package/dist/chunks/{chunk-WSDZIJNK.js.map → chunk-MK42KB72.js.map} +0 -0
- /package/dist/chunks/{chunk-RZKIZTPA.js.map → chunk-MUSGZEFY.js.map} +0 -0
- /package/dist/chunks/{chunk-MF5KTVGJ.js.map → chunk-N5CCXOYK.js.map} +0 -0
- /package/dist/chunks/{chunk-KVNL7XA6.js.map → chunk-NBJ5PRAY.js.map} +0 -0
- /package/dist/chunks/{chunk-E4RVHFV6.js.map → chunk-NKHEBASJ.js.map} +0 -0
- /package/dist/chunks/{chunk-SS6IJAPA.js.map → chunk-NVWD5XDT.js.map} +0 -0
- /package/dist/chunks/{chunk-7LDUPEXP.js.map → chunk-O45DCUNX.js.map} +0 -0
- /package/dist/chunks/{chunk-G76POTWW.js.map → chunk-PAUMCJPX.js.map} +0 -0
- /package/dist/chunks/{chunk-MF57EX7H.js.map → chunk-PE4MWWUW.js.map} +0 -0
- /package/dist/chunks/{chunk-4RW7GDJ4.js.map → chunk-PLCWCIL4.js.map} +0 -0
- /package/dist/chunks/{chunk-XVOPQCPD.js.map → chunk-PRJO4XM3.js.map} +0 -0
- /package/dist/chunks/{chunk-CQFWLYTK.js.map → chunk-PRRX5LNR.js.map} +0 -0
- /package/dist/chunks/{chunk-3PH6F6Z3.js.map → chunk-PS5SVAUJ.js.map} +0 -0
- /package/dist/chunks/{chunk-P725GKKG.js.map → chunk-PZWSRAE7.js.map} +0 -0
- /package/dist/chunks/{chunk-CNSKJ3DZ.js.map → chunk-QCV3HH4P.js.map} +0 -0
- /package/dist/chunks/{chunk-7J23SPSX.js.map → chunk-QGBR42TV.js.map} +0 -0
- /package/dist/chunks/{chunk-6CSJRIUZ.js.map → chunk-QNJXULU7.js.map} +0 -0
- /package/dist/chunks/{chunk-DJKWBSVM.js.map → chunk-R2KAESOM.js.map} +0 -0
- /package/dist/chunks/{chunk-AIQKSTVJ.js.map → chunk-R6M6EIAH.js.map} +0 -0
- /package/dist/chunks/{chunk-VJHENTNB.js.map → chunk-RKKU2RE4.js.map} +0 -0
- /package/dist/chunks/{chunk-JZTTOZRG.js.map → chunk-RMOTHWPV.js.map} +0 -0
- /package/dist/chunks/{chunk-EA6YICQ7.js.map → chunk-RQAY7REG.js.map} +0 -0
- /package/dist/chunks/{chunk-LWJJDERP.js.map → chunk-SLTJNYOU.js.map} +0 -0
- /package/dist/chunks/{chunk-UL6MZ5OM.js.map → chunk-SXONHO4H.js.map} +0 -0
- /package/dist/chunks/{chunk-W4S4ZBXX.js.map → chunk-T7ILM666.js.map} +0 -0
- /package/dist/chunks/{chunk-E6FMAE5Q.js.map → chunk-TBGKPWCL.js.map} +0 -0
- /package/dist/chunks/{chunk-ACO3LTRT.js.map → chunk-TBJ6XU3T.js.map} +0 -0
- /package/dist/chunks/{chunk-5HMJ3DYR.js.map → chunk-TMPP2DEY.js.map} +0 -0
- /package/dist/chunks/{chunk-6YXHH5JW.js.map → chunk-TSOZBRM6.js.map} +0 -0
- /package/dist/chunks/{chunk-SSPHAILP.js.map → chunk-TTFPWGIU.js.map} +0 -0
- /package/dist/chunks/{chunk-TRRKG642.js.map → chunk-TTKMQW6B.js.map} +0 -0
- /package/dist/chunks/{chunk-2VP2Q657.js.map → chunk-UCML5ZXB.js.map} +0 -0
- /package/dist/chunks/{chunk-OH7EYW3T.js.map → chunk-VG7245VJ.js.map} +0 -0
- /package/dist/chunks/{chunk-QZTTIL3A.js.map → chunk-VQZPXK4X.js.map} +0 -0
- /package/dist/chunks/{chunk-O2PZDA5H.js.map → chunk-VWUTJ4EU.js.map} +0 -0
- /package/dist/chunks/{chunk-VL6Z2OMG.js.map → chunk-WDKAL7EW.js.map} +0 -0
- /package/dist/chunks/{chunk-2KC52MDS.js.map → chunk-WJ6QRVL6.js.map} +0 -0
- /package/dist/chunks/{chunk-XJALHM5Z.js.map → chunk-WOTA5FO5.js.map} +0 -0
- /package/dist/chunks/{chunk-4TJ7AGQO.js.map → chunk-WPGVZMSU.js.map} +0 -0
- /package/dist/chunks/{chunk-DJTCZSSY.js.map → chunk-XDUA6PBP.js.map} +0 -0
- /package/dist/chunks/{chunk-PKFXIWVX.js.map → chunk-XE6XT6R6.js.map} +0 -0
- /package/dist/chunks/{chunk-LXJW3ZYI.js.map → chunk-YWRRS7SO.js.map} +0 -0
- /package/dist/chunks/{chunk-JRWUIW4J.js.map → chunk-ZHEEG3NS.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-P6LCHPBA.js.map → cli-runtime-ZJKKIW4H.js.map} +0 -0
- /package/dist/chunks/{commands-BNHIQVYO.js.map → commands-TQH5DD22.js.map} +0 -0
- /package/dist/chunks/{computer-6P3GAOV2.js.map → computer-WOU5WIIR.js.map} +0 -0
- /package/dist/chunks/{config-ZMXMX2WY.js.map → config-APYUJ5UW.js.map} +0 -0
- /package/dist/chunks/{cost-BJKADKEZ.js.map → cost-5YV27U7F.js.map} +0 -0
- /package/dist/chunks/{crash-report-OJHGVRD7.js.map → crash-report-QVXU2YVL.js.map} +0 -0
- /package/dist/chunks/{dist-PMSBTFU5.js.map → dist-2FSOLP72.js.map} +0 -0
- /package/dist/chunks/{dist-43XWK3LF.js.map → dist-AOT4CEP5.js.map} +0 -0
- /package/dist/chunks/{dist-4LEGETQA.js.map → dist-H7CAJ3ZW.js.map} +0 -0
- /package/dist/chunks/{dist-NCBDELMI.js.map → dist-IZGKRIWL.js.map} +0 -0
- /package/dist/chunks/{dist-BGJEX527.js.map → dist-J4UXFVYR.js.map} +0 -0
- /package/dist/chunks/{dist-FMFNU4M3.js.map → dist-JHKRSGW6.js.map} +0 -0
- /package/dist/chunks/{dist-4ZPDHZOX.js.map → dist-PZYMYR7N.js.map} +0 -0
- /package/dist/chunks/{dist-ADQAO5C3.js.map → dist-Z2HW2SJR.js.map} +0 -0
- /package/dist/chunks/{doctor-AIYB27QY.js.map → doctor-CM6UPXG5.js.map} +0 -0
- /package/dist/chunks/{drain-PYKX4QNR.js.map → drain-X6RURKKC.js.map} +0 -0
- /package/dist/chunks/{entry-HM5E7KCD.js.map → entry-QQDPY6ZL.js.map} +0 -0
- /package/dist/chunks/{eval-H4NKZYVV.js.map → eval-GZA22B4I.js.map} +0 -0
- /package/dist/chunks/{extension-4233XOZW.js.map → extension-N5IQNKVZ.js.map} +0 -0
- /package/dist/chunks/{github-IF3JVVJF.js.map → github-AUOENJUY.js.map} +0 -0
- /package/dist/chunks/{home-AZY7APF6.js.map → home-I4FIB6FV.js.map} +0 -0
- /package/dist/chunks/{homes-WL6LAAY5.js.map → homes-WTMMXQ6G.js.map} +0 -0
- /package/dist/chunks/{hooks-report-NJLGBWN3.js.map → hooks-report-K6VOPVBR.js.map} +0 -0
- /package/dist/chunks/{host-SX3QC5FN.js.map → host-65UFBZJV.js.map} +0 -0
- /package/dist/chunks/{host-queries-HBW7AW44.js.map → host-queries-L4PYE2BW.js.map} +0 -0
- /package/dist/chunks/{installed-list-44QXUJFE.js.map → installed-list-7QIWVKLQ.js.map} +0 -0
- /package/dist/chunks/{learn-LW4DLSGZ.js.map → learn-NZXLKYV4.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-4RV2XDH4.js.map → learn-builtin-RC4XXVBS.js.map} +0 -0
- /package/dist/chunks/{lifecycle-AJCHTSAF.js.map → lifecycle-NLCZ6OPA.js.map} +0 -0
- /package/dist/chunks/{list-DT7AJVPX.js.map → list-2U67CAWS.js.map} +0 -0
- /package/dist/chunks/{live-Z6HZFXPW.js.map → live-CWJ2NWUQ.js.map} +0 -0
- /package/dist/chunks/{load-454TJBPW.js.map → load-H52QQBVE.js.map} +0 -0
- /package/dist/chunks/{logs-GRUSUSL7.js.map → logs-ZIW3QFU4.js.map} +0 -0
- /package/dist/chunks/{mcp-serve-NNWP4IES.js.map → mcp-serve-ZC2OKIPP.js.map} +0 -0
- /package/dist/chunks/{open-Z3BELFL7.js.map → open-AHDQMVXI.js.map} +0 -0
- /package/dist/chunks/{operator-tools-PN3SPQ3C.js.map → operator-tools-P5R4TF6N.js.map} +0 -0
- /package/dist/chunks/{output-schema-DSR56W6A.js.map → output-schema-Q5RWHNKE.js.map} +0 -0
- /package/dist/chunks/{pal-ZOH5ILEV.js.map → pal-T42HU4AK.js.map} +0 -0
- /package/dist/chunks/{peers-LXNB4QSL.js.map → peers-5RYEA7IA.js.map} +0 -0
- /package/dist/chunks/{peers-WINODTEB.js.map → peers-7ZG3DEBO.js.map} +0 -0
- /package/dist/chunks/{providers-UOTUEQOJ.js.map → providers-BXXIM7EW.js.map} +0 -0
- /package/dist/chunks/{providers-AVECY67I.js.map → providers-I24HYZXG.js.map} +0 -0
- /package/dist/chunks/{pty-GW2YC23H.js.map → pty-WVKM6ATI.js.map} +0 -0
- /package/dist/chunks/{resume-AYWSKWEX.js.map → resume-F7JEDBHI.js.map} +0 -0
- /package/dist/chunks/{resume-command-FXT3KGLC.js.map → resume-command-4I47WN7T.js.map} +0 -0
- /package/dist/chunks/{running-3NLAODZ7.js.map → running-VID6BVT2.js.map} +0 -0
- /package/dist/chunks/{schedule-TTQUT45H.js.map → schedule-75IZH76Z.js.map} +0 -0
- /package/dist/chunks/{send-FRNTRW2M.js.map → send-QRYY2NCG.js.map} +0 -0
- /package/dist/chunks/{send-person-57F5RJA7.js.map → send-person-VADQNJBN.js.map} +0 -0
- /package/dist/chunks/{service-TCKPUGL5.js.map → service-B6BNESZB.js.map} +0 -0
- /package/dist/chunks/{setting-cli-HGYOIGC6.js.map → setting-cli-O4YWOIU5.js.map} +0 -0
- /package/dist/chunks/{start-check-C5VJXVPY.js.map → start-check-EKRXJ5VE.js.map} +0 -0
- /package/dist/chunks/{startup-failure-YQSEQRNQ.js.map → startup-failure-2UJKPNMR.js.map} +0 -0
- /package/dist/chunks/{state-2DBTSDEP.js.map → state-X3MKUFYM.js.map} +0 -0
- /package/dist/chunks/{store-CZGKLVTT.js.map → store-4OXWHFS5.js.map} +0 -0
- /package/dist/chunks/{store-JJKCDY7Y.js.map → store-MK5IYBE5.js.map} +0 -0
- /package/dist/chunks/{store-RJZCW2MI.js.map → store-QFNY4BV4.js.map} +0 -0
- /package/dist/chunks/{store-S4BT3ESJ.js.map → store-VRKKFOYW.js.map} +0 -0
- /package/dist/chunks/{update-G7D3YCH5.js.map → update-ELZEXYIX.js.map} +0 -0
- /package/dist/chunks/{workspaces-O6S2OTDL.js.map → workspaces-3LB4SPPS.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../../src/integrations/mcp/servers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AASH,OAAO,EAEN,KAAK,eAAe,EAIpB,KAAK,YAAY,EAEjB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAEnB,KAAK,cAAc,EAEnB,KAAK,OAAO,EAIZ,MAAM,YAAY,CAAA;AASnB,OAAO,EAAE,KAAK,gBAAgB,EAAa,MAAM,cAAc,CAAA;AAW/D;;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,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAuB3E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAOnF;AA0CD,mGAAmG;AACnG,eAAO,MAAM,mBAAmB,IAAI,CAAA;AACpC,eAAO,MAAM,oBAAoB,KAAK,CAAA;AAEtC,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,oGAAoG;IACpG,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,8FAA8F;IAC9F,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAA;IAC/D;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAChC;AAgID;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC9B,MAAM,EAAE,gBAAgB,GAAG,SAAS,EACpC,OAAO,EAAE,eAAe,GACtB,aAAa,CA8bf;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACtC,MAAM,EAAE,gBAAgB,GAAG,SAAS,EACpC,OAAO,EAAE,eAAe,GACtB,OAAO,CAAC,aAAa,CAAC,CAIxB"}
|
|
@@ -31,7 +31,17 @@ export interface UserMcpServerInput {
|
|
|
31
31
|
readonly command?: string;
|
|
32
32
|
readonly args?: readonly string[];
|
|
33
33
|
readonly url?: string;
|
|
34
|
+
/** Header name to a value that is an environment reference (`${EXAMPLE_TOKEN}`). Address only. */
|
|
35
|
+
readonly headers?: Readonly<Record<string, string>>;
|
|
34
36
|
}
|
|
37
|
+
export declare const MCP_HEADERS_MAX = 20;
|
|
38
|
+
/** A header name: letters, digits and dashes. */
|
|
39
|
+
export declare const MCP_HEADER_NAME: RegExp;
|
|
40
|
+
/** A header value that is an environment reference, with or without `Bearer `, and nothing else. */
|
|
41
|
+
export declare const MCP_HEADER_REFERENCE: RegExp;
|
|
42
|
+
export declare const MCP_HEADER_LITERAL_MESSAGE = "A header value is written as an environment reference such as ${EXAMPLE_TOKEN}, so no secret is stored here.";
|
|
43
|
+
/** The headers a person gave, checked: names plain, values environment references only. */
|
|
44
|
+
export declare function checkUserMcpHeaders(headers: Readonly<Record<string, string>>): Readonly<Record<string, string>>;
|
|
35
45
|
export declare const MCP_NAME_RULE = "A server name starts with a letter and uses only letters, digits, _ or -, up to 64 characters.";
|
|
36
46
|
/** Why an address cannot be a tool server's, in plain words; absent when it can. */
|
|
37
47
|
export declare function mcpAddressProblem(url: string): string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-config.d.ts","sourceRoot":"","sources":["../../../src/integrations/mcp/user-config.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,KAAK,sBAAsB,EAO3B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAIjD,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CACtB;AAED,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAAC,IAAI,GAAE,sBAA2B,GAAG,SAAS,aAAa,EAAE,CAkB9F;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED,kFAAkF;AAClF,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,aAAa,EACnB,IAAI,GAAE,sBAA2B,GAC/B,MAAM,CAaR;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,sBAA2B,GAAG,OAAO,CAQ5F;AAgBD,MAAM,WAAW,oBAAoB;IACpC,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E,CAmB9B;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,KAAK,GAAG,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,kBAAkB,EACzB,IAAI,GAAE,sBAA2B,GAC/B,kBAAkB,CAYpB;AAED,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,KAAK,GAAG,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,kBAAkB,EACzB,IAAI,GAAE,sBAA2B,GAC/B,IAAI,CAEN"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two plugin keys a settings file may carry, and nothing else of it:
|
|
3
|
+
*
|
|
4
|
+
* - `enabledPlugins`: `{ "<name>@<marketplace>": true | false }`, the recorded
|
|
5
|
+
* yes or no for an installed plugin.
|
|
6
|
+
* - `extraKnownMarketplaces`: `{ "<name>": { "source": { "source": ... } } }`,
|
|
7
|
+
* marketplaces a layer suggests.
|
|
8
|
+
*
|
|
9
|
+
* They live in three files, one per layer: the user's `$NAMZU_HOME/settings.json`,
|
|
10
|
+
* the project's `.namzu/settings.json` (shared) and `.namzu/settings.local.json`
|
|
11
|
+
* (this computer). They are read here and not by the config layers, so config
|
|
12
|
+
* precedence is untouched; every other key of the file is kept as written when
|
|
13
|
+
* one of these changes.
|
|
14
|
+
*
|
|
15
|
+
* Who may say "on": the user's and the local file speak for themselves. A
|
|
16
|
+
* project file's `true` counts only when this computer has a record for that
|
|
17
|
+
* folder or the plugin installed at user scope: a repository cannot turn a
|
|
18
|
+
* plugin on by naming it. A project file's `false` always counts.
|
|
19
|
+
*/
|
|
20
|
+
import { type InstallRecord } from './records.js';
|
|
21
|
+
/** The most keys either record may hold in one file. */
|
|
22
|
+
export declare const RECORD_KEY_CAP = 500;
|
|
23
|
+
export type RecordLayer = 'user' | 'project' | 'local';
|
|
24
|
+
/** Highest first: the layer that speaks wins. */
|
|
25
|
+
export declare const RECORD_LAYERS_BY_PRECEDENCE: readonly RecordLayer[];
|
|
26
|
+
export declare function recordLayerPath(layer: RecordLayer, where: {
|
|
27
|
+
home: string;
|
|
28
|
+
cwd: string;
|
|
29
|
+
}): string;
|
|
30
|
+
export interface MarketplaceDeclaration {
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly source: Readonly<Record<string, unknown>> & {
|
|
33
|
+
readonly source: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export type RecordLayerRead = {
|
|
37
|
+
readonly state: 'missing' | 'ok';
|
|
38
|
+
readonly enabledPlugins: ReadonlyMap<string, boolean>;
|
|
39
|
+
readonly marketplaces: ReadonlyMap<string, MarketplaceDeclaration>;
|
|
40
|
+
/** Keys that are not a plugin id or a marketplace name, or whose value is not the right kind. */
|
|
41
|
+
readonly ignored: readonly string[];
|
|
42
|
+
} | {
|
|
43
|
+
readonly state: 'unreadable';
|
|
44
|
+
readonly reason: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* One layer's two records. A file that does not read, or whose records are not
|
|
48
|
+
* mappings or hold more than 500 keys, is `unreadable`: it says nothing, and the
|
|
49
|
+
* caller treats that as "not on". A key that is not an id or a marketplace
|
|
50
|
+
* name, and a value that is not a yes or a no, is left out and listed.
|
|
51
|
+
*/
|
|
52
|
+
export declare function readRecordLayer(path: string): RecordLayerRead;
|
|
53
|
+
/**
|
|
54
|
+
* Set (`true` or `false`) or clear (`undefined`) one plugin's entry in one
|
|
55
|
+
* layer's file. A new key past 500 is refused.
|
|
56
|
+
*/
|
|
57
|
+
export declare function setEnabledPlugin(path: string, home: string, id: string, value: boolean | undefined): void;
|
|
58
|
+
/** Add one marketplace declaration to one layer's file; a new key past 500 is refused. */
|
|
59
|
+
export declare function setExtraKnownMarketplace(path: string, home: string, name: string, source: unknown): void;
|
|
60
|
+
/** Remove one marketplace declaration from one layer's file; false when it was not there. */
|
|
61
|
+
export declare function removeExtraKnownMarketplace(path: string, home: string, name: string): boolean;
|
|
62
|
+
export type LayerReads = Readonly<Partial<Record<RecordLayer, RecordLayerRead>>>;
|
|
63
|
+
export interface EnabledAnswer {
|
|
64
|
+
readonly on: boolean;
|
|
65
|
+
/** The layer that spoke; absent when none did. */
|
|
66
|
+
readonly by?: RecordLayer;
|
|
67
|
+
}
|
|
68
|
+
/** Whether this computer has the plugin installed for the folder, or for the user. */
|
|
69
|
+
export declare function installedHere(records: readonly InstallRecord[], cwd: string): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* The recorded answer for one plugin: local, then project, then user; the
|
|
72
|
+
* highest layer that speaks wins. A project `true` is skipped (it does not
|
|
73
|
+
* speak) unless `installed` says this computer has the plugin for the folder or
|
|
74
|
+
* for the user. A layer that did not read does not speak. No layer speaking
|
|
75
|
+
* means off: an installed plugin needs a recorded yes.
|
|
76
|
+
*/
|
|
77
|
+
export declare function resolveEnabled(id: string, layers: LayerReads, installed: boolean): EnabledAnswer;
|
|
78
|
+
//# sourceMappingURL=enabled-records.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enabled-records.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/enabled-records.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAMH,OAAO,EACN,KAAK,aAAa,EAKlB,MAAM,cAAc,CAAA;AAErB,wDAAwD;AACxD,eAAO,MAAM,cAAc,MAAM,CAAA;AAEjC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;AAEtD,iDAAiD;AACjD,eAAO,MAAM,2BAA2B,EAAE,SAAS,WAAW,EAAiC,CAAA;AAE/F,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAMhG;AAED,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB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,CAAC,EAAE,EAAE,OAAO,CAAA;IACpB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CACzB;AAED,sFAAsF;AACtF,wBAAgB,aAAa,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAMrF;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,GAAG,aAAa,CAUhG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A plugin archive over https: downloaded to a file under staging, its sha256
|
|
3
|
+
* checked when the catalog gave one. The zip itself is opened later by the
|
|
4
|
+
* shared zip reader with the plugin limits, so a bomb or a path that climbs out
|
|
5
|
+
* is refused there before anything is written.
|
|
6
|
+
*/
|
|
7
|
+
import { type FetchOptions } from './git.js';
|
|
8
|
+
export interface ArchiveDownload {
|
|
9
|
+
readonly file: string;
|
|
10
|
+
/** The digest of what arrived, whether or not the catalog gave one. */
|
|
11
|
+
readonly sha256: string;
|
|
12
|
+
readonly bytes: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function downloadArchive(url: string, dest: string, expectedSha256: string | undefined, options?: FetchOptions): Promise<ArchiveDownload>;
|
|
15
|
+
//# sourceMappingURL=archive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["../../../../src/integrations/plugins/fetch/archive.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA;AAQxD,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACtB;AAED,wBAAsB,eAAe,CACpC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,OAAO,GAAE,YAAiB,GACxB,OAAO,CAAC,eAAe,CAAC,CAqB1B"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git, run the way a download from a stranger has to be.
|
|
3
|
+
*
|
|
4
|
+
* The system `git` is started with `execFile`-style arguments (never a shell),
|
|
5
|
+
* in an environment with every `GIT_*` variable removed and these set: no
|
|
6
|
+
* terminal prompt, no askpass program, ssh in batch mode with host keys
|
|
7
|
+
* checked, protocols limited to https and ssh (file only when a test says so),
|
|
8
|
+
* and LFS content never downloaded. The command line adds: no hooks, no
|
|
9
|
+
* fsmonitor, links checked out as plain files, `ext::` refused, and every
|
|
10
|
+
* object checked on receipt. Credentials are whatever the person's own Git
|
|
11
|
+
* is set up with; a prompt cannot appear.
|
|
12
|
+
*
|
|
13
|
+
* A run is stopped after a timeout (120 s, or NAMZU_PLUGIN_GIT_TIMEOUT_MS up
|
|
14
|
+
* to 600 s) by killing its whole process group, or its process tree on
|
|
15
|
+
* Windows, and its result is given only once Git has really ended (or five
|
|
16
|
+
* seconds after the kill). The folder it writes into is measured while it
|
|
17
|
+
* runs and the run is stopped past 512 MiB or 100,000 files. Output is kept
|
|
18
|
+
* to 1 MiB. Git runs in a group of its own, which a Ctrl+C at the terminal
|
|
19
|
+
* does not reach, so the process stops every live Git and removes the folder it
|
|
20
|
+
* was filling when it is told to stop by SIGINT, SIGTERM or SIGHUP, and when it
|
|
21
|
+
* exits.
|
|
22
|
+
*/
|
|
23
|
+
import { type SpawnOptions } from 'node:child_process';
|
|
24
|
+
/** A fetch that did not work, with the exit status it maps to and a sentence for a person. */
|
|
25
|
+
export declare class FetchError extends Error {
|
|
26
|
+
readonly code: number;
|
|
27
|
+
readonly kind: string;
|
|
28
|
+
readonly name = "FetchError";
|
|
29
|
+
constructor(code: number, message: string, kind: string);
|
|
30
|
+
}
|
|
31
|
+
/** What a fetch throws when its signal aborted: a stop the person asked for is not a failure to explain. */
|
|
32
|
+
export declare function cancelledFetch(): FetchError;
|
|
33
|
+
export declare const DEFAULT_GIT_TIMEOUT_MS = 120000;
|
|
34
|
+
export declare const MAX_GIT_TIMEOUT_MS = 600000;
|
|
35
|
+
export declare const GIT_OUTPUT_CAP: number;
|
|
36
|
+
/** Most a repository may write into its folder while it is being fetched, `.git` included. */
|
|
37
|
+
export declare const GIT_WRITE_MAX_BYTES: number;
|
|
38
|
+
export declare const GIT_WRITE_MAX_FILES = 100000;
|
|
39
|
+
/** How often the folder is measured, and how long after a kill the result is given without waiting for Git. */
|
|
40
|
+
export declare const GIT_WATCH_MS = 1000;
|
|
41
|
+
export declare const GIT_KILL_GRACE_MS = 5000;
|
|
42
|
+
/** The timeout from the environment, clamped; anything unreadable is the default. */
|
|
43
|
+
export declare function gitTimeoutMs(env?: NodeJS.ProcessEnv): number;
|
|
44
|
+
export interface GitRun {
|
|
45
|
+
readonly code: number | null;
|
|
46
|
+
readonly stdout: string;
|
|
47
|
+
readonly stderr: string;
|
|
48
|
+
readonly timedOut: boolean;
|
|
49
|
+
/** The `git` program was not found. */
|
|
50
|
+
readonly missing: boolean;
|
|
51
|
+
/** The run was stopped because its folder grew past the limits. */
|
|
52
|
+
readonly oversize?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface GitRunOptions {
|
|
55
|
+
readonly cwd?: string;
|
|
56
|
+
readonly env: NodeJS.ProcessEnv;
|
|
57
|
+
readonly timeoutMs: number;
|
|
58
|
+
/** A folder the run writes into: measured while it runs, the run is stopped past the limits. */
|
|
59
|
+
readonly watch?: {
|
|
60
|
+
readonly dir: string;
|
|
61
|
+
readonly maxBytes: number;
|
|
62
|
+
readonly maxFiles: number;
|
|
63
|
+
};
|
|
64
|
+
/** Stops the run (the process tree is killed) when it aborts. */
|
|
65
|
+
readonly signal?: AbortSignal;
|
|
66
|
+
}
|
|
67
|
+
export type GitRunner = (args: readonly string[], options: GitRunOptions) => Promise<GitRun>;
|
|
68
|
+
export interface FetchOptions {
|
|
69
|
+
/** Test only: let `file://` and plain-path repositories be cloned. Never set by a command. */
|
|
70
|
+
readonly allowFileProtocol?: boolean;
|
|
71
|
+
/** Test only: where a remote address really points. */
|
|
72
|
+
readonly rewriteUrl?: (url: string) => string;
|
|
73
|
+
/** Test only: plain `http://127.0.0.1` for the fake server of a catalog or archive. */
|
|
74
|
+
readonly allowLoopbackHttp?: boolean;
|
|
75
|
+
/** Test only: replaces `fetch`. */
|
|
76
|
+
readonly fetchImpl?: typeof fetch;
|
|
77
|
+
readonly timeoutMs?: number;
|
|
78
|
+
/** The person asked to stop: Git is killed, a download is dropped, nothing is kept. */
|
|
79
|
+
readonly signal?: AbortSignal;
|
|
80
|
+
readonly runner?: GitRunner;
|
|
81
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
82
|
+
}
|
|
83
|
+
export interface RunnerDeps {
|
|
84
|
+
readonly spawn?: (command: string, args: readonly string[], options: SpawnOptions) => ChildLike;
|
|
85
|
+
readonly killTree?: (pid: number) => void | Promise<void>;
|
|
86
|
+
readonly sizeOf?: (dir: string, maxFiles: number) => {
|
|
87
|
+
bytes: number;
|
|
88
|
+
files: number;
|
|
89
|
+
};
|
|
90
|
+
readonly setTimeout?: (fn: () => void, ms: number) => unknown;
|
|
91
|
+
readonly clearTimeout?: (handle: unknown) => void;
|
|
92
|
+
readonly platform?: NodeJS.Platform;
|
|
93
|
+
}
|
|
94
|
+
export interface ChildLike {
|
|
95
|
+
readonly pid?: number;
|
|
96
|
+
readonly stdout: {
|
|
97
|
+
on(event: 'data', fn: (chunk: Buffer | string) => void): unknown;
|
|
98
|
+
} | null;
|
|
99
|
+
readonly stderr: {
|
|
100
|
+
on(event: 'data', fn: (chunk: Buffer | string) => void): unknown;
|
|
101
|
+
} | null;
|
|
102
|
+
on(event: 'error', fn: (error: NodeJS.ErrnoException) => void): unknown;
|
|
103
|
+
on(event: 'close', fn: (code: number | null) => void): unknown;
|
|
104
|
+
kill(signal?: NodeJS.Signals): unknown;
|
|
105
|
+
}
|
|
106
|
+
/** The bytes and files under a folder, stopping once `maxFiles` is passed. */
|
|
107
|
+
export declare function measureFolder(dir: string, maxFiles: number): {
|
|
108
|
+
bytes: number;
|
|
109
|
+
files: number;
|
|
110
|
+
};
|
|
111
|
+
/** Stop every Git this process started and remove the folders they were filling. */
|
|
112
|
+
export declare function stopLiveGits(): void;
|
|
113
|
+
/** The runner that starts the system `git`. Its parts can be replaced so a test never needs a real process or a real clock. */
|
|
114
|
+
export declare function createGitRunner(deps?: RunnerDeps): GitRunner;
|
|
115
|
+
/** The environment git runs in: the person's own, with every `GIT_*` variable removed and ours set. */
|
|
116
|
+
export declare function gitEnvironment(base: NodeJS.ProcessEnv, allowFile: boolean): NodeJS.ProcessEnv;
|
|
117
|
+
/** The `-c` settings every run carries. */
|
|
118
|
+
export declare function gitSettings(allowFile: boolean, platform?: NodeJS.Platform): string[];
|
|
119
|
+
/** The sentence and exit status for a git run that failed. */
|
|
120
|
+
export declare function explainGitFailure(run: GitRun, url: string, timeoutMs: number): FetchError;
|
|
121
|
+
export interface CloneRequest {
|
|
122
|
+
readonly url: string;
|
|
123
|
+
readonly ref?: string;
|
|
124
|
+
/** The commit the result must be at. Fetched by id, so a moved branch cannot satisfy it. */
|
|
125
|
+
readonly sha?: string;
|
|
126
|
+
readonly sparsePaths?: readonly string[];
|
|
127
|
+
/** A folder that does not exist yet, or is empty. */
|
|
128
|
+
readonly dest: string;
|
|
129
|
+
}
|
|
130
|
+
export interface CloneResult {
|
|
131
|
+
readonly commit: string;
|
|
132
|
+
/** Files that are Git LFS pointers: their content was not downloaded. */
|
|
133
|
+
readonly lfsPointers: number;
|
|
134
|
+
/** Submodules the repository lists: none was downloaded. */
|
|
135
|
+
readonly submodules: number;
|
|
136
|
+
}
|
|
137
|
+
/** Count files that are Git LFS pointers (small, starting with the pointer header). */
|
|
138
|
+
export declare function countLfsPointers(root: string): number;
|
|
139
|
+
/**
|
|
140
|
+
* Clone a repository into `request.dest`, shallow when it can be, never
|
|
141
|
+
* running anything from it and never fetching its submodules or LFS content.
|
|
142
|
+
* A pinned `sha` is fetched by id and checked. Refusals are {@link FetchError}.
|
|
143
|
+
*/
|
|
144
|
+
export declare function cloneRepository(request: CloneRequest, options?: FetchOptions): Promise<CloneResult>;
|
|
145
|
+
//# sourceMappingURL=git.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../../../src/integrations/plugins/fetch/git.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,oBAAoB,CAAA;AAuBvE,8FAA8F;AAC9F,qBAAa,UAAW,SAAQ,KAAK;IAGnC,QAAQ,CAAC,IAAI,EAAE,MAAM;IAErB,QAAQ,CAAC,IAAI,EAAE,MAAM;IAJtB,SAAkB,IAAI,gBAAe;gBAE3B,IAAI,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACN,IAAI,EAAE,MAAM;CAItB;AAED,4GAA4G;AAC5G,wBAAgB,cAAc,IAAI,UAAU,CAE3C;AAED,eAAO,MAAM,sBAAsB,SAAU,CAAA;AAC7C,eAAO,MAAM,kBAAkB,SAAU,CAAA;AACzC,eAAO,MAAM,cAAc,QAAc,CAAA;AACzC,8FAA8F;AAC9F,eAAO,MAAM,mBAAmB,QAAoB,CAAA;AACpD,eAAO,MAAM,mBAAmB,SAAU,CAAA;AAC1C,+GAA+G;AAC/G,eAAO,MAAM,YAAY,OAAO,CAAA;AAChC,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAErC,qFAAqF;AACrF,wBAAgB,YAAY,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAMzE;AAED,MAAM,WAAW,MAAM;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,G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CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACxC,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,yEAAyE;IACzE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC3B;AAiCD,uFAAuF;AACvF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiCrD;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACpC,OAAO,EAAE,YAAY,EACrB,OAAO,GAAE,YAAiB,GACxB,OAAO,CAAC,WAAW,CAAC,CAwFtB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one module marketplaces and plugins are fetched through. Everything it
|
|
3
|
+
* writes goes under the staging folder the caller gives it; nothing it fetches
|
|
4
|
+
* is run.
|
|
5
|
+
*/
|
|
6
|
+
import { type ArchiveDownload } from './archive.js';
|
|
7
|
+
import { type FetchOptions } from './git.js';
|
|
8
|
+
import { type MarketplaceSource, type RemoteEntrySource } from './source.js';
|
|
9
|
+
export interface FetchedMarketplace {
|
|
10
|
+
/** A folder with the catalog where the common plugin layout keeps it. */
|
|
11
|
+
readonly dir: string;
|
|
12
|
+
readonly commit?: string;
|
|
13
|
+
readonly lfsPointers: number;
|
|
14
|
+
readonly submodules: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Fetch a remote marketplace into `<staging>/m`. A repository is cloned
|
|
18
|
+
* shallowly (sparsely when asked, always with the catalog's own folder); a
|
|
19
|
+
* hosted `marketplace.json` is saved where a catalog is expected.
|
|
20
|
+
*/
|
|
21
|
+
export declare function fetchMarketplace(source: MarketplaceSource, staging: string, options?: FetchOptions): Promise<FetchedMarketplace>;
|
|
22
|
+
export interface FetchedPlugin {
|
|
23
|
+
/** The folder holding the plugin, when it came from a repository. */
|
|
24
|
+
readonly dir?: string;
|
|
25
|
+
/** The archive on disk, when it came from one. */
|
|
26
|
+
readonly archive?: ArchiveDownload;
|
|
27
|
+
readonly commit?: string;
|
|
28
|
+
readonly lfsPointers: number;
|
|
29
|
+
readonly submodules: number;
|
|
30
|
+
}
|
|
31
|
+
/** Fetch a plugin named by a catalog entry into `<staging>/fetched` (or `<staging>/plugin.zip`). */
|
|
32
|
+
export declare function fetchPlugin(source: RemoteEntrySource, staging: string, options?: FetchOptions): Promise<FetchedPlugin>;
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/plugins/fetch/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,cAAc,CAAA;AACpE,OAAO,EAAc,KAAK,YAAY,EAAmB,MAAM,UAAU,CAAA;AACzE,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAY,MAAM,aAAa,CAAA;AAGtF,MAAM,WAAW,kBAAkB;IAClC,yEAAyE;IACzE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CACrC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,YAAiB,GACxB,OAAO,CAAC,kBAAkB,CAAC,CA2B7B;AAED,MAAM,WAAW,aAAa;IAC7B,qEAAqE;IACrE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,kDAAkD;IAClD,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC3B;AAED,oGAAoG;AACpG,wBAAsB,WAAW,CAChC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,YAAiB,GACxB,OAAO,CAAC,aAAa,CAAC,CAwCxB"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a person types after `marketplace add`, and what a catalog entry says
|
|
3
|
+
* its plugin's source is, read into plain values. Nothing here touches the
|
|
4
|
+
* disk or the network: the parser runs first, the fetchers act on its result.
|
|
5
|
+
*
|
|
6
|
+
* Marketplace addresses are read in a fixed order: the scp-like ssh form
|
|
7
|
+
* (`user@host:path[.git][#ref]`), then `https://`, then a local path (handled
|
|
8
|
+
* by the caller, it needs the disk), then `owner/repo[#ref|@ref]` for GitHub.
|
|
9
|
+
* Every ref, path and host that ends up in a command line is checked here so a
|
|
10
|
+
* value can never be taken for an option.
|
|
11
|
+
*/
|
|
12
|
+
export type MarketplaceSource = {
|
|
13
|
+
readonly source: 'github';
|
|
14
|
+
readonly repo: string;
|
|
15
|
+
readonly ref?: string;
|
|
16
|
+
readonly sparsePaths?: readonly string[];
|
|
17
|
+
} | {
|
|
18
|
+
readonly source: 'git';
|
|
19
|
+
readonly url: string;
|
|
20
|
+
readonly ref?: string;
|
|
21
|
+
readonly sparsePaths?: readonly string[];
|
|
22
|
+
} | {
|
|
23
|
+
readonly source: 'url';
|
|
24
|
+
readonly url: string;
|
|
25
|
+
};
|
|
26
|
+
export type RemoteAddress = {
|
|
27
|
+
readonly ok: true;
|
|
28
|
+
readonly form: 'github' | 'git' | 'https';
|
|
29
|
+
readonly source: MarketplaceSource;
|
|
30
|
+
} | {
|
|
31
|
+
readonly ok: false;
|
|
32
|
+
readonly message: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const NOT_AN_ADDRESS = "Not a marketplace address. Use owner/repo, an https:// address, or a folder path.";
|
|
35
|
+
/** A full commit id: a ref that pins and is fetched by id. */
|
|
36
|
+
export declare function isCommitId(value: string): boolean;
|
|
37
|
+
/** Why a ref may not be used, or `undefined` when it is fine. A ref never starts with a dash. */
|
|
38
|
+
export declare function refProblem(ref: string): string | undefined;
|
|
39
|
+
/** Why a path inside a repository may not be used, or `undefined`. */
|
|
40
|
+
export declare function repoPathProblem(path: string): string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The remote forms, after the local-path form has been ruled out by the
|
|
43
|
+
* caller. `https://` addresses with sign-in details, a query or a page inside
|
|
44
|
+
* a repository are refused here too.
|
|
45
|
+
*/
|
|
46
|
+
export declare function parseRemoteAddress(input: string): RemoteAddress;
|
|
47
|
+
/** The address Git is given for a marketplace source. */
|
|
48
|
+
export declare function gitUrlOf(source: Extract<MarketplaceSource, {
|
|
49
|
+
source: 'github' | 'git';
|
|
50
|
+
}>): string;
|
|
51
|
+
/** How a source is named to a person. */
|
|
52
|
+
export declare function describeSource(source: {
|
|
53
|
+
readonly source: string;
|
|
54
|
+
readonly [key: string]: unknown;
|
|
55
|
+
}): string;
|
|
56
|
+
/**
|
|
57
|
+
* An address as `host/path`: lowercase, no scheme, sign-in details or port, no
|
|
58
|
+
* trailing dot on the host, no `www.` on a well-known host, repeated slashes
|
|
59
|
+
* collapsed, no `.git` and no trailing slash. `ssh://git@host/x`, `host:443/x`
|
|
60
|
+
* and the scp form all read the same as `https://host/x`, so a block-list
|
|
61
|
+
* entry cannot be got around by spelling.
|
|
62
|
+
*/
|
|
63
|
+
export declare function normalizeAddress(text: string): string;
|
|
64
|
+
/** `host/path` of a source, as {@link normalizeAddress} reads it: what a block-list entry is compared with. */
|
|
65
|
+
export declare function sourceKey(source: {
|
|
66
|
+
readonly source: string;
|
|
67
|
+
readonly [key: string]: unknown;
|
|
68
|
+
}): string | undefined;
|
|
69
|
+
/** Whether `blocked` (entries like `acme/tools`, `github.com/acme/*`, `example.com`) names this source. */
|
|
70
|
+
export declare function isBlockedSource(source: {
|
|
71
|
+
readonly source: string;
|
|
72
|
+
readonly [key: string]: unknown;
|
|
73
|
+
}, blocked: readonly string[] | undefined): boolean;
|
|
74
|
+
export type RemoteEntrySource = {
|
|
75
|
+
readonly kind: 'github';
|
|
76
|
+
readonly repo: string;
|
|
77
|
+
readonly ref?: string;
|
|
78
|
+
readonly sha?: string;
|
|
79
|
+
} | {
|
|
80
|
+
readonly kind: 'git';
|
|
81
|
+
readonly url: string;
|
|
82
|
+
readonly ref?: string;
|
|
83
|
+
readonly sha?: string;
|
|
84
|
+
} | {
|
|
85
|
+
readonly kind: 'git-subdir';
|
|
86
|
+
readonly url: string;
|
|
87
|
+
readonly path: string;
|
|
88
|
+
readonly ref?: string;
|
|
89
|
+
readonly sha?: string;
|
|
90
|
+
} | {
|
|
91
|
+
readonly kind: 'archive';
|
|
92
|
+
readonly url: string;
|
|
93
|
+
readonly sha256?: string;
|
|
94
|
+
};
|
|
95
|
+
export type EntrySourceRead = {
|
|
96
|
+
readonly ok: true;
|
|
97
|
+
readonly source: RemoteEntrySource;
|
|
98
|
+
} | {
|
|
99
|
+
readonly ok: false;
|
|
100
|
+
readonly unsupported: boolean;
|
|
101
|
+
readonly reason: string;
|
|
102
|
+
};
|
|
103
|
+
/** Why a git address (not a person's typing: a catalog's) may not be used, or `undefined`. */
|
|
104
|
+
export declare function gitUrlProblem(url: string, allowFile: boolean): string | undefined;
|
|
105
|
+
/** Read a catalog entry's `source` mapping into a source Namzu can fetch, or the reason it cannot. */
|
|
106
|
+
export declare function parseEntrySource(name: string, source: Readonly<Record<string, unknown>>, entry: Readonly<Record<string, unknown>>, allowFile?: boolean): EntrySourceRead;
|
|
107
|
+
//# sourceMappingURL=source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1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not
|
|
3
|
+
* leave https: the one place a catalog file or a plugin archive is fetched.
|
|
4
|
+
*
|
|
5
|
+
* Nothing is sent but a plain request: no cookies, no sign-in. At most five
|
|
6
|
+
* redirects are followed, and none to an address that is not https. The body
|
|
7
|
+
* is read as it arrives and the download is dropped the moment it passes the
|
|
8
|
+
* cap. The only way plain http is ever used is a test's own option, and only
|
|
9
|
+
* for 127.0.0.1.
|
|
10
|
+
*/
|
|
11
|
+
import { type FetchOptions } from './git.js';
|
|
12
|
+
export declare const CATALOG_DOWNLOAD_MAX_BYTES: number;
|
|
13
|
+
export declare const CATALOG_DOWNLOAD_TIMEOUT_MS = 30000;
|
|
14
|
+
export declare const ARCHIVE_DOWNLOAD_MAX_BYTES: number;
|
|
15
|
+
export declare const ARCHIVE_DOWNLOAD_TIMEOUT_MS = 120000;
|
|
16
|
+
export declare const MAX_REDIRECTS = 5;
|
|
17
|
+
export interface DownloadRequest {
|
|
18
|
+
readonly url: string;
|
|
19
|
+
readonly maxBytes: number;
|
|
20
|
+
readonly timeoutMs: number;
|
|
21
|
+
/** Whether a content type is acceptable. */
|
|
22
|
+
readonly acceptType: (contentType: string) => boolean;
|
|
23
|
+
/** What the download is, for messages: "catalog", "archive". */
|
|
24
|
+
readonly subject: string;
|
|
25
|
+
}
|
|
26
|
+
/** The accepted types of a catalog: JSON, or plain text (some hosts serve raw files that way). */
|
|
27
|
+
export declare function isCatalogType(contentType: string): boolean;
|
|
28
|
+
/** Anything but a web page. A zip is checked by its own reader. */
|
|
29
|
+
export declare function isArchiveType(contentType: string): boolean;
|
|
30
|
+
/** Download `request.url` into memory, or throw a {@link FetchError} saying why not. */
|
|
31
|
+
export declare function download(request: DownloadRequest, options?: FetchOptions): Promise<Buffer>;
|
|
32
|
+
/** A catalog file over https as text. */
|
|
33
|
+
export declare function fetchCatalogText(url: string, options?: FetchOptions): Promise<string>;
|
|
34
|
+
//# sourceMappingURL=url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../src/integrations/plugins/fetch/url.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAc,KAAK,YAAY,EAAkB,MAAM,UAAU,CAAA;AAExE,eAAO,MAAM,0BAA0B,QAAmB,CAAA;AAC1D,eAAO,MAAM,2BAA2B,QAAS,CAAA;AACjD,eAAO,MAAM,0BAA0B,QAAoB,CAAA;AAC3D,eAAO,MAAM,2BAA2B,SAAU,CAAA;AAClD,eAAO,MAAM,aAAa,IAAI,CAAA;AAE9B,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,4CAA4C;IAC5C,QAAQ,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAA;IACrD,gEAAgE;IAChE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACxB;AASD,kGAAkG;AAClG,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAQ1D;AAED,mEAAmE;AACnE,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAG1D;AAED,wFAAwF;AACxF,wBAAsB,QAAQ,CAC7B,OAAO,EAAE,eAAe,EACxB,OAAO,GAAE,YAAiB,GACxB,OAAO,CAAC,MAAM,CAAC,CAoJjB;AAED,yCAAyC;AACzC,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAY/F"}
|
|
@@ -6,6 +6,15 @@ export interface PluginFileDir {
|
|
|
6
6
|
readonly plugin: string;
|
|
7
7
|
/** Canonical absolute folder, inside the plugin's own folder. */
|
|
8
8
|
readonly dir: string;
|
|
9
|
+
/**
|
|
10
|
+
* Set when the plugin named one file rather than a folder: the file's name
|
|
11
|
+
* without `.md`. Only that file of `dir` is the plugin's.
|
|
12
|
+
*/
|
|
13
|
+
readonly only?: string;
|
|
14
|
+
/** The plugin's own folder, for `${NAMZU_PLUGIN_ROOT}` in the file's text. */
|
|
15
|
+
readonly root?: string;
|
|
16
|
+
/** The plugin was read through the common plugin layout. */
|
|
17
|
+
readonly commonLayout?: boolean;
|
|
9
18
|
}
|
|
10
19
|
/** What the plugins on disk contribute as plain markdown files. */
|
|
11
20
|
export interface PluginFileSources {
|
|
@@ -19,6 +28,7 @@ export declare const EMPTY_PLUGIN_FILE_SOURCES: PluginFileSources;
|
|
|
19
28
|
export type PluginFileDirResolution = {
|
|
20
29
|
readonly kind: 'inside';
|
|
21
30
|
readonly dir: string;
|
|
31
|
+
readonly only?: string;
|
|
22
32
|
} | {
|
|
23
33
|
readonly kind: 'outside';
|
|
24
34
|
} | {
|
|
@@ -36,12 +46,12 @@ export declare function resolvePluginFileDir(rootDir: string, rel: string): Plug
|
|
|
36
46
|
* A link that leads out of the plugin folder is refused, not followed, the
|
|
37
47
|
* same rule the plugin's tool and skill paths already obey.
|
|
38
48
|
*/
|
|
39
|
-
export declare function resolvePluginFileDirs(plugin: string, rootDir: string, declared: readonly string[] | undefined): {
|
|
49
|
+
export declare function resolvePluginFileDirs(plugin: string, rootDir: string, declared: readonly string[] | undefined, layout?: 'common'): {
|
|
40
50
|
readonly dirs: readonly PluginFileDir[];
|
|
41
51
|
readonly problems: readonly string[];
|
|
42
52
|
};
|
|
43
|
-
/** The `.md` file names (without the extension) a folder holds, sorted. */
|
|
44
|
-
export declare function listMarkdownNames(dir: string): string[];
|
|
53
|
+
/** The `.md` file names (without the extension) a folder holds, sorted; just `only` when one file was named. */
|
|
54
|
+
export declare function listMarkdownNames(dir: string, only?: string): string[];
|
|
45
55
|
/**
|
|
46
56
|
* The command and agent folders of every plugin that starts enabled.
|
|
47
57
|
*
|
|
@@ -56,5 +66,7 @@ export declare function readPluginFileSources(options: {
|
|
|
56
66
|
readonly config?: PluginConfig | undefined;
|
|
57
67
|
readonly cwd: string;
|
|
58
68
|
readonly userRoot?: string;
|
|
69
|
+
/** Whether `cwd` is trusted; absent, the trust list says. */
|
|
70
|
+
readonly projectTrusted?: boolean;
|
|
59
71
|
}): Promise<PluginFileSources>;
|
|
60
72
|
//# sourceMappingURL=files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/files.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/files.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,wBAAwB,CAAA;AAGvE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAKvD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAA;AAEhC,yDAAyD;AACzD,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,iEAAiE;IACjE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,4DAA4D;IAC5D,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,mEAAmE;AACnE,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAA;IAC3C,QAAQ,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,CAAA;IACzC,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAED,eAAO,MAAM,yBAAyB,EAAE,iBAItC,CAAA;AAEF,yFAAyF;AACzF,MAAM,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|
|
50
50
|
readonly rootDir: string;
|
|
51
|
+
/** `<plugin>@<marketplace>` of a plugin that has an install record: its data is `plugins/data/<id>/`. */
|
|
52
|
+
readonly installedId?: string;
|
|
51
53
|
}): string;
|
|
52
54
|
/** Whether the data folder would sit inside the plugin's folder (or the other way round). */
|
|
53
55
|
export declare function dataDirOverlapsPlugin(dataDir: string, rootDir: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook-entries.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/hook-entries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,EACN,KAAK,cAAc,EAInB,MAAM,YAAY,CAAA;AAInB,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"hook-entries.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/hook-entries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,EACN,KAAK,cAAc,EAInB,MAAM,YAAY,CAAA;AAInB,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGjF,mEAAmE;AACnE,eAAO,MAAM,uBAAuB,qBAAqB,CAAA;AAKzD,MAAM,WAAW,iBAAiB;IACjC,2FAA2F;IAC3F,QAAQ,CAAC,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAA;IACrC,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EACV,sBAAsB,GACtB,sBAAsB,GACtB,yBAAyB,GACzB,mBAAmB,GACnB,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,CAAA;IACtB,qGAAqG;IACrG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,iBAAiB;IACjC,2FAA2F;IAC3F,Q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