@dsh/dsh-web-app (0.0.1-rc.1)
Installation
@dsh:registry=npm config set @dsh:registry=npm install @dsh/dsh-web-app@0.0.1-rc.1"@dsh/dsh-web-app": "0.0.1-rc.1"About this package
@deepseek-ai/dsh-web-app
English | 中文
dsh 浏览器表层组合包。cordis.patch.yml 叠加在 dsh-base 之上:设置 coding persona,插入 Web 宿主行(webserver、API 网关、workspace、投影缓存、存储)与浏览器插件名录,并挂载本包的 web-runtime 粘合插件(配置为 {mode, printUrl, surfaceContext, trustedHosts})。该插件通过 @deepseek-ai/dsh-frontend 的 exports 解析已构建的前端 dist,在客户端模块发现前启用可选的 HMR 行,确保首份开发模式图中包含它的重载接收端,只采样一次依赖 bind 的 LAN 信任信息并将其作为 webRuntime 提供给浏览器信任栅栏和客户端名录,挂载 frontend-static 回退席位所有者,在 surfaceContext 为 true 时注册 Harness 源码与 Web 表层提示词段落,以及 bash 可见的 DSH_WEB_URL/DSH_WEB_MODE 运行时变量,并在 printUrl 为 true 时等自身的 Loader 配置树结算后再打印 dsh web: URL 行,避免兄弟行失败时公告一个已失效的应用。本组合包还持有应用命令行:普通 web-startup 提供方(src/startup.ts)注入 ctx.cmdlineArgs(dsh-cmdline),解析 --host、--port、--dev、可重复的 --trusted-host 以及应用自己的 --help,再提供 webStartup。由 flag 配置的行会注入该服务,并在惰性配置中直接读取它,因此参数解析完成前不会有任何东西绑定端口,dsh --profile web --help 也不会启动服务器。dsh-headless 是同一 base 之上的同级表层,不挂载本组合包。
模型体验
Harness 源码与 Web 表层上下文
模型看到的内容
当 surfaceContext 为 true 时,harness:source 段落标明磁盘上的 Harness 实现,但不会声称它就是工作目录;全局段落 app:web-surface(顺序 −98)则向模型说明 GUI:规范的本地 URL、「this page」指代什么、当前模式下 HMR(热模块替换)/重建的更新约定,以及不要启动替代服务器的指令。DSH_WEB_URL 与 DSH_WEB_MODE 还会连同各自描述出现在受管 bash 环境中,每次调用时从运行中的服务器解析。当它为 false 时,这两个段落和这些变量都不会注册。
Token 影响
每个会话一行源码说明和一段提示词,外加两行受管环境变量;每个进程内保持恒定。
KV Cache 影响
该提示词段落位于系统提示词靠前位置,且在进程整个生命周期内稳定(端口与模式是启动期事实),因此不会使跨轮次缓存失效。
已知限制与延期工作
- 前端 dist 必须已构建:对 dist 的
require.resolve在激活时明确报错并给出构建提示;没有从源码直接服务的回退路径。 lanAddresses是启动期快照:启动后的网卡变化不会重新公告;打印的 LAN URL 始终与配置的信任栅栏一致。
Dependencies
Dependencies
| ID | Version |
|---|---|
| @deepseek-ai/dsh-agent-presets | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-api-remotes | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-app-boot | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-connection | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-hmr | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-locale | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-modules | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-runtime | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-agent-preset | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-command | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-conversation | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-deliverables | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-goal | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-layout | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-model | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-models | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-permission | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-plan | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-question | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-settings | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-settings-general | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-sidebar | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-skill | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-slash | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-subagent | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-theme | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-tool | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-trajectory | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-client-ui-workspace | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-cmdline | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-code-runtime-worker | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-frontend | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-frontend-static | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-host-apiproxy | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-host-directory-picker-auto | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-host-directory-picker-browse | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-host-directory-picker-native | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-session-projection-cache | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-storage | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-storage-domain | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-storage-json | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-workspace | ^0.0.1-rc.1 |
| @deepseek-ai/schemastery | ^3.18.1-rc.1 |
| @dsh/dsh-host-webserver | ^0.0.1-rc.1 |
| commander | ^15.0.0 |
Peer dependencies
| ID | Version |
|---|---|
| @deepseek-ai/cordis | ^4.0.1-rc.1 |
| @deepseek-ai/cordis-plugin-loader | ^1.0.1-rc.1 |
| @deepseek-ai/dsh-bash-env | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-invariants | ^0.0.1-rc.1 |
| @deepseek-ai/dsh-system-prompt | ^0.0.1-rc.1 |