@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
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { toToolJsonSchema } from "./json-schema.js";
|
|
6
6
|
import { SAVED_WORKFLOW_MAX_NAME_CHARS, SavedWorkflowScopeSchema } from "./saved-workflow.js";
|
|
7
|
+
import { WorkflowAdjustableSettingsSchema, WorkflowModelBindingsSchema, } from "./workflow-settings.js";
|
|
7
8
|
export const CREATE_WORKFLOW_TOOL_NAME = "CreateWorkflow";
|
|
8
9
|
/**
|
|
9
10
|
* 教模型写工作流的内置技能名(apps/dcode-cli/packages/bundled-skills/skills/<name>/SKILL.md)。
|
|
10
11
|
* 四个创作工具(Create/Amend/Save/EvalWorkflowSnippet)的 resolveInput 以它为门:会话里没有
|
|
11
|
-
*
|
|
12
|
+
* 加载过这份技能就拒绝提交脚本(docs/dynamic-workflow/authoring.md「The authoring surface」)。
|
|
12
13
|
* 住在 contracts 里是因为 core 的门与 bootstrap 的技能包都读它,而两者不能互相 import。
|
|
13
14
|
*/
|
|
14
15
|
export const DYNAMIC_WORKFLOW_SKILL_NAME = "dynamic-workflows";
|
|
@@ -95,16 +96,16 @@ const CreateWorkflowModelInputSchema = z
|
|
|
95
96
|
.optional()
|
|
96
97
|
.describe("Values for the arguments a `path` file declares. Only with `path`."),
|
|
97
98
|
/**
|
|
98
|
-
* run
|
|
99
|
-
*
|
|
100
|
-
*
|
|
99
|
+
* run 自己的并发上界(docs/dynamic-workflow/concurrency.md「Two bounds on a run」)。高于或低于
|
|
100
|
+
* 默认并发都行、没有上限:`resolveInput` 只向下取整到至少 1,确认窗与 handler 看到的就是将要生效的
|
|
101
|
+
* 值。缺席即默认并发。只在用户要求时设——provider 限流由运行时自适应,模型不该拿它当保险。
|
|
101
102
|
*/
|
|
102
103
|
max_concurrency: z
|
|
103
104
|
.number()
|
|
104
105
|
.int()
|
|
105
106
|
.positive()
|
|
106
107
|
.optional()
|
|
107
|
-
.describe("
|
|
108
|
+
.describe("Subagents working at once, above or below the default. Only when the user asks for more or less parallelism; never as a reaction to provider errors."),
|
|
108
109
|
/**
|
|
109
110
|
* 本 run 子代理跑在哪个模型上。与
|
|
110
111
|
* `max_concurrency` 同族:模型面收一个宽松的字符串,`resolveInput` 经模型目录端口解析成
|
|
@@ -134,8 +135,18 @@ export const CreateWorkflowInputSchema = CreateWorkflowModelInputSchema.extend({
|
|
|
134
135
|
* 加它,好让行号能直接粘进一次对该文件的 `Edit`。
|
|
135
136
|
*/
|
|
136
137
|
script_line_offset: z.number().int().nonnegative().optional(),
|
|
138
|
+
/**
|
|
139
|
+
* 确认窗可调的两项设置(docs/dynamic-workflow/launch.md「Adjusting the settings in the window」),
|
|
140
|
+
* 端口在场时由 `resolveInput` 回填。同上:解析结果,模型的 JSON schema 不列它。
|
|
141
|
+
*/
|
|
142
|
+
adjustable_settings: WorkflowAdjustableSettingsSchema.optional(),
|
|
143
|
+
/**
|
|
144
|
+
* 脚本点名的模型解析成的绑定表(docs/dynamic-workflow/launch.md「Models the script names」),
|
|
145
|
+
* `resolveInput` 回填。同上:解析结果,模型的 JSON schema 不列它。
|
|
146
|
+
*/
|
|
147
|
+
model_bindings: WorkflowModelBindingsSchema.optional(),
|
|
137
148
|
}).strict();
|
|
138
|
-
/** 交给模型的 JSON schema:不含 `script_line_offset`,`saved` 里也不含 `draft`。 */
|
|
149
|
+
/** 交给模型的 JSON schema:不含 `script_line_offset`、`adjustable_settings` 与 `model_bindings`,`saved` 里也不含 `draft`。 */
|
|
139
150
|
export const CreateWorkflowInputJsonSchema = toToolJsonSchema(CreateWorkflowModelInputSchema);
|
|
140
151
|
export const CreateWorkflowDiagnosticSchema = z
|
|
141
152
|
.object({
|
|
@@ -175,7 +186,9 @@ export const CREATE_WORKFLOW_GRAPH_MAX_PHASES = 32;
|
|
|
175
186
|
export const CREATE_WORKFLOW_GRAPH_MAX_PHASE_EDGES = 128;
|
|
176
187
|
export const CREATE_WORKFLOW_GRAPH_MAX_ID_CHARS = 64;
|
|
177
188
|
export const CREATE_WORKFLOW_GRAPH_MAX_NAME_CHARS = 128;
|
|
178
|
-
|
|
189
|
+
// `hole`:还开着的留白是一个站点(docs/dynamic-workflow/presentation.md「Holes on the timeline」),
|
|
190
|
+
// 车道是主代理的 `main`;补过的留白不再是站点。
|
|
191
|
+
export const CREATE_WORKFLOW_STEP_KINDS = ["ask", "world-read", "hole"];
|
|
179
192
|
// 名字只在运行时成形(`` agent(`研究员${i + 1}`) ``)时静态能拿到的那部分:第一个洞之前的
|
|
180
193
|
// 字面量(head)与最后一个洞之后的字面量(tail)。两者至少有一个在场——分析器拿不到就整个
|
|
181
194
|
// 字段缺席,不会发空 pattern。**只搬数据**:把它渲染成「研究员…」的省略号是渲染层的决定。
|
|
@@ -218,6 +231,12 @@ export const CreateWorkflowStepSchema = z
|
|
|
218
231
|
*/
|
|
219
232
|
phase: z.string().min(1).max(CREATE_WORKFLOW_GRAPH_MAX_ID_CHARS).optional(),
|
|
220
233
|
repeat: z.enum(["stack", "serial"]).optional(),
|
|
234
|
+
/**
|
|
235
|
+
* 这个站点是某次留白补全写进来的:值是补全它的留白站点 id(名字键 `hole#<8 位十六进制>`);留白**自己的**阶段上是包着它的留白。时间轴据它画补全的
|
|
236
|
+
* 笔头与区域(docs/dynamic-workflow/presentation.md「Holes on the timeline」);没有补全过的脚本
|
|
237
|
+
* 一律缺席。
|
|
238
|
+
*/
|
|
239
|
+
fill: z.string().min(1).max(CREATE_WORKFLOW_GRAPH_MAX_ID_CHARS).optional(),
|
|
221
240
|
})
|
|
222
241
|
.strict();
|
|
223
242
|
// Lane = 一个 actor(外加一条 workspace 车道)。多重性不再挂在车道上(曾是 families →
|
|
@@ -242,6 +261,17 @@ export const CreateWorkflowEdgeSchema = z
|
|
|
242
261
|
back: z.literal(true).optional(),
|
|
243
262
|
})
|
|
244
263
|
.strict();
|
|
264
|
+
/**
|
|
265
|
+
* 阶段流(docs/dynamic-workflow/presentation.md「Streams」):`from` 阶段在两者都在跑的时候把东西
|
|
266
|
+
* 交给 `to` 阶段——channel 串起来的两个 future 阶段。它**不是** runs after,所以不进 `phaseEdges`、
|
|
267
|
+
* 不带 `back`(方向由 UI 按站的位置判断),也不带分析器的边种类。
|
|
268
|
+
*/
|
|
269
|
+
export const CreateWorkflowStreamSchema = z
|
|
270
|
+
.object({
|
|
271
|
+
from: z.string().min(1).max(CREATE_WORKFLOW_GRAPH_MAX_ID_CHARS),
|
|
272
|
+
to: z.string().min(1).max(CREATE_WORKFLOW_GRAPH_MAX_ID_CHARS),
|
|
273
|
+
})
|
|
274
|
+
.strict();
|
|
245
275
|
// 参与者 = 板面第二层的一张卡:某阶段里在某条车道上有 step 的那个子代理(或工作区 /
|
|
246
276
|
// 未解析)。fan-out 家族按字面量基数展开时每成员一张(`member`),基数未知时一张 `many`
|
|
247
277
|
// 卡代表全部成员。`steps` 是它在本阶段的 step——运行状态由此聚合,检视器由此列 ask。
|
|
@@ -299,6 +329,27 @@ export const CreateWorkflowPhaseSchema = z
|
|
|
299
329
|
.min(1)
|
|
300
330
|
.max(CREATE_WORKFLOW_GRAPH_MAX_PHASES)
|
|
301
331
|
.optional(),
|
|
332
|
+
/** 这个阶段是某次留白补全写进来的:值是补全它的留白站点 id(同 `Step.fill`)。 */
|
|
333
|
+
fill: z.string().min(1).max(CREATE_WORKFLOW_GRAPH_MAX_ID_CHARS).optional(),
|
|
334
|
+
})
|
|
335
|
+
.strict();
|
|
336
|
+
/** `holes` 的上界,与阶段表同一个数:一处留白就是一个阶段。 */
|
|
337
|
+
export const CREATE_WORKFLOW_GRAPH_MAX_HOLES = CREATE_WORKFLOW_GRAPH_MAX_PHASES;
|
|
338
|
+
// 一处**还开着的**留白(docs/dynamic-workflow/authoring.md「Holes」;presentation.md「Holes on the
|
|
339
|
+
// timeline」):时间轴画成一个虚线站点,确认窗列成一枚 chip。补过的留白不在这里——它的函数体已经
|
|
340
|
+
// 是普通的站点与阶段,只带 `fill` 标记。
|
|
341
|
+
export const CreateWorkflowHoleSchema = z
|
|
342
|
+
.object({
|
|
343
|
+
/** 留白的站点 id(名字键 `hole#<8 位十六进制>`),也是它作为阶段的 id。 */
|
|
344
|
+
siteId: z.string().min(1).max(CREATE_WORKFLOW_GRAPH_MAX_ID_CHARS),
|
|
345
|
+
/** 留白的字面名。 */
|
|
346
|
+
name: z.string().min(1).max(CREATE_WORKFLOW_GRAPH_MAX_NAME_CHARS),
|
|
347
|
+
/** 类型实参原文(`Verdict`)。 */
|
|
348
|
+
type: z.string().min(1).max(CREATE_WORKFLOW_GRAPH_MAX_NAME_CHARS),
|
|
349
|
+
/** 它出生的阶段 id(`phases[].id`);与阶段词汇表同进同退。 */
|
|
350
|
+
phase: z.string().min(1).max(CREATE_WORKFLOW_GRAPH_MAX_ID_CHARS).optional(),
|
|
351
|
+
/** 尾留白:`return await hole(...)`,脚本的结尾还没写。 */
|
|
352
|
+
tail: z.literal(true).optional(),
|
|
302
353
|
})
|
|
303
354
|
.strict();
|
|
304
355
|
// 名字沿用历史(它曾只装因果图)。三层:step 层是站点(运行状态的键,不再画);参与者层
|
|
@@ -322,6 +373,14 @@ export const CreateWorkflowCausalityGraphSchema = z
|
|
|
322
373
|
.array(CreateWorkflowEdgeSchema)
|
|
323
374
|
.max(CREATE_WORKFLOW_GRAPH_MAX_PHASE_EDGES)
|
|
324
375
|
.optional(),
|
|
376
|
+
/**
|
|
377
|
+
* 阶段流:因果图阶段商里两端互为 `alongside` 的 `data` 边(bounds 层求得),与词汇表同进同退,
|
|
378
|
+
* 组内没有时缺席。时间线据它把流水线的各阶段从带里拿出来排成一条线,画成流轨。
|
|
379
|
+
*/
|
|
380
|
+
phaseStreams: z
|
|
381
|
+
.array(CreateWorkflowStreamSchema)
|
|
382
|
+
.max(CREATE_WORKFLOW_GRAPH_MAX_PHASE_EDGES)
|
|
383
|
+
.optional(),
|
|
325
384
|
/**
|
|
326
385
|
* 控制流可以在其后正常完成的阶段(控制流图阶段商里指向 sink 终端的边的源),阶段表序。
|
|
327
386
|
* 阶段视图的「阶段 → 返回物」箭头读它,让那张画面上的每条箭头都是控制流。组内可为空
|
|
@@ -336,6 +395,12 @@ export const CreateWorkflowCausalityGraphSchema = z
|
|
|
336
395
|
.array(z.string().min(1).max(CREATE_WORKFLOW_GRAPH_MAX_ID_CHARS))
|
|
337
396
|
.max(CREATE_WORKFLOW_GRAPH_MAX_STEPS)
|
|
338
397
|
.optional(),
|
|
398
|
+
/**
|
|
399
|
+
* 还开着的留白,源序(docs/dynamic-workflow/presentation.md「The display contract」)。一处留白
|
|
400
|
+
* 就是一个阶段,所以上界与阶段表同值;补过的留白不在这里,它写进来的阶段与站点带 `fill`。
|
|
401
|
+
* 零处时整字段缺席。
|
|
402
|
+
*/
|
|
403
|
+
holes: z.array(CreateWorkflowHoleSchema).max(CREATE_WORKFLOW_GRAPH_MAX_HOLES).optional(),
|
|
339
404
|
truncated: z.boolean().optional(),
|
|
340
405
|
})
|
|
341
406
|
.strict();
|
|
@@ -412,22 +477,38 @@ export const CreateWorkflowOutputSchema = z
|
|
|
412
477
|
/** 后台任务 id ≡ taskId ≡ runId(取消与状态查询都以它为键)。 */
|
|
413
478
|
backgroundTaskId: z.string().min(1).optional(),
|
|
414
479
|
/**
|
|
415
|
-
* `AmendWorkflow`
|
|
480
|
+
* `AmendWorkflow` 只改并发、就地生效时才在场(docs/dynamic-workflow/launch.md「Changing only
|
|
481
|
+
* the parallelism of a live run」):**没有**新 run,所以既没有 `status: "backgrounded"` 也没有
|
|
416
482
|
* `backgroundTaskId`,run 还是调用里那一个。
|
|
417
483
|
*
|
|
418
484
|
* 是一个显式的块而不是让消费方按形状去猜:「ok 且没有 status」在这个工具上还有别的来路
|
|
419
|
-
* (没有 run 端口时的「只 typecheck」)。数都是绝对值,`maxConcurrency ===
|
|
485
|
+
* (没有 run 端口时的「只 typecheck」)。数都是绝对值,`maxConcurrency === defaultConcurrency` 即
|
|
420
486
|
* 「这个 run 没有自己的界」。
|
|
421
487
|
*
|
|
422
488
|
* ⚠ 这条事实**不跨 v4**:协议的 `toolOutputSchema` 只带 `text` / `display` / `truncated`,
|
|
423
|
-
* 所以它服务的是 CLI/TUI
|
|
489
|
+
* 所以它服务的是 CLI/TUI、进程内消费方与契约测试,桌面 UI 读不到它。
|
|
424
490
|
*/
|
|
425
491
|
retuned: z
|
|
426
492
|
.object({
|
|
427
493
|
runId: z.string().min(1),
|
|
428
494
|
maxConcurrency: z.number().int().positive(),
|
|
429
495
|
previous: z.number().int().positive(),
|
|
430
|
-
|
|
496
|
+
defaultConcurrency: z.number().int().positive(),
|
|
497
|
+
})
|
|
498
|
+
.strict()
|
|
499
|
+
.optional(),
|
|
500
|
+
/**
|
|
501
|
+
* `FillWorkflowHole` 补的是哪处留白(docs/dynamic-workflow/launch.md「The `FillWorkflowHole` tool」):
|
|
502
|
+
* 站点 id 与**名字**,外加草稿路径与行号。成功与被拒都在场,且**跨 v4**——display 投影原样带上它,
|
|
503
|
+
* 工具行靠它给自己起名。不能从行的入参读:transcript 存的是模型自己的入参,resolveInput 回填的
|
|
504
|
+
* `hole` 块只给权限规则与 handler 看,到不了行(2026-09-28 首次接龙实测:行标题成了留白的站点 id)。
|
|
505
|
+
*/
|
|
506
|
+
fill: z
|
|
507
|
+
.object({
|
|
508
|
+
siteId: z.string().min(1).max(64),
|
|
509
|
+
name: z.string().min(1).max(128),
|
|
510
|
+
draftPath: z.string().min(1).optional(),
|
|
511
|
+
line: z.number().int().positive().optional(),
|
|
431
512
|
})
|
|
432
513
|
.strict()
|
|
433
514
|
.optional(),
|
|
@@ -272,37 +272,37 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
272
272
|
}, "strict", z.ZodTypeAny, {
|
|
273
273
|
totalBytes?: number | undefined;
|
|
274
274
|
fileCount?: number | undefined;
|
|
275
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
275
276
|
readMs?: number | undefined;
|
|
276
277
|
writeMs?: number | undefined;
|
|
277
278
|
maxFileBytes?: number | undefined;
|
|
278
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
279
279
|
}, {
|
|
280
280
|
totalBytes?: number | undefined;
|
|
281
281
|
fileCount?: number | undefined;
|
|
282
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
282
283
|
readMs?: number | undefined;
|
|
283
284
|
writeMs?: number | undefined;
|
|
284
285
|
maxFileBytes?: number | undefined;
|
|
285
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
286
286
|
}>;
|
|
287
287
|
}, "strict", z.ZodTypeAny, {
|
|
288
288
|
kind: "filesystem";
|
|
289
289
|
filesystem: {
|
|
290
290
|
totalBytes?: number | undefined;
|
|
291
291
|
fileCount?: number | undefined;
|
|
292
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
292
293
|
readMs?: number | undefined;
|
|
293
294
|
writeMs?: number | undefined;
|
|
294
295
|
maxFileBytes?: number | undefined;
|
|
295
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
296
296
|
};
|
|
297
297
|
}, {
|
|
298
298
|
kind: "filesystem";
|
|
299
299
|
filesystem: {
|
|
300
300
|
totalBytes?: number | undefined;
|
|
301
301
|
fileCount?: number | undefined;
|
|
302
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
302
303
|
readMs?: number | undefined;
|
|
303
304
|
writeMs?: number | undefined;
|
|
304
305
|
maxFileBytes?: number | undefined;
|
|
305
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
306
306
|
};
|
|
307
307
|
}>, z.ZodObject<{
|
|
308
308
|
kind: z.ZodLiteral<"patch">;
|
|
@@ -316,17 +316,17 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
316
316
|
}, "strict", z.ZodTypeAny, {
|
|
317
317
|
totalBytes?: number | undefined;
|
|
318
318
|
fileCount?: number | undefined;
|
|
319
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
319
320
|
readMs?: number | undefined;
|
|
320
321
|
writeMs?: number | undefined;
|
|
321
322
|
maxFileBytes?: number | undefined;
|
|
322
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
323
323
|
}, {
|
|
324
324
|
totalBytes?: number | undefined;
|
|
325
325
|
fileCount?: number | undefined;
|
|
326
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
326
327
|
readMs?: number | undefined;
|
|
327
328
|
writeMs?: number | undefined;
|
|
328
329
|
maxFileBytes?: number | undefined;
|
|
329
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
330
330
|
}>;
|
|
331
331
|
patch: z.ZodObject<{
|
|
332
332
|
matchMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -351,10 +351,10 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
351
351
|
filesystem: {
|
|
352
352
|
totalBytes?: number | undefined;
|
|
353
353
|
fileCount?: number | undefined;
|
|
354
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
354
355
|
readMs?: number | undefined;
|
|
355
356
|
writeMs?: number | undefined;
|
|
356
357
|
maxFileBytes?: number | undefined;
|
|
357
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
358
358
|
};
|
|
359
359
|
}, {
|
|
360
360
|
kind: "patch";
|
|
@@ -366,10 +366,10 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
366
366
|
filesystem: {
|
|
367
367
|
totalBytes?: number | undefined;
|
|
368
368
|
fileCount?: number | undefined;
|
|
369
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
369
370
|
readMs?: number | undefined;
|
|
370
371
|
writeMs?: number | undefined;
|
|
371
372
|
maxFileBytes?: number | undefined;
|
|
372
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
373
373
|
};
|
|
374
374
|
}>]>>;
|
|
375
375
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -393,10 +393,10 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
393
393
|
filesystem: {
|
|
394
394
|
totalBytes?: number | undefined;
|
|
395
395
|
fileCount?: number | undefined;
|
|
396
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
396
397
|
readMs?: number | undefined;
|
|
397
398
|
writeMs?: number | undefined;
|
|
398
399
|
maxFileBytes?: number | undefined;
|
|
399
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
400
400
|
};
|
|
401
401
|
} | {
|
|
402
402
|
kind: "patch";
|
|
@@ -408,10 +408,10 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
408
408
|
filesystem: {
|
|
409
409
|
totalBytes?: number | undefined;
|
|
410
410
|
fileCount?: number | undefined;
|
|
411
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
411
412
|
readMs?: number | undefined;
|
|
412
413
|
writeMs?: number | undefined;
|
|
413
414
|
maxFileBytes?: number | undefined;
|
|
414
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
415
415
|
};
|
|
416
416
|
} | undefined;
|
|
417
417
|
totalMs?: number | undefined;
|
|
@@ -437,10 +437,10 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
437
437
|
filesystem: {
|
|
438
438
|
totalBytes?: number | undefined;
|
|
439
439
|
fileCount?: number | undefined;
|
|
440
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
440
441
|
readMs?: number | undefined;
|
|
441
442
|
writeMs?: number | undefined;
|
|
442
443
|
maxFileBytes?: number | undefined;
|
|
443
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
444
444
|
};
|
|
445
445
|
} | {
|
|
446
446
|
kind: "patch";
|
|
@@ -452,10 +452,10 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
452
452
|
filesystem: {
|
|
453
453
|
totalBytes?: number | undefined;
|
|
454
454
|
fileCount?: number | undefined;
|
|
455
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
455
456
|
readMs?: number | undefined;
|
|
456
457
|
writeMs?: number | undefined;
|
|
457
458
|
maxFileBytes?: number | undefined;
|
|
458
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
459
459
|
};
|
|
460
460
|
} | undefined;
|
|
461
461
|
totalMs?: number | undefined;
|
|
@@ -505,10 +505,10 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
505
505
|
filesystem: {
|
|
506
506
|
totalBytes?: number | undefined;
|
|
507
507
|
fileCount?: number | undefined;
|
|
508
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
508
509
|
readMs?: number | undefined;
|
|
509
510
|
writeMs?: number | undefined;
|
|
510
511
|
maxFileBytes?: number | undefined;
|
|
511
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
512
512
|
};
|
|
513
513
|
} | {
|
|
514
514
|
kind: "patch";
|
|
@@ -520,10 +520,10 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
520
520
|
filesystem: {
|
|
521
521
|
totalBytes?: number | undefined;
|
|
522
522
|
fileCount?: number | undefined;
|
|
523
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
523
524
|
readMs?: number | undefined;
|
|
524
525
|
writeMs?: number | undefined;
|
|
525
526
|
maxFileBytes?: number | undefined;
|
|
526
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
527
527
|
};
|
|
528
528
|
} | undefined;
|
|
529
529
|
totalMs?: number | undefined;
|
|
@@ -575,10 +575,10 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
575
575
|
filesystem: {
|
|
576
576
|
totalBytes?: number | undefined;
|
|
577
577
|
fileCount?: number | undefined;
|
|
578
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
578
579
|
readMs?: number | undefined;
|
|
579
580
|
writeMs?: number | undefined;
|
|
580
581
|
maxFileBytes?: number | undefined;
|
|
581
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
582
582
|
};
|
|
583
583
|
} | {
|
|
584
584
|
kind: "patch";
|
|
@@ -590,10 +590,10 @@ export declare const EditOutputSchema: z.ZodObject<{
|
|
|
590
590
|
filesystem: {
|
|
591
591
|
totalBytes?: number | undefined;
|
|
592
592
|
fileCount?: number | undefined;
|
|
593
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
593
594
|
readMs?: number | undefined;
|
|
594
595
|
writeMs?: number | undefined;
|
|
595
596
|
maxFileBytes?: number | undefined;
|
|
596
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
597
597
|
};
|
|
598
598
|
} | undefined;
|
|
599
599
|
totalMs?: number | undefined;
|
|
@@ -15,12 +15,12 @@ export declare const EvalWorkflowSnippetInputSchema: z.ZodObject<{
|
|
|
15
15
|
path: z.ZodOptional<z.ZodString>;
|
|
16
16
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
}, "strict", z.ZodTypeAny, {
|
|
18
|
-
code?: string | undefined;
|
|
19
18
|
path?: string | undefined;
|
|
19
|
+
code?: string | undefined;
|
|
20
20
|
timeoutMs?: number | undefined;
|
|
21
21
|
}, {
|
|
22
|
-
code?: string | undefined;
|
|
23
22
|
path?: string | undefined;
|
|
23
|
+
code?: string | undefined;
|
|
24
24
|
timeoutMs?: number | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
export type EvalWorkflowSnippetInput = z.infer<typeof EvalWorkflowSnippetInputSchema>;
|
|
@@ -38,13 +38,13 @@ export declare const EvalWorkflowSnippetOutputSchema: z.ZodObject<{
|
|
|
38
38
|
line: z.ZodNumber;
|
|
39
39
|
message: z.ZodString;
|
|
40
40
|
}, "strict", z.ZodTypeAny, {
|
|
41
|
-
code: number;
|
|
42
41
|
message: string;
|
|
42
|
+
code: number;
|
|
43
43
|
line: number;
|
|
44
44
|
column: number;
|
|
45
45
|
}, {
|
|
46
|
-
code: number;
|
|
47
46
|
message: string;
|
|
47
|
+
code: number;
|
|
48
48
|
line: number;
|
|
49
49
|
column: number;
|
|
50
50
|
}>, "many">;
|
|
@@ -57,8 +57,8 @@ export declare const EvalWorkflowSnippetOutputSchema: z.ZodObject<{
|
|
|
57
57
|
durationMs: number;
|
|
58
58
|
ok: boolean;
|
|
59
59
|
diagnostics: {
|
|
60
|
-
code: number;
|
|
61
60
|
message: string;
|
|
61
|
+
code: number;
|
|
62
62
|
line: number;
|
|
63
63
|
column: number;
|
|
64
64
|
}[];
|
|
@@ -68,8 +68,8 @@ export declare const EvalWorkflowSnippetOutputSchema: z.ZodObject<{
|
|
|
68
68
|
durationMs: number;
|
|
69
69
|
ok: boolean;
|
|
70
70
|
diagnostics: {
|
|
71
|
-
code: number;
|
|
72
71
|
message: string;
|
|
72
|
+
code: number;
|
|
73
73
|
line: number;
|
|
74
74
|
column: number;
|
|
75
75
|
}[];
|
|
@@ -15,7 +15,11 @@ export const EVAL_WORKFLOW_SNIPPET_MIN_TIMEOUT_MS = 1_000;
|
|
|
15
15
|
export const EVAL_WORKFLOW_SNIPPET_SOURCE_ERROR = "Provide exactly one snippet source: `code` for the snippet inline, or `path` for a file holding it. Passing both, or neither, is ambiguous.";
|
|
16
16
|
export const EvalWorkflowSnippetInputSchema = z
|
|
17
17
|
.object({
|
|
18
|
-
code: z
|
|
18
|
+
code: z
|
|
19
|
+
.string()
|
|
20
|
+
.min(1)
|
|
21
|
+
.optional()
|
|
22
|
+
.describe("The snippet, inline. This OR `path`, never both."),
|
|
19
23
|
/**
|
|
20
24
|
* 片段的第二条来源。**整个文件就是代码**:
|
|
21
25
|
* 片段没有保存定义那套语义,一段恰好以 `/* dcode-workflow` 开头的文件也不该被当成声明块剥掉。
|