@dipoleml/dcode-cli 1.1.0 → 1.2.1
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 +59368 -45608
- package/dist/packages/browser-use-plugin/README.md +12 -12
- package/dist/packages/browser-use-plugin/docs/api.json +1 -1
- package/dist/packages/browser-use-plugin/docs/overview.md +5 -4
- package/dist/packages/browser-use-plugin/docs/workflow.md +1 -1
- package/dist/packages/browser-use-plugin/scripts/build.mjs +1 -0
- package/dist/packages/browser-use-plugin/skills/control-browser/SKILL.md +10 -7
- package/dist/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
- package/dist/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
- package/dist/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
- package/dist/packages/node-repl-host/.dcode-plugin/plugin.json +1 -1
- package/dist/packages/node-repl-host/dist/mcp/server.js +9 -14
- package/dist/packages/node-repl-host/scripts/build.mjs +1 -0
- package/dist/provider/dcode-builtin.json +6612 -202
- package/node_modules/@dcode/contracts/dist/compact/index.d.ts +7 -7
- package/node_modules/@dcode/contracts/dist/config/index.d.ts +1 -1
- package/node_modules/@dcode/contracts/dist/events/event-reducer.js +1 -0
- package/node_modules/@dcode/contracts/dist/events/in-memory-session-event-store.js +3 -2
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.d.ts +8 -0
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.js +18 -0
- package/node_modules/@dcode/contracts/dist/events/session.events.d.ts +94 -16
- package/node_modules/@dcode/contracts/dist/events/session.events.js +10 -0
- package/node_modules/@dcode/contracts/dist/hooks/index.d.ts +134 -134
- package/node_modules/@dcode/contracts/dist/hooks/workspace-hook-trust.d.ts +14 -14
- package/node_modules/@dcode/contracts/dist/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/index.js +2 -0
- package/node_modules/@dcode/contracts/dist/interfaces/browser-control.port.d.ts +22 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.d.ts +92 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.js +9 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.js +7 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-workspace.port.js +8 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.d.ts +119 -18
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.js +13 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.d.ts +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.d.ts +161 -1
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.js +17 -0
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.d.ts +15 -15
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.js +1 -1
- package/node_modules/@dcode/contracts/dist/interfaces/permission.port.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.d.ts +19 -0
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.d.ts +4 -2
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.js +5 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.d.ts +92 -3
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.js +4 -1
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.d.ts +25 -0
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/model/index.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/model/index.js +5 -0
- package/node_modules/@dcode/contracts/dist/model/invocation-context.d.ts +6 -1
- package/node_modules/@dcode/contracts/dist/plugins/index.d.ts +23 -0
- package/node_modules/@dcode/contracts/dist/plugins/index.js +2 -1
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.js +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/index.d.ts +5 -1
- package/node_modules/@dcode/contracts/dist/telemetry/index.js +12 -0
- package/node_modules/@dcode/contracts/dist/tools/agent.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.d.ts +39 -15
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.js +12 -6
- package/node_modules/@dcode/contracts/dist/tools/automation.d.ts +32 -32
- package/node_modules/@dcode/contracts/dist/tools/automation.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/bash.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/bash.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.d.ts +365 -66
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.js +92 -11
- package/node_modules/@dcode/contracts/dist/tools/edit.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.js +5 -1
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.d.ts +729 -0
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.js +102 -0
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.d.ts +136 -28
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.js +36 -0
- package/node_modules/@dcode/contracts/dist/tools/grep.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/grep.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/tools/index.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/list-saved-workflows.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/list-workflow-runs.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/node-repl.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/off-peak.d.ts +3 -3
- package/node_modules/@dcode/contracts/dist/tools/off-peak.js +2 -2
- package/node_modules/@dcode/contracts/dist/tools/performance.d.ts +22 -22
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.js +6 -4
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.d.ts +86 -13
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.js +37 -6
- package/node_modules/@dcode/contracts/dist/tools/read.d.ts +38 -38
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.d.ts +21 -10
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.js +22 -2
- package/node_modules/@dcode/contracts/dist/tools/saved-workflow.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/send-message.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/skill.js +1 -0
- package/node_modules/@dcode/contracts/dist/tools/task-output.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.d.ts +1228 -259
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.js +41 -0
- package/node_modules/@dcode/contracts/dist/tools/webfetch.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/workflow-observation-display.d.ts +20 -20
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.d.ts +55 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.js +86 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/write.d.ts +18 -18
- package/node_modules/@dcode/contracts/dist/workflow/index.d.ts +98 -98
- package/node_modules/@dcode/contracts/dist/workflow/script.d.ts +12 -12
- package/node_modules/@dcode/i18n/dist/index.js +2 -2
- package/node_modules/@dcode/i18n/dist/locale.d.ts +1 -1
- package/node_modules/@dcode/i18n/dist/locale.js +4 -4
- package/node_modules/@dcode/i18n/dist/locales/en-US.js +5 -5
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.d.ts +3 -0
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.js +354 -0
- package/node_modules/@dcode/model-option-map/package.json +1 -1
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.js +6 -0
- package/node_modules/@dcode/shared/dist/attachment-source.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/attachment-source.js +4 -0
- package/node_modules/@dcode/shared/dist/background-bash-output.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/bots.d.ts +763 -15
- package/node_modules/@dcode/shared/dist/bots.js +236 -2
- package/node_modules/@dcode/shared/dist/browser-use/command-metadata.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/browser-use/commands.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/browser-use/commands.js +3 -1
- package/node_modules/@dcode/shared/dist/browser-use/nodeReplBroker.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/browser-use/result.d.ts +6 -6
- package/node_modules/@dcode/shared/dist/channel-mention.d.ts +173 -0
- package/node_modules/@dcode/shared/dist/channel-mention.js +120 -0
- package/node_modules/@dcode/shared/dist/channels.d.ts +128 -1
- package/node_modules/@dcode/shared/dist/channels.js +66 -0
- package/node_modules/@dcode/shared/dist/clientConfig.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/clientConfig.js +18 -2
- package/node_modules/@dcode/shared/dist/cloudContent.d.ts +160 -0
- package/node_modules/@dcode/shared/dist/cloudContent.js +116 -0
- package/node_modules/@dcode/shared/dist/coding-plan-subscription.d.ts +59 -0
- package/node_modules/@dcode/shared/dist/conversation-message-projection-policy.js +2 -0
- package/node_modules/@dcode/shared/dist/conversation-share.d.ts +351 -47
- package/node_modules/@dcode/shared/dist/conversation-share.js +8 -6
- package/node_modules/@dcode/shared/dist/conversationSelection.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/conversationSelection.js +30 -0
- package/node_modules/@dcode/shared/dist/database-startup.d.ts +5 -5
- package/node_modules/@dcode/shared/dist/dcode-agent-model-state.js +14 -6
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.d.ts +16 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.js +17 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-runtime.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.d.ts +1733 -318
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.js +555 -24
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.js +10 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.d.ts +30 -20
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/apply.js +12 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.d.ts +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.d.ts +359 -28
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.js +67 -45
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/controller.d.ts +170 -65
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.d.ts +20 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.js +15 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.d.ts +34 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.js +45 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.d.ts +1453 -278
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.js +45 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.js +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.d.ts +173 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.js +29 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.d.ts +731 -125
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.js +23 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.d.ts +30 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.js +35 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index.d.ts +40 -25
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.d.ts +1444 -216
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/telemetry.d.ts +62 -58
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.d.ts +185 -50
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.js +31 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.d.ts +7145 -1002
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.js +18 -5
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-assembler.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-fault.js +4 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-reassembly.js +5 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.d.ts +29 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.js +64 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.js +23 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-observation-display.d.ts +14 -14
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.d.ts +52 -8
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.js +22 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.js +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.d.ts +21 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.js +44 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.js +3 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-caps.js +5 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.d.ts +26 -19
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.js +40 -32
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.js +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.js +44 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.js +17 -10
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.d.ts +33 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.js +202 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-phases.js +10 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.js +29 -22
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-started.js +5 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-tables.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-unlisted.js +6 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.d.ts +125 -40
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.js +101 -26
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-workspace.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workspace-hook-review.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.js +49 -0
- package/node_modules/@dcode/shared/dist/dcode-slash-command-help.js +4 -4
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.js +13 -1
- package/node_modules/@dcode/shared/dist/dcode-task-types-core.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-task-types.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.d.ts +20 -1
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +98 -17
- package/node_modules/@dcode/shared/dist/desktopMenu.js +48 -48
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.d.ts +35 -6
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.js +45 -6
- package/node_modules/@dcode/shared/dist/env.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/env.js +9 -9
- package/node_modules/@dcode/shared/dist/errors.d.ts +24 -0
- package/node_modules/@dcode/shared/dist/errors.js +54 -0
- package/node_modules/@dcode/shared/dist/execution-state.d.ts +4 -2
- package/node_modules/@dcode/shared/dist/execution-state.js +1 -1
- package/node_modules/@dcode/shared/dist/feedback.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/gen-ui/contract.d.ts +140 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.js +36 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.js +196 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.js +75 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.js +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.js +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.d.ts +202 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.js +126 -0
- package/node_modules/@dcode/shared/dist/helpAppConfig.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/helpAppConfig.js +2 -2
- package/node_modules/@dcode/shared/dist/highspeed.d.ts +181 -0
- package/node_modules/@dcode/shared/dist/highspeed.js +112 -0
- package/node_modules/@dcode/shared/dist/index.d.ts +27 -5
- package/node_modules/@dcode/shared/dist/index.js +24 -2
- package/node_modules/@dcode/shared/dist/localTtft.d.ts +27 -27
- package/node_modules/@dcode/shared/dist/marketingTouch.d.ts +930 -0
- package/node_modules/@dcode/shared/dist/marketingTouch.js +170 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.d.ts +83 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.js +124 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.d.ts +241 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.js +42 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.js +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.js +64 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.d.ts +47 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.js +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.js +11 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.d.ts +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.js +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.js +73 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.d.ts +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.js +107 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.js +55 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.d.ts +78 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.js +65 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.d.ts +39 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.js +199 -0
- package/node_modules/@dcode/shared/dist/mcp.d.ts +6 -2
- package/node_modules/@dcode/shared/dist/memory.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/memory.js +2 -0
- package/node_modules/@dcode/shared/dist/model-execution.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/model-execution.js +38 -0
- package/node_modules/@dcode/shared/dist/networkCapture.d.ts +49 -0
- package/node_modules/@dcode/shared/dist/networkCapture.js +41 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.d.ts +6 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.js +16 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.js +30 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.js +96 -0
- package/node_modules/@dcode/shared/dist/node/officialPluginCache.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node/subagentMarkdownMigration.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node.js +2 -0
- package/node_modules/@dcode/shared/dist/output-style.d.ts +17 -0
- package/node_modules/@dcode/shared/dist/output-style.js +2 -0
- package/node_modules/@dcode/shared/dist/platform.d.ts +149 -1
- package/node_modules/@dcode/shared/dist/platform.js +2 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.d.ts +61 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.js +2 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.js +20 -14
- package/node_modules/@dcode/shared/dist/project-access-token-client.d.ts +42 -0
- package/node_modules/@dcode/shared/dist/project-access-token-client.js +260 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.js +9 -0
- package/node_modules/@dcode/shared/dist/project-access-token.d.ts +45 -0
- package/node_modules/@dcode/shared/dist/project-access-token.js +164 -0
- package/node_modules/@dcode/shared/dist/protocol.d.ts +41 -4
- package/node_modules/@dcode/shared/dist/protocol.js +1 -1
- package/node_modules/@dcode/shared/dist/provider-provisioning.d.ts +26 -2
- package/node_modules/@dcode/shared/dist/provider-provisioning.js +19 -3
- package/node_modules/@dcode/shared/dist/providers.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/providers.js +1 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.js +35 -1
- package/node_modules/@dcode/shared/dist/remoteAppConfig.js +1 -1
- package/node_modules/@dcode/shared/dist/remoteEnvironmentKey.js +19 -0
- package/node_modules/@dcode/shared/dist/remoteTarget.d.ts +14 -1
- package/node_modules/@dcode/shared/dist/remoteTarget.js +4 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.d.ts +27 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.js +43 -0
- package/node_modules/@dcode/shared/dist/rendererActionTrace.d.ts +35 -35
- package/node_modules/@dcode/shared/dist/request-security-edition/index.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/index.js +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.js +5 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.d.ts +19 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.js +29 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.js +80 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.d.ts +37 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.js +50 -0
- package/node_modules/@dcode/shared/dist/sessionCreateTelemetry.d.ts +3 -3
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.js +212 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.js +200 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.d.ts +82 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.js +28 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.d.ts +135 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.js +39 -0
- package/node_modules/@dcode/shared/dist/subagents-types.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/task-realtime-core.d.ts +57 -24
- package/node_modules/@dcode/shared/dist/task-realtime-core.js +8 -2
- package/node_modules/@dcode/shared/dist/test-ids-workflow.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/test-ids-workflow.js +5 -0
- package/node_modules/@dcode/shared/dist/test-ids.d.ts +25 -0
- package/node_modules/@dcode/shared/dist/test-ids.js +25 -0
- package/node_modules/@dcode/shared/dist/tool-identity.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/tool-identity.js +4 -0
- package/node_modules/@dcode/shared/dist/tool-plan-adapter.js +14 -1
- package/node_modules/@dcode/shared/dist/usage-stats.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/validation.d.ts +1461 -85
- package/node_modules/@dcode/shared/dist/validation.js +423 -14
- package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +71 -15
- package/node_modules/@dcode/shared/dist/validationAppSettings.js +74 -12
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.js +40 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.d.ts +183 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.js +562 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.d.ts +645 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.js +174 -0
- package/node_modules/@dcode/shared/package.json +5 -2
- package/node_modules/@dcode/tui/dist/app-approval-panel.js +3 -2
- package/node_modules/@dcode/tui/dist/app-approval.d.ts +3 -1
- package/node_modules/@dcode/tui/dist/app-approval.js +9 -5
- package/node_modules/@dcode/tui/dist/app-compact-timeline.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-compact-timeline.js +5 -2
- package/node_modules/@dcode/tui/dist/app-empty-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-empty-transcript.js +1 -1
- package/node_modules/@dcode/tui/dist/app-file-mentions.d.ts +2 -0
- package/node_modules/@dcode/tui/dist/app-file-mentions.js +2 -2
- package/node_modules/@dcode/tui/dist/app-input-pane.d.ts +38 -0
- package/node_modules/@dcode/tui/dist/app-input-pane.js +19 -19
- package/node_modules/@dcode/tui/dist/app-input-status.d.ts +17 -0
- package/node_modules/@dcode/tui/dist/app-input-status.js +4 -4
- package/node_modules/@dcode/tui/dist/app-input.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-input.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.d.ts +2 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-markdown.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode-command.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-mode-command.js +4 -4
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.d.ts +5 -0
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.d.ts +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.js +1 -1
- package/node_modules/@dcode/tui/dist/app-model-ref.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-model-ref.js +1 -1
- package/node_modules/@dcode/tui/dist/app-motion.d.ts +13 -0
- package/node_modules/@dcode/tui/dist/app-motion.js +17 -7
- package/node_modules/@dcode/tui/dist/app-session-event-handler.d.ts +33 -0
- package/node_modules/@dcode/tui/dist/app-session-event-handler.js +4 -4
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.js +3 -3
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.js +7 -2
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.d.ts +10 -0
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.js +4 -4
- package/node_modules/@dcode/tui/dist/app-submit.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-submit.js +1 -1
- package/node_modules/@dcode/tui/dist/app-thought-components.d.ts +7 -0
- package/node_modules/@dcode/tui/dist/app-thought-components.js +2 -2
- package/node_modules/@dcode/tui/dist/app-tool-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-tool-transcript.js +3 -0
- package/node_modules/@dcode/tui/dist/app-view.d.ts +27 -0
- package/node_modules/@dcode/tui/dist/app-view.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-card.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.js +4 -4
- package/node_modules/@dcode/tui/dist/index.js +5118 -2579
- package/node_modules/@dcode/tui/dist/tui.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/tui.js +1 -1
- package/node_modules/@dcode/tui/dist/types.d.ts +1 -1
- package/node_modules/oniguruma-parser/LICENSE +1 -1
- package/node_modules/oniguruma-parser/README.md +15 -61
- package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +4 -4
- package/node_modules/oniguruma-parser/dist/parser/parse.js +1 -1
- package/node_modules/oniguruma-parser/dist/traverser/traverse.js +1 -1
- package/node_modules/oniguruma-parser/package.json +5 -5
- package/node_modules/oniguruma-to-es/dist/cjs/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/cjs/index.js +121 -120
- package/node_modules/oniguruma-to-es/dist/cjs/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/cjs/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/cjs/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/index.js +1 -3
- package/node_modules/oniguruma-to-es/dist/esm/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/esm/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/esm/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/index.min.js +6 -6
- package/node_modules/oniguruma-to-es/package.json +5 -5
- package/package.json +5 -5
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const cloudButtonThemeSchema: z.ZodObject<{
|
|
3
|
+
variant: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
4
|
+
"": "";
|
|
5
|
+
default: "default";
|
|
6
|
+
link: "link";
|
|
7
|
+
outline: "outline";
|
|
8
|
+
secondary: "secondary";
|
|
9
|
+
ghost: "ghost";
|
|
10
|
+
destructive: "destructive";
|
|
11
|
+
warning: "warning";
|
|
12
|
+
}>>, z.ZodTransform<"default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning", "" | "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning" | undefined>>;
|
|
13
|
+
class: z.ZodOptional<z.ZodString>;
|
|
14
|
+
style: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const contentBundleSchema: z.ZodObject<{
|
|
17
|
+
format: z.ZodLiteral<"zip">;
|
|
18
|
+
url: z.ZodString;
|
|
19
|
+
entry: z.ZodString;
|
|
20
|
+
sha256: z.ZodString;
|
|
21
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type CloudContentBundle = z.infer<typeof contentBundleSchema>;
|
|
24
|
+
export declare const cloudContentPayloadSchema: z.ZodObject<{
|
|
25
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
revision: z.ZodNumber;
|
|
28
|
+
kind: z.ZodEnum<{
|
|
29
|
+
campaign: "campaign";
|
|
30
|
+
feature: "feature";
|
|
31
|
+
notice: "notice";
|
|
32
|
+
}>;
|
|
33
|
+
locale: z.ZodEnum<{
|
|
34
|
+
"en-US": "en-US";
|
|
35
|
+
"zh-CN": "zh-CN";
|
|
36
|
+
}>;
|
|
37
|
+
dialog: z.ZodObject<{
|
|
38
|
+
title: z.ZodString;
|
|
39
|
+
description: z.ZodObject<{
|
|
40
|
+
format: z.ZodEnum<{
|
|
41
|
+
markdown: "markdown";
|
|
42
|
+
html: "html";
|
|
43
|
+
plain_text: "plain_text";
|
|
44
|
+
}>;
|
|
45
|
+
text: z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
hero: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<"image">;
|
|
49
|
+
src: z.ZodString;
|
|
50
|
+
darkSrc: z.ZodOptional<z.ZodString>;
|
|
51
|
+
alt: z.ZodString;
|
|
52
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
53
|
+
cover: "cover";
|
|
54
|
+
contain: "contain";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"video">;
|
|
58
|
+
src: z.ZodString;
|
|
59
|
+
darkSrc: z.ZodOptional<z.ZodString>;
|
|
60
|
+
poster: z.ZodString;
|
|
61
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
muted: z.ZodLiteral<true>;
|
|
64
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
65
|
+
cover: "cover";
|
|
66
|
+
contain: "contain";
|
|
67
|
+
}>>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
type: z.ZodLiteral<"lottie">;
|
|
70
|
+
src: z.ZodString;
|
|
71
|
+
darkSrc: z.ZodOptional<z.ZodString>;
|
|
72
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
fallback: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<"image">;
|
|
77
|
+
src: z.ZodString;
|
|
78
|
+
darkSrc: z.ZodOptional<z.ZodString>;
|
|
79
|
+
alt: z.ZodString;
|
|
80
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
81
|
+
cover: "cover";
|
|
82
|
+
contain: "contain";
|
|
83
|
+
}>>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<"interactive_bundle">;
|
|
87
|
+
runtime: z.ZodLiteral<"dcode-hero-sandbox-v1">;
|
|
88
|
+
bundle: z.ZodObject<{
|
|
89
|
+
format: z.ZodLiteral<"zip">;
|
|
90
|
+
url: z.ZodString;
|
|
91
|
+
entry: z.ZodString;
|
|
92
|
+
sha256: z.ZodString;
|
|
93
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
viewport: z.ZodObject<{
|
|
96
|
+
aspectRatio: z.ZodLiteral<"4:3">;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
99
|
+
events: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
100
|
+
fallback: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"image">;
|
|
102
|
+
src: z.ZodString;
|
|
103
|
+
darkSrc: z.ZodOptional<z.ZodString>;
|
|
104
|
+
alt: z.ZodString;
|
|
105
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
cover: "cover";
|
|
107
|
+
contain: "contain";
|
|
108
|
+
}>>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
}, z.core.$strip>], "type">;
|
|
111
|
+
buttons: z.ZodArray<z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
label: z.ZodString;
|
|
114
|
+
variant: z.ZodEnum<{
|
|
115
|
+
primary: "primary";
|
|
116
|
+
link: "link";
|
|
117
|
+
secondary: "secondary";
|
|
118
|
+
}>;
|
|
119
|
+
theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
120
|
+
variant: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
"": "";
|
|
122
|
+
default: "default";
|
|
123
|
+
link: "link";
|
|
124
|
+
outline: "outline";
|
|
125
|
+
secondary: "secondary";
|
|
126
|
+
ghost: "ghost";
|
|
127
|
+
destructive: "destructive";
|
|
128
|
+
warning: "warning";
|
|
129
|
+
}>>, z.ZodTransform<"default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning", "" | "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | "warning" | undefined>>;
|
|
130
|
+
class: z.ZodOptional<z.ZodString>;
|
|
131
|
+
style: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>>>;
|
|
133
|
+
actionId: z.ZodString;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
actions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
137
|
+
type: z.ZodLiteral<"close">;
|
|
138
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
139
|
+
type: z.ZodLiteral<"dismiss_content">;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
type: z.ZodLiteral<"navigate">;
|
|
142
|
+
destination: z.ZodEnum<{
|
|
143
|
+
model_settings: "model_settings";
|
|
144
|
+
plugin_store: "plugin_store";
|
|
145
|
+
settings: "settings";
|
|
146
|
+
}>;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
+
type: z.ZodLiteral<"copy_text">;
|
|
149
|
+
text: z.ZodString;
|
|
150
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
151
|
+
type: z.ZodLiteral<"open_external">;
|
|
152
|
+
url: z.ZodString;
|
|
153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
154
|
+
type: z.ZodLiteral<"claim_plan">;
|
|
155
|
+
planId: z.ZodString;
|
|
156
|
+
}, z.core.$strip>], "type">>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
export type CloudContentPayload = z.infer<typeof cloudContentPayloadSchema>;
|
|
159
|
+
export type CloudContentHeroType = CloudContentPayload["dialog"]["hero"]["type"];
|
|
160
|
+
//# sourceMappingURL=cloudContent.d.ts.map
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const cloudButtonThemeSchema = z.object({
|
|
3
|
+
variant: z
|
|
4
|
+
.enum(["", "default", "outline", "secondary", "ghost", "destructive", "warning", "link"])
|
|
5
|
+
.optional()
|
|
6
|
+
.transform((value) => value || "default"),
|
|
7
|
+
class: z.string().max(512).optional(),
|
|
8
|
+
style: z.string().max(512).optional(),
|
|
9
|
+
});
|
|
10
|
+
const url = z
|
|
11
|
+
.string()
|
|
12
|
+
.max(4096)
|
|
13
|
+
.url()
|
|
14
|
+
.refine((value) => URL.canParse(value) &&
|
|
15
|
+
/^https?:\/\//iu.test(value) &&
|
|
16
|
+
!new URL(value).username &&
|
|
17
|
+
!new URL(value).password);
|
|
18
|
+
const id = z.string().min(1).max(128);
|
|
19
|
+
const image = z.object({
|
|
20
|
+
type: z.literal("image"),
|
|
21
|
+
src: url,
|
|
22
|
+
darkSrc: url.optional(),
|
|
23
|
+
alt: z.string().max(500),
|
|
24
|
+
fit: z.enum(["cover", "contain"]).optional(),
|
|
25
|
+
});
|
|
26
|
+
export const contentBundleSchema = z.object({
|
|
27
|
+
format: z.literal("zip"),
|
|
28
|
+
url,
|
|
29
|
+
entry: z.string().min(1).max(240),
|
|
30
|
+
sha256: z.string().regex(/^[a-f0-9]{64}$/u),
|
|
31
|
+
sizeBytes: z
|
|
32
|
+
.number()
|
|
33
|
+
.int()
|
|
34
|
+
.positive()
|
|
35
|
+
.max(8 * 1024 * 1024)
|
|
36
|
+
.optional(),
|
|
37
|
+
});
|
|
38
|
+
const hero = z.discriminatedUnion("type", [
|
|
39
|
+
image,
|
|
40
|
+
z.object({
|
|
41
|
+
type: z.literal("video"),
|
|
42
|
+
src: url,
|
|
43
|
+
darkSrc: url.optional(),
|
|
44
|
+
poster: url,
|
|
45
|
+
autoplay: z.boolean().optional(),
|
|
46
|
+
loop: z.boolean().optional(),
|
|
47
|
+
muted: z.literal(true),
|
|
48
|
+
fit: z.enum(["cover", "contain"]).optional(),
|
|
49
|
+
}),
|
|
50
|
+
z.object({
|
|
51
|
+
type: z.literal("lottie"),
|
|
52
|
+
src: url,
|
|
53
|
+
darkSrc: url.optional(),
|
|
54
|
+
autoplay: z.boolean().optional(),
|
|
55
|
+
loop: z.boolean().optional(),
|
|
56
|
+
speed: z.number().min(0.1).max(4).optional(),
|
|
57
|
+
fallback: image.optional(),
|
|
58
|
+
}),
|
|
59
|
+
z.object({
|
|
60
|
+
type: z.literal("interactive_bundle"),
|
|
61
|
+
runtime: z.literal("dcode-hero-sandbox-v1"),
|
|
62
|
+
bundle: contentBundleSchema,
|
|
63
|
+
viewport: z.object({ aspectRatio: z.literal("4:3") }),
|
|
64
|
+
data: z
|
|
65
|
+
.record(z.string(), z.unknown())
|
|
66
|
+
.refine((value) => JSON.stringify(value).length <= 64000),
|
|
67
|
+
events: z.record(id, id).refine((value) => Object.keys(value).length <= 16),
|
|
68
|
+
fallback: image.optional(),
|
|
69
|
+
}),
|
|
70
|
+
]);
|
|
71
|
+
const action = z.discriminatedUnion("type", [
|
|
72
|
+
z.object({ type: z.literal("close") }),
|
|
73
|
+
z.object({ type: z.literal("dismiss_content") }),
|
|
74
|
+
z.object({
|
|
75
|
+
type: z.literal("navigate"),
|
|
76
|
+
destination: z.enum(["model_settings", "plugin_store", "settings"]),
|
|
77
|
+
}),
|
|
78
|
+
z.object({ type: z.literal("copy_text"), text: z.string().max(20000) }),
|
|
79
|
+
z.object({ type: z.literal("open_external"), url }),
|
|
80
|
+
z.object({ type: z.literal("claim_plan"), planId: id }),
|
|
81
|
+
]);
|
|
82
|
+
export const cloudContentPayloadSchema = z
|
|
83
|
+
.object({
|
|
84
|
+
schemaVersion: z.literal(1),
|
|
85
|
+
id,
|
|
86
|
+
revision: z.number().int().positive(),
|
|
87
|
+
kind: z.enum(["campaign", "feature", "notice"]),
|
|
88
|
+
locale: z.enum(["zh-CN", "en-US"]),
|
|
89
|
+
dialog: z.object({
|
|
90
|
+
title: z.string().min(1).max(500),
|
|
91
|
+
description: z.object({
|
|
92
|
+
format: z.enum(["plain_text", "html", "markdown"]),
|
|
93
|
+
text: z.string().max(20000),
|
|
94
|
+
}),
|
|
95
|
+
hero,
|
|
96
|
+
buttons: z
|
|
97
|
+
.array(z.object({
|
|
98
|
+
id,
|
|
99
|
+
label: z.string().min(1).max(200),
|
|
100
|
+
variant: z.enum(["primary", "secondary", "link"]),
|
|
101
|
+
theme: cloudButtonThemeSchema.nullish(),
|
|
102
|
+
actionId: id,
|
|
103
|
+
}))
|
|
104
|
+
.max(4),
|
|
105
|
+
}),
|
|
106
|
+
actions: z.record(id, action).refine((value) => Object.keys(value).length <= 16),
|
|
107
|
+
})
|
|
108
|
+
.superRefine((payload, context) => {
|
|
109
|
+
const ids = new Set();
|
|
110
|
+
for (const button of payload.dialog.buttons) {
|
|
111
|
+
if (ids.has(button.id) || !Object.hasOwn(payload.actions, button.actionId))
|
|
112
|
+
context.addIssue({ code: "custom", message: "Duplicate button or missing action" });
|
|
113
|
+
ids.add(button.id);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
//# sourceMappingURL=cloudContent.js.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { RequestVerificationProof } from "./request-security-edition/verification-policy.js";
|
|
2
|
+
import type { Locale } from "./protocol.js";
|
|
1
3
|
import type { ProviderFamilyDomain } from "./model-provider-family.js";
|
|
2
4
|
import type { BUILTIN_MODEL_PROVIDER_IDS } from "./model-provider-types.js";
|
|
3
5
|
export type CodingPlanPayType = "ALI" | "WECHAT";
|
|
@@ -78,6 +80,14 @@ export interface CodingPlanStaticTeamProduct {
|
|
|
78
80
|
description?: CodingPlanCardCopyConfigItem[];
|
|
79
81
|
}
|
|
80
82
|
export type CodingPlanStaticTeamProductsConfig = Partial<Record<CodingPlanSubscriptionProviderId, CodingPlanStaticTeamProduct[]>>;
|
|
83
|
+
export interface CodingPlanBillingDiscountLocaleCopy {
|
|
84
|
+
cardTitle?: string;
|
|
85
|
+
cardBody?: string;
|
|
86
|
+
badgeBody?: string;
|
|
87
|
+
infoTitle?: string;
|
|
88
|
+
infoBody?: string;
|
|
89
|
+
}
|
|
90
|
+
export type CodingPlanBillingDiscountConfig = Partial<Record<Locale, CodingPlanBillingDiscountLocaleCopy>> & Record<string, unknown>;
|
|
81
91
|
export interface StartPlanPreviewEntitlement {
|
|
82
92
|
grantUnits: number;
|
|
83
93
|
meter: string;
|
|
@@ -90,6 +100,55 @@ export interface StartPlanPreviewConfig {
|
|
|
90
100
|
name: string;
|
|
91
101
|
entitlements: StartPlanPreviewEntitlement[];
|
|
92
102
|
}
|
|
103
|
+
export interface ManualClaimPlanEntitlement {
|
|
104
|
+
entitlementId: string;
|
|
105
|
+
showName: string;
|
|
106
|
+
meter: string;
|
|
107
|
+
unitType: string;
|
|
108
|
+
capabilities: string[];
|
|
109
|
+
grantUnits: number;
|
|
110
|
+
period: string;
|
|
111
|
+
priority: number;
|
|
112
|
+
effectiveAt?: number;
|
|
113
|
+
}
|
|
114
|
+
export interface ManualClaimPlanPreview {
|
|
115
|
+
planId: string;
|
|
116
|
+
name: string;
|
|
117
|
+
description: string;
|
|
118
|
+
priority: number;
|
|
119
|
+
entitlements: ManualClaimPlanEntitlement[];
|
|
120
|
+
}
|
|
121
|
+
export interface ManualClaimPlanPreviewSnapshot {
|
|
122
|
+
/** 本次响应的服务端时间(毫秒);生效时间 effectiveAt 仍为 Unix 秒。 */
|
|
123
|
+
serverTime?: number;
|
|
124
|
+
plans: ManualClaimPlanPreview[];
|
|
125
|
+
}
|
|
126
|
+
export interface ManualClaimPlanClaimRequest extends RequestVerificationProof {
|
|
127
|
+
planId: string;
|
|
128
|
+
}
|
|
129
|
+
export interface ManualClaimPlanClaimEntitlement {
|
|
130
|
+
entitlementId: string;
|
|
131
|
+
showName: string;
|
|
132
|
+
/** Claim 返回的权益生效时间,Unix 秒;0 表示立即生效。 */
|
|
133
|
+
effectiveAt?: number;
|
|
134
|
+
}
|
|
135
|
+
export interface ManualClaimPlanClaimResult {
|
|
136
|
+
success: boolean;
|
|
137
|
+
code: number;
|
|
138
|
+
message: string;
|
|
139
|
+
/** 失败响应中的活动结束时间,用于额度耗尽提示;不得当作已领取权益期限。 */
|
|
140
|
+
failureEndsAt?: number;
|
|
141
|
+
/** 领取接口返回的服务端时间(毫秒),不与其他响应的时间混用。 */
|
|
142
|
+
serverTime?: number;
|
|
143
|
+
plan?: {
|
|
144
|
+
userPlanId: string;
|
|
145
|
+
planId: string;
|
|
146
|
+
status: string;
|
|
147
|
+
startsAt?: number;
|
|
148
|
+
endsAt?: number;
|
|
149
|
+
entitlements?: ManualClaimPlanClaimEntitlement[];
|
|
150
|
+
};
|
|
151
|
+
}
|
|
93
152
|
export interface ForceUpdateConfig {
|
|
94
153
|
minimalVersion: string;
|
|
95
154
|
}
|
|
@@ -7,12 +7,14 @@ const TASK_NOTIFICATION_PREFIX = "<task-notification>";
|
|
|
7
7
|
const SUBAGENT_NOTIFICATION_PREFIX = "<subagent-notification>";
|
|
8
8
|
const REWIND_NOTICE_MARKERS = ["Conversation rewind applied.", "Workspace rewind applied."];
|
|
9
9
|
const PROVIDER_CONTEXT_SYNTHETIC_SOURCES = new Set([
|
|
10
|
+
"agent_listing_delta",
|
|
10
11
|
"agent_control_message",
|
|
11
12
|
"background_task",
|
|
12
13
|
"goal-continuation",
|
|
13
14
|
"goal_completion_verification",
|
|
14
15
|
"goal_state_change",
|
|
15
16
|
"plugin_reference",
|
|
17
|
+
"bot_topic_context",
|
|
16
18
|
"queued_system_notification",
|
|
17
19
|
"resume_goal_state",
|
|
18
20
|
"resume_referenced_session_context",
|