@stitchmux/client 0.0.0-stage → 0.96.1

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-wddwdvbj.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,724 @@
1
+ import { z } from 'zod';
2
+ import { type ControlSnapshot } from "./core.js";
3
+ export declare const ControlCommandsReadSchema: z.ZodObject<{
4
+ target: z.ZodObject<{
5
+ kind: z.ZodLiteral<"managed">;
6
+ source: z.ZodLiteral<"stitchmux">;
7
+ machine: z.ZodString;
8
+ agent: z.ZodEnum<{
9
+ antigravity: "antigravity";
10
+ claude: "claude";
11
+ codex: "codex";
12
+ custom: "custom";
13
+ opencode: "opencode";
14
+ }>;
15
+ session: z.ZodString;
16
+ threadId: z.ZodUUID;
17
+ }, z.core.$strict>;
18
+ }, z.core.$strict>;
19
+ export declare const ControlCommandCatalogSchema: z.ZodObject<{
20
+ target: z.ZodObject<{
21
+ kind: z.ZodLiteral<"managed">;
22
+ source: z.ZodLiteral<"stitchmux">;
23
+ machine: z.ZodString;
24
+ agent: z.ZodEnum<{
25
+ antigravity: "antigravity";
26
+ claude: "claude";
27
+ codex: "codex";
28
+ custom: "custom";
29
+ opencode: "opencode";
30
+ }>;
31
+ session: z.ZodString;
32
+ threadId: z.ZodUUID;
33
+ }, z.core.$strict>;
34
+ data: z.ZodArray<z.ZodObject<{
35
+ name: z.ZodString;
36
+ description: z.ZodString;
37
+ argumentHint: z.ZodString;
38
+ aliases: z.ZodArray<z.ZodString>;
39
+ }, z.core.$strict>>;
40
+ }, z.core.$strict>;
41
+ export declare const ControlRunCommandSchema: z.ZodObject<{
42
+ target: z.ZodObject<{
43
+ kind: z.ZodLiteral<"managed">;
44
+ source: z.ZodLiteral<"stitchmux">;
45
+ machine: z.ZodString;
46
+ agent: z.ZodEnum<{
47
+ antigravity: "antigravity";
48
+ claude: "claude";
49
+ codex: "codex";
50
+ custom: "custom";
51
+ opencode: "opencode";
52
+ }>;
53
+ session: z.ZodString;
54
+ threadId: z.ZodUUID;
55
+ }, z.core.$strict>;
56
+ command: z.ZodString;
57
+ args: z.ZodOptional<z.ZodString>;
58
+ operationId: z.ZodUUID;
59
+ }, z.core.$strict>;
60
+ export declare const ControlRunCommandReceiptSchema: z.ZodObject<{
61
+ target: z.ZodObject<{
62
+ kind: z.ZodLiteral<"managed">;
63
+ source: z.ZodLiteral<"stitchmux">;
64
+ machine: z.ZodString;
65
+ agent: z.ZodEnum<{
66
+ antigravity: "antigravity";
67
+ claude: "claude";
68
+ codex: "codex";
69
+ custom: "custom";
70
+ opencode: "opencode";
71
+ }>;
72
+ session: z.ZodString;
73
+ threadId: z.ZodUUID;
74
+ }, z.core.$strict>;
75
+ accepted: z.ZodLiteral<true>;
76
+ turnId: z.ZodString;
77
+ text: z.ZodString;
78
+ }, z.core.$strict>;
79
+ export declare const ControlPermissionModeSchema: z.ZodObject<{
80
+ target: z.ZodObject<{
81
+ kind: z.ZodLiteral<"managed">;
82
+ source: z.ZodLiteral<"stitchmux">;
83
+ machine: z.ZodString;
84
+ agent: z.ZodEnum<{
85
+ antigravity: "antigravity";
86
+ claude: "claude";
87
+ codex: "codex";
88
+ custom: "custom";
89
+ opencode: "opencode";
90
+ }>;
91
+ session: z.ZodString;
92
+ threadId: z.ZodUUID;
93
+ }, z.core.$strict>;
94
+ operationId: z.ZodUUID;
95
+ mode: z.ZodEnum<{
96
+ acceptEdits: "acceptEdits";
97
+ bypassPermissions: "bypassPermissions";
98
+ default: "default";
99
+ plan: "plan";
100
+ }>;
101
+ }, z.core.$strict>;
102
+ export declare const ControlPermissionModeReceiptSchema: z.ZodObject<{
103
+ target: z.ZodObject<{
104
+ kind: z.ZodLiteral<"managed">;
105
+ source: z.ZodLiteral<"stitchmux">;
106
+ machine: z.ZodString;
107
+ agent: z.ZodEnum<{
108
+ antigravity: "antigravity";
109
+ claude: "claude";
110
+ codex: "codex";
111
+ custom: "custom";
112
+ opencode: "opencode";
113
+ }>;
114
+ session: z.ZodString;
115
+ threadId: z.ZodUUID;
116
+ }, z.core.$strict>;
117
+ mode: z.ZodEnum<{
118
+ acceptEdits: "acceptEdits";
119
+ bypassPermissions: "bypassPermissions";
120
+ default: "default";
121
+ plan: "plan";
122
+ }>;
123
+ }, z.core.$strict>;
124
+ /**
125
+ * Reading and replacing the permission mode of a live session.
126
+ *
127
+ * The runtime owns this value — we ask it and we ask it to change, and there is no register of our
128
+ * own beside it. A revisioned copy was written and removed before it shipped: it would have
129
+ * versioned our own record of intent while the thing a caller must not do blindly is overwrite a
130
+ * mode changed somewhere else, which only a comparison against the OBSERVED value catches.
131
+ */
132
+ export declare const ControlPermissionReadSchema: z.ZodObject<{
133
+ target: z.ZodObject<{
134
+ kind: z.ZodLiteral<"managed">;
135
+ source: z.ZodLiteral<"stitchmux">;
136
+ machine: z.ZodString;
137
+ agent: z.ZodEnum<{
138
+ antigravity: "antigravity";
139
+ claude: "claude";
140
+ codex: "codex";
141
+ custom: "custom";
142
+ opencode: "opencode";
143
+ }>;
144
+ session: z.ZodString;
145
+ threadId: z.ZodUUID;
146
+ }, z.core.$strict>;
147
+ registrationGeneration: z.ZodUUID;
148
+ }, z.core.$strict>;
149
+ export declare const ControlPermissionResultSchema: z.ZodObject<{
150
+ target: z.ZodObject<{
151
+ kind: z.ZodLiteral<"managed">;
152
+ source: z.ZodLiteral<"stitchmux">;
153
+ machine: z.ZodString;
154
+ agent: z.ZodEnum<{
155
+ antigravity: "antigravity";
156
+ claude: "claude";
157
+ codex: "codex";
158
+ custom: "custom";
159
+ opencode: "opencode";
160
+ }>;
161
+ session: z.ZodString;
162
+ threadId: z.ZodUUID;
163
+ }, z.core.$strict>;
164
+ native: z.ZodNullable<z.ZodObject<{
165
+ mode: z.ZodEnum<{
166
+ acceptEdits: "acceptEdits";
167
+ bypassPermissions: "bypassPermissions";
168
+ default: "default";
169
+ plan: "plan";
170
+ }>;
171
+ observedAt: z.ZodString;
172
+ }, z.core.$strict>>;
173
+ supported: z.ZodArray<z.ZodEnum<{
174
+ acceptEdits: "acceptEdits";
175
+ bypassPermissions: "bypassPermissions";
176
+ default: "default";
177
+ plan: "plan";
178
+ }>>;
179
+ }, z.core.$strict>;
180
+ export declare const ControlPermissionUpdateSchema: z.ZodObject<{
181
+ target: z.ZodObject<{
182
+ kind: z.ZodLiteral<"managed">;
183
+ source: z.ZodLiteral<"stitchmux">;
184
+ machine: z.ZodString;
185
+ agent: z.ZodEnum<{
186
+ antigravity: "antigravity";
187
+ claude: "claude";
188
+ codex: "codex";
189
+ custom: "custom";
190
+ opencode: "opencode";
191
+ }>;
192
+ session: z.ZodString;
193
+ threadId: z.ZodUUID;
194
+ }, z.core.$strict>;
195
+ registrationGeneration: z.ZodUUID;
196
+ operationId: z.ZodUUID;
197
+ expectedMode: z.ZodEnum<{
198
+ acceptEdits: "acceptEdits";
199
+ bypassPermissions: "bypassPermissions";
200
+ default: "default";
201
+ plan: "plan";
202
+ }>;
203
+ mode: z.ZodEnum<{
204
+ acceptEdits: "acceptEdits";
205
+ bypassPermissions: "bypassPermissions";
206
+ default: "default";
207
+ plan: "plan";
208
+ }>;
209
+ }, z.core.$strict>;
210
+ export declare const ControlRewindSchema: z.ZodObject<{
211
+ target: z.ZodObject<{
212
+ kind: z.ZodLiteral<"managed">;
213
+ source: z.ZodLiteral<"stitchmux">;
214
+ machine: z.ZodString;
215
+ agent: z.ZodEnum<{
216
+ antigravity: "antigravity";
217
+ claude: "claude";
218
+ codex: "codex";
219
+ custom: "custom";
220
+ opencode: "opencode";
221
+ }>;
222
+ session: z.ZodString;
223
+ threadId: z.ZodUUID;
224
+ }, z.core.$strict>;
225
+ messageId: z.ZodUUID;
226
+ dryRun: z.ZodDefault<z.ZodBoolean>;
227
+ operationId: z.ZodUUID;
228
+ }, z.core.$strict>;
229
+ export declare const ControlRewindReceiptSchema: z.ZodObject<{
230
+ target: z.ZodObject<{
231
+ kind: z.ZodLiteral<"managed">;
232
+ source: z.ZodLiteral<"stitchmux">;
233
+ machine: z.ZodString;
234
+ agent: z.ZodEnum<{
235
+ antigravity: "antigravity";
236
+ claude: "claude";
237
+ codex: "codex";
238
+ custom: "custom";
239
+ opencode: "opencode";
240
+ }>;
241
+ session: z.ZodString;
242
+ threadId: z.ZodUUID;
243
+ }, z.core.$strict>;
244
+ dryRun: z.ZodBoolean;
245
+ result: z.ZodObject<{
246
+ canRewind: z.ZodBoolean;
247
+ error: z.ZodNullable<z.ZodString>;
248
+ filesChanged: z.ZodArray<z.ZodString>;
249
+ insertions: z.ZodNullable<z.ZodNumber>;
250
+ deletions: z.ZodNullable<z.ZodNumber>;
251
+ skippedLinks: z.ZodNullable<z.ZodNumber>;
252
+ }, z.core.$strict>;
253
+ }, z.core.$strict>;
254
+ export declare const ControlMcpReadSchema: z.ZodObject<{
255
+ target: z.ZodObject<{
256
+ kind: z.ZodLiteral<"managed">;
257
+ source: z.ZodLiteral<"stitchmux">;
258
+ machine: z.ZodString;
259
+ agent: z.ZodEnum<{
260
+ antigravity: "antigravity";
261
+ claude: "claude";
262
+ codex: "codex";
263
+ custom: "custom";
264
+ opencode: "opencode";
265
+ }>;
266
+ session: z.ZodString;
267
+ threadId: z.ZodUUID;
268
+ }, z.core.$strict>;
269
+ }, z.core.$strict>;
270
+ export declare const ControlMcpListSchema: z.ZodObject<{
271
+ target: z.ZodObject<{
272
+ kind: z.ZodLiteral<"managed">;
273
+ source: z.ZodLiteral<"stitchmux">;
274
+ machine: z.ZodString;
275
+ agent: z.ZodEnum<{
276
+ antigravity: "antigravity";
277
+ claude: "claude";
278
+ codex: "codex";
279
+ custom: "custom";
280
+ opencode: "opencode";
281
+ }>;
282
+ session: z.ZodString;
283
+ threadId: z.ZodUUID;
284
+ }, z.core.$strict>;
285
+ data: z.ZodArray<z.ZodObject<{
286
+ name: z.ZodString;
287
+ status: z.ZodEnum<{
288
+ connected: "connected";
289
+ disabled: "disabled";
290
+ failed: "failed";
291
+ "needs-auth": "needs-auth";
292
+ pending: "pending";
293
+ unknown: "unknown";
294
+ }>;
295
+ scope: z.ZodNullable<z.ZodString>;
296
+ tools: z.ZodNullable<z.ZodNumber>;
297
+ error: z.ZodNullable<z.ZodString>;
298
+ }, z.core.$strict>>;
299
+ }, z.core.$strict>;
300
+ export declare const ControlMcpControlSchema: z.ZodObject<{
301
+ target: z.ZodObject<{
302
+ kind: z.ZodLiteral<"managed">;
303
+ source: z.ZodLiteral<"stitchmux">;
304
+ machine: z.ZodString;
305
+ agent: z.ZodEnum<{
306
+ antigravity: "antigravity";
307
+ claude: "claude";
308
+ codex: "codex";
309
+ custom: "custom";
310
+ opencode: "opencode";
311
+ }>;
312
+ session: z.ZodString;
313
+ threadId: z.ZodUUID;
314
+ }, z.core.$strict>;
315
+ server: z.ZodString;
316
+ action: z.ZodEnum<{
317
+ disable: "disable";
318
+ enable: "enable";
319
+ reconnect: "reconnect";
320
+ }>;
321
+ operationId: z.ZodUUID;
322
+ }, z.core.$strict>;
323
+ export declare const ControlMcpControlReceiptSchema: z.ZodObject<{
324
+ target: z.ZodObject<{
325
+ kind: z.ZodLiteral<"managed">;
326
+ source: z.ZodLiteral<"stitchmux">;
327
+ machine: z.ZodString;
328
+ agent: z.ZodEnum<{
329
+ antigravity: "antigravity";
330
+ claude: "claude";
331
+ codex: "codex";
332
+ custom: "custom";
333
+ opencode: "opencode";
334
+ }>;
335
+ session: z.ZodString;
336
+ threadId: z.ZodUUID;
337
+ }, z.core.$strict>;
338
+ server: z.ZodString;
339
+ status: z.ZodString;
340
+ }, z.core.$strict>;
341
+ export declare const ControlWaitSchema: z.ZodObject<{
342
+ target: z.ZodObject<{
343
+ kind: z.ZodLiteral<"managed">;
344
+ source: z.ZodLiteral<"stitchmux">;
345
+ machine: z.ZodString;
346
+ agent: z.ZodEnum<{
347
+ antigravity: "antigravity";
348
+ claude: "claude";
349
+ codex: "codex";
350
+ custom: "custom";
351
+ opencode: "opencode";
352
+ }>;
353
+ session: z.ZodString;
354
+ threadId: z.ZodUUID;
355
+ }, z.core.$strict>;
356
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
357
+ }, z.core.$strict>;
358
+ export declare const ControlWaitResultSchema: z.ZodObject<{
359
+ target: z.ZodObject<{
360
+ kind: z.ZodLiteral<"managed">;
361
+ source: z.ZodLiteral<"stitchmux">;
362
+ machine: z.ZodString;
363
+ agent: z.ZodEnum<{
364
+ antigravity: "antigravity";
365
+ claude: "claude";
366
+ codex: "codex";
367
+ custom: "custom";
368
+ opencode: "opencode";
369
+ }>;
370
+ session: z.ZodString;
371
+ threadId: z.ZodUUID;
372
+ }, z.core.$strict>;
373
+ outcome: z.ZodEnum<{
374
+ completed: "completed";
375
+ failed: "failed";
376
+ idle: "idle";
377
+ interrupted: "interrupted";
378
+ timeout: "timeout";
379
+ unavailable: "unavailable";
380
+ }>;
381
+ state: z.ZodNullable<z.ZodObject<{
382
+ identity: z.ZodObject<{
383
+ kind: z.ZodLiteral<"managed">;
384
+ source: z.ZodLiteral<"stitchmux">;
385
+ machine: z.ZodString;
386
+ agent: z.ZodEnum<{
387
+ antigravity: "antigravity";
388
+ claude: "claude";
389
+ codex: "codex";
390
+ custom: "custom";
391
+ opencode: "opencode";
392
+ }>;
393
+ session: z.ZodString;
394
+ threadId: z.ZodUUID;
395
+ }, z.core.$strict>;
396
+ registrationGeneration: z.ZodNullable<z.ZodUUID>;
397
+ runtime: z.ZodEnum<{
398
+ "app-server": "app-server";
399
+ cli: "cli";
400
+ native: "native";
401
+ }>;
402
+ pinned: z.ZodBoolean;
403
+ memoryBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
404
+ nativeSession: z.ZodOptional<z.ZodObject<{
405
+ runtime: z.ZodEnum<{
406
+ antigravity: "antigravity";
407
+ claude: "claude";
408
+ custom: "custom";
409
+ opencode: "opencode";
410
+ }>;
411
+ id: z.ZodString;
412
+ version: z.ZodString;
413
+ }, z.core.$strict>>;
414
+ driverCapabilities: z.ZodOptional<z.ZodObject<{
415
+ runtime: z.ZodEnum<{
416
+ antigravity: "antigravity";
417
+ claude: "claude";
418
+ codex: "codex";
419
+ custom: "custom";
420
+ opencode: "opencode";
421
+ }>;
422
+ structured: z.ZodBoolean;
423
+ creation: z.ZodObject<{
424
+ noInference: z.ZodBoolean;
425
+ inference: z.ZodEnum<{
426
+ deferred: "deferred";
427
+ "not-guaranteed": "not-guaranteed";
428
+ required: "required";
429
+ }>;
430
+ requirements: z.ZodOptional<z.ZodArray<z.ZodEnum<{
431
+ delegation: "delegation";
432
+ "explicit-model": "explicit-model";
433
+ }>>>;
434
+ reason: z.ZodEnum<{
435
+ "delegated-input-only": "delegated-input-only";
436
+ "native-rollout-requires-bootstrap": "native-rollout-requires-bootstrap";
437
+ "provider-initialization-not-certified": "provider-initialization-not-certified";
438
+ }>;
439
+ }, z.core.$strict>;
440
+ delegation: z.ZodOptional<z.ZodBoolean>;
441
+ sleep: z.ZodOptional<z.ZodBoolean>;
442
+ modelCatalog: z.ZodBoolean;
443
+ modelSelection: z.ZodBoolean;
444
+ approval: z.ZodBoolean;
445
+ input: z.ZodBoolean;
446
+ nativeStream: z.ZodBoolean;
447
+ interrupt: z.ZodBoolean;
448
+ resume: z.ZodBoolean;
449
+ imageInput: z.ZodBoolean;
450
+ selectionDefaults: z.ZodBoolean;
451
+ turnOptions: z.ZodBoolean;
452
+ turnSteering: z.ZodBoolean;
453
+ history: z.ZodBoolean;
454
+ fork: z.ZodBoolean;
455
+ compaction: z.ZodBoolean;
456
+ rollback: z.ZodBoolean;
457
+ applicationPolicy: z.ZodBoolean;
458
+ commandCatalog: z.ZodBoolean;
459
+ permissionModes: z.ZodBoolean;
460
+ fileCheckpoints: z.ZodBoolean;
461
+ mcpControl: z.ZodBoolean;
462
+ }, z.core.$strict>>;
463
+ sleep: z.ZodOptional<z.ZodObject<{
464
+ phase: z.ZodEnum<{
465
+ awake: "awake";
466
+ requested: "requested";
467
+ sleeping: "sleeping";
468
+ waking: "waking";
469
+ }>;
470
+ operationId: z.ZodUUID;
471
+ updatedAt: z.ZodISODateTime;
472
+ }, z.core.$strict>>;
473
+ state: z.ZodEnum<{
474
+ blocked: "blocked";
475
+ idle: "idle";
476
+ prompt: "prompt";
477
+ stopped: "stopped";
478
+ unknown: "unknown";
479
+ "waiting-approval": "waiting-approval";
480
+ "waiting-input": "waiting-input";
481
+ working: "working";
482
+ }>;
483
+ availability: z.ZodEnum<{
484
+ live: "live";
485
+ stale: "stale";
486
+ unavailable: "unavailable";
487
+ }>;
488
+ reason: z.ZodNullable<z.ZodString>;
489
+ observedAt: z.ZodISODateTime;
490
+ expiresAt: z.ZodISODateTime;
491
+ turn: z.ZodNullable<z.ZodObject<{
492
+ id: z.ZodString;
493
+ status: z.ZodEnum<{
494
+ completed: "completed";
495
+ failed: "failed";
496
+ inProgress: "inProgress";
497
+ interrupted: "interrupted";
498
+ }>;
499
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
500
+ }, z.core.$strict>>;
501
+ model: z.ZodNullable<z.ZodString>;
502
+ launchRecipe: z.ZodOptional<z.ZodObject<{
503
+ id: z.ZodString;
504
+ revision: z.ZodString;
505
+ digest: z.ZodString;
506
+ capabilities: z.ZodArray<z.ZodString>;
507
+ collaborationMode: z.ZodOptional<z.ZodEnum<{
508
+ default: "default";
509
+ plan: "plan";
510
+ }>>;
511
+ }, z.core.$strict>>;
512
+ selection: z.ZodNullable<z.ZodObject<{
513
+ revision: z.ZodNumber;
514
+ options: z.ZodDiscriminatedUnion<[z.ZodObject<{
515
+ runtime: z.ZodLiteral<"custom">;
516
+ model: z.ZodObject<{
517
+ provider: z.ZodString;
518
+ model: z.ZodString;
519
+ }, z.core.$strict>;
520
+ }, z.core.$strict>, z.ZodObject<{
521
+ runtime: z.ZodLiteral<"claude">;
522
+ model: z.ZodObject<{
523
+ provider: z.ZodString;
524
+ model: z.ZodString;
525
+ }, z.core.$strict>;
526
+ effort: z.ZodOptional<z.ZodString>;
527
+ }, z.core.$strict>, z.ZodObject<{
528
+ runtime: z.ZodLiteral<"codex">;
529
+ model: z.ZodObject<{
530
+ provider: z.ZodString;
531
+ model: z.ZodString;
532
+ }, z.core.$strict>;
533
+ mode: z.ZodEnum<{
534
+ default: "default";
535
+ plan: "plan";
536
+ }>;
537
+ effort: z.ZodOptional<z.ZodString>;
538
+ }, z.core.$strict>, z.ZodObject<{
539
+ runtime: z.ZodLiteral<"opencode">;
540
+ model: z.ZodObject<{
541
+ provider: z.ZodString;
542
+ model: z.ZodString;
543
+ }, z.core.$strict>;
544
+ agent: z.ZodOptional<z.ZodString>;
545
+ variant: z.ZodOptional<z.ZodString>;
546
+ }, z.core.$strict>, z.ZodObject<{
547
+ runtime: z.ZodLiteral<"antigravity">;
548
+ model: z.ZodObject<{
549
+ provider: z.ZodString;
550
+ model: z.ZodString;
551
+ }, z.core.$strict>;
552
+ effort: z.ZodOptional<z.ZodString>;
553
+ }, z.core.$strict>], "runtime">;
554
+ }, z.core.$strict>>;
555
+ nativeSelection: z.ZodNullable<z.ZodObject<{
556
+ model: z.ZodObject<{
557
+ provider: z.ZodString;
558
+ model: z.ZodString;
559
+ }, z.core.$strict>;
560
+ options: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
561
+ runtime: z.ZodLiteral<"custom">;
562
+ model: z.ZodObject<{
563
+ provider: z.ZodString;
564
+ model: z.ZodString;
565
+ }, z.core.$strict>;
566
+ }, z.core.$strict>, z.ZodObject<{
567
+ runtime: z.ZodLiteral<"claude">;
568
+ model: z.ZodObject<{
569
+ provider: z.ZodString;
570
+ model: z.ZodString;
571
+ }, z.core.$strict>;
572
+ effort: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strict>, z.ZodObject<{
574
+ runtime: z.ZodLiteral<"codex">;
575
+ model: z.ZodObject<{
576
+ provider: z.ZodString;
577
+ model: z.ZodString;
578
+ }, z.core.$strict>;
579
+ mode: z.ZodEnum<{
580
+ default: "default";
581
+ plan: "plan";
582
+ }>;
583
+ effort: z.ZodOptional<z.ZodString>;
584
+ }, z.core.$strict>, z.ZodObject<{
585
+ runtime: z.ZodLiteral<"opencode">;
586
+ model: z.ZodObject<{
587
+ provider: z.ZodString;
588
+ model: z.ZodString;
589
+ }, z.core.$strict>;
590
+ agent: z.ZodOptional<z.ZodString>;
591
+ variant: z.ZodOptional<z.ZodString>;
592
+ }, z.core.$strict>, z.ZodObject<{
593
+ runtime: z.ZodLiteral<"antigravity">;
594
+ model: z.ZodObject<{
595
+ provider: z.ZodString;
596
+ model: z.ZodString;
597
+ }, z.core.$strict>;
598
+ effort: z.ZodOptional<z.ZodString>;
599
+ }, z.core.$strict>], "runtime">>;
600
+ source: z.ZodEnum<{
601
+ admission: "admission";
602
+ assistant: "assistant";
603
+ reroute: "reroute";
604
+ settings: "settings";
605
+ }>;
606
+ turnId: z.ZodNullable<z.ZodString>;
607
+ }, z.core.$strict>>;
608
+ applicationPolicy: z.ZodOptional<z.ZodObject<{
609
+ policy: z.ZodObject<{
610
+ id: z.ZodString;
611
+ revision: z.ZodString;
612
+ digest: z.ZodString;
613
+ runtime: z.ZodEnum<{
614
+ codex: "codex";
615
+ opencode: "opencode";
616
+ }>;
617
+ sources: z.ZodArray<z.ZodObject<{
618
+ id: z.ZodString;
619
+ digest: z.ZodString;
620
+ kind: z.ZodEnum<{
621
+ agent: "agent";
622
+ instructions: "instructions";
623
+ skill: "skill";
624
+ }>;
625
+ }, z.core.$strict>>;
626
+ capabilities: z.ZodArray<z.ZodEnum<{
627
+ "developer-instructions": "developer-instructions";
628
+ "native-agent": "native-agent";
629
+ "native-skills": "native-skills";
630
+ "tool-denials": "tool-denials";
631
+ }>>;
632
+ }, z.core.$strict>;
633
+ state: z.ZodEnum<{
634
+ applied: "applied";
635
+ desired: "desired";
636
+ unavailable: "unavailable";
637
+ }>;
638
+ reason: z.ZodOptional<z.ZodString>;
639
+ }, z.core.$strict>>;
640
+ delegation: z.ZodOptional<z.ZodObject<{
641
+ delegation: z.ZodObject<{
642
+ parent: z.ZodObject<{
643
+ target: z.ZodUnion<readonly [z.ZodObject<{
644
+ kind: z.ZodLiteral<"managed">;
645
+ source: z.ZodLiteral<"stitchmux">;
646
+ machine: z.ZodString;
647
+ agent: z.ZodEnum<{
648
+ antigravity: "antigravity";
649
+ claude: "claude";
650
+ codex: "codex";
651
+ custom: "custom";
652
+ opencode: "opencode";
653
+ }>;
654
+ session: z.ZodString;
655
+ threadId: z.ZodUUID;
656
+ }, z.core.$strict>, z.ZodObject<{
657
+ kind: z.ZodLiteral<"application">;
658
+ machine: z.ZodString;
659
+ applicationId: z.ZodString;
660
+ authorityId: z.ZodUUID;
661
+ }, z.core.$strict>]>;
662
+ registrationGeneration: z.ZodUUID;
663
+ }, z.core.$strict>;
664
+ policy: z.ZodObject<{
665
+ access: z.ZodEnum<{
666
+ "full-access": "full-access";
667
+ "read-only": "read-only";
668
+ "workspace-write": "workspace-write";
669
+ }>;
670
+ readScope: z.ZodLiteral<"host">;
671
+ workspace: z.ZodString;
672
+ network: z.ZodLiteral<false>;
673
+ }, z.core.$strict>;
674
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
675
+ requestId: z.ZodUUID;
676
+ applicationAuthority: z.ZodOptional<z.ZodObject<{
677
+ target: z.ZodObject<{
678
+ kind: z.ZodLiteral<"application">;
679
+ machine: z.ZodString;
680
+ applicationId: z.ZodString;
681
+ authorityId: z.ZodUUID;
682
+ }, z.core.$strict>;
683
+ registrationGeneration: z.ZodUUID;
684
+ }, z.core.$strict>>;
685
+ policyDigest: z.ZodString;
686
+ }, z.core.$strict>;
687
+ state: z.ZodEnum<{
688
+ applied: "applied";
689
+ unavailable: "unavailable";
690
+ }>;
691
+ generation: z.ZodNullable<z.ZodUUID>;
692
+ observedAt: z.ZodISODateTime;
693
+ }, z.core.$strict>>;
694
+ nativeProfile: z.ZodOptional<z.ZodObject<{
695
+ runtime: z.ZodLiteral<"custom">;
696
+ turnId: z.ZodString;
697
+ observedAt: z.ZodISODateTime;
698
+ recipeDigest: z.ZodString;
699
+ model: z.ZodObject<{
700
+ provider: z.ZodString;
701
+ model: z.ZodString;
702
+ }, z.core.$strict>;
703
+ providerLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
704
+ tools: z.ZodArray<z.ZodString>;
705
+ resources: z.ZodArray<z.ZodObject<{
706
+ id: z.ZodString;
707
+ digest: z.ZodString;
708
+ kind: z.ZodEnum<{
709
+ instruction: "instruction";
710
+ resource: "resource";
711
+ skill: "skill";
712
+ }>;
713
+ }, z.core.$strict>>;
714
+ }, z.core.$strict>>;
715
+ capabilities: z.ZodObject<{
716
+ message: z.ZodBoolean;
717
+ start: z.ZodBoolean;
718
+ interrupt: z.ZodBoolean;
719
+ wait: z.ZodBoolean;
720
+ }, z.core.$strict>;
721
+ }, z.core.$strict>>;
722
+ }, z.core.$strict>;
723
+ /** A retained or delayed snapshot cannot extend the producer's observation lease. */
724
+ export declare function currentControlSnapshot(snapshot: ControlSnapshot, now?: number): ControlSnapshot;