@namzu/cli 57.1.0 → 59.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 (845) hide show
  1. package/CHANGELOG.md +247 -0
  2. package/README.md +5 -5
  3. package/dist/bin-main.d.ts.map +1 -1
  4. package/dist/bin.js +1 -1
  5. package/dist/boot-narrative.d.ts.map +1 -1
  6. package/dist/browser/control.d.ts +19 -2
  7. package/dist/browser/control.d.ts.map +1 -1
  8. package/dist/chunks/{acp-DEH76VXL.js → acp-AQUZCZSO.js} +581 -212
  9. package/dist/chunks/acp-AQUZCZSO.js.map +6 -0
  10. package/dist/chunks/{activity-command-GETWRD67.js → activity-command-Y3A6GIFW.js} +14 -15
  11. package/dist/chunks/activity-command-Y3A6GIFW.js.map +6 -0
  12. package/dist/chunks/{add-XFYJ6UZE.js → add-DWFKSOYI.js} +42 -38
  13. package/dist/chunks/add-DWFKSOYI.js.map +6 -0
  14. package/dist/chunks/{agent-FW4VC2AF.js → agent-Z6PJYBAO.js} +63 -48
  15. package/dist/chunks/agent-session-WXWW7E5M.js +92 -0
  16. package/dist/chunks/{apply-at-exit-OU2UXZCF.js → apply-at-exit-SHGR2BAB.js} +9 -9
  17. package/dist/chunks/{apply-at-exit-OU2UXZCF.js.map → apply-at-exit-SHGR2BAB.js.map} +1 -1
  18. package/dist/chunks/{archive-PA5MDKXC.js → archive-KYXU4AZZ.js} +16 -13
  19. package/dist/chunks/archive-KYXU4AZZ.js.map +6 -0
  20. package/dist/chunks/auth-R3RCZZ7U.js +242 -0
  21. package/dist/chunks/auth-R3RCZZ7U.js.map +6 -0
  22. package/dist/chunks/{bin-main-RH4NLAPK.js → bin-main-DUZFYUCJ.js} +51 -23
  23. package/dist/chunks/bin-main-DUZFYUCJ.js.map +6 -0
  24. package/dist/chunks/{binding-ON644UJ3.js → binding-5UJYMFMU.js} +3 -3
  25. package/dist/chunks/browser-7CFZ6BZS.js +76 -0
  26. package/dist/chunks/browser-7CFZ6BZS.js.map +6 -0
  27. package/dist/chunks/{chat-UNZSJZ6U.js → chat-BELD32ZP.js} +17 -18
  28. package/dist/chunks/chat-BELD32ZP.js.map +6 -0
  29. package/dist/chunks/{chunk-IMXTM75Q.js → chunk-23D5IXMW.js} +3 -3
  30. package/dist/chunks/{chunk-PYYDU2BC.js → chunk-24EZWZDZ.js} +6 -6
  31. package/dist/chunks/{chunk-WDROVY6V.js → chunk-2EVP6BX4.js} +2 -2
  32. package/dist/chunks/{chunk-M4XYHIA3.js → chunk-2KC52MDS.js} +2 -2
  33. package/dist/chunks/{chunk-GVWDNFIP.js → chunk-2VP2Q657.js} +3 -3
  34. package/dist/chunks/{chunk-Z6LUWKV4.js → chunk-3ETXWTV4.js} +8 -8
  35. package/dist/chunks/{chunk-3Z5OXTDI.js → chunk-3PH6F6Z3.js} +3 -3
  36. package/dist/chunks/{chunk-7T56MZIJ.js → chunk-3RLKUXXG.js} +24 -23
  37. package/dist/chunks/{chunk-7T56MZIJ.js.map → chunk-3RLKUXXG.js.map} +1 -1
  38. package/dist/chunks/{chunk-6MQHDX7R.js → chunk-44MFZJ24.js} +32 -5
  39. package/dist/chunks/chunk-44MFZJ24.js.map +6 -0
  40. package/dist/chunks/{chunk-LGPOJEZK.js → chunk-4BAXYUZQ.js} +51 -17
  41. package/dist/chunks/chunk-4BAXYUZQ.js.map +6 -0
  42. package/dist/chunks/{chunk-GWLUXO4O.js → chunk-4RW7GDJ4.js} +2 -2
  43. package/dist/chunks/{chunk-PJF46DI6.js → chunk-4TIUY3Q6.js} +15 -5
  44. package/dist/chunks/chunk-4TIUY3Q6.js.map +6 -0
  45. package/dist/chunks/{chunk-NP4BQ7SB.js → chunk-4TJ7AGQO.js} +2 -2
  46. package/dist/chunks/{chunk-Y62WSR5N.js → chunk-567CSU37.js} +8 -8
  47. package/dist/chunks/{chunk-DGV6YSAW.js → chunk-5HMJ3DYR.js} +4 -4
  48. package/dist/chunks/{chunk-6CI5CHBT.js → chunk-5JVKE4LB.js} +7765 -2889
  49. package/dist/chunks/chunk-5JVKE4LB.js.map +6 -0
  50. package/dist/chunks/chunk-5OYJXSMZ.js +34 -0
  51. package/dist/chunks/chunk-5OYJXSMZ.js.map +6 -0
  52. package/dist/chunks/{chunk-DT6PTS6H.js → chunk-6CSJRIUZ.js} +3 -3
  53. package/dist/chunks/{chunk-HEFLKPCT.js → chunk-6IOZY2AB.js} +41 -7
  54. package/dist/chunks/chunk-6IOZY2AB.js.map +6 -0
  55. package/dist/chunks/{chunk-R37C3PDS.js → chunk-6YXHH5JW.js} +5 -5
  56. package/dist/chunks/{chunk-R37C3PDS.js.map → chunk-6YXHH5JW.js.map} +1 -1
  57. package/dist/chunks/chunk-73HWWJYC.js +130 -0
  58. package/dist/chunks/chunk-73HWWJYC.js.map +6 -0
  59. package/dist/chunks/{chunk-5YTGRS7U.js → chunk-7J23SPSX.js} +7 -7
  60. package/dist/chunks/{chunk-LDU7AFNZ.js → chunk-7LDUPEXP.js} +25 -6
  61. package/dist/chunks/chunk-7LDUPEXP.js.map +6 -0
  62. package/dist/chunks/chunk-7Y4RR47U.js +197 -0
  63. package/dist/chunks/chunk-7Y4RR47U.js.map +6 -0
  64. package/dist/chunks/{chunk-SIG7WHBU.js → chunk-7YC42EXB.js} +5 -1
  65. package/dist/chunks/{chunk-SIG7WHBU.js.map → chunk-7YC42EXB.js.map} +1 -1
  66. package/dist/chunks/{chunk-ORSFP3ZC.js → chunk-ABKURT35.js} +36 -12
  67. package/dist/chunks/{chunk-ORSFP3ZC.js.map → chunk-ABKURT35.js.map} +1 -1
  68. package/dist/chunks/{chunk-SM6UI33D.js → chunk-ACO3LTRT.js} +8 -4
  69. package/dist/chunks/{chunk-SM6UI33D.js.map → chunk-ACO3LTRT.js.map} +1 -1
  70. package/dist/chunks/{chunk-SKFBM6OJ.js → chunk-AEXGGJUW.js} +5 -5
  71. package/dist/chunks/{chunk-BXAUUC2B.js → chunk-AIQKSTVJ.js} +4 -4
  72. package/dist/chunks/{chunk-6IWJ6JC6.js → chunk-ATCVFWXD.js} +476 -135
  73. package/dist/chunks/chunk-ATCVFWXD.js.map +6 -0
  74. package/dist/chunks/{chunk-3HT7FQNG.js → chunk-CEZW3NVM.js} +4 -4
  75. package/dist/chunks/{chunk-KUIATFLN.js → chunk-CG5CGXNF.js} +2 -2
  76. package/dist/chunks/{chunk-HENM67TJ.js → chunk-CNSKJ3DZ.js} +2 -2
  77. package/dist/chunks/{chunk-W6UOMYDX.js → chunk-CQFWLYTK.js} +2 -2
  78. package/dist/chunks/{chunk-DMHE6X3Y.js → chunk-D35UCVTK.js} +12 -40
  79. package/dist/chunks/chunk-D35UCVTK.js.map +6 -0
  80. package/dist/chunks/{chunk-FNEQ77RJ.js → chunk-D3SCA6NT.js} +102 -5
  81. package/dist/chunks/chunk-D3SCA6NT.js.map +6 -0
  82. package/dist/chunks/{chunk-7BF4FLOP.js → chunk-D6XZ4ZAV.js} +76 -17
  83. package/dist/chunks/chunk-D6XZ4ZAV.js.map +6 -0
  84. package/dist/chunks/{chunk-M5LA652U.js → chunk-DGYMR4WJ.js} +4 -4
  85. package/dist/chunks/{chunk-ABELB4VO.js → chunk-DJKWBSVM.js} +2 -2
  86. package/dist/chunks/{chunk-HIHHTWEU.js → chunk-DJTCZSSY.js} +2 -2
  87. package/dist/chunks/{chunk-VV6DYTFU.js → chunk-DKSFQRUM.js} +5 -5
  88. package/dist/chunks/{chunk-ETBXU3OK.js → chunk-DRWJTADQ.js} +6 -6
  89. package/dist/chunks/{chunk-ETBXU3OK.js.map → chunk-DRWJTADQ.js.map} +1 -1
  90. package/dist/chunks/{chunk-SHFB4DZP.js → chunk-E4RVHFV6.js} +2 -2
  91. package/dist/chunks/{chunk-NV7RJBWA.js → chunk-E65IWYTT.js} +6 -6
  92. package/dist/chunks/{chunk-N4YYJGMW.js → chunk-E6FMAE5Q.js} +11 -10
  93. package/dist/chunks/{chunk-N4YYJGMW.js.map → chunk-E6FMAE5Q.js.map} +1 -1
  94. package/dist/chunks/{chunk-PI5ZZQVH.js → chunk-EA6YICQ7.js} +3 -3
  95. package/dist/chunks/{chunk-JR6EFL7G.js → chunk-EGGO56FY.js} +2 -1
  96. package/dist/chunks/{chunk-TBKSDYS4.js → chunk-ESIICAI3.js} +3 -3
  97. package/dist/chunks/{chunk-MOMSIAV4.js → chunk-FEOS7UZ2.js} +2 -2
  98. package/dist/chunks/{chunk-AZXIYYVX.js → chunk-FK5C7SHM.js} +172 -34
  99. package/dist/chunks/chunk-FK5C7SHM.js.map +6 -0
  100. package/dist/chunks/{chunk-JDWCVWIQ.js → chunk-FMQCPAKR.js} +3 -3
  101. package/dist/chunks/{chunk-2JFRYOBC.js → chunk-FRGOWO6N.js} +11 -9
  102. package/dist/chunks/chunk-FRGOWO6N.js.map +6 -0
  103. package/dist/chunks/{chunk-2AEWJA4Y.js → chunk-G5LPTLLY.js} +4 -4
  104. package/dist/chunks/{chunk-2AEWJA4Y.js.map → chunk-G5LPTLLY.js.map} +1 -1
  105. package/dist/chunks/chunk-G76POTWW.js +188 -0
  106. package/dist/chunks/chunk-G76POTWW.js.map +6 -0
  107. package/dist/chunks/{chunk-2ZPB4ZBP.js → chunk-GEVWZWLM.js} +3 -3
  108. package/dist/chunks/chunk-GQ6WXY3M.js +435 -0
  109. package/dist/chunks/chunk-GQ6WXY3M.js.map +6 -0
  110. package/dist/chunks/{chunk-5ZPCQ2HL.js → chunk-GUK47JTV.js} +21 -7
  111. package/dist/chunks/chunk-GUK47JTV.js.map +6 -0
  112. package/dist/chunks/{chunk-4DNEDLBT.js → chunk-HGTOAMV6.js} +2444 -1383
  113. package/dist/chunks/chunk-HGTOAMV6.js.map +6 -0
  114. package/dist/chunks/{chunk-WSQAVWIV.js → chunk-HW2QBNAA.js} +13 -13
  115. package/dist/chunks/{chunk-ZR3VZG37.js → chunk-IJ6Z6FNY.js} +7 -186
  116. package/dist/chunks/chunk-IJ6Z6FNY.js.map +6 -0
  117. package/dist/chunks/{chunk-DOLGKZC5.js → chunk-IRAG3YXW.js} +5 -3
  118. package/dist/chunks/{chunk-77AYLILT.js → chunk-J5E4DV6R.js} +3 -3
  119. package/dist/chunks/{chunk-6TCZN54R.js → chunk-JPM3JXZB.js} +3 -3
  120. package/dist/chunks/{chunk-6BTNPDXR.js → chunk-JRWUIW4J.js} +2 -2
  121. package/dist/chunks/{chunk-3EH4PF5T.js → chunk-JUDJGDYX.js} +228 -5
  122. package/dist/chunks/chunk-JUDJGDYX.js.map +6 -0
  123. package/dist/chunks/chunk-JZTTOZRG.js +167 -0
  124. package/dist/chunks/chunk-JZTTOZRG.js.map +6 -0
  125. package/dist/chunks/{chunk-CKYGPQVJ.js → chunk-KBLYZ7L7.js} +3 -3
  126. package/dist/chunks/{chunk-6MGRBXCW.js → chunk-KETRBV2E.js} +2 -2
  127. package/dist/chunks/{chunk-C7ZKC7HY.js → chunk-KHGY6QJR.js} +160 -19
  128. package/dist/chunks/chunk-KHGY6QJR.js.map +6 -0
  129. package/dist/chunks/{chunk-RSO4LBHJ.js → chunk-KPOOM7QT.js} +7 -7
  130. package/dist/chunks/{chunk-WCAKWRZU.js → chunk-KVNL7XA6.js} +3 -3
  131. package/dist/chunks/{chunk-4LSSJKYK.js → chunk-LB4HC5U7.js} +19 -4
  132. package/dist/chunks/{chunk-4LSSJKYK.js.map → chunk-LB4HC5U7.js.map} +1 -1
  133. package/dist/chunks/{chunk-4PFTZNS5.js → chunk-LWJJDERP.js} +3 -3
  134. package/dist/chunks/{chunk-2P2PDEZJ.js → chunk-LXJW3ZYI.js} +24 -16
  135. package/dist/chunks/chunk-LXJW3ZYI.js.map +6 -0
  136. package/dist/chunks/{chunk-LGVEASS7.js → chunk-MDBUSIPW.js} +9 -8
  137. package/dist/chunks/{chunk-LGVEASS7.js.map → chunk-MDBUSIPW.js.map} +1 -1
  138. package/dist/chunks/{chunk-763RT6Z5.js → chunk-MDVYEFTI.js} +2 -2
  139. package/dist/chunks/{chunk-DROVNI2Y.js → chunk-MF57EX7H.js} +3 -3
  140. package/dist/chunks/{chunk-J6QCR3SC.js → chunk-MF5KTVGJ.js} +15 -15
  141. package/dist/chunks/{chunk-XF243FQN.js → chunk-MRZHTIE7.js} +21 -6
  142. package/dist/chunks/chunk-MRZHTIE7.js.map +6 -0
  143. package/dist/chunks/{chunk-S7YXINNY.js → chunk-O2PZDA5H.js} +3 -3
  144. package/dist/chunks/{chunk-PK7M7VIU.js → chunk-OA7QKUCM.js} +13 -13
  145. package/dist/chunks/{chunk-MY6JV4BT.js → chunk-OH7EYW3T.js} +7 -9
  146. package/dist/chunks/chunk-OH7EYW3T.js.map +6 -0
  147. package/dist/chunks/{chunk-GJ6NI7JL.js → chunk-OOJP5BEK.js} +408 -50
  148. package/dist/chunks/chunk-OOJP5BEK.js.map +6 -0
  149. package/dist/chunks/{chunk-JCH7IWMU.js → chunk-OQWLQUO7.js} +3680 -877
  150. package/dist/chunks/chunk-OQWLQUO7.js.map +6 -0
  151. package/dist/chunks/{chunk-LXK7S2I2.js → chunk-OSC47PCX.js} +157 -11
  152. package/dist/chunks/chunk-OSC47PCX.js.map +6 -0
  153. package/dist/chunks/{chunk-ZDGKFGVE.js → chunk-P4TCLMD6.js} +2 -2
  154. package/dist/chunks/{chunk-WYBLTKBR.js → chunk-P725GKKG.js} +17 -20
  155. package/dist/chunks/{chunk-WYBLTKBR.js.map → chunk-P725GKKG.js.map} +1 -1
  156. package/dist/chunks/{chunk-IZYYWNP2.js → chunk-PFVYYH6O.js} +2 -2
  157. package/dist/chunks/{chunk-RP5HOVOW.js → chunk-PKFXIWVX.js} +4 -4
  158. package/dist/chunks/{chunk-ZWP5L7BV.js → chunk-PQT7624W.js} +8 -8
  159. package/dist/chunks/{chunk-DRKCWJPR.js → chunk-Q6PZODSV.js} +26 -13
  160. package/dist/chunks/chunk-Q6PZODSV.js.map +6 -0
  161. package/dist/chunks/{chunk-FEP2R3XI.js → chunk-QTHG6UPU.js} +2 -2
  162. package/dist/chunks/{chunk-MMJ6UURB.js → chunk-QZTTIL3A.js} +3 -3
  163. package/dist/chunks/chunk-RHJOIAFS.js +201 -0
  164. package/dist/chunks/chunk-RHJOIAFS.js.map +6 -0
  165. package/dist/chunks/{chunk-LWAGZIEA.js → chunk-RZKIZTPA.js} +2 -2
  166. package/dist/chunks/{chunk-QTQIHFYH.js → chunk-S7FE35WQ.js} +3 -3
  167. package/dist/chunks/{chunk-233CEYFX.js → chunk-SS6IJAPA.js} +2 -2
  168. package/dist/chunks/chunk-SSPHAILP.js +39 -0
  169. package/dist/chunks/chunk-SSPHAILP.js.map +6 -0
  170. package/dist/chunks/{chunk-5C6XCI24.js → chunk-TORIEDBN.js} +4 -4
  171. package/dist/chunks/{chunk-6E4TDPXP.js → chunk-TP7DRQXE.js} +25 -7
  172. package/dist/chunks/chunk-TP7DRQXE.js.map +6 -0
  173. package/dist/chunks/{chunk-OZ55WTNZ.js → chunk-TRRKG642.js} +3 -3
  174. package/dist/chunks/{dist-NUCTP67R.js → chunk-TYNAB5GR.js} +351 -46
  175. package/dist/chunks/chunk-TYNAB5GR.js.map +6 -0
  176. package/dist/chunks/{chunk-D5N3SDNF.js → chunk-UFGLSUGU.js} +25 -25
  177. package/dist/chunks/{list-2QV773EI.js → chunk-UL6MZ5OM.js} +87 -60
  178. package/dist/chunks/chunk-UL6MZ5OM.js.map +6 -0
  179. package/dist/chunks/{chunk-RYLQH5BB.js → chunk-VE4XIWDW.js} +3 -3
  180. package/dist/chunks/{chunk-GPP4OXHP.js → chunk-VJHENTNB.js} +2 -2
  181. package/dist/chunks/{chunk-3ZHOM2L7.js → chunk-VL6Z2OMG.js} +15 -63
  182. package/dist/chunks/chunk-VL6Z2OMG.js.map +6 -0
  183. package/dist/chunks/{chunk-6TF24TFD.js → chunk-VSNV3U2B.js} +57 -9
  184. package/dist/chunks/chunk-VSNV3U2B.js.map +6 -0
  185. package/dist/chunks/{chunk-PPCKNQOQ.js → chunk-W4S4ZBXX.js} +15 -11
  186. package/dist/chunks/chunk-W4S4ZBXX.js.map +6 -0
  187. package/dist/chunks/{chunk-AF2QPFEQ.js → chunk-W752G3FM.js} +3 -3
  188. package/dist/chunks/{chunk-REYJHS2X.js → chunk-WGC5DJEW.js} +106 -108
  189. package/dist/chunks/chunk-WGC5DJEW.js.map +6 -0
  190. package/dist/chunks/{chunk-FSAI4GDZ.js → chunk-WSDZIJNK.js} +11 -5
  191. package/dist/chunks/chunk-WSDZIJNK.js.map +6 -0
  192. package/dist/chunks/chunk-WW3AU2YN.js +220 -0
  193. package/dist/chunks/chunk-WW3AU2YN.js.map +6 -0
  194. package/dist/chunks/{chunk-UILPXAKQ.js → chunk-WXYRLTRY.js} +37 -14
  195. package/dist/chunks/chunk-WXYRLTRY.js.map +6 -0
  196. package/dist/chunks/{chunk-BFYETM56.js → chunk-XJALHM5Z.js} +91 -6
  197. package/dist/chunks/chunk-XJALHM5Z.js.map +6 -0
  198. package/dist/chunks/{chunk-4E2REC5O.js → chunk-XLXPPVUT.js} +2 -2
  199. package/dist/chunks/{chunk-BJQ7WFWL.js → chunk-XVOPQCPD.js} +35 -3
  200. package/dist/chunks/chunk-XVOPQCPD.js.map +6 -0
  201. package/dist/chunks/{chunk-NOHH27YE.js → chunk-YNWPC3HO.js} +5 -5
  202. package/dist/chunks/{chunk-ICIVSMA3.js → chunk-ZQGCZYAE.js} +2 -2
  203. package/dist/chunks/{cli-runtime-66YC7XKZ.js → cli-runtime-P6LCHPBA.js} +35 -20
  204. package/dist/chunks/cli-runtime-P6LCHPBA.js.map +6 -0
  205. package/dist/chunks/{commands-R6WIMNZG.js → commands-BNHIQVYO.js} +6 -6
  206. package/dist/chunks/{computer-FQRWTC6M.js → computer-6P3GAOV2.js} +15 -7
  207. package/dist/chunks/computer-6P3GAOV2.js.map +6 -0
  208. package/dist/chunks/{config-BWAJ7XDA.js → config-ZMXMX2WY.js} +20 -17
  209. package/dist/chunks/config-ZMXMX2WY.js.map +6 -0
  210. package/dist/chunks/{cost-MVUQ3UWP.js → cost-BJKADKEZ.js} +5 -5
  211. package/dist/chunks/{crash-report-ASOVDFQT.js → crash-report-OJHGVRD7.js} +6 -6
  212. package/dist/chunks/{dist-6BE2BTVP.js → dist-43XWK3LF.js} +2 -2
  213. package/dist/chunks/dist-4LEGETQA.js +52 -0
  214. package/dist/chunks/{dist-ZPPSUKEG.js → dist-4ZPDHZOX.js} +150 -2
  215. package/dist/chunks/{dist-SQYPEQ4A.js → dist-ADQAO5C3.js} +2 -2
  216. package/dist/chunks/{dist-DOHBDUFC.js → dist-BGJEX527.js} +2 -2
  217. package/dist/chunks/{dist-ERFNYYTR.js → dist-FMFNU4M3.js} +2 -2
  218. package/dist/chunks/{dist-IYSARJ7B.js → dist-NCBDELMI.js} +2 -2
  219. package/dist/chunks/{dist-UTQTSM32.js → dist-PMSBTFU5.js} +10 -2
  220. package/dist/chunks/{dist-UTQTSM32.js.map → dist-PMSBTFU5.js.map} +1 -1
  221. package/dist/chunks/{doctor-J2BRJDVI.js → doctor-AIYB27QY.js} +42 -41
  222. package/dist/chunks/{drain-TGBUG6MO.js → drain-PYKX4QNR.js} +20 -19
  223. package/dist/chunks/{drain-TGBUG6MO.js.map → drain-PYKX4QNR.js.map} +1 -1
  224. package/dist/chunks/{entry-7QM6GODJ.js → entry-HM5E7KCD.js} +6 -6
  225. package/dist/chunks/{eval-274GGZ3M.js → eval-H4NKZYVV.js} +12 -12
  226. package/dist/chunks/{eval-274GGZ3M.js.map → eval-H4NKZYVV.js.map} +1 -1
  227. package/dist/chunks/{exec-QOH5FQCM.js → exec-2PRVZNUX.js} +174 -65
  228. package/dist/chunks/exec-2PRVZNUX.js.map +6 -0
  229. package/dist/chunks/{extension-Y52E4FZR.js → extension-4233XOZW.js} +5 -5
  230. package/dist/chunks/{github-X352BD5R.js → github-IF3JVVJF.js} +5 -1
  231. package/dist/chunks/github-IF3JVVJF.js.map +6 -0
  232. package/dist/chunks/{home-OGOBLYWY.js → home-AZY7APF6.js} +3 -3
  233. package/dist/chunks/homes-WL6LAAY5.js +24 -0
  234. package/dist/chunks/{hooks-C6WM34FA.js → hooks-AK5S4YUS.js} +22 -22
  235. package/dist/chunks/{hooks-report-FCLN3ERK.js → hooks-report-NJLGBWN3.js} +18 -18
  236. package/dist/chunks/{host-FUPSAICG.js → host-SX3QC5FN.js} +10 -10
  237. package/dist/chunks/host-queries-HBW7AW44.js +37 -0
  238. package/dist/chunks/{installed-list-3Z2UYHZL.js → installed-list-44QXUJFE.js} +4 -4
  239. package/dist/chunks/{learn-EXNQYLI3.js → learn-LW4DLSGZ.js} +18 -18
  240. package/dist/chunks/{learn-builtin-C4ZAVNHA.js → learn-builtin-4RV2XDH4.js} +23 -22
  241. package/dist/chunks/{learn-builtin-C4ZAVNHA.js.map → learn-builtin-4RV2XDH4.js.map} +1 -1
  242. package/dist/chunks/{lifecycle-4ZRBSEP2.js → lifecycle-AJCHTSAF.js} +34 -34
  243. package/dist/chunks/list-DT7AJVPX.js +56 -0
  244. package/dist/chunks/{live-33QEKVAM.js → live-Z6HZFXPW.js} +41 -40
  245. package/dist/chunks/{load-SYMNQIDR.js → load-454TJBPW.js} +12 -10
  246. package/dist/chunks/{logs-IW7PYTI2.js → logs-GRUSUSL7.js} +5 -5
  247. package/dist/chunks/{mcp-HP3YRE3U.js → mcp-AFLRDYNN.js} +449 -61
  248. package/dist/chunks/mcp-AFLRDYNN.js.map +6 -0
  249. package/dist/chunks/mcp-serve-NNWP4IES.js +311 -0
  250. package/dist/chunks/mcp-serve-NNWP4IES.js.map +6 -0
  251. package/dist/chunks/{message-command-IFQSBBI5.js → message-command-ZR2JQBBU.js} +59 -54
  252. package/dist/chunks/message-command-ZR2JQBBU.js.map +6 -0
  253. package/dist/chunks/{open-3GVSPGUF.js → open-Z3BELFL7.js} +7 -7
  254. package/dist/chunks/{operator-tools-HT7UNWNK.js → operator-tools-PN3SPQ3C.js} +15 -16
  255. package/dist/chunks/operator-tools-PN3SPQ3C.js.map +6 -0
  256. package/dist/chunks/{output-schema-MKFI5PWR.js → output-schema-DSR56W6A.js} +3 -3
  257. package/dist/chunks/{pal-6KB3D324.js → pal-ZOH5ILEV.js} +150 -15
  258. package/dist/chunks/pal-ZOH5ILEV.js.map +6 -0
  259. package/dist/chunks/{peers-CGTVWK6B.js → peers-LXNB4QSL.js} +7 -7
  260. package/dist/chunks/{peers-4M45XTZO.js → peers-WINODTEB.js} +216 -34
  261. package/dist/chunks/peers-WINODTEB.js.map +6 -0
  262. package/dist/chunks/{plugin-FIVP6MGJ.js → plugin-MLHZ42NZ.js} +23 -18
  263. package/dist/chunks/plugin-MLHZ42NZ.js.map +6 -0
  264. package/dist/chunks/{providers-Z3KLRJDW.js → providers-AVECY67I.js} +10 -10
  265. package/dist/chunks/{providers-6634CTX7.js → providers-UOTUEQOJ.js} +22 -19
  266. package/dist/chunks/providers-UOTUEQOJ.js.map +6 -0
  267. package/dist/chunks/{pty-GMA24QAT.js → pty-GW2YC23H.js} +3 -3
  268. package/dist/chunks/resume-AYWSKWEX.js +25 -0
  269. package/dist/chunks/{resume-command-MXUIVG6T.js → resume-command-FXT3KGLC.js} +5 -5
  270. package/dist/chunks/{running-HYMQGZMF.js → running-3NLAODZ7.js} +4 -4
  271. package/dist/chunks/schedule-TTQUT45H.js +559 -0
  272. package/dist/chunks/schedule-TTQUT45H.js.map +6 -0
  273. package/dist/chunks/{send-IFZ7XPTF.js → send-FRNTRW2M.js} +19 -18
  274. package/dist/chunks/send-person-57F5RJA7.js +32 -0
  275. package/dist/chunks/{serve-CZDHGDZL.js → serve-4VIDXLEB.js} +2 -2
  276. package/dist/chunks/{service-Y5N7WIHV.js → service-TCKPUGL5.js} +459 -83
  277. package/dist/chunks/service-TCKPUGL5.js.map +6 -0
  278. package/dist/chunks/{setting-cli-CJMZHIMQ.js → setting-cli-HGYOIGC6.js} +13 -13
  279. package/dist/chunks/{skills-VSVXQTY3.js → skills-ICVGYWBH.js} +29 -25
  280. package/dist/chunks/skills-ICVGYWBH.js.map +6 -0
  281. package/dist/chunks/{start-check-MZGEYSQD.js → start-check-C5VJXVPY.js} +2 -2
  282. package/dist/chunks/{startup-failure-QS7O3M62.js → startup-failure-YQSEQRNQ.js} +2 -2
  283. package/dist/chunks/{state-IRA33PLY.js → state-2DBTSDEP.js} +560 -28
  284. package/dist/chunks/state-2DBTSDEP.js.map +6 -0
  285. package/dist/chunks/{store-5QOUJL3S.js → store-CZGKLVTT.js} +12 -13
  286. package/dist/chunks/{store-LIG46NWV.js → store-JJKCDY7Y.js} +6 -4
  287. package/dist/chunks/{store-VRWL26C2.js → store-RJZCW2MI.js} +8 -8
  288. package/dist/chunks/store-RJZCW2MI.js.map +6 -0
  289. package/dist/chunks/{store-N4CURUP2.js → store-S4BT3ESJ.js} +3 -3
  290. package/dist/chunks/store-S4BT3ESJ.js.map +6 -0
  291. package/dist/chunks/{tui-KFWUIY7N.js → tui-Q7ED7VFI.js} +110 -92
  292. package/dist/chunks/tui-Q7ED7VFI.js.map +6 -0
  293. package/dist/chunks/{upgrade-BIHZ3JJV.js → update-G7D3YCH5.js} +35 -35
  294. package/dist/chunks/{upgrade-BIHZ3JJV.js.map → update-G7D3YCH5.js.map} +2 -2
  295. package/dist/chunks/{watch-OUI2U5YK.js → watch-EON3IWRY.js} +104 -94
  296. package/dist/chunks/watch-EON3IWRY.js.map +6 -0
  297. package/dist/chunks/{workspaces-CB5DV4KR.js → workspaces-O6S2OTDL.js} +15 -20
  298. package/dist/chunks/workspaces-O6S2OTDL.js.map +6 -0
  299. package/dist/chunks/{worktree-PNG7MZV3.js → worktree-A2DNXLOT.js} +26 -23
  300. package/dist/chunks/worktree-A2DNXLOT.js.map +6 -0
  301. package/dist/cli-runtime.d.ts +3 -1
  302. package/dist/cli-runtime.d.ts.map +1 -1
  303. package/dist/cli.d.ts +15 -0
  304. package/dist/cli.d.ts.map +1 -1
  305. package/dist/commands/acp-browser-pane.d.ts +81 -0
  306. package/dist/commands/acp-browser-pane.d.ts.map +1 -0
  307. package/dist/commands/acp-desktop-question.d.ts +10 -7
  308. package/dist/commands/acp-desktop-question.d.ts.map +1 -1
  309. package/dist/commands/acp-provider-retry.d.ts +2 -1
  310. package/dist/commands/acp-provider-retry.d.ts.map +1 -1
  311. package/dist/commands/acp-screen-question.d.ts +6 -1
  312. package/dist/commands/acp-screen-question.d.ts.map +1 -1
  313. package/dist/commands/acp.d.ts +25 -1
  314. package/dist/commands/acp.d.ts.map +1 -1
  315. package/dist/commands/action-help.d.ts +37 -0
  316. package/dist/commands/action-help.d.ts.map +1 -0
  317. package/dist/commands/actions/auth.d.ts +3 -0
  318. package/dist/commands/actions/auth.d.ts.map +1 -0
  319. package/dist/commands/actions/browser.d.ts +3 -0
  320. package/dist/commands/actions/browser.d.ts.map +1 -0
  321. package/dist/commands/actions/extension.d.ts +3 -0
  322. package/dist/commands/actions/extension.d.ts.map +1 -0
  323. package/dist/commands/actions/mcp.d.ts +3 -0
  324. package/dist/commands/actions/mcp.d.ts.map +1 -0
  325. package/dist/commands/actions/pal.d.ts +3 -0
  326. package/dist/commands/actions/pal.d.ts.map +1 -0
  327. package/dist/commands/actions/peers.d.ts +3 -0
  328. package/dist/commands/actions/peers.d.ts.map +1 -0
  329. package/dist/commands/actions/schedule.d.ts +3 -0
  330. package/dist/commands/actions/schedule.d.ts.map +1 -0
  331. package/dist/commands/actions/small.d.ts +11 -0
  332. package/dist/commands/actions/small.d.ts.map +1 -0
  333. package/dist/commands/archive.d.ts.map +1 -1
  334. package/dist/commands/auth-status.d.ts +24 -0
  335. package/dist/commands/auth-status.d.ts.map +1 -0
  336. package/dist/commands/auth.d.ts +9 -0
  337. package/dist/commands/auth.d.ts.map +1 -0
  338. package/dist/commands/browser.d.ts.map +1 -1
  339. package/dist/commands/computer.d.ts.map +1 -1
  340. package/dist/commands/config.d.ts.map +1 -1
  341. package/dist/commands/desktop-host.d.ts +6 -3
  342. package/dist/commands/desktop-host.d.ts.map +1 -1
  343. package/dist/commands/drain.d.ts.map +1 -1
  344. package/dist/commands/exec-flags.d.ts +17 -3
  345. package/dist/commands/exec-flags.d.ts.map +1 -1
  346. package/dist/commands/exec-json.d.ts.map +1 -1
  347. package/dist/commands/exec.d.ts.map +1 -1
  348. package/dist/commands/extension.d.ts.map +1 -1
  349. package/dist/commands/github.d.ts.map +1 -1
  350. package/dist/commands/launch-extras.d.ts +49 -0
  351. package/dist/commands/launch-extras.d.ts.map +1 -0
  352. package/dist/commands/lazy.d.ts +3 -3
  353. package/dist/commands/lazy.d.ts.map +1 -1
  354. package/dist/commands/learn-builtin.d.ts.map +1 -1
  355. package/dist/commands/login.d.ts +1 -1
  356. package/dist/commands/manifest.d.ts +3 -4
  357. package/dist/commands/manifest.d.ts.map +1 -1
  358. package/dist/commands/mcp-serve.d.ts +16 -0
  359. package/dist/commands/mcp-serve.d.ts.map +1 -0
  360. package/dist/commands/mcp.d.ts.map +1 -1
  361. package/dist/commands/pal.d.ts.map +1 -1
  362. package/dist/commands/peers.d.ts +9 -1
  363. package/dist/commands/peers.d.ts.map +1 -1
  364. package/dist/commands/permission-preview.d.ts +2 -0
  365. package/dist/commands/permission-preview.d.ts.map +1 -1
  366. package/dist/commands/plugin.d.ts.map +1 -1
  367. package/dist/commands/providers.d.ts.map +1 -1
  368. package/dist/commands/registry.d.ts.map +1 -1
  369. package/dist/commands/run-flags.d.ts +10 -2
  370. package/dist/commands/run-flags.d.ts.map +1 -1
  371. package/dist/commands/schedule.d.ts.map +1 -1
  372. package/dist/commands/skills.d.ts.map +1 -1
  373. package/dist/commands/state.d.ts +11 -0
  374. package/dist/commands/state.d.ts.map +1 -1
  375. package/dist/commands/types.d.ts +9 -2
  376. package/dist/commands/types.d.ts.map +1 -1
  377. package/dist/commands/{upgrade-progress.d.ts → update-progress.d.ts} +3 -3
  378. package/dist/commands/update-progress.d.ts.map +1 -0
  379. package/dist/commands/{upgrade.d.ts → update.d.ts} +9 -9
  380. package/dist/commands/update.d.ts.map +1 -0
  381. package/dist/commands/workspaces.d.ts +1 -1
  382. package/dist/commands/workspaces.d.ts.map +1 -1
  383. package/dist/commands/worktree.d.ts.map +1 -1
  384. package/dist/computer/run.d.ts.map +1 -1
  385. package/dist/config/debug.d.ts.map +1 -1
  386. package/dist/config/hook-common-shape.d.ts.map +1 -1
  387. package/dist/config/hooks-report.d.ts +3 -1
  388. package/dist/config/hooks-report.d.ts.map +1 -1
  389. package/dist/config/load.d.ts +40 -0
  390. package/dist/config/load.d.ts.map +1 -1
  391. package/dist/config/schema.d.ts +70 -2
  392. package/dist/config/schema.d.ts.map +1 -1
  393. package/dist/config/session-options.d.ts +1 -1
  394. package/dist/config/session-options.d.ts.map +1 -1
  395. package/dist/config/settings-descriptors.d.ts.map +1 -1
  396. package/dist/config/skill-hooks-reader.d.ts.map +1 -1
  397. package/dist/context/doctrine.d.ts.map +1 -1
  398. package/dist/context/environment.d.ts +15 -0
  399. package/dist/context/environment.d.ts.map +1 -1
  400. package/dist/context/file-placement.d.ts.map +1 -1
  401. package/dist/context/project-tracker.d.ts +3 -0
  402. package/dist/context/project-tracker.d.ts.map +1 -1
  403. package/dist/context/system-prompt.d.ts +6 -0
  404. package/dist/context/system-prompt.d.ts.map +1 -1
  405. package/dist/exit-process.d.ts +3 -0
  406. package/dist/exit-process.d.ts.map +1 -0
  407. package/dist/flush-stdio.d.ts +8 -0
  408. package/dist/flush-stdio.d.ts.map +1 -0
  409. package/dist/index.js +42 -41
  410. package/dist/integrations/auto-update/apply.d.ts +1 -1
  411. package/dist/integrations/auto-update/apply.d.ts.map +1 -1
  412. package/dist/integrations/auto-update/policy.d.ts +1 -1
  413. package/dist/integrations/auto-update/policy.d.ts.map +1 -1
  414. package/dist/integrations/auto-update/state.d.ts +1 -1
  415. package/dist/integrations/auto-update/state.d.ts.map +1 -1
  416. package/dist/integrations/decision/routing.d.ts +8 -0
  417. package/dist/integrations/decision/routing.d.ts.map +1 -1
  418. package/dist/integrations/extensions/host.d.ts.map +1 -1
  419. package/dist/integrations/extensions/query.d.ts +10 -0
  420. package/dist/integrations/extensions/query.d.ts.map +1 -1
  421. package/dist/integrations/extensions/supervisor.d.ts +14 -0
  422. package/dist/integrations/extensions/supervisor.d.ts.map +1 -1
  423. package/dist/integrations/images/generate-image.d.ts +47 -0
  424. package/dist/integrations/images/generate-image.d.ts.map +1 -0
  425. package/dist/integrations/images/image-access.d.ts +20 -0
  426. package/dist/integrations/images/image-access.d.ts.map +1 -0
  427. package/dist/integrations/mcp/project-file.d.ts +16 -0
  428. package/dist/integrations/mcp/project-file.d.ts.map +1 -0
  429. package/dist/integrations/mcp/serve.d.ts +55 -0
  430. package/dist/integrations/mcp/serve.d.ts.map +1 -0
  431. package/dist/integrations/mcp/servers.d.ts +42 -1
  432. package/dist/integrations/mcp/servers.d.ts.map +1 -1
  433. package/dist/integrations/mcp/shared-file.d.ts +2 -1
  434. package/dist/integrations/mcp/shared-file.d.ts.map +1 -1
  435. package/dist/integrations/network/computer-secret.d.ts +11 -0
  436. package/dist/integrations/network/computer-secret.d.ts.map +1 -0
  437. package/dist/integrations/network/controller.d.ts.map +1 -1
  438. package/dist/integrations/network/format.d.ts +13 -9
  439. package/dist/integrations/network/format.d.ts.map +1 -1
  440. package/dist/integrations/network/policy.d.ts.map +1 -1
  441. package/dist/integrations/network/runtime.d.ts +9 -0
  442. package/dist/integrations/network/runtime.d.ts.map +1 -1
  443. package/dist/integrations/network/session-list.d.ts +77 -0
  444. package/dist/integrations/network/session-list.d.ts.map +1 -0
  445. package/dist/integrations/network/types.d.ts +5 -1
  446. package/dist/integrations/network/types.d.ts.map +1 -1
  447. package/dist/integrations/npm-global.d.ts +2 -2
  448. package/dist/integrations/npm-global.d.ts.map +1 -1
  449. package/dist/integrations/outstanding/status.d.ts +4 -0
  450. package/dist/integrations/outstanding/status.d.ts.map +1 -1
  451. package/dist/integrations/peers/runtime.d.ts +1 -0
  452. package/dist/integrations/peers/runtime.d.ts.map +1 -1
  453. package/dist/integrations/peers/send-once.d.ts +14 -3
  454. package/dist/integrations/peers/send-once.d.ts.map +1 -1
  455. package/dist/integrations/plugins/lifecycle-events.d.ts +10 -0
  456. package/dist/integrations/plugins/lifecycle-events.d.ts.map +1 -1
  457. package/dist/integrations/providers/connections.d.ts +1 -1
  458. package/dist/integrations/providers/connections.d.ts.map +1 -1
  459. package/dist/integrations/providers/harness-credentials.d.ts +5 -0
  460. package/dist/integrations/providers/harness-credentials.d.ts.map +1 -1
  461. package/dist/integrations/providers/pending-login.d.ts +1 -1
  462. package/dist/integrations/providers/subscription-login.d.ts +1 -1
  463. package/dist/integrations/sessions/session-watch.d.ts +8 -1
  464. package/dist/integrations/sessions/session-watch.d.ts.map +1 -1
  465. package/dist/integrations/state/purge.d.ts +66 -0
  466. package/dist/integrations/state/purge.d.ts.map +1 -0
  467. package/dist/integrations/subagents/activity.d.ts +21 -2
  468. package/dist/integrations/subagents/activity.d.ts.map +1 -1
  469. package/dist/integrations/subagents/agent-hooks.d.ts.map +1 -1
  470. package/dist/integrations/subagents/agent-names.d.ts +10 -6
  471. package/dist/integrations/subagents/agent-names.d.ts.map +1 -1
  472. package/dist/integrations/subagents/definitions.d.ts +8 -0
  473. package/dist/integrations/subagents/definitions.d.ts.map +1 -1
  474. package/dist/integrations/subagents/row-labels.d.ts +18 -0
  475. package/dist/integrations/subagents/row-labels.d.ts.map +1 -0
  476. package/dist/integrations/subagents/runtime.d.ts +49 -2
  477. package/dist/integrations/subagents/runtime.d.ts.map +1 -1
  478. package/dist/integrations/subagents/stop-guidance.d.ts +14 -0
  479. package/dist/integrations/subagents/stop-guidance.d.ts.map +1 -0
  480. package/dist/integrations/teams/colors.d.ts +31 -0
  481. package/dist/integrations/teams/colors.d.ts.map +1 -0
  482. package/dist/integrations/teams/enabled.d.ts +44 -0
  483. package/dist/integrations/teams/enabled.d.ts.map +1 -0
  484. package/dist/integrations/teams/host.d.ts +15 -0
  485. package/dist/integrations/teams/host.d.ts.map +1 -0
  486. package/dist/integrations/teams/runner.d.ts +278 -0
  487. package/dist/integrations/teams/runner.d.ts.map +1 -0
  488. package/dist/integrations/teams/view.d.ts +62 -0
  489. package/dist/integrations/teams/view.d.ts.map +1 -0
  490. package/dist/integrations/web/open-url.d.ts +1 -1
  491. package/dist/integrations/web/search.d.ts +1 -1
  492. package/dist/integrations/workflows/host.d.ts.map +1 -1
  493. package/dist/integrations/workflows/notice.d.ts +9 -0
  494. package/dist/integrations/workflows/notice.d.ts.map +1 -1
  495. package/dist/integrations/workflows/offering.d.ts +3 -2
  496. package/dist/integrations/workflows/offering.d.ts.map +1 -1
  497. package/dist/integrations/workflows/orphans.d.ts +17 -0
  498. package/dist/integrations/workflows/orphans.d.ts.map +1 -1
  499. package/dist/integrations/workflows/owners.d.ts +17 -0
  500. package/dist/integrations/workflows/owners.d.ts.map +1 -0
  501. package/dist/integrations/workflows/registry.d.ts +17 -2
  502. package/dist/integrations/workflows/registry.d.ts.map +1 -1
  503. package/dist/logging.d.ts +10 -1
  504. package/dist/logging.d.ts.map +1 -1
  505. package/dist/memory/screen-archive.d.ts +2 -0
  506. package/dist/memory/screen-archive.d.ts.map +1 -1
  507. package/dist/pals/agent-session.d.ts.map +1 -1
  508. package/dist/pals/dispatch.d.ts.map +1 -1
  509. package/dist/permissions/auto-classifier.d.ts.map +1 -1
  510. package/dist/permissions/launch.d.ts +1 -1
  511. package/dist/permissions/mode.d.ts +2 -2
  512. package/dist/permissions/path-rules.d.ts.map +1 -1
  513. package/dist/permissions/rules.d.ts +2 -0
  514. package/dist/permissions/rules.d.ts.map +1 -1
  515. package/dist/permissions/tool-flags.d.ts +5 -1
  516. package/dist/permissions/tool-flags.d.ts.map +1 -1
  517. package/dist/reminders/changed-files.d.ts.map +1 -1
  518. package/dist/reminders/frame.d.ts +1 -1
  519. package/dist/reminders/frame.d.ts.map +1 -1
  520. package/dist/reminders/hypermode.d.ts.map +1 -1
  521. package/dist/reminders/index.d.ts +3 -0
  522. package/dist/reminders/index.d.ts.map +1 -1
  523. package/dist/reminders/memory-nudge.d.ts +20 -0
  524. package/dist/reminders/memory-nudge.d.ts.map +1 -0
  525. package/dist/schedule/commands/add.d.ts.map +1 -1
  526. package/dist/schedule/commands/list.d.ts.map +1 -1
  527. package/dist/schedule/commands/service.d.ts +8 -0
  528. package/dist/schedule/commands/service.d.ts.map +1 -1
  529. package/dist/schedule/fire/fire.d.ts +1 -1
  530. package/dist/schedule/fire/fire.d.ts.map +1 -1
  531. package/dist/schedule/folder.d.ts +8 -1
  532. package/dist/schedule/folder.d.ts.map +1 -1
  533. package/dist/schedule/policy.d.ts.map +1 -1
  534. package/dist/schedule/service/homes.d.ts +56 -0
  535. package/dist/schedule/service/homes.d.ts.map +1 -0
  536. package/dist/schedule/service/move.d.ts +48 -0
  537. package/dist/schedule/service/move.d.ts.map +1 -0
  538. package/dist/schedule/service/names.d.ts +2 -1
  539. package/dist/schedule/service/names.d.ts.map +1 -1
  540. package/dist/schedule/service/registry.d.ts +6 -0
  541. package/dist/schedule/service/registry.d.ts.map +1 -1
  542. package/dist/schedule/service/target.d.ts +3 -1
  543. package/dist/schedule/service/target.d.ts.map +1 -1
  544. package/dist/skills/catalog.d.ts +7 -0
  545. package/dist/skills/catalog.d.ts.map +1 -1
  546. package/dist/skills/directory.d.ts.map +1 -1
  547. package/dist/skills/retired.d.ts +19 -0
  548. package/dist/skills/retired.d.ts.map +1 -0
  549. package/dist/skills/save-card.d.ts +42 -0
  550. package/dist/skills/save-card.d.ts.map +1 -0
  551. package/dist/skills/save.d.ts +25 -1
  552. package/dist/skills/save.d.ts.map +1 -1
  553. package/dist/skills/skill-hooks.d.ts +2 -2
  554. package/dist/skills/skill-hooks.d.ts.map +1 -1
  555. package/dist/skills/skill-shell.d.ts +99 -0
  556. package/dist/skills/skill-shell.d.ts.map +1 -0
  557. package/dist/skills/store.d.ts +7 -0
  558. package/dist/skills/store.d.ts.map +1 -1
  559. package/dist/skills/typed-command-load.d.ts +45 -0
  560. package/dist/skills/typed-command-load.d.ts.map +1 -0
  561. package/dist/tui/AgentExplorer.d.ts +82 -29
  562. package/dist/tui/AgentExplorer.d.ts.map +1 -1
  563. package/dist/tui/App.d.ts.map +1 -1
  564. package/dist/tui/Checklist.d.ts +12 -0
  565. package/dist/tui/Checklist.d.ts.map +1 -1
  566. package/dist/tui/Composer.d.ts +6 -7
  567. package/dist/tui/Composer.d.ts.map +1 -1
  568. package/dist/tui/CopyPicker.d.ts +1 -3
  569. package/dist/tui/CopyPicker.d.ts.map +1 -1
  570. package/dist/tui/Markdown.d.ts +7 -1
  571. package/dist/tui/Markdown.d.ts.map +1 -1
  572. package/dist/tui/PendingInputPanel.d.ts +2 -0
  573. package/dist/tui/PendingInputPanel.d.ts.map +1 -1
  574. package/dist/tui/PermissionOverlay.d.ts +8 -1
  575. package/dist/tui/PermissionOverlay.d.ts.map +1 -1
  576. package/dist/tui/ScheduleReviewOverlay.d.ts +2 -0
  577. package/dist/tui/ScheduleReviewOverlay.d.ts.map +1 -1
  578. package/dist/tui/StatusBar.d.ts +8 -1
  579. package/dist/tui/StatusBar.d.ts.map +1 -1
  580. package/dist/tui/TaskList.d.ts +6 -2
  581. package/dist/tui/TaskList.d.ts.map +1 -1
  582. package/dist/tui/Transcript.d.ts.map +1 -1
  583. package/dist/tui/agent-calls.d.ts.map +1 -1
  584. package/dist/tui/agent-transcript-rows.d.ts +4 -0
  585. package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
  586. package/dist/tui/agent.d.ts +139 -8
  587. package/dist/tui/agent.d.ts.map +1 -1
  588. package/dist/tui/box-rows.d.ts +35 -0
  589. package/dist/tui/box-rows.d.ts.map +1 -0
  590. package/dist/tui/computer-use-screen-approval.d.ts +18 -0
  591. package/dist/tui/computer-use-screen-approval.d.ts.map +1 -1
  592. package/dist/tui/context-grid.d.ts +5 -0
  593. package/dist/tui/context-grid.d.ts.map +1 -1
  594. package/dist/tui/copy-targets.d.ts +0 -13
  595. package/dist/tui/copy-targets.d.ts.map +1 -1
  596. package/dist/tui/fullscreen/FullscreenTranscript.d.ts +3 -2
  597. package/dist/tui/fullscreen/FullscreenTranscript.d.ts.map +1 -1
  598. package/dist/tui/generated-image-rows.d.ts +12 -0
  599. package/dist/tui/generated-image-rows.d.ts.map +1 -0
  600. package/dist/tui/keypad-keys.d.ts +1 -1
  601. package/dist/tui/keypad-keys.d.ts.map +1 -1
  602. package/dist/tui/launch-settings.d.ts +2 -0
  603. package/dist/tui/launch-settings.d.ts.map +1 -1
  604. package/dist/tui/login-prompt.d.ts +1 -1
  605. package/dist/tui/markdown-wrap.d.ts +4 -0
  606. package/dist/tui/markdown-wrap.d.ts.map +1 -1
  607. package/dist/tui/notice-display.d.ts +8 -0
  608. package/dist/tui/notice-display.d.ts.map +1 -0
  609. package/dist/tui/outcome-line.d.ts.map +1 -1
  610. package/dist/tui/permission-asks.d.ts +7 -0
  611. package/dist/tui/permission-asks.d.ts.map +1 -1
  612. package/dist/tui/permission-review.d.ts.map +1 -1
  613. package/dist/tui/resize-settle.d.ts +26 -0
  614. package/dist/tui/resize-settle.d.ts.map +1 -0
  615. package/dist/tui/restored-rows.d.ts +5 -1
  616. package/dist/tui/restored-rows.d.ts.map +1 -1
  617. package/dist/tui/schedule/host-commands.d.ts.map +1 -1
  618. package/dist/tui/shell-expansion-slot.d.ts +30 -0
  619. package/dist/tui/shell-expansion-slot.d.ts.map +1 -0
  620. package/dist/tui/slashCommands.d.ts +8 -5
  621. package/dist/tui/slashCommands.d.ts.map +1 -1
  622. package/dist/tui/stopped-turn-line.d.ts +22 -0
  623. package/dist/tui/stopped-turn-line.d.ts.map +1 -0
  624. package/dist/tui/team-rows.d.ts +98 -0
  625. package/dist/tui/team-rows.d.ts.map +1 -0
  626. package/dist/tui/team-view.d.ts +169 -0
  627. package/dist/tui/team-view.d.ts.map +1 -0
  628. package/dist/tui/tidy-tool-output.d.ts.map +1 -1
  629. package/dist/tui/tool-end-rows.d.ts +1 -2
  630. package/dist/tui/tool-end-rows.d.ts.map +1 -1
  631. package/dist/tui/tool-presentation.d.ts +2 -0
  632. package/dist/tui/tool-presentation.d.ts.map +1 -1
  633. package/dist/tui/types.d.ts +31 -2
  634. package/dist/tui/types.d.ts.map +1 -1
  635. package/dist/tui/untrusted-display.d.ts +12 -0
  636. package/dist/tui/untrusted-display.d.ts.map +1 -0
  637. package/dist/tui/web-activity.d.ts +4 -2
  638. package/dist/tui/web-activity.d.ts.map +1 -1
  639. package/dist/usage-error.d.ts.map +1 -1
  640. package/dist/user-commands/mcp-skill-commands.d.ts +21 -0
  641. package/dist/user-commands/mcp-skill-commands.d.ts.map +1 -0
  642. package/dist/user-commands/store.d.ts +24 -0
  643. package/dist/user-commands/store.d.ts.map +1 -1
  644. package/package.json +8 -8
  645. package/skills/README.md +14 -3
  646. package/skills/batch/SKILL.md +53 -0
  647. package/skills/commit/SKILL.md +46 -0
  648. package/skills/debug/SKILL.md +47 -0
  649. package/skills/deep-research/SKILL.md +102 -0
  650. package/skills/document/SKILL.md +40 -18
  651. package/skills/fewer-permission-prompts/SKILL.md +58 -0
  652. package/skills/pdf/SKILL.md +93 -0
  653. package/skills/pr/SKILL.md +50 -0
  654. package/skills/review-changes/SKILL.md +1 -1
  655. package/skills/run/SKILL.md +179 -0
  656. package/skills/run-skill-generator/SKILL.md +144 -0
  657. package/skills/security-review/SKILL.md +48 -0
  658. package/skills/simplify/SKILL.md +52 -0
  659. package/skills/skill-creator/SKILL.md +15 -6
  660. package/skills/update-config/SKILL.md +75 -0
  661. package/dist/chunks/acp-DEH76VXL.js.map +0 -6
  662. package/dist/chunks/activity-command-GETWRD67.js.map +0 -6
  663. package/dist/chunks/add-XFYJ6UZE.js.map +0 -6
  664. package/dist/chunks/agent-session-2YJCVWPX.js +0 -87
  665. package/dist/chunks/archive-PA5MDKXC.js.map +0 -6
  666. package/dist/chunks/bin-main-RH4NLAPK.js.map +0 -6
  667. package/dist/chunks/browser-ZMNLA73K.js +0 -31
  668. package/dist/chunks/browser-ZMNLA73K.js.map +0 -6
  669. package/dist/chunks/chat-UNZSJZ6U.js.map +0 -6
  670. package/dist/chunks/chunk-2JFRYOBC.js.map +0 -6
  671. package/dist/chunks/chunk-2P2PDEZJ.js.map +0 -6
  672. package/dist/chunks/chunk-3EH4PF5T.js.map +0 -6
  673. package/dist/chunks/chunk-3ZHOM2L7.js.map +0 -6
  674. package/dist/chunks/chunk-4DNEDLBT.js.map +0 -6
  675. package/dist/chunks/chunk-5ZPCQ2HL.js.map +0 -6
  676. package/dist/chunks/chunk-6A4RDHHY.js +0 -10
  677. package/dist/chunks/chunk-6A4RDHHY.js.map +0 -6
  678. package/dist/chunks/chunk-6CI5CHBT.js.map +0 -6
  679. package/dist/chunks/chunk-6E4TDPXP.js.map +0 -6
  680. package/dist/chunks/chunk-6IWJ6JC6.js.map +0 -6
  681. package/dist/chunks/chunk-6MQHDX7R.js.map +0 -6
  682. package/dist/chunks/chunk-6TF24TFD.js.map +0 -6
  683. package/dist/chunks/chunk-7BF4FLOP.js.map +0 -6
  684. package/dist/chunks/chunk-AZXIYYVX.js.map +0 -6
  685. package/dist/chunks/chunk-BFYETM56.js.map +0 -6
  686. package/dist/chunks/chunk-BJQ7WFWL.js.map +0 -6
  687. package/dist/chunks/chunk-C7ZKC7HY.js.map +0 -6
  688. package/dist/chunks/chunk-CPDGXVVE.js +0 -94
  689. package/dist/chunks/chunk-CPDGXVVE.js.map +0 -6
  690. package/dist/chunks/chunk-DMHE6X3Y.js.map +0 -6
  691. package/dist/chunks/chunk-DRKCWJPR.js.map +0 -6
  692. package/dist/chunks/chunk-FNEQ77RJ.js.map +0 -6
  693. package/dist/chunks/chunk-FSAI4GDZ.js.map +0 -6
  694. package/dist/chunks/chunk-GJ6NI7JL.js.map +0 -6
  695. package/dist/chunks/chunk-HEFLKPCT.js.map +0 -6
  696. package/dist/chunks/chunk-JCH7IWMU.js.map +0 -6
  697. package/dist/chunks/chunk-LDU7AFNZ.js.map +0 -6
  698. package/dist/chunks/chunk-LGPOJEZK.js.map +0 -6
  699. package/dist/chunks/chunk-LXK7S2I2.js.map +0 -6
  700. package/dist/chunks/chunk-MY6JV4BT.js.map +0 -6
  701. package/dist/chunks/chunk-PJF46DI6.js.map +0 -6
  702. package/dist/chunks/chunk-PPCKNQOQ.js.map +0 -6
  703. package/dist/chunks/chunk-REYJHS2X.js.map +0 -6
  704. package/dist/chunks/chunk-UILPXAKQ.js.map +0 -6
  705. package/dist/chunks/chunk-XF243FQN.js.map +0 -6
  706. package/dist/chunks/chunk-ZR3VZG37.js.map +0 -6
  707. package/dist/chunks/cli-runtime-66YC7XKZ.js.map +0 -6
  708. package/dist/chunks/computer-FQRWTC6M.js.map +0 -6
  709. package/dist/chunks/config-BWAJ7XDA.js.map +0 -6
  710. package/dist/chunks/dist-NUCTP67R.js.map +0 -6
  711. package/dist/chunks/exec-QOH5FQCM.js.map +0 -6
  712. package/dist/chunks/github-X352BD5R.js.map +0 -6
  713. package/dist/chunks/host-queries-YTND6J2W.js +0 -38
  714. package/dist/chunks/list-2QV773EI.js.map +0 -6
  715. package/dist/chunks/login-KN5KQXOD.js +0 -38
  716. package/dist/chunks/mcp-HP3YRE3U.js.map +0 -6
  717. package/dist/chunks/message-command-IFQSBBI5.js.map +0 -6
  718. package/dist/chunks/operator-tools-HT7UNWNK.js.map +0 -6
  719. package/dist/chunks/pal-6KB3D324.js.map +0 -6
  720. package/dist/chunks/peers-4M45XTZO.js.map +0 -6
  721. package/dist/chunks/plugin-FIVP6MGJ.js.map +0 -6
  722. package/dist/chunks/providers-6634CTX7.js.map +0 -6
  723. package/dist/chunks/resume-OEUL3DML.js +0 -26
  724. package/dist/chunks/schedule-54POTO5A.js +0 -282
  725. package/dist/chunks/schedule-54POTO5A.js.map +0 -6
  726. package/dist/chunks/send-person-YV7Y3N7V.js +0 -31
  727. package/dist/chunks/service-Y5N7WIHV.js.map +0 -6
  728. package/dist/chunks/skills-VSVXQTY3.js.map +0 -6
  729. package/dist/chunks/state-IRA33PLY.js.map +0 -6
  730. package/dist/chunks/tui-KFWUIY7N.js.map +0 -6
  731. package/dist/chunks/watch-OUI2U5YK.js.map +0 -6
  732. package/dist/chunks/workspaces-CB5DV4KR.js.map +0 -6
  733. package/dist/chunks/worktree-PNG7MZV3.js.map +0 -6
  734. package/dist/commands/upgrade-progress.d.ts.map +0 -1
  735. package/dist/commands/upgrade.d.ts.map +0 -1
  736. package/skills/verify-change/SKILL.md +0 -63
  737. /package/dist/chunks/{agent-FW4VC2AF.js.map → agent-Z6PJYBAO.js.map} +0 -0
  738. /package/dist/chunks/{agent-session-2YJCVWPX.js.map → agent-session-WXWW7E5M.js.map} +0 -0
  739. /package/dist/chunks/{binding-ON644UJ3.js.map → binding-5UJYMFMU.js.map} +0 -0
  740. /package/dist/chunks/{chunk-IMXTM75Q.js.map → chunk-23D5IXMW.js.map} +0 -0
  741. /package/dist/chunks/{chunk-PYYDU2BC.js.map → chunk-24EZWZDZ.js.map} +0 -0
  742. /package/dist/chunks/{chunk-WDROVY6V.js.map → chunk-2EVP6BX4.js.map} +0 -0
  743. /package/dist/chunks/{chunk-M4XYHIA3.js.map → chunk-2KC52MDS.js.map} +0 -0
  744. /package/dist/chunks/{chunk-GVWDNFIP.js.map → chunk-2VP2Q657.js.map} +0 -0
  745. /package/dist/chunks/{chunk-Z6LUWKV4.js.map → chunk-3ETXWTV4.js.map} +0 -0
  746. /package/dist/chunks/{chunk-3Z5OXTDI.js.map → chunk-3PH6F6Z3.js.map} +0 -0
  747. /package/dist/chunks/{chunk-GWLUXO4O.js.map → chunk-4RW7GDJ4.js.map} +0 -0
  748. /package/dist/chunks/{chunk-NP4BQ7SB.js.map → chunk-4TJ7AGQO.js.map} +0 -0
  749. /package/dist/chunks/{chunk-Y62WSR5N.js.map → chunk-567CSU37.js.map} +0 -0
  750. /package/dist/chunks/{chunk-DGV6YSAW.js.map → chunk-5HMJ3DYR.js.map} +0 -0
  751. /package/dist/chunks/{chunk-DT6PTS6H.js.map → chunk-6CSJRIUZ.js.map} +0 -0
  752. /package/dist/chunks/{chunk-5YTGRS7U.js.map → chunk-7J23SPSX.js.map} +0 -0
  753. /package/dist/chunks/{chunk-SKFBM6OJ.js.map → chunk-AEXGGJUW.js.map} +0 -0
  754. /package/dist/chunks/{chunk-BXAUUC2B.js.map → chunk-AIQKSTVJ.js.map} +0 -0
  755. /package/dist/chunks/{chunk-3HT7FQNG.js.map → chunk-CEZW3NVM.js.map} +0 -0
  756. /package/dist/chunks/{chunk-KUIATFLN.js.map → chunk-CG5CGXNF.js.map} +0 -0
  757. /package/dist/chunks/{chunk-HENM67TJ.js.map → chunk-CNSKJ3DZ.js.map} +0 -0
  758. /package/dist/chunks/{chunk-W6UOMYDX.js.map → chunk-CQFWLYTK.js.map} +0 -0
  759. /package/dist/chunks/{chunk-M5LA652U.js.map → chunk-DGYMR4WJ.js.map} +0 -0
  760. /package/dist/chunks/{chunk-ABELB4VO.js.map → chunk-DJKWBSVM.js.map} +0 -0
  761. /package/dist/chunks/{chunk-HIHHTWEU.js.map → chunk-DJTCZSSY.js.map} +0 -0
  762. /package/dist/chunks/{chunk-VV6DYTFU.js.map → chunk-DKSFQRUM.js.map} +0 -0
  763. /package/dist/chunks/{chunk-SHFB4DZP.js.map → chunk-E4RVHFV6.js.map} +0 -0
  764. /package/dist/chunks/{chunk-NV7RJBWA.js.map → chunk-E65IWYTT.js.map} +0 -0
  765. /package/dist/chunks/{chunk-PI5ZZQVH.js.map → chunk-EA6YICQ7.js.map} +0 -0
  766. /package/dist/chunks/{chunk-JR6EFL7G.js.map → chunk-EGGO56FY.js.map} +0 -0
  767. /package/dist/chunks/{chunk-TBKSDYS4.js.map → chunk-ESIICAI3.js.map} +0 -0
  768. /package/dist/chunks/{chunk-MOMSIAV4.js.map → chunk-FEOS7UZ2.js.map} +0 -0
  769. /package/dist/chunks/{chunk-JDWCVWIQ.js.map → chunk-FMQCPAKR.js.map} +0 -0
  770. /package/dist/chunks/{chunk-2ZPB4ZBP.js.map → chunk-GEVWZWLM.js.map} +0 -0
  771. /package/dist/chunks/{chunk-WSQAVWIV.js.map → chunk-HW2QBNAA.js.map} +0 -0
  772. /package/dist/chunks/{chunk-DOLGKZC5.js.map → chunk-IRAG3YXW.js.map} +0 -0
  773. /package/dist/chunks/{chunk-77AYLILT.js.map → chunk-J5E4DV6R.js.map} +0 -0
  774. /package/dist/chunks/{chunk-6TCZN54R.js.map → chunk-JPM3JXZB.js.map} +0 -0
  775. /package/dist/chunks/{chunk-6BTNPDXR.js.map → chunk-JRWUIW4J.js.map} +0 -0
  776. /package/dist/chunks/{chunk-CKYGPQVJ.js.map → chunk-KBLYZ7L7.js.map} +0 -0
  777. /package/dist/chunks/{chunk-6MGRBXCW.js.map → chunk-KETRBV2E.js.map} +0 -0
  778. /package/dist/chunks/{chunk-RSO4LBHJ.js.map → chunk-KPOOM7QT.js.map} +0 -0
  779. /package/dist/chunks/{chunk-WCAKWRZU.js.map → chunk-KVNL7XA6.js.map} +0 -0
  780. /package/dist/chunks/{chunk-4PFTZNS5.js.map → chunk-LWJJDERP.js.map} +0 -0
  781. /package/dist/chunks/{chunk-763RT6Z5.js.map → chunk-MDVYEFTI.js.map} +0 -0
  782. /package/dist/chunks/{chunk-DROVNI2Y.js.map → chunk-MF57EX7H.js.map} +0 -0
  783. /package/dist/chunks/{chunk-J6QCR3SC.js.map → chunk-MF5KTVGJ.js.map} +0 -0
  784. /package/dist/chunks/{chunk-S7YXINNY.js.map → chunk-O2PZDA5H.js.map} +0 -0
  785. /package/dist/chunks/{chunk-PK7M7VIU.js.map → chunk-OA7QKUCM.js.map} +0 -0
  786. /package/dist/chunks/{chunk-ZDGKFGVE.js.map → chunk-P4TCLMD6.js.map} +0 -0
  787. /package/dist/chunks/{chunk-IZYYWNP2.js.map → chunk-PFVYYH6O.js.map} +0 -0
  788. /package/dist/chunks/{chunk-RP5HOVOW.js.map → chunk-PKFXIWVX.js.map} +0 -0
  789. /package/dist/chunks/{chunk-ZWP5L7BV.js.map → chunk-PQT7624W.js.map} +0 -0
  790. /package/dist/chunks/{chunk-FEP2R3XI.js.map → chunk-QTHG6UPU.js.map} +0 -0
  791. /package/dist/chunks/{chunk-MMJ6UURB.js.map → chunk-QZTTIL3A.js.map} +0 -0
  792. /package/dist/chunks/{chunk-LWAGZIEA.js.map → chunk-RZKIZTPA.js.map} +0 -0
  793. /package/dist/chunks/{chunk-QTQIHFYH.js.map → chunk-S7FE35WQ.js.map} +0 -0
  794. /package/dist/chunks/{chunk-233CEYFX.js.map → chunk-SS6IJAPA.js.map} +0 -0
  795. /package/dist/chunks/{chunk-5C6XCI24.js.map → chunk-TORIEDBN.js.map} +0 -0
  796. /package/dist/chunks/{chunk-OZ55WTNZ.js.map → chunk-TRRKG642.js.map} +0 -0
  797. /package/dist/chunks/{chunk-D5N3SDNF.js.map → chunk-UFGLSUGU.js.map} +0 -0
  798. /package/dist/chunks/{chunk-RYLQH5BB.js.map → chunk-VE4XIWDW.js.map} +0 -0
  799. /package/dist/chunks/{chunk-GPP4OXHP.js.map → chunk-VJHENTNB.js.map} +0 -0
  800. /package/dist/chunks/{chunk-AF2QPFEQ.js.map → chunk-W752G3FM.js.map} +0 -0
  801. /package/dist/chunks/{chunk-4E2REC5O.js.map → chunk-XLXPPVUT.js.map} +0 -0
  802. /package/dist/chunks/{chunk-NOHH27YE.js.map → chunk-YNWPC3HO.js.map} +0 -0
  803. /package/dist/chunks/{chunk-ICIVSMA3.js.map → chunk-ZQGCZYAE.js.map} +0 -0
  804. /package/dist/chunks/{commands-R6WIMNZG.js.map → commands-BNHIQVYO.js.map} +0 -0
  805. /package/dist/chunks/{cost-MVUQ3UWP.js.map → cost-BJKADKEZ.js.map} +0 -0
  806. /package/dist/chunks/{crash-report-ASOVDFQT.js.map → crash-report-OJHGVRD7.js.map} +0 -0
  807. /package/dist/chunks/{dist-6BE2BTVP.js.map → dist-43XWK3LF.js.map} +0 -0
  808. /package/dist/chunks/{dist-ZPPSUKEG.js.map → dist-4LEGETQA.js.map} +0 -0
  809. /package/dist/chunks/{doctor-J2BRJDVI.js.map → dist-4ZPDHZOX.js.map} +0 -0
  810. /package/dist/chunks/{dist-SQYPEQ4A.js.map → dist-ADQAO5C3.js.map} +0 -0
  811. /package/dist/chunks/{dist-DOHBDUFC.js.map → dist-BGJEX527.js.map} +0 -0
  812. /package/dist/chunks/{dist-ERFNYYTR.js.map → dist-FMFNU4M3.js.map} +0 -0
  813. /package/dist/chunks/{dist-IYSARJ7B.js.map → dist-NCBDELMI.js.map} +0 -0
  814. /package/dist/chunks/{extension-Y52E4FZR.js.map → doctor-AIYB27QY.js.map} +0 -0
  815. /package/dist/chunks/{entry-7QM6GODJ.js.map → entry-HM5E7KCD.js.map} +0 -0
  816. /package/dist/chunks/{home-OGOBLYWY.js.map → extension-4233XOZW.js.map} +0 -0
  817. /package/dist/chunks/{hooks-report-FCLN3ERK.js.map → home-AZY7APF6.js.map} +0 -0
  818. /package/dist/chunks/{host-FUPSAICG.js.map → homes-WL6LAAY5.js.map} +0 -0
  819. /package/dist/chunks/{hooks-C6WM34FA.js.map → hooks-AK5S4YUS.js.map} +0 -0
  820. /package/dist/chunks/{host-queries-YTND6J2W.js.map → hooks-report-NJLGBWN3.js.map} +0 -0
  821. /package/dist/chunks/{lifecycle-4ZRBSEP2.js.map → host-SX3QC5FN.js.map} +0 -0
  822. /package/dist/chunks/{live-33QEKVAM.js.map → host-queries-HBW7AW44.js.map} +0 -0
  823. /package/dist/chunks/{installed-list-3Z2UYHZL.js.map → installed-list-44QXUJFE.js.map} +0 -0
  824. /package/dist/chunks/{learn-EXNQYLI3.js.map → learn-LW4DLSGZ.js.map} +0 -0
  825. /package/dist/chunks/{load-SYMNQIDR.js.map → lifecycle-AJCHTSAF.js.map} +0 -0
  826. /package/dist/chunks/{login-KN5KQXOD.js.map → list-DT7AJVPX.js.map} +0 -0
  827. /package/dist/chunks/{open-3GVSPGUF.js.map → live-Z6HZFXPW.js.map} +0 -0
  828. /package/dist/chunks/{output-schema-MKFI5PWR.js.map → load-454TJBPW.js.map} +0 -0
  829. /package/dist/chunks/{logs-IW7PYTI2.js.map → logs-GRUSUSL7.js.map} +0 -0
  830. /package/dist/chunks/{peers-CGTVWK6B.js.map → open-Z3BELFL7.js.map} +0 -0
  831. /package/dist/chunks/{providers-Z3KLRJDW.js.map → output-schema-DSR56W6A.js.map} +0 -0
  832. /package/dist/chunks/{pty-GMA24QAT.js.map → peers-LXNB4QSL.js.map} +0 -0
  833. /package/dist/chunks/{resume-OEUL3DML.js.map → providers-AVECY67I.js.map} +0 -0
  834. /package/dist/chunks/{resume-command-MXUIVG6T.js.map → pty-GW2YC23H.js.map} +0 -0
  835. /package/dist/chunks/{running-HYMQGZMF.js.map → resume-AYWSKWEX.js.map} +0 -0
  836. /package/dist/chunks/{send-IFZ7XPTF.js.map → resume-command-FXT3KGLC.js.map} +0 -0
  837. /package/dist/chunks/{send-person-YV7Y3N7V.js.map → running-3NLAODZ7.js.map} +0 -0
  838. /package/dist/chunks/{setting-cli-CJMZHIMQ.js.map → send-FRNTRW2M.js.map} +0 -0
  839. /package/dist/chunks/{start-check-MZGEYSQD.js.map → send-person-57F5RJA7.js.map} +0 -0
  840. /package/dist/chunks/{serve-CZDHGDZL.js.map → serve-4VIDXLEB.js.map} +0 -0
  841. /package/dist/chunks/{store-5QOUJL3S.js.map → setting-cli-HGYOIGC6.js.map} +0 -0
  842. /package/dist/chunks/{store-LIG46NWV.js.map → start-check-C5VJXVPY.js.map} +0 -0
  843. /package/dist/chunks/{startup-failure-QS7O3M62.js.map → startup-failure-YQSEQRNQ.js.map} +0 -0
  844. /package/dist/chunks/{store-N4CURUP2.js.map → store-CZGKLVTT.js.map} +0 -0
  845. /package/dist/chunks/{store-VRWL26C2.js.map → store-JJKCDY7Y.js.map} +0 -0
@@ -1,16 +1,36 @@
1
1
  import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
+ import {
4
+ holderPidOf,
5
+ processIsAlive
6
+ } from "./chunk-IJ6Z6FNY.js";
7
+ import {
8
+ promptHistoryPath,
9
+ readPromptHistory,
10
+ rewritePromptHistory
11
+ } from "./chunk-GQ6WXY3M.js";
12
+ import {
13
+ STATE_ACTIONS
14
+ } from "./chunk-RHJOIAFS.js";
3
15
  import {
4
16
  PROJECT_AUTHORED_NAMES,
5
17
  PROJECT_LEGACY_NAMES,
6
18
  PROJECT_SETTINGS_NAMES,
7
19
  moveProjectLegacyState
8
- } from "./chunk-M5LA652U.js";
20
+ } from "./chunk-DGYMR4WJ.js";
21
+ import {
22
+ findProject
23
+ } from "./chunk-SSPHAILP.js";
24
+ import "./chunk-OH7EYW3T.js";
9
25
  import {
10
26
  cliProjectRoot
11
- } from "./chunk-BFYETM56.js";
12
- import "./chunk-S7YXINNY.js";
27
+ } from "./chunk-XJALHM5Z.js";
28
+ import "./chunk-5HMJ3DYR.js";
29
+ import "./chunk-CQFWLYTK.js";
30
+ import "./chunk-4TJ7AGQO.js";
31
+ import "./chunk-O2PZDA5H.js";
13
32
  import {
33
+ EXIT_FAIL,
14
34
  EXIT_OK,
15
35
  EXIT_UNAVAILABLE,
16
36
  EXIT_USAGE
@@ -18,29 +38,416 @@ import {
18
38
  import {
19
39
  terminalDisplayText
20
40
  } from "./chunk-I4GTRFPK.js";
41
+ import "./chunk-KHGY6QJR.js";
42
+ import "./chunk-ABKURT35.js";
43
+ import "./chunk-5WORROIE.js";
44
+ import "./chunk-WMEZTDLT.js";
45
+ import "./chunk-LCGXWCVU.js";
46
+ import "./chunk-7YC42EXB.js";
47
+ import "./chunk-LVVD32KJ.js";
21
48
  import {
22
49
  homePath
23
50
  } from "./chunk-GMUWAUKQ.js";
51
+ import "./chunk-PJ6IEIKJ.js";
52
+ import "./chunk-XVOPQCPD.js";
24
53
  import "./chunk-G6YSAHKC.js";
25
54
  import "./chunk-JORONMD3.js";
26
- import "./chunk-IZYYWNP2.js";
27
- import "./chunk-KUIATFLN.js";
55
+ import "./chunk-PFVYYH6O.js";
56
+ import "./chunk-GUK47JTV.js";
57
+ import "./chunk-WRPEQ3KP.js";
58
+ import "./chunk-44MFZJ24.js";
59
+ import "./chunk-A6RHRNY2.js";
60
+ import "./chunk-CG5CGXNF.js";
28
61
  import "./chunk-U5UV2YRE.js";
62
+ import "./chunk-PHW6PWIJ.js";
29
63
  import {
30
64
  hashedSlugForCwd,
31
65
  isEntityId,
66
+ isLeaseLive,
67
+ readSessionLease,
32
68
  resolveNamzuHome,
33
69
  slugForCwd
34
- } from "./chunk-6CI5CHBT.js";
70
+ } from "./chunk-5JVKE4LB.js";
35
71
  import {
36
72
  __name
37
73
  } from "./chunk-76FLAFCG.js";
38
74
 
75
+ // src/commands/state.ts
76
+ import { realpath as realpath3 } from "node:fs/promises";
77
+ import { resolve as resolve2 } from "node:path";
78
+ import { createInterface } from "node:readline/promises";
79
+
80
+ // src/integrations/state/purge.ts
81
+ import { lstat, readFile, readdir, realpath, rm } from "node:fs/promises";
82
+ import { createRequire } from "node:module";
83
+ import { basename, join, sep } from "node:path";
84
+ var SLUG = /^[A-Za-z0-9._-]+$/;
85
+ var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
86
+ function errorCode(error) {
87
+ return error?.code;
88
+ }
89
+ __name(errorCode, "errorCode");
90
+ async function realHomeOf(home) {
91
+ try {
92
+ return await realpath(home);
93
+ } catch (error) {
94
+ if (errorCode(error) === "ENOENT" || errorCode(error) === "ENOTDIR") return null;
95
+ throw error;
96
+ }
97
+ }
98
+ __name(realHomeOf, "realHomeOf");
99
+ function within(root, path) {
100
+ return path === root || path.startsWith(root.endsWith(sep) ? root : `${root}${sep}`);
101
+ }
102
+ __name(within, "within");
103
+ async function checkPath(realHome, path) {
104
+ let entry;
105
+ try {
106
+ entry = await lstat(path);
107
+ } catch (error) {
108
+ if (errorCode(error) === "ENOENT" || errorCode(error) === "ENOTDIR") return "absent";
109
+ throw error;
110
+ }
111
+ if (entry.isSymbolicLink()) return "it is a link";
112
+ const parent = path.slice(0, Math.max(path.lastIndexOf(sep), 0)) || sep;
113
+ let realParent;
114
+ try {
115
+ realParent = await realpath(parent);
116
+ } catch (error) {
117
+ if (errorCode(error) === "ENOENT") return "absent";
118
+ throw error;
119
+ }
120
+ if (!within(realHome, realParent)) {
121
+ return "it is outside the Namzu home";
122
+ }
123
+ if (within(join(realHome, "services"), join(realParent, basename(path))))
124
+ return "it is a scheduler service\u2019s home";
125
+ return "ok";
126
+ }
127
+ __name(checkPath, "checkPath");
128
+ async function measure(path) {
129
+ const total = { files: 0, bytes: 0 };
130
+ const walk2 = /* @__PURE__ */ __name(async (current) => {
131
+ const entry = await lstat(current);
132
+ if (entry.isSymbolicLink() || !entry.isDirectory()) {
133
+ total.files += 1;
134
+ total.bytes += entry.isSymbolicLink() ? 0 : entry.size;
135
+ return;
136
+ }
137
+ for (const name of await readdir(current)) await walk2(join(current, name));
138
+ }, "walk");
139
+ await walk2(path);
140
+ return total;
141
+ }
142
+ __name(measure, "measure");
143
+ async function liveHolder(projectDir, seams) {
144
+ const now = seams.now?.() ?? Date.now();
145
+ const alive = seams.isProcessAlive ?? processIsAlive;
146
+ let names;
147
+ try {
148
+ names = await readdir(projectDir);
149
+ } catch {
150
+ return null;
151
+ }
152
+ for (const name of names) {
153
+ const dir = join(projectDir, name);
154
+ let entry;
155
+ try {
156
+ entry = await lstat(dir);
157
+ } catch {
158
+ continue;
159
+ }
160
+ if (!entry.isDirectory() || entry.isSymbolicLink()) continue;
161
+ const lease = await readSessionLease(dir).catch(() => null);
162
+ if (lease === null || !isLeaseLive(lease, now)) continue;
163
+ const pid = holderPidOf(lease);
164
+ if (pid !== void 0 && !alive(pid)) continue;
165
+ return pid === void 0 ? {} : { pid };
166
+ }
167
+ return null;
168
+ }
169
+ __name(liveHolder, "liveHolder");
170
+ async function folderOf(projectFile) {
171
+ try {
172
+ const parsed = JSON.parse(await readFile(projectFile, "utf8"));
173
+ return typeof parsed.cwd === "string" ? parsed.cwd : null;
174
+ } catch {
175
+ return null;
176
+ }
177
+ }
178
+ __name(folderOf, "folderOf");
179
+ async function worktreesHeld(realHome, projectDir) {
180
+ const dir = join(projectDir, "worktrees");
181
+ if (await checkPath(realHome, dir) !== "ok") return false;
182
+ try {
183
+ return (await readdir(dir)).length > 0;
184
+ } catch {
185
+ return false;
186
+ }
187
+ }
188
+ __name(worktreesHeld, "worktreesHeld");
189
+ var NODE_SQLITE = createRequire(new URL("../", import.meta.url).href + "integrations/state/purge.js");
190
+ function openIndex(path, readOnly) {
191
+ try {
192
+ const { DatabaseSync } = NODE_SQLITE("node:sqlite");
193
+ return new DatabaseSync(path, { readOnly });
194
+ } catch {
195
+ return null;
196
+ }
197
+ }
198
+ __name(openIndex, "openIndex");
199
+ async function indexCount(realHome, slug) {
200
+ const path = join(realHome, "index.sqlite");
201
+ if (await checkPath(realHome, path) !== "ok") return null;
202
+ const db = openIndex(path, true);
203
+ if (db === null) return null;
204
+ try {
205
+ const row = db.prepare("SELECT COUNT(*) AS n FROM sessions WHERE slug = ?").get(slug);
206
+ const n = Number(row?.n ?? 0);
207
+ const known = db.prepare("SELECT COUNT(*) AS n FROM projects WHERE slug = ?").get(slug);
208
+ return n + Number(known?.n ?? 0) > 0 ? { path, count: n } : null;
209
+ } catch {
210
+ return null;
211
+ } finally {
212
+ db.close();
213
+ }
214
+ }
215
+ __name(indexCount, "indexCount");
216
+ async function allSlugs(realHome) {
217
+ const slugs = /* @__PURE__ */ new Set();
218
+ const add = /* @__PURE__ */ __name((name) => {
219
+ if (SLUG.test(name) && !UUID.test(name) && !name.startsWith(".")) slugs.add(name);
220
+ }, "add");
221
+ for (const [dir, strip] of [
222
+ ["projects", ""],
223
+ [join("backups", "projects"), ""],
224
+ ["memory-inbox", ".jsonl"],
225
+ ["memory-usage", ".json"],
226
+ ["legacy", ""]
227
+ ]) {
228
+ let names;
229
+ try {
230
+ names = await readdir(join(realHome, dir));
231
+ } catch {
232
+ continue;
233
+ }
234
+ for (const name of names)
235
+ add(strip && name.endsWith(strip) ? name.slice(0, -strip.length) : name);
236
+ }
237
+ return [...slugs].sort();
238
+ }
239
+ __name(allSlugs, "allSlugs");
240
+ async function planProject(realHome, slug, folders, seams) {
241
+ if (!SLUG.test(slug)) throw new Error(`not a project name: ${slug}`);
242
+ const projectDir = join(realHome, "projects", slug);
243
+ const projectFolder = await folderOf(join(projectDir, "project.json"));
244
+ const items = [];
245
+ const places = [
246
+ ["folder", "conversations, checkpoints, file history, plans, memory and learning", projectDir],
247
+ ["folder", "recovery copies of settings files", join(realHome, "backups", "projects", slug)],
248
+ [
249
+ "folder",
250
+ "state moved out of the project by `namzu state move legacy`",
251
+ join(realHome, "legacy", slug)
252
+ ],
253
+ ["file", "memory inbox", join(realHome, "memory-inbox", `${slug}.jsonl`)],
254
+ ["file", "memory usage", join(realHome, "memory-usage", `${slug}.json`)]
255
+ ];
256
+ for (const [kind, what, path] of places) {
257
+ const state = await checkPath(realHome, path);
258
+ if (state === "absent") continue;
259
+ if (state !== "ok") {
260
+ return {
261
+ slug,
262
+ folder: projectFolder,
263
+ folders: [],
264
+ items: [],
265
+ blocked: `${path}: ${state}; nothing was deleted`
266
+ };
267
+ }
268
+ const size = await measure(path);
269
+ items.push({ kind, what, path, files: size.files, bytes: size.bytes });
270
+ }
271
+ if (items.some((item) => item.path === projectDir)) {
272
+ if (await worktreesHeld(realHome, projectDir)) {
273
+ return {
274
+ slug,
275
+ folder: projectFolder,
276
+ folders: [],
277
+ items: [],
278
+ blocked: "git worktrees Namzu made for it are still there; remove them first with `namzu worktree`, then purge"
279
+ };
280
+ }
281
+ const holder = await liveHolder(projectDir, seams);
282
+ if (holder !== null) {
283
+ return {
284
+ slug,
285
+ folder: projectFolder,
286
+ folders: [],
287
+ items: [],
288
+ blocked: `a session of this project is running${holder.pid === void 0 ? "" : ` (process ${holder.pid})`}; stop it first`
289
+ };
290
+ }
291
+ }
292
+ const mine = /* @__PURE__ */ new Set([...folders, ...projectFolder === null ? [] : [projectFolder]]);
293
+ if (mine.size > 0) {
294
+ const history = await readPromptHistory(realHome);
295
+ const count = history.entries.filter((entry) => mine.has(entry.project)).length;
296
+ if (count > 0) {
297
+ items.push({
298
+ kind: "history",
299
+ what: "prompts in the prompt history",
300
+ path: promptHistoryPath(realHome),
301
+ files: 0,
302
+ bytes: 0,
303
+ count
304
+ });
305
+ }
306
+ }
307
+ const indexed = await indexCount(realHome, slug);
308
+ if (indexed !== null) {
309
+ items.push({
310
+ kind: "index",
311
+ what: "rows in the session index",
312
+ path: indexed.path,
313
+ files: 0,
314
+ bytes: 0,
315
+ count: indexed.count
316
+ });
317
+ }
318
+ return { slug, folder: projectFolder, folders: [...mine], items };
319
+ }
320
+ __name(planProject, "planProject");
321
+ async function planProjectPurge(home, projectRoot, seams = {}) {
322
+ const realHome = await realHomeOf(home);
323
+ if (realHome === null) return { home, projects: [] };
324
+ const found = await findProject(realHome, projectRoot);
325
+ const slug = found?.slug ?? slugForCwd(projectRoot);
326
+ const project = await planProject(realHome, slug, /* @__PURE__ */ new Set([projectRoot]), seams);
327
+ return { home: realHome, projects: project.items.length > 0 || project.blocked ? [project] : [] };
328
+ }
329
+ __name(planProjectPurge, "planProjectPurge");
330
+ async function planAllPurge(home, seams = {}) {
331
+ const realHome = await realHomeOf(home);
332
+ if (realHome === null) return { home, projects: [] };
333
+ const projects = [];
334
+ for (const slug of await allSlugs(realHome)) {
335
+ const project = await planProject(realHome, slug, /* @__PURE__ */ new Set(), seams);
336
+ if (project.items.length > 0 || project.blocked) projects.push(project);
337
+ }
338
+ const lines = (await readPromptHistory(realHome)).entries.length;
339
+ const history = lines > 0 && projects.every((project) => project.blocked === void 0) ? {
340
+ kind: "history",
341
+ what: "prompts in the prompt history",
342
+ path: promptHistoryPath(realHome),
343
+ files: 0,
344
+ bytes: 0,
345
+ count: lines
346
+ } : void 0;
347
+ return { home: realHome, projects, ...history ? { history } : {} };
348
+ }
349
+ __name(planAllPurge, "planAllPurge");
350
+ function dropIndexRows(path, slug) {
351
+ const db = openIndex(path, false);
352
+ if (db === null) throw new Error("the session index could not be opened");
353
+ try {
354
+ db.exec("PRAGMA busy_timeout = 5000");
355
+ db.exec("BEGIN");
356
+ const own = "(SELECT id FROM sessions WHERE slug = ?)";
357
+ for (const table of [
358
+ "turns",
359
+ "pending_decisions",
360
+ "external_refs",
361
+ "children",
362
+ "batches",
363
+ "evidence_fts"
364
+ ]) {
365
+ db.prepare(`DELETE FROM ${table} WHERE session_id IN ${own}`).run(slug);
366
+ }
367
+ db.prepare("DELETE FROM sessions WHERE slug = ?").run(slug);
368
+ db.prepare("DELETE FROM projects WHERE slug = ?").run(slug);
369
+ db.exec("COMMIT");
370
+ } catch (error) {
371
+ try {
372
+ db.exec("ROLLBACK");
373
+ } catch {
374
+ }
375
+ throw error;
376
+ } finally {
377
+ db.close();
378
+ }
379
+ }
380
+ __name(dropIndexRows, "dropIndexRows");
381
+ async function executePurge(plan, options, seams = {}) {
382
+ const realHome = await realHomeOf(plan.home);
383
+ const outcomes = [];
384
+ for (const project of plan.projects) {
385
+ const deleted = [];
386
+ const failed = [];
387
+ if (realHome === null || project.blocked !== void 0) {
388
+ outcomes.push({ slug: project.slug, deleted, failed });
389
+ continue;
390
+ }
391
+ if (project.items.some((item) => item.path === join(realHome, "projects", project.slug))) {
392
+ const holder = await liveHolder(join(realHome, "projects", project.slug), seams);
393
+ if (holder !== null) {
394
+ failed.push(
395
+ `${project.slug}: a session of this project is running${holder.pid === void 0 ? "" : ` (process ${holder.pid})`}; left alone, stop it first`
396
+ );
397
+ outcomes.push({ slug: project.slug, deleted, failed });
398
+ continue;
399
+ }
400
+ }
401
+ const folders = new Set(project.folders);
402
+ for (const item of project.items) {
403
+ try {
404
+ if (item.kind === "folder" || item.kind === "file") {
405
+ const state = await checkPath(realHome, item.path);
406
+ if (state === "absent") continue;
407
+ if (state !== "ok") {
408
+ failed.push(`${item.path}: ${state}`);
409
+ continue;
410
+ }
411
+ await rm(item.path, { recursive: item.kind === "folder", force: true });
412
+ deleted.push(item.path);
413
+ } else if (item.kind === "history") {
414
+ const dropped = await rewritePromptHistory(
415
+ realHome,
416
+ (entry) => !folders.has(entry.project)
417
+ );
418
+ if (dropped > 0)
419
+ deleted.push(`${dropped} prompt${dropped === 1 ? "" : "s"} in ${item.path}`);
420
+ } else {
421
+ dropIndexRows(item.path, project.slug);
422
+ deleted.push(`rows in ${item.path}`);
423
+ }
424
+ } catch (error) {
425
+ failed.push(`${item.path}: ${error instanceof Error ? error.message : String(error)}`);
426
+ }
427
+ }
428
+ outcomes.push({ slug: project.slug, deleted, failed });
429
+ }
430
+ if (plan.history !== void 0 && realHome !== null && options.all) {
431
+ const deleted = [];
432
+ const failed = [];
433
+ try {
434
+ const dropped = await rewritePromptHistory(realHome, () => false);
435
+ if (dropped > 0)
436
+ deleted.push(`${dropped} prompt${dropped === 1 ? "" : "s"} in ${plan.history.path}`);
437
+ } catch (error) {
438
+ failed.push(`${plan.history.path}: ${error instanceof Error ? error.message : String(error)}`);
439
+ }
440
+ outcomes.push({ slug: "(prompt history)", deleted, failed });
441
+ }
442
+ return outcomes;
443
+ }
444
+ __name(executePurge, "executePurge");
445
+
39
446
  // src/integrations/state/report.ts
40
447
  import { constants } from "node:fs";
41
- import { lstat, open, opendir, realpath } from "node:fs/promises";
448
+ import { lstat as lstat2, open, opendir, realpath as realpath2 } from "node:fs/promises";
42
449
  import { homedir } from "node:os";
43
- import { basename, join, resolve, sep } from "node:path";
450
+ import { basename as basename2, join as join2, resolve, sep as sep2 } from "node:path";
44
451
  var MAX_METADATA_BYTES = 4 * 1024 * 1024;
45
452
  var MAX_REPORTED_ISSUES = 100;
46
453
  var MAX_ENTRIES = 1e5;
@@ -87,11 +494,11 @@ var EntryChangedError = class extends Error {
87
494
  async function inspectNamzuState(options = {}) {
88
495
  const cwd = await canonicalBase(options.cwd ?? process.cwd());
89
496
  const home = await canonicalBase(options.home ?? homedir());
90
- const projectRoot = join(cwd, ".namzu");
497
+ const projectRoot = join2(cwd, ".namzu");
91
498
  const environment = options.env ?? (options.home !== void 0 ? {} : process.env);
92
499
  const configuredHome = environment.NAMZU_HOME;
93
500
  const userRoot = await canonicalBase(
94
- configuredHome === void 0 || configuredHome.length === 0 ? join(home, ".namzu") : configuredHome
501
+ configuredHome === void 0 || configuredHome.length === 0 ? join2(home, ".namzu") : configuredHome
95
502
  );
96
503
  const overlap = projectRoot === userRoot;
97
504
  const specs = overlap ? [{ path: projectRoot, roles: ["project", "user"] }] : [
@@ -121,9 +528,9 @@ async function inspectNamzuState(options = {}) {
121
528
  }),
122
529
  { roots: 0, files: 0, logicalBytes: 0 }
123
530
  );
124
- const projectConfigPath = join(cwd, "namzu.config.json");
531
+ const projectConfigPath = join2(cwd, "namzu.config.json");
125
532
  const projectConfig = await inspectOneRegularFile(projectConfigPath);
126
- const legacyLocalConfigPath = join(cwd, "namzu.config.local.json");
533
+ const legacyLocalConfigPath = join2(cwd, "namzu.config.local.json");
127
534
  const legacyLocalConfig = await inspectOneRegularFile(legacyLocalConfigPath);
128
535
  const userCollection = collections.get(userRoot);
129
536
  const projectBinding = await inspectProjectBinding(userCollection, cwd);
@@ -155,7 +562,7 @@ __name(inspectNamzuState, "inspectNamzuState");
155
562
  async function canonicalBase(path) {
156
563
  const absolute = resolve(path);
157
564
  try {
158
- return await realpath(absolute);
565
+ return await realpath2(absolute);
159
566
  } catch {
160
567
  return absolute;
161
568
  }
@@ -163,7 +570,7 @@ async function canonicalBase(path) {
163
570
  __name(canonicalBase, "canonicalBase");
164
571
  async function inspectOneRegularFile(path) {
165
572
  try {
166
- const stat = await lstat(path);
573
+ const stat = await lstat2(path);
167
574
  return stat.isFile() ? { status: "present", logicalBytes: stat.size } : { status: "unsupported", logicalBytes: 0 };
168
575
  } catch (error) {
169
576
  if (error.code === "ENOENT") {
@@ -177,7 +584,7 @@ async function collectRoot(root, entryLimit) {
177
584
  const sink = { issues: [], omitted: 0 };
178
585
  let rootStat;
179
586
  try {
180
- rootStat = await lstat(root);
587
+ rootStat = await lstat2(root);
181
588
  } catch (error) {
182
589
  if (error.code === "ENOENT") {
183
590
  return { root, exists: false, entries: [], issues: [], omittedIssues: 0 };
@@ -246,12 +653,12 @@ function rootEntry(root, stat) {
246
653
  }
247
654
  __name(rootEntry, "rootEntry");
248
655
  async function walk(root, relativeDir, entries, sink, entryLimit) {
249
- const absoluteDir = relativeDir === "" ? root : join(root, relativeDir);
656
+ const absoluteDir = relativeDir === "" ? root : join2(root, relativeDir);
250
657
  const childDirectories = [];
251
658
  try {
252
659
  const directory = await opendir(absoluteDir);
253
660
  for await (const child of directory) {
254
- const relativePath = relativeDir === "" ? child.name : join(relativeDir, child.name);
661
+ const relativePath = relativeDir === "" ? child.name : join2(relativeDir, child.name);
255
662
  if (entries.length >= entryLimit) {
256
663
  pushIssue(sink, {
257
664
  code: "inspection_skipped",
@@ -260,10 +667,10 @@ async function walk(root, relativeDir, entries, sink, entryLimit) {
260
667
  });
261
668
  return false;
262
669
  }
263
- const absolute = join(root, relativePath);
670
+ const absolute = join2(root, relativePath);
264
671
  let stat;
265
672
  try {
266
- stat = await lstat(absolute);
673
+ stat = await lstat2(absolute);
267
674
  } catch (error) {
268
675
  addIssue(sink, relativePath, error);
269
676
  continue;
@@ -307,7 +714,7 @@ async function walk(root, relativeDir, entries, sink, entryLimit) {
307
714
  }
308
715
  __name(walk, "walk");
309
716
  function normalizeRelative(path) {
310
- return sep === "/" ? path : path.split(sep).join("/");
717
+ return sep2 === "/" ? path : path.split(sep2).join("/");
311
718
  }
312
719
  __name(normalizeRelative, "normalizeRelative");
313
720
  function addIssue(sink, path, error) {
@@ -388,7 +795,7 @@ function legacyKey(path) {
388
795
  __name(legacyKey, "legacyKey");
389
796
  function categoryOf(path) {
390
797
  const top = path.split("/")[0] ?? path;
391
- const name = basename(path);
798
+ const name = basename2(path);
392
799
  if (legacyKey(path)) return "legacy";
393
800
  if (top === "legacy") return "legacy";
394
801
  if (name.endsWith(".lock") || name.endsWith(".tmp") || name.includes(".tmp.") || name.includes(".tmp-") || name.endsWith(".candidate")) {
@@ -409,7 +816,7 @@ function projectLegacyKey(path) {
409
816
  __name(projectLegacyKey, "projectLegacyKey");
410
817
  function projectCategoryOf(path) {
411
818
  const top = path.split("/")[0] ?? path;
412
- const name = basename(path);
819
+ const name = basename2(path);
413
820
  if (projectLegacyKey(path)) return "legacy";
414
821
  if (PROJECT_SETTINGS_NAMES.has(top)) return "configuration";
415
822
  if (name.endsWith(".lock") || name.endsWith(".tmp") || name.includes(".tmp.") || name.includes(".tmp-")) {
@@ -646,6 +1053,7 @@ Usage:
646
1053
  namzu state
647
1054
  namzu state report
648
1055
  namzu state move legacy [--dry-run]
1056
+ namzu state purge [path] [--dry-run] [--yes] [--all]
649
1057
 
650
1058
  report (the default) lists what Namzu keeps and where, without changing
651
1059
  anything: it does not load project configuration, create a Session, repair,
@@ -658,11 +1066,21 @@ trust, moves only names an earlier Namzu wrote, and leaves in place what git
658
1066
  tracks, a git worktree with changes and anything it cannot check, saying why.
659
1067
  --dry-run says what would move and changes nothing.
660
1068
 
1069
+ purge deletes the state Namzu keeps in its home for one project (this folder's
1070
+ by default, or the project of [path]): its conversations, checkpoints, file
1071
+ history, plans, memory, recovery copies, its prompts in the prompt history and
1072
+ its rows in the session index. It never deletes anything in the project folder
1073
+ itself, so settings files kept there stay. It lists what it will delete and asks
1074
+ first; with no terminal it needs --yes. It stops while a session of the project
1075
+ is running, and while git worktrees Namzu made for it still exist.
1076
+
661
1077
  Output:
662
1078
  Use the global --format json or --format yaml flag for structured output.
663
1079
 
664
1080
  Options:
665
- --dry-run With move legacy: list what would move, change nothing
1081
+ --dry-run With move legacy or purge: list what would change, change nothing
1082
+ --yes With purge: delete without asking
1083
+ --all With purge: every project, not one
666
1084
  -h, --help Show this help`;
667
1085
  function createStateCommand(deps) {
668
1086
  return {
@@ -670,11 +1088,13 @@ function createStateCommand(deps) {
670
1088
  description: "Inspect local Namzu state, or move what an earlier Namzu left in a project",
671
1089
  passThrough: true,
672
1090
  help: HELP,
1091
+ actions: STATE_ACTIONS,
673
1092
  handler: /* @__PURE__ */ __name(async ({ ctx, rawArgs }) => {
674
1093
  if (rawArgs[0] === "move-legacy") {
675
1094
  ctx.formatter.error({ message: "This command is now `namzu state move legacy`." });
676
1095
  return EXIT_USAGE;
677
1096
  }
1097
+ if (rawArgs[0] === "purge") return await runPurge(ctx.formatter, rawArgs.slice(1), deps.purge);
678
1098
  if (rawArgs[0] === "move" && rawArgs[1] === "legacy") {
679
1099
  const rest = rawArgs.slice(2);
680
1100
  if (!(rest.length === 0 || rest.length === 1 && rest[0] === "--dry-run")) {
@@ -695,7 +1115,9 @@ function createStateCommand(deps) {
695
1115
  return EXIT_OK;
696
1116
  }
697
1117
  if (!(rawArgs.length === 0 || rawArgs.length === 1 && rawArgs[0] === "report")) {
698
- ctx.formatter.error({ message: "Usage: namzu state [report | move legacy [--dry-run]]" });
1118
+ ctx.formatter.error({
1119
+ message: "Usage: namzu state [report | move legacy [--dry-run] | purge [path] [--dry-run] [--yes] [--all]]"
1120
+ });
699
1121
  return EXIT_USAGE;
700
1122
  }
701
1123
  const report = await deps.inspect();
@@ -705,6 +1127,114 @@ function createStateCommand(deps) {
705
1127
  };
706
1128
  }
707
1129
  __name(createStateCommand, "createStateCommand");
1130
+ async function askOnTerminal(question) {
1131
+ const rl = createInterface({ input: process.stdin, output: process.stderr });
1132
+ try {
1133
+ const answer = await rl.question(question);
1134
+ return /^y(es)?$/i.test(answer.trim());
1135
+ } finally {
1136
+ rl.close();
1137
+ }
1138
+ }
1139
+ __name(askOnTerminal, "askOnTerminal");
1140
+ async function runPurge(formatter, args, seams = {}) {
1141
+ let dryRun = false;
1142
+ let yes = false;
1143
+ let all = false;
1144
+ const operands = [];
1145
+ for (const arg of args) {
1146
+ if (arg === "--dry-run") dryRun = true;
1147
+ else if (arg === "--yes") yes = true;
1148
+ else if (arg === "--all") all = true;
1149
+ else if (arg.startsWith("-")) {
1150
+ formatter.error({ message: "Usage: namzu state purge [path] [--dry-run] [--yes] [--all]" });
1151
+ return EXIT_USAGE;
1152
+ } else operands.push(arg);
1153
+ }
1154
+ if (operands.length > 1 || all && operands.length > 0) {
1155
+ formatter.error({
1156
+ message: all ? "`namzu state purge --all` takes no path." : "Usage: namzu state purge [path] [--dry-run] [--yes] [--all]"
1157
+ });
1158
+ return EXIT_USAGE;
1159
+ }
1160
+ const isTerminal = seams.isTerminal ?? (() => Boolean(process.stdin.isTTY && process.stdout.isTTY));
1161
+ if (!dryRun && !yes && !isTerminal()) {
1162
+ formatter.error({
1163
+ message: "There is no terminal to ask on: add --yes to delete, or --dry-run to only list."
1164
+ });
1165
+ return EXIT_USAGE;
1166
+ }
1167
+ const home = (seams.home ?? (() => resolveNamzuHome()))();
1168
+ let plan;
1169
+ if (all) {
1170
+ plan = await planAllPurge(home, seams.seams);
1171
+ } else {
1172
+ const cwd = (seams.cwd ?? (() => process.cwd()))();
1173
+ let folder;
1174
+ try {
1175
+ folder = await realpath3(resolve2(cwd, operands[0] ?? "."));
1176
+ } catch {
1177
+ formatter.error({ message: `There is no folder at ${safePath(operands[0] ?? cwd)}.` });
1178
+ return EXIT_USAGE;
1179
+ }
1180
+ plan = await planProjectPurge(home, cliProjectRoot(folder), seams.seams);
1181
+ }
1182
+ const blocked = plan.projects.filter((project) => project.blocked !== void 0);
1183
+ const items = plan.projects.flatMap((project) => project.items);
1184
+ if (items.length === 0 && plan.history === void 0) {
1185
+ const text = blocked.length > 0 ? renderPurgePlan(plan, dryRun) : "Nothing is kept in the Namzu home for this.";
1186
+ formatter.print({ ...plan, text });
1187
+ return blocked.length > 0 ? EXIT_FAIL : EXIT_OK;
1188
+ }
1189
+ if (dryRun) {
1190
+ formatter.print({ ...plan, dryRun: true, text: renderPurgePlan(plan, true) });
1191
+ return blocked.length > 0 ? EXIT_FAIL : EXIT_OK;
1192
+ }
1193
+ formatter.print({ ...plan, text: renderPurgePlan(plan, false) });
1194
+ if (!yes) {
1195
+ const ok = await (seams.confirm ?? askOnTerminal)("Delete this? [y/N] ");
1196
+ if (!ok) {
1197
+ formatter.print({ text: "Nothing was deleted." });
1198
+ return EXIT_OK;
1199
+ }
1200
+ }
1201
+ const outcomes = await executePurge(plan, { all }, seams.seams);
1202
+ formatter.print({ outcomes, text: renderPurgeOutcome(outcomes) });
1203
+ return outcomes.some((outcome) => outcome.failed.length > 0) || blocked.length > 0 ? EXIT_FAIL : EXIT_OK;
1204
+ }
1205
+ __name(runPurge, "runPurge");
1206
+ function renderPurgePlan(plan, dryRun) {
1207
+ const lines = [
1208
+ dryRun ? "Would delete (nothing is deleted):" : "This deletes, under the Namzu home:"
1209
+ ];
1210
+ const describe = /* @__PURE__ */ __name((item) => item.count !== void 0 ? `${item.count} ${item.count === 1 ? item.what.replace(/^(prompt|row)s /, "$1 ") : item.what}` : `${item.what}: ${formatBytes(item.bytes)} \xB7 ${item.files} files`, "describe");
1211
+ for (const project of plan.projects) {
1212
+ lines.push("", project.folder !== null ? safePath(project.folder) : project.slug);
1213
+ if (project.blocked !== void 0) {
1214
+ lines.push(` left alone: ${safeLine(project.blocked)}`);
1215
+ continue;
1216
+ }
1217
+ for (const item of project.items) {
1218
+ lines.push(` ${safePath(homePath(item.path))}`);
1219
+ lines.push(` ${describe(item)}`);
1220
+ }
1221
+ }
1222
+ if (plan.history !== void 0) {
1223
+ lines.push("", ` ${safePath(homePath(plan.history.path))}`, ` ${describe(plan.history)}`);
1224
+ }
1225
+ lines.push("", "Files inside the project folders are not touched.");
1226
+ return lines.join("\n");
1227
+ }
1228
+ __name(renderPurgePlan, "renderPurgePlan");
1229
+ function renderPurgeOutcome(outcomes) {
1230
+ const lines = [];
1231
+ for (const outcome of outcomes) {
1232
+ for (const done of outcome.deleted) lines.push(`Deleted ${safePath(homePath(done))}`);
1233
+ for (const bad of outcome.failed) lines.push(`Could not delete ${safeLine(bad)}`);
1234
+ }
1235
+ return lines.length > 0 ? lines.join("\n") : "Nothing was deleted.";
1236
+ }
1237
+ __name(renderPurgeOutcome, "renderPurgeOutcome");
708
1238
  var stateCommand = createStateCommand({
709
1239
  inspect: inspectNamzuState
710
1240
  });
@@ -767,9 +1297,9 @@ function renderStateReport(report) {
767
1297
  lines.push(
768
1298
  ` ${formatBytes(root.logicalBytes)} \xB7 ${root.files} files \xB7 ${root.directories} directories`
769
1299
  );
770
- for (const [category, measure] of Object.entries(root.categories)) {
771
- if (measure.files === 0) continue;
772
- lines.push(` ${category}: ${formatBytes(measure.logicalBytes)} \xB7 ${measure.files} files`);
1300
+ for (const [category, measure2] of Object.entries(root.categories)) {
1301
+ if (measure2.files === 0) continue;
1302
+ lines.push(` ${category}: ${formatBytes(measure2.logicalBytes)} \xB7 ${measure2.files} files`);
773
1303
  }
774
1304
  const inventory = root.inventory;
775
1305
  if (inventory.projects > 0 || inventory.sessionLogs.files > 0) {
@@ -848,7 +1378,9 @@ __name(safeLine, "safeLine");
848
1378
  export {
849
1379
  createStateCommand,
850
1380
  renderLegacyMove,
1381
+ renderPurgeOutcome,
1382
+ renderPurgePlan,
851
1383
  renderStateReport,
852
1384
  stateCommand
853
1385
  };
854
- //# sourceMappingURL=state-IRA33PLY.js.map
1386
+ //# sourceMappingURL=state-2DBTSDEP.js.map