@boyingliu01/dsh-plugin-xp-gate 0.38.4 → 0.38.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/dsh-plugin-xp-gate",
3
- "version": "0.38.4",
3
+ "version": "0.38.7",
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.4.0
6
+ **Version:** 0.38.7.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.4.0
6
+ **Version:** 0.38.7.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.
@@ -10,7 +10,23 @@
10
10
  # 错就一起绿。只有让生产方真的产出、校验方真的读,才能发现这类偏差。
11
11
 
12
12
  setup() {
13
- REPO_ROOT="$(cd "$BATS_TEST_DIRNAME/../../.." && pwd)"
13
+ # #814: this used to be a hard-coded `../../..`, which resolves to the repo
14
+ # root only for THIS copy (skills/sprint-flow/__tests__). The same file also
15
+ # ships under plugins/<p>/skills/ and src/npm-package/**/skills/, three and four
16
+ # levels deep, where the fixed depth points at plugins/claude-code or
17
+ # src/npm-package -- so 6 of the 7 copies failed under Gate 5 and, once this
18
+ # repo's own hooks are installed, made every commit impossible.
19
+ #
20
+ # Walk up until the markers of the repo are both present instead of counting
21
+ # `..`. Depth-counting is what broke: it encodes "where this file lives" into a
22
+ # constant, and every new mirror location re-breaks it.
23
+ REPO_ROOT="$(cd "$BATS_TEST_DIRNAME" && pwd)"
24
+ while [ "$REPO_ROOT" != "/" ] && [ -n "$REPO_ROOT" ]; do
25
+ if [ -f "$REPO_ROOT/VERSION" ] && [ -f "$REPO_ROOT/src/npm-package/bin/xp-gate.js" ]; then
26
+ break
27
+ fi
28
+ REPO_ROOT="$(dirname "$REPO_ROOT")"
29
+ done
14
30
  VERIFY="$REPO_ROOT/skills/sprint-flow/scripts/verify-sprint-state.sh"
15
31
  CLI="$REPO_ROOT/src/npm-package/bin/xp-gate.js"
16
32
  WORK="$(mktemp -d)"
@@ -23,6 +39,12 @@ teardown() {
23
39
  @test "AC-688-01: accepts state written by xp-gate sprint-init" {
24
40
  cd "$WORK"
25
41
  git init -q .
42
+ # The developer machine sets a GLOBAL core.hooksPath at the installed hooks, so
43
+ # a bare `git commit` in the fixture would run the whole gate suite instead of
44
+ # creating the fixture commit. Pin it to an empty dir: this suite tests the
45
+ # verify script, not the hook chain.
46
+ mkdir -p "$WORK/empty-hooks"
47
+ git config core.hooksPath "$WORK/empty-hooks"
26
48
  echo '{}' > package.json
27
49
  git add -A
28
50
  git -c user.email=t@t -c user.name=t commit -q -m init
@@ -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.4.0
6
+ **Version:** 0.38.7.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.