mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
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.
1.6 KiB
1.6 KiB
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.md、permission.md、user-interaction.md与 commands.md。仅自动化的 ACP 传输在 acp/,SDK 的 JSON-RPC 服务器一半在 scaffold/server,共享 bin 启动胶水在 boot/。