@su-record/vibe 2.6.21 → 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:**
@@ -165,48 +165,55 @@ Score: 96/100 ✅ PASSED
165
165
 
166
166
  ## Step 3: Race Review (GPT + Gemini Cross-Validation) - 3 Rounds (v2.6.9)
167
167
 
168
- **🚨 CRITICAL: Execute ALL 3 rounds with cross-validation. DO NOT skip.**
168
+ **🚨🚨🚨 CRITICAL: YOU MUST EXECUTE ALL 3 ROUNDS. DO NOT SKIP THIS STEP. 🚨🚨🚨**
169
+
170
+ **🚨 ABSOLUTE RULES FOR RACE REVIEW:**
171
+
172
+ 1. **YOU MUST** use the Bash tool to call `llm-orchestrate.js` directly
173
+ 2. **DO NOT** skip GPT/Gemini calls
174
+ 3. **DO NOT** simulate or fake review results
175
+ 4. **YOU MUST** run all 3 rounds sequentially (each round uses updated SPEC)
169
176
 
170
177
  > Race Mode reviews SPEC with both GPT and Gemini in parallel, then cross-validates findings for higher confidence.
171
178
 
172
- ### 3.1 Race Review Invocation
179
+ ### 3.1 Review Loop (3 Rounds)
173
180
 
174
- ```bash
175
- # Via vibe tools (recommended)
176
- node -e "import('@su-record/vibe/tools').then(t => t.raceReview({reviewType: 'general', code: '[SPEC content]', context: 'SPEC review round N/3'}).then(r => console.log(t.formatRaceResult(r))))"
177
- ```
181
+ **For EACH round (1, 2, 3), run GPT + Gemini in PARALLEL via Bash tool:**
178
182
 
179
- ### 3.2 Review Loop (3 Rounds with Cross-Validation)
183
+ **🚨 MANDATORY: Copy the EXACT path below. DO NOT modify or use alternative paths.**
180
184
 
181
- For each round (1 to 3):
185
+ ```bash
186
+ # Cross-platform path (works on Windows/macOS/Linux)
187
+ # ⚠️ COPY THIS EXACTLY - DO NOT USE ~/.claude/ or any other path!
188
+ VIBE_SCRIPTS="$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts"
182
189
 
183
- **Run GPT and Gemini in PARALLEL with cross-validation:**
190
+ # GPT review (Bash tool call 1)
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]"
184
192
 
185
- ```javascript
186
- // Race review - both models run simultaneously
187
- import('@su-record/vibe/tools').then(async t => {
188
- const result = await t.raceReview({
189
- reviewType: 'general',
190
- code: specContent,
191
- context: `SPEC review for ${featureName}. Stack: ${stack}. Round ${N}/3.`
192
- });
193
- console.log(t.formatRaceResult(result));
194
- });
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]"
195
195
  ```
196
196
 
197
- **Cross-validation rules:**
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
+
204
+ ### 3.2 Cross-Validation Rules
198
205
 
199
206
  | Agreement | Priority | Action |
200
207
  |-----------|----------|--------|
201
- | Both agree (100%) | P1 | Auto-apply immediately |
202
- | One model (50%) | P2 | Auto-apply with note |
208
+ | Both GPT + Gemini agree (100%) | P1 | Auto-apply immediately |
209
+ | One model only (50%) | P2 | Auto-apply with note |
203
210
 
204
211
  **After each round:**
205
212
 
206
213
  1. Cross-validate findings (issues found by both → P1, single model → P2)
207
214
  2. Merge feedback with confidence scores
208
- 3. Auto-apply P1/P2 improvements to SPEC and Feature files
209
- 4. Continue to next round
215
+ 3. Auto-apply P1/P2 improvements to SPEC and Feature files (use Edit tool)
216
+ 4. Continue to next round with updated SPEC content
210
217
 
211
218
  **Output format:**
212
219
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@su-record/vibe",
3
- "version": "2.6.21",
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",