@getpaseo/protocol 0.1.84

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.
Files changed (68) hide show
  1. package/README.md +12 -0
  2. package/dist/agent-attention-notification.d.ts +41 -0
  3. package/dist/agent-attention-notification.js +140 -0
  4. package/dist/agent-labels.d.ts +2 -0
  5. package/dist/agent-labels.js +2 -0
  6. package/dist/agent-lifecycle.d.ts +3 -0
  7. package/dist/agent-lifecycle.js +8 -0
  8. package/dist/agent-state-bucket.d.ts +13 -0
  9. package/dist/agent-state-bucket.js +41 -0
  10. package/dist/agent-title-limits.d.ts +3 -0
  11. package/dist/agent-title-limits.js +3 -0
  12. package/dist/agent-types.d.ts +421 -0
  13. package/dist/agent-types.js +22 -0
  14. package/dist/binary-frames/file-transfer.d.ts +56 -0
  15. package/dist/binary-frames/file-transfer.js +108 -0
  16. package/dist/binary-frames/index.d.ts +3 -0
  17. package/dist/binary-frames/index.js +3 -0
  18. package/dist/binary-frames/terminal.d.ts +37 -0
  19. package/dist/binary-frames/terminal.js +101 -0
  20. package/dist/chat/rpc-schemas.d.ts +728 -0
  21. package/dist/chat/rpc-schemas.js +103 -0
  22. package/dist/chat/types.d.ts +75 -0
  23. package/dist/chat/types.js +22 -0
  24. package/dist/client-capabilities.d.ts +6 -0
  25. package/dist/client-capabilities.js +9 -0
  26. package/dist/connection-offer.d.ts +80 -0
  27. package/dist/connection-offer.js +53 -0
  28. package/dist/daemon-endpoints.d.ts +47 -0
  29. package/dist/daemon-endpoints.js +201 -0
  30. package/dist/error-utils.d.ts +11 -0
  31. package/dist/error-utils.js +27 -0
  32. package/dist/git-remote.d.ts +16 -0
  33. package/dist/git-remote.js +72 -0
  34. package/dist/host-connection-schema.d.ts +23 -0
  35. package/dist/host-connection-schema.js +9 -0
  36. package/dist/importable-providers.d.ts +7 -0
  37. package/dist/importable-providers.js +7 -0
  38. package/dist/literal-union.d.ts +2 -0
  39. package/dist/literal-union.js +2 -0
  40. package/dist/loop/rpc-schemas.d.ts +3005 -0
  41. package/dist/loop/rpc-schemas.js +163 -0
  42. package/dist/messages.d.ts +144995 -0
  43. package/dist/messages.js +3338 -0
  44. package/dist/paseo-config-schema.d.ts +915 -0
  45. package/dist/paseo-config-schema.js +77 -0
  46. package/dist/path-utils.d.ts +2 -0
  47. package/dist/path-utils.js +16 -0
  48. package/dist/provider-config.d.ts +602 -0
  49. package/dist/provider-config.js +123 -0
  50. package/dist/provider-manifest.d.ts +33 -0
  51. package/dist/provider-manifest.js +219 -0
  52. package/dist/schedule/rpc-schemas.d.ts +3993 -0
  53. package/dist/schedule/rpc-schemas.js +151 -0
  54. package/dist/schedule/types.d.ts +745 -0
  55. package/dist/schedule/types.js +74 -0
  56. package/dist/terminal-input-mode.d.ts +26 -0
  57. package/dist/terminal-input-mode.js +151 -0
  58. package/dist/terminal-key-input.d.ts +13 -0
  59. package/dist/terminal-key-input.js +201 -0
  60. package/dist/terminal-snapshot.d.ts +3 -0
  61. package/dist/terminal-snapshot.js +165 -0
  62. package/dist/terminal-stream-protocol.d.ts +2 -0
  63. package/dist/terminal-stream-protocol.js +2 -0
  64. package/dist/tool-call-display.d.ts +11 -0
  65. package/dist/tool-call-display.js +135 -0
  66. package/dist/tool-name-normalization.d.ts +9 -0
  67. package/dist/tool-name-normalization.js +82 -0
  68. package/package.json +34 -0
@@ -0,0 +1,77 @@
1
+ import { z } from "zod";
2
+ export function normalizeLifecycleCommands(commands) {
3
+ if (typeof commands === "string") {
4
+ return commands.trim().length > 0 ? [commands] : [];
5
+ }
6
+ if (!Array.isArray(commands)) {
7
+ return [];
8
+ }
9
+ return commands.filter((command) => {
10
+ return typeof command === "string" && command.trim().length > 0;
11
+ });
12
+ }
13
+ export const PaseoLifecycleCommandRawSchema = z.union([z.string(), z.array(z.string())]);
14
+ export const PaseoScriptEntryRawSchema = z
15
+ .object({
16
+ type: z.unknown().optional(),
17
+ command: z.unknown().optional(),
18
+ port: z.unknown().optional(),
19
+ })
20
+ .passthrough();
21
+ export const PaseoWorktreeConfigRawSchema = z
22
+ .object({
23
+ setup: PaseoLifecycleCommandRawSchema.optional(),
24
+ teardown: PaseoLifecycleCommandRawSchema.optional(),
25
+ terminals: z.unknown().optional(),
26
+ })
27
+ .passthrough();
28
+ export const PaseoMetadataGenerationEntrySchema = z
29
+ .object({
30
+ instructions: z.string().optional(),
31
+ })
32
+ .passthrough()
33
+ .catch({});
34
+ export const PaseoMetadataGenerationSchema = z
35
+ .object({
36
+ agentTitle: PaseoMetadataGenerationEntrySchema.optional(),
37
+ branchName: PaseoMetadataGenerationEntrySchema.optional(),
38
+ commitMessage: PaseoMetadataGenerationEntrySchema.optional(),
39
+ pullRequest: PaseoMetadataGenerationEntrySchema.optional(),
40
+ })
41
+ .passthrough()
42
+ .catch({});
43
+ export const PaseoConfigRawSchema = z
44
+ .object({
45
+ worktree: PaseoWorktreeConfigRawSchema.optional(),
46
+ scripts: z.record(z.string(), PaseoScriptEntryRawSchema).optional(),
47
+ metadataGeneration: PaseoMetadataGenerationSchema.optional(),
48
+ })
49
+ .passthrough();
50
+ export const WorktreeConfigSchema = PaseoWorktreeConfigRawSchema.extend({
51
+ setup: z.unknown().transform(normalizeLifecycleCommands),
52
+ teardown: z.unknown().transform(normalizeLifecycleCommands),
53
+ })
54
+ .passthrough()
55
+ .catch({ setup: [], teardown: [] });
56
+ export const ScriptEntrySchema = PaseoScriptEntryRawSchema.catch({});
57
+ export const PaseoConfigSchema = PaseoConfigRawSchema.extend({
58
+ worktree: WorktreeConfigSchema.optional(),
59
+ scripts: z.record(z.string(), ScriptEntrySchema).optional().catch({}),
60
+ metadataGeneration: PaseoMetadataGenerationSchema.optional(),
61
+ })
62
+ .passthrough()
63
+ .catch({});
64
+ export const PaseoConfigRevisionSchema = z.object({
65
+ mtimeMs: z.number(),
66
+ size: z.number(),
67
+ });
68
+ export const ProjectConfigRpcErrorSchema = z.discriminatedUnion("code", [
69
+ z.object({ code: z.literal("project_not_found") }),
70
+ z.object({ code: z.literal("invalid_project_config") }),
71
+ z.object({
72
+ code: z.literal("stale_project_config"),
73
+ currentRevision: PaseoConfigRevisionSchema.nullable(),
74
+ }),
75
+ z.object({ code: z.literal("write_failed") }),
76
+ ]);
77
+ //# sourceMappingURL=paseo-config-schema.js.map
@@ -0,0 +1,2 @@
1
+ export declare function stripCwdPrefix(filePath: string, cwd?: string): string;
2
+ //# sourceMappingURL=path-utils.d.ts.map
@@ -0,0 +1,16 @@
1
+ export function stripCwdPrefix(filePath, cwd) {
2
+ if (!cwd || !filePath) {
3
+ return filePath;
4
+ }
5
+ const normalizedCwd = cwd.replace(/\\/g, "/").replace(/\/+$/, "");
6
+ const normalizedPath = filePath.replace(/\\/g, "/");
7
+ const prefix = `${normalizedCwd}/`;
8
+ if (normalizedPath.startsWith(prefix)) {
9
+ return normalizedPath.slice(prefix.length);
10
+ }
11
+ if (normalizedPath === normalizedCwd) {
12
+ return ".";
13
+ }
14
+ return filePath;
15
+ }
16
+ //# sourceMappingURL=path-utils.js.map
@@ -0,0 +1,602 @@
1
+ import { z } from "zod";
2
+ import type { AgentProvider } from "./agent-types.js";
3
+ export declare const ProviderCommandSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
4
+ mode: z.ZodLiteral<"default">;
5
+ }, "strict", z.ZodTypeAny, {
6
+ mode: "default";
7
+ }, {
8
+ mode: "default";
9
+ }>, z.ZodObject<{
10
+ mode: z.ZodLiteral<"append">;
11
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
+ }, "strict", z.ZodTypeAny, {
13
+ mode: "append";
14
+ args?: string[] | undefined;
15
+ }, {
16
+ mode: "append";
17
+ args?: string[] | undefined;
18
+ }>, z.ZodObject<{
19
+ mode: z.ZodLiteral<"replace">;
20
+ argv: z.ZodArray<z.ZodString, "many">;
21
+ }, "strict", z.ZodTypeAny, {
22
+ mode: "replace";
23
+ argv: string[];
24
+ }, {
25
+ mode: "replace";
26
+ argv: string[];
27
+ }>]>;
28
+ export declare const ProviderRuntimeSettingsSchema: z.ZodObject<{
29
+ command: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
30
+ mode: z.ZodLiteral<"default">;
31
+ }, "strict", z.ZodTypeAny, {
32
+ mode: "default";
33
+ }, {
34
+ mode: "default";
35
+ }>, z.ZodObject<{
36
+ mode: z.ZodLiteral<"append">;
37
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
38
+ }, "strict", z.ZodTypeAny, {
39
+ mode: "append";
40
+ args?: string[] | undefined;
41
+ }, {
42
+ mode: "append";
43
+ args?: string[] | undefined;
44
+ }>, z.ZodObject<{
45
+ mode: z.ZodLiteral<"replace">;
46
+ argv: z.ZodArray<z.ZodString, "many">;
47
+ }, "strict", z.ZodTypeAny, {
48
+ mode: "replace";
49
+ argv: string[];
50
+ }, {
51
+ mode: "replace";
52
+ argv: string[];
53
+ }>]>>;
54
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
55
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
+ }, "strict", 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
+ }>;
81
+ export declare const ProviderProfileModelSchema: z.ZodObject<{
82
+ id: z.ZodString;
83
+ label: z.ZodString;
84
+ description: z.ZodOptional<z.ZodString>;
85
+ isDefault: z.ZodOptional<z.ZodBoolean>;
86
+ thinkingOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
87
+ id: z.ZodString;
88
+ label: z.ZodString;
89
+ description: z.ZodOptional<z.ZodString>;
90
+ isDefault: z.ZodOptional<z.ZodBoolean>;
91
+ }, "strict", 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
+ }, "strict", 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
+ }>;
125
+ export declare const ProviderOverrideSchema: z.ZodObject<{
126
+ extends: z.ZodOptional<z.ZodString>;
127
+ label: z.ZodOptional<z.ZodString>;
128
+ description: z.ZodOptional<z.ZodString>;
129
+ command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
131
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
132
+ id: z.ZodString;
133
+ label: z.ZodString;
134
+ description: z.ZodOptional<z.ZodString>;
135
+ isDefault: z.ZodOptional<z.ZodBoolean>;
136
+ thinkingOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
137
+ id: z.ZodString;
138
+ label: z.ZodString;
139
+ description: z.ZodOptional<z.ZodString>;
140
+ isDefault: z.ZodOptional<z.ZodBoolean>;
141
+ }, "strict", z.ZodTypeAny, {
142
+ id: string;
143
+ label: string;
144
+ description?: string | undefined;
145
+ isDefault?: boolean | undefined;
146
+ }, {
147
+ id: string;
148
+ label: string;
149
+ description?: string | undefined;
150
+ isDefault?: boolean | undefined;
151
+ }>, "many">>;
152
+ }, "strict", z.ZodTypeAny, {
153
+ id: string;
154
+ label: string;
155
+ description?: string | undefined;
156
+ isDefault?: boolean | undefined;
157
+ thinkingOptions?: {
158
+ id: string;
159
+ label: string;
160
+ description?: string | undefined;
161
+ isDefault?: boolean | undefined;
162
+ }[] | undefined;
163
+ }, {
164
+ id: string;
165
+ label: string;
166
+ description?: string | undefined;
167
+ isDefault?: boolean | undefined;
168
+ thinkingOptions?: {
169
+ id: string;
170
+ label: string;
171
+ description?: string | undefined;
172
+ isDefault?: boolean | undefined;
173
+ }[] | undefined;
174
+ }>, "many">>;
175
+ additionalModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
176
+ id: z.ZodString;
177
+ label: z.ZodString;
178
+ description: z.ZodOptional<z.ZodString>;
179
+ isDefault: z.ZodOptional<z.ZodBoolean>;
180
+ thinkingOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
181
+ id: z.ZodString;
182
+ label: z.ZodString;
183
+ description: z.ZodOptional<z.ZodString>;
184
+ isDefault: z.ZodOptional<z.ZodBoolean>;
185
+ }, "strict", z.ZodTypeAny, {
186
+ id: string;
187
+ label: string;
188
+ description?: string | undefined;
189
+ isDefault?: boolean | undefined;
190
+ }, {
191
+ id: string;
192
+ label: string;
193
+ description?: string | undefined;
194
+ isDefault?: boolean | undefined;
195
+ }>, "many">>;
196
+ }, "strict", z.ZodTypeAny, {
197
+ id: string;
198
+ label: string;
199
+ description?: string | undefined;
200
+ isDefault?: boolean | undefined;
201
+ thinkingOptions?: {
202
+ id: string;
203
+ label: string;
204
+ description?: string | undefined;
205
+ isDefault?: boolean | undefined;
206
+ }[] | undefined;
207
+ }, {
208
+ id: string;
209
+ label: string;
210
+ description?: string | undefined;
211
+ isDefault?: boolean | undefined;
212
+ thinkingOptions?: {
213
+ id: string;
214
+ label: string;
215
+ description?: string | undefined;
216
+ isDefault?: boolean | undefined;
217
+ }[] | undefined;
218
+ }>, "many">>;
219
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
220
+ enabled: z.ZodOptional<z.ZodBoolean>;
221
+ order: z.ZodOptional<z.ZodNumber>;
222
+ }, "strict", z.ZodTypeAny, {
223
+ description?: string | undefined;
224
+ label?: string | undefined;
225
+ enabled?: boolean | undefined;
226
+ command?: string[] | undefined;
227
+ additionalModels?: {
228
+ id: string;
229
+ label: string;
230
+ description?: string | undefined;
231
+ isDefault?: boolean | undefined;
232
+ thinkingOptions?: {
233
+ id: string;
234
+ label: string;
235
+ description?: string | undefined;
236
+ isDefault?: boolean | undefined;
237
+ }[] | undefined;
238
+ }[] | undefined;
239
+ models?: {
240
+ id: string;
241
+ label: string;
242
+ description?: string | undefined;
243
+ isDefault?: boolean | undefined;
244
+ thinkingOptions?: {
245
+ id: string;
246
+ label: string;
247
+ description?: string | undefined;
248
+ isDefault?: boolean | undefined;
249
+ }[] | undefined;
250
+ }[] | undefined;
251
+ env?: Record<string, string> | undefined;
252
+ disallowedTools?: string[] | undefined;
253
+ extends?: string | undefined;
254
+ order?: number | undefined;
255
+ }, {
256
+ description?: string | undefined;
257
+ label?: string | undefined;
258
+ enabled?: boolean | undefined;
259
+ command?: string[] | undefined;
260
+ additionalModels?: {
261
+ id: string;
262
+ label: string;
263
+ description?: string | undefined;
264
+ isDefault?: boolean | undefined;
265
+ thinkingOptions?: {
266
+ id: string;
267
+ label: string;
268
+ description?: string | undefined;
269
+ isDefault?: boolean | undefined;
270
+ }[] | undefined;
271
+ }[] | undefined;
272
+ models?: {
273
+ id: string;
274
+ label: string;
275
+ description?: string | undefined;
276
+ isDefault?: boolean | undefined;
277
+ thinkingOptions?: {
278
+ id: string;
279
+ label: string;
280
+ description?: string | undefined;
281
+ isDefault?: boolean | undefined;
282
+ }[] | undefined;
283
+ }[] | undefined;
284
+ env?: Record<string, string> | undefined;
285
+ disallowedTools?: string[] | undefined;
286
+ extends?: string | undefined;
287
+ order?: number | undefined;
288
+ }>;
289
+ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
290
+ extends: z.ZodOptional<z.ZodString>;
291
+ label: z.ZodOptional<z.ZodString>;
292
+ description: z.ZodOptional<z.ZodString>;
293
+ command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
294
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
295
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
296
+ id: z.ZodString;
297
+ label: z.ZodString;
298
+ description: z.ZodOptional<z.ZodString>;
299
+ isDefault: z.ZodOptional<z.ZodBoolean>;
300
+ thinkingOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
301
+ id: z.ZodString;
302
+ label: z.ZodString;
303
+ description: z.ZodOptional<z.ZodString>;
304
+ isDefault: z.ZodOptional<z.ZodBoolean>;
305
+ }, "strict", z.ZodTypeAny, {
306
+ id: string;
307
+ label: string;
308
+ description?: string | undefined;
309
+ isDefault?: boolean | undefined;
310
+ }, {
311
+ id: string;
312
+ label: string;
313
+ description?: string | undefined;
314
+ isDefault?: boolean | undefined;
315
+ }>, "many">>;
316
+ }, "strict", z.ZodTypeAny, {
317
+ id: string;
318
+ label: string;
319
+ description?: string | undefined;
320
+ isDefault?: boolean | undefined;
321
+ thinkingOptions?: {
322
+ id: string;
323
+ label: string;
324
+ description?: string | undefined;
325
+ isDefault?: boolean | undefined;
326
+ }[] | undefined;
327
+ }, {
328
+ id: string;
329
+ label: string;
330
+ description?: string | undefined;
331
+ isDefault?: boolean | undefined;
332
+ thinkingOptions?: {
333
+ id: string;
334
+ label: string;
335
+ description?: string | undefined;
336
+ isDefault?: boolean | undefined;
337
+ }[] | undefined;
338
+ }>, "many">>;
339
+ additionalModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
340
+ id: z.ZodString;
341
+ label: z.ZodString;
342
+ description: z.ZodOptional<z.ZodString>;
343
+ isDefault: z.ZodOptional<z.ZodBoolean>;
344
+ thinkingOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
345
+ id: z.ZodString;
346
+ label: z.ZodString;
347
+ description: z.ZodOptional<z.ZodString>;
348
+ isDefault: z.ZodOptional<z.ZodBoolean>;
349
+ }, "strict", z.ZodTypeAny, {
350
+ id: string;
351
+ label: string;
352
+ description?: string | undefined;
353
+ isDefault?: boolean | undefined;
354
+ }, {
355
+ id: string;
356
+ label: string;
357
+ description?: string | undefined;
358
+ isDefault?: boolean | undefined;
359
+ }>, "many">>;
360
+ }, "strict", z.ZodTypeAny, {
361
+ id: string;
362
+ label: string;
363
+ description?: string | undefined;
364
+ isDefault?: boolean | undefined;
365
+ thinkingOptions?: {
366
+ id: string;
367
+ label: string;
368
+ description?: string | undefined;
369
+ isDefault?: boolean | undefined;
370
+ }[] | undefined;
371
+ }, {
372
+ id: string;
373
+ label: string;
374
+ description?: string | undefined;
375
+ isDefault?: boolean | undefined;
376
+ thinkingOptions?: {
377
+ id: string;
378
+ label: string;
379
+ description?: string | undefined;
380
+ isDefault?: boolean | undefined;
381
+ }[] | undefined;
382
+ }>, "many">>;
383
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
384
+ enabled: z.ZodOptional<z.ZodBoolean>;
385
+ order: z.ZodOptional<z.ZodNumber>;
386
+ }, "strict", z.ZodTypeAny, {
387
+ description?: string | undefined;
388
+ label?: string | undefined;
389
+ enabled?: boolean | undefined;
390
+ command?: string[] | undefined;
391
+ additionalModels?: {
392
+ id: string;
393
+ label: string;
394
+ description?: string | undefined;
395
+ isDefault?: boolean | undefined;
396
+ thinkingOptions?: {
397
+ id: string;
398
+ label: string;
399
+ description?: string | undefined;
400
+ isDefault?: boolean | undefined;
401
+ }[] | undefined;
402
+ }[] | undefined;
403
+ models?: {
404
+ id: string;
405
+ label: string;
406
+ description?: string | undefined;
407
+ isDefault?: boolean | undefined;
408
+ thinkingOptions?: {
409
+ id: string;
410
+ label: string;
411
+ description?: string | undefined;
412
+ isDefault?: boolean | undefined;
413
+ }[] | undefined;
414
+ }[] | undefined;
415
+ env?: Record<string, string> | undefined;
416
+ disallowedTools?: string[] | undefined;
417
+ extends?: string | undefined;
418
+ order?: number | undefined;
419
+ }, {
420
+ description?: string | undefined;
421
+ label?: string | undefined;
422
+ enabled?: boolean | undefined;
423
+ command?: string[] | undefined;
424
+ additionalModels?: {
425
+ id: string;
426
+ label: string;
427
+ description?: string | undefined;
428
+ isDefault?: boolean | undefined;
429
+ thinkingOptions?: {
430
+ id: string;
431
+ label: string;
432
+ description?: string | undefined;
433
+ isDefault?: boolean | undefined;
434
+ }[] | undefined;
435
+ }[] | undefined;
436
+ models?: {
437
+ id: string;
438
+ label: string;
439
+ description?: string | undefined;
440
+ isDefault?: boolean | undefined;
441
+ thinkingOptions?: {
442
+ id: string;
443
+ label: string;
444
+ description?: string | undefined;
445
+ isDefault?: boolean | undefined;
446
+ }[] | undefined;
447
+ }[] | undefined;
448
+ env?: Record<string, string> | undefined;
449
+ disallowedTools?: string[] | undefined;
450
+ extends?: string | undefined;
451
+ order?: number | undefined;
452
+ }>>, Record<string, {
453
+ description?: string | undefined;
454
+ label?: string | undefined;
455
+ enabled?: boolean | undefined;
456
+ command?: string[] | undefined;
457
+ additionalModels?: {
458
+ id: string;
459
+ label: string;
460
+ description?: string | undefined;
461
+ isDefault?: boolean | undefined;
462
+ thinkingOptions?: {
463
+ id: string;
464
+ label: string;
465
+ description?: string | undefined;
466
+ isDefault?: boolean | undefined;
467
+ }[] | undefined;
468
+ }[] | undefined;
469
+ models?: {
470
+ id: string;
471
+ label: string;
472
+ description?: string | undefined;
473
+ isDefault?: boolean | undefined;
474
+ thinkingOptions?: {
475
+ id: string;
476
+ label: string;
477
+ description?: string | undefined;
478
+ isDefault?: boolean | undefined;
479
+ }[] | undefined;
480
+ }[] | undefined;
481
+ env?: Record<string, string> | undefined;
482
+ disallowedTools?: string[] | undefined;
483
+ extends?: string | undefined;
484
+ order?: number | undefined;
485
+ }>, Record<string, {
486
+ description?: string | undefined;
487
+ label?: string | undefined;
488
+ enabled?: boolean | undefined;
489
+ command?: string[] | undefined;
490
+ additionalModels?: {
491
+ id: string;
492
+ label: string;
493
+ description?: string | undefined;
494
+ isDefault?: boolean | undefined;
495
+ thinkingOptions?: {
496
+ id: string;
497
+ label: string;
498
+ description?: string | undefined;
499
+ isDefault?: boolean | undefined;
500
+ }[] | undefined;
501
+ }[] | undefined;
502
+ models?: {
503
+ id: string;
504
+ label: string;
505
+ description?: string | undefined;
506
+ isDefault?: boolean | undefined;
507
+ thinkingOptions?: {
508
+ id: string;
509
+ label: string;
510
+ description?: string | undefined;
511
+ isDefault?: boolean | undefined;
512
+ }[] | undefined;
513
+ }[] | undefined;
514
+ env?: Record<string, string> | undefined;
515
+ disallowedTools?: string[] | undefined;
516
+ extends?: string | undefined;
517
+ order?: number | undefined;
518
+ }>>;
519
+ export declare const AgentProviderRuntimeSettingsMapSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
520
+ command: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
521
+ mode: z.ZodLiteral<"default">;
522
+ }, "strict", z.ZodTypeAny, {
523
+ mode: "default";
524
+ }, {
525
+ mode: "default";
526
+ }>, z.ZodObject<{
527
+ mode: z.ZodLiteral<"append">;
528
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
529
+ }, "strict", z.ZodTypeAny, {
530
+ mode: "append";
531
+ args?: string[] | undefined;
532
+ }, {
533
+ mode: "append";
534
+ args?: string[] | undefined;
535
+ }>, z.ZodObject<{
536
+ mode: z.ZodLiteral<"replace">;
537
+ argv: z.ZodArray<z.ZodString, "many">;
538
+ }, "strict", z.ZodTypeAny, {
539
+ mode: "replace";
540
+ argv: string[];
541
+ }, {
542
+ mode: "replace";
543
+ argv: string[];
544
+ }>]>>;
545
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
546
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
547
+ }, "strict", z.ZodTypeAny, {
548
+ command?: {
549
+ mode: "default";
550
+ } | {
551
+ mode: "append";
552
+ args?: string[] | undefined;
553
+ } | {
554
+ mode: "replace";
555
+ argv: string[];
556
+ } | undefined;
557
+ env?: Record<string, string> | undefined;
558
+ disallowedTools?: string[] | undefined;
559
+ }, {
560
+ command?: {
561
+ mode: "default";
562
+ } | {
563
+ mode: "append";
564
+ args?: string[] | undefined;
565
+ } | {
566
+ mode: "replace";
567
+ argv: string[];
568
+ } | undefined;
569
+ env?: Record<string, string> | undefined;
570
+ disallowedTools?: string[] | undefined;
571
+ }>>, Record<string, {
572
+ command?: {
573
+ mode: "default";
574
+ } | {
575
+ mode: "append";
576
+ args?: string[] | undefined;
577
+ } | {
578
+ mode: "replace";
579
+ argv: string[];
580
+ } | undefined;
581
+ env?: Record<string, string> | undefined;
582
+ disallowedTools?: string[] | undefined;
583
+ }>, Record<string, {
584
+ command?: {
585
+ mode: "default";
586
+ } | {
587
+ mode: "append";
588
+ args?: string[] | undefined;
589
+ } | {
590
+ mode: "replace";
591
+ argv: string[];
592
+ } | undefined;
593
+ env?: Record<string, string> | undefined;
594
+ disallowedTools?: string[] | undefined;
595
+ }>>;
596
+ export type ProviderCommand = z.infer<typeof ProviderCommandSchema>;
597
+ export type ProviderRuntimeSettings = z.infer<typeof ProviderRuntimeSettingsSchema>;
598
+ export type ProviderProfileModel = z.infer<typeof ProviderProfileModelSchema>;
599
+ export type ProviderOverride = z.infer<typeof ProviderOverrideSchema>;
600
+ export type ProviderOverrides = z.infer<typeof ProviderOverridesSchema>;
601
+ export type AgentProviderRuntimeSettingsMap = Partial<Record<AgentProvider, ProviderRuntimeSettings>>;
602
+ //# sourceMappingURL=provider-config.d.ts.map