跳过主要内容
Z

dsh-verify-kit (dsh-citelint)

zjukop3/dsh-verify-kit/packages/dsh-citelint

交付报告的引用检查:编号断号、同一来源重复、列了却没被引用的来源——全部从 markdown 直接判定。它的 HTTP 路由没有 DSH 的访问检查,浏览器里打开的网页可以调用它们。

安装

dsh plugin --profile web add github:zjukop3/dsh-verify-kit

该插件位于仓库的 packages/dsh-citelint 子路径下。

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.

packagewhat it decides
dsh-hashcheckwhich bytes moved since the manifest was written
dsh-citelintwhether the citation numbers, sources and local links hold together
dsh-outline-lintwhether 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-tablelintwhether every table row has the column count its header claims
dsh-numberlintwhether 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. 0 clean, 1 findings, 2 usage 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 解析,装完即用:

  1. 打开「插件」,启用实验性「自定义插件索引」。
  2. 「发现 → 添加索引源」,添加:https://zjukop3.github.io/dsh-review-outbox/plugins.json
  3. 按名字搜索安装(本仓库的五个:hashcheck / citelint / outline-lint / tablelint / numberlint;行业三件在 dsh-vertical-kit:agreement-check / invoice-check / listing-check)。

不装 DSH 也可以:npx <名字> --help 直接用,或按下面的 CLI 说明。

相关插件