brittanistrehlowll-oss/dsh-control-center--packages-dsh-client ↗★ 1
@dsh-control-center/dsh-client
适用于 Windows 本地安装的 DeepSeek Harness 的控制面板与进程守护客户端。
AI 分析
核心用途是为 Windows 用户提供 DSH 进程的健康检查、崩溃恢复、诊断日志及更新预检等控制台服务。适合在 Windows 环境下本地部署 DSH、需要稳定进程守护与诊断工具的用户。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗DSH Control Center
Windows-first control plane for a locally installed DeepSeek Harness (DSH).
V1.1 keeps the existing Legacy Watchdog (dsh-controller on
127.0.0.1:3081 + external watchdog script) as the DSH process owner. Control
Center is a Supervisor + Control Plane: discovery, read-only health,
operation journal, crash recovery, redacted snapshots, diagnostics, update
preflight, and (behind gates) a thin Electron shell. It never modifies the DSH
runtime or the existing plugin repositories.
Status: V1.1 implementation in progress. Checkpoint A is the current gate. Pilot builds are unsigned until a Windows code-signing certificate exists.
What makes this different from a naive wrapper
Every protocol assumption in this repo was verified against a live
0.1.0-rc.7 DSH (2026-08-18), not copied from docs:
| Real DSH surface | Shape | Used for |
|---|---|---|
GET :3080/api/system/health | {ok, ready, bootId, pid, uptime, …} | DSH discriminator + per-boot restart evidence |
GET :3081/api/status | {state, bootId, pid, uptime, instanceId} | Legacy controller corroboration |
POST :3080/api/session.list | RPC envelope → server-response | Read-only recent sessions |
GET :3080/ | HTML with window.__DSH_BOOT__.rev | Boot-leak check (rev is NOT per-boot) |
There is no /__dsh/control/fingerprint — earlier drafts assumed one; the
code now probes what DSH actually answers.
Non-goals (V1.1)
- No
OwnedRuntimeAdapter— no direct process ownership. - No process killing / arbitrary port takeover.
- No modification of the DSH runtime or the three legacy plugin repos
(
dsh-lifecycle,dsh-quota-panel,dsh-pet-shura). - No database; snapshots are flat JSON files.
- No prompt/assistant/tool/shell/credential content ever persisted or rendered.
Workspace
apps/supervisor runnable supervisor entry (read-only first round)
apps/control-surface gated Electron-shell placeholder (Checkpoint B/C)
packages/control-contract all V1.1 Zod schemas (the contract)
packages/operation-journal append-only operations.jsonl + atomic JSON
packages/runtime-discovery real-surface probing + identity + ownership
packages/snapshot-store atomic snapshots, last-good, sensitive scan
packages/security redaction + secret detection
packages/diagnostics PASS/WARN/FAIL/UNKNOWN across subsystems
packages/dsh-client read-only RPC client (bounded, redacted)
packages/quota-adapter fixed trusted-endpoint quota pipeline
packages/update-provider official-source verify + compatibility + rollback
packages/supervisor-core single-instance lock, journal recovery, reconcile
adapters/lifecycle/legacy-watchdog ONLY place knowing 3080/3081/markers
tests/fake-runtime fake DSH mirroring the real surface
Quick start
pnpm install --frozen-lockfile
pnpm test # build + vitest
pnpm verify:contract
pnpm scan:secret # no credentials/cookies/prompts in tracked state
pnpm scan:path # no absolute local paths in committed files
Read-only first round (Checkpoint A)
The supervisor entry performs only the allowed first-round actions: identify
DSH, read version, read fingerprint, confirm ownership === legacy, and a
Legacy Adapter dry-run. It never stops or restarts DSH.
pnpm --filter @dsh-control-center/supervisor start -- --state-dir "%LOCALAPPDATA%\DSHControlCenter\state" --dsh-logs-dir ""
Docs
- docs/PLAN.md — frozen V1.1 plan + optimizations
- docs/WORK-INVENTORY.md — what exists / what's next
- docs/CHECKPOINTS.md — Checkpoints A/B/C acceptance
- docs/decisions/ — ADR-001..004
CI
The workflow file lives at .github/workflows/ci.yml in the source checkout
but is not committed to this repository yet: the publishing token lacks the
GitHub workflow scope (GitHub refuses PAT pushes that create/update workflow
files without it). To enable CI: add the file via a pull request made by an
account/token that has workflow scope, or grant the scope to the publishing
token. The workflow runs pnpm build, pnpm test, verify:contract,
scan:secret, scan:path, hash:artifacts on windows-latest + Node 24.
Repository topics
dsh-plugin, deepseek-harness, deepseek, control-center
License
MIT.