@namzu/cli 57.1.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.
Files changed (656) hide show
  1. package/CHANGELOG.md +120 -0
  2. package/README.md +5 -5
  3. package/dist/bin.js +1 -1
  4. package/dist/boot-narrative.d.ts.map +1 -1
  5. package/dist/browser/control.d.ts +19 -2
  6. package/dist/browser/control.d.ts.map +1 -1
  7. package/dist/chunks/{acp-DEH76VXL.js → acp-OZG7H75P.js} +437 -204
  8. package/dist/chunks/acp-OZG7H75P.js.map +6 -0
  9. package/dist/chunks/{activity-command-GETWRD67.js → activity-command-ZROH53CS.js} +14 -15
  10. package/dist/chunks/activity-command-ZROH53CS.js.map +6 -0
  11. package/dist/chunks/{add-XFYJ6UZE.js → add-DKSV5Y3C.js} +36 -34
  12. package/dist/chunks/add-DKSV5Y3C.js.map +6 -0
  13. package/dist/chunks/{agent-FW4VC2AF.js → agent-MSSMOEBP.js} +58 -48
  14. package/dist/chunks/agent-session-VCB6HX3E.js +89 -0
  15. package/dist/chunks/{apply-at-exit-OU2UXZCF.js → apply-at-exit-Z34ZOT4A.js} +9 -9
  16. package/dist/chunks/{apply-at-exit-OU2UXZCF.js.map → apply-at-exit-Z34ZOT4A.js.map} +1 -1
  17. package/dist/chunks/{archive-PA5MDKXC.js → archive-UMNSALTJ.js} +16 -13
  18. package/dist/chunks/archive-UMNSALTJ.js.map +6 -0
  19. package/dist/chunks/auth-2NEDWCS7.js +242 -0
  20. package/dist/chunks/auth-2NEDWCS7.js.map +6 -0
  21. package/dist/chunks/{bin-main-RH4NLAPK.js → bin-main-2E6XD7MQ.js} +8 -8
  22. package/dist/chunks/{binding-ON644UJ3.js → binding-NAPEU62B.js} +3 -3
  23. package/dist/chunks/browser-M7U6GZOY.js +76 -0
  24. package/dist/chunks/browser-M7U6GZOY.js.map +6 -0
  25. package/dist/chunks/{chat-UNZSJZ6U.js → chat-34SAREPI.js} +17 -18
  26. package/dist/chunks/chat-34SAREPI.js.map +6 -0
  27. package/dist/chunks/{chunk-S7YXINNY.js → chunk-27ICMJVV.js} +3 -3
  28. package/dist/chunks/{chunk-NP4BQ7SB.js → chunk-2D5WW5KP.js} +2 -2
  29. package/dist/chunks/{chunk-ZR3VZG37.js → chunk-2GKFWJ3O.js} +7 -186
  30. package/dist/chunks/chunk-2GKFWJ3O.js.map +6 -0
  31. package/dist/chunks/{chunk-D5N3SDNF.js → chunk-2J2Z6S3V.js} +21 -21
  32. package/dist/chunks/{chunk-Z6LUWKV4.js → chunk-2PRVGX6U.js} +8 -8
  33. package/dist/chunks/chunk-2QJNPJOC.js +39 -0
  34. package/dist/chunks/chunk-2QJNPJOC.js.map +6 -0
  35. package/dist/chunks/{chunk-2ZPB4ZBP.js → chunk-32CPPPKX.js} +3 -3
  36. package/dist/chunks/{chunk-6MGRBXCW.js → chunk-3SBROSVS.js} +2 -2
  37. package/dist/chunks/{chunk-LGVEASS7.js → chunk-3ZL6YBMT.js} +6 -6
  38. package/dist/chunks/chunk-4AWE33MD.js +186 -0
  39. package/dist/chunks/chunk-4AWE33MD.js.map +6 -0
  40. package/dist/chunks/{chunk-RYLQH5BB.js → chunk-4RCXY7WO.js} +2 -2
  41. package/dist/chunks/{chunk-2AEWJA4Y.js → chunk-4WLMPRGO.js} +4 -4
  42. package/dist/chunks/{chunk-2AEWJA4Y.js.map → chunk-4WLMPRGO.js.map} +1 -1
  43. package/dist/chunks/{chunk-ICIVSMA3.js → chunk-4YQJ262B.js} +2 -2
  44. package/dist/chunks/{chunk-DOLGKZC5.js → chunk-52DZTN4C.js} +5 -3
  45. package/dist/chunks/{chunk-2JFRYOBC.js → chunk-5564PCLT.js} +11 -9
  46. package/dist/chunks/chunk-5564PCLT.js.map +6 -0
  47. package/dist/chunks/{chunk-LXK7S2I2.js → chunk-5COLG33E.js} +6 -6
  48. package/dist/chunks/{chunk-N4YYJGMW.js → chunk-5GI7W4SM.js} +9 -9
  49. package/dist/chunks/{chunk-M4XYHIA3.js → chunk-5NIQMCRF.js} +2 -2
  50. package/dist/chunks/{chunk-QTQIHFYH.js → chunk-5WS5Q2KW.js} +3 -3
  51. package/dist/chunks/{chunk-ORSFP3ZC.js → chunk-655EBPZH.js} +36 -12
  52. package/dist/chunks/{chunk-ORSFP3ZC.js.map → chunk-655EBPZH.js.map} +1 -1
  53. package/dist/chunks/{chunk-SKFBM6OJ.js → chunk-66DFXMZG.js} +5 -5
  54. package/dist/chunks/{chunk-DRKCWJPR.js → chunk-6MMKNZYL.js} +3 -3
  55. package/dist/chunks/{chunk-SHFB4DZP.js → chunk-6QQVZXUE.js} +2 -2
  56. package/dist/chunks/{chunk-GVWDNFIP.js → chunk-6RBEIDSC.js} +3 -3
  57. package/dist/chunks/{chunk-W6UOMYDX.js → chunk-6V4VYVRZ.js} +2 -2
  58. package/dist/chunks/{chunk-5YTGRS7U.js → chunk-6ZWEKSAV.js} +7 -7
  59. package/dist/chunks/{chunk-JCH7IWMU.js → chunk-774DAIPO.js} +887 -530
  60. package/dist/chunks/chunk-774DAIPO.js.map +6 -0
  61. package/dist/chunks/{chunk-HIHHTWEU.js → chunk-7BSLOLTU.js} +2 -2
  62. package/dist/chunks/{chunk-3HT7FQNG.js → chunk-7BXJPOEG.js} +4 -4
  63. package/dist/chunks/{chunk-WCAKWRZU.js → chunk-7DERK6IR.js} +3 -3
  64. package/dist/chunks/{chunk-4PFTZNS5.js → chunk-7EASTT3H.js} +2 -2
  65. package/dist/chunks/{chunk-REYJHS2X.js → chunk-7LCU5IKH.js} +20 -20
  66. package/dist/chunks/{chunk-REYJHS2X.js.map → chunk-7LCU5IKH.js.map} +1 -1
  67. package/dist/chunks/{chunk-IZYYWNP2.js → chunk-7MYLYFIV.js} +2 -2
  68. package/dist/chunks/{chunk-WDROVY6V.js → chunk-7NAHUZAR.js} +2 -2
  69. package/dist/chunks/{chunk-LGPOJEZK.js → chunk-7NQLCFYX.js} +5 -5
  70. package/dist/chunks/{chunk-BJQ7WFWL.js → chunk-7ROZ2N57.js} +35 -3
  71. package/dist/chunks/chunk-7ROZ2N57.js.map +6 -0
  72. package/dist/chunks/{chunk-SIG7WHBU.js → chunk-7YC42EXB.js} +5 -1
  73. package/dist/chunks/{chunk-SIG7WHBU.js.map → chunk-7YC42EXB.js.map} +1 -1
  74. package/dist/chunks/{chunk-6TCZN54R.js → chunk-A5O5VTQM.js} +3 -3
  75. package/dist/chunks/{chunk-2P2PDEZJ.js → chunk-ADLNBLRA.js} +24 -16
  76. package/dist/chunks/chunk-ADLNBLRA.js.map +6 -0
  77. package/dist/chunks/{chunk-ABELB4VO.js → chunk-BATWKQWV.js} +2 -2
  78. package/dist/chunks/{chunk-NOHH27YE.js → chunk-CK47DTW6.js} +5 -5
  79. package/dist/chunks/{chunk-LWAGZIEA.js → chunk-CSO7BHDJ.js} +2 -2
  80. package/dist/chunks/{chunk-GPP4OXHP.js → chunk-D42SQGEO.js} +2 -2
  81. package/dist/chunks/{chunk-J6QCR3SC.js → chunk-DIBXZBOP.js} +7 -7
  82. package/dist/chunks/{chunk-3ZHOM2L7.js → chunk-DZA7UXA2.js} +15 -63
  83. package/dist/chunks/chunk-DZA7UXA2.js.map +6 -0
  84. package/dist/chunks/{chunk-PI5ZZQVH.js → chunk-EFWF72V4.js} +3 -3
  85. package/dist/chunks/{chunk-TBKSDYS4.js → chunk-ENNAZGUX.js} +3 -3
  86. package/dist/chunks/{chunk-6E4TDPXP.js → chunk-EOLXS2ZV.js} +5 -5
  87. package/dist/chunks/{chunk-C7ZKC7HY.js → chunk-ESHAWCBR.js} +34 -8
  88. package/dist/chunks/chunk-ESHAWCBR.js.map +6 -0
  89. package/dist/chunks/{chunk-AF2QPFEQ.js → chunk-F6NUMURW.js} +3 -3
  90. package/dist/chunks/{chunk-R37C3PDS.js → chunk-FJG7JN4W.js} +5 -5
  91. package/dist/chunks/{chunk-R37C3PDS.js.map → chunk-FJG7JN4W.js.map} +1 -1
  92. package/dist/chunks/{chunk-OZ55WTNZ.js → chunk-FZPIEOFR.js} +3 -3
  93. package/dist/chunks/{chunk-LDU7AFNZ.js → chunk-G7UGGWOR.js} +2 -2
  94. package/dist/chunks/{chunk-5ZPCQ2HL.js → chunk-GLZJBFDO.js} +4 -4
  95. package/dist/chunks/{chunk-WYBLTKBR.js → chunk-GVLU2YM7.js} +17 -20
  96. package/dist/chunks/{chunk-WYBLTKBR.js.map → chunk-GVLU2YM7.js.map} +1 -1
  97. package/dist/chunks/{chunk-PK7M7VIU.js → chunk-HBGRWJU5.js} +13 -13
  98. package/dist/chunks/{chunk-7T56MZIJ.js → chunk-HGOU2QRN.js} +19 -19
  99. package/dist/chunks/{chunk-7T56MZIJ.js.map → chunk-HGOU2QRN.js.map} +1 -1
  100. package/dist/chunks/{chunk-ZDGKFGVE.js → chunk-HICZARAY.js} +2 -2
  101. package/dist/chunks/{chunk-FSAI4GDZ.js → chunk-HONSYTUC.js} +4 -4
  102. package/dist/chunks/{chunk-PPCKNQOQ.js → chunk-HRKY4ARS.js} +13 -11
  103. package/dist/chunks/chunk-HRKY4ARS.js.map +6 -0
  104. package/dist/chunks/{chunk-GWLUXO4O.js → chunk-I5BNXO63.js} +2 -2
  105. package/dist/chunks/{chunk-6MQHDX7R.js → chunk-IBENEKM4.js} +21 -5
  106. package/dist/chunks/chunk-IBENEKM4.js.map +6 -0
  107. package/dist/chunks/{chunk-BXAUUC2B.js → chunk-IH2JBJ6I.js} +4 -4
  108. package/dist/chunks/{chunk-Y62WSR5N.js → chunk-J4GPHTRN.js} +8 -8
  109. package/dist/chunks/{chunk-VV6DYTFU.js → chunk-JFA2XPTW.js} +5 -5
  110. package/dist/chunks/{chunk-HEFLKPCT.js → chunk-JSY23B3Q.js} +3 -3
  111. package/dist/chunks/{chunk-MMJ6UURB.js → chunk-JX6O7Y55.js} +3 -3
  112. package/dist/chunks/{chunk-KUIATFLN.js → chunk-K5VLCRHY.js} +2 -2
  113. package/dist/chunks/chunk-K7ZQYJJE.js +197 -0
  114. package/dist/chunks/chunk-K7ZQYJJE.js.map +6 -0
  115. package/dist/chunks/{chunk-RSO4LBHJ.js → chunk-KCBOIL5Q.js} +7 -7
  116. package/dist/chunks/{chunk-MY6JV4BT.js → chunk-KIWLK2WZ.js} +7 -9
  117. package/dist/chunks/chunk-KIWLK2WZ.js.map +6 -0
  118. package/dist/chunks/chunk-L4LGUBYZ.js +167 -0
  119. package/dist/chunks/chunk-L4LGUBYZ.js.map +6 -0
  120. package/dist/chunks/{chunk-6CI5CHBT.js → chunk-L5FCGDB7.js} +1673 -687
  121. package/dist/chunks/chunk-L5FCGDB7.js.map +6 -0
  122. package/dist/chunks/{chunk-ETBXU3OK.js → chunk-LM2OGSW5.js} +6 -6
  123. package/dist/chunks/{chunk-ETBXU3OK.js.map → chunk-LM2OGSW5.js.map} +1 -1
  124. package/dist/chunks/{chunk-GJ6NI7JL.js → chunk-LRUY5C6H.js} +17 -13
  125. package/dist/chunks/{chunk-GJ6NI7JL.js.map → chunk-LRUY5C6H.js.map} +1 -1
  126. package/dist/chunks/{chunk-7BF4FLOP.js → chunk-MJ32RCFZ.js} +4 -4
  127. package/dist/chunks/{chunk-4LSSJKYK.js → chunk-MJJA277Z.js} +19 -4
  128. package/dist/chunks/{chunk-4LSSJKYK.js.map → chunk-MJJA277Z.js.map} +1 -1
  129. package/dist/chunks/{chunk-6IWJ6JC6.js → chunk-MOY2OERC.js} +459 -135
  130. package/dist/chunks/chunk-MOY2OERC.js.map +6 -0
  131. package/dist/chunks/{chunk-XF243FQN.js → chunk-MX3U5TBQ.js} +17 -6
  132. package/dist/chunks/chunk-MX3U5TBQ.js.map +6 -0
  133. package/dist/chunks/{chunk-ZWP5L7BV.js → chunk-NBJ4OTXL.js} +8 -8
  134. package/dist/chunks/{chunk-BFYETM56.js → chunk-NFTQDITK.js} +91 -6
  135. package/dist/chunks/chunk-NFTQDITK.js.map +6 -0
  136. package/dist/chunks/{chunk-WSQAVWIV.js → chunk-NO3F3QQ3.js} +13 -13
  137. package/dist/chunks/{chunk-MOMSIAV4.js → chunk-NQYOMRPT.js} +2 -2
  138. package/dist/chunks/{chunk-IMXTM75Q.js → chunk-O6C4RETO.js} +3 -3
  139. package/dist/chunks/{chunk-PYYDU2BC.js → chunk-O6EDUJ77.js} +6 -6
  140. package/dist/chunks/{chunk-UILPXAKQ.js → chunk-OD2PMTXS.js} +3 -3
  141. package/dist/chunks/{chunk-DROVNI2Y.js → chunk-OGEOUETU.js} +3 -3
  142. package/dist/chunks/{chunk-3EH4PF5T.js → chunk-OY3UN3KD.js} +145 -3
  143. package/dist/chunks/{chunk-3EH4PF5T.js.map → chunk-OY3UN3KD.js.map} +2 -2
  144. package/dist/chunks/chunk-P6RYPNSD.js +435 -0
  145. package/dist/chunks/chunk-P6RYPNSD.js.map +6 -0
  146. package/dist/chunks/{chunk-77AYLILT.js → chunk-PYTTGYZS.js} +3 -3
  147. package/dist/chunks/chunk-RHJOIAFS.js +201 -0
  148. package/dist/chunks/chunk-RHJOIAFS.js.map +6 -0
  149. package/dist/chunks/{chunk-PJF46DI6.js → chunk-RR7FS6SQ.js} +3 -3
  150. package/dist/chunks/{chunk-233CEYFX.js → chunk-RTMX7IDM.js} +2 -2
  151. package/dist/chunks/{chunk-4E2REC5O.js → chunk-S4OEUN6F.js} +2 -2
  152. package/dist/chunks/{chunk-763RT6Z5.js → chunk-SEVORRUA.js} +2 -2
  153. package/dist/chunks/{chunk-JDWCVWIQ.js → chunk-TAIC3PC2.js} +3 -3
  154. package/dist/chunks/{chunk-SM6UI33D.js → chunk-TGLXWW5B.js} +3 -3
  155. package/dist/chunks/{chunk-CKYGPQVJ.js → chunk-TJAUF5NX.js} +3 -3
  156. package/dist/chunks/{chunk-AZXIYYVX.js → chunk-TL535OCL.js} +29 -13
  157. package/dist/chunks/chunk-TL535OCL.js.map +6 -0
  158. package/dist/chunks/{chunk-DT6PTS6H.js → chunk-TSU4F6DF.js} +2 -2
  159. package/dist/chunks/{chunk-6BTNPDXR.js → chunk-TXMWKHYW.js} +2 -2
  160. package/dist/chunks/{chunk-4DNEDLBT.js → chunk-U4DBETHR.js} +501 -766
  161. package/dist/chunks/chunk-U4DBETHR.js.map +6 -0
  162. package/dist/chunks/{chunk-HENM67TJ.js → chunk-UBGDYBSQ.js} +2 -2
  163. package/dist/chunks/{chunk-FEP2R3XI.js → chunk-ULFR2FWA.js} +2 -2
  164. package/dist/chunks/{chunk-DGV6YSAW.js → chunk-UMPJ4VXN.js} +4 -4
  165. package/dist/chunks/{chunk-M5LA652U.js → chunk-URZPVSHV.js} +4 -4
  166. package/dist/chunks/{chunk-5C6XCI24.js → chunk-UXLQNJDR.js} +4 -4
  167. package/dist/chunks/{chunk-3Z5OXTDI.js → chunk-WEPINZBQ.js} +3 -3
  168. package/dist/chunks/{chunk-DMHE6X3Y.js → chunk-XQZMTH3S.js} +12 -40
  169. package/dist/chunks/chunk-XQZMTH3S.js.map +6 -0
  170. package/dist/chunks/{chunk-NV7RJBWA.js → chunk-XWP64X6U.js} +6 -6
  171. package/dist/chunks/{chunk-RP5HOVOW.js → chunk-Y3NC6RIL.js} +4 -4
  172. package/dist/chunks/{chunk-6TF24TFD.js → chunk-YEWJVAM4.js} +57 -9
  173. package/dist/chunks/chunk-YEWJVAM4.js.map +6 -0
  174. package/dist/chunks/{chunk-FNEQ77RJ.js → chunk-ZDMI3JSL.js} +26 -4
  175. package/dist/chunks/{chunk-FNEQ77RJ.js.map → chunk-ZDMI3JSL.js.map} +1 -1
  176. package/dist/chunks/{cli-runtime-66YC7XKZ.js → cli-runtime-BLOWAO6Q.js} +34 -19
  177. package/dist/chunks/cli-runtime-BLOWAO6Q.js.map +6 -0
  178. package/dist/chunks/{commands-R6WIMNZG.js → commands-VWBRELWZ.js} +6 -6
  179. package/dist/chunks/{computer-FQRWTC6M.js → computer-6P3GAOV2.js} +15 -7
  180. package/dist/chunks/computer-6P3GAOV2.js.map +6 -0
  181. package/dist/chunks/{config-BWAJ7XDA.js → config-77NN5LSS.js} +20 -17
  182. package/dist/chunks/config-77NN5LSS.js.map +6 -0
  183. package/dist/chunks/{cost-MVUQ3UWP.js → cost-IVLAFD5T.js} +5 -5
  184. package/dist/chunks/{crash-report-ASOVDFQT.js → crash-report-CA3Y7LA6.js} +6 -6
  185. package/dist/chunks/{dist-UTQTSM32.js → dist-3SGAVJFN.js} +2 -2
  186. package/dist/chunks/{dist-NUCTP67R.js → dist-5G52QS75.js} +193 -33
  187. package/dist/chunks/dist-5G52QS75.js.map +6 -0
  188. package/dist/chunks/{dist-6BE2BTVP.js → dist-7BSYEFE5.js} +2 -2
  189. package/dist/chunks/{dist-ZPPSUKEG.js → dist-AM6FWCIJ.js} +10 -2
  190. package/dist/chunks/{dist-IYSARJ7B.js → dist-ISRJEZRF.js} +2 -2
  191. package/dist/chunks/{dist-ERFNYYTR.js → dist-PBFZXU4L.js} +2 -2
  192. package/dist/chunks/{dist-DOHBDUFC.js → dist-RDXEBTCL.js} +2 -2
  193. package/dist/chunks/{dist-SQYPEQ4A.js → dist-V43PPTPF.js} +2 -2
  194. package/dist/chunks/{doctor-J2BRJDVI.js → doctor-FGOCO7UR.js} +39 -39
  195. package/dist/chunks/{drain-TGBUG6MO.js → drain-A3DLR5A4.js} +18 -18
  196. package/dist/chunks/{entry-7QM6GODJ.js → entry-4LHTI3VQ.js} +6 -6
  197. package/dist/chunks/{eval-274GGZ3M.js → eval-IYWGGPWF.js} +12 -12
  198. package/dist/chunks/{eval-274GGZ3M.js.map → eval-IYWGGPWF.js.map} +1 -1
  199. package/dist/chunks/{exec-QOH5FQCM.js → exec-HWK44ZYI.js} +104 -60
  200. package/dist/chunks/exec-HWK44ZYI.js.map +6 -0
  201. package/dist/chunks/{extension-Y52E4FZR.js → extension-BP7Q3PFK.js} +5 -5
  202. package/dist/chunks/{github-X352BD5R.js → github-IF3JVVJF.js} +5 -1
  203. package/dist/chunks/github-IF3JVVJF.js.map +6 -0
  204. package/dist/chunks/{home-OGOBLYWY.js → home-GR6YDAAE.js} +3 -3
  205. package/dist/chunks/{hooks-C6WM34FA.js → hooks-KSSNBDF2.js} +22 -22
  206. package/dist/chunks/{hooks-report-FCLN3ERK.js → hooks-report-H4JAHJXE.js} +18 -18
  207. package/dist/chunks/{host-FUPSAICG.js → host-ISKJDJ7B.js} +10 -10
  208. package/dist/chunks/host-queries-CUG75GYD.js +37 -0
  209. package/dist/chunks/{installed-list-3Z2UYHZL.js → installed-list-GPVOP4E3.js} +4 -4
  210. package/dist/chunks/{learn-EXNQYLI3.js → learn-AFNJQGOU.js} +18 -18
  211. package/dist/chunks/{learn-builtin-C4ZAVNHA.js → learn-builtin-LUD6XO6W.js} +21 -21
  212. package/dist/chunks/{lifecycle-4ZRBSEP2.js → lifecycle-TCRMEVJP.js} +31 -32
  213. package/dist/chunks/{list-2QV773EI.js → list-4OJNF5N2.js} +16 -16
  214. package/dist/chunks/{live-33QEKVAM.js → live-LJ76XHPK.js} +38 -38
  215. package/dist/chunks/{load-SYMNQIDR.js → load-2ERMTCD4.js} +12 -10
  216. package/dist/chunks/{logs-IW7PYTI2.js → logs-DV6GC7PT.js} +4 -4
  217. package/dist/chunks/{mcp-HP3YRE3U.js → mcp-5VV24FGZ.js} +449 -61
  218. package/dist/chunks/mcp-5VV24FGZ.js.map +6 -0
  219. package/dist/chunks/mcp-serve-TT4Q7V55.js +311 -0
  220. package/dist/chunks/mcp-serve-TT4Q7V55.js.map +6 -0
  221. package/dist/chunks/{message-command-IFQSBBI5.js → message-command-6RHBI3R4.js} +56 -54
  222. package/dist/chunks/message-command-6RHBI3R4.js.map +6 -0
  223. package/dist/chunks/{open-3GVSPGUF.js → open-3VUS3XWX.js} +7 -7
  224. package/dist/chunks/{operator-tools-HT7UNWNK.js → operator-tools-BZ5X5ZDE.js} +15 -16
  225. package/dist/chunks/operator-tools-BZ5X5ZDE.js.map +6 -0
  226. package/dist/chunks/{output-schema-MKFI5PWR.js → output-schema-2GHHC5ZZ.js} +3 -3
  227. package/dist/chunks/{pal-6KB3D324.js → pal-TT7X5JF3.js} +150 -15
  228. package/dist/chunks/pal-TT7X5JF3.js.map +6 -0
  229. package/dist/chunks/{peers-4M45XTZO.js → peers-SJFCJTA6.js} +149 -19
  230. package/dist/chunks/peers-SJFCJTA6.js.map +6 -0
  231. package/dist/chunks/{peers-CGTVWK6B.js → peers-SLFOET3O.js} +7 -7
  232. package/dist/chunks/{plugin-FIVP6MGJ.js → plugin-I35EQ4CC.js} +22 -18
  233. package/dist/chunks/plugin-I35EQ4CC.js.map +6 -0
  234. package/dist/chunks/{providers-6634CTX7.js → providers-MX47EUPL.js} +22 -19
  235. package/dist/chunks/providers-MX47EUPL.js.map +6 -0
  236. package/dist/chunks/{providers-Z3KLRJDW.js → providers-SOFGNZ4F.js} +10 -10
  237. package/dist/chunks/{pty-GMA24QAT.js → pty-3T7AE7ZA.js} +3 -3
  238. package/dist/chunks/resume-5JACRBQO.js +25 -0
  239. package/dist/chunks/{resume-command-MXUIVG6T.js → resume-command-H4FOREZO.js} +4 -4
  240. package/dist/chunks/{running-HYMQGZMF.js → running-NONPWC5C.js} +4 -4
  241. package/dist/chunks/{schedule-54POTO5A.js → schedule-BWR4NKGX.js} +245 -10
  242. package/dist/chunks/schedule-BWR4NKGX.js.map +6 -0
  243. package/dist/chunks/{send-IFZ7XPTF.js → send-H27WTBLZ.js} +18 -18
  244. package/dist/chunks/send-person-NNGL2U4H.js +31 -0
  245. package/dist/chunks/{serve-CZDHGDZL.js → serve-4VIDXLEB.js} +2 -2
  246. package/dist/chunks/{service-Y5N7WIHV.js → service-NVOIN2MV.js} +32 -33
  247. package/dist/chunks/service-NVOIN2MV.js.map +6 -0
  248. package/dist/chunks/{setting-cli-CJMZHIMQ.js → setting-cli-ETVPDSRA.js} +13 -13
  249. package/dist/chunks/{skills-VSVXQTY3.js → skills-XAONTP56.js} +28 -25
  250. package/dist/chunks/skills-XAONTP56.js.map +6 -0
  251. package/dist/chunks/{start-check-MZGEYSQD.js → start-check-A5FG7224.js} +2 -2
  252. package/dist/chunks/{startup-failure-QS7O3M62.js → startup-failure-6MZNIJXI.js} +2 -2
  253. package/dist/chunks/{state-IRA33PLY.js → state-MVYWWBAA.js} +556 -26
  254. package/dist/chunks/state-MVYWWBAA.js.map +6 -0
  255. package/dist/chunks/{store-N4CURUP2.js → store-4PPSKMYT.js} +3 -3
  256. package/dist/chunks/{store-5QOUJL3S.js → store-5K5HIPUT.js} +12 -13
  257. package/dist/chunks/{store-LIG46NWV.js → store-6WG6CRWK.js} +4 -4
  258. package/dist/chunks/{store-VRWL26C2.js → store-UPAOLS5B.js} +8 -8
  259. package/dist/chunks/{tui-KFWUIY7N.js → tui-MRMMX2TV.js} +99 -87
  260. package/dist/chunks/tui-MRMMX2TV.js.map +6 -0
  261. package/dist/chunks/{upgrade-BIHZ3JJV.js → update-RMHLR4LI.js} +35 -35
  262. package/dist/chunks/{upgrade-BIHZ3JJV.js.map → update-RMHLR4LI.js.map} +2 -2
  263. package/dist/chunks/{watch-OUI2U5YK.js → watch-3QQJ4XHX.js} +93 -89
  264. package/dist/chunks/watch-3QQJ4XHX.js.map +6 -0
  265. package/dist/chunks/{workspaces-CB5DV4KR.js → workspaces-HEA2VNIH.js} +15 -20
  266. package/dist/chunks/workspaces-HEA2VNIH.js.map +6 -0
  267. package/dist/chunks/{worktree-PNG7MZV3.js → worktree-NAVT42R4.js} +26 -23
  268. package/dist/chunks/worktree-NAVT42R4.js.map +6 -0
  269. package/dist/cli-runtime.d.ts +3 -1
  270. package/dist/cli-runtime.d.ts.map +1 -1
  271. package/dist/cli.d.ts +15 -0
  272. package/dist/cli.d.ts.map +1 -1
  273. package/dist/commands/acp-browser-pane.d.ts +81 -0
  274. package/dist/commands/acp-browser-pane.d.ts.map +1 -0
  275. package/dist/commands/acp-provider-retry.d.ts +2 -1
  276. package/dist/commands/acp-provider-retry.d.ts.map +1 -1
  277. package/dist/commands/acp.d.ts +18 -1
  278. package/dist/commands/acp.d.ts.map +1 -1
  279. package/dist/commands/action-help.d.ts +37 -0
  280. package/dist/commands/action-help.d.ts.map +1 -0
  281. package/dist/commands/actions/auth.d.ts +3 -0
  282. package/dist/commands/actions/auth.d.ts.map +1 -0
  283. package/dist/commands/actions/browser.d.ts +3 -0
  284. package/dist/commands/actions/browser.d.ts.map +1 -0
  285. package/dist/commands/actions/extension.d.ts +3 -0
  286. package/dist/commands/actions/extension.d.ts.map +1 -0
  287. package/dist/commands/actions/mcp.d.ts +3 -0
  288. package/dist/commands/actions/mcp.d.ts.map +1 -0
  289. package/dist/commands/actions/pal.d.ts +3 -0
  290. package/dist/commands/actions/pal.d.ts.map +1 -0
  291. package/dist/commands/actions/peers.d.ts +3 -0
  292. package/dist/commands/actions/peers.d.ts.map +1 -0
  293. package/dist/commands/actions/schedule.d.ts +3 -0
  294. package/dist/commands/actions/schedule.d.ts.map +1 -0
  295. package/dist/commands/actions/small.d.ts +11 -0
  296. package/dist/commands/actions/small.d.ts.map +1 -0
  297. package/dist/commands/archive.d.ts.map +1 -1
  298. package/dist/commands/auth-status.d.ts +24 -0
  299. package/dist/commands/auth-status.d.ts.map +1 -0
  300. package/dist/commands/auth.d.ts +9 -0
  301. package/dist/commands/auth.d.ts.map +1 -0
  302. package/dist/commands/browser.d.ts.map +1 -1
  303. package/dist/commands/computer.d.ts.map +1 -1
  304. package/dist/commands/config.d.ts.map +1 -1
  305. package/dist/commands/desktop-host.d.ts +3 -3
  306. package/dist/commands/desktop-host.d.ts.map +1 -1
  307. package/dist/commands/exec-flags.d.ts +17 -3
  308. package/dist/commands/exec-flags.d.ts.map +1 -1
  309. package/dist/commands/exec-json.d.ts.map +1 -1
  310. package/dist/commands/exec.d.ts.map +1 -1
  311. package/dist/commands/extension.d.ts.map +1 -1
  312. package/dist/commands/github.d.ts.map +1 -1
  313. package/dist/commands/launch-extras.d.ts +48 -0
  314. package/dist/commands/launch-extras.d.ts.map +1 -0
  315. package/dist/commands/lazy.d.ts +3 -3
  316. package/dist/commands/lazy.d.ts.map +1 -1
  317. package/dist/commands/login.d.ts +1 -1
  318. package/dist/commands/manifest.d.ts +3 -4
  319. package/dist/commands/manifest.d.ts.map +1 -1
  320. package/dist/commands/mcp-serve.d.ts +16 -0
  321. package/dist/commands/mcp-serve.d.ts.map +1 -0
  322. package/dist/commands/mcp.d.ts.map +1 -1
  323. package/dist/commands/pal.d.ts.map +1 -1
  324. package/dist/commands/peers.d.ts.map +1 -1
  325. package/dist/commands/plugin.d.ts.map +1 -1
  326. package/dist/commands/providers.d.ts.map +1 -1
  327. package/dist/commands/registry.d.ts.map +1 -1
  328. package/dist/commands/run-flags.d.ts +10 -2
  329. package/dist/commands/run-flags.d.ts.map +1 -1
  330. package/dist/commands/schedule.d.ts.map +1 -1
  331. package/dist/commands/skills.d.ts.map +1 -1
  332. package/dist/commands/state.d.ts +11 -0
  333. package/dist/commands/state.d.ts.map +1 -1
  334. package/dist/commands/types.d.ts +9 -2
  335. package/dist/commands/types.d.ts.map +1 -1
  336. package/dist/commands/{upgrade-progress.d.ts → update-progress.d.ts} +3 -3
  337. package/dist/commands/update-progress.d.ts.map +1 -0
  338. package/dist/commands/{upgrade.d.ts → update.d.ts} +9 -9
  339. package/dist/commands/update.d.ts.map +1 -0
  340. package/dist/commands/workspaces.d.ts +1 -1
  341. package/dist/commands/workspaces.d.ts.map +1 -1
  342. package/dist/commands/worktree.d.ts.map +1 -1
  343. package/dist/computer/run.d.ts.map +1 -1
  344. package/dist/config/debug.d.ts.map +1 -1
  345. package/dist/config/hooks-report.d.ts +3 -1
  346. package/dist/config/hooks-report.d.ts.map +1 -1
  347. package/dist/config/load.d.ts +37 -0
  348. package/dist/config/load.d.ts.map +1 -1
  349. package/dist/config/schema.d.ts +2 -2
  350. package/dist/context/doctrine.d.ts.map +1 -1
  351. package/dist/context/environment.d.ts +6 -0
  352. package/dist/context/environment.d.ts.map +1 -1
  353. package/dist/context/file-placement.d.ts.map +1 -1
  354. package/dist/context/project-tracker.d.ts +3 -0
  355. package/dist/context/project-tracker.d.ts.map +1 -1
  356. package/dist/context/system-prompt.d.ts +6 -0
  357. package/dist/context/system-prompt.d.ts.map +1 -1
  358. package/dist/index.js +39 -39
  359. package/dist/integrations/auto-update/apply.d.ts +1 -1
  360. package/dist/integrations/auto-update/apply.d.ts.map +1 -1
  361. package/dist/integrations/auto-update/policy.d.ts +1 -1
  362. package/dist/integrations/auto-update/policy.d.ts.map +1 -1
  363. package/dist/integrations/auto-update/state.d.ts +1 -1
  364. package/dist/integrations/auto-update/state.d.ts.map +1 -1
  365. package/dist/integrations/mcp/project-file.d.ts +16 -0
  366. package/dist/integrations/mcp/project-file.d.ts.map +1 -0
  367. package/dist/integrations/mcp/serve.d.ts +55 -0
  368. package/dist/integrations/mcp/serve.d.ts.map +1 -0
  369. package/dist/integrations/mcp/servers.d.ts +6 -0
  370. package/dist/integrations/mcp/servers.d.ts.map +1 -1
  371. package/dist/integrations/mcp/shared-file.d.ts +2 -1
  372. package/dist/integrations/mcp/shared-file.d.ts.map +1 -1
  373. package/dist/integrations/network/controller.d.ts.map +1 -1
  374. package/dist/integrations/network/format.d.ts.map +1 -1
  375. package/dist/integrations/network/runtime.d.ts +7 -0
  376. package/dist/integrations/network/runtime.d.ts.map +1 -1
  377. package/dist/integrations/network/types.d.ts +2 -0
  378. package/dist/integrations/network/types.d.ts.map +1 -1
  379. package/dist/integrations/npm-global.d.ts +2 -2
  380. package/dist/integrations/npm-global.d.ts.map +1 -1
  381. package/dist/integrations/outstanding/status.d.ts +4 -0
  382. package/dist/integrations/outstanding/status.d.ts.map +1 -1
  383. package/dist/integrations/providers/connections.d.ts +1 -1
  384. package/dist/integrations/providers/connections.d.ts.map +1 -1
  385. package/dist/integrations/providers/pending-login.d.ts +1 -1
  386. package/dist/integrations/providers/subscription-login.d.ts +1 -1
  387. package/dist/integrations/sessions/session-watch.d.ts +8 -1
  388. package/dist/integrations/sessions/session-watch.d.ts.map +1 -1
  389. package/dist/integrations/state/purge.d.ts +66 -0
  390. package/dist/integrations/state/purge.d.ts.map +1 -0
  391. package/dist/integrations/subagents/activity.d.ts +1 -1
  392. package/dist/integrations/subagents/agent-names.d.ts +1 -1
  393. package/dist/integrations/subagents/row-labels.d.ts +18 -0
  394. package/dist/integrations/subagents/row-labels.d.ts.map +1 -0
  395. package/dist/integrations/subagents/runtime.d.ts +8 -1
  396. package/dist/integrations/subagents/runtime.d.ts.map +1 -1
  397. package/dist/integrations/subagents/stop-guidance.d.ts +14 -0
  398. package/dist/integrations/subagents/stop-guidance.d.ts.map +1 -0
  399. package/dist/integrations/web/open-url.d.ts +1 -1
  400. package/dist/integrations/web/search.d.ts +1 -1
  401. package/dist/integrations/workflows/host.d.ts.map +1 -1
  402. package/dist/integrations/workflows/notice.d.ts +9 -0
  403. package/dist/integrations/workflows/notice.d.ts.map +1 -1
  404. package/dist/integrations/workflows/offering.d.ts +3 -2
  405. package/dist/integrations/workflows/offering.d.ts.map +1 -1
  406. package/dist/integrations/workflows/orphans.d.ts +17 -0
  407. package/dist/integrations/workflows/orphans.d.ts.map +1 -1
  408. package/dist/integrations/workflows/owners.d.ts +17 -0
  409. package/dist/integrations/workflows/owners.d.ts.map +1 -0
  410. package/dist/integrations/workflows/registry.d.ts +17 -2
  411. package/dist/integrations/workflows/registry.d.ts.map +1 -1
  412. package/dist/logging.d.ts +10 -1
  413. package/dist/logging.d.ts.map +1 -1
  414. package/dist/memory/screen-archive.d.ts +2 -0
  415. package/dist/memory/screen-archive.d.ts.map +1 -1
  416. package/dist/permissions/auto-classifier.d.ts.map +1 -1
  417. package/dist/permissions/launch.d.ts +1 -1
  418. package/dist/permissions/mode.d.ts +2 -2
  419. package/dist/permissions/path-rules.d.ts.map +1 -1
  420. package/dist/permissions/rules.d.ts +2 -0
  421. package/dist/permissions/rules.d.ts.map +1 -1
  422. package/dist/permissions/tool-flags.d.ts +5 -1
  423. package/dist/permissions/tool-flags.d.ts.map +1 -1
  424. package/dist/reminders/changed-files.d.ts.map +1 -1
  425. package/dist/reminders/frame.d.ts +1 -1
  426. package/dist/reminders/frame.d.ts.map +1 -1
  427. package/dist/reminders/hypermode.d.ts.map +1 -1
  428. package/dist/reminders/index.d.ts +3 -0
  429. package/dist/reminders/index.d.ts.map +1 -1
  430. package/dist/reminders/memory-nudge.d.ts +20 -0
  431. package/dist/reminders/memory-nudge.d.ts.map +1 -0
  432. package/dist/schedule/commands/add.d.ts.map +1 -1
  433. package/dist/schedule/fire/fire.d.ts +1 -1
  434. package/dist/schedule/fire/fire.d.ts.map +1 -1
  435. package/dist/tui/AgentExplorer.d.ts +9 -21
  436. package/dist/tui/AgentExplorer.d.ts.map +1 -1
  437. package/dist/tui/App.d.ts.map +1 -1
  438. package/dist/tui/Composer.d.ts +1 -7
  439. package/dist/tui/Composer.d.ts.map +1 -1
  440. package/dist/tui/PendingInputPanel.d.ts +2 -0
  441. package/dist/tui/PendingInputPanel.d.ts.map +1 -1
  442. package/dist/tui/StatusBar.d.ts +8 -1
  443. package/dist/tui/StatusBar.d.ts.map +1 -1
  444. package/dist/tui/agent-calls.d.ts.map +1 -1
  445. package/dist/tui/agent.d.ts +54 -6
  446. package/dist/tui/agent.d.ts.map +1 -1
  447. package/dist/tui/context-grid.d.ts +5 -0
  448. package/dist/tui/context-grid.d.ts.map +1 -1
  449. package/dist/tui/fullscreen/FullscreenTranscript.d.ts +3 -2
  450. package/dist/tui/fullscreen/FullscreenTranscript.d.ts.map +1 -1
  451. package/dist/tui/keypad-keys.d.ts +1 -1
  452. package/dist/tui/keypad-keys.d.ts.map +1 -1
  453. package/dist/tui/launch-settings.d.ts +2 -0
  454. package/dist/tui/launch-settings.d.ts.map +1 -1
  455. package/dist/tui/login-prompt.d.ts +1 -1
  456. package/dist/tui/notice-display.d.ts +8 -0
  457. package/dist/tui/notice-display.d.ts.map +1 -0
  458. package/dist/tui/outcome-line.d.ts.map +1 -1
  459. package/dist/tui/slashCommands.d.ts.map +1 -1
  460. package/dist/tui/stopped-turn-line.d.ts +22 -0
  461. package/dist/tui/stopped-turn-line.d.ts.map +1 -0
  462. package/dist/tui/tidy-tool-output.d.ts.map +1 -1
  463. package/dist/tui/tool-presentation.d.ts +2 -0
  464. package/dist/tui/tool-presentation.d.ts.map +1 -1
  465. package/dist/tui/types.d.ts +7 -1
  466. package/dist/tui/types.d.ts.map +1 -1
  467. package/dist/tui/untrusted-display.d.ts +12 -0
  468. package/dist/tui/untrusted-display.d.ts.map +1 -0
  469. package/dist/tui/web-activity.d.ts +4 -2
  470. package/dist/tui/web-activity.d.ts.map +1 -1
  471. package/dist/usage-error.d.ts.map +1 -1
  472. package/package.json +7 -7
  473. package/skills/document/SKILL.md +22 -11
  474. package/skills/verify-change/SKILL.md +2 -1
  475. package/dist/chunks/acp-DEH76VXL.js.map +0 -6
  476. package/dist/chunks/activity-command-GETWRD67.js.map +0 -6
  477. package/dist/chunks/add-XFYJ6UZE.js.map +0 -6
  478. package/dist/chunks/agent-session-2YJCVWPX.js +0 -87
  479. package/dist/chunks/archive-PA5MDKXC.js.map +0 -6
  480. package/dist/chunks/browser-ZMNLA73K.js +0 -31
  481. package/dist/chunks/browser-ZMNLA73K.js.map +0 -6
  482. package/dist/chunks/chat-UNZSJZ6U.js.map +0 -6
  483. package/dist/chunks/chunk-2JFRYOBC.js.map +0 -6
  484. package/dist/chunks/chunk-2P2PDEZJ.js.map +0 -6
  485. package/dist/chunks/chunk-3ZHOM2L7.js.map +0 -6
  486. package/dist/chunks/chunk-4DNEDLBT.js.map +0 -6
  487. package/dist/chunks/chunk-6CI5CHBT.js.map +0 -6
  488. package/dist/chunks/chunk-6IWJ6JC6.js.map +0 -6
  489. package/dist/chunks/chunk-6MQHDX7R.js.map +0 -6
  490. package/dist/chunks/chunk-6TF24TFD.js.map +0 -6
  491. package/dist/chunks/chunk-AZXIYYVX.js.map +0 -6
  492. package/dist/chunks/chunk-BFYETM56.js.map +0 -6
  493. package/dist/chunks/chunk-BJQ7WFWL.js.map +0 -6
  494. package/dist/chunks/chunk-C7ZKC7HY.js.map +0 -6
  495. package/dist/chunks/chunk-CPDGXVVE.js +0 -94
  496. package/dist/chunks/chunk-CPDGXVVE.js.map +0 -6
  497. package/dist/chunks/chunk-DMHE6X3Y.js.map +0 -6
  498. package/dist/chunks/chunk-JCH7IWMU.js.map +0 -6
  499. package/dist/chunks/chunk-MY6JV4BT.js.map +0 -6
  500. package/dist/chunks/chunk-PPCKNQOQ.js.map +0 -6
  501. package/dist/chunks/chunk-XF243FQN.js.map +0 -6
  502. package/dist/chunks/chunk-ZR3VZG37.js.map +0 -6
  503. package/dist/chunks/cli-runtime-66YC7XKZ.js.map +0 -6
  504. package/dist/chunks/computer-FQRWTC6M.js.map +0 -6
  505. package/dist/chunks/config-BWAJ7XDA.js.map +0 -6
  506. package/dist/chunks/dist-NUCTP67R.js.map +0 -6
  507. package/dist/chunks/exec-QOH5FQCM.js.map +0 -6
  508. package/dist/chunks/github-X352BD5R.js.map +0 -6
  509. package/dist/chunks/host-queries-YTND6J2W.js +0 -38
  510. package/dist/chunks/login-KN5KQXOD.js +0 -38
  511. package/dist/chunks/mcp-HP3YRE3U.js.map +0 -6
  512. package/dist/chunks/message-command-IFQSBBI5.js.map +0 -6
  513. package/dist/chunks/operator-tools-HT7UNWNK.js.map +0 -6
  514. package/dist/chunks/pal-6KB3D324.js.map +0 -6
  515. package/dist/chunks/peers-4M45XTZO.js.map +0 -6
  516. package/dist/chunks/plugin-FIVP6MGJ.js.map +0 -6
  517. package/dist/chunks/providers-6634CTX7.js.map +0 -6
  518. package/dist/chunks/resume-OEUL3DML.js +0 -26
  519. package/dist/chunks/schedule-54POTO5A.js.map +0 -6
  520. package/dist/chunks/send-person-YV7Y3N7V.js +0 -31
  521. package/dist/chunks/service-Y5N7WIHV.js.map +0 -6
  522. package/dist/chunks/skills-VSVXQTY3.js.map +0 -6
  523. package/dist/chunks/state-IRA33PLY.js.map +0 -6
  524. package/dist/chunks/store-VRWL26C2.js.map +0 -6
  525. package/dist/chunks/tui-KFWUIY7N.js.map +0 -6
  526. package/dist/chunks/watch-OUI2U5YK.js.map +0 -6
  527. package/dist/chunks/workspaces-CB5DV4KR.js.map +0 -6
  528. package/dist/chunks/worktree-PNG7MZV3.js.map +0 -6
  529. package/dist/commands/upgrade-progress.d.ts.map +0 -1
  530. package/dist/commands/upgrade.d.ts.map +0 -1
  531. /package/dist/chunks/{agent-FW4VC2AF.js.map → agent-MSSMOEBP.js.map} +0 -0
  532. /package/dist/chunks/{agent-session-2YJCVWPX.js.map → agent-session-VCB6HX3E.js.map} +0 -0
  533. /package/dist/chunks/{bin-main-RH4NLAPK.js.map → bin-main-2E6XD7MQ.js.map} +0 -0
  534. /package/dist/chunks/{binding-ON644UJ3.js.map → binding-NAPEU62B.js.map} +0 -0
  535. /package/dist/chunks/{chunk-S7YXINNY.js.map → chunk-27ICMJVV.js.map} +0 -0
  536. /package/dist/chunks/{chunk-NP4BQ7SB.js.map → chunk-2D5WW5KP.js.map} +0 -0
  537. /package/dist/chunks/{chunk-D5N3SDNF.js.map → chunk-2J2Z6S3V.js.map} +0 -0
  538. /package/dist/chunks/{chunk-Z6LUWKV4.js.map → chunk-2PRVGX6U.js.map} +0 -0
  539. /package/dist/chunks/{chunk-2ZPB4ZBP.js.map → chunk-32CPPPKX.js.map} +0 -0
  540. /package/dist/chunks/{chunk-6MGRBXCW.js.map → chunk-3SBROSVS.js.map} +0 -0
  541. /package/dist/chunks/{chunk-LGVEASS7.js.map → chunk-3ZL6YBMT.js.map} +0 -0
  542. /package/dist/chunks/{chunk-RYLQH5BB.js.map → chunk-4RCXY7WO.js.map} +0 -0
  543. /package/dist/chunks/{chunk-ICIVSMA3.js.map → chunk-4YQJ262B.js.map} +0 -0
  544. /package/dist/chunks/{chunk-DOLGKZC5.js.map → chunk-52DZTN4C.js.map} +0 -0
  545. /package/dist/chunks/{chunk-LXK7S2I2.js.map → chunk-5COLG33E.js.map} +0 -0
  546. /package/dist/chunks/{chunk-N4YYJGMW.js.map → chunk-5GI7W4SM.js.map} +0 -0
  547. /package/dist/chunks/{chunk-M4XYHIA3.js.map → chunk-5NIQMCRF.js.map} +0 -0
  548. /package/dist/chunks/{chunk-QTQIHFYH.js.map → chunk-5WS5Q2KW.js.map} +0 -0
  549. /package/dist/chunks/{chunk-SKFBM6OJ.js.map → chunk-66DFXMZG.js.map} +0 -0
  550. /package/dist/chunks/{chunk-DRKCWJPR.js.map → chunk-6MMKNZYL.js.map} +0 -0
  551. /package/dist/chunks/{chunk-SHFB4DZP.js.map → chunk-6QQVZXUE.js.map} +0 -0
  552. /package/dist/chunks/{chunk-GVWDNFIP.js.map → chunk-6RBEIDSC.js.map} +0 -0
  553. /package/dist/chunks/{chunk-W6UOMYDX.js.map → chunk-6V4VYVRZ.js.map} +0 -0
  554. /package/dist/chunks/{chunk-5YTGRS7U.js.map → chunk-6ZWEKSAV.js.map} +0 -0
  555. /package/dist/chunks/{chunk-HIHHTWEU.js.map → chunk-7BSLOLTU.js.map} +0 -0
  556. /package/dist/chunks/{chunk-3HT7FQNG.js.map → chunk-7BXJPOEG.js.map} +0 -0
  557. /package/dist/chunks/{chunk-WCAKWRZU.js.map → chunk-7DERK6IR.js.map} +0 -0
  558. /package/dist/chunks/{chunk-4PFTZNS5.js.map → chunk-7EASTT3H.js.map} +0 -0
  559. /package/dist/chunks/{chunk-IZYYWNP2.js.map → chunk-7MYLYFIV.js.map} +0 -0
  560. /package/dist/chunks/{chunk-WDROVY6V.js.map → chunk-7NAHUZAR.js.map} +0 -0
  561. /package/dist/chunks/{chunk-LGPOJEZK.js.map → chunk-7NQLCFYX.js.map} +0 -0
  562. /package/dist/chunks/{chunk-6TCZN54R.js.map → chunk-A5O5VTQM.js.map} +0 -0
  563. /package/dist/chunks/{chunk-ABELB4VO.js.map → chunk-BATWKQWV.js.map} +0 -0
  564. /package/dist/chunks/{chunk-NOHH27YE.js.map → chunk-CK47DTW6.js.map} +0 -0
  565. /package/dist/chunks/{chunk-LWAGZIEA.js.map → chunk-CSO7BHDJ.js.map} +0 -0
  566. /package/dist/chunks/{chunk-GPP4OXHP.js.map → chunk-D42SQGEO.js.map} +0 -0
  567. /package/dist/chunks/{chunk-J6QCR3SC.js.map → chunk-DIBXZBOP.js.map} +0 -0
  568. /package/dist/chunks/{chunk-PI5ZZQVH.js.map → chunk-EFWF72V4.js.map} +0 -0
  569. /package/dist/chunks/{chunk-TBKSDYS4.js.map → chunk-ENNAZGUX.js.map} +0 -0
  570. /package/dist/chunks/{chunk-6E4TDPXP.js.map → chunk-EOLXS2ZV.js.map} +0 -0
  571. /package/dist/chunks/{chunk-AF2QPFEQ.js.map → chunk-F6NUMURW.js.map} +0 -0
  572. /package/dist/chunks/{chunk-OZ55WTNZ.js.map → chunk-FZPIEOFR.js.map} +0 -0
  573. /package/dist/chunks/{chunk-LDU7AFNZ.js.map → chunk-G7UGGWOR.js.map} +0 -0
  574. /package/dist/chunks/{chunk-5ZPCQ2HL.js.map → chunk-GLZJBFDO.js.map} +0 -0
  575. /package/dist/chunks/{chunk-PK7M7VIU.js.map → chunk-HBGRWJU5.js.map} +0 -0
  576. /package/dist/chunks/{chunk-ZDGKFGVE.js.map → chunk-HICZARAY.js.map} +0 -0
  577. /package/dist/chunks/{chunk-FSAI4GDZ.js.map → chunk-HONSYTUC.js.map} +0 -0
  578. /package/dist/chunks/{chunk-GWLUXO4O.js.map → chunk-I5BNXO63.js.map} +0 -0
  579. /package/dist/chunks/{chunk-BXAUUC2B.js.map → chunk-IH2JBJ6I.js.map} +0 -0
  580. /package/dist/chunks/{chunk-Y62WSR5N.js.map → chunk-J4GPHTRN.js.map} +0 -0
  581. /package/dist/chunks/{chunk-VV6DYTFU.js.map → chunk-JFA2XPTW.js.map} +0 -0
  582. /package/dist/chunks/{chunk-HEFLKPCT.js.map → chunk-JSY23B3Q.js.map} +0 -0
  583. /package/dist/chunks/{chunk-MMJ6UURB.js.map → chunk-JX6O7Y55.js.map} +0 -0
  584. /package/dist/chunks/{chunk-KUIATFLN.js.map → chunk-K5VLCRHY.js.map} +0 -0
  585. /package/dist/chunks/{chunk-RSO4LBHJ.js.map → chunk-KCBOIL5Q.js.map} +0 -0
  586. /package/dist/chunks/{chunk-7BF4FLOP.js.map → chunk-MJ32RCFZ.js.map} +0 -0
  587. /package/dist/chunks/{chunk-ZWP5L7BV.js.map → chunk-NBJ4OTXL.js.map} +0 -0
  588. /package/dist/chunks/{chunk-WSQAVWIV.js.map → chunk-NO3F3QQ3.js.map} +0 -0
  589. /package/dist/chunks/{chunk-MOMSIAV4.js.map → chunk-NQYOMRPT.js.map} +0 -0
  590. /package/dist/chunks/{chunk-IMXTM75Q.js.map → chunk-O6C4RETO.js.map} +0 -0
  591. /package/dist/chunks/{chunk-PYYDU2BC.js.map → chunk-O6EDUJ77.js.map} +0 -0
  592. /package/dist/chunks/{chunk-UILPXAKQ.js.map → chunk-OD2PMTXS.js.map} +0 -0
  593. /package/dist/chunks/{chunk-DROVNI2Y.js.map → chunk-OGEOUETU.js.map} +0 -0
  594. /package/dist/chunks/{chunk-77AYLILT.js.map → chunk-PYTTGYZS.js.map} +0 -0
  595. /package/dist/chunks/{chunk-PJF46DI6.js.map → chunk-RR7FS6SQ.js.map} +0 -0
  596. /package/dist/chunks/{chunk-233CEYFX.js.map → chunk-RTMX7IDM.js.map} +0 -0
  597. /package/dist/chunks/{chunk-4E2REC5O.js.map → chunk-S4OEUN6F.js.map} +0 -0
  598. /package/dist/chunks/{chunk-763RT6Z5.js.map → chunk-SEVORRUA.js.map} +0 -0
  599. /package/dist/chunks/{chunk-JDWCVWIQ.js.map → chunk-TAIC3PC2.js.map} +0 -0
  600. /package/dist/chunks/{chunk-SM6UI33D.js.map → chunk-TGLXWW5B.js.map} +0 -0
  601. /package/dist/chunks/{chunk-CKYGPQVJ.js.map → chunk-TJAUF5NX.js.map} +0 -0
  602. /package/dist/chunks/{chunk-DT6PTS6H.js.map → chunk-TSU4F6DF.js.map} +0 -0
  603. /package/dist/chunks/{chunk-6BTNPDXR.js.map → chunk-TXMWKHYW.js.map} +0 -0
  604. /package/dist/chunks/{chunk-HENM67TJ.js.map → chunk-UBGDYBSQ.js.map} +0 -0
  605. /package/dist/chunks/{chunk-FEP2R3XI.js.map → chunk-ULFR2FWA.js.map} +0 -0
  606. /package/dist/chunks/{chunk-DGV6YSAW.js.map → chunk-UMPJ4VXN.js.map} +0 -0
  607. /package/dist/chunks/{chunk-M5LA652U.js.map → chunk-URZPVSHV.js.map} +0 -0
  608. /package/dist/chunks/{chunk-5C6XCI24.js.map → chunk-UXLQNJDR.js.map} +0 -0
  609. /package/dist/chunks/{chunk-3Z5OXTDI.js.map → chunk-WEPINZBQ.js.map} +0 -0
  610. /package/dist/chunks/{chunk-NV7RJBWA.js.map → chunk-XWP64X6U.js.map} +0 -0
  611. /package/dist/chunks/{chunk-RP5HOVOW.js.map → chunk-Y3NC6RIL.js.map} +0 -0
  612. /package/dist/chunks/{commands-R6WIMNZG.js.map → commands-VWBRELWZ.js.map} +0 -0
  613. /package/dist/chunks/{cost-MVUQ3UWP.js.map → cost-IVLAFD5T.js.map} +0 -0
  614. /package/dist/chunks/{crash-report-ASOVDFQT.js.map → crash-report-CA3Y7LA6.js.map} +0 -0
  615. /package/dist/chunks/{dist-UTQTSM32.js.map → dist-3SGAVJFN.js.map} +0 -0
  616. /package/dist/chunks/{dist-6BE2BTVP.js.map → dist-7BSYEFE5.js.map} +0 -0
  617. /package/dist/chunks/{dist-ZPPSUKEG.js.map → dist-AM6FWCIJ.js.map} +0 -0
  618. /package/dist/chunks/{dist-IYSARJ7B.js.map → dist-ISRJEZRF.js.map} +0 -0
  619. /package/dist/chunks/{dist-ERFNYYTR.js.map → dist-PBFZXU4L.js.map} +0 -0
  620. /package/dist/chunks/{dist-DOHBDUFC.js.map → dist-RDXEBTCL.js.map} +0 -0
  621. /package/dist/chunks/{dist-SQYPEQ4A.js.map → dist-V43PPTPF.js.map} +0 -0
  622. /package/dist/chunks/{doctor-J2BRJDVI.js.map → doctor-FGOCO7UR.js.map} +0 -0
  623. /package/dist/chunks/{drain-TGBUG6MO.js.map → drain-A3DLR5A4.js.map} +0 -0
  624. /package/dist/chunks/{entry-7QM6GODJ.js.map → entry-4LHTI3VQ.js.map} +0 -0
  625. /package/dist/chunks/{extension-Y52E4FZR.js.map → extension-BP7Q3PFK.js.map} +0 -0
  626. /package/dist/chunks/{home-OGOBLYWY.js.map → home-GR6YDAAE.js.map} +0 -0
  627. /package/dist/chunks/{hooks-C6WM34FA.js.map → hooks-KSSNBDF2.js.map} +0 -0
  628. /package/dist/chunks/{hooks-report-FCLN3ERK.js.map → hooks-report-H4JAHJXE.js.map} +0 -0
  629. /package/dist/chunks/{host-FUPSAICG.js.map → host-ISKJDJ7B.js.map} +0 -0
  630. /package/dist/chunks/{host-queries-YTND6J2W.js.map → host-queries-CUG75GYD.js.map} +0 -0
  631. /package/dist/chunks/{installed-list-3Z2UYHZL.js.map → installed-list-GPVOP4E3.js.map} +0 -0
  632. /package/dist/chunks/{learn-EXNQYLI3.js.map → learn-AFNJQGOU.js.map} +0 -0
  633. /package/dist/chunks/{learn-builtin-C4ZAVNHA.js.map → learn-builtin-LUD6XO6W.js.map} +0 -0
  634. /package/dist/chunks/{lifecycle-4ZRBSEP2.js.map → lifecycle-TCRMEVJP.js.map} +0 -0
  635. /package/dist/chunks/{list-2QV773EI.js.map → list-4OJNF5N2.js.map} +0 -0
  636. /package/dist/chunks/{live-33QEKVAM.js.map → live-LJ76XHPK.js.map} +0 -0
  637. /package/dist/chunks/{load-SYMNQIDR.js.map → load-2ERMTCD4.js.map} +0 -0
  638. /package/dist/chunks/{logs-IW7PYTI2.js.map → logs-DV6GC7PT.js.map} +0 -0
  639. /package/dist/chunks/{login-KN5KQXOD.js.map → open-3VUS3XWX.js.map} +0 -0
  640. /package/dist/chunks/{open-3GVSPGUF.js.map → output-schema-2GHHC5ZZ.js.map} +0 -0
  641. /package/dist/chunks/{output-schema-MKFI5PWR.js.map → peers-SLFOET3O.js.map} +0 -0
  642. /package/dist/chunks/{peers-CGTVWK6B.js.map → providers-SOFGNZ4F.js.map} +0 -0
  643. /package/dist/chunks/{providers-Z3KLRJDW.js.map → pty-3T7AE7ZA.js.map} +0 -0
  644. /package/dist/chunks/{pty-GMA24QAT.js.map → resume-5JACRBQO.js.map} +0 -0
  645. /package/dist/chunks/{resume-OEUL3DML.js.map → resume-command-H4FOREZO.js.map} +0 -0
  646. /package/dist/chunks/{resume-command-MXUIVG6T.js.map → running-NONPWC5C.js.map} +0 -0
  647. /package/dist/chunks/{running-HYMQGZMF.js.map → send-H27WTBLZ.js.map} +0 -0
  648. /package/dist/chunks/{send-IFZ7XPTF.js.map → send-person-NNGL2U4H.js.map} +0 -0
  649. /package/dist/chunks/{serve-CZDHGDZL.js.map → serve-4VIDXLEB.js.map} +0 -0
  650. /package/dist/chunks/{send-person-YV7Y3N7V.js.map → setting-cli-ETVPDSRA.js.map} +0 -0
  651. /package/dist/chunks/{setting-cli-CJMZHIMQ.js.map → start-check-A5FG7224.js.map} +0 -0
  652. /package/dist/chunks/{startup-failure-QS7O3M62.js.map → startup-failure-6MZNIJXI.js.map} +0 -0
  653. /package/dist/chunks/{start-check-MZGEYSQD.js.map → store-4PPSKMYT.js.map} +0 -0
  654. /package/dist/chunks/{store-5QOUJL3S.js.map → store-5K5HIPUT.js.map} +0 -0
  655. /package/dist/chunks/{store-LIG46NWV.js.map → store-6WG6CRWK.js.map} +0 -0
  656. /package/dist/chunks/{store-N4CURUP2.js.map → store-UPAOLS5B.js.map} +0 -0
@@ -43,6 +43,81 @@ import {
43
43
  __name
44
44
  } from "./chunk-76FLAFCG.js";
45
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
+
46
121
  // src/commands/lazy.ts
47
122
  function lazyCommand(meta, load) {
48
123
  let loaded;
@@ -75,13 +150,18 @@ __name(registerCommand, "registerCommand");
75
150
  function registerCommandOrLazy(program, def, opts) {
76
151
  const resolve2 = /* @__PURE__ */ __name(async () => isLazyCommand(def) ? def.load() : def, "resolve");
77
152
  const cmd = program.command(def.name).description(def.description);
78
- if (def.aliases) cmd.aliases([...def.aliases]);
79
153
  if (def.passThrough) {
80
154
  cmd.helpOption(false).allowUnknownOption(true).passThroughOptions(true).argument("[args...]").action(async (args) => {
81
155
  const rawArgs = args ?? [];
82
156
  const real = await resolve2();
83
- if (real.help !== void 0 && rawArgs.some((a) => a === "--help" || a === "-h")) {
84
- opts.getContext().formatter.print({ text: real.help });
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 });
85
165
  opts.setExitCode(0);
86
166
  return;
87
167
  }
@@ -149,7 +229,7 @@ function formatUsageError(text, columns) {
149
229
  if (index === 0 && !/[.!?:]$/.test(sentence)) sentence = `${sentence}.`;
150
230
  return sentence;
151
231
  });
152
- 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);
153
233
  const body = (points ? lines : [...lines, HELP_POINTER]).flatMap(
154
234
  (line) => wrapAtWords(line, width)
155
235
  );
@@ -165,7 +245,7 @@ var acpCommand = lazyCommand(
165
245
  description: "Speak the agent-client protocol over this process\u2019s stdio",
166
246
  passThrough: true
167
247
  },
168
- async () => (await import("./acp-DEH76VXL.js")).acpCommand
248
+ async () => (await import("./acp-OZG7H75P.js")).acpCommand
169
249
  );
170
250
  var computerCommand = lazyCommand(
171
251
  {
@@ -173,17 +253,15 @@ var computerCommand = lazyCommand(
173
253
  description: "Check and set up the computer Pals run on (Windows)",
174
254
  passThrough: true
175
255
  },
176
- async () => (await import("./computer-FQRWTC6M.js")).computerCommand
256
+ async () => (await import("./computer-6P3GAOV2.js")).computerCommand
177
257
  );
178
258
  var workspacesCommand = lazyCommand(
179
259
  {
180
260
  name: "workspaces",
181
- // The name from before the rename; deprecated, removed in the next major.
182
- aliases: ["spaces"],
183
261
  description: "Run Namzu sessions side by side in one terminal (preview)",
184
262
  passThrough: true
185
263
  },
186
- async () => (await import("./workspaces-CB5DV4KR.js")).workspacesCommand
264
+ async () => (await import("./workspaces-HEA2VNIH.js")).workspacesCommand
187
265
  );
188
266
  var archiveCommand = lazyCommand(
189
267
  {
@@ -191,7 +269,7 @@ var archiveCommand = lazyCommand(
191
269
  description: "List or restore archived conversations in this project",
192
270
  passThrough: true
193
271
  },
194
- async () => (await import("./archive-PA5MDKXC.js")).archiveCommand
272
+ async () => (await import("./archive-UMNSALTJ.js")).archiveCommand
195
273
  );
196
274
  var costCommand = lazyCommand(
197
275
  {
@@ -199,7 +277,7 @@ var costCommand = lazyCommand(
199
277
  description: "Show spend across conversations by day and model, from the session logs",
200
278
  passThrough: true
201
279
  },
202
- async () => (await import("./cost-MVUQ3UWP.js")).costCommand
280
+ async () => (await import("./cost-IVLAFD5T.js")).costCommand
203
281
  );
204
282
  var peersCommand = lazyCommand(
205
283
  {
@@ -207,7 +285,7 @@ var peersCommand = lazyCommand(
207
285
  description: "List and message live terminals, and manage your Namzu network of machines",
208
286
  passThrough: true
209
287
  },
210
- async () => (await import("./peers-4M45XTZO.js")).peersCommand
288
+ async () => (await import("./peers-SJFCJTA6.js")).peersCommand
211
289
  );
212
290
  var watchCommand = lazyCommand(
213
291
  {
@@ -215,7 +293,7 @@ var watchCommand = lazyCommand(
215
293
  description: "Follow a running or finished session from another terminal, read-only",
216
294
  passThrough: true
217
295
  },
218
- async () => (await import("./watch-OUI2U5YK.js")).watchCommand
296
+ async () => (await import("./watch-3QQJ4XHX.js")).watchCommand
219
297
  );
220
298
  var sendCommand = lazyCommand(
221
299
  {
@@ -223,7 +301,7 @@ var sendCommand = lazyCommand(
223
301
  description: "Say something to a running session from another terminal",
224
302
  passThrough: true
225
303
  },
226
- async () => (await import("./send-IFZ7XPTF.js")).sendCommand
304
+ async () => (await import("./send-H27WTBLZ.js")).sendCommand
227
305
  );
228
306
  var doctorCommand = lazyCommand(
229
307
  {
@@ -231,16 +309,15 @@ var doctorCommand = lazyCommand(
231
309
  description: "Run health checks against the local Namzu environment",
232
310
  passThrough: true
233
311
  },
234
- async () => (await import("./doctor-J2BRJDVI.js")).doctorCommand
312
+ async () => (await import("./doctor-FGOCO7UR.js")).doctorCommand
235
313
  );
236
314
  var execCommand = lazyCommand(
237
315
  {
238
316
  name: "exec",
239
- aliases: ["e"],
240
317
  description: "Run a single prompt headlessly: print the reply, or stream events with --json",
241
318
  passThrough: true
242
319
  },
243
- async () => (await import("./exec-QOH5FQCM.js")).execCommand
320
+ async () => (await import("./exec-HWK44ZYI.js")).execCommand
244
321
  );
245
322
  var learnCommand = lazyCommand(
246
323
  {
@@ -248,7 +325,7 @@ var learnCommand = lazyCommand(
248
325
  description: "Learn from what conversations kept, now; list or undo what was learned",
249
326
  passThrough: true
250
327
  },
251
- async () => (await import("./learn-EXNQYLI3.js")).learnCommand
328
+ async () => (await import("./learn-AFNJQGOU.js")).learnCommand
252
329
  );
253
330
  var learningCommand = lazyCommand(
254
331
  {
@@ -256,27 +333,19 @@ var learningCommand = lazyCommand(
256
333
  description: "Inspect learning experiments and the observations they start from",
257
334
  passThrough: true
258
335
  },
259
- async () => (await import("./learn-EXNQYLI3.js")).learningCommand
260
- );
261
- var loginCommand = lazyCommand(
262
- {
263
- name: "login",
264
- description: "Sign in with a provider subscription and store the credential.",
265
- passThrough: true
266
- },
267
- async () => (await import("./login-KN5KQXOD.js")).loginCommand
336
+ async () => (await import("./learn-AFNJQGOU.js")).learningCommand
268
337
  );
269
- var logoutCommand = lazyCommand(
338
+ var authCommand = lazyCommand(
270
339
  {
271
- name: "logout",
272
- description: "Remove a credential namzu stored on this machine.",
340
+ name: "auth",
341
+ description: "Sign in or out of a provider, and see which credentials are stored",
273
342
  passThrough: true
274
343
  },
275
- async () => (await import("./login-KN5KQXOD.js")).logoutCommand
344
+ async () => (await import("./auth-2NEDWCS7.js")).authCommand
276
345
  );
277
346
  var mcpCommand = lazyCommand(
278
347
  { name: "mcp", description: "Manage user tool servers", passThrough: true },
279
- async () => (await import("./mcp-HP3YRE3U.js")).mcpCommand
348
+ async () => (await import("./mcp-5VV24FGZ.js")).mcpCommand
280
349
  );
281
350
  var drainCommand = lazyCommand(
282
351
  {
@@ -284,11 +353,11 @@ var drainCommand = lazyCommand(
284
353
  description: "Continue a turn another process left behind (one pass, then exit)",
285
354
  passThrough: true
286
355
  },
287
- async () => (await import("./drain-TGBUG6MO.js")).drainCommand
356
+ async () => (await import("./drain-A3DLR5A4.js")).drainCommand
288
357
  );
289
358
  var evalCommand = lazyCommand(
290
359
  { name: "eval", description: "Run eval suites and set an exit code", passThrough: true },
291
- async () => (await import("./eval-274GGZ3M.js")).evalCommand
360
+ async () => (await import("./eval-IYWGGPWF.js")).evalCommand
292
361
  );
293
362
  var historyCommand = lazyCommand(
294
363
  {
@@ -296,7 +365,7 @@ var historyCommand = lazyCommand(
296
365
  description: "Print a session's persisted messages as JSON (for host UIs)",
297
366
  passThrough: true
298
367
  },
299
- async () => (await import("./host-queries-YTND6J2W.js")).historyCommand
368
+ async () => (await import("./host-queries-CUG75GYD.js")).historyCommand
300
369
  );
301
370
  var pluginCommand = lazyCommand(
302
371
  {
@@ -304,7 +373,7 @@ var pluginCommand = lazyCommand(
304
373
  description: "Check a plugin folder without running anything from it",
305
374
  passThrough: true
306
375
  },
307
- async () => (await import("./plugin-FIVP6MGJ.js")).pluginCommand
376
+ async () => (await import("./plugin-I35EQ4CC.js")).pluginCommand
308
377
  );
309
378
  var extensionCommand = lazyCommand(
310
379
  {
@@ -312,7 +381,7 @@ var extensionCommand = lazyCommand(
312
381
  description: "Add, read and control extensions: signed programs that list what they ask for",
313
382
  passThrough: true
314
383
  },
315
- async () => (await import("./extension-Y52E4FZR.js")).extensionCommand
384
+ async () => (await import("./extension-BP7Q3PFK.js")).extensionCommand
316
385
  );
317
386
  var hooksCommand = lazyCommand(
318
387
  {
@@ -320,7 +389,7 @@ var hooksCommand = lazyCommand(
320
389
  description: "Say what runs by itself in a folder: hooks, where from, and whether they are on",
321
390
  passThrough: true
322
391
  },
323
- async () => (await import("./hooks-C6WM34FA.js")).hooksCommand
392
+ async () => (await import("./hooks-KSSNBDF2.js")).hooksCommand
324
393
  );
325
394
  var configCommand = lazyCommand(
326
395
  {
@@ -328,7 +397,7 @@ var configCommand = lazyCommand(
328
397
  description: "List, read and change the settings Desktop shows, in your user config file",
329
398
  passThrough: true
330
399
  },
331
- async () => (await import("./config-BWAJ7XDA.js")).configCommand
400
+ async () => (await import("./config-77NN5LSS.js")).configCommand
332
401
  );
333
402
  var skillsCommand = lazyCommand(
334
403
  {
@@ -336,7 +405,7 @@ var skillsCommand = lazyCommand(
336
405
  description: "List skills available to a working directory",
337
406
  passThrough: true
338
407
  },
339
- async () => (await import("./skills-VSVXQTY3.js")).skillsCommand
408
+ async () => (await import("./skills-XAONTP56.js")).skillsCommand
340
409
  );
341
410
  var providersCommand = lazyCommand(
342
411
  {
@@ -344,22 +413,22 @@ var providersCommand = lazyCommand(
344
413
  description: "List providers and their models",
345
414
  passThrough: true
346
415
  },
347
- async () => (await import("./providers-6634CTX7.js")).providersCommand
416
+ async () => (await import("./providers-MX47EUPL.js")).providersCommand
348
417
  );
349
- var upgradeCommand = lazyCommand(
418
+ var updateCommand = lazyCommand(
350
419
  {
351
- name: "upgrade",
420
+ name: "update",
352
421
  description: "Update the active global Namzu installation",
353
422
  passThrough: true
354
423
  },
355
- async () => (await import("./upgrade-BIHZ3JJV.js")).upgradeCommand
424
+ async () => (await import("./update-RMHLR4LI.js")).updateCommand
356
425
  );
357
426
  var serveCommand = lazyCommand(
358
427
  {
359
428
  name: "serve",
360
- description: "namzu needs no central server; each session is a process"
429
+ description: "Print a note on why Namzu needs no server and how sessions run"
361
430
  },
362
- async () => (await import("./serve-CZDHGDZL.js")).serveCommand
431
+ async () => (await import("./serve-4VIDXLEB.js")).serveCommand
363
432
  );
364
433
  var stateCommand = lazyCommand(
365
434
  {
@@ -367,7 +436,7 @@ var stateCommand = lazyCommand(
367
436
  description: "Inspect local Namzu state, or move what an earlier Namzu left in a project",
368
437
  passThrough: true
369
438
  },
370
- async () => (await import("./state-IRA33PLY.js")).stateCommand
439
+ async () => (await import("./state-MVYWWBAA.js")).stateCommand
371
440
  );
372
441
  var scheduleCommand = lazyCommand(
373
442
  {
@@ -375,7 +444,7 @@ var scheduleCommand = lazyCommand(
375
444
  description: "Scheduled jobs that run while namzu is closed, and the service that runs them",
376
445
  passThrough: true
377
446
  },
378
- async () => (await import("./schedule-54POTO5A.js")).scheduleCommand
447
+ async () => (await import("./schedule-BWR4NKGX.js")).scheduleCommand
379
448
  );
380
449
  var browserCommand = lazyCommand(
381
450
  {
@@ -383,7 +452,7 @@ var browserCommand = lazyCommand(
383
452
  description: "Browser profiles for the browser tools: sign in, list, status, install, remove",
384
453
  passThrough: true
385
454
  },
386
- async () => (await import("./browser-ZMNLA73K.js")).browserCommand
455
+ async () => (await import("./browser-M7U6GZOY.js")).browserCommand
387
456
  );
388
457
  var githubCommand = lazyCommand(
389
458
  {
@@ -391,7 +460,7 @@ var githubCommand = lazyCommand(
391
460
  description: "Run Namzu from GitHub Actions: install workflows that answer mentions and review pull requests",
392
461
  passThrough: true
393
462
  },
394
- async () => (await import("./github-X352BD5R.js")).githubCommand
463
+ async () => (await import("./github-IF3JVVJF.js")).githubCommand
395
464
  );
396
465
  function createLazyPalCommand(resumeCommand) {
397
466
  return lazyCommand(
@@ -400,7 +469,7 @@ function createLazyPalCommand(resumeCommand) {
400
469
  description: "Create and operate persistent Pals with their own local virtual computers",
401
470
  passThrough: true
402
471
  },
403
- async () => (await import("./pal-6KB3D324.js")).createPalCommand(resumeCommand)
472
+ async () => (await import("./pal-TT7X5JF3.js")).createPalCommand(resumeCommand)
404
473
  );
405
474
  }
406
475
  __name(createLazyPalCommand, "createLazyPalCommand");
@@ -411,7 +480,7 @@ function createLazyWorktreeCommand(open) {
411
480
  description: "Create, fork, list and resume managed Git worktrees",
412
481
  passThrough: true
413
482
  },
414
- async () => (await import("./worktree-PNG7MZV3.js")).createWorktreeCommand(open)
483
+ async () => (await import("./worktree-NAVT42R4.js")).createWorktreeCommand(open)
415
484
  );
416
485
  }
417
486
  __name(createLazyWorktreeCommand, "createLazyWorktreeCommand");
@@ -419,6 +488,11 @@ __name(createLazyWorktreeCommand, "createLazyWorktreeCommand");
419
488
  // src/cli.ts
420
489
  var PER_RUN_FLAG_KEYS = /* @__PURE__ */ new Set([
421
490
  "appendSystemPrompt",
491
+ "systemPrompt",
492
+ "tools",
493
+ "name",
494
+ "mcpConfig",
495
+ "strictMcpConfig",
422
496
  "allowedTools",
423
497
  "disallowedTools",
424
498
  "fallbackModel",
@@ -436,7 +510,7 @@ function addLaunchOptions(command) {
436
510
  ).option(
437
511
  "--dangerously-skip-permissions",
438
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."
439
- ).option("--yolo", "Alias of --dangerously-skip-permissions.").option(
513
+ ).option(
440
514
  "--allow-dangerously-skip-permissions",
441
515
  "Let Shift+Tab reach bypass mode, without starting in it."
442
516
  ).option(
@@ -475,11 +549,36 @@ function addLaunchOptions(command) {
475
549
  ).addOption(
476
550
  new Option(
477
551
  "--permission-mode <mode>",
478
- "Permission mode for this launch only; wins over --yolo. auto lets a second model check each call; bypass runs without asking. /permissions changes it from inside."
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."
479
553
  ).choices(PERMISSION_MODE_NAMES)
480
554
  ).option(
481
555
  "--append-system-prompt <text|@file>",
482
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."
483
582
  ).option(
484
583
  "--allowed-tools <list>",
485
584
  'Allow these tools without asking for this launch, e.g. "edit bash(git status*)"; repeatable. A deny rule still wins.',
@@ -510,10 +609,17 @@ function addLaunchOptions(command) {
510
609
  __name(addLaunchOptions, "addLaunchOptions");
511
610
  var EX_USAGE = 64;
512
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`.",
513
616
  run: '`namzu run` was replaced by `namzu exec "<prompt>"`, which takes the same options.',
514
617
  "run-stream": '`namzu run-stream` was replaced by `namzu exec --json "<prompt>"`, which emits the same events.',
515
618
  "skills-json": "This command is now `namzu skills list --json`.",
516
- "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`."
517
623
  };
518
624
  var CATALOGUE_REFRESH_COMMANDS = /* @__PURE__ */ new Set(["exec", "acp", "drain"]);
519
625
  function opensSessions(name) {
@@ -522,6 +628,8 @@ function opensSessions(name) {
522
628
  __name(opensSessions, "opensSessions");
523
629
  async function runCli(opts) {
524
630
  let exitCode = 0;
631
+ let helpArgv = opts.argv;
632
+ let setAsideHome;
525
633
  const setExitCode = /* @__PURE__ */ __name((code) => {
526
634
  exitCode = code;
527
635
  }, "setExitCode");
@@ -555,7 +663,10 @@ async function runCli(opts) {
555
663
  if (rt === void 0) throw new Error("the CLI runtime is used before a command started");
556
664
  return rt;
557
665
  }, "runtime");
558
- const program = new Command().name("namzu").description("Operator CLI for the Namzu agent platform").version(CLI_VERSION, "-V, --version", "Print version and exit").addOption(
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(
559
670
  new Option("-f, --format <type>", "Output format: text, json, yaml").choices([
560
671
  "text",
561
672
  "json",
@@ -568,22 +679,17 @@ async function runCli(opts) {
568
679
  "--log-format <format>",
569
680
  "Log record format for exec/drain/TUI-flush output: pretty (default) or json. namzu exec --json always writes json, regardless of this flag."
570
681
  ).choices(["pretty", "json"])
571
- ).addOption(
572
- new Option(
573
- "--max-budget-usd <amount>",
574
- "Spend limit in dollars. It belongs to a headless run: pass it after exec."
575
- ).hideHelp()
576
682
  ).option(
577
- "--message <text>",
578
- "Send this text as the first message once the interactive session is ready, for this launch only. It runs as a plain prompt, never a slash command, and is not sent again on resume."
579
- ).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(
580
686
  "-r, --resume [value]",
581
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)."
582
688
  ).option(
583
689
  "--from-pr [value]",
584
690
  "Open the picker with only the conversations linked to a pull request; a number or address narrows it to that one."
585
691
  ).hook("preAction", async (command, action) => {
586
- rt ??= await import("./cli-runtime-66YC7XKZ.js");
692
+ rt ??= await import("./cli-runtime-BLOWAO6Q.js");
587
693
  if (action.name() === "resume") {
588
694
  for (const option of action.options) {
589
695
  const key = option.attributeName();
@@ -601,54 +707,90 @@ async function runCli(opts) {
601
707
  if (usesCustomNetwork(process.env)) {
602
708
  await (await import("./install-F6PU4SYH.js")).installNetwork();
603
709
  }
604
- const launchOnly = [
605
- "provider",
606
- "model",
607
- "effort",
608
- "fast",
609
- "permissionMode",
610
- "message",
611
- "continue",
612
- "resume",
613
- "fromPr",
614
- "appendSystemPrompt",
615
- "allowedTools",
616
- "disallowedTools",
617
- "fallbackModel",
618
- "maxBudgetUsd",
619
- "maxOutputTokens",
620
- "account"
621
- ].filter((key) => command.opts()[key] !== void 0);
622
- if (launchOnly.length > 0 && !["namzu", "resume"].includes(action.name())) {
623
- const flags = launchOnly.map(
624
- (key) => `--${key.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}`
625
- );
626
- const perRun = launchOnly.some((key) => PER_RUN_FLAG_KEYS.has(key));
627
- command.error(
628
- 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.`,
629
- { exitCode: EX_USAGE, code: "commander.invalidArgument" }
630
- );
631
- }
632
- if (action.name() === "resume" && (command.opts().continue !== void 0 || command.opts().resume !== void 0 || command.opts().fromPr !== void 0))
633
- command.error(
634
- "--continue, --resume and --from-pr choose a conversation to open; `namzu resume <conversation-id>` already names one.",
635
- { exitCode: EX_USAGE, code: "commander.invalidArgument" }
636
- );
637
- if (action.name() === "resume" && command.opts().message !== void 0)
638
- command.error(
639
- "--message is the first message of a new conversation; it is not sent when resuming one.",
640
- { exitCode: EX_USAGE, code: "commander.invalidArgument" }
641
- );
642
- if (command.opts().outputSchema && !["namzu", "resume"].includes(action.name())) {
643
- command.error(
644
- 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.",
645
- {
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, {
646
723
  exitCode: EX_USAGE,
647
724
  code: "commander.invalidArgument"
648
- }
649
- );
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
+ }
650
792
  }
651
- if (opensSessions(action.name())) {
793
+ if (opensSessions(action.name()) && !asksForHelp(helpArgv)) {
652
794
  beginCatalogueRefresh(getBootstrapContext().config);
653
795
  }
654
796
  }).enablePositionalOptions(true).exitOverride().showHelpAfterError(false).configureOutput({
@@ -687,14 +829,17 @@ async function runCli(opts) {
687
829
  formatter: createFormatter(format, { quiet }),
688
830
  config: { ...fileConfig, format, quiet },
689
831
  configDebug,
690
- logging
832
+ logging,
833
+ ...globalOpts.bare === true ? { bare: true } : {}
691
834
  };
692
835
  }, "buildContext");
836
+ let launchLayers = [];
693
837
  const selectedConfigOpts = /* @__PURE__ */ __name((cwd) => {
694
838
  const profile = program.opts().profile;
695
839
  return {
696
840
  ...profile !== void 0 ? { profile } : {},
697
- ...cwd !== void 0 ? { cwd } : {}
841
+ ...cwd !== void 0 ? { cwd } : {},
842
+ ...launchLayers.length > 0 ? { launchLayers } : {}
698
843
  };
699
844
  }, "selectedConfigOpts");
700
845
  let bootstrapCtx = null;
@@ -789,8 +934,7 @@ async function runCli(opts) {
789
934
  execCommand,
790
935
  learnCommand,
791
936
  learningCommand,
792
- loginCommand,
793
- logoutCommand,
937
+ authCommand,
794
938
  mcpCommand,
795
939
  drainCommand,
796
940
  evalCommand,
@@ -802,7 +946,7 @@ async function runCli(opts) {
802
946
  skillsCommand,
803
947
  workspacesCommand,
804
948
  providersCommand,
805
- upgradeCommand,
949
+ updateCommand,
806
950
  serveCommand,
807
951
  stateCommand,
808
952
  scheduleCommand,
@@ -811,18 +955,19 @@ async function runCli(opts) {
811
955
  githubCommand
812
956
  ]) {
813
957
  registerCommandOrLazy(program, def, {
814
- 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 === upgradeCommand || def === scheduleCommand || def === browserCommand || def === githubCommand ? getBootstrapContext : getContext,
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,
815
959
  setExitCode
816
960
  });
817
961
  }
962
+ let launchPrompt;
818
963
  const launchInteractiveTui = /* @__PURE__ */ __name(async (initialConversationId, pickConversation = false) => {
819
964
  if (process.stdout.isTTY) {
820
965
  const launchOpts = program.opts();
821
966
  let conversationId = initialConversationId;
822
967
  let openResumePicker = pickConversation ? {} : void 0;
823
968
  if (conversationId === void 0 && (launchOpts.continue || launchOpts.resume !== void 0 || launchOpts.fromPr !== void 0)) {
824
- const { resolveTuiResume } = await import("./resume-OEUL3DML.js");
825
- const { openSessions, closeSessions } = await import("./store-5QOUJL3S.js");
969
+ const { resolveTuiResume } = await import("./resume-5JACRBQO.js");
970
+ const { openSessions, closeSessions } = await import("./store-5K5HIPUT.js");
826
971
  let sessions = null;
827
972
  try {
828
973
  sessions = await openSessions(process.cwd());
@@ -855,7 +1000,7 @@ async function runCli(opts) {
855
1000
  ...outcome.pr === void 0 ? {} : { pr: outcome.pr }
856
1001
  };
857
1002
  }
858
- const structuredOutput = launchOpts.outputSchema ? (await import("./output-schema-MKFI5PWR.js")).loadOutputSchema(
1003
+ const structuredOutput = launchOpts.outputSchema ? (await import("./output-schema-2GHHC5ZZ.js")).loadOutputSchema(
859
1004
  resolve(process.cwd(), launchOpts.outputSchema)
860
1005
  ) : void 0;
861
1006
  if (launchOpts.maxBudgetUsd !== void 0) {
@@ -868,6 +1013,8 @@ async function runCli(opts) {
868
1013
  const runFlags = runtime().resolveRunFlags(
869
1014
  {
870
1015
  appendSystemPrompt: launchOpts.appendSystemPrompt ?? null,
1016
+ systemPrompt: launchOpts.systemPrompt ?? null,
1017
+ tools: launchOpts.tools ?? null,
871
1018
  allowedTools: launchOpts.allowedTools ?? [],
872
1019
  disallowedTools: launchOpts.disallowedTools ?? [],
873
1020
  fallbackModels: launchOpts.fallbackModel ?? []
@@ -879,7 +1026,7 @@ async function runCli(opts) {
879
1026
  setExitCode(EX_USAGE);
880
1027
  return;
881
1028
  }
882
- const skipPermissions = Boolean(launchOpts.dangerouslySkipPermissions || launchOpts.yolo);
1029
+ const skipPermissions = Boolean(launchOpts.dangerouslySkipPermissions);
883
1030
  const permissionPlanFor = /* @__PURE__ */ __name((config) => runtime().planLaunchMode({
884
1031
  permissionModeFlag: launchOpts.permissionMode,
885
1032
  skipPermissions,
@@ -915,8 +1062,8 @@ async function runCli(opts) {
915
1062
  const provider = (launchOpts.provider ?? modelEnvironment.provider)?.trim();
916
1063
  let launchAccount;
917
1064
  if (launchOpts.account !== void 0) {
918
- const { openCliAccounts } = await import("./open-3GVSPGUF.js");
919
- const { findAccountByName } = await import("./binding-ON644UJ3.js");
1065
+ const { openCliAccounts } = await import("./open-3VUS3XWX.js");
1066
+ const { findAccountByName } = await import("./binding-NAPEU62B.js");
920
1067
  let found;
921
1068
  try {
922
1069
  found = findAccountByName(openCliAccounts().registry, launchOpts.account);
@@ -953,12 +1100,29 @@ async function runCli(opts) {
953
1100
  ...launchOpts.fast !== true && savedConfig.fast === true ? { savedFast: true } : {},
954
1101
  ...!effort && savedConfig.effort ? { savedEffort: savedConfig.effort } : {},
955
1102
  ...launchPlan.source === "launch-flag" || launchPlan.source === "config-default" ? { permissionMode: launchPlan.mode } : {},
956
- ...launchOpts.message?.trim() ? { message: launchOpts.message } : {},
1103
+ ...launchPrompt?.trim() ? { message: launchPrompt } : {},
1104
+ ...launchOpts.name?.trim() ? { name: launchOpts.name.trim() } : {},
957
1105
  ...launchOpts.fallbackModel?.length ? { fallbackModels: launchOpts.fallbackModel } : {}
958
1106
  };
959
1107
  const commandCtx = getBootstrapContext();
960
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
+ }
961
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);
962
1126
  runtime().warnLegacyMcpPermissionNames(resolvedCtx.config.permissions);
963
1127
  runtime().warnBroadAllowRules(cwd, runtime().cliLogger());
964
1128
  const permissions = runtime().compilePermissionLayers(
@@ -1000,6 +1164,9 @@ async function runCli(opts) {
1000
1164
  // may name a default of its own or switch auto off.
1001
1165
  permissionSource: launchPlan.source === "auto-default" && fullPlan?.source !== "auto-default" ? "default" : launchPlan.source,
1002
1166
  ...runFlags.appendSystem ? { appendSystem: runFlags.appendSystem } : {},
1167
+ ...runFlags.replaceSystem ? { replaceSystem: runFlags.replaceSystem } : {},
1168
+ ...runFlags.onlyTools ? { onlyTools: runFlags.onlyTools } : {},
1169
+ ...launchOpts.bare === true ? { bare: true } : {},
1003
1170
  // The project's own file may close bypass or auto for its folder, so the
1004
1171
  // door is recomputed from the full configuration.
1005
1172
  bypassAvailable: fullPlan?.bypassAvailable === true,
@@ -1012,7 +1179,7 @@ async function runCli(opts) {
1012
1179
  logging: resolvedCtx.logging,
1013
1180
  ...conversationId ? { initialConversationId: conversationId } : {},
1014
1181
  ...openResumePicker ? { openResumePicker } : {},
1015
- ...resolvedCtx.config.mcpServers ? { mcpServers: resolvedCtx.config.mcpServers } : {},
1182
+ ...launchMcp.servers ? { mcpServers: launchMcp.servers } : {},
1016
1183
  ...resolvedCtx.config.plugins ? { plugins: resolvedCtx.config.plugins } : {},
1017
1184
  ...resolvedCtx.config.skills ? { skills: resolvedCtx.config.skills } : {},
1018
1185
  ...resolvedCtx.config.composerTriggers ? { composerTriggers: resolvedCtx.config.composerTriggers } : {},
@@ -1078,7 +1245,7 @@ async function runCli(opts) {
1078
1245
  tuiCtx,
1079
1246
  (cwd) => buildTuiContext(resolveTrustedProjectContext(commandCtx, cwd), cwd)
1080
1247
  );
1081
- const { launchTui } = await import("./tui-KFWUIY7N.js");
1248
+ const { launchTui } = await import("./tui-MRMMX2TV.js");
1082
1249
  const resumeCommand = launchOpts.outputSchema ? [
1083
1250
  ...opts.resumeCommand ?? ["namzu"],
1084
1251
  "--output-schema",
@@ -1104,7 +1271,7 @@ async function runCli(opts) {
1104
1271
  await launchInteractiveTui(void 0, true);
1105
1272
  return;
1106
1273
  }
1107
- const { scheduledSessionElsewhere } = await import("./resume-command-MXUIVG6T.js");
1274
+ const { scheduledSessionElsewhere } = await import("./resume-command-H4FOREZO.js");
1108
1275
  const elsewhere = scheduledSessionElsewhere(
1109
1276
  runtime().resolveNamzuHome(),
1110
1277
  conversationId,
@@ -1121,19 +1288,53 @@ async function runCli(opts) {
1121
1288
  }
1122
1289
  await launchInteractiveTui(conversationId);
1123
1290
  });
1124
- program.action(async () => {
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;
1125
1301
  await launchInteractiveTui();
1126
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
+ }
1127
1316
  try {
1128
- const removed = firstRootOperand(program, opts.argv.slice(2));
1129
- const hint = removed !== void 0 ? REMOVED_COMMANDS[removed] : void 0;
1130
- if (removed !== void 0 && hint !== void 0) {
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) {
1131
1326
  program.error(hint, {
1132
1327
  exitCode: EX_USAGE,
1133
1328
  code: "commander.unknownCommand"
1134
1329
  });
1135
1330
  }
1136
- await program.parseAsync(opts.argv, { from: "node" });
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" });
1137
1338
  return exitCode;
1138
1339
  } catch (err) {
1139
1340
  if (err instanceof CommanderError) {
@@ -1156,16 +1357,90 @@ namzu will not start with an explicit config value it cannot honour. ${remediati
1156
1357
  );
1157
1358
  return EXIT_BAD_CONFIG;
1158
1359
  }
1159
- const { reportCrash } = await import("./crash-report-ASOVDFQT.js");
1360
+ const { reportCrash } = await import("./crash-report-CA3Y7LA6.js");
1160
1361
  process.stderr.write(reportCrash(err));
1161
1362
  return EXIT_INTERNAL_ERROR;
1162
1363
  } finally {
1364
+ if (setAsideHome !== void 0) process.env.NAMZU_HOME = setAsideHome.value;
1163
1365
  catalogueRefresh?.cancel();
1164
1366
  await (await otlpExport)?.shutdown();
1165
1367
  }
1166
1368
  }
1167
1369
  __name(runCli, "runCli");
1168
- function firstRootOperand(program, args) {
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) {
1169
1444
  const takesValue = /* @__PURE__ */ __name((flag) => {
1170
1445
  if (flag === "-h" || flag === "--help") return false;
1171
1446
  const option = program.options.find((o) => o.long === flag || o.short === flag);
@@ -1188,11 +1463,60 @@ function firstRootOperand(program, args) {
1188
1463
  if (value && arg.length === 2) i++;
1189
1464
  continue;
1190
1465
  }
1191
- return arg;
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;
1192
1484
  }
1485
+ if (sawYolo) return REMOVED_COMMANDS["--yolo"];
1193
1486
  return void 0;
1194
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
+ }
1195
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");
1196
1520
  function mapCommanderError(err) {
1197
1521
  switch (err.code) {
1198
1522
  case "commander.helpDisplayed":
@@ -1219,4 +1543,4 @@ export {
1219
1543
  registerAll,
1220
1544
  runCli
1221
1545
  };
1222
- //# sourceMappingURL=chunk-6IWJ6JC6.js.map
1546
+ //# sourceMappingURL=chunk-MOY2OERC.js.map