@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
@@ -3,7 +3,7 @@ export declare const CREATE_WORKFLOW_TOOL_NAME = "CreateWorkflow";
3
3
  /**
4
4
  * 教模型写工作流的内置技能名(apps/dcode-cli/packages/bundled-skills/skills/<name>/SKILL.md)。
5
5
  * 四个创作工具(Create/Amend/Save/EvalWorkflowSnippet)的 resolveInput 以它为门:会话里没有
6
- * 加载过这份技能就拒绝提交脚本。
6
+ * 加载过这份技能就拒绝提交脚本(docs/dynamic-workflow/authoring.md「The authoring surface」)。
7
7
  * 住在 contracts 里是因为 core 的门与 bootstrap 的技能包都读它,而两者不能互相 import。
8
8
  */
9
9
  export declare const DYNAMIC_WORKFLOW_SKILL_NAME = "dynamic-workflows";
@@ -30,13 +30,13 @@ export declare const CreateWorkflowSavedSourceSchema: z.ZodObject<{
30
30
  scope: z.ZodOptional<z.ZodEnum<["project", "global"]>>;
31
31
  }, "strict", z.ZodTypeAny, {
32
32
  name: string;
33
- scope?: "project" | "global" | undefined;
34
33
  path?: string | undefined;
34
+ scope?: "project" | "global" | undefined;
35
35
  args?: Record<string, unknown> | undefined;
36
36
  }, {
37
37
  name: string;
38
- scope?: "project" | "global" | undefined;
39
38
  path?: string | undefined;
39
+ scope?: "project" | "global" | undefined;
40
40
  args?: Record<string, unknown> | undefined;
41
41
  }>;
42
42
  export type CreateWorkflowSavedSource = z.infer<typeof CreateWorkflowSavedSourceSchema>;
@@ -61,16 +61,16 @@ export declare const CreateWorkflowResolvedSavedSourceSchema: z.ZodObject<{
61
61
  draft: z.ZodOptional<z.ZodString>;
62
62
  }, "strict", z.ZodTypeAny, {
63
63
  name: string;
64
- scope?: "project" | "global" | undefined;
65
64
  path?: string | undefined;
66
- args?: Record<string, unknown> | undefined;
65
+ scope?: "project" | "global" | undefined;
67
66
  draft?: string | undefined;
67
+ args?: Record<string, unknown> | undefined;
68
68
  }, {
69
69
  name: string;
70
- scope?: "project" | "global" | undefined;
71
70
  path?: string | undefined;
72
- args?: Record<string, unknown> | undefined;
71
+ scope?: "project" | "global" | undefined;
73
72
  draft?: string | undefined;
73
+ args?: Record<string, unknown> | undefined;
74
74
  }>;
75
75
  export type CreateWorkflowResolvedSavedSource = z.infer<typeof CreateWorkflowResolvedSavedSourceSchema>;
76
76
  /**
@@ -101,51 +101,72 @@ export declare const CreateWorkflowInputSchema: z.ZodObject<{
101
101
  draft: z.ZodOptional<z.ZodString>;
102
102
  }, "strict", z.ZodTypeAny, {
103
103
  name: string;
104
- scope?: "project" | "global" | undefined;
105
104
  path?: string | undefined;
106
- args?: Record<string, unknown> | undefined;
105
+ scope?: "project" | "global" | undefined;
107
106
  draft?: string | undefined;
107
+ args?: Record<string, unknown> | undefined;
108
108
  }, {
109
109
  name: string;
110
- scope?: "project" | "global" | undefined;
111
110
  path?: string | undefined;
112
- args?: Record<string, unknown> | undefined;
111
+ scope?: "project" | "global" | undefined;
113
112
  draft?: string | undefined;
113
+ args?: Record<string, unknown> | undefined;
114
114
  }>>;
115
115
  script_line_offset: z.ZodOptional<z.ZodNumber>;
116
+ adjustable_settings: z.ZodOptional<z.ZodObject<{
117
+ subagent_model: z.ZodBoolean;
118
+ concurrency_ceiling: z.ZodOptional<z.ZodNumber>;
119
+ }, "strict", z.ZodTypeAny, {
120
+ subagent_model: boolean;
121
+ concurrency_ceiling?: number | undefined;
122
+ }, {
123
+ subagent_model: boolean;
124
+ concurrency_ceiling?: number | undefined;
125
+ }>>;
126
+ model_bindings: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
116
127
  }, "strict", z.ZodTypeAny, {
128
+ path?: string | undefined;
117
129
  script?: string | undefined;
118
130
  name?: string | undefined;
119
- path?: string | undefined;
120
131
  args?: Record<string, unknown> | undefined;
132
+ subagent_model?: string | undefined;
133
+ max_concurrency?: number | undefined;
121
134
  saved?: {
122
135
  name: string;
123
- scope?: "project" | "global" | undefined;
124
136
  path?: string | undefined;
125
- args?: Record<string, unknown> | undefined;
137
+ scope?: "project" | "global" | undefined;
126
138
  draft?: string | undefined;
139
+ args?: Record<string, unknown> | undefined;
127
140
  } | undefined;
128
- max_concurrency?: number | undefined;
129
- subagent_model?: string | undefined;
130
141
  script_line_offset?: number | undefined;
142
+ adjustable_settings?: {
143
+ subagent_model: boolean;
144
+ concurrency_ceiling?: number | undefined;
145
+ } | undefined;
146
+ model_bindings?: Record<string, string> | undefined;
131
147
  }, {
148
+ path?: string | undefined;
132
149
  script?: string | undefined;
133
150
  name?: string | undefined;
134
- path?: string | undefined;
135
151
  args?: Record<string, unknown> | undefined;
152
+ subagent_model?: string | undefined;
153
+ max_concurrency?: number | undefined;
136
154
  saved?: {
137
155
  name: string;
138
- scope?: "project" | "global" | undefined;
139
156
  path?: string | undefined;
140
- args?: Record<string, unknown> | undefined;
157
+ scope?: "project" | "global" | undefined;
141
158
  draft?: string | undefined;
159
+ args?: Record<string, unknown> | undefined;
142
160
  } | undefined;
143
- max_concurrency?: number | undefined;
144
- subagent_model?: string | undefined;
145
161
  script_line_offset?: number | undefined;
162
+ adjustable_settings?: {
163
+ subagent_model: boolean;
164
+ concurrency_ceiling?: number | undefined;
165
+ } | undefined;
166
+ model_bindings?: Record<string, string> | undefined;
146
167
  }>;
147
168
  export type CreateWorkflowInput = z.infer<typeof CreateWorkflowInputSchema>;
148
- /** 交给模型的 JSON schema:不含 `script_line_offset`,`saved` 里也不含 `draft`。 */
169
+ /** 交给模型的 JSON schema:不含 `script_line_offset`、`adjustable_settings` 与 `model_bindings`,`saved` 里也不含 `draft`。 */
149
170
  export declare const CreateWorkflowInputJsonSchema: import("../index.js").JsonSchema;
150
171
  export declare const CreateWorkflowDiagnosticSchema: z.ZodObject<{
151
172
  code: z.ZodNumber;
@@ -153,13 +174,13 @@ export declare const CreateWorkflowDiagnosticSchema: z.ZodObject<{
153
174
  line: z.ZodNumber;
154
175
  message: z.ZodString;
155
176
  }, "strict", z.ZodTypeAny, {
156
- code: number;
157
177
  message: string;
178
+ code: number;
158
179
  line: number;
159
180
  column: number;
160
181
  }, {
161
- code: number;
162
182
  message: string;
183
+ code: number;
163
184
  line: number;
164
185
  column: number;
165
186
  }>;
@@ -172,13 +193,13 @@ export declare const createWorkflowToolResultDisplayDiagnosticSchema: z.ZodObjec
172
193
  code: z.ZodNumber;
173
194
  message: z.ZodString;
174
195
  }, "strict", z.ZodTypeAny, {
175
- code: number;
176
196
  message: string;
197
+ code: number;
177
198
  line: number;
178
199
  column: number;
179
200
  }, {
180
- code: number;
181
201
  message: string;
202
+ code: number;
182
203
  line: number;
183
204
  column: number;
184
205
  }>;
@@ -191,7 +212,7 @@ export declare const CREATE_WORKFLOW_GRAPH_MAX_PHASES = 32;
191
212
  export declare const CREATE_WORKFLOW_GRAPH_MAX_PHASE_EDGES = 128;
192
213
  export declare const CREATE_WORKFLOW_GRAPH_MAX_ID_CHARS = 64;
193
214
  export declare const CREATE_WORKFLOW_GRAPH_MAX_NAME_CHARS = 128;
194
- export declare const CREATE_WORKFLOW_STEP_KINDS: readonly ["ask", "world-read"];
215
+ export declare const CREATE_WORKFLOW_STEP_KINDS: readonly ["ask", "world-read", "hole"];
195
216
  export declare const CreateWorkflowNamePatternSchema: z.ZodObject<{
196
217
  head: z.ZodOptional<z.ZodString>;
197
218
  tail: z.ZodOptional<z.ZodString>;
@@ -205,7 +226,7 @@ export declare const CreateWorkflowNamePatternSchema: z.ZodObject<{
205
226
  export type CreateWorkflowNamePattern = z.infer<typeof CreateWorkflowNamePatternSchema>;
206
227
  export declare const CreateWorkflowStepSchema: z.ZodObject<{
207
228
  id: z.ZodString;
208
- kind: z.ZodEnum<["ask", "world-read"]>;
229
+ kind: z.ZodEnum<["ask", "world-read", "hole"]>;
209
230
  label: z.ZodString;
210
231
  /** `label` 只拿到兜底串(内联 `agent()` receiver)时,那个名字的静态形状。 */
211
232
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -236,11 +257,18 @@ export declare const CreateWorkflowStepSchema: z.ZodObject<{
236
257
  */
237
258
  phase: z.ZodOptional<z.ZodString>;
238
259
  repeat: z.ZodOptional<z.ZodEnum<["stack", "serial"]>>;
260
+ /**
261
+ * 这个站点是某次留白补全写进来的:值是补全它的留白站点 id(名字键 `hole#<8 位十六进制>`);留白**自己的**阶段上是包着它的留白。时间轴据它画补全的
262
+ * 笔头与区域(docs/dynamic-workflow/presentation.md「Holes on the timeline」);没有补全过的脚本
263
+ * 一律缺席。
264
+ */
265
+ fill: z.ZodOptional<z.ZodString>;
239
266
  }, "strict", z.ZodTypeAny, {
240
- kind: "ask" | "world-read";
241
- label: string;
242
267
  id: string;
268
+ kind: "ask" | "world-read" | "hole";
269
+ label: string;
243
270
  lane: string;
271
+ fill?: string | undefined;
244
272
  phase?: string | undefined;
245
273
  labelPattern?: {
246
274
  head?: string | undefined;
@@ -252,10 +280,11 @@ export declare const CreateWorkflowStepSchema: z.ZodObject<{
252
280
  source?: string | undefined;
253
281
  repeat?: "stack" | "serial" | undefined;
254
282
  }, {
255
- kind: "ask" | "world-read";
256
- label: string;
257
283
  id: string;
284
+ kind: "ask" | "world-read" | "hole";
285
+ label: string;
258
286
  lane: string;
287
+ fill?: string | undefined;
259
288
  phase?: string | undefined;
260
289
  labelPattern?: {
261
290
  head?: string | undefined;
@@ -318,6 +347,22 @@ export declare const CreateWorkflowEdgeSchema: z.ZodObject<{
318
347
  back?: true | undefined;
319
348
  }>;
320
349
  export type CreateWorkflowEdge = z.infer<typeof CreateWorkflowEdgeSchema>;
350
+ /**
351
+ * 阶段流(docs/dynamic-workflow/presentation.md「Streams」):`from` 阶段在两者都在跑的时候把东西
352
+ * 交给 `to` 阶段——channel 串起来的两个 future 阶段。它**不是** runs after,所以不进 `phaseEdges`、
353
+ * 不带 `back`(方向由 UI 按站的位置判断),也不带分析器的边种类。
354
+ */
355
+ export declare const CreateWorkflowStreamSchema: z.ZodObject<{
356
+ from: z.ZodString;
357
+ to: z.ZodString;
358
+ }, "strict", z.ZodTypeAny, {
359
+ from: string;
360
+ to: string;
361
+ }, {
362
+ from: string;
363
+ to: string;
364
+ }>;
365
+ export type CreateWorkflowStream = z.infer<typeof CreateWorkflowStreamSchema>;
321
366
  export declare const CreateWorkflowParticipantSchema: z.ZodObject<{
322
367
  /** `${phase}:${lane}`,家族成员 `${phase}:${lane}[${index}]`。 */
323
368
  id: z.ZodString;
@@ -391,24 +436,55 @@ export declare const CreateWorkflowPhaseSchema: z.ZodObject<{
391
436
  * 侧栏迷你轨道据此画双线段。
392
437
  */
393
438
  alongside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
439
+ /** 这个阶段是某次留白补全写进来的:值是补全它的留白站点 id(同 `Step.fill`)。 */
440
+ fill: z.ZodOptional<z.ZodString>;
394
441
  }, "strict", z.ZodTypeAny, {
395
442
  id: string;
443
+ fill?: string | undefined;
396
444
  name?: string | undefined;
397
445
  line?: number | undefined;
398
446
  column?: number | undefined;
399
447
  alongside?: string[] | undefined;
400
448
  }, {
401
449
  id: string;
450
+ fill?: string | undefined;
402
451
  name?: string | undefined;
403
452
  line?: number | undefined;
404
453
  column?: number | undefined;
405
454
  alongside?: string[] | undefined;
406
455
  }>;
407
456
  export type CreateWorkflowPhase = z.infer<typeof CreateWorkflowPhaseSchema>;
457
+ /** `holes` 的上界,与阶段表同一个数:一处留白就是一个阶段。 */
458
+ export declare const CREATE_WORKFLOW_GRAPH_MAX_HOLES = 32;
459
+ export declare const CreateWorkflowHoleSchema: z.ZodObject<{
460
+ /** 留白的站点 id(名字键 `hole#<8 位十六进制>`),也是它作为阶段的 id。 */
461
+ siteId: z.ZodString;
462
+ /** 留白的字面名。 */
463
+ name: z.ZodString;
464
+ /** 类型实参原文(`Verdict`)。 */
465
+ type: z.ZodString;
466
+ /** 它出生的阶段 id(`phases[].id`);与阶段词汇表同进同退。 */
467
+ phase: z.ZodOptional<z.ZodString>;
468
+ /** 尾留白:`return await hole(...)`,脚本的结尾还没写。 */
469
+ tail: z.ZodOptional<z.ZodLiteral<true>>;
470
+ }, "strict", z.ZodTypeAny, {
471
+ type: string;
472
+ name: string;
473
+ siteId: string;
474
+ phase?: string | undefined;
475
+ tail?: true | undefined;
476
+ }, {
477
+ type: string;
478
+ name: string;
479
+ siteId: string;
480
+ phase?: string | undefined;
481
+ tail?: true | undefined;
482
+ }>;
483
+ export type CreateWorkflowHole = z.infer<typeof CreateWorkflowHoleSchema>;
408
484
  export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
409
485
  steps: z.ZodArray<z.ZodObject<{
410
486
  id: z.ZodString;
411
- kind: z.ZodEnum<["ask", "world-read"]>;
487
+ kind: z.ZodEnum<["ask", "world-read", "hole"]>;
412
488
  label: z.ZodString;
413
489
  /** `label` 只拿到兜底串(内联 `agent()` receiver)时,那个名字的静态形状。 */
414
490
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -439,11 +515,18 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
439
515
  */
440
516
  phase: z.ZodOptional<z.ZodString>;
441
517
  repeat: z.ZodOptional<z.ZodEnum<["stack", "serial"]>>;
518
+ /**
519
+ * 这个站点是某次留白补全写进来的:值是补全它的留白站点 id(名字键 `hole#<8 位十六进制>`);留白**自己的**阶段上是包着它的留白。时间轴据它画补全的
520
+ * 笔头与区域(docs/dynamic-workflow/presentation.md「Holes on the timeline」);没有补全过的脚本
521
+ * 一律缺席。
522
+ */
523
+ fill: z.ZodOptional<z.ZodString>;
442
524
  }, "strict", z.ZodTypeAny, {
443
- kind: "ask" | "world-read";
444
- label: string;
445
525
  id: string;
526
+ kind: "ask" | "world-read" | "hole";
527
+ label: string;
446
528
  lane: string;
529
+ fill?: string | undefined;
447
530
  phase?: string | undefined;
448
531
  labelPattern?: {
449
532
  head?: string | undefined;
@@ -455,10 +538,11 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
455
538
  source?: string | undefined;
456
539
  repeat?: "stack" | "serial" | undefined;
457
540
  }, {
458
- kind: "ask" | "world-read";
459
- label: string;
460
541
  id: string;
542
+ kind: "ask" | "world-read" | "hole";
543
+ label: string;
461
544
  lane: string;
545
+ fill?: string | undefined;
462
546
  phase?: string | undefined;
463
547
  labelPattern?: {
464
548
  head?: string | undefined;
@@ -581,14 +665,18 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
581
665
  * 侧栏迷你轨道据此画双线段。
582
666
  */
583
667
  alongside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
668
+ /** 这个阶段是某次留白补全写进来的:值是补全它的留白站点 id(同 `Step.fill`)。 */
669
+ fill: z.ZodOptional<z.ZodString>;
584
670
  }, "strict", z.ZodTypeAny, {
585
671
  id: string;
672
+ fill?: string | undefined;
586
673
  name?: string | undefined;
587
674
  line?: number | undefined;
588
675
  column?: number | undefined;
589
676
  alongside?: string[] | undefined;
590
677
  }, {
591
678
  id: string;
679
+ fill?: string | undefined;
592
680
  name?: string | undefined;
593
681
  line?: number | undefined;
594
682
  column?: number | undefined;
@@ -607,6 +695,20 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
607
695
  to: string;
608
696
  back?: true | undefined;
609
697
  }>, "many">>;
698
+ /**
699
+ * 阶段流:因果图阶段商里两端互为 `alongside` 的 `data` 边(bounds 层求得),与词汇表同进同退,
700
+ * 组内没有时缺席。时间线据它把流水线的各阶段从带里拿出来排成一条线,画成流轨。
701
+ */
702
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
703
+ from: z.ZodString;
704
+ to: z.ZodString;
705
+ }, "strict", z.ZodTypeAny, {
706
+ from: string;
707
+ to: string;
708
+ }, {
709
+ from: string;
710
+ to: string;
711
+ }>, "many">>;
610
712
  /**
611
713
  * 控制流可以在其后正常完成的阶段(控制流图阶段商里指向 sink 终端的边的源),阶段表序。
612
714
  * 阶段视图的「阶段 → 返回物」箭头读它,让那张画面上的每条箭头都是控制流。组内可为空
@@ -615,6 +717,35 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
615
717
  exits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
616
718
  /** 返回物由哪些 step 供给(数据事实,下钻用);脚本无返回时缺省。 */
617
719
  sink: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
720
+ /**
721
+ * 还开着的留白,源序(docs/dynamic-workflow/presentation.md「The display contract」)。一处留白
722
+ * 就是一个阶段,所以上界与阶段表同值;补过的留白不在这里,它写进来的阶段与站点带 `fill`。
723
+ * 零处时整字段缺席。
724
+ */
725
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
726
+ /** 留白的站点 id(名字键 `hole#<8 位十六进制>`),也是它作为阶段的 id。 */
727
+ siteId: z.ZodString;
728
+ /** 留白的字面名。 */
729
+ name: z.ZodString;
730
+ /** 类型实参原文(`Verdict`)。 */
731
+ type: z.ZodString;
732
+ /** 它出生的阶段 id(`phases[].id`);与阶段词汇表同进同退。 */
733
+ phase: z.ZodOptional<z.ZodString>;
734
+ /** 尾留白:`return await hole(...)`,脚本的结尾还没写。 */
735
+ tail: z.ZodOptional<z.ZodLiteral<true>>;
736
+ }, "strict", z.ZodTypeAny, {
737
+ type: string;
738
+ name: string;
739
+ siteId: string;
740
+ phase?: string | undefined;
741
+ tail?: true | undefined;
742
+ }, {
743
+ type: string;
744
+ name: string;
745
+ siteId: string;
746
+ phase?: string | undefined;
747
+ tail?: true | undefined;
748
+ }>, "many">>;
618
749
  truncated: z.ZodOptional<z.ZodBoolean>;
619
750
  }, "strict", z.ZodTypeAny, {
620
751
  lanes: {
@@ -628,10 +759,11 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
628
759
  } | undefined;
629
760
  }[];
630
761
  steps: {
631
- kind: "ask" | "world-read";
632
- label: string;
633
762
  id: string;
763
+ kind: "ask" | "world-read" | "hole";
764
+ label: string;
634
765
  lane: string;
766
+ fill?: string | undefined;
635
767
  phase?: string | undefined;
636
768
  labelPattern?: {
637
769
  head?: string | undefined;
@@ -663,6 +795,7 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
663
795
  truncated?: boolean | undefined;
664
796
  phases?: {
665
797
  id: string;
798
+ fill?: string | undefined;
666
799
  name?: string | undefined;
667
800
  line?: number | undefined;
668
801
  column?: number | undefined;
@@ -673,6 +806,17 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
673
806
  to: string;
674
807
  back?: true | undefined;
675
808
  }[] | undefined;
809
+ phaseStreams?: {
810
+ from: string;
811
+ to: string;
812
+ }[] | undefined;
813
+ holes?: {
814
+ type: string;
815
+ name: string;
816
+ siteId: string;
817
+ phase?: string | undefined;
818
+ tail?: true | undefined;
819
+ }[] | undefined;
676
820
  exits?: string[] | undefined;
677
821
  sink?: string[] | undefined;
678
822
  }, {
@@ -687,10 +831,11 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
687
831
  } | undefined;
688
832
  }[];
689
833
  steps: {
690
- kind: "ask" | "world-read";
691
- label: string;
692
834
  id: string;
835
+ kind: "ask" | "world-read" | "hole";
836
+ label: string;
693
837
  lane: string;
838
+ fill?: string | undefined;
694
839
  phase?: string | undefined;
695
840
  labelPattern?: {
696
841
  head?: string | undefined;
@@ -722,6 +867,7 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
722
867
  truncated?: boolean | undefined;
723
868
  phases?: {
724
869
  id: string;
870
+ fill?: string | undefined;
725
871
  name?: string | undefined;
726
872
  line?: number | undefined;
727
873
  column?: number | undefined;
@@ -732,6 +878,17 @@ export declare const CreateWorkflowCausalityGraphSchema: z.ZodObject<{
732
878
  to: string;
733
879
  back?: true | undefined;
734
880
  }[] | undefined;
881
+ phaseStreams?: {
882
+ from: string;
883
+ to: string;
884
+ }[] | undefined;
885
+ holes?: {
886
+ type: string;
887
+ name: string;
888
+ siteId: string;
889
+ phase?: string | undefined;
890
+ tail?: true | undefined;
891
+ }[] | undefined;
735
892
  exits?: string[] | undefined;
736
893
  sink?: string[] | undefined;
737
894
  }>;
@@ -764,13 +921,13 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
764
921
  line: z.ZodNumber;
765
922
  message: z.ZodString;
766
923
  }, "strict", z.ZodTypeAny, {
767
- code: number;
768
924
  message: string;
925
+ code: number;
769
926
  line: number;
770
927
  column: number;
771
928
  }, {
772
- code: number;
773
929
  message: string;
930
+ code: number;
774
931
  line: number;
775
932
  column: number;
776
933
  }>, "many">;
@@ -779,7 +936,7 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
779
936
  causalityGraph: z.ZodOptional<z.ZodObject<{
780
937
  steps: z.ZodArray<z.ZodObject<{
781
938
  id: z.ZodString;
782
- kind: z.ZodEnum<["ask", "world-read"]>;
939
+ kind: z.ZodEnum<["ask", "world-read", "hole"]>;
783
940
  label: z.ZodString;
784
941
  /** `label` 只拿到兜底串(内联 `agent()` receiver)时,那个名字的静态形状。 */
785
942
  labelPattern: z.ZodOptional<z.ZodObject<{
@@ -810,11 +967,18 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
810
967
  */
811
968
  phase: z.ZodOptional<z.ZodString>;
812
969
  repeat: z.ZodOptional<z.ZodEnum<["stack", "serial"]>>;
970
+ /**
971
+ * 这个站点是某次留白补全写进来的:值是补全它的留白站点 id(名字键 `hole#<8 位十六进制>`);留白**自己的**阶段上是包着它的留白。时间轴据它画补全的
972
+ * 笔头与区域(docs/dynamic-workflow/presentation.md「Holes on the timeline」);没有补全过的脚本
973
+ * 一律缺席。
974
+ */
975
+ fill: z.ZodOptional<z.ZodString>;
813
976
  }, "strict", z.ZodTypeAny, {
814
- kind: "ask" | "world-read";
815
- label: string;
816
977
  id: string;
978
+ kind: "ask" | "world-read" | "hole";
979
+ label: string;
817
980
  lane: string;
981
+ fill?: string | undefined;
818
982
  phase?: string | undefined;
819
983
  labelPattern?: {
820
984
  head?: string | undefined;
@@ -826,10 +990,11 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
826
990
  source?: string | undefined;
827
991
  repeat?: "stack" | "serial" | undefined;
828
992
  }, {
829
- kind: "ask" | "world-read";
830
- label: string;
831
993
  id: string;
994
+ kind: "ask" | "world-read" | "hole";
995
+ label: string;
832
996
  lane: string;
997
+ fill?: string | undefined;
833
998
  phase?: string | undefined;
834
999
  labelPattern?: {
835
1000
  head?: string | undefined;
@@ -952,14 +1117,18 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
952
1117
  * 侧栏迷你轨道据此画双线段。
953
1118
  */
954
1119
  alongside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1120
+ /** 这个阶段是某次留白补全写进来的:值是补全它的留白站点 id(同 `Step.fill`)。 */
1121
+ fill: z.ZodOptional<z.ZodString>;
955
1122
  }, "strict", z.ZodTypeAny, {
956
1123
  id: string;
1124
+ fill?: string | undefined;
957
1125
  name?: string | undefined;
958
1126
  line?: number | undefined;
959
1127
  column?: number | undefined;
960
1128
  alongside?: string[] | undefined;
961
1129
  }, {
962
1130
  id: string;
1131
+ fill?: string | undefined;
963
1132
  name?: string | undefined;
964
1133
  line?: number | undefined;
965
1134
  column?: number | undefined;
@@ -978,6 +1147,20 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
978
1147
  to: string;
979
1148
  back?: true | undefined;
980
1149
  }>, "many">>;
1150
+ /**
1151
+ * 阶段流:因果图阶段商里两端互为 `alongside` 的 `data` 边(bounds 层求得),与词汇表同进同退,
1152
+ * 组内没有时缺席。时间线据它把流水线的各阶段从带里拿出来排成一条线,画成流轨。
1153
+ */
1154
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
1155
+ from: z.ZodString;
1156
+ to: z.ZodString;
1157
+ }, "strict", z.ZodTypeAny, {
1158
+ from: string;
1159
+ to: string;
1160
+ }, {
1161
+ from: string;
1162
+ to: string;
1163
+ }>, "many">>;
981
1164
  /**
982
1165
  * 控制流可以在其后正常完成的阶段(控制流图阶段商里指向 sink 终端的边的源),阶段表序。
983
1166
  * 阶段视图的「阶段 → 返回物」箭头读它,让那张画面上的每条箭头都是控制流。组内可为空
@@ -986,6 +1169,35 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
986
1169
  exits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
987
1170
  /** 返回物由哪些 step 供给(数据事实,下钻用);脚本无返回时缺省。 */
988
1171
  sink: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1172
+ /**
1173
+ * 还开着的留白,源序(docs/dynamic-workflow/presentation.md「The display contract」)。一处留白
1174
+ * 就是一个阶段,所以上界与阶段表同值;补过的留白不在这里,它写进来的阶段与站点带 `fill`。
1175
+ * 零处时整字段缺席。
1176
+ */
1177
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1178
+ /** 留白的站点 id(名字键 `hole#<8 位十六进制>`),也是它作为阶段的 id。 */
1179
+ siteId: z.ZodString;
1180
+ /** 留白的字面名。 */
1181
+ name: z.ZodString;
1182
+ /** 类型实参原文(`Verdict`)。 */
1183
+ type: z.ZodString;
1184
+ /** 它出生的阶段 id(`phases[].id`);与阶段词汇表同进同退。 */
1185
+ phase: z.ZodOptional<z.ZodString>;
1186
+ /** 尾留白:`return await hole(...)`,脚本的结尾还没写。 */
1187
+ tail: z.ZodOptional<z.ZodLiteral<true>>;
1188
+ }, "strict", z.ZodTypeAny, {
1189
+ type: string;
1190
+ name: string;
1191
+ siteId: string;
1192
+ phase?: string | undefined;
1193
+ tail?: true | undefined;
1194
+ }, {
1195
+ type: string;
1196
+ name: string;
1197
+ siteId: string;
1198
+ phase?: string | undefined;
1199
+ tail?: true | undefined;
1200
+ }>, "many">>;
989
1201
  truncated: z.ZodOptional<z.ZodBoolean>;
990
1202
  }, "strict", z.ZodTypeAny, {
991
1203
  lanes: {
@@ -999,10 +1211,11 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
999
1211
  } | undefined;
1000
1212
  }[];
1001
1213
  steps: {
1002
- kind: "ask" | "world-read";
1003
- label: string;
1004
1214
  id: string;
1215
+ kind: "ask" | "world-read" | "hole";
1216
+ label: string;
1005
1217
  lane: string;
1218
+ fill?: string | undefined;
1006
1219
  phase?: string | undefined;
1007
1220
  labelPattern?: {
1008
1221
  head?: string | undefined;
@@ -1034,6 +1247,7 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1034
1247
  truncated?: boolean | undefined;
1035
1248
  phases?: {
1036
1249
  id: string;
1250
+ fill?: string | undefined;
1037
1251
  name?: string | undefined;
1038
1252
  line?: number | undefined;
1039
1253
  column?: number | undefined;
@@ -1044,6 +1258,17 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1044
1258
  to: string;
1045
1259
  back?: true | undefined;
1046
1260
  }[] | undefined;
1261
+ phaseStreams?: {
1262
+ from: string;
1263
+ to: string;
1264
+ }[] | undefined;
1265
+ holes?: {
1266
+ type: string;
1267
+ name: string;
1268
+ siteId: string;
1269
+ phase?: string | undefined;
1270
+ tail?: true | undefined;
1271
+ }[] | undefined;
1047
1272
  exits?: string[] | undefined;
1048
1273
  sink?: string[] | undefined;
1049
1274
  }, {
@@ -1058,10 +1283,11 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1058
1283
  } | undefined;
1059
1284
  }[];
1060
1285
  steps: {
1061
- kind: "ask" | "world-read";
1062
- label: string;
1063
1286
  id: string;
1287
+ kind: "ask" | "world-read" | "hole";
1288
+ label: string;
1064
1289
  lane: string;
1290
+ fill?: string | undefined;
1065
1291
  phase?: string | undefined;
1066
1292
  labelPattern?: {
1067
1293
  head?: string | undefined;
@@ -1093,6 +1319,7 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1093
1319
  truncated?: boolean | undefined;
1094
1320
  phases?: {
1095
1321
  id: string;
1322
+ fill?: string | undefined;
1096
1323
  name?: string | undefined;
1097
1324
  line?: number | undefined;
1098
1325
  column?: number | undefined;
@@ -1103,6 +1330,17 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1103
1330
  to: string;
1104
1331
  back?: true | undefined;
1105
1332
  }[] | undefined;
1333
+ phaseStreams?: {
1334
+ from: string;
1335
+ to: string;
1336
+ }[] | undefined;
1337
+ holes?: {
1338
+ type: string;
1339
+ name: string;
1340
+ siteId: string;
1341
+ phase?: string | undefined;
1342
+ tail?: true | undefined;
1343
+ }[] | undefined;
1106
1344
  exits?: string[] | undefined;
1107
1345
  sink?: string[] | undefined;
1108
1346
  }>>;
@@ -1111,41 +1349,70 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1111
1349
  /** 后台任务 id ≡ taskId ≡ runId(取消与状态查询都以它为键)。 */
1112
1350
  backgroundTaskId: z.ZodOptional<z.ZodString>;
1113
1351
  /**
1114
- * `AmendWorkflow` 只改并发、就地生效时才在场:**没有**新 run,所以既没有 `status: "backgrounded"` 也没有
1352
+ * `AmendWorkflow` 只改并发、就地生效时才在场(docs/dynamic-workflow/launch.md「Changing only
1353
+ * the parallelism of a live run」):**没有**新 run,所以既没有 `status: "backgrounded"` 也没有
1115
1354
  * `backgroundTaskId`,run 还是调用里那一个。
1116
1355
  *
1117
1356
  * 是一个显式的块而不是让消费方按形状去猜:「ok 且没有 status」在这个工具上还有别的来路
1118
- * (没有 run 端口时的「只 typecheck」)。数都是绝对值,`maxConcurrency === ceiling` 即
1357
+ * (没有 run 端口时的「只 typecheck」)。数都是绝对值,`maxConcurrency === defaultConcurrency` 即
1119
1358
  * 「这个 run 没有自己的界」。
1120
1359
  *
1121
1360
  * ⚠ 这条事实**不跨 v4**:协议的 `toolOutputSchema` 只带 `text` / `display` / `truncated`,
1122
- * 所以它服务的是 CLI/TUI、进程内消费方,桌面 UI 读不到它。
1361
+ * 所以它服务的是 CLI/TUI、进程内消费方与契约测试,桌面 UI 读不到它。
1123
1362
  */
1124
1363
  retuned: z.ZodOptional<z.ZodObject<{
1125
1364
  runId: z.ZodString;
1126
1365
  maxConcurrency: z.ZodNumber;
1127
1366
  previous: z.ZodNumber;
1128
- ceiling: z.ZodNumber;
1367
+ defaultConcurrency: z.ZodNumber;
1129
1368
  }, "strict", z.ZodTypeAny, {
1130
1369
  runId: string;
1131
- ceiling: number;
1132
1370
  maxConcurrency: number;
1133
1371
  previous: number;
1372
+ defaultConcurrency: number;
1134
1373
  }, {
1135
1374
  runId: string;
1136
- ceiling: number;
1137
1375
  maxConcurrency: number;
1138
1376
  previous: number;
1377
+ defaultConcurrency: number;
1378
+ }>>;
1379
+ /**
1380
+ * `FillWorkflowHole` 补的是哪处留白(docs/dynamic-workflow/launch.md「The `FillWorkflowHole` tool」):
1381
+ * 站点 id 与**名字**,外加草稿路径与行号。成功与被拒都在场,且**跨 v4**——display 投影原样带上它,
1382
+ * 工具行靠它给自己起名。不能从行的入参读:transcript 存的是模型自己的入参,resolveInput 回填的
1383
+ * `hole` 块只给权限规则与 handler 看,到不了行(2026-09-28 首次接龙实测:行标题成了留白的站点 id)。
1384
+ */
1385
+ fill: z.ZodOptional<z.ZodObject<{
1386
+ siteId: z.ZodString;
1387
+ name: z.ZodString;
1388
+ draftPath: z.ZodOptional<z.ZodString>;
1389
+ line: z.ZodOptional<z.ZodNumber>;
1390
+ }, "strict", z.ZodTypeAny, {
1391
+ name: string;
1392
+ siteId: string;
1393
+ line?: number | undefined;
1394
+ draftPath?: string | undefined;
1395
+ }, {
1396
+ name: string;
1397
+ siteId: string;
1398
+ line?: number | undefined;
1399
+ draftPath?: string | undefined;
1139
1400
  }>>;
1140
1401
  }, "strict", z.ZodTypeAny, {
1141
1402
  ok: boolean;
1142
1403
  diagnostics: {
1143
- code: number;
1144
1404
  message: string;
1405
+ code: number;
1145
1406
  line: number;
1146
1407
  column: number;
1147
1408
  }[];
1148
1409
  response: string;
1410
+ fill?: {
1411
+ name: string;
1412
+ siteId: string;
1413
+ line?: number | undefined;
1414
+ draftPath?: string | undefined;
1415
+ } | undefined;
1149
1416
  backgroundTaskId?: string | undefined;
1150
1417
  status?: "backgrounded" | undefined;
1151
1418
  causalityGraph?: {
@@ -1160,10 +1427,11 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1160
1427
  } | undefined;
1161
1428
  }[];
1162
1429
  steps: {
1163
- kind: "ask" | "world-read";
1164
- label: string;
1165
1430
  id: string;
1431
+ kind: "ask" | "world-read" | "hole";
1432
+ label: string;
1166
1433
  lane: string;
1434
+ fill?: string | undefined;
1167
1435
  phase?: string | undefined;
1168
1436
  labelPattern?: {
1169
1437
  head?: string | undefined;
@@ -1195,6 +1463,7 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1195
1463
  truncated?: boolean | undefined;
1196
1464
  phases?: {
1197
1465
  id: string;
1466
+ fill?: string | undefined;
1198
1467
  name?: string | undefined;
1199
1468
  line?: number | undefined;
1200
1469
  column?: number | undefined;
@@ -1205,24 +1474,41 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1205
1474
  to: string;
1206
1475
  back?: true | undefined;
1207
1476
  }[] | undefined;
1477
+ phaseStreams?: {
1478
+ from: string;
1479
+ to: string;
1480
+ }[] | undefined;
1481
+ holes?: {
1482
+ type: string;
1483
+ name: string;
1484
+ siteId: string;
1485
+ phase?: string | undefined;
1486
+ tail?: true | undefined;
1487
+ }[] | undefined;
1208
1488
  exits?: string[] | undefined;
1209
1489
  sink?: string[] | undefined;
1210
1490
  } | undefined;
1211
1491
  retuned?: {
1212
1492
  runId: string;
1213
- ceiling: number;
1214
1493
  maxConcurrency: number;
1215
1494
  previous: number;
1495
+ defaultConcurrency: number;
1216
1496
  } | undefined;
1217
1497
  }, {
1218
1498
  ok: boolean;
1219
1499
  diagnostics: {
1220
- code: number;
1221
1500
  message: string;
1501
+ code: number;
1222
1502
  line: number;
1223
1503
  column: number;
1224
1504
  }[];
1225
1505
  response: string;
1506
+ fill?: {
1507
+ name: string;
1508
+ siteId: string;
1509
+ line?: number | undefined;
1510
+ draftPath?: string | undefined;
1511
+ } | undefined;
1226
1512
  backgroundTaskId?: string | undefined;
1227
1513
  status?: "backgrounded" | undefined;
1228
1514
  causalityGraph?: {
@@ -1237,10 +1523,11 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1237
1523
  } | undefined;
1238
1524
  }[];
1239
1525
  steps: {
1240
- kind: "ask" | "world-read";
1241
- label: string;
1242
1526
  id: string;
1527
+ kind: "ask" | "world-read" | "hole";
1528
+ label: string;
1243
1529
  lane: string;
1530
+ fill?: string | undefined;
1244
1531
  phase?: string | undefined;
1245
1532
  labelPattern?: {
1246
1533
  head?: string | undefined;
@@ -1272,6 +1559,7 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1272
1559
  truncated?: boolean | undefined;
1273
1560
  phases?: {
1274
1561
  id: string;
1562
+ fill?: string | undefined;
1275
1563
  name?: string | undefined;
1276
1564
  line?: number | undefined;
1277
1565
  column?: number | undefined;
@@ -1282,14 +1570,25 @@ export declare const CreateWorkflowOutputSchema: z.ZodObject<{
1282
1570
  to: string;
1283
1571
  back?: true | undefined;
1284
1572
  }[] | undefined;
1573
+ phaseStreams?: {
1574
+ from: string;
1575
+ to: string;
1576
+ }[] | undefined;
1577
+ holes?: {
1578
+ type: string;
1579
+ name: string;
1580
+ siteId: string;
1581
+ phase?: string | undefined;
1582
+ tail?: true | undefined;
1583
+ }[] | undefined;
1285
1584
  exits?: string[] | undefined;
1286
1585
  sink?: string[] | undefined;
1287
1586
  } | undefined;
1288
1587
  retuned?: {
1289
1588
  runId: string;
1290
- ceiling: number;
1291
1589
  maxConcurrency: number;
1292
1590
  previous: number;
1591
+ defaultConcurrency: number;
1293
1592
  } | undefined;
1294
1593
  }>;
1295
1594
  export type CreateWorkflowOutput = z.infer<typeof CreateWorkflowOutputSchema>;