@noob-stupid/dsh-plugin-console 0.3.26 → 0.3.28

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.md CHANGED
@@ -18,136 +18,23 @@
18
18
  [![GitHub Release](https://img.shields.io/github/v/release/Noob-stupid/dsh-plugin-hub?style=flat-square)](https://github.com/Noob-stupid/dsh-plugin-hub/releases)[![dsh.so security](https://www.dsh.so/badge/dsh-plugin-hub.svg)](https://www.dsh.so/artifact/dsh-plugin-hub)
19
19
  [![dsh.so install](https://www.dsh.so/badge/install/dsh-plugin-hub.svg)](https://www.dsh.so/artifact/dsh-plugin-hub)
20
20
 
21
+ > Manage all your DeepSeek Harness plugins in one panel: one-click enable/disable,
22
+ > a 500+ plugin & skill marketplace with one-click install, and one-click framework
23
+ > upgrade with auto-rollback.
21
24
 
25
+ ## Why DSH Plugin Hub
22
26
 
23
- > ## 🎉 v0.3.25 released — framework-upgrade safety & plugin adapt gate (2026-09-04)
24
- >
25
- > **Upgrade safety trio**: framework root detection (fixes the `.pnpm` realpath
26
- > mixed-version root cause), a **full-tree checkpoint** before upgrade, and
27
- > **automatic full-tree rollback** on install/relaunch failure — plus a
28
- > **one-click rollback** button on the framework card.
29
- > **Plugin adapt gate**: plugins incompatible with the new framework are
30
- > force-disabled (enable locked); 「Check update → Update & adapt」auto-verifies
31
- > declarations/dependencies and unlocks on success; AI Empower pre-checks
32
- > framework compatibility during planning.
33
- >
34
- > **Install:**
35
- > ```bash
36
- > npm i -g @noob-stupid/dsh-plugin-console
37
- > # or in DSH: dsh plugin --profile web add @noob-stupid/dsh-plugin-console
38
- > ```
39
- > **Try it:** Plugin Console → **AI 赋能** button → enter e.g. `OpenViking` → confirm the plan.
40
- >
41
- > Feedback: [GitHub Issues](https://github.com/Noob-stupid/dsh-plugin-hub/issues).
42
- A **plugin management panel** for the DeepSeek Harness (DSH) Web GUI: one-click
43
- enable/disable of installed plugins, a **multi-source plugin marketplace**
44
- (GitHub / Gitee / custom sources) with one-click install, an **auto-collected
45
- static plugin & skill index** refreshed by CI every 6 hours, skill install/disable,
46
- suite one-click assembly, and **one-click framework upgrade** (online install with
47
- auto-rollback).
48
-
49
- > ## 🎯 One-click framework upgrade (v0.3.13 highlight)
50
- >
51
- > Open the "Plugin Console" panel → **Plugin Marketplace** → the
52
- > `deepseek-ai/deepseek-harness` card → click **"Framework Upgrade → vX"**:
53
- > **backup config & framework (rollback point) → online install (service stays up) →
54
- > version verification → auto-rollback on failure → auto-restart**.
55
- >
56
- > After upgrade, framework packages are **auto-relinked** (fixes pnpm top-level link
57
- > staleness that caused mixed versions, e.g. an old model plugin missing vision models).
58
- > Tested: 0.1.0-rc.8 → **0.1.1-rc.2** end-to-end automatic, rollback-safe.
59
-
60
- <!-- TOC -->
61
- - [Highlights](#highlights)
62
- - [One-click install](#one-click-install)
63
- - [Usage](#usage)
64
- - [Features](#features)
65
- - [How it works](#how-it-works)
66
- - [Compatibility](#compatibility)
67
- - [Project layout](#project-layout)
68
- - [HTTP endpoints](#http-endpoints)
69
- - [Local AI fallback & consent dialog](#local-ai-fallback--consent-dialog)
70
- - [Framework patch (cordis.patch.yml parse tolerance)](#framework-patch-cordispatchyml-parse-tolerance)
71
- - [Security](#security)
72
- - [Disclaimer](#disclaimer)
73
- - [Known limitations](#known-limitations)
74
- - [Help](#help)
75
- - [Ecosystem & discoverability](#ecosystem--discoverability)
76
- - [Support](#support)
77
- - [Changelog](#changelog)
78
- - [License](#license)
79
- <!-- /TOC -->
80
-
81
- ---
82
-
83
- ## Highlights
84
-
85
- | | Benefit | Detail |
86
- |---|---|---|
87
- | 🤖 | **AI Empower (v0.3.24)** | Give the console a package name or GitHub repo — the local AI reads docs, drafts a **deployment plan** (install / write config / start service / health check) and executes it safely after your confirmation; server-type components get an automatic control card |
88
- | 🛡️ | **Framework upgrade safety & adapt gate (v0.3.25)** | Force-disables plugins incompatible with the new framework (enable locked; 「Check update → Update & adapt」auto-verifies and unlocks); full-tree checkpoint before upgrade, automatic rollback on relaunch failure, one-click rollback to the previous version |
89
- | 🚀 | **Server component cards** | Left-side floating card auto-aligned to the main panel: start / stop / status / **open Web UI** buttons, multi-server dropdown, collapsible |
90
- | 🧩 | **Plugin & skill hub** | Auto-collected index of `dsh-plugin` topic repos (**500+** by stars) plus a **Skills tab** (`agent-skills` ∪ `claude-skills` ∪ `dsh-skill`, up to 300) — browse, search, one-click install, no GitHub API calls |
91
- | 🤖 | **Auto-collection CI** | GitHub Actions reruns `build-index` every 6 hours (manual trigger available); authors just add the `dsh-plugin` / `agent-skills` / `claude-skills` / `dsh-skill` topic — no application needed |
92
- | ⚡ | **Instant, rate-limit-free** | The index is served as a static `marketplace/index.json` via jsDelivr CDN (10-min host cache); terminal users make **zero GitHub API calls** |
93
- | 🔄 | **Version detection & one-click update** | Semver-based; installed entries match npm `dist-tags.latest` / `beta`; subpackage mismatch warnings prevent mixed-version breakage |
94
- | 🔀 | **Multi-source** | GitHub / Gitee (direct-repo mode) / custom search sources (URL template + header auth + private http); `⊞` merges GitHub + all custom sources in parallel |
95
- | 🔒 | **Safe by default** | Loopback-only routes; AI fallback behind an explicit cost-consent modal; infrastructure rows are toggle-protected |
96
-
97
- <details>
98
- <summary><b>📑 目录 / Table of Contents</b></summary>
99
-
100
- - [Highlights](#highlights)
101
- - [AI 赋能与服务器组件控制](#ai-赋能与服务器组件控制)
102
- - [One-click install](#one-click-install)
103
- - [Usage](#usage)
104
- - [Features](#features)
105
- - [How it works](#how-it-works)
106
- - [Compatibility](#compatibility)
107
- - [Project layout](#project-layout)
108
- - [HTTP endpoints](#http-endpoints)
109
- - [Security](#security)
110
- - [Known limitations](#known-limitations)
111
- - [Help & Ecosystem](#help--ecosystem)
112
- - [Contributing](#contributing)
113
- - [Changelog](#changelog)
114
- - [License](#license)
115
- </details>
116
-
117
- ---
118
-
119
- ## AI 赋能与服务器组件控制
120
-
121
- > **AI Empower** — v0.3.24 正式版核心功能。
122
-
123
- 在插件控制台输入 **npm 包名或 GitHub 仓库**(如 `OpenViking`、`@noob-stupid/dsh-plugin-console`):
124
-
125
- 1. **AI 读文档出计划**:子代理调研 README/docs,产出结构化计划(类型:纯插件 / 服务器组件 / 仅配置;步骤:安装 / 写配置 / 下载 / 启动服务 / 健康检查);
126
- 2. **你确认**(计划在弹窗里逐步骤勾选)——安全护栏:命令/路径白名单、破坏性命令拦截、日志脱敏;
127
- 3. **安全执行**:实时回显日志、可中断、幂等(已装/已下载/服务健康则复用);
128
- 4. **自动生成组件卡片**:服务器类组件注册到组件清单,卡片出现在主面板左侧(启动/停止/状态/【打开】直达 Web UI;多服务器时 ▾ 下拉;打开详情时自动隐藏;可折叠并有状态记忆)。
129
-
130
- **内置 OpenViking 模板**:输入 `OpenViking` 秒出计划(pip 装 `openviking[local-embed]` → 下载中文嵌入模型 → 写 `ov.conf`(复用 DSH 的 DeepSeek 凭据,支持独立区块覆盖)→ 启动服务器 → 健康检查)。
131
-
132
- **模型配置**:默认跟随 DSH(`settings.yaml` + `.credentials.yaml`);可建 `~/.dsh/plugin-console/ai-empower.json` 独立覆盖:
133
-
134
- ```json
135
- { "vlm": { "provider": "openai", "api_base": "https://api.deepseek.com", "model": "deepseek-v4-flash-vision-exp" }, "api_key": "sk-..." }
136
- ```
137
-
138
- ---
139
-
140
- > **For plugin authors**: add the `dsh-plugin` topic to your repo — the official
141
- > [topic list](https://github.com/topics/dsh-plugin) is how both the ecosystem and this
142
- > hub discover you. For skills, add `agent-skills` / `claude-skills` / `dsh-skill`.
143
-
144
- ---
145
-
146
- ## One-click install
147
-
148
- ### Option 1: official command (recommended)
27
+ - 🧩 **Plugin & skill hub** — auto-collected index of `dsh-plugin` repos (500+ by
28
+ stars) plus a Skills tab; browse, search, one-click install, **zero GitHub API
29
+ calls** (served via CDN).
30
+ - 🚀 **One-click framework upgrade** — backup → online install (service stays up) →
31
+ verify → **auto-rollback on failure**. Tested end-to-end.
32
+ - 🤖 **AI Empower** — give the console a package name or GitHub repo, the local AI
33
+ reads its docs and drafts a safe, confirmable deployment plan (install / config /
34
+ start / health-check); server components get an automatic control card.
35
+ → [details](docs/ai-empower.md)
149
36
 
150
- The plugin declares a `dsh.bundle` manifest, so a single command installs and enables it:
37
+ ## Install
151
38
 
152
39
  ```sh
153
40
  # npm release (recommended: prebuilt, no git / build authorization needed)
@@ -157,14 +44,9 @@ dsh plugin --profile web add @noob-stupid/dsh-plugin-console
157
44
  dsh plugin --profile web add github:Noob-stupid/dsh-plugin-hub
158
45
  ```
159
46
 
160
- Uninstall / reinstall (update):
161
-
162
- ```sh
163
- dsh plugin --profile web remove @noob-stupid/dsh-plugin-console
164
- dsh plugin --profile web add @noob-stupid/dsh-plugin-console
165
- ```
47
+ Then restart the dsh service → refresh the page → **Settings → Plugins → Plugin Console**.
166
48
 
167
- Then restart the dsh service → refresh the page → Settings → Plugins → Plugin Console.
49
+ <details><summary><b>More install options</b> (deploy script / hand it to an AI)</summary>
168
50
 
169
51
  ### Option 2: deploy script (fallback when network is restricted)
170
52
 
@@ -193,6 +75,45 @@ idempotently appends an enable entry to `cordis.patch.yml`. Afterwards:
193
75
 
194
76
  Requires: DSH ≥ 0.1.0-rc.6 (web profile, with `dsh-client-modules` / `dsh-host-plugin-inventory`).
195
77
 
78
+ </details>
79
+
80
+ ---
81
+
82
+ ## Highlights
83
+
84
+ | | Benefit | Detail |
85
+ |---|---|---|
86
+ | 🤖 | **AI Empower ** | Give the console a package name or GitHub repo — the local AI reads docs, drafts a **deployment plan** (install / write config / start service / health check) and executes it safely after your confirmation; server-type components get an automatic control card |
87
+ | 🛡️ | **Framework upgrade safety & adapt gate ** | Force-disables plugins incompatible with the new framework (enable locked; 「Check update → Update & adapt」auto-verifies and unlocks); full-tree checkpoint before upgrade, automatic rollback on relaunch failure, one-click rollback to the previous version |
88
+ | 🏠 | **Family-bundle cards & safety ** | Same-root subpath exports group into one family card (collapse/expand, batch check-update, one-click unlock-adapted, known-check preview); never-crash safety (pre-enable import probe + patch auto-heal + exports fallback); adapt-gate source-scan hard criterion & migrate detection; deleting a bundle sub-row disables only that row |
89
+ | 🚀 | **Server component cards** | Left-side floating card auto-aligned to the main panel: start / stop / status / **open Web UI** buttons, multi-server dropdown, collapsible |
90
+ | 🧩 | **Plugin & skill hub** | Auto-collected index of `dsh-plugin` topic repos (**500+** by stars) plus a **Skills tab** (`agent-skills` ∪ `claude-skills` ∪ `dsh-skill`, up to 300) — browse, search, one-click install, no GitHub API calls |
91
+ | 🤖 | **Auto-collection CI** | GitHub Actions reruns `build-index` every 6 hours (manual trigger available); authors just add the `dsh-plugin` / `agent-skills` / `claude-skills` / `dsh-skill` topic — no application needed |
92
+ | ⚡ | **Instant, rate-limit-free** | The index is served as a static `marketplace/index.json` via jsDelivr CDN (10-min host cache); terminal users make **zero GitHub API calls** |
93
+ | 🔄 | **Version detection & one-click update** | Semver-based; installed entries match npm `dist-tags.latest` / `beta`; subpackage mismatch warnings prevent mixed-version breakage |
94
+ | 🔀 | **Multi-source** | GitHub / Gitee (direct-repo mode) / custom search sources (URL template + header auth + private http); `⊞` merges GitHub + all custom sources in parallel |
95
+ | 🔒 | **Safe by default** | Loopback-only routes; AI fallback behind an explicit cost-consent modal; infrastructure rows are toggle-protected |
96
+
97
+ <details>
98
+ <summary><b>📑 目录 / Table of Contents</b></summary>
99
+
100
+ - [Highlights](#highlights)
101
+ - [AI 赋能与服务器组件控制](#ai-赋能与服务器组件控制)
102
+ - [One-click install](#one-click-install)
103
+ - [Usage](#usage)
104
+ - [Features](#features)
105
+ - [How it works](#how-it-works)
106
+ - [Compatibility](#compatibility)
107
+ - [Project layout](#project-layout)
108
+ - [HTTP endpoints](#http-endpoints)
109
+ - [Security](#security)
110
+ - [Known limitations](#known-limitations)
111
+ - [Help & Ecosystem](#help--ecosystem)
112
+ - [Contributing](#contributing)
113
+ - [Changelog](#changelog)
114
+ - [License](#license)
115
+ </details>
116
+
196
117
  ---
197
118
 
198
119
  ## Usage
@@ -250,47 +171,6 @@ Requires: DSH ≥ 0.1.0-rc.6 (web profile, with `dsh-client-modules` / `dsh-host
250
171
  - **Card dismiss semantics**: terminal states (done/failed) are permanently dismissed on ✕
251
172
  (persisted); in-progress dismissal is session-only and the card returns after a refresh.
252
173
 
253
- ### Framework upgrade safety & plugin adapt gate (v0.3.25)
254
-
255
- > Origin: the 2026-09-04 DSH `0.1.1-rc.2 → 0.1.2-rc.1` incident — the upgrade script ran in
256
- > the wrong working directory, overwrote the new CLI into the old `.pnpm` entry, left a
257
- > mixed-version tree, and the service could not start. This version makes upgrade safety
258
- > and plugin compatibility detection first-class console mechanisms.
259
-
260
- **Upgrade safety trio**
261
-
262
- 1. **Framework root detection**: locates the real install root (the top-level `node_modules`
263
- containing `.pnpm`), fixing the `require.resolve`-returns-`.pnpm`-realpath root cause
264
- (relink no-op / new package overwriting the old tree); refuses to upgrade when the root
265
- cannot be identified (service stays running);
266
- 2. **Full-tree checkpoint before upgrade**: mirrors every `@deepseek-ai` version package in
267
- `.pnpm` + the top-level scope + `lock.yaml`
268
- (under `~/.dsh/plugin-console/framework-backups/<version>/fw-tree/`);
269
- 3. **Automatic full-tree rollback + retry**: install failure or relaunch failure restores
270
- the pre-upgrade tree and relaunches automatically — no more "please run it manually"
271
- dead-ends; after rollback, relink/repair steps are skipped to avoid damaging the
272
- restored tree a second time.
273
-
274
- **One-click rollback**: after an upgrade the framework card shows a **「回滚到上一版」** button
275
- (`/plugin-console/framework-rollback`): stop service → restore full tree → relaunch →
276
- health check, state visible throughout.
277
-
278
- **Plugin adapt gate (compatibility detection)**
279
-
280
- - After an upgrade, plugin entries recorded in `~/.dsh/plugin-console/compat-pending.json`
281
- are **force-disabled**; the enable button is locked and the server rejects `/toggle` with
282
- 409 (unbypassable). The enabled-button label itself shows「待适配」as the state hint;
283
- - The **details** panel explains the flow: **Check update → Update & adapt**;
284
- - **Post-update auto-verification**: scans the latest `package.json` for an explicit
285
- `dsh.engines.framework` / `engines.dsh` declaration plus `@deepseek-ai/*` dependency
286
- ranges (built-in zero-dependency semver engine — strict npm prerelease rules for
287
- dependencies, loose for explicit declarations); if the version changed and no
288
- incompatibility was found, the `disabled` block is **removed automatically** and the row
289
- unlocks; aggregator updates validate all synced subpackages too;
290
- - **AI Empower pre-check**: during planning the server pre-checks the registry's latest
291
- declaration and adapt-gate hits, injects them into the subagent prompt (the plan must
292
- explain the conclusion to the user) and marks it on the plan panel (red for incompatible).
293
-
294
174
  ### Marketplace (multi-source)
295
175
 
296
176
  - **Source switcher**: click the login pill to switch between **GitHub / Gitee / custom
@@ -340,183 +220,13 @@ The floating "Sources" button (right of the title row, semi-transparent) opens t
340
220
 
341
221
  ---
342
222
 
343
- ## How it works
344
-
345
- ### Toggle semantics
346
-
347
- The DSH web profile is composed of a bundle patch layer plus the user patch layer
348
- (`$DSH_HOME/profiles/web/cordis.patch.yml`); patches are **per-key overrides**.
349
- Toggling a plugin just appends/removes two YAML lines:
350
-
351
- ```yaml
352
- - id: plugin-entry-id
353
- disabled: true
354
- ```
355
-
356
- The config watcher (HMR) recomposes within ~1s — no restart needed except for host code.
357
-
358
- ### Install chain
359
-
360
- ```
361
- configured registries (primary→backup, default npmmirror → npmjs)
362
- → curl manual install (node networking blocked: tarball into node_modules)
363
- → git channel (GitHub via proxy+direct, Gitee via its platform)
364
- → EPERM stale-dir cleanup retry
365
- → repository subpackage expansion (aggregate packages first)
366
- → local AI fallback (behind an explicit cost-consent modal)
367
- ```
368
-
369
- Skills install directly by `git clone --depth 1` → copy SKILL.md bundle into
370
- `~/.dsh/skills/<name>/` (no npm, no patch, no restart).
371
-
372
- ### Data sources
373
-
374
- ```
375
- GitHub Actions (every 6h, repo token)
376
- └─ scripts/build-index.cjs: pages topic:dsh-plugin (500 by stars) + skills topics (300)
377
- └─ commits marketplace/index.json back to main
378
- └─ host reads it via jsDelivr CDN (10-min cache) → instant market, zero API calls
379
- └─ live search still uses the GitHub search API (browser-direct + server channel)
380
- ```
381
-
382
- ### Version detection & installed recognition
383
-
384
- - **Installed recognition**: match installed entries by `repository` field or module name
385
- against market items (repo name → package name mapping);
386
- - **Version detection**: `check-update` reads npm `dist-tags.latest` via curl; for aggregate
387
- packages it also compares subpackage declared vs actual versions (depsOutdated) to prevent
388
- mixed-version startup conflicts.
389
-
390
- ---
391
-
392
- ## Compatibility
393
-
394
- - Supports the **DSH 0.1.0 series** (`0.1.0-rc.6` and siblings).
395
- - The panel reads the running `@deepseek-ai/dsh-web-app` version: after a breaking upgrade
396
- (0.2 / 1.0) a compatibility warning appears instead of silent failure.
397
- - **Plugin adapt gate (v0.3.25)**: third-party plugins incompatible with the current
398
- framework are force-disabled after an upgrade (enable locked); run 「Check update」to
399
- upgrade the plugin first — it unlocks automatically after the auto-verification passes.
400
- See 「Framework upgrade safety & plugin adapt gate」.
401
- - Likely breaking seams: patch semantics, `webServer.register`, loader entry shape,
402
- `dsh.client` bundle format, `settings.plugins.tab` slot.
403
- - Deploy scripts do not check versions; the in-panel warning is authoritative.
404
-
405
- ---
406
-
407
- ## Project layout
408
-
409
- ```
410
- lib/index.js Host plugin (/plugin-console/* routes + patch I/O + multi-source search + install)
411
- lib/client.js Browser bundle (ModuleLoader format, settings tab)
412
- scripts/build-index.cjs Index builder (plugins --limit 500 / skills --skills --limit 300)
413
- scripts/apply-framework-patch.cjs Framework patch (issue #5, idempotent)
414
- .github/workflows/registry.yml Auto-collection CI (every 6h + manual dispatch)
415
- marketplace/index.json Generated static index (jsDelivr CDN)
416
- deploy.ps1 / deploy.sh One-click deploy scripts (Windows / Linux·macOS)
417
- test-harness.mjs Logic self-test (state/toggle/validation/loopback; search SKIP by network)
418
- ```
419
- <img width="1878" height="945" alt="image" src="https://github.com/user-attachments/assets/b26f2f19-0ba4-4be7-9ca1-b3fd4c51a7a8" />
420
-
421
- ---
422
-
423
- ## HTTP endpoints
424
-
425
- | Endpoint | Method | Purpose |
426
- |---|---|---|
427
- | `/plugin-console/state` | GET | Plugin list + patch state + compat + running install jobs |
428
- | `/plugin-console/toggle` | POST | Enable/disable an entry (writes user patch layer) |
429
- | `/plugin-console/uninstall` | POST | Remove entry + uninstall package (bundle-aware) |
430
- | `/plugin-console/search` | POST | Multi-source search (github/gitee/custom, `multi` merge) |
431
- | `/plugin-console/repo` | POST | Repo metadata: package.json, private root, dsh hint, **hasSkill** |
432
- | `/plugin-console/enrich` | POST | Server-side type markers (official/aggregate/skill) |
433
- | `/plugin-console/install` | POST | Install (plugin or `kind: skill`), returns a job id |
434
- | `/plugin-console/install-status` | POST | Poll an install job |
435
- | `/plugin-console/check-update` | POST | npm latest version + subpackage mismatch check |
436
- | `/plugin-console/market-index` | POST | Static index (jsDelivr CDN, 10-min cache) |
437
- | `/plugin-console/skills-installed` | GET | Installed skills under `~/.dsh/skills` |
438
- | `/plugin-console/sources` | GET/POST | Registry & search-source manager, Gitee OAuth setup |
439
- | `/plugin-console/gitee-oauth-url` / `gitee-oauth-callback` | GET | Gitee OAuth flow |
440
- | `/plugin-console/ai-consent` | POST | Approve/cancel the AI-fallback step |
441
- | `/plugin-console/restart` | POST | Watchdog-safe self-restart (panel button equivalent) |
442
- | `/plugin-console/framework-upgrade` | POST | One-click framework upgrade (full-tree checkpoint → online install → rollback protection) |
443
- | `/plugin-console/framework-rollback` | POST | One-click rollback to the previous version (stop → full-tree restore → auto relaunch → health check) |
444
- | `/plugin-console/self-update` | POST | Update the console itself (latest npm tarball into the profile) |
445
- | `/plugin-console/ai-empower/plan` / `status` / `run` / `cancel` | POST | AI Empower: plan (with framework compat pre-check) → status polling → confirmed run → cancel |
446
- | `/plugin-console/components` / `component/start` / `stop` / `status` | GET/POST | Server component registry and start/stop/status |
447
-
448
- ---
449
-
450
- ## Local AI fallback & consent dialog
451
-
452
- Installation goes through a **deterministic channel chain**:
453
- `configured sources (primary→backup) → curl manual install → git channel → EPERM cleanup retry
454
- → repository subpackage expansion`. Only when all deterministic channels fail does the
455
- **local AI fallback** take over.
456
-
457
- **What it is**: a local AI subagent takes over the install — it diagnoses like a human
458
- (inspects repo structure, finds subpackages/aggregate packages, cleans leftovers), installs
459
- with the right package manager and writes the config. **Note: this step calls a DeepSeek API
460
- model and may incur API costs.**
461
-
462
- **Consent dialog (cost transparency)**:
463
-
464
- 1. After all deterministic channels fail, the task enters "waiting for authorization" and a
465
- top-most modal appears:
466
- - explicitly states "will call a DeepSeek API model, may incur API costs"
467
- - offers **Approve, continue** / **Cancel** (Cancel = zero cost)
468
- - auto-cancels after 10 minutes
469
- 2. The modal offers **"Don't ask again"** (auto-approve) — restorable at the bottom of the
470
- marketplace page.
471
- 3. The floating **"AI fallback"** toggle can disable the feature entirely: deterministic
472
- failures cancel the install, **never calling a model API (zero cost)**.
473
-
474
- ---
475
-
476
- ## Framework patch (cordis.patch.yml parse tolerance)
477
-
478
- **Problem (issue #5)**: if `cordis.patch.yml` contains a top-level `[]` placeholder plus
479
- later entries (two YAML root nodes), DSH fails at startup:
480
- `end of the stream or a document separator is expected`.
481
-
482
- **Fix location**: `parsePatchList` in the DSH framework `dsh-app-boot` — on parse failure,
483
- top-level empty-array placeholder lines are dropped (treated as no-op) and parsing retries;
484
- normal files, pure `[]` files, and indented sub-arrays are unaffected.
485
-
486
- **Apply** (re-run after every DSH upgrade, which overwrites framework files):
487
-
488
- ```bash
489
- node scripts/apply-framework-patch.cjs
490
- ```
491
-
492
- The script locates `dsh-app-boot/lib/index.js` in the npx cache, skips when already patched
493
- (idempotent), and keeps a `.bak-issue5` backup on first apply.
494
-
495
- ---
496
-
497
- ## Security
498
-
499
- - All routes are loopback-only;
500
- - GitHub metadata is used only to discover public plugins; npm installs keep full TLS
501
- validation against the registry;
502
- - GitHub search is browser-direct; Gitee/custom source requests and headers (including
503
- credentials) are handled server-side only and never shipped to the browser;
504
- - Custom source URLs accept https and local/private http only (127.0.0.1, localhost,
505
- 10.x, 192.168.x, 172.16-31.x, etc.);
506
- - Skills are plain files (SKILL.md + assets) — installing a skill does **not** execute code;
507
- the git clone comes from the repo you chose, review the repo before installing.
508
-
509
- ---
510
-
511
- ## Disclaimer
223
+ ## Documentation
512
224
 
513
- - The marketplace lists third-party repositories from GitHub; each plugin is developed and
514
- maintained by its own author and has **no affiliation with DeepSeek Harness or this hub**.
515
- - This hub makes **no warranty** about any plugin's quality, reliability, security, license
516
- compliance or compatibility. Listing is **not an endorsement** — install means you have
517
- reviewed and accepted the risk. Read the repo source and README before installing.
518
- - This hub is provided AS-IS; neither the hub nor its developers are liable for any damage
519
- (data loss, system damage, privacy leaks) caused by installing or using third-party plugins.
225
+ - [AI Empower 与服务器组件控制](docs/ai-empower.md)
226
+ - [Framework upgrade safety & plugin adapt gate](docs/upgrade-safety-adapt-gate.md)
227
+ - [How it works](docs/how-it-works.md) · [Compatibility](docs/compatibility.md) · [Project layout](docs/project-layout.md)
228
+ - [HTTP endpoints](docs/http-endpoints.md) · [Local AI fallback & consent](docs/ai-fallback.md)
229
+ - [Framework patch (cordis.patch.yml)](docs/framework-patch.md) · [Security & disclaimer](docs/security-disclaimer.md)
520
230
 
521
231
  ---
522
232