cc-reviewer 1.2.5 → 1.3.0
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/README.md +7 -10
- package/commands/codex-xhigh.md +2 -2
- package/commands/codex.md +2 -2
- package/commands/gemini.md +2 -2
- package/commands/multi.md +3 -6
- package/dist/commands.d.ts +1 -1
- package/dist/commands.js +1 -1
- package/dist/context.d.ts +58 -58
- package/dist/handoff.d.ts +6 -6
- package/dist/index.d.ts +4 -5
- package/dist/index.js +18 -24
- package/dist/prompt.d.ts +1 -1
- package/dist/prompt.js +1 -1
- package/dist/schema.d.ts +73 -762
- package/dist/schema.js +2 -37
- package/dist/tools/feedback.d.ts +14 -104
- package/dist/tools/feedback.js +17 -137
- package/package.json +2 -2
- package/commands/council.md +0 -107
- package/dist/consensus.d.ts +0 -83
- package/dist/consensus.js +0 -481
package/README.md
CHANGED
|
@@ -11,12 +11,12 @@ claude mcp add -s user cc-reviewer -- npx -y cc-reviewer
|
|
|
11
11
|
|
|
12
12
|
**Step 2: Install slash commands**
|
|
13
13
|
```bash
|
|
14
|
-
npx cc-reviewer-
|
|
14
|
+
npx cc-reviewer-commands
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
**Step 3: Restart Claude Code**
|
|
18
18
|
|
|
19
|
-
The MCP tools and slash commands (`/codex`, `/gemini`, `/multi
|
|
19
|
+
The MCP tools and slash commands (`/codex`, `/gemini`, `/multi`) are now available.
|
|
20
20
|
|
|
21
21
|
Verify with:
|
|
22
22
|
```bash
|
|
@@ -55,13 +55,12 @@ These tools provide **external second-opinion reviews** from Codex and Gemini CL
|
|
|
55
55
|
- `/codex` or "review with codex" - Get external Codex review
|
|
56
56
|
- `/gemini` or "review with gemini" - Get external Gemini review
|
|
57
57
|
- `/multi` - Get parallel reviews from both CLIs
|
|
58
|
-
- Council review - Get consensus-based feedback from multiple models
|
|
59
58
|
|
|
60
59
|
**For regular reviews:** Just say "review" and Claude Code will use its native capabilities. These external tools are only invoked when explicitly requested.
|
|
61
60
|
|
|
62
61
|
## Slash Commands
|
|
63
62
|
|
|
64
|
-
After running `npx cc-reviewer-
|
|
63
|
+
After running `npx cc-reviewer-commands`, these commands are available:
|
|
65
64
|
|
|
66
65
|
```bash
|
|
67
66
|
/codex # Review with Codex
|
|
@@ -72,7 +71,6 @@ After running `npx cc-reviewer-setup`, these commands are available:
|
|
|
72
71
|
/gemini architecture # Focus on architecture
|
|
73
72
|
|
|
74
73
|
/multi # Both models in parallel
|
|
75
|
-
/council # Multi-model consensus with verification
|
|
76
74
|
```
|
|
77
75
|
|
|
78
76
|
## How It Works
|
|
@@ -101,14 +99,13 @@ CC does work → User: /codex → External CLI reviews → CC synthesizes → Up
|
|
|
101
99
|
|
|
102
100
|
## MCP Tools
|
|
103
101
|
|
|
104
|
-
The plugin exposes
|
|
102
|
+
The plugin exposes three MCP tools:
|
|
105
103
|
|
|
106
104
|
| Tool | Description |
|
|
107
105
|
|------|-------------|
|
|
108
|
-
| `
|
|
109
|
-
| `
|
|
110
|
-
| `
|
|
111
|
-
| `council_feedback` | Multi-model consensus with verification pipeline |
|
|
106
|
+
| `codex_review` | Get Codex review (correctness, edge cases, performance) |
|
|
107
|
+
| `gemini_review` | Get Gemini review (design patterns, scalability, tech debt) |
|
|
108
|
+
| `multi_review` | Parallel review from both models |
|
|
112
109
|
|
|
113
110
|
## Output Format
|
|
114
111
|
|
package/commands/codex-xhigh.md
CHANGED
|
@@ -7,14 +7,14 @@ Get a deep-thinking review from OpenAI Codex CLI with xhigh reasoning effort.
|
|
|
7
7
|
|
|
8
8
|
## Instructions
|
|
9
9
|
|
|
10
|
-
Use the `
|
|
10
|
+
Use the `codex_review` MCP tool with `reasoningEffort: "xhigh"` for deeper analysis.
|
|
11
11
|
|
|
12
12
|
1. Determine what to review:
|
|
13
13
|
- If we just completed work, summarize the changes made
|
|
14
14
|
- If user provided context, use that
|
|
15
15
|
- Default: review the current working directory
|
|
16
16
|
|
|
17
|
-
2. Call the `
|
|
17
|
+
2. Call the `codex_review` tool with:
|
|
18
18
|
- `workingDir`: current working directory
|
|
19
19
|
- `ccOutput`: brief summary of recent changes or context
|
|
20
20
|
- `reasoningEffort`: "xhigh" (this is the key difference from /codex)
|
package/commands/codex.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Codex
|
|
1
|
+
# Codex Review
|
|
2
2
|
|
|
3
3
|
Get a review from OpenAI Codex CLI, specialized in correctness and security.
|
|
4
4
|
|
|
@@ -35,7 +35,7 @@ QUESTIONS:
|
|
|
35
35
|
|
|
36
36
|
## Tool Invocation
|
|
37
37
|
|
|
38
|
-
Call `
|
|
38
|
+
Call `codex_review` with:
|
|
39
39
|
|
|
40
40
|
```json
|
|
41
41
|
{
|
package/commands/gemini.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Gemini
|
|
1
|
+
# Gemini Review
|
|
2
2
|
|
|
3
3
|
Get a review from Google Gemini CLI, specialized in architecture and large-scale analysis.
|
|
4
4
|
|
|
@@ -37,7 +37,7 @@ QUESTIONS:
|
|
|
37
37
|
|
|
38
38
|
## Tool Invocation
|
|
39
39
|
|
|
40
|
-
Call `
|
|
40
|
+
Call `gemini_review` with:
|
|
41
41
|
|
|
42
42
|
```json
|
|
43
43
|
{
|
package/commands/multi.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Multi
|
|
1
|
+
# Multi Review
|
|
2
2
|
|
|
3
3
|
Get parallel reviews from both Codex and Gemini, raw output for manual synthesis.
|
|
4
4
|
|
|
@@ -7,10 +7,7 @@ Get parallel reviews from both Codex and Gemini, raw output for manual synthesis
|
|
|
7
7
|
|
|
8
8
|
## When to Use
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
- `/council` - Automatic consensus with confidence scores
|
|
12
|
-
|
|
13
|
-
Use `/multi` when you want full control over synthesis.
|
|
10
|
+
Use `/multi` when you want parallel reviews from both Codex and Gemini.
|
|
14
11
|
|
|
15
12
|
## Before Calling - PREPARE THE HANDOFF
|
|
16
13
|
|
|
@@ -37,7 +34,7 @@ QUESTIONS:
|
|
|
37
34
|
|
|
38
35
|
## Tool Invocation
|
|
39
36
|
|
|
40
|
-
Call `
|
|
37
|
+
Call `multi_review` with:
|
|
41
38
|
|
|
42
39
|
```json
|
|
43
40
|
{
|
package/dist/commands.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Shared module for slash command installation
|
|
3
3
|
*
|
|
4
4
|
* Used by both:
|
|
5
|
-
* - setup.ts (manual CLI tool: npx cc-reviewer-
|
|
5
|
+
* - setup.ts (manual CLI tool: npx cc-reviewer-commands)
|
|
6
6
|
* - index.ts (auto-install on MCP server startup)
|
|
7
7
|
*/
|
|
8
8
|
export interface InstallResult {
|
package/dist/commands.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Shared module for slash command installation
|
|
3
3
|
*
|
|
4
4
|
* Used by both:
|
|
5
|
-
* - setup.ts (manual CLI tool: npx cc-reviewer-
|
|
5
|
+
* - setup.ts (manual CLI tool: npx cc-reviewer-commands)
|
|
6
6
|
* - index.ts (auto-install on MCP server startup)
|
|
7
7
|
*/
|
|
8
8
|
import { existsSync, mkdirSync, copyFileSync, readdirSync, statSync } from 'fs';
|
package/dist/context.d.ts
CHANGED
|
@@ -22,12 +22,12 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
22
22
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
23
23
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
type: "function" | "type" | "
|
|
25
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
26
26
|
name: string;
|
|
27
27
|
lineStart?: number | undefined;
|
|
28
28
|
lineEnd?: number | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
type: "function" | "type" | "
|
|
30
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
31
31
|
name: string;
|
|
32
32
|
lineStart?: number | undefined;
|
|
33
33
|
lineEnd?: number | undefined;
|
|
@@ -44,7 +44,7 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
44
44
|
linesRemoved?: number | undefined;
|
|
45
45
|
content?: string | undefined;
|
|
46
46
|
changedSymbols?: {
|
|
47
|
-
type: "function" | "type" | "
|
|
47
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
48
48
|
name: string;
|
|
49
49
|
lineStart?: number | undefined;
|
|
50
50
|
lineEnd?: number | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
61
61
|
linesRemoved?: number | undefined;
|
|
62
62
|
content?: string | undefined;
|
|
63
63
|
changedSymbols?: {
|
|
64
|
-
type: "function" | "type" | "
|
|
64
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
65
65
|
name: string;
|
|
66
66
|
lineStart?: number | undefined;
|
|
67
67
|
lineEnd?: number | undefined;
|
|
@@ -216,13 +216,13 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
217
|
message: string;
|
|
218
218
|
file: string;
|
|
219
|
-
severity: "
|
|
219
|
+
severity: "error" | "warning" | "info";
|
|
220
220
|
line?: number | undefined;
|
|
221
221
|
rule?: string | undefined;
|
|
222
222
|
}, {
|
|
223
223
|
message: string;
|
|
224
224
|
file: string;
|
|
225
|
-
severity: "
|
|
225
|
+
severity: "error" | "warning" | "info";
|
|
226
226
|
line?: number | undefined;
|
|
227
227
|
rule?: string | undefined;
|
|
228
228
|
}>, "many">>;
|
|
@@ -231,7 +231,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
231
231
|
issues?: {
|
|
232
232
|
message: string;
|
|
233
233
|
file: string;
|
|
234
|
-
severity: "
|
|
234
|
+
severity: "error" | "warning" | "info";
|
|
235
235
|
line?: number | undefined;
|
|
236
236
|
rule?: string | undefined;
|
|
237
237
|
}[] | undefined;
|
|
@@ -240,7 +240,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
240
240
|
issues?: {
|
|
241
241
|
message: string;
|
|
242
242
|
file: string;
|
|
243
|
-
severity: "
|
|
243
|
+
severity: "error" | "warning" | "info";
|
|
244
244
|
line?: number | undefined;
|
|
245
245
|
rule?: string | undefined;
|
|
246
246
|
}[] | undefined;
|
|
@@ -285,7 +285,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
285
285
|
issues?: {
|
|
286
286
|
message: string;
|
|
287
287
|
file: string;
|
|
288
|
-
severity: "
|
|
288
|
+
severity: "error" | "warning" | "info";
|
|
289
289
|
line?: number | undefined;
|
|
290
290
|
rule?: string | undefined;
|
|
291
291
|
}[] | undefined;
|
|
@@ -330,7 +330,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
330
330
|
issues?: {
|
|
331
331
|
message: string;
|
|
332
332
|
file: string;
|
|
333
|
-
severity: "
|
|
333
|
+
severity: "error" | "warning" | "info";
|
|
334
334
|
line?: number | undefined;
|
|
335
335
|
rule?: string | undefined;
|
|
336
336
|
}[] | undefined;
|
|
@@ -408,16 +408,16 @@ export declare const CCAnalysisSchema: z.ZodObject<{
|
|
|
408
408
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
409
409
|
addressed: z.ZodOptional<z.ZodBoolean>;
|
|
410
410
|
}, "strip", z.ZodTypeAny, {
|
|
411
|
-
category: string;
|
|
412
411
|
description: string;
|
|
413
|
-
|
|
412
|
+
category: string;
|
|
414
413
|
location?: string | undefined;
|
|
414
|
+
confidence?: number | undefined;
|
|
415
415
|
addressed?: boolean | undefined;
|
|
416
416
|
}, {
|
|
417
|
-
category: string;
|
|
418
417
|
description: string;
|
|
419
|
-
|
|
418
|
+
category: string;
|
|
420
419
|
location?: string | undefined;
|
|
420
|
+
confidence?: number | undefined;
|
|
421
421
|
addressed?: boolean | undefined;
|
|
422
422
|
}>, "many">>;
|
|
423
423
|
uncertainties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -449,17 +449,17 @@ export declare const CCAnalysisSchema: z.ZodObject<{
|
|
|
449
449
|
}>, "many">>;
|
|
450
450
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
451
451
|
}, "strip", z.ZodTypeAny, {
|
|
452
|
-
summary: string;
|
|
453
452
|
originalRequest: string;
|
|
453
|
+
summary: string;
|
|
454
|
+
taskType?: "other" | "feature" | "bugfix" | "refactor" | "security-fix" | "performance" | "review" | undefined;
|
|
454
455
|
confidence?: number | undefined;
|
|
455
456
|
findings?: {
|
|
456
|
-
category: string;
|
|
457
457
|
description: string;
|
|
458
|
-
|
|
458
|
+
category: string;
|
|
459
459
|
location?: string | undefined;
|
|
460
|
+
confidence?: number | undefined;
|
|
460
461
|
addressed?: boolean | undefined;
|
|
461
462
|
}[] | undefined;
|
|
462
|
-
taskType?: "performance" | "other" | "review" | "feature" | "bugfix" | "refactor" | "security-fix" | undefined;
|
|
463
463
|
uncertainties?: {
|
|
464
464
|
topic: string;
|
|
465
465
|
question: string;
|
|
@@ -472,17 +472,17 @@ export declare const CCAnalysisSchema: z.ZodObject<{
|
|
|
472
472
|
alternatives?: string[] | undefined;
|
|
473
473
|
}[] | undefined;
|
|
474
474
|
}, {
|
|
475
|
-
summary: string;
|
|
476
475
|
originalRequest: string;
|
|
476
|
+
summary: string;
|
|
477
|
+
taskType?: "other" | "feature" | "bugfix" | "refactor" | "security-fix" | "performance" | "review" | undefined;
|
|
477
478
|
confidence?: number | undefined;
|
|
478
479
|
findings?: {
|
|
479
|
-
category: string;
|
|
480
480
|
description: string;
|
|
481
|
-
|
|
481
|
+
category: string;
|
|
482
482
|
location?: string | undefined;
|
|
483
|
+
confidence?: number | undefined;
|
|
483
484
|
addressed?: boolean | undefined;
|
|
484
485
|
}[] | undefined;
|
|
485
|
-
taskType?: "performance" | "other" | "review" | "feature" | "bugfix" | "refactor" | "security-fix" | undefined;
|
|
486
486
|
uncertainties?: {
|
|
487
487
|
topic: string;
|
|
488
488
|
question: string;
|
|
@@ -613,12 +613,12 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
613
613
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
614
614
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
615
615
|
}, "strip", z.ZodTypeAny, {
|
|
616
|
-
type: "function" | "type" | "
|
|
616
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
617
617
|
name: string;
|
|
618
618
|
lineStart?: number | undefined;
|
|
619
619
|
lineEnd?: number | undefined;
|
|
620
620
|
}, {
|
|
621
|
-
type: "function" | "type" | "
|
|
621
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
622
622
|
name: string;
|
|
623
623
|
lineStart?: number | undefined;
|
|
624
624
|
lineEnd?: number | undefined;
|
|
@@ -635,7 +635,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
635
635
|
linesRemoved?: number | undefined;
|
|
636
636
|
content?: string | undefined;
|
|
637
637
|
changedSymbols?: {
|
|
638
|
-
type: "function" | "type" | "
|
|
638
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
639
639
|
name: string;
|
|
640
640
|
lineStart?: number | undefined;
|
|
641
641
|
lineEnd?: number | undefined;
|
|
@@ -652,7 +652,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
652
652
|
linesRemoved?: number | undefined;
|
|
653
653
|
content?: string | undefined;
|
|
654
654
|
changedSymbols?: {
|
|
655
|
-
type: "function" | "type" | "
|
|
655
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
656
656
|
name: string;
|
|
657
657
|
lineStart?: number | undefined;
|
|
658
658
|
lineEnd?: number | undefined;
|
|
@@ -674,7 +674,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
674
674
|
linesRemoved?: number | undefined;
|
|
675
675
|
content?: string | undefined;
|
|
676
676
|
changedSymbols?: {
|
|
677
|
-
type: "function" | "type" | "
|
|
677
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
678
678
|
name: string;
|
|
679
679
|
lineStart?: number | undefined;
|
|
680
680
|
lineEnd?: number | undefined;
|
|
@@ -696,7 +696,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
696
696
|
linesRemoved?: number | undefined;
|
|
697
697
|
content?: string | undefined;
|
|
698
698
|
changedSymbols?: {
|
|
699
|
-
type: "function" | "type" | "
|
|
699
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
700
700
|
name: string;
|
|
701
701
|
lineStart?: number | undefined;
|
|
702
702
|
lineEnd?: number | undefined;
|
|
@@ -720,16 +720,16 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
720
720
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
721
721
|
addressed: z.ZodOptional<z.ZodBoolean>;
|
|
722
722
|
}, "strip", z.ZodTypeAny, {
|
|
723
|
-
category: string;
|
|
724
723
|
description: string;
|
|
725
|
-
|
|
724
|
+
category: string;
|
|
726
725
|
location?: string | undefined;
|
|
726
|
+
confidence?: number | undefined;
|
|
727
727
|
addressed?: boolean | undefined;
|
|
728
728
|
}, {
|
|
729
|
-
category: string;
|
|
730
729
|
description: string;
|
|
731
|
-
|
|
730
|
+
category: string;
|
|
732
731
|
location?: string | undefined;
|
|
732
|
+
confidence?: number | undefined;
|
|
733
733
|
addressed?: boolean | undefined;
|
|
734
734
|
}>, "many">>;
|
|
735
735
|
uncertainties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -761,17 +761,17 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
761
761
|
}>, "many">>;
|
|
762
762
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
763
763
|
}, "strip", z.ZodTypeAny, {
|
|
764
|
-
summary: string;
|
|
765
764
|
originalRequest: string;
|
|
765
|
+
summary: string;
|
|
766
|
+
taskType?: "other" | "feature" | "bugfix" | "refactor" | "security-fix" | "performance" | "review" | undefined;
|
|
766
767
|
confidence?: number | undefined;
|
|
767
768
|
findings?: {
|
|
768
|
-
category: string;
|
|
769
769
|
description: string;
|
|
770
|
-
|
|
770
|
+
category: string;
|
|
771
771
|
location?: string | undefined;
|
|
772
|
+
confidence?: number | undefined;
|
|
772
773
|
addressed?: boolean | undefined;
|
|
773
774
|
}[] | undefined;
|
|
774
|
-
taskType?: "performance" | "other" | "review" | "feature" | "bugfix" | "refactor" | "security-fix" | undefined;
|
|
775
775
|
uncertainties?: {
|
|
776
776
|
topic: string;
|
|
777
777
|
question: string;
|
|
@@ -784,17 +784,17 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
784
784
|
alternatives?: string[] | undefined;
|
|
785
785
|
}[] | undefined;
|
|
786
786
|
}, {
|
|
787
|
-
summary: string;
|
|
788
787
|
originalRequest: string;
|
|
788
|
+
summary: string;
|
|
789
|
+
taskType?: "other" | "feature" | "bugfix" | "refactor" | "security-fix" | "performance" | "review" | undefined;
|
|
789
790
|
confidence?: number | undefined;
|
|
790
791
|
findings?: {
|
|
791
|
-
category: string;
|
|
792
792
|
description: string;
|
|
793
|
-
|
|
793
|
+
category: string;
|
|
794
794
|
location?: string | undefined;
|
|
795
|
+
confidence?: number | undefined;
|
|
795
796
|
addressed?: boolean | undefined;
|
|
796
797
|
}[] | undefined;
|
|
797
|
-
taskType?: "performance" | "other" | "review" | "feature" | "bugfix" | "refactor" | "security-fix" | undefined;
|
|
798
798
|
uncertainties?: {
|
|
799
799
|
topic: string;
|
|
800
800
|
question: string;
|
|
@@ -949,13 +949,13 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
949
949
|
}, "strip", z.ZodTypeAny, {
|
|
950
950
|
message: string;
|
|
951
951
|
file: string;
|
|
952
|
-
severity: "
|
|
952
|
+
severity: "error" | "warning" | "info";
|
|
953
953
|
line?: number | undefined;
|
|
954
954
|
rule?: string | undefined;
|
|
955
955
|
}, {
|
|
956
956
|
message: string;
|
|
957
957
|
file: string;
|
|
958
|
-
severity: "
|
|
958
|
+
severity: "error" | "warning" | "info";
|
|
959
959
|
line?: number | undefined;
|
|
960
960
|
rule?: string | undefined;
|
|
961
961
|
}>, "many">>;
|
|
@@ -964,7 +964,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
964
964
|
issues?: {
|
|
965
965
|
message: string;
|
|
966
966
|
file: string;
|
|
967
|
-
severity: "
|
|
967
|
+
severity: "error" | "warning" | "info";
|
|
968
968
|
line?: number | undefined;
|
|
969
969
|
rule?: string | undefined;
|
|
970
970
|
}[] | undefined;
|
|
@@ -973,7 +973,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
973
973
|
issues?: {
|
|
974
974
|
message: string;
|
|
975
975
|
file: string;
|
|
976
|
-
severity: "
|
|
976
|
+
severity: "error" | "warning" | "info";
|
|
977
977
|
line?: number | undefined;
|
|
978
978
|
rule?: string | undefined;
|
|
979
979
|
}[] | undefined;
|
|
@@ -1018,7 +1018,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
1018
1018
|
issues?: {
|
|
1019
1019
|
message: string;
|
|
1020
1020
|
file: string;
|
|
1021
|
-
severity: "
|
|
1021
|
+
severity: "error" | "warning" | "info";
|
|
1022
1022
|
line?: number | undefined;
|
|
1023
1023
|
rule?: string | undefined;
|
|
1024
1024
|
}[] | undefined;
|
|
@@ -1063,7 +1063,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
1063
1063
|
issues?: {
|
|
1064
1064
|
message: string;
|
|
1065
1065
|
file: string;
|
|
1066
|
-
severity: "
|
|
1066
|
+
severity: "error" | "warning" | "info";
|
|
1067
1067
|
line?: number | undefined;
|
|
1068
1068
|
rule?: string | undefined;
|
|
1069
1069
|
}[] | undefined;
|
|
@@ -1236,7 +1236,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
1236
1236
|
linesRemoved?: number | undefined;
|
|
1237
1237
|
content?: string | undefined;
|
|
1238
1238
|
changedSymbols?: {
|
|
1239
|
-
type: "function" | "type" | "
|
|
1239
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
1240
1240
|
name: string;
|
|
1241
1241
|
lineStart?: number | undefined;
|
|
1242
1242
|
lineEnd?: number | undefined;
|
|
@@ -1250,17 +1250,17 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
1250
1250
|
impactedModules?: string[] | undefined;
|
|
1251
1251
|
};
|
|
1252
1252
|
analysis: {
|
|
1253
|
-
summary: string;
|
|
1254
1253
|
originalRequest: string;
|
|
1254
|
+
summary: string;
|
|
1255
|
+
taskType?: "other" | "feature" | "bugfix" | "refactor" | "security-fix" | "performance" | "review" | undefined;
|
|
1255
1256
|
confidence?: number | undefined;
|
|
1256
1257
|
findings?: {
|
|
1257
|
-
category: string;
|
|
1258
1258
|
description: string;
|
|
1259
|
-
|
|
1259
|
+
category: string;
|
|
1260
1260
|
location?: string | undefined;
|
|
1261
|
+
confidence?: number | undefined;
|
|
1261
1262
|
addressed?: boolean | undefined;
|
|
1262
1263
|
}[] | undefined;
|
|
1263
|
-
taskType?: "performance" | "other" | "review" | "feature" | "bugfix" | "refactor" | "security-fix" | undefined;
|
|
1264
1264
|
uncertainties?: {
|
|
1265
1265
|
topic: string;
|
|
1266
1266
|
question: string;
|
|
@@ -1314,7 +1314,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
1314
1314
|
issues?: {
|
|
1315
1315
|
message: string;
|
|
1316
1316
|
file: string;
|
|
1317
|
-
severity: "
|
|
1317
|
+
severity: "error" | "warning" | "info";
|
|
1318
1318
|
line?: number | undefined;
|
|
1319
1319
|
rule?: string | undefined;
|
|
1320
1320
|
}[] | undefined;
|
|
@@ -1371,7 +1371,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
1371
1371
|
linesRemoved?: number | undefined;
|
|
1372
1372
|
content?: string | undefined;
|
|
1373
1373
|
changedSymbols?: {
|
|
1374
|
-
type: "function" | "type" | "
|
|
1374
|
+
type: "function" | "type" | "class" | "variable" | "import" | "export" | "other";
|
|
1375
1375
|
name: string;
|
|
1376
1376
|
lineStart?: number | undefined;
|
|
1377
1377
|
lineEnd?: number | undefined;
|
|
@@ -1385,17 +1385,17 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
1385
1385
|
impactedModules?: string[] | undefined;
|
|
1386
1386
|
};
|
|
1387
1387
|
analysis: {
|
|
1388
|
-
summary: string;
|
|
1389
1388
|
originalRequest: string;
|
|
1389
|
+
summary: string;
|
|
1390
|
+
taskType?: "other" | "feature" | "bugfix" | "refactor" | "security-fix" | "performance" | "review" | undefined;
|
|
1390
1391
|
confidence?: number | undefined;
|
|
1391
1392
|
findings?: {
|
|
1392
|
-
category: string;
|
|
1393
1393
|
description: string;
|
|
1394
|
-
|
|
1394
|
+
category: string;
|
|
1395
1395
|
location?: string | undefined;
|
|
1396
|
+
confidence?: number | undefined;
|
|
1396
1397
|
addressed?: boolean | undefined;
|
|
1397
1398
|
}[] | undefined;
|
|
1398
|
-
taskType?: "performance" | "other" | "review" | "feature" | "bugfix" | "refactor" | "security-fix" | undefined;
|
|
1399
1399
|
uncertainties?: {
|
|
1400
1400
|
topic: string;
|
|
1401
1401
|
question: string;
|
|
@@ -1449,7 +1449,7 @@ export declare const ReviewContextSchema: z.ZodObject<{
|
|
|
1449
1449
|
issues?: {
|
|
1450
1450
|
message: string;
|
|
1451
1451
|
file: string;
|
|
1452
|
-
severity: "
|
|
1452
|
+
severity: "error" | "warning" | "info";
|
|
1453
1453
|
line?: number | undefined;
|
|
1454
1454
|
rule?: string | undefined;
|
|
1455
1455
|
}[] | undefined;
|
package/dist/handoff.d.ts
CHANGED
|
@@ -45,13 +45,13 @@ export declare const DecisionSchema: z.ZodObject<{
|
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
decision: string;
|
|
47
47
|
rationale: string;
|
|
48
|
-
tradeoffs?: string | undefined;
|
|
49
48
|
alternatives?: string[] | undefined;
|
|
49
|
+
tradeoffs?: string | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
decision: string;
|
|
52
52
|
rationale: string;
|
|
53
|
-
tradeoffs?: string | undefined;
|
|
54
53
|
alternatives?: string[] | undefined;
|
|
54
|
+
tradeoffs?: string | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
export type Decision = z.infer<typeof DecisionSchema>;
|
|
57
57
|
/**
|
|
@@ -105,13 +105,13 @@ export declare const HandoffSchema: z.ZodObject<{
|
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
106
|
decision: string;
|
|
107
107
|
rationale: string;
|
|
108
|
-
tradeoffs?: string | undefined;
|
|
109
108
|
alternatives?: string[] | undefined;
|
|
109
|
+
tradeoffs?: string | undefined;
|
|
110
110
|
}, {
|
|
111
111
|
decision: string;
|
|
112
112
|
rationale: string;
|
|
113
|
-
tradeoffs?: string | undefined;
|
|
114
113
|
alternatives?: string[] | undefined;
|
|
114
|
+
tradeoffs?: string | undefined;
|
|
115
115
|
}>, "many">>;
|
|
116
116
|
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
117
117
|
question: z.ZodString;
|
|
@@ -144,8 +144,8 @@ export declare const HandoffSchema: z.ZodObject<{
|
|
|
144
144
|
decisions?: {
|
|
145
145
|
decision: string;
|
|
146
146
|
rationale: string;
|
|
147
|
-
tradeoffs?: string | undefined;
|
|
148
147
|
alternatives?: string[] | undefined;
|
|
148
|
+
tradeoffs?: string | undefined;
|
|
149
149
|
}[] | undefined;
|
|
150
150
|
questions?: {
|
|
151
151
|
question: string;
|
|
@@ -169,8 +169,8 @@ export declare const HandoffSchema: z.ZodObject<{
|
|
|
169
169
|
decisions?: {
|
|
170
170
|
decision: string;
|
|
171
171
|
rationale: string;
|
|
172
|
-
tradeoffs?: string | undefined;
|
|
173
172
|
alternatives?: string[] | undefined;
|
|
173
|
+
tradeoffs?: string | undefined;
|
|
174
174
|
}[] | undefined;
|
|
175
175
|
questions?: {
|
|
176
176
|
question: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* AI Reviewer MCP Server
|
|
3
|
+
* AI Reviewer MCP Server
|
|
4
4
|
*
|
|
5
|
-
* Provides tools for getting second-opinion
|
|
5
|
+
* Provides tools for getting second-opinion reviews from external AI CLIs
|
|
6
6
|
* (Codex and Gemini) on Claude Code's work.
|
|
7
7
|
*
|
|
8
8
|
* Features:
|
|
9
|
-
* - Single model review (
|
|
10
|
-
* - Multi-model parallel review (
|
|
11
|
-
* - Council review with consensus (council_feedback) - NEW
|
|
9
|
+
* - Single model review (codex_review, gemini_review)
|
|
10
|
+
* - Multi-model parallel review (multi_review)
|
|
12
11
|
* - Structured JSON output with confidence scores
|
|
13
12
|
* - Expert role specialization per focus area
|
|
14
13
|
*/
|