目录:ACP 协议API 网关与控制器附件启动与插件管理客户端运行时客户端 UI 包上下文压缩上下文注入核心运行时凭据与授权交付物文档处理实验特性宿主扩展反馈通道文件系统目标与计划工具守卫Hooks 扩展宿主服务交互命令作业调度LLM 适配LSP 集成MCP 协议规划模式Agent 预设代码执行运行时运行时诊断沙箱定时调度SDK 与协议会话核心会话检索设置Shell 执行技能溢出存储SSH 远程执行存储子代理子进程终端待办类型契约框架 vendorWeb 访问Webhook工作流工作区
依赖链 · 上游(该插件依赖的前驱):
dsh-api-remotesdsh-api-session-controllerdsh-client-localedsh-client-ui-input-triggerdsh-client-ui-primitivesdsh-client-ui-rendererdsh-client-ui-sidebar-rightdsh-client-ui-tooldsh-session
依赖链 · 下游(依赖该插件的节点):
无下游(叶子/被消费端)
同一拓扑层(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-skill |
|---|---|
| 分组 | G06 · 客户端 UI 包 |
| 拓扑层 | Layer 15(层次遍历:被依赖方先于依赖方) |
| 源码路径 | packages/client/ui-skill |
| 来源层 | L2 web-app bundle(base 之上装配) |
① 实现逻辑
在输入触发菜单注册 '/' 的 skill 引用源:构造 InputTriggerSource(trigger='/'、name='skill'、order=2),实现 candidates/warm/lexicon/openReference/onPick(src/client/index.ts:159-226)。目录按 session 单飞缓存并调用 ctx.remote.skills.list RPC,先等待会话初始历史 open 成功(src/client/index.ts:107-141)。同时注册 'tool.call.toolview' 的 'skill' 键 toolview 与 'skill' 字典(src/client/index.ts:80-84),并在 agent-preset/selected 与 connection/reset 时失效缓存(src/client/index.ts:230-231)。
内部结构动态 DAG(深色主题:橙色=上游依赖 · 绿色=下游依赖 · 棕色=外部seam · 蓝=本插件)
本插件
上游依赖
下游依赖
外部 seam
② 注册/提供(provides)
- inputTriggers 源:trigger '/',name 'skill'(候选/预热/词典/打开引用/选中回填)
- slot tool.call.toolview key='skill' 的 SkillRow 专用渲染
- locale 命名空间 'skill' 字典
③ 依赖(depends_on · 上游前驱)
dsh-api-remotesE1+E2
调用 skills/list 与订阅 agent-preset/selected
src/client/index.ts:37 import + src/client/index.ts:86 ctx.remote.skills
dsh-api-session-controllerE1+E2
按 session 保留引用,等待初始历史就绪后取目录
src/client/index.ts:38 import + src/client/index.ts:115 sessions.using
dsh-client-localeE1+E2
注册 skill 字典
src/client/index.ts:44 + src/client/index.ts:80 ctx.locale.register
dsh-client-ui-input-triggerE1+E2
注册斜杠菜单的 skill 候选源
src/client/index.ts:40 import type + src/client/index.ts:227-238 registerSource
dsh-client-ui-sidebar-rightE1+E2
点击 skill 引用时在侧栏打开其文件资源
src/client/index.ts:35 import type + src/client/index.ts:203 ctx.sidebarRight.openResource
④ 被依赖(dependents · 下游消费者)
无下游(叶子/被消费端)