@namzu/cli 45.12.2 → 45.13.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 (305) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-MEXVPVAC.js → acp-J4IZIQWG.js} +47 -47
  4. package/dist/chunks/{activity-command-XIJSCFX2.js → activity-command-WIR3M62U.js} +13 -13
  5. package/dist/chunks/{add-2Y2E2IES.js → add-Y6KPS6CS.js} +19 -19
  6. package/dist/chunks/{agent-GRVNRFBO.js → agent-AA474WOD.js} +37 -37
  7. package/dist/chunks/agent-session-DNLTXD2O.js +71 -0
  8. package/dist/chunks/{archive-3T527NSJ.js → archive-4MGYPLQH.js} +11 -11
  9. package/dist/chunks/{bin-main-EVFEBOIR.js → bin-main-NV24HESC.js} +7 -7
  10. package/dist/chunks/{binding-V2K43M7X.js → binding-BG2CMH3P.js} +3 -3
  11. package/dist/chunks/{browser-7YEDQ6BR.js → browser-DW7JKMX5.js} +6 -6
  12. package/dist/chunks/{chat-NC37EXYB.js → chat-PEUUZMG5.js} +16 -16
  13. package/dist/chunks/{chunk-MTJITGLV.js → chunk-254GWXK4.js} +3 -3
  14. package/dist/chunks/{chunk-X3VO64UI.js → chunk-27H74FWU.js} +3 -3
  15. package/dist/chunks/{chunk-LPIUKGJ5.js → chunk-2FMAMLA6.js} +160 -14
  16. package/dist/chunks/{chunk-LPIUKGJ5.js.map → chunk-2FMAMLA6.js.map} +2 -2
  17. package/dist/chunks/{chunk-H7V4MEE5.js → chunk-3JP6N64M.js} +3 -3
  18. package/dist/chunks/{chunk-TJADQKBW.js → chunk-4GIE5IWR.js} +6 -6
  19. package/dist/chunks/{chunk-UGZBRT5X.js → chunk-5EID532B.js} +3 -3
  20. package/dist/chunks/{chunk-M2YJ4XG7.js → chunk-5JLERCSL.js} +12 -12
  21. package/dist/chunks/{chunk-KG254R2U.js → chunk-6DMSTACL.js} +2 -2
  22. package/dist/chunks/{chunk-IQ232XTD.js → chunk-7PWQAIED.js} +2 -2
  23. package/dist/chunks/{chunk-VTXQOFAL.js → chunk-7UMDSVTC.js} +3 -3
  24. package/dist/chunks/{chunk-BU6XSI2I.js → chunk-7WTJTXZH.js} +2 -2
  25. package/dist/chunks/{chunk-DTCRIEFV.js → chunk-AKBOGIYT.js} +3 -3
  26. package/dist/chunks/{chunk-QYV4RDDK.js → chunk-B3LPAFLK.js} +4 -4
  27. package/dist/chunks/{chunk-AX3XQUGW.js → chunk-B5UX6EXN.js} +2 -2
  28. package/dist/chunks/{chunk-MCZIP44M.js → chunk-BGDDICSF.js} +5 -5
  29. package/dist/chunks/{chunk-IMQE5QKI.js → chunk-BS6FOXOJ.js} +4 -4
  30. package/dist/chunks/{chunk-2CEK7O4K.js → chunk-BY6CYQHX.js} +3 -3
  31. package/dist/chunks/{chunk-KIGGORKT.js → chunk-CB7Z6IIB.js} +4 -4
  32. package/dist/chunks/{chunk-GXKKTDUY.js → chunk-CWSFF2SL.js} +3 -3
  33. package/dist/chunks/{chunk-DUOM75LH.js → chunk-D4WT2YSJ.js} +2 -2
  34. package/dist/chunks/{chunk-B23P42CN.js → chunk-D56OQGID.js} +2 -2
  35. package/dist/chunks/{chunk-2J3CFOTK.js → chunk-DUTPJ2SO.js} +2 -2
  36. package/dist/chunks/{chunk-Z7HIMFBX.js → chunk-DXMEBNFO.js} +2 -2
  37. package/dist/chunks/{chunk-BO4SWS4X.js → chunk-E3KFGGJE.js} +6 -6
  38. package/dist/chunks/{chunk-WAEKUITP.js → chunk-EFB45I7C.js} +4 -4
  39. package/dist/chunks/{chunk-IFJXMHZW.js → chunk-EJDGKLLI.js} +2 -2
  40. package/dist/chunks/{chunk-4RCHCWSY.js → chunk-FB3S5MRG.js} +2 -2
  41. package/dist/chunks/{chunk-VHKSISNJ.js → chunk-G2EMBDMV.js} +5 -5
  42. package/dist/chunks/{chunk-WUUSAGRP.js → chunk-G72BPPTI.js} +2 -2
  43. package/dist/chunks/{chunk-AXFOGCTW.js → chunk-GZYBAXZV.js} +4 -4
  44. package/dist/chunks/{chunk-3HZB5HLI.js → chunk-HB6IQWVB.js} +3 -3
  45. package/dist/chunks/{chunk-6GHM2I3V.js → chunk-HNYRA7Y4.js} +6 -6
  46. package/dist/chunks/{chunk-4PKIOJWB.js → chunk-IEVJDIWE.js} +3 -3
  47. package/dist/chunks/{chunk-XPKUTEXE.js → chunk-IJAF2A2V.js} +183 -81
  48. package/dist/chunks/chunk-IJAF2A2V.js.map +6 -0
  49. package/dist/chunks/{chunk-Z2DEZ77K.js → chunk-IYUXWM2C.js} +2 -2
  50. package/dist/chunks/{chunk-5HI2QNR7.js → chunk-J3TKLLHH.js} +2 -2
  51. package/dist/chunks/{chunk-YGW2RUDC.js → chunk-JX6SB3NQ.js} +3 -3
  52. package/dist/chunks/{chunk-Q2GHAHRT.js → chunk-K3YJM2A6.js} +10 -10
  53. package/dist/chunks/{chunk-GEMTMJCC.js → chunk-KDCQ4VNQ.js} +8 -8
  54. package/dist/chunks/{chunk-O7O4IP4S.js → chunk-L2A4QFEG.js} +3 -3
  55. package/dist/chunks/{chunk-2EE5PKXH.js → chunk-LMYSP45O.js} +4 -4
  56. package/dist/chunks/{chunk-IS2GBRK2.js → chunk-LPV7K6CD.js} +2 -2
  57. package/dist/chunks/{chunk-NTOAY6OF.js → chunk-LTJPPUPC.js} +11 -11
  58. package/dist/chunks/{chunk-WYIMXVN6.js → chunk-LTY7BFI5.js} +2 -2
  59. package/dist/chunks/{chunk-ATA5EP6S.js → chunk-LVRVFBEG.js} +4 -4
  60. package/dist/chunks/{chunk-SYZ4ZKFZ.js → chunk-M5ZSNRGP.js} +6 -6
  61. package/dist/chunks/{chunk-5HKXRQWG.js → chunk-MECNGLVG.js} +7 -7
  62. package/dist/chunks/{chunk-SCV5ZD5H.js → chunk-MF3PRMES.js} +4 -4
  63. package/dist/chunks/chunk-MF3PRMES.js.map +6 -0
  64. package/dist/chunks/{chunk-DP3U5NBJ.js → chunk-MIO5YUYN.js} +3 -3
  65. package/dist/chunks/{chunk-RFUFAQSN.js → chunk-NFC24QAK.js} +5 -5
  66. package/dist/chunks/{chunk-3PPJTRPU.js → chunk-NKZYGRV7.js} +2 -2
  67. package/dist/chunks/{chunk-NF6PO2KX.js → chunk-NRMZ5MTH.js} +2 -2
  68. package/dist/chunks/{chunk-XA5X2QK3.js → chunk-NSTYXLBX.js} +4 -4
  69. package/dist/chunks/{chunk-LYR56WMM.js → chunk-OCCV2WSV.js} +13 -13
  70. package/dist/chunks/{chunk-A7QCYA7S.js → chunk-OE4P5MBD.js} +3 -3
  71. package/dist/chunks/{chunk-KBD4T5O7.js → chunk-OP6VX35U.js} +12 -12
  72. package/dist/chunks/{chunk-5HPOKUTB.js → chunk-P3QMGMHN.js} +33 -33
  73. package/dist/chunks/{chunk-C5VB6EQW.js → chunk-PAVRYBQN.js} +3 -3
  74. package/dist/chunks/{chunk-3X4TYZYQ.js → chunk-PMLNAH25.js} +3 -3
  75. package/dist/chunks/{chunk-FB6CSITS.js → chunk-QEKOEOHJ.js} +2 -2
  76. package/dist/chunks/{chunk-UWPQHMIP.js → chunk-QHS2U4NN.js} +4 -4
  77. package/dist/chunks/{chunk-TGVCELXX.js → chunk-QMQL74PK.js} +2 -2
  78. package/dist/chunks/{chunk-ECOEL6JM.js → chunk-QSLIFWSL.js} +2 -2
  79. package/dist/chunks/{chunk-3QLYQ46N.js → chunk-RJVEVHZB.js} +2 -2
  80. package/dist/chunks/{chunk-XCCOM7G2.js → chunk-RNNTPUQU.js} +9 -9
  81. package/dist/chunks/{chunk-XA2XF33K.js → chunk-RTJA25RC.js} +2 -2
  82. package/dist/chunks/{chunk-UYAIZ4KA.js → chunk-S7APLRCX.js} +3 -3
  83. package/dist/chunks/{chunk-QA4IQRFM.js → chunk-SB2WDPYY.js} +2 -2
  84. package/dist/chunks/{chunk-CLZBMDJO.js → chunk-TKRQLL3F.js} +6 -6
  85. package/dist/chunks/{chunk-LGKA74MZ.js → chunk-TYOHF23M.js} +2 -2
  86. package/dist/chunks/{chunk-4EYMVZVR.js → chunk-U2CKMM6L.js} +3 -3
  87. package/dist/chunks/{chunk-RTEPHRJB.js → chunk-V4OJLUSN.js} +9 -9
  88. package/dist/chunks/{chunk-7TYO6U3X.js → chunk-V7IBTSCB.js} +4 -4
  89. package/dist/chunks/{chunk-XLCIURWR.js → chunk-VT2JA366.js} +2 -2
  90. package/dist/chunks/{chunk-DLBNYXXC.js → chunk-VXCGRIBU.js} +3 -3
  91. package/dist/chunks/{chunk-7J724LVV.js → chunk-WKPGFS4M.js} +2 -2
  92. package/dist/chunks/{chunk-NVU5Q75Z.js → chunk-X3OBHENI.js} +2 -2
  93. package/dist/chunks/{chunk-JXLIHF36.js → chunk-XKQMN5F6.js} +2 -2
  94. package/dist/chunks/{chunk-5FKGEZVS.js → chunk-XMOV5PMX.js} +2 -2
  95. package/dist/chunks/{chunk-KWOEPDOC.js → chunk-YUG4WMFT.js} +2 -2
  96. package/dist/chunks/{chunk-TPRFCADC.js → chunk-Z33RQI5X.js} +5 -5
  97. package/dist/chunks/{cli-runtime-6X42NV5R.js → cli-runtime-Y6RCXLVR.js} +10 -10
  98. package/dist/chunks/{commands-GMLGVYXW.js → commands-4OFJVDGG.js} +5 -5
  99. package/dist/chunks/{crash-report-WRSPD43M.js → crash-report-DK7JVZST.js} +6 -6
  100. package/dist/chunks/{dist-GZKDJ55P.js → dist-7CYTIZ5C.js} +2 -2
  101. package/dist/chunks/{dist-MEVZQACI.js → dist-GSM5OUES.js} +2 -2
  102. package/dist/chunks/{dist-MG7X3HZ5.js → dist-I7W73UPV.js} +2 -2
  103. package/dist/chunks/{dist-6FZYIBKS.js → dist-J5IZ5RHZ.js} +2 -2
  104. package/dist/chunks/{dist-IBQY4G6X.js → dist-LZI3XTGN.js} +2 -2
  105. package/dist/chunks/{dist-T6NAHPKU.js → dist-SYIWNJR2.js} +2 -2
  106. package/dist/chunks/{dist-RLXIKSOL.js → dist-UE5ANCBW.js} +2 -2
  107. package/dist/chunks/{dist-BKQJE7BY.js → dist-XBUXZEEB.js} +2 -2
  108. package/dist/chunks/{doctor-GD2RFBCM.js → doctor-NWAX4IM7.js} +16 -16
  109. package/dist/chunks/{drain-JYBKHPLH.js → drain-FTOJZDYK.js} +10 -10
  110. package/dist/chunks/{entry-RPFYFICC.js → entry-SJIEJ27T.js} +6 -6
  111. package/dist/chunks/{eval-VO5OSPXV.js → eval-RCBIYBMS.js} +2 -2
  112. package/dist/chunks/{exec-GJNOZIJK.js → exec-F7IZPXPC.js} +35 -35
  113. package/dist/chunks/{home-GQH2XM3U.js → home-2BKP7YCM.js} +3 -3
  114. package/dist/chunks/{host-TC3OXA2G.js → host-C3DTMFBF.js} +10 -10
  115. package/dist/chunks/{host-queries-ALOAZXC2.js → host-queries-NS3KPYXL.js} +16 -16
  116. package/dist/chunks/{learn-D4WBZOJI.js → learn-MVQSZTTX.js} +13 -13
  117. package/dist/chunks/{learn-builtin-IRUU6FKN.js → learn-builtin-XNUVQCNK.js} +16 -16
  118. package/dist/chunks/{lifecycle-4TZM6I4P.js → lifecycle-3GWXD5SP.js} +29 -29
  119. package/dist/chunks/{list-X4JB3AHD.js → list-Z5NSXOD2.js} +10 -10
  120. package/dist/chunks/{live-UEXRJVW7.js → live-MX5WR6LK.js} +15 -15
  121. package/dist/chunks/{login-PNCELCVY.js → login-ZE5XIPQ7.js} +13 -13
  122. package/dist/chunks/{logs-EQQC6AB5.js → logs-VS4CNANQ.js} +4 -4
  123. package/dist/chunks/{mcp-NVVR4UKY.js → mcp-M5HNYQ2W.js} +20 -20
  124. package/dist/chunks/{message-command-I64YRTNB.js → message-command-EPK742AJ.js} +43 -43
  125. package/dist/chunks/{open-G52PHSKP.js → open-QXTQRRCQ.js} +8 -8
  126. package/dist/chunks/{operator-tools-72WJ3PQH.js → operator-tools-Q6HK4MA2.js} +14 -14
  127. package/dist/chunks/{output-schema-YEK43GEC.js → output-schema-A3PQYTK5.js} +3 -3
  128. package/dist/chunks/{pal-NB7RUP46.js → pal-GTV4XVAP.js} +16 -16
  129. package/dist/chunks/{peers-HPHDPK2S.js → peers-2YP4IM4S.js} +6 -6
  130. package/dist/chunks/{providers-DFBA2I55.js → providers-CYPZ2DXB.js} +11 -11
  131. package/dist/chunks/{pty-J6ETLSUL.js → pty-RXXCCDMS.js} +3 -3
  132. package/dist/chunks/{resident-5NGOFCXA.js → resident-CWBHWPC2.js} +24 -24
  133. package/dist/chunks/resume-XJPW6CTY.js +24 -0
  134. package/dist/chunks/{resume-command-N4BJ22OJ.js → resume-command-AHIBTJ5A.js} +4 -4
  135. package/dist/chunks/{schedule-QEHZQEOW.js → schedule-PVDVLV64.js} +8 -8
  136. package/dist/chunks/{service-IV7GLCWL.js → service-7XSPCP5Q.js} +29 -29
  137. package/dist/chunks/{session-step-3ETHIACS.js → session-step-OIUTKBJT.js} +15 -15
  138. package/dist/chunks/{skills-LP4OTXM7.js → skills-JAIUQKZT.js} +8 -8
  139. package/dist/chunks/{start-check-B2FWFMBY.js → start-check-I7DYE576.js} +2 -2
  140. package/dist/chunks/{startup-failure-KD5FFEKM.js → startup-failure-WHJBBFTI.js} +2 -2
  141. package/dist/chunks/{state-HVSUDBUM.js → state-Q5IXQJK3.js} +2 -2
  142. package/dist/chunks/{store-VQJJZ3ET.js → store-JXLQEQ2H.js} +11 -11
  143. package/dist/chunks/{store-GQQL2H6W.js → store-SKZHW2GU.js} +4 -4
  144. package/dist/chunks/{store-XLCU34Z7.js → store-SPUXEFBY.js} +3 -3
  145. package/dist/chunks/{store-RD4I75KS.js → store-XATXIX36.js} +6 -6
  146. package/dist/chunks/{tui-2G65ZDB4.js → tui-Q22HR7XX.js} +82 -66
  147. package/dist/chunks/{tui-2G65ZDB4.js.map → tui-Q22HR7XX.js.map} +1 -1
  148. package/dist/chunks/{upgrade-Q4XOX2IP.js → upgrade-5IBQE5DP.js} +7 -7
  149. package/dist/chunks/{workspaces-LU4H4XML.js → workspaces-57VON5LZ.js} +16 -16
  150. package/dist/chunks/{worktree-OOSK7HU7.js → worktree-TN7TIOKY.js} +13 -13
  151. package/dist/config/schema.d.ts +1 -1
  152. package/dist/config/schema.d.ts.map +1 -1
  153. package/dist/index.js +19 -19
  154. package/dist/integrations/decision/pick.d.ts +25 -0
  155. package/dist/integrations/decision/pick.d.ts.map +1 -0
  156. package/dist/integrations/decision/points.d.ts +34 -0
  157. package/dist/integrations/decision/points.d.ts.map +1 -1
  158. package/dist/integrations/resident/runner-worker.js +21 -21
  159. package/dist/tui/agent.d.ts.map +1 -1
  160. package/dist/tui/permission-review.d.ts.map +1 -1
  161. package/package.json +4 -4
  162. package/dist/chunks/agent-session-HC2QNXXI.js +0 -71
  163. package/dist/chunks/chunk-SCV5ZD5H.js.map +0 -6
  164. package/dist/chunks/chunk-XPKUTEXE.js.map +0 -6
  165. package/dist/chunks/resume-376B7P4Y.js +0 -24
  166. /package/dist/chunks/{acp-MEXVPVAC.js.map → acp-J4IZIQWG.js.map} +0 -0
  167. /package/dist/chunks/{activity-command-XIJSCFX2.js.map → activity-command-WIR3M62U.js.map} +0 -0
  168. /package/dist/chunks/{add-2Y2E2IES.js.map → add-Y6KPS6CS.js.map} +0 -0
  169. /package/dist/chunks/{agent-GRVNRFBO.js.map → agent-AA474WOD.js.map} +0 -0
  170. /package/dist/chunks/{agent-session-HC2QNXXI.js.map → agent-session-DNLTXD2O.js.map} +0 -0
  171. /package/dist/chunks/{archive-3T527NSJ.js.map → archive-4MGYPLQH.js.map} +0 -0
  172. /package/dist/chunks/{bin-main-EVFEBOIR.js.map → bin-main-NV24HESC.js.map} +0 -0
  173. /package/dist/chunks/{binding-V2K43M7X.js.map → binding-BG2CMH3P.js.map} +0 -0
  174. /package/dist/chunks/{browser-7YEDQ6BR.js.map → browser-DW7JKMX5.js.map} +0 -0
  175. /package/dist/chunks/{chat-NC37EXYB.js.map → chat-PEUUZMG5.js.map} +0 -0
  176. /package/dist/chunks/{chunk-MTJITGLV.js.map → chunk-254GWXK4.js.map} +0 -0
  177. /package/dist/chunks/{chunk-X3VO64UI.js.map → chunk-27H74FWU.js.map} +0 -0
  178. /package/dist/chunks/{chunk-H7V4MEE5.js.map → chunk-3JP6N64M.js.map} +0 -0
  179. /package/dist/chunks/{chunk-TJADQKBW.js.map → chunk-4GIE5IWR.js.map} +0 -0
  180. /package/dist/chunks/{chunk-UGZBRT5X.js.map → chunk-5EID532B.js.map} +0 -0
  181. /package/dist/chunks/{chunk-M2YJ4XG7.js.map → chunk-5JLERCSL.js.map} +0 -0
  182. /package/dist/chunks/{chunk-KG254R2U.js.map → chunk-6DMSTACL.js.map} +0 -0
  183. /package/dist/chunks/{chunk-IQ232XTD.js.map → chunk-7PWQAIED.js.map} +0 -0
  184. /package/dist/chunks/{chunk-VTXQOFAL.js.map → chunk-7UMDSVTC.js.map} +0 -0
  185. /package/dist/chunks/{chunk-BU6XSI2I.js.map → chunk-7WTJTXZH.js.map} +0 -0
  186. /package/dist/chunks/{chunk-DTCRIEFV.js.map → chunk-AKBOGIYT.js.map} +0 -0
  187. /package/dist/chunks/{chunk-QYV4RDDK.js.map → chunk-B3LPAFLK.js.map} +0 -0
  188. /package/dist/chunks/{chunk-AX3XQUGW.js.map → chunk-B5UX6EXN.js.map} +0 -0
  189. /package/dist/chunks/{chunk-MCZIP44M.js.map → chunk-BGDDICSF.js.map} +0 -0
  190. /package/dist/chunks/{chunk-IMQE5QKI.js.map → chunk-BS6FOXOJ.js.map} +0 -0
  191. /package/dist/chunks/{chunk-2CEK7O4K.js.map → chunk-BY6CYQHX.js.map} +0 -0
  192. /package/dist/chunks/{chunk-KIGGORKT.js.map → chunk-CB7Z6IIB.js.map} +0 -0
  193. /package/dist/chunks/{chunk-GXKKTDUY.js.map → chunk-CWSFF2SL.js.map} +0 -0
  194. /package/dist/chunks/{chunk-DUOM75LH.js.map → chunk-D4WT2YSJ.js.map} +0 -0
  195. /package/dist/chunks/{chunk-B23P42CN.js.map → chunk-D56OQGID.js.map} +0 -0
  196. /package/dist/chunks/{chunk-2J3CFOTK.js.map → chunk-DUTPJ2SO.js.map} +0 -0
  197. /package/dist/chunks/{chunk-Z7HIMFBX.js.map → chunk-DXMEBNFO.js.map} +0 -0
  198. /package/dist/chunks/{chunk-BO4SWS4X.js.map → chunk-E3KFGGJE.js.map} +0 -0
  199. /package/dist/chunks/{chunk-WAEKUITP.js.map → chunk-EFB45I7C.js.map} +0 -0
  200. /package/dist/chunks/{chunk-IFJXMHZW.js.map → chunk-EJDGKLLI.js.map} +0 -0
  201. /package/dist/chunks/{chunk-4RCHCWSY.js.map → chunk-FB3S5MRG.js.map} +0 -0
  202. /package/dist/chunks/{chunk-VHKSISNJ.js.map → chunk-G2EMBDMV.js.map} +0 -0
  203. /package/dist/chunks/{chunk-WUUSAGRP.js.map → chunk-G72BPPTI.js.map} +0 -0
  204. /package/dist/chunks/{chunk-AXFOGCTW.js.map → chunk-GZYBAXZV.js.map} +0 -0
  205. /package/dist/chunks/{chunk-3HZB5HLI.js.map → chunk-HB6IQWVB.js.map} +0 -0
  206. /package/dist/chunks/{chunk-6GHM2I3V.js.map → chunk-HNYRA7Y4.js.map} +0 -0
  207. /package/dist/chunks/{chunk-4PKIOJWB.js.map → chunk-IEVJDIWE.js.map} +0 -0
  208. /package/dist/chunks/{chunk-Z2DEZ77K.js.map → chunk-IYUXWM2C.js.map} +0 -0
  209. /package/dist/chunks/{chunk-5HI2QNR7.js.map → chunk-J3TKLLHH.js.map} +0 -0
  210. /package/dist/chunks/{chunk-YGW2RUDC.js.map → chunk-JX6SB3NQ.js.map} +0 -0
  211. /package/dist/chunks/{chunk-Q2GHAHRT.js.map → chunk-K3YJM2A6.js.map} +0 -0
  212. /package/dist/chunks/{chunk-GEMTMJCC.js.map → chunk-KDCQ4VNQ.js.map} +0 -0
  213. /package/dist/chunks/{chunk-O7O4IP4S.js.map → chunk-L2A4QFEG.js.map} +0 -0
  214. /package/dist/chunks/{chunk-2EE5PKXH.js.map → chunk-LMYSP45O.js.map} +0 -0
  215. /package/dist/chunks/{chunk-IS2GBRK2.js.map → chunk-LPV7K6CD.js.map} +0 -0
  216. /package/dist/chunks/{chunk-NTOAY6OF.js.map → chunk-LTJPPUPC.js.map} +0 -0
  217. /package/dist/chunks/{chunk-WYIMXVN6.js.map → chunk-LTY7BFI5.js.map} +0 -0
  218. /package/dist/chunks/{chunk-ATA5EP6S.js.map → chunk-LVRVFBEG.js.map} +0 -0
  219. /package/dist/chunks/{chunk-SYZ4ZKFZ.js.map → chunk-M5ZSNRGP.js.map} +0 -0
  220. /package/dist/chunks/{chunk-5HKXRQWG.js.map → chunk-MECNGLVG.js.map} +0 -0
  221. /package/dist/chunks/{chunk-DP3U5NBJ.js.map → chunk-MIO5YUYN.js.map} +0 -0
  222. /package/dist/chunks/{chunk-RFUFAQSN.js.map → chunk-NFC24QAK.js.map} +0 -0
  223. /package/dist/chunks/{chunk-3PPJTRPU.js.map → chunk-NKZYGRV7.js.map} +0 -0
  224. /package/dist/chunks/{chunk-NF6PO2KX.js.map → chunk-NRMZ5MTH.js.map} +0 -0
  225. /package/dist/chunks/{chunk-XA5X2QK3.js.map → chunk-NSTYXLBX.js.map} +0 -0
  226. /package/dist/chunks/{chunk-LYR56WMM.js.map → chunk-OCCV2WSV.js.map} +0 -0
  227. /package/dist/chunks/{chunk-A7QCYA7S.js.map → chunk-OE4P5MBD.js.map} +0 -0
  228. /package/dist/chunks/{chunk-KBD4T5O7.js.map → chunk-OP6VX35U.js.map} +0 -0
  229. /package/dist/chunks/{chunk-5HPOKUTB.js.map → chunk-P3QMGMHN.js.map} +0 -0
  230. /package/dist/chunks/{chunk-C5VB6EQW.js.map → chunk-PAVRYBQN.js.map} +0 -0
  231. /package/dist/chunks/{chunk-3X4TYZYQ.js.map → chunk-PMLNAH25.js.map} +0 -0
  232. /package/dist/chunks/{chunk-FB6CSITS.js.map → chunk-QEKOEOHJ.js.map} +0 -0
  233. /package/dist/chunks/{chunk-UWPQHMIP.js.map → chunk-QHS2U4NN.js.map} +0 -0
  234. /package/dist/chunks/{chunk-TGVCELXX.js.map → chunk-QMQL74PK.js.map} +0 -0
  235. /package/dist/chunks/{chunk-ECOEL6JM.js.map → chunk-QSLIFWSL.js.map} +0 -0
  236. /package/dist/chunks/{chunk-3QLYQ46N.js.map → chunk-RJVEVHZB.js.map} +0 -0
  237. /package/dist/chunks/{chunk-XCCOM7G2.js.map → chunk-RNNTPUQU.js.map} +0 -0
  238. /package/dist/chunks/{chunk-XA2XF33K.js.map → chunk-RTJA25RC.js.map} +0 -0
  239. /package/dist/chunks/{chunk-UYAIZ4KA.js.map → chunk-S7APLRCX.js.map} +0 -0
  240. /package/dist/chunks/{chunk-QA4IQRFM.js.map → chunk-SB2WDPYY.js.map} +0 -0
  241. /package/dist/chunks/{chunk-CLZBMDJO.js.map → chunk-TKRQLL3F.js.map} +0 -0
  242. /package/dist/chunks/{chunk-LGKA74MZ.js.map → chunk-TYOHF23M.js.map} +0 -0
  243. /package/dist/chunks/{chunk-4EYMVZVR.js.map → chunk-U2CKMM6L.js.map} +0 -0
  244. /package/dist/chunks/{chunk-RTEPHRJB.js.map → chunk-V4OJLUSN.js.map} +0 -0
  245. /package/dist/chunks/{chunk-7TYO6U3X.js.map → chunk-V7IBTSCB.js.map} +0 -0
  246. /package/dist/chunks/{chunk-XLCIURWR.js.map → chunk-VT2JA366.js.map} +0 -0
  247. /package/dist/chunks/{chunk-DLBNYXXC.js.map → chunk-VXCGRIBU.js.map} +0 -0
  248. /package/dist/chunks/{chunk-7J724LVV.js.map → chunk-WKPGFS4M.js.map} +0 -0
  249. /package/dist/chunks/{chunk-NVU5Q75Z.js.map → chunk-X3OBHENI.js.map} +0 -0
  250. /package/dist/chunks/{chunk-JXLIHF36.js.map → chunk-XKQMN5F6.js.map} +0 -0
  251. /package/dist/chunks/{chunk-5FKGEZVS.js.map → chunk-XMOV5PMX.js.map} +0 -0
  252. /package/dist/chunks/{chunk-KWOEPDOC.js.map → chunk-YUG4WMFT.js.map} +0 -0
  253. /package/dist/chunks/{chunk-TPRFCADC.js.map → chunk-Z33RQI5X.js.map} +0 -0
  254. /package/dist/chunks/{cli-runtime-6X42NV5R.js.map → cli-runtime-Y6RCXLVR.js.map} +0 -0
  255. /package/dist/chunks/{commands-GMLGVYXW.js.map → commands-4OFJVDGG.js.map} +0 -0
  256. /package/dist/chunks/{crash-report-WRSPD43M.js.map → crash-report-DK7JVZST.js.map} +0 -0
  257. /package/dist/chunks/{dist-GZKDJ55P.js.map → dist-7CYTIZ5C.js.map} +0 -0
  258. /package/dist/chunks/{dist-MEVZQACI.js.map → dist-GSM5OUES.js.map} +0 -0
  259. /package/dist/chunks/{dist-MG7X3HZ5.js.map → dist-I7W73UPV.js.map} +0 -0
  260. /package/dist/chunks/{dist-6FZYIBKS.js.map → dist-J5IZ5RHZ.js.map} +0 -0
  261. /package/dist/chunks/{dist-IBQY4G6X.js.map → dist-LZI3XTGN.js.map} +0 -0
  262. /package/dist/chunks/{dist-T6NAHPKU.js.map → dist-SYIWNJR2.js.map} +0 -0
  263. /package/dist/chunks/{dist-RLXIKSOL.js.map → dist-UE5ANCBW.js.map} +0 -0
  264. /package/dist/chunks/{dist-BKQJE7BY.js.map → dist-XBUXZEEB.js.map} +0 -0
  265. /package/dist/chunks/{doctor-GD2RFBCM.js.map → doctor-NWAX4IM7.js.map} +0 -0
  266. /package/dist/chunks/{drain-JYBKHPLH.js.map → drain-FTOJZDYK.js.map} +0 -0
  267. /package/dist/chunks/{entry-RPFYFICC.js.map → entry-SJIEJ27T.js.map} +0 -0
  268. /package/dist/chunks/{eval-VO5OSPXV.js.map → eval-RCBIYBMS.js.map} +0 -0
  269. /package/dist/chunks/{exec-GJNOZIJK.js.map → exec-F7IZPXPC.js.map} +0 -0
  270. /package/dist/chunks/{home-GQH2XM3U.js.map → home-2BKP7YCM.js.map} +0 -0
  271. /package/dist/chunks/{host-TC3OXA2G.js.map → host-C3DTMFBF.js.map} +0 -0
  272. /package/dist/chunks/{host-queries-ALOAZXC2.js.map → host-queries-NS3KPYXL.js.map} +0 -0
  273. /package/dist/chunks/{learn-D4WBZOJI.js.map → learn-MVQSZTTX.js.map} +0 -0
  274. /package/dist/chunks/{learn-builtin-IRUU6FKN.js.map → learn-builtin-XNUVQCNK.js.map} +0 -0
  275. /package/dist/chunks/{lifecycle-4TZM6I4P.js.map → lifecycle-3GWXD5SP.js.map} +0 -0
  276. /package/dist/chunks/{list-X4JB3AHD.js.map → list-Z5NSXOD2.js.map} +0 -0
  277. /package/dist/chunks/{live-UEXRJVW7.js.map → live-MX5WR6LK.js.map} +0 -0
  278. /package/dist/chunks/{login-PNCELCVY.js.map → login-ZE5XIPQ7.js.map} +0 -0
  279. /package/dist/chunks/{logs-EQQC6AB5.js.map → logs-VS4CNANQ.js.map} +0 -0
  280. /package/dist/chunks/{mcp-NVVR4UKY.js.map → mcp-M5HNYQ2W.js.map} +0 -0
  281. /package/dist/chunks/{message-command-I64YRTNB.js.map → message-command-EPK742AJ.js.map} +0 -0
  282. /package/dist/chunks/{open-G52PHSKP.js.map → open-QXTQRRCQ.js.map} +0 -0
  283. /package/dist/chunks/{operator-tools-72WJ3PQH.js.map → operator-tools-Q6HK4MA2.js.map} +0 -0
  284. /package/dist/chunks/{output-schema-YEK43GEC.js.map → output-schema-A3PQYTK5.js.map} +0 -0
  285. /package/dist/chunks/{pal-NB7RUP46.js.map → pal-GTV4XVAP.js.map} +0 -0
  286. /package/dist/chunks/{peers-HPHDPK2S.js.map → peers-2YP4IM4S.js.map} +0 -0
  287. /package/dist/chunks/{providers-DFBA2I55.js.map → providers-CYPZ2DXB.js.map} +0 -0
  288. /package/dist/chunks/{pty-J6ETLSUL.js.map → pty-RXXCCDMS.js.map} +0 -0
  289. /package/dist/chunks/{resident-5NGOFCXA.js.map → resident-CWBHWPC2.js.map} +0 -0
  290. /package/dist/chunks/{resume-376B7P4Y.js.map → resume-XJPW6CTY.js.map} +0 -0
  291. /package/dist/chunks/{resume-command-N4BJ22OJ.js.map → resume-command-AHIBTJ5A.js.map} +0 -0
  292. /package/dist/chunks/{schedule-QEHZQEOW.js.map → schedule-PVDVLV64.js.map} +0 -0
  293. /package/dist/chunks/{service-IV7GLCWL.js.map → service-7XSPCP5Q.js.map} +0 -0
  294. /package/dist/chunks/{session-step-3ETHIACS.js.map → session-step-OIUTKBJT.js.map} +0 -0
  295. /package/dist/chunks/{skills-LP4OTXM7.js.map → skills-JAIUQKZT.js.map} +0 -0
  296. /package/dist/chunks/{start-check-B2FWFMBY.js.map → start-check-I7DYE576.js.map} +0 -0
  297. /package/dist/chunks/{startup-failure-KD5FFEKM.js.map → startup-failure-WHJBBFTI.js.map} +0 -0
  298. /package/dist/chunks/{state-HVSUDBUM.js.map → state-Q5IXQJK3.js.map} +0 -0
  299. /package/dist/chunks/{store-GQQL2H6W.js.map → store-JXLQEQ2H.js.map} +0 -0
  300. /package/dist/chunks/{store-RD4I75KS.js.map → store-SKZHW2GU.js.map} +0 -0
  301. /package/dist/chunks/{store-VQJJZ3ET.js.map → store-SPUXEFBY.js.map} +0 -0
  302. /package/dist/chunks/{store-XLCU34Z7.js.map → store-XATXIX36.js.map} +0 -0
  303. /package/dist/chunks/{upgrade-Q4XOX2IP.js.map → upgrade-5IBQE5DP.js.map} +0 -0
  304. /package/dist/chunks/{workspaces-LU4H4XML.js.map → workspaces-57VON5LZ.js.map} +0 -0
  305. /package/dist/chunks/{worktree-OOSK7HU7.js.map → worktree-TN7TIOKY.js.map} +0 -0
@@ -5,8 +5,8 @@ import {
5
5
  bindAccount,
6
6
  findAccountByName,
7
7
  isDefaultAccountId
8
- } from "./chunk-IS2GBRK2.js";
9
- import "./chunk-LPIUKGJ5.js";
8
+ } from "./chunk-LPV7K6CD.js";
9
+ import "./chunk-2FMAMLA6.js";
10
10
  import "./chunk-76FLAFCG.js";
11
11
  export {
12
12
  accountOfPreferences,
@@ -14,4 +14,4 @@ export {
14
14
  findAccountByName,
15
15
  isDefaultAccountId
16
16
  };
17
- //# sourceMappingURL=binding-V2K43M7X.js.map
17
+ //# sourceMappingURL=binding-BG2CMH3P.js.map
@@ -2,14 +2,14 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  BROWSER_HELP
5
- } from "./chunk-VTXQOFAL.js";
6
- import "./chunk-NVU5Q75Z.js";
5
+ } from "./chunk-7UMDSVTC.js";
6
+ import "./chunk-X3OBHENI.js";
7
7
  import "./chunk-WHODOMXA.js";
8
8
  import "./chunk-ZPR4IMRT.js";
9
9
  import "./chunk-A22MBIYU.js";
10
10
  import "./chunk-Y7B67G22.js";
11
- import "./chunk-4RCHCWSY.js";
12
- import "./chunk-LPIUKGJ5.js";
11
+ import "./chunk-FB3S5MRG.js";
12
+ import "./chunk-2FMAMLA6.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-76FLAFCG.js";
@@ -21,11 +21,11 @@ var browserCommand = {
21
21
  passThrough: true,
22
22
  help: BROWSER_HELP,
23
23
  handler: /* @__PURE__ */ __name(async ({ ctx, rawArgs }) => {
24
- const { browserCommand: run } = await import("./commands-GMLGVYXW.js");
24
+ const { browserCommand: run } = await import("./commands-4OFJVDGG.js");
25
25
  return run(ctx, rawArgs);
26
26
  }, "handler")
27
27
  };
28
28
  export {
29
29
  browserCommand
30
30
  };
31
- //# sourceMappingURL=browser-7YEDQ6BR.js.map
31
+ //# sourceMappingURL=browser-DW7JKMX5.js.map
@@ -3,13 +3,13 @@ const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  closeCliPalRuntime,
5
5
  getCliPalRuntime
6
- } from "./chunk-MTJITGLV.js";
6
+ } from "./chunk-254GWXK4.js";
7
7
  import "./chunk-ZWA2JRJV.js";
8
8
  import {
9
9
  claimPalConversation,
10
10
  newPalSessionId,
11
11
  palConversationBinding
12
- } from "./chunk-IMQE5QKI.js";
12
+ } from "./chunk-BS6FOXOJ.js";
13
13
  import {
14
14
  EXIT_OK,
15
15
  EXIT_UNAVAILABLE,
@@ -18,25 +18,25 @@ import {
18
18
  import {
19
19
  CLI_VERSION
20
20
  } from "./chunk-HE7WUOX2.js";
21
- import "./chunk-SYZ4ZKFZ.js";
22
- import "./chunk-2CEK7O4K.js";
21
+ import "./chunk-M5ZSNRGP.js";
22
+ import "./chunk-BY6CYQHX.js";
23
23
  import "./chunk-JQIBPPOL.js";
24
- import "./chunk-5FKGEZVS.js";
24
+ import "./chunk-XMOV5PMX.js";
25
25
  import {
26
26
  getPal
27
- } from "./chunk-KIGGORKT.js";
28
- import "./chunk-Z2DEZ77K.js";
29
- import "./chunk-IS2GBRK2.js";
27
+ } from "./chunk-CB7Z6IIB.js";
28
+ import "./chunk-IYUXWM2C.js";
29
+ import "./chunk-LPV7K6CD.js";
30
30
  import {
31
31
  compilePermissions
32
- } from "./chunk-UYAIZ4KA.js";
32
+ } from "./chunk-S7APLRCX.js";
33
33
  import "./chunk-WMEZTDLT.js";
34
- import "./chunk-DUOM75LH.js";
35
- import "./chunk-ECOEL6JM.js";
34
+ import "./chunk-D4WT2YSJ.js";
35
+ import "./chunk-QSLIFWSL.js";
36
36
  import "./chunk-JORONMD3.js";
37
- import "./chunk-Z7HIMFBX.js";
38
- import "./chunk-4RCHCWSY.js";
39
- import "./chunk-LPIUKGJ5.js";
37
+ import "./chunk-DXMEBNFO.js";
38
+ import "./chunk-FB3S5MRG.js";
39
+ import "./chunk-2FMAMLA6.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-76FLAFCG.js";
@@ -82,7 +82,7 @@ async function runPalChat(ctx, palId, args, options = {}) {
82
82
  ...ctx.config.composerTriggers ? { composerTriggers: ctx.config.composerTriggers } : {},
83
83
  ...ctx.config.statusLine ? { statusLine: ctx.config.statusLine } : {}
84
84
  };
85
- const { launchTui } = await import("./tui-2G65ZDB4.js");
85
+ const { launchTui } = await import("./tui-Q22HR7XX.js");
86
86
  await launchTui(tui, options);
87
87
  } catch (error) {
88
88
  ctx.formatter.error({ message: error instanceof Error ? error.message : String(error) });
@@ -103,4 +103,4 @@ __name(runPalChat, "runPalChat");
103
103
  export {
104
104
  runPalChat
105
105
  };
106
- //# sourceMappingURL=chat-NC37EXYB.js.map
106
+ //# sourceMappingURL=chat-PEUUZMG5.js.map
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-ZWA2JRJV.js";
7
7
  import {
8
8
  getCliPalStore
9
- } from "./chunk-KIGGORKT.js";
9
+ } from "./chunk-CB7Z6IIB.js";
10
10
  import {
11
11
  PalRuntime
12
- } from "./chunk-LPIUKGJ5.js";
12
+ } from "./chunk-2FMAMLA6.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-76FLAFCG.js";
@@ -280,4 +280,4 @@ export {
280
280
  cliPalScreenStream,
281
281
  closeCliPalRuntime
282
282
  };
283
- //# sourceMappingURL=chunk-MTJITGLV.js.map
283
+ //# sourceMappingURL=chunk-254GWXK4.js.map
@@ -15,13 +15,13 @@ import {
15
15
  isZenFreeTierLimit,
16
16
  isZenFreeTierRefusal,
17
17
  retryAfterMs
18
- } from "./chunk-KG254R2U.js";
18
+ } from "./chunk-6DMSTACL.js";
19
19
  import {
20
20
  terminalDisplayText
21
21
  } from "./chunk-IYUW2RAA.js";
22
22
  import {
23
23
  isImageInputRefusalMessage
24
- } from "./chunk-LPIUKGJ5.js";
24
+ } from "./chunk-2FMAMLA6.js";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-76FLAFCG.js";
@@ -365,4 +365,4 @@ export {
365
365
  describeProviderWait,
366
366
  describeProviderWaitClock
367
367
  };
368
- //# sourceMappingURL=chunk-X3VO64UI.js.map
368
+ //# sourceMappingURL=chunk-27H74FWU.js.map
@@ -304,7 +304,7 @@ var require_brace_expansion = __commonJS({
304
304
  });
305
305
 
306
306
  // ../sdk/dist/version.js
307
- var VERSION = "61.3.0";
307
+ var VERSION = "61.4.0";
308
308
 
309
309
  // ../sdk/dist/runtime/harness-session/index.js
310
310
  import { posix, win32 } from "node:path";
@@ -131109,6 +131109,9 @@ __name(settleAfterActions, "settleAfterActions");
131109
131109
  var MAX_LISTED_WINDOWS = 50;
131110
131110
  var MAX_UI_SNAPSHOT_CHARS = 14e3;
131111
131111
  var MAX_HELD_UI_REFS = 4e3;
131112
+ var ADVICE_MIN_CONFIDENCE = 0.85;
131113
+ var ADVICE_MIN_MARGIN = 0.4;
131114
+ var MAX_ADVISED_CANDIDATES = 255;
131112
131115
  function computerUseUnavailableReason(provider, model) {
131113
131116
  if (!resolveProviderCapabilities(provider).supportsToolResultImages) {
131114
131117
  return `The ${provider.id} provider cannot return images in tool results, so the model would never see a screenshot. Use a provider that can return images in tool results for computer use.`;
@@ -131223,7 +131226,17 @@ var uiActSchema = external_exports.object({
131223
131226
  type: external_exports.literal("ui_act"),
131224
131227
  ref: external_exports.string().min(1),
131225
131228
  action: external_exports.enum(UI_ACTIONS),
131226
- value: external_exports.string().optional()
131229
+ value: external_exports.string().optional(),
131230
+ /** What this is for, in a few words; only read when the tool has an advisor. */
131231
+ intent: external_exports.string().min(1).max(200).optional()
131232
+ });
131233
+ var uiDoSchema = external_exports.object({
131234
+ type: external_exports.literal("ui_do"),
131235
+ /** The control, in words: "the Save button", "the name field". */
131236
+ target: external_exports.string().min(1).max(200),
131237
+ action: external_exports.enum(UI_ACTIONS),
131238
+ value: external_exports.string().optional(),
131239
+ window_id: external_exports.string().min(1).optional()
131227
131240
  });
131228
131241
  var batchItemSchema = external_exports.discriminatedUnion("type", [
131229
131242
  cursorPositionSchema,
@@ -131236,7 +131249,8 @@ var batchItemSchema = external_exports.discriminatedUnion("type", [
131236
131249
  waitSchema,
131237
131250
  listWindowsSchema,
131238
131251
  focusWindowSchema,
131239
- uiActSchema
131252
+ uiActSchema,
131253
+ uiDoSchema
131240
131254
  ]);
131241
131255
  var withFrame = { screenshot_id: screenshotIdSchema };
131242
131256
  var actionSchema = external_exports.discriminatedUnion("type", [
@@ -131258,6 +131272,7 @@ var actionSchema = external_exports.discriminatedUnion("type", [
131258
131272
  uiSnapshotSchema,
131259
131273
  waitForSchema,
131260
131274
  uiActSchema.extend(withFrame),
131275
+ uiDoSchema.extend(withFrame),
131261
131276
  external_exports.object({
131262
131277
  type: external_exports.literal("batch"),
131263
131278
  actions: external_exports.array(batchItemSchema).min(1),
@@ -131290,6 +131305,7 @@ var ALL_ACTIONS = [
131290
131305
  "ui_snapshot",
131291
131306
  "wait_for",
131292
131307
  "ui_act",
131308
+ "ui_do",
131293
131309
  "batch"
131294
131310
  ];
131295
131311
  var READ_ONLY_ACTIONS = /* @__PURE__ */ new Set([
@@ -131307,7 +131323,8 @@ var DESTRUCTIVE_ACTIONS = /* @__PURE__ */ new Set([
131307
131323
  "type_text",
131308
131324
  "key",
131309
131325
  "scroll",
131310
- "ui_act"
131326
+ "ui_act",
131327
+ "ui_do"
131311
131328
  ]);
131312
131329
  var SCREEN_OBSERVATIONS = /* @__PURE__ */ new Set([
131313
131330
  "screenshot",
@@ -131365,6 +131382,7 @@ function requiredCapability(type) {
131365
131382
  case "ui_snapshot":
131366
131383
  case "wait_for":
131367
131384
  case "ui_act":
131385
+ case "ui_do":
131368
131386
  return "uiTree";
131369
131387
  default:
131370
131388
  return null;
@@ -131380,7 +131398,7 @@ function windowCaptureAvailable(host, caps) {
131380
131398
  return caps.windowCapture === true && typeof host.captureWindow === "function" && typeof host.executeWindow === "function";
131381
131399
  }
131382
131400
  __name(windowCaptureAvailable, "windowCaptureAvailable");
131383
- function availableActions(host, caps) {
131401
+ function availableActions(host, caps, advisor) {
131384
131402
  const displayScreenshot = hostActionAvailable(caps, "screenshot");
131385
131403
  const window2 = windowCaptureAvailable(host, caps);
131386
131404
  const screenshot = displayScreenshot || window2;
@@ -131409,6 +131427,8 @@ function availableActions(host, caps) {
131409
131427
  case "wait_for":
131410
131428
  case "ui_act":
131411
131429
  return uiTree;
131430
+ case "ui_do":
131431
+ return uiTree && advisor?.acts === true;
131412
131432
  case "batch":
131413
131433
  return false;
131414
131434
  default:
@@ -131441,8 +131461,8 @@ function unavailableHostActions(host, caps) {
131441
131461
  return unavailable3;
131442
131462
  }
131443
131463
  __name(unavailableHostActions, "unavailableHostActions");
131444
- function buildDescription(host, caps, settings) {
131445
- const available = availableActions(host, caps);
131464
+ function buildDescription(host, caps, settings, advisor) {
131465
+ const available = availableActions(host, caps, advisor);
131446
131466
  const unavailable3 = unavailableHostActions(host, caps);
131447
131467
  const intro = hostActionAvailable(caps, "screenshot") ? `Controls the user's desktop on a ${caps.displayServer} host: screenshots, mouse and keyboard, for GUI tasks.` : windowCaptureAvailable(host, caps) ? `Controls named windows on a ${caps.displayServer} host: window screenshots, mouse and keyboard, for GUI tasks.` : available.length > 0 ? `Offers the available computer controls on a ${caps.displayServer} host.` : `Computer control is unavailable on this ${caps.displayServer} host; this tool reports the limitation.`;
131448
131468
  const lines = [intro, `Available actions: ${available.join("; ") || "none"}.`];
@@ -131461,6 +131481,8 @@ function buildDescription(host, caps, settings) {
131461
131481
  lines.push(`batch: {"type":"batch","actions":[...]} runs up to ${settings.maxBatchActions} actions in order, stops at the first one that fails, and returns one screenshot at the end. Every call costs a model round trip of several seconds, so put the steps you can already predict into one batch (click a field, type, press ENTER) rather than one call each \u2014 but end the batch at any step that should bring up a new window, and look before typing into it. A batch cannot contain screenshot${available.includes("ui_snapshot") ? ", zoom or ui_snapshot" : " or zoom"}.`);
131462
131482
  if (caps.displayServer === "win32" && available.includes("key") && available.includes("type_text"))
131463
131483
  lines.push("To start a Windows program, a shell command (Start-Process <program>, or cmd.exe /c start <program>) is surest when you have a shell tool. The Start menu searches by display names in the system language, and ENTER on a name it does not find opens a web search in the browser.");
131484
+ if (available.includes("ui_do"))
131485
+ lines.push('ui_do {target, action, value, window_id} acts on a control named in words ("the Save button") among those the latest ui_snapshot showed: a second model chooses it and the tool says which control it acted on. When it is not sure it acts on nothing and lists the closest controls: then use ui_act on one of their refs. Use ui_act with a ref whenever you already have one.');
131464
131486
  if (available.includes("list_windows"))
131465
131487
  lines.push("list_windows names the open windows with their ids; focus_window brings one to the front.");
131466
131488
  if (windowCaptureAvailable(host, caps))
@@ -131524,14 +131546,15 @@ var ACTION_REQUIREMENTS = {
131524
131546
  ui_snapshot: "ui_snapshot takes an optional window_id, root (a ref to open) and query (text to find)",
131525
131547
  wait_for: "wait_for needs until and match; role, window_id and timeout_ms are optional",
131526
131548
  ui_act: "ui_act needs ref and action, and value for set_value",
131549
+ ui_do: "ui_do needs target (the control, in words) and action, and value for set_value",
131527
131550
  batch: "batch needs actions"
131528
131551
  };
131529
131552
  function actionRequirement(action, host, caps) {
131530
131553
  return action === "screenshot" && windowCaptureAvailable(host, caps) ? `screenshot ${hostActionAvailable(caps, "screenshot") ? "takes an optional" : "requires"} window_id to capture pixels for that window` : ACTION_REQUIREMENTS[action];
131531
131554
  }
131532
131555
  __name(actionRequirement, "actionRequirement");
131533
- function hostModelSchema(host, caps, settings) {
131534
- const offered = availableActions(host, caps);
131556
+ function hostModelSchema(host, caps, settings, advisor) {
131557
+ const offered = availableActions(host, caps, advisor);
131535
131558
  const actions = offered.length > 0 ? offered : ALL_ACTIONS.filter((a) => a !== "batch");
131536
131559
  const items = actions.filter((action) => !OUTSIDE_BATCH.has(action));
131537
131560
  const buttons = /* @__PURE__ */ new Set();
@@ -131639,6 +131662,28 @@ function hostModelSchema(host, caps, settings) {
131639
131662
  type: "string",
131640
131663
  description: "The text set_value puts in the control."
131641
131664
  };
131665
+ if (advisor)
131666
+ fields2.intent = {
131667
+ type: "string",
131668
+ description: 'For ui_act: what this is for, in a few words ("save the file"). Optional; it only helps check the choice.'
131669
+ };
131670
+ }
131671
+ if (present.includes("ui_do")) {
131672
+ fields2.target = {
131673
+ type: "string",
131674
+ description: 'For ui_do: the control in words, such as "the Save button" or "the name field". The tool picks the control from the latest ui_snapshot.'
131675
+ };
131676
+ if (!present.includes("ui_act")) {
131677
+ fields2.action = {
131678
+ type: "string",
131679
+ enum: [...UI_ACTIONS],
131680
+ description: "What ui_do does to the control."
131681
+ };
131682
+ fields2.value = {
131683
+ type: "string",
131684
+ description: "The text set_value puts in the control."
131685
+ };
131686
+ }
131642
131687
  }
131643
131688
  if (!forItems && present.includes("zoom"))
131644
131689
  fields2.region = {
@@ -131747,6 +131792,28 @@ function uiActLabel(input2, describe4) {
131747
131792
  }
131748
131793
  }
131749
131794
  __name(uiActLabel, "uiActLabel");
131795
+ function uiDoLabel(input2) {
131796
+ const target = quotedText(input2.target);
131797
+ switch (input2.action) {
131798
+ case "invoke":
131799
+ return `Press the control for ${target}`;
131800
+ case "set_value":
131801
+ return `Set the control for ${target} to ${quotedText(input2.value ?? "")}`;
131802
+ case "toggle":
131803
+ return `Toggle the control for ${target}`;
131804
+ case "select":
131805
+ return `Select the control for ${target}`;
131806
+ case "expand":
131807
+ return `Expand the control for ${target}`;
131808
+ case "collapse":
131809
+ return `Collapse the control for ${target}`;
131810
+ case "focus":
131811
+ return `Focus the control for ${target}`;
131812
+ case "scroll_into_view":
131813
+ return `Scroll to the control for ${target}`;
131814
+ }
131815
+ }
131816
+ __name(uiDoLabel, "uiDoLabel");
131750
131817
  function itemLabel(input2, describe4) {
131751
131818
  switch (input2.type) {
131752
131819
  case "screenshot":
@@ -131781,6 +131848,8 @@ function itemLabel(input2, describe4) {
131781
131848
  return `Wait until ${input2.until.replace("_", " ")} ${quotedText(input2.match)}`;
131782
131849
  case "ui_act":
131783
131850
  return uiActLabel(input2, describe4);
131851
+ case "ui_do":
131852
+ return uiDoLabel(input2);
131784
131853
  case "batch":
131785
131854
  return batchLabel(input2.actions, describe4);
131786
131855
  }
@@ -131952,9 +132021,11 @@ function createComputerUseTool(host, options = {}) {
131952
132021
  unavailableReason: options.unavailableReason
131953
132022
  } : host.capabilities;
131954
132023
  const frames = new ScreenshotFrames();
131955
- const available = new Set(availableActions(host, caps));
132024
+ const available = new Set(availableActions(host, caps, options.advisor));
132025
+ const advisor = options.advisor;
131956
132026
  const uiRefs = /* @__PURE__ */ new Map();
131957
132027
  const uiRefByHost = /* @__PURE__ */ new Map();
132028
+ const shownRefs = /* @__PURE__ */ new Map();
131958
132029
  let uiSnapshots = 0;
131959
132030
  let uiRefCount = 0;
131960
132031
  let uiSnapshotWindowId;
@@ -131966,6 +132037,30 @@ function createComputerUseTool(host, options = {}) {
131966
132037
  return entry ? `${uiElementText(entry.element)} (${ref})` : void 0;
131967
132038
  }, "describeUiRef");
131968
132039
  const label6 = /* @__PURE__ */ __name((input2) => itemLabel(input2, describeUiRef), "label");
132040
+ const advisedCandidates = /* @__PURE__ */ __name((windowId, action) => {
132041
+ const shown = shownRefs.get(windowId ?? "");
132042
+ const out = [];
132043
+ if (!shown)
132044
+ return out;
132045
+ for (const ref of shown) {
132046
+ const entry = uiRefs.get(ref);
132047
+ if (!entry)
132048
+ continue;
132049
+ const offered = entry.element.actions ?? [];
132050
+ if (offered.length === 0)
132051
+ continue;
132052
+ if (action !== void 0 && !offered.includes(action))
132053
+ continue;
132054
+ const text10 = uiElementText(entry.element);
132055
+ out.push({
132056
+ ref,
132057
+ description: text10.length > 80 ? `${text10.slice(0, 79)}\u2026` : text10
132058
+ });
132059
+ if (out.length >= MAX_ADVISED_CANDIDATES)
132060
+ break;
132061
+ }
132062
+ return out;
132063
+ }, "advisedCandidates");
131969
132064
  const refusal4 = /* @__PURE__ */ __name((type) => {
131970
132065
  if (available.has(type))
131971
132066
  return null;
@@ -132194,6 +132289,11 @@ function createComputerUseTool(host, options = {}) {
132194
132289
  if (item.action === "set_value" && item.value === void 0)
132195
132290
  throw new StepFailure("set_value needs value, the text to put in the control");
132196
132291
  return step(async () => {
132292
+ if (advisor && item.intent !== void 0) {
132293
+ const candidates = advisedCandidates(entry.windowId);
132294
+ if (candidates.length >= 2)
132295
+ void advisor.pick({ intent: item.intent, candidates, chosen: item.ref }).catch(() => void 0);
132296
+ }
132197
132297
  let outcome;
132198
132298
  try {
132199
132299
  outcome = await host.uiAct(entry.hostRef, item.action, item.value, callSignal);
@@ -132208,6 +132308,47 @@ function createComputerUseTool(host, options = {}) {
132208
132308
  return deliveryOutcome(outcome);
132209
132309
  });
132210
132310
  }
132311
+ case "ui_do": {
132312
+ if (!advisor?.acts)
132313
+ throw new StepFailure("ui_do is not available here; use ui_act with a ref");
132314
+ if (item.action === "set_value" && item.value === void 0)
132315
+ throw new StepFailure("set_value needs value, the text to put in the control");
132316
+ if (uiSnapshots === 0)
132317
+ throw new StepFailure("no ui_snapshot has been taken yet; take one, because ui_do chooses among the controls it showed");
132318
+ const windowId = item.window_id ?? uiSnapshotWindowId;
132319
+ const candidates = advisedCandidates(windowId, item.action);
132320
+ if (candidates.length === 0)
132321
+ throw new StepFailure(`no control in the latest ui_snapshot${windowId ? ` of window ${windowId}` : ""} offers ${item.action}; take a ui_snapshot and act with ui_act on a ref`);
132322
+ const target = item.target;
132323
+ return step(async (signal) => {
132324
+ let advice;
132325
+ try {
132326
+ advice = await advisor.pick({ intent: target, candidates }, signal);
132327
+ } catch {
132328
+ if (signal?.aborted)
132329
+ throw new StepFailure("cancelled");
132330
+ }
132331
+ const [best, next2] = advice?.ranked ?? [];
132332
+ const sure = best !== void 0 && best.confidence >= ADVICE_MIN_CONFIDENCE && best.confidence - (next2?.confidence ?? 0) >= ADVICE_MIN_MARGIN && uiRefs.has(best.ref);
132333
+ if (!best || !sure) {
132334
+ const close = (advice?.ranked ?? []).filter((entry) => uiRefs.has(entry.ref)).slice(0, 3).map((entry) => describeUiRef(entry.ref));
132335
+ throw deliveryFailure({
132336
+ delivery: "not_delivered",
132337
+ retrySafety: "safe",
132338
+ detail: `ui_do was not sure which control is ${quotedText(target)}, so it acted on nothing.${close.length > 0 ? ` Closest: ${close.join("; ")}.` : ""} Use ui_act on one of the refs, or ui_snapshot {query: ...} to find it.`
132339
+ });
132340
+ }
132341
+ const chosen = describeUiRef(best.ref) ?? best.ref;
132342
+ const ran = await plan({
132343
+ type: "ui_act",
132344
+ ref: best.ref,
132345
+ action: item.action,
132346
+ ...item.value !== void 0 ? { value: item.value } : {}
132347
+ }, void 0).run(signal);
132348
+ const prefix = `chose ${chosen} for ${quotedText(target)} (${Math.round(best.confidence * 100)}% sure)`;
132349
+ return typeof ran === "string" ? `${prefix}: ${ran}` : { ...ran, note: `${prefix}: ${ran.note}` };
132350
+ });
132351
+ }
132211
132352
  }
132212
132353
  }, "plan");
132213
132354
  const uiSnapshot = /* @__PURE__ */ __name(async (input2) => {
@@ -132283,6 +132424,11 @@ function createComputerUseTool(host, options = {}) {
132283
132424
  }
132284
132425
  }
132285
132426
  uiSnapshotWindowId = snapshot.windowId ?? requestedWindowId;
132427
+ {
132428
+ const key6 = uiSnapshotWindowId ?? "";
132429
+ const now = new Set(refs.keys());
132430
+ shownRefs.set(key6, snapshot.region ? /* @__PURE__ */ new Set([...shownRefs.get(key6) ?? [], ...now]) : now);
132431
+ }
132286
132432
  if (uiSnapshotWindowId !== void 0)
132287
132433
  treeUsable.set(uiSnapshotWindowId, refs.size > 0);
132288
132434
  uiSnapshotFrame = frames.latest();
@@ -132663,7 +132809,7 @@ ${wrapUntrusted({
132663
132809
  const outcome = typeof ran === "string" ? { note: ran } : ran;
132664
132810
  if (step.item.type === "focus_window" && windowCaptureAvailable(host, caps))
132665
132811
  postWindowId = step.item.window_id;
132666
- else if (step.item.type === "ui_act" && uiSnapshotWindowId && !explicitDisplayFrame && windowCaptureAvailable(host, caps))
132812
+ else if ((step.item.type === "ui_act" || step.item.type === "ui_do") && uiSnapshotWindowId && !explicitDisplayFrame && windowCaptureAvailable(host, caps))
132667
132813
  postWindowId = uiSnapshotWindowId;
132668
132814
  else if (step.item.type === "wait" && !changed && uiSnapshotWindowId && uiSnapshotFrame === frames.latest() && frameId === void 0 && windowCaptureAvailable(host, caps))
132669
132815
  postWindowId = uiSnapshotWindowId;
@@ -132771,9 +132917,9 @@ ${wrapUntrusted({
132771
132917
  const capturesScreen2 = /* @__PURE__ */ __name((input2) => observes && capturesScreenInput(input2, settings.screenshotAfterActions), "capturesScreen");
132772
132918
  const tool = defineTool({
132773
132919
  name: COMPUTER_USE_TOOL_NAME,
132774
- description: buildDescription(host, caps, settings),
132920
+ description: buildDescription(host, caps, settings, options.advisor),
132775
132921
  inputSchema: actionSchema,
132776
- modelInputSchema: hostModelSchema(host, caps, settings),
132922
+ modelInputSchema: hostModelSchema(host, caps, settings, options.advisor),
132777
132923
  validationErrorHint: `Action requirements: ${ALL_ACTIONS.map((action) => actionRequirement(action, host, caps)).join("; ")}. A batch is {"type":"batch","actions":[...]} with at most ${settings.maxBatchActions} actions and no screenshot, zoom, ui_snapshot or batch inside.`,
132778
132924
  category: "custom",
132779
132925
  permissions: [],
@@ -136859,4 +137005,4 @@ export {
136859
137005
  WakeBudget,
136860
137006
  wakeBudgetFromEnv
136861
137007
  };
136862
- //# sourceMappingURL=chunk-LPIUKGJ5.js.map
137008
+ //# sourceMappingURL=chunk-2FMAMLA6.js.map