@linkshell/gateway 0.5.2 → 0.6.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.
- package/Dockerfile +8 -22
- package/README.md +99 -44
- package/dist/gateway/src/accounts.js.map +1 -0
- package/dist/gateway/src/index.d.ts +4 -1
- package/dist/gateway/src/index.js +4 -863
- package/dist/gateway/src/index.js.map +1 -1
- package/dist/gateway/src/main.js +57 -0
- package/dist/gateway/src/main.js.map +1 -0
- package/dist/gateway/src/rate-limit.d.ts +22 -0
- package/dist/gateway/src/rate-limit.js +66 -0
- package/dist/gateway/src/rate-limit.js.map +1 -0
- package/dist/gateway/src/relay.d.ts +84 -5
- package/dist/gateway/src/relay.js +402 -529
- package/dist/gateway/src/relay.js.map +1 -1
- package/dist/gateway/src/serve.d.ts +34 -0
- package/dist/gateway/src/serve.js +102 -0
- package/dist/gateway/src/serve.js.map +1 -0
- package/dist/{gateway-v2 → gateway}/src/store.d.ts +5 -0
- package/dist/{gateway-v2 → gateway}/src/store.js +7 -0
- package/dist/gateway/src/store.js.map +1 -0
- package/dist/gateway/src/subscription.d.ts +18 -0
- package/dist/gateway/src/subscription.js +46 -0
- package/dist/gateway/src/subscription.js.map +1 -0
- package/dist/gateway/tsconfig.tsbuildinfo +1 -1
- package/dist/wire/src/direct.d.ts +22 -0
- package/dist/wire/src/direct.js +37 -0
- package/dist/wire/src/direct.js.map +1 -0
- package/dist/wire/src/index.d.ts +1 -0
- package/dist/wire/src/index.js +1 -0
- package/dist/wire/src/index.js.map +1 -1
- package/dist/wire/src/model.d.ts +387 -6
- package/dist/wire/src/model.js +74 -0
- package/dist/wire/src/model.js.map +1 -1
- package/dist/wire/src/relay.d.ts +8 -8
- package/dist/wire/src/rpc.d.ts +2524 -200
- package/dist/wire/src/rpc.js +77 -4
- package/dist/wire/src/rpc.js.map +1 -1
- package/dist/wire/src/updates.d.ts +390 -34
- package/dist/wire/src/updates.js +11 -1
- package/dist/wire/src/updates.js.map +1 -1
- package/package.json +12 -12
- package/src/accounts.ts +32 -0
- package/src/index.ts +4 -997
- package/src/main.ts +65 -0
- package/src/rate-limit.ts +72 -0
- package/src/relay.ts +435 -620
- package/src/serve.ts +130 -0
- package/src/store.ts +135 -0
- package/src/subscription.ts +51 -0
- package/dist/gateway/src/auth-middleware.d.ts +0 -44
- package/dist/gateway/src/auth-middleware.js +0 -204
- package/dist/gateway/src/auth-middleware.js.map +0 -1
- package/dist/gateway/src/cors.d.ts +0 -2
- package/dist/gateway/src/cors.js +0 -7
- package/dist/gateway/src/cors.js.map +0 -1
- package/dist/gateway/src/embedded.d.ts +0 -21
- package/dist/gateway/src/embedded.js +0 -438
- package/dist/gateway/src/embedded.js.map +0 -1
- package/dist/gateway/src/host-auth.d.ts +0 -32
- package/dist/gateway/src/host-auth.js +0 -78
- package/dist/gateway/src/host-auth.js.map +0 -1
- package/dist/gateway/src/pairings.d.ts +0 -38
- package/dist/gateway/src/pairings.js +0 -119
- package/dist/gateway/src/pairings.js.map +0 -1
- package/dist/gateway/src/presence.d.ts +0 -28
- package/dist/gateway/src/presence.js +0 -92
- package/dist/gateway/src/presence.js.map +0 -1
- package/dist/gateway/src/sessions.d.ts +0 -113
- package/dist/gateway/src/sessions.js +0 -352
- package/dist/gateway/src/sessions.js.map +0 -1
- package/dist/gateway/src/state-store.d.ts +0 -21
- package/dist/gateway/src/state-store.js +0 -103
- package/dist/gateway/src/state-store.js.map +0 -1
- package/dist/gateway/src/static-web.d.ts +0 -15
- package/dist/gateway/src/static-web.js +0 -129
- package/dist/gateway/src/static-web.js.map +0 -1
- package/dist/gateway/src/tokens.d.ts +0 -19
- package/dist/gateway/src/tokens.js +0 -151
- package/dist/gateway/src/tokens.js.map +0 -1
- package/dist/gateway/src/tunnel.d.ts +0 -61
- package/dist/gateway/src/tunnel.js +0 -576
- package/dist/gateway/src/tunnel.js.map +0 -1
- package/dist/gateway-v2/src/accounts.js.map +0 -1
- package/dist/gateway-v2/src/index.d.ts +0 -3
- package/dist/gateway-v2/src/index.js +0 -4
- package/dist/gateway-v2/src/index.js.map +0 -1
- package/dist/gateway-v2/src/main.js +0 -17
- package/dist/gateway-v2/src/main.js.map +0 -1
- package/dist/gateway-v2/src/server.d.ts +0 -84
- package/dist/gateway-v2/src/server.js +0 -426
- package/dist/gateway-v2/src/server.js.map +0 -1
- package/dist/gateway-v2/src/store.js.map +0 -1
- package/dist/shared-protocol/src/index.d.ts +0 -17029
- package/dist/shared-protocol/src/index.js +0 -1064
- package/dist/shared-protocol/src/index.js.map +0 -1
- package/src/auth-middleware.ts +0 -266
- package/src/cors.ts +0 -8
- package/src/embedded.ts +0 -526
- package/src/host-auth.ts +0 -88
- package/src/pairings.ts +0 -133
- package/src/presence.ts +0 -118
- package/src/sessions.ts +0 -432
- package/src/state-store.ts +0 -140
- package/src/static-web.ts +0 -133
- package/src/tokens.ts +0 -159
- package/src/tunnel.ts +0 -644
- /package/dist/{gateway-v2 → gateway}/src/accounts.d.ts +0 -0
- /package/dist/{gateway-v2 → gateway}/src/accounts.js +0 -0
- /package/dist/{gateway-v2 → gateway}/src/main.d.ts +0 -0
package/dist/wire/src/rpc.d.ts
CHANGED
|
@@ -75,14 +75,14 @@ export declare const directoryEntrySchema: z.ZodObject<{
|
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
76
|
path: string;
|
|
77
77
|
name: string;
|
|
78
|
-
project?: boolean | undefined;
|
|
79
78
|
file?: boolean | undefined;
|
|
79
|
+
project?: boolean | undefined;
|
|
80
80
|
size?: number | undefined;
|
|
81
81
|
}, {
|
|
82
82
|
path: string;
|
|
83
83
|
name: string;
|
|
84
|
-
project?: boolean | undefined;
|
|
85
84
|
file?: boolean | undefined;
|
|
85
|
+
project?: boolean | undefined;
|
|
86
86
|
size?: number | undefined;
|
|
87
87
|
}>;
|
|
88
88
|
export type DirectoryEntry = z.infer<typeof directoryEntrySchema>;
|
|
@@ -183,6 +183,13 @@ export declare const methods: {
|
|
|
183
183
|
hint?: string | undefined;
|
|
184
184
|
} | undefined;
|
|
185
185
|
}>, "many">;
|
|
186
|
+
direct: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
iceServers: z.ZodArray<z.ZodString, "many">;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
iceServers: string[];
|
|
190
|
+
}, {
|
|
191
|
+
iceServers: string[];
|
|
192
|
+
}>>;
|
|
186
193
|
}, "strip", z.ZodTypeAny, {
|
|
187
194
|
machineId: string;
|
|
188
195
|
hostname: string;
|
|
@@ -211,6 +218,9 @@ export declare const methods: {
|
|
|
211
218
|
} | undefined;
|
|
212
219
|
}[];
|
|
213
220
|
home?: string | undefined;
|
|
221
|
+
direct?: {
|
|
222
|
+
iceServers: string[];
|
|
223
|
+
} | undefined;
|
|
214
224
|
}, {
|
|
215
225
|
machineId: string;
|
|
216
226
|
hostname: string;
|
|
@@ -239,6 +249,9 @@ export declare const methods: {
|
|
|
239
249
|
} | undefined;
|
|
240
250
|
}[];
|
|
241
251
|
home?: string | undefined;
|
|
252
|
+
direct?: {
|
|
253
|
+
iceServers: string[];
|
|
254
|
+
} | undefined;
|
|
242
255
|
}>;
|
|
243
256
|
};
|
|
244
257
|
readonly "projects.list": {
|
|
@@ -255,16 +268,19 @@ export declare const methods: {
|
|
|
255
268
|
name: z.ZodString;
|
|
256
269
|
lastActiveAt: z.ZodNumber;
|
|
257
270
|
sessionCount: z.ZodNumber;
|
|
271
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
258
272
|
}, "strip", z.ZodTypeAny, {
|
|
259
273
|
name: string;
|
|
260
274
|
cwd: string;
|
|
261
275
|
lastActiveAt: number;
|
|
262
276
|
sessionCount: number;
|
|
277
|
+
branch?: string | undefined;
|
|
263
278
|
}, {
|
|
264
279
|
name: string;
|
|
265
280
|
cwd: string;
|
|
266
281
|
lastActiveAt: number;
|
|
267
282
|
sessionCount: number;
|
|
283
|
+
branch?: string | undefined;
|
|
268
284
|
}>, "many">;
|
|
269
285
|
}, "strip", z.ZodTypeAny, {
|
|
270
286
|
projects: {
|
|
@@ -272,6 +288,7 @@ export declare const methods: {
|
|
|
272
288
|
cwd: string;
|
|
273
289
|
lastActiveAt: number;
|
|
274
290
|
sessionCount: number;
|
|
291
|
+
branch?: string | undefined;
|
|
275
292
|
}[];
|
|
276
293
|
}, {
|
|
277
294
|
projects: {
|
|
@@ -279,6 +296,7 @@ export declare const methods: {
|
|
|
279
296
|
cwd: string;
|
|
280
297
|
lastActiveAt: number;
|
|
281
298
|
sessionCount: number;
|
|
299
|
+
branch?: string | undefined;
|
|
282
300
|
}[];
|
|
283
301
|
}>;
|
|
284
302
|
};
|
|
@@ -344,6 +362,54 @@ export declare const methods: {
|
|
|
344
362
|
name: string;
|
|
345
363
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
346
364
|
}>, "many">;
|
|
365
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
366
|
+
id: z.ZodString;
|
|
367
|
+
header: z.ZodOptional<z.ZodString>;
|
|
368
|
+
text: z.ZodString;
|
|
369
|
+
kind: z.ZodEnum<["choice", "choices", "text"]>;
|
|
370
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
371
|
+
value: z.ZodString;
|
|
372
|
+
label: z.ZodString;
|
|
373
|
+
description: z.ZodOptional<z.ZodString>;
|
|
374
|
+
}, "strip", z.ZodTypeAny, {
|
|
375
|
+
value: string;
|
|
376
|
+
label: string;
|
|
377
|
+
description?: string | undefined;
|
|
378
|
+
}, {
|
|
379
|
+
value: string;
|
|
380
|
+
label: string;
|
|
381
|
+
description?: string | undefined;
|
|
382
|
+
}>, "many">>;
|
|
383
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
384
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
385
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
id: string;
|
|
388
|
+
kind: "text" | "choice" | "choices";
|
|
389
|
+
text: string;
|
|
390
|
+
options?: {
|
|
391
|
+
value: string;
|
|
392
|
+
label: string;
|
|
393
|
+
description?: string | undefined;
|
|
394
|
+
}[] | undefined;
|
|
395
|
+
other?: boolean | undefined;
|
|
396
|
+
header?: string | undefined;
|
|
397
|
+
secret?: boolean | undefined;
|
|
398
|
+
required?: boolean | undefined;
|
|
399
|
+
}, {
|
|
400
|
+
id: string;
|
|
401
|
+
kind: "text" | "choice" | "choices";
|
|
402
|
+
text: string;
|
|
403
|
+
options?: {
|
|
404
|
+
value: string;
|
|
405
|
+
label: string;
|
|
406
|
+
description?: string | undefined;
|
|
407
|
+
}[] | undefined;
|
|
408
|
+
other?: boolean | undefined;
|
|
409
|
+
header?: string | undefined;
|
|
410
|
+
secret?: boolean | undefined;
|
|
411
|
+
required?: boolean | undefined;
|
|
412
|
+
}>, "many">>;
|
|
347
413
|
}, "strip", z.ZodTypeAny, {
|
|
348
414
|
options: {
|
|
349
415
|
optionId: string;
|
|
@@ -354,6 +420,20 @@ export declare const methods: {
|
|
|
354
420
|
requestId: string;
|
|
355
421
|
toolCallId?: string | undefined;
|
|
356
422
|
detail?: string | undefined;
|
|
423
|
+
questions?: {
|
|
424
|
+
id: string;
|
|
425
|
+
kind: "text" | "choice" | "choices";
|
|
426
|
+
text: string;
|
|
427
|
+
options?: {
|
|
428
|
+
value: string;
|
|
429
|
+
label: string;
|
|
430
|
+
description?: string | undefined;
|
|
431
|
+
}[] | undefined;
|
|
432
|
+
other?: boolean | undefined;
|
|
433
|
+
header?: string | undefined;
|
|
434
|
+
secret?: boolean | undefined;
|
|
435
|
+
required?: boolean | undefined;
|
|
436
|
+
}[] | undefined;
|
|
357
437
|
}, {
|
|
358
438
|
options: {
|
|
359
439
|
optionId: string;
|
|
@@ -364,6 +444,20 @@ export declare const methods: {
|
|
|
364
444
|
requestId: string;
|
|
365
445
|
toolCallId?: string | undefined;
|
|
366
446
|
detail?: string | undefined;
|
|
447
|
+
questions?: {
|
|
448
|
+
id: string;
|
|
449
|
+
kind: "text" | "choice" | "choices";
|
|
450
|
+
text: string;
|
|
451
|
+
options?: {
|
|
452
|
+
value: string;
|
|
453
|
+
label: string;
|
|
454
|
+
description?: string | undefined;
|
|
455
|
+
}[] | undefined;
|
|
456
|
+
other?: boolean | undefined;
|
|
457
|
+
header?: string | undefined;
|
|
458
|
+
secret?: boolean | undefined;
|
|
459
|
+
required?: boolean | undefined;
|
|
460
|
+
}[] | undefined;
|
|
367
461
|
}>>;
|
|
368
462
|
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
369
463
|
clientMessageId: z.ZodString;
|
|
@@ -371,13 +465,23 @@ export declare const methods: {
|
|
|
371
465
|
images: z.ZodNumber;
|
|
372
466
|
}, "strip", z.ZodTypeAny, {
|
|
373
467
|
images: number;
|
|
374
|
-
clientMessageId: string;
|
|
375
468
|
text: string;
|
|
469
|
+
clientMessageId: string;
|
|
376
470
|
}, {
|
|
377
471
|
images: number;
|
|
378
|
-
clientMessageId: string;
|
|
379
472
|
text: string;
|
|
473
|
+
clientMessageId: string;
|
|
380
474
|
}>, "many">>;
|
|
475
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
476
|
+
branch: z.ZodString;
|
|
477
|
+
source: z.ZodString;
|
|
478
|
+
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
branch: string;
|
|
480
|
+
source: string;
|
|
481
|
+
}, {
|
|
482
|
+
branch: string;
|
|
483
|
+
source: string;
|
|
484
|
+
}>>;
|
|
381
485
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
382
486
|
total: z.ZodNumber;
|
|
383
487
|
running: z.ZodNumber;
|
|
@@ -418,12 +522,30 @@ export declare const methods: {
|
|
|
418
522
|
requestId: string;
|
|
419
523
|
toolCallId?: string | undefined;
|
|
420
524
|
detail?: string | undefined;
|
|
525
|
+
questions?: {
|
|
526
|
+
id: string;
|
|
527
|
+
kind: "text" | "choice" | "choices";
|
|
528
|
+
text: string;
|
|
529
|
+
options?: {
|
|
530
|
+
value: string;
|
|
531
|
+
label: string;
|
|
532
|
+
description?: string | undefined;
|
|
533
|
+
}[] | undefined;
|
|
534
|
+
other?: boolean | undefined;
|
|
535
|
+
header?: string | undefined;
|
|
536
|
+
secret?: boolean | undefined;
|
|
537
|
+
required?: boolean | undefined;
|
|
538
|
+
}[] | undefined;
|
|
421
539
|
} | undefined;
|
|
422
540
|
queue?: {
|
|
423
541
|
images: number;
|
|
424
|
-
clientMessageId: string;
|
|
425
542
|
text: string;
|
|
543
|
+
clientMessageId: string;
|
|
426
544
|
}[] | undefined;
|
|
545
|
+
worktree?: {
|
|
546
|
+
branch: string;
|
|
547
|
+
source: string;
|
|
548
|
+
} | undefined;
|
|
427
549
|
subagents?: {
|
|
428
550
|
running: number;
|
|
429
551
|
total: number;
|
|
@@ -458,12 +580,30 @@ export declare const methods: {
|
|
|
458
580
|
requestId: string;
|
|
459
581
|
toolCallId?: string | undefined;
|
|
460
582
|
detail?: string | undefined;
|
|
583
|
+
questions?: {
|
|
584
|
+
id: string;
|
|
585
|
+
kind: "text" | "choice" | "choices";
|
|
586
|
+
text: string;
|
|
587
|
+
options?: {
|
|
588
|
+
value: string;
|
|
589
|
+
label: string;
|
|
590
|
+
description?: string | undefined;
|
|
591
|
+
}[] | undefined;
|
|
592
|
+
other?: boolean | undefined;
|
|
593
|
+
header?: string | undefined;
|
|
594
|
+
secret?: boolean | undefined;
|
|
595
|
+
required?: boolean | undefined;
|
|
596
|
+
}[] | undefined;
|
|
461
597
|
} | undefined;
|
|
462
598
|
queue?: {
|
|
463
599
|
images: number;
|
|
464
|
-
clientMessageId: string;
|
|
465
600
|
text: string;
|
|
601
|
+
clientMessageId: string;
|
|
466
602
|
}[] | undefined;
|
|
603
|
+
worktree?: {
|
|
604
|
+
branch: string;
|
|
605
|
+
source: string;
|
|
606
|
+
} | undefined;
|
|
467
607
|
subagents?: {
|
|
468
608
|
running: number;
|
|
469
609
|
total: number;
|
|
@@ -501,12 +641,30 @@ export declare const methods: {
|
|
|
501
641
|
requestId: string;
|
|
502
642
|
toolCallId?: string | undefined;
|
|
503
643
|
detail?: string | undefined;
|
|
644
|
+
questions?: {
|
|
645
|
+
id: string;
|
|
646
|
+
kind: "text" | "choice" | "choices";
|
|
647
|
+
text: string;
|
|
648
|
+
options?: {
|
|
649
|
+
value: string;
|
|
650
|
+
label: string;
|
|
651
|
+
description?: string | undefined;
|
|
652
|
+
}[] | undefined;
|
|
653
|
+
other?: boolean | undefined;
|
|
654
|
+
header?: string | undefined;
|
|
655
|
+
secret?: boolean | undefined;
|
|
656
|
+
required?: boolean | undefined;
|
|
657
|
+
}[] | undefined;
|
|
504
658
|
} | undefined;
|
|
505
659
|
queue?: {
|
|
506
660
|
images: number;
|
|
507
|
-
clientMessageId: string;
|
|
508
661
|
text: string;
|
|
662
|
+
clientMessageId: string;
|
|
509
663
|
}[] | undefined;
|
|
664
|
+
worktree?: {
|
|
665
|
+
branch: string;
|
|
666
|
+
source: string;
|
|
667
|
+
} | undefined;
|
|
510
668
|
subagents?: {
|
|
511
669
|
running: number;
|
|
512
670
|
total: number;
|
|
@@ -544,12 +702,30 @@ export declare const methods: {
|
|
|
544
702
|
requestId: string;
|
|
545
703
|
toolCallId?: string | undefined;
|
|
546
704
|
detail?: string | undefined;
|
|
705
|
+
questions?: {
|
|
706
|
+
id: string;
|
|
707
|
+
kind: "text" | "choice" | "choices";
|
|
708
|
+
text: string;
|
|
709
|
+
options?: {
|
|
710
|
+
value: string;
|
|
711
|
+
label: string;
|
|
712
|
+
description?: string | undefined;
|
|
713
|
+
}[] | undefined;
|
|
714
|
+
other?: boolean | undefined;
|
|
715
|
+
header?: string | undefined;
|
|
716
|
+
secret?: boolean | undefined;
|
|
717
|
+
required?: boolean | undefined;
|
|
718
|
+
}[] | undefined;
|
|
547
719
|
} | undefined;
|
|
548
720
|
queue?: {
|
|
549
721
|
images: number;
|
|
550
|
-
clientMessageId: string;
|
|
551
722
|
text: string;
|
|
723
|
+
clientMessageId: string;
|
|
552
724
|
}[] | undefined;
|
|
725
|
+
worktree?: {
|
|
726
|
+
branch: string;
|
|
727
|
+
source: string;
|
|
728
|
+
} | undefined;
|
|
553
729
|
subagents?: {
|
|
554
730
|
running: number;
|
|
555
731
|
total: number;
|
|
@@ -604,44 +780,488 @@ export declare const methods: {
|
|
|
604
780
|
}>]>, "many">>;
|
|
605
781
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
606
782
|
model: z.ZodOptional<z.ZodString>;
|
|
783
|
+
/**
|
|
784
|
+
* Start in a new git worktree of `cwd`'s repository (its own branch, from
|
|
785
|
+
* the last commit) instead of in `cwd` itself. Refused with `not_a_repo`
|
|
786
|
+
* outside a git repository.
|
|
787
|
+
*/
|
|
788
|
+
worktree: z.ZodOptional<z.ZodBoolean>;
|
|
789
|
+
}, "strip", z.ZodTypeAny, {
|
|
790
|
+
agent: string;
|
|
791
|
+
cwd: string;
|
|
792
|
+
clientMessageId?: string | undefined;
|
|
793
|
+
model?: string | undefined;
|
|
794
|
+
worktree?: boolean | undefined;
|
|
795
|
+
prompt?: ({
|
|
796
|
+
type: "text";
|
|
797
|
+
text: string;
|
|
798
|
+
} | {
|
|
799
|
+
type: "image";
|
|
800
|
+
mimeType: string;
|
|
801
|
+
data?: string | undefined;
|
|
802
|
+
uri?: string | undefined;
|
|
803
|
+
} | {
|
|
804
|
+
type: "resource_link";
|
|
805
|
+
name: string;
|
|
806
|
+
uri: string;
|
|
807
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
808
|
+
})[] | undefined;
|
|
809
|
+
}, {
|
|
810
|
+
agent: string;
|
|
811
|
+
cwd: string;
|
|
812
|
+
clientMessageId?: string | undefined;
|
|
813
|
+
model?: string | undefined;
|
|
814
|
+
worktree?: boolean | undefined;
|
|
815
|
+
prompt?: ({
|
|
816
|
+
type: "text";
|
|
817
|
+
text: string;
|
|
818
|
+
} | {
|
|
819
|
+
type: "image";
|
|
820
|
+
mimeType: string;
|
|
821
|
+
data?: string | undefined;
|
|
822
|
+
uri?: string | undefined;
|
|
823
|
+
} | {
|
|
824
|
+
type: "resource_link";
|
|
825
|
+
name: string;
|
|
826
|
+
uri: string;
|
|
827
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
828
|
+
})[] | undefined;
|
|
829
|
+
}>;
|
|
830
|
+
readonly result: z.ZodObject<{
|
|
831
|
+
session: z.ZodObject<{
|
|
832
|
+
id: z.ZodString;
|
|
833
|
+
agent: z.ZodString;
|
|
834
|
+
nativeId: z.ZodString;
|
|
835
|
+
title: z.ZodOptional<z.ZodString>;
|
|
836
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
837
|
+
cwd: z.ZodString;
|
|
838
|
+
state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
|
|
839
|
+
driver: z.ZodOptional<z.ZodEnum<["desktop", "remote", "none"]>>;
|
|
840
|
+
pendingPermissions: z.ZodNumber;
|
|
841
|
+
model: z.ZodOptional<z.ZodString>;
|
|
842
|
+
createdAt: z.ZodNumber;
|
|
843
|
+
updatedAt: z.ZodNumber;
|
|
844
|
+
lastSeq: z.ZodNumber;
|
|
845
|
+
archived: z.ZodBoolean;
|
|
846
|
+
activity: z.ZodOptional<z.ZodObject<{
|
|
847
|
+
kind: z.ZodEnum<["thinking", "responding", "tool"]>;
|
|
848
|
+
title: z.ZodOptional<z.ZodString>;
|
|
849
|
+
toolKind: z.ZodOptional<z.ZodEnum<["read", "edit", "delete", "move", "search", "execute", "think", "fetch", "other"]>>;
|
|
850
|
+
}, "strip", z.ZodTypeAny, {
|
|
851
|
+
kind: "thinking" | "responding" | "tool";
|
|
852
|
+
title?: string | undefined;
|
|
853
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
854
|
+
}, {
|
|
855
|
+
kind: "thinking" | "responding" | "tool";
|
|
856
|
+
title?: string | undefined;
|
|
857
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
858
|
+
}>>;
|
|
859
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
860
|
+
requestId: z.ZodString;
|
|
861
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
862
|
+
title: z.ZodString;
|
|
863
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
864
|
+
options: z.ZodArray<z.ZodObject<{
|
|
865
|
+
optionId: z.ZodString;
|
|
866
|
+
name: z.ZodString;
|
|
867
|
+
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
868
|
+
}, "strip", z.ZodTypeAny, {
|
|
869
|
+
optionId: string;
|
|
870
|
+
name: string;
|
|
871
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
872
|
+
}, {
|
|
873
|
+
optionId: string;
|
|
874
|
+
name: string;
|
|
875
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
876
|
+
}>, "many">;
|
|
877
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
878
|
+
id: z.ZodString;
|
|
879
|
+
header: z.ZodOptional<z.ZodString>;
|
|
880
|
+
text: z.ZodString;
|
|
881
|
+
kind: z.ZodEnum<["choice", "choices", "text"]>;
|
|
882
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
883
|
+
value: z.ZodString;
|
|
884
|
+
label: z.ZodString;
|
|
885
|
+
description: z.ZodOptional<z.ZodString>;
|
|
886
|
+
}, "strip", z.ZodTypeAny, {
|
|
887
|
+
value: string;
|
|
888
|
+
label: string;
|
|
889
|
+
description?: string | undefined;
|
|
890
|
+
}, {
|
|
891
|
+
value: string;
|
|
892
|
+
label: string;
|
|
893
|
+
description?: string | undefined;
|
|
894
|
+
}>, "many">>;
|
|
895
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
896
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
897
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
898
|
+
}, "strip", z.ZodTypeAny, {
|
|
899
|
+
id: string;
|
|
900
|
+
kind: "text" | "choice" | "choices";
|
|
901
|
+
text: string;
|
|
902
|
+
options?: {
|
|
903
|
+
value: string;
|
|
904
|
+
label: string;
|
|
905
|
+
description?: string | undefined;
|
|
906
|
+
}[] | undefined;
|
|
907
|
+
other?: boolean | undefined;
|
|
908
|
+
header?: string | undefined;
|
|
909
|
+
secret?: boolean | undefined;
|
|
910
|
+
required?: boolean | undefined;
|
|
911
|
+
}, {
|
|
912
|
+
id: string;
|
|
913
|
+
kind: "text" | "choice" | "choices";
|
|
914
|
+
text: string;
|
|
915
|
+
options?: {
|
|
916
|
+
value: string;
|
|
917
|
+
label: string;
|
|
918
|
+
description?: string | undefined;
|
|
919
|
+
}[] | undefined;
|
|
920
|
+
other?: boolean | undefined;
|
|
921
|
+
header?: string | undefined;
|
|
922
|
+
secret?: boolean | undefined;
|
|
923
|
+
required?: boolean | undefined;
|
|
924
|
+
}>, "many">>;
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
926
|
+
options: {
|
|
927
|
+
optionId: string;
|
|
928
|
+
name: string;
|
|
929
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
930
|
+
}[];
|
|
931
|
+
title: string;
|
|
932
|
+
requestId: string;
|
|
933
|
+
toolCallId?: string | undefined;
|
|
934
|
+
detail?: string | undefined;
|
|
935
|
+
questions?: {
|
|
936
|
+
id: string;
|
|
937
|
+
kind: "text" | "choice" | "choices";
|
|
938
|
+
text: string;
|
|
939
|
+
options?: {
|
|
940
|
+
value: string;
|
|
941
|
+
label: string;
|
|
942
|
+
description?: string | undefined;
|
|
943
|
+
}[] | undefined;
|
|
944
|
+
other?: boolean | undefined;
|
|
945
|
+
header?: string | undefined;
|
|
946
|
+
secret?: boolean | undefined;
|
|
947
|
+
required?: boolean | undefined;
|
|
948
|
+
}[] | undefined;
|
|
949
|
+
}, {
|
|
950
|
+
options: {
|
|
951
|
+
optionId: string;
|
|
952
|
+
name: string;
|
|
953
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
954
|
+
}[];
|
|
955
|
+
title: string;
|
|
956
|
+
requestId: string;
|
|
957
|
+
toolCallId?: string | undefined;
|
|
958
|
+
detail?: string | undefined;
|
|
959
|
+
questions?: {
|
|
960
|
+
id: string;
|
|
961
|
+
kind: "text" | "choice" | "choices";
|
|
962
|
+
text: string;
|
|
963
|
+
options?: {
|
|
964
|
+
value: string;
|
|
965
|
+
label: string;
|
|
966
|
+
description?: string | undefined;
|
|
967
|
+
}[] | undefined;
|
|
968
|
+
other?: boolean | undefined;
|
|
969
|
+
header?: string | undefined;
|
|
970
|
+
secret?: boolean | undefined;
|
|
971
|
+
required?: boolean | undefined;
|
|
972
|
+
}[] | undefined;
|
|
973
|
+
}>>;
|
|
974
|
+
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
975
|
+
clientMessageId: z.ZodString;
|
|
976
|
+
text: z.ZodString;
|
|
977
|
+
images: z.ZodNumber;
|
|
978
|
+
}, "strip", z.ZodTypeAny, {
|
|
979
|
+
images: number;
|
|
980
|
+
text: string;
|
|
981
|
+
clientMessageId: string;
|
|
982
|
+
}, {
|
|
983
|
+
images: number;
|
|
984
|
+
text: string;
|
|
985
|
+
clientMessageId: string;
|
|
986
|
+
}>, "many">>;
|
|
987
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
988
|
+
branch: z.ZodString;
|
|
989
|
+
source: z.ZodString;
|
|
990
|
+
}, "strip", z.ZodTypeAny, {
|
|
991
|
+
branch: string;
|
|
992
|
+
source: string;
|
|
993
|
+
}, {
|
|
994
|
+
branch: string;
|
|
995
|
+
source: string;
|
|
996
|
+
}>>;
|
|
997
|
+
subagents: z.ZodOptional<z.ZodObject<{
|
|
998
|
+
total: z.ZodNumber;
|
|
999
|
+
running: z.ZodNumber;
|
|
1000
|
+
}, "strip", z.ZodTypeAny, {
|
|
1001
|
+
running: number;
|
|
1002
|
+
total: number;
|
|
1003
|
+
}, {
|
|
1004
|
+
running: number;
|
|
1005
|
+
total: number;
|
|
1006
|
+
}>>;
|
|
1007
|
+
}, "strip", z.ZodTypeAny, {
|
|
1008
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1009
|
+
id: string;
|
|
1010
|
+
agent: string;
|
|
1011
|
+
nativeId: string;
|
|
1012
|
+
cwd: string;
|
|
1013
|
+
pendingPermissions: number;
|
|
1014
|
+
createdAt: number;
|
|
1015
|
+
updatedAt: number;
|
|
1016
|
+
lastSeq: number;
|
|
1017
|
+
archived: boolean;
|
|
1018
|
+
title?: string | undefined;
|
|
1019
|
+
preview?: string | undefined;
|
|
1020
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
1021
|
+
model?: string | undefined;
|
|
1022
|
+
activity?: {
|
|
1023
|
+
kind: "thinking" | "responding" | "tool";
|
|
1024
|
+
title?: string | undefined;
|
|
1025
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1026
|
+
} | undefined;
|
|
1027
|
+
permission?: {
|
|
1028
|
+
options: {
|
|
1029
|
+
optionId: string;
|
|
1030
|
+
name: string;
|
|
1031
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1032
|
+
}[];
|
|
1033
|
+
title: string;
|
|
1034
|
+
requestId: string;
|
|
1035
|
+
toolCallId?: string | undefined;
|
|
1036
|
+
detail?: string | undefined;
|
|
1037
|
+
questions?: {
|
|
1038
|
+
id: string;
|
|
1039
|
+
kind: "text" | "choice" | "choices";
|
|
1040
|
+
text: string;
|
|
1041
|
+
options?: {
|
|
1042
|
+
value: string;
|
|
1043
|
+
label: string;
|
|
1044
|
+
description?: string | undefined;
|
|
1045
|
+
}[] | undefined;
|
|
1046
|
+
other?: boolean | undefined;
|
|
1047
|
+
header?: string | undefined;
|
|
1048
|
+
secret?: boolean | undefined;
|
|
1049
|
+
required?: boolean | undefined;
|
|
1050
|
+
}[] | undefined;
|
|
1051
|
+
} | undefined;
|
|
1052
|
+
queue?: {
|
|
1053
|
+
images: number;
|
|
1054
|
+
text: string;
|
|
1055
|
+
clientMessageId: string;
|
|
1056
|
+
}[] | undefined;
|
|
1057
|
+
worktree?: {
|
|
1058
|
+
branch: string;
|
|
1059
|
+
source: string;
|
|
1060
|
+
} | undefined;
|
|
1061
|
+
subagents?: {
|
|
1062
|
+
running: number;
|
|
1063
|
+
total: number;
|
|
1064
|
+
} | undefined;
|
|
1065
|
+
}, {
|
|
1066
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1067
|
+
id: string;
|
|
1068
|
+
agent: string;
|
|
1069
|
+
nativeId: string;
|
|
1070
|
+
cwd: string;
|
|
1071
|
+
pendingPermissions: number;
|
|
1072
|
+
createdAt: number;
|
|
1073
|
+
updatedAt: number;
|
|
1074
|
+
lastSeq: number;
|
|
1075
|
+
archived: boolean;
|
|
1076
|
+
title?: string | undefined;
|
|
1077
|
+
preview?: string | undefined;
|
|
1078
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
1079
|
+
model?: string | undefined;
|
|
1080
|
+
activity?: {
|
|
1081
|
+
kind: "thinking" | "responding" | "tool";
|
|
1082
|
+
title?: string | undefined;
|
|
1083
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1084
|
+
} | undefined;
|
|
1085
|
+
permission?: {
|
|
1086
|
+
options: {
|
|
1087
|
+
optionId: string;
|
|
1088
|
+
name: string;
|
|
1089
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1090
|
+
}[];
|
|
1091
|
+
title: string;
|
|
1092
|
+
requestId: string;
|
|
1093
|
+
toolCallId?: string | undefined;
|
|
1094
|
+
detail?: string | undefined;
|
|
1095
|
+
questions?: {
|
|
1096
|
+
id: string;
|
|
1097
|
+
kind: "text" | "choice" | "choices";
|
|
1098
|
+
text: string;
|
|
1099
|
+
options?: {
|
|
1100
|
+
value: string;
|
|
1101
|
+
label: string;
|
|
1102
|
+
description?: string | undefined;
|
|
1103
|
+
}[] | undefined;
|
|
1104
|
+
other?: boolean | undefined;
|
|
1105
|
+
header?: string | undefined;
|
|
1106
|
+
secret?: boolean | undefined;
|
|
1107
|
+
required?: boolean | undefined;
|
|
1108
|
+
}[] | undefined;
|
|
1109
|
+
} | undefined;
|
|
1110
|
+
queue?: {
|
|
1111
|
+
images: number;
|
|
1112
|
+
text: string;
|
|
1113
|
+
clientMessageId: string;
|
|
1114
|
+
}[] | undefined;
|
|
1115
|
+
worktree?: {
|
|
1116
|
+
branch: string;
|
|
1117
|
+
source: string;
|
|
1118
|
+
} | undefined;
|
|
1119
|
+
subagents?: {
|
|
1120
|
+
running: number;
|
|
1121
|
+
total: number;
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
}>;
|
|
1124
|
+
}, "strip", z.ZodTypeAny, {
|
|
1125
|
+
session: {
|
|
1126
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1127
|
+
id: string;
|
|
1128
|
+
agent: string;
|
|
1129
|
+
nativeId: string;
|
|
1130
|
+
cwd: string;
|
|
1131
|
+
pendingPermissions: number;
|
|
1132
|
+
createdAt: number;
|
|
1133
|
+
updatedAt: number;
|
|
1134
|
+
lastSeq: number;
|
|
1135
|
+
archived: boolean;
|
|
1136
|
+
title?: string | undefined;
|
|
1137
|
+
preview?: string | undefined;
|
|
1138
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
1139
|
+
model?: string | undefined;
|
|
1140
|
+
activity?: {
|
|
1141
|
+
kind: "thinking" | "responding" | "tool";
|
|
1142
|
+
title?: string | undefined;
|
|
1143
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1144
|
+
} | undefined;
|
|
1145
|
+
permission?: {
|
|
1146
|
+
options: {
|
|
1147
|
+
optionId: string;
|
|
1148
|
+
name: string;
|
|
1149
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1150
|
+
}[];
|
|
1151
|
+
title: string;
|
|
1152
|
+
requestId: string;
|
|
1153
|
+
toolCallId?: string | undefined;
|
|
1154
|
+
detail?: string | undefined;
|
|
1155
|
+
questions?: {
|
|
1156
|
+
id: string;
|
|
1157
|
+
kind: "text" | "choice" | "choices";
|
|
1158
|
+
text: string;
|
|
1159
|
+
options?: {
|
|
1160
|
+
value: string;
|
|
1161
|
+
label: string;
|
|
1162
|
+
description?: string | undefined;
|
|
1163
|
+
}[] | undefined;
|
|
1164
|
+
other?: boolean | undefined;
|
|
1165
|
+
header?: string | undefined;
|
|
1166
|
+
secret?: boolean | undefined;
|
|
1167
|
+
required?: boolean | undefined;
|
|
1168
|
+
}[] | undefined;
|
|
1169
|
+
} | undefined;
|
|
1170
|
+
queue?: {
|
|
1171
|
+
images: number;
|
|
1172
|
+
text: string;
|
|
1173
|
+
clientMessageId: string;
|
|
1174
|
+
}[] | undefined;
|
|
1175
|
+
worktree?: {
|
|
1176
|
+
branch: string;
|
|
1177
|
+
source: string;
|
|
1178
|
+
} | undefined;
|
|
1179
|
+
subagents?: {
|
|
1180
|
+
running: number;
|
|
1181
|
+
total: number;
|
|
1182
|
+
} | undefined;
|
|
1183
|
+
};
|
|
1184
|
+
}, {
|
|
1185
|
+
session: {
|
|
1186
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1187
|
+
id: string;
|
|
1188
|
+
agent: string;
|
|
1189
|
+
nativeId: string;
|
|
1190
|
+
cwd: string;
|
|
1191
|
+
pendingPermissions: number;
|
|
1192
|
+
createdAt: number;
|
|
1193
|
+
updatedAt: number;
|
|
1194
|
+
lastSeq: number;
|
|
1195
|
+
archived: boolean;
|
|
1196
|
+
title?: string | undefined;
|
|
1197
|
+
preview?: string | undefined;
|
|
1198
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
1199
|
+
model?: string | undefined;
|
|
1200
|
+
activity?: {
|
|
1201
|
+
kind: "thinking" | "responding" | "tool";
|
|
1202
|
+
title?: string | undefined;
|
|
1203
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1204
|
+
} | undefined;
|
|
1205
|
+
permission?: {
|
|
1206
|
+
options: {
|
|
1207
|
+
optionId: string;
|
|
1208
|
+
name: string;
|
|
1209
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1210
|
+
}[];
|
|
1211
|
+
title: string;
|
|
1212
|
+
requestId: string;
|
|
1213
|
+
toolCallId?: string | undefined;
|
|
1214
|
+
detail?: string | undefined;
|
|
1215
|
+
questions?: {
|
|
1216
|
+
id: string;
|
|
1217
|
+
kind: "text" | "choice" | "choices";
|
|
1218
|
+
text: string;
|
|
1219
|
+
options?: {
|
|
1220
|
+
value: string;
|
|
1221
|
+
label: string;
|
|
1222
|
+
description?: string | undefined;
|
|
1223
|
+
}[] | undefined;
|
|
1224
|
+
other?: boolean | undefined;
|
|
1225
|
+
header?: string | undefined;
|
|
1226
|
+
secret?: boolean | undefined;
|
|
1227
|
+
required?: boolean | undefined;
|
|
1228
|
+
}[] | undefined;
|
|
1229
|
+
} | undefined;
|
|
1230
|
+
queue?: {
|
|
1231
|
+
images: number;
|
|
1232
|
+
text: string;
|
|
1233
|
+
clientMessageId: string;
|
|
1234
|
+
}[] | undefined;
|
|
1235
|
+
worktree?: {
|
|
1236
|
+
branch: string;
|
|
1237
|
+
source: string;
|
|
1238
|
+
} | undefined;
|
|
1239
|
+
subagents?: {
|
|
1240
|
+
running: number;
|
|
1241
|
+
total: number;
|
|
1242
|
+
} | undefined;
|
|
1243
|
+
};
|
|
1244
|
+
}>;
|
|
1245
|
+
};
|
|
1246
|
+
/**
|
|
1247
|
+
* A new session that starts with this one's conversation: all of it, or up
|
|
1248
|
+
* to and including the turn of `itemId` (a message in it). The original is
|
|
1249
|
+
* untouched. With `worktree` the new session works in a new git worktree of
|
|
1250
|
+
* the project instead of the same directory.
|
|
1251
|
+
*/
|
|
1252
|
+
readonly "sessions.fork": {
|
|
1253
|
+
readonly params: z.ZodObject<{
|
|
1254
|
+
sessionId: z.ZodString;
|
|
1255
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
1256
|
+
worktree: z.ZodOptional<z.ZodBoolean>;
|
|
607
1257
|
}, "strip", z.ZodTypeAny, {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
model?: string | undefined;
|
|
612
|
-
prompt?: ({
|
|
613
|
-
type: "text";
|
|
614
|
-
text: string;
|
|
615
|
-
} | {
|
|
616
|
-
type: "image";
|
|
617
|
-
mimeType: string;
|
|
618
|
-
data?: string | undefined;
|
|
619
|
-
uri?: string | undefined;
|
|
620
|
-
} | {
|
|
621
|
-
type: "resource_link";
|
|
622
|
-
name: string;
|
|
623
|
-
uri: string;
|
|
624
|
-
kind?: "agent" | "file" | "skill" | undefined;
|
|
625
|
-
})[] | undefined;
|
|
1258
|
+
sessionId: string;
|
|
1259
|
+
worktree?: boolean | undefined;
|
|
1260
|
+
itemId?: string | undefined;
|
|
626
1261
|
}, {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
model?: string | undefined;
|
|
631
|
-
prompt?: ({
|
|
632
|
-
type: "text";
|
|
633
|
-
text: string;
|
|
634
|
-
} | {
|
|
635
|
-
type: "image";
|
|
636
|
-
mimeType: string;
|
|
637
|
-
data?: string | undefined;
|
|
638
|
-
uri?: string | undefined;
|
|
639
|
-
} | {
|
|
640
|
-
type: "resource_link";
|
|
641
|
-
name: string;
|
|
642
|
-
uri: string;
|
|
643
|
-
kind?: "agent" | "file" | "skill" | undefined;
|
|
644
|
-
})[] | undefined;
|
|
1262
|
+
sessionId: string;
|
|
1263
|
+
worktree?: boolean | undefined;
|
|
1264
|
+
itemId?: string | undefined;
|
|
645
1265
|
}>;
|
|
646
1266
|
readonly result: z.ZodObject<{
|
|
647
1267
|
session: z.ZodObject<{
|
|
@@ -690,6 +1310,54 @@ export declare const methods: {
|
|
|
690
1310
|
name: string;
|
|
691
1311
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
692
1312
|
}>, "many">;
|
|
1313
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1314
|
+
id: z.ZodString;
|
|
1315
|
+
header: z.ZodOptional<z.ZodString>;
|
|
1316
|
+
text: z.ZodString;
|
|
1317
|
+
kind: z.ZodEnum<["choice", "choices", "text"]>;
|
|
1318
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1319
|
+
value: z.ZodString;
|
|
1320
|
+
label: z.ZodString;
|
|
1321
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1322
|
+
}, "strip", z.ZodTypeAny, {
|
|
1323
|
+
value: string;
|
|
1324
|
+
label: string;
|
|
1325
|
+
description?: string | undefined;
|
|
1326
|
+
}, {
|
|
1327
|
+
value: string;
|
|
1328
|
+
label: string;
|
|
1329
|
+
description?: string | undefined;
|
|
1330
|
+
}>, "many">>;
|
|
1331
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
1332
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
1333
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1334
|
+
}, "strip", z.ZodTypeAny, {
|
|
1335
|
+
id: string;
|
|
1336
|
+
kind: "text" | "choice" | "choices";
|
|
1337
|
+
text: string;
|
|
1338
|
+
options?: {
|
|
1339
|
+
value: string;
|
|
1340
|
+
label: string;
|
|
1341
|
+
description?: string | undefined;
|
|
1342
|
+
}[] | undefined;
|
|
1343
|
+
other?: boolean | undefined;
|
|
1344
|
+
header?: string | undefined;
|
|
1345
|
+
secret?: boolean | undefined;
|
|
1346
|
+
required?: boolean | undefined;
|
|
1347
|
+
}, {
|
|
1348
|
+
id: string;
|
|
1349
|
+
kind: "text" | "choice" | "choices";
|
|
1350
|
+
text: string;
|
|
1351
|
+
options?: {
|
|
1352
|
+
value: string;
|
|
1353
|
+
label: string;
|
|
1354
|
+
description?: string | undefined;
|
|
1355
|
+
}[] | undefined;
|
|
1356
|
+
other?: boolean | undefined;
|
|
1357
|
+
header?: string | undefined;
|
|
1358
|
+
secret?: boolean | undefined;
|
|
1359
|
+
required?: boolean | undefined;
|
|
1360
|
+
}>, "many">>;
|
|
693
1361
|
}, "strip", z.ZodTypeAny, {
|
|
694
1362
|
options: {
|
|
695
1363
|
optionId: string;
|
|
@@ -700,6 +1368,20 @@ export declare const methods: {
|
|
|
700
1368
|
requestId: string;
|
|
701
1369
|
toolCallId?: string | undefined;
|
|
702
1370
|
detail?: string | undefined;
|
|
1371
|
+
questions?: {
|
|
1372
|
+
id: string;
|
|
1373
|
+
kind: "text" | "choice" | "choices";
|
|
1374
|
+
text: string;
|
|
1375
|
+
options?: {
|
|
1376
|
+
value: string;
|
|
1377
|
+
label: string;
|
|
1378
|
+
description?: string | undefined;
|
|
1379
|
+
}[] | undefined;
|
|
1380
|
+
other?: boolean | undefined;
|
|
1381
|
+
header?: string | undefined;
|
|
1382
|
+
secret?: boolean | undefined;
|
|
1383
|
+
required?: boolean | undefined;
|
|
1384
|
+
}[] | undefined;
|
|
703
1385
|
}, {
|
|
704
1386
|
options: {
|
|
705
1387
|
optionId: string;
|
|
@@ -710,6 +1392,20 @@ export declare const methods: {
|
|
|
710
1392
|
requestId: string;
|
|
711
1393
|
toolCallId?: string | undefined;
|
|
712
1394
|
detail?: string | undefined;
|
|
1395
|
+
questions?: {
|
|
1396
|
+
id: string;
|
|
1397
|
+
kind: "text" | "choice" | "choices";
|
|
1398
|
+
text: string;
|
|
1399
|
+
options?: {
|
|
1400
|
+
value: string;
|
|
1401
|
+
label: string;
|
|
1402
|
+
description?: string | undefined;
|
|
1403
|
+
}[] | undefined;
|
|
1404
|
+
other?: boolean | undefined;
|
|
1405
|
+
header?: string | undefined;
|
|
1406
|
+
secret?: boolean | undefined;
|
|
1407
|
+
required?: boolean | undefined;
|
|
1408
|
+
}[] | undefined;
|
|
713
1409
|
}>>;
|
|
714
1410
|
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
715
1411
|
clientMessageId: z.ZodString;
|
|
@@ -717,13 +1413,23 @@ export declare const methods: {
|
|
|
717
1413
|
images: z.ZodNumber;
|
|
718
1414
|
}, "strip", z.ZodTypeAny, {
|
|
719
1415
|
images: number;
|
|
720
|
-
clientMessageId: string;
|
|
721
1416
|
text: string;
|
|
1417
|
+
clientMessageId: string;
|
|
722
1418
|
}, {
|
|
723
1419
|
images: number;
|
|
724
|
-
clientMessageId: string;
|
|
725
1420
|
text: string;
|
|
1421
|
+
clientMessageId: string;
|
|
726
1422
|
}>, "many">>;
|
|
1423
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
1424
|
+
branch: z.ZodString;
|
|
1425
|
+
source: z.ZodString;
|
|
1426
|
+
}, "strip", z.ZodTypeAny, {
|
|
1427
|
+
branch: string;
|
|
1428
|
+
source: string;
|
|
1429
|
+
}, {
|
|
1430
|
+
branch: string;
|
|
1431
|
+
source: string;
|
|
1432
|
+
}>>;
|
|
727
1433
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
728
1434
|
total: z.ZodNumber;
|
|
729
1435
|
running: z.ZodNumber;
|
|
@@ -764,12 +1470,30 @@ export declare const methods: {
|
|
|
764
1470
|
requestId: string;
|
|
765
1471
|
toolCallId?: string | undefined;
|
|
766
1472
|
detail?: string | undefined;
|
|
1473
|
+
questions?: {
|
|
1474
|
+
id: string;
|
|
1475
|
+
kind: "text" | "choice" | "choices";
|
|
1476
|
+
text: string;
|
|
1477
|
+
options?: {
|
|
1478
|
+
value: string;
|
|
1479
|
+
label: string;
|
|
1480
|
+
description?: string | undefined;
|
|
1481
|
+
}[] | undefined;
|
|
1482
|
+
other?: boolean | undefined;
|
|
1483
|
+
header?: string | undefined;
|
|
1484
|
+
secret?: boolean | undefined;
|
|
1485
|
+
required?: boolean | undefined;
|
|
1486
|
+
}[] | undefined;
|
|
767
1487
|
} | undefined;
|
|
768
1488
|
queue?: {
|
|
769
1489
|
images: number;
|
|
770
|
-
clientMessageId: string;
|
|
771
1490
|
text: string;
|
|
1491
|
+
clientMessageId: string;
|
|
772
1492
|
}[] | undefined;
|
|
1493
|
+
worktree?: {
|
|
1494
|
+
branch: string;
|
|
1495
|
+
source: string;
|
|
1496
|
+
} | undefined;
|
|
773
1497
|
subagents?: {
|
|
774
1498
|
running: number;
|
|
775
1499
|
total: number;
|
|
@@ -804,12 +1528,30 @@ export declare const methods: {
|
|
|
804
1528
|
requestId: string;
|
|
805
1529
|
toolCallId?: string | undefined;
|
|
806
1530
|
detail?: string | undefined;
|
|
1531
|
+
questions?: {
|
|
1532
|
+
id: string;
|
|
1533
|
+
kind: "text" | "choice" | "choices";
|
|
1534
|
+
text: string;
|
|
1535
|
+
options?: {
|
|
1536
|
+
value: string;
|
|
1537
|
+
label: string;
|
|
1538
|
+
description?: string | undefined;
|
|
1539
|
+
}[] | undefined;
|
|
1540
|
+
other?: boolean | undefined;
|
|
1541
|
+
header?: string | undefined;
|
|
1542
|
+
secret?: boolean | undefined;
|
|
1543
|
+
required?: boolean | undefined;
|
|
1544
|
+
}[] | undefined;
|
|
807
1545
|
} | undefined;
|
|
808
1546
|
queue?: {
|
|
809
1547
|
images: number;
|
|
810
|
-
clientMessageId: string;
|
|
811
1548
|
text: string;
|
|
1549
|
+
clientMessageId: string;
|
|
812
1550
|
}[] | undefined;
|
|
1551
|
+
worktree?: {
|
|
1552
|
+
branch: string;
|
|
1553
|
+
source: string;
|
|
1554
|
+
} | undefined;
|
|
813
1555
|
subagents?: {
|
|
814
1556
|
running: number;
|
|
815
1557
|
total: number;
|
|
@@ -846,12 +1588,30 @@ export declare const methods: {
|
|
|
846
1588
|
requestId: string;
|
|
847
1589
|
toolCallId?: string | undefined;
|
|
848
1590
|
detail?: string | undefined;
|
|
1591
|
+
questions?: {
|
|
1592
|
+
id: string;
|
|
1593
|
+
kind: "text" | "choice" | "choices";
|
|
1594
|
+
text: string;
|
|
1595
|
+
options?: {
|
|
1596
|
+
value: string;
|
|
1597
|
+
label: string;
|
|
1598
|
+
description?: string | undefined;
|
|
1599
|
+
}[] | undefined;
|
|
1600
|
+
other?: boolean | undefined;
|
|
1601
|
+
header?: string | undefined;
|
|
1602
|
+
secret?: boolean | undefined;
|
|
1603
|
+
required?: boolean | undefined;
|
|
1604
|
+
}[] | undefined;
|
|
849
1605
|
} | undefined;
|
|
850
1606
|
queue?: {
|
|
851
1607
|
images: number;
|
|
852
|
-
clientMessageId: string;
|
|
853
1608
|
text: string;
|
|
1609
|
+
clientMessageId: string;
|
|
854
1610
|
}[] | undefined;
|
|
1611
|
+
worktree?: {
|
|
1612
|
+
branch: string;
|
|
1613
|
+
source: string;
|
|
1614
|
+
} | undefined;
|
|
855
1615
|
subagents?: {
|
|
856
1616
|
running: number;
|
|
857
1617
|
total: number;
|
|
@@ -888,12 +1648,30 @@ export declare const methods: {
|
|
|
888
1648
|
requestId: string;
|
|
889
1649
|
toolCallId?: string | undefined;
|
|
890
1650
|
detail?: string | undefined;
|
|
1651
|
+
questions?: {
|
|
1652
|
+
id: string;
|
|
1653
|
+
kind: "text" | "choice" | "choices";
|
|
1654
|
+
text: string;
|
|
1655
|
+
options?: {
|
|
1656
|
+
value: string;
|
|
1657
|
+
label: string;
|
|
1658
|
+
description?: string | undefined;
|
|
1659
|
+
}[] | undefined;
|
|
1660
|
+
other?: boolean | undefined;
|
|
1661
|
+
header?: string | undefined;
|
|
1662
|
+
secret?: boolean | undefined;
|
|
1663
|
+
required?: boolean | undefined;
|
|
1664
|
+
}[] | undefined;
|
|
891
1665
|
} | undefined;
|
|
892
1666
|
queue?: {
|
|
893
1667
|
images: number;
|
|
894
|
-
clientMessageId: string;
|
|
895
1668
|
text: string;
|
|
1669
|
+
clientMessageId: string;
|
|
896
1670
|
}[] | undefined;
|
|
1671
|
+
worktree?: {
|
|
1672
|
+
branch: string;
|
|
1673
|
+
source: string;
|
|
1674
|
+
} | undefined;
|
|
897
1675
|
subagents?: {
|
|
898
1676
|
running: number;
|
|
899
1677
|
total: number;
|
|
@@ -973,6 +1751,54 @@ export declare const methods: {
|
|
|
973
1751
|
name: string;
|
|
974
1752
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
975
1753
|
}>, "many">;
|
|
1754
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1755
|
+
id: z.ZodString;
|
|
1756
|
+
header: z.ZodOptional<z.ZodString>;
|
|
1757
|
+
text: z.ZodString;
|
|
1758
|
+
kind: z.ZodEnum<["choice", "choices", "text"]>;
|
|
1759
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1760
|
+
value: z.ZodString;
|
|
1761
|
+
label: z.ZodString;
|
|
1762
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1763
|
+
}, "strip", z.ZodTypeAny, {
|
|
1764
|
+
value: string;
|
|
1765
|
+
label: string;
|
|
1766
|
+
description?: string | undefined;
|
|
1767
|
+
}, {
|
|
1768
|
+
value: string;
|
|
1769
|
+
label: string;
|
|
1770
|
+
description?: string | undefined;
|
|
1771
|
+
}>, "many">>;
|
|
1772
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
1773
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
1774
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1775
|
+
}, "strip", z.ZodTypeAny, {
|
|
1776
|
+
id: string;
|
|
1777
|
+
kind: "text" | "choice" | "choices";
|
|
1778
|
+
text: string;
|
|
1779
|
+
options?: {
|
|
1780
|
+
value: string;
|
|
1781
|
+
label: string;
|
|
1782
|
+
description?: string | undefined;
|
|
1783
|
+
}[] | undefined;
|
|
1784
|
+
other?: boolean | undefined;
|
|
1785
|
+
header?: string | undefined;
|
|
1786
|
+
secret?: boolean | undefined;
|
|
1787
|
+
required?: boolean | undefined;
|
|
1788
|
+
}, {
|
|
1789
|
+
id: string;
|
|
1790
|
+
kind: "text" | "choice" | "choices";
|
|
1791
|
+
text: string;
|
|
1792
|
+
options?: {
|
|
1793
|
+
value: string;
|
|
1794
|
+
label: string;
|
|
1795
|
+
description?: string | undefined;
|
|
1796
|
+
}[] | undefined;
|
|
1797
|
+
other?: boolean | undefined;
|
|
1798
|
+
header?: string | undefined;
|
|
1799
|
+
secret?: boolean | undefined;
|
|
1800
|
+
required?: boolean | undefined;
|
|
1801
|
+
}>, "many">>;
|
|
976
1802
|
}, "strip", z.ZodTypeAny, {
|
|
977
1803
|
options: {
|
|
978
1804
|
optionId: string;
|
|
@@ -983,6 +1809,20 @@ export declare const methods: {
|
|
|
983
1809
|
requestId: string;
|
|
984
1810
|
toolCallId?: string | undefined;
|
|
985
1811
|
detail?: string | undefined;
|
|
1812
|
+
questions?: {
|
|
1813
|
+
id: string;
|
|
1814
|
+
kind: "text" | "choice" | "choices";
|
|
1815
|
+
text: string;
|
|
1816
|
+
options?: {
|
|
1817
|
+
value: string;
|
|
1818
|
+
label: string;
|
|
1819
|
+
description?: string | undefined;
|
|
1820
|
+
}[] | undefined;
|
|
1821
|
+
other?: boolean | undefined;
|
|
1822
|
+
header?: string | undefined;
|
|
1823
|
+
secret?: boolean | undefined;
|
|
1824
|
+
required?: boolean | undefined;
|
|
1825
|
+
}[] | undefined;
|
|
986
1826
|
}, {
|
|
987
1827
|
options: {
|
|
988
1828
|
optionId: string;
|
|
@@ -993,6 +1833,20 @@ export declare const methods: {
|
|
|
993
1833
|
requestId: string;
|
|
994
1834
|
toolCallId?: string | undefined;
|
|
995
1835
|
detail?: string | undefined;
|
|
1836
|
+
questions?: {
|
|
1837
|
+
id: string;
|
|
1838
|
+
kind: "text" | "choice" | "choices";
|
|
1839
|
+
text: string;
|
|
1840
|
+
options?: {
|
|
1841
|
+
value: string;
|
|
1842
|
+
label: string;
|
|
1843
|
+
description?: string | undefined;
|
|
1844
|
+
}[] | undefined;
|
|
1845
|
+
other?: boolean | undefined;
|
|
1846
|
+
header?: string | undefined;
|
|
1847
|
+
secret?: boolean | undefined;
|
|
1848
|
+
required?: boolean | undefined;
|
|
1849
|
+
}[] | undefined;
|
|
996
1850
|
}>>;
|
|
997
1851
|
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
998
1852
|
clientMessageId: z.ZodString;
|
|
@@ -1000,13 +1854,23 @@ export declare const methods: {
|
|
|
1000
1854
|
images: z.ZodNumber;
|
|
1001
1855
|
}, "strip", z.ZodTypeAny, {
|
|
1002
1856
|
images: number;
|
|
1003
|
-
clientMessageId: string;
|
|
1004
1857
|
text: string;
|
|
1858
|
+
clientMessageId: string;
|
|
1005
1859
|
}, {
|
|
1006
1860
|
images: number;
|
|
1007
|
-
clientMessageId: string;
|
|
1008
1861
|
text: string;
|
|
1862
|
+
clientMessageId: string;
|
|
1009
1863
|
}>, "many">>;
|
|
1864
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
1865
|
+
branch: z.ZodString;
|
|
1866
|
+
source: z.ZodString;
|
|
1867
|
+
}, "strip", z.ZodTypeAny, {
|
|
1868
|
+
branch: string;
|
|
1869
|
+
source: string;
|
|
1870
|
+
}, {
|
|
1871
|
+
branch: string;
|
|
1872
|
+
source: string;
|
|
1873
|
+
}>>;
|
|
1010
1874
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
1011
1875
|
total: z.ZodNumber;
|
|
1012
1876
|
running: z.ZodNumber;
|
|
@@ -1047,12 +1911,30 @@ export declare const methods: {
|
|
|
1047
1911
|
requestId: string;
|
|
1048
1912
|
toolCallId?: string | undefined;
|
|
1049
1913
|
detail?: string | undefined;
|
|
1914
|
+
questions?: {
|
|
1915
|
+
id: string;
|
|
1916
|
+
kind: "text" | "choice" | "choices";
|
|
1917
|
+
text: string;
|
|
1918
|
+
options?: {
|
|
1919
|
+
value: string;
|
|
1920
|
+
label: string;
|
|
1921
|
+
description?: string | undefined;
|
|
1922
|
+
}[] | undefined;
|
|
1923
|
+
other?: boolean | undefined;
|
|
1924
|
+
header?: string | undefined;
|
|
1925
|
+
secret?: boolean | undefined;
|
|
1926
|
+
required?: boolean | undefined;
|
|
1927
|
+
}[] | undefined;
|
|
1050
1928
|
} | undefined;
|
|
1051
1929
|
queue?: {
|
|
1052
1930
|
images: number;
|
|
1053
|
-
clientMessageId: string;
|
|
1054
1931
|
text: string;
|
|
1932
|
+
clientMessageId: string;
|
|
1055
1933
|
}[] | undefined;
|
|
1934
|
+
worktree?: {
|
|
1935
|
+
branch: string;
|
|
1936
|
+
source: string;
|
|
1937
|
+
} | undefined;
|
|
1056
1938
|
subagents?: {
|
|
1057
1939
|
running: number;
|
|
1058
1940
|
total: number;
|
|
@@ -1087,12 +1969,30 @@ export declare const methods: {
|
|
|
1087
1969
|
requestId: string;
|
|
1088
1970
|
toolCallId?: string | undefined;
|
|
1089
1971
|
detail?: string | undefined;
|
|
1972
|
+
questions?: {
|
|
1973
|
+
id: string;
|
|
1974
|
+
kind: "text" | "choice" | "choices";
|
|
1975
|
+
text: string;
|
|
1976
|
+
options?: {
|
|
1977
|
+
value: string;
|
|
1978
|
+
label: string;
|
|
1979
|
+
description?: string | undefined;
|
|
1980
|
+
}[] | undefined;
|
|
1981
|
+
other?: boolean | undefined;
|
|
1982
|
+
header?: string | undefined;
|
|
1983
|
+
secret?: boolean | undefined;
|
|
1984
|
+
required?: boolean | undefined;
|
|
1985
|
+
}[] | undefined;
|
|
1090
1986
|
} | undefined;
|
|
1091
1987
|
queue?: {
|
|
1092
1988
|
images: number;
|
|
1093
|
-
clientMessageId: string;
|
|
1094
1989
|
text: string;
|
|
1990
|
+
clientMessageId: string;
|
|
1095
1991
|
}[] | undefined;
|
|
1992
|
+
worktree?: {
|
|
1993
|
+
branch: string;
|
|
1994
|
+
source: string;
|
|
1995
|
+
} | undefined;
|
|
1096
1996
|
subagents?: {
|
|
1097
1997
|
running: number;
|
|
1098
1998
|
total: number;
|
|
@@ -1130,12 +2030,30 @@ export declare const methods: {
|
|
|
1130
2030
|
requestId: string;
|
|
1131
2031
|
toolCallId?: string | undefined;
|
|
1132
2032
|
detail?: string | undefined;
|
|
2033
|
+
questions?: {
|
|
2034
|
+
id: string;
|
|
2035
|
+
kind: "text" | "choice" | "choices";
|
|
2036
|
+
text: string;
|
|
2037
|
+
options?: {
|
|
2038
|
+
value: string;
|
|
2039
|
+
label: string;
|
|
2040
|
+
description?: string | undefined;
|
|
2041
|
+
}[] | undefined;
|
|
2042
|
+
other?: boolean | undefined;
|
|
2043
|
+
header?: string | undefined;
|
|
2044
|
+
secret?: boolean | undefined;
|
|
2045
|
+
required?: boolean | undefined;
|
|
2046
|
+
}[] | undefined;
|
|
1133
2047
|
} | undefined;
|
|
1134
2048
|
queue?: {
|
|
1135
2049
|
images: number;
|
|
1136
|
-
clientMessageId: string;
|
|
1137
2050
|
text: string;
|
|
2051
|
+
clientMessageId: string;
|
|
1138
2052
|
}[] | undefined;
|
|
2053
|
+
worktree?: {
|
|
2054
|
+
branch: string;
|
|
2055
|
+
source: string;
|
|
2056
|
+
} | undefined;
|
|
1139
2057
|
subagents?: {
|
|
1140
2058
|
running: number;
|
|
1141
2059
|
total: number;
|
|
@@ -1173,12 +2091,30 @@ export declare const methods: {
|
|
|
1173
2091
|
requestId: string;
|
|
1174
2092
|
toolCallId?: string | undefined;
|
|
1175
2093
|
detail?: string | undefined;
|
|
2094
|
+
questions?: {
|
|
2095
|
+
id: string;
|
|
2096
|
+
kind: "text" | "choice" | "choices";
|
|
2097
|
+
text: string;
|
|
2098
|
+
options?: {
|
|
2099
|
+
value: string;
|
|
2100
|
+
label: string;
|
|
2101
|
+
description?: string | undefined;
|
|
2102
|
+
}[] | undefined;
|
|
2103
|
+
other?: boolean | undefined;
|
|
2104
|
+
header?: string | undefined;
|
|
2105
|
+
secret?: boolean | undefined;
|
|
2106
|
+
required?: boolean | undefined;
|
|
2107
|
+
}[] | undefined;
|
|
1176
2108
|
} | undefined;
|
|
1177
2109
|
queue?: {
|
|
1178
2110
|
images: number;
|
|
1179
|
-
clientMessageId: string;
|
|
1180
2111
|
text: string;
|
|
2112
|
+
clientMessageId: string;
|
|
1181
2113
|
}[] | undefined;
|
|
2114
|
+
worktree?: {
|
|
2115
|
+
branch: string;
|
|
2116
|
+
source: string;
|
|
2117
|
+
} | undefined;
|
|
1182
2118
|
subagents?: {
|
|
1183
2119
|
running: number;
|
|
1184
2120
|
total: number;
|
|
@@ -1251,7 +2187,6 @@ export declare const methods: {
|
|
|
1251
2187
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
1252
2188
|
}>]>;
|
|
1253
2189
|
}, "strip", z.ZodTypeAny, {
|
|
1254
|
-
sessionUpdate: "user_message_chunk";
|
|
1255
2190
|
content: {
|
|
1256
2191
|
type: "text";
|
|
1257
2192
|
text: string;
|
|
@@ -1266,9 +2201,9 @@ export declare const methods: {
|
|
|
1266
2201
|
uri: string;
|
|
1267
2202
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
1268
2203
|
};
|
|
2204
|
+
sessionUpdate: "user_message_chunk";
|
|
1269
2205
|
messageId?: string | undefined;
|
|
1270
2206
|
}, {
|
|
1271
|
-
sessionUpdate: "user_message_chunk";
|
|
1272
2207
|
content: {
|
|
1273
2208
|
type: "text";
|
|
1274
2209
|
text: string;
|
|
@@ -1283,6 +2218,7 @@ export declare const methods: {
|
|
|
1283
2218
|
uri: string;
|
|
1284
2219
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
1285
2220
|
};
|
|
2221
|
+
sessionUpdate: "user_message_chunk";
|
|
1286
2222
|
messageId?: string | undefined;
|
|
1287
2223
|
}>, z.ZodObject<{
|
|
1288
2224
|
sessionUpdate: z.ZodLiteral<"agent_message_chunk">;
|
|
@@ -1329,8 +2265,6 @@ export declare const methods: {
|
|
|
1329
2265
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
1330
2266
|
}>]>;
|
|
1331
2267
|
}, "strip", z.ZodTypeAny, {
|
|
1332
|
-
sessionUpdate: "agent_message_chunk";
|
|
1333
|
-
messageId: string;
|
|
1334
2268
|
content: {
|
|
1335
2269
|
type: "text";
|
|
1336
2270
|
text: string;
|
|
@@ -1345,10 +2279,10 @@ export declare const methods: {
|
|
|
1345
2279
|
uri: string;
|
|
1346
2280
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
1347
2281
|
};
|
|
1348
|
-
parentToolCallId?: string | undefined;
|
|
1349
|
-
}, {
|
|
1350
2282
|
sessionUpdate: "agent_message_chunk";
|
|
1351
2283
|
messageId: string;
|
|
2284
|
+
parentToolCallId?: string | undefined;
|
|
2285
|
+
}, {
|
|
1352
2286
|
content: {
|
|
1353
2287
|
type: "text";
|
|
1354
2288
|
text: string;
|
|
@@ -1363,6 +2297,8 @@ export declare const methods: {
|
|
|
1363
2297
|
uri: string;
|
|
1364
2298
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
1365
2299
|
};
|
|
2300
|
+
sessionUpdate: "agent_message_chunk";
|
|
2301
|
+
messageId: string;
|
|
1366
2302
|
parentToolCallId?: string | undefined;
|
|
1367
2303
|
}>, z.ZodObject<{
|
|
1368
2304
|
sessionUpdate: z.ZodLiteral<"agent_thought_chunk">;
|
|
@@ -1409,8 +2345,6 @@ export declare const methods: {
|
|
|
1409
2345
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
1410
2346
|
}>]>;
|
|
1411
2347
|
}, "strip", z.ZodTypeAny, {
|
|
1412
|
-
sessionUpdate: "agent_thought_chunk";
|
|
1413
|
-
messageId: string;
|
|
1414
2348
|
content: {
|
|
1415
2349
|
type: "text";
|
|
1416
2350
|
text: string;
|
|
@@ -1425,10 +2359,10 @@ export declare const methods: {
|
|
|
1425
2359
|
uri: string;
|
|
1426
2360
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
1427
2361
|
};
|
|
1428
|
-
parentToolCallId?: string | undefined;
|
|
1429
|
-
}, {
|
|
1430
2362
|
sessionUpdate: "agent_thought_chunk";
|
|
1431
2363
|
messageId: string;
|
|
2364
|
+
parentToolCallId?: string | undefined;
|
|
2365
|
+
}, {
|
|
1432
2366
|
content: {
|
|
1433
2367
|
type: "text";
|
|
1434
2368
|
text: string;
|
|
@@ -1443,6 +2377,8 @@ export declare const methods: {
|
|
|
1443
2377
|
uri: string;
|
|
1444
2378
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
1445
2379
|
};
|
|
2380
|
+
sessionUpdate: "agent_thought_chunk";
|
|
2381
|
+
messageId: string;
|
|
1446
2382
|
parentToolCallId?: string | undefined;
|
|
1447
2383
|
}>, z.ZodObject<{
|
|
1448
2384
|
sessionUpdate: z.ZodLiteral<"tool_call">;
|
|
@@ -1654,6 +2590,18 @@ export declare const methods: {
|
|
|
1654
2590
|
}, {
|
|
1655
2591
|
type: "review";
|
|
1656
2592
|
phase: "started" | "finished";
|
|
2593
|
+
}>, z.ZodObject<{
|
|
2594
|
+
type: z.ZodLiteral<"question">;
|
|
2595
|
+
text: z.ZodString;
|
|
2596
|
+
more: z.ZodOptional<z.ZodNumber>;
|
|
2597
|
+
}, "strip", z.ZodTypeAny, {
|
|
2598
|
+
type: "question";
|
|
2599
|
+
text: string;
|
|
2600
|
+
more?: number | undefined;
|
|
2601
|
+
}, {
|
|
2602
|
+
type: "question";
|
|
2603
|
+
text: string;
|
|
2604
|
+
more?: number | undefined;
|
|
1657
2605
|
}>]>>;
|
|
1658
2606
|
}, "strip", z.ZodTypeAny, {
|
|
1659
2607
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -1686,6 +2634,10 @@ export declare const methods: {
|
|
|
1686
2634
|
} | {
|
|
1687
2635
|
type: "review";
|
|
1688
2636
|
phase: "started" | "finished";
|
|
2637
|
+
} | {
|
|
2638
|
+
type: "question";
|
|
2639
|
+
text: string;
|
|
2640
|
+
more?: number | undefined;
|
|
1689
2641
|
} | undefined;
|
|
1690
2642
|
content?: ({
|
|
1691
2643
|
type: "content";
|
|
@@ -1755,6 +2707,10 @@ export declare const methods: {
|
|
|
1755
2707
|
} | {
|
|
1756
2708
|
type: "review";
|
|
1757
2709
|
phase: "started" | "finished";
|
|
2710
|
+
} | {
|
|
2711
|
+
type: "question";
|
|
2712
|
+
text: string;
|
|
2713
|
+
more?: number | undefined;
|
|
1758
2714
|
} | undefined;
|
|
1759
2715
|
content?: ({
|
|
1760
2716
|
type: "content";
|
|
@@ -1874,6 +2830,18 @@ export declare const methods: {
|
|
|
1874
2830
|
}, {
|
|
1875
2831
|
type: "review";
|
|
1876
2832
|
phase: "started" | "finished";
|
|
2833
|
+
}>, z.ZodObject<{
|
|
2834
|
+
type: z.ZodLiteral<"question">;
|
|
2835
|
+
text: z.ZodString;
|
|
2836
|
+
more: z.ZodOptional<z.ZodNumber>;
|
|
2837
|
+
}, "strip", z.ZodTypeAny, {
|
|
2838
|
+
type: "question";
|
|
2839
|
+
text: string;
|
|
2840
|
+
more?: number | undefined;
|
|
2841
|
+
}, {
|
|
2842
|
+
type: "question";
|
|
2843
|
+
text: string;
|
|
2844
|
+
more?: number | undefined;
|
|
1877
2845
|
}>]>>;
|
|
1878
2846
|
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1879
2847
|
type: z.ZodLiteral<"content">;
|
|
@@ -2024,6 +2992,10 @@ export declare const methods: {
|
|
|
2024
2992
|
} | {
|
|
2025
2993
|
type: "review";
|
|
2026
2994
|
phase: "started" | "finished";
|
|
2995
|
+
} | {
|
|
2996
|
+
type: "question";
|
|
2997
|
+
text: string;
|
|
2998
|
+
more?: number | undefined;
|
|
2027
2999
|
} | undefined;
|
|
2028
3000
|
content?: ({
|
|
2029
3001
|
type: "content";
|
|
@@ -2089,6 +3061,10 @@ export declare const methods: {
|
|
|
2089
3061
|
} | {
|
|
2090
3062
|
type: "review";
|
|
2091
3063
|
phase: "started" | "finished";
|
|
3064
|
+
} | {
|
|
3065
|
+
type: "question";
|
|
3066
|
+
text: string;
|
|
3067
|
+
more?: number | undefined;
|
|
2092
3068
|
} | undefined;
|
|
2093
3069
|
content?: ({
|
|
2094
3070
|
type: "content";
|
|
@@ -2349,6 +3325,54 @@ export declare const methods: {
|
|
|
2349
3325
|
name: string;
|
|
2350
3326
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
2351
3327
|
}>, "many">;
|
|
3328
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3329
|
+
id: z.ZodString;
|
|
3330
|
+
header: z.ZodOptional<z.ZodString>;
|
|
3331
|
+
text: z.ZodString;
|
|
3332
|
+
kind: z.ZodEnum<["choice", "choices", "text"]>;
|
|
3333
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3334
|
+
value: z.ZodString;
|
|
3335
|
+
label: z.ZodString;
|
|
3336
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3337
|
+
}, "strip", z.ZodTypeAny, {
|
|
3338
|
+
value: string;
|
|
3339
|
+
label: string;
|
|
3340
|
+
description?: string | undefined;
|
|
3341
|
+
}, {
|
|
3342
|
+
value: string;
|
|
3343
|
+
label: string;
|
|
3344
|
+
description?: string | undefined;
|
|
3345
|
+
}>, "many">>;
|
|
3346
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
3347
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
3348
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
3349
|
+
}, "strip", z.ZodTypeAny, {
|
|
3350
|
+
id: string;
|
|
3351
|
+
kind: "text" | "choice" | "choices";
|
|
3352
|
+
text: string;
|
|
3353
|
+
options?: {
|
|
3354
|
+
value: string;
|
|
3355
|
+
label: string;
|
|
3356
|
+
description?: string | undefined;
|
|
3357
|
+
}[] | undefined;
|
|
3358
|
+
other?: boolean | undefined;
|
|
3359
|
+
header?: string | undefined;
|
|
3360
|
+
secret?: boolean | undefined;
|
|
3361
|
+
required?: boolean | undefined;
|
|
3362
|
+
}, {
|
|
3363
|
+
id: string;
|
|
3364
|
+
kind: "text" | "choice" | "choices";
|
|
3365
|
+
text: string;
|
|
3366
|
+
options?: {
|
|
3367
|
+
value: string;
|
|
3368
|
+
label: string;
|
|
3369
|
+
description?: string | undefined;
|
|
3370
|
+
}[] | undefined;
|
|
3371
|
+
other?: boolean | undefined;
|
|
3372
|
+
header?: string | undefined;
|
|
3373
|
+
secret?: boolean | undefined;
|
|
3374
|
+
required?: boolean | undefined;
|
|
3375
|
+
}>, "many">>;
|
|
2352
3376
|
}, "strip", z.ZodTypeAny, {
|
|
2353
3377
|
options: {
|
|
2354
3378
|
optionId: string;
|
|
@@ -2360,6 +3384,20 @@ export declare const methods: {
|
|
|
2360
3384
|
sessionUpdate: "ls_permission";
|
|
2361
3385
|
toolCallId?: string | undefined;
|
|
2362
3386
|
detail?: string | undefined;
|
|
3387
|
+
questions?: {
|
|
3388
|
+
id: string;
|
|
3389
|
+
kind: "text" | "choice" | "choices";
|
|
3390
|
+
text: string;
|
|
3391
|
+
options?: {
|
|
3392
|
+
value: string;
|
|
3393
|
+
label: string;
|
|
3394
|
+
description?: string | undefined;
|
|
3395
|
+
}[] | undefined;
|
|
3396
|
+
other?: boolean | undefined;
|
|
3397
|
+
header?: string | undefined;
|
|
3398
|
+
secret?: boolean | undefined;
|
|
3399
|
+
required?: boolean | undefined;
|
|
3400
|
+
}[] | undefined;
|
|
2363
3401
|
}, {
|
|
2364
3402
|
options: {
|
|
2365
3403
|
optionId: string;
|
|
@@ -2371,18 +3409,55 @@ export declare const methods: {
|
|
|
2371
3409
|
sessionUpdate: "ls_permission";
|
|
2372
3410
|
toolCallId?: string | undefined;
|
|
2373
3411
|
detail?: string | undefined;
|
|
3412
|
+
questions?: {
|
|
3413
|
+
id: string;
|
|
3414
|
+
kind: "text" | "choice" | "choices";
|
|
3415
|
+
text: string;
|
|
3416
|
+
options?: {
|
|
3417
|
+
value: string;
|
|
3418
|
+
label: string;
|
|
3419
|
+
description?: string | undefined;
|
|
3420
|
+
}[] | undefined;
|
|
3421
|
+
other?: boolean | undefined;
|
|
3422
|
+
header?: string | undefined;
|
|
3423
|
+
secret?: boolean | undefined;
|
|
3424
|
+
required?: boolean | undefined;
|
|
3425
|
+
}[] | undefined;
|
|
2374
3426
|
}>, z.ZodObject<{
|
|
2375
3427
|
sessionUpdate: z.ZodLiteral<"ls_permission_resolved">;
|
|
2376
3428
|
requestId: z.ZodString;
|
|
2377
3429
|
optionId: z.ZodOptional<z.ZodString>;
|
|
3430
|
+
answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3431
|
+
id: z.ZodString;
|
|
3432
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
3433
|
+
other: z.ZodOptional<z.ZodString>;
|
|
3434
|
+
}, "strip", z.ZodTypeAny, {
|
|
3435
|
+
values: string[];
|
|
3436
|
+
id: string;
|
|
3437
|
+
other?: string | undefined;
|
|
3438
|
+
}, {
|
|
3439
|
+
values: string[];
|
|
3440
|
+
id: string;
|
|
3441
|
+
other?: string | undefined;
|
|
3442
|
+
}>, "many">>;
|
|
2378
3443
|
}, "strip", z.ZodTypeAny, {
|
|
2379
3444
|
requestId: string;
|
|
2380
3445
|
sessionUpdate: "ls_permission_resolved";
|
|
2381
3446
|
optionId?: string | undefined;
|
|
3447
|
+
answers?: {
|
|
3448
|
+
values: string[];
|
|
3449
|
+
id: string;
|
|
3450
|
+
other?: string | undefined;
|
|
3451
|
+
}[] | undefined;
|
|
2382
3452
|
}, {
|
|
2383
3453
|
requestId: string;
|
|
2384
3454
|
sessionUpdate: "ls_permission_resolved";
|
|
2385
3455
|
optionId?: string | undefined;
|
|
3456
|
+
answers?: {
|
|
3457
|
+
values: string[];
|
|
3458
|
+
id: string;
|
|
3459
|
+
other?: string | undefined;
|
|
3460
|
+
}[] | undefined;
|
|
2386
3461
|
}>, z.ZodObject<{
|
|
2387
3462
|
sessionUpdate: z.ZodLiteral<"ls_driver">;
|
|
2388
3463
|
driver: z.ZodEnum<["desktop", "remote", "none"]>;
|
|
@@ -2421,11 +3496,7 @@ export declare const methods: {
|
|
|
2421
3496
|
hint?: string | undefined;
|
|
2422
3497
|
}>]>;
|
|
2423
3498
|
}, "strip", z.ZodTypeAny, {
|
|
2424
|
-
sessionId: string;
|
|
2425
|
-
seq: number;
|
|
2426
|
-
ts: number;
|
|
2427
3499
|
update: {
|
|
2428
|
-
sessionUpdate: "user_message_chunk";
|
|
2429
3500
|
content: {
|
|
2430
3501
|
type: "text";
|
|
2431
3502
|
text: string;
|
|
@@ -2440,10 +3511,9 @@ export declare const methods: {
|
|
|
2440
3511
|
uri: string;
|
|
2441
3512
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
2442
3513
|
};
|
|
3514
|
+
sessionUpdate: "user_message_chunk";
|
|
2443
3515
|
messageId?: string | undefined;
|
|
2444
3516
|
} | {
|
|
2445
|
-
sessionUpdate: "agent_message_chunk";
|
|
2446
|
-
messageId: string;
|
|
2447
3517
|
content: {
|
|
2448
3518
|
type: "text";
|
|
2449
3519
|
text: string;
|
|
@@ -2458,10 +3528,10 @@ export declare const methods: {
|
|
|
2458
3528
|
uri: string;
|
|
2459
3529
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
2460
3530
|
};
|
|
3531
|
+
sessionUpdate: "agent_message_chunk";
|
|
3532
|
+
messageId: string;
|
|
2461
3533
|
parentToolCallId?: string | undefined;
|
|
2462
3534
|
} | {
|
|
2463
|
-
sessionUpdate: "agent_thought_chunk";
|
|
2464
|
-
messageId: string;
|
|
2465
3535
|
content: {
|
|
2466
3536
|
type: "text";
|
|
2467
3537
|
text: string;
|
|
@@ -2476,6 +3546,8 @@ export declare const methods: {
|
|
|
2476
3546
|
uri: string;
|
|
2477
3547
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
2478
3548
|
};
|
|
3549
|
+
sessionUpdate: "agent_thought_chunk";
|
|
3550
|
+
messageId: string;
|
|
2479
3551
|
parentToolCallId?: string | undefined;
|
|
2480
3552
|
} | {
|
|
2481
3553
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -2508,6 +3580,10 @@ export declare const methods: {
|
|
|
2508
3580
|
} | {
|
|
2509
3581
|
type: "review";
|
|
2510
3582
|
phase: "started" | "finished";
|
|
3583
|
+
} | {
|
|
3584
|
+
type: "question";
|
|
3585
|
+
text: string;
|
|
3586
|
+
more?: number | undefined;
|
|
2511
3587
|
} | undefined;
|
|
2512
3588
|
content?: ({
|
|
2513
3589
|
type: "content";
|
|
@@ -2576,6 +3652,10 @@ export declare const methods: {
|
|
|
2576
3652
|
} | {
|
|
2577
3653
|
type: "review";
|
|
2578
3654
|
phase: "started" | "finished";
|
|
3655
|
+
} | {
|
|
3656
|
+
type: "question";
|
|
3657
|
+
text: string;
|
|
3658
|
+
more?: number | undefined;
|
|
2579
3659
|
} | undefined;
|
|
2580
3660
|
content?: ({
|
|
2581
3661
|
type: "content";
|
|
@@ -2676,10 +3756,29 @@ export declare const methods: {
|
|
|
2676
3756
|
sessionUpdate: "ls_permission";
|
|
2677
3757
|
toolCallId?: string | undefined;
|
|
2678
3758
|
detail?: string | undefined;
|
|
3759
|
+
questions?: {
|
|
3760
|
+
id: string;
|
|
3761
|
+
kind: "text" | "choice" | "choices";
|
|
3762
|
+
text: string;
|
|
3763
|
+
options?: {
|
|
3764
|
+
value: string;
|
|
3765
|
+
label: string;
|
|
3766
|
+
description?: string | undefined;
|
|
3767
|
+
}[] | undefined;
|
|
3768
|
+
other?: boolean | undefined;
|
|
3769
|
+
header?: string | undefined;
|
|
3770
|
+
secret?: boolean | undefined;
|
|
3771
|
+
required?: boolean | undefined;
|
|
3772
|
+
}[] | undefined;
|
|
2679
3773
|
} | {
|
|
2680
3774
|
requestId: string;
|
|
2681
3775
|
sessionUpdate: "ls_permission_resolved";
|
|
2682
3776
|
optionId?: string | undefined;
|
|
3777
|
+
answers?: {
|
|
3778
|
+
values: string[];
|
|
3779
|
+
id: string;
|
|
3780
|
+
other?: string | undefined;
|
|
3781
|
+
}[] | undefined;
|
|
2683
3782
|
} | {
|
|
2684
3783
|
driver: "remote" | "desktop" | "none";
|
|
2685
3784
|
sessionUpdate: "ls_driver";
|
|
@@ -2693,12 +3792,11 @@ export declare const methods: {
|
|
|
2693
3792
|
sessionUpdate: "ls_error";
|
|
2694
3793
|
hint?: string | undefined;
|
|
2695
3794
|
};
|
|
2696
|
-
}, {
|
|
2697
3795
|
sessionId: string;
|
|
2698
3796
|
seq: number;
|
|
2699
3797
|
ts: number;
|
|
3798
|
+
}, {
|
|
2700
3799
|
update: {
|
|
2701
|
-
sessionUpdate: "user_message_chunk";
|
|
2702
3800
|
content: {
|
|
2703
3801
|
type: "text";
|
|
2704
3802
|
text: string;
|
|
@@ -2713,10 +3811,9 @@ export declare const methods: {
|
|
|
2713
3811
|
uri: string;
|
|
2714
3812
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
2715
3813
|
};
|
|
3814
|
+
sessionUpdate: "user_message_chunk";
|
|
2716
3815
|
messageId?: string | undefined;
|
|
2717
3816
|
} | {
|
|
2718
|
-
sessionUpdate: "agent_message_chunk";
|
|
2719
|
-
messageId: string;
|
|
2720
3817
|
content: {
|
|
2721
3818
|
type: "text";
|
|
2722
3819
|
text: string;
|
|
@@ -2731,10 +3828,10 @@ export declare const methods: {
|
|
|
2731
3828
|
uri: string;
|
|
2732
3829
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
2733
3830
|
};
|
|
3831
|
+
sessionUpdate: "agent_message_chunk";
|
|
3832
|
+
messageId: string;
|
|
2734
3833
|
parentToolCallId?: string | undefined;
|
|
2735
3834
|
} | {
|
|
2736
|
-
sessionUpdate: "agent_thought_chunk";
|
|
2737
|
-
messageId: string;
|
|
2738
3835
|
content: {
|
|
2739
3836
|
type: "text";
|
|
2740
3837
|
text: string;
|
|
@@ -2749,6 +3846,8 @@ export declare const methods: {
|
|
|
2749
3846
|
uri: string;
|
|
2750
3847
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
2751
3848
|
};
|
|
3849
|
+
sessionUpdate: "agent_thought_chunk";
|
|
3850
|
+
messageId: string;
|
|
2752
3851
|
parentToolCallId?: string | undefined;
|
|
2753
3852
|
} | {
|
|
2754
3853
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -2781,6 +3880,10 @@ export declare const methods: {
|
|
|
2781
3880
|
} | {
|
|
2782
3881
|
type: "review";
|
|
2783
3882
|
phase: "started" | "finished";
|
|
3883
|
+
} | {
|
|
3884
|
+
type: "question";
|
|
3885
|
+
text: string;
|
|
3886
|
+
more?: number | undefined;
|
|
2784
3887
|
} | undefined;
|
|
2785
3888
|
content?: ({
|
|
2786
3889
|
type: "content";
|
|
@@ -2849,6 +3952,10 @@ export declare const methods: {
|
|
|
2849
3952
|
} | {
|
|
2850
3953
|
type: "review";
|
|
2851
3954
|
phase: "started" | "finished";
|
|
3955
|
+
} | {
|
|
3956
|
+
type: "question";
|
|
3957
|
+
text: string;
|
|
3958
|
+
more?: number | undefined;
|
|
2852
3959
|
} | undefined;
|
|
2853
3960
|
content?: ({
|
|
2854
3961
|
type: "content";
|
|
@@ -2949,10 +4056,29 @@ export declare const methods: {
|
|
|
2949
4056
|
sessionUpdate: "ls_permission";
|
|
2950
4057
|
toolCallId?: string | undefined;
|
|
2951
4058
|
detail?: string | undefined;
|
|
4059
|
+
questions?: {
|
|
4060
|
+
id: string;
|
|
4061
|
+
kind: "text" | "choice" | "choices";
|
|
4062
|
+
text: string;
|
|
4063
|
+
options?: {
|
|
4064
|
+
value: string;
|
|
4065
|
+
label: string;
|
|
4066
|
+
description?: string | undefined;
|
|
4067
|
+
}[] | undefined;
|
|
4068
|
+
other?: boolean | undefined;
|
|
4069
|
+
header?: string | undefined;
|
|
4070
|
+
secret?: boolean | undefined;
|
|
4071
|
+
required?: boolean | undefined;
|
|
4072
|
+
}[] | undefined;
|
|
2952
4073
|
} | {
|
|
2953
4074
|
requestId: string;
|
|
2954
4075
|
sessionUpdate: "ls_permission_resolved";
|
|
2955
4076
|
optionId?: string | undefined;
|
|
4077
|
+
answers?: {
|
|
4078
|
+
values: string[];
|
|
4079
|
+
id: string;
|
|
4080
|
+
other?: string | undefined;
|
|
4081
|
+
}[] | undefined;
|
|
2956
4082
|
} | {
|
|
2957
4083
|
driver: "remote" | "desktop" | "none";
|
|
2958
4084
|
sessionUpdate: "ls_driver";
|
|
@@ -2966,16 +4092,15 @@ export declare const methods: {
|
|
|
2966
4092
|
sessionUpdate: "ls_error";
|
|
2967
4093
|
hint?: string | undefined;
|
|
2968
4094
|
};
|
|
4095
|
+
sessionId: string;
|
|
4096
|
+
seq: number;
|
|
4097
|
+
ts: number;
|
|
2969
4098
|
}>, "many">;
|
|
2970
4099
|
startSeq: z.ZodNumber;
|
|
2971
4100
|
}, "strip", z.ZodTypeAny, {
|
|
2972
4101
|
startSeq: number;
|
|
2973
4102
|
events: {
|
|
2974
|
-
sessionId: string;
|
|
2975
|
-
seq: number;
|
|
2976
|
-
ts: number;
|
|
2977
4103
|
update: {
|
|
2978
|
-
sessionUpdate: "user_message_chunk";
|
|
2979
4104
|
content: {
|
|
2980
4105
|
type: "text";
|
|
2981
4106
|
text: string;
|
|
@@ -2990,10 +4115,9 @@ export declare const methods: {
|
|
|
2990
4115
|
uri: string;
|
|
2991
4116
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
2992
4117
|
};
|
|
4118
|
+
sessionUpdate: "user_message_chunk";
|
|
2993
4119
|
messageId?: string | undefined;
|
|
2994
4120
|
} | {
|
|
2995
|
-
sessionUpdate: "agent_message_chunk";
|
|
2996
|
-
messageId: string;
|
|
2997
4121
|
content: {
|
|
2998
4122
|
type: "text";
|
|
2999
4123
|
text: string;
|
|
@@ -3008,10 +4132,10 @@ export declare const methods: {
|
|
|
3008
4132
|
uri: string;
|
|
3009
4133
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3010
4134
|
};
|
|
4135
|
+
sessionUpdate: "agent_message_chunk";
|
|
4136
|
+
messageId: string;
|
|
3011
4137
|
parentToolCallId?: string | undefined;
|
|
3012
4138
|
} | {
|
|
3013
|
-
sessionUpdate: "agent_thought_chunk";
|
|
3014
|
-
messageId: string;
|
|
3015
4139
|
content: {
|
|
3016
4140
|
type: "text";
|
|
3017
4141
|
text: string;
|
|
@@ -3026,6 +4150,8 @@ export declare const methods: {
|
|
|
3026
4150
|
uri: string;
|
|
3027
4151
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3028
4152
|
};
|
|
4153
|
+
sessionUpdate: "agent_thought_chunk";
|
|
4154
|
+
messageId: string;
|
|
3029
4155
|
parentToolCallId?: string | undefined;
|
|
3030
4156
|
} | {
|
|
3031
4157
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -3058,6 +4184,10 @@ export declare const methods: {
|
|
|
3058
4184
|
} | {
|
|
3059
4185
|
type: "review";
|
|
3060
4186
|
phase: "started" | "finished";
|
|
4187
|
+
} | {
|
|
4188
|
+
type: "question";
|
|
4189
|
+
text: string;
|
|
4190
|
+
more?: number | undefined;
|
|
3061
4191
|
} | undefined;
|
|
3062
4192
|
content?: ({
|
|
3063
4193
|
type: "content";
|
|
@@ -3126,6 +4256,10 @@ export declare const methods: {
|
|
|
3126
4256
|
} | {
|
|
3127
4257
|
type: "review";
|
|
3128
4258
|
phase: "started" | "finished";
|
|
4259
|
+
} | {
|
|
4260
|
+
type: "question";
|
|
4261
|
+
text: string;
|
|
4262
|
+
more?: number | undefined;
|
|
3129
4263
|
} | undefined;
|
|
3130
4264
|
content?: ({
|
|
3131
4265
|
type: "content";
|
|
@@ -3226,10 +4360,29 @@ export declare const methods: {
|
|
|
3226
4360
|
sessionUpdate: "ls_permission";
|
|
3227
4361
|
toolCallId?: string | undefined;
|
|
3228
4362
|
detail?: string | undefined;
|
|
4363
|
+
questions?: {
|
|
4364
|
+
id: string;
|
|
4365
|
+
kind: "text" | "choice" | "choices";
|
|
4366
|
+
text: string;
|
|
4367
|
+
options?: {
|
|
4368
|
+
value: string;
|
|
4369
|
+
label: string;
|
|
4370
|
+
description?: string | undefined;
|
|
4371
|
+
}[] | undefined;
|
|
4372
|
+
other?: boolean | undefined;
|
|
4373
|
+
header?: string | undefined;
|
|
4374
|
+
secret?: boolean | undefined;
|
|
4375
|
+
required?: boolean | undefined;
|
|
4376
|
+
}[] | undefined;
|
|
3229
4377
|
} | {
|
|
3230
4378
|
requestId: string;
|
|
3231
4379
|
sessionUpdate: "ls_permission_resolved";
|
|
3232
4380
|
optionId?: string | undefined;
|
|
4381
|
+
answers?: {
|
|
4382
|
+
values: string[];
|
|
4383
|
+
id: string;
|
|
4384
|
+
other?: string | undefined;
|
|
4385
|
+
}[] | undefined;
|
|
3233
4386
|
} | {
|
|
3234
4387
|
driver: "remote" | "desktop" | "none";
|
|
3235
4388
|
sessionUpdate: "ls_driver";
|
|
@@ -3243,15 +4396,14 @@ export declare const methods: {
|
|
|
3243
4396
|
sessionUpdate: "ls_error";
|
|
3244
4397
|
hint?: string | undefined;
|
|
3245
4398
|
};
|
|
4399
|
+
sessionId: string;
|
|
4400
|
+
seq: number;
|
|
4401
|
+
ts: number;
|
|
3246
4402
|
}[];
|
|
3247
4403
|
}, {
|
|
3248
4404
|
startSeq: number;
|
|
3249
4405
|
events: {
|
|
3250
|
-
sessionId: string;
|
|
3251
|
-
seq: number;
|
|
3252
|
-
ts: number;
|
|
3253
4406
|
update: {
|
|
3254
|
-
sessionUpdate: "user_message_chunk";
|
|
3255
4407
|
content: {
|
|
3256
4408
|
type: "text";
|
|
3257
4409
|
text: string;
|
|
@@ -3266,10 +4418,9 @@ export declare const methods: {
|
|
|
3266
4418
|
uri: string;
|
|
3267
4419
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3268
4420
|
};
|
|
4421
|
+
sessionUpdate: "user_message_chunk";
|
|
3269
4422
|
messageId?: string | undefined;
|
|
3270
4423
|
} | {
|
|
3271
|
-
sessionUpdate: "agent_message_chunk";
|
|
3272
|
-
messageId: string;
|
|
3273
4424
|
content: {
|
|
3274
4425
|
type: "text";
|
|
3275
4426
|
text: string;
|
|
@@ -3284,10 +4435,10 @@ export declare const methods: {
|
|
|
3284
4435
|
uri: string;
|
|
3285
4436
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3286
4437
|
};
|
|
4438
|
+
sessionUpdate: "agent_message_chunk";
|
|
4439
|
+
messageId: string;
|
|
3287
4440
|
parentToolCallId?: string | undefined;
|
|
3288
4441
|
} | {
|
|
3289
|
-
sessionUpdate: "agent_thought_chunk";
|
|
3290
|
-
messageId: string;
|
|
3291
4442
|
content: {
|
|
3292
4443
|
type: "text";
|
|
3293
4444
|
text: string;
|
|
@@ -3302,6 +4453,8 @@ export declare const methods: {
|
|
|
3302
4453
|
uri: string;
|
|
3303
4454
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3304
4455
|
};
|
|
4456
|
+
sessionUpdate: "agent_thought_chunk";
|
|
4457
|
+
messageId: string;
|
|
3305
4458
|
parentToolCallId?: string | undefined;
|
|
3306
4459
|
} | {
|
|
3307
4460
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -3334,6 +4487,10 @@ export declare const methods: {
|
|
|
3334
4487
|
} | {
|
|
3335
4488
|
type: "review";
|
|
3336
4489
|
phase: "started" | "finished";
|
|
4490
|
+
} | {
|
|
4491
|
+
type: "question";
|
|
4492
|
+
text: string;
|
|
4493
|
+
more?: number | undefined;
|
|
3337
4494
|
} | undefined;
|
|
3338
4495
|
content?: ({
|
|
3339
4496
|
type: "content";
|
|
@@ -3402,6 +4559,10 @@ export declare const methods: {
|
|
|
3402
4559
|
} | {
|
|
3403
4560
|
type: "review";
|
|
3404
4561
|
phase: "started" | "finished";
|
|
4562
|
+
} | {
|
|
4563
|
+
type: "question";
|
|
4564
|
+
text: string;
|
|
4565
|
+
more?: number | undefined;
|
|
3405
4566
|
} | undefined;
|
|
3406
4567
|
content?: ({
|
|
3407
4568
|
type: "content";
|
|
@@ -3502,10 +4663,29 @@ export declare const methods: {
|
|
|
3502
4663
|
sessionUpdate: "ls_permission";
|
|
3503
4664
|
toolCallId?: string | undefined;
|
|
3504
4665
|
detail?: string | undefined;
|
|
4666
|
+
questions?: {
|
|
4667
|
+
id: string;
|
|
4668
|
+
kind: "text" | "choice" | "choices";
|
|
4669
|
+
text: string;
|
|
4670
|
+
options?: {
|
|
4671
|
+
value: string;
|
|
4672
|
+
label: string;
|
|
4673
|
+
description?: string | undefined;
|
|
4674
|
+
}[] | undefined;
|
|
4675
|
+
other?: boolean | undefined;
|
|
4676
|
+
header?: string | undefined;
|
|
4677
|
+
secret?: boolean | undefined;
|
|
4678
|
+
required?: boolean | undefined;
|
|
4679
|
+
}[] | undefined;
|
|
3505
4680
|
} | {
|
|
3506
4681
|
requestId: string;
|
|
3507
4682
|
sessionUpdate: "ls_permission_resolved";
|
|
3508
4683
|
optionId?: string | undefined;
|
|
4684
|
+
answers?: {
|
|
4685
|
+
values: string[];
|
|
4686
|
+
id: string;
|
|
4687
|
+
other?: string | undefined;
|
|
4688
|
+
}[] | undefined;
|
|
3509
4689
|
} | {
|
|
3510
4690
|
driver: "remote" | "desktop" | "none";
|
|
3511
4691
|
sessionUpdate: "ls_driver";
|
|
@@ -3519,6 +4699,9 @@ export declare const methods: {
|
|
|
3519
4699
|
sessionUpdate: "ls_error";
|
|
3520
4700
|
hint?: string | undefined;
|
|
3521
4701
|
};
|
|
4702
|
+
sessionId: string;
|
|
4703
|
+
seq: number;
|
|
4704
|
+
ts: number;
|
|
3522
4705
|
}[];
|
|
3523
4706
|
}>;
|
|
3524
4707
|
};
|
|
@@ -3647,7 +4830,6 @@ export declare const methods: {
|
|
|
3647
4830
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3648
4831
|
}>]>;
|
|
3649
4832
|
}, "strip", z.ZodTypeAny, {
|
|
3650
|
-
sessionUpdate: "user_message_chunk";
|
|
3651
4833
|
content: {
|
|
3652
4834
|
type: "text";
|
|
3653
4835
|
text: string;
|
|
@@ -3662,9 +4844,9 @@ export declare const methods: {
|
|
|
3662
4844
|
uri: string;
|
|
3663
4845
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3664
4846
|
};
|
|
4847
|
+
sessionUpdate: "user_message_chunk";
|
|
3665
4848
|
messageId?: string | undefined;
|
|
3666
4849
|
}, {
|
|
3667
|
-
sessionUpdate: "user_message_chunk";
|
|
3668
4850
|
content: {
|
|
3669
4851
|
type: "text";
|
|
3670
4852
|
text: string;
|
|
@@ -3679,6 +4861,7 @@ export declare const methods: {
|
|
|
3679
4861
|
uri: string;
|
|
3680
4862
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3681
4863
|
};
|
|
4864
|
+
sessionUpdate: "user_message_chunk";
|
|
3682
4865
|
messageId?: string | undefined;
|
|
3683
4866
|
}>, z.ZodObject<{
|
|
3684
4867
|
sessionUpdate: z.ZodLiteral<"agent_message_chunk">;
|
|
@@ -3725,8 +4908,6 @@ export declare const methods: {
|
|
|
3725
4908
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3726
4909
|
}>]>;
|
|
3727
4910
|
}, "strip", z.ZodTypeAny, {
|
|
3728
|
-
sessionUpdate: "agent_message_chunk";
|
|
3729
|
-
messageId: string;
|
|
3730
4911
|
content: {
|
|
3731
4912
|
type: "text";
|
|
3732
4913
|
text: string;
|
|
@@ -3741,10 +4922,10 @@ export declare const methods: {
|
|
|
3741
4922
|
uri: string;
|
|
3742
4923
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3743
4924
|
};
|
|
3744
|
-
parentToolCallId?: string | undefined;
|
|
3745
|
-
}, {
|
|
3746
4925
|
sessionUpdate: "agent_message_chunk";
|
|
3747
4926
|
messageId: string;
|
|
4927
|
+
parentToolCallId?: string | undefined;
|
|
4928
|
+
}, {
|
|
3748
4929
|
content: {
|
|
3749
4930
|
type: "text";
|
|
3750
4931
|
text: string;
|
|
@@ -3759,6 +4940,8 @@ export declare const methods: {
|
|
|
3759
4940
|
uri: string;
|
|
3760
4941
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3761
4942
|
};
|
|
4943
|
+
sessionUpdate: "agent_message_chunk";
|
|
4944
|
+
messageId: string;
|
|
3762
4945
|
parentToolCallId?: string | undefined;
|
|
3763
4946
|
}>, z.ZodObject<{
|
|
3764
4947
|
sessionUpdate: z.ZodLiteral<"agent_thought_chunk">;
|
|
@@ -3805,8 +4988,6 @@ export declare const methods: {
|
|
|
3805
4988
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3806
4989
|
}>]>;
|
|
3807
4990
|
}, "strip", z.ZodTypeAny, {
|
|
3808
|
-
sessionUpdate: "agent_thought_chunk";
|
|
3809
|
-
messageId: string;
|
|
3810
4991
|
content: {
|
|
3811
4992
|
type: "text";
|
|
3812
4993
|
text: string;
|
|
@@ -3821,10 +5002,10 @@ export declare const methods: {
|
|
|
3821
5002
|
uri: string;
|
|
3822
5003
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3823
5004
|
};
|
|
3824
|
-
parentToolCallId?: string | undefined;
|
|
3825
|
-
}, {
|
|
3826
5005
|
sessionUpdate: "agent_thought_chunk";
|
|
3827
5006
|
messageId: string;
|
|
5007
|
+
parentToolCallId?: string | undefined;
|
|
5008
|
+
}, {
|
|
3828
5009
|
content: {
|
|
3829
5010
|
type: "text";
|
|
3830
5011
|
text: string;
|
|
@@ -3839,6 +5020,8 @@ export declare const methods: {
|
|
|
3839
5020
|
uri: string;
|
|
3840
5021
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
3841
5022
|
};
|
|
5023
|
+
sessionUpdate: "agent_thought_chunk";
|
|
5024
|
+
messageId: string;
|
|
3842
5025
|
parentToolCallId?: string | undefined;
|
|
3843
5026
|
}>, z.ZodObject<{
|
|
3844
5027
|
sessionUpdate: z.ZodLiteral<"tool_call">;
|
|
@@ -4050,6 +5233,18 @@ export declare const methods: {
|
|
|
4050
5233
|
}, {
|
|
4051
5234
|
type: "review";
|
|
4052
5235
|
phase: "started" | "finished";
|
|
5236
|
+
}>, z.ZodObject<{
|
|
5237
|
+
type: z.ZodLiteral<"question">;
|
|
5238
|
+
text: z.ZodString;
|
|
5239
|
+
more: z.ZodOptional<z.ZodNumber>;
|
|
5240
|
+
}, "strip", z.ZodTypeAny, {
|
|
5241
|
+
type: "question";
|
|
5242
|
+
text: string;
|
|
5243
|
+
more?: number | undefined;
|
|
5244
|
+
}, {
|
|
5245
|
+
type: "question";
|
|
5246
|
+
text: string;
|
|
5247
|
+
more?: number | undefined;
|
|
4053
5248
|
}>]>>;
|
|
4054
5249
|
}, "strip", z.ZodTypeAny, {
|
|
4055
5250
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -4082,6 +5277,10 @@ export declare const methods: {
|
|
|
4082
5277
|
} | {
|
|
4083
5278
|
type: "review";
|
|
4084
5279
|
phase: "started" | "finished";
|
|
5280
|
+
} | {
|
|
5281
|
+
type: "question";
|
|
5282
|
+
text: string;
|
|
5283
|
+
more?: number | undefined;
|
|
4085
5284
|
} | undefined;
|
|
4086
5285
|
content?: ({
|
|
4087
5286
|
type: "content";
|
|
@@ -4151,6 +5350,10 @@ export declare const methods: {
|
|
|
4151
5350
|
} | {
|
|
4152
5351
|
type: "review";
|
|
4153
5352
|
phase: "started" | "finished";
|
|
5353
|
+
} | {
|
|
5354
|
+
type: "question";
|
|
5355
|
+
text: string;
|
|
5356
|
+
more?: number | undefined;
|
|
4154
5357
|
} | undefined;
|
|
4155
5358
|
content?: ({
|
|
4156
5359
|
type: "content";
|
|
@@ -4270,6 +5473,18 @@ export declare const methods: {
|
|
|
4270
5473
|
}, {
|
|
4271
5474
|
type: "review";
|
|
4272
5475
|
phase: "started" | "finished";
|
|
5476
|
+
}>, z.ZodObject<{
|
|
5477
|
+
type: z.ZodLiteral<"question">;
|
|
5478
|
+
text: z.ZodString;
|
|
5479
|
+
more: z.ZodOptional<z.ZodNumber>;
|
|
5480
|
+
}, "strip", z.ZodTypeAny, {
|
|
5481
|
+
type: "question";
|
|
5482
|
+
text: string;
|
|
5483
|
+
more?: number | undefined;
|
|
5484
|
+
}, {
|
|
5485
|
+
type: "question";
|
|
5486
|
+
text: string;
|
|
5487
|
+
more?: number | undefined;
|
|
4273
5488
|
}>]>>;
|
|
4274
5489
|
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4275
5490
|
type: z.ZodLiteral<"content">;
|
|
@@ -4420,6 +5635,10 @@ export declare const methods: {
|
|
|
4420
5635
|
} | {
|
|
4421
5636
|
type: "review";
|
|
4422
5637
|
phase: "started" | "finished";
|
|
5638
|
+
} | {
|
|
5639
|
+
type: "question";
|
|
5640
|
+
text: string;
|
|
5641
|
+
more?: number | undefined;
|
|
4423
5642
|
} | undefined;
|
|
4424
5643
|
content?: ({
|
|
4425
5644
|
type: "content";
|
|
@@ -4485,6 +5704,10 @@ export declare const methods: {
|
|
|
4485
5704
|
} | {
|
|
4486
5705
|
type: "review";
|
|
4487
5706
|
phase: "started" | "finished";
|
|
5707
|
+
} | {
|
|
5708
|
+
type: "question";
|
|
5709
|
+
text: string;
|
|
5710
|
+
more?: number | undefined;
|
|
4488
5711
|
} | undefined;
|
|
4489
5712
|
content?: ({
|
|
4490
5713
|
type: "content";
|
|
@@ -4745,6 +5968,54 @@ export declare const methods: {
|
|
|
4745
5968
|
name: string;
|
|
4746
5969
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
4747
5970
|
}>, "many">;
|
|
5971
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5972
|
+
id: z.ZodString;
|
|
5973
|
+
header: z.ZodOptional<z.ZodString>;
|
|
5974
|
+
text: z.ZodString;
|
|
5975
|
+
kind: z.ZodEnum<["choice", "choices", "text"]>;
|
|
5976
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5977
|
+
value: z.ZodString;
|
|
5978
|
+
label: z.ZodString;
|
|
5979
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5980
|
+
}, "strip", z.ZodTypeAny, {
|
|
5981
|
+
value: string;
|
|
5982
|
+
label: string;
|
|
5983
|
+
description?: string | undefined;
|
|
5984
|
+
}, {
|
|
5985
|
+
value: string;
|
|
5986
|
+
label: string;
|
|
5987
|
+
description?: string | undefined;
|
|
5988
|
+
}>, "many">>;
|
|
5989
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
5990
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
5991
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5992
|
+
}, "strip", z.ZodTypeAny, {
|
|
5993
|
+
id: string;
|
|
5994
|
+
kind: "text" | "choice" | "choices";
|
|
5995
|
+
text: string;
|
|
5996
|
+
options?: {
|
|
5997
|
+
value: string;
|
|
5998
|
+
label: string;
|
|
5999
|
+
description?: string | undefined;
|
|
6000
|
+
}[] | undefined;
|
|
6001
|
+
other?: boolean | undefined;
|
|
6002
|
+
header?: string | undefined;
|
|
6003
|
+
secret?: boolean | undefined;
|
|
6004
|
+
required?: boolean | undefined;
|
|
6005
|
+
}, {
|
|
6006
|
+
id: string;
|
|
6007
|
+
kind: "text" | "choice" | "choices";
|
|
6008
|
+
text: string;
|
|
6009
|
+
options?: {
|
|
6010
|
+
value: string;
|
|
6011
|
+
label: string;
|
|
6012
|
+
description?: string | undefined;
|
|
6013
|
+
}[] | undefined;
|
|
6014
|
+
other?: boolean | undefined;
|
|
6015
|
+
header?: string | undefined;
|
|
6016
|
+
secret?: boolean | undefined;
|
|
6017
|
+
required?: boolean | undefined;
|
|
6018
|
+
}>, "many">>;
|
|
4748
6019
|
}, "strip", z.ZodTypeAny, {
|
|
4749
6020
|
options: {
|
|
4750
6021
|
optionId: string;
|
|
@@ -4756,6 +6027,20 @@ export declare const methods: {
|
|
|
4756
6027
|
sessionUpdate: "ls_permission";
|
|
4757
6028
|
toolCallId?: string | undefined;
|
|
4758
6029
|
detail?: string | undefined;
|
|
6030
|
+
questions?: {
|
|
6031
|
+
id: string;
|
|
6032
|
+
kind: "text" | "choice" | "choices";
|
|
6033
|
+
text: string;
|
|
6034
|
+
options?: {
|
|
6035
|
+
value: string;
|
|
6036
|
+
label: string;
|
|
6037
|
+
description?: string | undefined;
|
|
6038
|
+
}[] | undefined;
|
|
6039
|
+
other?: boolean | undefined;
|
|
6040
|
+
header?: string | undefined;
|
|
6041
|
+
secret?: boolean | undefined;
|
|
6042
|
+
required?: boolean | undefined;
|
|
6043
|
+
}[] | undefined;
|
|
4759
6044
|
}, {
|
|
4760
6045
|
options: {
|
|
4761
6046
|
optionId: string;
|
|
@@ -4767,18 +6052,55 @@ export declare const methods: {
|
|
|
4767
6052
|
sessionUpdate: "ls_permission";
|
|
4768
6053
|
toolCallId?: string | undefined;
|
|
4769
6054
|
detail?: string | undefined;
|
|
6055
|
+
questions?: {
|
|
6056
|
+
id: string;
|
|
6057
|
+
kind: "text" | "choice" | "choices";
|
|
6058
|
+
text: string;
|
|
6059
|
+
options?: {
|
|
6060
|
+
value: string;
|
|
6061
|
+
label: string;
|
|
6062
|
+
description?: string | undefined;
|
|
6063
|
+
}[] | undefined;
|
|
6064
|
+
other?: boolean | undefined;
|
|
6065
|
+
header?: string | undefined;
|
|
6066
|
+
secret?: boolean | undefined;
|
|
6067
|
+
required?: boolean | undefined;
|
|
6068
|
+
}[] | undefined;
|
|
4770
6069
|
}>, z.ZodObject<{
|
|
4771
6070
|
sessionUpdate: z.ZodLiteral<"ls_permission_resolved">;
|
|
4772
6071
|
requestId: z.ZodString;
|
|
4773
6072
|
optionId: z.ZodOptional<z.ZodString>;
|
|
6073
|
+
answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6074
|
+
id: z.ZodString;
|
|
6075
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
6076
|
+
other: z.ZodOptional<z.ZodString>;
|
|
6077
|
+
}, "strip", z.ZodTypeAny, {
|
|
6078
|
+
values: string[];
|
|
6079
|
+
id: string;
|
|
6080
|
+
other?: string | undefined;
|
|
6081
|
+
}, {
|
|
6082
|
+
values: string[];
|
|
6083
|
+
id: string;
|
|
6084
|
+
other?: string | undefined;
|
|
6085
|
+
}>, "many">>;
|
|
4774
6086
|
}, "strip", z.ZodTypeAny, {
|
|
4775
6087
|
requestId: string;
|
|
4776
6088
|
sessionUpdate: "ls_permission_resolved";
|
|
4777
6089
|
optionId?: string | undefined;
|
|
6090
|
+
answers?: {
|
|
6091
|
+
values: string[];
|
|
6092
|
+
id: string;
|
|
6093
|
+
other?: string | undefined;
|
|
6094
|
+
}[] | undefined;
|
|
4778
6095
|
}, {
|
|
4779
6096
|
requestId: string;
|
|
4780
6097
|
sessionUpdate: "ls_permission_resolved";
|
|
4781
6098
|
optionId?: string | undefined;
|
|
6099
|
+
answers?: {
|
|
6100
|
+
values: string[];
|
|
6101
|
+
id: string;
|
|
6102
|
+
other?: string | undefined;
|
|
6103
|
+
}[] | undefined;
|
|
4782
6104
|
}>, z.ZodObject<{
|
|
4783
6105
|
sessionUpdate: z.ZodLiteral<"ls_driver">;
|
|
4784
6106
|
driver: z.ZodEnum<["desktop", "remote", "none"]>;
|
|
@@ -4817,11 +6139,7 @@ export declare const methods: {
|
|
|
4817
6139
|
hint?: string | undefined;
|
|
4818
6140
|
}>]>;
|
|
4819
6141
|
}, "strip", z.ZodTypeAny, {
|
|
4820
|
-
sessionId: string;
|
|
4821
|
-
seq: number;
|
|
4822
|
-
ts: number;
|
|
4823
6142
|
update: {
|
|
4824
|
-
sessionUpdate: "user_message_chunk";
|
|
4825
6143
|
content: {
|
|
4826
6144
|
type: "text";
|
|
4827
6145
|
text: string;
|
|
@@ -4836,10 +6154,9 @@ export declare const methods: {
|
|
|
4836
6154
|
uri: string;
|
|
4837
6155
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
4838
6156
|
};
|
|
6157
|
+
sessionUpdate: "user_message_chunk";
|
|
4839
6158
|
messageId?: string | undefined;
|
|
4840
6159
|
} | {
|
|
4841
|
-
sessionUpdate: "agent_message_chunk";
|
|
4842
|
-
messageId: string;
|
|
4843
6160
|
content: {
|
|
4844
6161
|
type: "text";
|
|
4845
6162
|
text: string;
|
|
@@ -4854,10 +6171,10 @@ export declare const methods: {
|
|
|
4854
6171
|
uri: string;
|
|
4855
6172
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
4856
6173
|
};
|
|
6174
|
+
sessionUpdate: "agent_message_chunk";
|
|
6175
|
+
messageId: string;
|
|
4857
6176
|
parentToolCallId?: string | undefined;
|
|
4858
6177
|
} | {
|
|
4859
|
-
sessionUpdate: "agent_thought_chunk";
|
|
4860
|
-
messageId: string;
|
|
4861
6178
|
content: {
|
|
4862
6179
|
type: "text";
|
|
4863
6180
|
text: string;
|
|
@@ -4872,6 +6189,8 @@ export declare const methods: {
|
|
|
4872
6189
|
uri: string;
|
|
4873
6190
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
4874
6191
|
};
|
|
6192
|
+
sessionUpdate: "agent_thought_chunk";
|
|
6193
|
+
messageId: string;
|
|
4875
6194
|
parentToolCallId?: string | undefined;
|
|
4876
6195
|
} | {
|
|
4877
6196
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -4904,6 +6223,10 @@ export declare const methods: {
|
|
|
4904
6223
|
} | {
|
|
4905
6224
|
type: "review";
|
|
4906
6225
|
phase: "started" | "finished";
|
|
6226
|
+
} | {
|
|
6227
|
+
type: "question";
|
|
6228
|
+
text: string;
|
|
6229
|
+
more?: number | undefined;
|
|
4907
6230
|
} | undefined;
|
|
4908
6231
|
content?: ({
|
|
4909
6232
|
type: "content";
|
|
@@ -4972,6 +6295,10 @@ export declare const methods: {
|
|
|
4972
6295
|
} | {
|
|
4973
6296
|
type: "review";
|
|
4974
6297
|
phase: "started" | "finished";
|
|
6298
|
+
} | {
|
|
6299
|
+
type: "question";
|
|
6300
|
+
text: string;
|
|
6301
|
+
more?: number | undefined;
|
|
4975
6302
|
} | undefined;
|
|
4976
6303
|
content?: ({
|
|
4977
6304
|
type: "content";
|
|
@@ -5072,10 +6399,29 @@ export declare const methods: {
|
|
|
5072
6399
|
sessionUpdate: "ls_permission";
|
|
5073
6400
|
toolCallId?: string | undefined;
|
|
5074
6401
|
detail?: string | undefined;
|
|
6402
|
+
questions?: {
|
|
6403
|
+
id: string;
|
|
6404
|
+
kind: "text" | "choice" | "choices";
|
|
6405
|
+
text: string;
|
|
6406
|
+
options?: {
|
|
6407
|
+
value: string;
|
|
6408
|
+
label: string;
|
|
6409
|
+
description?: string | undefined;
|
|
6410
|
+
}[] | undefined;
|
|
6411
|
+
other?: boolean | undefined;
|
|
6412
|
+
header?: string | undefined;
|
|
6413
|
+
secret?: boolean | undefined;
|
|
6414
|
+
required?: boolean | undefined;
|
|
6415
|
+
}[] | undefined;
|
|
5075
6416
|
} | {
|
|
5076
6417
|
requestId: string;
|
|
5077
6418
|
sessionUpdate: "ls_permission_resolved";
|
|
5078
6419
|
optionId?: string | undefined;
|
|
6420
|
+
answers?: {
|
|
6421
|
+
values: string[];
|
|
6422
|
+
id: string;
|
|
6423
|
+
other?: string | undefined;
|
|
6424
|
+
}[] | undefined;
|
|
5079
6425
|
} | {
|
|
5080
6426
|
driver: "remote" | "desktop" | "none";
|
|
5081
6427
|
sessionUpdate: "ls_driver";
|
|
@@ -5089,12 +6435,11 @@ export declare const methods: {
|
|
|
5089
6435
|
sessionUpdate: "ls_error";
|
|
5090
6436
|
hint?: string | undefined;
|
|
5091
6437
|
};
|
|
5092
|
-
}, {
|
|
5093
6438
|
sessionId: string;
|
|
5094
6439
|
seq: number;
|
|
5095
6440
|
ts: number;
|
|
6441
|
+
}, {
|
|
5096
6442
|
update: {
|
|
5097
|
-
sessionUpdate: "user_message_chunk";
|
|
5098
6443
|
content: {
|
|
5099
6444
|
type: "text";
|
|
5100
6445
|
text: string;
|
|
@@ -5109,10 +6454,9 @@ export declare const methods: {
|
|
|
5109
6454
|
uri: string;
|
|
5110
6455
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
5111
6456
|
};
|
|
6457
|
+
sessionUpdate: "user_message_chunk";
|
|
5112
6458
|
messageId?: string | undefined;
|
|
5113
6459
|
} | {
|
|
5114
|
-
sessionUpdate: "agent_message_chunk";
|
|
5115
|
-
messageId: string;
|
|
5116
6460
|
content: {
|
|
5117
6461
|
type: "text";
|
|
5118
6462
|
text: string;
|
|
@@ -5127,10 +6471,10 @@ export declare const methods: {
|
|
|
5127
6471
|
uri: string;
|
|
5128
6472
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
5129
6473
|
};
|
|
6474
|
+
sessionUpdate: "agent_message_chunk";
|
|
6475
|
+
messageId: string;
|
|
5130
6476
|
parentToolCallId?: string | undefined;
|
|
5131
6477
|
} | {
|
|
5132
|
-
sessionUpdate: "agent_thought_chunk";
|
|
5133
|
-
messageId: string;
|
|
5134
6478
|
content: {
|
|
5135
6479
|
type: "text";
|
|
5136
6480
|
text: string;
|
|
@@ -5145,6 +6489,8 @@ export declare const methods: {
|
|
|
5145
6489
|
uri: string;
|
|
5146
6490
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
5147
6491
|
};
|
|
6492
|
+
sessionUpdate: "agent_thought_chunk";
|
|
6493
|
+
messageId: string;
|
|
5148
6494
|
parentToolCallId?: string | undefined;
|
|
5149
6495
|
} | {
|
|
5150
6496
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -5177,6 +6523,10 @@ export declare const methods: {
|
|
|
5177
6523
|
} | {
|
|
5178
6524
|
type: "review";
|
|
5179
6525
|
phase: "started" | "finished";
|
|
6526
|
+
} | {
|
|
6527
|
+
type: "question";
|
|
6528
|
+
text: string;
|
|
6529
|
+
more?: number | undefined;
|
|
5180
6530
|
} | undefined;
|
|
5181
6531
|
content?: ({
|
|
5182
6532
|
type: "content";
|
|
@@ -5245,6 +6595,10 @@ export declare const methods: {
|
|
|
5245
6595
|
} | {
|
|
5246
6596
|
type: "review";
|
|
5247
6597
|
phase: "started" | "finished";
|
|
6598
|
+
} | {
|
|
6599
|
+
type: "question";
|
|
6600
|
+
text: string;
|
|
6601
|
+
more?: number | undefined;
|
|
5248
6602
|
} | undefined;
|
|
5249
6603
|
content?: ({
|
|
5250
6604
|
type: "content";
|
|
@@ -5345,10 +6699,29 @@ export declare const methods: {
|
|
|
5345
6699
|
sessionUpdate: "ls_permission";
|
|
5346
6700
|
toolCallId?: string | undefined;
|
|
5347
6701
|
detail?: string | undefined;
|
|
6702
|
+
questions?: {
|
|
6703
|
+
id: string;
|
|
6704
|
+
kind: "text" | "choice" | "choices";
|
|
6705
|
+
text: string;
|
|
6706
|
+
options?: {
|
|
6707
|
+
value: string;
|
|
6708
|
+
label: string;
|
|
6709
|
+
description?: string | undefined;
|
|
6710
|
+
}[] | undefined;
|
|
6711
|
+
other?: boolean | undefined;
|
|
6712
|
+
header?: string | undefined;
|
|
6713
|
+
secret?: boolean | undefined;
|
|
6714
|
+
required?: boolean | undefined;
|
|
6715
|
+
}[] | undefined;
|
|
5348
6716
|
} | {
|
|
5349
6717
|
requestId: string;
|
|
5350
6718
|
sessionUpdate: "ls_permission_resolved";
|
|
5351
6719
|
optionId?: string | undefined;
|
|
6720
|
+
answers?: {
|
|
6721
|
+
values: string[];
|
|
6722
|
+
id: string;
|
|
6723
|
+
other?: string | undefined;
|
|
6724
|
+
}[] | undefined;
|
|
5352
6725
|
} | {
|
|
5353
6726
|
driver: "remote" | "desktop" | "none";
|
|
5354
6727
|
sessionUpdate: "ls_driver";
|
|
@@ -5362,14 +6735,13 @@ export declare const methods: {
|
|
|
5362
6735
|
sessionUpdate: "ls_error";
|
|
5363
6736
|
hint?: string | undefined;
|
|
5364
6737
|
};
|
|
5365
|
-
}>, "many">;
|
|
5366
|
-
}, "strip", z.ZodTypeAny, {
|
|
5367
|
-
events: {
|
|
5368
6738
|
sessionId: string;
|
|
5369
6739
|
seq: number;
|
|
5370
6740
|
ts: number;
|
|
6741
|
+
}>, "many">;
|
|
6742
|
+
}, "strip", z.ZodTypeAny, {
|
|
6743
|
+
events: {
|
|
5371
6744
|
update: {
|
|
5372
|
-
sessionUpdate: "user_message_chunk";
|
|
5373
6745
|
content: {
|
|
5374
6746
|
type: "text";
|
|
5375
6747
|
text: string;
|
|
@@ -5384,10 +6756,9 @@ export declare const methods: {
|
|
|
5384
6756
|
uri: string;
|
|
5385
6757
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
5386
6758
|
};
|
|
6759
|
+
sessionUpdate: "user_message_chunk";
|
|
5387
6760
|
messageId?: string | undefined;
|
|
5388
6761
|
} | {
|
|
5389
|
-
sessionUpdate: "agent_message_chunk";
|
|
5390
|
-
messageId: string;
|
|
5391
6762
|
content: {
|
|
5392
6763
|
type: "text";
|
|
5393
6764
|
text: string;
|
|
@@ -5402,10 +6773,10 @@ export declare const methods: {
|
|
|
5402
6773
|
uri: string;
|
|
5403
6774
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
5404
6775
|
};
|
|
6776
|
+
sessionUpdate: "agent_message_chunk";
|
|
6777
|
+
messageId: string;
|
|
5405
6778
|
parentToolCallId?: string | undefined;
|
|
5406
6779
|
} | {
|
|
5407
|
-
sessionUpdate: "agent_thought_chunk";
|
|
5408
|
-
messageId: string;
|
|
5409
6780
|
content: {
|
|
5410
6781
|
type: "text";
|
|
5411
6782
|
text: string;
|
|
@@ -5420,6 +6791,8 @@ export declare const methods: {
|
|
|
5420
6791
|
uri: string;
|
|
5421
6792
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
5422
6793
|
};
|
|
6794
|
+
sessionUpdate: "agent_thought_chunk";
|
|
6795
|
+
messageId: string;
|
|
5423
6796
|
parentToolCallId?: string | undefined;
|
|
5424
6797
|
} | {
|
|
5425
6798
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -5452,6 +6825,10 @@ export declare const methods: {
|
|
|
5452
6825
|
} | {
|
|
5453
6826
|
type: "review";
|
|
5454
6827
|
phase: "started" | "finished";
|
|
6828
|
+
} | {
|
|
6829
|
+
type: "question";
|
|
6830
|
+
text: string;
|
|
6831
|
+
more?: number | undefined;
|
|
5455
6832
|
} | undefined;
|
|
5456
6833
|
content?: ({
|
|
5457
6834
|
type: "content";
|
|
@@ -5520,6 +6897,10 @@ export declare const methods: {
|
|
|
5520
6897
|
} | {
|
|
5521
6898
|
type: "review";
|
|
5522
6899
|
phase: "started" | "finished";
|
|
6900
|
+
} | {
|
|
6901
|
+
type: "question";
|
|
6902
|
+
text: string;
|
|
6903
|
+
more?: number | undefined;
|
|
5523
6904
|
} | undefined;
|
|
5524
6905
|
content?: ({
|
|
5525
6906
|
type: "content";
|
|
@@ -5620,10 +7001,29 @@ export declare const methods: {
|
|
|
5620
7001
|
sessionUpdate: "ls_permission";
|
|
5621
7002
|
toolCallId?: string | undefined;
|
|
5622
7003
|
detail?: string | undefined;
|
|
7004
|
+
questions?: {
|
|
7005
|
+
id: string;
|
|
7006
|
+
kind: "text" | "choice" | "choices";
|
|
7007
|
+
text: string;
|
|
7008
|
+
options?: {
|
|
7009
|
+
value: string;
|
|
7010
|
+
label: string;
|
|
7011
|
+
description?: string | undefined;
|
|
7012
|
+
}[] | undefined;
|
|
7013
|
+
other?: boolean | undefined;
|
|
7014
|
+
header?: string | undefined;
|
|
7015
|
+
secret?: boolean | undefined;
|
|
7016
|
+
required?: boolean | undefined;
|
|
7017
|
+
}[] | undefined;
|
|
5623
7018
|
} | {
|
|
5624
7019
|
requestId: string;
|
|
5625
7020
|
sessionUpdate: "ls_permission_resolved";
|
|
5626
7021
|
optionId?: string | undefined;
|
|
7022
|
+
answers?: {
|
|
7023
|
+
values: string[];
|
|
7024
|
+
id: string;
|
|
7025
|
+
other?: string | undefined;
|
|
7026
|
+
}[] | undefined;
|
|
5627
7027
|
} | {
|
|
5628
7028
|
driver: "remote" | "desktop" | "none";
|
|
5629
7029
|
sessionUpdate: "ls_driver";
|
|
@@ -5637,14 +7037,13 @@ export declare const methods: {
|
|
|
5637
7037
|
sessionUpdate: "ls_error";
|
|
5638
7038
|
hint?: string | undefined;
|
|
5639
7039
|
};
|
|
5640
|
-
}[];
|
|
5641
|
-
}, {
|
|
5642
|
-
events: {
|
|
5643
7040
|
sessionId: string;
|
|
5644
7041
|
seq: number;
|
|
5645
7042
|
ts: number;
|
|
7043
|
+
}[];
|
|
7044
|
+
}, {
|
|
7045
|
+
events: {
|
|
5646
7046
|
update: {
|
|
5647
|
-
sessionUpdate: "user_message_chunk";
|
|
5648
7047
|
content: {
|
|
5649
7048
|
type: "text";
|
|
5650
7049
|
text: string;
|
|
@@ -5659,10 +7058,9 @@ export declare const methods: {
|
|
|
5659
7058
|
uri: string;
|
|
5660
7059
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
5661
7060
|
};
|
|
7061
|
+
sessionUpdate: "user_message_chunk";
|
|
5662
7062
|
messageId?: string | undefined;
|
|
5663
7063
|
} | {
|
|
5664
|
-
sessionUpdate: "agent_message_chunk";
|
|
5665
|
-
messageId: string;
|
|
5666
7064
|
content: {
|
|
5667
7065
|
type: "text";
|
|
5668
7066
|
text: string;
|
|
@@ -5677,10 +7075,10 @@ export declare const methods: {
|
|
|
5677
7075
|
uri: string;
|
|
5678
7076
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
5679
7077
|
};
|
|
7078
|
+
sessionUpdate: "agent_message_chunk";
|
|
7079
|
+
messageId: string;
|
|
5680
7080
|
parentToolCallId?: string | undefined;
|
|
5681
7081
|
} | {
|
|
5682
|
-
sessionUpdate: "agent_thought_chunk";
|
|
5683
|
-
messageId: string;
|
|
5684
7082
|
content: {
|
|
5685
7083
|
type: "text";
|
|
5686
7084
|
text: string;
|
|
@@ -5695,6 +7093,8 @@ export declare const methods: {
|
|
|
5695
7093
|
uri: string;
|
|
5696
7094
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
5697
7095
|
};
|
|
7096
|
+
sessionUpdate: "agent_thought_chunk";
|
|
7097
|
+
messageId: string;
|
|
5698
7098
|
parentToolCallId?: string | undefined;
|
|
5699
7099
|
} | {
|
|
5700
7100
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -5727,6 +7127,10 @@ export declare const methods: {
|
|
|
5727
7127
|
} | {
|
|
5728
7128
|
type: "review";
|
|
5729
7129
|
phase: "started" | "finished";
|
|
7130
|
+
} | {
|
|
7131
|
+
type: "question";
|
|
7132
|
+
text: string;
|
|
7133
|
+
more?: number | undefined;
|
|
5730
7134
|
} | undefined;
|
|
5731
7135
|
content?: ({
|
|
5732
7136
|
type: "content";
|
|
@@ -5795,6 +7199,10 @@ export declare const methods: {
|
|
|
5795
7199
|
} | {
|
|
5796
7200
|
type: "review";
|
|
5797
7201
|
phase: "started" | "finished";
|
|
7202
|
+
} | {
|
|
7203
|
+
type: "question";
|
|
7204
|
+
text: string;
|
|
7205
|
+
more?: number | undefined;
|
|
5798
7206
|
} | undefined;
|
|
5799
7207
|
content?: ({
|
|
5800
7208
|
type: "content";
|
|
@@ -5895,10 +7303,29 @@ export declare const methods: {
|
|
|
5895
7303
|
sessionUpdate: "ls_permission";
|
|
5896
7304
|
toolCallId?: string | undefined;
|
|
5897
7305
|
detail?: string | undefined;
|
|
7306
|
+
questions?: {
|
|
7307
|
+
id: string;
|
|
7308
|
+
kind: "text" | "choice" | "choices";
|
|
7309
|
+
text: string;
|
|
7310
|
+
options?: {
|
|
7311
|
+
value: string;
|
|
7312
|
+
label: string;
|
|
7313
|
+
description?: string | undefined;
|
|
7314
|
+
}[] | undefined;
|
|
7315
|
+
other?: boolean | undefined;
|
|
7316
|
+
header?: string | undefined;
|
|
7317
|
+
secret?: boolean | undefined;
|
|
7318
|
+
required?: boolean | undefined;
|
|
7319
|
+
}[] | undefined;
|
|
5898
7320
|
} | {
|
|
5899
7321
|
requestId: string;
|
|
5900
7322
|
sessionUpdate: "ls_permission_resolved";
|
|
5901
7323
|
optionId?: string | undefined;
|
|
7324
|
+
answers?: {
|
|
7325
|
+
values: string[];
|
|
7326
|
+
id: string;
|
|
7327
|
+
other?: string | undefined;
|
|
7328
|
+
}[] | undefined;
|
|
5902
7329
|
} | {
|
|
5903
7330
|
driver: "remote" | "desktop" | "none";
|
|
5904
7331
|
sessionUpdate: "ls_driver";
|
|
@@ -5912,6 +7339,9 @@ export declare const methods: {
|
|
|
5912
7339
|
sessionUpdate: "ls_error";
|
|
5913
7340
|
hint?: string | undefined;
|
|
5914
7341
|
};
|
|
7342
|
+
sessionId: string;
|
|
7343
|
+
seq: number;
|
|
7344
|
+
ts: number;
|
|
5915
7345
|
}[];
|
|
5916
7346
|
}>;
|
|
5917
7347
|
};
|
|
@@ -5931,11 +7361,11 @@ export declare const methods: {
|
|
|
5931
7361
|
mimeType: z.ZodString;
|
|
5932
7362
|
data: z.ZodString;
|
|
5933
7363
|
}, "strip", z.ZodTypeAny, {
|
|
5934
|
-
data: string;
|
|
5935
7364
|
mimeType: string;
|
|
5936
|
-
}, {
|
|
5937
7365
|
data: string;
|
|
7366
|
+
}, {
|
|
5938
7367
|
mimeType: string;
|
|
7368
|
+
data: string;
|
|
5939
7369
|
}>;
|
|
5940
7370
|
};
|
|
5941
7371
|
readonly "sessions.unsubscribe": {
|
|
@@ -6002,7 +7432,6 @@ export declare const methods: {
|
|
|
6002
7432
|
whenBusy: z.ZodOptional<z.ZodEnum<["queue"]>>;
|
|
6003
7433
|
}, "strip", z.ZodTypeAny, {
|
|
6004
7434
|
clientMessageId: string;
|
|
6005
|
-
sessionId: string;
|
|
6006
7435
|
content: ({
|
|
6007
7436
|
type: "text";
|
|
6008
7437
|
text: string;
|
|
@@ -6017,10 +7446,10 @@ export declare const methods: {
|
|
|
6017
7446
|
uri: string;
|
|
6018
7447
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
6019
7448
|
})[];
|
|
7449
|
+
sessionId: string;
|
|
6020
7450
|
whenBusy?: "queue" | undefined;
|
|
6021
7451
|
}, {
|
|
6022
7452
|
clientMessageId: string;
|
|
6023
|
-
sessionId: string;
|
|
6024
7453
|
content: ({
|
|
6025
7454
|
type: "text";
|
|
6026
7455
|
text: string;
|
|
@@ -6035,6 +7464,7 @@ export declare const methods: {
|
|
|
6035
7464
|
uri: string;
|
|
6036
7465
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
6037
7466
|
})[];
|
|
7467
|
+
sessionId: string;
|
|
6038
7468
|
whenBusy?: "queue" | undefined;
|
|
6039
7469
|
}>;
|
|
6040
7470
|
/** queued: held until the running turn ends (see `whenBusy`, `sessions.sendQueued`). */
|
|
@@ -6072,6 +7502,47 @@ export declare const methods: {
|
|
|
6072
7502
|
}>;
|
|
6073
7503
|
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
6074
7504
|
};
|
|
7505
|
+
/**
|
|
7506
|
+
* Answers the questions of a pending request (an `ls_permission` with
|
|
7507
|
+
* `questions`). Skipping or stopping instead is `sessions.permission` with
|
|
7508
|
+
* one of the request's options.
|
|
7509
|
+
*/
|
|
7510
|
+
readonly "sessions.answer": {
|
|
7511
|
+
readonly params: z.ZodObject<{
|
|
7512
|
+
sessionId: z.ZodString;
|
|
7513
|
+
requestId: z.ZodString;
|
|
7514
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
7515
|
+
id: z.ZodString;
|
|
7516
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
7517
|
+
other: z.ZodOptional<z.ZodString>;
|
|
7518
|
+
}, "strip", z.ZodTypeAny, {
|
|
7519
|
+
values: string[];
|
|
7520
|
+
id: string;
|
|
7521
|
+
other?: string | undefined;
|
|
7522
|
+
}, {
|
|
7523
|
+
values: string[];
|
|
7524
|
+
id: string;
|
|
7525
|
+
other?: string | undefined;
|
|
7526
|
+
}>, "many">;
|
|
7527
|
+
}, "strip", z.ZodTypeAny, {
|
|
7528
|
+
requestId: string;
|
|
7529
|
+
answers: {
|
|
7530
|
+
values: string[];
|
|
7531
|
+
id: string;
|
|
7532
|
+
other?: string | undefined;
|
|
7533
|
+
}[];
|
|
7534
|
+
sessionId: string;
|
|
7535
|
+
}, {
|
|
7536
|
+
requestId: string;
|
|
7537
|
+
answers: {
|
|
7538
|
+
values: string[];
|
|
7539
|
+
id: string;
|
|
7540
|
+
other?: string | undefined;
|
|
7541
|
+
}[];
|
|
7542
|
+
sessionId: string;
|
|
7543
|
+
}>;
|
|
7544
|
+
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
7545
|
+
};
|
|
6075
7546
|
readonly "sessions.setConfig": {
|
|
6076
7547
|
readonly params: z.ZodObject<{
|
|
6077
7548
|
sessionId: z.ZodString;
|
|
@@ -6199,6 +7670,54 @@ export declare const methods: {
|
|
|
6199
7670
|
name: string;
|
|
6200
7671
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
6201
7672
|
}>, "many">;
|
|
7673
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7674
|
+
id: z.ZodString;
|
|
7675
|
+
header: z.ZodOptional<z.ZodString>;
|
|
7676
|
+
text: z.ZodString;
|
|
7677
|
+
kind: z.ZodEnum<["choice", "choices", "text"]>;
|
|
7678
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7679
|
+
value: z.ZodString;
|
|
7680
|
+
label: z.ZodString;
|
|
7681
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7682
|
+
}, "strip", z.ZodTypeAny, {
|
|
7683
|
+
value: string;
|
|
7684
|
+
label: string;
|
|
7685
|
+
description?: string | undefined;
|
|
7686
|
+
}, {
|
|
7687
|
+
value: string;
|
|
7688
|
+
label: string;
|
|
7689
|
+
description?: string | undefined;
|
|
7690
|
+
}>, "many">>;
|
|
7691
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
7692
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
7693
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
7694
|
+
}, "strip", z.ZodTypeAny, {
|
|
7695
|
+
id: string;
|
|
7696
|
+
kind: "text" | "choice" | "choices";
|
|
7697
|
+
text: string;
|
|
7698
|
+
options?: {
|
|
7699
|
+
value: string;
|
|
7700
|
+
label: string;
|
|
7701
|
+
description?: string | undefined;
|
|
7702
|
+
}[] | undefined;
|
|
7703
|
+
other?: boolean | undefined;
|
|
7704
|
+
header?: string | undefined;
|
|
7705
|
+
secret?: boolean | undefined;
|
|
7706
|
+
required?: boolean | undefined;
|
|
7707
|
+
}, {
|
|
7708
|
+
id: string;
|
|
7709
|
+
kind: "text" | "choice" | "choices";
|
|
7710
|
+
text: string;
|
|
7711
|
+
options?: {
|
|
7712
|
+
value: string;
|
|
7713
|
+
label: string;
|
|
7714
|
+
description?: string | undefined;
|
|
7715
|
+
}[] | undefined;
|
|
7716
|
+
other?: boolean | undefined;
|
|
7717
|
+
header?: string | undefined;
|
|
7718
|
+
secret?: boolean | undefined;
|
|
7719
|
+
required?: boolean | undefined;
|
|
7720
|
+
}>, "many">>;
|
|
6202
7721
|
}, "strip", z.ZodTypeAny, {
|
|
6203
7722
|
options: {
|
|
6204
7723
|
optionId: string;
|
|
@@ -6209,6 +7728,20 @@ export declare const methods: {
|
|
|
6209
7728
|
requestId: string;
|
|
6210
7729
|
toolCallId?: string | undefined;
|
|
6211
7730
|
detail?: string | undefined;
|
|
7731
|
+
questions?: {
|
|
7732
|
+
id: string;
|
|
7733
|
+
kind: "text" | "choice" | "choices";
|
|
7734
|
+
text: string;
|
|
7735
|
+
options?: {
|
|
7736
|
+
value: string;
|
|
7737
|
+
label: string;
|
|
7738
|
+
description?: string | undefined;
|
|
7739
|
+
}[] | undefined;
|
|
7740
|
+
other?: boolean | undefined;
|
|
7741
|
+
header?: string | undefined;
|
|
7742
|
+
secret?: boolean | undefined;
|
|
7743
|
+
required?: boolean | undefined;
|
|
7744
|
+
}[] | undefined;
|
|
6212
7745
|
}, {
|
|
6213
7746
|
options: {
|
|
6214
7747
|
optionId: string;
|
|
@@ -6219,6 +7752,20 @@ export declare const methods: {
|
|
|
6219
7752
|
requestId: string;
|
|
6220
7753
|
toolCallId?: string | undefined;
|
|
6221
7754
|
detail?: string | undefined;
|
|
7755
|
+
questions?: {
|
|
7756
|
+
id: string;
|
|
7757
|
+
kind: "text" | "choice" | "choices";
|
|
7758
|
+
text: string;
|
|
7759
|
+
options?: {
|
|
7760
|
+
value: string;
|
|
7761
|
+
label: string;
|
|
7762
|
+
description?: string | undefined;
|
|
7763
|
+
}[] | undefined;
|
|
7764
|
+
other?: boolean | undefined;
|
|
7765
|
+
header?: string | undefined;
|
|
7766
|
+
secret?: boolean | undefined;
|
|
7767
|
+
required?: boolean | undefined;
|
|
7768
|
+
}[] | undefined;
|
|
6222
7769
|
}>>;
|
|
6223
7770
|
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6224
7771
|
clientMessageId: z.ZodString;
|
|
@@ -6226,13 +7773,23 @@ export declare const methods: {
|
|
|
6226
7773
|
images: z.ZodNumber;
|
|
6227
7774
|
}, "strip", z.ZodTypeAny, {
|
|
6228
7775
|
images: number;
|
|
6229
|
-
clientMessageId: string;
|
|
6230
7776
|
text: string;
|
|
7777
|
+
clientMessageId: string;
|
|
6231
7778
|
}, {
|
|
6232
7779
|
images: number;
|
|
6233
|
-
clientMessageId: string;
|
|
6234
7780
|
text: string;
|
|
7781
|
+
clientMessageId: string;
|
|
6235
7782
|
}>, "many">>;
|
|
7783
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
7784
|
+
branch: z.ZodString;
|
|
7785
|
+
source: z.ZodString;
|
|
7786
|
+
}, "strip", z.ZodTypeAny, {
|
|
7787
|
+
branch: string;
|
|
7788
|
+
source: string;
|
|
7789
|
+
}, {
|
|
7790
|
+
branch: string;
|
|
7791
|
+
source: string;
|
|
7792
|
+
}>>;
|
|
6236
7793
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
6237
7794
|
total: z.ZodNumber;
|
|
6238
7795
|
running: z.ZodNumber;
|
|
@@ -6273,12 +7830,30 @@ export declare const methods: {
|
|
|
6273
7830
|
requestId: string;
|
|
6274
7831
|
toolCallId?: string | undefined;
|
|
6275
7832
|
detail?: string | undefined;
|
|
7833
|
+
questions?: {
|
|
7834
|
+
id: string;
|
|
7835
|
+
kind: "text" | "choice" | "choices";
|
|
7836
|
+
text: string;
|
|
7837
|
+
options?: {
|
|
7838
|
+
value: string;
|
|
7839
|
+
label: string;
|
|
7840
|
+
description?: string | undefined;
|
|
7841
|
+
}[] | undefined;
|
|
7842
|
+
other?: boolean | undefined;
|
|
7843
|
+
header?: string | undefined;
|
|
7844
|
+
secret?: boolean | undefined;
|
|
7845
|
+
required?: boolean | undefined;
|
|
7846
|
+
}[] | undefined;
|
|
6276
7847
|
} | undefined;
|
|
6277
7848
|
queue?: {
|
|
6278
7849
|
images: number;
|
|
6279
|
-
clientMessageId: string;
|
|
6280
7850
|
text: string;
|
|
7851
|
+
clientMessageId: string;
|
|
6281
7852
|
}[] | undefined;
|
|
7853
|
+
worktree?: {
|
|
7854
|
+
branch: string;
|
|
7855
|
+
source: string;
|
|
7856
|
+
} | undefined;
|
|
6282
7857
|
subagents?: {
|
|
6283
7858
|
running: number;
|
|
6284
7859
|
total: number;
|
|
@@ -6313,12 +7888,30 @@ export declare const methods: {
|
|
|
6313
7888
|
requestId: string;
|
|
6314
7889
|
toolCallId?: string | undefined;
|
|
6315
7890
|
detail?: string | undefined;
|
|
7891
|
+
questions?: {
|
|
7892
|
+
id: string;
|
|
7893
|
+
kind: "text" | "choice" | "choices";
|
|
7894
|
+
text: string;
|
|
7895
|
+
options?: {
|
|
7896
|
+
value: string;
|
|
7897
|
+
label: string;
|
|
7898
|
+
description?: string | undefined;
|
|
7899
|
+
}[] | undefined;
|
|
7900
|
+
other?: boolean | undefined;
|
|
7901
|
+
header?: string | undefined;
|
|
7902
|
+
secret?: boolean | undefined;
|
|
7903
|
+
required?: boolean | undefined;
|
|
7904
|
+
}[] | undefined;
|
|
6316
7905
|
} | undefined;
|
|
6317
7906
|
queue?: {
|
|
6318
7907
|
images: number;
|
|
6319
|
-
clientMessageId: string;
|
|
6320
7908
|
text: string;
|
|
7909
|
+
clientMessageId: string;
|
|
6321
7910
|
}[] | undefined;
|
|
7911
|
+
worktree?: {
|
|
7912
|
+
branch: string;
|
|
7913
|
+
source: string;
|
|
7914
|
+
} | undefined;
|
|
6322
7915
|
subagents?: {
|
|
6323
7916
|
running: number;
|
|
6324
7917
|
total: number;
|
|
@@ -6355,12 +7948,30 @@ export declare const methods: {
|
|
|
6355
7948
|
requestId: string;
|
|
6356
7949
|
toolCallId?: string | undefined;
|
|
6357
7950
|
detail?: string | undefined;
|
|
7951
|
+
questions?: {
|
|
7952
|
+
id: string;
|
|
7953
|
+
kind: "text" | "choice" | "choices";
|
|
7954
|
+
text: string;
|
|
7955
|
+
options?: {
|
|
7956
|
+
value: string;
|
|
7957
|
+
label: string;
|
|
7958
|
+
description?: string | undefined;
|
|
7959
|
+
}[] | undefined;
|
|
7960
|
+
other?: boolean | undefined;
|
|
7961
|
+
header?: string | undefined;
|
|
7962
|
+
secret?: boolean | undefined;
|
|
7963
|
+
required?: boolean | undefined;
|
|
7964
|
+
}[] | undefined;
|
|
6358
7965
|
} | undefined;
|
|
6359
7966
|
queue?: {
|
|
6360
7967
|
images: number;
|
|
6361
|
-
clientMessageId: string;
|
|
6362
7968
|
text: string;
|
|
7969
|
+
clientMessageId: string;
|
|
6363
7970
|
}[] | undefined;
|
|
7971
|
+
worktree?: {
|
|
7972
|
+
branch: string;
|
|
7973
|
+
source: string;
|
|
7974
|
+
} | undefined;
|
|
6364
7975
|
subagents?: {
|
|
6365
7976
|
running: number;
|
|
6366
7977
|
total: number;
|
|
@@ -6397,12 +8008,30 @@ export declare const methods: {
|
|
|
6397
8008
|
requestId: string;
|
|
6398
8009
|
toolCallId?: string | undefined;
|
|
6399
8010
|
detail?: string | undefined;
|
|
8011
|
+
questions?: {
|
|
8012
|
+
id: string;
|
|
8013
|
+
kind: "text" | "choice" | "choices";
|
|
8014
|
+
text: string;
|
|
8015
|
+
options?: {
|
|
8016
|
+
value: string;
|
|
8017
|
+
label: string;
|
|
8018
|
+
description?: string | undefined;
|
|
8019
|
+
}[] | undefined;
|
|
8020
|
+
other?: boolean | undefined;
|
|
8021
|
+
header?: string | undefined;
|
|
8022
|
+
secret?: boolean | undefined;
|
|
8023
|
+
required?: boolean | undefined;
|
|
8024
|
+
}[] | undefined;
|
|
6400
8025
|
} | undefined;
|
|
6401
8026
|
queue?: {
|
|
6402
8027
|
images: number;
|
|
6403
|
-
clientMessageId: string;
|
|
6404
8028
|
text: string;
|
|
8029
|
+
clientMessageId: string;
|
|
6405
8030
|
}[] | undefined;
|
|
8031
|
+
worktree?: {
|
|
8032
|
+
branch: string;
|
|
8033
|
+
source: string;
|
|
8034
|
+
} | undefined;
|
|
6406
8035
|
subagents?: {
|
|
6407
8036
|
running: number;
|
|
6408
8037
|
total: number;
|
|
@@ -6469,6 +8098,54 @@ export declare const methods: {
|
|
|
6469
8098
|
name: string;
|
|
6470
8099
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
6471
8100
|
}>, "many">;
|
|
8101
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8102
|
+
id: z.ZodString;
|
|
8103
|
+
header: z.ZodOptional<z.ZodString>;
|
|
8104
|
+
text: z.ZodString;
|
|
8105
|
+
kind: z.ZodEnum<["choice", "choices", "text"]>;
|
|
8106
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8107
|
+
value: z.ZodString;
|
|
8108
|
+
label: z.ZodString;
|
|
8109
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8110
|
+
}, "strip", z.ZodTypeAny, {
|
|
8111
|
+
value: string;
|
|
8112
|
+
label: string;
|
|
8113
|
+
description?: string | undefined;
|
|
8114
|
+
}, {
|
|
8115
|
+
value: string;
|
|
8116
|
+
label: string;
|
|
8117
|
+
description?: string | undefined;
|
|
8118
|
+
}>, "many">>;
|
|
8119
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
8120
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
8121
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
8122
|
+
}, "strip", z.ZodTypeAny, {
|
|
8123
|
+
id: string;
|
|
8124
|
+
kind: "text" | "choice" | "choices";
|
|
8125
|
+
text: string;
|
|
8126
|
+
options?: {
|
|
8127
|
+
value: string;
|
|
8128
|
+
label: string;
|
|
8129
|
+
description?: string | undefined;
|
|
8130
|
+
}[] | undefined;
|
|
8131
|
+
other?: boolean | undefined;
|
|
8132
|
+
header?: string | undefined;
|
|
8133
|
+
secret?: boolean | undefined;
|
|
8134
|
+
required?: boolean | undefined;
|
|
8135
|
+
}, {
|
|
8136
|
+
id: string;
|
|
8137
|
+
kind: "text" | "choice" | "choices";
|
|
8138
|
+
text: string;
|
|
8139
|
+
options?: {
|
|
8140
|
+
value: string;
|
|
8141
|
+
label: string;
|
|
8142
|
+
description?: string | undefined;
|
|
8143
|
+
}[] | undefined;
|
|
8144
|
+
other?: boolean | undefined;
|
|
8145
|
+
header?: string | undefined;
|
|
8146
|
+
secret?: boolean | undefined;
|
|
8147
|
+
required?: boolean | undefined;
|
|
8148
|
+
}>, "many">>;
|
|
6472
8149
|
}, "strip", z.ZodTypeAny, {
|
|
6473
8150
|
options: {
|
|
6474
8151
|
optionId: string;
|
|
@@ -6479,6 +8156,20 @@ export declare const methods: {
|
|
|
6479
8156
|
requestId: string;
|
|
6480
8157
|
toolCallId?: string | undefined;
|
|
6481
8158
|
detail?: string | undefined;
|
|
8159
|
+
questions?: {
|
|
8160
|
+
id: string;
|
|
8161
|
+
kind: "text" | "choice" | "choices";
|
|
8162
|
+
text: string;
|
|
8163
|
+
options?: {
|
|
8164
|
+
value: string;
|
|
8165
|
+
label: string;
|
|
8166
|
+
description?: string | undefined;
|
|
8167
|
+
}[] | undefined;
|
|
8168
|
+
other?: boolean | undefined;
|
|
8169
|
+
header?: string | undefined;
|
|
8170
|
+
secret?: boolean | undefined;
|
|
8171
|
+
required?: boolean | undefined;
|
|
8172
|
+
}[] | undefined;
|
|
6482
8173
|
}, {
|
|
6483
8174
|
options: {
|
|
6484
8175
|
optionId: string;
|
|
@@ -6489,6 +8180,20 @@ export declare const methods: {
|
|
|
6489
8180
|
requestId: string;
|
|
6490
8181
|
toolCallId?: string | undefined;
|
|
6491
8182
|
detail?: string | undefined;
|
|
8183
|
+
questions?: {
|
|
8184
|
+
id: string;
|
|
8185
|
+
kind: "text" | "choice" | "choices";
|
|
8186
|
+
text: string;
|
|
8187
|
+
options?: {
|
|
8188
|
+
value: string;
|
|
8189
|
+
label: string;
|
|
8190
|
+
description?: string | undefined;
|
|
8191
|
+
}[] | undefined;
|
|
8192
|
+
other?: boolean | undefined;
|
|
8193
|
+
header?: string | undefined;
|
|
8194
|
+
secret?: boolean | undefined;
|
|
8195
|
+
required?: boolean | undefined;
|
|
8196
|
+
}[] | undefined;
|
|
6492
8197
|
}>>;
|
|
6493
8198
|
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6494
8199
|
clientMessageId: z.ZodString;
|
|
@@ -6496,13 +8201,23 @@ export declare const methods: {
|
|
|
6496
8201
|
images: z.ZodNumber;
|
|
6497
8202
|
}, "strip", z.ZodTypeAny, {
|
|
6498
8203
|
images: number;
|
|
6499
|
-
clientMessageId: string;
|
|
6500
8204
|
text: string;
|
|
8205
|
+
clientMessageId: string;
|
|
6501
8206
|
}, {
|
|
6502
8207
|
images: number;
|
|
6503
|
-
clientMessageId: string;
|
|
6504
8208
|
text: string;
|
|
8209
|
+
clientMessageId: string;
|
|
6505
8210
|
}>, "many">>;
|
|
8211
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
8212
|
+
branch: z.ZodString;
|
|
8213
|
+
source: z.ZodString;
|
|
8214
|
+
}, "strip", z.ZodTypeAny, {
|
|
8215
|
+
branch: string;
|
|
8216
|
+
source: string;
|
|
8217
|
+
}, {
|
|
8218
|
+
branch: string;
|
|
8219
|
+
source: string;
|
|
8220
|
+
}>>;
|
|
6506
8221
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
6507
8222
|
total: z.ZodNumber;
|
|
6508
8223
|
running: z.ZodNumber;
|
|
@@ -6543,12 +8258,30 @@ export declare const methods: {
|
|
|
6543
8258
|
requestId: string;
|
|
6544
8259
|
toolCallId?: string | undefined;
|
|
6545
8260
|
detail?: string | undefined;
|
|
8261
|
+
questions?: {
|
|
8262
|
+
id: string;
|
|
8263
|
+
kind: "text" | "choice" | "choices";
|
|
8264
|
+
text: string;
|
|
8265
|
+
options?: {
|
|
8266
|
+
value: string;
|
|
8267
|
+
label: string;
|
|
8268
|
+
description?: string | undefined;
|
|
8269
|
+
}[] | undefined;
|
|
8270
|
+
other?: boolean | undefined;
|
|
8271
|
+
header?: string | undefined;
|
|
8272
|
+
secret?: boolean | undefined;
|
|
8273
|
+
required?: boolean | undefined;
|
|
8274
|
+
}[] | undefined;
|
|
6546
8275
|
} | undefined;
|
|
6547
8276
|
queue?: {
|
|
6548
8277
|
images: number;
|
|
6549
|
-
clientMessageId: string;
|
|
6550
8278
|
text: string;
|
|
8279
|
+
clientMessageId: string;
|
|
6551
8280
|
}[] | undefined;
|
|
8281
|
+
worktree?: {
|
|
8282
|
+
branch: string;
|
|
8283
|
+
source: string;
|
|
8284
|
+
} | undefined;
|
|
6552
8285
|
subagents?: {
|
|
6553
8286
|
running: number;
|
|
6554
8287
|
total: number;
|
|
@@ -6583,12 +8316,30 @@ export declare const methods: {
|
|
|
6583
8316
|
requestId: string;
|
|
6584
8317
|
toolCallId?: string | undefined;
|
|
6585
8318
|
detail?: string | undefined;
|
|
8319
|
+
questions?: {
|
|
8320
|
+
id: string;
|
|
8321
|
+
kind: "text" | "choice" | "choices";
|
|
8322
|
+
text: string;
|
|
8323
|
+
options?: {
|
|
8324
|
+
value: string;
|
|
8325
|
+
label: string;
|
|
8326
|
+
description?: string | undefined;
|
|
8327
|
+
}[] | undefined;
|
|
8328
|
+
other?: boolean | undefined;
|
|
8329
|
+
header?: string | undefined;
|
|
8330
|
+
secret?: boolean | undefined;
|
|
8331
|
+
required?: boolean | undefined;
|
|
8332
|
+
}[] | undefined;
|
|
6586
8333
|
} | undefined;
|
|
6587
8334
|
queue?: {
|
|
6588
8335
|
images: number;
|
|
6589
|
-
clientMessageId: string;
|
|
6590
8336
|
text: string;
|
|
8337
|
+
clientMessageId: string;
|
|
6591
8338
|
}[] | undefined;
|
|
8339
|
+
worktree?: {
|
|
8340
|
+
branch: string;
|
|
8341
|
+
source: string;
|
|
8342
|
+
} | undefined;
|
|
6592
8343
|
subagents?: {
|
|
6593
8344
|
running: number;
|
|
6594
8345
|
total: number;
|
|
@@ -6625,12 +8376,30 @@ export declare const methods: {
|
|
|
6625
8376
|
requestId: string;
|
|
6626
8377
|
toolCallId?: string | undefined;
|
|
6627
8378
|
detail?: string | undefined;
|
|
8379
|
+
questions?: {
|
|
8380
|
+
id: string;
|
|
8381
|
+
kind: "text" | "choice" | "choices";
|
|
8382
|
+
text: string;
|
|
8383
|
+
options?: {
|
|
8384
|
+
value: string;
|
|
8385
|
+
label: string;
|
|
8386
|
+
description?: string | undefined;
|
|
8387
|
+
}[] | undefined;
|
|
8388
|
+
other?: boolean | undefined;
|
|
8389
|
+
header?: string | undefined;
|
|
8390
|
+
secret?: boolean | undefined;
|
|
8391
|
+
required?: boolean | undefined;
|
|
8392
|
+
}[] | undefined;
|
|
6628
8393
|
} | undefined;
|
|
6629
8394
|
queue?: {
|
|
6630
8395
|
images: number;
|
|
6631
|
-
clientMessageId: string;
|
|
6632
8396
|
text: string;
|
|
8397
|
+
clientMessageId: string;
|
|
6633
8398
|
}[] | undefined;
|
|
8399
|
+
worktree?: {
|
|
8400
|
+
branch: string;
|
|
8401
|
+
source: string;
|
|
8402
|
+
} | undefined;
|
|
6634
8403
|
subagents?: {
|
|
6635
8404
|
running: number;
|
|
6636
8405
|
total: number;
|
|
@@ -6667,12 +8436,30 @@ export declare const methods: {
|
|
|
6667
8436
|
requestId: string;
|
|
6668
8437
|
toolCallId?: string | undefined;
|
|
6669
8438
|
detail?: string | undefined;
|
|
8439
|
+
questions?: {
|
|
8440
|
+
id: string;
|
|
8441
|
+
kind: "text" | "choice" | "choices";
|
|
8442
|
+
text: string;
|
|
8443
|
+
options?: {
|
|
8444
|
+
value: string;
|
|
8445
|
+
label: string;
|
|
8446
|
+
description?: string | undefined;
|
|
8447
|
+
}[] | undefined;
|
|
8448
|
+
other?: boolean | undefined;
|
|
8449
|
+
header?: string | undefined;
|
|
8450
|
+
secret?: boolean | undefined;
|
|
8451
|
+
required?: boolean | undefined;
|
|
8452
|
+
}[] | undefined;
|
|
6670
8453
|
} | undefined;
|
|
6671
8454
|
queue?: {
|
|
6672
8455
|
images: number;
|
|
6673
|
-
clientMessageId: string;
|
|
6674
8456
|
text: string;
|
|
8457
|
+
clientMessageId: string;
|
|
6675
8458
|
}[] | undefined;
|
|
8459
|
+
worktree?: {
|
|
8460
|
+
branch: string;
|
|
8461
|
+
source: string;
|
|
8462
|
+
} | undefined;
|
|
6676
8463
|
subagents?: {
|
|
6677
8464
|
running: number;
|
|
6678
8465
|
total: number;
|
|
@@ -6684,13 +8471,21 @@ export declare const methods: {
|
|
|
6684
8471
|
* Deletes a session: the agent's own record where it has one (Codex thread,
|
|
6685
8472
|
* Claude transcript), and LinkShell's copy either way. Not while it runs.
|
|
6686
8473
|
*/
|
|
8474
|
+
/**
|
|
8475
|
+
* Deletes a session. Its worktree (when it has one that no other session
|
|
8476
|
+
* uses) goes with it if nothing in it would be lost; `worktree: "remove"`
|
|
8477
|
+
* removes it even with uncommitted changes or new commits, "keep" never.
|
|
8478
|
+
*/
|
|
6687
8479
|
readonly "sessions.delete": {
|
|
6688
8480
|
readonly params: z.ZodObject<{
|
|
6689
8481
|
sessionId: z.ZodString;
|
|
8482
|
+
worktree: z.ZodOptional<z.ZodEnum<["keep", "remove"]>>;
|
|
6690
8483
|
}, "strip", z.ZodTypeAny, {
|
|
6691
8484
|
sessionId: string;
|
|
8485
|
+
worktree?: "keep" | "remove" | undefined;
|
|
6692
8486
|
}, {
|
|
6693
8487
|
sessionId: string;
|
|
8488
|
+
worktree?: "keep" | "remove" | undefined;
|
|
6694
8489
|
}>;
|
|
6695
8490
|
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
6696
8491
|
};
|
|
@@ -7029,7 +8824,114 @@ export declare const methods: {
|
|
|
7029
8824
|
}, "strip", z.ZodTypeAny, {
|
|
7030
8825
|
deviceId: string;
|
|
7031
8826
|
}, {
|
|
7032
|
-
deviceId: string;
|
|
8827
|
+
deviceId: string;
|
|
8828
|
+
}>;
|
|
8829
|
+
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
8830
|
+
};
|
|
8831
|
+
/** What git says about `path`; no `git` when it isn't in a repository. */
|
|
8832
|
+
readonly "git.info": {
|
|
8833
|
+
readonly params: z.ZodObject<{
|
|
8834
|
+
path: z.ZodString;
|
|
8835
|
+
}, "strip", z.ZodTypeAny, {
|
|
8836
|
+
path: string;
|
|
8837
|
+
}, {
|
|
8838
|
+
path: string;
|
|
8839
|
+
}>;
|
|
8840
|
+
readonly result: z.ZodObject<{
|
|
8841
|
+
git: z.ZodOptional<z.ZodObject<{
|
|
8842
|
+
root: z.ZodString;
|
|
8843
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
8844
|
+
head: z.ZodOptional<z.ZodString>;
|
|
8845
|
+
dirty: z.ZodBoolean;
|
|
8846
|
+
}, "strip", z.ZodTypeAny, {
|
|
8847
|
+
dirty: boolean;
|
|
8848
|
+
root: string;
|
|
8849
|
+
branch?: string | undefined;
|
|
8850
|
+
head?: string | undefined;
|
|
8851
|
+
}, {
|
|
8852
|
+
dirty: boolean;
|
|
8853
|
+
root: string;
|
|
8854
|
+
branch?: string | undefined;
|
|
8855
|
+
head?: string | undefined;
|
|
8856
|
+
}>>;
|
|
8857
|
+
}, "strip", z.ZodTypeAny, {
|
|
8858
|
+
git?: {
|
|
8859
|
+
dirty: boolean;
|
|
8860
|
+
root: string;
|
|
8861
|
+
branch?: string | undefined;
|
|
8862
|
+
head?: string | undefined;
|
|
8863
|
+
} | undefined;
|
|
8864
|
+
}, {
|
|
8865
|
+
git?: {
|
|
8866
|
+
dirty: boolean;
|
|
8867
|
+
root: string;
|
|
8868
|
+
branch?: string | undefined;
|
|
8869
|
+
head?: string | undefined;
|
|
8870
|
+
} | undefined;
|
|
8871
|
+
}>;
|
|
8872
|
+
};
|
|
8873
|
+
/** The worktrees LinkShell made, newest first. */
|
|
8874
|
+
readonly "worktrees.list": {
|
|
8875
|
+
readonly params: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
8876
|
+
readonly result: z.ZodObject<{
|
|
8877
|
+
worktrees: z.ZodArray<z.ZodObject<{
|
|
8878
|
+
path: z.ZodString;
|
|
8879
|
+
branch: z.ZodString;
|
|
8880
|
+
source: z.ZodString;
|
|
8881
|
+
createdAt: z.ZodNumber;
|
|
8882
|
+
sessions: z.ZodArray<z.ZodString, "many">;
|
|
8883
|
+
dirty: z.ZodBoolean;
|
|
8884
|
+
ahead: z.ZodNumber;
|
|
8885
|
+
}, "strip", z.ZodTypeAny, {
|
|
8886
|
+
dirty: boolean;
|
|
8887
|
+
path: string;
|
|
8888
|
+
createdAt: number;
|
|
8889
|
+
branch: string;
|
|
8890
|
+
source: string;
|
|
8891
|
+
sessions: string[];
|
|
8892
|
+
ahead: number;
|
|
8893
|
+
}, {
|
|
8894
|
+
dirty: boolean;
|
|
8895
|
+
path: string;
|
|
8896
|
+
createdAt: number;
|
|
8897
|
+
branch: string;
|
|
8898
|
+
source: string;
|
|
8899
|
+
sessions: string[];
|
|
8900
|
+
ahead: number;
|
|
8901
|
+
}>, "many">;
|
|
8902
|
+
}, "strip", z.ZodTypeAny, {
|
|
8903
|
+
worktrees: {
|
|
8904
|
+
dirty: boolean;
|
|
8905
|
+
path: string;
|
|
8906
|
+
createdAt: number;
|
|
8907
|
+
branch: string;
|
|
8908
|
+
source: string;
|
|
8909
|
+
sessions: string[];
|
|
8910
|
+
ahead: number;
|
|
8911
|
+
}[];
|
|
8912
|
+
}, {
|
|
8913
|
+
worktrees: {
|
|
8914
|
+
dirty: boolean;
|
|
8915
|
+
path: string;
|
|
8916
|
+
createdAt: number;
|
|
8917
|
+
branch: string;
|
|
8918
|
+
source: string;
|
|
8919
|
+
sessions: string[];
|
|
8920
|
+
ahead: number;
|
|
8921
|
+
}[];
|
|
8922
|
+
}>;
|
|
8923
|
+
};
|
|
8924
|
+
/** Removes a worktree and its branch. Refused (`busy`) while a session uses it, or (`dirty`) when work in it would be lost, unless `force`. */
|
|
8925
|
+
readonly "worktrees.remove": {
|
|
8926
|
+
readonly params: z.ZodObject<{
|
|
8927
|
+
path: z.ZodString;
|
|
8928
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
8929
|
+
}, "strip", z.ZodTypeAny, {
|
|
8930
|
+
path: string;
|
|
8931
|
+
force?: boolean | undefined;
|
|
8932
|
+
}, {
|
|
8933
|
+
path: string;
|
|
8934
|
+
force?: boolean | undefined;
|
|
7033
8935
|
}>;
|
|
7034
8936
|
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
7035
8937
|
};
|
|
@@ -7064,39 +8966,39 @@ export declare const methods: {
|
|
|
7064
8966
|
}, "strip", z.ZodTypeAny, {
|
|
7065
8967
|
path: string;
|
|
7066
8968
|
name: string;
|
|
7067
|
-
project?: boolean | undefined;
|
|
7068
8969
|
file?: boolean | undefined;
|
|
8970
|
+
project?: boolean | undefined;
|
|
7069
8971
|
size?: number | undefined;
|
|
7070
8972
|
}, {
|
|
7071
8973
|
path: string;
|
|
7072
8974
|
name: string;
|
|
7073
|
-
project?: boolean | undefined;
|
|
7074
8975
|
file?: boolean | undefined;
|
|
8976
|
+
project?: boolean | undefined;
|
|
7075
8977
|
size?: number | undefined;
|
|
7076
8978
|
}>, "many">;
|
|
7077
8979
|
/** The directory holds more than a listing carries (1000 entries). */
|
|
7078
8980
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
7079
8981
|
}, "strip", z.ZodTypeAny, {
|
|
7080
|
-
path: string;
|
|
7081
8982
|
entries: {
|
|
7082
8983
|
path: string;
|
|
7083
8984
|
name: string;
|
|
7084
|
-
project?: boolean | undefined;
|
|
7085
8985
|
file?: boolean | undefined;
|
|
8986
|
+
project?: boolean | undefined;
|
|
7086
8987
|
size?: number | undefined;
|
|
7087
8988
|
}[];
|
|
8989
|
+
path: string;
|
|
7088
8990
|
home: string;
|
|
7089
8991
|
parent?: string | undefined;
|
|
7090
8992
|
truncated?: boolean | undefined;
|
|
7091
8993
|
}, {
|
|
7092
|
-
path: string;
|
|
7093
8994
|
entries: {
|
|
7094
8995
|
path: string;
|
|
7095
8996
|
name: string;
|
|
7096
|
-
project?: boolean | undefined;
|
|
7097
8997
|
file?: boolean | undefined;
|
|
8998
|
+
project?: boolean | undefined;
|
|
7098
8999
|
size?: number | undefined;
|
|
7099
9000
|
}[];
|
|
9001
|
+
path: string;
|
|
7100
9002
|
home: string;
|
|
7101
9003
|
parent?: string | undefined;
|
|
7102
9004
|
truncated?: boolean | undefined;
|
|
@@ -7142,8 +9044,8 @@ export declare const methods: {
|
|
|
7142
9044
|
truncated: boolean;
|
|
7143
9045
|
modifiedAt: number;
|
|
7144
9046
|
text?: string | undefined;
|
|
7145
|
-
data?: string | undefined;
|
|
7146
9047
|
mimeType?: string | undefined;
|
|
9048
|
+
data?: string | undefined;
|
|
7147
9049
|
nextOffset?: number | undefined;
|
|
7148
9050
|
}, {
|
|
7149
9051
|
path: string;
|
|
@@ -7152,8 +9054,8 @@ export declare const methods: {
|
|
|
7152
9054
|
truncated: boolean;
|
|
7153
9055
|
modifiedAt: number;
|
|
7154
9056
|
text?: string | undefined;
|
|
7155
|
-
data?: string | undefined;
|
|
7156
9057
|
mimeType?: string | undefined;
|
|
9058
|
+
data?: string | undefined;
|
|
7157
9059
|
nextOffset?: number | undefined;
|
|
7158
9060
|
}>;
|
|
7159
9061
|
};
|
|
@@ -7213,8 +9115,8 @@ export declare const methods: {
|
|
|
7213
9115
|
query: z.ZodString;
|
|
7214
9116
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
7215
9117
|
}, "strip", z.ZodTypeAny, {
|
|
7216
|
-
limit: number;
|
|
7217
9118
|
query: string;
|
|
9119
|
+
limit: number;
|
|
7218
9120
|
}, {
|
|
7219
9121
|
query: string;
|
|
7220
9122
|
limit?: number | undefined;
|
|
@@ -7231,14 +9133,14 @@ export declare const methods: {
|
|
|
7231
9133
|
}, "strip", z.ZodTypeAny, {
|
|
7232
9134
|
path: string;
|
|
7233
9135
|
name: string;
|
|
7234
|
-
project?: boolean | undefined;
|
|
7235
9136
|
file?: boolean | undefined;
|
|
9137
|
+
project?: boolean | undefined;
|
|
7236
9138
|
size?: number | undefined;
|
|
7237
9139
|
}, {
|
|
7238
9140
|
path: string;
|
|
7239
9141
|
name: string;
|
|
7240
|
-
project?: boolean | undefined;
|
|
7241
9142
|
file?: boolean | undefined;
|
|
9143
|
+
project?: boolean | undefined;
|
|
7242
9144
|
size?: number | undefined;
|
|
7243
9145
|
}>, "many">;
|
|
7244
9146
|
truncated: z.ZodBoolean;
|
|
@@ -7246,8 +9148,8 @@ export declare const methods: {
|
|
|
7246
9148
|
entries: {
|
|
7247
9149
|
path: string;
|
|
7248
9150
|
name: string;
|
|
7249
|
-
project?: boolean | undefined;
|
|
7250
9151
|
file?: boolean | undefined;
|
|
9152
|
+
project?: boolean | undefined;
|
|
7251
9153
|
size?: number | undefined;
|
|
7252
9154
|
}[];
|
|
7253
9155
|
truncated: boolean;
|
|
@@ -7255,8 +9157,8 @@ export declare const methods: {
|
|
|
7255
9157
|
entries: {
|
|
7256
9158
|
path: string;
|
|
7257
9159
|
name: string;
|
|
7258
|
-
project?: boolean | undefined;
|
|
7259
9160
|
file?: boolean | undefined;
|
|
9161
|
+
project?: boolean | undefined;
|
|
7260
9162
|
size?: number | undefined;
|
|
7261
9163
|
}[];
|
|
7262
9164
|
truncated: boolean;
|
|
@@ -7603,17 +9505,47 @@ export declare const methods: {
|
|
|
7603
9505
|
readonly "proxy.open": {
|
|
7604
9506
|
readonly params: z.ZodObject<{
|
|
7605
9507
|
port: z.ZodNumber;
|
|
9508
|
+
/** Carry the stream on the direct channel, if this connection has one open. */
|
|
9509
|
+
direct: z.ZodOptional<z.ZodBoolean>;
|
|
7606
9510
|
}, "strip", z.ZodTypeAny, {
|
|
7607
9511
|
port: number;
|
|
9512
|
+
direct?: boolean | undefined;
|
|
7608
9513
|
}, {
|
|
7609
9514
|
port: number;
|
|
9515
|
+
direct?: boolean | undefined;
|
|
7610
9516
|
}>;
|
|
9517
|
+
/** `channel`: the stream's number on the direct channel, when it goes there instead of over `proxy.*`. */
|
|
7611
9518
|
readonly result: z.ZodObject<{
|
|
7612
9519
|
streamId: z.ZodString;
|
|
9520
|
+
channel: z.ZodOptional<z.ZodNumber>;
|
|
7613
9521
|
}, "strip", z.ZodTypeAny, {
|
|
7614
9522
|
streamId: string;
|
|
9523
|
+
channel?: number | undefined;
|
|
7615
9524
|
}, {
|
|
7616
9525
|
streamId: string;
|
|
9526
|
+
channel?: number | undefined;
|
|
9527
|
+
}>;
|
|
9528
|
+
};
|
|
9529
|
+
/**
|
|
9530
|
+
* Sets up the direct channel (see `direct.ts`): the device's WebRTC offer,
|
|
9531
|
+
* holding the `linkshell-bulk` data channel, answered by the host. Each side
|
|
9532
|
+
* has gathered its addresses before sending. A new offer replaces the
|
|
9533
|
+
* connection made by an earlier one.
|
|
9534
|
+
*/
|
|
9535
|
+
readonly "direct.offer": {
|
|
9536
|
+
readonly params: z.ZodObject<{
|
|
9537
|
+
sdp: z.ZodString;
|
|
9538
|
+
}, "strip", z.ZodTypeAny, {
|
|
9539
|
+
sdp: string;
|
|
9540
|
+
}, {
|
|
9541
|
+
sdp: string;
|
|
9542
|
+
}>;
|
|
9543
|
+
readonly result: z.ZodObject<{
|
|
9544
|
+
sdp: z.ZodString;
|
|
9545
|
+
}, "strip", z.ZodTypeAny, {
|
|
9546
|
+
sdp: string;
|
|
9547
|
+
}, {
|
|
9548
|
+
sdp: string;
|
|
7617
9549
|
}>;
|
|
7618
9550
|
};
|
|
7619
9551
|
/**
|
|
@@ -7651,6 +9583,47 @@ export declare const methods: {
|
|
|
7651
9583
|
}[];
|
|
7652
9584
|
}>;
|
|
7653
9585
|
};
|
|
9586
|
+
/**
|
|
9587
|
+
* Whether this computer's screen can be watched and controlled: the capture
|
|
9588
|
+
* program, and the two permissions the system gives to an app by name. With
|
|
9589
|
+
* `ask`, the system puts its own question for the first one missing and opens
|
|
9590
|
+
* its settings page there, on the computer.
|
|
9591
|
+
*/
|
|
9592
|
+
readonly "screen.access": {
|
|
9593
|
+
readonly params: z.ZodObject<{
|
|
9594
|
+
ask: z.ZodOptional<z.ZodBoolean>;
|
|
9595
|
+
}, "strip", z.ZodTypeAny, {
|
|
9596
|
+
ask?: boolean | undefined;
|
|
9597
|
+
}, {
|
|
9598
|
+
ask?: boolean | undefined;
|
|
9599
|
+
}>;
|
|
9600
|
+
readonly result: z.ZodObject<{
|
|
9601
|
+
/** This kind of computer can show its screen at all. */
|
|
9602
|
+
supported: z.ZodBoolean;
|
|
9603
|
+
ffmpeg: z.ZodBoolean;
|
|
9604
|
+
/** May record the screen / post pointer and key events; null where that isn't known. */
|
|
9605
|
+
recording: z.ZodNullable<z.ZodBoolean>;
|
|
9606
|
+
control: z.ZodNullable<z.ZodBoolean>;
|
|
9607
|
+
/** The app the system lists for these permissions: the one to allow. */
|
|
9608
|
+
app: z.ZodOptional<z.ZodString>;
|
|
9609
|
+
/** Why the answer is missing, or what stands in the way besides the permissions. */
|
|
9610
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
9611
|
+
}, "strip", z.ZodTypeAny, {
|
|
9612
|
+
supported: boolean;
|
|
9613
|
+
ffmpeg: boolean;
|
|
9614
|
+
recording: boolean | null;
|
|
9615
|
+
control: boolean | null;
|
|
9616
|
+
problem?: string | undefined;
|
|
9617
|
+
app?: string | undefined;
|
|
9618
|
+
}, {
|
|
9619
|
+
supported: boolean;
|
|
9620
|
+
ffmpeg: boolean;
|
|
9621
|
+
recording: boolean | null;
|
|
9622
|
+
control: boolean | null;
|
|
9623
|
+
problem?: string | undefined;
|
|
9624
|
+
app?: string | undefined;
|
|
9625
|
+
}>;
|
|
9626
|
+
};
|
|
7654
9627
|
/** Bytes to the host's end of a stream (base64). */
|
|
7655
9628
|
readonly "proxy.write": {
|
|
7656
9629
|
readonly params: z.ZodObject<{
|
|
@@ -7729,7 +9702,6 @@ export declare const notifications: {
|
|
|
7729
9702
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
7730
9703
|
}>]>;
|
|
7731
9704
|
}, "strip", z.ZodTypeAny, {
|
|
7732
|
-
sessionUpdate: "user_message_chunk";
|
|
7733
9705
|
content: {
|
|
7734
9706
|
type: "text";
|
|
7735
9707
|
text: string;
|
|
@@ -7744,9 +9716,9 @@ export declare const notifications: {
|
|
|
7744
9716
|
uri: string;
|
|
7745
9717
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
7746
9718
|
};
|
|
9719
|
+
sessionUpdate: "user_message_chunk";
|
|
7747
9720
|
messageId?: string | undefined;
|
|
7748
9721
|
}, {
|
|
7749
|
-
sessionUpdate: "user_message_chunk";
|
|
7750
9722
|
content: {
|
|
7751
9723
|
type: "text";
|
|
7752
9724
|
text: string;
|
|
@@ -7761,6 +9733,7 @@ export declare const notifications: {
|
|
|
7761
9733
|
uri: string;
|
|
7762
9734
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
7763
9735
|
};
|
|
9736
|
+
sessionUpdate: "user_message_chunk";
|
|
7764
9737
|
messageId?: string | undefined;
|
|
7765
9738
|
}>, z.ZodObject<{
|
|
7766
9739
|
sessionUpdate: z.ZodLiteral<"agent_message_chunk">;
|
|
@@ -7807,8 +9780,6 @@ export declare const notifications: {
|
|
|
7807
9780
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
7808
9781
|
}>]>;
|
|
7809
9782
|
}, "strip", z.ZodTypeAny, {
|
|
7810
|
-
sessionUpdate: "agent_message_chunk";
|
|
7811
|
-
messageId: string;
|
|
7812
9783
|
content: {
|
|
7813
9784
|
type: "text";
|
|
7814
9785
|
text: string;
|
|
@@ -7823,10 +9794,10 @@ export declare const notifications: {
|
|
|
7823
9794
|
uri: string;
|
|
7824
9795
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
7825
9796
|
};
|
|
7826
|
-
parentToolCallId?: string | undefined;
|
|
7827
|
-
}, {
|
|
7828
9797
|
sessionUpdate: "agent_message_chunk";
|
|
7829
9798
|
messageId: string;
|
|
9799
|
+
parentToolCallId?: string | undefined;
|
|
9800
|
+
}, {
|
|
7830
9801
|
content: {
|
|
7831
9802
|
type: "text";
|
|
7832
9803
|
text: string;
|
|
@@ -7841,6 +9812,8 @@ export declare const notifications: {
|
|
|
7841
9812
|
uri: string;
|
|
7842
9813
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
7843
9814
|
};
|
|
9815
|
+
sessionUpdate: "agent_message_chunk";
|
|
9816
|
+
messageId: string;
|
|
7844
9817
|
parentToolCallId?: string | undefined;
|
|
7845
9818
|
}>, z.ZodObject<{
|
|
7846
9819
|
sessionUpdate: z.ZodLiteral<"agent_thought_chunk">;
|
|
@@ -7887,8 +9860,6 @@ export declare const notifications: {
|
|
|
7887
9860
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
7888
9861
|
}>]>;
|
|
7889
9862
|
}, "strip", z.ZodTypeAny, {
|
|
7890
|
-
sessionUpdate: "agent_thought_chunk";
|
|
7891
|
-
messageId: string;
|
|
7892
9863
|
content: {
|
|
7893
9864
|
type: "text";
|
|
7894
9865
|
text: string;
|
|
@@ -7903,10 +9874,10 @@ export declare const notifications: {
|
|
|
7903
9874
|
uri: string;
|
|
7904
9875
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
7905
9876
|
};
|
|
7906
|
-
parentToolCallId?: string | undefined;
|
|
7907
|
-
}, {
|
|
7908
9877
|
sessionUpdate: "agent_thought_chunk";
|
|
7909
9878
|
messageId: string;
|
|
9879
|
+
parentToolCallId?: string | undefined;
|
|
9880
|
+
}, {
|
|
7910
9881
|
content: {
|
|
7911
9882
|
type: "text";
|
|
7912
9883
|
text: string;
|
|
@@ -7921,6 +9892,8 @@ export declare const notifications: {
|
|
|
7921
9892
|
uri: string;
|
|
7922
9893
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
7923
9894
|
};
|
|
9895
|
+
sessionUpdate: "agent_thought_chunk";
|
|
9896
|
+
messageId: string;
|
|
7924
9897
|
parentToolCallId?: string | undefined;
|
|
7925
9898
|
}>, z.ZodObject<{
|
|
7926
9899
|
sessionUpdate: z.ZodLiteral<"tool_call">;
|
|
@@ -8132,6 +10105,18 @@ export declare const notifications: {
|
|
|
8132
10105
|
}, {
|
|
8133
10106
|
type: "review";
|
|
8134
10107
|
phase: "started" | "finished";
|
|
10108
|
+
}>, z.ZodObject<{
|
|
10109
|
+
type: z.ZodLiteral<"question">;
|
|
10110
|
+
text: z.ZodString;
|
|
10111
|
+
more: z.ZodOptional<z.ZodNumber>;
|
|
10112
|
+
}, "strip", z.ZodTypeAny, {
|
|
10113
|
+
type: "question";
|
|
10114
|
+
text: string;
|
|
10115
|
+
more?: number | undefined;
|
|
10116
|
+
}, {
|
|
10117
|
+
type: "question";
|
|
10118
|
+
text: string;
|
|
10119
|
+
more?: number | undefined;
|
|
8135
10120
|
}>]>>;
|
|
8136
10121
|
}, "strip", z.ZodTypeAny, {
|
|
8137
10122
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -8164,6 +10149,10 @@ export declare const notifications: {
|
|
|
8164
10149
|
} | {
|
|
8165
10150
|
type: "review";
|
|
8166
10151
|
phase: "started" | "finished";
|
|
10152
|
+
} | {
|
|
10153
|
+
type: "question";
|
|
10154
|
+
text: string;
|
|
10155
|
+
more?: number | undefined;
|
|
8167
10156
|
} | undefined;
|
|
8168
10157
|
content?: ({
|
|
8169
10158
|
type: "content";
|
|
@@ -8233,6 +10222,10 @@ export declare const notifications: {
|
|
|
8233
10222
|
} | {
|
|
8234
10223
|
type: "review";
|
|
8235
10224
|
phase: "started" | "finished";
|
|
10225
|
+
} | {
|
|
10226
|
+
type: "question";
|
|
10227
|
+
text: string;
|
|
10228
|
+
more?: number | undefined;
|
|
8236
10229
|
} | undefined;
|
|
8237
10230
|
content?: ({
|
|
8238
10231
|
type: "content";
|
|
@@ -8352,6 +10345,18 @@ export declare const notifications: {
|
|
|
8352
10345
|
}, {
|
|
8353
10346
|
type: "review";
|
|
8354
10347
|
phase: "started" | "finished";
|
|
10348
|
+
}>, z.ZodObject<{
|
|
10349
|
+
type: z.ZodLiteral<"question">;
|
|
10350
|
+
text: z.ZodString;
|
|
10351
|
+
more: z.ZodOptional<z.ZodNumber>;
|
|
10352
|
+
}, "strip", z.ZodTypeAny, {
|
|
10353
|
+
type: "question";
|
|
10354
|
+
text: string;
|
|
10355
|
+
more?: number | undefined;
|
|
10356
|
+
}, {
|
|
10357
|
+
type: "question";
|
|
10358
|
+
text: string;
|
|
10359
|
+
more?: number | undefined;
|
|
8355
10360
|
}>]>>;
|
|
8356
10361
|
content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8357
10362
|
type: z.ZodLiteral<"content">;
|
|
@@ -8502,6 +10507,10 @@ export declare const notifications: {
|
|
|
8502
10507
|
} | {
|
|
8503
10508
|
type: "review";
|
|
8504
10509
|
phase: "started" | "finished";
|
|
10510
|
+
} | {
|
|
10511
|
+
type: "question";
|
|
10512
|
+
text: string;
|
|
10513
|
+
more?: number | undefined;
|
|
8505
10514
|
} | undefined;
|
|
8506
10515
|
content?: ({
|
|
8507
10516
|
type: "content";
|
|
@@ -8567,6 +10576,10 @@ export declare const notifications: {
|
|
|
8567
10576
|
} | {
|
|
8568
10577
|
type: "review";
|
|
8569
10578
|
phase: "started" | "finished";
|
|
10579
|
+
} | {
|
|
10580
|
+
type: "question";
|
|
10581
|
+
text: string;
|
|
10582
|
+
more?: number | undefined;
|
|
8570
10583
|
} | undefined;
|
|
8571
10584
|
content?: ({
|
|
8572
10585
|
type: "content";
|
|
@@ -8827,6 +10840,54 @@ export declare const notifications: {
|
|
|
8827
10840
|
name: string;
|
|
8828
10841
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
8829
10842
|
}>, "many">;
|
|
10843
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10844
|
+
id: z.ZodString;
|
|
10845
|
+
header: z.ZodOptional<z.ZodString>;
|
|
10846
|
+
text: z.ZodString;
|
|
10847
|
+
kind: z.ZodEnum<["choice", "choices", "text"]>;
|
|
10848
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10849
|
+
value: z.ZodString;
|
|
10850
|
+
label: z.ZodString;
|
|
10851
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10852
|
+
}, "strip", z.ZodTypeAny, {
|
|
10853
|
+
value: string;
|
|
10854
|
+
label: string;
|
|
10855
|
+
description?: string | undefined;
|
|
10856
|
+
}, {
|
|
10857
|
+
value: string;
|
|
10858
|
+
label: string;
|
|
10859
|
+
description?: string | undefined;
|
|
10860
|
+
}>, "many">>;
|
|
10861
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
10862
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
10863
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10864
|
+
}, "strip", z.ZodTypeAny, {
|
|
10865
|
+
id: string;
|
|
10866
|
+
kind: "text" | "choice" | "choices";
|
|
10867
|
+
text: string;
|
|
10868
|
+
options?: {
|
|
10869
|
+
value: string;
|
|
10870
|
+
label: string;
|
|
10871
|
+
description?: string | undefined;
|
|
10872
|
+
}[] | undefined;
|
|
10873
|
+
other?: boolean | undefined;
|
|
10874
|
+
header?: string | undefined;
|
|
10875
|
+
secret?: boolean | undefined;
|
|
10876
|
+
required?: boolean | undefined;
|
|
10877
|
+
}, {
|
|
10878
|
+
id: string;
|
|
10879
|
+
kind: "text" | "choice" | "choices";
|
|
10880
|
+
text: string;
|
|
10881
|
+
options?: {
|
|
10882
|
+
value: string;
|
|
10883
|
+
label: string;
|
|
10884
|
+
description?: string | undefined;
|
|
10885
|
+
}[] | undefined;
|
|
10886
|
+
other?: boolean | undefined;
|
|
10887
|
+
header?: string | undefined;
|
|
10888
|
+
secret?: boolean | undefined;
|
|
10889
|
+
required?: boolean | undefined;
|
|
10890
|
+
}>, "many">>;
|
|
8830
10891
|
}, "strip", z.ZodTypeAny, {
|
|
8831
10892
|
options: {
|
|
8832
10893
|
optionId: string;
|
|
@@ -8838,6 +10899,20 @@ export declare const notifications: {
|
|
|
8838
10899
|
sessionUpdate: "ls_permission";
|
|
8839
10900
|
toolCallId?: string | undefined;
|
|
8840
10901
|
detail?: string | undefined;
|
|
10902
|
+
questions?: {
|
|
10903
|
+
id: string;
|
|
10904
|
+
kind: "text" | "choice" | "choices";
|
|
10905
|
+
text: string;
|
|
10906
|
+
options?: {
|
|
10907
|
+
value: string;
|
|
10908
|
+
label: string;
|
|
10909
|
+
description?: string | undefined;
|
|
10910
|
+
}[] | undefined;
|
|
10911
|
+
other?: boolean | undefined;
|
|
10912
|
+
header?: string | undefined;
|
|
10913
|
+
secret?: boolean | undefined;
|
|
10914
|
+
required?: boolean | undefined;
|
|
10915
|
+
}[] | undefined;
|
|
8841
10916
|
}, {
|
|
8842
10917
|
options: {
|
|
8843
10918
|
optionId: string;
|
|
@@ -8849,18 +10924,55 @@ export declare const notifications: {
|
|
|
8849
10924
|
sessionUpdate: "ls_permission";
|
|
8850
10925
|
toolCallId?: string | undefined;
|
|
8851
10926
|
detail?: string | undefined;
|
|
10927
|
+
questions?: {
|
|
10928
|
+
id: string;
|
|
10929
|
+
kind: "text" | "choice" | "choices";
|
|
10930
|
+
text: string;
|
|
10931
|
+
options?: {
|
|
10932
|
+
value: string;
|
|
10933
|
+
label: string;
|
|
10934
|
+
description?: string | undefined;
|
|
10935
|
+
}[] | undefined;
|
|
10936
|
+
other?: boolean | undefined;
|
|
10937
|
+
header?: string | undefined;
|
|
10938
|
+
secret?: boolean | undefined;
|
|
10939
|
+
required?: boolean | undefined;
|
|
10940
|
+
}[] | undefined;
|
|
8852
10941
|
}>, z.ZodObject<{
|
|
8853
10942
|
sessionUpdate: z.ZodLiteral<"ls_permission_resolved">;
|
|
8854
10943
|
requestId: z.ZodString;
|
|
8855
10944
|
optionId: z.ZodOptional<z.ZodString>;
|
|
10945
|
+
answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10946
|
+
id: z.ZodString;
|
|
10947
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
10948
|
+
other: z.ZodOptional<z.ZodString>;
|
|
10949
|
+
}, "strip", z.ZodTypeAny, {
|
|
10950
|
+
values: string[];
|
|
10951
|
+
id: string;
|
|
10952
|
+
other?: string | undefined;
|
|
10953
|
+
}, {
|
|
10954
|
+
values: string[];
|
|
10955
|
+
id: string;
|
|
10956
|
+
other?: string | undefined;
|
|
10957
|
+
}>, "many">>;
|
|
8856
10958
|
}, "strip", z.ZodTypeAny, {
|
|
8857
10959
|
requestId: string;
|
|
8858
10960
|
sessionUpdate: "ls_permission_resolved";
|
|
8859
10961
|
optionId?: string | undefined;
|
|
10962
|
+
answers?: {
|
|
10963
|
+
values: string[];
|
|
10964
|
+
id: string;
|
|
10965
|
+
other?: string | undefined;
|
|
10966
|
+
}[] | undefined;
|
|
8860
10967
|
}, {
|
|
8861
10968
|
requestId: string;
|
|
8862
10969
|
sessionUpdate: "ls_permission_resolved";
|
|
8863
10970
|
optionId?: string | undefined;
|
|
10971
|
+
answers?: {
|
|
10972
|
+
values: string[];
|
|
10973
|
+
id: string;
|
|
10974
|
+
other?: string | undefined;
|
|
10975
|
+
}[] | undefined;
|
|
8864
10976
|
}>, z.ZodObject<{
|
|
8865
10977
|
sessionUpdate: z.ZodLiteral<"ls_driver">;
|
|
8866
10978
|
driver: z.ZodEnum<["desktop", "remote", "none"]>;
|
|
@@ -8899,11 +11011,7 @@ export declare const notifications: {
|
|
|
8899
11011
|
hint?: string | undefined;
|
|
8900
11012
|
}>]>;
|
|
8901
11013
|
}, "strip", z.ZodTypeAny, {
|
|
8902
|
-
sessionId: string;
|
|
8903
|
-
seq: number;
|
|
8904
|
-
ts: number;
|
|
8905
11014
|
update: {
|
|
8906
|
-
sessionUpdate: "user_message_chunk";
|
|
8907
11015
|
content: {
|
|
8908
11016
|
type: "text";
|
|
8909
11017
|
text: string;
|
|
@@ -8918,10 +11026,9 @@ export declare const notifications: {
|
|
|
8918
11026
|
uri: string;
|
|
8919
11027
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
8920
11028
|
};
|
|
11029
|
+
sessionUpdate: "user_message_chunk";
|
|
8921
11030
|
messageId?: string | undefined;
|
|
8922
11031
|
} | {
|
|
8923
|
-
sessionUpdate: "agent_message_chunk";
|
|
8924
|
-
messageId: string;
|
|
8925
11032
|
content: {
|
|
8926
11033
|
type: "text";
|
|
8927
11034
|
text: string;
|
|
@@ -8936,10 +11043,10 @@ export declare const notifications: {
|
|
|
8936
11043
|
uri: string;
|
|
8937
11044
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
8938
11045
|
};
|
|
11046
|
+
sessionUpdate: "agent_message_chunk";
|
|
11047
|
+
messageId: string;
|
|
8939
11048
|
parentToolCallId?: string | undefined;
|
|
8940
11049
|
} | {
|
|
8941
|
-
sessionUpdate: "agent_thought_chunk";
|
|
8942
|
-
messageId: string;
|
|
8943
11050
|
content: {
|
|
8944
11051
|
type: "text";
|
|
8945
11052
|
text: string;
|
|
@@ -8954,6 +11061,8 @@ export declare const notifications: {
|
|
|
8954
11061
|
uri: string;
|
|
8955
11062
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
8956
11063
|
};
|
|
11064
|
+
sessionUpdate: "agent_thought_chunk";
|
|
11065
|
+
messageId: string;
|
|
8957
11066
|
parentToolCallId?: string | undefined;
|
|
8958
11067
|
} | {
|
|
8959
11068
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -8986,6 +11095,10 @@ export declare const notifications: {
|
|
|
8986
11095
|
} | {
|
|
8987
11096
|
type: "review";
|
|
8988
11097
|
phase: "started" | "finished";
|
|
11098
|
+
} | {
|
|
11099
|
+
type: "question";
|
|
11100
|
+
text: string;
|
|
11101
|
+
more?: number | undefined;
|
|
8989
11102
|
} | undefined;
|
|
8990
11103
|
content?: ({
|
|
8991
11104
|
type: "content";
|
|
@@ -9054,6 +11167,10 @@ export declare const notifications: {
|
|
|
9054
11167
|
} | {
|
|
9055
11168
|
type: "review";
|
|
9056
11169
|
phase: "started" | "finished";
|
|
11170
|
+
} | {
|
|
11171
|
+
type: "question";
|
|
11172
|
+
text: string;
|
|
11173
|
+
more?: number | undefined;
|
|
9057
11174
|
} | undefined;
|
|
9058
11175
|
content?: ({
|
|
9059
11176
|
type: "content";
|
|
@@ -9154,10 +11271,29 @@ export declare const notifications: {
|
|
|
9154
11271
|
sessionUpdate: "ls_permission";
|
|
9155
11272
|
toolCallId?: string | undefined;
|
|
9156
11273
|
detail?: string | undefined;
|
|
11274
|
+
questions?: {
|
|
11275
|
+
id: string;
|
|
11276
|
+
kind: "text" | "choice" | "choices";
|
|
11277
|
+
text: string;
|
|
11278
|
+
options?: {
|
|
11279
|
+
value: string;
|
|
11280
|
+
label: string;
|
|
11281
|
+
description?: string | undefined;
|
|
11282
|
+
}[] | undefined;
|
|
11283
|
+
other?: boolean | undefined;
|
|
11284
|
+
header?: string | undefined;
|
|
11285
|
+
secret?: boolean | undefined;
|
|
11286
|
+
required?: boolean | undefined;
|
|
11287
|
+
}[] | undefined;
|
|
9157
11288
|
} | {
|
|
9158
11289
|
requestId: string;
|
|
9159
11290
|
sessionUpdate: "ls_permission_resolved";
|
|
9160
11291
|
optionId?: string | undefined;
|
|
11292
|
+
answers?: {
|
|
11293
|
+
values: string[];
|
|
11294
|
+
id: string;
|
|
11295
|
+
other?: string | undefined;
|
|
11296
|
+
}[] | undefined;
|
|
9161
11297
|
} | {
|
|
9162
11298
|
driver: "remote" | "desktop" | "none";
|
|
9163
11299
|
sessionUpdate: "ls_driver";
|
|
@@ -9171,12 +11307,11 @@ export declare const notifications: {
|
|
|
9171
11307
|
sessionUpdate: "ls_error";
|
|
9172
11308
|
hint?: string | undefined;
|
|
9173
11309
|
};
|
|
9174
|
-
}, {
|
|
9175
11310
|
sessionId: string;
|
|
9176
11311
|
seq: number;
|
|
9177
11312
|
ts: number;
|
|
11313
|
+
}, {
|
|
9178
11314
|
update: {
|
|
9179
|
-
sessionUpdate: "user_message_chunk";
|
|
9180
11315
|
content: {
|
|
9181
11316
|
type: "text";
|
|
9182
11317
|
text: string;
|
|
@@ -9191,10 +11326,9 @@ export declare const notifications: {
|
|
|
9191
11326
|
uri: string;
|
|
9192
11327
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
9193
11328
|
};
|
|
11329
|
+
sessionUpdate: "user_message_chunk";
|
|
9194
11330
|
messageId?: string | undefined;
|
|
9195
11331
|
} | {
|
|
9196
|
-
sessionUpdate: "agent_message_chunk";
|
|
9197
|
-
messageId: string;
|
|
9198
11332
|
content: {
|
|
9199
11333
|
type: "text";
|
|
9200
11334
|
text: string;
|
|
@@ -9209,10 +11343,10 @@ export declare const notifications: {
|
|
|
9209
11343
|
uri: string;
|
|
9210
11344
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
9211
11345
|
};
|
|
11346
|
+
sessionUpdate: "agent_message_chunk";
|
|
11347
|
+
messageId: string;
|
|
9212
11348
|
parentToolCallId?: string | undefined;
|
|
9213
11349
|
} | {
|
|
9214
|
-
sessionUpdate: "agent_thought_chunk";
|
|
9215
|
-
messageId: string;
|
|
9216
11350
|
content: {
|
|
9217
11351
|
type: "text";
|
|
9218
11352
|
text: string;
|
|
@@ -9227,6 +11361,8 @@ export declare const notifications: {
|
|
|
9227
11361
|
uri: string;
|
|
9228
11362
|
kind?: "agent" | "file" | "skill" | undefined;
|
|
9229
11363
|
};
|
|
11364
|
+
sessionUpdate: "agent_thought_chunk";
|
|
11365
|
+
messageId: string;
|
|
9230
11366
|
parentToolCallId?: string | undefined;
|
|
9231
11367
|
} | {
|
|
9232
11368
|
status: "failed" | "pending" | "in_progress" | "completed";
|
|
@@ -9259,6 +11395,10 @@ export declare const notifications: {
|
|
|
9259
11395
|
} | {
|
|
9260
11396
|
type: "review";
|
|
9261
11397
|
phase: "started" | "finished";
|
|
11398
|
+
} | {
|
|
11399
|
+
type: "question";
|
|
11400
|
+
text: string;
|
|
11401
|
+
more?: number | undefined;
|
|
9262
11402
|
} | undefined;
|
|
9263
11403
|
content?: ({
|
|
9264
11404
|
type: "content";
|
|
@@ -9327,6 +11467,10 @@ export declare const notifications: {
|
|
|
9327
11467
|
} | {
|
|
9328
11468
|
type: "review";
|
|
9329
11469
|
phase: "started" | "finished";
|
|
11470
|
+
} | {
|
|
11471
|
+
type: "question";
|
|
11472
|
+
text: string;
|
|
11473
|
+
more?: number | undefined;
|
|
9330
11474
|
} | undefined;
|
|
9331
11475
|
content?: ({
|
|
9332
11476
|
type: "content";
|
|
@@ -9427,10 +11571,29 @@ export declare const notifications: {
|
|
|
9427
11571
|
sessionUpdate: "ls_permission";
|
|
9428
11572
|
toolCallId?: string | undefined;
|
|
9429
11573
|
detail?: string | undefined;
|
|
11574
|
+
questions?: {
|
|
11575
|
+
id: string;
|
|
11576
|
+
kind: "text" | "choice" | "choices";
|
|
11577
|
+
text: string;
|
|
11578
|
+
options?: {
|
|
11579
|
+
value: string;
|
|
11580
|
+
label: string;
|
|
11581
|
+
description?: string | undefined;
|
|
11582
|
+
}[] | undefined;
|
|
11583
|
+
other?: boolean | undefined;
|
|
11584
|
+
header?: string | undefined;
|
|
11585
|
+
secret?: boolean | undefined;
|
|
11586
|
+
required?: boolean | undefined;
|
|
11587
|
+
}[] | undefined;
|
|
9430
11588
|
} | {
|
|
9431
11589
|
requestId: string;
|
|
9432
11590
|
sessionUpdate: "ls_permission_resolved";
|
|
9433
11591
|
optionId?: string | undefined;
|
|
11592
|
+
answers?: {
|
|
11593
|
+
values: string[];
|
|
11594
|
+
id: string;
|
|
11595
|
+
other?: string | undefined;
|
|
11596
|
+
}[] | undefined;
|
|
9434
11597
|
} | {
|
|
9435
11598
|
driver: "remote" | "desktop" | "none";
|
|
9436
11599
|
sessionUpdate: "ls_driver";
|
|
@@ -9444,6 +11607,9 @@ export declare const notifications: {
|
|
|
9444
11607
|
sessionUpdate: "ls_error";
|
|
9445
11608
|
hint?: string | undefined;
|
|
9446
11609
|
};
|
|
11610
|
+
sessionId: string;
|
|
11611
|
+
seq: number;
|
|
11612
|
+
ts: number;
|
|
9447
11613
|
}>;
|
|
9448
11614
|
/**
|
|
9449
11615
|
* Sent before a subscription's backlog when it doesn't continue from the
|
|
@@ -9507,6 +11673,54 @@ export declare const notifications: {
|
|
|
9507
11673
|
name: string;
|
|
9508
11674
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
9509
11675
|
}>, "many">;
|
|
11676
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11677
|
+
id: z.ZodString;
|
|
11678
|
+
header: z.ZodOptional<z.ZodString>;
|
|
11679
|
+
text: z.ZodString;
|
|
11680
|
+
kind: z.ZodEnum<["choice", "choices", "text"]>;
|
|
11681
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11682
|
+
value: z.ZodString;
|
|
11683
|
+
label: z.ZodString;
|
|
11684
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11685
|
+
}, "strip", z.ZodTypeAny, {
|
|
11686
|
+
value: string;
|
|
11687
|
+
label: string;
|
|
11688
|
+
description?: string | undefined;
|
|
11689
|
+
}, {
|
|
11690
|
+
value: string;
|
|
11691
|
+
label: string;
|
|
11692
|
+
description?: string | undefined;
|
|
11693
|
+
}>, "many">>;
|
|
11694
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
11695
|
+
secret: z.ZodOptional<z.ZodBoolean>;
|
|
11696
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
11697
|
+
}, "strip", z.ZodTypeAny, {
|
|
11698
|
+
id: string;
|
|
11699
|
+
kind: "text" | "choice" | "choices";
|
|
11700
|
+
text: string;
|
|
11701
|
+
options?: {
|
|
11702
|
+
value: string;
|
|
11703
|
+
label: string;
|
|
11704
|
+
description?: string | undefined;
|
|
11705
|
+
}[] | undefined;
|
|
11706
|
+
other?: boolean | undefined;
|
|
11707
|
+
header?: string | undefined;
|
|
11708
|
+
secret?: boolean | undefined;
|
|
11709
|
+
required?: boolean | undefined;
|
|
11710
|
+
}, {
|
|
11711
|
+
id: string;
|
|
11712
|
+
kind: "text" | "choice" | "choices";
|
|
11713
|
+
text: string;
|
|
11714
|
+
options?: {
|
|
11715
|
+
value: string;
|
|
11716
|
+
label: string;
|
|
11717
|
+
description?: string | undefined;
|
|
11718
|
+
}[] | undefined;
|
|
11719
|
+
other?: boolean | undefined;
|
|
11720
|
+
header?: string | undefined;
|
|
11721
|
+
secret?: boolean | undefined;
|
|
11722
|
+
required?: boolean | undefined;
|
|
11723
|
+
}>, "many">>;
|
|
9510
11724
|
}, "strip", z.ZodTypeAny, {
|
|
9511
11725
|
options: {
|
|
9512
11726
|
optionId: string;
|
|
@@ -9517,6 +11731,20 @@ export declare const notifications: {
|
|
|
9517
11731
|
requestId: string;
|
|
9518
11732
|
toolCallId?: string | undefined;
|
|
9519
11733
|
detail?: string | undefined;
|
|
11734
|
+
questions?: {
|
|
11735
|
+
id: string;
|
|
11736
|
+
kind: "text" | "choice" | "choices";
|
|
11737
|
+
text: string;
|
|
11738
|
+
options?: {
|
|
11739
|
+
value: string;
|
|
11740
|
+
label: string;
|
|
11741
|
+
description?: string | undefined;
|
|
11742
|
+
}[] | undefined;
|
|
11743
|
+
other?: boolean | undefined;
|
|
11744
|
+
header?: string | undefined;
|
|
11745
|
+
secret?: boolean | undefined;
|
|
11746
|
+
required?: boolean | undefined;
|
|
11747
|
+
}[] | undefined;
|
|
9520
11748
|
}, {
|
|
9521
11749
|
options: {
|
|
9522
11750
|
optionId: string;
|
|
@@ -9527,6 +11755,20 @@ export declare const notifications: {
|
|
|
9527
11755
|
requestId: string;
|
|
9528
11756
|
toolCallId?: string | undefined;
|
|
9529
11757
|
detail?: string | undefined;
|
|
11758
|
+
questions?: {
|
|
11759
|
+
id: string;
|
|
11760
|
+
kind: "text" | "choice" | "choices";
|
|
11761
|
+
text: string;
|
|
11762
|
+
options?: {
|
|
11763
|
+
value: string;
|
|
11764
|
+
label: string;
|
|
11765
|
+
description?: string | undefined;
|
|
11766
|
+
}[] | undefined;
|
|
11767
|
+
other?: boolean | undefined;
|
|
11768
|
+
header?: string | undefined;
|
|
11769
|
+
secret?: boolean | undefined;
|
|
11770
|
+
required?: boolean | undefined;
|
|
11771
|
+
}[] | undefined;
|
|
9530
11772
|
}>>;
|
|
9531
11773
|
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9532
11774
|
clientMessageId: z.ZodString;
|
|
@@ -9534,13 +11776,23 @@ export declare const notifications: {
|
|
|
9534
11776
|
images: z.ZodNumber;
|
|
9535
11777
|
}, "strip", z.ZodTypeAny, {
|
|
9536
11778
|
images: number;
|
|
9537
|
-
clientMessageId: string;
|
|
9538
11779
|
text: string;
|
|
11780
|
+
clientMessageId: string;
|
|
9539
11781
|
}, {
|
|
9540
11782
|
images: number;
|
|
9541
|
-
clientMessageId: string;
|
|
9542
11783
|
text: string;
|
|
11784
|
+
clientMessageId: string;
|
|
9543
11785
|
}>, "many">>;
|
|
11786
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
11787
|
+
branch: z.ZodString;
|
|
11788
|
+
source: z.ZodString;
|
|
11789
|
+
}, "strip", z.ZodTypeAny, {
|
|
11790
|
+
branch: string;
|
|
11791
|
+
source: string;
|
|
11792
|
+
}, {
|
|
11793
|
+
branch: string;
|
|
11794
|
+
source: string;
|
|
11795
|
+
}>>;
|
|
9544
11796
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
9545
11797
|
total: z.ZodNumber;
|
|
9546
11798
|
running: z.ZodNumber;
|
|
@@ -9581,12 +11833,30 @@ export declare const notifications: {
|
|
|
9581
11833
|
requestId: string;
|
|
9582
11834
|
toolCallId?: string | undefined;
|
|
9583
11835
|
detail?: string | undefined;
|
|
11836
|
+
questions?: {
|
|
11837
|
+
id: string;
|
|
11838
|
+
kind: "text" | "choice" | "choices";
|
|
11839
|
+
text: string;
|
|
11840
|
+
options?: {
|
|
11841
|
+
value: string;
|
|
11842
|
+
label: string;
|
|
11843
|
+
description?: string | undefined;
|
|
11844
|
+
}[] | undefined;
|
|
11845
|
+
other?: boolean | undefined;
|
|
11846
|
+
header?: string | undefined;
|
|
11847
|
+
secret?: boolean | undefined;
|
|
11848
|
+
required?: boolean | undefined;
|
|
11849
|
+
}[] | undefined;
|
|
9584
11850
|
} | undefined;
|
|
9585
11851
|
queue?: {
|
|
9586
11852
|
images: number;
|
|
9587
|
-
clientMessageId: string;
|
|
9588
11853
|
text: string;
|
|
11854
|
+
clientMessageId: string;
|
|
9589
11855
|
}[] | undefined;
|
|
11856
|
+
worktree?: {
|
|
11857
|
+
branch: string;
|
|
11858
|
+
source: string;
|
|
11859
|
+
} | undefined;
|
|
9590
11860
|
subagents?: {
|
|
9591
11861
|
running: number;
|
|
9592
11862
|
total: number;
|
|
@@ -9621,12 +11891,30 @@ export declare const notifications: {
|
|
|
9621
11891
|
requestId: string;
|
|
9622
11892
|
toolCallId?: string | undefined;
|
|
9623
11893
|
detail?: string | undefined;
|
|
11894
|
+
questions?: {
|
|
11895
|
+
id: string;
|
|
11896
|
+
kind: "text" | "choice" | "choices";
|
|
11897
|
+
text: string;
|
|
11898
|
+
options?: {
|
|
11899
|
+
value: string;
|
|
11900
|
+
label: string;
|
|
11901
|
+
description?: string | undefined;
|
|
11902
|
+
}[] | undefined;
|
|
11903
|
+
other?: boolean | undefined;
|
|
11904
|
+
header?: string | undefined;
|
|
11905
|
+
secret?: boolean | undefined;
|
|
11906
|
+
required?: boolean | undefined;
|
|
11907
|
+
}[] | undefined;
|
|
9624
11908
|
} | undefined;
|
|
9625
11909
|
queue?: {
|
|
9626
11910
|
images: number;
|
|
9627
|
-
clientMessageId: string;
|
|
9628
11911
|
text: string;
|
|
11912
|
+
clientMessageId: string;
|
|
9629
11913
|
}[] | undefined;
|
|
11914
|
+
worktree?: {
|
|
11915
|
+
branch: string;
|
|
11916
|
+
source: string;
|
|
11917
|
+
} | undefined;
|
|
9630
11918
|
subagents?: {
|
|
9631
11919
|
running: number;
|
|
9632
11920
|
total: number;
|
|
@@ -9663,12 +11951,30 @@ export declare const notifications: {
|
|
|
9663
11951
|
requestId: string;
|
|
9664
11952
|
toolCallId?: string | undefined;
|
|
9665
11953
|
detail?: string | undefined;
|
|
11954
|
+
questions?: {
|
|
11955
|
+
id: string;
|
|
11956
|
+
kind: "text" | "choice" | "choices";
|
|
11957
|
+
text: string;
|
|
11958
|
+
options?: {
|
|
11959
|
+
value: string;
|
|
11960
|
+
label: string;
|
|
11961
|
+
description?: string | undefined;
|
|
11962
|
+
}[] | undefined;
|
|
11963
|
+
other?: boolean | undefined;
|
|
11964
|
+
header?: string | undefined;
|
|
11965
|
+
secret?: boolean | undefined;
|
|
11966
|
+
required?: boolean | undefined;
|
|
11967
|
+
}[] | undefined;
|
|
9666
11968
|
} | undefined;
|
|
9667
11969
|
queue?: {
|
|
9668
11970
|
images: number;
|
|
9669
|
-
clientMessageId: string;
|
|
9670
11971
|
text: string;
|
|
11972
|
+
clientMessageId: string;
|
|
9671
11973
|
}[] | undefined;
|
|
11974
|
+
worktree?: {
|
|
11975
|
+
branch: string;
|
|
11976
|
+
source: string;
|
|
11977
|
+
} | undefined;
|
|
9672
11978
|
subagents?: {
|
|
9673
11979
|
running: number;
|
|
9674
11980
|
total: number;
|
|
@@ -9705,12 +12011,30 @@ export declare const notifications: {
|
|
|
9705
12011
|
requestId: string;
|
|
9706
12012
|
toolCallId?: string | undefined;
|
|
9707
12013
|
detail?: string | undefined;
|
|
12014
|
+
questions?: {
|
|
12015
|
+
id: string;
|
|
12016
|
+
kind: "text" | "choice" | "choices";
|
|
12017
|
+
text: string;
|
|
12018
|
+
options?: {
|
|
12019
|
+
value: string;
|
|
12020
|
+
label: string;
|
|
12021
|
+
description?: string | undefined;
|
|
12022
|
+
}[] | undefined;
|
|
12023
|
+
other?: boolean | undefined;
|
|
12024
|
+
header?: string | undefined;
|
|
12025
|
+
secret?: boolean | undefined;
|
|
12026
|
+
required?: boolean | undefined;
|
|
12027
|
+
}[] | undefined;
|
|
9708
12028
|
} | undefined;
|
|
9709
12029
|
queue?: {
|
|
9710
12030
|
images: number;
|
|
9711
|
-
clientMessageId: string;
|
|
9712
12031
|
text: string;
|
|
12032
|
+
clientMessageId: string;
|
|
9713
12033
|
}[] | undefined;
|
|
12034
|
+
worktree?: {
|
|
12035
|
+
branch: string;
|
|
12036
|
+
source: string;
|
|
12037
|
+
} | undefined;
|
|
9714
12038
|
subagents?: {
|
|
9715
12039
|
running: number;
|
|
9716
12040
|
total: number;
|
|
@@ -9738,11 +12062,11 @@ export declare const notifications: {
|
|
|
9738
12062
|
sessionId: z.ZodString;
|
|
9739
12063
|
line: z.ZodString;
|
|
9740
12064
|
}, "strip", z.ZodTypeAny, {
|
|
9741
|
-
sessionId: string;
|
|
9742
12065
|
line: string;
|
|
9743
|
-
}, {
|
|
9744
12066
|
sessionId: string;
|
|
12067
|
+
}, {
|
|
9745
12068
|
line: string;
|
|
12069
|
+
sessionId: string;
|
|
9746
12070
|
}>;
|
|
9747
12071
|
readonly "pairing.done": z.ZodObject<{
|
|
9748
12072
|
device: z.ZodObject<{
|
|
@@ -9865,12 +12189,12 @@ export declare const notifications: {
|
|
|
9865
12189
|
data: z.ZodString;
|
|
9866
12190
|
}, "strip", z.ZodTypeAny, {
|
|
9867
12191
|
data: string;
|
|
9868
|
-
seq: number;
|
|
9869
12192
|
terminalId: string;
|
|
12193
|
+
seq: number;
|
|
9870
12194
|
}, {
|
|
9871
12195
|
data: string;
|
|
9872
|
-
seq: number;
|
|
9873
12196
|
terminalId: string;
|
|
12197
|
+
seq: number;
|
|
9874
12198
|
}>;
|
|
9875
12199
|
/** A terminal's list entry changed (title, size, exit), or it was closed (`closed`). */
|
|
9876
12200
|
readonly "terminal.changed": z.ZodObject<{
|