DAG总览 / 组目录 / G06 客户端 UI 包

dsh-client-ui-subagent · @deepseek-ai/dsh-client-ui-subagent

Layer 15G06L2 web-app
目录:ACP 协议API 网关与控制器附件启动与插件管理客户端运行时客户端 UI 包上下文压缩上下文注入核心运行时凭据与授权交付物文档处理实验特性宿主扩展反馈通道文件系统目标与计划工具守卫Hooks 扩展宿主服务交互命令作业调度LLM 适配LSP 集成MCP 协议规划模式Agent 预设代码执行运行时运行时诊断沙箱定时调度SDK 与协议会话核心会话检索设置Shell 执行技能溢出存储SSH 远程执行存储子代理子进程终端待办类型契约框架 vendorWeb 访问Webhook工作流工作区
依赖链 · 上游(该插件依赖的前驱):
依赖链 · 下游(依赖该插件的节点):
无下游(叶子/被消费端)
同一拓扑层(Layer 15,层次遍历层序):
↑ Layer 14(7 插件)Layer 15↓ Layer 16(11 插件)

插件信息

包名@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)

③ 依赖(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-chatE1
引入 ChatConversationViewNode 等聊天节点类型
src/client/index.ts:12 import type
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-primitivesE1
复用图标、Tooltip、StateDot 等原语
src/client/SubagentHeaderLineage.tsx:12
dsh-client-ui-rendererE1
拉入渲染/槽服务类型合并
src/client/index.ts:13 import type
dsh-client-ui-sessionE1
拉入会话 UI 服务类型合并
src/client/index.ts:14 import type
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
dsh-sessionE1
会话标识类型
src/client/index.ts:4 SessionId
dsh-subagentE1
子代理地址/模式类型
src/client/index.ts:3 SubagentAddress
dsh-token-meterE1
引入 token-meter 客户端类型合并(谱系行展示计量)
src/client/SubagentHeaderLineage.tsx:15 import type

④ 被依赖(dependents · 下游消费者)

无下游(叶子/被消费端)