@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
@@ -0,0 +1,729 @@
1
+ import { z } from "zod";
2
+ export declare const FILL_WORKFLOW_HOLE_TOOL_NAME = "FillWorkflowHole";
3
+ /**
4
+ * 「恰好给一个函数体来源」的违规说明。与 `CREATE_WORKFLOW_SOURCE_ERROR` 同一个位置、同一种语气;
5
+ * 与 AmendWorkflow 不同的是两个都不给在这里**也是**违规——没有可沿用的函数体。
6
+ */
7
+ export declare const FILL_WORKFLOW_HOLE_SOURCE_ERROR = "Provide exactly one body source: `script` for the hole's statements written inline, or `path` for a file holding them (usually the fill file a rejected attempt was saved to). Passing both, or neither, is ambiguous.";
8
+ /**
9
+ * resolveInput 回填的留白事实(docs/dynamic-workflow/launch.md「Approval」)。
10
+ *
11
+ * 权限判定(本会话的 run 免确认)与确认窗(留白的名字与类型、草稿路径)都读它,而两处都在
12
+ * handler 之前、且必须同步——所以由 resolveInput(异步、全流程唯一一次读端口)算好放进入参。
13
+ * 归一化**无条件覆盖**:模型伪造它是无效的(AmendWorkflow 的 `predecessor` 同一条先例)。
14
+ *
15
+ * `owned_by_this_session` 已折进 amend 规则的第二个条件:run 归本会话**且**不是用户亲手停下的。
16
+ * 一个被用户停下的 run 不可能仍在留白处等待,所以这一位在实践上只会因归属为假。
17
+ */
18
+ export declare const FillWorkflowHoleHoleSchema: z.ZodObject<{
19
+ /** 留白的字面名(`hole<T>("决定分组", …)` 的 `"决定分组"`)。 */
20
+ name: z.ZodString;
21
+ /** 留白的类型实参原文(`Verdict`、`string[]`),照脚本写法。 */
22
+ type: z.ZodString;
23
+ /** run 的草稿文件(绝对路径);run 没记过文件时缺席。 */
24
+ draft_path: z.ZodOptional<z.ZodString>;
25
+ /** 留白调用在草稿里的行号(1 起);读不到时缺席。 */
26
+ line: z.ZodOptional<z.ZodNumber>;
27
+ owned_by_this_session: z.ZodBoolean;
28
+ }, "strict", z.ZodTypeAny, {
29
+ type: string;
30
+ name: string;
31
+ owned_by_this_session: boolean;
32
+ line?: number | undefined;
33
+ draft_path?: string | undefined;
34
+ }, {
35
+ type: string;
36
+ name: string;
37
+ owned_by_this_session: boolean;
38
+ line?: number | undefined;
39
+ draft_path?: string | undefined;
40
+ }>;
41
+ export type FillWorkflowHoleHole = z.infer<typeof FillWorkflowHoleHoleSchema>;
42
+ /**
43
+ * 「这个 run 归本会话、且不是用户亲手停下的」——免确认的 owner 规则
44
+ * (docs/dynamic-workflow/launch.md「Approval」,读的是「Amending this session's runs」那条)。
45
+ *
46
+ * 与 `isAmendWorkflowOwnedPredecessor` 同一条论证:住在契约里,权限服务与 handler 读同一份谓词。
47
+ * 收 `unknown`:权限服务拿到的是还没解析的工具入参,handler 拿到的是解析好的事实块。
48
+ */
49
+ export declare function isFillWorkflowHoleOwnedRun(hole: unknown): boolean;
50
+ /**
51
+ * 运行时入参:模型面那些键 + 回填的 `hole`。`.strict()`:任何旧拼写在这里都是可见错误。
52
+ * 归一化后 `script`(函数体的字节)与 `path` 可以同时在场——`path` 提交读成 `script`、路径留作
53
+ * 来龙去脉,与 AmendWorkflow 同一条「读一次、只读一次」纪律。
54
+ */
55
+ export declare const FillWorkflowHoleInputSchema: z.ZodObject<{
56
+ run_id: z.ZodString;
57
+ hole_id: z.ZodString;
58
+ /**
59
+ * 函数体**只有语句**:不含 `hole(...)` 调用、不含箭头、不含它周围的脚本。工具把它拼进 run 存档的
60
+ * 脚本作为留白的函数体再整体编译(docs/dynamic-workflow/launch.md「Input and output」)。
61
+ */
62
+ script: z.ZodOptional<z.ZodString>;
63
+ /**
64
+ * 被拒绝的一次尝试的回程(「The fill file」):内联提交被写到 fill 文件,诊断给的是那个文件的行号,
65
+ * 下一次只改一行再把同一个路径交回来。
66
+ */
67
+ path: z.ZodOptional<z.ZodString>;
68
+ } & {
69
+ hole: z.ZodOptional<z.ZodObject<{
70
+ /** 留白的字面名(`hole<T>("决定分组", …)` 的 `"决定分组"`)。 */
71
+ name: z.ZodString;
72
+ /** 留白的类型实参原文(`Verdict`、`string[]`),照脚本写法。 */
73
+ type: z.ZodString;
74
+ /** run 的草稿文件(绝对路径);run 没记过文件时缺席。 */
75
+ draft_path: z.ZodOptional<z.ZodString>;
76
+ /** 留白调用在草稿里的行号(1 起);读不到时缺席。 */
77
+ line: z.ZodOptional<z.ZodNumber>;
78
+ owned_by_this_session: z.ZodBoolean;
79
+ }, "strict", z.ZodTypeAny, {
80
+ type: string;
81
+ name: string;
82
+ owned_by_this_session: boolean;
83
+ line?: number | undefined;
84
+ draft_path?: string | undefined;
85
+ }, {
86
+ type: string;
87
+ name: string;
88
+ owned_by_this_session: boolean;
89
+ line?: number | undefined;
90
+ draft_path?: string | undefined;
91
+ }>>;
92
+ }, "strict", z.ZodTypeAny, {
93
+ run_id: string;
94
+ hole_id: string;
95
+ path?: string | undefined;
96
+ script?: string | undefined;
97
+ hole?: {
98
+ type: string;
99
+ name: string;
100
+ owned_by_this_session: boolean;
101
+ line?: number | undefined;
102
+ draft_path?: string | undefined;
103
+ } | undefined;
104
+ }, {
105
+ run_id: string;
106
+ hole_id: string;
107
+ path?: string | undefined;
108
+ script?: string | undefined;
109
+ hole?: {
110
+ type: string;
111
+ name: string;
112
+ owned_by_this_session: boolean;
113
+ line?: number | undefined;
114
+ draft_path?: string | undefined;
115
+ } | undefined;
116
+ }>;
117
+ export type FillWorkflowHoleInput = z.infer<typeof FillWorkflowHoleInputSchema>;
118
+ /** 交给模型的 JSON schema:不含 `hole`。 */
119
+ export declare const FillWorkflowHoleInputJsonSchema: import("../index.js").JsonSchema;
120
+ /**
121
+ * 输出**就是** `CreateWorkflowOutput`(同一个 schema 对象,不是拷贝):display 载荷因此在协议上
122
+ * 与启动行同形,UI 的 CreateWorkflow 行渲染器按工具名选中本工具的行。补全不启动任何东西,所以
123
+ * `status: "backgrounded"` 与 `backgroundTaskId` 在这里永远缺席。
124
+ */
125
+ export declare const FillWorkflowHoleOutputSchema: z.ZodObject<{
126
+ diagnostics: z.ZodArray<z.ZodObject<{
127
+ code: z.ZodNumber;
128
+ column: z.ZodNumber;
129
+ line: z.ZodNumber;
130
+ message: z.ZodString;
131
+ }, "strict", z.ZodTypeAny, {
132
+ message: string;
133
+ code: number;
134
+ line: number;
135
+ column: number;
136
+ }, {
137
+ message: string;
138
+ code: number;
139
+ line: number;
140
+ column: number;
141
+ }>, "many">;
142
+ ok: z.ZodBoolean;
143
+ response: z.ZodString;
144
+ causalityGraph: z.ZodOptional<z.ZodObject<{
145
+ steps: z.ZodArray<z.ZodObject<{
146
+ id: z.ZodString;
147
+ kind: z.ZodEnum<["ask", "world-read", "hole"]>;
148
+ label: z.ZodString;
149
+ labelPattern: z.ZodOptional<z.ZodObject<{
150
+ head: z.ZodOptional<z.ZodString>;
151
+ tail: z.ZodOptional<z.ZodString>;
152
+ }, "strict", z.ZodTypeAny, {
153
+ head?: string | undefined;
154
+ tail?: string | undefined;
155
+ }, {
156
+ head?: string | undefined;
157
+ tail?: string | undefined;
158
+ }>>;
159
+ line: z.ZodOptional<z.ZodNumber>;
160
+ column: z.ZodOptional<z.ZodNumber>;
161
+ lane: z.ZodString;
162
+ lanes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
163
+ source: z.ZodOptional<z.ZodString>;
164
+ phase: z.ZodOptional<z.ZodString>;
165
+ repeat: z.ZodOptional<z.ZodEnum<["stack", "serial"]>>;
166
+ fill: z.ZodOptional<z.ZodString>;
167
+ }, "strict", z.ZodTypeAny, {
168
+ id: string;
169
+ kind: "ask" | "world-read" | "hole";
170
+ label: string;
171
+ lane: string;
172
+ fill?: string | undefined;
173
+ phase?: string | undefined;
174
+ labelPattern?: {
175
+ head?: string | undefined;
176
+ tail?: string | undefined;
177
+ } | undefined;
178
+ line?: number | undefined;
179
+ column?: number | undefined;
180
+ lanes?: string[] | undefined;
181
+ source?: string | undefined;
182
+ repeat?: "stack" | "serial" | undefined;
183
+ }, {
184
+ id: string;
185
+ kind: "ask" | "world-read" | "hole";
186
+ label: string;
187
+ lane: string;
188
+ fill?: string | undefined;
189
+ phase?: string | undefined;
190
+ labelPattern?: {
191
+ head?: string | undefined;
192
+ tail?: string | undefined;
193
+ } | undefined;
194
+ line?: number | undefined;
195
+ column?: number | undefined;
196
+ lanes?: string[] | undefined;
197
+ source?: string | undefined;
198
+ repeat?: "stack" | "serial" | undefined;
199
+ }>, "many">;
200
+ lanes: z.ZodArray<z.ZodObject<{
201
+ id: z.ZodString;
202
+ name: z.ZodOptional<z.ZodString>;
203
+ namePattern: z.ZodOptional<z.ZodObject<{
204
+ head: z.ZodOptional<z.ZodString>;
205
+ tail: z.ZodOptional<z.ZodString>;
206
+ }, "strict", z.ZodTypeAny, {
207
+ head?: string | undefined;
208
+ tail?: string | undefined;
209
+ }, {
210
+ head?: string | undefined;
211
+ tail?: string | undefined;
212
+ }>>;
213
+ line: z.ZodOptional<z.ZodNumber>;
214
+ column: z.ZodOptional<z.ZodNumber>;
215
+ }, "strict", z.ZodTypeAny, {
216
+ id: string;
217
+ name?: string | undefined;
218
+ line?: number | undefined;
219
+ column?: number | undefined;
220
+ namePattern?: {
221
+ head?: string | undefined;
222
+ tail?: string | undefined;
223
+ } | undefined;
224
+ }, {
225
+ id: string;
226
+ name?: string | undefined;
227
+ line?: number | undefined;
228
+ column?: number | undefined;
229
+ namePattern?: {
230
+ head?: string | undefined;
231
+ tail?: string | undefined;
232
+ } | undefined;
233
+ }>, "many">;
234
+ participants: z.ZodArray<z.ZodObject<{
235
+ id: z.ZodString;
236
+ phase: z.ZodString;
237
+ lane: z.ZodString;
238
+ steps: z.ZodArray<z.ZodString, "many">;
239
+ member: z.ZodOptional<z.ZodObject<{
240
+ index: z.ZodNumber;
241
+ of: z.ZodNumber;
242
+ }, "strict", z.ZodTypeAny, {
243
+ index: number;
244
+ of: number;
245
+ }, {
246
+ index: number;
247
+ of: number;
248
+ }>>;
249
+ many: z.ZodOptional<z.ZodLiteral<true>>;
250
+ }, "strict", z.ZodTypeAny, {
251
+ id: string;
252
+ phase: string;
253
+ lane: string;
254
+ steps: string[];
255
+ member?: {
256
+ index: number;
257
+ of: number;
258
+ } | undefined;
259
+ many?: true | undefined;
260
+ }, {
261
+ id: string;
262
+ phase: string;
263
+ lane: string;
264
+ steps: string[];
265
+ member?: {
266
+ index: number;
267
+ of: number;
268
+ } | undefined;
269
+ many?: true | undefined;
270
+ }>, "many">;
271
+ handoffs: z.ZodArray<z.ZodObject<{
272
+ from: z.ZodString;
273
+ to: z.ZodString;
274
+ back: z.ZodOptional<z.ZodLiteral<true>>;
275
+ } & {
276
+ types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
277
+ }, "strict", z.ZodTypeAny, {
278
+ from: string;
279
+ to: string;
280
+ back?: true | undefined;
281
+ types?: string[] | undefined;
282
+ }, {
283
+ from: string;
284
+ to: string;
285
+ back?: true | undefined;
286
+ types?: string[] | undefined;
287
+ }>, "many">;
288
+ phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
289
+ id: z.ZodString;
290
+ name: z.ZodOptional<z.ZodString>;
291
+ line: z.ZodOptional<z.ZodNumber>;
292
+ column: z.ZodOptional<z.ZodNumber>;
293
+ alongside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
294
+ fill: z.ZodOptional<z.ZodString>;
295
+ }, "strict", z.ZodTypeAny, {
296
+ id: string;
297
+ fill?: string | undefined;
298
+ name?: string | undefined;
299
+ line?: number | undefined;
300
+ column?: number | undefined;
301
+ alongside?: string[] | undefined;
302
+ }, {
303
+ id: string;
304
+ fill?: string | undefined;
305
+ name?: string | undefined;
306
+ line?: number | undefined;
307
+ column?: number | undefined;
308
+ alongside?: string[] | undefined;
309
+ }>, "many">>;
310
+ phaseEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
311
+ from: z.ZodString;
312
+ to: z.ZodString;
313
+ back: z.ZodOptional<z.ZodLiteral<true>>;
314
+ }, "strict", z.ZodTypeAny, {
315
+ from: string;
316
+ to: string;
317
+ back?: true | undefined;
318
+ }, {
319
+ from: string;
320
+ to: string;
321
+ back?: true | undefined;
322
+ }>, "many">>;
323
+ phaseStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
324
+ from: z.ZodString;
325
+ to: z.ZodString;
326
+ }, "strict", z.ZodTypeAny, {
327
+ from: string;
328
+ to: string;
329
+ }, {
330
+ from: string;
331
+ to: string;
332
+ }>, "many">>;
333
+ exits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
334
+ sink: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
335
+ holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
336
+ siteId: z.ZodString;
337
+ name: z.ZodString;
338
+ type: z.ZodString;
339
+ phase: z.ZodOptional<z.ZodString>;
340
+ tail: z.ZodOptional<z.ZodLiteral<true>>;
341
+ }, "strict", z.ZodTypeAny, {
342
+ type: string;
343
+ name: string;
344
+ siteId: string;
345
+ phase?: string | undefined;
346
+ tail?: true | undefined;
347
+ }, {
348
+ type: string;
349
+ name: string;
350
+ siteId: string;
351
+ phase?: string | undefined;
352
+ tail?: true | undefined;
353
+ }>, "many">>;
354
+ truncated: z.ZodOptional<z.ZodBoolean>;
355
+ }, "strict", z.ZodTypeAny, {
356
+ lanes: {
357
+ id: string;
358
+ name?: string | undefined;
359
+ line?: number | undefined;
360
+ column?: number | undefined;
361
+ namePattern?: {
362
+ head?: string | undefined;
363
+ tail?: string | undefined;
364
+ } | undefined;
365
+ }[];
366
+ steps: {
367
+ id: string;
368
+ kind: "ask" | "world-read" | "hole";
369
+ label: string;
370
+ lane: string;
371
+ fill?: string | undefined;
372
+ phase?: string | undefined;
373
+ labelPattern?: {
374
+ head?: string | undefined;
375
+ tail?: string | undefined;
376
+ } | undefined;
377
+ line?: number | undefined;
378
+ column?: number | undefined;
379
+ lanes?: string[] | undefined;
380
+ source?: string | undefined;
381
+ repeat?: "stack" | "serial" | undefined;
382
+ }[];
383
+ participants: {
384
+ id: string;
385
+ phase: string;
386
+ lane: string;
387
+ steps: string[];
388
+ member?: {
389
+ index: number;
390
+ of: number;
391
+ } | undefined;
392
+ many?: true | undefined;
393
+ }[];
394
+ handoffs: {
395
+ from: string;
396
+ to: string;
397
+ back?: true | undefined;
398
+ types?: string[] | undefined;
399
+ }[];
400
+ truncated?: boolean | undefined;
401
+ phases?: {
402
+ id: string;
403
+ fill?: string | undefined;
404
+ name?: string | undefined;
405
+ line?: number | undefined;
406
+ column?: number | undefined;
407
+ alongside?: string[] | undefined;
408
+ }[] | undefined;
409
+ phaseEdges?: {
410
+ from: string;
411
+ to: string;
412
+ back?: true | undefined;
413
+ }[] | undefined;
414
+ phaseStreams?: {
415
+ from: string;
416
+ to: string;
417
+ }[] | undefined;
418
+ holes?: {
419
+ type: string;
420
+ name: string;
421
+ siteId: string;
422
+ phase?: string | undefined;
423
+ tail?: true | undefined;
424
+ }[] | undefined;
425
+ exits?: string[] | undefined;
426
+ sink?: string[] | undefined;
427
+ }, {
428
+ lanes: {
429
+ id: string;
430
+ name?: string | undefined;
431
+ line?: number | undefined;
432
+ column?: number | undefined;
433
+ namePattern?: {
434
+ head?: string | undefined;
435
+ tail?: string | undefined;
436
+ } | undefined;
437
+ }[];
438
+ steps: {
439
+ id: string;
440
+ kind: "ask" | "world-read" | "hole";
441
+ label: string;
442
+ lane: string;
443
+ fill?: string | undefined;
444
+ phase?: string | undefined;
445
+ labelPattern?: {
446
+ head?: string | undefined;
447
+ tail?: string | undefined;
448
+ } | undefined;
449
+ line?: number | undefined;
450
+ column?: number | undefined;
451
+ lanes?: string[] | undefined;
452
+ source?: string | undefined;
453
+ repeat?: "stack" | "serial" | undefined;
454
+ }[];
455
+ participants: {
456
+ id: string;
457
+ phase: string;
458
+ lane: string;
459
+ steps: string[];
460
+ member?: {
461
+ index: number;
462
+ of: number;
463
+ } | undefined;
464
+ many?: true | undefined;
465
+ }[];
466
+ handoffs: {
467
+ from: string;
468
+ to: string;
469
+ back?: true | undefined;
470
+ types?: string[] | undefined;
471
+ }[];
472
+ truncated?: boolean | undefined;
473
+ phases?: {
474
+ id: string;
475
+ fill?: string | undefined;
476
+ name?: string | undefined;
477
+ line?: number | undefined;
478
+ column?: number | undefined;
479
+ alongside?: string[] | undefined;
480
+ }[] | undefined;
481
+ phaseEdges?: {
482
+ from: string;
483
+ to: string;
484
+ back?: true | undefined;
485
+ }[] | undefined;
486
+ phaseStreams?: {
487
+ from: string;
488
+ to: string;
489
+ }[] | undefined;
490
+ holes?: {
491
+ type: string;
492
+ name: string;
493
+ siteId: string;
494
+ phase?: string | undefined;
495
+ tail?: true | undefined;
496
+ }[] | undefined;
497
+ exits?: string[] | undefined;
498
+ sink?: string[] | undefined;
499
+ }>>;
500
+ status: z.ZodOptional<z.ZodLiteral<"backgrounded">>;
501
+ backgroundTaskId: z.ZodOptional<z.ZodString>;
502
+ retuned: z.ZodOptional<z.ZodObject<{
503
+ runId: z.ZodString;
504
+ maxConcurrency: z.ZodNumber;
505
+ previous: z.ZodNumber;
506
+ defaultConcurrency: z.ZodNumber;
507
+ }, "strict", z.ZodTypeAny, {
508
+ runId: string;
509
+ maxConcurrency: number;
510
+ previous: number;
511
+ defaultConcurrency: number;
512
+ }, {
513
+ runId: string;
514
+ maxConcurrency: number;
515
+ previous: number;
516
+ defaultConcurrency: number;
517
+ }>>;
518
+ fill: z.ZodOptional<z.ZodObject<{
519
+ siteId: z.ZodString;
520
+ name: z.ZodString;
521
+ draftPath: z.ZodOptional<z.ZodString>;
522
+ line: z.ZodOptional<z.ZodNumber>;
523
+ }, "strict", z.ZodTypeAny, {
524
+ name: string;
525
+ siteId: string;
526
+ line?: number | undefined;
527
+ draftPath?: string | undefined;
528
+ }, {
529
+ name: string;
530
+ siteId: string;
531
+ line?: number | undefined;
532
+ draftPath?: string | undefined;
533
+ }>>;
534
+ }, "strict", z.ZodTypeAny, {
535
+ ok: boolean;
536
+ diagnostics: {
537
+ message: string;
538
+ code: number;
539
+ line: number;
540
+ column: number;
541
+ }[];
542
+ response: string;
543
+ fill?: {
544
+ name: string;
545
+ siteId: string;
546
+ line?: number | undefined;
547
+ draftPath?: string | undefined;
548
+ } | undefined;
549
+ backgroundTaskId?: string | undefined;
550
+ status?: "backgrounded" | undefined;
551
+ causalityGraph?: {
552
+ lanes: {
553
+ id: string;
554
+ name?: string | undefined;
555
+ line?: number | undefined;
556
+ column?: number | undefined;
557
+ namePattern?: {
558
+ head?: string | undefined;
559
+ tail?: string | undefined;
560
+ } | undefined;
561
+ }[];
562
+ steps: {
563
+ id: string;
564
+ kind: "ask" | "world-read" | "hole";
565
+ label: string;
566
+ lane: string;
567
+ fill?: string | undefined;
568
+ phase?: string | undefined;
569
+ labelPattern?: {
570
+ head?: string | undefined;
571
+ tail?: string | undefined;
572
+ } | undefined;
573
+ line?: number | undefined;
574
+ column?: number | undefined;
575
+ lanes?: string[] | undefined;
576
+ source?: string | undefined;
577
+ repeat?: "stack" | "serial" | undefined;
578
+ }[];
579
+ participants: {
580
+ id: string;
581
+ phase: string;
582
+ lane: string;
583
+ steps: string[];
584
+ member?: {
585
+ index: number;
586
+ of: number;
587
+ } | undefined;
588
+ many?: true | undefined;
589
+ }[];
590
+ handoffs: {
591
+ from: string;
592
+ to: string;
593
+ back?: true | undefined;
594
+ types?: string[] | undefined;
595
+ }[];
596
+ truncated?: boolean | undefined;
597
+ phases?: {
598
+ id: string;
599
+ fill?: string | undefined;
600
+ name?: string | undefined;
601
+ line?: number | undefined;
602
+ column?: number | undefined;
603
+ alongside?: string[] | undefined;
604
+ }[] | undefined;
605
+ phaseEdges?: {
606
+ from: string;
607
+ to: string;
608
+ back?: true | undefined;
609
+ }[] | undefined;
610
+ phaseStreams?: {
611
+ from: string;
612
+ to: string;
613
+ }[] | undefined;
614
+ holes?: {
615
+ type: string;
616
+ name: string;
617
+ siteId: string;
618
+ phase?: string | undefined;
619
+ tail?: true | undefined;
620
+ }[] | undefined;
621
+ exits?: string[] | undefined;
622
+ sink?: string[] | undefined;
623
+ } | undefined;
624
+ retuned?: {
625
+ runId: string;
626
+ maxConcurrency: number;
627
+ previous: number;
628
+ defaultConcurrency: number;
629
+ } | undefined;
630
+ }, {
631
+ ok: boolean;
632
+ diagnostics: {
633
+ message: string;
634
+ code: number;
635
+ line: number;
636
+ column: number;
637
+ }[];
638
+ response: string;
639
+ fill?: {
640
+ name: string;
641
+ siteId: string;
642
+ line?: number | undefined;
643
+ draftPath?: string | undefined;
644
+ } | undefined;
645
+ backgroundTaskId?: string | undefined;
646
+ status?: "backgrounded" | undefined;
647
+ causalityGraph?: {
648
+ lanes: {
649
+ id: string;
650
+ name?: string | undefined;
651
+ line?: number | undefined;
652
+ column?: number | undefined;
653
+ namePattern?: {
654
+ head?: string | undefined;
655
+ tail?: string | undefined;
656
+ } | undefined;
657
+ }[];
658
+ steps: {
659
+ id: string;
660
+ kind: "ask" | "world-read" | "hole";
661
+ label: string;
662
+ lane: string;
663
+ fill?: string | undefined;
664
+ phase?: string | undefined;
665
+ labelPattern?: {
666
+ head?: string | undefined;
667
+ tail?: string | undefined;
668
+ } | undefined;
669
+ line?: number | undefined;
670
+ column?: number | undefined;
671
+ lanes?: string[] | undefined;
672
+ source?: string | undefined;
673
+ repeat?: "stack" | "serial" | undefined;
674
+ }[];
675
+ participants: {
676
+ id: string;
677
+ phase: string;
678
+ lane: string;
679
+ steps: string[];
680
+ member?: {
681
+ index: number;
682
+ of: number;
683
+ } | undefined;
684
+ many?: true | undefined;
685
+ }[];
686
+ handoffs: {
687
+ from: string;
688
+ to: string;
689
+ back?: true | undefined;
690
+ types?: string[] | undefined;
691
+ }[];
692
+ truncated?: boolean | undefined;
693
+ phases?: {
694
+ id: string;
695
+ fill?: string | undefined;
696
+ name?: string | undefined;
697
+ line?: number | undefined;
698
+ column?: number | undefined;
699
+ alongside?: string[] | undefined;
700
+ }[] | undefined;
701
+ phaseEdges?: {
702
+ from: string;
703
+ to: string;
704
+ back?: true | undefined;
705
+ }[] | undefined;
706
+ phaseStreams?: {
707
+ from: string;
708
+ to: string;
709
+ }[] | undefined;
710
+ holes?: {
711
+ type: string;
712
+ name: string;
713
+ siteId: string;
714
+ phase?: string | undefined;
715
+ tail?: true | undefined;
716
+ }[] | undefined;
717
+ exits?: string[] | undefined;
718
+ sink?: string[] | undefined;
719
+ } | undefined;
720
+ retuned?: {
721
+ runId: string;
722
+ maxConcurrency: number;
723
+ previous: number;
724
+ defaultConcurrency: number;
725
+ } | undefined;
726
+ }>;
727
+ export type FillWorkflowHoleOutput = z.infer<typeof FillWorkflowHoleOutputSchema>;
728
+ export declare const FillWorkflowHoleOutputJsonSchema: import("../index.js").JsonSchema;
729
+ //# sourceMappingURL=fill-workflow-hole.d.ts.map