critical-gate 2.4.3 → 2.4.4
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/README.md
CHANGED
|
@@ -415,6 +415,15 @@ The CI workflow publishes coverage and deterministic evaluation reports as GitHu
|
|
|
415
415
|
[docs/evaluation-strategy.md](docs/evaluation-strategy.md) for artifact paths, thresholds, and the
|
|
416
416
|
current limits of the internal evaluation corpus.
|
|
417
417
|
|
|
418
|
+
Dogfood evidence labels from adopted repositories can be aggregated locally with:
|
|
419
|
+
|
|
420
|
+
```bash
|
|
421
|
+
pnpm dogfood:aggregate
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
This writes a Markdown summary to [docs/dogfood-evidence-summary.md](docs/dogfood-evidence-summary.md)
|
|
425
|
+
and a JSON artifact under `artifacts/dogfood/evidence-summary.json`.
|
|
426
|
+
|
|
418
427
|
## Development
|
|
419
428
|
|
|
420
429
|
Useful commands:
|
|
@@ -455,6 +464,8 @@ Branch and commit conventions for this repository:
|
|
|
455
464
|
- [docs/codex-integration.md](docs/codex-integration.md): Codex hook and repair-loop guidance.
|
|
456
465
|
- [docs/dogfood-evidence-plan.md](docs/dogfood-evidence-plan.md): real-repository dogfood automation,
|
|
457
466
|
repair-loop metrics, and screenshot proof plan.
|
|
467
|
+
- [docs/dogfood-evidence-summary.md](docs/dogfood-evidence-summary.md): latest aggregate summary from
|
|
468
|
+
human-labeled dogfood evidence reports.
|
|
458
469
|
- [docs/dogfood-mv-ft-2026-06-19.md](docs/dogfood-mv-ft-2026-06-19.md): mv-ft dogfood
|
|
459
470
|
evidence, misses, fixes, and current evaluation baseline.
|
|
460
471
|
- [docs/versioning-policy.md](docs/versioning-policy.md): release and versioning policy.
|
package/dist/cli/main.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-patterns.d.ts","sourceRoot":"","sources":["../../src/frameworks/path-patterns.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"path-patterns.d.ts","sourceRoot":"","sources":["../../src/frameworks/path-patterns.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CASzE;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
export function matchesPathPattern(pattern, path) {
|
|
2
|
-
|
|
2
|
+
const normalizedPattern = normalizePath(pattern);
|
|
3
|
+
const normalizedPath = normalizePath(path);
|
|
4
|
+
if (normalizedPattern === normalizedPath) {
|
|
3
5
|
return true;
|
|
4
6
|
}
|
|
5
|
-
return globToRegExp(
|
|
7
|
+
return globToRegExp(normalizedPattern).test(normalizedPath);
|
|
6
8
|
}
|
|
7
9
|
export function globToRegExp(pattern) {
|
|
10
|
+
return new RegExp(`^${globToRegExpSource(normalizePath(pattern))}$`);
|
|
11
|
+
}
|
|
12
|
+
function globToRegExpSource(pattern) {
|
|
13
|
+
if (pattern.endsWith("/**")) {
|
|
14
|
+
return `${globToRegExpSource(pattern.slice(0, -3))}(?:/.*)?`;
|
|
15
|
+
}
|
|
8
16
|
const escaped = pattern
|
|
9
17
|
.replaceAll(/[.+?^${}()|[\]\\]/g, "\\$&")
|
|
10
18
|
.replaceAll("**/", "\0")
|
|
11
19
|
.replaceAll("**", ".*")
|
|
12
20
|
.replaceAll("*", "[^/]*")
|
|
13
21
|
.replaceAll("\0", "(?:.*/)?");
|
|
14
|
-
return
|
|
22
|
+
return escaped;
|
|
23
|
+
}
|
|
24
|
+
function normalizePath(path) {
|
|
25
|
+
return path.replaceAll("\\", "/").replace(/\/+/g, "/").replace(/\/$/u, "");
|
|
15
26
|
}
|
|
16
27
|
//# sourceMappingURL=path-patterns.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-patterns.js","sourceRoot":"","sources":["../../src/frameworks/path-patterns.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAAC,OAAe,EAAE,IAAY;IAC9D,
|
|
1
|
+
{"version":3,"file":"path-patterns.js","sourceRoot":"","sources":["../../src/frameworks/path-patterns.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAAC,OAAe,EAAE,IAAY;IAC9D,MAAM,iBAAiB,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IACjD,MAAM,cAAc,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAE3C,IAAI,iBAAiB,KAAK,cAAc,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,YAAY,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAe;IAC1C,OAAO,IAAI,MAAM,CAAC,IAAI,kBAAkB,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC;AACvE,CAAC;AAED,SAAS,kBAAkB,CAAC,OAAe;IACzC,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAC/D,CAAC;IAED,MAAM,OAAO,GAAG,OAAO;SACpB,UAAU,CAAC,oBAAoB,EAAE,MAAM,CAAC;SACxC,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC;SACvB,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC;SACtB,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC;SACxB,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAEhC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,aAAa,CAAC,IAAY;IACjC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAC7E,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CRITICAL_GATE_VERSION = "2.4.
|
|
1
|
+
export declare const CRITICAL_GATE_VERSION = "2.4.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const CRITICAL_GATE_VERSION = "2.4.
|
|
1
|
+
export const CRITICAL_GATE_VERSION = "2.4.4";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "critical-gate",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "Repository-aware diff integrity gate for AI-generated code changes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"test": "vitest run",
|
|
67
67
|
"coverage": "vitest run --coverage",
|
|
68
68
|
"evaluate": "pnpm build && node scripts/evaluate-fixtures.mjs",
|
|
69
|
+
"dogfood:aggregate": "node scripts/aggregate-dogfood-evidence.mjs",
|
|
69
70
|
"dogfood:plan": "node scripts/dogfood-runner.mjs plan",
|
|
70
71
|
"dogfood:render": "node scripts/render-dogfood-report.mjs",
|
|
71
72
|
"dogfood:screenshots": "node scripts/capture-dogfood-screenshots.mjs",
|