@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
|
@@ -13,7 +13,7 @@ export declare const providerProvisioningCredentialScopeSchema: z.ZodEnum<{
|
|
|
13
13
|
"account-provider": "account-provider";
|
|
14
14
|
}>;
|
|
15
15
|
export type ProviderProvisioningCredentialScope = z.infer<typeof providerProvisioningCredentialScopeSchema>;
|
|
16
|
-
/**
|
|
16
|
+
/** 仅供校验 schema v1 旧信封;新 Source 不导出、新 Target 不应用这些历史 Key。 */
|
|
17
17
|
export declare function isProviderProvisioningAccountCredentialKey(key: string): boolean;
|
|
18
18
|
/** Personal Config 的 Envelope;具体字段由 @dcode/provider 在目标 Environment 再校验。 */
|
|
19
19
|
export declare const providerProvisioningPersonalConfigSchema: z.ZodObject<{
|
|
@@ -73,7 +73,7 @@ export declare const providerProvisioningCredentialEntrySchema: z.ZodObject<{
|
|
|
73
73
|
}, z.core.$strict>;
|
|
74
74
|
export type ProviderProvisioningCredentialEntry = z.infer<typeof providerProvisioningCredentialEntrySchema>;
|
|
75
75
|
export declare const providerProvisioningEnvelopeSchema: z.ZodObject<{
|
|
76
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
76
|
+
schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
77
77
|
syncId: z.ZodString;
|
|
78
78
|
personalConfig: z.ZodObject<{
|
|
79
79
|
providerConfigRules: z.ZodObject<{
|
|
@@ -130,6 +130,19 @@ export declare const providerProvisioningEnvelopeSchema: z.ZodObject<{
|
|
|
130
130
|
}, z.core.$strict>>;
|
|
131
131
|
}, z.core.$strict>;
|
|
132
132
|
export type ProviderProvisioningEnvelope = z.infer<typeof providerProvisioningEnvelopeSchema>;
|
|
133
|
+
/** 跨进程只透传固定阶段码,不能把远端自由文本作为可公开诊断信息。 */
|
|
134
|
+
export declare const providerProvisioningErrorCodeSchema: z.ZodEnum<{
|
|
135
|
+
"source-read-failed": "source-read-failed";
|
|
136
|
+
"target-call-failed": "target-call-failed";
|
|
137
|
+
"target-write-failed": "target-write-failed";
|
|
138
|
+
"target-refresh-failed": "target-refresh-failed";
|
|
139
|
+
"target-commit-failed": "target-commit-failed";
|
|
140
|
+
"target-apply-failed": "target-apply-failed";
|
|
141
|
+
"capability-unavailable": "capability-unavailable";
|
|
142
|
+
"session-unavailable": "session-unavailable";
|
|
143
|
+
"host-execution-failed": "host-execution-failed";
|
|
144
|
+
}>;
|
|
145
|
+
export type ProviderProvisioningErrorCode = z.infer<typeof providerProvisioningErrorCodeSchema>;
|
|
133
146
|
export declare const providerProvisioningResultSchema: z.ZodObject<{
|
|
134
147
|
syncId: z.ZodString;
|
|
135
148
|
status: z.ZodEnum<{
|
|
@@ -143,6 +156,17 @@ export declare const providerProvisioningResultSchema: z.ZodObject<{
|
|
|
143
156
|
credentialCount: z.ZodNumber;
|
|
144
157
|
configRevision: z.ZodOptional<z.ZodString>;
|
|
145
158
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
159
|
+
errorCode: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
"source-read-failed": "source-read-failed";
|
|
161
|
+
"target-call-failed": "target-call-failed";
|
|
162
|
+
"target-write-failed": "target-write-failed";
|
|
163
|
+
"target-refresh-failed": "target-refresh-failed";
|
|
164
|
+
"target-commit-failed": "target-commit-failed";
|
|
165
|
+
"target-apply-failed": "target-apply-failed";
|
|
166
|
+
"capability-unavailable": "capability-unavailable";
|
|
167
|
+
"session-unavailable": "session-unavailable";
|
|
168
|
+
"host-execution-failed": "host-execution-failed";
|
|
169
|
+
}>>;
|
|
146
170
|
rolledBack: z.ZodBoolean;
|
|
147
171
|
}, z.core.$strict>;
|
|
148
172
|
export type ProviderProvisioningResult = z.infer<typeof providerProvisioningResultSchema>;
|
|
@@ -14,7 +14,7 @@ export const providerProvisioningCredentialScopeSchema = z.enum([
|
|
|
14
14
|
"oauth-session",
|
|
15
15
|
"account-provider",
|
|
16
16
|
]);
|
|
17
|
-
/**
|
|
17
|
+
/** 仅供校验 schema v1 旧信封;新 Source 不导出、新 Target 不应用这些历史 Key。 */
|
|
18
18
|
export function isProviderProvisioningAccountCredentialKey(key) {
|
|
19
19
|
const normalized = key.trim();
|
|
20
20
|
return normalized === key && /^account-provider:.+:api-key$/.test(normalized);
|
|
@@ -48,13 +48,28 @@ export const providerProvisioningCredentialEntrySchema = z
|
|
|
48
48
|
.strict();
|
|
49
49
|
export const providerProvisioningEnvelopeSchema = z
|
|
50
50
|
.object({
|
|
51
|
-
|
|
51
|
+
// v2 的缺失账号 Key 不再代表删除;旧 Target 必须在任何写入前拒绝该信封。
|
|
52
|
+
schemaVersion: z.union([z.literal(1), z.literal(2)]),
|
|
52
53
|
syncId: nonEmptyString,
|
|
53
54
|
personalConfig: providerProvisioningPersonalConfigSchema,
|
|
54
55
|
accountSettings: providerProvisioningAccountSettingsSchema,
|
|
55
56
|
credentials: z.array(providerProvisioningCredentialEntrySchema).max(256),
|
|
56
57
|
})
|
|
57
|
-
.strict()
|
|
58
|
+
.strict()
|
|
59
|
+
.refine((value) => value.schemaVersion === 1 ||
|
|
60
|
+
value.credentials.every((entry) => entry.scope === "oauth-session"), { message: "Provisioning v2 only accepts OAuth credentials", path: ["credentials"] });
|
|
61
|
+
/** 跨进程只透传固定阶段码,不能把远端自由文本作为可公开诊断信息。 */
|
|
62
|
+
export const providerProvisioningErrorCodeSchema = z.enum([
|
|
63
|
+
"source-read-failed",
|
|
64
|
+
"target-call-failed",
|
|
65
|
+
"target-write-failed",
|
|
66
|
+
"target-refresh-failed",
|
|
67
|
+
"target-commit-failed",
|
|
68
|
+
"target-apply-failed",
|
|
69
|
+
"capability-unavailable",
|
|
70
|
+
"session-unavailable",
|
|
71
|
+
"host-execution-failed",
|
|
72
|
+
]);
|
|
58
73
|
export const providerProvisioningResultSchema = z
|
|
59
74
|
.object({
|
|
60
75
|
syncId: nonEmptyString,
|
|
@@ -63,6 +78,7 @@ export const providerProvisioningResultSchema = z
|
|
|
63
78
|
credentialCount: z.number().int().nonnegative(),
|
|
64
79
|
configRevision: nonEmptyString.optional(),
|
|
65
80
|
errorMessage: z.string().optional(),
|
|
81
|
+
errorCode: providerProvisioningErrorCodeSchema.optional(),
|
|
66
82
|
rolledBack: z.boolean(),
|
|
67
83
|
})
|
|
68
84
|
.strict();
|
|
@@ -6,10 +6,9 @@ import { z } from "zod";
|
|
|
6
6
|
* 避免各处内联 z.enum([...]) 副本随新增/删除 provider 漂移。
|
|
7
7
|
* 本模块只依赖 zod(叶子),可被 validation / dcode-protocol 等无环引用。
|
|
8
8
|
*/
|
|
9
|
-
declare const DCODE_PROVIDERS: readonly ["glm"];
|
|
9
|
+
export declare const DCODE_PROVIDERS: readonly ["glm"];
|
|
10
10
|
export declare const dcodeProviderSchema: z.ZodEnum<{
|
|
11
11
|
glm: "glm";
|
|
12
12
|
}>;
|
|
13
13
|
export type DCodeProvider = (typeof DCODE_PROVIDERS)[number];
|
|
14
|
-
export {};
|
|
15
14
|
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -6,6 +6,6 @@ import { z } from "zod";
|
|
|
6
6
|
* 避免各处内联 z.enum([...]) 副本随新增/删除 provider 漂移。
|
|
7
7
|
* 本模块只依赖 zod(叶子),可被 validation / dcode-protocol 等无环引用。
|
|
8
8
|
*/
|
|
9
|
-
const DCODE_PROVIDERS = ["glm"];
|
|
9
|
+
export const DCODE_PROVIDERS = ["glm"];
|
|
10
10
|
export const dcodeProviderSchema = z.enum(DCODE_PROVIDERS);
|
|
11
11
|
//# sourceMappingURL=providers.js.map
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { RemoteTarget } from "./remoteTarget.js";
|
|
2
|
-
export type RemoteWorkspaceIdentityKind = "ssh" | "wsl" | "docker";
|
|
2
|
+
export type RemoteWorkspaceIdentityKind = "ssh" | "wsl" | "docker" | "server";
|
|
3
3
|
export interface ParsedRemoteWorkspaceIdentity {
|
|
4
4
|
kind: RemoteWorkspaceIdentityKind;
|
|
5
5
|
/** 远端真实路径(posix 归一形态)。 */
|
|
6
6
|
workspacePath: string;
|
|
7
7
|
}
|
|
8
|
+
export interface BuildServerRemoteWorkspaceIdentityOptions {
|
|
9
|
+
serverId: string;
|
|
10
|
+
workspacePath: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function buildServerRemoteWorkspaceIdentity(options: BuildServerRemoteWorkspaceIdentityOptions): string;
|
|
8
13
|
/**
|
|
9
14
|
* 统一构造远程 workspace identity。Host、Main 和 UI 禁止自行拼接 authority;
|
|
10
15
|
* `workspacePath` 只在这里归一后进入身份键,实际 IO 仍使用调用方原路径。
|
|
@@ -4,15 +4,44 @@ const AUTHORITY_SEGMENTS = {
|
|
|
4
4
|
ssh: 3,
|
|
5
5
|
wsl: 1,
|
|
6
6
|
docker: 1,
|
|
7
|
+
server: 1,
|
|
7
8
|
};
|
|
8
9
|
function isRemoteWorkspaceIdentityKind(value) {
|
|
9
|
-
return value === "ssh" || value === "wsl" || value === "docker";
|
|
10
|
+
return value === "ssh" || value === "wsl" || value === "docker" || value === "server";
|
|
10
11
|
}
|
|
11
12
|
function normalizeWorkspacePathForIdentity(workspacePath) {
|
|
12
13
|
const normalized = workspacePath.replace(/\\/g, "/").replace(/\/+/g, "/");
|
|
13
14
|
const trimmed = normalized.replace(/^\/+|\/+$/g, "");
|
|
14
15
|
return `/${trimmed}`;
|
|
15
16
|
}
|
|
17
|
+
function resolveServerIdentityId(target) {
|
|
18
|
+
const explicit = target.serverId?.trim() || target.name?.trim();
|
|
19
|
+
if (explicit) {
|
|
20
|
+
return explicit;
|
|
21
|
+
}
|
|
22
|
+
try {
|
|
23
|
+
return new URL(target.url.trim()).host;
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
return target.url.trim();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function normalizeServerIdForIdentity(serverId) {
|
|
30
|
+
const normalized = serverId
|
|
31
|
+
.trim()
|
|
32
|
+
.toLowerCase()
|
|
33
|
+
.replace(/[^a-z0-9._-]+/g, "-")
|
|
34
|
+
.replace(/^-+|-+$/g, "");
|
|
35
|
+
if (!normalized) {
|
|
36
|
+
throw new Error("serverId must contain at least one identity-safe character");
|
|
37
|
+
}
|
|
38
|
+
return normalized;
|
|
39
|
+
}
|
|
40
|
+
export function buildServerRemoteWorkspaceIdentity(options) {
|
|
41
|
+
const serverId = normalizeServerIdForIdentity(options.serverId);
|
|
42
|
+
const workspacePath = normalizeWorkspacePathForIdentity(options.workspacePath);
|
|
43
|
+
return `${REMOTE_IDENTITY_PREFIX}server:${serverId}:${workspacePath}`;
|
|
44
|
+
}
|
|
16
45
|
/**
|
|
17
46
|
* 统一构造远程 workspace identity。Host、Main 和 UI 禁止自行拼接 authority;
|
|
18
47
|
* `workspacePath` 只在这里归一后进入身份键,实际 IO 仍使用调用方原路径。
|
|
@@ -31,6 +60,11 @@ export function buildRemoteWorkspaceIdentity(workspacePath, target) {
|
|
|
31
60
|
}
|
|
32
61
|
case "docker":
|
|
33
62
|
return `remote:docker:${target.container}:${normalizedPath}`;
|
|
63
|
+
case "server":
|
|
64
|
+
return buildServerRemoteWorkspaceIdentity({
|
|
65
|
+
serverId: resolveServerIdentityId(target),
|
|
66
|
+
workspacePath: normalizedPath,
|
|
67
|
+
});
|
|
34
68
|
}
|
|
35
69
|
}
|
|
36
70
|
/**
|
|
@@ -10,6 +10,25 @@ export function buildRemoteEnvironmentKey(target) {
|
|
|
10
10
|
return `wsl:${target.distro?.trim() || "<default>"}\0${target.user?.trim() || "<default>"}`;
|
|
11
11
|
case "docker":
|
|
12
12
|
return `docker:${target.container.trim()}`;
|
|
13
|
+
case "server":
|
|
14
|
+
return `server:${target.serverId?.trim() || normalizeServerEndpoint(target.url)}`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function normalizeServerEndpoint(url) {
|
|
18
|
+
try {
|
|
19
|
+
const parsed = new URL(url.trim());
|
|
20
|
+
if (parsed.protocol === "ws:")
|
|
21
|
+
parsed.protocol = "http:";
|
|
22
|
+
if (parsed.protocol === "wss:")
|
|
23
|
+
parsed.protocol = "https:";
|
|
24
|
+
parsed.hash = "";
|
|
25
|
+
parsed.search = "";
|
|
26
|
+
const path = parsed.pathname.replace(/\/+$/gu, "");
|
|
27
|
+
parsed.pathname = path.endsWith("/ws") ? path.slice(0, -3) || "/" : path || "/";
|
|
28
|
+
return parsed.toString().replace(/\/$/gu, "");
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
return url.trim().replace(/\/+$/gu, "");
|
|
13
32
|
}
|
|
14
33
|
}
|
|
15
34
|
//# sourceMappingURL=remoteEnvironmentKey.js.map
|
|
@@ -21,7 +21,20 @@ export interface DockerConnectOptions {
|
|
|
21
21
|
kind: "docker";
|
|
22
22
|
container: string;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export interface ServerConnectOptions {
|
|
25
|
+
kind: "server";
|
|
26
|
+
/** 已运行的 dcode-server HTTP(S)/WS(S) 入口。 */
|
|
27
|
+
url: string;
|
|
28
|
+
/** 用户可读名称,仅用于展示。 */
|
|
29
|
+
name?: string;
|
|
30
|
+
/** 临时连接凭据;持久化时必须转成 credential key。 */
|
|
31
|
+
token?: string;
|
|
32
|
+
/** 服务端默认工作区路径,可被连接流程中的 workspacePath 覆盖。 */
|
|
33
|
+
workspacePath?: string;
|
|
34
|
+
/** 远端服务实例稳定标识,用于 workspaceIdentity authority。 */
|
|
35
|
+
serverId?: string;
|
|
36
|
+
}
|
|
37
|
+
export type RemoteTarget = SSHConnectOptions | WSLConnectOptions | DockerConnectOptions | ServerConnectOptions;
|
|
25
38
|
/** 删除只应存在于当前连接流程中的 secret,供长期内存状态和跨进程回包使用。 */
|
|
26
39
|
export declare function stripRemoteTargetSecrets(target: RemoteTarget): RemoteTarget;
|
|
27
40
|
//# sourceMappingURL=remoteTarget.d.ts.map
|
|
@@ -4,6 +4,10 @@ export function stripRemoteTargetSecrets(target) {
|
|
|
4
4
|
const { password: _password, privateKeyPassphrase: _privateKeyPassphrase, ...sanitized } = target;
|
|
5
5
|
return sanitized;
|
|
6
6
|
}
|
|
7
|
+
if (target.kind === "server") {
|
|
8
|
+
const { token: _token, ...sanitized } = target;
|
|
9
|
+
return sanitized;
|
|
10
|
+
}
|
|
7
11
|
return target;
|
|
8
12
|
}
|
|
9
13
|
//# sourceMappingURL=remoteTarget.js.map
|
|
@@ -12,7 +12,10 @@ export declare function resolveWorkspaceTelemetryDetail(scope: {
|
|
|
12
12
|
export type RemoteUsageRemoteKind = RemoteTarget["kind"];
|
|
13
13
|
export type RemoteUsageWorkspaceKind = "local" | "remote";
|
|
14
14
|
export type RemoteUsageResult = "success" | "failure";
|
|
15
|
+
export type WebRemoteControlStartTelemetryResult = RemoteUsageResult | "cancelled";
|
|
15
16
|
export type RemoteWorkspaceConnectTrigger = "new" | "reconnect" | "restore";
|
|
17
|
+
export type WebRemoteControlPairKind = "initial" | "reconnect";
|
|
18
|
+
export type WebRemoteControlEntryKind = "home" | "task";
|
|
16
19
|
export type RemoteUsageErrorCategory = "auth" | "connect" | "deploy" | "host_start" | "attach" | "relay" | "unknown";
|
|
17
20
|
export declare function buildRemoteWorkspaceConnectResultTelemetry(input: {
|
|
18
21
|
result: RemoteUsageResult;
|
|
@@ -20,6 +23,30 @@ export declare function buildRemoteWorkspaceConnectResultTelemetry(input: {
|
|
|
20
23
|
connectTrigger: RemoteWorkspaceConnectTrigger;
|
|
21
24
|
errorCategory?: RemoteUsageErrorCategory;
|
|
22
25
|
}): TelemetryEventPayload;
|
|
26
|
+
export declare function buildWebRemoteControlEntryViewTelemetry(input: {
|
|
27
|
+
workspaceKind: RemoteUsageWorkspaceKind;
|
|
28
|
+
remoteKind?: RemoteUsageRemoteKind;
|
|
29
|
+
}): TelemetryEventPayload;
|
|
30
|
+
export declare function buildWebRemoteControlStartResultTelemetry(input: {
|
|
31
|
+
result: WebRemoteControlStartTelemetryResult;
|
|
32
|
+
workspaceKind: RemoteUsageWorkspaceKind;
|
|
33
|
+
remoteKind?: RemoteUsageRemoteKind;
|
|
34
|
+
errorCategory?: RemoteUsageErrorCategory;
|
|
35
|
+
}): TelemetryEventPayload;
|
|
36
|
+
export declare function buildWebRemoteControlPairResultTelemetry(input: {
|
|
37
|
+
result: RemoteUsageResult;
|
|
38
|
+
pairKind: WebRemoteControlPairKind;
|
|
39
|
+
workspaceKind: RemoteUsageWorkspaceKind;
|
|
40
|
+
remoteKind?: RemoteUsageRemoteKind;
|
|
41
|
+
errorCategory?: RemoteUsageErrorCategory;
|
|
42
|
+
}): TelemetryEventPayload;
|
|
43
|
+
export declare function buildWebRemoteControlBridgeResultTelemetry(input: {
|
|
44
|
+
result: RemoteUsageResult;
|
|
45
|
+
workspaceKind: RemoteUsageWorkspaceKind;
|
|
46
|
+
remoteKind?: RemoteUsageRemoteKind;
|
|
47
|
+
entryKind: WebRemoteControlEntryKind;
|
|
48
|
+
errorCategory?: RemoteUsageErrorCategory;
|
|
49
|
+
}): TelemetryEventPayload;
|
|
23
50
|
/**
|
|
24
51
|
* 原始错误只在本地参与匹配,返回值固定为低基数枚举,禁止把远端目标或错误消息带入埋点。
|
|
25
52
|
*/
|
|
@@ -7,6 +7,20 @@ export function resolveWorkspaceTelemetryDetail(scope) {
|
|
|
7
7
|
remote_kind: identity ? (parseRemoteWorkspaceIdentity(identity)?.kind ?? "") : "",
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
function buildResultDetail(result, errorCategory) {
|
|
11
|
+
return {
|
|
12
|
+
result,
|
|
13
|
+
error_category: result === "failure" ? (errorCategory ?? "unknown") : "",
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function buildWebRemoteControlEvent(elementName, eventType, eventExtraDetail) {
|
|
17
|
+
return {
|
|
18
|
+
elementName,
|
|
19
|
+
eventRegion: "web_remote_control",
|
|
20
|
+
eventType,
|
|
21
|
+
eventExtraDetail,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
10
24
|
export function buildRemoteWorkspaceConnectResultTelemetry(input) {
|
|
11
25
|
return {
|
|
12
26
|
elementName: "remote_workspace_connect_result",
|
|
@@ -20,6 +34,35 @@ export function buildRemoteWorkspaceConnectResultTelemetry(input) {
|
|
|
20
34
|
},
|
|
21
35
|
};
|
|
22
36
|
}
|
|
37
|
+
export function buildWebRemoteControlEntryViewTelemetry(input) {
|
|
38
|
+
return buildWebRemoteControlEvent("web_remote_control_entry_view", "view", {
|
|
39
|
+
workspace_kind: input.workspaceKind,
|
|
40
|
+
remote_kind: input.remoteKind ?? "",
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export function buildWebRemoteControlStartResultTelemetry(input) {
|
|
44
|
+
return buildWebRemoteControlEvent("web_remote_control_start_result", "result", {
|
|
45
|
+
...buildResultDetail(input.result, input.errorCategory),
|
|
46
|
+
workspace_kind: input.workspaceKind,
|
|
47
|
+
remote_kind: input.remoteKind ?? "",
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
export function buildWebRemoteControlPairResultTelemetry(input) {
|
|
51
|
+
return buildWebRemoteControlEvent("web_remote_control_pair_result", "result", {
|
|
52
|
+
...buildResultDetail(input.result, input.errorCategory),
|
|
53
|
+
pair_kind: input.pairKind,
|
|
54
|
+
workspace_kind: input.workspaceKind,
|
|
55
|
+
remote_kind: input.remoteKind ?? "",
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
export function buildWebRemoteControlBridgeResultTelemetry(input) {
|
|
59
|
+
return buildWebRemoteControlEvent("web_remote_control_bridge_result", "result", {
|
|
60
|
+
...buildResultDetail(input.result, input.errorCategory),
|
|
61
|
+
workspace_kind: input.workspaceKind,
|
|
62
|
+
remote_kind: input.remoteKind ?? "",
|
|
63
|
+
entry_kind: input.entryKind,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
23
66
|
function readErrorSearchText(error) {
|
|
24
67
|
if (typeof error === "string") {
|
|
25
68
|
return error.toLowerCase();
|
|
@@ -4,11 +4,11 @@ export declare const RENDERER_ACTION_TRACE_MAX_SAMPLE_RATIO = 0.2;
|
|
|
4
4
|
export declare const RENDERER_ACTION_TRACE_MAX_BATCH_SPANS = 32;
|
|
5
5
|
export declare const RENDERER_ACTION_TRACE_MAX_BATCH_BYTES: number;
|
|
6
6
|
export declare const rendererActionTraceGroupSchema: z.ZodEnum<{
|
|
7
|
-
|
|
7
|
+
automation: "automation";
|
|
8
8
|
settings: "settings";
|
|
9
|
+
core: "core";
|
|
9
10
|
workbench: "workbench";
|
|
10
11
|
extensions: "extensions";
|
|
11
|
-
automation: "automation";
|
|
12
12
|
account: "account";
|
|
13
13
|
}>;
|
|
14
14
|
export type RendererActionTraceGroup = z.infer<typeof rendererActionTraceGroupSchema>;
|
|
@@ -17,11 +17,11 @@ export declare const rendererActionTraceConfigSchema: z.ZodObject<{
|
|
|
17
17
|
localTtftEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
18
18
|
sampleRatio: z.ZodNumber;
|
|
19
19
|
enabledGroups: z.ZodArray<z.ZodEnum<{
|
|
20
|
-
|
|
20
|
+
automation: "automation";
|
|
21
21
|
settings: "settings";
|
|
22
|
+
core: "core";
|
|
22
23
|
workbench: "workbench";
|
|
23
24
|
extensions: "extensions";
|
|
24
|
-
automation: "automation";
|
|
25
25
|
account: "account";
|
|
26
26
|
}>>;
|
|
27
27
|
configVersion: z.ZodString;
|
|
@@ -32,19 +32,19 @@ export declare const rendererActionTraceAttributesSchema: z.ZodObject<{
|
|
|
32
32
|
feature_id: z.ZodString;
|
|
33
33
|
action: z.ZodString;
|
|
34
34
|
catalog_group: z.ZodEnum<{
|
|
35
|
-
|
|
35
|
+
automation: "automation";
|
|
36
36
|
settings: "settings";
|
|
37
|
+
core: "core";
|
|
37
38
|
workbench: "workbench";
|
|
38
39
|
extensions: "extensions";
|
|
39
|
-
automation: "automation";
|
|
40
40
|
account: "account";
|
|
41
41
|
}>;
|
|
42
42
|
operation_kind: z.ZodEnum<{
|
|
43
43
|
command: "command";
|
|
44
|
+
destructive: "destructive";
|
|
44
45
|
navigation: "navigation";
|
|
45
46
|
preference: "preference";
|
|
46
47
|
management: "management";
|
|
47
|
-
destructive: "destructive";
|
|
48
48
|
}>;
|
|
49
49
|
surface: z.ZodString;
|
|
50
50
|
trigger: z.ZodEnum<{
|
|
@@ -57,11 +57,11 @@ export declare const rendererActionTraceAttributesSchema: z.ZodObject<{
|
|
|
57
57
|
switch: "switch";
|
|
58
58
|
}>;
|
|
59
59
|
outcome: z.ZodEnum<{
|
|
60
|
-
completed: "completed";
|
|
61
60
|
failed: "failed";
|
|
62
61
|
cancelled: "cancelled";
|
|
63
|
-
|
|
62
|
+
completed: "completed";
|
|
64
63
|
rejected: "rejected";
|
|
64
|
+
noop: "noop";
|
|
65
65
|
abandoned: "abandoned";
|
|
66
66
|
}>;
|
|
67
67
|
result_source: z.ZodOptional<z.ZodEnum<{
|
|
@@ -82,8 +82,8 @@ export declare const rendererActionTraceAttributesSchema: z.ZodObject<{
|
|
|
82
82
|
section_id: z.ZodOptional<z.ZodString>;
|
|
83
83
|
value_after: z.ZodOptional<z.ZodString>;
|
|
84
84
|
workspace_kind: z.ZodOptional<z.ZodEnum<{
|
|
85
|
-
remote: "remote";
|
|
86
85
|
local: "local";
|
|
86
|
+
remote: "remote";
|
|
87
87
|
}>>;
|
|
88
88
|
remote_kind: z.ZodOptional<z.ZodEnum<{
|
|
89
89
|
ssh: "ssh";
|
|
@@ -93,11 +93,11 @@ export declare const rendererActionTraceAttributesSchema: z.ZodObject<{
|
|
|
93
93
|
}>>;
|
|
94
94
|
admission_result: z.ZodOptional<z.ZodEnum<{
|
|
95
95
|
stale: "stale";
|
|
96
|
-
|
|
97
|
-
not_applicable: "not_applicable";
|
|
96
|
+
duplicate: "duplicate";
|
|
98
97
|
accepted: "accepted";
|
|
99
98
|
rejected: "rejected";
|
|
100
|
-
|
|
99
|
+
noop: "noop";
|
|
100
|
+
not_applicable: "not_applicable";
|
|
101
101
|
}>>;
|
|
102
102
|
automation_kind: z.ZodOptional<z.ZodEnum<{
|
|
103
103
|
scheduled: "scheduled";
|
|
@@ -121,19 +121,19 @@ export declare const rendererActionTraceSpanSchema: z.ZodObject<{
|
|
|
121
121
|
feature_id: z.ZodString;
|
|
122
122
|
action: z.ZodString;
|
|
123
123
|
catalog_group: z.ZodEnum<{
|
|
124
|
-
|
|
124
|
+
automation: "automation";
|
|
125
125
|
settings: "settings";
|
|
126
|
+
core: "core";
|
|
126
127
|
workbench: "workbench";
|
|
127
128
|
extensions: "extensions";
|
|
128
|
-
automation: "automation";
|
|
129
129
|
account: "account";
|
|
130
130
|
}>;
|
|
131
131
|
operation_kind: z.ZodEnum<{
|
|
132
132
|
command: "command";
|
|
133
|
+
destructive: "destructive";
|
|
133
134
|
navigation: "navigation";
|
|
134
135
|
preference: "preference";
|
|
135
136
|
management: "management";
|
|
136
|
-
destructive: "destructive";
|
|
137
137
|
}>;
|
|
138
138
|
surface: z.ZodString;
|
|
139
139
|
trigger: z.ZodEnum<{
|
|
@@ -146,11 +146,11 @@ export declare const rendererActionTraceSpanSchema: z.ZodObject<{
|
|
|
146
146
|
switch: "switch";
|
|
147
147
|
}>;
|
|
148
148
|
outcome: z.ZodEnum<{
|
|
149
|
-
completed: "completed";
|
|
150
149
|
failed: "failed";
|
|
151
150
|
cancelled: "cancelled";
|
|
152
|
-
|
|
151
|
+
completed: "completed";
|
|
153
152
|
rejected: "rejected";
|
|
153
|
+
noop: "noop";
|
|
154
154
|
abandoned: "abandoned";
|
|
155
155
|
}>;
|
|
156
156
|
result_source: z.ZodOptional<z.ZodEnum<{
|
|
@@ -171,8 +171,8 @@ export declare const rendererActionTraceSpanSchema: z.ZodObject<{
|
|
|
171
171
|
section_id: z.ZodOptional<z.ZodString>;
|
|
172
172
|
value_after: z.ZodOptional<z.ZodString>;
|
|
173
173
|
workspace_kind: z.ZodOptional<z.ZodEnum<{
|
|
174
|
-
remote: "remote";
|
|
175
174
|
local: "local";
|
|
175
|
+
remote: "remote";
|
|
176
176
|
}>>;
|
|
177
177
|
remote_kind: z.ZodOptional<z.ZodEnum<{
|
|
178
178
|
ssh: "ssh";
|
|
@@ -182,11 +182,11 @@ export declare const rendererActionTraceSpanSchema: z.ZodObject<{
|
|
|
182
182
|
}>>;
|
|
183
183
|
admission_result: z.ZodOptional<z.ZodEnum<{
|
|
184
184
|
stale: "stale";
|
|
185
|
-
|
|
186
|
-
not_applicable: "not_applicable";
|
|
185
|
+
duplicate: "duplicate";
|
|
187
186
|
accepted: "accepted";
|
|
188
187
|
rejected: "rejected";
|
|
189
|
-
|
|
188
|
+
noop: "noop";
|
|
189
|
+
not_applicable: "not_applicable";
|
|
190
190
|
}>>;
|
|
191
191
|
automation_kind: z.ZodOptional<z.ZodEnum<{
|
|
192
192
|
scheduled: "scheduled";
|
|
@@ -200,9 +200,9 @@ export declare const rendererActionTraceResourceSchema: z.ZodObject<{
|
|
|
200
200
|
serviceName: z.ZodLiteral<"dcode-desktop-renderer">;
|
|
201
201
|
serviceVersion: z.ZodString;
|
|
202
202
|
deploymentEnvironment: z.ZodEnum<{
|
|
203
|
-
development: "development";
|
|
204
|
-
production: "production";
|
|
205
203
|
test: "test";
|
|
204
|
+
production: "production";
|
|
205
|
+
development: "development";
|
|
206
206
|
}>;
|
|
207
207
|
rendererInstanceId: z.ZodString;
|
|
208
208
|
}, z.core.$strict>;
|
|
@@ -216,9 +216,9 @@ export declare const rendererActionTraceBatchSchema: z.ZodObject<{
|
|
|
216
216
|
serviceName: z.ZodLiteral<"dcode-desktop-renderer">;
|
|
217
217
|
serviceVersion: z.ZodString;
|
|
218
218
|
deploymentEnvironment: z.ZodEnum<{
|
|
219
|
-
development: "development";
|
|
220
|
-
production: "production";
|
|
221
219
|
test: "test";
|
|
220
|
+
production: "production";
|
|
221
|
+
development: "development";
|
|
222
222
|
}>;
|
|
223
223
|
rendererInstanceId: z.ZodString;
|
|
224
224
|
}, z.core.$strict>;
|
|
@@ -237,19 +237,19 @@ export declare const rendererActionTraceBatchSchema: z.ZodObject<{
|
|
|
237
237
|
feature_id: z.ZodString;
|
|
238
238
|
action: z.ZodString;
|
|
239
239
|
catalog_group: z.ZodEnum<{
|
|
240
|
-
|
|
240
|
+
automation: "automation";
|
|
241
241
|
settings: "settings";
|
|
242
|
+
core: "core";
|
|
242
243
|
workbench: "workbench";
|
|
243
244
|
extensions: "extensions";
|
|
244
|
-
automation: "automation";
|
|
245
245
|
account: "account";
|
|
246
246
|
}>;
|
|
247
247
|
operation_kind: z.ZodEnum<{
|
|
248
248
|
command: "command";
|
|
249
|
+
destructive: "destructive";
|
|
249
250
|
navigation: "navigation";
|
|
250
251
|
preference: "preference";
|
|
251
252
|
management: "management";
|
|
252
|
-
destructive: "destructive";
|
|
253
253
|
}>;
|
|
254
254
|
surface: z.ZodString;
|
|
255
255
|
trigger: z.ZodEnum<{
|
|
@@ -262,11 +262,11 @@ export declare const rendererActionTraceBatchSchema: z.ZodObject<{
|
|
|
262
262
|
switch: "switch";
|
|
263
263
|
}>;
|
|
264
264
|
outcome: z.ZodEnum<{
|
|
265
|
-
completed: "completed";
|
|
266
265
|
failed: "failed";
|
|
267
266
|
cancelled: "cancelled";
|
|
268
|
-
|
|
267
|
+
completed: "completed";
|
|
269
268
|
rejected: "rejected";
|
|
269
|
+
noop: "noop";
|
|
270
270
|
abandoned: "abandoned";
|
|
271
271
|
}>;
|
|
272
272
|
result_source: z.ZodOptional<z.ZodEnum<{
|
|
@@ -287,8 +287,8 @@ export declare const rendererActionTraceBatchSchema: z.ZodObject<{
|
|
|
287
287
|
section_id: z.ZodOptional<z.ZodString>;
|
|
288
288
|
value_after: z.ZodOptional<z.ZodString>;
|
|
289
289
|
workspace_kind: z.ZodOptional<z.ZodEnum<{
|
|
290
|
-
remote: "remote";
|
|
291
290
|
local: "local";
|
|
291
|
+
remote: "remote";
|
|
292
292
|
}>>;
|
|
293
293
|
remote_kind: z.ZodOptional<z.ZodEnum<{
|
|
294
294
|
ssh: "ssh";
|
|
@@ -298,11 +298,11 @@ export declare const rendererActionTraceBatchSchema: z.ZodObject<{
|
|
|
298
298
|
}>>;
|
|
299
299
|
admission_result: z.ZodOptional<z.ZodEnum<{
|
|
300
300
|
stale: "stale";
|
|
301
|
-
|
|
302
|
-
not_applicable: "not_applicable";
|
|
301
|
+
duplicate: "duplicate";
|
|
303
302
|
accepted: "accepted";
|
|
304
303
|
rejected: "rejected";
|
|
305
|
-
|
|
304
|
+
noop: "noop";
|
|
305
|
+
not_applicable: "not_applicable";
|
|
306
306
|
}>>;
|
|
307
307
|
automation_kind: z.ZodOptional<z.ZodEnum<{
|
|
308
308
|
scheduled: "scheduled";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type RequestVerificationConfig = Readonly<Record<string, unknown>>;
|
|
2
|
+
export type RequestVerificationProof = Record<never, never>;
|
|
3
|
+
export type RequestVerificationClientConfig = Record<never, never>;
|
|
4
|
+
export declare const requestVerificationReasons: readonly ["model-request"];
|
|
5
|
+
export type RequestVerificationReason = (typeof requestVerificationReasons)[number];
|
|
6
|
+
export declare const requestVerificationTimeoutMessage = "Provider runtime headers request timed out. Please send your message again.";
|
|
7
|
+
export declare const REQUEST_VERIFICATION_REQUIRED = "request_verification_unavailable";
|
|
8
|
+
export declare function readRequestVerificationConfig(_configs: RequestVerificationClientConfig | null | undefined): RequestVerificationConfig | null;
|
|
9
|
+
export declare function requestVerificationClaimHeaders(_proof: RequestVerificationProof): Record<string, string>;
|
|
10
|
+
export declare function withoutRequestVerificationHeaders(headers: Record<string, string> | undefined): Record<string, string>;
|
|
11
|
+
export declare function allowRequestVerificationHeaders(_headers: Record<string, string>): Record<string, string>;
|
|
12
|
+
export declare function requiresRequestVerification(_access: {
|
|
13
|
+
mode: string;
|
|
14
|
+
} | undefined): boolean;
|
|
15
|
+
export declare function isRequestVerificationMessage(_message: string): boolean;
|
|
16
|
+
export declare function summarizeRequestVerificationHeaders(_headers: Record<string, string>): Record<string, unknown>;
|
|
17
|
+
export declare function requestVerificationDiagnostics(_input: Record<string, unknown>): Record<string, unknown>;
|
|
18
|
+
export declare const requestVerificationInteractionAvailable = false;
|
|
19
|
+
//# sourceMappingURL=verification-policy.d.ts.map
|