@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,82 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type ModelSelection } from "./model-selection.js";
|
|
3
|
+
import type { AgentPermissionMode } from "./subagents-types.js";
|
|
4
|
+
export type AgentProfileSource = "built-in" | "project" | "user";
|
|
5
|
+
export type AgentMemoryScope = "user" | "project" | "local";
|
|
6
|
+
export interface AgentProfile {
|
|
7
|
+
background?: boolean;
|
|
8
|
+
color?: "red" | "blue" | "green" | "yellow" | "purple" | "orange" | "pink" | "cyan";
|
|
9
|
+
description: string;
|
|
10
|
+
disallowedTools?: readonly string[];
|
|
11
|
+
injectAgentsMd?: boolean;
|
|
12
|
+
maxTurns?: number;
|
|
13
|
+
mcpServers?: readonly string[];
|
|
14
|
+
memory?: AgentMemoryScope;
|
|
15
|
+
modelSelection?: ModelSelection;
|
|
16
|
+
name: string;
|
|
17
|
+
path?: string;
|
|
18
|
+
permissionMode?: AgentPermissionMode;
|
|
19
|
+
skills?: readonly string[];
|
|
20
|
+
source: AgentProfileSource;
|
|
21
|
+
systemPrompt: string;
|
|
22
|
+
tools?: readonly string[];
|
|
23
|
+
}
|
|
24
|
+
export interface AgentProfileParseDiagnostic {
|
|
25
|
+
code: string;
|
|
26
|
+
message: string;
|
|
27
|
+
path?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface AgentProfileLoadResult {
|
|
30
|
+
diagnostics: AgentProfileParseDiagnostic[];
|
|
31
|
+
profiles: AgentProfile[];
|
|
32
|
+
}
|
|
33
|
+
/** 完整运行时 profile 的跨进程边界,不使用 Settings 摘要代替。 */
|
|
34
|
+
export declare const agentProfileSchema: z.ZodObject<{
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
description: z.ZodString;
|
|
37
|
+
source: z.ZodEnum<{
|
|
38
|
+
user: "user";
|
|
39
|
+
project: "project";
|
|
40
|
+
"built-in": "built-in";
|
|
41
|
+
}>;
|
|
42
|
+
systemPrompt: z.ZodString;
|
|
43
|
+
path: z.ZodOptional<z.ZodString>;
|
|
44
|
+
modelSelection: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
providerId: z.ZodString;
|
|
46
|
+
modelId: z.ZodString;
|
|
47
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
}, z.core.$strict>>;
|
|
51
|
+
background: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
injectAgentsMd: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
red: "red";
|
|
55
|
+
blue: "blue";
|
|
56
|
+
green: "green";
|
|
57
|
+
yellow: "yellow";
|
|
58
|
+
purple: "purple";
|
|
59
|
+
orange: "orange";
|
|
60
|
+
pink: "pink";
|
|
61
|
+
cyan: "cyan";
|
|
62
|
+
}>>;
|
|
63
|
+
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
default: "default";
|
|
65
|
+
auto: "auto";
|
|
66
|
+
plan: "plan";
|
|
67
|
+
acceptEdits: "acceptEdits";
|
|
68
|
+
dontAsk: "dontAsk";
|
|
69
|
+
bypassPermissions: "bypassPermissions";
|
|
70
|
+
}>>;
|
|
71
|
+
memory: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
user: "user";
|
|
73
|
+
project: "project";
|
|
74
|
+
local: "local";
|
|
75
|
+
}>>;
|
|
76
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
tools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
78
|
+
disallowedTools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
79
|
+
skills: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
80
|
+
mcpServers: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
//# sourceMappingURL=subagent-profile.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { modelSelectionSchema } from "./model-selection.js";
|
|
3
|
+
/** 完整运行时 profile 的跨进程边界,不使用 Settings 摘要代替。 */
|
|
4
|
+
export const agentProfileSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
name: z.string().min(1),
|
|
7
|
+
description: z.string(),
|
|
8
|
+
source: z.enum(["built-in", "project", "user"]),
|
|
9
|
+
systemPrompt: z.string(),
|
|
10
|
+
path: z.string().optional(),
|
|
11
|
+
modelSelection: modelSelectionSchema.optional(),
|
|
12
|
+
background: z.boolean().optional(),
|
|
13
|
+
injectAgentsMd: z.boolean().optional(),
|
|
14
|
+
color: z
|
|
15
|
+
.enum(["red", "blue", "green", "yellow", "purple", "orange", "pink", "cyan"])
|
|
16
|
+
.optional(),
|
|
17
|
+
permissionMode: z
|
|
18
|
+
.enum(["acceptEdits", "auto", "bypassPermissions", "default", "dontAsk", "plan"])
|
|
19
|
+
.optional(),
|
|
20
|
+
memory: z.enum(["user", "project", "local"]).optional(),
|
|
21
|
+
maxTurns: z.number().int().positive().optional(),
|
|
22
|
+
tools: z.array(z.string()).readonly().optional(),
|
|
23
|
+
disallowedTools: z.array(z.string()).readonly().optional(),
|
|
24
|
+
skills: z.array(z.string()).readonly().optional(),
|
|
25
|
+
mcpServers: z.array(z.string()).readonly().optional(),
|
|
26
|
+
})
|
|
27
|
+
.strict();
|
|
28
|
+
//# sourceMappingURL=subagent-profile.js.map
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type AgentProfile } from "./subagent-profile.js";
|
|
3
|
+
export declare const subagentRuntimeStateSchema: z.ZodObject<{
|
|
4
|
+
disabledAgentIds: z.ZodArray<z.ZodString>;
|
|
5
|
+
builtInModelSelectionOverrides: z.ZodObject<{
|
|
6
|
+
Explore: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
providerId: z.ZodString;
|
|
8
|
+
modelId: z.ZodString;
|
|
9
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strict>>;
|
|
12
|
+
}, z.core.$strict>>;
|
|
13
|
+
"general-purpose": z.ZodOptional<z.ZodObject<{
|
|
14
|
+
providerId: z.ZodString;
|
|
15
|
+
modelId: z.ZodString;
|
|
16
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strict>>;
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
pluginAgentModelSelectionOverrides: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
22
|
+
providerId: z.ZodString;
|
|
23
|
+
modelId: z.ZodString;
|
|
24
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strict>>;
|
|
27
|
+
}, z.core.$strict>>;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
export type SubagentRuntimeState = z.infer<typeof subagentRuntimeStateSchema>;
|
|
30
|
+
/** snapshot 已经解析;读取失败的回退与 RPC 断连错误不能混为一谈。 */
|
|
31
|
+
export declare const subagentRuntimeConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
|
+
kind: z.ZodLiteral<"ready">;
|
|
33
|
+
profiles: z.ZodArray<z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
description: z.ZodString;
|
|
36
|
+
source: z.ZodEnum<{
|
|
37
|
+
user: "user";
|
|
38
|
+
project: "project";
|
|
39
|
+
"built-in": "built-in";
|
|
40
|
+
}>;
|
|
41
|
+
systemPrompt: z.ZodString;
|
|
42
|
+
path: z.ZodOptional<z.ZodString>;
|
|
43
|
+
modelSelection: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
providerId: z.ZodString;
|
|
45
|
+
modelId: z.ZodString;
|
|
46
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strict>>;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
background: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
injectAgentsMd: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
53
|
+
red: "red";
|
|
54
|
+
blue: "blue";
|
|
55
|
+
green: "green";
|
|
56
|
+
yellow: "yellow";
|
|
57
|
+
purple: "purple";
|
|
58
|
+
orange: "orange";
|
|
59
|
+
pink: "pink";
|
|
60
|
+
cyan: "cyan";
|
|
61
|
+
}>>;
|
|
62
|
+
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
default: "default";
|
|
64
|
+
auto: "auto";
|
|
65
|
+
plan: "plan";
|
|
66
|
+
acceptEdits: "acceptEdits";
|
|
67
|
+
dontAsk: "dontAsk";
|
|
68
|
+
bypassPermissions: "bypassPermissions";
|
|
69
|
+
}>>;
|
|
70
|
+
memory: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
user: "user";
|
|
72
|
+
project: "project";
|
|
73
|
+
local: "local";
|
|
74
|
+
}>>;
|
|
75
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
tools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
77
|
+
disallowedTools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
78
|
+
skills: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
79
|
+
mcpServers: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
80
|
+
}, z.core.$strict>>;
|
|
81
|
+
builtInModelSelectionOverrides: z.ZodObject<{
|
|
82
|
+
Explore: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
providerId: z.ZodString;
|
|
84
|
+
modelId: z.ZodString;
|
|
85
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, z.core.$strict>>;
|
|
88
|
+
}, z.core.$strict>>;
|
|
89
|
+
"general-purpose": z.ZodOptional<z.ZodObject<{
|
|
90
|
+
providerId: z.ZodString;
|
|
91
|
+
modelId: z.ZodString;
|
|
92
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strict>>;
|
|
95
|
+
}, z.core.$strict>>;
|
|
96
|
+
}, z.core.$strict>;
|
|
97
|
+
pluginAgentModelSelectionOverrides: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
98
|
+
providerId: z.ZodString;
|
|
99
|
+
modelId: z.ZodString;
|
|
100
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$strict>>;
|
|
103
|
+
}, z.core.$strict>>;
|
|
104
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
105
|
+
kind: z.ZodLiteral<"built-in-fallback">;
|
|
106
|
+
}, z.core.$strict>], "kind">;
|
|
107
|
+
export type SubagentRuntimeConfig = z.infer<typeof subagentRuntimeConfigSchema>;
|
|
108
|
+
/** 仅从解析缓存组合结果;启停变化不重新读取或解析 Markdown。 */
|
|
109
|
+
export declare function resolveSubagentRuntimeProfiles(profiles: readonly AgentProfile[], state: SubagentRuntimeState): {
|
|
110
|
+
profiles: AgentProfile[];
|
|
111
|
+
builtInModelSelectionOverrides: {
|
|
112
|
+
Explore?: {
|
|
113
|
+
providerId: string;
|
|
114
|
+
modelId: string;
|
|
115
|
+
options?: {
|
|
116
|
+
reasoningLevel?: string | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
"general-purpose"?: {
|
|
120
|
+
providerId: string;
|
|
121
|
+
modelId: string;
|
|
122
|
+
options?: {
|
|
123
|
+
reasoningLevel?: string | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
};
|
|
127
|
+
pluginAgentModelSelectionOverrides: Record<string, {
|
|
128
|
+
providerId: string;
|
|
129
|
+
modelId: string;
|
|
130
|
+
options?: {
|
|
131
|
+
reasoningLevel?: string | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
}>;
|
|
134
|
+
};
|
|
135
|
+
//# sourceMappingURL=subagent-runtime-config.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { modelSelectionSchema } from "./model-selection.js";
|
|
3
|
+
import { agentProfileSchema } from "./subagent-profile.js";
|
|
4
|
+
import { createAgentStateId } from "./subagents-types.js";
|
|
5
|
+
export const subagentRuntimeStateSchema = z
|
|
6
|
+
.object({
|
|
7
|
+
disabledAgentIds: z.array(z.string()),
|
|
8
|
+
builtInModelSelectionOverrides: z
|
|
9
|
+
.object({
|
|
10
|
+
Explore: modelSelectionSchema.optional(),
|
|
11
|
+
"general-purpose": modelSelectionSchema.optional(),
|
|
12
|
+
})
|
|
13
|
+
.strict(),
|
|
14
|
+
pluginAgentModelSelectionOverrides: z.record(z.string(), modelSelectionSchema),
|
|
15
|
+
})
|
|
16
|
+
.strict();
|
|
17
|
+
/** snapshot 已经解析;读取失败的回退与 RPC 断连错误不能混为一谈。 */
|
|
18
|
+
export const subagentRuntimeConfigSchema = z.discriminatedUnion("kind", [
|
|
19
|
+
z
|
|
20
|
+
.object({
|
|
21
|
+
kind: z.literal("ready"),
|
|
22
|
+
profiles: z.array(agentProfileSchema.refine((profile) => profile.source !== "built-in")),
|
|
23
|
+
builtInModelSelectionOverrides: subagentRuntimeStateSchema.shape.builtInModelSelectionOverrides,
|
|
24
|
+
pluginAgentModelSelectionOverrides: subagentRuntimeStateSchema.shape.pluginAgentModelSelectionOverrides,
|
|
25
|
+
})
|
|
26
|
+
.strict(),
|
|
27
|
+
z.object({ kind: z.literal("built-in-fallback") }).strict(),
|
|
28
|
+
]);
|
|
29
|
+
/** 仅从解析缓存组合结果;启停变化不重新读取或解析 Markdown。 */
|
|
30
|
+
export function resolveSubagentRuntimeProfiles(profiles, state) {
|
|
31
|
+
const disabled = new Set(state.disabledAgentIds);
|
|
32
|
+
return {
|
|
33
|
+
profiles: profiles.filter((profile) => profile.source !== "user" ||
|
|
34
|
+
!disabled.has(createAgentStateId({ name: profile.name, scope: "user", source: "user" }))),
|
|
35
|
+
builtInModelSelectionOverrides: state.builtInModelSelectionOverrides,
|
|
36
|
+
pluginAgentModelSelectionOverrides: state.pluginAgentModelSelectionOverrides,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=subagent-runtime-config.js.map
|
|
@@ -7,7 +7,7 @@ export type BuiltInSubagentModelSelectionOverrides = Partial<Record<BuiltInSubag
|
|
|
7
7
|
export type PluginSubagentModelSelectionOverrides = Readonly<Record<string, ModelSelection>>;
|
|
8
8
|
/** 正式 reader 只接受结构化覆盖,不在读取时解释旧双 map 或重新匹配 Provider。 */
|
|
9
9
|
export declare function parsePluginSubagentModelSelectionOverrides(value: unknown): PluginSubagentModelSelectionOverrides;
|
|
10
|
-
export type AgentPermissionMode = "auto" | "plan";
|
|
10
|
+
export type AgentPermissionMode = "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan";
|
|
11
11
|
export type AgentColor = "red" | "blue" | "green" | "yellow" | "purple" | "orange" | "pink" | "cyan";
|
|
12
12
|
export type SubagentsListMode = "allRuntimeScopes" | "settingsUserOnly";
|
|
13
13
|
export interface AgentSummary {
|
|
@@ -96,25 +96,36 @@ export declare const workspaceTaskListInvalidatedEventSchema: z.ZodObject<{
|
|
|
96
96
|
createdAt: z.ZodNumber;
|
|
97
97
|
updatedAt: z.ZodNumber;
|
|
98
98
|
mode: z.ZodEnum<{
|
|
99
|
+
default: "default";
|
|
100
|
+
auto: "auto";
|
|
99
101
|
plan: "plan";
|
|
100
102
|
build: "build";
|
|
101
103
|
edit: "edit";
|
|
102
104
|
yolo: "yolo";
|
|
103
|
-
|
|
105
|
+
guarded: "guarded";
|
|
106
|
+
acceptEdits: "acceptEdits";
|
|
107
|
+
dontAsk: "dontAsk";
|
|
108
|
+
bypassPermissions: "bypassPermissions";
|
|
104
109
|
autoEdit: "autoEdit";
|
|
105
110
|
}>;
|
|
106
111
|
model: z.ZodOptional<z.ZodString>;
|
|
107
112
|
runtimeEpoch: z.ZodOptional<z.ZodNumber>;
|
|
108
|
-
provider: z.ZodOptional<z.
|
|
113
|
+
provider: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
114
|
+
glm: "glm";
|
|
115
|
+
claude: "claude";
|
|
116
|
+
opencode: "opencode";
|
|
117
|
+
gemini: "gemini";
|
|
118
|
+
codex: "codex";
|
|
119
|
+
}>, z.ZodTransform<"glm", "glm" | "claude" | "opencode" | "gemini" | "codex">>>;
|
|
109
120
|
migrationSource: z.ZodOptional<z.ZodEnum<{
|
|
110
121
|
claudeCode: "claudeCode";
|
|
111
122
|
}>>;
|
|
112
123
|
forkedFromTaskId: z.ZodOptional<z.ZodString>;
|
|
113
124
|
unreadAt: z.ZodOptional<z.ZodNumber>;
|
|
114
125
|
status: z.ZodOptional<z.ZodEnum<{
|
|
115
|
-
running: "running";
|
|
116
|
-
completed: "completed";
|
|
117
126
|
error: "error";
|
|
127
|
+
completed: "completed";
|
|
128
|
+
running: "running";
|
|
118
129
|
}>>;
|
|
119
130
|
lastError: z.ZodOptional<z.ZodObject<{
|
|
120
131
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -124,28 +135,28 @@ export declare const workspaceTaskListInvalidatedEventSchema: z.ZodObject<{
|
|
|
124
135
|
attribution: z.ZodOptional<z.ZodObject<{
|
|
125
136
|
source: z.ZodOptional<z.ZodEnum<{
|
|
126
137
|
provider: "provider";
|
|
127
|
-
tool: "tool";
|
|
128
138
|
runtime: "runtime";
|
|
139
|
+
tool: "tool";
|
|
129
140
|
network: "network";
|
|
130
141
|
}>>;
|
|
131
142
|
reason: z.ZodOptional<z.ZodString>;
|
|
132
143
|
errorPhase: z.ZodOptional<z.ZodEnum<{
|
|
133
144
|
response: "response";
|
|
145
|
+
connect: "connect";
|
|
134
146
|
prepare: "prepare";
|
|
135
147
|
configuration: "configuration";
|
|
136
|
-
connect: "connect";
|
|
137
148
|
stream: "stream";
|
|
138
149
|
parse: "parse";
|
|
139
150
|
validation: "validation";
|
|
140
151
|
unhandled: "unhandled";
|
|
141
152
|
}>>;
|
|
142
153
|
exceptionKind: z.ZodOptional<z.ZodEnum<{
|
|
154
|
+
transport: "transport";
|
|
143
155
|
validation: "validation";
|
|
144
156
|
api_call: "api_call";
|
|
145
157
|
generic: "generic";
|
|
146
158
|
protocol: "protocol";
|
|
147
159
|
provider_business: "provider_business";
|
|
148
|
-
transport: "transport";
|
|
149
160
|
type_error: "type_error";
|
|
150
161
|
}>>;
|
|
151
162
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -405,9 +416,9 @@ export declare const taskOwnerCommandRequestSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
405
416
|
workspaceIdentity: z.ZodOptional<z.ZodString>;
|
|
406
417
|
workspaceKey: z.ZodString;
|
|
407
418
|
status: z.ZodEnum<{
|
|
408
|
-
running: "running";
|
|
409
419
|
failed: "failed";
|
|
410
420
|
accepted: "accepted";
|
|
421
|
+
running: "running";
|
|
411
422
|
}>;
|
|
412
423
|
createdAt: z.ZodNumber;
|
|
413
424
|
updatedAt: z.ZodNumber;
|
|
@@ -568,9 +579,9 @@ export declare const taskOwnerCommandDeliverySchema: z.ZodDiscriminatedUnion<[z.
|
|
|
568
579
|
workspaceIdentity: z.ZodOptional<z.ZodString>;
|
|
569
580
|
workspaceKey: z.ZodString;
|
|
570
581
|
status: z.ZodEnum<{
|
|
571
|
-
running: "running";
|
|
572
582
|
failed: "failed";
|
|
573
583
|
accepted: "accepted";
|
|
584
|
+
running: "running";
|
|
574
585
|
}>;
|
|
575
586
|
createdAt: z.ZodNumber;
|
|
576
587
|
updatedAt: z.ZodNumber;
|
|
@@ -657,9 +668,9 @@ export declare const taskOwnerCommandResultSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
657
668
|
workspaceIdentity: z.ZodOptional<z.ZodString>;
|
|
658
669
|
workspaceKey: z.ZodString;
|
|
659
670
|
status: z.ZodEnum<{
|
|
660
|
-
running: "running";
|
|
661
671
|
failed: "failed";
|
|
662
672
|
accepted: "accepted";
|
|
673
|
+
running: "running";
|
|
663
674
|
}>;
|
|
664
675
|
createdAt: z.ZodNumber;
|
|
665
676
|
updatedAt: z.ZodNumber;
|
|
@@ -784,25 +795,36 @@ export declare const taskRealtimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
784
795
|
createdAt: z.ZodNumber;
|
|
785
796
|
updatedAt: z.ZodNumber;
|
|
786
797
|
mode: z.ZodEnum<{
|
|
798
|
+
default: "default";
|
|
799
|
+
auto: "auto";
|
|
787
800
|
plan: "plan";
|
|
788
801
|
build: "build";
|
|
789
802
|
edit: "edit";
|
|
790
803
|
yolo: "yolo";
|
|
791
|
-
|
|
804
|
+
guarded: "guarded";
|
|
805
|
+
acceptEdits: "acceptEdits";
|
|
806
|
+
dontAsk: "dontAsk";
|
|
807
|
+
bypassPermissions: "bypassPermissions";
|
|
792
808
|
autoEdit: "autoEdit";
|
|
793
809
|
}>;
|
|
794
810
|
model: z.ZodOptional<z.ZodString>;
|
|
795
811
|
runtimeEpoch: z.ZodOptional<z.ZodNumber>;
|
|
796
|
-
provider: z.ZodOptional<z.
|
|
812
|
+
provider: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
813
|
+
glm: "glm";
|
|
814
|
+
claude: "claude";
|
|
815
|
+
opencode: "opencode";
|
|
816
|
+
gemini: "gemini";
|
|
817
|
+
codex: "codex";
|
|
818
|
+
}>, z.ZodTransform<"glm", "glm" | "claude" | "opencode" | "gemini" | "codex">>>;
|
|
797
819
|
migrationSource: z.ZodOptional<z.ZodEnum<{
|
|
798
820
|
claudeCode: "claudeCode";
|
|
799
821
|
}>>;
|
|
800
822
|
forkedFromTaskId: z.ZodOptional<z.ZodString>;
|
|
801
823
|
unreadAt: z.ZodOptional<z.ZodNumber>;
|
|
802
824
|
status: z.ZodOptional<z.ZodEnum<{
|
|
803
|
-
running: "running";
|
|
804
|
-
completed: "completed";
|
|
805
825
|
error: "error";
|
|
826
|
+
completed: "completed";
|
|
827
|
+
running: "running";
|
|
806
828
|
}>>;
|
|
807
829
|
lastError: z.ZodOptional<z.ZodObject<{
|
|
808
830
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -812,28 +834,28 @@ export declare const taskRealtimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
812
834
|
attribution: z.ZodOptional<z.ZodObject<{
|
|
813
835
|
source: z.ZodOptional<z.ZodEnum<{
|
|
814
836
|
provider: "provider";
|
|
815
|
-
tool: "tool";
|
|
816
837
|
runtime: "runtime";
|
|
838
|
+
tool: "tool";
|
|
817
839
|
network: "network";
|
|
818
840
|
}>>;
|
|
819
841
|
reason: z.ZodOptional<z.ZodString>;
|
|
820
842
|
errorPhase: z.ZodOptional<z.ZodEnum<{
|
|
821
843
|
response: "response";
|
|
844
|
+
connect: "connect";
|
|
822
845
|
prepare: "prepare";
|
|
823
846
|
configuration: "configuration";
|
|
824
|
-
connect: "connect";
|
|
825
847
|
stream: "stream";
|
|
826
848
|
parse: "parse";
|
|
827
849
|
validation: "validation";
|
|
828
850
|
unhandled: "unhandled";
|
|
829
851
|
}>>;
|
|
830
852
|
exceptionKind: z.ZodOptional<z.ZodEnum<{
|
|
853
|
+
transport: "transport";
|
|
831
854
|
validation: "validation";
|
|
832
855
|
api_call: "api_call";
|
|
833
856
|
generic: "generic";
|
|
834
857
|
protocol: "protocol";
|
|
835
858
|
provider_business: "provider_business";
|
|
836
|
-
transport: "transport";
|
|
837
859
|
type_error: "type_error";
|
|
838
860
|
}>>;
|
|
839
861
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -1003,25 +1025,36 @@ export declare const taskRealtimeDeliveredEventSchema: z.ZodDiscriminatedUnion<[
|
|
|
1003
1025
|
createdAt: z.ZodNumber;
|
|
1004
1026
|
updatedAt: z.ZodNumber;
|
|
1005
1027
|
mode: z.ZodEnum<{
|
|
1028
|
+
default: "default";
|
|
1029
|
+
auto: "auto";
|
|
1006
1030
|
plan: "plan";
|
|
1007
1031
|
build: "build";
|
|
1008
1032
|
edit: "edit";
|
|
1009
1033
|
yolo: "yolo";
|
|
1010
|
-
|
|
1034
|
+
guarded: "guarded";
|
|
1035
|
+
acceptEdits: "acceptEdits";
|
|
1036
|
+
dontAsk: "dontAsk";
|
|
1037
|
+
bypassPermissions: "bypassPermissions";
|
|
1011
1038
|
autoEdit: "autoEdit";
|
|
1012
1039
|
}>;
|
|
1013
1040
|
model: z.ZodOptional<z.ZodString>;
|
|
1014
1041
|
runtimeEpoch: z.ZodOptional<z.ZodNumber>;
|
|
1015
|
-
provider: z.ZodOptional<z.
|
|
1042
|
+
provider: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
1043
|
+
glm: "glm";
|
|
1044
|
+
claude: "claude";
|
|
1045
|
+
opencode: "opencode";
|
|
1046
|
+
gemini: "gemini";
|
|
1047
|
+
codex: "codex";
|
|
1048
|
+
}>, z.ZodTransform<"glm", "glm" | "claude" | "opencode" | "gemini" | "codex">>>;
|
|
1016
1049
|
migrationSource: z.ZodOptional<z.ZodEnum<{
|
|
1017
1050
|
claudeCode: "claudeCode";
|
|
1018
1051
|
}>>;
|
|
1019
1052
|
forkedFromTaskId: z.ZodOptional<z.ZodString>;
|
|
1020
1053
|
unreadAt: z.ZodOptional<z.ZodNumber>;
|
|
1021
1054
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1022
|
-
running: "running";
|
|
1023
|
-
completed: "completed";
|
|
1024
1055
|
error: "error";
|
|
1056
|
+
completed: "completed";
|
|
1057
|
+
running: "running";
|
|
1025
1058
|
}>>;
|
|
1026
1059
|
lastError: z.ZodOptional<z.ZodObject<{
|
|
1027
1060
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -1031,28 +1064,28 @@ export declare const taskRealtimeDeliveredEventSchema: z.ZodDiscriminatedUnion<[
|
|
|
1031
1064
|
attribution: z.ZodOptional<z.ZodObject<{
|
|
1032
1065
|
source: z.ZodOptional<z.ZodEnum<{
|
|
1033
1066
|
provider: "provider";
|
|
1034
|
-
tool: "tool";
|
|
1035
1067
|
runtime: "runtime";
|
|
1068
|
+
tool: "tool";
|
|
1036
1069
|
network: "network";
|
|
1037
1070
|
}>>;
|
|
1038
1071
|
reason: z.ZodOptional<z.ZodString>;
|
|
1039
1072
|
errorPhase: z.ZodOptional<z.ZodEnum<{
|
|
1040
1073
|
response: "response";
|
|
1074
|
+
connect: "connect";
|
|
1041
1075
|
prepare: "prepare";
|
|
1042
1076
|
configuration: "configuration";
|
|
1043
|
-
connect: "connect";
|
|
1044
1077
|
stream: "stream";
|
|
1045
1078
|
parse: "parse";
|
|
1046
1079
|
validation: "validation";
|
|
1047
1080
|
unhandled: "unhandled";
|
|
1048
1081
|
}>>;
|
|
1049
1082
|
exceptionKind: z.ZodOptional<z.ZodEnum<{
|
|
1083
|
+
transport: "transport";
|
|
1050
1084
|
validation: "validation";
|
|
1051
1085
|
api_call: "api_call";
|
|
1052
1086
|
generic: "generic";
|
|
1053
1087
|
protocol: "protocol";
|
|
1054
1088
|
provider_business: "provider_business";
|
|
1055
|
-
transport: "transport";
|
|
1056
1089
|
type_error: "type_error";
|
|
1057
1090
|
}>>;
|
|
1058
1091
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// 消费的运行时 zod schema 与 resolveWorkspaceKey。
|
|
5
5
|
// task-realtime.ts 保留旧协议兼容接口;本文件集中定义对应的运行时 schema。
|
|
6
6
|
import { z } from "zod";
|
|
7
|
-
import {
|
|
7
|
+
import { legacyDCodeProviderSchema } from "./dcode-agent-policy.js";
|
|
8
8
|
import { dcodePermissionResponseSchema } from "./dcode-protocol-legacy-types.js";
|
|
9
9
|
// merge 冲突解决:两侧分别在相邻行新增独立 import(本分支 hook trust review
|
|
10
10
|
// 决策 schema、staging telemetry error attribution schema),二者无语义交集,均保留。
|
|
@@ -12,10 +12,15 @@ import { workspaceHookReviewDecisionSchema } from "./dcode-protocol-v4/workspace
|
|
|
12
12
|
import { errorAttributionSchema } from "./dcode-protocol-v4/snapshot.js";
|
|
13
13
|
const nonEmptyString = z.string().trim().min(1);
|
|
14
14
|
const dcodeTaskModeRealtimeValues = [
|
|
15
|
+
"default",
|
|
15
16
|
"yolo",
|
|
17
|
+
"guarded",
|
|
16
18
|
"plan",
|
|
17
19
|
"edit",
|
|
20
|
+
"acceptEdits",
|
|
18
21
|
"auto",
|
|
22
|
+
"dontAsk",
|
|
23
|
+
"bypassPermissions",
|
|
19
24
|
"autoEdit",
|
|
20
25
|
"build",
|
|
21
26
|
];
|
|
@@ -52,7 +57,8 @@ const taskMetaRealtimeSchema = z.object({
|
|
|
52
57
|
mode: z.enum(dcodeTaskModeRealtimeValues),
|
|
53
58
|
model: z.string().optional(),
|
|
54
59
|
runtimeEpoch: z.number().int().nonnegative().optional(),
|
|
55
|
-
provider
|
|
60
|
+
// relay payload 可能由旧版本桌面投影;历史 provider 值在此归一为 glm。
|
|
61
|
+
provider: legacyDCodeProviderSchema.optional(),
|
|
56
62
|
migrationSource: z.enum(dcodeTaskMigrationSourceRealtimeValues).optional(),
|
|
57
63
|
forkedFromTaskId: nonEmptyString.optional(),
|
|
58
64
|
unreadAt: z.number().int().nonnegative().optional(),
|
|
@@ -39,4 +39,8 @@ export declare const TID_WORKFLOW_ARTIFACT_CHIP = "workflow-run-artifact-chip";
|
|
|
39
39
|
/** 会话里终态通知行折叠头部上的 chip——与中枢那枚**刻意不同 id**:两处的载荷来源不同,
|
|
40
40
|
* e2e 要能分别指到「通知行上出现了 chips」和「中枢历史行上出现了 chips」。 */
|
|
41
41
|
export declare const TID_CHAT_WORKFLOW_ARTIFACT_CHIP = "workflow-notification-artifact-chip";
|
|
42
|
+
export declare const TID_SETTINGS_DYNAMIC_WORKFLOW_MODE_TRIGGER = "settings-dynamic-workflow-mode-trigger";
|
|
43
|
+
/** 动态后缀为模式(disabled / onDemand / alwaysOn)。 */
|
|
44
|
+
export declare const TID_SETTINGS_DYNAMIC_WORKFLOW_MODE_ITEM = "settings-dynamic-workflow-mode-item";
|
|
45
|
+
export declare const TID_WORKFLOWS_OPEN_SETTINGS = "workflows-open-settings";
|
|
42
46
|
//# sourceMappingURL=test-ids-workflow.d.ts.map
|
|
@@ -53,4 +53,9 @@ export const TID_WORKFLOW_ARTIFACT_CHIP = "workflow-run-artifact-chip";
|
|
|
53
53
|
/** 会话里终态通知行折叠头部上的 chip——与中枢那枚**刻意不同 id**:两处的载荷来源不同,
|
|
54
54
|
* e2e 要能分别指到「通知行上出现了 chips」和「中枢历史行上出现了 chips」。 */
|
|
55
55
|
export const TID_CHAT_WORKFLOW_ARTIFACT_CHIP = "workflow-notification-artifact-chip";
|
|
56
|
+
// 动态工作流模式设置行与中枢跳转(docs/dynamic-workflow/launch.md「The user's choice」)。
|
|
57
|
+
export const TID_SETTINGS_DYNAMIC_WORKFLOW_MODE_TRIGGER = "settings-dynamic-workflow-mode-trigger";
|
|
58
|
+
/** 动态后缀为模式(disabled / onDemand / alwaysOn)。 */
|
|
59
|
+
export const TID_SETTINGS_DYNAMIC_WORKFLOW_MODE_ITEM = "settings-dynamic-workflow-mode-item";
|
|
60
|
+
export const TID_WORKFLOWS_OPEN_SETTINGS = "workflows-open-settings";
|
|
56
61
|
//# sourceMappingURL=test-ids-workflow.js.map
|
|
@@ -118,6 +118,15 @@ export declare const TID_BROWSER_OPEN_EXTERNAL_ITEM = "browser-open-external-ite
|
|
|
118
118
|
export declare const TID_BROWSER_DEVTOOLS_BUTTON = "browser-devtools-button";
|
|
119
119
|
/** 浏览器网页视图 */
|
|
120
120
|
export declare const TID_BROWSER_WEBVIEW = "browser-webview";
|
|
121
|
+
/** 内置浏览器权限确认条容器 */
|
|
122
|
+
export declare const TID_BROWSER_PERMISSION_PROMPTS = "browser-permission-prompts";
|
|
123
|
+
/** 权限确认条「仅本次允许」按钮 */
|
|
124
|
+
export declare const TID_BROWSER_PERMISSION_ALLOW_ONCE = "browser-permission-allow-once";
|
|
125
|
+
/** 权限确认条「访问此网站时允许」按钮 */
|
|
126
|
+
export declare const TID_BROWSER_PERMISSION_ALLOW_ALWAYS = "browser-permission-allow-always";
|
|
127
|
+
/** 权限确认条「不允许」按钮(本次拒绝,不记忆) */
|
|
128
|
+
export declare const TID_BROWSER_PERMISSION_DENY = "browser-permission-deny";
|
|
129
|
+
export declare const TID_BROWSER_PERMISSION_DISMISS = "browser-permission-dismiss";
|
|
121
130
|
/** 浏览器页面加载失败的可读错误态 */
|
|
122
131
|
export declare const TID_BROWSER_LOAD_ERROR = "browser-load-error";
|
|
123
132
|
/** 浏览器加载失败错误态里的证书放行指引 */
|
|
@@ -142,6 +151,8 @@ export declare const TID_SSH_CONNECT_TRIGGER = "ssh-connect-trigger";
|
|
|
142
151
|
export declare const TID_SSH_DIALOG = "ssh-dialog";
|
|
143
152
|
/** 远程连接方式切换到 SSH */
|
|
144
153
|
export declare const TID_REMOTE_KIND_SSH = "remote-kind-ssh";
|
|
154
|
+
/** 远程连接方式切换到 Server */
|
|
155
|
+
export declare const TID_REMOTE_KIND_SERVER = "remote-kind-server";
|
|
145
156
|
/** 远程连接方式切换到 WSL */
|
|
146
157
|
export declare const TID_REMOTE_KIND_WSL = "remote-kind-wsl";
|
|
147
158
|
/** 远程连接方式切换到 Docker */
|
|
@@ -170,6 +181,14 @@ export declare const TID_WSL_USER_INPUT = "wsl-user-input";
|
|
|
170
181
|
export declare const TID_DOCKER_CONTAINER_SELECT = "docker-container-select";
|
|
171
182
|
/** Docker 容器名称/ID 输入框 */
|
|
172
183
|
export declare const TID_DOCKER_CONTAINER_INPUT = "docker-container-input";
|
|
184
|
+
/** Server 远程服务 URL 输入框 */
|
|
185
|
+
export declare const TID_SERVER_URL_INPUT = "server-url-input";
|
|
186
|
+
/** Server 远程服务名称输入框 */
|
|
187
|
+
export declare const TID_SERVER_NAME_INPUT = "server-name-input";
|
|
188
|
+
/** Server 远程服务 token 输入框 */
|
|
189
|
+
export declare const TID_SERVER_TOKEN_INPUT = "server-token-input";
|
|
190
|
+
/** Server 远程默认工作区路径输入框 */
|
|
191
|
+
export declare const TID_SERVER_WORKSPACE_PATH_INPUT = "server-workspace-path-input";
|
|
173
192
|
/** SSH 连接确认按钮 */
|
|
174
193
|
export declare const TID_SSH_CONNECT_BUTTON = "ssh-connect-button";
|
|
175
194
|
/** SSH 弹窗取消按钮 */
|
|
@@ -676,6 +695,12 @@ export declare const TID_OFFPEAK_CREATE_OPEN = "offpeak-create-open";
|
|
|
676
695
|
export declare const TID_CONFIRM_DIALOG_CONFIRM = "confirm-dialog-confirm";
|
|
677
696
|
/** 为动态元素生成带后缀的 testid,如 file-tree-item-/home/user */
|
|
678
697
|
export declare function testId(base: string, suffix: string): string;
|
|
698
|
+
/** 左侧栏头像上方的可手动领取 Start Plan banner。 */
|
|
699
|
+
export declare const TID_MANUAL_CLAIM_PLAN_BANNER = "manual-claim-plan-banner";
|
|
700
|
+
/** 插件 UI 沙箱卡片容器与其中的 webview。 */
|
|
701
|
+
export declare const TID_PLUGIN_UI_CARD = "plugin-ui-card";
|
|
702
|
+
export declare const TID_PLUGIN_UI_OPEN_SIDE_PANE = "plugin-ui-open-side-pane";
|
|
703
|
+
export declare const TID_PLUGIN_UI_WEBVIEW = "plugin-ui-webview";
|
|
679
704
|
export declare const TID_START_PLAN_RECOMMENDATION_DIALOG = "start-plan-recommendation-dialog";
|
|
680
705
|
/** 用户反馈的诊断日志授权开关 */
|
|
681
706
|
export declare const TID_FEEDBACK_LOGS_OPT_IN = "feedback-logs-opt-in";
|