@dipoleml/dcode-cli 1.1.0 → 1.2.1

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 +59368 -45608
  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
@@ -2,18 +2,18 @@ import { z } from "zod";
2
2
  export { sharedContextImportStateSchema } from "./shared-context-import.js";
3
3
  export { sessionConfigStateSchema, sessionModelTransitionSchema, type SessionConfigState, type SessionModelTransition, } from "./session-config.js";
4
4
  export declare const sessionPhaseSchema: z.ZodEnum<{
5
- running: "running";
6
5
  error: "error";
6
+ running: "running";
7
+ draft: "draft";
7
8
  completedSuccess: "completedSuccess";
8
9
  completedInterrupted: "completedInterrupted";
9
- draft: "draft";
10
10
  prewarming: "prewarming";
11
11
  }>;
12
12
  export type SessionPhase = z.infer<typeof sessionPhaseSchema>;
13
13
  export declare const stopTargetKindSchema: z.ZodEnum<{
14
- subagent: "subagent";
15
14
  unknown: "unknown";
16
15
  assistant: "assistant";
16
+ subagent: "subagent";
17
17
  tool: "tool";
18
18
  compact: "compact";
19
19
  goalContinuation: "goalContinuation";
@@ -32,34 +32,35 @@ export declare const activeWorkSummarySchema: z.ZodObject<{
32
32
  foregroundSubagent: "foregroundSubagent";
33
33
  }>;
34
34
  foregroundExecutionId: z.ZodOptional<z.ZodString>;
35
+ sourceCommandId: z.ZodOptional<z.ZodString>;
35
36
  startedAt: z.ZodNumber;
36
37
  }, z.core.$strip>;
37
38
  export type ActiveWorkSummary = z.infer<typeof activeWorkSummarySchema>;
38
39
  export declare const errorAttributionSchema: z.ZodObject<{
39
40
  source: z.ZodOptional<z.ZodEnum<{
40
41
  provider: "provider";
41
- tool: "tool";
42
42
  runtime: "runtime";
43
+ tool: "tool";
43
44
  network: "network";
44
45
  }>>;
45
46
  reason: z.ZodOptional<z.ZodString>;
46
47
  errorPhase: z.ZodOptional<z.ZodEnum<{
47
48
  response: "response";
49
+ connect: "connect";
48
50
  prepare: "prepare";
49
51
  configuration: "configuration";
50
- connect: "connect";
51
52
  stream: "stream";
52
53
  parse: "parse";
53
54
  validation: "validation";
54
55
  unhandled: "unhandled";
55
56
  }>>;
56
57
  exceptionKind: z.ZodOptional<z.ZodEnum<{
58
+ transport: "transport";
57
59
  validation: "validation";
58
60
  api_call: "api_call";
59
61
  generic: "generic";
60
62
  protocol: "protocol";
61
63
  provider_business: "provider_business";
62
- transport: "transport";
63
64
  type_error: "type_error";
64
65
  }>>;
65
66
  providerId: z.ZodOptional<z.ZodString>;
@@ -82,8 +83,8 @@ export declare const sessionErrorInfoSchema: z.ZodObject<{
82
83
  at: z.ZodNumber;
83
84
  source: z.ZodEnum<{
84
85
  provider: "provider";
85
- tool: "tool";
86
86
  runtime: "runtime";
87
+ tool: "tool";
87
88
  network: "network";
88
89
  }>;
89
90
  traceId: z.ZodOptional<z.ZodString>;
@@ -93,28 +94,28 @@ export declare const sessionErrorInfoSchema: z.ZodObject<{
93
94
  attribution: z.ZodOptional<z.ZodObject<{
94
95
  source: z.ZodOptional<z.ZodEnum<{
95
96
  provider: "provider";
96
- tool: "tool";
97
97
  runtime: "runtime";
98
+ tool: "tool";
98
99
  network: "network";
99
100
  }>>;
100
101
  reason: z.ZodOptional<z.ZodString>;
101
102
  errorPhase: z.ZodOptional<z.ZodEnum<{
102
103
  response: "response";
104
+ connect: "connect";
103
105
  prepare: "prepare";
104
106
  configuration: "configuration";
105
- connect: "connect";
106
107
  stream: "stream";
107
108
  parse: "parse";
108
109
  validation: "validation";
109
110
  unhandled: "unhandled";
110
111
  }>>;
111
112
  exceptionKind: z.ZodOptional<z.ZodEnum<{
113
+ transport: "transport";
112
114
  validation: "validation";
113
115
  api_call: "api_call";
114
116
  generic: "generic";
115
117
  protocol: "protocol";
116
118
  provider_business: "provider_business";
117
- transport: "transport";
118
119
  type_error: "type_error";
119
120
  }>>;
120
121
  providerId: z.ZodOptional<z.ZodString>;
@@ -140,11 +141,11 @@ export declare const apiRetryStateSchema: z.ZodObject<{
140
141
  export type ApiRetryState = z.infer<typeof apiRetryStateSchema>;
141
142
  export declare const sessionControlSchema: z.ZodObject<{
142
143
  phase: z.ZodEnum<{
143
- running: "running";
144
144
  error: "error";
145
+ running: "running";
146
+ draft: "draft";
145
147
  completedSuccess: "completedSuccess";
146
148
  completedInterrupted: "completedInterrupted";
147
- draft: "draft";
148
149
  prewarming: "prewarming";
149
150
  }>;
150
151
  sessionEnded: z.ZodBoolean;
@@ -155,9 +156,9 @@ export declare const sessionControlSchema: z.ZodObject<{
155
156
  stopping: "stopping";
156
157
  }>;
157
158
  stopTargetKind: z.ZodEnum<{
158
- subagent: "subagent";
159
159
  unknown: "unknown";
160
160
  assistant: "assistant";
161
+ subagent: "subagent";
161
162
  tool: "tool";
162
163
  compact: "compact";
163
164
  goalContinuation: "goalContinuation";
@@ -175,6 +176,7 @@ export declare const sessionControlSchema: z.ZodObject<{
175
176
  foregroundSubagent: "foregroundSubagent";
176
177
  }>;
177
178
  foregroundExecutionId: z.ZodOptional<z.ZodString>;
179
+ sourceCommandId: z.ZodOptional<z.ZodString>;
178
180
  startedAt: z.ZodNumber;
179
181
  }, z.core.$strip>>;
180
182
  lastError: z.ZodNullable<z.ZodObject<{
@@ -184,8 +186,8 @@ export declare const sessionControlSchema: z.ZodObject<{
184
186
  at: z.ZodNumber;
185
187
  source: z.ZodEnum<{
186
188
  provider: "provider";
187
- tool: "tool";
188
189
  runtime: "runtime";
190
+ tool: "tool";
189
191
  network: "network";
190
192
  }>;
191
193
  traceId: z.ZodOptional<z.ZodString>;
@@ -195,28 +197,28 @@ export declare const sessionControlSchema: z.ZodObject<{
195
197
  attribution: z.ZodOptional<z.ZodObject<{
196
198
  source: z.ZodOptional<z.ZodEnum<{
197
199
  provider: "provider";
198
- tool: "tool";
199
200
  runtime: "runtime";
201
+ tool: "tool";
200
202
  network: "network";
201
203
  }>>;
202
204
  reason: z.ZodOptional<z.ZodString>;
203
205
  errorPhase: z.ZodOptional<z.ZodEnum<{
204
206
  response: "response";
207
+ connect: "connect";
205
208
  prepare: "prepare";
206
209
  configuration: "configuration";
207
- connect: "connect";
208
210
  stream: "stream";
209
211
  parse: "parse";
210
212
  validation: "validation";
211
213
  unhandled: "unhandled";
212
214
  }>>;
213
215
  exceptionKind: z.ZodOptional<z.ZodEnum<{
216
+ transport: "transport";
214
217
  validation: "validation";
215
218
  api_call: "api_call";
216
219
  generic: "generic";
217
220
  protocol: "protocol";
218
221
  provider_business: "provider_business";
219
- transport: "transport";
220
222
  type_error: "type_error";
221
223
  }>>;
222
224
  providerId: z.ZodOptional<z.ZodString>;
@@ -300,11 +302,11 @@ export declare const sessionActionAvailabilitySchema: z.ZodObject<{
300
302
  export type SessionActionAvailability = z.infer<typeof sessionActionAvailabilitySchema>;
301
303
  export declare const inputRoutingSchema: z.ZodObject<{
302
304
  mode: z.ZodEnum<{
303
- startNow: "startNow";
304
305
  guide: "guide";
306
+ choice: "choice";
307
+ startNow: "startNow";
305
308
  enqueue: "enqueue";
306
309
  reject: "reject";
307
- choice: "choice";
308
310
  }>;
309
311
  reasonCode: z.ZodOptional<z.ZodString>;
310
312
  }, z.core.$strip>;
@@ -343,13 +345,13 @@ export declare const sessionUsageStateSchema: z.ZodObject<{
343
345
  }, z.core.$strict>>;
344
346
  breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
345
347
  source: z.ZodEnum<{
348
+ messages: "messages";
346
349
  system_prompt: "system_prompt";
347
350
  meta_user_context: "meta_user_context";
348
351
  skills: "skills";
349
352
  tool_prompt: "tool_prompt";
350
353
  system_tool_schemas: "system_tool_schemas";
351
354
  mcp_tool_schemas: "mcp_tool_schemas";
352
- messages: "messages";
353
355
  }>;
354
356
  chars: z.ZodNumber;
355
357
  }, z.core.$strict>>>;
@@ -363,6 +365,126 @@ export declare const sessionUsageStateSchema: z.ZodObject<{
363
365
  }, z.core.$strip>;
364
366
  export type SessionUsageState = z.infer<typeof sessionUsageStateSchema>;
365
367
  export declare const queueItemSchema: z.ZodObject<{
368
+ inputOrigin: z.ZodOptional<z.ZodEnum<{
369
+ desktop: "desktop";
370
+ mobile: "mobile";
371
+ }>>;
372
+ botGroupSource: z.ZodOptional<z.ZodObject<{
373
+ botIdentity: z.ZodOptional<z.ZodObject<{
374
+ name: z.ZodString;
375
+ openId: z.ZodOptional<z.ZodString>;
376
+ }, z.core.$strict>>;
377
+ appId: z.ZodOptional<z.ZodString>;
378
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
379
+ type: z.ZodLiteral<"text">;
380
+ text: z.ZodString;
381
+ }, z.core.$strict>, z.ZodObject<{
382
+ type: z.ZodLiteral<"channelMention">;
383
+ refId: z.ZodString;
384
+ name: z.ZodString;
385
+ channel: z.ZodEnum<{
386
+ feishu: "feishu";
387
+ lark: "lark";
388
+ }>;
389
+ targetId: z.ZodString;
390
+ idType: z.ZodLiteral<"open_id">;
391
+ entityType: z.ZodEnum<{
392
+ unknown: "unknown";
393
+ user: "user";
394
+ bot: "bot";
395
+ }>;
396
+ }, z.core.$strict>]>>>;
397
+ authorizationId: z.ZodOptional<z.ZodString>;
398
+ botId: z.ZodString;
399
+ provider: z.ZodEnum<{
400
+ feishu: "feishu";
401
+ lark: "lark";
402
+ }>;
403
+ chatId: z.ZodString;
404
+ threadId: z.ZodOptional<z.ZodString>;
405
+ rootMessageId: z.ZodOptional<z.ZodString>;
406
+ senderId: z.ZodString;
407
+ senderName: z.ZodString;
408
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
409
+ messageId: z.ZodString;
410
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
411
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
412
+ type: z.ZodLiteral<"text">;
413
+ text: z.ZodString;
414
+ }, z.core.$strict>, z.ZodObject<{
415
+ type: z.ZodLiteral<"channelMention">;
416
+ refId: z.ZodString;
417
+ name: z.ZodString;
418
+ channel: z.ZodEnum<{
419
+ feishu: "feishu";
420
+ lark: "lark";
421
+ }>;
422
+ targetId: z.ZodString;
423
+ idType: z.ZodLiteral<"open_id">;
424
+ entityType: z.ZodEnum<{
425
+ unknown: "unknown";
426
+ user: "user";
427
+ bot: "bot";
428
+ }>;
429
+ }, z.core.$strict>]>>>;
430
+ messageId: z.ZodString;
431
+ senderId: z.ZodString;
432
+ senderName: z.ZodString;
433
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
434
+ text: z.ZodString;
435
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
436
+ text: z.ZodString;
437
+ path: z.ZodOptional<z.ZodString>;
438
+ senderName: z.ZodOptional<z.ZodString>;
439
+ senderId: z.ZodOptional<z.ZodString>;
440
+ messageId: z.ZodOptional<z.ZodString>;
441
+ sentAt: z.ZodOptional<z.ZodString>;
442
+ }, z.core.$strip>>>;
443
+ attachmentIndexes: z.ZodArray<z.ZodNumber>;
444
+ }, z.core.$strict>>>;
445
+ topicContext: z.ZodOptional<z.ZodObject<{
446
+ messages: z.ZodArray<z.ZodObject<{
447
+ id: z.ZodString;
448
+ chatId: z.ZodString;
449
+ threadId: z.ZodString;
450
+ senderId: z.ZodString;
451
+ senderName: z.ZodOptional<z.ZodString>;
452
+ parentId: z.ZodOptional<z.ZodString>;
453
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
454
+ name: z.ZodString;
455
+ kind: z.ZodString;
456
+ }, z.core.$strict>>>;
457
+ senderType: z.ZodEnum<{
458
+ user: "user";
459
+ app: "app";
460
+ }>;
461
+ text: z.ZodString;
462
+ createdAt: z.ZodNumber;
463
+ kind: z.ZodString;
464
+ controlCard: z.ZodOptional<z.ZodBoolean>;
465
+ deleted: z.ZodOptional<z.ZodBoolean>;
466
+ }, z.core.$strict>>;
467
+ checkpoint: z.ZodString;
468
+ hasGap: z.ZodBoolean;
469
+ }, z.core.$strict>>;
470
+ topicHistory: z.ZodOptional<z.ZodObject<{
471
+ checkpoint: z.ZodString;
472
+ hasGap: z.ZodBoolean;
473
+ messageCount: z.ZodNumber;
474
+ resourceMessages: z.ZodArray<z.ZodObject<{
475
+ messageId: z.ZodString;
476
+ count: z.ZodNumber;
477
+ }, z.core.$strict>>;
478
+ }, z.core.$strict>>;
479
+ }, z.core.$strict>>;
480
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
481
+ text: z.ZodString;
482
+ path: z.ZodOptional<z.ZodString>;
483
+ senderName: z.ZodOptional<z.ZodString>;
484
+ senderId: z.ZodOptional<z.ZodString>;
485
+ messageId: z.ZodOptional<z.ZodString>;
486
+ sentAt: z.ZodOptional<z.ZodString>;
487
+ }, z.core.$strip>>>;
366
488
  sourceCommandId: z.ZodString;
367
489
  queueItemId: z.ZodString;
368
490
  clientId: z.ZodString;
@@ -377,6 +499,11 @@ export declare const queueItemSchema: z.ZodObject<{
377
499
  fileName: z.ZodString;
378
500
  mime: z.ZodString;
379
501
  bytes: z.ZodNumber;
502
+ sourceKind: z.ZodOptional<z.ZodEnum<{
503
+ "clipboard-text": "clipboard-text";
504
+ "topic-history": "topic-history";
505
+ }>>;
506
+ messageCount: z.ZodOptional<z.ZodNumber>;
380
507
  previewRef: z.ZodOptional<z.ZodString>;
381
508
  }, z.core.$strict>>>;
382
509
  modelSelection: z.ZodOptional<z.ZodObject<{
@@ -391,6 +518,7 @@ export declare const queueItemSchema: z.ZodObject<{
391
518
  build: "build";
392
519
  edit: "edit";
393
520
  yolo: "yolo";
521
+ guarded: "guarded";
394
522
  }>>;
395
523
  planEnabled: z.ZodOptional<z.ZodBoolean>;
396
524
  sharedContextRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -400,14 +528,14 @@ export declare const queueItemSchema: z.ZodObject<{
400
528
  delivery: z.ZodObject<{
401
529
  requested: z.ZodEnum<{
402
530
  auto: "auto";
403
- startNow: "startNow";
404
531
  queue: "queue";
405
532
  guide: "guide";
533
+ startNow: "startNow";
406
534
  }>;
407
535
  admitted: z.ZodEnum<{
408
- startNow: "startNow";
409
536
  queue: "queue";
410
537
  guide: "guide";
538
+ startNow: "startNow";
411
539
  }>;
412
540
  fallbackReasonCode: z.ZodOptional<z.ZodString>;
413
541
  }, z.core.$strict>;
@@ -426,16 +554,47 @@ export declare const queueItemSchema: z.ZodObject<{
426
554
  reasonCode: z.ZodOptional<z.ZodString>;
427
555
  }, z.core.$strict>;
428
556
  admittedAt: z.ZodNumber;
557
+ highspeed: z.ZodOptional<z.ZodObject<{
558
+ schemaVersion: z.ZodLiteral<1>;
559
+ cardId: z.ZodString;
560
+ taskId: z.ZodString;
561
+ provider: z.ZodString;
562
+ model: z.ZodString;
563
+ issuedAt: z.ZodNumber;
564
+ expiresAt: z.ZodNumber;
565
+ regularTps: z.ZodOptional<z.ZodNumber>;
566
+ outputTokens: z.ZodOptional<z.ZodNumber>;
567
+ durationMs: z.ZodOptional<z.ZodNumber>;
568
+ highspeedTps: z.ZodOptional<z.ZodNumber>;
569
+ savedDurationMs: z.ZodOptional<z.ZodNumber>;
570
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
571
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
572
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
573
+ fallbackAt: z.ZodOptional<z.ZodNumber>;
574
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
575
+ highspeed_card_expired: "highspeed_card_expired";
576
+ highspeed_request_failed: "highspeed_request_failed";
577
+ }>>;
578
+ }, z.core.$strict>>;
429
579
  provenance: z.ZodOptional<z.ZodObject<{
430
580
  sourceCommandId: z.ZodString;
431
581
  queueItemId: z.ZodOptional<z.ZodString>;
432
582
  clientId: z.ZodOptional<z.ZodString>;
433
583
  }, z.core.$strict>>;
584
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
585
+ kind: z.ZodLiteral<"pluginUi">;
586
+ pluginId: z.ZodString;
587
+ toolCallId: z.ZodString;
588
+ }, z.core.$strict>, z.ZodObject<{
589
+ kind: z.ZodLiteral<"genUi">;
590
+ path: z.ZodString;
591
+ title: z.ZodOptional<z.ZodString>;
592
+ }, z.core.$strict>], "kind">>;
434
593
  dispatch: z.ZodObject<{
435
594
  reservationId: z.ZodOptional<z.ZodString>;
436
595
  state: z.ZodEnum<{
437
- queued: "queued";
438
596
  reserved: "reserved";
597
+ queued: "queued";
439
598
  promoting: "promoting";
440
599
  }>;
441
600
  }, z.core.$strict>;
@@ -444,6 +603,126 @@ export declare const queueItemSchema: z.ZodObject<{
444
603
  export type QueueItem = z.infer<typeof queueItemSchema>;
445
604
  export declare const queueStateSchema: z.ZodObject<{
446
605
  items: z.ZodArray<z.ZodObject<{
606
+ inputOrigin: z.ZodOptional<z.ZodEnum<{
607
+ desktop: "desktop";
608
+ mobile: "mobile";
609
+ }>>;
610
+ botGroupSource: z.ZodOptional<z.ZodObject<{
611
+ botIdentity: z.ZodOptional<z.ZodObject<{
612
+ name: z.ZodString;
613
+ openId: z.ZodOptional<z.ZodString>;
614
+ }, z.core.$strict>>;
615
+ appId: z.ZodOptional<z.ZodString>;
616
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
617
+ type: z.ZodLiteral<"text">;
618
+ text: z.ZodString;
619
+ }, z.core.$strict>, z.ZodObject<{
620
+ type: z.ZodLiteral<"channelMention">;
621
+ refId: z.ZodString;
622
+ name: z.ZodString;
623
+ channel: z.ZodEnum<{
624
+ feishu: "feishu";
625
+ lark: "lark";
626
+ }>;
627
+ targetId: z.ZodString;
628
+ idType: z.ZodLiteral<"open_id">;
629
+ entityType: z.ZodEnum<{
630
+ unknown: "unknown";
631
+ user: "user";
632
+ bot: "bot";
633
+ }>;
634
+ }, z.core.$strict>]>>>;
635
+ authorizationId: z.ZodOptional<z.ZodString>;
636
+ botId: z.ZodString;
637
+ provider: z.ZodEnum<{
638
+ feishu: "feishu";
639
+ lark: "lark";
640
+ }>;
641
+ chatId: z.ZodString;
642
+ threadId: z.ZodOptional<z.ZodString>;
643
+ rootMessageId: z.ZodOptional<z.ZodString>;
644
+ senderId: z.ZodString;
645
+ senderName: z.ZodString;
646
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
647
+ messageId: z.ZodString;
648
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
649
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
650
+ type: z.ZodLiteral<"text">;
651
+ text: z.ZodString;
652
+ }, z.core.$strict>, z.ZodObject<{
653
+ type: z.ZodLiteral<"channelMention">;
654
+ refId: z.ZodString;
655
+ name: z.ZodString;
656
+ channel: z.ZodEnum<{
657
+ feishu: "feishu";
658
+ lark: "lark";
659
+ }>;
660
+ targetId: z.ZodString;
661
+ idType: z.ZodLiteral<"open_id">;
662
+ entityType: z.ZodEnum<{
663
+ unknown: "unknown";
664
+ user: "user";
665
+ bot: "bot";
666
+ }>;
667
+ }, z.core.$strict>]>>>;
668
+ messageId: z.ZodString;
669
+ senderId: z.ZodString;
670
+ senderName: z.ZodString;
671
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
672
+ text: z.ZodString;
673
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
674
+ text: z.ZodString;
675
+ path: z.ZodOptional<z.ZodString>;
676
+ senderName: z.ZodOptional<z.ZodString>;
677
+ senderId: z.ZodOptional<z.ZodString>;
678
+ messageId: z.ZodOptional<z.ZodString>;
679
+ sentAt: z.ZodOptional<z.ZodString>;
680
+ }, z.core.$strip>>>;
681
+ attachmentIndexes: z.ZodArray<z.ZodNumber>;
682
+ }, z.core.$strict>>>;
683
+ topicContext: z.ZodOptional<z.ZodObject<{
684
+ messages: z.ZodArray<z.ZodObject<{
685
+ id: z.ZodString;
686
+ chatId: z.ZodString;
687
+ threadId: z.ZodString;
688
+ senderId: z.ZodString;
689
+ senderName: z.ZodOptional<z.ZodString>;
690
+ parentId: z.ZodOptional<z.ZodString>;
691
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
692
+ name: z.ZodString;
693
+ kind: z.ZodString;
694
+ }, z.core.$strict>>>;
695
+ senderType: z.ZodEnum<{
696
+ user: "user";
697
+ app: "app";
698
+ }>;
699
+ text: z.ZodString;
700
+ createdAt: z.ZodNumber;
701
+ kind: z.ZodString;
702
+ controlCard: z.ZodOptional<z.ZodBoolean>;
703
+ deleted: z.ZodOptional<z.ZodBoolean>;
704
+ }, z.core.$strict>>;
705
+ checkpoint: z.ZodString;
706
+ hasGap: z.ZodBoolean;
707
+ }, z.core.$strict>>;
708
+ topicHistory: z.ZodOptional<z.ZodObject<{
709
+ checkpoint: z.ZodString;
710
+ hasGap: z.ZodBoolean;
711
+ messageCount: z.ZodNumber;
712
+ resourceMessages: z.ZodArray<z.ZodObject<{
713
+ messageId: z.ZodString;
714
+ count: z.ZodNumber;
715
+ }, z.core.$strict>>;
716
+ }, z.core.$strict>>;
717
+ }, z.core.$strict>>;
718
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
719
+ text: z.ZodString;
720
+ path: z.ZodOptional<z.ZodString>;
721
+ senderName: z.ZodOptional<z.ZodString>;
722
+ senderId: z.ZodOptional<z.ZodString>;
723
+ messageId: z.ZodOptional<z.ZodString>;
724
+ sentAt: z.ZodOptional<z.ZodString>;
725
+ }, z.core.$strip>>>;
447
726
  sourceCommandId: z.ZodString;
448
727
  queueItemId: z.ZodString;
449
728
  clientId: z.ZodString;
@@ -458,6 +737,11 @@ export declare const queueStateSchema: z.ZodObject<{
458
737
  fileName: z.ZodString;
459
738
  mime: z.ZodString;
460
739
  bytes: z.ZodNumber;
740
+ sourceKind: z.ZodOptional<z.ZodEnum<{
741
+ "clipboard-text": "clipboard-text";
742
+ "topic-history": "topic-history";
743
+ }>>;
744
+ messageCount: z.ZodOptional<z.ZodNumber>;
461
745
  previewRef: z.ZodOptional<z.ZodString>;
462
746
  }, z.core.$strict>>>;
463
747
  modelSelection: z.ZodOptional<z.ZodObject<{
@@ -472,6 +756,7 @@ export declare const queueStateSchema: z.ZodObject<{
472
756
  build: "build";
473
757
  edit: "edit";
474
758
  yolo: "yolo";
759
+ guarded: "guarded";
475
760
  }>>;
476
761
  planEnabled: z.ZodOptional<z.ZodBoolean>;
477
762
  sharedContextRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -481,14 +766,14 @@ export declare const queueStateSchema: z.ZodObject<{
481
766
  delivery: z.ZodObject<{
482
767
  requested: z.ZodEnum<{
483
768
  auto: "auto";
484
- startNow: "startNow";
485
769
  queue: "queue";
486
770
  guide: "guide";
771
+ startNow: "startNow";
487
772
  }>;
488
773
  admitted: z.ZodEnum<{
489
- startNow: "startNow";
490
774
  queue: "queue";
491
775
  guide: "guide";
776
+ startNow: "startNow";
492
777
  }>;
493
778
  fallbackReasonCode: z.ZodOptional<z.ZodString>;
494
779
  }, z.core.$strict>;
@@ -507,16 +792,47 @@ export declare const queueStateSchema: z.ZodObject<{
507
792
  reasonCode: z.ZodOptional<z.ZodString>;
508
793
  }, z.core.$strict>;
509
794
  admittedAt: z.ZodNumber;
795
+ highspeed: z.ZodOptional<z.ZodObject<{
796
+ schemaVersion: z.ZodLiteral<1>;
797
+ cardId: z.ZodString;
798
+ taskId: z.ZodString;
799
+ provider: z.ZodString;
800
+ model: z.ZodString;
801
+ issuedAt: z.ZodNumber;
802
+ expiresAt: z.ZodNumber;
803
+ regularTps: z.ZodOptional<z.ZodNumber>;
804
+ outputTokens: z.ZodOptional<z.ZodNumber>;
805
+ durationMs: z.ZodOptional<z.ZodNumber>;
806
+ highspeedTps: z.ZodOptional<z.ZodNumber>;
807
+ savedDurationMs: z.ZodOptional<z.ZodNumber>;
808
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
809
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
810
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
811
+ fallbackAt: z.ZodOptional<z.ZodNumber>;
812
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
813
+ highspeed_card_expired: "highspeed_card_expired";
814
+ highspeed_request_failed: "highspeed_request_failed";
815
+ }>>;
816
+ }, z.core.$strict>>;
510
817
  provenance: z.ZodOptional<z.ZodObject<{
511
818
  sourceCommandId: z.ZodString;
512
819
  queueItemId: z.ZodOptional<z.ZodString>;
513
820
  clientId: z.ZodOptional<z.ZodString>;
514
821
  }, z.core.$strict>>;
822
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
823
+ kind: z.ZodLiteral<"pluginUi">;
824
+ pluginId: z.ZodString;
825
+ toolCallId: z.ZodString;
826
+ }, z.core.$strict>, z.ZodObject<{
827
+ kind: z.ZodLiteral<"genUi">;
828
+ path: z.ZodString;
829
+ title: z.ZodOptional<z.ZodString>;
830
+ }, z.core.$strict>], "kind">>;
515
831
  dispatch: z.ZodObject<{
516
832
  reservationId: z.ZodOptional<z.ZodString>;
517
833
  state: z.ZodEnum<{
518
- queued: "queued";
519
834
  reserved: "reserved";
835
+ queued: "queued";
520
836
  promoting: "promoting";
521
837
  }>;
522
838
  }, z.core.$strict>;
@@ -525,8 +841,8 @@ export declare const queueStateSchema: z.ZodObject<{
525
841
  autoDrain: z.ZodBoolean;
526
842
  pauseReason: z.ZodOptional<z.ZodEnum<{
527
843
  error: "error";
528
- stopped: "stopped";
529
844
  manual: "manual";
845
+ stopped: "stopped";
530
846
  }>>;
531
847
  }, z.core.$strip>;
532
848
  export type QueueState = z.infer<typeof queueStateSchema>;
@@ -575,8 +891,8 @@ export declare const permissionRequestPayloadSchema: z.ZodObject<{
575
891
  }, z.core.$strict>, z.ZodObject<{
576
892
  kind: z.ZodLiteral<"respond_to_coordinator">;
577
893
  status: z.ZodEnum<{
578
- failed: "failed";
579
894
  success: "success";
895
+ failed: "failed";
580
896
  }>;
581
897
  }, z.core.$strict>, z.ZodObject<{
582
898
  kind: z.ZodLiteral<"mcp_tool">;
@@ -585,10 +901,34 @@ export declare const permissionRequestPayloadSchema: z.ZodObject<{
585
901
  description: z.ZodOptional<z.ZodString>;
586
902
  unavailable: z.ZodOptional<z.ZodObject<{
587
903
  code: z.ZodEnum<{
588
- quota_exceeded: "quota_exceeded";
589
904
  coding_plan_required: "coding_plan_required";
905
+ quota_exceeded: "quota_exceeded";
590
906
  }>;
591
907
  }, z.core.$strict>>;
908
+ ui: z.ZodOptional<z.ZodObject<{
909
+ pluginId: z.ZodString;
910
+ resourceUri: z.ZodString;
911
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
912
+ inline: "inline";
913
+ fullscreen: "fullscreen";
914
+ pip: "pip";
915
+ }>>;
916
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
917
+ csp: z.ZodOptional<z.ZodObject<{
918
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
919
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
920
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
921
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
922
+ }, z.core.$strict>>;
923
+ structuredContent: z.ZodOptional<z.ZodString>;
924
+ widgetMeta: z.ZodOptional<z.ZodString>;
925
+ content: z.ZodOptional<z.ZodString>;
926
+ truncated: z.ZodOptional<z.ZodBoolean>;
927
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
928
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
929
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
930
+ surface: z.ZodOptional<z.ZodString>;
931
+ }, z.core.$strict>>;
592
932
  }, z.core.$strict>, z.ZodObject<{
593
933
  kind: z.ZodLiteral<"create_workflow">;
594
934
  ok: z.ZodBoolean;
@@ -605,6 +945,7 @@ export declare const permissionRequestPayloadSchema: z.ZodObject<{
605
945
  kind: z.ZodEnum<{
606
946
  ask: "ask";
607
947
  "world-read": "world-read";
948
+ hole: "hole";
608
949
  }>;
609
950
  label: z.ZodString;
610
951
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -621,6 +962,7 @@ export declare const permissionRequestPayloadSchema: z.ZodObject<{
621
962
  stack: "stack";
622
963
  serial: "serial";
623
964
  }>>;
965
+ fill: z.ZodOptional<z.ZodString>;
624
966
  }, z.core.$strict>>;
625
967
  lanes: z.ZodArray<z.ZodObject<{
626
968
  id: z.ZodString;
@@ -655,33 +997,51 @@ export declare const permissionRequestPayloadSchema: z.ZodObject<{
655
997
  line: z.ZodOptional<z.ZodNumber>;
656
998
  column: z.ZodOptional<z.ZodNumber>;
657
999
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
1000
+ fill: z.ZodOptional<z.ZodString>;
658
1001
  }, z.core.$strict>>>;
659
1002
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
660
1003
  from: z.ZodString;
661
1004
  to: z.ZodString;
662
1005
  back: z.ZodOptional<z.ZodLiteral<true>>;
663
1006
  }, z.core.$strict>>>;
1007
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
1008
+ from: z.ZodString;
1009
+ to: z.ZodString;
1010
+ }, z.core.$strict>>>;
1011
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1012
+ siteId: z.ZodString;
1013
+ name: z.ZodString;
1014
+ type: z.ZodString;
1015
+ phase: z.ZodOptional<z.ZodString>;
1016
+ tail: z.ZodOptional<z.ZodBoolean>;
1017
+ }, z.core.$strict>>>;
664
1018
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
665
1019
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
666
1020
  truncated: z.ZodOptional<z.ZodBoolean>;
667
1021
  }, z.core.$strict>>;
668
1022
  truncated: z.ZodOptional<z.ZodBoolean>;
1023
+ fill: z.ZodOptional<z.ZodObject<{
1024
+ siteId: z.ZodString;
1025
+ name: z.ZodString;
1026
+ draftPath: z.ZodOptional<z.ZodString>;
1027
+ line: z.ZodOptional<z.ZodNumber>;
1028
+ }, z.core.$strict>>;
669
1029
  }, z.core.$strict>, z.ZodObject<{
670
1030
  kind: z.ZodLiteral<"get_workflow_run">;
671
1031
  runId: z.ZodString;
672
1032
  label: z.ZodString;
673
1033
  status: z.ZodEnum<{
1034
+ completed: "completed";
674
1035
  pending: "pending";
675
1036
  running: "running";
676
- completed: "completed";
677
- stopped: "stopped";
678
1037
  errored: "errored";
1038
+ stopped: "stopped";
679
1039
  }>;
680
1040
  stopReason: z.ZodOptional<z.ZodEnum<{
681
- interrupted: "interrupted";
682
1041
  user: "user";
683
1042
  model: "model";
684
1043
  provider: "provider";
1044
+ interrupted: "interrupted";
685
1045
  superseded: "superseded";
686
1046
  }>>;
687
1047
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -697,8 +1057,8 @@ export declare const permissionRequestPayloadSchema: z.ZodObject<{
697
1057
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
698
1058
  name: z.ZodString;
699
1059
  state: z.ZodEnum<{
700
- done: "done";
701
1060
  current: "current";
1061
+ done: "done";
702
1062
  ahead: "ahead";
703
1063
  unfinished: "unfinished";
704
1064
  }>;
@@ -714,11 +1074,11 @@ export declare const permissionRequestPayloadSchema: z.ZodObject<{
714
1074
  name: z.ZodOptional<z.ZodString>;
715
1075
  state: z.ZodEnum<{
716
1076
  failed: "failed";
1077
+ idle: "idle";
1078
+ waiting: "waiting";
717
1079
  done: "done";
718
1080
  unfinished: "unfinished";
719
- idle: "idle";
720
1081
  executing: "executing";
721
- waiting: "waiting";
722
1082
  parked: "parked";
723
1083
  }>;
724
1084
  phaseName: z.ZodOptional<z.ZodString>;
@@ -779,21 +1139,21 @@ export declare const permissionRequestPayloadSchema: z.ZodObject<{
779
1139
  runId: z.ZodString;
780
1140
  label: z.ZodString;
781
1141
  labelSource: z.ZodEnum<{
782
- script: "script";
783
1142
  name: "name";
1143
+ script: "script";
784
1144
  }>;
785
1145
  status: z.ZodEnum<{
1146
+ completed: "completed";
786
1147
  pending: "pending";
787
1148
  running: "running";
788
- completed: "completed";
789
- stopped: "stopped";
790
1149
  errored: "errored";
1150
+ stopped: "stopped";
791
1151
  }>;
792
1152
  stopReason: z.ZodOptional<z.ZodEnum<{
793
- interrupted: "interrupted";
794
1153
  user: "user";
795
1154
  model: "model";
796
1155
  provider: "provider";
1156
+ interrupted: "interrupted";
797
1157
  superseded: "superseded";
798
1158
  }>>;
799
1159
  ownedByThisSession: z.ZodBoolean;
@@ -986,9 +1346,9 @@ export type InteractionAutoResolution = z.infer<typeof interactionAutoResolution
986
1346
  export declare const pendingInteractionSchema: z.ZodObject<{
987
1347
  interactionId: z.ZodString;
988
1348
  kind: z.ZodEnum<{
1349
+ permission: "permission";
989
1350
  userInput: "userInput";
990
1351
  workspaceHookReview: "workspaceHookReview";
991
- permission: "permission";
992
1352
  }>;
993
1353
  anchorRowId: z.ZodNullable<z.ZodNumber>;
994
1354
  createdAt: z.ZodNumber;
@@ -1048,8 +1408,8 @@ export declare const pendingInteractionSchema: z.ZodObject<{
1048
1408
  }, z.core.$strict>, z.ZodObject<{
1049
1409
  kind: z.ZodLiteral<"respond_to_coordinator">;
1050
1410
  status: z.ZodEnum<{
1051
- failed: "failed";
1052
1411
  success: "success";
1412
+ failed: "failed";
1053
1413
  }>;
1054
1414
  }, z.core.$strict>, z.ZodObject<{
1055
1415
  kind: z.ZodLiteral<"mcp_tool">;
@@ -1058,10 +1418,34 @@ export declare const pendingInteractionSchema: z.ZodObject<{
1058
1418
  description: z.ZodOptional<z.ZodString>;
1059
1419
  unavailable: z.ZodOptional<z.ZodObject<{
1060
1420
  code: z.ZodEnum<{
1061
- quota_exceeded: "quota_exceeded";
1062
1421
  coding_plan_required: "coding_plan_required";
1422
+ quota_exceeded: "quota_exceeded";
1063
1423
  }>;
1064
1424
  }, z.core.$strict>>;
1425
+ ui: z.ZodOptional<z.ZodObject<{
1426
+ pluginId: z.ZodString;
1427
+ resourceUri: z.ZodString;
1428
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
1429
+ inline: "inline";
1430
+ fullscreen: "fullscreen";
1431
+ pip: "pip";
1432
+ }>>;
1433
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
1434
+ csp: z.ZodOptional<z.ZodObject<{
1435
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
1436
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
1437
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
1438
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
1439
+ }, z.core.$strict>>;
1440
+ structuredContent: z.ZodOptional<z.ZodString>;
1441
+ widgetMeta: z.ZodOptional<z.ZodString>;
1442
+ content: z.ZodOptional<z.ZodString>;
1443
+ truncated: z.ZodOptional<z.ZodBoolean>;
1444
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
1445
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
1446
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
1447
+ surface: z.ZodOptional<z.ZodString>;
1448
+ }, z.core.$strict>>;
1065
1449
  }, z.core.$strict>, z.ZodObject<{
1066
1450
  kind: z.ZodLiteral<"create_workflow">;
1067
1451
  ok: z.ZodBoolean;
@@ -1078,6 +1462,7 @@ export declare const pendingInteractionSchema: z.ZodObject<{
1078
1462
  kind: z.ZodEnum<{
1079
1463
  ask: "ask";
1080
1464
  "world-read": "world-read";
1465
+ hole: "hole";
1081
1466
  }>;
1082
1467
  label: z.ZodString;
1083
1468
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -1094,6 +1479,7 @@ export declare const pendingInteractionSchema: z.ZodObject<{
1094
1479
  stack: "stack";
1095
1480
  serial: "serial";
1096
1481
  }>>;
1482
+ fill: z.ZodOptional<z.ZodString>;
1097
1483
  }, z.core.$strict>>;
1098
1484
  lanes: z.ZodArray<z.ZodObject<{
1099
1485
  id: z.ZodString;
@@ -1128,33 +1514,51 @@ export declare const pendingInteractionSchema: z.ZodObject<{
1128
1514
  line: z.ZodOptional<z.ZodNumber>;
1129
1515
  column: z.ZodOptional<z.ZodNumber>;
1130
1516
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
1517
+ fill: z.ZodOptional<z.ZodString>;
1131
1518
  }, z.core.$strict>>>;
1132
1519
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1133
1520
  from: z.ZodString;
1134
1521
  to: z.ZodString;
1135
1522
  back: z.ZodOptional<z.ZodLiteral<true>>;
1136
1523
  }, z.core.$strict>>>;
1524
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
1525
+ from: z.ZodString;
1526
+ to: z.ZodString;
1527
+ }, z.core.$strict>>>;
1528
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1529
+ siteId: z.ZodString;
1530
+ name: z.ZodString;
1531
+ type: z.ZodString;
1532
+ phase: z.ZodOptional<z.ZodString>;
1533
+ tail: z.ZodOptional<z.ZodBoolean>;
1534
+ }, z.core.$strict>>>;
1137
1535
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1138
1536
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
1139
1537
  truncated: z.ZodOptional<z.ZodBoolean>;
1140
1538
  }, z.core.$strict>>;
1141
1539
  truncated: z.ZodOptional<z.ZodBoolean>;
1540
+ fill: z.ZodOptional<z.ZodObject<{
1541
+ siteId: z.ZodString;
1542
+ name: z.ZodString;
1543
+ draftPath: z.ZodOptional<z.ZodString>;
1544
+ line: z.ZodOptional<z.ZodNumber>;
1545
+ }, z.core.$strict>>;
1142
1546
  }, z.core.$strict>, z.ZodObject<{
1143
1547
  kind: z.ZodLiteral<"get_workflow_run">;
1144
1548
  runId: z.ZodString;
1145
1549
  label: z.ZodString;
1146
1550
  status: z.ZodEnum<{
1551
+ completed: "completed";
1147
1552
  pending: "pending";
1148
1553
  running: "running";
1149
- completed: "completed";
1150
- stopped: "stopped";
1151
1554
  errored: "errored";
1555
+ stopped: "stopped";
1152
1556
  }>;
1153
1557
  stopReason: z.ZodOptional<z.ZodEnum<{
1154
- interrupted: "interrupted";
1155
1558
  user: "user";
1156
1559
  model: "model";
1157
1560
  provider: "provider";
1561
+ interrupted: "interrupted";
1158
1562
  superseded: "superseded";
1159
1563
  }>>;
1160
1564
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -1170,8 +1574,8 @@ export declare const pendingInteractionSchema: z.ZodObject<{
1170
1574
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
1171
1575
  name: z.ZodString;
1172
1576
  state: z.ZodEnum<{
1173
- done: "done";
1174
1577
  current: "current";
1578
+ done: "done";
1175
1579
  ahead: "ahead";
1176
1580
  unfinished: "unfinished";
1177
1581
  }>;
@@ -1187,11 +1591,11 @@ export declare const pendingInteractionSchema: z.ZodObject<{
1187
1591
  name: z.ZodOptional<z.ZodString>;
1188
1592
  state: z.ZodEnum<{
1189
1593
  failed: "failed";
1594
+ idle: "idle";
1595
+ waiting: "waiting";
1190
1596
  done: "done";
1191
1597
  unfinished: "unfinished";
1192
- idle: "idle";
1193
1598
  executing: "executing";
1194
- waiting: "waiting";
1195
1599
  parked: "parked";
1196
1600
  }>;
1197
1601
  phaseName: z.ZodOptional<z.ZodString>;
@@ -1252,21 +1656,21 @@ export declare const pendingInteractionSchema: z.ZodObject<{
1252
1656
  runId: z.ZodString;
1253
1657
  label: z.ZodString;
1254
1658
  labelSource: z.ZodEnum<{
1255
- script: "script";
1256
1659
  name: "name";
1660
+ script: "script";
1257
1661
  }>;
1258
1662
  status: z.ZodEnum<{
1663
+ completed: "completed";
1259
1664
  pending: "pending";
1260
1665
  running: "running";
1261
- completed: "completed";
1262
- stopped: "stopped";
1263
1666
  errored: "errored";
1667
+ stopped: "stopped";
1264
1668
  }>;
1265
1669
  stopReason: z.ZodOptional<z.ZodEnum<{
1266
- interrupted: "interrupted";
1267
1670
  user: "user";
1268
1671
  model: "model";
1269
1672
  provider: "provider";
1673
+ interrupted: "interrupted";
1270
1674
  superseded: "superseded";
1271
1675
  }>>;
1272
1676
  ownedByThisSession: z.ZodBoolean;
@@ -1465,8 +1869,8 @@ export declare const pendingInteractionSchema: z.ZodObject<{
1465
1869
  resolvedTimeoutMs: z.ZodNumber;
1466
1870
  resolvedMaxOutputBytes: z.ZodNumber;
1467
1871
  executionMode: z.ZodEnum<{
1468
- foreground: "foreground";
1469
1872
  background: "background";
1873
+ foreground: "foreground";
1470
1874
  }>;
1471
1875
  configuredEnabled: z.ZodBoolean;
1472
1876
  editable: z.ZodBoolean;
@@ -1489,8 +1893,8 @@ export declare const commandStateSummarySchema: z.ZodObject<{
1489
1893
  clientId: z.ZodString;
1490
1894
  type: z.ZodString;
1491
1895
  state: z.ZodEnum<{
1492
- executing: "executing";
1493
1896
  accepted: "accepted";
1897
+ executing: "executing";
1494
1898
  }>;
1495
1899
  at: z.ZodNumber;
1496
1900
  }, z.core.$strip>;
@@ -1504,9 +1908,9 @@ export declare const backgroundWorkSummarySchema: z.ZodObject<{
1504
1908
  }>;
1505
1909
  title: z.ZodString;
1506
1910
  status: z.ZodEnum<{
1507
- running: "running";
1508
- failed: "failed";
1509
1911
  cancelled: "cancelled";
1912
+ failed: "failed";
1913
+ running: "running";
1510
1914
  resultPending: "resultPending";
1511
1915
  }>;
1512
1916
  startedAt: z.ZodNumber;
@@ -1556,8 +1960,8 @@ export declare const planItemSchema: z.ZodObject<{
1556
1960
  id: z.ZodString;
1557
1961
  content: z.ZodString;
1558
1962
  status: z.ZodEnum<{
1559
- pending: "pending";
1560
1963
  completed: "completed";
1964
+ pending: "pending";
1561
1965
  inProgress: "inProgress";
1562
1966
  }>;
1563
1967
  }, z.core.$strip>;
@@ -1568,8 +1972,8 @@ export declare const goalIterationStateSchema: z.ZodObject<{
1568
1972
  id: z.ZodString;
1569
1973
  content: z.ZodString;
1570
1974
  status: z.ZodEnum<{
1571
- pending: "pending";
1572
1975
  completed: "completed";
1976
+ pending: "pending";
1573
1977
  inProgress: "inProgress";
1574
1978
  }>;
1575
1979
  }, z.core.$strip>>;
@@ -1584,8 +1988,8 @@ export declare const goalStateSchema: z.ZodObject<{
1584
1988
  activeRunStartedAtMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1585
1989
  status: z.ZodEnum<{
1586
1990
  failed: "failed";
1587
- active: "active";
1588
1991
  paused: "paused";
1992
+ active: "active";
1589
1993
  notSatisfied: "notSatisfied";
1590
1994
  verifying: "verifying";
1591
1995
  verified: "verified";
@@ -1609,8 +2013,8 @@ export declare const goalStateSchema: z.ZodObject<{
1609
2013
  id: z.ZodString;
1610
2014
  content: z.ZodString;
1611
2015
  status: z.ZodEnum<{
1612
- pending: "pending";
1613
2016
  completed: "completed";
2017
+ pending: "pending";
1614
2018
  inProgress: "inProgress";
1615
2019
  }>;
1616
2020
  }, z.core.$strip>>;
@@ -1623,8 +2027,8 @@ export declare const planStateSchema: z.ZodObject<{
1623
2027
  id: z.ZodString;
1624
2028
  content: z.ZodString;
1625
2029
  status: z.ZodEnum<{
1626
- pending: "pending";
1627
2030
  completed: "completed";
2031
+ pending: "pending";
1628
2032
  inProgress: "inProgress";
1629
2033
  }>;
1630
2034
  }, z.core.$strip>>;
@@ -1648,14 +2052,18 @@ export declare const rowsWindowSchema: z.ZodObject<{
1648
2052
  sourceCommandId: z.ZodOptional<z.ZodString>;
1649
2053
  historyRoundCount: z.ZodOptional<z.ZodNumber>;
1650
2054
  state: z.ZodEnum<{
1651
- running: "running";
1652
2055
  failed: "failed";
2056
+ running: "running";
1653
2057
  completedSuccess: "completedSuccess";
1654
2058
  completedInterrupted: "completedInterrupted";
1655
2059
  }>;
1656
2060
  startedAt: z.ZodNumber;
1657
2061
  endedAt: z.ZodOptional<z.ZodNumber>;
1658
2062
  activeMs: z.ZodOptional<z.ZodNumber>;
2063
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2064
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
2065
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
2066
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
1659
2067
  workSegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1660
2068
  segmentId: z.ZodString;
1661
2069
  triggerEntityId: z.ZodOptional<z.ZodString>;
@@ -1675,21 +2083,21 @@ export declare const rowsWindowSchema: z.ZodObject<{
1675
2083
  kind: z.ZodLiteral<"terminal">;
1676
2084
  status: z.ZodEnum<{
1677
2085
  completed: "completed";
1678
- stopped: "stopped";
1679
2086
  errored: "errored";
2087
+ stopped: "stopped";
1680
2088
  }>;
1681
2089
  stopReason: z.ZodOptional<z.ZodEnum<{
1682
- interrupted: "interrupted";
1683
2090
  user: "user";
1684
2091
  model: "model";
1685
2092
  provider: "provider";
2093
+ interrupted: "interrupted";
1686
2094
  superseded: "superseded";
1687
2095
  }>>;
1688
2096
  summary: z.ZodString;
1689
2097
  result: z.ZodOptional<z.ZodString>;
1690
2098
  resultForm: z.ZodOptional<z.ZodEnum<{
1691
- prose: "prose";
1692
2099
  json: "json";
2100
+ prose: "prose";
1693
2101
  }>>;
1694
2102
  resultTruncated: z.ZodOptional<z.ZodLiteral<true>>;
1695
2103
  error: z.ZodOptional<z.ZodString>;
@@ -1723,6 +2131,18 @@ export declare const rowsWindowSchema: z.ZodObject<{
1723
2131
  question: z.ZodString;
1724
2132
  context: z.ZodOptional<z.ZodString>;
1725
2133
  askedAt: z.ZodOptional<z.ZodNumber>;
2134
+ }, z.core.$strip>, z.ZodObject<{
2135
+ kind: z.ZodLiteral<"hole">;
2136
+ siteId: z.ZodString;
2137
+ ordinal: z.ZodNumber;
2138
+ name: z.ZodString;
2139
+ type: z.ZodString;
2140
+ prompt: z.ZodOptional<z.ZodString>;
2141
+ draftPath: z.ZodOptional<z.ZodString>;
2142
+ line: z.ZodOptional<z.ZodNumber>;
2143
+ before: z.ZodOptional<z.ZodString>;
2144
+ after: z.ZodOptional<z.ZodString>;
2145
+ reachedAt: z.ZodOptional<z.ZodNumber>;
1726
2146
  }, z.core.$strip>, z.ZodObject<{
1727
2147
  kind: z.ZodLiteral<"stall">;
1728
2148
  sinceMs: z.ZodNumber;
@@ -1757,6 +2177,7 @@ export declare const rowsWindowSchema: z.ZodObject<{
1757
2177
  kind: z.ZodEnum<{
1758
2178
  ask: "ask";
1759
2179
  "world-read": "world-read";
2180
+ hole: "hole";
1760
2181
  }>;
1761
2182
  label: z.ZodString;
1762
2183
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -1773,6 +2194,7 @@ export declare const rowsWindowSchema: z.ZodObject<{
1773
2194
  stack: "stack";
1774
2195
  serial: "serial";
1775
2196
  }>>;
2197
+ fill: z.ZodOptional<z.ZodString>;
1776
2198
  }, z.core.$strict>>;
1777
2199
  lanes: z.ZodArray<z.ZodObject<{
1778
2200
  id: z.ZodString;
@@ -1807,17 +2229,35 @@ export declare const rowsWindowSchema: z.ZodObject<{
1807
2229
  line: z.ZodOptional<z.ZodNumber>;
1808
2230
  column: z.ZodOptional<z.ZodNumber>;
1809
2231
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
2232
+ fill: z.ZodOptional<z.ZodString>;
1810
2233
  }, z.core.$strict>>>;
1811
2234
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1812
2235
  from: z.ZodString;
1813
2236
  to: z.ZodString;
1814
2237
  back: z.ZodOptional<z.ZodLiteral<true>>;
1815
2238
  }, z.core.$strict>>>;
1816
- exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1817
- sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
2239
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
2240
+ from: z.ZodString;
2241
+ to: z.ZodString;
2242
+ }, z.core.$strict>>>;
2243
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2244
+ siteId: z.ZodString;
2245
+ name: z.ZodString;
2246
+ type: z.ZodString;
2247
+ phase: z.ZodOptional<z.ZodString>;
2248
+ tail: z.ZodOptional<z.ZodBoolean>;
2249
+ }, z.core.$strict>>>;
2250
+ exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2251
+ sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
1818
2252
  truncated: z.ZodOptional<z.ZodBoolean>;
1819
2253
  }, z.core.$strict>>;
1820
2254
  truncated: z.ZodOptional<z.ZodBoolean>;
2255
+ fill: z.ZodOptional<z.ZodObject<{
2256
+ siteId: z.ZodString;
2257
+ name: z.ZodString;
2258
+ draftPath: z.ZodOptional<z.ZodString>;
2259
+ line: z.ZodOptional<z.ZodNumber>;
2260
+ }, z.core.$strict>>;
1821
2261
  }, z.core.$strict>>>;
1822
2262
  script: z.ZodOptional<z.ZodString>;
1823
2263
  amend: z.ZodOptional<z.ZodObject<{
@@ -1861,6 +2301,126 @@ export declare const rowsWindowSchema: z.ZodObject<{
1861
2301
  }, z.core.$strip>>;
1862
2302
  }, z.core.$strip>, z.ZodObject<{
1863
2303
  kind: z.ZodLiteral<"userInput">;
2304
+ inputOrigin: z.ZodOptional<z.ZodEnum<{
2305
+ desktop: "desktop";
2306
+ mobile: "mobile";
2307
+ }>>;
2308
+ botGroupSource: z.ZodOptional<z.ZodObject<{
2309
+ botIdentity: z.ZodOptional<z.ZodObject<{
2310
+ name: z.ZodString;
2311
+ openId: z.ZodOptional<z.ZodString>;
2312
+ }, z.core.$strict>>;
2313
+ appId: z.ZodOptional<z.ZodString>;
2314
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2315
+ type: z.ZodLiteral<"text">;
2316
+ text: z.ZodString;
2317
+ }, z.core.$strict>, z.ZodObject<{
2318
+ type: z.ZodLiteral<"channelMention">;
2319
+ refId: z.ZodString;
2320
+ name: z.ZodString;
2321
+ channel: z.ZodEnum<{
2322
+ feishu: "feishu";
2323
+ lark: "lark";
2324
+ }>;
2325
+ targetId: z.ZodString;
2326
+ idType: z.ZodLiteral<"open_id">;
2327
+ entityType: z.ZodEnum<{
2328
+ unknown: "unknown";
2329
+ user: "user";
2330
+ bot: "bot";
2331
+ }>;
2332
+ }, z.core.$strict>]>>>;
2333
+ authorizationId: z.ZodOptional<z.ZodString>;
2334
+ botId: z.ZodString;
2335
+ provider: z.ZodEnum<{
2336
+ feishu: "feishu";
2337
+ lark: "lark";
2338
+ }>;
2339
+ chatId: z.ZodString;
2340
+ threadId: z.ZodOptional<z.ZodString>;
2341
+ rootMessageId: z.ZodOptional<z.ZodString>;
2342
+ senderId: z.ZodString;
2343
+ senderName: z.ZodString;
2344
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
2345
+ messageId: z.ZodString;
2346
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2347
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2348
+ type: z.ZodLiteral<"text">;
2349
+ text: z.ZodString;
2350
+ }, z.core.$strict>, z.ZodObject<{
2351
+ type: z.ZodLiteral<"channelMention">;
2352
+ refId: z.ZodString;
2353
+ name: z.ZodString;
2354
+ channel: z.ZodEnum<{
2355
+ feishu: "feishu";
2356
+ lark: "lark";
2357
+ }>;
2358
+ targetId: z.ZodString;
2359
+ idType: z.ZodLiteral<"open_id">;
2360
+ entityType: z.ZodEnum<{
2361
+ unknown: "unknown";
2362
+ user: "user";
2363
+ bot: "bot";
2364
+ }>;
2365
+ }, z.core.$strict>]>>>;
2366
+ messageId: z.ZodString;
2367
+ senderId: z.ZodString;
2368
+ senderName: z.ZodString;
2369
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
2370
+ text: z.ZodString;
2371
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2372
+ text: z.ZodString;
2373
+ path: z.ZodOptional<z.ZodString>;
2374
+ senderName: z.ZodOptional<z.ZodString>;
2375
+ senderId: z.ZodOptional<z.ZodString>;
2376
+ messageId: z.ZodOptional<z.ZodString>;
2377
+ sentAt: z.ZodOptional<z.ZodString>;
2378
+ }, z.core.$strip>>>;
2379
+ attachmentIndexes: z.ZodArray<z.ZodNumber>;
2380
+ }, z.core.$strict>>>;
2381
+ topicContext: z.ZodOptional<z.ZodObject<{
2382
+ messages: z.ZodArray<z.ZodObject<{
2383
+ id: z.ZodString;
2384
+ chatId: z.ZodString;
2385
+ threadId: z.ZodString;
2386
+ senderId: z.ZodString;
2387
+ senderName: z.ZodOptional<z.ZodString>;
2388
+ parentId: z.ZodOptional<z.ZodString>;
2389
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2390
+ name: z.ZodString;
2391
+ kind: z.ZodString;
2392
+ }, z.core.$strict>>>;
2393
+ senderType: z.ZodEnum<{
2394
+ user: "user";
2395
+ app: "app";
2396
+ }>;
2397
+ text: z.ZodString;
2398
+ createdAt: z.ZodNumber;
2399
+ kind: z.ZodString;
2400
+ controlCard: z.ZodOptional<z.ZodBoolean>;
2401
+ deleted: z.ZodOptional<z.ZodBoolean>;
2402
+ }, z.core.$strict>>;
2403
+ checkpoint: z.ZodString;
2404
+ hasGap: z.ZodBoolean;
2405
+ }, z.core.$strict>>;
2406
+ topicHistory: z.ZodOptional<z.ZodObject<{
2407
+ checkpoint: z.ZodString;
2408
+ hasGap: z.ZodBoolean;
2409
+ messageCount: z.ZodNumber;
2410
+ resourceMessages: z.ZodArray<z.ZodObject<{
2411
+ messageId: z.ZodString;
2412
+ count: z.ZodNumber;
2413
+ }, z.core.$strict>>;
2414
+ }, z.core.$strict>>;
2415
+ }, z.core.$strict>>;
2416
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2417
+ text: z.ZodString;
2418
+ path: z.ZodOptional<z.ZodString>;
2419
+ senderName: z.ZodOptional<z.ZodString>;
2420
+ senderId: z.ZodOptional<z.ZodString>;
2421
+ messageId: z.ZodOptional<z.ZodString>;
2422
+ sentAt: z.ZodOptional<z.ZodString>;
2423
+ }, z.core.$strip>>>;
1864
2424
  text: z.ZodString;
1865
2425
  epilogueStart: z.ZodOptional<z.ZodNumber>;
1866
2426
  origin: z.ZodEnum<{
@@ -1908,6 +2468,7 @@ export declare const rowsWindowSchema: z.ZodObject<{
1908
2468
  kind: z.ZodEnum<{
1909
2469
  ask: "ask";
1910
2470
  "world-read": "world-read";
2471
+ hole: "hole";
1911
2472
  }>;
1912
2473
  label: z.ZodString;
1913
2474
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -1924,6 +2485,7 @@ export declare const rowsWindowSchema: z.ZodObject<{
1924
2485
  stack: "stack";
1925
2486
  serial: "serial";
1926
2487
  }>>;
2488
+ fill: z.ZodOptional<z.ZodString>;
1927
2489
  }, z.core.$strict>>;
1928
2490
  lanes: z.ZodArray<z.ZodObject<{
1929
2491
  id: z.ZodString;
@@ -1958,17 +2520,35 @@ export declare const rowsWindowSchema: z.ZodObject<{
1958
2520
  line: z.ZodOptional<z.ZodNumber>;
1959
2521
  column: z.ZodOptional<z.ZodNumber>;
1960
2522
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
2523
+ fill: z.ZodOptional<z.ZodString>;
1961
2524
  }, z.core.$strict>>>;
1962
2525
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1963
2526
  from: z.ZodString;
1964
2527
  to: z.ZodString;
1965
2528
  back: z.ZodOptional<z.ZodLiteral<true>>;
1966
2529
  }, z.core.$strict>>>;
2530
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
2531
+ from: z.ZodString;
2532
+ to: z.ZodString;
2533
+ }, z.core.$strict>>>;
2534
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2535
+ siteId: z.ZodString;
2536
+ name: z.ZodString;
2537
+ type: z.ZodString;
2538
+ phase: z.ZodOptional<z.ZodString>;
2539
+ tail: z.ZodOptional<z.ZodBoolean>;
2540
+ }, z.core.$strict>>>;
1967
2541
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1968
2542
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
1969
2543
  truncated: z.ZodOptional<z.ZodBoolean>;
1970
2544
  }, z.core.$strict>>;
1971
2545
  truncated: z.ZodOptional<z.ZodBoolean>;
2546
+ fill: z.ZodOptional<z.ZodObject<{
2547
+ siteId: z.ZodString;
2548
+ name: z.ZodString;
2549
+ draftPath: z.ZodOptional<z.ZodString>;
2550
+ line: z.ZodOptional<z.ZodNumber>;
2551
+ }, z.core.$strict>>;
1972
2552
  }, z.core.$strict>>>;
1973
2553
  script: z.ZodOptional<z.ZodString>;
1974
2554
  amend: z.ZodOptional<z.ZodObject<{
@@ -1988,13 +2568,49 @@ export declare const rowsWindowSchema: z.ZodObject<{
1988
2568
  sourceCommandId: z.ZodOptional<z.ZodString>;
1989
2569
  rootSourceCommandId: z.ZodOptional<z.ZodString>;
1990
2570
  clientId: z.ZodOptional<z.ZodString>;
2571
+ highspeed: z.ZodOptional<z.ZodObject<{
2572
+ schemaVersion: z.ZodLiteral<1>;
2573
+ cardId: z.ZodString;
2574
+ taskId: z.ZodString;
2575
+ provider: z.ZodString;
2576
+ model: z.ZodString;
2577
+ issuedAt: z.ZodNumber;
2578
+ expiresAt: z.ZodNumber;
2579
+ regularTps: z.ZodOptional<z.ZodNumber>;
2580
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2581
+ durationMs: z.ZodOptional<z.ZodNumber>;
2582
+ highspeedTps: z.ZodOptional<z.ZodNumber>;
2583
+ savedDurationMs: z.ZodOptional<z.ZodNumber>;
2584
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
2585
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
2586
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
2587
+ fallbackAt: z.ZodOptional<z.ZodNumber>;
2588
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
2589
+ highspeed_card_expired: "highspeed_card_expired";
2590
+ highspeed_request_failed: "highspeed_request_failed";
2591
+ }>>;
2592
+ }, z.core.$strict>>;
1991
2593
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1992
2594
  ref: z.ZodString;
1993
2595
  fileName: z.ZodString;
1994
2596
  mime: z.ZodString;
1995
2597
  bytes: z.ZodNumber;
2598
+ sourceKind: z.ZodOptional<z.ZodEnum<{
2599
+ "clipboard-text": "clipboard-text";
2600
+ "topic-history": "topic-history";
2601
+ }>>;
2602
+ messageCount: z.ZodOptional<z.ZodNumber>;
1996
2603
  previewRef: z.ZodOptional<z.ZodString>;
1997
- }, z.core.$strip>>>;
2604
+ }, z.core.$strict>>>;
2605
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2606
+ kind: z.ZodLiteral<"pluginUi">;
2607
+ pluginId: z.ZodString;
2608
+ toolCallId: z.ZodString;
2609
+ }, z.core.$strict>, z.ZodObject<{
2610
+ kind: z.ZodLiteral<"genUi">;
2611
+ path: z.ZodString;
2612
+ title: z.ZodOptional<z.ZodString>;
2613
+ }, z.core.$strict>], "kind">>;
1998
2614
  rowId: z.ZodNumber;
1999
2615
  turnId: z.ZodString;
2000
2616
  entityId: z.ZodOptional<z.ZodString>;
@@ -2017,10 +2633,10 @@ export declare const rowsWindowSchema: z.ZodObject<{
2017
2633
  assistantResponseId: z.ZodOptional<z.ZodString>;
2018
2634
  text: z.ZodString;
2019
2635
  state: z.ZodEnum<{
2020
- streaming: "streaming";
2021
- interrupted: "interrupted";
2022
2636
  failed: "failed";
2023
2637
  complete: "complete";
2638
+ interrupted: "interrupted";
2639
+ streaming: "streaming";
2024
2640
  }>;
2025
2641
  model: z.ZodOptional<z.ZodString>;
2026
2642
  feedback: z.ZodOptional<z.ZodEnum<{
@@ -2049,9 +2665,9 @@ export declare const rowsWindowSchema: z.ZodObject<{
2049
2665
  assistantResponseId: z.ZodOptional<z.ZodString>;
2050
2666
  text: z.ZodString;
2051
2667
  state: z.ZodEnum<{
2052
- streaming: "streaming";
2053
- interrupted: "interrupted";
2054
2668
  complete: "complete";
2669
+ interrupted: "interrupted";
2670
+ streaming: "streaming";
2055
2671
  }>;
2056
2672
  durationMs: z.ZodOptional<z.ZodNumber>;
2057
2673
  rowId: z.ZodNumber;
@@ -2077,10 +2693,10 @@ export declare const rowsWindowSchema: z.ZodObject<{
2077
2693
  toolCallId: z.ZodString;
2078
2694
  toolName: z.ZodString;
2079
2695
  status: z.ZodEnum<{
2080
- running: "running";
2081
- success: "success";
2082
2696
  error: "error";
2083
2697
  cancelled: "cancelled";
2698
+ success: "success";
2699
+ running: "running";
2084
2700
  inputStreaming: "inputStreaming";
2085
2701
  pendingApproval: "pendingApproval";
2086
2702
  }>;
@@ -2114,8 +2730,8 @@ export declare const rowsWindowSchema: z.ZodObject<{
2114
2730
  }, z.core.$strip>, z.ZodObject<{
2115
2731
  kind: z.ZodLiteral<"local_agent_message">;
2116
2732
  status: z.ZodEnum<{
2117
- failed: "failed";
2118
2733
  success: "success";
2734
+ failed: "failed";
2119
2735
  }>;
2120
2736
  error: z.ZodOptional<z.ZodString>;
2121
2737
  message: z.ZodOptional<z.ZodString>;
@@ -2139,16 +2755,16 @@ export declare const rowsWindowSchema: z.ZodObject<{
2139
2755
  }, z.core.$strip>, z.ZodObject<{
2140
2756
  kind: z.ZodLiteral<"respond_to_coordinator">;
2141
2757
  status: z.ZodEnum<{
2142
- failed: "failed";
2143
2758
  success: "success";
2759
+ failed: "failed";
2144
2760
  }>;
2145
2761
  }, z.core.$strip>, z.ZodObject<{
2146
2762
  kind: z.ZodLiteral<"cua">;
2147
2763
  schemaVersion: z.ZodLiteral<1>;
2148
2764
  toolName: z.ZodString;
2149
2765
  status: z.ZodEnum<{
2150
- failed: "failed";
2151
2766
  success: "success";
2767
+ failed: "failed";
2152
2768
  }>;
2153
2769
  input: z.ZodOptional<z.ZodString>;
2154
2770
  structuredContent: z.ZodOptional<z.ZodString>;
@@ -2160,14 +2776,14 @@ export declare const rowsWindowSchema: z.ZodObject<{
2160
2776
  platform: z.ZodLiteral<"darwin">;
2161
2777
  grantOwner: z.ZodString;
2162
2778
  accessibility: z.ZodEnum<{
2779
+ denied: "denied";
2163
2780
  granted: "granted";
2164
2781
  stale: "stale";
2165
- denied: "denied";
2166
2782
  }>;
2167
2783
  screenRecording: z.ZodEnum<{
2168
2784
  unknown: "unknown";
2169
- granted: "granted";
2170
2785
  denied: "denied";
2786
+ granted: "granted";
2171
2787
  }>;
2172
2788
  }, z.core.$strict>>;
2173
2789
  targetApp: z.ZodOptional<z.ZodObject<{
@@ -2197,10 +2813,34 @@ export declare const rowsWindowSchema: z.ZodObject<{
2197
2813
  description: z.ZodOptional<z.ZodString>;
2198
2814
  unavailable: z.ZodOptional<z.ZodObject<{
2199
2815
  code: z.ZodEnum<{
2200
- quota_exceeded: "quota_exceeded";
2201
2816
  coding_plan_required: "coding_plan_required";
2817
+ quota_exceeded: "quota_exceeded";
2202
2818
  }>;
2203
2819
  }, z.core.$strict>>;
2820
+ ui: z.ZodOptional<z.ZodObject<{
2821
+ pluginId: z.ZodString;
2822
+ resourceUri: z.ZodString;
2823
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
2824
+ inline: "inline";
2825
+ fullscreen: "fullscreen";
2826
+ pip: "pip";
2827
+ }>>;
2828
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
2829
+ csp: z.ZodOptional<z.ZodObject<{
2830
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2831
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2832
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2833
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2834
+ }, z.core.$strict>>;
2835
+ structuredContent: z.ZodOptional<z.ZodString>;
2836
+ widgetMeta: z.ZodOptional<z.ZodString>;
2837
+ content: z.ZodOptional<z.ZodString>;
2838
+ truncated: z.ZodOptional<z.ZodBoolean>;
2839
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
2840
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
2841
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
2842
+ surface: z.ZodOptional<z.ZodString>;
2843
+ }, z.core.$strict>>;
2204
2844
  }, z.core.$strip>, z.ZodObject<{
2205
2845
  kind: z.ZodLiteral<"create_workflow">;
2206
2846
  ok: z.ZodBoolean;
@@ -2217,6 +2857,7 @@ export declare const rowsWindowSchema: z.ZodObject<{
2217
2857
  kind: z.ZodEnum<{
2218
2858
  ask: "ask";
2219
2859
  "world-read": "world-read";
2860
+ hole: "hole";
2220
2861
  }>;
2221
2862
  label: z.ZodString;
2222
2863
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -2233,6 +2874,7 @@ export declare const rowsWindowSchema: z.ZodObject<{
2233
2874
  stack: "stack";
2234
2875
  serial: "serial";
2235
2876
  }>>;
2877
+ fill: z.ZodOptional<z.ZodString>;
2236
2878
  }, z.core.$strict>>;
2237
2879
  lanes: z.ZodArray<z.ZodObject<{
2238
2880
  id: z.ZodString;
@@ -2267,33 +2909,51 @@ export declare const rowsWindowSchema: z.ZodObject<{
2267
2909
  line: z.ZodOptional<z.ZodNumber>;
2268
2910
  column: z.ZodOptional<z.ZodNumber>;
2269
2911
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
2912
+ fill: z.ZodOptional<z.ZodString>;
2270
2913
  }, z.core.$strict>>>;
2271
2914
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
2272
2915
  from: z.ZodString;
2273
2916
  to: z.ZodString;
2274
2917
  back: z.ZodOptional<z.ZodLiteral<true>>;
2275
2918
  }, z.core.$strict>>>;
2919
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
2920
+ from: z.ZodString;
2921
+ to: z.ZodString;
2922
+ }, z.core.$strict>>>;
2923
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2924
+ siteId: z.ZodString;
2925
+ name: z.ZodString;
2926
+ type: z.ZodString;
2927
+ phase: z.ZodOptional<z.ZodString>;
2928
+ tail: z.ZodOptional<z.ZodBoolean>;
2929
+ }, z.core.$strict>>>;
2276
2930
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2277
2931
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
2278
2932
  truncated: z.ZodOptional<z.ZodBoolean>;
2279
2933
  }, z.core.$strict>>;
2280
2934
  truncated: z.ZodOptional<z.ZodBoolean>;
2935
+ fill: z.ZodOptional<z.ZodObject<{
2936
+ siteId: z.ZodString;
2937
+ name: z.ZodString;
2938
+ draftPath: z.ZodOptional<z.ZodString>;
2939
+ line: z.ZodOptional<z.ZodNumber>;
2940
+ }, z.core.$strict>>;
2281
2941
  }, z.core.$strict>, z.ZodObject<{
2282
2942
  kind: z.ZodLiteral<"get_workflow_run">;
2283
2943
  runId: z.ZodString;
2284
2944
  label: z.ZodString;
2285
2945
  status: z.ZodEnum<{
2946
+ completed: "completed";
2286
2947
  pending: "pending";
2287
2948
  running: "running";
2288
- completed: "completed";
2289
- stopped: "stopped";
2290
2949
  errored: "errored";
2950
+ stopped: "stopped";
2291
2951
  }>;
2292
2952
  stopReason: z.ZodOptional<z.ZodEnum<{
2293
- interrupted: "interrupted";
2294
2953
  user: "user";
2295
2954
  model: "model";
2296
2955
  provider: "provider";
2956
+ interrupted: "interrupted";
2297
2957
  superseded: "superseded";
2298
2958
  }>>;
2299
2959
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -2309,8 +2969,8 @@ export declare const rowsWindowSchema: z.ZodObject<{
2309
2969
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
2310
2970
  name: z.ZodString;
2311
2971
  state: z.ZodEnum<{
2312
- done: "done";
2313
2972
  current: "current";
2973
+ done: "done";
2314
2974
  ahead: "ahead";
2315
2975
  unfinished: "unfinished";
2316
2976
  }>;
@@ -2326,11 +2986,11 @@ export declare const rowsWindowSchema: z.ZodObject<{
2326
2986
  name: z.ZodOptional<z.ZodString>;
2327
2987
  state: z.ZodEnum<{
2328
2988
  failed: "failed";
2989
+ idle: "idle";
2990
+ waiting: "waiting";
2329
2991
  done: "done";
2330
2992
  unfinished: "unfinished";
2331
- idle: "idle";
2332
2993
  executing: "executing";
2333
- waiting: "waiting";
2334
2994
  parked: "parked";
2335
2995
  }>;
2336
2996
  phaseName: z.ZodOptional<z.ZodString>;
@@ -2391,21 +3051,21 @@ export declare const rowsWindowSchema: z.ZodObject<{
2391
3051
  runId: z.ZodString;
2392
3052
  label: z.ZodString;
2393
3053
  labelSource: z.ZodEnum<{
2394
- script: "script";
2395
3054
  name: "name";
3055
+ script: "script";
2396
3056
  }>;
2397
3057
  status: z.ZodEnum<{
3058
+ completed: "completed";
2398
3059
  pending: "pending";
2399
3060
  running: "running";
2400
- completed: "completed";
2401
- stopped: "stopped";
2402
3061
  errored: "errored";
3062
+ stopped: "stopped";
2403
3063
  }>;
2404
3064
  stopReason: z.ZodOptional<z.ZodEnum<{
2405
- interrupted: "interrupted";
2406
3065
  user: "user";
2407
3066
  model: "model";
2408
3067
  provider: "provider";
3068
+ interrupted: "interrupted";
2409
3069
  superseded: "superseded";
2410
3070
  }>>;
2411
3071
  ownedByThisSession: z.ZodBoolean;
@@ -2491,8 +3151,8 @@ export declare const rowsWindowSchema: z.ZodObject<{
2491
3151
  }, z.core.$strict>, z.ZodObject<{
2492
3152
  kind: z.ZodLiteral<"respond_to_coordinator">;
2493
3153
  status: z.ZodEnum<{
2494
- failed: "failed";
2495
3154
  success: "success";
3155
+ failed: "failed";
2496
3156
  }>;
2497
3157
  }, z.core.$strict>, z.ZodObject<{
2498
3158
  kind: z.ZodLiteral<"mcp_tool">;
@@ -2501,10 +3161,34 @@ export declare const rowsWindowSchema: z.ZodObject<{
2501
3161
  description: z.ZodOptional<z.ZodString>;
2502
3162
  unavailable: z.ZodOptional<z.ZodObject<{
2503
3163
  code: z.ZodEnum<{
2504
- quota_exceeded: "quota_exceeded";
2505
3164
  coding_plan_required: "coding_plan_required";
3165
+ quota_exceeded: "quota_exceeded";
2506
3166
  }>;
2507
3167
  }, z.core.$strict>>;
3168
+ ui: z.ZodOptional<z.ZodObject<{
3169
+ pluginId: z.ZodString;
3170
+ resourceUri: z.ZodString;
3171
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
3172
+ inline: "inline";
3173
+ fullscreen: "fullscreen";
3174
+ pip: "pip";
3175
+ }>>;
3176
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
3177
+ csp: z.ZodOptional<z.ZodObject<{
3178
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
3179
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
3180
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
3181
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
3182
+ }, z.core.$strict>>;
3183
+ structuredContent: z.ZodOptional<z.ZodString>;
3184
+ widgetMeta: z.ZodOptional<z.ZodString>;
3185
+ content: z.ZodOptional<z.ZodString>;
3186
+ truncated: z.ZodOptional<z.ZodBoolean>;
3187
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
3188
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
3189
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
3190
+ surface: z.ZodOptional<z.ZodString>;
3191
+ }, z.core.$strict>>;
2508
3192
  }, z.core.$strict>, z.ZodObject<{
2509
3193
  kind: z.ZodLiteral<"create_workflow">;
2510
3194
  ok: z.ZodBoolean;
@@ -2521,6 +3205,7 @@ export declare const rowsWindowSchema: z.ZodObject<{
2521
3205
  kind: z.ZodEnum<{
2522
3206
  ask: "ask";
2523
3207
  "world-read": "world-read";
3208
+ hole: "hole";
2524
3209
  }>;
2525
3210
  label: z.ZodString;
2526
3211
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -2537,6 +3222,7 @@ export declare const rowsWindowSchema: z.ZodObject<{
2537
3222
  stack: "stack";
2538
3223
  serial: "serial";
2539
3224
  }>>;
3225
+ fill: z.ZodOptional<z.ZodString>;
2540
3226
  }, z.core.$strict>>;
2541
3227
  lanes: z.ZodArray<z.ZodObject<{
2542
3228
  id: z.ZodString;
@@ -2571,33 +3257,51 @@ export declare const rowsWindowSchema: z.ZodObject<{
2571
3257
  line: z.ZodOptional<z.ZodNumber>;
2572
3258
  column: z.ZodOptional<z.ZodNumber>;
2573
3259
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
3260
+ fill: z.ZodOptional<z.ZodString>;
2574
3261
  }, z.core.$strict>>>;
2575
3262
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
2576
3263
  from: z.ZodString;
2577
3264
  to: z.ZodString;
2578
3265
  back: z.ZodOptional<z.ZodLiteral<true>>;
2579
3266
  }, z.core.$strict>>>;
3267
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
3268
+ from: z.ZodString;
3269
+ to: z.ZodString;
3270
+ }, z.core.$strict>>>;
3271
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3272
+ siteId: z.ZodString;
3273
+ name: z.ZodString;
3274
+ type: z.ZodString;
3275
+ phase: z.ZodOptional<z.ZodString>;
3276
+ tail: z.ZodOptional<z.ZodBoolean>;
3277
+ }, z.core.$strict>>>;
2580
3278
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2581
3279
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
2582
3280
  truncated: z.ZodOptional<z.ZodBoolean>;
2583
3281
  }, z.core.$strict>>;
2584
3282
  truncated: z.ZodOptional<z.ZodBoolean>;
3283
+ fill: z.ZodOptional<z.ZodObject<{
3284
+ siteId: z.ZodString;
3285
+ name: z.ZodString;
3286
+ draftPath: z.ZodOptional<z.ZodString>;
3287
+ line: z.ZodOptional<z.ZodNumber>;
3288
+ }, z.core.$strict>>;
2585
3289
  }, z.core.$strict>, z.ZodObject<{
2586
3290
  kind: z.ZodLiteral<"get_workflow_run">;
2587
3291
  runId: z.ZodString;
2588
3292
  label: z.ZodString;
2589
3293
  status: z.ZodEnum<{
3294
+ completed: "completed";
2590
3295
  pending: "pending";
2591
3296
  running: "running";
2592
- completed: "completed";
2593
- stopped: "stopped";
2594
3297
  errored: "errored";
3298
+ stopped: "stopped";
2595
3299
  }>;
2596
3300
  stopReason: z.ZodOptional<z.ZodEnum<{
2597
- interrupted: "interrupted";
2598
3301
  user: "user";
2599
3302
  model: "model";
2600
3303
  provider: "provider";
3304
+ interrupted: "interrupted";
2601
3305
  superseded: "superseded";
2602
3306
  }>>;
2603
3307
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -2613,8 +3317,8 @@ export declare const rowsWindowSchema: z.ZodObject<{
2613
3317
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
2614
3318
  name: z.ZodString;
2615
3319
  state: z.ZodEnum<{
2616
- done: "done";
2617
3320
  current: "current";
3321
+ done: "done";
2618
3322
  ahead: "ahead";
2619
3323
  unfinished: "unfinished";
2620
3324
  }>;
@@ -2630,11 +3334,11 @@ export declare const rowsWindowSchema: z.ZodObject<{
2630
3334
  name: z.ZodOptional<z.ZodString>;
2631
3335
  state: z.ZodEnum<{
2632
3336
  failed: "failed";
3337
+ idle: "idle";
3338
+ waiting: "waiting";
2633
3339
  done: "done";
2634
3340
  unfinished: "unfinished";
2635
- idle: "idle";
2636
3341
  executing: "executing";
2637
- waiting: "waiting";
2638
3342
  parked: "parked";
2639
3343
  }>;
2640
3344
  phaseName: z.ZodOptional<z.ZodString>;
@@ -2695,21 +3399,21 @@ export declare const rowsWindowSchema: z.ZodObject<{
2695
3399
  runId: z.ZodString;
2696
3400
  label: z.ZodString;
2697
3401
  labelSource: z.ZodEnum<{
2698
- script: "script";
2699
3402
  name: "name";
3403
+ script: "script";
2700
3404
  }>;
2701
3405
  status: z.ZodEnum<{
3406
+ completed: "completed";
2702
3407
  pending: "pending";
2703
3408
  running: "running";
2704
- completed: "completed";
2705
- stopped: "stopped";
2706
3409
  errored: "errored";
3410
+ stopped: "stopped";
2707
3411
  }>;
2708
3412
  stopReason: z.ZodOptional<z.ZodEnum<{
2709
- interrupted: "interrupted";
2710
3413
  user: "user";
2711
3414
  model: "model";
2712
3415
  provider: "provider";
3416
+ interrupted: "interrupted";
2713
3417
  superseded: "superseded";
2714
3418
  }>>;
2715
3419
  ownedByThisSession: z.ZodBoolean;
@@ -2770,8 +3474,11 @@ export declare const rowsWindowSchema: z.ZodObject<{
2770
3474
  message: z.ZodString;
2771
3475
  }, z.core.$strip>>;
2772
3476
  progress: z.ZodOptional<z.ZodObject<{
2773
- bytes: z.ZodNumber;
3477
+ bytes: z.ZodOptional<z.ZodNumber>;
2774
3478
  previewLine: z.ZodOptional<z.ZodString>;
3479
+ fraction: z.ZodOptional<z.ZodNumber>;
3480
+ total: z.ZodOptional<z.ZodNumber>;
3481
+ message: z.ZodOptional<z.ZodString>;
2775
3482
  updatedAt: z.ZodNumber;
2776
3483
  }, z.core.$strip>>;
2777
3484
  outputPreview: z.ZodOptional<z.ZodObject<{
@@ -2810,11 +3517,11 @@ export declare const rowsWindowSchema: z.ZodObject<{
2810
3517
  displayName: z.ZodString;
2811
3518
  artifactType: z.ZodEnum<{
2812
3519
  text: "text";
3520
+ image: "image";
2813
3521
  pdf: "pdf";
2814
3522
  pptx: "pptx";
2815
3523
  docx: "docx";
2816
3524
  xlsx: "xlsx";
2817
- image: "image";
2818
3525
  html: "html";
2819
3526
  md: "md";
2820
3527
  }>;
@@ -2845,10 +3552,10 @@ export declare const rowsWindowSchema: z.ZodObject<{
2845
3552
  parentToolCallId: z.ZodOptional<z.ZodString>;
2846
3553
  subagentType: z.ZodString;
2847
3554
  status: z.ZodEnum<{
2848
- running: "running";
2849
- failed: "failed";
2850
- success: "success";
2851
3555
  cancelled: "cancelled";
3556
+ success: "success";
3557
+ failed: "failed";
3558
+ running: "running";
2852
3559
  }>;
2853
3560
  summaryText: z.ZodString;
2854
3561
  childSessionId: z.ZodOptional<z.ZodString>;
@@ -2887,9 +3594,9 @@ export declare const rowsWindowSchema: z.ZodObject<{
2887
3594
  }>;
2888
3595
  hookCount: z.ZodNumber;
2889
3596
  state: z.ZodEnum<{
2890
- running: "running";
2891
- completed: "completed";
2892
3597
  failed: "failed";
3598
+ completed: "completed";
3599
+ running: "running";
2893
3600
  }>;
2894
3601
  startedAt: z.ZodNumber;
2895
3602
  endedAt: z.ZodOptional<z.ZodNumber>;
@@ -2905,16 +3612,16 @@ export declare const rowsWindowSchema: z.ZodObject<{
2905
3612
  hookIndex: z.ZodNumber;
2906
3613
  didExecute: z.ZodBoolean;
2907
3614
  state: z.ZodEnum<{
2908
- running: "running";
2909
- completed: "completed";
2910
3615
  failed: "failed";
3616
+ completed: "completed";
3617
+ running: "running";
2911
3618
  }>;
2912
3619
  outcome: z.ZodOptional<z.ZodEnum<{
2913
- failed: "failed";
2914
- success: "success";
2915
3620
  cancelled: "cancelled";
2916
- timed_out: "timed_out";
3621
+ success: "success";
3622
+ failed: "failed";
2917
3623
  blocked: "blocked";
3624
+ timed_out: "timed_out";
2918
3625
  }>>;
2919
3626
  blockReason: z.ZodOptional<z.ZodString>;
2920
3627
  startedAt: z.ZodNumber;
@@ -2922,9 +3629,9 @@ export declare const rowsWindowSchema: z.ZodObject<{
2922
3629
  durationMs: z.ZodOptional<z.ZodNumber>;
2923
3630
  displayName: z.ZodString;
2924
3631
  sourceKind: z.ZodEnum<{
3632
+ plugin: "plugin";
2925
3633
  user: "user";
2926
3634
  project: "project";
2927
- plugin: "plugin";
2928
3635
  }>;
2929
3636
  pluginName: z.ZodOptional<z.ZodString>;
2930
3637
  toolName: z.ZodOptional<z.ZodString>;
@@ -2961,10 +3668,10 @@ export declare const rowsWindowSchema: z.ZodObject<{
2961
3668
  manual: "manual";
2962
3669
  }>;
2963
3670
  status: z.ZodEnum<{
2964
- running: "running";
2965
- failed: "failed";
2966
- success: "success";
2967
3671
  cancelled: "cancelled";
3672
+ success: "success";
3673
+ failed: "failed";
3674
+ running: "running";
2968
3675
  noop: "noop";
2969
3676
  }>;
2970
3677
  tokensBefore: z.ZodOptional<z.ZodNumber>;
@@ -3000,8 +3707,8 @@ export declare const rowsWindowSchema: z.ZodObject<{
3000
3707
  type: z.ZodLiteral<"goalVerify">;
3001
3708
  iteration: z.ZodNumber;
3002
3709
  outcome: z.ZodEnum<{
3003
- running: "running";
3004
3710
  failed: "failed";
3711
+ running: "running";
3005
3712
  pass: "pass";
3006
3713
  notSatisfied: "notSatisfied";
3007
3714
  }>;
@@ -3050,11 +3757,11 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3050
3757
  revision: z.ZodNumber;
3051
3758
  control: z.ZodObject<{
3052
3759
  phase: z.ZodEnum<{
3053
- running: "running";
3054
3760
  error: "error";
3761
+ running: "running";
3762
+ draft: "draft";
3055
3763
  completedSuccess: "completedSuccess";
3056
3764
  completedInterrupted: "completedInterrupted";
3057
- draft: "draft";
3058
3765
  prewarming: "prewarming";
3059
3766
  }>;
3060
3767
  sessionEnded: z.ZodBoolean;
@@ -3065,9 +3772,9 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3065
3772
  stopping: "stopping";
3066
3773
  }>;
3067
3774
  stopTargetKind: z.ZodEnum<{
3068
- subagent: "subagent";
3069
3775
  unknown: "unknown";
3070
3776
  assistant: "assistant";
3777
+ subagent: "subagent";
3071
3778
  tool: "tool";
3072
3779
  compact: "compact";
3073
3780
  goalContinuation: "goalContinuation";
@@ -3085,6 +3792,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3085
3792
  foregroundSubagent: "foregroundSubagent";
3086
3793
  }>;
3087
3794
  foregroundExecutionId: z.ZodOptional<z.ZodString>;
3795
+ sourceCommandId: z.ZodOptional<z.ZodString>;
3088
3796
  startedAt: z.ZodNumber;
3089
3797
  }, z.core.$strip>>;
3090
3798
  lastError: z.ZodNullable<z.ZodObject<{
@@ -3094,8 +3802,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3094
3802
  at: z.ZodNumber;
3095
3803
  source: z.ZodEnum<{
3096
3804
  provider: "provider";
3097
- tool: "tool";
3098
3805
  runtime: "runtime";
3806
+ tool: "tool";
3099
3807
  network: "network";
3100
3808
  }>;
3101
3809
  traceId: z.ZodOptional<z.ZodString>;
@@ -3105,28 +3813,28 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3105
3813
  attribution: z.ZodOptional<z.ZodObject<{
3106
3814
  source: z.ZodOptional<z.ZodEnum<{
3107
3815
  provider: "provider";
3108
- tool: "tool";
3109
3816
  runtime: "runtime";
3817
+ tool: "tool";
3110
3818
  network: "network";
3111
3819
  }>>;
3112
3820
  reason: z.ZodOptional<z.ZodString>;
3113
3821
  errorPhase: z.ZodOptional<z.ZodEnum<{
3114
3822
  response: "response";
3823
+ connect: "connect";
3115
3824
  prepare: "prepare";
3116
3825
  configuration: "configuration";
3117
- connect: "connect";
3118
3826
  stream: "stream";
3119
3827
  parse: "parse";
3120
3828
  validation: "validation";
3121
3829
  unhandled: "unhandled";
3122
3830
  }>>;
3123
3831
  exceptionKind: z.ZodOptional<z.ZodEnum<{
3832
+ transport: "transport";
3124
3833
  validation: "validation";
3125
3834
  api_call: "api_call";
3126
3835
  generic: "generic";
3127
3836
  protocol: "protocol";
3128
3837
  provider_business: "provider_business";
3129
- transport: "transport";
3130
3838
  type_error: "type_error";
3131
3839
  }>>;
3132
3840
  providerId: z.ZodOptional<z.ZodString>;
@@ -3201,11 +3909,11 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3201
3909
  }, z.core.$strip>;
3202
3910
  inputRouting: z.ZodObject<{
3203
3911
  mode: z.ZodEnum<{
3204
- startNow: "startNow";
3205
3912
  guide: "guide";
3913
+ choice: "choice";
3914
+ startNow: "startNow";
3206
3915
  enqueue: "enqueue";
3207
3916
  reject: "reject";
3208
- choice: "choice";
3209
3917
  }>;
3210
3918
  reasonCode: z.ZodOptional<z.ZodString>;
3211
3919
  }, z.core.$strip>;
@@ -3286,13 +3994,13 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3286
3994
  }, z.core.$strict>>;
3287
3995
  breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
3288
3996
  source: z.ZodEnum<{
3997
+ messages: "messages";
3289
3998
  system_prompt: "system_prompt";
3290
3999
  meta_user_context: "meta_user_context";
3291
4000
  skills: "skills";
3292
4001
  tool_prompt: "tool_prompt";
3293
4002
  system_tool_schemas: "system_tool_schemas";
3294
4003
  mcp_tool_schemas: "mcp_tool_schemas";
3295
- messages: "messages";
3296
4004
  }>;
3297
4005
  chars: z.ZodNumber;
3298
4006
  }, z.core.$strict>>>;
@@ -3306,6 +4014,126 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3306
4014
  }, z.core.$strip>;
3307
4015
  queue: z.ZodObject<{
3308
4016
  items: z.ZodArray<z.ZodObject<{
4017
+ inputOrigin: z.ZodOptional<z.ZodEnum<{
4018
+ desktop: "desktop";
4019
+ mobile: "mobile";
4020
+ }>>;
4021
+ botGroupSource: z.ZodOptional<z.ZodObject<{
4022
+ botIdentity: z.ZodOptional<z.ZodObject<{
4023
+ name: z.ZodString;
4024
+ openId: z.ZodOptional<z.ZodString>;
4025
+ }, z.core.$strict>>;
4026
+ appId: z.ZodOptional<z.ZodString>;
4027
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4028
+ type: z.ZodLiteral<"text">;
4029
+ text: z.ZodString;
4030
+ }, z.core.$strict>, z.ZodObject<{
4031
+ type: z.ZodLiteral<"channelMention">;
4032
+ refId: z.ZodString;
4033
+ name: z.ZodString;
4034
+ channel: z.ZodEnum<{
4035
+ feishu: "feishu";
4036
+ lark: "lark";
4037
+ }>;
4038
+ targetId: z.ZodString;
4039
+ idType: z.ZodLiteral<"open_id">;
4040
+ entityType: z.ZodEnum<{
4041
+ unknown: "unknown";
4042
+ user: "user";
4043
+ bot: "bot";
4044
+ }>;
4045
+ }, z.core.$strict>]>>>;
4046
+ authorizationId: z.ZodOptional<z.ZodString>;
4047
+ botId: z.ZodString;
4048
+ provider: z.ZodEnum<{
4049
+ feishu: "feishu";
4050
+ lark: "lark";
4051
+ }>;
4052
+ chatId: z.ZodString;
4053
+ threadId: z.ZodOptional<z.ZodString>;
4054
+ rootMessageId: z.ZodOptional<z.ZodString>;
4055
+ senderId: z.ZodString;
4056
+ senderName: z.ZodString;
4057
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
4058
+ messageId: z.ZodString;
4059
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
4060
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4061
+ type: z.ZodLiteral<"text">;
4062
+ text: z.ZodString;
4063
+ }, z.core.$strict>, z.ZodObject<{
4064
+ type: z.ZodLiteral<"channelMention">;
4065
+ refId: z.ZodString;
4066
+ name: z.ZodString;
4067
+ channel: z.ZodEnum<{
4068
+ feishu: "feishu";
4069
+ lark: "lark";
4070
+ }>;
4071
+ targetId: z.ZodString;
4072
+ idType: z.ZodLiteral<"open_id">;
4073
+ entityType: z.ZodEnum<{
4074
+ unknown: "unknown";
4075
+ user: "user";
4076
+ bot: "bot";
4077
+ }>;
4078
+ }, z.core.$strict>]>>>;
4079
+ messageId: z.ZodString;
4080
+ senderId: z.ZodString;
4081
+ senderName: z.ZodString;
4082
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
4083
+ text: z.ZodString;
4084
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4085
+ text: z.ZodString;
4086
+ path: z.ZodOptional<z.ZodString>;
4087
+ senderName: z.ZodOptional<z.ZodString>;
4088
+ senderId: z.ZodOptional<z.ZodString>;
4089
+ messageId: z.ZodOptional<z.ZodString>;
4090
+ sentAt: z.ZodOptional<z.ZodString>;
4091
+ }, z.core.$strip>>>;
4092
+ attachmentIndexes: z.ZodArray<z.ZodNumber>;
4093
+ }, z.core.$strict>>>;
4094
+ topicContext: z.ZodOptional<z.ZodObject<{
4095
+ messages: z.ZodArray<z.ZodObject<{
4096
+ id: z.ZodString;
4097
+ chatId: z.ZodString;
4098
+ threadId: z.ZodString;
4099
+ senderId: z.ZodString;
4100
+ senderName: z.ZodOptional<z.ZodString>;
4101
+ parentId: z.ZodOptional<z.ZodString>;
4102
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4103
+ name: z.ZodString;
4104
+ kind: z.ZodString;
4105
+ }, z.core.$strict>>>;
4106
+ senderType: z.ZodEnum<{
4107
+ user: "user";
4108
+ app: "app";
4109
+ }>;
4110
+ text: z.ZodString;
4111
+ createdAt: z.ZodNumber;
4112
+ kind: z.ZodString;
4113
+ controlCard: z.ZodOptional<z.ZodBoolean>;
4114
+ deleted: z.ZodOptional<z.ZodBoolean>;
4115
+ }, z.core.$strict>>;
4116
+ checkpoint: z.ZodString;
4117
+ hasGap: z.ZodBoolean;
4118
+ }, z.core.$strict>>;
4119
+ topicHistory: z.ZodOptional<z.ZodObject<{
4120
+ checkpoint: z.ZodString;
4121
+ hasGap: z.ZodBoolean;
4122
+ messageCount: z.ZodNumber;
4123
+ resourceMessages: z.ZodArray<z.ZodObject<{
4124
+ messageId: z.ZodString;
4125
+ count: z.ZodNumber;
4126
+ }, z.core.$strict>>;
4127
+ }, z.core.$strict>>;
4128
+ }, z.core.$strict>>;
4129
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4130
+ text: z.ZodString;
4131
+ path: z.ZodOptional<z.ZodString>;
4132
+ senderName: z.ZodOptional<z.ZodString>;
4133
+ senderId: z.ZodOptional<z.ZodString>;
4134
+ messageId: z.ZodOptional<z.ZodString>;
4135
+ sentAt: z.ZodOptional<z.ZodString>;
4136
+ }, z.core.$strip>>>;
3309
4137
  sourceCommandId: z.ZodString;
3310
4138
  queueItemId: z.ZodString;
3311
4139
  clientId: z.ZodString;
@@ -3320,6 +4148,11 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3320
4148
  fileName: z.ZodString;
3321
4149
  mime: z.ZodString;
3322
4150
  bytes: z.ZodNumber;
4151
+ sourceKind: z.ZodOptional<z.ZodEnum<{
4152
+ "clipboard-text": "clipboard-text";
4153
+ "topic-history": "topic-history";
4154
+ }>>;
4155
+ messageCount: z.ZodOptional<z.ZodNumber>;
3323
4156
  previewRef: z.ZodOptional<z.ZodString>;
3324
4157
  }, z.core.$strict>>>;
3325
4158
  modelSelection: z.ZodOptional<z.ZodObject<{
@@ -3334,6 +4167,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3334
4167
  build: "build";
3335
4168
  edit: "edit";
3336
4169
  yolo: "yolo";
4170
+ guarded: "guarded";
3337
4171
  }>>;
3338
4172
  planEnabled: z.ZodOptional<z.ZodBoolean>;
3339
4173
  sharedContextRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3343,14 +4177,14 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3343
4177
  delivery: z.ZodObject<{
3344
4178
  requested: z.ZodEnum<{
3345
4179
  auto: "auto";
3346
- startNow: "startNow";
3347
4180
  queue: "queue";
3348
4181
  guide: "guide";
4182
+ startNow: "startNow";
3349
4183
  }>;
3350
4184
  admitted: z.ZodEnum<{
3351
- startNow: "startNow";
3352
4185
  queue: "queue";
3353
4186
  guide: "guide";
4187
+ startNow: "startNow";
3354
4188
  }>;
3355
4189
  fallbackReasonCode: z.ZodOptional<z.ZodString>;
3356
4190
  }, z.core.$strict>;
@@ -3369,16 +4203,47 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3369
4203
  reasonCode: z.ZodOptional<z.ZodString>;
3370
4204
  }, z.core.$strict>;
3371
4205
  admittedAt: z.ZodNumber;
4206
+ highspeed: z.ZodOptional<z.ZodObject<{
4207
+ schemaVersion: z.ZodLiteral<1>;
4208
+ cardId: z.ZodString;
4209
+ taskId: z.ZodString;
4210
+ provider: z.ZodString;
4211
+ model: z.ZodString;
4212
+ issuedAt: z.ZodNumber;
4213
+ expiresAt: z.ZodNumber;
4214
+ regularTps: z.ZodOptional<z.ZodNumber>;
4215
+ outputTokens: z.ZodOptional<z.ZodNumber>;
4216
+ durationMs: z.ZodOptional<z.ZodNumber>;
4217
+ highspeedTps: z.ZodOptional<z.ZodNumber>;
4218
+ savedDurationMs: z.ZodOptional<z.ZodNumber>;
4219
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
4220
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
4221
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
4222
+ fallbackAt: z.ZodOptional<z.ZodNumber>;
4223
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
4224
+ highspeed_card_expired: "highspeed_card_expired";
4225
+ highspeed_request_failed: "highspeed_request_failed";
4226
+ }>>;
4227
+ }, z.core.$strict>>;
3372
4228
  provenance: z.ZodOptional<z.ZodObject<{
3373
4229
  sourceCommandId: z.ZodString;
3374
4230
  queueItemId: z.ZodOptional<z.ZodString>;
3375
4231
  clientId: z.ZodOptional<z.ZodString>;
3376
4232
  }, z.core.$strict>>;
4233
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4234
+ kind: z.ZodLiteral<"pluginUi">;
4235
+ pluginId: z.ZodString;
4236
+ toolCallId: z.ZodString;
4237
+ }, z.core.$strict>, z.ZodObject<{
4238
+ kind: z.ZodLiteral<"genUi">;
4239
+ path: z.ZodString;
4240
+ title: z.ZodOptional<z.ZodString>;
4241
+ }, z.core.$strict>], "kind">>;
3377
4242
  dispatch: z.ZodObject<{
3378
4243
  reservationId: z.ZodOptional<z.ZodString>;
3379
4244
  state: z.ZodEnum<{
3380
- queued: "queued";
3381
4245
  reserved: "reserved";
4246
+ queued: "queued";
3382
4247
  promoting: "promoting";
3383
4248
  }>;
3384
4249
  }, z.core.$strict>;
@@ -3387,16 +4252,16 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3387
4252
  autoDrain: z.ZodBoolean;
3388
4253
  pauseReason: z.ZodOptional<z.ZodEnum<{
3389
4254
  error: "error";
3390
- stopped: "stopped";
3391
4255
  manual: "manual";
4256
+ stopped: "stopped";
3392
4257
  }>>;
3393
4258
  }, z.core.$strip>;
3394
4259
  pendingInteractions: z.ZodArray<z.ZodObject<{
3395
4260
  interactionId: z.ZodString;
3396
4261
  kind: z.ZodEnum<{
4262
+ permission: "permission";
3397
4263
  userInput: "userInput";
3398
4264
  workspaceHookReview: "workspaceHookReview";
3399
- permission: "permission";
3400
4265
  }>;
3401
4266
  anchorRowId: z.ZodNullable<z.ZodNumber>;
3402
4267
  createdAt: z.ZodNumber;
@@ -3456,8 +4321,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3456
4321
  }, z.core.$strict>, z.ZodObject<{
3457
4322
  kind: z.ZodLiteral<"respond_to_coordinator">;
3458
4323
  status: z.ZodEnum<{
3459
- failed: "failed";
3460
4324
  success: "success";
4325
+ failed: "failed";
3461
4326
  }>;
3462
4327
  }, z.core.$strict>, z.ZodObject<{
3463
4328
  kind: z.ZodLiteral<"mcp_tool">;
@@ -3466,10 +4331,34 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3466
4331
  description: z.ZodOptional<z.ZodString>;
3467
4332
  unavailable: z.ZodOptional<z.ZodObject<{
3468
4333
  code: z.ZodEnum<{
3469
- quota_exceeded: "quota_exceeded";
3470
4334
  coding_plan_required: "coding_plan_required";
4335
+ quota_exceeded: "quota_exceeded";
3471
4336
  }>;
3472
4337
  }, z.core.$strict>>;
4338
+ ui: z.ZodOptional<z.ZodObject<{
4339
+ pluginId: z.ZodString;
4340
+ resourceUri: z.ZodString;
4341
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
4342
+ inline: "inline";
4343
+ fullscreen: "fullscreen";
4344
+ pip: "pip";
4345
+ }>>;
4346
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
4347
+ csp: z.ZodOptional<z.ZodObject<{
4348
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4349
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4350
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4351
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
4352
+ }, z.core.$strict>>;
4353
+ structuredContent: z.ZodOptional<z.ZodString>;
4354
+ widgetMeta: z.ZodOptional<z.ZodString>;
4355
+ content: z.ZodOptional<z.ZodString>;
4356
+ truncated: z.ZodOptional<z.ZodBoolean>;
4357
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
4358
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
4359
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
4360
+ surface: z.ZodOptional<z.ZodString>;
4361
+ }, z.core.$strict>>;
3473
4362
  }, z.core.$strict>, z.ZodObject<{
3474
4363
  kind: z.ZodLiteral<"create_workflow">;
3475
4364
  ok: z.ZodBoolean;
@@ -3486,6 +4375,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3486
4375
  kind: z.ZodEnum<{
3487
4376
  ask: "ask";
3488
4377
  "world-read": "world-read";
4378
+ hole: "hole";
3489
4379
  }>;
3490
4380
  label: z.ZodString;
3491
4381
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -3502,6 +4392,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3502
4392
  stack: "stack";
3503
4393
  serial: "serial";
3504
4394
  }>>;
4395
+ fill: z.ZodOptional<z.ZodString>;
3505
4396
  }, z.core.$strict>>;
3506
4397
  lanes: z.ZodArray<z.ZodObject<{
3507
4398
  id: z.ZodString;
@@ -3536,33 +4427,51 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3536
4427
  line: z.ZodOptional<z.ZodNumber>;
3537
4428
  column: z.ZodOptional<z.ZodNumber>;
3538
4429
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
4430
+ fill: z.ZodOptional<z.ZodString>;
3539
4431
  }, z.core.$strict>>>;
3540
4432
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3541
4433
  from: z.ZodString;
3542
4434
  to: z.ZodString;
3543
4435
  back: z.ZodOptional<z.ZodLiteral<true>>;
3544
4436
  }, z.core.$strict>>>;
4437
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
4438
+ from: z.ZodString;
4439
+ to: z.ZodString;
4440
+ }, z.core.$strict>>>;
4441
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4442
+ siteId: z.ZodString;
4443
+ name: z.ZodString;
4444
+ type: z.ZodString;
4445
+ phase: z.ZodOptional<z.ZodString>;
4446
+ tail: z.ZodOptional<z.ZodBoolean>;
4447
+ }, z.core.$strict>>>;
3545
4448
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
3546
4449
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
3547
4450
  truncated: z.ZodOptional<z.ZodBoolean>;
3548
4451
  }, z.core.$strict>>;
3549
4452
  truncated: z.ZodOptional<z.ZodBoolean>;
4453
+ fill: z.ZodOptional<z.ZodObject<{
4454
+ siteId: z.ZodString;
4455
+ name: z.ZodString;
4456
+ draftPath: z.ZodOptional<z.ZodString>;
4457
+ line: z.ZodOptional<z.ZodNumber>;
4458
+ }, z.core.$strict>>;
3550
4459
  }, z.core.$strict>, z.ZodObject<{
3551
4460
  kind: z.ZodLiteral<"get_workflow_run">;
3552
4461
  runId: z.ZodString;
3553
4462
  label: z.ZodString;
3554
4463
  status: z.ZodEnum<{
4464
+ completed: "completed";
3555
4465
  pending: "pending";
3556
4466
  running: "running";
3557
- completed: "completed";
3558
- stopped: "stopped";
3559
4467
  errored: "errored";
4468
+ stopped: "stopped";
3560
4469
  }>;
3561
4470
  stopReason: z.ZodOptional<z.ZodEnum<{
3562
- interrupted: "interrupted";
3563
4471
  user: "user";
3564
4472
  model: "model";
3565
4473
  provider: "provider";
4474
+ interrupted: "interrupted";
3566
4475
  superseded: "superseded";
3567
4476
  }>>;
3568
4477
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -3578,8 +4487,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3578
4487
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
3579
4488
  name: z.ZodString;
3580
4489
  state: z.ZodEnum<{
3581
- done: "done";
3582
4490
  current: "current";
4491
+ done: "done";
3583
4492
  ahead: "ahead";
3584
4493
  unfinished: "unfinished";
3585
4494
  }>;
@@ -3595,11 +4504,11 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3595
4504
  name: z.ZodOptional<z.ZodString>;
3596
4505
  state: z.ZodEnum<{
3597
4506
  failed: "failed";
4507
+ idle: "idle";
4508
+ waiting: "waiting";
3598
4509
  done: "done";
3599
4510
  unfinished: "unfinished";
3600
- idle: "idle";
3601
4511
  executing: "executing";
3602
- waiting: "waiting";
3603
4512
  parked: "parked";
3604
4513
  }>;
3605
4514
  phaseName: z.ZodOptional<z.ZodString>;
@@ -3660,21 +4569,21 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3660
4569
  runId: z.ZodString;
3661
4570
  label: z.ZodString;
3662
4571
  labelSource: z.ZodEnum<{
3663
- script: "script";
3664
4572
  name: "name";
4573
+ script: "script";
3665
4574
  }>;
3666
4575
  status: z.ZodEnum<{
4576
+ completed: "completed";
3667
4577
  pending: "pending";
3668
4578
  running: "running";
3669
- completed: "completed";
3670
- stopped: "stopped";
3671
4579
  errored: "errored";
4580
+ stopped: "stopped";
3672
4581
  }>;
3673
4582
  stopReason: z.ZodOptional<z.ZodEnum<{
3674
- interrupted: "interrupted";
3675
4583
  user: "user";
3676
4584
  model: "model";
3677
4585
  provider: "provider";
4586
+ interrupted: "interrupted";
3678
4587
  superseded: "superseded";
3679
4588
  }>>;
3680
4589
  ownedByThisSession: z.ZodBoolean;
@@ -3873,8 +4782,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3873
4782
  resolvedTimeoutMs: z.ZodNumber;
3874
4783
  resolvedMaxOutputBytes: z.ZodNumber;
3875
4784
  executionMode: z.ZodEnum<{
3876
- foreground: "foreground";
3877
4785
  background: "background";
4786
+ foreground: "foreground";
3878
4787
  }>;
3879
4788
  configuredEnabled: z.ZodBoolean;
3880
4789
  editable: z.ZodBoolean;
@@ -3896,8 +4805,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3896
4805
  clientId: z.ZodString;
3897
4806
  type: z.ZodString;
3898
4807
  state: z.ZodEnum<{
3899
- executing: "executing";
3900
4808
  accepted: "accepted";
4809
+ executing: "executing";
3901
4810
  }>;
3902
4811
  at: z.ZodNumber;
3903
4812
  }, z.core.$strip>>;
@@ -3910,9 +4819,9 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3910
4819
  }>;
3911
4820
  title: z.ZodString;
3912
4821
  status: z.ZodEnum<{
3913
- running: "running";
3914
- failed: "failed";
3915
4822
  cancelled: "cancelled";
4823
+ failed: "failed";
4824
+ running: "running";
3916
4825
  resultPending: "resultPending";
3917
4826
  }>;
3918
4827
  startedAt: z.ZodNumber;
@@ -3947,17 +4856,17 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3947
4856
  runId: z.ZodString;
3948
4857
  toolCallId: z.ZodOptional<z.ZodString>;
3949
4858
  status: z.ZodEnum<{
4859
+ completed: "completed";
3950
4860
  pending: "pending";
3951
4861
  running: "running";
3952
- completed: "completed";
3953
- stopped: "stopped";
3954
4862
  errored: "errored";
4863
+ stopped: "stopped";
3955
4864
  }>;
3956
4865
  stopReason: z.ZodOptional<z.ZodEnum<{
3957
- interrupted: "interrupted";
3958
4866
  user: "user";
3959
4867
  model: "model";
3960
4868
  provider: "provider";
4869
+ interrupted: "interrupted";
3961
4870
  superseded: "superseded";
3962
4871
  }>>;
3963
4872
  resumedFrom: z.ZodOptional<z.ZodString>;
@@ -3977,11 +4886,12 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3977
4886
  name: z.ZodOptional<z.ZodString>;
3978
4887
  sessionId: z.ZodOptional<z.ZodString>;
3979
4888
  status: z.ZodEnum<{
3980
- running: "running";
3981
4889
  completed: "completed";
4890
+ running: "running";
3982
4891
  waiting: "waiting";
3983
4892
  }>;
3984
4893
  phaseName: z.ZodOptional<z.ZodString>;
4894
+ model: z.ZodOptional<z.ZodString>;
3985
4895
  }, z.core.$strip>>;
3986
4896
  nodes: z.ZodArray<z.ZodObject<{
3987
4897
  siteId: z.ZodString;
@@ -3991,18 +4901,18 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
3991
4901
  "world-read": "world-read";
3992
4902
  }>>;
3993
4903
  phase: z.ZodEnum<{
4904
+ waiting: "waiting";
3994
4905
  queued: "queued";
3995
4906
  executing: "executing";
3996
- waiting: "waiting";
3997
- settled: "settled";
3998
4907
  dispatched: "dispatched";
3999
4908
  repairing: "repairing";
4000
4909
  nudged: "nudged";
4910
+ settled: "settled";
4001
4911
  }>;
4002
4912
  outcome: z.ZodOptional<z.ZodEnum<{
4003
- failed: "failed";
4004
4913
  cancelled: "cancelled";
4005
4914
  ok: "ok";
4915
+ failed: "failed";
4006
4916
  }>>;
4007
4917
  cached: z.ZodOptional<z.ZodBoolean>;
4008
4918
  actorSiteId: z.ZodOptional<z.ZodString>;
@@ -4064,6 +4974,21 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4064
4974
  currentPhase: z.ZodOptional<z.ZodString>;
4065
4975
  phaseNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
4066
4976
  phaseAlongside: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>;
4977
+ phaseHoles: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
4978
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4979
+ siteId: z.ZodString;
4980
+ ordinal: z.ZodNumber;
4981
+ name: z.ZodString;
4982
+ type: z.ZodOptional<z.ZodString>;
4983
+ prompt: z.ZodOptional<z.ZodString>;
4984
+ state: z.ZodEnum<{
4985
+ waiting: "waiting";
4986
+ filled: "filled";
4987
+ }>;
4988
+ since: z.ZodOptional<z.ZodNumber>;
4989
+ filledAt: z.ZodOptional<z.ZodNumber>;
4990
+ filledBy: z.ZodOptional<z.ZodString>;
4991
+ }, z.core.$strip>>>;
4067
4992
  unlistedByPhase: z.ZodOptional<z.ZodArray<z.ZodObject<{
4068
4993
  phaseName: z.ZodOptional<z.ZodString>;
4069
4994
  actors: z.ZodNumber;
@@ -4083,8 +5008,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4083
5008
  activeRunStartedAtMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4084
5009
  status: z.ZodEnum<{
4085
5010
  failed: "failed";
4086
- active: "active";
4087
5011
  paused: "paused";
5012
+ active: "active";
4088
5013
  notSatisfied: "notSatisfied";
4089
5014
  verifying: "verifying";
4090
5015
  verified: "verified";
@@ -4108,8 +5033,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4108
5033
  id: z.ZodString;
4109
5034
  content: z.ZodString;
4110
5035
  status: z.ZodEnum<{
4111
- pending: "pending";
4112
5036
  completed: "completed";
5037
+ pending: "pending";
4113
5038
  inProgress: "inProgress";
4114
5039
  }>;
4115
5040
  }, z.core.$strip>>;
@@ -4121,8 +5046,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4121
5046
  id: z.ZodString;
4122
5047
  content: z.ZodString;
4123
5048
  status: z.ZodEnum<{
4124
- pending: "pending";
4125
5049
  completed: "completed";
5050
+ pending: "pending";
4126
5051
  inProgress: "inProgress";
4127
5052
  }>;
4128
5053
  }, z.core.$strip>>;
@@ -4150,14 +5075,18 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4150
5075
  sourceCommandId: z.ZodOptional<z.ZodString>;
4151
5076
  historyRoundCount: z.ZodOptional<z.ZodNumber>;
4152
5077
  state: z.ZodEnum<{
4153
- running: "running";
4154
5078
  failed: "failed";
5079
+ running: "running";
4155
5080
  completedSuccess: "completedSuccess";
4156
5081
  completedInterrupted: "completedInterrupted";
4157
5082
  }>;
4158
5083
  startedAt: z.ZodNumber;
4159
5084
  endedAt: z.ZodOptional<z.ZodNumber>;
4160
5085
  activeMs: z.ZodOptional<z.ZodNumber>;
5086
+ outputTokens: z.ZodOptional<z.ZodNumber>;
5087
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
5088
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
5089
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
4161
5090
  workSegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4162
5091
  segmentId: z.ZodString;
4163
5092
  triggerEntityId: z.ZodOptional<z.ZodString>;
@@ -4177,21 +5106,21 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4177
5106
  kind: z.ZodLiteral<"terminal">;
4178
5107
  status: z.ZodEnum<{
4179
5108
  completed: "completed";
4180
- stopped: "stopped";
4181
5109
  errored: "errored";
5110
+ stopped: "stopped";
4182
5111
  }>;
4183
5112
  stopReason: z.ZodOptional<z.ZodEnum<{
4184
- interrupted: "interrupted";
4185
5113
  user: "user";
4186
5114
  model: "model";
4187
5115
  provider: "provider";
5116
+ interrupted: "interrupted";
4188
5117
  superseded: "superseded";
4189
5118
  }>>;
4190
5119
  summary: z.ZodString;
4191
5120
  result: z.ZodOptional<z.ZodString>;
4192
5121
  resultForm: z.ZodOptional<z.ZodEnum<{
4193
- prose: "prose";
4194
5122
  json: "json";
5123
+ prose: "prose";
4195
5124
  }>>;
4196
5125
  resultTruncated: z.ZodOptional<z.ZodLiteral<true>>;
4197
5126
  error: z.ZodOptional<z.ZodString>;
@@ -4225,6 +5154,18 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4225
5154
  question: z.ZodString;
4226
5155
  context: z.ZodOptional<z.ZodString>;
4227
5156
  askedAt: z.ZodOptional<z.ZodNumber>;
5157
+ }, z.core.$strip>, z.ZodObject<{
5158
+ kind: z.ZodLiteral<"hole">;
5159
+ siteId: z.ZodString;
5160
+ ordinal: z.ZodNumber;
5161
+ name: z.ZodString;
5162
+ type: z.ZodString;
5163
+ prompt: z.ZodOptional<z.ZodString>;
5164
+ draftPath: z.ZodOptional<z.ZodString>;
5165
+ line: z.ZodOptional<z.ZodNumber>;
5166
+ before: z.ZodOptional<z.ZodString>;
5167
+ after: z.ZodOptional<z.ZodString>;
5168
+ reachedAt: z.ZodOptional<z.ZodNumber>;
4228
5169
  }, z.core.$strip>, z.ZodObject<{
4229
5170
  kind: z.ZodLiteral<"stall">;
4230
5171
  sinceMs: z.ZodNumber;
@@ -4259,6 +5200,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4259
5200
  kind: z.ZodEnum<{
4260
5201
  ask: "ask";
4261
5202
  "world-read": "world-read";
5203
+ hole: "hole";
4262
5204
  }>;
4263
5205
  label: z.ZodString;
4264
5206
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -4275,6 +5217,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4275
5217
  stack: "stack";
4276
5218
  serial: "serial";
4277
5219
  }>>;
5220
+ fill: z.ZodOptional<z.ZodString>;
4278
5221
  }, z.core.$strict>>;
4279
5222
  lanes: z.ZodArray<z.ZodObject<{
4280
5223
  id: z.ZodString;
@@ -4309,17 +5252,35 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4309
5252
  line: z.ZodOptional<z.ZodNumber>;
4310
5253
  column: z.ZodOptional<z.ZodNumber>;
4311
5254
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
5255
+ fill: z.ZodOptional<z.ZodString>;
4312
5256
  }, z.core.$strict>>>;
4313
5257
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
4314
5258
  from: z.ZodString;
4315
5259
  to: z.ZodString;
4316
5260
  back: z.ZodOptional<z.ZodLiteral<true>>;
4317
5261
  }, z.core.$strict>>>;
5262
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
5263
+ from: z.ZodString;
5264
+ to: z.ZodString;
5265
+ }, z.core.$strict>>>;
5266
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5267
+ siteId: z.ZodString;
5268
+ name: z.ZodString;
5269
+ type: z.ZodString;
5270
+ phase: z.ZodOptional<z.ZodString>;
5271
+ tail: z.ZodOptional<z.ZodBoolean>;
5272
+ }, z.core.$strict>>>;
4318
5273
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4319
5274
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
4320
5275
  truncated: z.ZodOptional<z.ZodBoolean>;
4321
5276
  }, z.core.$strict>>;
4322
5277
  truncated: z.ZodOptional<z.ZodBoolean>;
5278
+ fill: z.ZodOptional<z.ZodObject<{
5279
+ siteId: z.ZodString;
5280
+ name: z.ZodString;
5281
+ draftPath: z.ZodOptional<z.ZodString>;
5282
+ line: z.ZodOptional<z.ZodNumber>;
5283
+ }, z.core.$strict>>;
4323
5284
  }, z.core.$strict>>>;
4324
5285
  script: z.ZodOptional<z.ZodString>;
4325
5286
  amend: z.ZodOptional<z.ZodObject<{
@@ -4363,6 +5324,126 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4363
5324
  }, z.core.$strip>>;
4364
5325
  }, z.core.$strip>, z.ZodObject<{
4365
5326
  kind: z.ZodLiteral<"userInput">;
5327
+ inputOrigin: z.ZodOptional<z.ZodEnum<{
5328
+ desktop: "desktop";
5329
+ mobile: "mobile";
5330
+ }>>;
5331
+ botGroupSource: z.ZodOptional<z.ZodObject<{
5332
+ botIdentity: z.ZodOptional<z.ZodObject<{
5333
+ name: z.ZodString;
5334
+ openId: z.ZodOptional<z.ZodString>;
5335
+ }, z.core.$strict>>;
5336
+ appId: z.ZodOptional<z.ZodString>;
5337
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5338
+ type: z.ZodLiteral<"text">;
5339
+ text: z.ZodString;
5340
+ }, z.core.$strict>, z.ZodObject<{
5341
+ type: z.ZodLiteral<"channelMention">;
5342
+ refId: z.ZodString;
5343
+ name: z.ZodString;
5344
+ channel: z.ZodEnum<{
5345
+ feishu: "feishu";
5346
+ lark: "lark";
5347
+ }>;
5348
+ targetId: z.ZodString;
5349
+ idType: z.ZodLiteral<"open_id">;
5350
+ entityType: z.ZodEnum<{
5351
+ unknown: "unknown";
5352
+ user: "user";
5353
+ bot: "bot";
5354
+ }>;
5355
+ }, z.core.$strict>]>>>;
5356
+ authorizationId: z.ZodOptional<z.ZodString>;
5357
+ botId: z.ZodString;
5358
+ provider: z.ZodEnum<{
5359
+ feishu: "feishu";
5360
+ lark: "lark";
5361
+ }>;
5362
+ chatId: z.ZodString;
5363
+ threadId: z.ZodOptional<z.ZodString>;
5364
+ rootMessageId: z.ZodOptional<z.ZodString>;
5365
+ senderId: z.ZodString;
5366
+ senderName: z.ZodString;
5367
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
5368
+ messageId: z.ZodString;
5369
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
5370
+ contentParts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5371
+ type: z.ZodLiteral<"text">;
5372
+ text: z.ZodString;
5373
+ }, z.core.$strict>, z.ZodObject<{
5374
+ type: z.ZodLiteral<"channelMention">;
5375
+ refId: z.ZodString;
5376
+ name: z.ZodString;
5377
+ channel: z.ZodEnum<{
5378
+ feishu: "feishu";
5379
+ lark: "lark";
5380
+ }>;
5381
+ targetId: z.ZodString;
5382
+ idType: z.ZodLiteral<"open_id">;
5383
+ entityType: z.ZodEnum<{
5384
+ unknown: "unknown";
5385
+ user: "user";
5386
+ bot: "bot";
5387
+ }>;
5388
+ }, z.core.$strict>]>>>;
5389
+ messageId: z.ZodString;
5390
+ senderId: z.ZodString;
5391
+ senderName: z.ZodString;
5392
+ mentionedBot: z.ZodOptional<z.ZodBoolean>;
5393
+ text: z.ZodString;
5394
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5395
+ text: z.ZodString;
5396
+ path: z.ZodOptional<z.ZodString>;
5397
+ senderName: z.ZodOptional<z.ZodString>;
5398
+ senderId: z.ZodOptional<z.ZodString>;
5399
+ messageId: z.ZodOptional<z.ZodString>;
5400
+ sentAt: z.ZodOptional<z.ZodString>;
5401
+ }, z.core.$strip>>>;
5402
+ attachmentIndexes: z.ZodArray<z.ZodNumber>;
5403
+ }, z.core.$strict>>>;
5404
+ topicContext: z.ZodOptional<z.ZodObject<{
5405
+ messages: z.ZodArray<z.ZodObject<{
5406
+ id: z.ZodString;
5407
+ chatId: z.ZodString;
5408
+ threadId: z.ZodString;
5409
+ senderId: z.ZodString;
5410
+ senderName: z.ZodOptional<z.ZodString>;
5411
+ parentId: z.ZodOptional<z.ZodString>;
5412
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
5413
+ name: z.ZodString;
5414
+ kind: z.ZodString;
5415
+ }, z.core.$strict>>>;
5416
+ senderType: z.ZodEnum<{
5417
+ user: "user";
5418
+ app: "app";
5419
+ }>;
5420
+ text: z.ZodString;
5421
+ createdAt: z.ZodNumber;
5422
+ kind: z.ZodString;
5423
+ controlCard: z.ZodOptional<z.ZodBoolean>;
5424
+ deleted: z.ZodOptional<z.ZodBoolean>;
5425
+ }, z.core.$strict>>;
5426
+ checkpoint: z.ZodString;
5427
+ hasGap: z.ZodBoolean;
5428
+ }, z.core.$strict>>;
5429
+ topicHistory: z.ZodOptional<z.ZodObject<{
5430
+ checkpoint: z.ZodString;
5431
+ hasGap: z.ZodBoolean;
5432
+ messageCount: z.ZodNumber;
5433
+ resourceMessages: z.ZodArray<z.ZodObject<{
5434
+ messageId: z.ZodString;
5435
+ count: z.ZodNumber;
5436
+ }, z.core.$strict>>;
5437
+ }, z.core.$strict>>;
5438
+ }, z.core.$strict>>;
5439
+ conversationQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5440
+ text: z.ZodString;
5441
+ path: z.ZodOptional<z.ZodString>;
5442
+ senderName: z.ZodOptional<z.ZodString>;
5443
+ senderId: z.ZodOptional<z.ZodString>;
5444
+ messageId: z.ZodOptional<z.ZodString>;
5445
+ sentAt: z.ZodOptional<z.ZodString>;
5446
+ }, z.core.$strip>>>;
4366
5447
  text: z.ZodString;
4367
5448
  epilogueStart: z.ZodOptional<z.ZodNumber>;
4368
5449
  origin: z.ZodEnum<{
@@ -4410,6 +5491,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4410
5491
  kind: z.ZodEnum<{
4411
5492
  ask: "ask";
4412
5493
  "world-read": "world-read";
5494
+ hole: "hole";
4413
5495
  }>;
4414
5496
  label: z.ZodString;
4415
5497
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -4426,6 +5508,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4426
5508
  stack: "stack";
4427
5509
  serial: "serial";
4428
5510
  }>>;
5511
+ fill: z.ZodOptional<z.ZodString>;
4429
5512
  }, z.core.$strict>>;
4430
5513
  lanes: z.ZodArray<z.ZodObject<{
4431
5514
  id: z.ZodString;
@@ -4460,17 +5543,35 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4460
5543
  line: z.ZodOptional<z.ZodNumber>;
4461
5544
  column: z.ZodOptional<z.ZodNumber>;
4462
5545
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
5546
+ fill: z.ZodOptional<z.ZodString>;
4463
5547
  }, z.core.$strict>>>;
4464
5548
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
4465
5549
  from: z.ZodString;
4466
5550
  to: z.ZodString;
4467
5551
  back: z.ZodOptional<z.ZodLiteral<true>>;
4468
5552
  }, z.core.$strict>>>;
5553
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
5554
+ from: z.ZodString;
5555
+ to: z.ZodString;
5556
+ }, z.core.$strict>>>;
5557
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5558
+ siteId: z.ZodString;
5559
+ name: z.ZodString;
5560
+ type: z.ZodString;
5561
+ phase: z.ZodOptional<z.ZodString>;
5562
+ tail: z.ZodOptional<z.ZodBoolean>;
5563
+ }, z.core.$strict>>>;
4469
5564
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4470
5565
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
4471
5566
  truncated: z.ZodOptional<z.ZodBoolean>;
4472
5567
  }, z.core.$strict>>;
4473
5568
  truncated: z.ZodOptional<z.ZodBoolean>;
5569
+ fill: z.ZodOptional<z.ZodObject<{
5570
+ siteId: z.ZodString;
5571
+ name: z.ZodString;
5572
+ draftPath: z.ZodOptional<z.ZodString>;
5573
+ line: z.ZodOptional<z.ZodNumber>;
5574
+ }, z.core.$strict>>;
4474
5575
  }, z.core.$strict>>>;
4475
5576
  script: z.ZodOptional<z.ZodString>;
4476
5577
  amend: z.ZodOptional<z.ZodObject<{
@@ -4490,13 +5591,49 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4490
5591
  sourceCommandId: z.ZodOptional<z.ZodString>;
4491
5592
  rootSourceCommandId: z.ZodOptional<z.ZodString>;
4492
5593
  clientId: z.ZodOptional<z.ZodString>;
5594
+ highspeed: z.ZodOptional<z.ZodObject<{
5595
+ schemaVersion: z.ZodLiteral<1>;
5596
+ cardId: z.ZodString;
5597
+ taskId: z.ZodString;
5598
+ provider: z.ZodString;
5599
+ model: z.ZodString;
5600
+ issuedAt: z.ZodNumber;
5601
+ expiresAt: z.ZodNumber;
5602
+ regularTps: z.ZodOptional<z.ZodNumber>;
5603
+ outputTokens: z.ZodOptional<z.ZodNumber>;
5604
+ durationMs: z.ZodOptional<z.ZodNumber>;
5605
+ highspeedTps: z.ZodOptional<z.ZodNumber>;
5606
+ savedDurationMs: z.ZodOptional<z.ZodNumber>;
5607
+ modelDurationMs: z.ZodOptional<z.ZodNumber>;
5608
+ toolDurationMs: z.ZodOptional<z.ZodNumber>;
5609
+ otherDurationMs: z.ZodOptional<z.ZodNumber>;
5610
+ fallbackAt: z.ZodOptional<z.ZodNumber>;
5611
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
5612
+ highspeed_card_expired: "highspeed_card_expired";
5613
+ highspeed_request_failed: "highspeed_request_failed";
5614
+ }>>;
5615
+ }, z.core.$strict>>;
4493
5616
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4494
5617
  ref: z.ZodString;
4495
5618
  fileName: z.ZodString;
4496
5619
  mime: z.ZodString;
4497
5620
  bytes: z.ZodNumber;
5621
+ sourceKind: z.ZodOptional<z.ZodEnum<{
5622
+ "clipboard-text": "clipboard-text";
5623
+ "topic-history": "topic-history";
5624
+ }>>;
5625
+ messageCount: z.ZodOptional<z.ZodNumber>;
4498
5626
  previewRef: z.ZodOptional<z.ZodString>;
4499
- }, z.core.$strip>>>;
5627
+ }, z.core.$strict>>>;
5628
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5629
+ kind: z.ZodLiteral<"pluginUi">;
5630
+ pluginId: z.ZodString;
5631
+ toolCallId: z.ZodString;
5632
+ }, z.core.$strict>, z.ZodObject<{
5633
+ kind: z.ZodLiteral<"genUi">;
5634
+ path: z.ZodString;
5635
+ title: z.ZodOptional<z.ZodString>;
5636
+ }, z.core.$strict>], "kind">>;
4500
5637
  rowId: z.ZodNumber;
4501
5638
  turnId: z.ZodString;
4502
5639
  entityId: z.ZodOptional<z.ZodString>;
@@ -4519,10 +5656,10 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4519
5656
  assistantResponseId: z.ZodOptional<z.ZodString>;
4520
5657
  text: z.ZodString;
4521
5658
  state: z.ZodEnum<{
4522
- streaming: "streaming";
4523
- interrupted: "interrupted";
4524
5659
  failed: "failed";
4525
5660
  complete: "complete";
5661
+ interrupted: "interrupted";
5662
+ streaming: "streaming";
4526
5663
  }>;
4527
5664
  model: z.ZodOptional<z.ZodString>;
4528
5665
  feedback: z.ZodOptional<z.ZodEnum<{
@@ -4551,9 +5688,9 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4551
5688
  assistantResponseId: z.ZodOptional<z.ZodString>;
4552
5689
  text: z.ZodString;
4553
5690
  state: z.ZodEnum<{
4554
- streaming: "streaming";
4555
- interrupted: "interrupted";
4556
5691
  complete: "complete";
5692
+ interrupted: "interrupted";
5693
+ streaming: "streaming";
4557
5694
  }>;
4558
5695
  durationMs: z.ZodOptional<z.ZodNumber>;
4559
5696
  rowId: z.ZodNumber;
@@ -4579,10 +5716,10 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4579
5716
  toolCallId: z.ZodString;
4580
5717
  toolName: z.ZodString;
4581
5718
  status: z.ZodEnum<{
4582
- running: "running";
4583
- success: "success";
4584
5719
  error: "error";
4585
5720
  cancelled: "cancelled";
5721
+ success: "success";
5722
+ running: "running";
4586
5723
  inputStreaming: "inputStreaming";
4587
5724
  pendingApproval: "pendingApproval";
4588
5725
  }>;
@@ -4616,8 +5753,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4616
5753
  }, z.core.$strip>, z.ZodObject<{
4617
5754
  kind: z.ZodLiteral<"local_agent_message">;
4618
5755
  status: z.ZodEnum<{
4619
- failed: "failed";
4620
5756
  success: "success";
5757
+ failed: "failed";
4621
5758
  }>;
4622
5759
  error: z.ZodOptional<z.ZodString>;
4623
5760
  message: z.ZodOptional<z.ZodString>;
@@ -4641,16 +5778,16 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4641
5778
  }, z.core.$strip>, z.ZodObject<{
4642
5779
  kind: z.ZodLiteral<"respond_to_coordinator">;
4643
5780
  status: z.ZodEnum<{
4644
- failed: "failed";
4645
5781
  success: "success";
5782
+ failed: "failed";
4646
5783
  }>;
4647
5784
  }, z.core.$strip>, z.ZodObject<{
4648
5785
  kind: z.ZodLiteral<"cua">;
4649
5786
  schemaVersion: z.ZodLiteral<1>;
4650
5787
  toolName: z.ZodString;
4651
5788
  status: z.ZodEnum<{
4652
- failed: "failed";
4653
5789
  success: "success";
5790
+ failed: "failed";
4654
5791
  }>;
4655
5792
  input: z.ZodOptional<z.ZodString>;
4656
5793
  structuredContent: z.ZodOptional<z.ZodString>;
@@ -4662,14 +5799,14 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4662
5799
  platform: z.ZodLiteral<"darwin">;
4663
5800
  grantOwner: z.ZodString;
4664
5801
  accessibility: z.ZodEnum<{
5802
+ denied: "denied";
4665
5803
  granted: "granted";
4666
5804
  stale: "stale";
4667
- denied: "denied";
4668
5805
  }>;
4669
5806
  screenRecording: z.ZodEnum<{
4670
5807
  unknown: "unknown";
4671
- granted: "granted";
4672
5808
  denied: "denied";
5809
+ granted: "granted";
4673
5810
  }>;
4674
5811
  }, z.core.$strict>>;
4675
5812
  targetApp: z.ZodOptional<z.ZodObject<{
@@ -4699,10 +5836,34 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4699
5836
  description: z.ZodOptional<z.ZodString>;
4700
5837
  unavailable: z.ZodOptional<z.ZodObject<{
4701
5838
  code: z.ZodEnum<{
4702
- quota_exceeded: "quota_exceeded";
4703
5839
  coding_plan_required: "coding_plan_required";
5840
+ quota_exceeded: "quota_exceeded";
4704
5841
  }>;
4705
5842
  }, z.core.$strict>>;
5843
+ ui: z.ZodOptional<z.ZodObject<{
5844
+ pluginId: z.ZodString;
5845
+ resourceUri: z.ZodString;
5846
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
5847
+ inline: "inline";
5848
+ fullscreen: "fullscreen";
5849
+ pip: "pip";
5850
+ }>>;
5851
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
5852
+ csp: z.ZodOptional<z.ZodObject<{
5853
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
5854
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
5855
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
5856
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
5857
+ }, z.core.$strict>>;
5858
+ structuredContent: z.ZodOptional<z.ZodString>;
5859
+ widgetMeta: z.ZodOptional<z.ZodString>;
5860
+ content: z.ZodOptional<z.ZodString>;
5861
+ truncated: z.ZodOptional<z.ZodBoolean>;
5862
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
5863
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
5864
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
5865
+ surface: z.ZodOptional<z.ZodString>;
5866
+ }, z.core.$strict>>;
4706
5867
  }, z.core.$strip>, z.ZodObject<{
4707
5868
  kind: z.ZodLiteral<"create_workflow">;
4708
5869
  ok: z.ZodBoolean;
@@ -4719,6 +5880,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4719
5880
  kind: z.ZodEnum<{
4720
5881
  ask: "ask";
4721
5882
  "world-read": "world-read";
5883
+ hole: "hole";
4722
5884
  }>;
4723
5885
  label: z.ZodString;
4724
5886
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -4735,6 +5897,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4735
5897
  stack: "stack";
4736
5898
  serial: "serial";
4737
5899
  }>>;
5900
+ fill: z.ZodOptional<z.ZodString>;
4738
5901
  }, z.core.$strict>>;
4739
5902
  lanes: z.ZodArray<z.ZodObject<{
4740
5903
  id: z.ZodString;
@@ -4769,33 +5932,51 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4769
5932
  line: z.ZodOptional<z.ZodNumber>;
4770
5933
  column: z.ZodOptional<z.ZodNumber>;
4771
5934
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
5935
+ fill: z.ZodOptional<z.ZodString>;
4772
5936
  }, z.core.$strict>>>;
4773
5937
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
4774
5938
  from: z.ZodString;
4775
5939
  to: z.ZodString;
4776
5940
  back: z.ZodOptional<z.ZodLiteral<true>>;
4777
5941
  }, z.core.$strict>>>;
5942
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
5943
+ from: z.ZodString;
5944
+ to: z.ZodString;
5945
+ }, z.core.$strict>>>;
5946
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5947
+ siteId: z.ZodString;
5948
+ name: z.ZodString;
5949
+ type: z.ZodString;
5950
+ phase: z.ZodOptional<z.ZodString>;
5951
+ tail: z.ZodOptional<z.ZodBoolean>;
5952
+ }, z.core.$strict>>>;
4778
5953
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4779
5954
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
4780
5955
  truncated: z.ZodOptional<z.ZodBoolean>;
4781
5956
  }, z.core.$strict>>;
4782
5957
  truncated: z.ZodOptional<z.ZodBoolean>;
5958
+ fill: z.ZodOptional<z.ZodObject<{
5959
+ siteId: z.ZodString;
5960
+ name: z.ZodString;
5961
+ draftPath: z.ZodOptional<z.ZodString>;
5962
+ line: z.ZodOptional<z.ZodNumber>;
5963
+ }, z.core.$strict>>;
4783
5964
  }, z.core.$strict>, z.ZodObject<{
4784
5965
  kind: z.ZodLiteral<"get_workflow_run">;
4785
5966
  runId: z.ZodString;
4786
5967
  label: z.ZodString;
4787
5968
  status: z.ZodEnum<{
5969
+ completed: "completed";
4788
5970
  pending: "pending";
4789
5971
  running: "running";
4790
- completed: "completed";
4791
- stopped: "stopped";
4792
5972
  errored: "errored";
5973
+ stopped: "stopped";
4793
5974
  }>;
4794
5975
  stopReason: z.ZodOptional<z.ZodEnum<{
4795
- interrupted: "interrupted";
4796
5976
  user: "user";
4797
5977
  model: "model";
4798
5978
  provider: "provider";
5979
+ interrupted: "interrupted";
4799
5980
  superseded: "superseded";
4800
5981
  }>>;
4801
5982
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -4811,8 +5992,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4811
5992
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
4812
5993
  name: z.ZodString;
4813
5994
  state: z.ZodEnum<{
4814
- done: "done";
4815
5995
  current: "current";
5996
+ done: "done";
4816
5997
  ahead: "ahead";
4817
5998
  unfinished: "unfinished";
4818
5999
  }>;
@@ -4828,11 +6009,11 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4828
6009
  name: z.ZodOptional<z.ZodString>;
4829
6010
  state: z.ZodEnum<{
4830
6011
  failed: "failed";
6012
+ idle: "idle";
6013
+ waiting: "waiting";
4831
6014
  done: "done";
4832
6015
  unfinished: "unfinished";
4833
- idle: "idle";
4834
6016
  executing: "executing";
4835
- waiting: "waiting";
4836
6017
  parked: "parked";
4837
6018
  }>;
4838
6019
  phaseName: z.ZodOptional<z.ZodString>;
@@ -4893,21 +6074,21 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4893
6074
  runId: z.ZodString;
4894
6075
  label: z.ZodString;
4895
6076
  labelSource: z.ZodEnum<{
4896
- script: "script";
4897
6077
  name: "name";
6078
+ script: "script";
4898
6079
  }>;
4899
6080
  status: z.ZodEnum<{
6081
+ completed: "completed";
4900
6082
  pending: "pending";
4901
6083
  running: "running";
4902
- completed: "completed";
4903
- stopped: "stopped";
4904
6084
  errored: "errored";
6085
+ stopped: "stopped";
4905
6086
  }>;
4906
6087
  stopReason: z.ZodOptional<z.ZodEnum<{
4907
- interrupted: "interrupted";
4908
6088
  user: "user";
4909
6089
  model: "model";
4910
6090
  provider: "provider";
6091
+ interrupted: "interrupted";
4911
6092
  superseded: "superseded";
4912
6093
  }>>;
4913
6094
  ownedByThisSession: z.ZodBoolean;
@@ -4993,8 +6174,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
4993
6174
  }, z.core.$strict>, z.ZodObject<{
4994
6175
  kind: z.ZodLiteral<"respond_to_coordinator">;
4995
6176
  status: z.ZodEnum<{
4996
- failed: "failed";
4997
6177
  success: "success";
6178
+ failed: "failed";
4998
6179
  }>;
4999
6180
  }, z.core.$strict>, z.ZodObject<{
5000
6181
  kind: z.ZodLiteral<"mcp_tool">;
@@ -5003,10 +6184,34 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5003
6184
  description: z.ZodOptional<z.ZodString>;
5004
6185
  unavailable: z.ZodOptional<z.ZodObject<{
5005
6186
  code: z.ZodEnum<{
5006
- quota_exceeded: "quota_exceeded";
5007
6187
  coding_plan_required: "coding_plan_required";
6188
+ quota_exceeded: "quota_exceeded";
5008
6189
  }>;
5009
6190
  }, z.core.$strict>>;
6191
+ ui: z.ZodOptional<z.ZodObject<{
6192
+ pluginId: z.ZodString;
6193
+ resourceUri: z.ZodString;
6194
+ preferredDisplayMode: z.ZodOptional<z.ZodEnum<{
6195
+ inline: "inline";
6196
+ fullscreen: "fullscreen";
6197
+ pip: "pip";
6198
+ }>>;
6199
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
6200
+ csp: z.ZodOptional<z.ZodObject<{
6201
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
6202
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
6203
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
6204
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
6205
+ }, z.core.$strict>>;
6206
+ structuredContent: z.ZodOptional<z.ZodString>;
6207
+ widgetMeta: z.ZodOptional<z.ZodString>;
6208
+ content: z.ZodOptional<z.ZodString>;
6209
+ truncated: z.ZodOptional<z.ZodBoolean>;
6210
+ truncatedBytes: z.ZodOptional<z.ZodNumber>;
6211
+ isError: z.ZodOptional<z.ZodLiteral<true>>;
6212
+ showInline: z.ZodOptional<z.ZodLiteral<true>>;
6213
+ surface: z.ZodOptional<z.ZodString>;
6214
+ }, z.core.$strict>>;
5010
6215
  }, z.core.$strict>, z.ZodObject<{
5011
6216
  kind: z.ZodLiteral<"create_workflow">;
5012
6217
  ok: z.ZodBoolean;
@@ -5023,6 +6228,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5023
6228
  kind: z.ZodEnum<{
5024
6229
  ask: "ask";
5025
6230
  "world-read": "world-read";
6231
+ hole: "hole";
5026
6232
  }>;
5027
6233
  label: z.ZodString;
5028
6234
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -5039,6 +6245,7 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5039
6245
  stack: "stack";
5040
6246
  serial: "serial";
5041
6247
  }>>;
6248
+ fill: z.ZodOptional<z.ZodString>;
5042
6249
  }, z.core.$strict>>;
5043
6250
  lanes: z.ZodArray<z.ZodObject<{
5044
6251
  id: z.ZodString;
@@ -5073,33 +6280,51 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5073
6280
  line: z.ZodOptional<z.ZodNumber>;
5074
6281
  column: z.ZodOptional<z.ZodNumber>;
5075
6282
  alongside: z.ZodOptional<z.ZodArray<z.ZodString>>;
6283
+ fill: z.ZodOptional<z.ZodString>;
5076
6284
  }, z.core.$strict>>>;
5077
6285
  phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
5078
6286
  from: z.ZodString;
5079
6287
  to: z.ZodString;
5080
6288
  back: z.ZodOptional<z.ZodLiteral<true>>;
5081
6289
  }, z.core.$strict>>>;
6290
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
6291
+ from: z.ZodString;
6292
+ to: z.ZodString;
6293
+ }, z.core.$strict>>>;
6294
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
6295
+ siteId: z.ZodString;
6296
+ name: z.ZodString;
6297
+ type: z.ZodString;
6298
+ phase: z.ZodOptional<z.ZodString>;
6299
+ tail: z.ZodOptional<z.ZodBoolean>;
6300
+ }, z.core.$strict>>>;
5082
6301
  exits: z.ZodOptional<z.ZodArray<z.ZodString>>;
5083
6302
  sink: z.ZodOptional<z.ZodArray<z.ZodString>>;
5084
6303
  truncated: z.ZodOptional<z.ZodBoolean>;
5085
6304
  }, z.core.$strict>>;
5086
6305
  truncated: z.ZodOptional<z.ZodBoolean>;
6306
+ fill: z.ZodOptional<z.ZodObject<{
6307
+ siteId: z.ZodString;
6308
+ name: z.ZodString;
6309
+ draftPath: z.ZodOptional<z.ZodString>;
6310
+ line: z.ZodOptional<z.ZodNumber>;
6311
+ }, z.core.$strict>>;
5087
6312
  }, z.core.$strict>, z.ZodObject<{
5088
6313
  kind: z.ZodLiteral<"get_workflow_run">;
5089
6314
  runId: z.ZodString;
5090
6315
  label: z.ZodString;
5091
6316
  status: z.ZodEnum<{
6317
+ completed: "completed";
5092
6318
  pending: "pending";
5093
6319
  running: "running";
5094
- completed: "completed";
5095
- stopped: "stopped";
5096
6320
  errored: "errored";
6321
+ stopped: "stopped";
5097
6322
  }>;
5098
6323
  stopReason: z.ZodOptional<z.ZodEnum<{
5099
- interrupted: "interrupted";
5100
6324
  user: "user";
5101
6325
  model: "model";
5102
6326
  provider: "provider";
6327
+ interrupted: "interrupted";
5103
6328
  superseded: "superseded";
5104
6329
  }>>;
5105
6330
  possiblyInterrupted: z.ZodOptional<z.ZodBoolean>;
@@ -5115,8 +6340,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5115
6340
  phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
5116
6341
  name: z.ZodString;
5117
6342
  state: z.ZodEnum<{
5118
- done: "done";
5119
6343
  current: "current";
6344
+ done: "done";
5120
6345
  ahead: "ahead";
5121
6346
  unfinished: "unfinished";
5122
6347
  }>;
@@ -5132,11 +6357,11 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5132
6357
  name: z.ZodOptional<z.ZodString>;
5133
6358
  state: z.ZodEnum<{
5134
6359
  failed: "failed";
6360
+ idle: "idle";
6361
+ waiting: "waiting";
5135
6362
  done: "done";
5136
6363
  unfinished: "unfinished";
5137
- idle: "idle";
5138
6364
  executing: "executing";
5139
- waiting: "waiting";
5140
6365
  parked: "parked";
5141
6366
  }>;
5142
6367
  phaseName: z.ZodOptional<z.ZodString>;
@@ -5197,21 +6422,21 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5197
6422
  runId: z.ZodString;
5198
6423
  label: z.ZodString;
5199
6424
  labelSource: z.ZodEnum<{
5200
- script: "script";
5201
6425
  name: "name";
6426
+ script: "script";
5202
6427
  }>;
5203
6428
  status: z.ZodEnum<{
6429
+ completed: "completed";
5204
6430
  pending: "pending";
5205
6431
  running: "running";
5206
- completed: "completed";
5207
- stopped: "stopped";
5208
6432
  errored: "errored";
6433
+ stopped: "stopped";
5209
6434
  }>;
5210
6435
  stopReason: z.ZodOptional<z.ZodEnum<{
5211
- interrupted: "interrupted";
5212
6436
  user: "user";
5213
6437
  model: "model";
5214
6438
  provider: "provider";
6439
+ interrupted: "interrupted";
5215
6440
  superseded: "superseded";
5216
6441
  }>>;
5217
6442
  ownedByThisSession: z.ZodBoolean;
@@ -5272,8 +6497,11 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5272
6497
  message: z.ZodString;
5273
6498
  }, z.core.$strip>>;
5274
6499
  progress: z.ZodOptional<z.ZodObject<{
5275
- bytes: z.ZodNumber;
6500
+ bytes: z.ZodOptional<z.ZodNumber>;
5276
6501
  previewLine: z.ZodOptional<z.ZodString>;
6502
+ fraction: z.ZodOptional<z.ZodNumber>;
6503
+ total: z.ZodOptional<z.ZodNumber>;
6504
+ message: z.ZodOptional<z.ZodString>;
5277
6505
  updatedAt: z.ZodNumber;
5278
6506
  }, z.core.$strip>>;
5279
6507
  outputPreview: z.ZodOptional<z.ZodObject<{
@@ -5312,11 +6540,11 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5312
6540
  displayName: z.ZodString;
5313
6541
  artifactType: z.ZodEnum<{
5314
6542
  text: "text";
6543
+ image: "image";
5315
6544
  pdf: "pdf";
5316
6545
  pptx: "pptx";
5317
6546
  docx: "docx";
5318
6547
  xlsx: "xlsx";
5319
- image: "image";
5320
6548
  html: "html";
5321
6549
  md: "md";
5322
6550
  }>;
@@ -5347,10 +6575,10 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5347
6575
  parentToolCallId: z.ZodOptional<z.ZodString>;
5348
6576
  subagentType: z.ZodString;
5349
6577
  status: z.ZodEnum<{
5350
- running: "running";
5351
- failed: "failed";
5352
- success: "success";
5353
6578
  cancelled: "cancelled";
6579
+ success: "success";
6580
+ failed: "failed";
6581
+ running: "running";
5354
6582
  }>;
5355
6583
  summaryText: z.ZodString;
5356
6584
  childSessionId: z.ZodOptional<z.ZodString>;
@@ -5389,9 +6617,9 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5389
6617
  }>;
5390
6618
  hookCount: z.ZodNumber;
5391
6619
  state: z.ZodEnum<{
5392
- running: "running";
5393
- completed: "completed";
5394
6620
  failed: "failed";
6621
+ completed: "completed";
6622
+ running: "running";
5395
6623
  }>;
5396
6624
  startedAt: z.ZodNumber;
5397
6625
  endedAt: z.ZodOptional<z.ZodNumber>;
@@ -5407,16 +6635,16 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5407
6635
  hookIndex: z.ZodNumber;
5408
6636
  didExecute: z.ZodBoolean;
5409
6637
  state: z.ZodEnum<{
5410
- running: "running";
5411
- completed: "completed";
5412
6638
  failed: "failed";
6639
+ completed: "completed";
6640
+ running: "running";
5413
6641
  }>;
5414
6642
  outcome: z.ZodOptional<z.ZodEnum<{
5415
- failed: "failed";
5416
- success: "success";
5417
6643
  cancelled: "cancelled";
5418
- timed_out: "timed_out";
6644
+ success: "success";
6645
+ failed: "failed";
5419
6646
  blocked: "blocked";
6647
+ timed_out: "timed_out";
5420
6648
  }>>;
5421
6649
  blockReason: z.ZodOptional<z.ZodString>;
5422
6650
  startedAt: z.ZodNumber;
@@ -5424,9 +6652,9 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5424
6652
  durationMs: z.ZodOptional<z.ZodNumber>;
5425
6653
  displayName: z.ZodString;
5426
6654
  sourceKind: z.ZodEnum<{
6655
+ plugin: "plugin";
5427
6656
  user: "user";
5428
6657
  project: "project";
5429
- plugin: "plugin";
5430
6658
  }>;
5431
6659
  pluginName: z.ZodOptional<z.ZodString>;
5432
6660
  toolName: z.ZodOptional<z.ZodString>;
@@ -5463,10 +6691,10 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5463
6691
  manual: "manual";
5464
6692
  }>;
5465
6693
  status: z.ZodEnum<{
5466
- running: "running";
5467
- failed: "failed";
5468
- success: "success";
5469
6694
  cancelled: "cancelled";
6695
+ success: "success";
6696
+ failed: "failed";
6697
+ running: "running";
5470
6698
  noop: "noop";
5471
6699
  }>;
5472
6700
  tokensBefore: z.ZodOptional<z.ZodNumber>;
@@ -5502,8 +6730,8 @@ export declare const conversationSnapshotSchema: z.ZodObject<{
5502
6730
  type: z.ZodLiteral<"goalVerify">;
5503
6731
  iteration: z.ZodNumber;
5504
6732
  outcome: z.ZodEnum<{
5505
- running: "running";
5506
6733
  failed: "failed";
6734
+ running: "running";
5507
6735
  pass: "pass";
5508
6736
  notSatisfied: "notSatisfied";
5509
6737
  }>;