@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,641 @@
1
+ import { z } from 'zod';
2
+ /** Browser-safe wire data only. Labels do not establish author or notification authority. */
3
+ export declare const LogRowSchema: z.ZodObject<{
4
+ messageId: z.ZodNullable<z.ZodUUID>;
5
+ sender: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
6
+ kind: z.ZodLiteral<"managed">;
7
+ source: z.ZodLiteral<"stitchmux">;
8
+ machine: z.ZodString;
9
+ agent: z.ZodEnum<{
10
+ antigravity: "antigravity";
11
+ claude: "claude";
12
+ codex: "codex";
13
+ custom: "custom";
14
+ opencode: "opencode";
15
+ }>;
16
+ session: z.ZodString;
17
+ threadId: z.ZodUUID;
18
+ }, z.core.$strict>, z.ZodObject<{
19
+ kind: z.ZodLiteral<"codex-app">;
20
+ source: z.ZodLiteral<"codex-app">;
21
+ machine: z.ZodString;
22
+ agent: z.ZodLiteral<"codex">;
23
+ threadId: z.ZodUUID;
24
+ name: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$strict>, z.ZodObject<{
26
+ kind: z.ZodLiteral<"cli">;
27
+ source: z.ZodLiteral<"stitchmux">;
28
+ machine: z.ZodString;
29
+ }, z.core.$strict>, z.ZodObject<{
30
+ kind: z.ZodLiteral<"service">;
31
+ source: z.ZodLiteral<"stitchmux">;
32
+ machine: z.ZodString;
33
+ transport: z.ZodEnum<{
34
+ "declared-service": "declared-service";
35
+ local: "local";
36
+ }>;
37
+ }, z.core.$strict>]>>;
38
+ target: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
39
+ kind: z.ZodLiteral<"managed">;
40
+ source: z.ZodLiteral<"stitchmux">;
41
+ machine: z.ZodString;
42
+ agent: z.ZodEnum<{
43
+ antigravity: "antigravity";
44
+ claude: "claude";
45
+ codex: "codex";
46
+ custom: "custom";
47
+ opencode: "opencode";
48
+ }>;
49
+ session: z.ZodString;
50
+ threadId: z.ZodUUID;
51
+ }, z.core.$strict>, z.ZodObject<{
52
+ kind: z.ZodLiteral<"codex-app">;
53
+ source: z.ZodLiteral<"codex-app">;
54
+ machine: z.ZodString;
55
+ agent: z.ZodLiteral<"codex">;
56
+ threadId: z.ZodUUID;
57
+ name: z.ZodNullable<z.ZodString>;
58
+ }, z.core.$strict>, z.ZodObject<{
59
+ kind: z.ZodLiteral<"owner">;
60
+ }, z.core.$strict>, z.ZodObject<{
61
+ kind: z.ZodLiteral<"external">;
62
+ source: z.ZodLiteral<"stitchmux">;
63
+ name: z.ZodString;
64
+ }, z.core.$strict>]>>;
65
+ origin: z.ZodObject<{
66
+ ingress: z.ZodEnum<{
67
+ cli: "cli";
68
+ "codex-app": "codex-app";
69
+ "local-control": "local-control";
70
+ managed: "managed";
71
+ service: "service";
72
+ unknown: "unknown";
73
+ }>;
74
+ actor: z.ZodEnum<{
75
+ agent: "agent";
76
+ application: "application";
77
+ human: "human";
78
+ unknown: "unknown";
79
+ }>;
80
+ assurance: z.ZodEnum<{
81
+ "application-attested": "application-attested";
82
+ "runtime-identity": "runtime-identity";
83
+ unknown: "unknown";
84
+ }>;
85
+ application: z.ZodNullable<z.ZodObject<{
86
+ applicationId: z.ZodString;
87
+ channelId: z.ZodString;
88
+ actor: z.ZodEnum<{
89
+ agent: "agent";
90
+ application: "application";
91
+ human: "human";
92
+ }>;
93
+ revision: z.ZodString;
94
+ digest: z.ZodString;
95
+ }, z.core.$strict>>;
96
+ }, z.core.$strict>;
97
+ communicationAuthorization: z.ZodOptional<z.ZodObject<{
98
+ basis: z.ZodOptional<z.ZodEnum<{
99
+ "peer-letter": "peer-letter";
100
+ "thread-continuation": "thread-continuation";
101
+ "user-instruction": "user-instruction";
102
+ }>>;
103
+ whyThisCommunicationIsNecessaryAndWithinTheUserAuthorizedScope: z.ZodOptional<z.ZodString>;
104
+ userAuthorizationQuote: z.ZodOptional<z.ZodString>;
105
+ sourceMessageRef: z.ZodString;
106
+ }, z.core.$strict>>;
107
+ notification: z.ZodEnum<{
108
+ conversation: "conversation";
109
+ owner: "owner";
110
+ }>;
111
+ communicationReceipt: z.ZodOptional<z.ZodObject<{
112
+ rootMessageId: z.ZodUUID;
113
+ authorization: z.ZodObject<{
114
+ basis: z.ZodOptional<z.ZodEnum<{
115
+ "peer-letter": "peer-letter";
116
+ "thread-continuation": "thread-continuation";
117
+ "user-instruction": "user-instruction";
118
+ }>>;
119
+ whyThisCommunicationIsNecessaryAndWithinTheUserAuthorizedScope: z.ZodOptional<z.ZodString>;
120
+ userAuthorizationQuote: z.ZodOptional<z.ZodString>;
121
+ sourceMessageRef: z.ZodString;
122
+ }, z.core.$strict>;
123
+ sourceLetter: z.ZodNullable<z.ZodObject<{
124
+ id: z.ZodUUID;
125
+ ts: z.ZodString;
126
+ from: z.ZodUnion<readonly [z.ZodObject<{
127
+ kind: z.ZodLiteral<"managed">;
128
+ source: z.ZodLiteral<"stitchmux">;
129
+ machine: z.ZodString;
130
+ agent: z.ZodEnum<{
131
+ antigravity: "antigravity";
132
+ claude: "claude";
133
+ codex: "codex";
134
+ custom: "custom";
135
+ opencode: "opencode";
136
+ }>;
137
+ session: z.ZodString;
138
+ threadId: z.ZodUUID;
139
+ }, z.core.$strict>, z.ZodObject<{
140
+ kind: z.ZodLiteral<"codex-app">;
141
+ source: z.ZodLiteral<"codex-app">;
142
+ machine: z.ZodString;
143
+ agent: z.ZodLiteral<"codex">;
144
+ threadId: z.ZodUUID;
145
+ name: z.ZodNullable<z.ZodString>;
146
+ }, z.core.$strict>, z.ZodObject<{
147
+ kind: z.ZodLiteral<"cli">;
148
+ source: z.ZodLiteral<"stitchmux">;
149
+ machine: z.ZodString;
150
+ }, z.core.$strict>, z.ZodObject<{
151
+ kind: z.ZodLiteral<"service">;
152
+ source: z.ZodLiteral<"stitchmux">;
153
+ machine: z.ZodString;
154
+ transport: z.ZodEnum<{
155
+ "declared-service": "declared-service";
156
+ local: "local";
157
+ }>;
158
+ }, z.core.$strict>]>;
159
+ to: z.ZodUnion<readonly [z.ZodObject<{
160
+ kind: z.ZodLiteral<"managed">;
161
+ source: z.ZodLiteral<"stitchmux">;
162
+ machine: z.ZodString;
163
+ agent: z.ZodEnum<{
164
+ antigravity: "antigravity";
165
+ claude: "claude";
166
+ codex: "codex";
167
+ custom: "custom";
168
+ opencode: "opencode";
169
+ }>;
170
+ session: z.ZodString;
171
+ threadId: z.ZodUUID;
172
+ }, z.core.$strict>, z.ZodObject<{
173
+ kind: z.ZodLiteral<"codex-app">;
174
+ source: z.ZodLiteral<"codex-app">;
175
+ machine: z.ZodString;
176
+ agent: z.ZodLiteral<"codex">;
177
+ threadId: z.ZodUUID;
178
+ name: z.ZodNullable<z.ZodString>;
179
+ }, z.core.$strict>, z.ZodObject<{
180
+ kind: z.ZodLiteral<"owner">;
181
+ }, z.core.$strict>, z.ZodObject<{
182
+ kind: z.ZodLiteral<"external">;
183
+ source: z.ZodLiteral<"stitchmux">;
184
+ name: z.ZodString;
185
+ }, z.core.$strict>]>;
186
+ task: z.ZodNullable<z.ZodString>;
187
+ body: z.ZodString;
188
+ }, z.core.$strict>>;
189
+ }, z.core.$strict>>;
190
+ registrationGeneration: z.ZodNullable<z.ZodUUID>;
191
+ machine: z.ZodString;
192
+ ts: z.ZodString;
193
+ kind: z.ZodEnum<{
194
+ chat: "chat";
195
+ sent: "sent";
196
+ }>;
197
+ from: z.ZodString;
198
+ to: z.ZodString;
199
+ task: z.ZodDefault<z.ZodNullable<z.ZodString>>;
200
+ body: z.ZodString;
201
+ note: z.ZodDefault<z.ZodString>;
202
+ }, z.core.$strip>;
203
+ export type LogRow = z.infer<typeof LogRowSchema>;
204
+ export declare const LogMachineSchema: z.ZodObject<{
205
+ machine: z.ZodString;
206
+ ok: z.ZodDefault<z.ZodBoolean>;
207
+ error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
208
+ }, z.core.$strip>;
209
+ export type LogMachine = z.infer<typeof LogMachineSchema>;
210
+ export declare const LogPayloadSchema: z.ZodObject<{
211
+ machines: z.ZodDefault<z.ZodArray<z.ZodObject<{
212
+ machine: z.ZodString;
213
+ ok: z.ZodDefault<z.ZodBoolean>;
214
+ error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
215
+ }, z.core.$strip>>>;
216
+ rows: z.ZodDefault<z.ZodArray<z.ZodObject<{
217
+ messageId: z.ZodNullable<z.ZodUUID>;
218
+ sender: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
219
+ kind: z.ZodLiteral<"managed">;
220
+ source: z.ZodLiteral<"stitchmux">;
221
+ machine: z.ZodString;
222
+ agent: z.ZodEnum<{
223
+ antigravity: "antigravity";
224
+ claude: "claude";
225
+ codex: "codex";
226
+ custom: "custom";
227
+ opencode: "opencode";
228
+ }>;
229
+ session: z.ZodString;
230
+ threadId: z.ZodUUID;
231
+ }, z.core.$strict>, z.ZodObject<{
232
+ kind: z.ZodLiteral<"codex-app">;
233
+ source: z.ZodLiteral<"codex-app">;
234
+ machine: z.ZodString;
235
+ agent: z.ZodLiteral<"codex">;
236
+ threadId: z.ZodUUID;
237
+ name: z.ZodNullable<z.ZodString>;
238
+ }, z.core.$strict>, z.ZodObject<{
239
+ kind: z.ZodLiteral<"cli">;
240
+ source: z.ZodLiteral<"stitchmux">;
241
+ machine: z.ZodString;
242
+ }, z.core.$strict>, z.ZodObject<{
243
+ kind: z.ZodLiteral<"service">;
244
+ source: z.ZodLiteral<"stitchmux">;
245
+ machine: z.ZodString;
246
+ transport: z.ZodEnum<{
247
+ "declared-service": "declared-service";
248
+ local: "local";
249
+ }>;
250
+ }, z.core.$strict>]>>;
251
+ target: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
252
+ kind: z.ZodLiteral<"managed">;
253
+ source: z.ZodLiteral<"stitchmux">;
254
+ machine: z.ZodString;
255
+ agent: z.ZodEnum<{
256
+ antigravity: "antigravity";
257
+ claude: "claude";
258
+ codex: "codex";
259
+ custom: "custom";
260
+ opencode: "opencode";
261
+ }>;
262
+ session: z.ZodString;
263
+ threadId: z.ZodUUID;
264
+ }, z.core.$strict>, z.ZodObject<{
265
+ kind: z.ZodLiteral<"codex-app">;
266
+ source: z.ZodLiteral<"codex-app">;
267
+ machine: z.ZodString;
268
+ agent: z.ZodLiteral<"codex">;
269
+ threadId: z.ZodUUID;
270
+ name: z.ZodNullable<z.ZodString>;
271
+ }, z.core.$strict>, z.ZodObject<{
272
+ kind: z.ZodLiteral<"owner">;
273
+ }, z.core.$strict>, z.ZodObject<{
274
+ kind: z.ZodLiteral<"external">;
275
+ source: z.ZodLiteral<"stitchmux">;
276
+ name: z.ZodString;
277
+ }, z.core.$strict>]>>;
278
+ origin: z.ZodObject<{
279
+ ingress: z.ZodEnum<{
280
+ cli: "cli";
281
+ "codex-app": "codex-app";
282
+ "local-control": "local-control";
283
+ managed: "managed";
284
+ service: "service";
285
+ unknown: "unknown";
286
+ }>;
287
+ actor: z.ZodEnum<{
288
+ agent: "agent";
289
+ application: "application";
290
+ human: "human";
291
+ unknown: "unknown";
292
+ }>;
293
+ assurance: z.ZodEnum<{
294
+ "application-attested": "application-attested";
295
+ "runtime-identity": "runtime-identity";
296
+ unknown: "unknown";
297
+ }>;
298
+ application: z.ZodNullable<z.ZodObject<{
299
+ applicationId: z.ZodString;
300
+ channelId: z.ZodString;
301
+ actor: z.ZodEnum<{
302
+ agent: "agent";
303
+ application: "application";
304
+ human: "human";
305
+ }>;
306
+ revision: z.ZodString;
307
+ digest: z.ZodString;
308
+ }, z.core.$strict>>;
309
+ }, z.core.$strict>;
310
+ communicationAuthorization: z.ZodOptional<z.ZodObject<{
311
+ basis: z.ZodOptional<z.ZodEnum<{
312
+ "peer-letter": "peer-letter";
313
+ "thread-continuation": "thread-continuation";
314
+ "user-instruction": "user-instruction";
315
+ }>>;
316
+ whyThisCommunicationIsNecessaryAndWithinTheUserAuthorizedScope: z.ZodOptional<z.ZodString>;
317
+ userAuthorizationQuote: z.ZodOptional<z.ZodString>;
318
+ sourceMessageRef: z.ZodString;
319
+ }, z.core.$strict>>;
320
+ notification: z.ZodEnum<{
321
+ conversation: "conversation";
322
+ owner: "owner";
323
+ }>;
324
+ communicationReceipt: z.ZodOptional<z.ZodObject<{
325
+ rootMessageId: z.ZodUUID;
326
+ authorization: z.ZodObject<{
327
+ basis: z.ZodOptional<z.ZodEnum<{
328
+ "peer-letter": "peer-letter";
329
+ "thread-continuation": "thread-continuation";
330
+ "user-instruction": "user-instruction";
331
+ }>>;
332
+ whyThisCommunicationIsNecessaryAndWithinTheUserAuthorizedScope: z.ZodOptional<z.ZodString>;
333
+ userAuthorizationQuote: z.ZodOptional<z.ZodString>;
334
+ sourceMessageRef: z.ZodString;
335
+ }, z.core.$strict>;
336
+ sourceLetter: z.ZodNullable<z.ZodObject<{
337
+ id: z.ZodUUID;
338
+ ts: z.ZodString;
339
+ from: z.ZodUnion<readonly [z.ZodObject<{
340
+ kind: z.ZodLiteral<"managed">;
341
+ source: z.ZodLiteral<"stitchmux">;
342
+ machine: z.ZodString;
343
+ agent: z.ZodEnum<{
344
+ antigravity: "antigravity";
345
+ claude: "claude";
346
+ codex: "codex";
347
+ custom: "custom";
348
+ opencode: "opencode";
349
+ }>;
350
+ session: z.ZodString;
351
+ threadId: z.ZodUUID;
352
+ }, z.core.$strict>, z.ZodObject<{
353
+ kind: z.ZodLiteral<"codex-app">;
354
+ source: z.ZodLiteral<"codex-app">;
355
+ machine: z.ZodString;
356
+ agent: z.ZodLiteral<"codex">;
357
+ threadId: z.ZodUUID;
358
+ name: z.ZodNullable<z.ZodString>;
359
+ }, z.core.$strict>, z.ZodObject<{
360
+ kind: z.ZodLiteral<"cli">;
361
+ source: z.ZodLiteral<"stitchmux">;
362
+ machine: z.ZodString;
363
+ }, z.core.$strict>, z.ZodObject<{
364
+ kind: z.ZodLiteral<"service">;
365
+ source: z.ZodLiteral<"stitchmux">;
366
+ machine: z.ZodString;
367
+ transport: z.ZodEnum<{
368
+ "declared-service": "declared-service";
369
+ local: "local";
370
+ }>;
371
+ }, z.core.$strict>]>;
372
+ to: z.ZodUnion<readonly [z.ZodObject<{
373
+ kind: z.ZodLiteral<"managed">;
374
+ source: z.ZodLiteral<"stitchmux">;
375
+ machine: z.ZodString;
376
+ agent: z.ZodEnum<{
377
+ antigravity: "antigravity";
378
+ claude: "claude";
379
+ codex: "codex";
380
+ custom: "custom";
381
+ opencode: "opencode";
382
+ }>;
383
+ session: z.ZodString;
384
+ threadId: z.ZodUUID;
385
+ }, z.core.$strict>, z.ZodObject<{
386
+ kind: z.ZodLiteral<"codex-app">;
387
+ source: z.ZodLiteral<"codex-app">;
388
+ machine: z.ZodString;
389
+ agent: z.ZodLiteral<"codex">;
390
+ threadId: z.ZodUUID;
391
+ name: z.ZodNullable<z.ZodString>;
392
+ }, z.core.$strict>, z.ZodObject<{
393
+ kind: z.ZodLiteral<"owner">;
394
+ }, z.core.$strict>, z.ZodObject<{
395
+ kind: z.ZodLiteral<"external">;
396
+ source: z.ZodLiteral<"stitchmux">;
397
+ name: z.ZodString;
398
+ }, z.core.$strict>]>;
399
+ task: z.ZodNullable<z.ZodString>;
400
+ body: z.ZodString;
401
+ }, z.core.$strict>>;
402
+ }, z.core.$strict>>;
403
+ registrationGeneration: z.ZodNullable<z.ZodUUID>;
404
+ machine: z.ZodString;
405
+ ts: z.ZodString;
406
+ kind: z.ZodEnum<{
407
+ chat: "chat";
408
+ sent: "sent";
409
+ }>;
410
+ from: z.ZodString;
411
+ to: z.ZodString;
412
+ task: z.ZodDefault<z.ZodNullable<z.ZodString>>;
413
+ body: z.ZodString;
414
+ note: z.ZodDefault<z.ZodString>;
415
+ }, z.core.$strip>>>;
416
+ }, z.core.$strip>;
417
+ export type LogPayload = z.infer<typeof LogPayloadSchema>;
418
+ /**
419
+ * The largest frame this feed will emit.
420
+ *
421
+ * Anchored to the transport rather than chosen by taste: the remote transport carries a stream in 32 KiB chunks,
422
+ * so a record that fits inside one is never split across two, and a reader assembling lines never
423
+ * has to hold a partial record across a chunk boundary. The cap is on the WHOLE frame, not on the
424
+ * body alone — otherwise a long address or task name could still push a frame over while the field
425
+ * everyone watches looked innocent.
426
+ */
427
+ export declare const LOG_FRAME_MAX_BYTES: number;
428
+ /** The cursor is an opaque producer position; consumers return it unchanged. */
429
+ export declare const LogFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
430
+ kind: z.ZodLiteral<"row">;
431
+ cursor: z.ZodString;
432
+ row: z.ZodObject<{
433
+ messageId: z.ZodNullable<z.ZodUUID>;
434
+ sender: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
435
+ kind: z.ZodLiteral<"managed">;
436
+ source: z.ZodLiteral<"stitchmux">;
437
+ machine: z.ZodString;
438
+ agent: z.ZodEnum<{
439
+ antigravity: "antigravity";
440
+ claude: "claude";
441
+ codex: "codex";
442
+ custom: "custom";
443
+ opencode: "opencode";
444
+ }>;
445
+ session: z.ZodString;
446
+ threadId: z.ZodUUID;
447
+ }, z.core.$strict>, z.ZodObject<{
448
+ kind: z.ZodLiteral<"codex-app">;
449
+ source: z.ZodLiteral<"codex-app">;
450
+ machine: z.ZodString;
451
+ agent: z.ZodLiteral<"codex">;
452
+ threadId: z.ZodUUID;
453
+ name: z.ZodNullable<z.ZodString>;
454
+ }, z.core.$strict>, z.ZodObject<{
455
+ kind: z.ZodLiteral<"cli">;
456
+ source: z.ZodLiteral<"stitchmux">;
457
+ machine: z.ZodString;
458
+ }, z.core.$strict>, z.ZodObject<{
459
+ kind: z.ZodLiteral<"service">;
460
+ source: z.ZodLiteral<"stitchmux">;
461
+ machine: z.ZodString;
462
+ transport: z.ZodEnum<{
463
+ "declared-service": "declared-service";
464
+ local: "local";
465
+ }>;
466
+ }, z.core.$strict>]>>;
467
+ target: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
468
+ kind: z.ZodLiteral<"managed">;
469
+ source: z.ZodLiteral<"stitchmux">;
470
+ machine: z.ZodString;
471
+ agent: z.ZodEnum<{
472
+ antigravity: "antigravity";
473
+ claude: "claude";
474
+ codex: "codex";
475
+ custom: "custom";
476
+ opencode: "opencode";
477
+ }>;
478
+ session: z.ZodString;
479
+ threadId: z.ZodUUID;
480
+ }, z.core.$strict>, z.ZodObject<{
481
+ kind: z.ZodLiteral<"codex-app">;
482
+ source: z.ZodLiteral<"codex-app">;
483
+ machine: z.ZodString;
484
+ agent: z.ZodLiteral<"codex">;
485
+ threadId: z.ZodUUID;
486
+ name: z.ZodNullable<z.ZodString>;
487
+ }, z.core.$strict>, z.ZodObject<{
488
+ kind: z.ZodLiteral<"owner">;
489
+ }, z.core.$strict>, z.ZodObject<{
490
+ kind: z.ZodLiteral<"external">;
491
+ source: z.ZodLiteral<"stitchmux">;
492
+ name: z.ZodString;
493
+ }, z.core.$strict>]>>;
494
+ origin: z.ZodObject<{
495
+ ingress: z.ZodEnum<{
496
+ cli: "cli";
497
+ "codex-app": "codex-app";
498
+ "local-control": "local-control";
499
+ managed: "managed";
500
+ service: "service";
501
+ unknown: "unknown";
502
+ }>;
503
+ actor: z.ZodEnum<{
504
+ agent: "agent";
505
+ application: "application";
506
+ human: "human";
507
+ unknown: "unknown";
508
+ }>;
509
+ assurance: z.ZodEnum<{
510
+ "application-attested": "application-attested";
511
+ "runtime-identity": "runtime-identity";
512
+ unknown: "unknown";
513
+ }>;
514
+ application: z.ZodNullable<z.ZodObject<{
515
+ applicationId: z.ZodString;
516
+ channelId: z.ZodString;
517
+ actor: z.ZodEnum<{
518
+ agent: "agent";
519
+ application: "application";
520
+ human: "human";
521
+ }>;
522
+ revision: z.ZodString;
523
+ digest: z.ZodString;
524
+ }, z.core.$strict>>;
525
+ }, z.core.$strict>;
526
+ communicationAuthorization: z.ZodOptional<z.ZodObject<{
527
+ basis: z.ZodOptional<z.ZodEnum<{
528
+ "peer-letter": "peer-letter";
529
+ "thread-continuation": "thread-continuation";
530
+ "user-instruction": "user-instruction";
531
+ }>>;
532
+ whyThisCommunicationIsNecessaryAndWithinTheUserAuthorizedScope: z.ZodOptional<z.ZodString>;
533
+ userAuthorizationQuote: z.ZodOptional<z.ZodString>;
534
+ sourceMessageRef: z.ZodString;
535
+ }, z.core.$strict>>;
536
+ notification: z.ZodEnum<{
537
+ conversation: "conversation";
538
+ owner: "owner";
539
+ }>;
540
+ communicationReceipt: z.ZodOptional<z.ZodObject<{
541
+ rootMessageId: z.ZodUUID;
542
+ authorization: z.ZodObject<{
543
+ basis: z.ZodOptional<z.ZodEnum<{
544
+ "peer-letter": "peer-letter";
545
+ "thread-continuation": "thread-continuation";
546
+ "user-instruction": "user-instruction";
547
+ }>>;
548
+ whyThisCommunicationIsNecessaryAndWithinTheUserAuthorizedScope: z.ZodOptional<z.ZodString>;
549
+ userAuthorizationQuote: z.ZodOptional<z.ZodString>;
550
+ sourceMessageRef: z.ZodString;
551
+ }, z.core.$strict>;
552
+ sourceLetter: z.ZodNullable<z.ZodObject<{
553
+ id: z.ZodUUID;
554
+ ts: z.ZodString;
555
+ from: z.ZodUnion<readonly [z.ZodObject<{
556
+ kind: z.ZodLiteral<"managed">;
557
+ source: z.ZodLiteral<"stitchmux">;
558
+ machine: z.ZodString;
559
+ agent: z.ZodEnum<{
560
+ antigravity: "antigravity";
561
+ claude: "claude";
562
+ codex: "codex";
563
+ custom: "custom";
564
+ opencode: "opencode";
565
+ }>;
566
+ session: z.ZodString;
567
+ threadId: z.ZodUUID;
568
+ }, z.core.$strict>, z.ZodObject<{
569
+ kind: z.ZodLiteral<"codex-app">;
570
+ source: z.ZodLiteral<"codex-app">;
571
+ machine: z.ZodString;
572
+ agent: z.ZodLiteral<"codex">;
573
+ threadId: z.ZodUUID;
574
+ name: z.ZodNullable<z.ZodString>;
575
+ }, z.core.$strict>, z.ZodObject<{
576
+ kind: z.ZodLiteral<"cli">;
577
+ source: z.ZodLiteral<"stitchmux">;
578
+ machine: z.ZodString;
579
+ }, z.core.$strict>, z.ZodObject<{
580
+ kind: z.ZodLiteral<"service">;
581
+ source: z.ZodLiteral<"stitchmux">;
582
+ machine: z.ZodString;
583
+ transport: z.ZodEnum<{
584
+ "declared-service": "declared-service";
585
+ local: "local";
586
+ }>;
587
+ }, z.core.$strict>]>;
588
+ to: z.ZodUnion<readonly [z.ZodObject<{
589
+ kind: z.ZodLiteral<"managed">;
590
+ source: z.ZodLiteral<"stitchmux">;
591
+ machine: z.ZodString;
592
+ agent: z.ZodEnum<{
593
+ antigravity: "antigravity";
594
+ claude: "claude";
595
+ codex: "codex";
596
+ custom: "custom";
597
+ opencode: "opencode";
598
+ }>;
599
+ session: z.ZodString;
600
+ threadId: z.ZodUUID;
601
+ }, z.core.$strict>, z.ZodObject<{
602
+ kind: z.ZodLiteral<"codex-app">;
603
+ source: z.ZodLiteral<"codex-app">;
604
+ machine: z.ZodString;
605
+ agent: z.ZodLiteral<"codex">;
606
+ threadId: z.ZodUUID;
607
+ name: z.ZodNullable<z.ZodString>;
608
+ }, z.core.$strict>, z.ZodObject<{
609
+ kind: z.ZodLiteral<"owner">;
610
+ }, z.core.$strict>, z.ZodObject<{
611
+ kind: z.ZodLiteral<"external">;
612
+ source: z.ZodLiteral<"stitchmux">;
613
+ name: z.ZodString;
614
+ }, z.core.$strict>]>;
615
+ task: z.ZodNullable<z.ZodString>;
616
+ body: z.ZodString;
617
+ }, z.core.$strict>>;
618
+ }, z.core.$strict>>;
619
+ registrationGeneration: z.ZodNullable<z.ZodUUID>;
620
+ machine: z.ZodString;
621
+ ts: z.ZodString;
622
+ kind: z.ZodEnum<{
623
+ chat: "chat";
624
+ sent: "sent";
625
+ }>;
626
+ from: z.ZodString;
627
+ to: z.ZodString;
628
+ task: z.ZodDefault<z.ZodNullable<z.ZodString>>;
629
+ body: z.ZodString;
630
+ note: z.ZodDefault<z.ZodString>;
631
+ }, z.core.$strip>;
632
+ }, z.core.$strict>, z.ZodObject<{
633
+ kind: z.ZodLiteral<"machine">;
634
+ cursor: z.ZodString;
635
+ machine: z.ZodObject<{
636
+ machine: z.ZodString;
637
+ ok: z.ZodDefault<z.ZodBoolean>;
638
+ error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
639
+ }, z.core.$strip>;
640
+ }, z.core.$strict>], "kind">;
641
+ export type LogFrame = z.infer<typeof LogFrameSchema>;
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Why delivery is held, as a value a consumer can branch on.
4
+ *
5
+ * The vocabulary already existed — `ChatPaneState` — and was thrown away at exactly this point:
6
+ * only the prose was persisted, so everything downstream had a sentence where it needed a kind. A
7
+ * consumer reading "queued" could not tell a recipient sitting in a selection menu, which needs a
8
+ * person, from one mid-turn, which needs nothing but time; it showed "queued" for both, and a
9
+ * conversation sat that way for twenty-two hours.
10
+ *
11
+ * `other` is for a hold recorded before this field existed, or by a future site that has not been
12
+ * given a kind. It means "the text is all there is", never "nothing is wrong".
13
+ */
14
+ export declare const ChatHoldKindSchema: z.ZodEnum<{
15
+ "human-typing": "human-typing";
16
+ "input-busy": "input-busy";
17
+ menu: "menu";
18
+ "not-drawn": "not-drawn";
19
+ "not-settled": "not-settled";
20
+ other: "other";
21
+ "queued-input": "queued-input";
22
+ "rate-limited": "rate-limited";
23
+ sleeping: "sleeping";
24
+ working: "working";
25
+ }>;
26
+ export type ChatHoldKind = z.infer<typeof ChatHoldKindSchema>;