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

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

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

插件信息

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

① 实现逻辑

apply 先注册 planDefinition 为会话节点定义、注册 plan 资源 provider、再向 ctx.sidebarRightTabs 注册 plan/preview 页型(src/client/index.ts:63-71),使提交的计划可从日志重建为右侧预览。随后注册五个界面面:Turn 末尾的 PlanCards(src/client/index.ts:79)、review 动作(index.ts:97)、侧栏 pane.tab/title(index.ts:109/112)与 composer 的 PlanChip(index.ts:116)。计划身份由 submittedPlan 从 tool/call 或 PTC 事件解析出 callId 与首行标题(src/client/plan.ts:33-58),再用 dsh-resource://plan/... 地址编解码做持久化(src/client/plan.ts:65-107);退出计划模式走 remote.commands.execute('/plan off')(src/client/index.ts:116-124)。

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

② 注册/提供(provides)

③ 依赖(depends_on · 上游前驱)

dsh-api-remotesE1+E2
ctx.remote 与 Remote 转发事件面
src/client/index.ts:2 import + src/client/index.ts:64 ctx.remote.session
dsh-api-session-controllerE1+E2
Session 地址与投影类型
src/client/index.ts:13 import remote + src/client/plan-resource.ts:3 import types
dsh-client-localeE2
注册 plan 文案
src/client/index.ts:8 import type + src/client/index.ts:59 ctx.locale.register(NS)
dsh-client-resourcesE1+E2
注册计划资源 provider
src/client/index.ts:17 import type + src/client/index.ts:64 ctx.resources.register
dsh-client-ui-chatE1+E2
Chat 节点类型与标准来源面
src/client/index.ts:14 import type {} + src/client/plan-definition.ts:3 import type { ChatNode }
dsh-client-ui-conversationE2
使用会话 UI 的 Turn 末尾槽与 uiConversation 事件注册面
src/client/index.ts:6 import type + src/client/index.ts:79 slots.inject('conversation.chat.turnTail')
dsh-client-ui-primitivesE1
复用 Markdown/图标/纯文本提取
src/client/index.ts:18 import { extractMarkdownPlainText } + src/client/PlanCard.tsx:3
dsh-client-ui-rendererE1+E2
ctx.slots 槽注册表
src/client/index.ts:11 import type + src/client/index.ts:52 inject 'slots'
dsh-client-ui-sessionE1+E2
Session 绑定解析与标准来源
src/client/index.ts:12 import type + src/client/index.ts:80 ctx.sessions.binding
dsh-client-ui-sidebar-rightE1+E2
打开计划资源与注册预览页型
src/client/index.ts:16 import type + src/client/index.ts:74 ctx.sidebarRight.openResource
dsh-client-ui-user-questionsE1+E2
计划卡复用 user-questions 的类型面/交互
src/client/index.ts:15 import type + src/client/PlanCard.tsx:10 import type {}
dsh-plan-modeE1
引入 plan SessionProjectionMap 声明以使用投影
src/client/index.ts:10 import type {}
dsh-sessionE1
会话身份类型
src/client/plan.ts:3 import type { SessionId }
dsh-toolsE1
工具结果类型
src/client/plan-definition.ts:2 import type

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

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