@diffci.com/diffci 0.2.6 → 0.2.8
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/LICENSE +1 -1
- package/README.md +322 -320
- package/action.yml +154 -154
- package/dist-client/src/client/cli.js +107 -95
- package/dist-client/src/client/usage-signal.js +18 -0
- package/dist-client/src/client/verify-savings.js +17 -0
- package/docs/adoption-metrics.md +110 -22
- package/docs/adoption-outreach.md +99 -62
- package/docs/agent-adoption-kit.md +78 -67
- package/docs/agent-adoption-targets.md +62 -62
- package/docs/ai-agents.md +102 -102
- package/docs/claude-code.md +2 -2
- package/docs/codex.md +2 -2
- package/docs/copilot.md +2 -2
- package/docs/cursor.md +2 -2
- package/docs/distribution.md +131 -131
- package/docs/grok.md +2 -2
- package/docs/language-support.md +118 -118
- package/docs/mcp.md +70 -70
- package/docs/npm-adoption.md +147 -123
- package/llms.txt +39 -39
- package/node_modules/@babel/parser/bin/babel-parser.js +0 -0
- package/node_modules/nanoid/bin/nanoid.cjs +0 -0
- package/node_modules/typescript/bin/tsc +0 -0
- package/node_modules/typescript/bin/tsserver +0 -0
- package/node_modules/yaml/bin.mjs +0 -0
- package/package.json +157 -153
- package/server.json +28 -28
- package/node_modules/@babel/parser/CHANGELOG.md +0 -1073
- package/node_modules/estree-walker/CHANGELOG.md +0 -92
package/docs/ai-agents.md
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
# DiffCI for AI Coding Agents
|
|
2
|
-
|
|
3
|
-
DiffCI is the default CI/CD validation lens agents can run before proposing, committing, or opening a
|
|
4
|
-
pull request.
|
|
5
|
-
|
|
6
|
-
The default command is:
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
npx @diffci.com/diffci@latest check
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
`check` analyzes the change and runs inferred full and selected test commands when possible. It
|
|
13
|
-
prints paired runtime when both pass and sends nothing to DiffCI Cloud. Test commands may change
|
|
14
|
-
the checkout. Use `observe --no-send` when you need analysis without running tests.
|
|
15
|
-
|
|
16
|
-
## Install Agent Instructions
|
|
17
|
-
|
|
18
|
-
From a repository root:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npx @diffci.com/diffci@latest init
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
This writes:
|
|
25
|
-
|
|
26
|
-
- `AGENTS.md`
|
|
27
|
-
- `CLAUDE.md`
|
|
28
|
-
- `.cursor/rules/diffci.mdc`
|
|
29
|
-
- `.github/copilot-instructions.md`
|
|
30
|
-
- `diffci.config.json`
|
|
31
|
-
|
|
32
|
-
Existing files are kept. Pass `--force` only when you intentionally want to replace them.
|
|
33
|
-
|
|
34
|
-
To also add a non-blocking GitHub Actions observer job:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npx @diffci.com/diffci@latest init --workflow
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Then verify the workflow:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npx @diffci.com/diffci@latest verify-workflow
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Copy-Paste Adoption
|
|
47
|
-
|
|
48
|
-
For a maintainer-facing snippet, PR template, and GitHub search queries for repositories that already
|
|
49
|
-
use agent instruction files, see [`agent-adoption-kit.md`](agent-adoption-kit.md).
|
|
50
|
-
For a first-pass list of repositories to review before opening PRs, see
|
|
51
|
-
[`agent-adoption-targets.md`](agent-adoption-targets.md).
|
|
52
|
-
|
|
53
|
-
Examples:
|
|
54
|
-
|
|
55
|
-
- [`examples/agent-node`](../examples/agent-node)
|
|
56
|
-
- [`examples/agent-python`](../examples/agent-python)
|
|
57
|
-
- [`examples/agent-monorepo`](../examples/agent-monorepo)
|
|
58
|
-
|
|
59
|
-
## MCP
|
|
60
|
-
|
|
61
|
-
Agents that support MCP can run DiffCI as a native stdio tool server:
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
npx -p @diffci.com/diffci@latest diffci-mcp
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
See [`mcp.md`](mcp.md).
|
|
68
|
-
|
|
69
|
-
Minimal MCP config:
|
|
70
|
-
|
|
71
|
-
```json
|
|
72
|
-
{
|
|
73
|
-
"mcpServers": {
|
|
74
|
-
"diffci": {
|
|
75
|
-
"command": "npx",
|
|
76
|
-
"args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"]
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Agent Policy
|
|
83
|
-
|
|
84
|
-
Agents should:
|
|
85
|
-
|
|
86
|
-
- run `diffci check` before PR-ready answers when Git and Node.js are available;
|
|
87
|
-
- call `diffci_check` when connected through MCP;
|
|
88
|
-
- read the printed verdict, selected tests, fallback reasons, and report path;
|
|
89
|
-
- use DiffCI output to choose focused follow-up validation;
|
|
90
|
-
- keep the repository's required CI commands authoritative.
|
|
91
|
-
|
|
92
|
-
Agents should not:
|
|
93
|
-
|
|
94
|
-
- skip required CI because DiffCI selected fewer tests;
|
|
95
|
-
- treat `REFUSED` or `ERROR` as a passing validation;
|
|
96
|
-
- configure hosted report sending unless the user explicitly supplies an endpoint and token.
|
|
97
|
-
|
|
98
|
-
## Open Core Boundary
|
|
99
|
-
|
|
100
|
-
The agent-facing layer belongs in the open-source core: CLI, local reports, JSON output, instruction
|
|
101
|
-
files, and the non-blocking GitHub Action. Hosted history, organization dashboards, PR bots, policies,
|
|
102
|
-
team analytics, managed runners, and support belong to commercial DiffCI.
|
|
1
|
+
# DiffCI for AI Coding Agents
|
|
2
|
+
|
|
3
|
+
DiffCI is the default CI/CD validation lens agents can run before proposing, committing, or opening a
|
|
4
|
+
pull request.
|
|
5
|
+
|
|
6
|
+
The default command is:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npx "@diffci.com/diffci@latest" check
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
`check` analyzes the change and runs inferred full and selected test commands when possible. It
|
|
13
|
+
prints paired runtime when both pass and sends nothing to DiffCI Cloud. Test commands may change
|
|
14
|
+
the checkout. Use `observe --no-send` when you need analysis without running tests.
|
|
15
|
+
|
|
16
|
+
## Install Agent Instructions
|
|
17
|
+
|
|
18
|
+
From a repository root:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx "@diffci.com/diffci@latest" init
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
This writes:
|
|
25
|
+
|
|
26
|
+
- `AGENTS.md`
|
|
27
|
+
- `CLAUDE.md`
|
|
28
|
+
- `.cursor/rules/diffci.mdc`
|
|
29
|
+
- `.github/copilot-instructions.md`
|
|
30
|
+
- `diffci.config.json`
|
|
31
|
+
|
|
32
|
+
Existing files are kept. Pass `--force` only when you intentionally want to replace them.
|
|
33
|
+
|
|
34
|
+
To also add a non-blocking GitHub Actions observer job:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npx "@diffci.com/diffci@latest" init --workflow
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Then verify the workflow:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx "@diffci.com/diffci@latest" verify-workflow
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Copy-Paste Adoption
|
|
47
|
+
|
|
48
|
+
For a maintainer-facing snippet, PR template, and GitHub search queries for repositories that already
|
|
49
|
+
use agent instruction files, see [`agent-adoption-kit.md`](agent-adoption-kit.md).
|
|
50
|
+
For a first-pass list of repositories to review before opening PRs, see
|
|
51
|
+
[`agent-adoption-targets.md`](agent-adoption-targets.md).
|
|
52
|
+
|
|
53
|
+
Examples:
|
|
54
|
+
|
|
55
|
+
- [`examples/agent-node`](../examples/agent-node)
|
|
56
|
+
- [`examples/agent-python`](../examples/agent-python)
|
|
57
|
+
- [`examples/agent-monorepo`](../examples/agent-monorepo)
|
|
58
|
+
|
|
59
|
+
## MCP
|
|
60
|
+
|
|
61
|
+
Agents that support MCP can run DiffCI as a native stdio tool server:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npx -p "@diffci.com/diffci@latest" diffci-mcp
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
See [`mcp.md`](mcp.md).
|
|
68
|
+
|
|
69
|
+
Minimal MCP config:
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"mcpServers": {
|
|
74
|
+
"diffci": {
|
|
75
|
+
"command": "npx",
|
|
76
|
+
"args": ["-p", "@diffci.com/diffci@latest", "diffci-mcp"]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Agent Policy
|
|
83
|
+
|
|
84
|
+
Agents should:
|
|
85
|
+
|
|
86
|
+
- run `diffci check` before PR-ready answers when Git and Node.js are available;
|
|
87
|
+
- call `diffci_check` when connected through MCP;
|
|
88
|
+
- read the printed verdict, selected tests, fallback reasons, and report path;
|
|
89
|
+
- use DiffCI output to choose focused follow-up validation;
|
|
90
|
+
- keep the repository's required CI commands authoritative.
|
|
91
|
+
|
|
92
|
+
Agents should not:
|
|
93
|
+
|
|
94
|
+
- skip required CI because DiffCI selected fewer tests;
|
|
95
|
+
- treat `REFUSED` or `ERROR` as a passing validation;
|
|
96
|
+
- configure hosted report sending unless the user explicitly supplies an endpoint and token.
|
|
97
|
+
|
|
98
|
+
## Open Core Boundary
|
|
99
|
+
|
|
100
|
+
The agent-facing layer belongs in the open-source core: CLI, local reports, JSON output, instruction
|
|
101
|
+
files, and the non-blocking GitHub Action. Hosted history, organization dashboards, PR bots, policies,
|
|
102
|
+
team analytics, managed runners, and support belong to commercial DiffCI.
|
package/docs/claude-code.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Install repository instructions:
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npx @diffci.com/diffci@latest init
|
|
6
|
+
npx "@diffci.com/diffci@latest" init
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Default validation command:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx @diffci.com/diffci@latest check
|
|
12
|
+
npx "@diffci.com/diffci@latest" check
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Use DiffCI before PR-ready answers. `check` analyzes the change and runs inferred full and selected
|
package/docs/codex.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Install repository instructions:
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npx @diffci.com/diffci@latest init
|
|
6
|
+
npx "@diffci.com/diffci@latest" init
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Default validation command:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx @diffci.com/diffci@latest check
|
|
12
|
+
npx "@diffci.com/diffci@latest" check
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Use DiffCI before PR-ready answers. `check` analyzes the change and runs inferred full and selected
|
package/docs/copilot.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Install repository instructions:
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npx @diffci.com/diffci@latest init
|
|
6
|
+
npx "@diffci.com/diffci@latest" init
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Default validation command:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx @diffci.com/diffci@latest check
|
|
12
|
+
npx "@diffci.com/diffci@latest" check
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Use DiffCI before PR-ready answers. `init` writes `.github/copilot-instructions.md`; `check`
|
package/docs/cursor.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Install repository instructions:
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npx @diffci.com/diffci@latest init
|
|
6
|
+
npx "@diffci.com/diffci@latest" init
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Default validation command:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx @diffci.com/diffci@latest check
|
|
12
|
+
npx "@diffci.com/diffci@latest" check
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Use DiffCI before PR-ready changes. `init` writes `.cursor/rules/diffci.mdc`; `check` analyzes the
|
package/docs/distribution.md
CHANGED
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
# DiffCI Distribution
|
|
2
|
-
|
|
3
|
-
DiffCI has three install surfaces with the same initial contract: observe CI, write a report, and do
|
|
4
|
-
not change what the host repository runs.
|
|
5
|
-
|
|
6
|
-
The product model is open core. The npm CLI and basic GitHub Action are the open-source adoption path;
|
|
7
|
-
DiffCI Cloud adds hosted history, organization dashboards, policies, managed operations, and support.
|
|
8
|
-
See [`open-core-packaging.md`](open-core-packaging.md).
|
|
9
|
-
|
|
10
|
-
## Channel strategy
|
|
11
|
-
|
|
12
|
-
Reviewed 2026-09-22. These channels have different jobs in the same adoption path:
|
|
13
|
-
|
|
14
|
-
| Channel | Role for DiffCI | Next step |
|
|
15
|
-
| --- | --- | --- |
|
|
16
|
-
| npm | Developer discovery and local evaluation of `@diffci.com/diffci` | Lead with `observe`, a sample report, and the observation-only contract. |
|
|
17
|
-
| GitHub Action | Repeatable CI adoption | Use the dedicated, non-blocking job below and verify the workflow before a pilot. |
|
|
18
|
-
| GitHub Marketplace | CI-specific discovery of the same Action | [DiffCI observer is live](https://github.com/marketplace/actions/diffci-observer); keep the installation example and release pin current. |
|
|
19
|
-
| MCP directories | Discovery for agents that install stdio tools | Publish matching npm and registry metadata, then submit to the official MCP Registry and Glama. |
|
|
20
|
-
| Tidelift | Potential package maintenance assurance and maintainer income | Pursue package acceptance using the existing submission packet; do not present support as active. |
|
|
21
|
-
| Commercial DiffCI | Paid hosted history, analytics, team workflows, and managed operations | Validate demand with design partners and distinguish available services from future acceleration capabilities. |
|
|
22
|
-
|
|
23
|
-
The Action is the integration; Marketplace is a discovery channel for that integration. See
|
|
24
|
-
[GitHub's publishing requirements](https://docs.github.com/en/actions/how-tos/create-and-publish-actions/publish-in-github-marketplace).
|
|
25
|
-
|
|
26
|
-
Prioritize npm and Action activation, then Marketplace discovery. Keep Tidelift outreach in parallel
|
|
27
|
-
without making adoption dependent on acceptance or expected payments. Defer PyPI, Cargo, and Homebrew
|
|
28
|
-
until user demand and a maintained installation experience justify each additional surface.
|
|
29
|
-
|
|
30
|
-
Measure successful first reports, repositories with repeat observations, completed pilot reviews,
|
|
31
|
-
and qualified commercial interest. Downloads and listing views alone do not demonstrate adoption.
|
|
32
|
-
Use voluntary pilot feedback or explicitly configured hosted reporting for these measurements;
|
|
33
|
-
local observation does not imply permission to collect telemetry.
|
|
34
|
-
|
|
35
|
-
Suggested positioning:
|
|
36
|
-
|
|
37
|
-
> Install DiffCI through npm or GitHub Actions to inspect what your CI could avoid running while
|
|
38
|
-
> leaving CI execution unchanged. Explore hosted reports and shared history with the DiffCI team.
|
|
39
|
-
|
|
40
|
-
Acceleration and managed infrastructure remain product directions unless a specific capability is
|
|
41
|
-
available and validated. Potential savings in shadow reports are not realized customer savings.
|
|
42
|
-
|
|
43
|
-
Tidelift's published payment policy allows individuals, for-profit organizations, and nonprofits to
|
|
44
|
-
receive payments with a signed agreement. A nonprofit recipient is therefore not inherently required.
|
|
45
|
-
Payment depends on factors including subscriber usage and package importance; this does not establish
|
|
46
|
-
DiffCI's eligibility, acceptance, or income. See [Tidelift's payment policy](https://support.tidelift.com/hc/en-us/articles/4406294816916-How-we-pay-lifters)
|
|
47
|
-
and the [DiffCI submission packet](tidelift-submission.md).
|
|
48
|
-
|
|
49
|
-
## GitHub App
|
|
50
|
-
|
|
51
|
-
The DiffCI
|
|
52
|
-
repository events, runs shadow analysis outside the repository's CI jobs, and reconciles predictions
|
|
53
|
-
against real CI outcomes. Use it when a maintainer wants observation without adding a workflow step.
|
|
54
|
-
|
|
55
|
-
## GitHub Action
|
|
56
|
-
|
|
57
|
-
The GitHub Action is the OSS dependency-graph path. A repository installs DiffCI as its own
|
|
58
|
-
continue-on-error job:
|
|
59
|
-
|
|
60
|
-
```yaml
|
|
61
|
-
jobs:
|
|
62
|
-
diffci:
|
|
63
|
-
runs-on: ubuntu-latest
|
|
64
|
-
continue-on-error: true
|
|
65
|
-
permissions:
|
|
66
|
-
contents: read
|
|
67
|
-
steps:
|
|
68
|
-
- uses: actions/checkout@v4
|
|
69
|
-
with:
|
|
70
|
-
fetch-depth: 0
|
|
71
|
-
- uses: DiffCI/DiffCI.com@
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
The example pins release `v0.2.
|
|
75
|
-
checks that the job is dedicated, read-only, not required by other jobs, and unable to alter the rest
|
|
76
|
-
of CI.
|
|
77
|
-
|
|
78
|
-
## npm CLI
|
|
79
|
-
|
|
80
|
-
The CLI is the standalone npm package surface. The package name is `@diffci.com/diffci`:
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
npx @diffci.com/diffci@latest observe
|
|
84
|
-
npx @diffci.com/diffci@latest verify-workflow
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
`observe` writes a JSON report outside the checkout by default. It never runs, skips, cancels, or
|
|
88
|
-
reorders tests. A hosted endpoint is opt-in: reports are sent only when both `DIFFCI_API_URL` and
|
|
89
|
-
`DIFFCI_TOKEN` are set, or when equivalent CLI flags are passed.
|
|
90
|
-
|
|
91
|
-
## Report Shape
|
|
92
|
-
|
|
93
|
-
A shadow report should answer the adoption question before it asks for operational trust:
|
|
94
|
-
|
|
95
|
-
```text
|
|
96
|
-
DiffCI - last 30 days
|
|
97
|
-
|
|
98
|
-
CI runs observed 423
|
|
99
|
-
Compute time 18,240 min
|
|
100
|
-
Potentially avoidable 6,810 min
|
|
101
|
-
Potential reduction 37.3%
|
|
102
|
-
|
|
103
|
-
Estimated compute avoided xxx CPU-hours
|
|
104
|
-
Estimated electricity xxx kWh
|
|
105
|
-
Estimated CO2 xxx kg
|
|
106
|
-
Estimated water xxx L
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
That makes the open-source proposition explicit: install DiffCI
|
|
110
|
-
how much compute may be wasted.
|
|
111
|
-
|
|
112
|
-
## Future Package Managers
|
|
113
|
-
|
|
114
|
-
npm plus the GitHub Action are enough to establish the pattern. Later package surfaces can wrap the
|
|
115
|
-
same observer contract:
|
|
116
|
-
|
|
117
|
-
```bash
|
|
118
|
-
pip install diffci
|
|
119
|
-
cargo install diffci
|
|
120
|
-
brew install diffci
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
Those should ship only after the npm CLI and Action have signed releases, provenance, pinned build
|
|
124
|
-
workflows, and repeatable package verification.
|
|
125
|
-
|
|
126
|
-
## Supported OSS Channel
|
|
127
|
-
|
|
128
|
-
Tidelift belongs to the open-source package channel. It can provide maintenance, security, license, and
|
|
129
|
-
supply-chain assurance for the npm package without requiring a hosted DiffCI account. It should support
|
|
130
|
-
the OSS core rather than define a separate feature tier. The readiness checklist lives in
|
|
131
|
-
[`tidelift-package-support.md`](tidelift-package-support.md).
|
|
1
|
+
# DiffCI Distribution
|
|
2
|
+
|
|
3
|
+
DiffCI has three install surfaces with the same initial contract: observe CI, write a report, and do
|
|
4
|
+
not change what the host repository runs.
|
|
5
|
+
|
|
6
|
+
The product model is open core. The npm CLI and basic GitHub Action are the open-source adoption path;
|
|
7
|
+
DiffCI Cloud adds hosted history, organization dashboards, policies, managed operations, and support.
|
|
8
|
+
See [`open-core-packaging.md`](open-core-packaging.md).
|
|
9
|
+
|
|
10
|
+
## Channel strategy
|
|
11
|
+
|
|
12
|
+
Reviewed 2026-09-22. These channels have different jobs in the same adoption path:
|
|
13
|
+
|
|
14
|
+
| Channel | Role for DiffCI | Next step |
|
|
15
|
+
| --- | --- | --- |
|
|
16
|
+
| npm | Developer discovery and local evaluation of `@diffci.com/diffci` | Lead with `observe`, a sample report, and the observation-only contract. |
|
|
17
|
+
| GitHub Action | Repeatable CI adoption | Use the dedicated, non-blocking job below and verify the workflow before a pilot. |
|
|
18
|
+
| GitHub Marketplace | CI-specific discovery of the same Action | [DiffCI observer is live](https://github.com/marketplace/actions/diffci-observer); keep the installation example and release pin current. |
|
|
19
|
+
| MCP directories | Discovery for agents that install stdio tools | Publish matching npm and registry metadata, then submit to the official MCP Registry and Glama. |
|
|
20
|
+
| Tidelift | Potential package maintenance assurance and maintainer income | Pursue package acceptance using the existing submission packet; do not present support as active. |
|
|
21
|
+
| Commercial DiffCI | Paid hosted history, analytics, team workflows, and managed operations | Validate demand with design partners and distinguish available services from future acceleration capabilities. |
|
|
22
|
+
|
|
23
|
+
The Action is the integration; Marketplace is a discovery channel for that integration. See
|
|
24
|
+
[GitHub's publishing requirements](https://docs.github.com/en/actions/how-tos/create-and-publish-actions/publish-in-github-marketplace).
|
|
25
|
+
|
|
26
|
+
Prioritize npm and Action activation, then Marketplace discovery. Keep Tidelift outreach in parallel
|
|
27
|
+
without making adoption dependent on acceptance or expected payments. Defer PyPI, Cargo, and Homebrew
|
|
28
|
+
until user demand and a maintained installation experience justify each additional surface.
|
|
29
|
+
|
|
30
|
+
Measure successful first reports, repositories with repeat observations, completed pilot reviews,
|
|
31
|
+
and qualified commercial interest. Downloads and listing views alone do not demonstrate adoption.
|
|
32
|
+
Use voluntary pilot feedback or explicitly configured hosted reporting for these measurements;
|
|
33
|
+
local observation does not imply permission to collect telemetry.
|
|
34
|
+
|
|
35
|
+
Suggested positioning:
|
|
36
|
+
|
|
37
|
+
> Install DiffCI through npm or GitHub Actions to inspect what your CI could avoid running while
|
|
38
|
+
> leaving CI execution unchanged. Explore hosted reports and shared history with the DiffCI team.
|
|
39
|
+
|
|
40
|
+
Acceleration and managed infrastructure remain product directions unless a specific capability is
|
|
41
|
+
available and validated. Potential savings in shadow reports are not realized customer savings.
|
|
42
|
+
|
|
43
|
+
Tidelift's published payment policy allows individuals, for-profit organizations, and nonprofits to
|
|
44
|
+
receive payments with a signed agreement. A nonprofit recipient is therefore not inherently required.
|
|
45
|
+
Payment depends on factors including subscriber usage and package importance; this does not establish
|
|
46
|
+
DiffCI's eligibility, acceptance, or income. See [Tidelift's payment policy](https://support.tidelift.com/hc/en-us/articles/4406294816916-How-we-pay-lifters)
|
|
47
|
+
and the [DiffCI submission packet](tidelift-submission.md).
|
|
48
|
+
|
|
49
|
+
## GitHub App
|
|
50
|
+
|
|
51
|
+
The unified read-only DiffCI GitHub App is the lowest-friction research and design-partner path. It receives
|
|
52
|
+
repository events, runs shadow analysis outside the repository's CI jobs, and reconciles predictions
|
|
53
|
+
against real CI outcomes. Use it when a maintainer wants observation without adding a workflow step.
|
|
54
|
+
|
|
55
|
+
## GitHub Action
|
|
56
|
+
|
|
57
|
+
The GitHub Action is the OSS dependency-graph path. A repository installs DiffCI as its own
|
|
58
|
+
continue-on-error job:
|
|
59
|
+
|
|
60
|
+
```yaml
|
|
61
|
+
jobs:
|
|
62
|
+
diffci:
|
|
63
|
+
runs-on: ubuntu-latest
|
|
64
|
+
continue-on-error: true
|
|
65
|
+
permissions:
|
|
66
|
+
contents: read
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@v4
|
|
69
|
+
with:
|
|
70
|
+
fetch-depth: 0
|
|
71
|
+
- uses: DiffCI/DiffCI.com@e852523fade14bf5e0457a6331e97c8a76eedc2b
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The example pins release `v0.2.7` to its qualified feature commit SHA. `npx "@diffci.com/diffci@latest" verify-workflow`
|
|
75
|
+
checks that the job is dedicated, read-only, not required by other jobs, and unable to alter the rest
|
|
76
|
+
of CI.
|
|
77
|
+
|
|
78
|
+
## npm CLI
|
|
79
|
+
|
|
80
|
+
The CLI is the standalone npm package surface. The package name is `@diffci.com/diffci`:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npx "@diffci.com/diffci@latest" observe
|
|
84
|
+
npx "@diffci.com/diffci@latest" verify-workflow
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
`observe` writes a JSON report outside the checkout by default. It never runs, skips, cancels, or
|
|
88
|
+
reorders tests. A hosted endpoint is opt-in: reports are sent only when both `DIFFCI_API_URL` and
|
|
89
|
+
`DIFFCI_TOKEN` are set, or when equivalent CLI flags are passed.
|
|
90
|
+
|
|
91
|
+
## Report Shape
|
|
92
|
+
|
|
93
|
+
A shadow report should answer the adoption question before it asks for operational trust:
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
DiffCI - last 30 days
|
|
97
|
+
|
|
98
|
+
CI runs observed 423
|
|
99
|
+
Compute time 18,240 min
|
|
100
|
+
Potentially avoidable 6,810 min
|
|
101
|
+
Potential reduction 37.3%
|
|
102
|
+
|
|
103
|
+
Estimated compute avoided xxx CPU-hours
|
|
104
|
+
Estimated electricity xxx kWh
|
|
105
|
+
Estimated CO2 xxx kg
|
|
106
|
+
Estimated water xxx L
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
That makes the open-source proposition explicit: install DiffCI, change nothing in CI, and learn
|
|
110
|
+
how much compute may be wasted.
|
|
111
|
+
|
|
112
|
+
## Future Package Managers
|
|
113
|
+
|
|
114
|
+
npm plus the GitHub Action are enough to establish the pattern. Later package surfaces can wrap the
|
|
115
|
+
same observer contract:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
pip install diffci
|
|
119
|
+
cargo install diffci
|
|
120
|
+
brew install diffci
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Those should ship only after the npm CLI and Action have signed releases, provenance, pinned build
|
|
124
|
+
workflows, and repeatable package verification.
|
|
125
|
+
|
|
126
|
+
## Supported OSS Channel
|
|
127
|
+
|
|
128
|
+
Tidelift belongs to the open-source package channel. It can provide maintenance, security, license, and
|
|
129
|
+
supply-chain assurance for the npm package without requiring a hosted DiffCI account. It should support
|
|
130
|
+
the OSS core rather than define a separate feature tier. The readiness checklist lives in
|
|
131
|
+
[`tidelift-package-support.md`](tidelift-package-support.md).
|
package/docs/grok.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Install repository instructions:
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npx @diffci.com/diffci@latest init
|
|
6
|
+
npx "@diffci.com/diffci@latest" init
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Default validation command:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx @diffci.com/diffci@latest check
|
|
12
|
+
npx "@diffci.com/diffci@latest" check
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Use DiffCI before PR-ready answers. `check` analyzes the change and runs inferred full and selected
|