dsh-verify-kit (dsh-outline-lint)
zjukop3/dsh-verify-kit/packages/dsh-outline-lint
Shape check for delivered documents: no title, more than one level-1 heading, a lost heading level, no conclusion up front, and nothing a reader can run to reproduce the result. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
インストール
dsh plugin --profile web add github:zjukop3/dsh-verify-kitこのプラグインはリポジトリの packages/dsh-outline-lint サブディレクトリにあります。
README
dsh-verify-kit
Five small deterministic checks for deliverables that an agent produced and a person is about to accept. Each is one verb, each runs without DSH, each returns the same JSON whether you call the CLI or the host route.
| package | what it decides |
|---|---|
| dsh-hashcheck | which bytes moved since the manifest was written |
| dsh-citelint | whether the citation numbers, sources and local links hold together |
| dsh-outline-lint | whether the document has a title, a conclusion up front, and something to run (the conclusion rule targets report-like deliverables; reference docs are out of domain) |
| dsh-tablelint | whether every table row has the column count its header claims |
| dsh-numberlint | whether one quantity is spelled two ways in one document |
npm test # 28 tests, no network, no fixtures to download
Design rules these follow, and the reason they are separate packages rather than one:
- A check must be decidable from the file. No model calls, no heuristics dressed as findings. If a rule cannot be stated as a comparison, it is not in here.
- A finding names a line or a path. "Something may be wrong" is not a result.
- Exit codes are the interface.
0clean,1findings,2usage error. A check that cannot fail a pipeline is decoration. - The route and the CLI call the same function, so the panel and CI cannot disagree.
MIT.
在 DSH 中安装(索引源)
全部八件作品都在一个 format 1 索引源里,从 npm registry 解析,装完即用:
- 打开「插件」,启用实验性「自定义插件索引」。
- 「发现 → 添加索引源」,添加:
https://zjukop3.github.io/dsh-review-outbox/plugins.json - 按名字搜索安装(本仓库的五个:
hashcheck/citelint/outline-lint/tablelint/numberlint;行业三件在 dsh-vertical-kit:agreement-check/invoice-check/listing-check)。
不装 DSH 也可以:npx <名字> --help 直接用,或按下面的 CLI 说明。