@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,341 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * One stitchmux-managed agent conversation.
4
+ *
5
+ * The sessions FILE is JSONL — one of these per line. `uuid` is the authoritative READY
6
+ * conversation identity and drives deterministic resume. Codex fresh launch is correlated in a
7
+ * separate pending transaction; a placeholder is never persisted as a Session.
8
+ */
9
+ export declare const SessionSchema: z.ZodObject<{
10
+ name: z.ZodString;
11
+ dir: z.ZodString;
12
+ uuid: z.ZodUUID;
13
+ registrationGeneration: z.ZodOptional<z.ZodUUID>;
14
+ flags: z.ZodDefault<z.ZodArray<z.ZodString>>;
15
+ archived: z.ZodDefault<z.ZodBoolean>;
16
+ pinned: z.ZodOptional<z.ZodBoolean>;
17
+ resumeText: z.ZodDefault<z.ZodString>;
18
+ agent: z.ZodEnum<{
19
+ antigravity: "antigravity";
20
+ claude: "claude";
21
+ codex: "codex";
22
+ custom: "custom";
23
+ opencode: "opencode";
24
+ }>;
25
+ runtime: z.ZodOptional<z.ZodEnum<{
26
+ "app-server": "app-server";
27
+ native: "native";
28
+ tui: "tui";
29
+ }>>;
30
+ nativeSession: z.ZodOptional<z.ZodObject<{
31
+ runtime: z.ZodEnum<{
32
+ antigravity: "antigravity";
33
+ claude: "claude";
34
+ custom: "custom";
35
+ opencode: "opencode";
36
+ }>;
37
+ id: z.ZodString;
38
+ version: z.ZodString;
39
+ }, z.core.$strict>>;
40
+ permissionMode: z.ZodOptional<z.ZodEnum<{
41
+ acceptEdits: "acceptEdits";
42
+ auto: "auto";
43
+ bypassPermissions: "bypassPermissions";
44
+ dontAsk: "dontAsk";
45
+ manual: "manual";
46
+ plan: "plan";
47
+ }>>;
48
+ chatEnabled: z.ZodOptional<z.ZodBoolean>;
49
+ promptModules: z.ZodDefault<z.ZodArray<z.ZodString>>;
50
+ envFile: z.ZodOptional<z.ZodString>;
51
+ profile: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ source: z.ZodLiteral<"default">;
53
+ name: z.ZodLiteral<"default">;
54
+ configDir: z.ZodNull;
55
+ accountDigest: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strict>, z.ZodObject<{
57
+ name: z.ZodString;
58
+ configDir: z.ZodString;
59
+ accountDigest: z.ZodOptional<z.ZodString>;
60
+ source: z.ZodLiteral<"machine">;
61
+ }, z.core.$strict>, z.ZodObject<{
62
+ name: z.ZodString;
63
+ configDir: z.ZodString;
64
+ accountDigest: z.ZodOptional<z.ZodString>;
65
+ source: z.ZodLiteral<"claude-multiprofile">;
66
+ registryPath: z.ZodString;
67
+ }, z.core.$strict>], "source">>;
68
+ launchRecipe: z.ZodOptional<z.ZodObject<{
69
+ id: z.ZodString;
70
+ revision: z.ZodString;
71
+ digest: z.ZodString;
72
+ capabilities: z.ZodArray<z.ZodString>;
73
+ collaborationMode: z.ZodOptional<z.ZodEnum<{
74
+ default: "default";
75
+ plan: "plan";
76
+ }>>;
77
+ }, z.core.$strict>>;
78
+ modelSelection: z.ZodOptional<z.ZodObject<{
79
+ provider: z.ZodString;
80
+ model: z.ZodString;
81
+ }, z.core.$strict>>;
82
+ initialization: z.ZodOptional<z.ZodLiteral<"no-inference">>;
83
+ applicationPolicy: z.ZodOptional<z.ZodObject<{
84
+ id: z.ZodString;
85
+ revision: z.ZodString;
86
+ digest: z.ZodString;
87
+ runtime: z.ZodEnum<{
88
+ codex: "codex";
89
+ opencode: "opencode";
90
+ }>;
91
+ sources: z.ZodArray<z.ZodObject<{
92
+ id: z.ZodString;
93
+ digest: z.ZodString;
94
+ kind: z.ZodEnum<{
95
+ agent: "agent";
96
+ instructions: "instructions";
97
+ skill: "skill";
98
+ }>;
99
+ }, z.core.$strict>>;
100
+ capabilities: z.ZodArray<z.ZodEnum<{
101
+ "developer-instructions": "developer-instructions";
102
+ "native-agent": "native-agent";
103
+ "native-skills": "native-skills";
104
+ "tool-denials": "tool-denials";
105
+ }>>;
106
+ }, z.core.$strict>>;
107
+ delegation: z.ZodOptional<z.ZodObject<{
108
+ parent: z.ZodObject<{
109
+ target: z.ZodUnion<readonly [z.ZodObject<{
110
+ kind: z.ZodLiteral<"managed">;
111
+ source: z.ZodLiteral<"stitchmux">;
112
+ machine: z.ZodString;
113
+ agent: z.ZodEnum<{
114
+ antigravity: "antigravity";
115
+ claude: "claude";
116
+ codex: "codex";
117
+ custom: "custom";
118
+ opencode: "opencode";
119
+ }>;
120
+ session: z.ZodString;
121
+ threadId: z.ZodUUID;
122
+ }, z.core.$strict>, z.ZodObject<{
123
+ kind: z.ZodLiteral<"application">;
124
+ machine: z.ZodString;
125
+ applicationId: z.ZodString;
126
+ authorityId: z.ZodUUID;
127
+ }, z.core.$strict>]>;
128
+ registrationGeneration: z.ZodUUID;
129
+ }, z.core.$strict>;
130
+ policy: z.ZodObject<{
131
+ access: z.ZodEnum<{
132
+ "full-access": "full-access";
133
+ "read-only": "read-only";
134
+ "workspace-write": "workspace-write";
135
+ }>;
136
+ readScope: z.ZodLiteral<"host">;
137
+ workspace: z.ZodString;
138
+ network: z.ZodLiteral<false>;
139
+ }, z.core.$strict>;
140
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
141
+ requestId: z.ZodUUID;
142
+ applicationAuthority: z.ZodOptional<z.ZodObject<{
143
+ target: z.ZodObject<{
144
+ kind: z.ZodLiteral<"application">;
145
+ machine: z.ZodString;
146
+ applicationId: z.ZodString;
147
+ authorityId: z.ZodUUID;
148
+ }, z.core.$strict>;
149
+ registrationGeneration: z.ZodUUID;
150
+ }, z.core.$strict>>;
151
+ policyDigest: z.ZodString;
152
+ }, z.core.$strict>>;
153
+ eventsEnabled: z.ZodOptional<z.ZodBoolean>;
154
+ fileCheckpoints: z.ZodOptional<z.ZodBoolean>;
155
+ role: z.ZodOptional<z.ZodString>;
156
+ }, z.core.$strip>;
157
+ /** A fresh managed launch that has not yet produced an authoritative provider thread id. */
158
+ export declare const PendingSessionSchema: z.ZodObject<{
159
+ generation: z.ZodUUID;
160
+ marker: z.ZodString;
161
+ operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
162
+ kind: z.ZodLiteral<"create">;
163
+ }, z.core.$strip>, z.ZodObject<{
164
+ kind: z.ZodLiteral<"adopt">;
165
+ sourceThreadId: z.ZodUUID;
166
+ }, z.core.$strip>, z.ZodObject<{
167
+ kind: z.ZodLiteral<"fork">;
168
+ sourceThreadId: z.ZodUUID;
169
+ }, z.core.$strip>], "kind">;
170
+ session: z.ZodObject<{
171
+ name: z.ZodString;
172
+ dir: z.ZodString;
173
+ registrationGeneration: z.ZodOptional<z.ZodUUID>;
174
+ flags: z.ZodDefault<z.ZodArray<z.ZodString>>;
175
+ archived: z.ZodDefault<z.ZodBoolean>;
176
+ pinned: z.ZodOptional<z.ZodBoolean>;
177
+ resumeText: z.ZodDefault<z.ZodString>;
178
+ agent: z.ZodEnum<{
179
+ antigravity: "antigravity";
180
+ claude: "claude";
181
+ codex: "codex";
182
+ custom: "custom";
183
+ opencode: "opencode";
184
+ }>;
185
+ runtime: z.ZodOptional<z.ZodEnum<{
186
+ "app-server": "app-server";
187
+ native: "native";
188
+ tui: "tui";
189
+ }>>;
190
+ nativeSession: z.ZodOptional<z.ZodObject<{
191
+ runtime: z.ZodEnum<{
192
+ antigravity: "antigravity";
193
+ claude: "claude";
194
+ custom: "custom";
195
+ opencode: "opencode";
196
+ }>;
197
+ id: z.ZodString;
198
+ version: z.ZodString;
199
+ }, z.core.$strict>>;
200
+ permissionMode: z.ZodOptional<z.ZodEnum<{
201
+ acceptEdits: "acceptEdits";
202
+ auto: "auto";
203
+ bypassPermissions: "bypassPermissions";
204
+ dontAsk: "dontAsk";
205
+ manual: "manual";
206
+ plan: "plan";
207
+ }>>;
208
+ chatEnabled: z.ZodOptional<z.ZodBoolean>;
209
+ promptModules: z.ZodDefault<z.ZodArray<z.ZodString>>;
210
+ envFile: z.ZodOptional<z.ZodString>;
211
+ profile: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
212
+ source: z.ZodLiteral<"default">;
213
+ name: z.ZodLiteral<"default">;
214
+ configDir: z.ZodNull;
215
+ accountDigest: z.ZodOptional<z.ZodString>;
216
+ }, z.core.$strict>, z.ZodObject<{
217
+ name: z.ZodString;
218
+ configDir: z.ZodString;
219
+ accountDigest: z.ZodOptional<z.ZodString>;
220
+ source: z.ZodLiteral<"machine">;
221
+ }, z.core.$strict>, z.ZodObject<{
222
+ name: z.ZodString;
223
+ configDir: z.ZodString;
224
+ accountDigest: z.ZodOptional<z.ZodString>;
225
+ source: z.ZodLiteral<"claude-multiprofile">;
226
+ registryPath: z.ZodString;
227
+ }, z.core.$strict>], "source">>;
228
+ launchRecipe: z.ZodOptional<z.ZodObject<{
229
+ id: z.ZodString;
230
+ revision: z.ZodString;
231
+ digest: z.ZodString;
232
+ capabilities: z.ZodArray<z.ZodString>;
233
+ collaborationMode: z.ZodOptional<z.ZodEnum<{
234
+ default: "default";
235
+ plan: "plan";
236
+ }>>;
237
+ }, z.core.$strict>>;
238
+ modelSelection: z.ZodOptional<z.ZodObject<{
239
+ provider: z.ZodString;
240
+ model: z.ZodString;
241
+ }, z.core.$strict>>;
242
+ initialization: z.ZodOptional<z.ZodLiteral<"no-inference">>;
243
+ applicationPolicy: z.ZodOptional<z.ZodObject<{
244
+ id: z.ZodString;
245
+ revision: z.ZodString;
246
+ digest: z.ZodString;
247
+ runtime: z.ZodEnum<{
248
+ codex: "codex";
249
+ opencode: "opencode";
250
+ }>;
251
+ sources: z.ZodArray<z.ZodObject<{
252
+ id: z.ZodString;
253
+ digest: z.ZodString;
254
+ kind: z.ZodEnum<{
255
+ agent: "agent";
256
+ instructions: "instructions";
257
+ skill: "skill";
258
+ }>;
259
+ }, z.core.$strict>>;
260
+ capabilities: z.ZodArray<z.ZodEnum<{
261
+ "developer-instructions": "developer-instructions";
262
+ "native-agent": "native-agent";
263
+ "native-skills": "native-skills";
264
+ "tool-denials": "tool-denials";
265
+ }>>;
266
+ }, z.core.$strict>>;
267
+ delegation: z.ZodOptional<z.ZodObject<{
268
+ parent: z.ZodObject<{
269
+ target: z.ZodUnion<readonly [z.ZodObject<{
270
+ kind: z.ZodLiteral<"managed">;
271
+ source: z.ZodLiteral<"stitchmux">;
272
+ machine: z.ZodString;
273
+ agent: z.ZodEnum<{
274
+ antigravity: "antigravity";
275
+ claude: "claude";
276
+ codex: "codex";
277
+ custom: "custom";
278
+ opencode: "opencode";
279
+ }>;
280
+ session: z.ZodString;
281
+ threadId: z.ZodUUID;
282
+ }, z.core.$strict>, z.ZodObject<{
283
+ kind: z.ZodLiteral<"application">;
284
+ machine: z.ZodString;
285
+ applicationId: z.ZodString;
286
+ authorityId: z.ZodUUID;
287
+ }, z.core.$strict>]>;
288
+ registrationGeneration: z.ZodUUID;
289
+ }, z.core.$strict>;
290
+ policy: z.ZodObject<{
291
+ access: z.ZodEnum<{
292
+ "full-access": "full-access";
293
+ "read-only": "read-only";
294
+ "workspace-write": "workspace-write";
295
+ }>;
296
+ readScope: z.ZodLiteral<"host">;
297
+ workspace: z.ZodString;
298
+ network: z.ZodLiteral<false>;
299
+ }, z.core.$strict>;
300
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
301
+ requestId: z.ZodUUID;
302
+ applicationAuthority: z.ZodOptional<z.ZodObject<{
303
+ target: z.ZodObject<{
304
+ kind: z.ZodLiteral<"application">;
305
+ machine: z.ZodString;
306
+ applicationId: z.ZodString;
307
+ authorityId: z.ZodUUID;
308
+ }, z.core.$strict>;
309
+ registrationGeneration: z.ZodUUID;
310
+ }, z.core.$strict>>;
311
+ policyDigest: z.ZodString;
312
+ }, z.core.$strict>>;
313
+ eventsEnabled: z.ZodOptional<z.ZodBoolean>;
314
+ fileCheckpoints: z.ZodOptional<z.ZodBoolean>;
315
+ role: z.ZodOptional<z.ZodString>;
316
+ }, z.core.$strip>;
317
+ createdAt: z.ZodISODateTime;
318
+ status: z.ZodEnum<{
319
+ blocked: "blocked";
320
+ pending: "pending";
321
+ promoted: "promoted";
322
+ }>;
323
+ error: z.ZodOptional<z.ZodString>;
324
+ uuid: z.ZodOptional<z.ZodUUID>;
325
+ }, z.core.$strip>;
326
+ /** Durable terminal lifecycle failure. The daemon will not heal a blocked ready session. */
327
+ export declare const LifecycleBlockSchema: z.ZodObject<{
328
+ name: z.ZodString;
329
+ agent: z.ZodEnum<{
330
+ antigravity: "antigravity";
331
+ claude: "claude";
332
+ codex: "codex";
333
+ custom: "custom";
334
+ opencode: "opencode";
335
+ }>;
336
+ uuid: z.ZodOptional<z.ZodUUID>;
337
+ generation: z.ZodOptional<z.ZodUUID>;
338
+ error: z.ZodString;
339
+ at: z.ZodISODateTime;
340
+ version: z.ZodOptional<z.ZodString>;
341
+ }, z.core.$strip>;
@@ -0,0 +1,283 @@
1
+ import { z } from 'zod';
2
+ export declare const SleepTargetSchema: z.ZodObject<{
3
+ target: z.ZodObject<{
4
+ kind: z.ZodLiteral<"managed">;
5
+ source: z.ZodLiteral<"stitchmux">;
6
+ machine: z.ZodString;
7
+ agent: z.ZodEnum<{
8
+ antigravity: "antigravity";
9
+ claude: "claude";
10
+ codex: "codex";
11
+ custom: "custom";
12
+ opencode: "opencode";
13
+ }>;
14
+ session: z.ZodString;
15
+ threadId: z.ZodUUID;
16
+ }, z.core.$strict>;
17
+ registrationGeneration: z.ZodUUID;
18
+ }, z.core.$strict>;
19
+ export declare const IdleProofSchema: 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
+ registrationGeneration: z.ZodUUID;
35
+ revision: z.ZodString;
36
+ generation: z.ZodNullable<z.ZodUUID>;
37
+ observedAt: z.ZodISODateTime;
38
+ eligible: z.ZodBoolean;
39
+ reason: z.ZodNullable<z.ZodString>;
40
+ run: z.ZodEnum<{
41
+ active: "active";
42
+ idle: "idle";
43
+ unknown: "unknown";
44
+ }>;
45
+ queue: z.ZodNullable<z.ZodNumber>;
46
+ approvals: z.ZodNullable<z.ZodNumber>;
47
+ children: z.ZodNullable<z.ZodNumber>;
48
+ background: z.ZodNullable<z.ZodNumber>;
49
+ processes: z.ZodArray<z.ZodObject<{
50
+ pid: z.ZodNumber;
51
+ startTime: z.ZodString;
52
+ }, z.core.$strict>>;
53
+ }, z.core.$strict>;
54
+ export type IdleProof = z.infer<typeof IdleProofSchema>;
55
+ export declare const SleepRequestSchema: z.ZodObject<{
56
+ target: z.ZodObject<{
57
+ kind: z.ZodLiteral<"managed">;
58
+ source: z.ZodLiteral<"stitchmux">;
59
+ machine: z.ZodString;
60
+ agent: z.ZodEnum<{
61
+ antigravity: "antigravity";
62
+ claude: "claude";
63
+ codex: "codex";
64
+ custom: "custom";
65
+ opencode: "opencode";
66
+ }>;
67
+ session: z.ZodString;
68
+ threadId: z.ZodUUID;
69
+ }, z.core.$strict>;
70
+ registrationGeneration: z.ZodUUID;
71
+ operationId: z.ZodUUID;
72
+ revision: z.ZodString;
73
+ forcePolicy: z.ZodOptional<z.ZodBoolean>;
74
+ }, z.core.$strict>;
75
+ export declare const WakeRequestSchema: z.ZodObject<{
76
+ target: z.ZodObject<{
77
+ kind: z.ZodLiteral<"managed">;
78
+ source: z.ZodLiteral<"stitchmux">;
79
+ machine: z.ZodString;
80
+ agent: z.ZodEnum<{
81
+ antigravity: "antigravity";
82
+ claude: "claude";
83
+ codex: "codex";
84
+ custom: "custom";
85
+ opencode: "opencode";
86
+ }>;
87
+ session: z.ZodString;
88
+ threadId: z.ZodUUID;
89
+ }, z.core.$strict>;
90
+ registrationGeneration: z.ZodUUID;
91
+ operationId: z.ZodUUID;
92
+ }, z.core.$strict>;
93
+ export declare const PinRequestSchema: z.ZodObject<{
94
+ target: z.ZodObject<{
95
+ kind: z.ZodLiteral<"managed">;
96
+ source: z.ZodLiteral<"stitchmux">;
97
+ machine: z.ZodString;
98
+ agent: z.ZodEnum<{
99
+ antigravity: "antigravity";
100
+ claude: "claude";
101
+ codex: "codex";
102
+ custom: "custom";
103
+ opencode: "opencode";
104
+ }>;
105
+ session: z.ZodString;
106
+ threadId: z.ZodUUID;
107
+ }, z.core.$strict>;
108
+ pinned: z.ZodBoolean;
109
+ }, z.core.$strict>;
110
+ export declare const PinReceiptSchema: z.ZodObject<{
111
+ target: z.ZodObject<{
112
+ kind: z.ZodLiteral<"managed">;
113
+ source: z.ZodLiteral<"stitchmux">;
114
+ machine: z.ZodString;
115
+ agent: z.ZodEnum<{
116
+ antigravity: "antigravity";
117
+ claude: "claude";
118
+ codex: "codex";
119
+ custom: "custom";
120
+ opencode: "opencode";
121
+ }>;
122
+ session: z.ZodString;
123
+ threadId: z.ZodUUID;
124
+ }, z.core.$strict>;
125
+ pinned: z.ZodBoolean;
126
+ }, z.core.$strict>;
127
+ export declare const SleepRecordSchema: z.ZodObject<{
128
+ target: z.ZodObject<{
129
+ kind: z.ZodLiteral<"managed">;
130
+ source: z.ZodLiteral<"stitchmux">;
131
+ machine: z.ZodString;
132
+ agent: z.ZodEnum<{
133
+ antigravity: "antigravity";
134
+ claude: "claude";
135
+ codex: "codex";
136
+ custom: "custom";
137
+ opencode: "opencode";
138
+ }>;
139
+ session: z.ZodString;
140
+ threadId: z.ZodUUID;
141
+ }, z.core.$strict>;
142
+ registrationGeneration: z.ZodUUID;
143
+ operationId: z.ZodUUID;
144
+ proof: z.ZodObject<{
145
+ target: z.ZodObject<{
146
+ kind: z.ZodLiteral<"managed">;
147
+ source: z.ZodLiteral<"stitchmux">;
148
+ machine: z.ZodString;
149
+ agent: z.ZodEnum<{
150
+ antigravity: "antigravity";
151
+ claude: "claude";
152
+ codex: "codex";
153
+ custom: "custom";
154
+ opencode: "opencode";
155
+ }>;
156
+ session: z.ZodString;
157
+ threadId: z.ZodUUID;
158
+ }, z.core.$strict>;
159
+ registrationGeneration: z.ZodUUID;
160
+ revision: z.ZodString;
161
+ generation: z.ZodNullable<z.ZodUUID>;
162
+ observedAt: z.ZodISODateTime;
163
+ eligible: z.ZodBoolean;
164
+ reason: z.ZodNullable<z.ZodString>;
165
+ run: z.ZodEnum<{
166
+ active: "active";
167
+ idle: "idle";
168
+ unknown: "unknown";
169
+ }>;
170
+ queue: z.ZodNullable<z.ZodNumber>;
171
+ approvals: z.ZodNullable<z.ZodNumber>;
172
+ children: z.ZodNullable<z.ZodNumber>;
173
+ background: z.ZodNullable<z.ZodNumber>;
174
+ processes: z.ZodArray<z.ZodObject<{
175
+ pid: z.ZodNumber;
176
+ startTime: z.ZodString;
177
+ }, z.core.$strict>>;
178
+ }, z.core.$strict>;
179
+ phase: z.ZodEnum<{
180
+ awake: "awake";
181
+ requested: "requested";
182
+ sleeping: "sleeping";
183
+ waking: "waking";
184
+ }>;
185
+ forcePolicy: z.ZodOptional<z.ZodBoolean>;
186
+ updatedAt: z.ZodISODateTime;
187
+ }, z.core.$strict>;
188
+ export type SleepRecord = z.infer<typeof SleepRecordSchema>;
189
+ export declare const SleepReceiptSchema: z.ZodObject<{
190
+ target: z.ZodObject<{
191
+ kind: z.ZodLiteral<"managed">;
192
+ source: z.ZodLiteral<"stitchmux">;
193
+ machine: z.ZodString;
194
+ agent: z.ZodEnum<{
195
+ antigravity: "antigravity";
196
+ claude: "claude";
197
+ codex: "codex";
198
+ custom: "custom";
199
+ opencode: "opencode";
200
+ }>;
201
+ session: z.ZodString;
202
+ threadId: z.ZodUUID;
203
+ }, z.core.$strict>;
204
+ registrationGeneration: z.ZodUUID;
205
+ operationId: z.ZodUUID;
206
+ state: z.ZodEnum<{
207
+ awake: "awake";
208
+ sleeping: "sleeping";
209
+ unchanged: "unchanged";
210
+ }>;
211
+ release: z.ZodEnum<{
212
+ processReleased: "processReleased";
213
+ unsupported: "unsupported";
214
+ }>;
215
+ nativeId: z.ZodNullable<z.ZodString>;
216
+ duplicate: z.ZodBoolean;
217
+ }, z.core.$strict>;
218
+ /** `session.sleep-idle`: put to sleep every session idle at least this long, or say which would be. */
219
+ export declare const SleepIdleRequestSchema: z.ZodObject<{
220
+ idleAfterMinutes: z.ZodNumber;
221
+ dryRun: z.ZodDefault<z.ZodBoolean>;
222
+ }, z.core.$strict>;
223
+ /**
224
+ * One session's answer in a `session.sleep-idle` pass. `skipped` is policy or state that keeps it
225
+ * awake by design (pinned, busy, the profile's last awake session); `refused` is a failure;
226
+ * `not-attempted` is a candidate the pass did not reach within its budget. `code` is from the refusal
227
+ * table whenever there is one.
228
+ */
229
+ export declare const SleepIdleReceiptSchema: 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
+ outcome: z.ZodEnum<{
245
+ "not-attempted": "not-attempted";
246
+ refused: "refused";
247
+ skipped: "skipped";
248
+ slept: "slept";
249
+ "would-sleep": "would-sleep";
250
+ }>;
251
+ code: z.ZodNullable<z.ZodString>;
252
+ reason: z.ZodNullable<z.ZodString>;
253
+ }, z.core.$strict>;
254
+ export type SleepIdleReceipt = z.infer<typeof SleepIdleReceiptSchema>;
255
+ export declare const SleepIdleResultSchema: z.ZodObject<{
256
+ machine: z.ZodString;
257
+ dryRun: z.ZodBoolean;
258
+ receipts: z.ZodArray<z.ZodObject<{
259
+ target: z.ZodObject<{
260
+ kind: z.ZodLiteral<"managed">;
261
+ source: z.ZodLiteral<"stitchmux">;
262
+ machine: z.ZodString;
263
+ agent: z.ZodEnum<{
264
+ antigravity: "antigravity";
265
+ claude: "claude";
266
+ codex: "codex";
267
+ custom: "custom";
268
+ opencode: "opencode";
269
+ }>;
270
+ session: z.ZodString;
271
+ threadId: z.ZodUUID;
272
+ }, z.core.$strict>;
273
+ outcome: z.ZodEnum<{
274
+ "not-attempted": "not-attempted";
275
+ refused: "refused";
276
+ skipped: "skipped";
277
+ slept: "slept";
278
+ "would-sleep": "would-sleep";
279
+ }>;
280
+ code: z.ZodNullable<z.ZodString>;
281
+ reason: z.ZodNullable<z.ZodString>;
282
+ }, z.core.$strict>>;
283
+ }, z.core.$strict>;