dsh-plugin-guide 0.3.1 → 0.3.2
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 +1 -1
- package/README.hi.md +1 -1
- package/README.md +1 -1
- package/README.pt.md +1 -1
- package/README.zh.md +1 -1
- package/SKILL.md +1 -1
- package/dist/dsh-plugin-dev.js +5 -5
- package/guide/links.md +1 -1
- package/guide/plugin-dev-guide.md +1 -1
- package/guide/quick-reference.es.md +2 -2
- package/guide/quick-reference.hi.md +1 -1
- package/guide/quick-reference.md +2 -2
- package/guide/quick-reference.pt.md +2 -2
- package/guide/quick-reference.zh-CN.md +2 -2
- package/package.json +3 -3
- package/references/cordis-paper-and-community.md +1 -1
- package/references/official-docs/AGENTS.md +27 -22
- package/references/official-docs/README.i18n.yaml +2 -2
- package/references/official-docs/README.md +1 -1
- package/references/official-docs/README.zh.md +19 -9
- package/references/official-docs/SNAPSHOT.md +5 -5
- package/references/official-docs/THIRD_PARTY_NOTICES.md +36 -13
- package/references/official-docs/docs/AGENTS.md +4 -4
- package/references/official-docs/docs/agent-lifecycle.i18n.yaml +2 -2
- package/references/official-docs/docs/agent-lifecycle.md +1 -1
- package/references/official-docs/docs/agent-lifecycle.zh.md +2 -2
- package/references/official-docs/docs/api-gateway.i18n.yaml +2 -2
- package/references/official-docs/docs/api-gateway.md +8 -8
- package/references/official-docs/docs/api-gateway.zh.md +8 -8
- package/references/official-docs/docs/architecture.i18n.yaml +2 -2
- package/references/official-docs/docs/architecture.md +23 -7
- package/references/official-docs/docs/architecture.zh.md +36 -20
- package/references/official-docs/docs/capability-seams.i18n.yaml +2 -2
- package/references/official-docs/docs/capability-seams.md +132 -67
- package/references/official-docs/docs/capability-seams.zh.md +132 -67
- package/references/official-docs/docs/config-catalog.i18n.yaml +2 -2
- package/references/official-docs/docs/config-catalog.md +659 -373
- package/references/official-docs/docs/config-catalog.zh.md +677 -391
- package/references/official-docs/docs/cookbook/adding-a-package.i18n.yaml +2 -2
- package/references/official-docs/docs/cookbook/adding-a-package.md +2 -3
- package/references/official-docs/docs/cookbook/adding-a-package.zh.md +8 -7
- package/references/official-docs/docs/cookbook/{adding-a-conversation-node.i18n.yaml → adding-a-remote-api.i18n.yaml} +3 -3
- package/references/official-docs/docs/cookbook/adding-a-remote-api.md +197 -0
- package/references/official-docs/docs/cookbook/adding-a-remote-api.zh.md +197 -0
- package/references/official-docs/docs/cookbook/adding-a-settings-card.i18n.yaml +6 -0
- package/references/official-docs/docs/cookbook/adding-a-settings-card.md +102 -0
- package/references/official-docs/docs/cookbook/adding-a-settings-card.zh.md +102 -0
- package/references/official-docs/docs/cookbook/adding-a-tool.i18n.yaml +2 -2
- package/references/official-docs/docs/cookbook/adding-a-tool.md +11 -4
- package/references/official-docs/docs/cookbook/adding-a-tool.zh.md +16 -9
- package/references/official-docs/docs/cookbook/adding-a-vendored-package.i18n.yaml +2 -2
- package/references/official-docs/docs/cookbook/adding-a-vendored-package.md +2 -2
- package/references/official-docs/docs/cookbook/adding-a-vendored-package.zh.md +4 -4
- package/references/official-docs/docs/cookbook/adding-an-llm-adapter.i18n.yaml +2 -2
- package/references/official-docs/docs/cookbook/adding-an-llm-adapter.md +1 -1
- package/references/official-docs/docs/cookbook/adding-an-llm-adapter.zh.md +3 -3
- package/references/official-docs/docs/cookbook/extension-cookbook.i18n.yaml +2 -2
- package/references/official-docs/docs/cookbook/extension-cookbook.md +9 -8
- package/references/official-docs/docs/cookbook/extension-cookbook.zh.md +17 -14
- package/references/official-docs/docs/cookbook/maintaining-dsh-code-review.i18n.yaml +1 -1
- package/references/official-docs/docs/cookbook/maintaining-dsh-code-review.zh.md +1 -1
- package/references/official-docs/docs/cookbook/responding-to-pr-review-on-a-stack.i18n.yaml +1 -1
- package/references/official-docs/docs/cookbook/responding-to-pr-review-on-a-stack.zh.md +1 -1
- package/references/official-docs/docs/cordis-api/context.i18n.yaml +1 -1
- package/references/official-docs/docs/cordis-api/context.zh.md +1 -1
- package/references/official-docs/docs/cordis-api/events.i18n.yaml +1 -1
- package/references/official-docs/docs/cordis-api/events.zh.md +1 -1
- package/references/official-docs/docs/cordis-api/inherited.md +1 -1
- package/references/official-docs/docs/cordis-primer.i18n.yaml +2 -2
- package/references/official-docs/docs/cordis-primer.md +2 -1
- package/references/official-docs/docs/cordis-primer.zh.md +3 -2
- package/references/official-docs/docs/cordis-tutorial/01-first-plugin.i18n.yaml +1 -1
- package/references/official-docs/docs/cordis-tutorial/01-first-plugin.zh.md +4 -4
- package/references/official-docs/docs/cordis-tutorial/02-lifecycle-and-effects.i18n.yaml +1 -1
- package/references/official-docs/docs/cordis-tutorial/02-lifecycle-and-effects.zh.md +4 -4
- package/references/official-docs/docs/cordis-tutorial/03-services.i18n.yaml +1 -1
- package/references/official-docs/docs/cordis-tutorial/03-services.zh.md +4 -4
- package/references/official-docs/docs/cordis-tutorial/04-events.i18n.yaml +1 -1
- package/references/official-docs/docs/cordis-tutorial/04-events.zh.md +4 -4
- package/references/official-docs/docs/cordis-tutorial/05-config.i18n.yaml +1 -1
- package/references/official-docs/docs/cordis-tutorial/05-config.zh.md +2 -2
- package/references/official-docs/docs/cordis-tutorial/06-composition-and-hmr.i18n.yaml +1 -1
- package/references/official-docs/docs/cordis-tutorial/06-composition-and-hmr.zh.md +3 -3
- package/references/official-docs/docs/cordis-tutorial/07-into-the-harness.i18n.yaml +2 -2
- package/references/official-docs/docs/cordis-tutorial/07-into-the-harness.md +5 -4
- package/references/official-docs/docs/cordis-tutorial/07-into-the-harness.zh.md +11 -10
- package/references/official-docs/docs/cordis-tutorial/index.i18n.yaml +1 -1
- package/references/official-docs/docs/cordis-tutorial/index.zh.md +10 -10
- package/references/official-docs/docs/deepseek-llm-api-wire-extensions.i18n.yaml +6 -0
- package/references/official-docs/docs/deepseek-llm-api-wire-extensions.md +159 -0
- package/references/official-docs/docs/deepseek-llm-api-wire-extensions.zh.md +159 -0
- package/references/official-docs/docs/defensive-patterns.i18n.yaml +1 -1
- package/references/official-docs/docs/defensive-patterns.zh.md +3 -1
- package/references/official-docs/docs/development.i18n.yaml +2 -2
- package/references/official-docs/docs/development.md +9 -13
- package/references/official-docs/docs/development.zh.md +23 -21
- package/references/official-docs/docs/event-producer-consumer.i18n.yaml +2 -2
- package/references/official-docs/docs/event-producer-consumer.md +55 -46
- package/references/official-docs/docs/event-producer-consumer.zh.md +55 -46
- package/references/official-docs/docs/glossary.i18n.yaml +2 -2
- package/references/official-docs/docs/glossary.md +1 -1
- package/references/official-docs/docs/glossary.zh.md +1 -1
- package/references/official-docs/docs/graph-atlas.i18n.yaml +2 -2
- package/references/official-docs/docs/graph-atlas.md +0 -2
- package/references/official-docs/docs/graph-atlas.zh.md +7 -9
- package/references/official-docs/docs/i18n/README.i18n.yaml +2 -2
- package/references/official-docs/docs/i18n/README.md +7 -7
- package/references/official-docs/docs/i18n/README.zh.md +11 -9
- package/references/official-docs/docs/i18n/style-samples.md +3 -3
- package/references/official-docs/docs/i18n/translation-prompt.md +3 -3
- package/references/official-docs/docs/i18n/translation-rules.i18n.yaml +2 -2
- package/references/official-docs/docs/i18n/translation-rules.md +2 -2
- package/references/official-docs/docs/i18n/translation-rules.zh.md +3 -3
- package/references/official-docs/docs/module-graph.i18n.yaml +2 -2
- package/references/official-docs/docs/module-graph.md +666 -747
- package/references/official-docs/docs/module-graph.zh.md +668 -749
- package/references/official-docs/docs/persistence-catalog.i18n.yaml +2 -2
- package/references/official-docs/docs/persistence-catalog.md +172 -40
- package/references/official-docs/docs/persistence-catalog.zh.md +180 -48
- package/references/official-docs/docs/postmortem/0001-acp-default-export-drops-inject.i18n.yaml +2 -2
- package/references/official-docs/docs/postmortem/0001-acp-default-export-drops-inject.md +2 -2
- package/references/official-docs/docs/postmortem/0001-acp-default-export-drops-inject.zh.md +3 -3
- package/references/official-docs/docs/postmortem/0002-js-expression-disabled-filesystem-tools.i18n.yaml +2 -2
- package/references/official-docs/docs/postmortem/0002-js-expression-disabled-filesystem-tools.md +2 -2
- package/references/official-docs/docs/postmortem/0002-js-expression-disabled-filesystem-tools.zh.md +2 -2
- package/references/official-docs/docs/postmortem/0003-web-agent-gui-feedback-loop.i18n.yaml +2 -2
- package/references/official-docs/docs/postmortem/0003-web-agent-gui-feedback-loop.md +2 -2
- package/references/official-docs/docs/postmortem/0003-web-agent-gui-feedback-loop.zh.md +2 -2
- package/references/official-docs/docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.i18n.yaml +2 -2
- package/references/official-docs/docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.md +1 -1
- package/references/official-docs/docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.zh.md +2 -2
- package/references/official-docs/docs/postmortem/README.i18n.yaml +1 -1
- package/references/official-docs/docs/postmortem/README.zh.md +5 -5
- package/references/official-docs/docs/rescope.i18n.yaml +2 -2
- package/references/official-docs/docs/rescope.md +2 -2
- package/references/official-docs/docs/rescope.zh.md +3 -3
- package/references/official-docs/docs/subsystems/README.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/README.md +8 -2
- package/references/official-docs/docs/subsystems/README.zh.md +53 -47
- package/references/official-docs/docs/subsystems/agent-team.i18n.yaml +6 -0
- package/references/official-docs/docs/subsystems/agent-team.md +206 -0
- package/references/official-docs/docs/subsystems/agent-team.zh.md +206 -0
- package/references/official-docs/docs/subsystems/approval.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/approval.md +12 -12
- package/references/official-docs/docs/subsystems/approval.zh.md +13 -13
- package/references/official-docs/docs/subsystems/attachment.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/attachment.md +90 -7
- package/references/official-docs/docs/subsystems/attachment.zh.md +90 -7
- package/references/official-docs/docs/subsystems/client-modules.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/client-modules.md +69 -19
- package/references/official-docs/docs/subsystems/client-modules.zh.md +69 -19
- package/references/official-docs/docs/subsystems/code-runtime.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/code-runtime.md +5 -5
- package/references/official-docs/docs/subsystems/code-runtime.zh.md +6 -6
- package/references/official-docs/docs/subsystems/commands.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/commands.md +29 -6
- package/references/official-docs/docs/subsystems/commands.zh.md +30 -7
- package/references/official-docs/docs/subsystems/compaction.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/compaction.md +5 -5
- package/references/official-docs/docs/subsystems/compaction.zh.md +11 -11
- package/references/official-docs/docs/subsystems/conversation.i18n.yaml +6 -0
- package/references/official-docs/docs/{cookbook/adding-a-conversation-node.md → subsystems/conversation.md} +49 -24
- package/references/official-docs/docs/{cookbook/adding-a-conversation-node.zh.md → subsystems/conversation.zh.md} +49 -24
- package/references/official-docs/docs/subsystems/core.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/core.md +110 -33
- package/references/official-docs/docs/subsystems/core.zh.md +141 -62
- package/references/official-docs/docs/subsystems/credentials.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/credentials.md +207 -11
- package/references/official-docs/docs/subsystems/credentials.zh.md +207 -11
- package/references/official-docs/docs/subsystems/extensions.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/extensions.md +27 -9
- package/references/official-docs/docs/subsystems/extensions.zh.md +30 -12
- package/references/official-docs/docs/subsystems/feedback.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/feedback.md +4 -4
- package/references/official-docs/docs/subsystems/feedback.zh.md +4 -4
- package/references/official-docs/docs/subsystems/filesystem.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/filesystem.md +17 -7
- package/references/official-docs/docs/subsystems/filesystem.zh.md +19 -9
- package/references/official-docs/docs/subsystems/goal.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/goal.md +4 -4
- package/references/official-docs/docs/subsystems/goal.zh.md +8 -8
- package/references/official-docs/docs/subsystems/invariants.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/invariants.md +2 -2
- package/references/official-docs/docs/subsystems/invariants.zh.md +5 -5
- package/references/official-docs/docs/subsystems/jobs.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/jobs.md +3 -3
- package/references/official-docs/docs/subsystems/jobs.zh.md +6 -6
- package/references/official-docs/docs/subsystems/llm-streaming.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/llm-streaming.md +193 -22
- package/references/official-docs/docs/subsystems/llm-streaming.zh.md +199 -28
- package/references/official-docs/docs/subsystems/lsp.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/lsp.md +2 -2
- package/references/official-docs/docs/subsystems/lsp.zh.md +3 -3
- package/references/official-docs/docs/subsystems/permission-presets.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/permission-presets.md +8 -8
- package/references/official-docs/docs/subsystems/permission-presets.zh.md +8 -8
- package/references/official-docs/docs/subsystems/persistence.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/persistence.md +35 -17
- package/references/official-docs/docs/subsystems/persistence.zh.md +38 -20
- package/references/official-docs/docs/subsystems/plan.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/plan.md +4 -4
- package/references/official-docs/docs/subsystems/plan.zh.md +10 -10
- package/references/official-docs/docs/subsystems/sandbox.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/sandbox.md +5 -3
- package/references/official-docs/docs/subsystems/sandbox.zh.md +8 -6
- package/references/official-docs/docs/subsystems/schedule.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/schedule.md +9 -3
- package/references/official-docs/docs/subsystems/schedule.zh.md +11 -5
- package/references/official-docs/docs/subsystems/scope.i18n.yaml +1 -1
- package/references/official-docs/docs/subsystems/scope.zh.md +1 -1
- package/references/official-docs/docs/subsystems/session-projection.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/session-projection.md +136 -67
- package/references/official-docs/docs/subsystems/session-projection.zh.md +136 -67
- package/references/official-docs/docs/subsystems/session-query.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/session-query.md +11 -3
- package/references/official-docs/docs/subsystems/session-query.zh.md +12 -4
- package/references/official-docs/docs/subsystems/session-reference.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/session-reference.md +94 -7
- package/references/official-docs/docs/subsystems/session-reference.zh.md +95 -8
- package/references/official-docs/docs/subsystems/session-telemetry.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/session-telemetry.md +5 -6
- package/references/official-docs/docs/subsystems/session-telemetry.zh.md +9 -10
- package/references/official-docs/docs/subsystems/session-title.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/session-title.md +3 -3
- package/references/official-docs/docs/subsystems/session-title.zh.md +5 -5
- package/references/official-docs/docs/subsystems/session.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/session.md +284 -39
- package/references/official-docs/docs/subsystems/session.zh.md +301 -54
- package/references/official-docs/docs/subsystems/settings.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/settings.md +105 -10
- package/references/official-docs/docs/subsystems/settings.zh.md +105 -10
- package/references/official-docs/docs/subsystems/shell.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/shell.md +3 -3
- package/references/official-docs/docs/subsystems/shell.zh.md +11 -11
- package/references/official-docs/docs/subsystems/skills.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/skills.md +26 -3
- package/references/official-docs/docs/subsystems/skills.zh.md +29 -6
- package/references/official-docs/docs/subsystems/slots.i18n.yaml +6 -0
- package/references/official-docs/docs/subsystems/slots.md +174 -0
- package/references/official-docs/docs/subsystems/slots.zh.md +174 -0
- package/references/official-docs/docs/subsystems/spill.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/spill.md +4 -4
- package/references/official-docs/docs/subsystems/spill.zh.md +6 -6
- package/references/official-docs/docs/subsystems/storage.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/storage.md +13 -5
- package/references/official-docs/docs/subsystems/storage.zh.md +16 -8
- package/references/official-docs/docs/subsystems/subagent.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/subagent.md +120 -32
- package/references/official-docs/docs/subsystems/subagent.zh.md +131 -41
- package/references/official-docs/docs/subsystems/subprocess.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/subprocess.md +3 -3
- package/references/official-docs/docs/subsystems/subprocess.zh.md +5 -5
- package/references/official-docs/docs/subsystems/system-prompt.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/system-prompt.md +21 -8
- package/references/official-docs/docs/subsystems/system-prompt.zh.md +23 -10
- package/references/official-docs/docs/subsystems/terminal.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/terminal.md +2 -2
- package/references/official-docs/docs/subsystems/terminal.zh.md +4 -4
- package/references/official-docs/docs/subsystems/todo.i18n.yaml +6 -0
- package/references/official-docs/docs/subsystems/todo.md +32 -0
- package/references/official-docs/docs/subsystems/todo.zh.md +32 -0
- package/references/official-docs/docs/subsystems/token-meter.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/token-meter.md +27 -12
- package/references/official-docs/docs/subsystems/token-meter.zh.md +28 -13
- package/references/official-docs/docs/subsystems/tools.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/tools.md +46 -46
- package/references/official-docs/docs/subsystems/tools.zh.md +54 -54
- package/references/official-docs/docs/subsystems/typert.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/typert.md +65 -58
- package/references/official-docs/docs/subsystems/typert.zh.md +67 -60
- package/references/official-docs/docs/subsystems/user-questions.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/user-questions.md +35 -35
- package/references/official-docs/docs/subsystems/user-questions.zh.md +35 -35
- package/references/official-docs/docs/subsystems/web-client.i18n.yaml +6 -0
- package/references/official-docs/docs/subsystems/web-client.md +95 -0
- package/references/official-docs/docs/subsystems/web-client.zh.md +95 -0
- package/references/official-docs/docs/subsystems/web-server.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/web-server.md +55 -9
- package/references/official-docs/docs/subsystems/web-server.zh.md +56 -10
- package/references/official-docs/docs/subsystems/web.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/web.md +14 -7
- package/references/official-docs/docs/subsystems/web.zh.md +16 -9
- package/references/official-docs/docs/subsystems/webhook.i18n.yaml +6 -0
- package/references/official-docs/docs/subsystems/webhook.md +70 -0
- package/references/official-docs/docs/subsystems/webhook.zh.md +70 -0
- package/references/official-docs/docs/subsystems/workflow.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/workflow.md +8 -8
- package/references/official-docs/docs/subsystems/workflow.zh.md +13 -13
- package/references/official-docs/docs/subsystems/workspace.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/workspace.md +98 -5
- package/references/official-docs/docs/subsystems/workspace.zh.md +102 -9
- package/references/official-docs/docs/testing.i18n.yaml +2 -2
- package/references/official-docs/docs/testing.md +15 -10
- package/references/official-docs/docs/testing.zh.md +15 -10
- package/references/official-docs/docs/tool-catalog.i18n.yaml +2 -2
- package/references/official-docs/docs/tool-catalog.md +433 -27
- package/references/official-docs/docs/tool-catalog.zh.md +438 -29
- package/references/official-docs/docs/tool-execution-pipeline.i18n.yaml +2 -2
- package/references/official-docs/docs/tool-execution-pipeline.md +1 -1
- package/references/official-docs/docs/tool-execution-pipeline.zh.md +1 -1
- package/references/official-docs/docs/user/develop/basic/config.i18n.yaml +2 -2
- package/references/official-docs/docs/user/develop/basic/config.md +1 -1
- package/references/official-docs/docs/user/develop/basic/config.zh.md +4 -4
- package/references/official-docs/docs/user/develop/basic/index.i18n.yaml +1 -1
- package/references/official-docs/docs/user/develop/basic/index.zh.md +5 -5
- package/references/official-docs/docs/user/develop/basic/publish.i18n.yaml +2 -2
- package/references/official-docs/docs/user/develop/basic/publish.md +3 -3
- package/references/official-docs/docs/user/develop/basic/publish.zh.md +7 -7
- package/references/official-docs/docs/user/develop/basic/tool.i18n.yaml +2 -2
- package/references/official-docs/docs/user/develop/basic/tool.md +3 -3
- package/references/official-docs/docs/user/develop/basic/tool.zh.md +4 -4
- package/references/official-docs/docs/user/develop/framework/events.i18n.yaml +2 -2
- package/references/official-docs/docs/user/develop/framework/events.md +2 -2
- package/references/official-docs/docs/user/develop/framework/events.zh.md +3 -3
- package/references/official-docs/docs/user/develop/framework/index.i18n.yaml +1 -1
- package/references/official-docs/docs/user/develop/framework/index.zh.md +3 -3
- package/references/official-docs/docs/user/develop/framework/service.i18n.yaml +2 -2
- package/references/official-docs/docs/user/develop/framework/service.md +1 -1
- package/references/official-docs/docs/user/develop/framework/service.zh.md +3 -3
- package/references/official-docs/docs/user/develop/practice/dynamic-cordis.i18n.yaml +6 -0
- package/references/official-docs/docs/user/develop/practice/dynamic-cordis.md +15 -0
- package/references/official-docs/docs/user/develop/practice/dynamic-cordis.zh.md +15 -0
- package/references/official-docs/docs/user/develop/practice/index.i18n.yaml +2 -2
- package/references/official-docs/docs/user/develop/practice/index.md +1 -1
- package/references/official-docs/docs/user/develop/practice/index.zh.md +3 -3
- package/references/official-docs/docs/user/develop/practice/llm-adapter.i18n.yaml +2 -2
- package/references/official-docs/docs/user/develop/practice/llm-adapter.md +4 -3
- package/references/official-docs/docs/user/develop/practice/llm-adapter.zh.md +4 -3
- package/references/official-docs/docs/user/guide/github-review.i18n.yaml +6 -0
- package/references/official-docs/docs/user/guide/github-review.md +102 -0
- package/references/official-docs/docs/user/guide/github-review.zh.md +102 -0
- package/references/official-docs/docs/user/guide/index.i18n.yaml +2 -2
- package/references/official-docs/docs/user/guide/index.md +2 -2
- package/references/official-docs/docs/user/guide/index.zh.md +8 -8
- package/references/official-docs/docs/user/guide/mcp-memory.i18n.yaml +6 -0
- package/references/official-docs/docs/user/guide/mcp-memory.md +101 -0
- package/references/official-docs/docs/user/guide/mcp-memory.zh.md +101 -0
- package/references/official-docs/docs/user/guide/providers.i18n.yaml +2 -2
- package/references/official-docs/docs/user/guide/providers.md +40 -1
- package/references/official-docs/docs/user/guide/providers.zh.md +41 -2
- package/references/official-docs/docs/user/guide/python-sdk.i18n.yaml +2 -2
- package/references/official-docs/docs/user/guide/python-sdk.md +80 -34
- package/references/official-docs/docs/user/guide/python-sdk.zh.md +87 -41
- package/references/official-docs/docs/user/guide/schedule.i18n.yaml +6 -0
- package/references/official-docs/docs/user/guide/schedule.md +21 -0
- package/references/official-docs/docs/user/guide/schedule.zh.md +21 -0
- package/references/official-docs/docs/web-styling.i18n.yaml +1 -1
- package/references/official-docs/docs/web-styling.zh.md +2 -2
- package/references/official-docs/packages/AGENTS.md +3 -2
- package/references/official-docs/packages/README.md +104 -59
- package/references/official-docs/vendor/README.md +1 -0
- package/references/official-docs/website-docs.ts +52 -11
- package/references/sources.md +2 -2
- package/references/website-pages.md +3 -3
- package/scripts/download-sources.ps1 +1 -1
- package/scripts/sync-official-docs.ps1 +19 -11
- package/scripts/verify-kit.ps1 +0 -4
- package/templates/js/README.es.md +1 -1
- package/templates/js/README.hi.md +1 -1
- package/templates/js/README.md +1 -1
- package/templates/js/README.pt.md +1 -1
- package/templates/js/README.zh.md +1 -1
- package/templates/js/package.json +4 -4
- package/templates/ts/README.es.md +1 -1
- package/templates/ts/README.hi.md +1 -1
- package/templates/ts/README.md +1 -1
- package/templates/ts/README.pt.md +1 -1
- package/templates/ts/README.zh.md +1 -1
- package/templates/ts/package.json +4 -4
- package/references/official-docs/examples/AGENTS.md +0 -20
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
[English](core.md) | 中文
|
|
4
4
|
|
|
5
|
-
**核心**子系统即 [`packages/core`](../../packages/core/README.md),包含每个组合都会启动的包:事件溯源的会话日志、系统提示词组装、工具注册表、agent(智能体)类型,以及驱动它们的具体循环。本页说明 `agent`/`agent-loop` 这对包所声明的内容:agent 如何被创建与拥有,以及 `Agent` 句柄的投递、取消与拦截约定;本页还说明每个子系统都遵循的两个类型模式。该组的专属页面与目录其余部分见[子系统 README](README.md)。
|
|
5
|
+
**核心**子系统即 [`packages/core`](../../packages/core/README.zh.md),包含每个组合都会启动的包:事件溯源的会话日志、系统提示词组装、工具注册表、agent(智能体)类型,以及驱动它们的具体循环。本页说明 `agent`/`agent-loop` 这对包所声明的内容:agent 如何被创建与拥有,以及 `Agent` 句柄的投递、取消与拦截约定;本页还说明每个子系统都遵循的两个类型模式。该组的专属页面与目录其余部分见[子系统 README](README.zh.md)。
|
|
6
6
|
|
|
7
7
|
## 主干逐包速览
|
|
8
8
|
|
|
9
|
-
一个轮次按同一条循环流经六个包:[`agent-loop`](../../packages/core/agent-loop) 中的 driver 认领一条排队的提示词,在[会话日志](session.md)(`ctx.sessions`)上开启轮次,通过 [system-prompt](system-prompt.md)(`ctx.systemPrompt`)组装请求前缀并从日志派生历史,经 [LLM(大语言模型) seam](llm-streaming.md) 流式获取模型响应,经[工具注册表](tools.md)(`ctx.tools`)分发工具调用,并把每个模型可见的事实追加回日志,供下一步派生。循环搬运的对话词汇——`Message`、`ContentBlock`、`StreamChunk`、模型请求——由 [`packages/llm`](../../packages/llm/README.md) 声明,记录在 [llm-streaming.md](llm-streaming.md)。
|
|
9
|
+
一个轮次按同一条循环流经六个包:[`agent-loop`](../../packages/core/agent-loop) 中的 driver 认领一条排队的提示词,在[会话日志](session.zh.md)(`ctx.sessions`)上开启轮次,通过 [system-prompt](system-prompt.zh.md)(`ctx.systemPrompt`)组装请求前缀并从日志派生历史,经 [LLM(大语言模型) seam](llm-streaming.zh.md) 流式获取模型响应,经[工具注册表](tools.zh.md)(`ctx.tools`)分发工具调用,并把每个模型可见的事实追加回日志,供下一步派生。循环搬运的对话词汇——`Message`、`ContentBlock`、`StreamChunk`、模型请求——由 [`packages/llm`](../../packages/llm/README.zh.md) 声明,记录在 [llm-streaming.md](llm-streaming.zh.md)。
|
|
10
10
|
|
|
11
11
|
| 包 | 负责内容 | 页面 |
|
|
12
12
|
|---|---|---|
|
|
13
|
-
| `session/` | 仅追加的 `SessionEvent` 日志与内存 store——唯一真源(`ctx.sessions`) | [session.md](session.md) |
|
|
14
|
-
| `system-prompt/` | 提示词段落与工具 schema 组装(`ctx.systemPrompt`) | [system-prompt.md](system-prompt.md) |
|
|
15
|
-
| `tools/` | 带作用域的工具注册表与受保护的执行流水线(`ctx.tools`) | [tools.md](tools.md) |
|
|
13
|
+
| `session/` | 仅追加的 `SessionEvent` 日志与内存 store——唯一真源(`ctx.sessions`) | [session.md](session.zh.md) |
|
|
14
|
+
| `system-prompt/` | 提示词段落与工具 schema 组装(`ctx.systemPrompt`) | [system-prompt.md](system-prompt.zh.md) |
|
|
15
|
+
| `tools/` | 带作用域的工具注册表与受保护的执行流水线(`ctx.tools`) | [tools.md](tools.zh.md) |
|
|
16
16
|
| `agent/` | `Agent` 接口、实时注册表、发起者作用域与 `agent/*` 事件词汇(`ctx.agents`) | 本页 |
|
|
17
17
|
| `agent-loop/` | 实现公开 `Agent` 约定的具体 driver(`ctx.agentLoop`) | 本页 |
|
|
18
|
-
| `scope/` | 注册表与循环用于构建按 agent 作用域的注册原语 | [scope.md](scope.md) |
|
|
18
|
+
| `scope/` | 注册表与循环用于构建按 agent 作用域的注册原语 | [scope.md](scope.zh.md) |
|
|
19
19
|
|
|
20
|
-
`scope/` 是这里唯一的非服务包:一个零依赖库(`createScope`/`scopeOf`/`scopeTarget`),在模块图中位于 `session/` 与 `system-prompt/` 之下,正是为了让它们消费它而不形成环。`agent-loop` 是公开 `Agent` 约定的唯一具体实现,放在这里因为它是 harness 的默认产品循环;它在 `ctx.agents.withInitiator()` 内运行每个 driver。扩展插件依赖 `agent`——包括需要发起 Agent 时——而绝不直接依赖 `agent-loop
|
|
20
|
+
`scope/` 是这里唯一的非服务包:一个零依赖库(`createScope`/`scopeOf`/`scopeTarget`),在模块图中位于 `session/` 与 `system-prompt/` 之下,正是为了让它们消费它而不形成环。`agent-loop` 是公开 `Agent` 约定的唯一具体实现,放在这里因为它是 harness 的默认产品循环;它在 `ctx.agents.withInitiator()` 内运行每个 driver。扩展插件依赖 `agent`——包括需要发起 Agent 时——而绝不直接依赖 `agent-loop`,因此循环保持可替换。[`dsh-base`](../../packages/bundle/base/README.zh.md) 是默认产品组合,[`dsh-sdk-minimal`](../../packages/bundle/sdk-minimal/README.zh.md) 则声明一棵更小的独立配置树。
|
|
21
21
|
|
|
22
22
|
<a id="creation-and-ownership"></a>
|
|
23
23
|
|
|
@@ -61,9 +61,9 @@ interface AgentHandle {
|
|
|
61
61
|
源码:[`packages/core/agent/src/types.ts`](../../packages/core/agent/src/types.ts)
|
|
62
62
|
|
|
63
63
|
```ts type-equiv
|
|
64
|
-
/** Public live-agent handle. */
|
|
64
|
+
/** Public live-agent handle; the runtime face augments its live capabilities. */
|
|
65
65
|
interface Agent {
|
|
66
|
-
/**
|
|
66
|
+
/** Session-backed Agent identity. */
|
|
67
67
|
readonly id: SessionId
|
|
68
68
|
/** The provider route and model this agent's requests use. */
|
|
69
69
|
readonly options: AgentOptions
|
|
@@ -156,7 +156,7 @@ interface Agent {
|
|
|
156
156
|
type AgentStatus = 'idle' | 'running'
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
`running` 描述整个驱动器的排空区间,可能跨越连续的排队轮次;它不能证明某个轮次仍然打开。dispose 会把 agent 从注册表移除并发出 `agent/disposed`;它不是一个终态 status 值。`followup()` 不返回句柄:其 `MessageId` 标识的是持久的 inbox 插入、认领与丢弃事实,而非之后的助手输出或轮次结束。`whenIdle()` 观察的是整个 agent,因此只有当调用方明确拥有从回执到空闲的这段区间时,才能把它称为一次 run([决策](../../.agents/notes/implemented/architecture/2026-07-30-followup-enqueue-and-owned-runs.md))。
|
|
159
|
+
`running` 描述整个驱动器的排空区间,可能跨越连续的排队轮次;它不能证明某个轮次仍然打开。dispose 会把 agent 从注册表移除并发出 `agent/disposed`;它不是一个终态 status 值。`followup()` 不返回句柄:其 `MessageId` 标识的是持久的 inbox 插入、认领与丢弃事实,而非之后的助手输出或轮次结束。`whenIdle()` 观察的是整个 agent,因此只有当调用方明确拥有从回执到空闲的这段区间时,才能把它称为一次 run([决策](../../.agents/notes/implemented/architecture/2026-07-30-followup-enqueue-and-owned-runs.zh.md))。
|
|
160
160
|
|
|
161
161
|
```ts type-equiv
|
|
162
162
|
/** Merge-extensible agent creation options. Persona belongs to system-prompt sections. */
|
|
@@ -165,12 +165,14 @@ interface AgentOptions {
|
|
|
165
165
|
provider?: string
|
|
166
166
|
/** Model id interpreted by the selected provider adapter. */
|
|
167
167
|
model?: string
|
|
168
|
+
/** Adapter-owned reasoning effort for the selected provider/model route. */
|
|
169
|
+
reasoningEffort?: ReasoningEffortId
|
|
168
170
|
/** Maximum output tokens for each conversation-model request. */
|
|
169
171
|
maxTokens?: number
|
|
170
172
|
}
|
|
171
173
|
```
|
|
172
174
|
|
|
173
|
-
在 `agent/request` 之后,分发要求 `provider` 与 `model`
|
|
175
|
+
在 `agent/request` 之后,分发要求 `provider` 与 `model` 都存在。显式 `reasoningEffort` 会为该路由的首次请求提供初始值;确切模型解析会校验该值,省略时则允许填入适配器默认值。提供 `maxTokens` 时,它必须是正安全整数,并限制每次对话模型请求的输出;省略时,系统会在写入请求 header 前填入确切模型的适配器默认值,否则提供方行为保持不变。agent 作用域的 `deployment:persona` 提示词段落可以遮蔽全局默认 persona。
|
|
174
176
|
|
|
175
177
|
inbox 即投递词汇——agent 以持久投影形式拥有的两条有序待处理消息列表:
|
|
176
178
|
|
|
@@ -204,15 +206,17 @@ type AgentCancelCause =
|
|
|
204
206
|
| { readonly kind: 'disposed' }
|
|
205
207
|
```
|
|
206
208
|
|
|
207
|
-
cause 是由 TypeScript 强制约束的同进程输入。活跃的取消持有者会将它复制到仅运行时的 `AbortSignal.reason`;signal 不授予协作监听器任何分类权限。持久 `turn/end`
|
|
209
|
+
cause 是由 TypeScript 强制约束的同进程输入。活跃的取消持有者会将它复制到仅运行时的 `AbortSignal.reason`;signal 不授予协作监听器任何分类权限。持久 `turn/end` 以 `{ kind: 'aborted', reason: TurnEndCancelCause }` 记录结果,取消原因随终态结果一起持久化。
|
|
208
210
|
|
|
209
|
-
[事件分类](../architecture.md#events)负责 `agent/*` 生命周期、检查点与 waterfall(瀑布式事件)约定。轮次和步骤边界是持久会话事件,而不是 agent emit。
|
|
211
|
+
[事件分类](../architecture.zh.md#events)负责 `agent/*` 生命周期、检查点与 waterfall(瀑布式事件)约定。轮次和步骤边界是持久会话事件,而不是 agent emit。
|
|
210
212
|
|
|
211
213
|
<a id="initiating-agent"></a>
|
|
212
214
|
|
|
213
215
|
## 发起 Agent
|
|
214
216
|
|
|
215
|
-
`ctx.agents` 携带的进程本地 initiator 就是上面的确切 `Agent`,不是单独的 frame 或复制的标识。环境中存在该值既不能证明存活,也不代表授权;[initiator 作用域决策](../../.agents/notes/implemented/architecture/2026-07-15-agent-initiator-scope.md)定义其生命周期和作用域规则。
|
|
217
|
+
`ctx.agents` 携带的进程本地 initiator 就是上面的确切 `Agent`,不是单独的 frame 或复制的标识。环境中存在该值既不能证明存活,也不代表授权;[initiator 作用域决策](../../.agents/notes/implemented/architecture/2026-07-15-agent-initiator-scope.zh.md)定义其生命周期和作用域规则。
|
|
218
|
+
|
|
219
|
+
<a id="interception-decisions"></a>
|
|
216
220
|
|
|
217
221
|
## 拦截决策
|
|
218
222
|
|
|
@@ -228,7 +232,12 @@ pre-step 决策使用与持久 user-role 输入相同、带标识的 `UserMessag
|
|
|
228
232
|
/** Whether and with which messages the loop enters a proposed step. */
|
|
229
233
|
type PreStepDecision =
|
|
230
234
|
| { kind: 'reject' }
|
|
231
|
-
| {
|
|
235
|
+
| {
|
|
236
|
+
kind: 'enter'
|
|
237
|
+
messages: UserMessage[]
|
|
238
|
+
/** Start a distinct model-message series before this step's admitted messages. */
|
|
239
|
+
startsRequestSeries?: true
|
|
240
|
+
}
|
|
232
241
|
```
|
|
233
242
|
|
|
234
243
|
`agent/request-error` 在失败的模型步骤关闭之后、其轮次关闭之前运行。listener 可以在失败轮次的 signal 仍然存活时修复持久状态或 await 策略工作。处理该错误的 listener 返回 `{ kind: 'retry' }` 且不调用 `next()`;默认的 `undefined` 会让失败保持终态。
|
|
@@ -238,7 +247,7 @@ type PreStepDecision =
|
|
|
238
247
|
type RequestErrorAction = { kind: 'retry' } | undefined
|
|
239
248
|
```
|
|
240
249
|
|
|
241
|
-
`agent/pre-step`
|
|
250
|
+
`agent/pre-step` 是请求推导前唯一的 waterfall(瀑布式)监听器链。`agent/turn-stopping` 在轮次没有工具或 steering(中途引导)后续时运行,先于最后一次 steering 排空。
|
|
242
251
|
|
|
243
252
|
`agent/session-start` 携带 `SessionStartSource`(会话生命周期为何开始;桥接层据此匹配其 SessionStart):
|
|
244
253
|
|
|
@@ -251,13 +260,13 @@ type SessionStartSource = 'startup' | 'resume' | 'clear' | 'compact'
|
|
|
251
260
|
|
|
252
261
|
`Session` 是一份类型化 `SessionEvent` 的**仅追加日志**——唯一的真源。LLM 消息历史从日志*派生*(`deriveMessages()`),而非单独存储。每个条目携带单调的 `seq`、`time` 与按 `type` 判别的 `data` payload;surface 变体还可以在 `sourceEventSeqs` 中列出被引用的较早事件,并携带 `surfaceOp`。
|
|
253
262
|
|
|
254
|
-
`SessionEvent`
|
|
263
|
+
`SessionEvent` 信封的确切条件字段、十二种核心事件变体(`turn/start`、`turn/end`、`step/start`、`step/end`、`user/message`、`assistant/chunk`、`assistant/message`、`tool/call`、`tool/result`、`request/header`、`request/context`、`session/end-seed`)、`deriveMessages()` 投影规则、`TurnEndReason` 原因以及执行封闭和独立事件规则都在 **[session.md](session.zh.md)** 中。日志如何持久化——`SessionPersistence` 接口、JSONL provider、`session/flush` 检查点、崩溃恢复与 `SessionHeader`——则在 **[persistence.md](persistence.zh.md)** 中。
|
|
255
264
|
|
|
256
265
|
## `ToolDefinition`
|
|
257
266
|
|
|
258
267
|
唯一属于核心的流水线编写类型:每个已注册工具*是什么*——一个面向模型的 `ToolSchema` 加上一个 `execute` 函数,以及可选的最终内容回调与 UI 回调。工具作者很少手动构造它(`defineTool` DSL 会使用类型化参数构建),但它是注册表存储并由循环用于分发的约定。
|
|
259
268
|
|
|
260
|
-
其完整字段、`defineTool`/`ValueSchemaSpec`/`ParameterSchemaSpec` 类型化 schema DSL、`ToolExecution`/`ToolExecutionResult` waterfall 类型,以及工具展示 UI 类型都在 **[tools.md](tools.md)** 中。
|
|
269
|
+
其完整字段、`defineTool`/`ValueSchemaSpec`/`ParameterSchemaSpec` 类型化 schema DSL、`ToolExecution`/`ToolExecutionResult` waterfall 类型,以及工具展示 UI 类型都在 **[tools.md](tools.zh.md)** 中。
|
|
261
270
|
|
|
262
271
|
## 全仓通用类型模式
|
|
263
272
|
|
|
@@ -286,16 +295,15 @@ declare module '@deepseek-ai/dsh-llm' {
|
|
|
286
295
|
}
|
|
287
296
|
```
|
|
288
297
|
|
|
289
|
-
|
|
298
|
+
五个规范 map 使用此模式;插件作者扩展它们:
|
|
290
299
|
|
|
291
300
|
| Map | 包 | 派生 | 目录 |
|
|
292
301
|
|---|---|---|---|
|
|
293
|
-
| `ContentBlockMap` | dsh-llm | `ContentBlock` | [llm-streaming.md](llm-streaming.md#content-blocks-and-messages) |
|
|
294
|
-
| `MessageSourceMap` | dsh-llm | `MessageSource` | [llm-streaming.md](llm-streaming.md#content-blocks-and-messages) |
|
|
295
|
-
| `FinishReasonMap` | dsh-llm | `FinishReason` | [llm-streaming.md](llm-streaming.md#the-model-request-and-result) |
|
|
296
|
-
| `
|
|
297
|
-
| `
|
|
298
|
-
| `SessionEventMap` | dsh-session | `SessionEvent` | [session.md](session.md) |
|
|
302
|
+
| `ContentBlockMap` | dsh-llm | `ContentBlock` | [llm-streaming.md](llm-streaming.zh.md#content-blocks-and-messages) |
|
|
303
|
+
| `MessageSourceMap` | dsh-llm | `MessageSource` | [llm-streaming.md](llm-streaming.zh.md#content-blocks-and-messages) |
|
|
304
|
+
| `FinishReasonMap` | dsh-llm | `FinishReason` | [llm-streaming.md](llm-streaming.zh.md#the-model-request-and-result) |
|
|
305
|
+
| `TurnEndReasonMap` | dsh-session | `TurnEndReason` | [session.md](session.zh.md) |
|
|
306
|
+
| `SessionEventMap` | dsh-session | `SessionEvent` | [session.md](session.zh.md) |
|
|
299
307
|
|
|
300
308
|
消费方最常 `switch` 的两个大型判别联合类型是:**`StreamChunk`**(流式协议)和 **`SessionEvent`**(日志条目)。按仓库约定,对标签做 `switch`——不要链式 `if`——这样每个分支都能窄化类型,拼错的标签会编译失败。
|
|
301
309
|
|
|
@@ -303,9 +311,9 @@ declare module '@deepseek-ai/dsh-llm' {
|
|
|
303
311
|
|
|
304
312
|
### 品牌化 ID
|
|
305
313
|
|
|
306
|
-
在包之间传递的 ID 都经过**品牌化**——结构上是字符串,但在类型层面不可互换(不能把 `SessionId` 传给需要 `
|
|
314
|
+
在包之间传递的 ID 都经过**品牌化**——结构上是字符串,但在类型层面不可互换(不能把 `SessionId` 传给需要 `ToolCallId` 的位置)。构造使用共享 `brandString<T>()` helper 或所属方自定义的校验工厂;比较、日志记录和 JSON 行为与普通字符串相同。
|
|
307
315
|
|
|
308
|
-
`Branded<B>`
|
|
316
|
+
`Branded<B>` 原语与无状态构造函数位于 [dsh-brand](../../packages/util/brand),该包不依赖 harness 能力。`brandString<T>()` 应用仅编译期存在的字符串品牌。
|
|
309
317
|
|
|
310
318
|
源码:[`packages/util/brand/src/index.ts`](../../packages/util/brand/src/index.ts)
|
|
311
319
|
|
|
@@ -314,7 +322,7 @@ declare module '@deepseek-ai/dsh-llm' {
|
|
|
314
322
|
type Branded<B extends string> = string & { readonly [BRAND]: B }
|
|
315
323
|
```
|
|
316
324
|
|
|
317
|
-
两个核心 ID 是 `
|
|
325
|
+
两个核心 ID 是 `ToolCallId`(关联工具调用及其结果;dsh-llm)和 `SessionId`(活跃 agent 与持久会话共享的标识;dsh-session)。能力包也会品牌化各自的 id,例如 [jobs.md](jobs.zh.md) 中的 `JobId`。
|
|
318
326
|
|
|
319
327
|
<!-- BEGIN GENERATED cordis-surface (gen-cordis-catalog.ts) — do not edit between markers -->
|
|
320
328
|
|
|
@@ -322,7 +330,7 @@ type Branded<B extends string> = string & { readonly [BRAND]: B }
|
|
|
322
330
|
|
|
323
331
|
## Cordis API
|
|
324
332
|
|
|
325
|
-
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`) —
|
|
333
|
+
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.zh.md#dispatch-modes), and the framework-inherited `ctx` API lives in [cordis-api/inherited.md](../cordis-api/inherited.md).
|
|
326
334
|
|
|
327
335
|
<a id="ctxagentdefaultmodel--agentdefaultmodelconfig"></a>
|
|
328
336
|
|
|
@@ -346,7 +354,7 @@ currentSelection(): ModelSelection
|
|
|
346
354
|
async saveSelection(next: ModelSelection): Promise<void>
|
|
347
355
|
```
|
|
348
356
|
|
|
349
|
-
Source: [`packages/core/agent-default-model/src/index.ts
|
|
357
|
+
Source: [`packages/core/agent-default-model/src/index.ts`](../../packages/core/agent-default-model/src/index.ts)
|
|
350
358
|
|
|
351
359
|
<a id="ctxagentloop--agentloop"></a>
|
|
352
360
|
|
|
@@ -383,9 +391,9 @@ async createAgent(ownerCtx: Context, options: CreateAgentOptions): Promise<Agent
|
|
|
383
391
|
async resume(ownerCtx: Context, options: ResumeAgentOptions): Promise<AgentHandle>
|
|
384
392
|
```
|
|
385
393
|
|
|
386
|
-
Types: [SessionHeader](persistence.md)
|
|
394
|
+
Types: [SessionHeader](persistence.zh.md)
|
|
387
395
|
|
|
388
|
-
Source: [`packages/core/agent-loop/src/index.ts
|
|
396
|
+
Source: [`packages/core/agent-loop/src/index.ts`](../../packages/core/agent-loop/src/index.ts)
|
|
389
397
|
|
|
390
398
|
<a id="ctxagentpresets--agentpresets"></a>
|
|
391
399
|
|
|
@@ -402,6 +410,35 @@ Discovery is unmemoized: `list()` and `resolve()` re-read the roots on every cal
|
|
|
402
410
|
*/
|
|
403
411
|
async list(): Promise<AgentPreset[]>
|
|
404
412
|
|
|
413
|
+
/**
|
|
414
|
+
* The roster off the Host: {@link list} projected to path-free rows, with
|
|
415
|
+
* the default marked and this deployment's authoring capability beside it.
|
|
416
|
+
*
|
|
417
|
+
* Whether a client can open a preset's directory is the Host's own opener
|
|
418
|
+
* capability, not a roster property — a caller needing both joins them.
|
|
419
|
+
* @returns the rows and the authoring capability.
|
|
420
|
+
*/
|
|
421
|
+
@Remote('list') async remoteExportList(): Promise<AgentPresetRoster>
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Every preset's composition as flattened plugin rows, for plugin-listing
|
|
425
|
+
* surfaces beside the roster's own picker.
|
|
426
|
+
*
|
|
427
|
+
* A preset with a live standing mount answers from its newest generation's
|
|
428
|
+
* Loader entries — the composition new sessions join — even when the file
|
|
429
|
+
* behind it has since been edited into an unreadable state: the mount is
|
|
430
|
+
* what sessions actually run, so the broken verdict only applies to a
|
|
431
|
+
* preset nothing composed. One never composed since boot answers from its
|
|
432
|
+
* file, with `!!js` disabled gates evaluated against the Loader context so
|
|
433
|
+
* both answers reflect the same host. Reading never mounts: an unmounted
|
|
434
|
+
* preset is parsed, not composed, so listing a preset's plugins cannot
|
|
435
|
+
* activate them early. A composition that stopped reading between
|
|
436
|
+
* discovery's health verdict and this read is reported broken with the
|
|
437
|
+
* raced reason rather than dropped.
|
|
438
|
+
* @returns one composition per roster preset, in roster order.
|
|
439
|
+
*/
|
|
440
|
+
async compositionInventory(): Promise<AgentPresetComposition[]>
|
|
441
|
+
|
|
405
442
|
/**
|
|
406
443
|
* Resolve one preset by id.
|
|
407
444
|
*
|
|
@@ -476,6 +513,15 @@ composedPreset(agentCtx: Context): string | undefined
|
|
|
476
513
|
*/
|
|
477
514
|
async read(id: string): Promise<string>
|
|
478
515
|
|
|
516
|
+
/**
|
|
517
|
+
* One preset's composition text with the roster row it belongs to.
|
|
518
|
+
* @param agentPreset - the preset id.
|
|
519
|
+
* @returns the composition beside its trust and published metadata.
|
|
520
|
+
* @throws {RemoteError} `gateway/bad-request` for an empty id, or
|
|
521
|
+
* `agent-preset/not-found` when no configured root supplies it.
|
|
522
|
+
*/
|
|
523
|
+
@Remote('read') async readDocument(agentPreset: string): Promise<AgentPresetDocument>
|
|
524
|
+
|
|
479
525
|
/**
|
|
480
526
|
* Create a locally authored preset by copying an existing one whole.
|
|
481
527
|
*
|
|
@@ -493,13 +539,34 @@ async read(id: string): Promise<string>
|
|
|
493
539
|
*/
|
|
494
540
|
async copy(from: string, id: string, name?: string): Promise<void>
|
|
495
541
|
|
|
542
|
+
/**
|
|
543
|
+
* Copy one preset through the Remote API.
|
|
544
|
+
* @param from - the source preset id.
|
|
545
|
+
* @param id - the new preset id.
|
|
546
|
+
* @param name - the copy's optional display name.
|
|
547
|
+
* @returns once the copy is stored.
|
|
548
|
+
* @throws {RemoteError} with the corresponding stable preset code and
|
|
549
|
+
* details when the copy is refused.
|
|
550
|
+
*/
|
|
551
|
+
@Remote('copy') async remoteExportCopy(from: string, id: string, name?: string): Promise<void>
|
|
552
|
+
|
|
496
553
|
/**
|
|
497
554
|
* Delete a locally authored preset.
|
|
555
|
+
*
|
|
498
556
|
* @param id - the preset id.
|
|
499
557
|
* @throws when the preset is unknown or ships with the deployment.
|
|
500
558
|
*/
|
|
501
559
|
async remove(id: string): Promise<void>
|
|
502
560
|
|
|
561
|
+
/**
|
|
562
|
+
* Delete one preset through the Remote API.
|
|
563
|
+
* @param id - the preset id.
|
|
564
|
+
* @returns once the preset is deleted.
|
|
565
|
+
* @throws {RemoteError} with the corresponding stable preset code and
|
|
566
|
+
* details when deletion is refused.
|
|
567
|
+
*/
|
|
568
|
+
@Remote('deletePreset') async remoteExportDelete(id: string): Promise<void>
|
|
569
|
+
|
|
503
570
|
/**
|
|
504
571
|
* One agent's instance of a service its preset mounted.
|
|
505
572
|
*
|
|
@@ -532,7 +599,9 @@ serviceFor<K extends string & keyof Context>(agent: { ctx: Context }, name: K):
|
|
|
532
599
|
* state to restore. The re-link runs through the binding this roster kept
|
|
533
600
|
* from the agent's mount — dsh-scope's only re-link authority. An agent
|
|
534
601
|
* that never composed one has nothing to re-link: the switch is then the
|
|
535
|
-
* agent's first bind, exactly a mount.
|
|
602
|
+
* agent's first bind, exactly a mount. A committed re-link emits
|
|
603
|
+
* `tools/change` because changing the parent scope changes the Agent's
|
|
604
|
+
* resolved tool set without adding or removing registry entries.
|
|
536
605
|
* @param agentCtx - the agent's scope context.
|
|
537
606
|
* @param id - the preset to compose the agent from instead.
|
|
538
607
|
* @returns the preset now installed.
|
|
@@ -540,6 +609,16 @@ serviceFor<K extends string & keyof Context>(agent: { ctx: Context }, name: K):
|
|
|
540
609
|
*/
|
|
541
610
|
async recompose(agentCtx: Context, id: string): Promise<AgentPreset>
|
|
542
611
|
|
|
612
|
+
/**
|
|
613
|
+
* Compose a blank session's agent from a different preset and record it.
|
|
614
|
+
* @param agent - the session's live agent, resolved from the wire identity.
|
|
615
|
+
* @param agentPreset - the preset to compose the agent from instead.
|
|
616
|
+
* @returns the preset id that was recorded.
|
|
617
|
+
* @throws {RemoteError} with `gateway/bad-request`, `agent-preset/locked`,
|
|
618
|
+
* `agent-preset/not-found`, or `agent-preset/invalid` when refused.
|
|
619
|
+
*/
|
|
620
|
+
@Remote('select') async select(agent: Agent, agentPreset: string): Promise<string>
|
|
621
|
+
|
|
543
622
|
/**
|
|
544
623
|
* The standing scope key of one preset, for a host reader with no agent.
|
|
545
624
|
*
|
|
@@ -554,9 +633,9 @@ async recompose(agentCtx: Context, id: string): Promise<AgentPreset>
|
|
|
554
633
|
async standingKeyFor(id?: string): Promise<ScopeKey>
|
|
555
634
|
```
|
|
556
635
|
|
|
557
|
-
Types: [ScopeKey](scope.md)
|
|
636
|
+
Types: [ScopeKey](scope.zh.md)
|
|
558
637
|
|
|
559
|
-
Source: [`packages/preset/agent-presets/src/index.ts
|
|
638
|
+
Source: [`packages/preset/agent-presets/src/index.ts`](../../packages/preset/agent-presets/src/index.ts)
|
|
560
639
|
|
|
561
640
|
<a id="ctxagents--agentregistry"></a>
|
|
562
641
|
|
|
@@ -728,7 +807,7 @@ list(): Agent[]
|
|
|
728
807
|
roots(): Agent[]
|
|
729
808
|
```
|
|
730
809
|
|
|
731
|
-
Source: [`packages/core/agent/src/index.ts
|
|
810
|
+
Source: [`packages/core/agent/src/index.ts`](../../packages/core/agent/src/index.ts)
|
|
732
811
|
|
|
733
812
|
<a id="agent-events"></a>
|
|
734
813
|
|
|
@@ -754,9 +833,9 @@ A fully configured agent and live session were published. Setup is composition-o
|
|
|
754
833
|
'agent/created'(this: Scoped<Agent>, payload: { agent: Agent }): void
|
|
755
834
|
```
|
|
756
835
|
|
|
757
|
-
Types: [Scoped](scope.md)
|
|
836
|
+
Types: [Scoped](scope.zh.md)
|
|
758
837
|
|
|
759
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
838
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
760
839
|
|
|
761
840
|
<a id="agentdisposed--emit"></a>
|
|
762
841
|
|
|
@@ -776,9 +855,9 @@ An agent left the registry; AgentLoop emits this after driver quiescence and sco
|
|
|
776
855
|
'agent/disposed'(this: Scoped<Agent>, payload: { agent: Agent }): void
|
|
777
856
|
```
|
|
778
857
|
|
|
779
|
-
Types: [Scoped](scope.md)
|
|
858
|
+
Types: [Scoped](scope.zh.md)
|
|
780
859
|
|
|
781
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
860
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
782
861
|
|
|
783
862
|
<a id="agenterror--emit"></a>
|
|
784
863
|
|
|
@@ -800,9 +879,9 @@ A step or turn errored. The machine reports a failure here even when the error h
|
|
|
800
879
|
'agent/error'(this: Scoped<Agent>, payload: { agent: Agent; turn: number; step: number; error: unknown }): void
|
|
801
880
|
```
|
|
802
881
|
|
|
803
|
-
Types: [Scoped](scope.md)
|
|
882
|
+
Types: [Scoped](scope.zh.md)
|
|
804
883
|
|
|
805
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
884
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
806
885
|
|
|
807
886
|
<a id="agentinboxclaimed--emit"></a>
|
|
808
887
|
|
|
@@ -824,9 +903,9 @@ One message left the inbox inside its open turn. If the proposed step is rejecte
|
|
|
824
903
|
'agent/inbox/claimed'(this: Scoped<Agent>, payload: { agent: Agent; message: UserMessage; turn: number }): void
|
|
825
904
|
```
|
|
826
905
|
|
|
827
|
-
Types: [Scoped](scope.md) · [UserMessage](session.md)
|
|
906
|
+
Types: [Scoped](scope.zh.md) · [UserMessage](session.zh.md)
|
|
828
907
|
|
|
829
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
908
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
830
909
|
|
|
831
910
|
<a id="agentinboxdiscarded--emit"></a>
|
|
832
911
|
|
|
@@ -845,9 +924,9 @@ One message was discarded from the live inbox.
|
|
|
845
924
|
'agent/inbox/discarded'(this: Scoped<Agent>, payload: { agent: Agent; message: UserMessage }): void
|
|
846
925
|
```
|
|
847
926
|
|
|
848
|
-
Types: [Scoped](scope.md) · [UserMessage](session.md)
|
|
927
|
+
Types: [Scoped](scope.zh.md) · [UserMessage](session.zh.md)
|
|
849
928
|
|
|
850
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
929
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
851
930
|
|
|
852
931
|
<a id="agentinboxinserted--emit"></a>
|
|
853
932
|
|
|
@@ -866,9 +945,9 @@ One message entered the live inbox.
|
|
|
866
945
|
'agent/inbox/inserted'(this: Scoped<Agent>, payload: { agent: Agent; message: UserMessage }): void
|
|
867
946
|
```
|
|
868
947
|
|
|
869
|
-
Types: [Scoped](scope.md) · [UserMessage](session.md)
|
|
948
|
+
Types: [Scoped](scope.zh.md) · [UserMessage](session.zh.md)
|
|
870
949
|
|
|
871
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
950
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
872
951
|
|
|
873
952
|
<a id="agentpre-step--waterfall"></a>
|
|
874
953
|
|
|
@@ -891,9 +970,9 @@ Reject a proposed step or replace the messages that enter it. Calling `next()` p
|
|
|
891
970
|
'agent/pre-step'(this: Scoped<Agent>, payload: { agent: Agent; messages: UserMessage[]; turn: number; step: number; signal: AbortSignal }, next: () => Promise<PreStepDecision>): Promise<PreStepDecision>
|
|
892
971
|
```
|
|
893
972
|
|
|
894
|
-
Types: [Scoped](scope.md) · [UserMessage](session.md)
|
|
973
|
+
Types: [Scoped](scope.zh.md) · [UserMessage](session.zh.md)
|
|
895
974
|
|
|
896
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
975
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
897
976
|
|
|
898
977
|
<a id="agentrequest--waterfall"></a>
|
|
899
978
|
|
|
@@ -917,9 +996,9 @@ Replace the frozen call configuration. `await next()` yields the config the mach
|
|
|
917
996
|
'agent/request'(this: Scoped<Agent>, payload: { agent: Agent; turn: number; step: number; signal: AbortSignal }, next: () => Promise<LlmCallConfig>): Promise<LlmCallConfig>
|
|
918
997
|
```
|
|
919
998
|
|
|
920
|
-
Types: [LlmCallConfig](llm-streaming.md) · [Scoped](scope.md)
|
|
999
|
+
Types: [LlmCallConfig](llm-streaming.zh.md) · [Scoped](scope.zh.md)
|
|
921
1000
|
|
|
922
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
1001
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
923
1002
|
|
|
924
1003
|
<a id="agentrequest-error--waterfall"></a>
|
|
925
1004
|
|
|
@@ -946,9 +1025,9 @@ Handle one failed model-request attempt before the loop retries or closes its st
|
|
|
946
1025
|
'agent/request-error'(this: Scoped<Agent>, payload: { agent: Agent; turn: number; step: number; provider: string; failure: LlmFailure; retryPolicy: ResolvedRetryPolicy | undefined; signal: AbortSignal }, next: () => Promise<RequestErrorAction>): Promise<RequestErrorAction>
|
|
947
1026
|
```
|
|
948
1027
|
|
|
949
|
-
Types: [LlmFailure](llm-streaming.md) · [ResolvedRetryPolicy](llm-streaming.md) · [Scoped](scope.md)
|
|
1028
|
+
Types: [LlmFailure](llm-streaming.zh.md) · [ResolvedRetryPolicy](llm-streaming.zh.md) · [Scoped](scope.zh.md)
|
|
950
1029
|
|
|
951
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
1030
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
952
1031
|
|
|
953
1032
|
<a id="agentsession-start--emit"></a>
|
|
954
1033
|
|
|
@@ -970,9 +1049,9 @@ The session lifecycle began, once before the first turn. Use `agent.inject()` to
|
|
|
970
1049
|
'agent/session-start'(this: Scoped<Agent>, payload: { agent: Agent; source: SessionStartSource }): void
|
|
971
1050
|
```
|
|
972
1051
|
|
|
973
|
-
Types: [Scoped](scope.md)
|
|
1052
|
+
Types: [Scoped](scope.zh.md)
|
|
974
1053
|
|
|
975
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
1054
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
976
1055
|
|
|
977
1056
|
<a id="agentstatus--emit"></a>
|
|
978
1057
|
|
|
@@ -993,9 +1072,9 @@ Agent status changed (`idle` ⇄ `running`). A waking delivery enters `running`
|
|
|
993
1072
|
'agent/status'(this: Scoped<Agent>, payload: { agent: Agent; status: AgentStatus }): void
|
|
994
1073
|
```
|
|
995
1074
|
|
|
996
|
-
Types: [Scoped](scope.md)
|
|
1075
|
+
Types: [Scoped](scope.zh.md)
|
|
997
1076
|
|
|
998
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
1077
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
999
1078
|
|
|
1000
1079
|
<a id="agentturn-stopping--serial"></a>
|
|
1001
1080
|
|
|
@@ -1024,9 +1103,9 @@ The turn is about to close: the model owes no response (no live tool calls, no f
|
|
|
1024
1103
|
'agent/turn-stopping'(this: Scoped<Agent>, payload: { agent: Agent; turn: number; signal: AbortSignal }): Promise<void> | void
|
|
1025
1104
|
```
|
|
1026
1105
|
|
|
1027
|
-
Types: [Scoped](scope.md)
|
|
1106
|
+
Types: [Scoped](scope.zh.md)
|
|
1028
1107
|
|
|
1029
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
1108
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
1030
1109
|
|
|
1031
1110
|
<a id="agent-loop-events"></a>
|
|
1032
1111
|
|
|
@@ -1051,7 +1130,7 @@ A declarative agent entry failed before it could publish a live agent. Consumers
|
|
|
1051
1130
|
'agent-loop/config-start-failed'(payload: { sessionId: SessionId; error: unknown }): void
|
|
1052
1131
|
```
|
|
1053
1132
|
|
|
1054
|
-
Source: [`packages/core/agent-loop/src/index.ts
|
|
1133
|
+
Source: [`packages/core/agent-loop/src/index.ts`](../../packages/core/agent-loop/src/index.ts)
|
|
1055
1134
|
|
|
1056
1135
|
<a id="agent-preset-events"></a>
|
|
1057
1136
|
|
|
@@ -1074,5 +1153,5 @@ One session committed a different agent preset to its durable log. Consumers inv
|
|
|
1074
1153
|
'agent-preset/selected'(sessionId: SessionId, agentPreset: string): void
|
|
1075
1154
|
```
|
|
1076
1155
|
|
|
1077
|
-
Source: [`packages/preset/agent-presets/src/types.ts
|
|
1156
|
+
Source: [`packages/preset/agent-presets/src/types.ts`](../../packages/preset/agent-presets/src/types.ts)
|
|
1078
1157
|
<!-- END GENERATED cordis-surface -->
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write docs/subsystems/credentials.md
|
|
5
|
-
credentials.md:
|
|
6
|
-
credentials.zh.md:
|
|
5
|
+
credentials.md: 5ae53a19140f423e1c52334c40f25fca7d3ed754
|
|
6
|
+
credentials.zh.md: b6d5d8eb3960edd68a96a32a41c591e61f2c8b5e
|