@boyingliu01/xp-gate 0.18.1 → 0.18.3

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.
Files changed (35) hide show
  1. package/adapters/gate-3.sh +68 -0
  2. package/adapters/gate-4.sh +80 -0
  3. package/adapters/gate-7.sh +45 -0
  4. package/adapters/gate-8.sh +56 -0
  5. package/adapters/gate-9.sh +105 -0
  6. package/bin/xp-gate.js +45 -0
  7. package/hooks/pre-commit +108 -9
  8. package/hooks/pre-push +63 -232
  9. package/lib/__tests__/install-skill.test.js +3 -3
  10. package/lib/__tests__/test-alignment.test.ts +761 -0
  11. package/lib/install-skill.js +11 -3
  12. package/lib/mattpocock-license-verdict.json +1 -1
  13. package/lib/phase-transition.js +106 -1
  14. package/lib/sprint-init.js +41 -0
  15. package/lib/test-alignment.ts +651 -0
  16. package/mock-policy/AGENTS.md +3 -3
  17. package/mutation/AGENTS.md +3 -3
  18. package/mutation/gate-m.ts +18 -4
  19. package/package.json +1 -1
  20. package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
  21. package/plugins/claude-code/skills/delphi-review/AGENTS.md +3 -3
  22. package/plugins/claude-code/skills/sprint-flow/AGENTS.md +3 -3
  23. package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +3 -3
  24. package/plugins/opencode/package.json +1 -1
  25. package/plugins/opencode/skills/delphi-review/AGENTS.md +3 -3
  26. package/plugins/opencode/skills/sprint-flow/AGENTS.md +3 -3
  27. package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +3 -3
  28. package/plugins/qoder/plugin.json +1 -1
  29. package/plugins/qoder/skills/delphi-review/AGENTS.md +3 -3
  30. package/plugins/qoder/skills/sprint-flow/AGENTS.md +3 -3
  31. package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +3 -3
  32. package/principles/AGENTS.md +3 -3
  33. package/skills/delphi-review/AGENTS.md +3 -3
  34. package/skills/sprint-flow/AGENTS.md +3 -3
  35. package/skills/test-specification-alignment/AGENTS.md +3 -3
@@ -53,7 +53,11 @@ function parseArgs(args: string[]): GateMOptions {
53
53
  function parseChangedFiles(options: GateMOptions, args: string[], i: number): void {
54
54
  const next = args[++i];
55
55
  if (next) {
56
- options.changedFiles = next.split(',').map(f => f.trim()).filter(Boolean);
56
+ options.changedFiles = next
57
+ .replace(/\n/g, ',')
58
+ .split(',')
59
+ .map(f => f.trim())
60
+ .filter(Boolean);
57
61
  }
58
62
  }
59
63
 
@@ -511,13 +515,23 @@ export async function runGateM(options: GateMOptions): Promise<GateMResult> {
511
515
  warnings.push(`Mutation testing timed out for: ${timeoutFiles.join(', ')}. Run locally for full report.`);
512
516
  }
513
517
 
514
- const evalResult = evaluateScores(fileScores, thresholds, baseline);
518
+ const evaluableThresholds = thresholds.filter(ft => !timeoutFiles.includes(ft.file));
519
+ const evalResult = evaluateScores(fileScores, evaluableThresholds, baseline);
515
520
  for (const msg of evalResult.messages) console.log(` ${msg}`);
516
521
 
522
+ if (timeoutFiles.length > 0) {
523
+ for (const f of timeoutFiles) {
524
+ console.log(` SKIP ${f}: mutation testing timed out (score unavailable)`);
525
+ }
526
+ }
527
+
517
528
  if (evalResult.blocked) {
518
- return buildResult('block', sourceFiles.length, buildMutationScores(fileScores), warnings, errors);
529
+ return buildResult('block', evaluableThresholds.length, buildMutationScores(fileScores), warnings, errors);
530
+ }
531
+ if (evaluableThresholds.length === 0) {
532
+ return buildResult('skip', 0, {}, warnings, errors);
519
533
  }
520
- return buildResult('pass', sourceFiles.length, buildMutationScores(fileScores), warnings, errors);
534
+ return buildResult('pass', evaluableThresholds.length, buildMutationScores(fileScores), warnings, errors);
521
535
  }
522
536
 
523
537
  interface PartitionedScores {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/xp-gate",
3
- "version": "0.18.1",
3
+ "version": "0.18.3",
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.18.1",
3
+ "version": "0.18.3",
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-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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
- **Generated:** 2026-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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.18.1",
3
+ "version": "0.18.3",
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-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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
- **Generated:** 2026-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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.18.1",
3
+ "version": "0.18.3",
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-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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
- **Generated:** 2026-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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
- **Generated:** 2026-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.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-07-25
4
- **Commit:** 3150b22
3
+ **Generated:** 2026-07-29
4
+ **Commit:** 527fca8
5
5
  **Branch:** main
6
- **Version:** 0.18.0.0
6
+ **Version:** 0.18.3.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.