目录:ACP 协议API 网关与控制器附件启动与插件管理客户端运行时客户端 UI 包上下文压缩上下文注入核心运行时凭据与授权交付物文档处理实验特性宿主扩展反馈通道文件系统目标与计划工具守卫Hooks 扩展宿主服务交互命令作业调度LLM 适配LSP 集成MCP 协议规划模式Agent 预设代码执行运行时运行时诊断沙箱定时调度SDK 与协议会话核心会话检索设置Shell 执行技能溢出存储SSH 远程执行存储子代理子进程终端待办类型契约框架 vendorWeb 访问Webhook工作流工作区
依赖链 · 上游(该插件依赖的前驱):
dsh-api-remotesdsh-client-localedsh-client-ui-primitivesdsh-client-ui-rendererdsh-client-ui-settingsdsh-host-webserver
依赖链 · 下游(依赖该插件的节点):
同一拓扑层(Layer 12,层次遍历层序):
插件信息
| 包名 | @deepseek-ai/dsh-client-ui-settings-models |
|---|---|
| 分组 | G06 · 客户端 UI 包 |
| 拓扑层 | Layer 12(层次遍历:被依赖方先于依赖方) |
| 源码路径 | packages/client/ui-settings-models |
| 来源层 | L2 web-app bundle(base 之上装配) |
① 实现逻辑
浏览器半向 `settings.section` 注册 Models 页(id='models' order 10,声明 settings.models.provider-card 与 settings.models.footer 子槽,src/client/index.ts:136-146),并向 `settings.onboarding` 注册 welcome-notice(order -100)与 deepseek-official(order 0,声明 settings.models.sign-in 子槽)两个引导步骤(src/client/index.ts:147-159)。它经 `ctx.settingsSchema` 与 `ctx.configForms.describe()` 构造 ModelsSettingsStore/operations(src/client/index.ts:84-88),并订阅 settings/document-updated、credentials/record-updated、credentials/reference-updated、llm/adapters-updated 及 connection/reset 推送事件刷新(src/client/index.ts:121-134)。node half 监听 `webserver/index-inject` 把 credentialOnboarding 开关注入页面全局(src/index.ts:14-21)。
内部结构动态 DAG(深色主题:橙色=上游依赖 · 绿色=下游依赖 · 棕色=外部seam · 蓝=本插件)
本插件
上游依赖
下游依赖
外部 seam
② 注册/提供(provides)
- settings.section 条目 id='models' (order 10):模型/供应商编辑页,声明 settings.models.provider-card(keyed)与 settings.models.footer(list)子槽
- settings.onboarding 条目 id='welcome-notice' (order -100) 与 id='deepseek-official' (order 0,声明 settings.models.sign-in 子槽)
- settings.models locale 命名空间字典(Models 页 + 产品引导文案)
- Host 侧页面全局 ONBOARDING_CONFIG_GLOBAL(credentialOnboarding 开关)
③ 依赖(depends_on · 上游前驱)
dsh-api-remotesE1+E2
订阅 Host 推送的设置/凭据/适配器失效事件
src/client/index.ts:17 type-only import + src/client/index.ts:124-127 ctx.remote.$on(...)
dsh-client-localeE1+E2
注册并绑定 settings.models 字典
src/client/index.ts:13 type-only import + src/client/index.ts:91 ctx.locale.bind(NS)
dsh-client-ui-settingsE1+E2
设置槽声明、settingsSchema/configForms 镜像由 ui-settings 提供
src/client/index.ts:11 type-only import + src/client/index.ts:88 ctx.configForms.describe()
dsh-host-webserverE1+E2
Host 侧向浏览器页面注入引导配置全局
src/index.ts:4 type-only import + src/index.ts:15 ctx.on('webserver/index-inject')