@dipoleml/dcode-cli 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY-NOTICES.md +1081 -12
- package/dist/dcode.cjs +59253 -45604
- package/dist/packages/browser-use-plugin/README.md +12 -12
- package/dist/packages/browser-use-plugin/docs/api.json +1 -1
- package/dist/packages/browser-use-plugin/docs/overview.md +5 -4
- package/dist/packages/browser-use-plugin/docs/workflow.md +1 -1
- package/dist/packages/browser-use-plugin/scripts/build.mjs +1 -0
- package/dist/packages/browser-use-plugin/skills/control-browser/SKILL.md +10 -7
- package/dist/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
- package/dist/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
- package/dist/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
- package/dist/packages/node-repl-host/.dcode-plugin/plugin.json +1 -1
- package/dist/packages/node-repl-host/dist/mcp/server.js +9 -14
- package/dist/packages/node-repl-host/scripts/build.mjs +1 -0
- package/dist/provider/dcode-builtin.json +6612 -202
- package/node_modules/@dcode/contracts/dist/compact/index.d.ts +7 -7
- package/node_modules/@dcode/contracts/dist/config/index.d.ts +1 -1
- package/node_modules/@dcode/contracts/dist/events/event-reducer.js +1 -0
- package/node_modules/@dcode/contracts/dist/events/in-memory-session-event-store.js +3 -2
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.d.ts +8 -0
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.js +18 -0
- package/node_modules/@dcode/contracts/dist/events/session.events.d.ts +94 -16
- package/node_modules/@dcode/contracts/dist/events/session.events.js +10 -0
- package/node_modules/@dcode/contracts/dist/hooks/index.d.ts +134 -134
- package/node_modules/@dcode/contracts/dist/hooks/workspace-hook-trust.d.ts +14 -14
- package/node_modules/@dcode/contracts/dist/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/index.js +2 -0
- package/node_modules/@dcode/contracts/dist/interfaces/browser-control.port.d.ts +22 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.d.ts +92 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.js +9 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.js +7 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-workspace.port.js +8 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.d.ts +119 -18
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.js +13 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.d.ts +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.d.ts +161 -1
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.js +17 -0
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.d.ts +15 -15
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.js +1 -1
- package/node_modules/@dcode/contracts/dist/interfaces/permission.port.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.d.ts +19 -0
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.d.ts +4 -2
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.js +5 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.d.ts +92 -3
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.js +4 -1
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.d.ts +25 -0
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/model/index.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/model/index.js +5 -0
- package/node_modules/@dcode/contracts/dist/model/invocation-context.d.ts +6 -1
- package/node_modules/@dcode/contracts/dist/plugins/index.d.ts +23 -0
- package/node_modules/@dcode/contracts/dist/plugins/index.js +2 -1
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.js +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/index.d.ts +5 -1
- package/node_modules/@dcode/contracts/dist/telemetry/index.js +12 -0
- package/node_modules/@dcode/contracts/dist/tools/agent.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.d.ts +39 -15
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.js +12 -6
- package/node_modules/@dcode/contracts/dist/tools/automation.d.ts +32 -32
- package/node_modules/@dcode/contracts/dist/tools/automation.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/bash.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/bash.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.d.ts +365 -66
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.js +92 -11
- package/node_modules/@dcode/contracts/dist/tools/edit.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.js +5 -1
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.d.ts +729 -0
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.js +102 -0
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.d.ts +136 -28
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.js +36 -0
- package/node_modules/@dcode/contracts/dist/tools/grep.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/grep.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/tools/index.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/list-saved-workflows.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/list-workflow-runs.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/node-repl.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/off-peak.d.ts +3 -3
- package/node_modules/@dcode/contracts/dist/tools/off-peak.js +2 -2
- package/node_modules/@dcode/contracts/dist/tools/performance.d.ts +22 -22
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.js +6 -4
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.d.ts +86 -13
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.js +37 -6
- package/node_modules/@dcode/contracts/dist/tools/read.d.ts +38 -38
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.d.ts +21 -10
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.js +22 -2
- package/node_modules/@dcode/contracts/dist/tools/saved-workflow.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/send-message.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/skill.js +1 -0
- package/node_modules/@dcode/contracts/dist/tools/task-output.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.d.ts +1228 -259
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.js +41 -0
- package/node_modules/@dcode/contracts/dist/tools/webfetch.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/workflow-observation-display.d.ts +20 -20
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.d.ts +55 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.js +86 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/write.d.ts +18 -18
- package/node_modules/@dcode/contracts/dist/workflow/index.d.ts +98 -98
- package/node_modules/@dcode/contracts/dist/workflow/script.d.ts +12 -12
- package/node_modules/@dcode/i18n/dist/index.js +2 -2
- package/node_modules/@dcode/i18n/dist/locale.d.ts +1 -1
- package/node_modules/@dcode/i18n/dist/locale.js +4 -4
- package/node_modules/@dcode/i18n/dist/locales/en-US.js +5 -5
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.d.ts +3 -0
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.js +354 -0
- package/node_modules/@dcode/model-option-map/package.json +1 -1
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.js +6 -0
- package/node_modules/@dcode/shared/dist/attachment-source.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/attachment-source.js +4 -0
- package/node_modules/@dcode/shared/dist/background-bash-output.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/bots.d.ts +763 -15
- package/node_modules/@dcode/shared/dist/bots.js +236 -2
- package/node_modules/@dcode/shared/dist/browser-use/command-metadata.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/browser-use/commands.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/browser-use/commands.js +3 -1
- package/node_modules/@dcode/shared/dist/browser-use/nodeReplBroker.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/browser-use/result.d.ts +6 -6
- package/node_modules/@dcode/shared/dist/channel-mention.d.ts +173 -0
- package/node_modules/@dcode/shared/dist/channel-mention.js +120 -0
- package/node_modules/@dcode/shared/dist/channels.d.ts +128 -1
- package/node_modules/@dcode/shared/dist/channels.js +66 -0
- package/node_modules/@dcode/shared/dist/clientConfig.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/clientConfig.js +18 -2
- package/node_modules/@dcode/shared/dist/cloudContent.d.ts +160 -0
- package/node_modules/@dcode/shared/dist/cloudContent.js +116 -0
- package/node_modules/@dcode/shared/dist/coding-plan-subscription.d.ts +59 -0
- package/node_modules/@dcode/shared/dist/conversation-message-projection-policy.js +2 -0
- package/node_modules/@dcode/shared/dist/conversation-share.d.ts +351 -47
- package/node_modules/@dcode/shared/dist/conversation-share.js +8 -6
- package/node_modules/@dcode/shared/dist/conversationSelection.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/conversationSelection.js +30 -0
- package/node_modules/@dcode/shared/dist/database-startup.d.ts +5 -5
- package/node_modules/@dcode/shared/dist/dcode-agent-model-state.js +14 -6
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.d.ts +16 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.js +17 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-runtime.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.d.ts +1733 -318
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.js +555 -24
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.js +10 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.d.ts +30 -20
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/apply.js +12 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.d.ts +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.d.ts +359 -28
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.js +67 -45
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/controller.d.ts +170 -65
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.d.ts +20 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.js +15 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.d.ts +34 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.js +45 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.d.ts +1453 -278
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.js +45 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.js +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.d.ts +173 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.js +29 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.d.ts +731 -125
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.js +23 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.d.ts +30 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.js +35 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index.d.ts +40 -25
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.d.ts +1444 -216
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/telemetry.d.ts +62 -58
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.d.ts +185 -50
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.js +31 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.d.ts +7145 -1002
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.js +18 -5
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-assembler.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-fault.js +4 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-reassembly.js +5 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.d.ts +29 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.js +64 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.js +23 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-observation-display.d.ts +14 -14
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.d.ts +52 -8
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.js +22 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.js +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.d.ts +21 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.js +44 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.js +3 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-caps.js +5 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.d.ts +26 -19
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.js +40 -32
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.js +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.js +44 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.js +17 -10
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.d.ts +33 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.js +202 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-phases.js +10 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.js +29 -22
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-started.js +5 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-tables.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-unlisted.js +6 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.d.ts +125 -40
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.js +101 -26
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-workspace.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workspace-hook-review.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.js +49 -0
- package/node_modules/@dcode/shared/dist/dcode-slash-command-help.js +4 -4
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.js +13 -1
- package/node_modules/@dcode/shared/dist/dcode-task-types-core.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-task-types.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.d.ts +20 -1
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +98 -17
- package/node_modules/@dcode/shared/dist/desktopMenu.js +48 -48
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.d.ts +35 -6
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.js +45 -6
- package/node_modules/@dcode/shared/dist/env.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/env.js +9 -9
- package/node_modules/@dcode/shared/dist/errors.d.ts +24 -0
- package/node_modules/@dcode/shared/dist/errors.js +54 -0
- package/node_modules/@dcode/shared/dist/execution-state.d.ts +4 -2
- package/node_modules/@dcode/shared/dist/execution-state.js +1 -1
- package/node_modules/@dcode/shared/dist/feedback.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/gen-ui/contract.d.ts +140 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.js +36 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.js +196 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.js +75 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.js +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.js +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.d.ts +202 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.js +126 -0
- package/node_modules/@dcode/shared/dist/helpAppConfig.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/helpAppConfig.js +2 -2
- package/node_modules/@dcode/shared/dist/highspeed.d.ts +181 -0
- package/node_modules/@dcode/shared/dist/highspeed.js +112 -0
- package/node_modules/@dcode/shared/dist/index.d.ts +27 -5
- package/node_modules/@dcode/shared/dist/index.js +24 -2
- package/node_modules/@dcode/shared/dist/localTtft.d.ts +27 -27
- package/node_modules/@dcode/shared/dist/marketingTouch.d.ts +930 -0
- package/node_modules/@dcode/shared/dist/marketingTouch.js +170 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.d.ts +83 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.js +124 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.d.ts +241 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.js +42 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.js +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.js +64 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.d.ts +47 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.js +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.js +11 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.d.ts +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.js +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.js +73 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.d.ts +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.js +107 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.js +55 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.d.ts +78 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.js +65 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.d.ts +39 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.js +199 -0
- package/node_modules/@dcode/shared/dist/mcp.d.ts +6 -2
- package/node_modules/@dcode/shared/dist/memory.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/memory.js +2 -0
- package/node_modules/@dcode/shared/dist/model-execution.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/model-execution.js +38 -0
- package/node_modules/@dcode/shared/dist/networkCapture.d.ts +49 -0
- package/node_modules/@dcode/shared/dist/networkCapture.js +41 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.d.ts +6 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.js +16 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.js +30 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.js +96 -0
- package/node_modules/@dcode/shared/dist/node/officialPluginCache.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node/subagentMarkdownMigration.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node.js +2 -0
- package/node_modules/@dcode/shared/dist/output-style.d.ts +17 -0
- package/node_modules/@dcode/shared/dist/output-style.js +2 -0
- package/node_modules/@dcode/shared/dist/platform.d.ts +149 -1
- package/node_modules/@dcode/shared/dist/platform.js +2 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.d.ts +61 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.js +2 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.js +20 -14
- package/node_modules/@dcode/shared/dist/project-access-token-client.d.ts +42 -0
- package/node_modules/@dcode/shared/dist/project-access-token-client.js +260 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.js +9 -0
- package/node_modules/@dcode/shared/dist/project-access-token.d.ts +45 -0
- package/node_modules/@dcode/shared/dist/project-access-token.js +164 -0
- package/node_modules/@dcode/shared/dist/protocol.d.ts +41 -4
- package/node_modules/@dcode/shared/dist/protocol.js +1 -1
- package/node_modules/@dcode/shared/dist/provider-provisioning.d.ts +26 -2
- package/node_modules/@dcode/shared/dist/provider-provisioning.js +19 -3
- package/node_modules/@dcode/shared/dist/providers.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/providers.js +1 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.js +35 -1
- package/node_modules/@dcode/shared/dist/remoteAppConfig.js +1 -1
- package/node_modules/@dcode/shared/dist/remoteEnvironmentKey.js +19 -0
- package/node_modules/@dcode/shared/dist/remoteTarget.d.ts +14 -1
- package/node_modules/@dcode/shared/dist/remoteTarget.js +4 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.d.ts +27 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.js +43 -0
- package/node_modules/@dcode/shared/dist/rendererActionTrace.d.ts +35 -35
- package/node_modules/@dcode/shared/dist/request-security-edition/index.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/index.js +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.js +5 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.d.ts +19 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.js +29 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.js +80 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.d.ts +37 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.js +50 -0
- package/node_modules/@dcode/shared/dist/sessionCreateTelemetry.d.ts +3 -3
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.js +212 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.js +200 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.d.ts +82 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.js +28 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.d.ts +135 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.js +39 -0
- package/node_modules/@dcode/shared/dist/subagents-types.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/task-realtime-core.d.ts +57 -24
- package/node_modules/@dcode/shared/dist/task-realtime-core.js +8 -2
- package/node_modules/@dcode/shared/dist/test-ids-workflow.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/test-ids-workflow.js +5 -0
- package/node_modules/@dcode/shared/dist/test-ids.d.ts +25 -0
- package/node_modules/@dcode/shared/dist/test-ids.js +25 -0
- package/node_modules/@dcode/shared/dist/tool-identity.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/tool-identity.js +4 -0
- package/node_modules/@dcode/shared/dist/tool-plan-adapter.js +14 -1
- package/node_modules/@dcode/shared/dist/usage-stats.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/validation.d.ts +1461 -85
- package/node_modules/@dcode/shared/dist/validation.js +423 -14
- package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +71 -15
- package/node_modules/@dcode/shared/dist/validationAppSettings.js +74 -12
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.js +40 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.d.ts +183 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.js +562 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.d.ts +645 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.js +174 -0
- package/node_modules/@dcode/shared/package.json +5 -2
- package/node_modules/@dcode/tui/dist/app-approval-panel.js +3 -2
- package/node_modules/@dcode/tui/dist/app-approval.d.ts +3 -1
- package/node_modules/@dcode/tui/dist/app-approval.js +9 -5
- package/node_modules/@dcode/tui/dist/app-compact-timeline.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-compact-timeline.js +5 -2
- package/node_modules/@dcode/tui/dist/app-empty-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-empty-transcript.js +1 -1
- package/node_modules/@dcode/tui/dist/app-file-mentions.d.ts +2 -0
- package/node_modules/@dcode/tui/dist/app-file-mentions.js +2 -2
- package/node_modules/@dcode/tui/dist/app-input-pane.d.ts +38 -0
- package/node_modules/@dcode/tui/dist/app-input-pane.js +19 -19
- package/node_modules/@dcode/tui/dist/app-input-status.d.ts +17 -0
- package/node_modules/@dcode/tui/dist/app-input-status.js +4 -4
- package/node_modules/@dcode/tui/dist/app-input.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-input.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.d.ts +2 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-markdown.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode-command.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-mode-command.js +4 -4
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.d.ts +5 -0
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.d.ts +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.js +1 -1
- package/node_modules/@dcode/tui/dist/app-model-ref.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-model-ref.js +1 -1
- package/node_modules/@dcode/tui/dist/app-motion.d.ts +13 -0
- package/node_modules/@dcode/tui/dist/app-motion.js +17 -7
- package/node_modules/@dcode/tui/dist/app-session-event-handler.d.ts +33 -0
- package/node_modules/@dcode/tui/dist/app-session-event-handler.js +4 -4
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.js +3 -3
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.js +7 -2
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.d.ts +10 -0
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.js +4 -4
- package/node_modules/@dcode/tui/dist/app-submit.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-submit.js +1 -1
- package/node_modules/@dcode/tui/dist/app-thought-components.d.ts +7 -0
- package/node_modules/@dcode/tui/dist/app-thought-components.js +2 -2
- package/node_modules/@dcode/tui/dist/app-tool-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-tool-transcript.js +3 -0
- package/node_modules/@dcode/tui/dist/app-view.d.ts +27 -0
- package/node_modules/@dcode/tui/dist/app-view.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-card.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.js +4 -4
- package/node_modules/@dcode/tui/dist/index.js +5118 -2579
- package/node_modules/@dcode/tui/dist/tui.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/tui.js +1 -1
- package/node_modules/@dcode/tui/dist/types.d.ts +1 -1
- package/node_modules/oniguruma-parser/LICENSE +1 -1
- package/node_modules/oniguruma-parser/README.md +15 -61
- package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +4 -4
- package/node_modules/oniguruma-parser/dist/parser/parse.js +1 -1
- package/node_modules/oniguruma-parser/dist/traverser/traverse.js +1 -1
- package/node_modules/oniguruma-parser/package.json +5 -5
- package/node_modules/oniguruma-to-es/dist/cjs/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/cjs/index.js +121 -120
- package/node_modules/oniguruma-to-es/dist/cjs/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/cjs/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/cjs/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/index.js +1 -3
- package/node_modules/oniguruma-to-es/dist/esm/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/esm/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/esm/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/index.min.js +6 -6
- package/node_modules/oniguruma-to-es/package.json +5 -5
- package/package.json +5 -5
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// ============================================================
|
|
2
|
+
// FillWorkflowHole Tool - 给一个正在等代码的留白补上函数体
|
|
3
|
+
// ============================================================
|
|
4
|
+
// docs/dynamic-workflow/launch.md「The `FillWorkflowHole` tool」;引擎侧见
|
|
5
|
+
// apps/dcode-cli/packages/dynamic-workflow/docs/execution-engine.md「Holes」,端口方法
|
|
6
|
+
// `DynamicWorkflowRunPort.fillHole`(interfaces/dynamic-workflow-run.port.ts)。
|
|
7
|
+
//
|
|
8
|
+
// 与 AmendWorkflow 分成两个工具的理由:补全**什么都不启动**——run 保持它的 id、journal 与子代理,
|
|
9
|
+
// 只是在留白处长出模型写下的那一段。输出与 CreateWorkflow / AmendWorkflow 共用一个形状,好让有效
|
|
10
|
+
// 脚本的 display 载荷照启动那样骑在工具行上,run 卡取它 run id 下最新的一份。
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
import { CreateWorkflowOutputJsonSchema, CreateWorkflowOutputSchema } from "./create-workflow.js";
|
|
13
|
+
import { toToolJsonSchema } from "./json-schema.js";
|
|
14
|
+
export const FILL_WORKFLOW_HOLE_TOOL_NAME = "FillWorkflowHole";
|
|
15
|
+
/**
|
|
16
|
+
* 「恰好给一个函数体来源」的违规说明。与 `CREATE_WORKFLOW_SOURCE_ERROR` 同一个位置、同一种语气;
|
|
17
|
+
* 与 AmendWorkflow 不同的是两个都不给在这里**也是**违规——没有可沿用的函数体。
|
|
18
|
+
*/
|
|
19
|
+
export 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.";
|
|
20
|
+
/**
|
|
21
|
+
* 模型面入参。`hole` 不在这里——那是 resolveInput 回填的事实(下面),模型的 JSON schema 不列它。
|
|
22
|
+
*/
|
|
23
|
+
const FillWorkflowHoleModelInputSchema = z.object({
|
|
24
|
+
run_id: z
|
|
25
|
+
.string()
|
|
26
|
+
.min(1)
|
|
27
|
+
.describe("ID of the run that is waiting at the hole (from the hole notification)."),
|
|
28
|
+
hole_id: z
|
|
29
|
+
.string()
|
|
30
|
+
.min(1)
|
|
31
|
+
.describe("The hole's site id from the notification or from GetWorkflowRun's holes, e.g. `hole#21b40fca`."),
|
|
32
|
+
/**
|
|
33
|
+
* 函数体**只有语句**:不含 `hole(...)` 调用、不含箭头、不含它周围的脚本。工具把它拼进 run 存档的
|
|
34
|
+
* 脚本作为留白的函数体再整体编译(docs/dynamic-workflow/launch.md「Input and output」)。
|
|
35
|
+
*/
|
|
36
|
+
script: z
|
|
37
|
+
.string()
|
|
38
|
+
.min(1)
|
|
39
|
+
.optional()
|
|
40
|
+
.describe("The body: only the statements of the hole's function, inline. This OR `path`, never both. It is compiled where the hole stands and sees every binding declared before it; it must return the hole's type."),
|
|
41
|
+
/**
|
|
42
|
+
* 被拒绝的一次尝试的回程(「The fill file」):内联提交被写到 fill 文件,诊断给的是那个文件的行号,
|
|
43
|
+
* 下一次只改一行再把同一个路径交回来。
|
|
44
|
+
*/
|
|
45
|
+
path: z
|
|
46
|
+
.string()
|
|
47
|
+
.min(1)
|
|
48
|
+
.optional()
|
|
49
|
+
.describe("A file holding those statements — usually the fill file named by a rejected attempt, edited in place. This OR `script`, never both."),
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* resolveInput 回填的留白事实(docs/dynamic-workflow/launch.md「Approval」)。
|
|
53
|
+
*
|
|
54
|
+
* 权限判定(本会话的 run 免确认)与确认窗(留白的名字与类型、草稿路径)都读它,而两处都在
|
|
55
|
+
* handler 之前、且必须同步——所以由 resolveInput(异步、全流程唯一一次读端口)算好放进入参。
|
|
56
|
+
* 归一化**无条件覆盖**:模型伪造它是无效的(AmendWorkflow 的 `predecessor` 同一条先例)。
|
|
57
|
+
*
|
|
58
|
+
* `owned_by_this_session` 已折进 amend 规则的第二个条件:run 归本会话**且**不是用户亲手停下的。
|
|
59
|
+
* 一个被用户停下的 run 不可能仍在留白处等待,所以这一位在实践上只会因归属为假。
|
|
60
|
+
*/
|
|
61
|
+
export const FillWorkflowHoleHoleSchema = z
|
|
62
|
+
.object({
|
|
63
|
+
/** 留白的字面名(`hole<T>("决定分组", …)` 的 `"决定分组"`)。 */
|
|
64
|
+
name: z.string().min(1),
|
|
65
|
+
/** 留白的类型实参原文(`Verdict`、`string[]`),照脚本写法。 */
|
|
66
|
+
type: z.string().min(1),
|
|
67
|
+
/** run 的草稿文件(绝对路径);run 没记过文件时缺席。 */
|
|
68
|
+
draft_path: z.string().min(1).optional(),
|
|
69
|
+
/** 留白调用在草稿里的行号(1 起);读不到时缺席。 */
|
|
70
|
+
line: z.number().int().positive().optional(),
|
|
71
|
+
owned_by_this_session: z.boolean(),
|
|
72
|
+
})
|
|
73
|
+
.strict();
|
|
74
|
+
/**
|
|
75
|
+
* 「这个 run 归本会话、且不是用户亲手停下的」——免确认的 owner 规则
|
|
76
|
+
* (docs/dynamic-workflow/launch.md「Approval」,读的是「Amending this session's runs」那条)。
|
|
77
|
+
*
|
|
78
|
+
* 与 `isAmendWorkflowOwnedPredecessor` 同一条论证:住在契约里,权限服务与 handler 读同一份谓词。
|
|
79
|
+
* 收 `unknown`:权限服务拿到的是还没解析的工具入参,handler 拿到的是解析好的事实块。
|
|
80
|
+
*/
|
|
81
|
+
export function isFillWorkflowHoleOwnedRun(hole) {
|
|
82
|
+
if (!hole || typeof hole !== "object")
|
|
83
|
+
return false;
|
|
84
|
+
return hole.owned_by_this_session === true;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 运行时入参:模型面那些键 + 回填的 `hole`。`.strict()`:任何旧拼写在这里都是可见错误。
|
|
88
|
+
* 归一化后 `script`(函数体的字节)与 `path` 可以同时在场——`path` 提交读成 `script`、路径留作
|
|
89
|
+
* 来龙去脉,与 AmendWorkflow 同一条「读一次、只读一次」纪律。
|
|
90
|
+
*/
|
|
91
|
+
export const FillWorkflowHoleInputSchema = FillWorkflowHoleModelInputSchema.extend({
|
|
92
|
+
hole: FillWorkflowHoleHoleSchema.optional(),
|
|
93
|
+
}).strict();
|
|
94
|
+
/** 交给模型的 JSON schema:不含 `hole`。 */
|
|
95
|
+
export const FillWorkflowHoleInputJsonSchema = toToolJsonSchema(FillWorkflowHoleModelInputSchema.strict());
|
|
96
|
+
/**
|
|
97
|
+
* 输出**就是** `CreateWorkflowOutput`(同一个 schema 对象,不是拷贝):display 载荷因此在协议上
|
|
98
|
+
* 与启动行同形,UI 的 CreateWorkflow 行渲染器按工具名选中本工具的行。补全不启动任何东西,所以
|
|
99
|
+
* `status: "backgrounded"` 与 `backgroundTaskId` 在这里永远缺席。
|
|
100
|
+
*/
|
|
101
|
+
export const FillWorkflowHoleOutputSchema = CreateWorkflowOutputSchema;
|
|
102
|
+
export const FillWorkflowHoleOutputJsonSchema = CreateWorkflowOutputJsonSchema;
|
|
@@ -83,20 +83,62 @@ export declare const GetWorkflowRunPendingQuestionSchema: z.ZodObject<{
|
|
|
83
83
|
/** 提问时刻(epoch ms,与 createdAt / updatedAt 同一把尺)。 */
|
|
84
84
|
askedAt: z.ZodNumber;
|
|
85
85
|
}, "strict", z.ZodTypeAny, {
|
|
86
|
-
qid: string;
|
|
87
86
|
question: string;
|
|
87
|
+
qid: string;
|
|
88
88
|
askedAt: number;
|
|
89
89
|
actor: string;
|
|
90
90
|
actorName?: string | undefined;
|
|
91
91
|
context?: string | undefined;
|
|
92
92
|
}, {
|
|
93
|
-
qid: string;
|
|
94
93
|
question: string;
|
|
94
|
+
qid: string;
|
|
95
95
|
askedAt: number;
|
|
96
96
|
actor: string;
|
|
97
97
|
actorName?: string | undefined;
|
|
98
98
|
context?: string | undefined;
|
|
99
99
|
}>;
|
|
100
|
+
/** `holes` 的上界,与 display 契约的留白上界同值(docs/dynamic-workflow/presentation.md)。 */
|
|
101
|
+
export declare const GET_WORKFLOW_RUN_MAX_HOLES = 32;
|
|
102
|
+
/**
|
|
103
|
+
* 一处留白(docs/dynamic-workflow/authoring.md「Holes」)。`waiting` 的在等主代理用
|
|
104
|
+
* `FillWorkflowHole` 补上函数体,`filled` 的已经补过;`since` / `filledAt` 与 createdAt 同一把尺。
|
|
105
|
+
* 与升级问题一样,这是通知丢失后模型侧唯一的发现面。
|
|
106
|
+
*/
|
|
107
|
+
export declare const GetWorkflowRunHoleSchema: z.ZodObject<{
|
|
108
|
+
/** 留白的站点 id(`hole#21b40fca`,名字键),`FillWorkflowHole` 的 `hole_id` 就是它。 */
|
|
109
|
+
siteId: z.ZodString;
|
|
110
|
+
ordinal: z.ZodNumber;
|
|
111
|
+
/** 留白的字面名。 */
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
/** 类型实参原文(`Verdict`)。 */
|
|
114
|
+
type: z.ZodString;
|
|
115
|
+
state: z.ZodEnum<["waiting", "filled"]>;
|
|
116
|
+
/** 到达时刻(epoch ms);`waiting` 时在场。 */
|
|
117
|
+
since: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
/** 补全时刻(epoch ms);`filled` 时在场。 */
|
|
119
|
+
filledAt: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
/** 补全它的会话。 */
|
|
121
|
+
filledBy: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, "strict", z.ZodTypeAny, {
|
|
123
|
+
type: string;
|
|
124
|
+
name: string;
|
|
125
|
+
state: "waiting" | "filled";
|
|
126
|
+
siteId: string;
|
|
127
|
+
ordinal: number;
|
|
128
|
+
since?: number | undefined;
|
|
129
|
+
filledAt?: number | undefined;
|
|
130
|
+
filledBy?: string | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
type: string;
|
|
133
|
+
name: string;
|
|
134
|
+
state: "waiting" | "filled";
|
|
135
|
+
siteId: string;
|
|
136
|
+
ordinal: number;
|
|
137
|
+
since?: number | undefined;
|
|
138
|
+
filledAt?: number | undefined;
|
|
139
|
+
filledBy?: string | undefined;
|
|
140
|
+
}>;
|
|
141
|
+
export type GetWorkflowRunHole = z.infer<typeof GetWorkflowRunHoleSchema>;
|
|
100
142
|
/**
|
|
101
143
|
* 一件**用户面产物**:脚本经 `artifact.*` 发布给用户看的
|
|
102
144
|
* 产出,此刻已经作为卡片摆在用户面前。
|
|
@@ -126,25 +168,25 @@ export declare const GetWorkflowRunArtifactSchema: z.ZodObject<{
|
|
|
126
168
|
/** run 的交付物(至多一件),排在清单最前。 */
|
|
127
169
|
primary: z.ZodOptional<z.ZodLiteral<true>>;
|
|
128
170
|
}, "strict", z.ZodTypeAny, {
|
|
129
|
-
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
130
171
|
id: string;
|
|
172
|
+
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
131
173
|
version: number;
|
|
132
174
|
itemCount: number;
|
|
133
175
|
title?: string | undefined;
|
|
176
|
+
primary?: true | undefined;
|
|
134
177
|
bytes?: number | undefined;
|
|
135
178
|
contentType?: string | undefined;
|
|
136
179
|
sourcePath?: string | undefined;
|
|
137
|
-
primary?: true | undefined;
|
|
138
180
|
}, {
|
|
139
|
-
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
140
181
|
id: string;
|
|
182
|
+
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
141
183
|
version: number;
|
|
142
184
|
itemCount: number;
|
|
143
185
|
title?: string | undefined;
|
|
186
|
+
primary?: true | undefined;
|
|
144
187
|
bytes?: number | undefined;
|
|
145
188
|
contentType?: string | undefined;
|
|
146
189
|
sourcePath?: string | undefined;
|
|
147
|
-
primary?: true | undefined;
|
|
148
190
|
}>;
|
|
149
191
|
/** 结构化失败。`code` 是稳定判别键——模型必须能分辨「进程死了」与「脚本真失败」。 */
|
|
150
192
|
export declare const GetWorkflowRunErrorSchema: z.ZodObject<{
|
|
@@ -189,8 +231,8 @@ export declare const GetWorkflowRunErrorSchema: z.ZodObject<{
|
|
|
189
231
|
resetAt?: number | undefined;
|
|
190
232
|
}>>;
|
|
191
233
|
}, "strict", z.ZodTypeAny, {
|
|
192
|
-
code: string;
|
|
193
234
|
message: string;
|
|
235
|
+
code: string;
|
|
194
236
|
providerStop?: {
|
|
195
237
|
kind: "other" | "not_configured" | "auth" | "quota" | "invalid_request" | "model_unavailable";
|
|
196
238
|
reason: string;
|
|
@@ -205,8 +247,8 @@ export declare const GetWorkflowRunErrorSchema: z.ZodObject<{
|
|
|
205
247
|
resetAt?: number | undefined;
|
|
206
248
|
} | undefined;
|
|
207
249
|
}, {
|
|
208
|
-
code: string;
|
|
209
250
|
message: string;
|
|
251
|
+
code: string;
|
|
210
252
|
providerStop?: {
|
|
211
253
|
kind: "other" | "not_configured" | "auth" | "quota" | "invalid_request" | "model_unavailable";
|
|
212
254
|
reason: string;
|
|
@@ -280,6 +322,11 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
280
322
|
* AmendWorkflow 省略 `subagent_model` 时沿用的就是这个值。
|
|
281
323
|
*/
|
|
282
324
|
subagentModel: z.ZodOptional<z.ZodString>;
|
|
325
|
+
/**
|
|
326
|
+
* 本 run 的脚本点名的模型:脚本逐字写下的名字 → 规范形,**只在脚本点名过模型时在场**。
|
|
327
|
+
* AmendWorkflow 里同名的模型沿用的就是这些绑定。
|
|
328
|
+
*/
|
|
329
|
+
modelBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
283
330
|
/**
|
|
284
331
|
* 本 run 的脚本文件,**已经写成模型面该看到的样子**(在会话工作目录之下就是工作区相对路径,
|
|
285
332
|
* 否则绝对路径)。**只在这个 run 记下过文件
|
|
@@ -592,8 +639,8 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
592
639
|
resetAt?: number | undefined;
|
|
593
640
|
}>>;
|
|
594
641
|
}, "strict", z.ZodTypeAny, {
|
|
595
|
-
code: string;
|
|
596
642
|
message: string;
|
|
643
|
+
code: string;
|
|
597
644
|
providerStop?: {
|
|
598
645
|
kind: "other" | "not_configured" | "auth" | "quota" | "invalid_request" | "model_unavailable";
|
|
599
646
|
reason: string;
|
|
@@ -608,8 +655,8 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
608
655
|
resetAt?: number | undefined;
|
|
609
656
|
} | undefined;
|
|
610
657
|
}, {
|
|
611
|
-
code: string;
|
|
612
658
|
message: string;
|
|
659
|
+
code: string;
|
|
613
660
|
providerStop?: {
|
|
614
661
|
kind: "other" | "not_configured" | "auth" | "quota" | "invalid_request" | "model_unavailable";
|
|
615
662
|
reason: string;
|
|
@@ -639,20 +686,59 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
639
686
|
/** 提问时刻(epoch ms,与 createdAt / updatedAt 同一把尺)。 */
|
|
640
687
|
askedAt: z.ZodNumber;
|
|
641
688
|
}, "strict", z.ZodTypeAny, {
|
|
642
|
-
qid: string;
|
|
643
689
|
question: string;
|
|
690
|
+
qid: string;
|
|
644
691
|
askedAt: number;
|
|
645
692
|
actor: string;
|
|
646
693
|
actorName?: string | undefined;
|
|
647
694
|
context?: string | undefined;
|
|
648
695
|
}, {
|
|
649
|
-
qid: string;
|
|
650
696
|
question: string;
|
|
697
|
+
qid: string;
|
|
651
698
|
askedAt: number;
|
|
652
699
|
actor: string;
|
|
653
700
|
actorName?: string | undefined;
|
|
654
701
|
context?: string | undefined;
|
|
655
702
|
}>, "many">>;
|
|
703
|
+
/**
|
|
704
|
+
* 本 run 的留白(docs/dynamic-workflow/launch.md「The `FillWorkflowHole` tool」;引擎文档
|
|
705
|
+
* 「The run snapshot」):到达过的每一处,`waiting` 的在等主代理的函数体,`filled` 的已经补上。
|
|
706
|
+
* 与 pendingQuestions 同规:**零条时整字段缺席**、有界 32;它是留白通知丢失后的查询兜底。
|
|
707
|
+
*/
|
|
708
|
+
holes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
709
|
+
/** 留白的站点 id(`hole#21b40fca`,名字键),`FillWorkflowHole` 的 `hole_id` 就是它。 */
|
|
710
|
+
siteId: z.ZodString;
|
|
711
|
+
ordinal: z.ZodNumber;
|
|
712
|
+
/** 留白的字面名。 */
|
|
713
|
+
name: z.ZodString;
|
|
714
|
+
/** 类型实参原文(`Verdict`)。 */
|
|
715
|
+
type: z.ZodString;
|
|
716
|
+
state: z.ZodEnum<["waiting", "filled"]>;
|
|
717
|
+
/** 到达时刻(epoch ms);`waiting` 时在场。 */
|
|
718
|
+
since: z.ZodOptional<z.ZodNumber>;
|
|
719
|
+
/** 补全时刻(epoch ms);`filled` 时在场。 */
|
|
720
|
+
filledAt: z.ZodOptional<z.ZodNumber>;
|
|
721
|
+
/** 补全它的会话。 */
|
|
722
|
+
filledBy: z.ZodOptional<z.ZodString>;
|
|
723
|
+
}, "strict", z.ZodTypeAny, {
|
|
724
|
+
type: string;
|
|
725
|
+
name: string;
|
|
726
|
+
state: "waiting" | "filled";
|
|
727
|
+
siteId: string;
|
|
728
|
+
ordinal: number;
|
|
729
|
+
since?: number | undefined;
|
|
730
|
+
filledAt?: number | undefined;
|
|
731
|
+
filledBy?: string | undefined;
|
|
732
|
+
}, {
|
|
733
|
+
type: string;
|
|
734
|
+
name: string;
|
|
735
|
+
state: "waiting" | "filled";
|
|
736
|
+
siteId: string;
|
|
737
|
+
ordinal: number;
|
|
738
|
+
since?: number | undefined;
|
|
739
|
+
filledAt?: number | undefined;
|
|
740
|
+
filledBy?: string | undefined;
|
|
741
|
+
}>, "many">>;
|
|
656
742
|
/**
|
|
657
743
|
* 本 run 已发布的用户面产物,按首次发布顺序,**任意状态都附**(一个还在跑的 run 也可能
|
|
658
744
|
* 已经交付了第一张图)。**零件时整字段缺席**,与 pendingQuestions 同规。有界 32
|
|
@@ -676,29 +762,29 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
676
762
|
/** run 的交付物(至多一件),排在清单最前。 */
|
|
677
763
|
primary: z.ZodOptional<z.ZodLiteral<true>>;
|
|
678
764
|
}, "strict", z.ZodTypeAny, {
|
|
679
|
-
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
680
765
|
id: string;
|
|
766
|
+
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
681
767
|
version: number;
|
|
682
768
|
itemCount: number;
|
|
683
769
|
title?: string | undefined;
|
|
770
|
+
primary?: true | undefined;
|
|
684
771
|
bytes?: number | undefined;
|
|
685
772
|
contentType?: string | undefined;
|
|
686
773
|
sourcePath?: string | undefined;
|
|
687
|
-
primary?: true | undefined;
|
|
688
774
|
}, {
|
|
689
|
-
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
690
775
|
id: string;
|
|
776
|
+
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
691
777
|
version: number;
|
|
692
778
|
itemCount: number;
|
|
693
779
|
title?: string | undefined;
|
|
780
|
+
primary?: true | undefined;
|
|
694
781
|
bytes?: number | undefined;
|
|
695
782
|
contentType?: string | undefined;
|
|
696
783
|
sourcePath?: string | undefined;
|
|
697
|
-
primary?: true | undefined;
|
|
698
784
|
}>, "many">>;
|
|
699
785
|
}, "strict", z.ZodTypeAny, {
|
|
700
|
-
summary: string;
|
|
701
786
|
label: string;
|
|
787
|
+
summary: string;
|
|
702
788
|
status: "pending" | "running" | "completed" | "stopped" | "errored";
|
|
703
789
|
runId: string;
|
|
704
790
|
labelSource: "script" | "name";
|
|
@@ -770,8 +856,8 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
770
856
|
at?: number | undefined;
|
|
771
857
|
}[];
|
|
772
858
|
error?: {
|
|
773
|
-
code: string;
|
|
774
859
|
message: string;
|
|
860
|
+
code: string;
|
|
775
861
|
providerStop?: {
|
|
776
862
|
kind: "other" | "not_configured" | "auth" | "quota" | "invalid_request" | "model_unavailable";
|
|
777
863
|
reason: string;
|
|
@@ -795,25 +881,35 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
795
881
|
enteredAt?: number | undefined;
|
|
796
882
|
exitedAt?: number | undefined;
|
|
797
883
|
}[] | undefined;
|
|
798
|
-
|
|
884
|
+
holes?: {
|
|
885
|
+
type: string;
|
|
886
|
+
name: string;
|
|
887
|
+
state: "waiting" | "filled";
|
|
888
|
+
siteId: string;
|
|
889
|
+
ordinal: number;
|
|
890
|
+
since?: number | undefined;
|
|
891
|
+
filledAt?: number | undefined;
|
|
892
|
+
filledBy?: string | undefined;
|
|
893
|
+
}[] | undefined;
|
|
894
|
+
stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
799
895
|
possiblyInterrupted?: boolean | undefined;
|
|
800
896
|
result?: string | undefined;
|
|
801
897
|
artifacts?: {
|
|
802
|
-
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
803
898
|
id: string;
|
|
899
|
+
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
804
900
|
version: number;
|
|
805
901
|
itemCount: number;
|
|
806
902
|
title?: string | undefined;
|
|
903
|
+
primary?: true | undefined;
|
|
807
904
|
bytes?: number | undefined;
|
|
808
905
|
contentType?: string | undefined;
|
|
809
906
|
sourcePath?: string | undefined;
|
|
810
|
-
primary?: true | undefined;
|
|
811
907
|
}[] | undefined;
|
|
812
908
|
resumedFrom?: string | undefined;
|
|
813
909
|
supersededBy?: string | undefined;
|
|
814
910
|
pendingQuestions?: {
|
|
815
|
-
qid: string;
|
|
816
911
|
question: string;
|
|
912
|
+
qid: string;
|
|
817
913
|
askedAt: number;
|
|
818
914
|
actor: string;
|
|
819
915
|
actorName?: string | undefined;
|
|
@@ -821,11 +917,12 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
821
917
|
}[] | undefined;
|
|
822
918
|
subagentModel?: string | undefined;
|
|
823
919
|
maxConcurrency?: number | undefined;
|
|
920
|
+
modelBindings?: Record<string, string> | undefined;
|
|
824
921
|
scriptPath?: string | undefined;
|
|
825
922
|
subagentsTruncated?: true | undefined;
|
|
826
923
|
}, {
|
|
827
|
-
summary: string;
|
|
828
924
|
label: string;
|
|
925
|
+
summary: string;
|
|
829
926
|
status: "pending" | "running" | "completed" | "stopped" | "errored";
|
|
830
927
|
runId: string;
|
|
831
928
|
labelSource: "script" | "name";
|
|
@@ -897,8 +994,8 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
897
994
|
at?: number | undefined;
|
|
898
995
|
}[];
|
|
899
996
|
error?: {
|
|
900
|
-
code: string;
|
|
901
997
|
message: string;
|
|
998
|
+
code: string;
|
|
902
999
|
providerStop?: {
|
|
903
1000
|
kind: "other" | "not_configured" | "auth" | "quota" | "invalid_request" | "model_unavailable";
|
|
904
1001
|
reason: string;
|
|
@@ -922,25 +1019,35 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
922
1019
|
enteredAt?: number | undefined;
|
|
923
1020
|
exitedAt?: number | undefined;
|
|
924
1021
|
}[] | undefined;
|
|
925
|
-
|
|
1022
|
+
holes?: {
|
|
1023
|
+
type: string;
|
|
1024
|
+
name: string;
|
|
1025
|
+
state: "waiting" | "filled";
|
|
1026
|
+
siteId: string;
|
|
1027
|
+
ordinal: number;
|
|
1028
|
+
since?: number | undefined;
|
|
1029
|
+
filledAt?: number | undefined;
|
|
1030
|
+
filledBy?: string | undefined;
|
|
1031
|
+
}[] | undefined;
|
|
1032
|
+
stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
926
1033
|
possiblyInterrupted?: boolean | undefined;
|
|
927
1034
|
result?: string | undefined;
|
|
928
1035
|
artifacts?: {
|
|
929
|
-
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
930
1036
|
id: string;
|
|
1037
|
+
kind: "file" | "markdown" | "chart" | "table" | "metrics" | "board";
|
|
931
1038
|
version: number;
|
|
932
1039
|
itemCount: number;
|
|
933
1040
|
title?: string | undefined;
|
|
1041
|
+
primary?: true | undefined;
|
|
934
1042
|
bytes?: number | undefined;
|
|
935
1043
|
contentType?: string | undefined;
|
|
936
1044
|
sourcePath?: string | undefined;
|
|
937
|
-
primary?: true | undefined;
|
|
938
1045
|
}[] | undefined;
|
|
939
1046
|
resumedFrom?: string | undefined;
|
|
940
1047
|
supersededBy?: string | undefined;
|
|
941
1048
|
pendingQuestions?: {
|
|
942
|
-
qid: string;
|
|
943
1049
|
question: string;
|
|
1050
|
+
qid: string;
|
|
944
1051
|
askedAt: number;
|
|
945
1052
|
actor: string;
|
|
946
1053
|
actorName?: string | undefined;
|
|
@@ -948,6 +1055,7 @@ export declare const GetWorkflowRunOutputSchema: z.ZodObject<{
|
|
|
948
1055
|
}[] | undefined;
|
|
949
1056
|
subagentModel?: string | undefined;
|
|
950
1057
|
maxConcurrency?: number | undefined;
|
|
1058
|
+
modelBindings?: Record<string, string> | undefined;
|
|
951
1059
|
scriptPath?: string | undefined;
|
|
952
1060
|
subagentsTruncated?: true | undefined;
|
|
953
1061
|
}>;
|
|
@@ -73,6 +73,31 @@ export const GetWorkflowRunPendingQuestionSchema = z
|
|
|
73
73
|
askedAt: z.number(),
|
|
74
74
|
})
|
|
75
75
|
.strict();
|
|
76
|
+
/** `holes` 的上界,与 display 契约的留白上界同值(docs/dynamic-workflow/presentation.md)。 */
|
|
77
|
+
export const GET_WORKFLOW_RUN_MAX_HOLES = 32;
|
|
78
|
+
/**
|
|
79
|
+
* 一处留白(docs/dynamic-workflow/authoring.md「Holes」)。`waiting` 的在等主代理用
|
|
80
|
+
* `FillWorkflowHole` 补上函数体,`filled` 的已经补过;`since` / `filledAt` 与 createdAt 同一把尺。
|
|
81
|
+
* 与升级问题一样,这是通知丢失后模型侧唯一的发现面。
|
|
82
|
+
*/
|
|
83
|
+
export const GetWorkflowRunHoleSchema = z
|
|
84
|
+
.object({
|
|
85
|
+
/** 留白的站点 id(`hole#21b40fca`,名字键),`FillWorkflowHole` 的 `hole_id` 就是它。 */
|
|
86
|
+
siteId: z.string(),
|
|
87
|
+
ordinal: z.number(),
|
|
88
|
+
/** 留白的字面名。 */
|
|
89
|
+
name: z.string(),
|
|
90
|
+
/** 类型实参原文(`Verdict`)。 */
|
|
91
|
+
type: z.string(),
|
|
92
|
+
state: z.enum(["waiting", "filled"]),
|
|
93
|
+
/** 到达时刻(epoch ms);`waiting` 时在场。 */
|
|
94
|
+
since: z.number().optional(),
|
|
95
|
+
/** 补全时刻(epoch ms);`filled` 时在场。 */
|
|
96
|
+
filledAt: z.number().optional(),
|
|
97
|
+
/** 补全它的会话。 */
|
|
98
|
+
filledBy: z.string().optional(),
|
|
99
|
+
})
|
|
100
|
+
.strict();
|
|
76
101
|
/**
|
|
77
102
|
* 一件**用户面产物**:脚本经 `artifact.*` 发布给用户看的
|
|
78
103
|
* 产出,此刻已经作为卡片摆在用户面前。
|
|
@@ -164,6 +189,11 @@ export const GetWorkflowRunOutputSchema = WorkflowRunSummarySchema.extend({
|
|
|
164
189
|
* AmendWorkflow 省略 `subagent_model` 时沿用的就是这个值。
|
|
165
190
|
*/
|
|
166
191
|
subagentModel: z.string().optional(),
|
|
192
|
+
/**
|
|
193
|
+
* 本 run 的脚本点名的模型:脚本逐字写下的名字 → 规范形,**只在脚本点名过模型时在场**。
|
|
194
|
+
* AmendWorkflow 里同名的模型沿用的就是这些绑定。
|
|
195
|
+
*/
|
|
196
|
+
modelBindings: z.record(z.string()).optional(),
|
|
167
197
|
/**
|
|
168
198
|
* 本 run 的脚本文件,**已经写成模型面该看到的样子**(在会话工作目录之下就是工作区相对路径,
|
|
169
199
|
* 否则绝对路径)。**只在这个 run 记下过文件
|
|
@@ -206,6 +236,12 @@ export const GetWorkflowRunOutputSchema = WorkflowRunSummarySchema.extend({
|
|
|
206
236
|
* 读侧据此让整块 pending 区消失,而不是渲染一个空节。
|
|
207
237
|
*/
|
|
208
238
|
pendingQuestions: z.array(GetWorkflowRunPendingQuestionSchema).optional(),
|
|
239
|
+
/**
|
|
240
|
+
* 本 run 的留白(docs/dynamic-workflow/launch.md「The `FillWorkflowHole` tool」;引擎文档
|
|
241
|
+
* 「The run snapshot」):到达过的每一处,`waiting` 的在等主代理的函数体,`filled` 的已经补上。
|
|
242
|
+
* 与 pendingQuestions 同规:**零条时整字段缺席**、有界 32;它是留白通知丢失后的查询兜底。
|
|
243
|
+
*/
|
|
244
|
+
holes: z.array(GetWorkflowRunHoleSchema).max(GET_WORKFLOW_RUN_MAX_HOLES).optional(),
|
|
209
245
|
/**
|
|
210
246
|
* 本 run 已发布的用户面产物,按首次发布顺序,**任意状态都附**(一个还在跑的 run 也可能
|
|
211
247
|
* 已经交付了第一张图)。**零件时整字段缺席**,与 pendingQuestions 同规。有界 32
|
|
@@ -39,7 +39,7 @@ export declare const GrepInputSchema: z.ZodObject<{
|
|
|
39
39
|
context?: number | undefined;
|
|
40
40
|
multiline?: boolean | undefined;
|
|
41
41
|
glob?: string | undefined;
|
|
42
|
-
output_mode?: "
|
|
42
|
+
output_mode?: "content" | "count" | "files_with_matches" | undefined;
|
|
43
43
|
"-B"?: number | undefined;
|
|
44
44
|
"-A"?: number | undefined;
|
|
45
45
|
"-C"?: number | undefined;
|
|
@@ -55,7 +55,7 @@ export declare const GrepInputSchema: z.ZodObject<{
|
|
|
55
55
|
context?: number | undefined;
|
|
56
56
|
multiline?: boolean | undefined;
|
|
57
57
|
glob?: string | undefined;
|
|
58
|
-
output_mode?: "
|
|
58
|
+
output_mode?: "content" | "count" | "files_with_matches" | undefined;
|
|
59
59
|
"-B"?: number | undefined;
|
|
60
60
|
"-A"?: number | undefined;
|
|
61
61
|
"-C"?: number | undefined;
|
|
@@ -92,7 +92,7 @@ export declare const GrepOutputSchema: z.ZodObject<{
|
|
|
92
92
|
}, "strict", z.ZodTypeAny, {
|
|
93
93
|
durationMs: number;
|
|
94
94
|
truncated: boolean;
|
|
95
|
-
mode: "
|
|
95
|
+
mode: "content" | "count" | "files_with_matches";
|
|
96
96
|
filenames: string[];
|
|
97
97
|
numFiles: number;
|
|
98
98
|
content?: string | undefined;
|
|
@@ -103,7 +103,7 @@ export declare const GrepOutputSchema: z.ZodObject<{
|
|
|
103
103
|
}, {
|
|
104
104
|
durationMs: number;
|
|
105
105
|
truncated: boolean;
|
|
106
|
-
mode: "
|
|
106
|
+
mode: "content" | "count" | "files_with_matches";
|
|
107
107
|
filenames: string[];
|
|
108
108
|
numFiles: number;
|
|
109
109
|
content?: string | undefined;
|
|
@@ -68,10 +68,14 @@ export const GrepInputSchema = z.object({
|
|
|
68
68
|
.describe("File type to search (rg --type). Common types: js, py, rust, go, java, etc. More efficient than include for standard file types."),
|
|
69
69
|
head_limit: z
|
|
70
70
|
.number()
|
|
71
|
+
.int()
|
|
72
|
+
.nonnegative()
|
|
71
73
|
.optional()
|
|
72
74
|
.describe('Limit output to first N lines/entries, equivalent to "| head -N". Works across all output modes: content (limits output lines), files_with_matches (limits file paths), count (limits count entries). Defaults to 250 when unspecified. Pass 0 for unlimited (use sparingly — large result sets waste context).'),
|
|
73
75
|
offset: z
|
|
74
76
|
.number()
|
|
77
|
+
.int()
|
|
78
|
+
.nonnegative()
|
|
75
79
|
.optional()
|
|
76
80
|
.describe('Skip first N lines/entries before applying head_limit, equivalent to "| tail -n +N | head -N". Works across all output modes. Defaults to 0.'),
|
|
77
81
|
multiline: z
|
|
@@ -27,6 +27,7 @@ export * from "./websearch.js";
|
|
|
27
27
|
export * from "./workflow.js";
|
|
28
28
|
export * from "./create-workflow.js";
|
|
29
29
|
export * from "./amend-workflow.js";
|
|
30
|
+
export * from "./workflow-settings.js";
|
|
30
31
|
export * from "./saved-workflow.js";
|
|
31
32
|
export * from "./save-workflow.js";
|
|
32
33
|
export * from "./list-saved-workflows.js";
|
|
@@ -37,6 +38,7 @@ export * from "./get-workflow-run.js";
|
|
|
37
38
|
export * from "./resume-workflow-run.js";
|
|
38
39
|
export * from "./escalate.js";
|
|
39
40
|
export * from "./resolve-workflow-question.js";
|
|
41
|
+
export * from "./fill-workflow-hole.js";
|
|
40
42
|
export * from "./workflow-observation-display.js";
|
|
41
43
|
export * from "./tool-result-metadata.js";
|
|
42
44
|
export * from "./performance.js";
|
|
@@ -33,6 +33,7 @@ export * from "./create-workflow.js";
|
|
|
33
33
|
// 修订入口:名字常量被 core 的
|
|
34
34
|
// 分派、权限服务的 owner 规则、bootstrap 的 actor 禁用名单与 TUI/headless 旁路读走。
|
|
35
35
|
export * from "./amend-workflow.js";
|
|
36
|
+
export * from "./workflow-settings.js";
|
|
36
37
|
export * from "./saved-workflow.js";
|
|
37
38
|
export * from "./save-workflow.js";
|
|
38
39
|
export * from "./list-saved-workflows.js";
|
|
@@ -50,6 +51,9 @@ export * from "./resume-workflow-run.js";
|
|
|
50
51
|
// 名单读走,漏掉这两行会让那两处静默失效(照 resume-workflow-run 的同款注释)。
|
|
51
52
|
export * from "./escalate.js";
|
|
52
53
|
export * from "./resolve-workflow-question.js";
|
|
54
|
+
// 留白补全(docs/dynamic-workflow/launch.md「The `FillWorkflowHole` tool」):名字常量被 core 的注册、
|
|
55
|
+
// 权限服务的 owner 规则、workflow child 的禁用名单与 display 分派读走。
|
|
56
|
+
export * from "./fill-workflow-hole.js";
|
|
53
57
|
export * from "./workflow-observation-display.js";
|
|
54
58
|
export * from "./tool-result-metadata.js";
|
|
55
59
|
export * from "./performance.js";
|