cc-reviewer 1.2.1 → 1.2.3

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/dist/schema.js CHANGED
@@ -175,7 +175,6 @@ export function getReviewOutputJsonSchema() {
175
175
  required: ['reviewer', 'findings', 'agreements', 'disagreements', 'alternatives', 'risk_assessment'],
176
176
  properties: {
177
177
  reviewer: { type: 'string' },
178
- timestamp: { type: 'string', format: 'date-time' },
179
178
  findings: {
180
179
  type: 'array',
181
180
  items: {
@@ -193,24 +192,7 @@ export function getReviewOutputJsonSchema() {
193
192
  severity: { type: 'string', enum: ['critical', 'high', 'medium', 'low', 'info'] },
194
193
  confidence: { type: 'number', minimum: 0, maximum: 1 },
195
194
  title: { type: 'string', maxLength: 120 },
196
- description: { type: 'string' },
197
- location: {
198
- type: 'object',
199
- additionalProperties: false,
200
- required: ['file'], // file is required to match Zod schema
201
- properties: {
202
- file: { type: 'string', description: 'Relative file path from working directory' },
203
- line_start: { type: 'integer', minimum: 1, description: 'Starting line number' },
204
- line_end: { type: 'integer', minimum: 1, description: 'Ending line number' },
205
- column_start: { type: 'integer', minimum: 0, description: 'Starting column' },
206
- column_end: { type: 'integer', minimum: 0, description: 'Ending column' }
207
- }
208
- },
209
- evidence: { type: 'string' },
210
- suggestion: { type: 'string' },
211
- cwe_id: { type: 'string', pattern: '^CWE-\\d+$' },
212
- owasp_category: { type: 'string' },
213
- tags: { type: 'array', items: { type: 'string' } }
195
+ description: { type: 'string' }
214
196
  }
215
197
  }
216
198
  },
@@ -223,9 +205,7 @@ export function getReviewOutputJsonSchema() {
223
205
  properties: {
224
206
  original_claim: { type: 'string' },
225
207
  assessment: { type: 'string', enum: ['correct', 'mostly_correct', 'partially_correct'] },
226
- confidence: { type: 'number', minimum: 0, maximum: 1 },
227
- supporting_evidence: { type: 'string' },
228
- notes: { type: 'string' }
208
+ confidence: { type: 'number', minimum: 0, maximum: 1 }
229
209
  }
230
210
  }
231
211
  },
@@ -239,9 +219,7 @@ export function getReviewOutputJsonSchema() {
239
219
  original_claim: { type: 'string' },
240
220
  issue: { type: 'string', enum: ['incorrect', 'misleading', 'incomplete', 'outdated', 'hallucinated'] },
241
221
  confidence: { type: 'number', minimum: 0, maximum: 1 },
242
- reason: { type: 'string' },
243
- correction: { type: 'string' },
244
- evidence: { type: 'string' }
222
+ reason: { type: 'string' }
245
223
  }
246
224
  }
247
225
  },
@@ -258,6 +236,7 @@ export function getReviewOutputJsonSchema() {
258
236
  tradeoffs: {
259
237
  type: 'object',
260
238
  additionalProperties: false,
239
+ required: ['pros', 'cons'],
261
240
  properties: {
262
241
  pros: { type: 'array', items: { type: 'string' } },
263
242
  cons: { type: 'array', items: { type: 'string' } }
@@ -275,12 +254,9 @@ export function getReviewOutputJsonSchema() {
275
254
  overall_level: { type: 'string', enum: ['critical', 'high', 'medium', 'low', 'minimal'] },
276
255
  score: { type: 'number', minimum: 0, maximum: 100 },
277
256
  summary: { type: 'string', maxLength: 300 },
278
- top_concerns: { type: 'array', items: { type: 'string' }, maxItems: 5 },
279
- mitigations: { type: 'array', items: { type: 'string' } }
257
+ top_concerns: { type: 'array', items: { type: 'string' }, maxItems: 5 }
280
258
  }
281
- },
282
- files_examined: { type: 'array', items: { type: 'string' } },
283
- execution_notes: { type: 'string' }
259
+ }
284
260
  }
285
261
  };
286
262
  }
@@ -351,7 +351,7 @@ Install at least one:
351
351
  export const TOOL_DEFINITIONS = {
352
352
  codex_feedback: {
353
353
  name: 'codex_feedback',
354
- description: "Get Codex's review of Claude Code's work. Codex focuses on correctness, edge cases, and performance.",
354
+ description: "ONLY use when user explicitly requests '/codex' or 'review with codex'. Get external second-opinion from OpenAI Codex CLI. Codex focuses on correctness, edge cases, and performance. DO NOT use for general 'review' requests.",
355
355
  inputSchema: {
356
356
  type: 'object',
357
357
  properties: {
@@ -396,7 +396,7 @@ export const TOOL_DEFINITIONS = {
396
396
  },
397
397
  gemini_feedback: {
398
398
  name: 'gemini_feedback',
399
- description: "Get Gemini's review of Claude Code's work. Gemini focuses on design patterns, scalability, and tech debt.",
399
+ description: "ONLY use when user explicitly requests '/gemini' or 'review with gemini'. Get external second-opinion from Google Gemini CLI. Gemini focuses on design patterns, scalability, and tech debt. DO NOT use for general 'review' requests.",
400
400
  inputSchema: {
401
401
  type: 'object',
402
402
  properties: {
@@ -436,7 +436,7 @@ export const TOOL_DEFINITIONS = {
436
436
  },
437
437
  multi_feedback: {
438
438
  name: 'multi_feedback',
439
- description: "Get parallel reviews from all available AI CLIs (Codex and Gemini). Returns combined feedback for synthesis.",
439
+ description: "ONLY use when user explicitly requests '/multi' or 'review with both codex and gemini'. Get parallel second-opinions from both external CLIs (Codex and Gemini). Returns combined feedback for synthesis. DO NOT use for general 'review' requests.",
440
440
  inputSchema: {
441
441
  type: 'object',
442
442
  properties: {
@@ -476,7 +476,7 @@ export const TOOL_DEFINITIONS = {
476
476
  },
477
477
  council_feedback: {
478
478
  name: 'council_feedback',
479
- description: "Get a Council Review with automatic consensus calculation. Runs multiple models in parallel, detects agreements/conflicts, and synthesizes findings with confidence scores.",
479
+ description: "ONLY use when user explicitly requests council review or consensus-based feedback. Get external second-opinions from multiple CLIs with automatic consensus calculation. Runs Codex and Gemini in parallel, detects agreements/conflicts, and synthesizes findings with confidence scores. DO NOT use for general 'review' requests.",
480
480
  inputSchema: {
481
481
  type: 'object',
482
482
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-reviewer",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "MCP server for Claude Code - Get second-opinion feedback from Codex/Gemini CLIs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",