@dipoleml/dcode-cli 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY-NOTICES.md +1081 -12
- package/dist/dcode.cjs +59368 -45608
- package/dist/packages/browser-use-plugin/README.md +12 -12
- package/dist/packages/browser-use-plugin/docs/api.json +1 -1
- package/dist/packages/browser-use-plugin/docs/overview.md +5 -4
- package/dist/packages/browser-use-plugin/docs/workflow.md +1 -1
- package/dist/packages/browser-use-plugin/scripts/build.mjs +1 -0
- package/dist/packages/browser-use-plugin/skills/control-browser/SKILL.md +10 -7
- package/dist/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
- package/dist/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
- package/dist/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
- package/dist/packages/node-repl-host/.dcode-plugin/plugin.json +1 -1
- package/dist/packages/node-repl-host/dist/mcp/server.js +9 -14
- package/dist/packages/node-repl-host/scripts/build.mjs +1 -0
- package/dist/provider/dcode-builtin.json +6612 -202
- package/node_modules/@dcode/contracts/dist/compact/index.d.ts +7 -7
- package/node_modules/@dcode/contracts/dist/config/index.d.ts +1 -1
- package/node_modules/@dcode/contracts/dist/events/event-reducer.js +1 -0
- package/node_modules/@dcode/contracts/dist/events/in-memory-session-event-store.js +3 -2
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.d.ts +8 -0
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.js +18 -0
- package/node_modules/@dcode/contracts/dist/events/session.events.d.ts +94 -16
- package/node_modules/@dcode/contracts/dist/events/session.events.js +10 -0
- package/node_modules/@dcode/contracts/dist/hooks/index.d.ts +134 -134
- package/node_modules/@dcode/contracts/dist/hooks/workspace-hook-trust.d.ts +14 -14
- package/node_modules/@dcode/contracts/dist/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/index.js +2 -0
- package/node_modules/@dcode/contracts/dist/interfaces/browser-control.port.d.ts +22 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.d.ts +92 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.js +9 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.js +7 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-workspace.port.js +8 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.d.ts +119 -18
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.js +13 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.d.ts +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.d.ts +161 -1
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.js +17 -0
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.d.ts +15 -15
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.js +1 -1
- package/node_modules/@dcode/contracts/dist/interfaces/permission.port.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.d.ts +19 -0
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.d.ts +4 -2
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.js +5 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.d.ts +92 -3
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.js +4 -1
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.d.ts +25 -0
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/model/index.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/model/index.js +5 -0
- package/node_modules/@dcode/contracts/dist/model/invocation-context.d.ts +6 -1
- package/node_modules/@dcode/contracts/dist/plugins/index.d.ts +23 -0
- package/node_modules/@dcode/contracts/dist/plugins/index.js +2 -1
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.js +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/index.d.ts +5 -1
- package/node_modules/@dcode/contracts/dist/telemetry/index.js +12 -0
- package/node_modules/@dcode/contracts/dist/tools/agent.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.d.ts +39 -15
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.js +12 -6
- package/node_modules/@dcode/contracts/dist/tools/automation.d.ts +32 -32
- package/node_modules/@dcode/contracts/dist/tools/automation.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/bash.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/bash.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.d.ts +365 -66
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.js +92 -11
- package/node_modules/@dcode/contracts/dist/tools/edit.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.js +5 -1
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.d.ts +729 -0
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.js +102 -0
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.d.ts +136 -28
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.js +36 -0
- package/node_modules/@dcode/contracts/dist/tools/grep.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/grep.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/tools/index.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/list-saved-workflows.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/list-workflow-runs.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/node-repl.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/off-peak.d.ts +3 -3
- package/node_modules/@dcode/contracts/dist/tools/off-peak.js +2 -2
- package/node_modules/@dcode/contracts/dist/tools/performance.d.ts +22 -22
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.js +6 -4
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.d.ts +86 -13
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.js +37 -6
- package/node_modules/@dcode/contracts/dist/tools/read.d.ts +38 -38
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.d.ts +21 -10
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.js +22 -2
- package/node_modules/@dcode/contracts/dist/tools/saved-workflow.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/send-message.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/skill.js +1 -0
- package/node_modules/@dcode/contracts/dist/tools/task-output.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.d.ts +1228 -259
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.js +41 -0
- package/node_modules/@dcode/contracts/dist/tools/webfetch.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/workflow-observation-display.d.ts +20 -20
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.d.ts +55 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.js +86 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/write.d.ts +18 -18
- package/node_modules/@dcode/contracts/dist/workflow/index.d.ts +98 -98
- package/node_modules/@dcode/contracts/dist/workflow/script.d.ts +12 -12
- package/node_modules/@dcode/i18n/dist/index.js +2 -2
- package/node_modules/@dcode/i18n/dist/locale.d.ts +1 -1
- package/node_modules/@dcode/i18n/dist/locale.js +4 -4
- package/node_modules/@dcode/i18n/dist/locales/en-US.js +5 -5
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.d.ts +3 -0
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.js +354 -0
- package/node_modules/@dcode/model-option-map/package.json +1 -1
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.js +6 -0
- package/node_modules/@dcode/shared/dist/attachment-source.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/attachment-source.js +4 -0
- package/node_modules/@dcode/shared/dist/background-bash-output.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/bots.d.ts +763 -15
- package/node_modules/@dcode/shared/dist/bots.js +236 -2
- package/node_modules/@dcode/shared/dist/browser-use/command-metadata.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/browser-use/commands.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/browser-use/commands.js +3 -1
- package/node_modules/@dcode/shared/dist/browser-use/nodeReplBroker.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/browser-use/result.d.ts +6 -6
- package/node_modules/@dcode/shared/dist/channel-mention.d.ts +173 -0
- package/node_modules/@dcode/shared/dist/channel-mention.js +120 -0
- package/node_modules/@dcode/shared/dist/channels.d.ts +128 -1
- package/node_modules/@dcode/shared/dist/channels.js +66 -0
- package/node_modules/@dcode/shared/dist/clientConfig.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/clientConfig.js +18 -2
- package/node_modules/@dcode/shared/dist/cloudContent.d.ts +160 -0
- package/node_modules/@dcode/shared/dist/cloudContent.js +116 -0
- package/node_modules/@dcode/shared/dist/coding-plan-subscription.d.ts +59 -0
- package/node_modules/@dcode/shared/dist/conversation-message-projection-policy.js +2 -0
- package/node_modules/@dcode/shared/dist/conversation-share.d.ts +351 -47
- package/node_modules/@dcode/shared/dist/conversation-share.js +8 -6
- package/node_modules/@dcode/shared/dist/conversationSelection.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/conversationSelection.js +30 -0
- package/node_modules/@dcode/shared/dist/database-startup.d.ts +5 -5
- package/node_modules/@dcode/shared/dist/dcode-agent-model-state.js +14 -6
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.d.ts +16 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.js +17 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-runtime.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.d.ts +1733 -318
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.js +555 -24
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.js +10 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.d.ts +30 -20
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/apply.js +12 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.d.ts +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.d.ts +359 -28
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.js +67 -45
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/controller.d.ts +170 -65
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.d.ts +20 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.js +15 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.d.ts +34 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.js +45 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.d.ts +1453 -278
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.js +45 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.js +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.d.ts +173 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.js +29 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.d.ts +731 -125
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.js +23 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.d.ts +30 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.js +35 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index.d.ts +40 -25
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.d.ts +1444 -216
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/telemetry.d.ts +62 -58
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.d.ts +185 -50
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.js +31 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.d.ts +7145 -1002
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.js +18 -5
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-assembler.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-fault.js +4 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-reassembly.js +5 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.d.ts +29 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.js +64 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.js +23 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-observation-display.d.ts +14 -14
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.d.ts +52 -8
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.js +22 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.js +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.d.ts +21 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.js +44 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.js +3 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-caps.js +5 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.d.ts +26 -19
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.js +40 -32
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.js +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.js +44 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.js +17 -10
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.d.ts +33 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.js +202 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-phases.js +10 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.js +29 -22
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-started.js +5 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-tables.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-unlisted.js +6 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.d.ts +125 -40
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.js +101 -26
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-workspace.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workspace-hook-review.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.js +49 -0
- package/node_modules/@dcode/shared/dist/dcode-slash-command-help.js +4 -4
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.js +13 -1
- package/node_modules/@dcode/shared/dist/dcode-task-types-core.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-task-types.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.d.ts +20 -1
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +98 -17
- package/node_modules/@dcode/shared/dist/desktopMenu.js +48 -48
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.d.ts +35 -6
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.js +45 -6
- package/node_modules/@dcode/shared/dist/env.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/env.js +9 -9
- package/node_modules/@dcode/shared/dist/errors.d.ts +24 -0
- package/node_modules/@dcode/shared/dist/errors.js +54 -0
- package/node_modules/@dcode/shared/dist/execution-state.d.ts +4 -2
- package/node_modules/@dcode/shared/dist/execution-state.js +1 -1
- package/node_modules/@dcode/shared/dist/feedback.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/gen-ui/contract.d.ts +140 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.js +36 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.js +196 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.js +75 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.js +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.js +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.d.ts +202 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.js +126 -0
- package/node_modules/@dcode/shared/dist/helpAppConfig.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/helpAppConfig.js +2 -2
- package/node_modules/@dcode/shared/dist/highspeed.d.ts +181 -0
- package/node_modules/@dcode/shared/dist/highspeed.js +112 -0
- package/node_modules/@dcode/shared/dist/index.d.ts +27 -5
- package/node_modules/@dcode/shared/dist/index.js +24 -2
- package/node_modules/@dcode/shared/dist/localTtft.d.ts +27 -27
- package/node_modules/@dcode/shared/dist/marketingTouch.d.ts +930 -0
- package/node_modules/@dcode/shared/dist/marketingTouch.js +170 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.d.ts +83 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.js +124 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.d.ts +241 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.js +42 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.js +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.js +64 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.d.ts +47 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.js +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.js +11 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.d.ts +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.js +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.js +73 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.d.ts +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.js +107 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.js +55 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.d.ts +78 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.js +65 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.d.ts +39 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.js +199 -0
- package/node_modules/@dcode/shared/dist/mcp.d.ts +6 -2
- package/node_modules/@dcode/shared/dist/memory.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/memory.js +2 -0
- package/node_modules/@dcode/shared/dist/model-execution.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/model-execution.js +38 -0
- package/node_modules/@dcode/shared/dist/networkCapture.d.ts +49 -0
- package/node_modules/@dcode/shared/dist/networkCapture.js +41 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.d.ts +6 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.js +16 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.js +30 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.js +96 -0
- package/node_modules/@dcode/shared/dist/node/officialPluginCache.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node/subagentMarkdownMigration.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node.js +2 -0
- package/node_modules/@dcode/shared/dist/output-style.d.ts +17 -0
- package/node_modules/@dcode/shared/dist/output-style.js +2 -0
- package/node_modules/@dcode/shared/dist/platform.d.ts +149 -1
- package/node_modules/@dcode/shared/dist/platform.js +2 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.d.ts +61 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.js +2 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.js +20 -14
- package/node_modules/@dcode/shared/dist/project-access-token-client.d.ts +42 -0
- package/node_modules/@dcode/shared/dist/project-access-token-client.js +260 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.js +9 -0
- package/node_modules/@dcode/shared/dist/project-access-token.d.ts +45 -0
- package/node_modules/@dcode/shared/dist/project-access-token.js +164 -0
- package/node_modules/@dcode/shared/dist/protocol.d.ts +41 -4
- package/node_modules/@dcode/shared/dist/protocol.js +1 -1
- package/node_modules/@dcode/shared/dist/provider-provisioning.d.ts +26 -2
- package/node_modules/@dcode/shared/dist/provider-provisioning.js +19 -3
- package/node_modules/@dcode/shared/dist/providers.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/providers.js +1 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.js +35 -1
- package/node_modules/@dcode/shared/dist/remoteAppConfig.js +1 -1
- package/node_modules/@dcode/shared/dist/remoteEnvironmentKey.js +19 -0
- package/node_modules/@dcode/shared/dist/remoteTarget.d.ts +14 -1
- package/node_modules/@dcode/shared/dist/remoteTarget.js +4 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.d.ts +27 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.js +43 -0
- package/node_modules/@dcode/shared/dist/rendererActionTrace.d.ts +35 -35
- package/node_modules/@dcode/shared/dist/request-security-edition/index.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/index.js +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.js +5 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.d.ts +19 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.js +29 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.js +80 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.d.ts +37 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.js +50 -0
- package/node_modules/@dcode/shared/dist/sessionCreateTelemetry.d.ts +3 -3
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.js +212 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.js +200 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.d.ts +82 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.js +28 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.d.ts +135 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.js +39 -0
- package/node_modules/@dcode/shared/dist/subagents-types.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/task-realtime-core.d.ts +57 -24
- package/node_modules/@dcode/shared/dist/task-realtime-core.js +8 -2
- package/node_modules/@dcode/shared/dist/test-ids-workflow.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/test-ids-workflow.js +5 -0
- package/node_modules/@dcode/shared/dist/test-ids.d.ts +25 -0
- package/node_modules/@dcode/shared/dist/test-ids.js +25 -0
- package/node_modules/@dcode/shared/dist/tool-identity.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/tool-identity.js +4 -0
- package/node_modules/@dcode/shared/dist/tool-plan-adapter.js +14 -1
- package/node_modules/@dcode/shared/dist/usage-stats.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/validation.d.ts +1461 -85
- package/node_modules/@dcode/shared/dist/validation.js +423 -14
- package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +71 -15
- package/node_modules/@dcode/shared/dist/validationAppSettings.js +74 -12
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.js +40 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.d.ts +183 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.js +562 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.d.ts +645 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.js +174 -0
- package/node_modules/@dcode/shared/package.json +5 -2
- package/node_modules/@dcode/tui/dist/app-approval-panel.js +3 -2
- package/node_modules/@dcode/tui/dist/app-approval.d.ts +3 -1
- package/node_modules/@dcode/tui/dist/app-approval.js +9 -5
- package/node_modules/@dcode/tui/dist/app-compact-timeline.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-compact-timeline.js +5 -2
- package/node_modules/@dcode/tui/dist/app-empty-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-empty-transcript.js +1 -1
- package/node_modules/@dcode/tui/dist/app-file-mentions.d.ts +2 -0
- package/node_modules/@dcode/tui/dist/app-file-mentions.js +2 -2
- package/node_modules/@dcode/tui/dist/app-input-pane.d.ts +38 -0
- package/node_modules/@dcode/tui/dist/app-input-pane.js +19 -19
- package/node_modules/@dcode/tui/dist/app-input-status.d.ts +17 -0
- package/node_modules/@dcode/tui/dist/app-input-status.js +4 -4
- package/node_modules/@dcode/tui/dist/app-input.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-input.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.d.ts +2 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-markdown.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode-command.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-mode-command.js +4 -4
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.d.ts +5 -0
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.d.ts +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.js +1 -1
- package/node_modules/@dcode/tui/dist/app-model-ref.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-model-ref.js +1 -1
- package/node_modules/@dcode/tui/dist/app-motion.d.ts +13 -0
- package/node_modules/@dcode/tui/dist/app-motion.js +17 -7
- package/node_modules/@dcode/tui/dist/app-session-event-handler.d.ts +33 -0
- package/node_modules/@dcode/tui/dist/app-session-event-handler.js +4 -4
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.js +3 -3
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.js +7 -2
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.d.ts +10 -0
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.js +4 -4
- package/node_modules/@dcode/tui/dist/app-submit.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-submit.js +1 -1
- package/node_modules/@dcode/tui/dist/app-thought-components.d.ts +7 -0
- package/node_modules/@dcode/tui/dist/app-thought-components.js +2 -2
- package/node_modules/@dcode/tui/dist/app-tool-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-tool-transcript.js +3 -0
- package/node_modules/@dcode/tui/dist/app-view.d.ts +27 -0
- package/node_modules/@dcode/tui/dist/app-view.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-card.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.js +4 -4
- package/node_modules/@dcode/tui/dist/index.js +5118 -2579
- package/node_modules/@dcode/tui/dist/tui.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/tui.js +1 -1
- package/node_modules/@dcode/tui/dist/types.d.ts +1 -1
- package/node_modules/oniguruma-parser/LICENSE +1 -1
- package/node_modules/oniguruma-parser/README.md +15 -61
- package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +4 -4
- package/node_modules/oniguruma-parser/dist/parser/parse.js +1 -1
- package/node_modules/oniguruma-parser/dist/traverser/traverse.js +1 -1
- package/node_modules/oniguruma-parser/package.json +5 -5
- package/node_modules/oniguruma-to-es/dist/cjs/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/cjs/index.js +121 -120
- package/node_modules/oniguruma-to-es/dist/cjs/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/cjs/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/cjs/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/index.js +1 -3
- package/node_modules/oniguruma-to-es/dist/esm/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/esm/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/esm/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/index.min.js +6 -6
- package/node_modules/oniguruma-to-es/package.json +5 -5
- package/package.json +5 -5
|
@@ -2,22 +2,92 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const READ_SESSION_CONTEXT_TOOL_NAME = "ReadSessionContext";
|
|
3
3
|
export declare const READ_SESSION_CONTEXT_DEFAULT_MAX_TOKENS = 6000;
|
|
4
4
|
export declare const READ_SESSION_CONTEXT_MAX_TOKENS = 12000;
|
|
5
|
-
export declare const ReadSessionContextStrategySchema: z.ZodEnum<["relevant", "handoff"]>;
|
|
6
|
-
export declare const ReadSessionContextInputSchema: z.ZodObject<{
|
|
7
|
-
sessionId: z.ZodString
|
|
5
|
+
export declare const ReadSessionContextStrategySchema: z.ZodEnum<["relevant", "handoff", "topic"]>;
|
|
6
|
+
export declare const ReadSessionContextInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
|
+
sessionId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8
8
|
query: z.ZodString;
|
|
9
|
-
strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["relevant", "handoff"]>>>;
|
|
9
|
+
strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["relevant", "handoff", "topic"]>>>;
|
|
10
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
inputId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
messageId: z.ZodString;
|
|
14
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
messageId: string;
|
|
17
|
+
index?: number | undefined;
|
|
18
|
+
inputId?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
messageId: string;
|
|
21
|
+
index?: number | undefined;
|
|
22
|
+
inputId?: string | undefined;
|
|
23
|
+
}>>;
|
|
10
24
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
11
25
|
}, "strict", z.ZodTypeAny, {
|
|
12
26
|
sessionId: string;
|
|
13
|
-
strategy: "handoff" | "relevant";
|
|
27
|
+
strategy: "topic" | "handoff" | "relevant";
|
|
28
|
+
query: string;
|
|
29
|
+
maxTokens?: number | undefined;
|
|
30
|
+
cursor?: number | undefined;
|
|
31
|
+
attachment?: {
|
|
32
|
+
messageId: string;
|
|
33
|
+
index?: number | undefined;
|
|
34
|
+
inputId?: string | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
query: string;
|
|
38
|
+
sessionId?: string | undefined;
|
|
39
|
+
maxTokens?: number | undefined;
|
|
40
|
+
cursor?: number | undefined;
|
|
41
|
+
strategy?: "topic" | "handoff" | "relevant" | undefined;
|
|
42
|
+
attachment?: {
|
|
43
|
+
messageId: string;
|
|
44
|
+
index?: number | undefined;
|
|
45
|
+
inputId?: string | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
sessionId: string;
|
|
49
|
+
strategy: "topic" | "handoff" | "relevant";
|
|
14
50
|
query: string;
|
|
15
51
|
maxTokens?: number | undefined;
|
|
52
|
+
cursor?: number | undefined;
|
|
53
|
+
attachment?: {
|
|
54
|
+
messageId: string;
|
|
55
|
+
index?: number | undefined;
|
|
56
|
+
inputId?: string | undefined;
|
|
57
|
+
} | undefined;
|
|
16
58
|
}, {
|
|
59
|
+
query: string;
|
|
60
|
+
sessionId?: string | undefined;
|
|
61
|
+
maxTokens?: number | undefined;
|
|
62
|
+
cursor?: number | undefined;
|
|
63
|
+
strategy?: "topic" | "handoff" | "relevant" | undefined;
|
|
64
|
+
attachment?: {
|
|
65
|
+
messageId: string;
|
|
66
|
+
index?: number | undefined;
|
|
67
|
+
inputId?: string | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
}>, {
|
|
17
70
|
sessionId: string;
|
|
71
|
+
strategy: "topic" | "handoff" | "relevant";
|
|
72
|
+
query: string;
|
|
73
|
+
maxTokens?: number | undefined;
|
|
74
|
+
cursor?: number | undefined;
|
|
75
|
+
attachment?: {
|
|
76
|
+
messageId: string;
|
|
77
|
+
index?: number | undefined;
|
|
78
|
+
inputId?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
}, {
|
|
18
81
|
query: string;
|
|
82
|
+
sessionId?: string | undefined;
|
|
19
83
|
maxTokens?: number | undefined;
|
|
20
|
-
|
|
84
|
+
cursor?: number | undefined;
|
|
85
|
+
strategy?: "topic" | "handoff" | "relevant" | undefined;
|
|
86
|
+
attachment?: {
|
|
87
|
+
messageId: string;
|
|
88
|
+
index?: number | undefined;
|
|
89
|
+
inputId?: string | undefined;
|
|
90
|
+
} | undefined;
|
|
21
91
|
}>;
|
|
22
92
|
export type ReadSessionContextInput = z.infer<typeof ReadSessionContextInputSchema>;
|
|
23
93
|
export declare const ReadSessionContextInputJsonSchema: import("../index.js").JsonSchema;
|
|
@@ -47,7 +117,7 @@ export declare const ReadSessionContextOutputSchema: z.ZodObject<{
|
|
|
47
117
|
title: z.ZodOptional<z.ZodString>;
|
|
48
118
|
directory: z.ZodOptional<z.ZodString>;
|
|
49
119
|
path: z.ZodOptional<z.ZodString>;
|
|
50
|
-
strategy: z.ZodEnum<["relevant", "handoff"]>;
|
|
120
|
+
strategy: z.ZodEnum<["relevant", "handoff", "topic"]>;
|
|
51
121
|
query: z.ZodString;
|
|
52
122
|
source: z.ZodEnum<["lite", "local", "fallback", "none"]>;
|
|
53
123
|
content: z.ZodString;
|
|
@@ -55,6 +125,7 @@ export declare const ReadSessionContextOutputSchema: z.ZodObject<{
|
|
|
55
125
|
selectedMessageCount: z.ZodOptional<z.ZodNumber>;
|
|
56
126
|
truncated: z.ZodBoolean;
|
|
57
127
|
error: z.ZodOptional<z.ZodString>;
|
|
128
|
+
nextCursor: z.ZodOptional<z.ZodNumber>;
|
|
58
129
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
130
|
messageId: z.ZodString;
|
|
60
131
|
partId: z.ZodOptional<z.ZodString>;
|
|
@@ -78,15 +149,16 @@ export declare const ReadSessionContextOutputSchema: z.ZodObject<{
|
|
|
78
149
|
status: "success" | "failed" | "not_found";
|
|
79
150
|
truncated: boolean;
|
|
80
151
|
sessionId: string;
|
|
81
|
-
source: "local" | "none" | "fallback" | "lite";
|
|
82
152
|
content: string;
|
|
153
|
+
source: "fallback" | "local" | "none" | "lite";
|
|
83
154
|
messageCount: number;
|
|
84
|
-
strategy: "handoff" | "relevant";
|
|
155
|
+
strategy: "topic" | "handoff" | "relevant";
|
|
85
156
|
query: string;
|
|
86
157
|
error?: string | undefined;
|
|
87
|
-
title?: string | undefined;
|
|
88
158
|
path?: string | undefined;
|
|
159
|
+
title?: string | undefined;
|
|
89
160
|
directory?: string | undefined;
|
|
161
|
+
nextCursor?: number | undefined;
|
|
90
162
|
selectedMessageCount?: number | undefined;
|
|
91
163
|
references?: {
|
|
92
164
|
messageId: string;
|
|
@@ -99,15 +171,16 @@ export declare const ReadSessionContextOutputSchema: z.ZodObject<{
|
|
|
99
171
|
status: "success" | "failed" | "not_found";
|
|
100
172
|
truncated: boolean;
|
|
101
173
|
sessionId: string;
|
|
102
|
-
source: "local" | "none" | "fallback" | "lite";
|
|
103
174
|
content: string;
|
|
175
|
+
source: "fallback" | "local" | "none" | "lite";
|
|
104
176
|
messageCount: number;
|
|
105
|
-
strategy: "handoff" | "relevant";
|
|
177
|
+
strategy: "topic" | "handoff" | "relevant";
|
|
106
178
|
query: string;
|
|
107
179
|
error?: string | undefined;
|
|
108
|
-
title?: string | undefined;
|
|
109
180
|
path?: string | undefined;
|
|
181
|
+
title?: string | undefined;
|
|
110
182
|
directory?: string | undefined;
|
|
183
|
+
nextCursor?: number | undefined;
|
|
111
184
|
selectedMessageCount?: number | undefined;
|
|
112
185
|
references?: {
|
|
113
186
|
messageId: string;
|
|
@@ -3,14 +3,18 @@ import { toToolJsonSchema } from "./json-schema.js";
|
|
|
3
3
|
export const READ_SESSION_CONTEXT_TOOL_NAME = "ReadSessionContext";
|
|
4
4
|
export const READ_SESSION_CONTEXT_DEFAULT_MAX_TOKENS = 6000;
|
|
5
5
|
export const READ_SESSION_CONTEXT_MAX_TOKENS = 12000;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// 最小 JSON Schema 校验器不检查 pattern;联合字符串会在 oneOf 中同时匹配,错误拒绝 current。
|
|
7
|
+
// 用单个字符串模式,具体身份格式继续由运行时 schema 严格验证。
|
|
8
|
+
const SESSION_ID_PATTERN = /^(?:current|sess_[A-Za-z0-9._-]+)$/;
|
|
9
|
+
export const ReadSessionContextStrategySchema = z.enum(["relevant", "handoff", "topic"]);
|
|
8
10
|
export const ReadSessionContextInputSchema = z
|
|
9
11
|
.object({
|
|
10
12
|
sessionId: z
|
|
11
13
|
.string()
|
|
12
|
-
.regex(SESSION_ID_PATTERN, "Session id must use the sess_* format.")
|
|
13
|
-
.
|
|
14
|
+
.regex(SESSION_ID_PATTERN, "Session id must be current or use the sess_* format.")
|
|
15
|
+
.optional()
|
|
16
|
+
.default("current")
|
|
17
|
+
.describe("For topic strategy omit this field to use the current task. Other strategies require an explicit sess_* target."),
|
|
14
18
|
query: z
|
|
15
19
|
.string()
|
|
16
20
|
.min(1)
|
|
@@ -18,7 +22,27 @@ export const ReadSessionContextInputSchema = z
|
|
|
18
22
|
.describe("Focused natural-language description of the context needed from the target session."),
|
|
19
23
|
strategy: ReadSessionContextStrategySchema.optional()
|
|
20
24
|
.default("relevant")
|
|
21
|
-
.describe("Use relevant for focused retrieval,
|
|
25
|
+
.describe("Use relevant for focused session retrieval, handoff for a continuation summary, or topic for original archived discussion in the current session."),
|
|
26
|
+
cursor: z
|
|
27
|
+
.number()
|
|
28
|
+
.int()
|
|
29
|
+
.nonnegative()
|
|
30
|
+
.optional()
|
|
31
|
+
.describe("Topic archive page offset returned by the previous call."),
|
|
32
|
+
attachment: z
|
|
33
|
+
.object({
|
|
34
|
+
inputId: z
|
|
35
|
+
.string()
|
|
36
|
+
.min(1)
|
|
37
|
+
.max(256)
|
|
38
|
+
.optional()
|
|
39
|
+
.describe("Snapshot inputId from the topic history file; selects only an admitted input in this task."),
|
|
40
|
+
messageId: z.string().min(1).max(256),
|
|
41
|
+
index: z.number().int().nonnegative().optional(),
|
|
42
|
+
})
|
|
43
|
+
.strict()
|
|
44
|
+
.optional()
|
|
45
|
+
.describe("With topic strategy, download an archived message attachment to a managed local file. Index selects a resource in rich text, starting at zero."),
|
|
22
46
|
maxTokens: z
|
|
23
47
|
.number()
|
|
24
48
|
.int()
|
|
@@ -27,7 +51,13 @@ export const ReadSessionContextInputSchema = z
|
|
|
27
51
|
.optional()
|
|
28
52
|
.describe("Approximate maximum tokens to return to the model."),
|
|
29
53
|
})
|
|
30
|
-
.strict()
|
|
54
|
+
.strict()
|
|
55
|
+
.refine((value) => value.sessionId !== "current" || value.strategy === "topic", {
|
|
56
|
+
message: "Non-topic strategies require an explicit session id",
|
|
57
|
+
})
|
|
58
|
+
.refine((value) => !value.attachment || value.strategy === "topic", {
|
|
59
|
+
message: "Attachments require topic strategy",
|
|
60
|
+
});
|
|
31
61
|
export const ReadSessionContextInputJsonSchema = toToolJsonSchema(ReadSessionContextInputSchema);
|
|
32
62
|
export const ReadSessionContextReferenceSchema = z
|
|
33
63
|
.object({
|
|
@@ -53,6 +83,7 @@ export const ReadSessionContextOutputSchema = z
|
|
|
53
83
|
selectedMessageCount: z.number().int().nonnegative().optional(),
|
|
54
84
|
truncated: z.boolean(),
|
|
55
85
|
error: z.string().optional(),
|
|
86
|
+
nextCursor: z.number().int().nonnegative().optional(),
|
|
56
87
|
references: z.array(ReadSessionContextReferenceSchema).optional(),
|
|
57
88
|
})
|
|
58
89
|
.strict();
|
|
@@ -28,23 +28,23 @@ export declare const ReadInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
28
28
|
pages: z.ZodOptional<z.ZodString>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
30
|
file_path: string;
|
|
31
|
-
limit?: number | undefined;
|
|
32
31
|
offset?: number | undefined;
|
|
32
|
+
limit?: number | undefined;
|
|
33
33
|
pages?: string | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
file_path: string;
|
|
36
|
-
limit?: number | undefined;
|
|
37
36
|
offset?: number | undefined;
|
|
37
|
+
limit?: number | undefined;
|
|
38
38
|
pages?: string | undefined;
|
|
39
39
|
}>, {
|
|
40
40
|
file_path: string;
|
|
41
|
-
limit?: number | undefined;
|
|
42
41
|
offset?: number | undefined;
|
|
42
|
+
limit?: number | undefined;
|
|
43
43
|
pages?: string | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
file_path: string;
|
|
46
|
-
limit?: number | undefined;
|
|
47
46
|
offset?: number | undefined;
|
|
47
|
+
limit?: number | undefined;
|
|
48
48
|
pages?: string | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
export declare const ReadInputJsonSchema: import("../index.js").JsonSchema;
|
|
@@ -136,25 +136,25 @@ export declare const ReadTextOutputSchema: z.ZodObject<{
|
|
|
136
136
|
partialViewNotice: z.ZodOptional<z.ZodString>;
|
|
137
137
|
}, "strict", z.ZodTypeAny, {
|
|
138
138
|
type: "text";
|
|
139
|
+
content: string;
|
|
139
140
|
filePath: string;
|
|
140
141
|
totalLines: number;
|
|
141
|
-
content: string;
|
|
142
142
|
numLines: number;
|
|
143
143
|
startLine: number;
|
|
144
|
-
truncated?: boolean | undefined;
|
|
145
144
|
sizeBytes?: number | undefined;
|
|
145
|
+
truncated?: boolean | undefined;
|
|
146
146
|
bytesRead?: number | undefined;
|
|
147
147
|
truncatedByTokenCap?: boolean | undefined;
|
|
148
148
|
partialViewNotice?: string | undefined;
|
|
149
149
|
}, {
|
|
150
150
|
type: "text";
|
|
151
|
+
content: string;
|
|
151
152
|
filePath: string;
|
|
152
153
|
totalLines: number;
|
|
153
|
-
content: string;
|
|
154
154
|
numLines: number;
|
|
155
155
|
startLine: number;
|
|
156
|
-
truncated?: boolean | undefined;
|
|
157
156
|
sizeBytes?: number | undefined;
|
|
157
|
+
truncated?: boolean | undefined;
|
|
158
158
|
bytesRead?: number | undefined;
|
|
159
159
|
truncatedByTokenCap?: boolean | undefined;
|
|
160
160
|
partialViewNotice?: string | undefined;
|
|
@@ -202,7 +202,7 @@ export declare const ReadImageOutputSchema: z.ZodObject<{
|
|
|
202
202
|
}>>;
|
|
203
203
|
}, "strict", z.ZodTypeAny, {
|
|
204
204
|
type: "image";
|
|
205
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
205
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
206
206
|
base64: string;
|
|
207
207
|
originalSize: number;
|
|
208
208
|
resized?: boolean | undefined;
|
|
@@ -217,7 +217,7 @@ export declare const ReadImageOutputSchema: z.ZodObject<{
|
|
|
217
217
|
} | undefined;
|
|
218
218
|
}, {
|
|
219
219
|
type: "image";
|
|
220
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
220
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
221
221
|
base64: string;
|
|
222
222
|
originalSize: number;
|
|
223
223
|
resized?: boolean | undefined;
|
|
@@ -238,12 +238,12 @@ export declare const ReadVideoOutputSchema: z.ZodObject<{
|
|
|
238
238
|
originalSize: z.ZodNumber;
|
|
239
239
|
}, "strict", z.ZodTypeAny, {
|
|
240
240
|
type: "video";
|
|
241
|
-
mimeType: "video/
|
|
241
|
+
mimeType: "video/mp4" | "video/webm" | "video/quicktime" | "video/x-m4v" | "video/x-matroska" | "video/x-msvideo";
|
|
242
242
|
base64: string;
|
|
243
243
|
originalSize: number;
|
|
244
244
|
}, {
|
|
245
245
|
type: "video";
|
|
246
|
-
mimeType: "video/
|
|
246
|
+
mimeType: "video/mp4" | "video/webm" | "video/quicktime" | "video/x-m4v" | "video/x-matroska" | "video/x-msvideo";
|
|
247
247
|
base64: string;
|
|
248
248
|
originalSize: number;
|
|
249
249
|
}>;
|
|
@@ -278,7 +278,7 @@ export declare const ReadNotebookCellSchema: z.ZodObject<{
|
|
|
278
278
|
}>, "many">>;
|
|
279
279
|
}, "strict", z.ZodTypeAny, {
|
|
280
280
|
source: string;
|
|
281
|
-
cellType: "
|
|
281
|
+
cellType: "markdown" | "code";
|
|
282
282
|
outputs?: {
|
|
283
283
|
type: "error" | "stream" | "execute_result" | "display_data";
|
|
284
284
|
text: string;
|
|
@@ -286,7 +286,7 @@ export declare const ReadNotebookCellSchema: z.ZodObject<{
|
|
|
286
286
|
}[] | undefined;
|
|
287
287
|
}, {
|
|
288
288
|
source: string;
|
|
289
|
-
cellType: "
|
|
289
|
+
cellType: "markdown" | "code";
|
|
290
290
|
outputs?: {
|
|
291
291
|
type: "error" | "stream" | "execute_result" | "display_data";
|
|
292
292
|
text: string;
|
|
@@ -314,7 +314,7 @@ export declare const ReadNotebookOutputSchema: z.ZodObject<{
|
|
|
314
314
|
}>, "many">>;
|
|
315
315
|
}, "strict", z.ZodTypeAny, {
|
|
316
316
|
source: string;
|
|
317
|
-
cellType: "
|
|
317
|
+
cellType: "markdown" | "code";
|
|
318
318
|
outputs?: {
|
|
319
319
|
type: "error" | "stream" | "execute_result" | "display_data";
|
|
320
320
|
text: string;
|
|
@@ -322,7 +322,7 @@ export declare const ReadNotebookOutputSchema: z.ZodObject<{
|
|
|
322
322
|
}[] | undefined;
|
|
323
323
|
}, {
|
|
324
324
|
source: string;
|
|
325
|
-
cellType: "
|
|
325
|
+
cellType: "markdown" | "code";
|
|
326
326
|
outputs?: {
|
|
327
327
|
type: "error" | "stream" | "execute_result" | "display_data";
|
|
328
328
|
text: string;
|
|
@@ -334,7 +334,7 @@ export declare const ReadNotebookOutputSchema: z.ZodObject<{
|
|
|
334
334
|
notebookPath: string;
|
|
335
335
|
cells: {
|
|
336
336
|
source: string;
|
|
337
|
-
cellType: "
|
|
337
|
+
cellType: "markdown" | "code";
|
|
338
338
|
outputs?: {
|
|
339
339
|
type: "error" | "stream" | "execute_result" | "display_data";
|
|
340
340
|
text: string;
|
|
@@ -346,7 +346,7 @@ export declare const ReadNotebookOutputSchema: z.ZodObject<{
|
|
|
346
346
|
notebookPath: string;
|
|
347
347
|
cells: {
|
|
348
348
|
source: string;
|
|
349
|
-
cellType: "
|
|
349
|
+
cellType: "markdown" | "code";
|
|
350
350
|
outputs?: {
|
|
351
351
|
type: "error" | "stream" | "execute_result" | "display_data";
|
|
352
352
|
text: string;
|
|
@@ -407,7 +407,7 @@ export declare const ReadPartsOutputSchema: z.ZodObject<{
|
|
|
407
407
|
pageNumber: z.ZodNumber;
|
|
408
408
|
}, "strict", z.ZodTypeAny, {
|
|
409
409
|
type: "image";
|
|
410
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
410
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
411
411
|
base64: string;
|
|
412
412
|
originalSize: number;
|
|
413
413
|
pageNumber: number;
|
|
@@ -423,7 +423,7 @@ export declare const ReadPartsOutputSchema: z.ZodObject<{
|
|
|
423
423
|
} | undefined;
|
|
424
424
|
}, {
|
|
425
425
|
type: "image";
|
|
426
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
426
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
427
427
|
base64: string;
|
|
428
428
|
originalSize: number;
|
|
429
429
|
pageNumber: number;
|
|
@@ -443,7 +443,7 @@ export declare const ReadPartsOutputSchema: z.ZodObject<{
|
|
|
443
443
|
filePath: string;
|
|
444
444
|
pages: {
|
|
445
445
|
type: "image";
|
|
446
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
446
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
447
447
|
base64: string;
|
|
448
448
|
originalSize: number;
|
|
449
449
|
pageNumber: number;
|
|
@@ -465,7 +465,7 @@ export declare const ReadPartsOutputSchema: z.ZodObject<{
|
|
|
465
465
|
filePath: string;
|
|
466
466
|
pages: {
|
|
467
467
|
type: "image";
|
|
468
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
468
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
469
469
|
base64: string;
|
|
470
470
|
originalSize: number;
|
|
471
471
|
pageNumber: number;
|
|
@@ -507,25 +507,25 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
507
507
|
partialViewNotice: z.ZodOptional<z.ZodString>;
|
|
508
508
|
}, "strict", z.ZodTypeAny, {
|
|
509
509
|
type: "text";
|
|
510
|
+
content: string;
|
|
510
511
|
filePath: string;
|
|
511
512
|
totalLines: number;
|
|
512
|
-
content: string;
|
|
513
513
|
numLines: number;
|
|
514
514
|
startLine: number;
|
|
515
|
-
truncated?: boolean | undefined;
|
|
516
515
|
sizeBytes?: number | undefined;
|
|
516
|
+
truncated?: boolean | undefined;
|
|
517
517
|
bytesRead?: number | undefined;
|
|
518
518
|
truncatedByTokenCap?: boolean | undefined;
|
|
519
519
|
partialViewNotice?: string | undefined;
|
|
520
520
|
}, {
|
|
521
521
|
type: "text";
|
|
522
|
+
content: string;
|
|
522
523
|
filePath: string;
|
|
523
524
|
totalLines: number;
|
|
524
|
-
content: string;
|
|
525
525
|
numLines: number;
|
|
526
526
|
startLine: number;
|
|
527
|
-
truncated?: boolean | undefined;
|
|
528
527
|
sizeBytes?: number | undefined;
|
|
528
|
+
truncated?: boolean | undefined;
|
|
529
529
|
bytesRead?: number | undefined;
|
|
530
530
|
truncatedByTokenCap?: boolean | undefined;
|
|
531
531
|
partialViewNotice?: string | undefined;
|
|
@@ -556,7 +556,7 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
556
556
|
}>>;
|
|
557
557
|
}, "strict", z.ZodTypeAny, {
|
|
558
558
|
type: "image";
|
|
559
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
559
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
560
560
|
base64: string;
|
|
561
561
|
originalSize: number;
|
|
562
562
|
resized?: boolean | undefined;
|
|
@@ -571,7 +571,7 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
571
571
|
} | undefined;
|
|
572
572
|
}, {
|
|
573
573
|
type: "image";
|
|
574
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
574
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
575
575
|
base64: string;
|
|
576
576
|
originalSize: number;
|
|
577
577
|
resized?: boolean | undefined;
|
|
@@ -591,12 +591,12 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
591
591
|
originalSize: z.ZodNumber;
|
|
592
592
|
}, "strict", z.ZodTypeAny, {
|
|
593
593
|
type: "video";
|
|
594
|
-
mimeType: "video/
|
|
594
|
+
mimeType: "video/mp4" | "video/webm" | "video/quicktime" | "video/x-m4v" | "video/x-matroska" | "video/x-msvideo";
|
|
595
595
|
base64: string;
|
|
596
596
|
originalSize: number;
|
|
597
597
|
}, {
|
|
598
598
|
type: "video";
|
|
599
|
-
mimeType: "video/
|
|
599
|
+
mimeType: "video/mp4" | "video/webm" | "video/quicktime" | "video/x-m4v" | "video/x-matroska" | "video/x-msvideo";
|
|
600
600
|
base64: string;
|
|
601
601
|
originalSize: number;
|
|
602
602
|
}>, z.ZodObject<{
|
|
@@ -620,7 +620,7 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
620
620
|
}>, "many">>;
|
|
621
621
|
}, "strict", z.ZodTypeAny, {
|
|
622
622
|
source: string;
|
|
623
|
-
cellType: "
|
|
623
|
+
cellType: "markdown" | "code";
|
|
624
624
|
outputs?: {
|
|
625
625
|
type: "error" | "stream" | "execute_result" | "display_data";
|
|
626
626
|
text: string;
|
|
@@ -628,7 +628,7 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
628
628
|
}[] | undefined;
|
|
629
629
|
}, {
|
|
630
630
|
source: string;
|
|
631
|
-
cellType: "
|
|
631
|
+
cellType: "markdown" | "code";
|
|
632
632
|
outputs?: {
|
|
633
633
|
type: "error" | "stream" | "execute_result" | "display_data";
|
|
634
634
|
text: string;
|
|
@@ -640,7 +640,7 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
640
640
|
notebookPath: string;
|
|
641
641
|
cells: {
|
|
642
642
|
source: string;
|
|
643
|
-
cellType: "
|
|
643
|
+
cellType: "markdown" | "code";
|
|
644
644
|
outputs?: {
|
|
645
645
|
type: "error" | "stream" | "execute_result" | "display_data";
|
|
646
646
|
text: string;
|
|
@@ -652,7 +652,7 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
652
652
|
notebookPath: string;
|
|
653
653
|
cells: {
|
|
654
654
|
source: string;
|
|
655
|
-
cellType: "
|
|
655
|
+
cellType: "markdown" | "code";
|
|
656
656
|
outputs?: {
|
|
657
657
|
type: "error" | "stream" | "execute_result" | "display_data";
|
|
658
658
|
text: string;
|
|
@@ -711,7 +711,7 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
711
711
|
pageNumber: z.ZodNumber;
|
|
712
712
|
}, "strict", z.ZodTypeAny, {
|
|
713
713
|
type: "image";
|
|
714
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
714
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
715
715
|
base64: string;
|
|
716
716
|
originalSize: number;
|
|
717
717
|
pageNumber: number;
|
|
@@ -727,7 +727,7 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
727
727
|
} | undefined;
|
|
728
728
|
}, {
|
|
729
729
|
type: "image";
|
|
730
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
730
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
731
731
|
base64: string;
|
|
732
732
|
originalSize: number;
|
|
733
733
|
pageNumber: number;
|
|
@@ -747,7 +747,7 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
747
747
|
filePath: string;
|
|
748
748
|
pages: {
|
|
749
749
|
type: "image";
|
|
750
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
750
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
751
751
|
base64: string;
|
|
752
752
|
originalSize: number;
|
|
753
753
|
pageNumber: number;
|
|
@@ -769,7 +769,7 @@ export declare const ReadOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
769
769
|
filePath: string;
|
|
770
770
|
pages: {
|
|
771
771
|
type: "image";
|
|
772
|
-
mimeType: "image/png" | "image/jpeg" | "image/
|
|
772
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
773
773
|
base64: string;
|
|
774
774
|
originalSize: number;
|
|
775
775
|
pageNumber: number;
|
|
@@ -36,6 +36,15 @@ export declare const SaveWorkflowInputSchema: z.ZodObject<{
|
|
|
36
36
|
*/
|
|
37
37
|
script_path: z.ZodOptional<z.ZodString>;
|
|
38
38
|
scope: z.ZodEnum<["project", "global"]>;
|
|
39
|
+
/**
|
|
40
|
+
* 溯源(docs/dynamic-workflow/launch.md「`SaveWorkflow`」):本定义是从哪次 run 提炼来的。
|
|
41
|
+
* **不是第三条正文来源**——正文仍只能来自 `script` / `script_path`,handler 也不读它。
|
|
42
|
+
* 它唯一的作用是让那次 run 的完成卡认出自己已被保存
|
|
43
|
+
* (docs/dynamic-workflow/transcript-and-notifications.md「Which workflow a run is saved as」),
|
|
44
|
+
* 而这是模型存下来的定义与那次 run 之间**仅有的**持久联系:名字由模型另起,脚本被概括改写过,
|
|
45
|
+
* 两者都联接不回去。
|
|
46
|
+
*/
|
|
47
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
39
48
|
/** 解析回填:文件落点。 */
|
|
40
49
|
path: z.ZodOptional<z.ZodString>;
|
|
41
50
|
/** 解析回填:目标已存在,这次批准的是一次**覆盖**。 */
|
|
@@ -46,34 +55,36 @@ export declare const SaveWorkflowInputSchema: z.ZodObject<{
|
|
|
46
55
|
description: string;
|
|
47
56
|
name: string;
|
|
48
57
|
scope: "project" | "global";
|
|
58
|
+
path?: string | undefined;
|
|
49
59
|
script?: string | undefined;
|
|
50
60
|
whenToUse?: string | undefined;
|
|
51
|
-
path?: string | undefined;
|
|
52
61
|
args?: Record<string, {
|
|
53
62
|
type: "string" | "number" | "boolean" | "json";
|
|
54
63
|
default?: unknown;
|
|
55
64
|
description?: string | undefined;
|
|
56
65
|
required?: boolean | undefined;
|
|
57
66
|
}> | undefined;
|
|
58
|
-
script_path?: string | undefined;
|
|
59
67
|
overwrite?: boolean | undefined;
|
|
60
68
|
shadowing?: "hides_global" | "hidden_by_project" | undefined;
|
|
69
|
+
run_id?: string | undefined;
|
|
70
|
+
script_path?: string | undefined;
|
|
61
71
|
}, {
|
|
62
72
|
description: string;
|
|
63
73
|
name: string;
|
|
64
74
|
scope: "project" | "global";
|
|
75
|
+
path?: string | undefined;
|
|
65
76
|
script?: string | undefined;
|
|
66
77
|
whenToUse?: string | undefined;
|
|
67
|
-
path?: string | undefined;
|
|
68
78
|
args?: Record<string, {
|
|
69
79
|
type: "string" | "number" | "boolean" | "json";
|
|
70
80
|
default?: unknown;
|
|
71
81
|
description?: string | undefined;
|
|
72
82
|
required?: boolean | undefined;
|
|
73
83
|
}> | undefined;
|
|
74
|
-
script_path?: string | undefined;
|
|
75
84
|
overwrite?: boolean | undefined;
|
|
76
85
|
shadowing?: "hides_global" | "hidden_by_project" | undefined;
|
|
86
|
+
run_id?: string | undefined;
|
|
87
|
+
script_path?: string | undefined;
|
|
77
88
|
}>;
|
|
78
89
|
export type SaveWorkflowInput = z.infer<typeof SaveWorkflowInputSchema>;
|
|
79
90
|
export declare const SaveWorkflowInputJsonSchema: import("../index.js").JsonSchema;
|
|
@@ -91,13 +102,13 @@ export declare const SaveWorkflowOutputSchema: z.ZodObject<{
|
|
|
91
102
|
line: z.ZodNumber;
|
|
92
103
|
message: z.ZodString;
|
|
93
104
|
}, "strict", z.ZodTypeAny, {
|
|
94
|
-
code: number;
|
|
95
105
|
message: string;
|
|
106
|
+
code: number;
|
|
96
107
|
line: number;
|
|
97
108
|
column: number;
|
|
98
109
|
}, {
|
|
99
|
-
code: number;
|
|
100
110
|
message: string;
|
|
111
|
+
code: number;
|
|
101
112
|
line: number;
|
|
102
113
|
column: number;
|
|
103
114
|
}>, "many">;
|
|
@@ -109,30 +120,30 @@ export declare const SaveWorkflowOutputSchema: z.ZodObject<{
|
|
|
109
120
|
path: z.ZodString;
|
|
110
121
|
overwritten: z.ZodOptional<z.ZodBoolean>;
|
|
111
122
|
}, "strict", z.ZodTypeAny, {
|
|
123
|
+
path: string;
|
|
112
124
|
name: string;
|
|
113
125
|
ok: boolean;
|
|
114
126
|
diagnostics: {
|
|
115
|
-
code: number;
|
|
116
127
|
message: string;
|
|
128
|
+
code: number;
|
|
117
129
|
line: number;
|
|
118
130
|
column: number;
|
|
119
131
|
}[];
|
|
120
132
|
response: string;
|
|
121
133
|
scope: "project" | "global";
|
|
122
|
-
path: string;
|
|
123
134
|
overwritten?: boolean | undefined;
|
|
124
135
|
}, {
|
|
136
|
+
path: string;
|
|
125
137
|
name: string;
|
|
126
138
|
ok: boolean;
|
|
127
139
|
diagnostics: {
|
|
128
|
-
code: number;
|
|
129
140
|
message: string;
|
|
141
|
+
code: number;
|
|
130
142
|
line: number;
|
|
131
143
|
column: number;
|
|
132
144
|
}[];
|
|
133
145
|
response: string;
|
|
134
146
|
scope: "project" | "global";
|
|
135
|
-
path: string;
|
|
136
147
|
overwritten?: boolean | undefined;
|
|
137
148
|
}>;
|
|
138
149
|
export type SaveWorkflowOutput = z.infer<typeof SaveWorkflowOutputSchema>;
|