Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
26 changes: 22 additions & 4 deletions docs/en/docs/integrations/dsh.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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. The control is not
a Dashboard replacement: clicking it opens connection diagnostics only. Dashboard embedding remains future work.
a Dashboard replacement: clicking it opens connection diagnostics and version controls. Dashboard embedding remains future work.

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
Expand Down Expand Up @@ -168,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 @@ -219,6 +219,24 @@ Updating the plugin is an install-and-restart operation; the existing profile an
preserved. Uninstalling it removes the browser entry, the `/powercontext/status` route, 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, archives, and custom registries retain their existing update workflow.

**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.


## Diagnose the running configuration

Run `/pc doctor` inside the affected DSH session. Its report identifies configuration provenance and checks
Expand Down
20 changes: 18 additions & 2 deletions docs/zh/docs/integrations/dsh.md
Original file line number Diff line number Diff line change
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 @@ -176,6 +176,22 @@ POWERCONTEXT_DSH_OWNER_LOCAL=true dsh web
更新插件是重新安装并重启,保留已有 profile 和连接设置。卸载会移除浏览器入口、`/powercontext/status` 路由、
订阅和定时器;无界面宿主或没有浏览器入口的包继续保留工具和生命周期 hook。

### 检查 PowerContext 更新

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

如果正在运行的 Server 已与目标版本匹配,且 DSH 能在符合条件的 npm 源中确认该版本可用且兼容,图标会变为 **更新**。
点击后,DSH 会在当前 profile 后台安装。请先等待正在运行的会话结束。安装期间可关闭面板,再打开查看进度。
如 DSH 提示重新加载或重启,只有加载新插件后才会显示新的运行版本。如果 registry 尚未提供该版本,请稍后重试。
本地源码链接、压缩包和自定义 registry 安装沿用各自的更新流程。

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


## 诊断运行中的配置

在出现问题的 DSH 会话内运行 `/pc doctor`。报告显示配置来源,分别检查 liveness、readiness、运行能力、
Expand Down
Loading
Loading