@boyingliu01/xp-gate 0.38.10 → 0.38.12
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/gate-registry.sh +13 -0
- package/hooks/gate-entries/gate-10-entry.sh +11 -0
- package/hooks/gate-entries/gate-12b-entry.sh +15 -0
- package/hooks/gate-entries/gate-12c-entry.sh +9 -19
- package/hooks/gate-entries/gate-13-entry.sh +20 -0
- package/hooks/gate-entries/gate-7-entry.sh +15 -1
- package/hooks/gate-entries/gate-8-entry.sh +7 -0
- package/hooks/gate-registry.sh +13 -0
- package/lib/__tests__/baseline-completeness.test.js +264 -0
- package/lib/__tests__/detect-deps-dsh-profile.test.js +177 -3
- package/lib/baseline.js +265 -86
- package/lib/detect-deps.js +8 -3
- package/lib/doctor.js +9 -5
- package/lib/gate-runner.js +14 -0
- package/lib/install-skill.js +15 -9
- package/lib/mattpocock-license-verdict.json +1 -1
- package/lib/shared-paths.js +44 -8
- package/package.json +1 -1
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/dsh/package.json +1 -1
- package/plugins/dsh/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/dsh/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +1 -1
- package/skills/delphi-review/AGENTS.md +1 -1
- package/skills/sprint-flow/AGENTS.md +1 -1
- package/skills/test-specification-alignment/AGENTS.md +1 -1
package/lib/install-skill.js
CHANGED
|
@@ -2,18 +2,24 @@ const fs = require('fs');
|
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const { checkDeps, detectInstalledPlatforms, getSkillsDirs } = require('./detect-deps.js');
|
|
4
4
|
const { rollback } = require('./rollback.js');
|
|
5
|
-
const {
|
|
5
|
+
const { CONFIG_DIR, detectPlatform } = require('./shared-paths.js');
|
|
6
6
|
const { copyDirRecursive } = require('./shared-utils');
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* The skills directory for the platform `detectPlatform()` selects.
|
|
10
|
+
*
|
|
11
|
+
* This used to be a second, hand-written platform→directory table
|
|
12
|
+
* (`.qoder` / `.claude` / `~/.config/opencode`). It drifted from
|
|
13
|
+
* `PLATFORM_PROFILES` the moment `dsh` was added there in #635: the fallback row
|
|
14
|
+
* kept returning `~/.config/opencode` on a DSH-only machine, so a plain
|
|
15
|
+
* `install-skill` on a machine with no agent directory yet wrote the skill where
|
|
16
|
+
* the running agent never reads it. Delegate to `getSkillsDirs()` so the mapping
|
|
17
|
+
* has exactly one source of truth (Delphi R1 CI-01 / MA-01 on #635).
|
|
18
|
+
*
|
|
19
|
+
* @returns {string} absolute path to the detected platform's skills directory
|
|
20
|
+
*/
|
|
8
21
|
function getSkillsDir() {
|
|
9
|
-
|
|
10
|
-
if (platform === 'qoder') {
|
|
11
|
-
return path.join(HOME_DIR, '.qoder', 'skills');
|
|
12
|
-
}
|
|
13
|
-
if (platform === 'claude-code') {
|
|
14
|
-
return path.join(HOME_DIR, '.claude', 'skills');
|
|
15
|
-
}
|
|
16
|
-
return path.join(HOME_DIR, '.config', 'opencode', 'skills');
|
|
22
|
+
return getSkillsDirs(detectPlatform())[0];
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
/**
|
package/lib/shared-paths.js
CHANGED
|
@@ -21,10 +21,35 @@ function resolveHomeDir() {
|
|
|
21
21
|
/**
|
|
22
22
|
* Detect which AI agent platform is currently in use.
|
|
23
23
|
* This is the single implementation; detect-deps.js re-exports it (#424).
|
|
24
|
-
*
|
|
24
|
+
*
|
|
25
|
+
* #635 follow-up: DSH used to be undetectable here. The original reasoning was
|
|
26
|
+
* "there is no marker it could key on that opencode's would not also match",
|
|
27
|
+
* which is true of `<root>/skills` (every platform has one) but false of DSH's
|
|
28
|
+
* own bookkeeping directories. `~/.dsh/profiles` and `~/.dsh/.shim` are created
|
|
29
|
+
* by DSH alone. Without a `dsh` branch this function could never return 'dsh'
|
|
30
|
+
* even on a DSH-only machine, so every caller holding its result —
|
|
31
|
+
* `install-skill`, `checkDeps`, `getTemplateDir` — targeted `~/.config/opencode`
|
|
32
|
+
* instead: skills landed in a directory the running agent never reads, and
|
|
33
|
+
* `install-skill` failed outright with "superpowers is required but not
|
|
34
|
+
* installed" because the dependency check looked in that same phantom tree.
|
|
35
|
+
*
|
|
36
|
+
* DSH is checked BEFORE the others: a machine running DSH alongside Qoder or
|
|
37
|
+
* OpenCode must still resolve to DSH when `~/.dsh` carries its profile/shim
|
|
38
|
+
* state, because that is the agent whose `skills/` the user is actually reading.
|
|
39
|
+
*
|
|
40
|
+
* @returns {'opencode' | 'claude-code' | 'qoder' | 'dsh'}
|
|
25
41
|
*/
|
|
26
42
|
function detectPlatform() {
|
|
27
43
|
const homeDir = resolveHomeDir();
|
|
44
|
+
// DSH markers: `profiles` (profile system) and `.shim` (bash shims). Both are
|
|
45
|
+
// written by DSH itself and by nothing else, so unlike `<root>/skills` they
|
|
46
|
+
// cannot collide with opencode/qoder/claude installs (#635 follow-up).
|
|
47
|
+
if (
|
|
48
|
+
fs.existsSync(path.join(homeDir, '.dsh', 'profiles')) ||
|
|
49
|
+
fs.existsSync(path.join(homeDir, '.dsh', '.shim'))
|
|
50
|
+
) {
|
|
51
|
+
return 'dsh';
|
|
52
|
+
}
|
|
28
53
|
// Any ~/.qoder content counts as Qoder: a brand-new install has no skills/
|
|
29
54
|
// subdirectory yet, so a skills-only marker misdetects it as opencode and
|
|
30
55
|
// configureQoderDelphiAgents deploys zero Delphi agents (#424).
|
|
@@ -36,22 +61,33 @@ function detectPlatform() {
|
|
|
36
61
|
/**
|
|
37
62
|
* Get the git hooks template directory for the current platform.
|
|
38
63
|
* Each AI agent platform has its own config directory:
|
|
39
|
-
* - opencode:
|
|
64
|
+
* - opencode: ~/.config/opencode/git-hooks-template
|
|
40
65
|
* - claude-code: ~/.claude/git-hooks-template
|
|
41
|
-
* - qoder:
|
|
66
|
+
* - qoder: ~/.qoder/git-hooks-template
|
|
67
|
+
* - dsh: ~/.dsh/git-hooks-template
|
|
42
68
|
*
|
|
43
69
|
* This prevents templateDir from pointing to a stale platform's directory
|
|
44
70
|
* after migrating from one AI agent to another (e.g., OpenCode → Qoder).
|
|
45
71
|
*
|
|
72
|
+
* #635 follow-up: `dsh` needs its own row rather than falling through to
|
|
73
|
+
* `~/.config/opencode`. On a DSH-only machine that fallback wrote the templates
|
|
74
|
+
* into a directory the agent never reads and left the config's `templateDir`
|
|
75
|
+
* pointing at a path that does not exist — `doctor` then reported `templateDir`
|
|
76
|
+
* as a hard FAIL on an otherwise healthy install.
|
|
77
|
+
*
|
|
46
78
|
* @returns {string} Path to the platform-specific git hooks template directory
|
|
47
79
|
*/
|
|
80
|
+
const PLATFORM_CONFIG_SEGMENTS = {
|
|
81
|
+
'claude-code': ['.claude'],
|
|
82
|
+
qoder: ['.qoder'],
|
|
83
|
+
dsh: ['.dsh'],
|
|
84
|
+
opencode: ['.config', 'opencode'],
|
|
85
|
+
};
|
|
86
|
+
|
|
48
87
|
function getTemplateDir() {
|
|
49
88
|
const homeDir = resolveHomeDir();
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
platform === 'qoder' ? '.qoder' :
|
|
53
|
-
path.join('.config', 'opencode');
|
|
54
|
-
return path.join(homeDir, configDir, 'git-hooks-template');
|
|
89
|
+
const segments = PLATFORM_CONFIG_SEGMENTS[detectPlatform()] || ['.config', 'opencode'];
|
|
90
|
+
return path.join(homeDir, ...segments, 'git-hooks-template');
|
|
55
91
|
}
|
|
56
92
|
|
|
57
93
|
// ---------------------------------------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xp-gate",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.12",
|
|
4
4
|
"displayName": "XP-Gate",
|
|
5
5
|
"description": "Extreme Programming quality gates + AI workflow skills for Claude Code. Includes 12 pre-commit gates (Gate 0-11), 8 pre-push gates, Sprint Flow (6 phases), and Delphi multi-expert review (>=90% consensus).",
|
|
6
6
|
"author": {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
package/plugins/dsh/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boyingliu01/dsh-plugin-xp-gate",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.12",
|
|
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",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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.38.
|
|
3
|
+
"version": "0.38.12",
|
|
4
4
|
"displayName": "XP-Gate",
|
|
5
5
|
"description": "Extreme Programming quality gates + AI workflow skills for Qoder. Includes 12 pre-commit gates (Gate 0-11), 8 pre-push gates, Sprint Flow (6 phases), and Delphi multi-expert review (>=90% consensus).",
|
|
6
6
|
"author": {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.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; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.38.
|
|
6
|
+
**Version:** 0.38.12.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|