@getpaseo/protocol 0.1.97-beta.2 → 0.1.97

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.
@@ -50,8 +50,8 @@ export const PaseoConfigRawSchema = z
50
50
  })
51
51
  .passthrough();
52
52
  export const WorktreeConfigSchema = PaseoWorktreeConfigRawSchema.extend({
53
- setup: z.unknown().transform(normalizeLifecycleCommands),
54
- teardown: z.unknown().transform(normalizeLifecycleCommands),
53
+ setup: z.unknown().optional().transform(normalizeLifecycleCommands),
54
+ teardown: z.unknown().optional().transform(normalizeLifecycleCommands),
55
55
  })
56
56
  .passthrough()
57
57
  .catch({ setup: [], teardown: [] });
@@ -1,83 +1,27 @@
1
1
  import { z } from "zod";
2
2
  import type { AgentProvider } from "./agent-types.js";
3
- export declare const ProviderCommandSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
3
+ export declare const ProviderCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
4
  mode: z.ZodLiteral<"default">;
5
- }, "strip", z.ZodTypeAny, {
6
- mode: "default";
7
- }, {
8
- mode: "default";
9
- }>, z.ZodObject<{
5
+ }, z.core.$strip>, z.ZodObject<{
10
6
  mode: z.ZodLiteral<"append">;
11
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
- }, "strip", z.ZodTypeAny, {
13
- mode: "append";
14
- args?: string[] | undefined;
15
- }, {
16
- mode: "append";
17
- args?: string[] | undefined;
18
- }>, z.ZodObject<{
7
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ }, z.core.$strip>, z.ZodObject<{
19
9
  mode: z.ZodLiteral<"replace">;
20
- argv: z.ZodArray<z.ZodString, "many">;
21
- }, "strip", z.ZodTypeAny, {
22
- mode: "replace";
23
- argv: string[];
24
- }, {
25
- mode: "replace";
26
- argv: string[];
27
- }>]>;
10
+ argv: z.ZodArray<z.ZodString>;
11
+ }, z.core.$strip>], "mode">;
28
12
  export declare const ProviderRuntimeSettingsSchema: z.ZodObject<{
29
- command: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
13
+ command: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
30
14
  mode: z.ZodLiteral<"default">;
31
- }, "strip", z.ZodTypeAny, {
32
- mode: "default";
33
- }, {
34
- mode: "default";
35
- }>, z.ZodObject<{
15
+ }, z.core.$strip>, z.ZodObject<{
36
16
  mode: z.ZodLiteral<"append">;
37
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
38
- }, "strip", z.ZodTypeAny, {
39
- mode: "append";
40
- args?: string[] | undefined;
41
- }, {
42
- mode: "append";
43
- args?: string[] | undefined;
44
- }>, z.ZodObject<{
17
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ }, z.core.$strip>, z.ZodObject<{
45
19
  mode: z.ZodLiteral<"replace">;
46
- argv: z.ZodArray<z.ZodString, "many">;
47
- }, "strip", z.ZodTypeAny, {
48
- mode: "replace";
49
- argv: string[];
50
- }, {
51
- mode: "replace";
52
- argv: string[];
53
- }>]>>;
20
+ argv: z.ZodArray<z.ZodString>;
21
+ }, z.core.$strip>], "mode">>;
54
22
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
55
- disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
- }, "strip", z.ZodTypeAny, {
57
- command?: {
58
- mode: "default";
59
- } | {
60
- mode: "append";
61
- args?: string[] | undefined;
62
- } | {
63
- mode: "replace";
64
- argv: string[];
65
- } | undefined;
66
- env?: Record<string, string> | undefined;
67
- disallowedTools?: string[] | undefined;
68
- }, {
69
- command?: {
70
- mode: "default";
71
- } | {
72
- mode: "append";
73
- args?: string[] | undefined;
74
- } | {
75
- mode: "replace";
76
- argv: string[];
77
- } | undefined;
78
- env?: Record<string, string> | undefined;
79
- disallowedTools?: string[] | undefined;
80
- }>;
23
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
+ }, z.core.$strip>;
81
25
  export declare const ProviderProfileModelSchema: z.ZodObject<{
82
26
  id: z.ZodString;
83
27
  label: z.ZodString;
@@ -88,45 +32,13 @@ export declare const ProviderProfileModelSchema: z.ZodObject<{
88
32
  label: z.ZodString;
89
33
  description: z.ZodOptional<z.ZodString>;
90
34
  isDefault: z.ZodOptional<z.ZodBoolean>;
91
- }, "strip", z.ZodTypeAny, {
92
- id: string;
93
- label: string;
94
- description?: string | undefined;
95
- isDefault?: boolean | undefined;
96
- }, {
97
- id: string;
98
- label: string;
99
- description?: string | undefined;
100
- isDefault?: boolean | undefined;
101
- }>, "many">>;
102
- }, "strip", z.ZodTypeAny, {
103
- id: string;
104
- label: string;
105
- description?: string | undefined;
106
- isDefault?: boolean | undefined;
107
- thinkingOptions?: {
108
- id: string;
109
- label: string;
110
- description?: string | undefined;
111
- isDefault?: boolean | undefined;
112
- }[] | undefined;
113
- }, {
114
- id: string;
115
- label: string;
116
- description?: string | undefined;
117
- isDefault?: boolean | undefined;
118
- thinkingOptions?: {
119
- id: string;
120
- label: string;
121
- description?: string | undefined;
122
- isDefault?: boolean | undefined;
123
- }[] | undefined;
124
- }>;
35
+ }, z.core.$strip>>>;
36
+ }, z.core.$strip>;
125
37
  export declare const ProviderOverrideSchema: z.ZodObject<{
126
38
  extends: z.ZodOptional<z.ZodString>;
127
39
  label: z.ZodOptional<z.ZodString>;
128
40
  description: z.ZodOptional<z.ZodString>;
129
- command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
41
+ command: z.ZodOptional<z.ZodArray<z.ZodString>>;
130
42
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
131
43
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
132
44
  models: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -139,40 +51,8 @@ export declare const ProviderOverrideSchema: z.ZodObject<{
139
51
  label: z.ZodString;
140
52
  description: z.ZodOptional<z.ZodString>;
141
53
  isDefault: z.ZodOptional<z.ZodBoolean>;
142
- }, "strip", z.ZodTypeAny, {
143
- id: string;
144
- label: string;
145
- description?: string | undefined;
146
- isDefault?: boolean | undefined;
147
- }, {
148
- id: string;
149
- label: string;
150
- description?: string | undefined;
151
- isDefault?: boolean | undefined;
152
- }>, "many">>;
153
- }, "strip", z.ZodTypeAny, {
154
- id: string;
155
- label: string;
156
- description?: string | undefined;
157
- isDefault?: boolean | undefined;
158
- thinkingOptions?: {
159
- id: string;
160
- label: string;
161
- description?: string | undefined;
162
- isDefault?: boolean | undefined;
163
- }[] | undefined;
164
- }, {
165
- id: string;
166
- label: string;
167
- description?: string | undefined;
168
- isDefault?: boolean | undefined;
169
- thinkingOptions?: {
170
- id: string;
171
- label: string;
172
- description?: string | undefined;
173
- isDefault?: boolean | undefined;
174
- }[] | undefined;
175
- }>, "many">>;
54
+ }, z.core.$strip>>>;
55
+ }, z.core.$strip>>>;
176
56
  additionalModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
57
  id: z.ZodString;
178
58
  label: z.ZodString;
@@ -183,117 +63,17 @@ export declare const ProviderOverrideSchema: z.ZodObject<{
183
63
  label: z.ZodString;
184
64
  description: z.ZodOptional<z.ZodString>;
185
65
  isDefault: z.ZodOptional<z.ZodBoolean>;
186
- }, "strip", z.ZodTypeAny, {
187
- id: string;
188
- label: string;
189
- description?: string | undefined;
190
- isDefault?: boolean | undefined;
191
- }, {
192
- id: string;
193
- label: string;
194
- description?: string | undefined;
195
- isDefault?: boolean | undefined;
196
- }>, "many">>;
197
- }, "strip", z.ZodTypeAny, {
198
- id: string;
199
- label: string;
200
- description?: string | undefined;
201
- isDefault?: boolean | undefined;
202
- thinkingOptions?: {
203
- id: string;
204
- label: string;
205
- description?: string | undefined;
206
- isDefault?: boolean | undefined;
207
- }[] | undefined;
208
- }, {
209
- id: string;
210
- label: string;
211
- description?: string | undefined;
212
- isDefault?: boolean | undefined;
213
- thinkingOptions?: {
214
- id: string;
215
- label: string;
216
- description?: string | undefined;
217
- isDefault?: boolean | undefined;
218
- }[] | undefined;
219
- }>, "many">>;
220
- disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
66
+ }, z.core.$strip>>>;
67
+ }, z.core.$strip>>>;
68
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
221
69
  enabled: z.ZodOptional<z.ZodBoolean>;
222
70
  order: z.ZodOptional<z.ZodNumber>;
223
- }, "strip", z.ZodTypeAny, {
224
- description?: string | undefined;
225
- params?: Record<string, unknown> | undefined;
226
- label?: string | undefined;
227
- enabled?: boolean | undefined;
228
- command?: string[] | undefined;
229
- additionalModels?: {
230
- id: string;
231
- label: string;
232
- description?: string | undefined;
233
- isDefault?: boolean | undefined;
234
- thinkingOptions?: {
235
- id: string;
236
- label: string;
237
- description?: string | undefined;
238
- isDefault?: boolean | undefined;
239
- }[] | undefined;
240
- }[] | undefined;
241
- models?: {
242
- id: string;
243
- label: string;
244
- description?: string | undefined;
245
- isDefault?: boolean | undefined;
246
- thinkingOptions?: {
247
- id: string;
248
- label: string;
249
- description?: string | undefined;
250
- isDefault?: boolean | undefined;
251
- }[] | undefined;
252
- }[] | undefined;
253
- env?: Record<string, string> | undefined;
254
- disallowedTools?: string[] | undefined;
255
- extends?: string | undefined;
256
- order?: number | undefined;
257
- }, {
258
- description?: string | undefined;
259
- params?: Record<string, unknown> | undefined;
260
- label?: string | undefined;
261
- enabled?: boolean | undefined;
262
- command?: string[] | undefined;
263
- additionalModels?: {
264
- id: string;
265
- label: string;
266
- description?: string | undefined;
267
- isDefault?: boolean | undefined;
268
- thinkingOptions?: {
269
- id: string;
270
- label: string;
271
- description?: string | undefined;
272
- isDefault?: boolean | undefined;
273
- }[] | undefined;
274
- }[] | undefined;
275
- models?: {
276
- id: string;
277
- label: string;
278
- description?: string | undefined;
279
- isDefault?: boolean | undefined;
280
- thinkingOptions?: {
281
- id: string;
282
- label: string;
283
- description?: string | undefined;
284
- isDefault?: boolean | undefined;
285
- }[] | undefined;
286
- }[] | undefined;
287
- env?: Record<string, string> | undefined;
288
- disallowedTools?: string[] | undefined;
289
- extends?: string | undefined;
290
- order?: number | undefined;
291
- }>;
292
- export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
71
+ }, z.core.$strip>;
72
+ export declare const ProviderOverridesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
293
73
  extends: z.ZodOptional<z.ZodString>;
294
74
  label: z.ZodOptional<z.ZodString>;
295
75
  description: z.ZodOptional<z.ZodString>;
296
- command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
76
+ command: z.ZodOptional<z.ZodArray<z.ZodString>>;
297
77
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
298
78
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
299
79
  models: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -306,40 +86,8 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
306
86
  label: z.ZodString;
307
87
  description: z.ZodOptional<z.ZodString>;
308
88
  isDefault: z.ZodOptional<z.ZodBoolean>;
309
- }, "strip", z.ZodTypeAny, {
310
- id: string;
311
- label: string;
312
- description?: string | undefined;
313
- isDefault?: boolean | undefined;
314
- }, {
315
- id: string;
316
- label: string;
317
- description?: string | undefined;
318
- isDefault?: boolean | undefined;
319
- }>, "many">>;
320
- }, "strip", z.ZodTypeAny, {
321
- id: string;
322
- label: string;
323
- description?: string | undefined;
324
- isDefault?: boolean | undefined;
325
- thinkingOptions?: {
326
- id: string;
327
- label: string;
328
- description?: string | undefined;
329
- isDefault?: boolean | undefined;
330
- }[] | undefined;
331
- }, {
332
- id: string;
333
- label: string;
334
- description?: string | undefined;
335
- isDefault?: boolean | undefined;
336
- thinkingOptions?: {
337
- id: string;
338
- label: string;
339
- description?: string | undefined;
340
- isDefault?: boolean | undefined;
341
- }[] | undefined;
342
- }>, "many">>;
89
+ }, z.core.$strip>>>;
90
+ }, z.core.$strip>>>;
343
91
  additionalModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
344
92
  id: z.ZodString;
345
93
  label: z.ZodString;
@@ -350,257 +98,25 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
350
98
  label: z.ZodString;
351
99
  description: z.ZodOptional<z.ZodString>;
352
100
  isDefault: z.ZodOptional<z.ZodBoolean>;
353
- }, "strip", z.ZodTypeAny, {
354
- id: string;
355
- label: string;
356
- description?: string | undefined;
357
- isDefault?: boolean | undefined;
358
- }, {
359
- id: string;
360
- label: string;
361
- description?: string | undefined;
362
- isDefault?: boolean | undefined;
363
- }>, "many">>;
364
- }, "strip", z.ZodTypeAny, {
365
- id: string;
366
- label: string;
367
- description?: string | undefined;
368
- isDefault?: boolean | undefined;
369
- thinkingOptions?: {
370
- id: string;
371
- label: string;
372
- description?: string | undefined;
373
- isDefault?: boolean | undefined;
374
- }[] | undefined;
375
- }, {
376
- id: string;
377
- label: string;
378
- description?: string | undefined;
379
- isDefault?: boolean | undefined;
380
- thinkingOptions?: {
381
- id: string;
382
- label: string;
383
- description?: string | undefined;
384
- isDefault?: boolean | undefined;
385
- }[] | undefined;
386
- }>, "many">>;
387
- disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
101
+ }, z.core.$strip>>>;
102
+ }, z.core.$strip>>>;
103
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
388
104
  enabled: z.ZodOptional<z.ZodBoolean>;
389
105
  order: z.ZodOptional<z.ZodNumber>;
390
- }, "strip", z.ZodTypeAny, {
391
- description?: string | undefined;
392
- params?: Record<string, unknown> | undefined;
393
- label?: string | undefined;
394
- enabled?: boolean | undefined;
395
- command?: string[] | undefined;
396
- additionalModels?: {
397
- id: string;
398
- label: string;
399
- description?: string | undefined;
400
- isDefault?: boolean | undefined;
401
- thinkingOptions?: {
402
- id: string;
403
- label: string;
404
- description?: string | undefined;
405
- isDefault?: boolean | undefined;
406
- }[] | undefined;
407
- }[] | undefined;
408
- models?: {
409
- id: string;
410
- label: string;
411
- description?: string | undefined;
412
- isDefault?: boolean | undefined;
413
- thinkingOptions?: {
414
- id: string;
415
- label: string;
416
- description?: string | undefined;
417
- isDefault?: boolean | undefined;
418
- }[] | undefined;
419
- }[] | undefined;
420
- env?: Record<string, string> | undefined;
421
- disallowedTools?: string[] | undefined;
422
- extends?: string | undefined;
423
- order?: number | undefined;
424
- }, {
425
- description?: string | undefined;
426
- params?: Record<string, unknown> | undefined;
427
- label?: string | undefined;
428
- enabled?: boolean | undefined;
429
- command?: string[] | undefined;
430
- additionalModels?: {
431
- id: string;
432
- label: string;
433
- description?: string | undefined;
434
- isDefault?: boolean | undefined;
435
- thinkingOptions?: {
436
- id: string;
437
- label: string;
438
- description?: string | undefined;
439
- isDefault?: boolean | undefined;
440
- }[] | undefined;
441
- }[] | undefined;
442
- models?: {
443
- id: string;
444
- label: string;
445
- description?: string | undefined;
446
- isDefault?: boolean | undefined;
447
- thinkingOptions?: {
448
- id: string;
449
- label: string;
450
- description?: string | undefined;
451
- isDefault?: boolean | undefined;
452
- }[] | undefined;
453
- }[] | undefined;
454
- env?: Record<string, string> | undefined;
455
- disallowedTools?: string[] | undefined;
456
- extends?: string | undefined;
457
- order?: number | undefined;
458
- }>>, Record<string, {
459
- description?: string | undefined;
460
- params?: Record<string, unknown> | undefined;
461
- label?: string | undefined;
462
- enabled?: boolean | undefined;
463
- command?: string[] | undefined;
464
- additionalModels?: {
465
- id: string;
466
- label: string;
467
- description?: string | undefined;
468
- isDefault?: boolean | undefined;
469
- thinkingOptions?: {
470
- id: string;
471
- label: string;
472
- description?: string | undefined;
473
- isDefault?: boolean | undefined;
474
- }[] | undefined;
475
- }[] | undefined;
476
- models?: {
477
- id: string;
478
- label: string;
479
- description?: string | undefined;
480
- isDefault?: boolean | undefined;
481
- thinkingOptions?: {
482
- id: string;
483
- label: string;
484
- description?: string | undefined;
485
- isDefault?: boolean | undefined;
486
- }[] | undefined;
487
- }[] | undefined;
488
- env?: Record<string, string> | undefined;
489
- disallowedTools?: string[] | undefined;
490
- extends?: string | undefined;
491
- order?: number | undefined;
492
- }>, Record<string, {
493
- description?: string | undefined;
494
- params?: Record<string, unknown> | undefined;
495
- label?: string | undefined;
496
- enabled?: boolean | undefined;
497
- command?: string[] | undefined;
498
- additionalModels?: {
499
- id: string;
500
- label: string;
501
- description?: string | undefined;
502
- isDefault?: boolean | undefined;
503
- thinkingOptions?: {
504
- id: string;
505
- label: string;
506
- description?: string | undefined;
507
- isDefault?: boolean | undefined;
508
- }[] | undefined;
509
- }[] | undefined;
510
- models?: {
511
- id: string;
512
- label: string;
513
- description?: string | undefined;
514
- isDefault?: boolean | undefined;
515
- thinkingOptions?: {
516
- id: string;
517
- label: string;
518
- description?: string | undefined;
519
- isDefault?: boolean | undefined;
520
- }[] | undefined;
521
- }[] | undefined;
522
- env?: Record<string, string> | undefined;
523
- disallowedTools?: string[] | undefined;
524
- extends?: string | undefined;
525
- order?: number | undefined;
526
- }>>;
527
- export declare const AgentProviderRuntimeSettingsMapSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
528
- command: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
106
+ }, z.core.$strip>>;
107
+ export declare const AgentProviderRuntimeSettingsMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
108
+ command: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
529
109
  mode: z.ZodLiteral<"default">;
530
- }, "strip", z.ZodTypeAny, {
531
- mode: "default";
532
- }, {
533
- mode: "default";
534
- }>, z.ZodObject<{
110
+ }, z.core.$strip>, z.ZodObject<{
535
111
  mode: z.ZodLiteral<"append">;
536
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
537
- }, "strip", z.ZodTypeAny, {
538
- mode: "append";
539
- args?: string[] | undefined;
540
- }, {
541
- mode: "append";
542
- args?: string[] | undefined;
543
- }>, z.ZodObject<{
112
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
113
+ }, z.core.$strip>, z.ZodObject<{
544
114
  mode: z.ZodLiteral<"replace">;
545
- argv: z.ZodArray<z.ZodString, "many">;
546
- }, "strip", z.ZodTypeAny, {
547
- mode: "replace";
548
- argv: string[];
549
- }, {
550
- mode: "replace";
551
- argv: string[];
552
- }>]>>;
115
+ argv: z.ZodArray<z.ZodString>;
116
+ }, z.core.$strip>], "mode">>;
553
117
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
554
- disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
555
- }, "strip", z.ZodTypeAny, {
556
- command?: {
557
- mode: "default";
558
- } | {
559
- mode: "append";
560
- args?: string[] | undefined;
561
- } | {
562
- mode: "replace";
563
- argv: string[];
564
- } | undefined;
565
- env?: Record<string, string> | undefined;
566
- disallowedTools?: string[] | undefined;
567
- }, {
568
- command?: {
569
- mode: "default";
570
- } | {
571
- mode: "append";
572
- args?: string[] | undefined;
573
- } | {
574
- mode: "replace";
575
- argv: string[];
576
- } | undefined;
577
- env?: Record<string, string> | undefined;
578
- disallowedTools?: string[] | undefined;
579
- }>>, Record<string, {
580
- command?: {
581
- mode: "default";
582
- } | {
583
- mode: "append";
584
- args?: string[] | undefined;
585
- } | {
586
- mode: "replace";
587
- argv: string[];
588
- } | undefined;
589
- env?: Record<string, string> | undefined;
590
- disallowedTools?: string[] | undefined;
591
- }>, Record<string, {
592
- command?: {
593
- mode: "default";
594
- } | {
595
- mode: "append";
596
- args?: string[] | undefined;
597
- } | {
598
- mode: "replace";
599
- argv: string[];
600
- } | undefined;
601
- env?: Record<string, string> | undefined;
602
- disallowedTools?: string[] | undefined;
603
- }>>;
118
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
119
+ }, z.core.$strip>>;
604
120
  export type ProviderCommand = z.infer<typeof ProviderCommandSchema>;
605
121
  export type ProviderRuntimeSettings = z.infer<typeof ProviderRuntimeSettingsSchema>;
606
122
  export type ProviderProfileModel = z.infer<typeof ProviderProfileModelSchema>;
@@ -18,7 +18,7 @@ export const ProviderCommandSchema = z.discriminatedUnion("mode", [
18
18
  ]);
19
19
  export const ProviderRuntimeSettingsSchema = z.object({
20
20
  command: ProviderCommandSchema.optional(),
21
- env: z.record(z.string()).optional(),
21
+ env: z.record(z.string(), z.string()).optional(),
22
22
  disallowedTools: z.array(z.string()).optional(),
23
23
  });
24
24
  const ProviderProfileThinkingOptionSchema = z.object({
@@ -39,8 +39,8 @@ export const ProviderOverrideSchema = z.object({
39
39
  label: z.string().optional(),
40
40
  description: z.string().optional(),
41
41
  command: z.array(z.string().min(1)).min(1).optional(),
42
- env: z.record(z.string()).optional(),
43
- params: z.record(z.unknown()).optional(),
42
+ env: z.record(z.string(), z.string()).optional(),
43
+ params: z.record(z.string(), z.unknown()).optional(),
44
44
  models: z.array(ProviderProfileModelSchema).optional(),
45
45
  additionalModels: z.array(ProviderProfileModelSchema).optional(),
46
46
  disallowedTools: z.array(z.string()).optional(),
@@ -50,7 +50,7 @@ export const ProviderOverrideSchema = z.object({
50
50
  const BUILTIN_PROVIDER_IDS = ["claude", "codex", "copilot", "opencode", "pi", "omp"];
51
51
  const PROVIDER_ID_PATTERN = /^[a-z][a-z0-9-]*$/;
52
52
  export const ProviderOverridesSchema = z
53
- .record(ProviderOverrideSchema)
53
+ .record(z.string(), ProviderOverrideSchema)
54
54
  .superRefine((providers, ctx) => {
55
55
  const builtinProviderIdSet = new Set(BUILTIN_PROVIDER_IDS);
56
56
  const validExtendsValues = new Set([...BUILTIN_PROVIDER_IDS, "acp"]);
@@ -94,7 +94,7 @@ export const ProviderOverridesSchema = z
94
94
  }
95
95
  });
96
96
  export const AgentProviderRuntimeSettingsMapSchema = z
97
- .record(ProviderRuntimeSettingsSchema)
97
+ .record(z.string(), ProviderRuntimeSettingsSchema)
98
98
  .superRefine((providers, ctx) => {
99
99
  for (const providerId of Object.keys(providers)) {
100
100
  const parsedProviderId = AgentProviderSchema.safeParse(providerId);