@diffci.com/diffci 0.3.19 → 0.3.20

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.
@@ -324,6 +324,19 @@ export function formatVerificationSummary(report) {
324
324
  lines.push(` checks: ${report.checks.map((check) => `${check.id} ${check.status}`).join(", ")}`);
325
325
  if (report.command)
326
326
  lines.push(` command: ${report.command}`);
327
+ // A blocked push has to say what broke, not only that something did (2026-10-30 demo rehearsal: the
328
+ // summary said "exit code 1" and nothing else).
329
+ if (report.verification === "failed" && report.execution) {
330
+ const failing = report.execution.failingTests ?? [];
331
+ if (failing.length)
332
+ lines.push(` failing tests: ${failing.slice(0, 5).join(", ")}${failing.length > 5 ? `, ${failing.length - 5} more` : ""}`);
333
+ const output = (report.execution.stderrTail.trim() ? report.execution.stderrTail : report.execution.stdoutTail)
334
+ .split(/\r?\n/)
335
+ .map((line) => line.replace(/\x1b\[[0-9;]*m/g, "").trimEnd())
336
+ .filter((line) => line.trim() && !/^\s+at /.test(line) && !/^Node\.js v/.test(line) && !/^ℹ /.test(line));
337
+ if (output.length)
338
+ lines.push(" output (last lines):", ...output.slice(-6).map((line) => ` ${line.slice(0, 200)}`));
339
+ }
327
340
  if (report.enforcement) {
328
341
  const fired = report.enforcement.fired_fallback;
329
342
  lines.push(` enforce: ${report.enforcement.applied ? "applied" : fired ? `fell back to full (${fired}: ${report.enforcement.detail})` : "not applied"}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diffci.com/diffci",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "Fail-closed, change-aware verification for AI coding agents with conservative affected-test selection",
5
5
  "keywords": [
6
6
  "ci",
@@ -59,7 +59,7 @@
59
59
  "test": "node scripts/run-tests.mjs"
60
60
  },
61
61
  "dependencies": {
62
- "@diffci.com/core": "git+https://github.com/DiffCI/core.git#0b82acbc69f650217c24c037527e4f8ad822ea91",
62
+ "@diffci.com/core": "git+https://github.com/DiffCI/core.git#ab23320a1ef4916075e66beb91d02043c084503c",
63
63
  "yaml": "^2.9.0"
64
64
  },
65
65
  "devDependencies": {