@diffci.com/diffci

中文文档
0.3.39发布于 2026/11/11MITTypeScriptES Module构建来源已验证近 30 天下载 9882

Verification for AI coding agents: runs the tests and checks a change affects, with full fallback and a receipt

原始使用文档
文档目录3 节
  1. MCP for coding agents
  2. Compare a selection with full-suite results
  3. Source and license

DiffCI CLI

@diffci.com/diffci is verification for AI coding agents. It analyzes a local Git checkout, runs the tests and checks a change affects when evidence is complete, falls back to a full run when it is not, and leaves a receipt.

npx --yes @diffci.com/diffci@latest observe --no-send

The command writes reports locally and sends nothing unless an explicit destination is configured. Keep required project CI authoritative.

MCP for coding agents

The diffci-mcp binary exposes the same local analysis through MCP. Install the public Codex, Claude Code, Cursor, Grok, or Meta Muse Code integration from the cross-agent installation guide.

Compare a selection with full-suite results

diffci plan --base "$BASE" --head "$HEAD" > plan.json
# run the full suite with a JUnit reporter
diffci check-plan --plan plan.json --results junit.xml

diffci plan saves Core's advisory plan for a clean checkout at --head. check-plan compares a saved Core execution plan with a full-suite JUnit report from the same revision. Without --base-results base.xml, skipped failures are possibleMisses. With a base report, unique matching failures are preExisting; a skipped failure is missed only if its matching base testcase passed. Absent, skipped or ambiguous base identities remain possibleMisses. Selected and unattributed failures are also reported. Missed, possible misses or unattributed failures exit 1; invalid inputs exit 2. Use --root packages/web for a nested reporter root and --repo /checkout for absolute paths. Use --base-repo /base/checkout if the base report came from another checkout. Exit 0 describes the comparison, not whether the full suite passed. The command runs no tests, writes no files and sends nothing.

See the reporter configuration and scheduled-job example for Vitest and Jest. Use a CLI build containing this command.

Source and license

This package is MIT-licensed. Its current source lives in DiffCI/core. The corresponding source for the previously published 0.3.10 package is preserved at tagged Core commit 4c76be14 (cli-v0.3.10-source).

版本与发布记录

@diffci.com/diffci 共发布 66 个版本,首次发布于 2026/09/19;过去 12 个月发布了 66 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.3.39latest2026/11/11今天
0.3.382026/11/093 天前
0.3.372026/11/093 天前
0.3.362026/11/084 天前
0.3.352026/11/075 天前
0.3.342026/11/075 天前

其他发布通道:alpha → 0.1.0-alpha.4,pilot → 0.2.1,next → 0.3.0-rc.1。

关于 @diffci.com/diffci 的常见问题

@diffci.com/diffci 是什么?

Verification for AI coding agents: runs the tests and checks a change affects, with full fallback and a receipt

如何安装 @diffci.com/diffci?

在项目目录运行 npm install @diffci.com/diffci,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 diffci、diffci-mcp,可以用 npx diffci 直接运行。

@diffci.com/diffci 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@diffci.com/diffci 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@diffci.com/diffci 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.5.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@diffci.com/diffci 可以商用吗?

@diffci.com/diffci 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@diffci.com/diffci 的下载量有多少?

根据 npm 官方下载统计,@diffci.com/diffci 在 2026/10/12 – 2026/11/10 这 30 天内被下载 9,882 次,日均约 329 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@diffci.com/diffci 还在维护吗?

最新版本 0.3.39 发布于 2026/11/11(今天);至今共发布 66 个版本,其中过去 12 个月发布了 66 个;首次发布于 2026/09/19。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。