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

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

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-goal
分组G06 · 客户端 UI 包
拓扑层Layer 17(层次遍历:被依赖方先于依赖方)
源码路径packages/client/ui-goal
来源层L2 web-app bundle(base 之上装配)

① 实现逻辑

GoalBar 停靠条:apply 先在 ctx.uiConversation.events 注册 goal-command-input 定义、注册 goal 字典,再把 GoalCommandInputView 以 key 'command-input' 注册进 'conversation.chat.node' (src/client/index.ts:68-75),并把 GoalDock 以 order 10 注册进 'conversation.input.dock' (src/client/index.ts:92-144)。注入面为每会话建 createGoalActivationSource(读 session.projections.faceOf('goal') 并订阅 goal/activation-changed 与 connection/reset),再经 ctx.remote.goals 暴露 edit/pause/resume/clear 四个携带投影 CAS ref 的改动动词 (src/client/index.ts:97-142; src/client/slots.ts:47-63)。宿主半为空 apply (src/index.ts:9)。

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

② 注册/提供(provides)

③ 依赖(depends_on · 上游前驱)

dsh-api-remotesE1+E2
目标 Remote 读取与 CAS 改动
src/client/index.ts:15 ctx.remote merge + src/client/index.ts:112-140 ctx.remote.goals.get/edit/pause/resume/clear
dsh-api-session-controllerE2
保留会话并在初始历史打开后访问 Host
src/client/index.ts:17 merge + src/client/index.ts:98-107 sessions.binding/using
dsh-client-localeE1+E2
注册 goal 字典
src/client/index.ts:23 merge + src/client/index.ts:69 ctx.locale.register(NS)
dsh-client-ui-chatE2
依赖 Chat 声明的 conversation.chat.node 槽
src/client/index.ts:19 merge + src/client/index.ts:71 slots.inject('conversation.chat.node')
dsh-client-ui-conversationE2
注册 goal 命令输入节点定义并占用 input.dock 槽
src/client/index.ts:21 merge + src/client/index.ts:68 ctx.uiConversation.events.register
dsh-client-ui-primitivesE1
命令输入视图基础组件
src/client/GoalCommandInputView.tsx:2 import @deepseek-ai/dsh-client-ui-primitives
dsh-client-ui-rendererE1
引入 slots 服务声明
src/client/index.ts:25 merge
dsh-client-ui-sessionE1
声明 Session 标准 useProjection 座位
src/client/index.ts:27 merge (useProjection 标准位)
dsh-commandsE1
goal 命令输入节点类型
src/client/goal-command-input.ts:2-3 import @deepseek-ai/dsh-commands
dsh-goalE1
目标投影与目标标识类型
src/client/GoalBar.tsx:12 + src/client/slots.ts:12 import GoalProjection/GoalId from @deepseek-ai/dsh-goal/client
dsh-sessionE1
会话标识类型
src/client/index.ts:12 import SessionId from @deepseek-ai/dsh-session/types

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

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