dsh-plugin-trim 0.3.3 → 0.3.5
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 +6 -2
- package/client.js +815 -271
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,13 +7,13 @@ DSH 插件生态的**减负**与**兼容性体检**插件。
|
|
|
7
7
|
从 npm 安装(推荐):
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
dsh plugin --profile web add dsh-plugin-trim
|
|
10
|
+
dsh plugin --profile web add dsh-plugin-trim
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
从 GitHub Release 安装(备用,无需 npm):
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
dsh plugin --profile web add "https://github.com/Starlit-Sky-code/dsh-experience-optimizer/releases/download/v0.3.
|
|
16
|
+
dsh plugin --profile web add "https://github.com/Starlit-Sky-code/dsh-experience-optimizer/releases/download/v0.3.5/dsh-plugin-trim-0.3.5.tgz"
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
本地开发:
|
|
@@ -22,6 +22,8 @@ dsh plugin --profile web add "https://github.com/Starlit-Sky-code/dsh-experience
|
|
|
22
22
|
dsh plugin --profile web add /absolute/path/to/packages/plugin-trim
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
> English overview: [README.en.md](../../README.en.md)
|
|
26
|
+
|
|
25
27
|
## Web 控制台
|
|
26
28
|
|
|
27
29
|
安装后在 DSH **设置 → 体验优化**(Agent 预设下方)或 **设置 → 插件 → 体验优化** 打开:
|
|
@@ -29,6 +31,8 @@ dsh plugin --profile web add /absolute/path/to/packages/plugin-trim
|
|
|
29
31
|
- 上下文成本与兼容性矩阵;
|
|
30
32
|
- 按任务生成精简方案,勾选低风险项后显式应用;
|
|
31
33
|
- 一键回滚;
|
|
34
|
+
- 教程页:5 分钟上手、快速开始、常见问题;
|
|
35
|
+
- 设置页:当前审批/建议策略、保护名单、可复制配置片段;
|
|
32
36
|
- 工作流配方页签(由 `dsh-plugin-recipe` 提供 Host API)。
|
|
33
37
|
|
|
34
38
|
界面只调用同源 JSON API;API 校验 DSH 浏览器会话与 `Origin`。
|