@dipoleml/dcode-cli 1.0.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 +59155 -45279
- 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 +6544 -183
- 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 +759 -11
- 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 +378 -74
- 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 +3215 -1800
- 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 +388 -57
- 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 +208 -103
- 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 +7728 -1585
- 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 +22 -1
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +102 -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 +46 -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 +1542 -166
- package/node_modules/@dcode/shared/dist/validation.js +423 -14
- package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +70 -14
- 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 +5117 -2578
- 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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { OFFICIAL_MCP_TOOL_ERROR_CODES } from "@dcode/shared";
|
|
3
|
+
import { MCP_APPS_RESOURCE_URI_MAX_CHARS, MCP_APPS_CONTENT_MAX_BYTES, MCP_APPS_STRUCTURED_CONTENT_MAX_BYTES, MCP_APPS_SURFACE_ID_MAX_CHARS, MCP_APPS_SURFACE_ID_PATTERN, MCP_APPS_WIDGET_META_MAX_BYTES, } from "@dcode/shared/mcp-apps";
|
|
3
4
|
import { CREATE_WORKFLOW_DISPLAY_MAX_DIAGNOSTICS, CreateWorkflowCausalityGraphSchema, createWorkflowToolResultDisplayDiagnosticSchema, } from "./create-workflow.js";
|
|
4
5
|
import { evalWorkflowSnippetToolResultDisplayPayloadSchema, getWorkflowRunToolResultDisplayPayloadSchema, listModelsToolResultDisplayPayloadSchema, listWorkflowRunsToolResultDisplayPayloadSchema, resumeWorkflowRunToolResultDisplayPayloadSchema, savedWorkflowListToolResultDisplayPayloadSchema, } from "./workflow-observation-display.js";
|
|
5
6
|
export const COMPLETED_TOOL_PART_METADATA_SCHEMA_VERSION = 1;
|
|
@@ -152,6 +153,44 @@ export const nodeReplImageToolResultDisplayPayloadSchema = z
|
|
|
152
153
|
source: z.literal("browser_turn_end").optional(),
|
|
153
154
|
})
|
|
154
155
|
.strict();
|
|
156
|
+
/**
|
|
157
|
+
* 插件 UI 元数据。
|
|
158
|
+
* contracts 仍在 zod v3,无法直接复用 `@dcode/shared/mcp-apps` 的 zod v4 schema 对象,这里按同一常量
|
|
159
|
+
* 手写一份;字段集合与 `mcpToolDisplayUiSchema` 必须一致,由 core/tests/mcp-ui-display.test.ts 用同一
|
|
160
|
+
* fixture 双侧 parse 锁住。
|
|
161
|
+
*/
|
|
162
|
+
export const mcpToolDisplayUiPayloadSchema = z
|
|
163
|
+
.object({
|
|
164
|
+
pluginId: z.string().min(1).max(MCP_TOOL_DISPLAY_MAX_NAME_CHARS),
|
|
165
|
+
resourceUri: z.string().min(1).max(MCP_APPS_RESOURCE_URI_MAX_CHARS),
|
|
166
|
+
preferredDisplayMode: z.enum(["inline", "fullscreen", "pip"]).optional(),
|
|
167
|
+
prefersBorder: z.boolean().optional(),
|
|
168
|
+
csp: z
|
|
169
|
+
.object({
|
|
170
|
+
connectDomains: z.array(z.string().min(1).max(512)).optional(),
|
|
171
|
+
resourceDomains: z.array(z.string().min(1).max(512)).optional(),
|
|
172
|
+
})
|
|
173
|
+
.strict()
|
|
174
|
+
.optional(),
|
|
175
|
+
structuredContent: z.string().max(MCP_APPS_STRUCTURED_CONTENT_MAX_BYTES).optional(),
|
|
176
|
+
widgetMeta: z.string().max(MCP_APPS_WIDGET_META_MAX_BYTES).optional(),
|
|
177
|
+
// 原始 content 数组 JSON(≤ 32 KiB)与被省略字节数;与 shared mcpToolDisplayUiSchema 同步。
|
|
178
|
+
content: z.string().max(MCP_APPS_CONTENT_MAX_BYTES).optional(),
|
|
179
|
+
truncated: z.boolean().optional(),
|
|
180
|
+
truncatedBytes: z.number().int().nonnegative().optional(),
|
|
181
|
+
// MCP isError 结果(调用完成但工具报错),与 shared 同步。
|
|
182
|
+
isError: z.literal(true).optional(),
|
|
183
|
+
// 工具级强制常驻,与 shared 同步。
|
|
184
|
+
showInline: z.literal(true).optional(),
|
|
185
|
+
// 与 shared mcpToolDisplayUiSchema 同步;已删 widgetStateVisibility。
|
|
186
|
+
surface: z
|
|
187
|
+
.string()
|
|
188
|
+
.min(1)
|
|
189
|
+
.max(MCP_APPS_SURFACE_ID_MAX_CHARS)
|
|
190
|
+
.regex(MCP_APPS_SURFACE_ID_PATTERN)
|
|
191
|
+
.optional(),
|
|
192
|
+
})
|
|
193
|
+
.strict();
|
|
155
194
|
export const mcpToolResultDisplayPayloadSchema = z
|
|
156
195
|
.object({
|
|
157
196
|
kind: z.literal("mcp_tool"),
|
|
@@ -167,6 +206,8 @@ export const mcpToolResultDisplayPayloadSchema = z
|
|
|
167
206
|
.object({ code: z.enum(OFFICIAL_MCP_TOOL_ERROR_CODES) })
|
|
168
207
|
.strict()
|
|
169
208
|
.optional(),
|
|
209
|
+
// 与 `@dcode/shared` v4 toolDisplay 的 mcp_tool.ui 同步;两侧都是 strict,缺一处会被 zod 静默 strip。
|
|
210
|
+
ui: mcpToolDisplayUiPayloadSchema.optional(),
|
|
170
211
|
})
|
|
171
212
|
.strict();
|
|
172
213
|
/**
|
|
@@ -72,12 +72,12 @@ export declare const WebFetchOutputSchema: z.ZodObject<{
|
|
|
72
72
|
artifactPath: z.ZodOptional<z.ZodString>;
|
|
73
73
|
truncated: z.ZodBoolean;
|
|
74
74
|
}, "strict", z.ZodTypeAny, {
|
|
75
|
+
url: string;
|
|
75
76
|
durationMs: number;
|
|
76
77
|
status: number;
|
|
77
78
|
truncated: boolean;
|
|
78
79
|
result: string;
|
|
79
80
|
bytes: number;
|
|
80
|
-
url: string;
|
|
81
81
|
contentType: string;
|
|
82
82
|
cacheHit: boolean;
|
|
83
83
|
finalUrl: string;
|
|
@@ -90,12 +90,12 @@ export declare const WebFetchOutputSchema: z.ZodObject<{
|
|
|
90
90
|
artifactUri?: string | undefined;
|
|
91
91
|
artifactPath?: string | undefined;
|
|
92
92
|
}, {
|
|
93
|
+
url: string;
|
|
93
94
|
durationMs: number;
|
|
94
95
|
status: number;
|
|
95
96
|
truncated: boolean;
|
|
96
97
|
result: string;
|
|
97
98
|
bytes: number;
|
|
98
|
-
url: string;
|
|
99
99
|
contentType: string;
|
|
100
100
|
cacheHit: boolean;
|
|
101
101
|
finalUrl: string;
|
|
@@ -133,11 +133,11 @@ export declare const getWorkflowRunToolResultDisplayErrorSchema: z.ZodObject<{
|
|
|
133
133
|
code: z.ZodString;
|
|
134
134
|
message: z.ZodString;
|
|
135
135
|
}, "strict", z.ZodTypeAny, {
|
|
136
|
-
code: string;
|
|
137
136
|
message: string;
|
|
138
|
-
}, {
|
|
139
137
|
code: string;
|
|
138
|
+
}, {
|
|
140
139
|
message: string;
|
|
140
|
+
code: string;
|
|
141
141
|
}>;
|
|
142
142
|
/**
|
|
143
143
|
* GetWorkflowRun 的结果卡载荷。预算 / actor 直接复用工具输出 schema(纯小数值或已有界的
|
|
@@ -370,11 +370,11 @@ export declare const getWorkflowRunToolResultDisplayPayloadSchema: z.ZodObject<{
|
|
|
370
370
|
code: z.ZodString;
|
|
371
371
|
message: z.ZodString;
|
|
372
372
|
}, "strict", z.ZodTypeAny, {
|
|
373
|
-
code: string;
|
|
374
373
|
message: string;
|
|
375
|
-
}, {
|
|
376
374
|
code: string;
|
|
375
|
+
}, {
|
|
377
376
|
message: string;
|
|
377
|
+
code: string;
|
|
378
378
|
}>>;
|
|
379
379
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
380
380
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -400,8 +400,8 @@ export declare const getWorkflowRunToolResultDisplayPayloadSchema: z.ZodObject<{
|
|
|
400
400
|
at?: number | undefined;
|
|
401
401
|
}[];
|
|
402
402
|
error?: {
|
|
403
|
-
code: string;
|
|
404
403
|
message: string;
|
|
404
|
+
code: string;
|
|
405
405
|
} | undefined;
|
|
406
406
|
summary?: string | undefined;
|
|
407
407
|
truncated?: boolean | undefined;
|
|
@@ -414,7 +414,7 @@ export declare const getWorkflowRunToolResultDisplayPayloadSchema: z.ZodObject<{
|
|
|
414
414
|
enteredAt?: number | undefined;
|
|
415
415
|
exitedAt?: number | undefined;
|
|
416
416
|
}[] | undefined;
|
|
417
|
-
stopReason?: "
|
|
417
|
+
stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
418
418
|
possiblyInterrupted?: boolean | undefined;
|
|
419
419
|
generatedAt?: number | undefined;
|
|
420
420
|
subagents?: {
|
|
@@ -479,8 +479,8 @@ export declare const getWorkflowRunToolResultDisplayPayloadSchema: z.ZodObject<{
|
|
|
479
479
|
at?: number | undefined;
|
|
480
480
|
}[];
|
|
481
481
|
error?: {
|
|
482
|
-
code: string;
|
|
483
482
|
message: string;
|
|
483
|
+
code: string;
|
|
484
484
|
} | undefined;
|
|
485
485
|
summary?: string | undefined;
|
|
486
486
|
truncated?: boolean | undefined;
|
|
@@ -493,7 +493,7 @@ export declare const getWorkflowRunToolResultDisplayPayloadSchema: z.ZodObject<{
|
|
|
493
493
|
enteredAt?: number | undefined;
|
|
494
494
|
exitedAt?: number | undefined;
|
|
495
495
|
}[] | undefined;
|
|
496
|
-
stopReason?: "
|
|
496
|
+
stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
497
497
|
possiblyInterrupted?: boolean | undefined;
|
|
498
498
|
generatedAt?: number | undefined;
|
|
499
499
|
subagents?: {
|
|
@@ -562,7 +562,7 @@ export declare const listWorkflowRunsToolResultDisplayPayloadSchema: z.ZodObject
|
|
|
562
562
|
ownedByThisSession: boolean;
|
|
563
563
|
createdAt: number;
|
|
564
564
|
updatedAt: number;
|
|
565
|
-
stopReason?: "
|
|
565
|
+
stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
566
566
|
possiblyInterrupted?: boolean | undefined;
|
|
567
567
|
resumedFrom?: string | undefined;
|
|
568
568
|
supersededBy?: string | undefined;
|
|
@@ -575,7 +575,7 @@ export declare const listWorkflowRunsToolResultDisplayPayloadSchema: z.ZodObject
|
|
|
575
575
|
ownedByThisSession: boolean;
|
|
576
576
|
createdAt: number;
|
|
577
577
|
updatedAt: number;
|
|
578
|
-
stopReason?: "
|
|
578
|
+
stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
579
579
|
possiblyInterrupted?: boolean | undefined;
|
|
580
580
|
resumedFrom?: string | undefined;
|
|
581
581
|
supersededBy?: string | undefined;
|
|
@@ -592,7 +592,7 @@ export declare const listWorkflowRunsToolResultDisplayPayloadSchema: z.ZodObject
|
|
|
592
592
|
ownedByThisSession: boolean;
|
|
593
593
|
createdAt: number;
|
|
594
594
|
updatedAt: number;
|
|
595
|
-
stopReason?: "
|
|
595
|
+
stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
596
596
|
possiblyInterrupted?: boolean | undefined;
|
|
597
597
|
resumedFrom?: string | undefined;
|
|
598
598
|
supersededBy?: string | undefined;
|
|
@@ -609,7 +609,7 @@ export declare const listWorkflowRunsToolResultDisplayPayloadSchema: z.ZodObject
|
|
|
609
609
|
ownedByThisSession: boolean;
|
|
610
610
|
createdAt: number;
|
|
611
611
|
updatedAt: number;
|
|
612
|
-
stopReason?: "
|
|
612
|
+
stopReason?: "model" | "user" | "provider" | "interrupted" | "superseded" | undefined;
|
|
613
613
|
possiblyInterrupted?: boolean | undefined;
|
|
614
614
|
resumedFrom?: string | undefined;
|
|
615
615
|
supersededBy?: string | undefined;
|
|
@@ -629,13 +629,13 @@ export declare const evalWorkflowSnippetToolResultDisplayPayloadSchema: z.ZodObj
|
|
|
629
629
|
code: z.ZodNumber;
|
|
630
630
|
message: z.ZodString;
|
|
631
631
|
}, "strict", z.ZodTypeAny, {
|
|
632
|
-
code: number;
|
|
633
632
|
message: string;
|
|
633
|
+
code: number;
|
|
634
634
|
line: number;
|
|
635
635
|
column: number;
|
|
636
636
|
}, {
|
|
637
|
-
code: number;
|
|
638
637
|
message: string;
|
|
638
|
+
code: number;
|
|
639
639
|
line: number;
|
|
640
640
|
column: number;
|
|
641
641
|
}>, "many">;
|
|
@@ -648,8 +648,8 @@ export declare const evalWorkflowSnippetToolResultDisplayPayloadSchema: z.ZodObj
|
|
|
648
648
|
durationMs: number;
|
|
649
649
|
ok: boolean;
|
|
650
650
|
diagnostics: {
|
|
651
|
-
code: number;
|
|
652
651
|
message: string;
|
|
652
|
+
code: number;
|
|
653
653
|
line: number;
|
|
654
654
|
column: number;
|
|
655
655
|
}[];
|
|
@@ -661,8 +661,8 @@ export declare const evalWorkflowSnippetToolResultDisplayPayloadSchema: z.ZodObj
|
|
|
661
661
|
durationMs: number;
|
|
662
662
|
ok: boolean;
|
|
663
663
|
diagnostics: {
|
|
664
|
-
code: number;
|
|
665
664
|
message: string;
|
|
665
|
+
code: number;
|
|
666
666
|
line: number;
|
|
667
667
|
column: number;
|
|
668
668
|
}[];
|
|
@@ -685,16 +685,16 @@ export declare const savedWorkflowListToolResultDisplayPayloadSchema: z.ZodObjec
|
|
|
685
685
|
path: z.ZodString;
|
|
686
686
|
argNames: z.ZodArray<z.ZodString, "many">;
|
|
687
687
|
}, "strict", z.ZodTypeAny, {
|
|
688
|
+
path: string;
|
|
688
689
|
name: string;
|
|
689
690
|
scope: string;
|
|
690
|
-
path: string;
|
|
691
691
|
argNames: string[];
|
|
692
692
|
description?: string | undefined;
|
|
693
693
|
whenToUse?: string | undefined;
|
|
694
694
|
}, {
|
|
695
|
+
path: string;
|
|
695
696
|
name: string;
|
|
696
697
|
scope: string;
|
|
697
|
-
path: string;
|
|
698
698
|
argNames: string[];
|
|
699
699
|
description?: string | undefined;
|
|
700
700
|
whenToUse?: string | undefined;
|
|
@@ -713,9 +713,9 @@ export declare const savedWorkflowListToolResultDisplayPayloadSchema: z.ZodObjec
|
|
|
713
713
|
}, "strict", z.ZodTypeAny, {
|
|
714
714
|
kind: "saved_workflow_list";
|
|
715
715
|
workflows: {
|
|
716
|
+
path: string;
|
|
716
717
|
name: string;
|
|
717
718
|
scope: string;
|
|
718
|
-
path: string;
|
|
719
719
|
argNames: string[];
|
|
720
720
|
description?: string | undefined;
|
|
721
721
|
whenToUse?: string | undefined;
|
|
@@ -728,9 +728,9 @@ export declare const savedWorkflowListToolResultDisplayPayloadSchema: z.ZodObjec
|
|
|
728
728
|
}, {
|
|
729
729
|
kind: "saved_workflow_list";
|
|
730
730
|
workflows: {
|
|
731
|
+
path: string;
|
|
731
732
|
name: string;
|
|
732
733
|
scope: string;
|
|
733
|
-
path: string;
|
|
734
734
|
argNames: string[];
|
|
735
735
|
description?: string | undefined;
|
|
736
736
|
whenToUse?: string | undefined;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* `resolveInput` 回填的「确认窗可调」事实。与 `script_line_offset`、`AmendWorkflow.predecessor` 同一个
|
|
4
|
+
* 姿态:解析结果而不是可填的参数,模型的 JSON schema 不列它,模型硬填会被无条件覆盖。
|
|
5
|
+
*/
|
|
6
|
+
export declare const WorkflowAdjustableSettingsSchema: z.ZodObject<{
|
|
7
|
+
/** 宿主有模型目录、能解析确认窗里选的模型。false 时确认窗只让调上界,模型那一行是一句话。 */
|
|
8
|
+
subagent_model: z.ZodBoolean;
|
|
9
|
+
/**
|
|
10
|
+
* 默认并发 D(键名早于「默认并发」这个概念,为兼容旧端保留);端口说不出来时缺席。它不是上限:
|
|
11
|
+
* 步进器没有上界,只拿它写「默认 N」的提示与判「等于默认 = 不设自己的界」。
|
|
12
|
+
*/
|
|
13
|
+
concurrency_ceiling: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
}, "strict", z.ZodTypeAny, {
|
|
15
|
+
subagent_model: boolean;
|
|
16
|
+
concurrency_ceiling?: number | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
subagent_model: boolean;
|
|
19
|
+
concurrency_ceiling?: number | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export type WorkflowAdjustableSettings = z.infer<typeof WorkflowAdjustableSettingsSchema>;
|
|
22
|
+
/** 一个脚本最多能点名多少个不同的模型名(绑定表的条目上限)。远超任何真实脚本,只为让表有界。 */
|
|
23
|
+
export declare const WORKFLOW_MODEL_BINDINGS_MAX_ENTRIES = 64;
|
|
24
|
+
/**
|
|
25
|
+
* 脚本点名的模型 → 规范形(docs/dynamic-workflow/launch.md「Models the script names」):键是脚本
|
|
26
|
+
* **逐字**写下的名字(不 trim:运行期 persona 里带的就是这个串),值是 `providerId/modelId[$level]`。
|
|
27
|
+
*
|
|
28
|
+
* 与 {@link WorkflowAdjustableSettingsSchema} 同一个姿态、同一条通道:`resolveInput` 回填进入参,
|
|
29
|
+
* 模型的 JSON schema 不列它,模型硬填会被无条件覆盖。确认窗不逐名画它(脚本的选择就是作者模型的
|
|
30
|
+
* 决定),只据它在场把模型那一句改口成「子代理默认运行在」;应答里也没有改它的字段。
|
|
31
|
+
*/
|
|
32
|
+
export declare const WorkflowModelBindingsSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
33
|
+
export type WorkflowModelBindings = z.infer<typeof WorkflowModelBindingsSchema>;
|
|
34
|
+
/**
|
|
35
|
+
* 用户在确认窗里改过的设置,即 Allow 应答的 `content`。用工具自己的字段名与三态:省略 = 没改,
|
|
36
|
+
* `null` = 回到默认(会话模型 / 默认并发),值 = 设定——与 `AmendWorkflow` 模型面的三态逐字同规,
|
|
37
|
+
* 所以 agent 侧只有一套解析。
|
|
38
|
+
*
|
|
39
|
+
* 刻意**不** strict:应答来自客户端,broker 只取认得的两个键、丢掉其余,而不是因为一个它不认识的
|
|
40
|
+
* 键就把用户的两项改动一起作废。
|
|
41
|
+
*/
|
|
42
|
+
export declare const WorkflowSettingsAdjustmentSchema: z.ZodObject<{
|
|
43
|
+
subagent_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
max_concurrency: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
subagent_model?: string | null | undefined;
|
|
47
|
+
max_concurrency?: number | null | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
subagent_model?: string | null | undefined;
|
|
50
|
+
max_concurrency?: number | null | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
export type WorkflowSettingsAdjustment = z.infer<typeof WorkflowSettingsAdjustmentSchema>;
|
|
53
|
+
/** 解析一份应答 `content`:认得的键组成的改动;不合形状或一个键都没有即 `undefined`。 */
|
|
54
|
+
export declare function parseWorkflowSettingsAdjustment(content: unknown): WorkflowSettingsAdjustment | undefined;
|
|
55
|
+
//# sourceMappingURL=workflow-settings.d.ts.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// ============================================================
|
|
2
|
+
// 确认窗里可调的两项 run 设置(CreateWorkflow / AmendWorkflow 共用)
|
|
3
|
+
// ============================================================
|
|
4
|
+
// docs/dynamic-workflow/launch.md「Adjusting the settings in the window」。
|
|
5
|
+
//
|
|
6
|
+
// 两个 schema,一去一回:
|
|
7
|
+
// - `WorkflowAdjustableSettingsSchema`:`resolveInput` 回填进入参的事实,告诉确认窗「这个 agent 会应用
|
|
8
|
+
// 你在窗里改的值」以及本机天花板。
|
|
9
|
+
// - `WorkflowSettingsAdjustmentSchema`:用户按 Allow 时应答 `content` 里带回来的改动。
|
|
10
|
+
//
|
|
11
|
+
// 回填块走**入参通道**而不是 `create_workflow` display:display 的字段集是冻结的(见
|
|
12
|
+
// tool-result-metadata.ts 上的警告),多一个键会让严格解析它的客户端把整块连图一起丢掉;入参通道对
|
|
13
|
+
// 每个客户端版本都没有 schema。旧客户端不认这块就照旧画纯文本条件行,旧 agent 不写这块,新客户端
|
|
14
|
+
// 也就不提供一个它会丢掉的改动。
|
|
15
|
+
import { z } from "zod";
|
|
16
|
+
/** 规范形 `providerId/modelId[$level]` 的长度上限(团队套餐的 providerId 是 UUID)。 */
|
|
17
|
+
const WORKFLOW_SETTINGS_MAX_MODEL_CHARS = 512;
|
|
18
|
+
/**
|
|
19
|
+
* `resolveInput` 回填的「确认窗可调」事实。与 `script_line_offset`、`AmendWorkflow.predecessor` 同一个
|
|
20
|
+
* 姿态:解析结果而不是可填的参数,模型的 JSON schema 不列它,模型硬填会被无条件覆盖。
|
|
21
|
+
*/
|
|
22
|
+
export const WorkflowAdjustableSettingsSchema = z
|
|
23
|
+
.object({
|
|
24
|
+
/** 宿主有模型目录、能解析确认窗里选的模型。false 时确认窗只让调上界,模型那一行是一句话。 */
|
|
25
|
+
subagent_model: z.boolean(),
|
|
26
|
+
/**
|
|
27
|
+
* 默认并发 D(键名早于「默认并发」这个概念,为兼容旧端保留);端口说不出来时缺席。它不是上限:
|
|
28
|
+
* 步进器没有上界,只拿它写「默认 N」的提示与判「等于默认 = 不设自己的界」。
|
|
29
|
+
*/
|
|
30
|
+
concurrency_ceiling: z.number().int().positive().optional(),
|
|
31
|
+
})
|
|
32
|
+
.strict();
|
|
33
|
+
/** 一个脚本最多能点名多少个不同的模型名(绑定表的条目上限)。远超任何真实脚本,只为让表有界。 */
|
|
34
|
+
export const WORKFLOW_MODEL_BINDINGS_MAX_ENTRIES = 64;
|
|
35
|
+
/** 脚本里一个模型名的长度上限(名字是模型 id 或 `providerId/modelId[$level]`)。 */
|
|
36
|
+
const WORKFLOW_MODEL_NAME_MAX_CHARS = 512;
|
|
37
|
+
/**
|
|
38
|
+
* 脚本点名的模型 → 规范形(docs/dynamic-workflow/launch.md「Models the script names」):键是脚本
|
|
39
|
+
* **逐字**写下的名字(不 trim:运行期 persona 里带的就是这个串),值是 `providerId/modelId[$level]`。
|
|
40
|
+
*
|
|
41
|
+
* 与 {@link WorkflowAdjustableSettingsSchema} 同一个姿态、同一条通道:`resolveInput` 回填进入参,
|
|
42
|
+
* 模型的 JSON schema 不列它,模型硬填会被无条件覆盖。确认窗不逐名画它(脚本的选择就是作者模型的
|
|
43
|
+
* 决定),只据它在场把模型那一句改口成「子代理默认运行在」;应答里也没有改它的字段。
|
|
44
|
+
*/
|
|
45
|
+
export const WorkflowModelBindingsSchema = z
|
|
46
|
+
.record(z.string().min(1).max(WORKFLOW_MODEL_NAME_MAX_CHARS), z.string().trim().min(1).max(WORKFLOW_SETTINGS_MAX_MODEL_CHARS))
|
|
47
|
+
.refine((bindings) => Object.keys(bindings).length <= WORKFLOW_MODEL_BINDINGS_MAX_ENTRIES, {
|
|
48
|
+
message: `at most ${WORKFLOW_MODEL_BINDINGS_MAX_ENTRIES} model names`,
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* 用户在确认窗里改过的设置,即 Allow 应答的 `content`。用工具自己的字段名与三态:省略 = 没改,
|
|
52
|
+
* `null` = 回到默认(会话模型 / 默认并发),值 = 设定——与 `AmendWorkflow` 模型面的三态逐字同规,
|
|
53
|
+
* 所以 agent 侧只有一套解析。
|
|
54
|
+
*
|
|
55
|
+
* 刻意**不** strict:应答来自客户端,broker 只取认得的两个键、丢掉其余,而不是因为一个它不认识的
|
|
56
|
+
* 键就把用户的两项改动一起作废。
|
|
57
|
+
*/
|
|
58
|
+
export const WorkflowSettingsAdjustmentSchema = z.object({
|
|
59
|
+
subagent_model: z
|
|
60
|
+
.string()
|
|
61
|
+
.trim()
|
|
62
|
+
.min(1)
|
|
63
|
+
.max(WORKFLOW_SETTINGS_MAX_MODEL_CHARS)
|
|
64
|
+
.nullable()
|
|
65
|
+
.optional(),
|
|
66
|
+
max_concurrency: z
|
|
67
|
+
.number()
|
|
68
|
+
.int()
|
|
69
|
+
.positive()
|
|
70
|
+
.nullable()
|
|
71
|
+
.optional(),
|
|
72
|
+
});
|
|
73
|
+
/** 解析一份应答 `content`:认得的键组成的改动;不合形状或一个键都没有即 `undefined`。 */
|
|
74
|
+
export function parseWorkflowSettingsAdjustment(content) {
|
|
75
|
+
const parsed = WorkflowSettingsAdjustmentSchema.safeParse(content);
|
|
76
|
+
if (!parsed.success)
|
|
77
|
+
return undefined;
|
|
78
|
+
const adjustment = {};
|
|
79
|
+
if (parsed.data.subagent_model !== undefined) {
|
|
80
|
+
adjustment.subagent_model = parsed.data.subagent_model;
|
|
81
|
+
}
|
|
82
|
+
if (parsed.data.max_concurrency !== undefined) {
|
|
83
|
+
adjustment.max_concurrency = parsed.data.max_concurrency;
|
|
84
|
+
}
|
|
85
|
+
return Object.keys(adjustment).length === 0 ? undefined : adjustment;
|
|
86
|
+
}
|
|
@@ -11,33 +11,33 @@ export declare const WorkflowInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
11
11
|
scriptPath: z.ZodOptional<z.ZodString>;
|
|
12
12
|
title: z.ZodOptional<z.ZodString>;
|
|
13
13
|
}, "strict", z.ZodTypeAny, {
|
|
14
|
-
script?: string | undefined;
|
|
15
|
-
description?: string | undefined;
|
|
16
14
|
title?: string | undefined;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
script?: string | undefined;
|
|
17
17
|
name?: string | undefined;
|
|
18
18
|
args?: unknown;
|
|
19
19
|
scriptPath?: string | undefined;
|
|
20
20
|
resumeFromRunId?: string | undefined;
|
|
21
21
|
}, {
|
|
22
|
-
script?: string | undefined;
|
|
23
|
-
description?: string | undefined;
|
|
24
22
|
title?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
script?: string | undefined;
|
|
25
25
|
name?: string | undefined;
|
|
26
26
|
args?: unknown;
|
|
27
27
|
scriptPath?: string | undefined;
|
|
28
28
|
resumeFromRunId?: string | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
script?: string | undefined;
|
|
31
|
-
description?: string | undefined;
|
|
32
30
|
title?: string | undefined;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
script?: string | undefined;
|
|
33
33
|
name?: string | undefined;
|
|
34
34
|
args?: unknown;
|
|
35
35
|
scriptPath?: string | undefined;
|
|
36
36
|
resumeFromRunId?: string | undefined;
|
|
37
37
|
}, {
|
|
38
|
-
script?: string | undefined;
|
|
39
|
-
description?: string | undefined;
|
|
40
38
|
title?: string | undefined;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
script?: string | undefined;
|
|
41
41
|
name?: string | undefined;
|
|
42
42
|
args?: unknown;
|
|
43
43
|
scriptPath?: string | undefined;
|
|
@@ -245,37 +245,37 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
245
245
|
}, "strict", z.ZodTypeAny, {
|
|
246
246
|
totalBytes?: number | undefined;
|
|
247
247
|
fileCount?: number | undefined;
|
|
248
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
248
249
|
readMs?: number | undefined;
|
|
249
250
|
writeMs?: number | undefined;
|
|
250
251
|
maxFileBytes?: number | undefined;
|
|
251
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
252
252
|
}, {
|
|
253
253
|
totalBytes?: number | undefined;
|
|
254
254
|
fileCount?: number | undefined;
|
|
255
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
255
256
|
readMs?: number | undefined;
|
|
256
257
|
writeMs?: number | undefined;
|
|
257
258
|
maxFileBytes?: number | undefined;
|
|
258
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
259
259
|
}>;
|
|
260
260
|
}, "strict", z.ZodTypeAny, {
|
|
261
261
|
kind: "filesystem";
|
|
262
262
|
filesystem: {
|
|
263
263
|
totalBytes?: number | undefined;
|
|
264
264
|
fileCount?: number | undefined;
|
|
265
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
265
266
|
readMs?: number | undefined;
|
|
266
267
|
writeMs?: number | undefined;
|
|
267
268
|
maxFileBytes?: number | undefined;
|
|
268
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
269
269
|
};
|
|
270
270
|
}, {
|
|
271
271
|
kind: "filesystem";
|
|
272
272
|
filesystem: {
|
|
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
|
}>, z.ZodObject<{
|
|
281
281
|
kind: z.ZodLiteral<"patch">;
|
|
@@ -289,17 +289,17 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
289
289
|
}, "strict", z.ZodTypeAny, {
|
|
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
|
totalBytes?: number | undefined;
|
|
298
298
|
fileCount?: number | undefined;
|
|
299
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
299
300
|
readMs?: number | undefined;
|
|
300
301
|
writeMs?: number | undefined;
|
|
301
302
|
maxFileBytes?: number | undefined;
|
|
302
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
303
303
|
}>;
|
|
304
304
|
patch: z.ZodObject<{
|
|
305
305
|
matchMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -324,10 +324,10 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
324
324
|
filesystem: {
|
|
325
325
|
totalBytes?: number | undefined;
|
|
326
326
|
fileCount?: number | undefined;
|
|
327
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
327
328
|
readMs?: number | undefined;
|
|
328
329
|
writeMs?: number | undefined;
|
|
329
330
|
maxFileBytes?: number | undefined;
|
|
330
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
331
331
|
};
|
|
332
332
|
}, {
|
|
333
333
|
kind: "patch";
|
|
@@ -339,10 +339,10 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
339
339
|
filesystem: {
|
|
340
340
|
totalBytes?: number | undefined;
|
|
341
341
|
fileCount?: number | undefined;
|
|
342
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
342
343
|
readMs?: number | undefined;
|
|
343
344
|
writeMs?: number | undefined;
|
|
344
345
|
maxFileBytes?: number | undefined;
|
|
345
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
346
346
|
};
|
|
347
347
|
}>]>>;
|
|
348
348
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -366,10 +366,10 @@ export declare const WriteOutputSchema: 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
|
kind: "patch";
|
|
@@ -381,10 +381,10 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
381
381
|
filesystem: {
|
|
382
382
|
totalBytes?: number | undefined;
|
|
383
383
|
fileCount?: number | undefined;
|
|
384
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
384
385
|
readMs?: number | undefined;
|
|
385
386
|
writeMs?: number | undefined;
|
|
386
387
|
maxFileBytes?: number | undefined;
|
|
387
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
388
388
|
};
|
|
389
389
|
} | undefined;
|
|
390
390
|
totalMs?: number | undefined;
|
|
@@ -410,10 +410,10 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
410
410
|
filesystem: {
|
|
411
411
|
totalBytes?: number | undefined;
|
|
412
412
|
fileCount?: number | undefined;
|
|
413
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
413
414
|
readMs?: number | undefined;
|
|
414
415
|
writeMs?: number | undefined;
|
|
415
416
|
maxFileBytes?: number | undefined;
|
|
416
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
417
417
|
};
|
|
418
418
|
} | {
|
|
419
419
|
kind: "patch";
|
|
@@ -425,10 +425,10 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
425
425
|
filesystem: {
|
|
426
426
|
totalBytes?: number | undefined;
|
|
427
427
|
fileCount?: number | undefined;
|
|
428
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
428
429
|
readMs?: number | undefined;
|
|
429
430
|
writeMs?: number | undefined;
|
|
430
431
|
maxFileBytes?: number | undefined;
|
|
431
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
432
432
|
};
|
|
433
433
|
} | undefined;
|
|
434
434
|
totalMs?: number | undefined;
|
|
@@ -436,6 +436,7 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
436
436
|
}>>;
|
|
437
437
|
}, "strict", z.ZodTypeAny, {
|
|
438
438
|
type: "update" | "create";
|
|
439
|
+
content: string;
|
|
439
440
|
filePath: string;
|
|
440
441
|
structuredPatch: {
|
|
441
442
|
oldStart: number;
|
|
@@ -444,7 +445,6 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
444
445
|
newLines: number;
|
|
445
446
|
lines: string[];
|
|
446
447
|
}[];
|
|
447
|
-
content: string;
|
|
448
448
|
originalFile: string | null;
|
|
449
449
|
gitDiff?: {
|
|
450
450
|
status: "added" | "modified";
|
|
@@ -477,10 +477,10 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
477
477
|
filesystem: {
|
|
478
478
|
totalBytes?: number | undefined;
|
|
479
479
|
fileCount?: number | undefined;
|
|
480
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
480
481
|
readMs?: number | undefined;
|
|
481
482
|
writeMs?: number | undefined;
|
|
482
483
|
maxFileBytes?: number | undefined;
|
|
483
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
484
484
|
};
|
|
485
485
|
} | {
|
|
486
486
|
kind: "patch";
|
|
@@ -492,10 +492,10 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
492
492
|
filesystem: {
|
|
493
493
|
totalBytes?: number | undefined;
|
|
494
494
|
fileCount?: number | undefined;
|
|
495
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
495
496
|
readMs?: number | undefined;
|
|
496
497
|
writeMs?: number | undefined;
|
|
497
498
|
maxFileBytes?: number | undefined;
|
|
498
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
499
499
|
};
|
|
500
500
|
} | undefined;
|
|
501
501
|
totalMs?: number | undefined;
|
|
@@ -503,6 +503,7 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
503
503
|
} | undefined;
|
|
504
504
|
}, {
|
|
505
505
|
type: "update" | "create";
|
|
506
|
+
content: string;
|
|
506
507
|
filePath: string;
|
|
507
508
|
structuredPatch: {
|
|
508
509
|
oldStart: number;
|
|
@@ -511,7 +512,6 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
511
512
|
newLines: number;
|
|
512
513
|
lines: string[];
|
|
513
514
|
}[];
|
|
514
|
-
content: string;
|
|
515
515
|
originalFile: string | null;
|
|
516
516
|
gitDiff?: {
|
|
517
517
|
status: "added" | "modified";
|
|
@@ -544,10 +544,10 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
544
544
|
filesystem: {
|
|
545
545
|
totalBytes?: number | undefined;
|
|
546
546
|
fileCount?: number | undefined;
|
|
547
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
547
548
|
readMs?: number | undefined;
|
|
548
549
|
writeMs?: number | undefined;
|
|
549
550
|
maxFileBytes?: number | undefined;
|
|
550
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
551
551
|
};
|
|
552
552
|
} | {
|
|
553
553
|
kind: "patch";
|
|
@@ -559,10 +559,10 @@ export declare const WriteOutputSchema: z.ZodObject<{
|
|
|
559
559
|
filesystem: {
|
|
560
560
|
totalBytes?: number | undefined;
|
|
561
561
|
fileCount?: number | undefined;
|
|
562
|
+
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
562
563
|
readMs?: number | undefined;
|
|
563
564
|
writeMs?: number | undefined;
|
|
564
565
|
maxFileBytes?: number | undefined;
|
|
565
|
-
workspaceKind?: "unknown" | "local" | "remote" | undefined;
|
|
566
566
|
};
|
|
567
567
|
} | undefined;
|
|
568
568
|
totalMs?: number | undefined;
|