目录:ACP 协议API 网关与控制器附件启动与插件管理客户端运行时客户端 UI 包上下文压缩上下文注入核心运行时凭据与授权交付物文档处理实验特性宿主扩展反馈通道文件系统目标与计划工具守卫Hooks 扩展宿主服务交互命令作业调度LLM 适配LSP 集成MCP 协议规划模式Agent 预设代码执行运行时运行时诊断沙箱定时调度SDK 与协议会话核心会话检索设置Shell 执行技能溢出存储SSH 远程执行存储子代理子进程终端待办类型契约框架 vendorWeb 访问Webhook工作流工作区
依赖链 · 上游(该插件依赖的前驱):
dsh-api-remotesdsh-client-localedsh-client-ui-plugin-managerdsh-client-ui-primitivesdsh-client-ui-rendererdsh-client-ui-settings
依赖链 · 下游(依赖该插件的节点):
无下游(叶子/被消费端)
同一拓扑层(Layer 16,层次遍历层序):
dsh-client-ui-chatdsh-client-ui-message-feedbackdsh-client-ui-model-selectiondsh-client-ui-permission-presetsdsh-client-ui-settings-agent-loopdsh-client-ui-settings-plugin-inventorydsh-client-ui-settings-shelldsh-client-ui-settings-subagentdsh-client-ui-settings-web-searchdsh-experimental-client-ui-voice-inputdsh-host-directory-picker-auto
插件信息
| 包名 | @deepseek-ai/dsh-client-ui-settings-web-search |
|---|---|
| 分组 | G06 · 客户端 UI 包 |
| 拓扑层 | Layer 16(层次遍历:被依赖方先于依赖方) |
| 源码路径 | packages/client/ui-settings-web-search |
| 来源层 | L2 web-app bundle(base 之上装配) |
① 实现逻辑
浏览器半在 Host 服务 `web-search-deepseek` 命名空间时,把 Web Search 卡片注册进 `plugins.item`(id='web-search' order 40,src/client/index.ts:57-59)。控制器绑定该命名空间的 staged form(src/client/index.ts:48-49),并经 `ctx.remote.$on('credentials/reference-updated')` 在别处写入的密钥变更时刷新凭据态(src/client/index.ts:53-56)——注释说明这是该页能感知 Host 侧凭据更新的唯一信号。node half 为空 apply(src/index.ts:11)。
内部结构动态 DAG(深色主题:橙色=上游依赖 · 绿色=下游依赖 · 棕色=外部seam · 蓝=本插件)
本插件
上游依赖
下游依赖
外部 seam
② 注册/提供(provides)
- settings.webSearch locale 命名空间字典
- plugins.item 槽位条目 id='web-search' (order 40):web 搜索提供者的 key / endpoint / 单次请求预算设置卡片
③ 依赖(depends_on · 上游前驱)
dsh-api-remotesE1+E2
订阅 Host 推送的凭据失效事件以刷新密钥态
src/client/index.ts:18 type-only import + src/client/index.ts:54 ctx.remote.$on('credentials/reference-updated')
dsh-client-localeE1+E2
注册并绑定本页文案
src/client/index.ts:10 type-only import + src/client/index.ts:46 ctx.locale.bind(NS)
dsh-client-ui-plugin-managerE1+E2
Plugins 页拥有 plugins.item 槽位
src/client/index.ts:15 type-only import + src/client/index.ts:57-58 向 plugins.item 注册
dsh-client-ui-primitivesE1
复用共享设置表单原语
src/client/WebSearchCard.tsx:8 import + src/client/locales.ts:3 import
dsh-client-ui-settingsE1+E2
经 configForms 取得命名空间的表单 scope
src/client/index.ts:13 type-only import + src/client/index.ts:48 ctx.configForms.get(WEB_SEARCH_NS)
④ 被依赖(dependents · 下游消费者)
无下游(叶子/被消费端)