@antelopejs/dms-ai 0.0.1 → 0.0.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/package.json +22 -20
- package/sidecar/dist/mcp/tools/ask-user.d.ts +2 -26
- package/sidecar/dist/mcp/tools/builder.d.ts +33 -139
- package/sidecar/dist/mcp/tools/builder.js +4 -4
- package/sidecar/dist/mcp/tools/builder.js.map +1 -1
- package/sidecar/dist/protocol/events.d.ts +111 -812
- package/sidecar/dist/protocol/messages.d.ts +93 -475
- package/sidecar/package.json +1 -1
|
@@ -26,56 +26,27 @@ export declare const MAX_QUEUED_MESSAGES = 100;
|
|
|
26
26
|
export declare const PERMISSION_DECISION_VALUES: readonly ["allow_once", "allow_session", "deny"];
|
|
27
27
|
export declare const ClientHelloMsg: z.ZodObject<{
|
|
28
28
|
type: z.ZodLiteral<"hello">;
|
|
29
|
-
role: z.ZodEnum<
|
|
29
|
+
role: z.ZodEnum<{
|
|
30
|
+
iframe: "iframe";
|
|
31
|
+
host: "host";
|
|
32
|
+
}>;
|
|
30
33
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
31
|
-
},
|
|
32
|
-
type: "hello";
|
|
33
|
-
role: "iframe" | "host";
|
|
34
|
-
conversationId?: string | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
type: "hello";
|
|
37
|
-
role: "iframe" | "host";
|
|
38
|
-
conversationId?: string | undefined;
|
|
39
|
-
}>;
|
|
34
|
+
}, z.core.$strip>;
|
|
40
35
|
export declare const EchoMsg: z.ZodObject<{
|
|
41
36
|
type: z.ZodLiteral<"echo">;
|
|
42
37
|
payload: z.ZodString;
|
|
43
|
-
},
|
|
44
|
-
type: "echo";
|
|
45
|
-
payload: string;
|
|
46
|
-
}, {
|
|
47
|
-
type: "echo";
|
|
48
|
-
payload: string;
|
|
49
|
-
}>;
|
|
38
|
+
}, z.core.$strip>;
|
|
50
39
|
export declare const ServerEchoReplyMsg: z.ZodObject<{
|
|
51
40
|
type: z.ZodLiteral<"echo_reply">;
|
|
52
41
|
payload: z.ZodString;
|
|
53
42
|
serverTimeMs: z.ZodNumber;
|
|
54
|
-
},
|
|
55
|
-
type: "echo_reply";
|
|
56
|
-
payload: string;
|
|
57
|
-
serverTimeMs: number;
|
|
58
|
-
}, {
|
|
59
|
-
type: "echo_reply";
|
|
60
|
-
payload: string;
|
|
61
|
-
serverTimeMs: number;
|
|
62
|
-
}>;
|
|
43
|
+
}, z.core.$strip>;
|
|
63
44
|
export declare const AttachmentSchema: z.ZodObject<{
|
|
64
45
|
name: z.ZodString;
|
|
65
46
|
mimeType: z.ZodString;
|
|
66
47
|
size: z.ZodNumber;
|
|
67
48
|
data: z.ZodString;
|
|
68
|
-
},
|
|
69
|
-
name: string;
|
|
70
|
-
mimeType: string;
|
|
71
|
-
size: number;
|
|
72
|
-
data: string;
|
|
73
|
-
}, {
|
|
74
|
-
name: string;
|
|
75
|
-
mimeType: string;
|
|
76
|
-
size: number;
|
|
77
|
-
data: string;
|
|
78
|
-
}>;
|
|
49
|
+
}, z.core.$strip>;
|
|
79
50
|
export declare const UserMessageMsg: z.ZodObject<{
|
|
80
51
|
type: z.ZodLiteral<"user_message">;
|
|
81
52
|
conversationId: z.ZodString;
|
|
@@ -85,38 +56,8 @@ export declare const UserMessageMsg: z.ZodObject<{
|
|
|
85
56
|
mimeType: z.ZodString;
|
|
86
57
|
size: z.ZodNumber;
|
|
87
58
|
data: z.ZodString;
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
mimeType: string;
|
|
91
|
-
size: number;
|
|
92
|
-
data: string;
|
|
93
|
-
}, {
|
|
94
|
-
name: string;
|
|
95
|
-
mimeType: string;
|
|
96
|
-
size: number;
|
|
97
|
-
data: string;
|
|
98
|
-
}>, "many">>;
|
|
99
|
-
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
type: "user_message";
|
|
101
|
-
conversationId: string;
|
|
102
|
-
content: string;
|
|
103
|
-
attachments?: {
|
|
104
|
-
name: string;
|
|
105
|
-
mimeType: string;
|
|
106
|
-
size: number;
|
|
107
|
-
data: string;
|
|
108
|
-
}[] | undefined;
|
|
109
|
-
}, {
|
|
110
|
-
type: "user_message";
|
|
111
|
-
conversationId: string;
|
|
112
|
-
content: string;
|
|
113
|
-
attachments?: {
|
|
114
|
-
name: string;
|
|
115
|
-
mimeType: string;
|
|
116
|
-
size: number;
|
|
117
|
-
data: string;
|
|
118
|
-
}[] | undefined;
|
|
119
|
-
}>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
120
61
|
export declare const QueuedItemSchema: z.ZodObject<{
|
|
121
62
|
id: z.ZodString;
|
|
122
63
|
content: z.ZodString;
|
|
@@ -125,36 +66,8 @@ export declare const QueuedItemSchema: z.ZodObject<{
|
|
|
125
66
|
mimeType: z.ZodString;
|
|
126
67
|
size: z.ZodNumber;
|
|
127
68
|
data: z.ZodString;
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
mimeType: string;
|
|
131
|
-
size: number;
|
|
132
|
-
data: string;
|
|
133
|
-
}, {
|
|
134
|
-
name: string;
|
|
135
|
-
mimeType: string;
|
|
136
|
-
size: number;
|
|
137
|
-
data: string;
|
|
138
|
-
}>, "many">>;
|
|
139
|
-
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
content: string;
|
|
141
|
-
id: string;
|
|
142
|
-
attachments?: {
|
|
143
|
-
name: string;
|
|
144
|
-
mimeType: string;
|
|
145
|
-
size: number;
|
|
146
|
-
data: string;
|
|
147
|
-
}[] | undefined;
|
|
148
|
-
}, {
|
|
149
|
-
content: string;
|
|
150
|
-
id: string;
|
|
151
|
-
attachments?: {
|
|
152
|
-
name: string;
|
|
153
|
-
mimeType: string;
|
|
154
|
-
size: number;
|
|
155
|
-
data: string;
|
|
156
|
-
}[] | undefined;
|
|
157
|
-
}>;
|
|
69
|
+
}, z.core.$strip>>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
158
71
|
export declare const QueueEnqueueMsg: z.ZodObject<{
|
|
159
72
|
type: z.ZodLiteral<"queue_enqueue">;
|
|
160
73
|
conversationId: z.ZodString;
|
|
@@ -166,226 +79,88 @@ export declare const QueueEnqueueMsg: z.ZodObject<{
|
|
|
166
79
|
mimeType: z.ZodString;
|
|
167
80
|
size: z.ZodNumber;
|
|
168
81
|
data: z.ZodString;
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
size: number;
|
|
173
|
-
data: string;
|
|
174
|
-
}, {
|
|
175
|
-
name: string;
|
|
176
|
-
mimeType: string;
|
|
177
|
-
size: number;
|
|
178
|
-
data: string;
|
|
179
|
-
}>, "many">>;
|
|
180
|
-
}, "strip", z.ZodTypeAny, {
|
|
181
|
-
content: string;
|
|
182
|
-
id: string;
|
|
183
|
-
attachments?: {
|
|
184
|
-
name: string;
|
|
185
|
-
mimeType: string;
|
|
186
|
-
size: number;
|
|
187
|
-
data: string;
|
|
188
|
-
}[] | undefined;
|
|
189
|
-
}, {
|
|
190
|
-
content: string;
|
|
191
|
-
id: string;
|
|
192
|
-
attachments?: {
|
|
193
|
-
name: string;
|
|
194
|
-
mimeType: string;
|
|
195
|
-
size: number;
|
|
196
|
-
data: string;
|
|
197
|
-
}[] | undefined;
|
|
198
|
-
}>;
|
|
199
|
-
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
type: "queue_enqueue";
|
|
201
|
-
conversationId: string;
|
|
202
|
-
item: {
|
|
203
|
-
content: string;
|
|
204
|
-
id: string;
|
|
205
|
-
attachments?: {
|
|
206
|
-
name: string;
|
|
207
|
-
mimeType: string;
|
|
208
|
-
size: number;
|
|
209
|
-
data: string;
|
|
210
|
-
}[] | undefined;
|
|
211
|
-
};
|
|
212
|
-
}, {
|
|
213
|
-
type: "queue_enqueue";
|
|
214
|
-
conversationId: string;
|
|
215
|
-
item: {
|
|
216
|
-
content: string;
|
|
217
|
-
id: string;
|
|
218
|
-
attachments?: {
|
|
219
|
-
name: string;
|
|
220
|
-
mimeType: string;
|
|
221
|
-
size: number;
|
|
222
|
-
data: string;
|
|
223
|
-
}[] | undefined;
|
|
224
|
-
};
|
|
225
|
-
}>;
|
|
82
|
+
}, z.core.$strip>>>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
}, z.core.$strip>;
|
|
226
85
|
export declare const QueueCancelMsg: z.ZodObject<{
|
|
227
86
|
type: z.ZodLiteral<"queue_cancel">;
|
|
228
87
|
conversationId: z.ZodString;
|
|
229
88
|
id: z.ZodString;
|
|
230
|
-
},
|
|
231
|
-
type: "queue_cancel";
|
|
232
|
-
conversationId: string;
|
|
233
|
-
id: string;
|
|
234
|
-
}, {
|
|
235
|
-
type: "queue_cancel";
|
|
236
|
-
conversationId: string;
|
|
237
|
-
id: string;
|
|
238
|
-
}>;
|
|
89
|
+
}, z.core.$strip>;
|
|
239
90
|
export declare const PermissionResponseMsg: z.ZodObject<{
|
|
240
91
|
type: z.ZodLiteral<"permission_response">;
|
|
241
92
|
conversationId: z.ZodString;
|
|
242
93
|
requestId: z.ZodString;
|
|
243
|
-
decision: z.ZodEnum<
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}, {
|
|
250
|
-
type: "permission_response";
|
|
251
|
-
conversationId: string;
|
|
252
|
-
requestId: string;
|
|
253
|
-
decision: "allow_once" | "allow_session" | "deny";
|
|
254
|
-
}>;
|
|
94
|
+
decision: z.ZodEnum<{
|
|
95
|
+
allow_once: "allow_once";
|
|
96
|
+
allow_session: "allow_session";
|
|
97
|
+
deny: "deny";
|
|
98
|
+
}>;
|
|
99
|
+
}, z.core.$strip>;
|
|
255
100
|
export declare const QuestionResponseMsg: z.ZodObject<{
|
|
256
101
|
type: z.ZodLiteral<"question_response">;
|
|
257
102
|
conversationId: z.ZodString;
|
|
258
103
|
requestId: z.ZodString;
|
|
259
|
-
answers: z.ZodArray<z.ZodString
|
|
260
|
-
},
|
|
261
|
-
type: "question_response";
|
|
262
|
-
conversationId: string;
|
|
263
|
-
requestId: string;
|
|
264
|
-
answers: string[];
|
|
265
|
-
}, {
|
|
266
|
-
type: "question_response";
|
|
267
|
-
conversationId: string;
|
|
268
|
-
requestId: string;
|
|
269
|
-
answers: string[];
|
|
270
|
-
}>;
|
|
104
|
+
answers: z.ZodArray<z.ZodString>;
|
|
105
|
+
}, z.core.$strip>;
|
|
271
106
|
export declare const HostStateUpdateMsg: z.ZodObject<{
|
|
272
107
|
type: z.ZodLiteral<"host_state_update">;
|
|
273
108
|
currentPage: z.ZodObject<{
|
|
274
109
|
path: z.ZodString;
|
|
275
110
|
filepath: z.ZodOptional<z.ZodString>;
|
|
276
111
|
title: z.ZodOptional<z.ZodString>;
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
filepath?: string | undefined;
|
|
280
|
-
title?: string | undefined;
|
|
281
|
-
}, {
|
|
282
|
-
path: string;
|
|
283
|
-
filepath?: string | undefined;
|
|
284
|
-
title?: string | undefined;
|
|
285
|
-
}>;
|
|
286
|
-
}, "strip", z.ZodTypeAny, {
|
|
287
|
-
type: "host_state_update";
|
|
288
|
-
currentPage: {
|
|
289
|
-
path: string;
|
|
290
|
-
filepath?: string | undefined;
|
|
291
|
-
title?: string | undefined;
|
|
292
|
-
};
|
|
293
|
-
}, {
|
|
294
|
-
type: "host_state_update";
|
|
295
|
-
currentPage: {
|
|
296
|
-
path: string;
|
|
297
|
-
filepath?: string | undefined;
|
|
298
|
-
title?: string | undefined;
|
|
299
|
-
};
|
|
300
|
-
}>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
}, z.core.$strip>;
|
|
301
114
|
export declare const HostNavigationCompleteMsg: z.ZodObject<{
|
|
302
115
|
type: z.ZodLiteral<"host_navigation_complete">;
|
|
303
116
|
path: z.ZodString;
|
|
304
|
-
},
|
|
305
|
-
type: "host_navigation_complete";
|
|
306
|
-
path: string;
|
|
307
|
-
}, {
|
|
308
|
-
type: "host_navigation_complete";
|
|
309
|
-
path: string;
|
|
310
|
-
}>;
|
|
117
|
+
}, z.core.$strip>;
|
|
311
118
|
export declare const ListConversationsMsg: z.ZodObject<{
|
|
312
119
|
type: z.ZodLiteral<"list_conversations">;
|
|
313
|
-
},
|
|
314
|
-
type: "list_conversations";
|
|
315
|
-
}, {
|
|
316
|
-
type: "list_conversations";
|
|
317
|
-
}>;
|
|
120
|
+
}, z.core.$strip>;
|
|
318
121
|
export declare const DeleteConversationMsg: z.ZodObject<{
|
|
319
122
|
type: z.ZodLiteral<"delete_conversation">;
|
|
320
123
|
conversationId: z.ZodString;
|
|
321
|
-
},
|
|
322
|
-
type: "delete_conversation";
|
|
323
|
-
conversationId: string;
|
|
324
|
-
}, {
|
|
325
|
-
type: "delete_conversation";
|
|
326
|
-
conversationId: string;
|
|
327
|
-
}>;
|
|
124
|
+
}, z.core.$strip>;
|
|
328
125
|
export declare const SetSettingsMsg: z.ZodObject<{
|
|
329
126
|
type: z.ZodLiteral<"set_settings">;
|
|
330
|
-
mode: z.ZodEnum<
|
|
331
|
-
|
|
332
|
-
|
|
127
|
+
mode: z.ZodEnum<{
|
|
128
|
+
normal: "normal";
|
|
129
|
+
acceptEdits: "acceptEdits";
|
|
130
|
+
plan: "plan";
|
|
131
|
+
auto: "auto";
|
|
132
|
+
}>;
|
|
133
|
+
thinking: z.ZodEnum<{
|
|
134
|
+
off: "off";
|
|
135
|
+
low: "low";
|
|
136
|
+
medium: "medium";
|
|
137
|
+
high: "high";
|
|
138
|
+
}>;
|
|
139
|
+
generationMode: z.ZodDefault<z.ZodEnum<{
|
|
140
|
+
safe: "safe";
|
|
141
|
+
vibe: "vibe";
|
|
142
|
+
}>>;
|
|
333
143
|
allowLocalSkills: z.ZodDefault<z.ZodBoolean>;
|
|
334
|
-
},
|
|
335
|
-
type: "set_settings";
|
|
336
|
-
mode: "normal" | "acceptEdits" | "plan" | "auto";
|
|
337
|
-
thinking: "off" | "low" | "medium" | "high";
|
|
338
|
-
generationMode: "safe" | "vibe";
|
|
339
|
-
allowLocalSkills: boolean;
|
|
340
|
-
}, {
|
|
341
|
-
type: "set_settings";
|
|
342
|
-
mode: "normal" | "acceptEdits" | "plan" | "auto";
|
|
343
|
-
thinking: "off" | "low" | "medium" | "high";
|
|
344
|
-
generationMode?: "safe" | "vibe" | undefined;
|
|
345
|
-
allowLocalSkills?: boolean | undefined;
|
|
346
|
-
}>;
|
|
144
|
+
}, z.core.$strip>;
|
|
347
145
|
export declare const RequestHostNavigateMsg: z.ZodObject<{
|
|
348
146
|
type: z.ZodLiteral<"request_host_navigate">;
|
|
349
147
|
path: z.ZodString;
|
|
350
|
-
},
|
|
351
|
-
type: "request_host_navigate";
|
|
352
|
-
path: string;
|
|
353
|
-
}, {
|
|
354
|
-
type: "request_host_navigate";
|
|
355
|
-
path: string;
|
|
356
|
-
}>;
|
|
148
|
+
}, z.core.$strip>;
|
|
357
149
|
export declare const InterruptTurnMsg: z.ZodObject<{
|
|
358
150
|
type: z.ZodLiteral<"interrupt_turn">;
|
|
359
151
|
conversationId: z.ZodString;
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
conversationId: string;
|
|
363
|
-
}, {
|
|
364
|
-
type: "interrupt_turn";
|
|
365
|
-
conversationId: string;
|
|
366
|
-
}>;
|
|
367
|
-
export declare const AnyClientMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
export declare const AnyClientMessage: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
368
154
|
type: z.ZodLiteral<"hello">;
|
|
369
|
-
role: z.ZodEnum<
|
|
155
|
+
role: z.ZodEnum<{
|
|
156
|
+
iframe: "iframe";
|
|
157
|
+
host: "host";
|
|
158
|
+
}>;
|
|
370
159
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
371
|
-
},
|
|
372
|
-
type: "hello";
|
|
373
|
-
role: "iframe" | "host";
|
|
374
|
-
conversationId?: string | undefined;
|
|
375
|
-
}, {
|
|
376
|
-
type: "hello";
|
|
377
|
-
role: "iframe" | "host";
|
|
378
|
-
conversationId?: string | undefined;
|
|
379
|
-
}>, z.ZodObject<{
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
380
161
|
type: z.ZodLiteral<"echo">;
|
|
381
162
|
payload: z.ZodString;
|
|
382
|
-
},
|
|
383
|
-
type: "echo";
|
|
384
|
-
payload: string;
|
|
385
|
-
}, {
|
|
386
|
-
type: "echo";
|
|
387
|
-
payload: string;
|
|
388
|
-
}>, z.ZodObject<{
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
389
164
|
type: z.ZodLiteral<"user_message">;
|
|
390
165
|
conversationId: z.ZodString;
|
|
391
166
|
content: z.ZodString;
|
|
@@ -394,157 +169,62 @@ export declare const AnyClientMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
394
169
|
mimeType: z.ZodString;
|
|
395
170
|
size: z.ZodNumber;
|
|
396
171
|
data: z.ZodString;
|
|
397
|
-
},
|
|
398
|
-
|
|
399
|
-
mimeType: string;
|
|
400
|
-
size: number;
|
|
401
|
-
data: string;
|
|
402
|
-
}, {
|
|
403
|
-
name: string;
|
|
404
|
-
mimeType: string;
|
|
405
|
-
size: number;
|
|
406
|
-
data: string;
|
|
407
|
-
}>, "many">>;
|
|
408
|
-
}, "strip", z.ZodTypeAny, {
|
|
409
|
-
type: "user_message";
|
|
410
|
-
conversationId: string;
|
|
411
|
-
content: string;
|
|
412
|
-
attachments?: {
|
|
413
|
-
name: string;
|
|
414
|
-
mimeType: string;
|
|
415
|
-
size: number;
|
|
416
|
-
data: string;
|
|
417
|
-
}[] | undefined;
|
|
418
|
-
}, {
|
|
419
|
-
type: "user_message";
|
|
420
|
-
conversationId: string;
|
|
421
|
-
content: string;
|
|
422
|
-
attachments?: {
|
|
423
|
-
name: string;
|
|
424
|
-
mimeType: string;
|
|
425
|
-
size: number;
|
|
426
|
-
data: string;
|
|
427
|
-
}[] | undefined;
|
|
428
|
-
}>, z.ZodObject<{
|
|
172
|
+
}, z.core.$strip>>>;
|
|
173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
429
174
|
type: z.ZodLiteral<"permission_response">;
|
|
430
175
|
conversationId: z.ZodString;
|
|
431
176
|
requestId: z.ZodString;
|
|
432
|
-
decision: z.ZodEnum<
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}, {
|
|
439
|
-
type: "permission_response";
|
|
440
|
-
conversationId: string;
|
|
441
|
-
requestId: string;
|
|
442
|
-
decision: "allow_once" | "allow_session" | "deny";
|
|
443
|
-
}>, z.ZodObject<{
|
|
177
|
+
decision: z.ZodEnum<{
|
|
178
|
+
allow_once: "allow_once";
|
|
179
|
+
allow_session: "allow_session";
|
|
180
|
+
deny: "deny";
|
|
181
|
+
}>;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
444
183
|
type: z.ZodLiteral<"question_response">;
|
|
445
184
|
conversationId: z.ZodString;
|
|
446
185
|
requestId: z.ZodString;
|
|
447
|
-
answers: z.ZodArray<z.ZodString
|
|
448
|
-
},
|
|
449
|
-
type: "question_response";
|
|
450
|
-
conversationId: string;
|
|
451
|
-
requestId: string;
|
|
452
|
-
answers: string[];
|
|
453
|
-
}, {
|
|
454
|
-
type: "question_response";
|
|
455
|
-
conversationId: string;
|
|
456
|
-
requestId: string;
|
|
457
|
-
answers: string[];
|
|
458
|
-
}>, z.ZodObject<{
|
|
186
|
+
answers: z.ZodArray<z.ZodString>;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
459
188
|
type: z.ZodLiteral<"host_state_update">;
|
|
460
189
|
currentPage: z.ZodObject<{
|
|
461
190
|
path: z.ZodString;
|
|
462
191
|
filepath: z.ZodOptional<z.ZodString>;
|
|
463
192
|
title: z.ZodOptional<z.ZodString>;
|
|
464
|
-
},
|
|
465
|
-
|
|
466
|
-
filepath?: string | undefined;
|
|
467
|
-
title?: string | undefined;
|
|
468
|
-
}, {
|
|
469
|
-
path: string;
|
|
470
|
-
filepath?: string | undefined;
|
|
471
|
-
title?: string | undefined;
|
|
472
|
-
}>;
|
|
473
|
-
}, "strip", z.ZodTypeAny, {
|
|
474
|
-
type: "host_state_update";
|
|
475
|
-
currentPage: {
|
|
476
|
-
path: string;
|
|
477
|
-
filepath?: string | undefined;
|
|
478
|
-
title?: string | undefined;
|
|
479
|
-
};
|
|
480
|
-
}, {
|
|
481
|
-
type: "host_state_update";
|
|
482
|
-
currentPage: {
|
|
483
|
-
path: string;
|
|
484
|
-
filepath?: string | undefined;
|
|
485
|
-
title?: string | undefined;
|
|
486
|
-
};
|
|
487
|
-
}>, z.ZodObject<{
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
488
195
|
type: z.ZodLiteral<"host_navigation_complete">;
|
|
489
196
|
path: z.ZodString;
|
|
490
|
-
},
|
|
491
|
-
type: "host_navigation_complete";
|
|
492
|
-
path: string;
|
|
493
|
-
}, {
|
|
494
|
-
type: "host_navigation_complete";
|
|
495
|
-
path: string;
|
|
496
|
-
}>, z.ZodObject<{
|
|
197
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
497
198
|
type: z.ZodLiteral<"list_conversations">;
|
|
498
|
-
},
|
|
499
|
-
type: "list_conversations";
|
|
500
|
-
}, {
|
|
501
|
-
type: "list_conversations";
|
|
502
|
-
}>, z.ZodObject<{
|
|
199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
503
200
|
type: z.ZodLiteral<"delete_conversation">;
|
|
504
201
|
conversationId: z.ZodString;
|
|
505
|
-
},
|
|
506
|
-
type: "delete_conversation";
|
|
507
|
-
conversationId: string;
|
|
508
|
-
}, {
|
|
509
|
-
type: "delete_conversation";
|
|
510
|
-
conversationId: string;
|
|
511
|
-
}>, z.ZodObject<{
|
|
202
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
512
203
|
type: z.ZodLiteral<"set_settings">;
|
|
513
|
-
mode: z.ZodEnum<
|
|
514
|
-
|
|
515
|
-
|
|
204
|
+
mode: z.ZodEnum<{
|
|
205
|
+
normal: "normal";
|
|
206
|
+
acceptEdits: "acceptEdits";
|
|
207
|
+
plan: "plan";
|
|
208
|
+
auto: "auto";
|
|
209
|
+
}>;
|
|
210
|
+
thinking: z.ZodEnum<{
|
|
211
|
+
off: "off";
|
|
212
|
+
low: "low";
|
|
213
|
+
medium: "medium";
|
|
214
|
+
high: "high";
|
|
215
|
+
}>;
|
|
216
|
+
generationMode: z.ZodDefault<z.ZodEnum<{
|
|
217
|
+
safe: "safe";
|
|
218
|
+
vibe: "vibe";
|
|
219
|
+
}>>;
|
|
516
220
|
allowLocalSkills: z.ZodDefault<z.ZodBoolean>;
|
|
517
|
-
},
|
|
518
|
-
type: "set_settings";
|
|
519
|
-
mode: "normal" | "acceptEdits" | "plan" | "auto";
|
|
520
|
-
thinking: "off" | "low" | "medium" | "high";
|
|
521
|
-
generationMode: "safe" | "vibe";
|
|
522
|
-
allowLocalSkills: boolean;
|
|
523
|
-
}, {
|
|
524
|
-
type: "set_settings";
|
|
525
|
-
mode: "normal" | "acceptEdits" | "plan" | "auto";
|
|
526
|
-
thinking: "off" | "low" | "medium" | "high";
|
|
527
|
-
generationMode?: "safe" | "vibe" | undefined;
|
|
528
|
-
allowLocalSkills?: boolean | undefined;
|
|
529
|
-
}>, z.ZodObject<{
|
|
221
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
530
222
|
type: z.ZodLiteral<"request_host_navigate">;
|
|
531
223
|
path: z.ZodString;
|
|
532
|
-
},
|
|
533
|
-
type: "request_host_navigate";
|
|
534
|
-
path: string;
|
|
535
|
-
}, {
|
|
536
|
-
type: "request_host_navigate";
|
|
537
|
-
path: string;
|
|
538
|
-
}>, z.ZodObject<{
|
|
224
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
539
225
|
type: z.ZodLiteral<"interrupt_turn">;
|
|
540
226
|
conversationId: z.ZodString;
|
|
541
|
-
},
|
|
542
|
-
type: "interrupt_turn";
|
|
543
|
-
conversationId: string;
|
|
544
|
-
}, {
|
|
545
|
-
type: "interrupt_turn";
|
|
546
|
-
conversationId: string;
|
|
547
|
-
}>, z.ZodObject<{
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
548
228
|
type: z.ZodLiteral<"queue_enqueue">;
|
|
549
229
|
conversationId: z.ZodString;
|
|
550
230
|
item: z.ZodObject<{
|
|
@@ -555,75 +235,13 @@ export declare const AnyClientMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
555
235
|
mimeType: z.ZodString;
|
|
556
236
|
size: z.ZodNumber;
|
|
557
237
|
data: z.ZodString;
|
|
558
|
-
},
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
size: number;
|
|
562
|
-
data: string;
|
|
563
|
-
}, {
|
|
564
|
-
name: string;
|
|
565
|
-
mimeType: string;
|
|
566
|
-
size: number;
|
|
567
|
-
data: string;
|
|
568
|
-
}>, "many">>;
|
|
569
|
-
}, "strip", z.ZodTypeAny, {
|
|
570
|
-
content: string;
|
|
571
|
-
id: string;
|
|
572
|
-
attachments?: {
|
|
573
|
-
name: string;
|
|
574
|
-
mimeType: string;
|
|
575
|
-
size: number;
|
|
576
|
-
data: string;
|
|
577
|
-
}[] | undefined;
|
|
578
|
-
}, {
|
|
579
|
-
content: string;
|
|
580
|
-
id: string;
|
|
581
|
-
attachments?: {
|
|
582
|
-
name: string;
|
|
583
|
-
mimeType: string;
|
|
584
|
-
size: number;
|
|
585
|
-
data: string;
|
|
586
|
-
}[] | undefined;
|
|
587
|
-
}>;
|
|
588
|
-
}, "strip", z.ZodTypeAny, {
|
|
589
|
-
type: "queue_enqueue";
|
|
590
|
-
conversationId: string;
|
|
591
|
-
item: {
|
|
592
|
-
content: string;
|
|
593
|
-
id: string;
|
|
594
|
-
attachments?: {
|
|
595
|
-
name: string;
|
|
596
|
-
mimeType: string;
|
|
597
|
-
size: number;
|
|
598
|
-
data: string;
|
|
599
|
-
}[] | undefined;
|
|
600
|
-
};
|
|
601
|
-
}, {
|
|
602
|
-
type: "queue_enqueue";
|
|
603
|
-
conversationId: string;
|
|
604
|
-
item: {
|
|
605
|
-
content: string;
|
|
606
|
-
id: string;
|
|
607
|
-
attachments?: {
|
|
608
|
-
name: string;
|
|
609
|
-
mimeType: string;
|
|
610
|
-
size: number;
|
|
611
|
-
data: string;
|
|
612
|
-
}[] | undefined;
|
|
613
|
-
};
|
|
614
|
-
}>, z.ZodObject<{
|
|
238
|
+
}, z.core.$strip>>>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
615
241
|
type: z.ZodLiteral<"queue_cancel">;
|
|
616
242
|
conversationId: z.ZodString;
|
|
617
243
|
id: z.ZodString;
|
|
618
|
-
},
|
|
619
|
-
type: "queue_cancel";
|
|
620
|
-
conversationId: string;
|
|
621
|
-
id: string;
|
|
622
|
-
}, {
|
|
623
|
-
type: "queue_cancel";
|
|
624
|
-
conversationId: string;
|
|
625
|
-
id: string;
|
|
626
|
-
}>]>;
|
|
244
|
+
}, z.core.$strip>], "type">;
|
|
627
245
|
export type AnyClientMessageType = z.infer<typeof AnyClientMessage>;
|
|
628
246
|
export type ClientHelloMsgType = z.infer<typeof ClientHelloMsg>;
|
|
629
247
|
export type EchoMsgType = z.infer<typeof EchoMsg>;
|
package/sidecar/package.json
CHANGED