目录:ACP 协议API 网关与控制器附件启动与插件管理客户端运行时客户端 UI 包上下文压缩上下文注入核心运行时凭据与授权交付物文档处理实验特性宿主扩展反馈通道文件系统目标与计划工具守卫Hooks 扩展宿主服务交互命令作业调度LLM 适配LSP 集成MCP 协议规划模式Agent 预设代码执行运行时运行时诊断沙箱定时调度SDK 与协议会话核心会话检索设置Shell 执行技能溢出存储SSH 远程执行存储子代理子进程终端待办类型契约框架 vendorWeb 访问Webhook工作流工作区
依赖链 · 上游(该插件依赖的前驱):
cordis-plugin-loaderdsh-client-modulesdsh-client-ui-dockkitdsh-client-ui-primitivesdsh-client-ui-rendererdsh-host-webserver
依赖链 · 下游(依赖该插件的节点):
同一拓扑层(Layer 2,层次遍历层序):
插件信息
| 包名 | @deepseek-ai/dsh-client-web |
|---|---|
| 分组 | G05 · 客户端运行时 |
| 拓扑层 | Layer 2(层次遍历:被依赖方先于依赖方) |
| 源码路径 | packages/client/web |
| 来源层 | L3 其余插件(独立于 bundle 装配的扩展/变体/示例) |
① 实现逻辑
Web 壳库入口导出 `AppWebEntry`、静态模块表与 index 注入应用器 (src/index.ts:9-12)。`AppWebEntry.run` 等待 boot-ready、从 `__ModuleLoader__` 创建模块系统与 manifest、预取 immediate 层,再以 `bootClient` 组装 Cordis Loader 激活全部客户端条目,最后用 `mountClient` 交接渲染器 (src/boot.ts:49-103)。`bootClient` 把 Loader 挂到模块系统并逐行 create、await,随后 `assertEntriesActive` 审计失败/待服务条目并抛聚合错误 (src/boot-client.ts:36-89);`mountClient` 以 `uiRenderer` 依赖 fiber 挂载应用 (src/mount.ts:19-24)。
内部结构动态 DAG(深色主题:橙色=上游依赖 · 绿色=下游依赖 · 棕色=外部seam · 蓝=本插件)
本插件
上游依赖
下游依赖
外部 seam
② 注册/提供(provides)
- AppWebEntry (Web 壳启动入口:模块系统+HMR 交接+应用挂载)
- 客户端静态模块表与平台模块词表 (PLATFORM_MODULES/PRELOADED_CLIENT_EXTERNALS)
- bootClient/assertEntriesActive/mountClient 组装与激活审计
- applyIndexInjections (消费 webserver index 注入表)
③ 依赖(depends_on · 上游前驱)
cordis-plugin-loaderE1+E2
在浏览器端挂载 Loader 并逐行激活客户端插件
src/boot-client.ts:8 + src/boot-client.ts:38 ctx.plugin(Loader) + src/boot-client.ts:40 loader.internal
dsh-client-ui-rendererE1+E2
交接挂载点给 UI 渲染器,随其替换重挂
src/mount.ts:7 + src/mount.ts:20 ctx.inject(['uiRenderer'])
④ 被依赖(dependents · 下游消费者)
dsh-experimental-webworker-runtime
复用 Client web 侧的 index injection 定义
src/client/apply-injections.ts:2 import '@deepseek-ai/dsh-client-web/injections'