@diffci.com/diffci 0.3.36 → 0.3.38

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.
Files changed (34) hide show
  1. package/dist-client/src/client/check-plan-junit.js +12 -3
  2. package/dist-client/src/client/command-batches.d.ts +6 -0
  3. package/dist-client/src/client/command-batches.js +7 -1
  4. package/dist-client/src/client/context.d.ts +13 -0
  5. package/dist-client/src/client/context.js +27 -0
  6. package/dist-client/src/client/hook.d.ts +7 -0
  7. package/dist-client/src/client/hook.js +34 -3
  8. package/dist-client/src/client/node-bin-launch.d.ts +10 -0
  9. package/dist-client/src/client/node-bin-launch.js +71 -0
  10. package/dist-client/src/client/observe.js +4 -3
  11. package/dist-client/src/client/verify-savings.js +18 -11
  12. package/node_modules/@diffci.com/core/README.md +42 -6
  13. package/node_modules/@diffci.com/core/dist/cache/graph-cache.d.ts +1 -1
  14. package/node_modules/@diffci.com/core/dist/cache/graph-cache.js +1 -1
  15. package/node_modules/@diffci.com/core/dist/cache/vue-analysis-cache.js +2 -0
  16. package/node_modules/@diffci.com/core/dist/cache/vue-analysis-cache.js.map +1 -1
  17. package/node_modules/@diffci.com/core/dist/repo/adapters/types.d.ts +5 -0
  18. package/node_modules/@diffci.com/core/dist/repo/adapters/types.js.map +1 -1
  19. package/node_modules/@diffci.com/core/dist/repo/adapters/vue.js +25 -3
  20. package/node_modules/@diffci.com/core/dist/repo/adapters/vue.js.map +1 -1
  21. package/node_modules/@diffci.com/core/dist/repo/graph.d.ts +5 -1
  22. package/node_modules/@diffci.com/core/dist/repo/graph.js +185 -6
  23. package/node_modules/@diffci.com/core/dist/repo/graph.js.map +1 -1
  24. package/node_modules/@diffci.com/core/dist/repo/impact.js +6 -1
  25. package/node_modules/@diffci.com/core/dist/repo/impact.js.map +1 -1
  26. package/node_modules/@diffci.com/core/dist/repo/types.d.ts +12 -0
  27. package/node_modules/@diffci.com/core/src/cache/graph-cache.ts +1 -1
  28. package/node_modules/@diffci.com/core/src/cache/vue-analysis-cache.ts +1 -0
  29. package/node_modules/@diffci.com/core/src/repo/adapters/types.ts +2 -0
  30. package/node_modules/@diffci.com/core/src/repo/adapters/vue.ts +15 -3
  31. package/node_modules/@diffci.com/core/src/repo/graph.ts +152 -6
  32. package/node_modules/@diffci.com/core/src/repo/impact.ts +5 -1
  33. package/node_modules/@diffci.com/core/src/repo/types.ts +13 -0
  34. package/package.json +2 -2
@@ -1,6 +1,10 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  import { posix, win32 } from "node:path";
3
3
  import { SaxesParser } from "saxes";
4
+ /** A frame that may directly contain testsuite and testcase elements. */
5
+ function isSuiteContainer(frame) {
6
+ return frame?.name === "testsuite" || frame?.name === "testsuites" || frame?.nodeRoot === true;
7
+ }
4
8
  const MAX_BYTES = 16 * 1024 * 1024;
5
9
  const MAX_DEPTH = 128;
6
10
  const MAX_TAGS = 100_000;
@@ -78,8 +82,13 @@ export function readJunit(xml, onCase) {
78
82
  if (!parent && name !== "testsuite" && name !== "testsuites") {
79
83
  invalid("The root must be testsuite or testsuites.");
80
84
  }
81
- if (name === "testsuite" || name === "testsuites") {
82
- if (parent && parent.name !== "testsuite" && parent.name !== "testsuites") {
85
+ if (name === "undefined" && attributes.name === "root" && parent?.name === "testsuites" && frames.length === 1) {
86
+ // Node's built-in junit reporter (verified on 24.16.0) writes the root test as this tag when a
87
+ // root-level hook fails, and nests the rest of the report inside it. It names no suite or file.
88
+ frame.nodeRoot = true;
89
+ }
90
+ else if (name === "testsuite" || name === "testsuites") {
91
+ if (parent && !isSuiteContainer(parent)) {
83
92
  invalid("A test suite must be inside a suite container.");
84
93
  }
85
94
  const outer = inherited();
@@ -103,7 +112,7 @@ export function readJunit(xml, onCase) {
103
112
  suites.push(suite);
104
113
  }
105
114
  else if (name === "testcase") {
106
- if (parent?.name !== "testsuite" && parent?.name !== "testsuites")
115
+ if (!isSuiteContainer(parent))
107
116
  invalid("A testcase must be inside a testsuite.");
108
117
  frame.testCase = {
109
118
  skipped: false,
@@ -11,6 +11,12 @@ import { type CommandMeasurement } from "./verify-savings.js";
11
11
  * listing a share of the files, run one after another and reported as one verification. Splitting only
12
12
  * happens when the command ends in exactly the selected paths as plain tokens; anything else is left
13
13
  * whole, because rewriting a command that is not understood could change what it runs.
14
+ *
15
+ * The Windows budget is 6,000 rather than 8,191 (2026-11-09): a part that still goes through `.cmd`
16
+ * shims (`npx.cmd`, then the runner's own) is re-expanded into further cmd.exe lines that add the node
17
+ * and shim paths and npm's `^` escapes. A 7,989-character part of a 282-file DentalPresence selection
18
+ * failed that way; measureCommand now also starts JavaScript runners with node directly
19
+ * (node-bin-launch.ts), and the margin covers the runners it cannot.
14
20
  */
15
21
  export declare const COMMAND_LINE_LIMIT: number;
16
22
  /**
@@ -13,8 +13,14 @@ import { measureCommand } from "./verify-savings.js";
13
13
  * listing a share of the files, run one after another and reported as one verification. Splitting only
14
14
  * happens when the command ends in exactly the selected paths as plain tokens; anything else is left
15
15
  * whole, because rewriting a command that is not understood could change what it runs.
16
+ *
17
+ * The Windows budget is 6,000 rather than 8,191 (2026-11-09): a part that still goes through `.cmd`
18
+ * shims (`npx.cmd`, then the runner's own) is re-expanded into further cmd.exe lines that add the node
19
+ * and shim paths and npm's `^` escapes. A 7,989-character part of a 282-file DentalPresence selection
20
+ * failed that way; measureCommand now also starts JavaScript runners with node directly
21
+ * (node-bin-launch.ts), and the margin covers the runners it cannot.
16
22
  */
17
- export const COMMAND_LINE_LIMIT = process.platform === "win32" ? 8000 : 100_000;
23
+ export const COMMAND_LINE_LIMIT = process.platform === "win32" ? 6000 : 100_000;
18
24
  /**
19
25
  * The runner prefix and the selected paths `command` ends with, one token each, or undefined when it does
20
26
  * not end in exactly selected paths. Every rewrite here (batching, reordering, splitting) needs this shape.
@@ -44,4 +44,17 @@ export interface ResolveCommitRangeOptions {
44
44
  baseOverride?: string;
45
45
  headOverride?: string;
46
46
  }
47
+ /**
48
+ * Shallow CI clones (2026-11-08). `actions/checkout` fetches one commit and GitLab twenty, so the base
49
+ * commit is usually missing, and every new user had to learn `fetch-depth: 0` or `GIT_DEPTH: "0"` before
50
+ * DiffCI said anything. The Action already fetched the history itself (v0.3.36); the CLI does the same
51
+ * here, so a CLI step needs no setting either.
52
+ *
53
+ * Only in CI, only when the clone is shallow, and only after a range failed to resolve: a local clone is
54
+ * never fetched into, and a deep enough checkout costs nothing. Fetching adds commits to the object store
55
+ * and moves no ref, HEAD or file, so the checkout DiffCI observes is unchanged. When the fetch fails
56
+ * (a checkout that kept no credentials, as with `persist-credentials: false`), the refusal keeps its
57
+ * `fetch-depth: 0` hint and says why the fetch failed.
58
+ */
59
+ export declare function resolveCommitRangeFetchingHistory(options: ResolveCommitRangeOptions): CommitRangeResolution;
47
60
  export declare function resolveCommitRange(options: ResolveCommitRangeOptions): CommitRangeResolution;
@@ -174,6 +174,33 @@ function resolveGitlabRange(env, git) {
174
174
  }
175
175
  return undefined;
176
176
  }
177
+ /**
178
+ * Shallow CI clones (2026-11-08). `actions/checkout` fetches one commit and GitLab twenty, so the base
179
+ * commit is usually missing, and every new user had to learn `fetch-depth: 0` or `GIT_DEPTH: "0"` before
180
+ * DiffCI said anything. The Action already fetched the history itself (v0.3.36); the CLI does the same
181
+ * here, so a CLI step needs no setting either.
182
+ *
183
+ * Only in CI, only when the clone is shallow, and only after a range failed to resolve: a local clone is
184
+ * never fetched into, and a deep enough checkout costs nothing. Fetching adds commits to the object store
185
+ * and moves no ref, HEAD or file, so the checkout DiffCI observes is unchanged. When the fetch fails
186
+ * (a checkout that kept no credentials, as with `persist-credentials: false`), the refusal keeps its
187
+ * `fetch-depth: 0` hint and says why the fetch failed.
188
+ */
189
+ export function resolveCommitRangeFetchingHistory(options) {
190
+ const first = resolveCommitRange(options);
191
+ if (first.ok)
192
+ return first;
193
+ const { env, git } = options;
194
+ if (env.GITHUB_ACTIONS !== "true" && env.GITLAB_CI !== "true")
195
+ return first;
196
+ const shallow = git(["rev-parse", "--is-shallow-repository"]);
197
+ if (!shallow.ok || shallow.stdout.trim() !== "true")
198
+ return first;
199
+ const fetched = git(["fetch", "--quiet", "--no-tags", "--unshallow", "origin"]);
200
+ if (!fetched.ok)
201
+ return { ok: false, reason: `${first.reason} (fetching the full history failed: ${fetched.error})` };
202
+ return resolveCommitRange(options);
203
+ }
177
204
  export function resolveCommitRange(options) {
178
205
  const { env, git, baseOverride, headOverride } = options;
179
206
  if (baseOverride !== undefined || headOverride !== undefined) {
@@ -18,6 +18,11 @@
18
18
  * worktree of the pushed commit, linking the checkout's node_modules only when the root lockfiles match.
19
19
  * Links are removed before the worktree, so cleanup can never delete the real dependencies.
20
20
  *
21
+ * NOT INSTALLED (2026-11-08). In a checkout without dependencies, `npx --no-install diffci` printed npm's
22
+ * 404 and exited 1, which the hook read as failing tests and blocked the push. The hook now runs
23
+ * `diffci version` first. When DiffCI does not run, the hook says how to install it and treats the push
24
+ * as unverifiable (exit 2), not failed.
25
+ *
21
26
  * REPORTING (2026-10-29). When DIFFCI_API_URL and DIFFCI_TOKEN are set, the hook also sends an
22
27
  * observation report for the pushed range, the same report the GitHub Action sends. A dogfood repository
23
28
  * whose GitHub Actions minutes ran out sent nothing for two weeks while its builds moved to another CI;
@@ -25,6 +30,8 @@
25
30
  */
26
31
  export declare const HOOK_MARKER = "# diffci:managed pre-push hook";
27
32
  export declare function prePushHook(command: string): string;
33
+ /** What to tell someone whose checkout cannot run DiffCI, by the command the hook was written for. */
34
+ export declare function installHint(command: string): string;
28
35
  /** The command the hook runs: the installed binary when the repository has DiffCI as a dependency,
29
36
  * otherwise a pinned npx invocation, so the hook never floats to a newer release. */
30
37
  export declare function hookCommand(manager: "npm" | "pnpm" | "yarn" | "bun" | undefined, version: string): string;
@@ -21,6 +21,11 @@ import { dirname, isAbsolute, join, relative } from "node:path";
21
21
  * worktree of the pushed commit, linking the checkout's node_modules only when the root lockfiles match.
22
22
  * Links are removed before the worktree, so cleanup can never delete the real dependencies.
23
23
  *
24
+ * NOT INSTALLED (2026-11-08). In a checkout without dependencies, `npx --no-install diffci` printed npm's
25
+ * 404 and exited 1, which the hook read as failing tests and blocked the push. The hook now runs
26
+ * `diffci version` first. When DiffCI does not run, the hook says how to install it and treats the push
27
+ * as unverifiable (exit 2), not failed.
28
+ *
24
29
  * REPORTING (2026-10-29). When DIFFCI_API_URL and DIFFCI_TOKEN are set, the hook also sends an
25
30
  * observation report for the pushed range, the same report the GitHub Action sends. A dogfood repository
26
31
  * whose GitHub Actions minutes ran out sent nothing for two weeks while its builds moved to another CI;
@@ -28,6 +33,7 @@ import { dirname, isAbsolute, join, relative } from "node:path";
28
33
  */
29
34
  export const HOOK_MARKER = "# diffci:managed pre-push hook";
30
35
  export function prePushHook(command) {
36
+ const install = installHint(command);
31
37
  return `#!/bin/sh
32
38
  ${HOOK_MARKER}
33
39
  # Verifies the commits being pushed with DiffCI's affected tests. Skip once: git push --no-verify
@@ -52,6 +58,13 @@ unlink_dir() {
52
58
  if [ "$windows" = "1" ]; then cmd //c rmdir "$(cygpath -w "$1")" >/dev/null 2>&1; else rm -f "$1"; fi
53
59
  }
54
60
 
61
+ # Whether DiffCI runs here. Not installed means "could not verify", never a failed verification.
62
+ diffci_runs() {
63
+ if ${command} version >/dev/null 2>&1 </dev/null; then return 0; fi
64
+ echo "diffci: DiffCI did not start; ${install}, then push again" >&2
65
+ return 2
66
+ }
67
+
55
68
  # Verifies the pushed commit in a clean temporary worktree, so uncommitted or untracked files in this
56
69
  # checkout neither block nor influence the result. Installed dependencies are reused only when the
57
70
  # pushed commit's lockfiles match this checkout's; otherwise it reports that it could not verify.
@@ -84,7 +97,7 @@ verify_in_worktree() {
84
97
  linked="$linked $tree/$dir"
85
98
  fi
86
99
  done
87
- (cd "$tree" && ${command} verify --base "$1" --head "$2" </dev/null)
100
+ (cd "$tree" && diffci_runs && ${command} verify --base "$1" --head "$2" </dev/null)
88
101
  result=$?
89
102
  fi
90
103
  # Links first: removing the worktree must never reach through a link into this checkout.
@@ -107,8 +120,12 @@ while read -r local_ref local_sha remote_ref remote_sha; do
107
120
  fi
108
121
  if [ "$local_sha" = "$head" ] && [ -z "$(git status --porcelain 2>/dev/null)" ]; then
109
122
  echo "diffci: verifying $base..$local_sha before push" >&2
110
- ${command} verify --base "$base" --head "$local_sha" </dev/null
111
- code=$?
123
+ if diffci_runs; then
124
+ ${command} verify --base "$base" --head "$local_sha" </dev/null
125
+ code=$?
126
+ else
127
+ code=2
128
+ fi
112
129
  else
113
130
  echo "diffci: verifying $base..$local_sha in a clean temporary worktree (this checkout has other changes or another branch)" >&2
114
131
  verify_in_worktree "$base" "$local_sha"
@@ -133,6 +150,20 @@ done
133
150
  exit $status
134
151
  `;
135
152
  }
153
+ /** What to tell someone whose checkout cannot run DiffCI, by the command the hook was written for. */
154
+ export function installHint(command) {
155
+ if (command.startsWith("npx --no-install"))
156
+ return "install the repository's dependencies (npm ci)";
157
+ if (command.startsWith("pnpm "))
158
+ return "install the repository's dependencies (pnpm install)";
159
+ if (command.startsWith("yarn "))
160
+ return "install the repository's dependencies (yarn install)";
161
+ if (command.startsWith("bunx "))
162
+ return "install the repository's dependencies (bun install)";
163
+ if (command.startsWith("npx --yes"))
164
+ return "check that npm can reach its registry";
165
+ return "install the repository's dependencies";
166
+ }
136
167
  /** The command the hook runs: the installed binary when the repository has DiffCI as a dependency,
137
168
  * otherwise a pinned npx invocation, so the hook never floats to a newer release. */
138
169
  export function hookCommand(manager, version) {
@@ -0,0 +1,10 @@
1
+ /**
2
+ * `command` as Windows should launch it from `cwd`: `npx --no-install <bin> ...` becomes
3
+ * `node <script> ...` with the extra PATH entry, or `command` unchanged when that is not safe.
4
+ */
5
+ export declare function windowsLaunch(command: string, cwd: string): {
6
+ command: string;
7
+ pathEntry?: string;
8
+ };
9
+ /** `env` with `entry` first on PATH, keeping Windows' own spelling of the key (usually `Path`). */
10
+ export declare function withPathEntry(env: NodeJS.ProcessEnv, entry: string): NodeJS.ProcessEnv;
@@ -0,0 +1,71 @@
1
+ import { existsSync, readFileSync } from "node:fs";
2
+ import { delimiter, dirname, join, relative, resolve } from "node:path";
3
+ /**
4
+ * Repository-local runners launched without Windows `.cmd` shims (2026-11-09).
5
+ *
6
+ * WHY. Selected TypeScript tests run as `npx --no-install tsx --test <files>`. On Windows `npx` is
7
+ * `npx.cmd`, which hands its arguments to node in a second cmd.exe line, and npx then starts `tsx.cmd`,
8
+ * a third. Each line adds the node and shim paths, and npm escapes arguments with `^`, and cmd.exe
9
+ * rejects any line over 8,191 characters. A DentalPresence selection of 282 files, batched into parts
10
+ * of at most 8,000 characters, still failed before any test ran with exit 255 and "The syntax of the
11
+ * command is incorrect"; `node node_modules/tsx/dist/cli.mjs` with the same files ran all 1,260 tests.
12
+ *
13
+ * WHAT. On Windows a command starting `npx --no-install <bin>` runs as `node <script>` when the
14
+ * package's bin is a JavaScript file reached through the repository's node_modules, with
15
+ * node_modules/.bin on PATH as npx would put it. Anything else (a native binary, a bin that cannot be
16
+ * resolved, other platforms) runs unchanged.
17
+ */
18
+ const NPX_PREFIX = /^npx --no-install ([\w@./-]+)(?=\s|$)/;
19
+ const SAFE_PATH = /^[\w./@+-]+$/;
20
+ /** The `.bin` directory npx would use for `bin`: the nearest one at or above `cwd` that has it. */
21
+ function binDirectory(cwd, bin) {
22
+ for (let dir = resolve(cwd);; dir = dirname(dir)) {
23
+ const candidate = join(dir, "node_modules", ".bin");
24
+ if (existsSync(join(candidate, bin)) || existsSync(join(candidate, `${bin}.cmd`)))
25
+ return candidate;
26
+ if (dirname(dir) === dir)
27
+ return undefined;
28
+ }
29
+ }
30
+ /** The JavaScript file the npm/pnpm `sh` shim for `bin` runs with node, or undefined. */
31
+ function shimScript(binDir, bin) {
32
+ const shim = join(binDir, bin);
33
+ if (!existsSync(shim))
34
+ return undefined;
35
+ let text;
36
+ try {
37
+ text = readFileSync(shim, "utf8");
38
+ }
39
+ catch {
40
+ return undefined;
41
+ }
42
+ // npm: exec node "$basedir/../tsx/dist/cli.mjs" "$@" pnpm: exec node "$basedir/../tsx/dist/cli.mjs" "$@"
43
+ const match = /exec\s+(?:"\$basedir\/node"|node)\s+"\$basedir\/([^"$]+)"\s+"\$@"/.exec(text);
44
+ if (!match)
45
+ return undefined;
46
+ const script = resolve(binDir, match[1]);
47
+ return /\.(?:c|m)?js$/.test(script) && existsSync(script) ? script : undefined;
48
+ }
49
+ /**
50
+ * `command` as Windows should launch it from `cwd`: `npx --no-install <bin> ...` becomes
51
+ * `node <script> ...` with the extra PATH entry, or `command` unchanged when that is not safe.
52
+ */
53
+ export function windowsLaunch(command, cwd) {
54
+ const match = NPX_PREFIX.exec(command);
55
+ if (!match)
56
+ return { command };
57
+ const binDir = binDirectory(cwd, match[1]);
58
+ const script = binDir ? shimScript(binDir, match[1]) : undefined;
59
+ if (!binDir || !script)
60
+ return { command };
61
+ const path = relative(cwd, script).replace(/\\/g, "/");
62
+ if (!SAFE_PATH.test(path))
63
+ return { command };
64
+ return { command: `node ${path}${command.slice(match[0].length)}`, pathEntry: binDir };
65
+ }
66
+ /** `env` with `entry` first on PATH, keeping Windows' own spelling of the key (usually `Path`). */
67
+ export function withPathEntry(env, entry) {
68
+ const key = Object.keys(env).find((name) => name.toUpperCase() === "PATH") ?? "PATH";
69
+ const current = env[key];
70
+ return { ...env, [key]: current ? `${entry}${delimiter}${current}` : entry };
71
+ }
@@ -4,7 +4,8 @@
4
4
  * This is the whole product, executed on someone else's runner: resolve a commit range, build the real
5
5
  * dependency graph from the checkout that is already there, work out which tests DiffCI would have run,
6
6
  * work out what a simple path-rule CI would have run, and write a report. It runs nothing, changes
7
- * nothing, and cancels nothing.
7
+ * nothing, and cancels nothing. (In CI, a shallow clone may have history fetched into its object store
8
+ * first; see resolveCommitRangeFetchingHistory. No ref, HEAD or file moves.)
8
9
  *
9
10
  * Two properties are load-bearing, and both are enforced here rather than promised:
10
11
  *
@@ -24,7 +25,7 @@ import { createHash } from "node:crypto";
24
25
  import { existsSync } from "node:fs";
25
26
  import { dirname, join, relative, resolve } from "node:path";
26
27
  import { economicsContext, evaluateEconomics } from "./economics.js";
27
- import { readCiEnvironment, resolveCommitRange, } from "./context.js";
28
+ import { readCiEnvironment, resolveCommitRangeFetchingHistory, } from "./context.js";
28
29
  import { OBSERVATION_SCHEMA, readTypeScriptProgramMetrics, redactPath, } from "./report.js";
29
30
  import { auditWorkflows } from "./workflow-guard.js";
30
31
  import { deriveSharedGraphCacheKey } from "./shared-graph-cache.js";
@@ -156,7 +157,7 @@ export async function observe(options) {
156
157
  };
157
158
  };
158
159
  try {
159
- const resolved = resolveCommitRange({
160
+ const resolved = resolveCommitRangeFetchingHistory({
160
161
  env: options.env,
161
162
  git,
162
163
  baseOverride: options.baseOverride,
@@ -4,6 +4,7 @@ import { existsSync, lstatSync, mkdirSync, readFileSync, writeFileSync } from "n
4
4
  import { arch, cpus, platform, release, totalmem } from "node:os";
5
5
  import { basename, dirname, resolve } from "node:path";
6
6
  import { failingTestNames } from "./failure-baseline.js";
7
+ import { windowsLaunch, withPathEntry } from "./node-bin-launch.js";
7
8
  import { runnerTestCount } from "./selected-coverage.js";
8
9
  import { parseTestFileResults } from "./test-results.js";
9
10
  import { classifyFailureFromEvidence, computeFailureFingerprint } from "../preflight/fingerprint.js";
@@ -252,23 +253,29 @@ export function measureCommand(command, options) {
252
253
  const started = Date.now();
253
254
  // Match the shell used by Windows package scripts, including && short-circuiting
254
255
  // and native exit codes; Windows PowerShell 5 cannot execute those chains.
255
- const shellCommand = process.platform === "win32" ? "cmd.exe" : "sh";
256
- const shellArgv = process.platform === "win32" ? ["/d", "/s", "/c", command] : ["-c", command];
256
+ const windows = process.platform === "win32";
257
+ const shellCommand = windows ? "cmd.exe" : "sh";
258
+ // On Windows a repository-local runner starts as `node <script>`, not through `npx.cmd` and its bin's
259
+ // `.cmd` shim, each of which re-expands the arguments into another cmd.exe line (node-bin-launch.ts).
260
+ // The measurement still reports the command as planned.
261
+ const launch = windows ? windowsLaunch(command, options.cwd) : { command };
262
+ const shellArgv = windows ? ["/d", "/s", "/c", launch.command] : ["-c", command];
263
+ const env = {
264
+ ...withoutTestRunnerContext(process.env),
265
+ ...options.env,
266
+ CI: "1",
267
+ FORCE_COLOR: "0",
268
+ COREPACK_ENABLE_DOWNLOAD_PROMPT: "0",
269
+ npm_config_yes: "true",
270
+ };
257
271
  const result = spawnSync(shellCommand, shellArgv, {
258
272
  cwd: options.cwd,
259
273
  encoding: "utf8",
260
274
  timeout: options.timeoutMs,
261
275
  maxBuffer: 256 * 1024 * 1024,
262
276
  shell: false,
263
- windowsVerbatimArguments: process.platform === "win32",
264
- env: {
265
- ...withoutTestRunnerContext(process.env),
266
- ...options.env,
267
- CI: "1",
268
- FORCE_COLOR: "0",
269
- COREPACK_ENABLE_DOWNLOAD_PROMPT: "0",
270
- npm_config_yes: "true",
271
- },
277
+ windowsVerbatimArguments: windows,
278
+ env: launch.pathEntry ? withPathEntry(env, launch.pathEntry) : env,
272
279
  });
273
280
  const finishedAt = new Date().toISOString();
274
281
  const failingTests = result.status === 0 ? [] : failingTestNames(`${result.stdout ?? ""}
@@ -17,11 +17,13 @@ Run it in any Git checkout with Node.js 22.5+. [What the output means](docs/usin
17
17
 
18
18
  ```yaml
19
19
  - uses: actions/checkout@v7
20
- with:
21
- fetch-depth: 0 # DiffCI needs the base commit
22
- - uses: DiffCI/core@v0.3.34
20
+ - uses: DiffCI/core@v0.3.36
23
21
  ```
24
22
 
23
+ Add `with: comment: "true"` (and `pull-requests: write` on the job) and the same answer appears on the pull request itself, updated in place on each push:
24
+
25
+ <img src="docs/pr-comment.png" alt="DiffCI pull request comment: 18 of 624 test files are affected by 1 changed file, with a table of each test and why it was selected" width="640">
26
+
25
27
  [Full workflow](examples/github-actions-observer.yml) · [GitLab CI/CD component](integrations/gitlab/README.md)
26
28
 
27
29
  [![DiffCI demo video](docs/demo-video.jpg)](https://www.youtube.com/watch?v=ychCnVVRQq0)
@@ -37,12 +39,46 @@ Coding agents pass the narrow check they picked and miss wider breakage, then re
37
39
  - **When DiffCI could narrow the run, it selected 2.2% of test files**, cutting test time by 93%. None of those commits had a failing test, so this shows speed, not regression catching.
38
40
  - **DiffCI still fell back to the full suite on 58% of commits**, mostly because a config file or `package.json` changed. Narrowing those safely is the main open problem, and [a good place to contribute](#contributing).
39
41
 
42
+ ## MCP server
43
+
44
+ This repository contains DiffCI's MCP server. It is implemented in
45
+ [`packages/diffci-cli/src/client/mcp.ts`](packages/diffci-cli/src/client/mcp.ts)
46
+ and published as the `diffci-mcp` binary of `@diffci.com/diffci`: a local
47
+ stdio server speaking JSON-RPC 2.0 (`initialize`, `tools/list`, `tools/call`)
48
+ that runs against the checkout it is pointed at. It needs no account and sends
49
+ nothing by default.
50
+
51
+ ```sh
52
+ npx -y -p @diffci.com/diffci@latest diffci-mcp
53
+ ```
54
+
55
+ ```json
56
+ {
57
+ "mcpServers": {
58
+ "diffci": { "command": "npx", "args": ["-y", "-p", "@diffci.com/diffci@latest", "diffci-mcp"] }
59
+ }
60
+ }
61
+ ```
62
+
63
+ | Tool | What it does |
64
+ | --- | --- |
65
+ | `diffci_changed_files` | Lists staged, unstaged and untracked changes; runs no tests |
66
+ | `diffci_select_tests` | Returns the affected-test plan for the current changes, with fallback reasons; runs no tests |
67
+ | `diffci_explain_selection` | The same plan, for explaining why each test is in it |
68
+ | `diffci_run_affected_tests` | Verifies the current snapshot with the affected tests, or the full suite as a fallback |
69
+ | `diffci_verify_changed` | Verifies the exact working-tree snapshot; fails closed |
70
+ | `diffci_verify` | Verifies a clean commit range and returns a receipt bound to HEAD |
71
+ | `diffci_check` | Compares full and selected test runs and reports paired runtime |
72
+ | `diffci_init` | Seeds agent instructions, MCP configs, the verify skill and a pre-push hook |
73
+ | `diffci_verify_workflow` | Checks that a DiffCI GitHub Actions job cannot affect the rest of CI |
74
+
40
75
  ## Use it from your coding agent
41
76
 
42
77
  The public [`integrations/agent-plugin`](integrations/agent-plugin) package
43
- makes the published DiffCI CLI available as a checkout-aware local MCP plugin.
44
- It contains only public marketplace metadata, skills, and a pinned npm
45
- launcher; it does not include product services or private source. The
78
+ packages the MCP server above as a checkout-aware local plugin for agent
79
+ marketplaces: marketplace metadata, skills, and a launcher pinned to the
80
+ published `diffci-mcp` binary. It does not include product services or private
81
+ source. The
46
82
  [cross-agent installation guide](docs/agent-installation.md) covers Codex,
47
83
  Claude Code, Cursor, Grok, Meta Muse Code, and generic MCP hosts.
48
84
 
@@ -1,5 +1,5 @@
1
1
  import type { DependencyGraphResult } from "../repo/types.js";
2
- export declare const GRAPH_CACHE_SCHEMA_VERSION = "8";
2
+ export declare const GRAPH_CACHE_SCHEMA_VERSION = "9";
3
3
  export interface GraphCacheKeyInputs {
4
4
  commitSha: string;
5
5
  tsconfigHash?: string;
@@ -7,7 +7,7 @@ import { resolve } from "node:path";
7
7
  // 6: the profile's diffciConfig carries declared `inputs` (2026-11-05).
8
8
  // 7: folded computed specifiers and root-absolute Vite globs have edges (2026-11-06).
9
9
  // 8: Python projects have a graph, and the profile carries pythonSources/pythonTests (2026-11-06).
10
- export const GRAPH_CACHE_SCHEMA_VERSION = "8";
10
+ export const GRAPH_CACHE_SCHEMA_VERSION = "9";
11
11
  export function buildGraphCacheKey(inputs) {
12
12
  const payload = JSON.stringify({
13
13
  schema: GRAPH_CACHE_SCHEMA_VERSION,
@@ -89,6 +89,8 @@ export function analyzeVueCached(context, directory, version) {
89
89
  result[field].push(...item[field]);
90
90
  result.blockers.push(...item.blockers.filter(blocker => !result.blockers.includes(blocker)));
91
91
  (result.fileBlockers ??= []).push(...(item.fileBlockers ?? []));
92
+ if (item.subjectBlockers?.length)
93
+ (result.subjectBlockers ??= []).push(...item.subjectBlockers);
92
94
  Object.assign(result.testPackages, item.testPackages);
93
95
  for (const [name, value] of Object.entries(item.performance?.phasesMs ?? {}))
94
96
  phasesMs[name] = (phasesMs[name] ?? 0) + value;
@@ -1 +1 @@
1
- {"version":3,"file":"vue-analysis-cache.js","sourceRoot":"","sources":["../../src/cache/vue-analysis-cache.ts"],"names":[],"mappings":"AAAA,OA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AC,CAAC,CAAC;QAC7F,CAAC,MAAM,CAAC,YAAY,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,CAAC;QAChE,IAAI,IAAI,CAAC,eAAe,EAAE,MAAM;YAAE,CAAC,MAAM,CAAC,eAAe,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC;QAChG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QACtD,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,IAAI,EAAE,CAAC;YAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC;QAC7H,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,IAAI,EAAE,CAAC;YAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC;IACzH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -30,6 +30,11 @@ export interface AdapterContribution {
30
30
  path: string;
31
31
  reason: string;
32
32
  }>;
33
+ /** Blockers (also listed in `blockers`) whose missing edges start at `path`, for package-directory scoping. */
34
+ subjectBlockers?: Array<{
35
+ path: string;
36
+ reason: string;
37
+ }>;
33
38
  performance?: {
34
39
  phasesMs: Record<string, number>;
35
40
  counts: Record<string, number>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/repo/adapters/types.ts"],"names":[],"mappings":"AAuCA,MAAM,UAAU,YAAY,CAAC,OAAkD;IAC7E,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;AACrK,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/repo/adapters/types.ts"],"names":[],"mappings":"AAyCA,MAAM,UAAU,YAAY,CAAC,OAAkD;IAC7E,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;AACrK,CAAC"}
@@ -51,7 +51,7 @@ function registeredComponents(source) {
51
51
  import { contribution } from "./types.js";
52
52
  /** Explicit Vue SFC imports. Runtime component registries and preprocessors require full CI. */
53
53
  export const vueAdapter = {
54
- id: "vue", version: "7", kind: "framework",
54
+ id: "vue", version: "8", kind: "framework",
55
55
  detect: ({ files }) => files.some((file) => file.endsWith(".vue")),
56
56
  analyze(context) {
57
57
  const phasesMs = {};
@@ -84,8 +84,30 @@ export const vueAdapter = {
84
84
  const result = contribution(this);
85
85
  result.performance = { phasesMs, counts };
86
86
  const dependencies = [...context.profile.packageJson.dependencies, ...context.profile.packageJson.devDependencies];
87
- if (dependencies.includes("nuxt") || context.files.some((file) => /(?:^|\/)nuxt\.config\./.test(file))) {
88
- result.blockers.push("Nuxt implicit routes and auto-imports require a dedicated framework adapter");
87
+ const nuxtGlobal = "Nuxt implicit routes and auto-imports require a dedicated framework adapter";
88
+ const nuxtConfigs = context.files.filter((file) => /(?:^|\/)nuxt\.config\.[^/]+$/.test(file));
89
+ if (dependencies.includes("nuxt"))
90
+ result.blockers.push(nuxtGlobal);
91
+ for (const config of nuxtConfigs) {
92
+ // A nested Nuxt app resolves its implicit routes and auto-imports inside its own directory unless its
93
+ // configuration reaches other directories: layers, a moved root, a parent-relative path, or a path
94
+ // computed at load time. Those stay global. An alias or srcDir inside the app needs none of these.
95
+ let text = "";
96
+ try {
97
+ text = readFileSync(join(context.repoPath, config), "utf8");
98
+ }
99
+ catch {
100
+ text = "extends";
101
+ }
102
+ const confined = config.includes("/") && !/\b(?:extends|layers|rootDir|workspaceDir)\b|\.\.[\\/]|__dirname|__filename|import\.meta|process\.cwd|\bresolve\s*\(|\bjoin\s*\(/.test(text);
103
+ if (!confined) {
104
+ if (!result.blockers.includes(nuxtGlobal))
105
+ result.blockers.push(nuxtGlobal);
106
+ continue;
107
+ }
108
+ const reason = `${nuxtGlobal}: ${config}`;
109
+ result.blockers.push(reason);
110
+ (result.subjectBlockers ??= []).push({ path: config, reason });
89
111
  }
90
112
  for (const path of context.vueComponentPaths ?? context.files.filter((file) => file.endsWith(".vue"))) {
91
113
  counts.components++;
@@ -1 +1 @@
1
- {"version":3,"file":"vue.js","sourceRoot":"","sources":["../../../src/repo/adapters/vue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpD,IAAI,eAAmC,CAAC;AACxC,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;AAE1C,yFAAyF;AACz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