dsh-triage 0.3.1 → 0.3.2

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
@@ -1,53 +1,87 @@
1
- # dsh-triage
1
+ # dsh-triage · 本地插件兼容分诊台
2
2
 
3
- The judgment layer for DeepSeek Harness plugins — **find out why a plugin silently disappeared, and whether a candidate will survive your environment.**
3
+ **在「装得上」与「跑得对」之间建立确定性判定层 —— 面向 DeepSeek Harness 插件生态**
4
+ *The diagnostic & pre-flight judgment layer for DeepSeek Harness (DSH) plugins.*
4
5
 
5
- DSH 0.2.x already tells you whether a plugin *installs*. It does not tell you whether it will *work* with your dsh version, your OS, and the other 12 plugins you already have.
6
+ [![npm version](https://img.shields.io/npm/v/dsh-triage.svg)](https://www.npmjs.com/package/dsh-triage)
7
+ [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
8
 
7
- ## Use
9
+ DSH 原生管理插件的下载与安装,但无法在安装前推演该插件是否与你本机的 DSH 版本、操作系统及**已安装的插件组合**兼容。
8
10
 
9
- ```sh
10
- # attribute the damage: which row was denied, and what to run next
11
+ `dsh-triage` 专注于排查插件的静默失效根因,并在升级前或安装前提供确定性的准入推演与冲突定位。
12
+
13
+ ---
14
+
15
+ ## 常用命令 / Commands
16
+
17
+ ```bash
18
+ # 全局安装 CLI
19
+ npm install -g dsh-triage
20
+
21
+ # 升级日前瞻预检:升到目标版本,当前已装插件哪些会被拦截?
22
+ dsh-triage upgrade --to next --card
23
+
24
+ # 一键体检:一屏输出当前环境配置状态与异常诊断
25
+ dsh-triage status
26
+
27
+ # 逐行归因:查明插件无法加载或被拦截的准入根因
11
28
  dsh-triage why
12
29
 
13
- # judge a candidate before installing
30
+ # 安装前预检:评估候选插件是否满足当前环境准入
14
31
  dsh-triage check dsh-cost-meter
15
- dsh-triage check dsh-web-search-pro@1.4.2 --json
16
32
 
17
- # capability ledger: who owns which loader entry / namespace
33
+ # 全量台账:列出已装插件、声明槽位、工具与服务映射清单
18
34
  dsh-triage audit
19
35
 
20
- # isolated probe plan (dry-run; execution lands in M3)
21
- dsh-triage probe dsh-cost-meter
36
+ # 启动本地可视化诊断面板
37
+ dsh-triage serve
38
+ ```
39
+
40
+ ---
41
+
42
+ ## DSH 设置页集成 / Profile Bundle
43
+
44
+ ```bash
45
+ dsh plugin --profile web add dsh-triage
22
46
  ```
23
47
 
24
- Exit codes: `0` ok · `1` findings (only with `--strict`) · `2` usage · `3` unavailable.
48
+ 装入当前 Profile 后,即可在 DSH **“设置页 → 兼容性分析”** 查阅图形化体检结论、问题列表与一键复制修复命令,或作为 Agent 工具(`compat_verdict`)供 AI 助手主动自检。
49
+
50
+ ---
25
51
 
26
- ## Flags
52
+ ## 退出状态码 / Exit Codes
27
53
 
28
- | Flag | Meaning |
54
+ | 状态码 | 含义 |
29
55
  |---|---|
30
- | `--json` | machine-readable output |
31
- | `--all` | include non-blocking findings |
32
- | `--strict` | exit 1 when a conclusion is not `go` |
33
- | `--profile <name>` | profile name (default `web`) |
34
- | `--dsh-home <path>` | override `$DSH_HOME` |
35
- | `--locale en\|zh` | output language (default `zh`, or `$DSH_TRIAGE_LOCALE`) |
36
- | `--stamp <iso>` | fixed timestamp for reproducible output |
37
- | `--execute` | (probe) really run the plan — not implemented before M3 |
56
+ | `0` | 执行成功,所有判定通过(`go`)或处于非严格模式 |
57
+ | `1` | 发现不满足准入项或存在冲突(需指定 `--strict` 时生效) |
58
+ | `2` | 命令行参数或选项错误 |
59
+ | `3` | 依赖数据或远端元数据无法获取 |
38
60
 
39
- ## What it will never do
61
+ ---
40
62
 
41
- - Provide security assurances (use `dsh-vet` / dsh.so's security tier).
42
- - Replace the official plugin manager, or re-implement snapshots/rollback.
43
- - Invent a score. Every conclusion is `go` / `risky` / `blocked` / `unknown`, with evidence tiers (`declared`, `scanned`, `measured-registry`, `measured-local`, `inferred`).
63
+ ## 常用参数 / Flags
44
64
 
45
- ## DSH profile bundle
65
+ | 参数 | 说明 |
66
+ |---|---|
67
+ | `--json` | 输出机器可解析的 JSON 格式数据 |
68
+ | `--strict` | 当存在非 `go` 结论时以退出码 1 退出 |
69
+ | `--profile <name>` | 指定分析的 Profile 名称(默认为 `web`) |
70
+ | `--dsh-home <path>` | 覆盖默认的 `$DSH_HOME` 路径 |
71
+ | `--to <version\|next>` | `upgrade` 命令中指定推演的目标版本 |
72
+ | `--card` | 输出 Markdown 格式的升级摘要卡片 |
73
+ | `--execute` | `probe` 命令中实际拉起隔离沙盒进程执行实测 |
46
74
 
47
- ```sh
48
- dsh plugin --profile web add dsh-triage
49
- ```
75
+ ---
76
+
77
+ ## 核心边界承诺 / Boundaries
78
+
79
+ - **不提供安全背书**:聚焦于兼容性与准入阻断推演,不替代恶意代码或供应链安全审计;
80
+ - **不篡改用户数据**:除临时隔离沙盒外,绝不篡改用户的 `~/.dsh` 配置;
81
+ - **绝不生造成绩**:无证据时如实判定为 `unknown`,每条结论均附带可追溯的证据链条。
82
+
83
+ ---
50
84
 
51
- The bundle mounts a single namespaced row (`compat-verdict`). The Web panel and the `compat_verdict` agent tool land in M4; until then the row registers nothing, on purpose.
85
+ ## 开源许可 / License
52
86
 
53
- MIT. Data attribution: dsh.so registry facts are CC BY 4.0.
87
+ MIT License. 引用自 [dsh.so](https://www.dsh.so) 的注册表事实数据遵循 CC BY 4.0 协议并已在引用处注明。