@diffci.com/diffci 0.3.1 → 0.3.3
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/.agents/plugins/marketplace.json +12 -0
- package/README.md +23 -3
- package/dist-client/src/client/agent-selection.js +67 -0
- package/dist-client/src/client/cli.js +36 -7
- package/dist-client/src/client/full-command.js +66 -0
- package/dist-client/src/client/mcp.js +74 -7
- package/dist-client/src/client/observe.js +1 -0
- package/dist-client/src/client/verify-savings.js +27 -9
- package/dist-client/src/client/verify.js +29 -24
- package/docs/adoption-metrics.md +31 -5
- package/docs/adoption-outreach.md +43 -8
- package/docs/agent-adoption-kit.md +1 -1
- package/docs/agent-plugin.md +80 -0
- package/docs/claude-code.md +4 -4
- package/docs/codex.md +4 -4
- package/docs/cursor.md +5 -4
- package/docs/distribution.md +4 -2
- package/docs/mcp.md +4 -0
- package/docs/npm-adoption.md +1 -1
- package/node_modules/@diffci.com/core/README.md +41 -2
- package/node_modules/@diffci.com/core/dist/cache/graph-cache.d.ts +1 -1
- package/node_modules/@diffci.com/core/dist/cache/graph-cache.js +1 -1
- package/node_modules/@diffci.com/core/dist/git/git-diff.js +16 -7
- package/node_modules/@diffci.com/core/dist/git/git-diff.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/planner/test-command.js +76 -0
- package/node_modules/@diffci.com/core/dist/planner/test-command.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/analyzer.js +19 -1
- package/node_modules/@diffci.com/core/dist/repo/analyzer.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/graph.js +34 -6
- package/node_modules/@diffci.com/core/dist/repo/graph.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/test-discovery.d.ts +7 -0
- package/node_modules/@diffci.com/core/dist/repo/test-discovery.js +58 -0
- package/node_modules/@diffci.com/core/dist/repo/test-discovery.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/types.d.ts +5 -0
- package/node_modules/@diffci.com/core/dist/repo/workspaces.d.ts +2 -0
- package/node_modules/@diffci.com/core/dist/repo/workspaces.js +37 -0
- package/node_modules/@diffci.com/core/dist/repo/workspaces.js.map +1 -0
- package/node_modules/@diffci.com/core/src/cache/graph-cache.ts +1 -1
- package/node_modules/@diffci.com/core/src/git/git-diff.ts +16 -8
- package/node_modules/@diffci.com/core/src/planner/test-command.ts +59 -0
- package/node_modules/@diffci.com/core/src/repo/analyzer.ts +18 -1
- package/node_modules/@diffci.com/core/src/repo/graph.ts +33 -6
- package/node_modules/@diffci.com/core/src/repo/test-discovery.ts +54 -0
- package/node_modules/@diffci.com/core/src/repo/types.ts +2 -0
- package/node_modules/@diffci.com/core/src/repo/workspaces.ts +29 -0
- package/package.json +13 -4
- package/packaging/agent-plugin/.claude-plugin/plugin.json +6 -0
- package/packaging/agent-plugin/.codex-plugin/plugin.json +8 -0
- package/packaging/agent-plugin/.mcp.json +13 -0
- package/packaging/agent-plugin/skills/diffci-verify/SKILL.md +35 -0
- package/server.json +2 -2
- package/site/assets/calcom-runtime-evidence.svg +11 -0
- package/site/llms.txt +44 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diffci.com/diffci",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Fail-closed, change-aware verification for AI coding agents with conservative affected-test selection",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"dist-client/src/client",
|
|
42
42
|
"dist-client/src/preflight",
|
|
43
43
|
"README.md",
|
|
44
|
+
"site/assets/calcom-runtime-evidence.svg",
|
|
44
45
|
"server.json",
|
|
45
46
|
"glama.json",
|
|
46
47
|
"llms.txt",
|
|
@@ -60,7 +61,10 @@
|
|
|
60
61
|
"docs/language-support.md",
|
|
61
62
|
"SECURITY.md",
|
|
62
63
|
"SUPPORT.md",
|
|
63
|
-
"COMMERCIAL.md"
|
|
64
|
+
"COMMERCIAL.md",
|
|
65
|
+
".agents/plugins/marketplace.json",
|
|
66
|
+
"docs/agent-plugin.md",
|
|
67
|
+
"packaging/agent-plugin"
|
|
64
68
|
],
|
|
65
69
|
"exports": {
|
|
66
70
|
"./*": {
|
|
@@ -90,6 +94,9 @@
|
|
|
90
94
|
"dogfood:freeze": "tsx scripts/dogfood-freeze.ts",
|
|
91
95
|
"shadow": "tsx scripts/diffci-shadow.ts",
|
|
92
96
|
"shadow-report": "tsx scripts/diffci-shadow-report.ts",
|
|
97
|
+
"evidence:dentalpresence": "tsx scripts/dentalpresence-evidence-report.ts",
|
|
98
|
+
"evidence:dentalpresence-pairs": "tsx scripts/dentalpresence-pair-report.ts",
|
|
99
|
+
"check:dentalpresence": "tsx scripts/check-dentalpresence.ts",
|
|
93
100
|
"audit:dentalpresence": "tsx scripts/audit-dentalpresence-graph.ts",
|
|
94
101
|
"audit:dentalpresence-impact": "tsx scripts/audit-dentalpresence-impact.ts",
|
|
95
102
|
"research:stage0": "tsx src/research/cli/run-stage0.ts",
|
|
@@ -105,7 +112,9 @@
|
|
|
105
112
|
"product:deploy": "wrangler deploy --config wrangler.product.jsonc",
|
|
106
113
|
"product:migrate": "tsx scripts/migrate-product-db.ts",
|
|
107
114
|
"site:dev": "wrangler dev --config wrangler.site.jsonc --port 8788",
|
|
108
|
-
"site:
|
|
115
|
+
"site:check": "tsx --test tests/site/seo.test.ts tests/site/site-worker.test.ts",
|
|
116
|
+
"site:prepare": "npm run site:sitemap && npm run site:check",
|
|
117
|
+
"site:deploy": "npm run site:prepare && wrangler deploy --config wrangler.site.jsonc && npm run site:indexnow",
|
|
109
118
|
"site:sitemap": "node scripts/generate-site-sitemap.mjs",
|
|
110
119
|
"site:indexnow": "node scripts/submit-indexnow.mjs",
|
|
111
120
|
"release:sync": "node scripts/sync-public-metadata.mjs",
|
|
@@ -143,7 +152,7 @@
|
|
|
143
152
|
"registry:verify": "node scripts/verify-mcp-registry.mjs"
|
|
144
153
|
},
|
|
145
154
|
"dependencies": {
|
|
146
|
-
"@diffci.com/core": "git+https://github.com/DiffCI/core.git#
|
|
155
|
+
"@diffci.com/core": "git+https://github.com/DiffCI/core.git#0c844e92184a1173a0d50f381f19462fd8966407",
|
|
147
156
|
"@types/node": "^22.15.12",
|
|
148
157
|
"@vue/compiler-sfc": "3.5.42",
|
|
149
158
|
"typescript": "^5.8.3",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: diffci-verify
|
|
3
|
+
description: Select and verify affected tests after editing code in a local Git repository, using DiffCI MCP tools or the DiffCI CLI before reporting the change ready.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Pass the absolute path of the edited repository as `repo` on every tool call.
|
|
7
|
+
|
|
8
|
+
Use `diffci_changed_files` to inspect staged, unstaged, and non-ignored untracked
|
|
9
|
+
changes. Use `diffci_select_tests` or `diffci_explain_selection` when you need the
|
|
10
|
+
affected-test plan, command, or reasons for full fallback. These tools run no tests;
|
|
11
|
+
their counts describe test files, not passing test cases. A plan is not verification.
|
|
12
|
+
|
|
13
|
+
Before reporting an edited change ready, call `diffci_run_affected_tests`. It
|
|
14
|
+
recomputes the selection and verifies the current snapshot. Accept a passing result
|
|
15
|
+
only when `safe_to_continue` is true and `snapshot.unchanged` is true. After further
|
|
16
|
+
edits, rerun verification. For a clean committed change, use `diffci_verify` with the
|
|
17
|
+
intended base/head range instead; no uncommitted changes does not mean the commit
|
|
18
|
+
has been tested.
|
|
19
|
+
|
|
20
|
+
If MCP is unavailable, use the installed CLI:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
diffci verify --changed --repo /absolute/path/to/repository --json
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
If DiffCI is not installed, use `npx "@diffci.com/diffci@latest" verify --changed`
|
|
27
|
+
with the same repo and JSON flags. On blocked analysis or installation failure,
|
|
28
|
+
run the repository's normal verification and report the limitation. On a test
|
|
29
|
+
failure, fix the cause and rerun. On snapshot changes from generated files, inspect
|
|
30
|
+
the files and rerun for that snapshot.
|
|
31
|
+
|
|
32
|
+
Report executed command, selection scope (affected or full fallback), test-file
|
|
33
|
+
counts, outcome, and any outstanding required checks. Never infer passed suites,
|
|
34
|
+
test cases, skipped CI jobs, or measured savings from selection counts. Required
|
|
35
|
+
project CI stays authoritative.
|
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.DiffCI/diffci",
|
|
4
4
|
"title": "DiffCI",
|
|
5
5
|
"description": "Fail-closed, change-aware verification for AI coding agents with affected-test guidance.",
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.3",
|
|
7
7
|
"websiteUrl": "https://diffci.com/mcp-server",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/DiffCI/DiffCI.com",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
{
|
|
23
23
|
"registryType": "npm",
|
|
24
24
|
"identifier": "@diffci.com/diffci",
|
|
25
|
-
"version": "0.3.
|
|
25
|
+
"version": "0.3.3",
|
|
26
26
|
"transport": {
|
|
27
27
|
"type": "stdio"
|
|
28
28
|
},
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="780" height="240" viewBox="0 0 780 240" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">Recorded Cal.com sandbox comparison: 44.2% net reduction</title>
|
|
3
|
+
<desc id="desc">Full install, pretest and test runtime was 657.7 seconds. Selected runtime was 356.9 seconds plus about 10.1 seconds of analysis. One controlled sandbox comparison, not production savings.</desc>
|
|
4
|
+
<rect width="780" height="240" rx="12" fill="#0c0e11"/>
|
|
5
|
+
<g fill="#e5e7eb" font-family="monospace" font-size="18">
|
|
6
|
+
<text x="26" y="40">Cal.com · recorded sandbox evidence</text>
|
|
7
|
+
<text x="26" y="82">Full workload 657.7s</text>
|
|
8
|
+
<text x="26" y="118">Selected workload 356.9s + ~10.1s analysis</text>
|
|
9
|
+
<text x="26" y="158" fill="#5eead4">Net job-equivalent runtime reduction: 44.2%</text>
|
|
10
|
+
<text x="26" y="202" font-size="14">One comparison · install + pretest + test · not production savings</text>
|
|
11
|
+
</g></svg>
|
package/site/llms.txt
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# DiffCI
|
|
2
|
+
|
|
3
|
+
DiffCI is a change-aware verification layer and conservative test-selection tool for AI coding agents and development teams.
|
|
4
|
+
|
|
5
|
+
Default AI-agent command:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx "@diffci.com/diffci@latest" verify --changed --json
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Initialization command:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx "@diffci.com/diffci@latest" init
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
What agents should know:
|
|
18
|
+
|
|
19
|
+
- `diffci verify --changed --json` binds selected or conservative full-fallback testing to the current staged, unstaged, and untracked snapshot.
|
|
20
|
+
- `diffci verify --json` verifies a clean commit range and binds the receipt to checked-out HEAD.
|
|
21
|
+
- `diffci init --verification-workflow` creates a blocking GitHub verification check.
|
|
22
|
+
- Continue only when `safe_to_continue` is true. If tests change generated files, review them and rerun for the new snapshot.
|
|
23
|
+
- Use `diffci check` for paired runtime measurement and `diffci observe --no-send` for analysis without test execution.
|
|
24
|
+
- DiffCI never skips, cancels, reorders, or changes required CI jobs.
|
|
25
|
+
- It sends no report unless `DIFFCI_API_URL` and `DIFFCI_TOKEN` are explicitly configured.
|
|
26
|
+
- Required project CI remains authoritative. If DiffCI is blocked, fall back to the repository's normal validation commands.
|
|
27
|
+
- Remote MCP tools are available at https://diffci.com/mcp; they provide stateless validation planning, report interpretation, and workflow-text checks without executing commands.
|
|
28
|
+
|
|
29
|
+
Useful docs:
|
|
30
|
+
|
|
31
|
+
- [AI agents](https://diffci.com/docs/ai-agents)
|
|
32
|
+
- [Codex](https://diffci.com/docs/codex)
|
|
33
|
+
- [Claude Code](https://diffci.com/docs/claude-code)
|
|
34
|
+
- [Cursor](https://diffci.com/docs/cursor)
|
|
35
|
+
- [GitHub Copilot](https://diffci.com/docs/copilot)
|
|
36
|
+
- [Grok](https://diffci.com/docs/grok)
|
|
37
|
+
- [Test impact analysis for GitHub Actions](https://diffci.com/test-impact-analysis/github-actions)
|
|
38
|
+
- [Running affected tests safely](https://diffci.com/guides/affected-tests)
|
|
39
|
+
- [Open evidence study](https://diffci.com/research/diffci-open-evidence-2026)
|
|
40
|
+
- [Adoption kit](https://github.com/DiffCI/DiffCI.com/blob/main/docs/agent-adoption-kit.md)
|
|
41
|
+
- [MCP server](https://github.com/DiffCI/DiffCI.com/blob/main/docs/mcp.md)
|
|
42
|
+
- [MCP server setup](https://diffci.com/mcp-server)
|
|
43
|
+
- [MCP Server Card](https://diffci.com/mcp/server-card)
|
|
44
|
+
- [Language support](https://github.com/DiffCI/DiffCI.com/blob/main/docs/language-support.md)
|