@openchamber/sdk 2.3.1 → 2.3.3
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.
- package/GUEST_SERVICES.md +1 -0
- package/dist/contract.d.ts +7 -7
- package/dist/contract.js +1 -1
- package/dist/host.js +7 -7
- package/dist/index.js +15 -15
- package/dist/manifest.d.ts +12 -12
- package/dist/parse.d.ts +26 -26
- package/dist/parse.js +4 -4
- package/dist/popover-schemas.d.ts +3 -3
- package/dist/popover-schemas.js +1 -1
- package/dist/popover.d.ts +2 -2
- package/dist/protocol.d.ts +222 -222
- package/dist/protocol.js +7 -7
- package/dist/schemas.js +7 -7
- package/dist/service-provider-schemas.d.ts +6 -6
- package/dist/service-provider-schemas.js +1 -1
- package/dist/service-providers.d.ts +3 -3
- package/dist/service-surface-schemas.d.ts +9 -9
- package/dist/service-surface-schemas.js +1 -1
- package/dist/service-surface.d.ts +2 -2
- package/dist/shells.d.ts +1 -1
- package/dist/status-control-schemas.js +1 -1
- package/dist/ui/badge.js +2 -2
- package/dist/ui/banner.js +3 -3
- package/dist/ui/button.js +2 -2
- package/dist/ui/checkbox.js +3 -3
- package/dist/ui/dom.js +1 -1
- package/dist/ui/empty.js +3 -3
- package/dist/ui/field.js +2 -2
- package/dist/ui/icons.d.ts +4 -4
- package/dist/ui/index.js +19 -19
- package/dist/ui/list.js +4 -4
- package/dist/ui/menu.js +6 -6
- package/dist/ui/navigation.d.ts +1 -1
- package/dist/ui/option.d.ts +1 -1
- package/dist/ui/option.js +2 -2
- package/dist/ui/popup.js +1 -1
- package/dist/ui/progress.js +3 -3
- package/dist/ui/search.js +3 -3
- package/dist/ui/select.js +6 -6
- package/dist/ui/separator.js +2 -2
- package/dist/ui/spinner.js +2 -2
- package/dist/ui/style.js +1 -1
- package/dist/ui/tabs.js +3 -3
- package/dist/ui/text.js +2 -2
- package/dist/workspace-schemas.d.ts +14 -14
- package/dist/workspace-schemas.js +1 -1
- package/package.json +2 -2
package/dist/protocol.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type GuestMessage, type HostMessage } from './contract.ts';
|
|
3
3
|
export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4
|
+
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
5
|
+
v: z.ZodLiteral<1>;
|
|
4
6
|
type: z.ZodLiteral<"workspace">;
|
|
5
7
|
payload: z.ZodObject<{
|
|
6
8
|
subscriptionId: z.ZodString;
|
|
7
9
|
snapshot: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
10
|
kind: z.ZodLiteral<"projects">;
|
|
9
11
|
state: z.ZodEnum<{
|
|
12
|
+
error: "error";
|
|
10
13
|
loading: "loading";
|
|
11
14
|
ready: "ready";
|
|
12
|
-
error: "error";
|
|
13
15
|
}>;
|
|
14
16
|
projects: z.ZodArray<z.ZodObject<{
|
|
15
17
|
id: z.ZodString;
|
|
@@ -20,35 +22,35 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
20
22
|
kind: z.ZodLiteral<"worktrees">;
|
|
21
23
|
projectId: z.ZodString;
|
|
22
24
|
state: z.ZodEnum<{
|
|
25
|
+
error: "error";
|
|
23
26
|
loading: "loading";
|
|
24
27
|
ready: "ready";
|
|
25
|
-
error: "error";
|
|
26
28
|
}>;
|
|
27
29
|
worktrees: z.ZodArray<z.ZodObject<{
|
|
28
30
|
directory: z.ZodString;
|
|
29
31
|
name: z.ZodString;
|
|
30
32
|
branch: z.ZodString;
|
|
31
33
|
status: z.ZodEnum<{
|
|
32
|
-
ready: "ready";
|
|
33
|
-
pending: "pending";
|
|
34
34
|
invalid: "invalid";
|
|
35
35
|
missing: "missing";
|
|
36
|
+
pending: "pending";
|
|
37
|
+
ready: "ready";
|
|
36
38
|
}>;
|
|
37
39
|
}, z.core.$strip>>;
|
|
38
40
|
}, z.core.$strip>, z.ZodObject<{
|
|
39
41
|
kind: z.ZodLiteral<"sessions">;
|
|
40
42
|
projectId: z.ZodString;
|
|
41
43
|
state: z.ZodEnum<{
|
|
44
|
+
error: "error";
|
|
42
45
|
loading: "loading";
|
|
43
46
|
ready: "ready";
|
|
44
|
-
error: "error";
|
|
45
47
|
}>;
|
|
46
48
|
coverage: z.ZodArray<z.ZodObject<{
|
|
47
49
|
directory: z.ZodString;
|
|
48
50
|
state: z.ZodEnum<{
|
|
51
|
+
error: "error";
|
|
49
52
|
loading: "loading";
|
|
50
53
|
ready: "ready";
|
|
51
|
-
error: "error";
|
|
52
54
|
}>;
|
|
53
55
|
}, z.core.$strip>>;
|
|
54
56
|
sessions: z.ZodArray<z.ZodObject<{
|
|
@@ -65,17 +67,17 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
65
67
|
name: z.ZodString;
|
|
66
68
|
branch: z.ZodString;
|
|
67
69
|
status: z.ZodEnum<{
|
|
68
|
-
ready: "ready";
|
|
69
|
-
pending: "pending";
|
|
70
70
|
invalid: "invalid";
|
|
71
71
|
missing: "missing";
|
|
72
|
+
pending: "pending";
|
|
73
|
+
ready: "ready";
|
|
72
74
|
}>;
|
|
73
75
|
}, z.core.$strip>>;
|
|
74
76
|
activity: z.ZodEnum<{
|
|
75
|
-
unknown: "unknown";
|
|
76
77
|
idle: "idle";
|
|
77
|
-
running: "running";
|
|
78
78
|
retrying: "retrying";
|
|
79
|
+
running: "running";
|
|
80
|
+
unknown: "unknown";
|
|
79
81
|
"waiting-permission": "waiting-permission";
|
|
80
82
|
"waiting-question": "waiting-question";
|
|
81
83
|
}>;
|
|
@@ -90,9 +92,9 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
90
92
|
}, z.core.$strip>>;
|
|
91
93
|
}, z.core.$strip>], "kind">;
|
|
92
94
|
}, z.core.$strip>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
96
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
94
97
|
v: z.ZodLiteral<1>;
|
|
95
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
96
98
|
type: z.ZodLiteral<"shells">;
|
|
97
99
|
payload: z.ZodObject<{
|
|
98
100
|
subscriptionId: z.ZodString;
|
|
@@ -122,9 +124,9 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
122
124
|
background: z.ZodBoolean;
|
|
123
125
|
status: z.ZodEnum<{
|
|
124
126
|
exited: "exited";
|
|
125
|
-
timeout: "timeout";
|
|
126
127
|
killed: "killed";
|
|
127
128
|
stopped: "stopped";
|
|
129
|
+
timeout: "timeout";
|
|
128
130
|
unknown: "unknown";
|
|
129
131
|
}>;
|
|
130
132
|
exit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -132,15 +134,15 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
132
134
|
}, z.core.$strict>>;
|
|
133
135
|
}, z.core.$strict>;
|
|
134
136
|
}, z.core.$strip>;
|
|
137
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
135
138
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
136
139
|
v: z.ZodLiteral<1>;
|
|
137
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
138
140
|
type: z.ZodLiteral<"ready">;
|
|
139
141
|
payload: z.ZodObject<{
|
|
140
142
|
theme: z.ZodObject<{
|
|
141
143
|
mode: z.ZodEnum<{
|
|
142
|
-
light: "light";
|
|
143
144
|
dark: "dark";
|
|
145
|
+
light: "light";
|
|
144
146
|
}>;
|
|
145
147
|
tokens: z.ZodObject<{
|
|
146
148
|
background: z.ZodString;
|
|
@@ -190,13 +192,13 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
190
192
|
agent: z.ZodOptional<z.ZodString>;
|
|
191
193
|
}, z.core.$strip>>;
|
|
192
194
|
surface: z.ZodEnum<{
|
|
193
|
-
panel: "panel";
|
|
194
|
-
dialog: "dialog";
|
|
195
|
-
page: "page";
|
|
196
195
|
background: "background";
|
|
197
|
-
|
|
196
|
+
dialog: "dialog";
|
|
198
197
|
file: "file";
|
|
198
|
+
page: "page";
|
|
199
|
+
panel: "panel";
|
|
199
200
|
popover: "popover";
|
|
201
|
+
status: "status";
|
|
200
202
|
}>;
|
|
201
203
|
connection: z.ZodObject<{
|
|
202
204
|
connected: z.ZodBoolean;
|
|
@@ -211,8 +213,8 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
211
213
|
directory: z.ZodNullable<z.ZodString>;
|
|
212
214
|
messageId: z.ZodString;
|
|
213
215
|
role: z.ZodEnum<{
|
|
214
|
-
user: "user";
|
|
215
216
|
assistant: "assistant";
|
|
217
|
+
user: "user";
|
|
216
218
|
}>;
|
|
217
219
|
text: z.ZodString;
|
|
218
220
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -224,8 +226,8 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
224
226
|
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
225
227
|
id: z.ZodString;
|
|
226
228
|
role: z.ZodEnum<{
|
|
227
|
-
user: "user";
|
|
228
229
|
assistant: "assistant";
|
|
230
|
+
user: "user";
|
|
229
231
|
}>;
|
|
230
232
|
text: z.ZodString;
|
|
231
233
|
createdAt: z.ZodNumber;
|
|
@@ -258,16 +260,16 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
258
260
|
popovers: z.ZodOptional<z.ZodLiteral<true>>;
|
|
259
261
|
}, z.core.$strip>>;
|
|
260
262
|
}, z.core.$strip>;
|
|
263
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
261
264
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
262
265
|
v: z.ZodLiteral<1>;
|
|
263
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
264
266
|
type: z.ZodLiteral<"directory">;
|
|
265
267
|
payload: z.ZodObject<{
|
|
266
268
|
directory: z.ZodNullable<z.ZodString>;
|
|
267
269
|
}, z.core.$strip>;
|
|
270
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
268
271
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
269
272
|
v: z.ZodLiteral<1>;
|
|
270
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
271
273
|
type: z.ZodLiteral<"session">;
|
|
272
274
|
payload: z.ZodObject<{
|
|
273
275
|
session: z.ZodNullable<z.ZodObject<{
|
|
@@ -278,9 +280,9 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
278
280
|
agent: z.ZodOptional<z.ZodString>;
|
|
279
281
|
}, z.core.$strip>>;
|
|
280
282
|
}, z.core.$strip>;
|
|
283
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
281
284
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
282
285
|
v: z.ZodLiteral<1>;
|
|
283
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
284
286
|
type: z.ZodLiteral<"connection">;
|
|
285
287
|
payload: z.ZodObject<{
|
|
286
288
|
connection: z.ZodObject<{
|
|
@@ -288,28 +290,28 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
288
290
|
account: z.ZodString;
|
|
289
291
|
}, z.core.$strip>;
|
|
290
292
|
}, z.core.$strip>;
|
|
293
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
291
294
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
292
295
|
v: z.ZodLiteral<1>;
|
|
293
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
294
296
|
type: z.ZodLiteral<"settings">;
|
|
295
297
|
payload: z.ZodObject<{
|
|
296
298
|
settings: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
297
299
|
}, z.core.$strip>;
|
|
300
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
298
301
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
299
302
|
v: z.ZodLiteral<1>;
|
|
300
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
301
303
|
type: z.ZodLiteral<"session-lifecycle">;
|
|
302
304
|
payload: z.ZodObject<{
|
|
303
305
|
sessionId: z.ZodString;
|
|
304
306
|
phase: z.ZodEnum<{
|
|
305
307
|
completed: "completed";
|
|
306
|
-
started: "started";
|
|
307
308
|
failure: "failure";
|
|
309
|
+
started: "started";
|
|
308
310
|
}>;
|
|
309
311
|
}, z.core.$strip>;
|
|
312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
310
313
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
311
314
|
v: z.ZodLiteral<1>;
|
|
312
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
313
315
|
type: z.ZodLiteral<"item">;
|
|
314
316
|
payload: z.ZodObject<{
|
|
315
317
|
item: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -320,8 +322,8 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
320
322
|
directory: z.ZodNullable<z.ZodString>;
|
|
321
323
|
messageId: z.ZodString;
|
|
322
324
|
role: z.ZodEnum<{
|
|
323
|
-
user: "user";
|
|
324
325
|
assistant: "assistant";
|
|
326
|
+
user: "user";
|
|
325
327
|
}>;
|
|
326
328
|
text: z.ZodString;
|
|
327
329
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -333,8 +335,8 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
333
335
|
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
334
336
|
id: z.ZodString;
|
|
335
337
|
role: z.ZodEnum<{
|
|
336
|
-
user: "user";
|
|
337
338
|
assistant: "assistant";
|
|
339
|
+
user: "user";
|
|
338
340
|
}>;
|
|
339
341
|
text: z.ZodString;
|
|
340
342
|
createdAt: z.ZodNumber;
|
|
@@ -358,41 +360,41 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
358
360
|
data: z.ZodOptional<z.ZodJSONSchema>;
|
|
359
361
|
}, z.core.$strip>]>>;
|
|
360
362
|
}, z.core.$strip>;
|
|
363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
361
364
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
362
365
|
v: z.ZodLiteral<1>;
|
|
363
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
364
366
|
type: z.ZodLiteral<"status-control-event">;
|
|
365
367
|
payload: z.ZodObject<{
|
|
366
368
|
id: z.ZodString;
|
|
367
369
|
value: z.ZodOptional<z.ZodString>;
|
|
368
370
|
}, z.core.$strict>;
|
|
371
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
369
372
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
370
373
|
v: z.ZodLiteral<1>;
|
|
371
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
372
374
|
type: z.ZodLiteral<"popover-closed">;
|
|
373
375
|
payload: z.ZodObject<{
|
|
374
376
|
id: z.ZodString;
|
|
375
377
|
reason: z.ZodEnum<{
|
|
378
|
+
anchor: "anchor";
|
|
379
|
+
closed: "closed";
|
|
376
380
|
escape: "escape";
|
|
377
381
|
outside: "outside";
|
|
378
|
-
anchor: "anchor";
|
|
379
382
|
owner: "owner";
|
|
380
|
-
closed: "closed";
|
|
381
383
|
replaced: "replaced";
|
|
382
384
|
}>;
|
|
383
385
|
}, z.core.$strict>;
|
|
386
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
384
387
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
385
388
|
v: z.ZodLiteral<1>;
|
|
386
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
387
389
|
type: z.ZodLiteral<"resolve">;
|
|
388
390
|
id: z.ZodString;
|
|
389
391
|
payload: z.ZodObject<{
|
|
390
392
|
command: z.ZodString;
|
|
391
393
|
args: z.ZodString;
|
|
392
394
|
}, z.core.$strip>;
|
|
395
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
393
396
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
394
397
|
v: z.ZodLiteral<1>;
|
|
395
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
396
398
|
type: z.ZodLiteral<"result">;
|
|
397
399
|
id: z.ZodString;
|
|
398
400
|
ok: z.ZodBoolean;
|
|
@@ -420,9 +422,9 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
420
422
|
}, z.core.$strip>]>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
421
423
|
kind: z.ZodLiteral<"projects">;
|
|
422
424
|
state: z.ZodEnum<{
|
|
425
|
+
error: "error";
|
|
423
426
|
loading: "loading";
|
|
424
427
|
ready: "ready";
|
|
425
|
-
error: "error";
|
|
426
428
|
}>;
|
|
427
429
|
projects: z.ZodArray<z.ZodObject<{
|
|
428
430
|
id: z.ZodString;
|
|
@@ -433,35 +435,35 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
433
435
|
kind: z.ZodLiteral<"worktrees">;
|
|
434
436
|
projectId: z.ZodString;
|
|
435
437
|
state: z.ZodEnum<{
|
|
438
|
+
error: "error";
|
|
436
439
|
loading: "loading";
|
|
437
440
|
ready: "ready";
|
|
438
|
-
error: "error";
|
|
439
441
|
}>;
|
|
440
442
|
worktrees: z.ZodArray<z.ZodObject<{
|
|
441
443
|
directory: z.ZodString;
|
|
442
444
|
name: z.ZodString;
|
|
443
445
|
branch: z.ZodString;
|
|
444
446
|
status: z.ZodEnum<{
|
|
445
|
-
ready: "ready";
|
|
446
|
-
pending: "pending";
|
|
447
447
|
invalid: "invalid";
|
|
448
448
|
missing: "missing";
|
|
449
|
+
pending: "pending";
|
|
450
|
+
ready: "ready";
|
|
449
451
|
}>;
|
|
450
452
|
}, z.core.$strip>>;
|
|
451
453
|
}, z.core.$strip>, z.ZodObject<{
|
|
452
454
|
kind: z.ZodLiteral<"sessions">;
|
|
453
455
|
projectId: z.ZodString;
|
|
454
456
|
state: z.ZodEnum<{
|
|
457
|
+
error: "error";
|
|
455
458
|
loading: "loading";
|
|
456
459
|
ready: "ready";
|
|
457
|
-
error: "error";
|
|
458
460
|
}>;
|
|
459
461
|
coverage: z.ZodArray<z.ZodObject<{
|
|
460
462
|
directory: z.ZodString;
|
|
461
463
|
state: z.ZodEnum<{
|
|
464
|
+
error: "error";
|
|
462
465
|
loading: "loading";
|
|
463
466
|
ready: "ready";
|
|
464
|
-
error: "error";
|
|
465
467
|
}>;
|
|
466
468
|
}, z.core.$strip>>;
|
|
467
469
|
sessions: z.ZodArray<z.ZodObject<{
|
|
@@ -478,17 +480,17 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
478
480
|
name: z.ZodString;
|
|
479
481
|
branch: z.ZodString;
|
|
480
482
|
status: z.ZodEnum<{
|
|
481
|
-
ready: "ready";
|
|
482
|
-
pending: "pending";
|
|
483
483
|
invalid: "invalid";
|
|
484
484
|
missing: "missing";
|
|
485
|
+
pending: "pending";
|
|
486
|
+
ready: "ready";
|
|
485
487
|
}>;
|
|
486
488
|
}, z.core.$strip>>;
|
|
487
489
|
activity: z.ZodEnum<{
|
|
488
|
-
unknown: "unknown";
|
|
489
490
|
idle: "idle";
|
|
490
|
-
running: "running";
|
|
491
491
|
retrying: "retrying";
|
|
492
|
+
running: "running";
|
|
493
|
+
unknown: "unknown";
|
|
492
494
|
"waiting-permission": "waiting-permission";
|
|
493
495
|
"waiting-question": "waiting-question";
|
|
494
496
|
}>;
|
|
@@ -511,8 +513,8 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
511
513
|
sessionId: z.ZodString;
|
|
512
514
|
sent: z.ZodEnum<{
|
|
513
515
|
failed: "failed";
|
|
514
|
-
sent: "sent";
|
|
515
516
|
"no-model": "no-model";
|
|
517
|
+
sent: "sent";
|
|
516
518
|
skipped: "skipped";
|
|
517
519
|
}>;
|
|
518
520
|
directory: z.ZodOptional<z.ZodString>;
|
|
@@ -521,10 +523,10 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
521
523
|
name: z.ZodString;
|
|
522
524
|
branch: z.ZodString;
|
|
523
525
|
status: z.ZodEnum<{
|
|
524
|
-
ready: "ready";
|
|
525
|
-
pending: "pending";
|
|
526
526
|
invalid: "invalid";
|
|
527
527
|
missing: "missing";
|
|
528
|
+
pending: "pending";
|
|
529
|
+
ready: "ready";
|
|
528
530
|
}>;
|
|
529
531
|
}, z.core.$strip>>;
|
|
530
532
|
linked: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -537,10 +539,10 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
537
539
|
name: z.ZodString;
|
|
538
540
|
branch: z.ZodString;
|
|
539
541
|
status: z.ZodEnum<{
|
|
540
|
-
ready: "ready";
|
|
541
|
-
pending: "pending";
|
|
542
542
|
invalid: "invalid";
|
|
543
543
|
missing: "missing";
|
|
544
|
+
pending: "pending";
|
|
545
|
+
ready: "ready";
|
|
544
546
|
}>;
|
|
545
547
|
}, z.core.$strip>;
|
|
546
548
|
failure: z.ZodEnum<{
|
|
@@ -553,16 +555,16 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
553
555
|
}, z.core.$strip>, z.ZodObject<{
|
|
554
556
|
sent: z.ZodEnum<{
|
|
555
557
|
failed: "failed";
|
|
556
|
-
sent: "sent";
|
|
557
558
|
"no-model": "no-model";
|
|
559
|
+
sent: "sent";
|
|
558
560
|
skipped: "skipped";
|
|
559
561
|
}>;
|
|
560
562
|
}, z.core.$strip>, z.ZodObject<{
|
|
561
563
|
status: z.ZodEnum<{
|
|
562
|
-
stopped: "stopped";
|
|
563
|
-
ready: "ready";
|
|
564
564
|
failed: "failed";
|
|
565
|
+
ready: "ready";
|
|
565
566
|
starting: "starting";
|
|
567
|
+
stopped: "stopped";
|
|
566
568
|
}>;
|
|
567
569
|
}, z.core.$strip>, z.ZodObject<{
|
|
568
570
|
content: z.ZodString;
|
|
@@ -572,16 +574,16 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
572
574
|
entries: z.ZodArray<z.ZodObject<{
|
|
573
575
|
name: z.ZodString;
|
|
574
576
|
kind: z.ZodEnum<{
|
|
575
|
-
file: "file";
|
|
576
577
|
directory: "directory";
|
|
578
|
+
file: "file";
|
|
577
579
|
other: "other";
|
|
578
580
|
}>;
|
|
579
581
|
}, z.core.$strip>>;
|
|
580
582
|
}, z.core.$strip>, z.ZodObject<{
|
|
581
583
|
kind: z.ZodEnum<{
|
|
582
|
-
missing: "missing";
|
|
583
|
-
file: "file";
|
|
584
584
|
directory: "directory";
|
|
585
|
+
file: "file";
|
|
586
|
+
missing: "missing";
|
|
585
587
|
other: "other";
|
|
586
588
|
}>;
|
|
587
589
|
size: z.ZodNumber;
|
|
@@ -589,17 +591,15 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
589
591
|
}, z.core.$strip>, z.ZodObject<{
|
|
590
592
|
text: z.ZodString;
|
|
591
593
|
}, z.core.$strip>]>>;
|
|
592
|
-
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
593
|
-
v: z.ZodLiteral<1>;
|
|
594
594
|
}, z.core.$strip>, z.ZodTransform<{
|
|
595
595
|
channel: "openchamber.sdk";
|
|
596
596
|
v: 1;
|
|
597
|
-
type:
|
|
597
|
+
type: 'result';
|
|
598
598
|
id: string;
|
|
599
599
|
ok: true;
|
|
600
600
|
payload: {
|
|
601
601
|
kind: "projects";
|
|
602
|
-
state: "
|
|
602
|
+
state: "error" | "loading" | "ready";
|
|
603
603
|
projects: {
|
|
604
604
|
id: string;
|
|
605
605
|
name: string;
|
|
@@ -608,20 +608,20 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
608
608
|
} | {
|
|
609
609
|
kind: "worktrees";
|
|
610
610
|
projectId: string;
|
|
611
|
-
state: "
|
|
611
|
+
state: "error" | "loading" | "ready";
|
|
612
612
|
worktrees: {
|
|
613
613
|
directory: string;
|
|
614
614
|
name: string;
|
|
615
615
|
branch: string;
|
|
616
|
-
status: "
|
|
616
|
+
status: "invalid" | "missing" | "pending" | "ready";
|
|
617
617
|
}[];
|
|
618
618
|
} | {
|
|
619
619
|
kind: "sessions";
|
|
620
620
|
projectId: string;
|
|
621
|
-
state: "
|
|
621
|
+
state: "error" | "loading" | "ready";
|
|
622
622
|
coverage: {
|
|
623
623
|
directory: string;
|
|
624
|
-
state: "
|
|
624
|
+
state: "error" | "loading" | "ready";
|
|
625
625
|
}[];
|
|
626
626
|
sessions: {
|
|
627
627
|
id: string;
|
|
@@ -636,43 +636,52 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
636
636
|
directory: string;
|
|
637
637
|
name: string;
|
|
638
638
|
branch: string;
|
|
639
|
-
status: "
|
|
639
|
+
status: "invalid" | "missing" | "pending" | "ready";
|
|
640
640
|
} | null;
|
|
641
|
-
activity: "
|
|
641
|
+
activity: "idle" | "retrying" | "running" | "unknown" | "waiting-permission" | "waiting-question";
|
|
642
642
|
outcome: "completed" | "failed" | null;
|
|
643
643
|
items: {
|
|
644
644
|
id: string;
|
|
645
|
-
data?: z.
|
|
645
|
+
data?: z.util.JSONType | undefined;
|
|
646
646
|
}[];
|
|
647
647
|
}[];
|
|
648
648
|
} | {
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
found: false;
|
|
649
|
+
status: number;
|
|
650
|
+
body: string;
|
|
652
651
|
} | {
|
|
653
|
-
|
|
654
|
-
op: "get";
|
|
655
|
-
found: true;
|
|
656
|
-
value: z.core.util.JSONType;
|
|
652
|
+
sent: "failed" | "no-model" | "sent" | "skipped";
|
|
657
653
|
} | {
|
|
658
|
-
|
|
659
|
-
op: "delete" | "set";
|
|
654
|
+
status: "failed" | "ready" | "starting" | "stopped";
|
|
660
655
|
} | {
|
|
661
|
-
|
|
662
|
-
op: "keys";
|
|
663
|
-
keys: string[];
|
|
656
|
+
content: string;
|
|
664
657
|
} | {
|
|
665
|
-
|
|
666
|
-
|
|
658
|
+
written: true;
|
|
659
|
+
} | {
|
|
660
|
+
entries: {
|
|
661
|
+
name: string;
|
|
662
|
+
kind: "directory" | "file" | "other";
|
|
663
|
+
}[];
|
|
664
|
+
} | {
|
|
665
|
+
kind: "directory" | "file" | "missing" | "other";
|
|
666
|
+
size: number;
|
|
667
|
+
mtime: number;
|
|
668
|
+
} | {
|
|
669
|
+
text: string;
|
|
670
|
+
} | {
|
|
671
|
+
output: string;
|
|
672
|
+
cursor: number;
|
|
673
|
+
skipped: boolean;
|
|
674
|
+
} | {
|
|
675
|
+
stopped: true;
|
|
667
676
|
} | {
|
|
668
677
|
sessionId: string;
|
|
669
|
-
sent: "failed" | "
|
|
678
|
+
sent: "failed" | "no-model" | "sent" | "skipped";
|
|
670
679
|
directory?: string | undefined;
|
|
671
680
|
worktree?: {
|
|
672
681
|
directory: string;
|
|
673
682
|
name: string;
|
|
674
683
|
branch: string;
|
|
675
|
-
status: "
|
|
684
|
+
status: "invalid" | "missing" | "pending" | "ready";
|
|
676
685
|
} | undefined;
|
|
677
686
|
linked?: boolean | undefined;
|
|
678
687
|
} | {
|
|
@@ -683,66 +692,57 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
683
692
|
directory: string;
|
|
684
693
|
name: string;
|
|
685
694
|
branch: string;
|
|
686
|
-
status: "
|
|
695
|
+
status: "invalid" | "missing" | "pending" | "ready";
|
|
687
696
|
};
|
|
688
697
|
failure: "bootstrap-failed" | "session-create-failed";
|
|
689
698
|
} | {
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
} | {
|
|
694
|
-
content: string;
|
|
695
|
-
} | {
|
|
696
|
-
written: true;
|
|
697
|
-
} | {
|
|
698
|
-
entries: {
|
|
699
|
-
name: string;
|
|
700
|
-
kind: "file" | "directory" | "other";
|
|
701
|
-
}[];
|
|
702
|
-
} | {
|
|
703
|
-
kind: "missing" | "file" | "directory" | "other";
|
|
704
|
-
size: number;
|
|
705
|
-
mtime: number;
|
|
699
|
+
storage: true;
|
|
700
|
+
op: "get";
|
|
701
|
+
found: false;
|
|
706
702
|
} | {
|
|
707
|
-
|
|
703
|
+
storage: true;
|
|
704
|
+
op: "get";
|
|
705
|
+
found: true;
|
|
706
|
+
value: z.util.JSONType;
|
|
708
707
|
} | {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
skipped: boolean;
|
|
708
|
+
storage: true;
|
|
709
|
+
op: "delete" | "set";
|
|
712
710
|
} | {
|
|
713
|
-
|
|
711
|
+
storage: true;
|
|
712
|
+
op: "keys";
|
|
713
|
+
keys: string[];
|
|
714
714
|
};
|
|
715
715
|
error?: undefined;
|
|
716
716
|
code?: undefined;
|
|
717
717
|
} | {
|
|
718
|
+
payload?: undefined;
|
|
718
719
|
channel: "openchamber.sdk";
|
|
719
720
|
v: 1;
|
|
720
|
-
type:
|
|
721
|
+
type: 'result';
|
|
721
722
|
id: string;
|
|
722
723
|
ok: true;
|
|
723
|
-
payload?: undefined;
|
|
724
724
|
error?: undefined;
|
|
725
725
|
code?: undefined;
|
|
726
726
|
} | {
|
|
727
|
+
payload?: undefined;
|
|
727
728
|
channel: "openchamber.sdk";
|
|
728
729
|
v: 1;
|
|
729
|
-
type:
|
|
730
|
+
type: 'result';
|
|
730
731
|
id: string;
|
|
731
732
|
ok: false;
|
|
732
733
|
error: string;
|
|
733
|
-
code: "
|
|
734
|
-
payload?: undefined;
|
|
734
|
+
code: "BAD_PATH" | "DENIED" | "DISABLED" | "DISCONNECTED" | "FILE_TOO_LARGE" | "HOST_REJECTED" | "HOST_TIMEOUT" | "HOST_UNAVAILABLE" | "MODEL_FAILED" | "NOT_FOUND" | "NOT_GRANTED" | "NO_DIRECTORY" | "NO_INTEGRATION" | "NO_MODEL" | "NO_SERVICE" | "NO_SESSION" | "REQUEST_FAILED" | "RESPONSE_TOO_LARGE" | "SERVICE_FAILED" | "SESSION_BUSY" | "UNSUPPORTED";
|
|
735
735
|
}, {
|
|
736
|
+
channel: "openchamber.sdk";
|
|
737
|
+
v: 1;
|
|
736
738
|
type: "result";
|
|
737
739
|
id: string;
|
|
738
740
|
ok: boolean;
|
|
739
|
-
channel: "openchamber.sdk";
|
|
740
|
-
v: 1;
|
|
741
741
|
error?: string | undefined;
|
|
742
742
|
code?: string | undefined;
|
|
743
743
|
payload?: {
|
|
744
744
|
kind: "projects";
|
|
745
|
-
state: "
|
|
745
|
+
state: "error" | "loading" | "ready";
|
|
746
746
|
projects: {
|
|
747
747
|
id: string;
|
|
748
748
|
name: string;
|
|
@@ -751,20 +751,20 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
751
751
|
} | {
|
|
752
752
|
kind: "worktrees";
|
|
753
753
|
projectId: string;
|
|
754
|
-
state: "
|
|
754
|
+
state: "error" | "loading" | "ready";
|
|
755
755
|
worktrees: {
|
|
756
756
|
directory: string;
|
|
757
757
|
name: string;
|
|
758
758
|
branch: string;
|
|
759
|
-
status: "
|
|
759
|
+
status: "invalid" | "missing" | "pending" | "ready";
|
|
760
760
|
}[];
|
|
761
761
|
} | {
|
|
762
762
|
kind: "sessions";
|
|
763
763
|
projectId: string;
|
|
764
|
-
state: "
|
|
764
|
+
state: "error" | "loading" | "ready";
|
|
765
765
|
coverage: {
|
|
766
766
|
directory: string;
|
|
767
|
-
state: "
|
|
767
|
+
state: "error" | "loading" | "ready";
|
|
768
768
|
}[];
|
|
769
769
|
sessions: {
|
|
770
770
|
id: string;
|
|
@@ -779,43 +779,52 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
779
779
|
directory: string;
|
|
780
780
|
name: string;
|
|
781
781
|
branch: string;
|
|
782
|
-
status: "
|
|
782
|
+
status: "invalid" | "missing" | "pending" | "ready";
|
|
783
783
|
} | null;
|
|
784
|
-
activity: "
|
|
784
|
+
activity: "idle" | "retrying" | "running" | "unknown" | "waiting-permission" | "waiting-question";
|
|
785
785
|
outcome: "completed" | "failed" | null;
|
|
786
786
|
items: {
|
|
787
787
|
id: string;
|
|
788
|
-
data?: z.
|
|
788
|
+
data?: z.util.JSONType | undefined;
|
|
789
789
|
}[];
|
|
790
790
|
}[];
|
|
791
791
|
} | {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
found: false;
|
|
792
|
+
status: number;
|
|
793
|
+
body: string;
|
|
795
794
|
} | {
|
|
796
|
-
|
|
797
|
-
op: "get";
|
|
798
|
-
found: true;
|
|
799
|
-
value: z.core.util.JSONType;
|
|
795
|
+
sent: "failed" | "no-model" | "sent" | "skipped";
|
|
800
796
|
} | {
|
|
801
|
-
|
|
802
|
-
op: "delete" | "set";
|
|
797
|
+
status: "failed" | "ready" | "starting" | "stopped";
|
|
803
798
|
} | {
|
|
804
|
-
|
|
805
|
-
op: "keys";
|
|
806
|
-
keys: string[];
|
|
799
|
+
content: string;
|
|
807
800
|
} | {
|
|
808
|
-
|
|
809
|
-
|
|
801
|
+
written: true;
|
|
802
|
+
} | {
|
|
803
|
+
entries: {
|
|
804
|
+
name: string;
|
|
805
|
+
kind: "directory" | "file" | "other";
|
|
806
|
+
}[];
|
|
807
|
+
} | {
|
|
808
|
+
kind: "directory" | "file" | "missing" | "other";
|
|
809
|
+
size: number;
|
|
810
|
+
mtime: number;
|
|
811
|
+
} | {
|
|
812
|
+
text: string;
|
|
813
|
+
} | {
|
|
814
|
+
output: string;
|
|
815
|
+
cursor: number;
|
|
816
|
+
skipped: boolean;
|
|
817
|
+
} | {
|
|
818
|
+
stopped: true;
|
|
810
819
|
} | {
|
|
811
820
|
sessionId: string;
|
|
812
|
-
sent: "failed" | "
|
|
821
|
+
sent: "failed" | "no-model" | "sent" | "skipped";
|
|
813
822
|
directory?: string | undefined;
|
|
814
823
|
worktree?: {
|
|
815
824
|
directory: string;
|
|
816
825
|
name: string;
|
|
817
826
|
branch: string;
|
|
818
|
-
status: "
|
|
827
|
+
status: "invalid" | "missing" | "pending" | "ready";
|
|
819
828
|
} | undefined;
|
|
820
829
|
linked?: boolean | undefined;
|
|
821
830
|
} | {
|
|
@@ -826,36 +835,29 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
826
835
|
directory: string;
|
|
827
836
|
name: string;
|
|
828
837
|
branch: string;
|
|
829
|
-
status: "
|
|
838
|
+
status: "invalid" | "missing" | "pending" | "ready";
|
|
830
839
|
};
|
|
831
840
|
failure: "bootstrap-failed" | "session-create-failed";
|
|
832
841
|
} | {
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
} | {
|
|
837
|
-
content: string;
|
|
838
|
-
} | {
|
|
839
|
-
written: true;
|
|
840
|
-
} | {
|
|
841
|
-
entries: {
|
|
842
|
-
name: string;
|
|
843
|
-
kind: "file" | "directory" | "other";
|
|
844
|
-
}[];
|
|
845
|
-
} | {
|
|
846
|
-
kind: "missing" | "file" | "directory" | "other";
|
|
847
|
-
size: number;
|
|
848
|
-
mtime: number;
|
|
842
|
+
storage: true;
|
|
843
|
+
op: "get";
|
|
844
|
+
found: false;
|
|
849
845
|
} | {
|
|
850
|
-
|
|
846
|
+
storage: true;
|
|
847
|
+
op: "get";
|
|
848
|
+
found: true;
|
|
849
|
+
value: z.util.JSONType;
|
|
851
850
|
} | {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
skipped: boolean;
|
|
851
|
+
storage: true;
|
|
852
|
+
op: "delete" | "set";
|
|
855
853
|
} | {
|
|
856
|
-
|
|
854
|
+
storage: true;
|
|
855
|
+
op: "keys";
|
|
856
|
+
keys: string[];
|
|
857
857
|
} | undefined;
|
|
858
858
|
}>>, z.ZodObject<{
|
|
859
|
+
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
860
|
+
v: z.ZodLiteral<1>;
|
|
859
861
|
type: z.ZodLiteral<"action">;
|
|
860
862
|
id: z.ZodString;
|
|
861
863
|
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -866,8 +868,8 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
866
868
|
directory: z.ZodNullable<z.ZodString>;
|
|
867
869
|
messageId: z.ZodString;
|
|
868
870
|
role: z.ZodEnum<{
|
|
869
|
-
user: "user";
|
|
870
871
|
assistant: "assistant";
|
|
872
|
+
user: "user";
|
|
871
873
|
}>;
|
|
872
874
|
text: z.ZodString;
|
|
873
875
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -879,17 +881,17 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
879
881
|
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
880
882
|
id: z.ZodString;
|
|
881
883
|
role: z.ZodEnum<{
|
|
882
|
-
user: "user";
|
|
883
884
|
assistant: "assistant";
|
|
885
|
+
user: "user";
|
|
884
886
|
}>;
|
|
885
887
|
text: z.ZodString;
|
|
886
888
|
createdAt: z.ZodNumber;
|
|
887
889
|
}, z.core.$strip>>>;
|
|
888
890
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
889
891
|
}, z.core.$strip>]>;
|
|
892
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
890
893
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
891
894
|
v: z.ZodLiteral<1>;
|
|
892
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
893
895
|
type: z.ZodLiteral<"file-open">;
|
|
894
896
|
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
895
897
|
path: z.ZodString;
|
|
@@ -904,28 +906,28 @@ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
904
906
|
encoding: z.ZodLiteral<"binary">;
|
|
905
907
|
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
906
908
|
}, z.core.$strip>]>;
|
|
909
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
907
910
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
908
911
|
v: z.ZodLiteral<1>;
|
|
909
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
910
912
|
type: z.ZodLiteral<"file-snapshot">;
|
|
911
913
|
id: z.ZodString;
|
|
912
914
|
payload: z.ZodObject<{
|
|
913
915
|
purpose: z.ZodEnum<{
|
|
914
|
-
save: "save";
|
|
915
916
|
handoff: "handoff";
|
|
917
|
+
save: "save";
|
|
916
918
|
}>;
|
|
917
919
|
}, z.core.$strip>;
|
|
920
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
918
921
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
919
922
|
v: z.ZodLiteral<1>;
|
|
920
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
921
923
|
type: z.ZodLiteral<"file-saved">;
|
|
922
924
|
payload: z.ZodObject<{
|
|
923
925
|
version: z.ZodString;
|
|
924
926
|
}, z.core.$strip>;
|
|
925
|
-
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
926
|
-
v: z.ZodLiteral<1>;
|
|
927
927
|
}, z.core.$strip>]>;
|
|
928
928
|
export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
929
|
+
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
930
|
+
v: z.ZodLiteral<1>;
|
|
929
931
|
type: z.ZodLiteral<"action-result">;
|
|
930
932
|
id: z.ZodString;
|
|
931
933
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -934,9 +936,9 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
934
936
|
ok: z.ZodLiteral<false>;
|
|
935
937
|
error: z.ZodString;
|
|
936
938
|
}, z.core.$strip>], "ok">;
|
|
939
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
937
940
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
938
941
|
v: z.ZodLiteral<1>;
|
|
939
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
940
942
|
type: z.ZodLiteral<"workspace-read">;
|
|
941
943
|
id: z.ZodString;
|
|
942
944
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -948,9 +950,9 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
948
950
|
kind: z.ZodLiteral<"sessions">;
|
|
949
951
|
projectId: z.ZodString;
|
|
950
952
|
}, z.core.$strict>], "kind">;
|
|
953
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
951
954
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
952
955
|
v: z.ZodLiteral<1>;
|
|
953
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
954
956
|
type: z.ZodLiteral<"workspace-subscribe">;
|
|
955
957
|
id: z.ZodString;
|
|
956
958
|
payload: z.ZodObject<{
|
|
@@ -965,17 +967,17 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
965
967
|
projectId: z.ZodString;
|
|
966
968
|
}, z.core.$strict>], "kind">;
|
|
967
969
|
}, z.core.$strip>;
|
|
970
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
968
971
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
969
972
|
v: z.ZodLiteral<1>;
|
|
970
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
971
973
|
type: z.ZodLiteral<"workspace-unsubscribe">;
|
|
972
974
|
id: z.ZodString;
|
|
973
975
|
payload: z.ZodObject<{
|
|
974
976
|
subscriptionId: z.ZodString;
|
|
975
977
|
}, z.core.$strip>;
|
|
978
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
976
979
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
977
980
|
v: z.ZodLiteral<1>;
|
|
978
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
979
981
|
type: z.ZodLiteral<"shells-subscribe">;
|
|
980
982
|
id: z.ZodString;
|
|
981
983
|
payload: z.ZodObject<{
|
|
@@ -990,17 +992,17 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
990
992
|
kind: z.ZodLiteral<"global">;
|
|
991
993
|
}, z.core.$strict>], "kind">;
|
|
992
994
|
}, z.core.$strict>;
|
|
995
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
993
996
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
994
997
|
v: z.ZodLiteral<1>;
|
|
995
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
996
998
|
type: z.ZodLiteral<"shells-unsubscribe">;
|
|
997
999
|
id: z.ZodString;
|
|
998
1000
|
payload: z.ZodObject<{
|
|
999
1001
|
subscriptionId: z.ZodString;
|
|
1000
1002
|
}, z.core.$strict>;
|
|
1003
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1001
1004
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1002
1005
|
v: z.ZodLiteral<1>;
|
|
1003
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1004
1006
|
type: z.ZodLiteral<"shell-output">;
|
|
1005
1007
|
id: z.ZodString;
|
|
1006
1008
|
payload: z.ZodObject<{
|
|
@@ -1008,51 +1010,51 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1008
1010
|
cursor: z.ZodOptional<z.ZodNumber>;
|
|
1009
1011
|
tailBytes: z.ZodOptional<z.ZodNumber>;
|
|
1010
1012
|
}, z.core.$strict>;
|
|
1013
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1011
1014
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1012
1015
|
v: z.ZodLiteral<1>;
|
|
1013
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1014
1016
|
type: z.ZodLiteral<"shell-stop">;
|
|
1015
1017
|
id: z.ZodString;
|
|
1016
1018
|
payload: z.ZodObject<{
|
|
1017
1019
|
shellId: z.ZodString;
|
|
1018
1020
|
}, z.core.$strict>;
|
|
1021
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1019
1022
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1020
1023
|
v: z.ZodLiteral<1>;
|
|
1021
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1022
1024
|
type: z.ZodLiteral<"storage">;
|
|
1023
1025
|
id: z.ZodString;
|
|
1024
1026
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1025
1027
|
op: z.ZodLiteral<"get">;
|
|
1026
1028
|
key: z.ZodString;
|
|
1027
1029
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
1028
|
-
instance: "instance";
|
|
1029
1030
|
device: "device";
|
|
1031
|
+
instance: "instance";
|
|
1030
1032
|
}>>;
|
|
1031
1033
|
}, z.core.$strict>, z.ZodObject<{
|
|
1032
1034
|
op: z.ZodLiteral<"delete">;
|
|
1033
1035
|
key: z.ZodString;
|
|
1034
1036
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
1035
|
-
instance: "instance";
|
|
1036
1037
|
device: "device";
|
|
1038
|
+
instance: "instance";
|
|
1037
1039
|
}>>;
|
|
1038
1040
|
}, z.core.$strict>, z.ZodObject<{
|
|
1039
1041
|
op: z.ZodLiteral<"set">;
|
|
1040
1042
|
key: z.ZodString;
|
|
1041
1043
|
value: z.ZodJSONSchema;
|
|
1042
1044
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
1043
|
-
instance: "instance";
|
|
1044
1045
|
device: "device";
|
|
1046
|
+
instance: "instance";
|
|
1045
1047
|
}>>;
|
|
1046
1048
|
}, z.core.$strict>, z.ZodObject<{
|
|
1047
1049
|
op: z.ZodLiteral<"keys">;
|
|
1048
1050
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
1049
|
-
instance: "instance";
|
|
1050
1051
|
device: "device";
|
|
1052
|
+
instance: "instance";
|
|
1051
1053
|
}>>;
|
|
1052
1054
|
}, z.core.$strict>], "op">;
|
|
1055
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1053
1056
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1054
1057
|
v: z.ZodLiteral<1>;
|
|
1055
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1056
1058
|
type: z.ZodLiteral<"status-controls">;
|
|
1057
1059
|
id: z.ZodString;
|
|
1058
1060
|
payload: z.ZodObject<{
|
|
@@ -1073,9 +1075,9 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1073
1075
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1074
1076
|
}, z.core.$strict>], "kind">>;
|
|
1075
1077
|
}, z.core.$strict>;
|
|
1078
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1076
1079
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1077
1080
|
v: z.ZodLiteral<1>;
|
|
1078
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1079
1081
|
type: z.ZodLiteral<"popover-open">;
|
|
1080
1082
|
id: z.ZodString;
|
|
1081
1083
|
payload: z.ZodObject<{
|
|
@@ -1089,50 +1091,50 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1089
1091
|
width: z.ZodNumber;
|
|
1090
1092
|
height: z.ZodNumber;
|
|
1091
1093
|
side: z.ZodOptional<z.ZodEnum<{
|
|
1094
|
+
bottom: "bottom";
|
|
1092
1095
|
left: "left";
|
|
1093
1096
|
right: "right";
|
|
1094
1097
|
top: "top";
|
|
1095
|
-
bottom: "bottom";
|
|
1096
1098
|
}>>;
|
|
1097
1099
|
focus: z.ZodOptional<z.ZodBoolean>;
|
|
1098
1100
|
data: z.ZodCustom<import("./contract.ts").JsonValue, import("./contract.ts").JsonValue>;
|
|
1099
1101
|
}, z.core.$strict>;
|
|
1102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1100
1103
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1101
1104
|
v: z.ZodLiteral<1>;
|
|
1102
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1103
1105
|
type: z.ZodLiteral<"popover-close">;
|
|
1104
1106
|
id: z.ZodString;
|
|
1105
1107
|
payload: z.ZodObject<{
|
|
1106
1108
|
id: z.ZodString;
|
|
1107
1109
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
1108
|
-
escape: "escape";
|
|
1109
1110
|
closed: "closed";
|
|
1111
|
+
escape: "escape";
|
|
1110
1112
|
}>>;
|
|
1111
1113
|
}, z.core.$strict>;
|
|
1114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1112
1115
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1113
1116
|
v: z.ZodLiteral<1>;
|
|
1114
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1115
1117
|
type: z.ZodLiteral<"popover-anchor">;
|
|
1116
1118
|
id: z.ZodString;
|
|
1117
1119
|
payload: z.ZodObject<{
|
|
1118
1120
|
id: z.ZodString;
|
|
1119
1121
|
active: z.ZodBoolean;
|
|
1120
1122
|
}, z.core.$strict>;
|
|
1123
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1121
1124
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1122
1125
|
v: z.ZodLiteral<1>;
|
|
1123
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1124
1126
|
type: z.ZodLiteral<"open-session">;
|
|
1125
1127
|
id: z.ZodString;
|
|
1126
1128
|
payload: z.ZodObject<{
|
|
1127
1129
|
sessionId: z.ZodString;
|
|
1128
1130
|
}, z.core.$strip>;
|
|
1131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1129
1132
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1130
1133
|
v: z.ZodLiteral<1>;
|
|
1131
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1132
1134
|
type: z.ZodLiteral<"hello">;
|
|
1135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1133
1136
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1134
1137
|
v: z.ZodLiteral<1>;
|
|
1135
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1136
1138
|
type: z.ZodLiteral<"toast">;
|
|
1137
1139
|
id: z.ZodString;
|
|
1138
1140
|
payload: z.ZodObject<{
|
|
@@ -1148,45 +1150,45 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1148
1150
|
dismiss: z.ZodOptional<z.ZodBoolean>;
|
|
1149
1151
|
persistent: z.ZodOptional<z.ZodBoolean>;
|
|
1150
1152
|
}, z.core.$strip>;
|
|
1153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1151
1154
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1152
1155
|
v: z.ZodLiteral<1>;
|
|
1153
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1154
1156
|
type: z.ZodLiteral<"open-url">;
|
|
1155
1157
|
id: z.ZodString;
|
|
1156
1158
|
payload: z.ZodObject<{
|
|
1157
1159
|
url: z.ZodString;
|
|
1158
1160
|
}, z.core.$strip>;
|
|
1161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1159
1162
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1160
1163
|
v: z.ZodLiteral<1>;
|
|
1161
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1162
1164
|
type: z.ZodLiteral<"open-surface">;
|
|
1163
1165
|
id: z.ZodString;
|
|
1164
1166
|
payload: z.ZodObject<{
|
|
1165
1167
|
surfaceId: z.ZodString;
|
|
1166
1168
|
}, z.core.$strip>;
|
|
1169
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1167
1170
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1168
1171
|
v: z.ZodLiteral<1>;
|
|
1169
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1170
1172
|
type: z.ZodLiteral<"clipboard-write">;
|
|
1171
1173
|
id: z.ZodString;
|
|
1172
1174
|
payload: z.ZodObject<{
|
|
1173
1175
|
text: z.ZodString;
|
|
1174
1176
|
}, z.core.$strip>;
|
|
1177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1175
1178
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1176
1179
|
v: z.ZodLiteral<1>;
|
|
1177
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1178
1180
|
type: z.ZodLiteral<"compose">;
|
|
1179
1181
|
id: z.ZodString;
|
|
1180
1182
|
payload: z.ZodObject<{
|
|
1181
1183
|
text: z.ZodString;
|
|
1182
1184
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1183
|
-
replace: "replace";
|
|
1184
1185
|
append: "append";
|
|
1186
|
+
replace: "replace";
|
|
1185
1187
|
}>>;
|
|
1186
1188
|
}, z.core.$strip>;
|
|
1189
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1187
1190
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1188
1191
|
v: z.ZodLiteral<1>;
|
|
1189
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1190
1192
|
type: z.ZodLiteral<"attach">;
|
|
1191
1193
|
id: z.ZodString;
|
|
1192
1194
|
payload: z.ZodObject<{
|
|
@@ -1206,9 +1208,9 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1206
1208
|
}, z.core.$strip>>;
|
|
1207
1209
|
data: z.ZodOptional<z.ZodJSONSchema>;
|
|
1208
1210
|
}, z.core.$strip>;
|
|
1211
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1209
1212
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1210
1213
|
v: z.ZodLiteral<1>;
|
|
1211
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1212
1214
|
type: z.ZodLiteral<"start-session">;
|
|
1213
1215
|
id: z.ZodString;
|
|
1214
1216
|
payload: z.ZodObject<{
|
|
@@ -1237,22 +1239,22 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1237
1239
|
}, z.core.$strict>]>>;
|
|
1238
1240
|
projectId: z.ZodOptional<z.ZodString>;
|
|
1239
1241
|
navigation: z.ZodOptional<z.ZodEnum<{
|
|
1240
|
-
preserve: "preserve";
|
|
1241
1242
|
open: "open";
|
|
1243
|
+
preserve: "preserve";
|
|
1242
1244
|
}>>;
|
|
1243
1245
|
}, z.core.$strip>;
|
|
1246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1244
1247
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1245
1248
|
v: z.ZodLiteral<1>;
|
|
1246
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1247
1249
|
type: z.ZodLiteral<"prompt">;
|
|
1248
1250
|
id: z.ZodString;
|
|
1249
1251
|
payload: z.ZodObject<{
|
|
1250
1252
|
text: z.ZodString;
|
|
1251
1253
|
send: z.ZodOptional<z.ZodBoolean>;
|
|
1252
1254
|
}, z.core.$strip>;
|
|
1255
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1253
1256
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1254
1257
|
v: z.ZodLiteral<1>;
|
|
1255
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1256
1258
|
type: z.ZodLiteral<"session-link">;
|
|
1257
1259
|
id: z.ZodString;
|
|
1258
1260
|
payload: z.ZodObject<{
|
|
@@ -1272,96 +1274,96 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1272
1274
|
}, z.core.$strip>>;
|
|
1273
1275
|
data: z.ZodOptional<z.ZodJSONSchema>;
|
|
1274
1276
|
}, z.core.$strip>;
|
|
1277
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1275
1278
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1276
1279
|
v: z.ZodLiteral<1>;
|
|
1277
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1278
1280
|
type: z.ZodLiteral<"close">;
|
|
1279
1281
|
id: z.ZodString;
|
|
1282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1280
1283
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1281
1284
|
v: z.ZodLiteral<1>;
|
|
1282
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1283
1285
|
type: z.ZodLiteral<"oauth-start">;
|
|
1284
1286
|
id: z.ZodString;
|
|
1287
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1285
1288
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1286
1289
|
v: z.ZodLiteral<1>;
|
|
1287
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1288
1290
|
type: z.ZodLiteral<"oauth-disconnect">;
|
|
1289
1291
|
id: z.ZodString;
|
|
1292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1290
1293
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1291
1294
|
v: z.ZodLiteral<1>;
|
|
1292
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1293
1295
|
type: z.ZodLiteral<"request">;
|
|
1294
1296
|
id: z.ZodString;
|
|
1295
1297
|
payload: z.ZodObject<{
|
|
1296
1298
|
method: z.ZodEnum<{
|
|
1299
|
+
DELETE: "DELETE";
|
|
1297
1300
|
GET: "GET";
|
|
1301
|
+
PATCH: "PATCH";
|
|
1298
1302
|
POST: "POST";
|
|
1299
1303
|
PUT: "PUT";
|
|
1300
|
-
PATCH: "PATCH";
|
|
1301
|
-
DELETE: "DELETE";
|
|
1302
1304
|
}>;
|
|
1303
1305
|
path: z.ZodString;
|
|
1304
1306
|
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1305
1307
|
body: z.ZodOptional<z.ZodString>;
|
|
1306
1308
|
}, z.core.$strip>;
|
|
1309
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1307
1310
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1308
1311
|
v: z.ZodLiteral<1>;
|
|
1309
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1310
1312
|
type: z.ZodLiteral<"service-request">;
|
|
1311
1313
|
id: z.ZodString;
|
|
1312
1314
|
payload: z.ZodObject<{
|
|
1313
1315
|
method: z.ZodEnum<{
|
|
1316
|
+
DELETE: "DELETE";
|
|
1314
1317
|
GET: "GET";
|
|
1318
|
+
PATCH: "PATCH";
|
|
1315
1319
|
POST: "POST";
|
|
1316
1320
|
PUT: "PUT";
|
|
1317
|
-
PATCH: "PATCH";
|
|
1318
|
-
DELETE: "DELETE";
|
|
1319
1321
|
}>;
|
|
1320
1322
|
path: z.ZodString;
|
|
1321
1323
|
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1322
1324
|
body: z.ZodOptional<z.ZodString>;
|
|
1323
1325
|
}, z.core.$strip>;
|
|
1326
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1324
1327
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1325
1328
|
v: z.ZodLiteral<1>;
|
|
1326
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1327
1329
|
type: z.ZodLiteral<"service-status">;
|
|
1328
1330
|
id: z.ZodString;
|
|
1331
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1329
1332
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1330
1333
|
v: z.ZodLiteral<1>;
|
|
1331
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1332
1334
|
type: z.ZodLiteral<"file-read">;
|
|
1333
1335
|
id: z.ZodString;
|
|
1334
1336
|
payload: z.ZodObject<{
|
|
1335
1337
|
path: z.ZodString;
|
|
1336
1338
|
}, z.core.$strip>;
|
|
1339
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1337
1340
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1338
1341
|
v: z.ZodLiteral<1>;
|
|
1339
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1340
1342
|
type: z.ZodLiteral<"file-write">;
|
|
1341
1343
|
id: z.ZodString;
|
|
1342
1344
|
payload: z.ZodObject<{
|
|
1343
1345
|
path: z.ZodString;
|
|
1344
1346
|
content: z.ZodString;
|
|
1345
1347
|
}, z.core.$strip>;
|
|
1348
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1346
1349
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1347
1350
|
v: z.ZodLiteral<1>;
|
|
1348
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1349
1351
|
type: z.ZodLiteral<"file-list">;
|
|
1350
1352
|
id: z.ZodString;
|
|
1351
1353
|
payload: z.ZodObject<{
|
|
1352
1354
|
path: z.ZodString;
|
|
1353
1355
|
}, z.core.$strip>;
|
|
1356
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1354
1357
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1355
1358
|
v: z.ZodLiteral<1>;
|
|
1356
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1357
1359
|
type: z.ZodLiteral<"file-stat">;
|
|
1358
1360
|
id: z.ZodString;
|
|
1359
1361
|
payload: z.ZodObject<{
|
|
1360
1362
|
path: z.ZodString;
|
|
1361
1363
|
}, z.core.$strip>;
|
|
1364
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1362
1365
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1363
1366
|
v: z.ZodLiteral<1>;
|
|
1364
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1365
1367
|
type: z.ZodLiteral<"generate">;
|
|
1366
1368
|
id: z.ZodString;
|
|
1367
1369
|
payload: z.ZodObject<{
|
|
@@ -1369,33 +1371,33 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1369
1371
|
system: z.ZodOptional<z.ZodString>;
|
|
1370
1372
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1371
1373
|
}, z.core.$strip>;
|
|
1374
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1372
1375
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1373
1376
|
v: z.ZodLiteral<1>;
|
|
1374
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1375
1377
|
type: z.ZodLiteral<"badge">;
|
|
1376
1378
|
id: z.ZodString;
|
|
1377
1379
|
payload: z.ZodObject<{
|
|
1378
1380
|
count: z.ZodNullable<z.ZodNumber>;
|
|
1379
1381
|
}, z.core.$strip>;
|
|
1382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1380
1383
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1381
1384
|
v: z.ZodLiteral<1>;
|
|
1382
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1383
1385
|
type: z.ZodLiteral<"open-commit">;
|
|
1384
1386
|
id: z.ZodString;
|
|
1385
1387
|
payload: z.ZodObject<{
|
|
1386
1388
|
sha: z.ZodString;
|
|
1387
1389
|
}, z.core.$strip>;
|
|
1390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1388
1391
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1389
1392
|
v: z.ZodLiteral<1>;
|
|
1390
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1391
1393
|
type: z.ZodLiteral<"resize">;
|
|
1392
1394
|
id: z.ZodString;
|
|
1393
1395
|
payload: z.ZodObject<{
|
|
1394
1396
|
height: z.ZodNumber;
|
|
1395
1397
|
}, z.core.$strip>;
|
|
1398
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1396
1399
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1397
1400
|
v: z.ZodLiteral<1>;
|
|
1398
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1399
1401
|
type: z.ZodLiteral<"resolve-result">;
|
|
1400
1402
|
id: z.ZodString;
|
|
1401
1403
|
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1419,9 +1421,9 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1419
1421
|
}, z.core.$strip>, z.ZodObject<{
|
|
1420
1422
|
error: z.ZodString;
|
|
1421
1423
|
}, z.core.$strip>]>;
|
|
1424
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1422
1425
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1423
1426
|
v: z.ZodLiteral<1>;
|
|
1424
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1425
1427
|
type: z.ZodLiteral<"file-snapshot-result">;
|
|
1426
1428
|
id: z.ZodString;
|
|
1427
1429
|
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1435,24 +1437,22 @@ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1435
1437
|
}, z.core.$strip>, z.ZodObject<{
|
|
1436
1438
|
error: z.ZodString;
|
|
1437
1439
|
}, z.core.$strip>]>;
|
|
1440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1438
1441
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1439
1442
|
v: z.ZodLiteral<1>;
|
|
1440
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1441
1443
|
type: z.ZodLiteral<"file-change">;
|
|
1442
1444
|
payload: z.ZodObject<{
|
|
1443
1445
|
dirty: z.ZodBoolean;
|
|
1444
1446
|
edited: z.ZodBoolean;
|
|
1445
1447
|
}, z.core.$strip>;
|
|
1446
|
-
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1447
|
-
v: z.ZodLiteral<1>;
|
|
1448
1448
|
}, z.core.$strip>, z.ZodObject<{
|
|
1449
|
-
type: z.ZodLiteral<"file-save">;
|
|
1450
1449
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1451
1450
|
v: z.ZodLiteral<1>;
|
|
1451
|
+
type: z.ZodLiteral<"file-save">;
|
|
1452
1452
|
}, z.core.$strip>, z.ZodObject<{
|
|
1453
|
-
type: z.ZodLiteral<"file-unsupported">;
|
|
1454
1453
|
channel: z.ZodLiteral<"openchamber.sdk">;
|
|
1455
1454
|
v: z.ZodLiteral<1>;
|
|
1455
|
+
type: z.ZodLiteral<"file-unsupported">;
|
|
1456
1456
|
}, z.core.$strip>], "type">;
|
|
1457
1457
|
type HostWire = z.input<typeof hostMessageSchema>;
|
|
1458
1458
|
type GuestWire = z.input<typeof guestMessageSchema>;
|