@simonren/quorum 0.9.0 → 0.9.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.
@@ -9,7 +9,8 @@
9
9
  *
10
10
  * Differences from the old gemini-cli adapter:
11
11
  * - No `--output-format stream-json` → no live progress events
12
- * - No `--model` flag → model selection is done in agy's settings file
12
+ * - `--model` is optional → set `gemini.model` in the quorum config to
13
+ * override agy's own settings (`agy models` lists valid ids)
13
14
  * - `--include-directories` → `--add-dir`
14
15
  * - `--approval-mode plan` → folded into `--sandbox`
15
16
  */
@@ -9,7 +9,8 @@
9
9
  *
10
10
  * Differences from the old gemini-cli adapter:
11
11
  * - No `--output-format stream-json` → no live progress events
12
- * - No `--model` flag → model selection is done in agy's settings file
12
+ * - `--model` is optional → set `gemini.model` in the quorum config to
13
+ * override agy's own settings (`agy models` lists valid ids)
13
14
  * - `--include-directories` → `--add-dir`
14
15
  * - `--approval-mode plan` → folded into `--sandbox`
15
16
  */
@@ -91,6 +92,7 @@ export class GeminiAdapter {
91
92
  // stdin makes it print --help and exit 0. Sandbox keeps terminal-restricted
92
93
  // execution like the old gemini-cli's `--approval-mode plan`.
93
94
  const args = [
95
+ ...(cfg.model ? ['--model', cfg.model] : []),
94
96
  '--sandbox',
95
97
  '--add-dir', workingDir,
96
98
  '--print', prompt,
package/dist/config.d.ts CHANGED
@@ -86,6 +86,12 @@ export declare const ClaudeConfigSchema: z.ZodDefault<z.ZodObject<{
86
86
  maxBufferSize?: number | undefined;
87
87
  }>>;
88
88
  export declare const GeminiConfigSchema: z.ZodDefault<z.ZodObject<{
89
+ /**
90
+ * Passed through as `agy --model`. Optional: when unset the adapter omits
91
+ * the flag and agy picks the model from its own settings. Run `agy models`
92
+ * for valid ids (they encode the reasoning effort, e.g. `-high`).
93
+ */
94
+ model: z.ZodOptional<z.ZodString>;
89
95
  /**
90
96
  * `agy --print` emits nothing until it is done, so there is no activity to
91
97
  * reset this timer and no way to tell a working run from a wedged one —
@@ -100,7 +106,9 @@ export declare const GeminiConfigSchema: z.ZodDefault<z.ZodObject<{
100
106
  inactivityTimeoutMs: number;
101
107
  maxTimeoutMs: number;
102
108
  maxBufferSize: number;
109
+ model?: string | undefined;
103
110
  }, {
111
+ model?: string | undefined;
104
112
  inactivityTimeoutMs?: number | undefined;
105
113
  maxTimeoutMs?: number | undefined;
106
114
  maxBufferSize?: number | undefined;
@@ -179,6 +187,12 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
179
187
  maxBufferSize?: number | undefined;
180
188
  }>>;
181
189
  gemini: z.ZodDefault<z.ZodObject<{
190
+ /**
191
+ * Passed through as `agy --model`. Optional: when unset the adapter omits
192
+ * the flag and agy picks the model from its own settings. Run `agy models`
193
+ * for valid ids (they encode the reasoning effort, e.g. `-high`).
194
+ */
195
+ model: z.ZodOptional<z.ZodString>;
182
196
  /**
183
197
  * `agy --print` emits nothing until it is done, so there is no activity to
184
198
  * reset this timer and no way to tell a working run from a wedged one —
@@ -193,7 +207,9 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
193
207
  inactivityTimeoutMs: number;
194
208
  maxTimeoutMs: number;
195
209
  maxBufferSize: number;
210
+ model?: string | undefined;
196
211
  }, {
212
+ model?: string | undefined;
197
213
  inactivityTimeoutMs?: number | undefined;
198
214
  maxTimeoutMs?: number | undefined;
199
215
  maxBufferSize?: number | undefined;
@@ -222,6 +238,7 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
222
238
  inactivityTimeoutMs: number;
223
239
  maxTimeoutMs: number;
224
240
  maxBufferSize: number;
241
+ model?: string | undefined;
225
242
  };
226
243
  }, {
227
244
  codex?: {
@@ -244,6 +261,7 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
244
261
  maxBufferSize?: number | undefined;
245
262
  } | undefined;
246
263
  gemini?: {
264
+ model?: string | undefined;
247
265
  inactivityTimeoutMs?: number | undefined;
248
266
  maxTimeoutMs?: number | undefined;
249
267
  maxBufferSize?: number | undefined;
package/dist/config.js CHANGED
@@ -57,11 +57,14 @@ export const ClaudeConfigSchema = z
57
57
  maxBufferSize: z.number().int().positive().default(1_048_576),
58
58
  })
59
59
  .default({});
60
- // agy (Antigravity CLI) does not expose `--model`; model selection lives in
61
- // agy's own settings file. We keep the timeout/buffer knobs because CliExecutor
62
- // enforces them regardless of the underlying CLI.
63
60
  export const GeminiConfigSchema = z
64
61
  .object({
62
+ /**
63
+ * Passed through as `agy --model`. Optional: when unset the adapter omits
64
+ * the flag and agy picks the model from its own settings. Run `agy models`
65
+ * for valid ids (they encode the reasoning effort, e.g. `-high`).
66
+ */
67
+ model: z.string().optional(),
65
68
  /**
66
69
  * `agy --print` emits nothing until it is done, so there is no activity to
67
70
  * reset this timer and no way to tell a working run from a wedged one —
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonren/quorum",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "MCP server for Claude Code — a quorum of AI models (Codex, Gemini, Claude) for adversarial review and consultation, synthesized by Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",