@aiagentflow/cli 0.3.0 → 0.4.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/dist/agents/base.d.ts +8 -1
- package/dist/agents/base.d.ts.map +1 -1
- package/dist/agents/base.js +46 -0
- package/dist/agents/base.js.map +1 -1
- package/dist/agents/types.d.ts +7 -0
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/types.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +1 -3
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +37 -41
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js +2 -0
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/utils/model-picker.d.ts +20 -0
- package/dist/cli/utils/model-picker.d.ts.map +1 -0
- package/dist/cli/utils/model-picker.js +93 -0
- package/dist/cli/utils/model-picker.js.map +1 -0
- package/dist/cli/utils/stream-renderer.d.ts +21 -0
- package/dist/cli/utils/stream-renderer.d.ts.map +1 -0
- package/dist/cli/utils/stream-renderer.js +57 -0
- package/dist/cli/utils/stream-renderer.js.map +1 -0
- package/dist/core/config/schema.d.ts +132 -75
- package/dist/core/config/schema.d.ts.map +1 -1
- package/dist/core/config/schema.js +9 -1
- package/dist/core/config/schema.js.map +1 -1
- package/dist/core/workflow/runner.d.ts +2 -0
- package/dist/core/workflow/runner.d.ts.map +1 -1
- package/dist/core/workflow/runner.js +15 -4
- package/dist/core/workflow/runner.js.map +1 -1
- package/dist/providers/gemini.d.ts +58 -0
- package/dist/providers/gemini.d.ts.map +1 -0
- package/dist/providers/gemini.js +254 -0
- package/dist/providers/gemini.js.map +1 -0
- package/dist/providers/metadata.d.ts +18 -0
- package/dist/providers/metadata.d.ts.map +1 -0
- package/dist/providers/metadata.js +32 -0
- package/dist/providers/metadata.js.map +1 -0
- package/dist/providers/registry.d.ts.map +1 -1
- package/dist/providers/registry.js +9 -1
- package/dist/providers/registry.js.map +1 -1
- package/dist/providers/types.d.ts +1 -1
- package/dist/providers/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import { z } from 'zod';
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const agentRoleConfigSchema: z.ZodObject<{
|
|
15
15
|
/** Which provider to use for this agent role. */
|
|
16
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
16
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
17
17
|
/** The model identifier to use. */
|
|
18
18
|
model: z.ZodString;
|
|
19
19
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -22,12 +22,12 @@ export declare const agentRoleConfigSchema: z.ZodObject<{
|
|
|
22
22
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
model: string;
|
|
25
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
25
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
26
26
|
temperature: number;
|
|
27
27
|
maxTokens: number;
|
|
28
28
|
}, {
|
|
29
29
|
model: string;
|
|
30
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
30
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
31
31
|
temperature?: number | undefined;
|
|
32
32
|
maxTokens?: number | undefined;
|
|
33
33
|
}>;
|
|
@@ -37,7 +37,7 @@ export declare const agentRoleConfigSchema: z.ZodObject<{
|
|
|
37
37
|
export declare const agentConfigSchema: z.ZodObject<{
|
|
38
38
|
architect: z.ZodObject<{
|
|
39
39
|
/** Which provider to use for this agent role. */
|
|
40
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
40
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
41
41
|
/** The model identifier to use. */
|
|
42
42
|
model: z.ZodString;
|
|
43
43
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -46,18 +46,18 @@ export declare const agentConfigSchema: z.ZodObject<{
|
|
|
46
46
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
model: string;
|
|
49
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
49
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
50
50
|
temperature: number;
|
|
51
51
|
maxTokens: number;
|
|
52
52
|
}, {
|
|
53
53
|
model: string;
|
|
54
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
54
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
55
55
|
temperature?: number | undefined;
|
|
56
56
|
maxTokens?: number | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
coder: z.ZodObject<{
|
|
59
59
|
/** Which provider to use for this agent role. */
|
|
60
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
60
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
61
61
|
/** The model identifier to use. */
|
|
62
62
|
model: z.ZodString;
|
|
63
63
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -66,18 +66,18 @@ export declare const agentConfigSchema: z.ZodObject<{
|
|
|
66
66
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
68
|
model: string;
|
|
69
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
69
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
70
70
|
temperature: number;
|
|
71
71
|
maxTokens: number;
|
|
72
72
|
}, {
|
|
73
73
|
model: string;
|
|
74
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
74
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
75
75
|
temperature?: number | undefined;
|
|
76
76
|
maxTokens?: number | undefined;
|
|
77
77
|
}>;
|
|
78
78
|
reviewer: z.ZodObject<{
|
|
79
79
|
/** Which provider to use for this agent role. */
|
|
80
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
80
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
81
81
|
/** The model identifier to use. */
|
|
82
82
|
model: z.ZodString;
|
|
83
83
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -86,18 +86,18 @@ export declare const agentConfigSchema: z.ZodObject<{
|
|
|
86
86
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
88
|
model: string;
|
|
89
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
89
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
90
90
|
temperature: number;
|
|
91
91
|
maxTokens: number;
|
|
92
92
|
}, {
|
|
93
93
|
model: string;
|
|
94
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
94
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
95
95
|
temperature?: number | undefined;
|
|
96
96
|
maxTokens?: number | undefined;
|
|
97
97
|
}>;
|
|
98
98
|
tester: z.ZodObject<{
|
|
99
99
|
/** Which provider to use for this agent role. */
|
|
100
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
100
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
101
101
|
/** The model identifier to use. */
|
|
102
102
|
model: z.ZodString;
|
|
103
103
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -106,18 +106,18 @@ export declare const agentConfigSchema: z.ZodObject<{
|
|
|
106
106
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
108
|
model: string;
|
|
109
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
109
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
110
110
|
temperature: number;
|
|
111
111
|
maxTokens: number;
|
|
112
112
|
}, {
|
|
113
113
|
model: string;
|
|
114
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
114
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
115
115
|
temperature?: number | undefined;
|
|
116
116
|
maxTokens?: number | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
fixer: z.ZodObject<{
|
|
119
119
|
/** Which provider to use for this agent role. */
|
|
120
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
120
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
121
121
|
/** The model identifier to use. */
|
|
122
122
|
model: z.ZodString;
|
|
123
123
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -126,18 +126,18 @@ export declare const agentConfigSchema: z.ZodObject<{
|
|
|
126
126
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
128
|
model: string;
|
|
129
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
129
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
130
130
|
temperature: number;
|
|
131
131
|
maxTokens: number;
|
|
132
132
|
}, {
|
|
133
133
|
model: string;
|
|
134
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
134
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
135
135
|
temperature?: number | undefined;
|
|
136
136
|
maxTokens?: number | undefined;
|
|
137
137
|
}>;
|
|
138
138
|
judge: z.ZodObject<{
|
|
139
139
|
/** Which provider to use for this agent role. */
|
|
140
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
140
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
141
141
|
/** The model identifier to use. */
|
|
142
142
|
model: z.ZodString;
|
|
143
143
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -146,86 +146,86 @@ export declare const agentConfigSchema: z.ZodObject<{
|
|
|
146
146
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
148
|
model: string;
|
|
149
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
149
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
150
150
|
temperature: number;
|
|
151
151
|
maxTokens: number;
|
|
152
152
|
}, {
|
|
153
153
|
model: string;
|
|
154
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
154
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
155
155
|
temperature?: number | undefined;
|
|
156
156
|
maxTokens?: number | undefined;
|
|
157
157
|
}>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
159
|
architect: {
|
|
160
160
|
model: string;
|
|
161
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
161
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
162
162
|
temperature: number;
|
|
163
163
|
maxTokens: number;
|
|
164
164
|
};
|
|
165
165
|
coder: {
|
|
166
166
|
model: string;
|
|
167
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
167
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
168
168
|
temperature: number;
|
|
169
169
|
maxTokens: number;
|
|
170
170
|
};
|
|
171
171
|
reviewer: {
|
|
172
172
|
model: string;
|
|
173
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
173
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
174
174
|
temperature: number;
|
|
175
175
|
maxTokens: number;
|
|
176
176
|
};
|
|
177
177
|
tester: {
|
|
178
178
|
model: string;
|
|
179
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
179
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
180
180
|
temperature: number;
|
|
181
181
|
maxTokens: number;
|
|
182
182
|
};
|
|
183
183
|
fixer: {
|
|
184
184
|
model: string;
|
|
185
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
185
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
186
186
|
temperature: number;
|
|
187
187
|
maxTokens: number;
|
|
188
188
|
};
|
|
189
189
|
judge: {
|
|
190
190
|
model: string;
|
|
191
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
191
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
192
192
|
temperature: number;
|
|
193
193
|
maxTokens: number;
|
|
194
194
|
};
|
|
195
195
|
}, {
|
|
196
196
|
architect: {
|
|
197
197
|
model: string;
|
|
198
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
198
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
199
199
|
temperature?: number | undefined;
|
|
200
200
|
maxTokens?: number | undefined;
|
|
201
201
|
};
|
|
202
202
|
coder: {
|
|
203
203
|
model: string;
|
|
204
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
204
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
205
205
|
temperature?: number | undefined;
|
|
206
206
|
maxTokens?: number | undefined;
|
|
207
207
|
};
|
|
208
208
|
reviewer: {
|
|
209
209
|
model: string;
|
|
210
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
210
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
211
211
|
temperature?: number | undefined;
|
|
212
212
|
maxTokens?: number | undefined;
|
|
213
213
|
};
|
|
214
214
|
tester: {
|
|
215
215
|
model: string;
|
|
216
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
216
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
217
217
|
temperature?: number | undefined;
|
|
218
218
|
maxTokens?: number | undefined;
|
|
219
219
|
};
|
|
220
220
|
fixer: {
|
|
221
221
|
model: string;
|
|
222
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
222
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
223
223
|
temperature?: number | undefined;
|
|
224
224
|
maxTokens?: number | undefined;
|
|
225
225
|
};
|
|
226
226
|
judge: {
|
|
227
227
|
model: string;
|
|
228
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
228
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
229
229
|
temperature?: number | undefined;
|
|
230
230
|
maxTokens?: number | undefined;
|
|
231
231
|
};
|
|
@@ -256,6 +256,19 @@ export declare const ollamaProviderSchema: z.ZodObject<{
|
|
|
256
256
|
}, {
|
|
257
257
|
baseUrl?: string | undefined;
|
|
258
258
|
}>;
|
|
259
|
+
/**
|
|
260
|
+
* Schema for Google Gemini provider settings.
|
|
261
|
+
*/
|
|
262
|
+
export declare const geminiProviderSchema: z.ZodObject<{
|
|
263
|
+
apiKey: z.ZodString;
|
|
264
|
+
baseUrl: z.ZodDefault<z.ZodString>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
apiKey: string;
|
|
267
|
+
baseUrl: string;
|
|
268
|
+
}, {
|
|
269
|
+
apiKey: string;
|
|
270
|
+
baseUrl?: string | undefined;
|
|
271
|
+
}>;
|
|
259
272
|
/**
|
|
260
273
|
* Schema for OpenAI provider settings.
|
|
261
274
|
*/
|
|
@@ -289,6 +302,16 @@ export declare const providerConfigSchema: z.ZodObject<{
|
|
|
289
302
|
baseUrl?: string | undefined;
|
|
290
303
|
apiVersion?: string | undefined;
|
|
291
304
|
}>>;
|
|
305
|
+
gemini: z.ZodOptional<z.ZodObject<{
|
|
306
|
+
apiKey: z.ZodString;
|
|
307
|
+
baseUrl: z.ZodDefault<z.ZodString>;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
apiKey: string;
|
|
310
|
+
baseUrl: string;
|
|
311
|
+
}, {
|
|
312
|
+
apiKey: string;
|
|
313
|
+
baseUrl?: string | undefined;
|
|
314
|
+
}>>;
|
|
292
315
|
ollama: z.ZodOptional<z.ZodObject<{
|
|
293
316
|
baseUrl: z.ZodDefault<z.ZodString>;
|
|
294
317
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -315,6 +338,10 @@ export declare const providerConfigSchema: z.ZodObject<{
|
|
|
315
338
|
baseUrl: string;
|
|
316
339
|
apiVersion: string;
|
|
317
340
|
} | undefined;
|
|
341
|
+
gemini?: {
|
|
342
|
+
apiKey: string;
|
|
343
|
+
baseUrl: string;
|
|
344
|
+
} | undefined;
|
|
318
345
|
ollama?: {
|
|
319
346
|
baseUrl: string;
|
|
320
347
|
} | undefined;
|
|
@@ -329,6 +356,10 @@ export declare const providerConfigSchema: z.ZodObject<{
|
|
|
329
356
|
baseUrl?: string | undefined;
|
|
330
357
|
apiVersion?: string | undefined;
|
|
331
358
|
} | undefined;
|
|
359
|
+
gemini?: {
|
|
360
|
+
apiKey: string;
|
|
361
|
+
baseUrl?: string | undefined;
|
|
362
|
+
} | undefined;
|
|
332
363
|
ollama?: {
|
|
333
364
|
baseUrl?: string | undefined;
|
|
334
365
|
} | undefined;
|
|
@@ -414,6 +445,16 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
414
445
|
baseUrl?: string | undefined;
|
|
415
446
|
apiVersion?: string | undefined;
|
|
416
447
|
}>>;
|
|
448
|
+
gemini: z.ZodOptional<z.ZodObject<{
|
|
449
|
+
apiKey: z.ZodString;
|
|
450
|
+
baseUrl: z.ZodDefault<z.ZodString>;
|
|
451
|
+
}, "strip", z.ZodTypeAny, {
|
|
452
|
+
apiKey: string;
|
|
453
|
+
baseUrl: string;
|
|
454
|
+
}, {
|
|
455
|
+
apiKey: string;
|
|
456
|
+
baseUrl?: string | undefined;
|
|
457
|
+
}>>;
|
|
417
458
|
ollama: z.ZodOptional<z.ZodObject<{
|
|
418
459
|
baseUrl: z.ZodDefault<z.ZodString>;
|
|
419
460
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -440,6 +481,10 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
440
481
|
baseUrl: string;
|
|
441
482
|
apiVersion: string;
|
|
442
483
|
} | undefined;
|
|
484
|
+
gemini?: {
|
|
485
|
+
apiKey: string;
|
|
486
|
+
baseUrl: string;
|
|
487
|
+
} | undefined;
|
|
443
488
|
ollama?: {
|
|
444
489
|
baseUrl: string;
|
|
445
490
|
} | undefined;
|
|
@@ -454,6 +499,10 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
454
499
|
baseUrl?: string | undefined;
|
|
455
500
|
apiVersion?: string | undefined;
|
|
456
501
|
} | undefined;
|
|
502
|
+
gemini?: {
|
|
503
|
+
apiKey: string;
|
|
504
|
+
baseUrl?: string | undefined;
|
|
505
|
+
} | undefined;
|
|
457
506
|
ollama?: {
|
|
458
507
|
baseUrl?: string | undefined;
|
|
459
508
|
} | undefined;
|
|
@@ -467,7 +516,7 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
467
516
|
agents: z.ZodObject<{
|
|
468
517
|
architect: z.ZodObject<{
|
|
469
518
|
/** Which provider to use for this agent role. */
|
|
470
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
519
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
471
520
|
/** The model identifier to use. */
|
|
472
521
|
model: z.ZodString;
|
|
473
522
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -476,18 +525,18 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
476
525
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
477
526
|
}, "strip", z.ZodTypeAny, {
|
|
478
527
|
model: string;
|
|
479
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
528
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
480
529
|
temperature: number;
|
|
481
530
|
maxTokens: number;
|
|
482
531
|
}, {
|
|
483
532
|
model: string;
|
|
484
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
533
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
485
534
|
temperature?: number | undefined;
|
|
486
535
|
maxTokens?: number | undefined;
|
|
487
536
|
}>;
|
|
488
537
|
coder: z.ZodObject<{
|
|
489
538
|
/** Which provider to use for this agent role. */
|
|
490
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
539
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
491
540
|
/** The model identifier to use. */
|
|
492
541
|
model: z.ZodString;
|
|
493
542
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -496,18 +545,18 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
496
545
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
497
546
|
}, "strip", z.ZodTypeAny, {
|
|
498
547
|
model: string;
|
|
499
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
548
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
500
549
|
temperature: number;
|
|
501
550
|
maxTokens: number;
|
|
502
551
|
}, {
|
|
503
552
|
model: string;
|
|
504
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
553
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
505
554
|
temperature?: number | undefined;
|
|
506
555
|
maxTokens?: number | undefined;
|
|
507
556
|
}>;
|
|
508
557
|
reviewer: z.ZodObject<{
|
|
509
558
|
/** Which provider to use for this agent role. */
|
|
510
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
559
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
511
560
|
/** The model identifier to use. */
|
|
512
561
|
model: z.ZodString;
|
|
513
562
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -516,18 +565,18 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
516
565
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
517
566
|
}, "strip", z.ZodTypeAny, {
|
|
518
567
|
model: string;
|
|
519
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
568
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
520
569
|
temperature: number;
|
|
521
570
|
maxTokens: number;
|
|
522
571
|
}, {
|
|
523
572
|
model: string;
|
|
524
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
573
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
525
574
|
temperature?: number | undefined;
|
|
526
575
|
maxTokens?: number | undefined;
|
|
527
576
|
}>;
|
|
528
577
|
tester: z.ZodObject<{
|
|
529
578
|
/** Which provider to use for this agent role. */
|
|
530
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
579
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
531
580
|
/** The model identifier to use. */
|
|
532
581
|
model: z.ZodString;
|
|
533
582
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -536,18 +585,18 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
536
585
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
537
586
|
}, "strip", z.ZodTypeAny, {
|
|
538
587
|
model: string;
|
|
539
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
588
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
540
589
|
temperature: number;
|
|
541
590
|
maxTokens: number;
|
|
542
591
|
}, {
|
|
543
592
|
model: string;
|
|
544
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
593
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
545
594
|
temperature?: number | undefined;
|
|
546
595
|
maxTokens?: number | undefined;
|
|
547
596
|
}>;
|
|
548
597
|
fixer: z.ZodObject<{
|
|
549
598
|
/** Which provider to use for this agent role. */
|
|
550
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
599
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
551
600
|
/** The model identifier to use. */
|
|
552
601
|
model: z.ZodString;
|
|
553
602
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -556,18 +605,18 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
556
605
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
557
606
|
}, "strip", z.ZodTypeAny, {
|
|
558
607
|
model: string;
|
|
559
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
608
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
560
609
|
temperature: number;
|
|
561
610
|
maxTokens: number;
|
|
562
611
|
}, {
|
|
563
612
|
model: string;
|
|
564
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
613
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
565
614
|
temperature?: number | undefined;
|
|
566
615
|
maxTokens?: number | undefined;
|
|
567
616
|
}>;
|
|
568
617
|
judge: z.ZodObject<{
|
|
569
618
|
/** Which provider to use for this agent role. */
|
|
570
|
-
provider: z.ZodEnum<["anthropic", "ollama", "openai"]>;
|
|
619
|
+
provider: z.ZodEnum<["anthropic", "gemini", "ollama", "openai"]>;
|
|
571
620
|
/** The model identifier to use. */
|
|
572
621
|
model: z.ZodString;
|
|
573
622
|
/** Sampling temperature (0.0 = deterministic, higher = more creative). */
|
|
@@ -576,86 +625,86 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
576
625
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
577
626
|
}, "strip", z.ZodTypeAny, {
|
|
578
627
|
model: string;
|
|
579
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
628
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
580
629
|
temperature: number;
|
|
581
630
|
maxTokens: number;
|
|
582
631
|
}, {
|
|
583
632
|
model: string;
|
|
584
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
633
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
585
634
|
temperature?: number | undefined;
|
|
586
635
|
maxTokens?: number | undefined;
|
|
587
636
|
}>;
|
|
588
637
|
}, "strip", z.ZodTypeAny, {
|
|
589
638
|
architect: {
|
|
590
639
|
model: string;
|
|
591
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
640
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
592
641
|
temperature: number;
|
|
593
642
|
maxTokens: number;
|
|
594
643
|
};
|
|
595
644
|
coder: {
|
|
596
645
|
model: string;
|
|
597
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
646
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
598
647
|
temperature: number;
|
|
599
648
|
maxTokens: number;
|
|
600
649
|
};
|
|
601
650
|
reviewer: {
|
|
602
651
|
model: string;
|
|
603
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
652
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
604
653
|
temperature: number;
|
|
605
654
|
maxTokens: number;
|
|
606
655
|
};
|
|
607
656
|
tester: {
|
|
608
657
|
model: string;
|
|
609
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
658
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
610
659
|
temperature: number;
|
|
611
660
|
maxTokens: number;
|
|
612
661
|
};
|
|
613
662
|
fixer: {
|
|
614
663
|
model: string;
|
|
615
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
664
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
616
665
|
temperature: number;
|
|
617
666
|
maxTokens: number;
|
|
618
667
|
};
|
|
619
668
|
judge: {
|
|
620
669
|
model: string;
|
|
621
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
670
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
622
671
|
temperature: number;
|
|
623
672
|
maxTokens: number;
|
|
624
673
|
};
|
|
625
674
|
}, {
|
|
626
675
|
architect: {
|
|
627
676
|
model: string;
|
|
628
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
677
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
629
678
|
temperature?: number | undefined;
|
|
630
679
|
maxTokens?: number | undefined;
|
|
631
680
|
};
|
|
632
681
|
coder: {
|
|
633
682
|
model: string;
|
|
634
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
683
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
635
684
|
temperature?: number | undefined;
|
|
636
685
|
maxTokens?: number | undefined;
|
|
637
686
|
};
|
|
638
687
|
reviewer: {
|
|
639
688
|
model: string;
|
|
640
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
689
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
641
690
|
temperature?: number | undefined;
|
|
642
691
|
maxTokens?: number | undefined;
|
|
643
692
|
};
|
|
644
693
|
tester: {
|
|
645
694
|
model: string;
|
|
646
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
695
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
647
696
|
temperature?: number | undefined;
|
|
648
697
|
maxTokens?: number | undefined;
|
|
649
698
|
};
|
|
650
699
|
fixer: {
|
|
651
700
|
model: string;
|
|
652
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
701
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
653
702
|
temperature?: number | undefined;
|
|
654
703
|
maxTokens?: number | undefined;
|
|
655
704
|
};
|
|
656
705
|
judge: {
|
|
657
706
|
model: string;
|
|
658
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
707
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
659
708
|
temperature?: number | undefined;
|
|
660
709
|
maxTokens?: number | undefined;
|
|
661
710
|
};
|
|
@@ -718,6 +767,10 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
718
767
|
baseUrl: string;
|
|
719
768
|
apiVersion: string;
|
|
720
769
|
} | undefined;
|
|
770
|
+
gemini?: {
|
|
771
|
+
apiKey: string;
|
|
772
|
+
baseUrl: string;
|
|
773
|
+
} | undefined;
|
|
721
774
|
ollama?: {
|
|
722
775
|
baseUrl: string;
|
|
723
776
|
} | undefined;
|
|
@@ -730,37 +783,37 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
730
783
|
agents: {
|
|
731
784
|
architect: {
|
|
732
785
|
model: string;
|
|
733
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
786
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
734
787
|
temperature: number;
|
|
735
788
|
maxTokens: number;
|
|
736
789
|
};
|
|
737
790
|
coder: {
|
|
738
791
|
model: string;
|
|
739
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
792
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
740
793
|
temperature: number;
|
|
741
794
|
maxTokens: number;
|
|
742
795
|
};
|
|
743
796
|
reviewer: {
|
|
744
797
|
model: string;
|
|
745
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
798
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
746
799
|
temperature: number;
|
|
747
800
|
maxTokens: number;
|
|
748
801
|
};
|
|
749
802
|
tester: {
|
|
750
803
|
model: string;
|
|
751
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
804
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
752
805
|
temperature: number;
|
|
753
806
|
maxTokens: number;
|
|
754
807
|
};
|
|
755
808
|
fixer: {
|
|
756
809
|
model: string;
|
|
757
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
810
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
758
811
|
temperature: number;
|
|
759
812
|
maxTokens: number;
|
|
760
813
|
};
|
|
761
814
|
judge: {
|
|
762
815
|
model: string;
|
|
763
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
816
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
764
817
|
temperature: number;
|
|
765
818
|
maxTokens: number;
|
|
766
819
|
};
|
|
@@ -786,6 +839,10 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
786
839
|
baseUrl?: string | undefined;
|
|
787
840
|
apiVersion?: string | undefined;
|
|
788
841
|
} | undefined;
|
|
842
|
+
gemini?: {
|
|
843
|
+
apiKey: string;
|
|
844
|
+
baseUrl?: string | undefined;
|
|
845
|
+
} | undefined;
|
|
789
846
|
ollama?: {
|
|
790
847
|
baseUrl?: string | undefined;
|
|
791
848
|
} | undefined;
|
|
@@ -798,37 +855,37 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
798
855
|
agents: {
|
|
799
856
|
architect: {
|
|
800
857
|
model: string;
|
|
801
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
858
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
802
859
|
temperature?: number | undefined;
|
|
803
860
|
maxTokens?: number | undefined;
|
|
804
861
|
};
|
|
805
862
|
coder: {
|
|
806
863
|
model: string;
|
|
807
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
864
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
808
865
|
temperature?: number | undefined;
|
|
809
866
|
maxTokens?: number | undefined;
|
|
810
867
|
};
|
|
811
868
|
reviewer: {
|
|
812
869
|
model: string;
|
|
813
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
870
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
814
871
|
temperature?: number | undefined;
|
|
815
872
|
maxTokens?: number | undefined;
|
|
816
873
|
};
|
|
817
874
|
tester: {
|
|
818
875
|
model: string;
|
|
819
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
876
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
820
877
|
temperature?: number | undefined;
|
|
821
878
|
maxTokens?: number | undefined;
|
|
822
879
|
};
|
|
823
880
|
fixer: {
|
|
824
881
|
model: string;
|
|
825
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
882
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
826
883
|
temperature?: number | undefined;
|
|
827
884
|
maxTokens?: number | undefined;
|
|
828
885
|
};
|
|
829
886
|
judge: {
|
|
830
887
|
model: string;
|
|
831
|
-
provider: "anthropic" | "ollama" | "openai";
|
|
888
|
+
provider: "anthropic" | "gemini" | "ollama" | "openai";
|
|
832
889
|
temperature?: number | undefined;
|
|
833
890
|
maxTokens?: number | undefined;
|
|
834
891
|
};
|