@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,25 @@
|
|
|
1
|
+
import type { TraceContext } from "../tracing/tracer.js";
|
|
2
|
+
/** 仅用于当前任务已经接收的话题附件,身份由可信输入解析,不能由模型指定。 */
|
|
3
|
+
export interface TopicResourcePort {
|
|
4
|
+
/** 同一可信 Host 渠道的显式发送能力;缺省不允许 CLI 自行寻找其他机器人凭据。 */
|
|
5
|
+
reply?(request: import("@dcode/shared").ChannelReplyRequest, context: {
|
|
6
|
+
signal: AbortSignal;
|
|
7
|
+
trace?: TraceContext;
|
|
8
|
+
}): Promise<import("@dcode/shared").ChannelReplyResult>;
|
|
9
|
+
read(request: {
|
|
10
|
+
taskId: string;
|
|
11
|
+
inputId: string;
|
|
12
|
+
authorizationId: string;
|
|
13
|
+
messageId: string;
|
|
14
|
+
resourceIndex: number;
|
|
15
|
+
}, context: {
|
|
16
|
+
signal: AbortSignal;
|
|
17
|
+
trace?: TraceContext;
|
|
18
|
+
}): Promise<{
|
|
19
|
+
ref: string;
|
|
20
|
+
fileName: string;
|
|
21
|
+
mime: string;
|
|
22
|
+
bytes: number;
|
|
23
|
+
}>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=topic-resource.port.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export type ModelId = string & {
|
|
|
15
15
|
export declare const ModelRequestSessionType: {
|
|
16
16
|
readonly Main: "main";
|
|
17
17
|
readonly Other: "other";
|
|
18
|
+
readonly SideChat: "side_chat";
|
|
18
19
|
readonly Subagent: "subagent";
|
|
19
20
|
};
|
|
20
21
|
/**
|
|
@@ -23,10 +24,14 @@ export declare const ModelRequestSessionType: {
|
|
|
23
24
|
* - `unbounded`:**瞬态**失败无上限重试(退避曲线不变、封顶 60s 后无限探测),永久失败照旧立即抛。
|
|
24
25
|
* 给 workflow actor(taskType workflow_child / nested_workflow_child)使用:模型错误绝不是
|
|
25
26
|
* workflow 错误,唯一出口是用户 cancel。
|
|
27
|
+
* - `single-attempt`:本次请求 maxAttempts 收敛为 1,瞬态失败也不重试、首次失败即上抛。
|
|
28
|
+
* 给带 selectionFallback 声明的执行作用域 Selection(如 Highspeed 加速卡)使用:失败后由 core
|
|
29
|
+
* 退回会话模型继续本轮,适配层再按默认 10 次退避重试只会把降级拖到数分钟之后。
|
|
26
30
|
*/
|
|
27
31
|
export declare const ModelRetryBudget: {
|
|
28
32
|
readonly Default: "default";
|
|
29
33
|
readonly Unbounded: "unbounded";
|
|
34
|
+
readonly SingleAttempt: "single-attempt";
|
|
30
35
|
};
|
|
31
36
|
export type ModelRetryBudget = (typeof ModelRetryBudget)[keyof typeof ModelRetryBudget];
|
|
32
37
|
/**
|
|
@@ -241,7 +246,16 @@ export interface ModelTelemetryMilestoneStatusEvent extends ModelNetworkStatusBa
|
|
|
241
246
|
type: "model_first_provider_event" | "model_first_content" | "model_first_text";
|
|
242
247
|
elapsedMs: number;
|
|
243
248
|
}
|
|
244
|
-
|
|
249
|
+
/** 仅投递进程内 telemetry statusSink,不进入请求 UI 事件;字段不得携带凭据或用户内容。 */
|
|
250
|
+
export type ModelRequestObservation = Readonly<{
|
|
251
|
+
kind: string;
|
|
252
|
+
[field: string]: string | number | boolean | undefined;
|
|
253
|
+
}>;
|
|
254
|
+
export interface ModelRequestObservationStatusEvent extends ModelNetworkStatusBase {
|
|
255
|
+
type: "model_request_observation";
|
|
256
|
+
observation: ModelRequestObservation;
|
|
257
|
+
}
|
|
258
|
+
export type ModelNetworkStatusEvent = ModelRequestQueuedStatusEvent | ModelRequestAdmittedStatusEvent | ModelRequestObservationStatusEvent | ModelRequestStartedStatusEvent | ModelRequestCompletedStatusEvent | ModelRequestFailedStatusEvent | ModelRetryScheduledStatusEvent | ModelStreamStalledStatusEvent | ModelTelemetryMilestoneStatusEvent;
|
|
245
259
|
export interface ModelStatusSink {
|
|
246
260
|
publish(event: ModelNetworkStatusEvent): void | Promise<void>;
|
|
247
261
|
/**
|
|
@@ -7,6 +7,7 @@ export * from "./invocation-context.js";
|
|
|
7
7
|
export const ModelRequestSessionType = {
|
|
8
8
|
Main: "main",
|
|
9
9
|
Other: "other",
|
|
10
|
+
SideChat: "side_chat",
|
|
10
11
|
Subagent: "subagent",
|
|
11
12
|
};
|
|
12
13
|
/**
|
|
@@ -15,10 +16,14 @@ export const ModelRequestSessionType = {
|
|
|
15
16
|
* - `unbounded`:**瞬态**失败无上限重试(退避曲线不变、封顶 60s 后无限探测),永久失败照旧立即抛。
|
|
16
17
|
* 给 workflow actor(taskType workflow_child / nested_workflow_child)使用:模型错误绝不是
|
|
17
18
|
* workflow 错误,唯一出口是用户 cancel。
|
|
19
|
+
* - `single-attempt`:本次请求 maxAttempts 收敛为 1,瞬态失败也不重试、首次失败即上抛。
|
|
20
|
+
* 给带 selectionFallback 声明的执行作用域 Selection(如 Highspeed 加速卡)使用:失败后由 core
|
|
21
|
+
* 退回会话模型继续本轮,适配层再按默认 10 次退避重试只会把降级拖到数分钟之后。
|
|
18
22
|
*/
|
|
19
23
|
export const ModelRetryBudget = {
|
|
20
24
|
Default: "default",
|
|
21
25
|
Unbounded: "unbounded",
|
|
26
|
+
SingleAttempt: "single-attempt",
|
|
22
27
|
};
|
|
23
28
|
export const ModelErrorCode = {
|
|
24
29
|
InvalidModelSelection: "invalid_model_selection",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RequestVerificationReason } from "@dcode/shared";
|
|
1
2
|
import type { DCodeProviderAccountAccess } from "@dcode/shared";
|
|
2
3
|
import type { ModelApiCallObservation } from "../telemetry/index.js";
|
|
3
4
|
import type { TraceContext } from "../tracing/tracer.js";
|
|
@@ -23,8 +24,10 @@ export interface ModelInvocationContext {
|
|
|
23
24
|
preserveProviderStreamBoundaries?: boolean;
|
|
24
25
|
refreshRuntimeHeadersBeforeAttempt?: (input: {
|
|
25
26
|
accountAccess?: DCodeProviderAccountAccess;
|
|
27
|
+
expectedAccountScope?: string;
|
|
28
|
+
rejectedProjectTokenFingerprint?: string;
|
|
26
29
|
attempt: number;
|
|
27
|
-
reason?:
|
|
30
|
+
reason?: RequestVerificationReason;
|
|
28
31
|
abortSignal?: AbortSignal;
|
|
29
32
|
providerId: string;
|
|
30
33
|
modelId: string;
|
|
@@ -36,7 +39,9 @@ export interface ModelInvocationContext {
|
|
|
36
39
|
}
|
|
37
40
|
/** Adapter 为单个物理请求 attempt 使用的动态鉴权材料。 */
|
|
38
41
|
export interface ModelRequestAuth {
|
|
42
|
+
accountScope?: string;
|
|
39
43
|
apiKey?: string;
|
|
44
|
+
apiKeyId?: string;
|
|
40
45
|
headers?: Record<string, string>;
|
|
41
46
|
}
|
|
42
47
|
export interface ModelRequestAuthSourceInput {
|
|
@@ -4,6 +4,7 @@ import type { McpServerConfig } from "../interfaces/mcp.port.js";
|
|
|
4
4
|
import type { SkillRoot } from "../skills/index.js";
|
|
5
5
|
import type { ExecutionContext, TraceContext } from "../tracing/tracer.js";
|
|
6
6
|
export declare const DCODE_OFFICIAL_PLUGIN_MARKETPLACE = "dcode-plugins-official";
|
|
7
|
+
export declare const CLAUDE_OFFICIAL_PLUGIN_MARKETPLACE = "claude-plugins-official";
|
|
7
8
|
export declare const DCODE_INLINE_PLUGIN_MARKETPLACE = "inline";
|
|
8
9
|
export declare const DCODE_PLUGIN_HOST_COMMAND = "__dcode-plugin-host";
|
|
9
10
|
/**
|
|
@@ -133,9 +134,27 @@ export interface PluginManifest {
|
|
|
133
134
|
repository?: string;
|
|
134
135
|
settings?: unknown;
|
|
135
136
|
skills?: unknown;
|
|
137
|
+
/** 插件 UI:`ui.surfaces[]` 面板入口声明,adapters 解析。 */
|
|
138
|
+
ui?: unknown;
|
|
136
139
|
userConfig?: Record<string, PluginUserConfigOption>;
|
|
137
140
|
version?: string;
|
|
138
141
|
}
|
|
142
|
+
/** 面板生命周期:第一版只接受会话级;`draft` 留待需要时放开。 */
|
|
143
|
+
export type PluginUiSurfaceAvailability = "session";
|
|
144
|
+
/** 标题:单一字符串或按 locale 键的映射(`{ "zh-CN": "...", "en-US": "..." }`)。 */
|
|
145
|
+
export type PluginUiSurfaceTitle = string | Record<string, string>;
|
|
146
|
+
export interface PluginUiSurfaceDefinition {
|
|
147
|
+
id: string;
|
|
148
|
+
title: PluginUiSurfaceTitle;
|
|
149
|
+
icon?: string;
|
|
150
|
+
/** 运行时 namespaced MCP server 名(`plugin:${name}:${server}`),UI 直接用它调 mcp/uiReadResource。 */
|
|
151
|
+
server: string;
|
|
152
|
+
/** 清单里声明的原始 server 键,仅供诊断与展示。 */
|
|
153
|
+
declaredServer: string;
|
|
154
|
+
/** 必须以 `ui://` 开头。 */
|
|
155
|
+
resourceUri: string;
|
|
156
|
+
availability: PluginUiSurfaceAvailability;
|
|
157
|
+
}
|
|
139
158
|
export interface PluginConfig {
|
|
140
159
|
dirs: string[];
|
|
141
160
|
enabled: boolean;
|
|
@@ -171,6 +190,8 @@ export interface PluginMetadata {
|
|
|
171
190
|
skillCount: number;
|
|
172
191
|
skillRootCount: number;
|
|
173
192
|
source: PluginSource;
|
|
193
|
+
/** 清单 `ui.surfaces[]` 解析结果(已校验);未声明或全部非法时缺省。 */
|
|
194
|
+
uiSurfaces?: PluginUiSurfaceDefinition[];
|
|
174
195
|
userConfig?: Record<string, PluginUserConfigOption>;
|
|
175
196
|
version?: string;
|
|
176
197
|
}
|
|
@@ -206,6 +227,8 @@ export interface PluginReferenceCatalogEntry {
|
|
|
206
227
|
* 禁止进入 provider reminder 或协议投影——路径不属于 identifiers-only 契约。
|
|
207
228
|
*/
|
|
208
229
|
rootPath: string;
|
|
230
|
+
/** 面板入口声明(A5);供 host 在 session 冻结 catalog 里查面板定义。 */
|
|
231
|
+
uiSurfaces?: PluginUiSurfaceDefinition[];
|
|
209
232
|
}
|
|
210
233
|
export interface PluginReferenceCatalog {
|
|
211
234
|
plugins: PluginReferenceCatalogEntry[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export const DCODE_OFFICIAL_PLUGIN_MARKETPLACE = "dcode-plugins-official";
|
|
2
|
+
export const CLAUDE_OFFICIAL_PLUGIN_MARKETPLACE = "claude-plugins-official";
|
|
2
3
|
export const DCODE_INLINE_PLUGIN_MARKETPLACE = "inline";
|
|
3
4
|
export const DCODE_PLUGIN_HOST_COMMAND = "__dcode-plugin-host";
|
|
4
5
|
/**
|
|
@@ -13,5 +14,5 @@ export const DCODE_PLUGIN_HOST_COMMAND = "__dcode-plugin-host";
|
|
|
13
14
|
*/
|
|
14
15
|
export const DCODE_DWF_CHILD_COMMAND = "__dcode-dwf-child";
|
|
15
16
|
export function isOfficialMarketplaceId(id) {
|
|
16
|
-
return id === DCODE_OFFICIAL_PLUGIN_MARKETPLACE;
|
|
17
|
+
return id === DCODE_OFFICIAL_PLUGIN_MARKETPLACE || id === CLAUDE_OFFICIAL_PLUGIN_MARKETPLACE;
|
|
17
18
|
}
|
|
@@ -7,6 +7,8 @@ export declare const AgentTelemetryOperation: {
|
|
|
7
7
|
readonly GoalCompletionVerification: "goal_completion_verification";
|
|
8
8
|
readonly GoalTitleGeneration: "goal_title_generation";
|
|
9
9
|
readonly ProjectMemoryExtract: "project_memory_extract";
|
|
10
|
+
readonly ProjectMemoryDream: "project_memory_dream";
|
|
11
|
+
readonly ProjectMemoryRecall: "project_memory_recall";
|
|
10
12
|
readonly ReadSessionContextExtract: "read_session_context_extract";
|
|
11
13
|
readonly ReadSessionContextSynthesize: "read_session_context_synthesize";
|
|
12
14
|
readonly SessionTitleGeneration: "session_title_generation";
|
|
@@ -5,6 +5,8 @@ export const AgentTelemetryOperation = {
|
|
|
5
5
|
GoalCompletionVerification: "goal_completion_verification",
|
|
6
6
|
GoalTitleGeneration: "goal_title_generation",
|
|
7
7
|
ProjectMemoryExtract: "project_memory_extract",
|
|
8
|
+
ProjectMemoryDream: "project_memory_dream",
|
|
9
|
+
ProjectMemoryRecall: "project_memory_recall",
|
|
8
10
|
ReadSessionContextExtract: "read_session_context_extract",
|
|
9
11
|
ReadSessionContextSynthesize: "read_session_context_synthesize",
|
|
10
12
|
SessionTitleGeneration: "session_title_generation",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModelId, ModelProviderId } from "../model/index.js";
|
|
1
|
+
import type { ModelRequestObservation, ModelId, ModelProviderId } from "../model/index.js";
|
|
2
2
|
import type { AgentExecutionTelemetryPort, AgentTelemetryAbandonReason, AgentTelemetryCancellationReason, AgentTelemetryErrorCategory, AgentTelemetryOperation, AgentTelemetryScope } from "./agent-execution.js";
|
|
3
3
|
export * from "./agent-execution.js";
|
|
4
4
|
export declare const ModelApiOperation: {
|
|
@@ -8,6 +8,8 @@ export declare const ModelApiOperation: {
|
|
|
8
8
|
readonly GoalVerification: "goal_completion_verification";
|
|
9
9
|
readonly GitCommitMessage: "workspace_git_commit_message";
|
|
10
10
|
readonly ProjectMemoryExtract: "project_memory_extract";
|
|
11
|
+
readonly ProjectMemoryDream: "project_memory_dream";
|
|
12
|
+
readonly ProjectMemoryRecall: "project_memory_recall";
|
|
11
13
|
readonly ReadSessionContextExtract: "read_session_context_extract";
|
|
12
14
|
readonly ReadSessionContextSynthesize: "read_session_context_synthesize";
|
|
13
15
|
readonly SessionTitle: "session_title_generation";
|
|
@@ -187,6 +189,8 @@ export interface ModelAttemptSpanWriter extends AgentTelemetryScope {
|
|
|
187
189
|
markFirstContent(): void;
|
|
188
190
|
markFirstText(): void;
|
|
189
191
|
markStreamStalled(idleMs: number): void;
|
|
192
|
+
/** 请求观测交由发行实现映射到 Attribute 与 Event。 */
|
|
193
|
+
recordRequestObservation(observation: ModelRequestObservation): void;
|
|
190
194
|
finishCompleted(): void;
|
|
191
195
|
finishFailed(stage: ModelAttemptFailureStage, category: AgentTelemetryErrorCategory, error?: unknown): void;
|
|
192
196
|
finishAbandoned(reason: AgentTelemetryAbandonReason): void;
|
|
@@ -6,6 +6,8 @@ export const ModelApiOperation = {
|
|
|
6
6
|
GoalVerification: "goal_completion_verification",
|
|
7
7
|
GitCommitMessage: "workspace_git_commit_message",
|
|
8
8
|
ProjectMemoryExtract: "project_memory_extract",
|
|
9
|
+
ProjectMemoryDream: "project_memory_dream",
|
|
10
|
+
ProjectMemoryRecall: "project_memory_recall",
|
|
9
11
|
ReadSessionContextExtract: "read_session_context_extract",
|
|
10
12
|
ReadSessionContextSynthesize: "read_session_context_synthesize",
|
|
11
13
|
SessionTitle: "session_title_generation",
|
|
@@ -90,6 +92,16 @@ function mapQuerySourceToModelApiOperation(querySource) {
|
|
|
90
92
|
operation: ModelApiOperation.ProjectMemoryExtract,
|
|
91
93
|
actorKind: ModelApiActorKind.System,
|
|
92
94
|
};
|
|
95
|
+
case "project_memory_dream":
|
|
96
|
+
return {
|
|
97
|
+
operation: ModelApiOperation.ProjectMemoryDream,
|
|
98
|
+
actorKind: ModelApiActorKind.System,
|
|
99
|
+
};
|
|
100
|
+
case "project_memory_recall":
|
|
101
|
+
return {
|
|
102
|
+
operation: ModelApiOperation.ProjectMemoryRecall,
|
|
103
|
+
actorKind: ModelApiActorKind.System,
|
|
104
|
+
};
|
|
93
105
|
default:
|
|
94
106
|
return {
|
|
95
107
|
operation: ModelApiOperation.ToolInternalModelCall,
|
|
@@ -86,13 +86,13 @@ export declare const AgentCompletedOutputSchema: z.ZodObject<{
|
|
|
86
86
|
}, "strict", z.ZodTypeAny, {
|
|
87
87
|
description: string;
|
|
88
88
|
status: "completed";
|
|
89
|
-
agentId: string;
|
|
90
|
-
agentType: string;
|
|
91
|
-
prompt: string;
|
|
92
89
|
content: {
|
|
93
90
|
type: "text";
|
|
94
91
|
text: string;
|
|
95
92
|
}[];
|
|
93
|
+
agentId: string;
|
|
94
|
+
agentType: string;
|
|
95
|
+
prompt: string;
|
|
96
96
|
totalToolUseCount: number;
|
|
97
97
|
totalDurationMs: number;
|
|
98
98
|
usage?: Record<string, unknown> | undefined;
|
|
@@ -100,13 +100,13 @@ export declare const AgentCompletedOutputSchema: z.ZodObject<{
|
|
|
100
100
|
}, {
|
|
101
101
|
description: string;
|
|
102
102
|
status: "completed";
|
|
103
|
-
agentId: string;
|
|
104
|
-
agentType: string;
|
|
105
|
-
prompt: string;
|
|
106
103
|
content: {
|
|
107
104
|
type: "text";
|
|
108
105
|
text: string;
|
|
109
106
|
}[];
|
|
107
|
+
agentId: string;
|
|
108
|
+
agentType: string;
|
|
109
|
+
prompt: string;
|
|
110
110
|
totalToolUseCount: number;
|
|
111
111
|
totalDurationMs: number;
|
|
112
112
|
usage?: Record<string, unknown> | undefined;
|
|
@@ -169,13 +169,13 @@ export declare const AgentOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
169
169
|
}, "strict", z.ZodTypeAny, {
|
|
170
170
|
description: string;
|
|
171
171
|
status: "completed";
|
|
172
|
-
agentId: string;
|
|
173
|
-
agentType: string;
|
|
174
|
-
prompt: string;
|
|
175
172
|
content: {
|
|
176
173
|
type: "text";
|
|
177
174
|
text: string;
|
|
178
175
|
}[];
|
|
176
|
+
agentId: string;
|
|
177
|
+
agentType: string;
|
|
178
|
+
prompt: string;
|
|
179
179
|
totalToolUseCount: number;
|
|
180
180
|
totalDurationMs: number;
|
|
181
181
|
usage?: Record<string, unknown> | undefined;
|
|
@@ -183,13 +183,13 @@ export declare const AgentOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
183
183
|
}, {
|
|
184
184
|
description: string;
|
|
185
185
|
status: "completed";
|
|
186
|
-
agentId: string;
|
|
187
|
-
agentType: string;
|
|
188
|
-
prompt: string;
|
|
189
186
|
content: {
|
|
190
187
|
type: "text";
|
|
191
188
|
text: string;
|
|
192
189
|
}[];
|
|
190
|
+
agentId: string;
|
|
191
|
+
agentType: string;
|
|
192
|
+
prompt: string;
|
|
193
193
|
totalToolUseCount: number;
|
|
194
194
|
totalDurationMs: number;
|
|
195
195
|
usage?: Record<string, unknown> | undefined;
|
|
@@ -27,22 +27,23 @@ export declare const AmendWorkflowPredecessorSchema: z.ZodObject<{
|
|
|
27
27
|
status: "pending" | "running" | "completed" | "stopped" | "errored";
|
|
28
28
|
owned_by_this_session: boolean;
|
|
29
29
|
name?: string | undefined;
|
|
30
|
-
stop_reason?: "
|
|
30
|
+
stop_reason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
31
31
|
script_inherited?: true | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
status: "pending" | "running" | "completed" | "stopped" | "errored";
|
|
34
34
|
owned_by_this_session: boolean;
|
|
35
35
|
name?: string | undefined;
|
|
36
|
-
stop_reason?: "
|
|
36
|
+
stop_reason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
37
37
|
script_inherited?: true | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
export type AmendWorkflowPredecessor = z.infer<typeof AmendWorkflowPredecessorSchema>;
|
|
40
40
|
/**
|
|
41
|
-
* 「这个前驱归本会话、且不是用户亲手停下的」——免确认的 owner
|
|
41
|
+
* 「这个前驱归本会话、且不是用户亲手停下的」——免确认的 owner 规则
|
|
42
|
+
* (docs/dynamic-workflow/launch.md「Amending this session's runs」)。
|
|
42
43
|
*
|
|
43
44
|
* 住在契约里而不是权限服务里,是因为它现在有**两个**读者,而两个读者必须一字不差地同意:
|
|
44
45
|
* 权限服务据它在 always-ask 分支里放行,就地调并发遇上 `not_live` 时 handler 据它判断这次落回
|
|
45
|
-
*
|
|
46
|
+
* 的修订本来要不要开窗(「When the port says `not_live`」)。两处各写一遍,总有一天会让一条
|
|
46
47
|
* 「什么都没批」的调用悄悄起一次新 run。
|
|
47
48
|
*
|
|
48
49
|
* 收 `unknown`:权限服务拿到的是还没解析的工具入参,handler 拿到的是解析好的事实块。
|
|
@@ -68,8 +69,8 @@ export declare const AmendWorkflowInputSchema: z.ZodObject<{
|
|
|
68
69
|
path: z.ZodOptional<z.ZodString>;
|
|
69
70
|
name: z.ZodOptional<z.ZodString>;
|
|
70
71
|
/**
|
|
71
|
-
*
|
|
72
|
-
* `null` =
|
|
72
|
+
* 三态(docs/dynamic-workflow/concurrency.md「Two bounds on a run」):省略 = 沿用前驱的上界、
|
|
73
|
+
* `null` = 解除(回到默认并发)、数 = 设定(向下取整到至少 1,没有上限)。三态只活到 `resolveInput`:那里把它
|
|
73
74
|
* 归一成一个数或缺席,确认窗与 handler 读到的就是将要生效的值。运行时 schema 保留 `nullable`
|
|
74
75
|
* 是因为 hook 改写后 call-runner 会二次校验模型的原始形状。
|
|
75
76
|
*/
|
|
@@ -97,13 +98,13 @@ export declare const AmendWorkflowInputSchema: z.ZodObject<{
|
|
|
97
98
|
status: "pending" | "running" | "completed" | "stopped" | "errored";
|
|
98
99
|
owned_by_this_session: boolean;
|
|
99
100
|
name?: string | undefined;
|
|
100
|
-
stop_reason?: "
|
|
101
|
+
stop_reason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
101
102
|
script_inherited?: true | undefined;
|
|
102
103
|
}, {
|
|
103
104
|
status: "pending" | "running" | "completed" | "stopped" | "errored";
|
|
104
105
|
owned_by_this_session: boolean;
|
|
105
106
|
name?: string | undefined;
|
|
106
|
-
stop_reason?: "
|
|
107
|
+
stop_reason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
107
108
|
script_inherited?: true | undefined;
|
|
108
109
|
}>>;
|
|
109
110
|
/**
|
|
@@ -111,38 +112,61 @@ export declare const AmendWorkflowInputSchema: z.ZodObject<{
|
|
|
111
112
|
* 同一个姿态:解析结果,不是可填的参数,模型的 JSON schema 不列它。
|
|
112
113
|
*/
|
|
113
114
|
script_line_offset: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
/** 确认窗可调的两项设置,与 CreateWorkflow 同一块、同一条回填规则(workflow-settings.ts)。 */
|
|
116
|
+
adjustable_settings: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
subagent_model: z.ZodBoolean;
|
|
118
|
+
concurrency_ceiling: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
}, "strict", z.ZodTypeAny, {
|
|
120
|
+
subagent_model: boolean;
|
|
121
|
+
concurrency_ceiling?: number | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
subagent_model: boolean;
|
|
124
|
+
concurrency_ceiling?: number | undefined;
|
|
125
|
+
}>>;
|
|
126
|
+
/** 新脚本点名的模型解析成的绑定表,与 CreateWorkflow 同一块(同名沿用前驱的绑定,见 launch.md)。 */
|
|
127
|
+
model_bindings: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
|
|
114
128
|
}, "strict", z.ZodTypeAny, {
|
|
115
129
|
run_id: string;
|
|
130
|
+
path?: string | undefined;
|
|
116
131
|
script?: string | undefined;
|
|
117
132
|
name?: string | undefined;
|
|
118
|
-
path?: string | undefined;
|
|
119
|
-
max_concurrency?: number | null | undefined;
|
|
120
133
|
subagent_model?: string | null | undefined;
|
|
134
|
+
max_concurrency?: number | null | undefined;
|
|
121
135
|
script_line_offset?: number | undefined;
|
|
136
|
+
adjustable_settings?: {
|
|
137
|
+
subagent_model: boolean;
|
|
138
|
+
concurrency_ceiling?: number | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
model_bindings?: Record<string, string> | undefined;
|
|
122
141
|
predecessor?: {
|
|
123
142
|
status: "pending" | "running" | "completed" | "stopped" | "errored";
|
|
124
143
|
owned_by_this_session: boolean;
|
|
125
144
|
name?: string | undefined;
|
|
126
|
-
stop_reason?: "
|
|
145
|
+
stop_reason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
127
146
|
script_inherited?: true | undefined;
|
|
128
147
|
} | undefined;
|
|
129
148
|
}, {
|
|
130
149
|
run_id: string;
|
|
150
|
+
path?: string | undefined;
|
|
131
151
|
script?: string | undefined;
|
|
132
152
|
name?: string | undefined;
|
|
133
|
-
path?: string | undefined;
|
|
134
|
-
max_concurrency?: number | null | undefined;
|
|
135
153
|
subagent_model?: string | null | undefined;
|
|
154
|
+
max_concurrency?: number | null | undefined;
|
|
136
155
|
script_line_offset?: number | undefined;
|
|
156
|
+
adjustable_settings?: {
|
|
157
|
+
subagent_model: boolean;
|
|
158
|
+
concurrency_ceiling?: number | undefined;
|
|
159
|
+
} | undefined;
|
|
160
|
+
model_bindings?: Record<string, string> | undefined;
|
|
137
161
|
predecessor?: {
|
|
138
162
|
status: "pending" | "running" | "completed" | "stopped" | "errored";
|
|
139
163
|
owned_by_this_session: boolean;
|
|
140
164
|
name?: string | undefined;
|
|
141
|
-
stop_reason?: "
|
|
165
|
+
stop_reason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
142
166
|
script_inherited?: true | undefined;
|
|
143
167
|
} | undefined;
|
|
144
168
|
}>;
|
|
145
169
|
export type AmendWorkflowInput = z.infer<typeof AmendWorkflowInputSchema>;
|
|
146
|
-
/** 交给模型的 JSON schema:不含 `predecessor
|
|
170
|
+
/** 交给模型的 JSON schema:不含 `predecessor`、`script_line_offset`、`adjustable_settings` 与 `model_bindings`。 */
|
|
147
171
|
export declare const AmendWorkflowInputJsonSchema: import("../index.js").JsonSchema;
|
|
148
172
|
//# sourceMappingURL=amend-workflow.d.ts.map
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
// 后台追踪、`backgrounded` 契约与 display 载荷只有一份。
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { toToolJsonSchema } from "./json-schema.js";
|
|
10
|
+
import { WorkflowAdjustableSettingsSchema, WorkflowModelBindingsSchema, } from "./workflow-settings.js";
|
|
10
11
|
import { WORKFLOW_RUN_LIFECYCLE_STATUSES, WORKFLOW_RUN_STOP_REASONS, } from "./list-workflow-runs.js";
|
|
11
12
|
export const AMEND_WORKFLOW_TOOL_NAME = "AmendWorkflow";
|
|
12
13
|
/**
|
|
@@ -49,8 +50,8 @@ const AmendWorkflowModelInputSchema = z.object({
|
|
|
49
50
|
.optional()
|
|
50
51
|
.describe("Display label for the new run; defaults to the predecessor's."),
|
|
51
52
|
/**
|
|
52
|
-
*
|
|
53
|
-
* `null` =
|
|
53
|
+
* 三态(docs/dynamic-workflow/concurrency.md「Two bounds on a run」):省略 = 沿用前驱的上界、
|
|
54
|
+
* `null` = 解除(回到默认并发)、数 = 设定(向下取整到至少 1,没有上限)。三态只活到 `resolveInput`:那里把它
|
|
54
55
|
* 归一成一个数或缺席,确认窗与 handler 读到的就是将要生效的值。运行时 schema 保留 `nullable`
|
|
55
56
|
* 是因为 hook 改写后 call-runner 会二次校验模型的原始形状。
|
|
56
57
|
*/
|
|
@@ -60,7 +61,7 @@ const AmendWorkflowModelInputSchema = z.object({
|
|
|
60
61
|
.positive()
|
|
61
62
|
.nullable()
|
|
62
63
|
.optional()
|
|
63
|
-
.describe("Omit to keep the predecessor's limit, null to
|
|
64
|
+
.describe("Omit to keep the predecessor's limit, null to return to the default, a number to set one above or below it (only when the user asks)."),
|
|
64
65
|
/**
|
|
65
66
|
* 三态,与 `max_concurrency` 逐字同规:
|
|
66
67
|
* 省略 = 沿用前驱的选型(`resolveInput` 从前驱快照回填后**重新解析一次**,好让一个已经被
|
|
@@ -97,11 +98,12 @@ export const AmendWorkflowPredecessorSchema = z
|
|
|
97
98
|
})
|
|
98
99
|
.strict();
|
|
99
100
|
/**
|
|
100
|
-
* 「这个前驱归本会话、且不是用户亲手停下的」——免确认的 owner
|
|
101
|
+
* 「这个前驱归本会话、且不是用户亲手停下的」——免确认的 owner 规则
|
|
102
|
+
* (docs/dynamic-workflow/launch.md「Amending this session's runs」)。
|
|
101
103
|
*
|
|
102
104
|
* 住在契约里而不是权限服务里,是因为它现在有**两个**读者,而两个读者必须一字不差地同意:
|
|
103
105
|
* 权限服务据它在 always-ask 分支里放行,就地调并发遇上 `not_live` 时 handler 据它判断这次落回
|
|
104
|
-
*
|
|
106
|
+
* 的修订本来要不要开窗(「When the port says `not_live`」)。两处各写一遍,总有一天会让一条
|
|
105
107
|
* 「什么都没批」的调用悄悄起一次新 run。
|
|
106
108
|
*
|
|
107
109
|
* 收 `unknown`:权限服务拿到的是还没解析的工具入参,handler 拿到的是解析好的事实块。
|
|
@@ -123,6 +125,10 @@ export const AmendWorkflowInputSchema = AmendWorkflowModelInputSchema.extend({
|
|
|
123
125
|
* 同一个姿态:解析结果,不是可填的参数,模型的 JSON schema 不列它。
|
|
124
126
|
*/
|
|
125
127
|
script_line_offset: z.number().int().nonnegative().optional(),
|
|
128
|
+
/** 确认窗可调的两项设置,与 CreateWorkflow 同一块、同一条回填规则(workflow-settings.ts)。 */
|
|
129
|
+
adjustable_settings: WorkflowAdjustableSettingsSchema.optional(),
|
|
130
|
+
/** 新脚本点名的模型解析成的绑定表,与 CreateWorkflow 同一块(同名沿用前驱的绑定,见 launch.md)。 */
|
|
131
|
+
model_bindings: WorkflowModelBindingsSchema.optional(),
|
|
126
132
|
}).strict();
|
|
127
|
-
/** 交给模型的 JSON schema:不含 `predecessor
|
|
133
|
+
/** 交给模型的 JSON schema:不含 `predecessor`、`script_line_offset`、`adjustable_settings` 与 `model_bindings`。 */
|
|
128
134
|
export const AmendWorkflowInputJsonSchema = toToolJsonSchema(AmendWorkflowModelInputSchema.strict());
|