@boyingliu01/xp-gate 0.8.16 → 0.8.18

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.
@@ -0,0 +1,47 @@
1
+ #!/bin/bash
2
+ # xp-gate-check: Quality gate wrapper for Qoder plugin
3
+ # Usage: xp-gate-check <file_path>
4
+ #
5
+ # Graceful degradation: if xp-gate CLI unavailable, logs warning to stderr and exits 0.
6
+ # This script always exits 0 to avoid blocking Qoder sessions.
7
+
8
+ set -euo pipefail
9
+
10
+ FILE_PATH="${1:-}"
11
+
12
+ if [ -z "$FILE_PATH" ]; then
13
+ exit 0
14
+ fi
15
+
16
+ # Skip if file doesn't exist
17
+ [ -f "$FILE_PATH" ] || exit 0
18
+
19
+ # Skip non-source files
20
+ case "$FILE_PATH" in
21
+ *.ts|*.tsx|*.js|*.jsx|*.py|*.go|*.java|*.kt|*.rb|*.rs)
22
+ ;;
23
+ *)
24
+ exit 0
25
+ ;;
26
+ esac
27
+
28
+ # Resolve repo root from script location (avoids dependence on QODER_PLUGIN_ROOT env var)
29
+ # Plugin is at plugins/qoder/bin/, repo root is 3 dirname calls up:
30
+ # bin/ → qoder/ → plugins/ → repo-root/
31
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
32
+ REPO_ROOT="$(dirname "$(dirname "$(dirname "$SCRIPT_DIR")")")"
33
+
34
+ if command -v xp-gate >/dev/null 2>&1; then
35
+ # xp-gate globally installed — run principles check on the file
36
+ npx -y tsx "${REPO_ROOT}/src/principles/index.ts" --files "$FILE_PATH" --format console 2>&1 || true
37
+ elif [ -f "${REPO_ROOT}/src/principles/index.ts" ]; then
38
+ # Fallback: run principles checker directly from repo source
39
+ echo "[XP-Gate] Running principles check (xp-gate CLI not installed)" >&2
40
+ npx -y tsx "${REPO_ROOT}/src/principles/index.ts" --files "$FILE_PATH" --format console 2>&1 || true
41
+ else
42
+ # Graceful degradation: log once per session
43
+ echo "[XP-Gate] Quality check skipped: xp-gate not installed. Run 'npm install -g @boyingliu01/xp-gate'" >&2
44
+ fi
45
+
46
+ # Always exit 0 to avoid blocking the Qoder session
47
+ exit 0
@@ -0,0 +1,46 @@
1
+ {
2
+ "hooks": {
3
+ "PreToolUse": [
4
+ {
5
+ "matcher": "Edit|Write|ApplyEdit",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "\"$QODER_PLUGIN_ROOT\"/bin/sprint-flow-guard.sh"
10
+ }
11
+ ]
12
+ }
13
+ ],
14
+ "PostToolUse": [
15
+ {
16
+ "matcher": "Edit|Write",
17
+ "hooks": [
18
+ {
19
+ "type": "command",
20
+ "command": "\"$QODER_PLUGIN_ROOT\"/bin/xp-gate-check \"${TOOL_INPUT_FILE}\""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "matcher": ".*",
26
+ "hooks": [
27
+ {
28
+ "type": "command",
29
+ "command": "\"$QODER_PLUGIN_ROOT\"/bin/xp-gate-version-check.sh"
30
+ }
31
+ ]
32
+ }
33
+ ],
34
+ "Stop": [
35
+ {
36
+ "matcher": ".*",
37
+ "hooks": [
38
+ {
39
+ "type": "command",
40
+ "command": "echo \"[XP-Gate] Session complete. Run 'xp-gate init' for full git hook integration.\""
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ }
46
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xp-gate",
3
- "version": "0.8.8",
3
+ "version": "0.8.17",
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": {
@@ -16,5 +16,6 @@
16
16
  "xp",
17
17
  "ai-development"
18
18
  ],
19
- "skills": "./skills/"
19
+ "skills": "./skills/",
20
+ "hooks": "./hooks/hooks.json"
20
21
  }
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-06-16
4
- **Commit:** b0448d3
3
+ **Generated:** 2026-06-17
4
+ **Commit:** d1b11ce
5
5
  **Branch:** main
6
- **Version:** 0.8.16.0
6
+ **Version:** 0.8.18.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-06-16
4
- **Commit:** b0448d3
3
+ **Generated:** 2026-06-17
4
+ **Commit:** d1b11ce
5
5
  **Branch:** main
6
- **Version:** 0.8.16.0
6
+ **Version:** 0.8.18.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **11-phase** development pipeline: ISOLATE → AUTO-ESTIMATE → THINK → PLAN → BUILD → REVIEW → USER ACCEPTANCE → FEEDBACK → SHIP → LAND → CLEANUP. Phase 2 default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE in Phase 1: 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-06-16
4
- **Commit:** b0448d3
3
+ **Generated:** 2026-06-17
4
+ **Commit:** d1b11ce
5
5
  **Branch:** main
6
- **Version:** 0.8.16.0
6
+ **Version:** 0.8.18.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-06-16
4
- **Commit:** b0448d3
3
+ **Generated:** 2026-06-17
4
+ **Commit:** d1b11ce
5
5
  **Branch:** main
6
- **Version:** 0.8.16.0
6
+ **Version:** 0.8.18.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-06-16
4
- **Commit:** b0448d3
3
+ **Generated:** 2026-06-17
4
+ **Commit:** d1b11ce
5
5
  **Branch:** main
6
- **Version:** 0.8.16.0
6
+ **Version:** 0.8.18.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-06-16
4
- **Commit:** b0448d3
3
+ **Generated:** 2026-06-17
4
+ **Commit:** d1b11ce
5
5
  **Branch:** main
6
- **Version:** 0.8.16.0
6
+ **Version:** 0.8.18.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **11-phase** development pipeline: ISOLATE → AUTO-ESTIMATE → THINK → PLAN → BUILD → REVIEW → USER ACCEPTANCE → FEEDBACK → SHIP → LAND → CLEANUP. Phase 2 default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE in Phase 1: 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-06-16
4
- **Commit:** b0448d3
3
+ **Generated:** 2026-06-17
4
+ **Commit:** d1b11ce
5
5
  **Branch:** main
6
- **Version:** 0.8.16.0
6
+ **Version:** 0.8.18.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.