@boyingliu01/xp-gate 0.19.0 → 0.19.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.
@@ -99,6 +99,21 @@ run_lint() {
99
99
  run_static_analysis
100
100
  }
101
101
 
102
+ # Timeout guard for Pester runs.
103
+ # A hanging Pester test (e.g. a test that dot-sources a script whose body performs
104
+ # WMI/registry/scheduled-task scans) would otherwise block `git commit` forever.
105
+ # Default 300s, override via XP_GATE_POWERSHELL_TEST_TIMEOUT_S.
106
+ _pester_timeout() {
107
+ local default_s="${XP_GATE_POWERSHELL_TEST_TIMEOUT_S:-300}"
108
+ # Prefer GNU timeout (Git Bash / Linux). On Windows where `timeout` resolves to
109
+ # the native timeout.exe, fall back to running without a hard timeout.
110
+ if command -v timeout >/dev/null 2>&1 && timeout --version 2>/dev/null | grep -qi "coreutils"; then
111
+ timeout "${default_s}s" "$@"
112
+ else
113
+ "$@"
114
+ fi
115
+ }
116
+
102
117
  run_tests() {
103
118
  local PWSH
104
119
  PWSH=$(_detect_pwsh)
@@ -123,7 +138,7 @@ run_tests() {
123
138
  if [ "${#test_files[@]}" -gt 0 ]; then
124
139
  test_paths=$(_powershell_path_array "${test_files[@]}")
125
140
  echo "Running Pester tests..."
126
- "$PWSH" "${POWERSHELL_ARGS[@]}" "
141
+ _pester_timeout "$PWSH" "${POWERSHELL_ARGS[@]}" "
127
142
  \$results = Invoke-Pester -Path $test_paths -PassThru
128
143
  if (\$results.FailedCount -gt 0) {
129
144
  Write-Host \"FAILED: \$(\$results.FailedCount) test(s)\"
@@ -132,7 +147,14 @@ run_tests() {
132
147
  Write-Host \"PASSED: \$(\$results.PassedCount) test(s)\"
133
148
  exit 0
134
149
  "
135
- return $?
150
+ local run_exit=$?
151
+ if [ "$run_exit" = "124" ]; then
152
+ echo "⚠️ Pester tests TIMED OUT after ${XP_GATE_POWERSHELL_TEST_TIMEOUT_S:-300}s (may be hanging)."
153
+ echo " A test may be blocking on a system call (WMI/registry/scheduled-task)."
154
+ echo " Fix the hanging test, or set XP_GATE_POWERSHELL_TEST_TIMEOUT_S to a higher value."
155
+ return 1
156
+ fi
157
+ return $run_exit
136
158
  else
137
159
  echo "No Pester tests found"
138
160
  return 0
@@ -171,7 +193,7 @@ run_coverage() {
171
193
  test_paths=$(_powershell_path_array "${test_files[@]}")
172
194
  coverage_paths=$(_powershell_path_array "${source_files[@]}")
173
195
  echo "Running Pester with code coverage..."
174
- "$PWSH" "${POWERSHELL_ARGS[@]}" "
196
+ _pester_timeout "$PWSH" "${POWERSHELL_ARGS[@]}" "
175
197
  \$results = Invoke-Pester -Path $test_paths -CodeCoverage $coverage_paths -PassThru
176
198
  \$pct = [math]::Round(\$results.CodeCoverage.CoveragePercent, 1)
177
199
  Write-Host \"Coverage: \$pct%\"
@@ -181,7 +203,12 @@ run_coverage() {
181
203
  }
182
204
  exit 0
183
205
  " 2>&1
184
- return $?
206
+ local cov_exit=$?
207
+ if [ "$cov_exit" = "124" ]; then
208
+ echo "⚠️ Pester coverage TIMED OUT after ${XP_GATE_POWERSHELL_TEST_TIMEOUT_S:-300}s (may be hanging)."
209
+ return 1
210
+ fi
211
+ return $cov_exit
185
212
  else
186
213
  rm -f "$discovery_file"
187
214
  echo "No Pester tests found for coverage measurement"
@@ -2,6 +2,6 @@
2
2
  "verdict": "PASS",
3
3
  "license_type": "MIT",
4
4
  "sha256": "0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5",
5
- "checked_at": "2026-08-27T06:09:28.405Z",
5
+ "checked_at": "2026-08-30T15:25:50.166Z",
6
6
  "source": "network"
7
7
  }
@@ -1,9 +1,9 @@
1
1
  # SRC/MOCK-POLICY KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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.19.0",
3
+ "version": "0.19.1",
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.19.0",
3
+ "version": "0.19.1",
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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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/dsh-plugin-xp-gate",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "XP-Gate deterministic quality gates + AI workflow skills as a DeepSeek Harness (DSH) native plugin: gate-check / gate-principles / gate-arch tools + 12 SKILL.md skills",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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.19.0",
3
+ "version": "0.19.1",
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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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.19.0",
3
+ "version": "0.19.1",
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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.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
- **Generated:** 2026-08-24
4
- **Commit:** a1a4683
5
- **Branch:** dsh-plugin
6
- **Version:** 0.19.0.0
3
+ **Generated:** 2026-08-30
4
+ **Commit:** 0848858
5
+ **Branch:** main
6
+ **Version:** 0.19.1.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.