@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
@@ -2,7 +2,7 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  dispatchCliPalMessages
5
- } from "./chunk-N4YYJGMW.js";
5
+ } from "./chunk-E6FMAE5Q.js";
6
6
  import {
7
7
  checkUserMcpServerSave,
8
8
  listEntryForUserMcpServer,
@@ -11,10 +11,10 @@ import {
11
11
  removeUserMcpServer,
12
12
  saveUserMcpServer,
13
13
  summarizeUserMcpServer
14
- } from "./chunk-DOLGKZC5.js";
14
+ } from "./chunk-IRAG3YXW.js";
15
15
  import {
16
16
  decideHeadlessTrust
17
- } from "./chunk-6BTNPDXR.js";
17
+ } from "./chunk-JRWUIW4J.js";
18
18
  import {
19
19
  conversationMarkdown,
20
20
  createExtensionsRpc,
@@ -29,8 +29,8 @@ import {
29
29
  startDesktopExtensions,
30
30
  stopDesktopExtensions,
31
31
  withKeyNote
32
- } from "./chunk-Z6LUWKV4.js";
33
- import "./chunk-NOHH27YE.js";
32
+ } from "./chunk-3ETXWTV4.js";
33
+ import "./chunk-YNWPC3HO.js";
34
34
  import "./chunk-6ITTTCLD.js";
35
35
  import {
36
36
  advertisedPromptModes,
@@ -40,21 +40,22 @@ import {
40
40
  outcomeLine,
41
41
  sessionOptionsFromConfig,
42
42
  turnOptionsFromConfig
43
- } from "./chunk-XF243FQN.js";
43
+ } from "./chunk-MRZHTIE7.js";
44
44
  import {
45
45
  launchRefusal
46
- } from "./chunk-FEP2R3XI.js";
46
+ } from "./chunk-QTHG6UPU.js";
47
47
  import {
48
48
  HeadlessScreen
49
49
  } from "./chunk-GWGIAZLZ.js";
50
50
  import "./chunk-6HTC5TQ3.js";
51
51
  import {
52
52
  palSessionEnvironment
53
- } from "./chunk-PPCKNQOQ.js";
53
+ } from "./chunk-W4S4ZBXX.js";
54
54
  import {
55
55
  FileCheckpointStore,
56
56
  IdleCompactor,
57
57
  SET_SETTING_TOOL,
58
+ browserWindowQuestionApp,
58
59
  createAgentSession,
59
60
  deleteManagedMemory,
60
61
  describeAgentChange,
@@ -71,28 +72,31 @@ import {
71
72
  updateManagedMemory,
72
73
  validateComposerSendSettings,
73
74
  verifyCredential
74
- } from "./chunk-JCH7IWMU.js";
75
- import "./chunk-Y62WSR5N.js";
76
- import "./chunk-M5LA652U.js";
77
- import "./chunk-FNEQ77RJ.js";
78
- import "./chunk-JDWCVWIQ.js";
79
- import "./chunk-HEFLKPCT.js";
75
+ } from "./chunk-OQWLQUO7.js";
76
+ import "./chunk-567CSU37.js";
77
+ import "./chunk-DGYMR4WJ.js";
78
+ import "./chunk-JZTTOZRG.js";
79
+ import "./chunk-D3SCA6NT.js";
80
+ import "./chunk-4RW7GDJ4.js";
81
+ import "./chunk-FMQCPAKR.js";
82
+ import "./chunk-6IOZY2AB.js";
80
83
  import {
81
84
  resolveProgressNudge
82
- } from "./chunk-4LSSJKYK.js";
83
- import "./chunk-AF2QPFEQ.js";
85
+ } from "./chunk-LB4HC5U7.js";
86
+ import "./chunk-W752G3FM.js";
87
+ import "./chunk-D35UCVTK.js";
84
88
  import {
85
89
  findProject
86
- } from "./chunk-DMHE6X3Y.js";
87
- import "./chunk-GWLUXO4O.js";
88
- import "./chunk-2P2PDEZJ.js";
90
+ } from "./chunk-SSPHAILP.js";
91
+ import "./chunk-LXJW3ZYI.js";
92
+ import "./chunk-VL6Z2OMG.js";
89
93
  import "./chunk-YOWYTBJS.js";
90
- import "./chunk-3EH4PF5T.js";
94
+ import "./chunk-JUDJGDYX.js";
91
95
  import "./chunk-NUGPLXVK.js";
92
- import "./chunk-RSO4LBHJ.js";
96
+ import "./chunk-KPOOM7QT.js";
93
97
  import "./chunk-SD25ASC7.js";
94
- import "./chunk-VV6DYTFU.js";
95
- import "./chunk-2ZPB4ZBP.js";
98
+ import "./chunk-DKSFQRUM.js";
99
+ import "./chunk-GEVWZWLM.js";
96
100
  import {
97
101
  cliPalComputerStatus,
98
102
  cliPalScreen,
@@ -105,19 +109,19 @@ import {
105
109
  startCliPalComputer,
106
110
  stopCliPalComputer,
107
111
  takeOverCliPalComputer
108
- } from "./chunk-QTQIHFYH.js";
112
+ } from "./chunk-S7FE35WQ.js";
109
113
  import "./chunk-ZWA2JRJV.js";
110
114
  import {
111
115
  cliPalActivitySubscriptionPolicy,
112
116
  cliPalActivitySubscriptionStore,
113
117
  cliPalCommunicationPolicy,
114
118
  cliPalCommunicationStore
115
- } from "./chunk-PYYDU2BC.js";
119
+ } from "./chunk-24EZWZDZ.js";
116
120
  import {
117
121
  claimPalConversation,
118
122
  listPalConversations,
119
123
  palConversationBinding
120
- } from "./chunk-5C6XCI24.js";
124
+ } from "./chunk-TORIEDBN.js";
121
125
  import {
122
126
  archiveConversation,
123
127
  closeSessions,
@@ -139,14 +143,13 @@ import {
139
143
  storedAssistantPhase,
140
144
  titlesOf,
141
145
  unarchiveConversation
142
- } from "./chunk-MY6JV4BT.js";
143
- import "./chunk-CPDGXVVE.js";
146
+ } from "./chunk-OH7EYW3T.js";
144
147
  import {
145
148
  INSTRUCTIONS_FILENAME,
146
149
  MAX_BYTES_TO_READ,
147
150
  MAX_CHARS_PER_FILE,
148
151
  cliProjectRoot
149
- } from "./chunk-BFYETM56.js";
152
+ } from "./chunk-XJALHM5Z.js";
150
153
  import {
151
154
  cliPalStore,
152
155
  createPal,
@@ -156,15 +159,17 @@ import {
156
159
  listPals,
157
160
  palAtWorkspace,
158
161
  updatePal
159
- } from "./chunk-DGV6YSAW.js";
162
+ } from "./chunk-5HMJ3DYR.js";
163
+ import "./chunk-TYNAB5GR.js";
164
+ import "./chunk-7TDOAGVX.js";
160
165
  import {
161
166
  buildCostReport
162
- } from "./chunk-IMXTM75Q.js";
163
- import "./chunk-ZDGKFGVE.js";
167
+ } from "./chunk-23D5IXMW.js";
168
+ import "./chunk-P4TCLMD6.js";
164
169
  import "./chunk-LYUY2FK2.js";
165
170
  import {
166
171
  accountForProvider
167
- } from "./chunk-W6UOMYDX.js";
172
+ } from "./chunk-CQFWLYTK.js";
168
173
  import {
169
174
  flushCompileCacheWhenIdle
170
175
  } from "./chunk-SOIP273Z.js";
@@ -177,23 +182,27 @@ import {
177
182
  } from "./chunk-JEW7RLYH.js";
178
183
  import {
179
184
  warnBroadAllowRules
180
- } from "./chunk-WCAKWRZU.js";
185
+ } from "./chunk-KVNL7XA6.js";
181
186
  import "./chunk-EDOJTQQU.js";
182
- import "./chunk-DROVNI2Y.js";
187
+ import "./chunk-MF57EX7H.js";
183
188
  import {
184
- displayPath
185
- } from "./chunk-AZXIYYVX.js";
189
+ buildSaveSkillTool,
190
+ describeCollision,
191
+ displayPath,
192
+ newSkillPrompt
193
+ } from "./chunk-FK5C7SHM.js";
186
194
  import "./chunk-ZKCOQZ3U.js";
187
195
  import "./chunk-BBTPD3DU.js";
188
- import "./chunk-MMJ6UURB.js";
196
+ import "./chunk-5OYJXSMZ.js";
197
+ import "./chunk-QZTTIL3A.js";
189
198
  import "./chunk-GNBMKISG.js";
190
199
  import {
191
200
  handoffContinuationNote
192
- } from "./chunk-3Z5OXTDI.js";
193
- import "./chunk-5YTGRS7U.js";
201
+ } from "./chunk-3PH6F6Z3.js";
202
+ import "./chunk-7J23SPSX.js";
194
203
  import {
195
204
  isPermissionMode
196
- } from "./chunk-ICIVSMA3.js";
205
+ } from "./chunk-ZQGCZYAE.js";
197
206
  import "./chunk-P65AXQPL.js";
198
207
  import {
199
208
  TERMINAL_MARKER,
@@ -205,18 +214,18 @@ import {
205
214
  loadHostPty,
206
215
  processesCarrying,
207
216
  quietConptyHelper
208
- } from "./chunk-WDROVY6V.js";
217
+ } from "./chunk-2EVP6BX4.js";
209
218
  import {
210
219
  CLI_VERSION
211
220
  } from "./chunk-HE7WUOX2.js";
212
221
  import "./chunk-OH6TB27S.js";
213
- import "./chunk-LGPOJEZK.js";
214
- import "./chunk-FSAI4GDZ.js";
222
+ import "./chunk-4BAXYUZQ.js";
223
+ import "./chunk-WSDZIJNK.js";
215
224
  import {
216
225
  PluginSettingsStore
217
- } from "./chunk-SKFBM6OJ.js";
218
- import "./chunk-SM6UI33D.js";
219
- import "./chunk-WSQAVWIV.js";
226
+ } from "./chunk-AEXGGJUW.js";
227
+ import "./chunk-ACO3LTRT.js";
228
+ import "./chunk-HW2QBNAA.js";
220
229
  import {
221
230
  automaticKind,
222
231
  canSelectModel,
@@ -226,20 +235,20 @@ import {
226
235
  removeProviderKey,
227
236
  saveProviderKey,
228
237
  typedKeyProvider
229
- } from "./chunk-CKYGPQVJ.js";
238
+ } from "./chunk-KBLYZ7L7.js";
230
239
  import {
231
240
  isOfferableModel
232
241
  } from "./chunk-4QIWRKJO.js";
233
242
  import "./chunk-KTPFUCRU.js";
234
243
  import "./chunk-LPPFJYL6.js";
235
- import "./chunk-PJF46DI6.js";
236
- import "./chunk-NP4BQ7SB.js";
244
+ import "./chunk-4TIUY3Q6.js";
245
+ import "./chunk-4TJ7AGQO.js";
237
246
  import {
238
247
  isTrusted,
239
248
  isTrustedAtStateRoot,
240
249
  trustDir,
241
250
  untrustDir
242
- } from "./chunk-S7YXINNY.js";
251
+ } from "./chunk-O2PZDA5H.js";
243
252
  import "./chunk-24V2WEKR.js";
244
253
  import {
245
254
  systemClock
@@ -249,11 +258,11 @@ import {
249
258
  checkSetting,
250
259
  readSettings,
251
260
  writeSetting
252
- } from "./chunk-LXK7S2I2.js";
261
+ } from "./chunk-OSC47PCX.js";
253
262
  import {
254
263
  userConfigPath
255
- } from "./chunk-3HT7FQNG.js";
256
- import "./chunk-4E2REC5O.js";
264
+ } from "./chunk-CEZW3NVM.js";
265
+ import "./chunk-XLXPPVUT.js";
257
266
  import {
258
267
  approveShownMcpServers,
259
268
  compileBrowserSites,
@@ -262,34 +271,34 @@ import {
262
271
  loadConfig,
263
272
  pendingProjectMcpServers,
264
273
  withBrowserSiteRules
265
- } from "./chunk-C7ZKC7HY.js";
266
- import "./chunk-5WORROIE.js";
274
+ } from "./chunk-KHGY6QJR.js";
267
275
  import {
268
276
  compilePermissionLayers,
269
277
  permissionLayersOf,
270
278
  warnLegacyMcpPermissionNames
271
- } from "./chunk-ORSFP3ZC.js";
279
+ } from "./chunk-ABKURT35.js";
280
+ import "./chunk-5WORROIE.js";
272
281
  import "./chunk-WMEZTDLT.js";
273
282
  import "./chunk-LCGXWCVU.js";
274
- import "./chunk-SIG7WHBU.js";
283
+ import "./chunk-7YC42EXB.js";
275
284
  import "./chunk-LVVD32KJ.js";
276
285
  import "./chunk-GMUWAUKQ.js";
277
286
  import "./chunk-PJ6IEIKJ.js";
278
287
  import {
279
288
  cliLogger
280
- } from "./chunk-BJQ7WFWL.js";
289
+ } from "./chunk-XVOPQCPD.js";
281
290
  import "./chunk-G6YSAHKC.js";
282
291
  import {
283
292
  canonicalProjectPath
284
293
  } from "./chunk-JORONMD3.js";
285
294
  import {
286
295
  StateFileUnreadableError
287
- } from "./chunk-IZYYWNP2.js";
288
- import "./chunk-5ZPCQ2HL.js";
289
- import "./chunk-6MQHDX7R.js";
296
+ } from "./chunk-PFVYYH6O.js";
297
+ import "./chunk-GUK47JTV.js";
290
298
  import "./chunk-WRPEQ3KP.js";
299
+ import "./chunk-44MFZJ24.js";
291
300
  import "./chunk-A6RHRNY2.js";
292
- import "./chunk-KUIATFLN.js";
301
+ import "./chunk-CG5CGXNF.js";
293
302
  import "./chunk-U5UV2YRE.js";
294
303
  import "./chunk-PHW6PWIJ.js";
295
304
  import {
@@ -337,7 +346,7 @@ import {
337
346
  selectAssistantText,
338
347
  turnHolder,
339
348
  withSessionChildMarker
340
- } from "./chunk-6CI5CHBT.js";
349
+ } from "./chunk-5JVKE4LB.js";
341
350
  import {
342
351
  __name
343
352
  } from "./chunk-76FLAFCG.js";
@@ -432,9 +441,9 @@ function createLimitsFeed(options) {
432
441
  if (sources.length === 0) return;
433
442
  await Promise.all(sources.map((source) => readOne(source, false)));
434
443
  const view = await build();
435
- const text4 = JSON.stringify(view);
436
- if (text4 === lastSent) return;
437
- lastSent = text4;
444
+ const text5 = JSON.stringify(view);
445
+ if (text5 === lastSent) return;
446
+ lastSent = text5;
438
447
  try {
439
448
  options.notify(LIMITS_NOTIFICATION, { ...view });
440
449
  } catch {
@@ -581,12 +590,12 @@ __name(readPluginInventory, "readPluginInventory");
581
590
  import { randomUUID } from "node:crypto";
582
591
  var CLICK_ID = /^[A-Za-z0-9_-]{8,80}$/u;
583
592
  function plainFailure(name, error) {
584
- const text4 = error instanceof Error ? error.message : String(error);
585
- if (/busy in another conversation/iu.test(text4))
593
+ const text5 = error instanceof Error ? error.message : String(error);
594
+ if (/busy in another conversation/iu.test(text5))
586
595
  return `${name} is busy. It will read your message at its next step.`;
587
- if (/model provider/iu.test(text4))
596
+ if (/model provider/iu.test(text5))
588
597
  return `${name} has no model chosen yet. Choose one in ${name}\u2019s settings, then start it again.`;
589
- if (/refused|explicit go/iu.test(text4))
598
+ if (/refused|explicit go/iu.test(text5))
590
599
  return `${name} could not be started: your go was not accepted. Try again.`;
591
600
  return `${name} could not be started. Try again in a moment.`;
592
601
  }
@@ -689,6 +698,45 @@ function createPalInboxStarter(context, deps = {}) {
689
698
  }
690
699
  __name(createPalInboxStarter, "createPalInboxStarter");
691
700
 
701
+ // src/skills/save-card.ts
702
+ var SKILL_SAVE_QUESTION_ID = "skill-save";
703
+ var SKILL_SAVE_OPTIONS = ["user", "project", "cancel"];
704
+ function skillSaveCardPayload(request, cwd) {
705
+ const target2 = /* @__PURE__ */ __name((scope) => {
706
+ const planned = request.targets[scope];
707
+ return {
708
+ scope,
709
+ path: planned.displayPath,
710
+ shadows: planned.collisions.map((collision) => describeCollision(collision, cwd))
711
+ };
712
+ }, "target");
713
+ const targets = [target2("user"), target2("project")];
714
+ return {
715
+ name: request.draft.name,
716
+ description: request.draft.description,
717
+ file: request.revealed,
718
+ hiddenCharacters: request.revealed !== request.markdown,
719
+ warnings: request.warnings,
720
+ suggested: request.suggested,
721
+ targets,
722
+ shadowsExisting: targets.some((entry) => entry.shadows.length > 0)
723
+ };
724
+ }
725
+ __name(skillSaveCardPayload, "skillSaveCardPayload");
726
+ var SKILLS_HOST_COMMAND = {
727
+ name: "skills",
728
+ description: "Create a skill: Namzu interviews you, shows the draft, and saves it after you confirm.",
729
+ hint: "new [what the skill should do]",
730
+ args: {
731
+ type: "object",
732
+ properties: { words: { type: "array", items: { type: "string" } } }
733
+ },
734
+ handler: /* @__PURE__ */ __name(({ args }) => {
735
+ if (args[0] !== "new") return { kind: "refused", reason: 'Say "skills new" to create a skill.' };
736
+ return { kind: "prompt", text: newSkillPrompt(args.slice(1).join(" ")) };
737
+ }, "handler")
738
+ };
739
+
692
740
  // src/terminal/manager.ts
693
741
  import { randomUUID as randomUUID2 } from "node:crypto";
694
742
  import { realpathSync, statSync } from "node:fs";
@@ -910,11 +958,11 @@ var OutputRing = class {
910
958
  get end() {
911
959
  return this.total;
912
960
  }
913
- append(text4) {
914
- if (text4.length === 0) return this.total;
915
- this.chunks.push({ start: this.total, text: text4 });
916
- this.total += text4.length;
917
- this.retained += text4.length;
961
+ append(text5) {
962
+ if (text5.length === 0) return this.total;
963
+ this.chunks.push({ start: this.total, text: text5 });
964
+ this.total += text5.length;
965
+ this.retained += text5.length;
918
966
  while (this.retained > this.capacity) {
919
967
  const first = this.chunks[0];
920
968
  if (!first) break;
@@ -1113,15 +1161,15 @@ var TerminalManager = class {
1113
1161
  });
1114
1162
  }
1115
1163
  flush(terminal) {
1116
- const text4 = terminal.pending;
1117
- if (text4 === "") return;
1164
+ const text5 = terminal.pending;
1165
+ if (text5 === "") return;
1118
1166
  let offset = terminal.pendingStart;
1119
1167
  terminal.pending = "";
1120
- for (let at = 0; at < text4.length; ) {
1121
- let end = Math.min(text4.length, at + TERMINAL_LIMITS.maxChunk);
1122
- const last = text4.charCodeAt(end - 1);
1123
- if (end < text4.length && last >= 55296 && last <= 56319) end -= 1;
1124
- const data = text4.slice(at, end);
1168
+ for (let at = 0; at < text5.length; ) {
1169
+ let end = Math.min(text5.length, at + TERMINAL_LIMITS.maxChunk);
1170
+ const last = text5.charCodeAt(end - 1);
1171
+ if (end < text5.length && last >= 55296 && last <= 56319) end -= 1;
1172
+ const data = text5.slice(at, end);
1125
1173
  this.options.emit({ type: "data", params: { terminalId: terminal.id, offset, data } });
1126
1174
  offset += data.length;
1127
1175
  at = end;
@@ -1452,8 +1500,212 @@ function createTerminalHost(options) {
1452
1500
  }
1453
1501
  __name(createTerminalHost, "createTerminalHost");
1454
1502
 
1503
+ // src/commands/acp-browser-pane.ts
1504
+ var BROWSER_PANE_CAPABILITY = "namzu/browser-pane";
1505
+ var BROWSER_PANE_METHODS = {
1506
+ open: "namzu/browser/pane/open",
1507
+ cdp: "namzu/browser/pane/cdp",
1508
+ close: "namzu/browser/pane/close",
1509
+ event: "namzu/browser/pane/event",
1510
+ state: "namzu/browser/pane/state"
1511
+ };
1512
+ var BROWSER_PANE_SERVED_METHODS = [
1513
+ BROWSER_PANE_METHODS.event,
1514
+ BROWSER_PANE_METHODS.state
1515
+ ];
1516
+ var text3 = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "" && value.length <= 400 ? value : void 0, "text");
1517
+ function object(value) {
1518
+ return value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
1519
+ }
1520
+ __name(object, "object");
1521
+ function createAcpPaneLink(connection) {
1522
+ const channels = /* @__PURE__ */ new Set();
1523
+ let closed;
1524
+ class Channel {
1525
+ constructor(sessionId, rules) {
1526
+ this.sessionId = sessionId;
1527
+ this.rules = rules;
1528
+ }
1529
+ sessionId;
1530
+ rules;
1531
+ static {
1532
+ __name(this, "Channel");
1533
+ }
1534
+ events = /* @__PURE__ */ new Set();
1535
+ added = /* @__PURE__ */ new Set();
1536
+ gone = /* @__PURE__ */ new Set();
1537
+ closes = /* @__PURE__ */ new Set();
1538
+ opened;
1539
+ primary;
1540
+ tabs = /* @__PURE__ */ new Set();
1541
+ holder = "agent";
1542
+ done = false;
1543
+ control() {
1544
+ return this.holder;
1545
+ }
1546
+ ask(method, params) {
1547
+ if (this.done || closed !== void 0)
1548
+ return Promise.reject(new Error("The Browser pane is not connected."));
1549
+ channels.add(this);
1550
+ return connection.ask(method, { sessionId: this.sessionId, ...params });
1551
+ }
1552
+ listTabs() {
1553
+ this.opened ??= this.ask(BROWSER_PANE_METHODS.open, {
1554
+ ...this.rules !== void 0 ? { rules: this.rules } : {}
1555
+ }).then((reply) => {
1556
+ const tabId = text3(object(reply)?.tabId);
1557
+ if (!tabId) throw new Error("The Browser pane did not name the tab it opened.");
1558
+ this.primary = tabId;
1559
+ this.tabs.add(tabId);
1560
+ return [{ tabId }];
1561
+ });
1562
+ return this.opened.then(() => [...this.tabs].map((tabId) => ({ tabId })));
1563
+ }
1564
+ async cdp(tabId, method, params, sessionId) {
1565
+ const reply = await this.ask(BROWSER_PANE_METHODS.cdp, {
1566
+ tabId,
1567
+ method,
1568
+ ...params !== void 0 ? { params } : {},
1569
+ ...sessionId !== void 0 ? { cdpSessionId: sessionId } : {}
1570
+ });
1571
+ const answer = object(reply);
1572
+ return answer && "result" in answer ? answer.result : reply;
1573
+ }
1574
+ onEvent(listener) {
1575
+ this.events.add(listener);
1576
+ return () => this.events.delete(listener);
1577
+ }
1578
+ onTabAdded(listener) {
1579
+ this.added.add(listener);
1580
+ return () => this.added.delete(listener);
1581
+ }
1582
+ onTabClosed(listener) {
1583
+ this.gone.add(listener);
1584
+ return () => this.gone.delete(listener);
1585
+ }
1586
+ onClose(listener) {
1587
+ this.closes.add(listener);
1588
+ return () => this.closes.delete(listener);
1589
+ }
1590
+ // The first tab stays: it is the one the conversation always has, and the host has nowhere
1591
+ // to go if it is closed. A tab a page opened can be closed.
1592
+ async closeTab(tabId) {
1593
+ if (tabId === this.primary)
1594
+ throw new Error(
1595
+ "The Browser pane keeps this conversation\u2019s first tab open. Open another address in it instead."
1596
+ );
1597
+ await this.ask(BROWSER_PANE_METHODS.close, { tabId });
1598
+ this.forget(tabId);
1599
+ }
1600
+ async close() {
1601
+ if (this.done) return;
1602
+ const wasOpen = this.opened !== void 0 && closed === void 0;
1603
+ this.done = true;
1604
+ channels.delete(this);
1605
+ if (wasOpen)
1606
+ await connection.ask(BROWSER_PANE_METHODS.close, {
1607
+ sessionId: this.sessionId,
1608
+ release: true
1609
+ }).catch(() => void 0);
1610
+ }
1611
+ // ---- What the application says ----------------------------------------------------------
1612
+ forget(tabId) {
1613
+ if (!this.tabs.delete(tabId)) return;
1614
+ for (const listener of [...this.gone]) listener(tabId);
1615
+ }
1616
+ receive(body) {
1617
+ if (this.done) return;
1618
+ const tabId = text3(body.tabId);
1619
+ if (!tabId) return;
1620
+ switch (body.kind) {
1621
+ case "cdp": {
1622
+ const method = text3(body.method);
1623
+ if (!method) return;
1624
+ const sessionId = text3(body.cdpSessionId);
1625
+ const event = {
1626
+ tabId,
1627
+ method,
1628
+ ...body.params !== void 0 ? { params: body.params } : {},
1629
+ ...sessionId ? { sessionId } : {}
1630
+ };
1631
+ for (const listener of [...this.events]) listener(event);
1632
+ return;
1633
+ }
1634
+ case "tab-added":
1635
+ if (this.tabs.has(tabId)) return;
1636
+ this.tabs.add(tabId);
1637
+ for (const listener of [...this.added]) listener({ tabId });
1638
+ return;
1639
+ case "tab-closed":
1640
+ case "detached":
1641
+ this.forget(tabId);
1642
+ }
1643
+ }
1644
+ setControl(state) {
1645
+ this.holder = state;
1646
+ }
1647
+ fail(reason) {
1648
+ if (this.done) return;
1649
+ this.done = true;
1650
+ channels.delete(this);
1651
+ for (const listener of [...this.closes]) listener(reason);
1652
+ }
1653
+ }
1654
+ const forSession = /* @__PURE__ */ __name((params) => {
1655
+ const id2 = text3(params.sessionId);
1656
+ return id2 ? [...channels].filter((channel) => channel.sessionId === id2) : [];
1657
+ }, "forSession");
1658
+ return {
1659
+ available: /* @__PURE__ */ __name(() => closed === void 0 && connection.offers(BROWSER_PANE_CAPABILITY), "available"),
1660
+ channel: /* @__PURE__ */ __name((sessionId, rules) => new Channel(sessionId, rules), "channel"),
1661
+ extensions: {
1662
+ [BROWSER_PANE_METHODS.event]: (params) => {
1663
+ for (const channel of forSession(params)) channel.receive(params);
1664
+ return null;
1665
+ },
1666
+ [BROWSER_PANE_METHODS.state]: (params) => {
1667
+ const state = params.state === "person" ? "person" : params.state === "agent" ? "agent" : void 0;
1668
+ if (state) for (const channel of forSession(params)) channel.setControl(state);
1669
+ return null;
1670
+ }
1671
+ },
1672
+ close: /* @__PURE__ */ __name((reason) => {
1673
+ if (closed !== void 0) return;
1674
+ closed = reason ?? "The connection to the app closed.";
1675
+ for (const channel of [...channels]) channel.fail(closed);
1676
+ }, "close")
1677
+ };
1678
+ }
1679
+ __name(createAcpPaneLink, "createAcpPaneLink");
1680
+ function hostOfKey(key) {
1681
+ const match = /^https?:\/\/((?:\*\.)?[^:/]+)(?::(?:\*|\d+))?$/.exec(key);
1682
+ return match?.[1]?.toLowerCase();
1683
+ }
1684
+ __name(hostOfKey, "hostOfKey");
1685
+ function paneSiteRules(sites) {
1686
+ const deny = /* @__PURE__ */ new Set();
1687
+ const allow = /* @__PURE__ */ new Set();
1688
+ let defaultLevel = "ask";
1689
+ for (const [key, level] of Object.entries(sites)) {
1690
+ if (key === "*") {
1691
+ defaultLevel = level;
1692
+ continue;
1693
+ }
1694
+ const host = hostOfKey(key);
1695
+ if (!host) return void 0;
1696
+ if (level === "deny") deny.add(host);
1697
+ else allow.add(host);
1698
+ }
1699
+ if (defaultLevel === "deny") {
1700
+ return allow.size > 0 ? { allow: [...allow], ...deny.size ? { deny: [...deny] } : {} } : { deny: ["*"] };
1701
+ }
1702
+ return deny.size > 0 ? { deny: [...deny] } : {};
1703
+ }
1704
+ __name(paneSiteRules, "paneSiteRules");
1705
+
1455
1706
  // src/commands/acp-desktop-question.ts
1456
1707
  import { randomUUID as randomUUID3 } from "node:crypto";
1708
+ var cardQuestion = /* @__PURE__ */ __name((question) => screenQuestionApp(question) !== void 0 || browserWindowQuestionApp(question) !== void 0, "cardQuestion");
1457
1709
  var QUESTION_NOTIFICATION = "namzu/session/question";
1458
1710
  var QUESTION_CLOSED_NOTIFICATION = "namzu/session/question-closed";
1459
1711
  var ANSWER_QUESTION_METHOD = "namzu/session/answer-question";
@@ -1511,6 +1763,13 @@ function readQuestionAnswer(value) {
1511
1763
  };
1512
1764
  }
1513
1765
  __name(readQuestionAnswer, "readQuestionAnswer");
1766
+ function pickedSkillTarget(answer) {
1767
+ if (answer.kind !== "answer") return "cancel";
1768
+ const entry = answer.answers?.find((item) => item.questionId === SKILL_SAVE_QUESTION_ID);
1769
+ const picked = entry ? entry.selectedOptionIds : answer.answers ? [] : answer.selectedOptionIds;
1770
+ return picked.length === 1 && (picked[0] === "user" || picked[0] === "project") ? picked[0] : "cancel";
1771
+ }
1772
+ __name(pickedSkillTarget, "pickedSkillTarget");
1514
1773
  function asSingleAnswer(answer) {
1515
1774
  if (answer.kind !== "answer" || !answer.answers) return answer;
1516
1775
  const first = answer.answers[0];
@@ -1534,7 +1793,7 @@ function createQuestionRelay(notify) {
1534
1793
  return (question, signal) => new Promise((resolve6) => {
1535
1794
  if (turnSignal.aborted) return resolve6({ kind: "abort" });
1536
1795
  if (signal?.aborted) return resolve6({ kind: "skip" });
1537
- if (screenQuestionApp(question) !== void 0) return resolve6({ kind: "skip" });
1796
+ if (cardQuestion(question)) return resolve6({ kind: "skip" });
1538
1797
  const requestId = randomUUID3();
1539
1798
  let done = false;
1540
1799
  const finish = /* @__PURE__ */ __name((answer, tell) => {
@@ -1558,6 +1817,49 @@ function createQuestionRelay(notify) {
1558
1817
  say(QUESTION_NOTIFICATION, { sessionId, requestId, question });
1559
1818
  });
1560
1819
  },
1820
+ skillSaveConfirm(sessionId, cwd) {
1821
+ return (request, signal) => new Promise((resolve6) => {
1822
+ if (signal?.aborted) return resolve6("cancel");
1823
+ const requestId = randomUUID3();
1824
+ let done = false;
1825
+ const finish = /* @__PURE__ */ __name((answer, tell) => {
1826
+ if (done) return;
1827
+ done = true;
1828
+ open2.delete(requestId);
1829
+ signal?.removeEventListener("abort", onAbort);
1830
+ if (tell) say(QUESTION_CLOSED_NOTIFICATION, { sessionId, requestId });
1831
+ resolve6(answer);
1832
+ }, "finish");
1833
+ const onAbort = /* @__PURE__ */ __name(() => finish("cancel", true), "onAbort");
1834
+ open2.set(requestId, {
1835
+ sessionId,
1836
+ single: false,
1837
+ settle: /* @__PURE__ */ __name((answer) => finish(pickedSkillTarget(answer), false), "settle")
1838
+ });
1839
+ signal?.addEventListener("abort", onAbort, { once: true });
1840
+ say(QUESTION_NOTIFICATION, {
1841
+ sessionId,
1842
+ requestId,
1843
+ question: {
1844
+ questions: [
1845
+ {
1846
+ id: SKILL_SAVE_QUESTION_ID,
1847
+ header: "Save skill",
1848
+ question: `Save the skill "${request.draft.name}"?`,
1849
+ options: [
1850
+ { id: SKILL_SAVE_OPTIONS[0], label: "Save to my skills" },
1851
+ { id: SKILL_SAVE_OPTIONS[1], label: "Save to this project" },
1852
+ { id: SKILL_SAVE_OPTIONS[2], label: "Cancel" }
1853
+ ],
1854
+ multiSelect: false,
1855
+ allowFreeText: false
1856
+ }
1857
+ ]
1858
+ },
1859
+ skillSave: skillSaveCardPayload(request, cwd())
1860
+ });
1861
+ });
1862
+ },
1561
1863
  answer(sessionId, requestId, answer) {
1562
1864
  const pending = open2.get(requestId);
1563
1865
  if (!pending || pending.sessionId !== sessionId) return false;
@@ -1572,7 +1874,7 @@ __name(createQuestionRelay, "createQuestionRelay");
1572
1874
  function routeQuestions(screen, relay) {
1573
1875
  if (!screen) return relay;
1574
1876
  if (!relay) return screen;
1575
- return (question, signal) => screenQuestionApp(question) !== void 0 ? screen(question, signal) : relay(question, signal);
1877
+ return (question, signal) => cardQuestion(question) ? screen(question, signal) : relay(question, signal);
1576
1878
  }
1577
1879
  __name(routeQuestions, "routeQuestions");
1578
1880
 
@@ -1602,10 +1904,10 @@ function claudeJson(value) {
1602
1904
  if (typeof item === "number" && Number.isFinite(item)) return item;
1603
1905
  if (typeof item === "string" && item.length <= 1e6) return item;
1604
1906
  if (Array.isArray(item)) return Object.freeze(item.map((part) => copy(part, depth + 1)));
1605
- const object = claudeRecord(item);
1606
- if (object) {
1907
+ const object2 = claudeRecord(item);
1908
+ if (object2) {
1607
1909
  const result2 = Object.fromEntries(
1608
- Object.entries(object).map(([key, part]) => {
1910
+ Object.entries(object2).map(([key, part]) => {
1609
1911
  if (key.length > 4096) throw new Error("The native tool input is too large.");
1610
1912
  return [key, copy(part, depth + 1)];
1611
1913
  })
@@ -1795,9 +2097,9 @@ var ClaudeTurnProjection = class {
1795
2097
  });
1796
2098
  }
1797
2099
  text(message) {
1798
- const text4 = [...message.blocks.entries()].sort(([left], [right]) => left - right).filter(([, block]) => block.type === "text").map(([, block]) => block.text).join("");
1799
- if (text4.length > 1e6) throw new Error("The native message is too large.");
1800
- return text4;
2100
+ const text5 = [...message.blocks.entries()].sort(([left], [right]) => left - right).filter(([, block]) => block.type === "text").map(([, block]) => block.text).join("");
2101
+ if (text5.length > 1e6) throw new Error("The native message is too large.");
2102
+ return text5;
1801
2103
  }
1802
2104
  reasoning(message, index, block) {
1803
2105
  if (block.reasoningCompleted) return;
@@ -2211,8 +2513,8 @@ function startHarnessProcess(command, options) {
2211
2513
  fail(error instanceof Error ? error : new Error("Harness frame handling failed."));
2212
2514
  });
2213
2515
  }, "frame");
2214
- const consume = /* @__PURE__ */ __name((text4) => {
2215
- buffer += text4;
2516
+ const consume = /* @__PURE__ */ __name((text5) => {
2517
+ buffer += text5;
2216
2518
  let newline = buffer.indexOf("\n");
2217
2519
  while (newline !== -1) {
2218
2520
  const line = buffer.slice(0, newline);
@@ -3001,26 +3303,26 @@ function codexItemEvents(turn, raw, completed) {
3001
3303
  const identity = { ...turn, nativeItemId };
3002
3304
  if (item.type === "agentMessage") {
3003
3305
  if (!completed) return [{ ...identity, kind: "message-started" }];
3004
- const text4 = typeof item.text === "string" ? item.text : "";
3306
+ const text5 = typeof item.text === "string" ? item.text : "";
3005
3307
  const phase = item.phase === "commentary" || item.phase === "final_answer" ? item.phase : void 0;
3006
3308
  return [
3007
3309
  {
3008
3310
  ...identity,
3009
3311
  kind: "message-completed",
3010
- content: text4,
3011
- parts: [{ id: nativeItemId, text: text4, phase }],
3312
+ content: text5,
3313
+ parts: [{ id: nativeItemId, text: text5, phase }],
3012
3314
  stopReason: "end_turn"
3013
3315
  }
3014
3316
  ];
3015
3317
  }
3016
3318
  if (item.type === "reasoning") {
3017
3319
  const summary = Array.isArray(item.summary) ? item.summary.filter((part) => typeof part === "string") : [];
3018
- return (summary.length ? summary : [""]).map((text4, index) => ({
3320
+ return (summary.length ? summary : [""]).map((text5, index) => ({
3019
3321
  ...identity,
3020
3322
  kind: "reasoning",
3021
3323
  blockId: `${nativeItemId}:${index}`,
3022
3324
  status: completed ? "completed" : "pending",
3023
- ...text4 ? { text: text4 } : {}
3325
+ ...text5 ? { text: text5 } : {}
3024
3326
  }));
3025
3327
  }
3026
3328
  let name;
@@ -3431,15 +3733,15 @@ var CodexConnection = class {
3431
3733
  const nativeItemId = codexString(params.itemId);
3432
3734
  if (nativeItemId && typeof params.delta === "string") {
3433
3735
  const blockId = `${nativeItemId}:${String(params.summaryIndex ?? 0)}`;
3434
- const text4 = (this.reasoning.get(blockId) ?? "") + params.delta;
3435
- this.reasoning.set(blockId, text4);
3736
+ const text5 = (this.reasoning.get(blockId) ?? "") + params.delta;
3737
+ this.reasoning.set(blockId, text5);
3436
3738
  await this.emit({
3437
3739
  ...turn,
3438
3740
  nativeItemId,
3439
3741
  kind: "reasoning",
3440
3742
  blockId,
3441
3743
  status: "pending",
3442
- text: text4
3744
+ text: text5
3443
3745
  });
3444
3746
  }
3445
3747
  } else if (method === "item/commandExecution/outputDelta" || method === "item/fileChange/outputDelta") {
@@ -4690,10 +4992,13 @@ __name(readProviderRetryStatus, "readProviderRetryStatus");
4690
4992
 
4691
4993
  // src/commands/acp-screen-question.ts
4692
4994
  var SCREEN_MOMENT_TOOL = "screen_moment";
4995
+ var BROWSER_WINDOW_TOOL = "browser_window";
4693
4996
  function questionsOverPermission(sessionId, ask, turnSignal) {
4694
4997
  let counter = 0;
4695
4998
  return async (question, signal) => {
4696
- const app = screenQuestionApp(question);
4999
+ const screen = screenQuestionApp(question);
5000
+ const browser = screen === void 0 ? browserWindowQuestionApp(question) : void 0;
5001
+ const app = screen ?? browser;
4697
5002
  if (app === void 0) return { kind: "skip" };
4698
5003
  if (turnSignal.aborted) return { kind: "abort" };
4699
5004
  counter += 1;
@@ -4701,8 +5006,8 @@ function questionsOverPermission(sessionId, ask, turnSignal) {
4701
5006
  sessionId,
4702
5007
  toolCalls: [
4703
5008
  {
4704
- id: `screen-moment-${counter}`,
4705
- name: SCREEN_MOMENT_TOOL,
5009
+ id: `${browser === void 0 ? "screen-moment" : "browser-window"}-${counter}`,
5010
+ name: browser === void 0 ? SCREEN_MOMENT_TOOL : BROWSER_WINDOW_TOOL,
4706
5011
  input: { app },
4707
5012
  isDestructive: false,
4708
5013
  alwaysAsk: true
@@ -4803,12 +5108,12 @@ function plainCommitMessage(files) {
4803
5108
  __name(plainCommitMessage, "plainCommitMessage");
4804
5109
  function cleanCommitMessage(reply) {
4805
5110
  if (!reply) return void 0;
4806
- let text4 = reply.trim();
4807
- const fenced = /^```[a-z]*\s*([\s\S]*?)\s*```$/iu.exec(text4);
4808
- if (fenced?.[1] !== void 0) text4 = fenced[1].trim();
4809
- text4 = text4.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/gu, "").replace(/^["'`]+|["'`]+$/gu, "").trim();
4810
- if (text4 === "") return void 0;
4811
- return text4.slice(0, COMMIT_MESSAGE_MAX);
5111
+ let text5 = reply.trim();
5112
+ const fenced = /^```[a-z]*\s*([\s\S]*?)\s*```$/iu.exec(text5);
5113
+ if (fenced?.[1] !== void 0) text5 = fenced[1].trim();
5114
+ text5 = text5.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/gu, "").replace(/^["'`]+|["'`]+$/gu, "").trim();
5115
+ if (text5 === "") return void 0;
5116
+ return text5.slice(0, COMMIT_MESSAGE_MAX);
4812
5117
  }
4813
5118
  __name(cleanCommitMessage, "cleanCommitMessage");
4814
5119
  var IN_PROGRESS = [
@@ -4828,16 +5133,16 @@ function createProjectCommit(options) {
4828
5133
  return false;
4829
5134
  }
4830
5135
  });
4831
- const text4 = /* @__PURE__ */ __name(async (args, cwd) => (await git(args, cwd)).stdout, "text");
5136
+ const text5 = /* @__PURE__ */ __name(async (args, cwd) => (await git(args, cwd)).stdout, "text");
4832
5137
  const inProgress = /* @__PURE__ */ __name(async (cwd) => {
4833
- const dir = (await text4(["rev-parse", "--absolute-git-dir"], cwd)).trim();
5138
+ const dir = (await text5(["rev-parse", "--absolute-git-dir"], cwd)).trim();
4834
5139
  for (const name of IN_PROGRESS)
4835
5140
  if (await exists(join5(dir, name)))
4836
5141
  return "A merge, rebase, cherry-pick or revert is in progress here. Finish it first.";
4837
5142
  return void 0;
4838
5143
  }, "inProgress");
4839
- const fingerprint = /* @__PURE__ */ __name(async (cwd, entry) => entry.state === "deleted" ? "deleted" : (await text4(["hash-object", "--", entry.path], cwd)).trim(), "fingerprint");
4840
- const changed = /* @__PURE__ */ __name(async (cwd) => parseStatus(await text4(["status", "--porcelain=v1", "-z", "--untracked-files=all"], cwd)), "changed");
5144
+ const fingerprint = /* @__PURE__ */ __name(async (cwd, entry) => entry.state === "deleted" ? "deleted" : (await text5(["hash-object", "--", entry.path], cwd)).trim(), "fingerprint");
5145
+ const changed = /* @__PURE__ */ __name(async (cwd) => parseStatus(await text5(["status", "--porcelain=v1", "-z", "--untracked-files=all"], cwd)), "changed");
4841
5146
  return {
4842
5147
  async preview(cwd, sessionPaths, sessionId) {
4843
5148
  const empty = /* @__PURE__ */ __name((blocker2) => ({
@@ -4853,7 +5158,7 @@ function createProjectCommit(options) {
4853
5158
  if (!options.isTrusted(cwd)) return empty("Trust this folder to commit in it.");
4854
5159
  let status;
4855
5160
  try {
4856
- await text4(["rev-parse", "--git-dir"], cwd);
5161
+ await text5(["rev-parse", "--git-dir"], cwd);
4857
5162
  status = await changed(cwd);
4858
5163
  } catch {
4859
5164
  return empty("Commit needs a Git repository.");
@@ -4869,7 +5174,7 @@ function createProjectCommit(options) {
4869
5174
  let branch = null;
4870
5175
  let detached = false;
4871
5176
  try {
4872
- branch = (await text4(["symbolic-ref", "--short", "-q", "HEAD"], cwd)).trim() || null;
5177
+ branch = (await text5(["symbolic-ref", "--short", "-q", "HEAD"], cwd)).trim() || null;
4873
5178
  } catch {
4874
5179
  detached = true;
4875
5180
  }
@@ -4943,8 +5248,8 @@ function createProjectCommit(options) {
4943
5248
  const output = failure.output;
4944
5249
  throw new CommitRefused(output ? output.slice(0, 2e3) : "Git could not make the commit.");
4945
5250
  }
4946
- const hash = (await text4(["rev-parse", "--short", "HEAD"], cwd)).trim();
4947
- const subject = (await text4(["log", "-1", "--format=%s"], cwd)).trim();
5251
+ const hash = (await text5(["rev-parse", "--short", "HEAD"], cwd)).trim();
5252
+ const subject = (await text5(["log", "-1", "--format=%s"], cwd)).trim();
4948
5253
  return { hash, subject };
4949
5254
  }
4950
5255
  };
@@ -5124,8 +5429,8 @@ var ONE_LINE = /[\r\n\t]+/g;
5124
5429
  var clip = /* @__PURE__ */ __name((value, max) => value.replace(ONE_LINE, " ").trim().slice(0, max), "clip");
5125
5430
  function detailOf(name, spec) {
5126
5431
  const summary = summarizeUserMcpServer({ name, spec });
5127
- const text4 = summary.transport === "http" ? summary.endpoint : summary.command;
5128
- return text4 ? clip(text4, 200) : void 0;
5432
+ const text5 = summary.transport === "http" ? summary.endpoint : summary.command;
5433
+ return text5 ? clip(text5, 200) : void 0;
5129
5434
  }
5130
5435
  __name(detailOf, "detailOf");
5131
5436
  function listMcpServers(options) {
@@ -5670,8 +5975,8 @@ function palPublicAssistantText(message) {
5670
5975
  return content.trim() ? content : void 0;
5671
5976
  const delivered = message.textParts.filter((part) => part.phase !== "commentary");
5672
5977
  if (!delivered.length) return void 0;
5673
- const text4 = selectAssistantText(delivered);
5674
- return text4.trim() ? text4 : void 0;
5978
+ const text5 = selectAssistantText(delivered);
5979
+ return text5.trim() ? text5 : void 0;
5675
5980
  }
5676
5981
  __name(palPublicAssistantText, "palPublicAssistantText");
5677
5982
 
@@ -5868,11 +6173,11 @@ function parseNameStatus(data, truncated = false) {
5868
6173
  return out;
5869
6174
  }
5870
6175
  __name(parseNameStatus, "parseNameStatus");
5871
- function countLines(text4) {
5872
- if (text4.length === 0) return 0;
6176
+ function countLines(text5) {
6177
+ if (text5.length === 0) return 0;
5873
6178
  let count = 0;
5874
- for (let index = text4.indexOf("\n"); index !== -1; index = text4.indexOf("\n", index + 1)) count++;
5875
- return text4.endsWith("\n") ? count : count + 1;
6179
+ for (let index = text5.indexOf("\n"); index !== -1; index = text5.indexOf("\n", index + 1)) count++;
6180
+ return text5.endsWith("\n") ? count : count + 1;
5876
6181
  }
5877
6182
  __name(countLines, "countLines");
5878
6183
  var decoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
@@ -6049,10 +6354,10 @@ function createProjectChanges(options = {}) {
6049
6354
  const sides = [head.bytes, after].map((bytes) => bytes === null ? null : decodeText(bytes));
6050
6355
  if (sides.some((side) => side !== null && "binary" in side))
6051
6356
  return { before: null, after: null, binary: true, truncated: false };
6052
- const text4 = /* @__PURE__ */ __name((side) => side && "text" in side ? side.text : null, "text");
6357
+ const text5 = /* @__PURE__ */ __name((side) => side && "text" in side ? side.text : null, "text");
6053
6358
  return {
6054
- before: text4(sides[0]),
6055
- after: text4(sides[1]),
6359
+ before: text5(sides[0]),
6360
+ after: text5(sides[1]),
6056
6361
  binary: false,
6057
6362
  truncated: false
6058
6363
  };
@@ -6079,7 +6384,7 @@ var MEMORY_TEXT_MAX = 8e3;
6079
6384
  var MEMORY_TITLE_MAX = 120;
6080
6385
  var MEMORY_SUMMARY_MAX = 240;
6081
6386
  var EXCERPT_MAX = 400;
6082
- var revisionOf = /* @__PURE__ */ __name((text4) => createHash3("sha256").update(text4).digest("hex"), "revisionOf");
6387
+ var revisionOf = /* @__PURE__ */ __name((text5) => createHash3("sha256").update(text5).digest("hex"), "revisionOf");
6083
6388
  function instructionsPath() {
6084
6389
  return join7(resolveNamzuHome(), INSTRUCTIONS_FILENAME);
6085
6390
  }
@@ -6094,15 +6399,15 @@ function readStandingInstructions() {
6094
6399
  }
6095
6400
  if (!stat6.isFile() || stat6.size > MAX_BYTES_TO_READ)
6096
6401
  return { text: "", limit: MAX_CHARS_PER_FILE, revision: revisionOf(""), locked: true };
6097
- const text4 = readFileSync(file, "utf8");
6098
- return { text: text4, limit: MAX_CHARS_PER_FILE, revision: revisionOf(text4) };
6402
+ const text5 = readFileSync(file, "utf8");
6403
+ return { text: text5, limit: MAX_CHARS_PER_FILE, revision: revisionOf(text5) };
6099
6404
  }
6100
6405
  __name(readStandingInstructions, "readStandingInstructions");
6101
- function writeStandingInstructions(text4, revision2) {
6102
- if (typeof text4 !== "string") throw new Error("Invalid text.");
6406
+ function writeStandingInstructions(text5, revision2) {
6407
+ if (typeof text5 !== "string") throw new Error("Invalid text.");
6103
6408
  if (revision2 !== void 0 && (typeof revision2 !== "string" || revision2.length > 200))
6104
6409
  throw new Error("Invalid revision.");
6105
- if (text4.length > MAX_CHARS_PER_FILE)
6410
+ if (text5.length > MAX_CHARS_PER_FILE)
6106
6411
  throw new Error(`Standing instructions can hold ${MAX_CHARS_PER_FILE} characters.`);
6107
6412
  const file = instructionsPath();
6108
6413
  if (lstatSafe(file) && !lstatSync2(file).isFile())
@@ -6111,20 +6416,20 @@ function writeStandingInstructions(text4, revision2) {
6111
6416
  const now = readStandingInstructions();
6112
6417
  if (now.revision !== revision2) return { ...now, changed: true };
6113
6418
  }
6114
- if (text4.trim() === "") {
6419
+ if (text5.trim() === "") {
6115
6420
  if (lstatSafe(file)) unlinkSync(file);
6116
6421
  return { text: "", limit: MAX_CHARS_PER_FILE, revision: revisionOf("") };
6117
6422
  }
6118
6423
  mkdirSync(resolveNamzuHome(), { recursive: true, mode: 448 });
6119
6424
  const staging = `${file}.${process.pid}.tmp`;
6120
6425
  try {
6121
- writeFileSync(staging, text4, { encoding: "utf8", mode: 384 });
6426
+ writeFileSync(staging, text5, { encoding: "utf8", mode: 384 });
6122
6427
  renameSync(staging, file);
6123
6428
  } catch (error) {
6124
6429
  if (lstatSafe(staging)) unlinkSync(staging);
6125
6430
  throw error;
6126
6431
  }
6127
- return { text: text4, limit: MAX_CHARS_PER_FILE, revision: revisionOf(text4) };
6432
+ return { text: text5, limit: MAX_CHARS_PER_FILE, revision: revisionOf(text5) };
6128
6433
  }
6129
6434
  __name(writeStandingInstructions, "writeStandingInstructions");
6130
6435
  function lstatSafe(file) {
@@ -6157,8 +6462,8 @@ async function openStore(cwd) {
6157
6462
  return new MarkdownMemoryStore({ directory });
6158
6463
  }
6159
6464
  __name(openStore, "openStore");
6160
- var flat = /* @__PURE__ */ __name((text4, max) => {
6161
- const line = text4.replace(/\s+/g, " ").trim();
6465
+ var flat = /* @__PURE__ */ __name((text5, max) => {
6466
+ const line = text5.replace(/\s+/g, " ").trim();
6162
6467
  return line.length > max ? `${line.slice(0, max - 1)}\u2026` : line;
6163
6468
  }, "flat");
6164
6469
  function target(params) {
@@ -6235,19 +6540,19 @@ function createMemoryHost(cwd, pal) {
6235
6540
  refusePal();
6236
6541
  only(params, ["id", "revision", "text", "title"], "memory");
6237
6542
  const item = target(params);
6238
- const { text: text4, title: title2 } = params;
6239
- if (typeof text4 !== "string" || text4.trim() === "" || text4.length > MEMORY_TEXT_MAX)
6543
+ const { text: text5, title: title2 } = params;
6544
+ if (typeof text5 !== "string" || text5.trim() === "" || text5.length > MEMORY_TEXT_MAX)
6240
6545
  throw new Error("Invalid text.");
6241
6546
  if (title2 !== void 0 && (typeof title2 !== "string" || title2.trim() === "" || title2.length > MEMORY_TITLE_MAX))
6242
6547
  throw new Error("Invalid title.");
6243
6548
  const store = await openStore(cwd);
6244
6549
  if (!store) return { outcome: "gone" };
6245
6550
  const outcome = await updateManagedMemory(store, item, {
6246
- content: text4,
6551
+ content: text5,
6247
6552
  ...title2 === void 0 ? {} : { title: title2.trim() },
6248
- summary: flat(text4, MEMORY_SUMMARY_MAX),
6553
+ summary: flat(text5, MEMORY_SUMMARY_MAX),
6249
6554
  // The index line every later prompt carries must not keep the wording that was replaced.
6250
- description: flat(text4, MEMORY_SUMMARY_MAX)
6555
+ description: flat(text5, MEMORY_SUMMARY_MAX)
6251
6556
  });
6252
6557
  return { outcome };
6253
6558
  }, "namzu/memory/update"),
@@ -6365,21 +6670,21 @@ function userServersAnswer(name) {
6365
6670
  };
6366
6671
  }
6367
6672
  __name(userServersAnswer, "userServersAnswer");
6368
- function text3(params, key, max = 400) {
6673
+ function text4(params, key, max = 400) {
6369
6674
  const value = params[key];
6370
6675
  if (typeof value !== "string" || !value.trim() || value.length > max)
6371
6676
  throw new Error(`Invalid ${key}.`);
6372
6677
  return value;
6373
6678
  }
6374
- __name(text3, "text");
6679
+ __name(text4, "text");
6375
6680
  function session(params) {
6376
- const value = text3(params, "sessionId");
6681
+ const value = text4(params, "sessionId");
6377
6682
  if (!isEntityId(value, "session")) throw new Error("Invalid conversation id.");
6378
6683
  return value;
6379
6684
  }
6380
6685
  __name(session, "session");
6381
6686
  function undoTurnId(params) {
6382
- const turnId = text3(params, "turnId");
6687
+ const turnId = text4(params, "turnId");
6383
6688
  if (!isEntityId(turnId, "turn")) throw new Error("Invalid turn.");
6384
6689
  return turnId;
6385
6690
  }
@@ -6946,7 +7251,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
6946
7251
  const ownedSession = /* @__PURE__ */ __name((params) => withState((state) => ownedSessionIn(params, state)), "ownedSession");
6947
7252
  const ownedReadSession = /* @__PURE__ */ __name((params) => withReadScope((state) => ownedSessionIn(params, state)), "ownedReadSession");
6948
7253
  const ownedPal = /* @__PURE__ */ __name((params) => {
6949
- const id2 = text3(params, "palId");
7254
+ const id2 = text4(params, "palId");
6950
7255
  if (!isTrusted(cwd) || pal()?.id !== id2)
6951
7256
  throw new Error("This Pal does not own the current workspace.");
6952
7257
  return id2;
@@ -7032,7 +7337,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7032
7337
  "namzu/conversations/input/status": /* @__PURE__ */ __name(async (params) => {
7033
7338
  if (Object.keys(params).some((key) => !["sessionId", "scopeId"].includes(key)))
7034
7339
  throw new Error("Live input status accepts only sessionId and scopeId.");
7035
- const scopeId = params.scopeId === void 0 ? void 0 : text3(params, "scopeId");
7340
+ const scopeId = params.scopeId === void 0 ? void 0 : text4(params, "scopeId");
7036
7341
  return withReadScope(
7037
7342
  async (state) => liveInputStatus(await liveOwner(params, state), scopeId, state)
7038
7343
  );
@@ -7043,9 +7348,9 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7043
7348
  ))
7044
7349
  throw new Error("Live input accepts only sessionId, scopeId, inputId and prompt.");
7045
7350
  const input = {
7046
- scopeId: text3(params, "scopeId"),
7047
- inputId: text3(params, "inputId"),
7048
- prompt: text3(params, "prompt", 1e6)
7351
+ scopeId: text4(params, "scopeId"),
7352
+ inputId: text4(params, "inputId"),
7353
+ prompt: text4(params, "prompt", 1e6)
7049
7354
  };
7050
7355
  return withReadScope(
7051
7356
  async (state) => liveInput(await liveOwner(params, state), input, state)
@@ -7085,7 +7390,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7085
7390
  "Undo accepts only sessionId, turnId, planToken, resolutions and alsoUndoLater."
7086
7391
  );
7087
7392
  const turnId = undoTurnId(params);
7088
- const planToken = text3(params, "planToken", 200);
7393
+ const planToken = text4(params, "planToken", 200);
7089
7394
  const resolutions = params.resolutions === void 0 ? void 0 : undoResolutions(params.resolutions);
7090
7395
  const alsoUndoLater = undoFlag(params, "alsoUndoLater");
7091
7396
  return withReadScope(
@@ -7110,8 +7415,8 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7110
7415
  "Retry accepts only the original turn, checkpoint and explicit settings; send a new message after the turn settles."
7111
7416
  );
7112
7417
  const id2 = await ownedSession(params);
7113
- const turnId = text3(params, "turnId");
7114
- const checkpointId = text3(params, "checkpointId");
7418
+ const turnId = text4(params, "turnId");
7419
+ const checkpointId = text4(params, "checkpointId");
7115
7420
  if (!isEntityId(turnId, "turn") || !isEntityId(checkpointId, "checkpoint"))
7116
7421
  throw new Error("Invalid retry turn or checkpoint.");
7117
7422
  return retrySession(
@@ -7131,7 +7436,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7131
7436
  "Closing a paused turn accepts only the conversation, its turn and whether its message goes back to the person."
7132
7437
  );
7133
7438
  const id2 = await ownedSession(params);
7134
- const turnId = params.turnId === void 0 ? void 0 : text3(params, "turnId");
7439
+ const turnId = params.turnId === void 0 ? void 0 : text4(params, "turnId");
7135
7440
  if (turnId !== void 0 && !isEntityId(turnId, "turn"))
7136
7441
  throw new Error("Invalid turn.");
7137
7442
  if (params.withdrawMessages !== void 0 && typeof params.withdrawMessages !== "boolean")
@@ -7160,12 +7465,12 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7160
7465
  if (pal()) throw new Error("External engines are available in normal conversations only.");
7161
7466
  const harness = runtime;
7162
7467
  if (!harness.selectHarness) throw new Error("Update Namzu to use external engines.");
7163
- return harness.selectHarness(await ownedSession(params), text3(params, "engine"));
7468
+ return harness.selectHarness(await ownedSession(params), text4(params, "engine"));
7164
7469
  }, "namzu/harnesses/select"),
7165
7470
  "namzu/harnesses/release": /* @__PURE__ */ __name(async (params) => {
7166
7471
  const harness = runtime;
7167
7472
  if (!harness.releaseHarness) return { released: false };
7168
- await harness.releaseHarness(text3(params, "engine"));
7473
+ await harness.releaseHarness(text4(params, "engine"));
7169
7474
  return { released: true };
7170
7475
  }, "namzu/harnesses/release"),
7171
7476
  "namzu/project/status": /* @__PURE__ */ __name(() => ({
@@ -7175,9 +7480,9 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7175
7480
  }), "namzu/project/status"),
7176
7481
  ...createDesktopPalCommunicationExtensions({ cwd, withState }),
7177
7482
  "namzu/pals/list": /* @__PURE__ */ __name(() => listPals(), "namzu/pals/list"),
7178
- "namzu/pals/get": /* @__PURE__ */ __name((params) => getPal(text3(params, "id")), "namzu/pals/get"),
7483
+ "namzu/pals/get": /* @__PURE__ */ __name((params) => getPal(text4(params, "id")), "namzu/pals/get"),
7179
7484
  "namzu/pals/create": /* @__PURE__ */ __name((params) => createPal({
7180
- name: text3(params, "name", 80),
7485
+ name: text4(params, "name", 80),
7181
7486
  ...params.purpose === void 0 ? {} : { purpose: params.purpose },
7182
7487
  ...params.model === void 0 ? {} : { model: params.model },
7183
7488
  ...params.appearance === void 0 ? {} : { appearance: params.appearance }
@@ -7185,7 +7490,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7185
7490
  "namzu/pals/update": /* @__PURE__ */ __name(async (params) => {
7186
7491
  if (!Number.isSafeInteger(params.expectedRevision) || params.expectedRevision < 1)
7187
7492
  throw new Error("Invalid Pal revision.");
7188
- const id2 = text3(params, "id");
7493
+ const id2 = text4(params, "id");
7189
7494
  if (pal()?.id === id2 && (await getCliPalRuntime()).busy(id2))
7190
7495
  throw new Error("Stop this Pal\u2019s active work before changing it.");
7191
7496
  return updatePal(id2, params.expectedRevision, {
@@ -7199,7 +7504,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7199
7504
  "namzu/pals/delete": /* @__PURE__ */ __name(async (params) => {
7200
7505
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).some((key) => key !== "id" && key !== "expectedRevision"))
7201
7506
  throw new Error("Invalid Pal deletion request.");
7202
- const id2 = text3(params, "id");
7507
+ const id2 = text4(params, "id");
7203
7508
  if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u.test(id2))
7204
7509
  throw new Error("Invalid Pal id.");
7205
7510
  const expectedRevision = params.expectedRevision;
@@ -7220,27 +7525,27 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7220
7525
  "namzu/pals/computer/stop": /* @__PURE__ */ __name((params) => stopCliPalComputer(ownedPal(params)), "namzu/pals/computer/stop"),
7221
7526
  "namzu/pals/computer/screen": /* @__PURE__ */ __name((params) => cliPalScreen(
7222
7527
  ownedPal(params),
7223
- params.generation === void 0 ? void 0 : text3(params, "generation", 16)
7528
+ params.generation === void 0 ? void 0 : text4(params, "generation", 16)
7224
7529
  ), "namzu/pals/computer/screen"),
7225
- "namzu/pals/computer/stream": /* @__PURE__ */ __name((params) => cliPalScreenStream(ownedPal(params), text3(params, "generation", 16)), "namzu/pals/computer/stream"),
7226
- "namzu/pals/computer/take_over": /* @__PURE__ */ __name((params) => takeOverCliPalComputer(ownedPal(params), text3(params, "generation", 16)), "namzu/pals/computer/take_over"),
7227
- "namzu/pals/computer/return_control": /* @__PURE__ */ __name((params) => returnCliPalComputerControl(ownedPal(params), text3(params, "generation", 16)), "namzu/pals/computer/return_control"),
7530
+ "namzu/pals/computer/stream": /* @__PURE__ */ __name((params) => cliPalScreenStream(ownedPal(params), text4(params, "generation", 16)), "namzu/pals/computer/stream"),
7531
+ "namzu/pals/computer/take_over": /* @__PURE__ */ __name((params) => takeOverCliPalComputer(ownedPal(params), text4(params, "generation", 16)), "namzu/pals/computer/take_over"),
7532
+ "namzu/pals/computer/return_control": /* @__PURE__ */ __name((params) => returnCliPalComputerControl(ownedPal(params), text4(params, "generation", 16)), "namzu/pals/computer/return_control"),
7228
7533
  "namzu/pals/computer/input": /* @__PURE__ */ __name((params) => executeCliPalComputerInput(
7229
7534
  ownedPal(params),
7230
- text3(params, "generation", 16),
7535
+ text4(params, "generation", 16),
7231
7536
  params.input
7232
7537
  ), "namzu/pals/computer/input"),
7233
7538
  ...palInboxStart ? {
7234
7539
  "namzu/pals/inbox/status": /* @__PURE__ */ __name(async (params) => palInboxStart.status(ownedPal(params)), "namzu/pals/inbox/status"),
7235
- "namzu/pals/inbox/start": /* @__PURE__ */ __name(async (params) => palInboxStart.start(ownedPal(params), text3(params, "clickId", 80)), "namzu/pals/inbox/start")
7540
+ "namzu/pals/inbox/start": /* @__PURE__ */ __name(async (params) => palInboxStart.start(ownedPal(params), text4(params, "clickId", 80)), "namzu/pals/inbox/start")
7236
7541
  } : {},
7237
7542
  "namzu/pals/conversations/claim": /* @__PURE__ */ __name(async (params) => {
7238
7543
  if (!isTrusted(cwd)) throw new Error("This Pal workspace is not trusted.");
7239
- return claimPalConversation(cwd, text3(params, "palId"), session(params));
7544
+ return claimPalConversation(cwd, text4(params, "palId"), session(params));
7240
7545
  }, "namzu/pals/conversations/claim"),
7241
- "namzu/pals/conversations/list": /* @__PURE__ */ __name((params) => listPalConversations(cwd, text3(params, "palId")), "namzu/pals/conversations/list"),
7546
+ "namzu/pals/conversations/list": /* @__PURE__ */ __name((params) => listPalConversations(cwd, text4(params, "palId")), "namzu/pals/conversations/list"),
7242
7547
  "namzu/project/trust": /* @__PURE__ */ __name((params) => {
7243
- if (params.confirmed !== true || text3(params, "cwd", 32768) !== cwd)
7548
+ if (params.confirmed !== true || text4(params, "cwd", 32768) !== cwd)
7244
7549
  throw new Error("Folder confirmation does not match this project.");
7245
7550
  try {
7246
7551
  trustDir(cwd);
@@ -7252,7 +7557,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7252
7557
  return { cwd, trusted: true };
7253
7558
  }, "namzu/project/trust"),
7254
7559
  "namzu/project/untrust": /* @__PURE__ */ __name((params) => {
7255
- if (params.confirmed !== true || text3(params, "cwd", 32768) !== cwd)
7560
+ if (params.confirmed !== true || text4(params, "cwd", 32768) !== cwd)
7256
7561
  throw new Error("Folder confirmation does not match this project.");
7257
7562
  const result = untrustDir(cwd);
7258
7563
  return { cwd, ...result, trusted: isTrusted(cwd) };
@@ -7282,7 +7587,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7282
7587
  "namzu/conversations/search": /* @__PURE__ */ __name(async (params = {}) => {
7283
7588
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).some((key) => key !== "query" && key !== "limit"))
7284
7589
  throw new Error("Invalid conversation search request.");
7285
- const query = text3(params, "query", SEARCH_QUERY_MAX).trim();
7590
+ const query = text4(params, "query", SEARCH_QUERY_MAX).trim();
7286
7591
  const limit = params.limit === void 0 ? 20 : params.limit;
7287
7592
  if (typeof limit !== "number" || !Number.isInteger(limit) || limit < 1 || limit > 50)
7288
7593
  throw new Error("A search returns between 1 and 50 conversations.");
@@ -7546,7 +7851,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7546
7851
  "namzu/skills/list": /* @__PURE__ */ __name(async (params = {}) => {
7547
7852
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
7548
7853
  throw new Error("Invalid skills request.");
7549
- const { listInstalledSkills } = await import("./installed-list-3Z2UYHZL.js");
7854
+ const { listInstalledSkills } = await import("./installed-list-44QXUJFE.js");
7550
7855
  return { skills: listInstalledSkills({ cwd, includeProject: isTrusted(cwd) && !pal() }) };
7551
7856
  }, "namzu/skills/list"),
7552
7857
  /** The tool servers in the user's own config file, as the Settings form edits them. */
@@ -7575,7 +7880,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7575
7880
  ...args ? { args } : {},
7576
7881
  ...typeof params.url === "string" ? { url: params.url } : {}
7577
7882
  };
7578
- const name = text3(params, "name", 64);
7883
+ const name = text4(params, "name", 64);
7579
7884
  if (params.dryRun === true) checkUserMcpServerSave(params.mode, name, input);
7580
7885
  else saveUserMcpServer(params.mode, name, input);
7581
7886
  return userServersAnswer();
@@ -7584,7 +7889,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7584
7889
  if (pal()) throw new Error("Pals do not change the host settings.");
7585
7890
  if (!params || typeof params !== "object" || Object.keys(params).some((key) => key !== "name"))
7586
7891
  throw new Error("Removing a tool server names only the server.");
7587
- removeUserMcpServer(text3(params, "name", 64));
7892
+ removeUserMcpServer(text4(params, "name", 64));
7588
7893
  return userServersAnswer();
7589
7894
  }, "namzu/mcp/remove-user-server"),
7590
7895
  /**
@@ -7596,7 +7901,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7596
7901
  "namzu/hooks/list": /* @__PURE__ */ __name(async (params = {}) => {
7597
7902
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
7598
7903
  throw new Error("Invalid hooks request.");
7599
- const { describeFolderHooks } = await import("./hooks-report-FCLN3ERK.js");
7904
+ const { describeFolderHooks } = await import("./hooks-report-NJLGBWN3.js");
7600
7905
  return describeFolderHooks({ cwd, trusted: isTrusted(cwd) });
7601
7906
  }, "namzu/hooks/list"),
7602
7907
  /** Approves servers `.mcp.json` declared, as they were listed, the way `namzu mcp approve` does. */
@@ -7609,7 +7914,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7609
7914
  throw new Error("Choose the tool servers to approve.");
7610
7915
  const checked = shown.map((item) => {
7611
7916
  const row2 = item && typeof item === "object" ? item : {};
7612
- return { name: text3(row2, "name", 64), fingerprint: text3(row2, "fingerprint", 128) };
7917
+ return { name: text4(row2, "name", 64), fingerprint: text4(row2, "fingerprint", 128) };
7613
7918
  });
7614
7919
  return { approved: approveListedMcpServers(cwd, checked) };
7615
7920
  }, "namzu/mcp/approve"),
@@ -7672,14 +7977,14 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7672
7977
  };
7673
7978
  }, "namzu/providers/status"),
7674
7979
  "namzu/providers/models": /* @__PURE__ */ __name((params) => {
7675
- const provider = text3(params, "provider");
7980
+ const provider = text4(params, "provider");
7676
7981
  if (params.sessionId === void 0) return runtime.models(provider);
7677
7982
  session(params);
7678
7983
  return ownedReadSession(params).then((id2) => runtime.models(provider, id2));
7679
7984
  }, "namzu/providers/models"),
7680
7985
  "namzu/providers/settings": /* @__PURE__ */ __name(async (params) => runtime.modelSettings(
7681
- text3(params, "provider"),
7682
- text3(params, "model"),
7986
+ text4(params, "provider"),
7987
+ text4(params, "model"),
7683
7988
  params.sessionId === void 0 ? void 0 : await ownedReadSession(params)
7684
7989
  ), "namzu/providers/settings"),
7685
7990
  "namzu/plugins/list": /* @__PURE__ */ __name(async (params) => {
@@ -7698,7 +8003,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7698
8003
  if (typeof params.enabled !== "boolean") throw new Error("Invalid plugin choice.");
7699
8004
  return runtime.setPluginEnabled(
7700
8005
  await ownedSession(params),
7701
- text3(params, "name"),
8006
+ text4(params, "name"),
7702
8007
  params.enabled,
7703
8008
  cwd
7704
8009
  );
@@ -7707,8 +8012,8 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7707
8012
  if (!isTrusted(cwd)) throw new Error("Trust this folder first.");
7708
8013
  await runtime.selectProvider(
7709
8014
  await ownedSession(params),
7710
- text3(params, "provider"),
7711
- params.model === void 0 ? void 0 : text3(params, "model")
8015
+ text4(params, "provider"),
8016
+ params.model === void 0 ? void 0 : text4(params, "model")
7712
8017
  );
7713
8018
  return { selected: true };
7714
8019
  }, "namzu/providers/select"),
@@ -7722,7 +8027,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7722
8027
  "namzu/providers/save_key": /* @__PURE__ */ __name(async (params) => {
7723
8028
  if (Object.keys(params).some((key) => !["provider", "apiKey"].includes(key)))
7724
8029
  throw new Error("Saving a key accepts only the provider and the key.");
7725
- return runtime.saveProviderKey(text3(params, "provider"), text3(params, "apiKey", 4096));
8030
+ return runtime.saveProviderKey(text4(params, "provider"), text4(params, "apiKey", 4096));
7726
8031
  }, "namzu/providers/save_key"),
7727
8032
  "namzu/config/get": /* @__PURE__ */ __name(() => {
7728
8033
  if (pal()) throw new Error("Pals do not read the host settings.");
@@ -7735,15 +8040,15 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7735
8040
  if (params.dryRun !== void 0 && typeof params.dryRun !== "boolean")
7736
8041
  throw new Error("dryRun is true or false.");
7737
8042
  if (params.dryRun === true) {
7738
- checkSetting({ path: text3(params, "path"), value: params.value });
8043
+ checkSetting({ path: text4(params, "path"), value: params.value });
7739
8044
  return readSettings();
7740
8045
  }
7741
- writeSetting({ path: text3(params, "path"), value: params.value });
8046
+ writeSetting({ path: text4(params, "path"), value: params.value });
7742
8047
  return readSettings();
7743
8048
  }, "namzu/config/set"),
7744
8049
  "namzu/providers/refresh": /* @__PURE__ */ __name(() => runtime.refreshProviders(), "namzu/providers/refresh"),
7745
- "namzu/providers/remove_key": /* @__PURE__ */ __name(async (params) => runtime.removeProviderKey(text3(params, "provider")), "namzu/providers/remove_key"),
7746
- "namzu/providers/test": /* @__PURE__ */ __name(async (params) => runtime.testProvider(text3(params, "provider")), "namzu/providers/test"),
8050
+ "namzu/providers/remove_key": /* @__PURE__ */ __name(async (params) => runtime.removeProviderKey(text4(params, "provider")), "namzu/providers/remove_key"),
8051
+ "namzu/providers/test": /* @__PURE__ */ __name(async (params) => runtime.testProvider(text4(params, "provider")), "namzu/providers/test"),
7747
8052
  /** Where this conversation's context window goes; null until the engine has reported one. */
7748
8053
  "namzu/session/context": /* @__PURE__ */ __name(async (params) => {
7749
8054
  const request = readContextRequest(params);
@@ -7772,7 +8077,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7772
8077
  "namzu/session/set-permission-mode": /* @__PURE__ */ __name(async (params) => {
7773
8078
  if (Object.keys(params).some((key) => !["sessionId", "mode"].includes(key)))
7774
8079
  throw new Error("Setting the mode accepts only sessionId and mode.");
7775
- const mode = text3(params, "mode");
8080
+ const mode = text4(params, "mode");
7776
8081
  if (!isPermissionMode(mode)) throw new Error("Invalid permission mode.");
7777
8082
  return runtime.setPermissionMode(
7778
8083
  await ownedSession(params),
@@ -7788,15 +8093,27 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7788
8093
  const sessionId = await ownedSession(params);
7789
8094
  runtime.answerQuestion(
7790
8095
  sessionId,
7791
- text3(params, "requestId"),
8096
+ text4(params, "requestId"),
7792
8097
  params.answer
7793
8098
  );
7794
8099
  return { answered: true };
7795
8100
  }
7796
8101
  } : {},
8102
+ /** The person took a browser's click-and-type yes back; the engine asks again. */
8103
+ ...runtime.revokeBrowserGrant ? {
8104
+ "namzu/session/revoke-browser": /* @__PURE__ */ __name(async (params) => {
8105
+ if (Object.keys(params).some((key) => !["sessionId", "app"].includes(key)))
8106
+ throw new Error("Revoking a browser accepts only sessionId and app.");
8107
+ const app = text4(params, "app");
8108
+ if (app.length > 120) throw new Error("Invalid application.");
8109
+ return {
8110
+ revoked: runtime.revokeBrowserGrant(await ownedSession(params), app)
8111
+ };
8112
+ }, "namzu/session/revoke-browser")
8113
+ } : {},
7797
8114
  "namzu/jobs/list": /* @__PURE__ */ __name(async (params) => runtime.jobs(await ownedReadSession(params)), "namzu/jobs/list"),
7798
- "namzu/jobs/read": /* @__PURE__ */ __name(async (params) => runtime.readJob(await ownedReadSession(params), text3(params, "jobId")), "namzu/jobs/read"),
7799
- "namzu/jobs/stop": /* @__PURE__ */ __name(async (params) => runtime.stopJob(await ownedSession(params), text3(params, "jobId")), "namzu/jobs/stop")
8115
+ "namzu/jobs/read": /* @__PURE__ */ __name(async (params) => runtime.readJob(await ownedReadSession(params), text4(params, "jobId")), "namzu/jobs/read"),
8116
+ "namzu/jobs/stop": /* @__PURE__ */ __name(async (params) => runtime.stopJob(await ownedSession(params), text4(params, "jobId")), "namzu/jobs/stop")
7800
8117
  };
7801
8118
  }
7802
8119
  __name(createDesktopHostExtensions, "createDesktopHostExtensions");
@@ -7813,8 +8130,8 @@ __name(productName, "productName");
7813
8130
  function desktopModelCatalogue(listing, defaultModel, currentModel, allowModel, providerLabel = "The provider") {
7814
8131
  if (listing.kind !== "ok") {
7815
8132
  const name = productName(providerLabel);
7816
- const object = providerLabel === "The provider" ? "the provider" : name;
7817
- const notice = listing.kind === "unsupported" ? `${name} doesn\u2019t publish a list of its models.` : listing.kind === "timeout" ? `${name} didn\u2019t answer in time, so its models can\u2019t be listed. Try again.` : listing.failure === "authentication" ? `${name} didn\u2019t accept your key or sign-in, so its models can\u2019t be listed. Check it in Settings.` : listing.failure === "credential-unavailable" ? `The sign-in for ${object} is no longer available on this computer. Sign in again or choose another provider.` : `Namzu couldn\u2019t reach ${object} to list its models. Check your connection, then try again.`;
8133
+ const object2 = providerLabel === "The provider" ? "the provider" : name;
8134
+ const notice = listing.kind === "unsupported" ? `${name} doesn\u2019t publish a list of its models.` : listing.kind === "timeout" ? `${name} didn\u2019t answer in time, so its models can\u2019t be listed. Try again.` : listing.failure === "authentication" ? `${name} didn\u2019t accept your key or sign-in, so its models can\u2019t be listed. Check it in Settings.` : listing.failure === "credential-unavailable" ? `The sign-in for ${object2} is no longer available on this computer. Sign in again or choose another provider.` : `Namzu couldn\u2019t reach ${object2} to list its models. Check your connection, then try again.`;
7818
8135
  return { models: [], notice };
7819
8136
  }
7820
8137
  const seen = /* @__PURE__ */ new Set();
@@ -8443,11 +8760,11 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
8443
8760
  const presenter = {
8444
8761
  presentCall: /* @__PURE__ */ __name((toolName, input) => activeRecord?.session.presenter.presentCall(toolName, input) ?? {
8445
8762
  kind: "generic",
8446
- label: genericLabel(input)
8763
+ label: genericLabel(input) || toolName
8447
8764
  }, "presentCall"),
8448
8765
  presentResult: /* @__PURE__ */ __name((toolName, input, result) => activeRecord?.session.presenter.presentResult(toolName, input, result) ?? {
8449
8766
  kind: "generic",
8450
- label: genericLabel(input)
8767
+ label: genericLabel(input) || toolName
8451
8768
  }, "presentResult")
8452
8769
  };
8453
8770
  const sharedProbe = /* @__PURE__ */ __name(() => {
@@ -8613,6 +8930,18 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
8613
8930
  // question tool, its guidance and a tool server's request for input: none of what the
8614
8931
  // terminal's "somebody is typing" brings with it.
8615
8932
  ...questionRelay && !palEnvironment ? { questions: true } : {},
8933
+ // The desktop can save a skill the model drafted: the same tool the terminal has, its
8934
+ // confirmation drawn as a card by the app. Never answered by a permission mode.
8935
+ ...questionRelay && !palEnvironment ? {
8936
+ extraTools: [
8937
+ buildSaveSkillTool({
8938
+ cwd: /* @__PURE__ */ __name(() => cwd, "cwd"),
8939
+ config: /* @__PURE__ */ __name(() => projectCtx.config.skills, "config"),
8940
+ sessionId: /* @__PURE__ */ __name(() => target2.sessionId, "sessionId"),
8941
+ confirm: questionRelay.skillSaveConfirm(sessionId, () => cwd)
8942
+ })
8943
+ ]
8944
+ } : {},
8616
8945
  // The model may read the safe settings and change one when the person says yes on
8617
8946
  // the card; the desktop's own preferences join when the app said where they are.
8618
8947
  ...runtimeOptions.announce && !palEnvironment && projectCtx.config.agentSettings !== false ? { settingsTools: settingsContext(cwd) } : {},
@@ -8639,7 +8968,16 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
8639
8968
  ...browserConfig?.signInDetection ? { signInDetection: browserConfig.signInDetection } : {},
8640
8969
  // A person is here to answer: a sign-in page is put to them, not left to a command.
8641
8970
  ...questionRelay && !palEnvironment ? { askPersonToSignIn: true } : {},
8642
- ...conversationState ? { home: conversationState.root } : {}
8971
+ ...conversationState ? { home: conversationState.root } : {},
8972
+ // The app's Browser pane first, where it offered one and the rules can be
8973
+ // said as host patterns; a browser set to never show a window stays its own.
8974
+ ...runtimeOptions.browserPane && browserConfig?.headless !== "always" ? (() => {
8975
+ const link = runtimeOptions.browserPane;
8976
+ const rules = paneSiteRules(browserSites.sites);
8977
+ return link && rules ? {
8978
+ pane: /* @__PURE__ */ __name(() => link.available() ? link.channel(sessionId, rules) : void 0, "pane")
8979
+ } : {};
8980
+ })() : {}
8643
8981
  }
8644
8982
  } : {},
8645
8983
  // Every key the configuration sets for a session, through the one function
@@ -8795,8 +9133,10 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
8795
9133
  let failureMessage;
8796
9134
  let settledHistory;
8797
9135
  const onPermission = /* @__PURE__ */ __name(async (request) => {
9136
+ const teammate = record2.session.teammateAsking?.(request);
8798
9137
  const outcome = await ask({
8799
9138
  sessionId,
9139
+ ...teammate ? { teammate } : {},
8800
9140
  toolCalls: await withPreviews(request.toolCalls, [record2.cwd], {
8801
9141
  askEveryCall: request.screenConsent === true,
8802
9142
  computer: /* @__PURE__ */ __name((call) => record2.session.describeComputerUseCall?.(call.name, call.input) ?? Promise.resolve(void 0), "computer"),
@@ -8906,7 +9246,7 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
8906
9246
  if (event.kind === "paused") {
8907
9247
  record2.retrySettings = { ...original, turnId: event.turnId };
8908
9248
  const browser = record2.session.browser;
8909
- if (event.handoff && browser?.status().headless)
9249
+ if (event.handoff && browser?.status().headless && browser.status().where !== "pane")
8910
9250
  void browser.release().catch(() => {
8911
9251
  });
8912
9252
  }
@@ -9003,8 +9343,10 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
9003
9343
  },
9004
9344
  ...onQuestionOf(sessionId, ask, signal),
9005
9345
  onPermission: /* @__PURE__ */ __name(async (request) => {
9346
+ const teammate = record2.session.teammateAsking?.(request);
9006
9347
  const outcome = await ask({
9007
9348
  sessionId,
9349
+ ...teammate ? { teammate } : {},
9008
9350
  toolCalls: await withPreviews(request.toolCalls, [record2.cwd], {
9009
9351
  askEveryCall: request.screenConsent === true,
9010
9352
  computer: /* @__PURE__ */ __name((call) => record2.session.describeComputerUseCall?.(call.name, call.input) ?? Promise.resolve(void 0), "computer"),
@@ -9189,6 +9531,10 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
9189
9531
  if (!questionRelay.answer(sessionId, requestId, answer))
9190
9532
  throw new Error("This question is no longer open.");
9191
9533
  }, "answerQuestion"),
9534
+ revokeBrowserGrant: /* @__PURE__ */ __name((sessionId, app) => {
9535
+ if (closed) throw new Error("The connection is closed.");
9536
+ return records.get(sessionId)?.session.revokeComputerBrowser?.(app) ?? false;
9537
+ }, "revokeBrowserGrant"),
9192
9538
  setPermissionMode: /* @__PURE__ */ __name(async (sessionId, mode) => {
9193
9539
  if (closed) throw new Error("The connection is closed.");
9194
9540
  const record2 = records.get(sessionId);
@@ -9262,10 +9608,8 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
9262
9608
  if (!status.retry) {
9263
9609
  if (!status.handoff) return status;
9264
9610
  const browser = record2?.session.browser?.status();
9265
- return browser ? {
9266
- ...status,
9267
- handoff: { ...status.handoff, window: browser.headless ? "none" : "visible" }
9268
- } : status;
9611
+ const window = browser ? handoffWindow(browser) : void 0;
9612
+ return window ? { ...status, handoff: { ...status.handoff, window } } : status;
9269
9613
  }
9270
9614
  const blocked = /* @__PURE__ */ __name((notice) => ({
9271
9615
  notice,
@@ -9667,9 +10011,9 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
9667
10011
  readText: /* @__PURE__ */ __name(async (path) => {
9668
10012
  const known = files.get(path);
9669
10013
  if (known !== void 0) return known;
9670
- const text4 = await readFile3(path, "utf8");
9671
- files.set(path, text4);
9672
- return text4;
10014
+ const text5 = await readFile3(path, "utf8");
10015
+ files.set(path, text5);
10016
+ return text5;
9673
10017
  }, "readText")
9674
10018
  });
9675
10019
  return buildContextReport({
@@ -9736,7 +10080,16 @@ function acpKernelFacts(desktop) {
9736
10080
  };
9737
10081
  }
9738
10082
  __name(acpKernelFacts, "acpKernelFacts");
9739
- function desktopServerExtensions(runtime, cwd, server, palInboxStart, terminals, limits, extensions) {
10083
+ var NO_BROWSER_PANE_EXTENSIONS = Object.fromEntries(
10084
+ BROWSER_PANE_SERVED_METHODS.map((name) => [name, () => null])
10085
+ );
10086
+ function handoffWindow(browser) {
10087
+ if (browser.where === "pane") return "pane";
10088
+ if (browser.prefersPane === true && browser.where !== "own") return void 0;
10089
+ return browser.headless ? "none" : "visible";
10090
+ }
10091
+ __name(handoffWindow, "handoffWindow");
10092
+ function desktopServerExtensions(runtime, cwd, server, palInboxStart, terminals, limits, extensions, browserPane) {
9740
10093
  return {
9741
10094
  ...createDesktopHostExtensions(
9742
10095
  runtime,
@@ -9749,6 +10102,9 @@ function desktopServerExtensions(runtime, cwd, server, palInboxStart, terminals,
9749
10102
  limits
9750
10103
  ),
9751
10104
  ...terminals?.extensions,
10105
+ // What the app says about the agent's tab in its Browser pane. Always listed, so the app
10106
+ // can tell this engine takes them; nothing is sent unless the app offered the pane.
10107
+ ...browserPane?.extensions ?? NO_BROWSER_PANE_EXTENSIONS,
9752
10108
  ...extensions ?? createExtensionsRpc(() => sharedExtensionHost("desktop"))
9753
10109
  };
9754
10110
  }
@@ -9774,9 +10130,14 @@ async function runAcpCommand(ctx, desktop = false) {
9774
10130
  notify: announce,
9775
10131
  now: /* @__PURE__ */ __name(() => Date.now(), "now")
9776
10132
  }) : void 0;
10133
+ const paneLink = desktop ? createAcpPaneLink({
10134
+ offers: /* @__PURE__ */ __name((capability) => server.clientOffers(capability), "offers"),
10135
+ ask: /* @__PURE__ */ __name((method, params) => server.askClient(method, params), "ask")
10136
+ }) : void 0;
9777
10137
  const runtime = withCliHarnesses(
9778
10138
  createCliAcpRuntime(ctx, DEFAULT_RUNTIME_DEPS, {
9779
10139
  computerUse: desktop,
10140
+ ...paneLink ? { browserPane: paneLink } : {},
9780
10141
  ...desktop ? {
9781
10142
  observeComputer: /* @__PURE__ */ __name((id2, seen) => announce(COMPUTER_FRAME_NOTIFICATION, { sessionId: id2, ...seen }), "observeComputer")
9782
10143
  } : {},
@@ -9823,7 +10184,11 @@ async function runAcpCommand(ctx, desktop = false) {
9823
10184
  supportsTaskNotifications: desktop,
9824
10185
  transport,
9825
10186
  gateway: runtime.gateway,
9826
- commands: new HostCommandRegistry(),
10187
+ commands: (() => {
10188
+ const commands = new HostCommandRegistry();
10189
+ if (desktop) commands.register(SKILLS_HOST_COMMAND);
10190
+ return commands;
10191
+ })(),
9827
10192
  presenter: runtime.presenter,
9828
10193
  agentInfo: { name: "namzu", version: readPackageVersion() },
9829
10194
  // The two facts this application adds to what the engine says about itself.
@@ -9838,7 +10203,9 @@ async function runAcpCommand(ctx, desktop = false) {
9838
10203
  },
9839
10204
  palInboxStart,
9840
10205
  terminals,
9841
- limitsFeed
10206
+ limitsFeed,
10207
+ void 0,
10208
+ paneLink
9842
10209
  )
9843
10210
  } : {}
9844
10211
  });
@@ -9863,6 +10230,7 @@ async function runAcpCommand(ctx, desktop = false) {
9863
10230
  } finally {
9864
10231
  announcing = false;
9865
10232
  announcingUsage = false;
10233
+ paneLink?.close("The app closed its connection to this engine.");
9866
10234
  usageFeed?.close();
9867
10235
  try {
9868
10236
  if (desktop) await stopDesktopExtensions();
@@ -9900,8 +10268,9 @@ export {
9900
10268
  closeAcpResources,
9901
10269
  createCliAcpRuntime,
9902
10270
  desktopServerExtensions,
10271
+ handoffWindow,
9903
10272
  parseAcpArgs,
9904
10273
  resolveAcpSession,
9905
10274
  runAcpCommand
9906
10275
  };
9907
- //# sourceMappingURL=acp-DEH76VXL.js.map
10276
+ //# sourceMappingURL=acp-AQUZCZSO.js.map