@dipoleml/dcode-cli 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY-NOTICES.md +1081 -12
- package/dist/dcode.cjs +59253 -45604
- package/dist/packages/browser-use-plugin/README.md +12 -12
- package/dist/packages/browser-use-plugin/docs/api.json +1 -1
- package/dist/packages/browser-use-plugin/docs/overview.md +5 -4
- package/dist/packages/browser-use-plugin/docs/workflow.md +1 -1
- package/dist/packages/browser-use-plugin/scripts/build.mjs +1 -0
- package/dist/packages/browser-use-plugin/skills/control-browser/SKILL.md +10 -7
- package/dist/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
- package/dist/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
- package/dist/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
- package/dist/packages/node-repl-host/.dcode-plugin/plugin.json +1 -1
- package/dist/packages/node-repl-host/dist/mcp/server.js +9 -14
- package/dist/packages/node-repl-host/scripts/build.mjs +1 -0
- package/dist/provider/dcode-builtin.json +6612 -202
- package/node_modules/@dcode/contracts/dist/compact/index.d.ts +7 -7
- package/node_modules/@dcode/contracts/dist/config/index.d.ts +1 -1
- package/node_modules/@dcode/contracts/dist/events/event-reducer.js +1 -0
- package/node_modules/@dcode/contracts/dist/events/in-memory-session-event-store.js +3 -2
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.d.ts +8 -0
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.js +18 -0
- package/node_modules/@dcode/contracts/dist/events/session.events.d.ts +94 -16
- package/node_modules/@dcode/contracts/dist/events/session.events.js +10 -0
- package/node_modules/@dcode/contracts/dist/hooks/index.d.ts +134 -134
- package/node_modules/@dcode/contracts/dist/hooks/workspace-hook-trust.d.ts +14 -14
- package/node_modules/@dcode/contracts/dist/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/index.js +2 -0
- package/node_modules/@dcode/contracts/dist/interfaces/browser-control.port.d.ts +22 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.d.ts +92 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.js +9 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.js +7 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-workspace.port.js +8 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.d.ts +119 -18
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.js +13 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.d.ts +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.d.ts +161 -1
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.js +17 -0
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.d.ts +15 -15
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.js +1 -1
- package/node_modules/@dcode/contracts/dist/interfaces/permission.port.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.d.ts +19 -0
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.d.ts +4 -2
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.js +5 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.d.ts +92 -3
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.js +4 -1
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.d.ts +25 -0
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/model/index.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/model/index.js +5 -0
- package/node_modules/@dcode/contracts/dist/model/invocation-context.d.ts +6 -1
- package/node_modules/@dcode/contracts/dist/plugins/index.d.ts +23 -0
- package/node_modules/@dcode/contracts/dist/plugins/index.js +2 -1
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.js +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/index.d.ts +5 -1
- package/node_modules/@dcode/contracts/dist/telemetry/index.js +12 -0
- package/node_modules/@dcode/contracts/dist/tools/agent.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.d.ts +39 -15
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.js +12 -6
- package/node_modules/@dcode/contracts/dist/tools/automation.d.ts +32 -32
- package/node_modules/@dcode/contracts/dist/tools/automation.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/bash.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/bash.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.d.ts +365 -66
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.js +92 -11
- package/node_modules/@dcode/contracts/dist/tools/edit.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.js +5 -1
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.d.ts +729 -0
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.js +102 -0
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.d.ts +136 -28
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.js +36 -0
- package/node_modules/@dcode/contracts/dist/tools/grep.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/grep.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/tools/index.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/list-saved-workflows.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/list-workflow-runs.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/node-repl.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/off-peak.d.ts +3 -3
- package/node_modules/@dcode/contracts/dist/tools/off-peak.js +2 -2
- package/node_modules/@dcode/contracts/dist/tools/performance.d.ts +22 -22
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.js +6 -4
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.d.ts +86 -13
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.js +37 -6
- package/node_modules/@dcode/contracts/dist/tools/read.d.ts +38 -38
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.d.ts +21 -10
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.js +22 -2
- package/node_modules/@dcode/contracts/dist/tools/saved-workflow.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/send-message.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/skill.js +1 -0
- package/node_modules/@dcode/contracts/dist/tools/task-output.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.d.ts +1228 -259
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.js +41 -0
- package/node_modules/@dcode/contracts/dist/tools/webfetch.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/workflow-observation-display.d.ts +20 -20
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.d.ts +55 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.js +86 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/write.d.ts +18 -18
- package/node_modules/@dcode/contracts/dist/workflow/index.d.ts +98 -98
- package/node_modules/@dcode/contracts/dist/workflow/script.d.ts +12 -12
- package/node_modules/@dcode/i18n/dist/index.js +2 -2
- package/node_modules/@dcode/i18n/dist/locale.d.ts +1 -1
- package/node_modules/@dcode/i18n/dist/locale.js +4 -4
- package/node_modules/@dcode/i18n/dist/locales/en-US.js +5 -5
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.d.ts +3 -0
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.js +354 -0
- package/node_modules/@dcode/model-option-map/package.json +1 -1
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.js +6 -0
- package/node_modules/@dcode/shared/dist/attachment-source.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/attachment-source.js +4 -0
- package/node_modules/@dcode/shared/dist/background-bash-output.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/bots.d.ts +763 -15
- package/node_modules/@dcode/shared/dist/bots.js +236 -2
- package/node_modules/@dcode/shared/dist/browser-use/command-metadata.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/browser-use/commands.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/browser-use/commands.js +3 -1
- package/node_modules/@dcode/shared/dist/browser-use/nodeReplBroker.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/browser-use/result.d.ts +6 -6
- package/node_modules/@dcode/shared/dist/channel-mention.d.ts +173 -0
- package/node_modules/@dcode/shared/dist/channel-mention.js +120 -0
- package/node_modules/@dcode/shared/dist/channels.d.ts +128 -1
- package/node_modules/@dcode/shared/dist/channels.js +66 -0
- package/node_modules/@dcode/shared/dist/clientConfig.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/clientConfig.js +18 -2
- package/node_modules/@dcode/shared/dist/cloudContent.d.ts +160 -0
- package/node_modules/@dcode/shared/dist/cloudContent.js +116 -0
- package/node_modules/@dcode/shared/dist/coding-plan-subscription.d.ts +59 -0
- package/node_modules/@dcode/shared/dist/conversation-message-projection-policy.js +2 -0
- package/node_modules/@dcode/shared/dist/conversation-share.d.ts +351 -47
- package/node_modules/@dcode/shared/dist/conversation-share.js +8 -6
- package/node_modules/@dcode/shared/dist/conversationSelection.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/conversationSelection.js +30 -0
- package/node_modules/@dcode/shared/dist/database-startup.d.ts +5 -5
- package/node_modules/@dcode/shared/dist/dcode-agent-model-state.js +14 -6
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.d.ts +16 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.js +17 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-runtime.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.d.ts +1733 -318
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.js +555 -24
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.js +10 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.d.ts +30 -20
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/apply.js +12 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.d.ts +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.d.ts +359 -28
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.js +67 -45
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/controller.d.ts +170 -65
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.d.ts +20 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.js +15 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.d.ts +34 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.js +45 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.d.ts +1453 -278
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.js +45 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.js +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.d.ts +173 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.js +29 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.d.ts +731 -125
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.js +23 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.d.ts +30 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.js +35 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index.d.ts +40 -25
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.d.ts +1444 -216
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/telemetry.d.ts +62 -58
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.d.ts +185 -50
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.js +31 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.d.ts +7145 -1002
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.js +18 -5
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-assembler.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-fault.js +4 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-reassembly.js +5 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.d.ts +29 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.js +64 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.js +23 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-observation-display.d.ts +14 -14
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.d.ts +52 -8
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.js +22 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.js +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.d.ts +21 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.js +44 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.js +3 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-caps.js +5 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.d.ts +26 -19
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.js +40 -32
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.js +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.js +44 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.js +17 -10
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.d.ts +33 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.js +202 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-phases.js +10 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.js +29 -22
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-started.js +5 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-tables.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-unlisted.js +6 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.d.ts +125 -40
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.js +101 -26
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-workspace.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workspace-hook-review.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.js +49 -0
- package/node_modules/@dcode/shared/dist/dcode-slash-command-help.js +4 -4
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.js +13 -1
- package/node_modules/@dcode/shared/dist/dcode-task-types-core.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-task-types.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.d.ts +20 -1
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +98 -17
- package/node_modules/@dcode/shared/dist/desktopMenu.js +48 -48
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.d.ts +35 -6
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.js +45 -6
- package/node_modules/@dcode/shared/dist/env.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/env.js +9 -9
- package/node_modules/@dcode/shared/dist/errors.d.ts +24 -0
- package/node_modules/@dcode/shared/dist/errors.js +54 -0
- package/node_modules/@dcode/shared/dist/execution-state.d.ts +4 -2
- package/node_modules/@dcode/shared/dist/execution-state.js +1 -1
- package/node_modules/@dcode/shared/dist/feedback.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/gen-ui/contract.d.ts +140 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.js +36 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.js +196 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.js +75 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.js +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.js +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.d.ts +202 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.js +126 -0
- package/node_modules/@dcode/shared/dist/helpAppConfig.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/helpAppConfig.js +2 -2
- package/node_modules/@dcode/shared/dist/highspeed.d.ts +181 -0
- package/node_modules/@dcode/shared/dist/highspeed.js +112 -0
- package/node_modules/@dcode/shared/dist/index.d.ts +27 -5
- package/node_modules/@dcode/shared/dist/index.js +24 -2
- package/node_modules/@dcode/shared/dist/localTtft.d.ts +27 -27
- package/node_modules/@dcode/shared/dist/marketingTouch.d.ts +930 -0
- package/node_modules/@dcode/shared/dist/marketingTouch.js +170 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.d.ts +83 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.js +124 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.d.ts +241 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.js +42 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.js +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.js +64 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.d.ts +47 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.js +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.js +11 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.d.ts +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.js +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.js +73 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.d.ts +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.js +107 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.js +55 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.d.ts +78 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.js +65 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.d.ts +39 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.js +199 -0
- package/node_modules/@dcode/shared/dist/mcp.d.ts +6 -2
- package/node_modules/@dcode/shared/dist/memory.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/memory.js +2 -0
- package/node_modules/@dcode/shared/dist/model-execution.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/model-execution.js +38 -0
- package/node_modules/@dcode/shared/dist/networkCapture.d.ts +49 -0
- package/node_modules/@dcode/shared/dist/networkCapture.js +41 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.d.ts +6 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.js +16 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.js +30 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.js +96 -0
- package/node_modules/@dcode/shared/dist/node/officialPluginCache.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node/subagentMarkdownMigration.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node.js +2 -0
- package/node_modules/@dcode/shared/dist/output-style.d.ts +17 -0
- package/node_modules/@dcode/shared/dist/output-style.js +2 -0
- package/node_modules/@dcode/shared/dist/platform.d.ts +149 -1
- package/node_modules/@dcode/shared/dist/platform.js +2 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.d.ts +61 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.js +2 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.js +20 -14
- package/node_modules/@dcode/shared/dist/project-access-token-client.d.ts +42 -0
- package/node_modules/@dcode/shared/dist/project-access-token-client.js +260 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.js +9 -0
- package/node_modules/@dcode/shared/dist/project-access-token.d.ts +45 -0
- package/node_modules/@dcode/shared/dist/project-access-token.js +164 -0
- package/node_modules/@dcode/shared/dist/protocol.d.ts +41 -4
- package/node_modules/@dcode/shared/dist/protocol.js +1 -1
- package/node_modules/@dcode/shared/dist/provider-provisioning.d.ts +26 -2
- package/node_modules/@dcode/shared/dist/provider-provisioning.js +19 -3
- package/node_modules/@dcode/shared/dist/providers.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/providers.js +1 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.js +35 -1
- package/node_modules/@dcode/shared/dist/remoteAppConfig.js +1 -1
- package/node_modules/@dcode/shared/dist/remoteEnvironmentKey.js +19 -0
- package/node_modules/@dcode/shared/dist/remoteTarget.d.ts +14 -1
- package/node_modules/@dcode/shared/dist/remoteTarget.js +4 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.d.ts +27 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.js +43 -0
- package/node_modules/@dcode/shared/dist/rendererActionTrace.d.ts +35 -35
- package/node_modules/@dcode/shared/dist/request-security-edition/index.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/index.js +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.js +5 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.d.ts +19 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.js +29 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.js +80 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.d.ts +37 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.js +50 -0
- package/node_modules/@dcode/shared/dist/sessionCreateTelemetry.d.ts +3 -3
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.js +212 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.js +200 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.d.ts +82 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.js +28 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.d.ts +135 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.js +39 -0
- package/node_modules/@dcode/shared/dist/subagents-types.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/task-realtime-core.d.ts +57 -24
- package/node_modules/@dcode/shared/dist/task-realtime-core.js +8 -2
- package/node_modules/@dcode/shared/dist/test-ids-workflow.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/test-ids-workflow.js +5 -0
- package/node_modules/@dcode/shared/dist/test-ids.d.ts +25 -0
- package/node_modules/@dcode/shared/dist/test-ids.js +25 -0
- package/node_modules/@dcode/shared/dist/tool-identity.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/tool-identity.js +4 -0
- package/node_modules/@dcode/shared/dist/tool-plan-adapter.js +14 -1
- package/node_modules/@dcode/shared/dist/usage-stats.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/validation.d.ts +1461 -85
- package/node_modules/@dcode/shared/dist/validation.js +423 -14
- package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +71 -15
- package/node_modules/@dcode/shared/dist/validationAppSettings.js +74 -12
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.js +40 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.d.ts +183 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.js +562 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.d.ts +645 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.js +174 -0
- package/node_modules/@dcode/shared/package.json +5 -2
- package/node_modules/@dcode/tui/dist/app-approval-panel.js +3 -2
- package/node_modules/@dcode/tui/dist/app-approval.d.ts +3 -1
- package/node_modules/@dcode/tui/dist/app-approval.js +9 -5
- package/node_modules/@dcode/tui/dist/app-compact-timeline.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-compact-timeline.js +5 -2
- package/node_modules/@dcode/tui/dist/app-empty-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-empty-transcript.js +1 -1
- package/node_modules/@dcode/tui/dist/app-file-mentions.d.ts +2 -0
- package/node_modules/@dcode/tui/dist/app-file-mentions.js +2 -2
- package/node_modules/@dcode/tui/dist/app-input-pane.d.ts +38 -0
- package/node_modules/@dcode/tui/dist/app-input-pane.js +19 -19
- package/node_modules/@dcode/tui/dist/app-input-status.d.ts +17 -0
- package/node_modules/@dcode/tui/dist/app-input-status.js +4 -4
- package/node_modules/@dcode/tui/dist/app-input.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-input.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.d.ts +2 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-markdown.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode-command.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-mode-command.js +4 -4
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.d.ts +5 -0
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.d.ts +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.js +1 -1
- package/node_modules/@dcode/tui/dist/app-model-ref.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-model-ref.js +1 -1
- package/node_modules/@dcode/tui/dist/app-motion.d.ts +13 -0
- package/node_modules/@dcode/tui/dist/app-motion.js +17 -7
- package/node_modules/@dcode/tui/dist/app-session-event-handler.d.ts +33 -0
- package/node_modules/@dcode/tui/dist/app-session-event-handler.js +4 -4
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.js +3 -3
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.js +7 -2
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.d.ts +10 -0
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.js +4 -4
- package/node_modules/@dcode/tui/dist/app-submit.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-submit.js +1 -1
- package/node_modules/@dcode/tui/dist/app-thought-components.d.ts +7 -0
- package/node_modules/@dcode/tui/dist/app-thought-components.js +2 -2
- package/node_modules/@dcode/tui/dist/app-tool-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-tool-transcript.js +3 -0
- package/node_modules/@dcode/tui/dist/app-view.d.ts +27 -0
- package/node_modules/@dcode/tui/dist/app-view.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-card.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.js +4 -4
- package/node_modules/@dcode/tui/dist/index.js +5118 -2579
- package/node_modules/@dcode/tui/dist/tui.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/tui.js +1 -1
- package/node_modules/@dcode/tui/dist/types.d.ts +1 -1
- package/node_modules/oniguruma-parser/LICENSE +1 -1
- package/node_modules/oniguruma-parser/README.md +15 -61
- package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +4 -4
- package/node_modules/oniguruma-parser/dist/parser/parse.js +1 -1
- package/node_modules/oniguruma-parser/dist/traverser/traverse.js +1 -1
- package/node_modules/oniguruma-parser/package.json +5 -5
- package/node_modules/oniguruma-to-es/dist/cjs/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/cjs/index.js +121 -120
- package/node_modules/oniguruma-to-es/dist/cjs/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/cjs/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/cjs/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/index.js +1 -3
- package/node_modules/oniguruma-to-es/dist/esm/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/esm/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/esm/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/index.min.js +6 -6
- package/node_modules/oniguruma-to-es/package.json +5 -5
- package/package.json +5 -5
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import { conversationQuotesSchema } from "../conversationSelection.js";
|
|
2
|
+
import { botGroupInputSourceSchema } from "../bots.js";
|
|
1
3
|
// ConversationRow:行类型自包含。
|
|
2
4
|
// 三条结构性规则:row 自包含(渲染任一行不需看别的行);
|
|
3
5
|
// 结构变化换整行(row.upserted),文本增长用 append(row.delta);turn 是 row 上的标签不是容器。
|
|
4
6
|
import { z } from "zod";
|
|
7
|
+
import { highspeedMessageMetaSchema } from "../highspeed.js";
|
|
5
8
|
import { executionOutputPreviewSchema } from "../execution-output-preview.js";
|
|
6
9
|
import { timestampSchema } from "./core.js";
|
|
7
|
-
import {
|
|
10
|
+
import { conversationInputSourceSchema } from "./input-intent.js";
|
|
11
|
+
import { backgroundResultOriginMetaSchema, workflowLaunchMetaSchema, } from "./workflow-row-meta.js";
|
|
12
|
+
import { attachmentRefSchema } from "./attachment-ref.js";
|
|
8
13
|
// RowBase。rowId:session 内单调、永不复用、事件日志的确定性纯函数。
|
|
9
14
|
const rowBaseFields = {
|
|
10
15
|
rowId: z.number(),
|
|
@@ -63,6 +68,12 @@ export const turnHeaderRowSchema = z.object({
|
|
|
63
68
|
endedAt: timestampSchema.optional(),
|
|
64
69
|
// 权威工时:排除权限等待/用户输入等待/verifier 等待。
|
|
65
70
|
activeMs: z.number().optional(),
|
|
71
|
+
// 当前 product turn 内主链路 ModelComplete 的 output usage 累计;optional 兼容旧快照。
|
|
72
|
+
outputTokens: z.number().int().nonnegative().optional(),
|
|
73
|
+
// CLI 从运行时事件聚合的真实耗时;optional 兼容旧快照及普通 turn。
|
|
74
|
+
modelDurationMs: z.number().nonnegative().optional(),
|
|
75
|
+
toolDurationMs: z.number().nonnegative().optional(),
|
|
76
|
+
otherDurationMs: z.number().nonnegative().optional(),
|
|
66
77
|
// guide 不切 product turn,但每条 accepted guide 都开启独立视觉工作段。
|
|
67
78
|
// 普通 turn 缺省以保持旧 snapshot 兼容;一旦出现 guide,CLI 负责完整投影首段与后续段。
|
|
68
79
|
workSegments: z.array(turnWorkSegmentSchema).optional(),
|
|
@@ -82,6 +93,9 @@ export const turnHeaderRowSchema = z.object({
|
|
|
82
93
|
export const userInputRowSchema = z.object({
|
|
83
94
|
...rowBaseFields,
|
|
84
95
|
kind: z.literal("userInput"),
|
|
96
|
+
inputOrigin: z.enum(["desktop", "mobile"]).optional(),
|
|
97
|
+
botGroupSource: botGroupInputSourceSchema.optional(),
|
|
98
|
+
conversationQuotes: conversationQuotesSchema.optional(),
|
|
85
99
|
text: z.string(),
|
|
86
100
|
// text 从此下标起是引擎附加文本(dwf ask 尾注 /
|
|
87
101
|
// nudge),GUI 把它折进默认收起的披露;0 = 整条都是;缺席 = 无(老转录、非工作流会话)。
|
|
@@ -117,15 +131,12 @@ export const userInputRowSchema = z.object({
|
|
|
117
131
|
rootSourceCommandId: z.string().optional(),
|
|
118
132
|
// 提交端身份由 CLI admission 写入;旧 transcript 可缺省。
|
|
119
133
|
clientId: z.string().optional(),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
previewRef: z.string().optional(),
|
|
127
|
-
}))
|
|
128
|
-
.optional(),
|
|
134
|
+
// accelerated 历史展示的持久事实;缺省兼容普通消息和旧 snapshot。
|
|
135
|
+
highspeed: highspeedMessageMetaSchema.optional(),
|
|
136
|
+
// 重复定义曾在出队后的 row 校验中剥掉来源,导致历史附件丢失预览入口;与入站引用共用 schema。
|
|
137
|
+
attachments: z.array(attachmentRefSchema).optional(),
|
|
138
|
+
// 插件 UI 代发的消息带来源;卡片显示"来自插件 X"。旧 transcript 可缺省。
|
|
139
|
+
source: conversationInputSourceSchema.optional(),
|
|
129
140
|
});
|
|
130
141
|
// assistantText / reasoning。
|
|
131
142
|
// 不变量:追加只能进 state="streaming" 的行;普通新 response 必然新 rowId。唯一例外是
|
|
@@ -174,9 +185,10 @@ export const toolCallRowSchema = z.object({
|
|
|
174
185
|
// display 解析失败只丢这张卡的载荷,不拒整条 row(理由见 toolDisplay.ts 的 toolOutputSchema
|
|
175
186
|
// 注释:装饰载荷不得决定 row/帧/订阅的生死)。
|
|
176
187
|
display: toolCallDisplaySchema.optional().catch(undefined),
|
|
188
|
+
// (2026-09-12):原 widgetState / widgetStateVisibility 已删除,插件 UI 界面状态不再进 row。
|
|
177
189
|
// status=error 时必带。
|
|
178
190
|
error: z.object({ code: z.string(), message: z.string() }).optional(),
|
|
179
|
-
//
|
|
191
|
+
// 运行中出现(ToolCallProgress 事件),终态清除。
|
|
180
192
|
progress: toolProgressSchema.optional(),
|
|
181
193
|
// continuous/replayable 共用的有界 Bash 内容,终态或后台移交时清除。
|
|
182
194
|
outputPreview: executionOutputPreviewSchema.optional(),
|
package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { BackgroundWorkSummary } from "./snapshot.js";
|
|
3
|
-
import { type WorkflowRunsState } from "./workflow-runs.js";
|
|
3
|
+
import { type WorkflowRunState, type WorkflowRunsState } from "./workflow-runs.js";
|
|
4
4
|
/** 每会话最多下发的 run 数:在跑的按启动序在前,其后是最近结束的。 */
|
|
5
5
|
export declare const SESSION_WORKFLOW_ACTIVITY_MAX_RUNS = 4;
|
|
6
6
|
/**
|
|
@@ -13,21 +13,25 @@ export declare const SESSION_WORKFLOW_ACTIVITY_MAX_RUNS = 4;
|
|
|
13
13
|
* 改成别的:失败词留给控制流。
|
|
14
14
|
*/
|
|
15
15
|
export declare const sessionWorkflowPhaseStatusSchema: z.ZodEnum<{
|
|
16
|
+
failed: "failed";
|
|
16
17
|
pending: "pending";
|
|
17
18
|
running: "running";
|
|
18
|
-
failed: "failed";
|
|
19
19
|
done: "done";
|
|
20
20
|
}>;
|
|
21
21
|
export type SessionWorkflowPhaseStatus = z.infer<typeof sessionWorkflowPhaseStatusSchema>;
|
|
22
22
|
export declare const sessionWorkflowPhaseSummarySchema: z.ZodObject<{
|
|
23
23
|
name: z.ZodString;
|
|
24
24
|
status: z.ZodEnum<{
|
|
25
|
+
failed: "failed";
|
|
25
26
|
pending: "pending";
|
|
26
27
|
running: "running";
|
|
27
|
-
failed: "failed";
|
|
28
28
|
done: "done";
|
|
29
29
|
}>;
|
|
30
30
|
alongside: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
31
|
+
hole: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
waiting: "waiting";
|
|
33
|
+
open: "open";
|
|
34
|
+
}>>;
|
|
31
35
|
}, z.core.$strip>;
|
|
32
36
|
export type SessionWorkflowPhaseSummary = z.infer<typeof sessionWorkflowPhaseSummarySchema>;
|
|
33
37
|
export declare const sessionWorkflowRunSummarySchema: z.ZodObject<{
|
|
@@ -35,32 +39,37 @@ export declare const sessionWorkflowRunSummarySchema: z.ZodObject<{
|
|
|
35
39
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
36
40
|
name: z.ZodOptional<z.ZodString>;
|
|
37
41
|
status: z.ZodEnum<{
|
|
42
|
+
completed: "completed";
|
|
38
43
|
pending: "pending";
|
|
39
44
|
running: "running";
|
|
40
|
-
completed: "completed";
|
|
41
|
-
stopped: "stopped";
|
|
42
45
|
errored: "errored";
|
|
46
|
+
stopped: "stopped";
|
|
43
47
|
}>;
|
|
44
48
|
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
45
|
-
interrupted: "interrupted";
|
|
46
49
|
user: "user";
|
|
47
50
|
model: "model";
|
|
48
51
|
provider: "provider";
|
|
52
|
+
interrupted: "interrupted";
|
|
49
53
|
superseded: "superseded";
|
|
50
54
|
}>>;
|
|
51
55
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
52
56
|
phases: z.ZodArray<z.ZodObject<{
|
|
53
57
|
name: z.ZodString;
|
|
54
58
|
status: z.ZodEnum<{
|
|
59
|
+
failed: "failed";
|
|
55
60
|
pending: "pending";
|
|
56
61
|
running: "running";
|
|
57
|
-
failed: "failed";
|
|
58
62
|
done: "done";
|
|
59
63
|
}>;
|
|
60
64
|
alongside: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
65
|
+
hole: z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
waiting: "waiting";
|
|
67
|
+
open: "open";
|
|
68
|
+
}>>;
|
|
61
69
|
}, z.core.$strip>>;
|
|
62
70
|
currentPhase: z.ZodOptional<z.ZodString>;
|
|
63
71
|
agentsWorking: z.ZodNumber;
|
|
72
|
+
waitingHole: z.ZodOptional<z.ZodString>;
|
|
64
73
|
}, z.core.$strip>;
|
|
65
74
|
export type SessionWorkflowRunSummary = z.infer<typeof sessionWorkflowRunSummarySchema>;
|
|
66
75
|
export declare const sessionWorkflowActivitySchema: z.ZodObject<{
|
|
@@ -69,36 +78,46 @@ export declare const sessionWorkflowActivitySchema: z.ZodObject<{
|
|
|
69
78
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
70
79
|
name: z.ZodOptional<z.ZodString>;
|
|
71
80
|
status: z.ZodEnum<{
|
|
81
|
+
completed: "completed";
|
|
72
82
|
pending: "pending";
|
|
73
83
|
running: "running";
|
|
74
|
-
completed: "completed";
|
|
75
|
-
stopped: "stopped";
|
|
76
84
|
errored: "errored";
|
|
85
|
+
stopped: "stopped";
|
|
77
86
|
}>;
|
|
78
87
|
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
79
|
-
interrupted: "interrupted";
|
|
80
88
|
user: "user";
|
|
81
89
|
model: "model";
|
|
82
90
|
provider: "provider";
|
|
91
|
+
interrupted: "interrupted";
|
|
83
92
|
superseded: "superseded";
|
|
84
93
|
}>>;
|
|
85
94
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
86
95
|
phases: z.ZodArray<z.ZodObject<{
|
|
87
96
|
name: z.ZodString;
|
|
88
97
|
status: z.ZodEnum<{
|
|
98
|
+
failed: "failed";
|
|
89
99
|
pending: "pending";
|
|
90
100
|
running: "running";
|
|
91
|
-
failed: "failed";
|
|
92
101
|
done: "done";
|
|
93
102
|
}>;
|
|
94
103
|
alongside: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
104
|
+
hole: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
waiting: "waiting";
|
|
106
|
+
open: "open";
|
|
107
|
+
}>>;
|
|
95
108
|
}, z.core.$strip>>;
|
|
96
109
|
currentPhase: z.ZodOptional<z.ZodString>;
|
|
97
110
|
agentsWorking: z.ZodNumber;
|
|
111
|
+
waitingHole: z.ZodOptional<z.ZodString>;
|
|
98
112
|
}, z.core.$strip>>;
|
|
99
113
|
}, z.core.$strip>;
|
|
100
114
|
export type SessionWorkflowActivity = z.infer<typeof sessionWorkflowActivitySchema>;
|
|
101
115
|
export declare function isSessionWorkflowRunLive(status: SessionWorkflowRunSummary["status"]): boolean;
|
|
116
|
+
/**
|
|
117
|
+
* 站点表的唯一推导。侧栏运行行(经 `summarizeRun`)与任务岛的 run 行都读它,所以两处的灯
|
|
118
|
+
* 永远对同一件事说同一句话;任务岛不另写第二套。
|
|
119
|
+
*/
|
|
120
|
+
export declare function deriveSessionWorkflowPhases(run: WorkflowRunState): SessionWorkflowPhaseSummary[];
|
|
102
121
|
/**
|
|
103
122
|
* 从同一 snapshot 的 `workflowRuns` + `backgroundWorks` 派生会话的工作流运行摘要。
|
|
104
123
|
* 在跑的 run(pending / running)按 `runs[]` 序(= 启动序)在前;其后是已结束的,按后台工作的
|
package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.js
CHANGED
|
@@ -29,6 +29,12 @@ export const sessionWorkflowPhaseSummarySchema = z.object({
|
|
|
29
29
|
* 退化路(已进入的 phase)是按进入序拼出来的,没有并行可言,所以那时整个键缺席。
|
|
30
30
|
*/
|
|
31
31
|
alongside: z.array(z.number().int().nonnegative()).max(WORKFLOW_RUNS_LIMITS.maxPhases).optional(),
|
|
32
|
+
/**
|
|
33
|
+
* 这一站是一处**还开着的留白**(docs/dynamic-workflow/presentation.md「Holes on the timeline」):
|
|
34
|
+
* `open` = 还没走到,`waiting` = run 停在这里等主代理补全。侧栏据此把灯画成虚线(等待时警示色)。
|
|
35
|
+
* 补全之后它就是一个普通的站,键缺席。只有声明表那条路有这个事实(`run.phaseHoles`)。
|
|
36
|
+
*/
|
|
37
|
+
hole: z.enum(["open", "waiting"]).optional(),
|
|
32
38
|
});
|
|
33
39
|
export const sessionWorkflowRunSummarySchema = z.object({
|
|
34
40
|
runId: z.string().min(1),
|
|
@@ -48,6 +54,12 @@ export const sessionWorkflowRunSummarySchema = z.object({
|
|
|
48
54
|
currentPhase: z.string().min(1).max(WORKFLOW_RUNS_LIMITS.maxPhaseNameLength).optional(),
|
|
49
55
|
/** status === "running" 的子代理数(tooltip 的「{n} agents working」)。 */
|
|
50
56
|
agentsWorking: z.number().int().nonnegative(),
|
|
57
|
+
/**
|
|
58
|
+
* 正在等主代理补全的留白名(`run.holes` 里第一条 waiting 的 `name`):侧栏运行行写
|
|
59
|
+
* 「{name} · 等待补全」(docs/dynamic-workflow/presentation.md「Holes on the timeline」的「The sidebar」)。
|
|
60
|
+
* 没有停驻的留白时缺席。
|
|
61
|
+
*/
|
|
62
|
+
waitingHole: z.string().min(1).max(WORKFLOW_RUNS_LIMITS.maxPhaseNameLength).optional(),
|
|
51
63
|
});
|
|
52
64
|
export const sessionWorkflowActivitySchema = z.object({
|
|
53
65
|
runs: z.array(sessionWorkflowRunSummarySchema).max(SESSION_WORKFLOW_ACTIVITY_MAX_RUNS),
|
|
@@ -75,16 +87,24 @@ function phaseNameMatches(stationName, stamp) {
|
|
|
75
87
|
return (stationName === stamp ||
|
|
76
88
|
(stationName.length >= WORKFLOW_RUNS_LIMITS.maxPhaseNameLength && stamp.startsWith(stationName)));
|
|
77
89
|
}
|
|
78
|
-
|
|
90
|
+
/**
|
|
91
|
+
* 站点表的唯一推导。侧栏运行行(经 `summarizeRun`)与任务岛的 run 行都读它,所以两处的灯
|
|
92
|
+
* 永远对同一件事说同一句话;任务岛不另写第二套。
|
|
93
|
+
*/
|
|
94
|
+
export function deriveSessionWorkflowPhases(run) {
|
|
79
95
|
const entered = new Set((run.phases ?? []).map((phase) => phase.name));
|
|
80
96
|
const current = run.currentPhase;
|
|
81
97
|
let names;
|
|
82
98
|
// 「同时在跑」的下标说的是**声明表**里的位置,所以只有走声明表这条路时它才有意义;退化路
|
|
83
99
|
// (已进入的 phase + 当前 phase)是另一个下标空间,那时整张表不带。
|
|
84
100
|
let alongside;
|
|
101
|
+
// 还开着的留白(声明表的下标);等待中的按名字从 `run.holes` 认——留白名按规则 9012 唯一。
|
|
102
|
+
let holeIndexes = new Set();
|
|
103
|
+
const waitingNames = new Set((run.holes ?? []).filter((hole) => hole.state === "waiting").map((hole) => hole.name));
|
|
85
104
|
if (run.phaseNames !== undefined && run.phaseNames.length > 0) {
|
|
86
105
|
names = run.phaseNames;
|
|
87
106
|
alongside = run.phaseAlongside;
|
|
107
|
+
holeIndexes = new Set(run.phaseHoles ?? []);
|
|
88
108
|
}
|
|
89
109
|
else {
|
|
90
110
|
names = (run.phases ?? []).map((phase) => phase.name);
|
|
@@ -119,11 +139,22 @@ function derivePhases(run) {
|
|
|
119
139
|
}
|
|
120
140
|
// 裁表之后下标空间跟着变窄:指向被裁掉的站的引用一起丢掉,剩下空的就不建键。
|
|
121
141
|
const beside = (alongside?.[index] ?? []).filter((other) => Number.isInteger(other) && other >= 0 && other < emitted && other !== index);
|
|
122
|
-
|
|
142
|
+
// 留白站:等待中的按 `run.holes` 认(名字唯一),其余下标表点名的是还没走到的留白。
|
|
143
|
+
const hole = waitingNames.has(name) ? "waiting" : holeIndexes.has(index) ? "open" : undefined;
|
|
144
|
+
return {
|
|
145
|
+
name,
|
|
146
|
+
status,
|
|
147
|
+
...(beside.length === 0 ? {} : { alongside: beside }),
|
|
148
|
+
...(hole === undefined ? {} : { hole }),
|
|
149
|
+
};
|
|
123
150
|
});
|
|
124
151
|
}
|
|
125
152
|
function summarizeRun(run, work) {
|
|
126
153
|
const name = work?.title.trim();
|
|
154
|
+
// 在跑的 run 才有「等补全」可言:终态 run 的 waiting 记录已被 reducer 剥掉,这里再守一道。
|
|
155
|
+
const waitingHole = isSessionWorkflowRunLive(run.status)
|
|
156
|
+
? (run.holes ?? []).find((hole) => hole.state === "waiting")?.name
|
|
157
|
+
: undefined;
|
|
127
158
|
return {
|
|
128
159
|
runId: run.runId,
|
|
129
160
|
...(run.toolCallId === undefined ? {} : { toolCallId: run.toolCallId }),
|
|
@@ -131,9 +162,10 @@ function summarizeRun(run, work) {
|
|
|
131
162
|
status: run.status,
|
|
132
163
|
...(run.stopReason === undefined ? {} : { stopReason: run.stopReason }),
|
|
133
164
|
...(work === undefined ? {} : { startedAt: work.startedAt }),
|
|
134
|
-
phases:
|
|
165
|
+
phases: deriveSessionWorkflowPhases(run),
|
|
135
166
|
...(run.currentPhase === undefined ? {} : { currentPhase: run.currentPhase }),
|
|
136
167
|
agentsWorking: run.actors.filter((actor) => actor.status === "running").length,
|
|
168
|
+
...(waitingHole === undefined ? {} : { waitingHole }),
|
|
137
169
|
};
|
|
138
170
|
}
|
|
139
171
|
/**
|
|
@@ -2,8 +2,8 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const sessionPendingInteractionSummarySchema: z.ZodObject<{
|
|
3
3
|
interactionId: z.ZodString;
|
|
4
4
|
kind: z.ZodEnum<{
|
|
5
|
-
userInput: "userInput";
|
|
6
5
|
permission: "permission";
|
|
6
|
+
userInput: "userInput";
|
|
7
7
|
}>;
|
|
8
8
|
toolName: z.ZodOptional<z.ZodString>;
|
|
9
9
|
autoResolution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -37,11 +37,11 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
37
37
|
generated: "generated";
|
|
38
38
|
}>>;
|
|
39
39
|
phase: z.ZodEnum<{
|
|
40
|
-
running: "running";
|
|
41
40
|
error: "error";
|
|
41
|
+
running: "running";
|
|
42
|
+
draft: "draft";
|
|
42
43
|
completedSuccess: "completedSuccess";
|
|
43
44
|
completedInterrupted: "completedInterrupted";
|
|
44
|
-
draft: "draft";
|
|
45
45
|
prewarming: "prewarming";
|
|
46
46
|
}>;
|
|
47
47
|
sessionEnded: z.ZodBoolean;
|
|
@@ -52,39 +52,44 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
52
52
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
53
53
|
name: z.ZodOptional<z.ZodString>;
|
|
54
54
|
status: z.ZodEnum<{
|
|
55
|
+
completed: "completed";
|
|
55
56
|
pending: "pending";
|
|
56
57
|
running: "running";
|
|
57
|
-
completed: "completed";
|
|
58
|
-
stopped: "stopped";
|
|
59
58
|
errored: "errored";
|
|
59
|
+
stopped: "stopped";
|
|
60
60
|
}>;
|
|
61
61
|
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
62
|
-
interrupted: "interrupted";
|
|
63
62
|
user: "user";
|
|
64
63
|
model: "model";
|
|
65
64
|
provider: "provider";
|
|
65
|
+
interrupted: "interrupted";
|
|
66
66
|
superseded: "superseded";
|
|
67
67
|
}>>;
|
|
68
68
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
69
69
|
phases: z.ZodArray<z.ZodObject<{
|
|
70
70
|
name: z.ZodString;
|
|
71
71
|
status: z.ZodEnum<{
|
|
72
|
+
failed: "failed";
|
|
72
73
|
pending: "pending";
|
|
73
74
|
running: "running";
|
|
74
|
-
failed: "failed";
|
|
75
75
|
done: "done";
|
|
76
76
|
}>;
|
|
77
77
|
alongside: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
78
|
+
hole: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
waiting: "waiting";
|
|
80
|
+
open: "open";
|
|
81
|
+
}>>;
|
|
78
82
|
}, z.core.$strip>>;
|
|
79
83
|
currentPhase: z.ZodOptional<z.ZodString>;
|
|
80
84
|
agentsWorking: z.ZodNumber;
|
|
85
|
+
waitingHole: z.ZodOptional<z.ZodString>;
|
|
81
86
|
}, z.core.$strip>>;
|
|
82
87
|
}, z.core.$strip>>;
|
|
83
88
|
pendingInteraction: z.ZodOptional<z.ZodObject<{
|
|
84
89
|
interactionId: z.ZodString;
|
|
85
90
|
kind: z.ZodEnum<{
|
|
86
|
-
userInput: "userInput";
|
|
87
91
|
permission: "permission";
|
|
92
|
+
userInput: "userInput";
|
|
88
93
|
}>;
|
|
89
94
|
toolName: z.ZodOptional<z.ZodString>;
|
|
90
95
|
autoResolution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -107,8 +112,8 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
107
112
|
}, z.core.$strip>>;
|
|
108
113
|
goalStatus: z.ZodOptional<z.ZodEnum<{
|
|
109
114
|
failed: "failed";
|
|
110
|
-
active: "active";
|
|
111
115
|
paused: "paused";
|
|
116
|
+
active: "active";
|
|
112
117
|
notSatisfied: "notSatisfied";
|
|
113
118
|
verifying: "verifying";
|
|
114
119
|
verified: "verified";
|
|
@@ -133,11 +138,11 @@ export declare const sessionsIndexSnapshotSchema: z.ZodObject<{
|
|
|
133
138
|
generated: "generated";
|
|
134
139
|
}>>;
|
|
135
140
|
phase: z.ZodEnum<{
|
|
136
|
-
running: "running";
|
|
137
141
|
error: "error";
|
|
142
|
+
running: "running";
|
|
143
|
+
draft: "draft";
|
|
138
144
|
completedSuccess: "completedSuccess";
|
|
139
145
|
completedInterrupted: "completedInterrupted";
|
|
140
|
-
draft: "draft";
|
|
141
146
|
prewarming: "prewarming";
|
|
142
147
|
}>;
|
|
143
148
|
sessionEnded: z.ZodBoolean;
|
|
@@ -148,39 +153,44 @@ export declare const sessionsIndexSnapshotSchema: z.ZodObject<{
|
|
|
148
153
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
149
154
|
name: z.ZodOptional<z.ZodString>;
|
|
150
155
|
status: z.ZodEnum<{
|
|
156
|
+
completed: "completed";
|
|
151
157
|
pending: "pending";
|
|
152
158
|
running: "running";
|
|
153
|
-
completed: "completed";
|
|
154
|
-
stopped: "stopped";
|
|
155
159
|
errored: "errored";
|
|
160
|
+
stopped: "stopped";
|
|
156
161
|
}>;
|
|
157
162
|
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
158
|
-
interrupted: "interrupted";
|
|
159
163
|
user: "user";
|
|
160
164
|
model: "model";
|
|
161
165
|
provider: "provider";
|
|
166
|
+
interrupted: "interrupted";
|
|
162
167
|
superseded: "superseded";
|
|
163
168
|
}>>;
|
|
164
169
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
165
170
|
phases: z.ZodArray<z.ZodObject<{
|
|
166
171
|
name: z.ZodString;
|
|
167
172
|
status: z.ZodEnum<{
|
|
173
|
+
failed: "failed";
|
|
168
174
|
pending: "pending";
|
|
169
175
|
running: "running";
|
|
170
|
-
failed: "failed";
|
|
171
176
|
done: "done";
|
|
172
177
|
}>;
|
|
173
178
|
alongside: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
179
|
+
hole: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
waiting: "waiting";
|
|
181
|
+
open: "open";
|
|
182
|
+
}>>;
|
|
174
183
|
}, z.core.$strip>>;
|
|
175
184
|
currentPhase: z.ZodOptional<z.ZodString>;
|
|
176
185
|
agentsWorking: z.ZodNumber;
|
|
186
|
+
waitingHole: z.ZodOptional<z.ZodString>;
|
|
177
187
|
}, z.core.$strip>>;
|
|
178
188
|
}, z.core.$strip>>;
|
|
179
189
|
pendingInteraction: z.ZodOptional<z.ZodObject<{
|
|
180
190
|
interactionId: z.ZodString;
|
|
181
191
|
kind: z.ZodEnum<{
|
|
182
|
-
userInput: "userInput";
|
|
183
192
|
permission: "permission";
|
|
193
|
+
userInput: "userInput";
|
|
184
194
|
}>;
|
|
185
195
|
toolName: z.ZodOptional<z.ZodString>;
|
|
186
196
|
autoResolution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -203,8 +213,8 @@ export declare const sessionsIndexSnapshotSchema: z.ZodObject<{
|
|
|
203
213
|
}, z.core.$strip>>;
|
|
204
214
|
goalStatus: z.ZodOptional<z.ZodEnum<{
|
|
205
215
|
failed: "failed";
|
|
206
|
-
active: "active";
|
|
207
216
|
paused: "paused";
|
|
217
|
+
active: "active";
|
|
208
218
|
notSatisfied: "notSatisfied";
|
|
209
219
|
verifying: "verifying";
|
|
210
220
|
verified: "verified";
|
|
@@ -228,11 +238,11 @@ export declare const sessionsIndexDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
228
238
|
generated: "generated";
|
|
229
239
|
}>>;
|
|
230
240
|
phase: z.ZodEnum<{
|
|
231
|
-
running: "running";
|
|
232
241
|
error: "error";
|
|
242
|
+
running: "running";
|
|
243
|
+
draft: "draft";
|
|
233
244
|
completedSuccess: "completedSuccess";
|
|
234
245
|
completedInterrupted: "completedInterrupted";
|
|
235
|
-
draft: "draft";
|
|
236
246
|
prewarming: "prewarming";
|
|
237
247
|
}>;
|
|
238
248
|
sessionEnded: z.ZodBoolean;
|
|
@@ -243,39 +253,44 @@ export declare const sessionsIndexDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
243
253
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
244
254
|
name: z.ZodOptional<z.ZodString>;
|
|
245
255
|
status: z.ZodEnum<{
|
|
256
|
+
completed: "completed";
|
|
246
257
|
pending: "pending";
|
|
247
258
|
running: "running";
|
|
248
|
-
completed: "completed";
|
|
249
|
-
stopped: "stopped";
|
|
250
259
|
errored: "errored";
|
|
260
|
+
stopped: "stopped";
|
|
251
261
|
}>;
|
|
252
262
|
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
253
|
-
interrupted: "interrupted";
|
|
254
263
|
user: "user";
|
|
255
264
|
model: "model";
|
|
256
265
|
provider: "provider";
|
|
266
|
+
interrupted: "interrupted";
|
|
257
267
|
superseded: "superseded";
|
|
258
268
|
}>>;
|
|
259
269
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
260
270
|
phases: z.ZodArray<z.ZodObject<{
|
|
261
271
|
name: z.ZodString;
|
|
262
272
|
status: z.ZodEnum<{
|
|
273
|
+
failed: "failed";
|
|
263
274
|
pending: "pending";
|
|
264
275
|
running: "running";
|
|
265
|
-
failed: "failed";
|
|
266
276
|
done: "done";
|
|
267
277
|
}>;
|
|
268
278
|
alongside: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
279
|
+
hole: z.ZodOptional<z.ZodEnum<{
|
|
280
|
+
waiting: "waiting";
|
|
281
|
+
open: "open";
|
|
282
|
+
}>>;
|
|
269
283
|
}, z.core.$strip>>;
|
|
270
284
|
currentPhase: z.ZodOptional<z.ZodString>;
|
|
271
285
|
agentsWorking: z.ZodNumber;
|
|
286
|
+
waitingHole: z.ZodOptional<z.ZodString>;
|
|
272
287
|
}, z.core.$strip>>;
|
|
273
288
|
}, z.core.$strip>>;
|
|
274
289
|
pendingInteraction: z.ZodOptional<z.ZodObject<{
|
|
275
290
|
interactionId: z.ZodString;
|
|
276
291
|
kind: z.ZodEnum<{
|
|
277
|
-
userInput: "userInput";
|
|
278
292
|
permission: "permission";
|
|
293
|
+
userInput: "userInput";
|
|
279
294
|
}>;
|
|
280
295
|
toolName: z.ZodOptional<z.ZodString>;
|
|
281
296
|
autoResolution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -298,8 +313,8 @@ export declare const sessionsIndexDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
298
313
|
}, z.core.$strip>>;
|
|
299
314
|
goalStatus: z.ZodOptional<z.ZodEnum<{
|
|
300
315
|
failed: "failed";
|
|
301
|
-
active: "active";
|
|
302
316
|
paused: "paused";
|
|
317
|
+
active: "active";
|
|
303
318
|
notSatisfied: "notSatisfied";
|
|
304
319
|
verifying: "verifying";
|
|
305
320
|
verified: "verified";
|