@dipoleml/dcode-cli 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY-NOTICES.md +1081 -12
- package/dist/dcode.cjs +59155 -45279
- package/dist/packages/browser-use-plugin/README.md +12 -12
- package/dist/packages/browser-use-plugin/docs/api.json +1 -1
- package/dist/packages/browser-use-plugin/docs/overview.md +5 -4
- package/dist/packages/browser-use-plugin/docs/workflow.md +1 -1
- package/dist/packages/browser-use-plugin/scripts/build.mjs +1 -0
- package/dist/packages/browser-use-plugin/skills/control-browser/SKILL.md +10 -7
- package/dist/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
- package/dist/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
- package/dist/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
- package/dist/packages/node-repl-host/.dcode-plugin/plugin.json +1 -1
- package/dist/packages/node-repl-host/dist/mcp/server.js +9 -14
- package/dist/packages/node-repl-host/scripts/build.mjs +1 -0
- package/dist/provider/dcode-builtin.json +6544 -183
- package/node_modules/@dcode/contracts/dist/compact/index.d.ts +7 -7
- package/node_modules/@dcode/contracts/dist/config/index.d.ts +1 -1
- package/node_modules/@dcode/contracts/dist/events/event-reducer.js +1 -0
- package/node_modules/@dcode/contracts/dist/events/in-memory-session-event-store.js +3 -2
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.d.ts +8 -0
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.js +18 -0
- package/node_modules/@dcode/contracts/dist/events/session.events.d.ts +94 -16
- package/node_modules/@dcode/contracts/dist/events/session.events.js +10 -0
- package/node_modules/@dcode/contracts/dist/hooks/index.d.ts +134 -134
- package/node_modules/@dcode/contracts/dist/hooks/workspace-hook-trust.d.ts +14 -14
- package/node_modules/@dcode/contracts/dist/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/index.js +2 -0
- package/node_modules/@dcode/contracts/dist/interfaces/browser-control.port.d.ts +22 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.d.ts +92 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.js +9 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.js +7 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-workspace.port.js +8 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.d.ts +119 -18
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.js +13 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.d.ts +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.d.ts +161 -1
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.js +17 -0
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.d.ts +15 -15
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.js +1 -1
- package/node_modules/@dcode/contracts/dist/interfaces/permission.port.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.d.ts +19 -0
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.d.ts +4 -2
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.js +5 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.d.ts +92 -3
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.js +4 -1
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.d.ts +25 -0
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/model/index.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/model/index.js +5 -0
- package/node_modules/@dcode/contracts/dist/model/invocation-context.d.ts +6 -1
- package/node_modules/@dcode/contracts/dist/plugins/index.d.ts +23 -0
- package/node_modules/@dcode/contracts/dist/plugins/index.js +2 -1
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.js +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/index.d.ts +5 -1
- package/node_modules/@dcode/contracts/dist/telemetry/index.js +12 -0
- package/node_modules/@dcode/contracts/dist/tools/agent.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.d.ts +39 -15
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.js +12 -6
- package/node_modules/@dcode/contracts/dist/tools/automation.d.ts +32 -32
- package/node_modules/@dcode/contracts/dist/tools/automation.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/bash.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/bash.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.d.ts +365 -66
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.js +92 -11
- package/node_modules/@dcode/contracts/dist/tools/edit.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.js +5 -1
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.d.ts +729 -0
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.js +102 -0
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.d.ts +136 -28
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.js +36 -0
- package/node_modules/@dcode/contracts/dist/tools/grep.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/grep.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/tools/index.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/list-saved-workflows.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/list-workflow-runs.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/node-repl.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/off-peak.d.ts +3 -3
- package/node_modules/@dcode/contracts/dist/tools/off-peak.js +2 -2
- package/node_modules/@dcode/contracts/dist/tools/performance.d.ts +22 -22
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.js +6 -4
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.d.ts +86 -13
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.js +37 -6
- package/node_modules/@dcode/contracts/dist/tools/read.d.ts +38 -38
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.d.ts +21 -10
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.js +22 -2
- package/node_modules/@dcode/contracts/dist/tools/saved-workflow.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/send-message.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/skill.js +1 -0
- package/node_modules/@dcode/contracts/dist/tools/task-output.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.d.ts +1228 -259
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.js +41 -0
- package/node_modules/@dcode/contracts/dist/tools/webfetch.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/workflow-observation-display.d.ts +20 -20
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.d.ts +55 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.js +86 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/write.d.ts +18 -18
- package/node_modules/@dcode/contracts/dist/workflow/index.d.ts +98 -98
- package/node_modules/@dcode/contracts/dist/workflow/script.d.ts +12 -12
- package/node_modules/@dcode/i18n/dist/index.js +2 -2
- package/node_modules/@dcode/i18n/dist/locale.d.ts +1 -1
- package/node_modules/@dcode/i18n/dist/locale.js +4 -4
- package/node_modules/@dcode/i18n/dist/locales/en-US.js +5 -5
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.d.ts +3 -0
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.js +354 -0
- package/node_modules/@dcode/model-option-map/package.json +1 -1
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.js +6 -0
- package/node_modules/@dcode/shared/dist/attachment-source.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/attachment-source.js +4 -0
- package/node_modules/@dcode/shared/dist/background-bash-output.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/bots.d.ts +759 -11
- package/node_modules/@dcode/shared/dist/bots.js +236 -2
- package/node_modules/@dcode/shared/dist/browser-use/command-metadata.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/browser-use/commands.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/browser-use/commands.js +3 -1
- package/node_modules/@dcode/shared/dist/browser-use/nodeReplBroker.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/browser-use/result.d.ts +6 -6
- package/node_modules/@dcode/shared/dist/channel-mention.d.ts +173 -0
- package/node_modules/@dcode/shared/dist/channel-mention.js +120 -0
- package/node_modules/@dcode/shared/dist/channels.d.ts +128 -1
- package/node_modules/@dcode/shared/dist/channels.js +66 -0
- package/node_modules/@dcode/shared/dist/clientConfig.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/clientConfig.js +18 -2
- package/node_modules/@dcode/shared/dist/cloudContent.d.ts +160 -0
- package/node_modules/@dcode/shared/dist/cloudContent.js +116 -0
- package/node_modules/@dcode/shared/dist/coding-plan-subscription.d.ts +59 -0
- package/node_modules/@dcode/shared/dist/conversation-message-projection-policy.js +2 -0
- package/node_modules/@dcode/shared/dist/conversation-share.d.ts +378 -74
- package/node_modules/@dcode/shared/dist/conversation-share.js +8 -6
- package/node_modules/@dcode/shared/dist/conversationSelection.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/conversationSelection.js +30 -0
- package/node_modules/@dcode/shared/dist/database-startup.d.ts +5 -5
- package/node_modules/@dcode/shared/dist/dcode-agent-model-state.js +14 -6
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.d.ts +16 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.js +17 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-runtime.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.d.ts +3215 -1800
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.js +555 -24
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.js +10 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.d.ts +30 -20
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/apply.js +12 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.d.ts +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.d.ts +388 -57
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.js +67 -45
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/controller.d.ts +208 -103
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.d.ts +20 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.js +15 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.d.ts +34 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.js +45 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.d.ts +1453 -278
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.js +45 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.js +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.d.ts +173 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.js +29 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.d.ts +731 -125
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.js +23 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.d.ts +30 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.js +35 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index.d.ts +40 -25
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.d.ts +1444 -216
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/telemetry.d.ts +62 -58
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.d.ts +185 -50
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.js +31 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.d.ts +7728 -1585
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.js +18 -5
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-assembler.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-fault.js +4 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-reassembly.js +5 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.d.ts +29 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.js +64 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.js +23 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-observation-display.d.ts +14 -14
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.d.ts +52 -8
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.js +22 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.js +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.d.ts +21 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.js +44 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.js +3 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-caps.js +5 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.d.ts +26 -19
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.js +40 -32
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.js +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.js +44 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.js +17 -10
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.d.ts +33 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.js +202 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-phases.js +10 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.js +29 -22
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-started.js +5 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-tables.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-unlisted.js +6 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.d.ts +125 -40
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.js +101 -26
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-workspace.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workspace-hook-review.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.js +49 -0
- package/node_modules/@dcode/shared/dist/dcode-slash-command-help.js +4 -4
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.js +13 -1
- package/node_modules/@dcode/shared/dist/dcode-task-types-core.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-task-types.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.d.ts +22 -1
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +102 -17
- package/node_modules/@dcode/shared/dist/desktopMenu.js +48 -48
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.d.ts +35 -6
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.js +45 -6
- package/node_modules/@dcode/shared/dist/env.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/env.js +9 -9
- package/node_modules/@dcode/shared/dist/errors.d.ts +24 -0
- package/node_modules/@dcode/shared/dist/errors.js +54 -0
- package/node_modules/@dcode/shared/dist/execution-state.d.ts +4 -2
- package/node_modules/@dcode/shared/dist/execution-state.js +1 -1
- package/node_modules/@dcode/shared/dist/feedback.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/gen-ui/contract.d.ts +140 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.js +36 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.js +196 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.js +75 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.js +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.js +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.d.ts +202 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.js +126 -0
- package/node_modules/@dcode/shared/dist/helpAppConfig.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/helpAppConfig.js +2 -2
- package/node_modules/@dcode/shared/dist/highspeed.d.ts +181 -0
- package/node_modules/@dcode/shared/dist/highspeed.js +112 -0
- package/node_modules/@dcode/shared/dist/index.d.ts +27 -5
- package/node_modules/@dcode/shared/dist/index.js +24 -2
- package/node_modules/@dcode/shared/dist/localTtft.d.ts +27 -27
- package/node_modules/@dcode/shared/dist/marketingTouch.d.ts +930 -0
- package/node_modules/@dcode/shared/dist/marketingTouch.js +170 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.d.ts +83 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.js +124 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.d.ts +241 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.js +42 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.js +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.js +64 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.d.ts +47 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.js +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.js +11 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.d.ts +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.js +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.js +73 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.d.ts +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.js +107 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.js +55 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.d.ts +78 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.js +65 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.d.ts +39 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.js +199 -0
- package/node_modules/@dcode/shared/dist/mcp.d.ts +6 -2
- package/node_modules/@dcode/shared/dist/memory.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/memory.js +2 -0
- package/node_modules/@dcode/shared/dist/model-execution.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/model-execution.js +38 -0
- package/node_modules/@dcode/shared/dist/networkCapture.d.ts +49 -0
- package/node_modules/@dcode/shared/dist/networkCapture.js +41 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.d.ts +6 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.js +16 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.js +30 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.js +96 -0
- package/node_modules/@dcode/shared/dist/node/officialPluginCache.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node/subagentMarkdownMigration.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node.js +2 -0
- package/node_modules/@dcode/shared/dist/output-style.d.ts +17 -0
- package/node_modules/@dcode/shared/dist/output-style.js +2 -0
- package/node_modules/@dcode/shared/dist/platform.d.ts +149 -1
- package/node_modules/@dcode/shared/dist/platform.js +2 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.d.ts +61 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.js +2 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.js +20 -14
- package/node_modules/@dcode/shared/dist/project-access-token-client.d.ts +42 -0
- package/node_modules/@dcode/shared/dist/project-access-token-client.js +260 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.js +9 -0
- package/node_modules/@dcode/shared/dist/project-access-token.d.ts +45 -0
- package/node_modules/@dcode/shared/dist/project-access-token.js +164 -0
- package/node_modules/@dcode/shared/dist/protocol.d.ts +46 -4
- package/node_modules/@dcode/shared/dist/protocol.js +1 -1
- package/node_modules/@dcode/shared/dist/provider-provisioning.d.ts +26 -2
- package/node_modules/@dcode/shared/dist/provider-provisioning.js +19 -3
- package/node_modules/@dcode/shared/dist/providers.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/providers.js +1 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.js +35 -1
- package/node_modules/@dcode/shared/dist/remoteAppConfig.js +1 -1
- package/node_modules/@dcode/shared/dist/remoteEnvironmentKey.js +19 -0
- package/node_modules/@dcode/shared/dist/remoteTarget.d.ts +14 -1
- package/node_modules/@dcode/shared/dist/remoteTarget.js +4 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.d.ts +27 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.js +43 -0
- package/node_modules/@dcode/shared/dist/rendererActionTrace.d.ts +35 -35
- package/node_modules/@dcode/shared/dist/request-security-edition/index.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/index.js +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.js +5 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.d.ts +19 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.js +29 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.js +80 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.d.ts +37 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.js +50 -0
- package/node_modules/@dcode/shared/dist/sessionCreateTelemetry.d.ts +3 -3
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.js +212 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.js +200 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.d.ts +82 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.js +28 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.d.ts +135 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.js +39 -0
- package/node_modules/@dcode/shared/dist/subagents-types.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/task-realtime-core.d.ts +57 -24
- package/node_modules/@dcode/shared/dist/task-realtime-core.js +8 -2
- package/node_modules/@dcode/shared/dist/test-ids-workflow.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/test-ids-workflow.js +5 -0
- package/node_modules/@dcode/shared/dist/test-ids.d.ts +25 -0
- package/node_modules/@dcode/shared/dist/test-ids.js +25 -0
- package/node_modules/@dcode/shared/dist/tool-identity.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/tool-identity.js +4 -0
- package/node_modules/@dcode/shared/dist/tool-plan-adapter.js +14 -1
- package/node_modules/@dcode/shared/dist/usage-stats.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/validation.d.ts +1542 -166
- package/node_modules/@dcode/shared/dist/validation.js +423 -14
- package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +70 -14
- package/node_modules/@dcode/shared/dist/validationAppSettings.js +74 -12
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.js +40 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.d.ts +183 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.js +562 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.d.ts +645 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.js +174 -0
- package/node_modules/@dcode/shared/package.json +5 -2
- package/node_modules/@dcode/tui/dist/app-approval-panel.js +3 -2
- package/node_modules/@dcode/tui/dist/app-approval.d.ts +3 -1
- package/node_modules/@dcode/tui/dist/app-approval.js +9 -5
- package/node_modules/@dcode/tui/dist/app-compact-timeline.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-compact-timeline.js +5 -2
- package/node_modules/@dcode/tui/dist/app-empty-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-empty-transcript.js +1 -1
- package/node_modules/@dcode/tui/dist/app-file-mentions.d.ts +2 -0
- package/node_modules/@dcode/tui/dist/app-file-mentions.js +2 -2
- package/node_modules/@dcode/tui/dist/app-input-pane.d.ts +38 -0
- package/node_modules/@dcode/tui/dist/app-input-pane.js +19 -19
- package/node_modules/@dcode/tui/dist/app-input-status.d.ts +17 -0
- package/node_modules/@dcode/tui/dist/app-input-status.js +4 -4
- package/node_modules/@dcode/tui/dist/app-input.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-input.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.d.ts +2 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-markdown.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode-command.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-mode-command.js +4 -4
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.d.ts +5 -0
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.d.ts +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.js +1 -1
- package/node_modules/@dcode/tui/dist/app-model-ref.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-model-ref.js +1 -1
- package/node_modules/@dcode/tui/dist/app-motion.d.ts +13 -0
- package/node_modules/@dcode/tui/dist/app-motion.js +17 -7
- package/node_modules/@dcode/tui/dist/app-session-event-handler.d.ts +33 -0
- package/node_modules/@dcode/tui/dist/app-session-event-handler.js +4 -4
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.js +3 -3
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.js +7 -2
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.d.ts +10 -0
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.js +4 -4
- package/node_modules/@dcode/tui/dist/app-submit.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-submit.js +1 -1
- package/node_modules/@dcode/tui/dist/app-thought-components.d.ts +7 -0
- package/node_modules/@dcode/tui/dist/app-thought-components.js +2 -2
- package/node_modules/@dcode/tui/dist/app-tool-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-tool-transcript.js +3 -0
- package/node_modules/@dcode/tui/dist/app-view.d.ts +27 -0
- package/node_modules/@dcode/tui/dist/app-view.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-card.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.js +4 -4
- package/node_modules/@dcode/tui/dist/index.js +5117 -2578
- package/node_modules/@dcode/tui/dist/tui.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/tui.js +1 -1
- package/node_modules/@dcode/tui/dist/types.d.ts +1 -1
- package/node_modules/oniguruma-parser/LICENSE +1 -1
- package/node_modules/oniguruma-parser/README.md +15 -61
- package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +4 -4
- package/node_modules/oniguruma-parser/dist/parser/parse.js +1 -1
- package/node_modules/oniguruma-parser/dist/traverser/traverse.js +1 -1
- package/node_modules/oniguruma-parser/package.json +5 -5
- package/node_modules/oniguruma-to-es/dist/cjs/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/cjs/index.js +121 -120
- package/node_modules/oniguruma-to-es/dist/cjs/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/cjs/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/cjs/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/index.js +1 -3
- package/node_modules/oniguruma-to-es/dist/esm/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/esm/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/esm/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/index.min.js +6 -6
- package/node_modules/oniguruma-to-es/package.json +5 -5
- package/package.json +5 -5
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
import type { MobileSessionCreateTelemetry } from "./sessionCreateTelemetry.js";
|
|
2
|
+
import type { DockerContainerInfo, SSHConfigAliasOption, WSLDistro } from "./platform.js";
|
|
3
|
+
import type { CreateTempTextAttachmentRequest, CreateTempTextAttachmentResult } from "./platform.js";
|
|
4
|
+
import type { LoadCliMcpFromUserDirectoryRequest, LoadCliMcpFromUserDirectoryResult, MigrateLegacyCommonMcpRequest, MigrateLegacyCommonMcpResult, SaveCliMcpToUserDirectoryRequest } from "./mcp.js";
|
|
5
|
+
import type { DCodeProvider } from "./dcode-task-types-core.js";
|
|
6
|
+
import type { SessionWorkflowActivity } from "./dcode-protocol-v4/sessions-index-workflow-activity.js";
|
|
7
|
+
import type { WebRemoteControlRpcTransportPayload } from "./web-remote-control-rpc-transport.js";
|
|
8
|
+
import type { WorkspacePurpose } from "./workspacePurpose.js";
|
|
9
|
+
export declare const WEB_REMOTE_CONTROL_WORKSPACE_RECONNECT_TIMEOUT_MS = 120000;
|
|
10
|
+
export declare const WEB_REMOTE_CONTROL_OUTBOUND_PAYLOAD_BUFFER_TIMEOUT_MS = 5000;
|
|
11
|
+
export type WebRemoteControlThemeSeed = "light" | "dark" | "dcode-light" | "dcode-dark" | "system";
|
|
12
|
+
export interface WebRemoteControlContext {
|
|
13
|
+
workspacePath: string;
|
|
14
|
+
workspaceIdentity?: string;
|
|
15
|
+
remoteSessionId?: string;
|
|
16
|
+
initialTaskId?: string;
|
|
17
|
+
theme?: WebRemoteControlThemeSeed;
|
|
18
|
+
}
|
|
19
|
+
export type WebRemoteControlStatusKind = "idle" | "starting" | "running" | "connecting" | "active" | "error";
|
|
20
|
+
export type WebRemoteControlFailureReason = "session-not-found" | "session-expired" | "session-conflict" | "workspace-closed" | "desktop-disconnected" | "invalid-mobile-connection" | "desktop-bootstrap-timeout" | "connection-recovery-timeout" | "relay-unavailable" | "unsupported-action" | "unexpected-error";
|
|
21
|
+
export interface WebRemoteControlFailure {
|
|
22
|
+
reason: WebRemoteControlFailureReason;
|
|
23
|
+
message?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function createWebRemoteControlConnectionRecoveryTimeoutFailure(message: string): WebRemoteControlFailure;
|
|
26
|
+
export interface WebRemoteControlRelayDeviceMeta {
|
|
27
|
+
platform: string;
|
|
28
|
+
version: string;
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
export interface WebRemoteControlMobileViewportInfo {
|
|
32
|
+
width: number;
|
|
33
|
+
height: number;
|
|
34
|
+
devicePixelRatio: number;
|
|
35
|
+
}
|
|
36
|
+
export interface WebRemoteControlMobileScreenInfo {
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
}
|
|
40
|
+
export interface WebRemoteControlMobileDeviceInfo extends WebRemoteControlRelayDeviceMeta {
|
|
41
|
+
userAgent?: string;
|
|
42
|
+
language?: string;
|
|
43
|
+
languages?: string[];
|
|
44
|
+
browserPlatform?: string;
|
|
45
|
+
viewport?: WebRemoteControlMobileViewportInfo;
|
|
46
|
+
screen?: WebRemoteControlMobileScreenInfo;
|
|
47
|
+
timezone?: string;
|
|
48
|
+
online?: boolean;
|
|
49
|
+
updatedAt: number;
|
|
50
|
+
}
|
|
51
|
+
export type WebRemoteControlRelayRole = "device" | "terminal";
|
|
52
|
+
export type WebRemoteControlRelayPairStatus = "waiting" | "matched";
|
|
53
|
+
export type WebRemoteControlRelayErrorCode = "AUTH_FAILED" | "DEVICE_OFFLINE" | "KICKED" | "WRONG_PARAM" | "INTERNAL";
|
|
54
|
+
export interface WebRemoteControlRelayOutgoingBase {
|
|
55
|
+
client_ts?: number;
|
|
56
|
+
}
|
|
57
|
+
export interface WebRemoteControlRelayIncomingBase {
|
|
58
|
+
server_ts?: number;
|
|
59
|
+
}
|
|
60
|
+
export interface WebRemoteControlRelayDeviceRegisterInit extends WebRemoteControlRelayOutgoingBase {
|
|
61
|
+
type: "device_register_init";
|
|
62
|
+
device_mid: string;
|
|
63
|
+
pass_hash: string;
|
|
64
|
+
meta: WebRemoteControlRelayDeviceMeta;
|
|
65
|
+
}
|
|
66
|
+
export interface WebRemoteControlRelayDeviceRegisterAck extends WebRemoteControlRelayIncomingBase {
|
|
67
|
+
type: "device_register_ack";
|
|
68
|
+
device_sid: string;
|
|
69
|
+
}
|
|
70
|
+
export interface WebRemoteControlRelayAuthInit extends WebRemoteControlRelayOutgoingBase {
|
|
71
|
+
type: "auth_init";
|
|
72
|
+
role: WebRemoteControlRelayRole;
|
|
73
|
+
device_sid: string;
|
|
74
|
+
meta: WebRemoteControlRelayDeviceMeta;
|
|
75
|
+
}
|
|
76
|
+
export interface WebRemoteControlRelayAuthChallenge extends WebRemoteControlRelayIncomingBase {
|
|
77
|
+
type: "auth_challenge";
|
|
78
|
+
nonce: string;
|
|
79
|
+
}
|
|
80
|
+
export interface WebRemoteControlRelayAuthResponse extends WebRemoteControlRelayOutgoingBase {
|
|
81
|
+
type: "auth_response";
|
|
82
|
+
device_sid: string;
|
|
83
|
+
proof: string;
|
|
84
|
+
}
|
|
85
|
+
export interface WebRemoteControlRelayAuthAck extends WebRemoteControlRelayIncomingBase {
|
|
86
|
+
type: "auth_ack";
|
|
87
|
+
device_sid: string;
|
|
88
|
+
terminal_sid?: string;
|
|
89
|
+
pair_status: WebRemoteControlRelayPairStatus;
|
|
90
|
+
}
|
|
91
|
+
export interface WebRemoteControlRelayPairStatusQuery extends WebRemoteControlRelayOutgoingBase {
|
|
92
|
+
type: "pair_status_query";
|
|
93
|
+
device_sid: string;
|
|
94
|
+
}
|
|
95
|
+
export interface WebRemoteControlRelayPairStatusAck extends WebRemoteControlRelayIncomingBase {
|
|
96
|
+
type: "pair_status_ack";
|
|
97
|
+
terminal_sid?: string;
|
|
98
|
+
pair_status: WebRemoteControlRelayPairStatus;
|
|
99
|
+
}
|
|
100
|
+
export interface WebRemoteControlRelayDataMessage<TPayload = unknown> extends WebRemoteControlRelayOutgoingBase, WebRemoteControlRelayIncomingBase {
|
|
101
|
+
type: "data";
|
|
102
|
+
payload: TPayload;
|
|
103
|
+
}
|
|
104
|
+
export interface WebRemoteControlRelayError extends WebRemoteControlRelayIncomingBase {
|
|
105
|
+
type: "error";
|
|
106
|
+
code: WebRemoteControlRelayErrorCode;
|
|
107
|
+
message: string;
|
|
108
|
+
}
|
|
109
|
+
export type WebRemoteControlRelayOutgoingMessage = WebRemoteControlRelayDeviceRegisterInit | WebRemoteControlRelayAuthInit | WebRemoteControlRelayAuthResponse | WebRemoteControlRelayPairStatusQuery | WebRemoteControlRelayDataMessage<WebRemoteControlAppPayload>;
|
|
110
|
+
export type WebRemoteControlRelayIncomingMessage = WebRemoteControlRelayDeviceRegisterAck | WebRemoteControlRelayAuthChallenge | WebRemoteControlRelayAuthAck | WebRemoteControlRelayPairStatusAck | WebRemoteControlRelayDataMessage<WebRemoteControlAppPayload> | WebRemoteControlRelayError;
|
|
111
|
+
export interface WebRemoteControlRelayAuthProofVector {
|
|
112
|
+
passHash: string;
|
|
113
|
+
nonce: string;
|
|
114
|
+
role: WebRemoteControlRelayRole;
|
|
115
|
+
deviceSid: string;
|
|
116
|
+
proof: string;
|
|
117
|
+
}
|
|
118
|
+
export declare const WEB_REMOTE_CONTROL_RELAY_AUTH_PROOF_VECTORS: WebRemoteControlRelayAuthProofVector[];
|
|
119
|
+
export interface WebRemoteControlExternalQrParams {
|
|
120
|
+
deviceSid: string;
|
|
121
|
+
passHash: string;
|
|
122
|
+
timestamp: number;
|
|
123
|
+
deviceMid?: string;
|
|
124
|
+
deviceName?: string;
|
|
125
|
+
appVersion?: string;
|
|
126
|
+
theme?: WebRemoteControlThemeSeed;
|
|
127
|
+
}
|
|
128
|
+
export interface BuildWebRemoteControlExternalQrUrlOptions extends WebRemoteControlExternalQrParams {
|
|
129
|
+
baseUrl: string;
|
|
130
|
+
}
|
|
131
|
+
export declare function isWebRemoteControlThemeSeed(value: unknown): value is WebRemoteControlThemeSeed;
|
|
132
|
+
export declare function resolveWebRemoteControlRoutePathFromBaseUrl(baseUrl: string): string;
|
|
133
|
+
export declare function matchesWebRemoteControlRoutePath(pathname: string, routePath: string): boolean;
|
|
134
|
+
export declare function buildWebRemoteControlExternalQrUrl({ baseUrl, deviceSid, passHash, timestamp, deviceMid, deviceName, appVersion, theme, }: BuildWebRemoteControlExternalQrUrlOptions): string;
|
|
135
|
+
export declare function parseWebRemoteControlExternalQrParams(params: URLSearchParams): WebRemoteControlExternalQrParams | null;
|
|
136
|
+
export type WebRemoteControlTokenKind = "window-pairing";
|
|
137
|
+
export type WebRemoteControlWindowFailureReason = WebRemoteControlFailureReason;
|
|
138
|
+
export declare const WebRemoteControlCloseCodes: {
|
|
139
|
+
readonly SessionNotFound: 4004;
|
|
140
|
+
readonly SessionConflict: 4009;
|
|
141
|
+
readonly DesktopDisconnected: 4010;
|
|
142
|
+
readonly SessionExpired: 4011;
|
|
143
|
+
readonly WorkspaceClosed: 4012;
|
|
144
|
+
readonly InvalidMobileConnection: 4013;
|
|
145
|
+
};
|
|
146
|
+
export declare function resolveWebRemoteControlFailureReasonFromCloseCode(code: number): WebRemoteControlFailureReason | null;
|
|
147
|
+
export interface WebRemoteControlStartResult {
|
|
148
|
+
status: Extract<WebRemoteControlStatusKind, "running" | "connecting" | "active">;
|
|
149
|
+
sessionId: string;
|
|
150
|
+
windowControlSessionId?: string;
|
|
151
|
+
deviceToken?: string;
|
|
152
|
+
tokenKind?: WebRemoteControlTokenKind;
|
|
153
|
+
expiresAt?: number;
|
|
154
|
+
qrUrl: string;
|
|
155
|
+
connectUrl: string;
|
|
156
|
+
workspacePath: string;
|
|
157
|
+
workspaceIdentity?: string;
|
|
158
|
+
remoteSessionId?: string;
|
|
159
|
+
initialTaskId?: string;
|
|
160
|
+
}
|
|
161
|
+
export interface WebRemoteControlStartCancelledResult {
|
|
162
|
+
status: "cancelled";
|
|
163
|
+
}
|
|
164
|
+
/** 兼容仍可返回取消终态的平台实现;当前 Desktop 启动和刷新链路不会产生该结果。 */
|
|
165
|
+
export type WebRemoteControlStartOperationResult = WebRemoteControlStartResult | WebRemoteControlStartCancelledResult;
|
|
166
|
+
export interface WebRemoteControlStatus {
|
|
167
|
+
status: WebRemoteControlStatusKind;
|
|
168
|
+
sessionId?: string;
|
|
169
|
+
windowControlSessionId?: string;
|
|
170
|
+
deviceToken?: string;
|
|
171
|
+
tokenKind?: WebRemoteControlTokenKind;
|
|
172
|
+
expiresAt?: number;
|
|
173
|
+
mobileConnected?: boolean;
|
|
174
|
+
mobileViewState?: WebRemoteControlMobileViewState;
|
|
175
|
+
mobileDeviceInfo?: WebRemoteControlMobileDeviceInfo;
|
|
176
|
+
qrUrl?: string;
|
|
177
|
+
connectUrl?: string;
|
|
178
|
+
workspacePath?: string;
|
|
179
|
+
workspaceIdentity?: string;
|
|
180
|
+
remoteSessionId?: string;
|
|
181
|
+
initialTaskId?: string;
|
|
182
|
+
error?: string;
|
|
183
|
+
failure?: WebRemoteControlFailure;
|
|
184
|
+
}
|
|
185
|
+
export interface WebRemoteControlSessionCreateRequest {
|
|
186
|
+
tunnelId: string;
|
|
187
|
+
workspacePath: string;
|
|
188
|
+
workspaceIdentity?: string;
|
|
189
|
+
remoteSessionId?: string;
|
|
190
|
+
initialTaskId?: string;
|
|
191
|
+
}
|
|
192
|
+
export interface WebRemoteControlSessionCreateResponse extends WebRemoteControlStartResult {
|
|
193
|
+
token: string;
|
|
194
|
+
}
|
|
195
|
+
export interface WebRemoteControlWindowSession {
|
|
196
|
+
windowControlSessionId: string;
|
|
197
|
+
deviceToken: string;
|
|
198
|
+
tokenKind: WebRemoteControlTokenKind;
|
|
199
|
+
connectUrl: string;
|
|
200
|
+
qrUrl: string;
|
|
201
|
+
expiresAt: number;
|
|
202
|
+
status: "idle" | "starting" | "running" | "active" | "error";
|
|
203
|
+
}
|
|
204
|
+
export interface WebRemoteControlBootstrapResult {
|
|
205
|
+
workspacePath: string;
|
|
206
|
+
workspaceIdentity?: string;
|
|
207
|
+
remoteSessionId?: string;
|
|
208
|
+
initialTaskId?: string;
|
|
209
|
+
wsUrl: string;
|
|
210
|
+
}
|
|
211
|
+
export interface WebRemoteControlBootstrapErrorResponse {
|
|
212
|
+
error: string;
|
|
213
|
+
reason: WebRemoteControlFailureReason;
|
|
214
|
+
}
|
|
215
|
+
export interface WebRemoteControlPlatformMethodArgsMap {
|
|
216
|
+
isDockerAvailable: undefined;
|
|
217
|
+
listWSLDistros: undefined;
|
|
218
|
+
listDockerContainers: undefined;
|
|
219
|
+
listSSHConfigAliases: undefined;
|
|
220
|
+
createTempTextAttachment: CreateTempTextAttachmentRequest;
|
|
221
|
+
loadMcpFromUserDirectory: LoadCliMcpFromUserDirectoryRequest | undefined;
|
|
222
|
+
saveMcpToUserDirectory: SaveCliMcpToUserDirectoryRequest;
|
|
223
|
+
migrateLegacyCommonMcp: MigrateLegacyCommonMcpRequest | undefined;
|
|
224
|
+
}
|
|
225
|
+
export interface WebRemoteControlPlatformMethodResultMap {
|
|
226
|
+
isDockerAvailable: boolean;
|
|
227
|
+
listWSLDistros: WSLDistro[];
|
|
228
|
+
listDockerContainers: DockerContainerInfo[];
|
|
229
|
+
listSSHConfigAliases: SSHConfigAliasOption[];
|
|
230
|
+
createTempTextAttachment: CreateTempTextAttachmentResult;
|
|
231
|
+
loadMcpFromUserDirectory: LoadCliMcpFromUserDirectoryResult;
|
|
232
|
+
saveMcpToUserDirectory: {
|
|
233
|
+
success: boolean;
|
|
234
|
+
error?: string;
|
|
235
|
+
};
|
|
236
|
+
migrateLegacyCommonMcp: MigrateLegacyCommonMcpResult;
|
|
237
|
+
}
|
|
238
|
+
export type WebRemoteControlPlatformMethod = keyof WebRemoteControlPlatformMethodResultMap;
|
|
239
|
+
export type WebRemoteControlPlatformRequest = {
|
|
240
|
+
[K in WebRemoteControlPlatformMethod]: {
|
|
241
|
+
type: "platform-request";
|
|
242
|
+
requestId: string;
|
|
243
|
+
method: K;
|
|
244
|
+
args?: WebRemoteControlPlatformMethodArgsMap[K];
|
|
245
|
+
};
|
|
246
|
+
}[WebRemoteControlPlatformMethod];
|
|
247
|
+
export type WebRemoteControlPlatformSuccessResponse = {
|
|
248
|
+
[K in WebRemoteControlPlatformMethod]: {
|
|
249
|
+
type: "platform-response";
|
|
250
|
+
requestId: string;
|
|
251
|
+
method: K;
|
|
252
|
+
success: true;
|
|
253
|
+
result: WebRemoteControlPlatformMethodResultMap[K];
|
|
254
|
+
};
|
|
255
|
+
}[WebRemoteControlPlatformMethod];
|
|
256
|
+
export interface WebRemoteControlPlatformErrorResponse {
|
|
257
|
+
type: "platform-response";
|
|
258
|
+
requestId: string;
|
|
259
|
+
method: WebRemoteControlPlatformMethod;
|
|
260
|
+
success: false;
|
|
261
|
+
error: string;
|
|
262
|
+
}
|
|
263
|
+
export type WebRemoteControlPlatformResponse = WebRemoteControlPlatformSuccessResponse | WebRemoteControlPlatformErrorResponse;
|
|
264
|
+
export interface WebRemoteControlExternalLocalWorkspaceBridge {
|
|
265
|
+
bridgeSessionId: string;
|
|
266
|
+
bridgeGeneration?: number;
|
|
267
|
+
recoveryId?: string;
|
|
268
|
+
kind: "local";
|
|
269
|
+
workspaceKey: string;
|
|
270
|
+
workspacePath: string;
|
|
271
|
+
initialTaskId?: string;
|
|
272
|
+
}
|
|
273
|
+
export interface WebRemoteControlExternalRemoteWorkspaceBridge {
|
|
274
|
+
bridgeSessionId: string;
|
|
275
|
+
bridgeGeneration?: number;
|
|
276
|
+
recoveryId?: string;
|
|
277
|
+
kind: "remote";
|
|
278
|
+
workspaceKey: string;
|
|
279
|
+
workspacePath: string;
|
|
280
|
+
workspaceIdentity: string;
|
|
281
|
+
remoteSessionId: string;
|
|
282
|
+
initialTaskId?: string;
|
|
283
|
+
}
|
|
284
|
+
export type WebRemoteControlExternalWorkspaceBridge = WebRemoteControlExternalLocalWorkspaceBridge | WebRemoteControlExternalRemoteWorkspaceBridge;
|
|
285
|
+
export interface WebRemoteControlBootstrapRequestPayload {
|
|
286
|
+
dcode_type: "bootstrap-request";
|
|
287
|
+
requestId: string;
|
|
288
|
+
}
|
|
289
|
+
export interface WebRemoteControlBootstrapResponsePayload {
|
|
290
|
+
dcode_type: "bootstrap-response";
|
|
291
|
+
requestId: string;
|
|
292
|
+
success: true;
|
|
293
|
+
result: WebRemoteControlWindowBootstrapResult;
|
|
294
|
+
}
|
|
295
|
+
export interface WebRemoteControlWorkspaceListRequestPayload {
|
|
296
|
+
dcode_type: "workspace-list-request";
|
|
297
|
+
requestId: string;
|
|
298
|
+
}
|
|
299
|
+
export interface WebRemoteControlWorkspaceListResponsePayload {
|
|
300
|
+
dcode_type: "workspace-list-response";
|
|
301
|
+
requestId: string;
|
|
302
|
+
success: true;
|
|
303
|
+
result: WebRemoteControlWorkspaceListResult;
|
|
304
|
+
}
|
|
305
|
+
export interface WebRemoteControlWorkspaceListUpdatedPayload {
|
|
306
|
+
dcode_type: "workspace-list-updated";
|
|
307
|
+
result: WebRemoteControlWorkspaceListResult;
|
|
308
|
+
}
|
|
309
|
+
export interface WebRemoteControlWorkspaceBridgeOpenPayload {
|
|
310
|
+
dcode_type: "workspace-bridge-open";
|
|
311
|
+
requestId: string;
|
|
312
|
+
bridgeSessionId: string;
|
|
313
|
+
bridgeGeneration?: number;
|
|
314
|
+
recoveryId?: string;
|
|
315
|
+
workspaceKey: string;
|
|
316
|
+
taskId?: string;
|
|
317
|
+
}
|
|
318
|
+
export interface WebRemoteControlWorkspaceBridgeReadyPayload {
|
|
319
|
+
dcode_type: "workspace-bridge-ready";
|
|
320
|
+
requestId: string;
|
|
321
|
+
bridgeSessionId: string;
|
|
322
|
+
bridgeGeneration?: number;
|
|
323
|
+
recoveryId?: string;
|
|
324
|
+
bridge: WebRemoteControlExternalWorkspaceBridge;
|
|
325
|
+
}
|
|
326
|
+
export interface WebRemoteControlWorkspaceBridgeErrorPayload {
|
|
327
|
+
dcode_type: "workspace-bridge-error";
|
|
328
|
+
requestId: string;
|
|
329
|
+
bridgeSessionId?: string;
|
|
330
|
+
bridgeGeneration?: number;
|
|
331
|
+
recoveryId?: string;
|
|
332
|
+
reason: WebRemoteControlFailureReason;
|
|
333
|
+
error: string;
|
|
334
|
+
}
|
|
335
|
+
export interface WebRemoteControlWorkspaceReconnectRequestPayload {
|
|
336
|
+
dcode_type: "workspace-reconnect-request";
|
|
337
|
+
requestId: string;
|
|
338
|
+
workspaceKey: string;
|
|
339
|
+
}
|
|
340
|
+
export type WebRemoteControlWorkspaceReconnectResponsePayload = {
|
|
341
|
+
dcode_type: "workspace-reconnect-response";
|
|
342
|
+
requestId: string;
|
|
343
|
+
workspaceKey: string;
|
|
344
|
+
success: true;
|
|
345
|
+
} | {
|
|
346
|
+
dcode_type: "workspace-reconnect-response";
|
|
347
|
+
requestId: string;
|
|
348
|
+
workspaceKey: string;
|
|
349
|
+
success: false;
|
|
350
|
+
error: string;
|
|
351
|
+
};
|
|
352
|
+
export interface WebRemoteControlMobileViewStatePayload {
|
|
353
|
+
dcode_type: "mobile-view-state-update";
|
|
354
|
+
viewState: WebRemoteControlMobileViewState;
|
|
355
|
+
deviceInfo?: WebRemoteControlMobileDeviceInfo;
|
|
356
|
+
}
|
|
357
|
+
export type WebRemoteControlPlatformRequestPayload = {
|
|
358
|
+
[K in WebRemoteControlPlatformMethod]: {
|
|
359
|
+
dcode_type: "platform-request";
|
|
360
|
+
requestId: string;
|
|
361
|
+
method: K;
|
|
362
|
+
args?: WebRemoteControlPlatformMethodArgsMap[K];
|
|
363
|
+
};
|
|
364
|
+
}[WebRemoteControlPlatformMethod];
|
|
365
|
+
export type WebRemoteControlPlatformResponsePayload = {
|
|
366
|
+
[K in WebRemoteControlPlatformMethod]: {
|
|
367
|
+
dcode_type: "platform-response";
|
|
368
|
+
requestId: string;
|
|
369
|
+
method: K;
|
|
370
|
+
success: true;
|
|
371
|
+
result: WebRemoteControlPlatformMethodResultMap[K];
|
|
372
|
+
};
|
|
373
|
+
}[WebRemoteControlPlatformMethod] | {
|
|
374
|
+
dcode_type: "platform-response";
|
|
375
|
+
requestId: string;
|
|
376
|
+
method: WebRemoteControlPlatformMethod;
|
|
377
|
+
success: false;
|
|
378
|
+
error: string;
|
|
379
|
+
};
|
|
380
|
+
/** @deprecated 仅供 legacy adapter 单测/迁移使用;production parser 自 04D-3 起拒绝。 */
|
|
381
|
+
export interface WebRemoteControlRpcFramePayload {
|
|
382
|
+
dcode_type: "rpc-frame";
|
|
383
|
+
bridgeSessionId: string;
|
|
384
|
+
bridgeGeneration?: number;
|
|
385
|
+
recoveryId?: string;
|
|
386
|
+
seq: number;
|
|
387
|
+
dataBase64: string;
|
|
388
|
+
}
|
|
389
|
+
export interface WebRemoteControlBridgeDegradedPayload {
|
|
390
|
+
dcode_type: "bridge-degraded";
|
|
391
|
+
bridgeSessionId: string;
|
|
392
|
+
bridgeGeneration?: number;
|
|
393
|
+
recoveryId?: string;
|
|
394
|
+
reason: "rpc-transport-fault" | "rpc-frame-gap" | "buffer-overflow" | "buffer-timeout";
|
|
395
|
+
seq?: number;
|
|
396
|
+
expectedSeq?: number;
|
|
397
|
+
droppedCount?: number;
|
|
398
|
+
}
|
|
399
|
+
export interface WebRemoteControlAppErrorPayload {
|
|
400
|
+
dcode_type: "app-error";
|
|
401
|
+
requestId?: string;
|
|
402
|
+
bridgeSessionId?: string;
|
|
403
|
+
reason: WebRemoteControlFailureReason;
|
|
404
|
+
error: string;
|
|
405
|
+
}
|
|
406
|
+
export type WebRemoteControlMobileDiagnosticEvent = "state-transition" | "socket-close" | "socket-error" | "recover-start" | "recover-scheduled" | "pair-status" | "failure";
|
|
407
|
+
export interface WebRemoteControlMobileDiagnosticPayload {
|
|
408
|
+
dcode_type: "mobile-diagnostic";
|
|
409
|
+
event: WebRemoteControlMobileDiagnosticEvent;
|
|
410
|
+
timestamp: number;
|
|
411
|
+
state?: string;
|
|
412
|
+
previousState?: string;
|
|
413
|
+
pairStatus?: WebRemoteControlRelayPairStatus;
|
|
414
|
+
closeCode?: number;
|
|
415
|
+
closeReason?: string;
|
|
416
|
+
wasClean?: boolean;
|
|
417
|
+
wasPaired?: boolean;
|
|
418
|
+
failureReason?: WebRemoteControlFailureReason;
|
|
419
|
+
failureMessage?: string;
|
|
420
|
+
visibilityState?: string;
|
|
421
|
+
online?: boolean;
|
|
422
|
+
hiddenDurationMs?: number;
|
|
423
|
+
}
|
|
424
|
+
export type WebRemoteControlAppPayload = {
|
|
425
|
+
dcode_type: "telemetry-report";
|
|
426
|
+
event: MobileSessionCreateTelemetry;
|
|
427
|
+
} | WebRemoteControlBootstrapRequestPayload | WebRemoteControlBootstrapResponsePayload | WebRemoteControlWorkspaceListRequestPayload | WebRemoteControlWorkspaceListResponsePayload | WebRemoteControlWorkspaceListUpdatedPayload | WebRemoteControlWorkspaceBridgeOpenPayload | WebRemoteControlWorkspaceBridgeReadyPayload | WebRemoteControlWorkspaceBridgeErrorPayload | WebRemoteControlWorkspaceReconnectRequestPayload | WebRemoteControlWorkspaceReconnectResponsePayload | WebRemoteControlMobileViewStatePayload | WebRemoteControlPlatformRequestPayload | WebRemoteControlPlatformResponsePayload | WebRemoteControlRpcTransportPayload | WebRemoteControlBridgeDegradedPayload | WebRemoteControlAppErrorPayload | WebRemoteControlMobileDiagnosticPayload;
|
|
428
|
+
export interface WebRemoteControlWorkspaceTarget {
|
|
429
|
+
workspacePath: string;
|
|
430
|
+
workspaceIdentity?: string;
|
|
431
|
+
remoteSessionId?: string;
|
|
432
|
+
label: string;
|
|
433
|
+
workspacePurpose?: WorkspacePurpose;
|
|
434
|
+
kind: "local" | "remote";
|
|
435
|
+
connectionState?: "connected" | "disconnected" | "reconnecting";
|
|
436
|
+
lastConnectionError?: string;
|
|
437
|
+
}
|
|
438
|
+
export interface WebRemoteControlReconnectWorkspaceRequest {
|
|
439
|
+
requestId: string;
|
|
440
|
+
workspaceKey: string;
|
|
441
|
+
}
|
|
442
|
+
export type WebRemoteControlReconnectWorkspaceResult = {
|
|
443
|
+
requestId: string;
|
|
444
|
+
workspaceKey: string;
|
|
445
|
+
success: true;
|
|
446
|
+
} | {
|
|
447
|
+
requestId: string;
|
|
448
|
+
workspaceKey: string;
|
|
449
|
+
success: false;
|
|
450
|
+
error: string;
|
|
451
|
+
};
|
|
452
|
+
export type WebRemoteControlTaskDisplayStatus = "idle" | "running" | "completed" | "error";
|
|
453
|
+
export interface WebRemoteControlTaskTarget {
|
|
454
|
+
taskId: string;
|
|
455
|
+
title: string;
|
|
456
|
+
workspacePath: string;
|
|
457
|
+
workspaceIdentity?: string;
|
|
458
|
+
remoteSessionId?: string;
|
|
459
|
+
workspaceLabel: string;
|
|
460
|
+
workspaceKind: "local" | "remote";
|
|
461
|
+
createdAt: number;
|
|
462
|
+
updatedAt: number;
|
|
463
|
+
provider?: DCodeProvider;
|
|
464
|
+
unreadAt?: number;
|
|
465
|
+
displayStatus?: WebRemoteControlTaskDisplayStatus;
|
|
466
|
+
hasBackgroundWork?: boolean;
|
|
467
|
+
workflowActivity?: SessionWorkflowActivity;
|
|
468
|
+
pinned?: boolean;
|
|
469
|
+
archived?: boolean;
|
|
470
|
+
}
|
|
471
|
+
export interface WebRemoteControlWorkspaceListResult {
|
|
472
|
+
workspaces: WebRemoteControlWorkspaceTarget[];
|
|
473
|
+
tasks?: WebRemoteControlTaskTarget[];
|
|
474
|
+
activeWorkspaceKey?: string;
|
|
475
|
+
activeTaskId?: string;
|
|
476
|
+
}
|
|
477
|
+
export type WebRemoteControlMobileNavigationIntent = "chat";
|
|
478
|
+
export interface WebRemoteControlWorkspaceSwitchOptions {
|
|
479
|
+
taskId?: string;
|
|
480
|
+
mobileNavigationIntent?: WebRemoteControlMobileNavigationIntent;
|
|
481
|
+
/** 仅由手机任务首页使用;目标 bridge 建立后只清除这次快照对应的未读。 */
|
|
482
|
+
markTaskReadExpectedUnreadAt?: number;
|
|
483
|
+
}
|
|
484
|
+
export interface WebRemoteControlWorkspaceSwitchResult extends WebRemoteControlSessionCreateResponse {
|
|
485
|
+
}
|
|
486
|
+
export interface WebRemoteControlMobileViewState {
|
|
487
|
+
activeWorkspaceKey?: string;
|
|
488
|
+
activeTaskId?: string;
|
|
489
|
+
updatedAt: number;
|
|
490
|
+
}
|
|
491
|
+
export interface WebRemoteControlLocalWorkspaceBridge {
|
|
492
|
+
bridgeSessionId: string;
|
|
493
|
+
bridgeToken: string;
|
|
494
|
+
kind: "local";
|
|
495
|
+
workspaceKey: string;
|
|
496
|
+
workspacePath: string;
|
|
497
|
+
initialTaskId?: string;
|
|
498
|
+
wsUrl: string;
|
|
499
|
+
}
|
|
500
|
+
export interface WebRemoteControlRemoteWorkspaceBridge {
|
|
501
|
+
bridgeSessionId: string;
|
|
502
|
+
bridgeToken: string;
|
|
503
|
+
kind: "remote";
|
|
504
|
+
workspaceKey: string;
|
|
505
|
+
workspacePath: string;
|
|
506
|
+
workspaceIdentity: string;
|
|
507
|
+
remoteSessionId: string;
|
|
508
|
+
initialTaskId?: string;
|
|
509
|
+
wsUrl: string;
|
|
510
|
+
}
|
|
511
|
+
export type WebRemoteControlWorkspaceBridge = WebRemoteControlLocalWorkspaceBridge | WebRemoteControlRemoteWorkspaceBridge;
|
|
512
|
+
export interface WebRemoteControlWindowBootstrapResult {
|
|
513
|
+
windowControlSessionId: string;
|
|
514
|
+
/** 当前连接的桌面实际版本;旧桌面缺失时手机保留原 URL。 */
|
|
515
|
+
desktopAppVersion?: string;
|
|
516
|
+
workspaces: WebRemoteControlWorkspaceTarget[];
|
|
517
|
+
tasks: WebRemoteControlTaskTarget[];
|
|
518
|
+
initialViewState?: WebRemoteControlMobileViewState;
|
|
519
|
+
mobileViewState?: WebRemoteControlMobileViewState;
|
|
520
|
+
}
|
|
521
|
+
export interface WebRemoteControlWindowControlReadyEvent {
|
|
522
|
+
type: "window-control-ready";
|
|
523
|
+
windowControlSessionId: string;
|
|
524
|
+
mobileConnectionId: string;
|
|
525
|
+
expiresAt: number;
|
|
526
|
+
}
|
|
527
|
+
export declare function resolveWebRemoteControlWorkspaceKey(target: Pick<WebRemoteControlWorkspaceTarget, "workspacePath" | "workspaceIdentity">): string;
|
|
528
|
+
export declare function resolveWebRemoteControlInitialWorkspaceSelection({ workspaces, mobileViewState, initialViewState, }: {
|
|
529
|
+
workspaces: WebRemoteControlWorkspaceTarget[];
|
|
530
|
+
mobileViewState?: WebRemoteControlMobileViewState;
|
|
531
|
+
initialViewState?: WebRemoteControlMobileViewState;
|
|
532
|
+
}): {
|
|
533
|
+
workspaceKey: string;
|
|
534
|
+
taskId?: string;
|
|
535
|
+
canBridge: boolean;
|
|
536
|
+
} | null;
|
|
537
|
+
export interface WebRemoteControlWorkspaceListRequest {
|
|
538
|
+
type: "workspace-list-request";
|
|
539
|
+
requestId: string;
|
|
540
|
+
sessionId: string;
|
|
541
|
+
}
|
|
542
|
+
export interface WebRemoteControlWorkspaceSwitchRequest {
|
|
543
|
+
type: "workspace-switch-request";
|
|
544
|
+
requestId: string;
|
|
545
|
+
sessionId: string;
|
|
546
|
+
workspaceKey: string;
|
|
547
|
+
taskId?: string;
|
|
548
|
+
}
|
|
549
|
+
export interface WebRemoteControlWorkspaceListSuccessResponse {
|
|
550
|
+
type: "workspace-list-response";
|
|
551
|
+
requestId: string;
|
|
552
|
+
sessionId: string;
|
|
553
|
+
success: true;
|
|
554
|
+
result: WebRemoteControlWorkspaceListResult;
|
|
555
|
+
}
|
|
556
|
+
export interface WebRemoteControlWorkspaceSwitchSuccessResponse {
|
|
557
|
+
type: "workspace-switch-response";
|
|
558
|
+
requestId: string;
|
|
559
|
+
sessionId: string;
|
|
560
|
+
success: true;
|
|
561
|
+
result: WebRemoteControlWorkspaceSwitchResult;
|
|
562
|
+
}
|
|
563
|
+
export interface WebRemoteControlWorkspaceListErrorResponse {
|
|
564
|
+
type: "workspace-list-response";
|
|
565
|
+
requestId: string;
|
|
566
|
+
sessionId: string;
|
|
567
|
+
success: false;
|
|
568
|
+
error: string;
|
|
569
|
+
}
|
|
570
|
+
export interface WebRemoteControlWorkspaceSwitchErrorResponse {
|
|
571
|
+
type: "workspace-switch-response";
|
|
572
|
+
requestId: string;
|
|
573
|
+
sessionId: string;
|
|
574
|
+
success: false;
|
|
575
|
+
error: string;
|
|
576
|
+
}
|
|
577
|
+
export type WebRemoteControlWorkspaceControlRequest = WebRemoteControlWorkspaceListRequest | WebRemoteControlWorkspaceSwitchRequest;
|
|
578
|
+
export type WebRemoteControlWorkspaceControlResponse = WebRemoteControlWorkspaceListSuccessResponse | WebRemoteControlWorkspaceSwitchSuccessResponse | WebRemoteControlWorkspaceListErrorResponse | WebRemoteControlWorkspaceSwitchErrorResponse;
|
|
579
|
+
export interface WebRemoteControlWindowBootstrapRequest {
|
|
580
|
+
type: "window-bootstrap-request";
|
|
581
|
+
requestId: string;
|
|
582
|
+
windowControlSessionId: string;
|
|
583
|
+
}
|
|
584
|
+
export interface WebRemoteControlWindowBootstrapSuccessResponse {
|
|
585
|
+
type: "window-bootstrap-response";
|
|
586
|
+
requestId: string;
|
|
587
|
+
windowControlSessionId: string;
|
|
588
|
+
success: true;
|
|
589
|
+
result: WebRemoteControlWindowBootstrapResult;
|
|
590
|
+
}
|
|
591
|
+
export interface WebRemoteControlWindowBootstrapErrorResponse {
|
|
592
|
+
type: "window-bootstrap-response";
|
|
593
|
+
requestId: string;
|
|
594
|
+
windowControlSessionId: string;
|
|
595
|
+
success: false;
|
|
596
|
+
error: string;
|
|
597
|
+
}
|
|
598
|
+
export interface WebRemoteControlWorkspaceBridgeRequest {
|
|
599
|
+
type: "workspace-bridge-request";
|
|
600
|
+
requestId: string;
|
|
601
|
+
windowControlSessionId: string;
|
|
602
|
+
bridgeSessionId: string;
|
|
603
|
+
bridgeToken: string;
|
|
604
|
+
workspaceKey: string;
|
|
605
|
+
taskId?: string;
|
|
606
|
+
}
|
|
607
|
+
export interface WebRemoteControlWorkspaceBridgeSuccessResponse {
|
|
608
|
+
type: "workspace-bridge-response";
|
|
609
|
+
requestId: string;
|
|
610
|
+
windowControlSessionId: string;
|
|
611
|
+
success: true;
|
|
612
|
+
bridge: WebRemoteControlWorkspaceBridge;
|
|
613
|
+
}
|
|
614
|
+
export interface WebRemoteControlWorkspaceBridgeErrorResponse {
|
|
615
|
+
type: "workspace-bridge-response";
|
|
616
|
+
requestId: string;
|
|
617
|
+
windowControlSessionId: string;
|
|
618
|
+
success: false;
|
|
619
|
+
error: string;
|
|
620
|
+
}
|
|
621
|
+
export interface WebRemoteControlMobileViewStateUpdate {
|
|
622
|
+
type: "mobile-view-state-update";
|
|
623
|
+
windowControlSessionId: string;
|
|
624
|
+
viewState: WebRemoteControlMobileViewState;
|
|
625
|
+
deviceInfo?: WebRemoteControlMobileDeviceInfo;
|
|
626
|
+
}
|
|
627
|
+
export type WebRemoteControlWindowControlRequest = WebRemoteControlWindowBootstrapRequest | WebRemoteControlWorkspaceBridgeRequest | WebRemoteControlMobileViewStateUpdate;
|
|
628
|
+
export type WebRemoteControlWindowControlResponse = WebRemoteControlWindowBootstrapSuccessResponse | WebRemoteControlWindowBootstrapErrorResponse | WebRemoteControlWorkspaceBridgeSuccessResponse | WebRemoteControlWorkspaceBridgeErrorResponse;
|
|
629
|
+
export type RelayDesktopControlEvent = {
|
|
630
|
+
type: "tunnel-registered";
|
|
631
|
+
tunnelId: string;
|
|
632
|
+
} | {
|
|
633
|
+
type: "window-control-registered";
|
|
634
|
+
tunnelId: string;
|
|
635
|
+
} | {
|
|
636
|
+
type: "web-remote-control-session-request";
|
|
637
|
+
sessionId: string;
|
|
638
|
+
} | {
|
|
639
|
+
type: "mobile-connected";
|
|
640
|
+
windowControlSessionId: string;
|
|
641
|
+
} | {
|
|
642
|
+
type: "mobile-disconnected";
|
|
643
|
+
windowControlSessionId: string;
|
|
644
|
+
} | WebRemoteControlPlatformRequest | WebRemoteControlPlatformResponse | WebRemoteControlWorkspaceControlRequest | WebRemoteControlWorkspaceControlResponse | WebRemoteControlWindowControlRequest | WebRemoteControlWindowControlResponse;
|
|
645
|
+
//# sourceMappingURL=web-remote-control.d.ts.map
|