dsh-plugin-dev-kb 1.3.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/README.en.md +6 -6
- package/README.md +13 -8
- package/kb/INDEX.md +25 -21
- package/kb/README.md +6 -4
- package/kb/extra/AGENTS.md +14 -12
- package/kb/extra/agent-lifecycle.md +91 -0
- package/kb/extra/agent-lifecycle.zh.md +93 -0
- package/kb/extra/api-gateway.md +172 -0
- package/kb/extra/api-gateway.zh.md +178 -0
- package/kb/extra/architecture.md +165 -0
- package/kb/extra/architecture.zh.md +169 -0
- package/kb/extra/capability-seams.md +714 -0
- package/kb/extra/capability-seams.zh.md +716 -0
- package/kb/extra/cli-help.md +203 -0
- package/kb/extra/cli-help.zh.md +205 -0
- package/kb/extra/config-catalog.md +4801 -0
- package/kb/extra/config-catalog.zh.md +4803 -0
- package/kb/extra/cookbook/adding-a-package.md +170 -0
- package/kb/extra/cookbook/adding-a-package.zh.md +170 -0
- package/kb/extra/cookbook/adding-a-plugin-preview.md +52 -0
- package/kb/extra/cookbook/adding-a-plugin-preview.zh.md +52 -0
- package/kb/extra/cookbook/adding-a-remote-api.md +2 -2
- package/kb/extra/cookbook/adding-a-remote-api.zh.md +2 -2
- package/kb/extra/cookbook/adding-a-session-format-version.md +51 -7
- package/kb/extra/cookbook/adding-a-session-format-version.zh.md +51 -7
- package/kb/extra/cookbook/adding-a-settings-card.md +72 -0
- package/kb/extra/cookbook/adding-a-settings-card.zh.md +72 -0
- package/kb/extra/cookbook/adding-a-tool.md +101 -0
- package/kb/extra/cookbook/adding-a-tool.zh.md +103 -0
- package/kb/extra/cookbook/adding-an-llm-adapter.md +43 -0
- package/kb/extra/cookbook/adding-an-llm-adapter.zh.md +43 -0
- package/kb/extra/cookbook/extension-cookbook.md +132 -0
- package/kb/extra/cookbook/extension-cookbook.zh.md +136 -0
- package/kb/extra/cookbook/reviewing-persistence-type-changes.md +122 -0
- package/kb/extra/cookbook/reviewing-persistence-type-changes.zh.md +122 -0
- package/kb/extra/cordis-api/context.md +364 -0
- package/kb/extra/cordis-api/context.zh.md +366 -0
- package/kb/extra/cordis-api/events.md +207 -0
- package/kb/extra/cordis-api/events.zh.md +209 -0
- package/kb/extra/cordis-api/fiber.md +375 -0
- package/kb/extra/cordis-api/fiber.zh.md +377 -0
- package/kb/extra/cordis-api/inherited.md +38 -0
- package/kb/extra/cordis-api/registry.md +152 -0
- package/kb/extra/cordis-api/registry.zh.md +154 -0
- package/kb/extra/cordis-api/service.md +102 -0
- package/kb/extra/cordis-api/service.zh.md +104 -0
- package/kb/extra/cordis-tutorial/01-first-plugin.md +95 -0
- package/kb/extra/cordis-tutorial/01-first-plugin.zh.md +95 -0
- package/kb/extra/cordis-tutorial/02-lifecycle-and-effects.md +98 -0
- package/kb/extra/cordis-tutorial/02-lifecycle-and-effects.zh.md +98 -0
- package/kb/extra/cordis-tutorial/03-services.md +98 -0
- package/kb/extra/cordis-tutorial/03-services.zh.md +98 -0
- package/kb/extra/cordis-tutorial/04-events.md +144 -0
- package/kb/extra/cordis-tutorial/04-events.zh.md +144 -0
- package/kb/extra/cordis-tutorial/05-config.md +111 -0
- package/kb/extra/cordis-tutorial/05-config.zh.md +111 -0
- package/kb/extra/cordis-tutorial/06-composition-and-hmr.md +113 -0
- package/kb/extra/cordis-tutorial/06-composition-and-hmr.zh.md +113 -0
- package/kb/extra/cordis-tutorial/07-into-the-harness.md +108 -0
- package/kb/extra/cordis-tutorial/07-into-the-harness.zh.md +108 -0
- package/kb/extra/cordis-tutorial/index.md +60 -0
- package/kb/extra/cordis-tutorial/index.zh.md +62 -0
- package/kb/extra/deepseek-llm-api-wire-extensions.md +22 -23
- package/kb/extra/deepseek-llm-api-wire-extensions.zh.md +21 -22
- package/kb/extra/defensive-patterns/README.md +25 -0
- package/kb/extra/defensive-patterns/README.zh.md +27 -0
- package/kb/extra/defensive-patterns/client-components.md +493 -0
- package/kb/extra/defensive-patterns/client-components.zh.md +495 -0
- package/kb/extra/defensive-patterns/conversation-and-session.md +316 -0
- package/kb/extra/defensive-patterns/conversation-and-session.zh.md +316 -0
- package/kb/extra/defensive-patterns/general.md +222 -0
- package/kb/extra/defensive-patterns/general.zh.md +252 -0
- package/kb/extra/defensive-patterns/package-surface.md +231 -0
- package/kb/extra/defensive-patterns/package-surface.zh.md +231 -0
- package/kb/extra/defensive-patterns/remote-and-api.md +115 -0
- package/kb/extra/defensive-patterns/remote-and-api.zh.md +115 -0
- package/kb/extra/development.md +55 -18
- package/kb/extra/development.zh.md +56 -18
- package/kb/extra/event-producer-consumer.md +90 -68
- package/kb/extra/event-producer-consumer.zh.md +91 -69
- package/kb/extra/experimental-persistence-catalog.md +17 -0
- package/kb/extra/experimental-persistence-catalog.zh.md +17 -0
- package/kb/extra/glossary.md +2 -1
- package/kb/extra/glossary.zh.md +2 -1
- package/kb/extra/i18n/README.md +15 -7
- package/kb/extra/i18n/README.zh.md +15 -7
- package/kb/extra/i18n/style-samples.md +2 -2
- package/kb/extra/i18n/terminology.md +5 -4
- package/kb/extra/i18n/translation-prompt.md +2 -2
- package/kb/extra/module-graph.md +759 -432
- package/kb/extra/module-graph.zh.md +759 -432
- package/kb/extra/persistence-catalog.md +9140 -0
- package/kb/extra/persistence-catalog.zh.md +9142 -0
- package/kb/extra/persistence-changes/2026-09-11-initial.md +280 -0
- package/kb/extra/persistence-changes/2026-09-11-initial.zh.md +280 -0
- package/kb/extra/persistence-changes/2026-09-12-auto-review-error-metadata.md +52 -0
- package/kb/extra/persistence-changes/2026-09-12-auto-review-error-metadata.zh.md +52 -0
- package/kb/extra/persistence-changes/2026-09-13-working-directory.md +48 -0
- package/kb/extra/persistence-changes/2026-09-13-working-directory.zh.md +48 -0
- package/kb/extra/persistence-changes/2026-09-14-image-offload.md +96 -0
- package/kb/extra/persistence-changes/2026-09-14-image-offload.zh.md +96 -0
- package/kb/extra/persistence-changes/2026-09-14-workspace-changes-event.md +48 -0
- package/kb/extra/persistence-changes/2026-09-14-workspace-changes-event.zh.md +48 -0
- package/kb/extra/persistence-changes/2026-09-16-session-format-v4.md +120 -0
- package/kb/extra/persistence-changes/2026-09-16-session-format-v4.zh.md +120 -0
- package/kb/extra/persistence-changes/2026-09-18-schedule-optional-title.md +48 -0
- package/kb/extra/persistence-changes/2026-09-18-schedule-optional-title.zh.md +48 -0
- package/kb/extra/persistence-changes/2026-09-19-external-subagent-catalog.md +48 -0
- package/kb/extra/persistence-changes/2026-09-19-external-subagent-catalog.zh.md +48 -0
- package/kb/extra/persistence-changes/2026-09-20-unknown-child-catalog.md +48 -0
- package/kb/extra/persistence-changes/2026-09-20-unknown-child-catalog.zh.md +48 -0
- package/kb/extra/persistence-changes/2026-09-21-user-question-reply.md +60 -0
- package/kb/extra/persistence-changes/2026-09-21-user-question-reply.zh.md +60 -0
- package/kb/extra/persistence-changes/2026-09-30-job-session-lifecycle.md +52 -0
- package/kb/extra/persistence-changes/2026-09-30-job-session-lifecycle.zh.md +52 -0
- package/kb/extra/persistence-changes/2026-10-05-ptc-operation-metadata.md +48 -0
- package/kb/extra/persistence-changes/2026-10-05-ptc-operation-metadata.zh.md +48 -0
- package/kb/extra/persistence-changes/2026-10-05-working-directory-attribution.md +60 -0
- package/kb/extra/persistence-changes/2026-10-05-working-directory-attribution.zh.md +60 -0
- package/kb/extra/persistence-changes/2026-10-07-title-reasoning-effort.md +48 -0
- package/kb/extra/persistence-changes/2026-10-07-title-reasoning-effort.zh.md +48 -0
- package/kb/extra/persistence-changes/2026-10-13-deepseek-search-thinking.md +48 -0
- package/kb/extra/persistence-changes/2026-10-13-deepseek-search-thinking.zh.md +48 -0
- package/kb/extra/persistence-changes/2026-10-13-user-rpc-principal.md +60 -0
- package/kb/extra/persistence-changes/2026-10-13-user-rpc-principal.zh.md +60 -0
- package/kb/extra/persistence-changes/README.md +90 -0
- package/kb/extra/persistence-changes/README.zh.md +90 -0
- package/kb/extra/persistence-changes/historical-formats/README.md +75 -0
- package/kb/extra/persistence-changes/historical-formats/README.zh.md +75 -0
- package/kb/extra/persistence-changes/historical-formats/v0.md +5105 -0
- package/kb/extra/persistence-changes/historical-formats/v0.zh.md +5105 -0
- package/kb/extra/persistence-changes/historical-formats/v1.md +5107 -0
- package/kb/extra/persistence-changes/historical-formats/v1.zh.md +5107 -0
- package/kb/extra/persistence-changes/historical-formats/v2.md +5362 -0
- package/kb/extra/persistence-changes/historical-formats/v2.zh.md +5362 -0
- package/kb/extra/persistence-changes/historical-formats/v3.md +5634 -0
- package/kb/extra/persistence-changes/historical-formats/v3.zh.md +5634 -0
- package/kb/extra/persistence-changes/releases/README.md +103 -0
- package/kb/extra/persistence-changes/releases/README.zh.md +103 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.0.1-rc.1.md +201 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.0.1-rc.1.zh.md +201 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.0.1-rc.2.md +261 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.0.1-rc.2.zh.md +261 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.0.1-rc.3.md +126 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.0.1-rc.3.zh.md +126 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.0.1-rc.4.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.0.1-rc.4.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.0.1-rc.5.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.0.1-rc.5.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.1.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.1.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.2.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.2.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.3.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.3.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.5.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.5.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.6.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.6.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.7.md +82 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.7.zh.md +82 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.8.md +110 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.0-rc.8.zh.md +110 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.1-rc.1.md +82 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.1-rc.1.zh.md +82 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.1-rc.2.md +119 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.1-rc.2.zh.md +119 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-alpha.1.md +295 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-alpha.1.zh.md +295 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-alpha.2.md +286 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-alpha.2.zh.md +286 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-alpha.3.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-alpha.3.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-alpha.4.md +95 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-alpha.4.zh.md +95 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-alpha.5.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-alpha.5.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-rc.1.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.2-rc.1.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.3-alpha.1.md +154 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.3-alpha.1.zh.md +154 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.3-alpha.2.md +86 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.3-alpha.2.zh.md +86 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.5-alpha.1.md +139 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.5-alpha.1.zh.md +139 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.5-alpha.2.md +95 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.5-alpha.2.zh.md +95 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.5-rc.1.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.5-rc.1.zh.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.5-rc.2.md +75 -0
- package/kb/extra/persistence-changes/releases/dsh-v0.1.5-rc.2.zh.md +75 -0
- package/kb/extra/rescope.md +1 -1
- package/kb/extra/rescope.zh.md +1 -1
- package/kb/extra/session-format-status.md +24 -8
- package/kb/extra/session-format-status.zh.md +24 -8
- package/kb/extra/subsystems/README.md +76 -0
- package/kb/extra/subsystems/README.zh.md +76 -0
- package/kb/extra/subsystems/agent-team.md +61 -37
- package/kb/extra/subsystems/agent-team.zh.md +61 -37
- package/kb/extra/subsystems/approval.md +170 -0
- package/kb/extra/subsystems/approval.zh.md +170 -0
- package/kb/extra/subsystems/attachment.md +19 -9
- package/kb/extra/subsystems/attachment.zh.md +19 -9
- package/kb/extra/subsystems/boot.md +447 -0
- package/kb/extra/subsystems/boot.zh.md +447 -0
- package/kb/extra/subsystems/browser-use.md +67 -0
- package/kb/extra/subsystems/browser-use.zh.md +67 -0
- package/kb/extra/subsystems/claude-code-mods.md +146 -0
- package/kb/extra/subsystems/claude-code-mods.zh.md +146 -0
- package/kb/extra/subsystems/client-modules.md +198 -0
- package/kb/extra/subsystems/client-modules.zh.md +198 -0
- package/kb/extra/subsystems/client-resources.md +92 -0
- package/kb/extra/subsystems/client-resources.zh.md +92 -0
- package/kb/extra/subsystems/commands.md +223 -0
- package/kb/extra/subsystems/commands.zh.md +223 -0
- package/kb/extra/subsystems/compaction.md +284 -0
- package/kb/extra/subsystems/compaction.zh.md +284 -0
- package/kb/extra/subsystems/computer-use.md +59 -0
- package/kb/extra/subsystems/computer-use.zh.md +59 -0
- package/kb/extra/subsystems/conversation.md +301 -0
- package/kb/extra/subsystems/conversation.zh.md +303 -0
- package/kb/extra/subsystems/core.md +1113 -0
- package/kb/extra/subsystems/core.zh.md +1125 -0
- package/kb/extra/subsystems/credentials.md +493 -0
- package/kb/extra/subsystems/credentials.zh.md +493 -0
- package/kb/extra/subsystems/deliverables.md +178 -0
- package/kb/extra/subsystems/deliverables.zh.md +178 -0
- package/kb/extra/subsystems/extensions.md +6 -4
- package/kb/extra/subsystems/extensions.zh.md +6 -4
- package/kb/extra/subsystems/feedback.md +4 -4
- package/kb/extra/subsystems/feedback.zh.md +4 -4
- package/kb/extra/subsystems/filesystem.md +530 -0
- package/kb/extra/subsystems/filesystem.zh.md +530 -0
- package/kb/extra/subsystems/goal.md +313 -0
- package/kb/extra/subsystems/goal.zh.md +313 -0
- package/kb/extra/subsystems/jobs.md +554 -0
- package/kb/extra/subsystems/jobs.zh.md +554 -0
- package/kb/extra/subsystems/llm-streaming.md +1196 -0
- package/kb/extra/subsystems/llm-streaming.zh.md +1202 -0
- package/kb/extra/subsystems/lsp.md +202 -0
- package/kb/extra/subsystems/lsp.zh.md +202 -0
- package/kb/extra/subsystems/mcp.md +139 -0
- package/kb/extra/subsystems/mcp.zh.md +139 -0
- package/kb/extra/subsystems/office-to-pdf.md +87 -0
- package/kb/extra/subsystems/office-to-pdf.zh.md +87 -0
- package/kb/extra/subsystems/otel.md +44 -0
- package/kb/extra/subsystems/otel.zh.md +44 -0
- package/kb/extra/subsystems/permission-presets.md +167 -0
- package/kb/extra/subsystems/permission-presets.zh.md +167 -0
- package/kb/extra/subsystems/persistence.md +418 -0
- package/kb/extra/subsystems/persistence.zh.md +418 -0
- package/kb/extra/subsystems/plan.md +87 -0
- package/kb/extra/subsystems/plan.zh.md +87 -0
- package/kb/extra/subsystems/product-telemetry.md +81 -0
- package/kb/extra/subsystems/product-telemetry.zh.md +81 -0
- package/kb/extra/subsystems/ptc-runtime.md +250 -0
- package/kb/extra/subsystems/ptc-runtime.zh.md +250 -0
- package/kb/extra/subsystems/sandbox.md +221 -0
- package/kb/extra/subsystems/sandbox.zh.md +221 -0
- package/kb/extra/subsystems/schedule.md +550 -0
- package/kb/extra/subsystems/schedule.zh.md +550 -0
- package/kb/extra/subsystems/scope.md +59 -0
- package/kb/extra/subsystems/scope.zh.md +61 -0
- package/kb/extra/subsystems/session-projection.md +356 -0
- package/kb/extra/subsystems/session-projection.zh.md +356 -0
- package/kb/extra/subsystems/session-query.md +511 -0
- package/kb/extra/subsystems/session-query.zh.md +511 -0
- package/kb/extra/subsystems/session-reference.md +224 -0
- package/kb/extra/subsystems/session-reference.zh.md +224 -0
- package/kb/extra/subsystems/session-telemetry.md +212 -0
- package/kb/extra/subsystems/session-telemetry.zh.md +212 -0
- package/kb/extra/subsystems/session-title.md +213 -0
- package/kb/extra/subsystems/session-title.zh.md +213 -0
- package/kb/extra/subsystems/session.md +1339 -0
- package/kb/extra/subsystems/session.zh.md +1343 -0
- package/kb/extra/subsystems/settings.md +155 -0
- package/kb/extra/subsystems/settings.zh.md +155 -0
- package/kb/extra/subsystems/shell.md +314 -0
- package/kb/extra/subsystems/shell.zh.md +314 -0
- package/kb/extra/subsystems/sidebar-right.md +160 -0
- package/kb/extra/subsystems/sidebar-right.zh.md +160 -0
- package/kb/extra/subsystems/skills.md +352 -0
- package/kb/extra/subsystems/skills.zh.md +352 -0
- package/kb/extra/subsystems/slots.md +200 -0
- package/kb/extra/subsystems/slots.zh.md +204 -0
- package/kb/extra/subsystems/spill.md +124 -0
- package/kb/extra/subsystems/spill.zh.md +124 -0
- package/kb/extra/subsystems/ssh.md +146 -0
- package/kb/extra/subsystems/ssh.zh.md +146 -0
- package/kb/extra/subsystems/storage.md +259 -0
- package/kb/extra/subsystems/storage.zh.md +259 -0
- package/kb/extra/subsystems/subagent.md +686 -0
- package/kb/extra/subsystems/subagent.zh.md +688 -0
- package/kb/extra/subsystems/subprocess.md +321 -0
- package/kb/extra/subsystems/subprocess.zh.md +321 -0
- package/kb/extra/subsystems/system-prompt.md +254 -0
- package/kb/extra/subsystems/system-prompt.zh.md +254 -0
- package/kb/extra/subsystems/terminal.md +184 -0
- package/kb/extra/subsystems/terminal.zh.md +184 -0
- package/kb/extra/subsystems/todo.md +3 -3
- package/kb/extra/subsystems/todo.zh.md +3 -3
- package/kb/extra/subsystems/token-meter.md +106 -0
- package/kb/extra/subsystems/token-meter.zh.md +106 -0
- package/kb/extra/subsystems/tools.md +747 -0
- package/kb/extra/subsystems/tools.zh.md +747 -0
- package/kb/extra/subsystems/translation.md +103 -0
- package/kb/extra/subsystems/translation.zh.md +103 -0
- package/kb/extra/subsystems/typert.md +690 -0
- package/kb/extra/subsystems/typert.zh.md +690 -0
- package/kb/extra/subsystems/user-questions.md +307 -0
- package/kb/extra/subsystems/user-questions.zh.md +307 -0
- package/kb/extra/subsystems/voice-input.md +164 -0
- package/kb/extra/subsystems/voice-input.zh.md +164 -0
- package/kb/extra/subsystems/web-client.md +100 -0
- package/kb/extra/subsystems/web-client.zh.md +100 -0
- package/kb/extra/subsystems/web-server.md +302 -0
- package/kb/extra/subsystems/web-server.zh.md +302 -0
- package/kb/extra/subsystems/web.md +206 -0
- package/kb/extra/subsystems/web.zh.md +206 -0
- package/kb/extra/subsystems/webhook.md +4 -4
- package/kb/extra/subsystems/webhook.zh.md +2 -2
- package/kb/extra/subsystems/workflow.md +278 -0
- package/kb/extra/subsystems/workflow.zh.md +278 -0
- package/kb/extra/subsystems/working-directory.md +64 -0
- package/kb/extra/subsystems/working-directory.zh.md +64 -0
- package/kb/extra/subsystems/workspace.md +647 -0
- package/kb/extra/subsystems/workspace.zh.md +647 -0
- package/kb/extra/subsystems/worktrees.md +76 -0
- package/kb/extra/subsystems/worktrees.zh.md +76 -0
- package/kb/extra/testing.md +4 -4
- package/kb/extra/testing.zh.md +4 -4
- package/kb/extra/tool-catalog.md +2824 -0
- package/kb/extra/tool-catalog.zh.md +2832 -0
- package/kb/extra/tool-execution-pipeline.md +65 -0
- package/kb/extra/tool-execution-pipeline.zh.md +67 -0
- package/kb/extra/ui-radius.md +117 -0
- package/kb/extra/ui-radius.zh.md +117 -0
- package/kb/extra/upgrade-guide/v0.1.7-rc.2/schedule-optional-bundle/guide.md +22 -0
- package/kb/extra/upgrade-guide/v0.1.7-rc.2/schedule-optional-bundle/guide.zh.md +22 -0
- package/kb/extra/upgrade-guide/v0.1.7-rc.2/transcript-view-legacy-normal/guide.md +25 -0
- package/kb/extra/upgrade-guide/v0.1.7-rc.2/transcript-view-legacy-normal/guide.zh.md +25 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/account-sign-in-errors/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/account-sign-in-errors/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/bundled-python-tests/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/bundled-python-tests/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/primary-runtime-python-aliases/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/primary-runtime-python-aliases/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/remove-runtime-invariants/guide.md +23 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/remove-runtime-invariants/guide.zh.md +23 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/schedule-bundle-retired/guide.md +22 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/schedule-bundle-retired/guide.zh.md +22 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/subpath-plugin-display-manifest/guide.md +27 -0
- package/kb/extra/upgrade-guide/v0.2.0-rc.2/subpath-plugin-display-manifest/guide.zh.md +27 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/deepseek-model-discovery/guide.md +17 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/deepseek-model-discovery/guide.zh.md +17 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/desktop-test-auth-popup/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/desktop-test-auth-popup/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/experimental-package-composition/guide.md +28 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/experimental-package-composition/guide.zh.md +28 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/instruction-home-override/guide.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/instruction-home-override/guide.zh.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/job-id-identity/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/job-id-identity/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/jsonl-persistence-plugin/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/jsonl-persistence-plugin/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/mock-messages-events/guide.md +17 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/mock-messages-events/guide.zh.md +17 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/native-subagent-bundle-tools/guide.md +31 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/native-subagent-bundle-tools/guide.zh.md +31 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/new-session-generations/guide.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/new-session-generations/guide.zh.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/plugin-option-placement/guide.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/plugin-option-placement/guide.zh.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/python-optional-resources/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/python-optional-resources/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/python-ptc-sandbox/guide.md +21 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/python-ptc-sandbox/guide.zh.md +21 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/session-title-adapters/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/session-title-adapters/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/session-title-provider-strategy/guide.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/session-title-provider-strategy/guide.zh.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/ssh-helper-launch/guide.md +19 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/ssh-helper-launch/guide.zh.md +19 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/subagent-activations/guide.md +59 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/subagent-activations/guide.zh.md +59 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/subagent-preset-composition/guide.md +21 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/subagent-preset-composition/guide.zh.md +21 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/team-direct-inbox/guide.md +21 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/team-direct-inbox/guide.zh.md +21 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/terminal-command-labels/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/terminal-command-labels/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/tool-presentation-mode/guide.md +21 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/tool-presentation-mode/guide.zh.md +21 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/web-listener-trust-config/guide.md +36 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/web-listener-trust-config/guide.zh.md +36 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/working-directory/guide.md +25 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.1/working-directory/guide.zh.md +25 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/deepseek-account-identity-watch/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/deepseek-account-identity-watch/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/deepseek-account-model-catalog/guide.md +27 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/deepseek-account-model-catalog/guide.zh.md +27 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/desktop-font-size-shortcuts/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/desktop-font-size-shortcuts/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/from-default-profile-replaces-target/guide.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/from-default-profile-replaces-target/guide.zh.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/operator-connect/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/operator-connect/guide.zh.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/pi-ai-azure-provider/guide.md +19 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/pi-ai-azure-provider/guide.zh.md +19 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/pi-ai-model-discovery/guide.md +17 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/pi-ai-model-discovery/guide.zh.md +17 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/plugin-install-over-installed/guide.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/plugin-install-over-installed/guide.zh.md +20 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/sdk-minimal-image-compaction/guide.md +32 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/sdk-minimal-image-compaction/guide.zh.md +32 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/stored-credentials-precedence/guide.md +25 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.2/stored-credentials-precedence/guide.zh.md +25 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.3/plugin-engines-dsh/guide.md +21 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.3/plugin-engines-dsh/guide.zh.md +21 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.4/account-notification-fields/guide.md +18 -0
- package/kb/extra/upgrade-guide/v0.2.1-alpha.4/account-notification-fields/guide.zh.md +18 -0
- package/kb/extra/web-styling.md +12 -3
- package/kb/extra/web-styling.zh.md +12 -3
- package/kb/meta/search-index.json +2690 -404
- package/kb/meta/site-pages.txt +188 -188
- package/kb/meta/source.json +7 -6
- package/kb/meta/topics.md +10 -6
- package/kb/site/develop/basic/config.md +1 -0
- package/kb/site/develop/basic/index.md +1 -0
- package/kb/site/develop/basic/publish.md +12 -3
- package/kb/site/develop/basic/tool.md +1 -0
- package/kb/site/develop/cordis-tutorial/01-first-plugin.md +1 -0
- package/kb/site/develop/cordis-tutorial/02-lifecycle-and-effects.md +1 -0
- package/kb/site/develop/cordis-tutorial/03-services.md +1 -0
- package/kb/site/develop/cordis-tutorial/04-events.md +1 -0
- package/kb/site/develop/cordis-tutorial/05-config.md +28 -0
- package/kb/site/develop/cordis-tutorial/06-composition-and-hmr.md +3 -2
- package/kb/site/develop/cordis-tutorial/07-into-the-harness.md +1 -0
- package/kb/site/develop/cordis-tutorial/index.md +1 -0
- package/kb/site/develop/framework/events.md +1 -0
- package/kb/site/develop/framework/index.md +2 -1
- package/kb/site/develop/framework/service.md +1 -0
- package/kb/site/develop/practice/dynamic-cordis.md +9 -8
- package/kb/site/develop/practice/index.md +1 -0
- package/kb/site/develop/practice/llm-adapter.md +2 -1
- package/kb/site/en/develop/basic/config.md +1 -0
- package/kb/site/en/develop/basic/index.md +1 -0
- package/kb/site/en/develop/basic/publish.md +12 -3
- package/kb/site/en/develop/basic/tool.md +1 -0
- package/kb/site/en/develop/cordis-tutorial/01-first-plugin.md +1 -0
- package/kb/site/en/develop/cordis-tutorial/02-lifecycle-and-effects.md +1 -0
- package/kb/site/en/develop/cordis-tutorial/03-services.md +1 -0
- package/kb/site/en/develop/cordis-tutorial/04-events.md +1 -0
- package/kb/site/en/develop/cordis-tutorial/05-config.md +28 -0
- package/kb/site/en/develop/cordis-tutorial/06-composition-and-hmr.md +3 -2
- package/kb/site/en/develop/cordis-tutorial/07-into-the-harness.md +1 -0
- package/kb/site/en/develop/cordis-tutorial/index.md +1 -0
- package/kb/site/en/develop/framework/events.md +1 -0
- package/kb/site/en/develop/framework/index.md +2 -1
- package/kb/site/en/develop/framework/service.md +1 -0
- package/kb/site/en/develop/practice/dynamic-cordis.md +9 -8
- package/kb/site/en/develop/practice/index.md +1 -0
- package/kb/site/en/develop/practice/llm-adapter.md +2 -1
- package/kb/site/en/guide/github-review.md +8 -10
- package/kb/site/en/guide/mcp-memory.md +1 -0
- package/kb/site/en/guide/network-proxy.md +2 -1
- package/kb/site/en/guide/plugin-market.md +151 -0
- package/kb/site/en/guide/providers-custom-form.png +0 -0
- package/kb/site/en/guide/providers-models-page.png +0 -0
- package/kb/site/en/guide/providers.md +121 -83
- package/kb/site/en/guide/public-deployments.md +40 -0
- package/kb/site/en/guide/python-sdk.md +49 -29
- package/kb/site/en/guide/quickstart.md +2 -0
- package/kb/site/en/guide/schedule.md +70 -11
- package/kb/site/en/reference/agent-lifecycle.md +1 -0
- package/kb/site/en/reference/api-gateway.md +22 -13
- package/kb/site/en/reference/capability-seams.md +242 -77
- package/kb/site/en/reference/config-catalog.md +2102 -904
- package/kb/site/en/reference/cookbook/adding-a-package.md +57 -3
- package/kb/site/en/reference/cookbook/adding-a-settings-card.md +35 -64
- package/kb/site/en/reference/cookbook/adding-a-tool.md +4 -3
- package/kb/site/en/reference/cookbook/adding-an-llm-adapter.md +1 -0
- package/kb/site/en/reference/cookbook/extension-cookbook.md +6 -5
- package/kb/site/en/reference/cordis-api/context.md +1 -0
- package/kb/site/en/reference/cordis-api/events.md +1 -0
- package/kb/site/en/reference/cordis-api/fiber.md +4 -3
- package/kb/site/en/reference/cordis-api/inherited.md +16 -16
- package/kb/site/en/reference/cordis-api/registry.md +1 -0
- package/kb/site/en/reference/cordis-api/service.md +1 -0
- package/kb/site/en/reference/cordis-primer.md +1 -0
- package/kb/site/en/reference/experimental-persistence-catalog.md +20 -0
- package/kb/site/en/reference/index.md +27 -21
- package/kb/site/en/reference/persistence-catalog.md +8055 -62
- package/kb/site/en/reference/subsystems/approval.md +2 -1
- package/kb/site/en/reference/subsystems/client-modules.md +37 -15
- package/kb/site/en/reference/subsystems/client-resources.md +3 -1
- package/kb/site/en/reference/subsystems/commands.md +6 -1
- package/kb/site/en/reference/subsystems/compaction.md +50 -3
- package/kb/site/en/reference/subsystems/conversation.md +50 -6
- package/kb/site/en/reference/subsystems/core.md +100 -258
- package/kb/site/en/reference/subsystems/credentials.md +178 -13
- package/kb/site/en/reference/subsystems/filesystem.md +11 -0
- package/kb/site/en/reference/subsystems/goal.md +2 -1
- package/kb/site/en/reference/subsystems/index.md +20 -6
- package/kb/site/en/reference/subsystems/jobs.md +397 -132
- package/kb/site/en/reference/subsystems/llm-streaming.md +157 -50
- package/kb/site/en/reference/subsystems/lsp.md +1 -0
- package/kb/site/en/reference/subsystems/permission-presets.md +66 -29
- package/kb/site/en/reference/subsystems/persistence.md +6 -3
- package/kb/site/en/reference/subsystems/plan.md +3 -2
- package/kb/site/en/reference/subsystems/ptc-runtime.md +254 -0
- package/kb/site/en/reference/subsystems/sandbox.md +7 -5
- package/kb/site/en/reference/subsystems/schedule.md +392 -33
- package/kb/site/en/reference/subsystems/scope.md +2 -1
- package/kb/site/en/reference/subsystems/session-projection.md +22 -19
- package/kb/site/en/reference/subsystems/session-query.md +3 -0
- package/kb/site/en/reference/subsystems/session-reference.md +8 -6
- package/kb/site/en/reference/subsystems/session-telemetry.md +7 -4
- package/kb/site/en/reference/subsystems/session-title.md +20 -10
- package/kb/site/en/reference/subsystems/session.md +254 -91
- package/kb/site/en/reference/subsystems/settings.md +43 -292
- package/kb/site/en/reference/subsystems/shell.md +37 -28
- package/kb/site/en/reference/subsystems/sidebar-right.md +25 -12
- package/kb/site/en/reference/subsystems/skills.md +5 -6
- package/kb/site/en/reference/subsystems/slots.md +88 -70
- package/kb/site/en/reference/subsystems/spill.md +4 -3
- package/kb/site/en/reference/subsystems/storage.md +2 -2
- package/kb/site/en/reference/subsystems/subagent.md +207 -293
- package/kb/site/en/reference/subsystems/subprocess.md +17 -18
- package/kb/site/en/reference/subsystems/system-prompt.md +36 -3
- package/kb/site/en/reference/subsystems/terminal.md +1 -0
- package/kb/site/en/reference/subsystems/token-meter.md +1 -0
- package/kb/site/en/reference/subsystems/tools.md +42 -14
- package/kb/site/en/reference/subsystems/typert.md +362 -14
- package/kb/site/en/reference/subsystems/user-questions.md +131 -1
- package/kb/site/en/reference/subsystems/web-client.md +15 -9
- package/kb/site/en/reference/subsystems/web-server.md +157 -8
- package/kb/site/en/reference/subsystems/web.md +3 -2
- package/kb/site/en/reference/subsystems/workflow.md +10 -9
- package/kb/site/en/reference/subsystems/workspace.md +290 -42
- package/kb/site/en/reference/tool-catalog.md +908 -352
- package/kb/site/en/reference/tool-execution-pipeline.md +7 -3
- package/kb/site/guide/github-review.md +8 -10
- package/kb/site/guide/mcp-memory.md +1 -0
- package/kb/site/guide/network-proxy.md +2 -1
- package/kb/site/guide/plugin-market.md +151 -0
- package/kb/site/guide/providers-custom-form.zh.png +0 -0
- package/kb/site/guide/providers-models-page.zh.png +0 -0
- package/kb/site/guide/providers.md +132 -94
- package/kb/site/guide/public-deployments.md +40 -0
- package/kb/site/guide/python-sdk.md +49 -29
- package/kb/site/guide/quickstart.md +2 -0
- package/kb/site/guide/schedule.md +70 -11
- package/kb/site/reference/agent-lifecycle.md +1 -0
- package/kb/site/reference/api-gateway.md +28 -13
- package/kb/site/reference/capability-seams.md +242 -77
- package/kb/site/reference/config-catalog.md +2105 -906
- package/kb/site/reference/cookbook/adding-a-package.md +55 -3
- package/kb/site/reference/cookbook/adding-a-settings-card.md +35 -64
- package/kb/site/reference/cookbook/adding-a-tool.md +4 -3
- package/kb/site/reference/cookbook/adding-an-llm-adapter.md +1 -0
- package/kb/site/reference/cookbook/extension-cookbook.md +6 -5
- package/kb/site/reference/cordis-api/context.md +1 -0
- package/kb/site/reference/cordis-api/events.md +1 -0
- package/kb/site/reference/cordis-api/fiber.md +4 -3
- package/kb/site/reference/cordis-api/inherited.md +16 -16
- package/kb/site/reference/cordis-api/registry.md +1 -0
- package/kb/site/reference/cordis-api/service.md +1 -0
- package/kb/site/reference/cordis-primer.md +1 -0
- package/kb/site/reference/experimental-persistence-catalog.md +20 -0
- package/kb/site/reference/index.md +27 -21
- package/kb/site/reference/persistence-catalog.md +8061 -68
- package/kb/site/reference/subsystems/approval.md +2 -1
- package/kb/site/reference/subsystems/client-modules.md +37 -15
- package/kb/site/reference/subsystems/client-resources.md +3 -1
- package/kb/site/reference/subsystems/commands.md +6 -1
- package/kb/site/reference/subsystems/compaction.md +50 -3
- package/kb/site/reference/subsystems/conversation.md +51 -5
- package/kb/site/reference/subsystems/core.md +102 -258
- package/kb/site/reference/subsystems/credentials.md +178 -13
- package/kb/site/reference/subsystems/filesystem.md +11 -0
- package/kb/site/reference/subsystems/goal.md +2 -1
- package/kb/site/reference/subsystems/index.md +20 -6
- package/kb/site/reference/subsystems/jobs.md +396 -131
- package/kb/site/reference/subsystems/llm-streaming.md +157 -50
- package/kb/site/reference/subsystems/lsp.md +1 -0
- package/kb/site/reference/subsystems/permission-presets.md +66 -29
- package/kb/site/reference/subsystems/persistence.md +6 -3
- package/kb/site/reference/subsystems/plan.md +3 -2
- package/kb/site/reference/subsystems/ptc-runtime.md +254 -0
- package/kb/site/reference/subsystems/sandbox.md +7 -5
- package/kb/site/reference/subsystems/schedule.md +392 -33
- package/kb/site/reference/subsystems/scope.md +4 -1
- package/kb/site/reference/subsystems/session-projection.md +22 -19
- package/kb/site/reference/subsystems/session-query.md +3 -0
- package/kb/site/reference/subsystems/session-reference.md +8 -6
- package/kb/site/reference/subsystems/session-telemetry.md +7 -4
- package/kb/site/reference/subsystems/session-title.md +20 -10
- package/kb/site/reference/subsystems/session.md +254 -91
- package/kb/site/reference/subsystems/settings.md +43 -292
- package/kb/site/reference/subsystems/shell.md +37 -28
- package/kb/site/reference/subsystems/sidebar-right.md +25 -12
- package/kb/site/reference/subsystems/skills.md +5 -6
- package/kb/site/reference/subsystems/slots.md +92 -70
- package/kb/site/reference/subsystems/spill.md +3 -2
- package/kb/site/reference/subsystems/storage.md +2 -2
- package/kb/site/reference/subsystems/subagent.md +208 -296
- package/kb/site/reference/subsystems/subprocess.md +17 -18
- package/kb/site/reference/subsystems/system-prompt.md +36 -3
- package/kb/site/reference/subsystems/terminal.md +1 -0
- package/kb/site/reference/subsystems/token-meter.md +1 -0
- package/kb/site/reference/subsystems/tools.md +42 -14
- package/kb/site/reference/subsystems/typert.md +362 -14
- package/kb/site/reference/subsystems/user-questions.md +132 -2
- package/kb/site/reference/subsystems/web-client.md +15 -9
- package/kb/site/reference/subsystems/web-server.md +157 -8
- package/kb/site/reference/subsystems/web.md +3 -2
- package/kb/site/reference/subsystems/workflow.md +10 -9
- package/kb/site/reference/subsystems/workspace.md +290 -42
- package/kb/site/reference/tool-catalog.md +862 -306
- package/kb/site/reference/tool-execution-pipeline.md +7 -3
- package/package.json +2 -2
- package/skills/dsh-dev-sandbox.md +67 -0
- package/skills/dsh-plugin-dev-kb.md +5 -4
- package/kb/extra/defensive-patterns.md +0 -33
- package/kb/extra/defensive-patterns.zh.md +0 -35
- package/kb/site/en/reference/subsystems/code-runtime.md +0 -198
- package/kb/site/en/reference/subsystems/invariants.md +0 -91
- package/kb/site/reference/subsystems/code-runtime.md +0 -198
- package/kb/site/reference/subsystems/invariants.md +0 -91
|
@@ -1,172 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
editSource: "docs/subsystems/settings.zh.md"
|
|
3
|
+
rawMarkdownPath: "reference/subsystems/settings.md"
|
|
3
4
|
outline: [2,3]
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
#
|
|
7
|
+
# 插件配置表单
|
|
7
8
|
|
|
8
|
-
[
|
|
9
|
+
[设置服务](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/settings/settings/README.zh.md) 从活动 profile 条目投影 volatile Config 字段。[配置编辑器](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/boot/config-editor/README.zh.md) 通过 Cordis patch 持久化编辑。业务消费者对自己的 Config 引用调用 `.get()`。
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
## 标识与值
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
表单命名空间是当前 profile 中可唯一定位条目的本地 id。多个插件实例在条目 id 不同时拥有独立表单。普通字段被排除。描述符包含实际值、继承值、显式 profile 覆盖值和乐观修订号。
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
## 编辑
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
/** Nominal id of one registered settings namespace. */
|
|
18
|
-
type SettingsNamespace = Branded<'SettingsNamespace'>
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## 注册
|
|
22
|
-
|
|
23
|
-
注册把 schemastery schema 绑定到调用方插件 fiber 上的 namespace——dispose(资源释放)该 fiber 即移除 namespace 及其观察者。options 携带组合层、owner 的生效时机,以及一个可选的、用于校验 schema 表达不了的约束的钩子。
|
|
24
|
-
|
|
25
|
-
```ts type-equiv
|
|
26
|
-
/** Registration options beyond the namespace schema. */
|
|
27
|
-
interface SettingsRegisterOptions<T> {
|
|
28
|
-
/** Composition-layer values resolved below the user layer (entry-config subset). */
|
|
29
|
-
base?: Partial<T>
|
|
30
|
-
/** Owner's effect timing, surfaced to configuration UIs; defaults to `live`. */
|
|
31
|
-
applies?: SettingsApplies
|
|
32
|
-
/**
|
|
33
|
-
* Reject a resolved section the owner could not act on, for constraints its
|
|
34
|
-
* schema cannot express — a cross-field requirement, or one field's validity
|
|
35
|
-
* depending on another's. Throwing here refuses the *write* that produced the
|
|
36
|
-
* value, so a caller learns at `update`/`replace`/`mutate` instead of storing
|
|
37
|
-
* something that would silently disable the owner.
|
|
38
|
-
*
|
|
39
|
-
* Kept separate from the schema because the schema is also what a
|
|
40
|
-
* configuration surface renders and what an absent section resolves through;
|
|
41
|
-
* folding a cross-field check into it would change both.
|
|
42
|
-
*
|
|
43
|
-
* Once the owner is registered, a stored section that fails this keeps the
|
|
44
|
-
* namespace's last good value and warns, exactly as a schema failure does,
|
|
45
|
-
* so an externally edited document cannot strand a running owner. At
|
|
46
|
-
* registration there is no last good value yet, so a stored section that
|
|
47
|
-
* already fails rejects the registration itself — again exactly as a schema
|
|
48
|
-
* failure does.
|
|
49
|
-
* @param value - the resolved section, schema-valid by construction.
|
|
50
|
-
*/
|
|
51
|
-
validate?: (value: T) => void
|
|
52
|
-
}
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
`validate` 在 schema 接纳该值之后运行,因此它看到的默认值和组合 base 与 owner 实际看到的完全一致。`dsh-llm-pi-ai` 用它在写入处拒绝自己无法服务的提供方 profile,而不是先存下来、再让该 namespace 下每条路由失效。
|
|
56
|
-
|
|
57
|
-
`applies` 是 UI 提示而非机制:`restart` 的 owner 从不 watch,其值在构造期读取一次,配置界面可为待生效变更加标。
|
|
58
|
-
|
|
59
|
-
```ts type-equiv
|
|
60
|
-
/** When a namespace's changes take effect for its owner. */
|
|
61
|
-
type SettingsApplies = 'live' | 'restart'
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Owner scope
|
|
65
|
-
|
|
66
|
-
scope 是面向 owner 的句柄。`update` 把稀疏 patch 只合并进用户分节(绝不进 `base`);`replace` 整体替换分节,是删除/重置路径——替换中缺席的键重新继承 `base` 与 schema 默认值。同一 namespace 的写入按调用顺序串行,解析值是深冻结快照。
|
|
67
|
-
|
|
68
|
-
```ts type-equiv
|
|
69
|
-
/** Owner-facing handle for one registered namespace. */
|
|
70
|
-
interface SettingsScope<T> {
|
|
71
|
-
/** Current resolved value: schema defaults, then `base`, then the user layer. */
|
|
72
|
-
get(): T
|
|
73
|
-
/**
|
|
74
|
-
* Observe committed changes to this namespace's resolved value. Invocations
|
|
75
|
-
* of one callback run asynchronously, one at a time, in commit order; a
|
|
76
|
-
* rejection is contained and logged like a sync throw. After the disposer
|
|
77
|
-
* returns, no further invocation starts — one already queued is skipped;
|
|
78
|
-
* one already started still settles, and service disposal waits for it.
|
|
79
|
-
* @param callback - invoked after each commit with the next and previous values.
|
|
80
|
-
* @returns the disposer removing this observer.
|
|
81
|
-
*/
|
|
82
|
-
watch(callback: (next: T, prev: T) => void | Promise<void>): () => void
|
|
83
|
-
/**
|
|
84
|
-
* Merge a partial patch into this namespace's user layer and persist it.
|
|
85
|
-
* @param patch - plain-object patch over the user section; JSON-compatible data
|
|
86
|
-
* only (non-JSON values reject with their path before anything persists).
|
|
87
|
-
*/
|
|
88
|
-
update(patch: object): Promise<void>
|
|
89
|
-
/**
|
|
90
|
-
* Replace this namespace's user section wholesale; absent keys re-inherit
|
|
91
|
-
* the composition `base` and schema defaults (`replace({})` resets all).
|
|
92
|
-
* @param section - the complete next user section; JSON-compatible data only,
|
|
93
|
-
* as for {@link update}.
|
|
94
|
-
*/
|
|
95
|
-
replace(section: object): Promise<void>
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
## 描述符
|
|
100
|
-
|
|
101
|
-
`describe()` 为配置界面序列化每个已注册 namespace:schemastery 的 `toJSON()` 封装结构驱动 schema 渲染的表单,解析值填充表单,分离出的 `base`/`user` 层让表单按字段是否出现在 user 层标注「用户已覆盖」。`describe({ redactSecrets: true })`——每个对外传输接口都必须传入——从三层剥离 `role('secret')` 字段并枚举其 `{path, set}` slot,页面因此能渲染只写输入框而永远收不到机密值。
|
|
102
|
-
|
|
103
|
-
```ts type-equiv
|
|
104
|
-
/** One registered namespace as surfaced to configuration UIs. */
|
|
105
|
-
interface SettingsDescriptor {
|
|
106
|
-
/** The registered namespace. */
|
|
107
|
-
ns: SettingsNamespace
|
|
108
|
-
/** Serialized schemastery schema (`schema.toJSON()`). */
|
|
109
|
-
schema: unknown
|
|
110
|
-
/** Current resolved value. */
|
|
111
|
-
value: unknown
|
|
112
|
-
/**
|
|
113
|
-
* Monotonic revision of the raw user section this descriptor was read at.
|
|
114
|
-
* Send it back as `expectedRevision` on a write to refuse a stale one.
|
|
115
|
-
*/
|
|
116
|
-
revision: number
|
|
117
|
-
/** Registrant's composition `base` layer (detached), when one was declared. */
|
|
118
|
-
base?: unknown
|
|
119
|
-
/**
|
|
120
|
-
* Raw user section from the stored document (detached), when one exists and
|
|
121
|
-
* is well-formed; a field's presence here is what marks it user-overridden.
|
|
122
|
-
*/
|
|
123
|
-
user?: unknown
|
|
124
|
-
/** Owner's declared effect timing. */
|
|
125
|
-
applies: SettingsApplies
|
|
126
|
-
/** Schema-declared secret positions; present only under `redactSecrets`. */
|
|
127
|
-
secrets?: RedactedSecret[]
|
|
128
|
-
}
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
只持有脱敏 descriptor 的调用方无法安全地重建分节,因此删除改以路径 op 传递。每个 descriptor 还携带针对原始分节的 `revision`;写入可以把它作为 `expectedRevision` 送回,不再匹配的写入会被拒绝,而不会覆盖先落地的写入。
|
|
132
|
-
```ts type-equiv
|
|
133
|
-
/**
|
|
134
|
-
* One path-addressed edit to a namespace's user section. Path mutation exists
|
|
135
|
-
* for a caller holding an INCOMPLETE view of the section — a configuration UI
|
|
136
|
-
* reads the redacted descriptor, which by construction never received the
|
|
137
|
-
* `role('secret')` fields. Such a caller can name the field it means without
|
|
138
|
-
* restating the section: a wholesale `replace` rebuilt from a redacted
|
|
139
|
-
* document silently deletes every secret the wire never returned.
|
|
140
|
-
*/
|
|
141
|
-
type SettingsPathOp =
|
|
142
|
-
| { op: 'set'; path: readonly string[]; value: unknown }
|
|
143
|
-
| { op: 'unset'; path: readonly string[] }
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
```ts type-equiv
|
|
147
|
-
/** Options for {@link SettingsProvider.describe}. */
|
|
148
|
-
interface SettingsDescribeOptions {
|
|
149
|
-
/**
|
|
150
|
-
* Strip `role('secret')` fields from `value`/`base`/`user` and enumerate
|
|
151
|
-
* them in each descriptor's `secrets`. Every wire surface MUST pass this;
|
|
152
|
-
* the verbatim default exists for same-process configuration UIs only.
|
|
153
|
-
*/
|
|
154
|
-
redactSecrets?: boolean
|
|
155
|
-
}
|
|
156
|
-
```
|
|
17
|
+
`update` 合并提交的字段。`replace` 先将即时字段重置为继承配置,再应用提交的字段。`mutate` 操作独立路径,保留客户端响应中未包含的秘密值。每次写入都会验证完整 Config,并在持久化前拒绝过期修订号。
|
|
157
18
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
每次提交的变更——进程内写入或提供方观察到的外部编辑——在新值成为权威值之后发出 `settings/updated (ns, next, prev, source)`,解析值深相等时绝不发出。source 标记区分两条入口路径。
|
|
161
|
-
|
|
162
|
-
```ts type-equiv
|
|
163
|
-
/** Origin of one committed settings change. */
|
|
164
|
-
type SettingsUpdateSource = 'update' | 'provider'
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
## 原生文档操作
|
|
168
|
-
|
|
169
|
-
`SettingsDocumentOpenValue` 确认 `settings/openSettingsDocument` 已准备好 provider 持有的文档,并将其交给原生文本编辑器。`AgentPresetDirectoryOpenValue` 报告已完成的原生交接,或在桌面打开不可用时返回解析后的用户 preset 目录。两项操作都不接受由浏览器选择的 Host 路径。
|
|
19
|
+
`settings/document-updated` 在 Loader 配置变化后使表单描述符失效。这是 UI 通知;消费者仅在需要刷新注册信息时使用 `loader/volatile-update`。
|
|
170
20
|
|
|
171
21
|
<!-- BEGIN GENERATED cordis-surface (gen-cordis-catalog.ts) — do not edit between markers -->
|
|
172
22
|
|
|
@@ -176,105 +26,52 @@ type SettingsUpdateSource = 'update' | 'provider'
|
|
|
176
26
|
|
|
177
27
|
Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnpm run verify-cordis-catalog` in doc-sync; regenerate with `pnpm run gen-cordis-catalog`) — the language sides differ only in locale-specific paired document paths. Signature blocks use a `ts cordis-catalog` fence and keep the original source JSDoc; dispatch modes are defined in the [primer](../cordis-primer.md#dispatch-modes), and the framework-inherited `ctx` API lives in [cordis-api/inherited.md](../cordis-api/inherited.md).
|
|
178
28
|
|
|
179
|
-
<a id="ctxsettings--
|
|
29
|
+
<a id="ctxsettings--settingsforms"></a>
|
|
180
30
|
|
|
181
|
-
### `ctx.settings` — `
|
|
31
|
+
### `ctx.settings` — `SettingsForms`
|
|
182
32
|
|
|
183
|
-
|
|
33
|
+
Project Config schemas into forms and own optional instance-level UI policy.
|
|
184
34
|
|
|
185
35
|
```ts cordis-catalog
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* @
|
|
36
|
+
/** Register the calling plugin instance's page policy without changing its Config.
|
|
37
|
+
* @param presentation Automatic-page policy for this instance; `auto` defaults to true.
|
|
38
|
+
* @param owner Plugin instance the policy belongs to; defaults to the calling fiber.
|
|
39
|
+
* @returns Disposer; register it with the calling plugin's effects.
|
|
40
|
+
* @throws If this instance already has a registered policy.
|
|
191
41
|
*/
|
|
192
|
-
|
|
42
|
+
configure(presentation: { auto?: boolean }, owner: Fiber = this.ctx.fiber): () => void
|
|
193
43
|
|
|
194
|
-
/**
|
|
195
|
-
*
|
|
196
|
-
* is an effect on the calling plugin's fiber: disposing that fiber removes
|
|
197
|
-
* the namespace and its observers. An invalid stored section fails the
|
|
198
|
-
* registration itself — the earliest point where the schema can judge it.
|
|
199
|
-
* @param ns - unique namespace; duplicate registration fails loud.
|
|
200
|
-
* @param schema - schemastery schema resolving this namespace's value.
|
|
201
|
-
* @param options - composition `base` layer and effect timing.
|
|
202
|
-
* @returns the owner scope for reads, observation, and updates.
|
|
203
|
-
* @throws {TypeError} when `ns` is not a lowercase hyphenated identifier.
|
|
44
|
+
/** Locate the profile patch for native editing.
|
|
45
|
+
* @returns The existing profile patch path.
|
|
204
46
|
*/
|
|
205
|
-
|
|
47
|
+
prepareDocument(): Promise<string>
|
|
206
48
|
|
|
207
|
-
/**
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
* present, then falls back to that entry if the provider detaches.
|
|
211
|
-
* @param owner - consumer context whose unload suppresses fallback work.
|
|
212
|
-
* @param ns - consumer-owned settings namespace.
|
|
213
|
-
* @param schema - schema resolving the namespace.
|
|
214
|
-
* @param entry - composition entry used as the base and fallback value.
|
|
215
|
-
* @param hooks - source sink, change notification, and optional validation.
|
|
216
|
-
* @throws {TypeError} when `ns` is not a lowercase hyphenated identifier.
|
|
217
|
-
*/
|
|
218
|
-
installSection<const Namespace extends string, T>( owner: Context, ns: Namespace & SettingsNamespaceInput<Namespace>, schema: z<T>, entry: T, hooks: SettingsSectionHooks<T>, ): void
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Describe every registered namespace for configuration surfaces, including
|
|
222
|
-
* the composition `base` and raw user layers so a form can mark which fields
|
|
223
|
-
* the user overrode (presence in `user`) and what a reset returns to.
|
|
224
|
-
* @param options - redaction switch; wire surfaces must redact.
|
|
225
|
-
* @returns one descriptor per registered namespace, in registration order.
|
|
49
|
+
/** Read active plugin schemas and their live values.
|
|
50
|
+
* @param options Redaction required for remote callers.
|
|
51
|
+
* @returns Forms keyed by unique profile entry ids.
|
|
226
52
|
*/
|
|
227
53
|
describe(options?: SettingsDescribeOptions): SettingsDescriptor[]
|
|
228
54
|
|
|
229
|
-
/**
|
|
230
|
-
*
|
|
231
|
-
* @param
|
|
232
|
-
* @
|
|
233
|
-
* @throws {TypeError} when `ns` is not a lowercase hyphenated identifier.
|
|
55
|
+
/** Merge editable fields into an entry's config.
|
|
56
|
+
* @param ns Profile entry id.
|
|
57
|
+
* @param patch Fields to merge.
|
|
58
|
+
* @param expectedRevision Revision returned by describe.
|
|
234
59
|
*/
|
|
235
|
-
|
|
60
|
+
async update(ns: string, patch: object, expectedRevision?: number): Promise<void>
|
|
236
61
|
|
|
237
|
-
/**
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
* namespace are serialized: concurrent updates apply in call order, each
|
|
242
|
-
* merging over the previous write's committed section.
|
|
243
|
-
* @param ns - the registered namespace to update.
|
|
244
|
-
* @param patch - plain-object patch over the user section.
|
|
245
|
-
* @param expectedRevision - the descriptor `revision` the caller read; a
|
|
246
|
-
* namespace that moved past it rejects with {@link SettingsConflictError}.
|
|
247
|
-
* @throws {TypeError} when `ns` is not a lowercase hyphenated identifier.
|
|
62
|
+
/** Reset all live fields, then set the supplied fields; ordinary config is preserved.
|
|
63
|
+
* @param ns Profile entry id.
|
|
64
|
+
* @param section Complete form values.
|
|
65
|
+
* @param expectedRevision Revision returned by describe.
|
|
248
66
|
*/
|
|
249
|
-
async
|
|
67
|
+
async replace(ns: string, section: object, expectedRevision?: number): Promise<void>
|
|
250
68
|
|
|
251
|
-
/**
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
* merge-only patch cannot express (`replace({})` re-inherits everything).
|
|
256
|
-
* @param ns - the registered namespace to replace.
|
|
257
|
-
* @param section - the complete next user section.
|
|
258
|
-
* @param expectedRevision - the descriptor `revision` the caller read; a
|
|
259
|
-
* namespace that moved past it rejects with {@link SettingsConflictError}.
|
|
260
|
-
* @throws {TypeError} when `ns` is not a lowercase hyphenated identifier.
|
|
69
|
+
/** Apply field edits without restating redacted secrets; unsetting an array index removes its element.
|
|
70
|
+
* @param ns Profile entry id.
|
|
71
|
+
* @param ops Ordered form edits.
|
|
72
|
+
* @param expectedRevision Revision returned by describe.
|
|
261
73
|
*/
|
|
262
|
-
async
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Apply path-addressed edits to one registered namespace's user section,
|
|
266
|
-
* validate, persist, then commit and emit. The ops are applied to the
|
|
267
|
-
* section as it stands when the write reaches the front of the queue, so a
|
|
268
|
-
* caller never has to restate fields it did not touch — and, crucially,
|
|
269
|
-
* cannot delete fields it never saw. This is the write path for any caller
|
|
270
|
-
* holding a redacted view; `replace` remains the wholesale reset.
|
|
271
|
-
* @param ns - the registered namespace to edit.
|
|
272
|
-
* @param ops - ordered path edits; later ops observe earlier ones.
|
|
273
|
-
* @param expectedRevision - the descriptor `revision` the caller read; a
|
|
274
|
-
* namespace that moved past it rejects with {@link SettingsConflictError}.
|
|
275
|
-
* @throws {TypeError} when `ns` is not a lowercase hyphenated identifier.
|
|
276
|
-
*/
|
|
277
|
-
async mutate<const Namespace extends string>( ns: Namespace & SettingsNamespaceInput<Namespace>, ops: readonly SettingsPathOp[], expectedRevision?: number, ): Promise<void>
|
|
74
|
+
async mutate(ns: string, ops: readonly SettingsPathOp[], expectedRevision?: number): Promise<void>
|
|
278
75
|
```
|
|
279
76
|
|
|
280
77
|
Source: [`packages/settings/settings/src/index.ts`](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/settings/settings/src/index.ts)
|
|
@@ -294,12 +91,6 @@ Host service backing the generated `ctx.remote.settings` namespace. Every remote
|
|
|
294
91
|
*/
|
|
295
92
|
@Remote describe(): SettingsDescribeValue
|
|
296
93
|
|
|
297
|
-
/**
|
|
298
|
-
* Report whether this deployment can open an authored Agent preset directory natively.
|
|
299
|
-
* @returns true when the matching open operation is available.
|
|
300
|
-
*/
|
|
301
|
-
@Remote canOpenAgentPresetDirectory(): boolean
|
|
302
|
-
|
|
303
94
|
/**
|
|
304
95
|
* Merge a patch into one namespace's stored user section.
|
|
305
96
|
* @param ns - namespace key to write.
|
|
@@ -339,15 +130,6 @@ Host service backing the generated `ctx.remote.settings` namespace. Every remote
|
|
|
339
130
|
* @throws RemoteError when no document exists, preparation fails, or opening fails.
|
|
340
131
|
*/
|
|
341
132
|
@Remote async openSettingsDocument(signal: AbortSignal): Promise<SettingsDocumentOpenValue>
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Open one user-authored Agent preset directory or return its path when no native opener exists.
|
|
345
|
-
* @param agentPreset - preset id resolved against Host-owned roots.
|
|
346
|
-
* @param signal - caller lifetime; abort terminates the native command.
|
|
347
|
-
* @returns an opened confirmation or the resolved directory for text display.
|
|
348
|
-
* @throws RemoteError when the preset is missing, read-only, invalid, or cannot be opened.
|
|
349
|
-
*/
|
|
350
|
-
@Remote async openAgentPresetDirectory( agentPreset: string, signal: AbortSignal, ): Promise<AgentPresetDirectoryOpenValue>
|
|
351
133
|
```
|
|
352
134
|
|
|
353
135
|
Source: [`packages/api/settings-controller/src/index.ts`](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/api/settings-controller/src/index.ts)
|
|
@@ -360,49 +142,18 @@ Source: [`packages/api/settings-controller/src/index.ts`](https://github.com/dee
|
|
|
360
142
|
|
|
361
143
|
#### `settings/document-updated` — emit
|
|
362
144
|
|
|
363
|
-
One
|
|
145
|
+
One profile entry's form values, availability, or page policy changed. Form clients re-read its schema, resolved values, and revision.
|
|
364
146
|
|
|
365
147
|
```ts cordis-catalog
|
|
366
148
|
/**
|
|
367
|
-
* One
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
* resolved value, different meaning) and that their held revision is
|
|
372
|
-
* stale. Listener containment matches `settings/updated`.
|
|
373
|
-
* @param ns - the namespace whose stored section changed.
|
|
374
|
-
* @param revision - the namespace's new revision.
|
|
149
|
+
* One profile entry's form values, availability, or page policy changed.
|
|
150
|
+
* Form clients re-read its schema, resolved values, and revision.
|
|
151
|
+
* @param ns Profile entry id.
|
|
152
|
+
* @param revision The entry's new revision.
|
|
375
153
|
* @mode emit
|
|
376
154
|
*/
|
|
377
155
|
'settings/document-updated'(ns: SettingsNamespace, revision: number): void
|
|
378
156
|
```
|
|
379
157
|
|
|
380
|
-
Source: [`packages/settings/settings/src/types.ts`](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/settings/settings/src/types.ts)
|
|
381
|
-
|
|
382
|
-
<a id="settingsupdated--emit"></a>
|
|
383
|
-
|
|
384
|
-
#### `settings/updated` — emit
|
|
385
|
-
|
|
386
|
-
Committed change to one registered namespace's resolved value. Emitted after the provider persisted (for `update`) or published (`provider`) the change; never emitted when the resolved value is deep-equal. Listener failures are contained and logged — a sync throw and an async rejection alike — except `INVARIANT`-coded failures, which rethrow after every listener ran; that rethrow reaches the emitter only from synchronous listeners, so invariant checks on this event must not be async functions.
|
|
387
|
-
|
|
388
|
-
```ts cordis-catalog
|
|
389
|
-
/**
|
|
390
|
-
* Committed change to one registered namespace's resolved value. Emitted
|
|
391
|
-
* after the provider persisted (for `update`) or published (`provider`)
|
|
392
|
-
* the change; never emitted when the resolved value is deep-equal.
|
|
393
|
-
* Listener failures are contained and logged — a sync throw and an async
|
|
394
|
-
* rejection alike — except `INVARIANT`-coded failures, which rethrow
|
|
395
|
-
* after every listener ran; that rethrow reaches the emitter only from
|
|
396
|
-
* synchronous listeners, so invariant checks on this event must not be
|
|
397
|
-
* async functions.
|
|
398
|
-
* @param ns - the namespace whose resolved value changed.
|
|
399
|
-
* @param next - the new resolved value.
|
|
400
|
-
* @param prev - the previous resolved value.
|
|
401
|
-
* @param source - whether the change entered through `update()` or the provider.
|
|
402
|
-
* @mode emit
|
|
403
|
-
*/
|
|
404
|
-
'settings/updated'(ns: SettingsNamespace, next: unknown, prev: unknown, source: SettingsUpdateSource): void
|
|
405
|
-
```
|
|
406
|
-
|
|
407
158
|
Source: [`packages/settings/settings/src/types.ts`](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/settings/settings/src/types.ts)
|
|
408
159
|
<!-- END GENERATED cordis-surface -->
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
editSource: "docs/subsystems/shell.zh.md"
|
|
3
|
+
rawMarkdownPath: "reference/subsystems/shell.md"
|
|
3
4
|
outline: [2,3]
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
#
|
|
7
|
+
# Shell 执行器
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
shell 执行 seam 由 [dsh-shell](https://github.com/deepseek-ai/deepseek-harness/tree/master/packages/shell/shell) 在 `ctx.shell` 上提供 Service Definition。[shell 包组](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/shell/README.zh.md)列出其 Bash 与 PowerShell 提供方以及面向模型的 Consumer。通用后台任务的 id、所有权与控制位于 [jobs.md](./jobs.md);本 seam 返回进程句柄,不注册后台任务。managed-range 机制封装在[子进程 seam](./subprocess.md)之后。
|
|
9
10
|
|
|
10
11
|
源码:[`packages/shell/shell/src/types.ts`](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/shell/shell/src/types.ts)
|
|
11
12
|
|
|
@@ -30,6 +31,8 @@ interface ShellExecRequest {
|
|
|
30
31
|
workdir?: string | undefined
|
|
31
32
|
/** Timeout override in milliseconds (implementations cap it). */
|
|
32
33
|
timeoutMs?: number | undefined
|
|
34
|
+
/** Deadline policy at `timeoutMs` expiry (default `'kill'`). */
|
|
35
|
+
onExpiry?: ShellExpiryPolicy | undefined
|
|
33
36
|
/**
|
|
34
37
|
* Foreground stdout capture budget in bytes. Absent uses the executor's
|
|
35
38
|
* default output cap. Trusted in-process consumers use this when they must
|
|
@@ -37,7 +40,7 @@ interface ShellExecRequest {
|
|
|
37
40
|
* tool does not expose it as a parameter.
|
|
38
41
|
*/
|
|
39
42
|
stdoutMaxBytes?: number | undefined
|
|
40
|
-
/** Abort signal — implementations kill the command when it fires. */
|
|
43
|
+
/** Abort signal — implementations kill the command when it fires, and treat a signal that is already aborted as fired. */
|
|
41
44
|
signal?: AbortSignal | undefined
|
|
42
45
|
/**
|
|
43
46
|
* Bytes to write to the command's stdin, then close it. Absent leaves stdin
|
|
@@ -71,19 +74,21 @@ interface ShellExecRequest {
|
|
|
71
74
|
```ts type-equiv
|
|
72
75
|
/**
|
|
73
76
|
* A resolved execution spec. {@link ShellExecutor.resolve} fills and caps the
|
|
74
|
-
* required fields;
|
|
75
|
-
*
|
|
77
|
+
* required fields; under `onExpiry: 'none'` the resolved `timeoutMs` arms no
|
|
78
|
+
* timer and is only echoed into {@link ShellRunResult.timeoutMs}.
|
|
76
79
|
*/
|
|
77
80
|
interface ShellExecSpec {
|
|
78
81
|
command: string
|
|
79
82
|
workdir: string
|
|
80
83
|
timeoutMs: number
|
|
84
|
+
/** Deadline policy at `timeoutMs` expiry ({@link ShellExecutor.resolve} defaults it to `'kill'`). */
|
|
85
|
+
onExpiry: ShellExpiryPolicy
|
|
81
86
|
/**
|
|
82
|
-
* Resolved
|
|
83
|
-
* stdout;
|
|
87
|
+
* Resolved stdout capture budget in bytes, applied to every execution's
|
|
88
|
+
* stdout; stderr keeps the executor's own output cap.
|
|
84
89
|
*/
|
|
85
90
|
stdoutMaxBytes: number
|
|
86
|
-
/** Abort signal — implementations kill the command when it fires. */
|
|
91
|
+
/** Abort signal — implementations kill the command when it fires, and treat a signal that is already aborted as fired. */
|
|
87
92
|
signal?: AbortSignal | undefined
|
|
88
93
|
/** Bytes to write to stdin before closing it; absent means no stdin. */
|
|
89
94
|
stdin?: string | undefined
|
|
@@ -110,11 +115,11 @@ interface ShellExecSpec {
|
|
|
110
115
|
一次已完成(或被终止)的前台运行的结果。正交的结果**独立报告**:一个进程可以同时超时并以退出码 0 退出(因为它捕获了信号),因此 `timedOut`、`aborted`、`signal` 和 `exitCode` 各自独立为一个字段;调用方永远不会把一次被提前中断的运行误读为正常成功。
|
|
111
116
|
|
|
112
117
|
```ts type-equiv
|
|
113
|
-
/** The outcome of
|
|
118
|
+
/** The outcome of a foreground run, including timeout during preparation. */
|
|
114
119
|
interface ShellRunResult {
|
|
115
|
-
/** Exit code; null when the process died from a signal. */
|
|
120
|
+
/** Exit code; null when preparation expired or the process died from a signal. */
|
|
116
121
|
exitCode: number | null
|
|
117
|
-
/** Terminating signal
|
|
122
|
+
/** Terminating signal, or null when none was reported, including preparation expiry. */
|
|
118
123
|
signal: NodeJS.Signals | null
|
|
119
124
|
/**
|
|
120
125
|
* True when the executor's own timeout was the FIRST cause to cut the command
|
|
@@ -165,11 +170,11 @@ interface ShellSandboxInfo {
|
|
|
165
170
|
}
|
|
166
171
|
```
|
|
167
172
|
|
|
168
|
-
当受限模式没有可用后端时,`ctx.sandbox` 提供方会抛出、执行器会传播由[沙箱 seam](./sandbox.md)所有的 `SANDBOX_UNAVAILABLE` 错误码。选定的 runner 拒绝其 profile 时会触达同一个故障关闭的前台错误;已结束的后台任务则记录 `runnerFailed`。模型会在结果中收到拒绝/runner 事实,仅当拒绝标记指出生效模式时才得知该模式,并可通过 `sandbox_permissions` 加 `justification` 请求一次性、严格更宽松的重试;执行任何操作前,`ctx.approval` 必须批准该次确切调用。完整的策略与切换设计见[沙箱
|
|
173
|
+
当受限模式没有可用后端时,`ctx.sandbox` 提供方会抛出、执行器会传播由[沙箱 seam](./sandbox.md)所有的 `SANDBOX_UNAVAILABLE` 错误码。选定的 runner 拒绝其 profile 时会触达同一个故障关闭的前台错误;已结束的后台任务则记录 `runnerFailed`。模型会在结果中收到拒绝/runner 事实,仅当拒绝标记指出生效模式时才得知该模式,并可通过 `sandbox_permissions` 加 `justification` 请求一次性、严格更宽松的重试;执行任何操作前,`ctx.approval` 必须批准该次确切调用。完整的策略与切换设计见[沙箱 参考](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/sandbox/sandbox-policy/README.zh.md)。
|
|
169
174
|
|
|
170
175
|
## 后台进程:`ShellProcess`
|
|
171
176
|
|
|
172
|
-
`start()`
|
|
177
|
+
`start()` 在异步启动准备完成后返回句柄;取消或准备失败会在发布前拒绝调用。该句柄没有 id 或 owner。`dsh-tool-bash` 将它适配为 `ctx.jobs.start()` 钩子;随后由通用运行时拥有任务标识与生命周期。`done` 会在底层进程结算时完成且绝不 reject;subprocess 提供方的 rejection 会生成状态为 `killed` 的进程,并把不声明阶段的错误写入 stderr。进程结算后仍可读取,并且沙箱事实会在 `done` 完成前写入。
|
|
173
178
|
|
|
174
179
|
```ts type-equiv
|
|
175
180
|
/**
|
|
@@ -198,6 +203,13 @@ interface ShellProcess {
|
|
|
198
203
|
* full-stream spill files when available.
|
|
199
204
|
*/
|
|
200
205
|
readOutput(): ShellProcessRead
|
|
206
|
+
/**
|
|
207
|
+
* Non-consuming offset readers over the same captured streams the consuming
|
|
208
|
+
* {@link readOutput} cursor drains, including the provider-failure note a
|
|
209
|
+
* rejected spawn leaves on stderr. Independent observers read here at their
|
|
210
|
+
* own offsets without stealing bytes from `readOutput`.
|
|
211
|
+
*/
|
|
212
|
+
observed: ShellObservedStreams
|
|
201
213
|
/**
|
|
202
214
|
* Terminate the provider-managed range. Returns false when it had already finished
|
|
203
215
|
* (no-op); idempotent.
|
|
@@ -240,36 +252,33 @@ Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnp
|
|
|
240
252
|
|
|
241
253
|
Abstract bash execution service. Subclass, implement the abstract methods, and load the subclass as a plugin — it registers as `ctx.shell` (one implementation per context; loading a second throws, which is cordis' standard duplicate-service behavior).
|
|
242
254
|
|
|
255
|
+
execute resolves with the process handle after preparation. "Foreground" is a property of what the caller awaits, not of the spawn — a caller that awaits ShellExecution.result ran the command in the foreground; one that keeps the handle ran it in the background. A caller that waits only for a while runs the command under `onExpiry: 'none'` and bounds its own wait; the handle stays valid after the caller stops waiting.
|
|
256
|
+
|
|
243
257
|
Implementations must honor these semantics:
|
|
244
258
|
|
|
245
|
-
-
|
|
246
|
-
-
|
|
259
|
+
- ShellExecution.result rejects only for infrastructure failures. Nonzero exits, timeout kills, and abort kills resolve with a descriptive result: first-cause `timedOut`/`aborted`, the spec's `timeoutMs` echoed.
|
|
260
|
+
- The handle is published after preparation. `done` settles at process close and never rejects; spawn failures settle as `killed` with the error on the read path, while `result()` carries the same failure as its rejection.
|
|
261
|
+
- `onExpiry: 'none'` arms no deadline; `'kill'` kills at expiry. Expiry during preparation returns a settled timed-out handle without output.
|
|
247
262
|
- ShellProcess.readOutput is incremental: consecutive reads never repeat output. Lossy reads report truncation and available spill files.
|
|
248
|
-
- A still-running
|
|
263
|
+
- A still-running process is stopped and awaited when its owning composition tears down. With the subprocess seam that boundary is `ctx.subprocess` disposal, so a process survives an executor-only reload.
|
|
249
264
|
|
|
250
265
|
```ts cordis-catalog
|
|
251
266
|
/**
|
|
252
267
|
* Apply implementation-owned defaults and caps to a request before execution.
|
|
253
268
|
* @param request - the caller's request; omitted fields get this
|
|
254
269
|
* implementation's defaults, capped fields are clamped.
|
|
255
|
-
* @returns the fully-specified spec to hand to {@link
|
|
270
|
+
* @returns the fully-specified spec to hand to {@link execute}.
|
|
256
271
|
*/
|
|
257
272
|
abstract resolve(request: ShellExecRequest): ShellExecSpec
|
|
258
273
|
|
|
259
274
|
/**
|
|
260
|
-
*
|
|
261
|
-
* @param spec - a resolved spec from {@link resolve}, never a raw request.
|
|
262
|
-
* @returns the outcome; nonzero exits, timeout kills, and abort kills
|
|
263
|
-
* resolve with a descriptive result rather than reject.
|
|
264
|
-
*/
|
|
265
|
-
abstract run(spec: ShellExecSpec): Promise<ShellRunResult>
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Start a background process and return its handle immediately.
|
|
275
|
+
* Prepare and spawn the command under its resolved deadline.
|
|
269
276
|
* @param spec - a resolved spec from {@link resolve}, never a raw request.
|
|
270
|
-
* @returns the
|
|
277
|
+
* @returns the prepared handle, including its result projection;
|
|
278
|
+
* preparation timeout yields an already-settled handle with no output.
|
|
279
|
+
* @throws on preparation failure or caller cancellation before process publication.
|
|
271
280
|
*/
|
|
272
|
-
abstract
|
|
281
|
+
abstract execute(spec: ShellExecSpec): Promise<ShellExecution>
|
|
273
282
|
```
|
|
274
283
|
|
|
275
284
|
Source: [`packages/shell/shell/src/index.ts`](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/shell/shell/src/index.ts)
|