@namzu/cli 63.3.0 → 64.0.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 +49 -0
- package/dist/bin.js +1 -1
- package/dist/checkpoints/store.d.ts +9 -2
- package/dist/checkpoints/store.d.ts.map +1 -1
- package/dist/chunks/{acp-J3TMCBRY.js → acp-PUQJQNGR.js} +663 -322
- package/dist/chunks/acp-PUQJQNGR.js.map +6 -0
- package/dist/chunks/{activity-command-X25POZ3R.js → activity-command-GI2JKYO7.js} +17 -16
- package/dist/chunks/activity-command-GI2JKYO7.js.map +6 -0
- package/dist/chunks/add-5G3FDM4B.js +85 -0
- package/dist/chunks/{agent-MHH4MGYB.js → agent-WQCDAMAD.js} +71 -70
- package/dist/chunks/agent-session-XPSQP4JL.js +106 -0
- package/dist/chunks/{apply-at-exit-ADWMDFFQ.js → apply-at-exit-SDKJ47Q3.js} +7 -7
- package/dist/chunks/{archive-6X2FED3E.js → archive-34UIFTQR.js} +13 -13
- package/dist/chunks/{auth-KRORFNAA.js → auth-5OZGKKM3.js} +18 -18
- package/dist/chunks/{bin-main-74KBBJNG.js → bin-main-DSQALFKQ.js} +15 -12
- package/dist/chunks/bin-main-DSQALFKQ.js.map +6 -0
- package/dist/chunks/{binding-OXJ5TL6T.js → binding-4KK4DQBO.js} +3 -3
- package/dist/chunks/{browser-DFLZNRRZ.js → browser-5KTBUCPV.js} +7 -7
- package/dist/chunks/{chat-PPSFN5JK.js → chat-FTWGV4V2.js} +18 -18
- package/dist/chunks/{chunk-EODC62SI.js → chunk-24ZBPVW7.js} +10 -8
- package/dist/chunks/{chunk-EODC62SI.js.map → chunk-24ZBPVW7.js.map} +1 -1
- package/dist/chunks/{chunk-ZQL7XFSE.js → chunk-2C4SVJIQ.js} +8 -8
- package/dist/chunks/chunk-2CKBLDRK.js +161 -0
- package/dist/chunks/chunk-2CKBLDRK.js.map +6 -0
- package/dist/chunks/{chunk-JD7EWFIJ.js → chunk-2DTDEDWG.js} +6 -6
- package/dist/chunks/{chunk-MHEYQD24.js → chunk-2P76EGL4.js} +2 -2
- package/dist/chunks/{chunk-GCOTJ6XY.js → chunk-36QT24YV.js} +5 -5
- package/dist/chunks/{chunk-J6JBHNNR.js → chunk-3ACZA3UY.js} +2 -2
- package/dist/chunks/{chunk-4TPXEWD5.js → chunk-3DABC66V.js} +3 -3
- package/dist/chunks/{chunk-ZAQFM5BR.js → chunk-3SX2TTHV.js} +6 -6
- package/dist/chunks/{chunk-TXCQMW7F.js → chunk-4X22JAQ6.js} +5 -5
- package/dist/chunks/{chunk-UP3ATLU6.js → chunk-53RU3PZ3.js} +3 -3
- package/dist/chunks/{chunk-2H75JWKG.js → chunk-56ISPS7R.js} +6 -6
- package/dist/chunks/{chunk-2H75JWKG.js.map → chunk-56ISPS7R.js.map} +1 -1
- package/dist/chunks/{chunk-CPZEJQ2Z.js → chunk-5EFS6QER.js} +4 -4
- package/dist/chunks/{chunk-VWJOJJNQ.js → chunk-5HA7O6LY.js} +9 -9
- package/dist/chunks/{chunk-XORYHNZ3.js → chunk-5IYDNES6.js} +13 -13
- package/dist/chunks/{chunk-5GJWIDVU.js → chunk-5JJVOBXN.js} +3 -3
- package/dist/chunks/chunk-5TNP7EY5.js +155 -0
- package/dist/chunks/chunk-5TNP7EY5.js.map +6 -0
- package/dist/chunks/{chunk-BCHHHNLK.js → chunk-5X5OZSNJ.js} +73 -2
- package/dist/chunks/{chunk-BCHHHNLK.js.map → chunk-5X5OZSNJ.js.map} +2 -2
- package/dist/chunks/{chunk-5XROCBT5.js → chunk-66CA3YG7.js} +12 -12
- package/dist/chunks/{chunk-4OWFI7ZE.js → chunk-67E7SJ4C.js} +3 -3
- package/dist/chunks/{chunk-EPSLHLT3.js → chunk-6B5PSP2N.js} +9 -9
- package/dist/chunks/{chunk-5PQHBLZI.js → chunk-6IGQR4DS.js} +3 -3
- package/dist/chunks/{chunk-TTBXKYFP.js → chunk-6K3MLMSR.js} +8 -8
- package/dist/chunks/{chunk-2QGSHJ4Y.js → chunk-6PFVGGUE.js} +3 -3
- package/dist/chunks/{chunk-WMWRRDO2.js → chunk-6TVDBUYT.js} +282 -40
- package/dist/chunks/chunk-6TVDBUYT.js.map +6 -0
- package/dist/chunks/{chunk-XBX3T6YY.js → chunk-6ZMCL27L.js} +10 -10
- package/dist/chunks/{chunk-TIM7OEJN.js → chunk-73QHZKP3.js} +4 -4
- package/dist/chunks/{chunk-FZSM7DSH.js → chunk-7AJBH2NF.js} +10 -10
- package/dist/chunks/{chunk-PSRWFKFX.js → chunk-7OUQQLBD.js} +2 -2
- package/dist/chunks/{chunk-2USTJGLA.js → chunk-7VHCIDRC.js} +25 -10
- package/dist/chunks/chunk-7VHCIDRC.js.map +6 -0
- package/dist/chunks/{chunk-RBRBYXJX.js → chunk-7XPM5PUJ.js} +102 -203
- package/dist/chunks/chunk-7XPM5PUJ.js.map +6 -0
- package/dist/chunks/{chunk-4U6TAYDK.js → chunk-7YUCOFK3.js} +722 -101
- package/dist/chunks/chunk-7YUCOFK3.js.map +6 -0
- package/dist/chunks/{chunk-DKTU6RWO.js → chunk-AJBTQ7IQ.js} +4 -4
- package/dist/chunks/{chunk-3FFV4OSR.js → chunk-BDAL2QDI.js} +4 -4
- package/dist/chunks/{chunk-Z75IWPPX.js → chunk-BRT4B22L.js} +13 -12
- package/dist/chunks/{chunk-Z75IWPPX.js.map → chunk-BRT4B22L.js.map} +1 -1
- package/dist/chunks/{chunk-SPKNKEW5.js → chunk-BTUYC7QM.js} +4 -4
- package/dist/chunks/{chunk-SPKNKEW5.js.map → chunk-BTUYC7QM.js.map} +1 -1
- package/dist/chunks/{config-E6UPAUGU.js → chunk-BU2BJNHN.js} +36 -43
- package/dist/chunks/chunk-BU2BJNHN.js.map +6 -0
- package/dist/chunks/{chunk-N4USZWBA.js → chunk-CG3ZDOHF.js} +4 -4
- package/dist/chunks/{chunk-SQDZZCQJ.js → chunk-CGXFMYAJ.js} +2 -2
- package/dist/chunks/{chunk-G4OR74MC.js → chunk-CJIQN7H5.js} +12 -12
- package/dist/chunks/{chunk-ZDJWREOA.js → chunk-CJJJFXZR.js} +5 -5
- package/dist/chunks/{chunk-ISI36EUS.js → chunk-CM5AEFK6.js} +3 -3
- package/dist/chunks/{chunk-K4AUROOC.js → chunk-CMBMG3KP.js} +2 -2
- package/dist/chunks/{chunk-V2DQFFLG.js → chunk-COJMODMD.js} +7 -5
- package/dist/chunks/chunk-COJMODMD.js.map +6 -0
- package/dist/chunks/{chunk-SCGWXYZW.js → chunk-CPFRUTGZ.js} +43 -43
- package/dist/chunks/{chunk-TLSFOP3I.js → chunk-CRQTJSOM.js} +135 -69
- package/dist/chunks/{chunk-TLSFOP3I.js.map → chunk-CRQTJSOM.js.map} +3 -3
- package/dist/chunks/{chunk-LZPPIRJW.js → chunk-CRR32PX5.js} +4 -4
- package/dist/chunks/{chunk-3QXUETDN.js → chunk-D3YSEDX3.js} +131 -25
- package/dist/chunks/chunk-D3YSEDX3.js.map +6 -0
- package/dist/chunks/{chunk-SDWOSB3L.js → chunk-DLOSOMLQ.js} +2 -2
- package/dist/chunks/{chunk-PMA5NXWF.js → chunk-DNTZDBQD.js} +6 -6
- package/dist/chunks/{chunk-4JPZYI6M.js → chunk-DUW74FJS.js} +2 -2
- package/dist/chunks/{chunk-3TLDTD6R.js → chunk-EKY3JNCT.js} +13 -13
- package/dist/chunks/{chunk-FXJX3AHN.js → chunk-EUBCYTOK.js} +3 -152
- package/dist/chunks/chunk-EUBCYTOK.js.map +6 -0
- package/dist/chunks/{chunk-OIFFABSH.js → chunk-EX5PFCLD.js} +6 -6
- package/dist/chunks/{chunk-UTC325FB.js → chunk-FAEACSBT.js} +3 -3
- package/dist/chunks/{chunk-XK7NQIZA.js → chunk-FIKOGCGU.js} +4 -4
- package/dist/chunks/{chunk-T6FMC7R5.js → chunk-FMRGG736.js} +3 -3
- package/dist/chunks/{chunk-JCY3OPTY.js → chunk-FP3D47HZ.js} +9 -9
- package/dist/chunks/{chunk-XTMUUGTN.js → chunk-FXUEDFTD.js} +2 -2
- package/dist/chunks/{chunk-HXZA5UUN.js → chunk-G4OZ4DH5.js} +2 -2
- package/dist/chunks/{chunk-IUMOIQKL.js → chunk-GAVVXNL2.js} +18 -18
- package/dist/chunks/{chunk-W4EKIBRD.js → chunk-GJBBEMZD.js} +3 -3
- package/dist/chunks/{chunk-75RHEPE7.js → chunk-GR65TG5P.js} +3 -3
- package/dist/chunks/{chunk-RWSHMPFM.js → chunk-H5TPY6EO.js} +2 -2
- package/dist/chunks/{chunk-YYGE5EWH.js → chunk-H6T6PV5Y.js} +3 -3
- package/dist/chunks/{chunk-T34DMFOM.js → chunk-H7B3NUJO.js} +12 -3
- package/dist/chunks/chunk-H7B3NUJO.js.map +6 -0
- package/dist/chunks/{chunk-JU3P3ZJJ.js → chunk-HAQVZC4P.js} +3 -3
- package/dist/chunks/{chunk-ZKTDZOCC.js → chunk-HR34LTE2.js} +2 -2
- package/dist/chunks/{chunk-PP7AG46K.js → chunk-HYXLSJJP.js} +763 -537
- package/dist/chunks/chunk-HYXLSJJP.js.map +6 -0
- package/dist/chunks/{chunk-PGHGBSS2.js → chunk-HZAS2R6H.js} +2 -2
- package/dist/chunks/{chunk-OKFU62GA.js → chunk-IRWSATQY.js} +3 -3
- package/dist/chunks/{chunk-YRQ5PI7O.js → chunk-IVLMTJDA.js} +20 -6
- package/dist/chunks/chunk-IVLMTJDA.js.map +6 -0
- package/dist/chunks/{chunk-333RR5BA.js → chunk-J4K2OLHK.js} +4 -4
- package/dist/chunks/chunk-J7NNGXJL.js +768 -0
- package/dist/chunks/chunk-J7NNGXJL.js.map +6 -0
- package/dist/chunks/{chunk-XGH3FZ76.js → chunk-JDRJK3H2.js} +2 -2
- package/dist/chunks/{chunk-PLPVXHTM.js → chunk-JFVC7QZF.js} +35 -35
- package/dist/chunks/{chunk-KLIJLSWF.js → chunk-JOBGKVRU.js} +2 -2
- package/dist/chunks/{chunk-VMWPRI2S.js → chunk-JOSNFE2X.js} +3 -3
- package/dist/chunks/{chunk-RIVPA5TG.js → chunk-JPKUB7E4.js} +5 -5
- package/dist/chunks/{chunk-W3QW6SK6.js → chunk-K4QCROD3.js} +8 -8
- package/dist/chunks/{chunk-Y36ZTLIJ.js → chunk-KDDRQUIR.js} +3 -3
- package/dist/chunks/{chunk-VH647IFM.js → chunk-KIYAZWAF.js} +2 -2
- package/dist/chunks/{chunk-LJFDFGFU.js → chunk-KJDWKULG.js} +5 -5
- package/dist/chunks/chunk-KMQMSCRY.js +190 -0
- package/dist/chunks/chunk-KMQMSCRY.js.map +6 -0
- package/dist/chunks/{chunk-RZ3HYPV4.js → chunk-KRIZCT77.js} +6 -6
- package/dist/chunks/{chunk-JWBS363M.js → chunk-KSOVJYIX.js} +37 -2
- package/dist/chunks/chunk-KSOVJYIX.js.map +6 -0
- package/dist/chunks/{chunk-QTR6UU63.js → chunk-KX66MWDP.js} +2 -2
- package/dist/chunks/{chunk-YZ6UKIKL.js → chunk-LFMJOKBL.js} +4 -4
- package/dist/chunks/{chunk-WNBIAOXA.js → chunk-LN4BWT7R.js} +2 -2
- package/dist/chunks/{chunk-YVQE7BQ7.js → chunk-LYJXIOI5.js} +13 -13
- package/dist/chunks/{chunk-23AYRMS2.js → chunk-MQNST5MD.js} +22 -8
- package/dist/chunks/chunk-MQNST5MD.js.map +6 -0
- package/dist/chunks/{chunk-XRAVC5W6.js → chunk-MTBG37JI.js} +4 -3
- package/dist/chunks/chunk-MTBG37JI.js.map +6 -0
- package/dist/chunks/{chunk-X4TVUANR.js → chunk-MVRAZCUI.js} +17 -17
- package/dist/chunks/{chunk-AAN4XLUD.js → chunk-N6HV5HKC.js} +4 -4
- package/dist/chunks/{chunk-FAQQGJ2Z.js → chunk-NCLQNYPN.js} +3 -3
- package/dist/chunks/{chunk-2R6Z32IU.js → chunk-NLZMCKKM.js} +3 -3
- package/dist/chunks/{chunk-554DVVVR.js → chunk-NSMPDBSR.js} +1600 -1390
- package/dist/chunks/chunk-NSMPDBSR.js.map +6 -0
- package/dist/chunks/{chunk-RQYSVELQ.js → chunk-NWCEGGNZ.js} +2 -2
- package/dist/chunks/{chunk-IDIVB67E.js → chunk-NXCWYTBR.js} +2 -2
- package/dist/chunks/{chunk-4VKLCPVW.js → chunk-O5G3WU7D.js} +7 -7
- package/dist/chunks/{chunk-G3V2OKYP.js → chunk-OF6C3A2A.js} +5 -5
- package/dist/chunks/{chunk-JXBSJNUF.js → chunk-OH7ZZKTK.js} +2 -2
- package/dist/chunks/{chunk-LA6FHUOG.js → chunk-OPA5PEB6.js} +2 -2
- package/dist/chunks/{chunk-5YOREQIA.js → chunk-OPP56TXI.js} +3 -3
- package/dist/chunks/{chunk-BBNACUZ3.js → chunk-OSPHHCCJ.js} +1621 -1128
- package/dist/chunks/chunk-OSPHHCCJ.js.map +6 -0
- package/dist/chunks/{chunk-TGQWC44Q.js → chunk-OY4NNTWQ.js} +2 -2
- package/dist/chunks/{chunk-WQL7MEOD.js → chunk-PKWUPCUM.js} +2 -2
- package/dist/chunks/{chunk-TDCHFQVU.js → chunk-PMBZMVHV.js} +2 -2
- package/dist/chunks/{chunk-YCPK5ZTB.js → chunk-PWEQG76Z.js} +2 -2
- package/dist/chunks/{chunk-XNMJLM5W.js → chunk-QHDAHS57.js} +15 -15
- package/dist/chunks/{chunk-7RCI6OBE.js → chunk-QOAQ56HA.js} +2 -2
- package/dist/chunks/{chunk-JSWFUARY.js → chunk-QQUT5DNN.js} +3 -3
- package/dist/chunks/{chunk-2JKQ6BFI.js → chunk-RAQULY2R.js} +2 -2
- package/dist/chunks/{chunk-FJPM4YAO.js → chunk-RDQBYBD5.js} +4 -4
- package/dist/chunks/{chunk-SRNS347K.js → chunk-RIEZDLAC.js} +2 -2
- package/dist/chunks/{chunk-EOHPS7LC.js → chunk-RNHILE7G.js} +6 -6
- package/dist/chunks/{chunk-UCF6H5BB.js → chunk-RPPCBWXL.js} +2 -2
- package/dist/chunks/chunk-RY3CPIH5.js +55 -0
- package/dist/chunks/chunk-RY3CPIH5.js.map +6 -0
- package/dist/chunks/{chunk-7WPF7ATU.js → chunk-S7ANHH4U.js} +3 -3
- package/dist/chunks/{chunk-TO5ROEIW.js → chunk-SV5ZFJMP.js} +11 -11
- package/dist/chunks/{chunk-JKMOMRIV.js → chunk-SWFQWMJ2.js} +3 -3
- package/dist/chunks/{chunk-JZTNWODR.js → chunk-SYHKMULM.js} +55 -21
- package/dist/chunks/chunk-SYHKMULM.js.map +6 -0
- package/dist/chunks/{chunk-BUQCQMXH.js → chunk-T7QDZC4W.js} +3 -3
- package/dist/chunks/{chunk-COSMRH2Q.js → chunk-TATD2ZIK.js} +5 -5
- package/dist/chunks/{chunk-DCVWFBYB.js → chunk-TBMZYZGK.js} +2 -2
- package/dist/chunks/{chunk-P4WMRT5Q.js → chunk-TNCVJT7B.js} +2 -2
- package/dist/chunks/{chunk-JQ7HNIBS.js → chunk-UL6JZSKJ.js} +6 -6
- package/dist/chunks/{chunk-Q6NWIY5D.js → chunk-UY7V2SU3.js} +7 -7
- package/dist/chunks/{chunk-Q23JN3PA.js → chunk-VJ5RX2Q6.js} +12 -11
- package/dist/chunks/chunk-VJ5RX2Q6.js.map +6 -0
- package/dist/chunks/{chunk-XC6G27M2.js → chunk-VKHGIO4Q.js} +2 -2
- package/dist/chunks/{chunk-2KJUKF2E.js → chunk-VQLK7PBX.js} +8 -8
- package/dist/chunks/{chunk-DD3BJ4GM.js → chunk-W53FXALN.js} +12 -12
- package/dist/chunks/{chunk-MM7HGD6H.js → chunk-W5A3633F.js} +2 -2
- package/dist/chunks/{chunk-X2LYTBDH.js → chunk-W6RADGNT.js} +8 -7
- package/dist/chunks/chunk-W6RADGNT.js.map +6 -0
- package/dist/chunks/{chunk-33TGFQ2U.js → chunk-W73TYWZM.js} +27 -12
- package/dist/chunks/{chunk-33TGFQ2U.js.map → chunk-W73TYWZM.js.map} +2 -2
- package/dist/chunks/{chunk-YXR3LVZE.js → chunk-WL773Y2L.js} +3 -3
- package/dist/chunks/{chunk-BB2RJOFI.js → chunk-WR5KMZLD.js} +14 -14
- package/dist/chunks/{chunk-SX7FXWTB.js → chunk-WZ7V7AJ7.js} +3 -3
- package/dist/chunks/{chunk-LYUY2FK2.js → chunk-Y34RDPE2.js} +57 -12
- package/dist/chunks/chunk-Y34RDPE2.js.map +6 -0
- package/dist/chunks/{chunk-J4NFH5T2.js → chunk-YM25LIUF.js} +2 -2
- package/dist/chunks/{chunk-PTUICVCN.js → chunk-ZAAMUZXR.js} +5 -5
- package/dist/chunks/{chunk-4ASXGRP5.js → chunk-ZQUZ4UFW.js} +3 -3
- package/dist/chunks/{chunk-KGKVNHFC.js → chunk-ZXDKWNY6.js} +4 -4
- package/dist/chunks/{chunk-Q5THGA3N.js → chunk-ZXR4P2VS.js} +26 -13
- package/dist/chunks/chunk-ZXR4P2VS.js.map +6 -0
- package/dist/chunks/{chunk-JOVKHMJS.js → chunk-ZZJVG2RD.js} +8 -8
- package/dist/chunks/{cli-runtime-ZKBJFWOI.js → cli-runtime-4BT72MEI.js} +41 -38
- package/dist/chunks/cli-runtime-4BT72MEI.js.map +6 -0
- package/dist/chunks/{commands-3WI6F2YZ.js → commands-B3VL4RY3.js} +6 -6
- package/dist/chunks/config-ZVHBRKUW.js +46 -0
- package/dist/chunks/{cost-557HKPZ4.js → cost-OJFTDZ6I.js} +9 -7
- package/dist/chunks/{crash-report-J47RFQ5T.js → crash-report-XAWLTQYL.js} +6 -6
- package/dist/chunks/{debug-WJJFYSZF.js → debug-BUR46QTO.js} +2 -2
- package/dist/chunks/{desktop-host-schedule-tool-IOOJNMPQ.js → desktop-host-schedule-tool-P7JU4FK6.js} +42 -41
- package/dist/chunks/desktop-host-schedule-tool-P7JU4FK6.js.map +6 -0
- package/dist/chunks/{dist-JLTZUUMS.js → dist-BUEUC5BV.js} +2 -2
- package/dist/chunks/{dist-L5C6AOXZ.js → dist-F4RKWMRQ.js} +2 -2
- package/dist/chunks/{dist-AQO44B7K.js → dist-GFZ7FMZI.js} +5 -5
- package/dist/chunks/{dist-VQVXULA5.js → dist-HTRQQTXW.js} +2 -2
- package/dist/chunks/{dist-OIM6DSGL.js → dist-IODLAWWH.js} +30 -14
- package/dist/chunks/dist-IODLAWWH.js.map +6 -0
- package/dist/chunks/{dist-D2RTUX7F.js → dist-OBUMV3Z4.js} +6 -2
- package/dist/chunks/{dist-SEISKEDK.js → dist-VKCTVOQS.js} +3 -3
- package/dist/chunks/{dist-665VSCM2.js → dist-YP6F3NRE.js} +2 -2
- package/dist/chunks/doctor-EECTYXRB.js +104 -0
- package/dist/chunks/{drain-NHR22ZM6.js → drain-MY6WWYNN.js} +30 -29
- package/dist/chunks/drain-MY6WWYNN.js.map +6 -0
- package/dist/chunks/{entry-TPBKHAWV.js → entry-X66ZFIHD.js} +6 -6
- package/dist/chunks/{eval-HKBQQXOD.js → eval-R4OY7KYS.js} +18 -17
- package/dist/chunks/eval-R4OY7KYS.js.map +6 -0
- package/dist/chunks/{exec-R5U6FFFE.js → exec-ARTVVXQB.js} +197 -159
- package/dist/chunks/exec-ARTVVXQB.js.map +6 -0
- package/dist/chunks/{extension-KJJ7XNR4.js → extension-R5T6ZB3J.js} +5 -5
- package/dist/chunks/{feed-LQNVF7M6.js → feed-WNDCAX7O.js} +7 -7
- package/dist/chunks/{github-LMMBAQWI.js → github-FTZRCI35.js} +5 -2
- package/dist/chunks/github-FTZRCI35.js.map +6 -0
- package/dist/chunks/{home-D7JCGXQE.js → home-S5YIKIAP.js} +3 -3
- package/dist/chunks/{homes-EKTHOMXX.js → homes-KKTNEW6T.js} +6 -6
- package/dist/chunks/{hooks-IT2ZUPG6.js → hooks-PQGLLZF5.js} +32 -31
- package/dist/chunks/hooks-PQGLLZF5.js.map +6 -0
- package/dist/chunks/hooks-report-BILFURFN.js +49 -0
- package/dist/chunks/{host-FS2RMOHW.js → host-MCWXZMG2.js} +13 -13
- package/dist/chunks/host-queries-W2YTSA5L.js +56 -0
- package/dist/chunks/{index-project-2UUHV7X3.js → index-project-5EBD52FA.js} +27 -27
- package/dist/chunks/{installed-list-27KYS56I.js → installed-list-7DLVTTFP.js} +4 -4
- package/dist/chunks/{launch-33I3O7VJ.js → launch-CRRDFJGE.js} +35 -36
- package/dist/chunks/launch-CRRDFJGE.js.map +6 -0
- package/dist/chunks/{learn-G5UEINB6.js → learn-OKVRXWO5.js} +35 -21
- package/dist/chunks/learn-OKVRXWO5.js.map +6 -0
- package/dist/chunks/{learn-builtin-Y5FIKQSV.js → learn-builtin-XJ7KU6FY.js} +38 -26
- package/dist/chunks/learn-builtin-XJ7KU6FY.js.map +6 -0
- package/dist/chunks/lifecycle-2BWU32ZW.js +107 -0
- package/dist/chunks/{list-UKBQESKU.js → list-KTDJ33EZ.js} +28 -27
- package/dist/chunks/live-JFPXS7UR.js +103 -0
- package/dist/chunks/{load-KDS3CW6R.js → load-YFWGVGCA.js} +18 -17
- package/dist/chunks/{logs-3XKNKFY2.js → logs-LSFGXZ4S.js} +5 -5
- package/dist/chunks/{mcp-B2ZVGJQE.js → mcp-5OXPOWPW.js} +109 -81
- package/dist/chunks/mcp-5OXPOWPW.js.map +6 -0
- package/dist/chunks/{mcp-serve-DH63SWUH.js → mcp-serve-ZHHVATUX.js} +28 -27
- package/dist/chunks/mcp-serve-ZHHVATUX.js.map +6 -0
- package/dist/chunks/{message-command-KRDDHWLA.js → message-command-JRSZYXKM.js} +78 -79
- package/dist/chunks/message-command-JRSZYXKM.js.map +6 -0
- package/dist/chunks/{notes-ZCY7LTUD.js → notes-UZ3YQVXE.js} +6 -6
- package/dist/chunks/{open-A4H4HWGO.js → open-SPROLDZP.js} +8 -8
- package/dist/chunks/{operator-tools-EH6R2JQC.js → operator-tools-HZOBVTS2.js} +16 -16
- package/dist/chunks/{output-CTYONIO2.js → output-ETVW5OBK.js} +3 -2
- package/dist/chunks/{output-schema-2NSAYRBS.js → output-schema-WSFKBDCK.js} +3 -3
- package/dist/chunks/{pal-EANL2OUH.js → pal-W3JYW5RZ.js} +19 -18
- package/dist/chunks/pal-W3JYW5RZ.js.map +6 -0
- package/dist/chunks/{peers-W5KEFXN6.js → peers-6LCUIDFG.js} +29 -29
- package/dist/chunks/{peers-H3ANL6XB.js → peers-ZKUCVO3I.js} +9 -9
- package/dist/chunks/{pending-TRLAK2BR.js → pending-IITPDJJM.js} +7 -7
- package/dist/chunks/picker-operation-IQDYCJFM.js +14 -0
- package/dist/chunks/{plugin-RAY3J2G2.js → plugin-PHQUKE6W.js} +44 -44
- package/dist/chunks/{proposals-YB3YJOPW.js → proposals-BQMWFGJK.js} +45 -44
- package/dist/chunks/proposals-BQMWFGJK.js.map +6 -0
- package/dist/chunks/{providers-JA3AF524.js → providers-4VDIUVYH.js} +41 -26
- package/dist/chunks/providers-4VDIUVYH.js.map +6 -0
- package/dist/chunks/{providers-LVD7T5JI.js → providers-67YDODM5.js} +12 -12
- package/dist/chunks/{pty-66OF4YNF.js → pty-TDSPQCLR.js} +3 -3
- package/dist/chunks/{render-QFCCPEEL.js → render-TGQXAOLC.js} +3 -2
- package/dist/chunks/resume-LIWXW5EV.js +28 -0
- package/dist/chunks/{resume-command-J3VONMB5.js → resume-command-R6RJKZDE.js} +5 -5
- package/dist/chunks/{running-5GQPD6OM.js → running-FAWKGMIM.js} +4 -4
- package/dist/chunks/{say-7GQSUSTD.js → say-FIJKJARV.js} +24 -24
- package/dist/chunks/{schedule-LMXNNMAZ.js → schedule-E2EOJPNY.js} +16 -16
- package/dist/chunks/{send-Z35YQVV2.js → send-W7LOV3P4.js} +21 -21
- package/dist/chunks/send-person-255CT57X.js +39 -0
- package/dist/chunks/{servers-4QP7GKOK.js → servers-6T6MUFLX.js} +8 -8
- package/dist/chunks/{service-U244Z3VG.js → service-PV365QT4.js} +82 -88
- package/dist/chunks/service-PV365QT4.js.map +6 -0
- package/dist/chunks/{session-options-ODKOXNAT.js → session-options-TBDAURIK.js} +5 -5
- package/dist/chunks/{setting-cli-H5UKKB4F.js → setting-cli-AEYEC6U2.js} +21 -21
- package/dist/chunks/{skills-ELR2D7WU.js → skills-CKH2J2I4.js} +39 -38
- package/dist/chunks/skills-CKH2J2I4.js.map +6 -0
- package/dist/chunks/{source-deliveries-CI5K5DJQ.js → source-deliveries-H52ZOTJE.js} +22 -20
- package/dist/chunks/{start-check-JYINXXEG.js → start-check-DEU5JADC.js} +2 -2
- package/dist/chunks/{startup-failure-G3HSW2U3.js → startup-failure-LL4GPS3H.js} +2 -2
- package/dist/chunks/{state-EDIR4EM2.js → state-7TOREMSY.js} +35 -29
- package/dist/chunks/state-7TOREMSY.js.map +6 -0
- package/dist/chunks/{store-ADMKKWZF.js → store-3T4TM2EQ.js} +13 -13
- package/dist/chunks/{store-6SNBHHJA.js → store-WH657AL3.js} +4 -4
- package/dist/chunks/{store-4HJUNR5E.js → store-XX4QGPEF.js} +3 -3
- package/dist/chunks/{store-IKXRGI2L.js → store-Z34U7SLE.js} +9 -9
- package/dist/chunks/store-Z34U7SLE.js.map +6 -0
- package/dist/chunks/{tui-AKXFDXNZ.js → tui-SIGXZLRH.js} +134 -135
- package/dist/chunks/tui-SIGXZLRH.js.map +6 -0
- package/dist/chunks/{update-TYCWQEHZ.js → update-7K6JHOPD.js} +8 -8
- package/dist/chunks/{watch-RQYBCHYR.js → watch-64RX3DFW.js} +133 -134
- package/dist/chunks/watch-64RX3DFW.js.map +6 -0
- package/dist/chunks/{windows-home-IZGCRSW7.js → windows-home-NVDBTEBG.js} +5 -5
- package/dist/chunks/windows-home-NVDBTEBG.js.map +6 -0
- package/dist/chunks/{workspaces-6KGOMHCM.js → workspaces-O4ITLGOL.js} +21 -21
- package/dist/chunks/{worktree-O7RSM3PC.js → worktree-X4AAM72F.js} +37 -38
- package/dist/chunks/worktree-X4AAM72F.js.map +6 -0
- package/dist/cli-runtime.d.ts +1 -1
- package/dist/cli-runtime.d.ts.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/acp.d.ts +10 -2
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/action-help.d.ts +9 -8
- package/dist/commands/action-help.d.ts.map +1 -1
- package/dist/commands/actions/mcp.d.ts.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/desktop-host-skills.d.ts +16 -0
- package/dist/commands/desktop-host-skills.d.ts.map +1 -1
- package/dist/commands/desktop-host.d.ts +28 -8
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/desktop-usage-feed.d.ts +4 -2
- package/dist/commands/desktop-usage-feed.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts +4 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/exec-flags.d.ts +3 -1
- package/dist/commands/exec-flags.d.ts.map +1 -1
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/format-support.d.ts +4 -0
- package/dist/commands/format-support.d.ts.map +1 -0
- package/dist/commands/held-names.d.ts +43 -0
- package/dist/commands/held-names.d.ts.map +1 -0
- package/dist/commands/host-queries.d.ts +25 -0
- package/dist/commands/host-queries.d.ts.map +1 -1
- package/dist/commands/launch-extras.d.ts +2 -1
- package/dist/commands/launch-extras.d.ts.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/providers.d.ts.map +1 -1
- package/dist/config/file-policy.d.ts +7 -0
- package/dist/config/file-policy.d.ts.map +1 -0
- package/dist/config/load.d.ts +5 -2
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/user-config.d.ts +31 -0
- package/dist/config/user-config.d.ts.map +1 -1
- package/dist/context/project.d.ts +1 -1
- package/dist/context/project.d.ts.map +1 -1
- package/dist/context/system-prompt.d.ts.map +1 -1
- package/dist/index.js +66 -65
- package/dist/integrations/auto-update/install-kind.d.ts.map +1 -1
- package/dist/integrations/github/workflows.d.ts +1 -1
- package/dist/integrations/github/workflows.d.ts.map +1 -1
- package/dist/integrations/mcp/live-project-approval.d.ts +20 -0
- package/dist/integrations/mcp/live-project-approval.d.ts.map +1 -0
- package/dist/integrations/mcp/project-approval.d.ts +3 -0
- package/dist/integrations/mcp/project-approval.d.ts.map +1 -1
- package/dist/integrations/mcp/server-listing.d.ts.map +1 -1
- package/dist/integrations/mcp/servers.d.ts +2 -0
- package/dist/integrations/mcp/servers.d.ts.map +1 -1
- package/dist/integrations/mcp/shared-file.d.ts +5 -4
- package/dist/integrations/mcp/shared-file.d.ts.map +1 -1
- package/dist/integrations/mcp/user-config.d.ts +8 -3
- package/dist/integrations/mcp/user-config.d.ts.map +1 -1
- package/dist/integrations/providers/credential-store.d.ts +9 -0
- package/dist/integrations/providers/credential-store.d.ts.map +1 -1
- package/dist/integrations/providers/model-listing-cache.d.ts +29 -0
- package/dist/integrations/providers/model-listing-cache.d.ts.map +1 -0
- package/dist/integrations/providers/picker-operation.d.ts +8 -2
- package/dist/integrations/providers/picker-operation.d.ts.map +1 -1
- package/dist/integrations/sessions/side-question.d.ts +23 -6
- package/dist/integrations/sessions/side-question.d.ts.map +1 -1
- package/dist/integrations/spend/fold.d.ts +4 -1
- package/dist/integrations/spend/fold.d.ts.map +1 -1
- package/dist/integrations/spend/ledger.d.ts +1 -1
- package/dist/integrations/spend/render.d.ts +1 -1
- package/dist/integrations/spend/render.d.ts.map +1 -1
- package/dist/integrations/spend/report.d.ts +1 -0
- package/dist/integrations/spend/report.d.ts.map +1 -1
- package/dist/integrations/spend/session-cost.d.ts +17 -1
- package/dist/integrations/spend/session-cost.d.ts.map +1 -1
- package/dist/permissions/send-floor.d.ts +16 -12
- package/dist/permissions/send-floor.d.ts.map +1 -1
- package/dist/rounds/goal-gate-host.d.ts.map +1 -1
- package/dist/schedule/commands/service.d.ts.map +1 -1
- package/dist/schedule/service/index.d.ts.map +1 -1
- package/dist/schedule/service/windows-task.d.ts +3 -0
- package/dist/schedule/service/windows-task.d.ts.map +1 -1
- package/dist/sdk-peer.js +5 -1
- package/dist/skills/add.d.ts +2 -0
- package/dist/skills/add.d.ts.map +1 -1
- package/dist/skills/store.d.ts +1 -2
- package/dist/skills/store.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Picker.d.ts +11 -1
- package/dist/tui/Picker.d.ts.map +1 -1
- package/dist/tui/RewindPicker.d.ts.map +1 -1
- package/dist/tui/SideChatPanel.d.ts +17 -0
- package/dist/tui/SideChatPanel.d.ts.map +1 -0
- package/dist/tui/agent.d.ts +22 -8
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/computer-use-enable-offer.d.ts.map +1 -1
- package/dist/tui/model-choices.d.ts +14 -0
- package/dist/tui/model-choices.d.ts.map +1 -1
- package/dist/tui/plain-failure.d.ts.map +1 -1
- package/dist/tui/rewind.d.ts +6 -1
- package/dist/tui/rewind.d.ts.map +1 -1
- package/dist/tui/slashCommands.d.ts +17 -2
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/status-line/payload.d.ts +3 -1
- package/dist/tui/status-line/payload.d.ts.map +1 -1
- package/dist/tui/status-line/useStatusLine.d.ts +1 -1
- package/dist/tui/status-line/useStatusLine.d.ts.map +1 -1
- package/dist/tui/types.d.ts +2 -0
- package/dist/tui/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/skills/pdf/SKILL.md +11 -3
- package/dist/chunks/acp-J3TMCBRY.js.map +0 -6
- package/dist/chunks/activity-command-X25POZ3R.js.map +0 -6
- package/dist/chunks/add-HL4MO6R2.js +0 -84
- package/dist/chunks/agent-session-OC32VSS6.js +0 -107
- package/dist/chunks/bin-main-74KBBJNG.js.map +0 -6
- package/dist/chunks/chunk-23AYRMS2.js.map +0 -6
- package/dist/chunks/chunk-2USTJGLA.js.map +0 -6
- package/dist/chunks/chunk-3QXUETDN.js.map +0 -6
- package/dist/chunks/chunk-4U6TAYDK.js.map +0 -6
- package/dist/chunks/chunk-554DVVVR.js.map +0 -6
- package/dist/chunks/chunk-6CL7TQOC.js +0 -433
- package/dist/chunks/chunk-6CL7TQOC.js.map +0 -6
- package/dist/chunks/chunk-7YC42EXB.js +0 -82
- package/dist/chunks/chunk-7YC42EXB.js.map +0 -6
- package/dist/chunks/chunk-BBNACUZ3.js.map +0 -6
- package/dist/chunks/chunk-FXJX3AHN.js.map +0 -6
- package/dist/chunks/chunk-JWBS363M.js.map +0 -6
- package/dist/chunks/chunk-JZTNWODR.js.map +0 -6
- package/dist/chunks/chunk-LCGXWCVU.js +0 -28
- package/dist/chunks/chunk-LCGXWCVU.js.map +0 -6
- package/dist/chunks/chunk-LVVD32KJ.js +0 -75
- package/dist/chunks/chunk-LVVD32KJ.js.map +0 -6
- package/dist/chunks/chunk-LYUY2FK2.js.map +0 -6
- package/dist/chunks/chunk-N4KE47J2.js +0 -178
- package/dist/chunks/chunk-N4KE47J2.js.map +0 -6
- package/dist/chunks/chunk-PP7AG46K.js.map +0 -6
- package/dist/chunks/chunk-Q23JN3PA.js.map +0 -6
- package/dist/chunks/chunk-Q5THGA3N.js.map +0 -6
- package/dist/chunks/chunk-RBRBYXJX.js.map +0 -6
- package/dist/chunks/chunk-T34DMFOM.js.map +0 -6
- package/dist/chunks/chunk-V2DQFFLG.js.map +0 -6
- package/dist/chunks/chunk-WMWRRDO2.js.map +0 -6
- package/dist/chunks/chunk-X2LYTBDH.js.map +0 -6
- package/dist/chunks/chunk-XRAVC5W6.js.map +0 -6
- package/dist/chunks/chunk-YRQ5PI7O.js.map +0 -6
- package/dist/chunks/cli-runtime-ZKBJFWOI.js.map +0 -6
- package/dist/chunks/config-E6UPAUGU.js.map +0 -6
- package/dist/chunks/desktop-host-schedule-tool-IOOJNMPQ.js.map +0 -6
- package/dist/chunks/dist-OIM6DSGL.js.map +0 -6
- package/dist/chunks/doctor-ZRPCR5DP.js +0 -104
- package/dist/chunks/drain-NHR22ZM6.js.map +0 -6
- package/dist/chunks/eval-HKBQQXOD.js.map +0 -6
- package/dist/chunks/exec-R5U6FFFE.js.map +0 -6
- package/dist/chunks/github-LMMBAQWI.js.map +0 -6
- package/dist/chunks/hooks-IT2ZUPG6.js.map +0 -6
- package/dist/chunks/hooks-report-A7F26EDM.js +0 -48
- package/dist/chunks/host-queries-OJXR2XYT.js +0 -41
- package/dist/chunks/launch-33I3O7VJ.js.map +0 -6
- package/dist/chunks/learn-G5UEINB6.js.map +0 -6
- package/dist/chunks/learn-builtin-Y5FIKQSV.js.map +0 -6
- package/dist/chunks/lifecycle-NJQ7FIK2.js +0 -106
- package/dist/chunks/live-3YNFFWY5.js +0 -103
- package/dist/chunks/mcp-B2ZVGJQE.js.map +0 -6
- package/dist/chunks/mcp-serve-DH63SWUH.js.map +0 -6
- package/dist/chunks/message-command-KRDDHWLA.js.map +0 -6
- package/dist/chunks/pal-EANL2OUH.js.map +0 -6
- package/dist/chunks/proposals-YB3YJOPW.js.map +0 -6
- package/dist/chunks/providers-JA3AF524.js.map +0 -6
- package/dist/chunks/resume-W4JBH2A7.js +0 -28
- package/dist/chunks/send-person-TIM427ZP.js +0 -39
- package/dist/chunks/service-U244Z3VG.js.map +0 -6
- package/dist/chunks/skills-ELR2D7WU.js.map +0 -6
- package/dist/chunks/state-EDIR4EM2.js.map +0 -6
- package/dist/chunks/tui-AKXFDXNZ.js.map +0 -6
- package/dist/chunks/watch-RQYBCHYR.js.map +0 -6
- package/dist/chunks/worktree-O7RSM3PC.js.map +0 -6
- /package/dist/chunks/{add-HL4MO6R2.js.map → add-5G3FDM4B.js.map} +0 -0
- /package/dist/chunks/{agent-MHH4MGYB.js.map → agent-WQCDAMAD.js.map} +0 -0
- /package/dist/chunks/{agent-session-OC32VSS6.js.map → agent-session-XPSQP4JL.js.map} +0 -0
- /package/dist/chunks/{apply-at-exit-ADWMDFFQ.js.map → apply-at-exit-SDKJ47Q3.js.map} +0 -0
- /package/dist/chunks/{archive-6X2FED3E.js.map → archive-34UIFTQR.js.map} +0 -0
- /package/dist/chunks/{auth-KRORFNAA.js.map → auth-5OZGKKM3.js.map} +0 -0
- /package/dist/chunks/{binding-OXJ5TL6T.js.map → binding-4KK4DQBO.js.map} +0 -0
- /package/dist/chunks/{browser-DFLZNRRZ.js.map → browser-5KTBUCPV.js.map} +0 -0
- /package/dist/chunks/{chat-PPSFN5JK.js.map → chat-FTWGV4V2.js.map} +0 -0
- /package/dist/chunks/{chunk-ZQL7XFSE.js.map → chunk-2C4SVJIQ.js.map} +0 -0
- /package/dist/chunks/{chunk-JD7EWFIJ.js.map → chunk-2DTDEDWG.js.map} +0 -0
- /package/dist/chunks/{chunk-MHEYQD24.js.map → chunk-2P76EGL4.js.map} +0 -0
- /package/dist/chunks/{chunk-GCOTJ6XY.js.map → chunk-36QT24YV.js.map} +0 -0
- /package/dist/chunks/{chunk-J6JBHNNR.js.map → chunk-3ACZA3UY.js.map} +0 -0
- /package/dist/chunks/{chunk-4TPXEWD5.js.map → chunk-3DABC66V.js.map} +0 -0
- /package/dist/chunks/{chunk-ZAQFM5BR.js.map → chunk-3SX2TTHV.js.map} +0 -0
- /package/dist/chunks/{chunk-TXCQMW7F.js.map → chunk-4X22JAQ6.js.map} +0 -0
- /package/dist/chunks/{chunk-UP3ATLU6.js.map → chunk-53RU3PZ3.js.map} +0 -0
- /package/dist/chunks/{chunk-CPZEJQ2Z.js.map → chunk-5EFS6QER.js.map} +0 -0
- /package/dist/chunks/{chunk-VWJOJJNQ.js.map → chunk-5HA7O6LY.js.map} +0 -0
- /package/dist/chunks/{chunk-XORYHNZ3.js.map → chunk-5IYDNES6.js.map} +0 -0
- /package/dist/chunks/{chunk-5GJWIDVU.js.map → chunk-5JJVOBXN.js.map} +0 -0
- /package/dist/chunks/{chunk-5XROCBT5.js.map → chunk-66CA3YG7.js.map} +0 -0
- /package/dist/chunks/{chunk-4OWFI7ZE.js.map → chunk-67E7SJ4C.js.map} +0 -0
- /package/dist/chunks/{chunk-EPSLHLT3.js.map → chunk-6B5PSP2N.js.map} +0 -0
- /package/dist/chunks/{chunk-5PQHBLZI.js.map → chunk-6IGQR4DS.js.map} +0 -0
- /package/dist/chunks/{chunk-TTBXKYFP.js.map → chunk-6K3MLMSR.js.map} +0 -0
- /package/dist/chunks/{chunk-2QGSHJ4Y.js.map → chunk-6PFVGGUE.js.map} +0 -0
- /package/dist/chunks/{chunk-XBX3T6YY.js.map → chunk-6ZMCL27L.js.map} +0 -0
- /package/dist/chunks/{chunk-TIM7OEJN.js.map → chunk-73QHZKP3.js.map} +0 -0
- /package/dist/chunks/{chunk-FZSM7DSH.js.map → chunk-7AJBH2NF.js.map} +0 -0
- /package/dist/chunks/{chunk-PSRWFKFX.js.map → chunk-7OUQQLBD.js.map} +0 -0
- /package/dist/chunks/{chunk-DKTU6RWO.js.map → chunk-AJBTQ7IQ.js.map} +0 -0
- /package/dist/chunks/{chunk-3FFV4OSR.js.map → chunk-BDAL2QDI.js.map} +0 -0
- /package/dist/chunks/{chunk-N4USZWBA.js.map → chunk-CG3ZDOHF.js.map} +0 -0
- /package/dist/chunks/{chunk-SQDZZCQJ.js.map → chunk-CGXFMYAJ.js.map} +0 -0
- /package/dist/chunks/{chunk-G4OR74MC.js.map → chunk-CJIQN7H5.js.map} +0 -0
- /package/dist/chunks/{chunk-ZDJWREOA.js.map → chunk-CJJJFXZR.js.map} +0 -0
- /package/dist/chunks/{chunk-ISI36EUS.js.map → chunk-CM5AEFK6.js.map} +0 -0
- /package/dist/chunks/{chunk-K4AUROOC.js.map → chunk-CMBMG3KP.js.map} +0 -0
- /package/dist/chunks/{chunk-SCGWXYZW.js.map → chunk-CPFRUTGZ.js.map} +0 -0
- /package/dist/chunks/{chunk-LZPPIRJW.js.map → chunk-CRR32PX5.js.map} +0 -0
- /package/dist/chunks/{chunk-SDWOSB3L.js.map → chunk-DLOSOMLQ.js.map} +0 -0
- /package/dist/chunks/{chunk-PMA5NXWF.js.map → chunk-DNTZDBQD.js.map} +0 -0
- /package/dist/chunks/{chunk-4JPZYI6M.js.map → chunk-DUW74FJS.js.map} +0 -0
- /package/dist/chunks/{chunk-3TLDTD6R.js.map → chunk-EKY3JNCT.js.map} +0 -0
- /package/dist/chunks/{chunk-OIFFABSH.js.map → chunk-EX5PFCLD.js.map} +0 -0
- /package/dist/chunks/{chunk-UTC325FB.js.map → chunk-FAEACSBT.js.map} +0 -0
- /package/dist/chunks/{chunk-XK7NQIZA.js.map → chunk-FIKOGCGU.js.map} +0 -0
- /package/dist/chunks/{chunk-T6FMC7R5.js.map → chunk-FMRGG736.js.map} +0 -0
- /package/dist/chunks/{chunk-JCY3OPTY.js.map → chunk-FP3D47HZ.js.map} +0 -0
- /package/dist/chunks/{chunk-XTMUUGTN.js.map → chunk-FXUEDFTD.js.map} +0 -0
- /package/dist/chunks/{chunk-HXZA5UUN.js.map → chunk-G4OZ4DH5.js.map} +0 -0
- /package/dist/chunks/{chunk-IUMOIQKL.js.map → chunk-GAVVXNL2.js.map} +0 -0
- /package/dist/chunks/{chunk-W4EKIBRD.js.map → chunk-GJBBEMZD.js.map} +0 -0
- /package/dist/chunks/{chunk-75RHEPE7.js.map → chunk-GR65TG5P.js.map} +0 -0
- /package/dist/chunks/{chunk-RWSHMPFM.js.map → chunk-H5TPY6EO.js.map} +0 -0
- /package/dist/chunks/{chunk-YYGE5EWH.js.map → chunk-H6T6PV5Y.js.map} +0 -0
- /package/dist/chunks/{chunk-JU3P3ZJJ.js.map → chunk-HAQVZC4P.js.map} +0 -0
- /package/dist/chunks/{chunk-ZKTDZOCC.js.map → chunk-HR34LTE2.js.map} +0 -0
- /package/dist/chunks/{chunk-PGHGBSS2.js.map → chunk-HZAS2R6H.js.map} +0 -0
- /package/dist/chunks/{chunk-OKFU62GA.js.map → chunk-IRWSATQY.js.map} +0 -0
- /package/dist/chunks/{chunk-333RR5BA.js.map → chunk-J4K2OLHK.js.map} +0 -0
- /package/dist/chunks/{chunk-XGH3FZ76.js.map → chunk-JDRJK3H2.js.map} +0 -0
- /package/dist/chunks/{chunk-PLPVXHTM.js.map → chunk-JFVC7QZF.js.map} +0 -0
- /package/dist/chunks/{chunk-KLIJLSWF.js.map → chunk-JOBGKVRU.js.map} +0 -0
- /package/dist/chunks/{chunk-VMWPRI2S.js.map → chunk-JOSNFE2X.js.map} +0 -0
- /package/dist/chunks/{chunk-RIVPA5TG.js.map → chunk-JPKUB7E4.js.map} +0 -0
- /package/dist/chunks/{chunk-W3QW6SK6.js.map → chunk-K4QCROD3.js.map} +0 -0
- /package/dist/chunks/{chunk-Y36ZTLIJ.js.map → chunk-KDDRQUIR.js.map} +0 -0
- /package/dist/chunks/{chunk-VH647IFM.js.map → chunk-KIYAZWAF.js.map} +0 -0
- /package/dist/chunks/{chunk-LJFDFGFU.js.map → chunk-KJDWKULG.js.map} +0 -0
- /package/dist/chunks/{chunk-RZ3HYPV4.js.map → chunk-KRIZCT77.js.map} +0 -0
- /package/dist/chunks/{chunk-QTR6UU63.js.map → chunk-KX66MWDP.js.map} +0 -0
- /package/dist/chunks/{chunk-YZ6UKIKL.js.map → chunk-LFMJOKBL.js.map} +0 -0
- /package/dist/chunks/{chunk-WNBIAOXA.js.map → chunk-LN4BWT7R.js.map} +0 -0
- /package/dist/chunks/{chunk-YVQE7BQ7.js.map → chunk-LYJXIOI5.js.map} +0 -0
- /package/dist/chunks/{chunk-X4TVUANR.js.map → chunk-MVRAZCUI.js.map} +0 -0
- /package/dist/chunks/{chunk-AAN4XLUD.js.map → chunk-N6HV5HKC.js.map} +0 -0
- /package/dist/chunks/{chunk-FAQQGJ2Z.js.map → chunk-NCLQNYPN.js.map} +0 -0
- /package/dist/chunks/{chunk-2R6Z32IU.js.map → chunk-NLZMCKKM.js.map} +0 -0
- /package/dist/chunks/{chunk-RQYSVELQ.js.map → chunk-NWCEGGNZ.js.map} +0 -0
- /package/dist/chunks/{chunk-IDIVB67E.js.map → chunk-NXCWYTBR.js.map} +0 -0
- /package/dist/chunks/{chunk-4VKLCPVW.js.map → chunk-O5G3WU7D.js.map} +0 -0
- /package/dist/chunks/{chunk-G3V2OKYP.js.map → chunk-OF6C3A2A.js.map} +0 -0
- /package/dist/chunks/{chunk-JXBSJNUF.js.map → chunk-OH7ZZKTK.js.map} +0 -0
- /package/dist/chunks/{chunk-LA6FHUOG.js.map → chunk-OPA5PEB6.js.map} +0 -0
- /package/dist/chunks/{chunk-5YOREQIA.js.map → chunk-OPP56TXI.js.map} +0 -0
- /package/dist/chunks/{chunk-TGQWC44Q.js.map → chunk-OY4NNTWQ.js.map} +0 -0
- /package/dist/chunks/{chunk-WQL7MEOD.js.map → chunk-PKWUPCUM.js.map} +0 -0
- /package/dist/chunks/{chunk-TDCHFQVU.js.map → chunk-PMBZMVHV.js.map} +0 -0
- /package/dist/chunks/{chunk-YCPK5ZTB.js.map → chunk-PWEQG76Z.js.map} +0 -0
- /package/dist/chunks/{chunk-XNMJLM5W.js.map → chunk-QHDAHS57.js.map} +0 -0
- /package/dist/chunks/{chunk-7RCI6OBE.js.map → chunk-QOAQ56HA.js.map} +0 -0
- /package/dist/chunks/{chunk-JSWFUARY.js.map → chunk-QQUT5DNN.js.map} +0 -0
- /package/dist/chunks/{chunk-2JKQ6BFI.js.map → chunk-RAQULY2R.js.map} +0 -0
- /package/dist/chunks/{chunk-FJPM4YAO.js.map → chunk-RDQBYBD5.js.map} +0 -0
- /package/dist/chunks/{chunk-SRNS347K.js.map → chunk-RIEZDLAC.js.map} +0 -0
- /package/dist/chunks/{chunk-EOHPS7LC.js.map → chunk-RNHILE7G.js.map} +0 -0
- /package/dist/chunks/{chunk-UCF6H5BB.js.map → chunk-RPPCBWXL.js.map} +0 -0
- /package/dist/chunks/{chunk-7WPF7ATU.js.map → chunk-S7ANHH4U.js.map} +0 -0
- /package/dist/chunks/{chunk-TO5ROEIW.js.map → chunk-SV5ZFJMP.js.map} +0 -0
- /package/dist/chunks/{chunk-JKMOMRIV.js.map → chunk-SWFQWMJ2.js.map} +0 -0
- /package/dist/chunks/{chunk-BUQCQMXH.js.map → chunk-T7QDZC4W.js.map} +0 -0
- /package/dist/chunks/{chunk-COSMRH2Q.js.map → chunk-TATD2ZIK.js.map} +0 -0
- /package/dist/chunks/{chunk-DCVWFBYB.js.map → chunk-TBMZYZGK.js.map} +0 -0
- /package/dist/chunks/{chunk-P4WMRT5Q.js.map → chunk-TNCVJT7B.js.map} +0 -0
- /package/dist/chunks/{chunk-JQ7HNIBS.js.map → chunk-UL6JZSKJ.js.map} +0 -0
- /package/dist/chunks/{chunk-Q6NWIY5D.js.map → chunk-UY7V2SU3.js.map} +0 -0
- /package/dist/chunks/{chunk-XC6G27M2.js.map → chunk-VKHGIO4Q.js.map} +0 -0
- /package/dist/chunks/{chunk-2KJUKF2E.js.map → chunk-VQLK7PBX.js.map} +0 -0
- /package/dist/chunks/{chunk-DD3BJ4GM.js.map → chunk-W53FXALN.js.map} +0 -0
- /package/dist/chunks/{chunk-MM7HGD6H.js.map → chunk-W5A3633F.js.map} +0 -0
- /package/dist/chunks/{chunk-YXR3LVZE.js.map → chunk-WL773Y2L.js.map} +0 -0
- /package/dist/chunks/{chunk-BB2RJOFI.js.map → chunk-WR5KMZLD.js.map} +0 -0
- /package/dist/chunks/{chunk-SX7FXWTB.js.map → chunk-WZ7V7AJ7.js.map} +0 -0
- /package/dist/chunks/{chunk-J4NFH5T2.js.map → chunk-YM25LIUF.js.map} +0 -0
- /package/dist/chunks/{chunk-PTUICVCN.js.map → chunk-ZAAMUZXR.js.map} +0 -0
- /package/dist/chunks/{chunk-4ASXGRP5.js.map → chunk-ZQUZ4UFW.js.map} +0 -0
- /package/dist/chunks/{chunk-KGKVNHFC.js.map → chunk-ZXDKWNY6.js.map} +0 -0
- /package/dist/chunks/{chunk-JOVKHMJS.js.map → chunk-ZZJVG2RD.js.map} +0 -0
- /package/dist/chunks/{commands-3WI6F2YZ.js.map → commands-B3VL4RY3.js.map} +0 -0
- /package/dist/chunks/{cost-557HKPZ4.js.map → config-ZVHBRKUW.js.map} +0 -0
- /package/dist/chunks/{crash-report-J47RFQ5T.js.map → cost-OJFTDZ6I.js.map} +0 -0
- /package/dist/chunks/{dist-D2RTUX7F.js.map → crash-report-XAWLTQYL.js.map} +0 -0
- /package/dist/chunks/{debug-WJJFYSZF.js.map → debug-BUR46QTO.js.map} +0 -0
- /package/dist/chunks/{dist-JLTZUUMS.js.map → dist-BUEUC5BV.js.map} +0 -0
- /package/dist/chunks/{dist-L5C6AOXZ.js.map → dist-F4RKWMRQ.js.map} +0 -0
- /package/dist/chunks/{dist-AQO44B7K.js.map → dist-GFZ7FMZI.js.map} +0 -0
- /package/dist/chunks/{dist-VQVXULA5.js.map → dist-HTRQQTXW.js.map} +0 -0
- /package/dist/chunks/{dist-SEISKEDK.js.map → dist-OBUMV3Z4.js.map} +0 -0
- /package/dist/chunks/{doctor-ZRPCR5DP.js.map → dist-VKCTVOQS.js.map} +0 -0
- /package/dist/chunks/{dist-665VSCM2.js.map → dist-YP6F3NRE.js.map} +0 -0
- /package/dist/chunks/{extension-KJJ7XNR4.js.map → doctor-EECTYXRB.js.map} +0 -0
- /package/dist/chunks/{entry-TPBKHAWV.js.map → entry-X66ZFIHD.js.map} +0 -0
- /package/dist/chunks/{home-D7JCGXQE.js.map → extension-R5T6ZB3J.js.map} +0 -0
- /package/dist/chunks/{feed-LQNVF7M6.js.map → feed-WNDCAX7O.js.map} +0 -0
- /package/dist/chunks/{homes-EKTHOMXX.js.map → home-S5YIKIAP.js.map} +0 -0
- /package/dist/chunks/{hooks-report-A7F26EDM.js.map → homes-KKTNEW6T.js.map} +0 -0
- /package/dist/chunks/{host-FS2RMOHW.js.map → hooks-report-BILFURFN.js.map} +0 -0
- /package/dist/chunks/{host-queries-OJXR2XYT.js.map → host-MCWXZMG2.js.map} +0 -0
- /package/dist/chunks/{lifecycle-NJQ7FIK2.js.map → host-queries-W2YTSA5L.js.map} +0 -0
- /package/dist/chunks/{index-project-2UUHV7X3.js.map → index-project-5EBD52FA.js.map} +0 -0
- /package/dist/chunks/{installed-list-27KYS56I.js.map → installed-list-7DLVTTFP.js.map} +0 -0
- /package/dist/chunks/{list-UKBQESKU.js.map → lifecycle-2BWU32ZW.js.map} +0 -0
- /package/dist/chunks/{live-3YNFFWY5.js.map → list-KTDJ33EZ.js.map} +0 -0
- /package/dist/chunks/{load-KDS3CW6R.js.map → live-JFPXS7UR.js.map} +0 -0
- /package/dist/chunks/{open-A4H4HWGO.js.map → load-YFWGVGCA.js.map} +0 -0
- /package/dist/chunks/{logs-3XKNKFY2.js.map → logs-LSFGXZ4S.js.map} +0 -0
- /package/dist/chunks/{notes-ZCY7LTUD.js.map → notes-UZ3YQVXE.js.map} +0 -0
- /package/dist/chunks/{output-CTYONIO2.js.map → open-SPROLDZP.js.map} +0 -0
- /package/dist/chunks/{operator-tools-EH6R2JQC.js.map → operator-tools-HZOBVTS2.js.map} +0 -0
- /package/dist/chunks/{output-schema-2NSAYRBS.js.map → output-ETVW5OBK.js.map} +0 -0
- /package/dist/chunks/{peers-H3ANL6XB.js.map → output-schema-WSFKBDCK.js.map} +0 -0
- /package/dist/chunks/{peers-W5KEFXN6.js.map → peers-6LCUIDFG.js.map} +0 -0
- /package/dist/chunks/{pending-TRLAK2BR.js.map → peers-ZKUCVO3I.js.map} +0 -0
- /package/dist/chunks/{providers-LVD7T5JI.js.map → pending-IITPDJJM.js.map} +0 -0
- /package/dist/chunks/{pty-66OF4YNF.js.map → picker-operation-IQDYCJFM.js.map} +0 -0
- /package/dist/chunks/{plugin-RAY3J2G2.js.map → plugin-PHQUKE6W.js.map} +0 -0
- /package/dist/chunks/{render-QFCCPEEL.js.map → providers-67YDODM5.js.map} +0 -0
- /package/dist/chunks/{resume-W4JBH2A7.js.map → pty-TDSPQCLR.js.map} +0 -0
- /package/dist/chunks/{resume-command-J3VONMB5.js.map → render-TGQXAOLC.js.map} +0 -0
- /package/dist/chunks/{running-5GQPD6OM.js.map → resume-LIWXW5EV.js.map} +0 -0
- /package/dist/chunks/{send-Z35YQVV2.js.map → resume-command-R6RJKZDE.js.map} +0 -0
- /package/dist/chunks/{send-person-TIM427ZP.js.map → running-FAWKGMIM.js.map} +0 -0
- /package/dist/chunks/{say-7GQSUSTD.js.map → say-FIJKJARV.js.map} +0 -0
- /package/dist/chunks/{schedule-LMXNNMAZ.js.map → schedule-E2EOJPNY.js.map} +0 -0
- /package/dist/chunks/{servers-4QP7GKOK.js.map → send-W7LOV3P4.js.map} +0 -0
- /package/dist/chunks/{session-options-ODKOXNAT.js.map → send-person-255CT57X.js.map} +0 -0
- /package/dist/chunks/{setting-cli-H5UKKB4F.js.map → servers-6T6MUFLX.js.map} +0 -0
- /package/dist/chunks/{source-deliveries-CI5K5DJQ.js.map → session-options-TBDAURIK.js.map} +0 -0
- /package/dist/chunks/{start-check-JYINXXEG.js.map → setting-cli-AEYEC6U2.js.map} +0 -0
- /package/dist/chunks/{store-4HJUNR5E.js.map → source-deliveries-H52ZOTJE.js.map} +0 -0
- /package/dist/chunks/{store-6SNBHHJA.js.map → start-check-DEU5JADC.js.map} +0 -0
- /package/dist/chunks/{startup-failure-G3HSW2U3.js.map → startup-failure-LL4GPS3H.js.map} +0 -0
- /package/dist/chunks/{store-ADMKKWZF.js.map → store-3T4TM2EQ.js.map} +0 -0
- /package/dist/chunks/{store-IKXRGI2L.js.map → store-WH657AL3.js.map} +0 -0
- /package/dist/chunks/{windows-home-IZGCRSW7.js.map → store-XX4QGPEF.js.map} +0 -0
- /package/dist/chunks/{update-TYCWQEHZ.js.map → update-7K6JHOPD.js.map} +0 -0
- /package/dist/chunks/{workspaces-6KGOMHCM.js.map → workspaces-O4ITLGOL.js.map} +0 -0
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
2
2
|
const require = __namzuCreateRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
envEntryProblem,
|
|
5
|
-
mergeEnvLayer
|
|
6
|
-
} from "./chunk-BCHHHNLK.js";
|
|
7
3
|
import {
|
|
8
4
|
bindPermissionTableToSource,
|
|
9
5
|
canonicalToolName,
|
|
6
|
+
compilePermissions,
|
|
10
7
|
mergePermissionSettings,
|
|
11
8
|
mergePermissionTables,
|
|
9
|
+
permissionCheckProblem,
|
|
12
10
|
permissionSettingsProblem,
|
|
13
11
|
splitPermissionsTable
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
resolveGeneratorSettings
|
|
17
|
-
} from "./chunk-LCGXWCVU.js";
|
|
18
|
-
import {
|
|
19
|
-
McpServerFileError,
|
|
20
|
-
PROJECT_MCP_FILE,
|
|
21
|
-
readMcpServerFile
|
|
22
|
-
} from "./chunk-7YC42EXB.js";
|
|
12
|
+
} from "./chunk-5JJVOBXN.js";
|
|
23
13
|
import {
|
|
24
14
|
REASONING_EFFORT_LEVELS,
|
|
15
|
+
configFilePolicy,
|
|
16
|
+
envEntryProblem,
|
|
17
|
+
mergeEnvLayer,
|
|
25
18
|
positiveTokenCount
|
|
26
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5X5OZSNJ.js";
|
|
20
|
+
import {
|
|
21
|
+
deleteUserConfigValue,
|
|
22
|
+
editUserConfigDocument,
|
|
23
|
+
setUserConfigValue,
|
|
24
|
+
unreadableUserConfig,
|
|
25
|
+
userConfigPath,
|
|
26
|
+
withUserConfigLock
|
|
27
|
+
} from "./chunk-D3YSEDX3.js";
|
|
27
28
|
import {
|
|
28
29
|
homePath
|
|
29
30
|
} from "./chunk-5UARTCJW.js";
|
|
@@ -34,14 +35,6 @@ import {
|
|
|
34
35
|
import {
|
|
35
36
|
ALL_PROVIDER_IDS
|
|
36
37
|
} from "./chunk-OWPDRJ6S.js";
|
|
37
|
-
import {
|
|
38
|
-
parsePrefix
|
|
39
|
-
} from "./chunk-PHW6PWIJ.js";
|
|
40
|
-
import {
|
|
41
|
-
CUSTOMISATION_SURFACES,
|
|
42
|
-
lockedSurfacesOf,
|
|
43
|
-
recordCustomisationLock
|
|
44
|
-
} from "./chunk-N25X3QTA.js";
|
|
45
38
|
import {
|
|
46
39
|
canonicalProjectPath
|
|
47
40
|
} from "./chunk-JORONMD3.js";
|
|
@@ -51,22 +44,35 @@ import {
|
|
|
51
44
|
startNewStateFile,
|
|
52
45
|
unreadableStateFile,
|
|
53
46
|
withStateFileLock
|
|
54
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-FXUEDFTD.js";
|
|
48
|
+
import {
|
|
49
|
+
parsePrefix
|
|
50
|
+
} from "./chunk-PHW6PWIJ.js";
|
|
51
|
+
import {
|
|
52
|
+
mcpServerSpecProblem
|
|
53
|
+
} from "./chunk-W73TYWZM.js";
|
|
55
54
|
import {
|
|
56
55
|
clearStoredApiKey,
|
|
57
56
|
readStoredApiKey,
|
|
58
57
|
writeStoredApiKey
|
|
59
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MQNST5MD.js";
|
|
60
59
|
import {
|
|
61
60
|
readSwitch
|
|
62
61
|
} from "./chunk-WRPEQ3KP.js";
|
|
62
|
+
import {
|
|
63
|
+
CUSTOMISATION_SURFACES,
|
|
64
|
+
lockedSurfacesOf,
|
|
65
|
+
recordCustomisationLock
|
|
66
|
+
} from "./chunk-N25X3QTA.js";
|
|
63
67
|
import {
|
|
64
68
|
namzuHomePath
|
|
65
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-G4OZ4DH5.js";
|
|
70
|
+
import {
|
|
71
|
+
isFormatName
|
|
72
|
+
} from "./chunk-2CKBLDRK.js";
|
|
66
73
|
import {
|
|
67
|
-
isFormatName,
|
|
68
74
|
require_dist
|
|
69
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-EUBCYTOK.js";
|
|
70
76
|
import {
|
|
71
77
|
assembleHooks
|
|
72
78
|
} from "./chunk-TUPJ2UAB.js";
|
|
@@ -87,18 +93,19 @@ import {
|
|
|
87
93
|
referencedVariables,
|
|
88
94
|
resolveAutoCompactWindowSetting,
|
|
89
95
|
resolveNamzuHome,
|
|
96
|
+
rewriteStateFileBackups,
|
|
90
97
|
shellHookEnvNameProblem,
|
|
91
98
|
shellHookEnvProblems,
|
|
92
99
|
toolResultCorrespondenceGuardrail,
|
|
93
100
|
toolResultInjectionGuardrail
|
|
94
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-OSPHHCCJ.js";
|
|
95
102
|
import {
|
|
96
103
|
__name,
|
|
97
104
|
__toESM
|
|
98
105
|
} from "./chunk-76FLAFCG.js";
|
|
99
106
|
|
|
100
107
|
// src/config/load.ts
|
|
101
|
-
import { readFileSync as
|
|
108
|
+
import { readFileSync as readFileSync6 } from "node:fs";
|
|
102
109
|
import { join as join4, resolve as resolve4 } from "node:path";
|
|
103
110
|
|
|
104
111
|
// src/integrations/compaction/auto-compact-switch.ts
|
|
@@ -496,6 +503,272 @@ function decisionStatusLine(input) {
|
|
|
496
503
|
}
|
|
497
504
|
__name(decisionStatusLine, "decisionStatusLine");
|
|
498
505
|
|
|
506
|
+
// src/integrations/mcp/user-config.ts
|
|
507
|
+
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
508
|
+
import { dirname as dirname2 } from "node:path";
|
|
509
|
+
var import_yaml2 = __toESM(require_dist(), 1);
|
|
510
|
+
var LOCAL_MCP_KEY = "localMcpServers";
|
|
511
|
+
function serverPath(opts) {
|
|
512
|
+
return opts.project === void 0 ? ["mcpServers"] : [LOCAL_MCP_KEY, canonicalProjectPath(opts.project)];
|
|
513
|
+
}
|
|
514
|
+
__name(serverPath, "serverPath");
|
|
515
|
+
var MCP_NAME = /^[A-Za-z][A-Za-z0-9_-]{0,63}$/;
|
|
516
|
+
function readUserMcpServers(opts = {}) {
|
|
517
|
+
const file2 = userConfigPath(opts);
|
|
518
|
+
if (!existsSync(file2)) return [];
|
|
519
|
+
const doc = (0, import_yaml2.parseDocument)(readFileSync2(file2, "utf8"));
|
|
520
|
+
if (doc.errors.length > 0)
|
|
521
|
+
throw unreadableUserConfig(
|
|
522
|
+
file2,
|
|
523
|
+
`is not valid YAML (${doc.errors[0]?.message ?? "parse error"})`
|
|
524
|
+
);
|
|
525
|
+
if (doc.contents !== null && !(0, import_yaml2.isMap)(doc.contents))
|
|
526
|
+
throw unreadableUserConfig(file2, "is not a mapping of settings");
|
|
527
|
+
const node = doc.getIn(serverPath(opts), true);
|
|
528
|
+
if (node === void 0) return [];
|
|
529
|
+
if (!(0, import_yaml2.isMap)(node)) throw new Error(`${file2}: mcpServers is not a mapping; fix it first`);
|
|
530
|
+
return Object.entries(node.toJSON()).map(([name, spec]) => ({
|
|
531
|
+
name,
|
|
532
|
+
spec
|
|
533
|
+
}));
|
|
534
|
+
}
|
|
535
|
+
__name(readUserMcpServers, "readUserMcpServers");
|
|
536
|
+
function isUserMcpName(name) {
|
|
537
|
+
return MCP_NAME.test(name);
|
|
538
|
+
}
|
|
539
|
+
__name(isUserMcpName, "isUserMcpName");
|
|
540
|
+
function addUserMcpServer(name, spec, opts = {}) {
|
|
541
|
+
if (!isUserMcpName(name)) {
|
|
542
|
+
throw new Error(
|
|
543
|
+
"server name must start with a letter and contain only letters, digits, _ or - (up to 64 characters)"
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
return withUserConfigLock(() => {
|
|
547
|
+
if (readUserMcpServers(opts).some((entry) => entry.name === name)) {
|
|
548
|
+
throw new Error(`server "${name}" already exists in ${userConfigPath(opts)}`);
|
|
549
|
+
}
|
|
550
|
+
return setUserConfigValue([...serverPath(opts), name], spec, opts);
|
|
551
|
+
}, opts);
|
|
552
|
+
}
|
|
553
|
+
__name(addUserMcpServer, "addUserMcpServer");
|
|
554
|
+
function removeUserMcpServer(name, opts = {}) {
|
|
555
|
+
const file2 = userConfigPath(opts);
|
|
556
|
+
return withUserConfigLock(() => {
|
|
557
|
+
const path = serverPath(opts);
|
|
558
|
+
const removed = deleteUserConfigValue([...path, name], opts);
|
|
559
|
+
if (removed)
|
|
560
|
+
rewriteStateFileBackups(
|
|
561
|
+
dirname2(file2),
|
|
562
|
+
"config.yaml",
|
|
563
|
+
(text2) => withoutServer(text2, path, name)
|
|
564
|
+
);
|
|
565
|
+
return removed;
|
|
566
|
+
}, opts);
|
|
567
|
+
}
|
|
568
|
+
__name(removeUserMcpServer, "removeUserMcpServer");
|
|
569
|
+
function withoutServer(text2, path, name) {
|
|
570
|
+
const doc = (0, import_yaml2.parseDocument)(text2);
|
|
571
|
+
if (doc.errors.length > 0 || !doc.hasIn([...path, name])) return text2;
|
|
572
|
+
doc.deleteIn([...path, name]);
|
|
573
|
+
const servers = doc.getIn(path, true);
|
|
574
|
+
if ((0, import_yaml2.isMap)(servers) && servers.items.length === 0) doc.deleteIn(path);
|
|
575
|
+
return doc.toString();
|
|
576
|
+
}
|
|
577
|
+
__name(withoutServer, "withoutServer");
|
|
578
|
+
function summarizeUserMcpServer(entry) {
|
|
579
|
+
const spec = entry.spec;
|
|
580
|
+
if (typeof spec !== "object" || spec === null || Array.isArray(spec)) {
|
|
581
|
+
return { name: entry.name, transport: "invalid" };
|
|
582
|
+
}
|
|
583
|
+
const value = spec;
|
|
584
|
+
const command = typeof value.command === "string" ? value.command : void 0;
|
|
585
|
+
const url = typeof value.url === "string" ? value.url : void 0;
|
|
586
|
+
if (command && !url) {
|
|
587
|
+
return {
|
|
588
|
+
name: entry.name,
|
|
589
|
+
transport: "stdio",
|
|
590
|
+
command,
|
|
591
|
+
argumentCount: Array.isArray(value.args) ? value.args.length : 0,
|
|
592
|
+
envNames: mappingKeys(value.env),
|
|
593
|
+
inheritEnv: stringList(value.inheritEnv)
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
if (url && !command) {
|
|
597
|
+
let endpoint;
|
|
598
|
+
try {
|
|
599
|
+
const parsed2 = new URL(url);
|
|
600
|
+
endpoint = parsed2.origin;
|
|
601
|
+
} catch {
|
|
602
|
+
endpoint = "(invalid URL)";
|
|
603
|
+
}
|
|
604
|
+
return {
|
|
605
|
+
name: entry.name,
|
|
606
|
+
transport: "http",
|
|
607
|
+
endpoint,
|
|
608
|
+
headerNames: mappingKeys(value.headers)
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
return { name: entry.name, transport: "invalid" };
|
|
612
|
+
}
|
|
613
|
+
__name(summarizeUserMcpServer, "summarizeUserMcpServer");
|
|
614
|
+
function mappingKeys(value) {
|
|
615
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) ? Object.keys(value) : [];
|
|
616
|
+
}
|
|
617
|
+
__name(mappingKeys, "mappingKeys");
|
|
618
|
+
function stringList(value) {
|
|
619
|
+
return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
|
|
620
|
+
}
|
|
621
|
+
__name(stringList, "stringList");
|
|
622
|
+
var MCP_HEADERS_MAX = 20;
|
|
623
|
+
var MCP_HEADER_NAME = /^[A-Za-z0-9-]+$/;
|
|
624
|
+
var MCP_HEADER_REFERENCE = /^(?:Bearer )?\$\{[A-Za-z_][A-Za-z0-9_]*\}$/;
|
|
625
|
+
var MCP_HEADER_LITERAL_MESSAGE = "A header value is written as an environment reference such as ${EXAMPLE_TOKEN}, so no secret is stored here.";
|
|
626
|
+
function checkUserMcpHeaders(headers) {
|
|
627
|
+
const entries = Object.entries(headers);
|
|
628
|
+
if (entries.length > MCP_HEADERS_MAX) throw new Error(`Use at most ${MCP_HEADERS_MAX} headers.`);
|
|
629
|
+
const seen = /* @__PURE__ */ new Set();
|
|
630
|
+
const out = {};
|
|
631
|
+
for (const [rawName, rawValue] of entries) {
|
|
632
|
+
const name = rawName.trim();
|
|
633
|
+
if (name.length > 100 || !MCP_HEADER_NAME.test(name))
|
|
634
|
+
throw new Error(`"${rawName.slice(0, 40)}" cannot be a header name.`);
|
|
635
|
+
if (seen.has(name.toLowerCase())) throw new Error(`The header ${name} is listed twice.`);
|
|
636
|
+
seen.add(name.toLowerCase());
|
|
637
|
+
if (typeof rawValue !== "string" || !MCP_HEADER_REFERENCE.test(rawValue.trim()))
|
|
638
|
+
throw new Error(MCP_HEADER_LITERAL_MESSAGE);
|
|
639
|
+
out[name] = rawValue.trim();
|
|
640
|
+
}
|
|
641
|
+
return out;
|
|
642
|
+
}
|
|
643
|
+
__name(checkUserMcpHeaders, "checkUserMcpHeaders");
|
|
644
|
+
var MCP_NAME_RULE = "A server name starts with a letter and uses only letters, digits, _ or -, up to 64 characters.";
|
|
645
|
+
var isLocalHost = /* @__PURE__ */ __name((hostname) => ["localhost", "127.0.0.1", "[::1]"].includes(hostname), "isLocalHost");
|
|
646
|
+
function mcpAddressProblem(url) {
|
|
647
|
+
let parsed2;
|
|
648
|
+
try {
|
|
649
|
+
parsed2 = new URL(url);
|
|
650
|
+
} catch {
|
|
651
|
+
return "Enter a full web address that starts with http or https.";
|
|
652
|
+
}
|
|
653
|
+
if (parsed2.protocol !== "http:" && parsed2.protocol !== "https:")
|
|
654
|
+
return "The address must start with http or https.";
|
|
655
|
+
if (parsed2.username || parsed2.password)
|
|
656
|
+
return "Do not put a user name or password in the address.";
|
|
657
|
+
const remoteInsecure = parsed2.protocol === "http:" && !isLocalHost(parsed2.hostname);
|
|
658
|
+
if (remoteInsecure && parsed2.search)
|
|
659
|
+
return "An address with a query needs https, or must point at this computer.";
|
|
660
|
+
return void 0;
|
|
661
|
+
}
|
|
662
|
+
__name(mcpAddressProblem, "mcpAddressProblem");
|
|
663
|
+
function checkUserMcpServerInput(input) {
|
|
664
|
+
const command = input.command?.trim() ?? "";
|
|
665
|
+
const url = input.url?.trim() ?? "";
|
|
666
|
+
if (command !== "" && url !== "") throw new Error("Give a command or an address, not both.");
|
|
667
|
+
if (command === "" && url === "") throw new Error("Give a command or an address.");
|
|
668
|
+
if (url !== "") {
|
|
669
|
+
if (input.args !== void 0 && input.args.length > 0)
|
|
670
|
+
throw new Error("Arguments go with a command, not an address.");
|
|
671
|
+
if (url.length > 2e3) throw new Error("That address is too long.");
|
|
672
|
+
const problem = mcpAddressProblem(url);
|
|
673
|
+
if (problem) throw new Error(problem);
|
|
674
|
+
const headers = input.headers !== void 0 && Object.keys(input.headers).length > 0 ? checkUserMcpHeaders(input.headers) : void 0;
|
|
675
|
+
if (headers && new URL(url).protocol === "http:" && !isLocalHost(new URL(url).hostname))
|
|
676
|
+
throw new Error("Headers need an https address, or one that points at this computer.");
|
|
677
|
+
return { url, ...headers ? { headers } : input.headers !== void 0 ? { headers: {} } : {} };
|
|
678
|
+
}
|
|
679
|
+
if (input.headers !== void 0 && Object.keys(input.headers).length > 0)
|
|
680
|
+
throw new Error("Headers go with an address, not a command.");
|
|
681
|
+
if (command.length > 2e3) throw new Error("That command is too long.");
|
|
682
|
+
const args = (input.args ?? []).map((arg) => arg.trim()).filter((arg) => arg !== "");
|
|
683
|
+
if (args.some((arg) => arg.length > 2e3)) throw new Error("An argument is too long.");
|
|
684
|
+
return { command, ...args.length > 0 ? { args } : {} };
|
|
685
|
+
}
|
|
686
|
+
__name(checkUserMcpServerInput, "checkUserMcpServerInput");
|
|
687
|
+
function listEntryForUserMcpServer(form) {
|
|
688
|
+
if (form.kind === "command")
|
|
689
|
+
return {
|
|
690
|
+
name: form.name,
|
|
691
|
+
kind: "command",
|
|
692
|
+
...form.command ? { command: form.command } : {},
|
|
693
|
+
...form.args && form.args.length > 0 ? { argCount: form.args.length } : {}
|
|
694
|
+
};
|
|
695
|
+
if (form.kind === "address") {
|
|
696
|
+
let origin;
|
|
697
|
+
try {
|
|
698
|
+
origin = form.url ? new URL(form.url).origin : void 0;
|
|
699
|
+
} catch {
|
|
700
|
+
}
|
|
701
|
+
return { name: form.name, kind: "address", ...origin ? { origin } : {} };
|
|
702
|
+
}
|
|
703
|
+
return { name: form.name, kind: "other" };
|
|
704
|
+
}
|
|
705
|
+
__name(listEntryForUserMcpServer, "listEntryForUserMcpServer");
|
|
706
|
+
function readUserMcpServerForms(opts = {}) {
|
|
707
|
+
return readUserMcpServers(opts).map((entry) => {
|
|
708
|
+
const spec = entry.spec;
|
|
709
|
+
if (typeof spec !== "object" || spec === null || Array.isArray(spec))
|
|
710
|
+
return { name: entry.name, kind: "other" };
|
|
711
|
+
const value = spec;
|
|
712
|
+
const command = typeof value.command === "string" ? value.command : void 0;
|
|
713
|
+
const url = typeof value.url === "string" ? value.url : void 0;
|
|
714
|
+
const args = Array.isArray(value.args) ? value.args : [];
|
|
715
|
+
if (command && !url && args.every((arg) => typeof arg === "string"))
|
|
716
|
+
return {
|
|
717
|
+
name: entry.name,
|
|
718
|
+
kind: "command",
|
|
719
|
+
command,
|
|
720
|
+
...args.length > 0 ? { args } : {}
|
|
721
|
+
};
|
|
722
|
+
if (url && !command) return { name: entry.name, kind: "address", url };
|
|
723
|
+
return { name: entry.name, kind: "other" };
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
__name(readUserMcpServerForms, "readUserMcpServerForms");
|
|
727
|
+
function checkUserMcpServerSave(mode, name, input, opts = {}) {
|
|
728
|
+
if (!isUserMcpName(name)) throw new Error(MCP_NAME_RULE);
|
|
729
|
+
const checked = checkUserMcpServerInput(input);
|
|
730
|
+
const existing = readUserMcpServers(opts).find((entry) => entry.name === name);
|
|
731
|
+
if (mode === "add" && existing) throw new Error(`There is already a server called ${name}.`);
|
|
732
|
+
if (mode === "edit" && !existing) throw new Error(`There is no server called ${name} here.`);
|
|
733
|
+
if (mode === "edit" && (typeof existing?.spec !== "object" || existing.spec === null || Array.isArray(existing.spec)))
|
|
734
|
+
throw new Error("Edit this server in the config file.");
|
|
735
|
+
return checked;
|
|
736
|
+
}
|
|
737
|
+
__name(checkUserMcpServerSave, "checkUserMcpServerSave");
|
|
738
|
+
function saveUserMcpServer(mode, name, input, opts = {}) {
|
|
739
|
+
withUserConfigLock(() => saveCheckedServer(mode, name, input, opts), opts);
|
|
740
|
+
}
|
|
741
|
+
__name(saveUserMcpServer, "saveUserMcpServer");
|
|
742
|
+
function saveCheckedServer(mode, name, input, opts) {
|
|
743
|
+
const checked = checkUserMcpServerSave(mode, name, input, opts);
|
|
744
|
+
if (mode === "add") {
|
|
745
|
+
const { headers, ...rest } = checked;
|
|
746
|
+
const spec = headers && Object.keys(headers).length > 0 ? checked : rest;
|
|
747
|
+
addUserMcpServer(name, spec, opts);
|
|
748
|
+
return;
|
|
749
|
+
}
|
|
750
|
+
editUserConfigDocument((doc) => {
|
|
751
|
+
const at = ["mcpServers", name];
|
|
752
|
+
if (checked.url !== void 0) {
|
|
753
|
+
doc.setIn([...at, "url"], checked.url);
|
|
754
|
+
if (checked.headers !== void 0) {
|
|
755
|
+
if (Object.keys(checked.headers).length > 0)
|
|
756
|
+
doc.setIn([...at, "headers"], { ...checked.headers });
|
|
757
|
+
else doc.deleteIn([...at, "headers"]);
|
|
758
|
+
}
|
|
759
|
+
doc.deleteIn([...at, "command"]);
|
|
760
|
+
doc.deleteIn([...at, "args"]);
|
|
761
|
+
return;
|
|
762
|
+
}
|
|
763
|
+
doc.setIn([...at, "command"], checked.command);
|
|
764
|
+
if (checked.args && checked.args.length > 0) doc.setIn([...at, "args"], [...checked.args]);
|
|
765
|
+
else doc.deleteIn([...at, "args"]);
|
|
766
|
+
doc.deleteIn([...at, "url"]);
|
|
767
|
+
doc.deleteIn([...at, "headers"]);
|
|
768
|
+
}, opts);
|
|
769
|
+
}
|
|
770
|
+
__name(saveCheckedServer, "saveCheckedServer");
|
|
771
|
+
|
|
499
772
|
// src/integrations/plugins/fetch/policy.ts
|
|
500
773
|
import { realpathSync } from "node:fs";
|
|
501
774
|
import { isAbsolute, resolve } from "node:path";
|
|
@@ -1085,11 +1358,11 @@ function sourceRefusal(source, policy) {
|
|
|
1085
1358
|
__name(sourceRefusal, "sourceRefusal");
|
|
1086
1359
|
|
|
1087
1360
|
// src/config/load.ts
|
|
1088
|
-
var
|
|
1361
|
+
var import_yaml3 = __toESM(require_dist(), 1);
|
|
1089
1362
|
|
|
1090
1363
|
// src/integrations/mcp/project-approval.ts
|
|
1091
1364
|
import { createHash } from "node:crypto";
|
|
1092
|
-
import { readFileSync as
|
|
1365
|
+
import { readFileSync as readFileSync3 } from "node:fs";
|
|
1093
1366
|
import { join as join3, resolve as resolve2 } from "node:path";
|
|
1094
1367
|
var FILE_VERSION = 1;
|
|
1095
1368
|
var NEW_APPROVALS_LIST_REMEDY = "To start a new list, run namzu mcp approve --new-list; the old one stays where it is kept. Or fix the file and try again.";
|
|
@@ -1122,7 +1395,7 @@ __name(fingerprintMcpServer, "fingerprintMcpServer");
|
|
|
1122
1395
|
function readApprovals(namzuHome) {
|
|
1123
1396
|
let text2;
|
|
1124
1397
|
try {
|
|
1125
|
-
text2 =
|
|
1398
|
+
text2 = readFileSync3(mcpApprovalsPath(namzuHome), "utf8");
|
|
1126
1399
|
} catch (error) {
|
|
1127
1400
|
if (error.code === "ENOENT") return { state: "missing" };
|
|
1128
1401
|
return { state: "unreadable", reason: readFailureReason(error) };
|
|
@@ -1145,17 +1418,18 @@ function readApprovals(namzuHome) {
|
|
|
1145
1418
|
return {
|
|
1146
1419
|
state: "ok",
|
|
1147
1420
|
folders: answersOf(parsed2.folders),
|
|
1421
|
+
declined: answersOf(parsed2.declined),
|
|
1148
1422
|
plugins: answersOf(parsed2.plugins),
|
|
1149
1423
|
raw: parsed2
|
|
1150
1424
|
};
|
|
1151
1425
|
}
|
|
1152
1426
|
__name(readApprovals, "readApprovals");
|
|
1153
1427
|
function answersOf(section) {
|
|
1154
|
-
const out =
|
|
1428
|
+
const out = /* @__PURE__ */ Object.create(null);
|
|
1155
1429
|
if (!isRecord(section)) return out;
|
|
1156
1430
|
for (const [key, servers] of Object.entries(section)) {
|
|
1157
1431
|
if (!isRecord(servers)) continue;
|
|
1158
|
-
const kept =
|
|
1432
|
+
const kept = /* @__PURE__ */ Object.create(null);
|
|
1159
1433
|
for (const [name, print] of Object.entries(servers)) {
|
|
1160
1434
|
if (typeof print === "string") kept[name] = print;
|
|
1161
1435
|
}
|
|
@@ -1176,7 +1450,7 @@ __name(mcpApprovalsProblem, "mcpApprovalsProblem");
|
|
|
1176
1450
|
function splitProjectMcpServers(namzuHome, cwd, servers) {
|
|
1177
1451
|
const read = readApprovals(namzuHome);
|
|
1178
1452
|
const known = (read.state === "ok" ? read.folders[folderKey(cwd)] : void 0) ?? {};
|
|
1179
|
-
const approved =
|
|
1453
|
+
const approved = /* @__PURE__ */ Object.create(null);
|
|
1180
1454
|
const pending = [];
|
|
1181
1455
|
for (const [name, entry] of Object.entries(servers ?? {})) {
|
|
1182
1456
|
if (known[name] === fingerprintMcpServer(entry)) approved[name] = entry;
|
|
@@ -1192,7 +1466,7 @@ function pendingServersMessage(pending) {
|
|
|
1192
1466
|
__name(pendingServersMessage, "pendingServersMessage");
|
|
1193
1467
|
function approveProjectMcpServers(namzuHome, cwd, servers, names) {
|
|
1194
1468
|
const chosen = (names ?? Object.keys(servers)).filter((name) => Object.hasOwn(servers, name));
|
|
1195
|
-
const prints =
|
|
1469
|
+
const prints = /* @__PURE__ */ Object.create(null);
|
|
1196
1470
|
for (const name of chosen) {
|
|
1197
1471
|
prints[name] = fingerprintMcpServer(servers[name]);
|
|
1198
1472
|
}
|
|
@@ -1200,11 +1474,20 @@ function approveProjectMcpServers(namzuHome, cwd, servers, names) {
|
|
|
1200
1474
|
}
|
|
1201
1475
|
__name(approveProjectMcpServers, "approveProjectMcpServers");
|
|
1202
1476
|
function approveShownMcpServers(namzuHome, cwd, shown) {
|
|
1203
|
-
const prints =
|
|
1477
|
+
const prints = /* @__PURE__ */ Object.create(null);
|
|
1204
1478
|
for (const { name, fingerprint } of shown) prints[name] = fingerprint;
|
|
1205
1479
|
return recordApprovals(namzuHome, cwd, prints);
|
|
1206
1480
|
}
|
|
1207
1481
|
__name(approveShownMcpServers, "approveShownMcpServers");
|
|
1482
|
+
function declineShownMcpServer(home, cwd, name, fingerprint) {
|
|
1483
|
+
recordIn(home, "declined", folderKey(cwd), { [name]: fingerprint });
|
|
1484
|
+
}
|
|
1485
|
+
__name(declineShownMcpServer, "declineShownMcpServer");
|
|
1486
|
+
function isProjectMcpServerDeclined(home, cwd, name, fingerprint) {
|
|
1487
|
+
const read = readApprovals(home);
|
|
1488
|
+
return read.state === "ok" && read.declined[folderKey(cwd)]?.[name] === fingerprint;
|
|
1489
|
+
}
|
|
1490
|
+
__name(isProjectMcpServerDeclined, "isProjectMcpServerDeclined");
|
|
1208
1491
|
function recordApprovals(namzuHome, cwd, prints) {
|
|
1209
1492
|
return recordIn(namzuHome, "folders", folderKey(cwd), prints);
|
|
1210
1493
|
}
|
|
@@ -1221,8 +1504,12 @@ function recordIn(namzuHome, section, key, prints) {
|
|
|
1221
1504
|
const rawSection = isRecord(raw[section]) ? raw[section] : {};
|
|
1222
1505
|
const current = rawSection[key];
|
|
1223
1506
|
const entry = isRecord(current) ? { ...current } : {};
|
|
1224
|
-
|
|
1225
|
-
const next = {
|
|
1507
|
+
const updates = Object.fromEntries(chosen.map((name) => [name, prints[name]]));
|
|
1508
|
+
const next = {
|
|
1509
|
+
...raw,
|
|
1510
|
+
version: FILE_VERSION,
|
|
1511
|
+
[section]: { ...rawSection, [key]: { ...entry, ...updates } }
|
|
1512
|
+
};
|
|
1226
1513
|
saveStateFile(path, `${JSON.stringify(next, null, 2)}
|
|
1227
1514
|
`, { home: namzuHome });
|
|
1228
1515
|
});
|
|
@@ -1259,6 +1546,122 @@ function startNewMcpApprovals(namzuHome) {
|
|
|
1259
1546
|
}
|
|
1260
1547
|
__name(startNewMcpApprovals, "startNewMcpApprovals");
|
|
1261
1548
|
|
|
1549
|
+
// src/integrations/mcp/shared-file.ts
|
|
1550
|
+
import { readFileSync as readFileSync4 } from "node:fs";
|
|
1551
|
+
var PROJECT_MCP_FILE = ".mcp.json";
|
|
1552
|
+
var McpServerFileError = class extends Error {
|
|
1553
|
+
static {
|
|
1554
|
+
__name(this, "McpServerFileError");
|
|
1555
|
+
}
|
|
1556
|
+
constructor(message) {
|
|
1557
|
+
super(message);
|
|
1558
|
+
this.name = "McpServerFileError";
|
|
1559
|
+
}
|
|
1560
|
+
};
|
|
1561
|
+
var SERVER_KEYS = {
|
|
1562
|
+
command: true,
|
|
1563
|
+
args: true,
|
|
1564
|
+
env: true,
|
|
1565
|
+
inheritEnv: true,
|
|
1566
|
+
cwd: true,
|
|
1567
|
+
url: true,
|
|
1568
|
+
transport: true,
|
|
1569
|
+
headers: true,
|
|
1570
|
+
connectTimeoutMs: true,
|
|
1571
|
+
requestTimeoutMs: true,
|
|
1572
|
+
resetTimeoutOnProgress: true,
|
|
1573
|
+
maxTotalTimeoutMs: true,
|
|
1574
|
+
eraProbeTimeoutMs: true,
|
|
1575
|
+
allow: true,
|
|
1576
|
+
deny: true,
|
|
1577
|
+
maxRetries: true,
|
|
1578
|
+
requireApproval: true,
|
|
1579
|
+
readOnlyHintTrusted: true,
|
|
1580
|
+
instructions: true,
|
|
1581
|
+
alwaysLoad: true,
|
|
1582
|
+
skills: true
|
|
1583
|
+
};
|
|
1584
|
+
function strictServerProblem(entry) {
|
|
1585
|
+
if (entry !== null && typeof entry === "object" && !Array.isArray(entry)) {
|
|
1586
|
+
const key = Object.keys(entry).find((key2) => !Object.hasOwn(SERVER_KEYS, key2));
|
|
1587
|
+
if (key !== void 0) return `${JSON.stringify(key)} is an unknown server setting`;
|
|
1588
|
+
const transport = entry.transport;
|
|
1589
|
+
if (transport !== void 0 && transport !== "http" && transport !== "sse")
|
|
1590
|
+
return 'transport must be "http" or "sse"';
|
|
1591
|
+
}
|
|
1592
|
+
return mcpServerSpecProblem(entry);
|
|
1593
|
+
}
|
|
1594
|
+
__name(strictServerProblem, "strictServerProblem");
|
|
1595
|
+
function parseMcpServerFile(raw, label, strict = false) {
|
|
1596
|
+
let parsed2;
|
|
1597
|
+
try {
|
|
1598
|
+
parsed2 = JSON.parse(raw);
|
|
1599
|
+
} catch {
|
|
1600
|
+
throw new McpServerFileError(`${label} isn't valid JSON. Fix it, then start Namzu again.`);
|
|
1601
|
+
}
|
|
1602
|
+
if (parsed2 === null || typeof parsed2 !== "object" || Array.isArray(parsed2)) {
|
|
1603
|
+
throw new McpServerFileError(`${label} must be a JSON object with an "mcpServers" table.`);
|
|
1604
|
+
}
|
|
1605
|
+
if (strict) {
|
|
1606
|
+
const key = Object.keys(parsed2).find((key2) => key2 !== "mcpServers");
|
|
1607
|
+
if (key !== void 0)
|
|
1608
|
+
throw new McpServerFileError(
|
|
1609
|
+
`${label}: ${JSON.stringify(key)} is an unknown setting. Remove it or use mcpServers.`
|
|
1610
|
+
);
|
|
1611
|
+
}
|
|
1612
|
+
const table = parsed2.mcpServers;
|
|
1613
|
+
if (table === void 0) return {};
|
|
1614
|
+
if (table === null || typeof table !== "object" || Array.isArray(table)) {
|
|
1615
|
+
throw new McpServerFileError(`${label}: "mcpServers" must be a table of server names.`);
|
|
1616
|
+
}
|
|
1617
|
+
const servers = {};
|
|
1618
|
+
for (const [name, entry] of Object.entries(table)) {
|
|
1619
|
+
if (entry === null || typeof entry !== "object" || Array.isArray(entry)) {
|
|
1620
|
+
throw new McpServerFileError(`${label}: the server "${name}" must be an object.`);
|
|
1621
|
+
}
|
|
1622
|
+
const { type, ...rest } = entry;
|
|
1623
|
+
if (strict) {
|
|
1624
|
+
const problem = type !== void 0 && type !== "stdio" && type !== "http" ? 'type must be "stdio" or "http"' : strictServerProblem(rest);
|
|
1625
|
+
if (problem)
|
|
1626
|
+
throw new McpServerFileError(
|
|
1627
|
+
`${label}: mcpServers[${JSON.stringify(name)}] ${problem}. Fix or remove the server setting.`
|
|
1628
|
+
);
|
|
1629
|
+
}
|
|
1630
|
+
servers[name] = rest;
|
|
1631
|
+
}
|
|
1632
|
+
return servers;
|
|
1633
|
+
}
|
|
1634
|
+
__name(parseMcpServerFile, "parseMcpServerFile");
|
|
1635
|
+
function readMcpServerFile(path, label, strict = false) {
|
|
1636
|
+
let raw;
|
|
1637
|
+
try {
|
|
1638
|
+
raw = readFileSync4(path, "utf8");
|
|
1639
|
+
} catch (error) {
|
|
1640
|
+
if (error.code === "ENOENT") return void 0;
|
|
1641
|
+
throw new McpServerFileError(`${label} could not be read.`);
|
|
1642
|
+
}
|
|
1643
|
+
return parseMcpServerFile(raw, label, strict);
|
|
1644
|
+
}
|
|
1645
|
+
__name(readMcpServerFile, "readMcpServerFile");
|
|
1646
|
+
function mergeLaunchMcpServers(configured, files, resolvePath, strict = false) {
|
|
1647
|
+
if (files.length === 0) return configured;
|
|
1648
|
+
let merged = { ...configured };
|
|
1649
|
+
for (const file2 of files) {
|
|
1650
|
+
if (file2.trimStart().startsWith("{")) {
|
|
1651
|
+
merged = { ...merged, ...parseMcpServerFile(file2, "--mcp-config (inline JSON)", strict) };
|
|
1652
|
+
continue;
|
|
1653
|
+
}
|
|
1654
|
+
const absolute = resolvePath(file2);
|
|
1655
|
+
const found = readMcpServerFile(absolute, `--mcp-config ${strict ? absolute : file2}`, strict);
|
|
1656
|
+
if (found === void 0) {
|
|
1657
|
+
throw new McpServerFileError(`--mcp-config ${file2}: no such file.`);
|
|
1658
|
+
}
|
|
1659
|
+
merged = { ...merged, ...found };
|
|
1660
|
+
}
|
|
1661
|
+
return merged;
|
|
1662
|
+
}
|
|
1663
|
+
__name(mergeLaunchMcpServers, "mergeLaunchMcpServers");
|
|
1664
|
+
|
|
1262
1665
|
// src/integrations/workflows/size.ts
|
|
1263
1666
|
var WORKFLOW_SIZE_GUIDELINES = ["unrestricted", "small", "medium", "large"];
|
|
1264
1667
|
var DEFAULT_WORKFLOW_SIZE_GUIDELINE = "medium";
|
|
@@ -2068,6 +2471,22 @@ function unknownEventMessage() {
|
|
|
2068
2471
|
}
|
|
2069
2472
|
__name(unknownEventMessage, "unknownEventMessage");
|
|
2070
2473
|
|
|
2474
|
+
// src/integrations/learning/generator-settings.ts
|
|
2475
|
+
var DEFAULT_CYCLE_TOKENS = 12e4;
|
|
2476
|
+
var DEFAULT_DAILY_TOKENS = 3e5;
|
|
2477
|
+
var MIN_OBSERVATIONS = 5;
|
|
2478
|
+
var COOLDOWN_MS = 6 * 60 * 60 * 1e3;
|
|
2479
|
+
function resolveGeneratorSettings(config) {
|
|
2480
|
+
if (typeof config === "boolean")
|
|
2481
|
+
return { enabled: config, cycleTokens: DEFAULT_CYCLE_TOKENS, dailyTokens: DEFAULT_DAILY_TOKENS };
|
|
2482
|
+
return {
|
|
2483
|
+
enabled: config?.enabled !== false,
|
|
2484
|
+
cycleTokens: config?.cycleTokens ?? DEFAULT_CYCLE_TOKENS,
|
|
2485
|
+
dailyTokens: config?.dailyTokens ?? DEFAULT_DAILY_TOKENS
|
|
2486
|
+
};
|
|
2487
|
+
}
|
|
2488
|
+
__name(resolveGeneratorSettings, "resolveGeneratorSettings");
|
|
2489
|
+
|
|
2071
2490
|
// src/config/learning-generator.ts
|
|
2072
2491
|
var MAX_LEARNING_TOKENS = 1e7;
|
|
2073
2492
|
var MIN_LEARNING_TOKENS = 1e3;
|
|
@@ -2084,8 +2503,8 @@ function mergeLearningGenerator(previous, next, fromProject) {
|
|
|
2084
2503
|
__name(mergeLearningGenerator, "mergeLearningGenerator");
|
|
2085
2504
|
|
|
2086
2505
|
// src/config/project-files.ts
|
|
2087
|
-
import { readFileSync as
|
|
2088
|
-
import { dirname as
|
|
2506
|
+
import { readFileSync as readFileSync5, statSync as statSync2 } from "node:fs";
|
|
2507
|
+
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
2089
2508
|
import { isDeepStrictEqual } from "node:util";
|
|
2090
2509
|
var PROJECT_CONFIG_FILE = "namzu.config.json";
|
|
2091
2510
|
var PROJECT_SETTINGS_FILE = ".namzu/settings.json";
|
|
@@ -2121,7 +2540,7 @@ function allFolderConfigFiles(cwd) {
|
|
|
2121
2540
|
__name(allFolderConfigFiles, "allFolderConfigFiles");
|
|
2122
2541
|
function readText(path) {
|
|
2123
2542
|
try {
|
|
2124
|
-
return
|
|
2543
|
+
return readFileSync5(path, "utf8");
|
|
2125
2544
|
} catch {
|
|
2126
2545
|
return void 0;
|
|
2127
2546
|
}
|
|
@@ -2149,8 +2568,8 @@ function sameSettingsFiles(a, b) {
|
|
|
2149
2568
|
}
|
|
2150
2569
|
__name(sameSettingsFiles, "sameSettingsFiles");
|
|
2151
2570
|
function folderFileRoot(path) {
|
|
2152
|
-
const parent =
|
|
2153
|
-
return /(?:^|[\\/])\.namzu$/.test(parent) && /(?:^|[\\/])settings(?:\.local)?\.json$/.test(path) ?
|
|
2571
|
+
const parent = dirname3(resolve3(path));
|
|
2572
|
+
return /(?:^|[\\/])\.namzu$/.test(parent) && /(?:^|[\\/])settings(?:\.local)?\.json$/.test(path) ? dirname3(parent) : parent;
|
|
2154
2573
|
}
|
|
2155
2574
|
__name(folderFileRoot, "folderFileRoot");
|
|
2156
2575
|
function isFolderConfigPath(path) {
|
|
@@ -2318,7 +2737,7 @@ function symlinkDirectoryProblem(value) {
|
|
|
2318
2737
|
__name(symlinkDirectoryProblem, "symlinkDirectoryProblem");
|
|
2319
2738
|
|
|
2320
2739
|
// src/config/load.ts
|
|
2321
|
-
function launchSettingsLayer(label, raw) {
|
|
2740
|
+
function launchSettingsLayer(label, raw, strict = false) {
|
|
2322
2741
|
if (raw === null || typeof raw !== "object" || Array.isArray(raw))
|
|
2323
2742
|
throw new ConfigLoadError(
|
|
2324
2743
|
label,
|
|
@@ -2332,7 +2751,10 @@ function launchSettingsLayer(label, raw) {
|
|
|
2332
2751
|
`${label} has ${unknown.length === 1 ? "a setting" : "settings"} Namzu does not know: ${unknown.join(", ")}.`,
|
|
2333
2752
|
{ complete: true }
|
|
2334
2753
|
);
|
|
2335
|
-
return {
|
|
2754
|
+
return {
|
|
2755
|
+
label,
|
|
2756
|
+
config: sanitize(raw, { kind: "file", path: label, ...strict ? { strict } : {} })
|
|
2757
|
+
};
|
|
2336
2758
|
}
|
|
2337
2759
|
__name(launchSettingsLayer, "launchSettingsLayer");
|
|
2338
2760
|
function refuseLaunchAdditions(layer, refuse) {
|
|
@@ -2372,24 +2794,42 @@ function resolveConfigWithProvenance(opts, mode) {
|
|
|
2372
2794
|
const localFiles = mode.includeProject ? localConfigFiles(cwd) : allLocalConfigFiles(cwd);
|
|
2373
2795
|
const sharedMcpPath = resolve4(cwd, PROJECT_MCP_FILE);
|
|
2374
2796
|
const managedPath = opts.managedPath ?? MANAGED_CONFIG_PATH;
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2797
|
+
let localServers;
|
|
2798
|
+
const policy = configFilePolicy.getStore();
|
|
2799
|
+
const strict = (opts.strictConfig ?? policy?.strictConfig) === true;
|
|
2800
|
+
const userCfg = opts.ignoreUserConfig ?? policy?.ignoreUserConfig ? {} : readYamlIfExists(
|
|
2801
|
+
userPath,
|
|
2802
|
+
(parsed2) => {
|
|
2803
|
+
if (parsed2 === null || typeof parsed2 !== "object" || Array.isArray(parsed2))
|
|
2804
|
+
return parsed2;
|
|
2805
|
+
const { [LOCAL_MCP_KEY]: local, ...mapping } = parsed2;
|
|
2806
|
+
if (mode.includeProject && isConfigMapping(local)) {
|
|
2807
|
+
let folder = resolve4(cwd);
|
|
2808
|
+
try {
|
|
2809
|
+
folder = canonicalProjectPath(folder);
|
|
2810
|
+
} catch {
|
|
2811
|
+
}
|
|
2812
|
+
const servers = local[folder];
|
|
2813
|
+
if (isConfigMapping(servers)) localServers = servers;
|
|
2814
|
+
}
|
|
2815
|
+
for (const key of MANAGED_ONLY_PLUGIN_KEYS)
|
|
2816
|
+
dropKey(mapping, key.split("."), strict ? userPath : void 0);
|
|
2817
|
+
if (mapping.decision !== true) return mapping;
|
|
2818
|
+
const { decision: _shorthand, ...rest } = mapping;
|
|
2819
|
+
const resolved = resolveDecisionShorthand(true, {
|
|
2820
|
+
...opts.home ? { home: opts.home } : {},
|
|
2821
|
+
env
|
|
2822
|
+
});
|
|
2823
|
+
return resolved === void 0 ? rest : { ...rest, decision: resolved };
|
|
2824
|
+
},
|
|
2825
|
+
strict
|
|
2826
|
+
);
|
|
2387
2827
|
const projectCfgs = projectFiles.map((file2) => ({
|
|
2388
2828
|
file: file2,
|
|
2389
|
-
config: mode.includeProject ? readJsonIfExists(file2.path, folderFileLabel(file2), PROJECT_DROPPED_KEYS) : {}
|
|
2829
|
+
config: mode.includeProject ? readJsonIfExists(file2.path, folderFileLabel(file2), PROJECT_DROPPED_KEYS, strict) : {}
|
|
2390
2830
|
}));
|
|
2391
2831
|
const sharedServers = mode.includeProject ? approvedSharedServers(
|
|
2392
|
-
readSharedMcpServers(sharedMcpPath),
|
|
2832
|
+
readSharedMcpServers(sharedMcpPath, strict),
|
|
2393
2833
|
resolveNamzuHome({ ...opts.home ? { home: opts.home } : {}, env }),
|
|
2394
2834
|
cwd
|
|
2395
2835
|
) : void 0;
|
|
@@ -2402,9 +2842,9 @@ function resolveConfigWithProvenance(opts, mode) {
|
|
|
2402
2842
|
}
|
|
2403
2843
|
const localCfgs = localFiles.map((file2) => ({
|
|
2404
2844
|
file: file2,
|
|
2405
|
-
config: mode.includeProject ? readJsonIfExists(file2.path, folderFileLabel(file2), LOCAL_DROPPED_KEYS) : {}
|
|
2845
|
+
config: mode.includeProject ? readJsonIfExists(file2.path, folderFileLabel(file2), LOCAL_DROPPED_KEYS, strict) : {}
|
|
2406
2846
|
}));
|
|
2407
|
-
const managedCfg = readJsonIfExists(managedPath, shortHomePath(managedPath));
|
|
2847
|
+
const managedCfg = readJsonIfExists(managedPath, shortHomePath(managedPath), [], strict);
|
|
2408
2848
|
const { config: envCfg, variables: envVariables } = readEnv(env);
|
|
2409
2849
|
const profileName = opts.profile ?? env.NAMZU_PROFILE;
|
|
2410
2850
|
const folderCfgs = [...projectCfgs, ...localCfgs];
|
|
@@ -2418,7 +2858,7 @@ function resolveConfigWithProvenance(opts, mode) {
|
|
|
2418
2858
|
mode.deferUnknownProfile,
|
|
2419
2859
|
new Set(folderCfgs.map(({ file: file2 }) => file2.path))
|
|
2420
2860
|
);
|
|
2421
|
-
const
|
|
2861
|
+
const folderLayers = [
|
|
2422
2862
|
constantLayer(DEFAULT_CONFIG, { kind: "default" }),
|
|
2423
2863
|
constantLayer(userCfg, { kind: "user-file", path: userPath }),
|
|
2424
2864
|
...sharedServers && !projectDeclaresServers ? [
|
|
@@ -2432,7 +2872,17 @@ function resolveConfigWithProvenance(opts, mode) {
|
|
|
2432
2872
|
kind: file2.layer === "project" ? "project-file" : "local-file",
|
|
2433
2873
|
path: file2.path
|
|
2434
2874
|
})
|
|
2435
|
-
)
|
|
2875
|
+
)
|
|
2876
|
+
];
|
|
2877
|
+
const inheritedServers = [...folderLayers].reverse().find((layer) => layer.config.mcpServers !== void 0);
|
|
2878
|
+
const layers = [
|
|
2879
|
+
...folderLayers,
|
|
2880
|
+
...localServers && Object.keys(localServers).length > 0 ? [
|
|
2881
|
+
constantLayer(
|
|
2882
|
+
{ mcpServers: { ...inheritedServers?.config.mcpServers, ...localServers } },
|
|
2883
|
+
{ kind: "user-file", path: userPath }
|
|
2884
|
+
)
|
|
2885
|
+
] : [],
|
|
2436
2886
|
// After both files and before the environment. A profile is a
|
|
2437
2887
|
// deliberate choice about a set of settings, so it beats the ambient
|
|
2438
2888
|
// values in the file it came from; a variable is a statement about this
|
|
@@ -2465,7 +2915,7 @@ function resolveConfigWithProvenance(opts, mode) {
|
|
|
2465
2915
|
recordCustomisationLock(managedCfg.plugins?.lockCustomization);
|
|
2466
2916
|
const effective = locked.includes("servers") ? layers.map((layer) => withoutOwnServers(layer, managedPath)) : layers;
|
|
2467
2917
|
const merged = withAssembledHooks(
|
|
2468
|
-
mergeConfigs(...effective),
|
|
2918
|
+
mergeConfigs(strict, ...effective),
|
|
2469
2919
|
layers,
|
|
2470
2920
|
managedCfg,
|
|
2471
2921
|
managedPath,
|
|
@@ -2507,19 +2957,36 @@ function readPermissionLayers(opts = {}) {
|
|
|
2507
2957
|
"config.yaml"
|
|
2508
2958
|
);
|
|
2509
2959
|
const managedPath = opts.managedPath ?? MANAGED_CONFIG_PATH;
|
|
2960
|
+
const { ignoreUserConfig, strictConfig } = { ...configFilePolicy.getStore(), ...opts };
|
|
2510
2961
|
const layers = [];
|
|
2511
2962
|
const folder = /* @__PURE__ */ __name((file2) => [
|
|
2512
2963
|
file2.layer === "project" ? "project-file" : "local-file",
|
|
2513
2964
|
file2.path,
|
|
2514
|
-
opts.includeProject === false ? {} : readJsonIfExists(file2.path, folderFileLabel(file2))
|
|
2965
|
+
opts.includeProject === false ? {} : readJsonIfExists(file2.path, folderFileLabel(file2), [LOCAL_MCP_KEY], strictConfig)
|
|
2515
2966
|
], "folder");
|
|
2516
2967
|
for (const [source, path, config] of [
|
|
2517
|
-
[
|
|
2968
|
+
[
|
|
2969
|
+
"user-file",
|
|
2970
|
+
userPath,
|
|
2971
|
+
ignoreUserConfig ? {} : readYamlIfExists(
|
|
2972
|
+
userPath,
|
|
2973
|
+
(parsed2) => {
|
|
2974
|
+
if (parsed2 && typeof parsed2 === "object")
|
|
2975
|
+
delete parsed2[LOCAL_MCP_KEY];
|
|
2976
|
+
return parsed2;
|
|
2977
|
+
},
|
|
2978
|
+
strictConfig
|
|
2979
|
+
)
|
|
2980
|
+
],
|
|
2518
2981
|
...projectConfigFiles(cwd).map(folder),
|
|
2519
2982
|
...(opts.includeProject === false ? allLocalConfigFiles(cwd) : localConfigFiles(cwd)).map(
|
|
2520
2983
|
folder
|
|
2521
2984
|
),
|
|
2522
|
-
[
|
|
2985
|
+
[
|
|
2986
|
+
"managed",
|
|
2987
|
+
managedPath,
|
|
2988
|
+
readJsonIfExists(managedPath, shortHomePath(managedPath), [], strictConfig)
|
|
2989
|
+
]
|
|
2523
2990
|
]) {
|
|
2524
2991
|
const browserDenies = Object.entries(config.browser?.sites ?? {}).filter(([site, level]) => site !== "*" && level === "deny").map(([site]) => site);
|
|
2525
2992
|
if (config.permissions || browserDenies.length > 0)
|
|
@@ -2606,12 +3073,12 @@ var ConfigValueError = class extends Error {
|
|
|
2606
3073
|
this.settingPath = settingPath;
|
|
2607
3074
|
}
|
|
2608
3075
|
};
|
|
2609
|
-
function readYamlIfExists(path, prepare = (parsed2) => parsed2) {
|
|
3076
|
+
function readYamlIfExists(path, prepare = (parsed2) => parsed2, strict = false) {
|
|
2610
3077
|
const raw = readIfPresent(path);
|
|
2611
3078
|
if (raw === null) return {};
|
|
2612
3079
|
let parsed2;
|
|
2613
3080
|
try {
|
|
2614
|
-
parsed2 = (0,
|
|
3081
|
+
parsed2 = (0, import_yaml3.parse)(raw);
|
|
2615
3082
|
} catch (cause) {
|
|
2616
3083
|
const at = cause?.linePos?.[0];
|
|
2617
3084
|
const where = at === void 0 ? "" : ` (line ${at.line}, column ${at.col})`;
|
|
@@ -2621,7 +3088,7 @@ function readYamlIfExists(path, prepare = (parsed2) => parsed2) {
|
|
|
2621
3088
|
{ cause, complete: true }
|
|
2622
3089
|
);
|
|
2623
3090
|
}
|
|
2624
|
-
return asConfigObject(path, prepare(parsed2));
|
|
3091
|
+
return asConfigObject(path, prepare(parsed2), void 0, strict);
|
|
2625
3092
|
}
|
|
2626
3093
|
__name(readYamlIfExists, "readYamlIfExists");
|
|
2627
3094
|
function folderFileLabel(file2) {
|
|
@@ -2637,6 +3104,7 @@ var MANAGED_ONLY_PLUGIN_KEYS = [
|
|
|
2637
3104
|
"profiles.*.plugins.lockCustomization"
|
|
2638
3105
|
];
|
|
2639
3106
|
var PROJECT_DROPPED_KEYS = [
|
|
3107
|
+
LOCAL_MCP_KEY,
|
|
2640
3108
|
"plugins.blockedMarketplaces",
|
|
2641
3109
|
...MANAGED_ONLY_PLUGIN_KEYS,
|
|
2642
3110
|
"decision",
|
|
@@ -2672,6 +3140,7 @@ var PROJECT_DROPPED_KEYS = [
|
|
|
2672
3140
|
var LOCAL_DROPPED_KEYS = [
|
|
2673
3141
|
"semanticSearch",
|
|
2674
3142
|
"profiles.*.semanticSearch",
|
|
3143
|
+
LOCAL_MCP_KEY,
|
|
2675
3144
|
"plugins.blockedMarketplaces",
|
|
2676
3145
|
...MANAGED_ONLY_PLUGIN_KEYS,
|
|
2677
3146
|
"decision",
|
|
@@ -2699,6 +3168,7 @@ function approvedSharedServers(declared, namzuHome, cwd) {
|
|
|
2699
3168
|
__name(approvedSharedServers, "approvedSharedServers");
|
|
2700
3169
|
function pendingProjectMcpServers(opts) {
|
|
2701
3170
|
const declared = readSharedMcpServers(resolve4(opts.cwd, PROJECT_MCP_FILE)) ?? {};
|
|
3171
|
+
if (Object.keys(declared).length === 0) return { declared, pending: [] };
|
|
2702
3172
|
const namzuHome = resolveNamzuHome({
|
|
2703
3173
|
...opts.home ? { home: opts.home } : {},
|
|
2704
3174
|
env: opts.env ?? process.env
|
|
@@ -2706,9 +3176,9 @@ function pendingProjectMcpServers(opts) {
|
|
|
2706
3176
|
return { declared, pending: splitProjectMcpServers(namzuHome, opts.cwd, declared).pending };
|
|
2707
3177
|
}
|
|
2708
3178
|
__name(pendingProjectMcpServers, "pendingProjectMcpServers");
|
|
2709
|
-
function readSharedMcpServers(path) {
|
|
3179
|
+
function readSharedMcpServers(path, strict = false) {
|
|
2710
3180
|
try {
|
|
2711
|
-
const servers = readMcpServerFile(path, SHARED_MCP_LABEL);
|
|
3181
|
+
const servers = readMcpServerFile(path, strict ? path : SHARED_MCP_LABEL, strict);
|
|
2712
3182
|
return servers && Object.keys(servers).length > 0 ? servers : void 0;
|
|
2713
3183
|
} catch (cause) {
|
|
2714
3184
|
if (cause instanceof McpServerFileError) {
|
|
@@ -2722,34 +3192,41 @@ function shortHomePath(path) {
|
|
|
2722
3192
|
return homePath(path);
|
|
2723
3193
|
}
|
|
2724
3194
|
__name(shortHomePath, "shortHomePath");
|
|
2725
|
-
function readJsonIfExists(path, label, drop = []) {
|
|
3195
|
+
function readJsonIfExists(path, label, drop = [], strict = false) {
|
|
2726
3196
|
const raw = readIfPresent(path);
|
|
2727
3197
|
if (raw === null) return {};
|
|
2728
3198
|
let parsed2;
|
|
2729
3199
|
try {
|
|
2730
3200
|
parsed2 = JSON.parse(raw);
|
|
2731
3201
|
} catch (cause) {
|
|
2732
|
-
throw new ConfigLoadError(path, invalidJsonSentence(label, raw, cause), {
|
|
3202
|
+
throw new ConfigLoadError(path, invalidJsonSentence(strict ? path : label, raw, cause), {
|
|
2733
3203
|
cause,
|
|
2734
3204
|
complete: true
|
|
2735
3205
|
});
|
|
2736
3206
|
}
|
|
2737
3207
|
if (drop.length > 0 && parsed2 !== null && typeof parsed2 === "object" && !Array.isArray(parsed2)) {
|
|
2738
|
-
for (const key of drop) dropKey(parsed2, key.split("."));
|
|
3208
|
+
for (const key of drop) dropKey(parsed2, key.split("."), strict ? path : void 0);
|
|
2739
3209
|
}
|
|
2740
|
-
return asConfigObject(path, parsed2, label);
|
|
3210
|
+
return asConfigObject(path, parsed2, label, strict);
|
|
2741
3211
|
}
|
|
2742
3212
|
__name(readJsonIfExists, "readJsonIfExists");
|
|
2743
|
-
function dropKey(node, path) {
|
|
3213
|
+
function dropKey(node, path, strictFile, prefix = []) {
|
|
2744
3214
|
if (node === null || typeof node !== "object" || Array.isArray(node)) return;
|
|
2745
3215
|
const [head, ...rest] = path;
|
|
2746
3216
|
if (head === void 0) return;
|
|
2747
3217
|
const section = node;
|
|
2748
3218
|
if (rest.length === 0) {
|
|
3219
|
+
if (strictFile && Object.hasOwn(section, head))
|
|
3220
|
+
throw new ConfigValueError(
|
|
3221
|
+
{ kind: "file", path: strictFile },
|
|
3222
|
+
formatSettingPath([...prefix, head]),
|
|
3223
|
+
"cannot be set in this settings file"
|
|
3224
|
+
);
|
|
2749
3225
|
delete section[head];
|
|
2750
3226
|
return;
|
|
2751
3227
|
}
|
|
2752
|
-
for (const
|
|
3228
|
+
for (const key of head === "*" ? Object.keys(section) : [head])
|
|
3229
|
+
dropKey(section[key], rest, strictFile, [...prefix, key]);
|
|
2753
3230
|
}
|
|
2754
3231
|
__name(dropKey, "dropKey");
|
|
2755
3232
|
function invalidJsonSentence(name, raw, cause) {
|
|
@@ -2774,7 +3251,7 @@ function jsonErrorPosition(raw, cause) {
|
|
|
2774
3251
|
__name(jsonErrorPosition, "jsonErrorPosition");
|
|
2775
3252
|
function readIfPresent(path) {
|
|
2776
3253
|
try {
|
|
2777
|
-
return stripByteOrderMark(
|
|
3254
|
+
return stripByteOrderMark(readFileSync6(path, "utf8"));
|
|
2778
3255
|
} catch (cause) {
|
|
2779
3256
|
const code = cause?.code;
|
|
2780
3257
|
if (code === "ENOENT" || code === "ENOTDIR") return null;
|
|
@@ -2782,7 +3259,7 @@ function readIfPresent(path) {
|
|
|
2782
3259
|
}
|
|
2783
3260
|
}
|
|
2784
3261
|
__name(readIfPresent, "readIfPresent");
|
|
2785
|
-
function asConfigObject(path, parsed2, label = shortHomePath(path)) {
|
|
3262
|
+
function asConfigObject(path, parsed2, label = shortHomePath(path), strict = false) {
|
|
2786
3263
|
if (parsed2 === null || parsed2 === void 0) return {};
|
|
2787
3264
|
if (typeof parsed2 !== "object" || Array.isArray(parsed2)) {
|
|
2788
3265
|
throw new ConfigLoadError(
|
|
@@ -2791,7 +3268,7 @@ function asConfigObject(path, parsed2, label = shortHomePath(path)) {
|
|
|
2791
3268
|
{ complete: true }
|
|
2792
3269
|
);
|
|
2793
3270
|
}
|
|
2794
|
-
return sanitize(parsed2, { kind: "file", path });
|
|
3271
|
+
return sanitize(parsed2, { kind: "file", path, ...strict ? { strict } : {} });
|
|
2795
3272
|
}
|
|
2796
3273
|
__name(asConfigObject, "asConfigObject");
|
|
2797
3274
|
function describe2(value) {
|
|
@@ -3065,6 +3542,16 @@ var CONFIG_READERS = {
|
|
|
3065
3542
|
if (folded.problem) {
|
|
3066
3543
|
return invalidConfigValue(context, folded.problem.path, folded.problem.message);
|
|
3067
3544
|
}
|
|
3545
|
+
if (isStrictFile(context.source)) {
|
|
3546
|
+
const rules = splitPermissionsTable(folded.table, "operator", "").rules;
|
|
3547
|
+
const problem2 = compilePermissions(rules).diagnostics[0];
|
|
3548
|
+
if (problem2)
|
|
3549
|
+
return invalidConfigValue(
|
|
3550
|
+
context,
|
|
3551
|
+
[problem2.tool, ...problem2.pattern === void 0 ? [] : [problem2.pattern]],
|
|
3552
|
+
problem2.message
|
|
3553
|
+
);
|
|
3554
|
+
}
|
|
3068
3555
|
return folded.table;
|
|
3069
3556
|
}, "permissions"),
|
|
3070
3557
|
// Shape only, like `permissions` and for the same reason: per-entry
|
|
@@ -3072,7 +3559,17 @@ var CONFIG_READERS = {
|
|
|
3072
3559
|
// check by index. Dropping a malformed one here would turn "your check is
|
|
3073
3560
|
// unreadable" into "your check passed".
|
|
3074
3561
|
permissionChecks: /* @__PURE__ */ __name((v, context) => {
|
|
3075
|
-
if (Array.isArray(v))
|
|
3562
|
+
if (Array.isArray(v)) {
|
|
3563
|
+
if (isStrictFile(context.source)) {
|
|
3564
|
+
for (const [index, check] of v.entries()) {
|
|
3565
|
+
const problem = permissionCheckProblem(check, index);
|
|
3566
|
+
if (problem) return invalidConfigValue(context, [index], problem.message);
|
|
3567
|
+
if (isConfigMapping(check))
|
|
3568
|
+
rejectUnknownKeys(check, context, ["tool", "input", "expect"], [index]);
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
return v;
|
|
3572
|
+
}
|
|
3076
3573
|
return invalidConfigValue(context, [], "must be a list");
|
|
3077
3574
|
}, "permissionChecks"),
|
|
3078
3575
|
// Derived from the layers' `permissions` tables while the cascade merges;
|
|
@@ -3114,8 +3611,15 @@ var CONFIG_READERS = {
|
|
|
3114
3611
|
// connection is attempted. Dropping it here would turn a mistake the
|
|
3115
3612
|
// operator can see into a server that silently was never there.
|
|
3116
3613
|
mcpServers: /* @__PURE__ */ __name((v, context) => {
|
|
3117
|
-
if (isConfigMapping(v))
|
|
3118
|
-
|
|
3614
|
+
if (!isConfigMapping(v))
|
|
3615
|
+
return invalidConfigValue(context, [], "must be a mapping of server names");
|
|
3616
|
+
if (isStrictFile(context.source)) {
|
|
3617
|
+
for (const [name, entry] of Object.entries(v)) {
|
|
3618
|
+
const problem = strictServerProblem(entry);
|
|
3619
|
+
if (problem) return invalidConfigValue(context, [name], problem);
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
return v;
|
|
3119
3623
|
}, "mcpServers"),
|
|
3120
3624
|
memory: /* @__PURE__ */ __name((v, context) => {
|
|
3121
3625
|
if (!isConfigMapping(v)) return invalidConfigValue(context, [], "must be a mapping");
|
|
@@ -3227,7 +3731,15 @@ var CONFIG_READERS = {
|
|
|
3227
3731
|
raw.autoCompactWindowTokens,
|
|
3228
3732
|
"compaction.autoCompactWindowTokens"
|
|
3229
3733
|
);
|
|
3230
|
-
if (autoCompactWindow?.warning
|
|
3734
|
+
if (autoCompactWindow?.warning || raw.autoCompactWindowTokens !== void 0 && autoCompactWindow?.tokens === void 0) {
|
|
3735
|
+
if (isStrictFile(context.source))
|
|
3736
|
+
return invalidConfigValue(
|
|
3737
|
+
context,
|
|
3738
|
+
["autoCompactWindowTokens"],
|
|
3739
|
+
"must be a token count between 100k and 1m"
|
|
3740
|
+
);
|
|
3741
|
+
if (autoCompactWindow?.warning) configWarnings.add(autoCompactWindow.warning);
|
|
3742
|
+
}
|
|
3231
3743
|
if (raw.contextWindowTokens !== void 0 && (typeof raw.contextWindowTokens !== "number" || !Number.isInteger(raw.contextWindowTokens) || raw.contextWindowTokens <= 0)) {
|
|
3232
3744
|
return invalidConfigValue(context, ["contextWindowTokens"], "must be a positive integer");
|
|
3233
3745
|
}
|
|
@@ -3348,7 +3860,10 @@ var CONFIG_READERS = {
|
|
|
3348
3860
|
return invalidConfigValue(context, [], "must be a mapping of event \u2192 list");
|
|
3349
3861
|
const out = {};
|
|
3350
3862
|
const file2 = hookOptions?.file ?? hookSourceLabel(context.source);
|
|
3351
|
-
const record =
|
|
3863
|
+
const record = /* @__PURE__ */ __name((file3, event, severity, message) => {
|
|
3864
|
+
if (isStrictFile(context.source)) invalidConfigValue(context, [event], message);
|
|
3865
|
+
(hookOptions?.record ?? recordHookProblem)(file3, event, severity, message);
|
|
3866
|
+
}, "record");
|
|
3352
3867
|
for (const [event, entries] of Object.entries(v)) {
|
|
3353
3868
|
const renamed = Object.hasOwn(RENAMED_PLUGIN_HOOK_EVENTS, event) ? RENAMED_PLUGIN_HOOK_EVENTS[event] : void 0;
|
|
3354
3869
|
if (renamed !== void 0) {
|
|
@@ -4070,6 +4585,14 @@ var CONFIG_READERS = {
|
|
|
4070
4585
|
// failure this whole change exists to remove.
|
|
4071
4586
|
sandbox: /* @__PURE__ */ __name((v, context) => {
|
|
4072
4587
|
if (!isConfigMapping(v)) return invalidConfigValue(context, [], "must be a mapping");
|
|
4588
|
+
rejectUnknownKeys(v, context, [
|
|
4589
|
+
"enabled",
|
|
4590
|
+
"allowEscape",
|
|
4591
|
+
"allowUnattendedEscape",
|
|
4592
|
+
"requireIsolation",
|
|
4593
|
+
"workspace",
|
|
4594
|
+
"teardownTimeoutMs"
|
|
4595
|
+
]);
|
|
4073
4596
|
const raw = v;
|
|
4074
4597
|
for (const key of ["enabled", "allowEscape", "allowUnattendedEscape"]) {
|
|
4075
4598
|
if (raw[key] !== void 0 && typeof raw[key] !== "boolean") {
|
|
@@ -4122,11 +4645,13 @@ var CONFIG_READERS = {
|
|
|
4122
4645
|
// config rather than selecting either "off" or a different redactor set.
|
|
4123
4646
|
telemetry: /* @__PURE__ */ __name((v, context) => {
|
|
4124
4647
|
if (!isConfigMapping(v)) return invalidConfigValue(context, [], "must be a mapping");
|
|
4648
|
+
rejectUnknownKeys(v, context, ["sessionExport", "otlp"]);
|
|
4125
4649
|
const raw = v;
|
|
4126
4650
|
let otlp;
|
|
4127
4651
|
if (raw.otlp !== void 0) {
|
|
4128
4652
|
if (!isConfigMapping(raw.otlp))
|
|
4129
4653
|
return invalidConfigValue(context, ["otlp"], "must be a mapping");
|
|
4654
|
+
rejectUnknownKeys(raw.otlp, context, ["endpoint", "headers"], ["otlp"]);
|
|
4130
4655
|
const o = raw.otlp;
|
|
4131
4656
|
if (o.endpoint !== void 0 && (typeof o.endpoint !== "string" || o.endpoint === "")) {
|
|
4132
4657
|
return invalidConfigValue(context, ["otlp", "endpoint"], "must be a non-empty string");
|
|
@@ -4154,6 +4679,7 @@ var CONFIG_READERS = {
|
|
|
4154
4679
|
if (!isConfigMapping(se)) {
|
|
4155
4680
|
return invalidConfigValue(context, ["sessionExport"], "must be a mapping");
|
|
4156
4681
|
}
|
|
4682
|
+
rejectUnknownKeys(se, context, ["destination", "eventTypes", "redactors"], ["sessionExport"]);
|
|
4157
4683
|
const entry = se;
|
|
4158
4684
|
if (typeof entry.destination !== "string" || entry.destination.length === 0) {
|
|
4159
4685
|
return invalidConfigValue(
|
|
@@ -4457,6 +4983,32 @@ var CONFIG_READERS = {
|
|
|
4457
4983
|
}, "composerTriggers"),
|
|
4458
4984
|
tui: /* @__PURE__ */ __name((v, context) => {
|
|
4459
4985
|
if (!isConfigMapping(v)) return invalidConfigValue(context, [], "must be a mapping");
|
|
4986
|
+
rejectUnknownKeys(v, context, [
|
|
4987
|
+
"notifications",
|
|
4988
|
+
"notificationMethod",
|
|
4989
|
+
"theme",
|
|
4990
|
+
"reducedMotion",
|
|
4991
|
+
"showExpandedTodos",
|
|
4992
|
+
"agentCalls",
|
|
4993
|
+
"fullscreen",
|
|
4994
|
+
"wheelRows",
|
|
4995
|
+
"wheelAccel",
|
|
4996
|
+
"leftArrowOpensAgents",
|
|
4997
|
+
"editorMode",
|
|
4998
|
+
"recap",
|
|
4999
|
+
"spinnerTips",
|
|
5000
|
+
"showTurnDuration",
|
|
5001
|
+
"respondToShellCommands",
|
|
5002
|
+
"syntaxHighlight",
|
|
5003
|
+
"maxProseWidth",
|
|
5004
|
+
"terminalProgressBar",
|
|
5005
|
+
"workspacesPrefix",
|
|
5006
|
+
"workspacesScreen",
|
|
5007
|
+
"spacesPrefix",
|
|
5008
|
+
"mouse",
|
|
5009
|
+
"copyOnSelect",
|
|
5010
|
+
"sound"
|
|
5011
|
+
]);
|
|
4460
5012
|
const raw = v;
|
|
4461
5013
|
if (raw.sound !== void 0 && typeof raw.sound !== "boolean")
|
|
4462
5014
|
return invalidConfigValue(context, ["sound"], "must be true or false");
|
|
@@ -4958,6 +5510,7 @@ __name(readConfigKey, "readConfigKey");
|
|
|
4958
5510
|
function sanitize(value, source, prefix = [], allowProfiles = true) {
|
|
4959
5511
|
const v = value;
|
|
4960
5512
|
const out = {};
|
|
5513
|
+
rejectUnknownKeys(v, { source, path: prefix }, KNOWN_FILE_KEYS);
|
|
4961
5514
|
if (!allowProfiles) {
|
|
4962
5515
|
for (const key of PLUGIN_RECORD_KEYS) {
|
|
4963
5516
|
if (Object.hasOwn(v, key))
|
|
@@ -4990,6 +5543,17 @@ function isConfigMapping(value) {
|
|
|
4990
5543
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
4991
5544
|
}
|
|
4992
5545
|
__name(isConfigMapping, "isConfigMapping");
|
|
5546
|
+
function isStrictFile(source) {
|
|
5547
|
+
return source.kind === "file" && source.strict === true;
|
|
5548
|
+
}
|
|
5549
|
+
__name(isStrictFile, "isStrictFile");
|
|
5550
|
+
function rejectUnknownKeys(value, context, known, path = []) {
|
|
5551
|
+
if (!isStrictFile(context.source)) return;
|
|
5552
|
+
for (const key of Object.keys(value)) {
|
|
5553
|
+
if (!known.includes(key)) invalidConfigValue(context, [...path, key], "is an unknown setting");
|
|
5554
|
+
}
|
|
5555
|
+
}
|
|
5556
|
+
__name(rejectUnknownKeys, "rejectUnknownKeys");
|
|
4993
5557
|
function invalidConfigValue(context, suffix, message) {
|
|
4994
5558
|
throw new ConfigValueError(
|
|
4995
5559
|
context.source,
|
|
@@ -5103,10 +5667,15 @@ function constantLayer(config, source) {
|
|
|
5103
5667
|
return { config, sourceFor: /* @__PURE__ */ __name(() => source, "sourceFor") };
|
|
5104
5668
|
}
|
|
5105
5669
|
__name(constantLayer, "constantLayer");
|
|
5106
|
-
function mergeConfigs(...layers) {
|
|
5670
|
+
function mergeConfigs(strict, ...layers) {
|
|
5107
5671
|
const out = {};
|
|
5108
5672
|
const provenance = {};
|
|
5109
5673
|
const permissionTables = [];
|
|
5674
|
+
const warn = /* @__PURE__ */ __name((source, key, message) => {
|
|
5675
|
+
if (strict && "path" in source)
|
|
5676
|
+
throw new ConfigValueError({ kind: "file", path: source.path }, key, message);
|
|
5677
|
+
configWarnings.add(message);
|
|
5678
|
+
}, "warn");
|
|
5110
5679
|
for (const layer of layers) {
|
|
5111
5680
|
for (const key of Object.keys(layer.config)) {
|
|
5112
5681
|
if (layer.sourceFor(key).kind === "env" && (key === "limits" || key === "compaction")) {
|
|
@@ -5117,7 +5686,9 @@ function mergeConfigs(...layers) {
|
|
|
5117
5686
|
}
|
|
5118
5687
|
if (key === "hooksManagedOnly") {
|
|
5119
5688
|
if (layer.sourceFor(key).kind !== "managed") {
|
|
5120
|
-
|
|
5689
|
+
warn(
|
|
5690
|
+
layer.sourceFor(key),
|
|
5691
|
+
key,
|
|
5121
5692
|
`hooksManagedOnly in ${describeSource2(layer.sourceFor(key))} is ignored: only the organisation-managed file can set it.`
|
|
5122
5693
|
);
|
|
5123
5694
|
continue;
|
|
@@ -5125,7 +5696,9 @@ function mergeConfigs(...layers) {
|
|
|
5125
5696
|
}
|
|
5126
5697
|
if (key === "disableHooks" && isProjectSource(layer.sourceFor(key))) {
|
|
5127
5698
|
if (layer.config.disableHooks === true) {
|
|
5128
|
-
|
|
5699
|
+
warn(
|
|
5700
|
+
layer.sourceFor(key),
|
|
5701
|
+
key,
|
|
5129
5702
|
`disableHooks in ${describeSource2(layer.sourceFor(key))} is ignored: only your own config file, the environment or the managed file can turn hooks off.`
|
|
5130
5703
|
);
|
|
5131
5704
|
}
|
|
@@ -5135,7 +5708,9 @@ function mergeConfigs(...layers) {
|
|
|
5135
5708
|
continue;
|
|
5136
5709
|
}
|
|
5137
5710
|
if (key === "disableMcpSkills" && isProjectSource(layer.sourceFor(key))) {
|
|
5138
|
-
|
|
5711
|
+
warn(
|
|
5712
|
+
layer.sourceFor(key),
|
|
5713
|
+
key,
|
|
5139
5714
|
`disableMcpSkills in ${describeSource2(layer.sourceFor(key))} is ignored: only your own config file or the managed file can set it.`
|
|
5140
5715
|
);
|
|
5141
5716
|
continue;
|
|
@@ -5147,7 +5722,9 @@ function mergeConfigs(...layers) {
|
|
|
5147
5722
|
continue;
|
|
5148
5723
|
}
|
|
5149
5724
|
if ((key === "cleanupPeriodDays" || key === "promptHistory") && isProjectSource(layer.sourceFor(key))) {
|
|
5150
|
-
|
|
5725
|
+
warn(
|
|
5726
|
+
layer.sourceFor(key),
|
|
5727
|
+
key,
|
|
5151
5728
|
`${key} in ${describeSource2(layer.sourceFor(key))} is ignored: only your own config file or the managed file can set it.`
|
|
5152
5729
|
);
|
|
5153
5730
|
continue;
|
|
@@ -5160,13 +5737,17 @@ function mergeConfigs(...layers) {
|
|
|
5160
5737
|
continue;
|
|
5161
5738
|
}
|
|
5162
5739
|
if (key === "agentSettings" && isProjectSource(layer.sourceFor(key))) {
|
|
5163
|
-
|
|
5740
|
+
warn(
|
|
5741
|
+
layer.sourceFor(key),
|
|
5742
|
+
key,
|
|
5164
5743
|
`agentSettings in ${describeSource2(layer.sourceFor(key))} is ignored: only your own config file or the managed file can set it.`
|
|
5165
5744
|
);
|
|
5166
5745
|
continue;
|
|
5167
5746
|
}
|
|
5168
5747
|
if (key === "network" && isProjectSource(layer.sourceFor(key))) {
|
|
5169
|
-
|
|
5748
|
+
warn(
|
|
5749
|
+
layer.sourceFor(key),
|
|
5750
|
+
key,
|
|
5170
5751
|
`network in ${describeSource2(layer.sourceFor(key))} is ignored: only your own config file or the managed file can set it.`
|
|
5171
5752
|
);
|
|
5172
5753
|
continue;
|
|
@@ -5177,7 +5758,9 @@ function mergeConfigs(...layers) {
|
|
|
5177
5758
|
continue;
|
|
5178
5759
|
}
|
|
5179
5760
|
if (key === "teams" && isProjectSource(layer.sourceFor(key))) {
|
|
5180
|
-
|
|
5761
|
+
warn(
|
|
5762
|
+
layer.sourceFor(key),
|
|
5763
|
+
key,
|
|
5181
5764
|
`teams in ${describeSource2(layer.sourceFor(key))} is ignored: only your own config file or the managed file can set it.`
|
|
5182
5765
|
);
|
|
5183
5766
|
continue;
|
|
@@ -5202,7 +5785,9 @@ function mergeConfigs(...layers) {
|
|
|
5202
5785
|
const source = layer.sourceFor(key);
|
|
5203
5786
|
const merged = mergeEnvLayer(out.env, layer.config.env, isProjectSource(source));
|
|
5204
5787
|
if (merged.refused.length > 0) {
|
|
5205
|
-
|
|
5788
|
+
warn(
|
|
5789
|
+
source,
|
|
5790
|
+
formatSettingPath(["env", ...merged.refused.slice(0, 1)]),
|
|
5206
5791
|
`env in ${describeSource2(source)}: ${merged.refused.join(", ")} ${merged.refused.length === 1 ? "is" : "are"} ignored. A project file cannot set variables that change what runs or where credentials go; set ${merged.refused.length === 1 ? "it" : "them"} in your own config file.`
|
|
5207
5792
|
);
|
|
5208
5793
|
}
|
|
@@ -5217,7 +5802,9 @@ function mergeConfigs(...layers) {
|
|
|
5217
5802
|
}
|
|
5218
5803
|
if (key === "worktrees" && layer.config.worktrees !== void 0) {
|
|
5219
5804
|
if (isProjectSource(layer.sourceFor(key))) {
|
|
5220
|
-
|
|
5805
|
+
warn(
|
|
5806
|
+
layer.sourceFor(key),
|
|
5807
|
+
key,
|
|
5221
5808
|
`worktrees in ${describeSource2(layer.sourceFor(key))} is ignored: only your own config file or the managed file can set it.`
|
|
5222
5809
|
);
|
|
5223
5810
|
continue;
|
|
@@ -5233,6 +5820,14 @@ function mergeConfigs(...layers) {
|
|
|
5233
5820
|
settingsAuthorityOf(source),
|
|
5234
5821
|
describeSource2(source)
|
|
5235
5822
|
);
|
|
5823
|
+
for (const message of split.settings.ignored ?? []) {
|
|
5824
|
+
if (strict && "path" in source)
|
|
5825
|
+
throw new ConfigValueError(
|
|
5826
|
+
{ kind: "file", path: source.path },
|
|
5827
|
+
message.split(/[ :]/, 1)[0] ?? key,
|
|
5828
|
+
message
|
|
5829
|
+
);
|
|
5830
|
+
}
|
|
5236
5831
|
permissionTables.push(
|
|
5237
5832
|
"path" in source ? bindPermissionTableToSource(
|
|
5238
5833
|
split.rules,
|
|
@@ -5317,7 +5912,8 @@ function mergeConfigs(...layers) {
|
|
|
5317
5912
|
out.sandbox,
|
|
5318
5913
|
layer.config.sandbox,
|
|
5319
5914
|
isProjectSource(source),
|
|
5320
|
-
describeSource2(source)
|
|
5915
|
+
describeSource2(source),
|
|
5916
|
+
(noteKey, message) => warn(source, noteKey, message)
|
|
5321
5917
|
);
|
|
5322
5918
|
provenance[key] = source;
|
|
5323
5919
|
continue;
|
|
@@ -5618,9 +6214,12 @@ function mergeUpdatesConfig(below, layer, fromProject) {
|
|
|
5618
6214
|
};
|
|
5619
6215
|
}
|
|
5620
6216
|
__name(mergeUpdatesConfig, "mergeUpdatesConfig");
|
|
5621
|
-
function mergeSandboxConfig(below, layer, fromProject, where) {
|
|
6217
|
+
function mergeSandboxConfig(below, layer, fromProject, where, warn = (_key, message) => {
|
|
6218
|
+
configWarnings.add(message);
|
|
6219
|
+
}) {
|
|
5622
6220
|
if (!fromProject) return { ...below, ...layer };
|
|
5623
|
-
const note = /* @__PURE__ */ __name((key, written, what) =>
|
|
6221
|
+
const note = /* @__PURE__ */ __name((key, written, what) => warn(
|
|
6222
|
+
`sandbox.${key}`,
|
|
5624
6223
|
`sandbox.${key}: ${written} in ${where} is ignored; ${what} is set in your own config file (~/.namzu/config.yaml).`
|
|
5625
6224
|
), "note");
|
|
5626
6225
|
const out = { ...below };
|
|
@@ -5782,6 +6381,19 @@ export {
|
|
|
5782
6381
|
recordOffer,
|
|
5783
6382
|
shouldOfferDecisionSetup,
|
|
5784
6383
|
decisionStatusLine,
|
|
6384
|
+
readUserMcpServers,
|
|
6385
|
+
isUserMcpName,
|
|
6386
|
+
addUserMcpServer,
|
|
6387
|
+
removeUserMcpServer,
|
|
6388
|
+
summarizeUserMcpServer,
|
|
6389
|
+
MCP_HEADER_NAME,
|
|
6390
|
+
MCP_HEADER_REFERENCE,
|
|
6391
|
+
MCP_NAME_RULE,
|
|
6392
|
+
mcpAddressProblem,
|
|
6393
|
+
listEntryForUserMcpServer,
|
|
6394
|
+
readUserMcpServerForms,
|
|
6395
|
+
checkUserMcpServerSave,
|
|
6396
|
+
saveUserMcpServer,
|
|
5785
6397
|
isCommitId,
|
|
5786
6398
|
refProblem,
|
|
5787
6399
|
repoPathProblem,
|
|
@@ -5797,9 +6409,15 @@ export {
|
|
|
5797
6409
|
pendingServersMessage,
|
|
5798
6410
|
approveProjectMcpServers,
|
|
5799
6411
|
approveShownMcpServers,
|
|
6412
|
+
declineShownMcpServer,
|
|
6413
|
+
isProjectMcpServerDeclined,
|
|
5800
6414
|
isPluginRemoteApproved,
|
|
5801
6415
|
approveShownPluginMcpServers,
|
|
5802
6416
|
startNewMcpApprovals,
|
|
6417
|
+
PROJECT_MCP_FILE,
|
|
6418
|
+
McpServerFileError,
|
|
6419
|
+
parseMcpServerFile,
|
|
6420
|
+
mergeLaunchMcpServers,
|
|
5803
6421
|
sessionWorkflowSizeAdvice,
|
|
5804
6422
|
parseTokenTarget,
|
|
5805
6423
|
workflowTokenCeiling,
|
|
@@ -5822,6 +6440,9 @@ export {
|
|
|
5822
6440
|
hookEventForKey,
|
|
5823
6441
|
hooksOfElement,
|
|
5824
6442
|
unknownEventMessage,
|
|
6443
|
+
MIN_OBSERVATIONS,
|
|
6444
|
+
COOLDOWN_MS,
|
|
6445
|
+
resolveGeneratorSettings,
|
|
5825
6446
|
PROJECT_SETTINGS_FILE,
|
|
5826
6447
|
LOCAL_SETTINGS_FILE,
|
|
5827
6448
|
LEGACY_LOCAL_CONFIG_FILE,
|
|
@@ -5875,4 +6496,4 @@ export {
|
|
|
5875
6496
|
mergeComputerUseConfig,
|
|
5876
6497
|
readPluginHookEntries
|
|
5877
6498
|
};
|
|
5878
|
-
//# sourceMappingURL=chunk-
|
|
6499
|
+
//# sourceMappingURL=chunk-7YUCOFK3.js.map
|