cc-reviewer 1.2.0 → 1.2.1

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.
Files changed (2) hide show
  1. package/dist/schema.js +8 -0
  2. package/package.json +1 -1
package/dist/schema.js CHANGED
@@ -171,6 +171,7 @@ export const CouncilReviewOutput = z.object({
171
171
  export function getReviewOutputJsonSchema() {
172
172
  return {
173
173
  type: 'object',
174
+ additionalProperties: false,
174
175
  required: ['reviewer', 'findings', 'agreements', 'disagreements', 'alternatives', 'risk_assessment'],
175
176
  properties: {
176
177
  reviewer: { type: 'string' },
@@ -179,6 +180,7 @@ export function getReviewOutputJsonSchema() {
179
180
  type: 'array',
180
181
  items: {
181
182
  type: 'object',
183
+ additionalProperties: false,
182
184
  required: ['id', 'category', 'severity', 'confidence', 'title', 'description'],
183
185
  properties: {
184
186
  id: { type: 'string' },
@@ -194,6 +196,7 @@ export function getReviewOutputJsonSchema() {
194
196
  description: { type: 'string' },
195
197
  location: {
196
198
  type: 'object',
199
+ additionalProperties: false,
197
200
  required: ['file'], // file is required to match Zod schema
198
201
  properties: {
199
202
  file: { type: 'string', description: 'Relative file path from working directory' },
@@ -215,6 +218,7 @@ export function getReviewOutputJsonSchema() {
215
218
  type: 'array',
216
219
  items: {
217
220
  type: 'object',
221
+ additionalProperties: false,
218
222
  required: ['original_claim', 'assessment', 'confidence'],
219
223
  properties: {
220
224
  original_claim: { type: 'string' },
@@ -229,6 +233,7 @@ export function getReviewOutputJsonSchema() {
229
233
  type: 'array',
230
234
  items: {
231
235
  type: 'object',
236
+ additionalProperties: false,
232
237
  required: ['original_claim', 'issue', 'confidence', 'reason'],
233
238
  properties: {
234
239
  original_claim: { type: 'string' },
@@ -244,6 +249,7 @@ export function getReviewOutputJsonSchema() {
244
249
  type: 'array',
245
250
  items: {
246
251
  type: 'object',
252
+ additionalProperties: false,
247
253
  required: ['topic', 'current_approach', 'alternative', 'tradeoffs', 'recommendation'],
248
254
  properties: {
249
255
  topic: { type: 'string' },
@@ -251,6 +257,7 @@ export function getReviewOutputJsonSchema() {
251
257
  alternative: { type: 'string' },
252
258
  tradeoffs: {
253
259
  type: 'object',
260
+ additionalProperties: false,
254
261
  properties: {
255
262
  pros: { type: 'array', items: { type: 'string' } },
256
263
  cons: { type: 'array', items: { type: 'string' } }
@@ -262,6 +269,7 @@ export function getReviewOutputJsonSchema() {
262
269
  },
263
270
  risk_assessment: {
264
271
  type: 'object',
272
+ additionalProperties: false,
265
273
  required: ['overall_level', 'score', 'summary', 'top_concerns'],
266
274
  properties: {
267
275
  overall_level: { type: 'string', enum: ['critical', 'high', 'medium', 'low', 'minimal'] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-reviewer",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
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",