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
|
@@ -59,15 +59,19 @@ interface SessionEventMap {
|
|
|
59
59
|
* Assembled assistant message for one step (derived history uses this).
|
|
60
60
|
* Carries the step's `usage` when the adapter reported token accounting, so
|
|
61
61
|
* the model output and its accounting travel together (there is no separate
|
|
62
|
-
* usage record). `usage` is absent when the adapter reported none.
|
|
62
|
+
* usage record). `usage` is absent when the adapter reported none. A turn
|
|
63
|
+
* cancelled mid-stream finalizes its delivered text/reasoning prefix as this
|
|
64
|
+
* event with `interrupted: true`; undispatched tool calls are absent. The
|
|
65
|
+
* marker distinguishes that prefix without re-deriving interruption from turn
|
|
66
|
+
* boundaries. An aborted turn with no such event streamed no visible content.
|
|
63
67
|
*/
|
|
64
|
-
'assistant/message': { turn: number; step: number; message: AssistantMessage; usage?: TokenUsage }
|
|
68
|
+
'assistant/message': { turn: number; step: number; message: AssistantMessage; usage?: TokenUsage; interrupted?: true }
|
|
65
69
|
/**
|
|
66
70
|
* The model requested one tool invocation: `name` with the raw `arguments`
|
|
67
71
|
* JSON string exactly as the model produced it (unparsed). `callId` pairs the
|
|
68
72
|
* call with its `tool/result`.
|
|
69
73
|
*/
|
|
70
|
-
'tool/call': { turn: number; step: number; callId:
|
|
74
|
+
'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string }
|
|
71
75
|
/**
|
|
72
76
|
* A completed tool call's model-facing result, optional internal failure
|
|
73
77
|
* identity, and optional tool-private `meta` presentation payload. `meta` is
|
|
@@ -86,13 +90,16 @@ interface SessionEventMap {
|
|
|
86
90
|
error?: { name: string; code: string }
|
|
87
91
|
meta?: JsonValue
|
|
88
92
|
}
|
|
89
|
-
/** Whole-list snapshot; latest write wins on replay. Log-only UI state; never derived history. */
|
|
90
|
-
'todo/write': { todos: TodoItem[] }
|
|
91
93
|
/**
|
|
92
94
|
* Full header for the next request, appended inside its step before dispatch.
|
|
93
95
|
* It is log-only; the latest snapshot reconstructs the request header.
|
|
94
96
|
*/
|
|
95
|
-
'request/header': {
|
|
97
|
+
'request/header': {
|
|
98
|
+
header: EpochHeader
|
|
99
|
+
reason: RequestHeaderReason
|
|
100
|
+
/** A changed header also begins a distinct model-message series. */
|
|
101
|
+
startsSeries?: true
|
|
102
|
+
}
|
|
96
103
|
/**
|
|
97
104
|
* Route metadata for the next request, logged only when the route or capacity
|
|
98
105
|
* changes. It does not participate in request reconstruction or header equality.
|
|
@@ -126,34 +133,11 @@ interface SessionEventMap {
|
|
|
126
133
|
|
|
127
134
|
`UserMessage` is the identified, frozen user-role value shared by ordinary prompts, injected context, steering, and live inbox events. Event wrappers add only event-local position or outcome facts; the loop adds only driver-owned routing state while an item remains pending.
|
|
128
135
|
|
|
129
|
-
### `TodoItem` — one todo-list entry
|
|
130
|
-
|
|
131
|
-
The unit of the `todo/write` event's whole-list snapshot. Deliberately minimal — a `content` line and a three-state `status` (no id, priority, or `activeForm`): the list is replaced wholesale on every write, so entries need no stable identity. See the [todo_write Agent Note](../../.agents/notes/implemented/feature/2026-06-29-todo-write-tool.md).
|
|
132
|
-
|
|
133
|
-
```ts type-equiv
|
|
134
|
-
/**
|
|
135
|
-
* One entry in an agent's todo list — the unit of the `todo/write`
|
|
136
|
-
* {@link SessionEventMap} event's whole-list snapshot.
|
|
137
|
-
*
|
|
138
|
-
* Deliberately minimal: a human-readable `content` line and a three-state
|
|
139
|
-
* `status`. No id, priority, or `activeForm` — the list is replaced wholesale
|
|
140
|
-
* on every write (last-write-wins), so entries need no stable identity. The
|
|
141
|
-
* three statuses describe the complete portable lifecycle needed by model and
|
|
142
|
-
* UI consumers.
|
|
143
|
-
*/
|
|
144
|
-
interface TodoItem {
|
|
145
|
-
/** What this task is — a short imperative line shown in the UI. */
|
|
146
|
-
content: string
|
|
147
|
-
/** Lifecycle state. `in_progress` marks a task being worked now; parallel work may mark several. */
|
|
148
|
-
status: 'pending' | 'in_progress' | 'completed'
|
|
149
|
-
}
|
|
150
|
-
```
|
|
151
|
-
|
|
152
136
|
<a id="the-request-header-event-requestheader"></a>
|
|
153
137
|
|
|
154
138
|
### The request header event: `request/header`
|
|
155
139
|
|
|
156
|
-
The request envelope — the `EpochHeader` (call config + markers for adapter-supplied defaults + rendered system prompt + assembled tool schemas) — is logged session state, so every conversation request is a pure function of the log (the reconstructability Agent Note). A full `request/header` snapshot with reason `'initial'` or `'resume'` records each loop-instance boundary; a
|
|
140
|
+
The request envelope — the `EpochHeader` (call config + markers for adapter-supplied defaults + rendered system prompt + assembled tool schemas) — is logged session state, so every conversation request is a pure function of the log (the reconstructability Agent Note). A full `request/header` snapshot with reason `'initial'` or `'resume'` records each loop-instance boundary; a changed request appends a snapshot with reason `'change'`; and an unchanged envelope beginning an explicitly declared message series or following a surface replacement appends a snapshot with reason `'series'`. A changed snapshot carries `startsSeries: true` when that request also begins a series. Ordinary append-only later Turns, further Steps, and retries in the same model-message series inherit the latest snapshot. `foldRequestHeader(events)` reconstructs the header by selecting the latest snapshot. The event is not a `SurfaceEventType`: it produces no LLM message.
|
|
157
141
|
|
|
158
142
|
```ts type-equiv
|
|
159
143
|
/**
|
|
@@ -217,6 +201,17 @@ type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
|
|
217
201
|
/** Unix epoch milliseconds. */
|
|
218
202
|
time: number
|
|
219
203
|
data: SessionEventMap[K]
|
|
204
|
+
/**
|
|
205
|
+
* Marks an event a reader may safely skip when it does not recognize
|
|
206
|
+
* `type`. Absent means required: a reader meeting an unrecognized type
|
|
207
|
+
* without this marker MUST refuse to reconstruct the session instead of
|
|
208
|
+
* silently dropping the event, because an unrecognized required event may
|
|
209
|
+
* change how the rest of the log is interpreted. A writer sets `true` only
|
|
210
|
+
* on purely informational records whose loss cannot affect reconstruction;
|
|
211
|
+
* defaulting to required means a forgotten marker over-refuses (an
|
|
212
|
+
* inconvenience) rather than silently resuming a gutted session.
|
|
213
|
+
*/
|
|
214
|
+
ignorable?: true
|
|
220
215
|
} & (K extends SurfaceEventType ? {
|
|
221
216
|
/**
|
|
222
217
|
* Seq numbers of earlier events that this event cites as sources
|
|
@@ -450,7 +445,7 @@ declare class Session {
|
|
|
450
445
|
* Map/Set/Date/class instance), or when the candidate violates the
|
|
451
446
|
* canonical surface contract (marker shape and eligibility, unique
|
|
452
447
|
* earlier source-event references, positional replacement validity, and complete
|
|
453
|
-
* shadowed-node coverage). One
|
|
448
|
+
* shadowed-node coverage). One iterative pass reads, validates, and
|
|
454
449
|
* copies each nested value once, so a stateful getter cannot supply one value
|
|
455
450
|
* to validation and another to storage. The event log is the durable source
|
|
456
451
|
* of truth, so a bad event fails at the append site rather than later during
|
|
@@ -581,9 +576,9 @@ Consumers that order Sessions by human activity exclude this boundary: picking a
|
|
|
581
576
|
|
|
582
577
|
## Plugin-contributed log-only events
|
|
583
578
|
|
|
584
|
-
A plugin may declaration-merge extra `SessionEventMap` types. These are **log-only**: NOT `SurfaceEventType`s (they carry no `surfaceOp` and contribute nothing to derived history). Their owner decides whether they belong to an open execution turn or may stand between turns, and enforces any relation in its own invariant companion. The generated [persistence log event catalog](../persistence-catalog.md) enumerates every core and plugin-contributed event
|
|
579
|
+
A plugin may declaration-merge extra `SessionEventMap` types. These are **log-only**: NOT `SurfaceEventType`s (they carry no `surfaceOp` and contribute nothing to derived history). Their owner decides whether they belong to an open execution turn or may stand between turns, and enforces any relation in its own invariant companion. The generated [persistence log event catalog](../persistence-catalog.md) enumerates every core and plugin-contributed event; the compaction seam's `compaction/*` semantics are discussed on [compaction.md](compaction.md).
|
|
585
580
|
|
|
586
|
-
When several events in one plugin-owned family assemble into one Web Client Conversation Node, every start, update, result, resource, or interruption event in that family carries or independently derives the same stable business id. This requirement applies to correlated Node families, not to every Session event; it lets the client group each event without guessing from adjacency or scanning history. See the [Conversation
|
|
581
|
+
When several events in one plugin-owned family assemble into one Web Client Conversation Node, every start, update, result, resource, or interruption event in that family carries or independently derives the same stable business id. This requirement applies to correlated Node families, not to every Session event; it lets the client group each event without guessing from adjacency or scanning history. See the [Conversation subsystem](conversation.md).
|
|
587
582
|
|
|
588
583
|
The hook bridges' `hook/invoked` / `hook/result` pairs (from `@deepseek-ai/dsh-hook-protocol`) correlate by `handlerId`. `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, and `Stop` fire inside the loop's open turn, so their `hook/*` records are turn-enclosed by construction. `SessionStart` gets no `hook/*` record because it runs before turn 1; its context remains pending in the inbox until a waking delivery opens a turn (see [the hook-bridges Agent Note](../../.agents/notes/implemented/feature/2026-06-30-hook-bridges.md)).
|
|
589
584
|
|
|
@@ -593,13 +588,163 @@ What a persistence backend relies on: the durable log persists every event lossl
|
|
|
593
588
|
|
|
594
589
|
The backends that consume this contract are on [persistence.md](persistence.md).
|
|
595
590
|
|
|
591
|
+
## Remote catalog and workspace opening
|
|
592
|
+
|
|
593
|
+
`ModelCatalog` is the Host-generation model directory returned by `session/modelCatalog`: it carries the deployment default, routable provider ids, successful provider groups, and isolated provider failures. It is not derived from one Session and remains separate from Session projections.
|
|
594
|
+
|
|
595
|
+
`SessionOpenWorkspacePathRequest` carries an absolute or workspace-resolved `path`. `SessionOpenWorkspacePathValue` confirms that the Host accepted the native handoff. A Session-aware Client resolves relative paths against its current Session cwd when known; the controller hands the path to the opener unchanged and reports invalid requests, cancellation, and opener failures through the Session Remote error vocabulary.
|
|
596
|
+
|
|
596
597
|
<!-- BEGIN GENERATED cordis-surface (gen-cordis-catalog.ts) — do not edit between markers -->
|
|
597
598
|
|
|
598
599
|
<a id="cordis-surface"></a>
|
|
599
600
|
|
|
600
601
|
## Cordis API
|
|
601
602
|
|
|
602
|
-
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`) —
|
|
603
|
+
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).
|
|
604
|
+
|
|
605
|
+
<a id="ctxsessioncontroller--sessioncontroller"></a>
|
|
606
|
+
|
|
607
|
+
### `ctx.sessionController` — `SessionController`
|
|
608
|
+
|
|
609
|
+
Host service backing the generated `ctx.remote.session` namespace.
|
|
610
|
+
|
|
611
|
+
```ts cordis-catalog
|
|
612
|
+
/**
|
|
613
|
+
* Resolve or resume one ordinary Session for another Host API domain.
|
|
614
|
+
* @param sessionId - Session identity whose Agent owns the operation.
|
|
615
|
+
* @returns the live Agent or the stable Session-domain failure.
|
|
616
|
+
*/
|
|
617
|
+
resolveAgent(sessionId: SessionId): Promise<ApiSessionAgentResult>
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Inspect one attached or persisted Session without activating its Agent.
|
|
621
|
+
* @param sessionId - durable Session identity.
|
|
622
|
+
* @param signal - optional caller cancellation for persistence reads.
|
|
623
|
+
* @returns the current attached state or persisted header and event prefix.
|
|
624
|
+
*/
|
|
625
|
+
inspect( sessionId: SessionId, signal?: AbortSignal, ): Promise<{ meta: SessionHeader; events: SessionEvent[] }>
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Read all visible Session rows without resuming an Agent.
|
|
629
|
+
* @param _request - reserved empty list request.
|
|
630
|
+
* @param signal - cancellation for persistence reads.
|
|
631
|
+
* @returns visible Session summaries ordered by activity.
|
|
632
|
+
*/
|
|
633
|
+
@Remote('list') async list(_request: SessionListRequest, signal: AbortSignal): Promise<SessionListValue>
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Search visible Session content without resuming an Agent.
|
|
637
|
+
* @param request - literal message-content query.
|
|
638
|
+
* @param signal - cancellation for list and search reads.
|
|
639
|
+
* @returns authorized bounded Session search results.
|
|
640
|
+
*/
|
|
641
|
+
@Remote('search') search(request: SessionSearchRequest, signal: AbortSignal): Promise<SessionSearchValue>
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Create or idempotently adopt one ordinary Session.
|
|
645
|
+
* @param request - requested identity, location, and Agent preset.
|
|
646
|
+
* @returns the Session identity and resolved preset when configured.
|
|
647
|
+
*/
|
|
648
|
+
@Remote('create') create(request: SessionCreateRequest): Promise<SessionCreateValue>
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Select one Session-local model after explicitly resuming the Session.
|
|
652
|
+
* @param request - Session identity and requested model selection.
|
|
653
|
+
* @returns the normalized selection installed for the Session.
|
|
654
|
+
*/
|
|
655
|
+
@Remote('selectModel') selectModel(request: SessionSelectModelRequest): Promise<SessionSelectModelValue>
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Describe every currently routable model for Host-generation selectors.
|
|
659
|
+
* @returns provider-grouped models, the deployment default, and isolated provider failures.
|
|
660
|
+
*/
|
|
661
|
+
@Remote('modelCatalog') modelCatalog(): Promise<ModelCatalog>
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Report whether this deployment can hand a Session workspace path to a native desktop.
|
|
665
|
+
* @returns true when the matching open operation is available.
|
|
666
|
+
*/
|
|
667
|
+
@Remote canOpenWorkspacePath(): boolean
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Open one path prepared by a Session-aware caller on the Host desktop.
|
|
671
|
+
* @param request - path after best-effort Session workspace resolution.
|
|
672
|
+
* @param signal - caller lifetime; abort terminates the native command.
|
|
673
|
+
* @returns confirmation after the native opener accepts the path.
|
|
674
|
+
* @throws RemoteError when the request is invalid, cancelled, or the opener fails.
|
|
675
|
+
*/
|
|
676
|
+
@Remote('openWorkspacePath') async openWorkspacePath( request: SessionOpenWorkspacePathRequest, signal: AbortSignal, ): Promise<SessionOpenWorkspacePathValue>
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Rename one Session after explicitly resuming it.
|
|
680
|
+
* @param request - Session identity and proposed title.
|
|
681
|
+
* @returns the accepted title and durable event sequence.
|
|
682
|
+
*/
|
|
683
|
+
@Remote('rename') rename(request: SessionRenameRequest): Promise<SessionRenameValue>
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Fork one cold-readable completed-turn prefix into a new Session.
|
|
687
|
+
* @param request - source Session and optional event anchor.
|
|
688
|
+
* @returns the new Session identity.
|
|
689
|
+
*/
|
|
690
|
+
@Remote('fork') fork(request: SessionForkRequest): Promise<SessionForkValue>
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Admit one prompt after explicitly resuming its Session.
|
|
694
|
+
* @param request - Session identity, prompt content, source metadata, and delivery mode.
|
|
695
|
+
* @param signal - caller cancellation before prompt admission begins.
|
|
696
|
+
* @returns acknowledgement that the Agent accepted the prompt.
|
|
697
|
+
*/
|
|
698
|
+
@Remote('prompt') prompt(request: SessionPromptRequest, signal: AbortSignal): Promise<SessionPromptValue>
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Read one image proven reachable from the addressed Session log.
|
|
702
|
+
* @param request - Session and attachment identities used for authorization.
|
|
703
|
+
* @returns the durable attachment reference and base64-encoded bytes.
|
|
704
|
+
*/
|
|
705
|
+
@Remote('attachment') attachment(request: SessionAttachmentRequest): Promise<SessionAttachmentValue>
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Mutate one still-pending queue occurrence on a live Agent.
|
|
709
|
+
* @param request - Session, queue item, and requested mutation.
|
|
710
|
+
* @returns acknowledgement that the queue mutation was applied.
|
|
711
|
+
*/
|
|
712
|
+
@Remote('updateQueue') updateQueue(request: SessionUpdateQueueRequest): SessionUpdateQueueValue
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Cancel one active Agent turn without dropping its pending inbox.
|
|
716
|
+
* @param request - Session whose active Agent turn is cancelled.
|
|
717
|
+
* @returns acknowledgement that cancellation was requested.
|
|
718
|
+
*/
|
|
719
|
+
@Remote('cancel') cancel(request: SessionCancelRequest): SessionCancelValue
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Read one cold-safe, message-aligned Session history page.
|
|
723
|
+
* @param request - durable address, backward cursor, and page budget.
|
|
724
|
+
* @param signal - cancellation for persistence reads.
|
|
725
|
+
* @returns one chronological page.
|
|
726
|
+
*/
|
|
727
|
+
@Remote('page') page(request: SessionPageRequest, signal: AbortSignal): Promise<SessionPage>
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Follow one Session log from its opening or resume cursor.
|
|
731
|
+
* @param request - durable address and last committed sequence already held by the caller.
|
|
732
|
+
* @param signal - cancellation owned by the Remote stream carrier.
|
|
733
|
+
* @returns a complete opening snapshot followed by gap-free event frames.
|
|
734
|
+
*/
|
|
735
|
+
@Remote({ mode: 'stream' }) follow(request: SessionFollowRequest, signal: AbortSignal): AsyncIterable<SessionFollowFrame>
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Stream a complete live-control baseline followed by replacement frames.
|
|
739
|
+
* @param signal - cancellation owned by the Remote stream carrier.
|
|
740
|
+
* @returns one complete baseline followed by live replacement frames.
|
|
741
|
+
*/
|
|
742
|
+
@Remote({ mode: 'stream' }) control(signal: AbortSignal): AsyncIterable<SessionControlFrame>
|
|
743
|
+
```
|
|
744
|
+
|
|
745
|
+
Types: [SessionHeader](persistence.md) · [SessionId](core.md) · [SessionSearchRequest](session-query.md)
|
|
746
|
+
|
|
747
|
+
Source: [`packages/api/session-controller/src/index.ts`](../../packages/api/session-controller/src/index.ts)
|
|
603
748
|
|
|
604
749
|
<a id="ctxsessions--sessionstore"></a>
|
|
605
750
|
|
|
@@ -735,7 +880,107 @@ fork(source: SessionForkSource, boundary?: number, childSessionId?: SessionId):
|
|
|
735
880
|
|
|
736
881
|
Types: [CreateSessionOptions](persistence.md) · [PrepareSessionOptions](persistence.md) · [SessionId](core.md)
|
|
737
882
|
|
|
738
|
-
Source: [`packages/core/session/src/index.ts
|
|
883
|
+
Source: [`packages/core/session/src/index.ts`](../../packages/core/session/src/index.ts)
|
|
884
|
+
|
|
885
|
+
<a id="api-session-events"></a>
|
|
886
|
+
|
|
887
|
+
### `api-session/*` events
|
|
888
|
+
|
|
889
|
+
<a id="api-sessionactivity--emit"></a>
|
|
890
|
+
|
|
891
|
+
#### `api-session/activity` — emit
|
|
892
|
+
|
|
893
|
+
One user-authored durable message advanced Session list activity.
|
|
894
|
+
|
|
895
|
+
```ts cordis-catalog
|
|
896
|
+
/**
|
|
897
|
+
* One user-authored durable message advanced Session list activity.
|
|
898
|
+
* @mode emit
|
|
899
|
+
* @param sessionId - addressed Session identity.
|
|
900
|
+
* @param updatedAt - durable message time used for list ordering.
|
|
901
|
+
*/
|
|
902
|
+
'api-session/activity'(sessionId: SessionId, updatedAt: number): void
|
|
903
|
+
```
|
|
904
|
+
|
|
905
|
+
Types: [SessionId](core.md)
|
|
906
|
+
|
|
907
|
+
Source: [`packages/api/session-controller/src/types.ts`](../../packages/api/session-controller/src/types.ts)
|
|
908
|
+
|
|
909
|
+
<a id="api-sessionadded--emit"></a>
|
|
910
|
+
|
|
911
|
+
#### `api-session/added` — emit
|
|
912
|
+
|
|
913
|
+
A Session became visible to Session list consumers.
|
|
914
|
+
|
|
915
|
+
```ts cordis-catalog
|
|
916
|
+
/**
|
|
917
|
+
* A Session became visible to Session list consumers.
|
|
918
|
+
* @mode emit
|
|
919
|
+
* @param summary - initial list row for the Session.
|
|
920
|
+
*/
|
|
921
|
+
'api-session/added'(summary: SessionSummary): void
|
|
922
|
+
```
|
|
923
|
+
|
|
924
|
+
Source: [`packages/api/session-controller/src/types.ts`](../../packages/api/session-controller/src/types.ts)
|
|
925
|
+
|
|
926
|
+
<a id="api-sessionerror--emit"></a>
|
|
927
|
+
|
|
928
|
+
#### `api-session/error` — emit
|
|
929
|
+
|
|
930
|
+
One Agent failed outside a durable turn position.
|
|
931
|
+
|
|
932
|
+
```ts cordis-catalog
|
|
933
|
+
/**
|
|
934
|
+
* One Agent failed outside a durable turn position.
|
|
935
|
+
* @mode emit
|
|
936
|
+
* @param sessionId - Agent and Session identity.
|
|
937
|
+
* @param message - user-safe failure chain.
|
|
938
|
+
*/
|
|
939
|
+
'api-session/error'(sessionId: SessionId, message: string): void
|
|
940
|
+
```
|
|
941
|
+
|
|
942
|
+
Types: [SessionId](core.md)
|
|
943
|
+
|
|
944
|
+
Source: [`packages/api/session-controller/src/types.ts`](../../packages/api/session-controller/src/types.ts)
|
|
945
|
+
|
|
946
|
+
<a id="api-sessionremoved--emit"></a>
|
|
947
|
+
|
|
948
|
+
#### `api-session/removed` — emit
|
|
949
|
+
|
|
950
|
+
A Session left the live Host registry.
|
|
951
|
+
|
|
952
|
+
```ts cordis-catalog
|
|
953
|
+
/**
|
|
954
|
+
* A Session left the live Host registry.
|
|
955
|
+
* @mode emit
|
|
956
|
+
* @param sessionId - removed Session identity.
|
|
957
|
+
*/
|
|
958
|
+
'api-session/removed'(sessionId: SessionId): void
|
|
959
|
+
```
|
|
960
|
+
|
|
961
|
+
Types: [SessionId](core.md)
|
|
962
|
+
|
|
963
|
+
Source: [`packages/api/session-controller/src/types.ts`](../../packages/api/session-controller/src/types.ts)
|
|
964
|
+
|
|
965
|
+
<a id="api-sessionstatus--emit"></a>
|
|
966
|
+
|
|
967
|
+
#### `api-session/status` — emit
|
|
968
|
+
|
|
969
|
+
One Agent changed running state.
|
|
970
|
+
|
|
971
|
+
```ts cordis-catalog
|
|
972
|
+
/**
|
|
973
|
+
* One Agent changed running state.
|
|
974
|
+
* @mode emit
|
|
975
|
+
* @param sessionId - Agent and Session identity.
|
|
976
|
+
* @param running - whether the Agent is running.
|
|
977
|
+
*/
|
|
978
|
+
'api-session/status'(sessionId: SessionId, running: boolean): void
|
|
979
|
+
```
|
|
980
|
+
|
|
981
|
+
Types: [SessionId](core.md)
|
|
982
|
+
|
|
983
|
+
Source: [`packages/api/session-controller/src/types.ts`](../../packages/api/session-controller/src/types.ts)
|
|
739
984
|
|
|
740
985
|
<a id="session-events"></a>
|
|
741
986
|
|
|
@@ -764,7 +1009,7 @@ Creation announcement during session publication. A synchronous throw vetoes and
|
|
|
764
1009
|
|
|
765
1010
|
Types: [Scoped](scope.md)
|
|
766
1011
|
|
|
767
|
-
Source: [`packages/core/session/src/index.ts
|
|
1012
|
+
Source: [`packages/core/session/src/index.ts`](../../packages/core/session/src/index.ts)
|
|
768
1013
|
|
|
769
1014
|
<a id="sessiondisposed--emit"></a>
|
|
770
1015
|
|
|
@@ -787,7 +1032,7 @@ Emitted once when an announced session leaves the store, including publication r
|
|
|
787
1032
|
|
|
788
1033
|
Types: [Scoped](scope.md)
|
|
789
1034
|
|
|
790
|
-
Source: [`packages/core/session/src/index.ts
|
|
1035
|
+
Source: [`packages/core/session/src/index.ts`](../../packages/core/session/src/index.ts)
|
|
791
1036
|
|
|
792
1037
|
<a id="sessionevent--emit"></a>
|
|
793
1038
|
|
|
@@ -812,7 +1057,7 @@ Post-commit, fire-and-forget append feed. The listener snapshot resolves before
|
|
|
812
1057
|
|
|
813
1058
|
Types: [Scoped](scope.md)
|
|
814
1059
|
|
|
815
|
-
Source: [`packages/core/session/src/index.ts
|
|
1060
|
+
Source: [`packages/core/session/src/index.ts`](../../packages/core/session/src/index.ts)
|
|
816
1061
|
|
|
817
1062
|
<a id="sessionflush--parallel"></a>
|
|
818
1063
|
|
|
@@ -834,5 +1079,5 @@ Awaited parallel durability checkpoint: every listener runs and the caller await
|
|
|
834
1079
|
|
|
835
1080
|
Types: [Scoped](scope.md)
|
|
836
1081
|
|
|
837
|
-
Source: [`packages/core/session/src/index.ts
|
|
1082
|
+
Source: [`packages/core/session/src/index.ts`](../../packages/core/session/src/index.ts)
|
|
838
1083
|
<!-- END GENERATED cordis-surface -->
|