@namzu/cli 63.2.0 → 63.3.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 +57 -0
- package/README.md +36 -36
- package/dist/bin.js +1 -1
- package/dist/chunks/{acp-XC6FTO64.js → acp-J3TMCBRY.js} +242 -184
- package/dist/chunks/acp-J3TMCBRY.js.map +6 -0
- package/dist/chunks/{activity-command-PIH63SRU.js → activity-command-X25POZ3R.js} +15 -15
- package/dist/chunks/{add-CWIB4XVU.js → add-HL4MO6R2.js} +38 -38
- package/dist/chunks/{agent-CNRZCXHY.js → agent-MHH4MGYB.js} +67 -65
- package/dist/chunks/agent-session-OC32VSS6.js +107 -0
- package/dist/chunks/{apply-at-exit-CMRH3GQN.js → apply-at-exit-ADWMDFFQ.js} +7 -7
- package/dist/chunks/{archive-DPZ3PWUU.js → archive-6X2FED3E.js} +14 -14
- package/dist/chunks/{auth-JAKMDE4X.js → auth-KRORFNAA.js} +64 -27
- package/dist/chunks/auth-KRORFNAA.js.map +6 -0
- package/dist/chunks/{bin-main-V6PBLHRK.js → bin-main-74KBBJNG.js} +10 -9
- package/dist/chunks/bin-main-74KBBJNG.js.map +6 -0
- package/dist/chunks/{binding-UHJZD5Z3.js → binding-OXJ5TL6T.js} +3 -3
- package/dist/chunks/{browser-2QBVPHCB.js → browser-DFLZNRRZ.js} +7 -7
- package/dist/chunks/{chat-DJEP53BA.js → chat-PPSFN5JK.js} +18 -18
- package/dist/chunks/{chunk-4JKWOO7I.js → chunk-23AYRMS2.js} +4 -4
- package/dist/chunks/{chunk-5U4IA3HS.js → chunk-2AUUX6VA.js} +19 -1
- package/dist/chunks/chunk-2AUUX6VA.js.map +6 -0
- package/dist/chunks/{chunk-MUQOV75B.js → chunk-2H75JWKG.js} +3 -3
- package/dist/chunks/{chunk-NEOVE6D5.js → chunk-2JKQ6BFI.js} +2 -2
- package/dist/chunks/{chunk-UZVJQEYT.js → chunk-2KJUKF2E.js} +6 -6
- package/dist/chunks/{chunk-IYBVVKSB.js → chunk-2QGSHJ4Y.js} +3 -3
- package/dist/chunks/{chunk-ZNSVRCPH.js → chunk-2R6Z32IU.js} +3 -3
- package/dist/chunks/{chunk-7FGITTVH.js → chunk-2USTJGLA.js} +5 -5
- package/dist/chunks/{chunk-EIIJLF6W.js → chunk-333RR5BA.js} +4 -4
- package/dist/chunks/{chunk-MCIYCR57.js → chunk-33TGFQ2U.js} +5 -5
- package/dist/chunks/{chunk-C4RV2D57.js → chunk-3FFV4OSR.js} +4 -4
- package/dist/chunks/{chunk-QI4IEHLE.js → chunk-3QXUETDN.js} +4 -4
- package/dist/chunks/{chunk-4VTRURM6.js → chunk-3TLDTD6R.js} +14 -14
- package/dist/chunks/{chunk-ONEBRD5O.js → chunk-4ASXGRP5.js} +3 -3
- package/dist/chunks/{chunk-ZFOZVUUJ.js → chunk-4JPZYI6M.js} +2 -2
- package/dist/chunks/{chunk-7L3PTSKY.js → chunk-4OWFI7ZE.js} +16 -9
- package/dist/chunks/chunk-4OWFI7ZE.js.map +6 -0
- package/dist/chunks/{chunk-RBJDS73T.js → chunk-4TPXEWD5.js} +3 -3
- package/dist/chunks/{chunk-XJ4APISC.js → chunk-4U6TAYDK.js} +65 -12
- package/dist/chunks/chunk-4U6TAYDK.js.map +6 -0
- package/dist/chunks/chunk-4VKLCPVW.js +526 -0
- package/dist/chunks/chunk-4VKLCPVW.js.map +6 -0
- package/dist/chunks/{chunk-VVMI6HQM.js → chunk-554DVVVR.js} +611 -214
- package/dist/chunks/chunk-554DVVVR.js.map +6 -0
- package/dist/chunks/{chunk-COOW2AWX.js → chunk-5GJWIDVU.js} +3 -3
- package/dist/chunks/{chunk-RXFFBB7A.js → chunk-5PQHBLZI.js} +3 -3
- package/dist/chunks/{chunk-GMUWAUKQ.js → chunk-5UARTCJW.js} +2 -2
- package/dist/chunks/{chunk-Q5SAOE7Q.js → chunk-5XROCBT5.js} +9 -9
- package/dist/chunks/{chunk-WI6IGTC4.js → chunk-5YOREQIA.js} +3 -3
- package/dist/chunks/{chunk-4E5KFKJA.js → chunk-6CL7TQOC.js} +5 -5
- package/dist/chunks/{chunk-5B4BXZCI.js → chunk-75RHEPE7.js} +36 -3
- package/dist/chunks/chunk-75RHEPE7.js.map +6 -0
- package/dist/chunks/{chunk-N5YRJQPS.js → chunk-7RCI6OBE.js} +2 -2
- package/dist/chunks/{chunk-SIMI4VB7.js → chunk-7WPF7ATU.js} +3 -3
- package/dist/chunks/{chunk-DKZAHG7B.js → chunk-AAN4XLUD.js} +4 -4
- package/dist/chunks/{chunk-LDJXUI3Q.js → chunk-BB2RJOFI.js} +11 -11
- package/dist/chunks/{chunk-KGCHR4TQ.js → chunk-BBNACUZ3.js} +1527 -676
- package/dist/chunks/chunk-BBNACUZ3.js.map +6 -0
- package/dist/chunks/{chunk-ESWXNISI.js → chunk-BCHHHNLK.js} +2 -2
- package/dist/chunks/{chunk-C6JX3GVK.js → chunk-BUQCQMXH.js} +3 -3
- package/dist/chunks/{chunk-VLWMMDBY.js → chunk-COSMRH2Q.js} +5 -5
- package/dist/chunks/{chunk-4VMFD7UC.js → chunk-CPZEJQ2Z.js} +4 -4
- package/dist/chunks/{chunk-3AKPBYMA.js → chunk-DCVWFBYB.js} +2 -2
- package/dist/chunks/{chunk-ADGTOEHA.js → chunk-DD3BJ4GM.js} +9 -9
- package/dist/chunks/{chunk-4H2RPAXN.js → chunk-DKTU6RWO.js} +5 -5
- package/dist/chunks/{chunk-OWKPJJKH.js → chunk-EODC62SI.js} +4 -4
- package/dist/chunks/{chunk-IVTYJBJF.js → chunk-EOHPS7LC.js} +7 -7
- package/dist/chunks/{chunk-2LZAZAWT.js → chunk-EPSLHLT3.js} +8 -8
- package/dist/chunks/{chunk-SHUKR2A5.js → chunk-FAQQGJ2Z.js} +3 -3
- package/dist/chunks/{chunk-OQFX532E.js → chunk-FJPM4YAO.js} +4 -4
- package/dist/chunks/{chunk-TPMF64WM.js → chunk-FZSM7DSH.js} +11 -11
- package/dist/chunks/{chunk-MMQGQ7BJ.js → chunk-G3V2OKYP.js} +5 -5
- package/dist/chunks/{chunk-6WPK5S6Z.js → chunk-G4OR74MC.js} +10 -10
- package/dist/chunks/{chunk-TV7UBGX2.js → chunk-GCOTJ6XY.js} +147 -3
- package/dist/chunks/chunk-GCOTJ6XY.js.map +6 -0
- package/dist/chunks/{chunk-QWUHCBDT.js → chunk-HXZA5UUN.js} +2 -2
- package/dist/chunks/{chunk-2AWKLDCQ.js → chunk-IDIVB67E.js} +2 -2
- package/dist/chunks/{chunk-IISM3GHE.js → chunk-ISI36EUS.js} +3 -3
- package/dist/chunks/{chunk-SNHJJI52.js → chunk-IUMOIQKL.js} +10 -10
- package/dist/chunks/{chunk-P5LQ4NRD.js → chunk-J4NFH5T2.js} +2 -2
- package/dist/chunks/{chunk-HYHHGMBC.js → chunk-J6JBHNNR.js} +2 -2
- package/dist/chunks/{chunk-UGBHE6ZS.js → chunk-JCY3OPTY.js} +7 -7
- package/dist/chunks/{chunk-S76POTJP.js → chunk-JD7EWFIJ.js} +6 -6
- package/dist/chunks/chunk-JKMOMRIV.js +564 -0
- package/dist/chunks/chunk-JKMOMRIV.js.map +6 -0
- package/dist/chunks/{chunk-2K7EIRI2.js → chunk-JOVKHMJS.js} +8 -8
- package/dist/chunks/{chunk-GOKGPFXK.js → chunk-JQ7HNIBS.js} +6 -6
- package/dist/chunks/{chunk-I3HOLAAO.js → chunk-JSWFUARY.js} +3 -3
- package/dist/chunks/{chunk-NTUKFINL.js → chunk-JU3P3ZJJ.js} +3 -3
- package/dist/chunks/{chunk-ZLMO5YL4.js → chunk-JWBS363M.js} +2 -2
- package/dist/chunks/{chunk-HZGT5EHL.js → chunk-JXBSJNUF.js} +2 -2
- package/dist/chunks/{chunk-X6LDRLVN.js → chunk-JZTNWODR.js} +8 -8
- package/dist/chunks/{chunk-HJHZJKAD.js → chunk-K4AUROOC.js} +2 -2
- package/dist/chunks/{chunk-RL2CTUF2.js → chunk-KFFW7EYQ.js} +2 -2
- package/dist/chunks/{chunk-SEW4KEZ5.js → chunk-KGKVNHFC.js} +4 -4
- package/dist/chunks/{chunk-SOZSIDCY.js → chunk-KLIJLSWF.js} +2 -2
- package/dist/chunks/{chunk-ZZ7A2Y7O.js → chunk-LA6FHUOG.js} +4 -2
- package/dist/chunks/chunk-LA6FHUOG.js.map +6 -0
- package/dist/chunks/{chunk-BS3KGJJZ.js → chunk-LJFDFGFU.js} +8 -8
- package/dist/chunks/{chunk-O3T5CJQG.js → chunk-LZPPIRJW.js} +4 -4
- package/dist/chunks/{chunk-H624ADJH.js → chunk-MHEYQD24.js} +2 -2
- package/dist/chunks/{chunk-44KWXPBG.js → chunk-MM7HGD6H.js} +2 -2
- package/dist/chunks/{chunk-C56FUSQH.js → chunk-N4KE47J2.js} +2 -2
- package/dist/chunks/{chunk-QNRBLNA3.js → chunk-N4USZWBA.js} +3 -3
- package/dist/chunks/{chunk-GCLZEMDF.js → chunk-OIFFABSH.js} +4 -4
- package/dist/chunks/{chunk-NRR2SMR6.js → chunk-OKFU62GA.js} +3 -3
- package/dist/chunks/{chunk-G6YSAHKC.js → chunk-OWPDRJ6S.js} +2 -2
- package/dist/chunks/{chunk-LCZWTKIB.js → chunk-P4WMRT5Q.js} +2 -2
- package/dist/chunks/{chunk-EHKWQ7IS.js → chunk-PGHGBSS2.js} +2 -2
- package/dist/chunks/{chunk-OA76OH27.js → chunk-PLPVXHTM.js} +21 -21
- package/dist/chunks/{chunk-KE2RFCTY.js → chunk-PMA5NXWF.js} +6 -6
- package/dist/chunks/{chunk-VBG357AO.js → chunk-PP7AG46K.js} +293 -105
- package/dist/chunks/chunk-PP7AG46K.js.map +6 -0
- package/dist/chunks/{chunk-5RA5FZDM.js → chunk-PSRWFKFX.js} +2 -2
- package/dist/chunks/{chunk-NXFB5AP5.js → chunk-PTUICVCN.js} +5 -5
- package/dist/chunks/{chunk-YOPTDWON.js → chunk-Q23JN3PA.js} +3 -2
- package/dist/chunks/{chunk-YOPTDWON.js.map → chunk-Q23JN3PA.js.map} +1 -1
- package/dist/chunks/{chunk-ZIF4GK2U.js → chunk-Q5THGA3N.js} +2 -2
- package/dist/chunks/{chunk-AUDTDXWX.js → chunk-Q6NWIY5D.js} +35 -15
- package/dist/chunks/chunk-Q6NWIY5D.js.map +6 -0
- package/dist/chunks/{chunk-5SRVOPRS.js → chunk-QTR6UU63.js} +2 -2
- package/dist/chunks/{chunk-2YPRONTU.js → chunk-RBRBYXJX.js} +259 -103
- package/dist/chunks/chunk-RBRBYXJX.js.map +6 -0
- package/dist/chunks/{chunk-7BNKRTXM.js → chunk-RIVPA5TG.js} +5 -5
- package/dist/chunks/{chunk-HPUVBU7G.js → chunk-RQYSVELQ.js} +2 -2
- package/dist/chunks/{chunk-RKAZUYKY.js → chunk-RWSHMPFM.js} +2 -2
- package/dist/chunks/{chunk-CQNIP7QC.js → chunk-RZ3HYPV4.js} +6 -6
- package/dist/chunks/{chunk-3OHJYUFP.js → chunk-SCGWXYZW.js} +84 -37
- package/dist/chunks/chunk-SCGWXYZW.js.map +6 -0
- package/dist/chunks/{chunk-AFYS4U45.js → chunk-SDWOSB3L.js} +2 -2
- package/dist/chunks/{chunk-AT42FHTY.js → chunk-SPKNKEW5.js} +4 -4
- package/dist/chunks/{chunk-UUMISHVL.js → chunk-SQDZZCQJ.js} +2 -2
- package/dist/chunks/{chunk-KFB4RMNZ.js → chunk-SRNS347K.js} +2 -2
- package/dist/chunks/{chunk-GUOCXE6V.js → chunk-SX7FXWTB.js} +3 -3
- package/dist/chunks/{chunk-HS7PPGS3.js → chunk-T34DMFOM.js} +19 -7
- package/dist/chunks/chunk-T34DMFOM.js.map +6 -0
- package/dist/chunks/{chunk-WGN4AUAW.js → chunk-T6FMC7R5.js} +3 -3
- package/dist/chunks/{chunk-SHW5NXAS.js → chunk-TDCHFQVU.js} +2 -2
- package/dist/chunks/{chunk-6AINAG3P.js → chunk-TGQWC44Q.js} +2 -2
- package/dist/chunks/{chunk-XPTCRZ6F.js → chunk-TIM7OEJN.js} +3 -3
- package/dist/chunks/{chunk-MNQL7ZAW.js → chunk-TLSFOP3I.js} +170 -24
- package/dist/chunks/chunk-TLSFOP3I.js.map +6 -0
- package/dist/chunks/{chunk-TAPWAMDX.js → chunk-TO5ROEIW.js} +9 -9
- package/dist/chunks/{chunk-QTGW6FJG.js → chunk-TTBXKYFP.js} +6 -6
- package/dist/chunks/{chunk-757LAANV.js → chunk-TXCQMW7F.js} +5 -5
- package/dist/chunks/{chunk-WD5XJ5ZU.js → chunk-UCF6H5BB.js} +2 -2
- package/dist/chunks/{chunk-5ER7BU54.js → chunk-UP3ATLU6.js} +3 -3
- package/dist/chunks/{chunk-E5LJN2DV.js → chunk-UTC325FB.js} +3 -3
- package/dist/chunks/{chunk-A2GT47E2.js → chunk-V2DQFFLG.js} +1486 -1370
- package/dist/chunks/chunk-V2DQFFLG.js.map +6 -0
- package/dist/chunks/{chunk-C3UATI2T.js → chunk-VH647IFM.js} +2 -2
- package/dist/chunks/{chunk-5K6GFGCD.js → chunk-VMWPRI2S.js} +3 -3
- package/dist/chunks/{chunk-PTBKVAHY.js → chunk-VWJOJJNQ.js} +6 -6
- package/dist/chunks/{chunk-QVUF2FSM.js → chunk-W3QW6SK6.js} +13 -13
- package/dist/chunks/{chunk-P5UUY56J.js → chunk-W4EKIBRD.js} +3 -3
- package/dist/chunks/{chunk-SC3GK5QC.js → chunk-WMWRRDO2.js} +13 -13
- package/dist/chunks/{chunk-5TSOB5RI.js → chunk-WNBIAOXA.js} +2 -2
- package/dist/chunks/{chunk-Q7NB7LRR.js → chunk-WQL7MEOD.js} +2 -2
- package/dist/chunks/{chunk-335D56LG.js → chunk-X2LYTBDH.js} +3 -3
- package/dist/chunks/{chunk-OLX3IUKN.js → chunk-X4TVUANR.js} +9 -9
- package/dist/chunks/{chunk-EGRSUSP4.js → chunk-XBX3T6YY.js} +10 -10
- package/dist/chunks/{chunk-Z4UCKCEQ.js → chunk-XC6G27M2.js} +2 -2
- package/dist/chunks/{chunk-RXVJEZSV.js → chunk-XGH3FZ76.js} +2 -2
- package/dist/chunks/{chunk-6GCYUKNK.js → chunk-XK7NQIZA.js} +4 -4
- package/dist/chunks/{chunk-BHO3RAXS.js → chunk-XNMJLM5W.js} +12 -12
- package/dist/chunks/{chunk-G5MD6XCV.js → chunk-XORYHNZ3.js} +10 -10
- package/dist/chunks/{chunk-NJUB2ADX.js → chunk-XRAVC5W6.js} +36 -10
- package/dist/chunks/chunk-XRAVC5W6.js.map +6 -0
- package/dist/chunks/{chunk-EW2YVKTN.js → chunk-XTMUUGTN.js} +2 -2
- package/dist/chunks/{chunk-DO5JIP3I.js → chunk-Y36ZTLIJ.js} +4 -4
- package/dist/chunks/{chunk-NUMKSEG4.js → chunk-YCPK5ZTB.js} +3 -3
- package/dist/chunks/{chunk-HXINZ7D3.js → chunk-YRQ5PI7O.js} +3 -3
- package/dist/chunks/{chunk-V5DZWA6R.js → chunk-YVQE7BQ7.js} +242 -707
- package/dist/chunks/chunk-YVQE7BQ7.js.map +6 -0
- package/dist/chunks/{chunk-ORXNYBJU.js → chunk-YXR3LVZE.js} +3 -3
- package/dist/chunks/{chunk-4ABPUIBF.js → chunk-YYGE5EWH.js} +3 -3
- package/dist/chunks/{chunk-RJINNWMH.js → chunk-YZ6UKIKL.js} +4 -4
- package/dist/chunks/{chunk-L45TVHRJ.js → chunk-Z75IWPPX.js} +7 -7
- package/dist/chunks/{chunk-XNVZ6BPI.js → chunk-ZAQFM5BR.js} +6 -6
- package/dist/chunks/{chunk-FDLXZRE4.js → chunk-ZDJWREOA.js} +5 -5
- package/dist/chunks/{chunk-UGTDCLS5.js → chunk-ZKTDZOCC.js} +2 -2
- package/dist/chunks/{chunk-QHJJ333E.js → chunk-ZQL7XFSE.js} +8 -8
- package/dist/chunks/{cli-runtime-FK3WLEHC.js → cli-runtime-ZKBJFWOI.js} +29 -29
- package/dist/chunks/{commands-UVEHHHUD.js → commands-3WI6F2YZ.js} +6 -6
- package/dist/chunks/completion-shells-FUAKFK5A.js +167 -0
- package/dist/chunks/completion-shells-FUAKFK5A.js.map +6 -0
- package/dist/chunks/{computer-GABH2PJF.js → computer-WEEMTZUV.js} +2 -2
- package/dist/chunks/{config-PUASBICJ.js → config-E6UPAUGU.js} +19 -18
- package/dist/chunks/config-E6UPAUGU.js.map +6 -0
- package/dist/chunks/{cost-S6LUVWMS.js → cost-557HKPZ4.js} +5 -5
- package/dist/chunks/{crash-report-WSCK3UQK.js → crash-report-J47RFQ5T.js} +8 -8
- package/dist/chunks/{debug-DX3SZNDB.js → debug-WJJFYSZF.js} +21 -15
- package/dist/chunks/debug-WJJFYSZF.js.map +6 -0
- package/dist/chunks/{desktop-host-schedule-tool-X5AYUZMV.js → desktop-host-schedule-tool-IOOJNMPQ.js} +36 -36
- package/dist/chunks/{dist-WBDFP2PT.js → dist-665VSCM2.js} +2 -2
- package/dist/chunks/{dist-NJJDM4QY.js → dist-AQO44B7K.js} +2 -2
- package/dist/chunks/{dist-3GV6WNET.js → dist-D2RTUX7F.js} +24 -2
- package/dist/chunks/{dist-BFD35FTG.js → dist-JLTZUUMS.js} +2 -2
- package/dist/chunks/{dist-X7QK25WG.js → dist-L5C6AOXZ.js} +2 -2
- package/dist/chunks/{dist-K64KWQUG.js → dist-OIM6DSGL.js} +12 -2
- package/dist/chunks/{dist-K64KWQUG.js.map → dist-OIM6DSGL.js.map} +1 -1
- package/dist/chunks/{dist-AAPFBZPA.js → dist-SEISKEDK.js} +3 -3
- package/dist/chunks/{dist-XLMKK2FY.js → dist-VQVXULA5.js} +2 -2
- package/dist/chunks/doctor-ZRPCR5DP.js +104 -0
- package/dist/chunks/{drain-2WIWFYU3.js → drain-NHR22ZM6.js} +86 -30
- package/dist/chunks/drain-NHR22ZM6.js.map +6 -0
- package/dist/chunks/{entry-KSTSU23A.js → entry-TPBKHAWV.js} +6 -6
- package/dist/chunks/{eval-QJQ7H4E7.js → eval-HKBQQXOD.js} +53 -35
- package/dist/chunks/{eval-QJQ7H4E7.js.map → eval-HKBQQXOD.js.map} +1 -1
- package/dist/chunks/{exec-J55XOCSL.js → exec-R5U6FFFE.js} +138 -98
- package/dist/chunks/exec-R5U6FFFE.js.map +6 -0
- package/dist/chunks/{extension-3YMXVKLS.js → extension-KJJ7XNR4.js} +5 -5
- package/dist/chunks/{feed-66TKSG2Y.js → feed-LQNVF7M6.js} +4 -4
- package/dist/chunks/{github-7JHAZZC3.js → github-LMMBAQWI.js} +3 -3
- package/dist/chunks/{home-RJERCCZS.js → home-D7JCGXQE.js} +3 -3
- package/dist/chunks/{homes-P5UAFUPZ.js → homes-EKTHOMXX.js} +6 -6
- package/dist/chunks/{hooks-U2Z463DN.js → hooks-IT2ZUPG6.js} +27 -27
- package/dist/chunks/{hooks-report-FIPQINVZ.js → hooks-report-A7F26EDM.js} +23 -23
- package/dist/chunks/{host-IWAXBSUX.js → host-FS2RMOHW.js} +13 -13
- package/dist/chunks/{host-queries-3IRCFZ74.js → host-queries-OJXR2XYT.js} +18 -18
- package/dist/chunks/index-project-2UUHV7X3.js +134 -0
- package/dist/chunks/index-project-2UUHV7X3.js.map +6 -0
- package/dist/chunks/{installed-list-IBGMBHUJ.js → installed-list-27KYS56I.js} +4 -4
- package/dist/chunks/{launch-UHLESLJC.js → launch-33I3O7VJ.js} +32 -32
- package/dist/chunks/{learn-TQHDWYWB.js → learn-G5UEINB6.js} +18 -18
- package/dist/chunks/{learn-builtin-2OY2YL6U.js → learn-builtin-Y5FIKQSV.js} +21 -21
- package/dist/chunks/{lifecycle-ECBTALQV.js → lifecycle-NJQ7FIK2.js} +47 -47
- package/dist/chunks/{list-GECT7X6E.js → list-UKBQESKU.js} +24 -24
- package/dist/chunks/live-3YNFFWY5.js +103 -0
- package/dist/chunks/{load-LFCACQWA.js → load-KDS3CW6R.js} +14 -14
- package/dist/chunks/{logs-55HJKNP6.js → logs-3XKNKFY2.js} +5 -5
- package/dist/chunks/{mcp-XUKNYMSO.js → mcp-B2ZVGJQE.js} +31 -31
- package/dist/chunks/{mcp-serve-XYNR3BNJ.js → mcp-serve-DH63SWUH.js} +22 -22
- package/dist/chunks/{message-command-QF7YMZDH.js → message-command-KRDDHWLA.js} +73 -71
- package/dist/chunks/message-command-KRDDHWLA.js.map +6 -0
- package/dist/chunks/{notes-TQTBT2ZZ.js → notes-ZCY7LTUD.js} +6 -6
- package/dist/chunks/{open-CDLLQS4B.js → open-A4H4HWGO.js} +8 -8
- package/dist/chunks/{operator-tools-XAFRSL26.js → operator-tools-EH6R2JQC.js} +16 -16
- package/dist/chunks/{output-schema-5KOV6OJ6.js → output-schema-2NSAYRBS.js} +3 -3
- package/dist/chunks/{pal-7XHBGZ4S.js → pal-EANL2OUH.js} +17 -17
- package/dist/chunks/{peers-2MJG2EON.js → peers-H3ANL6XB.js} +9 -9
- package/dist/chunks/{peers-FJNLC7ZV.js → peers-W5KEFXN6.js} +25 -24
- package/dist/chunks/peers-W5KEFXN6.js.map +6 -0
- package/dist/chunks/{pending-4FM6EO26.js → pending-TRLAK2BR.js} +7 -7
- package/dist/chunks/{plugin-5J3GMENO.js → plugin-RAY3J2G2.js} +33 -32
- package/dist/chunks/plugin-RAY3J2G2.js.map +6 -0
- package/dist/chunks/{proposals-BGOU7KAM.js → proposals-YB3YJOPW.js} +39 -39
- package/dist/chunks/{providers-6PVAW2M3.js → providers-JA3AF524.js} +20 -20
- package/dist/chunks/{providers-ZFUFVRRD.js → providers-LVD7T5JI.js} +12 -12
- package/dist/chunks/{pty-3WHZDZXY.js → pty-66OF4YNF.js} +3 -3
- package/dist/chunks/resume-W4JBH2A7.js +28 -0
- package/dist/chunks/{resume-command-4VQ5ZTNJ.js → resume-command-J3VONMB5.js} +5 -5
- package/dist/chunks/{running-QT5QIYNC.js → running-5GQPD6OM.js} +4 -4
- package/dist/chunks/{say-JISSL5GL.js → say-7GQSUSTD.js} +21 -21
- package/dist/chunks/{schedule-5VVP4D3W.js → schedule-LMXNNMAZ.js} +16 -16
- package/dist/chunks/{send-F7EBK2UQ.js → send-Z35YQVV2.js} +20 -20
- package/dist/chunks/send-person-TIM427ZP.js +39 -0
- package/dist/chunks/{servers-WVOZNOUM.js → servers-4QP7GKOK.js} +8 -8
- package/dist/chunks/{service-7QGHSF2V.js → service-U244Z3VG.js} +48 -48
- package/dist/chunks/{session-options-WW5IDZEZ.js → session-options-ODKOXNAT.js} +5 -5
- package/dist/chunks/{setting-cli-AC5BEDWA.js → setting-cli-H5UKKB4F.js} +18 -17
- package/dist/chunks/{skills-QQ74IBRB.js → skills-ELR2D7WU.js} +33 -33
- package/dist/chunks/{source-deliveries-C2DRS4H6.js → source-deliveries-CI5K5DJQ.js} +20 -20
- package/dist/chunks/{start-check-5L262F53.js → start-check-JYINXXEG.js} +2 -2
- package/dist/chunks/{startup-failure-4PLTFEVA.js → startup-failure-G3HSW2U3.js} +2 -2
- package/dist/chunks/{state-BTF5VEKZ.js → state-EDIR4EM2.js} +25 -25
- package/dist/chunks/{store-WECWJFQV.js → store-4HJUNR5E.js} +3 -3
- package/dist/chunks/{store-WOSPWPH2.js → store-6SNBHHJA.js} +4 -4
- package/dist/chunks/{store-RTWBXAKA.js → store-ADMKKWZF.js} +13 -13
- package/dist/chunks/{store-OTVBA4G2.js → store-IKXRGI2L.js} +9 -9
- package/dist/chunks/{tui-EWG7SLNZ.js → tui-AKXFDXNZ.js} +122 -120
- package/dist/chunks/tui-AKXFDXNZ.js.map +6 -0
- package/dist/chunks/{update-7FGJLU2B.js → update-TYCWQEHZ.js} +315 -34
- package/dist/chunks/update-TYCWQEHZ.js.map +6 -0
- package/dist/chunks/{watch-KKQKQKA6.js → watch-RQYBCHYR.js} +124 -122
- package/dist/chunks/watch-RQYBCHYR.js.map +6 -0
- package/dist/chunks/{windows-home-VPSYQVOZ.js → windows-home-IZGCRSW7.js} +5 -5
- package/dist/chunks/{workspaces-7DZS6QLA.js → workspaces-6KGOMHCM.js} +30 -30
- package/dist/chunks/{worktree-XZ5Y74RZ.js → worktree-O7RSM3PC.js} +33 -33
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/action-help.d.ts +1 -1
- package/dist/commands/action-help.d.ts.map +1 -1
- package/dist/commands/actions/small.d.ts +1 -0
- package/dist/commands/actions/small.d.ts.map +1 -1
- package/dist/commands/auth-status.d.ts +1 -1
- package/dist/commands/auth-status.d.ts.map +1 -1
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/completion-shells.d.ts +8 -0
- package/dist/commands/completion-shells.d.ts.map +1 -0
- package/dist/commands/completion.d.ts +6 -0
- package/dist/commands/completion.d.ts.map +1 -0
- package/dist/commands/debug.d.ts.map +1 -1
- package/dist/commands/desktop-chat-workspace.d.ts +25 -0
- package/dist/commands/desktop-chat-workspace.d.ts.map +1 -0
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/drain.d.ts +19 -1
- package/dist/commands/drain.d.ts.map +1 -1
- package/dist/commands/eval.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/index-project.d.ts +3 -0
- package/dist/commands/index-project.d.ts.map +1 -0
- package/dist/commands/manifest.d.ts +1 -0
- package/dist/commands/manifest.d.ts.map +1 -1
- package/dist/commands/registry.d.ts +1 -0
- package/dist/commands/registry.d.ts.map +1 -1
- package/dist/commands/update-migrate.d.ts +39 -0
- package/dist/commands/update-migrate.d.ts.map +1 -0
- package/dist/commands/update.d.ts +8 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +9 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/session-options.d.ts +1 -1
- package/dist/config/session-options.d.ts.map +1 -1
- package/dist/config/settings-descriptors.d.ts.map +1 -1
- package/dist/doctor/checks/chain.d.ts.map +1 -1
- package/dist/doctor/checks/credentials.d.ts.map +1 -1
- package/dist/doctor/checks/updates.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +58 -57
- package/dist/integrations/auto-update/apply.d.ts.map +1 -1
- package/dist/integrations/auto-update/install-kind.d.ts +13 -0
- package/dist/integrations/auto-update/install-kind.d.ts.map +1 -1
- package/dist/integrations/auto-update/install-plan.d.ts +40 -0
- package/dist/integrations/auto-update/install-plan.d.ts.map +1 -0
- package/dist/integrations/auto-update/status.d.ts +8 -0
- package/dist/integrations/auto-update/status.d.ts.map +1 -1
- package/dist/integrations/auto-update/updater.d.ts.map +1 -1
- package/dist/integrations/images/generate-image.d.ts +2 -0
- package/dist/integrations/images/generate-image.d.ts.map +1 -1
- package/dist/integrations/providers/discover.d.ts +1 -0
- package/dist/integrations/providers/discover.d.ts.map +1 -1
- package/dist/integrations/providers/gemini-credentials.d.ts +2 -0
- package/dist/integrations/providers/gemini-credentials.d.ts.map +1 -1
- package/dist/integrations/semantic-search/chunk.d.ts +9 -0
- package/dist/integrations/semantic-search/chunk.d.ts.map +1 -0
- package/dist/integrations/semantic-search/consent.d.ts +4 -0
- package/dist/integrations/semantic-search/consent.d.ts.map +1 -0
- package/dist/integrations/semantic-search/embedding.d.ts +14 -0
- package/dist/integrations/semantic-search/embedding.d.ts.map +1 -0
- package/dist/integrations/semantic-search/index.d.ts +30 -0
- package/dist/integrations/semantic-search/index.d.ts.map +1 -0
- package/dist/integrations/semantic-search/tool.d.ts +3 -0
- package/dist/integrations/semantic-search/tool.d.ts.map +1 -0
- package/dist/integrations/sessions/uncheckpointed-turn.d.ts +47 -0
- package/dist/integrations/sessions/uncheckpointed-turn.d.ts.map +1 -0
- package/dist/plan/approval.d.ts +8 -6
- package/dist/plan/approval.d.ts.map +1 -1
- package/dist/plan/exit-plan-mode-tool.d.ts.map +1 -1
- package/dist/plan/handover.d.ts +23 -0
- package/dist/plan/handover.d.ts.map +1 -0
- package/dist/rounds/types.d.ts +2 -0
- package/dist/rounds/types.d.ts.map +1 -1
- package/dist/sdk-peer.js +23 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +3 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/PlanApprovalOverlay.d.ts +2 -2
- package/dist/tui/PlanApprovalOverlay.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +1 -7
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +21 -1
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/computer-use-enable-offer.d.ts.map +1 -1
- package/dist/tui/message-closes-ask.d.ts +14 -0
- package/dist/tui/message-closes-ask.d.ts.map +1 -0
- package/dist/tui/plain-failure.d.ts.map +1 -1
- package/dist/tui/slash-argument-completion.d.ts +37 -0
- package/dist/tui/slash-argument-completion.d.ts.map +1 -0
- package/dist/tui/slashCommands.d.ts +3 -1
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/types.d.ts +1 -0
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/usage-error.d.ts +0 -10
- package/dist/usage-error.d.ts.map +1 -1
- package/package.json +15 -15
- package/dist/chunks/acp-XC6FTO64.js.map +0 -6
- package/dist/chunks/agent-session-LYNJM6TP.js +0 -105
- package/dist/chunks/auth-JAKMDE4X.js.map +0 -6
- package/dist/chunks/bin-main-V6PBLHRK.js.map +0 -6
- package/dist/chunks/chunk-2YPRONTU.js.map +0 -6
- package/dist/chunks/chunk-3OHJYUFP.js.map +0 -6
- package/dist/chunks/chunk-5B4BXZCI.js.map +0 -6
- package/dist/chunks/chunk-5U4IA3HS.js.map +0 -6
- package/dist/chunks/chunk-7L3PTSKY.js.map +0 -6
- package/dist/chunks/chunk-A2GT47E2.js.map +0 -6
- package/dist/chunks/chunk-AUDTDXWX.js.map +0 -6
- package/dist/chunks/chunk-HS7PPGS3.js.map +0 -6
- package/dist/chunks/chunk-KGCHR4TQ.js.map +0 -6
- package/dist/chunks/chunk-MNQL7ZAW.js.map +0 -6
- package/dist/chunks/chunk-NJUB2ADX.js.map +0 -6
- package/dist/chunks/chunk-TV7UBGX2.js.map +0 -6
- package/dist/chunks/chunk-V5DZWA6R.js.map +0 -6
- package/dist/chunks/chunk-VBG357AO.js.map +0 -6
- package/dist/chunks/chunk-VVMI6HQM.js.map +0 -6
- package/dist/chunks/chunk-XJ4APISC.js.map +0 -6
- package/dist/chunks/chunk-ZZ7A2Y7O.js.map +0 -6
- package/dist/chunks/config-PUASBICJ.js.map +0 -6
- package/dist/chunks/debug-DX3SZNDB.js.map +0 -6
- package/dist/chunks/doctor-CPX7KDGR.js +0 -103
- package/dist/chunks/drain-2WIWFYU3.js.map +0 -6
- package/dist/chunks/exec-J55XOCSL.js.map +0 -6
- package/dist/chunks/live-LDWIFGRI.js +0 -102
- package/dist/chunks/message-command-QF7YMZDH.js.map +0 -6
- package/dist/chunks/peers-FJNLC7ZV.js.map +0 -6
- package/dist/chunks/plugin-5J3GMENO.js.map +0 -6
- package/dist/chunks/resume-IQMUIIBO.js +0 -28
- package/dist/chunks/send-person-LHJCPCAT.js +0 -39
- package/dist/chunks/tui-EWG7SLNZ.js.map +0 -6
- package/dist/chunks/update-7FGJLU2B.js.map +0 -6
- package/dist/chunks/watch-KKQKQKA6.js.map +0 -6
- /package/dist/chunks/{activity-command-PIH63SRU.js.map → activity-command-X25POZ3R.js.map} +0 -0
- /package/dist/chunks/{add-CWIB4XVU.js.map → add-HL4MO6R2.js.map} +0 -0
- /package/dist/chunks/{agent-CNRZCXHY.js.map → agent-MHH4MGYB.js.map} +0 -0
- /package/dist/chunks/{agent-session-LYNJM6TP.js.map → agent-session-OC32VSS6.js.map} +0 -0
- /package/dist/chunks/{apply-at-exit-CMRH3GQN.js.map → apply-at-exit-ADWMDFFQ.js.map} +0 -0
- /package/dist/chunks/{archive-DPZ3PWUU.js.map → archive-6X2FED3E.js.map} +0 -0
- /package/dist/chunks/{binding-UHJZD5Z3.js.map → binding-OXJ5TL6T.js.map} +0 -0
- /package/dist/chunks/{browser-2QBVPHCB.js.map → browser-DFLZNRRZ.js.map} +0 -0
- /package/dist/chunks/{chat-DJEP53BA.js.map → chat-PPSFN5JK.js.map} +0 -0
- /package/dist/chunks/{chunk-4JKWOO7I.js.map → chunk-23AYRMS2.js.map} +0 -0
- /package/dist/chunks/{chunk-MUQOV75B.js.map → chunk-2H75JWKG.js.map} +0 -0
- /package/dist/chunks/{chunk-NEOVE6D5.js.map → chunk-2JKQ6BFI.js.map} +0 -0
- /package/dist/chunks/{chunk-UZVJQEYT.js.map → chunk-2KJUKF2E.js.map} +0 -0
- /package/dist/chunks/{chunk-IYBVVKSB.js.map → chunk-2QGSHJ4Y.js.map} +0 -0
- /package/dist/chunks/{chunk-ZNSVRCPH.js.map → chunk-2R6Z32IU.js.map} +0 -0
- /package/dist/chunks/{chunk-7FGITTVH.js.map → chunk-2USTJGLA.js.map} +0 -0
- /package/dist/chunks/{chunk-EIIJLF6W.js.map → chunk-333RR5BA.js.map} +0 -0
- /package/dist/chunks/{chunk-MCIYCR57.js.map → chunk-33TGFQ2U.js.map} +0 -0
- /package/dist/chunks/{chunk-C4RV2D57.js.map → chunk-3FFV4OSR.js.map} +0 -0
- /package/dist/chunks/{chunk-QI4IEHLE.js.map → chunk-3QXUETDN.js.map} +0 -0
- /package/dist/chunks/{chunk-4VTRURM6.js.map → chunk-3TLDTD6R.js.map} +0 -0
- /package/dist/chunks/{chunk-ONEBRD5O.js.map → chunk-4ASXGRP5.js.map} +0 -0
- /package/dist/chunks/{chunk-ZFOZVUUJ.js.map → chunk-4JPZYI6M.js.map} +0 -0
- /package/dist/chunks/{chunk-RBJDS73T.js.map → chunk-4TPXEWD5.js.map} +0 -0
- /package/dist/chunks/{chunk-COOW2AWX.js.map → chunk-5GJWIDVU.js.map} +0 -0
- /package/dist/chunks/{chunk-RXFFBB7A.js.map → chunk-5PQHBLZI.js.map} +0 -0
- /package/dist/chunks/{chunk-GMUWAUKQ.js.map → chunk-5UARTCJW.js.map} +0 -0
- /package/dist/chunks/{chunk-Q5SAOE7Q.js.map → chunk-5XROCBT5.js.map} +0 -0
- /package/dist/chunks/{chunk-WI6IGTC4.js.map → chunk-5YOREQIA.js.map} +0 -0
- /package/dist/chunks/{chunk-4E5KFKJA.js.map → chunk-6CL7TQOC.js.map} +0 -0
- /package/dist/chunks/{chunk-N5YRJQPS.js.map → chunk-7RCI6OBE.js.map} +0 -0
- /package/dist/chunks/{chunk-SIMI4VB7.js.map → chunk-7WPF7ATU.js.map} +0 -0
- /package/dist/chunks/{chunk-DKZAHG7B.js.map → chunk-AAN4XLUD.js.map} +0 -0
- /package/dist/chunks/{chunk-LDJXUI3Q.js.map → chunk-BB2RJOFI.js.map} +0 -0
- /package/dist/chunks/{chunk-ESWXNISI.js.map → chunk-BCHHHNLK.js.map} +0 -0
- /package/dist/chunks/{chunk-C6JX3GVK.js.map → chunk-BUQCQMXH.js.map} +0 -0
- /package/dist/chunks/{chunk-VLWMMDBY.js.map → chunk-COSMRH2Q.js.map} +0 -0
- /package/dist/chunks/{chunk-4VMFD7UC.js.map → chunk-CPZEJQ2Z.js.map} +0 -0
- /package/dist/chunks/{chunk-3AKPBYMA.js.map → chunk-DCVWFBYB.js.map} +0 -0
- /package/dist/chunks/{chunk-ADGTOEHA.js.map → chunk-DD3BJ4GM.js.map} +0 -0
- /package/dist/chunks/{chunk-4H2RPAXN.js.map → chunk-DKTU6RWO.js.map} +0 -0
- /package/dist/chunks/{chunk-OWKPJJKH.js.map → chunk-EODC62SI.js.map} +0 -0
- /package/dist/chunks/{chunk-IVTYJBJF.js.map → chunk-EOHPS7LC.js.map} +0 -0
- /package/dist/chunks/{chunk-2LZAZAWT.js.map → chunk-EPSLHLT3.js.map} +0 -0
- /package/dist/chunks/{chunk-SHUKR2A5.js.map → chunk-FAQQGJ2Z.js.map} +0 -0
- /package/dist/chunks/{chunk-OQFX532E.js.map → chunk-FJPM4YAO.js.map} +0 -0
- /package/dist/chunks/{chunk-TPMF64WM.js.map → chunk-FZSM7DSH.js.map} +0 -0
- /package/dist/chunks/{chunk-MMQGQ7BJ.js.map → chunk-G3V2OKYP.js.map} +0 -0
- /package/dist/chunks/{chunk-6WPK5S6Z.js.map → chunk-G4OR74MC.js.map} +0 -0
- /package/dist/chunks/{chunk-QWUHCBDT.js.map → chunk-HXZA5UUN.js.map} +0 -0
- /package/dist/chunks/{chunk-2AWKLDCQ.js.map → chunk-IDIVB67E.js.map} +0 -0
- /package/dist/chunks/{chunk-IISM3GHE.js.map → chunk-ISI36EUS.js.map} +0 -0
- /package/dist/chunks/{chunk-SNHJJI52.js.map → chunk-IUMOIQKL.js.map} +0 -0
- /package/dist/chunks/{chunk-P5LQ4NRD.js.map → chunk-J4NFH5T2.js.map} +0 -0
- /package/dist/chunks/{chunk-HYHHGMBC.js.map → chunk-J6JBHNNR.js.map} +0 -0
- /package/dist/chunks/{chunk-UGBHE6ZS.js.map → chunk-JCY3OPTY.js.map} +0 -0
- /package/dist/chunks/{chunk-S76POTJP.js.map → chunk-JD7EWFIJ.js.map} +0 -0
- /package/dist/chunks/{chunk-2K7EIRI2.js.map → chunk-JOVKHMJS.js.map} +0 -0
- /package/dist/chunks/{chunk-GOKGPFXK.js.map → chunk-JQ7HNIBS.js.map} +0 -0
- /package/dist/chunks/{chunk-I3HOLAAO.js.map → chunk-JSWFUARY.js.map} +0 -0
- /package/dist/chunks/{chunk-NTUKFINL.js.map → chunk-JU3P3ZJJ.js.map} +0 -0
- /package/dist/chunks/{chunk-ZLMO5YL4.js.map → chunk-JWBS363M.js.map} +0 -0
- /package/dist/chunks/{chunk-HZGT5EHL.js.map → chunk-JXBSJNUF.js.map} +0 -0
- /package/dist/chunks/{chunk-X6LDRLVN.js.map → chunk-JZTNWODR.js.map} +0 -0
- /package/dist/chunks/{chunk-HJHZJKAD.js.map → chunk-K4AUROOC.js.map} +0 -0
- /package/dist/chunks/{chunk-RL2CTUF2.js.map → chunk-KFFW7EYQ.js.map} +0 -0
- /package/dist/chunks/{chunk-SEW4KEZ5.js.map → chunk-KGKVNHFC.js.map} +0 -0
- /package/dist/chunks/{chunk-SOZSIDCY.js.map → chunk-KLIJLSWF.js.map} +0 -0
- /package/dist/chunks/{chunk-BS3KGJJZ.js.map → chunk-LJFDFGFU.js.map} +0 -0
- /package/dist/chunks/{chunk-O3T5CJQG.js.map → chunk-LZPPIRJW.js.map} +0 -0
- /package/dist/chunks/{chunk-H624ADJH.js.map → chunk-MHEYQD24.js.map} +0 -0
- /package/dist/chunks/{chunk-44KWXPBG.js.map → chunk-MM7HGD6H.js.map} +0 -0
- /package/dist/chunks/{chunk-C56FUSQH.js.map → chunk-N4KE47J2.js.map} +0 -0
- /package/dist/chunks/{chunk-QNRBLNA3.js.map → chunk-N4USZWBA.js.map} +0 -0
- /package/dist/chunks/{chunk-GCLZEMDF.js.map → chunk-OIFFABSH.js.map} +0 -0
- /package/dist/chunks/{chunk-NRR2SMR6.js.map → chunk-OKFU62GA.js.map} +0 -0
- /package/dist/chunks/{chunk-G6YSAHKC.js.map → chunk-OWPDRJ6S.js.map} +0 -0
- /package/dist/chunks/{chunk-LCZWTKIB.js.map → chunk-P4WMRT5Q.js.map} +0 -0
- /package/dist/chunks/{chunk-EHKWQ7IS.js.map → chunk-PGHGBSS2.js.map} +0 -0
- /package/dist/chunks/{chunk-OA76OH27.js.map → chunk-PLPVXHTM.js.map} +0 -0
- /package/dist/chunks/{chunk-KE2RFCTY.js.map → chunk-PMA5NXWF.js.map} +0 -0
- /package/dist/chunks/{chunk-5RA5FZDM.js.map → chunk-PSRWFKFX.js.map} +0 -0
- /package/dist/chunks/{chunk-NXFB5AP5.js.map → chunk-PTUICVCN.js.map} +0 -0
- /package/dist/chunks/{chunk-ZIF4GK2U.js.map → chunk-Q5THGA3N.js.map} +0 -0
- /package/dist/chunks/{chunk-5SRVOPRS.js.map → chunk-QTR6UU63.js.map} +0 -0
- /package/dist/chunks/{chunk-7BNKRTXM.js.map → chunk-RIVPA5TG.js.map} +0 -0
- /package/dist/chunks/{chunk-HPUVBU7G.js.map → chunk-RQYSVELQ.js.map} +0 -0
- /package/dist/chunks/{chunk-RKAZUYKY.js.map → chunk-RWSHMPFM.js.map} +0 -0
- /package/dist/chunks/{chunk-CQNIP7QC.js.map → chunk-RZ3HYPV4.js.map} +0 -0
- /package/dist/chunks/{chunk-AFYS4U45.js.map → chunk-SDWOSB3L.js.map} +0 -0
- /package/dist/chunks/{chunk-AT42FHTY.js.map → chunk-SPKNKEW5.js.map} +0 -0
- /package/dist/chunks/{chunk-UUMISHVL.js.map → chunk-SQDZZCQJ.js.map} +0 -0
- /package/dist/chunks/{chunk-KFB4RMNZ.js.map → chunk-SRNS347K.js.map} +0 -0
- /package/dist/chunks/{chunk-GUOCXE6V.js.map → chunk-SX7FXWTB.js.map} +0 -0
- /package/dist/chunks/{chunk-WGN4AUAW.js.map → chunk-T6FMC7R5.js.map} +0 -0
- /package/dist/chunks/{chunk-SHW5NXAS.js.map → chunk-TDCHFQVU.js.map} +0 -0
- /package/dist/chunks/{chunk-6AINAG3P.js.map → chunk-TGQWC44Q.js.map} +0 -0
- /package/dist/chunks/{chunk-XPTCRZ6F.js.map → chunk-TIM7OEJN.js.map} +0 -0
- /package/dist/chunks/{chunk-TAPWAMDX.js.map → chunk-TO5ROEIW.js.map} +0 -0
- /package/dist/chunks/{chunk-QTGW6FJG.js.map → chunk-TTBXKYFP.js.map} +0 -0
- /package/dist/chunks/{chunk-757LAANV.js.map → chunk-TXCQMW7F.js.map} +0 -0
- /package/dist/chunks/{chunk-WD5XJ5ZU.js.map → chunk-UCF6H5BB.js.map} +0 -0
- /package/dist/chunks/{chunk-5ER7BU54.js.map → chunk-UP3ATLU6.js.map} +0 -0
- /package/dist/chunks/{chunk-E5LJN2DV.js.map → chunk-UTC325FB.js.map} +0 -0
- /package/dist/chunks/{chunk-C3UATI2T.js.map → chunk-VH647IFM.js.map} +0 -0
- /package/dist/chunks/{chunk-5K6GFGCD.js.map → chunk-VMWPRI2S.js.map} +0 -0
- /package/dist/chunks/{chunk-PTBKVAHY.js.map → chunk-VWJOJJNQ.js.map} +0 -0
- /package/dist/chunks/{chunk-QVUF2FSM.js.map → chunk-W3QW6SK6.js.map} +0 -0
- /package/dist/chunks/{chunk-P5UUY56J.js.map → chunk-W4EKIBRD.js.map} +0 -0
- /package/dist/chunks/{chunk-SC3GK5QC.js.map → chunk-WMWRRDO2.js.map} +0 -0
- /package/dist/chunks/{chunk-5TSOB5RI.js.map → chunk-WNBIAOXA.js.map} +0 -0
- /package/dist/chunks/{chunk-Q7NB7LRR.js.map → chunk-WQL7MEOD.js.map} +0 -0
- /package/dist/chunks/{chunk-335D56LG.js.map → chunk-X2LYTBDH.js.map} +0 -0
- /package/dist/chunks/{chunk-OLX3IUKN.js.map → chunk-X4TVUANR.js.map} +0 -0
- /package/dist/chunks/{chunk-EGRSUSP4.js.map → chunk-XBX3T6YY.js.map} +0 -0
- /package/dist/chunks/{chunk-Z4UCKCEQ.js.map → chunk-XC6G27M2.js.map} +0 -0
- /package/dist/chunks/{chunk-RXVJEZSV.js.map → chunk-XGH3FZ76.js.map} +0 -0
- /package/dist/chunks/{chunk-6GCYUKNK.js.map → chunk-XK7NQIZA.js.map} +0 -0
- /package/dist/chunks/{chunk-BHO3RAXS.js.map → chunk-XNMJLM5W.js.map} +0 -0
- /package/dist/chunks/{chunk-G5MD6XCV.js.map → chunk-XORYHNZ3.js.map} +0 -0
- /package/dist/chunks/{chunk-EW2YVKTN.js.map → chunk-XTMUUGTN.js.map} +0 -0
- /package/dist/chunks/{chunk-DO5JIP3I.js.map → chunk-Y36ZTLIJ.js.map} +0 -0
- /package/dist/chunks/{chunk-NUMKSEG4.js.map → chunk-YCPK5ZTB.js.map} +0 -0
- /package/dist/chunks/{chunk-HXINZ7D3.js.map → chunk-YRQ5PI7O.js.map} +0 -0
- /package/dist/chunks/{chunk-ORXNYBJU.js.map → chunk-YXR3LVZE.js.map} +0 -0
- /package/dist/chunks/{chunk-4ABPUIBF.js.map → chunk-YYGE5EWH.js.map} +0 -0
- /package/dist/chunks/{chunk-RJINNWMH.js.map → chunk-YZ6UKIKL.js.map} +0 -0
- /package/dist/chunks/{chunk-L45TVHRJ.js.map → chunk-Z75IWPPX.js.map} +0 -0
- /package/dist/chunks/{chunk-XNVZ6BPI.js.map → chunk-ZAQFM5BR.js.map} +0 -0
- /package/dist/chunks/{chunk-FDLXZRE4.js.map → chunk-ZDJWREOA.js.map} +0 -0
- /package/dist/chunks/{chunk-UGTDCLS5.js.map → chunk-ZKTDZOCC.js.map} +0 -0
- /package/dist/chunks/{chunk-QHJJ333E.js.map → chunk-ZQL7XFSE.js.map} +0 -0
- /package/dist/chunks/{cli-runtime-FK3WLEHC.js.map → cli-runtime-ZKBJFWOI.js.map} +0 -0
- /package/dist/chunks/{commands-UVEHHHUD.js.map → commands-3WI6F2YZ.js.map} +0 -0
- /package/dist/chunks/{computer-GABH2PJF.js.map → computer-WEEMTZUV.js.map} +0 -0
- /package/dist/chunks/{cost-S6LUVWMS.js.map → cost-557HKPZ4.js.map} +0 -0
- /package/dist/chunks/{crash-report-WSCK3UQK.js.map → crash-report-J47RFQ5T.js.map} +0 -0
- /package/dist/chunks/{desktop-host-schedule-tool-X5AYUZMV.js.map → desktop-host-schedule-tool-IOOJNMPQ.js.map} +0 -0
- /package/dist/chunks/{dist-WBDFP2PT.js.map → dist-665VSCM2.js.map} +0 -0
- /package/dist/chunks/{dist-NJJDM4QY.js.map → dist-AQO44B7K.js.map} +0 -0
- /package/dist/chunks/{dist-3GV6WNET.js.map → dist-D2RTUX7F.js.map} +0 -0
- /package/dist/chunks/{dist-BFD35FTG.js.map → dist-JLTZUUMS.js.map} +0 -0
- /package/dist/chunks/{dist-X7QK25WG.js.map → dist-L5C6AOXZ.js.map} +0 -0
- /package/dist/chunks/{dist-AAPFBZPA.js.map → dist-SEISKEDK.js.map} +0 -0
- /package/dist/chunks/{dist-XLMKK2FY.js.map → dist-VQVXULA5.js.map} +0 -0
- /package/dist/chunks/{doctor-CPX7KDGR.js.map → doctor-ZRPCR5DP.js.map} +0 -0
- /package/dist/chunks/{entry-KSTSU23A.js.map → entry-TPBKHAWV.js.map} +0 -0
- /package/dist/chunks/{extension-3YMXVKLS.js.map → extension-KJJ7XNR4.js.map} +0 -0
- /package/dist/chunks/{feed-66TKSG2Y.js.map → feed-LQNVF7M6.js.map} +0 -0
- /package/dist/chunks/{github-7JHAZZC3.js.map → github-LMMBAQWI.js.map} +0 -0
- /package/dist/chunks/{home-RJERCCZS.js.map → home-D7JCGXQE.js.map} +0 -0
- /package/dist/chunks/{homes-P5UAFUPZ.js.map → homes-EKTHOMXX.js.map} +0 -0
- /package/dist/chunks/{hooks-U2Z463DN.js.map → hooks-IT2ZUPG6.js.map} +0 -0
- /package/dist/chunks/{hooks-report-FIPQINVZ.js.map → hooks-report-A7F26EDM.js.map} +0 -0
- /package/dist/chunks/{host-IWAXBSUX.js.map → host-FS2RMOHW.js.map} +0 -0
- /package/dist/chunks/{host-queries-3IRCFZ74.js.map → host-queries-OJXR2XYT.js.map} +0 -0
- /package/dist/chunks/{installed-list-IBGMBHUJ.js.map → installed-list-27KYS56I.js.map} +0 -0
- /package/dist/chunks/{launch-UHLESLJC.js.map → launch-33I3O7VJ.js.map} +0 -0
- /package/dist/chunks/{learn-TQHDWYWB.js.map → learn-G5UEINB6.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-2OY2YL6U.js.map → learn-builtin-Y5FIKQSV.js.map} +0 -0
- /package/dist/chunks/{lifecycle-ECBTALQV.js.map → lifecycle-NJQ7FIK2.js.map} +0 -0
- /package/dist/chunks/{list-GECT7X6E.js.map → list-UKBQESKU.js.map} +0 -0
- /package/dist/chunks/{live-LDWIFGRI.js.map → live-3YNFFWY5.js.map} +0 -0
- /package/dist/chunks/{load-LFCACQWA.js.map → load-KDS3CW6R.js.map} +0 -0
- /package/dist/chunks/{logs-55HJKNP6.js.map → logs-3XKNKFY2.js.map} +0 -0
- /package/dist/chunks/{mcp-XUKNYMSO.js.map → mcp-B2ZVGJQE.js.map} +0 -0
- /package/dist/chunks/{mcp-serve-XYNR3BNJ.js.map → mcp-serve-DH63SWUH.js.map} +0 -0
- /package/dist/chunks/{notes-TQTBT2ZZ.js.map → notes-ZCY7LTUD.js.map} +0 -0
- /package/dist/chunks/{open-CDLLQS4B.js.map → open-A4H4HWGO.js.map} +0 -0
- /package/dist/chunks/{operator-tools-XAFRSL26.js.map → operator-tools-EH6R2JQC.js.map} +0 -0
- /package/dist/chunks/{output-schema-5KOV6OJ6.js.map → output-schema-2NSAYRBS.js.map} +0 -0
- /package/dist/chunks/{pal-7XHBGZ4S.js.map → pal-EANL2OUH.js.map} +0 -0
- /package/dist/chunks/{peers-2MJG2EON.js.map → peers-H3ANL6XB.js.map} +0 -0
- /package/dist/chunks/{pending-4FM6EO26.js.map → pending-TRLAK2BR.js.map} +0 -0
- /package/dist/chunks/{proposals-BGOU7KAM.js.map → proposals-YB3YJOPW.js.map} +0 -0
- /package/dist/chunks/{providers-6PVAW2M3.js.map → providers-JA3AF524.js.map} +0 -0
- /package/dist/chunks/{providers-ZFUFVRRD.js.map → providers-LVD7T5JI.js.map} +0 -0
- /package/dist/chunks/{pty-3WHZDZXY.js.map → pty-66OF4YNF.js.map} +0 -0
- /package/dist/chunks/{resume-IQMUIIBO.js.map → resume-W4JBH2A7.js.map} +0 -0
- /package/dist/chunks/{resume-command-4VQ5ZTNJ.js.map → resume-command-J3VONMB5.js.map} +0 -0
- /package/dist/chunks/{running-QT5QIYNC.js.map → running-5GQPD6OM.js.map} +0 -0
- /package/dist/chunks/{say-JISSL5GL.js.map → say-7GQSUSTD.js.map} +0 -0
- /package/dist/chunks/{schedule-5VVP4D3W.js.map → schedule-LMXNNMAZ.js.map} +0 -0
- /package/dist/chunks/{send-F7EBK2UQ.js.map → send-Z35YQVV2.js.map} +0 -0
- /package/dist/chunks/{send-person-LHJCPCAT.js.map → send-person-TIM427ZP.js.map} +0 -0
- /package/dist/chunks/{servers-WVOZNOUM.js.map → servers-4QP7GKOK.js.map} +0 -0
- /package/dist/chunks/{service-7QGHSF2V.js.map → service-U244Z3VG.js.map} +0 -0
- /package/dist/chunks/{session-options-WW5IDZEZ.js.map → session-options-ODKOXNAT.js.map} +0 -0
- /package/dist/chunks/{setting-cli-AC5BEDWA.js.map → setting-cli-H5UKKB4F.js.map} +0 -0
- /package/dist/chunks/{skills-QQ74IBRB.js.map → skills-ELR2D7WU.js.map} +0 -0
- /package/dist/chunks/{source-deliveries-C2DRS4H6.js.map → source-deliveries-CI5K5DJQ.js.map} +0 -0
- /package/dist/chunks/{start-check-5L262F53.js.map → start-check-JYINXXEG.js.map} +0 -0
- /package/dist/chunks/{startup-failure-4PLTFEVA.js.map → startup-failure-G3HSW2U3.js.map} +0 -0
- /package/dist/chunks/{state-BTF5VEKZ.js.map → state-EDIR4EM2.js.map} +0 -0
- /package/dist/chunks/{store-OTVBA4G2.js.map → store-4HJUNR5E.js.map} +0 -0
- /package/dist/chunks/{store-RTWBXAKA.js.map → store-6SNBHHJA.js.map} +0 -0
- /package/dist/chunks/{store-WECWJFQV.js.map → store-ADMKKWZF.js.map} +0 -0
- /package/dist/chunks/{store-WOSPWPH2.js.map → store-IKXRGI2L.js.map} +0 -0
- /package/dist/chunks/{windows-home-VPSYQVOZ.js.map → windows-home-IZGCRSW7.js.map} +0 -0
- /package/dist/chunks/{workspaces-7DZS6QLA.js.map → workspaces-6KGOMHCM.js.map} +0 -0
- /package/dist/chunks/{worktree-XZ5Y74RZ.js.map → worktree-O7RSM3PC.js.map} +0 -0
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
setUserConfigValue,
|
|
6
6
|
userConfigPath,
|
|
7
7
|
withUserConfigLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3QXUETDN.js";
|
|
9
9
|
import {
|
|
10
10
|
SESSION_EXPORT_EVENT_TYPES
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZKTDZOCC.js";
|
|
12
12
|
import {
|
|
13
13
|
BROWSER_PROFILE_NAME,
|
|
14
14
|
COMPOSER_TRIGGER_DEFAULTS,
|
|
@@ -28,39 +28,32 @@ import {
|
|
|
28
28
|
sparseFolderProblem,
|
|
29
29
|
symlinkDirectoryProblem,
|
|
30
30
|
worktreeLocationProblem
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4U6TAYDK.js";
|
|
32
32
|
import {
|
|
33
33
|
compilePermissions,
|
|
34
34
|
permissionCheckProblem
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5GJWIDVU.js";
|
|
36
36
|
import {
|
|
37
37
|
positiveTokenCount
|
|
38
38
|
} from "./chunk-LVVD32KJ.js";
|
|
39
|
+
import {
|
|
40
|
+
PREFIX_KEYS,
|
|
41
|
+
parsePrefix
|
|
42
|
+
} from "./chunk-PHW6PWIJ.js";
|
|
39
43
|
import {
|
|
40
44
|
readSwitch
|
|
41
45
|
} from "./chunk-WRPEQ3KP.js";
|
|
42
46
|
import {
|
|
43
47
|
require_dist
|
|
44
48
|
} from "./chunk-FXJX3AHN.js";
|
|
45
|
-
import {
|
|
46
|
-
PREFIX_KEYS,
|
|
47
|
-
parsePrefix
|
|
48
|
-
} from "./chunk-PHW6PWIJ.js";
|
|
49
49
|
import {
|
|
50
50
|
resolveAutoCompactWindowSetting
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BBNACUZ3.js";
|
|
52
52
|
import {
|
|
53
53
|
__name,
|
|
54
54
|
__toESM
|
|
55
55
|
} from "./chunk-76FLAFCG.js";
|
|
56
56
|
|
|
57
|
-
// src/config/desktop-settings.ts
|
|
58
|
-
var import_yaml = __toESM(require_dist(), 1);
|
|
59
|
-
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
60
|
-
|
|
61
|
-
// src/config/setting-layers.ts
|
|
62
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
63
|
-
|
|
64
57
|
// src/tui/fullscreen/mode.ts
|
|
65
58
|
var OFF = /* @__PURE__ */ new Set(["", "0", "false", "no", "off"]);
|
|
66
59
|
function fullscreenFromEnv(env) {
|
|
@@ -87,159 +80,6 @@ function getScreenModeNow() {
|
|
|
87
80
|
}
|
|
88
81
|
__name(getScreenModeNow, "getScreenModeNow");
|
|
89
82
|
|
|
90
|
-
// src/config/setting-layers.ts
|
|
91
|
-
var word = /* @__PURE__ */ __name((raw) => {
|
|
92
|
-
const text = raw.trim();
|
|
93
|
-
return text === "" ? void 0 : text;
|
|
94
|
-
}, "word");
|
|
95
|
-
var loaderSwitch = /* @__PURE__ */ __name((raw) => raw === "1" || raw === "true" ? true : raw === "0" || raw === "false" ? false : void 0, "loaderSwitch");
|
|
96
|
-
var ENVIRONMENT_BINDINGS = {
|
|
97
|
-
smallModel: { variable: "NAMZU_SMALL_MODEL", read: word },
|
|
98
|
-
"limits.maxResponseTokens": {
|
|
99
|
-
variable: "NAMZU_MAX_OUTPUT_TOKENS",
|
|
100
|
-
read: /* @__PURE__ */ __name((raw, variable) => {
|
|
101
|
-
try {
|
|
102
|
-
return positiveTokenCount(raw, variable);
|
|
103
|
-
} catch {
|
|
104
|
-
return void 0;
|
|
105
|
-
}
|
|
106
|
-
}, "read")
|
|
107
|
-
},
|
|
108
|
-
"compaction.autoCompactWindowTokens": {
|
|
109
|
-
variable: "NAMZU_AUTO_COMPACT_WINDOW",
|
|
110
|
-
read: /* @__PURE__ */ __name((raw, variable) => resolveAutoCompactWindowSetting(raw, variable).tokens, "read")
|
|
111
|
-
},
|
|
112
|
-
"compaction.autoCompact": {
|
|
113
|
-
variable: "NAMZU_DISABLE_AUTO_COMPACT",
|
|
114
|
-
// Only the disabling spelling decides anything: `0` does not turn it back on.
|
|
115
|
-
read: /* @__PURE__ */ __name((raw) => readSwitch(raw) === true ? false : void 0, "read")
|
|
116
|
-
},
|
|
117
|
-
"compaction.autoCompactPercent": {
|
|
118
|
-
variable: "NAMZU_AUTOCOMPACT_PCT",
|
|
119
|
-
read: /* @__PURE__ */ __name((raw) => parseAutoCompactPercent(raw), "read")
|
|
120
|
-
},
|
|
121
|
-
format: {
|
|
122
|
-
variable: "NAMZU_FORMAT",
|
|
123
|
-
read: /* @__PURE__ */ __name((raw) => raw === "text" || raw === "json" || raw === "yaml" ? raw : void 0, "read")
|
|
124
|
-
},
|
|
125
|
-
quiet: { variable: "NAMZU_QUIET", read: loaderSwitch },
|
|
126
|
-
disableHooks: { variable: "NAMZU_DISABLE_HOOKS", read: loaderSwitch },
|
|
127
|
-
modelCatalogueRefresh: {
|
|
128
|
-
variable: "NAMZU_MODEL_CATALOGUE_REFRESH",
|
|
129
|
-
read: loaderSwitch
|
|
130
|
-
},
|
|
131
|
-
shareDesktopSignIn: {
|
|
132
|
-
variable: "NAMZU_SHARE_DESKTOP_SIGNIN",
|
|
133
|
-
read: loaderSwitch
|
|
134
|
-
},
|
|
135
|
-
"updates.auto": {
|
|
136
|
-
variable: "NAMZU_AUTO_UPDATE",
|
|
137
|
-
read: /* @__PURE__ */ __name((raw) => readSwitch(raw), "read")
|
|
138
|
-
},
|
|
139
|
-
"updates.check": {
|
|
140
|
-
variable: "NAMZU_UPDATE_CHECK",
|
|
141
|
-
read: /* @__PURE__ */ __name((raw) => readSwitch(raw), "read")
|
|
142
|
-
},
|
|
143
|
-
"updates.channel": {
|
|
144
|
-
variable: "NAMZU_UPDATE_CHANNEL",
|
|
145
|
-
read: /* @__PURE__ */ __name((raw) => {
|
|
146
|
-
const text = raw.trim().toLowerCase();
|
|
147
|
-
return text === "latest" || text === "stable" ? text : void 0;
|
|
148
|
-
}, "read")
|
|
149
|
-
},
|
|
150
|
-
"tui.fullscreen": {
|
|
151
|
-
variable: "NAMZU_FULLSCREEN",
|
|
152
|
-
read: /* @__PURE__ */ __name((raw) => fullscreenFromEnv({ NAMZU_FULLSCREEN: raw }), "read")
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
var PROJECT_DROPPED = [
|
|
156
|
-
"agentSettings",
|
|
157
|
-
"decision",
|
|
158
|
-
"apiKeyHelper",
|
|
159
|
-
"model",
|
|
160
|
-
"routing",
|
|
161
|
-
"smallModel",
|
|
162
|
-
"memory.select",
|
|
163
|
-
"memory.curation",
|
|
164
|
-
"memory.retireAfterDays",
|
|
165
|
-
"memory.fromConversations",
|
|
166
|
-
"memory.searchPastConversations"
|
|
167
|
-
];
|
|
168
|
-
var LOCAL_DROPPED = [
|
|
169
|
-
"agentSettings",
|
|
170
|
-
"decision",
|
|
171
|
-
"apiKeyHelper",
|
|
172
|
-
"model",
|
|
173
|
-
"routing",
|
|
174
|
-
"memory.select",
|
|
175
|
-
"memory.curation",
|
|
176
|
-
"memory.retireAfterDays",
|
|
177
|
-
"memory.fromConversations",
|
|
178
|
-
"memory.searchPastConversations"
|
|
179
|
-
];
|
|
180
|
-
function readJson(file) {
|
|
181
|
-
try {
|
|
182
|
-
if (!existsSync(file)) return {};
|
|
183
|
-
const parsed = JSON.parse(readFileSync(file, "utf8").replace(/^/, ""));
|
|
184
|
-
return parsed !== null && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
|
|
185
|
-
} catch {
|
|
186
|
-
return {};
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
__name(readJson, "readJson");
|
|
190
|
-
function lookup(doc, path) {
|
|
191
|
-
let at = doc;
|
|
192
|
-
for (const segment of path) {
|
|
193
|
-
if (at === null || typeof at !== "object" || Array.isArray(at)) return void 0;
|
|
194
|
-
at = at[segment];
|
|
195
|
-
}
|
|
196
|
-
return at;
|
|
197
|
-
}
|
|
198
|
-
__name(lookup, "lookup");
|
|
199
|
-
function layerReader(opts) {
|
|
200
|
-
const project = projectConfigFiles(opts.cwd).map((file) => readJson(file.path)).reverse();
|
|
201
|
-
const local = localConfigFiles(opts.cwd).map((file) => readJson(file.path)).reverse();
|
|
202
|
-
const managed = readJson(opts.managedPath ?? MANAGED_CONFIG_PATH);
|
|
203
|
-
return (path) => {
|
|
204
|
-
const segments = path.split(".");
|
|
205
|
-
const binding = ENVIRONMENT_BINDINGS[path];
|
|
206
|
-
const raw = binding ? opts.env[binding.variable] : void 0;
|
|
207
|
-
const envFirst = path === "tui.fullscreen" && binding && raw !== void 0;
|
|
208
|
-
const fromManaged = envFirst ? void 0 : lookup(managed, segments);
|
|
209
|
-
if (fromManaged !== void 0) return { layer: "managed", effective: fromManaged };
|
|
210
|
-
const checkOff = path === "updates.auto" && readSwitch(opts.env.NAMZU_UPDATE_CHECK ?? "") === false;
|
|
211
|
-
if (checkOff) {
|
|
212
|
-
return {
|
|
213
|
-
layer: "env",
|
|
214
|
-
effective: false,
|
|
215
|
-
env: { variable: "NAMZU_UPDATE_CHECK", value: (opts.env.NAMZU_UPDATE_CHECK ?? "").trim() }
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
if (binding && raw !== void 0) {
|
|
219
|
-
const effective = binding.read(raw, binding.variable);
|
|
220
|
-
return {
|
|
221
|
-
layer: "env",
|
|
222
|
-
...effective !== void 0 ? { effective } : {},
|
|
223
|
-
env: { variable: binding.variable, value: raw.trim() }
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
const held = /* @__PURE__ */ __name((docs, dropped) => {
|
|
227
|
-
if (dropped.some((key) => path === key || path.startsWith(`${key}.`))) return void 0;
|
|
228
|
-
for (const doc of docs) {
|
|
229
|
-
const value = lookup(doc, segments);
|
|
230
|
-
if (value !== void 0 && projectLayerHolds(path, value)) return value;
|
|
231
|
-
}
|
|
232
|
-
return void 0;
|
|
233
|
-
}, "held");
|
|
234
|
-
const fromLocal = held(local, LOCAL_DROPPED);
|
|
235
|
-
if (fromLocal !== void 0) return { layer: "local", effective: fromLocal };
|
|
236
|
-
const fromProject = held(project, PROJECT_DROPPED);
|
|
237
|
-
if (fromProject !== void 0) return { layer: "project", effective: fromProject };
|
|
238
|
-
return void 0;
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
__name(layerReader, "layerReader");
|
|
242
|
-
|
|
243
83
|
// src/config/setting-values.ts
|
|
244
84
|
var MS_UNITS = { h: 36e5, m: 6e4, s: 1e3 };
|
|
245
85
|
function parseDuration(text) {
|
|
@@ -1062,8 +902,8 @@ var SCREEN_WORDS = {
|
|
|
1062
902
|
}
|
|
1063
903
|
};
|
|
1064
904
|
function eventLabel(type) {
|
|
1065
|
-
const
|
|
1066
|
-
return
|
|
905
|
+
const words = type.replace(/_/g, " ");
|
|
906
|
+
return words.charAt(0).toUpperCase() + words.slice(1);
|
|
1067
907
|
}
|
|
1068
908
|
__name(eventLabel, "eventLabel");
|
|
1069
909
|
function keyLabel(key) {
|
|
@@ -1110,6 +950,7 @@ function appliesWhenFor(path) {
|
|
|
1110
950
|
"computerUse.",
|
|
1111
951
|
"permissions.",
|
|
1112
952
|
"codeAnalysis.",
|
|
953
|
+
"semanticSearch.",
|
|
1113
954
|
"imageGeneration."
|
|
1114
955
|
];
|
|
1115
956
|
const conversationKeys = /* @__PURE__ */ new Set([
|
|
@@ -3100,6 +2941,24 @@ var DECLARED = [
|
|
|
3100
2941
|
on,
|
|
3101
2942
|
{ group: "code-plugins", keywords: ["lsp", "definitions", "references"], default: true }
|
|
3102
2943
|
),
|
|
2944
|
+
d(
|
|
2945
|
+
"semanticSearch.mode",
|
|
2946
|
+
"tools",
|
|
2947
|
+
"Semantic code search",
|
|
2948
|
+
"Build an index for searching project code by meaning. Indexing sends code to the embedding provider configured in your user settings.",
|
|
2949
|
+
pick(
|
|
2950
|
+
["auto", "Local only", "Index when the configured provider runs on this computer."],
|
|
2951
|
+
["on", "On", "Index with the configured embedding provider, including a remote one."],
|
|
2952
|
+
["off", "Off", "Stop indexing and searching."]
|
|
2953
|
+
),
|
|
2954
|
+
{
|
|
2955
|
+
group: "code-plugins",
|
|
2956
|
+
default: "auto",
|
|
2957
|
+
keywords: ["semantic", "embeddings", "index"],
|
|
2958
|
+
confirmValue: "on",
|
|
2959
|
+
confirm: "A remote embedding provider will receive code from your projects when indexing is on."
|
|
2960
|
+
}
|
|
2961
|
+
),
|
|
3103
2962
|
d(
|
|
3104
2963
|
"imageGeneration.enabled",
|
|
3105
2964
|
"tools",
|
|
@@ -3652,6 +3511,199 @@ function byHeading(entries) {
|
|
|
3652
3511
|
}
|
|
3653
3512
|
__name(byHeading, "byHeading");
|
|
3654
3513
|
var SETTING_DESCRIPTORS = byHeading(DECLARED);
|
|
3514
|
+
var SETTING_SUBKEY_EXCLUSIONS = [
|
|
3515
|
+
...["provider", "model", "baseUrl", "apiKeyEnv"].map((key) => ({
|
|
3516
|
+
key: `semanticSearch.${key}`,
|
|
3517
|
+
reason: "The embedding connection is specified in the user or managed config file."
|
|
3518
|
+
})),
|
|
3519
|
+
{
|
|
3520
|
+
key: "goal.gatesFrom",
|
|
3521
|
+
reason: "Set by the loader to say whose file goal.gates came from; a settings file that names it is refused."
|
|
3522
|
+
},
|
|
3523
|
+
{ key: "tui.spacesPrefix", reason: "A deprecated alias of tui.workspacesPrefix; read only." },
|
|
3524
|
+
{
|
|
3525
|
+
key: "skills.overrides",
|
|
3526
|
+
reason: "A per-project state for each skill, written to the project's local settings file by the /skills screen in the terminal; Settings turns a skill on or off through skills.disabled."
|
|
3527
|
+
},
|
|
3528
|
+
{
|
|
3529
|
+
key: "plugins.launchDirs",
|
|
3530
|
+
reason: "Set for one run by --plugin-dir; the loader never reads it from a file, so a saved value would do nothing."
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
key: "plugins.blockedMarketplaces",
|
|
3534
|
+
reason: "A list of marketplace addresses an organisation or a person forbids, written in the user or managed file by hand; a project file cannot set it, and there is no single value for Settings to show."
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
key: "plugins.allowedMarketplaces",
|
|
3538
|
+
reason: "The only marketplace sources an organisation admits, written in the managed file by hand; no other file can set it, and there is no single value for Settings to show."
|
|
3539
|
+
},
|
|
3540
|
+
{
|
|
3541
|
+
key: "plugins.disableLaunchSources",
|
|
3542
|
+
reason: "An organisation switch that refuses --plugin-dir and --mcp-config, written in the managed file by hand; no other file can set it."
|
|
3543
|
+
},
|
|
3544
|
+
{
|
|
3545
|
+
key: "plugins.lockCustomization",
|
|
3546
|
+
reason: "An organisation switch (true, or a list of skills, agents, hooks and servers) that limits those surfaces to plugin, managed and built-in sources, written in the managed file by hand; no other file can set it."
|
|
3547
|
+
}
|
|
3548
|
+
];
|
|
3549
|
+
|
|
3550
|
+
// src/config/desktop-settings.ts
|
|
3551
|
+
var import_yaml = __toESM(require_dist(), 1);
|
|
3552
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
3553
|
+
|
|
3554
|
+
// src/config/setting-layers.ts
|
|
3555
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3556
|
+
var word = /* @__PURE__ */ __name((raw) => {
|
|
3557
|
+
const text = raw.trim();
|
|
3558
|
+
return text === "" ? void 0 : text;
|
|
3559
|
+
}, "word");
|
|
3560
|
+
var loaderSwitch = /* @__PURE__ */ __name((raw) => raw === "1" || raw === "true" ? true : raw === "0" || raw === "false" ? false : void 0, "loaderSwitch");
|
|
3561
|
+
var ENVIRONMENT_BINDINGS = {
|
|
3562
|
+
smallModel: { variable: "NAMZU_SMALL_MODEL", read: word },
|
|
3563
|
+
"limits.maxResponseTokens": {
|
|
3564
|
+
variable: "NAMZU_MAX_OUTPUT_TOKENS",
|
|
3565
|
+
read: /* @__PURE__ */ __name((raw, variable) => {
|
|
3566
|
+
try {
|
|
3567
|
+
return positiveTokenCount(raw, variable);
|
|
3568
|
+
} catch {
|
|
3569
|
+
return void 0;
|
|
3570
|
+
}
|
|
3571
|
+
}, "read")
|
|
3572
|
+
},
|
|
3573
|
+
"compaction.autoCompactWindowTokens": {
|
|
3574
|
+
variable: "NAMZU_AUTO_COMPACT_WINDOW",
|
|
3575
|
+
read: /* @__PURE__ */ __name((raw, variable) => resolveAutoCompactWindowSetting(raw, variable).tokens, "read")
|
|
3576
|
+
},
|
|
3577
|
+
"compaction.autoCompact": {
|
|
3578
|
+
variable: "NAMZU_DISABLE_AUTO_COMPACT",
|
|
3579
|
+
// Only the disabling spelling decides anything: `0` does not turn it back on.
|
|
3580
|
+
read: /* @__PURE__ */ __name((raw) => readSwitch(raw) === true ? false : void 0, "read")
|
|
3581
|
+
},
|
|
3582
|
+
"compaction.autoCompactPercent": {
|
|
3583
|
+
variable: "NAMZU_AUTOCOMPACT_PCT",
|
|
3584
|
+
read: /* @__PURE__ */ __name((raw) => parseAutoCompactPercent(raw), "read")
|
|
3585
|
+
},
|
|
3586
|
+
format: {
|
|
3587
|
+
variable: "NAMZU_FORMAT",
|
|
3588
|
+
read: /* @__PURE__ */ __name((raw) => raw === "text" || raw === "json" || raw === "yaml" ? raw : void 0, "read")
|
|
3589
|
+
},
|
|
3590
|
+
quiet: { variable: "NAMZU_QUIET", read: loaderSwitch },
|
|
3591
|
+
disableHooks: { variable: "NAMZU_DISABLE_HOOKS", read: loaderSwitch },
|
|
3592
|
+
modelCatalogueRefresh: {
|
|
3593
|
+
variable: "NAMZU_MODEL_CATALOGUE_REFRESH",
|
|
3594
|
+
read: loaderSwitch
|
|
3595
|
+
},
|
|
3596
|
+
shareDesktopSignIn: {
|
|
3597
|
+
variable: "NAMZU_SHARE_DESKTOP_SIGNIN",
|
|
3598
|
+
read: loaderSwitch
|
|
3599
|
+
},
|
|
3600
|
+
"updates.auto": {
|
|
3601
|
+
variable: "NAMZU_AUTO_UPDATE",
|
|
3602
|
+
read: /* @__PURE__ */ __name((raw) => readSwitch(raw), "read")
|
|
3603
|
+
},
|
|
3604
|
+
"updates.check": {
|
|
3605
|
+
variable: "NAMZU_UPDATE_CHECK",
|
|
3606
|
+
read: /* @__PURE__ */ __name((raw) => readSwitch(raw), "read")
|
|
3607
|
+
},
|
|
3608
|
+
"updates.channel": {
|
|
3609
|
+
variable: "NAMZU_UPDATE_CHANNEL",
|
|
3610
|
+
read: /* @__PURE__ */ __name((raw) => {
|
|
3611
|
+
const text = raw.trim().toLowerCase();
|
|
3612
|
+
return text === "latest" || text === "stable" ? text : void 0;
|
|
3613
|
+
}, "read")
|
|
3614
|
+
},
|
|
3615
|
+
"tui.fullscreen": {
|
|
3616
|
+
variable: "NAMZU_FULLSCREEN",
|
|
3617
|
+
read: /* @__PURE__ */ __name((raw) => fullscreenFromEnv({ NAMZU_FULLSCREEN: raw }), "read")
|
|
3618
|
+
}
|
|
3619
|
+
};
|
|
3620
|
+
var PROJECT_DROPPED = [
|
|
3621
|
+
"agentSettings",
|
|
3622
|
+
"decision",
|
|
3623
|
+
"apiKeyHelper",
|
|
3624
|
+
"model",
|
|
3625
|
+
"routing",
|
|
3626
|
+
"smallModel",
|
|
3627
|
+
"memory.select",
|
|
3628
|
+
"memory.curation",
|
|
3629
|
+
"memory.retireAfterDays",
|
|
3630
|
+
"memory.fromConversations",
|
|
3631
|
+
"memory.searchPastConversations"
|
|
3632
|
+
];
|
|
3633
|
+
var LOCAL_DROPPED = [
|
|
3634
|
+
"agentSettings",
|
|
3635
|
+
"decision",
|
|
3636
|
+
"apiKeyHelper",
|
|
3637
|
+
"model",
|
|
3638
|
+
"routing",
|
|
3639
|
+
"memory.select",
|
|
3640
|
+
"memory.curation",
|
|
3641
|
+
"memory.retireAfterDays",
|
|
3642
|
+
"memory.fromConversations",
|
|
3643
|
+
"memory.searchPastConversations"
|
|
3644
|
+
];
|
|
3645
|
+
function readJson(file) {
|
|
3646
|
+
try {
|
|
3647
|
+
if (!existsSync(file)) return {};
|
|
3648
|
+
const parsed = JSON.parse(readFileSync(file, "utf8").replace(/^/, ""));
|
|
3649
|
+
return parsed !== null && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
|
|
3650
|
+
} catch {
|
|
3651
|
+
return {};
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3654
|
+
__name(readJson, "readJson");
|
|
3655
|
+
function lookup(doc, path) {
|
|
3656
|
+
let at = doc;
|
|
3657
|
+
for (const segment of path) {
|
|
3658
|
+
if (at === null || typeof at !== "object" || Array.isArray(at)) return void 0;
|
|
3659
|
+
at = at[segment];
|
|
3660
|
+
}
|
|
3661
|
+
return at;
|
|
3662
|
+
}
|
|
3663
|
+
__name(lookup, "lookup");
|
|
3664
|
+
function layerReader(opts) {
|
|
3665
|
+
const project = projectConfigFiles(opts.cwd).map((file) => readJson(file.path)).reverse();
|
|
3666
|
+
const local = localConfigFiles(opts.cwd).map((file) => readJson(file.path)).reverse();
|
|
3667
|
+
const managed = readJson(opts.managedPath ?? MANAGED_CONFIG_PATH);
|
|
3668
|
+
return (path) => {
|
|
3669
|
+
const segments = path.split(".");
|
|
3670
|
+
const binding = ENVIRONMENT_BINDINGS[path];
|
|
3671
|
+
const raw = binding ? opts.env[binding.variable] : void 0;
|
|
3672
|
+
const envFirst = path === "tui.fullscreen" && binding && raw !== void 0;
|
|
3673
|
+
const fromManaged = envFirst ? void 0 : lookup(managed, segments);
|
|
3674
|
+
if (fromManaged !== void 0) return { layer: "managed", effective: fromManaged };
|
|
3675
|
+
const checkOff = path === "updates.auto" && readSwitch(opts.env.NAMZU_UPDATE_CHECK ?? "") === false;
|
|
3676
|
+
if (checkOff) {
|
|
3677
|
+
return {
|
|
3678
|
+
layer: "env",
|
|
3679
|
+
effective: false,
|
|
3680
|
+
env: { variable: "NAMZU_UPDATE_CHECK", value: (opts.env.NAMZU_UPDATE_CHECK ?? "").trim() }
|
|
3681
|
+
};
|
|
3682
|
+
}
|
|
3683
|
+
if (binding && raw !== void 0) {
|
|
3684
|
+
const effective = binding.read(raw, binding.variable);
|
|
3685
|
+
return {
|
|
3686
|
+
layer: "env",
|
|
3687
|
+
...effective !== void 0 ? { effective } : {},
|
|
3688
|
+
env: { variable: binding.variable, value: raw.trim() }
|
|
3689
|
+
};
|
|
3690
|
+
}
|
|
3691
|
+
const held = /* @__PURE__ */ __name((docs, dropped) => {
|
|
3692
|
+
if (dropped.some((key) => path === key || path.startsWith(`${key}.`))) return void 0;
|
|
3693
|
+
for (const doc of docs) {
|
|
3694
|
+
const value = lookup(doc, segments);
|
|
3695
|
+
if (value !== void 0 && projectLayerHolds(path, value)) return value;
|
|
3696
|
+
}
|
|
3697
|
+
return void 0;
|
|
3698
|
+
}, "held");
|
|
3699
|
+
const fromLocal = held(local, LOCAL_DROPPED);
|
|
3700
|
+
if (fromLocal !== void 0) return { layer: "local", effective: fromLocal };
|
|
3701
|
+
const fromProject = held(project, PROJECT_DROPPED);
|
|
3702
|
+
if (fromProject !== void 0) return { layer: "project", effective: fromProject };
|
|
3703
|
+
return void 0;
|
|
3704
|
+
};
|
|
3705
|
+
}
|
|
3706
|
+
__name(layerReader, "layerReader");
|
|
3655
3707
|
|
|
3656
3708
|
// src/config/desktop-settings.ts
|
|
3657
3709
|
function descriptorFor(path) {
|
|
@@ -3847,10 +3899,10 @@ function coerce(entry, raw) {
|
|
|
3847
3899
|
const list = wordsList(raw, "Enter a list of words.");
|
|
3848
3900
|
if (list.some((item) => item.trim() === "" || item.length > 2e3))
|
|
3849
3901
|
throw new Error(`Enter a ${control.itemLabel} of 1 to 2000 characters.`);
|
|
3850
|
-
const
|
|
3851
|
-
if (
|
|
3902
|
+
const words = list.map((item) => item.trim());
|
|
3903
|
+
if (words.length === 0 && Array.isArray(entry.default) && entry.default.length === 0)
|
|
3852
3904
|
return void 0;
|
|
3853
|
-
return
|
|
3905
|
+
return words;
|
|
3854
3906
|
}
|
|
3855
3907
|
case "number":
|
|
3856
3908
|
if (typeof raw !== "number" || !Number.isFinite(raw)) throw new Error("Enter a number.");
|
|
@@ -4148,547 +4200,30 @@ function writeSetting(change, opts = {}) {
|
|
|
4148
4200
|
}
|
|
4149
4201
|
__name(writeSetting, "writeSetting");
|
|
4150
4202
|
|
|
4151
|
-
// src/config/setting-cli.ts
|
|
4152
|
-
var APPLIES_SHORT = {
|
|
4153
|
-
now: "at once",
|
|
4154
|
-
"next-turn": "next message",
|
|
4155
|
-
"next-conversation": "new conversations",
|
|
4156
|
-
"next-start": "next start",
|
|
4157
|
-
"next-launch": "next app launch"
|
|
4158
|
-
};
|
|
4159
|
-
var SETTING_SECTIONS = [
|
|
4160
|
-
"models",
|
|
4161
|
-
"general",
|
|
4162
|
-
"appearance",
|
|
4163
|
-
"agent",
|
|
4164
|
-
"tools",
|
|
4165
|
-
"projects",
|
|
4166
|
-
"terminal",
|
|
4167
|
-
"telemetry",
|
|
4168
|
-
"updates"
|
|
4169
|
-
];
|
|
4170
|
-
function isSettingSection(name) {
|
|
4171
|
-
return SETTING_SECTIONS.includes(name);
|
|
4172
|
-
}
|
|
4173
|
-
__name(isSettingSection, "isSettingSection");
|
|
4174
|
-
function findSetting(key) {
|
|
4175
|
-
return SETTING_DESCRIPTORS.find((entry) => entry.path === key);
|
|
4176
|
-
}
|
|
4177
|
-
__name(findSetting, "findSetting");
|
|
4178
|
-
function editDistance(a, b) {
|
|
4179
|
-
const row = Array.from({ length: b.length + 1 }, (_, i) => i);
|
|
4180
|
-
for (let i = 1; i <= a.length; i++) {
|
|
4181
|
-
let diagonal = row[0];
|
|
4182
|
-
row[0] = i;
|
|
4183
|
-
for (let j = 1; j <= b.length; j++) {
|
|
4184
|
-
const above = row[j];
|
|
4185
|
-
row[j] = Math.min(
|
|
4186
|
-
above + 1,
|
|
4187
|
-
row[j - 1] + 1,
|
|
4188
|
-
diagonal + (a[i - 1] === b[j - 1] ? 0 : 1)
|
|
4189
|
-
);
|
|
4190
|
-
diagonal = above;
|
|
4191
|
-
}
|
|
4192
|
-
}
|
|
4193
|
-
return row[b.length];
|
|
4194
|
-
}
|
|
4195
|
-
__name(editDistance, "editDistance");
|
|
4196
|
-
function isSubsequence(short, long) {
|
|
4197
|
-
let at = 0;
|
|
4198
|
-
for (const letter of long) if (letter === short[at]) at++;
|
|
4199
|
-
return at === short.length;
|
|
4200
|
-
}
|
|
4201
|
-
__name(isSubsequence, "isSubsequence");
|
|
4202
|
-
function closestSettings(key, count = 3) {
|
|
4203
|
-
const needle = key.toLowerCase();
|
|
4204
|
-
const words2 = key.slice(key.indexOf(".") + 1).replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter((word2) => word2.length >= 3);
|
|
4205
|
-
const scored = SETTING_DESCRIPTORS.map((entry) => {
|
|
4206
|
-
const path = entry.path.toLowerCase();
|
|
4207
|
-
const label = entry.label.toLowerCase();
|
|
4208
|
-
const shares = needle.length >= 3 && (path.includes(needle) || needle.includes(path) || label.includes(needle));
|
|
4209
|
-
const last = path.split(".").pop();
|
|
4210
|
-
const tail = needle.split(".").pop();
|
|
4211
|
-
const prefix = tail.length >= 2 && needle.includes(".") && path.split(".").slice(0, -1).join(".") === needle.split(".").slice(0, -1).join(".") && isSubsequence(tail, last);
|
|
4212
|
-
const wordsHit = words2.length > 0 && words2.every((word2) => label.includes(word2));
|
|
4213
|
-
const distance = Math.min(
|
|
4214
|
-
editDistance(needle, path),
|
|
4215
|
-
tail.length >= 3 ? editDistance(tail, last) + 1 : Number.POSITIVE_INFINITY
|
|
4216
|
-
);
|
|
4217
|
-
const score = prefix ? distance - 300 : wordsHit ? distance - 200 : shares ? distance - 100 : distance;
|
|
4218
|
-
return { path: entry.path, score };
|
|
4219
|
-
});
|
|
4220
|
-
scored.sort((a, b) => a.score - b.score || a.path.localeCompare(b.path));
|
|
4221
|
-
const limit = Math.max(3, Math.ceil(needle.length / 2));
|
|
4222
|
-
return scored.filter((item) => item.score <= limit).slice(0, count).map((item) => item.path);
|
|
4223
|
-
}
|
|
4224
|
-
__name(closestSettings, "closestSettings");
|
|
4225
|
-
function unknownSettingMessage(key) {
|
|
4226
|
-
const near = closestSettings(key);
|
|
4227
|
-
return near.length > 0 ? `${key} is not a setting Namzu describes. The closest are: ${near.join(", ")}.` : `${key} is not a setting Namzu describes. List them with: namzu config list`;
|
|
4228
|
-
}
|
|
4229
|
-
__name(unknownSettingMessage, "unknownSettingMessage");
|
|
4230
|
-
function toRow(entry, state, saved) {
|
|
4231
|
-
const fileOnly2 = entry.control.kind === "file-only";
|
|
4232
|
-
const set = state?.set === true;
|
|
4233
|
-
const typed = effectiveDefault(entry, saved);
|
|
4234
|
-
return {
|
|
4235
|
-
key: entry.path,
|
|
4236
|
-
label: entry.label,
|
|
4237
|
-
section: entry.section,
|
|
4238
|
-
...entry.group ? { group: entry.group } : {},
|
|
4239
|
-
description: entry.description,
|
|
4240
|
-
set,
|
|
4241
|
-
...set && !fileOnly2 && state?.value !== void 0 ? { value: state.value } : {},
|
|
4242
|
-
valueText: !set ? "default" : fileOnly2 ? "set (edit the config file to see it)" : valueWords(entry, state?.value),
|
|
4243
|
-
...typed !== void 0 ? { default: typed } : {},
|
|
4244
|
-
defaultText: defaultWords(entry, saved),
|
|
4245
|
-
control: entry.control,
|
|
4246
|
-
appliesWhen: entry.appliesWhen,
|
|
4247
|
-
appliesText: appliesTextFor(entry),
|
|
4248
|
-
...entry.confirm ? { confirm: entry.confirm, asksWhen: asksWhenWords(entry) } : {},
|
|
4249
|
-
fileOnly: fileOnly2,
|
|
4250
|
-
...state?.env ? { env: state.env } : {},
|
|
4251
|
-
...state?.layer ? { layer: state.layer } : {},
|
|
4252
|
-
...state?.turnedOffBy ? { turnedOffBy: state.turnedOffBy } : {},
|
|
4253
|
-
...state?.effective !== void 0 ? {
|
|
4254
|
-
effective: state.effective,
|
|
4255
|
-
effectiveText: valueWords(entry, state.effective)
|
|
4256
|
-
} : {}
|
|
4257
|
-
};
|
|
4258
|
-
}
|
|
4259
|
-
__name(toRow, "toRow");
|
|
4260
|
-
function asksWhenWords(entry) {
|
|
4261
|
-
if (entry.confirmValues !== void 0) return `when set to ${entry.confirmValues.join(" or ")}`;
|
|
4262
|
-
if (entry.confirmValue !== void 0) return `when set to ${entry.confirmValue}`;
|
|
4263
|
-
if (entry.confirmWhen === "zero") return "when set to 0";
|
|
4264
|
-
if (entry.confirmWhen === "widens") return "when an entry is added";
|
|
4265
|
-
if (entry.confirmWhen === "loosens") {
|
|
4266
|
-
switch (entry.control.kind) {
|
|
4267
|
-
case "permission-rules":
|
|
4268
|
-
return "when a rule lets more run without asking: an allow rule added, a rule made more permissive, or a deny or ask rule removed";
|
|
4269
|
-
case "permission-checks":
|
|
4270
|
-
return "when a check is removed or changed";
|
|
4271
|
-
case "sites":
|
|
4272
|
-
return "when a site becomes act, or a denied site is opened";
|
|
4273
|
-
default:
|
|
4274
|
-
return "when the model changes or a list lets more run without asking you";
|
|
4275
|
-
}
|
|
4276
|
-
}
|
|
4277
|
-
if (entry.confirmWhen === "on" || entry.confirmWhen === "off")
|
|
4278
|
-
return `when turned ${entry.confirmWhen}`;
|
|
4279
|
-
return "on any change";
|
|
4280
|
-
}
|
|
4281
|
-
__name(asksWhenWords, "asksWhenWords");
|
|
4282
|
-
function listSettings(opts = {}, section) {
|
|
4283
|
-
const snapshot = readSettings(opts);
|
|
4284
|
-
const byPath = new Map(snapshot.settings.map((state) => [state.path, state]));
|
|
4285
|
-
const saved = /* @__PURE__ */ __name((path) => byPath.get(path) ?? { set: false }, "saved");
|
|
4286
|
-
const rank = /* @__PURE__ */ __name((name) => SETTING_SECTIONS.indexOf(name), "rank");
|
|
4287
|
-
const rows = SETTING_DESCRIPTORS.filter((entry) => !section || entry.section === section).map((entry, index) => ({ entry, index })).sort((a, b) => rank(a.entry.section) - rank(b.entry.section) || a.index - b.index).map(({ entry }) => toRow(entry, byPath.get(entry.path), saved));
|
|
4288
|
-
return { file: snapshot.file, rows };
|
|
4289
|
-
}
|
|
4290
|
-
__name(listSettings, "listSettings");
|
|
4291
|
-
function readSettingRow(key, opts = {}) {
|
|
4292
|
-
const entry = findSetting(key);
|
|
4293
|
-
if (!entry) throw new Error(unknownSettingMessage(key));
|
|
4294
|
-
const snapshot = readSettings(opts);
|
|
4295
|
-
const byPath = new Map(snapshot.settings.map((state) => [state.path, state]));
|
|
4296
|
-
return toRow(entry, byPath.get(key), (path) => byPath.get(path) ?? { set: false });
|
|
4297
|
-
}
|
|
4298
|
-
__name(readSettingRow, "readSettingRow");
|
|
4299
|
-
function rowData(row) {
|
|
4300
|
-
const control = row.control;
|
|
4301
|
-
return {
|
|
4302
|
-
key: row.key,
|
|
4303
|
-
label: row.label,
|
|
4304
|
-
section: row.section,
|
|
4305
|
-
...row.group ? { group: row.group, groupLabel: SETTING_GROUP_LABELS[row.group] } : {},
|
|
4306
|
-
description: row.description,
|
|
4307
|
-
set: row.set,
|
|
4308
|
-
...row.value !== void 0 ? { value: row.value } : {},
|
|
4309
|
-
...row.default !== void 0 ? { default: row.default } : {},
|
|
4310
|
-
defaultText: row.defaultText,
|
|
4311
|
-
control,
|
|
4312
|
-
appliesWhen: row.appliesWhen,
|
|
4313
|
-
appliesText: row.appliesText,
|
|
4314
|
-
...row.confirm ? { confirm: row.confirm, asksWhen: row.asksWhen } : {},
|
|
4315
|
-
...row.env ? { env: row.env } : {},
|
|
4316
|
-
...row.layer ? { layer: row.layer } : {},
|
|
4317
|
-
...row.turnedOffBy ? { turnedOffBy: row.turnedOffBy } : {},
|
|
4318
|
-
...row.effective !== void 0 ? { effective: row.effective } : {}
|
|
4319
|
-
};
|
|
4320
|
-
}
|
|
4321
|
-
__name(rowData, "rowData");
|
|
4322
|
-
function shortDefault(row) {
|
|
4323
|
-
const text = row.defaultText.replace(/\.\s.*$/, "").replace(/\.$/, "");
|
|
4324
|
-
return text.length > 40 ? `${text.slice(0, 37)}...` : text;
|
|
4325
|
-
}
|
|
4326
|
-
__name(shortDefault, "shortDefault");
|
|
4327
|
-
function shortApplies(row) {
|
|
4328
|
-
return APPLIES_SHORT[row.appliesWhen];
|
|
4329
|
-
}
|
|
4330
|
-
__name(shortApplies, "shortApplies");
|
|
4331
|
-
function renderSettingList(rows, file) {
|
|
4332
|
-
const keyWidth = Math.max(...rows.map((row) => row.key.length), 3);
|
|
4333
|
-
const labelWidth = Math.max(...rows.map((row) => row.label.length), 5);
|
|
4334
|
-
const valueWidth = Math.min(Math.max(...rows.map((row) => row.valueText.length), 5), 40);
|
|
4335
|
-
const lines = [`Settings in ${file}`, ""];
|
|
4336
|
-
if (rows.length === 0)
|
|
4337
|
-
lines.push("No settings in this section. Its settings moved: run namzu config list.");
|
|
4338
|
-
let section;
|
|
4339
|
-
let group;
|
|
4340
|
-
for (const row of rows) {
|
|
4341
|
-
if (row.section !== section) {
|
|
4342
|
-
if (section !== void 0) lines.push("");
|
|
4343
|
-
section = row.section;
|
|
4344
|
-
group = void 0;
|
|
4345
|
-
lines.push(`[${section}]`);
|
|
4346
|
-
}
|
|
4347
|
-
if (row.group !== group) {
|
|
4348
|
-
group = row.group;
|
|
4349
|
-
if (group) lines.push(` ${SETTING_GROUP_LABELS[group]}`);
|
|
4350
|
-
}
|
|
4351
|
-
lines.push(
|
|
4352
|
-
` ${row.key.padEnd(keyWidth)} ${row.label.padEnd(labelWidth)} ${row.valueText.padEnd(valueWidth)} default ${shortDefault(row)}; applies ${shortApplies(row)}`
|
|
4353
|
-
);
|
|
4354
|
-
}
|
|
4355
|
-
lines.push("", `${rows.length} settings. Show one: namzu config get <key>`);
|
|
4356
|
-
return lines.join("\n");
|
|
4357
|
-
}
|
|
4358
|
-
__name(renderSettingList, "renderSettingList");
|
|
4359
|
-
function renderSetting(row, file) {
|
|
4360
|
-
const lines = [`${row.label} (${row.key})`, row.description, ""];
|
|
4361
|
-
lines.push(
|
|
4362
|
-
`Value: ${row.set ? row.valueText : `default (${row.defaultText})`}${row.set ? " (set in the user file)" : ""}`
|
|
4363
|
-
);
|
|
4364
|
-
if (row.effectiveText !== void 0) lines.push(`In force: ${row.effectiveText}`);
|
|
4365
|
-
if (row.turnedOffBy) lines.push(`Note: ${turnedOffNote(row.turnedOffBy)}`);
|
|
4366
|
-
else if (row.layer && row.layer !== "user" && row.env?.value !== "")
|
|
4367
|
-
lines.push(`Note: ${layerNote(row.layer, row.env, row.set)}`);
|
|
4368
|
-
else if (row.env) lines.push(`Note: ${environmentNote(row.env)}`);
|
|
4369
|
-
lines.push(`Default: ${row.defaultText.replace(/\.$/, "")}. ${row.appliesText}`);
|
|
4370
|
-
const control = row.control;
|
|
4371
|
-
if (control.kind === "number") {
|
|
4372
|
-
const range = rangeText(control);
|
|
4373
|
-
if (range) lines.push(`Range: ${range}`);
|
|
4374
|
-
if (control.unit === "ms")
|
|
4375
|
-
lines.push("Takes: a time, such as 5m, 90s or 1h 30m; a bare number is minutes");
|
|
4376
|
-
else if (control.unit === "tokens") lines.push("Takes: a number, such as 200000, 200k or 1m");
|
|
4377
|
-
} else if (control.kind === "toggle") lines.push("Takes: on or off");
|
|
4378
|
-
else if (control.kind === "select" || control.kind === "checks") {
|
|
4379
|
-
lines.push(
|
|
4380
|
-
control.kind === "checks" ? `Choices: (give a comma list, none${control.allLabel ? " or all" : ""})` : "Choices:"
|
|
4381
|
-
);
|
|
4382
|
-
lines.push(...optionLines(control.options));
|
|
4383
|
-
} else if (control.kind === "toggle-checks") {
|
|
4384
|
-
lines.push("Takes: on, off, or a comma list of events (on means the first two below)");
|
|
4385
|
-
lines.push(...optionLines(control.options));
|
|
4386
|
-
} else if (control.kind === "toggle-list") lines.push("Takes: on or off");
|
|
4387
|
-
else if (control.kind === "key") {
|
|
4388
|
-
lines.push(`Takes: one of ${control.options.map((o) => o.value).join(", ")}`);
|
|
4389
|
-
} else if (control.kind === "levels") {
|
|
4390
|
-
const [entry, level] = [control.entries[0]?.value, control.levels[0]?.value];
|
|
4391
|
-
lines.push(
|
|
4392
|
-
`Takes: ${entry}=${level}, comma separated (entries not named keep their level), or JSON such as {"${entry}":"${level}"}`
|
|
4393
|
-
);
|
|
4394
|
-
lines.push("Entries:");
|
|
4395
|
-
lines.push(...optionLines(control.entries));
|
|
4396
|
-
lines.push(`Levels: ${control.levels.map((l) => l.value).join(", ")}`);
|
|
4397
|
-
lines.push(" An entry set to its default is left out of the file.");
|
|
4398
|
-
} else if (control.kind === "screens") {
|
|
4399
|
-
lines.push("Takes: a comma list of screens, none, or JSON for tools that pass through");
|
|
4400
|
-
lines.push(
|
|
4401
|
-
` such as [{"name":"${control.passthrough.screen}","${control.passthrough.field}":["tool-name"]}]`
|
|
4402
|
-
);
|
|
4403
|
-
lines.push("Screens:");
|
|
4404
|
-
lines.push(...optionLines(control.options));
|
|
4405
|
-
} else if (control.kind === "list")
|
|
4406
|
-
lines.push(
|
|
4407
|
-
`Takes: ${control.itemLabel}s, comma separated, none, or a JSON list (a name that holds a comma must be written as JSON)`
|
|
4408
|
-
);
|
|
4409
|
-
else if (control.kind === "json") lines.push(`Takes: JSON, such as ${control.example}`);
|
|
4410
|
-
else if (control.kind === "text") lines.push("Takes: text");
|
|
4411
|
-
else if (control.kind === "model")
|
|
4412
|
-
lines.push("Takes: a model, as provider/model or just the model of your provider");
|
|
4413
|
-
else if (control.kind === "routing" || control.kind === "auto-mode") {
|
|
4414
|
-
lines.push(`Takes: JSON, such as ${control.example}`);
|
|
4415
|
-
if (control.kind === "auto-mode") {
|
|
4416
|
-
lines.push(
|
|
4417
|
-
"Lists: a list left out keeps the built-in rules; a list you give replaces them;"
|
|
4418
|
-
);
|
|
4419
|
-
lines.push(" the entry $defaults stands for the built-in rules at that place.");
|
|
4420
|
-
lines.push(...optionLines(control.lists));
|
|
4421
|
-
lines.push(
|
|
4422
|
-
"Model: provider/model, a bare model of your provider, or smallModel for the side model"
|
|
4423
|
-
);
|
|
4424
|
-
}
|
|
4425
|
-
} else if (control.kind === "permission-rules" || control.kind === "permission-checks" || control.kind === "sites") {
|
|
4426
|
-
lines.push(`Takes: JSON, such as ${control.example}`);
|
|
4427
|
-
if (control.kind === "permission-rules") {
|
|
4428
|
-
lines.push(" a tool name (as written in lower case, such as bash) and, inside it,");
|
|
4429
|
-
lines.push(" a pattern of its input with the answer. Only the rules are set here;");
|
|
4430
|
-
lines.push(" the permission modes have their own keys.");
|
|
4431
|
-
lines.push("Answers:");
|
|
4432
|
-
lines.push(...optionLines(control.effects));
|
|
4433
|
-
} else if (control.kind === "permission-checks") {
|
|
4434
|
-
lines.push(" each check is a tool, the input it is called with (an object; for");
|
|
4435
|
-
lines.push(
|
|
4436
|
-
` ${control.commandTools.join(", ")} the field ${control.commandField}) and the answer expected.`
|
|
4437
|
-
);
|
|
4438
|
-
lines.push("Expected:");
|
|
4439
|
-
lines.push(...optionLines(control.effects));
|
|
4440
|
-
} else {
|
|
4441
|
-
lines.push(" a site as the engine matches it (with its scheme) and a level;");
|
|
4442
|
-
lines.push(
|
|
4443
|
-
` * is every other site, and reads as ${control.defaultLevel} when left out.`
|
|
4444
|
-
);
|
|
4445
|
-
lines.push("Levels:");
|
|
4446
|
-
lines.push(...optionLines(control.levels));
|
|
4447
|
-
}
|
|
4448
|
-
} else lines.push("Takes: nothing here; edit this one in the config file");
|
|
4449
|
-
if (row.confirm) lines.push(`Asks: ${row.asksWhen}: ${row.confirm}`);
|
|
4450
|
-
lines.push(`File: ${file}`);
|
|
4451
|
-
return lines.join("\n");
|
|
4452
|
-
}
|
|
4453
|
-
__name(renderSetting, "renderSetting");
|
|
4454
|
-
function optionLines(options) {
|
|
4455
|
-
const width = Math.max(...options.map((o) => o.value.length));
|
|
4456
|
-
return options.map(
|
|
4457
|
-
(option) => ` ${option.value.padEnd(width)} ${option.label}${option.help ? ` - ${option.help}` : ""}`
|
|
4458
|
-
);
|
|
4459
|
-
}
|
|
4460
|
-
__name(optionLines, "optionLines");
|
|
4461
|
-
function matchOption(options, text) {
|
|
4462
|
-
const wanted = text.trim().toLowerCase();
|
|
4463
|
-
return options.find((o) => o.value.toLowerCase() === wanted || o.label.toLowerCase() === wanted)?.value ?? text.trim();
|
|
4464
|
-
}
|
|
4465
|
-
__name(matchOption, "matchOption");
|
|
4466
|
-
function words(text) {
|
|
4467
|
-
return text.split(",").map((item) => item.trim()).filter((item) => item !== "");
|
|
4468
|
-
}
|
|
4469
|
-
__name(words, "words");
|
|
4470
|
-
function jsonOrNothing(text) {
|
|
4471
|
-
const trimmed = text.trim();
|
|
4472
|
-
if (!trimmed.startsWith("[") && !trimmed.startsWith("{")) return void 0;
|
|
4473
|
-
try {
|
|
4474
|
-
return { value: JSON.parse(trimmed) };
|
|
4475
|
-
} catch (error) {
|
|
4476
|
-
return { error: `That is not valid JSON: ${error.message}` };
|
|
4477
|
-
}
|
|
4478
|
-
}
|
|
4479
|
-
__name(jsonOrNothing, "jsonOrNothing");
|
|
4480
|
-
var OFF_WORDS = /* @__PURE__ */ new Set(["off", "false", "no", "none", "0", ""]);
|
|
4481
|
-
var ON_WORDS = /* @__PURE__ */ new Set(["on", "true", "yes", "1"]);
|
|
4482
|
-
var TOGGLE_WORDS = {
|
|
4483
|
-
on: true,
|
|
4484
|
-
true: true,
|
|
4485
|
-
yes: true,
|
|
4486
|
-
"1": true,
|
|
4487
|
-
off: false,
|
|
4488
|
-
false: false,
|
|
4489
|
-
no: false,
|
|
4490
|
-
"0": false
|
|
4491
|
-
};
|
|
4492
|
-
function parseSettingText(entry, text, opts = {}) {
|
|
4493
|
-
const control = entry.control;
|
|
4494
|
-
switch (control.kind) {
|
|
4495
|
-
case "toggle": {
|
|
4496
|
-
const word2 = TOGGLE_WORDS[text.trim().toLowerCase()];
|
|
4497
|
-
return word2 === void 0 ? { error: "Choose on or off." } : { value: word2 };
|
|
4498
|
-
}
|
|
4499
|
-
case "number":
|
|
4500
|
-
return numberFromText(text, control);
|
|
4501
|
-
case "select": {
|
|
4502
|
-
const wanted = text.trim().toLowerCase();
|
|
4503
|
-
const hit = control.options.find(
|
|
4504
|
-
(o) => o.value.toLowerCase() === wanted || o.label.toLowerCase() === wanted
|
|
4505
|
-
);
|
|
4506
|
-
return { value: hit ? hit.value : text.trim() };
|
|
4507
|
-
}
|
|
4508
|
-
case "checks": {
|
|
4509
|
-
const trimmed = text.trim();
|
|
4510
|
-
const asJson = jsonOrNothing(trimmed);
|
|
4511
|
-
if (asJson) return asJson;
|
|
4512
|
-
if (trimmed === "" || trimmed.toLowerCase() === "none") return { value: [] };
|
|
4513
|
-
if (control.allLabel && trimmed.toLowerCase() === "all")
|
|
4514
|
-
return { value: control.options.map((o) => o.value) };
|
|
4515
|
-
const items = words(trimmed);
|
|
4516
|
-
return {
|
|
4517
|
-
value: items.map((item) => {
|
|
4518
|
-
const wanted = item.toLowerCase();
|
|
4519
|
-
const hit = control.options.find(
|
|
4520
|
-
(o) => o.value.toLowerCase() === wanted || o.label.toLowerCase() === wanted
|
|
4521
|
-
);
|
|
4522
|
-
return hit ? hit.value : item;
|
|
4523
|
-
})
|
|
4524
|
-
};
|
|
4525
|
-
}
|
|
4526
|
-
case "toggle-checks": {
|
|
4527
|
-
const asJson = jsonOrNothing(text);
|
|
4528
|
-
if (asJson) return asJson;
|
|
4529
|
-
const word2 = text.trim().toLowerCase();
|
|
4530
|
-
if (ON_WORDS.has(word2)) return { value: true };
|
|
4531
|
-
if (OFF_WORDS.has(word2)) return { value: false };
|
|
4532
|
-
return { value: words(text).map((item) => matchOption(control.options, item)) };
|
|
4533
|
-
}
|
|
4534
|
-
case "toggle-list": {
|
|
4535
|
-
const asJson = jsonOrNothing(text);
|
|
4536
|
-
if (asJson) return asJson;
|
|
4537
|
-
const word2 = text.trim().toLowerCase();
|
|
4538
|
-
if (ON_WORDS.has(word2)) return { value: [...control.on] };
|
|
4539
|
-
if (OFF_WORDS.has(word2)) return { value: [...control.off] };
|
|
4540
|
-
return { value: words(text) };
|
|
4541
|
-
}
|
|
4542
|
-
case "key":
|
|
4543
|
-
return { value: matchOption(control.options, text.trim().replace(/\s+/g, "")) };
|
|
4544
|
-
case "levels": {
|
|
4545
|
-
const asJson = jsonOrNothing(text);
|
|
4546
|
-
if (asJson) return asJson;
|
|
4547
|
-
if (OFF_WORDS.has(text.trim().toLowerCase())) return { value: {} };
|
|
4548
|
-
let saved;
|
|
4549
|
-
try {
|
|
4550
|
-
saved = readSettings(opts).settings.find((s) => s.path === entry.path)?.value;
|
|
4551
|
-
} catch {
|
|
4552
|
-
saved = void 0;
|
|
4553
|
-
}
|
|
4554
|
-
const chosen = { ...levelsHeld(saved, entry.default) };
|
|
4555
|
-
for (const item of words(text)) {
|
|
4556
|
-
const at = item.indexOf("=");
|
|
4557
|
-
if (at < 0)
|
|
4558
|
-
return {
|
|
4559
|
-
error: `Write each as entry=level, such as ${control.entries[0]?.value}=${control.levels[0]?.value}.`
|
|
4560
|
-
};
|
|
4561
|
-
chosen[matchOption(control.entries, item.slice(0, at))] = matchOption(
|
|
4562
|
-
control.levels,
|
|
4563
|
-
item.slice(at + 1)
|
|
4564
|
-
);
|
|
4565
|
-
}
|
|
4566
|
-
return { value: chosen };
|
|
4567
|
-
}
|
|
4568
|
-
case "screens": {
|
|
4569
|
-
const asJson = jsonOrNothing(text);
|
|
4570
|
-
if (asJson) return asJson;
|
|
4571
|
-
const trimmed = text.trim().toLowerCase();
|
|
4572
|
-
if (trimmed === "" || trimmed === "none") return { value: [] };
|
|
4573
|
-
return { value: words(text).map((item) => matchOption(control.options, item)) };
|
|
4574
|
-
}
|
|
4575
|
-
case "list": {
|
|
4576
|
-
const asJson = jsonOrNothing(text);
|
|
4577
|
-
if (asJson) return asJson;
|
|
4578
|
-
const trimmed = text.trim().toLowerCase();
|
|
4579
|
-
if (trimmed === "" || trimmed === "none") return { value: [] };
|
|
4580
|
-
return { value: words(text) };
|
|
4581
|
-
}
|
|
4582
|
-
case "text":
|
|
4583
|
-
return { value: text };
|
|
4584
|
-
case "model":
|
|
4585
|
-
return { value: text.trim() };
|
|
4586
|
-
case "routing":
|
|
4587
|
-
case "auto-mode":
|
|
4588
|
-
case "permission-rules":
|
|
4589
|
-
case "permission-checks":
|
|
4590
|
-
case "sites": {
|
|
4591
|
-
const asJson = jsonOrNothing(text);
|
|
4592
|
-
if (asJson) return asJson;
|
|
4593
|
-
return { error: `Give JSON, such as ${control.example}` };
|
|
4594
|
-
}
|
|
4595
|
-
case "json":
|
|
4596
|
-
return { value: text };
|
|
4597
|
-
case "file-only":
|
|
4598
|
-
return {
|
|
4599
|
-
error: `Edit this one in the config file (${userConfigPath(opts)}); it is not shown or changed here.`
|
|
4600
|
-
};
|
|
4601
|
-
}
|
|
4602
|
-
}
|
|
4603
|
-
__name(parseSettingText, "parseSettingText");
|
|
4604
|
-
function sameValue(a, b) {
|
|
4605
|
-
return JSON.stringify(a) === JSON.stringify(b);
|
|
4606
|
-
}
|
|
4607
|
-
__name(sameValue, "sameValue");
|
|
4608
|
-
function planSettingChange(key, text, opts = {}) {
|
|
4609
|
-
const entry = findSetting(key);
|
|
4610
|
-
if (!entry) return { ok: false, error: unknownSettingMessage(key) };
|
|
4611
|
-
let value;
|
|
4612
|
-
if (text !== void 0) {
|
|
4613
|
-
const parsed = parseSettingText(entry, text, opts);
|
|
4614
|
-
if ("error" in parsed) return { ok: false, error: parsed.error };
|
|
4615
|
-
value = parsed.value;
|
|
4616
|
-
} else if (entry.control.kind === "file-only")
|
|
4617
|
-
return {
|
|
4618
|
-
ok: false,
|
|
4619
|
-
error: `Edit this one in the config file (${userConfigPath(opts)}); it is not shown or changed here.`
|
|
4620
|
-
};
|
|
4621
|
-
try {
|
|
4622
|
-
checkSetting({ path: key, ...value !== void 0 ? { value } : {} }, opts);
|
|
4623
|
-
} catch (error) {
|
|
4624
|
-
return { ok: false, error: error.message };
|
|
4625
|
-
}
|
|
4626
|
-
let state;
|
|
4627
|
-
try {
|
|
4628
|
-
state = readSettings(opts).settings.find((s) => s.path === key);
|
|
4629
|
-
} catch {
|
|
4630
|
-
state = void 0;
|
|
4631
|
-
}
|
|
4632
|
-
let comparable = value;
|
|
4633
|
-
if (entry.control.kind === "json" && typeof value === "string") {
|
|
4634
|
-
try {
|
|
4635
|
-
comparable = JSON.parse(value);
|
|
4636
|
-
} catch {
|
|
4637
|
-
comparable = value;
|
|
4638
|
-
}
|
|
4639
|
-
}
|
|
4640
|
-
const unchanged = text === void 0 ? state?.set !== true : state?.set === true && sameValue(state.value, comparable);
|
|
4641
|
-
const asks = !unchanged && needsConfirmation(entry, value, state?.set ? state.value : entry.default) ? entry.confirmWhen === "widens" && entry.confirm ? widenedConfirmation(entry.confirm, state?.set ? state.value : entry.default, value) : entry.confirmWhen === "loosens" && entry.confirm ? loosenConfirmation(entry, state?.set ? state.value : entry.default, value) : describeChange(key).confirm : void 0;
|
|
4642
|
-
return {
|
|
4643
|
-
ok: true,
|
|
4644
|
-
entry,
|
|
4645
|
-
...asks ? { confirm: asks } : {},
|
|
4646
|
-
apply: /* @__PURE__ */ __name(() => {
|
|
4647
|
-
writeSetting({ path: key, ...value !== void 0 ? { value } : {} }, opts);
|
|
4648
|
-
const row = readSettingRow(key, opts);
|
|
4649
|
-
const head = text === void 0 || !row.set ? `${row.label} is back to its default: ${row.defaultText.replace(/\.$/, "")}.` : `${row.label} is now ${row.valueText}.`;
|
|
4650
|
-
return `${head} ${row.appliesText}`;
|
|
4651
|
-
}, "apply"),
|
|
4652
|
-
// The terminal screen's wording: what was set, and the apply time only when a
|
|
4653
|
-
// restart is needed to see it.
|
|
4654
|
-
applyForScreen: /* @__PURE__ */ __name(() => {
|
|
4655
|
-
writeSetting({ path: key, ...value !== void 0 ? { value } : {} }, opts);
|
|
4656
|
-
const row = readSettingRow(key, opts);
|
|
4657
|
-
const head = text === void 0 || !row.set ? `Set ${row.label} to default (${row.defaultText.replace(/\.$/, "")})` : `Set ${row.label} to ${row.valueText}`;
|
|
4658
|
-
const restart = entry.appliesWhen === "next-start" || entry.appliesWhen === "next-launch";
|
|
4659
|
-
return restart ? `${head}. ${row.appliesText}` : head;
|
|
4660
|
-
}, "applyForScreen")
|
|
4661
|
-
};
|
|
4662
|
-
}
|
|
4663
|
-
__name(planSettingChange, "planSettingChange");
|
|
4664
|
-
function describeSetting(key, opts = {}) {
|
|
4665
|
-
return renderSetting(readSettingRow(key, opts), userConfigPath(opts));
|
|
4666
|
-
}
|
|
4667
|
-
__name(describeSetting, "describeSetting");
|
|
4668
|
-
|
|
4669
4203
|
export {
|
|
4670
4204
|
fullscreenFromEnv,
|
|
4671
4205
|
resolveFullscreen,
|
|
4672
4206
|
setScreenModeNow,
|
|
4673
4207
|
getScreenModeNow,
|
|
4208
|
+
rangeText,
|
|
4209
|
+
numberFromText,
|
|
4210
|
+
needsConfirmation,
|
|
4211
|
+
widenedConfirmation,
|
|
4212
|
+
levelsHeld,
|
|
4213
|
+
effectiveDefault,
|
|
4214
|
+
defaultWords,
|
|
4674
4215
|
valueWords,
|
|
4216
|
+
environmentNote,
|
|
4217
|
+
turnedOffNote,
|
|
4218
|
+
layerNote,
|
|
4219
|
+
loosenConfirmation,
|
|
4675
4220
|
DEFAULT_SHOW_TURN_DURATION,
|
|
4221
|
+
SETTING_GROUP_LABELS,
|
|
4222
|
+
appliesTextFor,
|
|
4676
4223
|
SETTING_DESCRIPTORS,
|
|
4677
4224
|
readSettings,
|
|
4225
|
+
describeChange,
|
|
4678
4226
|
checkSetting,
|
|
4679
|
-
writeSetting
|
|
4680
|
-
SETTING_SECTIONS,
|
|
4681
|
-
isSettingSection,
|
|
4682
|
-
findSetting,
|
|
4683
|
-
closestSettings,
|
|
4684
|
-
unknownSettingMessage,
|
|
4685
|
-
listSettings,
|
|
4686
|
-
readSettingRow,
|
|
4687
|
-
rowData,
|
|
4688
|
-
renderSettingList,
|
|
4689
|
-
renderSetting,
|
|
4690
|
-
parseSettingText,
|
|
4691
|
-
planSettingChange,
|
|
4692
|
-
describeSetting
|
|
4227
|
+
writeSetting
|
|
4693
4228
|
};
|
|
4694
|
-
//# sourceMappingURL=chunk-
|
|
4229
|
+
//# sourceMappingURL=chunk-YVQE7BQ7.js.map
|