目录:ACP 协议API 网关与控制器附件启动与插件管理客户端运行时客户端 UI 包上下文压缩上下文注入核心运行时凭据与授权交付物文档处理实验特性宿主扩展反馈通道文件系统目标与计划工具守卫Hooks 扩展宿主服务交互命令作业调度LLM 适配LSP 集成MCP 协议规划模式Agent 预设代码执行运行时运行时诊断沙箱定时调度SDK 与协议会话核心会话检索设置Shell 执行技能溢出存储SSH 远程执行存储子代理子进程终端待办类型契约框架 vendorWeb 访问Webhook工作流工作区
依赖链 · 上游(该插件依赖的前驱):
依赖链 · 下游(依赖该插件的节点):
无下游(叶子/被消费端)
同一拓扑层(Layer 3,层次遍历层序):
dsh-api-gatewaydsh-commandsdsh-config-editordsh-deepseek-account-platformdsh-experimental-webworker-runtimedsh-hook-protocoldsh-host-frontend-staticdsh-host-open-in-appdsh-llm-pi-aidsh-personadsh-session-log-deepseekdsh-session-persistence-jsonldsh-session-projectiondsh-session-query-sqlitedsh-session-telemetry-oteldsh-skill-badgedsh-skill-filesystemdsh-skill-officedsh-user-approvaldsh-web-fetch-httpdsh-web-search-exadsh-web-search-perplexitydsh-webhook-githubdsh-workspace
插件信息
| 包名 | @deepseek-ai/dsh-host-frontend-static |
|---|---|
| 分组 | G20 · 宿主服务 |
| 拓扑层 | Layer 3(层次遍历:被依赖方先于依赖方) |
| 源码路径 | packages/host/frontend-static |
| 来源层 | L3 其余插件(独立于 bundle 装配的扩展/变体/示例) |
① 实现逻辑
在 webServer 的 fallback 座位注册 SPA 静态服务:非 GET/HEAD 返回 405,解析后越出 distRoot 返回 403,index 与非 index 资产分别处理(src/index.ts:113-139、71-106)。index 响应先经 Connection 的 authorizeIndex 浏览器鉴权,再由 ctx.webServer.renderIndex 注入并加 <base href="./">(src/index.ts:117-120、136)。未知扩展名以 octet-stream 下发,缺失文件返回 404(src/index.ts:94、99-101)。
内部结构动态 DAG(深色主题:橙色=上游依赖 · 绿色=下游依赖 · 棕色=外部seam · 蓝=本插件)
本插件
上游依赖
下游依赖
外部 seam
② 注册/提供(provides)
- webServer 回退座位 (SPA dist 静态托管:index 鉴权+注入、资产 MIME 服务,src/index.ts:121-139)
③ 依赖(depends_on · 上游前驱)
dsh-client-connectionE1+E2
对 index 响应执行浏览器鉴权
package.json:31 peerDep + src/index.ts:20 type import; src/index.ts:136 ctx.connection.authorizeIndex
dsh-host-webserverE1+E2
占用其 fallback 座位并渲染 index 注入
package.json:30 peerDep + src/index.ts:21 type import; src/index.ts:118 ctx.webServer.renderIndex、:121 registerFallback
④ 被依赖(dependents · 下游消费者)
无下游(叶子/被消费端)