@simonren/quorum 0.12.1 → 0.12.2

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
@@ -95,7 +95,7 @@ You have a question → /multi-consult → question + criteria → Codex, Gemi
95
95
  {
96
96
  "codex": {
97
97
  "enabled": true,
98
- "model": "gpt-5.5",
98
+ "model": "gpt-6.1-sol",
99
99
  "reasoningEffort": "high",
100
100
  "serviceTier": "fast",
101
101
  "consultReasoningEffort": "xhigh",
package/dist/config.d.ts CHANGED
@@ -8,8 +8,8 @@
8
8
  * cached config or re-reads when the file changed on disk.
9
9
  * - Missing file → defaults in memory (no write). `initConfig()` (server
10
10
  * start-up) creates the file with defaults on first launch.
11
- * - Invalid JSON → defaults, warn on stderr. A schema violation in one
12
- * adapter's section resets only that section; the others survive.
11
+ * - Invalid JSON → defaults, warn on stderr. A schema violation resets only
12
+ * the offending fields; the rest of that section and the others survive.
13
13
  * - Partial user configs are deep-merged against defaults via Zod `.default()`.
14
14
  * - Tool-call arguments override config (e.g. `reasoningEffort` on a single
15
15
  * `multi_review` call). Config only sets defaults.
package/dist/config.js CHANGED
@@ -8,8 +8,8 @@
8
8
  * cached config or re-reads when the file changed on disk.
9
9
  * - Missing file → defaults in memory (no write). `initConfig()` (server
10
10
  * start-up) creates the file with defaults on first launch.
11
- * - Invalid JSON → defaults, warn on stderr. A schema violation in one
12
- * adapter's section resets only that section; the others survive.
11
+ * - Invalid JSON → defaults, warn on stderr. A schema violation resets only
12
+ * the offending fields; the rest of that section and the others survive.
13
13
  * - Partial user configs are deep-merged against defaults via Zod `.default()`.
14
14
  * - Tool-call arguments override config (e.g. `reasoningEffort` on a single
15
15
  * `multi_review` call). Config only sets defaults.
@@ -26,7 +26,7 @@ export const CodexConfigSchema = z
26
26
  .object({
27
27
  /** Set to false to leave Codex out of the panel even when installed. */
28
28
  enabled: z.boolean().default(true),
29
- model: z.string().default('gpt-5.5'),
29
+ model: z.string().default('gpt-6.1-sol'),
30
30
  reasoningEffort: z.enum(REASONING_EFFORTS).default('high'),
31
31
  serviceTier: z.enum(SERVICE_TIERS).default('fast'),
32
32
  /** Consult-specific defaults — consult questions are deeper than reviews,
@@ -182,8 +182,8 @@ export function setConfigPathForTesting(path) {
182
182
  // INTERNAL
183
183
  // =============================================================================
184
184
  /**
185
- * Parse each adapter's config independently so a typo in one section only
186
- * resets that adapter to defaults — the other adapters' settings survive.
185
+ * Parse each adapter's config independently, and on a schema violation reset
186
+ * only the offending fields — every valid setting survives.
187
187
  */
188
188
  function loadConfigFromDisk(path) {
189
189
  if (!existsSync(path))
@@ -209,14 +209,20 @@ function loadConfigFromDisk(path) {
209
209
  const result = {};
210
210
  for (const { key, schema } of adapters) {
211
211
  const section = raw[key];
212
- try {
213
- result[key] = schema.parse(section);
214
- }
215
- catch (error) {
216
- const msg = error instanceof Error ? error.message : String(error);
217
- console.error(`[quorum] Invalid "${key}" config — using ${key} defaults. Error: ${msg}`);
218
- result[key] = schema.parse(undefined);
212
+ const parsed = schema.safeParse(section);
213
+ if (parsed.success) {
214
+ result[key] = parsed.data;
215
+ continue;
219
216
  }
217
+ // Drop only the offending fields: a bad effort level must not also
218
+ // discard a valid `model` and silently run the default one.
219
+ const bad = new Set(parsed.error.issues.map((issue) => issue.path[0]));
220
+ const kept = typeof section === 'object' && section !== null && !Array.isArray(section)
221
+ ? Object.fromEntries(Object.entries(section).filter(([field]) => !bad.has(field)))
222
+ : undefined;
223
+ const dropped = kept ? [...bad].join(', ') : `the whole "${key}" section`;
224
+ console.error(`[quorum] Invalid "${key}" config — using defaults for ${dropped}. Error: ${parsed.error.message}`);
225
+ result[key] = schema.parse(kept);
220
226
  }
221
227
  return result;
222
228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonren/quorum",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "MCP server for Claude Code — a quorum of AI models (Codex, Gemini, Claude Fable with fresh context) for standard + adversarial review and consultation, synthesized by Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",