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

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

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

插件信息

包名@deepseek-ai/dsh-client-ui-tool
分组G06 · 客户端 UI 包
拓扑层Layer 10(层次遍历:被依赖方先于依赖方)
源码路径packages/client/ui-tool
来源层L2 web-app bundle(base 之上装配)

① 实现逻辑

注册整棵工具调用树与内建原子 toolview:apply 向 'conversation.chat.node' 注册 key='tool-call' 的 ToolCallTree,并声明子槽 'tool.call.toolview' 与参数前缀 hook(src/client/apply.ts:35-46);随后用 ctx.plugin 挂载 bash/read/read-image/file-mutation/search/web/todo/details/ask-question 九个 toolview 模块(src/client/apply.ts:48-56)。各 toolview 模块各自通过 slots.inject/register 注册按工具名分发的 keyed 视图,模型层从原始 call/result 事件派生卡片。

内部结构动态 DAG(深色主题:橙色=上游依赖 · 绿色=下游依赖 · 棕色=外部seam · 蓝=本插件)
本插件 上游依赖 下游依赖 外部 seam

② 注册/提供(provides)

③ 依赖(depends_on · 上游前驱)

dsh-api-remotesE1+E2
提供 Host home 事实用于 POSIX ~ 显示
src/client/apply.ts:3 import + src/client/apply.ts:31 ctx.remote.$host
dsh-client-localeE1
引入本地化命名空间类型
src/client/contract/slots.ts:11 import type
dsh-client-ui-chatE1
复用 AssistantChatData/ToolResultNode 等工具视图数据契约
src/client/contract/slots.ts:9 import type
dsh-client-ui-conversationE1
引入 MessageImageLoader/OpenFileOptions 与 conversation 节点类型
src/client/apply.ts:6 import + src/client/apply.ts:10
dsh-client-ui-primitivesE1
复用对话卡片原语与标签
src/client/tool/models/tool-call-model.ts:12 + src/client/tool/toolviews/todo-row.tsx:2
dsh-client-ui-rendererE1
拉入槽/渲染服务类型合并
src/client/apply.ts:7 import type
dsh-client-ui-sessionE1
拉入会话 UI 服务类型合并
src/client/apply.ts:8 import type
dsh-spill-policyE1
渲染输出溢出/截断提示 notice
src/client/tool/models/inspection-details-model.ts:3 + terminal-card-model.ts:5
dsh-toolsE1
复用工具类型(todo 历史)
src/client/tool/models/todo-history.ts:2 import type

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

dsh-client-ui-attachment
占据工具调用图片槽
src/client/index.ts:6 merge + src/client/index.ts:30 ctx.slots.inject('tool.call.images')
dsh-client-ui-cordis
为 cordis_* 工具调用提供 tool view 卡片渲染
src/client/index.ts:117-136 tool.call.toolview 注册 + src/client/CordisActionRow.tsx:7 import
dsh-client-ui-deliverables
present 工具行视图
src/client/PresentRow.tsx:4 + src/client/index.ts:82 ctx.slots.inject('tool.call.toolview')
dsh-client-ui-schedule
复用工具视图类型/卡片
src/client/index.ts:38 import type + src/client/ScheduleCreateCard.tsx:3
dsh-client-ui-skill
复用 tool.call.toolview 的 props 类型契约
src/client/SkillRow.tsx:5 ToolCallViewProps