@namzu/cli 65.0.1 → 65.1.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 (571) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/browser/control.d.ts.map +1 -1
  4. package/dist/checkpoints/manifest.d.ts +3 -1
  5. package/dist/checkpoints/manifest.d.ts.map +1 -1
  6. package/dist/checkpoints/store.d.ts +12 -7
  7. package/dist/checkpoints/store.d.ts.map +1 -1
  8. package/dist/checkpoints/workspace.d.ts +20 -0
  9. package/dist/checkpoints/workspace.d.ts.map +1 -0
  10. package/dist/checkpoints/wrap.d.ts +3 -3
  11. package/dist/checkpoints/wrap.d.ts.map +1 -1
  12. package/dist/chunks/{acp-MURBIENR.js → acp-5DUA4NPH.js} +700 -156
  13. package/dist/chunks/acp-5DUA4NPH.js.map +6 -0
  14. package/dist/chunks/{activity-command-QY4TBDBA.js → activity-command-2JTOLORP.js} +18 -18
  15. package/dist/chunks/{add-T4I7FT6U.js → add-W7I5FNJ6.js} +40 -40
  16. package/dist/chunks/{agent-KG5ZDN4V.js → agent-UFIGF7GW.js} +66 -66
  17. package/dist/chunks/agent-session-TVB22M7F.js +108 -0
  18. package/dist/chunks/{apply-at-exit-RTLPTWIX.js → apply-at-exit-CC3LEQEF.js} +8 -8
  19. package/dist/chunks/{archive-OE4IOYPG.js → archive-XFGZO54E.js} +16 -16
  20. package/dist/chunks/{auth-6KKZWY43.js → auth-BD7S36PR.js} +16 -16
  21. package/dist/chunks/{bin-main-ELFORXQH.js → bin-main-FR3GTCLV.js} +14 -14
  22. package/dist/chunks/{binding-UJQOQNOP.js → binding-DWEVXXCK.js} +3 -3
  23. package/dist/chunks/{browser-IXKMPHWF.js → browser-JLD5SLCD.js} +8 -7
  24. package/dist/chunks/browser-JLD5SLCD.js.map +6 -0
  25. package/dist/chunks/{chat-SXGUU2HT.js → chat-CONC7RFQ.js} +18 -18
  26. package/dist/chunks/{chunk-33E2IBBS.js → chunk-2LUHXKVZ.js} +2 -2
  27. package/dist/chunks/{chunk-HKBCNF4M.js → chunk-32AQ2IYQ.js} +2 -2
  28. package/dist/chunks/{chunk-YV3RDTHR.js → chunk-3D3CBJHR.js} +11 -11
  29. package/dist/chunks/{chunk-BCTGRGWF.js → chunk-3DSSBV3F.js} +3 -3
  30. package/dist/chunks/{chunk-XFF7HELD.js → chunk-3FGY7ALU.js} +3 -3
  31. package/dist/chunks/{chunk-UN6SRJB4.js → chunk-3HXC7CQX.js} +2 -2
  32. package/dist/chunks/{chunk-CJCCFNFG.js → chunk-3NB4FCAS.js} +4 -4
  33. package/dist/chunks/{chunk-WSOU4AJL.js → chunk-3WWI2FUN.js} +13 -13
  34. package/dist/chunks/{chunk-C72PY7UT.js → chunk-43RBKC4W.js} +57 -59
  35. package/dist/chunks/chunk-43RBKC4W.js.map +6 -0
  36. package/dist/chunks/{chunk-DFPOJWTB.js → chunk-4EHA3DZC.js} +2 -2
  37. package/dist/chunks/{chunk-GE2IDPI5.js → chunk-4SMX6CTE.js} +2 -2
  38. package/dist/chunks/{chunk-64PKDN3H.js → chunk-4W5G7N2I.js} +32 -4
  39. package/dist/chunks/chunk-4W5G7N2I.js.map +6 -0
  40. package/dist/chunks/{chunk-R4KHEHKV.js → chunk-4XIOI4OS.js} +2 -2
  41. package/dist/chunks/{chunk-GAISG43Y.js → chunk-4ZZLP5Q6.js} +2 -2
  42. package/dist/chunks/{chunk-4TIP4QHX.js → chunk-57LEFF5B.js} +2 -2
  43. package/dist/chunks/{chunk-4P4TFLO5.js → chunk-5CBMOTZH.js} +4 -4
  44. package/dist/chunks/{chunk-CR4PW7TP.js → chunk-5EBL6PQM.js} +2 -2
  45. package/dist/chunks/{chunk-SNRGQZ26.js → chunk-5HJ3M5WO.js} +2 -2
  46. package/dist/chunks/{chunk-JGSBW4CL.js → chunk-5KL7XHNF.js} +6 -6
  47. package/dist/chunks/{chunk-YCWIZHXB.js → chunk-5VGIJDT3.js} +2 -2
  48. package/dist/chunks/{chunk-26N4XIBC.js → chunk-65AIUD2J.js} +3 -3
  49. package/dist/chunks/{chunk-K7EUZJOM.js → chunk-6DXRQHM3.js} +9 -9
  50. package/dist/chunks/{chunk-CJSHYGFG.js → chunk-6JDLXECN.js} +4 -4
  51. package/dist/chunks/{chunk-LXBLH2JF.js → chunk-6LEVJR3K.js} +868 -498
  52. package/dist/chunks/chunk-6LEVJR3K.js.map +6 -0
  53. package/dist/chunks/{chunk-CJXPOZFX.js → chunk-6QOUG7I5.js} +11 -11
  54. package/dist/chunks/{chunk-DCHEOKYX.js → chunk-6XAQENXK.js} +6 -6
  55. package/dist/chunks/{chunk-UNMUVJD5.js → chunk-6Y35BEVH.js} +81 -22
  56. package/dist/chunks/chunk-6Y35BEVH.js.map +6 -0
  57. package/dist/chunks/{chunk-WKEGRNT3.js → chunk-76N2YA4H.js} +3 -3
  58. package/dist/chunks/{chunk-SEWZ6FRP.js → chunk-7NA6Z4LT.js} +2 -2
  59. package/dist/chunks/{chunk-YXFRVCYY.js → chunk-7UW747VE.js} +11 -11
  60. package/dist/chunks/{chunk-RBCRWJLE.js → chunk-7VCBWBDK.js} +97 -94
  61. package/dist/chunks/{chunk-RBCRWJLE.js.map → chunk-7VCBWBDK.js.map} +1 -1
  62. package/dist/chunks/{chunk-3JG5IVDB.js → chunk-7XWHSNQV.js} +5 -5
  63. package/dist/chunks/{chunk-PCLD62Y4.js → chunk-7XWT35S7.js} +9 -9
  64. package/dist/chunks/{chunk-J2MKN2IJ.js → chunk-7YUDFOS2.js} +16 -8
  65. package/dist/chunks/chunk-7YUDFOS2.js.map +6 -0
  66. package/dist/chunks/{chunk-TX5R7FPO.js → chunk-AOYZYPQU.js} +4 -4
  67. package/dist/chunks/{chunk-64PSV24V.js → chunk-B5QT43AR.js} +2 -2
  68. package/dist/chunks/{chunk-MPJVOY6U.js → chunk-BGSLBZJI.js} +26 -14
  69. package/dist/chunks/chunk-BGSLBZJI.js.map +6 -0
  70. package/dist/chunks/{chunk-OM6I2S7W.js → chunk-BQRYROMU.js} +4 -4
  71. package/dist/chunks/{chunk-YVIKHGQ4.js → chunk-BTE5NNGC.js} +4 -4
  72. package/dist/chunks/{chunk-JGVDN4QF.js → chunk-BU34QVPU.js} +2 -2
  73. package/dist/chunks/{chunk-AWFXPA2P.js → chunk-CSQBHH2P.js} +11 -11
  74. package/dist/chunks/{chunk-CJG6BQXC.js → chunk-CU2NHWJZ.js} +5 -5
  75. package/dist/chunks/{chunk-CY5TXLBM.js → chunk-CXDIBVU4.js} +2 -2
  76. package/dist/chunks/{chunk-5UIY4X2H.js → chunk-DOLQSKHY.js} +3 -3
  77. package/dist/chunks/{chunk-TEZRVNF6.js → chunk-DS7IXKY3.js} +4 -4
  78. package/dist/chunks/{chunk-CGO3NJXK.js → chunk-DSPRBHXG.js} +10 -10
  79. package/dist/chunks/{chunk-ER6NZEPG.js → chunk-DWIN3BQK.js} +3 -3
  80. package/dist/chunks/{chunk-ASM5LAX6.js → chunk-E3IKNG7N.js} +7 -7
  81. package/dist/chunks/{chunk-WJLVORL5.js → chunk-E5RSO4L4.js} +6 -6
  82. package/dist/chunks/{chunk-Y34RDPE2.js → chunk-ECJSMWWH.js} +4 -4
  83. package/dist/chunks/{chunk-UIPZCJEG.js → chunk-EOEV6W4N.js} +2 -2
  84. package/dist/chunks/{chunk-DSRV6XYE.js → chunk-EROQ2L5G.js} +2 -2
  85. package/dist/chunks/{chunk-GOBE3M23.js → chunk-ET5JCPHK.js} +6 -6
  86. package/dist/chunks/{chunk-HAAS62EL.js → chunk-EUD7DFGD.js} +4 -4
  87. package/dist/chunks/{chunk-YGCJJJ5U.js → chunk-EYLW2CSN.js} +5 -5
  88. package/dist/chunks/{chunk-QI5DLJKB.js → chunk-FQ4TVLU4.js} +2 -2
  89. package/dist/chunks/{chunk-C4HMW3HM.js → chunk-FQB5TULO.js} +7 -7
  90. package/dist/chunks/{chunk-AQSOO7T5.js → chunk-FRVEG45C.js} +5 -5
  91. package/dist/chunks/{chunk-AVZHTMRP.js → chunk-FZ45U2TD.js} +2 -2
  92. package/dist/chunks/{chunk-KMP7GNMD.js → chunk-GPFJOS37.js} +6 -6
  93. package/dist/chunks/{chunk-IG3OL4PI.js → chunk-GPMR64SH.js} +28 -13
  94. package/dist/chunks/chunk-GPMR64SH.js.map +6 -0
  95. package/dist/chunks/{chunk-VINVUMPS.js → chunk-GVE34Z4N.js} +2 -2
  96. package/dist/chunks/{chunk-GTHARNMF.js → chunk-HBJKBRNS.js} +3 -3
  97. package/dist/chunks/{chunk-DUXBWYNI.js → chunk-HCYOQ6YQ.js} +5 -5
  98. package/dist/chunks/{chunk-5PDBQ34I.js → chunk-HLNHYAFB.js} +2 -2
  99. package/dist/chunks/{chunk-VLEJZWSI.js → chunk-I3BL2S64.js} +3 -3
  100. package/dist/chunks/{chunk-RBW5FFRZ.js → chunk-IGA4KH5Y.js} +4 -4
  101. package/dist/chunks/{chunk-IVVCW5NQ.js → chunk-IRPH5CDS.js} +2 -2
  102. package/dist/chunks/{chunk-U65C3WSK.js → chunk-JIVLBRRN.js} +2 -2
  103. package/dist/chunks/{chunk-O633GQ46.js → chunk-JMPKX37I.js} +4 -4
  104. package/dist/chunks/{chunk-2GPXHLZ7.js → chunk-JQ3Y5NX7.js} +10 -10
  105. package/dist/chunks/{chunk-EUPMFT4C.js → chunk-KGIGFJXC.js} +2 -2
  106. package/dist/chunks/{chunk-PYLCAPRX.js → chunk-KH3DWISF.js} +6 -6
  107. package/dist/chunks/{chunk-JEPSIERS.js → chunk-KHWLA26J.js} +742 -371
  108. package/dist/chunks/chunk-KHWLA26J.js.map +6 -0
  109. package/dist/chunks/{chunk-UW7DQJSG.js → chunk-KVTWBRQI.js} +8 -8
  110. package/dist/chunks/{chunk-NC46EWVK.js → chunk-L6ZLSPCD.js} +25 -7
  111. package/dist/chunks/{chunk-NC46EWVK.js.map → chunk-L6ZLSPCD.js.map} +1 -1
  112. package/dist/chunks/{chunk-FCB7J2JY.js → chunk-LQM4DE5B.js} +3 -3
  113. package/dist/chunks/{chunk-LSA4WCAA.js → chunk-LVBUF475.js} +3 -3
  114. package/dist/chunks/{chunk-OFDZF2HC.js → chunk-M4GHZ6CV.js} +4 -4
  115. package/dist/chunks/{chunk-TSC5I62M.js → chunk-MBR655LE.js} +4 -4
  116. package/dist/chunks/{chunk-BT4Z22CR.js → chunk-MHJESYWP.js} +3 -3
  117. package/dist/chunks/{chunk-QUVP32VA.js → chunk-MKBXBLDR.js} +2 -2
  118. package/dist/chunks/{chunk-FFFNQRQU.js → chunk-MKBXTSKY.js} +2 -2
  119. package/dist/chunks/{chunk-M4FJ432T.js → chunk-MQJX2ZHQ.js} +5 -5
  120. package/dist/chunks/{chunk-TLDRR7NF.js → chunk-MS2YYSVC.js} +3 -3
  121. package/dist/chunks/{chunk-JYEVX4XO.js → chunk-MU7HMNAT.js} +6 -6
  122. package/dist/chunks/{chunk-HUDWOVPR.js → chunk-MWSJYZ2R.js} +5 -5
  123. package/dist/chunks/{chunk-6EAH4JT6.js → chunk-N27MGDJW.js} +4 -4
  124. package/dist/chunks/{chunk-ATBKAYPX.js → chunk-N7T6YPKT.js} +3 -3
  125. package/dist/chunks/{chunk-EHNUMZLI.js → chunk-NGONNBXL.js} +2 -2
  126. package/dist/chunks/{chunk-OZHN6UZ2.js → chunk-NHTBK2XM.js} +2 -2
  127. package/dist/chunks/{chunk-U5UV2YRE.js → chunk-NKPMNGMK.js} +23 -13
  128. package/dist/chunks/{chunk-U5UV2YRE.js.map → chunk-NKPMNGMK.js.map} +2 -2
  129. package/dist/chunks/{chunk-VZMBA7BY.js → chunk-OAZQ26D7.js} +28 -28
  130. package/dist/chunks/{chunk-B5M637GC.js → chunk-OI6J7RPI.js} +2 -2
  131. package/dist/chunks/{chunk-XZRXGJRW.js → chunk-ORPLF5MZ.js} +10 -10
  132. package/dist/chunks/{chunk-5FYABBNQ.js → chunk-P6S4D3RS.js} +3 -3
  133. package/dist/chunks/{chunk-3ZAZUT7F.js → chunk-PH7QOU2A.js} +2 -2
  134. package/dist/chunks/{chunk-VBNWYBV7.js → chunk-PY25GCBZ.js} +4 -4
  135. package/dist/chunks/{chunk-QYTOM3WZ.js → chunk-Q2L4OX37.js} +5 -5
  136. package/dist/chunks/{chunk-4T4STLUZ.js → chunk-Q33CQYAC.js} +15 -15
  137. package/dist/chunks/{chunk-4F6OOHP2.js → chunk-Q64YZVHO.js} +4 -4
  138. package/dist/chunks/{chunk-VJQLHEUD.js → chunk-Q73AM2KK.js} +4 -4
  139. package/dist/chunks/{chunk-EWRZDQQD.js → chunk-Q744Z56H.js} +3 -3
  140. package/dist/chunks/{chunk-LBBJQX73.js → chunk-QK2ES6TB.js} +5 -5
  141. package/dist/chunks/{chunk-UWE7HTRB.js → chunk-QKLHNZLP.js} +3 -3
  142. package/dist/chunks/{chunk-3BSJTK67.js → chunk-QMTLLPEB.js} +2 -2
  143. package/dist/chunks/{chunk-JGWBBAQX.js → chunk-QO6NWZEY.js} +9 -9
  144. package/dist/chunks/{chunk-EFWNOGGF.js → chunk-QOYOMOYD.js} +10 -4
  145. package/dist/chunks/chunk-QOYOMOYD.js.map +6 -0
  146. package/dist/chunks/{chunk-I4GTRFPK.js → chunk-QPTNH7SR.js} +2 -2
  147. package/dist/chunks/{chunk-MT6BBN3N.js → chunk-QSL4C3HW.js} +6 -6
  148. package/dist/chunks/{chunk-2RD5B76Z.js → chunk-QSW6RQEA.js} +21 -21
  149. package/dist/chunks/{chunk-MFMWMVI2.js → chunk-RC5CPNQL.js} +2 -2
  150. package/dist/chunks/{chunk-C5KBEU26.js → chunk-RCWRXPNU.js} +9 -9
  151. package/dist/chunks/{chunk-B3MQ5GKC.js → chunk-RGHE4YT2.js} +2 -2
  152. package/dist/chunks/{chunk-X6P6PKNN.js → chunk-RMGBPCWJ.js} +4 -4
  153. package/dist/chunks/{chunk-7TH57XCX.js → chunk-RRAME7MZ.js} +7 -7
  154. package/dist/chunks/{chunk-CUSFXQX6.js → chunk-RUXMJHR4.js} +4 -4
  155. package/dist/chunks/{chunk-672GYAHP.js → chunk-S72CBLRQ.js} +9 -9
  156. package/dist/chunks/{chunk-J6DWOQI6.js → chunk-S7MZJAJZ.js} +3 -3
  157. package/dist/chunks/{chunk-ZI2Z3N62.js → chunk-SEP5HAWL.js} +4 -4
  158. package/dist/chunks/{chunk-2IXKDMQV.js → chunk-SFRPKNVL.js} +3 -3
  159. package/dist/chunks/{chunk-SISDBCRO.js → chunk-SHJZWKEO.js} +7 -7
  160. package/dist/chunks/{chunk-4MY32RSJ.js → chunk-SQ746U6G.js} +3 -3
  161. package/dist/chunks/{chunk-JVHCTRTL.js → chunk-T36RR4QY.js} +4 -4
  162. package/dist/chunks/{chunk-QSTY4NGH.js → chunk-TINYCSAP.js} +4 -3
  163. package/dist/chunks/{chunk-QSTY4NGH.js.map → chunk-TINYCSAP.js.map} +1 -1
  164. package/dist/chunks/{chunk-H3SBLH74.js → chunk-TMXAC55Y.js} +6 -6
  165. package/dist/chunks/{chunk-BUFV5IZ2.js → chunk-TYZ2EXCN.js} +4 -4
  166. package/dist/chunks/{chunk-3XWSIVZO.js → chunk-U7Y5U5WN.js} +3 -3
  167. package/dist/chunks/{chunk-FTHG7MEP.js → chunk-UANOC6XV.js} +3 -3
  168. package/dist/chunks/{chunk-NXCEN75Q.js → chunk-UBYLIP6R.js} +6 -6
  169. package/dist/chunks/{chunk-AJNOSQRS.js → chunk-UIMQEGZQ.js} +4 -4
  170. package/dist/chunks/{chunk-3QU5FWU5.js → chunk-VLEQMW7N.js} +8 -8
  171. package/dist/chunks/{chunk-HMVMA52K.js → chunk-VOFIRTNT.js} +4 -4
  172. package/dist/chunks/{chunk-5UARTCJW.js → chunk-VPLOFGJQ.js} +2 -2
  173. package/dist/chunks/{chunk-4Q32NJ5O.js → chunk-W6XWXSAO.js} +4 -4
  174. package/dist/chunks/{chunk-HKYQA52K.js → chunk-WBGA2CWS.js} +2 -2
  175. package/dist/chunks/{chunk-BB7AEKOT.js → chunk-WISXBQR3.js} +3 -3
  176. package/dist/chunks/{chunk-2CGTS4UL.js → chunk-X2KQ6U3E.js} +2 -2
  177. package/dist/chunks/{chunk-C3EERM2C.js → chunk-X5A2KGLT.js} +3 -3
  178. package/dist/chunks/{chunk-F3ILOM3S.js → chunk-XH2KBQQI.js} +2 -2
  179. package/dist/chunks/{chunk-4WY2DYXA.js → chunk-XXEN5437.js} +3 -3
  180. package/dist/chunks/{chunk-DUNNWEDQ.js → chunk-YDC3GF4A.js} +9 -9
  181. package/dist/chunks/{chunk-FNASZG3G.js → chunk-YXOF3CCZ.js} +3 -3
  182. package/dist/chunks/{chunk-REKFHGJD.js → chunk-Z5SFNSKM.js} +3 -3
  183. package/dist/chunks/{chunk-5IN3J4NM.js → chunk-ZKN6TZRY.js} +9 -9
  184. package/dist/chunks/{chunk-5IN3J4NM.js.map → chunk-ZKN6TZRY.js.map} +1 -1
  185. package/dist/chunks/{chunk-YWJJ24PF.js → chunk-ZLGSWSWQ.js} +2 -2
  186. package/dist/chunks/{chunk-TMWPRJYQ.js → chunk-ZRRV4VBV.js} +12 -3
  187. package/dist/chunks/chunk-ZRRV4VBV.js.map +6 -0
  188. package/dist/chunks/{chunk-EPSG3Z3J.js → chunk-ZWYQ7YVY.js} +3 -3
  189. package/dist/chunks/{chunk-BU3XHNAZ.js → chunk-ZYH2AWZF.js} +5 -5
  190. package/dist/chunks/{cli-runtime-64AJ66MR.js → cli-runtime-QJEWJ7MO.js} +31 -31
  191. package/dist/chunks/{commands-MKPLY2XV.js → commands-4GSE33KT.js} +7 -6
  192. package/dist/chunks/{config-D5IT6LRW.js → config-SP4ELZ65.js} +21 -21
  193. package/dist/chunks/{conversation-id-S2QUZBIO.js → conversation-id-5WEVHPU2.js} +3 -3
  194. package/dist/chunks/{cost-TXP2DORO.js → cost-NDGWWG75.js} +9 -9
  195. package/dist/chunks/{crash-report-BQ7XI4TF.js → crash-report-7AHQSBVG.js} +9 -9
  196. package/dist/chunks/{debug-BLDVME6D.js → debug-UYHOAU7G.js} +4 -4
  197. package/dist/chunks/{desktop-host-schedule-tool-PWWNV4SP.js → desktop-host-schedule-tool-JW7DAM3K.js} +38 -38
  198. package/dist/chunks/{dist-WDYWTQ6K.js → dist-AHUHULQ2.js} +72 -14
  199. package/dist/chunks/dist-AHUHULQ2.js.map +6 -0
  200. package/dist/chunks/{dist-QLCUYOL2.js → dist-CK5ENBDZ.js} +71 -13
  201. package/dist/chunks/dist-CK5ENBDZ.js.map +6 -0
  202. package/dist/chunks/{dist-7N57TZWU.js → dist-GUJXGOJD.js} +2 -2
  203. package/dist/chunks/{dist-SX3G4Q4Y.js → dist-ILZMWUZG.js} +2 -2
  204. package/dist/chunks/{dist-UJ7MT7ET.js → dist-KDL67SQX.js} +2 -2
  205. package/dist/chunks/{dist-QMEJLMXF.js → dist-N4VH46ZC.js} +3 -3
  206. package/dist/chunks/{dist-PAKA3O7T.js → dist-NP6J6C6B.js} +4 -2
  207. package/dist/chunks/{dist-ZUFH5HBL.js → dist-YZXYNBC4.js} +80 -13
  208. package/dist/chunks/dist-YZXYNBC4.js.map +6 -0
  209. package/dist/chunks/doctor-BSSIBYW4.js +108 -0
  210. package/dist/chunks/{drain-AFIQLQMV.js → drain-CBJYB4YV.js} +28 -28
  211. package/dist/chunks/{entry-MIRNOCLR.js → entry-5UYOACFL.js} +6 -6
  212. package/dist/chunks/{eval-DQRIT7F7.js → eval-MEXBCRZE.js} +16 -16
  213. package/dist/chunks/{exec-GXGPXJPV.js → exec-GGBBWTRE.js} +69 -69
  214. package/dist/chunks/{exec-flags-I7PHHGJU.js → exec-flags-7O3R6VNK.js} +21 -21
  215. package/dist/chunks/{extension-BPPZMACB.js → extension-NJ65NRSI.js} +7 -7
  216. package/dist/chunks/{feed-7BLRIUMR.js → feed-WJGWKH3Q.js} +4 -4
  217. package/dist/chunks/{github-S7M5YPBU.js → github-MNTV6WZD.js} +4 -4
  218. package/dist/chunks/{home-KPXNNVQ3.js → home-WPNFAHFV.js} +3 -3
  219. package/dist/chunks/{homes-XZNE3AR2.js → homes-QKJFPN4J.js} +6 -6
  220. package/dist/chunks/{hooks-EJFGPRAU.js → hooks-K2TIZIPW.js} +30 -30
  221. package/dist/chunks/hooks-report-BTODJHGA.js +51 -0
  222. package/dist/chunks/{host-3RGIVVV6.js → host-KLNZDS7I.js} +13 -13
  223. package/dist/chunks/{host-queries-RZF7G7VH.js → host-queries-MWWBWBH3.js} +28 -28
  224. package/dist/chunks/{index-project-3PXRTFXD.js → index-project-JNGBTULM.js} +25 -25
  225. package/dist/chunks/{installed-list-R4CXRNQH.js → installed-list-K2ZSS57L.js} +4 -4
  226. package/dist/chunks/{launch-QL2DRXD5.js → launch-L6APQRWZ.js} +33 -33
  227. package/dist/chunks/{learn-S45K2BSD.js → learn-KMBS6DYD.js} +28 -28
  228. package/dist/chunks/{learn-builtin-I6X74JIZ.js → learn-builtin-YHQBA3TI.js} +30 -30
  229. package/dist/chunks/{lifecycle-SFUALNUU.js → lifecycle-3HE5WUH3.js} +49 -49
  230. package/dist/chunks/{list-EYM5G5I2.js → list-UGHPDN4J.js} +30 -30
  231. package/dist/chunks/live-65NDROVC.js +104 -0
  232. package/dist/chunks/{load-V66VC5MG.js → load-NZFGFJGA.js} +16 -16
  233. package/dist/chunks/{logs-MQBP6X7N.js → logs-P34HKEGO.js} +5 -5
  234. package/dist/chunks/{mcp-7D46D33X.js → mcp-6W4DA4D7.js} +37 -37
  235. package/dist/chunks/{mcp-serve-BQRYWCKK.js → mcp-serve-MIH3ONQF.js} +24 -24
  236. package/dist/chunks/{message-command-LDC26IA3.js → message-command-6F6EIC72.js} +73 -73
  237. package/dist/chunks/{notes-J26T5QMF.js → notes-GUY6ZA7S.js} +6 -6
  238. package/dist/chunks/{open-A27TZSLZ.js → open-FKTS5NJW.js} +8 -8
  239. package/dist/chunks/{operator-tools-M6XIADQO.js → operator-tools-JK7IG5RQ.js} +16 -16
  240. package/dist/chunks/{output-schema-HFVD3INV.js → output-schema-54MZRNAQ.js} +3 -3
  241. package/dist/chunks/{pal-ZRTQQQKY.js → pal-X6M7FIM6.js} +19 -19
  242. package/dist/chunks/{peers-5RFEQRIE.js → peers-ER43IAS2.js} +27 -27
  243. package/dist/chunks/{peers-EKAIDFC7.js → peers-VOHU6QT4.js} +9 -9
  244. package/dist/chunks/{pending-F6US7F4D.js → pending-DF6AKENO.js} +7 -7
  245. package/dist/chunks/{plugin-XWBK2AES.js → plugin-EZSPGVE3.js} +34 -34
  246. package/dist/chunks/{proposals-PUFNS7B2.js → proposals-XNXI26KX.js} +41 -41
  247. package/dist/chunks/{providers-DWDFQSH5.js → providers-WK7O36I4.js} +28 -28
  248. package/dist/chunks/{providers-MYEITJ7U.js → providers-YWGCVSMT.js} +11 -11
  249. package/dist/chunks/{pty-437MD4WO.js → pty-GBLWUDWS.js} +3 -3
  250. package/dist/chunks/{render-TGQXAOLC.js → render-L65JY7UZ.js} +5 -5
  251. package/dist/chunks/resume-DNID4OWP.js +29 -0
  252. package/dist/chunks/{resume-command-SEH3VNBC.js → resume-command-AP35JCD6.js} +7 -7
  253. package/dist/chunks/{running-J66IL6JP.js → running-X6PVK4P4.js} +4 -4
  254. package/dist/chunks/{say-FZLSUCYZ.js → say-QEH7QD7C.js} +23 -23
  255. package/dist/chunks/{schedule-NHDNUIMR.js → schedule-2YYLITCO.js} +18 -18
  256. package/dist/chunks/send-GYDAGL2K.js +49 -0
  257. package/dist/chunks/send-person-ORD5KSZJ.js +39 -0
  258. package/dist/chunks/{servers-UPVWNZLA.js → servers-QF2D2DHU.js} +10 -10
  259. package/dist/chunks/{service-JCUILBNP.js → service-GHPTQFYM.js} +49 -49
  260. package/dist/chunks/{session-options-JFXAHXSR.js → session-options-QU24ZTAR.js} +5 -5
  261. package/dist/chunks/{setting-cli-5YW4K6RY.js → setting-cli-RCWQ3PQ2.js} +20 -20
  262. package/dist/chunks/{skills-Q7TDOGZF.js → skills-Y2B2PVV4.js} +33 -33
  263. package/dist/chunks/{source-deliveries-47YDJTC5.js → source-deliveries-ETVRGF37.js} +22 -22
  264. package/dist/chunks/{start-check-RQHS2DSG.js → start-check-ND7JMIV2.js} +4 -4
  265. package/dist/chunks/{startup-failure-NSR6JI74.js → startup-failure-4D2RLMRR.js} +2 -2
  266. package/dist/chunks/{state-BBTR4O6O.js → state-KKPIEMAZ.js} +26 -26
  267. package/dist/chunks/{store-HVORHUT6.js → store-5EJQ23W4.js} +15 -13
  268. package/dist/chunks/{store-D2YQ3FUT.js → store-7H5DIKXP.js} +4 -4
  269. package/dist/chunks/{store-63GHT2AG.js → store-D3BDEFSQ.js} +3 -3
  270. package/dist/chunks/{store-NESNQHXT.js → store-V7T7LX7N.js} +9 -9
  271. package/dist/chunks/{tui-PIBFSFOX.js → tui-7CKF4FEB.js} +121 -121
  272. package/dist/chunks/{update-DF7EJDWE.js → update-JAW6P7U5.js} +9 -9
  273. package/dist/chunks/{watch-5MB6KSKQ.js → watch-N5Y4PSQC.js} +124 -124
  274. package/dist/chunks/{windows-home-P2CBM6ST.js → windows-home-K47ARHSQ.js} +5 -5
  275. package/dist/chunks/{workspaces-3LHLGMZB.js → workspaces-RPNRRWQH.js} +18 -18
  276. package/dist/chunks/{worktree-6WVBPPYG.js → worktree-REKIEK2Q.js} +34 -34
  277. package/dist/commands/acp-browser-pane.d.ts +4 -0
  278. package/dist/commands/acp-browser-pane.d.ts.map +1 -1
  279. package/dist/commands/acp-desktop-question.d.ts +8 -1
  280. package/dist/commands/acp-desktop-question.d.ts.map +1 -1
  281. package/dist/commands/acp-provider-retry.d.ts.map +1 -1
  282. package/dist/commands/acp.d.ts +12 -2
  283. package/dist/commands/acp.d.ts.map +1 -1
  284. package/dist/commands/desktop-computer-feed.d.ts +1 -0
  285. package/dist/commands/desktop-computer-feed.d.ts.map +1 -1
  286. package/dist/commands/desktop-host-signin.d.ts +22 -0
  287. package/dist/commands/desktop-host-signin.d.ts.map +1 -0
  288. package/dist/commands/desktop-host.d.ts +112 -20
  289. package/dist/commands/desktop-host.d.ts.map +1 -1
  290. package/dist/commands/doctor.d.ts +2 -0
  291. package/dist/commands/doctor.d.ts.map +1 -1
  292. package/dist/commands/login.d.ts +16 -1
  293. package/dist/commands/login.d.ts.map +1 -1
  294. package/dist/config/load.d.ts.map +1 -1
  295. package/dist/config/schema.d.ts +2 -0
  296. package/dist/config/schema.d.ts.map +1 -1
  297. package/dist/config/session-options.d.ts +3 -3
  298. package/dist/config/session-options.d.ts.map +1 -1
  299. package/dist/config/settings-descriptors.d.ts +2 -1
  300. package/dist/config/settings-descriptors.d.ts.map +1 -1
  301. package/dist/display-width.d.ts +16 -0
  302. package/dist/display-width.d.ts.map +1 -0
  303. package/dist/doctor/checks/computer-use.d.ts +4 -0
  304. package/dist/doctor/checks/computer-use.d.ts.map +1 -0
  305. package/dist/doctor/live.d.ts.map +1 -1
  306. package/dist/index.js +58 -58
  307. package/dist/integrations/sessions/archive-inactive.d.ts +1 -0
  308. package/dist/integrations/sessions/archive-inactive.d.ts.map +1 -1
  309. package/dist/integrations/sessions/store.d.ts +1 -0
  310. package/dist/integrations/sessions/store.d.ts.map +1 -1
  311. package/dist/integrations/subagents/runtime.d.ts.map +1 -1
  312. package/dist/integrations/subagents/saved-agents.d.ts +7 -2
  313. package/dist/integrations/subagents/saved-agents.d.ts.map +1 -1
  314. package/dist/permissions/browser-sites.d.ts.map +1 -1
  315. package/dist/plan/approval.d.ts +2 -0
  316. package/dist/plan/approval.d.ts.map +1 -1
  317. package/dist/sdk-peer.js +3 -1
  318. package/dist/tui/App.d.ts.map +1 -1
  319. package/dist/tui/agent.d.ts +8 -1
  320. package/dist/tui/agent.d.ts.map +1 -1
  321. package/dist/tui/rewind.d.ts +1 -1
  322. package/dist/tui/rewind.d.ts.map +1 -1
  323. package/dist/tui/terminal-choice-text.d.ts.map +1 -1
  324. package/package.json +8 -8
  325. package/dist/chunks/acp-MURBIENR.js.map +0 -6
  326. package/dist/chunks/agent-session-7CKC3FPL.js +0 -108
  327. package/dist/chunks/browser-IXKMPHWF.js.map +0 -6
  328. package/dist/chunks/chunk-64PKDN3H.js.map +0 -6
  329. package/dist/chunks/chunk-C72PY7UT.js.map +0 -6
  330. package/dist/chunks/chunk-EFWNOGGF.js.map +0 -6
  331. package/dist/chunks/chunk-IG3OL4PI.js.map +0 -6
  332. package/dist/chunks/chunk-J2MKN2IJ.js.map +0 -6
  333. package/dist/chunks/chunk-JEPSIERS.js.map +0 -6
  334. package/dist/chunks/chunk-LXBLH2JF.js.map +0 -6
  335. package/dist/chunks/chunk-MPJVOY6U.js.map +0 -6
  336. package/dist/chunks/chunk-TMWPRJYQ.js.map +0 -6
  337. package/dist/chunks/chunk-UNMUVJD5.js.map +0 -6
  338. package/dist/chunks/dist-QLCUYOL2.js.map +0 -6
  339. package/dist/chunks/dist-WDYWTQ6K.js.map +0 -6
  340. package/dist/chunks/dist-ZUFH5HBL.js.map +0 -6
  341. package/dist/chunks/doctor-YGQQRHQU.js +0 -106
  342. package/dist/chunks/hooks-report-IJHIRMU4.js +0 -51
  343. package/dist/chunks/live-QPPDD5ZP.js +0 -104
  344. package/dist/chunks/resume-LBF6SHWI.js +0 -29
  345. package/dist/chunks/send-WW3XRBNY.js +0 -49
  346. package/dist/chunks/send-person-VPPGPY7Z.js +0 -39
  347. /package/dist/chunks/{activity-command-QY4TBDBA.js.map → activity-command-2JTOLORP.js.map} +0 -0
  348. /package/dist/chunks/{add-T4I7FT6U.js.map → add-W7I5FNJ6.js.map} +0 -0
  349. /package/dist/chunks/{agent-KG5ZDN4V.js.map → agent-UFIGF7GW.js.map} +0 -0
  350. /package/dist/chunks/{agent-session-7CKC3FPL.js.map → agent-session-TVB22M7F.js.map} +0 -0
  351. /package/dist/chunks/{apply-at-exit-RTLPTWIX.js.map → apply-at-exit-CC3LEQEF.js.map} +0 -0
  352. /package/dist/chunks/{archive-OE4IOYPG.js.map → archive-XFGZO54E.js.map} +0 -0
  353. /package/dist/chunks/{auth-6KKZWY43.js.map → auth-BD7S36PR.js.map} +0 -0
  354. /package/dist/chunks/{bin-main-ELFORXQH.js.map → bin-main-FR3GTCLV.js.map} +0 -0
  355. /package/dist/chunks/{binding-UJQOQNOP.js.map → binding-DWEVXXCK.js.map} +0 -0
  356. /package/dist/chunks/{chat-SXGUU2HT.js.map → chat-CONC7RFQ.js.map} +0 -0
  357. /package/dist/chunks/{chunk-33E2IBBS.js.map → chunk-2LUHXKVZ.js.map} +0 -0
  358. /package/dist/chunks/{chunk-HKBCNF4M.js.map → chunk-32AQ2IYQ.js.map} +0 -0
  359. /package/dist/chunks/{chunk-YV3RDTHR.js.map → chunk-3D3CBJHR.js.map} +0 -0
  360. /package/dist/chunks/{chunk-BCTGRGWF.js.map → chunk-3DSSBV3F.js.map} +0 -0
  361. /package/dist/chunks/{chunk-XFF7HELD.js.map → chunk-3FGY7ALU.js.map} +0 -0
  362. /package/dist/chunks/{chunk-UN6SRJB4.js.map → chunk-3HXC7CQX.js.map} +0 -0
  363. /package/dist/chunks/{chunk-CJCCFNFG.js.map → chunk-3NB4FCAS.js.map} +0 -0
  364. /package/dist/chunks/{chunk-WSOU4AJL.js.map → chunk-3WWI2FUN.js.map} +0 -0
  365. /package/dist/chunks/{chunk-DFPOJWTB.js.map → chunk-4EHA3DZC.js.map} +0 -0
  366. /package/dist/chunks/{chunk-GE2IDPI5.js.map → chunk-4SMX6CTE.js.map} +0 -0
  367. /package/dist/chunks/{chunk-R4KHEHKV.js.map → chunk-4XIOI4OS.js.map} +0 -0
  368. /package/dist/chunks/{chunk-GAISG43Y.js.map → chunk-4ZZLP5Q6.js.map} +0 -0
  369. /package/dist/chunks/{chunk-4TIP4QHX.js.map → chunk-57LEFF5B.js.map} +0 -0
  370. /package/dist/chunks/{chunk-4P4TFLO5.js.map → chunk-5CBMOTZH.js.map} +0 -0
  371. /package/dist/chunks/{chunk-CR4PW7TP.js.map → chunk-5EBL6PQM.js.map} +0 -0
  372. /package/dist/chunks/{chunk-SNRGQZ26.js.map → chunk-5HJ3M5WO.js.map} +0 -0
  373. /package/dist/chunks/{chunk-JGSBW4CL.js.map → chunk-5KL7XHNF.js.map} +0 -0
  374. /package/dist/chunks/{chunk-YCWIZHXB.js.map → chunk-5VGIJDT3.js.map} +0 -0
  375. /package/dist/chunks/{chunk-26N4XIBC.js.map → chunk-65AIUD2J.js.map} +0 -0
  376. /package/dist/chunks/{chunk-K7EUZJOM.js.map → chunk-6DXRQHM3.js.map} +0 -0
  377. /package/dist/chunks/{chunk-CJSHYGFG.js.map → chunk-6JDLXECN.js.map} +0 -0
  378. /package/dist/chunks/{chunk-CJXPOZFX.js.map → chunk-6QOUG7I5.js.map} +0 -0
  379. /package/dist/chunks/{chunk-DCHEOKYX.js.map → chunk-6XAQENXK.js.map} +0 -0
  380. /package/dist/chunks/{chunk-WKEGRNT3.js.map → chunk-76N2YA4H.js.map} +0 -0
  381. /package/dist/chunks/{chunk-SEWZ6FRP.js.map → chunk-7NA6Z4LT.js.map} +0 -0
  382. /package/dist/chunks/{chunk-YXFRVCYY.js.map → chunk-7UW747VE.js.map} +0 -0
  383. /package/dist/chunks/{chunk-3JG5IVDB.js.map → chunk-7XWHSNQV.js.map} +0 -0
  384. /package/dist/chunks/{chunk-PCLD62Y4.js.map → chunk-7XWT35S7.js.map} +0 -0
  385. /package/dist/chunks/{chunk-TX5R7FPO.js.map → chunk-AOYZYPQU.js.map} +0 -0
  386. /package/dist/chunks/{chunk-64PSV24V.js.map → chunk-B5QT43AR.js.map} +0 -0
  387. /package/dist/chunks/{chunk-OM6I2S7W.js.map → chunk-BQRYROMU.js.map} +0 -0
  388. /package/dist/chunks/{chunk-YVIKHGQ4.js.map → chunk-BTE5NNGC.js.map} +0 -0
  389. /package/dist/chunks/{chunk-JGVDN4QF.js.map → chunk-BU34QVPU.js.map} +0 -0
  390. /package/dist/chunks/{chunk-AWFXPA2P.js.map → chunk-CSQBHH2P.js.map} +0 -0
  391. /package/dist/chunks/{chunk-CJG6BQXC.js.map → chunk-CU2NHWJZ.js.map} +0 -0
  392. /package/dist/chunks/{chunk-CY5TXLBM.js.map → chunk-CXDIBVU4.js.map} +0 -0
  393. /package/dist/chunks/{chunk-5UIY4X2H.js.map → chunk-DOLQSKHY.js.map} +0 -0
  394. /package/dist/chunks/{chunk-TEZRVNF6.js.map → chunk-DS7IXKY3.js.map} +0 -0
  395. /package/dist/chunks/{chunk-CGO3NJXK.js.map → chunk-DSPRBHXG.js.map} +0 -0
  396. /package/dist/chunks/{chunk-ER6NZEPG.js.map → chunk-DWIN3BQK.js.map} +0 -0
  397. /package/dist/chunks/{chunk-ASM5LAX6.js.map → chunk-E3IKNG7N.js.map} +0 -0
  398. /package/dist/chunks/{chunk-WJLVORL5.js.map → chunk-E5RSO4L4.js.map} +0 -0
  399. /package/dist/chunks/{chunk-Y34RDPE2.js.map → chunk-ECJSMWWH.js.map} +0 -0
  400. /package/dist/chunks/{chunk-UIPZCJEG.js.map → chunk-EOEV6W4N.js.map} +0 -0
  401. /package/dist/chunks/{chunk-DSRV6XYE.js.map → chunk-EROQ2L5G.js.map} +0 -0
  402. /package/dist/chunks/{chunk-GOBE3M23.js.map → chunk-ET5JCPHK.js.map} +0 -0
  403. /package/dist/chunks/{chunk-HAAS62EL.js.map → chunk-EUD7DFGD.js.map} +0 -0
  404. /package/dist/chunks/{chunk-YGCJJJ5U.js.map → chunk-EYLW2CSN.js.map} +0 -0
  405. /package/dist/chunks/{chunk-QI5DLJKB.js.map → chunk-FQ4TVLU4.js.map} +0 -0
  406. /package/dist/chunks/{chunk-C4HMW3HM.js.map → chunk-FQB5TULO.js.map} +0 -0
  407. /package/dist/chunks/{chunk-AQSOO7T5.js.map → chunk-FRVEG45C.js.map} +0 -0
  408. /package/dist/chunks/{chunk-AVZHTMRP.js.map → chunk-FZ45U2TD.js.map} +0 -0
  409. /package/dist/chunks/{chunk-KMP7GNMD.js.map → chunk-GPFJOS37.js.map} +0 -0
  410. /package/dist/chunks/{chunk-VINVUMPS.js.map → chunk-GVE34Z4N.js.map} +0 -0
  411. /package/dist/chunks/{chunk-GTHARNMF.js.map → chunk-HBJKBRNS.js.map} +0 -0
  412. /package/dist/chunks/{chunk-DUXBWYNI.js.map → chunk-HCYOQ6YQ.js.map} +0 -0
  413. /package/dist/chunks/{chunk-5PDBQ34I.js.map → chunk-HLNHYAFB.js.map} +0 -0
  414. /package/dist/chunks/{chunk-VLEJZWSI.js.map → chunk-I3BL2S64.js.map} +0 -0
  415. /package/dist/chunks/{chunk-RBW5FFRZ.js.map → chunk-IGA4KH5Y.js.map} +0 -0
  416. /package/dist/chunks/{chunk-IVVCW5NQ.js.map → chunk-IRPH5CDS.js.map} +0 -0
  417. /package/dist/chunks/{chunk-U65C3WSK.js.map → chunk-JIVLBRRN.js.map} +0 -0
  418. /package/dist/chunks/{chunk-O633GQ46.js.map → chunk-JMPKX37I.js.map} +0 -0
  419. /package/dist/chunks/{chunk-2GPXHLZ7.js.map → chunk-JQ3Y5NX7.js.map} +0 -0
  420. /package/dist/chunks/{chunk-EUPMFT4C.js.map → chunk-KGIGFJXC.js.map} +0 -0
  421. /package/dist/chunks/{chunk-PYLCAPRX.js.map → chunk-KH3DWISF.js.map} +0 -0
  422. /package/dist/chunks/{chunk-UW7DQJSG.js.map → chunk-KVTWBRQI.js.map} +0 -0
  423. /package/dist/chunks/{chunk-FCB7J2JY.js.map → chunk-LQM4DE5B.js.map} +0 -0
  424. /package/dist/chunks/{chunk-LSA4WCAA.js.map → chunk-LVBUF475.js.map} +0 -0
  425. /package/dist/chunks/{chunk-OFDZF2HC.js.map → chunk-M4GHZ6CV.js.map} +0 -0
  426. /package/dist/chunks/{chunk-TSC5I62M.js.map → chunk-MBR655LE.js.map} +0 -0
  427. /package/dist/chunks/{chunk-BT4Z22CR.js.map → chunk-MHJESYWP.js.map} +0 -0
  428. /package/dist/chunks/{chunk-QUVP32VA.js.map → chunk-MKBXBLDR.js.map} +0 -0
  429. /package/dist/chunks/{chunk-FFFNQRQU.js.map → chunk-MKBXTSKY.js.map} +0 -0
  430. /package/dist/chunks/{chunk-M4FJ432T.js.map → chunk-MQJX2ZHQ.js.map} +0 -0
  431. /package/dist/chunks/{chunk-TLDRR7NF.js.map → chunk-MS2YYSVC.js.map} +0 -0
  432. /package/dist/chunks/{chunk-JYEVX4XO.js.map → chunk-MU7HMNAT.js.map} +0 -0
  433. /package/dist/chunks/{chunk-HUDWOVPR.js.map → chunk-MWSJYZ2R.js.map} +0 -0
  434. /package/dist/chunks/{chunk-6EAH4JT6.js.map → chunk-N27MGDJW.js.map} +0 -0
  435. /package/dist/chunks/{chunk-ATBKAYPX.js.map → chunk-N7T6YPKT.js.map} +0 -0
  436. /package/dist/chunks/{chunk-EHNUMZLI.js.map → chunk-NGONNBXL.js.map} +0 -0
  437. /package/dist/chunks/{chunk-OZHN6UZ2.js.map → chunk-NHTBK2XM.js.map} +0 -0
  438. /package/dist/chunks/{chunk-VZMBA7BY.js.map → chunk-OAZQ26D7.js.map} +0 -0
  439. /package/dist/chunks/{chunk-B5M637GC.js.map → chunk-OI6J7RPI.js.map} +0 -0
  440. /package/dist/chunks/{chunk-XZRXGJRW.js.map → chunk-ORPLF5MZ.js.map} +0 -0
  441. /package/dist/chunks/{chunk-5FYABBNQ.js.map → chunk-P6S4D3RS.js.map} +0 -0
  442. /package/dist/chunks/{chunk-3ZAZUT7F.js.map → chunk-PH7QOU2A.js.map} +0 -0
  443. /package/dist/chunks/{chunk-VBNWYBV7.js.map → chunk-PY25GCBZ.js.map} +0 -0
  444. /package/dist/chunks/{chunk-QYTOM3WZ.js.map → chunk-Q2L4OX37.js.map} +0 -0
  445. /package/dist/chunks/{chunk-4T4STLUZ.js.map → chunk-Q33CQYAC.js.map} +0 -0
  446. /package/dist/chunks/{chunk-4F6OOHP2.js.map → chunk-Q64YZVHO.js.map} +0 -0
  447. /package/dist/chunks/{chunk-VJQLHEUD.js.map → chunk-Q73AM2KK.js.map} +0 -0
  448. /package/dist/chunks/{chunk-EWRZDQQD.js.map → chunk-Q744Z56H.js.map} +0 -0
  449. /package/dist/chunks/{chunk-LBBJQX73.js.map → chunk-QK2ES6TB.js.map} +0 -0
  450. /package/dist/chunks/{chunk-UWE7HTRB.js.map → chunk-QKLHNZLP.js.map} +0 -0
  451. /package/dist/chunks/{chunk-3BSJTK67.js.map → chunk-QMTLLPEB.js.map} +0 -0
  452. /package/dist/chunks/{chunk-JGWBBAQX.js.map → chunk-QO6NWZEY.js.map} +0 -0
  453. /package/dist/chunks/{chunk-I4GTRFPK.js.map → chunk-QPTNH7SR.js.map} +0 -0
  454. /package/dist/chunks/{chunk-MT6BBN3N.js.map → chunk-QSL4C3HW.js.map} +0 -0
  455. /package/dist/chunks/{chunk-2RD5B76Z.js.map → chunk-QSW6RQEA.js.map} +0 -0
  456. /package/dist/chunks/{chunk-MFMWMVI2.js.map → chunk-RC5CPNQL.js.map} +0 -0
  457. /package/dist/chunks/{chunk-C5KBEU26.js.map → chunk-RCWRXPNU.js.map} +0 -0
  458. /package/dist/chunks/{chunk-B3MQ5GKC.js.map → chunk-RGHE4YT2.js.map} +0 -0
  459. /package/dist/chunks/{chunk-X6P6PKNN.js.map → chunk-RMGBPCWJ.js.map} +0 -0
  460. /package/dist/chunks/{chunk-7TH57XCX.js.map → chunk-RRAME7MZ.js.map} +0 -0
  461. /package/dist/chunks/{chunk-CUSFXQX6.js.map → chunk-RUXMJHR4.js.map} +0 -0
  462. /package/dist/chunks/{chunk-672GYAHP.js.map → chunk-S72CBLRQ.js.map} +0 -0
  463. /package/dist/chunks/{chunk-J6DWOQI6.js.map → chunk-S7MZJAJZ.js.map} +0 -0
  464. /package/dist/chunks/{chunk-ZI2Z3N62.js.map → chunk-SEP5HAWL.js.map} +0 -0
  465. /package/dist/chunks/{chunk-2IXKDMQV.js.map → chunk-SFRPKNVL.js.map} +0 -0
  466. /package/dist/chunks/{chunk-SISDBCRO.js.map → chunk-SHJZWKEO.js.map} +0 -0
  467. /package/dist/chunks/{chunk-4MY32RSJ.js.map → chunk-SQ746U6G.js.map} +0 -0
  468. /package/dist/chunks/{chunk-JVHCTRTL.js.map → chunk-T36RR4QY.js.map} +0 -0
  469. /package/dist/chunks/{chunk-H3SBLH74.js.map → chunk-TMXAC55Y.js.map} +0 -0
  470. /package/dist/chunks/{chunk-BUFV5IZ2.js.map → chunk-TYZ2EXCN.js.map} +0 -0
  471. /package/dist/chunks/{chunk-3XWSIVZO.js.map → chunk-U7Y5U5WN.js.map} +0 -0
  472. /package/dist/chunks/{chunk-FTHG7MEP.js.map → chunk-UANOC6XV.js.map} +0 -0
  473. /package/dist/chunks/{chunk-NXCEN75Q.js.map → chunk-UBYLIP6R.js.map} +0 -0
  474. /package/dist/chunks/{chunk-AJNOSQRS.js.map → chunk-UIMQEGZQ.js.map} +0 -0
  475. /package/dist/chunks/{chunk-3QU5FWU5.js.map → chunk-VLEQMW7N.js.map} +0 -0
  476. /package/dist/chunks/{chunk-HMVMA52K.js.map → chunk-VOFIRTNT.js.map} +0 -0
  477. /package/dist/chunks/{chunk-5UARTCJW.js.map → chunk-VPLOFGJQ.js.map} +0 -0
  478. /package/dist/chunks/{chunk-4Q32NJ5O.js.map → chunk-W6XWXSAO.js.map} +0 -0
  479. /package/dist/chunks/{chunk-HKYQA52K.js.map → chunk-WBGA2CWS.js.map} +0 -0
  480. /package/dist/chunks/{chunk-BB7AEKOT.js.map → chunk-WISXBQR3.js.map} +0 -0
  481. /package/dist/chunks/{chunk-2CGTS4UL.js.map → chunk-X2KQ6U3E.js.map} +0 -0
  482. /package/dist/chunks/{chunk-C3EERM2C.js.map → chunk-X5A2KGLT.js.map} +0 -0
  483. /package/dist/chunks/{chunk-F3ILOM3S.js.map → chunk-XH2KBQQI.js.map} +0 -0
  484. /package/dist/chunks/{chunk-4WY2DYXA.js.map → chunk-XXEN5437.js.map} +0 -0
  485. /package/dist/chunks/{chunk-DUNNWEDQ.js.map → chunk-YDC3GF4A.js.map} +0 -0
  486. /package/dist/chunks/{chunk-FNASZG3G.js.map → chunk-YXOF3CCZ.js.map} +0 -0
  487. /package/dist/chunks/{chunk-REKFHGJD.js.map → chunk-Z5SFNSKM.js.map} +0 -0
  488. /package/dist/chunks/{chunk-YWJJ24PF.js.map → chunk-ZLGSWSWQ.js.map} +0 -0
  489. /package/dist/chunks/{chunk-EPSG3Z3J.js.map → chunk-ZWYQ7YVY.js.map} +0 -0
  490. /package/dist/chunks/{chunk-BU3XHNAZ.js.map → chunk-ZYH2AWZF.js.map} +0 -0
  491. /package/dist/chunks/{cli-runtime-64AJ66MR.js.map → cli-runtime-QJEWJ7MO.js.map} +0 -0
  492. /package/dist/chunks/{commands-MKPLY2XV.js.map → commands-4GSE33KT.js.map} +0 -0
  493. /package/dist/chunks/{config-D5IT6LRW.js.map → config-SP4ELZ65.js.map} +0 -0
  494. /package/dist/chunks/{conversation-id-S2QUZBIO.js.map → conversation-id-5WEVHPU2.js.map} +0 -0
  495. /package/dist/chunks/{cost-TXP2DORO.js.map → cost-NDGWWG75.js.map} +0 -0
  496. /package/dist/chunks/{crash-report-BQ7XI4TF.js.map → crash-report-7AHQSBVG.js.map} +0 -0
  497. /package/dist/chunks/{debug-BLDVME6D.js.map → debug-UYHOAU7G.js.map} +0 -0
  498. /package/dist/chunks/{desktop-host-schedule-tool-PWWNV4SP.js.map → desktop-host-schedule-tool-JW7DAM3K.js.map} +0 -0
  499. /package/dist/chunks/{dist-7N57TZWU.js.map → dist-GUJXGOJD.js.map} +0 -0
  500. /package/dist/chunks/{dist-SX3G4Q4Y.js.map → dist-ILZMWUZG.js.map} +0 -0
  501. /package/dist/chunks/{dist-UJ7MT7ET.js.map → dist-KDL67SQX.js.map} +0 -0
  502. /package/dist/chunks/{dist-PAKA3O7T.js.map → dist-N4VH46ZC.js.map} +0 -0
  503. /package/dist/chunks/{dist-QMEJLMXF.js.map → dist-NP6J6C6B.js.map} +0 -0
  504. /package/dist/chunks/{doctor-YGQQRHQU.js.map → doctor-BSSIBYW4.js.map} +0 -0
  505. /package/dist/chunks/{drain-AFIQLQMV.js.map → drain-CBJYB4YV.js.map} +0 -0
  506. /package/dist/chunks/{entry-MIRNOCLR.js.map → entry-5UYOACFL.js.map} +0 -0
  507. /package/dist/chunks/{eval-DQRIT7F7.js.map → eval-MEXBCRZE.js.map} +0 -0
  508. /package/dist/chunks/{exec-GXGPXJPV.js.map → exec-GGBBWTRE.js.map} +0 -0
  509. /package/dist/chunks/{exec-flags-I7PHHGJU.js.map → exec-flags-7O3R6VNK.js.map} +0 -0
  510. /package/dist/chunks/{extension-BPPZMACB.js.map → extension-NJ65NRSI.js.map} +0 -0
  511. /package/dist/chunks/{feed-7BLRIUMR.js.map → feed-WJGWKH3Q.js.map} +0 -0
  512. /package/dist/chunks/{github-S7M5YPBU.js.map → github-MNTV6WZD.js.map} +0 -0
  513. /package/dist/chunks/{home-KPXNNVQ3.js.map → home-WPNFAHFV.js.map} +0 -0
  514. /package/dist/chunks/{homes-XZNE3AR2.js.map → homes-QKJFPN4J.js.map} +0 -0
  515. /package/dist/chunks/{hooks-EJFGPRAU.js.map → hooks-K2TIZIPW.js.map} +0 -0
  516. /package/dist/chunks/{hooks-report-IJHIRMU4.js.map → hooks-report-BTODJHGA.js.map} +0 -0
  517. /package/dist/chunks/{host-3RGIVVV6.js.map → host-KLNZDS7I.js.map} +0 -0
  518. /package/dist/chunks/{host-queries-RZF7G7VH.js.map → host-queries-MWWBWBH3.js.map} +0 -0
  519. /package/dist/chunks/{index-project-3PXRTFXD.js.map → index-project-JNGBTULM.js.map} +0 -0
  520. /package/dist/chunks/{installed-list-R4CXRNQH.js.map → installed-list-K2ZSS57L.js.map} +0 -0
  521. /package/dist/chunks/{launch-QL2DRXD5.js.map → launch-L6APQRWZ.js.map} +0 -0
  522. /package/dist/chunks/{learn-S45K2BSD.js.map → learn-KMBS6DYD.js.map} +0 -0
  523. /package/dist/chunks/{learn-builtin-I6X74JIZ.js.map → learn-builtin-YHQBA3TI.js.map} +0 -0
  524. /package/dist/chunks/{lifecycle-SFUALNUU.js.map → lifecycle-3HE5WUH3.js.map} +0 -0
  525. /package/dist/chunks/{list-EYM5G5I2.js.map → list-UGHPDN4J.js.map} +0 -0
  526. /package/dist/chunks/{live-QPPDD5ZP.js.map → live-65NDROVC.js.map} +0 -0
  527. /package/dist/chunks/{load-V66VC5MG.js.map → load-NZFGFJGA.js.map} +0 -0
  528. /package/dist/chunks/{logs-MQBP6X7N.js.map → logs-P34HKEGO.js.map} +0 -0
  529. /package/dist/chunks/{mcp-7D46D33X.js.map → mcp-6W4DA4D7.js.map} +0 -0
  530. /package/dist/chunks/{mcp-serve-BQRYWCKK.js.map → mcp-serve-MIH3ONQF.js.map} +0 -0
  531. /package/dist/chunks/{message-command-LDC26IA3.js.map → message-command-6F6EIC72.js.map} +0 -0
  532. /package/dist/chunks/{notes-J26T5QMF.js.map → notes-GUY6ZA7S.js.map} +0 -0
  533. /package/dist/chunks/{open-A27TZSLZ.js.map → open-FKTS5NJW.js.map} +0 -0
  534. /package/dist/chunks/{operator-tools-M6XIADQO.js.map → operator-tools-JK7IG5RQ.js.map} +0 -0
  535. /package/dist/chunks/{output-schema-HFVD3INV.js.map → output-schema-54MZRNAQ.js.map} +0 -0
  536. /package/dist/chunks/{pal-ZRTQQQKY.js.map → pal-X6M7FIM6.js.map} +0 -0
  537. /package/dist/chunks/{peers-5RFEQRIE.js.map → peers-ER43IAS2.js.map} +0 -0
  538. /package/dist/chunks/{peers-EKAIDFC7.js.map → peers-VOHU6QT4.js.map} +0 -0
  539. /package/dist/chunks/{pending-F6US7F4D.js.map → pending-DF6AKENO.js.map} +0 -0
  540. /package/dist/chunks/{plugin-XWBK2AES.js.map → plugin-EZSPGVE3.js.map} +0 -0
  541. /package/dist/chunks/{proposals-PUFNS7B2.js.map → proposals-XNXI26KX.js.map} +0 -0
  542. /package/dist/chunks/{providers-DWDFQSH5.js.map → providers-WK7O36I4.js.map} +0 -0
  543. /package/dist/chunks/{providers-MYEITJ7U.js.map → providers-YWGCVSMT.js.map} +0 -0
  544. /package/dist/chunks/{pty-437MD4WO.js.map → pty-GBLWUDWS.js.map} +0 -0
  545. /package/dist/chunks/{render-TGQXAOLC.js.map → render-L65JY7UZ.js.map} +0 -0
  546. /package/dist/chunks/{resume-LBF6SHWI.js.map → resume-DNID4OWP.js.map} +0 -0
  547. /package/dist/chunks/{resume-command-SEH3VNBC.js.map → resume-command-AP35JCD6.js.map} +0 -0
  548. /package/dist/chunks/{running-J66IL6JP.js.map → running-X6PVK4P4.js.map} +0 -0
  549. /package/dist/chunks/{say-FZLSUCYZ.js.map → say-QEH7QD7C.js.map} +0 -0
  550. /package/dist/chunks/{schedule-NHDNUIMR.js.map → schedule-2YYLITCO.js.map} +0 -0
  551. /package/dist/chunks/{send-WW3XRBNY.js.map → send-GYDAGL2K.js.map} +0 -0
  552. /package/dist/chunks/{send-person-VPPGPY7Z.js.map → send-person-ORD5KSZJ.js.map} +0 -0
  553. /package/dist/chunks/{servers-UPVWNZLA.js.map → servers-QF2D2DHU.js.map} +0 -0
  554. /package/dist/chunks/{service-JCUILBNP.js.map → service-GHPTQFYM.js.map} +0 -0
  555. /package/dist/chunks/{session-options-JFXAHXSR.js.map → session-options-QU24ZTAR.js.map} +0 -0
  556. /package/dist/chunks/{setting-cli-5YW4K6RY.js.map → setting-cli-RCWQ3PQ2.js.map} +0 -0
  557. /package/dist/chunks/{skills-Q7TDOGZF.js.map → skills-Y2B2PVV4.js.map} +0 -0
  558. /package/dist/chunks/{source-deliveries-47YDJTC5.js.map → source-deliveries-ETVRGF37.js.map} +0 -0
  559. /package/dist/chunks/{start-check-RQHS2DSG.js.map → start-check-ND7JMIV2.js.map} +0 -0
  560. /package/dist/chunks/{startup-failure-NSR6JI74.js.map → startup-failure-4D2RLMRR.js.map} +0 -0
  561. /package/dist/chunks/{state-BBTR4O6O.js.map → state-KKPIEMAZ.js.map} +0 -0
  562. /package/dist/chunks/{store-63GHT2AG.js.map → store-5EJQ23W4.js.map} +0 -0
  563. /package/dist/chunks/{store-D2YQ3FUT.js.map → store-7H5DIKXP.js.map} +0 -0
  564. /package/dist/chunks/{store-HVORHUT6.js.map → store-D3BDEFSQ.js.map} +0 -0
  565. /package/dist/chunks/{store-NESNQHXT.js.map → store-V7T7LX7N.js.map} +0 -0
  566. /package/dist/chunks/{tui-PIBFSFOX.js.map → tui-7CKF4FEB.js.map} +0 -0
  567. /package/dist/chunks/{update-DF7EJDWE.js.map → update-JAW6P7U5.js.map} +0 -0
  568. /package/dist/chunks/{watch-5MB6KSKQ.js.map → watch-N5Y4PSQC.js.map} +0 -0
  569. /package/dist/chunks/{windows-home-P2CBM6ST.js.map → windows-home-K47ARHSQ.js.map} +0 -0
  570. /package/dist/chunks/{workspaces-3LHLGMZB.js.map → workspaces-RPNRRWQH.js.map} +0 -0
  571. /package/dist/chunks/{worktree-6WVBPPYG.js.map → worktree-REKIEK2Q.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-K7EUZJOM.js";
5
+ } from "./chunk-6DXRQHM3.js";
6
6
  import {
7
7
  SKILL_ADD_MAX_INPUTS,
8
8
  SKILL_FILE_MAX_BYTES,
@@ -14,20 +14,23 @@ import {
14
14
  readSkillInput,
15
15
  removeSkill,
16
16
  skillsFolderFor
17
- } from "./chunk-C4HMW3HM.js";
17
+ } from "./chunk-FQB5TULO.js";
18
18
  import {
19
19
  approveListedAnyMcpServers,
20
20
  listAllMcpServers,
21
21
  pluginConfigFor
22
- } from "./chunk-M4FJ432T.js";
22
+ } from "./chunk-MQJX2ZHQ.js";
23
+ import {
24
+ providerSignInDrivers
25
+ } from "./chunk-L6ZLSPCD.js";
23
26
  import {
24
27
  compareUpdate,
25
28
  renderInstallPreview,
26
29
  stateFailure
27
- } from "./chunk-JGWBBAQX.js";
30
+ } from "./chunk-QO6NWZEY.js";
28
31
  import {
29
32
  decideHeadlessTrust
30
- } from "./chunk-3BSJTK67.js";
33
+ } from "./chunk-QMTLLPEB.js";
31
34
  import {
32
35
  SIDE_QUESTION_MAX_CHARS,
33
36
  SIDE_QUESTION_TURNS,
@@ -46,12 +49,12 @@ import {
46
49
  stopDesktopExtensions,
47
50
  watchProjectMcpApprovals,
48
51
  withKeyNote
49
- } from "./chunk-4T4STLUZ.js";
50
- import "./chunk-LBBJQX73.js";
52
+ } from "./chunk-Q33CQYAC.js";
53
+ import "./chunk-QK2ES6TB.js";
51
54
  import "./chunk-7AE232RF.js";
52
55
  import {
53
56
  outcomeLine
54
- } from "./chunk-BCTGRGWF.js";
57
+ } from "./chunk-3DSSBV3F.js";
55
58
  import {
56
59
  HeadlessScreen
57
60
  } from "./chunk-GWGIAZLZ.js";
@@ -60,12 +63,12 @@ import {
60
63
  pauseJob,
61
64
  performRemove,
62
65
  queueRunNow
63
- } from "./chunk-PCLD62Y4.js";
64
- import "./chunk-2RD5B76Z.js";
65
- import "./chunk-UW7DQJSG.js";
66
+ } from "./chunk-7XWT35S7.js";
67
+ import "./chunk-QSW6RQEA.js";
68
+ import "./chunk-KVTWBRQI.js";
66
69
  import "./chunk-RNOCPBLC.js";
67
70
  import "./chunk-XEUQN4JC.js";
68
- import "./chunk-YXFRVCYY.js";
71
+ import "./chunk-7UW747VE.js";
69
72
  import "./chunk-GWQEMJFS.js";
70
73
  import {
71
74
  SCHEDULE_CARD_CAPABILITY,
@@ -74,25 +77,26 @@ import {
74
77
  scheduleReviewCard
75
78
  } from "./chunk-7IEHSPJY.js";
76
79
  import "./chunk-CG24EQQ4.js";
77
- import "./chunk-SISDBCRO.js";
78
- import "./chunk-KMP7GNMD.js";
79
- import "./chunk-DUXBWYNI.js";
80
- import "./chunk-4TIP4QHX.js";
81
- import "./chunk-FCB7J2JY.js";
82
- import "./chunk-CUSFXQX6.js";
80
+ import "./chunk-SHJZWKEO.js";
81
+ import "./chunk-GPFJOS37.js";
82
+ import "./chunk-HCYOQ6YQ.js";
83
+ import "./chunk-57LEFF5B.js";
84
+ import "./chunk-LQM4DE5B.js";
85
+ import "./chunk-RUXMJHR4.js";
83
86
  import {
84
87
  runsInsideSession
85
- } from "./chunk-EHNUMZLI.js";
86
- import "./chunk-TSC5I62M.js";
88
+ } from "./chunk-NGONNBXL.js";
89
+ import "./chunk-MBR655LE.js";
87
90
  import {
88
91
  palSessionEnvironment
89
- } from "./chunk-YV3RDTHR.js";
92
+ } from "./chunk-3D3CBJHR.js";
90
93
  import {
91
94
  FileCheckpointStore,
92
95
  IdleCompactor,
93
96
  SET_SETTING_TOOL,
94
97
  browserWindowQuestionApp,
95
98
  createAgentSession,
99
+ createSavedAgentHistory,
96
100
  deleteManagedMemory,
97
101
  describeAgentChange,
98
102
  describeProviderModels,
@@ -100,8 +104,10 @@ import {
100
104
  limitsSources,
101
105
  loadManagedMemories,
102
106
  looksSecret,
107
+ planApprovalRows,
103
108
  probeAgentSession,
104
109
  readMemoryBody,
110
+ readPlan,
105
111
  readSessionTreeCost,
106
112
  readSkillUsage,
107
113
  screenQuestionApp,
@@ -110,32 +116,32 @@ import {
110
116
  updateManagedMemory,
111
117
  validateComposerSendSettings,
112
118
  verifyCredential
113
- } from "./chunk-LXBLH2JF.js";
114
- import "./chunk-CGO3NJXK.js";
115
- import "./chunk-BU3XHNAZ.js";
116
- import "./chunk-JVHCTRTL.js";
117
- import "./chunk-EUPMFT4C.js";
118
- import "./chunk-H3SBLH74.js";
119
- import "./chunk-SEWZ6FRP.js";
120
- import "./chunk-BT4Z22CR.js";
119
+ } from "./chunk-6LEVJR3K.js";
120
+ import "./chunk-DSPRBHXG.js";
121
+ import "./chunk-ZYH2AWZF.js";
122
+ import "./chunk-T36RR4QY.js";
123
+ import "./chunk-KGIGFJXC.js";
124
+ import "./chunk-TMXAC55Y.js";
125
+ import "./chunk-7NA6Z4LT.js";
126
+ import "./chunk-MHJESYWP.js";
121
127
  import {
122
128
  resolveProgressNudge
123
- } from "./chunk-XFF7HELD.js";
124
- import "./chunk-CJG6BQXC.js";
125
- import "./chunk-OM6I2S7W.js";
126
- import "./chunk-AQSOO7T5.js";
129
+ } from "./chunk-3FGY7ALU.js";
130
+ import "./chunk-CU2NHWJZ.js";
131
+ import "./chunk-BQRYROMU.js";
132
+ import "./chunk-FRVEG45C.js";
127
133
  import {
128
134
  findProject
129
- } from "./chunk-HKYQA52K.js";
130
- import "./chunk-YWJJ24PF.js";
135
+ } from "./chunk-WBGA2CWS.js";
136
+ import "./chunk-ZLGSWSWQ.js";
131
137
  import "./chunk-YOWYTBJS.js";
132
- import "./chunk-33E2IBBS.js";
133
- import "./chunk-TMWPRJYQ.js";
134
- import "./chunk-HAAS62EL.js";
135
- import "./chunk-RBW5FFRZ.js";
138
+ import "./chunk-2LUHXKVZ.js";
139
+ import "./chunk-ZRRV4VBV.js";
140
+ import "./chunk-EUD7DFGD.js";
141
+ import "./chunk-IGA4KH5Y.js";
136
142
  import "./chunk-WLXGGNKO.js";
137
- import "./chunk-BUFV5IZ2.js";
138
- import "./chunk-5PDBQ34I.js";
143
+ import "./chunk-TYZ2EXCN.js";
144
+ import "./chunk-HLNHYAFB.js";
139
145
  import "./chunk-Y5V73F6D.js";
140
146
  import {
141
147
  emptyState,
@@ -143,11 +149,11 @@ import {
143
149
  nextFireOf,
144
150
  readHistoryTail,
145
151
  readState
146
- } from "./chunk-2IXKDMQV.js";
147
- import "./chunk-O633GQ46.js";
152
+ } from "./chunk-SFRPKNVL.js";
153
+ import "./chunk-JMPKX37I.js";
148
154
  import "./chunk-KCFXUYOK.js";
149
- import "./chunk-HUDWOVPR.js";
150
- import "./chunk-5FYABBNQ.js";
155
+ import "./chunk-MWSJYZ2R.js";
156
+ import "./chunk-P6S4D3RS.js";
151
157
  import {
152
158
  cliPalComputerStatus,
153
159
  cliPalScreen,
@@ -160,25 +166,29 @@ import {
160
166
  startCliPalComputer,
161
167
  stopCliPalComputer,
162
168
  takeOverCliPalComputer
163
- } from "./chunk-VLEJZWSI.js";
169
+ } from "./chunk-I3BL2S64.js";
164
170
  import "./chunk-ZWA2JRJV.js";
165
171
  import {
166
172
  cliPalActivitySubscriptionPolicy,
167
173
  cliPalActivitySubscriptionStore,
168
174
  cliPalCommunicationPolicy,
169
175
  cliPalCommunicationStore
170
- } from "./chunk-WJLVORL5.js";
176
+ } from "./chunk-E5RSO4L4.js";
171
177
  import {
172
178
  claimPalConversation,
173
179
  listPalConversations,
174
180
  palConversationBinding
175
- } from "./chunk-TX5R7FPO.js";
181
+ } from "./chunk-AOYZYPQU.js";
176
182
  import "./chunk-RY3CPIH5.js";
177
183
  import {
184
+ FORK_PROMPT_CHANGED,
178
185
  archiveConversation,
179
186
  closeSessions,
187
+ conversationLogPath,
180
188
  displayTitleOf,
181
189
  forkConversation,
190
+ forkConversationBeforeUser,
191
+ hasReply,
182
192
  listArchived,
183
193
  listRecent,
184
194
  loadConversation,
@@ -196,13 +206,13 @@ import {
196
206
  storedAssistantPhase,
197
207
  titlesOf,
198
208
  unarchiveConversation
199
- } from "./chunk-5IN3J4NM.js";
209
+ } from "./chunk-ZKN6TZRY.js";
200
210
  import {
201
211
  INSTRUCTIONS_FILENAME,
202
212
  MAX_BYTES_TO_READ,
203
213
  MAX_CHARS_PER_FILE,
204
214
  cliProjectRoot
205
- } from "./chunk-5UIY4X2H.js";
215
+ } from "./chunk-DOLQSKHY.js";
206
216
  import {
207
217
  cliPalStore,
208
218
  createPal,
@@ -212,17 +222,17 @@ import {
212
222
  listPals,
213
223
  palAtWorkspace,
214
224
  updatePal
215
- } from "./chunk-HMVMA52K.js";
216
- import "./chunk-IVVCW5NQ.js";
225
+ } from "./chunk-VOFIRTNT.js";
226
+ import "./chunk-IRPH5CDS.js";
217
227
  import "./chunk-WLTOV7EM.js";
218
228
  import {
219
229
  accountForProvider
220
- } from "./chunk-YCWIZHXB.js";
230
+ } from "./chunk-5VGIJDT3.js";
221
231
  import {
222
232
  buildCostReport
223
- } from "./chunk-VJQLHEUD.js";
224
- import "./chunk-3ZAZUT7F.js";
225
- import "./chunk-Y34RDPE2.js";
233
+ } from "./chunk-Q73AM2KK.js";
234
+ import "./chunk-PH7QOU2A.js";
235
+ import "./chunk-ECJSMWWH.js";
226
236
  import {
227
237
  HOSTS,
228
238
  advertisedPromptModes,
@@ -233,13 +243,14 @@ import {
233
243
  toolOptionsFromConfig,
234
244
  turnOptionsFromConfig,
235
245
  waitOptionsFromHost
236
- } from "./chunk-QSTY4NGH.js";
246
+ } from "./chunk-TINYCSAP.js";
237
247
  import {
238
248
  launchRefusal
239
- } from "./chunk-GAISG43Y.js";
249
+ } from "./chunk-4ZZLP5Q6.js";
240
250
  import {
241
251
  DESKTOP_CONTRACT
242
252
  } from "./chunk-KD6WL3W7.js";
253
+ import "./chunk-MDK4RMBQ.js";
243
254
  import {
244
255
  FetchError,
245
256
  InstallConflict,
@@ -267,10 +278,10 @@ import {
267
278
  removeInstall,
268
279
  sameSource,
269
280
  sameVersionChanged
270
- } from "./chunk-AWFXPA2P.js";
281
+ } from "./chunk-CSQBHH2P.js";
271
282
  import {
272
283
  warnBroadAllowRules
273
- } from "./chunk-FNASZG3G.js";
284
+ } from "./chunk-YXOF3CCZ.js";
274
285
  import {
275
286
  refreshTrustedProjectContext,
276
287
  resolveTrustedProjectContext
@@ -278,10 +289,10 @@ import {
278
289
  import {
279
290
  readManifest
280
291
  } from "./chunk-DAZE4L3J.js";
281
- import "./chunk-FTHG7MEP.js";
292
+ import "./chunk-UANOC6XV.js";
282
293
  import {
283
294
  displayPath
284
- } from "./chunk-672GYAHP.js";
295
+ } from "./chunk-S72CBLRQ.js";
285
296
  import {
286
297
  SKILL_BODY_MAX_BYTES,
287
298
  SKILL_DESCRIPTION_MAX_CHARS,
@@ -292,8 +303,8 @@ import {
292
303
  planSkillTargets,
293
304
  validateSkillDescription,
294
305
  validateSkillName
295
- } from "./chunk-4MY32RSJ.js";
296
- import "./chunk-MT6BBN3N.js";
306
+ } from "./chunk-SQ746U6G.js";
307
+ import "./chunk-QSL4C3HW.js";
297
308
  import "./chunk-5OYJXSMZ.js";
298
309
  import {
299
310
  LOCAL_UPLOADS_MARKETPLACE,
@@ -316,18 +327,18 @@ import {
316
327
  setEnabledPlugin,
317
328
  setExtraKnownMarketplace,
318
329
  surfaceDigest
319
- } from "./chunk-4P4TFLO5.js";
320
- import "./chunk-QI5DLJKB.js";
321
- import "./chunk-7TH57XCX.js";
330
+ } from "./chunk-5CBMOTZH.js";
331
+ import "./chunk-FQ4TVLU4.js";
332
+ import "./chunk-RRAME7MZ.js";
322
333
  import "./chunk-OH6TB27S.js";
323
- import "./chunk-YGCJJJ5U.js";
324
- import "./chunk-YVIKHGQ4.js";
334
+ import "./chunk-EYLW2CSN.js";
335
+ import "./chunk-BTE5NNGC.js";
325
336
  import {
326
337
  PluginSettingsStore
327
- } from "./chunk-NXCEN75Q.js";
338
+ } from "./chunk-UBYLIP6R.js";
328
339
  import {
329
340
  readSkillHooks
330
- } from "./chunk-J6DWOQI6.js";
341
+ } from "./chunk-S7MZJAJZ.js";
331
342
  import {
332
343
  installedPluginsPath,
333
344
  isPluginId,
@@ -338,15 +349,15 @@ import {
338
349
  removeKnownMarketplace,
339
350
  samePath,
340
351
  splitPluginId
341
- } from "./chunk-AVZHTMRP.js";
342
- import "./chunk-PYLCAPRX.js";
352
+ } from "./chunk-FZ45U2TD.js";
353
+ import "./chunk-KH3DWISF.js";
343
354
  import "./chunk-ZKCOQZ3U.js";
344
- import "./chunk-QYTOM3WZ.js";
355
+ import "./chunk-Q2L4OX37.js";
345
356
  import "./chunk-GNBMKISG.js";
346
357
  import "./chunk-JNPVJV3O.js";
347
358
  import {
348
359
  handoffContinuationNote
349
- } from "./chunk-GTHARNMF.js";
360
+ } from "./chunk-HBJKBRNS.js";
350
361
  import {
351
362
  TERMINAL_MARKER,
352
363
  buildPtyEnv,
@@ -357,7 +368,7 @@ import {
357
368
  loadHostPty,
358
369
  processesCarrying,
359
370
  quietConptyHelper
360
- } from "./chunk-JGVDN4QF.js";
371
+ } from "./chunk-BU34QVPU.js";
361
372
  import "./chunk-KDPGC66S.js";
362
373
  import {
363
374
  CLI_VERSION
@@ -371,7 +382,7 @@ import {
371
382
  readNotes,
372
383
  readPendingEdit,
373
384
  readProposals
374
- } from "./chunk-UIPZCJEG.js";
385
+ } from "./chunk-EOEV6W4N.js";
375
386
  import {
376
387
  sanitizeLine
377
388
  } from "./chunk-R3TEFEUL.js";
@@ -379,7 +390,7 @@ import {
379
390
  schedulePaths
380
391
  } from "./chunk-4LZSM4AN.js";
381
392
  import "./chunk-YZTDKUWX.js";
382
- import "./chunk-WSOU4AJL.js";
393
+ import "./chunk-3WWI2FUN.js";
383
394
  import {
384
395
  automaticKind,
385
396
  canSelectModel,
@@ -389,29 +400,29 @@ import {
389
400
  removeProviderKey,
390
401
  saveProviderKey,
391
402
  typedKeyProvider
392
- } from "./chunk-CJSHYGFG.js";
403
+ } from "./chunk-6JDLXECN.js";
393
404
  import "./chunk-MRDJXO22.js";
394
405
  import {
395
406
  isOfferableModel
396
407
  } from "./chunk-MCXOWPSF.js";
397
408
  import "./chunk-REEM4BCX.js";
398
409
  import "./chunk-LPPFJYL6.js";
399
- import "./chunk-QUVP32VA.js";
410
+ import "./chunk-MKBXBLDR.js";
400
411
  import {
401
412
  isTrusted,
402
413
  isTrustedAtStateRoot,
403
414
  trustDir,
404
415
  untrustDir
405
- } from "./chunk-REKFHGJD.js";
416
+ } from "./chunk-Z5SFNSKM.js";
406
417
  import {
407
418
  planSettingChange
408
- } from "./chunk-6EAH4JT6.js";
419
+ } from "./chunk-N27MGDJW.js";
409
420
  import {
410
421
  checkSetting,
411
422
  readSettings,
412
423
  writeSetting
413
- } from "./chunk-J2MKN2IJ.js";
414
- import "./chunk-R4KHEHKV.js";
424
+ } from "./chunk-7YUDFOS2.js";
425
+ import "./chunk-4XIOI4OS.js";
415
426
  import {
416
427
  checkUserMcpServerSave,
417
428
  compileBrowserSites,
@@ -424,17 +435,17 @@ import {
424
435
  saveUserMcpServer,
425
436
  sourceRefusal,
426
437
  withBrowserSiteRules
427
- } from "./chunk-IG3OL4PI.js";
428
- import "./chunk-B5M637GC.js";
438
+ } from "./chunk-GPMR64SH.js";
439
+ import "./chunk-OI6J7RPI.js";
429
440
  import {
430
441
  compilePermissionLayers,
431
442
  permissionLayersOf,
432
443
  warnLegacyMcpPermissionNames
433
- } from "./chunk-ER6NZEPG.js";
444
+ } from "./chunk-DWIN3BQK.js";
434
445
  import {
435
446
  userConfigPath
436
- } from "./chunk-CJCCFNFG.js";
437
- import "./chunk-5UARTCJW.js";
447
+ } from "./chunk-3NB4FCAS.js";
448
+ import "./chunk-VPLOFGJQ.js";
438
449
  import "./chunk-NUSWQJLL.js";
439
450
  import "./chunk-OWPDRJ6S.js";
440
451
  import {
@@ -444,27 +455,27 @@ import {
444
455
  StateFileUnreadableError,
445
456
  saveStateFile,
446
457
  withStateFileLock
447
- } from "./chunk-OZHN6UZ2.js";
458
+ } from "./chunk-NHTBK2XM.js";
448
459
  import "./chunk-PHW6PWIJ.js";
449
- import "./chunk-JGSBW4CL.js";
460
+ import "./chunk-5KL7XHNF.js";
450
461
  import {
451
462
  cliLogger
452
- } from "./chunk-HKBCNF4M.js";
463
+ } from "./chunk-32AQ2IYQ.js";
453
464
  import "./chunk-FBLNFNBL.js";
454
465
  import "./chunk-VWESPBCD.js";
455
- import "./chunk-ZI2Z3N62.js";
466
+ import "./chunk-SEP5HAWL.js";
456
467
  import "./chunk-WRPEQ3KP.js";
457
- import "./chunk-3XWSIVZO.js";
468
+ import "./chunk-U7Y5U5WN.js";
458
469
  import {
459
470
  messageTimeNote,
460
471
  previousSentAt
461
- } from "./chunk-DFPOJWTB.js";
472
+ } from "./chunk-4EHA3DZC.js";
462
473
  import "./chunk-SZGYBYWB.js";
463
474
  import {
464
475
  discoverSkillRoster,
465
476
  parseSkillMarkdown,
466
477
  skillTierLabel
467
- } from "./chunk-WKEGRNT3.js";
478
+ } from "./chunk-76N2YA4H.js";
468
479
  import "./chunk-N25X3QTA.js";
469
480
  import "./chunk-24V2WEKR.js";
470
481
  import {
@@ -475,15 +486,15 @@ import {
475
486
  } from "./chunk-G4N43E6M.js";
476
487
  import {
477
488
  namzuHomePath
478
- } from "./chunk-F3ILOM3S.js";
479
- import "./chunk-EFWNOGGF.js";
480
- import "./chunk-I4GTRFPK.js";
481
- import "./chunk-U5UV2YRE.js";
489
+ } from "./chunk-XH2KBQQI.js";
490
+ import "./chunk-QOYOMOYD.js";
491
+ import "./chunk-QPTNH7SR.js";
492
+ import "./chunk-NKPMNGMK.js";
482
493
  import "./chunk-AL6TZOC4.js";
483
494
  import "./chunk-EUBCYTOK.js";
484
495
  import {
485
496
  isPermissionMode
486
- } from "./chunk-MFMWMVI2.js";
497
+ } from "./chunk-RC5CPNQL.js";
487
498
  import "./chunk-TUPJ2UAB.js";
488
499
  import "./chunk-PSUN4YUU.js";
489
500
  import {
@@ -503,6 +514,7 @@ import {
503
514
  PalMessagePermissionConflictError,
504
515
  SESSION_CHILD_ENV,
505
516
  ServerStdioTransport,
517
+ SessionEvidenceOffsetError,
506
518
  SessionPaths,
507
519
  SessionTokenBudget,
508
520
  abandonTurn,
@@ -514,6 +526,7 @@ import {
514
526
  atomicWriteFile,
515
527
  createHarnessSession,
516
528
  createPalActivitySource,
529
+ createSessionTextEvidenceSource,
517
530
  createUserMessage,
518
531
  currentPlace,
519
532
  describeCost,
@@ -540,7 +553,7 @@ import {
540
553
  turnHolder,
541
554
  withSafeGitConfig,
542
555
  withSessionChildMarker
543
- } from "./chunk-JEPSIERS.js";
556
+ } from "./chunk-KHWLA26J.js";
544
557
  import {
545
558
  __name
546
559
  } from "./chunk-76FLAFCG.js";
@@ -669,7 +682,7 @@ async function localSpendEstimate(provider, now = Date.now) {
669
682
  __name(localSpendEstimate, "localSpendEstimate");
670
683
 
671
684
  // src/commands/acp.ts
672
- import { randomUUID as randomUUID9 } from "node:crypto";
685
+ import { randomUUID as randomUUID10 } from "node:crypto";
673
686
  import { existsSync as existsSync5, readFileSync as readFileSync8 } from "node:fs";
674
687
  import { readFile as readFile3 } from "node:fs/promises";
675
688
  import { dirname as dirname5, join as join11, relative as relative3 } from "node:path";
@@ -1752,8 +1765,10 @@ __name(createTerminalHost, "createTerminalHost");
1752
1765
 
1753
1766
  // src/commands/acp-browser-pane.ts
1754
1767
  var BROWSER_PANE_CAPABILITY = "namzu/browser-pane";
1768
+ var BROWSER_PANE_NEW_TAB_CAPABILITY = "namzu/browser-pane/new-tab";
1755
1769
  var BROWSER_PANE_METHODS = {
1756
1770
  open: "namzu/browser/pane/open",
1771
+ newTab: "namzu/browser/pane/new-tab",
1757
1772
  cdp: "namzu/browser/pane/cdp",
1758
1773
  close: "namzu/browser/pane/close",
1759
1774
  event: "namzu/browser/pane/event",
@@ -1775,6 +1790,19 @@ function createAcpPaneLink(connection) {
1775
1790
  constructor(sessionId, rules) {
1776
1791
  this.sessionId = sessionId;
1777
1792
  this.rules = rules;
1793
+ if (connection.offers(BROWSER_PANE_NEW_TAB_CAPABILITY)) {
1794
+ this.openTab = async (url) => {
1795
+ await this.listTabs();
1796
+ const reply = await this.ask(BROWSER_PANE_METHODS.newTab, {
1797
+ ...this.primary ? { tabId: this.primary } : {},
1798
+ ...url !== void 0 ? { url } : {}
1799
+ });
1800
+ const tabId = text3(object(reply)?.tabId);
1801
+ if (!tabId) throw new Error("The Browser pane did not name the new tab.");
1802
+ this.tabs.add(tabId);
1803
+ return { tabId };
1804
+ };
1805
+ }
1778
1806
  }
1779
1807
  sessionId;
1780
1808
  rules;
@@ -1786,6 +1814,7 @@ function createAcpPaneLink(connection) {
1786
1814
  gone = /* @__PURE__ */ new Set();
1787
1815
  closes = /* @__PURE__ */ new Set();
1788
1816
  opened;
1817
+ openTab;
1789
1818
  primary;
1790
1819
  tabs = /* @__PURE__ */ new Set();
1791
1820
  holder = "agent";
@@ -1797,9 +1826,16 @@ function createAcpPaneLink(connection) {
1797
1826
  if (this.done || closed !== void 0)
1798
1827
  return Promise.reject(new Error("The Browser pane is not connected."));
1799
1828
  channels.add(this);
1800
- return connection.ask(method, { sessionId: this.sessionId, ...params });
1829
+ return connection.ask(method, { sessionId: this.sessionId, ...params }).catch((error) => {
1830
+ const code = text3(object(object(error)?.data)?.code);
1831
+ if (!code || !(error instanceof Error)) throw error;
1832
+ throw Object.assign(new Error(`${error.message} (${code})`, { cause: error }), {
1833
+ data: { code }
1834
+ });
1835
+ });
1801
1836
  }
1802
- listTabs() {
1837
+ async listTabs() {
1838
+ if (this.done || closed !== void 0) throw new Error("The Browser pane is not connected.");
1803
1839
  this.opened ??= this.ask(BROWSER_PANE_METHODS.open, {
1804
1840
  ...this.rules !== void 0 ? { rules: this.rules } : {}
1805
1841
  }).then((reply) => {
@@ -1807,9 +1843,13 @@ function createAcpPaneLink(connection) {
1807
1843
  if (!tabId) throw new Error("The Browser pane did not name the tab it opened.");
1808
1844
  this.primary = tabId;
1809
1845
  this.tabs.add(tabId);
1810
- return [{ tabId }];
1846
+ }).catch((error) => {
1847
+ this.opened = void 0;
1848
+ throw error;
1811
1849
  });
1812
- return this.opened.then(() => [...this.tabs].map((tabId) => ({ tabId })));
1850
+ await this.opened;
1851
+ if (this.done || closed !== void 0) throw new Error("The Browser pane is not connected.");
1852
+ return [...this.tabs].map((tabId) => ({ tabId }));
1813
1853
  }
1814
1854
  async cdp(tabId, method, params, sessionId) {
1815
1855
  const reply = await this.ask(BROWSER_PANE_METHODS.cdp, {
@@ -1838,7 +1878,7 @@ function createAcpPaneLink(connection) {
1838
1878
  return () => this.closes.delete(listener);
1839
1879
  }
1840
1880
  // The first tab stays: it is the one the conversation always has, and the host has nowhere
1841
- // to go if it is closed. A tab a page opened can be closed.
1881
+ // to go if it is closed. An additional agent tab can be closed.
1842
1882
  async closeTab(tabId) {
1843
1883
  if (tabId === this.primary)
1844
1884
  throw new Error(
@@ -1849,7 +1889,7 @@ function createAcpPaneLink(connection) {
1849
1889
  }
1850
1890
  async close() {
1851
1891
  if (this.done) return;
1852
- const wasOpen = this.opened !== void 0 && closed === void 0;
1892
+ const wasOpen = (this.opened !== void 0 || this.tabs.size > 0) && closed === void 0;
1853
1893
  this.done = true;
1854
1894
  channels.delete(this);
1855
1895
  if (wasOpen)
@@ -1887,6 +1927,13 @@ function createAcpPaneLink(connection) {
1887
1927
  for (const listener of [...this.added]) listener({ tabId });
1888
1928
  return;
1889
1929
  case "tab-closed":
1930
+ if (tabId === this.primary) {
1931
+ this.primary = void 0;
1932
+ this.opened = void 0;
1933
+ this.holder = "agent";
1934
+ }
1935
+ this.forget(tabId);
1936
+ return;
1890
1937
  case "detached":
1891
1938
  this.forget(tabId);
1892
1939
  }
@@ -1954,11 +2001,12 @@ function paneSiteRules(sites) {
1954
2001
  __name(paneSiteRules, "paneSiteRules");
1955
2002
 
1956
2003
  // src/commands/acp-desktop-question.ts
1957
- import { randomUUID as randomUUID3 } from "node:crypto";
2004
+ import { createHash, randomUUID as randomUUID3 } from "node:crypto";
1958
2005
  var cardQuestion = /* @__PURE__ */ __name((question) => screenQuestionApp(question) !== void 0 || browserWindowQuestionApp(question) !== void 0, "cardQuestion");
1959
2006
  var QUESTION_NOTIFICATION = "namzu/session/question";
1960
2007
  var QUESTION_CLOSED_NOTIFICATION = "namzu/session/question-closed";
1961
2008
  var ANSWER_QUESTION_METHOD = "namzu/session/answer-question";
2009
+ var PLAN_APPROVAL_CAPABILITY = "namzu/plan-approval-card";
1962
2010
  var MAX_IDS = 64;
1963
2011
  var MAX_ID_LENGTH = 200;
1964
2012
  var MAX_TEXT = 1e4;
@@ -2032,6 +2080,7 @@ function asSingleAnswer(answer) {
2032
2080
  __name(asSingleAnswer, "asSingleAnswer");
2033
2081
  function createQuestionRelay(notify) {
2034
2082
  const open2 = /* @__PURE__ */ new Map();
2083
+ const plans = /* @__PURE__ */ new Map();
2035
2084
  const say = /* @__PURE__ */ __name((method, params) => {
2036
2085
  try {
2037
2086
  notify(method, params);
@@ -2154,14 +2203,95 @@ function createQuestionRelay(notify) {
2154
2203
  });
2155
2204
  });
2156
2205
  },
2206
+ planApproval(sessionId, turnSignal, applyPermissionMode) {
2207
+ return async (request, signal) => {
2208
+ const keepPlanning = { kind: "keep-planning" };
2209
+ const modes = planApprovalRows(request.bypassAvailable, request.autoAvailable).flatMap(
2210
+ (row2) => row2.mode ? [{ mode: row2.mode, label: row2.label }] : []
2211
+ );
2212
+ let plan = request.plan;
2213
+ while (plan !== void 0 && !turnSignal.aborted && !signal?.aborted) {
2214
+ const shown = plan;
2215
+ const revision2 = createHash("sha256").update(shown).digest("hex");
2216
+ const result = await new Promise(
2217
+ (resolve7) => {
2218
+ const requestId = randomUUID3();
2219
+ let answering = false;
2220
+ const finish = /* @__PURE__ */ __name((answer, close = false) => {
2221
+ if (!plans.delete(requestId)) return;
2222
+ turnSignal.removeEventListener("abort", onAbort);
2223
+ signal?.removeEventListener("abort", onAbort);
2224
+ if (close) say(QUESTION_CLOSED_NOTIFICATION, { sessionId, requestId });
2225
+ resolve7(answer);
2226
+ }, "finish");
2227
+ const onAbort = /* @__PURE__ */ __name(() => finish(keepPlanning, true), "onAbort");
2228
+ plans.set(requestId, {
2229
+ sessionId,
2230
+ answer: /* @__PURE__ */ __name(async (answer) => {
2231
+ if (answering) throw new Error("This plan is already being answered.");
2232
+ if (answer.kind !== "answer") {
2233
+ finish(keepPlanning);
2234
+ return {};
2235
+ }
2236
+ const entry = answer.answers?.[0];
2237
+ if (answer.answers?.length !== 1 || entry?.questionId !== revision2)
2238
+ throw new Error("This answer is for a different plan revision.");
2239
+ const [choice] = entry.selectedOptionIds;
2240
+ const selected = modes.find(({ mode }) => mode === choice);
2241
+ if (entry.selectedOptionIds.length === 0 && entry.freeText) {
2242
+ finish({ kind: "keep-planning", feedback: entry.freeText });
2243
+ return {};
2244
+ }
2245
+ if (entry.selectedOptionIds.length !== 1 || !selected || entry.freeText)
2246
+ throw new Error("Choose how to continue with this plan.");
2247
+ answering = true;
2248
+ try {
2249
+ const latest = await readPlan(request.planPath);
2250
+ if (!plans.has(requestId)) throw new Error("This plan is no longer open.");
2251
+ if (latest !== shown) {
2252
+ finish({ revised: latest }, true);
2253
+ throw new Error(
2254
+ latest === void 0 ? "The plan is empty or missing. Ask the agent to prepare it again." : "The plan changed. Review the updated plan before approving."
2255
+ );
2256
+ }
2257
+ await applyPermissionMode(selected.mode);
2258
+ finish({ kind: "approve", mode: selected.mode, plan: shown });
2259
+ return { permissionMode: selected.mode };
2260
+ } finally {
2261
+ answering = false;
2262
+ }
2263
+ }, "answer")
2264
+ });
2265
+ turnSignal.addEventListener("abort", onAbort, { once: true });
2266
+ signal?.addEventListener("abort", onAbort, { once: true });
2267
+ say(QUESTION_NOTIFICATION, {
2268
+ sessionId,
2269
+ requestId,
2270
+ question: {
2271
+ questionId: revision2,
2272
+ question: "How should Namzu continue?",
2273
+ options: modes.map(({ mode, label }) => ({ id: mode, label }))
2274
+ },
2275
+ planApproval: { name: "the plan", plan: shown, revision: revision2, modes }
2276
+ });
2277
+ }
2278
+ );
2279
+ if (!("revised" in result)) return result;
2280
+ plan = result.revised;
2281
+ }
2282
+ return keepPlanning;
2283
+ };
2284
+ },
2157
2285
  hostQuestion(sessionId) {
2158
2286
  return relay.forTurn(sessionId, new AbortController().signal);
2159
2287
  },
2160
2288
  answer(sessionId, requestId, answer) {
2161
- const pending = open2.get(requestId);
2162
- if (!pending || pending.sessionId !== sessionId) return false;
2163
2289
  const read = readQuestionAnswer(answer);
2164
2290
  if (!read) return false;
2291
+ const plan = plans.get(requestId);
2292
+ if (plan?.sessionId === sessionId) return plan.answer(read);
2293
+ const pending = open2.get(requestId);
2294
+ if (!pending || pending.sessionId !== sessionId) return false;
2165
2295
  pending.settle(pending.single ? asSingleAnswer(read) : read);
2166
2296
  return true;
2167
2297
  }
@@ -2177,7 +2307,7 @@ function routeQuestions(screen, relay) {
2177
2307
  __name(routeQuestions, "routeQuestions");
2178
2308
 
2179
2309
  // src/commands/acp-harness.ts
2180
- import { createHash as createHash2, randomUUID as randomUUID5 } from "node:crypto";
2310
+ import { createHash as createHash3, randomUUID as randomUUID5 } from "node:crypto";
2181
2311
  import { stat as stat3 } from "node:fs/promises";
2182
2312
  import { homedir as homedir3 } from "node:os";
2183
2313
  import { isAbsolute as isAbsolute4, join as join5 } from "node:path";
@@ -3505,7 +3635,7 @@ async function discoverClaudeHarnessModels(options) {
3505
3635
  __name(discoverClaudeHarnessModels, "discoverClaudeHarnessModels");
3506
3636
 
3507
3637
  // src/integrations/harness/codex-adapter.ts
3508
- import { createHash } from "node:crypto";
3638
+ import { createHash as createHash2 } from "node:crypto";
3509
3639
  import { realpath as realpath2 } from "node:fs/promises";
3510
3640
  import { homedir as homedir2 } from "node:os";
3511
3641
  import { isAbsolute as isAbsolute3, join as join4, resolve as resolve3 } from "node:path";
@@ -4344,7 +4474,7 @@ async function createCodexHarnessAdapter(options = {}) {
4344
4474
  if (env.CODEX_HOME && !isAbsolute3(env.CODEX_HOME))
4345
4475
  throw new Error("CODEX_HOME must be an absolute directory for native engine sessions.");
4346
4476
  const stateHome = resolve3(env.CODEX_HOME ?? join4(homedir2(), ".codex"));
4347
- const profileRef = options.profileRef ?? `codex:${createHash("sha256").update(`${executable}\0${stateHome}`).digest("hex")}`;
4477
+ const profileRef = options.profileRef ?? `codex:${createHash2("sha256").update(`${executable}\0${stateHome}`).digest("hex")}`;
4348
4478
  return {
4349
4479
  engineId: "codex",
4350
4480
  profileRef,
@@ -4578,7 +4708,7 @@ function createDefaults() {
4578
4708
  );
4579
4709
  return createClaudeHarnessAdapter({
4580
4710
  executable,
4581
- profileRef: `claude:${createHash2("sha256").update(`${executable}\0${stateHome}`).digest("hex")}`
4711
+ profileRef: `claude:${createHash3("sha256").update(`${executable}\0${stateHome}`).digest("hex")}`
4582
4712
  });
4583
4713
  }, "adapter"),
4584
4714
  models: /* @__PURE__ */ __name(async (engine, cwd) => {
@@ -4604,7 +4734,7 @@ function createDefaults() {
4604
4734
  engine === "codex-cli" ? "codex" : "claude"
4605
4735
  );
4606
4736
  const file = await stat3(executable);
4607
- return createHash2("sha256").update(JSON.stringify([executable, file.size, Math.round(file.mtimeMs)])).digest("hex").slice(0, 16);
4737
+ return createHash3("sha256").update(JSON.stringify([executable, file.size, Math.round(file.mtimeMs)])).digest("hex").slice(0, 16);
4608
4738
  } catch {
4609
4739
  return void 0;
4610
4740
  }
@@ -5149,6 +5279,10 @@ async function settleTurnOfGoneHost(state, sessionId, close, isGone = holderIsGo
5149
5279
  const id2 = asSessionId(sessionId);
5150
5280
  const facts = await readConversationFacts(state, id2);
5151
5281
  const active = facts?.activeTurn;
5282
+ if (facts && !active) {
5283
+ await freeLeaseOfGoneHost(state, id2, isGone);
5284
+ return false;
5285
+ }
5152
5286
  if (!active || active.paused) return false;
5153
5287
  if (facts.latestPause(active.turnId) || facts.wasResumed(active.turnId)) return false;
5154
5288
  const log = DiskSessionLog.at(state.paths, { sessionId: id2 });
@@ -5177,6 +5311,23 @@ async function settleTurnOfGoneHost(state, sessionId, close, isGone = holderIsGo
5177
5311
  return true;
5178
5312
  }
5179
5313
  __name(settleTurnOfGoneHost, "settleTurnOfGoneHost");
5314
+ async function freeLeaseOfGoneHost(state, id2, isGone) {
5315
+ const log = DiskSessionLog.at(state.paths, { sessionId: id2 });
5316
+ const held = await log.lease();
5317
+ if (!held || held.holder === "" || held.expiresAt <= Date.now()) return;
5318
+ const parsed = parseTurnHolder(held.holder);
5319
+ if (!parsed || !isGone(held.holder, parsed.turnId)) return;
5320
+ try {
5321
+ const lease = await log.claim({
5322
+ holder: turnHolder(id2),
5323
+ ttlMs: 3e4,
5324
+ now: held.expiresAt
5325
+ });
5326
+ if (lease) await log.release(lease).catch(() => void 0);
5327
+ } catch {
5328
+ }
5329
+ }
5330
+ __name(freeLeaseOfGoneHost, "freeLeaseOfGoneHost");
5180
5331
  async function readProviderRetryStatus(state, sessionId) {
5181
5332
  const id2 = asSessionId(sessionId);
5182
5333
  const facts = await readConversationFacts(state, id2);
@@ -5593,6 +5744,7 @@ __name(commitMessageBody, "commitMessageBody");
5593
5744
 
5594
5745
  // src/commands/desktop-computer-feed.ts
5595
5746
  var COMPUTER_FRAME_NOTIFICATION = "namzu/session/computer-frame";
5747
+ var COMPUTER_BACKEND_NOTIFICATION = "namzu/session/computer-backend";
5596
5748
 
5597
5749
  // src/commands/desktop-context.ts
5598
5750
  var CONTEXT_LIST_LIMIT = 500;
@@ -5721,6 +5873,7 @@ function buildContextReport(input) {
5721
5873
  __name(buildContextReport, "buildContextReport");
5722
5874
 
5723
5875
  // src/commands/desktop-host.ts
5876
+ import { createHash as createHash7 } from "node:crypto";
5724
5877
  import { lstat as lstat2 } from "node:fs/promises";
5725
5878
 
5726
5879
  // src/integrations/sessions/archive-inactive.ts
@@ -5742,7 +5895,7 @@ async function archiveIdleConversations(options) {
5742
5895
  if (afterMs === void 0) return [];
5743
5896
  const limit = options.limit ?? ARCHIVE_PER_SWEEP;
5744
5897
  const archived = [];
5745
- const idle = options.candidates.map((candidate) => ({ id: candidate.id, since: Date.parse(candidate.updatedAt) })).filter((entry) => Number.isFinite(entry.since) && options.now - entry.since >= afterMs).sort((a, b) => a.since - b.since);
5898
+ const idle = options.candidates.filter((candidate) => !options.protect?.has(candidate.id)).map((candidate) => ({ id: candidate.id, since: Date.parse(candidate.updatedAt) })).filter((entry) => Number.isFinite(entry.since) && options.now - entry.since >= afterMs).sort((a, b) => a.since - b.since);
5746
5899
  for (const entry of idle) {
5747
5900
  if (archived.length >= limit) break;
5748
5901
  const refusedAt = options.refused?.get(entry.id);
@@ -5842,8 +5995,8 @@ var RequestError = class extends Error {
5842
5995
  };
5843
5996
  var UNAVAILABLE = "Pal communication unavailable; its records could not be read completely.";
5844
5997
  var UNCONFIRMED = "Pal communication change could not be confirmed. Reload before trying again.";
5845
- function exact2(params, fields) {
5846
- if (Object.keys(params).some((key) => !fields.includes(key)))
5998
+ function exact2(params, fields2) {
5999
+ if (Object.keys(params).some((key) => !fields2.includes(key)))
5847
6000
  throw new RequestError("Unexpected Pal communication fields.");
5848
6001
  }
5849
6002
  __name(exact2, "exact");
@@ -5912,10 +6065,10 @@ function title(value) {
5912
6065
  __name(title, "title");
5913
6066
  function createDesktopPalCommunicationExtensions(options) {
5914
6067
  let homeScope;
5915
- const within = /* @__PURE__ */ __name(async (params, fields, mutation, run) => {
6068
+ const within = /* @__PURE__ */ __name(async (params, fields2, mutation, run) => {
5916
6069
  try {
5917
6070
  const input = Object.freeze({ ...params });
5918
- exact2(input, fields);
6071
+ exact2(input, fields2);
5919
6072
  const palId = id(input, "palId");
5920
6073
  if (homeScope && directoryIdentity(homeScope.root) !== homeScope.identity)
5921
6074
  throw new RequestError("The Pal application home changed; reconnect before continuing.");
@@ -6787,7 +6940,7 @@ function createProjectChanges(options = {}) {
6787
6940
  __name(createProjectChanges, "createProjectChanges");
6788
6941
 
6789
6942
  // src/commands/desktop-host-memory.ts
6790
- import { createHash as createHash3 } from "node:crypto";
6943
+ import { createHash as createHash4 } from "node:crypto";
6791
6944
  import {
6792
6945
  existsSync,
6793
6946
  lstatSync as lstatSync4,
@@ -6803,7 +6956,7 @@ var MEMORY_TEXT_MAX = 8e3;
6803
6956
  var MEMORY_TITLE_MAX = 120;
6804
6957
  var MEMORY_SUMMARY_MAX = 240;
6805
6958
  var EXCERPT_MAX = 400;
6806
- var revisionOf = /* @__PURE__ */ __name((text5) => createHash3("sha256").update(text5).digest("hex"), "revisionOf");
6959
+ var revisionOf = /* @__PURE__ */ __name((text5) => createHash4("sha256").update(text5).digest("hex"), "revisionOf");
6807
6960
  function instructionsPath() {
6808
6961
  return join9(resolveNamzuHome(), INSTRUCTIONS_FILENAME);
6809
6962
  }
@@ -6989,7 +7142,7 @@ function createMemoryHost(cwd, pal) {
6989
7142
  __name(createMemoryHost, "createMemoryHost");
6990
7143
 
6991
7144
  // src/commands/desktop-host-plugins.ts
6992
- import { createHash as createHash4, randomUUID as randomUUID7 } from "node:crypto";
7145
+ import { createHash as createHash5, randomUUID as randomUUID7 } from "node:crypto";
6993
7146
  import { existsSync as existsSync2, lstatSync as lstatSync5, readFileSync as readFileSync3 } from "node:fs";
6994
7147
  import { isAbsolute as isAbsolute7, resolve as resolve6 } from "node:path";
6995
7148
  var PLUGIN_STAGE_TTL_MS = 10 * 60 * 1e3;
@@ -7354,7 +7507,7 @@ function createDesktopPluginActions(deps) {
7354
7507
  if (problem !== void 0) throw new Error(problem);
7355
7508
  return { fetched, catalog: read.catalog };
7356
7509
  }, "readRemote");
7357
- const catalogDigest = /* @__PURE__ */ __name((catalog) => createHash4("sha256").update(readFileSync3(catalog.file)).digest("hex"), "catalogDigest");
7510
+ const catalogDigest = /* @__PURE__ */ __name((catalog) => createHash5("sha256").update(readFileSync3(catalog.file)).digest("hex"), "catalogDigest");
7358
7511
  const addRemote = /* @__PURE__ */ __name(async (source, scope, context, expectedCommit, expectedDigest) => {
7359
7512
  const known = knownRead();
7360
7513
  const staging = newStaging(home);
@@ -8678,8 +8831,135 @@ function createDesktopScheduleActions(deps) {
8678
8831
  }
8679
8832
  __name(createDesktopScheduleActions, "createDesktopScheduleActions");
8680
8833
 
8834
+ // src/commands/desktop-host-signin.ts
8835
+ import { randomUUID as randomUUID8 } from "node:crypto";
8836
+ var SignInError = class extends Error {
8837
+ static {
8838
+ __name(this, "SignInError");
8839
+ }
8840
+ constructor(code, message) {
8841
+ super(message);
8842
+ this.data = { code };
8843
+ }
8844
+ data;
8845
+ };
8846
+ function fields(params, ...keys) {
8847
+ if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length !== keys.length || keys.some((key) => !Object.hasOwn(params, key)))
8848
+ throw new SignInError("invalid-signin-params", "Invalid sign-in request.");
8849
+ return keys.map((key) => {
8850
+ const value = params[key];
8851
+ if (typeof value !== "string" || !value.trim() || value.length > (key === "code" ? 8192 : 100))
8852
+ throw new SignInError("invalid-signin-params", "Invalid sign-in request.");
8853
+ return value.trim();
8854
+ });
8855
+ }
8856
+ __name(fields, "fields");
8857
+ function createProviderSignInMethods(drivers = providerSignInDrivers) {
8858
+ const attempts = /* @__PURE__ */ new Map();
8859
+ const settle = /* @__PURE__ */ __name((attempt, status) => {
8860
+ if (attempt.status.state !== "pending") return;
8861
+ attempt.status = status;
8862
+ clearTimeout(attempt.timer);
8863
+ attempt.flow = void 0;
8864
+ attempt.owner.abort();
8865
+ }, "settle");
8866
+ const expire = /* @__PURE__ */ __name((attempt) => settle(attempt, {
8867
+ state: "expired",
8868
+ reason: "The sign-in expired. Try again for a new request."
8869
+ }), "expire");
8870
+ const owned = /* @__PURE__ */ __name((id2) => {
8871
+ const attempt = [...attempts.values()].find((entry) => entry.id === id2);
8872
+ if (!attempt)
8873
+ throw new SignInError("unknown-signin-attempt", "This sign-in attempt is unavailable.");
8874
+ if (Date.now() >= attempt.expiresAt) expire(attempt);
8875
+ return attempt;
8876
+ }, "owned");
8877
+ const finish = /* @__PURE__ */ __name(async (attempt, exchange) => {
8878
+ attempt.completing = true;
8879
+ try {
8880
+ if ((await exchange()).ok) {
8881
+ settle(attempt, { state: "connected" });
8882
+ return;
8883
+ }
8884
+ } catch {
8885
+ }
8886
+ settle(attempt, {
8887
+ state: "failed",
8888
+ reason: "The provider could not complete sign-in. Try again."
8889
+ });
8890
+ }, "finish");
8891
+ return {
8892
+ "namzu/providers/signin/available": /* @__PURE__ */ __name((params) => {
8893
+ fields(params);
8894
+ return Object.keys(drivers);
8895
+ }, "namzu/providers/signin/available"),
8896
+ "namzu/providers/signin/start": /* @__PURE__ */ __name(async (params) => {
8897
+ const [provider] = fields(params, "providerId");
8898
+ const driver = provider && Object.hasOwn(drivers, provider) ? drivers[provider] : void 0;
8899
+ if (!provider || !driver)
8900
+ throw new SignInError(
8901
+ "unsupported-provider-signin",
8902
+ "This provider does not offer sign-in here."
8903
+ );
8904
+ if (attempts.get(provider)?.status.state === "pending")
8905
+ throw new SignInError(
8906
+ "signin-in-progress",
8907
+ "A sign-in is already in progress for this provider."
8908
+ );
8909
+ const lifetime = 5 * 6e4;
8910
+ const attempt = {
8911
+ id: randomUUID8(),
8912
+ owner: new AbortController(),
8913
+ expiresAt: Date.now() + lifetime,
8914
+ status: { state: "pending" }
8915
+ };
8916
+ attempts.set(provider, attempt);
8917
+ const startup = setTimeout(() => attempt.owner.abort(), 2e4).unref();
8918
+ attempt.timer = setTimeout(() => expire(attempt), lifetime).unref();
8919
+ let flow;
8920
+ try {
8921
+ flow = await driver(attempt.owner.signal);
8922
+ attempt.owner.signal.throwIfAborted();
8923
+ } catch {
8924
+ settle(attempt, { state: "failed", reason: "Could not start sign-in. Try again." });
8925
+ throw new SignInError("signin-start-failed", "Could not start sign-in. Try again.");
8926
+ } finally {
8927
+ clearTimeout(startup);
8928
+ }
8929
+ attempt.flow = flow;
8930
+ if (flow.kind === "device-code") void finish(attempt, flow.wait);
8931
+ return {
8932
+ attemptId: attempt.id,
8933
+ kind: flow.kind,
8934
+ url: flow.url,
8935
+ ...flow.kind === "device-code" ? { code: flow.code } : {},
8936
+ expiresAt: attempt.expiresAt
8937
+ };
8938
+ }, "namzu/providers/signin/start"),
8939
+ "namzu/providers/signin/status": /* @__PURE__ */ __name((params) => owned(fields(params, "attemptId")[0]).status, "namzu/providers/signin/status"),
8940
+ "namzu/providers/signin/cancel": /* @__PURE__ */ __name((params) => {
8941
+ const attempt = owned(fields(params, "attemptId")[0]);
8942
+ settle(attempt, { state: "cancelled", reason: "Sign-in was cancelled." });
8943
+ return attempt.status;
8944
+ }, "namzu/providers/signin/cancel"),
8945
+ "namzu/providers/signin/complete": /* @__PURE__ */ __name((params) => {
8946
+ const [id2, code] = fields(params, "attemptId", "code");
8947
+ const attempt = owned(id2);
8948
+ const flow = attempt.flow;
8949
+ if (!code || flow?.kind !== "url" || attempt.completing)
8950
+ throw new SignInError(
8951
+ "signin-code-unavailable",
8952
+ "This sign-in is no longer waiting for a code."
8953
+ );
8954
+ void finish(attempt, () => flow.complete(code));
8955
+ return attempt.status;
8956
+ }, "namzu/providers/signin/complete")
8957
+ };
8958
+ }
8959
+ __name(createProviderSignInMethods, "createProviderSignInMethods");
8960
+
8681
8961
  // src/commands/desktop-host-skills.ts
8682
- import { createHash as createHash5, randomUUID as randomUUID8 } from "node:crypto";
8962
+ import { createHash as createHash6, randomUUID as randomUUID9 } from "node:crypto";
8683
8963
  import { lstatSync as lstatSync6, readFileSync as readFileSync5 } from "node:fs";
8684
8964
  import { basename as basename2, dirname as dirname4, isAbsolute as isAbsolute8 } from "node:path";
8685
8965
  var SKILL_STAGE_TTL_MS = 10 * 60 * 1e3;
@@ -8690,7 +8970,7 @@ var SKILL_PATH_MAX_CHARS = 4096;
8690
8970
  var FINDINGS_MAX2 = 20;
8691
8971
  var LINE_MAX3 = 300;
8692
8972
  var SKILL_MARKDOWN_MAX = 128 * 1024;
8693
- var revisionOf2 = /* @__PURE__ */ __name((markdown) => createHash5("sha256").update(markdown).digest("hex"), "revisionOf");
8973
+ var revisionOf2 = /* @__PURE__ */ __name((markdown) => createHash6("sha256").update(markdown).digest("hex"), "revisionOf");
8694
8974
  var STAGE_CHANGED_MESSAGE = "What it does changed. Read it again.";
8695
8975
  var STAGE_GONE_MESSAGE = "This was shown a while ago. Choose the file again.";
8696
8976
  var SKILL_PAL_MESSAGE = "Pals do not change the host skills.";
@@ -8730,14 +9010,14 @@ function nameList(value, key) {
8730
9010
  __name(nameList, "nameList");
8731
9011
  var errorText = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "errorText");
8732
9012
  function stageDigest(items) {
8733
- const hash = createHash5("sha256");
9013
+ const hash = createHash6("sha256");
8734
9014
  for (const item of items) hash.update(`${item.digest}
8735
9015
  `);
8736
9016
  return hash.digest("hex");
8737
9017
  }
8738
9018
  __name(stageDigest, "stageDigest");
8739
9019
  function itemDigest(prepared) {
8740
- return createHash5("sha256").update(`${prepared.name}\0${digestFiles(prepared.files)}\0${prepared.consent.join("\n")}`).digest("hex");
9020
+ return createHash6("sha256").update(`${prepared.name}\0${digestFiles(prepared.files)}\0${prepared.consent.join("\n")}`).digest("hex");
8741
9021
  }
8742
9022
  __name(itemDigest, "itemDigest");
8743
9023
  function hookNotes(prepared) {
@@ -8786,7 +9066,7 @@ function createDesktopSkillActions(deps) {
8786
9066
  const fail = /* @__PURE__ */ __name((kind2, error) => ({
8787
9067
  item: { ...base, kind: kind2, error: line3(error) },
8788
9068
  staged: {
8789
- digest: createHash5("sha256").update(`error\0${path}\0${error}`).digest("hex")
9069
+ digest: createHash6("sha256").update(`error\0${path}\0${error}`).digest("hex")
8790
9070
  }
8791
9071
  }), "fail");
8792
9072
  if (!isAbsolute8(path) || path.includes("\0") || path.length > SKILL_PATH_MAX_CHARS)
@@ -8870,7 +9150,7 @@ function createDesktopSkillActions(deps) {
8870
9150
  error: "Too much to add at once. Add the rest in a second step."
8871
9151
  },
8872
9152
  staged: {
8873
- digest: createHash5("sha256").update(`over\0${path}`).digest("hex")
9153
+ digest: createHash6("sha256").update(`over\0${path}`).digest("hex")
8874
9154
  }
8875
9155
  };
8876
9156
  });
@@ -8884,7 +9164,7 @@ function createDesktopSkillActions(deps) {
8884
9164
  if (oldest === void 0) break;
8885
9165
  stages.delete(oldest);
8886
9166
  }
8887
- const stageId = randomUUID8();
9167
+ const stageId = randomUUID9();
8888
9168
  const items = results.map((r) => r.staged);
8889
9169
  const expiresAt = now() + SKILL_STAGE_TTL_MS;
8890
9170
  stages.set(stageId, {
@@ -9767,6 +10047,13 @@ function historyWork(records, rows) {
9767
10047
  latest: record2
9768
10048
  });
9769
10049
  }
10050
+ const childSpawns = /* @__PURE__ */ new Map();
10051
+ const childEnds = /* @__PURE__ */ new Map();
10052
+ for (const record2 of records) {
10053
+ if (record2.type === "child_session_spawned")
10054
+ childSpawns.set(`${record2.turnId}:${record2.toolCallId}`, record2);
10055
+ else if (record2.type === "child_session_ended") childEnds.set(record2.childSessionId, record2);
10056
+ }
9770
10057
  const compacted = records.filter((record2) => record2.type === "compaction");
9771
10058
  let presentationBytes = 0;
9772
10059
  const tools = [];
@@ -9801,6 +10088,18 @@ function historyWork(records, rows) {
9801
10088
  if (historyCount(latest.durationMs)) durationMs = latest.durationMs;
9802
10089
  if (latest.skipped === void 0) facts = admitToolFacts(latest.facts);
9803
10090
  }
10091
+ if ((!facts || facts.kind === "delegate") && (call.name === "Agent" || call.name === "create_task")) {
10092
+ const child = childSpawns.get(`${latest.turnId}:${latest.toolUseId}`);
10093
+ if (child) {
10094
+ const status2 = childEnds.get(child.childSessionId)?.status;
10095
+ facts = admitToolFacts({
10096
+ kind: "delegate",
10097
+ childSessionId: child.childSessionId,
10098
+ description: facts?.description ?? child.description.slice(0, 240),
10099
+ childStatus: status2 === "cancelled" ? "canceled" : status2 ?? facts?.childStatus
10100
+ });
10101
+ }
10102
+ }
9804
10103
  if (!presentation) partial = true;
9805
10104
  tools.push({
9806
10105
  turnId: latest.turnId,
@@ -9810,6 +10109,7 @@ function historyWork(records, rows) {
9810
10109
  status,
9811
10110
  ...presentation ? { presentation } : { detailUnavailable: true },
9812
10111
  ...facts ? { facts } : {},
10112
+ ...latest.type === "tool_completed" && latest.toolName === "bash" && latest.outputTruncated ? { outputClipped: true } : {},
9813
10113
  ...durationMs === void 0 ? {} : { durationMs },
9814
10114
  ...call.startedAt === void 0 ? {} : { startedAt: call.startedAt },
9815
10115
  ...latest.type !== "tool_completed" || recordedAt(latest) === void 0 ? {} : { endedAt: recordedAt(latest) }
@@ -9976,6 +10276,24 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
9976
10276
  }, "ownedSessionIn");
9977
10277
  const ownedSession = /* @__PURE__ */ __name((params) => withState((state) => ownedSessionIn(params, state)), "ownedSession");
9978
10278
  const ownedReadSession = /* @__PURE__ */ __name((params) => withReadScope((state) => ownedSessionIn(params, state)), "ownedReadSession");
10279
+ const withAgents = /* @__PURE__ */ __name((params, method, run) => {
10280
+ const fields2 = method === "list" ? ["sessionId"] : method === "stop" ? ["sessionId", "childSessionId"] : ["sessionId", "childSessionId", "cursor"];
10281
+ if (!isEntityId(params.sessionId, "session") || Object.keys(params).some((field3) => !fields2.includes(field3)) || method !== "list" && !isEntityId(params.childSessionId, "session") || params.cursor !== void 0 && (typeof params.cursor !== "number" || !Number.isSafeInteger(params.cursor) || params.cursor < 0)) {
10282
+ throw new Error("Invalid delegated work request.");
10283
+ }
10284
+ return withState(async (state) => {
10285
+ const id2 = await ownedSessionIn(params, state);
10286
+ if (palAtWorkspace(cwd, state.root)) throw new Error("Delegated work is unavailable here.");
10287
+ return run(
10288
+ id2,
10289
+ createSavedAgentHistory({
10290
+ index: state.index,
10291
+ paths: state.paths,
10292
+ session: { sessionId: asSessionId(id2) }
10293
+ })
10294
+ );
10295
+ });
10296
+ }, "withAgents");
9979
10297
  const ownedPal = /* @__PURE__ */ __name((params) => {
9980
10298
  const id2 = text4(params, "palId");
9981
10299
  if (!isTrusted(cwd) || pal()?.id !== id2)
@@ -10318,12 +10636,28 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10318
10636
  afterMs,
10319
10637
  now: Date.now(),
10320
10638
  archive: archiveConversationById,
10321
- refused: refusedIdleArchives
10639
+ refused: refusedIdleArchives,
10640
+ protect: new Set(Array.isArray(params?.protect) ? params.protect : [])
10322
10641
  });
10323
10642
  const kept = archived.length === 0 ? pool : pool.filter((row2) => !archived.includes(row2.id));
10324
10643
  const rows = await conversationRows(state, kept.slice(0, 100));
10325
- if (params?.idleArchivedRows !== true || archived.length === 0) return rows;
10326
- return [...rows, ...archived.map((id2) => ({ id: id2, idleArchived: true }))];
10644
+ const missingDrafts = [];
10645
+ if (Array.isArray(params?.archivedDraftIds)) {
10646
+ for (const id2 of new Set(params.archivedDraftIds.slice(0, 16384))) {
10647
+ if (typeof id2 !== "string" || !isEntityId(id2, "session")) continue;
10648
+ try {
10649
+ await lstat2(state.paths.sessionLog({ sessionId: asSessionId(id2) }));
10650
+ } catch (error) {
10651
+ if (error.code === "ENOENT")
10652
+ missingDrafts.push({ id: id2, archivedDraftMissing: true });
10653
+ }
10654
+ }
10655
+ }
10656
+ return [
10657
+ ...rows,
10658
+ ...params?.idleArchivedRows === true ? archived.map((id2) => ({ id: id2, idleArchived: true })) : [],
10659
+ ...missingDrafts
10660
+ ];
10327
10661
  }), "namzu/conversations/list"),
10328
10662
  /**
10329
10663
  * Full-text search over what a conversation said and did (replies and tool output), through
@@ -10385,6 +10719,75 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10385
10719
  return (await conversationRows(state, [row2]))[0];
10386
10720
  });
10387
10721
  }, "namzu/conversations/unarchive"),
10722
+ "namzu/tools/output": /* @__PURE__ */ __name(async (params) => {
10723
+ if (Object.keys(params).some(
10724
+ (key) => !["sessionId", "turnId", "toolCallId", "byteOffset"].includes(key)
10725
+ ))
10726
+ throw new Error("Invalid output parameters.");
10727
+ const turnId = undoTurnId(params);
10728
+ const toolCallId = text4(params, "toolCallId");
10729
+ if (/[\p{Cc}]/u.test(toolCallId)) throw new Error("Invalid tool call.");
10730
+ const byteOffset = params.byteOffset === void 0 ? 0 : params.byteOffset;
10731
+ if (typeof byteOffset !== "number" || !Number.isSafeInteger(byteOffset) || byteOffset < 0)
10732
+ throw new Error("Invalid byte offset.");
10733
+ return withReadScope(async (state) => {
10734
+ const sessionId = asSessionId(await ownedSessionIn(params, state));
10735
+ const journal = await readConversationRecords(state, sessionId, "tolerant");
10736
+ let tool;
10737
+ for (const record2 of journal?.records ?? []) {
10738
+ if (record2.type === "tool_completed" && record2.turnId === turnId && record2.toolUseId === toolCallId && record2.toolName === "bash")
10739
+ tool = record2;
10740
+ }
10741
+ const expired = {
10742
+ text: "",
10743
+ totalBytes: 0,
10744
+ nextByteOffset: null,
10745
+ completeness: "expired"
10746
+ };
10747
+ if (!tool || tool.skipped) return expired;
10748
+ const source = createSessionTextEvidenceSource({
10749
+ scope: { sessionId, turnId, tenantId: state.tenantId, projectId: state.projectId },
10750
+ logPath: conversationLogPath(state, sessionId),
10751
+ consistency: "snapshot"
10752
+ });
10753
+ try {
10754
+ const query = { seq: tool.seq, part: 0, limit: 1 };
10755
+ let batch = await source.search(query);
10756
+ while (!batch.matches.length && batch.nextCursor) {
10757
+ if (!batch.cacheHit && batch.indexedRecords === 0) return expired;
10758
+ batch = await source.search({ ...query, cursor: batch.nextCursor });
10759
+ }
10760
+ const match = batch.matches[0];
10761
+ if (!match) return expired;
10762
+ let next = byteOffset;
10763
+ let text5 = "";
10764
+ let bytes = 0;
10765
+ let totalBytes = 0;
10766
+ let partial = /truncated by the sandbox output cap|host output cap|maxBuffer length exceeded/i.test(
10767
+ tool.result
10768
+ );
10769
+ while (next !== null && bytes < 64 * 1024) {
10770
+ const page = await source.read({ address: match.address, byteOffset: next });
10771
+ const size2 = Buffer.byteLength(page.text);
10772
+ if (bytes + size2 > 64 * 1024) break;
10773
+ text5 += page.text;
10774
+ bytes += size2;
10775
+ next = page.nextByteOffset;
10776
+ totalBytes = page.totalBytes;
10777
+ partial ||= page.retained === "preview" || tool.facts?.kind === "command" && tool.facts.background === true;
10778
+ }
10779
+ return {
10780
+ text: text5,
10781
+ nextByteOffset: next,
10782
+ totalBytes,
10783
+ completeness: partial ? "partial" : "full"
10784
+ };
10785
+ } catch (error) {
10786
+ if (error instanceof SessionEvidenceOffsetError) throw error;
10787
+ return expired;
10788
+ }
10789
+ });
10790
+ }, "namzu/tools/output"),
10388
10791
  "namzu/conversations/history": /* @__PURE__ */ __name(async (params) => {
10389
10792
  return withReadScope(async (state) => {
10390
10793
  const id2 = await ownedSessionIn(params, state);
@@ -10393,6 +10796,8 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10393
10796
  const messages = snapshot.messages;
10394
10797
  const cancelled = ownedPal2 ? cancelledPalReplies(snapshot.records) : void 0;
10395
10798
  const messageTime = recordedMessageTimes(snapshot.records);
10799
+ const includeForkPositions = !ownedPal2 && params.includeForkPositions === true;
10800
+ let userOrdinal = -1;
10396
10801
  const shown = messages.flatMap((message) => {
10397
10802
  if (message.role === "assistant") {
10398
10803
  if (!ownedPal2) {
@@ -10419,9 +10824,16 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10419
10824
  }
10420
10825
  ];
10421
10826
  }
10827
+ if (message.role === "user") userOrdinal += 1;
10422
10828
  return message.role === "user" && (!message.source || message.source.type === "runtime-context" && message.source.kind === "steering") ? [
10423
10829
  {
10830
+ // Fork seeds have no journal message ids. Use a stable display identity
10831
+ // for their prompt actions, while keeping journal anchors separate.
10424
10832
  messageId: message.id,
10833
+ ...!ownedPal2 && !message.id ? {
10834
+ displayId: `summary:${userOrdinal}:${createHash7("sha256").update(message.content).digest("hex")}`
10835
+ } : {},
10836
+ ...includeForkPositions ? { userOrdinal } : {},
10425
10837
  role: message.role,
10426
10838
  content: message.content,
10427
10839
  ...messageTime(message.id, message.role) ? { time: messageTime(message.id, message.role) } : {}
@@ -10469,9 +10881,10 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10469
10881
  role: message.role
10470
10882
  });
10471
10883
  rows.unshift({
10472
- ...historyId(message.messageId) ? { messageId: message.messageId } : {},
10884
+ ...historyId(message.messageId ?? message.displayId) ? { messageId: message.messageId ?? message.displayId } : {},
10473
10885
  role: message.role,
10474
10886
  text: value,
10887
+ ...message.userOrdinal !== void 0 ? { userOrdinal: message.userOrdinal } : {},
10475
10888
  ...message.phase ? { phase: message.phase } : {},
10476
10889
  ...message.time ? { time: message.time } : {},
10477
10890
  ...message.stopReason ? { stopReason: message.stopReason } : {}
@@ -10537,7 +10950,13 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10537
10950
  }, "namzu/side-chat/cancel")
10538
10951
  } : {},
10539
10952
  "namzu/conversations/fork": /* @__PURE__ */ __name(async (params) => {
10540
- if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).some((key) => key !== "sessionId"))
10953
+ if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).some(
10954
+ (key) => !["sessionId", "userOrdinal", "expectedText"].includes(key)
10955
+ ))
10956
+ throw new Error("Invalid conversation fork request.");
10957
+ const { userOrdinal, expectedText } = params;
10958
+ const before = "userOrdinal" in params || "expectedText" in params;
10959
+ if (before && (typeof userOrdinal !== "number" || !Number.isSafeInteger(userOrdinal) || userOrdinal < 0 || typeof expectedText !== "string"))
10541
10960
  throw new Error("Invalid conversation fork request.");
10542
10961
  return withState(async (state) => {
10543
10962
  const id2 = asSessionId(await ownedSessionIn(params, state));
@@ -10545,6 +10964,15 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10545
10964
  const facts = await readConversationFacts(state, id2);
10546
10965
  if (facts?.activeTurn)
10547
10966
  throw new Error("Wait for the current reply to finish before forking this conversation.");
10967
+ if (typeof userOrdinal === "number") {
10968
+ const messages = await loadConversation(state, id2);
10969
+ const selected = messages.filter((message) => message.role === "user")[userOrdinal];
10970
+ if (!selected)
10971
+ throw new Error("The selected user message no longer exists in this conversation.");
10972
+ if (selected.content !== expectedText) throw new Error(FORK_PROMPT_CHANGED);
10973
+ const fork2 = await forkConversationBeforeUser(state, id2, userOrdinal, selected);
10974
+ return { id: fork2.id, title: fork2.title, replied: hasReply(fork2.messages) };
10975
+ }
10548
10976
  const fork = await forkConversation(state, id2);
10549
10977
  return { id: fork.id, title: fork.title };
10550
10978
  });
@@ -10635,7 +11063,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10635
11063
  "namzu/skills/list": /* @__PURE__ */ __name(async (params = {}) => {
10636
11064
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
10637
11065
  throw new Error("Invalid skills request.");
10638
- const { listInstalledSkills } = await import("./installed-list-R4CXRNQH.js");
11066
+ const { listInstalledSkills } = await import("./installed-list-K2ZSS57L.js");
10639
11067
  return { skills: listInstalledSkills({ cwd, includeProject: isTrusted(cwd) && !pal() }) };
10640
11068
  }, "namzu/skills/list"),
10641
11069
  /** Every skill with what the Customize page shows of it: state, place, time, use. Reads files, runs nothing. */
@@ -10714,7 +11142,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10714
11142
  "namzu/hooks/list": /* @__PURE__ */ __name(async (params = {}) => {
10715
11143
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
10716
11144
  throw new Error("Invalid hooks request.");
10717
- const { describeFolderHooks } = await import("./hooks-report-IJHIRMU4.js");
11145
+ const { describeFolderHooks } = await import("./hooks-report-BTODJHGA.js");
10718
11146
  return describeFolderHooks({ cwd, trusted: isTrusted(cwd) });
10719
11147
  }, "namzu/hooks/list"),
10720
11148
  /** Approves servers `.mcp.json` declared, as they were listed, the way `namzu mcp approve` does. */
@@ -10844,6 +11272,7 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10844
11272
  await runtime.selectAuto(await ownedSession(params));
10845
11273
  return { selected: true };
10846
11274
  }, "namzu/providers/select_auto"),
11275
+ ...pal() ? {} : createProviderSignInMethods(),
10847
11276
  "namzu/providers/connections": /* @__PURE__ */ __name(() => runtime.providerConnections(), "namzu/providers/connections"),
10848
11277
  "namzu/providers/save_key": /* @__PURE__ */ __name(async (params) => {
10849
11278
  if (Object.keys(params).some((key) => !["provider", "apiKey"].includes(key)))
@@ -10912,12 +11341,12 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10912
11341
  if (Object.keys(params).some((key) => !["sessionId", "requestId", "answer"].includes(key)))
10913
11342
  throw new Error("Answering a question accepts only sessionId, requestId and answer.");
10914
11343
  const sessionId = await ownedSession(params);
10915
- runtime.answerQuestion(
11344
+ const result = await runtime.answerQuestion?.(
10916
11345
  sessionId,
10917
11346
  text4(params, "requestId"),
10918
11347
  params.answer
10919
11348
  );
10920
- return { answered: true };
11349
+ return { answered: true, ...result };
10921
11350
  }
10922
11351
  } : {},
10923
11352
  /** The person took a browser's click-and-type yes back; the engine asks again. */
@@ -10932,6 +11361,61 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
10932
11361
  };
10933
11362
  }, "namzu/session/revoke-browser")
10934
11363
  } : {},
11364
+ "namzu/agents/list": /* @__PURE__ */ __name((params) => withAgents(params, "list", async (id2, history) => {
11365
+ const saved = await history.list();
11366
+ const live = runtime.liveAgents?.(id2) ?? [];
11367
+ return {
11368
+ ...saved,
11369
+ live: live.flatMap(
11370
+ (child) => child.sessionId || child.toolUseId ? [
11371
+ {
11372
+ sessionId: child.sessionId,
11373
+ toolUseId: child.toolUseId,
11374
+ status: child.status,
11375
+ running: child.completedAt === void 0,
11376
+ activity: child.latestActivity?.slice(0, 240)
11377
+ }
11378
+ ] : []
11379
+ ),
11380
+ agents: saved.agents.map((child) => ({
11381
+ ...child,
11382
+ status: live.find((row2) => row2.sessionId === child.sessionId)?.status ?? child.status
11383
+ }))
11384
+ };
11385
+ }), "namzu/agents/list"),
11386
+ "namzu/agents/read": /* @__PURE__ */ __name((params) => withAgents(params, "read", async (id2, history) => {
11387
+ const child = asSessionId(text4(params, "childSessionId"));
11388
+ const { messages, records } = await history.transcript(child);
11389
+ const messageTime = recordedMessageTimes(records);
11390
+ const display = messages.flatMap((message) => {
11391
+ if (message.role !== "assistant" && (message.role !== "user" || message.source && (message.source.type !== "runtime-context" || message.source.kind !== "steering")) || message.role === "assistant" && message.content === null && message.toolCalls?.length)
11392
+ return [];
11393
+ const phase = message.role === "assistant" ? storedAssistantPhase(message) : void 0;
11394
+ const time = messageTime(message.id, message.role);
11395
+ return [
11396
+ {
11397
+ role: message.role,
11398
+ text: typeof message.content === "string" ? message.content.slice(0, 4e3) : "[Media message]",
11399
+ messageId: message.id,
11400
+ ...phase ? { phase } : {},
11401
+ ...time ? { time } : {}
11402
+ }
11403
+ ];
11404
+ });
11405
+ const start = params.cursor ?? 0;
11406
+ const rows = display.slice(start, start + 50);
11407
+ const end = start + rows.length;
11408
+ const live = runtime.liveAgents?.(id2)?.find((row2) => row2.sessionId === child);
11409
+ return {
11410
+ messages: rows,
11411
+ work: historyWork(records, rows),
11412
+ running: live !== void 0 && live.completedAt === void 0,
11413
+ ...end < display.length ? { nextCursor: end } : {}
11414
+ };
11415
+ }), "namzu/agents/read"),
11416
+ "namzu/agents/stop": /* @__PURE__ */ __name((params) => withAgents(params, "stop", async (id2) => ({
11417
+ stopped: runtime.stopAgent?.(id2, text4(params, "childSessionId")) ?? false
11418
+ })), "namzu/agents/stop"),
10935
11419
  "namzu/jobs/list": /* @__PURE__ */ __name(async (params) => runtime.jobs(await ownedReadSession(params)), "namzu/jobs/list"),
10936
11420
  "namzu/jobs/read": /* @__PURE__ */ __name(async (params) => runtime.readJob(await ownedReadSession(params), text4(params, "jobId")), "namzu/jobs/read"),
10937
11421
  "namzu/jobs/stop": /* @__PURE__ */ __name(async (params) => runtime.stopJob(await ownedSession(params), text4(params, "jobId")), "namzu/jobs/stop")
@@ -11407,7 +11891,7 @@ var LivePromptInbox = class {
11407
11891
  static {
11408
11892
  __name(this, "LivePromptInbox");
11409
11893
  }
11410
- scopeId = randomUUID9();
11894
+ scopeId = randomUUID10();
11411
11895
  entries = /* @__PURE__ */ new Map();
11412
11896
  waiters = /* @__PURE__ */ new Set();
11413
11897
  chars = 0;
@@ -11544,6 +12028,34 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
11544
12028
  );
11545
12029
  return onQuestion ? { onQuestion } : {};
11546
12030
  }, "onQuestionOf");
12031
+ const offersPlanApproval = /* @__PURE__ */ __name(() => questionRelay !== void 0 && runtimeOptions.clientOffers?.(PLAN_APPROVAL_CAPABILITY) === true, "offersPlanApproval");
12032
+ const applyPermissionMode = /* @__PURE__ */ __name(async (record2, turn, mode) => {
12033
+ assertModeAllowed(record2, mode);
12034
+ turn.mode = mode;
12035
+ await record2.session.setPermissionMode?.(mode);
12036
+ }, "applyPermissionMode");
12037
+ const planOptionsOf = /* @__PURE__ */ __name((sessionId, record2, signal) => {
12038
+ const relay = questionRelay;
12039
+ if (!relay || !offersPlanApproval() || record2.ownedPal) return {};
12040
+ const bypassAvailable = /* @__PURE__ */ __name(() => bypassOptedIn(record2.permissionSettings) && !launchRefusal("bypass", { settings: record2.permissionSettings }), "bypassAvailable");
12041
+ const onPlanExit = /* @__PURE__ */ __name((request, callerSignal) => {
12042
+ const turn = record2.liveMode;
12043
+ if (!turn || turn.mode !== "plan") return Promise.resolve({ kind: "keep-planning" });
12044
+ return relay.planApproval(sessionId, signal, async (mode) => {
12045
+ if (record2.liveMode !== turn || turn.mode !== "plan")
12046
+ throw new Error("This conversation is no longer planning.");
12047
+ await applyPermissionMode(record2, turn, mode);
12048
+ })(
12049
+ {
12050
+ ...request,
12051
+ bypassAvailable: bypassAvailable(),
12052
+ autoAvailable: record2.session.autoMode?.available === true && !launchRefusal("classify", { settings: record2.permissionSettings })
12053
+ },
12054
+ callerSignal
12055
+ );
12056
+ }, "onPlanExit");
12057
+ return { onPlanExit, bypassAvailable };
12058
+ }, "planOptionsOf");
11547
12059
  const titleFeed = runtimeOptions.announce ? createTitleFeed({
11548
12060
  notify: runtimeOptions.announce,
11549
12061
  sideModel: /* @__PURE__ */ __name((id2) => records.get(id2)?.session.sideModel, "sideModel"),
@@ -11783,6 +12295,7 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
11783
12295
  // question tool, its guidance and a tool server's request for input: none of what the
11784
12296
  // terminal's "somebody is typing" brings with it.
11785
12297
  ...questionRelay && !palEnvironment ? { questions: true } : {},
12298
+ ...!palEnvironment && offersPlanApproval() ? { planApproval: true } : {},
11786
12299
  // The desktop can save a skill the model drafted: the same tool the terminal has, its
11787
12300
  // confirmation drawn as a card by the app. Never answered by a permission mode. The
11788
12301
  // model may also propose a job that runs later; the app draws the whole job on a card
@@ -11861,6 +12374,12 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
11861
12374
  // Computer use, browser windows and image generation, from the host's descriptor and
11862
12375
  // read live, so a change in Settings applies on the next turn.
11863
12376
  ...capabilityOptionsFromConfig(projectCtx.config, host, liveConfig),
12377
+ ...host === HOSTS.acpDesktop && runtimeOptions.announce ? {
12378
+ onComputerBackend: /* @__PURE__ */ __name((sessionId2, notice) => runtimeOptions.announce?.(COMPUTER_BACKEND_NOTIFICATION, {
12379
+ sessionId: sessionId2,
12380
+ ...notice
12381
+ }), "onComputerBackend")
12382
+ } : {},
11864
12383
  ...host === HOSTS.acpDesktop && runtimeOptions.observeComputer ? {
11865
12384
  onComputerObservation: /* @__PURE__ */ __name((seen) => runtimeOptions.observeComputer?.(sessionId, seen), "onComputerObservation")
11866
12385
  } : {},
@@ -12164,6 +12683,7 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
12164
12683
  // The screen question is the person's yes on its own card, never a standing one;
12165
12684
  // every other question goes to the app as a card of its own.
12166
12685
  ...onQuestionOf(sessionId, ask, signal),
12686
+ ...planOptionsOf(sessionId, record2, signal),
12167
12687
  ...monitorSnapshot.text ? { hostContext: /* @__PURE__ */ __name(() => [monitorSnapshot.text], "hostContext") } : {},
12168
12688
  ...inputInbox ? {
12169
12689
  inboundMessages: /* @__PURE__ */ __name(() => {
@@ -12189,7 +12709,11 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
12189
12709
  stopReason = signal.aborted ? "cancelled" : "error";
12190
12710
  if (event.kind === "error" && !signal.aborted) failureMessage = event.message;
12191
12711
  if (event.kind === "paused") {
12192
- record2.retrySettings = { ...original, turnId: event.turnId };
12712
+ record2.retrySettings = {
12713
+ ...original,
12714
+ turnId: event.turnId,
12715
+ settings: { ...settings, permissionMode: turn.mode }
12716
+ };
12193
12717
  const browser = record2.session.browser;
12194
12718
  if (event.handoff && browser?.status().headless && browser.status().where !== "pane")
12195
12719
  void browser.release().catch(() => {
@@ -12270,7 +12794,13 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
12270
12794
  }
12271
12795
  }, "routedEvent");
12272
12796
  record2.route = routedEvent;
12273
- if (!handoff) retriedOn.set(turnId, { provider: record2.provider, model: record2.model });
12797
+ const turn = { mode: settings.permissionMode };
12798
+ record2.liveMode = turn;
12799
+ if (!handoff)
12800
+ retriedOn.set(turnId, {
12801
+ provider: record2.provider,
12802
+ model: record2.model
12803
+ });
12274
12804
  try {
12275
12805
  let stopReason;
12276
12806
  let failureMessage;
@@ -12283,6 +12813,7 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
12283
12813
  ...note2 ? { systemNote: note2 } : {},
12284
12814
  signal,
12285
12815
  permissionMode: settings.permissionMode,
12816
+ currentPermissionMode: /* @__PURE__ */ __name(() => turn.mode, "currentPermissionMode"),
12286
12817
  ...record2.ownedPal ? { assertExecutionAllowed: /* @__PURE__ */ __name(() => assertRetryComputer(record2, original), "assertExecutionAllowed") } : {},
12287
12818
  model: {
12288
12819
  provider: record2.provider,
@@ -12291,6 +12822,7 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
12291
12822
  ...settings.effort ? { effort: settings.effort } : {}
12292
12823
  },
12293
12824
  ...onQuestionOf(sessionId, ask, signal),
12825
+ ...planOptionsOf(sessionId, record2, signal),
12294
12826
  onPermission: /* @__PURE__ */ __name(async (request) => {
12295
12827
  const teammate = record2.session.teammateAsking?.(request);
12296
12828
  const outcome = await ask({
@@ -12314,7 +12846,11 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
12314
12846
  if (event.kind === "done") stopReason = event.stopReason;
12315
12847
  if (event.kind === "paused") {
12316
12848
  stopReason = "paused";
12317
- record2.retrySettings = { ...original, turnId: event.turnId, settings };
12849
+ record2.retrySettings = {
12850
+ ...original,
12851
+ turnId: event.turnId,
12852
+ settings: { ...settings, permissionMode: turn.mode }
12853
+ };
12318
12854
  }
12319
12855
  if (event.kind === "error") {
12320
12856
  stopReason = "error";
@@ -12329,6 +12865,7 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
12329
12865
  };
12330
12866
  } finally {
12331
12867
  if (record2.route === routedEvent) record2.route = void 0;
12868
+ if (record2.liveMode === turn) record2.liveMode = void 0;
12332
12869
  }
12333
12870
  }, "retry")
12334
12871
  };
@@ -12499,8 +13036,9 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
12499
13036
  if (closed) throw new Error("The connection is closed.");
12500
13037
  if (!questionRelay || !records.has(sessionId))
12501
13038
  throw new Error("This question is no longer open.");
12502
- if (!questionRelay.answer(sessionId, requestId, answer))
12503
- throw new Error("This question is no longer open.");
13039
+ const result = questionRelay.answer(sessionId, requestId, answer);
13040
+ if (!result) throw new Error("This question is no longer open.");
13041
+ return result === true ? void 0 : result;
12504
13042
  }, "answerQuestion"),
12505
13043
  revokeBrowserGrant: /* @__PURE__ */ __name((sessionId, app) => {
12506
13044
  if (closed) throw new Error("The connection is closed.");
@@ -12513,8 +13051,7 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
12513
13051
  assertModeAllowed(record2, mode);
12514
13052
  const turn = record2.liveMode;
12515
13053
  if (!turn) return { mode, applied: "next-message" };
12516
- turn.mode = mode;
12517
- await record2.session.setPermissionMode?.(mode);
13054
+ await applyPermissionMode(record2, turn, mode);
12518
13055
  return { mode, applied: "now" };
12519
13056
  }, "setPermissionMode"),
12520
13057
  liveInputStatus: /* @__PURE__ */ __name(async (sessionId, scopeId, scope) => {
@@ -13013,6 +13550,12 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
13013
13550
  gathering
13014
13551
  });
13015
13552
  }, "contextUsage"),
13553
+ liveAgents: /* @__PURE__ */ __name((sessionId) => records.get(sessionId)?.session.subagents?.getSnapshot().filter((child) => !child.replayed) ?? [], "liveAgents"),
13554
+ stopAgent: /* @__PURE__ */ __name((sessionId, childSessionId) => {
13555
+ const session2 = records.get(sessionId)?.session;
13556
+ const child = session2?.subagents?.getSnapshot().find((child2) => !child2.replayed && child2.sessionId === childSessionId);
13557
+ return child ? session2?.stopSubagent?.(child.viewId) ?? false : false;
13558
+ }, "stopAgent"),
13016
13559
  jobs: /* @__PURE__ */ __name((sessionId) => records.get(sessionId)?.session.jobs?.() ?? [], "jobs"),
13017
13560
  readJob: /* @__PURE__ */ __name((sessionId, jobId) => {
13018
13561
  const session2 = records.get(sessionId)?.session;
@@ -13107,8 +13650,8 @@ function desktopServerExtensions(runtime, cwd, server, palInboxStart, terminals,
13107
13650
  __name(desktopServerExtensions, "desktopServerExtensions");
13108
13651
  async function mountScheduleTool(input) {
13109
13652
  const [{ buildDesktopScheduleTools }, { sourceConversationBinding: bind }] = await Promise.all([
13110
- import("./desktop-host-schedule-tool-PWWNV4SP.js"),
13111
- import("./source-deliveries-47YDJTC5.js")
13653
+ import("./desktop-host-schedule-tool-JW7DAM3K.js"),
13654
+ import("./source-deliveries-ETVRGF37.js")
13112
13655
  ]);
13113
13656
  return buildDesktopScheduleTools({
13114
13657
  relay: input.relay,
@@ -13146,6 +13689,7 @@ async function runAcpCommand(ctx, desktop = false, env = process.env) {
13146
13689
  `);
13147
13690
  return 1;
13148
13691
  }
13692
+ const startExtensions = desktop && env.NAMZU_DESKTOP_SAFE_START !== "1";
13149
13693
  const transport = new ServerStdioTransport();
13150
13694
  let announcingUsage = true;
13151
13695
  const announce = /* @__PURE__ */ __name((method, params) => {
@@ -13242,14 +13786,14 @@ async function runAcpCommand(ctx, desktop = false, env = process.env) {
13242
13786
  palInboxStart,
13243
13787
  terminals,
13244
13788
  limitsFeed,
13245
- void 0,
13789
+ startExtensions ? void 0 : {},
13246
13790
  paneLink,
13247
13791
  announce
13248
13792
  )
13249
13793
  } : {}
13250
13794
  });
13251
13795
  await server.start();
13252
- if (desktop) {
13796
+ if (startExtensions) {
13253
13797
  startDesktopExtensions((method, params) => {
13254
13798
  if (announcing) void transport.send({ jsonrpc: "2.0", method, params });
13255
13799
  });
@@ -13272,7 +13816,7 @@ async function runAcpCommand(ctx, desktop = false, env = process.env) {
13272
13816
  paneLink?.close("The app closed its connection to this engine.");
13273
13817
  usageFeed?.close();
13274
13818
  try {
13275
- if (desktop) await stopDesktopExtensions();
13819
+ if (startExtensions) await stopDesktopExtensions();
13276
13820
  await terminals?.close();
13277
13821
  await palInboxStart?.close();
13278
13822
  } finally {
@@ -13313,4 +13857,4 @@ export {
13313
13857
  resolveAcpSession,
13314
13858
  runAcpCommand
13315
13859
  };
13316
- //# sourceMappingURL=acp-MURBIENR.js.map
13860
+ //# sourceMappingURL=acp-5DUA4NPH.js.map