Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 29 additions & 11 deletions docs/en/docs/integrations/dsh.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,17 @@ native MCP discovery before validating capture and recall.
The same package also exposes an independent browser entry, `./client`. After restart, DSH Web and Desktop show a
PowerContext status control above the account area. If the control is absent, the host did not load the browser
entry; existing tools and lifecycle behavior remain available, so this is not a Server failure. Click the control
for connection diagnostics and the **Open Dashboard** action. With a selected conversation, the existing Dashboard
opens in DSH's right sidebar.
for connection diagnostics, version controls, and the **Open Dashboard** action. With a selected conversation,
the existing Dashboard opens in DSH's right sidebar.

The npm version follows the PowerContext Release: `1.6.0rc1` maps to `1.6.0-rc.1`, with equivalent `alpha` and
`beta` suffixes. Stable releases use `latest`; prereleases use `next`. Verify the selected npm version exists
before installation. Local `.tgz` installation verifies the archive path, not npm or mirror availability.

## Install matching Server and plugin versions

Install DeepSeek Harness Web or Desktop. The latest official release checked for this implementation is
`0.2.2-rc.1` (a prerelease published on 2026-11-04); the P1/P2 Web and Desktop bundled-runtime acceptance was run
against that exact package. The deterministic SDK runtime contract tests remain pinned to their older fixture.
Install DeepSeek Harness Web or Desktop. The P1/P2 Web and Desktop bundled-runtime acceptance was run against
the official `0.2.2-rc.1` prerelease (published on 2026-11-04). The deterministic SDK runtime contract tests remain pinned to their older fixture.
Do not infer support for another DSH release from this result. Choose one PowerContext installation path and keep
the Server and plugin together.

Expand Down Expand Up @@ -169,13 +168,13 @@ The sidebar control appears above the account area. Its color and accessible lab
| Green | Liveness, readiness, and the required PreparedContext capability were verified |
| Red | Connection, DSH authentication, or a required capability failed |

Clicking the control opens a read-only diagnostics panel in Simplified Chinese by default. The language icon
Clicking the control opens a diagnostics panel in Simplified Chinese by default. The language icon
switches to English; an explicit choice persists in the current browser's local storage, with Chinese as the
fallback. The compact view shows connection state, Server address, workspace and Scope. Expand **Technical details**
for the conversation ID, deployment mode, authentication source (never the credential), readiness dependencies,
context schema and automatic-path observations.
The footer reads `package_version` from `GET /v1/server-info` through the Host and shows the current Server package
version. Unsupported metadata endpoints, failed reads or expired connection observations show **Unknown**, never
The footer shows the running plugin version. **Technical details** shows the connected Server's package version
from `GET /v1/server-info`. Unsupported metadata endpoints, failed reads or expired connection observations show **Unknown**, never
the plugin version or API contract version. The bounded metadata read does not determine readiness.
The panel reuses the same in-memory `RuntimeStatus` as `/pc`, rather than reconstructing history from logs.
It never calls a model, sends a diagnostic prompt, or polls `/pc doctor`.
Expand Down Expand Up @@ -216,9 +215,28 @@ prints the launch token, Authorization value, or a bearer header. A conversation
session and invalidates responses from the previous selection. With no conversation, the panel says so and does
not create one.

Updating the plugin is an install-and-restart operation; the existing profile and connection settings are
preserved. Uninstalling it removes the browser entry, the `/powercontext/status` and `/powercontext/dashboard` routes, subscriptions, and
timers. A headless host or a package without the browser entry keeps the tools and lifecycle hooks.
Updating and restarting the plugin preserves the existing profile and connection settings. Uninstalling it removes
the browser entry, the `/powercontext/status`, `/powercontext/dashboard`, and `/powercontext/updates` routes,
subscriptions, and timers. A headless host or a package without the browser entry keeps the tools and lifecycle hooks.

### Check for PowerContext updates

The local DSH Host checks published PowerContext releases shortly after startup and every hour, even when the panel
is closed or the Server is offline. To check immediately, use the refresh icon in the version footer. The footer
links to the release notes, and the control's tooltip describes the check or installation state. Checks never install
an update. The default channel is stable; set `updateChannel: preview` in the plugin patch to include prereleases,
or set `updateHold: true` to keep the installed plugin version.

When the matching Server is already running and DSH can verify the exact compatible package on an eligible npm source,
the icon becomes **Update**. Select it to let DSH install the plugin in the current profile. Finish active turns first.
You can close the panel while installation runs; reopen it to check progress. If DSH asks for a reload or restart,
the running version changes only once the new plugin loads. If the registry does not have the package yet, check again later. Linked
checkouts, Git installs, archives, and custom registries retain their existing update workflow. Tests cover the
npm update capability reported by DSH `0.2.2-rc.2` using a simulated plugin manager. They do not verify installation
from the public npm registry or the full workflow on a real rc.2 host.

**Technical details** links to the [Server upgrade guide](../get-started/install-and-run.md#update-or-replace-an-installation).
Use the deployment's supported process for updating, restarting, and, when required, migrating its database.

## Open the Dashboard in DSH

Expand Down
31 changes: 23 additions & 8 deletions docs/zh/docs/integrations/dsh.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ status: community

同一个包还导出独立的浏览器入口 `./client`。重启后,DSH Web 和 Desktop 会在账号区域上方显示 PowerContext
状态控件。没有显示时说明宿主没有加载浏览器入口;已有工具和生命周期行为仍可用,因此这不是 Server 故障。
点击控件可查看连接诊断,并选择“打开 Dashboard”;选中会话时,现有 Dashboard 会在 DSH 右侧栏打开。
点击控件可查看连接诊断、检查版本更新,并选择“打开 Dashboard”;选中会话时,现有 Dashboard 会在 DSH 右侧栏打开。

npm 版本跟随 PowerContext Release:`1.6.0rc1` 对应 `1.6.0-rc.1`,alpha、beta 同样转换。
正式版本使用 `latest` 标签,预发布版本使用 `next`;安装前先确认目标 npm 版本已经发布。
本次实现验收使用的官方最新版本是 `0.2.2-rc.1`(2026-11-04 发布的预发布版);只在对应真实 Web 和
Desktop 自带 runtime 上验证过,不能据此推断其他 DSH 版本兼容。
P1/P2 在官方 `0.2.2-rc.1`(2026-11-04 发布的预发布版)的 Web 和 Desktop 自带 runtime 上验收;
不能据此推断其他 DSH 版本兼容。

## 启动 PowerContext Server

Expand Down Expand Up @@ -135,10 +135,10 @@ Web 和 Desktop 共用已保存的 `hosts.dsh` 连接设置及 `$DSH_HOME/powerc
| 绿色 | 已通过 liveness、readiness 和所需 PreparedContext 能力 |
| 红色 | 连接、DSH 认证或必要能力失败 |

点击后打开只读诊断面板,默认使用简体中文。右上角语言图标可切换 English;明确选择会保存在当前浏览器的
点击后打开诊断面板,默认使用简体中文。右上角语言图标可切换 English;明确选择会保存在当前浏览器的
本地存储中,无法读取偏好时回退到中文。默认视图保留连接状态、Server 地址、工作目录和 Scope;会话 ID、
部署方式、认证配置来源(不显示认证值)、就绪依赖、context schema 和自动处理观测放在可展开的“技术详情”中。
页脚通过 Host 读取 `GET /v1/server-info` 的 `package_version`,显示当前 Server 包版本。旧 Server 不支持该接口、
页脚显示正在运行的 DSH 插件版本。“技术详情”从 `GET /v1/server-info` 读取连接的 Server 包版本。旧 Server 不支持该接口、
读取失败或连接观测过期时显示“未知”,不会替换为插件版本或 API 合约版本。版本读取有界且不影响就绪判断。
面板复用 `/pc` 使用的内存 `RuntimeStatus`,不从日志重建历史,也不调用模型、发送诊断 prompt 或轮询 `/pc doctor`。

Expand Down Expand Up @@ -173,9 +173,24 @@ POWERCONTEXT_DSH_OWNER_LOCAL=true dsh web
不同诊断。面板只展示允许字段,不打印启动 token、Authorization 值或 Bearer header。切换会话会更新观测会话并
丢弃上一会话的迟到响应;没有会话时如实显示,不创建会话。

更新插件是重新安装并重启,保留已有 profile 和连接设置。卸载会移除浏览器入口、`/powercontext/status` 和
`/powercontext/dashboard` 路由、
订阅和定时器;无界面宿主或没有浏览器入口的包继续保留工具和生命周期 hook。
更新并重启插件会保留已有 profile 和连接设置。卸载会移除浏览器入口、`/powercontext/status`、
`/powercontext/dashboard` 和 `/powercontext/updates` 路由、订阅和定时器;无界面宿主或没有浏览器入口的包继续保留工具和生命周期 hook。

### 检查 PowerContext 更新

本机 DSH Host 启动后会检查一次 PowerContext 的正式发布版本,之后每小时检查一次。面板关闭或 Server 离线时也会检查。
要立即检查,可点击页脚的刷新图标。页脚提供发布说明链接,按钮的提示文字会说明检查或安装状态。
检查不会自动安装。默认仅检查稳定版本;可在插件补丁中设置 `updateChannel: preview` 以包含预览版本,
或设置 `updateHold: true` 以锁定当前插件版本。

如果正在运行的 Server 已与目标版本匹配,且 DSH 能在符合条件的 npm 源中确认该版本可用且兼容,图标会变为 **更新**。
点击后,DSH 会在当前 profile 后台安装。请先等待正在运行的会话结束。安装期间可关闭面板,再打开查看进度。
如 DSH 提示重新加载或重启,只有加载新插件后才会显示新的运行版本。如果 registry 尚未提供该版本,请稍后重试。
本地源码链接、Git、压缩包和自定义 registry 安装沿用各自的更新流程。测试用模拟的插件管理器覆盖了
DSH `0.2.2-rc.2` 报告的 npm 更新能力,尚未验证从公共 npm registry 安装,也未在真实 rc.2 宿主上验证完整流程。

“技术详情”提供 [Server 升级指引](../get-started/install-and-run.md#更新或替换安装)。请按当前部署方式更新和重启
Server,并在需要时按现有流程迁移数据库。

## 在 DSH 中打开 Dashboard

Expand Down
Loading
Loading