@saturn-universe/runtime-host 0.1.1 → 0.1.2-dev.10

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 (42) hide show
  1. package/dist/builtin-plugins/saturn-plugin-ctf/index.mjs +2 -2
  2. package/dist/builtin-plugins/saturn-plugin-ctf/package.json +1 -1
  3. package/dist/command-dispatch.js +2 -1
  4. package/dist/composition.d.ts +20 -55
  5. package/dist/composition.js +316 -89
  6. package/dist/context-extensions.d.ts +132 -10
  7. package/dist/context-extensions.js +30 -4
  8. package/dist/cordis/model-responses-plugin.d.ts +2 -1
  9. package/dist/cordis/model-responses-plugin.js +16 -11
  10. package/dist/cordis/plugin-lifecycle.d.ts +1 -0
  11. package/dist/cordis/plugin-lifecycle.js +3 -0
  12. package/dist/cordis/plugin-loader.d.ts +1 -1
  13. package/dist/cordis/plugin-loader.js +45 -10
  14. package/dist/cordis/sandbox-plugin.d.ts +1 -0
  15. package/dist/cordis/sandbox-plugin.js +1 -0
  16. package/dist/cordis/tools/builtin-agent-tools-plugin.d.ts +2 -2
  17. package/dist/cordis/tools/builtin-agent-tools-plugin.js +27 -3
  18. package/dist/cordis/tools/index.d.ts +5 -1
  19. package/dist/cordis/tools/index.js +3 -3
  20. package/dist/cordis/tools/process-manager-plugin.d.ts +1 -1
  21. package/dist/cordis/tools/process-manager-plugin.js +8 -8
  22. package/dist/cordis/tools/tools-core-plugin.js +54 -11
  23. package/dist/env-probe.js +33 -20
  24. package/dist/host-configuration.d.ts +4 -0
  25. package/dist/host-configuration.js +25 -1
  26. package/dist/index.js +9 -2
  27. package/dist/mode-configuration.d.ts +197 -0
  28. package/dist/mode-configuration.js +109 -0
  29. package/dist/modes.js +52 -10
  30. package/dist/provider-catalog.d.ts +301 -34
  31. package/dist/provider-catalog.js +80 -79
  32. package/dist/run-budget.d.ts +30 -7
  33. package/dist/run-budget.js +49 -5
  34. package/dist/runtime-tuning.d.ts +23 -0
  35. package/dist/runtime-tuning.js +68 -0
  36. package/dist/sandbox-manager.d.ts +2 -0
  37. package/dist/sandbox-manager.js +18 -12
  38. package/dist/session-mode-runtime.d.ts +99 -0
  39. package/dist/session-mode-runtime.js +306 -0
  40. package/dist/skills-runtime.d.ts +5 -2
  41. package/dist/skills-runtime.js +8 -5
  42. package/package.json +9 -9
@@ -1,16 +1,19 @@
1
1
  import { z } from 'zod';
2
2
  import type { WebSearchConfig } from './user-config.js';
3
- import type { ModelCapabilities, ModelPricing, ModelRef, ProviderProfile, ProviderProtocol, RunConfig, RuntimeLimits } from '@saturn-universe/core';
3
+ import type { HostSubmitInput, ModeDefinition, ModelCapabilities, ModelPricing, ModelRef, ProviderProfile, ProviderProtocol, RunConfig } from '@saturn-universe/core';
4
4
  import { mcpServersSchema } from './mcp-configuration.js';
5
5
  import { modeDefinitionsSchema, skillDefinitionsSchema } from './context-extensions.js';
6
6
  import { type ModeBudgetLayers } from './run-budget.js';
7
+ export { hardLimits } from './run-budget.js';
7
8
  export type ModelPricingConfig = ModelPricing;
8
- export declare const hardLimits: Required<RuntimeLimits>;
9
9
  declare const runDefaults: z.ZodObject<{
10
- model_timeout_ms: z.ZodOptional<z.ZodNumber>;
11
10
  model_idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
12
11
  model_total_timeout_ms: z.ZodOptional<z.ZodNumber>;
12
+ model_timeout_ms: z.ZodOptional<z.ZodNumber>;
13
+ stream_idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
14
+ request_total_timeout_ms: z.ZodOptional<z.ZodNumber>;
13
15
  tool_timeout_ms: z.ZodOptional<z.ZodNumber>;
16
+ shell_timeout_ms: z.ZodOptional<z.ZodNumber>;
14
17
  max_parallel_tools: z.ZodOptional<z.ZodNumber>;
15
18
  max_model_attempts: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">, z.ZodNull]>, z.ZodTransform<number, number | "unlimited" | null>>>;
16
19
  max_tool_calls: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">, z.ZodNull]>, z.ZodTransform<number, number | "unlimited" | null>>>;
@@ -28,8 +31,8 @@ declare const runDefaults: z.ZodObject<{
28
31
  policy_version: z.ZodOptional<z.ZodString>;
29
32
  tool_set_version: z.ZodOptional<z.ZodString>;
30
33
  planner: z.ZodOptional<z.ZodEnum<{
31
- auto: "auto";
32
34
  off: "off";
35
+ auto: "auto";
33
36
  }>>;
34
37
  search: z.ZodOptional<z.ZodEnum<{
35
38
  off: "off";
@@ -59,16 +62,69 @@ declare const teamPresetSchema: z.ZodObject<{
59
62
  }, z.core.$strict>;
60
63
  declare const provider: z.ZodObject<{
61
64
  base_url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
62
- protocol: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
63
- "openai-responses": "openai-responses";
64
- "openai-chat": "openai-chat";
65
- anthropic: "anthropic";
66
- gemini: "gemini";
67
- "anthropic-messages": "anthropic-messages";
68
- "google-gemini": "google-gemini";
69
- }>, z.ZodTransform<"openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined, "openai-responses" | "openai-chat" | "anthropic" | "gemini" | "anthropic-messages" | "google-gemini">>>;
70
65
  credential_ref: z.ZodString;
71
- models: z.ZodArray<z.ZodString>;
66
+ models: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPreprocess<z.ZodPipe<z.ZodArray<z.ZodTuple<[z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodObject<{
67
+ context_window: z.ZodOptional<z.ZodNumber>;
68
+ max_output_tokens: z.ZodOptional<z.ZodNumber>;
69
+ default_reasoning_effort: z.ZodOptional<z.ZodString>;
70
+ reasoning_model: z.ZodOptional<z.ZodBoolean>;
71
+ reasoning_efforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
+ tools: z.ZodOptional<z.ZodBoolean>;
73
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
74
+ streaming: z.ZodOptional<z.ZodBoolean>;
75
+ structured_output: z.ZodOptional<z.ZodBoolean>;
76
+ images: z.ZodOptional<z.ZodBoolean>;
77
+ pricing: z.ZodOptional<z.ZodObject<{
78
+ input_per_million: z.ZodOptional<z.ZodNumber>;
79
+ cached_input_per_million: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
80
+ output_per_million: z.ZodOptional<z.ZodNumber>;
81
+ }, z.core.$strict>>;
82
+ protocol: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
83
+ "openai-responses": "openai-responses";
84
+ "openai-chat": "openai-chat";
85
+ anthropic: "anthropic";
86
+ gemini: "gemini";
87
+ "anthropic-messages": "anthropic-messages";
88
+ "google-gemini": "google-gemini";
89
+ }>, z.ZodTransform<"openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined, "openai-responses" | "openai-chat" | "anthropic" | "gemini" | "anthropic-messages" | "google-gemini">>>;
90
+ base_url: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
91
+ }, z.core.$strict>], null>>, z.ZodTransform<Record<string, {
92
+ context_window?: number | undefined;
93
+ max_output_tokens?: number | undefined;
94
+ default_reasoning_effort?: string | undefined;
95
+ reasoning_model?: boolean | undefined;
96
+ reasoning_efforts?: string[] | undefined;
97
+ tools?: boolean | undefined;
98
+ parallel_tool_calls?: boolean | undefined;
99
+ streaming?: boolean | undefined;
100
+ structured_output?: boolean | undefined;
101
+ images?: boolean | undefined;
102
+ pricing?: {
103
+ input_per_million?: number | undefined;
104
+ cached_input_per_million?: number | undefined;
105
+ output_per_million?: number | undefined;
106
+ } | undefined;
107
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
108
+ base_url?: string | undefined;
109
+ }>, [string, {
110
+ context_window?: number | undefined;
111
+ max_output_tokens?: number | undefined;
112
+ default_reasoning_effort?: string | undefined;
113
+ reasoning_model?: boolean | undefined;
114
+ reasoning_efforts?: string[] | undefined;
115
+ tools?: boolean | undefined;
116
+ parallel_tool_calls?: boolean | undefined;
117
+ streaming?: boolean | undefined;
118
+ structured_output?: boolean | undefined;
119
+ images?: boolean | undefined;
120
+ pricing?: {
121
+ input_per_million?: number | undefined;
122
+ cached_input_per_million?: number | undefined;
123
+ output_per_million?: number | undefined;
124
+ } | undefined;
125
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
126
+ base_url?: string | undefined;
127
+ }][]>>, unknown>]>;
72
128
  revision: z.ZodOptional<z.ZodString>;
73
129
  codec_version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
74
130
  default_reasoning_effort: z.ZodOptional<z.ZodString>;
@@ -81,12 +137,22 @@ declare const provider: z.ZodObject<{
81
137
  tools: z.ZodOptional<z.ZodBoolean>;
82
138
  parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
83
139
  streaming: z.ZodOptional<z.ZodBoolean>;
140
+ structured_output: z.ZodOptional<z.ZodBoolean>;
84
141
  images: z.ZodOptional<z.ZodBoolean>;
85
142
  pricing: z.ZodOptional<z.ZodObject<{
86
143
  input_per_million: z.ZodOptional<z.ZodNumber>;
87
144
  cached_input_per_million: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
88
145
  output_per_million: z.ZodOptional<z.ZodNumber>;
89
146
  }, z.core.$strict>>;
147
+ protocol: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
148
+ "openai-responses": "openai-responses";
149
+ "openai-chat": "openai-chat";
150
+ anthropic: "anthropic";
151
+ gemini: "gemini";
152
+ "anthropic-messages": "anthropic-messages";
153
+ "google-gemini": "google-gemini";
154
+ }>, z.ZodTransform<"openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined, "openai-responses" | "openai-chat" | "anthropic" | "gemini" | "anthropic-messages" | "google-gemini">>>;
155
+ base_url: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
90
156
  }, z.core.$strict>], null>>, z.ZodTransform<Record<string, {
91
157
  context_window?: number | undefined;
92
158
  max_output_tokens?: number | undefined;
@@ -96,12 +162,15 @@ declare const provider: z.ZodObject<{
96
162
  tools?: boolean | undefined;
97
163
  parallel_tool_calls?: boolean | undefined;
98
164
  streaming?: boolean | undefined;
165
+ structured_output?: boolean | undefined;
99
166
  images?: boolean | undefined;
100
167
  pricing?: {
101
168
  input_per_million?: number | undefined;
102
169
  cached_input_per_million?: number | undefined;
103
170
  output_per_million?: number | undefined;
104
171
  } | undefined;
172
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
173
+ base_url?: string | undefined;
105
174
  }>, [string, {
106
175
  context_window?: number | undefined;
107
176
  max_output_tokens?: number | undefined;
@@ -111,13 +180,24 @@ declare const provider: z.ZodObject<{
111
180
  tools?: boolean | undefined;
112
181
  parallel_tool_calls?: boolean | undefined;
113
182
  streaming?: boolean | undefined;
183
+ structured_output?: boolean | undefined;
114
184
  images?: boolean | undefined;
115
185
  pricing?: {
116
186
  input_per_million?: number | undefined;
117
187
  cached_input_per_million?: number | undefined;
118
188
  output_per_million?: number | undefined;
119
189
  } | undefined;
190
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
191
+ base_url?: string | undefined;
120
192
  }][]>>, unknown>>;
193
+ protocol: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
194
+ "openai-responses": "openai-responses";
195
+ "openai-chat": "openai-chat";
196
+ anthropic: "anthropic";
197
+ gemini: "gemini";
198
+ "anthropic-messages": "anthropic-messages";
199
+ "google-gemini": "google-gemini";
200
+ }>, z.ZodTransform<"openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined, "openai-responses" | "openai-chat" | "anthropic" | "gemini" | "anthropic-messages" | "google-gemini">>>;
121
201
  }, z.core.$strict>;
122
202
  declare const catalogSchema: z.ZodObject<{
123
203
  version: z.ZodLiteral<1>;
@@ -184,16 +264,69 @@ declare const catalogSchema: z.ZodObject<{
184
264
  }, z.core.$strict>>>;
185
265
  providers: z.ZodOptional<z.ZodPreprocess<z.ZodPipe<z.ZodArray<z.ZodTuple<[z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodObject<{
186
266
  base_url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
187
- protocol: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
188
- "openai-responses": "openai-responses";
189
- "openai-chat": "openai-chat";
190
- anthropic: "anthropic";
191
- gemini: "gemini";
192
- "anthropic-messages": "anthropic-messages";
193
- "google-gemini": "google-gemini";
194
- }>, z.ZodTransform<"openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined, "openai-responses" | "openai-chat" | "anthropic" | "gemini" | "anthropic-messages" | "google-gemini">>>;
195
267
  credential_ref: z.ZodString;
196
- models: z.ZodArray<z.ZodString>;
268
+ models: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPreprocess<z.ZodPipe<z.ZodArray<z.ZodTuple<[z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodObject<{
269
+ context_window: z.ZodOptional<z.ZodNumber>;
270
+ max_output_tokens: z.ZodOptional<z.ZodNumber>;
271
+ default_reasoning_effort: z.ZodOptional<z.ZodString>;
272
+ reasoning_model: z.ZodOptional<z.ZodBoolean>;
273
+ reasoning_efforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
274
+ tools: z.ZodOptional<z.ZodBoolean>;
275
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
276
+ streaming: z.ZodOptional<z.ZodBoolean>;
277
+ structured_output: z.ZodOptional<z.ZodBoolean>;
278
+ images: z.ZodOptional<z.ZodBoolean>;
279
+ pricing: z.ZodOptional<z.ZodObject<{
280
+ input_per_million: z.ZodOptional<z.ZodNumber>;
281
+ cached_input_per_million: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
282
+ output_per_million: z.ZodOptional<z.ZodNumber>;
283
+ }, z.core.$strict>>;
284
+ protocol: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
285
+ "openai-responses": "openai-responses";
286
+ "openai-chat": "openai-chat";
287
+ anthropic: "anthropic";
288
+ gemini: "gemini";
289
+ "anthropic-messages": "anthropic-messages";
290
+ "google-gemini": "google-gemini";
291
+ }>, z.ZodTransform<"openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined, "openai-responses" | "openai-chat" | "anthropic" | "gemini" | "anthropic-messages" | "google-gemini">>>;
292
+ base_url: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
293
+ }, z.core.$strict>], null>>, z.ZodTransform<Record<string, {
294
+ context_window?: number | undefined;
295
+ max_output_tokens?: number | undefined;
296
+ default_reasoning_effort?: string | undefined;
297
+ reasoning_model?: boolean | undefined;
298
+ reasoning_efforts?: string[] | undefined;
299
+ tools?: boolean | undefined;
300
+ parallel_tool_calls?: boolean | undefined;
301
+ streaming?: boolean | undefined;
302
+ structured_output?: boolean | undefined;
303
+ images?: boolean | undefined;
304
+ pricing?: {
305
+ input_per_million?: number | undefined;
306
+ cached_input_per_million?: number | undefined;
307
+ output_per_million?: number | undefined;
308
+ } | undefined;
309
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
310
+ base_url?: string | undefined;
311
+ }>, [string, {
312
+ context_window?: number | undefined;
313
+ max_output_tokens?: number | undefined;
314
+ default_reasoning_effort?: string | undefined;
315
+ reasoning_model?: boolean | undefined;
316
+ reasoning_efforts?: string[] | undefined;
317
+ tools?: boolean | undefined;
318
+ parallel_tool_calls?: boolean | undefined;
319
+ streaming?: boolean | undefined;
320
+ structured_output?: boolean | undefined;
321
+ images?: boolean | undefined;
322
+ pricing?: {
323
+ input_per_million?: number | undefined;
324
+ cached_input_per_million?: number | undefined;
325
+ output_per_million?: number | undefined;
326
+ } | undefined;
327
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
328
+ base_url?: string | undefined;
329
+ }][]>>, unknown>]>;
197
330
  revision: z.ZodOptional<z.ZodString>;
198
331
  codec_version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
199
332
  default_reasoning_effort: z.ZodOptional<z.ZodString>;
@@ -206,12 +339,22 @@ declare const catalogSchema: z.ZodObject<{
206
339
  tools: z.ZodOptional<z.ZodBoolean>;
207
340
  parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
208
341
  streaming: z.ZodOptional<z.ZodBoolean>;
342
+ structured_output: z.ZodOptional<z.ZodBoolean>;
209
343
  images: z.ZodOptional<z.ZodBoolean>;
210
344
  pricing: z.ZodOptional<z.ZodObject<{
211
345
  input_per_million: z.ZodOptional<z.ZodNumber>;
212
346
  cached_input_per_million: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
213
347
  output_per_million: z.ZodOptional<z.ZodNumber>;
214
348
  }, z.core.$strict>>;
349
+ protocol: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
350
+ "openai-responses": "openai-responses";
351
+ "openai-chat": "openai-chat";
352
+ anthropic: "anthropic";
353
+ gemini: "gemini";
354
+ "anthropic-messages": "anthropic-messages";
355
+ "google-gemini": "google-gemini";
356
+ }>, z.ZodTransform<"openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined, "openai-responses" | "openai-chat" | "anthropic" | "gemini" | "anthropic-messages" | "google-gemini">>>;
357
+ base_url: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
215
358
  }, z.core.$strict>], null>>, z.ZodTransform<Record<string, {
216
359
  context_window?: number | undefined;
217
360
  max_output_tokens?: number | undefined;
@@ -221,12 +364,15 @@ declare const catalogSchema: z.ZodObject<{
221
364
  tools?: boolean | undefined;
222
365
  parallel_tool_calls?: boolean | undefined;
223
366
  streaming?: boolean | undefined;
367
+ structured_output?: boolean | undefined;
224
368
  images?: boolean | undefined;
225
369
  pricing?: {
226
370
  input_per_million?: number | undefined;
227
371
  cached_input_per_million?: number | undefined;
228
372
  output_per_million?: number | undefined;
229
373
  } | undefined;
374
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
375
+ base_url?: string | undefined;
230
376
  }>, [string, {
231
377
  context_window?: number | undefined;
232
378
  max_output_tokens?: number | undefined;
@@ -236,18 +382,46 @@ declare const catalogSchema: z.ZodObject<{
236
382
  tools?: boolean | undefined;
237
383
  parallel_tool_calls?: boolean | undefined;
238
384
  streaming?: boolean | undefined;
385
+ structured_output?: boolean | undefined;
239
386
  images?: boolean | undefined;
240
387
  pricing?: {
241
388
  input_per_million?: number | undefined;
242
389
  cached_input_per_million?: number | undefined;
243
390
  output_per_million?: number | undefined;
244
391
  } | undefined;
392
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
393
+ base_url?: string | undefined;
245
394
  }][]>>, unknown>>;
395
+ protocol: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
396
+ "openai-responses": "openai-responses";
397
+ "openai-chat": "openai-chat";
398
+ anthropic: "anthropic";
399
+ gemini: "gemini";
400
+ "anthropic-messages": "anthropic-messages";
401
+ "google-gemini": "google-gemini";
402
+ }>, z.ZodTransform<"openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined, "openai-responses" | "openai-chat" | "anthropic" | "gemini" | "anthropic-messages" | "google-gemini">>>;
246
403
  }, z.core.$strict>], null>>, z.ZodTransform<Record<string, {
247
404
  base_url: string;
248
405
  credential_ref: string;
249
- models: string[];
250
- protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
406
+ models: string[] | Record<string, {
407
+ context_window?: number | undefined;
408
+ max_output_tokens?: number | undefined;
409
+ default_reasoning_effort?: string | undefined;
410
+ reasoning_model?: boolean | undefined;
411
+ reasoning_efforts?: string[] | undefined;
412
+ tools?: boolean | undefined;
413
+ parallel_tool_calls?: boolean | undefined;
414
+ streaming?: boolean | undefined;
415
+ structured_output?: boolean | undefined;
416
+ images?: boolean | undefined;
417
+ pricing?: {
418
+ input_per_million?: number | undefined;
419
+ cached_input_per_million?: number | undefined;
420
+ output_per_million?: number | undefined;
421
+ } | undefined;
422
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
423
+ base_url?: string | undefined;
424
+ }>;
251
425
  revision?: string | undefined;
252
426
  codec_version?: 1 | 2 | undefined;
253
427
  default_reasoning_effort?: string | undefined;
@@ -260,18 +434,39 @@ declare const catalogSchema: z.ZodObject<{
260
434
  tools?: boolean | undefined;
261
435
  parallel_tool_calls?: boolean | undefined;
262
436
  streaming?: boolean | undefined;
437
+ structured_output?: boolean | undefined;
263
438
  images?: boolean | undefined;
264
439
  pricing?: {
265
440
  input_per_million?: number | undefined;
266
441
  cached_input_per_million?: number | undefined;
267
442
  output_per_million?: number | undefined;
268
443
  } | undefined;
444
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
445
+ base_url?: string | undefined;
269
446
  }> | undefined;
447
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
270
448
  }>, [string, {
271
449
  base_url: string;
272
450
  credential_ref: string;
273
- models: string[];
274
- protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
451
+ models: string[] | Record<string, {
452
+ context_window?: number | undefined;
453
+ max_output_tokens?: number | undefined;
454
+ default_reasoning_effort?: string | undefined;
455
+ reasoning_model?: boolean | undefined;
456
+ reasoning_efforts?: string[] | undefined;
457
+ tools?: boolean | undefined;
458
+ parallel_tool_calls?: boolean | undefined;
459
+ streaming?: boolean | undefined;
460
+ structured_output?: boolean | undefined;
461
+ images?: boolean | undefined;
462
+ pricing?: {
463
+ input_per_million?: number | undefined;
464
+ cached_input_per_million?: number | undefined;
465
+ output_per_million?: number | undefined;
466
+ } | undefined;
467
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
468
+ base_url?: string | undefined;
469
+ }>;
275
470
  revision?: string | undefined;
276
471
  codec_version?: 1 | 2 | undefined;
277
472
  default_reasoning_effort?: string | undefined;
@@ -284,20 +479,27 @@ declare const catalogSchema: z.ZodObject<{
284
479
  tools?: boolean | undefined;
285
480
  parallel_tool_calls?: boolean | undefined;
286
481
  streaming?: boolean | undefined;
482
+ structured_output?: boolean | undefined;
287
483
  images?: boolean | undefined;
288
484
  pricing?: {
289
485
  input_per_million?: number | undefined;
290
486
  cached_input_per_million?: number | undefined;
291
487
  output_per_million?: number | undefined;
292
488
  } | undefined;
489
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
490
+ base_url?: string | undefined;
293
491
  }> | undefined;
492
+ protocol?: "openai-responses" | "openai-chat" | "anthropic" | "gemini" | undefined;
294
493
  }][]>>, unknown>>;
295
494
  task_profiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
296
495
  run_defaults: z.ZodOptional<z.ZodObject<{
297
- model_timeout_ms: z.ZodOptional<z.ZodNumber>;
298
496
  model_idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
299
497
  model_total_timeout_ms: z.ZodOptional<z.ZodNumber>;
498
+ model_timeout_ms: z.ZodOptional<z.ZodNumber>;
499
+ stream_idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
500
+ request_total_timeout_ms: z.ZodOptional<z.ZodNumber>;
300
501
  tool_timeout_ms: z.ZodOptional<z.ZodNumber>;
502
+ shell_timeout_ms: z.ZodOptional<z.ZodNumber>;
301
503
  max_parallel_tools: z.ZodOptional<z.ZodNumber>;
302
504
  max_model_attempts: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">, z.ZodNull]>, z.ZodTransform<number, number | "unlimited" | null>>>;
303
505
  max_tool_calls: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">, z.ZodNull]>, z.ZodTransform<number, number | "unlimited" | null>>>;
@@ -315,8 +517,8 @@ declare const catalogSchema: z.ZodObject<{
315
517
  policy_version: z.ZodOptional<z.ZodString>;
316
518
  tool_set_version: z.ZodOptional<z.ZodString>;
317
519
  planner: z.ZodOptional<z.ZodEnum<{
318
- auto: "auto";
319
520
  off: "off";
521
+ auto: "auto";
320
522
  }>>;
321
523
  search: z.ZodOptional<z.ZodEnum<{
322
524
  off: "off";
@@ -421,16 +623,48 @@ declare const catalogSchema: z.ZodObject<{
421
623
  }, z.core.$strict>>;
422
624
  }, z.core.$strict>>;
423
625
  tools: z.ZodOptional<z.ZodObject<{
424
- workspace_tools: z.ZodOptional<z.ZodBoolean>;
425
- process_manager: z.ZodOptional<z.ZodBoolean>;
426
- builtin_agent_tools: z.ZodOptional<z.ZodBoolean>;
427
- allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
428
- denied_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
626
+ roles: z.ZodOptional<z.ZodObject<{
627
+ main: z.ZodOptional<z.ZodObject<{
628
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
629
+ denied_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
630
+ }, z.core.$strict>>;
631
+ worker: z.ZodOptional<z.ZodObject<{
632
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
633
+ denied_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
634
+ }, z.core.$strict>>;
635
+ }, z.core.$strict>>;
429
636
  permission_mode: z.ZodOptional<z.ZodEnum<{
430
637
  default: "default";
431
638
  strict: "strict";
432
639
  full: "full";
433
640
  }>>;
641
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
642
+ denied_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
643
+ workspace_tools: z.ZodOptional<z.ZodBoolean>;
644
+ process_manager: z.ZodOptional<z.ZodBoolean>;
645
+ builtin_agent_tools: z.ZodOptional<z.ZodBoolean>;
646
+ }, z.core.$strict>>;
647
+ reasoning: z.ZodOptional<z.ZodObject<{
648
+ main_effort: z.ZodOptional<z.ZodEnum<{
649
+ low: "low";
650
+ off: "off";
651
+ none: "none";
652
+ minimal: "minimal";
653
+ medium: "medium";
654
+ high: "high";
655
+ xhigh: "xhigh";
656
+ max: "max";
657
+ }>>;
658
+ worker_effort: z.ZodOptional<z.ZodEnum<{
659
+ low: "low";
660
+ off: "off";
661
+ none: "none";
662
+ minimal: "minimal";
663
+ medium: "medium";
664
+ high: "high";
665
+ xhigh: "xhigh";
666
+ max: "max";
667
+ }>>;
434
668
  }, z.core.$strict>>;
435
669
  plugins: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPreprocess<z.ZodPipe<z.ZodArray<z.ZodTuple<[z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodObject<{
436
670
  allowed_tools: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
@@ -651,10 +885,21 @@ declare const catalogSchema: z.ZodObject<{
651
885
  }, z.core.$strict>>;
652
886
  team: z.ZodOptional<z.ZodObject<{
653
887
  max_depth: z.ZodOptional<z.ZodNumber>;
888
+ default_concurrency: z.ZodOptional<z.ZodNumber>;
889
+ default_preset: z.ZodOptional<z.ZodString>;
890
+ max_concurrency: z.ZodOptional<z.ZodNumber>;
891
+ max_active_depth1: z.ZodOptional<z.ZodNumber>;
892
+ worker_soft_checkpoint_ms: z.ZodOptional<z.ZodNumber>;
654
893
  async_coordinator: z.ZodOptional<z.ZodBoolean>;
655
894
  coordinator_poll_interval_ms: z.ZodOptional<z.ZodNumber>;
656
895
  }, z.core.$strict>>;
657
896
  limits: z.ZodOptional<z.ZodObject<{
897
+ model_timeout_ms: z.ZodOptional<z.ZodNumber>;
898
+ stream_idle_timeout_ms: z.ZodOptional<z.ZodNumber>;
899
+ request_total_timeout_ms: z.ZodOptional<z.ZodNumber>;
900
+ tool_timeout_ms: z.ZodOptional<z.ZodNumber>;
901
+ shell_timeout_ms: z.ZodOptional<z.ZodNumber>;
902
+ max_parallel_tools: z.ZodOptional<z.ZodNumber>;
658
903
  max_model_attempts: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">, z.ZodNull]>, z.ZodTransform<number, number | "unlimited" | null>>>;
659
904
  max_tool_calls: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">, z.ZodNull]>, z.ZodTransform<number, number | "unlimited" | null>>>;
660
905
  max_steps: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">, z.ZodNull]>, z.ZodTransform<number, number | "unlimited" | null>>>;
@@ -663,6 +908,24 @@ declare const catalogSchema: z.ZodObject<{
663
908
  wall_time_ms: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">, z.ZodNull]>, z.ZodTransform<number, number | "unlimited" | null>>>;
664
909
  subagent_wall_time_ms: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">, z.ZodNull]>, z.ZodTransform<number, number | "unlimited" | null>>>;
665
910
  }, z.core.$strict>>;
911
+ retry: z.ZodOptional<z.ZodObject<{
912
+ model_max_attempts_per_call: z.ZodOptional<z.ZodNumber>;
913
+ tool_max_attempts_per_call: z.ZodOptional<z.ZodNumber>;
914
+ base_delay_ms: z.ZodOptional<z.ZodNumber>;
915
+ max_delay_ms: z.ZodOptional<z.ZodNumber>;
916
+ }, z.core.$strict>>;
917
+ compaction: z.ZodOptional<z.ZodObject<{
918
+ enabled: z.ZodOptional<z.ZodBoolean>;
919
+ threshold_ratio: z.ZodOptional<z.ZodNumber>;
920
+ max_headroom_tokens: z.ZodOptional<z.ZodNumber>;
921
+ headroom_ratio: z.ZodOptional<z.ZodNumber>;
922
+ min_recent_steps: z.ZodOptional<z.ZodNumber>;
923
+ tail_window_ratio: z.ZodOptional<z.ZodNumber>;
924
+ preflight_window_ratio: z.ZodOptional<z.ZodNumber>;
925
+ max_halvings: z.ZodOptional<z.ZodNumber>;
926
+ min_prefix_chars: z.ZodOptional<z.ZodNumber>;
927
+ summary_timeout_ms: z.ZodOptional<z.ZodNumber>;
928
+ }, z.core.$strict>>;
666
929
  max_active_challenges: z.ZodOptional<z.ZodNumber>;
667
930
  max_helpers_per_challenge: z.ZodOptional<z.ZodNumber>;
668
931
  per_challenge_wall_time_ms: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">, z.ZodNull]>, z.ZodTransform<number, number | "unlimited" | null>>>;
@@ -748,7 +1011,11 @@ export interface ResolveRunDefaultsOptions {
748
1011
  readonly capabilities?: ModelCapabilities;
749
1012
  readonly profileReasoningEffort?: string;
750
1013
  readonly modeBudget?: ModeBudgetLayers;
1014
+ readonly modeRuntime?: Pick<ModeDefinition, 'retry' | 'compaction'>;
1015
+ readonly overrides?: Pick<NonNullable<HostSubmitInput['config']>, 'limits' | 'retry' | 'compaction'>;
751
1016
  }
752
1017
  export declare function resolveRunDefaults(model: ModelRef, defaults?: ProviderCatalog['runDefaults'], options?: ResolveRunDefaultsOptions): RunConfig;
753
1018
  export declare function resolveWorkerReasoning(config: RunConfig, capabilities?: ModelCapabilities): RunConfig;
754
- export {};
1019
+ export declare function resolveDefaultReasoning(defaults?: ProviderCatalog['runDefaults'], options?: Pick<ResolveRunDefaultsOptions, 'capabilities' | 'profileReasoningEffort'> & {
1020
+ readonly modeMainReasoningEffort?: string;
1021
+ }): RunConfig['responses']['reasoning'] | undefined;