@klitchevo/code-council 0.0.3 → 0.0.4

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 CHANGED
@@ -243,17 +243,11 @@ Show which AI models are currently configured for each review type.
243
243
  You can customize which AI models are used for reviews by setting environment variables in your MCP client configuration. Each review type can use different models.
244
244
 
245
245
  **Available Environment Variables:**
246
-
247
- **Model Configuration:**
248
246
  - `CODE_REVIEW_MODELS` - Models for general code reviews
249
247
  - `FRONTEND_REVIEW_MODELS` - Models for frontend reviews
250
248
  - `BACKEND_REVIEW_MODELS` - Models for backend reviews
251
249
  - `PLAN_REVIEW_MODELS` - Models for plan reviews
252
250
 
253
- **LLM Parameters:**
254
- - `TEMPERATURE` - Response temperature (0.0-2.0, default: 0.3)
255
- - `MAX_TOKENS` - Maximum response tokens (default: 16384)
256
-
257
251
  **Format:** Array of strings (JSON array)
258
252
 
259
253
  **Example:**
package/dist/index.js CHANGED
@@ -26,6 +26,18 @@ function parseModels(envVar, defaults) {
26
26
  const filtered = envVar.filter((m) => m && m.trim().length > 0);
27
27
  return filtered.length > 0 ? filtered : defaults;
28
28
  }
29
+ if (typeof envVar === "string") {
30
+ try {
31
+ const parsed = JSON.parse(envVar);
32
+ if (Array.isArray(parsed)) {
33
+ const filtered = parsed.filter(
34
+ (m) => typeof m === "string" && m.trim().length > 0
35
+ );
36
+ return filtered.length > 0 ? filtered : defaults;
37
+ }
38
+ } catch {
39
+ }
40
+ }
29
41
  throw new Error(
30
42
  `Model configuration must be an array of strings, got: ${typeof envVar}. Example: ["anthropic/claude-sonnet-4.5", "openai/gpt-4o"]`
31
43
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klitchevo/code-council",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Multi-model AI code review server using OpenRouter - get diverse perspectives from multiple LLMs in parallel",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",