zidane 9.1.1 → 9.1.4

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 (279) hide show
  1. package/dist/{acp-Di9WvMDF.js → acp-Cl4gCZN6.js} +7 -7
  2. package/dist/{acp-Di9WvMDF.js.map → acp-Cl4gCZN6.js.map} +1 -1
  3. package/dist/acp-cli.js +5 -5
  4. package/dist/acp.d.ts +2 -2
  5. package/dist/acp.js +1 -1
  6. package/dist/{agent-DJhpTS-B.js → agent-Dh_XZ7fj.js} +74 -19
  7. package/dist/agent-Dh_XZ7fj.js.map +1 -0
  8. package/dist/agent.d.ts +1 -1
  9. package/dist/agent.js +1 -1
  10. package/dist/{auth-store-port-DFgf22oo.js → auth-store-port-DBl2JUC6.js} +2 -2
  11. package/dist/{auth-store-port-DFgf22oo.js.map → auth-store-port-DBl2JUC6.js.map} +1 -1
  12. package/dist/{auto-update-restart-BFB7Ek87.js → auto-update-restart-CF_kjcJd.js} +277 -41
  13. package/dist/auto-update-restart-CF_kjcJd.js.map +1 -0
  14. package/dist/{browser-BcoCCB_n.js → browser-BkdeKnxO.js} +56 -2
  15. package/dist/browser-BkdeKnxO.js.map +1 -0
  16. package/dist/{browser-entry-ypi8CyE-.d.ts → browser-entry-BCwruqNa.d.ts} +10 -10
  17. package/dist/{browser-entry-ypi8CyE-.d.ts.map → browser-entry-BCwruqNa.d.ts.map} +1 -1
  18. package/dist/channels.d.ts +5 -5
  19. package/dist/chat/browser.d.ts +4 -4
  20. package/dist/chat/browser.js +6 -6
  21. package/dist/chat/pure.d.ts +5 -5
  22. package/dist/chat/pure.js +8 -8
  23. package/dist/chat.d.ts +5 -5
  24. package/dist/chat.js +55 -55
  25. package/dist/chat.js.map +1 -1
  26. package/dist/{cli-shared-CabruH8Z.js → cli-shared-DIV9c5Nr.js} +4 -4
  27. package/dist/{cli-shared-CabruH8Z.js.map → cli-shared-DIV9c5Nr.js.map} +1 -1
  28. package/dist/cli-style-DBEm6CyT.js +105 -0
  29. package/dist/cli-style-DBEm6CyT.js.map +1 -0
  30. package/dist/{client-core-CIixwznM.d.ts → client-core-C_4m_oL6.d.ts} +4 -4
  31. package/dist/{client-core-CIixwznM.d.ts.map → client-core-C_4m_oL6.d.ts.map} +1 -1
  32. package/dist/{client-CCaIXWue.d.ts → client-ygTASGis.d.ts} +2 -2
  33. package/dist/{client-CCaIXWue.d.ts.map → client-ygTASGis.d.ts.map} +1 -1
  34. package/dist/codemode-worker.js +8 -5
  35. package/dist/codemode-worker.js.map +1 -1
  36. package/dist/codemode.d.ts +16 -0
  37. package/dist/codemode.d.ts.map +1 -1
  38. package/dist/codemode.js +2 -2
  39. package/dist/{connection-loop-QmWL-fJf.d.ts → connection-loop-D_pRONCr.d.ts} +4 -4
  40. package/dist/{connection-loop-QmWL-fJf.d.ts.map → connection-loop-D_pRONCr.d.ts.map} +1 -1
  41. package/dist/contexts/daytona.d.ts +3 -3
  42. package/dist/contexts/docker.d.ts +1 -1
  43. package/dist/contexts/e2b.d.ts +2 -2
  44. package/dist/contexts/sandbox.d.ts +1 -1
  45. package/dist/{contexts-C72b0mMa.js → contexts-DLZTSRHU.js} +17 -106
  46. package/dist/contexts-DLZTSRHU.js.map +1 -0
  47. package/dist/contexts.d.ts +4 -4
  48. package/dist/contexts.js +2 -2
  49. package/dist/{credentials-wwETW8rI.js → credentials-D71duF64.js} +2 -2
  50. package/dist/{credentials-wwETW8rI.js.map → credentials-D71duF64.js.map} +1 -1
  51. package/dist/{cwd-picker-CcekODCt.js → cwd-picker-BsHA6HKv.js} +4 -4
  52. package/dist/{cwd-picker-CcekODCt.js.map → cwd-picker-BsHA6HKv.js.map} +1 -1
  53. package/dist/daemon-cli.js +4 -3
  54. package/dist/daemon-cli.js.map +1 -1
  55. package/dist/{decisions-CXmK0nz9.js → decisions-hsw5XS2g.js} +3 -1
  56. package/dist/decisions-hsw5XS2g.js.map +1 -0
  57. package/dist/{discovery-DycXFxdA.js → discovery-DD4wPWKS.js} +4 -4
  58. package/dist/{discovery-DycXFxdA.js.map → discovery-DD4wPWKS.js.map} +1 -1
  59. package/dist/durable/sqlite.d.ts +2 -2
  60. package/dist/durable.d.ts +1 -1
  61. package/dist/{engine-VQ86XGdG.js → engine-BDmtgr2O.js} +6 -6
  62. package/dist/{engine-VQ86XGdG.js.map → engine-BDmtgr2O.js.map} +1 -1
  63. package/dist/{eval-Bod0I1W_.js → eval-CfGUDAkN.js} +3 -3
  64. package/dist/{eval-Bod0I1W_.js.map → eval-CfGUDAkN.js.map} +1 -1
  65. package/dist/eval.d.ts +1 -1
  66. package/dist/eval.js +1 -1
  67. package/dist/{executor-C7RQrkEq.js → executor-EWOhLyd9.js} +4 -4
  68. package/dist/{executor-C7RQrkEq.js.map → executor-EWOhLyd9.js.map} +1 -1
  69. package/dist/{extension-mark-BqKdEZwF.js → extension-mark-_rhkDWL5.js} +9 -6
  70. package/dist/extension-mark-_rhkDWL5.js.map +1 -0
  71. package/dist/extensions/testing.d.ts +1 -1
  72. package/dist/extensions/testing.js +2 -2
  73. package/dist/{extensions-BCx4QuGB.js → extensions-DklXPjiq.js} +8 -8
  74. package/dist/{extensions-BCx4QuGB.js.map → extensions-DklXPjiq.js.map} +1 -1
  75. package/dist/{extensions-client-D8tEAcMw.d.ts → extensions-client-D4Q2XRKV.d.ts} +31 -5
  76. package/dist/extensions-client-D4Q2XRKV.d.ts.map +1 -0
  77. package/dist/extensions.d.ts +1 -1
  78. package/dist/extensions.js +6 -6
  79. package/dist/{fold-rules-DvLK8pbf.d.ts → fold-rules-1DpDwG9h.d.ts} +2 -2
  80. package/dist/{fold-rules-DvLK8pbf.d.ts.map → fold-rules-1DpDwG9h.d.ts.map} +1 -1
  81. package/dist/{google-Crva32sk.js → google-BtMW9KzL.js} +2 -2
  82. package/dist/{google-Crva32sk.js.map → google-BtMW9KzL.js.map} +1 -1
  83. package/dist/{headless-CCm-jLLT.js → headless-CQm19BL0.js} +4 -4
  84. package/dist/{headless-CCm-jLLT.js.map → headless-CQm19BL0.js.map} +1 -1
  85. package/dist/headless.d.ts +1 -1
  86. package/dist/headless.js +1 -1
  87. package/dist/history-worker.js +1 -1
  88. package/dist/{host-BHMs9jsN.js → host-DEoEzQal.js} +13 -4
  89. package/dist/host-DEoEzQal.js.map +1 -0
  90. package/dist/{host-scoped-settings-CrbcqOkP.js → host-scoped-settings-WBYaCork.js} +2 -2
  91. package/dist/{host-scoped-settings-CrbcqOkP.js.map → host-scoped-settings-WBYaCork.js.map} +1 -1
  92. package/dist/{host-signals-Jsjd_-4g.js → host-signals-91zyko_i.js} +5 -5
  93. package/dist/{host-signals-Jsjd_-4g.js.map → host-signals-91zyko_i.js.map} +1 -1
  94. package/dist/{host-wO_6GW0y.js → host-uP3t08w8.js} +276 -103
  95. package/dist/host-uP3t08w8.js.map +1 -0
  96. package/dist/{host-version-CNAr9pov.js → host-version-_RHlAB29.js} +2 -2
  97. package/dist/{host-version-CNAr9pov.js.map → host-version-_RHlAB29.js.map} +1 -1
  98. package/dist/{index-C6nnKu32.d.ts → index-B0PLo9jn.d.ts} +4 -4
  99. package/dist/{index-C6nnKu32.d.ts.map → index-B0PLo9jn.d.ts.map} +1 -1
  100. package/dist/{index-Djnc8Peh.d.ts → index-De4x-s76.d.ts} +14 -14
  101. package/dist/{index-Djnc8Peh.d.ts.map → index-De4x-s76.d.ts.map} +1 -1
  102. package/dist/{index-CGbOWa7y.d.ts → index-WlE93Q6d.d.ts} +411 -3
  103. package/dist/index-WlE93Q6d.d.ts.map +1 -0
  104. package/dist/{index-CCf_WeTQ.d.ts → index-f-XWIoYo.d.ts} +2 -2
  105. package/dist/{index-CCf_WeTQ.d.ts.map → index-f-XWIoYo.d.ts.map} +1 -1
  106. package/dist/index.d.ts +5 -5
  107. package/dist/index.js +17 -17
  108. package/dist/ipc/browser-types.d.ts +304 -7
  109. package/dist/ipc/browser-types.d.ts.map +1 -1
  110. package/dist/ipc/browser.d.ts +4 -4
  111. package/dist/ipc/browser.js +2 -2
  112. package/dist/ipc/remote.d.ts +6 -6
  113. package/dist/ipc/remote.js +3 -3
  114. package/dist/{ipc-BzWhIybr.js → ipc-CatnsVEd.js} +4 -4
  115. package/dist/{ipc-BzWhIybr.js.map → ipc-CatnsVEd.js.map} +1 -1
  116. package/dist/ipc.d.ts +10 -10
  117. package/dist/ipc.js +8 -8
  118. package/dist/{json-Dj-YATkZ.js → json-BjClr43H.js} +2 -20
  119. package/dist/json-BjClr43H.js.map +1 -0
  120. package/dist/{links-CJG_rFvf.js → links-a8C9eby4.js} +9 -9
  121. package/dist/{links-CJG_rFvf.js.map → links-a8C9eby4.js.map} +1 -1
  122. package/dist/{loaded-entry-DTURJo_R.js → loaded-entry-D6jzt5HQ.js} +2 -2
  123. package/dist/{loaded-entry-DTURJo_R.js.map → loaded-entry-D6jzt5HQ.js.map} +1 -1
  124. package/dist/mcp.d.ts +1 -1
  125. package/dist/{media-type-BtA0cbfI.d.ts → media-type-ZSmAGHvg.d.ts} +188 -7
  126. package/dist/media-type-ZSmAGHvg.d.ts.map +1 -0
  127. package/dist/{memory-DuVGrzbl.js → memory-CJy52DNi.js} +132 -31
  128. package/dist/memory-CJy52DNi.js.map +1 -0
  129. package/dist/model-test-CAtJ76kM.js.map +1 -1
  130. package/dist/{move-session-kylExJ5H.js → move-session-D7ILECs-.js} +4 -4
  131. package/dist/{move-session-kylExJ5H.js.map → move-session-D7ILECs-.js.map} +1 -1
  132. package/dist/{nested-call-record-DlzPeTB7.js → nested-call-record-OayszZBQ.js} +4 -3
  133. package/dist/nested-call-record-OayszZBQ.js.map +1 -0
  134. package/dist/output/stream-json.d.ts +1 -1
  135. package/dist/output/terminal.d.ts +1 -1
  136. package/dist/{path-display-COVV71Yu.js → path-display-CAWz-sMq.js} +3 -3
  137. package/dist/{path-display-COVV71Yu.js.map → path-display-CAWz-sMq.js.map} +1 -1
  138. package/dist/plugins.d.ts +1 -1
  139. package/dist/{prelude-CVKoUzV8.js → prelude-BwiSR1uA.js} +16 -5
  140. package/dist/prelude-BwiSR1uA.js.map +1 -0
  141. package/dist/{presets-CBt6rFfS.js → presets-CMY43nUP.js} +3 -3
  142. package/dist/{presets-CBt6rFfS.js.map → presets-CMY43nUP.js.map} +1 -1
  143. package/dist/presets.d.ts +1 -1
  144. package/dist/presets.js +1 -1
  145. package/dist/{protocol-CEVqBO-q.d.ts → protocol-C2lqKuMd.d.ts} +50 -7
  146. package/dist/protocol-C2lqKuMd.d.ts.map +1 -0
  147. package/dist/protocol-DOGyHgLQ.js.map +1 -1
  148. package/dist/protocol-NSllElLw.js.map +1 -1
  149. package/dist/providers/anthropic.d.ts +1 -1
  150. package/dist/providers/arcee.d.ts +1 -1
  151. package/dist/providers/baseten.d.ts +1 -1
  152. package/dist/providers/cerebras.d.ts +1 -1
  153. package/dist/providers/google.d.ts +1 -1
  154. package/dist/providers/google.js +1 -1
  155. package/dist/providers/local.d.ts +1 -1
  156. package/dist/providers/neuralwatt.d.ts +1 -1
  157. package/dist/providers/openai-compat.d.ts +1 -1
  158. package/dist/providers/openai.d.ts +1 -1
  159. package/dist/providers/openrouter.d.ts +1 -1
  160. package/dist/providers/xai.d.ts +1 -1
  161. package/dist/{providers-Z0TaBp1O.js → providers-zVRxiJDv.js} +5 -5
  162. package/dist/providers-zVRxiJDv.js.map +1 -0
  163. package/dist/providers.d.ts +1 -1
  164. package/dist/providers.js +1 -1
  165. package/dist/{readonly-db-D7Z-k0pQ.js → readonly-db-DrbT8tX6.js} +2 -2
  166. package/dist/{readonly-db-D7Z-k0pQ.js.map → readonly-db-DrbT8tX6.js.map} +1 -1
  167. package/dist/{registry-BKjeBnoy.js → registry-CBoYDIND.js} +2 -2
  168. package/dist/{registry-BKjeBnoy.js.map → registry-CBoYDIND.js.map} +1 -1
  169. package/dist/{registry-B6Ww76iW.js → registry-CQOU5jvF.js} +2 -2
  170. package/dist/{registry-B6Ww76iW.js.map → registry-CQOU5jvF.js.map} +1 -1
  171. package/dist/{registry-B9INJwJR.js → registry-YUUqbYGr.js} +324 -39
  172. package/dist/registry-YUUqbYGr.js.map +1 -0
  173. package/dist/{remote-hosts-BMWoHCWO.js → remote-hosts-CT8Q95dR.js} +4 -4
  174. package/dist/{remote-hosts-BMWoHCWO.js.map → remote-hosts-CT8Q95dR.js.map} +1 -1
  175. package/dist/{repo-url-D4Dr8NfZ.js → repo-url-DLjjuVk_.js} +169 -2
  176. package/dist/repo-url-DLjjuVk_.js.map +1 -0
  177. package/dist/restate.d.ts +2 -2
  178. package/dist/{sandbox-BwiPGKF7.d.ts → sandbox-B4OW6oNx.d.ts} +2 -2
  179. package/dist/{sandbox-BwiPGKF7.d.ts.map → sandbox-B4OW6oNx.d.ts.map} +1 -1
  180. package/dist/script-progress-CrZ507Qq.js +900 -0
  181. package/dist/script-progress-CrZ507Qq.js.map +1 -0
  182. package/dist/session/sqlite.d.ts +1 -1
  183. package/dist/session.d.ts +1 -1
  184. package/dist/{setting-BQBSyUq0.js → setting-_jh2OtiL.js} +6 -6
  185. package/dist/{setting-BQBSyUq0.js.map → setting-_jh2OtiL.js.map} +1 -1
  186. package/dist/{settings-catalog-4IU2i_jG.js → settings-catalog-DEZlXP51.js} +14 -2
  187. package/dist/settings-catalog-DEZlXP51.js.map +1 -0
  188. package/dist/{settings-keys-iI_Y-7MC.js → settings-keys-BT0_oKjO.js} +3 -3
  189. package/dist/{settings-keys-iI_Y-7MC.js.map → settings-keys-BT0_oKjO.js.map} +1 -1
  190. package/dist/{skills-CFXRItJ6.js → skills-CEbosUlM.js} +2 -2
  191. package/dist/{skills-CFXRItJ6.js.map → skills-CEbosUlM.js.map} +1 -1
  192. package/dist/skills.d.ts +1 -1
  193. package/dist/skills.js +1 -1
  194. package/dist/{source-Bl1Z501r.js → source-3ZnEPOSa.js} +3 -2
  195. package/dist/source-3ZnEPOSa.js.map +1 -0
  196. package/dist/{sqlite-runtime-BZ2L4RaG.d.ts → sqlite-runtime-CS_LBaAN.d.ts} +2 -2
  197. package/dist/sqlite-runtime-CS_LBaAN.d.ts.map +1 -0
  198. package/dist/{src-BY_ND2xn.js → src-BmTXDta8.js} +2 -2
  199. package/dist/{src-BY_ND2xn.js.map → src-BmTXDta8.js.map} +1 -1
  200. package/dist/{store-C6gI7FfZ.js → store-ByCDaKgJ.js} +14 -3
  201. package/dist/store-ByCDaKgJ.js.map +1 -0
  202. package/dist/{system-freeze-m5o1sGIM.js → system-freeze-DxJ-lRhu.js} +3 -3
  203. package/dist/{system-freeze-m5o1sGIM.js.map → system-freeze-DxJ-lRhu.js.map} +1 -1
  204. package/dist/{todo-edits-CbukbjyV.js → todo-edits-Dyj32ds6.js} +4 -3
  205. package/dist/todo-edits-Dyj32ds6.js.map +1 -0
  206. package/dist/tools/fetch-url.d.ts +1 -1
  207. package/dist/tools/web-search.d.ts +1 -1
  208. package/dist/{tools-CVTGhggj.js → tools-BsrGQ8K4.js} +2 -2
  209. package/dist/{tools-CVTGhggj.js.map → tools-BsrGQ8K4.js.map} +1 -1
  210. package/dist/tools.d.ts +1 -1
  211. package/dist/tools.js +3 -3
  212. package/dist/{transcript-anchors-CiSi_UBn.js → transcript-anchors-DMjvyUjk.js} +3 -3
  213. package/dist/{transcript-anchors-CiSi_UBn.js.map → transcript-anchors-DMjvyUjk.js.map} +1 -1
  214. package/dist/{transcript-reconcile-jbSBjLq2.js → transcript-reconcile-DpQO85wl.js} +3 -3
  215. package/dist/{transcript-reconcile-jbSBjLq2.js.map → transcript-reconcile-DpQO85wl.js.map} +1 -1
  216. package/dist/tui.d.ts +9 -9
  217. package/dist/tui.d.ts.map +1 -1
  218. package/dist/tui.js +289 -38
  219. package/dist/tui.js.map +1 -1
  220. package/dist/{types-bDQagoiL.d.ts → types-2HrgolQz.d.ts} +20 -8
  221. package/dist/types-2HrgolQz.d.ts.map +1 -0
  222. package/dist/types-4q1bFG53.js +122 -0
  223. package/dist/types-4q1bFG53.js.map +1 -0
  224. package/dist/{types-DnRd9_cA.d.ts → types-SXqk6hLD.d.ts} +3 -3
  225. package/dist/{types-DnRd9_cA.d.ts.map → types-SXqk6hLD.d.ts.map} +1 -1
  226. package/dist/types-myxheQkw.js.map +1 -1
  227. package/dist/types.d.ts +3 -3
  228. package/dist/{usage-summary-BfcXjiSM.js → usage-summary-BM7B3JdI.js} +2 -2
  229. package/dist/{usage-summary-BfcXjiSM.js.map → usage-summary-BM7B3JdI.js.map} +1 -1
  230. package/dist/{version-DqqqvHDP.js → version-DwQI12WA.js} +2 -2
  231. package/dist/{version-DqqqvHDP.js.map → version-DwQI12WA.js.map} +1 -1
  232. package/dist/{wait-task-BX4NcOOm.js → wait-task-BiI5UaZQ.js} +13 -3
  233. package/dist/wait-task-BiI5UaZQ.js.map +1 -0
  234. package/dist/{wire-CLm2rMK0.js → wire-Dxwxb7QQ.js} +2 -2
  235. package/dist/{wire-CLm2rMK0.js.map → wire-Dxwxb7QQ.js.map} +1 -1
  236. package/dist/{write-file-0E6TUJ9A.js → write-file-Dquu7MzB.js} +5 -3
  237. package/dist/write-file-Dquu7MzB.js.map +1 -0
  238. package/dist/{ws-DfGGYQ4W.js → ws-CA3o2nie.js} +4 -4
  239. package/dist/{ws-DfGGYQ4W.js.map → ws-CA3o2nie.js.map} +1 -1
  240. package/dist/{ws-client-CFMbhsNq.js → ws-client-C0iPAAzc.js} +2 -2
  241. package/dist/{ws-client-CFMbhsNq.js.map → ws-client-C0iPAAzc.js.map} +1 -1
  242. package/docs/CHAT.md +55 -0
  243. package/docs/CODEMODE.md +37 -0
  244. package/docs/EXTENSIONS.md +8 -6
  245. package/docs/RELEASE-NOTES-NEXT.md +48 -1
  246. package/docs/RELEASE.md +9 -1
  247. package/package.json +2 -3
  248. package/dist/agent-DJhpTS-B.js.map +0 -1
  249. package/dist/auto-update-restart-BFB7Ek87.js.map +0 -1
  250. package/dist/browser-BcoCCB_n.js.map +0 -1
  251. package/dist/contexts-C72b0mMa.js.map +0 -1
  252. package/dist/decisions-CXmK0nz9.js.map +0 -1
  253. package/dist/extension-mark-BqKdEZwF.js.map +0 -1
  254. package/dist/extensions-client-D8tEAcMw.d.ts.map +0 -1
  255. package/dist/host-BHMs9jsN.js.map +0 -1
  256. package/dist/host-wO_6GW0y.js.map +0 -1
  257. package/dist/index-CGbOWa7y.d.ts.map +0 -1
  258. package/dist/json-Dj-YATkZ.js.map +0 -1
  259. package/dist/media-type-BtA0cbfI.d.ts.map +0 -1
  260. package/dist/memory-DuVGrzbl.js.map +0 -1
  261. package/dist/nested-call-events-BYk8XvGX.js +0 -182
  262. package/dist/nested-call-events-BYk8XvGX.js.map +0 -1
  263. package/dist/nested-call-record-DlzPeTB7.js.map +0 -1
  264. package/dist/prelude-CVKoUzV8.js.map +0 -1
  265. package/dist/protocol-CEVqBO-q.d.ts.map +0 -1
  266. package/dist/providers-Z0TaBp1O.js.map +0 -1
  267. package/dist/registry-B9INJwJR.js.map +0 -1
  268. package/dist/repo-url-D4Dr8NfZ.js.map +0 -1
  269. package/dist/settings-catalog-4IU2i_jG.js.map +0 -1
  270. package/dist/source-Bl1Z501r.js.map +0 -1
  271. package/dist/sqlite-runtime-BZ2L4RaG.d.ts.map +0 -1
  272. package/dist/store-C6gI7FfZ.js.map +0 -1
  273. package/dist/todo-edits-CbukbjyV.js.map +0 -1
  274. package/dist/types-DTMEhKJO.js +0 -14
  275. package/dist/types-DTMEhKJO.js.map +0 -1
  276. package/dist/types-bDQagoiL.d.ts.map +0 -1
  277. package/dist/wait-task-BX4NcOOm.js.map +0 -1
  278. package/dist/write-file-0E6TUJ9A.js.map +0 -1
  279. package/scripts/eval.ts +0 -179
@@ -1711,6 +1711,19 @@ interface ContextMount {
1711
1711
  }
1712
1712
  /** Kind of execution context: `process`, `docker` or `sandbox`. */
1713
1713
  type ContextType = 'process' | 'docker' | 'sandbox';
1714
+ /** Options of {@link ExecutionContext.exec}. */
1715
+ interface ExecOptions {
1716
+ /** Folder to run in, resolved against the handle's. Default: the handle's folder. */
1717
+ cwd?: string;
1718
+ /** Variables added to the command's environment. */
1719
+ env?: Record<string, string>;
1720
+ /** Seconds. Default 30. */
1721
+ timeout?: number;
1722
+ /** Kills the command (its whole process group, in the process context) when aborted. */
1723
+ signal?: AbortSignal;
1724
+ /** Output as it arrives, decoded per stream. A chunk can end mid-line. */
1725
+ onOutput?: (stream: 'stdout' | 'stderr', text: string) => void;
1726
+ }
1714
1727
  /** An environment where an agent runs commands and reads and writes files: the host process, a Docker container or a remote sandbox. */
1715
1728
  interface ExecutionContext {
1716
1729
  /** Context type identifier */
@@ -1740,13 +1753,12 @@ interface ExecutionContext {
1740
1753
  * with coreutils `timeout`, sandbox SDKs take seconds/ms per their API).
1741
1754
  * Documented here because the unit is invisible at call sites and a
1742
1755
  * caller assuming milliseconds would set an instant-kill timeout.
1756
+ *
1757
+ * `onOutput` hears the output as it arrives, decoded, before the result
1758
+ * settles (a UI showing a running command). Optional for implementations:
1759
+ * one that cannot stream calls it never, and the result is the same.
1743
1760
  */
1744
- exec: (handle: ExecutionHandle, command: string, options?: {
1745
- cwd?: string;
1746
- env?: Record<string, string>;
1747
- timeout?: number;
1748
- signal?: AbortSignal;
1749
- }) => Promise<ExecResult>;
1761
+ exec: (handle: ExecutionHandle, command: string, options?: ExecOptions) => Promise<ExecResult>;
1750
1762
  /**
1751
1763
  * Start a process in the background. Settles as soon as `spawn` returns
1752
1764
  * — does NOT wait for the child to exit. Stdout + stderr stream
@@ -3465,6 +3477,15 @@ interface AgentHooks {
3465
3477
  reason: string;
3466
3478
  runToolCounts: Readonly<Record<string, number>>;
3467
3479
  }) => void;
3480
+ /**
3481
+ * Live output of a running tool (`ToolContext.reportProgress`): a codemode
3482
+ * script's printed items, a command's output chunks. Fires between
3483
+ * `tool:before` and the call's terminal event, never on replay of a
3484
+ * recorded call. Nothing here reaches the model or the session.
3485
+ */
3486
+ 'tool:progress': (ctx: ToolHookContext & {
3487
+ progress: ToolProgress;
3488
+ }) => void;
3468
3489
  /**
3469
3490
  * Fires when `validateToolArgs` rejects an input that could not be auto-coerced
3470
3491
  * to satisfy the tool's `inputSchema`. Observational — the tool call still
@@ -3748,6 +3769,12 @@ interface AgentHooks {
3748
3769
  childId: string;
3749
3770
  depth: number;
3750
3771
  }) => void;
3772
+ /** Bubbled `tool:progress` from a subagent, with `childId` and `depth`. */
3773
+ 'child:tool:progress': (ctx: ToolHookContext & {
3774
+ progress: ToolProgress;
3775
+ childId: string;
3776
+ depth: number;
3777
+ }) => void;
3751
3778
  /** Bubbled from a subagent's `background:start`. Same payload + `childId` / `depth`. */
3752
3779
  'child:background:start': (ctx: {
3753
3780
  taskId: string;
@@ -5638,6 +5665,96 @@ interface SessionScope {
5638
5665
  sessionIds?: readonly string[];
5639
5666
  }
5640
5667
  //#endregion
5668
+ //#region src/chat/ansi.d.ts
5669
+ /**
5670
+ * Terminal output as styled lines: ANSI SGR codes (colors, bold, dim, italic,
5671
+ * underline, inverse) become styles on spans of text; every other escape
5672
+ * (cursor moves, titles, charsets) is dropped; a carriage return rewrites its
5673
+ * line as a terminal does (a progress bar keeps its last state), backspace
5674
+ * erases. One incremental parser ({@link createAnsiLines}) serves the whole
5675
+ * text ({@link parseAnsi}) and plain text ({@link stripAnsi}). A line cut
5676
+ * out of a stream keeps its spans, so it renders with the colors it had.
5677
+ *
5678
+ * Node-free (exported from `zidane/chat/pure`).
5679
+ */
5680
+ /** A color: one of the 256 palette entries (0 to 15 are the theme's), or `#rrggbb`. */
5681
+ type AnsiColor = number | `#${string}`;
5682
+ /** How a span of text is drawn. Absent fields are the default. */
5683
+ interface AnsiStyle {
5684
+ /** Text color. */
5685
+ fg?: AnsiColor;
5686
+ /** Background color. */
5687
+ bg?: AnsiColor;
5688
+ /** Bold (SGR 1). */
5689
+ bold?: true;
5690
+ /** Faint (SGR 2). */
5691
+ dim?: true;
5692
+ /** Italic (SGR 3). */
5693
+ italic?: true;
5694
+ /** Underlined (SGR 4). */
5695
+ underline?: true;
5696
+ /** Foreground and background swapped. */
5697
+ inverse?: true;
5698
+ }
5699
+ /** Text in one style. `style` is absent for plain text. */
5700
+ interface AnsiSpan {
5701
+ /** The text, without escapes. */
5702
+ text: string;
5703
+ /** Its style, absent for plain text. */
5704
+ style?: AnsiStyle;
5705
+ }
5706
+ //#endregion
5707
+ //#region src/chat/output-tail.d.ts
5708
+ /** Where an output line came from: a printed item (`output`, `console`) or a command's `stdout` / `stderr`. */
5709
+ type OutputStream = 'output' | 'console' | 'stdout' | 'stderr';
5710
+ /** One line of output. */
5711
+ interface OutputLine {
5712
+ /**
5713
+ * The line's number in the whole output, from 0: the same while the line
5714
+ * shows (a command's line keeps its id as it is written, then ended), so a
5715
+ * view can key on it and animate only what is new.
5716
+ */
5717
+ id: number;
5718
+ /** Where it came from. */
5719
+ stream: OutputStream;
5720
+ /** The line's visible text, without its newline, cut to the tail's width. */
5721
+ text: string;
5722
+ /** The same text in styled spans, when it had colors or styles (ANSI codes). */
5723
+ spans?: AnsiSpan[];
5724
+ /** Script line of the call that wrote it (codemode). */
5725
+ line?: number;
5726
+ }
5727
+ //#endregion
5728
+ //#region src/chat/script-progress.d.ts
5729
+ /** How the latest call of a script line stands. */
5730
+ type ScriptCallStatus = 'running' | 'ok' | 'error';
5731
+ /** A script line that made calls. */
5732
+ interface ScriptLineProgress {
5733
+ /** 1-based line in the script as the model wrote it. */
5734
+ line: number;
5735
+ /** State of the latest call made from this line. */
5736
+ status: ScriptCallStatus;
5737
+ /** Calls made from this line so far. */
5738
+ calls: number;
5739
+ }
5740
+ /** One line of what a script printed or its shell calls wrote. */
5741
+ type ScriptOutputLine = OutputLine;
5742
+ /** A script's progress as a `tool-progress` event carries it. */
5743
+ interface ScriptProgress {
5744
+ /** Lines that made calls, by line. */
5745
+ lines: ScriptLineProgress[];
5746
+ /** Calls that ended, failed ones included. */
5747
+ done: number;
5748
+ /** Calls still running. */
5749
+ running: number;
5750
+ /** Calls that failed. */
5751
+ failed: number;
5752
+ /** The last lines of output, oldest first. A command's line still being written comes last. */
5753
+ output: ScriptOutputLine[];
5754
+ /** How the script ended, once it did: its last line shows done when it ended without error. */
5755
+ ended?: 'ok' | 'error';
5756
+ }
5757
+ //#endregion
5641
5758
  //#region src/chat/context-breakdown.d.ts
5642
5759
  /**
5643
5760
  * Stable identifiers for each breakdown category. Drives swatch color +
@@ -7198,6 +7315,8 @@ interface WireSettingsExtension {
7198
7315
  gui?: string;
7199
7316
  tui?: string;
7200
7317
  };
7318
+ /** What it does (`ExtensionDefinition.description`): the line under its name atop its settings. */
7319
+ description?: string;
7201
7320
  }
7202
7321
  //#endregion
7203
7322
  //#region src/extensions/settings/domain.d.ts
@@ -8005,6 +8124,14 @@ interface StreamEvent {
8005
8124
  * the call as waiting until its worker starts, and draw no row of its own.
8006
8125
  */
8007
8126
  'spawn-queued' |
8127
+ /**
8128
+ * A codemode script's progress (`scriptProgress`), for its call
8129
+ * (`callId`), with `Settings.codemodeStreamProgress`. Each one replaces
8130
+ * the last for the same call (`upsertToolProgress`). Live, and rebuilt
8131
+ * from the saved call records on reload. Renderers show it on the
8132
+ * script's row and draw no row of its own.
8133
+ */
8134
+ 'tool-progress' |
8008
8135
  /**
8009
8136
  * Compaction boundary — produced by `eventsFromTurns` when a turn
8010
8137
  * carries a `compact-summary` block. Marks the point at which the
@@ -8278,6 +8405,8 @@ interface StreamEvent {
8278
8405
  active: number;
8279
8406
  max: number;
8280
8407
  };
8408
+ /** On `tool-progress`: the script's progress. */
8409
+ scriptProgress?: ScriptProgress;
8281
8410
  /**
8282
8411
  * `tool-result` only: the call failed (the wire error bit of its result).
8283
8412
  * Absent on success. Lets a renderer mark the call failed from its one
@@ -8977,6 +9106,14 @@ interface Settings {
8977
9106
  * that run a subagent show either way, since their worker attaches there.
8978
9107
  */
8979
9108
  codemodeShowCalls: boolean;
9109
+ /**
9110
+ * Show each codemode script's progress while it runs: the line each call
9111
+ * came from (running, done, failed), a count of its calls, and the last
9112
+ * lines it printed or its shell calls wrote. Sets
9113
+ * `behavior.codemode.streamProgress`; toggling it rebuilds live agents.
9114
+ * The model's result does not change. Off by default.
9115
+ */
9116
+ codemodeStreamProgress: boolean;
8980
9117
  /**
8981
9118
  * Run the model's `shell` tool commands under the OS sandbox: macOS
8982
9119
  * Seatbelt (`sandbox-exec`) or Linux bubblewrap (`bwrap`). Writes are
@@ -10373,6 +10510,14 @@ interface ToolContext {
10373
10510
  * (`ctx.reportStructured?.(…)`).
10374
10511
  */
10375
10512
  reportStructured?: (value: unknown) => void;
10513
+ /**
10514
+ * Report live output of this call (a command's output chunks, a script's
10515
+ * printed items) as the `tool:progress` hook, for a UI to show while the
10516
+ * call runs. It never reaches the model or the session. Present only when
10517
+ * someone shows it: on a tool that calls others (codemode), and on a nested
10518
+ * call whose caller asked for it (`NestedToolCallOptions.streamProgress`).
10519
+ */
10520
+ reportProgress?: (progress: ToolProgress) => void;
10376
10521
  /**
10377
10522
  * Call another tool of this run from inside this tool, through the same
10378
10523
  * gate / validation / hooks pipeline as a model-issued call (see
@@ -10406,6 +10551,13 @@ interface ToolContext {
10406
10551
  interface NestedToolCallOptions {
10407
10552
  /** Aborts the nested call, in addition to the calling tool's own signal. */
10408
10553
  signal?: AbortSignal;
10554
+ /**
10555
+ * Line of the calling script that makes this call. Lands on the call's
10556
+ * hooks (`scriptLine`) and its record (`NestedToolCallRecord.line`).
10557
+ */
10558
+ line?: number;
10559
+ /** Give the call a `ToolContext.reportProgress`, so its live output fires `tool:progress`. */
10560
+ streamProgress?: boolean;
10409
10561
  }
10410
10562
  /** Result of a nested call made through {@link ToolContext.callTool}. */
10411
10563
  interface NestedToolCallResult {
@@ -12404,6 +12556,11 @@ interface AgentBehavior {
12404
12556
  * form (at most twice per tool in a conversation; never on `read_file` or
12405
12557
  * JSON results). `false` leaves results as the tools return them.
12406
12558
  * Default: `true`.
12559
+ * - `streamProgress`: report each script's progress live (`tool:progress`):
12560
+ * what it prints, the output of its shell calls as they run, and the
12561
+ * script line of each call (`scriptLine` on the nested calls' hooks,
12562
+ * `line` on their records). The model's result does not change.
12563
+ * Default: `false`.
12407
12564
  *
12408
12565
  * Not injected when `AgentRunOptions.tools` replaces the registry, or when
12409
12566
  * the host registers its own `codemode`. Default: off.
@@ -12413,6 +12570,7 @@ interface AgentBehavior {
12413
12570
  inlineBudget?: number;
12414
12571
  catalog?: 'names' | 'full';
12415
12572
  directCallNotes?: boolean;
12573
+ streamProgress?: boolean;
12416
12574
  };
12417
12575
  /**
12418
12576
  * Render the per-server `instructions` payload from the MCP `initialize`
@@ -12903,6 +13061,20 @@ type ToolResultContent = ToolResultTextContent | ToolResultImageContent | ToolRe
12903
13061
  * wire result; reported explicitly so guards don't have to infer.
12904
13062
  */
12905
13063
  type ToolOutcome = 'created' | 'updated' | 'edited' | 'noop' | 'failed';
13064
+ /**
13065
+ * Live output a running tool reports through `ToolContext.reportProgress`, as
13066
+ * the `tool:progress` hook. It never reaches the model or the session: the
13067
+ * tool's result is unchanged.
13068
+ */
13069
+ interface ToolProgress {
13070
+ /**
13071
+ * `output` and `console`: an item a codemode script printed (`text()`,
13072
+ * `console.*`). `stdout` and `stderr`: a chunk of a running command.
13073
+ */
13074
+ stream: 'output' | 'console' | 'stdout' | 'stderr';
13075
+ /** The new text. A chunk of a command can end mid-line. */
13076
+ text: string;
13077
+ }
12906
13078
  /** JSON scalar: a string, number, boolean or `null`. */
12907
13079
  type JsonPrimitive = string | number | boolean | null;
12908
13080
  /** Any value that survives `JSON.stringify` and `JSON.parse` unchanged. */
@@ -13787,6 +13959,8 @@ interface NestedToolCallRecord {
13787
13959
  outputTruncated?: boolean;
13788
13960
  /** The called tool runs a subagent (`DurableToolDef.runsNestedAgent`): its worker attaches to this call. */
13789
13961
  runsNestedAgent?: true;
13962
+ /** Line of the calling script that made the call, when the caller tracked lines (`NestedToolCallOptions.line`). */
13963
+ line?: number;
13790
13964
  }
13791
13965
  /**
13792
13966
  * Base context for tool execution hooks: the tool call a `tool:*` hook fires
@@ -13859,6 +14033,11 @@ interface ToolHookContext {
13859
14033
  * them should skip these.
13860
14034
  */
13861
14035
  parentToolCallId?: string;
14036
+ /**
14037
+ * On a nested call: the line of the calling script that made it
14038
+ * (`NestedToolCallOptions.line`). Absent when the caller tracks no lines.
14039
+ */
14040
+ scriptLine?: number;
13862
14041
  /** Set when the called tool runs a subagent (`DurableToolDef.runsNestedAgent`, e.g. `spawn`). */
13863
14042
  runsNestedAgent?: true;
13864
14043
  /**
@@ -15795,6 +15974,36 @@ interface RunEstimateView {
15795
15974
  waitingSince?: number;
15796
15975
  }
15797
15976
  //#endregion
15977
+ //#region src/chat/shell-blocks.d.ts
15978
+ /** What a window asks the host to run. */
15979
+ interface BlockRunRequest {
15980
+ /** The reply the block is in. */
15981
+ turnId: string;
15982
+ /** The block's text. */
15983
+ code: string;
15984
+ /** The fence's language. */
15985
+ language: string;
15986
+ }
15987
+ /** The last run of a block, as the session keeps it. */
15988
+ interface BlockRun {
15989
+ /** {@link blockRunKey} of the block. */
15990
+ key: string;
15991
+ /** The reply the block is in: a run whose reply is gone is dropped. */
15992
+ turnId: string;
15993
+ /** What it wrote, stdout and stderr in arrival order, raw (ANSI codes kept): the last {@link BLOCK_RUN_OUTPUT_CAP} characters. */
15994
+ output: string;
15995
+ /** Output was cut at its start. */
15996
+ truncated?: true;
15997
+ /** `null` when it was stopped or could not start. */
15998
+ exitCode: number | null;
15999
+ /** Why it ended early. */
16000
+ stopped?: 'cancelled' | 'timeout';
16001
+ /** How long it ran. */
16002
+ durationMs: number;
16003
+ /** When it ended, epoch milliseconds. */
16004
+ finishedAt: number;
16005
+ }
16006
+ //#endregion
15798
16007
  //#region src/chat/terminal/protocol.d.ts
15799
16008
  /**
15800
16009
  * Terminals: the contract between the host that runs them (the daemon) and
@@ -16860,6 +17069,20 @@ type HostSignal = {
16860
17069
  truncated?: true;
16861
17070
  cancelled?: true;
16862
17071
  } |
17072
+ /** A chunk of a Run here's output (`sessions.runBlock`), to the connection that started it only. */
17073
+ {
17074
+ kind: 'block-run:data';
17075
+ runId: string;
17076
+ stream: 'stdout' | 'stderr';
17077
+ chunk: string;
17078
+ } |
17079
+ /** A Run here ended: the saved run, or why it could not run. To the connection that started it only. */
17080
+ {
17081
+ kind: 'block-run:end';
17082
+ runId: string;
17083
+ run?: BlockRun;
17084
+ error?: string;
17085
+ } |
16863
17086
  /** Git's progress on the connection's `git.clone`, to that connection only. */
16864
17087
  {
16865
17088
  kind: 'git:clone:progress';
@@ -16929,6 +17152,11 @@ type HostSignal = {
16929
17152
  op: 'create' | 'update' | 'delete';
16930
17153
  sessionId: string;
16931
17154
  } |
17155
+ /** A session's saved block runs changed (a Run here ended, a run was removed): windows read them again. */
17156
+ {
17157
+ kind: 'block-runs:changed';
17158
+ sessionId: string;
17159
+ } |
16932
17160
  /**
16933
17161
  * A session's facet values changed (`ctx.sessions.facets`): every facet
16934
17162
  * it holds now, keyed `<extensionId>.<key>`, the same as `SessionRow.facets`.
@@ -18499,6 +18727,49 @@ interface IpcMethods {
18499
18727
  cancelled: boolean;
18500
18728
  };
18501
18729
  };
18730
+ /**
18731
+ * Runs a shell block of a reply (Run here) in the session's folder, with no input. The reply names the run; its
18732
+ * output follows as `block-run:data` signals and ends with one `block-run:end` carrying the saved run, to this
18733
+ * connection only. Nothing enters the conversation; the run becomes the block's last (`sessions.blockRuns`),
18734
+ * announced to every window by `block-runs:changed`. A dropped connection stops what it started.
18735
+ */
18736
+ 'sessions.runBlock': {
18737
+ params: {
18738
+ sessionId: string;
18739
+ turnId: string;
18740
+ code: string;
18741
+ language: string;
18742
+ };
18743
+ result: {
18744
+ runId: string;
18745
+ };
18746
+ };
18747
+ /** Stops a Run here this connection started (`cancelled: false` when it is not running). */
18748
+ 'sessions.runBlockCancel': {
18749
+ params: {
18750
+ runId: string;
18751
+ };
18752
+ result: {
18753
+ cancelled: boolean;
18754
+ };
18755
+ };
18756
+ /** The session's saved block runs, by key (`blockRunKey`). */
18757
+ 'sessions.blockRuns': {
18758
+ params: {
18759
+ sessionId: string;
18760
+ };
18761
+ result: {
18762
+ runs: Record<string, BlockRun>;
18763
+ };
18764
+ };
18765
+ /** Forgets a block's saved run. */
18766
+ 'sessions.removeBlockRun': {
18767
+ params: {
18768
+ sessionId: string;
18769
+ key: string;
18770
+ };
18771
+ result: void;
18772
+ };
18502
18773
  /** Reads a text file from the session's workspace. */
18503
18774
  'sessions.workspaceReadFile': {
18504
18775
  params: {
@@ -21970,6 +22241,32 @@ interface ClaudeImportSelection {
21970
22241
  allProjects: boolean;
21971
22242
  }
21972
22243
  //#endregion
22244
+ //#region src/ipc/block-run.d.ts
22245
+ /** What {@link runBlockOnHost} needs of a client: a call (a server client's `call`, an IPC client's `request`) and its signals. */
22246
+ interface BlockRunClient {
22247
+ /** Calls a method on the host. */
22248
+ call: <M extends 'sessions.runBlock' | 'sessions.runBlockCancel'>(method: M, params: IpcParams<M>) => Promise<IpcResult<M>>;
22249
+ /** Hears the host's signals; returns the unsubscribe. */
22250
+ onSignal: (listener: (signal: HostSignal) => void) => () => void;
22251
+ }
22252
+ /** Options for {@link runBlockOnHost}. */
22253
+ interface BlockRunOnHostOptions {
22254
+ /** Output as it arrives. */
22255
+ onOutput?: (stream: 'stdout' | 'stderr', text: string) => void;
22256
+ /** Stops the run on the host. */
22257
+ signal?: AbortSignal;
22258
+ }
22259
+ /**
22260
+ * Runs a reply's shell block on a host and resolves with the saved run. Rejects with the host's reason when the
22261
+ * block could not run.
22262
+ *
22263
+ * @param client - The host's client.
22264
+ * @param sessionId - The session the reply is in.
22265
+ * @param request - The block.
22266
+ * @param options - Output listener and stop signal.
22267
+ */
22268
+ declare function runBlockOnHost(client: BlockRunClient, sessionId: string, request: BlockRunRequest, options?: BlockRunOnHostOptions): Promise<BlockRun>;
22269
+ //#endregion
21973
22270
  //#region src/ipc/browser-pair.d.ts
21974
22271
  /** Where a browser trades a pairing code for a device token (`POST`, JSON), relative to the server's origin. */
21975
22272
  declare const SERVER_PAIR_PATH = "/zidane/pair";
@@ -22382,5 +22679,5 @@ interface ServerClient {
22382
22679
  */
22383
22680
  declare function createServerClient(options: ServerClientOptions): ServerClient;
22384
22681
  //#endregion
22385
- export { CLIENT_SCOPES, type ClientScope, type ExtensionInstallErrorData, type ExtensionsClient, type ExtensionsTransport, type ExtensionsUiServer, type HelloResult, type HostSignal, IPC_MIN_PROTOCOL_VERSION, IPC_PROTOCOL_VERSION, IpcErrorCode, type IpcMethodName, type IpcMethods, type IpcParams, type IpcResult, METHOD_SCOPES, type PairBrowserOptions, type PairedBrowser, SERVER_AUTH_CHECK_PATH, SERVER_AUTH_PATH, SERVER_EXTENSIONS_UI_PATH, SERVER_EXTENSIONS_WEBVIEW_PATH, SERVER_MEDIA_PATH, SERVER_OAUTH_CALLBACK_PATH, SERVER_PAIR_PATH, ServerCallError, ServerClient, ServerClientOptions, ServerClientState, ServerConnectionError, ServerPairError, type ServerPairFailure, ServerRefusal, type SignalMeta, createExtensionsClient, createServerClient, extensionInstallErrorData, formatJoinString, methodScope, pairBrowser, parseJoinString, scopeAllows };
22682
+ export { type BlockRunClient, type BlockRunOnHostOptions, CLIENT_SCOPES, type ClientScope, type ExtensionInstallErrorData, type ExtensionsClient, type ExtensionsTransport, type ExtensionsUiServer, type HelloResult, type HostSignal, IPC_MIN_PROTOCOL_VERSION, IPC_PROTOCOL_VERSION, IpcErrorCode, type IpcMethodName, type IpcMethods, type IpcParams, type IpcResult, METHOD_SCOPES, type PairBrowserOptions, type PairedBrowser, SERVER_AUTH_CHECK_PATH, SERVER_AUTH_PATH, SERVER_EXTENSIONS_UI_PATH, SERVER_EXTENSIONS_WEBVIEW_PATH, SERVER_MEDIA_PATH, SERVER_OAUTH_CALLBACK_PATH, SERVER_PAIR_PATH, ServerCallError, ServerClient, ServerClientOptions, ServerClientState, ServerConnectionError, ServerPairError, type ServerPairFailure, ServerRefusal, type SignalMeta, createExtensionsClient, createServerClient, extensionInstallErrorData, formatJoinString, methodScope, pairBrowser, parseJoinString, runBlockOnHost, scopeAllows };
22386
22683
  //# sourceMappingURL=browser-types.d.ts.map