dsh-plugin-guide 0.3.1 → 0.3.3
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 +28 -23
- 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 +25 -8
- package/references/official-docs/docs/architecture.zh.md +38 -21
- package/references/official-docs/docs/capability-seams.i18n.yaml +2 -2
- package/references/official-docs/docs/capability-seams.md +134 -67
- package/references/official-docs/docs/capability-seams.zh.md +134 -67
- package/references/official-docs/docs/config-catalog.i18n.yaml +2 -2
- package/references/official-docs/docs/config-catalog.md +731 -403
- package/references/official-docs/docs/config-catalog.zh.md +747 -419
- package/references/official-docs/docs/cookbook/adding-a-package.i18n.yaml +2 -2
- package/references/official-docs/docs/cookbook/adding-a-package.md +3 -4
- package/references/official-docs/docs/cookbook/adding-a-package.zh.md +9 -8
- 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 +660 -909
- package/references/official-docs/docs/module-graph.zh.md +662 -911
- package/references/official-docs/docs/persistence-catalog.i18n.yaml +2 -2
- package/references/official-docs/docs/persistence-catalog.md +185 -53
- package/references/official-docs/docs/persistence-catalog.zh.md +193 -61
- 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 +207 -0
- package/references/official-docs/docs/subsystems/agent-team.zh.md +207 -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 +12 -8
- package/references/official-docs/docs/subsystems/code-runtime.zh.md +13 -9
- package/references/official-docs/docs/subsystems/commands.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/commands.md +30 -7
- package/references/official-docs/docs/subsystems/commands.zh.md +31 -8
- package/references/official-docs/docs/subsystems/compaction.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/compaction.md +14 -14
- package/references/official-docs/docs/subsystems/compaction.zh.md +19 -19
- 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 +114 -36
- package/references/official-docs/docs/subsystems/core.zh.md +145 -65
- 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 +6 -6
- package/references/official-docs/docs/subsystems/feedback.zh.md +6 -6
- 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 +183 -173
- package/references/official-docs/docs/subsystems/persistence.zh.md +182 -172
- 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 +148 -75
- package/references/official-docs/docs/subsystems/session-projection.zh.md +148 -75
- package/references/official-docs/docs/subsystems/session-query.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/session-query.md +30 -16
- package/references/official-docs/docs/subsystems/session-query.zh.md +31 -17
- 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 +8 -8
- package/references/official-docs/docs/subsystems/session-title.zh.md +10 -10
- package/references/official-docs/docs/subsystems/session.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/session.md +376 -71
- package/references/official-docs/docs/subsystems/session.zh.md +392 -85
- 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 +175 -0
- package/references/official-docs/docs/subsystems/slots.zh.md +175 -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 +38 -7
- package/references/official-docs/docs/subsystems/storage.zh.md +41 -10
- package/references/official-docs/docs/subsystems/subagent.i18n.yaml +2 -2
- package/references/official-docs/docs/subsystems/subagent.md +148 -116
- package/references/official-docs/docs/subsystems/subagent.zh.md +158 -124
- 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 +29 -14
- package/references/official-docs/docs/subsystems/token-meter.zh.md +30 -15
- 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 +413 -61
- package/references/official-docs/docs/tool-catalog.zh.md +418 -63
- 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 +2 -2
- package/references/official-docs/docs/web-styling.md +3 -0
- package/references/official-docs/docs/web-styling.zh.md +5 -2
- package/references/official-docs/packages/AGENTS.md +4 -3
- 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
|
@@ -17,7 +17,7 @@ A turn flows through the six packages in one loop: the driver in [`agent-loop`](
|
|
|
17
17
|
| `agent-loop/` | The concrete driver implementing the public `Agent` contract (`ctx.agentLoop`) | this page |
|
|
18
18
|
| `scope/` | The scoped-registration primitive the registries and loop build per-agent scoping on | [scope.md](scope.md) |
|
|
19
19
|
|
|
20
|
-
`scope/` is the one non-service package: a dependency-free library (`createScope`/`scopeOf`/`scopeTarget`) that sits below `session/` and `system-prompt/` in the module graph precisely so they can consume it without a cycle. `agent-loop` is the one concrete implementation of the public `Agent` contract and lives here because it is the harness's default product loop; it runs each driver inside `ctx.agents.withInitiator()`. Extension plugins depend on `agent` — including when they need the initiating Agent — and never on `agent-loop` directly, so the loop stays swappable.
|
|
20
|
+
`scope/` is the one non-service package: a dependency-free library (`createScope`/`scopeOf`/`scopeTarget`) that sits below `session/` and `system-prompt/` in the module graph precisely so they can consume it without a cycle. `agent-loop` is the one concrete implementation of the public `Agent` contract and lives here because it is the harness's default product loop; it runs each driver inside `ctx.agents.withInitiator()`. Extension plugins depend on `agent` — including when they need the initiating Agent — and never on `agent-loop` directly, so the loop stays swappable. [`dsh-base`](../../packages/bundle/base/README.md) is the default product composition, while [`dsh-sdk-minimal`](../../packages/bundle/sdk-minimal/README.md) declares a smaller standalone tree.
|
|
21
21
|
|
|
22
22
|
## Creation and ownership
|
|
23
23
|
|
|
@@ -46,7 +46,7 @@ interface AgentHandle {
|
|
|
46
46
|
}
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
`CreateAgentOptions` carries the shared identity and everything a fresh agent needs before publication: session metadata (`meta` — validated `cwd`, fork lineage,
|
|
49
|
+
`CreateAgentOptions` carries the shared identity and everything a fresh agent needs before publication: session metadata (`meta` — validated `cwd`, fork lineage, the `isSeeded` marker, origin classification, delegation depth, and `agentPreset`), the exact fork cut in sibling field `inheritedEventCount`, an optional `seed` replay prefix, per-agent `AgentOptions`, a creation-only cancellation `signal`, and `setup`. `ResumeAgentOptions` is the persisted-identity counterpart: `resumeSessionId`, `agentOptions`, `signal`, and `setup`. The `setup` callback (`AgentSetup`) composes the agent's scoped world while both ids are still unpublished — everything registered through `agentCtx` exists before `agent/created` and the first prompt assembly — and may return a synchronous commit invoked immediately before publication; a setup rejection, commit throw, or owner disposal rolls the transaction back without publishing either id.
|
|
50
50
|
|
|
51
51
|
`AgentFactory` is the creation interface behind the registry: the loop registers its factory via `ctx.agents.setFactory()`, so consumers use `ctx.agents` without depending on the concrete loop package. The exact `create`/`resume` signatures and rollback contracts are in the [generated section](#ctxagents--agentregistry) below.
|
|
52
52
|
|
|
@@ -57,9 +57,9 @@ interface AgentHandle {
|
|
|
57
57
|
Source: [`packages/core/agent/src/types.ts`](../../packages/core/agent/src/types.ts)
|
|
58
58
|
|
|
59
59
|
```ts type-equiv
|
|
60
|
-
/** Public live-agent handle. */
|
|
60
|
+
/** Public live-agent handle; the runtime face augments its live capabilities. */
|
|
61
61
|
interface Agent {
|
|
62
|
-
/**
|
|
62
|
+
/** Session-backed Agent identity. */
|
|
63
63
|
readonly id: SessionId
|
|
64
64
|
/** The provider route and model this agent's requests use. */
|
|
65
65
|
readonly options: AgentOptions
|
|
@@ -161,12 +161,14 @@ interface AgentOptions {
|
|
|
161
161
|
provider?: string
|
|
162
162
|
/** Model id interpreted by the selected provider adapter. */
|
|
163
163
|
model?: string
|
|
164
|
+
/** Adapter-owned reasoning effort for the selected provider/model route. */
|
|
165
|
+
reasoningEffort?: ReasoningEffortId
|
|
164
166
|
/** Maximum output tokens for each conversation-model request. */
|
|
165
167
|
maxTokens?: number
|
|
166
168
|
}
|
|
167
169
|
```
|
|
168
170
|
|
|
169
|
-
Dispatch requires `provider` and `model` after `agent/request`. When present, `maxTokens` must be a positive safe integer and caps every conversation-model request; omission allows the exact-model adapter default to materialize before the request header, or otherwise leaves provider behavior unchanged. An agent-scoped `deployment:persona` prompt section may shadow the global default persona.
|
|
171
|
+
Dispatch requires `provider` and `model` after `agent/request`. An explicit `reasoningEffort` seeds the first request on that route; exact-model resolution validates it, while omission allows the adapter default to materialize. When present, `maxTokens` must be a positive safe integer and caps every conversation-model request; omission allows the exact-model adapter default to materialize before the request header, or otherwise leaves provider behavior unchanged. An agent-scoped `deployment:persona` prompt section may shadow the global default persona.
|
|
170
172
|
|
|
171
173
|
The inbox is the delivery vocabulary — two ordered pending-message lists the agent owns as a durable projection:
|
|
172
174
|
|
|
@@ -200,7 +202,7 @@ type AgentCancelCause =
|
|
|
200
202
|
| { readonly kind: 'disposed' }
|
|
201
203
|
```
|
|
202
204
|
|
|
203
|
-
The cause is a TypeScript-enforced same-process input. An active cancellation holder copies it into the runtime-only `AbortSignal.reason`; a signal grants cooperating listeners no classification authority. Durable `turn/end`
|
|
205
|
+
The cause is a TypeScript-enforced same-process input. An active cancellation holder copies it into the runtime-only `AbortSignal.reason`; a signal grants cooperating listeners no classification authority. Durable `turn/end` records the outcome as `{ kind: 'aborted', reason: TurnEndCancelCause }`, so the cancel cause lands in the terminal result.
|
|
204
206
|
|
|
205
207
|
The [event taxonomy](../architecture.md#events) owns the `agent/*` lifecycle, checkpoint, and waterfall contracts. Turn and step boundaries are durable session events rather than agent emits.
|
|
206
208
|
|
|
@@ -222,7 +224,12 @@ It returns a `PreStepDecision`. Reject opens no step. Enter supplies the complet
|
|
|
222
224
|
/** Whether and with which messages the loop enters a proposed step. */
|
|
223
225
|
type PreStepDecision =
|
|
224
226
|
| { kind: 'reject' }
|
|
225
|
-
| {
|
|
227
|
+
| {
|
|
228
|
+
kind: 'enter'
|
|
229
|
+
messages: UserMessage[]
|
|
230
|
+
/** Start a distinct model-message series before this step's admitted messages. */
|
|
231
|
+
startsRequestSeries?: true
|
|
232
|
+
}
|
|
226
233
|
```
|
|
227
234
|
|
|
228
235
|
`agent/request-error` runs after a failed model step closes and before its turn closes. Listeners can repair durable state or await policy work while the failed turn's signal is still live. A handling listener returns `{ kind: 'retry' }` without calling `next()`; the default `undefined` leaves the failure terminal.
|
|
@@ -232,7 +239,7 @@ type PreStepDecision =
|
|
|
232
239
|
type RequestErrorAction = { kind: 'retry' } | undefined
|
|
233
240
|
```
|
|
234
241
|
|
|
235
|
-
`agent/pre-step` is the only
|
|
242
|
+
`agent/pre-step` is the only waterfall listener chain before request derivation. `agent/turn-stopping` runs when a turn has no tool or steering continuation, before one final steering drain.
|
|
236
243
|
|
|
237
244
|
`agent/session-start` carries a `SessionStartSource` (why the session lifecycle began; a bridge keys its SessionStart matcher on it):
|
|
238
245
|
|
|
@@ -245,7 +252,7 @@ type SessionStartSource = 'startup' | 'resume' | 'clear' | 'compact'
|
|
|
245
252
|
|
|
246
253
|
A `Session` is an **append-only log** of typed `SessionEvent`s — the single source of truth. The LLM message history is *derived* from the log (`deriveMessages()`), not stored separately. Every entry carries a monotonic `seq`, a `time`, and a `type`-discriminated `data` payload; surface variants may also list cited earlier events in `sourceEventSeqs` and carry a `surfaceOp`.
|
|
247
254
|
|
|
248
|
-
The `SessionEvent` envelope's exact conditional fields, the twelve event variants (`turn/start`, `turn/end`, `step/start`, `step/end`, `user/message`, `assistant/chunk`, `assistant/message`, `tool/call`, `tool/result`, `
|
|
255
|
+
The `SessionEvent` envelope's exact conditional fields, the twelve core event variants (`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`), the `deriveMessages()` projection rules, the `TurnEndReason` reasons, and the execution-enclosure and standalone-event rules are on **[session.md](session.md)**. How the log is made durable — the `SessionPersistence` interface, JSONL provider, `session/flush` checkpoint, crash recovery, and `SessionHeader` — is on **[persistence.md](persistence.md)**.
|
|
249
256
|
|
|
250
257
|
## `ToolDefinition`
|
|
251
258
|
|
|
@@ -280,14 +287,13 @@ declare module '@deepseek-ai/dsh-llm' {
|
|
|
280
287
|
}
|
|
281
288
|
```
|
|
282
289
|
|
|
283
|
-
|
|
290
|
+
Five canonical maps use this pattern; a plugin author extends these:
|
|
284
291
|
|
|
285
292
|
| Map | Package | Derives | Catalog |
|
|
286
293
|
|---|---|---|---|
|
|
287
294
|
| `ContentBlockMap` | dsh-llm | `ContentBlock` | [llm-streaming.md](llm-streaming.md#content-blocks-and-messages) |
|
|
288
295
|
| `MessageSourceMap` | dsh-llm | `MessageSource` | [llm-streaming.md](llm-streaming.md#content-blocks-and-messages) |
|
|
289
296
|
| `FinishReasonMap` | dsh-llm | `FinishReason` | [llm-streaming.md](llm-streaming.md#the-model-request-and-result) |
|
|
290
|
-
| `TurnTriggerMap` | dsh-session | `TurnTrigger` | [session.md](session.md) |
|
|
291
297
|
| `TurnEndReasonMap` | dsh-session | `TurnEndReason` | [session.md](session.md) |
|
|
292
298
|
| `SessionEventMap` | dsh-session | `SessionEvent` | [session.md](session.md) |
|
|
293
299
|
|
|
@@ -295,9 +301,9 @@ Two large discriminated unions are the ones consumers `switch` over most: **`Str
|
|
|
295
301
|
|
|
296
302
|
### Branded IDs
|
|
297
303
|
|
|
298
|
-
IDs passed between packages are **branded** — structurally strings, but non-interchangeable at the type level (a `SessionId` cannot be passed where a `
|
|
304
|
+
IDs passed between packages are **branded** — structurally strings, but non-interchangeable at the type level (a `SessionId` cannot be passed where a `ToolCallId` is expected). Construction uses the shared `brandString<T>()` helper or an owner-defined validating factory; comparison, logging, and JSON behave as ordinary strings.
|
|
299
305
|
|
|
300
|
-
The `Branded<B>` primitive
|
|
306
|
+
The `Branded<B>` primitive and stateless constructor live in [dsh-brand](../../packages/util/brand), which has no harness capability dependency. `brandString<T>()` applies a compile-time-only string brand.
|
|
301
307
|
|
|
302
308
|
Source: [`packages/util/brand/src/index.ts`](../../packages/util/brand/src/index.ts)
|
|
303
309
|
|
|
@@ -306,7 +312,7 @@ Source: [`packages/util/brand/src/index.ts`](../../packages/util/brand/src/index
|
|
|
306
312
|
type Branded<B extends string> = string & { readonly [BRAND]: B }
|
|
307
313
|
```
|
|
308
314
|
|
|
309
|
-
The two core IDs are `
|
|
315
|
+
The two core IDs are `ToolCallId` (correlates a tool call with its result; dsh-llm) and `SessionId` (the shared live agent and durable session identity; dsh-session). Capability packages brand their own ids too, such as `JobId` in [jobs.md](jobs.md).
|
|
310
316
|
|
|
311
317
|
<!-- BEGIN GENERATED cordis-surface (gen-cordis-catalog.ts) — do not edit between markers -->
|
|
312
318
|
|
|
@@ -314,7 +320,7 @@ The two core IDs are `CallId` (correlates a tool call with its result; dsh-llm)
|
|
|
314
320
|
|
|
315
321
|
## Cordis API
|
|
316
322
|
|
|
317
|
-
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`) —
|
|
323
|
+
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).
|
|
318
324
|
|
|
319
325
|
<a id="ctxagentdefaultmodel--agentdefaultmodelconfig"></a>
|
|
320
326
|
|
|
@@ -338,7 +344,7 @@ currentSelection(): ModelSelection
|
|
|
338
344
|
async saveSelection(next: ModelSelection): Promise<void>
|
|
339
345
|
```
|
|
340
346
|
|
|
341
|
-
Source: [`packages/core/agent-default-model/src/index.ts
|
|
347
|
+
Source: [`packages/core/agent-default-model/src/index.ts`](../../packages/core/agent-default-model/src/index.ts)
|
|
342
348
|
|
|
343
349
|
<a id="ctxagentloop--agentloop"></a>
|
|
344
350
|
|
|
@@ -350,13 +356,14 @@ Concrete agent factory and driver service.
|
|
|
350
356
|
/**
|
|
351
357
|
* Create an agent and session under one caller-supplied identity, owned by
|
|
352
358
|
* the accessing fiber. Constructor-driven config calls mint a fresh combined
|
|
353
|
-
* id before entering this boundary.
|
|
359
|
+
* id before entering this boundary. When a persistence backend is mounted,
|
|
360
|
+
* the session's durable identity and any seed are stored before publication.
|
|
354
361
|
* @param id - shared agent/session identity.
|
|
355
362
|
* @param options - concrete loop options.
|
|
356
363
|
* @param meta - optional fresh-session workspace metadata.
|
|
357
364
|
* @returns the published running agent.
|
|
358
365
|
*/
|
|
359
|
-
create(id: SessionId, options: AgentOptions = {}, meta: Pick<SessionHeader, 'cwd'> = {}): Agent
|
|
366
|
+
async create(id: SessionId, options: AgentOptions = {}, meta: Pick<SessionHeader, 'cwd'> = {}): Promise<Agent>
|
|
360
367
|
|
|
361
368
|
/**
|
|
362
369
|
* Create an owned agent on a caller-supplied session id.
|
|
@@ -377,7 +384,7 @@ async resume(ownerCtx: Context, options: ResumeAgentOptions): Promise<AgentHandl
|
|
|
377
384
|
|
|
378
385
|
Types: [SessionHeader](persistence.md)
|
|
379
386
|
|
|
380
|
-
Source: [`packages/core/agent-loop/src/index.ts
|
|
387
|
+
Source: [`packages/core/agent-loop/src/index.ts`](../../packages/core/agent-loop/src/index.ts)
|
|
381
388
|
|
|
382
389
|
<a id="ctxagentpresets--agentpresets"></a>
|
|
383
390
|
|
|
@@ -394,6 +401,35 @@ Discovery is unmemoized: `list()` and `resolve()` re-read the roots on every cal
|
|
|
394
401
|
*/
|
|
395
402
|
async list(): Promise<AgentPreset[]>
|
|
396
403
|
|
|
404
|
+
/**
|
|
405
|
+
* The roster off the Host: {@link list} projected to path-free rows, with
|
|
406
|
+
* the default marked and this deployment's authoring capability beside it.
|
|
407
|
+
*
|
|
408
|
+
* Whether a client can open a preset's directory is the Host's own opener
|
|
409
|
+
* capability, not a roster property — a caller needing both joins them.
|
|
410
|
+
* @returns the rows and the authoring capability.
|
|
411
|
+
*/
|
|
412
|
+
@Remote('list') async remoteExportList(): Promise<AgentPresetRoster>
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Every preset's composition as flattened plugin rows, for plugin-listing
|
|
416
|
+
* surfaces beside the roster's own picker.
|
|
417
|
+
*
|
|
418
|
+
* A preset with a live standing mount answers from its newest generation's
|
|
419
|
+
* Loader entries — the composition new sessions join — even when the file
|
|
420
|
+
* behind it has since been edited into an unreadable state: the mount is
|
|
421
|
+
* what sessions actually run, so the broken verdict only applies to a
|
|
422
|
+
* preset nothing composed. One never composed since boot answers from its
|
|
423
|
+
* file, with `!!js` disabled gates evaluated against the Loader context so
|
|
424
|
+
* both answers reflect the same host. Reading never mounts: an unmounted
|
|
425
|
+
* preset is parsed, not composed, so listing a preset's plugins cannot
|
|
426
|
+
* activate them early. A composition that stopped reading between
|
|
427
|
+
* discovery's health verdict and this read is reported broken with the
|
|
428
|
+
* raced reason rather than dropped.
|
|
429
|
+
* @returns one composition per roster preset, in roster order.
|
|
430
|
+
*/
|
|
431
|
+
async compositionInventory(): Promise<AgentPresetComposition[]>
|
|
432
|
+
|
|
397
433
|
/**
|
|
398
434
|
* Resolve one preset by id.
|
|
399
435
|
*
|
|
@@ -468,6 +504,15 @@ composedPreset(agentCtx: Context): string | undefined
|
|
|
468
504
|
*/
|
|
469
505
|
async read(id: string): Promise<string>
|
|
470
506
|
|
|
507
|
+
/**
|
|
508
|
+
* One preset's composition text with the roster row it belongs to.
|
|
509
|
+
* @param agentPreset - the preset id.
|
|
510
|
+
* @returns the composition beside its trust and published metadata.
|
|
511
|
+
* @throws {RemoteError} `gateway/bad-request` for an empty id, or
|
|
512
|
+
* `agent-preset/not-found` when no configured root supplies it.
|
|
513
|
+
*/
|
|
514
|
+
@Remote('read') async readDocument(agentPreset: string): Promise<AgentPresetDocument>
|
|
515
|
+
|
|
471
516
|
/**
|
|
472
517
|
* Create a locally authored preset by copying an existing one whole.
|
|
473
518
|
*
|
|
@@ -485,13 +530,34 @@ async read(id: string): Promise<string>
|
|
|
485
530
|
*/
|
|
486
531
|
async copy(from: string, id: string, name?: string): Promise<void>
|
|
487
532
|
|
|
533
|
+
/**
|
|
534
|
+
* Copy one preset through the Remote API.
|
|
535
|
+
* @param from - the source preset id.
|
|
536
|
+
* @param id - the new preset id.
|
|
537
|
+
* @param name - the copy's optional display name.
|
|
538
|
+
* @returns once the copy is stored.
|
|
539
|
+
* @throws {RemoteError} with the corresponding stable preset code and
|
|
540
|
+
* details when the copy is refused.
|
|
541
|
+
*/
|
|
542
|
+
@Remote('copy') async remoteExportCopy(from: string, id: string, name?: string): Promise<void>
|
|
543
|
+
|
|
488
544
|
/**
|
|
489
545
|
* Delete a locally authored preset.
|
|
546
|
+
*
|
|
490
547
|
* @param id - the preset id.
|
|
491
548
|
* @throws when the preset is unknown or ships with the deployment.
|
|
492
549
|
*/
|
|
493
550
|
async remove(id: string): Promise<void>
|
|
494
551
|
|
|
552
|
+
/**
|
|
553
|
+
* Delete one preset through the Remote API.
|
|
554
|
+
* @param id - the preset id.
|
|
555
|
+
* @returns once the preset is deleted.
|
|
556
|
+
* @throws {RemoteError} with the corresponding stable preset code and
|
|
557
|
+
* details when deletion is refused.
|
|
558
|
+
*/
|
|
559
|
+
@Remote('deletePreset') async remoteExportDelete(id: string): Promise<void>
|
|
560
|
+
|
|
495
561
|
/**
|
|
496
562
|
* One agent's instance of a service its preset mounted.
|
|
497
563
|
*
|
|
@@ -524,7 +590,9 @@ serviceFor<K extends string & keyof Context>(agent: { ctx: Context }, name: K):
|
|
|
524
590
|
* state to restore. The re-link runs through the binding this roster kept
|
|
525
591
|
* from the agent's mount — dsh-scope's only re-link authority. An agent
|
|
526
592
|
* that never composed one has nothing to re-link: the switch is then the
|
|
527
|
-
* agent's first bind, exactly a mount.
|
|
593
|
+
* agent's first bind, exactly a mount. A committed re-link emits
|
|
594
|
+
* `tools/change` because changing the parent scope changes the Agent's
|
|
595
|
+
* resolved tool set without adding or removing registry entries.
|
|
528
596
|
* @param agentCtx - the agent's scope context.
|
|
529
597
|
* @param id - the preset to compose the agent from instead.
|
|
530
598
|
* @returns the preset now installed.
|
|
@@ -532,6 +600,16 @@ serviceFor<K extends string & keyof Context>(agent: { ctx: Context }, name: K):
|
|
|
532
600
|
*/
|
|
533
601
|
async recompose(agentCtx: Context, id: string): Promise<AgentPreset>
|
|
534
602
|
|
|
603
|
+
/**
|
|
604
|
+
* Compose a blank session's agent from a different preset and record it.
|
|
605
|
+
* @param agent - the session's live agent, resolved from the wire identity.
|
|
606
|
+
* @param agentPreset - the preset to compose the agent from instead.
|
|
607
|
+
* @returns the preset id that was recorded.
|
|
608
|
+
* @throws {RemoteError} with `gateway/bad-request`, `agent-preset/locked`,
|
|
609
|
+
* `agent-preset/not-found`, or `agent-preset/invalid` when refused.
|
|
610
|
+
*/
|
|
611
|
+
@Remote('select') async select(agent: Agent, agentPreset: string): Promise<string>
|
|
612
|
+
|
|
535
613
|
/**
|
|
536
614
|
* The standing scope key of one preset, for a host reader with no agent.
|
|
537
615
|
*
|
|
@@ -548,7 +626,7 @@ async standingKeyFor(id?: string): Promise<ScopeKey>
|
|
|
548
626
|
|
|
549
627
|
Types: [ScopeKey](scope.md)
|
|
550
628
|
|
|
551
|
-
Source: [`packages/preset/agent-presets/src/index.ts
|
|
629
|
+
Source: [`packages/preset/agent-presets/src/index.ts`](../../packages/preset/agent-presets/src/index.ts)
|
|
552
630
|
|
|
553
631
|
<a id="ctxagents--agentregistry"></a>
|
|
554
632
|
|
|
@@ -720,7 +798,7 @@ list(): Agent[]
|
|
|
720
798
|
roots(): Agent[]
|
|
721
799
|
```
|
|
722
800
|
|
|
723
|
-
Source: [`packages/core/agent/src/index.ts
|
|
801
|
+
Source: [`packages/core/agent/src/index.ts`](../../packages/core/agent/src/index.ts)
|
|
724
802
|
|
|
725
803
|
<a id="agent-events"></a>
|
|
726
804
|
|
|
@@ -748,7 +826,7 @@ A fully configured agent and live session were published. Setup is composition-o
|
|
|
748
826
|
|
|
749
827
|
Types: [Scoped](scope.md)
|
|
750
828
|
|
|
751
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
829
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
752
830
|
|
|
753
831
|
<a id="agentdisposed--emit"></a>
|
|
754
832
|
|
|
@@ -770,7 +848,7 @@ An agent left the registry; AgentLoop emits this after driver quiescence and sco
|
|
|
770
848
|
|
|
771
849
|
Types: [Scoped](scope.md)
|
|
772
850
|
|
|
773
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
851
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
774
852
|
|
|
775
853
|
<a id="agenterror--emit"></a>
|
|
776
854
|
|
|
@@ -794,7 +872,7 @@ A step or turn errored. The machine reports a failure here even when the error h
|
|
|
794
872
|
|
|
795
873
|
Types: [Scoped](scope.md)
|
|
796
874
|
|
|
797
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
875
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
798
876
|
|
|
799
877
|
<a id="agentinboxclaimed--emit"></a>
|
|
800
878
|
|
|
@@ -818,7 +896,7 @@ One message left the inbox inside its open turn. If the proposed step is rejecte
|
|
|
818
896
|
|
|
819
897
|
Types: [Scoped](scope.md) · [UserMessage](session.md)
|
|
820
898
|
|
|
821
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
899
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
822
900
|
|
|
823
901
|
<a id="agentinboxdiscarded--emit"></a>
|
|
824
902
|
|
|
@@ -839,7 +917,7 @@ One message was discarded from the live inbox.
|
|
|
839
917
|
|
|
840
918
|
Types: [Scoped](scope.md) · [UserMessage](session.md)
|
|
841
919
|
|
|
842
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
920
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
843
921
|
|
|
844
922
|
<a id="agentinboxinserted--emit"></a>
|
|
845
923
|
|
|
@@ -860,7 +938,7 @@ One message entered the live inbox.
|
|
|
860
938
|
|
|
861
939
|
Types: [Scoped](scope.md) · [UserMessage](session.md)
|
|
862
940
|
|
|
863
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
941
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
864
942
|
|
|
865
943
|
<a id="agentpre-step--waterfall"></a>
|
|
866
944
|
|
|
@@ -885,7 +963,7 @@ Reject a proposed step or replace the messages that enter it. Calling `next()` p
|
|
|
885
963
|
|
|
886
964
|
Types: [Scoped](scope.md) · [UserMessage](session.md)
|
|
887
965
|
|
|
888
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
966
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
889
967
|
|
|
890
968
|
<a id="agentrequest--waterfall"></a>
|
|
891
969
|
|
|
@@ -911,7 +989,7 @@ Replace the frozen call configuration. `await next()` yields the config the mach
|
|
|
911
989
|
|
|
912
990
|
Types: [LlmCallConfig](llm-streaming.md) · [Scoped](scope.md)
|
|
913
991
|
|
|
914
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
992
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
915
993
|
|
|
916
994
|
<a id="agentrequest-error--waterfall"></a>
|
|
917
995
|
|
|
@@ -940,7 +1018,7 @@ Handle one failed model-request attempt before the loop retries or closes its st
|
|
|
940
1018
|
|
|
941
1019
|
Types: [LlmFailure](llm-streaming.md) · [ResolvedRetryPolicy](llm-streaming.md) · [Scoped](scope.md)
|
|
942
1020
|
|
|
943
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
1021
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
944
1022
|
|
|
945
1023
|
<a id="agentsession-start--emit"></a>
|
|
946
1024
|
|
|
@@ -964,7 +1042,7 @@ The session lifecycle began, once before the first turn. Use `agent.inject()` to
|
|
|
964
1042
|
|
|
965
1043
|
Types: [Scoped](scope.md)
|
|
966
1044
|
|
|
967
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
1045
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
968
1046
|
|
|
969
1047
|
<a id="agentstatus--emit"></a>
|
|
970
1048
|
|
|
@@ -987,7 +1065,7 @@ Agent status changed (`idle` ⇄ `running`). A waking delivery enters `running`
|
|
|
987
1065
|
|
|
988
1066
|
Types: [Scoped](scope.md)
|
|
989
1067
|
|
|
990
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
1068
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
991
1069
|
|
|
992
1070
|
<a id="agentturn-stopping--serial"></a>
|
|
993
1071
|
|
|
@@ -1018,7 +1096,7 @@ The turn is about to close: the model owes no response (no live tool calls, no f
|
|
|
1018
1096
|
|
|
1019
1097
|
Types: [Scoped](scope.md)
|
|
1020
1098
|
|
|
1021
|
-
Source: [`packages/core/agent/src/runtime-types.ts
|
|
1099
|
+
Source: [`packages/core/agent/src/runtime-types.ts`](../../packages/core/agent/src/runtime-types.ts)
|
|
1022
1100
|
|
|
1023
1101
|
<a id="agent-loop-events"></a>
|
|
1024
1102
|
|
|
@@ -1043,7 +1121,7 @@ A declarative agent entry failed before it could publish a live agent. Consumers
|
|
|
1043
1121
|
'agent-loop/config-start-failed'(payload: { sessionId: SessionId; error: unknown }): void
|
|
1044
1122
|
```
|
|
1045
1123
|
|
|
1046
|
-
Source: [`packages/core/agent-loop/src/index.ts
|
|
1124
|
+
Source: [`packages/core/agent-loop/src/index.ts`](../../packages/core/agent-loop/src/index.ts)
|
|
1047
1125
|
|
|
1048
1126
|
<a id="agent-preset-events"></a>
|
|
1049
1127
|
|
|
@@ -1066,5 +1144,5 @@ One session committed a different agent preset to its durable log. Consumers inv
|
|
|
1066
1144
|
'agent-preset/selected'(sessionId: SessionId, agentPreset: string): void
|
|
1067
1145
|
```
|
|
1068
1146
|
|
|
1069
|
-
Source: [`packages/preset/agent-presets/src/types.ts
|
|
1147
|
+
Source: [`packages/preset/agent-presets/src/types.ts`](../../packages/preset/agent-presets/src/types.ts)
|
|
1070
1148
|
<!-- END GENERATED cordis-surface -->
|