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
|
@@ -106,7 +106,7 @@ interface Agent {
|
|
|
106
106
|
* turn and runs when the aborted activity converges to idle; a `disposed`
|
|
107
107
|
* cancel leaves it parked. A wake submitted while already idle always opens
|
|
108
108
|
* its turn boundary, even when its message is cleared before the driver
|
|
109
|
-
* claims ([
|
|
109
|
+
* claims ([driver wake convergence](../../agent-loop/src/agent.ts)).
|
|
110
110
|
* @param message - identified content and the source that supplied it.
|
|
111
111
|
* @param target - the preferred next-turn or next-step inbox boundary.
|
|
112
112
|
* @param wakeup - whether delivery may wake the driver.
|
|
@@ -297,7 +297,7 @@ type AgentCancelCause =
|
|
|
297
297
|
| { readonly kind: 'disposed' }
|
|
298
298
|
```
|
|
299
299
|
|
|
300
|
-
The cause is a TypeScript-enforced same-process input. An active cancellation holder
|
|
300
|
+
The cause is a TypeScript-enforced same-process input. An active cancellation holder exposes that same object as the runtime-only `AbortSignal.reason`; a signal grants cooperating listeners no classification authority. Durable `turn/end` records the outcome as `{ kind: 'aborted', reason: TurnEndCancelCause }`, so the cancel cause lands in the terminal result.
|
|
301
301
|
|
|
302
302
|
The [event taxonomy](../architecture.md#events) owns the `agent/*` lifecycle, checkpoint, and waterfall contracts. Turn and step boundaries are durable session events rather than agent emits.
|
|
303
303
|
|
|
@@ -421,7 +421,7 @@ Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnp
|
|
|
421
421
|
|
|
422
422
|
### `ctx.agentDefaultModel` — `AgentDefaultModelConfig`
|
|
423
423
|
|
|
424
|
-
Owns the default model selection independently of any Host or transport.
|
|
424
|
+
Owns the default model selection independently of any Host or transport. Each operation reads the owning Config references.
|
|
425
425
|
|
|
426
426
|
```ts cordis-catalog
|
|
427
427
|
/**
|
|
@@ -431,10 +431,11 @@ Owns the default model selection independently of any Host or transport. The com
|
|
|
431
431
|
currentSelection(): ModelSelection
|
|
432
432
|
|
|
433
433
|
/**
|
|
434
|
-
* Save the complete default model selection. A deployment without a
|
|
435
|
-
*
|
|
434
|
+
* Save the complete default model selection. A deployment without a configuration
|
|
435
|
+
* editor keeps its composition entry. Saves commit in submission order; a failed
|
|
436
|
+
* save rejects its caller without blocking later saves.
|
|
436
437
|
* @param next - resolved selection accepted by an entry point.
|
|
437
|
-
* @returns fulfillment after the optional
|
|
438
|
+
* @returns fulfillment after the optional profile write settles.
|
|
438
439
|
*/
|
|
439
440
|
async saveSelection(next: ModelSelection): Promise<void>
|
|
440
441
|
```
|
|
@@ -481,248 +482,103 @@ Types: [SessionHeader](persistence.md)
|
|
|
481
482
|
|
|
482
483
|
Source: [`packages/core/agent-loop/src/index.ts`](../../packages/core/agent-loop/src/index.ts)
|
|
483
484
|
|
|
484
|
-
<a id="ctxagentpresets--
|
|
485
|
+
<a id="ctxagentpresets--agentpresetregistry"></a>
|
|
485
486
|
|
|
486
|
-
### `ctx.agentPresets` — `
|
|
487
|
+
### `ctx.agentPresets` — `AgentPresetRegistry`
|
|
487
488
|
|
|
488
|
-
Registry
|
|
489
|
-
|
|
490
|
-
Discovery is unmemoized: `list()` and `resolve()` re-read the roots on every call so a preset authored while the process runs is visible immediately, and a preset deleted underneath a picker disappears from the next read.
|
|
489
|
+
Registry of YAML-declared presets and the revisions live Agents retain.
|
|
491
490
|
|
|
492
491
|
```ts cordis-catalog
|
|
493
|
-
/**
|
|
494
|
-
*
|
|
495
|
-
* @returns the
|
|
492
|
+
/** Register and eagerly load a definition; activation failure remains visible in the roster.
|
|
493
|
+
* @param definition Parsed configuration supplied by the declaring plugin.
|
|
494
|
+
* @returns Definition disposer after activation or its diagnostic settles; the declaring plugin owns it.
|
|
496
495
|
*/
|
|
497
|
-
async
|
|
496
|
+
async register(definition: PresetDefinition): Promise<() => Promise<void>>
|
|
498
497
|
|
|
499
|
-
/**
|
|
500
|
-
*
|
|
501
|
-
*
|
|
502
|
-
* capability, and its mode-selection policy beside it.
|
|
503
|
-
*
|
|
504
|
-
* Whether a client can open a preset's directory is the Host's own opener
|
|
505
|
-
* capability, not a roster property — a caller needing both joins them.
|
|
506
|
-
* @returns the rows, authoring capability, and effective selection policy.
|
|
498
|
+
/** Inspect retained revisions, or the exact revision an Agent joined.
|
|
499
|
+
* @param ctx - optional Agent context; omission includes all retained revisions.
|
|
500
|
+
* @returns detached module references and isolation diagnostics; no match returns an empty list.
|
|
507
501
|
*/
|
|
508
|
-
|
|
502
|
+
inspectCompositions(ctx?: Context): AgentPresetInspection[]
|
|
509
503
|
|
|
510
|
-
/**
|
|
511
|
-
*
|
|
512
|
-
* surfaces beside the roster's own picker.
|
|
513
|
-
*
|
|
514
|
-
* A preset with a live standing mount answers from its newest generation's
|
|
515
|
-
* Loader entries — the composition new sessions join — even when the file
|
|
516
|
-
* behind it has since been edited into an unreadable state: the mount is
|
|
517
|
-
* what sessions actually run, so the broken verdict only applies to a
|
|
518
|
-
* preset nothing composed. One never composed since boot answers from its
|
|
519
|
-
* file, with `!!js` disabled gates evaluated against the Loader context so
|
|
520
|
-
* both answers reflect the same host. Reading never mounts: an unmounted
|
|
521
|
-
* preset is parsed, not composed, so listing a preset's plugins cannot
|
|
522
|
-
* activate them early. A composition that stopped reading between
|
|
523
|
-
* discovery's health verdict and this read is reported broken with the
|
|
524
|
-
* raced reason rather than dropped.
|
|
525
|
-
* @returns one composition per roster preset, in roster order.
|
|
526
|
-
*/
|
|
527
|
-
async compositionInventory(): Promise<AgentPresetComposition[]>
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Resolve one preset by id.
|
|
531
|
-
*
|
|
532
|
-
* A broken preset resolves — deleting one, reading one, and reporting one
|
|
533
|
-
* all need the row — and the mounting paths refuse it AFTER resolution
|
|
534
|
-
* through {@link resolveMountable}.
|
|
535
|
-
* @param id - the preset id, or `undefined` for {@link defaultId}.
|
|
536
|
-
* @returns the resolved preset.
|
|
537
|
-
* @throws when no configured root supplies that id.
|
|
504
|
+
/** Read every declared preset, including activation failures.
|
|
505
|
+
* @returns Display metadata and loading diagnostics.
|
|
538
506
|
*/
|
|
539
|
-
async
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* Compose one agent from a preset: ensure the preset's standing mount, then
|
|
543
|
-
* parent the agent's scope key to it so the mount's registrations and
|
|
544
|
-
* listeners cover this agent.
|
|
545
|
-
*
|
|
546
|
-
* Call from the agent factory's `setup(agentCtx)`; a rejection there rolls
|
|
547
|
-
* the agent creation back, so a broken preset never yields a half-composed
|
|
548
|
-
* session.
|
|
549
|
-
* @param agentCtx - the agent's scope context.
|
|
550
|
-
* @param id - the preset id, or `undefined` for {@link defaultId}.
|
|
551
|
-
* @returns the preset that was composed, for the caller to record.
|
|
552
|
-
* @throws when the preset is unknown or its composition is unusable.
|
|
553
|
-
*/
|
|
554
|
-
async mount(agentCtx: Context, id?: string): Promise<AgentPreset>
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* Join one agent to the SAME standing composition another already runs on.
|
|
558
|
-
*
|
|
559
|
-
* This is how a child agent inherits its parent's capabilities. It is a bind,
|
|
560
|
-
* not a mount: the parent's generation is already composed, so the child gets
|
|
561
|
-
* that exact instance — the same plugin objects, the same tool registrations,
|
|
562
|
-
* the same prompt sections. Re-resolving the parent's preset by id instead
|
|
563
|
-
* would re-read the roster, and a composition file edited since the parent
|
|
564
|
-
* started would hand the child a DIFFERENT generation than the one its
|
|
565
|
-
* parent's history was produced under (and a preset deleted since would fail
|
|
566
|
-
* the child outright while its parent keeps running).
|
|
567
|
-
*
|
|
568
|
-
* Synchronous, and with no composition failure mode of its own — it reads no
|
|
569
|
-
* roster, mounts nothing, and touches no file — which is what lets a child
|
|
570
|
-
* creation window use it: the two in-process subagent drivers compose their
|
|
571
|
-
* children inside a synchronous `setup`. It still rejects a caller error, as
|
|
572
|
-
* the `@throws` below record.
|
|
573
|
-
*
|
|
574
|
-
* A parent that joined no preset — a rosterless deployment — yields no join
|
|
575
|
-
* and no error: there, the model-facing rows sit in the host composition and
|
|
576
|
-
* the child already sees them through the global layer.
|
|
577
|
-
* @param agentCtx - the joining agent's scope context.
|
|
578
|
-
* @param parentCtx - the scope context of the agent whose composition to join.
|
|
579
|
-
* @returns the preset id joined, or undefined when the parent joined none.
|
|
580
|
-
* @throws when `agentCtx` carries no scope, or has already joined a preset.
|
|
581
|
-
*/
|
|
582
|
-
composeFrom(agentCtx: Context, parentCtx: Context): string | undefined
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* The preset one live agent runs on.
|
|
586
|
-
*
|
|
587
|
-
* Read from the live scope chain rather than from the session, so it answers
|
|
588
|
-
* for an agent whose session has not recorded a preset yet — a child agent
|
|
589
|
-
* whose durable header is being built from its parent's composition.
|
|
590
|
-
* @param agentCtx - the agent's scope context.
|
|
591
|
-
* @returns the preset id, or undefined when the agent joined none.
|
|
592
|
-
*/
|
|
593
|
-
composedPreset(agentCtx: Context): string | undefined
|
|
507
|
+
async list(): Promise<AgentPreset[]>
|
|
594
508
|
|
|
595
|
-
/**
|
|
596
|
-
*
|
|
597
|
-
* @param id - the preset id.
|
|
598
|
-
* @returns the composition exactly as stored.
|
|
599
|
-
* @throws when no configured root supplies that id.
|
|
509
|
+
/** Read the selection roster.
|
|
510
|
+
* @returns Current presets, each marked when it is the default.
|
|
600
511
|
*/
|
|
601
|
-
async
|
|
512
|
+
@Remote('list') async remoteExportList(): Promise<AgentPresetRoster>
|
|
602
513
|
|
|
603
|
-
/**
|
|
604
|
-
*
|
|
605
|
-
* @
|
|
606
|
-
* @returns the composition beside its trust and published metadata.
|
|
607
|
-
* @throws {RemoteError} `gateway/bad-request` for an empty id, or
|
|
608
|
-
* `agent-preset/not-found` when no configured root supplies it.
|
|
514
|
+
/** Resolve an identity without starting an Agent.
|
|
515
|
+
* @param id Explicit preset or the current default.
|
|
516
|
+
* @returns Current metadata, including failure when activation failed.
|
|
609
517
|
*/
|
|
610
|
-
|
|
518
|
+
async resolve(id?: string): Promise<AgentPreset>
|
|
611
519
|
|
|
612
|
-
/**
|
|
613
|
-
*
|
|
614
|
-
*
|
|
615
|
-
* Copy is the only authoring write. Composition text never crosses this
|
|
616
|
-
* seam: the source is named by id and its directory is copied as it stands,
|
|
617
|
-
* so the copy is exactly as loadable as its source and authoring grants no
|
|
618
|
-
* capability the roster did not already carry. The copy is NOT mounted to
|
|
619
|
-
* validate — a source that mounts today yields a copy that mounts today.
|
|
620
|
-
* @param from - the preset the copy starts from; shipped presets are the
|
|
621
|
-
* primary source, so any trust is accepted.
|
|
622
|
-
* @param id - the new preset's id, which becomes its directory name.
|
|
623
|
-
* @param name - display name for the copy; absent falls back to the id.
|
|
624
|
-
* @throws when the source is unknown, the id is unusable or already taken,
|
|
625
|
-
* or the deployment configures no writable root.
|
|
520
|
+
/** Read one declaration's child plugin list as YAML, for viewing only.
|
|
521
|
+
* @param agentPreset Preset identity.
|
|
522
|
+
* @returns The declared composition beside its published metadata.
|
|
626
523
|
*/
|
|
627
|
-
|
|
524
|
+
@Remote('read') readDocument(agentPreset: string): Promise<AgentPresetDocument>
|
|
628
525
|
|
|
629
|
-
/**
|
|
630
|
-
*
|
|
631
|
-
* @param
|
|
632
|
-
* @
|
|
633
|
-
* @param name - the copy's optional display name.
|
|
634
|
-
* @returns once the copy is stored.
|
|
635
|
-
* @throws {RemoteError} with the corresponding stable preset code and
|
|
636
|
-
* details when the copy is refused.
|
|
526
|
+
/** Bind an unpublished Agent to the current preset revision.
|
|
527
|
+
* @param ctx Agent context from its setup callback.
|
|
528
|
+
* @param id Requested preset, or the default.
|
|
529
|
+
* @returns Bound preset identity.
|
|
637
530
|
*/
|
|
638
|
-
|
|
531
|
+
async mount(ctx: Context, id?: string): Promise<AgentPreset>
|
|
639
532
|
|
|
640
|
-
/**
|
|
641
|
-
*
|
|
642
|
-
*
|
|
643
|
-
* @
|
|
644
|
-
* @throws when the preset is unknown or ships with the deployment.
|
|
533
|
+
/** Join a child to the exact revision retained by its parent.
|
|
534
|
+
* @param ctx Child Agent context.
|
|
535
|
+
* @param parent Parent Agent context.
|
|
536
|
+
* @returns Inherited preset id, or undefined in a preset-free composition.
|
|
645
537
|
*/
|
|
646
|
-
|
|
538
|
+
composeFrom(ctx: Context, parent: Context): string | undefined
|
|
647
539
|
|
|
648
|
-
/**
|
|
649
|
-
*
|
|
650
|
-
* @
|
|
651
|
-
* @returns once the preset is deleted.
|
|
652
|
-
* @throws {RemoteError} with the corresponding stable preset code and
|
|
653
|
-
* details when deletion is refused.
|
|
540
|
+
/** Read the preset a live Agent uses.
|
|
541
|
+
* @param ctx Agent context.
|
|
542
|
+
* @returns Its preset id, if bound.
|
|
654
543
|
*/
|
|
655
|
-
|
|
544
|
+
composedPreset(ctx: Context): string | undefined
|
|
656
545
|
|
|
657
|
-
/**
|
|
658
|
-
*
|
|
659
|
-
*
|
|
660
|
-
*
|
|
661
|
-
* outside the group that declares them — including to the host. This is how a
|
|
662
|
-
* caller holding the agent reads one anyway: a request that is ABOUT a
|
|
663
|
-
* session but arrives from outside it, which is every browser RPC.
|
|
664
|
-
*
|
|
665
|
-
* Read addressing only. A host row that `inject`s a service cannot use this,
|
|
666
|
-
* because injection resolves before any session exists and has no agent to
|
|
667
|
-
* key by; such a service belongs on the host plane instead.
|
|
668
|
-
* @param agent - the agent whose composition to look inside.
|
|
669
|
-
* @param name - the service name as the preset's rows resolve it.
|
|
670
|
-
* @returns the agent's instance, or undefined when its preset mounts none.
|
|
546
|
+
/** Read a service supplied inside an Agent's isolated preset group.
|
|
547
|
+
* @param agent Agent whose composition is queried.
|
|
548
|
+
* @param name Cordis service name.
|
|
549
|
+
* @returns The service, or undefined.
|
|
671
550
|
*/
|
|
672
551
|
serviceFor<K extends string & keyof Context>(agent: { ctx: Context }, name: K): Context[K] | undefined
|
|
673
552
|
|
|
674
|
-
/**
|
|
675
|
-
*
|
|
676
|
-
*
|
|
677
|
-
*
|
|
678
|
-
* conversation would leave logged tool calls the new composition cannot
|
|
679
|
-
* make. The CALLER owns that check — this method does not read session
|
|
680
|
-
* history.
|
|
681
|
-
*
|
|
682
|
-
* The swap is a parent re-link, not an unmount: standing mounts are shared
|
|
683
|
-
* and permanent, so the old composition stays for its other agents and the
|
|
684
|
-
* new one is ensured BEFORE the link moves. An unknown or unusable preset
|
|
685
|
-
* therefore throws with the agent exactly as it was — there is no torn-down
|
|
686
|
-
* state to restore. The re-link runs through the binding this roster kept
|
|
687
|
-
* from the agent's mount — dsh-scope's only re-link authority. An agent
|
|
688
|
-
* that never composed one has nothing to re-link: the switch is then the
|
|
689
|
-
* agent's first bind, exactly a mount. A committed re-link emits
|
|
690
|
-
* `tools/change` because changing the parent scope changes the Agent's
|
|
691
|
-
* resolved tool set without adding or removing registry entries.
|
|
692
|
-
* @param agentCtx - the agent's scope context.
|
|
693
|
-
* @param id - the preset to compose the agent from instead.
|
|
694
|
-
* @returns the preset now installed.
|
|
695
|
-
* @throws when the preset is unknown or its composition is unusable.
|
|
553
|
+
/** Rebind a blank Agent; the caller owns the blank-session check.
|
|
554
|
+
* @param ctx Agent context.
|
|
555
|
+
* @param id Requested preset.
|
|
556
|
+
* @returns The bound identity.
|
|
696
557
|
*/
|
|
697
|
-
async recompose(
|
|
558
|
+
async recompose(ctx: Context, id: string): Promise<AgentPreset>
|
|
698
559
|
|
|
699
|
-
/**
|
|
700
|
-
*
|
|
701
|
-
* @param
|
|
702
|
-
* @
|
|
703
|
-
* @returns the preset id that was recorded.
|
|
704
|
-
* @throws {RemoteError} with `gateway/bad-request`, `agent-preset/locked`,
|
|
705
|
-
* `agent-preset/not-found`, or `agent-preset/invalid` when refused.
|
|
560
|
+
/** Select a preset before a session starts its first turn.
|
|
561
|
+
* @param agent Target Agent.
|
|
562
|
+
* @param agentPreset Requested identity.
|
|
563
|
+
* @returns Committed preset identity.
|
|
706
564
|
*/
|
|
707
565
|
@Remote('select') async select(agent: Agent, agentPreset: string): Promise<string>
|
|
708
566
|
|
|
709
|
-
/**
|
|
710
|
-
*
|
|
711
|
-
*
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
* @
|
|
717
|
-
* @returns the standing scope key readers pass as a registry view scope.
|
|
718
|
-
* @throws when the preset is unknown or its composition is unusable.
|
|
567
|
+
/** Read current registrations for cold transcript presentation.
|
|
568
|
+
* @param id Preset identity or the default.
|
|
569
|
+
* @returns A revision lease; dispose it after the scoped read completes.
|
|
570
|
+
*/
|
|
571
|
+
async acquireScope(id?: string): Promise<{ key: ScopeKey } & AsyncDisposable>
|
|
572
|
+
|
|
573
|
+
/** Read plugin rows without creating an Agent.
|
|
574
|
+
* @returns Current declaration metadata and activation states.
|
|
719
575
|
*/
|
|
720
|
-
|
|
576
|
+
compositionInventory(): Promise<AgentPresetComposition[]>
|
|
721
577
|
```
|
|
722
578
|
|
|
723
579
|
Types: [ScopeKey](scope.md)
|
|
724
580
|
|
|
725
|
-
Source: [`packages/preset/agent-
|
|
581
|
+
Source: [`packages/preset/agent-preset-registry/src/index.ts`](../../packages/preset/agent-preset-registry/src/index.ts)
|
|
726
582
|
|
|
727
583
|
<a id="ctxagents--agentregistry"></a>
|
|
728
584
|
|
|
@@ -1251,5 +1107,5 @@ One session committed a different agent preset to its durable log. Consumers inv
|
|
|
1251
1107
|
'agent-preset/selected'(sessionId: SessionId, agentPreset: string): void
|
|
1252
1108
|
```
|
|
1253
1109
|
|
|
1254
|
-
Source: [`packages/preset/agent-
|
|
1110
|
+
Source: [`packages/preset/agent-preset-registry/src/types.ts`](../../packages/preset/agent-preset-registry/src/types.ts)
|
|
1255
1111
|
<!-- END GENERATED cordis-surface -->
|