feat: 新增隐藏宿主品牌标识开关,精简破限提示词并移除实时预览污染(v0.2.12)

This commit is contained in:
yexi committed 2026-11-18 03:36:27 +08:00
1 parent 849fc35ac5
commit 6da4c81b5e
18 files changed
+421 -111

No files matched your search

+5 -2
View File
@@ -69,10 +69,13 @@ Each DSH preset structures its prompt sections differently:
## 4. Structural Fusion & Prompt Preview
### Structural Section Fusion
During assembly, the plugin locates and fuses prompt sections by DSH's canonical section names (`deployment:persona-prefix`, `plan:policy`, `tools:ptc-only`, `tool:structured_output`) with idempotency guards, supporting both DSH Web and DSH Desktop without brittle exact-string or hash checks. If a custom preset omits the persona section, it safely falls back to the stock prompt.
During assembly, the plugin locates and fuses prompt sections by DSH's canonical section names (`deployment:persona-prefix`, `plan:policy`, `tools:ptc-only`, `tool:structured_output`) with idempotency guards, supporting both DSH Web and DSH Desktop without brittle exact-string or hash checks. Additional preset ids can be opted in via `extraPresets`; if a preset omits the persona section, it safely falls back to the stock prompt.
### Host Brand Identity Stripping (Optional)
When **Strip host brand identity** (`stripHostIdentity`) is enabled, the pipeline drops `harness:identity`, `harness:source`, and `app:web-surface` sections plus matching runtime contexts, and neutralizes residual `DeepSeek Harness` / `DSH` brand strings in retained sections (works independently of the main toggle).
### Prompt preview
The settings UI queries an RPC endpoint to preview the full assembled system prompt, line count, and byte size for each mode. Version checks and installation use DSH’s built-in plugin manager.
The settings UI queries an RPC endpoint to assemble live baseline previews of the full system prompt, line count, and byte size for each mode (reflecting the strip-identity toggle). Version checks and installation use DSH’s built-in plugin manager.
---