dsh-drydock 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -1,19 +1,31 @@
1
1
  # dsh-drydock (formerly dsh-plugin-manager-pro)
2
2
 
3
- > **Archival note (2026-11-24)**: this is the **full English text of the v0.9.1 era**, not the manual for the current version —
4
- > statements such as "current version 0.9.1" / "latest on npm" describe the time of writing.
5
- > The working copy is **1.0.0** (npm package renamed to **`dsh-drydock`**; the old name `dsh-plugin-manager-pro` will get a deprecation notice but will not be deleted); the current Chinese README is [README.md](README.md), the full v0.9.1-era Chinese text is [docs/README-full.md](docs/README-full.md), and the release process is [docs/RELEASING.md](docs/RELEASING.md).
3
+ > **Version of record: 1.0.3** — this file is the English README for 1.0.3, not an archive of the v0.9.1 era.
4
+ > The Chinese README is [README.md](README.md), the full v0.9.1-era Chinese text is [docs/README-full.md](docs/README-full.md), release notes are in [docs/releases/](docs/releases/), and the release process is [docs/RELEASING.md](docs/RELEASING.md).
6
5
 
7
6
  > A local plugin manager for [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness): a **standalone plugin page** (visual plugin management) plus a **standalone brick-rescue toolchain**.
8
7
 
9
8
  ![badge](https://img.shields.io/badge/dsh-0.1.7+-blue) ![license](https://img.shields.io/badge/license-MIT-green) ![version](https://img.shields.io/npm/v/dsh-drydock?color=orange) ![npm](https://img.shields.io/npm/dt/dsh-drydock)
10
9
 
11
- > Community plugin — not an official DSH package. npm: `dsh-drydock` (formerly `dsh-plugin-manager-pro`, which will be marked deprecated but not deleted) · GitHub: [nonentity303/dsh-drydock](https://github.com/nonentity303/dsh-drydock) · Cross-platform (Windows / macOS / Linux).
10
+ > Community plugin — not an official DSH package. npm: `dsh-drydock` (formerly `dsh-plugin-manager-pro`, which is **deprecated** on npm but not deleted; it is kept for installing historical versions) · GitHub: [nonentity303/dsh-drydock](https://github.com/nonentity303/dsh-drydock) · Cross-platform (Windows / macOS / Linux).
12
11
  >
13
- > **Published release 1.0.0** (npm `latest`, under the new package name `dsh-drydock`).
14
- > Check what is published any time with `npm view dsh-drydock version`; tags: <https://github.com/nonentity303/dsh-drydock/tags>.
12
+ > **Current version: 1.0.3** (npm `latest`, 2026-11-27). Check what is published any time with `npm view dsh-drydock version`; tags: <https://github.com/nonentity303/dsh-drydock/tags>.
15
13
  > ⚠️ A brand-new release is blocked by pnpm's 24 h cool-down (`minimumReleaseAge`) — pin the version explicitly if it does not install (see "Install" below).
16
14
 
15
+ ### Update-source trust model (1.0.3)
16
+
17
+ Read this before configuring sources:
18
+
19
+ - **Default sources**: npm official (`registry.npmjs.org`) / GitHub official repo / npmmirror (`registry.npmmirror.com`). **The registry version is authoritative** — when an authoritative source has a definite version, only authoritative sources are compared (random tie-break); other sources do not take part in that decision.
20
+ - **Custom sources are fallback only**: a source you add lands in the `custom` layer with `authoritative: false` and is **no longer mixed with the official sources**. It is used only when no authoritative version exists (flagged `degraded`). Promote it deliberately with `authoritative: true`.
21
+ - **`http://` sources are allowed but labelled "plaintext · fallback only"** (intranet registries / proxies are a real case): a plaintext source can be promoted to authoritative only with **both** `authoritative: true` and `allowInsecure: true`; otherwise it stays fallback and the downgrade reason is reported in a readable note, never silently swallowed.
22
+ - **`official` is decided server-side** from the built-in allowlist (npm official, npmmirror, compared after URL normalization); a client-supplied `official` is ignored.
23
+ - **Only `@deepseek-ai/*` uses the `next` track** (and only from a built-in authoritative source). Every other package takes `latest` only, and a `latest` that is itself a semver prerelease (contains `-`) counts as "no usable version" — no RC is pushed to regular users.
24
+ - **Auto-install from the downloads folder requires provenance**: an archive in `$DSH_HOME/downloads` is installed only if it matches a record this manager wrote (package name + version + source + expected digest, valid 7 days); otherwise it is refused and stamped `.failed`. A byte size alone is **not** treated as a content check.
25
+ - **Digest is the only "verified" state**: redirects are checked hop by hop, any hop that downgrades to plaintext `http` is refused unless `allowInsecure` is set, and downloads without a digest are refused by default (`security.unverifiedDownloads: allow` only relaxes that, and the receipt still says "unverified").
26
+
27
+ §"Why this manager exists" below keeps the 0.9.1-era capability comparison and competitor history as evidence; the compatibility and install tables have been updated to the 1.0.x line.
28
+
17
29
  ![Standalone plugin page: sidebar entry "Plugin manager" + five sections](https://raw.githubusercontent.com/nonentity303/dsh-drydock/master/docs/images/pm-090-official2.png)
18
30
 
19
31
  <sub>**Figure 1** · the 0.9 standalone plugin page (captured in an isolated rehearsal environment on DSH **0.1.7-rc.2**, 2026-09-28): the sidebar entry "Plugin manager" and the five section tabs — Official built-ins (optional) · All plugins · Market · Operations & scenarios · Maintenance. Source image: `docs/images/pm-090-official2.png`.</sub>
@@ -28,7 +40,7 @@ This manager is not "one more plugin list". It **takes over that page and adds w
28
40
 
29
41
  ### Capability comparison
30
42
 
31
- | Capability | Official built-in page (DSH 0.1.7) | LX2000WASD/dsh-web-plugin-manager (**discontinued**) | This manager (0.9.1) |
43
+ | Capability | Official built-in page (DSH 0.1.7) | LX2000WASD/dsh-web-plugin-manager (**discontinued**) | This manager (1.0.3) |
32
44
  |---|---|---|---|
33
45
  | Starts on DSH 0.1.7 | ✅ shipped with the engine | ❌ breaks the profile since 0.1.6 (loader entry id collision)¹ | ✅ verified on 0.1.7-rc.2: rehearsal + clean-environment install⁴ |
34
46
  | Transactional uninstall (impact preview → backup → remove → pre-boot self-check → rollback) | ❌ only bundle layer add/remove (`installBundle` / `removeBundle`); no preview, no undo³ | ⚠️ can uninstall (incl. bundles) but **not transactionally**: failures only say "restart to take effect", recovery means editing `cordis.patch.yml` by hand¹ | ✅ full loop, plus **one-click undo**⁴ |
@@ -65,7 +77,7 @@ The leading competitor [LX2000WASD/dsh-web-plugin-manager](https://github.com/LX
65
77
 
66
78
  Verified on **DSH 0.1.7-rc.2**: the engine boots cleanly, the sidebar shows "Plugin manager" and all five sections — that is Figure 1.
67
79
 
68
- > **Which version should I install?** DSH **0.1.6 or later → 0.9.1** (to try the pre-release: `npm i dsh-plugin-manager-pro@next` = **0.9.1-rc2**, shipped under the `next` dist-tag, does not move `latest`); **old engines (before 0.1.6) → 0.8.2**. Full matrix under "Requirements".
80
+ > **Which version should I install?** DSH **0.1.7-rc.2 or later (and `<0.3.0-0`) → 1.0.3**. Engines older than 0.1.7-rc.2 are outside this package's `engines.dsh` range — stay on the historical release you already have. Rollback between 1.0.x releases uses the same package name: `dsh plugin --profile web add dsh-drydock@1.0.2`.
69
81
 
70
82
  ![Impact preview of a transactional uninstall plus the rescue/diagnostics entries in the same card](https://raw.githubusercontent.com/nonentity303/dsh-drydock/master/docs/images/pm4-uninstall-preview.png)
71
83
 
@@ -82,11 +94,11 @@ Verified on **DSH 0.1.7-rc.2**: the engine boots cleanly, the sidebar shows "Plu
82
94
  - **Rescue decoupled from the engine** (v0.7+): with the engine down, the **3081 launcher (with a built-in rescue page) and the 3082 rescue service** still self-check, repair and start it.
83
95
  - **Browser as launcher**: set your home page to `http://127.0.0.1:3081/` (`http://localhost:3081/` works the same way) — opening the browser runs self-check → repair → start → jumps to the main UI.
84
96
  - **Local write endpoints are guarded** (v0.9.1): same-origin `Origin` (same-host, same-port allowlist: `127.0.0.1` / `localhost` / `[::1]`) + one-time token + single-flight, so a third-party page cannot start/stop anything; `--status` also appends a `health.log` line (7 days / 1000 lines).
85
- - **Multi-source update aggregation**: npm registry / dshfind / GitHub / custom mirrors queried in parallel, with rate-limit circuit breaking and the highest version winning.
97
+ - **Update-source trust model** (1.0.3): npm official / GitHub official repo / npmmirror by default, the registry is authoritative, custom sources are fallback-only (never mixed with the official ones) unless explicitly marked `authoritative`, plain `http://` sources are allowed but labelled "plaintext · fallback only", only `@deepseek-ai/*` uses the `next` track, and auto-install from the downloads folder requires a provenance record. Full rules in the trust-model block at the top.
86
98
 
87
99
  ---
88
100
 
89
- ## 📋 Feature overview (v0.9.1)
101
+ ## 📋 Feature overview (v1.0.3)
90
102
 
91
103
  ### Plugin page (sidebar "Plugin manager")
92
104
 
@@ -96,7 +108,7 @@ Five sections, switching keeps your scroll position:
96
108
  |---|---|
97
109
  | **Official built-ins (optional)** | Engine-provided bundles that are disabled by default (one-click enable/disable) + official plugins with their own config page + version exemptions |
98
110
  | **All plugins** | Plugin list: search, collapsible groups, origin filter, enable/disable, inline config, inline uninstall, version & origin, manual origin override |
99
- | **Market** | dshfind curated catalog (browse by category / search / sort), one-click install; falls back to GitHub search when offline |
111
+ | **Market** | ADP curated catalog (browse by category / search / sort), one-click install |
100
112
  | **Operations & scenarios** | Transactional uninstall with impact preview, **pre-uninstall health check**, operation history undo, scenarios |
101
113
  | **Maintenance** | Update sources, pre-boot self-check, rescue center entries, downloads folder |
102
114
 
@@ -121,10 +133,11 @@ Five sections, switching keeps your scroll position:
121
133
 
122
134
  ### Updates and downloads
123
135
 
124
- - **Parallel multi-source lookups**; highest version wins, ties picked at random.
136
+ - **Authoritative registry, fallback-only custom sources** (1.0.3): the trust layer is decided by each source's `authoritative` flag, not by its type; authoritative sources are compared among themselves (random tie-break) and other sources only step in when no authoritative version exists (`degraded`). See the trust-model block at the top.
125
137
  - **Circuit breaking**: GitHub API 403/429 cools down for 10 minutes; full refresh runs 8 concurrent queries and results are cached for 30 minutes (a cache hit returns instantly; refresh duration depends on your network and the number of enabled sources).
126
138
  - **Download order**: ① native browser download (hidden iframe, capturable by download managers) → ② external downloader → ③ built-in fallback (HTTP / aria2c / P2P magnet·torrent).
127
- - **Auto-install from the downloads folder**: drop `.tgz` / `.tar.gz` into `$DSH_HOME\downloads`; manifest validation + pre-boot self-check, rollback on failure and a `.failed` stamp so it is not retried forever.
139
+ - **Auto-install from the downloads folder requires provenance** (1.0.3): drop `.tgz` / `.tar.gz` into `$DSH_HOME\downloads`; the archive's own `package.json` is read first and installation happens only when it matches a record this manager wrote (package name + version + source + expected digest, valid 7 days). Anything else is refused with a `.failed` stamp ("no provenance record — not a download link produced by this manager; delete `.failed` to retry after you have confirmed the source"), and the record is removed once the install succeeds.
140
+ - **Verified means digest**: a byte size alone is not a content check; redirects are validated hop by hop (any hop downgrading to plaintext `http` is refused unless `allowInsecure`); archives without a digest are refused by default.
128
141
 
129
142
  ### Market
130
143
 
@@ -151,30 +164,30 @@ Five sections, switching keeps your scroll position:
151
164
 
152
165
  | Tool | What it does | Usage |
153
166
  |---|---|---|
154
- | `bin/open-boot.mjs` | **The single web entry + resident supervisor** (3081): `/` is the "open the browser and it starts" page, **`/rescue` is the rescue page** (with `/rescue/api/*`). Set it as your home page (`127.0.0.1` / `localhost` / `[::1]` are equivalent as long as the port matches). It stays hidden and only pops a visible progress window when the engine really needs starting (`--no-window` disables that). Health = **HTTP handshake + identity fingerprint**; write endpoints are guarded by **Origin + one-time token**; `--uninstall` cleans everything (stop supervisor → remove autostart → remove shims → clear pid; exit codes 0 = completed / 1 = error / **2 = ownership unconfirmed** — nothing stopped, pid file kept) | `npx dsh-pm-launcher` |
155
- | `bin/rescue-daemon.mjs` | **Independent backup rescue service** (default port **3082**): self-contained rescue page + `verify/fix/start/stop/status` API, no engine dependency. `stop` first verifies pid and port ownership (`{"force":true}` to force). **No longer competes with the 3081 launcher** (an occupied port is a hard error, never a silent port shift) | `npx dsh-pm-rescue` |
156
- | `bin/dsh-boot.mjs` / `.cmd` | **Steam-style boot sequence**: verify → auto-quarantine broken plugins → start → wait for health. `--repair-only` (self-check + repair only, no start), `--pause`, `--help`; exit codes 0 = ready / 1 = failed to start / 2 = repair incomplete. Immediate failures (bad command, port conflict) return at once with the absolute log path | `npx dsh-pm-boot` (double-clickable equivalent on Windows: `bin\dsh-boot.cmd` inside the package) |
167
+ | `bin/open-boot.mjs` | **The single web entry + resident supervisor** (3081): `/` is the "open the browser and it starts" page, **`/rescue` is the rescue page** (with `/rescue/api/*`). Set it as your home page (`127.0.0.1` / `localhost` / `[::1]` are equivalent as long as the port matches). It stays hidden and only pops a visible progress window when the engine really needs starting (`--no-window` disables that). Health = **HTTP handshake + identity fingerprint**; write endpoints are guarded by **Origin + one-time token**; `--uninstall` cleans everything (stop supervisor → remove autostart → remove shims → clear pid; exit codes 0 = completed / 1 = error / **2 = ownership unconfirmed** — nothing stopped, pid file kept) | `npx dsh-drydock` |
168
+ | `bin/rescue-daemon.mjs` | **Independent backup rescue service** (default port **3082**): self-contained rescue page + `verify/fix/start/stop/status` API, no engine dependency. `stop` first verifies pid and port ownership (`{"force":true}` to force). **No longer competes with the 3081 launcher** (an occupied port is a hard error, never a silent port shift) | `npx dsh-drydock-rescue` |
169
+ | `bin/dsh-boot.mjs` / `.cmd` | **Steam-style boot sequence**: verify → auto-quarantine broken plugins → start → wait for health. `--repair-only` (self-check + repair only, no start), `--pause`, `--help`; exit codes 0 = ready / 1 = failed to start / 2 = repair incomplete. Immediate failures (bad command, port conflict) return at once with the absolute log path | `npx dsh-drydock-boot` (double-clickable equivalent on Windows: `bin\dsh-boot.cmd` inside the package) |
157
170
 
158
171
  #### Resident launcher and autostart
159
172
 
160
173
  | Command | Effect |
161
174
  |---|---|
162
- | `npx dsh-pm-launcher --supervise [--interval 60] [--heartbeat-min 10]` | **Resident supervisor**: quietly keeps 3081 alive; a lock port (`port+1000`) guarantees a single instance; only a failed HTTP handshake triggers a start — healthy instances are never killed. Writes four kinds of log lines (state change / heartbeat / exit / uncaught exception) to `profile/open-boot-supervisor.log` |
163
- | `npx dsh-pm-launcher --ensure` | One-shot: make sure the port has this launcher (exit 0/1) |
164
- | `npx dsh-pm-launcher --status` | **Status self-check + health trail**: launcher (handshake + identity) / supervisor (lock port ownership) / engine (3080 handshake) / pid file / cwd / logs and last heartbeat; exit 0 = launcher healthy. Reports the occupying pid when the port belongs to someone else. **Appends a `health.log` line every run** (7 days / 1000 lines kept) |
165
- | `npx dsh-pm-launcher --install-autostart` | **Install autostart** (Windows): writes `HKCU\...\Run\DSHWebFront` plus `open-boot-autostart.vbs` (silent resident on login) and `open-boot-ui.vbs` (ensure 3081 then open the browser). The wrapper scripts are pure ASCII and self-resolve their path, so non-ASCII user names or profile paths with spaces no longer break |
166
- | `npx dsh-pm-launcher --uninstall-autostart` / `--autostart-status` | Remove / inspect autostart (shim presence, supervisor liveness, whether the port is this launcher). Idempotent (exit 0) when nothing is installed |
167
- | `npx dsh-pm-launcher --uninstall` | **Uninstall loop (R13)**: stop this profile's supervisor (three-fold ownership check: pid file + lock port `port+1000` + process image; refuses and never touches other processes) → delete **all** `DSHWeb*` Run values (including the legacy `DSHWebRescue`) → delete both `.vbs` shims → clear `.open-boot.pid` (logs kept). Exit codes: **0** = completed (including a confirmed "nothing to clean") / **1** = error / **2** = **ownership unconfirmed** (`netstat`/`tasklist` probes unavailable: no process stopped, pid file kept, never reports "uninstall complete"). Still idempotent; the engine on 3080 is left alone. The manager calls it before uninstalling itself |
168
- | `npx dsh-pm-launcher --help` / `npx dsh-pm-boot --help` | Show usage (unknown flags are reported, not silently ignored) |
175
+ | `npx dsh-drydock --supervise [--interval 60] [--heartbeat-min 10]` | **Resident supervisor**: quietly keeps 3081 alive; a lock port (`port+1000`) guarantees a single instance; only a failed HTTP handshake triggers a start — healthy instances are never killed. Writes four kinds of log lines (state change / heartbeat / exit / uncaught exception) to `profile/open-boot-supervisor.log` |
176
+ | `npx dsh-drydock --ensure` | One-shot: make sure the port has this launcher (exit 0/1) |
177
+ | `npx dsh-drydock --status` | **Status self-check + health trail**: launcher (handshake + identity) / supervisor (lock port ownership) / engine (3080 handshake) / pid file / cwd / logs and last heartbeat; exit 0 = launcher healthy. Reports the occupying pid when the port belongs to someone else. **Appends a `health.log` line every run** (7 days / 1000 lines kept) |
178
+ | `npx dsh-drydock --install-autostart` | **Install autostart** (Windows): writes `HKCU\...\Run\DSHWebFront` plus `open-boot-autostart.vbs` (silent resident on login) and `open-boot-ui.vbs` (ensure 3081 then open the browser). The wrapper scripts are pure ASCII and self-resolve their path, so non-ASCII user names or profile paths with spaces no longer break |
179
+ | `npx dsh-drydock --uninstall-autostart` / `--autostart-status` | Remove / inspect autostart (shim presence, supervisor liveness, whether the port is this launcher). Idempotent (exit 0) when nothing is installed |
180
+ | `npx dsh-drydock --uninstall` | **Uninstall loop (R13)**: stop this profile's supervisor (three-fold ownership check: pid file + lock port `port+1000` + process image; refuses and never touches other processes) → delete **all** `DSHWeb*` Run values (including the legacy `DSHWebRescue`) → delete both `.vbs` shims → clear `.open-boot.pid` (logs kept). Exit codes: **0** = completed (including a confirmed "nothing to clean") / **1** = error / **2** = **ownership unconfirmed** (`netstat`/`tasklist` probes unavailable: no process stopped, pid file kept, never reports "uninstall complete"). Still idempotent; the engine on 3080 is left alone. The manager calls it before uninstalling itself |
181
+ | `npx dsh-drydock --help` / `npx dsh-drydock-boot --help` | Show usage (unknown flags are reported, not silently ignored) |
169
182
 
170
- After installation the three commands come from the `bin` field of `package.json` (`dsh-pm-launcher` / `dsh-pm-boot` / `dsh-pm-rescue`). `npx` works without installing, and you can always run the file inside the package (path is independent of cwd):
183
+ After installation the three commands come from the `bin` field of `package.json` (`dsh-drydock` / `dsh-drydock-boot` / `dsh-drydock-rescue`). `npx` works without installing, and you can always run the file inside the package (path is independent of cwd):
171
184
 
172
185
  ```sh
173
186
  node "$DSH_HOME/profiles/web/node_modules/dsh-drydock/bin/open-boot.mjs" --status
174
187
  ```
175
188
 
176
189
  - **Shared modules**: `lib/preflight.mjs` (standalone self-check/repair, same logic as the host's `verifyProfile`/`fixProfile`), `lib/enginectl.mjs` (engine probing/start/stop/pid management + the write-endpoint guards).
177
- - **Troubleshooting**: engine will not start → ① open `http://127.0.0.1:3081/` (`http://localhost:3081/` is equivalent) → "check → repair → start"; ② `npx dsh-pm-boot --repair-only` to see the quarantine list; ③ `npx dsh-pm-launcher --status` for the real state of launcher/supervisor/engine plus the last `health.log` line; ④ interactive start with `npx dsh-pm-boot`.
190
+ - **Troubleshooting**: engine will not start → ① open `http://127.0.0.1:3081/` (`http://localhost:3081/` is equivalent) → "check → repair → start"; ② `npx dsh-drydock-boot --repair-only` to see the quarantine list; ③ `npx dsh-drydock --status` for the real state of launcher/supervisor/engine plus the last `health.log` line; ④ interactive start with `npx dsh-drydock-boot`.
178
191
  - **Full command/exit-code tables, the four `--uninstall` steps and a troubleshooting table**: [docs/LAUNCHER.md](docs/LAUNCHER.md). Architecture and slot contract: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
179
192
 
180
193
  > **Health semantics and the safety of "stop engine"**: ready = **HTTP handshake succeeded and the response carries a DSH identity fingerprint** (a bare TCP listener is never considered healthy). So when 3080, 3081 or 3082 is occupied by something else, the tools **fail loudly instead of pretending to be ready** and never shift ports silently. `stopEngine()` runs three checks first (pid alive / process image is node·dsh / the port owner matches the recorded pid) and refuses otherwise, explaining why on the rescue page (a "force stop" button — or `POST /api/stop {"force":true}` — is available there). Pid files: `.rescue-daemon.pid` (engine) and `.open-boot.pid` (launcher), both JSON.
@@ -187,23 +200,19 @@ node "$DSH_HOME/profiles/web/node_modules/dsh-drydock/bin/open-boot.mjs" --statu
187
200
 
188
201
  - Windows 10/11 · macOS · Linux (`/rescue` and the three CLI tools are cross-platform; **`--install-autostart` is Windows-only**, on macOS/Linux use `--supervise` with your own service manager).
189
202
  - Node.js ≥ 18 · DeepSeek Harness `dsh` (global or via npx) · `pnpm` (required by `dsh plugin` and the update features).
190
- - **`engines.node` in `package.json` is the only statement of record** (currently `>=18.0.0`). Note: **0.9.1 fails to load on Node 18/20** (a top-level named import of `node:module`'s `findPackageJSON`, which only exists since Node **22.14** → link-time `SyntaxError`, the whole plugin never loads); **on Node 18/20 use 0.9.1-rc2 or newer** — it uses a namespace import + runtime feature detection + a fallback resolver, guarded by the static gate `node tools/dev/compat-scan.mjs --root .` (measured on this version: `blocker=0`, exit 0; on the published 0.9.1 tarball: `blocker=1`).
203
+ - **`engines.node` in `package.json` is the only statement of record** — this release still declares `>=18.0.0` and was **not** tightened here (engine tightening is planned for 1.1.x). Node 18 is EOL and pnpm 11 no longer supports 18/20/21, so run it on **Node 22 LTS or newer**.
191
204
  - **The engine version decides which manager version you install** (table below) — installing the wrong one means no plugin page, or a profile that will not start.
192
205
 
193
206
  ### Engine compatibility matrix (engine × manager)
194
207
 
195
208
  | Your DSH engine | Manager version | Status | Verified | Notes / sources |
196
209
  |---|---|---|---|---|
197
- | **0.1.7-rc.2** | **0.9.1** (published) · **0.9.1-rc2** (pre-release, `next` dist-tag) | ✅ works | 0.9.0: 2026-09-28 rehearsal + clean-environment install; 0.9.1: all four test suites green; **0.9.1-rc2 (pre-release)**: launcher suite independently verified **448 checks / 418 OK / 30 SKIP(env) / 0 FAIL**, exit 0 (2026-10-07; all 30 SKIPs are sandbox boundaries, **not product failures**); static compat gate `compat-scan` on the candidate tarball **exit 0 / blocker 0** (the published 0.9.1 tarball reports blocker 1 / exit 2); it also carries the performance fixes (client bundle **792,931 → 255,903 B**, host hot-snapshot median **18.8 → 1.1 ms**); **the count of record is the output of `node test-launcher.mjs --strict`** (it moves with the tree) | Isolated rehearsal environment (separate `DSH_HOME` + ports): engine boots cleanly, sidebar "Plugin manager", all five sections (Figures 1–3 come from it). Sources: `docs/releases/0.9.0.md`, `docs/releases/0.9.0-verify.md`, `docs/releases/RELEASE_NOTES_0.8.3-1.md`, [docs/RELEASING.md](docs/RELEASING.md) |
198
- | **0.1.6 and later** (incl. 0.1.6-alpha.2) | **0.9.1** (recommended) / **0.9.1-rc2** (pre-release) | ✅ recommended (takes over the built-in page) | 0.1.7-rc.2 verified; **0.1.6-alpha.x not tested individually** | The official page became part of the engine in 0.1.6; the `ui-plugin-manager` row our `cordis.patch.yml` disables is exactly that page (`@deepseek-ai/dsh-client-ui-plugin-manager`) |
199
- | **0.1.0-rc.6 ~ 0.1.5** (engines before 0.1.6) | **0.8.2** | ✅ works (legacy "Settings → Plugins" tab) | 0.8.2 released 2026-09-04; the pre-upgrade baseline on this machine was engine 0.1.1-rc.2 + 0.8.x | 0.8.x and 0.9 are two different clients (`docs/releases/0.9.0.md` ⑤); **the 0.1.5 line was not tested individually** |
200
- | **0.1.7-rc.2** | **0.8.2 / early 0.8.3 builds** | ❌ plugin never activates | measured in the 2026-09-28 rehearsal | Two independent causes: ① since 0.1.7 the typert strict codec must provide a `create()` factory; ② `dsh.client.inject` referenced `@deepseek-ai/dsh-client-runtime`, removed in 0.1.7. Fixed in 0.8.3-1 and 0.9.x |
201
- | **0.1.6 and later** | **any third-party manager that declares the same loader entry id** (e.g. LX2000WASD 0.6.x) | ❌ profile will not start | competitor announcement, 2026-09 | `TypeError: duplicate loader entry id: plugin-manager` (the official `dsh-base` row id is `plugin-manager`); this manager uses its own id `drydock` |
202
- | Already on 0.9.x with an engine before 0.1.6 | rollback: `dsh plugin --profile web add dsh-plugin-manager-pro@0.8.2` | ⚠️ recovery path | — | see the rollback command under "Install" |
210
+ | **≥ 0.1.7-rc.2** (incl. 0.2.x, `<0.3.0-0`) | **1.0.3** (recommended) · 1.0.2 / 1.0.1 / 1.0.0 | ✅ supported | 1.0.x verified on 0.2.x engines (isolated rehearsal + main environment); **the count of record is the output of `node test-launcher.mjs --strict`** (it moves with the tree) | `engines.dsh` = `>=0.1.7-rc.2 <0.3.0-0`; per-version evidence in [docs/releases/](docs/releases/) |
211
+ | **0.1.6 and later** (incl. 0.1.6-alpha.2) | **1.0.3** | ✅ recommended (takes over the built-in page) | 0.1.7-rc.2 verified; **0.1.6-alpha.x not tested individually** | The official page became part of the engine in 0.1.6; the `ui-plugin-manager` row our `cordis.patch.yml` disables is exactly that page (`@deepseek-ai/dsh-client-ui-plugin-manager`) |
212
+ | **before 0.1.7-rc.2** (0.1.0-rc.6 ~ 0.1.5) | not supported by 1.0.x | ⚠️ stay on the historical release you already have | — | 1.0.x `engines.dsh` starts at 0.1.7-rc.2; the old package name is deprecated (notice live on npm) but not deleted |
203
213
 
204
- > **One line**: **newer engines want 0.9.1; only very old engines (before 0.1.6) need 0.8.2.** The 0.1.6 boundary is the only certain one; the transitional 0.1.6-alpha.x versions were not tested individually.
205
- > **On Node 18/20 (or to try the pre-release) install `0.9.1-rc2`**: `npm i dsh-plugin-manager-pro@next` — 0.9.1 **fails to load on Node 18/20**, which is the first blocker this pre-release fixes (see `docs/releases/0.9.1-rc2.md`).
206
- > The "verified" records come from the rehearsal environment, the clean-environment install report and the real-machine install archive (`docs/releases/0.9.0-verify.md`; developer workspace `upgrade-rehearsal/`, `audit/install-090/` — the latter two are not part of the npm package). The process is repeated for every engine patch release per `docs/RELEASING.md`.
214
+ > **One line**: engine **≥ 0.1.7-rc.2 → install 1.0.3**. Rollback between 1.0.x releases uses the same package name: `dsh plugin --profile web add dsh-drydock@1.0.2`.
215
+ > The "verified" records come from the rehearsal environment, the clean-environment install report and the real-machine install archive (`docs/releases/0.9.0-verify.md`; developer workspace `upgrade-rehearsal/`, `audit/install-090/` — the latter two are not part of the npm package). The process is repeated for every release per `docs/RELEASING.md`.
207
216
 
208
217
  ## 🔐 Permissions and data scope
209
218
 
@@ -216,13 +225,13 @@ node "$DSH_HOME/profiles/web/node_modules/dsh-drydock/bin/open-boot.mjs" --statu
216
225
  | `~/.dsh/profiles/<name>/plugin-manager.json` (sidecar) | operation history (last 20), scenarios, manual origin overrides, pending removals, update-source config | No |
217
226
  | `~/.dsh/profiles/<name>/node_modules/**` | read the dependency graph and package summaries; uninstall/quarantine deletes package directories via `pnpm` (Windows file locks are queued for the next start) | No (pnpm talks to the registry during install/uninstall) |
218
227
  | `~/.dsh/profiles/<name>/vendor/downloads/*.tgz` | archive staging for browser downloads; archives still referenced by dependencies are never deleted | No |
219
- | `$DSH_HOME/downloads/*` | "auto-install from the downloads folder" scans archives and writes `.installed` / `.failed` stamps | No |
228
+ | `$DSH_HOME/downloads/*` | "auto-install from the downloads folder" scans archives; only archives matching a provenance record (package name + version + source + digest) are installed; writes `.installed` / `.failed` stamps | No |
220
229
  | Local npm global root (Windows `%APPDATA%\npm`, macOS/Linux `npm root -g` and common paths) | **read-only**: locate the engine-provided `@deepseek-ai/*` packages and extract plugin summaries | No |
221
- | Update sources: npm registry (`registry.npmjs.org` by default), dshfind, GitHub, mirrors you add (e.g. `registry.npmmirror.com`) | query versions and download archives | **Queries only** (GET metadata / archives) — no local data is uploaded |
230
+ | Update sources: npm registry (`registry.npmjs.org` by default), GitHub, mirrors you add (e.g. `registry.npmmirror.com`) | query versions and download archives | **Queries only** (GET metadata / archives) — no local data is uploaded |
222
231
  | GitHub API: `api.github.com`, `raw.githubusercontent.com`, `codeload.github.com` | read releases and repository `package.json`, download tgz | same |
223
232
  | Catalog `awesome-dsh-plugin.com/plugins.json` | market catalog (10-minute host cache) | same |
224
233
  | Loopback ports `3080` / `3081` / `3082` (+ lock `4081 = 3081+1000`) | main UI / launcher + rescue page / backup rescue service / single-instance lock — bound to `127.0.0.1` only | No (never leaves the machine) |
225
- | Windows registry `HKCU\...\Run\DSHWebFront` + profile `open-boot-autostart.vbs`, `open-boot-ui.vbs` | written **only when you explicitly run `--install-autostart`**; cleaned by `npx dsh-pm-launcher --uninstall-autostart` (or `--uninstall`) | No |
234
+ | Windows registry `HKCU\...\Run\DSHWebFront` + profile `open-boot-autostart.vbs`, `open-boot-ui.vbs` | written **only when you explicitly run `--install-autostart`**; cleaned by `npx dsh-drydock --uninstall-autostart` (or `--uninstall`) | No |
226
235
  | Profile `.rescue-daemon.pid`, `.open-boot.pid`, `rescue-daemon.log`, `open-boot-supervisor.log`, `health.log` | pids, logs and the self-check trail (`health.log` keeps 7 days / 1000 lines) | No |
227
236
 
228
237
  > **What it never touches**: conversation content, `settings.yaml`, `.credentials.yaml` (API keys) — there is no code path reading them in `lib/`.
@@ -232,24 +241,23 @@ node "$DSH_HOME/profiles/web/node_modules/dsh-drydock/bin/open-boot.mjs" --statu
232
241
  > **Install from npm** (`dsh plugin … add` is pnpm underneath and reuses the engine-provided `@deepseek-ai/*`).
233
242
 
234
243
  ```sh
235
- # 1) recommended (engine >= 0.1.6) — new package name since the 1.0.0 rename
244
+ # 1) recommended (engine >= 0.1.7-rc.2) — current package name
236
245
  dsh plugin --profile web add dsh-drydock
237
246
 
238
247
  # 2) right after a release (or during the 24 h cool-down) — pin the version, always reliable
239
- dsh plugin --profile web add dsh-drydock@1.0.0
248
+ dsh plugin --profile web add dsh-drydock@1.0.3
240
249
 
241
250
  # 3) offline tarball (downloaded from the GitHub Release page, or built with npm pack)
242
- dsh plugin --profile web add ./dsh-drydock-1.0.0.tgz
251
+ dsh plugin --profile web add ./dsh-drydock-1.0.3.tgz
243
252
 
244
- # old engines (0.1.0-rc.6 ~ 0.1.5), or when 0.9.x does not take effect: roll back to the legacy UI
245
- # (0.8.2 only ever existed under the old package name — the rollback command keeps the old name)
246
- dsh plugin --profile web add dsh-plugin-manager-pro@0.8.2
253
+ # 4) roll back to the previous stable release (same package name for the whole 1.0.x line)
254
+ dsh plugin --profile web add dsh-drydock@1.0.2
247
255
 
248
256
  # restart the web engine to load the client bundle
249
257
  dsh web
250
258
  ```
251
259
 
252
- > **Does not install / still shows the old UI?** Two usual causes: ① the engine loads client bundles **at startup** — restart `dsh web`; ② pnpm 11's **24 h cool-down** (`minimumReleaseAge`, default 1440 minutes) refuses versions published today unless you pin them (you can also add `dsh-plugin-manager-pro@0.9.1` to `minimumReleaseAgeExclude` in the profile's `pnpm-workspace.yaml`).
260
+ > **Does not install / still shows the old UI?** Two usual causes: ① the engine loads client bundles **at startup** — restart `dsh web`; ② pnpm 11's **24 h cool-down** (`minimumReleaseAge`, default 1440 minutes) refuses versions published today unless you pin them (you can also add `dsh-drydock@1.0.3` to `minimumReleaseAgeExclude` in the profile's `pnpm-workspace.yaml`).
253
261
 
254
262
  After installing: the sidebar shows the first-level entry **"Plugin manager"** (the built-in page is disabled and taken over by this package's patch). 🛟 in the bottom right opens the rescue center; the engine-hosted rescue page is `http://127.0.0.1:3080/rescue`.
255
263
 
@@ -263,9 +271,9 @@ After installing: the sidebar shows the first-level entry **"Plugin manager"** (
263
271
  Uninstall:
264
272
 
265
273
  ```sh
266
- dsh plugin --profile web remove dsh-plugin-manager-pro # calls --uninstall below to clean autostart/supervisor/shims first
267
- npx dsh-pm-launcher --uninstall-autostart # Windows: remove autostart (idempotent)
268
- npx dsh-pm-launcher --uninstall # optional: remove every launcher trace (stop supervisor + delete DSHWeb* + shims + pid)
274
+ dsh plugin --profile web remove dsh-drydock # calls --uninstall below to clean autostart/supervisor/shims first
275
+ npx dsh-drydock --uninstall-autostart # Windows: remove autostart (idempotent)
276
+ npx dsh-drydock --uninstall # optional: remove every launcher trace (stop supervisor + delete DSHWeb* + shims + pid)
269
277
  ```
270
278
 
271
279
  ## Rescue quick reference
@@ -273,13 +281,13 @@ npx dsh-pm-launcher --uninstall # optional: remove ever
273
281
  | Situation | What to do |
274
282
  |---|---|
275
283
  | Engine is fine, UI is broken | `http://127.0.0.1:3080/rescue` (rescue page / 🛟 button) |
276
- | Engine will not start | `http://127.0.0.1:3081/rescue` (the launcher's rescue page; `/` is the "open and it starts" page; `http://localhost:3081/…` is equivalent) → check → repair → start. Independent backup entry: `npx dsh-pm-rescue` (port **3082**) |
277
- | Want "open the browser and it starts" | Set your home page to `http://127.0.0.1:3081/` (`http://localhost:3081/` is equivalent — same host and port); make it resident with `npx dsh-pm-launcher --install-autostart` |
278
- | Want 3081 resident without windows | `npx dsh-pm-launcher --supervise` (silent; a visible window appears only when the engine must be started; `--no-window` disables it) |
279
- | Want the state of 3080/3081/3082/4081 | `npx dsh-pm-launcher --status` (launcher identity / lock ownership / engine handshake / pid files / last heartbeat) and one `health.log` line |
280
- | Remove every launcher trace | `npx dsh-pm-launcher --uninstall` (exit codes 0 = completed / 1 = error / **2 = ownership unconfirmed**: nothing is stopped and the pid file is kept — re-run from a session where `netstat`/`tasklist` work; the engine on 3080 and the logs stay) |
284
+ | Engine will not start | `http://127.0.0.1:3081/rescue` (the launcher's rescue page; `/` is the "open and it starts" page; `http://localhost:3081/…` is equivalent) → check → repair → start. Independent backup entry: `npx dsh-drydock-rescue` (port **3082**) |
285
+ | Want "open the browser and it starts" | Set your home page to `http://127.0.0.1:3081/` (`http://localhost:3081/` is equivalent — same host and port); make it resident with `npx dsh-drydock --install-autostart` |
286
+ | Want 3081 resident without windows | `npx dsh-drydock --supervise` (silent; a visible window appears only when the engine must be started; `--no-window` disables it) |
287
+ | Want the state of 3080/3081/3082/4081 | `npx dsh-drydock --status` (launcher identity / lock ownership / engine handshake / pid files / last heartbeat) and one `health.log` line |
288
+ | Remove every launcher trace | `npx dsh-drydock --uninstall` (exit codes 0 = completed / 1 = error / **2 = ownership unconfirmed**: nothing is stopped and the pid file is kept — re-run from a session where `netstat`/`tasklist` work; the engine on 3080 and the logs stay) |
281
289
  | Port 3081 serves someone else's page | The port belongs to another process: `--status` reports the pid; kill it or change `--port` and update your home page (the tool **never** shifts ports silently) |
282
- | Command-line check & start | `npx dsh-pm-boot` (start) or `npx dsh-pm-boot --repair-only` (check + repair only); on Windows double-click `bin\dsh-boot.cmd` inside the package |
290
+ | Command-line check & start | `npx dsh-drydock-boot` (start) or `npx dsh-drydock-boot --repair-only` (check + repair only); on Windows double-click `bin\dsh-boot.cmd` inside the package |
283
291
  | Installed but the UI is still old | The engine loads client bundles at startup — restart `dsh web` (or let the launcher restart the engine) |
284
292
  | Toggling a plugin does not change anything | The engine applies entries at startup: the change is written immediately but needs an engine restart (the UI tells you when) |
285
293
 
@@ -290,8 +298,8 @@ npx dsh-pm-launcher --uninstall # optional: remove ever
290
298
  - **Host** (`lib/index.js`): reads live Cordis loader state (enabled / runtime phase / error) and exposes remote methods through the Typert gateway (list / setEnabled / update / verifyProfile / fixProfile / marketCatalog / …). Convergence is judged from real engine fields (`Entry.disabled` / `_initTask` / `fiber.state`) and honestly reports "restart required" instead of pretending.
291
299
  - **Plugin page takeover** (`src/client.jsx` + `cordis.patch.yml`): registers into `main` (key=`plugins`) and `sidebar.panellist` (id=`plugins`), disables the built-in `ui-plugin-manager` row and declares the 7 `plugins.*` child slots; the three that third-party plugins really use (`plugins.row.config` / `plugins.bundle.config` / `plugins.item`) have real render exits — **an unregistered key never produces an empty button**.
292
300
  - **Toggle persistence**: rows written into the profile's `cordis.patch.yml`, always carrying the `Managed by dsh-drydock` marker (legacy `dsh-plugin-manager-pro` markers are still read) so user-owned patch rows are never touched.
293
- - **Update aggregation** (`lib/aggregate.js` + `compare-versions.js`): parallel sources → highest version → random tie-break; 10-minute circuit breaking on 403/429; full pre-release support.
294
- - **Downloader** (`lib/downloader.js`): streaming HTTP; magnet/.torrent prefer an external downloader (cross-platform where/which) → built-in webtorrent → manual import.
301
+ - **Update aggregation** (`lib/aggregate.js` + `compare-versions.js`): the trust layer is decided by each source's `authoritative` flag (not by its type) → highest among authoritative sources (random tie-break) → fallback only when no authoritative version exists (`degraded`); 10-minute circuit breaking on 403/429; prereleases only on the `@deepseek-ai/*` `next` track.
302
+ - **Downloader** (`lib/downloader.js`): streaming HTTP; magnet/.torrent prefer an external downloader (cross-platform where/which) → built-in webtorrent → manual import; downloads-folder auto-install is gated by the `pendingDownloads` provenance records in the sidecar.
295
303
  - **Cross-platform** (`lib/platform.js`): npm global root via `%APPDATA%\npm` on Windows, `npm root -g` plus common paths and nvm directories elsewhere (10-minute cache).
296
304
  - **Standalone rescue** (`lib/preflight.mjs` + `lib/enginectl.mjs`): plain-Node self-check/repair and engine lifecycle shared by all three CLI tools; port split: 3081 launcher (single web entry with `/rescue`), 3082 backup rescue service, 4081 supervisor lock.
297
305
  - **Local write-endpoint guards** (v0.9.1, `lib/enginectl.mjs`: `newApiToken` / `allowedOriginsOf` / `guardWriteRequest` / `createSingleFlight`): the local write endpoints (`POST /api/boot`, `/rescue/api/start|fix|stop`) require a **same-origin `Origin`** — the same-host, same-port allowlist `127.0.0.1` / `localhost` / `[::1]`, **never derived from the `Host` header** (`localhost:3081` and `127.0.0.1:3081` are equivalent; another port is not) — plus a page-injected one-time token (`X-DSH-PM-Token`, 48 hex chars, never written to disk, rotated on every start); a missing `Origin` (local tools) still requires the token, otherwise 401. Boot/start are single-flighted (a concurrent second request gets 409), so a third-party web page cannot start/stop anything. Read endpoints (`GET /api/status|verify`) stay open for local tools.
@@ -313,6 +321,7 @@ npm run check:vendor # vendor consistency (per-file sha
313
321
  npm run pack # build + npm pack
314
322
  node tools/dev/gen-changelog.mjs # regenerate CHANGELOG.md from docs/releases/*.md
315
323
  node tools/dev/gen-changelog.mjs --check # verify CHANGELOG.md is up to date (exit 1 when stale)
324
+ node test-docs.mjs # docs/version consistency (offline, no deps: README version == package.json, release notes + CHANGELOG contain 1.0.3)
316
325
  ```
317
326
 
318
327
  Docs: [docs/RELEASING.md](docs/RELEASING.md) (release flow), [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md), [docs/LAUNCHER.md](docs/LAUNCHER.md), [CHANGELOG.md](CHANGELOG.md) (generated) and [docs/releases/](docs/releases/).
@@ -324,7 +333,7 @@ Docs: [docs/RELEASING.md](docs/RELEASING.md) (release flow), [docs/ARCHITECTURE.
324
333
  | Installed but the UI is still the old one / no new page | Client bundles load at engine startup: **restart `dsh web`** (or let the launcher restart the engine) |
325
334
  | Plugin state does not change after toggling | The engine applies entries at startup: written to config immediately, **effective after an engine restart** |
326
335
  | `dsh plugin add` says "Already up to date" | pnpm caches tarballs by version: **bump the version** before adding again |
327
- | Engine will not start (broken bundle in `package.json`) | Open `http://127.0.0.1:3081/rescue` → check → repair → start; or `npx dsh-pm-boot --repair-only` |
336
+ | Engine will not start (broken bundle in `package.json`) | Open `http://127.0.0.1:3081/rescue` → check → repair → start; or `npx dsh-drydock-boot --repair-only` |
328
337
  | No `/rescue` on 3081 | 0.9.0 and earlier only had the rescue flow on the launcher's `/` (or on the 3082 service). 0.9.1 serves `/rescue` and `/rescue/api/*` on 3081 — upgrade the plugin |
329
338
  | Worried a third-party page can trigger start/stop | It cannot: write endpoints require a **same-origin `Origin`** — same host *and* the same port only, i.e. `127.0.0.1` / `localhost` / `[::1]`, **never derived from the `Host`/`Referer` header** — plus a one-time token (`X-DSH-PM-Token`; a missing `Origin` still needs it, otherwise 401), and they are single-flighted (403 / 401 / 409) — see [docs/LAUNCHER.md](docs/LAUNCHER.md) §4 |
330
339
  | Browser reports `waiting for service: remote.xxx` | A client `inject` must not include its own remote (deadlock); inject only keeps `["slots","locale","remote"]` |
package/README.md CHANGED
@@ -6,10 +6,10 @@
6
6
 
7
7
  ![badge](https://img.shields.io/badge/dsh-0.1.7+-blue) ![license](https://img.shields.io/badge/license-MIT-green) ![version](https://img.shields.io/npm/v/dsh-drydock?color=orange) ![npm](https://img.shields.io/npm/dt/dsh-drydock)
8
8
 
9
- > 社区/本地插件,非 DSH 官方包。npm:`dsh-drydock`(原名 `dsh-plugin-manager-pro`,旧包将加弃用标记、不删包)· GitHub:[nonentity303/dsh-drydock](https://github.com/nonentity303/dsh-drydock) · 跨平台(Windows / macOS / Linux)
9
+ > 社区/本地插件,非 DSH 官方包。npm:`dsh-drydock`(原名 `dsh-plugin-manager-pro`,旧包已挂弃用提示、不删包,仅保留供历史版本安装)· GitHub:[nonentity303/dsh-drydock](https://github.com/nonentity303/dsh-drydock) · 跨平台(Windows / macOS / Linux)
10
10
  >
11
- > **正式发布版 1.0.0**(npm `latest`,2026-11-25 发布)。核对:`npm view dsh-drydock version`;标签见 <https://github.com/nonentity303/dsh-drydock/tags>。
12
- > ⚠️ **正在更名为 `dsh-drydock`(引擎船坞)**:GitHub 仓库已改名(旧链接自动跳转);npm 包名将在下个版本迁移,旧名届时加弃用标记(不删包)。安装方式见下文[安装](#安装--更新--卸载)。
11
+ > **本页对应版本:1.0.3(npm latest,2026-11-27)**。核对:`npm view dsh-drydock version`;标签见 <https://github.com/nonentity303/dsh-drydock/tags>。
12
+ > **包名迁移已完成**:npm 包名就是 `dsh-drydock`(旧包名只保留供历史版本安装);GitHub 仓库已改名(旧链接自动跳转)。安装方式见下文[安装](#安装--更新--卸载)。
13
13
  > ⚠️ 刚发布的版本会被 pnpm 的 24 小时冷静期(`minimumReleaseAge`)挡住,装不到时请**显式写版本号**(见下文[安装](#安装--更新--卸载))。
14
14
 
15
15
  **本管理器接管引擎内置的插件管理页,并补上官方不做的部分**:装卸的完整闭环(影响预览 → 事务化卸载 → 失败回滚 → 一键撤销)、操作历史与场景方案、引擎不可用时依然可用的兜底管理页,以及**主引擎起不来时的独立救援工具链**。任一载体失效时,其余载体仍可完成启停、卸载与恢复操作。
@@ -18,7 +18,7 @@
18
18
 
19
19
  | 场景 | 谁来管 |
20
20
  | --- | --- |
21
- | 找插件、逛市场、一键装 | 官方插件页 / 插件市场(dshmarket 等)——这条赛道已封顶;本工具**不自建目录**,市场页签只是借 dshfind 目录的顺手入口 |
21
+ | 找插件、逛市场、一键装 | 官方插件页 / 插件市场(dshmarket 等)——这条赛道已封顶;本工具**不自建目录**,市场页签只是借 ADP 目录的顺手入口 |
22
22
  | 装坏了怎么办 | **本工具**:事务化卸载(影响预览 → 体检 → 备份 → 删除 → 验证 → 失败自动回滚)+ 一键撤销(最近 20 次操作留痕) |
23
23
  | 装多了怎么管 | **本工具**:来源三分区 + 场景方案(启停组合一键切换)+ 操作历史 |
24
24
  | 引擎起不来怎么办 | **本工具**:独立进程 3081 的 `verify / fix / start / stop / status`,不依赖 Cordis 运行时;带明确退出码,可被脚本/外部调用 |
@@ -51,11 +51,12 @@
51
51
  - **事务化卸载**(v1.0 加固):卸载前**影响预览与体检** → 备份 → `pnpm remove` → 清理补丁条目 → 逐项验证 → **失败自动回滚**;卸载后可**一键撤销**
52
52
  - **操作历史 + 场景方案**:最近 20 次操作留痕可撤销;插件组合保存为命名场景,一键切换(应用前展示变更预览)
53
53
  - **兜底页独立于引擎**(v1.0):引擎挂了,`http://127.0.0.1:3081/plugins` 依然能启停 / 更新 / 卸载 / 体检 / 重启引擎
54
- - **多源更新聚合**:npm registry / 插件超市 dshfind / GitHub / 自定义镜像并行查询,限流熔断,公平取最高版本
54
+ - **多源更新聚合**:默认 npm 官方 / GitHub 官方仓库 / npmmirror 三源,**registry 版本权威**;自定义源默认只作降级兜底(不与官方源混比),`http://` 源默认标「明文 · 仅兜底」;仅 `@deepseek-ai/*` 才走 `next` 轨道,其余只取 `latest` 并过滤预发布
55
+ - **下载目录自动安装有来源记录**(1.0.3):`$DSH_HOME\downloads` 里的归档必须对上管理器自己生成的 provenance 记录(包名 + 版本 + 来源 + 摘要)才会自动安装,对不上的拒绝并写 `.failed`
55
56
  - **浏览器即启动器**:主页设为 `http://127.0.0.1:3081/`,打开浏览器 = 自动自检 → 修复 → 启动 → 跳转主界面
56
57
  - **本地写接口有防护**(v0.9.1):`Origin`(同机同端口白名单)+ 一次性令牌 + 单飞闸门,第三方网页无法触发启动/停止
57
58
 
58
- ## 📋 功能总览(1.0.0)
59
+ ## 📋 功能总览(1.0.3)
59
60
 
60
61
  ### 管理台(3080)
61
62
 
@@ -80,7 +81,7 @@
80
81
 
81
82
  - **官方内置(可选)**:引擎自带、默认未启用的组合包一键启用/停用 + 版本豁免
82
83
  - **全部插件**:插件清单(见上文分区模型)
83
- - **插件市场**:dshfind 精选目录,一键安装(见下文)
84
+ - **插件市场**:ADP 精选目录,一键安装(见下文)
84
85
  - **操作与场景**:事务化卸载与影响预览、**卸载前体检**、操作历史一键撤销、场景方案
85
86
  - **维护**:更新源与刷新、启动前自检、救援中心入口、下载目录
86
87
 
@@ -105,14 +106,25 @@
105
106
 
106
107
  ### 📥 更新与下载
107
108
 
108
- - **多源并行 + 权重一致**:所有启用源并行查询取最高版本;并列时随机挑选
109
+ #### 更新源信任模型(1.0.3 新口径)
110
+
111
+ - **默认更新源(三个)**:npm 官方(`registry.npmjs.org`)/ GitHub 官方仓库 / npmmirror 镜像(`registry.npmmirror.com`)
112
+ - **registry 版本权威**:权威源给出确定版本时,**只在权威源之间**取最高(并列随机),其它源不参与这次裁决;权威源都没有版本时才降级兜底,并在界面与回执里标 `degraded`
113
+ - **自定义源默认只作兜底**:用户新增的源落在 `custom` 层,默认 `authoritative: false`,**不再与官方源混比**;要让它独立裁决版本,必须显式 `authoritative: true`(内网 / 离线部署用,意味着"此后版本裁决与安装均来自该源")
114
+ - **`http://` 源允许但默认"明文 · 仅兜底"**:内网 registry / 代理是真实场景,所以不禁止;但默认不进权威层。升权威需显式 `authoritative: true`,明文源还要再给 `allowInsecure: true` 才真正生效,否则自动降级并把原因写进可读 note(不静默)
115
+ - **`official` 徽标由服务端判定**:内置权威白名单只有 npm 官方与 npmmirror(按规范化 URL 比较),客户端提交的 `official` 一律忽略
116
+ - **只有 `@deepseek-ai/*` 有 `next` 轨道**:仅该命名空间(且源是内置权威源)才优先 `dist-tags.next`;其余包只取 `latest`,`latest` 本身是 semver 预发布(含 `-`)时视为"无可用版本"——不把 RC 推给普通用户
117
+
118
+ #### 下载
119
+
109
120
  - **限流熔断**:GitHub API 403/429 自动冷却 10 分钟;全量刷新 8 并发、结果缓存 30 分钟
110
121
  - **下载优先级**:① 浏览器原生下载(隐藏 iframe,NDM 等扩展可捕获)→ ② 外部下载软件 → ③ 内置下载器兜底(HTTP 直链 / aria2c / P2P magnet·torrent)
111
- - **下载目录自动安装**:`.tgz` / `.tar.gz` 放入 `$DSH_HOME\downloads` → 自动拾取安装;**安装前做清单校验 + 启动前自检,失败自动回滚并标记 `.failed`(不再反复重试)**
122
+ - **下载目录自动安装需来源记录(provenance)**:`.tgz` / `.tar.gz` 放进 `$DSH_HOME\downloads` 后,先读归档内的 `package.json`,只有能与管理器自己生成的下载记录(包名 + 版本 + 来源 + 期望摘要,7 天有效)对上的才自动安装;对不上的拒绝并写 `.failed`(提示"未找到来源记录——不是本管理器生成的下载链接;确认可信后再删除 .failed 重试"),安装成功后记录移除
123
+ - **校验口径**:只有内容摘要(integrity / shasum)才算"已校验",**字节数单独存在不算**;重定向逐跳校验,任何一跳降级到明文 `http` 都拒绝(除非显式 `allowInsecure`);无摘要的下载默认拒绝,`security.unverifiedDownloads: allow` 放行时回执也会明说"未校验"
112
124
 
113
125
  ### 🛒 插件市场
114
126
 
115
- - **dshfind 精选目录**:带本地化描述 / 星标 / 收录日期与分类;条目数随上游变化,host 端 10 分钟缓存。在线不可用自动兜底 GitHub `topic:dsh-plugin` 搜索
127
+ - **ADP 精选目录**:数据来自 awesome-dsh-plugin 收录池,带本地化描述 / 星标 / 收录日期与分类;条目数随上游变化,host 端 10 分钟缓存
116
128
  - **零往返过滤**:目录一次拉全量,搜索 / 分类 chips / 排序 / 分页全部客户端本地完成
117
129
  - **一键安装**:带 npm 名的条目优先 **npm registry 直装**;GitHub 仓库走内置下载器;两步确认防误触;已装 ✓ 徽标
118
130
  - **装后防砖校验**:自动验证 `dsh.bundle` / `dsh.client` 清单,缺失自动卸载;pnpm hoist 漂移 / `minimumReleaseAge` 陷阱自动恢复
@@ -144,9 +156,9 @@
144
156
 
145
157
  | 工具 | 用途 | 用法 |
146
158
  |---|---|---|
147
- | `bin/open-boot.mjs` | **唯一网页入口 + 常驻守护**(3081):`/` 是"打开即启动"页;**`/plugins` 是兜底管理页**(v1.0);`/rescue` 是救援页。设为浏览器主页即"打开即启动"。平时完全隐藏,只有引擎需要拉起时才弹一个可见启动窗口(`--no-window` 可关)。健康判定 = HTTP 握手 + 身份指纹;写接口带 Origin + 一次性令牌防护;`--uninstall` 一键清理(退出码 0/1/2,2 = 归属未确认时不动任何进程) | `npx dsh-pm-launcher` |
148
- | `bin/rescue-daemon.mjs` | **独立备份救援守护**(默认端口 **3082**):自包含中文救援页 + `verify/fix/start/stop/status` API,不依赖主引擎。**不与 3081 抢端口**(被占时明确报错退出,不静默漂移) | `npx dsh-pm-rescue`(默认 3082) |
149
- | `bin/dsh-boot.mjs` / `.cmd` | **Steam 式启动序列**:verify → 自动隔离坏插件 → 启动 → 健康等待。`--repair-only` 只自检+修复不启动;退出码 0=就绪 / 1=启动失败 / 2=修复未完成;启动即失败会**立即返回**并打印日志绝对路径 | `npx dsh-pm-boot`(Windows 双击:**包内** `bin\dsh-boot.cmd`) |
159
+ | `bin/open-boot.mjs` | **唯一网页入口 + 常驻守护**(3081):`/` 是"打开即启动"页;**`/plugins` 是兜底管理页**(v1.0);`/rescue` 是救援页。设为浏览器主页即"打开即启动"。平时完全隐藏,只有引擎需要拉起时才弹一个可见启动窗口(`--no-window` 可关)。健康判定 = HTTP 握手 + 身份指纹;写接口带 Origin + 一次性令牌防护;`--uninstall` 一键清理(退出码 0/1/2,2 = 归属未确认时不动任何进程) | `npx dsh-drydock` |
160
+ | `bin/rescue-daemon.mjs` | **独立备份救援守护**(默认端口 **3082**):自包含中文救援页 + `verify/fix/start/stop/status` API,不依赖主引擎。**不与 3081 抢端口**(被占时明确报错退出,不静默漂移) | `npx dsh-drydock-rescue`(默认 3082) |
161
+ | `bin/dsh-boot.mjs` / `.cmd` | **Steam 式启动序列**:verify → 自动隔离坏插件 → 启动 → 健康等待。`--repair-only` 只自检+修复不启动;退出码 0=就绪 / 1=启动失败 / 2=修复未完成;启动即失败会**立即返回**并打印日志绝对路径 | `npx dsh-drydock-boot`(Windows 双击:**包内** `bin\dsh-boot.cmd`) |
150
162
 
151
163
  > 端口的完整分工、退出码表、写接口防护与 `--uninstall` 四步见 [docs/LAUNCHER.md](docs/LAUNCHER.md);进程与槽位架构见 [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)。
152
164
 
@@ -154,13 +166,13 @@
154
166
 
155
167
  | 命令 | 作用 |
156
168
  |---|---|
157
- | `npx dsh-pm-launcher --supervise [--interval 60] [--heartbeat-min 10]` | **常驻守护**:静默确保 3081 有服务;锁端口(`port+1000`)单实例;只有 HTTP 握手失败才拉起,绝不误杀健康实例 |
158
- | `npx dsh-pm-launcher --ensure` | 一次性确保 3081(桌面快捷方式用,退出码 0/1) |
159
- | `npx dsh-pm-launcher --status` | **状态自检 + 健康留痕**:启动器/守护/引擎/PID/cwd/日志与最后心跳;每次追加一行 `profile/health.log`(保留 7 天 / 1000 行) |
160
- | `npx dsh-pm-launcher --install-autostart` | **写开机自启**(Windows):HKCU Run + 登录静默常驻;包装脚本正文纯 ASCII,中文用户名/含空格路径不乱码 |
161
- | `npx dsh-pm-launcher --uninstall-autostart` / `--autostart-status` | 移除自启 / 查看状态;未安装时**幂等**(exit 0) |
162
- | `npx dsh-pm-launcher --uninstall` | **卸载闭环**:三重归属校验停守护 → 删 HKCU\...\Run 下**所有** `DSHWeb*` 值 → 删 shim → 清 pid(**日志保留**)。退出码 0=完成 / 1=出错 / **2=归属未确认**(不动任何进程、保留 pid);引擎 3080 不动。管理器卸载自身前会自动调用它 |
163
- | `npx dsh-pm-launcher --help` / `npx dsh-pm-boot --help` | 显示用法(参数不再被静默忽略) |
169
+ | `npx dsh-drydock --supervise [--interval 60] [--heartbeat-min 10]` | **常驻守护**:静默确保 3081 有服务;锁端口(`port+1000`)单实例;只有 HTTP 握手失败才拉起,绝不误杀健康实例 |
170
+ | `npx dsh-drydock --ensure` | 一次性确保 3081(桌面快捷方式用,退出码 0/1) |
171
+ | `npx dsh-drydock --status` | **状态自检 + 健康留痕**:启动器/守护/引擎/PID/cwd/日志与最后心跳;每次追加一行 `profile/health.log`(保留 7 天 / 1000 行) |
172
+ | `npx dsh-drydock --install-autostart` | **写开机自启**(Windows):HKCU Run + 登录静默常驻;包装脚本正文纯 ASCII,中文用户名/含空格路径不乱码 |
173
+ | `npx dsh-drydock --uninstall-autostart` / `--autostart-status` | 移除自启 / 查看状态;未安装时**幂等**(exit 0) |
174
+ | `npx dsh-drydock --uninstall` | **卸载闭环**:三重归属校验停守护 → 删 HKCU\...\Run 下**所有** `DSHWeb*` 值 → 删 shim → 清 pid(**日志保留**)。退出码 0=完成 / 1=出错 / **2=归属未确认**(不动任何进程、保留 pid);引擎 3080 不动。管理器卸载自身前会自动调用它 |
175
+ | `npx dsh-drydock --help` / `npx dsh-drydock-boot --help` | 显示用法(参数不再被静默忽略) |
164
176
 
165
177
  > **健康判定与"停引擎"的安全性**:引擎/启动器就绪 = **HTTP 握手成功且响应带 dsh 身份指纹**(裸 TCP 监听器一律判不健康)。端口被别的进程占用时明确报错,不静默换端口。`stopEngine()` 前三重校验(pid 存活 / 进程镜像 / 端口归属),不过一律拒绝,需要时可在救援页"强制停止"。PID 文件均为 JSON(`profile/.rescue-daemon.pid` / `.open-boot.pid`)。
166
178
  >
@@ -170,17 +182,18 @@
170
182
 
171
183
  - Windows 10/11 · macOS · Linux(`/rescue` 与三个 bin 工具全平台可用;**开机自启管理目前为 Windows**)
172
184
  - Node.js ≥ 18 · DeepSeek Harness `dsh`(全局安装或 npx)· `pnpm`(`dsh plugin` 与更新功能依赖)
185
+ - `engines.node` 以 `package.json` 为准(本版仍是 `>=18.0.0`,**未收紧**);但 Node 18 已 EOL、pnpm 11 也不再支持 18/20/21,实际请在 **Node 22 LTS 或更新**上运行。engines 收紧排在 1.1.x。
173
186
  - 端口(均只监听 `127.0.0.1`):**3080** 引擎主界面 · **3081** 启动器(启动页 / 兜底页 / 救援页)· **3082** 备份救援 · **4081**(3081+1000)守护单实例锁;`DSH_LAUNCHER_PORT` / `DSH_ENGINE_PORT` 可覆盖
174
187
 
175
188
  ### 引擎兼容性矩阵
176
189
 
177
190
  | 你的 DSH 引擎 | 本管理器版本 | 说明 |
178
191
  |---|---|---|
179
- | **≥ 0.1.7-rc.2**(含 0.2.x,`<0.3.0-0`) | **1.0.0**(推荐)/ 0.9.1 | 独立插件页 + 兜底页 + 救援工具链全套;1.0.0 实测于 0.2.x 引擎(三分区 / 统一口径 / 事务卸载,隔离环境 + 主环境双验证) |
180
- | 0.1.6 及以后 | 0.9.1 | 官方 0.1.6 起内置插件管理页,本包接管(停用 `ui-plugin-manager` + 自己的行 id) |
181
- | **0.1.0-rc.6 ~ 0.1.5**(老引擎) | **0.8.2** | 旧「设置 → 插件」tab 路线;0.8.x 在 0.1.7 上不成立(typert strict codec / runtime 依赖移除) |
192
+ | **≥ 0.1.7-rc.2**(含 0.2.x,`<0.3.0-0`) | **1.0.3**(推荐)/ 1.0.2 / 1.0.1 / 1.0.0 | 独立插件页 + 兜底页 + 救援工具链全套;1.0.x 实测于 0.2.x 引擎(三分区 / 统一口径 / 事务卸载,隔离环境 + 主环境双验证) |
193
+ | 0.1.6 及以后 | **1.0.3** | 官方 0.1.6 起内置插件管理页,本包接管(停用 `ui-plugin-manager` + 自己的行 id) |
194
+ | **0.1.7-rc.2 之前**(0.1.0-rc.6 ~ 0.1.5) | 不支持 | 1.0.x 的 engines 下界就是 `0.1.7-rc.2`;旧引擎请留在旧包名的历史版本(该包已挂弃用提示,包未删除) |
182
195
 
183
- > **一句话**:引擎越新越要 1.0.0;引擎很老(0.1.6 之前)才需要 0.8.2。回退:`dsh plugin --profile web add dsh-plugin-manager-pro@0.8.2`。
196
+ > **一句话**:引擎 ≥ 0.1.7-rc.2 用 1.0.3。回退上一个正式版:`dsh plugin --profile web add dsh-drydock@1.0.2`。
184
197
 
185
198
  ## 🔐 权限与数据范围
186
199
 
@@ -192,9 +205,9 @@
192
205
  | `~/.dsh/profiles/<名字>/cordis.patch.yml` | 读/写插件启用状态与隔离行(只动带归属标记的部分,改前备份) | 否 |
193
206
  | `~/.dsh/profiles/<名字>/plugin-manager.json`(侧车) | 操作历史(20 条)、场景方案、来源人工修正、待清理列表、更新源配置 | 否 |
194
207
  | `~/.dsh/profiles/<名字>/node_modules/**` | 读依赖反向图与包简介;卸载/隔离时经 `pnpm` 删除 | 否(装卸时由 pnpm 访问 registry) |
195
- | `$DSH_HOME/downloads/*` | 「下载目录自动安装」扫描归档;写 `.installed` / `.failed` 标记 | 否 |
208
+ | `$DSH_HOME/downloads/*` | 「下载目录自动安装」扫描归档;只有带 provenance 记录(包名+版本+来源+摘要)的归档才会被自动安装;写 `.installed` / `.failed` 标记 | 否 |
196
209
  | 本机 npm 全局根 | **只读**:定位引擎自带的 `@deepseek-ai/*`、提取简介 | 否 |
197
- | 更新源(npm registry / dshfind / GitHub / 你加的镜像) | 查询最新版本、下载归档 | **只查询**,不上传本地数据 |
210
+ | 更新源(npm registry / GitHub / 你加的镜像) | 查询最新版本、下载归档 | **只查询**,不上传本地数据 |
198
211
  | 本机回环端口 3080 / 3081 / 3082 / 4081 | 主界面 / 启动器 / 备份救援 / 守护锁;全部只绑 `127.0.0.1` | 否(不出本机) |
199
212
  | Windows 注册表 `HKCU\...\Run\DSHWebFront` | **仅在显式执行 `--install-autostart` 时写入**;`--uninstall-autostart` 可清理 | 否 |
200
213
  | profile 内 `.rescue-daemon.pid`、`.open-boot.pid`、`health.log` 等 | 守护/启动器的 PID、日志与自检留痕(7 天 / 1000 行) | 否 |
@@ -210,21 +223,20 @@
210
223
  dsh plugin --profile web add dsh-drydock
211
224
 
212
225
  # 方式二:刚发版时(或在 24 小时冷静期内)——显式写版本号,最可靠
213
- dsh plugin --profile web add dsh-drydock@1.0.0
226
+ dsh plugin --profile web add dsh-drydock@1.0.3
214
227
 
215
228
  # 方式三:离线 tgz(GitHub Release 页下载,或 npm pack 自建)
216
- dsh plugin --profile web add ./dsh-drydock-1.0.0.tgz
229
+ dsh plugin --profile web add ./dsh-drydock-1.0.3.tgz
217
230
 
218
- # 老引擎(0.1.0-rc.6 ~ 0.1.5)或 0.9.x 装上去不生效时,回退到旧 UI 版
219
- # (0.8.2 只存在于旧包名 dsh-plugin-manager-pro 下,回退命令保留旧名)
220
- dsh plugin --profile web add dsh-plugin-manager-pro@0.8.2
231
+ # 回退上一个正式版(1.0.x 之间回退都走同一个包名,不需要旧包)
232
+ dsh plugin --profile web add dsh-drydock@1.0.2
221
233
 
222
234
  # 重启 web 生效(客户端 bundle 在引擎启动时加载,装完必须重启)
223
235
  dsh web
224
236
  ```
225
237
 
226
238
  > **装不到 / 装完还是旧版?** ① 客户端 bundle 只在引擎**启动时**加载——装完必须重启 `dsh web`;
227
- > ② pnpm 11 起有 **24 小时冷静期**(`minimumReleaseAge` 默认 1440 分钟),当天刚发布的版本不带版本号会解析到旧版——用"方式二"的显式版本号即可(也可把 `dsh-drydock@1.0.0` 加入 profile 的 `pnpm-workspace.yaml` 的 `minimumReleaseAgeExclude`)。
239
+ > ② pnpm 11 起有 **24 小时冷静期**(`minimumReleaseAge` 默认 1440 分钟),当天刚发布的版本不带版本号会解析到旧版——用"方式二"的显式版本号即可(也可把 `dsh-drydock@1.0.3` 加入 profile 的 `pnpm-workspace.yaml` 的 `minimumReleaseAgeExclude`)。
228
240
 
229
241
  装好后两个入口:3080 侧边栏**「插件管理」**(内置插件页已接管);3081 `http://127.0.0.1:3081/plugins`(引擎不可用时仍可用)。浏览器主页设为 `http://127.0.0.1:3081/` = 打开即自检启动引擎。
230
242
 
@@ -234,8 +246,8 @@ pnpm update dsh-drydock --latest --dir <profile>
234
246
 
235
247
  # 卸载:3081 兜底页「卸载」(带备份、验证与失败回滚),或
236
248
  dsh plugin --profile web remove dsh-drydock # 卸载前自动清理自启/守护/shim
237
- npx dsh-pm-launcher --uninstall-autostart # Windows:清理开机自启(幂等)
238
- npx dsh-pm-launcher --uninstall # 需要时:彻底清理启动器痕迹(引擎 3080 与日志保留)
249
+ npx dsh-drydock --uninstall-autostart # Windows:清理开机自启(幂等)
250
+ npx dsh-drydock --uninstall # 需要时:彻底清理启动器痕迹(引擎 3080 与日志保留)
239
251
  ```
240
252
 
241
253
  ## 救援流程速查
@@ -247,10 +259,10 @@ npx dsh-pm-launcher --uninstall # 需要时:彻底清
247
259
  | 插件被禁用到界面起不来 | `http://127.0.0.1:3081/plugins` 直接 toggle(该页不依赖引擎) |
248
260
  | 某个插件把引擎打挂 | 3081 `/plugins` → mod 体检看 verdict → 禁用观察或卸载(带备份与验证) |
249
261
  | 卸载/更新被引擎占用 | 拒绝硬删并引导:先禁用 → 重启引擎 → 再操作 |
250
- | 需要独立于 3081 的备份救援入口 | `npx dsh-pm-rescue`(默认 3082,不抢端口) |
251
- | 想知道 3080/3081/3082/4081 到底什么状态 | `npx dsh-pm-launcher --status`(并追加一条 `health.log` 留痕) |
252
- | 命令行一键自检+启动 | `npx dsh-pm-boot`(启动)或 `npx dsh-pm-boot --repair-only`(只自检+修复) |
253
- | 彻底移除启动器 | `npx dsh-pm-launcher --uninstall`(退出码 2 = 归属未确认:不动任何进程) |
262
+ | 需要独立于 3081 的备份救援入口 | `npx dsh-drydock-rescue`(默认 3082,不抢端口) |
263
+ | 想知道 3080/3081/3082/4081 到底什么状态 | `npx dsh-drydock --status`(并追加一条 `health.log` 留痕) |
264
+ | 命令行一键自检+启动 | `npx dsh-drydock-boot`(启动)或 `npx dsh-drydock-boot --repair-only`(只自检+修复) |
265
+ | 彻底移除启动器 | `npx dsh-drydock --uninstall`(退出码 2 = 归属未确认:不动任何进程) |
254
266
 
255
267
  > **已知限制**:入口 token URL 只有在引擎 stdout 落到 `<DSH_HOME>/logs/web.log` 时才取得到(启动器经 `enginectl` 拉起时正常落盘)。若引擎由其他路径拉起(如 `dsh-boot` 的弹窗路径),3081 可能给不出可直接跳转的链接——到 `/rescue` 执行一次「重启引擎」即可恢复。
256
268
 
@@ -278,8 +290,8 @@ npx dsh-pm-launcher --uninstall # 需要时:彻底清
278
290
  - **运行期错误**:从 cordis 的 `fiber._error` 取真实错误文本(诊断与救援页能看到失败原因)
279
291
  - **插件页接管**(`src/client.jsx` + `cordis.patch.yml`):客户端注册进 `main`(key=`plugins`)与 `sidebar.panellist`(id=`plugins`),patch 停用内置 `ui-plugin-manager`;用自己的行 id `drydock` 不与官方同名;注册内置页原有的 `plugins.*` 子槽位,第三方配置卡片有真实渲染出口
280
292
  - **开关持久化**:写入 profile 的 `cordis.patch.yml`(带归属注释行,不触碰用户自有补丁)
281
- - **更新源聚合**(`lib/aggregate.js` + `compare-versions.js`):多源并行 → 最高版本 → 并列随机;源级熔断;完整支持预发布段
282
- - **下载器**(`lib/downloader.js`):HTTP 直链流式;magnet/.torrent 优先外部下载器 → 内置 webtorrent → 提示手动导入
293
+ - **更新源聚合**(`lib/aggregate.js` + `compare-versions.js`):信任层按源 `authoritative` 判定(不是按源类型)→ 权威源之间取最高(并列随机)→ 没有权威版本才降级兜底并标 `degraded`;源级熔断;预发布只出现在 `@deepseek-ai/*` 的 `next` 轨道
294
+ - **下载器**(`lib/downloader.js`):HTTP 直链流式;magnet/.torrent 优先外部下载器 → 内置 webtorrent → 提示手动导入;下载目录自动安装靠侧车 `pendingDownloads` 记录做 provenance 比对
283
295
  - **跨平台**(`lib/platform.js`):npm 全局根按平台定位(10 分钟缓存)
284
296
  - **独立救援**(`lib/preflight.mjs` + `lib/enginectl.mjs`):纯 Node 自检/修复 + 引擎生命周期,被三个 bin 工具复用;与 host 方法同源逻辑
285
297
  - **本地写接口防护**:`Origin` + 一次性令牌 + 单飞三道闸,第三方网页无法触发启动/停止
@@ -299,6 +311,7 @@ node test-launcher.mjs # 启动器全量回归(354 项
299
311
  node tools/smoke-plugins-api.mjs # 独立端口 + 临时 DSH_HOME 的 /plugins API 冒烟(28 项)
300
312
  npm run check:vendor # 迁移件内容级校验(tgz 内文件 sha256 == 工作树)
301
313
  node tools/dev/gen-changelog.mjs # 从 docs/releases/*.md 生成 CHANGELOG.md(--check 校验一致)
314
+ node test-docs.mjs # 文档/版本号口径断言(离线、零依赖:README 版本号 == package.json、发布说明与 CHANGELOG 含 1.0.3)
302
315
  npm run pack # build + npm pack(产出安装用 tarball)
303
316
  ```
304
317
 
@@ -313,7 +326,7 @@ npm run pack # build + npm pack(产出安装
313
326
  | 装完界面还是旧的 / 新页面不出现 | 客户端 bundle 在引擎启动时加载:**必须重启 `dsh web`**(或让启动器重新拉起引擎) |
314
327
  | 启停插件后列表状态没变 | 引擎在启动时套用条目:配置已写入,**重启引擎后生效**(界面会在需要重启时提示) |
315
328
  | `dsh plugin add` 报 "Already up to date" 不更新 | pnpm 按版本号缓存 tarball;**修改后必须升版本号**再 add |
316
- | 引擎起不来(坏 bundle 进 package.json) | 开 `http://127.0.0.1:3081/rescue` → 运行检查 → 修复 → 启动;或 `npx dsh-pm-boot --repair-only` |
329
+ | 引擎起不来(坏 bundle 进 package.json) | 开 `http://127.0.0.1:3081/rescue` → 运行检查 → 修复 → 启动;或 `npx dsh-drydock-boot --repair-only` |
317
330
  | 想禁用管理器自己 | 3080 界面内不可自禁:去 `http://127.0.0.1:3081/plugins`(独立于引擎存活)或用 `dsh plugin remove`;3080 内允许的是**卸载**(额外警告路径,自动清理自启) |
318
331
  | 列表分区和我认知的不一样 | v1.0 起按来源三分区(核心组件 / 引擎内置组件 / 用户插件);「推荐」只是行内标签,不再是分区 |
319
332
  | 担心第三方网页能触发启动/停止 | 不会:写接口要**同源 `Origin` + 一次性令牌**,并发受单飞闸门限制(403 / 401 / 409)——见 [docs/LAUNCHER.md](docs/LAUNCHER.md) §4 |
@@ -331,6 +344,6 @@ MIT。补丁持久化机制借鉴 [hrhgit/deepseek-harness-plugin-manager](https
331
344
 
332
345
  An English README lives at [README.en.md](README.en.md). Quick version:
333
346
 
334
- A local plugin manager for DeepSeek Harness. It takes over the engine's built-in plugin page as a **standalone page** (sidebar entry "Plugin manager"): since **1.0.0** the list is grouped **by origin** — **Core components (locked) · Engine built-ins · User plugins** — with "Recommended" demoted to an inline row tag. Sections: Official built-ins (optional) · All plugins · Market · Operations & scenarios · Maintenance. It also ships a **standalone rescue toolchain**: `open-boot` (the single web entry on **3081**: boot page `/` + fallback manager page `/plugins` + rescue page `/rescue`), `rescue-daemon` (independent backup rescue service on **3082**), and `dsh-boot` (Steam-style boot sequence with exit codes). Transactional uninstall with impact preview, pre-uninstall health check, operation history (undo) and named scenarios included. Cross-platform, zero new runtime dependencies.
347
+ A local plugin manager for DeepSeek Harness. It takes over the engine's built-in plugin page as a **standalone page** (sidebar entry "Plugin manager"): since **1.0.0** the list is grouped **by origin** — **Core components (locked) · Engine built-ins · User plugins** — with "Recommended" demoted to an inline row tag. Sections: Official built-ins (optional) · All plugins · Market · Operations & scenarios · Maintenance. It also ships a **standalone rescue toolchain**: `open-boot` (the single web entry on **3081**: boot page `/` + fallback manager page `/plugins` + rescue page `/rescue`), `rescue-daemon` (independent backup rescue service on **3082**), and `dsh-boot` (Steam-style boot sequence with exit codes). Transactional uninstall with impact preview, pre-uninstall health check, operation history (undo) and named scenarios included. Cross-platform, zero new runtime dependencies. **Update-source trust model (1.0.3)**: npm official / GitHub official repo / npmmirror by default, the registry is authoritative, custom sources are fallback-only unless explicitly marked `authoritative`, plain `http://` sources are allowed but labelled "plaintext · fallback only", only `@deepseek-ai/*` uses the `next` track, and auto-install from the downloads folder now requires a provenance record.
335
348
 
336
- Install: `dsh plugin --profile web add dsh-drydock` (pin `@1.0.0` if the release is less than 24 h old — pnpm's `minimumReleaseAge` default blocks brand-new versions) → restart `dsh web` → open the sidebar "Plugin manager". Details: [README.en.md](README.en.md).
349
+ Install: `dsh plugin --profile web add dsh-drydock` (pin `@1.0.3` if the release is less than 24 h old — pnpm's `minimumReleaseAge` default blocks brand-new versions) → restart `dsh web` → open the sidebar "Plugin manager". Details: [README.en.md](README.en.md).