@saturn-universe/protocol 0.0.0-stage → 0.1.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.
@@ -0,0 +1,839 @@
1
+ import { z } from 'zod';
2
+ import type { HostProtocolRequest, Id, PlannerConfig, ProtocolReply, TeamConfig } from '@saturn-universe/core';
3
+ import type { Assert, Equal, Wire } from './wire-shapes.js';
4
+ export { encodeIpcFrame, IpcFrameReader, maxFrameBytes, maxReplyBodyBytes } from './ipc-framing.js';
5
+ export { parseSessionExportResult, parseSessionListResult, parseSessionSummaryResult, } from './session-results.js';
6
+ export type { SessionSummary, SessionUsageReport, SessionUsageResult } from './session-results.js';
7
+ export { parseRunProgressResult } from './run-event-results.js';
8
+ export type { RunQueryResult } from './run-query-result.js';
9
+ export { parseHostStatusResult } from './host-status.js';
10
+ export { validHostCommandResult, type HostCommandResults } from './host-results.js';
11
+ export type { TeamInboxResult, TeamQueryResult } from './team-results.js';
12
+ export type { HostMcpServerSummary, HostProfileSummary, HostStatusSnapshot } from './host-status.js';
13
+ export type { ModelDisplay } from './wire-shapes.js';
14
+ export * from './endpoint.js';
15
+ export type { AgentContextMetrics, BranchWorkspaceHandleLike, HostSandboxStatus, LiveAgentTelemetry, ModeSummary, PermissionMode, PlannerConfig, ProtocolReply, ProtocolRequest, RunCompletionContext, RunCompletionDecision, RunCompletionDecisionKind, RunContinuationConfig, RunProgressApproval, RunProgressLiveAgent, RunProgressPage, RunTimelinePage, RuntimeCommand, SandboxBackendKind, SandboxConfig, SandboxFallbackPolicy, SandboxNetworkMode, SandboxReadonlyMount, SandboxResourceLimits, SandboxRetentionMode, SandboxRetentionPolicy, SandboxScopeKind, SearchBranchState, SearchHypothesisSeed, SearchTreeState, SearchWorkspaceKind, SessionDetails, SessionExportPage, SessionExportRecord, SessionHistoryMessage, SessionHistoryPage, SessionListItem, SessionUsageBucket, SessionUsageCounts, TeamHintConfig, TeamPlanState, TeamState, TerminalRunStatus, TodoItem, TodoStatus, TreeSearchConfig, TreeSearchTrigger, WorkerSandboxProfile, WorkspaceSnapshotPort, } from '@saturn-universe/core';
16
+ export { contextExtensionRefPattern, DEFAULT_MODE_REF, DEFAULT_SESSION_EXPORT_LIMIT, DEFAULT_SESSION_LIST_LIMIT, isEventPosition, isTerminalRunEventType, isTerminalRunStatus, matchesModeSelector, MAX_RUN_PROGRESS_PAGE_SIZE, MAX_SESSION_HISTORY_PAGE_SIZE, mergeAgentContextMetrics, modeSelectorPattern, resolveModeSelector, validatePlannerConfig, } from '@saturn-universe/core';
17
+ export declare function parseReconciliationToolResult(value: unknown): {
18
+ toolCallId: Id<"tool-call">;
19
+ effect: "unknown" | "none" | "applied";
20
+ outcome: {
21
+ status: "success";
22
+ content: ({
23
+ type: "text";
24
+ text: string;
25
+ } | {
26
+ type: "image";
27
+ artifact: {
28
+ artifactId: string;
29
+ sha256: string;
30
+ mediaType: string;
31
+ byteLength: number;
32
+ };
33
+ alt?: string | undefined;
34
+ } | {
35
+ type: "file";
36
+ artifact: {
37
+ artifactId: string;
38
+ sha256: string;
39
+ mediaType: string;
40
+ byteLength: number;
41
+ };
42
+ name: string;
43
+ })[];
44
+ data?: z.core.util.JSONType | undefined;
45
+ } | {
46
+ status: "error" | "cancelled" | "denied";
47
+ error: {
48
+ code: string;
49
+ message: string;
50
+ retryable: boolean;
51
+ };
52
+ data?: z.core.util.JSONType | undefined;
53
+ };
54
+ evidenceRef?: string | undefined;
55
+ } | undefined;
56
+ declare const commandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
57
+ type: z.ZodLiteral<"surface.compact">;
58
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
59
+ throughTurnId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"turn">, string>>>;
60
+ summary: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$strict>, z.ZodObject<{
62
+ type: z.ZodLiteral<"session.usage">;
63
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
64
+ }, z.core.$strict>, z.ZodObject<{
65
+ type: z.ZodLiteral<"session.list">;
66
+ workspaceId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"workspace">, string>>>;
67
+ limit: z.ZodOptional<z.ZodNumber>;
68
+ }, z.core.$strict>, z.ZodObject<{
69
+ type: z.ZodLiteral<"session.export">;
70
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
71
+ after: z.ZodOptional<z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>>;
72
+ through: z.ZodOptional<z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>>;
73
+ limit: z.ZodOptional<z.ZodNumber>;
74
+ }, z.core.$strict>, z.ZodObject<{
75
+ type: z.ZodLiteral<"run.progress">;
76
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
77
+ after: z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>;
78
+ limit: z.ZodNumber;
79
+ interactive: z.ZodOptional<z.ZodBoolean>;
80
+ }, z.core.$strict>, z.ZodObject<{
81
+ type: z.ZodLiteral<"workspace.create">;
82
+ rootUri: z.ZodString;
83
+ }, z.core.$strict>, z.ZodObject<{
84
+ type: z.ZodLiteral<"session.create">;
85
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"workspace">, string>>;
86
+ title: z.ZodString;
87
+ }, z.core.$strict>, z.ZodObject<{
88
+ type: z.ZodLiteral<"workspace.query">;
89
+ }, z.core.$strict>, z.ZodObject<{
90
+ type: z.ZodLiteral<"session.query">;
91
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ type: z.ZodLiteral<"session.btw">;
94
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
95
+ agentSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"agent-session">, string>>>;
96
+ question: z.ZodString;
97
+ }, z.core.$strict>, z.ZodObject<{
98
+ type: z.ZodLiteral<"session.history">;
99
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
100
+ agentSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"agent-session">, string>>>;
101
+ through: z.ZodOptional<z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>>;
102
+ before: z.ZodOptional<z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>>;
103
+ limit: z.ZodNumber;
104
+ }, z.core.$strict>, z.ZodObject<{
105
+ type: z.ZodLiteral<"session.history.message">;
106
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
107
+ agentSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"agent-session">, string>>>;
108
+ position: z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>;
109
+ offset: z.ZodNumber;
110
+ }, z.core.$strict>, z.ZodObject<{
111
+ type: z.ZodLiteral<"run.model">;
112
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
113
+ }, z.core.$strict>, z.ZodObject<{
114
+ type: z.ZodLiteral<"run.timeline">;
115
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
116
+ after: z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>;
117
+ }, z.core.$strict>, z.ZodObject<{
118
+ type: z.ZodLiteral<"run.query">;
119
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
120
+ }, z.core.$strict>, z.ZodObject<{
121
+ type: z.ZodLiteral<"team.query">;
122
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
123
+ }, z.core.$strict>, z.ZodObject<{
124
+ type: z.ZodLiteral<"team.inbox">;
125
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
126
+ memberId: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$strict>, z.ZodObject<{
128
+ type: z.ZodLiteral<"surface.query">;
129
+ agentSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"agent-session">, string>>;
130
+ }, z.core.$strict>, z.ZodObject<{
131
+ type: z.ZodLiteral<"context.query">;
132
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
133
+ }, z.core.$strict>, z.ZodObject<{
134
+ type: z.ZodLiteral<"host.status">;
135
+ }, z.core.$strict>, z.ZodObject<{
136
+ type: z.ZodLiteral<"host.shutdown">;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ type: z.ZodLiteral<"run.submit">;
139
+ input: z.ZodObject<{
140
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"workspace">, string>>;
141
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
142
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
143
+ type: z.ZodLiteral<"text">;
144
+ text: z.ZodString;
145
+ }, z.core.$strict>, z.ZodObject<{
146
+ type: z.ZodLiteral<"image">;
147
+ artifact: z.ZodObject<{
148
+ artifactId: z.ZodString;
149
+ sha256: z.ZodString;
150
+ mediaType: z.ZodString;
151
+ byteLength: z.ZodNumber;
152
+ }, z.core.$strict>;
153
+ alt: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strict>, z.ZodObject<{
155
+ type: z.ZodLiteral<"file">;
156
+ artifact: z.ZodObject<{
157
+ artifactId: z.ZodString;
158
+ sha256: z.ZodString;
159
+ mediaType: z.ZodString;
160
+ byteLength: z.ZodNumber;
161
+ }, z.core.$strict>;
162
+ name: z.ZodString;
163
+ }, z.core.$strict>], "type">>;
164
+ config: z.ZodOptional<z.ZodObject<{
165
+ modeRef: z.ZodOptional<z.ZodString>;
166
+ model: z.ZodOptional<z.ZodOptional<z.ZodObject<{
167
+ providerId: z.ZodString;
168
+ modelId: z.ZodString;
169
+ profileRef: z.ZodString;
170
+ }, z.core.$strict>>>;
171
+ policyVersion: z.ZodOptional<z.ZodString>;
172
+ toolSetVersion: z.ZodOptional<z.ZodString>;
173
+ streamText: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
174
+ workerReasoningEffort: z.ZodOptional<z.ZodOptional<z.ZodString>>;
175
+ disabledSkills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
176
+ limits: z.ZodOptional<z.ZodObject<{
177
+ maxModelAttempts: z.ZodNumber;
178
+ maxToolCalls: z.ZodNumber;
179
+ maxSteps: z.ZodNumber;
180
+ maxTotalTokens: z.ZodNumber;
181
+ subagentMaxModelAttempts: z.ZodOptional<z.ZodNumber>;
182
+ wallTimeMs: z.ZodOptional<z.ZodNumber>;
183
+ subagentWallTimeMs: z.ZodOptional<z.ZodNumber>;
184
+ modelTimeoutMs: z.ZodNumber;
185
+ streamIdleTimeoutMs: z.ZodOptional<z.ZodNumber>;
186
+ requestTotalTimeoutMs: z.ZodOptional<z.ZodNumber>;
187
+ toolTimeoutMs: z.ZodNumber;
188
+ shellTimeoutMs: z.ZodOptional<z.ZodNumber>;
189
+ maxParallelTools: z.ZodNumber;
190
+ }, z.core.$strict>>;
191
+ retry: z.ZodOptional<z.ZodObject<{
192
+ modelMaxAttemptsPerCall: z.ZodNumber;
193
+ toolMaxAttemptsPerCall: z.ZodNumber;
194
+ baseDelayMs: z.ZodNumber;
195
+ maxDelayMs: z.ZodNumber;
196
+ }, z.core.$strict>>;
197
+ responses: z.ZodOptional<z.ZodObject<{
198
+ storage: z.ZodLiteral<"local_stateless">;
199
+ reasoning: z.ZodOptional<z.ZodObject<{
200
+ effort: z.ZodOptional<z.ZodString>;
201
+ summary: z.ZodOptional<z.ZodString>;
202
+ context: z.ZodOptional<z.ZodString>;
203
+ }, z.core.$strict>>;
204
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
205
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
206
+ extensionOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
207
+ }, z.core.$strict>>;
208
+ team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
209
+ rootId: z.ZodOptional<z.ZodString>;
210
+ members: z.ZodArray<z.ZodObject<{
211
+ id: z.ZodString;
212
+ parent: z.ZodString;
213
+ task: z.ZodString;
214
+ sandboxProfile: z.ZodOptional<z.ZodEnum<{
215
+ default: "default";
216
+ readonly: "readonly";
217
+ build: "build";
218
+ }>>;
219
+ workSubpath: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strict>>;
221
+ concurrency: z.ZodOptional<z.ZodNumber>;
222
+ }, z.core.$strict>>>;
223
+ teamMaxDepth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
224
+ agentDepth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
225
+ teamAsyncCoordinator: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
226
+ coordinatorPollIntervalMs: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
227
+ workerSoftCheckpointMs: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
228
+ teamMaxActiveDepth1: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
229
+ teamMaxConcurrency: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
230
+ teamHint: z.ZodOptional<z.ZodOptional<z.ZodObject<{
231
+ force: z.ZodOptional<z.ZodBoolean>;
232
+ concurrency: z.ZodOptional<z.ZodNumber>;
233
+ maxMembers: z.ZodOptional<z.ZodNumber>;
234
+ }, z.core.$strict>>>;
235
+ planner: z.ZodOptional<z.ZodOptional<z.ZodObject<{
236
+ mode: z.ZodEnum<{
237
+ auto: "auto";
238
+ force_team: "force_team";
239
+ }>;
240
+ maxMembers: z.ZodOptional<z.ZodNumber>;
241
+ concurrency: z.ZodOptional<z.ZodNumber>;
242
+ search: z.ZodOptional<z.ZodObject<{
243
+ mode: z.ZodEnum<{
244
+ off: "off";
245
+ selective: "selective";
246
+ }>;
247
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
248
+ planning_phase: "planning_phase";
249
+ consecutive_failures: "consecutive_failures";
250
+ stagnation: "stagnation";
251
+ model_fork: "model_fork";
252
+ }>>>;
253
+ branchFactor: z.ZodOptional<z.ZodNumber>;
254
+ maxRollouts: z.ZodOptional<z.ZodNumber>;
255
+ maxDepth: z.ZodOptional<z.ZodNumber>;
256
+ concurrency: z.ZodOptional<z.ZodNumber>;
257
+ maxBudgetRatio: z.ZodOptional<z.ZodNumber>;
258
+ maxBranchSteps: z.ZodOptional<z.ZodNumber>;
259
+ isolation: z.ZodOptional<z.ZodEnum<{
260
+ readonly: "readonly";
261
+ isolated: "isolated";
262
+ }>>;
263
+ maxCopyBytes: z.ZodOptional<z.ZodNumber>;
264
+ }, z.core.$strict>>;
265
+ }, z.core.$strict>>>;
266
+ continuation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
267
+ enabled: z.ZodOptional<z.ZodBoolean>;
268
+ maxTurns: z.ZodOptional<z.ZodNumber>;
269
+ }, z.core.$strict>>>;
270
+ search: z.ZodOptional<z.ZodOptional<z.ZodObject<{
271
+ mode: z.ZodEnum<{
272
+ off: "off";
273
+ selective: "selective";
274
+ }>;
275
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
276
+ planning_phase: "planning_phase";
277
+ consecutive_failures: "consecutive_failures";
278
+ stagnation: "stagnation";
279
+ model_fork: "model_fork";
280
+ }>>>;
281
+ branchFactor: z.ZodOptional<z.ZodNumber>;
282
+ maxRollouts: z.ZodOptional<z.ZodNumber>;
283
+ maxDepth: z.ZodOptional<z.ZodNumber>;
284
+ concurrency: z.ZodOptional<z.ZodNumber>;
285
+ maxBudgetRatio: z.ZodOptional<z.ZodNumber>;
286
+ maxBranchSteps: z.ZodOptional<z.ZodNumber>;
287
+ isolation: z.ZodOptional<z.ZodEnum<{
288
+ readonly: "readonly";
289
+ isolated: "isolated";
290
+ }>>;
291
+ maxCopyBytes: z.ZodOptional<z.ZodNumber>;
292
+ }, z.core.$strict>>>;
293
+ }, z.core.$strict>>;
294
+ model: z.ZodOptional<z.ZodObject<{
295
+ providerId: z.ZodString;
296
+ modelId: z.ZodString;
297
+ profileRef: z.ZodString;
298
+ }, z.core.$strict>>;
299
+ profile: z.ZodOptional<z.ZodString>;
300
+ taskProfile: z.ZodOptional<z.ZodString>;
301
+ skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
302
+ workingDirectoryUri: z.ZodOptional<z.ZodString>;
303
+ planner: z.ZodOptional<z.ZodObject<{
304
+ mode: z.ZodEnum<{
305
+ auto: "auto";
306
+ force_team: "force_team";
307
+ }>;
308
+ maxMembers: z.ZodOptional<z.ZodNumber>;
309
+ concurrency: z.ZodOptional<z.ZodNumber>;
310
+ search: z.ZodOptional<z.ZodObject<{
311
+ mode: z.ZodEnum<{
312
+ off: "off";
313
+ selective: "selective";
314
+ }>;
315
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
316
+ planning_phase: "planning_phase";
317
+ consecutive_failures: "consecutive_failures";
318
+ stagnation: "stagnation";
319
+ model_fork: "model_fork";
320
+ }>>>;
321
+ branchFactor: z.ZodOptional<z.ZodNumber>;
322
+ maxRollouts: z.ZodOptional<z.ZodNumber>;
323
+ maxDepth: z.ZodOptional<z.ZodNumber>;
324
+ concurrency: z.ZodOptional<z.ZodNumber>;
325
+ maxBudgetRatio: z.ZodOptional<z.ZodNumber>;
326
+ maxBranchSteps: z.ZodOptional<z.ZodNumber>;
327
+ isolation: z.ZodOptional<z.ZodEnum<{
328
+ readonly: "readonly";
329
+ isolated: "isolated";
330
+ }>>;
331
+ maxCopyBytes: z.ZodOptional<z.ZodNumber>;
332
+ }, z.core.$strict>>;
333
+ }, z.core.$strict>>;
334
+ teamHint: z.ZodOptional<z.ZodObject<{
335
+ force: z.ZodOptional<z.ZodBoolean>;
336
+ concurrency: z.ZodOptional<z.ZodNumber>;
337
+ maxMembers: z.ZodOptional<z.ZodNumber>;
338
+ }, z.core.$strict>>;
339
+ teamPreset: z.ZodOptional<z.ZodString>;
340
+ permissionMode: z.ZodOptional<z.ZodEnum<{
341
+ default: "default";
342
+ strict: "strict";
343
+ full: "full";
344
+ }>>;
345
+ }, z.core.$strict>;
346
+ }, z.core.$strict>, z.ZodObject<{
347
+ type: z.ZodLiteral<"run.cancel">;
348
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
349
+ reason: z.ZodString;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ type: z.ZodLiteral<"run.steer">;
352
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
353
+ agentSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"agent-session">, string>>>;
354
+ content: z.ZodString;
355
+ }, z.core.$strict>, z.ZodObject<{
356
+ type: z.ZodLiteral<"run.resume">;
357
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
358
+ }, z.core.$strict>, z.ZodObject<{
359
+ type: z.ZodLiteral<"tool.approval.resolve">;
360
+ resume: z.ZodOptional<z.ZodBoolean>;
361
+ decision: z.ZodObject<{
362
+ approvalId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"approval">, string>>;
363
+ toolCallId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"tool-call">, string>>;
364
+ approved: z.ZodBoolean;
365
+ decidedBy: z.ZodString;
366
+ decidedAt: z.ZodString;
367
+ reason: z.ZodString;
368
+ }, z.core.$strict>;
369
+ }, z.core.$strict>, z.ZodObject<{
370
+ type: z.ZodLiteral<"tool.reconcile">;
371
+ toolCallId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"tool-call">, string>>;
372
+ decision: z.ZodDiscriminatedUnion<[z.ZodObject<{
373
+ kind: z.ZodLiteral<"completed">;
374
+ result: z.ZodObject<{
375
+ toolCallId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"tool-call">, string>>;
376
+ effect: z.ZodEnum<{
377
+ unknown: "unknown";
378
+ none: "none";
379
+ applied: "applied";
380
+ }>;
381
+ evidenceRef: z.ZodOptional<z.ZodString>;
382
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
383
+ status: z.ZodLiteral<"success">;
384
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
385
+ type: z.ZodLiteral<"text">;
386
+ text: z.ZodString;
387
+ }, z.core.$strict>, z.ZodObject<{
388
+ type: z.ZodLiteral<"image">;
389
+ artifact: z.ZodObject<{
390
+ artifactId: z.ZodString;
391
+ sha256: z.ZodString;
392
+ mediaType: z.ZodString;
393
+ byteLength: z.ZodNumber;
394
+ }, z.core.$strict>;
395
+ alt: z.ZodOptional<z.ZodString>;
396
+ }, z.core.$strict>, z.ZodObject<{
397
+ type: z.ZodLiteral<"file">;
398
+ artifact: z.ZodObject<{
399
+ artifactId: z.ZodString;
400
+ sha256: z.ZodString;
401
+ mediaType: z.ZodString;
402
+ byteLength: z.ZodNumber;
403
+ }, z.core.$strict>;
404
+ name: z.ZodString;
405
+ }, z.core.$strict>], "type">>;
406
+ data: z.ZodOptional<z.ZodJSONSchema>;
407
+ }, z.core.$strict>, z.ZodObject<{
408
+ status: z.ZodEnum<{
409
+ error: "error";
410
+ cancelled: "cancelled";
411
+ denied: "denied";
412
+ }>;
413
+ error: z.ZodObject<{
414
+ code: z.ZodString;
415
+ message: z.ZodString;
416
+ retryable: z.ZodBoolean;
417
+ }, z.core.$strict>;
418
+ data: z.ZodOptional<z.ZodJSONSchema>;
419
+ }, z.core.$strict>], "status">;
420
+ }, z.core.$strict>;
421
+ evidenceRef: z.ZodString;
422
+ }, z.core.$strict>, z.ZodObject<{
423
+ kind: z.ZodLiteral<"not_applied">;
424
+ evidenceRef: z.ZodString;
425
+ }, z.core.$strict>, z.ZodObject<{
426
+ kind: z.ZodLiteral<"abandon_unknown">;
427
+ acceptedBy: z.ZodString;
428
+ reason: z.ZodString;
429
+ }, z.core.$strict>], "kind">;
430
+ }, z.core.$strict>], "type">;
431
+ export type HostCommandInput = z.input<typeof commandSchema>;
432
+ declare const requestSchema: z.ZodObject<{
433
+ protocolVersion: z.ZodLiteral<1>;
434
+ requestId: z.ZodString;
435
+ commandId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"command">, string>>;
436
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
437
+ type: z.ZodLiteral<"surface.compact">;
438
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
439
+ throughTurnId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"turn">, string>>>;
440
+ summary: z.ZodOptional<z.ZodString>;
441
+ }, z.core.$strict>, z.ZodObject<{
442
+ type: z.ZodLiteral<"session.usage">;
443
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
444
+ }, z.core.$strict>, z.ZodObject<{
445
+ type: z.ZodLiteral<"session.list">;
446
+ workspaceId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"workspace">, string>>>;
447
+ limit: z.ZodOptional<z.ZodNumber>;
448
+ }, z.core.$strict>, z.ZodObject<{
449
+ type: z.ZodLiteral<"session.export">;
450
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
451
+ after: z.ZodOptional<z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>>;
452
+ through: z.ZodOptional<z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>>;
453
+ limit: z.ZodOptional<z.ZodNumber>;
454
+ }, z.core.$strict>, z.ZodObject<{
455
+ type: z.ZodLiteral<"run.progress">;
456
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
457
+ after: z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>;
458
+ limit: z.ZodNumber;
459
+ interactive: z.ZodOptional<z.ZodBoolean>;
460
+ }, z.core.$strict>, z.ZodObject<{
461
+ type: z.ZodLiteral<"workspace.create">;
462
+ rootUri: z.ZodString;
463
+ }, z.core.$strict>, z.ZodObject<{
464
+ type: z.ZodLiteral<"session.create">;
465
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"workspace">, string>>;
466
+ title: z.ZodString;
467
+ }, z.core.$strict>, z.ZodObject<{
468
+ type: z.ZodLiteral<"workspace.query">;
469
+ }, z.core.$strict>, z.ZodObject<{
470
+ type: z.ZodLiteral<"session.query">;
471
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
472
+ }, z.core.$strict>, z.ZodObject<{
473
+ type: z.ZodLiteral<"session.btw">;
474
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
475
+ agentSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"agent-session">, string>>>;
476
+ question: z.ZodString;
477
+ }, z.core.$strict>, z.ZodObject<{
478
+ type: z.ZodLiteral<"session.history">;
479
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
480
+ agentSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"agent-session">, string>>>;
481
+ through: z.ZodOptional<z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>>;
482
+ before: z.ZodOptional<z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>>;
483
+ limit: z.ZodNumber;
484
+ }, z.core.$strict>, z.ZodObject<{
485
+ type: z.ZodLiteral<"session.history.message">;
486
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
487
+ agentSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"agent-session">, string>>>;
488
+ position: z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>;
489
+ offset: z.ZodNumber;
490
+ }, z.core.$strict>, z.ZodObject<{
491
+ type: z.ZodLiteral<"run.model">;
492
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
493
+ }, z.core.$strict>, z.ZodObject<{
494
+ type: z.ZodLiteral<"run.timeline">;
495
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
496
+ after: z.ZodPipe<z.ZodCustom<string, string>, z.ZodTransform<import("@saturn-universe/core").EventPosition, string>>;
497
+ }, z.core.$strict>, z.ZodObject<{
498
+ type: z.ZodLiteral<"run.query">;
499
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
500
+ }, z.core.$strict>, z.ZodObject<{
501
+ type: z.ZodLiteral<"team.query">;
502
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
503
+ }, z.core.$strict>, z.ZodObject<{
504
+ type: z.ZodLiteral<"team.inbox">;
505
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
506
+ memberId: z.ZodOptional<z.ZodString>;
507
+ }, z.core.$strict>, z.ZodObject<{
508
+ type: z.ZodLiteral<"surface.query">;
509
+ agentSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"agent-session">, string>>;
510
+ }, z.core.$strict>, z.ZodObject<{
511
+ type: z.ZodLiteral<"context.query">;
512
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
513
+ }, z.core.$strict>, z.ZodObject<{
514
+ type: z.ZodLiteral<"host.status">;
515
+ }, z.core.$strict>, z.ZodObject<{
516
+ type: z.ZodLiteral<"host.shutdown">;
517
+ }, z.core.$strict>, z.ZodObject<{
518
+ type: z.ZodLiteral<"run.submit">;
519
+ input: z.ZodObject<{
520
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"workspace">, string>>;
521
+ sessionId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"session">, string>>;
522
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
523
+ type: z.ZodLiteral<"text">;
524
+ text: z.ZodString;
525
+ }, z.core.$strict>, z.ZodObject<{
526
+ type: z.ZodLiteral<"image">;
527
+ artifact: z.ZodObject<{
528
+ artifactId: z.ZodString;
529
+ sha256: z.ZodString;
530
+ mediaType: z.ZodString;
531
+ byteLength: z.ZodNumber;
532
+ }, z.core.$strict>;
533
+ alt: z.ZodOptional<z.ZodString>;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ type: z.ZodLiteral<"file">;
536
+ artifact: z.ZodObject<{
537
+ artifactId: z.ZodString;
538
+ sha256: z.ZodString;
539
+ mediaType: z.ZodString;
540
+ byteLength: z.ZodNumber;
541
+ }, z.core.$strict>;
542
+ name: z.ZodString;
543
+ }, z.core.$strict>], "type">>;
544
+ config: z.ZodOptional<z.ZodObject<{
545
+ modeRef: z.ZodOptional<z.ZodString>;
546
+ model: z.ZodOptional<z.ZodOptional<z.ZodObject<{
547
+ providerId: z.ZodString;
548
+ modelId: z.ZodString;
549
+ profileRef: z.ZodString;
550
+ }, z.core.$strict>>>;
551
+ policyVersion: z.ZodOptional<z.ZodString>;
552
+ toolSetVersion: z.ZodOptional<z.ZodString>;
553
+ streamText: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
554
+ workerReasoningEffort: z.ZodOptional<z.ZodOptional<z.ZodString>>;
555
+ disabledSkills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
556
+ limits: z.ZodOptional<z.ZodObject<{
557
+ maxModelAttempts: z.ZodNumber;
558
+ maxToolCalls: z.ZodNumber;
559
+ maxSteps: z.ZodNumber;
560
+ maxTotalTokens: z.ZodNumber;
561
+ subagentMaxModelAttempts: z.ZodOptional<z.ZodNumber>;
562
+ wallTimeMs: z.ZodOptional<z.ZodNumber>;
563
+ subagentWallTimeMs: z.ZodOptional<z.ZodNumber>;
564
+ modelTimeoutMs: z.ZodNumber;
565
+ streamIdleTimeoutMs: z.ZodOptional<z.ZodNumber>;
566
+ requestTotalTimeoutMs: z.ZodOptional<z.ZodNumber>;
567
+ toolTimeoutMs: z.ZodNumber;
568
+ shellTimeoutMs: z.ZodOptional<z.ZodNumber>;
569
+ maxParallelTools: z.ZodNumber;
570
+ }, z.core.$strict>>;
571
+ retry: z.ZodOptional<z.ZodObject<{
572
+ modelMaxAttemptsPerCall: z.ZodNumber;
573
+ toolMaxAttemptsPerCall: z.ZodNumber;
574
+ baseDelayMs: z.ZodNumber;
575
+ maxDelayMs: z.ZodNumber;
576
+ }, z.core.$strict>>;
577
+ responses: z.ZodOptional<z.ZodObject<{
578
+ storage: z.ZodLiteral<"local_stateless">;
579
+ reasoning: z.ZodOptional<z.ZodObject<{
580
+ effort: z.ZodOptional<z.ZodString>;
581
+ summary: z.ZodOptional<z.ZodString>;
582
+ context: z.ZodOptional<z.ZodString>;
583
+ }, z.core.$strict>>;
584
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
585
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
586
+ extensionOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
587
+ }, z.core.$strict>>;
588
+ team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
589
+ rootId: z.ZodOptional<z.ZodString>;
590
+ members: z.ZodArray<z.ZodObject<{
591
+ id: z.ZodString;
592
+ parent: z.ZodString;
593
+ task: z.ZodString;
594
+ sandboxProfile: z.ZodOptional<z.ZodEnum<{
595
+ default: "default";
596
+ readonly: "readonly";
597
+ build: "build";
598
+ }>>;
599
+ workSubpath: z.ZodOptional<z.ZodString>;
600
+ }, z.core.$strict>>;
601
+ concurrency: z.ZodOptional<z.ZodNumber>;
602
+ }, z.core.$strict>>>;
603
+ teamMaxDepth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
604
+ agentDepth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
605
+ teamAsyncCoordinator: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
606
+ coordinatorPollIntervalMs: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
607
+ workerSoftCheckpointMs: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
608
+ teamMaxActiveDepth1: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
609
+ teamMaxConcurrency: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
610
+ teamHint: z.ZodOptional<z.ZodOptional<z.ZodObject<{
611
+ force: z.ZodOptional<z.ZodBoolean>;
612
+ concurrency: z.ZodOptional<z.ZodNumber>;
613
+ maxMembers: z.ZodOptional<z.ZodNumber>;
614
+ }, z.core.$strict>>>;
615
+ planner: z.ZodOptional<z.ZodOptional<z.ZodObject<{
616
+ mode: z.ZodEnum<{
617
+ auto: "auto";
618
+ force_team: "force_team";
619
+ }>;
620
+ maxMembers: z.ZodOptional<z.ZodNumber>;
621
+ concurrency: z.ZodOptional<z.ZodNumber>;
622
+ search: z.ZodOptional<z.ZodObject<{
623
+ mode: z.ZodEnum<{
624
+ off: "off";
625
+ selective: "selective";
626
+ }>;
627
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
628
+ planning_phase: "planning_phase";
629
+ consecutive_failures: "consecutive_failures";
630
+ stagnation: "stagnation";
631
+ model_fork: "model_fork";
632
+ }>>>;
633
+ branchFactor: z.ZodOptional<z.ZodNumber>;
634
+ maxRollouts: z.ZodOptional<z.ZodNumber>;
635
+ maxDepth: z.ZodOptional<z.ZodNumber>;
636
+ concurrency: z.ZodOptional<z.ZodNumber>;
637
+ maxBudgetRatio: z.ZodOptional<z.ZodNumber>;
638
+ maxBranchSteps: z.ZodOptional<z.ZodNumber>;
639
+ isolation: z.ZodOptional<z.ZodEnum<{
640
+ readonly: "readonly";
641
+ isolated: "isolated";
642
+ }>>;
643
+ maxCopyBytes: z.ZodOptional<z.ZodNumber>;
644
+ }, z.core.$strict>>;
645
+ }, z.core.$strict>>>;
646
+ continuation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
647
+ enabled: z.ZodOptional<z.ZodBoolean>;
648
+ maxTurns: z.ZodOptional<z.ZodNumber>;
649
+ }, z.core.$strict>>>;
650
+ search: z.ZodOptional<z.ZodOptional<z.ZodObject<{
651
+ mode: z.ZodEnum<{
652
+ off: "off";
653
+ selective: "selective";
654
+ }>;
655
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
656
+ planning_phase: "planning_phase";
657
+ consecutive_failures: "consecutive_failures";
658
+ stagnation: "stagnation";
659
+ model_fork: "model_fork";
660
+ }>>>;
661
+ branchFactor: z.ZodOptional<z.ZodNumber>;
662
+ maxRollouts: z.ZodOptional<z.ZodNumber>;
663
+ maxDepth: z.ZodOptional<z.ZodNumber>;
664
+ concurrency: z.ZodOptional<z.ZodNumber>;
665
+ maxBudgetRatio: z.ZodOptional<z.ZodNumber>;
666
+ maxBranchSteps: z.ZodOptional<z.ZodNumber>;
667
+ isolation: z.ZodOptional<z.ZodEnum<{
668
+ readonly: "readonly";
669
+ isolated: "isolated";
670
+ }>>;
671
+ maxCopyBytes: z.ZodOptional<z.ZodNumber>;
672
+ }, z.core.$strict>>>;
673
+ }, z.core.$strict>>;
674
+ model: z.ZodOptional<z.ZodObject<{
675
+ providerId: z.ZodString;
676
+ modelId: z.ZodString;
677
+ profileRef: z.ZodString;
678
+ }, z.core.$strict>>;
679
+ profile: z.ZodOptional<z.ZodString>;
680
+ taskProfile: z.ZodOptional<z.ZodString>;
681
+ skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
682
+ workingDirectoryUri: z.ZodOptional<z.ZodString>;
683
+ planner: z.ZodOptional<z.ZodObject<{
684
+ mode: z.ZodEnum<{
685
+ auto: "auto";
686
+ force_team: "force_team";
687
+ }>;
688
+ maxMembers: z.ZodOptional<z.ZodNumber>;
689
+ concurrency: z.ZodOptional<z.ZodNumber>;
690
+ search: z.ZodOptional<z.ZodObject<{
691
+ mode: z.ZodEnum<{
692
+ off: "off";
693
+ selective: "selective";
694
+ }>;
695
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
696
+ planning_phase: "planning_phase";
697
+ consecutive_failures: "consecutive_failures";
698
+ stagnation: "stagnation";
699
+ model_fork: "model_fork";
700
+ }>>>;
701
+ branchFactor: z.ZodOptional<z.ZodNumber>;
702
+ maxRollouts: z.ZodOptional<z.ZodNumber>;
703
+ maxDepth: z.ZodOptional<z.ZodNumber>;
704
+ concurrency: z.ZodOptional<z.ZodNumber>;
705
+ maxBudgetRatio: z.ZodOptional<z.ZodNumber>;
706
+ maxBranchSteps: z.ZodOptional<z.ZodNumber>;
707
+ isolation: z.ZodOptional<z.ZodEnum<{
708
+ readonly: "readonly";
709
+ isolated: "isolated";
710
+ }>>;
711
+ maxCopyBytes: z.ZodOptional<z.ZodNumber>;
712
+ }, z.core.$strict>>;
713
+ }, z.core.$strict>>;
714
+ teamHint: z.ZodOptional<z.ZodObject<{
715
+ force: z.ZodOptional<z.ZodBoolean>;
716
+ concurrency: z.ZodOptional<z.ZodNumber>;
717
+ maxMembers: z.ZodOptional<z.ZodNumber>;
718
+ }, z.core.$strict>>;
719
+ teamPreset: z.ZodOptional<z.ZodString>;
720
+ permissionMode: z.ZodOptional<z.ZodEnum<{
721
+ default: "default";
722
+ strict: "strict";
723
+ full: "full";
724
+ }>>;
725
+ }, z.core.$strict>;
726
+ }, z.core.$strict>, z.ZodObject<{
727
+ type: z.ZodLiteral<"run.cancel">;
728
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
729
+ reason: z.ZodString;
730
+ }, z.core.$strict>, z.ZodObject<{
731
+ type: z.ZodLiteral<"run.steer">;
732
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
733
+ agentSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<Id<"agent-session">, string>>>;
734
+ content: z.ZodString;
735
+ }, z.core.$strict>, z.ZodObject<{
736
+ type: z.ZodLiteral<"run.resume">;
737
+ runId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"run">, string>>;
738
+ }, z.core.$strict>, z.ZodObject<{
739
+ type: z.ZodLiteral<"tool.approval.resolve">;
740
+ resume: z.ZodOptional<z.ZodBoolean>;
741
+ decision: z.ZodObject<{
742
+ approvalId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"approval">, string>>;
743
+ toolCallId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"tool-call">, string>>;
744
+ approved: z.ZodBoolean;
745
+ decidedBy: z.ZodString;
746
+ decidedAt: z.ZodString;
747
+ reason: z.ZodString;
748
+ }, z.core.$strict>;
749
+ }, z.core.$strict>, z.ZodObject<{
750
+ type: z.ZodLiteral<"tool.reconcile">;
751
+ toolCallId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"tool-call">, string>>;
752
+ decision: z.ZodDiscriminatedUnion<[z.ZodObject<{
753
+ kind: z.ZodLiteral<"completed">;
754
+ result: z.ZodObject<{
755
+ toolCallId: z.ZodPipe<z.ZodString, z.ZodTransform<Id<"tool-call">, string>>;
756
+ effect: z.ZodEnum<{
757
+ unknown: "unknown";
758
+ none: "none";
759
+ applied: "applied";
760
+ }>;
761
+ evidenceRef: z.ZodOptional<z.ZodString>;
762
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
763
+ status: z.ZodLiteral<"success">;
764
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
765
+ type: z.ZodLiteral<"text">;
766
+ text: z.ZodString;
767
+ }, z.core.$strict>, z.ZodObject<{
768
+ type: z.ZodLiteral<"image">;
769
+ artifact: z.ZodObject<{
770
+ artifactId: z.ZodString;
771
+ sha256: z.ZodString;
772
+ mediaType: z.ZodString;
773
+ byteLength: z.ZodNumber;
774
+ }, z.core.$strict>;
775
+ alt: z.ZodOptional<z.ZodString>;
776
+ }, z.core.$strict>, z.ZodObject<{
777
+ type: z.ZodLiteral<"file">;
778
+ artifact: z.ZodObject<{
779
+ artifactId: z.ZodString;
780
+ sha256: z.ZodString;
781
+ mediaType: z.ZodString;
782
+ byteLength: z.ZodNumber;
783
+ }, z.core.$strict>;
784
+ name: z.ZodString;
785
+ }, z.core.$strict>], "type">>;
786
+ data: z.ZodOptional<z.ZodJSONSchema>;
787
+ }, z.core.$strict>, z.ZodObject<{
788
+ status: z.ZodEnum<{
789
+ error: "error";
790
+ cancelled: "cancelled";
791
+ denied: "denied";
792
+ }>;
793
+ error: z.ZodObject<{
794
+ code: z.ZodString;
795
+ message: z.ZodString;
796
+ retryable: z.ZodBoolean;
797
+ }, z.core.$strict>;
798
+ data: z.ZodOptional<z.ZodJSONSchema>;
799
+ }, z.core.$strict>], "status">;
800
+ }, z.core.$strict>;
801
+ evidenceRef: z.ZodString;
802
+ }, z.core.$strict>, z.ZodObject<{
803
+ kind: z.ZodLiteral<"not_applied">;
804
+ evidenceRef: z.ZodString;
805
+ }, z.core.$strict>, z.ZodObject<{
806
+ kind: z.ZodLiteral<"abandon_unknown">;
807
+ acceptedBy: z.ZodString;
808
+ reason: z.ZodString;
809
+ }, z.core.$strict>], "kind">;
810
+ }, z.core.$strict>], "type">;
811
+ }, z.core.$strict>;
812
+ export declare function parseTeamConfig(value: unknown): TeamConfig;
813
+ export declare function parsePlannerConfig(value: unknown): PlannerConfig;
814
+ export declare function decodeCommand(text: string): HostProtocolRequest;
815
+ export declare function encodeReply(reply: ProtocolReply): string;
816
+ declare const replySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
817
+ requestId: z.ZodString;
818
+ ok: z.ZodLiteral<true>;
819
+ result: z.ZodJSONSchema;
820
+ }, z.core.$strict>, z.ZodObject<{
821
+ requestId: z.ZodString;
822
+ ok: z.ZodLiteral<false>;
823
+ error: z.ZodObject<{
824
+ code: z.ZodString;
825
+ message: z.ZodString;
826
+ retryable: z.ZodBoolean;
827
+ }, z.core.$strict>;
828
+ }, z.core.$strict>], "ok">;
829
+ export declare function decodeReply(text: string): ProtocolReply;
830
+ export type ProtocolSchemaMatchesCore = [
831
+ Assert<Equal<Wire<z.output<typeof requestSchema>>, Wire<HostProtocolRequest>>>,
832
+ Assert<Equal<Wire<z.output<typeof replySchema>>, Wire<ProtocolReply>>>
833
+ ];
834
+ export * from './provider-credentials.js';
835
+ export * from './skills.js';
836
+ export * from './mcp-config.js';
837
+ export { redactExportValue } from './redaction.js';
838
+ export { geminiModelPath, lookupModelMetadata, normalizeProviderBaseUrl, normalizeProviderProtocol, providerCredentialKey, providerIdPattern, providerPresets, providerProtocols, } from '@saturn-universe/core';
839
+ export type { ModelMetadata, ModelPricing, ProviderProtocol, ProviderPreset } from '@saturn-universe/core';