Files
deepseek-harness/packages/interaction/README.zh.md
Tianyi Cui a2aa567371 docs(subsystems): open core.md on agent creation/ownership and the Agent contract; enforce a complete folder index
core.md claimed to be the packages/core reference but opened on repo-wide type patterns and never documented the ownership vocabulary: AgentHandle, CreateAgentOptions, ResumeAgentOptions, and AgentFactory were TYPE_LINK_EXEMPTIONS pointing at a package README, invisible to the folder that calls itself the type reference. The page now reads spine map -> creation and ownership (AgentHandle pasted; the options and factory summarized with links into the generated registry section) -> the Agent handle (AgentStatus, AgentOptions, SteeringOutcome, SteeringReceipt, and SettleReason now pasted; the one settlement prose wall split by topic; delivery vocabulary ordered as a message travels) -> initiator -> interception -> a Sessions summary -> the ToolDefinition pointer -> an explicitly framed repo-wide patterns tail (the ...Map pattern, branded ids). The duplicate SessionEvent paste is gone -- session.md owns it and LINK_MAP follows -- the four ownership types moved from TYPE_LINK_EXEMPTIONS into LINK_MAP -> core.md, and three dead LINK_MAP entries (ContinuationDecision, ContinuationStop, HookContext) no longer name types absent from the source tree. The "what this page owns" meta-section folds into the intro.

The subsystems README index silently lost tasks.md and session-reference.md on both language sides during a base absorption; the rows are restored and scripts/project-doc-site.spec.ts now fails when any page misses either side of the index (proven red on a removed row). tools.md links ToolSchema to its llm-streaming.md declaration instead of calling it core; subagent.md links AgentHandle and CreateAgentOptions.seed to the new section. A new Agent Note records the package-anchored page-scoping decision; the 2026-06-20 catalog note marks its spine-vs-seam rule superseded as the page-scoping rule while keeping the type-equiv mechanism current, and docs/AGENTS.md cites the new note.
2026-08-09 01:34:23 +08:00

1.6 KiB
Raw Blame History

interaction/:人机协作平面

English | 中文

人与运行中的 agent智能体协作所经由的各个 seam——提问、审批、权限预设、命令。这些是产品package由用户直接操作的真实接口。

职责 ctx 键
commands/ 为交互式适配器注册并分派用户命令。 ctx.commands
user-approval/ 协调一次性审批决策。 ctx.approval
permission/ 呈现并持久化面向用户的权限预设。 ctx.permission
user-interaction/ 定义与提供方无关的用户问答 seam。 ctx.userInteraction
tool-ask-user/ 向模型公开用户问题。 (注册到 ctx.tools

这些包通过现有的 agent智能体和会话契约集成而不改变循环。交互式应用提供具体的命令、审批和提问适配器自动化使用 acp/,可运行的演示组合包位于 examples/。产品 dsh CLI命令行界面直接组合这些包。

子系统参考:approval.mdpermission.mduser-interaction.mdcommands.md。仅自动化的 ACP 传输在 acp/SDK 的 JSON-RPC 服务器一半在 scaffold/server,共享 bin 启动胶水在 boot/