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

dsh-client-ui-settings-account · @deepseek-ai/dsh-client-ui-settings-account

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

① 实现逻辑

仅在桌面渲染器下生效(apply 开头检测 globalThis.dshDesktop,src/client/index.ts:42)。桌面半 src/index.ts 注册 webserver/index-inject 以注入联系方式配置(src/index.ts:50)。客户端核心是 account 状态流:订阅 ctx.remote.$stream({name:'account'}),逐帧 publish 账户视图并在首次登录成功时初始化默认模型(src/client/index.ts:150-176);refresh 并行读 profile/balance,notices 控制器读/确认未通知奖励(index.ts:64-93)。UI 面注册 settings.launcher(AccountMenu)、settings.section(登录后才有 AccountSection,index.ts:265-282)、settings.models.sign-in 的 AccountOnboarding、shell.quota-notice 的 AccountQuotaNotice,以及桌面引导与原生平台 overlay(index.ts:230-260)。

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

② 注册/提供(provides)

③ 依赖(depends_on · 上游前驱)

dsh-api-remotesE1+E2
调用 account/session Remote 与订阅转发事件
src/client/index.ts:10 import + src/client/index.ts:107 ctx.remote.account.getProfile
dsh-client-localeE2
注册账户文案
src/client/index.ts:4 import + src/client/index.ts:44 ctx.locale.register('settings.account')
dsh-client-ui-chatE1+E2
复用 chat 的类型面并写 ui-chat 设置(transcriptView/performanceUsage)
src/client/AccountQuotaNotice.tsx:5 import + src/client/index.ts:2 import type { TranscriptViewMode }
dsh-client-ui-layoutE1
壳层布局类型面
src/client/index.ts:9 import type + src/client/AccountPlatformHost.tsx:2 import
dsh-client-ui-primitivesE1
复用按钮/图标等控件
src/client/AccountAvatar.tsx:3 import + src/client/AccountMenu.tsx:5
dsh-client-ui-rendererE1+E2
ctx.slots 槽注册表
src/client/index.ts:6 import type + src/client/index.ts:40 inject 'slots'
dsh-client-ui-settingsE1+E2
读/写 onboarding 等设置命名空间
src/client/index.ts:5 import + src/client/index.ts:213 ctx.configForms.get
dsh-client-ui-settings-modelsE1
登录引导复用模型设置区类型
src/client/AccountOnboarding.tsx:4 import
dsh-client-ui-themeE1+E2
主题区分账户界面外观
src/client/AccountSection.tsx:7 import + src/client/index.ts:180 ctx.theme.getTheme
dsh-host-webserverE1+E2
向 webserver 注入账户联系方式配置
src/index.ts:3 import + src/index.ts:50 ctx.on('webserver/index-inject')
dsh-settingsE1
Host 侧设置命名空间类型/接口
src/index.ts:4 import

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

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