@linkshell/host 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/host/src/drivers/acp/driver.d.ts +8 -0
- package/dist/host/src/drivers/acp/driver.js +56 -5
- package/dist/host/src/drivers/acp/driver.js.map +1 -1
- package/dist/host/src/drivers/acp/mapper.js +5 -1
- package/dist/host/src/drivers/acp/mapper.js.map +1 -1
- package/dist/host/src/drivers/claude/driver.d.ts +24 -1
- package/dist/host/src/drivers/claude/driver.js +168 -4
- package/dist/host/src/drivers/claude/driver.js.map +1 -1
- package/dist/host/src/drivers/claude/transcript.d.ts +7 -1
- package/dist/host/src/drivers/claude/transcript.js +23 -5
- package/dist/host/src/drivers/claude/transcript.js.map +1 -1
- package/dist/host/src/drivers/codex/driver.d.ts +6 -0
- package/dist/host/src/drivers/codex/driver.js +30 -0
- package/dist/host/src/drivers/codex/driver.js.map +1 -1
- package/dist/host/src/drivers/types.d.ts +11 -1
- package/dist/host/src/gateway.js +1 -1
- package/dist/host/src/gateway.js.map +1 -1
- package/dist/host/src/host.js +11 -3
- package/dist/host/src/host.js.map +1 -1
- package/dist/host/src/hub.d.ts +8 -0
- package/dist/host/src/hub.js +91 -2
- package/dist/host/src/hub.js.map +1 -1
- package/dist/host/src/index.d.ts +1 -1
- package/dist/host/src/index.js +1 -1
- package/dist/host/src/index.js.map +1 -1
- package/dist/host/src/legacy.d.ts +7 -0
- package/dist/host/src/legacy.js +36 -0
- package/dist/host/src/legacy.js.map +1 -0
- package/dist/host/src/rpc/server.js +12 -0
- package/dist/host/src/rpc/server.js.map +1 -1
- package/dist/host/src/shell-env.d.ts +6 -0
- package/dist/host/src/shell-env.js +48 -0
- package/dist/host/src/shell-env.js.map +1 -1
- package/dist/host/src/store.d.ts +6 -0
- package/dist/host/src/store.js +34 -1
- package/dist/host/src/store.js.map +1 -1
- package/dist/host/src/terminals.js +19 -4
- package/dist/host/src/terminals.js.map +1 -1
- package/dist/host/tsconfig.tsbuildinfo +1 -1
- package/dist/wire/src/model.d.ts +47 -0
- package/dist/wire/src/model.js +13 -0
- package/dist/wire/src/model.js.map +1 -1
- package/dist/wire/src/rpc.d.ts +838 -173
- package/dist/wire/src/rpc.js +25 -0
- package/dist/wire/src/rpc.js.map +1 -1
- package/package.json +3 -2
package/dist/wire/src/rpc.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export declare const methods: {
|
|
|
87
87
|
hostname: z.ZodString;
|
|
88
88
|
platform: z.ZodString;
|
|
89
89
|
hostVersion: z.ZodString;
|
|
90
|
+
home: z.ZodOptional<z.ZodString>;
|
|
90
91
|
agents: z.ZodArray<z.ZodObject<{
|
|
91
92
|
id: z.ZodString;
|
|
92
93
|
label: z.ZodString;
|
|
@@ -202,6 +203,7 @@ export declare const methods: {
|
|
|
202
203
|
hint?: string | undefined;
|
|
203
204
|
} | undefined;
|
|
204
205
|
}[];
|
|
206
|
+
home?: string | undefined;
|
|
205
207
|
}, {
|
|
206
208
|
machineId: string;
|
|
207
209
|
hostname: string;
|
|
@@ -229,6 +231,7 @@ export declare const methods: {
|
|
|
229
231
|
hint?: string | undefined;
|
|
230
232
|
} | undefined;
|
|
231
233
|
}[];
|
|
234
|
+
home?: string | undefined;
|
|
232
235
|
}>;
|
|
233
236
|
};
|
|
234
237
|
readonly "projects.list": {
|
|
@@ -355,6 +358,19 @@ export declare const methods: {
|
|
|
355
358
|
toolCallId?: string | undefined;
|
|
356
359
|
detail?: string | undefined;
|
|
357
360
|
}>>;
|
|
361
|
+
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
362
|
+
clientMessageId: z.ZodString;
|
|
363
|
+
text: z.ZodString;
|
|
364
|
+
images: z.ZodNumber;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
images: number;
|
|
367
|
+
clientMessageId: string;
|
|
368
|
+
text: string;
|
|
369
|
+
}, {
|
|
370
|
+
images: number;
|
|
371
|
+
clientMessageId: string;
|
|
372
|
+
text: string;
|
|
373
|
+
}>, "many">>;
|
|
358
374
|
}, "strip", z.ZodTypeAny, {
|
|
359
375
|
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
360
376
|
id: string;
|
|
@@ -386,6 +402,11 @@ export declare const methods: {
|
|
|
386
402
|
toolCallId?: string | undefined;
|
|
387
403
|
detail?: string | undefined;
|
|
388
404
|
} | undefined;
|
|
405
|
+
queue?: {
|
|
406
|
+
images: number;
|
|
407
|
+
clientMessageId: string;
|
|
408
|
+
text: string;
|
|
409
|
+
}[] | undefined;
|
|
389
410
|
}, {
|
|
390
411
|
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
391
412
|
id: string;
|
|
@@ -417,6 +438,11 @@ export declare const methods: {
|
|
|
417
438
|
toolCallId?: string | undefined;
|
|
418
439
|
detail?: string | undefined;
|
|
419
440
|
} | undefined;
|
|
441
|
+
queue?: {
|
|
442
|
+
images: number;
|
|
443
|
+
clientMessageId: string;
|
|
444
|
+
text: string;
|
|
445
|
+
}[] | undefined;
|
|
420
446
|
}>, "many">;
|
|
421
447
|
nextBefore: z.ZodOptional<z.ZodNumber>;
|
|
422
448
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -451,6 +477,11 @@ export declare const methods: {
|
|
|
451
477
|
toolCallId?: string | undefined;
|
|
452
478
|
detail?: string | undefined;
|
|
453
479
|
} | undefined;
|
|
480
|
+
queue?: {
|
|
481
|
+
images: number;
|
|
482
|
+
clientMessageId: string;
|
|
483
|
+
text: string;
|
|
484
|
+
}[] | undefined;
|
|
454
485
|
}[];
|
|
455
486
|
nextBefore?: number | undefined;
|
|
456
487
|
}, {
|
|
@@ -485,6 +516,11 @@ export declare const methods: {
|
|
|
485
516
|
toolCallId?: string | undefined;
|
|
486
517
|
detail?: string | undefined;
|
|
487
518
|
} | undefined;
|
|
519
|
+
queue?: {
|
|
520
|
+
images: number;
|
|
521
|
+
clientMessageId: string;
|
|
522
|
+
text: string;
|
|
523
|
+
}[] | undefined;
|
|
488
524
|
}[];
|
|
489
525
|
nextBefore?: number | undefined;
|
|
490
526
|
}>;
|
|
@@ -536,43 +572,692 @@ export declare const methods: {
|
|
|
536
572
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
537
573
|
model: z.ZodOptional<z.ZodString>;
|
|
538
574
|
}, "strip", z.ZodTypeAny, {
|
|
539
|
-
agent: string;
|
|
540
|
-
cwd: string;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
575
|
+
agent: string;
|
|
576
|
+
cwd: string;
|
|
577
|
+
clientMessageId?: string | undefined;
|
|
578
|
+
model?: string | undefined;
|
|
579
|
+
prompt?: ({
|
|
580
|
+
type: "text";
|
|
581
|
+
text: string;
|
|
582
|
+
} | {
|
|
583
|
+
type: "image";
|
|
584
|
+
mimeType: string;
|
|
585
|
+
data?: string | undefined;
|
|
586
|
+
uri?: string | undefined;
|
|
587
|
+
} | {
|
|
588
|
+
type: "resource_link";
|
|
589
|
+
name: string;
|
|
590
|
+
uri: string;
|
|
591
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
592
|
+
})[] | undefined;
|
|
593
|
+
}, {
|
|
594
|
+
agent: string;
|
|
595
|
+
cwd: string;
|
|
596
|
+
clientMessageId?: string | undefined;
|
|
597
|
+
model?: string | undefined;
|
|
598
|
+
prompt?: ({
|
|
599
|
+
type: "text";
|
|
600
|
+
text: string;
|
|
601
|
+
} | {
|
|
602
|
+
type: "image";
|
|
603
|
+
mimeType: string;
|
|
604
|
+
data?: string | undefined;
|
|
605
|
+
uri?: string | undefined;
|
|
606
|
+
} | {
|
|
607
|
+
type: "resource_link";
|
|
608
|
+
name: string;
|
|
609
|
+
uri: string;
|
|
610
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
611
|
+
})[] | undefined;
|
|
612
|
+
}>;
|
|
613
|
+
readonly result: z.ZodObject<{
|
|
614
|
+
session: z.ZodObject<{
|
|
615
|
+
id: z.ZodString;
|
|
616
|
+
agent: z.ZodString;
|
|
617
|
+
nativeId: z.ZodString;
|
|
618
|
+
title: z.ZodOptional<z.ZodString>;
|
|
619
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
620
|
+
cwd: z.ZodString;
|
|
621
|
+
state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
|
|
622
|
+
driver: z.ZodOptional<z.ZodEnum<["desktop", "remote", "none"]>>;
|
|
623
|
+
pendingPermissions: z.ZodNumber;
|
|
624
|
+
model: z.ZodOptional<z.ZodString>;
|
|
625
|
+
createdAt: z.ZodNumber;
|
|
626
|
+
updatedAt: z.ZodNumber;
|
|
627
|
+
lastSeq: z.ZodNumber;
|
|
628
|
+
archived: z.ZodBoolean;
|
|
629
|
+
activity: z.ZodOptional<z.ZodObject<{
|
|
630
|
+
kind: z.ZodEnum<["thinking", "responding", "tool"]>;
|
|
631
|
+
title: z.ZodOptional<z.ZodString>;
|
|
632
|
+
toolKind: z.ZodOptional<z.ZodEnum<["read", "edit", "delete", "move", "search", "execute", "think", "fetch", "other"]>>;
|
|
633
|
+
}, "strip", z.ZodTypeAny, {
|
|
634
|
+
kind: "thinking" | "responding" | "tool";
|
|
635
|
+
title?: string | undefined;
|
|
636
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
637
|
+
}, {
|
|
638
|
+
kind: "thinking" | "responding" | "tool";
|
|
639
|
+
title?: string | undefined;
|
|
640
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
641
|
+
}>>;
|
|
642
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
643
|
+
requestId: z.ZodString;
|
|
644
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
645
|
+
title: z.ZodString;
|
|
646
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
647
|
+
options: z.ZodArray<z.ZodObject<{
|
|
648
|
+
optionId: z.ZodString;
|
|
649
|
+
name: z.ZodString;
|
|
650
|
+
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
651
|
+
}, "strip", z.ZodTypeAny, {
|
|
652
|
+
optionId: string;
|
|
653
|
+
name: string;
|
|
654
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
655
|
+
}, {
|
|
656
|
+
optionId: string;
|
|
657
|
+
name: string;
|
|
658
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
659
|
+
}>, "many">;
|
|
660
|
+
}, "strip", z.ZodTypeAny, {
|
|
661
|
+
options: {
|
|
662
|
+
optionId: string;
|
|
663
|
+
name: string;
|
|
664
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
665
|
+
}[];
|
|
666
|
+
title: string;
|
|
667
|
+
requestId: string;
|
|
668
|
+
toolCallId?: string | undefined;
|
|
669
|
+
detail?: string | undefined;
|
|
670
|
+
}, {
|
|
671
|
+
options: {
|
|
672
|
+
optionId: string;
|
|
673
|
+
name: string;
|
|
674
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
675
|
+
}[];
|
|
676
|
+
title: string;
|
|
677
|
+
requestId: string;
|
|
678
|
+
toolCallId?: string | undefined;
|
|
679
|
+
detail?: string | undefined;
|
|
680
|
+
}>>;
|
|
681
|
+
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
682
|
+
clientMessageId: z.ZodString;
|
|
683
|
+
text: z.ZodString;
|
|
684
|
+
images: z.ZodNumber;
|
|
685
|
+
}, "strip", z.ZodTypeAny, {
|
|
686
|
+
images: number;
|
|
687
|
+
clientMessageId: string;
|
|
688
|
+
text: string;
|
|
689
|
+
}, {
|
|
690
|
+
images: number;
|
|
691
|
+
clientMessageId: string;
|
|
692
|
+
text: string;
|
|
693
|
+
}>, "many">>;
|
|
694
|
+
}, "strip", z.ZodTypeAny, {
|
|
695
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
696
|
+
id: string;
|
|
697
|
+
agent: string;
|
|
698
|
+
nativeId: string;
|
|
699
|
+
cwd: string;
|
|
700
|
+
pendingPermissions: number;
|
|
701
|
+
createdAt: number;
|
|
702
|
+
updatedAt: number;
|
|
703
|
+
lastSeq: number;
|
|
704
|
+
archived: boolean;
|
|
705
|
+
title?: string | undefined;
|
|
706
|
+
preview?: string | undefined;
|
|
707
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
708
|
+
model?: string | undefined;
|
|
709
|
+
activity?: {
|
|
710
|
+
kind: "thinking" | "responding" | "tool";
|
|
711
|
+
title?: string | undefined;
|
|
712
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
713
|
+
} | undefined;
|
|
714
|
+
permission?: {
|
|
715
|
+
options: {
|
|
716
|
+
optionId: string;
|
|
717
|
+
name: string;
|
|
718
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
719
|
+
}[];
|
|
720
|
+
title: string;
|
|
721
|
+
requestId: string;
|
|
722
|
+
toolCallId?: string | undefined;
|
|
723
|
+
detail?: string | undefined;
|
|
724
|
+
} | undefined;
|
|
725
|
+
queue?: {
|
|
726
|
+
images: number;
|
|
727
|
+
clientMessageId: string;
|
|
728
|
+
text: string;
|
|
729
|
+
}[] | undefined;
|
|
730
|
+
}, {
|
|
731
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
732
|
+
id: string;
|
|
733
|
+
agent: string;
|
|
734
|
+
nativeId: string;
|
|
735
|
+
cwd: string;
|
|
736
|
+
pendingPermissions: number;
|
|
737
|
+
createdAt: number;
|
|
738
|
+
updatedAt: number;
|
|
739
|
+
lastSeq: number;
|
|
740
|
+
archived: boolean;
|
|
741
|
+
title?: string | undefined;
|
|
742
|
+
preview?: string | undefined;
|
|
743
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
744
|
+
model?: string | undefined;
|
|
745
|
+
activity?: {
|
|
746
|
+
kind: "thinking" | "responding" | "tool";
|
|
747
|
+
title?: string | undefined;
|
|
748
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
749
|
+
} | undefined;
|
|
750
|
+
permission?: {
|
|
751
|
+
options: {
|
|
752
|
+
optionId: string;
|
|
753
|
+
name: string;
|
|
754
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
755
|
+
}[];
|
|
756
|
+
title: string;
|
|
757
|
+
requestId: string;
|
|
758
|
+
toolCallId?: string | undefined;
|
|
759
|
+
detail?: string | undefined;
|
|
760
|
+
} | undefined;
|
|
761
|
+
queue?: {
|
|
762
|
+
images: number;
|
|
763
|
+
clientMessageId: string;
|
|
764
|
+
text: string;
|
|
765
|
+
}[] | undefined;
|
|
766
|
+
}>;
|
|
767
|
+
}, "strip", z.ZodTypeAny, {
|
|
768
|
+
session: {
|
|
769
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
770
|
+
id: string;
|
|
771
|
+
agent: string;
|
|
772
|
+
nativeId: string;
|
|
773
|
+
cwd: string;
|
|
774
|
+
pendingPermissions: number;
|
|
775
|
+
createdAt: number;
|
|
776
|
+
updatedAt: number;
|
|
777
|
+
lastSeq: number;
|
|
778
|
+
archived: boolean;
|
|
779
|
+
title?: string | undefined;
|
|
780
|
+
preview?: string | undefined;
|
|
781
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
782
|
+
model?: string | undefined;
|
|
783
|
+
activity?: {
|
|
784
|
+
kind: "thinking" | "responding" | "tool";
|
|
785
|
+
title?: string | undefined;
|
|
786
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
787
|
+
} | undefined;
|
|
788
|
+
permission?: {
|
|
789
|
+
options: {
|
|
790
|
+
optionId: string;
|
|
791
|
+
name: string;
|
|
792
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
793
|
+
}[];
|
|
794
|
+
title: string;
|
|
795
|
+
requestId: string;
|
|
796
|
+
toolCallId?: string | undefined;
|
|
797
|
+
detail?: string | undefined;
|
|
798
|
+
} | undefined;
|
|
799
|
+
queue?: {
|
|
800
|
+
images: number;
|
|
801
|
+
clientMessageId: string;
|
|
802
|
+
text: string;
|
|
803
|
+
}[] | undefined;
|
|
804
|
+
};
|
|
805
|
+
}, {
|
|
806
|
+
session: {
|
|
807
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
808
|
+
id: string;
|
|
809
|
+
agent: string;
|
|
810
|
+
nativeId: string;
|
|
811
|
+
cwd: string;
|
|
812
|
+
pendingPermissions: number;
|
|
813
|
+
createdAt: number;
|
|
814
|
+
updatedAt: number;
|
|
815
|
+
lastSeq: number;
|
|
816
|
+
archived: boolean;
|
|
817
|
+
title?: string | undefined;
|
|
818
|
+
preview?: string | undefined;
|
|
819
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
820
|
+
model?: string | undefined;
|
|
821
|
+
activity?: {
|
|
822
|
+
kind: "thinking" | "responding" | "tool";
|
|
823
|
+
title?: string | undefined;
|
|
824
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
825
|
+
} | undefined;
|
|
826
|
+
permission?: {
|
|
827
|
+
options: {
|
|
828
|
+
optionId: string;
|
|
829
|
+
name: string;
|
|
830
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
831
|
+
}[];
|
|
832
|
+
title: string;
|
|
833
|
+
requestId: string;
|
|
834
|
+
toolCallId?: string | undefined;
|
|
835
|
+
detail?: string | undefined;
|
|
836
|
+
} | undefined;
|
|
837
|
+
queue?: {
|
|
838
|
+
images: number;
|
|
839
|
+
clientMessageId: string;
|
|
840
|
+
text: string;
|
|
841
|
+
}[] | undefined;
|
|
842
|
+
};
|
|
843
|
+
}>;
|
|
844
|
+
};
|
|
845
|
+
readonly "sessions.subscribe": {
|
|
846
|
+
readonly params: z.ZodObject<{
|
|
847
|
+
sessionId: z.ZodString;
|
|
848
|
+
/** Last seq the client already has; 0 for a fresh subscription. */
|
|
849
|
+
fromSeq: z.ZodNumber;
|
|
850
|
+
}, "strip", z.ZodTypeAny, {
|
|
851
|
+
sessionId: string;
|
|
852
|
+
fromSeq: number;
|
|
853
|
+
}, {
|
|
854
|
+
sessionId: string;
|
|
855
|
+
fromSeq: number;
|
|
856
|
+
}>;
|
|
857
|
+
readonly result: z.ZodObject<{
|
|
858
|
+
session: z.ZodObject<{
|
|
859
|
+
id: z.ZodString;
|
|
860
|
+
agent: z.ZodString;
|
|
861
|
+
nativeId: z.ZodString;
|
|
862
|
+
title: z.ZodOptional<z.ZodString>;
|
|
863
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
864
|
+
cwd: z.ZodString;
|
|
865
|
+
state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
|
|
866
|
+
driver: z.ZodOptional<z.ZodEnum<["desktop", "remote", "none"]>>;
|
|
867
|
+
pendingPermissions: z.ZodNumber;
|
|
868
|
+
model: z.ZodOptional<z.ZodString>;
|
|
869
|
+
createdAt: z.ZodNumber;
|
|
870
|
+
updatedAt: z.ZodNumber;
|
|
871
|
+
lastSeq: z.ZodNumber;
|
|
872
|
+
archived: z.ZodBoolean;
|
|
873
|
+
activity: z.ZodOptional<z.ZodObject<{
|
|
874
|
+
kind: z.ZodEnum<["thinking", "responding", "tool"]>;
|
|
875
|
+
title: z.ZodOptional<z.ZodString>;
|
|
876
|
+
toolKind: z.ZodOptional<z.ZodEnum<["read", "edit", "delete", "move", "search", "execute", "think", "fetch", "other"]>>;
|
|
877
|
+
}, "strip", z.ZodTypeAny, {
|
|
878
|
+
kind: "thinking" | "responding" | "tool";
|
|
879
|
+
title?: string | undefined;
|
|
880
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
881
|
+
}, {
|
|
882
|
+
kind: "thinking" | "responding" | "tool";
|
|
883
|
+
title?: string | undefined;
|
|
884
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
885
|
+
}>>;
|
|
886
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
887
|
+
requestId: z.ZodString;
|
|
888
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
889
|
+
title: z.ZodString;
|
|
890
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
891
|
+
options: z.ZodArray<z.ZodObject<{
|
|
892
|
+
optionId: z.ZodString;
|
|
893
|
+
name: z.ZodString;
|
|
894
|
+
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
895
|
+
}, "strip", z.ZodTypeAny, {
|
|
896
|
+
optionId: string;
|
|
897
|
+
name: string;
|
|
898
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
899
|
+
}, {
|
|
900
|
+
optionId: string;
|
|
901
|
+
name: string;
|
|
902
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
903
|
+
}>, "many">;
|
|
904
|
+
}, "strip", z.ZodTypeAny, {
|
|
905
|
+
options: {
|
|
906
|
+
optionId: string;
|
|
907
|
+
name: string;
|
|
908
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
909
|
+
}[];
|
|
910
|
+
title: string;
|
|
911
|
+
requestId: string;
|
|
912
|
+
toolCallId?: string | undefined;
|
|
913
|
+
detail?: string | undefined;
|
|
914
|
+
}, {
|
|
915
|
+
options: {
|
|
916
|
+
optionId: string;
|
|
917
|
+
name: string;
|
|
918
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
919
|
+
}[];
|
|
920
|
+
title: string;
|
|
921
|
+
requestId: string;
|
|
922
|
+
toolCallId?: string | undefined;
|
|
923
|
+
detail?: string | undefined;
|
|
924
|
+
}>>;
|
|
925
|
+
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
926
|
+
clientMessageId: z.ZodString;
|
|
927
|
+
text: z.ZodString;
|
|
928
|
+
images: z.ZodNumber;
|
|
929
|
+
}, "strip", z.ZodTypeAny, {
|
|
930
|
+
images: number;
|
|
931
|
+
clientMessageId: string;
|
|
932
|
+
text: string;
|
|
933
|
+
}, {
|
|
934
|
+
images: number;
|
|
935
|
+
clientMessageId: string;
|
|
936
|
+
text: string;
|
|
937
|
+
}>, "many">>;
|
|
938
|
+
}, "strip", z.ZodTypeAny, {
|
|
939
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
940
|
+
id: string;
|
|
941
|
+
agent: string;
|
|
942
|
+
nativeId: string;
|
|
943
|
+
cwd: string;
|
|
944
|
+
pendingPermissions: number;
|
|
945
|
+
createdAt: number;
|
|
946
|
+
updatedAt: number;
|
|
947
|
+
lastSeq: number;
|
|
948
|
+
archived: boolean;
|
|
949
|
+
title?: string | undefined;
|
|
950
|
+
preview?: string | undefined;
|
|
951
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
952
|
+
model?: string | undefined;
|
|
953
|
+
activity?: {
|
|
954
|
+
kind: "thinking" | "responding" | "tool";
|
|
955
|
+
title?: string | undefined;
|
|
956
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
957
|
+
} | undefined;
|
|
958
|
+
permission?: {
|
|
959
|
+
options: {
|
|
960
|
+
optionId: string;
|
|
961
|
+
name: string;
|
|
962
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
963
|
+
}[];
|
|
964
|
+
title: string;
|
|
965
|
+
requestId: string;
|
|
966
|
+
toolCallId?: string | undefined;
|
|
967
|
+
detail?: string | undefined;
|
|
968
|
+
} | undefined;
|
|
969
|
+
queue?: {
|
|
970
|
+
images: number;
|
|
971
|
+
clientMessageId: string;
|
|
972
|
+
text: string;
|
|
973
|
+
}[] | undefined;
|
|
974
|
+
}, {
|
|
975
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
976
|
+
id: string;
|
|
977
|
+
agent: string;
|
|
978
|
+
nativeId: string;
|
|
979
|
+
cwd: string;
|
|
980
|
+
pendingPermissions: number;
|
|
981
|
+
createdAt: number;
|
|
982
|
+
updatedAt: number;
|
|
983
|
+
lastSeq: number;
|
|
984
|
+
archived: boolean;
|
|
985
|
+
title?: string | undefined;
|
|
986
|
+
preview?: string | undefined;
|
|
987
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
988
|
+
model?: string | undefined;
|
|
989
|
+
activity?: {
|
|
990
|
+
kind: "thinking" | "responding" | "tool";
|
|
991
|
+
title?: string | undefined;
|
|
992
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
993
|
+
} | undefined;
|
|
994
|
+
permission?: {
|
|
995
|
+
options: {
|
|
996
|
+
optionId: string;
|
|
997
|
+
name: string;
|
|
998
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
999
|
+
}[];
|
|
1000
|
+
title: string;
|
|
1001
|
+
requestId: string;
|
|
1002
|
+
toolCallId?: string | undefined;
|
|
1003
|
+
detail?: string | undefined;
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
queue?: {
|
|
1006
|
+
images: number;
|
|
1007
|
+
clientMessageId: string;
|
|
1008
|
+
text: string;
|
|
1009
|
+
}[] | undefined;
|
|
1010
|
+
}>;
|
|
1011
|
+
}, "strip", z.ZodTypeAny, {
|
|
1012
|
+
session: {
|
|
1013
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1014
|
+
id: string;
|
|
1015
|
+
agent: string;
|
|
1016
|
+
nativeId: string;
|
|
1017
|
+
cwd: string;
|
|
1018
|
+
pendingPermissions: number;
|
|
1019
|
+
createdAt: number;
|
|
1020
|
+
updatedAt: number;
|
|
1021
|
+
lastSeq: number;
|
|
1022
|
+
archived: boolean;
|
|
1023
|
+
title?: string | undefined;
|
|
1024
|
+
preview?: string | undefined;
|
|
1025
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
1026
|
+
model?: string | undefined;
|
|
1027
|
+
activity?: {
|
|
1028
|
+
kind: "thinking" | "responding" | "tool";
|
|
1029
|
+
title?: string | undefined;
|
|
1030
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1031
|
+
} | undefined;
|
|
1032
|
+
permission?: {
|
|
1033
|
+
options: {
|
|
1034
|
+
optionId: string;
|
|
1035
|
+
name: string;
|
|
1036
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1037
|
+
}[];
|
|
1038
|
+
title: string;
|
|
1039
|
+
requestId: string;
|
|
1040
|
+
toolCallId?: string | undefined;
|
|
1041
|
+
detail?: string | undefined;
|
|
1042
|
+
} | undefined;
|
|
1043
|
+
queue?: {
|
|
1044
|
+
images: number;
|
|
1045
|
+
clientMessageId: string;
|
|
1046
|
+
text: string;
|
|
1047
|
+
}[] | undefined;
|
|
1048
|
+
};
|
|
1049
|
+
}, {
|
|
1050
|
+
session: {
|
|
1051
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1052
|
+
id: string;
|
|
1053
|
+
agent: string;
|
|
1054
|
+
nativeId: string;
|
|
1055
|
+
cwd: string;
|
|
1056
|
+
pendingPermissions: number;
|
|
1057
|
+
createdAt: number;
|
|
1058
|
+
updatedAt: number;
|
|
1059
|
+
lastSeq: number;
|
|
1060
|
+
archived: boolean;
|
|
1061
|
+
title?: string | undefined;
|
|
1062
|
+
preview?: string | undefined;
|
|
1063
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
1064
|
+
model?: string | undefined;
|
|
1065
|
+
activity?: {
|
|
1066
|
+
kind: "thinking" | "responding" | "tool";
|
|
1067
|
+
title?: string | undefined;
|
|
1068
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1069
|
+
} | undefined;
|
|
1070
|
+
permission?: {
|
|
1071
|
+
options: {
|
|
1072
|
+
optionId: string;
|
|
1073
|
+
name: string;
|
|
1074
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1075
|
+
}[];
|
|
1076
|
+
title: string;
|
|
1077
|
+
requestId: string;
|
|
1078
|
+
toolCallId?: string | undefined;
|
|
1079
|
+
detail?: string | undefined;
|
|
1080
|
+
} | undefined;
|
|
1081
|
+
queue?: {
|
|
1082
|
+
images: number;
|
|
1083
|
+
clientMessageId: string;
|
|
1084
|
+
text: string;
|
|
1085
|
+
}[] | undefined;
|
|
1086
|
+
};
|
|
1087
|
+
}>;
|
|
1088
|
+
};
|
|
1089
|
+
readonly "sessions.unsubscribe": {
|
|
1090
|
+
readonly params: z.ZodObject<{
|
|
1091
|
+
sessionId: z.ZodString;
|
|
1092
|
+
}, "strip", z.ZodTypeAny, {
|
|
1093
|
+
sessionId: string;
|
|
1094
|
+
}, {
|
|
1095
|
+
sessionId: string;
|
|
1096
|
+
}>;
|
|
1097
|
+
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
1098
|
+
};
|
|
1099
|
+
readonly "sessions.prompt": {
|
|
1100
|
+
readonly params: z.ZodObject<{
|
|
1101
|
+
sessionId: z.ZodString;
|
|
1102
|
+
/** Client-generated idempotency key; a retried send is not delivered twice. */
|
|
1103
|
+
clientMessageId: z.ZodString;
|
|
1104
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1105
|
+
type: z.ZodLiteral<"text">;
|
|
1106
|
+
text: z.ZodString;
|
|
1107
|
+
}, "strip", z.ZodTypeAny, {
|
|
1108
|
+
type: "text";
|
|
1109
|
+
text: string;
|
|
1110
|
+
}, {
|
|
1111
|
+
type: "text";
|
|
1112
|
+
text: string;
|
|
1113
|
+
}>, z.ZodObject<{
|
|
1114
|
+
type: z.ZodLiteral<"image">;
|
|
1115
|
+
mimeType: z.ZodString;
|
|
1116
|
+
data: z.ZodOptional<z.ZodString>;
|
|
1117
|
+
uri: z.ZodOptional<z.ZodString>;
|
|
1118
|
+
}, "strip", z.ZodTypeAny, {
|
|
1119
|
+
type: "image";
|
|
1120
|
+
mimeType: string;
|
|
1121
|
+
data?: string | undefined;
|
|
1122
|
+
uri?: string | undefined;
|
|
1123
|
+
}, {
|
|
1124
|
+
type: "image";
|
|
1125
|
+
mimeType: string;
|
|
1126
|
+
data?: string | undefined;
|
|
1127
|
+
uri?: string | undefined;
|
|
1128
|
+
}>, z.ZodObject<{
|
|
1129
|
+
type: z.ZodLiteral<"resource_link">;
|
|
1130
|
+
uri: z.ZodString;
|
|
1131
|
+
name: z.ZodString;
|
|
1132
|
+
kind: z.ZodOptional<z.ZodEnum<["file", "skill", "agent"]>>;
|
|
1133
|
+
}, "strip", z.ZodTypeAny, {
|
|
1134
|
+
type: "resource_link";
|
|
1135
|
+
name: string;
|
|
1136
|
+
uri: string;
|
|
1137
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1138
|
+
}, {
|
|
1139
|
+
type: "resource_link";
|
|
1140
|
+
name: string;
|
|
1141
|
+
uri: string;
|
|
1142
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1143
|
+
}>]>, "many">;
|
|
1144
|
+
}, "strip", z.ZodTypeAny, {
|
|
1145
|
+
clientMessageId: string;
|
|
1146
|
+
content: ({
|
|
1147
|
+
type: "text";
|
|
1148
|
+
text: string;
|
|
1149
|
+
} | {
|
|
1150
|
+
type: "image";
|
|
1151
|
+
mimeType: string;
|
|
1152
|
+
data?: string | undefined;
|
|
1153
|
+
uri?: string | undefined;
|
|
1154
|
+
} | {
|
|
1155
|
+
type: "resource_link";
|
|
1156
|
+
name: string;
|
|
1157
|
+
uri: string;
|
|
1158
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1159
|
+
})[];
|
|
1160
|
+
sessionId: string;
|
|
1161
|
+
}, {
|
|
1162
|
+
clientMessageId: string;
|
|
1163
|
+
content: ({
|
|
1164
|
+
type: "text";
|
|
1165
|
+
text: string;
|
|
1166
|
+
} | {
|
|
1167
|
+
type: "image";
|
|
1168
|
+
mimeType: string;
|
|
1169
|
+
data?: string | undefined;
|
|
1170
|
+
uri?: string | undefined;
|
|
1171
|
+
} | {
|
|
1172
|
+
type: "resource_link";
|
|
1173
|
+
name: string;
|
|
1174
|
+
uri: string;
|
|
1175
|
+
kind?: "agent" | "file" | "skill" | undefined;
|
|
1176
|
+
})[];
|
|
1177
|
+
sessionId: string;
|
|
1178
|
+
}>;
|
|
1179
|
+
/** queued: the agent can't take input mid-turn; it is sent when the turn ends. */
|
|
1180
|
+
readonly result: z.ZodObject<{
|
|
1181
|
+
delivery: z.ZodEnum<["started", "steered", "queued", "duplicate"]>;
|
|
1182
|
+
}, "strip", z.ZodTypeAny, {
|
|
1183
|
+
delivery: "started" | "steered" | "queued" | "duplicate";
|
|
1184
|
+
}, {
|
|
1185
|
+
delivery: "started" | "steered" | "queued" | "duplicate";
|
|
1186
|
+
}>;
|
|
1187
|
+
};
|
|
1188
|
+
readonly "sessions.cancel": {
|
|
1189
|
+
readonly params: z.ZodObject<{
|
|
1190
|
+
sessionId: z.ZodString;
|
|
1191
|
+
}, "strip", z.ZodTypeAny, {
|
|
1192
|
+
sessionId: string;
|
|
1193
|
+
}, {
|
|
1194
|
+
sessionId: string;
|
|
1195
|
+
}>;
|
|
1196
|
+
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
1197
|
+
};
|
|
1198
|
+
readonly "sessions.permission": {
|
|
1199
|
+
readonly params: z.ZodObject<{
|
|
1200
|
+
sessionId: z.ZodString;
|
|
1201
|
+
requestId: z.ZodString;
|
|
1202
|
+
optionId: z.ZodString;
|
|
1203
|
+
}, "strip", z.ZodTypeAny, {
|
|
1204
|
+
optionId: string;
|
|
1205
|
+
requestId: string;
|
|
1206
|
+
sessionId: string;
|
|
1207
|
+
}, {
|
|
1208
|
+
optionId: string;
|
|
1209
|
+
requestId: string;
|
|
1210
|
+
sessionId: string;
|
|
1211
|
+
}>;
|
|
1212
|
+
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
1213
|
+
};
|
|
1214
|
+
readonly "sessions.setConfig": {
|
|
1215
|
+
readonly params: z.ZodObject<{
|
|
1216
|
+
sessionId: z.ZodString;
|
|
1217
|
+
optionId: z.ZodString;
|
|
1218
|
+
value: z.ZodString;
|
|
1219
|
+
}, "strip", z.ZodTypeAny, {
|
|
1220
|
+
value: string;
|
|
1221
|
+
optionId: string;
|
|
1222
|
+
sessionId: string;
|
|
557
1223
|
}, {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
1224
|
+
value: string;
|
|
1225
|
+
optionId: string;
|
|
1226
|
+
sessionId: string;
|
|
1227
|
+
}>;
|
|
1228
|
+
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
1229
|
+
};
|
|
1230
|
+
/** Drops a message still waiting in the host's queue (see SessionSummary.queue). */
|
|
1231
|
+
readonly "sessions.unqueue": {
|
|
1232
|
+
readonly params: z.ZodObject<{
|
|
1233
|
+
sessionId: z.ZodString;
|
|
1234
|
+
clientMessageId: z.ZodString;
|
|
1235
|
+
}, "strip", z.ZodTypeAny, {
|
|
1236
|
+
clientMessageId: string;
|
|
1237
|
+
sessionId: string;
|
|
1238
|
+
}, {
|
|
1239
|
+
clientMessageId: string;
|
|
1240
|
+
sessionId: string;
|
|
1241
|
+
}>;
|
|
1242
|
+
readonly result: z.ZodObject<{
|
|
1243
|
+
removed: z.ZodBoolean;
|
|
1244
|
+
}, "strip", z.ZodTypeAny, {
|
|
1245
|
+
removed: boolean;
|
|
1246
|
+
}, {
|
|
1247
|
+
removed: boolean;
|
|
1248
|
+
}>;
|
|
1249
|
+
};
|
|
1250
|
+
/** Archives (or restores) a session: hidden from lists, kept on disk; natively where the agent supports it. */
|
|
1251
|
+
readonly "sessions.archive": {
|
|
1252
|
+
readonly params: z.ZodObject<{
|
|
1253
|
+
sessionId: z.ZodString;
|
|
1254
|
+
archived: z.ZodBoolean;
|
|
1255
|
+
}, "strip", z.ZodTypeAny, {
|
|
1256
|
+
archived: boolean;
|
|
1257
|
+
sessionId: string;
|
|
1258
|
+
}, {
|
|
1259
|
+
archived: boolean;
|
|
1260
|
+
sessionId: string;
|
|
576
1261
|
}>;
|
|
577
1262
|
readonly result: z.ZodObject<{
|
|
578
1263
|
session: z.ZodObject<{
|
|
@@ -642,6 +1327,19 @@ export declare const methods: {
|
|
|
642
1327
|
toolCallId?: string | undefined;
|
|
643
1328
|
detail?: string | undefined;
|
|
644
1329
|
}>>;
|
|
1330
|
+
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1331
|
+
clientMessageId: z.ZodString;
|
|
1332
|
+
text: z.ZodString;
|
|
1333
|
+
images: z.ZodNumber;
|
|
1334
|
+
}, "strip", z.ZodTypeAny, {
|
|
1335
|
+
images: number;
|
|
1336
|
+
clientMessageId: string;
|
|
1337
|
+
text: string;
|
|
1338
|
+
}, {
|
|
1339
|
+
images: number;
|
|
1340
|
+
clientMessageId: string;
|
|
1341
|
+
text: string;
|
|
1342
|
+
}>, "many">>;
|
|
645
1343
|
}, "strip", z.ZodTypeAny, {
|
|
646
1344
|
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
647
1345
|
id: string;
|
|
@@ -673,6 +1371,11 @@ export declare const methods: {
|
|
|
673
1371
|
toolCallId?: string | undefined;
|
|
674
1372
|
detail?: string | undefined;
|
|
675
1373
|
} | undefined;
|
|
1374
|
+
queue?: {
|
|
1375
|
+
images: number;
|
|
1376
|
+
clientMessageId: string;
|
|
1377
|
+
text: string;
|
|
1378
|
+
}[] | undefined;
|
|
676
1379
|
}, {
|
|
677
1380
|
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
678
1381
|
id: string;
|
|
@@ -704,6 +1407,11 @@ export declare const methods: {
|
|
|
704
1407
|
toolCallId?: string | undefined;
|
|
705
1408
|
detail?: string | undefined;
|
|
706
1409
|
} | undefined;
|
|
1410
|
+
queue?: {
|
|
1411
|
+
images: number;
|
|
1412
|
+
clientMessageId: string;
|
|
1413
|
+
text: string;
|
|
1414
|
+
}[] | undefined;
|
|
707
1415
|
}>;
|
|
708
1416
|
}, "strip", z.ZodTypeAny, {
|
|
709
1417
|
session: {
|
|
@@ -737,6 +1445,11 @@ export declare const methods: {
|
|
|
737
1445
|
toolCallId?: string | undefined;
|
|
738
1446
|
detail?: string | undefined;
|
|
739
1447
|
} | undefined;
|
|
1448
|
+
queue?: {
|
|
1449
|
+
images: number;
|
|
1450
|
+
clientMessageId: string;
|
|
1451
|
+
text: string;
|
|
1452
|
+
}[] | undefined;
|
|
740
1453
|
};
|
|
741
1454
|
}, {
|
|
742
1455
|
session: {
|
|
@@ -770,20 +1483,25 @@ export declare const methods: {
|
|
|
770
1483
|
toolCallId?: string | undefined;
|
|
771
1484
|
detail?: string | undefined;
|
|
772
1485
|
} | undefined;
|
|
1486
|
+
queue?: {
|
|
1487
|
+
images: number;
|
|
1488
|
+
clientMessageId: string;
|
|
1489
|
+
text: string;
|
|
1490
|
+
}[] | undefined;
|
|
773
1491
|
};
|
|
774
1492
|
}>;
|
|
775
1493
|
};
|
|
776
|
-
|
|
1494
|
+
/** Names a session; an empty title goes back to the agent's own. */
|
|
1495
|
+
readonly "sessions.rename": {
|
|
777
1496
|
readonly params: z.ZodObject<{
|
|
778
1497
|
sessionId: z.ZodString;
|
|
779
|
-
|
|
780
|
-
fromSeq: z.ZodNumber;
|
|
1498
|
+
title: z.ZodString;
|
|
781
1499
|
}, "strip", z.ZodTypeAny, {
|
|
1500
|
+
title: string;
|
|
782
1501
|
sessionId: string;
|
|
783
|
-
fromSeq: number;
|
|
784
1502
|
}, {
|
|
1503
|
+
title: string;
|
|
785
1504
|
sessionId: string;
|
|
786
|
-
fromSeq: number;
|
|
787
1505
|
}>;
|
|
788
1506
|
readonly result: z.ZodObject<{
|
|
789
1507
|
session: z.ZodObject<{
|
|
@@ -853,6 +1571,19 @@ export declare const methods: {
|
|
|
853
1571
|
toolCallId?: string | undefined;
|
|
854
1572
|
detail?: string | undefined;
|
|
855
1573
|
}>>;
|
|
1574
|
+
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1575
|
+
clientMessageId: z.ZodString;
|
|
1576
|
+
text: z.ZodString;
|
|
1577
|
+
images: z.ZodNumber;
|
|
1578
|
+
}, "strip", z.ZodTypeAny, {
|
|
1579
|
+
images: number;
|
|
1580
|
+
clientMessageId: string;
|
|
1581
|
+
text: string;
|
|
1582
|
+
}, {
|
|
1583
|
+
images: number;
|
|
1584
|
+
clientMessageId: string;
|
|
1585
|
+
text: string;
|
|
1586
|
+
}>, "many">>;
|
|
856
1587
|
}, "strip", z.ZodTypeAny, {
|
|
857
1588
|
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
858
1589
|
id: string;
|
|
@@ -884,6 +1615,11 @@ export declare const methods: {
|
|
|
884
1615
|
toolCallId?: string | undefined;
|
|
885
1616
|
detail?: string | undefined;
|
|
886
1617
|
} | undefined;
|
|
1618
|
+
queue?: {
|
|
1619
|
+
images: number;
|
|
1620
|
+
clientMessageId: string;
|
|
1621
|
+
text: string;
|
|
1622
|
+
}[] | undefined;
|
|
887
1623
|
}, {
|
|
888
1624
|
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
889
1625
|
id: string;
|
|
@@ -915,6 +1651,11 @@ export declare const methods: {
|
|
|
915
1651
|
toolCallId?: string | undefined;
|
|
916
1652
|
detail?: string | undefined;
|
|
917
1653
|
} | undefined;
|
|
1654
|
+
queue?: {
|
|
1655
|
+
images: number;
|
|
1656
|
+
clientMessageId: string;
|
|
1657
|
+
text: string;
|
|
1658
|
+
}[] | undefined;
|
|
918
1659
|
}>;
|
|
919
1660
|
}, "strip", z.ZodTypeAny, {
|
|
920
1661
|
session: {
|
|
@@ -948,6 +1689,11 @@ export declare const methods: {
|
|
|
948
1689
|
toolCallId?: string | undefined;
|
|
949
1690
|
detail?: string | undefined;
|
|
950
1691
|
} | undefined;
|
|
1692
|
+
queue?: {
|
|
1693
|
+
images: number;
|
|
1694
|
+
clientMessageId: string;
|
|
1695
|
+
text: string;
|
|
1696
|
+
}[] | undefined;
|
|
951
1697
|
};
|
|
952
1698
|
}, {
|
|
953
1699
|
session: {
|
|
@@ -981,146 +1727,24 @@ export declare const methods: {
|
|
|
981
1727
|
toolCallId?: string | undefined;
|
|
982
1728
|
detail?: string | undefined;
|
|
983
1729
|
} | undefined;
|
|
1730
|
+
queue?: {
|
|
1731
|
+
images: number;
|
|
1732
|
+
clientMessageId: string;
|
|
1733
|
+
text: string;
|
|
1734
|
+
}[] | undefined;
|
|
984
1735
|
};
|
|
985
1736
|
}>;
|
|
986
1737
|
};
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
}, {
|
|
993
|
-
sessionId: string;
|
|
994
|
-
}>;
|
|
995
|
-
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
996
|
-
};
|
|
997
|
-
readonly "sessions.prompt": {
|
|
998
|
-
readonly params: z.ZodObject<{
|
|
999
|
-
sessionId: z.ZodString;
|
|
1000
|
-
/** Client-generated idempotency key; a retried send is not delivered twice. */
|
|
1001
|
-
clientMessageId: z.ZodString;
|
|
1002
|
-
content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1003
|
-
type: z.ZodLiteral<"text">;
|
|
1004
|
-
text: z.ZodString;
|
|
1005
|
-
}, "strip", z.ZodTypeAny, {
|
|
1006
|
-
type: "text";
|
|
1007
|
-
text: string;
|
|
1008
|
-
}, {
|
|
1009
|
-
type: "text";
|
|
1010
|
-
text: string;
|
|
1011
|
-
}>, z.ZodObject<{
|
|
1012
|
-
type: z.ZodLiteral<"image">;
|
|
1013
|
-
mimeType: z.ZodString;
|
|
1014
|
-
data: z.ZodOptional<z.ZodString>;
|
|
1015
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
1016
|
-
}, "strip", z.ZodTypeAny, {
|
|
1017
|
-
type: "image";
|
|
1018
|
-
mimeType: string;
|
|
1019
|
-
data?: string | undefined;
|
|
1020
|
-
uri?: string | undefined;
|
|
1021
|
-
}, {
|
|
1022
|
-
type: "image";
|
|
1023
|
-
mimeType: string;
|
|
1024
|
-
data?: string | undefined;
|
|
1025
|
-
uri?: string | undefined;
|
|
1026
|
-
}>, z.ZodObject<{
|
|
1027
|
-
type: z.ZodLiteral<"resource_link">;
|
|
1028
|
-
uri: z.ZodString;
|
|
1029
|
-
name: z.ZodString;
|
|
1030
|
-
kind: z.ZodOptional<z.ZodEnum<["file", "skill", "agent"]>>;
|
|
1031
|
-
}, "strip", z.ZodTypeAny, {
|
|
1032
|
-
type: "resource_link";
|
|
1033
|
-
name: string;
|
|
1034
|
-
uri: string;
|
|
1035
|
-
kind?: "agent" | "file" | "skill" | undefined;
|
|
1036
|
-
}, {
|
|
1037
|
-
type: "resource_link";
|
|
1038
|
-
name: string;
|
|
1039
|
-
uri: string;
|
|
1040
|
-
kind?: "agent" | "file" | "skill" | undefined;
|
|
1041
|
-
}>]>, "many">;
|
|
1042
|
-
}, "strip", z.ZodTypeAny, {
|
|
1043
|
-
content: ({
|
|
1044
|
-
type: "text";
|
|
1045
|
-
text: string;
|
|
1046
|
-
} | {
|
|
1047
|
-
type: "image";
|
|
1048
|
-
mimeType: string;
|
|
1049
|
-
data?: string | undefined;
|
|
1050
|
-
uri?: string | undefined;
|
|
1051
|
-
} | {
|
|
1052
|
-
type: "resource_link";
|
|
1053
|
-
name: string;
|
|
1054
|
-
uri: string;
|
|
1055
|
-
kind?: "agent" | "file" | "skill" | undefined;
|
|
1056
|
-
})[];
|
|
1057
|
-
sessionId: string;
|
|
1058
|
-
clientMessageId: string;
|
|
1059
|
-
}, {
|
|
1060
|
-
content: ({
|
|
1061
|
-
type: "text";
|
|
1062
|
-
text: string;
|
|
1063
|
-
} | {
|
|
1064
|
-
type: "image";
|
|
1065
|
-
mimeType: string;
|
|
1066
|
-
data?: string | undefined;
|
|
1067
|
-
uri?: string | undefined;
|
|
1068
|
-
} | {
|
|
1069
|
-
type: "resource_link";
|
|
1070
|
-
name: string;
|
|
1071
|
-
uri: string;
|
|
1072
|
-
kind?: "agent" | "file" | "skill" | undefined;
|
|
1073
|
-
})[];
|
|
1074
|
-
sessionId: string;
|
|
1075
|
-
clientMessageId: string;
|
|
1076
|
-
}>;
|
|
1077
|
-
/** queued: the agent can't take input mid-turn; it is sent when the turn ends. */
|
|
1078
|
-
readonly result: z.ZodObject<{
|
|
1079
|
-
delivery: z.ZodEnum<["started", "steered", "queued", "duplicate"]>;
|
|
1080
|
-
}, "strip", z.ZodTypeAny, {
|
|
1081
|
-
delivery: "started" | "steered" | "queued" | "duplicate";
|
|
1082
|
-
}, {
|
|
1083
|
-
delivery: "started" | "steered" | "queued" | "duplicate";
|
|
1084
|
-
}>;
|
|
1085
|
-
};
|
|
1086
|
-
readonly "sessions.cancel": {
|
|
1087
|
-
readonly params: z.ZodObject<{
|
|
1088
|
-
sessionId: z.ZodString;
|
|
1089
|
-
}, "strip", z.ZodTypeAny, {
|
|
1090
|
-
sessionId: string;
|
|
1091
|
-
}, {
|
|
1092
|
-
sessionId: string;
|
|
1093
|
-
}>;
|
|
1094
|
-
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
1095
|
-
};
|
|
1096
|
-
readonly "sessions.permission": {
|
|
1097
|
-
readonly params: z.ZodObject<{
|
|
1098
|
-
sessionId: z.ZodString;
|
|
1099
|
-
requestId: z.ZodString;
|
|
1100
|
-
optionId: z.ZodString;
|
|
1101
|
-
}, "strip", z.ZodTypeAny, {
|
|
1102
|
-
optionId: string;
|
|
1103
|
-
requestId: string;
|
|
1104
|
-
sessionId: string;
|
|
1105
|
-
}, {
|
|
1106
|
-
optionId: string;
|
|
1107
|
-
requestId: string;
|
|
1108
|
-
sessionId: string;
|
|
1109
|
-
}>;
|
|
1110
|
-
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
1111
|
-
};
|
|
1112
|
-
readonly "sessions.setConfig": {
|
|
1738
|
+
/**
|
|
1739
|
+
* Deletes a session: the agent's own record where it has one (Codex thread,
|
|
1740
|
+
* Claude transcript), and LinkShell's copy either way. Not while it runs.
|
|
1741
|
+
*/
|
|
1742
|
+
readonly "sessions.delete": {
|
|
1113
1743
|
readonly params: z.ZodObject<{
|
|
1114
1744
|
sessionId: z.ZodString;
|
|
1115
|
-
optionId: z.ZodString;
|
|
1116
|
-
value: z.ZodString;
|
|
1117
1745
|
}, "strip", z.ZodTypeAny, {
|
|
1118
|
-
value: string;
|
|
1119
|
-
optionId: string;
|
|
1120
1746
|
sessionId: string;
|
|
1121
1747
|
}, {
|
|
1122
|
-
value: string;
|
|
1123
|
-
optionId: string;
|
|
1124
1748
|
sessionId: string;
|
|
1125
1749
|
}>;
|
|
1126
1750
|
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -3800,6 +4424,19 @@ export declare const notifications: {
|
|
|
3800
4424
|
toolCallId?: string | undefined;
|
|
3801
4425
|
detail?: string | undefined;
|
|
3802
4426
|
}>>;
|
|
4427
|
+
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4428
|
+
clientMessageId: z.ZodString;
|
|
4429
|
+
text: z.ZodString;
|
|
4430
|
+
images: z.ZodNumber;
|
|
4431
|
+
}, "strip", z.ZodTypeAny, {
|
|
4432
|
+
images: number;
|
|
4433
|
+
clientMessageId: string;
|
|
4434
|
+
text: string;
|
|
4435
|
+
}, {
|
|
4436
|
+
images: number;
|
|
4437
|
+
clientMessageId: string;
|
|
4438
|
+
text: string;
|
|
4439
|
+
}>, "many">>;
|
|
3803
4440
|
}, "strip", z.ZodTypeAny, {
|
|
3804
4441
|
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
3805
4442
|
id: string;
|
|
@@ -3831,6 +4468,11 @@ export declare const notifications: {
|
|
|
3831
4468
|
toolCallId?: string | undefined;
|
|
3832
4469
|
detail?: string | undefined;
|
|
3833
4470
|
} | undefined;
|
|
4471
|
+
queue?: {
|
|
4472
|
+
images: number;
|
|
4473
|
+
clientMessageId: string;
|
|
4474
|
+
text: string;
|
|
4475
|
+
}[] | undefined;
|
|
3834
4476
|
}, {
|
|
3835
4477
|
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
3836
4478
|
id: string;
|
|
@@ -3862,6 +4504,11 @@ export declare const notifications: {
|
|
|
3862
4504
|
toolCallId?: string | undefined;
|
|
3863
4505
|
detail?: string | undefined;
|
|
3864
4506
|
} | undefined;
|
|
4507
|
+
queue?: {
|
|
4508
|
+
images: number;
|
|
4509
|
+
clientMessageId: string;
|
|
4510
|
+
text: string;
|
|
4511
|
+
}[] | undefined;
|
|
3865
4512
|
}>;
|
|
3866
4513
|
}, "strip", z.ZodTypeAny, {
|
|
3867
4514
|
session: {
|
|
@@ -3895,6 +4542,11 @@ export declare const notifications: {
|
|
|
3895
4542
|
toolCallId?: string | undefined;
|
|
3896
4543
|
detail?: string | undefined;
|
|
3897
4544
|
} | undefined;
|
|
4545
|
+
queue?: {
|
|
4546
|
+
images: number;
|
|
4547
|
+
clientMessageId: string;
|
|
4548
|
+
text: string;
|
|
4549
|
+
}[] | undefined;
|
|
3898
4550
|
};
|
|
3899
4551
|
}, {
|
|
3900
4552
|
session: {
|
|
@@ -3928,8 +4580,21 @@ export declare const notifications: {
|
|
|
3928
4580
|
toolCallId?: string | undefined;
|
|
3929
4581
|
detail?: string | undefined;
|
|
3930
4582
|
} | undefined;
|
|
4583
|
+
queue?: {
|
|
4584
|
+
images: number;
|
|
4585
|
+
clientMessageId: string;
|
|
4586
|
+
text: string;
|
|
4587
|
+
}[] | undefined;
|
|
3931
4588
|
};
|
|
3932
4589
|
}>;
|
|
4590
|
+
/** A session was deleted (from any device, or natively by the agent). */
|
|
4591
|
+
readonly "session.removed": z.ZodObject<{
|
|
4592
|
+
sessionId: z.ZodString;
|
|
4593
|
+
}, "strip", z.ZodTypeAny, {
|
|
4594
|
+
sessionId: string;
|
|
4595
|
+
}, {
|
|
4596
|
+
sessionId: string;
|
|
4597
|
+
}>;
|
|
3933
4598
|
/** To a desktop shim: a device is taking over; exit the native UI, then call desktop.yielded. */
|
|
3934
4599
|
readonly "desktop.yield": z.ZodObject<{
|
|
3935
4600
|
sessionId: z.ZodString;
|