@dipoleml/dcode-cli 1.0.0 → 1.2.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 (447) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +1081 -12
  2. package/dist/dcode.cjs +59155 -45279
  3. package/dist/packages/browser-use-plugin/README.md +12 -12
  4. package/dist/packages/browser-use-plugin/docs/api.json +1 -1
  5. package/dist/packages/browser-use-plugin/docs/overview.md +5 -4
  6. package/dist/packages/browser-use-plugin/docs/workflow.md +1 -1
  7. package/dist/packages/browser-use-plugin/scripts/build.mjs +1 -0
  8. package/dist/packages/browser-use-plugin/skills/control-browser/SKILL.md +10 -7
  9. package/dist/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
  10. package/dist/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
  11. package/dist/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
  12. package/dist/packages/node-repl-host/.dcode-plugin/plugin.json +1 -1
  13. package/dist/packages/node-repl-host/dist/mcp/server.js +9 -14
  14. package/dist/packages/node-repl-host/scripts/build.mjs +1 -0
  15. package/dist/provider/dcode-builtin.json +6544 -183
  16. package/node_modules/@dcode/contracts/dist/compact/index.d.ts +7 -7
  17. package/node_modules/@dcode/contracts/dist/config/index.d.ts +1 -1
  18. package/node_modules/@dcode/contracts/dist/events/event-reducer.js +1 -0
  19. package/node_modules/@dcode/contracts/dist/events/in-memory-session-event-store.js +3 -2
  20. package/node_modules/@dcode/contracts/dist/events/session-event-retention.d.ts +8 -0
  21. package/node_modules/@dcode/contracts/dist/events/session-event-retention.js +18 -0
  22. package/node_modules/@dcode/contracts/dist/events/session.events.d.ts +94 -16
  23. package/node_modules/@dcode/contracts/dist/events/session.events.js +10 -0
  24. package/node_modules/@dcode/contracts/dist/hooks/index.d.ts +134 -134
  25. package/node_modules/@dcode/contracts/dist/hooks/workspace-hook-trust.d.ts +14 -14
  26. package/node_modules/@dcode/contracts/dist/index.d.ts +2 -0
  27. package/node_modules/@dcode/contracts/dist/index.js +2 -0
  28. package/node_modules/@dcode/contracts/dist/interfaces/browser-control.port.d.ts +22 -0
  29. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.d.ts +92 -0
  30. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.js +9 -0
  31. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.d.ts +4 -4
  32. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.js +7 -3
  33. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-workspace.port.js +8 -3
  34. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.d.ts +119 -18
  35. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.js +13 -0
  36. package/node_modules/@dcode/contracts/dist/interfaces/index.d.ts +1 -0
  37. package/node_modules/@dcode/contracts/dist/interfaces/index.js +1 -0
  38. package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.d.ts +161 -1
  39. package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.js +17 -0
  40. package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.d.ts +15 -15
  41. package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.js +1 -1
  42. package/node_modules/@dcode/contracts/dist/interfaces/permission.port.d.ts +15 -1
  43. package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.d.ts +19 -0
  44. package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.js +1 -0
  45. package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.d.ts +4 -2
  46. package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.js +5 -0
  47. package/node_modules/@dcode/contracts/dist/interfaces/session.port.d.ts +92 -3
  48. package/node_modules/@dcode/contracts/dist/interfaces/session.port.js +4 -1
  49. package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.d.ts +25 -0
  50. package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.js +1 -0
  51. package/node_modules/@dcode/contracts/dist/model/index.d.ts +15 -1
  52. package/node_modules/@dcode/contracts/dist/model/index.js +5 -0
  53. package/node_modules/@dcode/contracts/dist/model/invocation-context.d.ts +6 -1
  54. package/node_modules/@dcode/contracts/dist/plugins/index.d.ts +23 -0
  55. package/node_modules/@dcode/contracts/dist/plugins/index.js +2 -1
  56. package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.d.ts +2 -0
  57. package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.js +2 -0
  58. package/node_modules/@dcode/contracts/dist/telemetry/index.d.ts +5 -1
  59. package/node_modules/@dcode/contracts/dist/telemetry/index.js +12 -0
  60. package/node_modules/@dcode/contracts/dist/tools/agent.d.ts +12 -12
  61. package/node_modules/@dcode/contracts/dist/tools/amend-workflow.d.ts +39 -15
  62. package/node_modules/@dcode/contracts/dist/tools/amend-workflow.js +12 -6
  63. package/node_modules/@dcode/contracts/dist/tools/automation.d.ts +32 -32
  64. package/node_modules/@dcode/contracts/dist/tools/automation.js +1 -1
  65. package/node_modules/@dcode/contracts/dist/tools/bash.d.ts +16 -16
  66. package/node_modules/@dcode/contracts/dist/tools/bash.js +1 -1
  67. package/node_modules/@dcode/contracts/dist/tools/create-workflow.d.ts +365 -66
  68. package/node_modules/@dcode/contracts/dist/tools/create-workflow.js +92 -11
  69. package/node_modules/@dcode/contracts/dist/tools/edit.d.ts +16 -16
  70. package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.d.ts +6 -6
  71. package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.js +5 -1
  72. package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.d.ts +729 -0
  73. package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.js +102 -0
  74. package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.d.ts +136 -28
  75. package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.js +36 -0
  76. package/node_modules/@dcode/contracts/dist/tools/grep.d.ts +4 -4
  77. package/node_modules/@dcode/contracts/dist/tools/grep.js +4 -0
  78. package/node_modules/@dcode/contracts/dist/tools/index.d.ts +2 -0
  79. package/node_modules/@dcode/contracts/dist/tools/index.js +4 -0
  80. package/node_modules/@dcode/contracts/dist/tools/list-saved-workflows.d.ts +8 -8
  81. package/node_modules/@dcode/contracts/dist/tools/list-workflow-runs.d.ts +8 -8
  82. package/node_modules/@dcode/contracts/dist/tools/node-repl.d.ts +2 -2
  83. package/node_modules/@dcode/contracts/dist/tools/off-peak.d.ts +3 -3
  84. package/node_modules/@dcode/contracts/dist/tools/off-peak.js +2 -2
  85. package/node_modules/@dcode/contracts/dist/tools/performance.d.ts +22 -22
  86. package/node_modules/@dcode/contracts/dist/tools/plan-mode.d.ts +12 -12
  87. package/node_modules/@dcode/contracts/dist/tools/plan-mode.js +6 -4
  88. package/node_modules/@dcode/contracts/dist/tools/read-session-context.d.ts +86 -13
  89. package/node_modules/@dcode/contracts/dist/tools/read-session-context.js +37 -6
  90. package/node_modules/@dcode/contracts/dist/tools/read.d.ts +38 -38
  91. package/node_modules/@dcode/contracts/dist/tools/save-workflow.d.ts +21 -10
  92. package/node_modules/@dcode/contracts/dist/tools/save-workflow.js +22 -2
  93. package/node_modules/@dcode/contracts/dist/tools/saved-workflow.d.ts +4 -4
  94. package/node_modules/@dcode/contracts/dist/tools/send-message.d.ts +2 -2
  95. package/node_modules/@dcode/contracts/dist/tools/skill.js +1 -0
  96. package/node_modules/@dcode/contracts/dist/tools/task-output.d.ts +6 -6
  97. package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.d.ts +1228 -259
  98. package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.js +41 -0
  99. package/node_modules/@dcode/contracts/dist/tools/webfetch.d.ts +2 -2
  100. package/node_modules/@dcode/contracts/dist/tools/workflow-observation-display.d.ts +20 -20
  101. package/node_modules/@dcode/contracts/dist/tools/workflow-settings.d.ts +55 -0
  102. package/node_modules/@dcode/contracts/dist/tools/workflow-settings.js +86 -0
  103. package/node_modules/@dcode/contracts/dist/tools/workflow.d.ts +8 -8
  104. package/node_modules/@dcode/contracts/dist/tools/write.d.ts +18 -18
  105. package/node_modules/@dcode/contracts/dist/workflow/index.d.ts +98 -98
  106. package/node_modules/@dcode/contracts/dist/workflow/script.d.ts +12 -12
  107. package/node_modules/@dcode/i18n/dist/index.js +2 -2
  108. package/node_modules/@dcode/i18n/dist/locale.d.ts +1 -1
  109. package/node_modules/@dcode/i18n/dist/locale.js +4 -4
  110. package/node_modules/@dcode/i18n/dist/locales/en-US.js +5 -5
  111. package/node_modules/@dcode/i18n/dist/locales/fr-CA.d.ts +3 -0
  112. package/node_modules/@dcode/i18n/dist/locales/fr-CA.js +354 -0
  113. package/node_modules/@dcode/model-option-map/package.json +1 -1
  114. package/node_modules/@dcode/shared/dist/api-key-usage-scene.d.ts +7 -0
  115. package/node_modules/@dcode/shared/dist/api-key-usage-scene.js +6 -0
  116. package/node_modules/@dcode/shared/dist/attachment-source.d.ts +8 -0
  117. package/node_modules/@dcode/shared/dist/attachment-source.js +4 -0
  118. package/node_modules/@dcode/shared/dist/background-bash-output.d.ts +4 -4
  119. package/node_modules/@dcode/shared/dist/bots.d.ts +759 -11
  120. package/node_modules/@dcode/shared/dist/bots.js +236 -2
  121. package/node_modules/@dcode/shared/dist/browser-use/command-metadata.d.ts +2 -2
  122. package/node_modules/@dcode/shared/dist/browser-use/commands.d.ts +4 -3
  123. package/node_modules/@dcode/shared/dist/browser-use/commands.js +3 -1
  124. package/node_modules/@dcode/shared/dist/browser-use/nodeReplBroker.d.ts +5 -4
  125. package/node_modules/@dcode/shared/dist/browser-use/result.d.ts +6 -6
  126. package/node_modules/@dcode/shared/dist/channel-mention.d.ts +173 -0
  127. package/node_modules/@dcode/shared/dist/channel-mention.js +120 -0
  128. package/node_modules/@dcode/shared/dist/channels.d.ts +128 -1
  129. package/node_modules/@dcode/shared/dist/channels.js +66 -0
  130. package/node_modules/@dcode/shared/dist/clientConfig.d.ts +1 -0
  131. package/node_modules/@dcode/shared/dist/clientConfig.js +18 -2
  132. package/node_modules/@dcode/shared/dist/cloudContent.d.ts +160 -0
  133. package/node_modules/@dcode/shared/dist/cloudContent.js +116 -0
  134. package/node_modules/@dcode/shared/dist/coding-plan-subscription.d.ts +59 -0
  135. package/node_modules/@dcode/shared/dist/conversation-message-projection-policy.js +2 -0
  136. package/node_modules/@dcode/shared/dist/conversation-share.d.ts +378 -74
  137. package/node_modules/@dcode/shared/dist/conversation-share.js +8 -6
  138. package/node_modules/@dcode/shared/dist/conversationSelection.d.ts +23 -0
  139. package/node_modules/@dcode/shared/dist/conversationSelection.js +30 -0
  140. package/node_modules/@dcode/shared/dist/database-startup.d.ts +5 -5
  141. package/node_modules/@dcode/shared/dist/dcode-agent-model-state.js +14 -6
  142. package/node_modules/@dcode/shared/dist/dcode-agent-policy.d.ts +16 -1
  143. package/node_modules/@dcode/shared/dist/dcode-agent-policy.js +17 -1
  144. package/node_modules/@dcode/shared/dist/dcode-agent-runtime.js +1 -1
  145. package/node_modules/@dcode/shared/dist/dcode-protocol/index.d.ts +3215 -1800
  146. package/node_modules/@dcode/shared/dist/dcode-protocol/index.js +555 -24
  147. package/node_modules/@dcode/shared/dist/dcode-protocol/trace.d.ts +9 -0
  148. package/node_modules/@dcode/shared/dist/dcode-protocol/trace.js +10 -0
  149. package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.d.ts +30 -20
  150. package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.js +3 -1
  151. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/apply.js +12 -3
  152. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.d.ts +5 -0
  153. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.js +3 -0
  154. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.d.ts +3 -1
  155. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.js +3 -1
  156. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.d.ts +388 -57
  157. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.js +67 -45
  158. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/controller.d.ts +208 -103
  159. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.d.ts +20 -0
  160. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.js +15 -0
  161. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.d.ts +34 -0
  162. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.js +45 -1
  163. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.d.ts +1453 -278
  164. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.js +45 -2
  165. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.d.ts +1 -0
  166. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.js +1 -0
  167. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.d.ts +173 -6
  168. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.js +29 -0
  169. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.d.ts +731 -125
  170. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.js +23 -11
  171. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.d.ts +30 -11
  172. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.js +35 -3
  173. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index.d.ts +40 -25
  174. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.d.ts +1444 -216
  175. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.js +3 -0
  176. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.d.ts +1 -0
  177. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.js +1 -1
  178. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/telemetry.d.ts +62 -58
  179. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.d.ts +185 -50
  180. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.js +31 -3
  181. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.d.ts +7728 -1585
  182. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.js +18 -5
  183. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-assembler.js +2 -1
  184. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-fault.js +4 -1
  185. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-reassembly.js +5 -3
  186. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.d.ts +29 -1
  187. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.js +64 -4
  188. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.d.ts +13 -0
  189. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.js +23 -0
  190. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-observation-display.d.ts +14 -14
  191. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.d.ts +52 -8
  192. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.js +22 -3
  193. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.d.ts +4 -4
  194. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.js +2 -2
  195. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.d.ts +21 -0
  196. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.js +44 -0
  197. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.d.ts +1 -1
  198. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.js +3 -2
  199. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-caps.js +5 -4
  200. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.d.ts +26 -19
  201. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.js +40 -32
  202. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.d.ts +4 -3
  203. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.js +4 -3
  204. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.d.ts +12 -2
  205. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.js +44 -6
  206. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.d.ts +2 -2
  207. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.js +17 -10
  208. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.d.ts +33 -0
  209. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.js +202 -0
  210. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.d.ts +1 -1
  211. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.js +1 -1
  212. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-phases.js +10 -1
  213. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.d.ts +1 -1
  214. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.js +29 -22
  215. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-started.js +5 -2
  216. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-tables.js +2 -1
  217. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-unlisted.js +6 -3
  218. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.d.ts +125 -40
  219. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.js +101 -26
  220. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-workspace.d.ts +4 -4
  221. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workspace-hook-review.d.ts +1 -1
  222. package/node_modules/@dcode/shared/dist/dcode-session-content-profile.d.ts +5 -0
  223. package/node_modules/@dcode/shared/dist/dcode-session-content-profile.js +49 -0
  224. package/node_modules/@dcode/shared/dist/dcode-slash-command-help.js +4 -4
  225. package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.d.ts +6 -1
  226. package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.js +13 -1
  227. package/node_modules/@dcode/shared/dist/dcode-task-types-core.d.ts +12 -2
  228. package/node_modules/@dcode/shared/dist/dcode-task-types.d.ts +23 -0
  229. package/node_modules/@dcode/shared/dist/dcodeEndpoint.d.ts +22 -1
  230. package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +102 -17
  231. package/node_modules/@dcode/shared/dist/desktopMenu.js +48 -48
  232. package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.d.ts +35 -6
  233. package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.js +45 -6
  234. package/node_modules/@dcode/shared/dist/env.d.ts +5 -4
  235. package/node_modules/@dcode/shared/dist/env.js +9 -9
  236. package/node_modules/@dcode/shared/dist/errors.d.ts +24 -0
  237. package/node_modules/@dcode/shared/dist/errors.js +54 -0
  238. package/node_modules/@dcode/shared/dist/execution-state.d.ts +4 -2
  239. package/node_modules/@dcode/shared/dist/execution-state.js +1 -1
  240. package/node_modules/@dcode/shared/dist/feedback.d.ts +1 -1
  241. package/node_modules/@dcode/shared/dist/gen-ui/contract.d.ts +140 -0
  242. package/node_modules/@dcode/shared/dist/gen-ui/contract.example.d.ts +5 -0
  243. package/node_modules/@dcode/shared/dist/gen-ui/contract.example.js +36 -0
  244. package/node_modules/@dcode/shared/dist/gen-ui/contract.js +196 -0
  245. package/node_modules/@dcode/shared/dist/gen-ui/contract.test.d.ts +2 -0
  246. package/node_modules/@dcode/shared/dist/gen-ui/contract.test.js +75 -0
  247. package/node_modules/@dcode/shared/dist/gen-ui/index.d.ts +2 -0
  248. package/node_modules/@dcode/shared/dist/gen-ui/index.js +2 -0
  249. package/node_modules/@dcode/shared/dist/gen-ui/module.d.ts +7 -0
  250. package/node_modules/@dcode/shared/dist/gen-ui/module.js +7 -0
  251. package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.d.ts +202 -0
  252. package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.js +126 -0
  253. package/node_modules/@dcode/shared/dist/helpAppConfig.d.ts +1 -1
  254. package/node_modules/@dcode/shared/dist/helpAppConfig.js +2 -2
  255. package/node_modules/@dcode/shared/dist/highspeed.d.ts +181 -0
  256. package/node_modules/@dcode/shared/dist/highspeed.js +112 -0
  257. package/node_modules/@dcode/shared/dist/index.d.ts +27 -5
  258. package/node_modules/@dcode/shared/dist/index.js +24 -2
  259. package/node_modules/@dcode/shared/dist/localTtft.d.ts +27 -27
  260. package/node_modules/@dcode/shared/dist/marketingTouch.d.ts +930 -0
  261. package/node_modules/@dcode/shared/dist/marketingTouch.js +170 -0
  262. package/node_modules/@dcode/shared/dist/mcp-apps/appTools.d.ts +83 -0
  263. package/node_modules/@dcode/shared/dist/mcp-apps/appTools.js +124 -0
  264. package/node_modules/@dcode/shared/dist/mcp-apps/content.d.ts +4 -0
  265. package/node_modules/@dcode/shared/dist/mcp-apps/content.js +8 -0
  266. package/node_modules/@dcode/shared/dist/mcp-apps/contract.d.ts +241 -0
  267. package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.d.ts +31 -0
  268. package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.js +42 -0
  269. package/node_modules/@dcode/shared/dist/mcp-apps/contract.js +101 -0
  270. package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.d.ts +2 -0
  271. package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.js +64 -0
  272. package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.d.ts +47 -0
  273. package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.js +8 -0
  274. package/node_modules/@dcode/shared/dist/mcp-apps/index.d.ts +9 -0
  275. package/node_modules/@dcode/shared/dist/mcp-apps/index.js +9 -0
  276. package/node_modules/@dcode/shared/dist/mcp-apps/instance.d.ts +10 -0
  277. package/node_modules/@dcode/shared/dist/mcp-apps/instance.js +11 -0
  278. package/node_modules/@dcode/shared/dist/mcp-apps/module.d.ts +12 -0
  279. package/node_modules/@dcode/shared/dist/mcp-apps/module.js +12 -0
  280. package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.d.ts +8 -0
  281. package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.js +73 -0
  282. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.d.ts +101 -0
  283. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.js +107 -0
  284. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.d.ts +2 -0
  285. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.js +55 -0
  286. package/node_modules/@dcode/shared/dist/mcp-apps/schemas.d.ts +78 -0
  287. package/node_modules/@dcode/shared/dist/mcp-apps/schemas.js +65 -0
  288. package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.d.ts +39 -0
  289. package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.js +199 -0
  290. package/node_modules/@dcode/shared/dist/mcp.d.ts +6 -2
  291. package/node_modules/@dcode/shared/dist/memory.d.ts +9 -0
  292. package/node_modules/@dcode/shared/dist/memory.js +2 -0
  293. package/node_modules/@dcode/shared/dist/model-execution.d.ts +31 -0
  294. package/node_modules/@dcode/shared/dist/model-execution.js +38 -0
  295. package/node_modules/@dcode/shared/dist/networkCapture.d.ts +49 -0
  296. package/node_modules/@dcode/shared/dist/networkCapture.js +41 -0
  297. package/node_modules/@dcode/shared/dist/node/genUiPaths.d.ts +6 -0
  298. package/node_modules/@dcode/shared/dist/node/genUiPaths.js +16 -0
  299. package/node_modules/@dcode/shared/dist/node/genUiPaths.test.d.ts +2 -0
  300. package/node_modules/@dcode/shared/dist/node/genUiPaths.test.js +30 -0
  301. package/node_modules/@dcode/shared/dist/node/networkCapture.d.ts +8 -0
  302. package/node_modules/@dcode/shared/dist/node/networkCapture.js +96 -0
  303. package/node_modules/@dcode/shared/dist/node/officialPluginCache.d.ts +1 -2
  304. package/node_modules/@dcode/shared/dist/node/subagentMarkdownMigration.d.ts +1 -2
  305. package/node_modules/@dcode/shared/dist/node.d.ts +2 -0
  306. package/node_modules/@dcode/shared/dist/node.js +2 -0
  307. package/node_modules/@dcode/shared/dist/output-style.d.ts +17 -0
  308. package/node_modules/@dcode/shared/dist/output-style.js +2 -0
  309. package/node_modules/@dcode/shared/dist/platform.d.ts +149 -1
  310. package/node_modules/@dcode/shared/dist/platform.js +2 -0
  311. package/node_modules/@dcode/shared/dist/platformUpdate.d.ts +61 -0
  312. package/node_modules/@dcode/shared/dist/platformUpdate.js +2 -0
  313. package/node_modules/@dcode/shared/dist/plugin-marketplaces.d.ts +5 -0
  314. package/node_modules/@dcode/shared/dist/plugin-marketplaces.js +20 -14
  315. package/node_modules/@dcode/shared/dist/project-access-token-client.d.ts +42 -0
  316. package/node_modules/@dcode/shared/dist/project-access-token-client.js +260 -0
  317. package/node_modules/@dcode/shared/dist/project-access-token-response.d.ts +4 -0
  318. package/node_modules/@dcode/shared/dist/project-access-token-response.js +9 -0
  319. package/node_modules/@dcode/shared/dist/project-access-token.d.ts +45 -0
  320. package/node_modules/@dcode/shared/dist/project-access-token.js +164 -0
  321. package/node_modules/@dcode/shared/dist/protocol.d.ts +46 -4
  322. package/node_modules/@dcode/shared/dist/protocol.js +1 -1
  323. package/node_modules/@dcode/shared/dist/provider-provisioning.d.ts +26 -2
  324. package/node_modules/@dcode/shared/dist/provider-provisioning.js +19 -3
  325. package/node_modules/@dcode/shared/dist/providers.d.ts +1 -2
  326. package/node_modules/@dcode/shared/dist/providers.js +1 -1
  327. package/node_modules/@dcode/shared/dist/remote-workspace-identity.d.ts +6 -1
  328. package/node_modules/@dcode/shared/dist/remote-workspace-identity.js +35 -1
  329. package/node_modules/@dcode/shared/dist/remoteAppConfig.js +1 -1
  330. package/node_modules/@dcode/shared/dist/remoteEnvironmentKey.js +19 -0
  331. package/node_modules/@dcode/shared/dist/remoteTarget.d.ts +14 -1
  332. package/node_modules/@dcode/shared/dist/remoteTarget.js +4 -0
  333. package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.d.ts +27 -0
  334. package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.js +43 -0
  335. package/node_modules/@dcode/shared/dist/rendererActionTrace.d.ts +35 -35
  336. package/node_modules/@dcode/shared/dist/request-security-edition/index.d.ts +3 -0
  337. package/node_modules/@dcode/shared/dist/request-security-edition/index.js +3 -0
  338. package/node_modules/@dcode/shared/dist/request-security-edition/policy.d.ts +3 -0
  339. package/node_modules/@dcode/shared/dist/request-security-edition/policy.js +5 -0
  340. package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.d.ts +19 -0
  341. package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.js +29 -0
  342. package/node_modules/@dcode/shared/dist/rewardsBridge.d.ts +8 -0
  343. package/node_modules/@dcode/shared/dist/rewardsBridge.js +80 -0
  344. package/node_modules/@dcode/shared/dist/rewardsEmbedded.d.ts +37 -0
  345. package/node_modules/@dcode/shared/dist/rewardsEmbedded.js +50 -0
  346. package/node_modules/@dcode/shared/dist/sessionCreateTelemetry.d.ts +3 -3
  347. package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.d.ts +10 -0
  348. package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.js +212 -0
  349. package/node_modules/@dcode/shared/dist/subagent-profile-parser.d.ts +10 -0
  350. package/node_modules/@dcode/shared/dist/subagent-profile-parser.js +200 -0
  351. package/node_modules/@dcode/shared/dist/subagent-profile.d.ts +82 -0
  352. package/node_modules/@dcode/shared/dist/subagent-profile.js +28 -0
  353. package/node_modules/@dcode/shared/dist/subagent-runtime-config.d.ts +135 -0
  354. package/node_modules/@dcode/shared/dist/subagent-runtime-config.js +39 -0
  355. package/node_modules/@dcode/shared/dist/subagents-types.d.ts +1 -1
  356. package/node_modules/@dcode/shared/dist/task-realtime-core.d.ts +57 -24
  357. package/node_modules/@dcode/shared/dist/task-realtime-core.js +8 -2
  358. package/node_modules/@dcode/shared/dist/test-ids-workflow.d.ts +4 -0
  359. package/node_modules/@dcode/shared/dist/test-ids-workflow.js +5 -0
  360. package/node_modules/@dcode/shared/dist/test-ids.d.ts +25 -0
  361. package/node_modules/@dcode/shared/dist/test-ids.js +25 -0
  362. package/node_modules/@dcode/shared/dist/tool-identity.d.ts +1 -1
  363. package/node_modules/@dcode/shared/dist/tool-identity.js +4 -0
  364. package/node_modules/@dcode/shared/dist/tool-plan-adapter.js +14 -1
  365. package/node_modules/@dcode/shared/dist/usage-stats.d.ts +13 -0
  366. package/node_modules/@dcode/shared/dist/validation.d.ts +1542 -166
  367. package/node_modules/@dcode/shared/dist/validation.js +423 -14
  368. package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +70 -14
  369. package/node_modules/@dcode/shared/dist/validationAppSettings.js +74 -12
  370. package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.d.ts +8 -0
  371. package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.js +40 -0
  372. package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.d.ts +183 -0
  373. package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.js +562 -0
  374. package/node_modules/@dcode/shared/dist/web-remote-control.d.ts +645 -0
  375. package/node_modules/@dcode/shared/dist/web-remote-control.js +174 -0
  376. package/node_modules/@dcode/shared/package.json +5 -2
  377. package/node_modules/@dcode/tui/dist/app-approval-panel.js +3 -2
  378. package/node_modules/@dcode/tui/dist/app-approval.d.ts +3 -1
  379. package/node_modules/@dcode/tui/dist/app-approval.js +9 -5
  380. package/node_modules/@dcode/tui/dist/app-compact-timeline.d.ts +3 -0
  381. package/node_modules/@dcode/tui/dist/app-compact-timeline.js +5 -2
  382. package/node_modules/@dcode/tui/dist/app-empty-transcript.d.ts +1 -0
  383. package/node_modules/@dcode/tui/dist/app-empty-transcript.js +1 -1
  384. package/node_modules/@dcode/tui/dist/app-file-mentions.d.ts +2 -0
  385. package/node_modules/@dcode/tui/dist/app-file-mentions.js +2 -2
  386. package/node_modules/@dcode/tui/dist/app-input-pane.d.ts +38 -0
  387. package/node_modules/@dcode/tui/dist/app-input-pane.js +19 -19
  388. package/node_modules/@dcode/tui/dist/app-input-status.d.ts +17 -0
  389. package/node_modules/@dcode/tui/dist/app-input-status.js +4 -4
  390. package/node_modules/@dcode/tui/dist/app-input.d.ts +1 -0
  391. package/node_modules/@dcode/tui/dist/app-input.js +1 -1
  392. package/node_modules/@dcode/tui/dist/app-markdown-theme.d.ts +2 -1
  393. package/node_modules/@dcode/tui/dist/app-markdown-theme.js +1 -1
  394. package/node_modules/@dcode/tui/dist/app-markdown.d.ts +1 -0
  395. package/node_modules/@dcode/tui/dist/app-markdown.js +1 -1
  396. package/node_modules/@dcode/tui/dist/app-mode-command.d.ts +3 -0
  397. package/node_modules/@dcode/tui/dist/app-mode-command.js +4 -4
  398. package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.d.ts +5 -0
  399. package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.js +1 -1
  400. package/node_modules/@dcode/tui/dist/app-mode.d.ts +1 -1
  401. package/node_modules/@dcode/tui/dist/app-mode.js +1 -1
  402. package/node_modules/@dcode/tui/dist/app-model-ref.d.ts +1 -0
  403. package/node_modules/@dcode/tui/dist/app-model-ref.js +1 -1
  404. package/node_modules/@dcode/tui/dist/app-motion.d.ts +13 -0
  405. package/node_modules/@dcode/tui/dist/app-motion.js +17 -7
  406. package/node_modules/@dcode/tui/dist/app-session-event-handler.d.ts +33 -0
  407. package/node_modules/@dcode/tui/dist/app-session-event-handler.js +4 -4
  408. package/node_modules/@dcode/tui/dist/app-shiki-diff-view.d.ts +18 -1
  409. package/node_modules/@dcode/tui/dist/app-shiki-diff-view.js +3 -3
  410. package/node_modules/@dcode/tui/dist/app-shiki-highlighter.d.ts +3 -0
  411. package/node_modules/@dcode/tui/dist/app-shiki-highlighter.js +7 -2
  412. package/node_modules/@dcode/tui/dist/app-sidebar-layout.d.ts +10 -0
  413. package/node_modules/@dcode/tui/dist/app-sidebar-layout.js +4 -4
  414. package/node_modules/@dcode/tui/dist/app-submit.d.ts +1 -0
  415. package/node_modules/@dcode/tui/dist/app-submit.js +1 -1
  416. package/node_modules/@dcode/tui/dist/app-thought-components.d.ts +7 -0
  417. package/node_modules/@dcode/tui/dist/app-thought-components.js +2 -2
  418. package/node_modules/@dcode/tui/dist/app-tool-transcript.d.ts +1 -0
  419. package/node_modules/@dcode/tui/dist/app-tool-transcript.js +3 -0
  420. package/node_modules/@dcode/tui/dist/app-view.d.ts +27 -0
  421. package/node_modules/@dcode/tui/dist/app-view.js +1 -1
  422. package/node_modules/@dcode/tui/dist/app-workflow-card.js +1 -1
  423. package/node_modules/@dcode/tui/dist/app-workflow-seed.d.ts +18 -1
  424. package/node_modules/@dcode/tui/dist/app-workflow-seed.js +4 -4
  425. package/node_modules/@dcode/tui/dist/index.js +5117 -2578
  426. package/node_modules/@dcode/tui/dist/tui.d.ts +3 -0
  427. package/node_modules/@dcode/tui/dist/tui.js +1 -1
  428. package/node_modules/@dcode/tui/dist/types.d.ts +1 -1
  429. package/node_modules/oniguruma-parser/LICENSE +1 -1
  430. package/node_modules/oniguruma-parser/README.md +15 -61
  431. package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +4 -4
  432. package/node_modules/oniguruma-parser/dist/parser/parse.js +1 -1
  433. package/node_modules/oniguruma-parser/dist/traverser/traverse.js +1 -1
  434. package/node_modules/oniguruma-parser/package.json +5 -5
  435. package/node_modules/oniguruma-to-es/dist/cjs/generate.d.ts +1 -1
  436. package/node_modules/oniguruma-to-es/dist/cjs/index.js +121 -120
  437. package/node_modules/oniguruma-to-es/dist/cjs/subclass.d.ts +2 -2
  438. package/node_modules/oniguruma-to-es/dist/cjs/transform.d.ts +3 -5
  439. package/node_modules/oniguruma-to-es/dist/cjs/unicode.d.ts +1 -1
  440. package/node_modules/oniguruma-to-es/dist/esm/generate.d.ts +1 -1
  441. package/node_modules/oniguruma-to-es/dist/esm/index.js +1 -3
  442. package/node_modules/oniguruma-to-es/dist/esm/subclass.d.ts +2 -2
  443. package/node_modules/oniguruma-to-es/dist/esm/transform.d.ts +3 -5
  444. package/node_modules/oniguruma-to-es/dist/esm/unicode.d.ts +1 -1
  445. package/node_modules/oniguruma-to-es/dist/index.min.js +6 -6
  446. package/node_modules/oniguruma-to-es/package.json +5 -5
  447. package/package.json +5 -5
@@ -98,14 +98,14 @@ export declare const cuaRequestAccessStatusDisplaySchema: z.ZodObject<{
98
98
  accessibility: z.ZodEnum<["granted", "stale", "denied"]>;
99
99
  screenRecording: z.ZodEnum<["granted", "denied", "unknown"]>;
100
100
  }, "strict", z.ZodTypeAny, {
101
- accessibility: "granted" | "stale" | "denied";
102
101
  schemaVersion: 1;
102
+ accessibility: "granted" | "stale" | "denied";
103
103
  platform: "darwin";
104
104
  grantOwner: string;
105
105
  screenRecording: "unknown" | "granted" | "denied";
106
106
  }, {
107
- accessibility: "granted" | "stale" | "denied";
108
107
  schemaVersion: 1;
108
+ accessibility: "granted" | "stale" | "denied";
109
109
  platform: "darwin";
110
110
  grantOwner: string;
111
111
  screenRecording: "unknown" | "granted" | "denied";
@@ -189,13 +189,13 @@ export declare const localAgentMessageToolResultDisplayPayloadSchema: z.ZodObjec
189
189
  }, "strict", z.ZodTypeAny, {
190
190
  kind: "local_agent_message";
191
191
  status: "success" | "failed";
192
- message?: string | undefined;
193
192
  error?: string | undefined;
193
+ message?: string | undefined;
194
194
  }, {
195
195
  kind: "local_agent_message";
196
196
  status: "success" | "failed";
197
- message?: string | undefined;
198
197
  error?: string | undefined;
198
+ message?: string | undefined;
199
199
  }>;
200
200
  export declare const taskStopToolResultDisplayPayloadSchema: z.ZodObject<{
201
201
  kind: z.ZodLiteral<"task_stop">;
@@ -323,14 +323,14 @@ export declare const cuaToolResultDisplayPayloadSchema: z.ZodObject<{
323
323
  accessibility: z.ZodEnum<["granted", "stale", "denied"]>;
324
324
  screenRecording: z.ZodEnum<["granted", "denied", "unknown"]>;
325
325
  }, "strict", z.ZodTypeAny, {
326
- accessibility: "granted" | "stale" | "denied";
327
326
  schemaVersion: 1;
327
+ accessibility: "granted" | "stale" | "denied";
328
328
  platform: "darwin";
329
329
  grantOwner: string;
330
330
  screenRecording: "unknown" | "granted" | "denied";
331
331
  }, {
332
- accessibility: "granted" | "stale" | "denied";
333
332
  schemaVersion: 1;
333
+ accessibility: "granted" | "stale" | "denied";
334
334
  platform: "darwin";
335
335
  grantOwner: string;
336
336
  screenRecording: "unknown" | "granted" | "denied";
@@ -350,16 +350,16 @@ export declare const cuaToolResultDisplayPayloadSchema: z.ZodObject<{
350
350
  }>, "many">>;
351
351
  truncated: z.ZodOptional<z.ZodBoolean>;
352
352
  }, "strict", z.ZodTypeAny, {
353
+ schemaVersion: 1;
353
354
  kind: "cua";
354
355
  toolName: string;
355
356
  status: "success" | "failed";
356
- schemaVersion: 1;
357
357
  input?: string | undefined;
358
- truncated?: boolean | undefined;
359
358
  text?: string | undefined;
359
+ truncated?: boolean | undefined;
360
360
  permissionStatus?: {
361
- accessibility: "granted" | "stale" | "denied";
362
361
  schemaVersion: 1;
362
+ accessibility: "granted" | "stale" | "denied";
363
363
  platform: "darwin";
364
364
  grantOwner: string;
365
365
  screenRecording: "unknown" | "granted" | "denied";
@@ -387,16 +387,16 @@ export declare const cuaToolResultDisplayPayloadSchema: z.ZodObject<{
387
387
  artifactUri?: string | undefined;
388
388
  }[] | undefined;
389
389
  }, {
390
+ schemaVersion: 1;
390
391
  kind: "cua";
391
392
  toolName: string;
392
393
  status: "success" | "failed";
393
- schemaVersion: 1;
394
394
  input?: string | undefined;
395
- truncated?: boolean | undefined;
396
395
  text?: string | undefined;
396
+ truncated?: boolean | undefined;
397
397
  permissionStatus?: {
398
- accessibility: "granted" | "stale" | "denied";
399
398
  schemaVersion: 1;
399
+ accessibility: "granted" | "stale" | "denied";
400
400
  platform: "darwin";
401
401
  grantOwner: string;
402
402
  screenRecording: "unknown" | "granted" | "denied";
@@ -466,27 +466,91 @@ export declare const nodeReplImageToolResultDisplayPayloadSchema: z.ZodObject<{
466
466
  }, "strict", z.ZodTypeAny, {
467
467
  kind: "node_repl_images";
468
468
  truncated?: boolean | undefined;
469
+ app?: {
470
+ appKey: string;
471
+ displayName?: string | undefined;
472
+ } | undefined;
469
473
  source?: "browser_turn_end" | undefined;
470
474
  images?: {
471
475
  mimeType: string;
472
476
  base64: string;
473
477
  }[] | undefined;
478
+ }, {
479
+ kind: "node_repl_images";
480
+ truncated?: boolean | undefined;
474
481
  app?: {
475
482
  appKey: string;
476
483
  displayName?: string | undefined;
477
484
  } | undefined;
478
- }, {
479
- kind: "node_repl_images";
480
- truncated?: boolean | undefined;
481
485
  source?: "browser_turn_end" | undefined;
482
486
  images?: {
483
487
  mimeType: string;
484
488
  base64: string;
485
489
  }[] | undefined;
486
- app?: {
487
- appKey: string;
488
- displayName?: string | undefined;
490
+ }>;
491
+ /**
492
+ * 插件 UI 元数据。
493
+ * contracts 仍在 zod v3,无法直接复用 `@dcode/shared/mcp-apps` 的 zod v4 schema 对象,这里按同一常量
494
+ * 手写一份;字段集合与 `mcpToolDisplayUiSchema` 必须一致,由 core/tests/mcp-ui-display.test.ts 用同一
495
+ * fixture 双侧 parse 锁住。
496
+ */
497
+ export declare const mcpToolDisplayUiPayloadSchema: z.ZodObject<{
498
+ pluginId: z.ZodString;
499
+ resourceUri: z.ZodString;
500
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen", "pip"]>>;
501
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
502
+ csp: z.ZodOptional<z.ZodObject<{
503
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
504
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
505
+ }, "strict", z.ZodTypeAny, {
506
+ connectDomains?: string[] | undefined;
507
+ resourceDomains?: string[] | undefined;
508
+ }, {
509
+ connectDomains?: string[] | undefined;
510
+ resourceDomains?: string[] | undefined;
511
+ }>>;
512
+ structuredContent: z.ZodOptional<z.ZodString>;
513
+ widgetMeta: z.ZodOptional<z.ZodString>;
514
+ content: z.ZodOptional<z.ZodString>;
515
+ truncated: z.ZodOptional<z.ZodBoolean>;
516
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
517
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
518
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
519
+ surface: z.ZodOptional<z.ZodString>;
520
+ }, "strict", z.ZodTypeAny, {
521
+ pluginId: string;
522
+ resourceUri: string;
523
+ truncated?: boolean | undefined;
524
+ csp?: {
525
+ connectDomains?: string[] | undefined;
526
+ resourceDomains?: string[] | undefined;
527
+ } | undefined;
528
+ prefersBorder?: boolean | undefined;
529
+ showInline?: true | undefined;
530
+ surface?: string | undefined;
531
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
532
+ structuredContent?: string | undefined;
533
+ widgetMeta?: string | undefined;
534
+ content?: string | undefined;
535
+ truncatedBytes?: number | undefined;
536
+ isError?: true | undefined;
537
+ }, {
538
+ pluginId: string;
539
+ resourceUri: string;
540
+ truncated?: boolean | undefined;
541
+ csp?: {
542
+ connectDomains?: string[] | undefined;
543
+ resourceDomains?: string[] | undefined;
489
544
  } | undefined;
545
+ prefersBorder?: boolean | undefined;
546
+ showInline?: true | undefined;
547
+ surface?: string | undefined;
548
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
549
+ structuredContent?: string | undefined;
550
+ widgetMeta?: string | undefined;
551
+ content?: string | undefined;
552
+ truncatedBytes?: number | undefined;
553
+ isError?: true | undefined;
490
554
  }>;
491
555
  export declare const mcpToolResultDisplayPayloadSchema: z.ZodObject<{
492
556
  kind: z.ZodLiteral<"mcp_tool">;
@@ -505,6 +569,64 @@ export declare const mcpToolResultDisplayPayloadSchema: z.ZodObject<{
505
569
  }, {
506
570
  code: "quota_exceeded" | "coding_plan_required";
507
571
  }>>;
572
+ ui: z.ZodOptional<z.ZodObject<{
573
+ pluginId: z.ZodString;
574
+ resourceUri: z.ZodString;
575
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen", "pip"]>>;
576
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
577
+ csp: z.ZodOptional<z.ZodObject<{
578
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
579
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
580
+ }, "strict", z.ZodTypeAny, {
581
+ connectDomains?: string[] | undefined;
582
+ resourceDomains?: string[] | undefined;
583
+ }, {
584
+ connectDomains?: string[] | undefined;
585
+ resourceDomains?: string[] | undefined;
586
+ }>>;
587
+ structuredContent: z.ZodOptional<z.ZodString>;
588
+ widgetMeta: z.ZodOptional<z.ZodString>;
589
+ content: z.ZodOptional<z.ZodString>;
590
+ truncated: z.ZodOptional<z.ZodBoolean>;
591
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
592
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
593
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
594
+ surface: z.ZodOptional<z.ZodString>;
595
+ }, "strict", z.ZodTypeAny, {
596
+ pluginId: string;
597
+ resourceUri: string;
598
+ truncated?: boolean | undefined;
599
+ csp?: {
600
+ connectDomains?: string[] | undefined;
601
+ resourceDomains?: string[] | undefined;
602
+ } | undefined;
603
+ prefersBorder?: boolean | undefined;
604
+ showInline?: true | undefined;
605
+ surface?: string | undefined;
606
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
607
+ structuredContent?: string | undefined;
608
+ widgetMeta?: string | undefined;
609
+ content?: string | undefined;
610
+ truncatedBytes?: number | undefined;
611
+ isError?: true | undefined;
612
+ }, {
613
+ pluginId: string;
614
+ resourceUri: string;
615
+ truncated?: boolean | undefined;
616
+ csp?: {
617
+ connectDomains?: string[] | undefined;
618
+ resourceDomains?: string[] | undefined;
619
+ } | undefined;
620
+ prefersBorder?: boolean | undefined;
621
+ showInline?: true | undefined;
622
+ surface?: string | undefined;
623
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
624
+ structuredContent?: string | undefined;
625
+ widgetMeta?: string | undefined;
626
+ content?: string | undefined;
627
+ truncatedBytes?: number | undefined;
628
+ isError?: true | undefined;
629
+ }>>;
508
630
  }, "strict", z.ZodTypeAny, {
509
631
  kind: "mcp_tool";
510
632
  toolName: string;
@@ -513,6 +635,24 @@ export declare const mcpToolResultDisplayPayloadSchema: z.ZodObject<{
513
635
  unavailable?: {
514
636
  code: "quota_exceeded" | "coding_plan_required";
515
637
  } | undefined;
638
+ ui?: {
639
+ pluginId: string;
640
+ resourceUri: string;
641
+ truncated?: boolean | undefined;
642
+ csp?: {
643
+ connectDomains?: string[] | undefined;
644
+ resourceDomains?: string[] | undefined;
645
+ } | undefined;
646
+ prefersBorder?: boolean | undefined;
647
+ showInline?: true | undefined;
648
+ surface?: string | undefined;
649
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
650
+ structuredContent?: string | undefined;
651
+ widgetMeta?: string | undefined;
652
+ content?: string | undefined;
653
+ truncatedBytes?: number | undefined;
654
+ isError?: true | undefined;
655
+ } | undefined;
516
656
  }, {
517
657
  kind: "mcp_tool";
518
658
  toolName: string;
@@ -521,6 +661,24 @@ export declare const mcpToolResultDisplayPayloadSchema: z.ZodObject<{
521
661
  unavailable?: {
522
662
  code: "quota_exceeded" | "coding_plan_required";
523
663
  } | undefined;
664
+ ui?: {
665
+ pluginId: string;
666
+ resourceUri: string;
667
+ truncated?: boolean | undefined;
668
+ csp?: {
669
+ connectDomains?: string[] | undefined;
670
+ resourceDomains?: string[] | undefined;
671
+ } | undefined;
672
+ prefersBorder?: boolean | undefined;
673
+ showInline?: true | undefined;
674
+ surface?: string | undefined;
675
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
676
+ structuredContent?: string | undefined;
677
+ widgetMeta?: string | undefined;
678
+ content?: string | undefined;
679
+ truncatedBytes?: number | undefined;
680
+ isError?: true | undefined;
681
+ } | undefined;
524
682
  }>;
525
683
  /**
526
684
  * ⚠ 这个字段集合是**冻结**的。既有 kind 上多出来的键不是「旧客户端少读一个字段」,而是整块 display
@@ -538,20 +696,20 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
538
696
  code: z.ZodNumber;
539
697
  message: z.ZodString;
540
698
  }, "strict", z.ZodTypeAny, {
541
- code: number;
542
699
  message: string;
700
+ code: number;
543
701
  line: number;
544
702
  column: number;
545
703
  }, {
546
- code: number;
547
704
  message: string;
705
+ code: number;
548
706
  line: number;
549
707
  column: number;
550
708
  }>, "many">;
551
709
  causalityGraph: z.ZodOptional<z.ZodObject<{
552
710
  steps: z.ZodArray<z.ZodObject<{
553
711
  id: z.ZodString;
554
- kind: z.ZodEnum<["ask", "world-read"]>;
712
+ kind: z.ZodEnum<["ask", "world-read", "hole"]>;
555
713
  label: z.ZodString;
556
714
  labelPattern: z.ZodOptional<z.ZodObject<{
557
715
  head: z.ZodOptional<z.ZodString>;
@@ -570,11 +728,13 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
570
728
  source: z.ZodOptional<z.ZodString>;
571
729
  phase: z.ZodOptional<z.ZodString>;
572
730
  repeat: z.ZodOptional<z.ZodEnum<["stack", "serial"]>>;
731
+ fill: z.ZodOptional<z.ZodString>;
573
732
  }, "strict", z.ZodTypeAny, {
574
- kind: "ask" | "world-read";
575
- label: string;
576
733
  id: string;
734
+ kind: "ask" | "world-read" | "hole";
735
+ label: string;
577
736
  lane: string;
737
+ fill?: string | undefined;
578
738
  phase?: string | undefined;
579
739
  labelPattern?: {
580
740
  head?: string | undefined;
@@ -586,10 +746,11 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
586
746
  source?: string | undefined;
587
747
  repeat?: "stack" | "serial" | undefined;
588
748
  }, {
589
- kind: "ask" | "world-read";
590
- label: string;
591
749
  id: string;
750
+ kind: "ask" | "world-read" | "hole";
751
+ label: string;
592
752
  lane: string;
753
+ fill?: string | undefined;
593
754
  phase?: string | undefined;
594
755
  labelPattern?: {
595
756
  head?: string | undefined;
@@ -695,14 +856,17 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
695
856
  line: z.ZodOptional<z.ZodNumber>;
696
857
  column: z.ZodOptional<z.ZodNumber>;
697
858
  alongside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
859
+ fill: z.ZodOptional<z.ZodString>;
698
860
  }, "strict", z.ZodTypeAny, {
699
861
  id: string;
862
+ fill?: string | undefined;
700
863
  name?: string | undefined;
701
864
  line?: number | undefined;
702
865
  column?: number | undefined;
703
866
  alongside?: string[] | undefined;
704
867
  }, {
705
868
  id: string;
869
+ fill?: string | undefined;
706
870
  name?: string | undefined;
707
871
  line?: number | undefined;
708
872
  column?: number | undefined;
@@ -721,8 +885,37 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
721
885
  to: string;
722
886
  back?: true | undefined;
723
887
  }>, "many">>;
888
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
889
+ from: z.ZodString;
890
+ to: z.ZodString;
891
+ }, "strict", z.ZodTypeAny, {
892
+ from: string;
893
+ to: string;
894
+ }, {
895
+ from: string;
896
+ to: string;
897
+ }>, "many">>;
724
898
  exits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
725
899
  sink: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
900
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
901
+ siteId: z.ZodString;
902
+ name: z.ZodString;
903
+ type: z.ZodString;
904
+ phase: z.ZodOptional<z.ZodString>;
905
+ tail: z.ZodOptional<z.ZodLiteral<true>>;
906
+ }, "strict", z.ZodTypeAny, {
907
+ type: string;
908
+ name: string;
909
+ siteId: string;
910
+ phase?: string | undefined;
911
+ tail?: true | undefined;
912
+ }, {
913
+ type: string;
914
+ name: string;
915
+ siteId: string;
916
+ phase?: string | undefined;
917
+ tail?: true | undefined;
918
+ }>, "many">>;
726
919
  truncated: z.ZodOptional<z.ZodBoolean>;
727
920
  }, "strict", z.ZodTypeAny, {
728
921
  lanes: {
@@ -736,10 +929,11 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
736
929
  } | undefined;
737
930
  }[];
738
931
  steps: {
739
- kind: "ask" | "world-read";
740
- label: string;
741
932
  id: string;
933
+ kind: "ask" | "world-read" | "hole";
934
+ label: string;
742
935
  lane: string;
936
+ fill?: string | undefined;
743
937
  phase?: string | undefined;
744
938
  labelPattern?: {
745
939
  head?: string | undefined;
@@ -771,6 +965,7 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
771
965
  truncated?: boolean | undefined;
772
966
  phases?: {
773
967
  id: string;
968
+ fill?: string | undefined;
774
969
  name?: string | undefined;
775
970
  line?: number | undefined;
776
971
  column?: number | undefined;
@@ -781,6 +976,17 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
781
976
  to: string;
782
977
  back?: true | undefined;
783
978
  }[] | undefined;
979
+ phaseStreams?: {
980
+ from: string;
981
+ to: string;
982
+ }[] | undefined;
983
+ holes?: {
984
+ type: string;
985
+ name: string;
986
+ siteId: string;
987
+ phase?: string | undefined;
988
+ tail?: true | undefined;
989
+ }[] | undefined;
784
990
  exits?: string[] | undefined;
785
991
  sink?: string[] | undefined;
786
992
  }, {
@@ -795,10 +1001,11 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
795
1001
  } | undefined;
796
1002
  }[];
797
1003
  steps: {
798
- kind: "ask" | "world-read";
799
- label: string;
800
1004
  id: string;
1005
+ kind: "ask" | "world-read" | "hole";
1006
+ label: string;
801
1007
  lane: string;
1008
+ fill?: string | undefined;
802
1009
  phase?: string | undefined;
803
1010
  labelPattern?: {
804
1011
  head?: string | undefined;
@@ -830,6 +1037,7 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
830
1037
  truncated?: boolean | undefined;
831
1038
  phases?: {
832
1039
  id: string;
1040
+ fill?: string | undefined;
833
1041
  name?: string | undefined;
834
1042
  line?: number | undefined;
835
1043
  column?: number | undefined;
@@ -840,6 +1048,17 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
840
1048
  to: string;
841
1049
  back?: true | undefined;
842
1050
  }[] | undefined;
1051
+ phaseStreams?: {
1052
+ from: string;
1053
+ to: string;
1054
+ }[] | undefined;
1055
+ holes?: {
1056
+ type: string;
1057
+ name: string;
1058
+ siteId: string;
1059
+ phase?: string | undefined;
1060
+ tail?: true | undefined;
1061
+ }[] | undefined;
843
1062
  exits?: string[] | undefined;
844
1063
  sink?: string[] | undefined;
845
1064
  }>>;
@@ -849,8 +1068,8 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
849
1068
  ok: boolean;
850
1069
  errorCount: number;
851
1070
  diagnostics: {
852
- code: number;
853
1071
  message: string;
1072
+ code: number;
854
1073
  line: number;
855
1074
  column: number;
856
1075
  }[];
@@ -867,10 +1086,11 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
867
1086
  } | undefined;
868
1087
  }[];
869
1088
  steps: {
870
- kind: "ask" | "world-read";
871
- label: string;
872
1089
  id: string;
1090
+ kind: "ask" | "world-read" | "hole";
1091
+ label: string;
873
1092
  lane: string;
1093
+ fill?: string | undefined;
874
1094
  phase?: string | undefined;
875
1095
  labelPattern?: {
876
1096
  head?: string | undefined;
@@ -902,6 +1122,7 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
902
1122
  truncated?: boolean | undefined;
903
1123
  phases?: {
904
1124
  id: string;
1125
+ fill?: string | undefined;
905
1126
  name?: string | undefined;
906
1127
  line?: number | undefined;
907
1128
  column?: number | undefined;
@@ -912,6 +1133,17 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
912
1133
  to: string;
913
1134
  back?: true | undefined;
914
1135
  }[] | undefined;
1136
+ phaseStreams?: {
1137
+ from: string;
1138
+ to: string;
1139
+ }[] | undefined;
1140
+ holes?: {
1141
+ type: string;
1142
+ name: string;
1143
+ siteId: string;
1144
+ phase?: string | undefined;
1145
+ tail?: true | undefined;
1146
+ }[] | undefined;
915
1147
  exits?: string[] | undefined;
916
1148
  sink?: string[] | undefined;
917
1149
  } | undefined;
@@ -920,8 +1152,8 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
920
1152
  ok: boolean;
921
1153
  errorCount: number;
922
1154
  diagnostics: {
923
- code: number;
924
1155
  message: string;
1156
+ code: number;
925
1157
  line: number;
926
1158
  column: number;
927
1159
  }[];
@@ -938,10 +1170,11 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
938
1170
  } | undefined;
939
1171
  }[];
940
1172
  steps: {
941
- kind: "ask" | "world-read";
942
- label: string;
943
1173
  id: string;
1174
+ kind: "ask" | "world-read" | "hole";
1175
+ label: string;
944
1176
  lane: string;
1177
+ fill?: string | undefined;
945
1178
  phase?: string | undefined;
946
1179
  labelPattern?: {
947
1180
  head?: string | undefined;
@@ -973,6 +1206,7 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
973
1206
  truncated?: boolean | undefined;
974
1207
  phases?: {
975
1208
  id: string;
1209
+ fill?: string | undefined;
976
1210
  name?: string | undefined;
977
1211
  line?: number | undefined;
978
1212
  column?: number | undefined;
@@ -983,6 +1217,17 @@ export declare const createWorkflowToolResultDisplayPayloadSchema: z.ZodObject<{
983
1217
  to: string;
984
1218
  back?: true | undefined;
985
1219
  }[] | undefined;
1220
+ phaseStreams?: {
1221
+ from: string;
1222
+ to: string;
1223
+ }[] | undefined;
1224
+ holes?: {
1225
+ type: string;
1226
+ name: string;
1227
+ siteId: string;
1228
+ phase?: string | undefined;
1229
+ tail?: true | undefined;
1230
+ }[] | undefined;
986
1231
  exits?: string[] | undefined;
987
1232
  sink?: string[] | undefined;
988
1233
  } | undefined;
@@ -993,13 +1238,13 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
993
1238
  truncated: z.ZodBoolean;
994
1239
  outputPath: z.ZodOptional<z.ZodString>;
995
1240
  }, "strict", z.ZodTypeAny, {
996
- kind: "bash_output";
997
1241
  output: string;
1242
+ kind: "bash_output";
998
1243
  truncated: boolean;
999
1244
  outputPath?: string | undefined;
1000
1245
  }, {
1001
- kind: "bash_output";
1002
1246
  output: string;
1247
+ kind: "bash_output";
1003
1248
  truncated: boolean;
1004
1249
  outputPath?: string | undefined;
1005
1250
  }>, z.ZodObject<{
@@ -1061,13 +1306,13 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1061
1306
  }, "strict", z.ZodTypeAny, {
1062
1307
  kind: "local_agent_message";
1063
1308
  status: "success" | "failed";
1064
- message?: string | undefined;
1065
1309
  error?: string | undefined;
1310
+ message?: string | undefined;
1066
1311
  }, {
1067
1312
  kind: "local_agent_message";
1068
1313
  status: "success" | "failed";
1069
- message?: string | undefined;
1070
1314
  error?: string | undefined;
1315
+ message?: string | undefined;
1071
1316
  }>, z.ZodObject<{
1072
1317
  kind: z.ZodLiteral<"task_stop">;
1073
1318
  taskId: z.ZodString;
@@ -1191,14 +1436,14 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1191
1436
  accessibility: z.ZodEnum<["granted", "stale", "denied"]>;
1192
1437
  screenRecording: z.ZodEnum<["granted", "denied", "unknown"]>;
1193
1438
  }, "strict", z.ZodTypeAny, {
1194
- accessibility: "granted" | "stale" | "denied";
1195
1439
  schemaVersion: 1;
1440
+ accessibility: "granted" | "stale" | "denied";
1196
1441
  platform: "darwin";
1197
1442
  grantOwner: string;
1198
1443
  screenRecording: "unknown" | "granted" | "denied";
1199
1444
  }, {
1200
- accessibility: "granted" | "stale" | "denied";
1201
1445
  schemaVersion: 1;
1446
+ accessibility: "granted" | "stale" | "denied";
1202
1447
  platform: "darwin";
1203
1448
  grantOwner: string;
1204
1449
  screenRecording: "unknown" | "granted" | "denied";
@@ -1218,16 +1463,16 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1218
1463
  }>, "many">>;
1219
1464
  truncated: z.ZodOptional<z.ZodBoolean>;
1220
1465
  }, "strict", z.ZodTypeAny, {
1466
+ schemaVersion: 1;
1221
1467
  kind: "cua";
1222
1468
  toolName: string;
1223
1469
  status: "success" | "failed";
1224
- schemaVersion: 1;
1225
1470
  input?: string | undefined;
1226
- truncated?: boolean | undefined;
1227
1471
  text?: string | undefined;
1472
+ truncated?: boolean | undefined;
1228
1473
  permissionStatus?: {
1229
- accessibility: "granted" | "stale" | "denied";
1230
1474
  schemaVersion: 1;
1475
+ accessibility: "granted" | "stale" | "denied";
1231
1476
  platform: "darwin";
1232
1477
  grantOwner: string;
1233
1478
  screenRecording: "unknown" | "granted" | "denied";
@@ -1255,16 +1500,16 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1255
1500
  artifactUri?: string | undefined;
1256
1501
  }[] | undefined;
1257
1502
  }, {
1503
+ schemaVersion: 1;
1258
1504
  kind: "cua";
1259
1505
  toolName: string;
1260
1506
  status: "success" | "failed";
1261
- schemaVersion: 1;
1262
1507
  input?: string | undefined;
1263
- truncated?: boolean | undefined;
1264
1508
  text?: string | undefined;
1509
+ truncated?: boolean | undefined;
1265
1510
  permissionStatus?: {
1266
- accessibility: "granted" | "stale" | "denied";
1267
1511
  schemaVersion: 1;
1512
+ accessibility: "granted" | "stale" | "denied";
1268
1513
  platform: "darwin";
1269
1514
  grantOwner: string;
1270
1515
  screenRecording: "unknown" | "granted" | "denied";
@@ -1318,27 +1563,27 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1318
1563
  }, "strict", z.ZodTypeAny, {
1319
1564
  kind: "node_repl_images";
1320
1565
  truncated?: boolean | undefined;
1566
+ app?: {
1567
+ appKey: string;
1568
+ displayName?: string | undefined;
1569
+ } | undefined;
1321
1570
  source?: "browser_turn_end" | undefined;
1322
1571
  images?: {
1323
1572
  mimeType: string;
1324
1573
  base64: string;
1325
1574
  }[] | undefined;
1575
+ }, {
1576
+ kind: "node_repl_images";
1577
+ truncated?: boolean | undefined;
1326
1578
  app?: {
1327
1579
  appKey: string;
1328
1580
  displayName?: string | undefined;
1329
1581
  } | undefined;
1330
- }, {
1331
- kind: "node_repl_images";
1332
- truncated?: boolean | undefined;
1333
1582
  source?: "browser_turn_end" | undefined;
1334
1583
  images?: {
1335
1584
  mimeType: string;
1336
1585
  base64: string;
1337
1586
  }[] | undefined;
1338
- app?: {
1339
- appKey: string;
1340
- displayName?: string | undefined;
1341
- } | undefined;
1342
1587
  }>, z.ZodObject<{
1343
1588
  kind: z.ZodLiteral<"mcp_tool">;
1344
1589
  serverName: z.ZodString;
@@ -1356,6 +1601,64 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1356
1601
  }, {
1357
1602
  code: "quota_exceeded" | "coding_plan_required";
1358
1603
  }>>;
1604
+ ui: z.ZodOptional<z.ZodObject<{
1605
+ pluginId: z.ZodString;
1606
+ resourceUri: z.ZodString;
1607
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen", "pip"]>>;
1608
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
1609
+ csp: z.ZodOptional<z.ZodObject<{
1610
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1611
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1612
+ }, "strict", z.ZodTypeAny, {
1613
+ connectDomains?: string[] | undefined;
1614
+ resourceDomains?: string[] | undefined;
1615
+ }, {
1616
+ connectDomains?: string[] | undefined;
1617
+ resourceDomains?: string[] | undefined;
1618
+ }>>;
1619
+ structuredContent: z.ZodOptional<z.ZodString>;
1620
+ widgetMeta: z.ZodOptional<z.ZodString>;
1621
+ content: z.ZodOptional<z.ZodString>;
1622
+ truncated: z.ZodOptional<z.ZodBoolean>;
1623
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
1624
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
1625
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
1626
+ surface: z.ZodOptional<z.ZodString>;
1627
+ }, "strict", z.ZodTypeAny, {
1628
+ pluginId: string;
1629
+ resourceUri: string;
1630
+ truncated?: boolean | undefined;
1631
+ csp?: {
1632
+ connectDomains?: string[] | undefined;
1633
+ resourceDomains?: string[] | undefined;
1634
+ } | undefined;
1635
+ prefersBorder?: boolean | undefined;
1636
+ showInline?: true | undefined;
1637
+ surface?: string | undefined;
1638
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
1639
+ structuredContent?: string | undefined;
1640
+ widgetMeta?: string | undefined;
1641
+ content?: string | undefined;
1642
+ truncatedBytes?: number | undefined;
1643
+ isError?: true | undefined;
1644
+ }, {
1645
+ pluginId: string;
1646
+ resourceUri: string;
1647
+ truncated?: boolean | undefined;
1648
+ csp?: {
1649
+ connectDomains?: string[] | undefined;
1650
+ resourceDomains?: string[] | undefined;
1651
+ } | undefined;
1652
+ prefersBorder?: boolean | undefined;
1653
+ showInline?: true | undefined;
1654
+ surface?: string | undefined;
1655
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
1656
+ structuredContent?: string | undefined;
1657
+ widgetMeta?: string | undefined;
1658
+ content?: string | undefined;
1659
+ truncatedBytes?: number | undefined;
1660
+ isError?: true | undefined;
1661
+ }>>;
1359
1662
  }, "strict", z.ZodTypeAny, {
1360
1663
  kind: "mcp_tool";
1361
1664
  toolName: string;
@@ -1364,6 +1667,24 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1364
1667
  unavailable?: {
1365
1668
  code: "quota_exceeded" | "coding_plan_required";
1366
1669
  } | undefined;
1670
+ ui?: {
1671
+ pluginId: string;
1672
+ resourceUri: string;
1673
+ truncated?: boolean | undefined;
1674
+ csp?: {
1675
+ connectDomains?: string[] | undefined;
1676
+ resourceDomains?: string[] | undefined;
1677
+ } | undefined;
1678
+ prefersBorder?: boolean | undefined;
1679
+ showInline?: true | undefined;
1680
+ surface?: string | undefined;
1681
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
1682
+ structuredContent?: string | undefined;
1683
+ widgetMeta?: string | undefined;
1684
+ content?: string | undefined;
1685
+ truncatedBytes?: number | undefined;
1686
+ isError?: true | undefined;
1687
+ } | undefined;
1367
1688
  }, {
1368
1689
  kind: "mcp_tool";
1369
1690
  toolName: string;
@@ -1372,6 +1693,24 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1372
1693
  unavailable?: {
1373
1694
  code: "quota_exceeded" | "coding_plan_required";
1374
1695
  } | undefined;
1696
+ ui?: {
1697
+ pluginId: string;
1698
+ resourceUri: string;
1699
+ truncated?: boolean | undefined;
1700
+ csp?: {
1701
+ connectDomains?: string[] | undefined;
1702
+ resourceDomains?: string[] | undefined;
1703
+ } | undefined;
1704
+ prefersBorder?: boolean | undefined;
1705
+ showInline?: true | undefined;
1706
+ surface?: string | undefined;
1707
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
1708
+ structuredContent?: string | undefined;
1709
+ widgetMeta?: string | undefined;
1710
+ content?: string | undefined;
1711
+ truncatedBytes?: number | undefined;
1712
+ isError?: true | undefined;
1713
+ } | undefined;
1375
1714
  }>, z.ZodObject<{
1376
1715
  kind: z.ZodLiteral<"create_workflow">;
1377
1716
  ok: z.ZodBoolean;
@@ -1382,20 +1721,20 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1382
1721
  code: z.ZodNumber;
1383
1722
  message: z.ZodString;
1384
1723
  }, "strict", z.ZodTypeAny, {
1385
- code: number;
1386
1724
  message: string;
1725
+ code: number;
1387
1726
  line: number;
1388
1727
  column: number;
1389
1728
  }, {
1390
- code: number;
1391
1729
  message: string;
1730
+ code: number;
1392
1731
  line: number;
1393
1732
  column: number;
1394
1733
  }>, "many">;
1395
1734
  causalityGraph: z.ZodOptional<z.ZodObject<{
1396
1735
  steps: z.ZodArray<z.ZodObject<{
1397
1736
  id: z.ZodString;
1398
- kind: z.ZodEnum<["ask", "world-read"]>;
1737
+ kind: z.ZodEnum<["ask", "world-read", "hole"]>;
1399
1738
  label: z.ZodString;
1400
1739
  labelPattern: z.ZodOptional<z.ZodObject<{
1401
1740
  head: z.ZodOptional<z.ZodString>;
@@ -1414,11 +1753,13 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1414
1753
  source: z.ZodOptional<z.ZodString>;
1415
1754
  phase: z.ZodOptional<z.ZodString>;
1416
1755
  repeat: z.ZodOptional<z.ZodEnum<["stack", "serial"]>>;
1756
+ fill: z.ZodOptional<z.ZodString>;
1417
1757
  }, "strict", z.ZodTypeAny, {
1418
- kind: "ask" | "world-read";
1419
- label: string;
1420
1758
  id: string;
1759
+ kind: "ask" | "world-read" | "hole";
1760
+ label: string;
1421
1761
  lane: string;
1762
+ fill?: string | undefined;
1422
1763
  phase?: string | undefined;
1423
1764
  labelPattern?: {
1424
1765
  head?: string | undefined;
@@ -1430,10 +1771,11 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1430
1771
  source?: string | undefined;
1431
1772
  repeat?: "stack" | "serial" | undefined;
1432
1773
  }, {
1433
- kind: "ask" | "world-read";
1434
- label: string;
1435
1774
  id: string;
1775
+ kind: "ask" | "world-read" | "hole";
1776
+ label: string;
1436
1777
  lane: string;
1778
+ fill?: string | undefined;
1437
1779
  phase?: string | undefined;
1438
1780
  labelPattern?: {
1439
1781
  head?: string | undefined;
@@ -1539,14 +1881,17 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1539
1881
  line: z.ZodOptional<z.ZodNumber>;
1540
1882
  column: z.ZodOptional<z.ZodNumber>;
1541
1883
  alongside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1884
+ fill: z.ZodOptional<z.ZodString>;
1542
1885
  }, "strict", z.ZodTypeAny, {
1543
1886
  id: string;
1887
+ fill?: string | undefined;
1544
1888
  name?: string | undefined;
1545
1889
  line?: number | undefined;
1546
1890
  column?: number | undefined;
1547
1891
  alongside?: string[] | undefined;
1548
1892
  }, {
1549
1893
  id: string;
1894
+ fill?: string | undefined;
1550
1895
  name?: string | undefined;
1551
1896
  line?: number | undefined;
1552
1897
  column?: number | undefined;
@@ -1565,8 +1910,37 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1565
1910
  to: string;
1566
1911
  back?: true | undefined;
1567
1912
  }>, "many">>;
1913
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
1914
+ from: z.ZodString;
1915
+ to: z.ZodString;
1916
+ }, "strict", z.ZodTypeAny, {
1917
+ from: string;
1918
+ to: string;
1919
+ }, {
1920
+ from: string;
1921
+ to: string;
1922
+ }>, "many">>;
1568
1923
  exits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1569
1924
  sink: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1925
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1926
+ siteId: z.ZodString;
1927
+ name: z.ZodString;
1928
+ type: z.ZodString;
1929
+ phase: z.ZodOptional<z.ZodString>;
1930
+ tail: z.ZodOptional<z.ZodLiteral<true>>;
1931
+ }, "strict", z.ZodTypeAny, {
1932
+ type: string;
1933
+ name: string;
1934
+ siteId: string;
1935
+ phase?: string | undefined;
1936
+ tail?: true | undefined;
1937
+ }, {
1938
+ type: string;
1939
+ name: string;
1940
+ siteId: string;
1941
+ phase?: string | undefined;
1942
+ tail?: true | undefined;
1943
+ }>, "many">>;
1570
1944
  truncated: z.ZodOptional<z.ZodBoolean>;
1571
1945
  }, "strict", z.ZodTypeAny, {
1572
1946
  lanes: {
@@ -1580,10 +1954,11 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1580
1954
  } | undefined;
1581
1955
  }[];
1582
1956
  steps: {
1583
- kind: "ask" | "world-read";
1584
- label: string;
1585
1957
  id: string;
1958
+ kind: "ask" | "world-read" | "hole";
1959
+ label: string;
1586
1960
  lane: string;
1961
+ fill?: string | undefined;
1587
1962
  phase?: string | undefined;
1588
1963
  labelPattern?: {
1589
1964
  head?: string | undefined;
@@ -1615,6 +1990,7 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1615
1990
  truncated?: boolean | undefined;
1616
1991
  phases?: {
1617
1992
  id: string;
1993
+ fill?: string | undefined;
1618
1994
  name?: string | undefined;
1619
1995
  line?: number | undefined;
1620
1996
  column?: number | undefined;
@@ -1625,6 +2001,17 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1625
2001
  to: string;
1626
2002
  back?: true | undefined;
1627
2003
  }[] | undefined;
2004
+ phaseStreams?: {
2005
+ from: string;
2006
+ to: string;
2007
+ }[] | undefined;
2008
+ holes?: {
2009
+ type: string;
2010
+ name: string;
2011
+ siteId: string;
2012
+ phase?: string | undefined;
2013
+ tail?: true | undefined;
2014
+ }[] | undefined;
1628
2015
  exits?: string[] | undefined;
1629
2016
  sink?: string[] | undefined;
1630
2017
  }, {
@@ -1639,10 +2026,11 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1639
2026
  } | undefined;
1640
2027
  }[];
1641
2028
  steps: {
1642
- kind: "ask" | "world-read";
1643
- label: string;
1644
2029
  id: string;
2030
+ kind: "ask" | "world-read" | "hole";
2031
+ label: string;
1645
2032
  lane: string;
2033
+ fill?: string | undefined;
1646
2034
  phase?: string | undefined;
1647
2035
  labelPattern?: {
1648
2036
  head?: string | undefined;
@@ -1674,6 +2062,7 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1674
2062
  truncated?: boolean | undefined;
1675
2063
  phases?: {
1676
2064
  id: string;
2065
+ fill?: string | undefined;
1677
2066
  name?: string | undefined;
1678
2067
  line?: number | undefined;
1679
2068
  column?: number | undefined;
@@ -1684,6 +2073,17 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1684
2073
  to: string;
1685
2074
  back?: true | undefined;
1686
2075
  }[] | undefined;
2076
+ phaseStreams?: {
2077
+ from: string;
2078
+ to: string;
2079
+ }[] | undefined;
2080
+ holes?: {
2081
+ type: string;
2082
+ name: string;
2083
+ siteId: string;
2084
+ phase?: string | undefined;
2085
+ tail?: true | undefined;
2086
+ }[] | undefined;
1687
2087
  exits?: string[] | undefined;
1688
2088
  sink?: string[] | undefined;
1689
2089
  }>>;
@@ -1693,8 +2093,8 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1693
2093
  ok: boolean;
1694
2094
  errorCount: number;
1695
2095
  diagnostics: {
1696
- code: number;
1697
2096
  message: string;
2097
+ code: number;
1698
2098
  line: number;
1699
2099
  column: number;
1700
2100
  }[];
@@ -1711,10 +2111,11 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1711
2111
  } | undefined;
1712
2112
  }[];
1713
2113
  steps: {
1714
- kind: "ask" | "world-read";
1715
- label: string;
1716
2114
  id: string;
2115
+ kind: "ask" | "world-read" | "hole";
2116
+ label: string;
1717
2117
  lane: string;
2118
+ fill?: string | undefined;
1718
2119
  phase?: string | undefined;
1719
2120
  labelPattern?: {
1720
2121
  head?: string | undefined;
@@ -1746,6 +2147,7 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1746
2147
  truncated?: boolean | undefined;
1747
2148
  phases?: {
1748
2149
  id: string;
2150
+ fill?: string | undefined;
1749
2151
  name?: string | undefined;
1750
2152
  line?: number | undefined;
1751
2153
  column?: number | undefined;
@@ -1756,6 +2158,17 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1756
2158
  to: string;
1757
2159
  back?: true | undefined;
1758
2160
  }[] | undefined;
2161
+ phaseStreams?: {
2162
+ from: string;
2163
+ to: string;
2164
+ }[] | undefined;
2165
+ holes?: {
2166
+ type: string;
2167
+ name: string;
2168
+ siteId: string;
2169
+ phase?: string | undefined;
2170
+ tail?: true | undefined;
2171
+ }[] | undefined;
1759
2172
  exits?: string[] | undefined;
1760
2173
  sink?: string[] | undefined;
1761
2174
  } | undefined;
@@ -1764,8 +2177,8 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1764
2177
  ok: boolean;
1765
2178
  errorCount: number;
1766
2179
  diagnostics: {
1767
- code: number;
1768
2180
  message: string;
2181
+ code: number;
1769
2182
  line: number;
1770
2183
  column: number;
1771
2184
  }[];
@@ -1782,10 +2195,11 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1782
2195
  } | undefined;
1783
2196
  }[];
1784
2197
  steps: {
1785
- kind: "ask" | "world-read";
1786
- label: string;
1787
2198
  id: string;
2199
+ kind: "ask" | "world-read" | "hole";
2200
+ label: string;
1788
2201
  lane: string;
2202
+ fill?: string | undefined;
1789
2203
  phase?: string | undefined;
1790
2204
  labelPattern?: {
1791
2205
  head?: string | undefined;
@@ -1817,6 +2231,7 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1817
2231
  truncated?: boolean | undefined;
1818
2232
  phases?: {
1819
2233
  id: string;
2234
+ fill?: string | undefined;
1820
2235
  name?: string | undefined;
1821
2236
  line?: number | undefined;
1822
2237
  column?: number | undefined;
@@ -1827,6 +2242,17 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
1827
2242
  to: string;
1828
2243
  back?: true | undefined;
1829
2244
  }[] | undefined;
2245
+ phaseStreams?: {
2246
+ from: string;
2247
+ to: string;
2248
+ }[] | undefined;
2249
+ holes?: {
2250
+ type: string;
2251
+ name: string;
2252
+ siteId: string;
2253
+ phase?: string | undefined;
2254
+ tail?: true | undefined;
2255
+ }[] | undefined;
1830
2256
  exits?: string[] | undefined;
1831
2257
  sink?: string[] | undefined;
1832
2258
  } | undefined;
@@ -2042,11 +2468,11 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2042
2468
  code: z.ZodString;
2043
2469
  message: z.ZodString;
2044
2470
  }, "strict", z.ZodTypeAny, {
2045
- code: string;
2046
2471
  message: string;
2047
- }, {
2048
2472
  code: string;
2473
+ }, {
2049
2474
  message: string;
2475
+ code: string;
2050
2476
  }>>;
2051
2477
  truncated: z.ZodOptional<z.ZodBoolean>;
2052
2478
  }, "strict", z.ZodTypeAny, {
@@ -2072,8 +2498,8 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2072
2498
  at?: number | undefined;
2073
2499
  }[];
2074
2500
  error?: {
2075
- code: string;
2076
2501
  message: string;
2502
+ code: string;
2077
2503
  } | undefined;
2078
2504
  summary?: string | undefined;
2079
2505
  truncated?: boolean | undefined;
@@ -2086,7 +2512,7 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2086
2512
  enteredAt?: number | undefined;
2087
2513
  exitedAt?: number | undefined;
2088
2514
  }[] | undefined;
2089
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
2515
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
2090
2516
  possiblyInterrupted?: boolean | undefined;
2091
2517
  generatedAt?: number | undefined;
2092
2518
  subagents?: {
@@ -2151,8 +2577,8 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2151
2577
  at?: number | undefined;
2152
2578
  }[];
2153
2579
  error?: {
2154
- code: string;
2155
2580
  message: string;
2581
+ code: string;
2156
2582
  } | undefined;
2157
2583
  summary?: string | undefined;
2158
2584
  truncated?: boolean | undefined;
@@ -2165,7 +2591,7 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2165
2591
  enteredAt?: number | undefined;
2166
2592
  exitedAt?: number | undefined;
2167
2593
  }[] | undefined;
2168
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
2594
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
2169
2595
  possiblyInterrupted?: boolean | undefined;
2170
2596
  generatedAt?: number | undefined;
2171
2597
  subagents?: {
@@ -2232,7 +2658,7 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2232
2658
  ownedByThisSession: boolean;
2233
2659
  createdAt: number;
2234
2660
  updatedAt: number;
2235
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
2661
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
2236
2662
  possiblyInterrupted?: boolean | undefined;
2237
2663
  resumedFrom?: string | undefined;
2238
2664
  supersededBy?: string | undefined;
@@ -2245,7 +2671,7 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2245
2671
  ownedByThisSession: boolean;
2246
2672
  createdAt: number;
2247
2673
  updatedAt: number;
2248
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
2674
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
2249
2675
  possiblyInterrupted?: boolean | undefined;
2250
2676
  resumedFrom?: string | undefined;
2251
2677
  supersededBy?: string | undefined;
@@ -2262,7 +2688,7 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2262
2688
  ownedByThisSession: boolean;
2263
2689
  createdAt: number;
2264
2690
  updatedAt: number;
2265
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
2691
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
2266
2692
  possiblyInterrupted?: boolean | undefined;
2267
2693
  resumedFrom?: string | undefined;
2268
2694
  supersededBy?: string | undefined;
@@ -2279,7 +2705,7 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2279
2705
  ownedByThisSession: boolean;
2280
2706
  createdAt: number;
2281
2707
  updatedAt: number;
2282
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
2708
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
2283
2709
  possiblyInterrupted?: boolean | undefined;
2284
2710
  resumedFrom?: string | undefined;
2285
2711
  supersededBy?: string | undefined;
@@ -2294,13 +2720,13 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2294
2720
  code: z.ZodNumber;
2295
2721
  message: z.ZodString;
2296
2722
  }, "strict", z.ZodTypeAny, {
2297
- code: number;
2298
2723
  message: string;
2724
+ code: number;
2299
2725
  line: number;
2300
2726
  column: number;
2301
2727
  }, {
2302
- code: number;
2303
2728
  message: string;
2729
+ code: number;
2304
2730
  line: number;
2305
2731
  column: number;
2306
2732
  }>, "many">;
@@ -2313,8 +2739,8 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2313
2739
  durationMs: number;
2314
2740
  ok: boolean;
2315
2741
  diagnostics: {
2316
- code: number;
2317
2742
  message: string;
2743
+ code: number;
2318
2744
  line: number;
2319
2745
  column: number;
2320
2746
  }[];
@@ -2326,8 +2752,8 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2326
2752
  durationMs: number;
2327
2753
  ok: boolean;
2328
2754
  diagnostics: {
2329
- code: number;
2330
2755
  message: string;
2756
+ code: number;
2331
2757
  line: number;
2332
2758
  column: number;
2333
2759
  }[];
@@ -2344,16 +2770,16 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2344
2770
  path: z.ZodString;
2345
2771
  argNames: z.ZodArray<z.ZodString, "many">;
2346
2772
  }, "strict", z.ZodTypeAny, {
2773
+ path: string;
2347
2774
  name: string;
2348
2775
  scope: string;
2349
- path: string;
2350
2776
  argNames: string[];
2351
2777
  description?: string | undefined;
2352
2778
  whenToUse?: string | undefined;
2353
2779
  }, {
2780
+ path: string;
2354
2781
  name: string;
2355
2782
  scope: string;
2356
- path: string;
2357
2783
  argNames: string[];
2358
2784
  description?: string | undefined;
2359
2785
  whenToUse?: string | undefined;
@@ -2372,9 +2798,9 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2372
2798
  }, "strict", z.ZodTypeAny, {
2373
2799
  kind: "saved_workflow_list";
2374
2800
  workflows: {
2801
+ path: string;
2375
2802
  name: string;
2376
2803
  scope: string;
2377
- path: string;
2378
2804
  argNames: string[];
2379
2805
  description?: string | undefined;
2380
2806
  whenToUse?: string | undefined;
@@ -2387,9 +2813,9 @@ export declare const toolResultDisplayPayloadSchema: z.ZodDiscriminatedUnion<"ki
2387
2813
  }, {
2388
2814
  kind: "saved_workflow_list";
2389
2815
  workflows: {
2816
+ path: string;
2390
2817
  name: string;
2391
2818
  scope: string;
2392
- path: string;
2393
2819
  argNames: string[];
2394
2820
  description?: string | undefined;
2395
2821
  whenToUse?: string | undefined;
@@ -2493,13 +2919,13 @@ export declare const toolResultSerializationMetadataSchema: z.ZodObject<{
2493
2919
  truncated: boolean;
2494
2920
  originalBytes: number;
2495
2921
  returnedBytes: number;
2496
- budgetStrategy: "artifact" | "inline" | "truncate";
2922
+ budgetStrategy: "inline" | "artifact" | "truncate";
2497
2923
  artifactPath?: string | undefined;
2498
2924
  }, {
2499
2925
  truncated: boolean;
2500
2926
  originalBytes: number;
2501
2927
  returnedBytes: number;
2502
- budgetStrategy: "artifact" | "inline" | "truncate";
2928
+ budgetStrategy: "inline" | "artifact" | "truncate";
2503
2929
  artifactPath?: string | undefined;
2504
2930
  }>;
2505
2931
  export type ToolResultSerializationMetadata = z.infer<typeof toolResultSerializationMetadataSchema>;
@@ -2511,13 +2937,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2511
2937
  truncated: z.ZodBoolean;
2512
2938
  outputPath: z.ZodOptional<z.ZodString>;
2513
2939
  }, "strict", z.ZodTypeAny, {
2514
- kind: "bash_output";
2515
2940
  output: string;
2941
+ kind: "bash_output";
2516
2942
  truncated: boolean;
2517
2943
  outputPath?: string | undefined;
2518
2944
  }, {
2519
- kind: "bash_output";
2520
2945
  output: string;
2946
+ kind: "bash_output";
2521
2947
  truncated: boolean;
2522
2948
  outputPath?: string | undefined;
2523
2949
  }>, z.ZodObject<{
@@ -2579,13 +3005,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2579
3005
  }, "strict", z.ZodTypeAny, {
2580
3006
  kind: "local_agent_message";
2581
3007
  status: "success" | "failed";
2582
- message?: string | undefined;
2583
3008
  error?: string | undefined;
3009
+ message?: string | undefined;
2584
3010
  }, {
2585
3011
  kind: "local_agent_message";
2586
3012
  status: "success" | "failed";
2587
- message?: string | undefined;
2588
3013
  error?: string | undefined;
3014
+ message?: string | undefined;
2589
3015
  }>, z.ZodObject<{
2590
3016
  kind: z.ZodLiteral<"task_stop">;
2591
3017
  taskId: z.ZodString;
@@ -2709,14 +3135,14 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2709
3135
  accessibility: z.ZodEnum<["granted", "stale", "denied"]>;
2710
3136
  screenRecording: z.ZodEnum<["granted", "denied", "unknown"]>;
2711
3137
  }, "strict", z.ZodTypeAny, {
2712
- accessibility: "granted" | "stale" | "denied";
2713
3138
  schemaVersion: 1;
3139
+ accessibility: "granted" | "stale" | "denied";
2714
3140
  platform: "darwin";
2715
3141
  grantOwner: string;
2716
3142
  screenRecording: "unknown" | "granted" | "denied";
2717
3143
  }, {
2718
- accessibility: "granted" | "stale" | "denied";
2719
3144
  schemaVersion: 1;
3145
+ accessibility: "granted" | "stale" | "denied";
2720
3146
  platform: "darwin";
2721
3147
  grantOwner: string;
2722
3148
  screenRecording: "unknown" | "granted" | "denied";
@@ -2736,16 +3162,16 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2736
3162
  }>, "many">>;
2737
3163
  truncated: z.ZodOptional<z.ZodBoolean>;
2738
3164
  }, "strict", z.ZodTypeAny, {
3165
+ schemaVersion: 1;
2739
3166
  kind: "cua";
2740
3167
  toolName: string;
2741
3168
  status: "success" | "failed";
2742
- schemaVersion: 1;
2743
3169
  input?: string | undefined;
2744
- truncated?: boolean | undefined;
2745
3170
  text?: string | undefined;
3171
+ truncated?: boolean | undefined;
2746
3172
  permissionStatus?: {
2747
- accessibility: "granted" | "stale" | "denied";
2748
3173
  schemaVersion: 1;
3174
+ accessibility: "granted" | "stale" | "denied";
2749
3175
  platform: "darwin";
2750
3176
  grantOwner: string;
2751
3177
  screenRecording: "unknown" | "granted" | "denied";
@@ -2773,16 +3199,16 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2773
3199
  artifactUri?: string | undefined;
2774
3200
  }[] | undefined;
2775
3201
  }, {
3202
+ schemaVersion: 1;
2776
3203
  kind: "cua";
2777
3204
  toolName: string;
2778
3205
  status: "success" | "failed";
2779
- schemaVersion: 1;
2780
3206
  input?: string | undefined;
2781
- truncated?: boolean | undefined;
2782
3207
  text?: string | undefined;
3208
+ truncated?: boolean | undefined;
2783
3209
  permissionStatus?: {
2784
- accessibility: "granted" | "stale" | "denied";
2785
3210
  schemaVersion: 1;
3211
+ accessibility: "granted" | "stale" | "denied";
2786
3212
  platform: "darwin";
2787
3213
  grantOwner: string;
2788
3214
  screenRecording: "unknown" | "granted" | "denied";
@@ -2836,27 +3262,27 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2836
3262
  }, "strict", z.ZodTypeAny, {
2837
3263
  kind: "node_repl_images";
2838
3264
  truncated?: boolean | undefined;
3265
+ app?: {
3266
+ appKey: string;
3267
+ displayName?: string | undefined;
3268
+ } | undefined;
2839
3269
  source?: "browser_turn_end" | undefined;
2840
3270
  images?: {
2841
3271
  mimeType: string;
2842
3272
  base64: string;
2843
3273
  }[] | undefined;
3274
+ }, {
3275
+ kind: "node_repl_images";
3276
+ truncated?: boolean | undefined;
2844
3277
  app?: {
2845
3278
  appKey: string;
2846
3279
  displayName?: string | undefined;
2847
3280
  } | undefined;
2848
- }, {
2849
- kind: "node_repl_images";
2850
- truncated?: boolean | undefined;
2851
3281
  source?: "browser_turn_end" | undefined;
2852
3282
  images?: {
2853
3283
  mimeType: string;
2854
3284
  base64: string;
2855
3285
  }[] | undefined;
2856
- app?: {
2857
- appKey: string;
2858
- displayName?: string | undefined;
2859
- } | undefined;
2860
3286
  }>, z.ZodObject<{
2861
3287
  kind: z.ZodLiteral<"mcp_tool">;
2862
3288
  serverName: z.ZodString;
@@ -2874,6 +3300,64 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2874
3300
  }, {
2875
3301
  code: "quota_exceeded" | "coding_plan_required";
2876
3302
  }>>;
3303
+ ui: z.ZodOptional<z.ZodObject<{
3304
+ pluginId: z.ZodString;
3305
+ resourceUri: z.ZodString;
3306
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen", "pip"]>>;
3307
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
3308
+ csp: z.ZodOptional<z.ZodObject<{
3309
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3310
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3311
+ }, "strict", z.ZodTypeAny, {
3312
+ connectDomains?: string[] | undefined;
3313
+ resourceDomains?: string[] | undefined;
3314
+ }, {
3315
+ connectDomains?: string[] | undefined;
3316
+ resourceDomains?: string[] | undefined;
3317
+ }>>;
3318
+ structuredContent: z.ZodOptional<z.ZodString>;
3319
+ widgetMeta: z.ZodOptional<z.ZodString>;
3320
+ content: z.ZodOptional<z.ZodString>;
3321
+ truncated: z.ZodOptional<z.ZodBoolean>;
3322
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
3323
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
3324
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
3325
+ surface: z.ZodOptional<z.ZodString>;
3326
+ }, "strict", z.ZodTypeAny, {
3327
+ pluginId: string;
3328
+ resourceUri: string;
3329
+ truncated?: boolean | undefined;
3330
+ csp?: {
3331
+ connectDomains?: string[] | undefined;
3332
+ resourceDomains?: string[] | undefined;
3333
+ } | undefined;
3334
+ prefersBorder?: boolean | undefined;
3335
+ showInline?: true | undefined;
3336
+ surface?: string | undefined;
3337
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
3338
+ structuredContent?: string | undefined;
3339
+ widgetMeta?: string | undefined;
3340
+ content?: string | undefined;
3341
+ truncatedBytes?: number | undefined;
3342
+ isError?: true | undefined;
3343
+ }, {
3344
+ pluginId: string;
3345
+ resourceUri: string;
3346
+ truncated?: boolean | undefined;
3347
+ csp?: {
3348
+ connectDomains?: string[] | undefined;
3349
+ resourceDomains?: string[] | undefined;
3350
+ } | undefined;
3351
+ prefersBorder?: boolean | undefined;
3352
+ showInline?: true | undefined;
3353
+ surface?: string | undefined;
3354
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
3355
+ structuredContent?: string | undefined;
3356
+ widgetMeta?: string | undefined;
3357
+ content?: string | undefined;
3358
+ truncatedBytes?: number | undefined;
3359
+ isError?: true | undefined;
3360
+ }>>;
2877
3361
  }, "strict", z.ZodTypeAny, {
2878
3362
  kind: "mcp_tool";
2879
3363
  toolName: string;
@@ -2882,6 +3366,24 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2882
3366
  unavailable?: {
2883
3367
  code: "quota_exceeded" | "coding_plan_required";
2884
3368
  } | undefined;
3369
+ ui?: {
3370
+ pluginId: string;
3371
+ resourceUri: string;
3372
+ truncated?: boolean | undefined;
3373
+ csp?: {
3374
+ connectDomains?: string[] | undefined;
3375
+ resourceDomains?: string[] | undefined;
3376
+ } | undefined;
3377
+ prefersBorder?: boolean | undefined;
3378
+ showInline?: true | undefined;
3379
+ surface?: string | undefined;
3380
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
3381
+ structuredContent?: string | undefined;
3382
+ widgetMeta?: string | undefined;
3383
+ content?: string | undefined;
3384
+ truncatedBytes?: number | undefined;
3385
+ isError?: true | undefined;
3386
+ } | undefined;
2885
3387
  }, {
2886
3388
  kind: "mcp_tool";
2887
3389
  toolName: string;
@@ -2890,6 +3392,24 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2890
3392
  unavailable?: {
2891
3393
  code: "quota_exceeded" | "coding_plan_required";
2892
3394
  } | undefined;
3395
+ ui?: {
3396
+ pluginId: string;
3397
+ resourceUri: string;
3398
+ truncated?: boolean | undefined;
3399
+ csp?: {
3400
+ connectDomains?: string[] | undefined;
3401
+ resourceDomains?: string[] | undefined;
3402
+ } | undefined;
3403
+ prefersBorder?: boolean | undefined;
3404
+ showInline?: true | undefined;
3405
+ surface?: string | undefined;
3406
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
3407
+ structuredContent?: string | undefined;
3408
+ widgetMeta?: string | undefined;
3409
+ content?: string | undefined;
3410
+ truncatedBytes?: number | undefined;
3411
+ isError?: true | undefined;
3412
+ } | undefined;
2893
3413
  }>, z.ZodObject<{
2894
3414
  kind: z.ZodLiteral<"create_workflow">;
2895
3415
  ok: z.ZodBoolean;
@@ -2900,20 +3420,20 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2900
3420
  code: z.ZodNumber;
2901
3421
  message: z.ZodString;
2902
3422
  }, "strict", z.ZodTypeAny, {
2903
- code: number;
2904
3423
  message: string;
3424
+ code: number;
2905
3425
  line: number;
2906
3426
  column: number;
2907
3427
  }, {
2908
- code: number;
2909
3428
  message: string;
3429
+ code: number;
2910
3430
  line: number;
2911
3431
  column: number;
2912
3432
  }>, "many">;
2913
3433
  causalityGraph: z.ZodOptional<z.ZodObject<{
2914
3434
  steps: z.ZodArray<z.ZodObject<{
2915
3435
  id: z.ZodString;
2916
- kind: z.ZodEnum<["ask", "world-read"]>;
3436
+ kind: z.ZodEnum<["ask", "world-read", "hole"]>;
2917
3437
  label: z.ZodString;
2918
3438
  labelPattern: z.ZodOptional<z.ZodObject<{
2919
3439
  head: z.ZodOptional<z.ZodString>;
@@ -2932,11 +3452,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2932
3452
  source: z.ZodOptional<z.ZodString>;
2933
3453
  phase: z.ZodOptional<z.ZodString>;
2934
3454
  repeat: z.ZodOptional<z.ZodEnum<["stack", "serial"]>>;
3455
+ fill: z.ZodOptional<z.ZodString>;
2935
3456
  }, "strict", z.ZodTypeAny, {
2936
- kind: "ask" | "world-read";
2937
- label: string;
2938
3457
  id: string;
3458
+ kind: "ask" | "world-read" | "hole";
3459
+ label: string;
2939
3460
  lane: string;
3461
+ fill?: string | undefined;
2940
3462
  phase?: string | undefined;
2941
3463
  labelPattern?: {
2942
3464
  head?: string | undefined;
@@ -2948,10 +3470,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
2948
3470
  source?: string | undefined;
2949
3471
  repeat?: "stack" | "serial" | undefined;
2950
3472
  }, {
2951
- kind: "ask" | "world-read";
2952
- label: string;
2953
3473
  id: string;
3474
+ kind: "ask" | "world-read" | "hole";
3475
+ label: string;
2954
3476
  lane: string;
3477
+ fill?: string | undefined;
2955
3478
  phase?: string | undefined;
2956
3479
  labelPattern?: {
2957
3480
  head?: string | undefined;
@@ -3057,14 +3580,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3057
3580
  line: z.ZodOptional<z.ZodNumber>;
3058
3581
  column: z.ZodOptional<z.ZodNumber>;
3059
3582
  alongside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3583
+ fill: z.ZodOptional<z.ZodString>;
3060
3584
  }, "strict", z.ZodTypeAny, {
3061
3585
  id: string;
3586
+ fill?: string | undefined;
3062
3587
  name?: string | undefined;
3063
3588
  line?: number | undefined;
3064
3589
  column?: number | undefined;
3065
3590
  alongside?: string[] | undefined;
3066
3591
  }, {
3067
3592
  id: string;
3593
+ fill?: string | undefined;
3068
3594
  name?: string | undefined;
3069
3595
  line?: number | undefined;
3070
3596
  column?: number | undefined;
@@ -3083,8 +3609,37 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3083
3609
  to: string;
3084
3610
  back?: true | undefined;
3085
3611
  }>, "many">>;
3612
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
3613
+ from: z.ZodString;
3614
+ to: z.ZodString;
3615
+ }, "strict", z.ZodTypeAny, {
3616
+ from: string;
3617
+ to: string;
3618
+ }, {
3619
+ from: string;
3620
+ to: string;
3621
+ }>, "many">>;
3086
3622
  exits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3087
3623
  sink: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3624
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3625
+ siteId: z.ZodString;
3626
+ name: z.ZodString;
3627
+ type: z.ZodString;
3628
+ phase: z.ZodOptional<z.ZodString>;
3629
+ tail: z.ZodOptional<z.ZodLiteral<true>>;
3630
+ }, "strict", z.ZodTypeAny, {
3631
+ type: string;
3632
+ name: string;
3633
+ siteId: string;
3634
+ phase?: string | undefined;
3635
+ tail?: true | undefined;
3636
+ }, {
3637
+ type: string;
3638
+ name: string;
3639
+ siteId: string;
3640
+ phase?: string | undefined;
3641
+ tail?: true | undefined;
3642
+ }>, "many">>;
3088
3643
  truncated: z.ZodOptional<z.ZodBoolean>;
3089
3644
  }, "strict", z.ZodTypeAny, {
3090
3645
  lanes: {
@@ -3098,10 +3653,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3098
3653
  } | undefined;
3099
3654
  }[];
3100
3655
  steps: {
3101
- kind: "ask" | "world-read";
3102
- label: string;
3103
3656
  id: string;
3657
+ kind: "ask" | "world-read" | "hole";
3658
+ label: string;
3104
3659
  lane: string;
3660
+ fill?: string | undefined;
3105
3661
  phase?: string | undefined;
3106
3662
  labelPattern?: {
3107
3663
  head?: string | undefined;
@@ -3133,6 +3689,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3133
3689
  truncated?: boolean | undefined;
3134
3690
  phases?: {
3135
3691
  id: string;
3692
+ fill?: string | undefined;
3136
3693
  name?: string | undefined;
3137
3694
  line?: number | undefined;
3138
3695
  column?: number | undefined;
@@ -3143,6 +3700,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3143
3700
  to: string;
3144
3701
  back?: true | undefined;
3145
3702
  }[] | undefined;
3703
+ phaseStreams?: {
3704
+ from: string;
3705
+ to: string;
3706
+ }[] | undefined;
3707
+ holes?: {
3708
+ type: string;
3709
+ name: string;
3710
+ siteId: string;
3711
+ phase?: string | undefined;
3712
+ tail?: true | undefined;
3713
+ }[] | undefined;
3146
3714
  exits?: string[] | undefined;
3147
3715
  sink?: string[] | undefined;
3148
3716
  }, {
@@ -3157,10 +3725,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3157
3725
  } | undefined;
3158
3726
  }[];
3159
3727
  steps: {
3160
- kind: "ask" | "world-read";
3161
- label: string;
3162
3728
  id: string;
3729
+ kind: "ask" | "world-read" | "hole";
3730
+ label: string;
3163
3731
  lane: string;
3732
+ fill?: string | undefined;
3164
3733
  phase?: string | undefined;
3165
3734
  labelPattern?: {
3166
3735
  head?: string | undefined;
@@ -3192,6 +3761,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3192
3761
  truncated?: boolean | undefined;
3193
3762
  phases?: {
3194
3763
  id: string;
3764
+ fill?: string | undefined;
3195
3765
  name?: string | undefined;
3196
3766
  line?: number | undefined;
3197
3767
  column?: number | undefined;
@@ -3202,6 +3772,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3202
3772
  to: string;
3203
3773
  back?: true | undefined;
3204
3774
  }[] | undefined;
3775
+ phaseStreams?: {
3776
+ from: string;
3777
+ to: string;
3778
+ }[] | undefined;
3779
+ holes?: {
3780
+ type: string;
3781
+ name: string;
3782
+ siteId: string;
3783
+ phase?: string | undefined;
3784
+ tail?: true | undefined;
3785
+ }[] | undefined;
3205
3786
  exits?: string[] | undefined;
3206
3787
  sink?: string[] | undefined;
3207
3788
  }>>;
@@ -3211,8 +3792,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3211
3792
  ok: boolean;
3212
3793
  errorCount: number;
3213
3794
  diagnostics: {
3214
- code: number;
3215
3795
  message: string;
3796
+ code: number;
3216
3797
  line: number;
3217
3798
  column: number;
3218
3799
  }[];
@@ -3229,10 +3810,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3229
3810
  } | undefined;
3230
3811
  }[];
3231
3812
  steps: {
3232
- kind: "ask" | "world-read";
3233
- label: string;
3234
3813
  id: string;
3814
+ kind: "ask" | "world-read" | "hole";
3815
+ label: string;
3235
3816
  lane: string;
3817
+ fill?: string | undefined;
3236
3818
  phase?: string | undefined;
3237
3819
  labelPattern?: {
3238
3820
  head?: string | undefined;
@@ -3264,6 +3846,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3264
3846
  truncated?: boolean | undefined;
3265
3847
  phases?: {
3266
3848
  id: string;
3849
+ fill?: string | undefined;
3267
3850
  name?: string | undefined;
3268
3851
  line?: number | undefined;
3269
3852
  column?: number | undefined;
@@ -3274,6 +3857,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3274
3857
  to: string;
3275
3858
  back?: true | undefined;
3276
3859
  }[] | undefined;
3860
+ phaseStreams?: {
3861
+ from: string;
3862
+ to: string;
3863
+ }[] | undefined;
3864
+ holes?: {
3865
+ type: string;
3866
+ name: string;
3867
+ siteId: string;
3868
+ phase?: string | undefined;
3869
+ tail?: true | undefined;
3870
+ }[] | undefined;
3277
3871
  exits?: string[] | undefined;
3278
3872
  sink?: string[] | undefined;
3279
3873
  } | undefined;
@@ -3282,8 +3876,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3282
3876
  ok: boolean;
3283
3877
  errorCount: number;
3284
3878
  diagnostics: {
3285
- code: number;
3286
3879
  message: string;
3880
+ code: number;
3287
3881
  line: number;
3288
3882
  column: number;
3289
3883
  }[];
@@ -3300,10 +3894,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3300
3894
  } | undefined;
3301
3895
  }[];
3302
3896
  steps: {
3303
- kind: "ask" | "world-read";
3304
- label: string;
3305
3897
  id: string;
3898
+ kind: "ask" | "world-read" | "hole";
3899
+ label: string;
3306
3900
  lane: string;
3901
+ fill?: string | undefined;
3307
3902
  phase?: string | undefined;
3308
3903
  labelPattern?: {
3309
3904
  head?: string | undefined;
@@ -3335,6 +3930,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3335
3930
  truncated?: boolean | undefined;
3336
3931
  phases?: {
3337
3932
  id: string;
3933
+ fill?: string | undefined;
3338
3934
  name?: string | undefined;
3339
3935
  line?: number | undefined;
3340
3936
  column?: number | undefined;
@@ -3345,6 +3941,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3345
3941
  to: string;
3346
3942
  back?: true | undefined;
3347
3943
  }[] | undefined;
3944
+ phaseStreams?: {
3945
+ from: string;
3946
+ to: string;
3947
+ }[] | undefined;
3948
+ holes?: {
3949
+ type: string;
3950
+ name: string;
3951
+ siteId: string;
3952
+ phase?: string | undefined;
3953
+ tail?: true | undefined;
3954
+ }[] | undefined;
3348
3955
  exits?: string[] | undefined;
3349
3956
  sink?: string[] | undefined;
3350
3957
  } | undefined;
@@ -3560,11 +4167,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3560
4167
  code: z.ZodString;
3561
4168
  message: z.ZodString;
3562
4169
  }, "strict", z.ZodTypeAny, {
3563
- code: string;
3564
4170
  message: string;
3565
- }, {
3566
4171
  code: string;
4172
+ }, {
3567
4173
  message: string;
4174
+ code: string;
3568
4175
  }>>;
3569
4176
  truncated: z.ZodOptional<z.ZodBoolean>;
3570
4177
  }, "strict", z.ZodTypeAny, {
@@ -3590,8 +4197,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3590
4197
  at?: number | undefined;
3591
4198
  }[];
3592
4199
  error?: {
3593
- code: string;
3594
4200
  message: string;
4201
+ code: string;
3595
4202
  } | undefined;
3596
4203
  summary?: string | undefined;
3597
4204
  truncated?: boolean | undefined;
@@ -3604,7 +4211,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3604
4211
  enteredAt?: number | undefined;
3605
4212
  exitedAt?: number | undefined;
3606
4213
  }[] | undefined;
3607
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
4214
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
3608
4215
  possiblyInterrupted?: boolean | undefined;
3609
4216
  generatedAt?: number | undefined;
3610
4217
  subagents?: {
@@ -3669,8 +4276,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3669
4276
  at?: number | undefined;
3670
4277
  }[];
3671
4278
  error?: {
3672
- code: string;
3673
4279
  message: string;
4280
+ code: string;
3674
4281
  } | undefined;
3675
4282
  summary?: string | undefined;
3676
4283
  truncated?: boolean | undefined;
@@ -3683,7 +4290,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3683
4290
  enteredAt?: number | undefined;
3684
4291
  exitedAt?: number | undefined;
3685
4292
  }[] | undefined;
3686
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
4293
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
3687
4294
  possiblyInterrupted?: boolean | undefined;
3688
4295
  generatedAt?: number | undefined;
3689
4296
  subagents?: {
@@ -3750,7 +4357,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3750
4357
  ownedByThisSession: boolean;
3751
4358
  createdAt: number;
3752
4359
  updatedAt: number;
3753
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
4360
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
3754
4361
  possiblyInterrupted?: boolean | undefined;
3755
4362
  resumedFrom?: string | undefined;
3756
4363
  supersededBy?: string | undefined;
@@ -3763,7 +4370,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3763
4370
  ownedByThisSession: boolean;
3764
4371
  createdAt: number;
3765
4372
  updatedAt: number;
3766
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
4373
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
3767
4374
  possiblyInterrupted?: boolean | undefined;
3768
4375
  resumedFrom?: string | undefined;
3769
4376
  supersededBy?: string | undefined;
@@ -3780,7 +4387,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3780
4387
  ownedByThisSession: boolean;
3781
4388
  createdAt: number;
3782
4389
  updatedAt: number;
3783
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
4390
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
3784
4391
  possiblyInterrupted?: boolean | undefined;
3785
4392
  resumedFrom?: string | undefined;
3786
4393
  supersededBy?: string | undefined;
@@ -3797,7 +4404,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3797
4404
  ownedByThisSession: boolean;
3798
4405
  createdAt: number;
3799
4406
  updatedAt: number;
3800
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
4407
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
3801
4408
  possiblyInterrupted?: boolean | undefined;
3802
4409
  resumedFrom?: string | undefined;
3803
4410
  supersededBy?: string | undefined;
@@ -3812,13 +4419,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3812
4419
  code: z.ZodNumber;
3813
4420
  message: z.ZodString;
3814
4421
  }, "strict", z.ZodTypeAny, {
3815
- code: number;
3816
4422
  message: string;
4423
+ code: number;
3817
4424
  line: number;
3818
4425
  column: number;
3819
4426
  }, {
3820
- code: number;
3821
4427
  message: string;
4428
+ code: number;
3822
4429
  line: number;
3823
4430
  column: number;
3824
4431
  }>, "many">;
@@ -3831,8 +4438,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3831
4438
  durationMs: number;
3832
4439
  ok: boolean;
3833
4440
  diagnostics: {
3834
- code: number;
3835
4441
  message: string;
4442
+ code: number;
3836
4443
  line: number;
3837
4444
  column: number;
3838
4445
  }[];
@@ -3844,8 +4451,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3844
4451
  durationMs: number;
3845
4452
  ok: boolean;
3846
4453
  diagnostics: {
3847
- code: number;
3848
4454
  message: string;
4455
+ code: number;
3849
4456
  line: number;
3850
4457
  column: number;
3851
4458
  }[];
@@ -3862,16 +4469,16 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3862
4469
  path: z.ZodString;
3863
4470
  argNames: z.ZodArray<z.ZodString, "many">;
3864
4471
  }, "strict", z.ZodTypeAny, {
4472
+ path: string;
3865
4473
  name: string;
3866
4474
  scope: string;
3867
- path: string;
3868
4475
  argNames: string[];
3869
4476
  description?: string | undefined;
3870
4477
  whenToUse?: string | undefined;
3871
4478
  }, {
4479
+ path: string;
3872
4480
  name: string;
3873
4481
  scope: string;
3874
- path: string;
3875
4482
  argNames: string[];
3876
4483
  description?: string | undefined;
3877
4484
  whenToUse?: string | undefined;
@@ -3890,9 +4497,9 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3890
4497
  }, "strict", z.ZodTypeAny, {
3891
4498
  kind: "saved_workflow_list";
3892
4499
  workflows: {
4500
+ path: string;
3893
4501
  name: string;
3894
4502
  scope: string;
3895
- path: string;
3896
4503
  argNames: string[];
3897
4504
  description?: string | undefined;
3898
4505
  whenToUse?: string | undefined;
@@ -3905,9 +4512,9 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3905
4512
  }, {
3906
4513
  kind: "saved_workflow_list";
3907
4514
  workflows: {
4515
+ path: string;
3908
4516
  name: string;
3909
4517
  scope: string;
3910
- path: string;
3911
4518
  argNames: string[];
3912
4519
  description?: string | undefined;
3913
4520
  whenToUse?: string | undefined;
@@ -3997,13 +4604,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
3997
4604
  truncated: boolean;
3998
4605
  originalBytes: number;
3999
4606
  returnedBytes: number;
4000
- budgetStrategy: "artifact" | "inline" | "truncate";
4607
+ budgetStrategy: "inline" | "artifact" | "truncate";
4001
4608
  artifactPath?: string | undefined;
4002
4609
  }, {
4003
4610
  truncated: boolean;
4004
4611
  originalBytes: number;
4005
4612
  returnedBytes: number;
4006
- budgetStrategy: "artifact" | "inline" | "truncate";
4613
+ budgetStrategy: "inline" | "artifact" | "truncate";
4007
4614
  artifactPath?: string | undefined;
4008
4615
  }>>;
4009
4616
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4014,13 +4621,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4014
4621
  truncated: z.ZodBoolean;
4015
4622
  outputPath: z.ZodOptional<z.ZodString>;
4016
4623
  }, "strict", z.ZodTypeAny, {
4017
- kind: "bash_output";
4018
4624
  output: string;
4625
+ kind: "bash_output";
4019
4626
  truncated: boolean;
4020
4627
  outputPath?: string | undefined;
4021
4628
  }, {
4022
- kind: "bash_output";
4023
4629
  output: string;
4630
+ kind: "bash_output";
4024
4631
  truncated: boolean;
4025
4632
  outputPath?: string | undefined;
4026
4633
  }>, z.ZodObject<{
@@ -4082,13 +4689,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4082
4689
  }, "strict", z.ZodTypeAny, {
4083
4690
  kind: "local_agent_message";
4084
4691
  status: "success" | "failed";
4085
- message?: string | undefined;
4086
4692
  error?: string | undefined;
4693
+ message?: string | undefined;
4087
4694
  }, {
4088
4695
  kind: "local_agent_message";
4089
4696
  status: "success" | "failed";
4090
- message?: string | undefined;
4091
4697
  error?: string | undefined;
4698
+ message?: string | undefined;
4092
4699
  }>, z.ZodObject<{
4093
4700
  kind: z.ZodLiteral<"task_stop">;
4094
4701
  taskId: z.ZodString;
@@ -4212,14 +4819,14 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4212
4819
  accessibility: z.ZodEnum<["granted", "stale", "denied"]>;
4213
4820
  screenRecording: z.ZodEnum<["granted", "denied", "unknown"]>;
4214
4821
  }, "strict", z.ZodTypeAny, {
4215
- accessibility: "granted" | "stale" | "denied";
4216
4822
  schemaVersion: 1;
4823
+ accessibility: "granted" | "stale" | "denied";
4217
4824
  platform: "darwin";
4218
4825
  grantOwner: string;
4219
4826
  screenRecording: "unknown" | "granted" | "denied";
4220
4827
  }, {
4221
- accessibility: "granted" | "stale" | "denied";
4222
4828
  schemaVersion: 1;
4829
+ accessibility: "granted" | "stale" | "denied";
4223
4830
  platform: "darwin";
4224
4831
  grantOwner: string;
4225
4832
  screenRecording: "unknown" | "granted" | "denied";
@@ -4239,16 +4846,16 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4239
4846
  }>, "many">>;
4240
4847
  truncated: z.ZodOptional<z.ZodBoolean>;
4241
4848
  }, "strict", z.ZodTypeAny, {
4849
+ schemaVersion: 1;
4242
4850
  kind: "cua";
4243
4851
  toolName: string;
4244
4852
  status: "success" | "failed";
4245
- schemaVersion: 1;
4246
4853
  input?: string | undefined;
4247
- truncated?: boolean | undefined;
4248
4854
  text?: string | undefined;
4855
+ truncated?: boolean | undefined;
4249
4856
  permissionStatus?: {
4250
- accessibility: "granted" | "stale" | "denied";
4251
4857
  schemaVersion: 1;
4858
+ accessibility: "granted" | "stale" | "denied";
4252
4859
  platform: "darwin";
4253
4860
  grantOwner: string;
4254
4861
  screenRecording: "unknown" | "granted" | "denied";
@@ -4276,16 +4883,16 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4276
4883
  artifactUri?: string | undefined;
4277
4884
  }[] | undefined;
4278
4885
  }, {
4886
+ schemaVersion: 1;
4279
4887
  kind: "cua";
4280
4888
  toolName: string;
4281
4889
  status: "success" | "failed";
4282
- schemaVersion: 1;
4283
4890
  input?: string | undefined;
4284
- truncated?: boolean | undefined;
4285
4891
  text?: string | undefined;
4892
+ truncated?: boolean | undefined;
4286
4893
  permissionStatus?: {
4287
- accessibility: "granted" | "stale" | "denied";
4288
4894
  schemaVersion: 1;
4895
+ accessibility: "granted" | "stale" | "denied";
4289
4896
  platform: "darwin";
4290
4897
  grantOwner: string;
4291
4898
  screenRecording: "unknown" | "granted" | "denied";
@@ -4339,27 +4946,27 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4339
4946
  }, "strict", z.ZodTypeAny, {
4340
4947
  kind: "node_repl_images";
4341
4948
  truncated?: boolean | undefined;
4949
+ app?: {
4950
+ appKey: string;
4951
+ displayName?: string | undefined;
4952
+ } | undefined;
4342
4953
  source?: "browser_turn_end" | undefined;
4343
4954
  images?: {
4344
4955
  mimeType: string;
4345
4956
  base64: string;
4346
4957
  }[] | undefined;
4958
+ }, {
4959
+ kind: "node_repl_images";
4960
+ truncated?: boolean | undefined;
4347
4961
  app?: {
4348
4962
  appKey: string;
4349
4963
  displayName?: string | undefined;
4350
4964
  } | undefined;
4351
- }, {
4352
- kind: "node_repl_images";
4353
- truncated?: boolean | undefined;
4354
4965
  source?: "browser_turn_end" | undefined;
4355
4966
  images?: {
4356
4967
  mimeType: string;
4357
4968
  base64: string;
4358
4969
  }[] | undefined;
4359
- app?: {
4360
- appKey: string;
4361
- displayName?: string | undefined;
4362
- } | undefined;
4363
4970
  }>, z.ZodObject<{
4364
4971
  kind: z.ZodLiteral<"mcp_tool">;
4365
4972
  serverName: z.ZodString;
@@ -4377,6 +4984,64 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4377
4984
  }, {
4378
4985
  code: "quota_exceeded" | "coding_plan_required";
4379
4986
  }>>;
4987
+ ui: z.ZodOptional<z.ZodObject<{
4988
+ pluginId: z.ZodString;
4989
+ resourceUri: z.ZodString;
4990
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen", "pip"]>>;
4991
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
4992
+ csp: z.ZodOptional<z.ZodObject<{
4993
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4994
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4995
+ }, "strict", z.ZodTypeAny, {
4996
+ connectDomains?: string[] | undefined;
4997
+ resourceDomains?: string[] | undefined;
4998
+ }, {
4999
+ connectDomains?: string[] | undefined;
5000
+ resourceDomains?: string[] | undefined;
5001
+ }>>;
5002
+ structuredContent: z.ZodOptional<z.ZodString>;
5003
+ widgetMeta: z.ZodOptional<z.ZodString>;
5004
+ content: z.ZodOptional<z.ZodString>;
5005
+ truncated: z.ZodOptional<z.ZodBoolean>;
5006
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
5007
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
5008
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
5009
+ surface: z.ZodOptional<z.ZodString>;
5010
+ }, "strict", z.ZodTypeAny, {
5011
+ pluginId: string;
5012
+ resourceUri: string;
5013
+ truncated?: boolean | undefined;
5014
+ csp?: {
5015
+ connectDomains?: string[] | undefined;
5016
+ resourceDomains?: string[] | undefined;
5017
+ } | undefined;
5018
+ prefersBorder?: boolean | undefined;
5019
+ showInline?: true | undefined;
5020
+ surface?: string | undefined;
5021
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
5022
+ structuredContent?: string | undefined;
5023
+ widgetMeta?: string | undefined;
5024
+ content?: string | undefined;
5025
+ truncatedBytes?: number | undefined;
5026
+ isError?: true | undefined;
5027
+ }, {
5028
+ pluginId: string;
5029
+ resourceUri: string;
5030
+ truncated?: boolean | undefined;
5031
+ csp?: {
5032
+ connectDomains?: string[] | undefined;
5033
+ resourceDomains?: string[] | undefined;
5034
+ } | undefined;
5035
+ prefersBorder?: boolean | undefined;
5036
+ showInline?: true | undefined;
5037
+ surface?: string | undefined;
5038
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
5039
+ structuredContent?: string | undefined;
5040
+ widgetMeta?: string | undefined;
5041
+ content?: string | undefined;
5042
+ truncatedBytes?: number | undefined;
5043
+ isError?: true | undefined;
5044
+ }>>;
4380
5045
  }, "strict", z.ZodTypeAny, {
4381
5046
  kind: "mcp_tool";
4382
5047
  toolName: string;
@@ -4385,6 +5050,24 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4385
5050
  unavailable?: {
4386
5051
  code: "quota_exceeded" | "coding_plan_required";
4387
5052
  } | undefined;
5053
+ ui?: {
5054
+ pluginId: string;
5055
+ resourceUri: string;
5056
+ truncated?: boolean | undefined;
5057
+ csp?: {
5058
+ connectDomains?: string[] | undefined;
5059
+ resourceDomains?: string[] | undefined;
5060
+ } | undefined;
5061
+ prefersBorder?: boolean | undefined;
5062
+ showInline?: true | undefined;
5063
+ surface?: string | undefined;
5064
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
5065
+ structuredContent?: string | undefined;
5066
+ widgetMeta?: string | undefined;
5067
+ content?: string | undefined;
5068
+ truncatedBytes?: number | undefined;
5069
+ isError?: true | undefined;
5070
+ } | undefined;
4388
5071
  }, {
4389
5072
  kind: "mcp_tool";
4390
5073
  toolName: string;
@@ -4393,6 +5076,24 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4393
5076
  unavailable?: {
4394
5077
  code: "quota_exceeded" | "coding_plan_required";
4395
5078
  } | undefined;
5079
+ ui?: {
5080
+ pluginId: string;
5081
+ resourceUri: string;
5082
+ truncated?: boolean | undefined;
5083
+ csp?: {
5084
+ connectDomains?: string[] | undefined;
5085
+ resourceDomains?: string[] | undefined;
5086
+ } | undefined;
5087
+ prefersBorder?: boolean | undefined;
5088
+ showInline?: true | undefined;
5089
+ surface?: string | undefined;
5090
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
5091
+ structuredContent?: string | undefined;
5092
+ widgetMeta?: string | undefined;
5093
+ content?: string | undefined;
5094
+ truncatedBytes?: number | undefined;
5095
+ isError?: true | undefined;
5096
+ } | undefined;
4396
5097
  }>, z.ZodObject<{
4397
5098
  kind: z.ZodLiteral<"create_workflow">;
4398
5099
  ok: z.ZodBoolean;
@@ -4403,20 +5104,20 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4403
5104
  code: z.ZodNumber;
4404
5105
  message: z.ZodString;
4405
5106
  }, "strict", z.ZodTypeAny, {
4406
- code: number;
4407
5107
  message: string;
5108
+ code: number;
4408
5109
  line: number;
4409
5110
  column: number;
4410
5111
  }, {
4411
- code: number;
4412
5112
  message: string;
5113
+ code: number;
4413
5114
  line: number;
4414
5115
  column: number;
4415
5116
  }>, "many">;
4416
5117
  causalityGraph: z.ZodOptional<z.ZodObject<{
4417
5118
  steps: z.ZodArray<z.ZodObject<{
4418
5119
  id: z.ZodString;
4419
- kind: z.ZodEnum<["ask", "world-read"]>;
5120
+ kind: z.ZodEnum<["ask", "world-read", "hole"]>;
4420
5121
  label: z.ZodString;
4421
5122
  labelPattern: z.ZodOptional<z.ZodObject<{
4422
5123
  head: z.ZodOptional<z.ZodString>;
@@ -4435,11 +5136,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4435
5136
  source: z.ZodOptional<z.ZodString>;
4436
5137
  phase: z.ZodOptional<z.ZodString>;
4437
5138
  repeat: z.ZodOptional<z.ZodEnum<["stack", "serial"]>>;
5139
+ fill: z.ZodOptional<z.ZodString>;
4438
5140
  }, "strict", z.ZodTypeAny, {
4439
- kind: "ask" | "world-read";
4440
- label: string;
4441
5141
  id: string;
5142
+ kind: "ask" | "world-read" | "hole";
5143
+ label: string;
4442
5144
  lane: string;
5145
+ fill?: string | undefined;
4443
5146
  phase?: string | undefined;
4444
5147
  labelPattern?: {
4445
5148
  head?: string | undefined;
@@ -4451,10 +5154,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4451
5154
  source?: string | undefined;
4452
5155
  repeat?: "stack" | "serial" | undefined;
4453
5156
  }, {
4454
- kind: "ask" | "world-read";
4455
- label: string;
4456
5157
  id: string;
5158
+ kind: "ask" | "world-read" | "hole";
5159
+ label: string;
4457
5160
  lane: string;
5161
+ fill?: string | undefined;
4458
5162
  phase?: string | undefined;
4459
5163
  labelPattern?: {
4460
5164
  head?: string | undefined;
@@ -4560,14 +5264,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4560
5264
  line: z.ZodOptional<z.ZodNumber>;
4561
5265
  column: z.ZodOptional<z.ZodNumber>;
4562
5266
  alongside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5267
+ fill: z.ZodOptional<z.ZodString>;
4563
5268
  }, "strict", z.ZodTypeAny, {
4564
5269
  id: string;
5270
+ fill?: string | undefined;
4565
5271
  name?: string | undefined;
4566
5272
  line?: number | undefined;
4567
5273
  column?: number | undefined;
4568
5274
  alongside?: string[] | undefined;
4569
5275
  }, {
4570
5276
  id: string;
5277
+ fill?: string | undefined;
4571
5278
  name?: string | undefined;
4572
5279
  line?: number | undefined;
4573
5280
  column?: number | undefined;
@@ -4586,8 +5293,37 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4586
5293
  to: string;
4587
5294
  back?: true | undefined;
4588
5295
  }>, "many">>;
5296
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
5297
+ from: z.ZodString;
5298
+ to: z.ZodString;
5299
+ }, "strict", z.ZodTypeAny, {
5300
+ from: string;
5301
+ to: string;
5302
+ }, {
5303
+ from: string;
5304
+ to: string;
5305
+ }>, "many">>;
4589
5306
  exits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4590
5307
  sink: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5308
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5309
+ siteId: z.ZodString;
5310
+ name: z.ZodString;
5311
+ type: z.ZodString;
5312
+ phase: z.ZodOptional<z.ZodString>;
5313
+ tail: z.ZodOptional<z.ZodLiteral<true>>;
5314
+ }, "strict", z.ZodTypeAny, {
5315
+ type: string;
5316
+ name: string;
5317
+ siteId: string;
5318
+ phase?: string | undefined;
5319
+ tail?: true | undefined;
5320
+ }, {
5321
+ type: string;
5322
+ name: string;
5323
+ siteId: string;
5324
+ phase?: string | undefined;
5325
+ tail?: true | undefined;
5326
+ }>, "many">>;
4591
5327
  truncated: z.ZodOptional<z.ZodBoolean>;
4592
5328
  }, "strict", z.ZodTypeAny, {
4593
5329
  lanes: {
@@ -4601,10 +5337,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4601
5337
  } | undefined;
4602
5338
  }[];
4603
5339
  steps: {
4604
- kind: "ask" | "world-read";
4605
- label: string;
4606
5340
  id: string;
5341
+ kind: "ask" | "world-read" | "hole";
5342
+ label: string;
4607
5343
  lane: string;
5344
+ fill?: string | undefined;
4608
5345
  phase?: string | undefined;
4609
5346
  labelPattern?: {
4610
5347
  head?: string | undefined;
@@ -4636,6 +5373,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4636
5373
  truncated?: boolean | undefined;
4637
5374
  phases?: {
4638
5375
  id: string;
5376
+ fill?: string | undefined;
4639
5377
  name?: string | undefined;
4640
5378
  line?: number | undefined;
4641
5379
  column?: number | undefined;
@@ -4646,6 +5384,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4646
5384
  to: string;
4647
5385
  back?: true | undefined;
4648
5386
  }[] | undefined;
5387
+ phaseStreams?: {
5388
+ from: string;
5389
+ to: string;
5390
+ }[] | undefined;
5391
+ holes?: {
5392
+ type: string;
5393
+ name: string;
5394
+ siteId: string;
5395
+ phase?: string | undefined;
5396
+ tail?: true | undefined;
5397
+ }[] | undefined;
4649
5398
  exits?: string[] | undefined;
4650
5399
  sink?: string[] | undefined;
4651
5400
  }, {
@@ -4660,10 +5409,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4660
5409
  } | undefined;
4661
5410
  }[];
4662
5411
  steps: {
4663
- kind: "ask" | "world-read";
4664
- label: string;
4665
5412
  id: string;
5413
+ kind: "ask" | "world-read" | "hole";
5414
+ label: string;
4666
5415
  lane: string;
5416
+ fill?: string | undefined;
4667
5417
  phase?: string | undefined;
4668
5418
  labelPattern?: {
4669
5419
  head?: string | undefined;
@@ -4695,6 +5445,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4695
5445
  truncated?: boolean | undefined;
4696
5446
  phases?: {
4697
5447
  id: string;
5448
+ fill?: string | undefined;
4698
5449
  name?: string | undefined;
4699
5450
  line?: number | undefined;
4700
5451
  column?: number | undefined;
@@ -4705,6 +5456,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4705
5456
  to: string;
4706
5457
  back?: true | undefined;
4707
5458
  }[] | undefined;
5459
+ phaseStreams?: {
5460
+ from: string;
5461
+ to: string;
5462
+ }[] | undefined;
5463
+ holes?: {
5464
+ type: string;
5465
+ name: string;
5466
+ siteId: string;
5467
+ phase?: string | undefined;
5468
+ tail?: true | undefined;
5469
+ }[] | undefined;
4708
5470
  exits?: string[] | undefined;
4709
5471
  sink?: string[] | undefined;
4710
5472
  }>>;
@@ -4714,8 +5476,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4714
5476
  ok: boolean;
4715
5477
  errorCount: number;
4716
5478
  diagnostics: {
4717
- code: number;
4718
5479
  message: string;
5480
+ code: number;
4719
5481
  line: number;
4720
5482
  column: number;
4721
5483
  }[];
@@ -4732,10 +5494,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4732
5494
  } | undefined;
4733
5495
  }[];
4734
5496
  steps: {
4735
- kind: "ask" | "world-read";
4736
- label: string;
4737
5497
  id: string;
5498
+ kind: "ask" | "world-read" | "hole";
5499
+ label: string;
4738
5500
  lane: string;
5501
+ fill?: string | undefined;
4739
5502
  phase?: string | undefined;
4740
5503
  labelPattern?: {
4741
5504
  head?: string | undefined;
@@ -4767,6 +5530,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4767
5530
  truncated?: boolean | undefined;
4768
5531
  phases?: {
4769
5532
  id: string;
5533
+ fill?: string | undefined;
4770
5534
  name?: string | undefined;
4771
5535
  line?: number | undefined;
4772
5536
  column?: number | undefined;
@@ -4777,6 +5541,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4777
5541
  to: string;
4778
5542
  back?: true | undefined;
4779
5543
  }[] | undefined;
5544
+ phaseStreams?: {
5545
+ from: string;
5546
+ to: string;
5547
+ }[] | undefined;
5548
+ holes?: {
5549
+ type: string;
5550
+ name: string;
5551
+ siteId: string;
5552
+ phase?: string | undefined;
5553
+ tail?: true | undefined;
5554
+ }[] | undefined;
4780
5555
  exits?: string[] | undefined;
4781
5556
  sink?: string[] | undefined;
4782
5557
  } | undefined;
@@ -4785,8 +5560,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4785
5560
  ok: boolean;
4786
5561
  errorCount: number;
4787
5562
  diagnostics: {
4788
- code: number;
4789
5563
  message: string;
5564
+ code: number;
4790
5565
  line: number;
4791
5566
  column: number;
4792
5567
  }[];
@@ -4803,10 +5578,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4803
5578
  } | undefined;
4804
5579
  }[];
4805
5580
  steps: {
4806
- kind: "ask" | "world-read";
4807
- label: string;
4808
5581
  id: string;
5582
+ kind: "ask" | "world-read" | "hole";
5583
+ label: string;
4809
5584
  lane: string;
5585
+ fill?: string | undefined;
4810
5586
  phase?: string | undefined;
4811
5587
  labelPattern?: {
4812
5588
  head?: string | undefined;
@@ -4838,6 +5614,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4838
5614
  truncated?: boolean | undefined;
4839
5615
  phases?: {
4840
5616
  id: string;
5617
+ fill?: string | undefined;
4841
5618
  name?: string | undefined;
4842
5619
  line?: number | undefined;
4843
5620
  column?: number | undefined;
@@ -4848,6 +5625,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
4848
5625
  to: string;
4849
5626
  back?: true | undefined;
4850
5627
  }[] | undefined;
5628
+ phaseStreams?: {
5629
+ from: string;
5630
+ to: string;
5631
+ }[] | undefined;
5632
+ holes?: {
5633
+ type: string;
5634
+ name: string;
5635
+ siteId: string;
5636
+ phase?: string | undefined;
5637
+ tail?: true | undefined;
5638
+ }[] | undefined;
4851
5639
  exits?: string[] | undefined;
4852
5640
  sink?: string[] | undefined;
4853
5641
  } | undefined;
@@ -5063,11 +5851,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5063
5851
  code: z.ZodString;
5064
5852
  message: z.ZodString;
5065
5853
  }, "strict", z.ZodTypeAny, {
5066
- code: string;
5067
5854
  message: string;
5068
- }, {
5069
5855
  code: string;
5856
+ }, {
5070
5857
  message: string;
5858
+ code: string;
5071
5859
  }>>;
5072
5860
  truncated: z.ZodOptional<z.ZodBoolean>;
5073
5861
  }, "strict", z.ZodTypeAny, {
@@ -5093,8 +5881,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5093
5881
  at?: number | undefined;
5094
5882
  }[];
5095
5883
  error?: {
5096
- code: string;
5097
5884
  message: string;
5885
+ code: string;
5098
5886
  } | undefined;
5099
5887
  summary?: string | undefined;
5100
5888
  truncated?: boolean | undefined;
@@ -5107,7 +5895,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5107
5895
  enteredAt?: number | undefined;
5108
5896
  exitedAt?: number | undefined;
5109
5897
  }[] | undefined;
5110
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
5898
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
5111
5899
  possiblyInterrupted?: boolean | undefined;
5112
5900
  generatedAt?: number | undefined;
5113
5901
  subagents?: {
@@ -5172,8 +5960,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5172
5960
  at?: number | undefined;
5173
5961
  }[];
5174
5962
  error?: {
5175
- code: string;
5176
5963
  message: string;
5964
+ code: string;
5177
5965
  } | undefined;
5178
5966
  summary?: string | undefined;
5179
5967
  truncated?: boolean | undefined;
@@ -5186,7 +5974,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5186
5974
  enteredAt?: number | undefined;
5187
5975
  exitedAt?: number | undefined;
5188
5976
  }[] | undefined;
5189
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
5977
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
5190
5978
  possiblyInterrupted?: boolean | undefined;
5191
5979
  generatedAt?: number | undefined;
5192
5980
  subagents?: {
@@ -5253,7 +6041,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5253
6041
  ownedByThisSession: boolean;
5254
6042
  createdAt: number;
5255
6043
  updatedAt: number;
5256
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
6044
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
5257
6045
  possiblyInterrupted?: boolean | undefined;
5258
6046
  resumedFrom?: string | undefined;
5259
6047
  supersededBy?: string | undefined;
@@ -5266,7 +6054,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5266
6054
  ownedByThisSession: boolean;
5267
6055
  createdAt: number;
5268
6056
  updatedAt: number;
5269
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
6057
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
5270
6058
  possiblyInterrupted?: boolean | undefined;
5271
6059
  resumedFrom?: string | undefined;
5272
6060
  supersededBy?: string | undefined;
@@ -5283,7 +6071,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5283
6071
  ownedByThisSession: boolean;
5284
6072
  createdAt: number;
5285
6073
  updatedAt: number;
5286
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
6074
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
5287
6075
  possiblyInterrupted?: boolean | undefined;
5288
6076
  resumedFrom?: string | undefined;
5289
6077
  supersededBy?: string | undefined;
@@ -5300,7 +6088,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5300
6088
  ownedByThisSession: boolean;
5301
6089
  createdAt: number;
5302
6090
  updatedAt: number;
5303
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
6091
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
5304
6092
  possiblyInterrupted?: boolean | undefined;
5305
6093
  resumedFrom?: string | undefined;
5306
6094
  supersededBy?: string | undefined;
@@ -5315,13 +6103,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5315
6103
  code: z.ZodNumber;
5316
6104
  message: z.ZodString;
5317
6105
  }, "strict", z.ZodTypeAny, {
5318
- code: number;
5319
6106
  message: string;
6107
+ code: number;
5320
6108
  line: number;
5321
6109
  column: number;
5322
6110
  }, {
5323
- code: number;
5324
6111
  message: string;
6112
+ code: number;
5325
6113
  line: number;
5326
6114
  column: number;
5327
6115
  }>, "many">;
@@ -5334,8 +6122,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5334
6122
  durationMs: number;
5335
6123
  ok: boolean;
5336
6124
  diagnostics: {
5337
- code: number;
5338
6125
  message: string;
6126
+ code: number;
5339
6127
  line: number;
5340
6128
  column: number;
5341
6129
  }[];
@@ -5347,8 +6135,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5347
6135
  durationMs: number;
5348
6136
  ok: boolean;
5349
6137
  diagnostics: {
5350
- code: number;
5351
6138
  message: string;
6139
+ code: number;
5352
6140
  line: number;
5353
6141
  column: number;
5354
6142
  }[];
@@ -5365,16 +6153,16 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5365
6153
  path: z.ZodString;
5366
6154
  argNames: z.ZodArray<z.ZodString, "many">;
5367
6155
  }, "strict", z.ZodTypeAny, {
6156
+ path: string;
5368
6157
  name: string;
5369
6158
  scope: string;
5370
- path: string;
5371
6159
  argNames: string[];
5372
6160
  description?: string | undefined;
5373
6161
  whenToUse?: string | undefined;
5374
6162
  }, {
6163
+ path: string;
5375
6164
  name: string;
5376
6165
  scope: string;
5377
- path: string;
5378
6166
  argNames: string[];
5379
6167
  description?: string | undefined;
5380
6168
  whenToUse?: string | undefined;
@@ -5393,9 +6181,9 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5393
6181
  }, "strict", z.ZodTypeAny, {
5394
6182
  kind: "saved_workflow_list";
5395
6183
  workflows: {
6184
+ path: string;
5396
6185
  name: string;
5397
6186
  scope: string;
5398
- path: string;
5399
6187
  argNames: string[];
5400
6188
  description?: string | undefined;
5401
6189
  whenToUse?: string | undefined;
@@ -5408,9 +6196,9 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5408
6196
  }, {
5409
6197
  kind: "saved_workflow_list";
5410
6198
  workflows: {
6199
+ path: string;
5411
6200
  name: string;
5412
6201
  scope: string;
5413
- path: string;
5414
6202
  argNames: string[];
5415
6203
  description?: string | undefined;
5416
6204
  whenToUse?: string | undefined;
@@ -5500,13 +6288,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5500
6288
  truncated: boolean;
5501
6289
  originalBytes: number;
5502
6290
  returnedBytes: number;
5503
- budgetStrategy: "artifact" | "inline" | "truncate";
6291
+ budgetStrategy: "inline" | "artifact" | "truncate";
5504
6292
  artifactPath?: string | undefined;
5505
6293
  }, {
5506
6294
  truncated: boolean;
5507
6295
  originalBytes: number;
5508
6296
  returnedBytes: number;
5509
- budgetStrategy: "artifact" | "inline" | "truncate";
6297
+ budgetStrategy: "inline" | "artifact" | "truncate";
5510
6298
  artifactPath?: string | undefined;
5511
6299
  }>>;
5512
6300
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5517,13 +6305,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5517
6305
  truncated: z.ZodBoolean;
5518
6306
  outputPath: z.ZodOptional<z.ZodString>;
5519
6307
  }, "strict", z.ZodTypeAny, {
5520
- kind: "bash_output";
5521
6308
  output: string;
6309
+ kind: "bash_output";
5522
6310
  truncated: boolean;
5523
6311
  outputPath?: string | undefined;
5524
6312
  }, {
5525
- kind: "bash_output";
5526
6313
  output: string;
6314
+ kind: "bash_output";
5527
6315
  truncated: boolean;
5528
6316
  outputPath?: string | undefined;
5529
6317
  }>, z.ZodObject<{
@@ -5585,13 +6373,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5585
6373
  }, "strict", z.ZodTypeAny, {
5586
6374
  kind: "local_agent_message";
5587
6375
  status: "success" | "failed";
5588
- message?: string | undefined;
5589
6376
  error?: string | undefined;
6377
+ message?: string | undefined;
5590
6378
  }, {
5591
6379
  kind: "local_agent_message";
5592
6380
  status: "success" | "failed";
5593
- message?: string | undefined;
5594
6381
  error?: string | undefined;
6382
+ message?: string | undefined;
5595
6383
  }>, z.ZodObject<{
5596
6384
  kind: z.ZodLiteral<"task_stop">;
5597
6385
  taskId: z.ZodString;
@@ -5715,14 +6503,14 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5715
6503
  accessibility: z.ZodEnum<["granted", "stale", "denied"]>;
5716
6504
  screenRecording: z.ZodEnum<["granted", "denied", "unknown"]>;
5717
6505
  }, "strict", z.ZodTypeAny, {
5718
- accessibility: "granted" | "stale" | "denied";
5719
6506
  schemaVersion: 1;
6507
+ accessibility: "granted" | "stale" | "denied";
5720
6508
  platform: "darwin";
5721
6509
  grantOwner: string;
5722
6510
  screenRecording: "unknown" | "granted" | "denied";
5723
6511
  }, {
5724
- accessibility: "granted" | "stale" | "denied";
5725
6512
  schemaVersion: 1;
6513
+ accessibility: "granted" | "stale" | "denied";
5726
6514
  platform: "darwin";
5727
6515
  grantOwner: string;
5728
6516
  screenRecording: "unknown" | "granted" | "denied";
@@ -5742,16 +6530,16 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5742
6530
  }>, "many">>;
5743
6531
  truncated: z.ZodOptional<z.ZodBoolean>;
5744
6532
  }, "strict", z.ZodTypeAny, {
6533
+ schemaVersion: 1;
5745
6534
  kind: "cua";
5746
6535
  toolName: string;
5747
6536
  status: "success" | "failed";
5748
- schemaVersion: 1;
5749
6537
  input?: string | undefined;
5750
- truncated?: boolean | undefined;
5751
6538
  text?: string | undefined;
6539
+ truncated?: boolean | undefined;
5752
6540
  permissionStatus?: {
5753
- accessibility: "granted" | "stale" | "denied";
5754
6541
  schemaVersion: 1;
6542
+ accessibility: "granted" | "stale" | "denied";
5755
6543
  platform: "darwin";
5756
6544
  grantOwner: string;
5757
6545
  screenRecording: "unknown" | "granted" | "denied";
@@ -5779,16 +6567,16 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5779
6567
  artifactUri?: string | undefined;
5780
6568
  }[] | undefined;
5781
6569
  }, {
6570
+ schemaVersion: 1;
5782
6571
  kind: "cua";
5783
6572
  toolName: string;
5784
6573
  status: "success" | "failed";
5785
- schemaVersion: 1;
5786
6574
  input?: string | undefined;
5787
- truncated?: boolean | undefined;
5788
6575
  text?: string | undefined;
6576
+ truncated?: boolean | undefined;
5789
6577
  permissionStatus?: {
5790
- accessibility: "granted" | "stale" | "denied";
5791
6578
  schemaVersion: 1;
6579
+ accessibility: "granted" | "stale" | "denied";
5792
6580
  platform: "darwin";
5793
6581
  grantOwner: string;
5794
6582
  screenRecording: "unknown" | "granted" | "denied";
@@ -5842,27 +6630,27 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5842
6630
  }, "strict", z.ZodTypeAny, {
5843
6631
  kind: "node_repl_images";
5844
6632
  truncated?: boolean | undefined;
6633
+ app?: {
6634
+ appKey: string;
6635
+ displayName?: string | undefined;
6636
+ } | undefined;
5845
6637
  source?: "browser_turn_end" | undefined;
5846
6638
  images?: {
5847
6639
  mimeType: string;
5848
6640
  base64: string;
5849
6641
  }[] | undefined;
6642
+ }, {
6643
+ kind: "node_repl_images";
6644
+ truncated?: boolean | undefined;
5850
6645
  app?: {
5851
6646
  appKey: string;
5852
6647
  displayName?: string | undefined;
5853
6648
  } | undefined;
5854
- }, {
5855
- kind: "node_repl_images";
5856
- truncated?: boolean | undefined;
5857
6649
  source?: "browser_turn_end" | undefined;
5858
6650
  images?: {
5859
6651
  mimeType: string;
5860
6652
  base64: string;
5861
6653
  }[] | undefined;
5862
- app?: {
5863
- appKey: string;
5864
- displayName?: string | undefined;
5865
- } | undefined;
5866
6654
  }>, z.ZodObject<{
5867
6655
  kind: z.ZodLiteral<"mcp_tool">;
5868
6656
  serverName: z.ZodString;
@@ -5880,6 +6668,64 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5880
6668
  }, {
5881
6669
  code: "quota_exceeded" | "coding_plan_required";
5882
6670
  }>>;
6671
+ ui: z.ZodOptional<z.ZodObject<{
6672
+ pluginId: z.ZodString;
6673
+ resourceUri: z.ZodString;
6674
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen", "pip"]>>;
6675
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
6676
+ csp: z.ZodOptional<z.ZodObject<{
6677
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6678
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6679
+ }, "strict", z.ZodTypeAny, {
6680
+ connectDomains?: string[] | undefined;
6681
+ resourceDomains?: string[] | undefined;
6682
+ }, {
6683
+ connectDomains?: string[] | undefined;
6684
+ resourceDomains?: string[] | undefined;
6685
+ }>>;
6686
+ structuredContent: z.ZodOptional<z.ZodString>;
6687
+ widgetMeta: z.ZodOptional<z.ZodString>;
6688
+ content: z.ZodOptional<z.ZodString>;
6689
+ truncated: z.ZodOptional<z.ZodBoolean>;
6690
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
6691
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
6692
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
6693
+ surface: z.ZodOptional<z.ZodString>;
6694
+ }, "strict", z.ZodTypeAny, {
6695
+ pluginId: string;
6696
+ resourceUri: string;
6697
+ truncated?: boolean | undefined;
6698
+ csp?: {
6699
+ connectDomains?: string[] | undefined;
6700
+ resourceDomains?: string[] | undefined;
6701
+ } | undefined;
6702
+ prefersBorder?: boolean | undefined;
6703
+ showInline?: true | undefined;
6704
+ surface?: string | undefined;
6705
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
6706
+ structuredContent?: string | undefined;
6707
+ widgetMeta?: string | undefined;
6708
+ content?: string | undefined;
6709
+ truncatedBytes?: number | undefined;
6710
+ isError?: true | undefined;
6711
+ }, {
6712
+ pluginId: string;
6713
+ resourceUri: string;
6714
+ truncated?: boolean | undefined;
6715
+ csp?: {
6716
+ connectDomains?: string[] | undefined;
6717
+ resourceDomains?: string[] | undefined;
6718
+ } | undefined;
6719
+ prefersBorder?: boolean | undefined;
6720
+ showInline?: true | undefined;
6721
+ surface?: string | undefined;
6722
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
6723
+ structuredContent?: string | undefined;
6724
+ widgetMeta?: string | undefined;
6725
+ content?: string | undefined;
6726
+ truncatedBytes?: number | undefined;
6727
+ isError?: true | undefined;
6728
+ }>>;
5883
6729
  }, "strict", z.ZodTypeAny, {
5884
6730
  kind: "mcp_tool";
5885
6731
  toolName: string;
@@ -5888,6 +6734,24 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5888
6734
  unavailable?: {
5889
6735
  code: "quota_exceeded" | "coding_plan_required";
5890
6736
  } | undefined;
6737
+ ui?: {
6738
+ pluginId: string;
6739
+ resourceUri: string;
6740
+ truncated?: boolean | undefined;
6741
+ csp?: {
6742
+ connectDomains?: string[] | undefined;
6743
+ resourceDomains?: string[] | undefined;
6744
+ } | undefined;
6745
+ prefersBorder?: boolean | undefined;
6746
+ showInline?: true | undefined;
6747
+ surface?: string | undefined;
6748
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
6749
+ structuredContent?: string | undefined;
6750
+ widgetMeta?: string | undefined;
6751
+ content?: string | undefined;
6752
+ truncatedBytes?: number | undefined;
6753
+ isError?: true | undefined;
6754
+ } | undefined;
5891
6755
  }, {
5892
6756
  kind: "mcp_tool";
5893
6757
  toolName: string;
@@ -5896,6 +6760,24 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5896
6760
  unavailable?: {
5897
6761
  code: "quota_exceeded" | "coding_plan_required";
5898
6762
  } | undefined;
6763
+ ui?: {
6764
+ pluginId: string;
6765
+ resourceUri: string;
6766
+ truncated?: boolean | undefined;
6767
+ csp?: {
6768
+ connectDomains?: string[] | undefined;
6769
+ resourceDomains?: string[] | undefined;
6770
+ } | undefined;
6771
+ prefersBorder?: boolean | undefined;
6772
+ showInline?: true | undefined;
6773
+ surface?: string | undefined;
6774
+ preferredDisplayMode?: "inline" | "fullscreen" | "pip" | undefined;
6775
+ structuredContent?: string | undefined;
6776
+ widgetMeta?: string | undefined;
6777
+ content?: string | undefined;
6778
+ truncatedBytes?: number | undefined;
6779
+ isError?: true | undefined;
6780
+ } | undefined;
5899
6781
  }>, z.ZodObject<{
5900
6782
  kind: z.ZodLiteral<"create_workflow">;
5901
6783
  ok: z.ZodBoolean;
@@ -5906,20 +6788,20 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5906
6788
  code: z.ZodNumber;
5907
6789
  message: z.ZodString;
5908
6790
  }, "strict", z.ZodTypeAny, {
5909
- code: number;
5910
6791
  message: string;
6792
+ code: number;
5911
6793
  line: number;
5912
6794
  column: number;
5913
6795
  }, {
5914
- code: number;
5915
6796
  message: string;
6797
+ code: number;
5916
6798
  line: number;
5917
6799
  column: number;
5918
6800
  }>, "many">;
5919
6801
  causalityGraph: z.ZodOptional<z.ZodObject<{
5920
6802
  steps: z.ZodArray<z.ZodObject<{
5921
6803
  id: z.ZodString;
5922
- kind: z.ZodEnum<["ask", "world-read"]>;
6804
+ kind: z.ZodEnum<["ask", "world-read", "hole"]>;
5923
6805
  label: z.ZodString;
5924
6806
  labelPattern: z.ZodOptional<z.ZodObject<{
5925
6807
  head: z.ZodOptional<z.ZodString>;
@@ -5938,11 +6820,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5938
6820
  source: z.ZodOptional<z.ZodString>;
5939
6821
  phase: z.ZodOptional<z.ZodString>;
5940
6822
  repeat: z.ZodOptional<z.ZodEnum<["stack", "serial"]>>;
6823
+ fill: z.ZodOptional<z.ZodString>;
5941
6824
  }, "strict", z.ZodTypeAny, {
5942
- kind: "ask" | "world-read";
5943
- label: string;
5944
6825
  id: string;
6826
+ kind: "ask" | "world-read" | "hole";
6827
+ label: string;
5945
6828
  lane: string;
6829
+ fill?: string | undefined;
5946
6830
  phase?: string | undefined;
5947
6831
  labelPattern?: {
5948
6832
  head?: string | undefined;
@@ -5954,10 +6838,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
5954
6838
  source?: string | undefined;
5955
6839
  repeat?: "stack" | "serial" | undefined;
5956
6840
  }, {
5957
- kind: "ask" | "world-read";
5958
- label: string;
5959
6841
  id: string;
6842
+ kind: "ask" | "world-read" | "hole";
6843
+ label: string;
5960
6844
  lane: string;
6845
+ fill?: string | undefined;
5961
6846
  phase?: string | undefined;
5962
6847
  labelPattern?: {
5963
6848
  head?: string | undefined;
@@ -6063,14 +6948,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6063
6948
  line: z.ZodOptional<z.ZodNumber>;
6064
6949
  column: z.ZodOptional<z.ZodNumber>;
6065
6950
  alongside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6951
+ fill: z.ZodOptional<z.ZodString>;
6066
6952
  }, "strict", z.ZodTypeAny, {
6067
6953
  id: string;
6954
+ fill?: string | undefined;
6068
6955
  name?: string | undefined;
6069
6956
  line?: number | undefined;
6070
6957
  column?: number | undefined;
6071
6958
  alongside?: string[] | undefined;
6072
6959
  }, {
6073
6960
  id: string;
6961
+ fill?: string | undefined;
6074
6962
  name?: string | undefined;
6075
6963
  line?: number | undefined;
6076
6964
  column?: number | undefined;
@@ -6089,8 +6977,37 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6089
6977
  to: string;
6090
6978
  back?: true | undefined;
6091
6979
  }>, "many">>;
6980
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
6981
+ from: z.ZodString;
6982
+ to: z.ZodString;
6983
+ }, "strict", z.ZodTypeAny, {
6984
+ from: string;
6985
+ to: string;
6986
+ }, {
6987
+ from: string;
6988
+ to: string;
6989
+ }>, "many">>;
6092
6990
  exits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6093
6991
  sink: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6992
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
6993
+ siteId: z.ZodString;
6994
+ name: z.ZodString;
6995
+ type: z.ZodString;
6996
+ phase: z.ZodOptional<z.ZodString>;
6997
+ tail: z.ZodOptional<z.ZodLiteral<true>>;
6998
+ }, "strict", z.ZodTypeAny, {
6999
+ type: string;
7000
+ name: string;
7001
+ siteId: string;
7002
+ phase?: string | undefined;
7003
+ tail?: true | undefined;
7004
+ }, {
7005
+ type: string;
7006
+ name: string;
7007
+ siteId: string;
7008
+ phase?: string | undefined;
7009
+ tail?: true | undefined;
7010
+ }>, "many">>;
6094
7011
  truncated: z.ZodOptional<z.ZodBoolean>;
6095
7012
  }, "strict", z.ZodTypeAny, {
6096
7013
  lanes: {
@@ -6104,10 +7021,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6104
7021
  } | undefined;
6105
7022
  }[];
6106
7023
  steps: {
6107
- kind: "ask" | "world-read";
6108
- label: string;
6109
7024
  id: string;
7025
+ kind: "ask" | "world-read" | "hole";
7026
+ label: string;
6110
7027
  lane: string;
7028
+ fill?: string | undefined;
6111
7029
  phase?: string | undefined;
6112
7030
  labelPattern?: {
6113
7031
  head?: string | undefined;
@@ -6139,6 +7057,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6139
7057
  truncated?: boolean | undefined;
6140
7058
  phases?: {
6141
7059
  id: string;
7060
+ fill?: string | undefined;
6142
7061
  name?: string | undefined;
6143
7062
  line?: number | undefined;
6144
7063
  column?: number | undefined;
@@ -6149,6 +7068,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6149
7068
  to: string;
6150
7069
  back?: true | undefined;
6151
7070
  }[] | undefined;
7071
+ phaseStreams?: {
7072
+ from: string;
7073
+ to: string;
7074
+ }[] | undefined;
7075
+ holes?: {
7076
+ type: string;
7077
+ name: string;
7078
+ siteId: string;
7079
+ phase?: string | undefined;
7080
+ tail?: true | undefined;
7081
+ }[] | undefined;
6152
7082
  exits?: string[] | undefined;
6153
7083
  sink?: string[] | undefined;
6154
7084
  }, {
@@ -6163,10 +7093,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6163
7093
  } | undefined;
6164
7094
  }[];
6165
7095
  steps: {
6166
- kind: "ask" | "world-read";
6167
- label: string;
6168
7096
  id: string;
7097
+ kind: "ask" | "world-read" | "hole";
7098
+ label: string;
6169
7099
  lane: string;
7100
+ fill?: string | undefined;
6170
7101
  phase?: string | undefined;
6171
7102
  labelPattern?: {
6172
7103
  head?: string | undefined;
@@ -6198,6 +7129,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6198
7129
  truncated?: boolean | undefined;
6199
7130
  phases?: {
6200
7131
  id: string;
7132
+ fill?: string | undefined;
6201
7133
  name?: string | undefined;
6202
7134
  line?: number | undefined;
6203
7135
  column?: number | undefined;
@@ -6208,6 +7140,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6208
7140
  to: string;
6209
7141
  back?: true | undefined;
6210
7142
  }[] | undefined;
7143
+ phaseStreams?: {
7144
+ from: string;
7145
+ to: string;
7146
+ }[] | undefined;
7147
+ holes?: {
7148
+ type: string;
7149
+ name: string;
7150
+ siteId: string;
7151
+ phase?: string | undefined;
7152
+ tail?: true | undefined;
7153
+ }[] | undefined;
6211
7154
  exits?: string[] | undefined;
6212
7155
  sink?: string[] | undefined;
6213
7156
  }>>;
@@ -6217,8 +7160,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6217
7160
  ok: boolean;
6218
7161
  errorCount: number;
6219
7162
  diagnostics: {
6220
- code: number;
6221
7163
  message: string;
7164
+ code: number;
6222
7165
  line: number;
6223
7166
  column: number;
6224
7167
  }[];
@@ -6235,10 +7178,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6235
7178
  } | undefined;
6236
7179
  }[];
6237
7180
  steps: {
6238
- kind: "ask" | "world-read";
6239
- label: string;
6240
7181
  id: string;
7182
+ kind: "ask" | "world-read" | "hole";
7183
+ label: string;
6241
7184
  lane: string;
7185
+ fill?: string | undefined;
6242
7186
  phase?: string | undefined;
6243
7187
  labelPattern?: {
6244
7188
  head?: string | undefined;
@@ -6270,6 +7214,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6270
7214
  truncated?: boolean | undefined;
6271
7215
  phases?: {
6272
7216
  id: string;
7217
+ fill?: string | undefined;
6273
7218
  name?: string | undefined;
6274
7219
  line?: number | undefined;
6275
7220
  column?: number | undefined;
@@ -6280,6 +7225,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6280
7225
  to: string;
6281
7226
  back?: true | undefined;
6282
7227
  }[] | undefined;
7228
+ phaseStreams?: {
7229
+ from: string;
7230
+ to: string;
7231
+ }[] | undefined;
7232
+ holes?: {
7233
+ type: string;
7234
+ name: string;
7235
+ siteId: string;
7236
+ phase?: string | undefined;
7237
+ tail?: true | undefined;
7238
+ }[] | undefined;
6283
7239
  exits?: string[] | undefined;
6284
7240
  sink?: string[] | undefined;
6285
7241
  } | undefined;
@@ -6288,8 +7244,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6288
7244
  ok: boolean;
6289
7245
  errorCount: number;
6290
7246
  diagnostics: {
6291
- code: number;
6292
7247
  message: string;
7248
+ code: number;
6293
7249
  line: number;
6294
7250
  column: number;
6295
7251
  }[];
@@ -6306,10 +7262,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6306
7262
  } | undefined;
6307
7263
  }[];
6308
7264
  steps: {
6309
- kind: "ask" | "world-read";
6310
- label: string;
6311
7265
  id: string;
7266
+ kind: "ask" | "world-read" | "hole";
7267
+ label: string;
6312
7268
  lane: string;
7269
+ fill?: string | undefined;
6313
7270
  phase?: string | undefined;
6314
7271
  labelPattern?: {
6315
7272
  head?: string | undefined;
@@ -6341,6 +7298,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6341
7298
  truncated?: boolean | undefined;
6342
7299
  phases?: {
6343
7300
  id: string;
7301
+ fill?: string | undefined;
6344
7302
  name?: string | undefined;
6345
7303
  line?: number | undefined;
6346
7304
  column?: number | undefined;
@@ -6351,6 +7309,17 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6351
7309
  to: string;
6352
7310
  back?: true | undefined;
6353
7311
  }[] | undefined;
7312
+ phaseStreams?: {
7313
+ from: string;
7314
+ to: string;
7315
+ }[] | undefined;
7316
+ holes?: {
7317
+ type: string;
7318
+ name: string;
7319
+ siteId: string;
7320
+ phase?: string | undefined;
7321
+ tail?: true | undefined;
7322
+ }[] | undefined;
6354
7323
  exits?: string[] | undefined;
6355
7324
  sink?: string[] | undefined;
6356
7325
  } | undefined;
@@ -6566,11 +7535,11 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6566
7535
  code: z.ZodString;
6567
7536
  message: z.ZodString;
6568
7537
  }, "strict", z.ZodTypeAny, {
6569
- code: string;
6570
7538
  message: string;
6571
- }, {
6572
7539
  code: string;
7540
+ }, {
6573
7541
  message: string;
7542
+ code: string;
6574
7543
  }>>;
6575
7544
  truncated: z.ZodOptional<z.ZodBoolean>;
6576
7545
  }, "strict", z.ZodTypeAny, {
@@ -6596,8 +7565,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6596
7565
  at?: number | undefined;
6597
7566
  }[];
6598
7567
  error?: {
6599
- code: string;
6600
7568
  message: string;
7569
+ code: string;
6601
7570
  } | undefined;
6602
7571
  summary?: string | undefined;
6603
7572
  truncated?: boolean | undefined;
@@ -6610,7 +7579,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6610
7579
  enteredAt?: number | undefined;
6611
7580
  exitedAt?: number | undefined;
6612
7581
  }[] | undefined;
6613
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
7582
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
6614
7583
  possiblyInterrupted?: boolean | undefined;
6615
7584
  generatedAt?: number | undefined;
6616
7585
  subagents?: {
@@ -6675,8 +7644,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6675
7644
  at?: number | undefined;
6676
7645
  }[];
6677
7646
  error?: {
6678
- code: string;
6679
7647
  message: string;
7648
+ code: string;
6680
7649
  } | undefined;
6681
7650
  summary?: string | undefined;
6682
7651
  truncated?: boolean | undefined;
@@ -6689,7 +7658,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6689
7658
  enteredAt?: number | undefined;
6690
7659
  exitedAt?: number | undefined;
6691
7660
  }[] | undefined;
6692
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
7661
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
6693
7662
  possiblyInterrupted?: boolean | undefined;
6694
7663
  generatedAt?: number | undefined;
6695
7664
  subagents?: {
@@ -6756,7 +7725,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6756
7725
  ownedByThisSession: boolean;
6757
7726
  createdAt: number;
6758
7727
  updatedAt: number;
6759
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
7728
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
6760
7729
  possiblyInterrupted?: boolean | undefined;
6761
7730
  resumedFrom?: string | undefined;
6762
7731
  supersededBy?: string | undefined;
@@ -6769,7 +7738,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6769
7738
  ownedByThisSession: boolean;
6770
7739
  createdAt: number;
6771
7740
  updatedAt: number;
6772
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
7741
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
6773
7742
  possiblyInterrupted?: boolean | undefined;
6774
7743
  resumedFrom?: string | undefined;
6775
7744
  supersededBy?: string | undefined;
@@ -6786,7 +7755,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6786
7755
  ownedByThisSession: boolean;
6787
7756
  createdAt: number;
6788
7757
  updatedAt: number;
6789
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
7758
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
6790
7759
  possiblyInterrupted?: boolean | undefined;
6791
7760
  resumedFrom?: string | undefined;
6792
7761
  supersededBy?: string | undefined;
@@ -6803,7 +7772,7 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6803
7772
  ownedByThisSession: boolean;
6804
7773
  createdAt: number;
6805
7774
  updatedAt: number;
6806
- stopReason?: "user" | "model" | "provider" | "interrupted" | "superseded" | undefined;
7775
+ stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
6807
7776
  possiblyInterrupted?: boolean | undefined;
6808
7777
  resumedFrom?: string | undefined;
6809
7778
  supersededBy?: string | undefined;
@@ -6818,13 +7787,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6818
7787
  code: z.ZodNumber;
6819
7788
  message: z.ZodString;
6820
7789
  }, "strict", z.ZodTypeAny, {
6821
- code: number;
6822
7790
  message: string;
7791
+ code: number;
6823
7792
  line: number;
6824
7793
  column: number;
6825
7794
  }, {
6826
- code: number;
6827
7795
  message: string;
7796
+ code: number;
6828
7797
  line: number;
6829
7798
  column: number;
6830
7799
  }>, "many">;
@@ -6837,8 +7806,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6837
7806
  durationMs: number;
6838
7807
  ok: boolean;
6839
7808
  diagnostics: {
6840
- code: number;
6841
7809
  message: string;
7810
+ code: number;
6842
7811
  line: number;
6843
7812
  column: number;
6844
7813
  }[];
@@ -6850,8 +7819,8 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6850
7819
  durationMs: number;
6851
7820
  ok: boolean;
6852
7821
  diagnostics: {
6853
- code: number;
6854
7822
  message: string;
7823
+ code: number;
6855
7824
  line: number;
6856
7825
  column: number;
6857
7826
  }[];
@@ -6868,16 +7837,16 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6868
7837
  path: z.ZodString;
6869
7838
  argNames: z.ZodArray<z.ZodString, "many">;
6870
7839
  }, "strict", z.ZodTypeAny, {
7840
+ path: string;
6871
7841
  name: string;
6872
7842
  scope: string;
6873
- path: string;
6874
7843
  argNames: string[];
6875
7844
  description?: string | undefined;
6876
7845
  whenToUse?: string | undefined;
6877
7846
  }, {
7847
+ path: string;
6878
7848
  name: string;
6879
7849
  scope: string;
6880
- path: string;
6881
7850
  argNames: string[];
6882
7851
  description?: string | undefined;
6883
7852
  whenToUse?: string | undefined;
@@ -6896,9 +7865,9 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6896
7865
  }, "strict", z.ZodTypeAny, {
6897
7866
  kind: "saved_workflow_list";
6898
7867
  workflows: {
7868
+ path: string;
6899
7869
  name: string;
6900
7870
  scope: string;
6901
- path: string;
6902
7871
  argNames: string[];
6903
7872
  description?: string | undefined;
6904
7873
  whenToUse?: string | undefined;
@@ -6911,9 +7880,9 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
6911
7880
  }, {
6912
7881
  kind: "saved_workflow_list";
6913
7882
  workflows: {
7883
+ path: string;
6914
7884
  name: string;
6915
7885
  scope: string;
6916
- path: string;
6917
7886
  argNames: string[];
6918
7887
  description?: string | undefined;
6919
7888
  whenToUse?: string | undefined;
@@ -7003,13 +7972,13 @@ export declare const completedToolPartMetadataSchema: z.ZodObject<{
7003
7972
  truncated: boolean;
7004
7973
  originalBytes: number;
7005
7974
  returnedBytes: number;
7006
- budgetStrategy: "artifact" | "inline" | "truncate";
7975
+ budgetStrategy: "inline" | "artifact" | "truncate";
7007
7976
  artifactPath?: string | undefined;
7008
7977
  }, {
7009
7978
  truncated: boolean;
7010
7979
  originalBytes: number;
7011
7980
  returnedBytes: number;
7012
- budgetStrategy: "artifact" | "inline" | "truncate";
7981
+ budgetStrategy: "inline" | "artifact" | "truncate";
7013
7982
  artifactPath?: string | undefined;
7014
7983
  }>>;
7015
7984
  }, z.ZodTypeAny, "passthrough">>;