@stitchmux/client 0.0.0-stage → 0.96.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.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +45 -2
  3. package/dist/chunk-szdg2ww3.js +714 -0
  4. package/dist/index.js +4070 -0
  5. package/dist/monitoring.js +279 -0
  6. package/native-stream.json +8 -0
  7. package/package.json +36 -4
  8. package/types/src/agent/claude/native/commandSchema.d.ts +14 -0
  9. package/types/src/agent/custom/config.d.ts +159 -0
  10. package/types/src/agent/custom/endpoint.d.ts +26 -0
  11. package/types/src/agent/transcript/messageSchema.d.ts +153 -0
  12. package/types/src/attachments/reference.d.ts +56 -0
  13. package/types/src/attachments/schema.d.ts +512 -0
  14. package/types/src/chat/communicationAuthorizationSchema.d.ts +77 -0
  15. package/types/src/chat/communicationReceiptSchema.d.ts +82 -0
  16. package/types/src/chat/feedSchema.d.ts +641 -0
  17. package/types/src/chat/holdKind.d.ts +26 -0
  18. package/types/src/chat/identity.d.ts +55 -0
  19. package/types/src/chat/identitySchema.d.ts +121 -0
  20. package/types/src/chat/letterRequestSchema.d.ts +35 -0
  21. package/types/src/chat/messageOperationSchema.d.ts +277 -0
  22. package/types/src/chat/messageSchema.d.ts +284 -0
  23. package/types/src/chat/originSchema.d.ts +67 -0
  24. package/types/src/chat/sentLetterSchema.d.ts +79 -0
  25. package/types/src/client.d.ts +16 -0
  26. package/types/src/config/claudeProfileSchema.d.ts +22 -0
  27. package/types/src/config/launchSchema.d.ts +136 -0
  28. package/types/src/config/location.d.ts +6 -0
  29. package/types/src/config/machineSchema.d.ts +320 -0
  30. package/types/src/config/modelSelectionFlags.d.ts +4 -0
  31. package/types/src/config/paths.d.ts +87 -0
  32. package/types/src/config/remoteTransport.d.ts +12 -0
  33. package/types/src/content/schema.d.ts +312 -0
  34. package/types/src/content/toolSchema.d.ts +36 -0
  35. package/types/src/context/corpusSearchSchema.d.ts +578 -0
  36. package/types/src/context/exactMessageSchema.d.ts +54 -0
  37. package/types/src/context/messageSenderSchema.d.ts +14 -0
  38. package/types/src/context/schema.d.ts +176 -0
  39. package/types/src/context/searchFrames.d.ts +225 -0
  40. package/types/src/context/searchRequestSchema.d.ts +47 -0
  41. package/types/src/context/transcriptJsonSchema.d.ts +210 -0
  42. package/types/src/control/schema/context.d.ts +188 -0
  43. package/types/src/control/schema/contract.d.ts +7142 -0
  44. package/types/src/control/schema/core.d.ts +722 -0
  45. package/types/src/control/schema/directory.d.ts +34 -0
  46. package/types/src/control/schema/eventsContract.d.ts +1423 -0
  47. package/types/src/control/schema/externalList.d.ts +96 -0
  48. package/types/src/control/schema/message.d.ts +280 -0
  49. package/types/src/control/schema/model.d.ts +128 -0
  50. package/types/src/control/schema/native.d.ts +664 -0
  51. package/types/src/control/schema/nativeStreamContract.d.ts +155 -0
  52. package/types/src/control/schema/performance.d.ts +85 -0
  53. package/types/src/control/schema/public.d.ts +48 -0
  54. package/types/src/control/schema/reading.d.ts +24 -0
  55. package/types/src/control/schema/refusals.d.ts +433 -0
  56. package/types/src/control/schema/runtimeOps.d.ts +724 -0
  57. package/types/src/control/schema/searchContract.d.ts +258 -0
  58. package/types/src/control/schema/selection.d.ts +124 -0
  59. package/types/src/control/schema/session.d.ts +272 -0
  60. package/types/src/control/schema/terminalPrompt.d.ts +102 -0
  61. package/types/src/control/transport/boundary.d.ts +7137 -0
  62. package/types/src/control/transport/client.d.ts +10838 -0
  63. package/types/src/control/transport/connection.d.ts +13 -0
  64. package/types/src/control/transport/socketPath.d.ts +3 -0
  65. package/types/src/control-client.d.ts +9 -0
  66. package/types/src/delegation/applicationSchema.d.ts +132 -0
  67. package/types/src/delegation/schema.d.ts +267 -0
  68. package/types/src/events/schema.d.ts +155 -0
  69. package/types/src/external/contentSchema.d.ts +145 -0
  70. package/types/src/external/messageSchema.d.ts +131 -0
  71. package/types/src/external/residentFrames.d.ts +130 -0
  72. package/types/src/external/residentSchema.d.ts +144 -0
  73. package/types/src/external/sessionSchema.d.ts +427 -0
  74. package/types/src/external/turnSchema.d.ts +55 -0
  75. package/types/src/fleet/fleetSchema.d.ts +937 -0
  76. package/types/src/inventory/listSchema.d.ts +442 -0
  77. package/types/src/monitoring/nativeFile.d.ts +7 -0
  78. package/types/src/monitoring/nativeRead.d.ts +14 -0
  79. package/types/src/monitoring/performanceSchema.d.ts +28 -0
  80. package/types/src/monitoring/schema.d.ts +410 -0
  81. package/types/src/monitoring/validate.d.ts +5 -0
  82. package/types/src/monitoring-reader.d.ts +4 -0
  83. package/types/src/policy/reference.d.ts +93 -0
  84. package/types/src/policy/runtimeProfile.d.ts +24 -0
  85. package/types/src/policy/schema.d.ts +177 -0
  86. package/types/src/runtime/capabilities.d.ts +124 -0
  87. package/types/src/runtime/modes.d.ts +47 -0
  88. package/types/src/runtime/permissionScope.d.ts +22 -0
  89. package/types/src/runtime/planLimitsSchema.d.ts +55 -0
  90. package/types/src/runtime/projectionSchema.d.ts +539 -0
  91. package/types/src/runtime/rewindSchema.d.ts +16 -0
  92. package/types/src/runtime/selectionSchema.d.ts +158 -0
  93. package/types/src/runtime/workloadContract.d.ts +55 -0
  94. package/types/src/session/boundary.d.ts +43 -0
  95. package/types/src/session/identitySchema.d.ts +353 -0
  96. package/types/src/session/schema.d.ts +341 -0
  97. package/types/src/session/sleep/schema.d.ts +283 -0
  98. package/types/src/steering/schema.d.ts +197 -0
  99. package/types/src/types.d.ts +48 -0
  100. package/types/src/usage/schema.d.ts +978 -0
  101. package/types/src/util/home.d.ts +9 -0
  102. package/types/src/util/preview.d.ts +13 -0
  103. package/types/src/util/version.d.ts +3 -0
@@ -0,0 +1,722 @@
1
+ import { z } from 'zod';
2
+ export declare const CONTROL_MAX_BYTES: number;
3
+ /** The largest answer one call carries. A fleet's sessions with their last messages, or a message
4
+ * read whole, is past what a status snapshot needs; anything larger than this is a stream. */
5
+ export declare const CONTROL_RESPONSE_MAX_BYTES: number;
6
+ export declare const CONTROL_MAX_READERS = 32;
7
+ export declare const ControlTargetSchema: z.ZodObject<{
8
+ target: z.ZodObject<{
9
+ kind: z.ZodLiteral<"managed">;
10
+ source: z.ZodLiteral<"stitchmux">;
11
+ machine: z.ZodString;
12
+ agent: z.ZodEnum<{
13
+ antigravity: "antigravity";
14
+ claude: "claude";
15
+ codex: "codex";
16
+ custom: "custom";
17
+ opencode: "opencode";
18
+ }>;
19
+ session: z.ZodString;
20
+ threadId: z.ZodUUID;
21
+ }, z.core.$strict>;
22
+ }, z.core.$strict>;
23
+ export declare const ControlRowSchema: z.ZodObject<{
24
+ identity: z.ZodObject<{
25
+ kind: z.ZodLiteral<"managed">;
26
+ source: z.ZodLiteral<"stitchmux">;
27
+ machine: z.ZodString;
28
+ agent: z.ZodEnum<{
29
+ antigravity: "antigravity";
30
+ claude: "claude";
31
+ codex: "codex";
32
+ custom: "custom";
33
+ opencode: "opencode";
34
+ }>;
35
+ session: z.ZodString;
36
+ threadId: z.ZodUUID;
37
+ }, z.core.$strict>;
38
+ registrationGeneration: z.ZodNullable<z.ZodUUID>;
39
+ runtime: z.ZodEnum<{
40
+ "app-server": "app-server";
41
+ cli: "cli";
42
+ native: "native";
43
+ }>;
44
+ pinned: z.ZodBoolean;
45
+ memoryBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ nativeSession: z.ZodOptional<z.ZodObject<{
47
+ runtime: z.ZodEnum<{
48
+ antigravity: "antigravity";
49
+ claude: "claude";
50
+ custom: "custom";
51
+ opencode: "opencode";
52
+ }>;
53
+ id: z.ZodString;
54
+ version: z.ZodString;
55
+ }, z.core.$strict>>;
56
+ driverCapabilities: z.ZodOptional<z.ZodObject<{
57
+ runtime: z.ZodEnum<{
58
+ antigravity: "antigravity";
59
+ claude: "claude";
60
+ codex: "codex";
61
+ custom: "custom";
62
+ opencode: "opencode";
63
+ }>;
64
+ structured: z.ZodBoolean;
65
+ creation: z.ZodObject<{
66
+ noInference: z.ZodBoolean;
67
+ inference: z.ZodEnum<{
68
+ deferred: "deferred";
69
+ "not-guaranteed": "not-guaranteed";
70
+ required: "required";
71
+ }>;
72
+ requirements: z.ZodOptional<z.ZodArray<z.ZodEnum<{
73
+ delegation: "delegation";
74
+ "explicit-model": "explicit-model";
75
+ }>>>;
76
+ reason: z.ZodEnum<{
77
+ "delegated-input-only": "delegated-input-only";
78
+ "native-rollout-requires-bootstrap": "native-rollout-requires-bootstrap";
79
+ "provider-initialization-not-certified": "provider-initialization-not-certified";
80
+ }>;
81
+ }, z.core.$strict>;
82
+ delegation: z.ZodOptional<z.ZodBoolean>;
83
+ sleep: z.ZodOptional<z.ZodBoolean>;
84
+ modelCatalog: z.ZodBoolean;
85
+ modelSelection: z.ZodBoolean;
86
+ approval: z.ZodBoolean;
87
+ input: z.ZodBoolean;
88
+ nativeStream: z.ZodBoolean;
89
+ interrupt: z.ZodBoolean;
90
+ resume: z.ZodBoolean;
91
+ imageInput: z.ZodBoolean;
92
+ selectionDefaults: z.ZodBoolean;
93
+ turnOptions: z.ZodBoolean;
94
+ turnSteering: z.ZodBoolean;
95
+ history: z.ZodBoolean;
96
+ fork: z.ZodBoolean;
97
+ compaction: z.ZodBoolean;
98
+ rollback: z.ZodBoolean;
99
+ applicationPolicy: z.ZodBoolean;
100
+ commandCatalog: z.ZodBoolean;
101
+ permissionModes: z.ZodBoolean;
102
+ fileCheckpoints: z.ZodBoolean;
103
+ mcpControl: z.ZodBoolean;
104
+ }, z.core.$strict>>;
105
+ sleep: z.ZodOptional<z.ZodObject<{
106
+ phase: z.ZodEnum<{
107
+ awake: "awake";
108
+ requested: "requested";
109
+ sleeping: "sleeping";
110
+ waking: "waking";
111
+ }>;
112
+ operationId: z.ZodUUID;
113
+ updatedAt: z.ZodISODateTime;
114
+ }, z.core.$strict>>;
115
+ state: z.ZodEnum<{
116
+ blocked: "blocked";
117
+ idle: "idle";
118
+ prompt: "prompt";
119
+ stopped: "stopped";
120
+ unknown: "unknown";
121
+ "waiting-approval": "waiting-approval";
122
+ "waiting-input": "waiting-input";
123
+ working: "working";
124
+ }>;
125
+ availability: z.ZodEnum<{
126
+ live: "live";
127
+ stale: "stale";
128
+ unavailable: "unavailable";
129
+ }>;
130
+ reason: z.ZodNullable<z.ZodString>;
131
+ observedAt: z.ZodISODateTime;
132
+ expiresAt: z.ZodISODateTime;
133
+ turn: z.ZodNullable<z.ZodObject<{
134
+ id: z.ZodString;
135
+ status: z.ZodEnum<{
136
+ completed: "completed";
137
+ failed: "failed";
138
+ inProgress: "inProgress";
139
+ interrupted: "interrupted";
140
+ }>;
141
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
142
+ }, z.core.$strict>>;
143
+ model: z.ZodNullable<z.ZodString>;
144
+ launchRecipe: z.ZodOptional<z.ZodObject<{
145
+ id: z.ZodString;
146
+ revision: z.ZodString;
147
+ digest: z.ZodString;
148
+ capabilities: z.ZodArray<z.ZodString>;
149
+ collaborationMode: z.ZodOptional<z.ZodEnum<{
150
+ default: "default";
151
+ plan: "plan";
152
+ }>>;
153
+ }, z.core.$strict>>;
154
+ selection: z.ZodNullable<z.ZodObject<{
155
+ revision: z.ZodNumber;
156
+ options: z.ZodDiscriminatedUnion<[z.ZodObject<{
157
+ runtime: z.ZodLiteral<"custom">;
158
+ model: z.ZodObject<{
159
+ provider: z.ZodString;
160
+ model: z.ZodString;
161
+ }, z.core.$strict>;
162
+ }, z.core.$strict>, z.ZodObject<{
163
+ runtime: z.ZodLiteral<"claude">;
164
+ model: z.ZodObject<{
165
+ provider: z.ZodString;
166
+ model: z.ZodString;
167
+ }, z.core.$strict>;
168
+ effort: z.ZodOptional<z.ZodString>;
169
+ }, z.core.$strict>, z.ZodObject<{
170
+ runtime: z.ZodLiteral<"codex">;
171
+ model: z.ZodObject<{
172
+ provider: z.ZodString;
173
+ model: z.ZodString;
174
+ }, z.core.$strict>;
175
+ mode: z.ZodEnum<{
176
+ default: "default";
177
+ plan: "plan";
178
+ }>;
179
+ effort: z.ZodOptional<z.ZodString>;
180
+ }, z.core.$strict>, z.ZodObject<{
181
+ runtime: z.ZodLiteral<"opencode">;
182
+ model: z.ZodObject<{
183
+ provider: z.ZodString;
184
+ model: z.ZodString;
185
+ }, z.core.$strict>;
186
+ agent: z.ZodOptional<z.ZodString>;
187
+ variant: z.ZodOptional<z.ZodString>;
188
+ }, z.core.$strict>, z.ZodObject<{
189
+ runtime: z.ZodLiteral<"antigravity">;
190
+ model: z.ZodObject<{
191
+ provider: z.ZodString;
192
+ model: z.ZodString;
193
+ }, z.core.$strict>;
194
+ effort: z.ZodOptional<z.ZodString>;
195
+ }, z.core.$strict>], "runtime">;
196
+ }, z.core.$strict>>;
197
+ nativeSelection: z.ZodNullable<z.ZodObject<{
198
+ model: z.ZodObject<{
199
+ provider: z.ZodString;
200
+ model: z.ZodString;
201
+ }, z.core.$strict>;
202
+ options: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
203
+ runtime: z.ZodLiteral<"custom">;
204
+ model: z.ZodObject<{
205
+ provider: z.ZodString;
206
+ model: z.ZodString;
207
+ }, z.core.$strict>;
208
+ }, z.core.$strict>, z.ZodObject<{
209
+ runtime: z.ZodLiteral<"claude">;
210
+ model: z.ZodObject<{
211
+ provider: z.ZodString;
212
+ model: z.ZodString;
213
+ }, z.core.$strict>;
214
+ effort: z.ZodOptional<z.ZodString>;
215
+ }, z.core.$strict>, z.ZodObject<{
216
+ runtime: z.ZodLiteral<"codex">;
217
+ model: z.ZodObject<{
218
+ provider: z.ZodString;
219
+ model: z.ZodString;
220
+ }, z.core.$strict>;
221
+ mode: z.ZodEnum<{
222
+ default: "default";
223
+ plan: "plan";
224
+ }>;
225
+ effort: z.ZodOptional<z.ZodString>;
226
+ }, z.core.$strict>, z.ZodObject<{
227
+ runtime: z.ZodLiteral<"opencode">;
228
+ model: z.ZodObject<{
229
+ provider: z.ZodString;
230
+ model: z.ZodString;
231
+ }, z.core.$strict>;
232
+ agent: z.ZodOptional<z.ZodString>;
233
+ variant: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strict>, z.ZodObject<{
235
+ runtime: z.ZodLiteral<"antigravity">;
236
+ model: z.ZodObject<{
237
+ provider: z.ZodString;
238
+ model: z.ZodString;
239
+ }, z.core.$strict>;
240
+ effort: z.ZodOptional<z.ZodString>;
241
+ }, z.core.$strict>], "runtime">>;
242
+ source: z.ZodEnum<{
243
+ admission: "admission";
244
+ assistant: "assistant";
245
+ reroute: "reroute";
246
+ settings: "settings";
247
+ }>;
248
+ turnId: z.ZodNullable<z.ZodString>;
249
+ }, z.core.$strict>>;
250
+ applicationPolicy: z.ZodOptional<z.ZodObject<{
251
+ policy: z.ZodObject<{
252
+ id: z.ZodString;
253
+ revision: z.ZodString;
254
+ digest: z.ZodString;
255
+ runtime: z.ZodEnum<{
256
+ codex: "codex";
257
+ opencode: "opencode";
258
+ }>;
259
+ sources: z.ZodArray<z.ZodObject<{
260
+ id: z.ZodString;
261
+ digest: z.ZodString;
262
+ kind: z.ZodEnum<{
263
+ agent: "agent";
264
+ instructions: "instructions";
265
+ skill: "skill";
266
+ }>;
267
+ }, z.core.$strict>>;
268
+ capabilities: z.ZodArray<z.ZodEnum<{
269
+ "developer-instructions": "developer-instructions";
270
+ "native-agent": "native-agent";
271
+ "native-skills": "native-skills";
272
+ "tool-denials": "tool-denials";
273
+ }>>;
274
+ }, z.core.$strict>;
275
+ state: z.ZodEnum<{
276
+ applied: "applied";
277
+ desired: "desired";
278
+ unavailable: "unavailable";
279
+ }>;
280
+ reason: z.ZodOptional<z.ZodString>;
281
+ }, z.core.$strict>>;
282
+ delegation: z.ZodOptional<z.ZodObject<{
283
+ delegation: z.ZodObject<{
284
+ parent: z.ZodObject<{
285
+ target: z.ZodUnion<readonly [z.ZodObject<{
286
+ kind: z.ZodLiteral<"managed">;
287
+ source: z.ZodLiteral<"stitchmux">;
288
+ machine: z.ZodString;
289
+ agent: z.ZodEnum<{
290
+ antigravity: "antigravity";
291
+ claude: "claude";
292
+ codex: "codex";
293
+ custom: "custom";
294
+ opencode: "opencode";
295
+ }>;
296
+ session: z.ZodString;
297
+ threadId: z.ZodUUID;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ kind: z.ZodLiteral<"application">;
300
+ machine: z.ZodString;
301
+ applicationId: z.ZodString;
302
+ authorityId: z.ZodUUID;
303
+ }, z.core.$strict>]>;
304
+ registrationGeneration: z.ZodUUID;
305
+ }, z.core.$strict>;
306
+ policy: z.ZodObject<{
307
+ access: z.ZodEnum<{
308
+ "full-access": "full-access";
309
+ "read-only": "read-only";
310
+ "workspace-write": "workspace-write";
311
+ }>;
312
+ readScope: z.ZodLiteral<"host">;
313
+ workspace: z.ZodString;
314
+ network: z.ZodLiteral<false>;
315
+ }, z.core.$strict>;
316
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
317
+ requestId: z.ZodUUID;
318
+ applicationAuthority: z.ZodOptional<z.ZodObject<{
319
+ target: z.ZodObject<{
320
+ kind: z.ZodLiteral<"application">;
321
+ machine: z.ZodString;
322
+ applicationId: z.ZodString;
323
+ authorityId: z.ZodUUID;
324
+ }, z.core.$strict>;
325
+ registrationGeneration: z.ZodUUID;
326
+ }, z.core.$strict>>;
327
+ policyDigest: z.ZodString;
328
+ }, z.core.$strict>;
329
+ state: z.ZodEnum<{
330
+ applied: "applied";
331
+ unavailable: "unavailable";
332
+ }>;
333
+ generation: z.ZodNullable<z.ZodUUID>;
334
+ observedAt: z.ZodISODateTime;
335
+ }, z.core.$strict>>;
336
+ nativeProfile: z.ZodOptional<z.ZodObject<{
337
+ runtime: z.ZodLiteral<"custom">;
338
+ turnId: z.ZodString;
339
+ observedAt: z.ZodISODateTime;
340
+ recipeDigest: z.ZodString;
341
+ model: z.ZodObject<{
342
+ provider: z.ZodString;
343
+ model: z.ZodString;
344
+ }, z.core.$strict>;
345
+ providerLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
346
+ tools: z.ZodArray<z.ZodString>;
347
+ resources: z.ZodArray<z.ZodObject<{
348
+ id: z.ZodString;
349
+ digest: z.ZodString;
350
+ kind: z.ZodEnum<{
351
+ instruction: "instruction";
352
+ resource: "resource";
353
+ skill: "skill";
354
+ }>;
355
+ }, z.core.$strict>>;
356
+ }, z.core.$strict>>;
357
+ capabilities: z.ZodObject<{
358
+ message: z.ZodBoolean;
359
+ start: z.ZodBoolean;
360
+ interrupt: z.ZodBoolean;
361
+ wait: z.ZodBoolean;
362
+ }, z.core.$strict>;
363
+ }, z.core.$strict>;
364
+ export type ControlRow = z.infer<typeof ControlRowSchema>;
365
+ export declare const ControlSnapshotSchema: z.ZodObject<{
366
+ protocol: z.ZodLiteral<1>;
367
+ version: z.ZodString;
368
+ machine: z.ZodString;
369
+ generation: z.ZodUUID;
370
+ sequence: z.ZodNumber;
371
+ status: z.ZodEnum<{
372
+ live: "live";
373
+ stale: "stale";
374
+ unavailable: "unavailable";
375
+ }>;
376
+ reason: z.ZodNullable<z.ZodString>;
377
+ observedAt: z.ZodISODateTime;
378
+ expiresAt: z.ZodISODateTime;
379
+ omitted: z.ZodNumber;
380
+ sessions: z.ZodArray<z.ZodObject<{
381
+ identity: z.ZodObject<{
382
+ kind: z.ZodLiteral<"managed">;
383
+ source: z.ZodLiteral<"stitchmux">;
384
+ machine: z.ZodString;
385
+ agent: z.ZodEnum<{
386
+ antigravity: "antigravity";
387
+ claude: "claude";
388
+ codex: "codex";
389
+ custom: "custom";
390
+ opencode: "opencode";
391
+ }>;
392
+ session: z.ZodString;
393
+ threadId: z.ZodUUID;
394
+ }, z.core.$strict>;
395
+ registrationGeneration: z.ZodNullable<z.ZodUUID>;
396
+ runtime: z.ZodEnum<{
397
+ "app-server": "app-server";
398
+ cli: "cli";
399
+ native: "native";
400
+ }>;
401
+ pinned: z.ZodBoolean;
402
+ memoryBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
403
+ nativeSession: z.ZodOptional<z.ZodObject<{
404
+ runtime: z.ZodEnum<{
405
+ antigravity: "antigravity";
406
+ claude: "claude";
407
+ custom: "custom";
408
+ opencode: "opencode";
409
+ }>;
410
+ id: z.ZodString;
411
+ version: z.ZodString;
412
+ }, z.core.$strict>>;
413
+ driverCapabilities: z.ZodOptional<z.ZodObject<{
414
+ runtime: z.ZodEnum<{
415
+ antigravity: "antigravity";
416
+ claude: "claude";
417
+ codex: "codex";
418
+ custom: "custom";
419
+ opencode: "opencode";
420
+ }>;
421
+ structured: z.ZodBoolean;
422
+ creation: z.ZodObject<{
423
+ noInference: z.ZodBoolean;
424
+ inference: z.ZodEnum<{
425
+ deferred: "deferred";
426
+ "not-guaranteed": "not-guaranteed";
427
+ required: "required";
428
+ }>;
429
+ requirements: z.ZodOptional<z.ZodArray<z.ZodEnum<{
430
+ delegation: "delegation";
431
+ "explicit-model": "explicit-model";
432
+ }>>>;
433
+ reason: z.ZodEnum<{
434
+ "delegated-input-only": "delegated-input-only";
435
+ "native-rollout-requires-bootstrap": "native-rollout-requires-bootstrap";
436
+ "provider-initialization-not-certified": "provider-initialization-not-certified";
437
+ }>;
438
+ }, z.core.$strict>;
439
+ delegation: z.ZodOptional<z.ZodBoolean>;
440
+ sleep: z.ZodOptional<z.ZodBoolean>;
441
+ modelCatalog: z.ZodBoolean;
442
+ modelSelection: z.ZodBoolean;
443
+ approval: z.ZodBoolean;
444
+ input: z.ZodBoolean;
445
+ nativeStream: z.ZodBoolean;
446
+ interrupt: z.ZodBoolean;
447
+ resume: z.ZodBoolean;
448
+ imageInput: z.ZodBoolean;
449
+ selectionDefaults: z.ZodBoolean;
450
+ turnOptions: z.ZodBoolean;
451
+ turnSteering: z.ZodBoolean;
452
+ history: z.ZodBoolean;
453
+ fork: z.ZodBoolean;
454
+ compaction: z.ZodBoolean;
455
+ rollback: z.ZodBoolean;
456
+ applicationPolicy: z.ZodBoolean;
457
+ commandCatalog: z.ZodBoolean;
458
+ permissionModes: z.ZodBoolean;
459
+ fileCheckpoints: z.ZodBoolean;
460
+ mcpControl: z.ZodBoolean;
461
+ }, z.core.$strict>>;
462
+ sleep: z.ZodOptional<z.ZodObject<{
463
+ phase: z.ZodEnum<{
464
+ awake: "awake";
465
+ requested: "requested";
466
+ sleeping: "sleeping";
467
+ waking: "waking";
468
+ }>;
469
+ operationId: z.ZodUUID;
470
+ updatedAt: z.ZodISODateTime;
471
+ }, z.core.$strict>>;
472
+ state: z.ZodEnum<{
473
+ blocked: "blocked";
474
+ idle: "idle";
475
+ prompt: "prompt";
476
+ stopped: "stopped";
477
+ unknown: "unknown";
478
+ "waiting-approval": "waiting-approval";
479
+ "waiting-input": "waiting-input";
480
+ working: "working";
481
+ }>;
482
+ availability: z.ZodEnum<{
483
+ live: "live";
484
+ stale: "stale";
485
+ unavailable: "unavailable";
486
+ }>;
487
+ reason: z.ZodNullable<z.ZodString>;
488
+ observedAt: z.ZodISODateTime;
489
+ expiresAt: z.ZodISODateTime;
490
+ turn: z.ZodNullable<z.ZodObject<{
491
+ id: z.ZodString;
492
+ status: z.ZodEnum<{
493
+ completed: "completed";
494
+ failed: "failed";
495
+ inProgress: "inProgress";
496
+ interrupted: "interrupted";
497
+ }>;
498
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
499
+ }, z.core.$strict>>;
500
+ model: z.ZodNullable<z.ZodString>;
501
+ launchRecipe: z.ZodOptional<z.ZodObject<{
502
+ id: z.ZodString;
503
+ revision: z.ZodString;
504
+ digest: z.ZodString;
505
+ capabilities: z.ZodArray<z.ZodString>;
506
+ collaborationMode: z.ZodOptional<z.ZodEnum<{
507
+ default: "default";
508
+ plan: "plan";
509
+ }>>;
510
+ }, z.core.$strict>>;
511
+ selection: z.ZodNullable<z.ZodObject<{
512
+ revision: z.ZodNumber;
513
+ options: z.ZodDiscriminatedUnion<[z.ZodObject<{
514
+ runtime: z.ZodLiteral<"custom">;
515
+ model: z.ZodObject<{
516
+ provider: z.ZodString;
517
+ model: z.ZodString;
518
+ }, z.core.$strict>;
519
+ }, z.core.$strict>, z.ZodObject<{
520
+ runtime: z.ZodLiteral<"claude">;
521
+ model: z.ZodObject<{
522
+ provider: z.ZodString;
523
+ model: z.ZodString;
524
+ }, z.core.$strict>;
525
+ effort: z.ZodOptional<z.ZodString>;
526
+ }, z.core.$strict>, z.ZodObject<{
527
+ runtime: z.ZodLiteral<"codex">;
528
+ model: z.ZodObject<{
529
+ provider: z.ZodString;
530
+ model: z.ZodString;
531
+ }, z.core.$strict>;
532
+ mode: z.ZodEnum<{
533
+ default: "default";
534
+ plan: "plan";
535
+ }>;
536
+ effort: z.ZodOptional<z.ZodString>;
537
+ }, z.core.$strict>, z.ZodObject<{
538
+ runtime: z.ZodLiteral<"opencode">;
539
+ model: z.ZodObject<{
540
+ provider: z.ZodString;
541
+ model: z.ZodString;
542
+ }, z.core.$strict>;
543
+ agent: z.ZodOptional<z.ZodString>;
544
+ variant: z.ZodOptional<z.ZodString>;
545
+ }, z.core.$strict>, z.ZodObject<{
546
+ runtime: z.ZodLiteral<"antigravity">;
547
+ model: z.ZodObject<{
548
+ provider: z.ZodString;
549
+ model: z.ZodString;
550
+ }, z.core.$strict>;
551
+ effort: z.ZodOptional<z.ZodString>;
552
+ }, z.core.$strict>], "runtime">;
553
+ }, z.core.$strict>>;
554
+ nativeSelection: z.ZodNullable<z.ZodObject<{
555
+ model: z.ZodObject<{
556
+ provider: z.ZodString;
557
+ model: z.ZodString;
558
+ }, z.core.$strict>;
559
+ options: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
560
+ runtime: z.ZodLiteral<"custom">;
561
+ model: z.ZodObject<{
562
+ provider: z.ZodString;
563
+ model: z.ZodString;
564
+ }, z.core.$strict>;
565
+ }, z.core.$strict>, z.ZodObject<{
566
+ runtime: z.ZodLiteral<"claude">;
567
+ model: z.ZodObject<{
568
+ provider: z.ZodString;
569
+ model: z.ZodString;
570
+ }, z.core.$strict>;
571
+ effort: z.ZodOptional<z.ZodString>;
572
+ }, z.core.$strict>, z.ZodObject<{
573
+ runtime: z.ZodLiteral<"codex">;
574
+ model: z.ZodObject<{
575
+ provider: z.ZodString;
576
+ model: z.ZodString;
577
+ }, z.core.$strict>;
578
+ mode: z.ZodEnum<{
579
+ default: "default";
580
+ plan: "plan";
581
+ }>;
582
+ effort: z.ZodOptional<z.ZodString>;
583
+ }, z.core.$strict>, z.ZodObject<{
584
+ runtime: z.ZodLiteral<"opencode">;
585
+ model: z.ZodObject<{
586
+ provider: z.ZodString;
587
+ model: z.ZodString;
588
+ }, z.core.$strict>;
589
+ agent: z.ZodOptional<z.ZodString>;
590
+ variant: z.ZodOptional<z.ZodString>;
591
+ }, z.core.$strict>, z.ZodObject<{
592
+ runtime: z.ZodLiteral<"antigravity">;
593
+ model: z.ZodObject<{
594
+ provider: z.ZodString;
595
+ model: z.ZodString;
596
+ }, z.core.$strict>;
597
+ effort: z.ZodOptional<z.ZodString>;
598
+ }, z.core.$strict>], "runtime">>;
599
+ source: z.ZodEnum<{
600
+ admission: "admission";
601
+ assistant: "assistant";
602
+ reroute: "reroute";
603
+ settings: "settings";
604
+ }>;
605
+ turnId: z.ZodNullable<z.ZodString>;
606
+ }, z.core.$strict>>;
607
+ applicationPolicy: z.ZodOptional<z.ZodObject<{
608
+ policy: z.ZodObject<{
609
+ id: z.ZodString;
610
+ revision: z.ZodString;
611
+ digest: z.ZodString;
612
+ runtime: z.ZodEnum<{
613
+ codex: "codex";
614
+ opencode: "opencode";
615
+ }>;
616
+ sources: z.ZodArray<z.ZodObject<{
617
+ id: z.ZodString;
618
+ digest: z.ZodString;
619
+ kind: z.ZodEnum<{
620
+ agent: "agent";
621
+ instructions: "instructions";
622
+ skill: "skill";
623
+ }>;
624
+ }, z.core.$strict>>;
625
+ capabilities: z.ZodArray<z.ZodEnum<{
626
+ "developer-instructions": "developer-instructions";
627
+ "native-agent": "native-agent";
628
+ "native-skills": "native-skills";
629
+ "tool-denials": "tool-denials";
630
+ }>>;
631
+ }, z.core.$strict>;
632
+ state: z.ZodEnum<{
633
+ applied: "applied";
634
+ desired: "desired";
635
+ unavailable: "unavailable";
636
+ }>;
637
+ reason: z.ZodOptional<z.ZodString>;
638
+ }, z.core.$strict>>;
639
+ delegation: z.ZodOptional<z.ZodObject<{
640
+ delegation: z.ZodObject<{
641
+ parent: z.ZodObject<{
642
+ target: z.ZodUnion<readonly [z.ZodObject<{
643
+ kind: z.ZodLiteral<"managed">;
644
+ source: z.ZodLiteral<"stitchmux">;
645
+ machine: z.ZodString;
646
+ agent: z.ZodEnum<{
647
+ antigravity: "antigravity";
648
+ claude: "claude";
649
+ codex: "codex";
650
+ custom: "custom";
651
+ opencode: "opencode";
652
+ }>;
653
+ session: z.ZodString;
654
+ threadId: z.ZodUUID;
655
+ }, z.core.$strict>, z.ZodObject<{
656
+ kind: z.ZodLiteral<"application">;
657
+ machine: z.ZodString;
658
+ applicationId: z.ZodString;
659
+ authorityId: z.ZodUUID;
660
+ }, z.core.$strict>]>;
661
+ registrationGeneration: z.ZodUUID;
662
+ }, z.core.$strict>;
663
+ policy: z.ZodObject<{
664
+ access: z.ZodEnum<{
665
+ "full-access": "full-access";
666
+ "read-only": "read-only";
667
+ "workspace-write": "workspace-write";
668
+ }>;
669
+ readScope: z.ZodLiteral<"host">;
670
+ workspace: z.ZodString;
671
+ network: z.ZodLiteral<false>;
672
+ }, z.core.$strict>;
673
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
674
+ requestId: z.ZodUUID;
675
+ applicationAuthority: z.ZodOptional<z.ZodObject<{
676
+ target: z.ZodObject<{
677
+ kind: z.ZodLiteral<"application">;
678
+ machine: z.ZodString;
679
+ applicationId: z.ZodString;
680
+ authorityId: z.ZodUUID;
681
+ }, z.core.$strict>;
682
+ registrationGeneration: z.ZodUUID;
683
+ }, z.core.$strict>>;
684
+ policyDigest: z.ZodString;
685
+ }, z.core.$strict>;
686
+ state: z.ZodEnum<{
687
+ applied: "applied";
688
+ unavailable: "unavailable";
689
+ }>;
690
+ generation: z.ZodNullable<z.ZodUUID>;
691
+ observedAt: z.ZodISODateTime;
692
+ }, z.core.$strict>>;
693
+ nativeProfile: z.ZodOptional<z.ZodObject<{
694
+ runtime: z.ZodLiteral<"custom">;
695
+ turnId: z.ZodString;
696
+ observedAt: z.ZodISODateTime;
697
+ recipeDigest: z.ZodString;
698
+ model: z.ZodObject<{
699
+ provider: z.ZodString;
700
+ model: z.ZodString;
701
+ }, z.core.$strict>;
702
+ providerLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
703
+ tools: z.ZodArray<z.ZodString>;
704
+ resources: z.ZodArray<z.ZodObject<{
705
+ id: z.ZodString;
706
+ digest: z.ZodString;
707
+ kind: z.ZodEnum<{
708
+ instruction: "instruction";
709
+ resource: "resource";
710
+ skill: "skill";
711
+ }>;
712
+ }, z.core.$strict>>;
713
+ }, z.core.$strict>>;
714
+ capabilities: z.ZodObject<{
715
+ message: z.ZodBoolean;
716
+ start: z.ZodBoolean;
717
+ interrupt: z.ZodBoolean;
718
+ wait: z.ZodBoolean;
719
+ }, z.core.$strict>;
720
+ }, z.core.$strict>>;
721
+ }, z.core.$strict>;
722
+ export type ControlSnapshot = z.infer<typeof ControlSnapshotSchema>;