dsh-plugin-guide 0.3.21 → 0.3.23
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/README-es.md +15 -12
- package/README-hi.md +15 -12
- package/README-pt.md +15 -12
- package/README-zh.md +15 -12
- package/README.md +290 -280
- package/SKILL.md +36 -19
- package/dist/dsh-plugin-dev.js +113 -9
- package/guide/choosing-a-plugin.md +412 -0
- package/guide/choosing-a-plugin.zh-CN.md +414 -0
- package/guide/links.md +20 -2
- package/guide/migration-0.2.md +219 -0
- package/guide/plugin-dev-guide.md +99 -24
- package/guide/quick-reference.es.md +14 -8
- package/guide/quick-reference.hi.md +15 -9
- package/guide/quick-reference.md +18 -10
- package/guide/quick-reference.pt.md +15 -9
- package/guide/quick-reference.zh-CN.md +19 -11
- package/guide/release-engineering.md +2 -2
- package/guide/release-engineering.zh-CN.md +2 -2
- package/guide/unfixed-issues.md +117 -82
- package/guide/when-to-retire-a-plugin.md +127 -0
- package/guide/when-to-retire-a-plugin.zh-CN.md +127 -0
- package/icon.svg +5 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +8 -4
- package/references/official-docs/AGENTS.md +8 -5
- package/references/official-docs/CONTRIBUTING.i18n.yaml +6 -5
- package/references/official-docs/README.i18n.yaml +33 -5
- package/references/official-docs/README.zh.md +3 -3
- package/references/official-docs/SNAPSHOT.md +3 -3
- package/references/official-docs/THIRD_PARTY_NOTICES.md +34 -6
- package/references/official-docs/docs/AGENTS.md +4 -4
- package/references/official-docs/docs/agent-lifecycle.i18n.yaml +9 -5
- package/references/official-docs/docs/api-gateway.i18n.yaml +27 -5
- package/references/official-docs/docs/api-gateway.md +10 -9
- package/references/official-docs/docs/api-gateway.zh.md +10 -9
- package/references/official-docs/docs/architecture.i18n.yaml +36 -5
- package/references/official-docs/docs/architecture.md +10 -8
- package/references/official-docs/docs/architecture.zh.md +10 -8
- package/references/official-docs/docs/capability-seams.i18n.yaml +9 -5
- package/references/official-docs/docs/capability-seams.md +76 -32
- package/references/official-docs/docs/capability-seams.zh.md +76 -32
- package/references/official-docs/docs/config-catalog.i18n.yaml +18 -5
- package/references/official-docs/docs/config-catalog.md +1360 -765
- package/references/official-docs/docs/config-catalog.zh.md +1363 -767
- package/references/official-docs/docs/cookbook/adding-a-package.i18n.yaml +27 -5
- package/references/official-docs/docs/cookbook/adding-a-package.md +56 -3
- package/references/official-docs/docs/cookbook/adding-a-package.zh.md +54 -3
- package/references/official-docs/docs/cookbook/adding-a-remote-api.i18n.yaml +24 -5
- package/references/official-docs/docs/cookbook/adding-a-remote-api.md +2 -2
- package/references/official-docs/docs/cookbook/adding-a-remote-api.zh.md +2 -2
- package/references/official-docs/docs/cookbook/adding-a-session-format-version.i18n.yaml +39 -5
- package/references/official-docs/docs/cookbook/adding-a-session-format-version.md +46 -6
- package/references/official-docs/docs/cookbook/adding-a-session-format-version.zh.md +46 -6
- package/references/official-docs/docs/cookbook/adding-a-settings-card.i18n.yaml +21 -5
- package/references/official-docs/docs/cookbook/adding-a-settings-card.md +34 -64
- package/references/official-docs/docs/cookbook/adding-a-settings-card.zh.md +34 -64
- package/references/official-docs/docs/cookbook/adding-a-tool.i18n.yaml +30 -5
- package/references/official-docs/docs/cookbook/adding-a-tool.md +2 -2
- package/references/official-docs/docs/cookbook/adding-a-tool.zh.md +2 -2
- package/references/official-docs/docs/cookbook/adding-a-vendored-package.i18n.yaml +18 -5
- package/references/official-docs/docs/cookbook/adding-an-llm-adapter.i18n.yaml +18 -5
- package/references/official-docs/docs/cookbook/extension-cookbook.i18n.yaml +24 -5
- package/references/official-docs/docs/cookbook/extension-cookbook.md +3 -3
- package/references/official-docs/docs/cookbook/extension-cookbook.zh.md +3 -3
- package/references/official-docs/docs/cookbook/maintaining-dsh-code-review.i18n.yaml +21 -5
- package/references/official-docs/docs/cookbook/responding-to-pr-review-on-a-stack.i18n.yaml +15 -5
- package/references/official-docs/docs/cookbook/reviewing-persistence-type-changes.i18n.yaml +30 -5
- package/references/official-docs/docs/cookbook/reviewing-persistence-type-changes.md +13 -1
- package/references/official-docs/docs/cookbook/reviewing-persistence-type-changes.zh.md +13 -1
- package/references/official-docs/docs/cordis-api/context.i18n.yaml +72 -5
- package/references/official-docs/docs/cordis-api/events.i18n.yaml +36 -5
- package/references/official-docs/docs/cordis-api/fiber.i18n.yaml +75 -5
- package/references/official-docs/docs/cordis-api/inherited.md +15 -13
- package/references/official-docs/docs/cordis-api/registry.i18n.yaml +21 -5
- package/references/official-docs/docs/cordis-api/service.i18n.yaml +36 -5
- package/references/official-docs/docs/cordis-primer.i18n.yaml +21 -5
- package/references/official-docs/docs/cordis-tutorial/01-first-plugin.i18n.yaml +21 -5
- package/references/official-docs/docs/cordis-tutorial/02-lifecycle-and-effects.i18n.yaml +15 -5
- package/references/official-docs/docs/cordis-tutorial/03-services.i18n.yaml +21 -5
- package/references/official-docs/docs/cordis-tutorial/04-events.i18n.yaml +15 -5
- package/references/official-docs/docs/cordis-tutorial/05-config.i18n.yaml +18 -5
- package/references/official-docs/docs/cordis-tutorial/05-config.md +27 -0
- package/references/official-docs/docs/cordis-tutorial/05-config.zh.md +27 -0
- package/references/official-docs/docs/cordis-tutorial/06-composition-and-hmr.i18n.yaml +15 -5
- package/references/official-docs/docs/cordis-tutorial/07-into-the-harness.i18n.yaml +18 -5
- package/references/official-docs/docs/cordis-tutorial/index.i18n.yaml +15 -5
- package/references/official-docs/docs/deepseek-llm-api-wire-extensions.i18n.yaml +33 -5
- package/references/official-docs/docs/deepseek-llm-api-wire-extensions.md +7 -7
- package/references/official-docs/docs/deepseek-llm-api-wire-extensions.zh.md +7 -7
- package/references/official-docs/docs/defensive-patterns.i18n.yaml +27 -5
- package/references/official-docs/docs/dependency-catalog.json +2 -2
- package/references/official-docs/docs/development.i18n.yaml +48 -5
- package/references/official-docs/docs/development.md +27 -10
- package/references/official-docs/docs/development.zh.md +27 -10
- package/references/official-docs/docs/event-producer-consumer.i18n.yaml +12 -5
- package/references/official-docs/docs/event-producer-consumer.md +78 -66
- package/references/official-docs/docs/event-producer-consumer.zh.md +78 -66
- package/references/official-docs/docs/glossary.i18n.yaml +24 -5
- package/references/official-docs/docs/graph-atlas.i18n.yaml +9 -5
- package/references/official-docs/docs/i18n/README.i18n.yaml +18 -5
- package/references/official-docs/docs/i18n/README.md +12 -8
- package/references/official-docs/docs/i18n/README.zh.md +12 -8
- package/references/official-docs/docs/i18n/terminology.md +4 -4
- package/references/official-docs/docs/i18n/translation-prompt.md +2 -2
- package/references/official-docs/docs/i18n/translation-rules.i18n.yaml +27 -5
- package/references/official-docs/docs/module-graph.i18n.yaml +9 -5
- package/references/official-docs/docs/module-graph.md +348 -245
- package/references/official-docs/docs/module-graph.zh.md +348 -245
- package/references/official-docs/docs/persistence-catalog.i18n.yaml +2064 -5
- package/references/official-docs/docs/persistence-catalog.md +5275 -3205
- package/references/official-docs/docs/persistence-catalog.zh.md +5275 -3205
- package/references/official-docs/docs/persistence-changes/2026-09-11-initial.i18n.yaml +27 -5
- package/references/official-docs/docs/persistence-changes/2026-09-12-auto-review-error-metadata.i18n.yaml +27 -5
- package/references/official-docs/docs/persistence-changes/2026-09-14-image-offload.i18n.yaml +27 -5
- package/references/official-docs/docs/persistence-changes/2026-09-14-workspace-changes-event.i18n.yaml +27 -5
- package/references/official-docs/docs/persistence-changes/2026-09-16-session-format-v4.i18n.yaml +28 -0
- package/references/official-docs/docs/persistence-changes/2026-09-16-session-format-v4.md +120 -0
- package/references/official-docs/docs/persistence-changes/2026-09-16-session-format-v4.schema.json +16212 -0
- package/references/official-docs/docs/persistence-changes/2026-09-16-session-format-v4.zh.md +120 -0
- package/references/official-docs/docs/persistence-changes/2026-09-18-schedule-optional-title.i18n.yaml +28 -0
- package/references/official-docs/docs/persistence-changes/2026-09-18-schedule-optional-title.md +48 -0
- package/references/official-docs/docs/persistence-changes/2026-09-18-schedule-optional-title.schema.json +302 -0
- package/references/official-docs/docs/persistence-changes/2026-09-18-schedule-optional-title.zh.md +48 -0
- package/references/official-docs/docs/persistence-changes/2026-09-20-unknown-child-catalog.i18n.yaml +28 -0
- package/references/official-docs/docs/persistence-changes/2026-09-20-unknown-child-catalog.md +48 -0
- package/references/official-docs/docs/persistence-changes/2026-09-20-unknown-child-catalog.schema.json +250 -0
- package/references/official-docs/docs/persistence-changes/2026-09-20-unknown-child-catalog.zh.md +48 -0
- package/references/official-docs/docs/persistence-changes/2026-09-21-user-question-reply.i18n.yaml +28 -0
- package/references/official-docs/docs/persistence-changes/2026-09-21-user-question-reply.md +60 -0
- package/references/official-docs/docs/persistence-changes/2026-09-21-user-question-reply.schema.json +11405 -0
- package/references/official-docs/docs/persistence-changes/2026-09-21-user-question-reply.zh.md +60 -0
- package/references/official-docs/docs/persistence-changes/README.i18n.yaml +27 -5
- package/references/official-docs/docs/persistence-changes/README.md +17 -3
- package/references/official-docs/docs/persistence-changes/README.zh.md +17 -3
- package/references/official-docs/docs/persistence-changes/finalized/v4.json +379 -0
- package/references/official-docs/docs/persistence-changes/historical-formats/README.i18n.yaml +27 -5
- package/references/official-docs/docs/persistence-changes/historical-formats/README.md +3 -2
- package/references/official-docs/docs/persistence-changes/historical-formats/README.zh.md +3 -2
- package/references/official-docs/docs/persistence-changes/historical-formats/v0.i18n.yaml +1284 -5
- package/references/official-docs/docs/persistence-changes/historical-formats/v1.i18n.yaml +1284 -5
- package/references/official-docs/docs/persistence-changes/historical-formats/v2.i18n.yaml +1344 -5
- package/references/official-docs/docs/persistence-changes/historical-formats/v3.i18n.yaml +1441 -0
- package/references/official-docs/docs/persistence-changes/historical-formats/v3.md +5634 -0
- package/references/official-docs/docs/persistence-changes/historical-formats/v3.schema.json +61307 -0
- package/references/official-docs/docs/persistence-changes/historical-formats/v3.zh.md +5634 -0
- package/references/official-docs/docs/persistence-changes/releases/README.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.1.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.2.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.3.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.4.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.0.1-rc.5.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.1.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.2.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.3.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.5.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.6.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.7.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.0-rc.8.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.1.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.1-rc.2.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.1.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.2.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.3.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.4.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-alpha.5.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.2-rc.1.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.1.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.3-alpha.2.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.1.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.2.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-alpha.2.schema.json +3 -3
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.1.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-changes/releases/dsh-v0.1.5-rc.2.i18n.yaml +30 -5
- package/references/official-docs/docs/persistence-schema.json +12692 -48753
- package/references/official-docs/docs/postmortem/0001-acp-default-export-drops-inject.i18n.yaml +33 -5
- package/references/official-docs/docs/postmortem/0002-js-expression-disabled-filesystem-tools.i18n.yaml +27 -5
- package/references/official-docs/docs/postmortem/0003-web-agent-gui-feedback-loop.i18n.yaml +27 -5
- package/references/official-docs/docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.i18n.yaml +27 -5
- package/references/official-docs/docs/postmortem/README.i18n.yaml +6 -5
- package/references/official-docs/docs/rescope.i18n.yaml +18 -5
- package/references/official-docs/docs/rescope.md +1 -1
- package/references/official-docs/docs/rescope.zh.md +1 -1
- package/references/official-docs/docs/session-format-status.i18n.yaml +27 -5
- package/references/official-docs/docs/session-format-status.md +17 -3
- package/references/official-docs/docs/session-format-status.zh.md +17 -3
- package/references/official-docs/docs/subsystems/README.i18n.yaml +6 -5
- package/references/official-docs/docs/subsystems/README.md +6 -3
- package/references/official-docs/docs/subsystems/README.zh.md +6 -3
- package/references/official-docs/docs/subsystems/agent-team.i18n.yaml +21 -5
- package/references/official-docs/docs/subsystems/agent-team.md +52 -28
- package/references/official-docs/docs/subsystems/agent-team.zh.md +52 -28
- package/references/official-docs/docs/subsystems/approval.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/approval.md +1 -1
- package/references/official-docs/docs/subsystems/approval.zh.md +1 -1
- package/references/official-docs/docs/subsystems/attachment.i18n.yaml +12 -5
- package/references/official-docs/docs/subsystems/attachment.md +2 -2
- package/references/official-docs/docs/subsystems/attachment.zh.md +2 -2
- package/references/official-docs/docs/subsystems/boot.i18n.yaml +9 -5
- package/references/official-docs/docs/subsystems/boot.md +117 -17
- package/references/official-docs/docs/subsystems/boot.zh.md +117 -17
- package/references/official-docs/docs/subsystems/browser-use.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/claude-code-mods.i18n.yaml +28 -0
- package/references/official-docs/docs/subsystems/claude-code-mods.md +146 -0
- package/references/official-docs/docs/subsystems/claude-code-mods.zh.md +146 -0
- package/references/official-docs/docs/subsystems/client-modules.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/client-modules.md +13 -7
- package/references/official-docs/docs/subsystems/client-modules.zh.md +13 -7
- package/references/official-docs/docs/subsystems/client-resources.i18n.yaml +21 -5
- package/references/official-docs/docs/subsystems/commands.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/commands.md +1 -1
- package/references/official-docs/docs/subsystems/commands.zh.md +1 -1
- package/references/official-docs/docs/subsystems/compaction.i18n.yaml +21 -5
- package/references/official-docs/docs/subsystems/compaction.md +2 -2
- package/references/official-docs/docs/subsystems/compaction.zh.md +2 -2
- package/references/official-docs/docs/subsystems/computer-use.i18n.yaml +15 -5
- package/references/official-docs/docs/subsystems/conversation.i18n.yaml +30 -5
- package/references/official-docs/docs/subsystems/conversation.md +35 -6
- package/references/official-docs/docs/subsystems/conversation.zh.md +34 -5
- package/references/official-docs/docs/subsystems/core.i18n.yaml +36 -5
- package/references/official-docs/docs/subsystems/core.md +70 -214
- package/references/official-docs/docs/subsystems/core.zh.md +70 -214
- package/references/official-docs/docs/subsystems/credentials.i18n.yaml +24 -5
- package/references/official-docs/docs/subsystems/credentials.md +168 -5
- package/references/official-docs/docs/subsystems/credentials.zh.md +168 -5
- package/references/official-docs/docs/subsystems/deliverables.i18n.yaml +27 -5
- package/references/official-docs/docs/subsystems/extensions.i18n.yaml +6 -5
- package/references/official-docs/docs/subsystems/extensions.md +6 -4
- package/references/official-docs/docs/subsystems/extensions.zh.md +6 -4
- package/references/official-docs/docs/subsystems/feedback.i18n.yaml +27 -5
- package/references/official-docs/docs/subsystems/filesystem.i18n.yaml +33 -5
- package/references/official-docs/docs/subsystems/filesystem.md +10 -0
- package/references/official-docs/docs/subsystems/filesystem.zh.md +10 -0
- package/references/official-docs/docs/subsystems/goal.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/goal.md +1 -1
- package/references/official-docs/docs/subsystems/goal.zh.md +1 -1
- package/references/official-docs/docs/subsystems/jobs.i18n.yaml +24 -5
- package/references/official-docs/docs/subsystems/jobs.md +335 -126
- package/references/official-docs/docs/subsystems/jobs.zh.md +335 -126
- package/references/official-docs/docs/subsystems/llm-streaming.i18n.yaml +48 -5
- package/references/official-docs/docs/subsystems/llm-streaming.md +60 -31
- package/references/official-docs/docs/subsystems/llm-streaming.zh.md +60 -31
- package/references/official-docs/docs/subsystems/lsp.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/mcp.i18n.yaml +33 -5
- package/references/official-docs/docs/subsystems/mcp.md +2 -2
- package/references/official-docs/docs/subsystems/mcp.zh.md +2 -2
- package/references/official-docs/docs/subsystems/office-to-pdf.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/office-to-pdf.md +4 -4
- package/references/official-docs/docs/subsystems/office-to-pdf.zh.md +4 -4
- package/references/official-docs/docs/subsystems/otel.i18n.yaml +7 -0
- package/references/official-docs/docs/subsystems/otel.md +44 -0
- package/references/official-docs/docs/subsystems/otel.zh.md +44 -0
- package/references/official-docs/docs/subsystems/permission-presets.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/permission-presets.md +7 -6
- package/references/official-docs/docs/subsystems/permission-presets.zh.md +7 -6
- package/references/official-docs/docs/subsystems/persistence.i18n.yaml +36 -5
- package/references/official-docs/docs/subsystems/persistence.md +3 -3
- package/references/official-docs/docs/subsystems/persistence.zh.md +3 -3
- package/references/official-docs/docs/subsystems/plan.i18n.yaml +21 -5
- package/references/official-docs/docs/subsystems/plan.md +1 -1
- package/references/official-docs/docs/subsystems/plan.zh.md +1 -1
- package/references/official-docs/docs/subsystems/product-telemetry.i18n.yaml +10 -0
- package/references/official-docs/docs/subsystems/product-telemetry.md +79 -0
- package/references/official-docs/docs/subsystems/product-telemetry.zh.md +79 -0
- package/references/official-docs/docs/subsystems/ptc-runtime.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/sandbox.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/sandbox.md +1 -1
- package/references/official-docs/docs/subsystems/sandbox.zh.md +1 -1
- package/references/official-docs/docs/subsystems/schedule.i18n.yaml +39 -5
- package/references/official-docs/docs/subsystems/schedule.md +391 -33
- package/references/official-docs/docs/subsystems/schedule.zh.md +391 -33
- package/references/official-docs/docs/subsystems/scope.i18n.yaml +15 -5
- package/references/official-docs/docs/subsystems/scope.md +1 -1
- package/references/official-docs/docs/subsystems/scope.zh.md +1 -1
- package/references/official-docs/docs/subsystems/session-projection.i18n.yaml +15 -5
- package/references/official-docs/docs/subsystems/session-projection.md +20 -18
- package/references/official-docs/docs/subsystems/session-projection.zh.md +20 -18
- package/references/official-docs/docs/subsystems/session-query.i18n.yaml +27 -5
- package/references/official-docs/docs/subsystems/session-reference.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/session-telemetry.i18n.yaml +21 -5
- package/references/official-docs/docs/subsystems/session-telemetry.md +6 -4
- package/references/official-docs/docs/subsystems/session-telemetry.zh.md +6 -4
- package/references/official-docs/docs/subsystems/session-title.i18n.yaml +15 -5
- package/references/official-docs/docs/subsystems/session.i18n.yaml +66 -5
- package/references/official-docs/docs/subsystems/session.md +113 -62
- package/references/official-docs/docs/subsystems/session.zh.md +113 -62
- package/references/official-docs/docs/subsystems/settings.i18n.yaml +12 -5
- package/references/official-docs/docs/subsystems/settings.md +42 -292
- package/references/official-docs/docs/subsystems/settings.zh.md +42 -292
- package/references/official-docs/docs/subsystems/shell.i18n.yaml +24 -5
- package/references/official-docs/docs/subsystems/shell.md +29 -22
- package/references/official-docs/docs/subsystems/shell.zh.md +29 -22
- package/references/official-docs/docs/subsystems/sidebar-right.i18n.yaml +36 -5
- package/references/official-docs/docs/subsystems/sidebar-right.md +14 -9
- package/references/official-docs/docs/subsystems/sidebar-right.zh.md +14 -9
- package/references/official-docs/docs/subsystems/skills.i18n.yaml +27 -5
- package/references/official-docs/docs/subsystems/skills.md +2 -2
- package/references/official-docs/docs/subsystems/skills.zh.md +2 -2
- package/references/official-docs/docs/subsystems/slots.i18n.yaml +27 -5
- package/references/official-docs/docs/subsystems/slots.md +21 -7
- package/references/official-docs/docs/subsystems/slots.zh.md +21 -7
- package/references/official-docs/docs/subsystems/spill.i18n.yaml +15 -5
- package/references/official-docs/docs/subsystems/spill.md +1 -1
- package/references/official-docs/docs/subsystems/spill.zh.md +1 -1
- package/references/official-docs/docs/subsystems/ssh.i18n.yaml +21 -5
- package/references/official-docs/docs/subsystems/storage.i18n.yaml +24 -5
- package/references/official-docs/docs/subsystems/storage.md +1 -2
- package/references/official-docs/docs/subsystems/storage.zh.md +1 -2
- package/references/official-docs/docs/subsystems/subagent.i18n.yaml +30 -5
- package/references/official-docs/docs/subsystems/subagent.md +35 -60
- package/references/official-docs/docs/subsystems/subagent.zh.md +35 -60
- package/references/official-docs/docs/subsystems/subprocess.i18n.yaml +30 -5
- package/references/official-docs/docs/subsystems/system-prompt.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/terminal.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/todo.i18n.yaml +12 -5
- package/references/official-docs/docs/subsystems/todo.md +3 -3
- package/references/official-docs/docs/subsystems/todo.zh.md +3 -3
- package/references/official-docs/docs/subsystems/token-meter.i18n.yaml +12 -5
- package/references/official-docs/docs/subsystems/tools.i18n.yaml +24 -5
- package/references/official-docs/docs/subsystems/tools.md +15 -4
- package/references/official-docs/docs/subsystems/tools.zh.md +15 -4
- package/references/official-docs/docs/subsystems/typert.i18n.yaml +21 -5
- package/references/official-docs/docs/subsystems/typert.md +147 -6
- package/references/official-docs/docs/subsystems/typert.zh.md +147 -6
- package/references/official-docs/docs/subsystems/user-questions.i18n.yaml +27 -5
- package/references/official-docs/docs/subsystems/user-questions.md +128 -1
- package/references/official-docs/docs/subsystems/user-questions.zh.md +129 -2
- package/references/official-docs/docs/subsystems/voice-input.i18n.yaml +19 -0
- package/references/official-docs/docs/subsystems/voice-input.md +164 -0
- package/references/official-docs/docs/subsystems/voice-input.zh.md +164 -0
- package/references/official-docs/docs/subsystems/web-client.i18n.yaml +36 -5
- package/references/official-docs/docs/subsystems/web-client.md +10 -5
- package/references/official-docs/docs/subsystems/web-client.zh.md +10 -5
- package/references/official-docs/docs/subsystems/web-server.i18n.yaml +15 -5
- package/references/official-docs/docs/subsystems/web-server.md +12 -4
- package/references/official-docs/docs/subsystems/web-server.zh.md +12 -4
- package/references/official-docs/docs/subsystems/web.i18n.yaml +27 -5
- package/references/official-docs/docs/subsystems/webhook.i18n.yaml +18 -5
- package/references/official-docs/docs/subsystems/webhook.md +1 -1
- package/references/official-docs/docs/subsystems/webhook.zh.md +1 -1
- package/references/official-docs/docs/subsystems/workflow.i18n.yaml +27 -5
- package/references/official-docs/docs/subsystems/workflow.md +2 -2
- package/references/official-docs/docs/subsystems/workflow.zh.md +2 -2
- package/references/official-docs/docs/subsystems/workspace.i18n.yaml +27 -5
- package/references/official-docs/docs/subsystems/workspace.md +175 -35
- package/references/official-docs/docs/subsystems/workspace.zh.md +175 -35
- package/references/official-docs/docs/testing.i18n.yaml +33 -5
- package/references/official-docs/docs/testing.md +2 -2
- package/references/official-docs/docs/testing.zh.md +2 -2
- package/references/official-docs/docs/tool-catalog.i18n.yaml +312 -5
- package/references/official-docs/docs/tool-catalog.md +321 -92
- package/references/official-docs/docs/tool-catalog.zh.md +321 -92
- package/references/official-docs/docs/tool-execution-pipeline.i18n.yaml +9 -5
- package/references/official-docs/docs/tool-execution-pipeline.md +6 -3
- package/references/official-docs/docs/tool-execution-pipeline.zh.md +6 -3
- package/references/official-docs/docs/ui-radius.i18n.yaml +31 -0
- package/references/official-docs/docs/ui-radius.md +115 -0
- package/references/official-docs/docs/ui-radius.zh.md +115 -0
- package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/schedule-optional-bundle/guide.i18n.yaml +16 -0
- package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/schedule-optional-bundle/guide.md +22 -0
- package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/schedule-optional-bundle/guide.zh.md +22 -0
- package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/transcript-view-legacy-normal/guide.i18n.yaml +16 -0
- package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/transcript-view-legacy-normal/guide.md +25 -0
- package/references/official-docs/docs/upgrade-guide/v0.1.7-rc.2/transcript-view-legacy-normal/guide.zh.md +25 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/account-sign-in-errors/guide.i18n.yaml +16 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/account-sign-in-errors/guide.md +18 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/account-sign-in-errors/guide.zh.md +18 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/remove-runtime-invariants/guide.i18n.yaml +16 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/remove-runtime-invariants/guide.md +23 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/remove-runtime-invariants/guide.zh.md +23 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/schedule-bundle-retired/guide.i18n.yaml +16 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/schedule-bundle-retired/guide.md +22 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/schedule-bundle-retired/guide.zh.md +22 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/subpath-plugin-display-manifest/guide.i18n.yaml +16 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/subpath-plugin-display-manifest/guide.md +27 -0
- package/references/official-docs/docs/upgrade-guide/v0.2.0-rc.2/subpath-plugin-display-manifest/guide.zh.md +27 -0
- package/references/official-docs/docs/user/develop/basic/config.i18n.yaml +27 -5
- package/references/official-docs/docs/user/develop/basic/index.i18n.yaml +36 -5
- package/references/official-docs/docs/user/develop/basic/publish.i18n.yaml +30 -5
- package/references/official-docs/docs/user/develop/basic/publish.md +7 -1
- package/references/official-docs/docs/user/develop/basic/publish.zh.md +7 -1
- package/references/official-docs/docs/user/develop/basic/tool.i18n.yaml +15 -5
- package/references/official-docs/docs/user/develop/framework/events.i18n.yaml +45 -5
- package/references/official-docs/docs/user/develop/framework/index.i18n.yaml +30 -5
- package/references/official-docs/docs/user/develop/framework/service.i18n.yaml +39 -5
- package/references/official-docs/docs/user/develop/practice/dynamic-cordis.i18n.yaml +9 -5
- package/references/official-docs/docs/user/develop/practice/index.i18n.yaml +45 -5
- package/references/official-docs/docs/user/develop/practice/llm-adapter.i18n.yaml +33 -5
- package/references/official-docs/docs/user/develop/practice/llm-adapter.md +1 -1
- package/references/official-docs/docs/user/develop/practice/llm-adapter.zh.md +1 -1
- package/references/official-docs/docs/user/guide/github-review.i18n.yaml +24 -5
- package/references/official-docs/docs/user/guide/index.i18n.yaml +18 -5
- package/references/official-docs/docs/user/guide/index.md +1 -0
- package/references/official-docs/docs/user/guide/index.zh.md +1 -0
- package/references/official-docs/docs/user/guide/mcp-memory.i18n.yaml +36 -5
- package/references/official-docs/docs/user/guide/network-proxy.i18n.yaml +24 -5
- package/references/official-docs/docs/user/guide/providers-custom-form.png +0 -0
- package/references/official-docs/docs/user/guide/providers-custom-form.zh.png +0 -0
- package/references/official-docs/docs/user/guide/providers-models-page.png +0 -0
- package/references/official-docs/docs/user/guide/providers-models-page.zh.png +0 -0
- package/references/official-docs/docs/user/guide/providers.i18n.yaml +36 -5
- package/references/official-docs/docs/user/guide/providers.md +88 -78
- package/references/official-docs/docs/user/guide/providers.zh.md +102 -92
- package/references/official-docs/docs/user/guide/public-deployments.i18n.yaml +19 -0
- package/references/official-docs/docs/user/guide/public-deployments.md +33 -0
- package/references/official-docs/docs/user/guide/public-deployments.zh.md +33 -0
- package/references/official-docs/docs/user/guide/python-sdk.i18n.yaml +27 -5
- package/references/official-docs/docs/user/guide/python-sdk.md +1 -1
- package/references/official-docs/docs/user/guide/python-sdk.zh.md +1 -1
- package/references/official-docs/docs/user/guide/schedule.i18n.yaml +30 -5
- package/references/official-docs/docs/user/guide/schedule.md +69 -11
- package/references/official-docs/docs/user/guide/schedule.zh.md +69 -11
- package/references/official-docs/docs/user/index.i18n.yaml +9 -5
- package/references/official-docs/docs/web-styling.i18n.yaml +18 -5
- package/references/official-docs/docs/web-styling.md +12 -3
- package/references/official-docs/docs/web-styling.zh.md +12 -3
- package/references/official-docs/packages/AGENTS.md +1 -2
- package/references/official-docs/packages/README.md +5 -5
- package/references/official-docs/vendor/README.md +6 -2
- package/references/official-docs/website-docs.ts +10 -3
- package/references/official-plugin-dev-skill.md +124 -0
- package/references/sources.md +10 -5
- package/scripts/archive-discussions.ps1 +9 -1
- package/scripts/build-llms-full.mjs +64 -0
- package/scripts/check-docs-drift.ps1 +1 -1
- package/scripts/sync-official-docs.ps1 +1 -1
- package/templates/js/icon.svg +4 -0
- package/templates/js/locale/en.json +6 -0
- package/templates/js/locale/zh.json +6 -0
- package/templates/js/package.json +9 -1
- package/templates/ts/icon.svg +4 -0
- package/templates/ts/locale/en.json +6 -0
- package/templates/ts/locale/zh.json +6 -0
- package/templates/ts/package.json +9 -1
- package/references/official-docs/docs/subsystems/invariants.i18n.yaml +0 -6
- package/references/official-docs/docs/subsystems/invariants.md +0 -88
- package/references/official-docs/docs/subsystems/invariants.zh.md +0 -88
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
| `@deepseek-ai/dsh-plugin-manager` | `plugin_manager` | `ctx.tools`, `ctx.pluginManager`, `ctx.sandboxPolicy` | `tool/call`, `tool/result`, `user/message` | - | - |
|
|
23
23
|
| `@deepseek-ai/dsh-mcp-resources` | `list_mcp_resource_templates`, `list_mcp_resources`, `read_mcp_resource` | `ctx.tools`, `ctx.mcpResources` | `tool/call`, `tool/result` | - | - |
|
|
24
24
|
| `@deepseek-ai/dsh-experimental-browser-use-stagehand-native` | `stagehand_act`、`stagehand_extract`、`stagehand_navigate`、`stagehand_observe`、`stagehand_screenshot`、`stagehand_tabs` | `ctx.browserUse`、`ctx.agents`、`ctx.tools`、`ctx.systemPrompt` | `tool/call`、`tool/result` | - | - |
|
|
25
|
-
| `@deepseek-ai/dsh-tool-ask-user` | `ask_user_question` | `ctx.tools`、`ctx.userQuestions` | `tool/call`、`tool/result after
|
|
25
|
+
| `@deepseek-ai/dsh-tool-ask-user` | `ask_user_question` | `ctx.tools`、`ctx.userQuestions` | `tool/call`、`tool/result after an answer or timeout`、`late user/message` | - | ask_user_question 默认保持原有阻塞行为;设置 `mode: timed` 后才启用前台超时与 pending 结果,同时问题仍可回答;timed 模式内 `timeout: -1` 让本次调用无限期阻塞。 |
|
|
26
26
|
| `@deepseek-ai/dsh-tools` | `run_code` | `ctx.tools`、`ctx.ptcRuntime (execution time)`、`ctx.systemPrompt` | `tool/call`、`one tool/ptc-dispatch-start + tool/ptc-dispatch pair per bridged sub-call`、`tool/result` | - | 在 `mode: ptc`/`mode: both` 下,它由工具注册表所有,作为可过滤能力层之外的保留传输机制(参见 PTC mode Agent Note)。在 `ptc` 下,它是注册表对协议格式(wire format)的唯一贡献;其他可见能力在使用已加载运行时语言生成的 SDK 章节中声明。程序通过 binding 调用这些能力,调用按照原生并发约定调度:启动顺序和策略遵循提交顺序,并发安全的函数体最多重叠执行 `maxParallelSubCalls` 个。调用会重新进入完整且受守卫保护的工具流水线,并将每个嵌套执行关联到此外层结果。 |
|
|
27
27
|
| `@deepseek-ai/dsh-plan-mode` | `exit_plan_mode` | `ctx.tools`、`ctx.systemPrompt`、`ctx.userQuestions (execution time, opportunistic)` | `tool/call`、`plan/mode inactive on an approved review`、`tool/result` | - | 规划未激活时,exit_plan_mode 仍保留在面向模型的 schema 中,这样状态转换不会在规划策略变更之外额外造成工具目录变动。其执行路径会拒绝规划模式之外的调用;在规划模式下,它通过用户交互 seam 提交计划(批准/根据反馈继续规划),批准后会在步骤边界记录规划模式已停用。 |
|
|
28
|
-
| `@deepseek-ai/dsh-tool-bash` | `bash` | `ctx.tools`、`ctx.shell`、`ctx.systemPrompt`、`ctx.shellEnv`、`ctx.jobs
|
|
28
|
+
| `@deepseek-ai/dsh-tool-bash` | `bash` | `ctx.tools`、`ctx.shell`、`ctx.systemPrompt`、`ctx.shellEnv`、`ctx.jobs for run_in_background and the job-backed foreground path` | `tool/call`、`tool/result` | - | bash 工具是 bash 执行器 seam 面向模型的消费方。组合中有 job 注册表时,每次调用一启动就注册到通用 `ctx.jobs` 运行时,并通过 `job_*` 工具(来自 `@deepseek-ai/dsh-tool-jobs`)收集/停止;没有注册表或 `enableRunInBackground: false` 时,工具注册不带 `run_in_background` 参数的纯前台 schema。 |
|
|
29
29
|
| `@deepseek-ai/dsh-tool-present` | `present` | `ctx.tools`, `ctx.fs`, `ctx.sessionProjections` | `tool/call`, `deliverables/presented 在成功的最终结果之后`, `tool/result` | - | 交付归调用方 Session 所有;Web ui-deliverables 提供源文件打开与卡片。 |
|
|
30
|
-
| `@deepseek-ai/dsh-tool-pwsh` | `pwsh` | `ctx.tools`、`ctx.shell`、`ctx.systemPrompt`、`ctx.shellEnv`、`ctx.jobs
|
|
30
|
+
| `@deepseek-ai/dsh-tool-pwsh` | `pwsh` | `ctx.tools`、`ctx.shell`、`ctx.systemPrompt`、`ctx.shellEnv`、`ctx.jobs for run_in_background and the job-backed foreground path` | `tool/call`、`tool/result` | - | pwsh 工具是 Windows 组合中 bash 执行器 seam 的 PowerShell 方言消费方(由 `@deepseek-ai/dsh-pwsh-local` 等 PowerShell 执行器为 `ctx.shell` 提供后端);除沙箱接口外,它逐项对应 bash 工具调用。使用 `run_in_background` 的运行会注册到通用 `ctx.jobs` 运行时,并通过 `job_*` 工具收集/停止;托管的 `DSH_*` 环境来自 `@deepseek-ai/dsh-shell-env`。每次调用都在新进程中运行,不使用持久 PTY 会话。路径采用原生 `C:\...` 形式,变量采用 `$env:NAME`。 |
|
|
31
31
|
| `@deepseek-ai/dsh-tool-cordis` | `cordis_inspect_list`, `cordis_inspect_query` | `ctx.tools`, `ctx.cordisInspect` | `tool/call`, `tool/result` | - | 创造模式提供两个只读运行时检查工具。Cordis host runner 提供检查注册表;Client 查询需要已连接页面。持久化变更编写为组合包,再通过 plugin_manager 安装。 |
|
|
32
32
|
| `@deepseek-ai/dsh-tool-bash-persistent` | `bash` | `ctx.tools`、`ctx.terminals`、`an owning Agent at execution time` | `tool/call`、`PTY shell state`、`tool/result` | - | 一个按所有者隔离的持久 bash 工具;部署组合提供 PTY 后端,并可覆盖面向模型的环境描述。 |
|
|
33
33
|
| `@deepseek-ai/dsh-tool-pwsh-persistent` | `pwsh` | `ctx.tools`、`ctx.terminals`、`an owning Agent at execution time` | `tool/call`、`PTY shell state`、`tool/result` | - | 一个按所有者隔离的持久 pwsh 工具,持久 bash 工具的 Windows 对应物;部署组合提供 pwsh 方言的 PTY 后端,并可覆盖面向模型的环境描述。 |
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
| `@deepseek-ai/dsh-tool-fs-search` | `glob`、`grep` | `ctx.tools`、`ctx.subprocess`、`ctx.systemPrompt` | `tool/call`、`tool/result` | - | glob 和 grep 是无条件可用的发现工具,通过 ctx.subprocess spawn 随包提供的 ripgrep 二进制文件(`@vscode/ripgrep`),并作为普通前台调用运行,绝不作为后台任务;无需在宿主机安装 `rg`,也不经过 shell 层。本目录使用 `sampleOverCapGlobResults: true`;部署必须显式选择该行为。结果超过上限时,会通过可选的 ctx.spillStore 后端保存完整的格式化列表;在共置部署中,如果后端公开本地路径,返回的定位信息可供后续读取/搜索。 |
|
|
37
37
|
| `@deepseek-ai/dsh-tool-terminal` | `terminal_close`、`terminal_list`、`terminal_open`、`terminal_read`、`terminal_send`、`terminal_signal` | `ctx.tools`、`ctx.terminals`、`ctx.systemPrompt`、`ctx.jobs at call time for run_in_background` | `tool/call`、`tool/result` | - | 这 6 个终端工具需要选择启用,用于补充一次性 bash/文件系统工具。`terminal_send(run_in_background: true)` 会注册到 `ctx.jobs`;schema 不包含 TUI、具名按键序列、BEL、调整尺寸、自动启动和跨 agent 共享。 |
|
|
38
38
|
| `@deepseek-ai/dsh-tool-goal` | `create_goal`、`get_goal`、`update_goal` | `ctx.tools`、`ctx.agents`、`ctx.goals`、`ctx.systemPrompt`、`a calling Agent in an authorized open turn` | `tool/call`、`goal/change for mutations`、`tool/result` | - | create、edit、pause 和 resume 要求直接来自人类的根权限;complete 和 blocked 也接受确切的当前 Goal Round。blocked 的默认下限是 3 个获准的 Round。 |
|
|
39
|
-
| `@deepseek-ai/dsh-schedule` | `schedule_create`、`schedule_delete`、`schedule_list` | `ctx.tools`、`ctx.
|
|
39
|
+
| `@deepseek-ai/dsh-tool-schedule` | `schedule_create`、`schedule_delete`、`schedule_list`、`schedule_update` | `ctx.tools`、`ctx.schedule` | `tool/call`、Schedule storage domain 创建、更新或删除、`tool/result` | - | preset 或 Agent scope 挂载本包;由 preset 决定哪些 agent 获得这四个管理工具。每次调用都作用于调用方 Agent 的 Session。接受 after_seconds、显式绝对 at、有界固定速率 every_seconds、带显式 IANA 时区的每日与每周本地时间,以及作为五字段表达式的 cron。管理使用宿主 storage domain;到期消息会恢复原 Session。 |
|
|
40
40
|
| `@deepseek-ai/dsh-tool-lsp` | `lsp` | `ctx.tools`、`ctx.lsp`、`ctx.systemPrompt` | `tool/call`、`tool/result` | - | lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,因此其模型可见 schema 在更换提供方时保持稳定。运行时要求已注册提供方,例如 `@deepseek-ai/dsh-lsp-stdio`;如果没有提供方,查询会返回结构化 `LSP_UNAVAILABLE` 错误,而不会改变 schema。 |
|
|
41
41
|
| `@deepseek-ai/dsh-tool-ralph` | `ralph` | `ctx.tools`、`ctx.workflowEngine`、`ctx.subagents`、`ctx.systemPrompt`、`a calling Agent (exec.agent parents every fresh round)` | `tool/call`、`tool/result`、`workflow and child session events during execution` | - | 固定的前台工作流会在每个 Round 启动一个全新的结构化子级;模型只能选择不可变目标和可选的 Round 上限。 |
|
|
42
42
|
| `@deepseek-ai/dsh-tool-skill` | `skill` | `ctx.tools`、`ctx.agents`、`ctx.skills` | `tool/call`、`tool/result`、`user/message replacement catalogs via agent.inject()` | - | - |
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
| `@deepseek-ai/dsh-experimental-tool-agent-team` | `interrupt_agent`、`list_agents`、`send_message`、`spawn_teammate`、`team_task_create`、`team_task_get`、`team_task_list`、`team_task_update`、`wait_agent` | `ctx.tools`、`ctx.systemPrompt`、`ctx.agentTeams`、`an exact live Team member Agent` | `tool/call`、`team/member`、`team/message/queued`、`team/message/delivered`、`team/task`、`tool/result` | - | 这 9 个工具限定于隐式 Team Lead 与持久 teammate 作用域。随产品发布的 dsh-base bundle 默认禁用该包;文档中的 Agent Teams profile patch 会启用它,并禁用旧 continuable child 的同名控制工具。 |
|
|
48
48
|
| `@deepseek-ai/dsh-tool-todo` | `todo_write` | `ctx.tools`、`owning Agent session` | `tool/call`、`todo/write`、`tool/result` | - | todo_write 是会话所有的状态;UI 将最新的 todo/write 事件渲染为检查清单。`allowParallelInProgress` 是没有默认值的必填项,因此本目录明确选择 `true`,对应描述允许同时存在多个 `in_progress` 项。选择 `false` 的部署会获得同一工具,但描述会要求只能有 1 个活动任务。 |
|
|
49
49
|
| `@deepseek-ai/dsh-tool-workflow` | `workflow` | `ctx.tools`、`ctx.workflowEngine`、`ctx.systemPrompt`、`a calling Agent (exec.agent parents the script children)` | `tool/call`、`tool/result` | - | - |
|
|
50
|
+
| `@deepseek-ai/dsh-tool-workspace-dependencies` | `load_workspace_dependencies` | `ctx.tools` | `tool/call`, `tool/result` | - | - |
|
|
50
51
|
| `@deepseek-ai/dsh-tool-web` | `web_fetch`、`web_search` | `ctx.tools`、`ctx.web`、`ctx.systemPrompt` | `tool/call`、`tool/result` | - | web_search 和 web_fetch 将提供方选择置于 ctx.web 之后,使模型可见 schema 在更换后端时保持稳定。 |
|
|
51
52
|
|
|
52
53
|
<a id="deepseek-aidsh-plugin-manager"></a>
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
|
|
56
57
|
### `plugin_manager`
|
|
57
58
|
|
|
58
|
-
列出当前 profile 中的插件或组合包,启用或禁用它们,安装组合包或移除已安装的组合包。每项操作都要求 danger-full-access 权限或本次调用的批准。批准不改变会话权限模式。变更影响该 profile 的所有会话。先列出条目以获取准确标识。包安装可能运行已获批准的构建脚本。支持热更新的 profile 立即应用变更;仅启动时加载的 profile
|
|
59
|
+
列出当前 profile 中的插件或组合包,启用或禁用它们,安装组合包或移除已安装的组合包。每项操作都要求 danger-full-access 权限或本次调用的批准。批准不改变会话权限模式。变更影响该 profile 的所有会话。先列出条目以获取准确标识。包安装可能运行已获批准的构建脚本。支持热更新的 profile 立即应用变更;仅启动时加载的 profile 需要重启。不兼容的 DSH peer 依赖会阻止安装和激活。版本豁免可能导致崩溃和数据丢失:授权前必须警告用户,并获得用户对精确插件版本与运行时版本组合的明确许可。
|
|
59
60
|
|
|
60
61
|
```json
|
|
61
62
|
{
|
|
@@ -70,7 +71,9 @@
|
|
|
70
71
|
"set_plugin",
|
|
71
72
|
"set_bundle",
|
|
72
73
|
"install_bundle",
|
|
73
|
-
"remove_bundle"
|
|
74
|
+
"remove_bundle",
|
|
75
|
+
"list_version_exemptions",
|
|
76
|
+
"set_version_exemption"
|
|
74
77
|
]
|
|
75
78
|
},
|
|
76
79
|
"target": {
|
|
@@ -79,7 +82,15 @@
|
|
|
79
82
|
},
|
|
80
83
|
"enabled": {
|
|
81
84
|
"type": "boolean",
|
|
82
|
-
"description": "Required for set operations; defaults to true for installation."
|
|
85
|
+
"description": "Required for set operations; defaults to true for installation. For set_version_exemption, true grants and false revokes."
|
|
86
|
+
},
|
|
87
|
+
"runtimeVersion": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "For set_version_exemption: exact DSH version from list_version_exemptions. Target must be the manifest package-name@version, not an alias or version range."
|
|
90
|
+
},
|
|
91
|
+
"acceptRisk": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"description": "For granting an exemption: true only after warning the user about possible crashes and data loss and receiving explicit permission for this exact plugin/runtime pair. General installation permission is not enough."
|
|
83
94
|
},
|
|
84
95
|
"approvedBuilds": {
|
|
85
96
|
"type": "array",
|
|
@@ -88,6 +99,10 @@
|
|
|
88
99
|
"type": "string"
|
|
89
100
|
}
|
|
90
101
|
},
|
|
102
|
+
"registry": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "For install_bundle: the npm registry URL asked first, when the user names one; otherwise the configured registry is asked, and its configured fallbacks while a registry is unreachable."
|
|
105
|
+
},
|
|
91
106
|
"offset": {
|
|
92
107
|
"type": "number",
|
|
93
108
|
"description": "Zero-based list offset; defaults to 0."
|
|
@@ -438,7 +453,7 @@
|
|
|
438
453
|
|
|
439
454
|
### `ask_user_question`
|
|
440
455
|
|
|
441
|
-
|
|
456
|
+
继续操作前,如果需要确认、选择或缺失的信息,请向用户提出简明问题。
|
|
442
457
|
|
|
443
458
|
```json
|
|
444
459
|
{
|
|
@@ -504,7 +519,7 @@
|
|
|
504
519
|
|
|
505
520
|
来源:[`packages/interaction/tool-ask-user/src/index.ts`](../packages/interaction/tool-ask-user/src/index.ts)
|
|
506
521
|
|
|
507
|
-
ask_user_question
|
|
522
|
+
ask_user_question 默认保持原有阻塞行为;设置 `mode: timed` 后才启用前台超时与 pending 结果,同时问题仍可回答;timed 模式内 `timeout: -1` 让本次调用无限期阻塞。
|
|
508
523
|
|
|
509
524
|
<a id="deepseek-aidsh-tools"></a>
|
|
510
525
|
|
|
@@ -512,19 +527,19 @@ ask_user_question 会暂停工具调用,直到当前 UI 提供方返回人类
|
|
|
512
527
|
|
|
513
528
|
### `run_code`
|
|
514
529
|
|
|
515
|
-
针对可用工具执行 TypeScript 程序。接受两个必填参数:`code`,即异步函数的**函数体**(仅使用可擦除语法;支持顶层 `await` 和 `return
|
|
530
|
+
针对可用工具执行 TypeScript 程序。接受两个必填参数:`description`,简要说明该程序做什么;以及 `code`,即异步函数的**函数体**(仅使用可擦除语法;支持顶层 `await` 和 `return`)。请根据系统提示词中的声明,以 `await tools.name(args)` 形式调用工具。只有打印或返回的内容属于程序输出,请谨慎筛选。含图片的子工具结果会在运行结束后附加。
|
|
516
531
|
|
|
517
532
|
```json
|
|
518
533
|
{
|
|
519
534
|
"type": "object",
|
|
520
535
|
"properties": {
|
|
521
|
-
"
|
|
536
|
+
"description": {
|
|
522
537
|
"type": "string",
|
|
523
|
-
"description": "
|
|
538
|
+
"description": "Clear, concise description of what this program does in active voice, 5-10 words (shown in the UI). Provide `description` before `code` in the arguments. Examples: \"Count TODO markers across packages\"; \"Read failing test and its fixture\"; \"Rename config key in every cordis.yml\"."
|
|
524
539
|
},
|
|
525
|
-
"
|
|
540
|
+
"code": {
|
|
526
541
|
"type": "string",
|
|
527
|
-
"description": "
|
|
542
|
+
"description": "The program: the body of an async TypeScript function."
|
|
528
543
|
},
|
|
529
544
|
"timeoutMs": {
|
|
530
545
|
"type": "number",
|
|
@@ -540,12 +555,12 @@ ask_user_question 会暂停工具调用,直到当前 UI 提供方返回人类
|
|
|
540
555
|
},
|
|
541
556
|
"justification": {
|
|
542
557
|
"type": "string",
|
|
543
|
-
"description": "Reason this complete program needs wider access, shown to the user for approval."
|
|
558
|
+
"description": "Reason this complete program needs wider access, shown to the user for approval. Use the language of the user’s current request."
|
|
544
559
|
}
|
|
545
560
|
},
|
|
546
561
|
"required": [
|
|
547
|
-
"
|
|
548
|
-
"
|
|
562
|
+
"description",
|
|
563
|
+
"code"
|
|
549
564
|
]
|
|
550
565
|
}
|
|
551
566
|
```
|
|
@@ -560,7 +575,7 @@ ask_user_question 会暂停工具调用,直到当前 UI 提供方返回人类
|
|
|
560
575
|
|
|
561
576
|
### `exit_plan_mode`
|
|
562
577
|
|
|
563
|
-
|
|
578
|
+
仅在规划模式下使用。提交计划供用户评审,并在获批后退出规划模式。用户可以批准(从你的下一步骤起执行计划),也可以要求继续规划;其反馈会通过工具结果返回,请修改后再次提交。
|
|
564
579
|
|
|
565
580
|
```json
|
|
566
581
|
{
|
|
@@ -587,23 +602,23 @@ ask_user_question 会暂停工具调用,直到当前 UI 提供方返回人类
|
|
|
587
602
|
|
|
588
603
|
### `bash`
|
|
589
604
|
|
|
590
|
-
执行 bash 命令(`bash -c`)并返回 stdout/stderr。每次调用都在新 shell
|
|
605
|
+
执行 bash 命令(`bash -c`)并返回 stdout/stderr。每次调用都在新 shell 中运行;请传入 `workdir`,不要使用 `cd`。托管的 `$DSH_*` 变量公开当前 harness 环境信息。较长的输出会截断,只保留尾部;如可用,完整输出会保存到文件并报告其路径。请在参数中先提供 `description`,再提供 `command`。在任何删除或移动之前,请确认解析后的绝对目标路径正是预期路径;绝不要对未经检查的计算路径执行此类操作。未设置的变量会展开为空字符串,因此请用 `${VAR:?}` 保护此类路径中的变量。命令可能在文件沙箱中运行;被阻止的文件操作报告为 `[sandbox: file access denied under <mode> mode]`,这是策略拒绝:请勿换一种方式重试。
|
|
591
606
|
|
|
592
607
|
```json
|
|
593
608
|
{
|
|
594
609
|
"type": "object",
|
|
595
610
|
"properties": {
|
|
596
|
-
"command": {
|
|
597
|
-
"type": "string",
|
|
598
|
-
"description": "The bash command to execute."
|
|
599
|
-
},
|
|
600
611
|
"description": {
|
|
601
612
|
"type": "string",
|
|
602
613
|
"description": "Clear, concise description of what this command does in active voice, 5-10 words (shown in the UI). Examples: \"ls\" → \"List files in current directory\"; \"git status\" → \"Show working tree status\"; \"npm install\" → \"Install package dependencies\"."
|
|
603
614
|
},
|
|
615
|
+
"command": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"description": "The bash command to execute."
|
|
618
|
+
},
|
|
604
619
|
"timeoutMs": {
|
|
605
620
|
"type": "number",
|
|
606
|
-
"description": "Timeout in milliseconds. The executor applies its configured default and cap
|
|
621
|
+
"description": "Timeout in milliseconds. The executor applies its configured default and cap; on expiry the command moves to the background as a job instead of being killed."
|
|
607
622
|
},
|
|
608
623
|
"workdir": {
|
|
609
624
|
"type": "string",
|
|
@@ -615,15 +630,15 @@ ask_user_question 会暂停工具调用,直到当前 UI 提供方返回人类
|
|
|
615
630
|
}
|
|
616
631
|
},
|
|
617
632
|
"required": [
|
|
618
|
-
"
|
|
619
|
-
"
|
|
633
|
+
"description",
|
|
634
|
+
"command"
|
|
620
635
|
]
|
|
621
636
|
}
|
|
622
637
|
```
|
|
623
638
|
|
|
624
639
|
来源:[`packages/shell/tool-bash/src/index.ts`](../packages/shell/tool-bash/src/index.ts)
|
|
625
640
|
|
|
626
|
-
bash 工具是 bash 执行器 seam
|
|
641
|
+
bash 工具是 bash 执行器 seam 面向模型的消费方。组合中有 job 注册表时,每次调用一启动就注册到通用 `ctx.jobs` 运行时,并通过 `job_*` 工具(来自 `@deepseek-ai/dsh-tool-jobs`)收集/停止;没有注册表或 `enableRunInBackground: false` 时,工具注册不带 `run_in_background` 参数的纯前台 schema。
|
|
627
642
|
|
|
628
643
|
<a id="deepseek-aidsh-tool-present"></a>
|
|
629
644
|
|
|
@@ -631,7 +646,7 @@ bash 工具是 bash 执行器 seam 面向模型的消费方。使用 `run_in_bac
|
|
|
631
646
|
|
|
632
647
|
### `present`
|
|
633
648
|
|
|
634
|
-
|
|
649
|
+
将已有文件声明为交付给用户的最终交付物。当用户需要独立文件时使用,尤其是 Office 文档、电子表格和演示文稿;如果最终回复已经足够,优先使用最终回复。用户打开的是当前文件;不复制其内容。
|
|
635
650
|
|
|
636
651
|
```json
|
|
637
652
|
{
|
|
@@ -639,6 +654,7 @@ bash 工具是 bash 执行器 seam 面向模型的消费方。使用 `run_in_bac
|
|
|
639
654
|
"properties": {
|
|
640
655
|
"files": {
|
|
641
656
|
"type": "array",
|
|
657
|
+
"description": "Usually the 1-2 most important deliverables; at most 4 per call.",
|
|
642
658
|
"items": {
|
|
643
659
|
"type": "object",
|
|
644
660
|
"additionalProperties": false,
|
|
@@ -674,23 +690,23 @@ bash 工具是 bash 执行器 seam 面向模型的消费方。使用 `run_in_bac
|
|
|
674
690
|
|
|
675
691
|
### `pwsh`
|
|
676
692
|
|
|
677
|
-
执行 PowerShell 命令(`pwsh -Command`)并返回 stdout/stderr。每次调用都在新的 pwsh
|
|
693
|
+
执行 PowerShell 命令(`pwsh -Command`)并返回 stdout/stderr。每次调用都在新的 pwsh 进程中运行;请传入 `workdir`,不要使用 `cd`。路径采用 Windows 原生形式(`C:\...`);使用 `$env:NAME` 读取环境变量。托管的 `$env:DSH_*` 变量公开当前 harness 环境信息。较长的输出会截断,只保留尾部;如可用,完整输出会保存到文件并报告其路径。在 Windows 上,被强制终止的命令会以 `[exit code: 1]` 结算且不带信号标记,请将其视为中断,而不是命令失败。请在参数中先提供 `description`,再提供 `command`。在任何删除或移动之前,请确认解析后的绝对目标路径正是预期路径;绝不要对未经检查的计算路径执行此类操作。不要给 `$HOME` 等自动变量赋值;变量名不区分大小写,因此 `$home` 就是同一个只读变量。命令可能在文件沙箱中运行;被阻止的文件操作报告为 `[sandbox: file access denied under <mode> mode]`,这是策略拒绝:请勿换一种方式重试。
|
|
678
694
|
|
|
679
695
|
```json
|
|
680
696
|
{
|
|
681
697
|
"type": "object",
|
|
682
698
|
"properties": {
|
|
683
|
-
"command": {
|
|
684
|
-
"type": "string",
|
|
685
|
-
"description": "The PowerShell command to execute."
|
|
686
|
-
},
|
|
687
699
|
"description": {
|
|
688
700
|
"type": "string",
|
|
689
701
|
"description": "Clear, concise description of what this command does in active voice, 5-10 words (shown in the UI). Examples: \"ls\" → \"List files in current directory\"; \"git status\" → \"Show working tree status\"; \"Get-Process\" → \"List running processes\"."
|
|
690
702
|
},
|
|
703
|
+
"command": {
|
|
704
|
+
"type": "string",
|
|
705
|
+
"description": "The PowerShell command to execute."
|
|
706
|
+
},
|
|
691
707
|
"timeoutMs": {
|
|
692
708
|
"type": "number",
|
|
693
|
-
"description": "Timeout in milliseconds. The executor applies its configured default and cap
|
|
709
|
+
"description": "Timeout in milliseconds. The executor applies its configured default and cap; on expiry the command moves to the background as a job instead of being killed."
|
|
694
710
|
},
|
|
695
711
|
"workdir": {
|
|
696
712
|
"type": "string",
|
|
@@ -702,8 +718,8 @@ bash 工具是 bash 执行器 seam 面向模型的消费方。使用 `run_in_bac
|
|
|
702
718
|
}
|
|
703
719
|
},
|
|
704
720
|
"required": [
|
|
705
|
-
"
|
|
706
|
-
"
|
|
721
|
+
"description",
|
|
722
|
+
"command"
|
|
707
723
|
]
|
|
708
724
|
}
|
|
709
725
|
```
|
|
@@ -731,7 +747,7 @@ pwsh 工具是 Windows 组合中 bash 执行器 seam 的 PowerShell 方言消费
|
|
|
731
747
|
|
|
732
748
|
### `cordis_inspect_query`
|
|
733
749
|
|
|
734
|
-
执行 Inspect Provider
|
|
750
|
+
执行 Inspect Provider 声明的只读查询。platform、provider 和 method 必须来自 cordis_inspect_list,input 必须符合该方法的 schema。编写插件代码前,用本工具读取准确的 Service 方法、Event 模式、插件 Config schema、Tool schema、主题 token,或实时 Slot 树与 props。Host 查询在本地运行。Client 查询在配置的超时内等待页面首个有效响应;否则返回 Client 错误,或提示重新连接后重试。本工具不能调用业务 Service 方法或修改运行时。
|
|
735
751
|
|
|
736
752
|
```json
|
|
737
753
|
{
|
|
@@ -945,11 +961,11 @@ pwsh 工具是 Windows 组合中 bash 执行器 seam 的 PowerShell 方言消费
|
|
|
945
961
|
"properties": {
|
|
946
962
|
"file_path": {
|
|
947
963
|
"type": "string",
|
|
948
|
-
"description": "Path to edit, resolved by the filesystem backend."
|
|
964
|
+
"description": "Path to edit, resolved by the filesystem backend. Provide `file_path` before `old_string` and `new_string` in the arguments."
|
|
949
965
|
},
|
|
950
966
|
"old_string": {
|
|
951
967
|
"type": "string",
|
|
952
|
-
"description": "Literal text to replace.
|
|
968
|
+
"description": "Literal text to replace."
|
|
953
969
|
},
|
|
954
970
|
"new_string": {
|
|
955
971
|
"type": "string",
|
|
@@ -1001,7 +1017,7 @@ pwsh 工具是 Windows 组合中 bash 执行器 seam 的 PowerShell 方言消费
|
|
|
1001
1017
|
|
|
1002
1018
|
### `read_image`
|
|
1003
1019
|
|
|
1004
|
-
读取 PNG/JPEG/WebP/GIF
|
|
1020
|
+
读取 PNG/JPEG/WebP/GIF 文件并返回图像本身。大图会自动缩小;不要为了查看图片而安装图片库或创建缩略图。
|
|
1005
1021
|
|
|
1006
1022
|
```json
|
|
1007
1023
|
{
|
|
@@ -1030,7 +1046,7 @@ pwsh 工具是 Windows 组合中 bash 执行器 seam 的 PowerShell 方言消费
|
|
|
1030
1046
|
"properties": {
|
|
1031
1047
|
"file_path": {
|
|
1032
1048
|
"type": "string",
|
|
1033
|
-
"description": "Path to write, resolved by the filesystem backend."
|
|
1049
|
+
"description": "Path to write, resolved by the filesystem backend. Provide `file_path` before `content` in the arguments."
|
|
1034
1050
|
},
|
|
1035
1051
|
"content": {
|
|
1036
1052
|
"type": "string",
|
|
@@ -1054,7 +1070,7 @@ pwsh 工具是 Windows 组合中 bash 执行器 seam 的 PowerShell 方言消费
|
|
|
1054
1070
|
|
|
1055
1071
|
### `glob`
|
|
1056
1072
|
|
|
1057
|
-
查找路径匹配 glob
|
|
1073
|
+
查找路径匹配 glob 模式的文件(不含目录),包括隐藏文件和被忽略的文件。最多按修改时间顺序返回 100 条路径;更大的结果会从顶层条目中抽样,并报告完整列表的保存位置。
|
|
1058
1074
|
|
|
1059
1075
|
```json
|
|
1060
1076
|
{
|
|
@@ -1079,7 +1095,7 @@ pwsh 工具是 Windows 组合中 bash 执行器 seam 的 PowerShell 方言消费
|
|
|
1079
1095
|
|
|
1080
1096
|
### `grep`
|
|
1081
1097
|
|
|
1082
|
-
使用 ripgrep
|
|
1098
|
+
使用 ripgrep 正则表达式搜索文件内容。返回带行号的匹配行,并按文件分组。最多返回 250 条匹配;更大的结果会报告完整匹配列表的保存位置。
|
|
1083
1099
|
|
|
1084
1100
|
```json
|
|
1085
1101
|
{
|
|
@@ -1279,7 +1295,7 @@ glob 和 grep 是无条件可用的发现工具,通过 ctx.subprocess spawn
|
|
|
1279
1295
|
|
|
1280
1296
|
### `create_goal`
|
|
1281
1297
|
|
|
1282
|
-
|
|
1298
|
+
创建一个持久化目标,使当前会话跨自动延续 Round 持续工作。当直接人类请求是长期目标时使用,即使用户没有说「目标」;不要用于单轮工作。
|
|
1283
1299
|
|
|
1284
1300
|
```json
|
|
1285
1301
|
{
|
|
@@ -1304,7 +1320,7 @@ glob 和 grep 是无条件可用的发现工具,通过 ctx.subprocess spawn
|
|
|
1304
1320
|
|
|
1305
1321
|
### `get_goal`
|
|
1306
1322
|
|
|
1307
|
-
|
|
1323
|
+
读取当前会话目标,包括 update_goal 所需的 id 和 revision。
|
|
1308
1324
|
|
|
1309
1325
|
```json
|
|
1310
1326
|
{
|
|
@@ -1317,7 +1333,7 @@ glob 和 grep 是无条件可用的发现工具,通过 ctx.subprocess spawn
|
|
|
1317
1333
|
|
|
1318
1334
|
### `update_goal`
|
|
1319
1335
|
|
|
1320
|
-
|
|
1336
|
+
更新当前目标。
|
|
1321
1337
|
|
|
1322
1338
|
```json
|
|
1323
1339
|
{
|
|
@@ -1333,7 +1349,7 @@ glob 和 grep 是无条件可用的发现工具,通过 ctx.subprocess spawn
|
|
|
1333
1349
|
},
|
|
1334
1350
|
"action": {
|
|
1335
1351
|
"type": "string",
|
|
1336
|
-
"description": "edit
|
|
1352
|
+
"description": "edit, pause, and resume require a direct top-level human request. complete and blocked are also allowed during an automatic continuation of this goal; blocked is rejected before the configured minimum round count.",
|
|
1337
1353
|
"enum": [
|
|
1338
1354
|
"edit",
|
|
1339
1355
|
"pause",
|
|
@@ -1352,7 +1368,7 @@ glob 和 grep 是无条件可用的发现工具,通过 ctx.subprocess spawn
|
|
|
1352
1368
|
},
|
|
1353
1369
|
"blocked_reason": {
|
|
1354
1370
|
"type": "string",
|
|
1355
|
-
"description": "
|
|
1371
|
+
"description": "Required only with action blocked: the concrete condition that persisted across rounds and blocks progress."
|
|
1356
1372
|
}
|
|
1357
1373
|
},
|
|
1358
1374
|
"required": [
|
|
@@ -1367,13 +1383,13 @@ glob 和 grep 是无条件可用的发现工具,通过 ctx.subprocess spawn
|
|
|
1367
1383
|
|
|
1368
1384
|
create、edit、pause 和 resume 要求直接来自人类的根权限;complete 和 blocked 也接受确切的当前 Goal Round。blocked 的默认下限是 3 个获准的 Round。
|
|
1369
1385
|
|
|
1370
|
-
<a id="deepseek-aidsh-schedule"></a>
|
|
1386
|
+
<a id="deepseek-aidsh-tool-schedule"></a>
|
|
1371
1387
|
|
|
1372
|
-
## `@deepseek-ai/dsh-schedule`
|
|
1388
|
+
## `@deepseek-ai/dsh-tool-schedule`
|
|
1373
1389
|
|
|
1374
1390
|
### `schedule_create`
|
|
1375
1391
|
|
|
1376
|
-
|
|
1392
|
+
在当前会话中创建一条提醒,到期时投递 prompt。请恰好提供一个时间参数:after_seconds、at、every_seconds、daily、weekly 或 cron。时区中不存在的本地时间会被跳过;重复出现的本地时间只在较早的时刻触发一次。停机后,重复提醒只投递最近错过的一次。崩溃后可能重复投递。
|
|
1377
1393
|
|
|
1378
1394
|
```json
|
|
1379
1395
|
{
|
|
@@ -1383,13 +1399,82 @@ create、edit、pause 和 resume 要求直接来自人类的根权限;complete
|
|
|
1383
1399
|
"type": "string",
|
|
1384
1400
|
"description": "Reminder content to present when the target becomes due."
|
|
1385
1401
|
},
|
|
1402
|
+
"title": {
|
|
1403
|
+
"type": "string",
|
|
1404
|
+
"description": "Task name of at most 120 characters, shown on the task card and in task lists."
|
|
1405
|
+
},
|
|
1386
1406
|
"after_seconds": {
|
|
1387
1407
|
"type": "number",
|
|
1388
|
-
"description": "
|
|
1408
|
+
"description": "Delay in whole seconds."
|
|
1389
1409
|
},
|
|
1390
1410
|
"every_seconds": {
|
|
1391
1411
|
"type": "number",
|
|
1392
|
-
"description": "Fixed-rate
|
|
1412
|
+
"description": "Fixed-rate interval in whole seconds, at least 60, aligned to the creation time; changing it with schedule_update re-aligns it to the save time."
|
|
1413
|
+
},
|
|
1414
|
+
"daily": {
|
|
1415
|
+
"type": "object",
|
|
1416
|
+
"description": "Every day at a local time.",
|
|
1417
|
+
"additionalProperties": false,
|
|
1418
|
+
"properties": {
|
|
1419
|
+
"time": {
|
|
1420
|
+
"type": "string",
|
|
1421
|
+
"description": "HH:mm:ss with optional 1-3 fractional digits, for example 23:00:00."
|
|
1422
|
+
},
|
|
1423
|
+
"time_zone": {
|
|
1424
|
+
"type": "string",
|
|
1425
|
+
"description": "UTC or IANA Area/Location, for example Asia/Shanghai."
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
"required": [
|
|
1429
|
+
"time",
|
|
1430
|
+
"time_zone"
|
|
1431
|
+
]
|
|
1432
|
+
},
|
|
1433
|
+
"weekly": {
|
|
1434
|
+
"type": "object",
|
|
1435
|
+
"description": "On the given weekdays at a local time.",
|
|
1436
|
+
"additionalProperties": false,
|
|
1437
|
+
"properties": {
|
|
1438
|
+
"time": {
|
|
1439
|
+
"type": "string",
|
|
1440
|
+
"description": "HH:mm:ss with optional 1-3 fractional digits, for example 09:00:00."
|
|
1441
|
+
},
|
|
1442
|
+
"time_zone": {
|
|
1443
|
+
"type": "string",
|
|
1444
|
+
"description": "UTC or IANA Area/Location, for example Asia/Shanghai."
|
|
1445
|
+
},
|
|
1446
|
+
"weekdays": {
|
|
1447
|
+
"type": "array",
|
|
1448
|
+
"description": "ISO weekdays, Monday 1 through Sunday 7, without repetitions.",
|
|
1449
|
+
"items": {
|
|
1450
|
+
"type": "integer"
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
"required": [
|
|
1455
|
+
"time",
|
|
1456
|
+
"time_zone",
|
|
1457
|
+
"weekdays"
|
|
1458
|
+
]
|
|
1459
|
+
},
|
|
1460
|
+
"cron": {
|
|
1461
|
+
"type": "object",
|
|
1462
|
+
"description": "Five-field Vixie cron expression in a time zone.",
|
|
1463
|
+
"additionalProperties": false,
|
|
1464
|
+
"properties": {
|
|
1465
|
+
"expression": {
|
|
1466
|
+
"type": "string",
|
|
1467
|
+
"description": "minute hour day-of-month month day-of-week, for example \"*/15 9-17 * * 1-5\". When both day fields are restricted, a date matches if either one matches."
|
|
1468
|
+
},
|
|
1469
|
+
"time_zone": {
|
|
1470
|
+
"type": "string",
|
|
1471
|
+
"description": "UTC or IANA Area/Location, for example Asia/Shanghai."
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
"required": [
|
|
1475
|
+
"expression",
|
|
1476
|
+
"time_zone"
|
|
1477
|
+
]
|
|
1393
1478
|
},
|
|
1394
1479
|
"at": {
|
|
1395
1480
|
"oneOf": [
|
|
@@ -1417,20 +1502,21 @@ create、edit、pause 和 resume 要求直接来自人类的根权限;complete
|
|
|
1417
1502
|
]
|
|
1418
1503
|
}
|
|
1419
1504
|
],
|
|
1420
|
-
"description": "Absolute target
|
|
1505
|
+
"description": "Absolute target: an RFC 3339 date-time with offset, or a local date, time, and IANA time_zone."
|
|
1421
1506
|
}
|
|
1422
1507
|
},
|
|
1423
1508
|
"required": [
|
|
1424
|
-
"prompt"
|
|
1509
|
+
"prompt",
|
|
1510
|
+
"title"
|
|
1425
1511
|
]
|
|
1426
1512
|
}
|
|
1427
1513
|
```
|
|
1428
1514
|
|
|
1429
|
-
来源:[`packages/schedule/schedule/src/
|
|
1515
|
+
来源:[`packages/schedule/tool-schedule/src/index.ts`](../packages/schedule/tool-schedule/src/index.ts)
|
|
1430
1516
|
|
|
1431
1517
|
### `schedule_delete`
|
|
1432
1518
|
|
|
1433
|
-
|
|
1519
|
+
删除当前会话中的一条提醒,活动或已结束的均可。删除不会撤回已经入队的提醒消息。
|
|
1434
1520
|
|
|
1435
1521
|
```json
|
|
1436
1522
|
{
|
|
@@ -1438,7 +1524,7 @@ create、edit、pause 和 resume 要求直接来自人类的根权限;complete
|
|
|
1438
1524
|
"properties": {
|
|
1439
1525
|
"id": {
|
|
1440
1526
|
"type": "string",
|
|
1441
|
-
"description": "Exact
|
|
1527
|
+
"description": "Exact schedule id."
|
|
1442
1528
|
}
|
|
1443
1529
|
},
|
|
1444
1530
|
"required": [
|
|
@@ -1447,11 +1533,11 @@ create、edit、pause 和 resume 要求直接来自人类的根权限;complete
|
|
|
1447
1533
|
}
|
|
1448
1534
|
```
|
|
1449
1535
|
|
|
1450
|
-
来源:[`packages/schedule/schedule/src/
|
|
1536
|
+
来源:[`packages/schedule/tool-schedule/src/index.ts`](../packages/schedule/tool-schedule/src/index.ts)
|
|
1451
1537
|
|
|
1452
1538
|
### `schedule_list`
|
|
1453
1539
|
|
|
1454
|
-
|
|
1540
|
+
列出当前会话中的活动提醒。
|
|
1455
1541
|
|
|
1456
1542
|
```json
|
|
1457
1543
|
{
|
|
@@ -1460,9 +1546,135 @@ create、edit、pause 和 resume 要求直接来自人类的根权限;complete
|
|
|
1460
1546
|
}
|
|
1461
1547
|
```
|
|
1462
1548
|
|
|
1463
|
-
来源:[`packages/schedule/schedule/src/
|
|
1549
|
+
来源:[`packages/schedule/tool-schedule/src/index.ts`](../packages/schedule/tool-schedule/src/index.ts)
|
|
1550
|
+
|
|
1551
|
+
### `schedule_update`
|
|
1552
|
+
|
|
1553
|
+
原地修改一条提醒并保留其 id。提供新的 title、prompt,或至多一个时间参数;未提供的字段保持原值。需要相对延迟时请新建一条提醒。
|
|
1554
|
+
|
|
1555
|
+
```json
|
|
1556
|
+
{
|
|
1557
|
+
"type": "object",
|
|
1558
|
+
"properties": {
|
|
1559
|
+
"id": {
|
|
1560
|
+
"type": "string",
|
|
1561
|
+
"description": "Schedule id returned by schedule_list."
|
|
1562
|
+
},
|
|
1563
|
+
"title": {
|
|
1564
|
+
"type": "string",
|
|
1565
|
+
"description": "New task name of at most 120 characters."
|
|
1566
|
+
},
|
|
1567
|
+
"prompt": {
|
|
1568
|
+
"type": "string",
|
|
1569
|
+
"description": "New reminder content."
|
|
1570
|
+
},
|
|
1571
|
+
"every_seconds": {
|
|
1572
|
+
"type": "number",
|
|
1573
|
+
"description": "Fixed-rate interval in whole seconds, at least 60, aligned to the creation time; changing it with schedule_update re-aligns it to the save time."
|
|
1574
|
+
},
|
|
1575
|
+
"daily": {
|
|
1576
|
+
"type": "object",
|
|
1577
|
+
"description": "Every day at a local time.",
|
|
1578
|
+
"additionalProperties": false,
|
|
1579
|
+
"properties": {
|
|
1580
|
+
"time": {
|
|
1581
|
+
"type": "string",
|
|
1582
|
+
"description": "HH:mm:ss with optional 1-3 fractional digits, for example 23:00:00."
|
|
1583
|
+
},
|
|
1584
|
+
"time_zone": {
|
|
1585
|
+
"type": "string",
|
|
1586
|
+
"description": "UTC or IANA Area/Location, for example Asia/Shanghai."
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
"required": [
|
|
1590
|
+
"time",
|
|
1591
|
+
"time_zone"
|
|
1592
|
+
]
|
|
1593
|
+
},
|
|
1594
|
+
"weekly": {
|
|
1595
|
+
"type": "object",
|
|
1596
|
+
"description": "On the given weekdays at a local time.",
|
|
1597
|
+
"additionalProperties": false,
|
|
1598
|
+
"properties": {
|
|
1599
|
+
"time": {
|
|
1600
|
+
"type": "string",
|
|
1601
|
+
"description": "HH:mm:ss with optional 1-3 fractional digits, for example 09:00:00."
|
|
1602
|
+
},
|
|
1603
|
+
"time_zone": {
|
|
1604
|
+
"type": "string",
|
|
1605
|
+
"description": "UTC or IANA Area/Location, for example Asia/Shanghai."
|
|
1606
|
+
},
|
|
1607
|
+
"weekdays": {
|
|
1608
|
+
"type": "array",
|
|
1609
|
+
"description": "ISO weekdays, Monday 1 through Sunday 7, without repetitions.",
|
|
1610
|
+
"items": {
|
|
1611
|
+
"type": "integer"
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
},
|
|
1615
|
+
"required": [
|
|
1616
|
+
"time",
|
|
1617
|
+
"time_zone",
|
|
1618
|
+
"weekdays"
|
|
1619
|
+
]
|
|
1620
|
+
},
|
|
1621
|
+
"cron": {
|
|
1622
|
+
"type": "object",
|
|
1623
|
+
"description": "Five-field Vixie cron expression in a time zone.",
|
|
1624
|
+
"additionalProperties": false,
|
|
1625
|
+
"properties": {
|
|
1626
|
+
"expression": {
|
|
1627
|
+
"type": "string",
|
|
1628
|
+
"description": "minute hour day-of-month month day-of-week, for example \"*/15 9-17 * * 1-5\". When both day fields are restricted, a date matches if either one matches."
|
|
1629
|
+
},
|
|
1630
|
+
"time_zone": {
|
|
1631
|
+
"type": "string",
|
|
1632
|
+
"description": "UTC or IANA Area/Location, for example Asia/Shanghai."
|
|
1633
|
+
}
|
|
1634
|
+
},
|
|
1635
|
+
"required": [
|
|
1636
|
+
"expression",
|
|
1637
|
+
"time_zone"
|
|
1638
|
+
]
|
|
1639
|
+
},
|
|
1640
|
+
"at": {
|
|
1641
|
+
"oneOf": [
|
|
1642
|
+
{
|
|
1643
|
+
"type": "string"
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
"type": "object",
|
|
1647
|
+
"additionalProperties": false,
|
|
1648
|
+
"properties": {
|
|
1649
|
+
"date": {
|
|
1650
|
+
"type": "string"
|
|
1651
|
+
},
|
|
1652
|
+
"time": {
|
|
1653
|
+
"type": "string"
|
|
1654
|
+
},
|
|
1655
|
+
"time_zone": {
|
|
1656
|
+
"type": "string"
|
|
1657
|
+
}
|
|
1658
|
+
},
|
|
1659
|
+
"required": [
|
|
1660
|
+
"date",
|
|
1661
|
+
"time",
|
|
1662
|
+
"time_zone"
|
|
1663
|
+
]
|
|
1664
|
+
}
|
|
1665
|
+
],
|
|
1666
|
+
"description": "Absolute target: an RFC 3339 date-time with offset, or a local date, time, and IANA time_zone."
|
|
1667
|
+
}
|
|
1668
|
+
},
|
|
1669
|
+
"required": [
|
|
1670
|
+
"id"
|
|
1671
|
+
]
|
|
1672
|
+
}
|
|
1673
|
+
```
|
|
1674
|
+
|
|
1675
|
+
Source: [`packages/schedule/tool-schedule/src/index.ts`](../packages/schedule/tool-schedule/src/index.ts)
|
|
1464
1676
|
|
|
1465
|
-
|
|
1677
|
+
preset 或 Agent scope 挂载本包;由 preset 决定哪些 agent 获得这四个管理工具。每次调用都作用于调用方 Agent 的 Session。接受 after_seconds、显式绝对 at、有界固定速率 every_seconds、带显式 IANA 时区的每日与每周本地时间,以及作为五字段表达式的 cron。管理使用宿主 storage domain;到期消息会恢复原 Session。
|
|
1466
1678
|
|
|
1467
1679
|
<a id="deepseek-aidsh-tool-lsp"></a>
|
|
1468
1680
|
|
|
@@ -1549,7 +1761,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1549
1761
|
|
|
1550
1762
|
### `skill`
|
|
1551
1763
|
|
|
1552
|
-
|
|
1764
|
+
加载某项 skill(技能)的完整说明。在执行点名某项 skill 或与会话 skill 目录中某项 skill 明确匹配的任务前,请调用此工具。
|
|
1553
1765
|
|
|
1554
1766
|
```json
|
|
1555
1767
|
{
|
|
@@ -1831,7 +2043,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1831
2043
|
|
|
1832
2044
|
### `subagent`
|
|
1833
2045
|
|
|
1834
|
-
将一项自包含任务委派给 subagent(在自身上下文中工作的独立 agent),用它卸载聚焦且独立的工作,例如研究、限定范围的实现或分析,以免消耗当前对话的上下文。subagent
|
|
2046
|
+
将一项自包含任务委派给 subagent(在自身上下文中工作的独立 agent),用它卸载聚焦且独立的工作,例如研究、限定范围的实现或分析,以免消耗当前对话的上下文。subagent 会返回结果,但不会返回中间步骤。此调用默认等待结果。
|
|
1835
2047
|
|
|
1836
2048
|
```json
|
|
1837
2049
|
{
|
|
@@ -1847,7 +2059,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1847
2059
|
},
|
|
1848
2060
|
"run_in_background": {
|
|
1849
2061
|
"type": "boolean",
|
|
1850
|
-
"description": "
|
|
2062
|
+
"description": "Run as a background job and return its id (collect with job_output, stop with job_kill). Defaults to false."
|
|
1851
2063
|
}
|
|
1852
2064
|
},
|
|
1853
2065
|
"required": [
|
|
@@ -1867,7 +2079,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1867
2079
|
|
|
1868
2080
|
### `interrupt_agent`
|
|
1869
2081
|
|
|
1870
|
-
|
|
2082
|
+
请 subagent 停止当前工作。此调用不等待其停止即返回。之后可以用 send_message 继续与直接子级的对话。它启动的 subagent 会继续运行。
|
|
1871
2083
|
|
|
1872
2084
|
```json
|
|
1873
2085
|
{
|
|
@@ -1875,7 +2087,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1875
2087
|
"properties": {
|
|
1876
2088
|
"agent_id": {
|
|
1877
2089
|
"type": "string",
|
|
1878
|
-
"description": "The
|
|
2090
|
+
"description": "The id of an agent created under you: your direct child or a deeper descendant."
|
|
1879
2091
|
}
|
|
1880
2092
|
},
|
|
1881
2093
|
"required": [
|
|
@@ -1888,7 +2100,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1888
2100
|
|
|
1889
2101
|
### `list_agents`
|
|
1890
2102
|
|
|
1891
|
-
|
|
2103
|
+
列出你启动的 subagent 及其 id、标签和状态。running 表示正在工作;inactive 表示当前未在工作。subagent 完成时你会收到通知,无需反复查看状态。使用 send_message 继续对话。
|
|
1892
2104
|
|
|
1893
2105
|
```json
|
|
1894
2106
|
{
|
|
@@ -1896,7 +2108,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1896
2108
|
"properties": {
|
|
1897
2109
|
"scope": {
|
|
1898
2110
|
"type": "string",
|
|
1899
|
-
"description": "children (default) lists direct children
|
|
2111
|
+
"description": "children (default) lists direct children, which accept send_message in any status. descendants lists the whole tree below you with each entry's parent session id and depth; entries deeper than 1 accept only interrupt_agent.",
|
|
1900
2112
|
"enum": [
|
|
1901
2113
|
"children",
|
|
1902
2114
|
"descendants"
|
|
@@ -1910,7 +2122,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1910
2122
|
|
|
1911
2123
|
### `send_message`
|
|
1912
2124
|
|
|
1913
|
-
|
|
2125
|
+
向某个 agent 发送消息。工作中的 agent 会在下一个 step 收到消息;空闲的 agent 会以该消息开始新一轮。返回投递确认,而不是该 agent 的答案。
|
|
1914
2126
|
|
|
1915
2127
|
```json
|
|
1916
2128
|
{
|
|
@@ -1942,7 +2154,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1942
2154
|
|
|
1943
2155
|
### `job_kill`
|
|
1944
2156
|
|
|
1945
|
-
|
|
2157
|
+
请求取消正在运行的后台任务。
|
|
1946
2158
|
|
|
1947
2159
|
```json
|
|
1948
2160
|
{
|
|
@@ -1980,7 +2192,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1980
2192
|
|
|
1981
2193
|
### `job_output`
|
|
1982
2194
|
|
|
1983
|
-
|
|
2195
|
+
读取后台任务:流式任务返回自上次读取以来的输出,已完成的最终输出任务返回其结果。
|
|
1984
2196
|
|
|
1985
2197
|
```json
|
|
1986
2198
|
{
|
|
@@ -1992,11 +2204,11 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
1992
2204
|
},
|
|
1993
2205
|
"wait": {
|
|
1994
2206
|
"type": "boolean",
|
|
1995
|
-
"description": "Block until the job
|
|
2207
|
+
"description": "Block until the job finishes or the timeout expires; a timed-out wait leaves the job running. Defaults to false."
|
|
1996
2208
|
},
|
|
1997
2209
|
"timeout_ms": {
|
|
1998
2210
|
"type": "number",
|
|
1999
|
-
"description": "Max wait in milliseconds
|
|
2211
|
+
"description": "Max wait in milliseconds with wait: true. Defaults to and is capped by configuration."
|
|
2000
2212
|
}
|
|
2001
2213
|
},
|
|
2002
2214
|
"required": [
|
|
@@ -2023,7 +2235,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
2023
2235
|
"properties": {
|
|
2024
2236
|
"target": {
|
|
2025
2237
|
"type": "string",
|
|
2026
|
-
"description": "Teammate
|
|
2238
|
+
"description": "Teammate target returned by spawn_teammate or list_agents."
|
|
2027
2239
|
}
|
|
2028
2240
|
},
|
|
2029
2241
|
"required": [
|
|
@@ -2036,7 +2248,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
2036
2248
|
|
|
2037
2249
|
### `list_agents`
|
|
2038
2250
|
|
|
2039
|
-
列出 Lead 与所有持久 teammate
|
|
2251
|
+
列出 Lead 与所有持久 teammate,以及可用于寻址的 target 和当前可用状态。inactive 表示没有轮次在执行,不表示任务结果。provisioning 与 failed 描述成员创建状态。
|
|
2040
2252
|
|
|
2041
2253
|
```json
|
|
2042
2254
|
{
|
|
@@ -2049,7 +2261,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
2049
2261
|
|
|
2050
2262
|
### `send_message`
|
|
2051
2263
|
|
|
2052
|
-
向另一名 Team member 发送一条持久消息。running target 会在最近的步骤边界收到消息;
|
|
2264
|
+
向另一名 Team member 发送一条持久消息。running target 会在最近的步骤边界收到消息;inactive target 会启动或恢复一个 turn。
|
|
2053
2265
|
|
|
2054
2266
|
```json
|
|
2055
2267
|
{
|
|
@@ -2057,7 +2269,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
2057
2269
|
"properties": {
|
|
2058
2270
|
"target": {
|
|
2059
2271
|
"type": "string",
|
|
2060
|
-
"description": "
|
|
2272
|
+
"description": "Member target returned by spawn_teammate or list_agents, including lead."
|
|
2061
2273
|
},
|
|
2062
2274
|
"message": {
|
|
2063
2275
|
"type": "string",
|
|
@@ -2192,7 +2404,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
2192
2404
|
},
|
|
2193
2405
|
"owner": {
|
|
2194
2406
|
"type": "string",
|
|
2195
|
-
"description": "Optional member
|
|
2407
|
+
"description": "Optional member target from spawn_teammate or list_agents, matching ownerName; use unowned for tasks without an owner."
|
|
2196
2408
|
},
|
|
2197
2409
|
"ready": {
|
|
2198
2410
|
"type": "boolean",
|
|
@@ -2266,7 +2478,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
2266
2478
|
},
|
|
2267
2479
|
"owner": {
|
|
2268
2480
|
"type": "string",
|
|
2269
|
-
"description": "Member
|
|
2481
|
+
"description": "Member target from spawn_teammate or list_agents for Lead-only reassign; omit to unassign."
|
|
2270
2482
|
}
|
|
2271
2483
|
},
|
|
2272
2484
|
"required": [
|
|
@@ -2306,7 +2518,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
|
|
|
2306
2518
|
|
|
2307
2519
|
### `todo_write`
|
|
2308
2520
|
|
|
2309
|
-
|
|
2521
|
+
记录并更新任务列表,用于规划多步骤工作并展示进度;简单的单步骤任务无需使用。开始前为每个具体步骤添加一项 todo。只要工作尚未完成,就将正在处理的 todo 标记为 `in_progress`,仅在工作并行运行时同时标记多项。某项 todo 完成后立即标记为 `completed`。
|
|
2310
2522
|
|
|
2311
2523
|
```json
|
|
2312
2524
|
{
|
|
@@ -2358,18 +2570,14 @@ todo_write 是会话所有的状态;UI 将最新的 todo/write 事件渲染为
|
|
|
2358
2570
|
|
|
2359
2571
|
运行用于大规模编排 subagent 的 JavaScript 工作流脚本。当工作会分散到许多相互独立的部分时,请使用此工具,例如审查大量文件、执行迁移、开展多角度研究或对发现进行对抗式验证;此时应将编排写成脚本,而不是逐轮委派。
|
|
2360
2572
|
|
|
2361
|
-
工作流的身份通过 `meta` 参数以 JSON 形式传入:必填的 `name`(简短 kebab-case)和 `description` 字符串,以及可选的 `whenToUse` 字符串和 `phases` 数组(`{title, detail?, provider?, model?}`)。`script` 参数只能是纯 JavaScript **函数体**,不能是 TypeScript,也不能包含 `export const meta` 语句;meta 是参数而非代码。脚本支持顶层 await;请以 `return <value>` 结尾,该值必须可以 JSON 序列化,并作为此工具的结果。
|
|
2362
|
-
|
|
2363
2573
|
脚本函数体提供以下钩子:
|
|
2364
2574
|
|
|
2365
|
-
- `agent(prompt, opts?): Promise<any>`:运行一个 subagent 直至完成。不提供 `opts.schema` 时,解析为子级最终文本;提供 `opts.schema` 时,它必须是以对象为根、且**只能**使用 type/properties/required/additionalProperties/items/enum/const/oneOf 的 JSON Schema
|
|
2366
|
-
- `pipeline(items, ...stages): Promise<any[]>`:让每个条目分别经过各阶段,阶段之间**没有**屏障;多阶段工作优先使用它。每个阶段接收 `(prev, item, index)
|
|
2575
|
+
- `agent(prompt, opts?): Promise<any>`:运行一个 subagent 直至完成。不提供 `opts.schema` 时,解析为子级最终文本;提供 `opts.schema` 时,它必须是以对象为根、且**只能**使用 type/properties/required/additionalProperties/items/enum/const/oneOf 的 JSON Schema,此时解析为通过校验的对象。子级失败时解析为 `null`,可使用 `.filter(Boolean)` 过滤。其他选项包括 `label`(显示名称)、`phase`(进度组),以及相互独立的 `provider`/`model` LLM(大语言模型)目标覆盖项。
|
|
2576
|
+
- `pipeline(items, ...stages): Promise<any[]>`:让每个条目分别经过各阶段,阶段之间**没有**屏障;多阶段工作优先使用它。每个阶段接收 `(prev, item, index)`。阶段异常会将该**条目**变为 `null`,并跳过它的剩余阶段。
|
|
2367
2577
|
- `parallel(thunks): Promise<any[]>`:并发运行零参数函数并等待**全部**完成。它会形成屏障,仅当某个阶段确实需要汇总全部先前结果时使用。抛出异常的 thunk 解析为 `null`。
|
|
2368
2578
|
- `phase(title)`:开始一个进度阶段;`log(message)`:说明进度;`args`:工具调用的 `args` 输入,原样提供。
|
|
2369
2579
|
|
|
2370
|
-
如果误用钩子(参数错误、未知选项、不受支持的 schema
|
|
2371
|
-
|
|
2372
|
-
约束:并发上限和 agent 总数上限均会生效;不提供文件系统、网络、定时器或 Node.js API。具体工作由 agent 完成,脚本只负责编排。该运行在前台执行:整个脚本完成后,调用才会返回。
|
|
2580
|
+
如果误用钩子(参数错误、未知选项、不受支持的 schema、触发上限),整个脚本会终止,而不会产生 `null`。脚本没有文件系统、网络、定时器或 Node.js API;具体工作由 agent 完成。
|
|
2373
2581
|
|
|
2374
2582
|
```json
|
|
2375
2583
|
{
|
|
@@ -2377,11 +2585,11 @@ todo_write 是会话所有的状态;UI 将最新的 todo/write 事件渲染为
|
|
|
2377
2585
|
"properties": {
|
|
2378
2586
|
"script": {
|
|
2379
2587
|
"type": "string",
|
|
2380
|
-
"description": "The plain
|
|
2588
|
+
"description": "The plain JavaScript body, not TypeScript and without an `export const meta` statement; top-level await is allowed. End with `return <value>`; the JSON-serializable value is this tool's result."
|
|
2381
2589
|
},
|
|
2382
2590
|
"meta": {
|
|
2383
2591
|
"type": "object",
|
|
2384
|
-
"description": "The workflow identity
|
|
2592
|
+
"description": "The workflow identity as plain JSON, not code.",
|
|
2385
2593
|
"additionalProperties": true,
|
|
2386
2594
|
"properties": {
|
|
2387
2595
|
"name": {
|
|
@@ -2435,6 +2643,10 @@ todo_write 是会话所有的状态;UI 将最新的 todo/write 事件渲染为
|
|
|
2435
2643
|
"type": "object",
|
|
2436
2644
|
"description": "Optional JSON input exposed to the script as the `args` global (wrap a bare list as a field, e.g. {\"files\": [...]}).",
|
|
2437
2645
|
"additionalProperties": true
|
|
2646
|
+
},
|
|
2647
|
+
"run_in_background": {
|
|
2648
|
+
"type": "boolean",
|
|
2649
|
+
"description": "Run as a background job: return a job id immediately instead of waiting; the return value arrives with the completion notice."
|
|
2438
2650
|
}
|
|
2439
2651
|
},
|
|
2440
2652
|
"required": [
|
|
@@ -2446,6 +2658,23 @@ todo_write 是会话所有的状态;UI 将最新的 todo/write 事件渲染为
|
|
|
2446
2658
|
|
|
2447
2659
|
来源:[`packages/workflow/tool-workflow/src/index.ts`](../packages/workflow/tool-workflow/src/index.ts)
|
|
2448
2660
|
|
|
2661
|
+
<a id="deepseek-aidsh-tool-workspace-dependencies"></a>
|
|
2662
|
+
|
|
2663
|
+
## `@deepseek-ai/dsh-tool-workspace-dependencies`
|
|
2664
|
+
|
|
2665
|
+
### `load_workspace_dependencies`
|
|
2666
|
+
|
|
2667
|
+
获取随包附带的 Python 和库目录的绝对路径,以及随包 Python 发行版的版本。payload 提供 Node.js 和 pnpm 时才返回对应路径。Python 含 numpy、pandas、python-docx、python-pptx、openpyxl、Pillow、lxml 与 XlsxWriter。除非用户或工作区指令选择了别的环境,Office 文件请使用这些库。返回 Node.js 和 pnpm 路径时,用该 Node 可执行文件和 pnpm 脚本路径运行 pnpm。本工具不改 PATH,也不改包管理器设置。
|
|
2668
|
+
|
|
2669
|
+
```json
|
|
2670
|
+
{
|
|
2671
|
+
"type": "object",
|
|
2672
|
+
"properties": {}
|
|
2673
|
+
}
|
|
2674
|
+
```
|
|
2675
|
+
|
|
2676
|
+
来源:[`packages/skill/tool-workspace-dependencies/src/index.ts`](../packages/skill/tool-workspace-dependencies/src/index.ts)
|
|
2677
|
+
|
|
2449
2678
|
<a id="deepseek-aidsh-tool-web"></a>
|
|
2450
2679
|
|
|
2451
2680
|
## `@deepseek-ai/dsh-tool-web`
|
|
@@ -2473,7 +2702,7 @@ todo_write 是会话所有的状态;UI 将最新的 todo/write 事件渲染为
|
|
|
2473
2702
|
|
|
2474
2703
|
### `web_search`
|
|
2475
2704
|
|
|
2476
|
-
在 Web
|
|
2705
|
+
在 Web 上搜索最新信息。返回可选的摘要答案和来源 URL 列表。
|
|
2477
2706
|
|
|
2478
2707
|
```json
|
|
2479
2708
|
{
|
|
@@ -2481,7 +2710,7 @@ todo_write 是会话所有的状态;UI 将最新的 todo/write 事件渲染为
|
|
|
2481
2710
|
"properties": {
|
|
2482
2711
|
"queries": {
|
|
2483
2712
|
"type": "array",
|
|
2484
|
-
"description": "
|
|
2713
|
+
"description": "1–4 search queries; their results are merged.",
|
|
2485
2714
|
"items": {
|
|
2486
2715
|
"type": "string"
|
|
2487
2716
|
}
|