@boyingliu01/xp-gate 0.10.17 → 0.11.0
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/build-integrity/gate-10.ts +24 -0
- package/hooks/pre-commit +303 -391
- package/hooks/pre-push +429 -28
- package/mock-policy/AGENTS.md +3 -3
- package/mutation/AGENTS.md +3 -3
- package/package.json +1 -1
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +3 -3
- package/plugins/claude-code/skills/delphi-review/SKILL.md +79 -0
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +3 -3
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +3 -3
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +3 -3
- package/plugins/opencode/skills/delphi-review/SKILL.md +79 -0
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +3 -3
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +3 -3
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +3 -3
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +3 -3
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +3 -3
- package/principles/AGENTS.md +3 -3
- package/skills/delphi-review/AGENTS.md +3 -3
- package/skills/delphi-review/SKILL.md +79 -0
- package/skills/sprint-flow/AGENTS.md +3 -3
- package/skills/test-specification-alignment/AGENTS.md +3 -3
|
@@ -12,6 +12,30 @@ import type {
|
|
|
12
12
|
ImportCheckResult,
|
|
13
13
|
ImportViolation,
|
|
14
14
|
} from './types';
|
|
15
|
+
/**
|
|
16
|
+
* ═══════════════════════════════════════════════════════════════════════════════
|
|
17
|
+
* NAMING NOTE: This file is named "gate-10.ts" for historical reasons.
|
|
18
|
+
*
|
|
19
|
+
* It implements **pre-commit Gate 9 (Build Integrity)** which verifies:
|
|
20
|
+
* 1. TypeScript compilation (tsc --noEmit)
|
|
21
|
+
* 2. Package manifest integrity (npm pack --dry-run)
|
|
22
|
+
* 3. Import path legality (no path-traversal outside package)
|
|
23
|
+
*
|
|
24
|
+
* History: Originally deployed as Gate 10 in pre-push (build integrity on push).
|
|
25
|
+
* When migrated to pre-commit as Gate 9, the filename was intentionally kept
|
|
26
|
+
* to avoid breaking all import references, CI configs, and baselines that
|
|
27
|
+
* reference "gate-10.ts". It also remains referenced from pre-push as a
|
|
28
|
+
* defense-in-depth check.
|
|
29
|
+
*
|
|
30
|
+
* DO NOT RENAME this file to gate-9.ts without updating ALL references in:
|
|
31
|
+
* - githooks/pre-commit (Gate 9 section)
|
|
32
|
+
* - githooks/pre-push (Gate 10 defense-in-depth section)
|
|
33
|
+
* - src/npm-package/hooks/pre-commit
|
|
34
|
+
* - src/npm-package/hooks/pre-push
|
|
35
|
+
* - .architecture-baseline.json
|
|
36
|
+
* - Any CI workflow referencing this file
|
|
37
|
+
* ═══════════════════════════════════════════════════════════════════════════════
|
|
38
|
+
*/
|
|
15
39
|
|
|
16
40
|
const execFileAsync = promisify(execFile);
|
|
17
41
|
|