@boyingliu01/xp-gate 0.13.1 → 0.13.2

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/hooks/pre-commit CHANGED
@@ -1453,6 +1453,7 @@ else
1453
1453
  # No test files AND no source files changed → skip
1454
1454
  echo "✅ PASSED - No test or source files changed, skipping test run."
1455
1455
  TESTS_EXIT_CODE=0
1456
+ TESTS_SKIPPED=true
1456
1457
  fi
1457
1458
  else
1458
1459
  # Fallback: run_tests without coverage
@@ -1496,8 +1497,11 @@ else
1496
1497
  # Smart selection (Issue #286): only runs changed/related tests with --coverage,
1497
1498
  # producing coverage/coverage-summary.json for the tested subset.
1498
1499
  # Stage 2 enforcement reads global coverage from the subset run.
1499
- # If no tests were run (TESTS_EXIT_CODE=0 skip path), warn instead of blocking.
1500
- if [ -f "coverage/coverage-summary.json" ]; then
1500
+ # If no tests were run (TESTS_SKIPPED=true), skip coverage check entirely.
1501
+ if [ "${TESTS_SKIPPED:-false}" = "true" ]; then
1502
+ echo "ℹ️ Test run was skipped — skipping coverage check."
1503
+ COV_EXIT=0
1504
+ elif [ -f "coverage/coverage-summary.json" ]; then
1501
1505
  echo "TypeScript coverage collected during test run."
1502
1506
  COV_EXIT=0
1503
1507
  else
@@ -1566,7 +1570,9 @@ else
1566
1570
  case "$PROJECT_LANG" in
1567
1571
  "typescript")
1568
1572
  COVERAGE_ENFORCED=true
1569
- if [ -f "coverage/coverage-summary.json" ]; then
1573
+ if [ "${TESTS_SKIPPED:-false}" = "true" ]; then
1574
+ echo "✅ PASSED - Coverage check skipped (no test/source files changed)."
1575
+ elif [ -f "coverage/coverage-summary.json" ]; then
1570
1576
  COVERAGE_PERCENT=$(node -e "
1571
1577
  try {
1572
1578
  const fs = require('fs');
@@ -1,9 +1,9 @@
1
1
  # SRC/MOCK-POLICY KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Mock layering policy enforcement — Gate M3 of pre-push hook. Ensures integration tests use real implementations for internal dependencies, mock external dependencies, and annotate pending mocks with removal plans. Combines project scope scanning, mock decision engine, and per-file validation into a single pipeline.
@@ -1,9 +1,9 @@
1
1
  # SRC/MUTATION KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **Gate M** (incremental mutation testing) + **Gate M2** helpers (test-layer detection used by `src/mock-policy/`). Pre-push quality gate. TypeScript-only; uses Stryker.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/xp-gate",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "AI-driven development workflow: 6 quality gates + Delphi review + Sprint Flow",
5
5
  "bin": {
6
6
  "xp-gate": "./bin/xp-gate.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xp-gate",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "displayName": "XP-Gate",
5
5
  "description": "Extreme Programming quality gates + AI workflow skills for Claude Code. Includes 10 quality gates (Gate 0-9), Sprint Flow (11 phases), and Delphi multi-expert review (>=90% consensus).",
6
6
  "author": {
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/opencode-plugin",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "description": "XP-Gate quality gates + AI workflow skills + Sprint Flow TUI sidebar for OpenCode",
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xp-gate",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "displayName": "XP-Gate",
5
5
  "description": "Extreme Programming quality gates + AI workflow skills for Qoder. Includes 10 quality gates (Gate 0-9), Sprint Flow (11 phases), and Delphi multi-expert review (>=90% consensus).",
6
6
  "author": {
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -1,9 +1,9 @@
1
1
  # PRINCIPLES CHECKER MODULE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Clean Code & SOLID principles checker — **Gate 4** of pre-commit. 14 rules × 9 language adapters, SARIF 2.1.0 output. Houses the **Boy Scout Rule** enforcement engine (Gate 6) and warning-baseline storage.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-07-08
4
- **Commit:** 93df689
4
+ **Commit:** 509be7b
5
5
  **Branch:** main
6
- **Version:** 0.13.1.0
6
+ **Version:** 0.13.2.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.