@su-record/vibe 2.6.22 → 2.6.23

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.
@@ -96,10 +96,17 @@ security-review:
96
96
  | Quick iteration | ❌ Standard review |
97
97
  | API cost concerns | ❌ Standard review |
98
98
 
99
- ### Tool Invocation (Race Mode)
99
+ ### Tool Invocation (Race Mode - GPT + Gemini in parallel via Bash)
100
100
 
101
101
  ```bash
102
- node -e "import('@su-record/vibe/lib/ReviewRace').then(r => r.raceReview({reviewType: 'security', code: 'CODE_HERE'}).then(res => console.log(r.formatRaceResult(res))))"
102
+ # Cross-platform path
103
+ VIBE_SCRIPTS="$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts"
104
+
105
+ # GPT review (Bash tool call 1)
106
+ node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json "Review this code for [REVIEW_TYPE]. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. Code: [CODE_HERE]"
107
+
108
+ # Gemini review (Bash tool call 2 - run in parallel)
109
+ node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json "Review this code for [REVIEW_TYPE]. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. Code: [CODE_HERE]"
103
110
  ```
104
111
 
105
112
  ## Priority System
@@ -905,11 +905,17 @@ After all scenarios are implemented, **GPT and Gemini review in parallel with cr
905
905
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
906
906
  ```
907
907
 
908
- **Race Review Invocation:**
908
+ **Race Review Invocation (GPT + Gemini in parallel via Bash):**
909
909
 
910
910
  ```bash
911
- # Via vibe tools
912
- node -e "import('@su-record/vibe/tools').then(t => t.raceReview({reviewType: 'security', code: '[code]'}).then(r => console.log(t.formatRaceResult(r))))"
911
+ # Cross-platform path
912
+ VIBE_SCRIPTS="$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts"
913
+
914
+ # GPT review (Bash tool call 1)
915
+ node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json "Review this code for security, performance, and best practices. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. Code: [CODE]"
916
+
917
+ # Gemini review (Bash tool call 2 - run in parallel)
918
+ node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json "Review this code for security, performance, and best practices. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. Code: [CODE]"
913
919
  ```
914
920
 
915
921
  **Confidence-based Priority:**
@@ -169,7 +169,7 @@ Score: 96/100 ✅ PASSED
169
169
 
170
170
  **🚨 ABSOLUTE RULES FOR RACE REVIEW:**
171
171
 
172
- 1. **YOU MUST** use the Bash tool to call `raceReview` via `node -e`
172
+ 1. **YOU MUST** use the Bash tool to call `llm-orchestrate.js` directly
173
173
  2. **DO NOT** skip GPT/Gemini calls
174
174
  3. **DO NOT** simulate or fake review results
175
175
  4. **YOU MUST** run all 3 rounds sequentially (each round uses updated SPEC)
@@ -178,34 +178,29 @@ Score: 96/100 ✅ PASSED
178
178
 
179
179
  ### 3.1 Review Loop (3 Rounds)
180
180
 
181
- **For EACH round (1, 2, 3), execute this Bash command:**
181
+ **For EACH round (1, 2, 3), run GPT + Gemini in PARALLEL via Bash tool:**
182
182
 
183
- Replace `[SPEC_CONTENT]` with the actual SPEC file content (escaped for JSON), `[FEATURE_NAME]` with the feature name, `[STACK]` with tech stack, and `[N]` with round number.
184
-
185
- ```bash
186
- node -e "import('@su-record/vibe/tools').then(async t => { const result = await t.raceReview({reviewType: 'general', code: \`[SPEC_CONTENT]\`, context: 'SPEC review for [FEATURE_NAME]. Stack: [STACK]. Round [N]/3.'}); console.log(t.formatRaceResult(result)); }).catch(e => console.error('Race review failed:', e.message))"
187
- ```
188
-
189
- **🚨 MANDATORY: Use the Bash tool to run the above command for EACH round.**
190
-
191
- - Round 1: Run → Read results → Apply fixes to SPEC → Update SPEC file
192
- - Round 2: Run with updated SPEC → Read results → Apply fixes → Update SPEC file
193
- - Round 3: Run with final SPEC → Confirm no issues remain
194
-
195
- **If the `node -e` command fails** (e.g., module not found), use the fallback method:
196
-
197
- **Fallback: Direct llm-orchestrate.js calls (run BOTH in parallel via Bash):**
183
+ **🚨 MANDATORY: Copy the EXACT path below. DO NOT modify or use alternative paths.**
198
184
 
199
185
  ```bash
186
+ # Cross-platform path (works on Windows/macOS/Linux)
187
+ # ⚠️ COPY THIS EXACTLY - DO NOT USE ~/.claude/ or any other path!
200
188
  VIBE_SCRIPTS="$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts"
201
189
 
202
190
  # GPT review (Bash tool call 1)
203
- node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json "Review this SPEC for completeness, specificity, testability, security, and performance. Find issues. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. SPEC content: [SPEC_CONTENT]"
191
+ node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json "Review this SPEC for completeness, specificity, testability, security, and performance. Round [N]/3. Find issues and improvements. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. SPEC content: [SPEC_CONTENT]"
204
192
 
205
- # Gemini review (Bash tool call 2 - run in parallel)
206
- node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json "Review this SPEC for completeness, specificity, testability, security, and performance. Find issues. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. SPEC content: [SPEC_CONTENT]"
193
+ # Gemini review (Bash tool call 2 - run in parallel with GPT)
194
+ node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json "Review this SPEC for completeness, specificity, testability, security, and performance. Round [N]/3. Find issues and improvements. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. SPEC content: [SPEC_CONTENT]"
207
195
  ```
208
196
 
197
+ **🚨 MANDATORY: Use the Bash tool to run BOTH commands above for EACH round.**
198
+ **🚨 Run GPT and Gemini calls in PARALLEL (two separate Bash tool calls at once).**
199
+
200
+ - Round 1: Run GPT + Gemini in parallel → Cross-validate → Apply fixes → Update SPEC file
201
+ - Round 2: Run with updated SPEC → Cross-validate → Apply fixes → Update SPEC file
202
+ - Round 3: Run with final SPEC → Cross-validate → Confirm no issues remain
203
+
209
204
  ### 3.2 Cross-Validation Rules
210
205
 
211
206
  | Agreement | Priority | Action |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@su-record/vibe",
3
- "version": "2.6.22",
3
+ "version": "2.6.23",
4
4
  "description": "Vibe - Claude Code exclusive SPEC-driven AI coding framework with 35+ integrated tools",
5
5
  "type": "module",
6
6
  "main": "dist/cli/index.js",