目录:ACP 协议API 网关与控制器附件启动与插件管理客户端运行时客户端 UI 包上下文压缩上下文注入核心运行时凭据与授权交付物文档处理实验特性宿主扩展反馈通道文件系统目标与计划工具守卫Hooks 扩展宿主服务交互命令作业调度LLM 适配LSP 集成MCP 协议规划模式Agent 预设代码执行运行时运行时诊断沙箱定时调度SDK 与协议会话核心会话检索设置Shell 执行技能溢出存储SSH 远程执行存储子代理子进程终端待办类型契约框架 vendorWeb 访问Webhook工作流工作区
依赖链 · 上游(该插件依赖的前驱):
dsh-client-localedsh-client-resourcesdsh-client-ui-chatdsh-client-ui-conversationdsh-client-ui-primitivesdsh-client-ui-rendererdsh-client-ui-sessiondsh-client-ui-sidebar-rightdsh-client-ui-workspacedsh-sessiondsh-subagentdsh-token-meter
依赖链 · 下游(依赖该插件的节点):
无下游(叶子/被消费端)
同一拓扑层(Layer 15,层次遍历层序):
dsh-client-ui-agent-presetdsh-client-ui-brand-officialdsh-client-ui-commandsdsh-client-ui-directory-picker-browsedsh-client-ui-directory-picker-nativedsh-client-ui-plugin-managerdsh-client-ui-referencedsh-client-ui-scheduledsh-client-ui-sidebar-browserdsh-client-ui-sidebar-documentpreviewdsh-client-ui-sidebar-filesdsh-client-ui-sidebar-terminaldsh-client-ui-skilldsh-client-ui-subagentdsh-client-ui-workflow-rundsh-experimental-client-ui-agent-team
插件信息
| 包名 | @deepseek-ai/dsh-client-ui-subagent |
|---|---|
| 分组 | G06 · 客户端 UI 包 |
| 拓扑层 | Layer 15(层次遍历:被依赖方先于依赖方) |
| 源码路径 | packages/client/ui-subagent |
| 来源层 | L2 web-app bundle(base 之上装配) |
① 实现逻辑
子代理目录、导航与只读 composer 宿主:selectReadOnlySubagent 依据会话 subagent.address.mode 与 parentAvailable 判定是否接管 composer(src/client/index.ts:37-49),apply 经 ctx.slots.inject 向 conversation.session.header.lineage、conversation.session.header.actions、conversation.composer 三处注册组件并注入打开子会话/侧栏动作(src/client/index.ts:74-103)。sidebar-chat 子模块注册 'subagentchat' 资源协议、右侧栏标签类型、sidebar.chat.conversation 槽,并用 SessionProvider 绑定子会话渲染内嵌对话(src/client/sidebar-chat/index.tsx:176-201)。
内部结构动态 DAG(深色主题:橙色=上游依赖 · 绿色=下游依赖 · 棕色=外部seam · 蓝=本插件)
本插件
上游依赖
下游依赖
外部 seam
② 注册/提供(provides)
- slot conversation.session.header.lineage / conversation.session.header.actions 的子代理谱系与目录动作
- slot conversation.composer 的只读子代理 composer 接管
- 资源协议 'subagentchat'(ResourceProvider)与 sidebarRightTabs kind 'subagentchat' 标签类型
- slot sidebar.right.pane.tab key '@deepseek-ai/dsh-client-ui-subagent' 与子槽 sidebar.chat.conversation
③ 依赖(depends_on · 上游前驱)
dsh-client-localeE1+E2
注册 subagent 字典
src/client/index.ts:11 + src/client/index.ts:56 ctx.locale.register
dsh-client-resourcesE1+E2
注册 subagentchat 资源提供者
src/client/sidebar-chat/index.tsx:6 import type + src/client/sidebar-chat/index.tsx:178 ctx.resources.register
dsh-client-ui-conversationE1+E2
复用 ComposerChainProps/ConversationViewsProps 与内嵌 conversation slot
src/client/index.ts:5 import + src/client/sidebar-chat/index.tsx:7 ConversationViewsProps
dsh-client-ui-sidebar-rightE1+E2
打开子代理侧栏资源并注册 subagentchat 标签类型
src/client/index.ts:15 + src/client/sidebar-chat/index.tsx:181 sidebarRightTabs.register
dsh-client-ui-workspaceE1+E2
把子代理会话打开为主视图导航
src/client/index.ts:16 import type + src/client/index.ts:62 ctx.uiWorkspace.openSession
④ 被依赖(dependents · 下游消费者)
无下游(叶子/被消费端)