@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
|
@@ -0,0 +1,768 @@
|
|
|
1
|
+
import { createRequire as __namzuCreateRequire } from 'node:module';
|
|
2
|
+
const require = __namzuCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
builtinCommandArguments,
|
|
5
|
+
commandArgumentOf,
|
|
6
|
+
lexShellCommandLine,
|
|
7
|
+
nestedShellCommand,
|
|
8
|
+
programPositions
|
|
9
|
+
} from "./chunk-OSPHHCCJ.js";
|
|
10
|
+
import {
|
|
11
|
+
__name
|
|
12
|
+
} from "./chunk-76FLAFCG.js";
|
|
13
|
+
|
|
14
|
+
// src/permissions/send-floor.ts
|
|
15
|
+
var SEND_FLOOR_REASON = "a command line a session runs may not run `namzu send`: a message to another session must come from a person at their own terminal, not from a tool or an agent. It holds in every permission mode, so rewording the command will not help";
|
|
16
|
+
var OPERATOR_FLOOR_REASON = "a command line a session runs may not run `namzu mcp approve` or `namzu acp --desktop`: approving a tool server or answering a consent is a person's answer at their own terminal, not a tool's. It holds in every permission mode, so rewording the command will not help";
|
|
17
|
+
var CLI_EXTENSIONS = /\.(?:exe|cmd|bat|ps1)$/;
|
|
18
|
+
var CLI_ENTRY = /^bin(?:\.[cm]?[jt]s)?$/;
|
|
19
|
+
var TEXT_ONLY_HEADS = /* @__PURE__ */ new Set([
|
|
20
|
+
"echo",
|
|
21
|
+
"printf",
|
|
22
|
+
"grep",
|
|
23
|
+
"egrep",
|
|
24
|
+
"fgrep",
|
|
25
|
+
"rg",
|
|
26
|
+
"ag",
|
|
27
|
+
"cat",
|
|
28
|
+
"head",
|
|
29
|
+
"tail",
|
|
30
|
+
"wc",
|
|
31
|
+
"diff",
|
|
32
|
+
"which",
|
|
33
|
+
"type",
|
|
34
|
+
"man",
|
|
35
|
+
"ls",
|
|
36
|
+
"git",
|
|
37
|
+
// Programs that move, make or remove files by name: a name that spells the CLI is a file, not a run.
|
|
38
|
+
"cp",
|
|
39
|
+
"mv",
|
|
40
|
+
"rm",
|
|
41
|
+
"touch",
|
|
42
|
+
"mkdir",
|
|
43
|
+
"rmdir",
|
|
44
|
+
"stat",
|
|
45
|
+
"realpath",
|
|
46
|
+
"basename",
|
|
47
|
+
"dirname"
|
|
48
|
+
]);
|
|
49
|
+
var JS_RUNNERS = /* @__PURE__ */ new Set([
|
|
50
|
+
"node",
|
|
51
|
+
"nodejs",
|
|
52
|
+
"npx",
|
|
53
|
+
"pnpx",
|
|
54
|
+
"npm",
|
|
55
|
+
"pnpm",
|
|
56
|
+
"yarn",
|
|
57
|
+
"bun",
|
|
58
|
+
"bunx",
|
|
59
|
+
"deno",
|
|
60
|
+
"tsx",
|
|
61
|
+
"ts-node"
|
|
62
|
+
]);
|
|
63
|
+
var UNREAD_RUNNERS = /^(?:sh|bash|dash|zsh|ksh|ash|mksh|busybox|fish|csh|tcsh|pwsh|powershell|cmd|wsl|python[0-9.]*|pypy[0-9.]*|node|nodejs|deno|bun|perl[0-9.]*|ruby|php[0-9.]*|lua[0-9.]*|osascript|awk|gawk|mawk|nawk|sed|gsed|tclsh|expect|eval|source|\.|xargs|parallel|watch|su|runuser|ssh|script|flock|at|batch|crontab|trap)$/;
|
|
64
|
+
var RECIPE_RUNNERS = /^(?:make|gmake|bmake|pmake|just|rake|ninja|samu|cmake|invoke|doit|scons|bazel|bazelisk|gradle|gradlew|mvn|mvnw|ant|cargo|npm|pnpm|yarn|corepack)$/;
|
|
65
|
+
var PURE_FILTERS = /* @__PURE__ */ new Set([
|
|
66
|
+
"sort",
|
|
67
|
+
"uniq",
|
|
68
|
+
"cut",
|
|
69
|
+
"tac",
|
|
70
|
+
"rev",
|
|
71
|
+
"nl",
|
|
72
|
+
"comm",
|
|
73
|
+
"column",
|
|
74
|
+
"fold",
|
|
75
|
+
"expand",
|
|
76
|
+
"unexpand",
|
|
77
|
+
"paste",
|
|
78
|
+
"jq"
|
|
79
|
+
]);
|
|
80
|
+
var BENIGN_HEADS = /* @__PURE__ */ new Set([
|
|
81
|
+
...TEXT_ONLY_HEADS,
|
|
82
|
+
"tee",
|
|
83
|
+
"chmod",
|
|
84
|
+
"chown",
|
|
85
|
+
"cd",
|
|
86
|
+
"pushd",
|
|
87
|
+
"popd",
|
|
88
|
+
"true",
|
|
89
|
+
"false",
|
|
90
|
+
":",
|
|
91
|
+
"pwd",
|
|
92
|
+
"test",
|
|
93
|
+
"[",
|
|
94
|
+
"[[",
|
|
95
|
+
"sleep",
|
|
96
|
+
"export",
|
|
97
|
+
"unset",
|
|
98
|
+
"set",
|
|
99
|
+
"wait",
|
|
100
|
+
"date",
|
|
101
|
+
"id",
|
|
102
|
+
"whoami",
|
|
103
|
+
"ln",
|
|
104
|
+
"link",
|
|
105
|
+
"install",
|
|
106
|
+
"hash",
|
|
107
|
+
"command",
|
|
108
|
+
"type"
|
|
109
|
+
]);
|
|
110
|
+
var TRANSFORM_HEADS = /* @__PURE__ */ new Set([
|
|
111
|
+
"sed",
|
|
112
|
+
"gsed",
|
|
113
|
+
"awk",
|
|
114
|
+
"gawk",
|
|
115
|
+
"mawk",
|
|
116
|
+
"nawk",
|
|
117
|
+
"rev",
|
|
118
|
+
"tr",
|
|
119
|
+
"perl",
|
|
120
|
+
"python",
|
|
121
|
+
"python3",
|
|
122
|
+
"ruby",
|
|
123
|
+
"node",
|
|
124
|
+
"nodejs",
|
|
125
|
+
"php",
|
|
126
|
+
"lua",
|
|
127
|
+
"cut",
|
|
128
|
+
"paste",
|
|
129
|
+
"tac",
|
|
130
|
+
"fold",
|
|
131
|
+
"od",
|
|
132
|
+
"iconv",
|
|
133
|
+
"envsubst",
|
|
134
|
+
"m4",
|
|
135
|
+
"jq",
|
|
136
|
+
"column",
|
|
137
|
+
"expand",
|
|
138
|
+
"unexpand",
|
|
139
|
+
"sort",
|
|
140
|
+
"uniq",
|
|
141
|
+
"split",
|
|
142
|
+
"csplit"
|
|
143
|
+
]);
|
|
144
|
+
var DECODER_HEADS = /* @__PURE__ */ new Set([
|
|
145
|
+
"base64",
|
|
146
|
+
"base32",
|
|
147
|
+
"basenc",
|
|
148
|
+
"xxd",
|
|
149
|
+
"uudecode",
|
|
150
|
+
"openssl",
|
|
151
|
+
"gzip",
|
|
152
|
+
"gunzip",
|
|
153
|
+
"zcat",
|
|
154
|
+
"bzcat",
|
|
155
|
+
"bunzip2",
|
|
156
|
+
"xzcat",
|
|
157
|
+
"unxz",
|
|
158
|
+
"zstdcat",
|
|
159
|
+
"unzstd"
|
|
160
|
+
]);
|
|
161
|
+
var ENCODED_SHELL = /\b(?:pwsh|powershell)(?:\.exe)?\b[^\n]*\s-e(?:c|nc(?:odedcommand)?)?\s+[a-z0-9+/=]{8,}/i;
|
|
162
|
+
var CLI_THEN_OPERATOR = /(?:^|[^a-z0-9_.-])(?:namzu(?:\.(?:exe|cmd|bat|ps1))?|@namzu\/cli(?:@[a-z0-9._-]+)?|bin\.[cm]?js)(?![a-z0-9_-])[\s\S]{0,400}?(?:(?:^|[^a-z0-9_.-])mcp(?![a-z0-9_-])[\s\S]{0,400}?(?:^|[^a-z0-9_.-])approve(?![a-z0-9_-])|(?:^|[^a-z0-9_.-])acp(?![a-z0-9_-])[\s\S]{0,400}?(?:^|\s)--desktop(?![a-z0-9_-]))/;
|
|
163
|
+
var CLI_THEN_SEND = /(?:^|[^a-z0-9_.-])(?:namzu(?:\.(?:exe|cmd|bat|ps1))?|@namzu\/cli(?:@[a-z0-9._-]+)?|bin\.[cm]?js)(?![a-z0-9_-])[\s\S]{0,400}?(?:^|[^a-z0-9_.-])send(?![a-z0-9_-])/;
|
|
164
|
+
function lower(text) {
|
|
165
|
+
return text.toLowerCase();
|
|
166
|
+
}
|
|
167
|
+
__name(lower, "lower");
|
|
168
|
+
function commandName(value) {
|
|
169
|
+
const cut = Math.max(value.lastIndexOf("/"), value.lastIndexOf("\\"));
|
|
170
|
+
return lower(cut < 0 ? value : value.slice(cut + 1)).replace(CLI_EXTENSIONS, "");
|
|
171
|
+
}
|
|
172
|
+
__name(commandName, "commandName");
|
|
173
|
+
function namesCli(value) {
|
|
174
|
+
const name = commandName(value);
|
|
175
|
+
return name === "namzu" || lower(value).includes("@namzu/cli") || CLI_ENTRY.test(name);
|
|
176
|
+
}
|
|
177
|
+
__name(namesCli, "namesCli");
|
|
178
|
+
var ROOT_VALUES = /* @__PURE__ */ new Set([
|
|
179
|
+
"-f",
|
|
180
|
+
"--format",
|
|
181
|
+
"--profile",
|
|
182
|
+
"--log-format",
|
|
183
|
+
"--settings",
|
|
184
|
+
"--debug-file",
|
|
185
|
+
"-n",
|
|
186
|
+
"--name",
|
|
187
|
+
"--model",
|
|
188
|
+
"--provider",
|
|
189
|
+
"--account",
|
|
190
|
+
"--permission-mode",
|
|
191
|
+
"--allowed-tools",
|
|
192
|
+
"--disallowed-tools",
|
|
193
|
+
"--fallback-model",
|
|
194
|
+
"--add-dir",
|
|
195
|
+
"--plugin-dir",
|
|
196
|
+
"--mcp-config",
|
|
197
|
+
"--output-schema",
|
|
198
|
+
"--max-output-tokens",
|
|
199
|
+
"--effort",
|
|
200
|
+
"--append-system-prompt",
|
|
201
|
+
"--system-prompt",
|
|
202
|
+
"--output-format",
|
|
203
|
+
"--input-format",
|
|
204
|
+
"--max-budget-usd",
|
|
205
|
+
"--message",
|
|
206
|
+
"--tools"
|
|
207
|
+
]);
|
|
208
|
+
var ROOT_BOOLEANS = /* @__PURE__ */ new Set([
|
|
209
|
+
"-q",
|
|
210
|
+
"--quiet",
|
|
211
|
+
"-v",
|
|
212
|
+
"--verbose",
|
|
213
|
+
"--debug",
|
|
214
|
+
"-p",
|
|
215
|
+
"--print",
|
|
216
|
+
"-c",
|
|
217
|
+
"--continue",
|
|
218
|
+
"-V",
|
|
219
|
+
"--version",
|
|
220
|
+
"-h",
|
|
221
|
+
"--help",
|
|
222
|
+
"--dangerously-skip-permissions",
|
|
223
|
+
"--allow-dangerously-skip-permissions",
|
|
224
|
+
"--no-done-gate",
|
|
225
|
+
"--fast",
|
|
226
|
+
"--bare",
|
|
227
|
+
"--teams",
|
|
228
|
+
"--strict-mcp-config"
|
|
229
|
+
]);
|
|
230
|
+
var ROOT_OPTIONAL_VALUES = /* @__PURE__ */ new Set(["-w", "--worktree", "-r", "--resume", "--from-pr"]);
|
|
231
|
+
var DYNAMIC_COMMAND = "its program or subcommand is selected at runtime";
|
|
232
|
+
function cliArguments(words, extraArguments = false) {
|
|
233
|
+
for (let index = 0; index < words.length; index++) {
|
|
234
|
+
const word = words[index];
|
|
235
|
+
if (!word) continue;
|
|
236
|
+
if (word.expands) return DYNAMIC_COMMAND;
|
|
237
|
+
const value = lower(word.value);
|
|
238
|
+
if (value === "--") continue;
|
|
239
|
+
if (value === "send") return "it runs `namzu send`";
|
|
240
|
+
if (value === "mcp") {
|
|
241
|
+
const verb = words[index + 1];
|
|
242
|
+
if (verb?.expands || !verb && extraArguments) return DYNAMIC_COMMAND;
|
|
243
|
+
return lower(verb?.value ?? "") === "approve" ? "it runs `namzu mcp approve`" : null;
|
|
244
|
+
}
|
|
245
|
+
if (value === "acp") {
|
|
246
|
+
for (const argument of words.slice(index + 1)) {
|
|
247
|
+
if (argument.expands) return DYNAMIC_COMMAND;
|
|
248
|
+
if (/^--desktop(?:=|$)/.test(lower(argument.value))) return "it runs `namzu acp --desktop`";
|
|
249
|
+
}
|
|
250
|
+
return extraArguments ? DYNAMIC_COMMAND : null;
|
|
251
|
+
}
|
|
252
|
+
if (!value.startsWith("-")) return null;
|
|
253
|
+
const next = words[index + 1];
|
|
254
|
+
const written = word.value;
|
|
255
|
+
const flags = written.startsWith("--") ? [written.split("=")[0] ?? written] : [...written.slice(1)].map((flag2) => `-${flag2}`);
|
|
256
|
+
if (flags.some(
|
|
257
|
+
(flag2) => !ROOT_VALUES.has(flag2) && !ROOT_OPTIONAL_VALUES.has(flag2) && !ROOT_BOOLEANS.has(flag2)
|
|
258
|
+
))
|
|
259
|
+
return DYNAMIC_COMMAND;
|
|
260
|
+
const valueIndex = flags.findIndex(
|
|
261
|
+
(flag2) => ROOT_VALUES.has(flag2) || ROOT_OPTIONAL_VALUES.has(flag2)
|
|
262
|
+
);
|
|
263
|
+
const flag = flags[valueIndex];
|
|
264
|
+
if (flag !== void 0 && !(written.startsWith("--") && written.includes("=")) && valueIndex === flags.length - 1 && (ROOT_VALUES.has(flag) || !next?.value.startsWith("-"))) {
|
|
265
|
+
if (next?.expands) return DYNAMIC_COMMAND;
|
|
266
|
+
index++;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return extraArguments ? DYNAMIC_COMMAND : null;
|
|
270
|
+
}
|
|
271
|
+
__name(cliArguments, "cliArguments");
|
|
272
|
+
function evalText(source, dialect, depth) {
|
|
273
|
+
if (depth >= 8) return DYNAMIC_COMMAND;
|
|
274
|
+
const reading = lexShellCommandLine(source, { dialect });
|
|
275
|
+
for (const nested of reading.commands) {
|
|
276
|
+
const found = runsSend(nested, dialect, depth + 1);
|
|
277
|
+
if (found) return found;
|
|
278
|
+
}
|
|
279
|
+
return reading.opaque && unreadOperation(source) ? DYNAMIC_COMMAND : null;
|
|
280
|
+
}
|
|
281
|
+
__name(evalText, "evalText");
|
|
282
|
+
var XARGS_VALUES = /* @__PURE__ */ new Set([
|
|
283
|
+
"-a",
|
|
284
|
+
"-d",
|
|
285
|
+
"-E",
|
|
286
|
+
"-e",
|
|
287
|
+
"-L",
|
|
288
|
+
"-l",
|
|
289
|
+
"-n",
|
|
290
|
+
"-P",
|
|
291
|
+
"-s",
|
|
292
|
+
"--arg-file",
|
|
293
|
+
"--delimiter",
|
|
294
|
+
"--eof",
|
|
295
|
+
"--max-lines",
|
|
296
|
+
"--max-args",
|
|
297
|
+
"--max-procs",
|
|
298
|
+
"--max-chars"
|
|
299
|
+
]);
|
|
300
|
+
function replacementIn(words) {
|
|
301
|
+
for (let index = 0; index < words.length; index++) {
|
|
302
|
+
const value = words[index]?.value;
|
|
303
|
+
if (!value || !value.startsWith("-") || value === "--") return void 0;
|
|
304
|
+
if (value === "-I") return words[index + 1]?.value;
|
|
305
|
+
if (value === "-i" || value === "--replace") return "{}";
|
|
306
|
+
if (value.startsWith("-I") || value.startsWith("-i")) return value.slice(2);
|
|
307
|
+
if (value.startsWith("--replace=")) return value.slice("--replace=".length);
|
|
308
|
+
if (XARGS_VALUES.has(value)) index++;
|
|
309
|
+
}
|
|
310
|
+
return void 0;
|
|
311
|
+
}
|
|
312
|
+
__name(replacementIn, "replacementIn");
|
|
313
|
+
function runsSend(command, dialect, depth = 0) {
|
|
314
|
+
const words = command.words.slice(command.assignments);
|
|
315
|
+
const head = words[0];
|
|
316
|
+
if (!head) return null;
|
|
317
|
+
if (head.expands) return DYNAMIC_COMMAND;
|
|
318
|
+
const headName = commandName(head.value);
|
|
319
|
+
if (TEXT_ONLY_HEADS.has(headName)) return null;
|
|
320
|
+
const positions = programPositions(command, dialect);
|
|
321
|
+
if (positions.some(({ word }) => word?.expands)) return DYNAMIC_COMMAND;
|
|
322
|
+
const nested = nestedShellCommand(words);
|
|
323
|
+
if (nested && "opaque" in nested && (nested.opaque === "nested shell option" || nested.opaque === "nested shell command is expanded at runtime"))
|
|
324
|
+
return DYNAMIC_COMMAND;
|
|
325
|
+
if (positions.some(
|
|
326
|
+
({ unknown }) => unknown?.startsWith("find substitutes") || unknown?.startsWith("find's own")
|
|
327
|
+
))
|
|
328
|
+
return DYNAMIC_COMMAND;
|
|
329
|
+
if (headName === "eval") {
|
|
330
|
+
return evalText(
|
|
331
|
+
words.slice(1).map((word) => word.value).join(" "),
|
|
332
|
+
dialect,
|
|
333
|
+
depth
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
if (headName === "alias") {
|
|
337
|
+
for (const word of words.slice(1)) {
|
|
338
|
+
const equals = word.value.indexOf("=");
|
|
339
|
+
if (equals < 0) continue;
|
|
340
|
+
if (word.expands) return DYNAMIC_COMMAND;
|
|
341
|
+
const source = word.value.slice(equals + 1);
|
|
342
|
+
const found = evalText(source, dialect, depth);
|
|
343
|
+
if (found) return found;
|
|
344
|
+
for (const nested2 of lexShellCommandLine(source, { dialect }).commands) {
|
|
345
|
+
const program = nested2.words.findIndex((arg) => !arg.expands && namesCli(arg.value));
|
|
346
|
+
if (program >= 0 && cliArguments(nested2.words.slice(program + 1), true))
|
|
347
|
+
return "it aliases the CLI with a command left to the caller";
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return null;
|
|
351
|
+
}
|
|
352
|
+
const named = /* @__PURE__ */ __name((word) => !word.expands && !word.value.includes("=") && namesCli(word.value), "named");
|
|
353
|
+
const parsedProgram = positions.find(({ word }) => word && words.includes(word))?.word;
|
|
354
|
+
const runner = words.findIndex((word) => !word.expands && commandName(word.value) === "xargs");
|
|
355
|
+
if (parsedProgram && named(parsedProgram)) {
|
|
356
|
+
const index = words.indexOf(parsedProgram);
|
|
357
|
+
if (runner < 0 || runner > index) return cliArguments(words.slice(index + 1));
|
|
358
|
+
}
|
|
359
|
+
const replacement = runner >= 0 ? replacementIn(words.slice(runner + 1)) : void 0;
|
|
360
|
+
if (replacement && parsedProgram?.value.includes(replacement)) return DYNAMIC_COMMAND;
|
|
361
|
+
if (runner >= 0 && positions.some(({ unknown }) => unknown?.includes("built from its input"))) {
|
|
362
|
+
return DYNAMIC_COMMAND;
|
|
363
|
+
}
|
|
364
|
+
const direct = positions.map(({ word }) => word && named(word) ? words.indexOf(word) : -1).filter((index) => index >= 0);
|
|
365
|
+
const unknownProgram = positions.some(({ unknown }) => unknown !== void 0);
|
|
366
|
+
const runtime = positions.map(({ word }) => word).find((word) => word && JS_RUNNERS.has(commandName(word.value)));
|
|
367
|
+
const candidates = direct.length > 0 ? direct : [unknownProgram || runtime ? words.findIndex(named) : -1];
|
|
368
|
+
if (candidates[0] === -1) {
|
|
369
|
+
if (runtime) {
|
|
370
|
+
const entry = words.findIndex(
|
|
371
|
+
(word, index) => index > words.indexOf(runtime) && word.expands && !word.value.startsWith("-")
|
|
372
|
+
);
|
|
373
|
+
if (entry >= 0 && cliArguments(words.slice(entry + 1))) return DYNAMIC_COMMAND;
|
|
374
|
+
}
|
|
375
|
+
if (positions.some(({ unknown }) => unknown !== void 0)) {
|
|
376
|
+
for (const [index, word] of words.entries()) {
|
|
377
|
+
if (word.expands && !word.value.includes("=") && (index === words.length - 1 || cliArguments(words.slice(index + 1))))
|
|
378
|
+
return DYNAMIC_COMMAND;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
return null;
|
|
382
|
+
}
|
|
383
|
+
const substitute = replacement ?? (headName === "find" ? "{}" : void 0);
|
|
384
|
+
for (const cli of candidates) {
|
|
385
|
+
const end = headName === "find" ? words.findIndex(
|
|
386
|
+
(word, index) => index > cli && !word.expands && (word.value === ";" || word.value === "+")
|
|
387
|
+
) : -1;
|
|
388
|
+
const args = words.slice(cli + 1, end < 0 ? void 0 : end).map(
|
|
389
|
+
(word) => substitute && word.value.includes(substitute) ? { ...word, expands: true } : word
|
|
390
|
+
);
|
|
391
|
+
const found = cliArguments(args, runner >= 0);
|
|
392
|
+
if (found) return found;
|
|
393
|
+
}
|
|
394
|
+
return null;
|
|
395
|
+
}
|
|
396
|
+
__name(runsSend, "runsSend");
|
|
397
|
+
var TEXT_HEADS_THAT_RUN = /* @__PURE__ */ new Set(["git", "man", "rg", "ag"]);
|
|
398
|
+
var DEBUGGERS = /* @__PURE__ */ new Set(["gdb", "cgdb", "lldb", "rr", "ddd", "gdbserver"]);
|
|
399
|
+
var PROSE_OPTION = /^-[a-z]*m$|^-[SG]$|^--(?:message|grep|author|body|title|notes?|comment)$/i;
|
|
400
|
+
var PROSE_GLUED = /^--(?:message|grep|author|body|title|notes?|comment)=|^-[SG]./i;
|
|
401
|
+
var SEARCH_RUNS = /^--(?:pre|hostname-bin|pager)(?:=|$)/i;
|
|
402
|
+
function argumentsRunOperation(words, prose, anyOrder = false) {
|
|
403
|
+
const tokens = [];
|
|
404
|
+
for (const [index, word] of words.entries()) {
|
|
405
|
+
const previous = words[index - 1]?.value;
|
|
406
|
+
if (prose && previous !== void 0 && PROSE_OPTION.test(previous)) continue;
|
|
407
|
+
if (prose && (/^-m./.test(word.value) || PROSE_GLUED.test(word.value))) continue;
|
|
408
|
+
for (const part of lower(word.value).split(/[\s;&|()<>`"'$!={}:,#]+/)) {
|
|
409
|
+
if (part === "") continue;
|
|
410
|
+
tokens.push(part.includes("@namzu/cli") ? "namzu" : part);
|
|
411
|
+
if (part.startsWith("-") && part.includes("namzu"))
|
|
412
|
+
tokens.push(part.slice(part.indexOf("namzu")));
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
const at = tokens.findIndex((token) => commandName(token) === "namzu");
|
|
416
|
+
if (at < 0) return null;
|
|
417
|
+
const after = anyOrder ? tokens : tokens.slice(at + 1);
|
|
418
|
+
if (after.includes("send")) return "it hands a program the words `namzu send`";
|
|
419
|
+
const mcp = after.indexOf("mcp");
|
|
420
|
+
if (mcp >= 0 && after.slice(mcp + 1).includes("approve"))
|
|
421
|
+
return "it hands a program the words `namzu mcp approve`";
|
|
422
|
+
const acp = after.indexOf("acp");
|
|
423
|
+
if (acp >= 0 && after.slice(acp + 1).includes("--desktop"))
|
|
424
|
+
return "it hands a program the words `namzu acp --desktop`";
|
|
425
|
+
return null;
|
|
426
|
+
}
|
|
427
|
+
__name(argumentsRunOperation, "argumentsRunOperation");
|
|
428
|
+
function handedWords(head, words) {
|
|
429
|
+
if (head !== "rg" && head !== "ag") return words;
|
|
430
|
+
return words.filter(
|
|
431
|
+
(word, index) => SEARCH_RUNS.test(word.value) || SEARCH_RUNS.test(words[index - 1]?.value ?? "")
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
__name(handedWords, "handedWords");
|
|
435
|
+
function handsOnlyText(command, dialect) {
|
|
436
|
+
const positions = programPositions(command, dialect);
|
|
437
|
+
return positions.length > 0 && positions.every(
|
|
438
|
+
({ word, unknown }) => unknown === void 0 && word !== void 0 && !word.expands && TEXT_ONLY_HEADS.has(commandName(word.value)) && !TEXT_HEADS_THAT_RUN.has(commandName(word.value))
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
__name(handsOnlyText, "handsOnlyText");
|
|
442
|
+
function runsUnreadText(command, dialect, written) {
|
|
443
|
+
const words = command.words.slice(command.assignments);
|
|
444
|
+
if (written.size > 0 && words[0] && !words[0].expands && !namesCliItself(words[0])) {
|
|
445
|
+
const name = commandName(words[0].value);
|
|
446
|
+
const filter = PURE_FILTERS.has(name) && !words.some((word) => /^--(?:compress-program|files0-from|pre)/.test(word.value));
|
|
447
|
+
if (!BENIGN_HEADS.has(name) && !filter) return true;
|
|
448
|
+
if (TEXT_HEADS_THAT_RUN.has(name)) {
|
|
449
|
+
const handed = command.words.some(
|
|
450
|
+
(word) => lower(word.value).split(/[=/:\s,]+/).some((part) => part !== "" && written.has(part))
|
|
451
|
+
);
|
|
452
|
+
const hooks = [...written].some(
|
|
453
|
+
(entry) => /^path:.*(?:\.git\/|\.husky|\.gitconfig|\.gitattributes)/.test(entry)
|
|
454
|
+
);
|
|
455
|
+
if (handed || hooks) return true;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
const nested = nestedShellCommand(words);
|
|
459
|
+
if (nested !== null && "payload" in nested) return false;
|
|
460
|
+
const own = words[0];
|
|
461
|
+
if (own && !own.expands && !namesCliItself(own)) {
|
|
462
|
+
const name = commandName(own.value);
|
|
463
|
+
if (own.value.includes("/") || own.value.includes("\\") || RECIPE_RUNNERS.test(name) || written.has(name))
|
|
464
|
+
return true;
|
|
465
|
+
}
|
|
466
|
+
const positions = programPositions(command, dialect);
|
|
467
|
+
return positions.some(
|
|
468
|
+
({ word, unknown }) => unknown !== void 0 || word !== void 0 && UNREAD_RUNNERS.test(commandName(word.value))
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
__name(runsUnreadText, "runsUnreadText");
|
|
472
|
+
function writtenNames(commands) {
|
|
473
|
+
const names = /* @__PURE__ */ new Set();
|
|
474
|
+
const add = /* @__PURE__ */ __name((word) => {
|
|
475
|
+
if (word && word.value !== "" && !word.value.startsWith("-")) {
|
|
476
|
+
names.add(commandName(word.value));
|
|
477
|
+
names.add(`path:${lower(word.value)}`);
|
|
478
|
+
}
|
|
479
|
+
}, "add");
|
|
480
|
+
for (const command of commands) {
|
|
481
|
+
for (const redirection of command.redirections) {
|
|
482
|
+
if (/^(?:&?>>?|>\||<>)$/.test(redirection.operator)) add(redirection.target);
|
|
483
|
+
}
|
|
484
|
+
const own = command.words.slice(command.assignments);
|
|
485
|
+
const head = own[0] ? commandName(own[0].value) : "";
|
|
486
|
+
if (head === "tee") for (const word of own.slice(1)) add(word);
|
|
487
|
+
if (["cp", "mv", "ln", "install", "link"].includes(head)) add(own[own.length - 1]);
|
|
488
|
+
if (head === "dd") {
|
|
489
|
+
for (const word of own.slice(1))
|
|
490
|
+
if (word.value.startsWith("of=")) add({ ...word, value: word.value.slice(3) });
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return names;
|
|
494
|
+
}
|
|
495
|
+
__name(writtenNames, "writtenNames");
|
|
496
|
+
function obscuredText(commands, written) {
|
|
497
|
+
const why = "it runs text that a decoder, an editor, an escape or a variable builds";
|
|
498
|
+
const feedsShell = commands.some(readsProgramFromStdin);
|
|
499
|
+
for (const command of commands) {
|
|
500
|
+
const own = command.words.slice(command.assignments);
|
|
501
|
+
const head = own[0] ? commandName(own[0].value) : "";
|
|
502
|
+
if (DECODER_HEADS.has(head)) return why;
|
|
503
|
+
if (/^[gmn]?awk$/.test(head) && own.slice(1).some((word) => /[>|]|system\(/.test(word.value)))
|
|
504
|
+
return why;
|
|
505
|
+
if (written.size === 0 && !feedsShell) continue;
|
|
506
|
+
if (TRANSFORM_HEADS.has(head)) {
|
|
507
|
+
if (runsAProgramItWasGiven(command, commands, written)) continue;
|
|
508
|
+
return why;
|
|
509
|
+
}
|
|
510
|
+
if (head === "echo" || head === "printf" || head === "cat") {
|
|
511
|
+
const args = own.slice(1);
|
|
512
|
+
if (args.some((word) => word.expands || /\\(?:x|u|[0-7])|[$`]|\{[^{}]*,/i.test(word.value)))
|
|
513
|
+
return why;
|
|
514
|
+
if (head === "printf" && args.some((word) => word.value.includes("%"))) return why;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return null;
|
|
518
|
+
}
|
|
519
|
+
__name(obscuredText, "obscuredText");
|
|
520
|
+
var INTERPRETER_HEADS = /^(?:python[0-9.]*|pypy[0-9.]*|node|nodejs|perl[0-9.]*|ruby|php[0-9.]*|lua[0-9.]*)$/;
|
|
521
|
+
function runsAProgramItWasGiven(command, commands, written) {
|
|
522
|
+
const own = command.words.slice(command.assignments);
|
|
523
|
+
const head = own[0];
|
|
524
|
+
if (!head || head.expands || !INTERPRETER_HEADS.test(commandName(head.value))) return false;
|
|
525
|
+
if (command.redirections.some((r) => /^(?:&?>>?|>\||<>)$/.test(r.operator))) return false;
|
|
526
|
+
if (commands.some((other) => other !== command && readsProgramFromStdin(other))) return false;
|
|
527
|
+
const rest = own.slice(1).map((word) => word.value);
|
|
528
|
+
if (rest.some((value) => /^-[a-z]*[ceEpr]/.test(value) && !value.startsWith("--"))) return false;
|
|
529
|
+
const operands = rest.filter((value) => !value.startsWith("-") || value === "-");
|
|
530
|
+
return readsProgramFromStdin(command) || operands.length > 0 && operands.every((value) => written.has(commandName(value)));
|
|
531
|
+
}
|
|
532
|
+
__name(runsAProgramItWasGiven, "runsAProgramItWasGiven");
|
|
533
|
+
function namesCliItself(word) {
|
|
534
|
+
if (word.expands && /namzu/i.test(word.value)) return true;
|
|
535
|
+
if (/(?:^|[/\\])(?:\.namzu[/\\]dev|@namzu|namzu)(?:[/\\]|$)/i.test(word.value)) return true;
|
|
536
|
+
const last = word.value.split(/[/\\]/).pop() ?? "";
|
|
537
|
+
if (/[*?[]/.test(last) && /[a-z]/i.test(last)) {
|
|
538
|
+
const pattern = last.replace(/[.+^${}()|\\]/g, "\\$&").replace(/\*/g, ".*").replace(/\?/g, ".");
|
|
539
|
+
try {
|
|
540
|
+
if (new RegExp(`^${pattern}$`, "i").test("namzu")) return true;
|
|
541
|
+
} catch {
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
if (word.expands) return false;
|
|
545
|
+
const name = commandName(word.value);
|
|
546
|
+
return name === "namzu" || /^bin\.[cm]?js$/.test(name) || lower(word.value).includes("@namzu/cli");
|
|
547
|
+
}
|
|
548
|
+
__name(namesCliItself, "namesCliItself");
|
|
549
|
+
function textVariants(line) {
|
|
550
|
+
const plain = lower(line).replace(/\\\n/g, "");
|
|
551
|
+
const noQuotes = plain.replace(/["'$`]/g, "");
|
|
552
|
+
const base = [noQuotes, noQuotes.replace(/\\[nrt]/g, " "), noQuotes.replace(/\\/g, "")];
|
|
553
|
+
const decoded = plain.replace(/\\x([0-9a-f]{2})/g, (_, h) => String.fromCharCode(Number.parseInt(h, 16))).replace(/\\u([0-9a-f]{4})/g, (_, h) => String.fromCharCode(Number.parseInt(h, 16))).replace(/\\0?([0-7]{1,3})/g, (_, o) => String.fromCharCode(Number.parseInt(o, 8)));
|
|
554
|
+
const joined = /* @__PURE__ */ __name((text) => text.replace(/["']\s*(?:\+|\.|,|\|\|)?\s*["']/g, ""), "joined");
|
|
555
|
+
const values = /* @__PURE__ */ new Map();
|
|
556
|
+
for (const [, name, value] of plain.matchAll(
|
|
557
|
+
/(?:^|[\s;&|(])([a-z_][a-z0-9_]*)=["']?([^\s;&|'"$`()]*)/g
|
|
558
|
+
))
|
|
559
|
+
if (name !== void 0) values.set(name, value ?? "");
|
|
560
|
+
const substituted = plain.replace(
|
|
561
|
+
/\$(?:\{([a-z_][a-z0-9_]*)\}|([a-z_][a-z0-9_]*))/g,
|
|
562
|
+
(all, a, b) => values.get(a ?? b ?? "") ?? all
|
|
563
|
+
);
|
|
564
|
+
const emptied = /* @__PURE__ */ __name((text) => text.replace(/\$\([^()]*\)|\$\{[^{}]*\}|\$[a-z_][a-z0-9_]*|\$[@*?!#$-]|`[^`]*`/g, "").replace(/["']/g, ""), "emptied");
|
|
565
|
+
const stripped = /* @__PURE__ */ __name((text) => text.replace(/["'$`\\]/g, ""), "stripped");
|
|
566
|
+
const variants = [
|
|
567
|
+
...base,
|
|
568
|
+
stripped(decoded),
|
|
569
|
+
stripped(joined(plain)),
|
|
570
|
+
stripped(joined(substituted)),
|
|
571
|
+
emptied(plain),
|
|
572
|
+
emptied(substituted)
|
|
573
|
+
];
|
|
574
|
+
for (const text of [stripped(substituted), emptied(plain)]) variants.push(...bracesOf(text));
|
|
575
|
+
return variants;
|
|
576
|
+
}
|
|
577
|
+
__name(textVariants, "textVariants");
|
|
578
|
+
function bracesOf(text) {
|
|
579
|
+
let results = [text];
|
|
580
|
+
for (let round = 0; round < 4; round++) {
|
|
581
|
+
const next = [];
|
|
582
|
+
for (const value of results) {
|
|
583
|
+
const group = /\{([^{}]*,[^{}]*)\}/.exec(value);
|
|
584
|
+
if (!group) {
|
|
585
|
+
next.push(value);
|
|
586
|
+
continue;
|
|
587
|
+
}
|
|
588
|
+
for (const word of (group[1] ?? "").split(",").slice(0, 6))
|
|
589
|
+
next.push(value.slice(0, group.index) + word + value.slice(group.index + group[0].length));
|
|
590
|
+
}
|
|
591
|
+
results = next.slice(0, 64);
|
|
592
|
+
}
|
|
593
|
+
return results;
|
|
594
|
+
}
|
|
595
|
+
__name(bracesOf, "bracesOf");
|
|
596
|
+
function unreadOperation(line, decoded) {
|
|
597
|
+
const variants = [...textVariants(line), ...decoded === void 0 ? [] : [decoded]];
|
|
598
|
+
if (variants.some((value) => CLI_THEN_OPERATOR.test(value)))
|
|
599
|
+
return "`mcp approve` or `acp --desktop`";
|
|
600
|
+
if (variants.some((value) => CLI_THEN_SEND.test(value))) return "`send`";
|
|
601
|
+
return null;
|
|
602
|
+
}
|
|
603
|
+
__name(unreadOperation, "unreadOperation");
|
|
604
|
+
function readsProgramFromStdin(command) {
|
|
605
|
+
const own = command.words.slice(command.assignments);
|
|
606
|
+
const head = own[0];
|
|
607
|
+
if (!head || head.expands) return false;
|
|
608
|
+
if (!/^(?:sh|bash|dash|zsh|ksh|ash|mksh|fish|csh|tcsh|python[0-9.]*|node|nodejs|perl|ruby|php|lua|tclsh)$/.test(
|
|
609
|
+
commandName(head.value)
|
|
610
|
+
))
|
|
611
|
+
return false;
|
|
612
|
+
const rest = own.slice(1).map((word) => word.value);
|
|
613
|
+
if (rest.some((value) => /^-[a-z]*[ceE]/.test(value) && !value.startsWith("--"))) return false;
|
|
614
|
+
if (rest.some((value) => /^(?:--version|--help|-[vVh]|-version)$/.test(value))) return false;
|
|
615
|
+
const operands = rest.filter((value) => !value.startsWith("-") || value === "-");
|
|
616
|
+
return operands.length === 0 || operands.every((value) => /^(?:-|\/dev\/stdin|\/proc\/self\/fd\/0)$/.test(value));
|
|
617
|
+
}
|
|
618
|
+
__name(readsProgramFromStdin, "readsProgramFromStdin");
|
|
619
|
+
var INLINE_CODE = /^(?:python[0-9.]*|pypy[0-9.]*|node|nodejs|bun|deno|perl[0-9.]*|ruby|php[0-9.]*|lua[0-9.]*|tclsh)$/;
|
|
620
|
+
var SPAWNS = /\b(?:system|exec[a-z]*|popen|spawn[a-z]*|subprocess|child_process|posix_spawn|shell_exec|passthru|proc_open|fork)\b|`/;
|
|
621
|
+
var WRITES = /\b(?:open|writefile[a-z]*|write|file_put_contents|puts|print)\b|>/;
|
|
622
|
+
var BUILDS = /["']\s*(?:\+|\.|%|\*)\s*["']|["']\s+["']|\bchr\(|fromcharcode|\.format\(|\.join\(|\bf["']|\$\{|#\{|%s|%[0-9]*[sd]|\\x[0-9a-f]{2}|\\u[0-9a-f]{4}|\\[0-7]{3}|fromhex|base64|atob|\bdecode\(|\beval\(|\bexec\(|getattr\(|__import__|\bpack\(|\bsprintf\(|\+=|\bn=|\$[a-z_]|\w\s*\+\s*["']|["']\s*\+\s*\w/i;
|
|
623
|
+
function inlineCodeBuildsCommand(commands) {
|
|
624
|
+
const why = "it hands an interpreter code that builds a command and runs it";
|
|
625
|
+
for (const command of commands) {
|
|
626
|
+
const own = command.words.slice(command.assignments);
|
|
627
|
+
const head = own[0];
|
|
628
|
+
if (!head || head.expands || !INLINE_CODE.test(commandName(head.value))) continue;
|
|
629
|
+
const code = lower(
|
|
630
|
+
own.slice(1).map((word) => word.value).join(" ")
|
|
631
|
+
);
|
|
632
|
+
if (!BUILDS.test(code)) continue;
|
|
633
|
+
if (SPAWNS.test(code)) return why;
|
|
634
|
+
if (WRITES.test(code) && commands.some((other) => {
|
|
635
|
+
if (other === command) return false;
|
|
636
|
+
const name = commandName(other.words[other.assignments]?.value ?? "");
|
|
637
|
+
return /^(?:sh|bash|dash|zsh|ksh|ash|source|\.|exec|python[0-9.]*|node|perl|ruby|make)$/.test(
|
|
638
|
+
name
|
|
639
|
+
) || /[/\\]/.test(name);
|
|
640
|
+
}))
|
|
641
|
+
return why;
|
|
642
|
+
}
|
|
643
|
+
return null;
|
|
644
|
+
}
|
|
645
|
+
__name(inlineCodeBuildsCommand, "inlineCodeBuildsCommand");
|
|
646
|
+
function findSendInLine(line, dialect = "sh") {
|
|
647
|
+
if (dialect === "cmd") {
|
|
648
|
+
let plain = lower(line).replace(/\^/g, "").replace(/["'`]/g, "");
|
|
649
|
+
for (const [, name, value] of plain.matchAll(/\bset\s+(?:\/a\s+)?([a-z0-9_]+)=([^&|\r\n]*)/g))
|
|
650
|
+
plain = plain.split(`%${name}%`).join(value ?? "").split(`!${name}!`).join(value ?? "");
|
|
651
|
+
const cli = /(?:^|[^a-z0-9_.-])(?:namzu(?:\.(?:exe|cmd|bat|ps1))?|@namzu\/cli|bin\.[cm]?js)(?![a-z0-9_-])/;
|
|
652
|
+
const word = /* @__PURE__ */ __name((name) => new RegExp(`(?:^|[^a-z0-9_.-])${name}(?![a-z0-9_-])`).test(plain), "word");
|
|
653
|
+
const operator = word("send") || word("mcp") && word("approve") || word("acp") && /--desktop/.test(plain);
|
|
654
|
+
return unreadOperation(line) || cli.test(plain) && operator ? "the command line names a person-only CLI command" : null;
|
|
655
|
+
}
|
|
656
|
+
const dialects = dialect === "bash" ? ["bash"] : ["sh", "bash"];
|
|
657
|
+
const readings = dialects.map((d) => lexShellCommandLine(line, { dialect: d }));
|
|
658
|
+
let unaccounted = false;
|
|
659
|
+
let obscured;
|
|
660
|
+
for (const [index, reading] of readings.entries()) {
|
|
661
|
+
const shell = dialects[index] ?? "sh";
|
|
662
|
+
const written = writtenNames(reading.commands);
|
|
663
|
+
const aliasing = reading.commands.some((command) => {
|
|
664
|
+
const own = command.words.slice(command.assignments);
|
|
665
|
+
const name = own[0] ? commandName(own[0].value) : "";
|
|
666
|
+
return ["ln", "link", "cp", "install", "hash"].includes(name) && own.slice(1).some(namesCliItself);
|
|
667
|
+
});
|
|
668
|
+
if (aliasing) {
|
|
669
|
+
const runsOther = reading.commands.some((command) => {
|
|
670
|
+
const own = command.words.slice(command.assignments);
|
|
671
|
+
const name = own[0] ? commandName(own[0].value) : "";
|
|
672
|
+
return own.length > 0 && !BENIGN_HEADS.has(name) && !namesCliItself(own[0]);
|
|
673
|
+
});
|
|
674
|
+
if (runsOther)
|
|
675
|
+
return "it links or copies the CLI under another name and runs something on the same line";
|
|
676
|
+
}
|
|
677
|
+
for (const command of reading.commands) {
|
|
678
|
+
const found = runsSend(command, shell);
|
|
679
|
+
if (found !== null) return found;
|
|
680
|
+
const own = command.words.slice(command.assignments);
|
|
681
|
+
const headName = own[0] ? commandName(own[0].value) : "";
|
|
682
|
+
if (!TEXT_ONLY_HEADS.has(headName) || TEXT_HEADS_THAT_RUN.has(headName)) {
|
|
683
|
+
for (const assignment of command.words.slice(0, command.assignments)) {
|
|
684
|
+
const handed = argumentsRunOperation([assignment], false) ?? (unreadOperation(assignment.value) ? "it holds the CLI and a person-only command" : null);
|
|
685
|
+
if (handed !== null) return `a variable it sets: ${handed}`;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
const runsCliItself = commandName(own[0]?.value ?? "") === "namzu";
|
|
689
|
+
if (own.length > 1 && !runsCliItself && (!TEXT_ONLY_HEADS.has(headName) || TEXT_HEADS_THAT_RUN.has(headName)) && !handsOnlyText(command, shell)) {
|
|
690
|
+
const handed = argumentsRunOperation(
|
|
691
|
+
handedWords(headName, own.slice(1)),
|
|
692
|
+
TEXT_HEADS_THAT_RUN.has(headName) || headName === "gh",
|
|
693
|
+
DEBUGGERS.has(headName)
|
|
694
|
+
);
|
|
695
|
+
if (handed !== null) return handed;
|
|
696
|
+
}
|
|
697
|
+
if (command.words[command.assignments]?.expands || runsUnreadText(command, shell, written))
|
|
698
|
+
unaccounted = true;
|
|
699
|
+
}
|
|
700
|
+
if (reading.opaque) unaccounted = true;
|
|
701
|
+
const runner = /* @__PURE__ */ __name((command) => !DECODER_HEADS.has(commandName(command.words[command.assignments]?.value ?? "")) && runsUnreadText(command, shell, written), "runner");
|
|
702
|
+
if (reading.commands.some(runner)) obscured ??= obscuredText(reading.commands, written);
|
|
703
|
+
const building = inlineCodeBuildsCommand(reading.commands);
|
|
704
|
+
if (building !== null) return building;
|
|
705
|
+
}
|
|
706
|
+
if (ENCODED_SHELL.test(line)) return "it hands a shell encoded text";
|
|
707
|
+
if (unaccounted && obscured) return obscured;
|
|
708
|
+
if (!unaccounted) return null;
|
|
709
|
+
const decoded = readings.flatMap((r) => r.commands.flatMap((c) => c.words.map((w) => lower(w.value)))).join(" ");
|
|
710
|
+
const pieces = readings.flatMap(
|
|
711
|
+
(r) => r.commands.filter((c) => TEXT_ONLY_HEADS.has(commandName(c.words[c.assignments]?.value ?? ""))).map(
|
|
712
|
+
(c) => c.words.slice(c.assignments + 1).map((w) => lower(w.value)).join(" ")
|
|
713
|
+
)
|
|
714
|
+
).join("");
|
|
715
|
+
const unread = unreadOperation(line, decoded) ?? unreadOperation(pieces);
|
|
716
|
+
return unread ? `it runs unread text naming the CLI and ${unread}` : null;
|
|
717
|
+
}
|
|
718
|
+
__name(findSendInLine, "findSendInLine");
|
|
719
|
+
function sendFloorRule() {
|
|
720
|
+
const builtins = builtinCommandArguments();
|
|
721
|
+
const find = /* @__PURE__ */ __name((call) => {
|
|
722
|
+
const argument = call.toolDef ? commandArgumentOf(call.toolDef) : builtins.get(call.toolName);
|
|
723
|
+
const input = call.toolInput;
|
|
724
|
+
if (argument === void 0 || typeof input !== "object" || input === null) return null;
|
|
725
|
+
const line = input[argument];
|
|
726
|
+
if (typeof line !== "string") return null;
|
|
727
|
+
try {
|
|
728
|
+
return findSendInLine(line, call.commandDialect);
|
|
729
|
+
} catch {
|
|
730
|
+
return unreadOperation(line) ? "the line cannot be read and names a command a session may not run" : null;
|
|
731
|
+
}
|
|
732
|
+
}, "find");
|
|
733
|
+
return {
|
|
734
|
+
type: "predicate",
|
|
735
|
+
description: SEND_FLOOR_REASON,
|
|
736
|
+
decide: /* @__PURE__ */ __name((call) => find(call) === null ? null : "deny", "decide"),
|
|
737
|
+
describe: /* @__PURE__ */ __name((call) => {
|
|
738
|
+
const why = find(call);
|
|
739
|
+
if (why === null) return null;
|
|
740
|
+
const reason = /mcp approve|acp --desktop/.test(why) ? OPERATOR_FLOOR_REASON : SEND_FLOOR_REASON;
|
|
741
|
+
return `${reason} (${why})`;
|
|
742
|
+
}, "describe")
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
__name(sendFloorRule, "sendFloorRule");
|
|
746
|
+
|
|
747
|
+
// src/permissions/read-only-gate.ts
|
|
748
|
+
var NETWORK_CATEGORY = "network";
|
|
749
|
+
var SEND_FLOOR = sendFloorRule();
|
|
750
|
+
var SEARCH_ALLOWANCE = { type: "allow_by_name", toolNames: ["web_search"] };
|
|
751
|
+
function cliGate(rules) {
|
|
752
|
+
return {
|
|
753
|
+
enabled: true,
|
|
754
|
+
allowReadOnlyTools: true,
|
|
755
|
+
allowReadOnlyExcludeCategories: [NETWORK_CATEGORY],
|
|
756
|
+
denyDangerousPatterns: true,
|
|
757
|
+
logDecisions: false,
|
|
758
|
+
// First, and deny-only: a command line a session runs may not run `namzu send`, in every permission
|
|
759
|
+
// mode and whatever a rule says. See `send-floor.ts`.
|
|
760
|
+
rules: [SEND_FLOOR, ...rules ?? [], SEARCH_ALLOWANCE]
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
__name(cliGate, "cliGate");
|
|
764
|
+
|
|
765
|
+
export {
|
|
766
|
+
cliGate
|
|
767
|
+
};
|
|
768
|
+
//# sourceMappingURL=chunk-J7NNGXJL.js.map
|