@namzu/cli 57.0.0 → 58.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 +142 -0
- package/README.md +5 -5
- package/dist/bin.js +1 -1
- package/dist/boot-narrative.d.ts.map +1 -1
- package/dist/browser/control.d.ts +25 -2
- package/dist/browser/control.d.ts.map +1 -1
- package/dist/chunks/{acp-KBPTK4GN.js → acp-OZG7H75P.js} +441 -205
- package/dist/chunks/acp-OZG7H75P.js.map +6 -0
- package/dist/chunks/{activity-command-JOED2VWN.js → activity-command-ZROH53CS.js} +14 -15
- package/dist/chunks/activity-command-ZROH53CS.js.map +6 -0
- package/dist/chunks/{add-66AQ7SKZ.js → add-DKSV5Y3C.js} +36 -34
- package/dist/chunks/add-DKSV5Y3C.js.map +6 -0
- package/dist/chunks/{agent-DL7YTL5B.js → agent-MSSMOEBP.js} +58 -48
- package/dist/chunks/agent-session-VCB6HX3E.js +89 -0
- package/dist/chunks/{apply-at-exit-5GUCOPX3.js → apply-at-exit-Z34ZOT4A.js} +9 -9
- package/dist/chunks/{apply-at-exit-5GUCOPX3.js.map → apply-at-exit-Z34ZOT4A.js.map} +1 -1
- package/dist/chunks/{archive-ED4CWEU2.js → archive-UMNSALTJ.js} +16 -13
- package/dist/chunks/archive-UMNSALTJ.js.map +6 -0
- package/dist/chunks/auth-2NEDWCS7.js +242 -0
- package/dist/chunks/auth-2NEDWCS7.js.map +6 -0
- package/dist/chunks/{bin-main-JDJ6LEOK.js → bin-main-2E6XD7MQ.js} +8 -8
- package/dist/chunks/{binding-NU3G3EBQ.js → binding-NAPEU62B.js} +3 -3
- package/dist/chunks/browser-M7U6GZOY.js +76 -0
- package/dist/chunks/browser-M7U6GZOY.js.map +6 -0
- package/dist/chunks/{chat-ISFH5CPZ.js → chat-34SAREPI.js} +17 -18
- package/dist/chunks/chat-34SAREPI.js.map +6 -0
- package/dist/chunks/{chunk-C4CUPDOU.js → chunk-27ICMJVV.js} +3 -3
- package/dist/chunks/{chunk-6XIPTDOH.js → chunk-2D5WW5KP.js} +2 -2
- package/dist/chunks/{chunk-T3VMBZEY.js → chunk-2GKFWJ3O.js} +7 -186
- package/dist/chunks/chunk-2GKFWJ3O.js.map +6 -0
- package/dist/chunks/{chunk-K3NVHXN7.js → chunk-2J2Z6S3V.js} +21 -21
- package/dist/chunks/{chunk-G3WCIRCZ.js → chunk-2PRVGX6U.js} +8 -8
- package/dist/chunks/chunk-2QJNPJOC.js +39 -0
- package/dist/chunks/chunk-2QJNPJOC.js.map +6 -0
- package/dist/chunks/{chunk-K5FGK5AP.js → chunk-32CPPPKX.js} +3 -3
- package/dist/chunks/{chunk-ETDOSJF7.js → chunk-3SBROSVS.js} +2 -2
- package/dist/chunks/{chunk-ZT3DLJQZ.js → chunk-3ZL6YBMT.js} +6 -6
- package/dist/chunks/chunk-4AWE33MD.js +186 -0
- package/dist/chunks/chunk-4AWE33MD.js.map +6 -0
- package/dist/chunks/{chunk-C534SIJI.js → chunk-4RCXY7WO.js} +2 -2
- package/dist/chunks/{chunk-IH5NEU2Y.js → chunk-4WLMPRGO.js} +4 -4
- package/dist/chunks/{chunk-IH5NEU2Y.js.map → chunk-4WLMPRGO.js.map} +1 -1
- package/dist/chunks/{chunk-NQ3MZ6N4.js → chunk-4YQJ262B.js} +2 -2
- package/dist/chunks/{chunk-WEL6L6DN.js → chunk-52DZTN4C.js} +5 -3
- package/dist/chunks/{chunk-QF4HGWRL.js → chunk-5564PCLT.js} +11 -9
- package/dist/chunks/chunk-5564PCLT.js.map +6 -0
- package/dist/chunks/{chunk-2TU3QQRG.js → chunk-5COLG33E.js} +35 -6
- package/dist/chunks/chunk-5COLG33E.js.map +6 -0
- package/dist/chunks/{chunk-MTSXDMJB.js → chunk-5GI7W4SM.js} +9 -9
- package/dist/chunks/{chunk-I7WXDTCF.js → chunk-5NIQMCRF.js} +2 -2
- package/dist/chunks/{chunk-JOORBY5L.js → chunk-5WS5Q2KW.js} +3 -3
- package/dist/chunks/{chunk-T5MBQXU2.js → chunk-655EBPZH.js} +36 -12
- package/dist/chunks/{chunk-T5MBQXU2.js.map → chunk-655EBPZH.js.map} +1 -1
- package/dist/chunks/{chunk-7EL5RPEU.js → chunk-66DFXMZG.js} +5 -5
- package/dist/chunks/{chunk-6SEDSZBH.js → chunk-6MMKNZYL.js} +3 -3
- package/dist/chunks/{chunk-Y3KKZ7HS.js → chunk-6QQVZXUE.js} +2 -2
- package/dist/chunks/{chunk-X2JFYB5A.js → chunk-6RBEIDSC.js} +3 -3
- package/dist/chunks/{chunk-IRCAPHCE.js → chunk-6V4VYVRZ.js} +2 -2
- package/dist/chunks/{chunk-QJYK566B.js → chunk-6ZWEKSAV.js} +7 -7
- package/dist/chunks/{chunk-AFNHI46Y.js → chunk-774DAIPO.js} +1188 -744
- package/dist/chunks/chunk-774DAIPO.js.map +6 -0
- package/dist/chunks/{chunk-F7ECENUK.js → chunk-7BSLOLTU.js} +2 -2
- package/dist/chunks/{chunk-TOADRNOV.js → chunk-7BXJPOEG.js} +4 -4
- package/dist/chunks/{chunk-BFTAE67C.js → chunk-7DERK6IR.js} +3 -3
- package/dist/chunks/{chunk-4KGXEARZ.js → chunk-7EASTT3H.js} +2 -2
- package/dist/chunks/{chunk-OP2GILCA.js → chunk-7LCU5IKH.js} +20 -20
- package/dist/chunks/{chunk-OP2GILCA.js.map → chunk-7LCU5IKH.js.map} +1 -1
- package/dist/chunks/{chunk-5PTXGBPL.js → chunk-7MYLYFIV.js} +2 -2
- package/dist/chunks/{chunk-KOVWQARO.js → chunk-7NAHUZAR.js} +2 -2
- package/dist/chunks/{chunk-GQU3OUV5.js → chunk-7NQLCFYX.js} +5 -5
- package/dist/chunks/{chunk-ICQYIDIR.js → chunk-7ROZ2N57.js} +35 -3
- package/dist/chunks/chunk-7ROZ2N57.js.map +6 -0
- package/dist/chunks/{chunk-SIG7WHBU.js → chunk-7YC42EXB.js} +5 -1
- package/dist/chunks/{chunk-SIG7WHBU.js.map → chunk-7YC42EXB.js.map} +1 -1
- package/dist/chunks/{chunk-JRIDJW3W.js → chunk-A5O5VTQM.js} +3 -3
- package/dist/chunks/{chunk-VFB4ZUOR.js → chunk-ADLNBLRA.js} +28 -16
- package/dist/chunks/chunk-ADLNBLRA.js.map +6 -0
- package/dist/chunks/{chunk-JB3UZ7JJ.js → chunk-BATWKQWV.js} +2 -2
- package/dist/chunks/{chunk-6JAWZGSH.js → chunk-CK47DTW6.js} +5 -5
- package/dist/chunks/{chunk-P7UV5M73.js → chunk-CSO7BHDJ.js} +2 -2
- package/dist/chunks/{chunk-ECDMJNZU.js → chunk-D42SQGEO.js} +2 -2
- package/dist/chunks/{chunk-DYCSVG2K.js → chunk-DIBXZBOP.js} +7 -7
- package/dist/chunks/{chunk-3ZHOM2L7.js → chunk-DZA7UXA2.js} +15 -63
- package/dist/chunks/chunk-DZA7UXA2.js.map +6 -0
- package/dist/chunks/{chunk-CJUK4IWQ.js → chunk-EFWF72V4.js} +3 -3
- package/dist/chunks/{chunk-A4I24ISL.js → chunk-ENNAZGUX.js} +3 -3
- package/dist/chunks/{chunk-5GRTRQTV.js → chunk-EOLXS2ZV.js} +5 -5
- package/dist/chunks/{chunk-QF2FZ2DM.js → chunk-ESHAWCBR.js} +43 -12
- package/dist/chunks/chunk-ESHAWCBR.js.map +6 -0
- package/dist/chunks/{chunk-YBAPUTER.js → chunk-F6NUMURW.js} +3 -3
- package/dist/chunks/{chunk-LD4COIFG.js → chunk-FJG7JN4W.js} +5 -5
- package/dist/chunks/{chunk-LD4COIFG.js.map → chunk-FJG7JN4W.js.map} +1 -1
- package/dist/chunks/{chunk-ZFQOF5A5.js → chunk-FZPIEOFR.js} +3 -3
- package/dist/chunks/{chunk-372SLS6Y.js → chunk-G7UGGWOR.js} +2 -2
- package/dist/chunks/{chunk-4PX62LQ2.js → chunk-GLZJBFDO.js} +4 -4
- package/dist/chunks/{chunk-O5YDY6XR.js → chunk-GVLU2YM7.js} +17 -20
- package/dist/chunks/{chunk-O5YDY6XR.js.map → chunk-GVLU2YM7.js.map} +1 -1
- package/dist/chunks/{chunk-QERO7OI6.js → chunk-HBGRWJU5.js} +13 -13
- package/dist/chunks/{chunk-DBXWOXG3.js → chunk-HGOU2QRN.js} +19 -19
- package/dist/chunks/{chunk-DBXWOXG3.js.map → chunk-HGOU2QRN.js.map} +1 -1
- package/dist/chunks/{chunk-BQR2C4RM.js → chunk-HICZARAY.js} +2 -2
- package/dist/chunks/{chunk-HQFAVCTF.js → chunk-HONSYTUC.js} +4 -4
- package/dist/chunks/{chunk-XYF26ZUO.js → chunk-HRKY4ARS.js} +13 -11
- package/dist/chunks/chunk-HRKY4ARS.js.map +6 -0
- package/dist/chunks/{chunk-X4W4DN3S.js → chunk-I5BNXO63.js} +2 -2
- package/dist/chunks/{chunk-RF6EIDPV.js → chunk-IBENEKM4.js} +27 -5
- package/dist/chunks/chunk-IBENEKM4.js.map +6 -0
- package/dist/chunks/{chunk-DID4WFOD.js → chunk-IH2JBJ6I.js} +4 -4
- package/dist/chunks/{chunk-5X4XLHLF.js → chunk-J4GPHTRN.js} +8 -8
- package/dist/chunks/{chunk-I5CWCNRN.js → chunk-JFA2XPTW.js} +5 -5
- package/dist/chunks/{chunk-IT2OFHF7.js → chunk-JSY23B3Q.js} +3 -3
- package/dist/chunks/{chunk-L2Q467T7.js → chunk-JX6O7Y55.js} +4 -4
- package/dist/chunks/{chunk-L2Q467T7.js.map → chunk-JX6O7Y55.js.map} +1 -1
- package/dist/chunks/{chunk-U77GVCK3.js → chunk-K5VLCRHY.js} +2 -2
- package/dist/chunks/chunk-K7ZQYJJE.js +197 -0
- package/dist/chunks/chunk-K7ZQYJJE.js.map +6 -0
- package/dist/chunks/{chunk-7AXLZKTB.js → chunk-KCBOIL5Q.js} +7 -7
- package/dist/chunks/{chunk-KE53UTUG.js → chunk-KIWLK2WZ.js} +7 -9
- package/dist/chunks/chunk-KIWLK2WZ.js.map +6 -0
- package/dist/chunks/chunk-L4LGUBYZ.js +167 -0
- package/dist/chunks/chunk-L4LGUBYZ.js.map +6 -0
- package/dist/chunks/{chunk-X7QC2Q7P.js → chunk-L5FCGDB7.js} +1674 -688
- package/dist/chunks/chunk-L5FCGDB7.js.map +6 -0
- package/dist/chunks/{chunk-LS5KVRMV.js → chunk-LM2OGSW5.js} +6 -6
- package/dist/chunks/{chunk-LS5KVRMV.js.map → chunk-LM2OGSW5.js.map} +1 -1
- package/dist/chunks/{chunk-QUI2ZAGY.js → chunk-LRUY5C6H.js} +83 -18
- package/dist/chunks/chunk-LRUY5C6H.js.map +6 -0
- package/dist/chunks/{chunk-QW3Y3RDE.js → chunk-MJ32RCFZ.js} +4 -4
- package/dist/chunks/{chunk-Q4LXBL4Z.js → chunk-MJJA277Z.js} +19 -4
- package/dist/chunks/{chunk-Q4LXBL4Z.js.map → chunk-MJJA277Z.js.map} +1 -1
- package/dist/chunks/{chunk-5TJZWGTZ.js → chunk-MOY2OERC.js} +463 -135
- package/dist/chunks/chunk-MOY2OERC.js.map +6 -0
- package/dist/chunks/{chunk-PHDA4JI7.js → chunk-MX3U5TBQ.js} +17 -6
- package/dist/chunks/chunk-MX3U5TBQ.js.map +6 -0
- package/dist/chunks/{chunk-WIO3JRB5.js → chunk-NBJ4OTXL.js} +8 -8
- package/dist/chunks/{chunk-BFYETM56.js → chunk-NFTQDITK.js} +91 -6
- package/dist/chunks/chunk-NFTQDITK.js.map +6 -0
- package/dist/chunks/{chunk-66ZXPQGB.js → chunk-NO3F3QQ3.js} +13 -13
- package/dist/chunks/{chunk-LJDAHRWI.js → chunk-NQYOMRPT.js} +2 -2
- package/dist/chunks/{chunk-WXCJTJK4.js → chunk-O6C4RETO.js} +3 -3
- package/dist/chunks/{chunk-W5TYUJI5.js → chunk-O6EDUJ77.js} +6 -6
- package/dist/chunks/{chunk-F7LHGSEQ.js → chunk-OD2PMTXS.js} +3 -3
- package/dist/chunks/{chunk-5LDYBGOZ.js → chunk-OGEOUETU.js} +3 -3
- package/dist/chunks/{chunk-WSO7YQLR.js → chunk-OY3UN3KD.js} +145 -3
- package/dist/chunks/{chunk-WSO7YQLR.js.map → chunk-OY3UN3KD.js.map} +2 -2
- package/dist/chunks/chunk-P6RYPNSD.js +435 -0
- package/dist/chunks/chunk-P6RYPNSD.js.map +6 -0
- package/dist/chunks/{chunk-MI6WMBDQ.js → chunk-PYTTGYZS.js} +3 -3
- package/dist/chunks/chunk-RHJOIAFS.js +201 -0
- package/dist/chunks/chunk-RHJOIAFS.js.map +6 -0
- package/dist/chunks/{chunk-U2MFIQ6X.js → chunk-RR7FS6SQ.js} +3 -3
- package/dist/chunks/{chunk-7O2WNQQZ.js → chunk-RTMX7IDM.js} +2 -2
- package/dist/chunks/{chunk-ZAPPY4VF.js → chunk-S4OEUN6F.js} +2 -2
- package/dist/chunks/{chunk-EXE7JBHE.js → chunk-SEVORRUA.js} +2 -2
- package/dist/chunks/{chunk-WCPKRDGR.js → chunk-TAIC3PC2.js} +3 -3
- package/dist/chunks/{chunk-AF4ILHID.js → chunk-TGLXWW5B.js} +3 -3
- package/dist/chunks/{chunk-4YN7VGLV.js → chunk-TJAUF5NX.js} +3 -3
- package/dist/chunks/{chunk-AWU5MYX3.js → chunk-TL535OCL.js} +29 -13
- package/dist/chunks/chunk-TL535OCL.js.map +6 -0
- package/dist/chunks/{chunk-E7RD32NX.js → chunk-TSU4F6DF.js} +2 -2
- package/dist/chunks/{chunk-MPIYLDWJ.js → chunk-TXMWKHYW.js} +2 -2
- package/dist/chunks/{chunk-6F3M3P3W.js → chunk-U4DBETHR.js} +807 -755
- package/dist/chunks/chunk-U4DBETHR.js.map +6 -0
- package/dist/chunks/{chunk-PYR7VRWF.js → chunk-UBGDYBSQ.js} +2 -2
- package/dist/chunks/{chunk-73VS7EXG.js → chunk-ULFR2FWA.js} +2 -2
- package/dist/chunks/{chunk-HXW5DQLU.js → chunk-UMPJ4VXN.js} +4 -4
- package/dist/chunks/{chunk-MN426ZWA.js → chunk-URZPVSHV.js} +4 -4
- package/dist/chunks/{chunk-7WDKN3QG.js → chunk-UXLQNJDR.js} +4 -4
- package/dist/chunks/{chunk-QS44GK4N.js → chunk-WEPINZBQ.js} +12 -4
- package/dist/chunks/{chunk-QS44GK4N.js.map → chunk-WEPINZBQ.js.map} +1 -1
- package/dist/chunks/{chunk-GWH6BOVE.js → chunk-XQZMTH3S.js} +12 -40
- package/dist/chunks/chunk-XQZMTH3S.js.map +6 -0
- package/dist/chunks/{chunk-SQ32S3OE.js → chunk-XWP64X6U.js} +6 -6
- package/dist/chunks/{chunk-YQOT7ABG.js → chunk-Y3NC6RIL.js} +4 -4
- package/dist/chunks/{chunk-LMPUBX5R.js → chunk-YEWJVAM4.js} +57 -9
- package/dist/chunks/chunk-YEWJVAM4.js.map +6 -0
- package/dist/chunks/{chunk-FNSWIOFJ.js → chunk-ZDMI3JSL.js} +26 -4
- package/dist/chunks/{chunk-FNSWIOFJ.js.map → chunk-ZDMI3JSL.js.map} +1 -1
- package/dist/chunks/{cli-runtime-2HOSJR5Y.js → cli-runtime-BLOWAO6Q.js} +34 -19
- package/dist/chunks/cli-runtime-BLOWAO6Q.js.map +6 -0
- package/dist/chunks/{commands-TKD5BHAC.js → commands-VWBRELWZ.js} +6 -6
- package/dist/chunks/{computer-FQRWTC6M.js → computer-6P3GAOV2.js} +15 -7
- package/dist/chunks/computer-6P3GAOV2.js.map +6 -0
- package/dist/chunks/{config-2JST7BZT.js → config-77NN5LSS.js} +20 -17
- package/dist/chunks/config-77NN5LSS.js.map +6 -0
- package/dist/chunks/{cost-AZAQ3AC5.js → cost-IVLAFD5T.js} +5 -5
- package/dist/chunks/{crash-report-IYMUJRDT.js → crash-report-CA3Y7LA6.js} +6 -6
- package/dist/chunks/{dist-5JRS362B.js → dist-3SGAVJFN.js} +2 -2
- package/dist/chunks/{dist-PYOYSQIZ.js → dist-5G52QS75.js} +193 -33
- package/dist/chunks/dist-5G52QS75.js.map +6 -0
- package/dist/chunks/{dist-S4GG5BOF.js → dist-7BSYEFE5.js} +2 -2
- package/dist/chunks/{dist-SPKR3SBF.js → dist-AM6FWCIJ.js} +10 -2
- package/dist/chunks/{dist-YGZEZT7E.js → dist-ISRJEZRF.js} +2 -2
- package/dist/chunks/{dist-BECOVIWQ.js → dist-PBFZXU4L.js} +2 -2
- package/dist/chunks/{dist-VQGHI5SR.js → dist-RDXEBTCL.js} +2 -2
- package/dist/chunks/{dist-NLY5ZLEK.js → dist-V43PPTPF.js} +2 -2
- package/dist/chunks/{doctor-MYN7YCXB.js → doctor-FGOCO7UR.js} +39 -39
- package/dist/chunks/{drain-IEZMA72M.js → drain-A3DLR5A4.js} +18 -18
- package/dist/chunks/{entry-SS5QYOOM.js → entry-4LHTI3VQ.js} +6 -6
- package/dist/chunks/{eval-4QK2EYXU.js → eval-IYWGGPWF.js} +12 -12
- package/dist/chunks/{eval-4QK2EYXU.js.map → eval-IYWGGPWF.js.map} +1 -1
- package/dist/chunks/{exec-Z6TIWDJM.js → exec-HWK44ZYI.js} +104 -60
- package/dist/chunks/exec-HWK44ZYI.js.map +6 -0
- package/dist/chunks/{extension-4SMB7XQP.js → extension-BP7Q3PFK.js} +5 -5
- package/dist/chunks/{github-X352BD5R.js → github-IF3JVVJF.js} +5 -1
- package/dist/chunks/github-IF3JVVJF.js.map +6 -0
- package/dist/chunks/{home-YYLBZ3E7.js → home-GR6YDAAE.js} +3 -3
- package/dist/chunks/{hooks-KVCP7AHB.js → hooks-KSSNBDF2.js} +22 -22
- package/dist/chunks/{hooks-report-7BAQ5FJD.js → hooks-report-H4JAHJXE.js} +18 -18
- package/dist/chunks/{host-CAZNAKUM.js → host-ISKJDJ7B.js} +10 -10
- package/dist/chunks/host-queries-CUG75GYD.js +37 -0
- package/dist/chunks/{installed-list-X7D2METU.js → installed-list-GPVOP4E3.js} +4 -4
- package/dist/chunks/{learn-BSA4OH3O.js → learn-AFNJQGOU.js} +18 -18
- package/dist/chunks/{learn-builtin-YIJE4KDM.js → learn-builtin-LUD6XO6W.js} +21 -21
- package/dist/chunks/{lifecycle-4CCVUYHX.js → lifecycle-TCRMEVJP.js} +31 -32
- package/dist/chunks/{list-Y365NWT5.js → list-4OJNF5N2.js} +16 -16
- package/dist/chunks/{live-3URICZBD.js → live-LJ76XHPK.js} +38 -38
- package/dist/chunks/{load-LXAWOITU.js → load-2ERMTCD4.js} +12 -10
- package/dist/chunks/{logs-OGG4QEIR.js → logs-DV6GC7PT.js} +4 -4
- package/dist/chunks/{mcp-VCZRILZ2.js → mcp-5VV24FGZ.js} +449 -61
- package/dist/chunks/mcp-5VV24FGZ.js.map +6 -0
- package/dist/chunks/mcp-serve-TT4Q7V55.js +311 -0
- package/dist/chunks/mcp-serve-TT4Q7V55.js.map +6 -0
- package/dist/chunks/{message-command-RN3TYTUE.js → message-command-6RHBI3R4.js} +56 -54
- package/dist/chunks/message-command-6RHBI3R4.js.map +6 -0
- package/dist/chunks/{open-S3T2QSFD.js → open-3VUS3XWX.js} +7 -7
- package/dist/chunks/{operator-tools-4FKDVXEJ.js → operator-tools-BZ5X5ZDE.js} +15 -16
- package/dist/chunks/operator-tools-BZ5X5ZDE.js.map +6 -0
- package/dist/chunks/{output-schema-JZS2DYJS.js → output-schema-2GHHC5ZZ.js} +3 -3
- package/dist/chunks/{pal-N4BQKNXH.js → pal-TT7X5JF3.js} +150 -15
- package/dist/chunks/pal-TT7X5JF3.js.map +6 -0
- package/dist/chunks/{peers-3QJCXMVT.js → peers-SJFCJTA6.js} +149 -19
- package/dist/chunks/peers-SJFCJTA6.js.map +6 -0
- package/dist/chunks/{peers-B46EOYXB.js → peers-SLFOET3O.js} +7 -7
- package/dist/chunks/{plugin-SJ3Y2P53.js → plugin-I35EQ4CC.js} +22 -18
- package/dist/chunks/plugin-I35EQ4CC.js.map +6 -0
- package/dist/chunks/{providers-6HCMKQUI.js → providers-MX47EUPL.js} +22 -19
- package/dist/chunks/providers-MX47EUPL.js.map +6 -0
- package/dist/chunks/{providers-AAGYOW7X.js → providers-SOFGNZ4F.js} +10 -10
- package/dist/chunks/{pty-Y6DQ3O7S.js → pty-3T7AE7ZA.js} +3 -3
- package/dist/chunks/resume-5JACRBQO.js +25 -0
- package/dist/chunks/{resume-command-GPX3ZFJG.js → resume-command-H4FOREZO.js} +4 -4
- package/dist/chunks/{running-XXZFJXM2.js → running-NONPWC5C.js} +4 -4
- package/dist/chunks/{schedule-36SDQUHA.js → schedule-BWR4NKGX.js} +245 -10
- package/dist/chunks/schedule-BWR4NKGX.js.map +6 -0
- package/dist/chunks/{send-3I5I445I.js → send-H27WTBLZ.js} +18 -18
- package/dist/chunks/send-person-NNGL2U4H.js +31 -0
- package/dist/chunks/{serve-CZDHGDZL.js → serve-4VIDXLEB.js} +2 -2
- package/dist/chunks/{service-2KVKUVPK.js → service-NVOIN2MV.js} +32 -33
- package/dist/chunks/service-NVOIN2MV.js.map +6 -0
- package/dist/chunks/{setting-cli-BIG2WZWH.js → setting-cli-ETVPDSRA.js} +13 -13
- package/dist/chunks/{skills-ROGIKQBK.js → skills-XAONTP56.js} +28 -25
- package/dist/chunks/skills-XAONTP56.js.map +6 -0
- package/dist/chunks/{start-check-WZ3L3FAC.js → start-check-A5FG7224.js} +2 -2
- package/dist/chunks/{startup-failure-Y6OKFLWB.js → startup-failure-6MZNIJXI.js} +2 -2
- package/dist/chunks/{state-EK4XKBK5.js → state-MVYWWBAA.js} +556 -26
- package/dist/chunks/state-MVYWWBAA.js.map +6 -0
- package/dist/chunks/{store-IOOFZ6PN.js → store-4PPSKMYT.js} +3 -3
- package/dist/chunks/{store-A6ZRPCAB.js → store-5K5HIPUT.js} +12 -13
- package/dist/chunks/{store-FLT5PL3C.js → store-6WG6CRWK.js} +4 -4
- package/dist/chunks/{store-NX2MC2JN.js → store-UPAOLS5B.js} +8 -8
- package/dist/chunks/{tui-DT36PST5.js → tui-MRMMX2TV.js} +99 -87
- package/dist/chunks/tui-MRMMX2TV.js.map +6 -0
- package/dist/chunks/{upgrade-AHGIHDGH.js → update-RMHLR4LI.js} +35 -35
- package/dist/chunks/{upgrade-AHGIHDGH.js.map → update-RMHLR4LI.js.map} +2 -2
- package/dist/chunks/{watch-AFI4NLCR.js → watch-3QQJ4XHX.js} +93 -89
- package/dist/chunks/watch-3QQJ4XHX.js.map +6 -0
- package/dist/chunks/{workspaces-QKVXLISC.js → workspaces-HEA2VNIH.js} +15 -20
- package/dist/chunks/workspaces-HEA2VNIH.js.map +6 -0
- package/dist/chunks/{worktree-NWJLCB5C.js → worktree-NAVT42R4.js} +26 -23
- package/dist/chunks/worktree-NAVT42R4.js.map +6 -0
- package/dist/cli-runtime.d.ts +3 -1
- package/dist/cli-runtime.d.ts.map +1 -1
- package/dist/cli.d.ts +15 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/acp-browser-pane.d.ts +81 -0
- package/dist/commands/acp-browser-pane.d.ts.map +1 -0
- package/dist/commands/acp-provider-retry.d.ts +2 -1
- package/dist/commands/acp-provider-retry.d.ts.map +1 -1
- package/dist/commands/acp.d.ts +18 -1
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/action-help.d.ts +37 -0
- package/dist/commands/action-help.d.ts.map +1 -0
- package/dist/commands/actions/auth.d.ts +3 -0
- package/dist/commands/actions/auth.d.ts.map +1 -0
- package/dist/commands/actions/browser.d.ts +3 -0
- package/dist/commands/actions/browser.d.ts.map +1 -0
- package/dist/commands/actions/extension.d.ts +3 -0
- package/dist/commands/actions/extension.d.ts.map +1 -0
- package/dist/commands/actions/mcp.d.ts +3 -0
- package/dist/commands/actions/mcp.d.ts.map +1 -0
- package/dist/commands/actions/pal.d.ts +3 -0
- package/dist/commands/actions/pal.d.ts.map +1 -0
- package/dist/commands/actions/peers.d.ts +3 -0
- package/dist/commands/actions/peers.d.ts.map +1 -0
- package/dist/commands/actions/schedule.d.ts +3 -0
- package/dist/commands/actions/schedule.d.ts.map +1 -0
- package/dist/commands/actions/small.d.ts +11 -0
- package/dist/commands/actions/small.d.ts.map +1 -0
- package/dist/commands/archive.d.ts.map +1 -1
- package/dist/commands/auth-status.d.ts +24 -0
- package/dist/commands/auth-status.d.ts.map +1 -0
- package/dist/commands/auth.d.ts +9 -0
- package/dist/commands/auth.d.ts.map +1 -0
- package/dist/commands/browser.d.ts.map +1 -1
- package/dist/commands/computer.d.ts.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/desktop-host.d.ts +3 -3
- package/dist/commands/desktop-host.d.ts.map +1 -1
- package/dist/commands/exec-flags.d.ts +17 -3
- 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/extension.d.ts.map +1 -1
- package/dist/commands/github.d.ts.map +1 -1
- package/dist/commands/launch-extras.d.ts +48 -0
- package/dist/commands/launch-extras.d.ts.map +1 -0
- package/dist/commands/lazy.d.ts +3 -3
- package/dist/commands/lazy.d.ts.map +1 -1
- package/dist/commands/login.d.ts +1 -1
- package/dist/commands/manifest.d.ts +3 -4
- package/dist/commands/manifest.d.ts.map +1 -1
- package/dist/commands/mcp-serve.d.ts +16 -0
- package/dist/commands/mcp-serve.d.ts.map +1 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/pal.d.ts.map +1 -1
- package/dist/commands/peers.d.ts.map +1 -1
- package/dist/commands/plugin.d.ts.map +1 -1
- package/dist/commands/providers.d.ts.map +1 -1
- package/dist/commands/registry.d.ts.map +1 -1
- package/dist/commands/run-flags.d.ts +10 -2
- package/dist/commands/run-flags.d.ts.map +1 -1
- package/dist/commands/schedule.d.ts.map +1 -1
- package/dist/commands/skills.d.ts.map +1 -1
- package/dist/commands/state.d.ts +11 -0
- package/dist/commands/state.d.ts.map +1 -1
- package/dist/commands/types.d.ts +9 -2
- package/dist/commands/types.d.ts.map +1 -1
- package/dist/commands/{upgrade-progress.d.ts → update-progress.d.ts} +3 -3
- package/dist/commands/update-progress.d.ts.map +1 -0
- package/dist/commands/{upgrade.d.ts → update.d.ts} +9 -9
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/workspaces.d.ts +1 -1
- package/dist/commands/workspaces.d.ts.map +1 -1
- package/dist/commands/worktree.d.ts.map +1 -1
- package/dist/computer/run.d.ts.map +1 -1
- package/dist/config/debug.d.ts.map +1 -1
- package/dist/config/hooks-report.d.ts +3 -1
- package/dist/config/hooks-report.d.ts.map +1 -1
- package/dist/config/load.d.ts +37 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/schema.d.ts +15 -2
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/settings-descriptors.d.ts +4 -0
- package/dist/config/settings-descriptors.d.ts.map +1 -1
- package/dist/config/turn-duration-default.d.ts +6 -0
- package/dist/config/turn-duration-default.d.ts.map +1 -0
- package/dist/context/doctrine.d.ts.map +1 -1
- package/dist/context/environment.d.ts +18 -0
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/context/file-placement.d.ts.map +1 -1
- package/dist/context/project-tracker.d.ts +3 -0
- package/dist/context/project-tracker.d.ts.map +1 -1
- package/dist/context/system-prompt.d.ts +6 -0
- package/dist/context/system-prompt.d.ts.map +1 -1
- package/dist/index.js +39 -39
- package/dist/integrations/auto-update/apply.d.ts +1 -1
- package/dist/integrations/auto-update/apply.d.ts.map +1 -1
- package/dist/integrations/auto-update/policy.d.ts +1 -1
- package/dist/integrations/auto-update/policy.d.ts.map +1 -1
- package/dist/integrations/auto-update/state.d.ts +1 -1
- package/dist/integrations/auto-update/state.d.ts.map +1 -1
- package/dist/integrations/mcp/project-file.d.ts +16 -0
- package/dist/integrations/mcp/project-file.d.ts.map +1 -0
- package/dist/integrations/mcp/serve.d.ts +55 -0
- package/dist/integrations/mcp/serve.d.ts.map +1 -0
- package/dist/integrations/mcp/servers.d.ts +6 -0
- package/dist/integrations/mcp/servers.d.ts.map +1 -1
- package/dist/integrations/mcp/shared-file.d.ts +2 -1
- package/dist/integrations/mcp/shared-file.d.ts.map +1 -1
- package/dist/integrations/network/controller.d.ts.map +1 -1
- package/dist/integrations/network/format.d.ts.map +1 -1
- package/dist/integrations/network/runtime.d.ts +7 -0
- package/dist/integrations/network/runtime.d.ts.map +1 -1
- package/dist/integrations/network/types.d.ts +2 -0
- package/dist/integrations/network/types.d.ts.map +1 -1
- package/dist/integrations/npm-global.d.ts +2 -2
- package/dist/integrations/npm-global.d.ts.map +1 -1
- package/dist/integrations/outstanding/status.d.ts +4 -0
- package/dist/integrations/outstanding/status.d.ts.map +1 -1
- package/dist/integrations/providers/connections.d.ts +1 -1
- package/dist/integrations/providers/connections.d.ts.map +1 -1
- package/dist/integrations/providers/pending-login.d.ts +1 -1
- package/dist/integrations/providers/subscription-login.d.ts +1 -1
- package/dist/integrations/sessions/session-watch.d.ts +8 -1
- package/dist/integrations/sessions/session-watch.d.ts.map +1 -1
- package/dist/integrations/state/purge.d.ts +66 -0
- package/dist/integrations/state/purge.d.ts.map +1 -0
- package/dist/integrations/subagents/activity.d.ts +1 -1
- package/dist/integrations/subagents/agent-names.d.ts +1 -1
- package/dist/integrations/subagents/row-labels.d.ts +18 -0
- package/dist/integrations/subagents/row-labels.d.ts.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts +8 -1
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/stop-guidance.d.ts +14 -0
- package/dist/integrations/subagents/stop-guidance.d.ts.map +1 -0
- package/dist/integrations/web/open-url.d.ts +1 -1
- package/dist/integrations/web/search.d.ts +1 -1
- package/dist/integrations/workflows/host.d.ts.map +1 -1
- package/dist/integrations/workflows/notice.d.ts +9 -0
- package/dist/integrations/workflows/notice.d.ts.map +1 -1
- package/dist/integrations/workflows/offering.d.ts +3 -2
- package/dist/integrations/workflows/offering.d.ts.map +1 -1
- package/dist/integrations/workflows/orphans.d.ts +17 -0
- package/dist/integrations/workflows/orphans.d.ts.map +1 -1
- package/dist/integrations/workflows/owners.d.ts +17 -0
- package/dist/integrations/workflows/owners.d.ts.map +1 -0
- package/dist/integrations/workflows/registry.d.ts +17 -2
- package/dist/integrations/workflows/registry.d.ts.map +1 -1
- package/dist/logging.d.ts +10 -1
- package/dist/logging.d.ts.map +1 -1
- package/dist/memory/screen-archive.d.ts +2 -0
- package/dist/memory/screen-archive.d.ts.map +1 -1
- package/dist/permissions/auto-classifier.d.ts.map +1 -1
- package/dist/permissions/launch.d.ts +1 -1
- package/dist/permissions/mode.d.ts +2 -2
- package/dist/permissions/path-rules.d.ts.map +1 -1
- package/dist/permissions/rules.d.ts +2 -0
- package/dist/permissions/rules.d.ts.map +1 -1
- package/dist/permissions/tool-flags.d.ts +5 -1
- package/dist/permissions/tool-flags.d.ts.map +1 -1
- package/dist/reminders/changed-files.d.ts.map +1 -1
- package/dist/reminders/frame.d.ts +1 -1
- package/dist/reminders/frame.d.ts.map +1 -1
- package/dist/reminders/hypermode.d.ts.map +1 -1
- package/dist/reminders/index.d.ts +3 -0
- package/dist/reminders/index.d.ts.map +1 -1
- package/dist/reminders/memory-nudge.d.ts +20 -0
- package/dist/reminders/memory-nudge.d.ts.map +1 -0
- package/dist/rounds/types.d.ts +6 -1
- package/dist/rounds/types.d.ts.map +1 -1
- package/dist/schedule/commands/add.d.ts.map +1 -1
- package/dist/schedule/fire/fire.d.ts +1 -1
- package/dist/schedule/fire/fire.d.ts.map +1 -1
- package/dist/tui/AgentExplorer.d.ts +11 -8
- package/dist/tui/AgentExplorer.d.ts.map +1 -1
- package/dist/tui/App.d.ts +2 -0
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/ChoicePicker.d.ts +7 -1
- package/dist/tui/ChoicePicker.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +1 -7
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/PendingInputPanel.d.ts +2 -0
- package/dist/tui/PendingInputPanel.d.ts.map +1 -1
- package/dist/tui/StatusBar.d.ts +8 -1
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/agent-calls.d.ts.map +1 -1
- package/dist/tui/agent-transcript-rows.d.ts +6 -1
- package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
- package/dist/tui/agent.d.ts +61 -6
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/choice-selection.d.ts +3 -1
- package/dist/tui/choice-selection.d.ts.map +1 -1
- package/dist/tui/computer-use-live.d.ts +41 -0
- package/dist/tui/computer-use-live.d.ts.map +1 -0
- package/dist/tui/context-grid.d.ts +5 -0
- package/dist/tui/context-grid.d.ts.map +1 -1
- package/dist/tui/fullscreen/FullscreenTranscript.d.ts +3 -2
- package/dist/tui/fullscreen/FullscreenTranscript.d.ts.map +1 -1
- package/dist/tui/keypad-keys.d.ts +1 -1
- package/dist/tui/keypad-keys.d.ts.map +1 -1
- package/dist/tui/launch-settings.d.ts +2 -0
- package/dist/tui/launch-settings.d.ts.map +1 -1
- package/dist/tui/login-prompt.d.ts +1 -1
- package/dist/tui/notice-display.d.ts +8 -0
- package/dist/tui/notice-display.d.ts.map +1 -0
- package/dist/tui/outcome-line.d.ts.map +1 -1
- package/dist/tui/plain-interruption.d.ts +7 -0
- package/dist/tui/plain-interruption.d.ts.map +1 -1
- package/dist/tui/restored-rows.d.ts +2 -0
- package/dist/tui/restored-rows.d.ts.map +1 -1
- package/dist/tui/sign-in-watch.d.ts +31 -0
- package/dist/tui/sign-in-watch.d.ts.map +1 -0
- package/dist/tui/slashCommands.d.ts +11 -0
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/stopped-turn-line.d.ts +22 -0
- package/dist/tui/stopped-turn-line.d.ts.map +1 -0
- package/dist/tui/tidy-tool-output.d.ts.map +1 -1
- package/dist/tui/tool-presentation.d.ts +2 -0
- package/dist/tui/tool-presentation.d.ts.map +1 -1
- package/dist/tui/turn-duration-setting.d.ts +11 -0
- package/dist/tui/turn-duration-setting.d.ts.map +1 -0
- package/dist/tui/turn-interruption.d.ts +1 -1
- package/dist/tui/turn-interruption.d.ts.map +1 -1
- package/dist/tui/types.d.ts +13 -1
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/untrusted-display.d.ts +12 -0
- package/dist/tui/untrusted-display.d.ts.map +1 -0
- package/dist/tui/web-activity.d.ts +4 -2
- package/dist/tui/web-activity.d.ts.map +1 -1
- package/dist/usage-error.d.ts.map +1 -1
- package/package.json +5 -5
- package/skills/document/SKILL.md +22 -11
- package/skills/verify-change/SKILL.md +2 -1
- package/dist/chunks/acp-KBPTK4GN.js.map +0 -6
- package/dist/chunks/activity-command-JOED2VWN.js.map +0 -6
- package/dist/chunks/add-66AQ7SKZ.js.map +0 -6
- package/dist/chunks/agent-session-KQIXHDGU.js +0 -87
- package/dist/chunks/archive-ED4CWEU2.js.map +0 -6
- package/dist/chunks/browser-7DRWOIEZ.js +0 -31
- package/dist/chunks/browser-7DRWOIEZ.js.map +0 -6
- package/dist/chunks/chat-ISFH5CPZ.js.map +0 -6
- package/dist/chunks/chunk-2TU3QQRG.js.map +0 -6
- package/dist/chunks/chunk-3ZHOM2L7.js.map +0 -6
- package/dist/chunks/chunk-5TJZWGTZ.js.map +0 -6
- package/dist/chunks/chunk-6F3M3P3W.js.map +0 -6
- package/dist/chunks/chunk-AFNHI46Y.js.map +0 -6
- package/dist/chunks/chunk-AWU5MYX3.js.map +0 -6
- package/dist/chunks/chunk-BFYETM56.js.map +0 -6
- package/dist/chunks/chunk-GBOOHDIH.js +0 -94
- package/dist/chunks/chunk-GBOOHDIH.js.map +0 -6
- package/dist/chunks/chunk-GWH6BOVE.js.map +0 -6
- package/dist/chunks/chunk-ICQYIDIR.js.map +0 -6
- package/dist/chunks/chunk-KE53UTUG.js.map +0 -6
- package/dist/chunks/chunk-LMPUBX5R.js.map +0 -6
- package/dist/chunks/chunk-PHDA4JI7.js.map +0 -6
- package/dist/chunks/chunk-QF2FZ2DM.js.map +0 -6
- package/dist/chunks/chunk-QF4HGWRL.js.map +0 -6
- package/dist/chunks/chunk-QUI2ZAGY.js.map +0 -6
- package/dist/chunks/chunk-RF6EIDPV.js.map +0 -6
- package/dist/chunks/chunk-T3VMBZEY.js.map +0 -6
- package/dist/chunks/chunk-VFB4ZUOR.js.map +0 -6
- package/dist/chunks/chunk-X7QC2Q7P.js.map +0 -6
- package/dist/chunks/chunk-XYF26ZUO.js.map +0 -6
- package/dist/chunks/cli-runtime-2HOSJR5Y.js.map +0 -6
- package/dist/chunks/computer-FQRWTC6M.js.map +0 -6
- package/dist/chunks/config-2JST7BZT.js.map +0 -6
- package/dist/chunks/dist-PYOYSQIZ.js.map +0 -6
- package/dist/chunks/exec-Z6TIWDJM.js.map +0 -6
- package/dist/chunks/github-X352BD5R.js.map +0 -6
- package/dist/chunks/host-queries-NVNPXLV6.js +0 -38
- package/dist/chunks/login-QDMS62PW.js +0 -38
- package/dist/chunks/mcp-VCZRILZ2.js.map +0 -6
- package/dist/chunks/message-command-RN3TYTUE.js.map +0 -6
- package/dist/chunks/operator-tools-4FKDVXEJ.js.map +0 -6
- package/dist/chunks/pal-N4BQKNXH.js.map +0 -6
- package/dist/chunks/peers-3QJCXMVT.js.map +0 -6
- package/dist/chunks/plugin-SJ3Y2P53.js.map +0 -6
- package/dist/chunks/providers-6HCMKQUI.js.map +0 -6
- package/dist/chunks/resume-URQRK5DV.js +0 -26
- package/dist/chunks/schedule-36SDQUHA.js.map +0 -6
- package/dist/chunks/send-person-YWJEDJLC.js +0 -31
- package/dist/chunks/service-2KVKUVPK.js.map +0 -6
- package/dist/chunks/skills-ROGIKQBK.js.map +0 -6
- package/dist/chunks/state-EK4XKBK5.js.map +0 -6
- package/dist/chunks/store-NX2MC2JN.js.map +0 -6
- package/dist/chunks/tui-DT36PST5.js.map +0 -6
- package/dist/chunks/watch-AFI4NLCR.js.map +0 -6
- package/dist/chunks/workspaces-QKVXLISC.js.map +0 -6
- package/dist/chunks/worktree-NWJLCB5C.js.map +0 -6
- package/dist/commands/upgrade-progress.d.ts.map +0 -1
- package/dist/commands/upgrade.d.ts.map +0 -1
- /package/dist/chunks/{agent-DL7YTL5B.js.map → agent-MSSMOEBP.js.map} +0 -0
- /package/dist/chunks/{agent-session-KQIXHDGU.js.map → agent-session-VCB6HX3E.js.map} +0 -0
- /package/dist/chunks/{bin-main-JDJ6LEOK.js.map → bin-main-2E6XD7MQ.js.map} +0 -0
- /package/dist/chunks/{binding-NU3G3EBQ.js.map → binding-NAPEU62B.js.map} +0 -0
- /package/dist/chunks/{chunk-C4CUPDOU.js.map → chunk-27ICMJVV.js.map} +0 -0
- /package/dist/chunks/{chunk-6XIPTDOH.js.map → chunk-2D5WW5KP.js.map} +0 -0
- /package/dist/chunks/{chunk-K3NVHXN7.js.map → chunk-2J2Z6S3V.js.map} +0 -0
- /package/dist/chunks/{chunk-G3WCIRCZ.js.map → chunk-2PRVGX6U.js.map} +0 -0
- /package/dist/chunks/{chunk-K5FGK5AP.js.map → chunk-32CPPPKX.js.map} +0 -0
- /package/dist/chunks/{chunk-ETDOSJF7.js.map → chunk-3SBROSVS.js.map} +0 -0
- /package/dist/chunks/{chunk-ZT3DLJQZ.js.map → chunk-3ZL6YBMT.js.map} +0 -0
- /package/dist/chunks/{chunk-C534SIJI.js.map → chunk-4RCXY7WO.js.map} +0 -0
- /package/dist/chunks/{chunk-NQ3MZ6N4.js.map → chunk-4YQJ262B.js.map} +0 -0
- /package/dist/chunks/{chunk-WEL6L6DN.js.map → chunk-52DZTN4C.js.map} +0 -0
- /package/dist/chunks/{chunk-MTSXDMJB.js.map → chunk-5GI7W4SM.js.map} +0 -0
- /package/dist/chunks/{chunk-I7WXDTCF.js.map → chunk-5NIQMCRF.js.map} +0 -0
- /package/dist/chunks/{chunk-JOORBY5L.js.map → chunk-5WS5Q2KW.js.map} +0 -0
- /package/dist/chunks/{chunk-7EL5RPEU.js.map → chunk-66DFXMZG.js.map} +0 -0
- /package/dist/chunks/{chunk-6SEDSZBH.js.map → chunk-6MMKNZYL.js.map} +0 -0
- /package/dist/chunks/{chunk-Y3KKZ7HS.js.map → chunk-6QQVZXUE.js.map} +0 -0
- /package/dist/chunks/{chunk-X2JFYB5A.js.map → chunk-6RBEIDSC.js.map} +0 -0
- /package/dist/chunks/{chunk-IRCAPHCE.js.map → chunk-6V4VYVRZ.js.map} +0 -0
- /package/dist/chunks/{chunk-QJYK566B.js.map → chunk-6ZWEKSAV.js.map} +0 -0
- /package/dist/chunks/{chunk-F7ECENUK.js.map → chunk-7BSLOLTU.js.map} +0 -0
- /package/dist/chunks/{chunk-TOADRNOV.js.map → chunk-7BXJPOEG.js.map} +0 -0
- /package/dist/chunks/{chunk-BFTAE67C.js.map → chunk-7DERK6IR.js.map} +0 -0
- /package/dist/chunks/{chunk-4KGXEARZ.js.map → chunk-7EASTT3H.js.map} +0 -0
- /package/dist/chunks/{chunk-5PTXGBPL.js.map → chunk-7MYLYFIV.js.map} +0 -0
- /package/dist/chunks/{chunk-KOVWQARO.js.map → chunk-7NAHUZAR.js.map} +0 -0
- /package/dist/chunks/{chunk-GQU3OUV5.js.map → chunk-7NQLCFYX.js.map} +0 -0
- /package/dist/chunks/{chunk-JRIDJW3W.js.map → chunk-A5O5VTQM.js.map} +0 -0
- /package/dist/chunks/{chunk-JB3UZ7JJ.js.map → chunk-BATWKQWV.js.map} +0 -0
- /package/dist/chunks/{chunk-6JAWZGSH.js.map → chunk-CK47DTW6.js.map} +0 -0
- /package/dist/chunks/{chunk-P7UV5M73.js.map → chunk-CSO7BHDJ.js.map} +0 -0
- /package/dist/chunks/{chunk-ECDMJNZU.js.map → chunk-D42SQGEO.js.map} +0 -0
- /package/dist/chunks/{chunk-DYCSVG2K.js.map → chunk-DIBXZBOP.js.map} +0 -0
- /package/dist/chunks/{chunk-CJUK4IWQ.js.map → chunk-EFWF72V4.js.map} +0 -0
- /package/dist/chunks/{chunk-A4I24ISL.js.map → chunk-ENNAZGUX.js.map} +0 -0
- /package/dist/chunks/{chunk-5GRTRQTV.js.map → chunk-EOLXS2ZV.js.map} +0 -0
- /package/dist/chunks/{chunk-YBAPUTER.js.map → chunk-F6NUMURW.js.map} +0 -0
- /package/dist/chunks/{chunk-ZFQOF5A5.js.map → chunk-FZPIEOFR.js.map} +0 -0
- /package/dist/chunks/{chunk-372SLS6Y.js.map → chunk-G7UGGWOR.js.map} +0 -0
- /package/dist/chunks/{chunk-4PX62LQ2.js.map → chunk-GLZJBFDO.js.map} +0 -0
- /package/dist/chunks/{chunk-QERO7OI6.js.map → chunk-HBGRWJU5.js.map} +0 -0
- /package/dist/chunks/{chunk-BQR2C4RM.js.map → chunk-HICZARAY.js.map} +0 -0
- /package/dist/chunks/{chunk-HQFAVCTF.js.map → chunk-HONSYTUC.js.map} +0 -0
- /package/dist/chunks/{chunk-X4W4DN3S.js.map → chunk-I5BNXO63.js.map} +0 -0
- /package/dist/chunks/{chunk-DID4WFOD.js.map → chunk-IH2JBJ6I.js.map} +0 -0
- /package/dist/chunks/{chunk-5X4XLHLF.js.map → chunk-J4GPHTRN.js.map} +0 -0
- /package/dist/chunks/{chunk-I5CWCNRN.js.map → chunk-JFA2XPTW.js.map} +0 -0
- /package/dist/chunks/{chunk-IT2OFHF7.js.map → chunk-JSY23B3Q.js.map} +0 -0
- /package/dist/chunks/{chunk-U77GVCK3.js.map → chunk-K5VLCRHY.js.map} +0 -0
- /package/dist/chunks/{chunk-7AXLZKTB.js.map → chunk-KCBOIL5Q.js.map} +0 -0
- /package/dist/chunks/{chunk-QW3Y3RDE.js.map → chunk-MJ32RCFZ.js.map} +0 -0
- /package/dist/chunks/{chunk-WIO3JRB5.js.map → chunk-NBJ4OTXL.js.map} +0 -0
- /package/dist/chunks/{chunk-66ZXPQGB.js.map → chunk-NO3F3QQ3.js.map} +0 -0
- /package/dist/chunks/{chunk-LJDAHRWI.js.map → chunk-NQYOMRPT.js.map} +0 -0
- /package/dist/chunks/{chunk-WXCJTJK4.js.map → chunk-O6C4RETO.js.map} +0 -0
- /package/dist/chunks/{chunk-W5TYUJI5.js.map → chunk-O6EDUJ77.js.map} +0 -0
- /package/dist/chunks/{chunk-F7LHGSEQ.js.map → chunk-OD2PMTXS.js.map} +0 -0
- /package/dist/chunks/{chunk-5LDYBGOZ.js.map → chunk-OGEOUETU.js.map} +0 -0
- /package/dist/chunks/{chunk-MI6WMBDQ.js.map → chunk-PYTTGYZS.js.map} +0 -0
- /package/dist/chunks/{chunk-U2MFIQ6X.js.map → chunk-RR7FS6SQ.js.map} +0 -0
- /package/dist/chunks/{chunk-7O2WNQQZ.js.map → chunk-RTMX7IDM.js.map} +0 -0
- /package/dist/chunks/{chunk-ZAPPY4VF.js.map → chunk-S4OEUN6F.js.map} +0 -0
- /package/dist/chunks/{chunk-EXE7JBHE.js.map → chunk-SEVORRUA.js.map} +0 -0
- /package/dist/chunks/{chunk-WCPKRDGR.js.map → chunk-TAIC3PC2.js.map} +0 -0
- /package/dist/chunks/{chunk-AF4ILHID.js.map → chunk-TGLXWW5B.js.map} +0 -0
- /package/dist/chunks/{chunk-4YN7VGLV.js.map → chunk-TJAUF5NX.js.map} +0 -0
- /package/dist/chunks/{chunk-E7RD32NX.js.map → chunk-TSU4F6DF.js.map} +0 -0
- /package/dist/chunks/{chunk-MPIYLDWJ.js.map → chunk-TXMWKHYW.js.map} +0 -0
- /package/dist/chunks/{chunk-PYR7VRWF.js.map → chunk-UBGDYBSQ.js.map} +0 -0
- /package/dist/chunks/{chunk-73VS7EXG.js.map → chunk-ULFR2FWA.js.map} +0 -0
- /package/dist/chunks/{chunk-HXW5DQLU.js.map → chunk-UMPJ4VXN.js.map} +0 -0
- /package/dist/chunks/{chunk-MN426ZWA.js.map → chunk-URZPVSHV.js.map} +0 -0
- /package/dist/chunks/{chunk-7WDKN3QG.js.map → chunk-UXLQNJDR.js.map} +0 -0
- /package/dist/chunks/{chunk-SQ32S3OE.js.map → chunk-XWP64X6U.js.map} +0 -0
- /package/dist/chunks/{chunk-YQOT7ABG.js.map → chunk-Y3NC6RIL.js.map} +0 -0
- /package/dist/chunks/{commands-TKD5BHAC.js.map → commands-VWBRELWZ.js.map} +0 -0
- /package/dist/chunks/{cost-AZAQ3AC5.js.map → cost-IVLAFD5T.js.map} +0 -0
- /package/dist/chunks/{crash-report-IYMUJRDT.js.map → crash-report-CA3Y7LA6.js.map} +0 -0
- /package/dist/chunks/{dist-5JRS362B.js.map → dist-3SGAVJFN.js.map} +0 -0
- /package/dist/chunks/{dist-S4GG5BOF.js.map → dist-7BSYEFE5.js.map} +0 -0
- /package/dist/chunks/{dist-SPKR3SBF.js.map → dist-AM6FWCIJ.js.map} +0 -0
- /package/dist/chunks/{dist-YGZEZT7E.js.map → dist-ISRJEZRF.js.map} +0 -0
- /package/dist/chunks/{dist-BECOVIWQ.js.map → dist-PBFZXU4L.js.map} +0 -0
- /package/dist/chunks/{dist-VQGHI5SR.js.map → dist-RDXEBTCL.js.map} +0 -0
- /package/dist/chunks/{dist-NLY5ZLEK.js.map → dist-V43PPTPF.js.map} +0 -0
- /package/dist/chunks/{doctor-MYN7YCXB.js.map → doctor-FGOCO7UR.js.map} +0 -0
- /package/dist/chunks/{drain-IEZMA72M.js.map → drain-A3DLR5A4.js.map} +0 -0
- /package/dist/chunks/{entry-SS5QYOOM.js.map → entry-4LHTI3VQ.js.map} +0 -0
- /package/dist/chunks/{extension-4SMB7XQP.js.map → extension-BP7Q3PFK.js.map} +0 -0
- /package/dist/chunks/{home-YYLBZ3E7.js.map → home-GR6YDAAE.js.map} +0 -0
- /package/dist/chunks/{hooks-KVCP7AHB.js.map → hooks-KSSNBDF2.js.map} +0 -0
- /package/dist/chunks/{hooks-report-7BAQ5FJD.js.map → hooks-report-H4JAHJXE.js.map} +0 -0
- /package/dist/chunks/{host-CAZNAKUM.js.map → host-ISKJDJ7B.js.map} +0 -0
- /package/dist/chunks/{host-queries-NVNPXLV6.js.map → host-queries-CUG75GYD.js.map} +0 -0
- /package/dist/chunks/{installed-list-X7D2METU.js.map → installed-list-GPVOP4E3.js.map} +0 -0
- /package/dist/chunks/{learn-BSA4OH3O.js.map → learn-AFNJQGOU.js.map} +0 -0
- /package/dist/chunks/{learn-builtin-YIJE4KDM.js.map → learn-builtin-LUD6XO6W.js.map} +0 -0
- /package/dist/chunks/{lifecycle-4CCVUYHX.js.map → lifecycle-TCRMEVJP.js.map} +0 -0
- /package/dist/chunks/{list-Y365NWT5.js.map → list-4OJNF5N2.js.map} +0 -0
- /package/dist/chunks/{live-3URICZBD.js.map → live-LJ76XHPK.js.map} +0 -0
- /package/dist/chunks/{load-LXAWOITU.js.map → load-2ERMTCD4.js.map} +0 -0
- /package/dist/chunks/{logs-OGG4QEIR.js.map → logs-DV6GC7PT.js.map} +0 -0
- /package/dist/chunks/{login-QDMS62PW.js.map → open-3VUS3XWX.js.map} +0 -0
- /package/dist/chunks/{open-S3T2QSFD.js.map → output-schema-2GHHC5ZZ.js.map} +0 -0
- /package/dist/chunks/{output-schema-JZS2DYJS.js.map → peers-SLFOET3O.js.map} +0 -0
- /package/dist/chunks/{peers-B46EOYXB.js.map → providers-SOFGNZ4F.js.map} +0 -0
- /package/dist/chunks/{providers-AAGYOW7X.js.map → pty-3T7AE7ZA.js.map} +0 -0
- /package/dist/chunks/{pty-Y6DQ3O7S.js.map → resume-5JACRBQO.js.map} +0 -0
- /package/dist/chunks/{resume-URQRK5DV.js.map → resume-command-H4FOREZO.js.map} +0 -0
- /package/dist/chunks/{resume-command-GPX3ZFJG.js.map → running-NONPWC5C.js.map} +0 -0
- /package/dist/chunks/{running-XXZFJXM2.js.map → send-H27WTBLZ.js.map} +0 -0
- /package/dist/chunks/{send-3I5I445I.js.map → send-person-NNGL2U4H.js.map} +0 -0
- /package/dist/chunks/{serve-CZDHGDZL.js.map → serve-4VIDXLEB.js.map} +0 -0
- /package/dist/chunks/{send-person-YWJEDJLC.js.map → setting-cli-ETVPDSRA.js.map} +0 -0
- /package/dist/chunks/{setting-cli-BIG2WZWH.js.map → start-check-A5FG7224.js.map} +0 -0
- /package/dist/chunks/{startup-failure-Y6OKFLWB.js.map → startup-failure-6MZNIJXI.js.map} +0 -0
- /package/dist/chunks/{start-check-WZ3L3FAC.js.map → store-4PPSKMYT.js.map} +0 -0
- /package/dist/chunks/{store-A6ZRPCAB.js.map → store-5K5HIPUT.js.map} +0 -0
- /package/dist/chunks/{store-FLT5PL3C.js.map → store-6WG6CRWK.js.map} +0 -0
- /package/dist/chunks/{store-IOOFZ6PN.js.map → store-UPAOLS5B.js.map} +0 -0
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
bindTrustedProjectContext,
|
|
13
13
|
refreshCachedContext,
|
|
14
|
+
refreshTrustedProjectContext,
|
|
14
15
|
resolveTrustedProjectContext
|
|
15
16
|
} from "./chunk-JEW7RLYH.js";
|
|
16
17
|
import {
|
|
@@ -42,6 +43,81 @@ import {
|
|
|
42
43
|
__name
|
|
43
44
|
} from "./chunk-76FLAFCG.js";
|
|
44
45
|
|
|
46
|
+
// src/commands/action-help.ts
|
|
47
|
+
var HELP_FLAG = { flag: "-h, --help", description: "Show this help." };
|
|
48
|
+
function usageLine(area, action) {
|
|
49
|
+
const words = [`namzu ${area}`, ...action.path];
|
|
50
|
+
if (action.operands) words.push(action.operands);
|
|
51
|
+
if (action.flags && action.flags.length > 0) words.push("[options]");
|
|
52
|
+
return words.join(" ");
|
|
53
|
+
}
|
|
54
|
+
__name(usageLine, "usageLine");
|
|
55
|
+
function renderActionHelp(area, action) {
|
|
56
|
+
const rows = [...action.flags ?? [], HELP_FLAG];
|
|
57
|
+
const width = Math.max(...rows.map((r) => r.flag.length));
|
|
58
|
+
return [
|
|
59
|
+
usageLine(area, action),
|
|
60
|
+
"",
|
|
61
|
+
action.summary,
|
|
62
|
+
"",
|
|
63
|
+
"Options:",
|
|
64
|
+
...rows.map((r) => ` ${r.flag.padEnd(width)} ${r.description}`),
|
|
65
|
+
"",
|
|
66
|
+
"Example:",
|
|
67
|
+
` ${action.example}`,
|
|
68
|
+
"",
|
|
69
|
+
`namzu ${area} --help lists every ${area} command.`
|
|
70
|
+
].join("\n");
|
|
71
|
+
}
|
|
72
|
+
__name(renderActionHelp, "renderActionHelp");
|
|
73
|
+
function listing(rows) {
|
|
74
|
+
const width = Math.max(...rows.map(([head]) => head.length));
|
|
75
|
+
return rows.map(([head, text]) => ` ${head.padEnd(width)} ${text}`);
|
|
76
|
+
}
|
|
77
|
+
__name(listing, "listing");
|
|
78
|
+
function renderActionIndex(area, actions) {
|
|
79
|
+
const rows = actions.map((a) => [
|
|
80
|
+
[...a.path, ...a.operands ? [a.operands] : []].join(" "),
|
|
81
|
+
a.summary
|
|
82
|
+
]);
|
|
83
|
+
return ["Actions:", ...listing(rows), "", `namzu ${area} <action> --help for details.`].join("\n");
|
|
84
|
+
}
|
|
85
|
+
__name(renderActionIndex, "renderActionIndex");
|
|
86
|
+
function renderGroup(area, group, actions) {
|
|
87
|
+
const rows = actions.filter((a) => a.path.length > 1 && a.path[0] === group).map((a) => [
|
|
88
|
+
[...a.path.slice(1), ...a.operands ? [a.operands] : []].join(" "),
|
|
89
|
+
a.summary
|
|
90
|
+
]);
|
|
91
|
+
return [
|
|
92
|
+
`namzu ${area} ${group} <action>`,
|
|
93
|
+
"",
|
|
94
|
+
"Actions:",
|
|
95
|
+
...listing(rows),
|
|
96
|
+
"",
|
|
97
|
+
`namzu ${area} ${group} <action> --help for details.`
|
|
98
|
+
].join("\n");
|
|
99
|
+
}
|
|
100
|
+
__name(renderGroup, "renderGroup");
|
|
101
|
+
function resolveActionHelp(area, actions, args) {
|
|
102
|
+
const words = [];
|
|
103
|
+
for (const arg of args) {
|
|
104
|
+
if (arg.startsWith("-")) break;
|
|
105
|
+
words.push(arg);
|
|
106
|
+
}
|
|
107
|
+
let best;
|
|
108
|
+
for (const action of actions) {
|
|
109
|
+
const fits = action.path.every((word, i) => words[i] === word);
|
|
110
|
+
if (fits && (best === void 0 || action.path.length > best.path.length)) best = action;
|
|
111
|
+
}
|
|
112
|
+
if (best !== void 0) return renderActionHelp(area, best);
|
|
113
|
+
const group = words[0];
|
|
114
|
+
if (group !== void 0 && actions.some((a) => a.path.length > 1 && a.path[0] === group)) {
|
|
115
|
+
return renderGroup(area, group, actions);
|
|
116
|
+
}
|
|
117
|
+
return void 0;
|
|
118
|
+
}
|
|
119
|
+
__name(resolveActionHelp, "resolveActionHelp");
|
|
120
|
+
|
|
45
121
|
// src/commands/lazy.ts
|
|
46
122
|
function lazyCommand(meta, load) {
|
|
47
123
|
let loaded;
|
|
@@ -74,13 +150,18 @@ __name(registerCommand, "registerCommand");
|
|
|
74
150
|
function registerCommandOrLazy(program, def, opts) {
|
|
75
151
|
const resolve2 = /* @__PURE__ */ __name(async () => isLazyCommand(def) ? def.load() : def, "resolve");
|
|
76
152
|
const cmd = program.command(def.name).description(def.description);
|
|
77
|
-
if (def.aliases) cmd.aliases([...def.aliases]);
|
|
78
153
|
if (def.passThrough) {
|
|
79
154
|
cmd.helpOption(false).allowUnknownOption(true).passThroughOptions(true).argument("[args...]").action(async (args) => {
|
|
80
155
|
const rawArgs = args ?? [];
|
|
81
156
|
const real = await resolve2();
|
|
82
|
-
|
|
83
|
-
|
|
157
|
+
const dash = rawArgs.indexOf("--");
|
|
158
|
+
const head = dash === -1 ? rawArgs : rawArgs.slice(0, dash);
|
|
159
|
+
if (real.help !== void 0 && head.some((a) => a === "--help" || a === "-h")) {
|
|
160
|
+
const actions = real.actions;
|
|
161
|
+
const text = actions === void 0 ? real.help : resolveActionHelp(real.name, actions, rawArgs) ?? `${real.help.trimEnd()}
|
|
162
|
+
|
|
163
|
+
${renderActionIndex(real.name, actions)}`;
|
|
164
|
+
opts.getContext().formatter.print({ text });
|
|
84
165
|
opts.setExitCode(0);
|
|
85
166
|
return;
|
|
86
167
|
}
|
|
@@ -148,7 +229,7 @@ function formatUsageError(text, columns) {
|
|
|
148
229
|
if (index === 0 && !/[.!?:]$/.test(sentence)) sentence = `${sentence}.`;
|
|
149
230
|
return sentence;
|
|
150
231
|
});
|
|
151
|
-
const points = lines.length > 1 || /\bhelp\b/i.test(text) || /`namzu [^`]+`/.test(text);
|
|
232
|
+
const points = lines.length > 1 || /\bhelp\b/i.test(text) || /`namzu [^`]+`/.test(text) || /` is now `/.test(text);
|
|
152
233
|
const body = (points ? lines : [...lines, HELP_POINTER]).flatMap(
|
|
153
234
|
(line) => wrapAtWords(line, width)
|
|
154
235
|
);
|
|
@@ -164,7 +245,7 @@ var acpCommand = lazyCommand(
|
|
|
164
245
|
description: "Speak the agent-client protocol over this process\u2019s stdio",
|
|
165
246
|
passThrough: true
|
|
166
247
|
},
|
|
167
|
-
async () => (await import("./acp-
|
|
248
|
+
async () => (await import("./acp-OZG7H75P.js")).acpCommand
|
|
168
249
|
);
|
|
169
250
|
var computerCommand = lazyCommand(
|
|
170
251
|
{
|
|
@@ -172,17 +253,15 @@ var computerCommand = lazyCommand(
|
|
|
172
253
|
description: "Check and set up the computer Pals run on (Windows)",
|
|
173
254
|
passThrough: true
|
|
174
255
|
},
|
|
175
|
-
async () => (await import("./computer-
|
|
256
|
+
async () => (await import("./computer-6P3GAOV2.js")).computerCommand
|
|
176
257
|
);
|
|
177
258
|
var workspacesCommand = lazyCommand(
|
|
178
259
|
{
|
|
179
260
|
name: "workspaces",
|
|
180
|
-
// The name from before the rename; deprecated, removed in the next major.
|
|
181
|
-
aliases: ["spaces"],
|
|
182
261
|
description: "Run Namzu sessions side by side in one terminal (preview)",
|
|
183
262
|
passThrough: true
|
|
184
263
|
},
|
|
185
|
-
async () => (await import("./workspaces-
|
|
264
|
+
async () => (await import("./workspaces-HEA2VNIH.js")).workspacesCommand
|
|
186
265
|
);
|
|
187
266
|
var archiveCommand = lazyCommand(
|
|
188
267
|
{
|
|
@@ -190,7 +269,7 @@ var archiveCommand = lazyCommand(
|
|
|
190
269
|
description: "List or restore archived conversations in this project",
|
|
191
270
|
passThrough: true
|
|
192
271
|
},
|
|
193
|
-
async () => (await import("./archive-
|
|
272
|
+
async () => (await import("./archive-UMNSALTJ.js")).archiveCommand
|
|
194
273
|
);
|
|
195
274
|
var costCommand = lazyCommand(
|
|
196
275
|
{
|
|
@@ -198,7 +277,7 @@ var costCommand = lazyCommand(
|
|
|
198
277
|
description: "Show spend across conversations by day and model, from the session logs",
|
|
199
278
|
passThrough: true
|
|
200
279
|
},
|
|
201
|
-
async () => (await import("./cost-
|
|
280
|
+
async () => (await import("./cost-IVLAFD5T.js")).costCommand
|
|
202
281
|
);
|
|
203
282
|
var peersCommand = lazyCommand(
|
|
204
283
|
{
|
|
@@ -206,7 +285,7 @@ var peersCommand = lazyCommand(
|
|
|
206
285
|
description: "List and message live terminals, and manage your Namzu network of machines",
|
|
207
286
|
passThrough: true
|
|
208
287
|
},
|
|
209
|
-
async () => (await import("./peers-
|
|
288
|
+
async () => (await import("./peers-SJFCJTA6.js")).peersCommand
|
|
210
289
|
);
|
|
211
290
|
var watchCommand = lazyCommand(
|
|
212
291
|
{
|
|
@@ -214,7 +293,7 @@ var watchCommand = lazyCommand(
|
|
|
214
293
|
description: "Follow a running or finished session from another terminal, read-only",
|
|
215
294
|
passThrough: true
|
|
216
295
|
},
|
|
217
|
-
async () => (await import("./watch-
|
|
296
|
+
async () => (await import("./watch-3QQJ4XHX.js")).watchCommand
|
|
218
297
|
);
|
|
219
298
|
var sendCommand = lazyCommand(
|
|
220
299
|
{
|
|
@@ -222,7 +301,7 @@ var sendCommand = lazyCommand(
|
|
|
222
301
|
description: "Say something to a running session from another terminal",
|
|
223
302
|
passThrough: true
|
|
224
303
|
},
|
|
225
|
-
async () => (await import("./send-
|
|
304
|
+
async () => (await import("./send-H27WTBLZ.js")).sendCommand
|
|
226
305
|
);
|
|
227
306
|
var doctorCommand = lazyCommand(
|
|
228
307
|
{
|
|
@@ -230,16 +309,15 @@ var doctorCommand = lazyCommand(
|
|
|
230
309
|
description: "Run health checks against the local Namzu environment",
|
|
231
310
|
passThrough: true
|
|
232
311
|
},
|
|
233
|
-
async () => (await import("./doctor-
|
|
312
|
+
async () => (await import("./doctor-FGOCO7UR.js")).doctorCommand
|
|
234
313
|
);
|
|
235
314
|
var execCommand = lazyCommand(
|
|
236
315
|
{
|
|
237
316
|
name: "exec",
|
|
238
|
-
aliases: ["e"],
|
|
239
317
|
description: "Run a single prompt headlessly: print the reply, or stream events with --json",
|
|
240
318
|
passThrough: true
|
|
241
319
|
},
|
|
242
|
-
async () => (await import("./exec-
|
|
320
|
+
async () => (await import("./exec-HWK44ZYI.js")).execCommand
|
|
243
321
|
);
|
|
244
322
|
var learnCommand = lazyCommand(
|
|
245
323
|
{
|
|
@@ -247,7 +325,7 @@ var learnCommand = lazyCommand(
|
|
|
247
325
|
description: "Learn from what conversations kept, now; list or undo what was learned",
|
|
248
326
|
passThrough: true
|
|
249
327
|
},
|
|
250
|
-
async () => (await import("./learn-
|
|
328
|
+
async () => (await import("./learn-AFNJQGOU.js")).learnCommand
|
|
251
329
|
);
|
|
252
330
|
var learningCommand = lazyCommand(
|
|
253
331
|
{
|
|
@@ -255,27 +333,19 @@ var learningCommand = lazyCommand(
|
|
|
255
333
|
description: "Inspect learning experiments and the observations they start from",
|
|
256
334
|
passThrough: true
|
|
257
335
|
},
|
|
258
|
-
async () => (await import("./learn-
|
|
259
|
-
);
|
|
260
|
-
var loginCommand = lazyCommand(
|
|
261
|
-
{
|
|
262
|
-
name: "login",
|
|
263
|
-
description: "Sign in with a provider subscription and store the credential.",
|
|
264
|
-
passThrough: true
|
|
265
|
-
},
|
|
266
|
-
async () => (await import("./login-QDMS62PW.js")).loginCommand
|
|
336
|
+
async () => (await import("./learn-AFNJQGOU.js")).learningCommand
|
|
267
337
|
);
|
|
268
|
-
var
|
|
338
|
+
var authCommand = lazyCommand(
|
|
269
339
|
{
|
|
270
|
-
name: "
|
|
271
|
-
description: "
|
|
340
|
+
name: "auth",
|
|
341
|
+
description: "Sign in or out of a provider, and see which credentials are stored",
|
|
272
342
|
passThrough: true
|
|
273
343
|
},
|
|
274
|
-
async () => (await import("./
|
|
344
|
+
async () => (await import("./auth-2NEDWCS7.js")).authCommand
|
|
275
345
|
);
|
|
276
346
|
var mcpCommand = lazyCommand(
|
|
277
347
|
{ name: "mcp", description: "Manage user tool servers", passThrough: true },
|
|
278
|
-
async () => (await import("./mcp-
|
|
348
|
+
async () => (await import("./mcp-5VV24FGZ.js")).mcpCommand
|
|
279
349
|
);
|
|
280
350
|
var drainCommand = lazyCommand(
|
|
281
351
|
{
|
|
@@ -283,11 +353,11 @@ var drainCommand = lazyCommand(
|
|
|
283
353
|
description: "Continue a turn another process left behind (one pass, then exit)",
|
|
284
354
|
passThrough: true
|
|
285
355
|
},
|
|
286
|
-
async () => (await import("./drain-
|
|
356
|
+
async () => (await import("./drain-A3DLR5A4.js")).drainCommand
|
|
287
357
|
);
|
|
288
358
|
var evalCommand = lazyCommand(
|
|
289
359
|
{ name: "eval", description: "Run eval suites and set an exit code", passThrough: true },
|
|
290
|
-
async () => (await import("./eval-
|
|
360
|
+
async () => (await import("./eval-IYWGGPWF.js")).evalCommand
|
|
291
361
|
);
|
|
292
362
|
var historyCommand = lazyCommand(
|
|
293
363
|
{
|
|
@@ -295,7 +365,7 @@ var historyCommand = lazyCommand(
|
|
|
295
365
|
description: "Print a session's persisted messages as JSON (for host UIs)",
|
|
296
366
|
passThrough: true
|
|
297
367
|
},
|
|
298
|
-
async () => (await import("./host-queries-
|
|
368
|
+
async () => (await import("./host-queries-CUG75GYD.js")).historyCommand
|
|
299
369
|
);
|
|
300
370
|
var pluginCommand = lazyCommand(
|
|
301
371
|
{
|
|
@@ -303,7 +373,7 @@ var pluginCommand = lazyCommand(
|
|
|
303
373
|
description: "Check a plugin folder without running anything from it",
|
|
304
374
|
passThrough: true
|
|
305
375
|
},
|
|
306
|
-
async () => (await import("./plugin-
|
|
376
|
+
async () => (await import("./plugin-I35EQ4CC.js")).pluginCommand
|
|
307
377
|
);
|
|
308
378
|
var extensionCommand = lazyCommand(
|
|
309
379
|
{
|
|
@@ -311,7 +381,7 @@ var extensionCommand = lazyCommand(
|
|
|
311
381
|
description: "Add, read and control extensions: signed programs that list what they ask for",
|
|
312
382
|
passThrough: true
|
|
313
383
|
},
|
|
314
|
-
async () => (await import("./extension-
|
|
384
|
+
async () => (await import("./extension-BP7Q3PFK.js")).extensionCommand
|
|
315
385
|
);
|
|
316
386
|
var hooksCommand = lazyCommand(
|
|
317
387
|
{
|
|
@@ -319,7 +389,7 @@ var hooksCommand = lazyCommand(
|
|
|
319
389
|
description: "Say what runs by itself in a folder: hooks, where from, and whether they are on",
|
|
320
390
|
passThrough: true
|
|
321
391
|
},
|
|
322
|
-
async () => (await import("./hooks-
|
|
392
|
+
async () => (await import("./hooks-KSSNBDF2.js")).hooksCommand
|
|
323
393
|
);
|
|
324
394
|
var configCommand = lazyCommand(
|
|
325
395
|
{
|
|
@@ -327,7 +397,7 @@ var configCommand = lazyCommand(
|
|
|
327
397
|
description: "List, read and change the settings Desktop shows, in your user config file",
|
|
328
398
|
passThrough: true
|
|
329
399
|
},
|
|
330
|
-
async () => (await import("./config-
|
|
400
|
+
async () => (await import("./config-77NN5LSS.js")).configCommand
|
|
331
401
|
);
|
|
332
402
|
var skillsCommand = lazyCommand(
|
|
333
403
|
{
|
|
@@ -335,7 +405,7 @@ var skillsCommand = lazyCommand(
|
|
|
335
405
|
description: "List skills available to a working directory",
|
|
336
406
|
passThrough: true
|
|
337
407
|
},
|
|
338
|
-
async () => (await import("./skills-
|
|
408
|
+
async () => (await import("./skills-XAONTP56.js")).skillsCommand
|
|
339
409
|
);
|
|
340
410
|
var providersCommand = lazyCommand(
|
|
341
411
|
{
|
|
@@ -343,22 +413,22 @@ var providersCommand = lazyCommand(
|
|
|
343
413
|
description: "List providers and their models",
|
|
344
414
|
passThrough: true
|
|
345
415
|
},
|
|
346
|
-
async () => (await import("./providers-
|
|
416
|
+
async () => (await import("./providers-MX47EUPL.js")).providersCommand
|
|
347
417
|
);
|
|
348
|
-
var
|
|
418
|
+
var updateCommand = lazyCommand(
|
|
349
419
|
{
|
|
350
|
-
name: "
|
|
420
|
+
name: "update",
|
|
351
421
|
description: "Update the active global Namzu installation",
|
|
352
422
|
passThrough: true
|
|
353
423
|
},
|
|
354
|
-
async () => (await import("./
|
|
424
|
+
async () => (await import("./update-RMHLR4LI.js")).updateCommand
|
|
355
425
|
);
|
|
356
426
|
var serveCommand = lazyCommand(
|
|
357
427
|
{
|
|
358
428
|
name: "serve",
|
|
359
|
-
description: "
|
|
429
|
+
description: "Print a note on why Namzu needs no server and how sessions run"
|
|
360
430
|
},
|
|
361
|
-
async () => (await import("./serve-
|
|
431
|
+
async () => (await import("./serve-4VIDXLEB.js")).serveCommand
|
|
362
432
|
);
|
|
363
433
|
var stateCommand = lazyCommand(
|
|
364
434
|
{
|
|
@@ -366,7 +436,7 @@ var stateCommand = lazyCommand(
|
|
|
366
436
|
description: "Inspect local Namzu state, or move what an earlier Namzu left in a project",
|
|
367
437
|
passThrough: true
|
|
368
438
|
},
|
|
369
|
-
async () => (await import("./state-
|
|
439
|
+
async () => (await import("./state-MVYWWBAA.js")).stateCommand
|
|
370
440
|
);
|
|
371
441
|
var scheduleCommand = lazyCommand(
|
|
372
442
|
{
|
|
@@ -374,7 +444,7 @@ var scheduleCommand = lazyCommand(
|
|
|
374
444
|
description: "Scheduled jobs that run while namzu is closed, and the service that runs them",
|
|
375
445
|
passThrough: true
|
|
376
446
|
},
|
|
377
|
-
async () => (await import("./schedule-
|
|
447
|
+
async () => (await import("./schedule-BWR4NKGX.js")).scheduleCommand
|
|
378
448
|
);
|
|
379
449
|
var browserCommand = lazyCommand(
|
|
380
450
|
{
|
|
@@ -382,7 +452,7 @@ var browserCommand = lazyCommand(
|
|
|
382
452
|
description: "Browser profiles for the browser tools: sign in, list, status, install, remove",
|
|
383
453
|
passThrough: true
|
|
384
454
|
},
|
|
385
|
-
async () => (await import("./browser-
|
|
455
|
+
async () => (await import("./browser-M7U6GZOY.js")).browserCommand
|
|
386
456
|
);
|
|
387
457
|
var githubCommand = lazyCommand(
|
|
388
458
|
{
|
|
@@ -390,7 +460,7 @@ var githubCommand = lazyCommand(
|
|
|
390
460
|
description: "Run Namzu from GitHub Actions: install workflows that answer mentions and review pull requests",
|
|
391
461
|
passThrough: true
|
|
392
462
|
},
|
|
393
|
-
async () => (await import("./github-
|
|
463
|
+
async () => (await import("./github-IF3JVVJF.js")).githubCommand
|
|
394
464
|
);
|
|
395
465
|
function createLazyPalCommand(resumeCommand) {
|
|
396
466
|
return lazyCommand(
|
|
@@ -399,7 +469,7 @@ function createLazyPalCommand(resumeCommand) {
|
|
|
399
469
|
description: "Create and operate persistent Pals with their own local virtual computers",
|
|
400
470
|
passThrough: true
|
|
401
471
|
},
|
|
402
|
-
async () => (await import("./pal-
|
|
472
|
+
async () => (await import("./pal-TT7X5JF3.js")).createPalCommand(resumeCommand)
|
|
403
473
|
);
|
|
404
474
|
}
|
|
405
475
|
__name(createLazyPalCommand, "createLazyPalCommand");
|
|
@@ -410,7 +480,7 @@ function createLazyWorktreeCommand(open) {
|
|
|
410
480
|
description: "Create, fork, list and resume managed Git worktrees",
|
|
411
481
|
passThrough: true
|
|
412
482
|
},
|
|
413
|
-
async () => (await import("./worktree-
|
|
483
|
+
async () => (await import("./worktree-NAVT42R4.js")).createWorktreeCommand(open)
|
|
414
484
|
);
|
|
415
485
|
}
|
|
416
486
|
__name(createLazyWorktreeCommand, "createLazyWorktreeCommand");
|
|
@@ -418,6 +488,11 @@ __name(createLazyWorktreeCommand, "createLazyWorktreeCommand");
|
|
|
418
488
|
// src/cli.ts
|
|
419
489
|
var PER_RUN_FLAG_KEYS = /* @__PURE__ */ new Set([
|
|
420
490
|
"appendSystemPrompt",
|
|
491
|
+
"systemPrompt",
|
|
492
|
+
"tools",
|
|
493
|
+
"name",
|
|
494
|
+
"mcpConfig",
|
|
495
|
+
"strictMcpConfig",
|
|
421
496
|
"allowedTools",
|
|
422
497
|
"disallowedTools",
|
|
423
498
|
"fallbackModel",
|
|
@@ -435,7 +510,7 @@ function addLaunchOptions(command) {
|
|
|
435
510
|
).option(
|
|
436
511
|
"--dangerously-skip-permissions",
|
|
437
512
|
"Start in bypass mode: run tools without asking, except for what always needs a person. Only use in a sandbox or a folder you fully trust."
|
|
438
|
-
).option(
|
|
513
|
+
).option(
|
|
439
514
|
"--allow-dangerously-skip-permissions",
|
|
440
515
|
"Let Shift+Tab reach bypass mode, without starting in it."
|
|
441
516
|
).option(
|
|
@@ -474,11 +549,36 @@ function addLaunchOptions(command) {
|
|
|
474
549
|
).addOption(
|
|
475
550
|
new Option(
|
|
476
551
|
"--permission-mode <mode>",
|
|
477
|
-
"Permission mode for this launch only; wins over --
|
|
552
|
+
"Permission mode for this launch only; wins over --dangerously-skip-permissions. auto lets a second model check each call; bypass runs without asking. /permissions changes it from inside."
|
|
478
553
|
).choices(PERMISSION_MODE_NAMES)
|
|
479
554
|
).option(
|
|
480
555
|
"--append-system-prompt <text|@file>",
|
|
481
556
|
"Add standing instructions for this launch only; @file reads them from a file. They go after the cached part of the prompt, so the cache is untouched."
|
|
557
|
+
).option(
|
|
558
|
+
"--system-prompt <text|@file>",
|
|
559
|
+
"Replace Namzu\u2019s own system prompt text for this launch only; @file reads it from a file. Tools, --append-system-prompt, project instructions and memory still apply."
|
|
560
|
+
).option(
|
|
561
|
+
"--tools <list>",
|
|
562
|
+
'Offer only these tools to the model, e.g. "read edit bash"; "" offers none and "default" offers all. Unlike --allowed-tools this removes tools; it is not a permission rule.'
|
|
563
|
+
).option(
|
|
564
|
+
"-n, --name <name>",
|
|
565
|
+
"Name this conversation; the name shows in /resume and in the terminal title."
|
|
566
|
+
).option(
|
|
567
|
+
"--bare",
|
|
568
|
+
"Minimal start: no hooks, plugins, project instruction files, saved memory notes, learning, code index, background catalogue refresh or update check. See docs/cli/launch-flags.md."
|
|
569
|
+
).option(
|
|
570
|
+
"--debug-file <path>",
|
|
571
|
+
"Write every log record, debug level included, to this file; what appears on screen keeps its usual level. The folders of the path are created."
|
|
572
|
+
).option(
|
|
573
|
+
"--settings <file-or-json>",
|
|
574
|
+
"Add one settings layer for this launch, from a JSON file or an inline JSON object. It wins over your user and project settings and loses to flags."
|
|
575
|
+
).option(
|
|
576
|
+
"--mcp-config <file-or-json>",
|
|
577
|
+
"Add the tool servers in this JSON file (or inline JSON) for this launch; repeatable.",
|
|
578
|
+
collectFlagValue
|
|
579
|
+
).option(
|
|
580
|
+
"--strict-mcp-config",
|
|
581
|
+
"Use only the tool servers named by --mcp-config; none of the configured or project ones start."
|
|
482
582
|
).option(
|
|
483
583
|
"--allowed-tools <list>",
|
|
484
584
|
'Allow these tools without asking for this launch, e.g. "edit bash(git status*)"; repeatable. A deny rule still wins.',
|
|
@@ -509,10 +609,17 @@ function addLaunchOptions(command) {
|
|
|
509
609
|
__name(addLaunchOptions, "addLaunchOptions");
|
|
510
610
|
var EX_USAGE = 64;
|
|
511
611
|
var REMOVED_COMMANDS = {
|
|
612
|
+
spaces: "`namzu spaces` is now `namzu workspaces`.",
|
|
613
|
+
e: "`namzu e` is now `namzu exec`.",
|
|
614
|
+
"config reset": "`namzu config reset` is now `namzu config unset`.",
|
|
615
|
+
"--yolo": "`--yolo` is now `--dangerously-skip-permissions`.",
|
|
512
616
|
run: '`namzu run` was replaced by `namzu exec "<prompt>"`, which takes the same options.',
|
|
513
617
|
"run-stream": '`namzu run-stream` was replaced by `namzu exec --json "<prompt>"`, which emits the same events.',
|
|
514
618
|
"skills-json": "This command is now `namzu skills list --json`.",
|
|
515
|
-
"providers-json": "This command is now `namzu providers list --json`."
|
|
619
|
+
"providers-json": "This command is now `namzu providers list --json`.",
|
|
620
|
+
upgrade: "`namzu upgrade` is now `namzu update`.",
|
|
621
|
+
login: "`namzu login` is now `namzu auth login`.",
|
|
622
|
+
logout: "`namzu logout` is now `namzu auth logout`."
|
|
516
623
|
};
|
|
517
624
|
var CATALOGUE_REFRESH_COMMANDS = /* @__PURE__ */ new Set(["exec", "acp", "drain"]);
|
|
518
625
|
function opensSessions(name) {
|
|
@@ -521,6 +628,8 @@ function opensSessions(name) {
|
|
|
521
628
|
__name(opensSessions, "opensSessions");
|
|
522
629
|
async function runCli(opts) {
|
|
523
630
|
let exitCode = 0;
|
|
631
|
+
let helpArgv = opts.argv;
|
|
632
|
+
let setAsideHome;
|
|
524
633
|
const setExitCode = /* @__PURE__ */ __name((code) => {
|
|
525
634
|
exitCode = code;
|
|
526
635
|
}, "setExitCode");
|
|
@@ -554,7 +663,10 @@ async function runCli(opts) {
|
|
|
554
663
|
if (rt === void 0) throw new Error("the CLI runtime is used before a command started");
|
|
555
664
|
return rt;
|
|
556
665
|
}, "runtime");
|
|
557
|
-
const program = new Command().name("namzu").description("Operator CLI for the Namzu agent platform").
|
|
666
|
+
const program = new Command().name("namzu").description("Operator CLI for the Namzu agent platform").argument(
|
|
667
|
+
"[prompt]",
|
|
668
|
+
"First message of the interactive session, sent as a plain prompt (never a slash command). With -p it is answered without opening the session."
|
|
669
|
+
).version(CLI_VERSION, "-V, --version", "Print version and exit").addOption(
|
|
558
670
|
new Option("-f, --format <type>", "Output format: text, json, yaml").choices([
|
|
559
671
|
"text",
|
|
560
672
|
"json",
|
|
@@ -567,22 +679,17 @@ async function runCli(opts) {
|
|
|
567
679
|
"--log-format <format>",
|
|
568
680
|
"Log record format for exec/drain/TUI-flush output: pretty (default) or json. namzu exec --json always writes json, regardless of this flag."
|
|
569
681
|
).choices(["pretty", "json"])
|
|
570
|
-
).addOption(
|
|
571
|
-
new Option(
|
|
572
|
-
"--max-budget-usd <amount>",
|
|
573
|
-
"Spend limit in dollars. It belongs to a headless run: pass it after exec."
|
|
574
|
-
).hideHelp()
|
|
575
682
|
).option(
|
|
576
|
-
"--
|
|
577
|
-
|
|
578
|
-
).option("-c, --continue", "Continue the most recent conversation in this directory.").option(
|
|
683
|
+
"-p, --print",
|
|
684
|
+
'Answer one prompt and exit, without opening the session: `namzu -p "<prompt>"` is `namzu exec "<prompt>"`. It takes the options of `namzu exec`, such as --output-format text|json|stream-json, --input-format text|stream-json and --max-budget-usd; piped input is read the same way. See `namzu exec --help`.'
|
|
685
|
+
).addOption(new Option("--output-format <format>", "Needs -p.").hideHelp()).addOption(new Option("--input-format <format>", "Needs -p.").hideHelp()).addOption(new Option("--max-budget-usd <amount>", "Needs -p.").hideHelp()).addOption(new Option("--message <text>", 'First message; use namzu "<text>".').hideHelp()).option("-c, --continue", "Continue the most recent conversation in this directory.").option(
|
|
579
686
|
"-r, --resume [value]",
|
|
580
687
|
"Resume a conversation by id or exact title; with no value, or a value that matches no title, open the picker (the value pre-filters it)."
|
|
581
688
|
).option(
|
|
582
689
|
"--from-pr [value]",
|
|
583
690
|
"Open the picker with only the conversations linked to a pull request; a number or address narrows it to that one."
|
|
584
691
|
).hook("preAction", async (command, action) => {
|
|
585
|
-
rt ??= await import("./cli-runtime-
|
|
692
|
+
rt ??= await import("./cli-runtime-BLOWAO6Q.js");
|
|
586
693
|
if (action.name() === "resume") {
|
|
587
694
|
for (const option of action.options) {
|
|
588
695
|
const key = option.attributeName();
|
|
@@ -600,54 +707,90 @@ async function runCli(opts) {
|
|
|
600
707
|
if (usesCustomNetwork(process.env)) {
|
|
601
708
|
await (await import("./install-F6PU4SYH.js")).installNetwork();
|
|
602
709
|
}
|
|
603
|
-
const
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
"fallbackModel",
|
|
617
|
-
"maxBudgetUsd",
|
|
618
|
-
"maxOutputTokens",
|
|
619
|
-
"account"
|
|
620
|
-
].filter((key) => command.opts()[key] !== void 0);
|
|
621
|
-
if (launchOnly.length > 0 && !["namzu", "resume"].includes(action.name())) {
|
|
622
|
-
const flags = launchOnly.map(
|
|
623
|
-
(key) => `--${key.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}`
|
|
624
|
-
);
|
|
625
|
-
const perRun = launchOnly.some((key) => PER_RUN_FLAG_KEYS.has(key));
|
|
626
|
-
command.error(
|
|
627
|
-
action.name() === "exec" || action.name() === "drain" && !perRun ? `${flags.join(", ")} before the command apply to the interactive TUI; for ${action.name()}, pass them after it: namzu ${action.name()} ${flags[0]} <value> "<prompt>".` : `${flags.join(", ")} apply to the interactive TUI, not this subcommand.`,
|
|
628
|
-
{ exitCode: EX_USAGE, code: "commander.invalidArgument" }
|
|
629
|
-
);
|
|
630
|
-
}
|
|
631
|
-
if (action.name() === "resume" && (command.opts().continue !== void 0 || command.opts().resume !== void 0 || command.opts().fromPr !== void 0))
|
|
632
|
-
command.error(
|
|
633
|
-
"--continue, --resume and --from-pr choose a conversation to open; `namzu resume <conversation-id>` already names one.",
|
|
634
|
-
{ exitCode: EX_USAGE, code: "commander.invalidArgument" }
|
|
635
|
-
);
|
|
636
|
-
if (action.name() === "resume" && command.opts().message !== void 0)
|
|
637
|
-
command.error(
|
|
638
|
-
"--message is the first message of a new conversation; it is not sent when resuming one.",
|
|
639
|
-
{ exitCode: EX_USAGE, code: "commander.invalidArgument" }
|
|
640
|
-
);
|
|
641
|
-
if (command.opts().outputSchema && !["namzu", "resume"].includes(action.name())) {
|
|
642
|
-
command.error(
|
|
643
|
-
action.name() === "exec" ? '--output-schema before the command applies to the interactive TUI; for exec, pass it after: namzu exec --output-schema <file> "<prompt>".' : "--output-schema applies to the interactive TUI and to exec, not this subcommand.",
|
|
644
|
-
{
|
|
710
|
+
const launchValues = command.opts();
|
|
711
|
+
const layers = runtime().launchLayersFor(launchValues);
|
|
712
|
+
if ("error" in layers)
|
|
713
|
+
return command.error(layers.error, {
|
|
714
|
+
exitCode: EX_USAGE,
|
|
715
|
+
code: "commander.invalidArgument"
|
|
716
|
+
});
|
|
717
|
+
launchLayers = layers.layers;
|
|
718
|
+
if (launchValues.debugFile !== void 0) {
|
|
719
|
+
try {
|
|
720
|
+
runtime().openDebugFile(launchValues.debugFile);
|
|
721
|
+
} catch (error) {
|
|
722
|
+
command.error(error.message, {
|
|
645
723
|
exitCode: EX_USAGE,
|
|
646
724
|
code: "commander.invalidArgument"
|
|
647
|
-
}
|
|
648
|
-
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
if (!asksForHelp(helpArgv)) {
|
|
729
|
+
const launchOnly = [
|
|
730
|
+
"provider",
|
|
731
|
+
"model",
|
|
732
|
+
"effort",
|
|
733
|
+
"fast",
|
|
734
|
+
"permissionMode",
|
|
735
|
+
"message",
|
|
736
|
+
"continue",
|
|
737
|
+
"resume",
|
|
738
|
+
"fromPr",
|
|
739
|
+
"appendSystemPrompt",
|
|
740
|
+
"systemPrompt",
|
|
741
|
+
"tools",
|
|
742
|
+
"name",
|
|
743
|
+
"mcpConfig",
|
|
744
|
+
"strictMcpConfig",
|
|
745
|
+
"allowedTools",
|
|
746
|
+
"disallowedTools",
|
|
747
|
+
"fallbackModel",
|
|
748
|
+
"maxOutputTokens",
|
|
749
|
+
"account"
|
|
750
|
+
].filter((key) => command.opts()[key] !== void 0);
|
|
751
|
+
if (launchOnly.length > 0 && !["namzu", "resume"].includes(action.name())) {
|
|
752
|
+
const flags = launchOnly.map(
|
|
753
|
+
(key) => `--${key.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}`
|
|
754
|
+
);
|
|
755
|
+
const perRun = launchOnly.some((key) => PER_RUN_FLAG_KEYS.has(key));
|
|
756
|
+
command.error(
|
|
757
|
+
action.name() === "exec" || action.name() === "drain" && !perRun ? `${flags.join(", ")} before the command apply to the interactive TUI; for ${action.name()}, pass them after it: namzu ${action.name()} ${flags[0]} <value> "<prompt>".` : `${flags.join(", ")} apply to the interactive TUI, not this subcommand.`,
|
|
758
|
+
{ exitCode: EX_USAGE, code: "commander.invalidArgument" }
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
if (action.name() === "resume" && (command.opts().continue !== void 0 || command.opts().resume !== void 0 || command.opts().fromPr !== void 0))
|
|
762
|
+
command.error(
|
|
763
|
+
"--continue, --resume and --from-pr choose a conversation to open; `namzu resume <conversation-id>` already names one.",
|
|
764
|
+
{ exitCode: EX_USAGE, code: "commander.invalidArgument" }
|
|
765
|
+
);
|
|
766
|
+
if (action.name() === "resume" && command.opts().message !== void 0)
|
|
767
|
+
command.error(
|
|
768
|
+
"The first message starts a new conversation; it is not sent when resuming one.",
|
|
769
|
+
{ exitCode: EX_USAGE, code: "commander.invalidArgument" }
|
|
770
|
+
);
|
|
771
|
+
const needsPrint = [
|
|
772
|
+
["outputFormat", "--output-format"],
|
|
773
|
+
["inputFormat", "--input-format"],
|
|
774
|
+
["maxBudgetUsd", "--max-budget-usd"]
|
|
775
|
+
].filter(([key]) => command.opts()[key] !== void 0);
|
|
776
|
+
if (needsPrint.length > 0) {
|
|
777
|
+
const names = needsPrint.map(([, flag]) => flag);
|
|
778
|
+
command.error(
|
|
779
|
+
`${names.join(", ")} ${names.length === 1 ? "needs" : "need"} -p: namzu -p ${names[0]} <value> "<prompt>". For a subcommand, write it after the command.`,
|
|
780
|
+
{ exitCode: EX_USAGE, code: "commander.invalidArgument" }
|
|
781
|
+
);
|
|
782
|
+
}
|
|
783
|
+
if (command.opts().outputSchema && !["namzu", "resume"].includes(action.name())) {
|
|
784
|
+
command.error(
|
|
785
|
+
action.name() === "exec" ? '--output-schema before the command applies to the interactive TUI; for exec, pass it after: namzu exec --output-schema <file> "<prompt>".' : "--output-schema applies to the interactive TUI and to exec, not this subcommand.",
|
|
786
|
+
{
|
|
787
|
+
exitCode: EX_USAGE,
|
|
788
|
+
code: "commander.invalidArgument"
|
|
789
|
+
}
|
|
790
|
+
);
|
|
791
|
+
}
|
|
649
792
|
}
|
|
650
|
-
if (opensSessions(action.name())) {
|
|
793
|
+
if (opensSessions(action.name()) && !asksForHelp(helpArgv)) {
|
|
651
794
|
beginCatalogueRefresh(getBootstrapContext().config);
|
|
652
795
|
}
|
|
653
796
|
}).enablePositionalOptions(true).exitOverride().showHelpAfterError(false).configureOutput({
|
|
@@ -686,14 +829,17 @@ async function runCli(opts) {
|
|
|
686
829
|
formatter: createFormatter(format, { quiet }),
|
|
687
830
|
config: { ...fileConfig, format, quiet },
|
|
688
831
|
configDebug,
|
|
689
|
-
logging
|
|
832
|
+
logging,
|
|
833
|
+
...globalOpts.bare === true ? { bare: true } : {}
|
|
690
834
|
};
|
|
691
835
|
}, "buildContext");
|
|
836
|
+
let launchLayers = [];
|
|
692
837
|
const selectedConfigOpts = /* @__PURE__ */ __name((cwd) => {
|
|
693
838
|
const profile = program.opts().profile;
|
|
694
839
|
return {
|
|
695
840
|
...profile !== void 0 ? { profile } : {},
|
|
696
|
-
...cwd !== void 0 ? { cwd } : {}
|
|
841
|
+
...cwd !== void 0 ? { cwd } : {},
|
|
842
|
+
...launchLayers.length > 0 ? { launchLayers } : {}
|
|
697
843
|
};
|
|
698
844
|
}, "selectedConfigOpts");
|
|
699
845
|
let bootstrapCtx = null;
|
|
@@ -788,8 +934,7 @@ async function runCli(opts) {
|
|
|
788
934
|
execCommand,
|
|
789
935
|
learnCommand,
|
|
790
936
|
learningCommand,
|
|
791
|
-
|
|
792
|
-
logoutCommand,
|
|
937
|
+
authCommand,
|
|
793
938
|
mcpCommand,
|
|
794
939
|
drainCommand,
|
|
795
940
|
evalCommand,
|
|
@@ -801,7 +946,7 @@ async function runCli(opts) {
|
|
|
801
946
|
skillsCommand,
|
|
802
947
|
workspacesCommand,
|
|
803
948
|
providersCommand,
|
|
804
|
-
|
|
949
|
+
updateCommand,
|
|
805
950
|
serveCommand,
|
|
806
951
|
stateCommand,
|
|
807
952
|
scheduleCommand,
|
|
@@ -810,18 +955,19 @@ async function runCli(opts) {
|
|
|
810
955
|
githubCommand
|
|
811
956
|
]) {
|
|
812
957
|
registerCommandOrLazy(program, def, {
|
|
813
|
-
getContext: def === learnCommand || def === learningCommand ? getLearningContext : def === stateCommand || def === worktreeCommand || def === mcpCommand || def === archiveCommand || def === costCommand ? getRecoveryContext : def === palCommand || def === computerCommand || def === acpCommand || def === execCommand || def === drainCommand || def === skillsCommand || def === hooksCommand || def === configCommand || def === extensionCommand || def === pluginCommand || def ===
|
|
958
|
+
getContext: def === learnCommand || def === learningCommand ? getLearningContext : def === stateCommand || def === worktreeCommand || def === mcpCommand || def === archiveCommand || def === costCommand ? getRecoveryContext : def === palCommand || def === computerCommand || def === acpCommand || def === execCommand || def === drainCommand || def === skillsCommand || def === hooksCommand || def === configCommand || def === extensionCommand || def === pluginCommand || def === updateCommand || def === scheduleCommand || def === browserCommand || def === githubCommand ? getBootstrapContext : getContext,
|
|
814
959
|
setExitCode
|
|
815
960
|
});
|
|
816
961
|
}
|
|
962
|
+
let launchPrompt;
|
|
817
963
|
const launchInteractiveTui = /* @__PURE__ */ __name(async (initialConversationId, pickConversation = false) => {
|
|
818
964
|
if (process.stdout.isTTY) {
|
|
819
965
|
const launchOpts = program.opts();
|
|
820
966
|
let conversationId = initialConversationId;
|
|
821
967
|
let openResumePicker = pickConversation ? {} : void 0;
|
|
822
968
|
if (conversationId === void 0 && (launchOpts.continue || launchOpts.resume !== void 0 || launchOpts.fromPr !== void 0)) {
|
|
823
|
-
const { resolveTuiResume } = await import("./resume-
|
|
824
|
-
const { openSessions, closeSessions } = await import("./store-
|
|
969
|
+
const { resolveTuiResume } = await import("./resume-5JACRBQO.js");
|
|
970
|
+
const { openSessions, closeSessions } = await import("./store-5K5HIPUT.js");
|
|
825
971
|
let sessions = null;
|
|
826
972
|
try {
|
|
827
973
|
sessions = await openSessions(process.cwd());
|
|
@@ -854,7 +1000,7 @@ async function runCli(opts) {
|
|
|
854
1000
|
...outcome.pr === void 0 ? {} : { pr: outcome.pr }
|
|
855
1001
|
};
|
|
856
1002
|
}
|
|
857
|
-
const structuredOutput = launchOpts.outputSchema ? (await import("./output-schema-
|
|
1003
|
+
const structuredOutput = launchOpts.outputSchema ? (await import("./output-schema-2GHHC5ZZ.js")).loadOutputSchema(
|
|
858
1004
|
resolve(process.cwd(), launchOpts.outputSchema)
|
|
859
1005
|
) : void 0;
|
|
860
1006
|
if (launchOpts.maxBudgetUsd !== void 0) {
|
|
@@ -867,6 +1013,8 @@ async function runCli(opts) {
|
|
|
867
1013
|
const runFlags = runtime().resolveRunFlags(
|
|
868
1014
|
{
|
|
869
1015
|
appendSystemPrompt: launchOpts.appendSystemPrompt ?? null,
|
|
1016
|
+
systemPrompt: launchOpts.systemPrompt ?? null,
|
|
1017
|
+
tools: launchOpts.tools ?? null,
|
|
870
1018
|
allowedTools: launchOpts.allowedTools ?? [],
|
|
871
1019
|
disallowedTools: launchOpts.disallowedTools ?? [],
|
|
872
1020
|
fallbackModels: launchOpts.fallbackModel ?? []
|
|
@@ -878,7 +1026,7 @@ async function runCli(opts) {
|
|
|
878
1026
|
setExitCode(EX_USAGE);
|
|
879
1027
|
return;
|
|
880
1028
|
}
|
|
881
|
-
const skipPermissions = Boolean(launchOpts.dangerouslySkipPermissions
|
|
1029
|
+
const skipPermissions = Boolean(launchOpts.dangerouslySkipPermissions);
|
|
882
1030
|
const permissionPlanFor = /* @__PURE__ */ __name((config) => runtime().planLaunchMode({
|
|
883
1031
|
permissionModeFlag: launchOpts.permissionMode,
|
|
884
1032
|
skipPermissions,
|
|
@@ -914,8 +1062,8 @@ async function runCli(opts) {
|
|
|
914
1062
|
const provider = (launchOpts.provider ?? modelEnvironment.provider)?.trim();
|
|
915
1063
|
let launchAccount;
|
|
916
1064
|
if (launchOpts.account !== void 0) {
|
|
917
|
-
const { openCliAccounts } = await import("./open-
|
|
918
|
-
const { findAccountByName } = await import("./binding-
|
|
1065
|
+
const { openCliAccounts } = await import("./open-3VUS3XWX.js");
|
|
1066
|
+
const { findAccountByName } = await import("./binding-NAPEU62B.js");
|
|
919
1067
|
let found;
|
|
920
1068
|
try {
|
|
921
1069
|
found = findAccountByName(openCliAccounts().registry, launchOpts.account);
|
|
@@ -952,12 +1100,29 @@ async function runCli(opts) {
|
|
|
952
1100
|
...launchOpts.fast !== true && savedConfig.fast === true ? { savedFast: true } : {},
|
|
953
1101
|
...!effort && savedConfig.effort ? { savedEffort: savedConfig.effort } : {},
|
|
954
1102
|
...launchPlan.source === "launch-flag" || launchPlan.source === "config-default" ? { permissionMode: launchPlan.mode } : {},
|
|
955
|
-
...
|
|
1103
|
+
...launchPrompt?.trim() ? { message: launchPrompt } : {},
|
|
1104
|
+
...launchOpts.name?.trim() ? { name: launchOpts.name.trim() } : {},
|
|
956
1105
|
...launchOpts.fallbackModel?.length ? { fallbackModels: launchOpts.fallbackModel } : {}
|
|
957
1106
|
};
|
|
958
1107
|
const commandCtx = getBootstrapContext();
|
|
959
1108
|
beginCatalogueRefresh(commandCtx.config);
|
|
1109
|
+
const mcpCheck = runtime().launchMcpServers(
|
|
1110
|
+
commandCtx.config.mcpServers,
|
|
1111
|
+
launchOpts.mcpConfig ?? [],
|
|
1112
|
+
launchOpts.strictMcpConfig === true
|
|
1113
|
+
);
|
|
1114
|
+
if ("error" in mcpCheck) {
|
|
1115
|
+
commandCtx.formatter.error({ message: mcpCheck.error });
|
|
1116
|
+
setExitCode(EX_USAGE);
|
|
1117
|
+
return;
|
|
1118
|
+
}
|
|
960
1119
|
const buildTuiContext = /* @__PURE__ */ __name((resolvedCtx, cwd) => {
|
|
1120
|
+
const launchMcp = runtime().launchMcpServers(
|
|
1121
|
+
resolvedCtx.config.mcpServers,
|
|
1122
|
+
launchOpts.mcpConfig ?? [],
|
|
1123
|
+
launchOpts.strictMcpConfig === true
|
|
1124
|
+
);
|
|
1125
|
+
if ("error" in launchMcp) throw new Error(launchMcp.error);
|
|
961
1126
|
runtime().warnLegacyMcpPermissionNames(resolvedCtx.config.permissions);
|
|
962
1127
|
runtime().warnBroadAllowRules(cwd, runtime().cliLogger());
|
|
963
1128
|
const permissions = runtime().compilePermissionLayers(
|
|
@@ -999,6 +1164,9 @@ async function runCli(opts) {
|
|
|
999
1164
|
// may name a default of its own or switch auto off.
|
|
1000
1165
|
permissionSource: launchPlan.source === "auto-default" && fullPlan?.source !== "auto-default" ? "default" : launchPlan.source,
|
|
1001
1166
|
...runFlags.appendSystem ? { appendSystem: runFlags.appendSystem } : {},
|
|
1167
|
+
...runFlags.replaceSystem ? { replaceSystem: runFlags.replaceSystem } : {},
|
|
1168
|
+
...runFlags.onlyTools ? { onlyTools: runFlags.onlyTools } : {},
|
|
1169
|
+
...launchOpts.bare === true ? { bare: true } : {},
|
|
1002
1170
|
// The project's own file may close bypass or auto for its folder, so the
|
|
1003
1171
|
// door is recomputed from the full configuration.
|
|
1004
1172
|
bypassAvailable: fullPlan?.bypassAvailable === true,
|
|
@@ -1011,7 +1179,7 @@ async function runCli(opts) {
|
|
|
1011
1179
|
logging: resolvedCtx.logging,
|
|
1012
1180
|
...conversationId ? { initialConversationId: conversationId } : {},
|
|
1013
1181
|
...openResumePicker ? { openResumePicker } : {},
|
|
1014
|
-
...
|
|
1182
|
+
...launchMcp.servers ? { mcpServers: launchMcp.servers } : {},
|
|
1015
1183
|
...resolvedCtx.config.plugins ? { plugins: resolvedCtx.config.plugins } : {},
|
|
1016
1184
|
...resolvedCtx.config.skills ? { skills: resolvedCtx.config.skills } : {},
|
|
1017
1185
|
...resolvedCtx.config.composerTriggers ? { composerTriggers: resolvedCtx.config.composerTriggers } : {},
|
|
@@ -1048,6 +1216,9 @@ async function runCli(opts) {
|
|
|
1048
1216
|
...resolvedCtx.config.decision ? { decision: resolvedCtx.config.decision } : {},
|
|
1049
1217
|
...resolvedCtx.config.codeAnalysis ? { codeAnalysis: resolvedCtx.config.codeAnalysis } : {},
|
|
1050
1218
|
...resolvedCtx.config.computerUse ? { computerUse: resolvedCtx.config.computerUse } : {},
|
|
1219
|
+
// Read again from the files each turn: the setting is changed in `/config` or
|
|
1220
|
+
// Settings while a conversation is open, and applies from the next message.
|
|
1221
|
+
readComputerUseEnabled: /* @__PURE__ */ __name(() => refreshTrustedProjectContext(commandCtx, cwd).config.computerUse?.enabled === true, "readComputerUseEnabled"),
|
|
1051
1222
|
...resolvedCtx.config.progressNudge ? { progressNudge: resolvedCtx.config.progressNudge } : {},
|
|
1052
1223
|
// A configured `routing` block makes Auto an available choice;
|
|
1053
1224
|
// `model: auto` makes it the default, and only when nothing pins a
|
|
@@ -1074,7 +1245,7 @@ async function runCli(opts) {
|
|
|
1074
1245
|
tuiCtx,
|
|
1075
1246
|
(cwd) => buildTuiContext(resolveTrustedProjectContext(commandCtx, cwd), cwd)
|
|
1076
1247
|
);
|
|
1077
|
-
const { launchTui } = await import("./tui-
|
|
1248
|
+
const { launchTui } = await import("./tui-MRMMX2TV.js");
|
|
1078
1249
|
const resumeCommand = launchOpts.outputSchema ? [
|
|
1079
1250
|
...opts.resumeCommand ?? ["namzu"],
|
|
1080
1251
|
"--output-schema",
|
|
@@ -1100,7 +1271,7 @@ async function runCli(opts) {
|
|
|
1100
1271
|
await launchInteractiveTui(void 0, true);
|
|
1101
1272
|
return;
|
|
1102
1273
|
}
|
|
1103
|
-
const { scheduledSessionElsewhere } = await import("./resume-command-
|
|
1274
|
+
const { scheduledSessionElsewhere } = await import("./resume-command-H4FOREZO.js");
|
|
1104
1275
|
const elsewhere = scheduledSessionElsewhere(
|
|
1105
1276
|
runtime().resolveNamzuHome(),
|
|
1106
1277
|
conversationId,
|
|
@@ -1117,19 +1288,53 @@ async function runCli(opts) {
|
|
|
1117
1288
|
}
|
|
1118
1289
|
await launchInteractiveTui(conversationId);
|
|
1119
1290
|
});
|
|
1120
|
-
program.
|
|
1291
|
+
program.command("help").description("Show help for a command: namzu help <command> [action...]").argument("[command]").argument("[action...]");
|
|
1292
|
+
program.action(async (prompt) => {
|
|
1293
|
+
const hidden = program.opts().message;
|
|
1294
|
+
const given = [prompt, hidden, promptAfterDashes].filter((text) => text !== void 0);
|
|
1295
|
+
if (given.length > 1)
|
|
1296
|
+
program.error('Give the first message once: namzu "<text>".', {
|
|
1297
|
+
exitCode: EX_USAGE,
|
|
1298
|
+
code: "commander.invalidArgument"
|
|
1299
|
+
});
|
|
1300
|
+
launchPrompt = prompt ?? hidden ?? promptAfterDashes;
|
|
1121
1301
|
await launchInteractiveTui();
|
|
1122
1302
|
});
|
|
1303
|
+
let argv = opts.argv;
|
|
1304
|
+
let promptAfterDashes;
|
|
1305
|
+
const dashed = dashedPrompt(program, argv.slice(2));
|
|
1306
|
+
if (dashed !== void 0) {
|
|
1307
|
+
argv = argv.slice(0, 2 + dashed.index);
|
|
1308
|
+
promptAfterDashes = dashed.prompt;
|
|
1309
|
+
}
|
|
1310
|
+
const printed = printModeArgs(program, argv.slice(2));
|
|
1311
|
+
if (printed !== void 0) argv = [...argv.slice(0, 2), ...printed];
|
|
1312
|
+
else {
|
|
1313
|
+
const hoisted = hoistExecLaunchFlags(program, argv.slice(2));
|
|
1314
|
+
if (hoisted !== void 0) argv = [...argv.slice(0, 2), ...hoisted];
|
|
1315
|
+
}
|
|
1123
1316
|
try {
|
|
1124
|
-
const
|
|
1125
|
-
|
|
1126
|
-
|
|
1317
|
+
const helpOf = helpTarget(program, argv);
|
|
1318
|
+
argv = [...rewriteHelpCommand(program, argv)];
|
|
1319
|
+
helpArgv = argv;
|
|
1320
|
+
if (asksForHelp(argv) && process.env.NAMZU_HOME !== void 0) {
|
|
1321
|
+
setAsideHome = { value: process.env.NAMZU_HOME };
|
|
1322
|
+
delete process.env.NAMZU_HOME;
|
|
1323
|
+
}
|
|
1324
|
+
const hint = removedSpellingHint(program, argv.slice(2));
|
|
1325
|
+
if (hint !== void 0) {
|
|
1127
1326
|
program.error(hint, {
|
|
1128
1327
|
exitCode: EX_USAGE,
|
|
1129
1328
|
code: "commander.unknownCommand"
|
|
1130
1329
|
});
|
|
1131
1330
|
}
|
|
1132
|
-
|
|
1331
|
+
if (helpOf !== void 0 && !isCommandName(program, helpOf)) {
|
|
1332
|
+
program.error(`unknown command '${helpOf}'`, {
|
|
1333
|
+
exitCode: EX_USAGE,
|
|
1334
|
+
code: "commander.unknownCommand"
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
await program.parseAsync(argv, { from: "node" });
|
|
1133
1338
|
return exitCode;
|
|
1134
1339
|
} catch (err) {
|
|
1135
1340
|
if (err instanceof CommanderError) {
|
|
@@ -1152,16 +1357,90 @@ namzu will not start with an explicit config value it cannot honour. ${remediati
|
|
|
1152
1357
|
);
|
|
1153
1358
|
return EXIT_BAD_CONFIG;
|
|
1154
1359
|
}
|
|
1155
|
-
const { reportCrash } = await import("./crash-report-
|
|
1360
|
+
const { reportCrash } = await import("./crash-report-CA3Y7LA6.js");
|
|
1156
1361
|
process.stderr.write(reportCrash(err));
|
|
1157
1362
|
return EXIT_INTERNAL_ERROR;
|
|
1158
1363
|
} finally {
|
|
1364
|
+
if (setAsideHome !== void 0) process.env.NAMZU_HOME = setAsideHome.value;
|
|
1159
1365
|
catalogueRefresh?.cancel();
|
|
1160
1366
|
await (await otlpExport)?.shutdown();
|
|
1161
1367
|
}
|
|
1162
1368
|
}
|
|
1163
1369
|
__name(runCli, "runCli");
|
|
1164
|
-
|
|
1370
|
+
var PRINT_ROOT_FLAGS = /* @__PURE__ */ new Set(["-q", "--quiet", "-v", "--verbose", "--debug", "--bare"]);
|
|
1371
|
+
var PRINT_ROOT_VALUE_FLAGS = /* @__PURE__ */ new Set([
|
|
1372
|
+
"-f",
|
|
1373
|
+
"--format",
|
|
1374
|
+
"--log-format",
|
|
1375
|
+
"--settings",
|
|
1376
|
+
"--debug-file"
|
|
1377
|
+
]);
|
|
1378
|
+
function printModeArgs(program, args) {
|
|
1379
|
+
const end = args.indexOf("--");
|
|
1380
|
+
const head = end === -1 ? args : args.slice(0, end);
|
|
1381
|
+
if (!head.some((arg) => arg === "-p" || arg === "--print")) return void 0;
|
|
1382
|
+
const first = firstRootOperand(program, head);
|
|
1383
|
+
if (first !== void 0 && isCommandName(program, first)) return void 0;
|
|
1384
|
+
if (first !== void 0 && Object.hasOwn(REMOVED_COMMANDS, first)) return void 0;
|
|
1385
|
+
const root = [];
|
|
1386
|
+
const rest = [];
|
|
1387
|
+
for (let i = 0; i < head.length; i++) {
|
|
1388
|
+
const arg = head[i];
|
|
1389
|
+
if (PRINT_ROOT_FLAGS.has(arg)) root.push(arg);
|
|
1390
|
+
else if (PRINT_ROOT_VALUE_FLAGS.has(arg)) {
|
|
1391
|
+
root.push(arg);
|
|
1392
|
+
if (i + 1 < head.length) root.push(head[++i]);
|
|
1393
|
+
} else if (arg.startsWith("--format=") || arg.startsWith("--log-format=") || arg.startsWith("--settings=") || arg.startsWith("--debug-file="))
|
|
1394
|
+
root.push(arg);
|
|
1395
|
+
else rest.push(arg);
|
|
1396
|
+
}
|
|
1397
|
+
return [...root, "exec", ...rest, ...args.slice(head.length)];
|
|
1398
|
+
}
|
|
1399
|
+
__name(printModeArgs, "printModeArgs");
|
|
1400
|
+
function hoistExecLaunchFlags(program, args) {
|
|
1401
|
+
let at = -1;
|
|
1402
|
+
for (let i = 0; i < args.length; i++) {
|
|
1403
|
+
if (args[i] === "--") return void 0;
|
|
1404
|
+
if (args[i] === "exec" && firstRootOperand(program, args.slice(0, i + 1)) === "exec") {
|
|
1405
|
+
at = i;
|
|
1406
|
+
break;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
if (at === -1) return void 0;
|
|
1410
|
+
const end = args.indexOf("--", at);
|
|
1411
|
+
const tail = end === -1 ? args.slice(at + 1) : args.slice(at + 1, end);
|
|
1412
|
+
const moved = [];
|
|
1413
|
+
const kept = [];
|
|
1414
|
+
for (let i = 0; i < tail.length; i++) {
|
|
1415
|
+
const arg = tail[i];
|
|
1416
|
+
if (arg === "--bare") moved.push(arg);
|
|
1417
|
+
else if (arg === "--settings" || arg === "--debug-file") {
|
|
1418
|
+
moved.push(arg);
|
|
1419
|
+
if (i + 1 < tail.length) moved.push(tail[++i]);
|
|
1420
|
+
} else if (arg.startsWith("--settings=") || arg.startsWith("--debug-file=")) moved.push(arg);
|
|
1421
|
+
else kept.push(arg);
|
|
1422
|
+
}
|
|
1423
|
+
if (moved.length === 0) return void 0;
|
|
1424
|
+
return [...args.slice(0, at), ...moved, "exec", ...kept, ...end === -1 ? [] : args.slice(end)];
|
|
1425
|
+
}
|
|
1426
|
+
__name(hoistExecLaunchFlags, "hoistExecLaunchFlags");
|
|
1427
|
+
function isCommandName(program, name) {
|
|
1428
|
+
return program.commands.some(
|
|
1429
|
+
(command) => command.name() === name || command.aliases().includes(name)
|
|
1430
|
+
);
|
|
1431
|
+
}
|
|
1432
|
+
__name(isCommandName, "isCommandName");
|
|
1433
|
+
function dashedPrompt(program, args) {
|
|
1434
|
+
const index = args.indexOf("--");
|
|
1435
|
+
if (index === -1) return void 0;
|
|
1436
|
+
const before = args.slice(0, index);
|
|
1437
|
+
if (firstRootOperand(program, before) !== void 0) return void 0;
|
|
1438
|
+
if (before.some((arg) => arg === "-p" || arg === "--print")) return void 0;
|
|
1439
|
+
if (args.length !== index + 2) return void 0;
|
|
1440
|
+
return { index, prompt: args[index + 1] };
|
|
1441
|
+
}
|
|
1442
|
+
__name(dashedPrompt, "dashedPrompt");
|
|
1443
|
+
function firstRootOperandIndex(program, args) {
|
|
1165
1444
|
const takesValue = /* @__PURE__ */ __name((flag) => {
|
|
1166
1445
|
if (flag === "-h" || flag === "--help") return false;
|
|
1167
1446
|
const option = program.options.find((o) => o.long === flag || o.short === flag);
|
|
@@ -1184,11 +1463,60 @@ function firstRootOperand(program, args) {
|
|
|
1184
1463
|
if (value && arg.length === 2) i++;
|
|
1185
1464
|
continue;
|
|
1186
1465
|
}
|
|
1187
|
-
return
|
|
1466
|
+
return i;
|
|
1467
|
+
}
|
|
1468
|
+
return void 0;
|
|
1469
|
+
}
|
|
1470
|
+
__name(firstRootOperandIndex, "firstRootOperandIndex");
|
|
1471
|
+
function removedSpellingHint(program, args) {
|
|
1472
|
+
const end = args.indexOf("--");
|
|
1473
|
+
const head = end === -1 ? args : args.slice(0, end);
|
|
1474
|
+
const sawYolo = head.some((a) => a === "--yolo" || a.startsWith("--yolo="));
|
|
1475
|
+
const visible = sawYolo ? head.filter((a) => a !== "--yolo" && !a.startsWith("--yolo=")) : head;
|
|
1476
|
+
const at = firstRootOperandIndex(program, visible);
|
|
1477
|
+
const name = at === void 0 ? void 0 : visible[at];
|
|
1478
|
+
if (name !== void 0) {
|
|
1479
|
+
const byName = REMOVED_COMMANDS[name];
|
|
1480
|
+
if (byName !== void 0) return byName;
|
|
1481
|
+
const action = visible[at + 1];
|
|
1482
|
+
const byAction = action === void 0 ? void 0 : REMOVED_COMMANDS[`${name} ${action}`];
|
|
1483
|
+
if (byAction !== void 0) return byAction;
|
|
1188
1484
|
}
|
|
1485
|
+
if (sawYolo) return REMOVED_COMMANDS["--yolo"];
|
|
1189
1486
|
return void 0;
|
|
1190
1487
|
}
|
|
1488
|
+
__name(removedSpellingHint, "removedSpellingHint");
|
|
1489
|
+
function rewriteHelpCommand(program, argv) {
|
|
1490
|
+
const args = argv.slice(2);
|
|
1491
|
+
const at = firstRootOperandIndex(program, args);
|
|
1492
|
+
if (at === void 0 || args[at] !== "help") return argv;
|
|
1493
|
+
const before = args.slice(0, at);
|
|
1494
|
+
const rest = args.slice(at + 1).filter((a) => a !== "--help" && a !== "-h");
|
|
1495
|
+
const target = rest[0];
|
|
1496
|
+
const known = target !== void 0 && program.commands.some((c) => c.name() === target);
|
|
1497
|
+
const tail = target === void 0 || known ? [...rest, "--help"] : rest;
|
|
1498
|
+
return [...argv.slice(0, 2), ...before, ...tail];
|
|
1499
|
+
}
|
|
1500
|
+
__name(rewriteHelpCommand, "rewriteHelpCommand");
|
|
1501
|
+
function helpTarget(program, argv) {
|
|
1502
|
+
const args = argv.slice(2);
|
|
1503
|
+
const at = firstRootOperandIndex(program, args);
|
|
1504
|
+
if (at === void 0 || args[at] !== "help") return void 0;
|
|
1505
|
+
return args.slice(at + 1).find((a) => a !== "--help" && a !== "-h");
|
|
1506
|
+
}
|
|
1507
|
+
__name(helpTarget, "helpTarget");
|
|
1508
|
+
function firstRootOperand(program, args) {
|
|
1509
|
+
const at = firstRootOperandIndex(program, args);
|
|
1510
|
+
return at === void 0 ? void 0 : args[at];
|
|
1511
|
+
}
|
|
1191
1512
|
__name(firstRootOperand, "firstRootOperand");
|
|
1513
|
+
function asksForHelp(argv) {
|
|
1514
|
+
const args = argv.slice(2);
|
|
1515
|
+
const end = args.indexOf("--");
|
|
1516
|
+
const head = end === -1 ? args : args.slice(0, end);
|
|
1517
|
+
return head.includes("--help") || head.includes("-h");
|
|
1518
|
+
}
|
|
1519
|
+
__name(asksForHelp, "asksForHelp");
|
|
1192
1520
|
function mapCommanderError(err) {
|
|
1193
1521
|
switch (err.code) {
|
|
1194
1522
|
case "commander.helpDisplayed":
|
|
@@ -1215,4 +1543,4 @@ export {
|
|
|
1215
1543
|
registerAll,
|
|
1216
1544
|
runCli
|
|
1217
1545
|
};
|
|
1218
|
-
//# sourceMappingURL=chunk-
|
|
1546
|
+
//# sourceMappingURL=chunk-MOY2OERC.js.map
|