@su-record/vibe 2.6.21 → 2.6.22

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.
@@ -165,48 +165,60 @@ 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 `raceReview` via `node -e`
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)
180
+
181
+ **For EACH round (1, 2, 3), execute this Bash command:**
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.
173
184
 
174
185
  ```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))))"
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))"
177
187
  ```
178
188
 
179
- ### 3.2 Review Loop (3 Rounds with Cross-Validation)
189
+ **🚨 MANDATORY: Use the Bash tool to run the above command for EACH round.**
180
190
 
181
- For each round (1 to 3):
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):**
198
+
199
+ ```bash
200
+ VIBE_SCRIPTS="$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts"
182
201
 
183
- **Run GPT and Gemini in PARALLEL with cross-validation:**
202
+ # 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]"
184
204
 
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
- });
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]"
195
207
  ```
196
208
 
197
- **Cross-validation rules:**
209
+ ### 3.2 Cross-Validation Rules
198
210
 
199
211
  | Agreement | Priority | Action |
200
212
  |-----------|----------|--------|
201
- | Both agree (100%) | P1 | Auto-apply immediately |
202
- | One model (50%) | P2 | Auto-apply with note |
213
+ | Both GPT + Gemini agree (100%) | P1 | Auto-apply immediately |
214
+ | One model only (50%) | P2 | Auto-apply with note |
203
215
 
204
216
  **After each round:**
205
217
 
206
218
  1. Cross-validate findings (issues found by both → P1, single model → P2)
207
219
  2. Merge feedback with confidence scores
208
- 3. Auto-apply P1/P2 improvements to SPEC and Feature files
209
- 4. Continue to next round
220
+ 3. Auto-apply P1/P2 improvements to SPEC and Feature files (use Edit tool)
221
+ 4. Continue to next round with updated SPEC content
210
222
 
211
223
  **Output format:**
212
224
  ```
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.22",
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",