@boyingliu01/xp-gate 0.10.17 → 0.11.1

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.
@@ -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