@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,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const dcodeProtocolTraceSchema: z.ZodObject<{
|
|
3
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
4
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
spanId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
traceparent: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
export type DCodeProtocolTrace = z.infer<typeof dcodeProtocolTraceSchema>;
|
|
9
|
+
//# sourceMappingURL=trace.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const dcodeProtocolTraceSchema = z
|
|
3
|
+
.object({
|
|
4
|
+
traceId: z.string().min(1).optional(),
|
|
5
|
+
parentId: z.string().min(1).optional(),
|
|
6
|
+
spanId: z.string().min(1).optional(),
|
|
7
|
+
traceparent: z.string().min(1).optional(),
|
|
8
|
+
})
|
|
9
|
+
.strict();
|
|
10
|
+
//# sourceMappingURL=trace.js.map
|
|
@@ -9,11 +9,13 @@ export declare const dcodeMessageVisibilitySchema: z.ZodEnum<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export declare const dcodeSyntheticUserMessageSourceSchema: z.ZodEnum<{
|
|
11
11
|
subagent: "subagent";
|
|
12
|
+
agent_listing_delta: "agent_listing_delta";
|
|
12
13
|
background_task: "background_task";
|
|
13
14
|
fork: "fork";
|
|
14
15
|
goal_state_change: "goal_state_change";
|
|
15
16
|
"goal-continuation": "goal-continuation";
|
|
16
17
|
plugin_reference: "plugin_reference";
|
|
18
|
+
bot_topic_context: "bot_topic_context";
|
|
17
19
|
rewind: "rewind";
|
|
18
20
|
selection_side_chat: "selection_side_chat";
|
|
19
21
|
subagent_message: "subagent_message";
|
|
@@ -28,15 +30,15 @@ export declare const dcodeWorkspaceRefSchema: z.ZodObject<{
|
|
|
28
30
|
workspaceKey: z.ZodString;
|
|
29
31
|
}, z.core.$strict>;
|
|
30
32
|
export declare const dcodePermissionDecisionSchema: z.ZodEnum<{
|
|
31
|
-
allow: "allow";
|
|
32
33
|
deny: "deny";
|
|
34
|
+
allow: "allow";
|
|
33
35
|
escalate: "escalate";
|
|
34
36
|
modify: "modify";
|
|
35
37
|
}>;
|
|
36
38
|
export declare const dcodePermissionRuleBehaviorSchema: z.ZodEnum<{
|
|
39
|
+
deny: "deny";
|
|
37
40
|
ask: "ask";
|
|
38
41
|
allow: "allow";
|
|
39
|
-
deny: "deny";
|
|
40
42
|
}>;
|
|
41
43
|
/** Backward-compatible wire/storage key interpreted only for trusted official CUA tools. */
|
|
42
44
|
export declare const OFFICIAL_CUA_PERMISSION_RULE_TOOL_NAME = "dcode:permission-capability:official_cua";
|
|
@@ -53,9 +55,9 @@ export declare const dcodePermissionRuleValueSchema: z.ZodObject<{
|
|
|
53
55
|
export declare const dcodePermissionUpdateSchema: z.ZodObject<{
|
|
54
56
|
type: z.ZodLiteral<"addRules">;
|
|
55
57
|
behavior: z.ZodEnum<{
|
|
58
|
+
deny: "deny";
|
|
56
59
|
ask: "ask";
|
|
57
60
|
allow: "allow";
|
|
58
|
-
deny: "deny";
|
|
59
61
|
}>;
|
|
60
62
|
rules: z.ZodArray<z.ZodObject<{
|
|
61
63
|
toolName: z.ZodString;
|
|
@@ -64,8 +66,8 @@ export declare const dcodePermissionUpdateSchema: z.ZodObject<{
|
|
|
64
66
|
}, z.core.$strict>;
|
|
65
67
|
export declare const dcodePermissionResponseSchema: z.ZodObject<{
|
|
66
68
|
decision: z.ZodEnum<{
|
|
67
|
-
allow: "allow";
|
|
68
69
|
deny: "deny";
|
|
70
|
+
allow: "allow";
|
|
69
71
|
escalate: "escalate";
|
|
70
72
|
modify: "modify";
|
|
71
73
|
}>;
|
|
@@ -74,9 +76,9 @@ export declare const dcodePermissionResponseSchema: z.ZodObject<{
|
|
|
74
76
|
permissionUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
75
77
|
type: z.ZodLiteral<"addRules">;
|
|
76
78
|
behavior: z.ZodEnum<{
|
|
79
|
+
deny: "deny";
|
|
77
80
|
ask: "ask";
|
|
78
81
|
allow: "allow";
|
|
79
|
-
deny: "deny";
|
|
80
82
|
}>;
|
|
81
83
|
rules: z.ZodArray<z.ZodObject<{
|
|
82
84
|
toolName: z.ZodString;
|
|
@@ -86,18 +88,19 @@ export declare const dcodePermissionResponseSchema: z.ZodObject<{
|
|
|
86
88
|
}, z.core.$strict>;
|
|
87
89
|
export type DCodePermissionResponse = z.infer<typeof dcodePermissionResponseSchema>;
|
|
88
90
|
export declare const dcodeSessionModeSchema: z.ZodEnum<{
|
|
91
|
+
auto: "auto";
|
|
89
92
|
plan: "plan";
|
|
90
93
|
build: "build";
|
|
91
94
|
edit: "edit";
|
|
92
95
|
yolo: "yolo";
|
|
93
|
-
|
|
96
|
+
guarded: "guarded";
|
|
94
97
|
}>;
|
|
95
98
|
export declare const dcodeSessionStatusSchema: z.ZodEnum<{
|
|
96
|
-
running: "running";
|
|
97
|
-
completed: "completed";
|
|
98
99
|
error: "error";
|
|
99
100
|
idle: "idle";
|
|
101
|
+
running: "running";
|
|
100
102
|
waiting: "waiting";
|
|
103
|
+
completed: "completed";
|
|
101
104
|
paused: "paused";
|
|
102
105
|
}>;
|
|
103
106
|
export declare const dcodeSessionKindSchema: z.ZodEnum<{
|
|
@@ -142,9 +145,9 @@ export declare const dcodeSessionGoalVerificationTimelineSchema: z.ZodObject<{
|
|
|
142
145
|
targetId: z.ZodString;
|
|
143
146
|
verificationId: z.ZodString;
|
|
144
147
|
status: z.ZodEnum<{
|
|
148
|
+
cancelled: "cancelled";
|
|
145
149
|
completed: "completed";
|
|
146
150
|
started: "started";
|
|
147
|
-
cancelled: "cancelled";
|
|
148
151
|
failed_closed: "failed_closed";
|
|
149
152
|
}>;
|
|
150
153
|
verification: z.ZodOptional<z.ZodObject<{
|
|
@@ -185,18 +188,19 @@ export declare const dcodeSessionInfoSchema: z.ZodObject<{
|
|
|
185
188
|
generated: "generated";
|
|
186
189
|
}>>;
|
|
187
190
|
mode: z.ZodEnum<{
|
|
191
|
+
auto: "auto";
|
|
188
192
|
plan: "plan";
|
|
189
193
|
build: "build";
|
|
190
194
|
edit: "edit";
|
|
191
195
|
yolo: "yolo";
|
|
192
|
-
|
|
196
|
+
guarded: "guarded";
|
|
193
197
|
}>;
|
|
194
198
|
status: z.ZodEnum<{
|
|
195
|
-
running: "running";
|
|
196
|
-
completed: "completed";
|
|
197
199
|
error: "error";
|
|
198
200
|
idle: "idle";
|
|
201
|
+
running: "running";
|
|
199
202
|
waiting: "waiting";
|
|
203
|
+
completed: "completed";
|
|
200
204
|
paused: "paused";
|
|
201
205
|
}>;
|
|
202
206
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -255,9 +259,9 @@ export declare const dcodeTokenUsageSchema: z.ZodObject<{
|
|
|
255
259
|
}, z.core.$strict>;
|
|
256
260
|
export declare const dcodeMessageSemanticsSchema: z.ZodObject<{
|
|
257
261
|
origin: z.ZodEnum<{
|
|
262
|
+
system: "system";
|
|
258
263
|
real_user: "real_user";
|
|
259
264
|
agent_runtime: "agent_runtime";
|
|
260
|
-
system: "system";
|
|
261
265
|
migration: "migration";
|
|
262
266
|
import: "import";
|
|
263
267
|
}>;
|
|
@@ -312,11 +316,13 @@ export declare const dcodeUserMessageInfoSchema: z.ZodObject<{
|
|
|
312
316
|
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
313
317
|
source: z.ZodOptional<z.ZodEnum<{
|
|
314
318
|
subagent: "subagent";
|
|
319
|
+
agent_listing_delta: "agent_listing_delta";
|
|
315
320
|
background_task: "background_task";
|
|
316
321
|
fork: "fork";
|
|
317
322
|
goal_state_change: "goal_state_change";
|
|
318
323
|
"goal-continuation": "goal-continuation";
|
|
319
324
|
plugin_reference: "plugin_reference";
|
|
325
|
+
bot_topic_context: "bot_topic_context";
|
|
320
326
|
rewind: "rewind";
|
|
321
327
|
selection_side_chat: "selection_side_chat";
|
|
322
328
|
subagent_message: "subagent_message";
|
|
@@ -330,9 +336,9 @@ export declare const dcodeUserMessageInfoSchema: z.ZodObject<{
|
|
|
330
336
|
}>>;
|
|
331
337
|
semantics: z.ZodOptional<z.ZodObject<{
|
|
332
338
|
origin: z.ZodEnum<{
|
|
339
|
+
system: "system";
|
|
333
340
|
real_user: "real_user";
|
|
334
341
|
agent_runtime: "agent_runtime";
|
|
335
|
-
system: "system";
|
|
336
342
|
migration: "migration";
|
|
337
343
|
import: "import";
|
|
338
344
|
}>;
|
|
@@ -404,9 +410,9 @@ export declare const dcodeAssistantMessageInfoSchema: z.ZodObject<{
|
|
|
404
410
|
error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
405
411
|
semantics: z.ZodOptional<z.ZodObject<{
|
|
406
412
|
origin: z.ZodEnum<{
|
|
413
|
+
system: "system";
|
|
407
414
|
real_user: "real_user";
|
|
408
415
|
agent_runtime: "agent_runtime";
|
|
409
|
-
system: "system";
|
|
410
416
|
migration: "migration";
|
|
411
417
|
import: "import";
|
|
412
418
|
}>;
|
|
@@ -463,11 +469,13 @@ export declare const dcodeMessageInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
463
469
|
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
464
470
|
source: z.ZodOptional<z.ZodEnum<{
|
|
465
471
|
subagent: "subagent";
|
|
472
|
+
agent_listing_delta: "agent_listing_delta";
|
|
466
473
|
background_task: "background_task";
|
|
467
474
|
fork: "fork";
|
|
468
475
|
goal_state_change: "goal_state_change";
|
|
469
476
|
"goal-continuation": "goal-continuation";
|
|
470
477
|
plugin_reference: "plugin_reference";
|
|
478
|
+
bot_topic_context: "bot_topic_context";
|
|
471
479
|
rewind: "rewind";
|
|
472
480
|
selection_side_chat: "selection_side_chat";
|
|
473
481
|
subagent_message: "subagent_message";
|
|
@@ -481,9 +489,9 @@ export declare const dcodeMessageInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
481
489
|
}>>;
|
|
482
490
|
semantics: z.ZodOptional<z.ZodObject<{
|
|
483
491
|
origin: z.ZodEnum<{
|
|
492
|
+
system: "system";
|
|
484
493
|
real_user: "real_user";
|
|
485
494
|
agent_runtime: "agent_runtime";
|
|
486
|
-
system: "system";
|
|
487
495
|
migration: "migration";
|
|
488
496
|
import: "import";
|
|
489
497
|
}>;
|
|
@@ -554,9 +562,9 @@ export declare const dcodeMessageInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
554
562
|
error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
555
563
|
semantics: z.ZodOptional<z.ZodObject<{
|
|
556
564
|
origin: z.ZodEnum<{
|
|
565
|
+
system: "system";
|
|
557
566
|
real_user: "real_user";
|
|
558
567
|
agent_runtime: "agent_runtime";
|
|
559
|
-
system: "system";
|
|
560
568
|
migration: "migration";
|
|
561
569
|
import: "import";
|
|
562
570
|
}>;
|
|
@@ -924,11 +932,13 @@ export declare const dcodeMessageWithPartsSchema: z.ZodObject<{
|
|
|
924
932
|
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
925
933
|
source: z.ZodOptional<z.ZodEnum<{
|
|
926
934
|
subagent: "subagent";
|
|
935
|
+
agent_listing_delta: "agent_listing_delta";
|
|
927
936
|
background_task: "background_task";
|
|
928
937
|
fork: "fork";
|
|
929
938
|
goal_state_change: "goal_state_change";
|
|
930
939
|
"goal-continuation": "goal-continuation";
|
|
931
940
|
plugin_reference: "plugin_reference";
|
|
941
|
+
bot_topic_context: "bot_topic_context";
|
|
932
942
|
rewind: "rewind";
|
|
933
943
|
selection_side_chat: "selection_side_chat";
|
|
934
944
|
subagent_message: "subagent_message";
|
|
@@ -942,9 +952,9 @@ export declare const dcodeMessageWithPartsSchema: z.ZodObject<{
|
|
|
942
952
|
}>>;
|
|
943
953
|
semantics: z.ZodOptional<z.ZodObject<{
|
|
944
954
|
origin: z.ZodEnum<{
|
|
955
|
+
system: "system";
|
|
945
956
|
real_user: "real_user";
|
|
946
957
|
agent_runtime: "agent_runtime";
|
|
947
|
-
system: "system";
|
|
948
958
|
migration: "migration";
|
|
949
959
|
import: "import";
|
|
950
960
|
}>;
|
|
@@ -1015,9 +1025,9 @@ export declare const dcodeMessageWithPartsSchema: z.ZodObject<{
|
|
|
1015
1025
|
error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1016
1026
|
semantics: z.ZodOptional<z.ZodObject<{
|
|
1017
1027
|
origin: z.ZodEnum<{
|
|
1028
|
+
system: "system";
|
|
1018
1029
|
real_user: "real_user";
|
|
1019
1030
|
agent_runtime: "agent_runtime";
|
|
1020
|
-
system: "system";
|
|
1021
1031
|
migration: "migration";
|
|
1022
1032
|
import: "import";
|
|
1023
1033
|
}>;
|
|
@@ -1413,9 +1423,9 @@ export declare const dcodeSessionRuntimeStateSchema: z.ZodObject<{
|
|
|
1413
1423
|
targetId: z.ZodString;
|
|
1414
1424
|
verificationId: z.ZodString;
|
|
1415
1425
|
status: z.ZodEnum<{
|
|
1426
|
+
cancelled: "cancelled";
|
|
1416
1427
|
completed: "completed";
|
|
1417
1428
|
started: "started";
|
|
1418
|
-
cancelled: "cancelled";
|
|
1419
1429
|
failed_closed: "failed_closed";
|
|
1420
1430
|
}>;
|
|
1421
1431
|
verification: z.ZodOptional<z.ZodObject<{
|
|
@@ -12,11 +12,13 @@ const timestampMsSchema = z.number().int().nonnegative();
|
|
|
12
12
|
export const dcodeDeliveryKindSchema = z.enum(["desktop-continuous", "web-remote-replayable"]);
|
|
13
13
|
export const dcodeMessageVisibilitySchema = z.enum(["user-visible", "model-only"]);
|
|
14
14
|
export const dcodeSyntheticUserMessageSourceSchema = z.enum([
|
|
15
|
+
"agent_listing_delta",
|
|
15
16
|
"background_task",
|
|
16
17
|
"fork",
|
|
17
18
|
"goal_state_change",
|
|
18
19
|
"goal-continuation",
|
|
19
20
|
"plugin_reference",
|
|
21
|
+
"bot_topic_context",
|
|
20
22
|
"rewind",
|
|
21
23
|
"selection_side_chat",
|
|
22
24
|
"subagent",
|
|
@@ -68,7 +70,7 @@ export const dcodePermissionResponseSchema = z
|
|
|
68
70
|
permissionUpdates: z.array(dcodePermissionUpdateSchema).optional(),
|
|
69
71
|
})
|
|
70
72
|
.strict();
|
|
71
|
-
export const dcodeSessionModeSchema = z.enum(["plan", "build", "edit", "yolo", "auto"]);
|
|
73
|
+
export const dcodeSessionModeSchema = z.enum(["plan", "build", "edit", "yolo", "guarded", "auto"]);
|
|
72
74
|
export const dcodeSessionStatusSchema = z.enum([
|
|
73
75
|
"idle",
|
|
74
76
|
"running",
|
|
@@ -9,8 +9,8 @@ export function createMutableConversationSnapshotAccumulator(snapshot) {
|
|
|
9
9
|
rowIndexById: new Map(window.map((row, index) => [row.rowId, index])),
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
// row.delta
|
|
13
|
-
// 本函数按协议语义实现为:路径不存在/行不存在时 no-op
|
|
12
|
+
// row.delta 只允许作用于流式态行(§4.4.4 不变量,服务端保证)。
|
|
13
|
+
// 本函数按协议语义实现为:路径不存在/行不存在时 no-op(§4.3:patch 命中未加载行 = no-op)。
|
|
14
14
|
function appendToRow(row, path, append) {
|
|
15
15
|
switch (path) {
|
|
16
16
|
case "text":
|
|
@@ -53,7 +53,7 @@ export function applyConversationDelta(snapshot, delta) {
|
|
|
53
53
|
};
|
|
54
54
|
case "row.upserted": {
|
|
55
55
|
const index = snapshot.rows.window.findIndex((row) => row.rowId === delta.row.rowId);
|
|
56
|
-
//
|
|
56
|
+
// §4.3:未加载 rowId = no-op(被逐出的行只能经 rows/range 取回)。
|
|
57
57
|
if (index === -1)
|
|
58
58
|
return snapshot;
|
|
59
59
|
const window = [...snapshot.rows.window];
|
|
@@ -91,6 +91,12 @@ export function applyConversationDelta(snapshot, delta) {
|
|
|
91
91
|
case "state.updated":
|
|
92
92
|
// 键级整体替换:patch 中在场的键覆盖,绝不深合并。
|
|
93
93
|
return { ...snapshot, ...delta.patch };
|
|
94
|
+
case "pluginUi.resourceUpdated":
|
|
95
|
+
case "pluginUi.resourceListChanged":
|
|
96
|
+
case "pluginUi.instanceClosed":
|
|
97
|
+
case "pluginUi.appToolCall":
|
|
98
|
+
// live-only 通知 / 信箱投递:不改变快照,由 renderer 另行派发。
|
|
99
|
+
return snapshot;
|
|
94
100
|
// workflowRuns 是唯一开了增量口子的状态键(delta.ts 的注释讲了为什么)。规则整份住在
|
|
95
101
|
// workflow-runs-delta.ts:两个 twin 都只转调它,两边的语义因此没有走散的余地。
|
|
96
102
|
case "workflowRun.updated":
|
|
@@ -166,6 +172,9 @@ export function applyConversationDeltaMutable(accumulator, delta) {
|
|
|
166
172
|
// 与不可变实现相同:patch 在场键整体替换,不能深合并。
|
|
167
173
|
Object.assign(snapshot, delta.patch);
|
|
168
174
|
return;
|
|
175
|
+
case "pluginUi.resourceUpdated":
|
|
176
|
+
case "pluginUi.resourceListChanged":
|
|
177
|
+
return;
|
|
169
178
|
// 与不可变实现调同一个纯函数:workflowRuns 是状态键不是 rows 窗口,没有「原地追加」可优化,
|
|
170
179
|
// 而 accumulator.snapshot 本来就是候选快照自己的对象,赋一个新容器不会碰到已发布的快照。
|
|
171
180
|
case "workflowRun.updated":
|
|
@@ -5,6 +5,11 @@ export declare const attachmentRefSchema: z.ZodObject<{
|
|
|
5
5
|
fileName: z.ZodString;
|
|
6
6
|
mime: z.ZodString;
|
|
7
7
|
bytes: z.ZodNumber;
|
|
8
|
+
sourceKind: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
"clipboard-text": "clipboard-text";
|
|
10
|
+
"topic-history": "topic-history";
|
|
11
|
+
}>>;
|
|
12
|
+
messageCount: z.ZodOptional<z.ZodNumber>;
|
|
8
13
|
previewRef: z.ZodOptional<z.ZodString>;
|
|
9
14
|
}, z.core.$strict>;
|
|
10
15
|
export type AttachmentRef = z.infer<typeof attachmentRefSchema>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { attachmentSourceKindSchema } from "../attachment-source.js";
|
|
2
3
|
/** 仅承载已提交内容引用与展示元信息;内容本体不进入 command/topic frame。 */
|
|
3
4
|
export const attachmentRefSchema = z
|
|
4
5
|
.object({
|
|
@@ -6,6 +7,8 @@ export const attachmentRefSchema = z
|
|
|
6
7
|
fileName: z.string(),
|
|
7
8
|
mime: z.string(),
|
|
8
9
|
bytes: z.number(),
|
|
10
|
+
sourceKind: attachmentSourceKindSchema.optional(),
|
|
11
|
+
messageCount: z.number().int().nonnegative().optional(),
|
|
9
12
|
previewRef: z.string().optional(),
|
|
10
13
|
})
|
|
11
14
|
.strict();
|
|
@@ -3,7 +3,9 @@ import { type WorkflowRunWireBounds } from "./workflow-runs-delta.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* 对一个 flush 窗口内的 delta 序列做语义保持合并。
|
|
5
5
|
* 输入输出均按权威日志序;纯函数,不修改入参。
|
|
6
|
-
*
|
|
6
|
+
*
|
|
7
|
+
* `bounds` 只为测试留的注入口(默认就是真界):规则 6 拒绝合并那一支在 1024 的界下要几千条
|
|
8
|
+
* 事件才走得到,而它恰好是**合并等于顺序施加**这条定律最容易破的地方。
|
|
7
9
|
*/
|
|
8
10
|
export declare function coalesceConversationDeltas(deltas: readonly ConversationDelta[], bounds?: WorkflowRunWireBounds): ConversationDelta[];
|
|
9
11
|
/**
|
|
@@ -56,7 +56,9 @@ function mergeWorkflowRunUpdate(result, delta, bounds) {
|
|
|
56
56
|
/**
|
|
57
57
|
* 对一个 flush 窗口内的 delta 序列做语义保持合并。
|
|
58
58
|
* 输入输出均按权威日志序;纯函数,不修改入参。
|
|
59
|
-
*
|
|
59
|
+
*
|
|
60
|
+
* `bounds` 只为测试留的注入口(默认就是真界):规则 6 拒绝合并那一支在 1024 的界下要几千条
|
|
61
|
+
* 事件才走得到,而它恰好是**合并等于顺序施加**这条定律最容易破的地方。
|
|
60
62
|
*/
|
|
61
63
|
export function coalesceConversationDeltas(deltas, bounds) {
|
|
62
64
|
const result = [];
|