目录:ACP 协议API 网关与控制器附件启动与插件管理客户端运行时客户端 UI 包上下文压缩上下文注入核心运行时凭据与授权交付物文档处理实验特性宿主扩展反馈通道文件系统目标与计划工具守卫Hooks 扩展宿主服务交互命令作业调度LLM 适配LSP 集成MCP 协议规划模式Agent 预设代码执行运行时运行时诊断沙箱定时调度SDK 与协议会话核心会话检索设置Shell 执行技能溢出存储SSH 远程执行存储子代理子进程终端待办类型契约框架 vendorWeb 访问Webhook工作流工作区
依赖链 · 上游(该插件依赖的前驱):
dsh-api-remotesdsh-api-session-controllerdsh-client-localedsh-client-ui-conversationdsh-client-ui-rendererdsh-client-ui-sessiondsh-llmdsh-sessiondsh-user-questions
依赖链 · 下游(依赖该插件的节点):
同一拓扑层(Layer 12,层次遍历层序):
插件信息
| 包名 | @deepseek-ai/dsh-client-ui-user-questions |
|---|---|
| 分组 | G06 · 客户端 UI 包 |
| 拓扑层 | Layer 12(层次遍历:被依赖方先于依赖方) |
| 源码路径 | packages/client/ui-user-questions |
| 来源层 | L2 web-app bundle(base 之上装配) |
① 实现逻辑
把 QuestionComposer 注册为 conversation.composer 链上的 selector 路由入口:选择器把 owner 货币收窄为 PendingQuestion 载体,并声明 conversation.plan-review.actions 子槽(src/client/index.ts:94-104)。用 ctx.uiSession.registerPendingInteraction 发布待处理交互(plan-review 优先级 2、普通问题 1)(src/client/index.ts:91-93),并通过 ctx.remote.$on('user-questions/request') 挂 waterfall 监听,按作答/取消/委托结算 PendingQuestion(src/client/index.ts:54-80,105-107)。
内部结构动态 DAG(深色主题:橙色=上游依赖 · 绿色=下游依赖 · 棕色=外部seam · 蓝=本插件)
本插件
上游依赖
下游依赖
外部 seam
② 注册/提供(provides)
- slot conversation.composer 的 question/plan-review 呈现与子槽 conversation.plan-review.actions
- SessionPendingInteractionMap 'question' 发布器(ctx.uiSession.registerPendingInteraction)
- remote 事件 user-questions/request 的客户端 waterfall 监听器
③ 依赖(depends_on · 上游前驱)
dsh-api-remotesE1+E2
订阅 Host 的 user-questions/request waterfall
src/client/index.ts:16 import + src/client/index.ts:105 ctx.remote.$on
dsh-api-session-controllerE1+E2
把请求归属到具体会话作用域
src/client/index.ts:17 import + src/client/index.ts:61 sessions.scopeOf
dsh-client-localeE1+E2
注册 question 字典
src/client/index.ts:23 + src/client/index.ts:89 ctx.locale.register
dsh-client-ui-conversationE1
接入 conversation.composer 链与 matched 货币
src/client/index.ts:18 ComposerChainProps
dsh-client-ui-sessionE1+E2
发布待处理问题交互并供 Session UI 消费
src/client/index.ts:20 import type + src/client/index.ts:91 ctx.uiSession.registerPendingInteraction
④ 被依赖(dependents · 下游消费者)
dsh-client-ui-plan
计划卡复用 user-questions 的类型面/交互
src/client/index.ts:15 import type + src/client/PlanCard.tsx:10 import type {}