@dipoleml/dcode-cli 1.1.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 +59253 -45604
  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 +6612 -202
  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 +763 -15
  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 +351 -47
  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 +1733 -318
  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 +359 -28
  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 +170 -65
  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 +7145 -1002
  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 +20 -1
  230. package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +98 -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 +41 -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 +1461 -85
  367. package/node_modules/@dcode/shared/dist/validation.js +423 -14
  368. package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +71 -15
  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 +5118 -2579
  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
@@ -3,11 +3,11 @@ export declare const statePatchSchema: z.ZodObject<{
3
3
  revision: z.ZodOptional<z.ZodNumber>;
4
4
  control: z.ZodOptional<z.ZodObject<{
5
5
  phase: z.ZodEnum<{
6
- running: "running";
7
6
  error: "error";
7
+ running: "running";
8
+ draft: "draft";
8
9
  completedSuccess: "completedSuccess";
9
10
  completedInterrupted: "completedInterrupted";
10
- draft: "draft";
11
11
  prewarming: "prewarming";
12
12
  }>;
13
13
  sessionEnded: z.ZodBoolean;
@@ -18,9 +18,9 @@ export declare const statePatchSchema: z.ZodObject<{
18
18
  stopping: "stopping";
19
19
  }>;
20
20
  stopTargetKind: z.ZodEnum<{
21
- subagent: "subagent";
22
21
  unknown: "unknown";
23
22
  assistant: "assistant";
23
+ subagent: "subagent";
24
24
  tool: "tool";
25
25
  compact: "compact";
26
26
  goalContinuation: "goalContinuation";
@@ -38,6 +38,7 @@ export declare const statePatchSchema: z.ZodObject<{
38
38
  foregroundSubagent: "foregroundSubagent";
39
39
  }>;
40
40
  foregroundExecutionId: z.ZodOptional<z.ZodString>;
41
+ sourceCommandId: z.ZodOptional<z.ZodString>;
41
42
  startedAt: z.ZodNumber;
42
43
  }, z.core.$strip>>;
43
44
  lastError: z.ZodNullable<z.ZodObject<{
@@ -47,8 +48,8 @@ export declare const statePatchSchema: z.ZodObject<{
47
48
  at: z.ZodNumber;
48
49
  source: z.ZodEnum<{
49
50
  provider: "provider";
50
- tool: "tool";
51
51
  runtime: "runtime";
52
+ tool: "tool";
52
53
  network: "network";
53
54
  }>;
54
55
  traceId: z.ZodOptional<z.ZodString>;
@@ -58,28 +59,28 @@ export declare const statePatchSchema: z.ZodObject<{
58
59
  attribution: z.ZodOptional<z.ZodObject<{
59
60
  source: z.ZodOptional<z.ZodEnum<{
60
61
  provider: "provider";
61
- tool: "tool";
62
62
  runtime: "runtime";
63
+ tool: "tool";
63
64
  network: "network";
64
65
  }>>;
65
66
  reason: z.ZodOptional<z.ZodString>;
66
67
  errorPhase: z.ZodOptional<z.ZodEnum<{
67
68
  response: "response";
69
+ connect: "connect";
68
70
  prepare: "prepare";
69
71
  configuration: "configuration";
70
- connect: "connect";
71
72
  stream: "stream";
72
73
  parse: "parse";
73
74
  validation: "validation";
74
75
  unhandled: "unhandled";
75
76
  }>>;
76
77
  exceptionKind: z.ZodOptional<z.ZodEnum<{
78
+ transport: "transport";
77
79
  validation: "validation";
78
80
  api_call: "api_call";
79
81
  generic: "generic";
80
82
  protocol: "protocol";
81
83
  provider_business: "provider_business";
82
- transport: "transport";
83
84
  type_error: "type_error";
84
85
  }>>;
85
86
  providerId: z.ZodOptional<z.ZodString>;
@@ -167,11 +168,11 @@ export declare const statePatchSchema: z.ZodObject<{
167
168
  }, z.core.$strip>>;
168
169
  inputRouting: z.ZodOptional<z.ZodObject<{
169
170
  mode: z.ZodEnum<{
170
- startNow: "startNow";
171
171
  guide: "guide";
172
+ choice: "choice";
173
+ startNow: "startNow";
172
174
  enqueue: "enqueue";
173
175
  reject: "reject";
174
- choice: "choice";
175
176
  }>;
176
177
  reasonCode: z.ZodOptional<z.ZodString>;
177
178
  }, z.core.$strip>>;
@@ -239,13 +240,13 @@ export declare const statePatchSchema: z.ZodObject<{
239
240
  }, z.core.$strict>>;
240
241
  breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
241
242
  source: z.ZodEnum<{
243
+ messages: "messages";
242
244
  system_prompt: "system_prompt";
243
245
  meta_user_context: "meta_user_context";
244
246
  skills: "skills";
245
247
  tool_prompt: "tool_prompt";
246
248
  system_tool_schemas: "system_tool_schemas";
247
249
  mcp_tool_schemas: "mcp_tool_schemas";
248
- messages: "messages";
249
250
  }>;
250
251
  chars: z.ZodNumber;
251
252
  }, z.core.$strict>>>;
@@ -259,6 +260,126 @@ export declare const statePatchSchema: z.ZodObject<{
259
260
  }, z.core.$strip>>;
260
261
  queue: z.ZodOptional<z.ZodObject<{
261
262
  items: z.ZodArray<z.ZodObject<{
263
+ inputOrigin: z.ZodOptional<z.ZodEnum<{
264
+ desktop: "desktop";
265
+ mobile: "mobile";
266
+ }>>;
267
+ botGroupSource: z.ZodOptional<z.ZodObject<{
268
+ botIdentity: z.ZodOptional<z.ZodObject<{
269
+ name: z.ZodString;
270
+ openId: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strict>>;
272
+ appId: z.ZodOptional<z.ZodString>;
273
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
274
+ type: z.ZodLiteral<"text">;
275
+ text: z.ZodString;
276
+ }, z.core.$strict>, z.ZodObject<{
277
+ type: z.ZodLiteral<"channelMention">;
278
+ refId: z.ZodString;
279
+ name: z.ZodString;
280
+ channel: z.ZodEnum<{
281
+ feishu: "feishu";
282
+ lark: "lark";
283
+ }>;
284
+ targetId: z.ZodString;
285
+ idType: z.ZodLiteral<"open_id">;
286
+ entityType: z.ZodEnum<{
287
+ unknown: "unknown";
288
+ user: "user";
289
+ bot: "bot";
290
+ }>;
291
+ }, z.core.$strict>]>>>;
292
+ authorizationId: z.ZodOptional<z.ZodString>;
293
+ botId: z.ZodString;
294
+ provider: z.ZodEnum<{
295
+ feishu: "feishu";
296
+ lark: "lark";
297
+ }>;
298
+ chatId: z.ZodString;
299
+ threadId: z.ZodOptional<z.ZodString>;
300
+ rootMessageId: z.ZodOptional<z.ZodString>;
301
+ senderId: z.ZodString;
302
+ senderName: z.ZodString;
303
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
304
+ messageId: z.ZodString;
305
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
307
+ type: z.ZodLiteral<"text">;
308
+ text: z.ZodString;
309
+ }, z.core.$strict>, z.ZodObject<{
310
+ type: z.ZodLiteral<"channelMention">;
311
+ refId: z.ZodString;
312
+ name: z.ZodString;
313
+ channel: z.ZodEnum<{
314
+ feishu: "feishu";
315
+ lark: "lark";
316
+ }>;
317
+ targetId: z.ZodString;
318
+ idType: z.ZodLiteral<"open_id">;
319
+ entityType: z.ZodEnum<{
320
+ unknown: "unknown";
321
+ user: "user";
322
+ bot: "bot";
323
+ }>;
324
+ }, z.core.$strict>]>>>;
325
+ messageId: z.ZodString;
326
+ senderId: z.ZodString;
327
+ senderName: z.ZodString;
328
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
329
+ text: z.ZodString;
330
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
331
+ text: z.ZodString;
332
+ path: z.ZodOptional<z.ZodString>;
333
+ senderName: z.ZodOptional<z.ZodString>;
334
+ senderId: z.ZodOptional<z.ZodString>;
335
+ messageId: z.ZodOptional<z.ZodString>;
336
+ sentAt: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strip>>>;
338
+ attachmentIndexes: z.ZodArray<z.ZodNumber>;
339
+ }, z.core.$strict>>>;
340
+ topicContext: z.ZodOptional<z.ZodObject<{
341
+ messages: z.ZodArray<z.ZodObject<{
342
+ id: z.ZodString;
343
+ chatId: z.ZodString;
344
+ threadId: z.ZodString;
345
+ senderId: z.ZodString;
346
+ senderName: z.ZodOptional<z.ZodString>;
347
+ parentId: z.ZodOptional<z.ZodString>;
348
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
349
+ name: z.ZodString;
350
+ kind: z.ZodString;
351
+ }, z.core.$strict>>>;
352
+ senderType: z.ZodEnum<{
353
+ user: "user";
354
+ app: "app";
355
+ }>;
356
+ text: z.ZodString;
357
+ createdAt: z.ZodNumber;
358
+ kind: z.ZodString;
359
+ controlCard: z.ZodOptional<z.ZodBoolean>;
360
+ deleted: z.ZodOptional<z.ZodBoolean>;
361
+ }, z.core.$strict>>;
362
+ checkpoint: z.ZodString;
363
+ hasGap: z.ZodBoolean;
364
+ }, z.core.$strict>>;
365
+ topicHistory: z.ZodOptional<z.ZodObject<{
366
+ checkpoint: z.ZodString;
367
+ hasGap: z.ZodBoolean;
368
+ messageCount: z.ZodNumber;
369
+ resourceMessages: z.ZodArray<z.ZodObject<{
370
+ messageId: z.ZodString;
371
+ count: z.ZodNumber;
372
+ }, z.core.$strict>>;
373
+ }, z.core.$strict>>;
374
+ }, z.core.$strict>>;
375
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
376
+ text: z.ZodString;
377
+ path: z.ZodOptional<z.ZodString>;
378
+ senderName: z.ZodOptional<z.ZodString>;
379
+ senderId: z.ZodOptional<z.ZodString>;
380
+ messageId: z.ZodOptional<z.ZodString>;
381
+ sentAt: z.ZodOptional<z.ZodString>;
382
+ }, z.core.$strip>>>;
262
383
  sourceCommandId: z.ZodString;
263
384
  queueItemId: z.ZodString;
264
385
  clientId: z.ZodString;
@@ -273,6 +394,11 @@ export declare const statePatchSchema: z.ZodObject<{
273
394
  fileName: z.ZodString;
274
395
  mime: z.ZodString;
275
396
  bytes: z.ZodNumber;
397
+ sourceKind: z.ZodOptional<z.ZodEnum<{
398
+ "clipboard-text": "clipboard-text";
399
+ "topic-history": "topic-history";
400
+ }>>;
401
+ messageCount: z.ZodOptional<z.ZodNumber>;
276
402
  previewRef: z.ZodOptional<z.ZodString>;
277
403
  }, z.core.$strict>>>;
278
404
  modelSelection: z.ZodOptional<z.ZodObject<{
@@ -287,6 +413,7 @@ export declare const statePatchSchema: z.ZodObject<{
287
413
  build: "build";
288
414
  edit: "edit";
289
415
  yolo: "yolo";
416
+ guarded: "guarded";
290
417
  }>>;
291
418
  planEnabled: z.ZodOptional<z.ZodBoolean>;
292
419
  sharedContextRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -296,14 +423,14 @@ export declare const statePatchSchema: z.ZodObject<{
296
423
  delivery: z.ZodObject<{
297
424
  requested: z.ZodEnum<{
298
425
  auto: "auto";
299
- startNow: "startNow";
300
426
  queue: "queue";
301
427
  guide: "guide";
428
+ startNow: "startNow";
302
429
  }>;
303
430
  admitted: z.ZodEnum<{
304
- startNow: "startNow";
305
431
  queue: "queue";
306
432
  guide: "guide";
433
+ startNow: "startNow";
307
434
  }>;
308
435
  fallbackReasonCode: z.ZodOptional<z.ZodString>;
309
436
  }, z.core.$strict>;
@@ -322,16 +449,47 @@ export declare const statePatchSchema: z.ZodObject<{
322
449
  reasonCode: z.ZodOptional<z.ZodString>;
323
450
  }, z.core.$strict>;
324
451
  admittedAt: z.ZodNumber;
452
+ highspeed: z.ZodOptional<z.ZodObject<{
453
+ schemaVersion: z.ZodLiteral<1>;
454
+ cardId: z.ZodString;
455
+ taskId: z.ZodString;
456
+ provider: z.ZodString;
457
+ model: z.ZodString;
458
+ issuedAt: z.ZodNumber;
459
+ expiresAt: z.ZodNumber;
460
+ regularTps: z.ZodOptional<z.ZodNumber>;
461
+ outputTokens: z.ZodOptional<z.ZodNumber>;
462
+ durationMs: z.ZodOptional<z.ZodNumber>;
463
+ highspeedTps: z.ZodOptional<z.ZodNumber>;
464
+ savedDurationMs: z.ZodOptional<z.ZodNumber>;
465
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
466
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
467
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
468
+ fallbackAt: z.ZodOptional<z.ZodNumber>;
469
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
470
+ highspeed_card_expired: "highspeed_card_expired";
471
+ highspeed_request_failed: "highspeed_request_failed";
472
+ }>>;
473
+ }, z.core.$strict>>;
325
474
  provenance: z.ZodOptional<z.ZodObject<{
326
475
  sourceCommandId: z.ZodString;
327
476
  queueItemId: z.ZodOptional<z.ZodString>;
328
477
  clientId: z.ZodOptional<z.ZodString>;
329
478
  }, z.core.$strict>>;
479
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
480
+ kind: z.ZodLiteral<"pluginUi">;
481
+ pluginId: z.ZodString;
482
+ toolCallId: z.ZodString;
483
+ }, z.core.$strict>, z.ZodObject<{
484
+ kind: z.ZodLiteral<"genUi">;
485
+ path: z.ZodString;
486
+ title: z.ZodOptional<z.ZodString>;
487
+ }, z.core.$strict>], "kind">>;
330
488
  dispatch: z.ZodObject<{
331
489
  reservationId: z.ZodOptional<z.ZodString>;
332
490
  state: z.ZodEnum<{
333
- queued: "queued";
334
491
  reserved: "reserved";
492
+ queued: "queued";
335
493
  promoting: "promoting";
336
494
  }>;
337
495
  }, z.core.$strict>;
@@ -340,16 +498,16 @@ export declare const statePatchSchema: z.ZodObject<{
340
498
  autoDrain: z.ZodBoolean;
341
499
  pauseReason: z.ZodOptional<z.ZodEnum<{
342
500
  error: "error";
343
- stopped: "stopped";
344
501
  manual: "manual";
502
+ stopped: "stopped";
345
503
  }>>;
346
504
  }, z.core.$strip>>;
347
505
  pendingInteractions: z.ZodOptional<z.ZodArray<z.ZodObject<{
348
506
  interactionId: z.ZodString;
349
507
  kind: z.ZodEnum<{
508
+ permission: "permission";
350
509
  userInput: "userInput";
351
510
  workspaceHookReview: "workspaceHookReview";
352
- permission: "permission";
353
511
  }>;
354
512
  anchorRowId: z.ZodNullable<z.ZodNumber>;
355
513
  createdAt: z.ZodNumber;
@@ -409,8 +567,8 @@ export declare const statePatchSchema: z.ZodObject<{
409
567
  }, z.core.$strict>, z.ZodObject<{
410
568
  kind: z.ZodLiteral<"respond_to_coordinator">;
411
569
  status: z.ZodEnum<{
412
- failed: "failed";
413
570
  success: "success";
571
+ failed: "failed";
414
572
  }>;
415
573
  }, z.core.$strict>, z.ZodObject<{
416
574
  kind: z.ZodLiteral<"mcp_tool">;
@@ -419,10 +577,34 @@ export declare const statePatchSchema: z.ZodObject<{
419
577
  description: z.ZodOptional<z.ZodString>;
420
578
  unavailable: z.ZodOptional<z.ZodObject<{
421
579
  code: z.ZodEnum<{
422
- quota_exceeded: "quota_exceeded";
423
580
  coding_plan_required: "coding_plan_required";
581
+ quota_exceeded: "quota_exceeded";
424
582
  }>;
425
583
  }, z.core.$strict>>;
584
+ ui: z.ZodOptional<z.ZodObject<{
585
+ pluginId: z.ZodString;
586
+ resourceUri: z.ZodString;
587
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
588
+ inline: "inline";
589
+ fullscreen: "fullscreen";
590
+ pip: "pip";
591
+ }>>;
592
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
593
+ csp: z.ZodOptional<z.ZodObject<{
594
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
595
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
596
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
597
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
598
+ }, z.core.$strict>>;
599
+ structuredContent: z.ZodOptional<z.ZodString>;
600
+ widgetMeta: z.ZodOptional<z.ZodString>;
601
+ content: z.ZodOptional<z.ZodString>;
602
+ truncated: z.ZodOptional<z.ZodBoolean>;
603
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
604
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
605
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
606
+ surface: z.ZodOptional<z.ZodString>;
607
+ }, z.core.$strict>>;
426
608
  }, z.core.$strict>, z.ZodObject<{
427
609
  kind: z.ZodLiteral<"create_workflow">;
428
610
  ok: z.ZodBoolean;
@@ -439,6 +621,7 @@ export declare const statePatchSchema: z.ZodObject<{
439
621
  kind: z.ZodEnum<{
440
622
  ask: "ask";
441
623
  "world-read": "world-read";
624
+ hole: "hole";
442
625
  }>;
443
626
  label: z.ZodString;
444
627
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -455,6 +638,7 @@ export declare const statePatchSchema: z.ZodObject<{
455
638
  stack: "stack";
456
639
  serial: "serial";
457
640
  }>>;
641
+ fill: z.ZodOptional<z.ZodString>;
458
642
  }, z.core.$strict>>;
459
643
  lanes: z.ZodArray<z.ZodObject<{
460
644
  id: z.ZodString;
@@ -489,33 +673,51 @@ export declare const statePatchSchema: z.ZodObject<{
489
673
  line: z.ZodOptional<z.ZodNumber>;
490
674
  column: z.ZodOptional<z.ZodNumber>;
491
675
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
676
+ fill: z.ZodOptional<z.ZodString>;
492
677
  }, z.core.$strict>>>;
493
678
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
494
679
  from: z.ZodString;
495
680
  to: z.ZodString;
496
681
  back: z.ZodOptional<z.ZodLiteral<true>>;
497
682
  }, z.core.$strict>>>;
683
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
684
+ from: z.ZodString;
685
+ to: z.ZodString;
686
+ }, z.core.$strict>>>;
687
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
688
+ siteId: z.ZodString;
689
+ name: z.ZodString;
690
+ type: z.ZodString;
691
+ phase: z.ZodOptional<z.ZodString>;
692
+ tail: z.ZodOptional<z.ZodBoolean>;
693
+ }, z.core.$strict>>>;
498
694
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
499
695
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
500
696
  truncated: z.ZodOptional<z.ZodBoolean>;
501
697
  }, z.core.$strict>>;
502
698
  truncated: z.ZodOptional<z.ZodBoolean>;
699
+ fill: z.ZodOptional<z.ZodObject<{
700
+ siteId: z.ZodString;
701
+ name: z.ZodString;
702
+ draftPath: z.ZodOptional<z.ZodString>;
703
+ line: z.ZodOptional<z.ZodNumber>;
704
+ }, z.core.$strict>>;
503
705
  }, z.core.$strict>, z.ZodObject<{
504
706
  kind: z.ZodLiteral<"get_workflow_run">;
505
707
  runId: z.ZodString;
506
708
  label: z.ZodString;
507
709
  status: z.ZodEnum<{
710
+ completed: "completed";
508
711
  pending: "pending";
509
712
  running: "running";
510
- completed: "completed";
511
- stopped: "stopped";
512
713
  errored: "errored";
714
+ stopped: "stopped";
513
715
  }>;
514
716
  stopReason: z.ZodOptional<z.ZodEnum<{
515
- interrupted: "interrupted";
516
717
  user: "user";
517
718
  model: "model";
518
719
  provider: "provider";
720
+ interrupted: "interrupted";
519
721
  superseded: "superseded";
520
722
  }>>;
521
723
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -531,8 +733,8 @@ export declare const statePatchSchema: z.ZodObject<{
531
733
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
532
734
  name: z.ZodString;
533
735
  state: z.ZodEnum<{
534
- done: "done";
535
736
  current: "current";
737
+ done: "done";
536
738
  ahead: "ahead";
537
739
  unfinished: "unfinished";
538
740
  }>;
@@ -548,11 +750,11 @@ export declare const statePatchSchema: z.ZodObject<{
548
750
  name: z.ZodOptional<z.ZodString>;
549
751
  state: z.ZodEnum<{
550
752
  failed: "failed";
753
+ idle: "idle";
754
+ waiting: "waiting";
551
755
  done: "done";
552
756
  unfinished: "unfinished";
553
- idle: "idle";
554
757
  executing: "executing";
555
- waiting: "waiting";
556
758
  parked: "parked";
557
759
  }>;
558
760
  phaseName: z.ZodOptional<z.ZodString>;
@@ -613,21 +815,21 @@ export declare const statePatchSchema: z.ZodObject<{
613
815
  runId: z.ZodString;
614
816
  label: z.ZodString;
615
817
  labelSource: z.ZodEnum<{
616
- script: "script";
617
818
  name: "name";
819
+ script: "script";
618
820
  }>;
619
821
  status: z.ZodEnum<{
822
+ completed: "completed";
620
823
  pending: "pending";
621
824
  running: "running";
622
- completed: "completed";
623
- stopped: "stopped";
624
825
  errored: "errored";
826
+ stopped: "stopped";
625
827
  }>;
626
828
  stopReason: z.ZodOptional<z.ZodEnum<{
627
- interrupted: "interrupted";
628
829
  user: "user";
629
830
  model: "model";
630
831
  provider: "provider";
832
+ interrupted: "interrupted";
631
833
  superseded: "superseded";
632
834
  }>>;
633
835
  ownedByThisSession: z.ZodBoolean;
@@ -826,8 +1028,8 @@ export declare const statePatchSchema: z.ZodObject<{
826
1028
  resolvedTimeoutMs: z.ZodNumber;
827
1029
  resolvedMaxOutputBytes: z.ZodNumber;
828
1030
  executionMode: z.ZodEnum<{
829
- foreground: "foreground";
830
1031
  background: "background";
1032
+ foreground: "foreground";
831
1033
  }>;
832
1034
  configuredEnabled: z.ZodBoolean;
833
1035
  editable: z.ZodBoolean;
@@ -849,8 +1051,8 @@ export declare const statePatchSchema: z.ZodObject<{
849
1051
  clientId: z.ZodString;
850
1052
  type: z.ZodString;
851
1053
  state: z.ZodEnum<{
852
- executing: "executing";
853
1054
  accepted: "accepted";
1055
+ executing: "executing";
854
1056
  }>;
855
1057
  at: z.ZodNumber;
856
1058
  }, z.core.$strip>>>;
@@ -863,9 +1065,9 @@ export declare const statePatchSchema: z.ZodObject<{
863
1065
  }>;
864
1066
  title: z.ZodString;
865
1067
  status: z.ZodEnum<{
866
- running: "running";
867
- failed: "failed";
868
1068
  cancelled: "cancelled";
1069
+ failed: "failed";
1070
+ running: "running";
869
1071
  resultPending: "resultPending";
870
1072
  }>;
871
1073
  startedAt: z.ZodNumber;
@@ -900,17 +1102,17 @@ export declare const statePatchSchema: z.ZodObject<{
900
1102
  runId: z.ZodString;
901
1103
  toolCallId: z.ZodOptional<z.ZodString>;
902
1104
  status: z.ZodEnum<{
1105
+ completed: "completed";
903
1106
  pending: "pending";
904
1107
  running: "running";
905
- completed: "completed";
906
- stopped: "stopped";
907
1108
  errored: "errored";
1109
+ stopped: "stopped";
908
1110
  }>;
909
1111
  stopReason: z.ZodOptional<z.ZodEnum<{
910
- interrupted: "interrupted";
911
1112
  user: "user";
912
1113
  model: "model";
913
1114
  provider: "provider";
1115
+ interrupted: "interrupted";
914
1116
  superseded: "superseded";
915
1117
  }>>;
916
1118
  resumedFrom: z.ZodOptional<z.ZodString>;
@@ -930,11 +1132,12 @@ export declare const statePatchSchema: z.ZodObject<{
930
1132
  name: z.ZodOptional<z.ZodString>;
931
1133
  sessionId: z.ZodOptional<z.ZodString>;
932
1134
  status: z.ZodEnum<{
933
- running: "running";
934
1135
  completed: "completed";
1136
+ running: "running";
935
1137
  waiting: "waiting";
936
1138
  }>;
937
1139
  phaseName: z.ZodOptional<z.ZodString>;
1140
+ model: z.ZodOptional<z.ZodString>;
938
1141
  }, z.core.$strip>>;
939
1142
  nodes: z.ZodArray<z.ZodObject<{
940
1143
  siteId: z.ZodString;
@@ -944,18 +1147,18 @@ export declare const statePatchSchema: z.ZodObject<{
944
1147
  "world-read": "world-read";
945
1148
  }>>;
946
1149
  phase: z.ZodEnum<{
1150
+ waiting: "waiting";
947
1151
  queued: "queued";
948
1152
  executing: "executing";
949
- waiting: "waiting";
950
- settled: "settled";
951
1153
  dispatched: "dispatched";
952
1154
  repairing: "repairing";
953
1155
  nudged: "nudged";
1156
+ settled: "settled";
954
1157
  }>;
955
1158
  outcome: z.ZodOptional<z.ZodEnum<{
956
- failed: "failed";
957
1159
  cancelled: "cancelled";
958
1160
  ok: "ok";
1161
+ failed: "failed";
959
1162
  }>>;
960
1163
  cached: z.ZodOptional<z.ZodBoolean>;
961
1164
  actorSiteId: z.ZodOptional<z.ZodString>;
@@ -1017,6 +1220,21 @@ export declare const statePatchSchema: z.ZodObject<{
1017
1220
  currentPhase: z.ZodOptional<z.ZodString>;
1018
1221
  phaseNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
1019
1222
  phaseAlongside: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>;
1223
+ phaseHoles: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1224
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1225
+ siteId: z.ZodString;
1226
+ ordinal: z.ZodNumber;
1227
+ name: z.ZodString;
1228
+ type: z.ZodOptional<z.ZodString>;
1229
+ prompt: z.ZodOptional<z.ZodString>;
1230
+ state: z.ZodEnum<{
1231
+ waiting: "waiting";
1232
+ filled: "filled";
1233
+ }>;
1234
+ since: z.ZodOptional<z.ZodNumber>;
1235
+ filledAt: z.ZodOptional<z.ZodNumber>;
1236
+ filledBy: z.ZodOptional<z.ZodString>;
1237
+ }, z.core.$strip>>>;
1020
1238
  unlistedByPhase: z.ZodOptional<z.ZodArray<z.ZodObject<{
1021
1239
  phaseName: z.ZodOptional<z.ZodString>;
1022
1240
  actors: z.ZodNumber;
@@ -1036,8 +1254,8 @@ export declare const statePatchSchema: z.ZodObject<{
1036
1254
  activeRunStartedAtMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1037
1255
  status: z.ZodEnum<{
1038
1256
  failed: "failed";
1039
- active: "active";
1040
1257
  paused: "paused";
1258
+ active: "active";
1041
1259
  notSatisfied: "notSatisfied";
1042
1260
  verifying: "verifying";
1043
1261
  verified: "verified";
@@ -1061,8 +1279,8 @@ export declare const statePatchSchema: z.ZodObject<{
1061
1279
  id: z.ZodString;
1062
1280
  content: z.ZodString;
1063
1281
  status: z.ZodEnum<{
1064
- pending: "pending";
1065
1282
  completed: "completed";
1283
+ pending: "pending";
1066
1284
  inProgress: "inProgress";
1067
1285
  }>;
1068
1286
  }, z.core.$strip>>;
@@ -1074,8 +1292,8 @@ export declare const statePatchSchema: z.ZodObject<{
1074
1292
  id: z.ZodString;
1075
1293
  content: z.ZodString;
1076
1294
  status: z.ZodEnum<{
1077
- pending: "pending";
1078
1295
  completed: "completed";
1296
+ pending: "pending";
1079
1297
  inProgress: "inProgress";
1080
1298
  }>;
1081
1299
  }, z.core.$strip>>;
@@ -1088,48 +1306,66 @@ export declare const statePatchSchema: z.ZodObject<{
1088
1306
  }, z.core.$strip>>>;
1089
1307
  }, z.core.$strip>;
1090
1308
  export type StatePatch = z.infer<typeof statePatchSchema>;
1309
+ export declare const pluginUiResourceSubscriberSchema: z.ZodObject<{
1310
+ scopeId: z.ZodString;
1311
+ generation: z.ZodNumber;
1312
+ instance: z.ZodObject<{
1313
+ runtimeId: z.ZodString;
1314
+ generation: z.ZodNumber;
1315
+ appIdentity: z.ZodString;
1316
+ token: z.ZodString;
1317
+ }, z.core.$strict>;
1318
+ }, z.core.$strict>;
1091
1319
  /**
1092
1320
  * run 的 **header** = `workflowRunSchema` 减去 actors / nodes 两张按实例增量同步的表。
1093
1321
  *
1094
- * 使用 `.omit` 从同一 schema 派生,避免独立维护的字段表不一致导致订阅解析失败。小集合(reports / artifacts / phases / pendingQuestions…)留在 header 里整键替换——
1322
+ * `.omit` 派生而不是手抄一份字段表:2026-09-04 的那次订阅永久失效就是「两处各写一份 run 词汇表」
1323
+ * 的后果。小集合(reports / artifacts / phases / pendingQuestions…)留在 header 里整键替换——
1095
1324
  * 它们的上界都是几十条,为它们再开一套增量语法只会多一套能写错的东西。
1096
1325
  */
1097
1326
  export declare const workflowRunHeaderSchema: z.ZodObject<{
1098
1327
  error: z.ZodOptional<z.ZodString>;
1099
- toolCallId: z.ZodOptional<z.ZodString>;
1100
- status: z.ZodEnum<{
1101
- pending: "pending";
1102
- running: "running";
1103
- completed: "completed";
1104
- stopped: "stopped";
1105
- errored: "errored";
1106
- }>;
1107
1328
  truncated: z.ZodOptional<z.ZodBoolean>;
1108
1329
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
1109
1330
  name: z.ZodString;
1110
1331
  rounds: z.ZodNumber;
1111
1332
  }, z.core.$strip>>>;
1112
- concurrency: z.ZodOptional<z.ZodObject<{
1113
- key: z.ZodOptional<z.ZodString>;
1114
- cap: z.ZodNumber;
1115
- ceiling: z.ZodNumber;
1116
- limit: z.ZodOptional<z.ZodNumber>;
1117
- cooldownMs: z.ZodOptional<z.ZodNumber>;
1118
- }, z.core.$strip>>;
1119
- runId: z.ZodString;
1333
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1334
+ siteId: z.ZodString;
1335
+ ordinal: z.ZodNumber;
1336
+ name: z.ZodString;
1337
+ type: z.ZodOptional<z.ZodString>;
1338
+ prompt: z.ZodOptional<z.ZodString>;
1339
+ state: z.ZodEnum<{
1340
+ waiting: "waiting";
1341
+ filled: "filled";
1342
+ }>;
1343
+ since: z.ZodOptional<z.ZodNumber>;
1344
+ filledAt: z.ZodOptional<z.ZodNumber>;
1345
+ filledBy: z.ZodOptional<z.ZodString>;
1346
+ }, z.core.$strip>>>;
1347
+ status: z.ZodEnum<{
1348
+ completed: "completed";
1349
+ pending: "pending";
1350
+ running: "running";
1351
+ errored: "errored";
1352
+ stopped: "stopped";
1353
+ }>;
1120
1354
  stopReason: z.ZodOptional<z.ZodEnum<{
1121
- interrupted: "interrupted";
1122
1355
  user: "user";
1123
1356
  model: "model";
1124
1357
  provider: "provider";
1358
+ interrupted: "interrupted";
1125
1359
  superseded: "superseded";
1126
1360
  }>>;
1361
+ toolCallId: z.ZodOptional<z.ZodString>;
1127
1362
  usage: z.ZodObject<{
1128
1363
  spentTokens: z.ZodNumber;
1129
1364
  nodesUsed: z.ZodNumber;
1130
1365
  nodesUnlisted: z.ZodOptional<z.ZodNumber>;
1131
1366
  nodesUnlistedSettled: z.ZodOptional<z.ZodNumber>;
1132
1367
  }, z.core.$strip>;
1368
+ runId: z.ZodString;
1133
1369
  artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1134
1370
  id: z.ZodString;
1135
1371
  kind: z.ZodEnum<{
@@ -1147,16 +1383,24 @@ export declare const workflowRunHeaderSchema: z.ZodObject<{
1147
1383
  itemCount: z.ZodOptional<z.ZodNumber>;
1148
1384
  primary: z.ZodOptional<z.ZodLiteral<true>>;
1149
1385
  }, z.core.$strict>>>;
1150
- resumedFrom: z.ZodOptional<z.ZodString>;
1151
- supersededBy: z.ZodOptional<z.ZodString>;
1152
- resumable: z.ZodOptional<z.ZodLiteral<true>>;
1153
- resultPreview: z.ZodOptional<z.ZodString>;
1154
1386
  reports: z.ZodOptional<z.ZodArray<z.ZodObject<{
1155
1387
  siteId: z.ZodString;
1156
1388
  ordinal: z.ZodNumber;
1157
1389
  preview: z.ZodString;
1158
1390
  artifactId: z.ZodOptional<z.ZodString>;
1159
1391
  }, z.core.$strip>>>;
1392
+ subagentModel: z.ZodOptional<z.ZodString>;
1393
+ concurrency: z.ZodOptional<z.ZodObject<{
1394
+ key: z.ZodOptional<z.ZodString>;
1395
+ cap: z.ZodNumber;
1396
+ ceiling: z.ZodNumber;
1397
+ limit: z.ZodOptional<z.ZodNumber>;
1398
+ cooldownMs: z.ZodOptional<z.ZodNumber>;
1399
+ }, z.core.$strip>>;
1400
+ resumedFrom: z.ZodOptional<z.ZodString>;
1401
+ supersededBy: z.ZodOptional<z.ZodString>;
1402
+ resumable: z.ZodOptional<z.ZodLiteral<true>>;
1403
+ resultPreview: z.ZodOptional<z.ZodString>;
1160
1404
  pendingQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1161
1405
  qid: z.ZodString;
1162
1406
  actorSiteId: z.ZodOptional<z.ZodString>;
@@ -1167,10 +1411,10 @@ export declare const workflowRunHeaderSchema: z.ZodObject<{
1167
1411
  askedAt: z.ZodOptional<z.ZodNumber>;
1168
1412
  }, z.core.$strip>>>;
1169
1413
  concurrencyCeiling: z.ZodOptional<z.ZodNumber>;
1170
- subagentModel: z.ZodOptional<z.ZodString>;
1171
1414
  currentPhase: z.ZodOptional<z.ZodString>;
1172
1415
  phaseNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
1173
1416
  phaseAlongside: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>;
1417
+ phaseHoles: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1174
1418
  unlistedByPhase: z.ZodOptional<z.ZodArray<z.ZodObject<{
1175
1419
  phaseName: z.ZodOptional<z.ZodString>;
1176
1420
  actors: z.ZodNumber;
@@ -1184,40 +1428,47 @@ export type WorkflowRunHeader = z.infer<typeof workflowRunHeaderSchema>;
1184
1428
  /** header 的部分更新:在场的键整键替换,缺席的键保持不动(绝不深合并)。 */
1185
1429
  export declare const workflowRunHeaderPatchSchema: z.ZodObject<{
1186
1430
  error: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1187
- toolCallId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1188
- status: z.ZodOptional<z.ZodEnum<{
1189
- pending: "pending";
1190
- running: "running";
1191
- completed: "completed";
1192
- stopped: "stopped";
1193
- errored: "errored";
1194
- }>>;
1195
1431
  truncated: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1196
1432
  phases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1197
1433
  name: z.ZodString;
1198
1434
  rounds: z.ZodNumber;
1199
1435
  }, z.core.$strip>>>>;
1200
- concurrency: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1201
- key: z.ZodOptional<z.ZodString>;
1202
- cap: z.ZodNumber;
1203
- ceiling: z.ZodNumber;
1204
- limit: z.ZodOptional<z.ZodNumber>;
1205
- cooldownMs: z.ZodOptional<z.ZodNumber>;
1206
- }, z.core.$strip>>>;
1207
- runId: z.ZodOptional<z.ZodString>;
1436
+ holes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1437
+ siteId: z.ZodString;
1438
+ ordinal: z.ZodNumber;
1439
+ name: z.ZodString;
1440
+ type: z.ZodOptional<z.ZodString>;
1441
+ prompt: z.ZodOptional<z.ZodString>;
1442
+ state: z.ZodEnum<{
1443
+ waiting: "waiting";
1444
+ filled: "filled";
1445
+ }>;
1446
+ since: z.ZodOptional<z.ZodNumber>;
1447
+ filledAt: z.ZodOptional<z.ZodNumber>;
1448
+ filledBy: z.ZodOptional<z.ZodString>;
1449
+ }, z.core.$strip>>>>;
1450
+ status: z.ZodOptional<z.ZodEnum<{
1451
+ completed: "completed";
1452
+ pending: "pending";
1453
+ running: "running";
1454
+ errored: "errored";
1455
+ stopped: "stopped";
1456
+ }>>;
1208
1457
  stopReason: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1209
- interrupted: "interrupted";
1210
1458
  user: "user";
1211
1459
  model: "model";
1212
1460
  provider: "provider";
1461
+ interrupted: "interrupted";
1213
1462
  superseded: "superseded";
1214
1463
  }>>>;
1464
+ toolCallId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1215
1465
  usage: z.ZodOptional<z.ZodObject<{
1216
1466
  spentTokens: z.ZodNumber;
1217
1467
  nodesUsed: z.ZodNumber;
1218
1468
  nodesUnlisted: z.ZodOptional<z.ZodNumber>;
1219
1469
  nodesUnlistedSettled: z.ZodOptional<z.ZodNumber>;
1220
1470
  }, z.core.$strip>>;
1471
+ runId: z.ZodOptional<z.ZodString>;
1221
1472
  artifacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1222
1473
  id: z.ZodString;
1223
1474
  kind: z.ZodEnum<{
@@ -1235,16 +1486,24 @@ export declare const workflowRunHeaderPatchSchema: z.ZodObject<{
1235
1486
  itemCount: z.ZodOptional<z.ZodNumber>;
1236
1487
  primary: z.ZodOptional<z.ZodLiteral<true>>;
1237
1488
  }, z.core.$strict>>>>;
1238
- resumedFrom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1239
- supersededBy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1240
- resumable: z.ZodOptional<z.ZodOptional<z.ZodLiteral<true>>>;
1241
- resultPreview: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1242
1489
  reports: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1243
1490
  siteId: z.ZodString;
1244
1491
  ordinal: z.ZodNumber;
1245
1492
  preview: z.ZodString;
1246
1493
  artifactId: z.ZodOptional<z.ZodString>;
1247
1494
  }, z.core.$strip>>>>;
1495
+ subagentModel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1496
+ concurrency: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1497
+ key: z.ZodOptional<z.ZodString>;
1498
+ cap: z.ZodNumber;
1499
+ ceiling: z.ZodNumber;
1500
+ limit: z.ZodOptional<z.ZodNumber>;
1501
+ cooldownMs: z.ZodOptional<z.ZodNumber>;
1502
+ }, z.core.$strip>>>;
1503
+ resumedFrom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1504
+ supersededBy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1505
+ resumable: z.ZodOptional<z.ZodOptional<z.ZodLiteral<true>>>;
1506
+ resultPreview: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1248
1507
  pendingQuestions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1249
1508
  qid: z.ZodString;
1250
1509
  actorSiteId: z.ZodOptional<z.ZodString>;
@@ -1255,10 +1514,10 @@ export declare const workflowRunHeaderPatchSchema: z.ZodObject<{
1255
1514
  askedAt: z.ZodOptional<z.ZodNumber>;
1256
1515
  }, z.core.$strip>>>>;
1257
1516
  concurrencyCeiling: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1258
- subagentModel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1259
1517
  currentPhase: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1260
1518
  phaseNames: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1261
1519
  phaseAlongside: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
1520
+ phaseHoles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber>>>;
1262
1521
  unlistedByPhase: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1263
1522
  phaseName: z.ZodOptional<z.ZodString>;
1264
1523
  actors: z.ZodNumber;
@@ -1272,26 +1531,28 @@ export type WorkflowRunHeaderPatch = z.infer<typeof workflowRunHeaderPatchSchema
1272
1531
  /** 变成**缺席**的 header 键。「零条 ⇒ 键缺席」是 reports / pendingQuestions 等键的协议约定,所以增量必须说得出它。 */
1273
1532
  export declare const workflowRunHeaderKeySchema: z.ZodEnum<{
1274
1533
  error: "error";
1275
- toolCallId: "toolCallId";
1276
- status: "status";
1277
1534
  truncated: "truncated";
1278
1535
  phases: "phases";
1279
- concurrency: "concurrency";
1280
- runId: "runId";
1536
+ holes: "holes";
1537
+ status: "status";
1281
1538
  stopReason: "stopReason";
1539
+ toolCallId: "toolCallId";
1282
1540
  usage: "usage";
1541
+ runId: "runId";
1283
1542
  artifacts: "artifacts";
1543
+ reports: "reports";
1544
+ subagentModel: "subagentModel";
1545
+ concurrency: "concurrency";
1284
1546
  resumedFrom: "resumedFrom";
1285
1547
  supersededBy: "supersededBy";
1286
1548
  resumable: "resumable";
1287
1549
  resultPreview: "resultPreview";
1288
- reports: "reports";
1289
1550
  pendingQuestions: "pendingQuestions";
1290
1551
  concurrencyCeiling: "concurrencyCeiling";
1291
- subagentModel: "subagentModel";
1292
1552
  currentPhase: "currentPhase";
1293
1553
  phaseNames: "phaseNames";
1294
1554
  phaseAlongside: "phaseAlongside";
1555
+ phaseHoles: "phaseHoles";
1295
1556
  unlistedByPhase: "unlistedByPhase";
1296
1557
  lastEventSequence: "lastEventSequence";
1297
1558
  }>;
@@ -1326,14 +1587,18 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1326
1587
  sourceCommandId: z.ZodOptional<z.ZodString>;
1327
1588
  historyRoundCount: z.ZodOptional<z.ZodNumber>;
1328
1589
  state: z.ZodEnum<{
1329
- running: "running";
1330
1590
  failed: "failed";
1591
+ running: "running";
1331
1592
  completedSuccess: "completedSuccess";
1332
1593
  completedInterrupted: "completedInterrupted";
1333
1594
  }>;
1334
1595
  startedAt: z.ZodNumber;
1335
1596
  endedAt: z.ZodOptional<z.ZodNumber>;
1336
1597
  activeMs: z.ZodOptional<z.ZodNumber>;
1598
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1599
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
1600
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
1601
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
1337
1602
  workSegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1338
1603
  segmentId: z.ZodString;
1339
1604
  triggerEntityId: z.ZodOptional<z.ZodString>;
@@ -1353,21 +1618,21 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1353
1618
  kind: z.ZodLiteral<"terminal">;
1354
1619
  status: z.ZodEnum<{
1355
1620
  completed: "completed";
1356
- stopped: "stopped";
1357
1621
  errored: "errored";
1622
+ stopped: "stopped";
1358
1623
  }>;
1359
1624
  stopReason: z.ZodOptional<z.ZodEnum<{
1360
- interrupted: "interrupted";
1361
1625
  user: "user";
1362
1626
  model: "model";
1363
1627
  provider: "provider";
1628
+ interrupted: "interrupted";
1364
1629
  superseded: "superseded";
1365
1630
  }>>;
1366
1631
  summary: z.ZodString;
1367
1632
  result: z.ZodOptional<z.ZodString>;
1368
1633
  resultForm: z.ZodOptional<z.ZodEnum<{
1369
- prose: "prose";
1370
1634
  json: "json";
1635
+ prose: "prose";
1371
1636
  }>>;
1372
1637
  resultTruncated: z.ZodOptional<z.ZodLiteral<true>>;
1373
1638
  error: z.ZodOptional<z.ZodString>;
@@ -1401,6 +1666,18 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1401
1666
  question: z.ZodString;
1402
1667
  context: z.ZodOptional<z.ZodString>;
1403
1668
  askedAt: z.ZodOptional<z.ZodNumber>;
1669
+ }, z.core.$strip>, z.ZodObject<{
1670
+ kind: z.ZodLiteral<"hole">;
1671
+ siteId: z.ZodString;
1672
+ ordinal: z.ZodNumber;
1673
+ name: z.ZodString;
1674
+ type: z.ZodString;
1675
+ prompt: z.ZodOptional<z.ZodString>;
1676
+ draftPath: z.ZodOptional<z.ZodString>;
1677
+ line: z.ZodOptional<z.ZodNumber>;
1678
+ before: z.ZodOptional<z.ZodString>;
1679
+ after: z.ZodOptional<z.ZodString>;
1680
+ reachedAt: z.ZodOptional<z.ZodNumber>;
1404
1681
  }, z.core.$strip>, z.ZodObject<{
1405
1682
  kind: z.ZodLiteral<"stall">;
1406
1683
  sinceMs: z.ZodNumber;
@@ -1435,6 +1712,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1435
1712
  kind: z.ZodEnum<{
1436
1713
  ask: "ask";
1437
1714
  "world-read": "world-read";
1715
+ hole: "hole";
1438
1716
  }>;
1439
1717
  label: z.ZodString;
1440
1718
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -1451,6 +1729,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1451
1729
  stack: "stack";
1452
1730
  serial: "serial";
1453
1731
  }>>;
1732
+ fill: z.ZodOptional<z.ZodString>;
1454
1733
  }, z.core.$strict>>;
1455
1734
  lanes: z.ZodArray<z.ZodObject<{
1456
1735
  id: z.ZodString;
@@ -1485,17 +1764,35 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1485
1764
  line: z.ZodOptional<z.ZodNumber>;
1486
1765
  column: z.ZodOptional<z.ZodNumber>;
1487
1766
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
1767
+ fill: z.ZodOptional<z.ZodString>;
1488
1768
  }, z.core.$strict>>>;
1489
1769
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1490
1770
  from: z.ZodString;
1491
1771
  to: z.ZodString;
1492
1772
  back: z.ZodOptional<z.ZodLiteral<true>>;
1493
1773
  }, z.core.$strict>>>;
1774
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
1775
+ from: z.ZodString;
1776
+ to: z.ZodString;
1777
+ }, z.core.$strict>>>;
1778
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1779
+ siteId: z.ZodString;
1780
+ name: z.ZodString;
1781
+ type: z.ZodString;
1782
+ phase: z.ZodOptional<z.ZodString>;
1783
+ tail: z.ZodOptional<z.ZodBoolean>;
1784
+ }, z.core.$strict>>>;
1494
1785
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1495
1786
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
1496
1787
  truncated: z.ZodOptional<z.ZodBoolean>;
1497
1788
  }, z.core.$strict>>;
1498
1789
  truncated: z.ZodOptional<z.ZodBoolean>;
1790
+ fill: z.ZodOptional<z.ZodObject<{
1791
+ siteId: z.ZodString;
1792
+ name: z.ZodString;
1793
+ draftPath: z.ZodOptional<z.ZodString>;
1794
+ line: z.ZodOptional<z.ZodNumber>;
1795
+ }, z.core.$strict>>;
1499
1796
  }, z.core.$strict>>>;
1500
1797
  script: z.ZodOptional<z.ZodString>;
1501
1798
  amend: z.ZodOptional<z.ZodObject<{
@@ -1539,6 +1836,126 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1539
1836
  }, z.core.$strip>>;
1540
1837
  }, z.core.$strip>, z.ZodObject<{
1541
1838
  kind: z.ZodLiteral<"userInput">;
1839
+ inputOrigin: z.ZodOptional<z.ZodEnum<{
1840
+ desktop: "desktop";
1841
+ mobile: "mobile";
1842
+ }>>;
1843
+ botGroupSource: z.ZodOptional<z.ZodObject<{
1844
+ botIdentity: z.ZodOptional<z.ZodObject<{
1845
+ name: z.ZodString;
1846
+ openId: z.ZodOptional<z.ZodString>;
1847
+ }, z.core.$strict>>;
1848
+ appId: z.ZodOptional<z.ZodString>;
1849
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1850
+ type: z.ZodLiteral<"text">;
1851
+ text: z.ZodString;
1852
+ }, z.core.$strict>, z.ZodObject<{
1853
+ type: z.ZodLiteral<"channelMention">;
1854
+ refId: z.ZodString;
1855
+ name: z.ZodString;
1856
+ channel: z.ZodEnum<{
1857
+ feishu: "feishu";
1858
+ lark: "lark";
1859
+ }>;
1860
+ targetId: z.ZodString;
1861
+ idType: z.ZodLiteral<"open_id">;
1862
+ entityType: z.ZodEnum<{
1863
+ unknown: "unknown";
1864
+ user: "user";
1865
+ bot: "bot";
1866
+ }>;
1867
+ }, z.core.$strict>]>>>;
1868
+ authorizationId: z.ZodOptional<z.ZodString>;
1869
+ botId: z.ZodString;
1870
+ provider: z.ZodEnum<{
1871
+ feishu: "feishu";
1872
+ lark: "lark";
1873
+ }>;
1874
+ chatId: z.ZodString;
1875
+ threadId: z.ZodOptional<z.ZodString>;
1876
+ rootMessageId: z.ZodOptional<z.ZodString>;
1877
+ senderId: z.ZodString;
1878
+ senderName: z.ZodString;
1879
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
1880
+ messageId: z.ZodString;
1881
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1882
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1883
+ type: z.ZodLiteral<"text">;
1884
+ text: z.ZodString;
1885
+ }, z.core.$strict>, z.ZodObject<{
1886
+ type: z.ZodLiteral<"channelMention">;
1887
+ refId: z.ZodString;
1888
+ name: z.ZodString;
1889
+ channel: z.ZodEnum<{
1890
+ feishu: "feishu";
1891
+ lark: "lark";
1892
+ }>;
1893
+ targetId: z.ZodString;
1894
+ idType: z.ZodLiteral<"open_id">;
1895
+ entityType: z.ZodEnum<{
1896
+ unknown: "unknown";
1897
+ user: "user";
1898
+ bot: "bot";
1899
+ }>;
1900
+ }, z.core.$strict>]>>>;
1901
+ messageId: z.ZodString;
1902
+ senderId: z.ZodString;
1903
+ senderName: z.ZodString;
1904
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
1905
+ text: z.ZodString;
1906
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1907
+ text: z.ZodString;
1908
+ path: z.ZodOptional<z.ZodString>;
1909
+ senderName: z.ZodOptional<z.ZodString>;
1910
+ senderId: z.ZodOptional<z.ZodString>;
1911
+ messageId: z.ZodOptional<z.ZodString>;
1912
+ sentAt: z.ZodOptional<z.ZodString>;
1913
+ }, z.core.$strip>>>;
1914
+ attachmentIndexes: z.ZodArray<z.ZodNumber>;
1915
+ }, z.core.$strict>>>;
1916
+ topicContext: z.ZodOptional<z.ZodObject<{
1917
+ messages: z.ZodArray<z.ZodObject<{
1918
+ id: z.ZodString;
1919
+ chatId: z.ZodString;
1920
+ threadId: z.ZodString;
1921
+ senderId: z.ZodString;
1922
+ senderName: z.ZodOptional<z.ZodString>;
1923
+ parentId: z.ZodOptional<z.ZodString>;
1924
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1925
+ name: z.ZodString;
1926
+ kind: z.ZodString;
1927
+ }, z.core.$strict>>>;
1928
+ senderType: z.ZodEnum<{
1929
+ user: "user";
1930
+ app: "app";
1931
+ }>;
1932
+ text: z.ZodString;
1933
+ createdAt: z.ZodNumber;
1934
+ kind: z.ZodString;
1935
+ controlCard: z.ZodOptional<z.ZodBoolean>;
1936
+ deleted: z.ZodOptional<z.ZodBoolean>;
1937
+ }, z.core.$strict>>;
1938
+ checkpoint: z.ZodString;
1939
+ hasGap: z.ZodBoolean;
1940
+ }, z.core.$strict>>;
1941
+ topicHistory: z.ZodOptional<z.ZodObject<{
1942
+ checkpoint: z.ZodString;
1943
+ hasGap: z.ZodBoolean;
1944
+ messageCount: z.ZodNumber;
1945
+ resourceMessages: z.ZodArray<z.ZodObject<{
1946
+ messageId: z.ZodString;
1947
+ count: z.ZodNumber;
1948
+ }, z.core.$strict>>;
1949
+ }, z.core.$strict>>;
1950
+ }, z.core.$strict>>;
1951
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1952
+ text: z.ZodString;
1953
+ path: z.ZodOptional<z.ZodString>;
1954
+ senderName: z.ZodOptional<z.ZodString>;
1955
+ senderId: z.ZodOptional<z.ZodString>;
1956
+ messageId: z.ZodOptional<z.ZodString>;
1957
+ sentAt: z.ZodOptional<z.ZodString>;
1958
+ }, z.core.$strip>>>;
1542
1959
  text: z.ZodString;
1543
1960
  epilogueStart: z.ZodOptional<z.ZodNumber>;
1544
1961
  origin: z.ZodEnum<{
@@ -1586,6 +2003,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1586
2003
  kind: z.ZodEnum<{
1587
2004
  ask: "ask";
1588
2005
  "world-read": "world-read";
2006
+ hole: "hole";
1589
2007
  }>;
1590
2008
  label: z.ZodString;
1591
2009
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -1602,6 +2020,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1602
2020
  stack: "stack";
1603
2021
  serial: "serial";
1604
2022
  }>>;
2023
+ fill: z.ZodOptional<z.ZodString>;
1605
2024
  }, z.core.$strict>>;
1606
2025
  lanes: z.ZodArray<z.ZodObject<{
1607
2026
  id: z.ZodString;
@@ -1636,17 +2055,35 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1636
2055
  line: z.ZodOptional<z.ZodNumber>;
1637
2056
  column: z.ZodOptional<z.ZodNumber>;
1638
2057
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
2058
+ fill: z.ZodOptional<z.ZodString>;
1639
2059
  }, z.core.$strict>>>;
1640
2060
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1641
2061
  from: z.ZodString;
1642
2062
  to: z.ZodString;
1643
2063
  back: z.ZodOptional<z.ZodLiteral<true>>;
1644
2064
  }, z.core.$strict>>>;
2065
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
2066
+ from: z.ZodString;
2067
+ to: z.ZodString;
2068
+ }, z.core.$strict>>>;
2069
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2070
+ siteId: z.ZodString;
2071
+ name: z.ZodString;
2072
+ type: z.ZodString;
2073
+ phase: z.ZodOptional<z.ZodString>;
2074
+ tail: z.ZodOptional<z.ZodBoolean>;
2075
+ }, z.core.$strict>>>;
1645
2076
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1646
2077
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
1647
2078
  truncated: z.ZodOptional<z.ZodBoolean>;
1648
2079
  }, z.core.$strict>>;
1649
2080
  truncated: z.ZodOptional<z.ZodBoolean>;
2081
+ fill: z.ZodOptional<z.ZodObject<{
2082
+ siteId: z.ZodString;
2083
+ name: z.ZodString;
2084
+ draftPath: z.ZodOptional<z.ZodString>;
2085
+ line: z.ZodOptional<z.ZodNumber>;
2086
+ }, z.core.$strict>>;
1650
2087
  }, z.core.$strict>>>;
1651
2088
  script: z.ZodOptional<z.ZodString>;
1652
2089
  amend: z.ZodOptional<z.ZodObject<{
@@ -1666,13 +2103,49 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1666
2103
  sourceCommandId: z.ZodOptional<z.ZodString>;
1667
2104
  rootSourceCommandId: z.ZodOptional<z.ZodString>;
1668
2105
  clientId: z.ZodOptional<z.ZodString>;
2106
+ highspeed: z.ZodOptional<z.ZodObject<{
2107
+ schemaVersion: z.ZodLiteral<1>;
2108
+ cardId: z.ZodString;
2109
+ taskId: z.ZodString;
2110
+ provider: z.ZodString;
2111
+ model: z.ZodString;
2112
+ issuedAt: z.ZodNumber;
2113
+ expiresAt: z.ZodNumber;
2114
+ regularTps: z.ZodOptional<z.ZodNumber>;
2115
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2116
+ durationMs: z.ZodOptional<z.ZodNumber>;
2117
+ highspeedTps: z.ZodOptional<z.ZodNumber>;
2118
+ savedDurationMs: z.ZodOptional<z.ZodNumber>;
2119
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
2120
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
2121
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
2122
+ fallbackAt: z.ZodOptional<z.ZodNumber>;
2123
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
2124
+ highspeed_card_expired: "highspeed_card_expired";
2125
+ highspeed_request_failed: "highspeed_request_failed";
2126
+ }>>;
2127
+ }, z.core.$strict>>;
1669
2128
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1670
2129
  ref: z.ZodString;
1671
2130
  fileName: z.ZodString;
1672
2131
  mime: z.ZodString;
1673
2132
  bytes: z.ZodNumber;
2133
+ sourceKind: z.ZodOptional<z.ZodEnum<{
2134
+ "clipboard-text": "clipboard-text";
2135
+ "topic-history": "topic-history";
2136
+ }>>;
2137
+ messageCount: z.ZodOptional<z.ZodNumber>;
1674
2138
  previewRef: z.ZodOptional<z.ZodString>;
1675
- }, z.core.$strip>>>;
2139
+ }, z.core.$strict>>>;
2140
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2141
+ kind: z.ZodLiteral<"pluginUi">;
2142
+ pluginId: z.ZodString;
2143
+ toolCallId: z.ZodString;
2144
+ }, z.core.$strict>, z.ZodObject<{
2145
+ kind: z.ZodLiteral<"genUi">;
2146
+ path: z.ZodString;
2147
+ title: z.ZodOptional<z.ZodString>;
2148
+ }, z.core.$strict>], "kind">>;
1676
2149
  rowId: z.ZodNumber;
1677
2150
  turnId: z.ZodString;
1678
2151
  entityId: z.ZodOptional<z.ZodString>;
@@ -1695,10 +2168,10 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1695
2168
  assistantResponseId: z.ZodOptional<z.ZodString>;
1696
2169
  text: z.ZodString;
1697
2170
  state: z.ZodEnum<{
1698
- streaming: "streaming";
1699
- interrupted: "interrupted";
1700
2171
  failed: "failed";
1701
2172
  complete: "complete";
2173
+ interrupted: "interrupted";
2174
+ streaming: "streaming";
1702
2175
  }>;
1703
2176
  model: z.ZodOptional<z.ZodString>;
1704
2177
  feedback: z.ZodOptional<z.ZodEnum<{
@@ -1727,9 +2200,9 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1727
2200
  assistantResponseId: z.ZodOptional<z.ZodString>;
1728
2201
  text: z.ZodString;
1729
2202
  state: z.ZodEnum<{
1730
- streaming: "streaming";
1731
- interrupted: "interrupted";
1732
2203
  complete: "complete";
2204
+ interrupted: "interrupted";
2205
+ streaming: "streaming";
1733
2206
  }>;
1734
2207
  durationMs: z.ZodOptional<z.ZodNumber>;
1735
2208
  rowId: z.ZodNumber;
@@ -1755,10 +2228,10 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1755
2228
  toolCallId: z.ZodString;
1756
2229
  toolName: z.ZodString;
1757
2230
  status: z.ZodEnum<{
1758
- running: "running";
1759
- success: "success";
1760
2231
  error: "error";
1761
2232
  cancelled: "cancelled";
2233
+ success: "success";
2234
+ running: "running";
1762
2235
  inputStreaming: "inputStreaming";
1763
2236
  pendingApproval: "pendingApproval";
1764
2237
  }>;
@@ -1792,8 +2265,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1792
2265
  }, z.core.$strip>, z.ZodObject<{
1793
2266
  kind: z.ZodLiteral<"local_agent_message">;
1794
2267
  status: z.ZodEnum<{
1795
- failed: "failed";
1796
2268
  success: "success";
2269
+ failed: "failed";
1797
2270
  }>;
1798
2271
  error: z.ZodOptional<z.ZodString>;
1799
2272
  message: z.ZodOptional<z.ZodString>;
@@ -1817,16 +2290,16 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1817
2290
  }, z.core.$strip>, z.ZodObject<{
1818
2291
  kind: z.ZodLiteral<"respond_to_coordinator">;
1819
2292
  status: z.ZodEnum<{
1820
- failed: "failed";
1821
2293
  success: "success";
2294
+ failed: "failed";
1822
2295
  }>;
1823
2296
  }, z.core.$strip>, z.ZodObject<{
1824
2297
  kind: z.ZodLiteral<"cua">;
1825
2298
  schemaVersion: z.ZodLiteral<1>;
1826
2299
  toolName: z.ZodString;
1827
2300
  status: z.ZodEnum<{
1828
- failed: "failed";
1829
2301
  success: "success";
2302
+ failed: "failed";
1830
2303
  }>;
1831
2304
  input: z.ZodOptional<z.ZodString>;
1832
2305
  structuredContent: z.ZodOptional<z.ZodString>;
@@ -1838,14 +2311,14 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1838
2311
  platform: z.ZodLiteral<"darwin">;
1839
2312
  grantOwner: z.ZodString;
1840
2313
  accessibility: z.ZodEnum<{
2314
+ denied: "denied";
1841
2315
  granted: "granted";
1842
2316
  stale: "stale";
1843
- denied: "denied";
1844
2317
  }>;
1845
2318
  screenRecording: z.ZodEnum<{
1846
2319
  unknown: "unknown";
1847
- granted: "granted";
1848
2320
  denied: "denied";
2321
+ granted: "granted";
1849
2322
  }>;
1850
2323
  }, z.core.$strict>>;
1851
2324
  targetApp: z.ZodOptional<z.ZodObject<{
@@ -1875,10 +2348,34 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1875
2348
  description: z.ZodOptional<z.ZodString>;
1876
2349
  unavailable: z.ZodOptional<z.ZodObject<{
1877
2350
  code: z.ZodEnum<{
1878
- quota_exceeded: "quota_exceeded";
1879
2351
  coding_plan_required: "coding_plan_required";
2352
+ quota_exceeded: "quota_exceeded";
1880
2353
  }>;
1881
2354
  }, z.core.$strict>>;
2355
+ ui: z.ZodOptional<z.ZodObject<{
2356
+ pluginId: z.ZodString;
2357
+ resourceUri: z.ZodString;
2358
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
2359
+ inline: "inline";
2360
+ fullscreen: "fullscreen";
2361
+ pip: "pip";
2362
+ }>>;
2363
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
2364
+ csp: z.ZodOptional<z.ZodObject<{
2365
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2366
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2367
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2368
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2369
+ }, z.core.$strict>>;
2370
+ structuredContent: z.ZodOptional<z.ZodString>;
2371
+ widgetMeta: z.ZodOptional<z.ZodString>;
2372
+ content: z.ZodOptional<z.ZodString>;
2373
+ truncated: z.ZodOptional<z.ZodBoolean>;
2374
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
2375
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
2376
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
2377
+ surface: z.ZodOptional<z.ZodString>;
2378
+ }, z.core.$strict>>;
1882
2379
  }, z.core.$strip>, z.ZodObject<{
1883
2380
  kind: z.ZodLiteral<"create_workflow">;
1884
2381
  ok: z.ZodBoolean;
@@ -1895,6 +2392,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1895
2392
  kind: z.ZodEnum<{
1896
2393
  ask: "ask";
1897
2394
  "world-read": "world-read";
2395
+ hole: "hole";
1898
2396
  }>;
1899
2397
  label: z.ZodString;
1900
2398
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -1911,6 +2409,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1911
2409
  stack: "stack";
1912
2410
  serial: "serial";
1913
2411
  }>>;
2412
+ fill: z.ZodOptional<z.ZodString>;
1914
2413
  }, z.core.$strict>>;
1915
2414
  lanes: z.ZodArray<z.ZodObject<{
1916
2415
  id: z.ZodString;
@@ -1945,33 +2444,51 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1945
2444
  line: z.ZodOptional<z.ZodNumber>;
1946
2445
  column: z.ZodOptional<z.ZodNumber>;
1947
2446
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
2447
+ fill: z.ZodOptional<z.ZodString>;
1948
2448
  }, z.core.$strict>>>;
1949
2449
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1950
2450
  from: z.ZodString;
1951
2451
  to: z.ZodString;
1952
2452
  back: z.ZodOptional<z.ZodLiteral<true>>;
1953
2453
  }, z.core.$strict>>>;
2454
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
2455
+ from: z.ZodString;
2456
+ to: z.ZodString;
2457
+ }, z.core.$strict>>>;
2458
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2459
+ siteId: z.ZodString;
2460
+ name: z.ZodString;
2461
+ type: z.ZodString;
2462
+ phase: z.ZodOptional<z.ZodString>;
2463
+ tail: z.ZodOptional<z.ZodBoolean>;
2464
+ }, z.core.$strict>>>;
1954
2465
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1955
2466
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
1956
2467
  truncated: z.ZodOptional<z.ZodBoolean>;
1957
2468
  }, z.core.$strict>>;
1958
2469
  truncated: z.ZodOptional<z.ZodBoolean>;
2470
+ fill: z.ZodOptional<z.ZodObject<{
2471
+ siteId: z.ZodString;
2472
+ name: z.ZodString;
2473
+ draftPath: z.ZodOptional<z.ZodString>;
2474
+ line: z.ZodOptional<z.ZodNumber>;
2475
+ }, z.core.$strict>>;
1959
2476
  }, z.core.$strict>, z.ZodObject<{
1960
2477
  kind: z.ZodLiteral<"get_workflow_run">;
1961
2478
  runId: z.ZodString;
1962
2479
  label: z.ZodString;
1963
2480
  status: z.ZodEnum<{
2481
+ completed: "completed";
1964
2482
  pending: "pending";
1965
2483
  running: "running";
1966
- completed: "completed";
1967
- stopped: "stopped";
1968
2484
  errored: "errored";
2485
+ stopped: "stopped";
1969
2486
  }>;
1970
2487
  stopReason: z.ZodOptional<z.ZodEnum<{
1971
- interrupted: "interrupted";
1972
2488
  user: "user";
1973
2489
  model: "model";
1974
2490
  provider: "provider";
2491
+ interrupted: "interrupted";
1975
2492
  superseded: "superseded";
1976
2493
  }>>;
1977
2494
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -1987,8 +2504,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1987
2504
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
1988
2505
  name: z.ZodString;
1989
2506
  state: z.ZodEnum<{
1990
- done: "done";
1991
2507
  current: "current";
2508
+ done: "done";
1992
2509
  ahead: "ahead";
1993
2510
  unfinished: "unfinished";
1994
2511
  }>;
@@ -2004,11 +2521,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2004
2521
  name: z.ZodOptional<z.ZodString>;
2005
2522
  state: z.ZodEnum<{
2006
2523
  failed: "failed";
2524
+ idle: "idle";
2525
+ waiting: "waiting";
2007
2526
  done: "done";
2008
2527
  unfinished: "unfinished";
2009
- idle: "idle";
2010
2528
  executing: "executing";
2011
- waiting: "waiting";
2012
2529
  parked: "parked";
2013
2530
  }>;
2014
2531
  phaseName: z.ZodOptional<z.ZodString>;
@@ -2069,21 +2586,21 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2069
2586
  runId: z.ZodString;
2070
2587
  label: z.ZodString;
2071
2588
  labelSource: z.ZodEnum<{
2072
- script: "script";
2073
2589
  name: "name";
2590
+ script: "script";
2074
2591
  }>;
2075
2592
  status: z.ZodEnum<{
2593
+ completed: "completed";
2076
2594
  pending: "pending";
2077
2595
  running: "running";
2078
- completed: "completed";
2079
- stopped: "stopped";
2080
2596
  errored: "errored";
2597
+ stopped: "stopped";
2081
2598
  }>;
2082
2599
  stopReason: z.ZodOptional<z.ZodEnum<{
2083
- interrupted: "interrupted";
2084
2600
  user: "user";
2085
2601
  model: "model";
2086
2602
  provider: "provider";
2603
+ interrupted: "interrupted";
2087
2604
  superseded: "superseded";
2088
2605
  }>>;
2089
2606
  ownedByThisSession: z.ZodBoolean;
@@ -2169,8 +2686,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2169
2686
  }, z.core.$strict>, z.ZodObject<{
2170
2687
  kind: z.ZodLiteral<"respond_to_coordinator">;
2171
2688
  status: z.ZodEnum<{
2172
- failed: "failed";
2173
2689
  success: "success";
2690
+ failed: "failed";
2174
2691
  }>;
2175
2692
  }, z.core.$strict>, z.ZodObject<{
2176
2693
  kind: z.ZodLiteral<"mcp_tool">;
@@ -2179,10 +2696,34 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2179
2696
  description: z.ZodOptional<z.ZodString>;
2180
2697
  unavailable: z.ZodOptional<z.ZodObject<{
2181
2698
  code: z.ZodEnum<{
2182
- quota_exceeded: "quota_exceeded";
2183
2699
  coding_plan_required: "coding_plan_required";
2700
+ quota_exceeded: "quota_exceeded";
2184
2701
  }>;
2185
2702
  }, z.core.$strict>>;
2703
+ ui: z.ZodOptional<z.ZodObject<{
2704
+ pluginId: z.ZodString;
2705
+ resourceUri: z.ZodString;
2706
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
2707
+ inline: "inline";
2708
+ fullscreen: "fullscreen";
2709
+ pip: "pip";
2710
+ }>>;
2711
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
2712
+ csp: z.ZodOptional<z.ZodObject<{
2713
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2714
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2715
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2716
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2717
+ }, z.core.$strict>>;
2718
+ structuredContent: z.ZodOptional<z.ZodString>;
2719
+ widgetMeta: z.ZodOptional<z.ZodString>;
2720
+ content: z.ZodOptional<z.ZodString>;
2721
+ truncated: z.ZodOptional<z.ZodBoolean>;
2722
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
2723
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
2724
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
2725
+ surface: z.ZodOptional<z.ZodString>;
2726
+ }, z.core.$strict>>;
2186
2727
  }, z.core.$strict>, z.ZodObject<{
2187
2728
  kind: z.ZodLiteral<"create_workflow">;
2188
2729
  ok: z.ZodBoolean;
@@ -2199,6 +2740,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2199
2740
  kind: z.ZodEnum<{
2200
2741
  ask: "ask";
2201
2742
  "world-read": "world-read";
2743
+ hole: "hole";
2202
2744
  }>;
2203
2745
  label: z.ZodString;
2204
2746
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -2215,6 +2757,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2215
2757
  stack: "stack";
2216
2758
  serial: "serial";
2217
2759
  }>>;
2760
+ fill: z.ZodOptional<z.ZodString>;
2218
2761
  }, z.core.$strict>>;
2219
2762
  lanes: z.ZodArray<z.ZodObject<{
2220
2763
  id: z.ZodString;
@@ -2249,33 +2792,51 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2249
2792
  line: z.ZodOptional<z.ZodNumber>;
2250
2793
  column: z.ZodOptional<z.ZodNumber>;
2251
2794
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
2795
+ fill: z.ZodOptional<z.ZodString>;
2252
2796
  }, z.core.$strict>>>;
2253
2797
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
2254
2798
  from: z.ZodString;
2255
2799
  to: z.ZodString;
2256
2800
  back: z.ZodOptional<z.ZodLiteral<true>>;
2257
2801
  }, z.core.$strict>>>;
2802
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
2803
+ from: z.ZodString;
2804
+ to: z.ZodString;
2805
+ }, z.core.$strict>>>;
2806
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2807
+ siteId: z.ZodString;
2808
+ name: z.ZodString;
2809
+ type: z.ZodString;
2810
+ phase: z.ZodOptional<z.ZodString>;
2811
+ tail: z.ZodOptional<z.ZodBoolean>;
2812
+ }, z.core.$strict>>>;
2258
2813
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2259
2814
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
2260
2815
  truncated: z.ZodOptional<z.ZodBoolean>;
2261
2816
  }, z.core.$strict>>;
2262
2817
  truncated: z.ZodOptional<z.ZodBoolean>;
2818
+ fill: z.ZodOptional<z.ZodObject<{
2819
+ siteId: z.ZodString;
2820
+ name: z.ZodString;
2821
+ draftPath: z.ZodOptional<z.ZodString>;
2822
+ line: z.ZodOptional<z.ZodNumber>;
2823
+ }, z.core.$strict>>;
2263
2824
  }, z.core.$strict>, z.ZodObject<{
2264
2825
  kind: z.ZodLiteral<"get_workflow_run">;
2265
2826
  runId: z.ZodString;
2266
2827
  label: z.ZodString;
2267
2828
  status: z.ZodEnum<{
2829
+ completed: "completed";
2268
2830
  pending: "pending";
2269
2831
  running: "running";
2270
- completed: "completed";
2271
- stopped: "stopped";
2272
2832
  errored: "errored";
2833
+ stopped: "stopped";
2273
2834
  }>;
2274
2835
  stopReason: z.ZodOptional<z.ZodEnum<{
2275
- interrupted: "interrupted";
2276
2836
  user: "user";
2277
2837
  model: "model";
2278
2838
  provider: "provider";
2839
+ interrupted: "interrupted";
2279
2840
  superseded: "superseded";
2280
2841
  }>>;
2281
2842
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -2291,8 +2852,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2291
2852
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
2292
2853
  name: z.ZodString;
2293
2854
  state: z.ZodEnum<{
2294
- done: "done";
2295
2855
  current: "current";
2856
+ done: "done";
2296
2857
  ahead: "ahead";
2297
2858
  unfinished: "unfinished";
2298
2859
  }>;
@@ -2308,11 +2869,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2308
2869
  name: z.ZodOptional<z.ZodString>;
2309
2870
  state: z.ZodEnum<{
2310
2871
  failed: "failed";
2872
+ idle: "idle";
2873
+ waiting: "waiting";
2311
2874
  done: "done";
2312
2875
  unfinished: "unfinished";
2313
- idle: "idle";
2314
2876
  executing: "executing";
2315
- waiting: "waiting";
2316
2877
  parked: "parked";
2317
2878
  }>;
2318
2879
  phaseName: z.ZodOptional<z.ZodString>;
@@ -2373,21 +2934,21 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2373
2934
  runId: z.ZodString;
2374
2935
  label: z.ZodString;
2375
2936
  labelSource: z.ZodEnum<{
2376
- script: "script";
2377
2937
  name: "name";
2938
+ script: "script";
2378
2939
  }>;
2379
2940
  status: z.ZodEnum<{
2941
+ completed: "completed";
2380
2942
  pending: "pending";
2381
2943
  running: "running";
2382
- completed: "completed";
2383
- stopped: "stopped";
2384
2944
  errored: "errored";
2945
+ stopped: "stopped";
2385
2946
  }>;
2386
2947
  stopReason: z.ZodOptional<z.ZodEnum<{
2387
- interrupted: "interrupted";
2388
2948
  user: "user";
2389
2949
  model: "model";
2390
2950
  provider: "provider";
2951
+ interrupted: "interrupted";
2391
2952
  superseded: "superseded";
2392
2953
  }>>;
2393
2954
  ownedByThisSession: z.ZodBoolean;
@@ -2448,8 +3009,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2448
3009
  message: z.ZodString;
2449
3010
  }, z.core.$strip>>;
2450
3011
  progress: z.ZodOptional<z.ZodObject<{
2451
- bytes: z.ZodNumber;
3012
+ bytes: z.ZodOptional<z.ZodNumber>;
2452
3013
  previewLine: z.ZodOptional<z.ZodString>;
3014
+ fraction: z.ZodOptional<z.ZodNumber>;
3015
+ total: z.ZodOptional<z.ZodNumber>;
3016
+ message: z.ZodOptional<z.ZodString>;
2453
3017
  updatedAt: z.ZodNumber;
2454
3018
  }, z.core.$strip>>;
2455
3019
  outputPreview: z.ZodOptional<z.ZodObject<{
@@ -2488,11 +3052,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2488
3052
  displayName: z.ZodString;
2489
3053
  artifactType: z.ZodEnum<{
2490
3054
  text: "text";
3055
+ image: "image";
2491
3056
  pdf: "pdf";
2492
3057
  pptx: "pptx";
2493
3058
  docx: "docx";
2494
3059
  xlsx: "xlsx";
2495
- image: "image";
2496
3060
  html: "html";
2497
3061
  md: "md";
2498
3062
  }>;
@@ -2523,10 +3087,10 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2523
3087
  parentToolCallId: z.ZodOptional<z.ZodString>;
2524
3088
  subagentType: z.ZodString;
2525
3089
  status: z.ZodEnum<{
2526
- running: "running";
2527
- failed: "failed";
2528
- success: "success";
2529
3090
  cancelled: "cancelled";
3091
+ success: "success";
3092
+ failed: "failed";
3093
+ running: "running";
2530
3094
  }>;
2531
3095
  summaryText: z.ZodString;
2532
3096
  childSessionId: z.ZodOptional<z.ZodString>;
@@ -2565,9 +3129,9 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2565
3129
  }>;
2566
3130
  hookCount: z.ZodNumber;
2567
3131
  state: z.ZodEnum<{
2568
- running: "running";
2569
- completed: "completed";
2570
3132
  failed: "failed";
3133
+ completed: "completed";
3134
+ running: "running";
2571
3135
  }>;
2572
3136
  startedAt: z.ZodNumber;
2573
3137
  endedAt: z.ZodOptional<z.ZodNumber>;
@@ -2583,16 +3147,16 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2583
3147
  hookIndex: z.ZodNumber;
2584
3148
  didExecute: z.ZodBoolean;
2585
3149
  state: z.ZodEnum<{
2586
- running: "running";
2587
- completed: "completed";
2588
3150
  failed: "failed";
3151
+ completed: "completed";
3152
+ running: "running";
2589
3153
  }>;
2590
3154
  outcome: z.ZodOptional<z.ZodEnum<{
2591
- failed: "failed";
2592
- success: "success";
2593
3155
  cancelled: "cancelled";
2594
- timed_out: "timed_out";
3156
+ success: "success";
3157
+ failed: "failed";
2595
3158
  blocked: "blocked";
3159
+ timed_out: "timed_out";
2596
3160
  }>>;
2597
3161
  blockReason: z.ZodOptional<z.ZodString>;
2598
3162
  startedAt: z.ZodNumber;
@@ -2600,9 +3164,9 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2600
3164
  durationMs: z.ZodOptional<z.ZodNumber>;
2601
3165
  displayName: z.ZodString;
2602
3166
  sourceKind: z.ZodEnum<{
3167
+ plugin: "plugin";
2603
3168
  user: "user";
2604
3169
  project: "project";
2605
- plugin: "plugin";
2606
3170
  }>;
2607
3171
  pluginName: z.ZodOptional<z.ZodString>;
2608
3172
  toolName: z.ZodOptional<z.ZodString>;
@@ -2639,10 +3203,10 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2639
3203
  manual: "manual";
2640
3204
  }>;
2641
3205
  status: z.ZodEnum<{
2642
- running: "running";
2643
- failed: "failed";
2644
- success: "success";
2645
3206
  cancelled: "cancelled";
3207
+ success: "success";
3208
+ failed: "failed";
3209
+ running: "running";
2646
3210
  noop: "noop";
2647
3211
  }>;
2648
3212
  tokensBefore: z.ZodOptional<z.ZodNumber>;
@@ -2678,8 +3242,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2678
3242
  type: z.ZodLiteral<"goalVerify">;
2679
3243
  iteration: z.ZodNumber;
2680
3244
  outcome: z.ZodEnum<{
2681
- running: "running";
2682
3245
  failed: "failed";
3246
+ running: "running";
2683
3247
  pass: "pass";
2684
3248
  notSatisfied: "notSatisfied";
2685
3249
  }>;
@@ -2728,14 +3292,18 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2728
3292
  sourceCommandId: z.ZodOptional<z.ZodString>;
2729
3293
  historyRoundCount: z.ZodOptional<z.ZodNumber>;
2730
3294
  state: z.ZodEnum<{
2731
- running: "running";
2732
3295
  failed: "failed";
3296
+ running: "running";
2733
3297
  completedSuccess: "completedSuccess";
2734
3298
  completedInterrupted: "completedInterrupted";
2735
3299
  }>;
2736
3300
  startedAt: z.ZodNumber;
2737
3301
  endedAt: z.ZodOptional<z.ZodNumber>;
2738
3302
  activeMs: z.ZodOptional<z.ZodNumber>;
3303
+ outputTokens: z.ZodOptional<z.ZodNumber>;
3304
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
3305
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
3306
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
2739
3307
  workSegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2740
3308
  segmentId: z.ZodString;
2741
3309
  triggerEntityId: z.ZodOptional<z.ZodString>;
@@ -2755,21 +3323,21 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2755
3323
  kind: z.ZodLiteral<"terminal">;
2756
3324
  status: z.ZodEnum<{
2757
3325
  completed: "completed";
2758
- stopped: "stopped";
2759
3326
  errored: "errored";
3327
+ stopped: "stopped";
2760
3328
  }>;
2761
3329
  stopReason: z.ZodOptional<z.ZodEnum<{
2762
- interrupted: "interrupted";
2763
3330
  user: "user";
2764
3331
  model: "model";
2765
3332
  provider: "provider";
3333
+ interrupted: "interrupted";
2766
3334
  superseded: "superseded";
2767
3335
  }>>;
2768
3336
  summary: z.ZodString;
2769
3337
  result: z.ZodOptional<z.ZodString>;
2770
3338
  resultForm: z.ZodOptional<z.ZodEnum<{
2771
- prose: "prose";
2772
3339
  json: "json";
3340
+ prose: "prose";
2773
3341
  }>>;
2774
3342
  resultTruncated: z.ZodOptional<z.ZodLiteral<true>>;
2775
3343
  error: z.ZodOptional<z.ZodString>;
@@ -2803,6 +3371,18 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2803
3371
  question: z.ZodString;
2804
3372
  context: z.ZodOptional<z.ZodString>;
2805
3373
  askedAt: z.ZodOptional<z.ZodNumber>;
3374
+ }, z.core.$strip>, z.ZodObject<{
3375
+ kind: z.ZodLiteral<"hole">;
3376
+ siteId: z.ZodString;
3377
+ ordinal: z.ZodNumber;
3378
+ name: z.ZodString;
3379
+ type: z.ZodString;
3380
+ prompt: z.ZodOptional<z.ZodString>;
3381
+ draftPath: z.ZodOptional<z.ZodString>;
3382
+ line: z.ZodOptional<z.ZodNumber>;
3383
+ before: z.ZodOptional<z.ZodString>;
3384
+ after: z.ZodOptional<z.ZodString>;
3385
+ reachedAt: z.ZodOptional<z.ZodNumber>;
2806
3386
  }, z.core.$strip>, z.ZodObject<{
2807
3387
  kind: z.ZodLiteral<"stall">;
2808
3388
  sinceMs: z.ZodNumber;
@@ -2837,6 +3417,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2837
3417
  kind: z.ZodEnum<{
2838
3418
  ask: "ask";
2839
3419
  "world-read": "world-read";
3420
+ hole: "hole";
2840
3421
  }>;
2841
3422
  label: z.ZodString;
2842
3423
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -2853,6 +3434,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2853
3434
  stack: "stack";
2854
3435
  serial: "serial";
2855
3436
  }>>;
3437
+ fill: z.ZodOptional<z.ZodString>;
2856
3438
  }, z.core.$strict>>;
2857
3439
  lanes: z.ZodArray<z.ZodObject<{
2858
3440
  id: z.ZodString;
@@ -2887,17 +3469,35 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2887
3469
  line: z.ZodOptional<z.ZodNumber>;
2888
3470
  column: z.ZodOptional<z.ZodNumber>;
2889
3471
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
3472
+ fill: z.ZodOptional<z.ZodString>;
2890
3473
  }, z.core.$strict>>>;
2891
3474
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
2892
3475
  from: z.ZodString;
2893
3476
  to: z.ZodString;
2894
3477
  back: z.ZodOptional<z.ZodLiteral<true>>;
2895
3478
  }, z.core.$strict>>>;
3479
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
3480
+ from: z.ZodString;
3481
+ to: z.ZodString;
3482
+ }, z.core.$strict>>>;
3483
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3484
+ siteId: z.ZodString;
3485
+ name: z.ZodString;
3486
+ type: z.ZodString;
3487
+ phase: z.ZodOptional<z.ZodString>;
3488
+ tail: z.ZodOptional<z.ZodBoolean>;
3489
+ }, z.core.$strict>>>;
2896
3490
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2897
3491
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
2898
3492
  truncated: z.ZodOptional<z.ZodBoolean>;
2899
3493
  }, z.core.$strict>>;
2900
3494
  truncated: z.ZodOptional<z.ZodBoolean>;
3495
+ fill: z.ZodOptional<z.ZodObject<{
3496
+ siteId: z.ZodString;
3497
+ name: z.ZodString;
3498
+ draftPath: z.ZodOptional<z.ZodString>;
3499
+ line: z.ZodOptional<z.ZodNumber>;
3500
+ }, z.core.$strict>>;
2901
3501
  }, z.core.$strict>>>;
2902
3502
  script: z.ZodOptional<z.ZodString>;
2903
3503
  amend: z.ZodOptional<z.ZodObject<{
@@ -2941,6 +3541,126 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2941
3541
  }, z.core.$strip>>;
2942
3542
  }, z.core.$strip>, z.ZodObject<{
2943
3543
  kind: z.ZodLiteral<"userInput">;
3544
+ inputOrigin: z.ZodOptional<z.ZodEnum<{
3545
+ desktop: "desktop";
3546
+ mobile: "mobile";
3547
+ }>>;
3548
+ botGroupSource: z.ZodOptional<z.ZodObject<{
3549
+ botIdentity: z.ZodOptional<z.ZodObject<{
3550
+ name: z.ZodString;
3551
+ openId: z.ZodOptional<z.ZodString>;
3552
+ }, z.core.$strict>>;
3553
+ appId: z.ZodOptional<z.ZodString>;
3554
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3555
+ type: z.ZodLiteral<"text">;
3556
+ text: z.ZodString;
3557
+ }, z.core.$strict>, z.ZodObject<{
3558
+ type: z.ZodLiteral<"channelMention">;
3559
+ refId: z.ZodString;
3560
+ name: z.ZodString;
3561
+ channel: z.ZodEnum<{
3562
+ feishu: "feishu";
3563
+ lark: "lark";
3564
+ }>;
3565
+ targetId: z.ZodString;
3566
+ idType: z.ZodLiteral<"open_id">;
3567
+ entityType: z.ZodEnum<{
3568
+ unknown: "unknown";
3569
+ user: "user";
3570
+ bot: "bot";
3571
+ }>;
3572
+ }, z.core.$strict>]>>>;
3573
+ authorizationId: z.ZodOptional<z.ZodString>;
3574
+ botId: z.ZodString;
3575
+ provider: z.ZodEnum<{
3576
+ feishu: "feishu";
3577
+ lark: "lark";
3578
+ }>;
3579
+ chatId: z.ZodString;
3580
+ threadId: z.ZodOptional<z.ZodString>;
3581
+ rootMessageId: z.ZodOptional<z.ZodString>;
3582
+ senderId: z.ZodString;
3583
+ senderName: z.ZodString;
3584
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
3585
+ messageId: z.ZodString;
3586
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
3587
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3588
+ type: z.ZodLiteral<"text">;
3589
+ text: z.ZodString;
3590
+ }, z.core.$strict>, z.ZodObject<{
3591
+ type: z.ZodLiteral<"channelMention">;
3592
+ refId: z.ZodString;
3593
+ name: z.ZodString;
3594
+ channel: z.ZodEnum<{
3595
+ feishu: "feishu";
3596
+ lark: "lark";
3597
+ }>;
3598
+ targetId: z.ZodString;
3599
+ idType: z.ZodLiteral<"open_id">;
3600
+ entityType: z.ZodEnum<{
3601
+ unknown: "unknown";
3602
+ user: "user";
3603
+ bot: "bot";
3604
+ }>;
3605
+ }, z.core.$strict>]>>>;
3606
+ messageId: z.ZodString;
3607
+ senderId: z.ZodString;
3608
+ senderName: z.ZodString;
3609
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
3610
+ text: z.ZodString;
3611
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3612
+ text: z.ZodString;
3613
+ path: z.ZodOptional<z.ZodString>;
3614
+ senderName: z.ZodOptional<z.ZodString>;
3615
+ senderId: z.ZodOptional<z.ZodString>;
3616
+ messageId: z.ZodOptional<z.ZodString>;
3617
+ sentAt: z.ZodOptional<z.ZodString>;
3618
+ }, z.core.$strip>>>;
3619
+ attachmentIndexes: z.ZodArray<z.ZodNumber>;
3620
+ }, z.core.$strict>>>;
3621
+ topicContext: z.ZodOptional<z.ZodObject<{
3622
+ messages: z.ZodArray<z.ZodObject<{
3623
+ id: z.ZodString;
3624
+ chatId: z.ZodString;
3625
+ threadId: z.ZodString;
3626
+ senderId: z.ZodString;
3627
+ senderName: z.ZodOptional<z.ZodString>;
3628
+ parentId: z.ZodOptional<z.ZodString>;
3629
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3630
+ name: z.ZodString;
3631
+ kind: z.ZodString;
3632
+ }, z.core.$strict>>>;
3633
+ senderType: z.ZodEnum<{
3634
+ user: "user";
3635
+ app: "app";
3636
+ }>;
3637
+ text: z.ZodString;
3638
+ createdAt: z.ZodNumber;
3639
+ kind: z.ZodString;
3640
+ controlCard: z.ZodOptional<z.ZodBoolean>;
3641
+ deleted: z.ZodOptional<z.ZodBoolean>;
3642
+ }, z.core.$strict>>;
3643
+ checkpoint: z.ZodString;
3644
+ hasGap: z.ZodBoolean;
3645
+ }, z.core.$strict>>;
3646
+ topicHistory: z.ZodOptional<z.ZodObject<{
3647
+ checkpoint: z.ZodString;
3648
+ hasGap: z.ZodBoolean;
3649
+ messageCount: z.ZodNumber;
3650
+ resourceMessages: z.ZodArray<z.ZodObject<{
3651
+ messageId: z.ZodString;
3652
+ count: z.ZodNumber;
3653
+ }, z.core.$strict>>;
3654
+ }, z.core.$strict>>;
3655
+ }, z.core.$strict>>;
3656
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3657
+ text: z.ZodString;
3658
+ path: z.ZodOptional<z.ZodString>;
3659
+ senderName: z.ZodOptional<z.ZodString>;
3660
+ senderId: z.ZodOptional<z.ZodString>;
3661
+ messageId: z.ZodOptional<z.ZodString>;
3662
+ sentAt: z.ZodOptional<z.ZodString>;
3663
+ }, z.core.$strip>>>;
2944
3664
  text: z.ZodString;
2945
3665
  epilogueStart: z.ZodOptional<z.ZodNumber>;
2946
3666
  origin: z.ZodEnum<{
@@ -2988,6 +3708,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2988
3708
  kind: z.ZodEnum<{
2989
3709
  ask: "ask";
2990
3710
  "world-read": "world-read";
3711
+ hole: "hole";
2991
3712
  }>;
2992
3713
  label: z.ZodString;
2993
3714
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -3004,6 +3725,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3004
3725
  stack: "stack";
3005
3726
  serial: "serial";
3006
3727
  }>>;
3728
+ fill: z.ZodOptional<z.ZodString>;
3007
3729
  }, z.core.$strict>>;
3008
3730
  lanes: z.ZodArray<z.ZodObject<{
3009
3731
  id: z.ZodString;
@@ -3038,17 +3760,35 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3038
3760
  line: z.ZodOptional<z.ZodNumber>;
3039
3761
  column: z.ZodOptional<z.ZodNumber>;
3040
3762
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
3763
+ fill: z.ZodOptional<z.ZodString>;
3041
3764
  }, z.core.$strict>>>;
3042
3765
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3043
3766
  from: z.ZodString;
3044
3767
  to: z.ZodString;
3045
3768
  back: z.ZodOptional<z.ZodLiteral<true>>;
3046
3769
  }, z.core.$strict>>>;
3770
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
3771
+ from: z.ZodString;
3772
+ to: z.ZodString;
3773
+ }, z.core.$strict>>>;
3774
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3775
+ siteId: z.ZodString;
3776
+ name: z.ZodString;
3777
+ type: z.ZodString;
3778
+ phase: z.ZodOptional<z.ZodString>;
3779
+ tail: z.ZodOptional<z.ZodBoolean>;
3780
+ }, z.core.$strict>>>;
3047
3781
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
3048
3782
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
3049
3783
  truncated: z.ZodOptional<z.ZodBoolean>;
3050
3784
  }, z.core.$strict>>;
3051
3785
  truncated: z.ZodOptional<z.ZodBoolean>;
3786
+ fill: z.ZodOptional<z.ZodObject<{
3787
+ siteId: z.ZodString;
3788
+ name: z.ZodString;
3789
+ draftPath: z.ZodOptional<z.ZodString>;
3790
+ line: z.ZodOptional<z.ZodNumber>;
3791
+ }, z.core.$strict>>;
3052
3792
  }, z.core.$strict>>>;
3053
3793
  script: z.ZodOptional<z.ZodString>;
3054
3794
  amend: z.ZodOptional<z.ZodObject<{
@@ -3068,13 +3808,49 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3068
3808
  sourceCommandId: z.ZodOptional<z.ZodString>;
3069
3809
  rootSourceCommandId: z.ZodOptional<z.ZodString>;
3070
3810
  clientId: z.ZodOptional<z.ZodString>;
3811
+ highspeed: z.ZodOptional<z.ZodObject<{
3812
+ schemaVersion: z.ZodLiteral<1>;
3813
+ cardId: z.ZodString;
3814
+ taskId: z.ZodString;
3815
+ provider: z.ZodString;
3816
+ model: z.ZodString;
3817
+ issuedAt: z.ZodNumber;
3818
+ expiresAt: z.ZodNumber;
3819
+ regularTps: z.ZodOptional<z.ZodNumber>;
3820
+ outputTokens: z.ZodOptional<z.ZodNumber>;
3821
+ durationMs: z.ZodOptional<z.ZodNumber>;
3822
+ highspeedTps: z.ZodOptional<z.ZodNumber>;
3823
+ savedDurationMs: z.ZodOptional<z.ZodNumber>;
3824
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
3825
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
3826
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
3827
+ fallbackAt: z.ZodOptional<z.ZodNumber>;
3828
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
3829
+ highspeed_card_expired: "highspeed_card_expired";
3830
+ highspeed_request_failed: "highspeed_request_failed";
3831
+ }>>;
3832
+ }, z.core.$strict>>;
3071
3833
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3072
3834
  ref: z.ZodString;
3073
3835
  fileName: z.ZodString;
3074
3836
  mime: z.ZodString;
3075
3837
  bytes: z.ZodNumber;
3838
+ sourceKind: z.ZodOptional<z.ZodEnum<{
3839
+ "clipboard-text": "clipboard-text";
3840
+ "topic-history": "topic-history";
3841
+ }>>;
3842
+ messageCount: z.ZodOptional<z.ZodNumber>;
3076
3843
  previewRef: z.ZodOptional<z.ZodString>;
3077
- }, z.core.$strip>>>;
3844
+ }, z.core.$strict>>>;
3845
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3846
+ kind: z.ZodLiteral<"pluginUi">;
3847
+ pluginId: z.ZodString;
3848
+ toolCallId: z.ZodString;
3849
+ }, z.core.$strict>, z.ZodObject<{
3850
+ kind: z.ZodLiteral<"genUi">;
3851
+ path: z.ZodString;
3852
+ title: z.ZodOptional<z.ZodString>;
3853
+ }, z.core.$strict>], "kind">>;
3078
3854
  rowId: z.ZodNumber;
3079
3855
  turnId: z.ZodString;
3080
3856
  entityId: z.ZodOptional<z.ZodString>;
@@ -3097,10 +3873,10 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3097
3873
  assistantResponseId: z.ZodOptional<z.ZodString>;
3098
3874
  text: z.ZodString;
3099
3875
  state: z.ZodEnum<{
3100
- streaming: "streaming";
3101
- interrupted: "interrupted";
3102
3876
  failed: "failed";
3103
3877
  complete: "complete";
3878
+ interrupted: "interrupted";
3879
+ streaming: "streaming";
3104
3880
  }>;
3105
3881
  model: z.ZodOptional<z.ZodString>;
3106
3882
  feedback: z.ZodOptional<z.ZodEnum<{
@@ -3129,9 +3905,9 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3129
3905
  assistantResponseId: z.ZodOptional<z.ZodString>;
3130
3906
  text: z.ZodString;
3131
3907
  state: z.ZodEnum<{
3132
- streaming: "streaming";
3133
- interrupted: "interrupted";
3134
3908
  complete: "complete";
3909
+ interrupted: "interrupted";
3910
+ streaming: "streaming";
3135
3911
  }>;
3136
3912
  durationMs: z.ZodOptional<z.ZodNumber>;
3137
3913
  rowId: z.ZodNumber;
@@ -3157,10 +3933,10 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3157
3933
  toolCallId: z.ZodString;
3158
3934
  toolName: z.ZodString;
3159
3935
  status: z.ZodEnum<{
3160
- running: "running";
3161
- success: "success";
3162
3936
  error: "error";
3163
3937
  cancelled: "cancelled";
3938
+ success: "success";
3939
+ running: "running";
3164
3940
  inputStreaming: "inputStreaming";
3165
3941
  pendingApproval: "pendingApproval";
3166
3942
  }>;
@@ -3194,8 +3970,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3194
3970
  }, z.core.$strip>, z.ZodObject<{
3195
3971
  kind: z.ZodLiteral<"local_agent_message">;
3196
3972
  status: z.ZodEnum<{
3197
- failed: "failed";
3198
3973
  success: "success";
3974
+ failed: "failed";
3199
3975
  }>;
3200
3976
  error: z.ZodOptional<z.ZodString>;
3201
3977
  message: z.ZodOptional<z.ZodString>;
@@ -3219,16 +3995,16 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3219
3995
  }, z.core.$strip>, z.ZodObject<{
3220
3996
  kind: z.ZodLiteral<"respond_to_coordinator">;
3221
3997
  status: z.ZodEnum<{
3222
- failed: "failed";
3223
3998
  success: "success";
3999
+ failed: "failed";
3224
4000
  }>;
3225
4001
  }, z.core.$strip>, z.ZodObject<{
3226
4002
  kind: z.ZodLiteral<"cua">;
3227
4003
  schemaVersion: z.ZodLiteral<1>;
3228
4004
  toolName: z.ZodString;
3229
4005
  status: z.ZodEnum<{
3230
- failed: "failed";
3231
4006
  success: "success";
4007
+ failed: "failed";
3232
4008
  }>;
3233
4009
  input: z.ZodOptional<z.ZodString>;
3234
4010
  structuredContent: z.ZodOptional<z.ZodString>;
@@ -3240,14 +4016,14 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3240
4016
  platform: z.ZodLiteral<"darwin">;
3241
4017
  grantOwner: z.ZodString;
3242
4018
  accessibility: z.ZodEnum<{
4019
+ denied: "denied";
3243
4020
  granted: "granted";
3244
4021
  stale: "stale";
3245
- denied: "denied";
3246
4022
  }>;
3247
4023
  screenRecording: z.ZodEnum<{
3248
4024
  unknown: "unknown";
3249
- granted: "granted";
3250
4025
  denied: "denied";
4026
+ granted: "granted";
3251
4027
  }>;
3252
4028
  }, z.core.$strict>>;
3253
4029
  targetApp: z.ZodOptional<z.ZodObject<{
@@ -3277,10 +4053,34 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3277
4053
  description: z.ZodOptional<z.ZodString>;
3278
4054
  unavailable: z.ZodOptional<z.ZodObject<{
3279
4055
  code: z.ZodEnum<{
3280
- quota_exceeded: "quota_exceeded";
3281
4056
  coding_plan_required: "coding_plan_required";
4057
+ quota_exceeded: "quota_exceeded";
3282
4058
  }>;
3283
4059
  }, z.core.$strict>>;
4060
+ ui: z.ZodOptional<z.ZodObject<{
4061
+ pluginId: z.ZodString;
4062
+ resourceUri: z.ZodString;
4063
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
4064
+ inline: "inline";
4065
+ fullscreen: "fullscreen";
4066
+ pip: "pip";
4067
+ }>>;
4068
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
4069
+ csp: z.ZodOptional<z.ZodObject<{
4070
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4071
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4072
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4073
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4074
+ }, z.core.$strict>>;
4075
+ structuredContent: z.ZodOptional<z.ZodString>;
4076
+ widgetMeta: z.ZodOptional<z.ZodString>;
4077
+ content: z.ZodOptional<z.ZodString>;
4078
+ truncated: z.ZodOptional<z.ZodBoolean>;
4079
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
4080
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
4081
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
4082
+ surface: z.ZodOptional<z.ZodString>;
4083
+ }, z.core.$strict>>;
3284
4084
  }, z.core.$strip>, z.ZodObject<{
3285
4085
  kind: z.ZodLiteral<"create_workflow">;
3286
4086
  ok: z.ZodBoolean;
@@ -3297,6 +4097,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3297
4097
  kind: z.ZodEnum<{
3298
4098
  ask: "ask";
3299
4099
  "world-read": "world-read";
4100
+ hole: "hole";
3300
4101
  }>;
3301
4102
  label: z.ZodString;
3302
4103
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -3313,6 +4114,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3313
4114
  stack: "stack";
3314
4115
  serial: "serial";
3315
4116
  }>>;
4117
+ fill: z.ZodOptional<z.ZodString>;
3316
4118
  }, z.core.$strict>>;
3317
4119
  lanes: z.ZodArray<z.ZodObject<{
3318
4120
  id: z.ZodString;
@@ -3347,33 +4149,51 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3347
4149
  line: z.ZodOptional<z.ZodNumber>;
3348
4150
  column: z.ZodOptional<z.ZodNumber>;
3349
4151
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
4152
+ fill: z.ZodOptional<z.ZodString>;
3350
4153
  }, z.core.$strict>>>;
3351
4154
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3352
4155
  from: z.ZodString;
3353
4156
  to: z.ZodString;
3354
4157
  back: z.ZodOptional<z.ZodLiteral<true>>;
3355
4158
  }, z.core.$strict>>>;
4159
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
4160
+ from: z.ZodString;
4161
+ to: z.ZodString;
4162
+ }, z.core.$strict>>>;
4163
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4164
+ siteId: z.ZodString;
4165
+ name: z.ZodString;
4166
+ type: z.ZodString;
4167
+ phase: z.ZodOptional<z.ZodString>;
4168
+ tail: z.ZodOptional<z.ZodBoolean>;
4169
+ }, z.core.$strict>>>;
3356
4170
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
3357
4171
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
3358
4172
  truncated: z.ZodOptional<z.ZodBoolean>;
3359
4173
  }, z.core.$strict>>;
3360
4174
  truncated: z.ZodOptional<z.ZodBoolean>;
4175
+ fill: z.ZodOptional<z.ZodObject<{
4176
+ siteId: z.ZodString;
4177
+ name: z.ZodString;
4178
+ draftPath: z.ZodOptional<z.ZodString>;
4179
+ line: z.ZodOptional<z.ZodNumber>;
4180
+ }, z.core.$strict>>;
3361
4181
  }, z.core.$strict>, z.ZodObject<{
3362
4182
  kind: z.ZodLiteral<"get_workflow_run">;
3363
4183
  runId: z.ZodString;
3364
4184
  label: z.ZodString;
3365
4185
  status: z.ZodEnum<{
4186
+ completed: "completed";
3366
4187
  pending: "pending";
3367
4188
  running: "running";
3368
- completed: "completed";
3369
- stopped: "stopped";
3370
4189
  errored: "errored";
4190
+ stopped: "stopped";
3371
4191
  }>;
3372
4192
  stopReason: z.ZodOptional<z.ZodEnum<{
3373
- interrupted: "interrupted";
3374
4193
  user: "user";
3375
4194
  model: "model";
3376
4195
  provider: "provider";
4196
+ interrupted: "interrupted";
3377
4197
  superseded: "superseded";
3378
4198
  }>>;
3379
4199
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -3389,8 +4209,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3389
4209
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
3390
4210
  name: z.ZodString;
3391
4211
  state: z.ZodEnum<{
3392
- done: "done";
3393
4212
  current: "current";
4213
+ done: "done";
3394
4214
  ahead: "ahead";
3395
4215
  unfinished: "unfinished";
3396
4216
  }>;
@@ -3406,11 +4226,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3406
4226
  name: z.ZodOptional<z.ZodString>;
3407
4227
  state: z.ZodEnum<{
3408
4228
  failed: "failed";
4229
+ idle: "idle";
4230
+ waiting: "waiting";
3409
4231
  done: "done";
3410
4232
  unfinished: "unfinished";
3411
- idle: "idle";
3412
4233
  executing: "executing";
3413
- waiting: "waiting";
3414
4234
  parked: "parked";
3415
4235
  }>;
3416
4236
  phaseName: z.ZodOptional<z.ZodString>;
@@ -3471,21 +4291,21 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3471
4291
  runId: z.ZodString;
3472
4292
  label: z.ZodString;
3473
4293
  labelSource: z.ZodEnum<{
3474
- script: "script";
3475
4294
  name: "name";
4295
+ script: "script";
3476
4296
  }>;
3477
4297
  status: z.ZodEnum<{
4298
+ completed: "completed";
3478
4299
  pending: "pending";
3479
4300
  running: "running";
3480
- completed: "completed";
3481
- stopped: "stopped";
3482
4301
  errored: "errored";
4302
+ stopped: "stopped";
3483
4303
  }>;
3484
4304
  stopReason: z.ZodOptional<z.ZodEnum<{
3485
- interrupted: "interrupted";
3486
4305
  user: "user";
3487
4306
  model: "model";
3488
4307
  provider: "provider";
4308
+ interrupted: "interrupted";
3489
4309
  superseded: "superseded";
3490
4310
  }>>;
3491
4311
  ownedByThisSession: z.ZodBoolean;
@@ -3571,8 +4391,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3571
4391
  }, z.core.$strict>, z.ZodObject<{
3572
4392
  kind: z.ZodLiteral<"respond_to_coordinator">;
3573
4393
  status: z.ZodEnum<{
3574
- failed: "failed";
3575
4394
  success: "success";
4395
+ failed: "failed";
3576
4396
  }>;
3577
4397
  }, z.core.$strict>, z.ZodObject<{
3578
4398
  kind: z.ZodLiteral<"mcp_tool">;
@@ -3581,10 +4401,34 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3581
4401
  description: z.ZodOptional<z.ZodString>;
3582
4402
  unavailable: z.ZodOptional<z.ZodObject<{
3583
4403
  code: z.ZodEnum<{
3584
- quota_exceeded: "quota_exceeded";
3585
4404
  coding_plan_required: "coding_plan_required";
4405
+ quota_exceeded: "quota_exceeded";
3586
4406
  }>;
3587
4407
  }, z.core.$strict>>;
4408
+ ui: z.ZodOptional<z.ZodObject<{
4409
+ pluginId: z.ZodString;
4410
+ resourceUri: z.ZodString;
4411
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
4412
+ inline: "inline";
4413
+ fullscreen: "fullscreen";
4414
+ pip: "pip";
4415
+ }>>;
4416
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
4417
+ csp: z.ZodOptional<z.ZodObject<{
4418
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4419
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4420
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4421
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4422
+ }, z.core.$strict>>;
4423
+ structuredContent: z.ZodOptional<z.ZodString>;
4424
+ widgetMeta: z.ZodOptional<z.ZodString>;
4425
+ content: z.ZodOptional<z.ZodString>;
4426
+ truncated: z.ZodOptional<z.ZodBoolean>;
4427
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
4428
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
4429
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
4430
+ surface: z.ZodOptional<z.ZodString>;
4431
+ }, z.core.$strict>>;
3588
4432
  }, z.core.$strict>, z.ZodObject<{
3589
4433
  kind: z.ZodLiteral<"create_workflow">;
3590
4434
  ok: z.ZodBoolean;
@@ -3601,6 +4445,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3601
4445
  kind: z.ZodEnum<{
3602
4446
  ask: "ask";
3603
4447
  "world-read": "world-read";
4448
+ hole: "hole";
3604
4449
  }>;
3605
4450
  label: z.ZodString;
3606
4451
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -3617,6 +4462,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3617
4462
  stack: "stack";
3618
4463
  serial: "serial";
3619
4464
  }>>;
4465
+ fill: z.ZodOptional<z.ZodString>;
3620
4466
  }, z.core.$strict>>;
3621
4467
  lanes: z.ZodArray<z.ZodObject<{
3622
4468
  id: z.ZodString;
@@ -3651,33 +4497,51 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3651
4497
  line: z.ZodOptional<z.ZodNumber>;
3652
4498
  column: z.ZodOptional<z.ZodNumber>;
3653
4499
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
4500
+ fill: z.ZodOptional<z.ZodString>;
3654
4501
  }, z.core.$strict>>>;
3655
4502
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3656
4503
  from: z.ZodString;
3657
4504
  to: z.ZodString;
3658
4505
  back: z.ZodOptional<z.ZodLiteral<true>>;
3659
4506
  }, z.core.$strict>>>;
4507
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
4508
+ from: z.ZodString;
4509
+ to: z.ZodString;
4510
+ }, z.core.$strict>>>;
4511
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4512
+ siteId: z.ZodString;
4513
+ name: z.ZodString;
4514
+ type: z.ZodString;
4515
+ phase: z.ZodOptional<z.ZodString>;
4516
+ tail: z.ZodOptional<z.ZodBoolean>;
4517
+ }, z.core.$strict>>>;
3660
4518
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
3661
4519
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
3662
4520
  truncated: z.ZodOptional<z.ZodBoolean>;
3663
4521
  }, z.core.$strict>>;
3664
4522
  truncated: z.ZodOptional<z.ZodBoolean>;
4523
+ fill: z.ZodOptional<z.ZodObject<{
4524
+ siteId: z.ZodString;
4525
+ name: z.ZodString;
4526
+ draftPath: z.ZodOptional<z.ZodString>;
4527
+ line: z.ZodOptional<z.ZodNumber>;
4528
+ }, z.core.$strict>>;
3665
4529
  }, z.core.$strict>, z.ZodObject<{
3666
4530
  kind: z.ZodLiteral<"get_workflow_run">;
3667
4531
  runId: z.ZodString;
3668
4532
  label: z.ZodString;
3669
4533
  status: z.ZodEnum<{
4534
+ completed: "completed";
3670
4535
  pending: "pending";
3671
4536
  running: "running";
3672
- completed: "completed";
3673
- stopped: "stopped";
3674
4537
  errored: "errored";
4538
+ stopped: "stopped";
3675
4539
  }>;
3676
4540
  stopReason: z.ZodOptional<z.ZodEnum<{
3677
- interrupted: "interrupted";
3678
4541
  user: "user";
3679
4542
  model: "model";
3680
4543
  provider: "provider";
4544
+ interrupted: "interrupted";
3681
4545
  superseded: "superseded";
3682
4546
  }>>;
3683
4547
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -3693,8 +4557,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3693
4557
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
3694
4558
  name: z.ZodString;
3695
4559
  state: z.ZodEnum<{
3696
- done: "done";
3697
4560
  current: "current";
4561
+ done: "done";
3698
4562
  ahead: "ahead";
3699
4563
  unfinished: "unfinished";
3700
4564
  }>;
@@ -3710,11 +4574,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3710
4574
  name: z.ZodOptional<z.ZodString>;
3711
4575
  state: z.ZodEnum<{
3712
4576
  failed: "failed";
4577
+ idle: "idle";
4578
+ waiting: "waiting";
3713
4579
  done: "done";
3714
4580
  unfinished: "unfinished";
3715
- idle: "idle";
3716
4581
  executing: "executing";
3717
- waiting: "waiting";
3718
4582
  parked: "parked";
3719
4583
  }>;
3720
4584
  phaseName: z.ZodOptional<z.ZodString>;
@@ -3775,21 +4639,21 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3775
4639
  runId: z.ZodString;
3776
4640
  label: z.ZodString;
3777
4641
  labelSource: z.ZodEnum<{
3778
- script: "script";
3779
4642
  name: "name";
4643
+ script: "script";
3780
4644
  }>;
3781
4645
  status: z.ZodEnum<{
4646
+ completed: "completed";
3782
4647
  pending: "pending";
3783
4648
  running: "running";
3784
- completed: "completed";
3785
- stopped: "stopped";
3786
4649
  errored: "errored";
4650
+ stopped: "stopped";
3787
4651
  }>;
3788
4652
  stopReason: z.ZodOptional<z.ZodEnum<{
3789
- interrupted: "interrupted";
3790
4653
  user: "user";
3791
4654
  model: "model";
3792
4655
  provider: "provider";
4656
+ interrupted: "interrupted";
3793
4657
  superseded: "superseded";
3794
4658
  }>>;
3795
4659
  ownedByThisSession: z.ZodBoolean;
@@ -3850,8 +4714,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3850
4714
  message: z.ZodString;
3851
4715
  }, z.core.$strip>>;
3852
4716
  progress: z.ZodOptional<z.ZodObject<{
3853
- bytes: z.ZodNumber;
4717
+ bytes: z.ZodOptional<z.ZodNumber>;
3854
4718
  previewLine: z.ZodOptional<z.ZodString>;
4719
+ fraction: z.ZodOptional<z.ZodNumber>;
4720
+ total: z.ZodOptional<z.ZodNumber>;
4721
+ message: z.ZodOptional<z.ZodString>;
3855
4722
  updatedAt: z.ZodNumber;
3856
4723
  }, z.core.$strip>>;
3857
4724
  outputPreview: z.ZodOptional<z.ZodObject<{
@@ -3890,11 +4757,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3890
4757
  displayName: z.ZodString;
3891
4758
  artifactType: z.ZodEnum<{
3892
4759
  text: "text";
4760
+ image: "image";
3893
4761
  pdf: "pdf";
3894
4762
  pptx: "pptx";
3895
4763
  docx: "docx";
3896
4764
  xlsx: "xlsx";
3897
- image: "image";
3898
4765
  html: "html";
3899
4766
  md: "md";
3900
4767
  }>;
@@ -3925,10 +4792,10 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3925
4792
  parentToolCallId: z.ZodOptional<z.ZodString>;
3926
4793
  subagentType: z.ZodString;
3927
4794
  status: z.ZodEnum<{
3928
- running: "running";
3929
- failed: "failed";
3930
- success: "success";
3931
4795
  cancelled: "cancelled";
4796
+ success: "success";
4797
+ failed: "failed";
4798
+ running: "running";
3932
4799
  }>;
3933
4800
  summaryText: z.ZodString;
3934
4801
  childSessionId: z.ZodOptional<z.ZodString>;
@@ -3967,9 +4834,9 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3967
4834
  }>;
3968
4835
  hookCount: z.ZodNumber;
3969
4836
  state: z.ZodEnum<{
3970
- running: "running";
3971
- completed: "completed";
3972
4837
  failed: "failed";
4838
+ completed: "completed";
4839
+ running: "running";
3973
4840
  }>;
3974
4841
  startedAt: z.ZodNumber;
3975
4842
  endedAt: z.ZodOptional<z.ZodNumber>;
@@ -3985,16 +4852,16 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3985
4852
  hookIndex: z.ZodNumber;
3986
4853
  didExecute: z.ZodBoolean;
3987
4854
  state: z.ZodEnum<{
3988
- running: "running";
3989
- completed: "completed";
3990
4855
  failed: "failed";
4856
+ completed: "completed";
4857
+ running: "running";
3991
4858
  }>;
3992
4859
  outcome: z.ZodOptional<z.ZodEnum<{
3993
- failed: "failed";
3994
- success: "success";
3995
4860
  cancelled: "cancelled";
3996
- timed_out: "timed_out";
4861
+ success: "success";
4862
+ failed: "failed";
3997
4863
  blocked: "blocked";
4864
+ timed_out: "timed_out";
3998
4865
  }>>;
3999
4866
  blockReason: z.ZodOptional<z.ZodString>;
4000
4867
  startedAt: z.ZodNumber;
@@ -4002,9 +4869,9 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4002
4869
  durationMs: z.ZodOptional<z.ZodNumber>;
4003
4870
  displayName: z.ZodString;
4004
4871
  sourceKind: z.ZodEnum<{
4872
+ plugin: "plugin";
4005
4873
  user: "user";
4006
4874
  project: "project";
4007
- plugin: "plugin";
4008
4875
  }>;
4009
4876
  pluginName: z.ZodOptional<z.ZodString>;
4010
4877
  toolName: z.ZodOptional<z.ZodString>;
@@ -4041,10 +4908,10 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4041
4908
  manual: "manual";
4042
4909
  }>;
4043
4910
  status: z.ZodEnum<{
4044
- running: "running";
4045
- failed: "failed";
4046
- success: "success";
4047
4911
  cancelled: "cancelled";
4912
+ success: "success";
4913
+ failed: "failed";
4914
+ running: "running";
4048
4915
  noop: "noop";
4049
4916
  }>;
4050
4917
  tokensBefore: z.ZodOptional<z.ZodNumber>;
@@ -4080,8 +4947,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4080
4947
  type: z.ZodLiteral<"goalVerify">;
4081
4948
  iteration: z.ZodNumber;
4082
4949
  outcome: z.ZodEnum<{
4083
- running: "running";
4084
4950
  failed: "failed";
4951
+ running: "running";
4085
4952
  pass: "pass";
4086
4953
  notSatisfied: "notSatisfied";
4087
4954
  }>;
@@ -4121,8 +4988,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4121
4988
  path: z.ZodEnum<{
4122
4989
  text: "text";
4123
4990
  inputText: "inputText";
4124
- "output.text": "output.text";
4125
4991
  summaryText: "summaryText";
4992
+ "output.text": "output.text";
4126
4993
  }>;
4127
4994
  append: z.ZodString;
4128
4995
  }, z.core.$strip>, z.ZodObject<{
@@ -4131,11 +4998,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4131
4998
  revision: z.ZodOptional<z.ZodNumber>;
4132
4999
  control: z.ZodOptional<z.ZodObject<{
4133
5000
  phase: z.ZodEnum<{
4134
- running: "running";
4135
5001
  error: "error";
5002
+ running: "running";
5003
+ draft: "draft";
4136
5004
  completedSuccess: "completedSuccess";
4137
5005
  completedInterrupted: "completedInterrupted";
4138
- draft: "draft";
4139
5006
  prewarming: "prewarming";
4140
5007
  }>;
4141
5008
  sessionEnded: z.ZodBoolean;
@@ -4146,9 +5013,9 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4146
5013
  stopping: "stopping";
4147
5014
  }>;
4148
5015
  stopTargetKind: z.ZodEnum<{
4149
- subagent: "subagent";
4150
5016
  unknown: "unknown";
4151
5017
  assistant: "assistant";
5018
+ subagent: "subagent";
4152
5019
  tool: "tool";
4153
5020
  compact: "compact";
4154
5021
  goalContinuation: "goalContinuation";
@@ -4166,6 +5033,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4166
5033
  foregroundSubagent: "foregroundSubagent";
4167
5034
  }>;
4168
5035
  foregroundExecutionId: z.ZodOptional<z.ZodString>;
5036
+ sourceCommandId: z.ZodOptional<z.ZodString>;
4169
5037
  startedAt: z.ZodNumber;
4170
5038
  }, z.core.$strip>>;
4171
5039
  lastError: z.ZodNullable<z.ZodObject<{
@@ -4175,8 +5043,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4175
5043
  at: z.ZodNumber;
4176
5044
  source: z.ZodEnum<{
4177
5045
  provider: "provider";
4178
- tool: "tool";
4179
5046
  runtime: "runtime";
5047
+ tool: "tool";
4180
5048
  network: "network";
4181
5049
  }>;
4182
5050
  traceId: z.ZodOptional<z.ZodString>;
@@ -4186,28 +5054,28 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4186
5054
  attribution: z.ZodOptional<z.ZodObject<{
4187
5055
  source: z.ZodOptional<z.ZodEnum<{
4188
5056
  provider: "provider";
4189
- tool: "tool";
4190
5057
  runtime: "runtime";
5058
+ tool: "tool";
4191
5059
  network: "network";
4192
5060
  }>>;
4193
5061
  reason: z.ZodOptional<z.ZodString>;
4194
5062
  errorPhase: z.ZodOptional<z.ZodEnum<{
4195
5063
  response: "response";
5064
+ connect: "connect";
4196
5065
  prepare: "prepare";
4197
5066
  configuration: "configuration";
4198
- connect: "connect";
4199
5067
  stream: "stream";
4200
5068
  parse: "parse";
4201
5069
  validation: "validation";
4202
5070
  unhandled: "unhandled";
4203
5071
  }>>;
4204
5072
  exceptionKind: z.ZodOptional<z.ZodEnum<{
5073
+ transport: "transport";
4205
5074
  validation: "validation";
4206
5075
  api_call: "api_call";
4207
5076
  generic: "generic";
4208
5077
  protocol: "protocol";
4209
5078
  provider_business: "provider_business";
4210
- transport: "transport";
4211
5079
  type_error: "type_error";
4212
5080
  }>>;
4213
5081
  providerId: z.ZodOptional<z.ZodString>;
@@ -4295,11 +5163,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4295
5163
  }, z.core.$strip>>;
4296
5164
  inputRouting: z.ZodOptional<z.ZodObject<{
4297
5165
  mode: z.ZodEnum<{
4298
- startNow: "startNow";
4299
5166
  guide: "guide";
5167
+ choice: "choice";
5168
+ startNow: "startNow";
4300
5169
  enqueue: "enqueue";
4301
5170
  reject: "reject";
4302
- choice: "choice";
4303
5171
  }>;
4304
5172
  reasonCode: z.ZodOptional<z.ZodString>;
4305
5173
  }, z.core.$strip>>;
@@ -4367,13 +5235,13 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4367
5235
  }, z.core.$strict>>;
4368
5236
  breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
4369
5237
  source: z.ZodEnum<{
5238
+ messages: "messages";
4370
5239
  system_prompt: "system_prompt";
4371
5240
  meta_user_context: "meta_user_context";
4372
5241
  skills: "skills";
4373
5242
  tool_prompt: "tool_prompt";
4374
5243
  system_tool_schemas: "system_tool_schemas";
4375
5244
  mcp_tool_schemas: "mcp_tool_schemas";
4376
- messages: "messages";
4377
5245
  }>;
4378
5246
  chars: z.ZodNumber;
4379
5247
  }, z.core.$strict>>>;
@@ -4387,6 +5255,126 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4387
5255
  }, z.core.$strip>>;
4388
5256
  queue: z.ZodOptional<z.ZodObject<{
4389
5257
  items: z.ZodArray<z.ZodObject<{
5258
+ inputOrigin: z.ZodOptional<z.ZodEnum<{
5259
+ desktop: "desktop";
5260
+ mobile: "mobile";
5261
+ }>>;
5262
+ botGroupSource: z.ZodOptional<z.ZodObject<{
5263
+ botIdentity: z.ZodOptional<z.ZodObject<{
5264
+ name: z.ZodString;
5265
+ openId: z.ZodOptional<z.ZodString>;
5266
+ }, z.core.$strict>>;
5267
+ appId: z.ZodOptional<z.ZodString>;
5268
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5269
+ type: z.ZodLiteral<"text">;
5270
+ text: z.ZodString;
5271
+ }, z.core.$strict>, z.ZodObject<{
5272
+ type: z.ZodLiteral<"channelMention">;
5273
+ refId: z.ZodString;
5274
+ name: z.ZodString;
5275
+ channel: z.ZodEnum<{
5276
+ feishu: "feishu";
5277
+ lark: "lark";
5278
+ }>;
5279
+ targetId: z.ZodString;
5280
+ idType: z.ZodLiteral<"open_id">;
5281
+ entityType: z.ZodEnum<{
5282
+ unknown: "unknown";
5283
+ user: "user";
5284
+ bot: "bot";
5285
+ }>;
5286
+ }, z.core.$strict>]>>>;
5287
+ authorizationId: z.ZodOptional<z.ZodString>;
5288
+ botId: z.ZodString;
5289
+ provider: z.ZodEnum<{
5290
+ feishu: "feishu";
5291
+ lark: "lark";
5292
+ }>;
5293
+ chatId: z.ZodString;
5294
+ threadId: z.ZodOptional<z.ZodString>;
5295
+ rootMessageId: z.ZodOptional<z.ZodString>;
5296
+ senderId: z.ZodString;
5297
+ senderName: z.ZodString;
5298
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
5299
+ messageId: z.ZodString;
5300
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
5301
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5302
+ type: z.ZodLiteral<"text">;
5303
+ text: z.ZodString;
5304
+ }, z.core.$strict>, z.ZodObject<{
5305
+ type: z.ZodLiteral<"channelMention">;
5306
+ refId: z.ZodString;
5307
+ name: z.ZodString;
5308
+ channel: z.ZodEnum<{
5309
+ feishu: "feishu";
5310
+ lark: "lark";
5311
+ }>;
5312
+ targetId: z.ZodString;
5313
+ idType: z.ZodLiteral<"open_id">;
5314
+ entityType: z.ZodEnum<{
5315
+ unknown: "unknown";
5316
+ user: "user";
5317
+ bot: "bot";
5318
+ }>;
5319
+ }, z.core.$strict>]>>>;
5320
+ messageId: z.ZodString;
5321
+ senderId: z.ZodString;
5322
+ senderName: z.ZodString;
5323
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
5324
+ text: z.ZodString;
5325
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5326
+ text: z.ZodString;
5327
+ path: z.ZodOptional<z.ZodString>;
5328
+ senderName: z.ZodOptional<z.ZodString>;
5329
+ senderId: z.ZodOptional<z.ZodString>;
5330
+ messageId: z.ZodOptional<z.ZodString>;
5331
+ sentAt: z.ZodOptional<z.ZodString>;
5332
+ }, z.core.$strip>>>;
5333
+ attachmentIndexes: z.ZodArray<z.ZodNumber>;
5334
+ }, z.core.$strict>>>;
5335
+ topicContext: z.ZodOptional<z.ZodObject<{
5336
+ messages: z.ZodArray<z.ZodObject<{
5337
+ id: z.ZodString;
5338
+ chatId: z.ZodString;
5339
+ threadId: z.ZodString;
5340
+ senderId: z.ZodString;
5341
+ senderName: z.ZodOptional<z.ZodString>;
5342
+ parentId: z.ZodOptional<z.ZodString>;
5343
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
5344
+ name: z.ZodString;
5345
+ kind: z.ZodString;
5346
+ }, z.core.$strict>>>;
5347
+ senderType: z.ZodEnum<{
5348
+ user: "user";
5349
+ app: "app";
5350
+ }>;
5351
+ text: z.ZodString;
5352
+ createdAt: z.ZodNumber;
5353
+ kind: z.ZodString;
5354
+ controlCard: z.ZodOptional<z.ZodBoolean>;
5355
+ deleted: z.ZodOptional<z.ZodBoolean>;
5356
+ }, z.core.$strict>>;
5357
+ checkpoint: z.ZodString;
5358
+ hasGap: z.ZodBoolean;
5359
+ }, z.core.$strict>>;
5360
+ topicHistory: z.ZodOptional<z.ZodObject<{
5361
+ checkpoint: z.ZodString;
5362
+ hasGap: z.ZodBoolean;
5363
+ messageCount: z.ZodNumber;
5364
+ resourceMessages: z.ZodArray<z.ZodObject<{
5365
+ messageId: z.ZodString;
5366
+ count: z.ZodNumber;
5367
+ }, z.core.$strict>>;
5368
+ }, z.core.$strict>>;
5369
+ }, z.core.$strict>>;
5370
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5371
+ text: z.ZodString;
5372
+ path: z.ZodOptional<z.ZodString>;
5373
+ senderName: z.ZodOptional<z.ZodString>;
5374
+ senderId: z.ZodOptional<z.ZodString>;
5375
+ messageId: z.ZodOptional<z.ZodString>;
5376
+ sentAt: z.ZodOptional<z.ZodString>;
5377
+ }, z.core.$strip>>>;
4390
5378
  sourceCommandId: z.ZodString;
4391
5379
  queueItemId: z.ZodString;
4392
5380
  clientId: z.ZodString;
@@ -4401,6 +5389,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4401
5389
  fileName: z.ZodString;
4402
5390
  mime: z.ZodString;
4403
5391
  bytes: z.ZodNumber;
5392
+ sourceKind: z.ZodOptional<z.ZodEnum<{
5393
+ "clipboard-text": "clipboard-text";
5394
+ "topic-history": "topic-history";
5395
+ }>>;
5396
+ messageCount: z.ZodOptional<z.ZodNumber>;
4404
5397
  previewRef: z.ZodOptional<z.ZodString>;
4405
5398
  }, z.core.$strict>>>;
4406
5399
  modelSelection: z.ZodOptional<z.ZodObject<{
@@ -4415,6 +5408,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4415
5408
  build: "build";
4416
5409
  edit: "edit";
4417
5410
  yolo: "yolo";
5411
+ guarded: "guarded";
4418
5412
  }>>;
4419
5413
  planEnabled: z.ZodOptional<z.ZodBoolean>;
4420
5414
  sharedContextRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4424,14 +5418,14 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4424
5418
  delivery: z.ZodObject<{
4425
5419
  requested: z.ZodEnum<{
4426
5420
  auto: "auto";
4427
- startNow: "startNow";
4428
5421
  queue: "queue";
4429
5422
  guide: "guide";
5423
+ startNow: "startNow";
4430
5424
  }>;
4431
5425
  admitted: z.ZodEnum<{
4432
- startNow: "startNow";
4433
5426
  queue: "queue";
4434
5427
  guide: "guide";
5428
+ startNow: "startNow";
4435
5429
  }>;
4436
5430
  fallbackReasonCode: z.ZodOptional<z.ZodString>;
4437
5431
  }, z.core.$strict>;
@@ -4450,16 +5444,47 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4450
5444
  reasonCode: z.ZodOptional<z.ZodString>;
4451
5445
  }, z.core.$strict>;
4452
5446
  admittedAt: z.ZodNumber;
5447
+ highspeed: z.ZodOptional<z.ZodObject<{
5448
+ schemaVersion: z.ZodLiteral<1>;
5449
+ cardId: z.ZodString;
5450
+ taskId: z.ZodString;
5451
+ provider: z.ZodString;
5452
+ model: z.ZodString;
5453
+ issuedAt: z.ZodNumber;
5454
+ expiresAt: z.ZodNumber;
5455
+ regularTps: z.ZodOptional<z.ZodNumber>;
5456
+ outputTokens: z.ZodOptional<z.ZodNumber>;
5457
+ durationMs: z.ZodOptional<z.ZodNumber>;
5458
+ highspeedTps: z.ZodOptional<z.ZodNumber>;
5459
+ savedDurationMs: z.ZodOptional<z.ZodNumber>;
5460
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
5461
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
5462
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
5463
+ fallbackAt: z.ZodOptional<z.ZodNumber>;
5464
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
5465
+ highspeed_card_expired: "highspeed_card_expired";
5466
+ highspeed_request_failed: "highspeed_request_failed";
5467
+ }>>;
5468
+ }, z.core.$strict>>;
4453
5469
  provenance: z.ZodOptional<z.ZodObject<{
4454
5470
  sourceCommandId: z.ZodString;
4455
5471
  queueItemId: z.ZodOptional<z.ZodString>;
4456
5472
  clientId: z.ZodOptional<z.ZodString>;
4457
5473
  }, z.core.$strict>>;
5474
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5475
+ kind: z.ZodLiteral<"pluginUi">;
5476
+ pluginId: z.ZodString;
5477
+ toolCallId: z.ZodString;
5478
+ }, z.core.$strict>, z.ZodObject<{
5479
+ kind: z.ZodLiteral<"genUi">;
5480
+ path: z.ZodString;
5481
+ title: z.ZodOptional<z.ZodString>;
5482
+ }, z.core.$strict>], "kind">>;
4458
5483
  dispatch: z.ZodObject<{
4459
5484
  reservationId: z.ZodOptional<z.ZodString>;
4460
5485
  state: z.ZodEnum<{
4461
- queued: "queued";
4462
5486
  reserved: "reserved";
5487
+ queued: "queued";
4463
5488
  promoting: "promoting";
4464
5489
  }>;
4465
5490
  }, z.core.$strict>;
@@ -4468,16 +5493,16 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4468
5493
  autoDrain: z.ZodBoolean;
4469
5494
  pauseReason: z.ZodOptional<z.ZodEnum<{
4470
5495
  error: "error";
4471
- stopped: "stopped";
4472
5496
  manual: "manual";
5497
+ stopped: "stopped";
4473
5498
  }>>;
4474
5499
  }, z.core.$strip>>;
4475
5500
  pendingInteractions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4476
5501
  interactionId: z.ZodString;
4477
5502
  kind: z.ZodEnum<{
5503
+ permission: "permission";
4478
5504
  userInput: "userInput";
4479
5505
  workspaceHookReview: "workspaceHookReview";
4480
- permission: "permission";
4481
5506
  }>;
4482
5507
  anchorRowId: z.ZodNullable<z.ZodNumber>;
4483
5508
  createdAt: z.ZodNumber;
@@ -4537,8 +5562,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4537
5562
  }, z.core.$strict>, z.ZodObject<{
4538
5563
  kind: z.ZodLiteral<"respond_to_coordinator">;
4539
5564
  status: z.ZodEnum<{
4540
- failed: "failed";
4541
5565
  success: "success";
5566
+ failed: "failed";
4542
5567
  }>;
4543
5568
  }, z.core.$strict>, z.ZodObject<{
4544
5569
  kind: z.ZodLiteral<"mcp_tool">;
@@ -4547,10 +5572,34 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4547
5572
  description: z.ZodOptional<z.ZodString>;
4548
5573
  unavailable: z.ZodOptional<z.ZodObject<{
4549
5574
  code: z.ZodEnum<{
4550
- quota_exceeded: "quota_exceeded";
4551
5575
  coding_plan_required: "coding_plan_required";
5576
+ quota_exceeded: "quota_exceeded";
4552
5577
  }>;
4553
5578
  }, z.core.$strict>>;
5579
+ ui: z.ZodOptional<z.ZodObject<{
5580
+ pluginId: z.ZodString;
5581
+ resourceUri: z.ZodString;
5582
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
5583
+ inline: "inline";
5584
+ fullscreen: "fullscreen";
5585
+ pip: "pip";
5586
+ }>>;
5587
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
5588
+ csp: z.ZodOptional<z.ZodObject<{
5589
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
5590
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
5591
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
5592
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
5593
+ }, z.core.$strict>>;
5594
+ structuredContent: z.ZodOptional<z.ZodString>;
5595
+ widgetMeta: z.ZodOptional<z.ZodString>;
5596
+ content: z.ZodOptional<z.ZodString>;
5597
+ truncated: z.ZodOptional<z.ZodBoolean>;
5598
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
5599
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
5600
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
5601
+ surface: z.ZodOptional<z.ZodString>;
5602
+ }, z.core.$strict>>;
4554
5603
  }, z.core.$strict>, z.ZodObject<{
4555
5604
  kind: z.ZodLiteral<"create_workflow">;
4556
5605
  ok: z.ZodBoolean;
@@ -4567,6 +5616,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4567
5616
  kind: z.ZodEnum<{
4568
5617
  ask: "ask";
4569
5618
  "world-read": "world-read";
5619
+ hole: "hole";
4570
5620
  }>;
4571
5621
  label: z.ZodString;
4572
5622
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -4583,6 +5633,7 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4583
5633
  stack: "stack";
4584
5634
  serial: "serial";
4585
5635
  }>>;
5636
+ fill: z.ZodOptional<z.ZodString>;
4586
5637
  }, z.core.$strict>>;
4587
5638
  lanes: z.ZodArray<z.ZodObject<{
4588
5639
  id: z.ZodString;
@@ -4617,33 +5668,51 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4617
5668
  line: z.ZodOptional<z.ZodNumber>;
4618
5669
  column: z.ZodOptional<z.ZodNumber>;
4619
5670
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
5671
+ fill: z.ZodOptional<z.ZodString>;
4620
5672
  }, z.core.$strict>>>;
4621
5673
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
4622
5674
  from: z.ZodString;
4623
5675
  to: z.ZodString;
4624
5676
  back: z.ZodOptional<z.ZodLiteral<true>>;
4625
5677
  }, z.core.$strict>>>;
5678
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
5679
+ from: z.ZodString;
5680
+ to: z.ZodString;
5681
+ }, z.core.$strict>>>;
5682
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5683
+ siteId: z.ZodString;
5684
+ name: z.ZodString;
5685
+ type: z.ZodString;
5686
+ phase: z.ZodOptional<z.ZodString>;
5687
+ tail: z.ZodOptional<z.ZodBoolean>;
5688
+ }, z.core.$strict>>>;
4626
5689
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4627
5690
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
4628
5691
  truncated: z.ZodOptional<z.ZodBoolean>;
4629
5692
  }, z.core.$strict>>;
4630
5693
  truncated: z.ZodOptional<z.ZodBoolean>;
5694
+ fill: z.ZodOptional<z.ZodObject<{
5695
+ siteId: z.ZodString;
5696
+ name: z.ZodString;
5697
+ draftPath: z.ZodOptional<z.ZodString>;
5698
+ line: z.ZodOptional<z.ZodNumber>;
5699
+ }, z.core.$strict>>;
4631
5700
  }, z.core.$strict>, z.ZodObject<{
4632
5701
  kind: z.ZodLiteral<"get_workflow_run">;
4633
5702
  runId: z.ZodString;
4634
5703
  label: z.ZodString;
4635
5704
  status: z.ZodEnum<{
5705
+ completed: "completed";
4636
5706
  pending: "pending";
4637
5707
  running: "running";
4638
- completed: "completed";
4639
- stopped: "stopped";
4640
5708
  errored: "errored";
5709
+ stopped: "stopped";
4641
5710
  }>;
4642
5711
  stopReason: z.ZodOptional<z.ZodEnum<{
4643
- interrupted: "interrupted";
4644
5712
  user: "user";
4645
5713
  model: "model";
4646
5714
  provider: "provider";
5715
+ interrupted: "interrupted";
4647
5716
  superseded: "superseded";
4648
5717
  }>>;
4649
5718
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -4659,8 +5728,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4659
5728
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
4660
5729
  name: z.ZodString;
4661
5730
  state: z.ZodEnum<{
4662
- done: "done";
4663
5731
  current: "current";
5732
+ done: "done";
4664
5733
  ahead: "ahead";
4665
5734
  unfinished: "unfinished";
4666
5735
  }>;
@@ -4676,11 +5745,11 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4676
5745
  name: z.ZodOptional<z.ZodString>;
4677
5746
  state: z.ZodEnum<{
4678
5747
  failed: "failed";
5748
+ idle: "idle";
5749
+ waiting: "waiting";
4679
5750
  done: "done";
4680
5751
  unfinished: "unfinished";
4681
- idle: "idle";
4682
5752
  executing: "executing";
4683
- waiting: "waiting";
4684
5753
  parked: "parked";
4685
5754
  }>;
4686
5755
  phaseName: z.ZodOptional<z.ZodString>;
@@ -4741,21 +5810,21 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4741
5810
  runId: z.ZodString;
4742
5811
  label: z.ZodString;
4743
5812
  labelSource: z.ZodEnum<{
4744
- script: "script";
4745
5813
  name: "name";
5814
+ script: "script";
4746
5815
  }>;
4747
5816
  status: z.ZodEnum<{
5817
+ completed: "completed";
4748
5818
  pending: "pending";
4749
5819
  running: "running";
4750
- completed: "completed";
4751
- stopped: "stopped";
4752
5820
  errored: "errored";
5821
+ stopped: "stopped";
4753
5822
  }>;
4754
5823
  stopReason: z.ZodOptional<z.ZodEnum<{
4755
- interrupted: "interrupted";
4756
5824
  user: "user";
4757
5825
  model: "model";
4758
5826
  provider: "provider";
5827
+ interrupted: "interrupted";
4759
5828
  superseded: "superseded";
4760
5829
  }>>;
4761
5830
  ownedByThisSession: z.ZodBoolean;
@@ -4954,8 +6023,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4954
6023
  resolvedTimeoutMs: z.ZodNumber;
4955
6024
  resolvedMaxOutputBytes: z.ZodNumber;
4956
6025
  executionMode: z.ZodEnum<{
4957
- foreground: "foreground";
4958
6026
  background: "background";
6027
+ foreground: "foreground";
4959
6028
  }>;
4960
6029
  configuredEnabled: z.ZodBoolean;
4961
6030
  editable: z.ZodBoolean;
@@ -4977,8 +6046,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4977
6046
  clientId: z.ZodString;
4978
6047
  type: z.ZodString;
4979
6048
  state: z.ZodEnum<{
4980
- executing: "executing";
4981
6049
  accepted: "accepted";
6050
+ executing: "executing";
4982
6051
  }>;
4983
6052
  at: z.ZodNumber;
4984
6053
  }, z.core.$strip>>>;
@@ -4991,9 +6060,9 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4991
6060
  }>;
4992
6061
  title: z.ZodString;
4993
6062
  status: z.ZodEnum<{
4994
- running: "running";
4995
- failed: "failed";
4996
6063
  cancelled: "cancelled";
6064
+ failed: "failed";
6065
+ running: "running";
4997
6066
  resultPending: "resultPending";
4998
6067
  }>;
4999
6068
  startedAt: z.ZodNumber;
@@ -5028,17 +6097,17 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5028
6097
  runId: z.ZodString;
5029
6098
  toolCallId: z.ZodOptional<z.ZodString>;
5030
6099
  status: z.ZodEnum<{
6100
+ completed: "completed";
5031
6101
  pending: "pending";
5032
6102
  running: "running";
5033
- completed: "completed";
5034
- stopped: "stopped";
5035
6103
  errored: "errored";
6104
+ stopped: "stopped";
5036
6105
  }>;
5037
6106
  stopReason: z.ZodOptional<z.ZodEnum<{
5038
- interrupted: "interrupted";
5039
6107
  user: "user";
5040
6108
  model: "model";
5041
6109
  provider: "provider";
6110
+ interrupted: "interrupted";
5042
6111
  superseded: "superseded";
5043
6112
  }>>;
5044
6113
  resumedFrom: z.ZodOptional<z.ZodString>;
@@ -5058,11 +6127,12 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5058
6127
  name: z.ZodOptional<z.ZodString>;
5059
6128
  sessionId: z.ZodOptional<z.ZodString>;
5060
6129
  status: z.ZodEnum<{
5061
- running: "running";
5062
6130
  completed: "completed";
6131
+ running: "running";
5063
6132
  waiting: "waiting";
5064
6133
  }>;
5065
6134
  phaseName: z.ZodOptional<z.ZodString>;
6135
+ model: z.ZodOptional<z.ZodString>;
5066
6136
  }, z.core.$strip>>;
5067
6137
  nodes: z.ZodArray<z.ZodObject<{
5068
6138
  siteId: z.ZodString;
@@ -5072,18 +6142,18 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5072
6142
  "world-read": "world-read";
5073
6143
  }>>;
5074
6144
  phase: z.ZodEnum<{
6145
+ waiting: "waiting";
5075
6146
  queued: "queued";
5076
6147
  executing: "executing";
5077
- waiting: "waiting";
5078
- settled: "settled";
5079
6148
  dispatched: "dispatched";
5080
6149
  repairing: "repairing";
5081
6150
  nudged: "nudged";
6151
+ settled: "settled";
5082
6152
  }>;
5083
6153
  outcome: z.ZodOptional<z.ZodEnum<{
5084
- failed: "failed";
5085
6154
  cancelled: "cancelled";
5086
6155
  ok: "ok";
6156
+ failed: "failed";
5087
6157
  }>>;
5088
6158
  cached: z.ZodOptional<z.ZodBoolean>;
5089
6159
  actorSiteId: z.ZodOptional<z.ZodString>;
@@ -5145,6 +6215,21 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5145
6215
  currentPhase: z.ZodOptional<z.ZodString>;
5146
6216
  phaseNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
5147
6217
  phaseAlongside: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>;
6218
+ phaseHoles: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
6219
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
6220
+ siteId: z.ZodString;
6221
+ ordinal: z.ZodNumber;
6222
+ name: z.ZodString;
6223
+ type: z.ZodOptional<z.ZodString>;
6224
+ prompt: z.ZodOptional<z.ZodString>;
6225
+ state: z.ZodEnum<{
6226
+ waiting: "waiting";
6227
+ filled: "filled";
6228
+ }>;
6229
+ since: z.ZodOptional<z.ZodNumber>;
6230
+ filledAt: z.ZodOptional<z.ZodNumber>;
6231
+ filledBy: z.ZodOptional<z.ZodString>;
6232
+ }, z.core.$strip>>>;
5148
6233
  unlistedByPhase: z.ZodOptional<z.ZodArray<z.ZodObject<{
5149
6234
  phaseName: z.ZodOptional<z.ZodString>;
5150
6235
  actors: z.ZodNumber;
@@ -5164,8 +6249,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5164
6249
  activeRunStartedAtMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5165
6250
  status: z.ZodEnum<{
5166
6251
  failed: "failed";
5167
- active: "active";
5168
6252
  paused: "paused";
6253
+ active: "active";
5169
6254
  notSatisfied: "notSatisfied";
5170
6255
  verifying: "verifying";
5171
6256
  verified: "verified";
@@ -5189,8 +6274,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5189
6274
  id: z.ZodString;
5190
6275
  content: z.ZodString;
5191
6276
  status: z.ZodEnum<{
5192
- pending: "pending";
5193
6277
  completed: "completed";
6278
+ pending: "pending";
5194
6279
  inProgress: "inProgress";
5195
6280
  }>;
5196
6281
  }, z.core.$strip>>;
@@ -5202,8 +6287,8 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5202
6287
  id: z.ZodString;
5203
6288
  content: z.ZodString;
5204
6289
  status: z.ZodEnum<{
5205
- pending: "pending";
5206
6290
  completed: "completed";
6291
+ pending: "pending";
5207
6292
  inProgress: "inProgress";
5208
6293
  }>;
5209
6294
  }, z.core.$strip>>;
@@ -5215,46 +6300,115 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5215
6300
  workspaceIdentity: z.ZodOptional<z.ZodString>;
5216
6301
  }, z.core.$strip>>>;
5217
6302
  }, z.core.$strip>;
6303
+ }, z.core.$strip>, z.ZodObject<{
6304
+ op: z.ZodLiteral<"pluginUi.resourceUpdated">;
6305
+ pluginId: z.ZodString;
6306
+ serverName: z.ZodString;
6307
+ uri: z.ZodString;
6308
+ subscribers: z.ZodArray<z.ZodObject<{
6309
+ scopeId: z.ZodString;
6310
+ generation: z.ZodNumber;
6311
+ instance: z.ZodObject<{
6312
+ runtimeId: z.ZodString;
6313
+ generation: z.ZodNumber;
6314
+ appIdentity: z.ZodString;
6315
+ token: z.ZodString;
6316
+ }, z.core.$strict>;
6317
+ }, z.core.$strict>>;
6318
+ }, z.core.$strip>, z.ZodObject<{
6319
+ op: z.ZodLiteral<"pluginUi.resourceListChanged">;
6320
+ pluginId: z.ZodString;
6321
+ serverName: z.ZodString;
6322
+ subscribers: z.ZodArray<z.ZodObject<{
6323
+ scopeId: z.ZodString;
6324
+ generation: z.ZodNumber;
6325
+ instance: z.ZodObject<{
6326
+ runtimeId: z.ZodString;
6327
+ generation: z.ZodNumber;
6328
+ appIdentity: z.ZodString;
6329
+ token: z.ZodString;
6330
+ }, z.core.$strict>;
6331
+ }, z.core.$strict>>;
6332
+ }, z.core.$strip>, z.ZodObject<{
6333
+ op: z.ZodLiteral<"pluginUi.instanceClosed">;
6334
+ pluginId: z.ZodString;
6335
+ serverName: z.ZodString;
6336
+ subscribers: z.ZodArray<z.ZodObject<{
6337
+ scopeId: z.ZodString;
6338
+ generation: z.ZodNumber;
6339
+ instance: z.ZodObject<{
6340
+ runtimeId: z.ZodString;
6341
+ generation: z.ZodNumber;
6342
+ appIdentity: z.ZodString;
6343
+ token: z.ZodString;
6344
+ }, z.core.$strict>;
6345
+ }, z.core.$strict>>;
6346
+ }, z.core.$strip>, z.ZodObject<{
6347
+ op: z.ZodLiteral<"pluginUi.appToolCall">;
6348
+ activity: z.ZodOptional<z.ZodBoolean>;
6349
+ cancelled: z.ZodOptional<z.ZodBoolean>;
6350
+ pluginId: z.ZodString;
6351
+ serverName: z.ZodString;
6352
+ subscribers: z.ZodArray<z.ZodObject<{
6353
+ scopeId: z.ZodString;
6354
+ generation: z.ZodNumber;
6355
+ instance: z.ZodObject<{
6356
+ runtimeId: z.ZodString;
6357
+ generation: z.ZodNumber;
6358
+ appIdentity: z.ZodString;
6359
+ token: z.ZodString;
6360
+ }, z.core.$strict>;
6361
+ }, z.core.$strict>>;
6362
+ callId: z.ZodString;
6363
+ toolName: z.ZodString;
6364
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5218
6365
  }, z.core.$strip>, z.ZodObject<{
5219
6366
  op: z.ZodLiteral<"workflowRun.updated">;
5220
6367
  runId: z.ZodString;
5221
6368
  revision: z.ZodNumber;
5222
6369
  run: z.ZodOptional<z.ZodObject<{
5223
6370
  error: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5224
- toolCallId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5225
- status: z.ZodOptional<z.ZodEnum<{
5226
- pending: "pending";
5227
- running: "running";
5228
- completed: "completed";
5229
- stopped: "stopped";
5230
- errored: "errored";
5231
- }>>;
5232
6371
  truncated: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5233
6372
  phases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5234
6373
  name: z.ZodString;
5235
6374
  rounds: z.ZodNumber;
5236
6375
  }, z.core.$strip>>>>;
5237
- concurrency: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5238
- key: z.ZodOptional<z.ZodString>;
5239
- cap: z.ZodNumber;
5240
- ceiling: z.ZodNumber;
5241
- limit: z.ZodOptional<z.ZodNumber>;
5242
- cooldownMs: z.ZodOptional<z.ZodNumber>;
5243
- }, z.core.$strip>>>;
5244
- runId: z.ZodOptional<z.ZodString>;
6376
+ holes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
6377
+ siteId: z.ZodString;
6378
+ ordinal: z.ZodNumber;
6379
+ name: z.ZodString;
6380
+ type: z.ZodOptional<z.ZodString>;
6381
+ prompt: z.ZodOptional<z.ZodString>;
6382
+ state: z.ZodEnum<{
6383
+ waiting: "waiting";
6384
+ filled: "filled";
6385
+ }>;
6386
+ since: z.ZodOptional<z.ZodNumber>;
6387
+ filledAt: z.ZodOptional<z.ZodNumber>;
6388
+ filledBy: z.ZodOptional<z.ZodString>;
6389
+ }, z.core.$strip>>>>;
6390
+ status: z.ZodOptional<z.ZodEnum<{
6391
+ completed: "completed";
6392
+ pending: "pending";
6393
+ running: "running";
6394
+ errored: "errored";
6395
+ stopped: "stopped";
6396
+ }>>;
5245
6397
  stopReason: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
5246
- interrupted: "interrupted";
5247
6398
  user: "user";
5248
6399
  model: "model";
5249
6400
  provider: "provider";
6401
+ interrupted: "interrupted";
5250
6402
  superseded: "superseded";
5251
6403
  }>>>;
6404
+ toolCallId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5252
6405
  usage: z.ZodOptional<z.ZodObject<{
5253
6406
  spentTokens: z.ZodNumber;
5254
6407
  nodesUsed: z.ZodNumber;
5255
6408
  nodesUnlisted: z.ZodOptional<z.ZodNumber>;
5256
6409
  nodesUnlistedSettled: z.ZodOptional<z.ZodNumber>;
5257
6410
  }, z.core.$strip>>;
6411
+ runId: z.ZodOptional<z.ZodString>;
5258
6412
  artifacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5259
6413
  id: z.ZodString;
5260
6414
  kind: z.ZodEnum<{
@@ -5272,16 +6426,24 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5272
6426
  itemCount: z.ZodOptional<z.ZodNumber>;
5273
6427
  primary: z.ZodOptional<z.ZodLiteral<true>>;
5274
6428
  }, z.core.$strict>>>>;
5275
- resumedFrom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5276
- supersededBy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5277
- resumable: z.ZodOptional<z.ZodOptional<z.ZodLiteral<true>>>;
5278
- resultPreview: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5279
6429
  reports: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5280
6430
  siteId: z.ZodString;
5281
6431
  ordinal: z.ZodNumber;
5282
6432
  preview: z.ZodString;
5283
6433
  artifactId: z.ZodOptional<z.ZodString>;
5284
6434
  }, z.core.$strip>>>>;
6435
+ subagentModel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6436
+ concurrency: z.ZodOptional<z.ZodOptional<z.ZodObject<{
6437
+ key: z.ZodOptional<z.ZodString>;
6438
+ cap: z.ZodNumber;
6439
+ ceiling: z.ZodNumber;
6440
+ limit: z.ZodOptional<z.ZodNumber>;
6441
+ cooldownMs: z.ZodOptional<z.ZodNumber>;
6442
+ }, z.core.$strip>>>;
6443
+ resumedFrom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6444
+ supersededBy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6445
+ resumable: z.ZodOptional<z.ZodOptional<z.ZodLiteral<true>>>;
6446
+ resultPreview: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5285
6447
  pendingQuestions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5286
6448
  qid: z.ZodString;
5287
6449
  actorSiteId: z.ZodOptional<z.ZodString>;
@@ -5292,10 +6454,10 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5292
6454
  askedAt: z.ZodOptional<z.ZodNumber>;
5293
6455
  }, z.core.$strip>>>>;
5294
6456
  concurrencyCeiling: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
5295
- subagentModel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5296
6457
  currentPhase: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5297
6458
  phaseNames: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
5298
6459
  phaseAlongside: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
6460
+ phaseHoles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber>>>;
5299
6461
  unlistedByPhase: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
5300
6462
  phaseName: z.ZodOptional<z.ZodString>;
5301
6463
  actors: z.ZodNumber;
@@ -5307,26 +6469,28 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5307
6469
  }, z.core.$strip>>;
5308
6470
  cleared: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5309
6471
  error: "error";
5310
- toolCallId: "toolCallId";
5311
- status: "status";
5312
6472
  truncated: "truncated";
5313
6473
  phases: "phases";
5314
- concurrency: "concurrency";
5315
- runId: "runId";
6474
+ holes: "holes";
6475
+ status: "status";
5316
6476
  stopReason: "stopReason";
6477
+ toolCallId: "toolCallId";
5317
6478
  usage: "usage";
6479
+ runId: "runId";
5318
6480
  artifacts: "artifacts";
6481
+ reports: "reports";
6482
+ subagentModel: "subagentModel";
6483
+ concurrency: "concurrency";
5319
6484
  resumedFrom: "resumedFrom";
5320
6485
  supersededBy: "supersededBy";
5321
6486
  resumable: "resumable";
5322
6487
  resultPreview: "resultPreview";
5323
- reports: "reports";
5324
6488
  pendingQuestions: "pendingQuestions";
5325
6489
  concurrencyCeiling: "concurrencyCeiling";
5326
- subagentModel: "subagentModel";
5327
6490
  currentPhase: "currentPhase";
5328
6491
  phaseNames: "phaseNames";
5329
6492
  phaseAlongside: "phaseAlongside";
6493
+ phaseHoles: "phaseHoles";
5330
6494
  unlistedByPhase: "unlistedByPhase";
5331
6495
  lastEventSequence: "lastEventSequence";
5332
6496
  }>>>;
@@ -5344,11 +6508,12 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5344
6508
  name: z.ZodOptional<z.ZodString>;
5345
6509
  sessionId: z.ZodOptional<z.ZodString>;
5346
6510
  status: z.ZodEnum<{
5347
- running: "running";
5348
6511
  completed: "completed";
6512
+ running: "running";
5349
6513
  waiting: "waiting";
5350
6514
  }>;
5351
6515
  phaseName: z.ZodOptional<z.ZodString>;
6516
+ model: z.ZodOptional<z.ZodString>;
5352
6517
  }, z.core.$strip>>>;
5353
6518
  nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5354
6519
  siteId: z.ZodString;
@@ -5358,18 +6523,18 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5358
6523
  "world-read": "world-read";
5359
6524
  }>>;
5360
6525
  phase: z.ZodEnum<{
6526
+ waiting: "waiting";
5361
6527
  queued: "queued";
5362
6528
  executing: "executing";
5363
- waiting: "waiting";
5364
- settled: "settled";
5365
6529
  dispatched: "dispatched";
5366
6530
  repairing: "repairing";
5367
6531
  nudged: "nudged";
6532
+ settled: "settled";
5368
6533
  }>;
5369
6534
  outcome: z.ZodOptional<z.ZodEnum<{
5370
- failed: "failed";
5371
6535
  cancelled: "cancelled";
5372
6536
  ok: "ok";
6537
+ failed: "failed";
5373
6538
  }>>;
5374
6539
  cached: z.ZodOptional<z.ZodBoolean>;
5375
6540
  actorSiteId: z.ZodOptional<z.ZodString>;
@@ -5389,6 +6554,16 @@ export declare const conversationDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObje
5389
6554
  revision: z.ZodNumber;
5390
6555
  }, z.core.$strip>], "op">;
5391
6556
  export type ConversationDelta = z.infer<typeof conversationDeltaSchema>;
6557
+ export type PluginUiResourceDelta = Extract<ConversationDelta, {
6558
+ op: "pluginUi.resourceUpdated" | "pluginUi.resourceListChanged";
6559
+ }>;
6560
+ export type PluginUiAppToolCallDelta = Extract<ConversationDelta, {
6561
+ op: "pluginUi.appToolCall";
6562
+ }>;
6563
+ /** 按沙箱实例投递的全部 live-only 增量。 */
6564
+ export type PluginUiInstanceDelta = Extract<ConversationDelta, {
6565
+ op: "pluginUi.instanceClosed";
6566
+ }> | PluginUiResourceDelta | PluginUiAppToolCallDelta;
5392
6567
  export type WorkflowRunUpdatedDelta = Extract<ConversationDelta, {
5393
6568
  op: "workflowRun.updated";
5394
6569
  }>;