@layernorm/overlay-agent-bridge-protocol 0.3.6 → 0.3.7
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/index.d.ts +310 -169
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +486 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -180,6 +180,30 @@ export declare const hostCapabilitiesSchema: z.ZodObject<{
|
|
|
180
180
|
maxConcurrentRuns: number;
|
|
181
181
|
}>;
|
|
182
182
|
export type HostCapabilities = z.infer<typeof hostCapabilitiesSchema>;
|
|
183
|
+
/** A host asks for the provider credentials of one run; the secret is never part of a stored command. */
|
|
184
|
+
export declare const runCredentialsRequestSchema: z.ZodObject<{
|
|
185
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
186
|
+
runId: z.ZodString;
|
|
187
|
+
}, "strict", z.ZodTypeAny, {
|
|
188
|
+
protocolVersion: 1;
|
|
189
|
+
runId: string;
|
|
190
|
+
}, {
|
|
191
|
+
protocolVersion: 1;
|
|
192
|
+
runId: string;
|
|
193
|
+
}>;
|
|
194
|
+
export type RunCredentialsRequest = z.infer<typeof runCredentialsRequestSchema>;
|
|
195
|
+
export declare const runCredentialsResponseSchema: z.ZodObject<{
|
|
196
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
197
|
+
/** Environment variables for the agent process of this run only. */
|
|
198
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
199
|
+
}, "strict", z.ZodTypeAny, {
|
|
200
|
+
protocolVersion: 1;
|
|
201
|
+
env: Record<string, string>;
|
|
202
|
+
}, {
|
|
203
|
+
protocolVersion: 1;
|
|
204
|
+
env: Record<string, string>;
|
|
205
|
+
}>;
|
|
206
|
+
export type RunCredentialsResponse = z.infer<typeof runCredentialsResponseSchema>;
|
|
183
207
|
export declare const enrollmentRequestSchema: z.ZodObject<{
|
|
184
208
|
code: z.ZodString;
|
|
185
209
|
name: z.ZodString;
|
|
@@ -405,7 +429,7 @@ export declare const environmentCredentialResponseSchema: z.ZodObject<{
|
|
|
405
429
|
workspaceId: z.ZodString;
|
|
406
430
|
environmentId: z.ZodString;
|
|
407
431
|
audience: z.ZodLiteral<"overlay-agent-control-plane">;
|
|
408
|
-
methods: z.ZodArray<z.ZodEnum<["agent:heartbeat", "agent:capabilities:update", "agent:commands:poll", "agent:commands:ack", "agent:events:write", "agent:artifacts:write", "agent:credentials:refresh"]>, "many">;
|
|
432
|
+
methods: z.ZodArray<z.ZodEnum<["agent:heartbeat", "agent:capabilities:update", "agent:commands:poll", "agent:commands:ack", "agent:events:write", "agent:artifacts:write", "agent:credentials:refresh", "agent:run-credentials"]>, "many">;
|
|
409
433
|
token: z.ZodString;
|
|
410
434
|
expiresAt: z.ZodNumber;
|
|
411
435
|
filesystemGrant: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
@@ -429,7 +453,7 @@ export declare const environmentCredentialResponseSchema: z.ZodObject<{
|
|
|
429
453
|
workspaceId: string;
|
|
430
454
|
environmentId: string;
|
|
431
455
|
audience: "overlay-agent-control-plane";
|
|
432
|
-
methods: ("agent:heartbeat" | "agent:capabilities:update" | "agent:commands:poll" | "agent:commands:ack" | "agent:events:write" | "agent:artifacts:write" | "agent:credentials:refresh")[];
|
|
456
|
+
methods: ("agent:heartbeat" | "agent:capabilities:update" | "agent:commands:poll" | "agent:commands:ack" | "agent:events:write" | "agent:artifacts:write" | "agent:credentials:refresh" | "agent:run-credentials")[];
|
|
433
457
|
token: string;
|
|
434
458
|
expiresAt: number;
|
|
435
459
|
filesystemGrant: {
|
|
@@ -443,7 +467,7 @@ export declare const environmentCredentialResponseSchema: z.ZodObject<{
|
|
|
443
467
|
workspaceId: string;
|
|
444
468
|
environmentId: string;
|
|
445
469
|
audience: "overlay-agent-control-plane";
|
|
446
|
-
methods: ("agent:heartbeat" | "agent:capabilities:update" | "agent:commands:poll" | "agent:commands:ack" | "agent:events:write" | "agent:artifacts:write" | "agent:credentials:refresh")[];
|
|
470
|
+
methods: ("agent:heartbeat" | "agent:capabilities:update" | "agent:commands:poll" | "agent:commands:ack" | "agent:events:write" | "agent:artifacts:write" | "agent:credentials:refresh" | "agent:run-credentials")[];
|
|
447
471
|
token: string;
|
|
448
472
|
expiresAt: number;
|
|
449
473
|
filesystemGrant: {
|
|
@@ -515,10 +539,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
515
539
|
}, "strict", z.ZodTypeAny, {
|
|
516
540
|
type: "start";
|
|
517
541
|
protocolVersion: 1;
|
|
542
|
+
runId: string;
|
|
518
543
|
workspaceId: string;
|
|
519
544
|
environmentId: string;
|
|
520
545
|
commandId: string;
|
|
521
|
-
runId: string;
|
|
522
546
|
sequence: number;
|
|
523
547
|
issuedAt: number;
|
|
524
548
|
payload: {
|
|
@@ -533,10 +557,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
533
557
|
}, {
|
|
534
558
|
type: "start";
|
|
535
559
|
protocolVersion: 1;
|
|
560
|
+
runId: string;
|
|
536
561
|
workspaceId: string;
|
|
537
562
|
environmentId: string;
|
|
538
563
|
commandId: string;
|
|
539
|
-
runId: string;
|
|
540
564
|
sequence: number;
|
|
541
565
|
issuedAt: number;
|
|
542
566
|
payload: {
|
|
@@ -568,10 +592,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
568
592
|
}, "strict", z.ZodTypeAny, {
|
|
569
593
|
type: "prompt";
|
|
570
594
|
protocolVersion: 1;
|
|
595
|
+
runId: string;
|
|
571
596
|
workspaceId: string;
|
|
572
597
|
environmentId: string;
|
|
573
598
|
commandId: string;
|
|
574
|
-
runId: string;
|
|
575
599
|
sequence: number;
|
|
576
600
|
issuedAt: number;
|
|
577
601
|
payload: {
|
|
@@ -580,10 +604,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
580
604
|
}, {
|
|
581
605
|
type: "prompt";
|
|
582
606
|
protocolVersion: 1;
|
|
607
|
+
runId: string;
|
|
583
608
|
workspaceId: string;
|
|
584
609
|
environmentId: string;
|
|
585
610
|
commandId: string;
|
|
586
|
-
runId: string;
|
|
587
611
|
sequence: number;
|
|
588
612
|
issuedAt: number;
|
|
589
613
|
payload: {
|
|
@@ -612,10 +636,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
612
636
|
}, "strict", z.ZodTypeAny, {
|
|
613
637
|
type: "approval_response";
|
|
614
638
|
protocolVersion: 1;
|
|
639
|
+
runId: string;
|
|
615
640
|
workspaceId: string;
|
|
616
641
|
environmentId: string;
|
|
617
642
|
commandId: string;
|
|
618
|
-
runId: string;
|
|
619
643
|
sequence: number;
|
|
620
644
|
issuedAt: number;
|
|
621
645
|
payload: {
|
|
@@ -625,10 +649,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
625
649
|
}, {
|
|
626
650
|
type: "approval_response";
|
|
627
651
|
protocolVersion: 1;
|
|
652
|
+
runId: string;
|
|
628
653
|
workspaceId: string;
|
|
629
654
|
environmentId: string;
|
|
630
655
|
commandId: string;
|
|
631
|
-
runId: string;
|
|
632
656
|
sequence: number;
|
|
633
657
|
issuedAt: number;
|
|
634
658
|
payload: {
|
|
@@ -661,10 +685,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
661
685
|
}, "strict", z.ZodTypeAny, {
|
|
662
686
|
type: "elicitation_response";
|
|
663
687
|
protocolVersion: 1;
|
|
688
|
+
runId: string;
|
|
664
689
|
workspaceId: string;
|
|
665
690
|
environmentId: string;
|
|
666
691
|
commandId: string;
|
|
667
|
-
runId: string;
|
|
668
692
|
sequence: number;
|
|
669
693
|
issuedAt: number;
|
|
670
694
|
payload: {
|
|
@@ -675,10 +699,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
675
699
|
}, {
|
|
676
700
|
type: "elicitation_response";
|
|
677
701
|
protocolVersion: 1;
|
|
702
|
+
runId: string;
|
|
678
703
|
workspaceId: string;
|
|
679
704
|
environmentId: string;
|
|
680
705
|
commandId: string;
|
|
681
|
-
runId: string;
|
|
682
706
|
sequence: number;
|
|
683
707
|
issuedAt: number;
|
|
684
708
|
payload: {
|
|
@@ -706,10 +730,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
706
730
|
}, "strict", z.ZodTypeAny, {
|
|
707
731
|
type: "cancel";
|
|
708
732
|
protocolVersion: 1;
|
|
733
|
+
runId: string;
|
|
709
734
|
workspaceId: string;
|
|
710
735
|
environmentId: string;
|
|
711
736
|
commandId: string;
|
|
712
|
-
runId: string;
|
|
713
737
|
sequence: number;
|
|
714
738
|
issuedAt: number;
|
|
715
739
|
payload: {
|
|
@@ -718,10 +742,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
718
742
|
}, {
|
|
719
743
|
type: "cancel";
|
|
720
744
|
protocolVersion: 1;
|
|
745
|
+
runId: string;
|
|
721
746
|
workspaceId: string;
|
|
722
747
|
environmentId: string;
|
|
723
748
|
commandId: string;
|
|
724
|
-
runId: string;
|
|
725
749
|
sequence: number;
|
|
726
750
|
issuedAt: number;
|
|
727
751
|
payload: {
|
|
@@ -747,10 +771,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
747
771
|
}, "strict", z.ZodTypeAny, {
|
|
748
772
|
type: "reconnect";
|
|
749
773
|
protocolVersion: 1;
|
|
774
|
+
runId: string;
|
|
750
775
|
workspaceId: string;
|
|
751
776
|
environmentId: string;
|
|
752
777
|
commandId: string;
|
|
753
|
-
runId: string;
|
|
754
778
|
sequence: number;
|
|
755
779
|
issuedAt: number;
|
|
756
780
|
payload: {
|
|
@@ -759,10 +783,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
759
783
|
}, {
|
|
760
784
|
type: "reconnect";
|
|
761
785
|
protocolVersion: 1;
|
|
786
|
+
runId: string;
|
|
762
787
|
workspaceId: string;
|
|
763
788
|
environmentId: string;
|
|
764
789
|
commandId: string;
|
|
765
|
-
runId: string;
|
|
766
790
|
sequence: number;
|
|
767
791
|
issuedAt: number;
|
|
768
792
|
payload: {
|
|
@@ -788,10 +812,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
788
812
|
}, "strict", z.ZodTypeAny, {
|
|
789
813
|
type: "shutdown";
|
|
790
814
|
protocolVersion: 1;
|
|
815
|
+
runId: string;
|
|
791
816
|
workspaceId: string;
|
|
792
817
|
environmentId: string;
|
|
793
818
|
commandId: string;
|
|
794
|
-
runId: string;
|
|
795
819
|
sequence: number;
|
|
796
820
|
issuedAt: number;
|
|
797
821
|
payload: {
|
|
@@ -800,10 +824,10 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
800
824
|
}, {
|
|
801
825
|
type: "shutdown";
|
|
802
826
|
protocolVersion: 1;
|
|
827
|
+
runId: string;
|
|
803
828
|
workspaceId: string;
|
|
804
829
|
environmentId: string;
|
|
805
830
|
commandId: string;
|
|
806
|
-
runId: string;
|
|
807
831
|
sequence: number;
|
|
808
832
|
issuedAt: number;
|
|
809
833
|
payload: {
|
|
@@ -851,10 +875,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
851
875
|
}, "strict", z.ZodTypeAny, {
|
|
852
876
|
type: "start";
|
|
853
877
|
protocolVersion: 1;
|
|
878
|
+
runId: string;
|
|
854
879
|
workspaceId: string;
|
|
855
880
|
environmentId: string;
|
|
856
881
|
commandId: string;
|
|
857
|
-
runId: string;
|
|
858
882
|
sequence: number;
|
|
859
883
|
issuedAt: number;
|
|
860
884
|
payload: {
|
|
@@ -869,10 +893,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
869
893
|
}, {
|
|
870
894
|
type: "start";
|
|
871
895
|
protocolVersion: 1;
|
|
896
|
+
runId: string;
|
|
872
897
|
workspaceId: string;
|
|
873
898
|
environmentId: string;
|
|
874
899
|
commandId: string;
|
|
875
|
-
runId: string;
|
|
876
900
|
sequence: number;
|
|
877
901
|
issuedAt: number;
|
|
878
902
|
payload: {
|
|
@@ -904,10 +928,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
904
928
|
}, "strict", z.ZodTypeAny, {
|
|
905
929
|
type: "prompt";
|
|
906
930
|
protocolVersion: 1;
|
|
931
|
+
runId: string;
|
|
907
932
|
workspaceId: string;
|
|
908
933
|
environmentId: string;
|
|
909
934
|
commandId: string;
|
|
910
|
-
runId: string;
|
|
911
935
|
sequence: number;
|
|
912
936
|
issuedAt: number;
|
|
913
937
|
payload: {
|
|
@@ -916,10 +940,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
916
940
|
}, {
|
|
917
941
|
type: "prompt";
|
|
918
942
|
protocolVersion: 1;
|
|
943
|
+
runId: string;
|
|
919
944
|
workspaceId: string;
|
|
920
945
|
environmentId: string;
|
|
921
946
|
commandId: string;
|
|
922
|
-
runId: string;
|
|
923
947
|
sequence: number;
|
|
924
948
|
issuedAt: number;
|
|
925
949
|
payload: {
|
|
@@ -948,10 +972,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
948
972
|
}, "strict", z.ZodTypeAny, {
|
|
949
973
|
type: "approval_response";
|
|
950
974
|
protocolVersion: 1;
|
|
975
|
+
runId: string;
|
|
951
976
|
workspaceId: string;
|
|
952
977
|
environmentId: string;
|
|
953
978
|
commandId: string;
|
|
954
|
-
runId: string;
|
|
955
979
|
sequence: number;
|
|
956
980
|
issuedAt: number;
|
|
957
981
|
payload: {
|
|
@@ -961,10 +985,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
961
985
|
}, {
|
|
962
986
|
type: "approval_response";
|
|
963
987
|
protocolVersion: 1;
|
|
988
|
+
runId: string;
|
|
964
989
|
workspaceId: string;
|
|
965
990
|
environmentId: string;
|
|
966
991
|
commandId: string;
|
|
967
|
-
runId: string;
|
|
968
992
|
sequence: number;
|
|
969
993
|
issuedAt: number;
|
|
970
994
|
payload: {
|
|
@@ -997,10 +1021,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
997
1021
|
}, "strict", z.ZodTypeAny, {
|
|
998
1022
|
type: "elicitation_response";
|
|
999
1023
|
protocolVersion: 1;
|
|
1024
|
+
runId: string;
|
|
1000
1025
|
workspaceId: string;
|
|
1001
1026
|
environmentId: string;
|
|
1002
1027
|
commandId: string;
|
|
1003
|
-
runId: string;
|
|
1004
1028
|
sequence: number;
|
|
1005
1029
|
issuedAt: number;
|
|
1006
1030
|
payload: {
|
|
@@ -1011,10 +1035,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1011
1035
|
}, {
|
|
1012
1036
|
type: "elicitation_response";
|
|
1013
1037
|
protocolVersion: 1;
|
|
1038
|
+
runId: string;
|
|
1014
1039
|
workspaceId: string;
|
|
1015
1040
|
environmentId: string;
|
|
1016
1041
|
commandId: string;
|
|
1017
|
-
runId: string;
|
|
1018
1042
|
sequence: number;
|
|
1019
1043
|
issuedAt: number;
|
|
1020
1044
|
payload: {
|
|
@@ -1042,10 +1066,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1042
1066
|
}, "strict", z.ZodTypeAny, {
|
|
1043
1067
|
type: "cancel";
|
|
1044
1068
|
protocolVersion: 1;
|
|
1069
|
+
runId: string;
|
|
1045
1070
|
workspaceId: string;
|
|
1046
1071
|
environmentId: string;
|
|
1047
1072
|
commandId: string;
|
|
1048
|
-
runId: string;
|
|
1049
1073
|
sequence: number;
|
|
1050
1074
|
issuedAt: number;
|
|
1051
1075
|
payload: {
|
|
@@ -1054,10 +1078,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1054
1078
|
}, {
|
|
1055
1079
|
type: "cancel";
|
|
1056
1080
|
protocolVersion: 1;
|
|
1081
|
+
runId: string;
|
|
1057
1082
|
workspaceId: string;
|
|
1058
1083
|
environmentId: string;
|
|
1059
1084
|
commandId: string;
|
|
1060
|
-
runId: string;
|
|
1061
1085
|
sequence: number;
|
|
1062
1086
|
issuedAt: number;
|
|
1063
1087
|
payload: {
|
|
@@ -1083,10 +1107,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1083
1107
|
}, "strict", z.ZodTypeAny, {
|
|
1084
1108
|
type: "reconnect";
|
|
1085
1109
|
protocolVersion: 1;
|
|
1110
|
+
runId: string;
|
|
1086
1111
|
workspaceId: string;
|
|
1087
1112
|
environmentId: string;
|
|
1088
1113
|
commandId: string;
|
|
1089
|
-
runId: string;
|
|
1090
1114
|
sequence: number;
|
|
1091
1115
|
issuedAt: number;
|
|
1092
1116
|
payload: {
|
|
@@ -1095,10 +1119,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1095
1119
|
}, {
|
|
1096
1120
|
type: "reconnect";
|
|
1097
1121
|
protocolVersion: 1;
|
|
1122
|
+
runId: string;
|
|
1098
1123
|
workspaceId: string;
|
|
1099
1124
|
environmentId: string;
|
|
1100
1125
|
commandId: string;
|
|
1101
|
-
runId: string;
|
|
1102
1126
|
sequence: number;
|
|
1103
1127
|
issuedAt: number;
|
|
1104
1128
|
payload: {
|
|
@@ -1124,10 +1148,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1124
1148
|
}, "strict", z.ZodTypeAny, {
|
|
1125
1149
|
type: "shutdown";
|
|
1126
1150
|
protocolVersion: 1;
|
|
1151
|
+
runId: string;
|
|
1127
1152
|
workspaceId: string;
|
|
1128
1153
|
environmentId: string;
|
|
1129
1154
|
commandId: string;
|
|
1130
|
-
runId: string;
|
|
1131
1155
|
sequence: number;
|
|
1132
1156
|
issuedAt: number;
|
|
1133
1157
|
payload: {
|
|
@@ -1136,10 +1160,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1136
1160
|
}, {
|
|
1137
1161
|
type: "shutdown";
|
|
1138
1162
|
protocolVersion: 1;
|
|
1163
|
+
runId: string;
|
|
1139
1164
|
workspaceId: string;
|
|
1140
1165
|
environmentId: string;
|
|
1141
1166
|
commandId: string;
|
|
1142
|
-
runId: string;
|
|
1143
1167
|
sequence: number;
|
|
1144
1168
|
issuedAt: number;
|
|
1145
1169
|
payload: {
|
|
@@ -1152,10 +1176,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1152
1176
|
commands: ({
|
|
1153
1177
|
type: "start";
|
|
1154
1178
|
protocolVersion: 1;
|
|
1179
|
+
runId: string;
|
|
1155
1180
|
workspaceId: string;
|
|
1156
1181
|
environmentId: string;
|
|
1157
1182
|
commandId: string;
|
|
1158
|
-
runId: string;
|
|
1159
1183
|
sequence: number;
|
|
1160
1184
|
issuedAt: number;
|
|
1161
1185
|
payload: {
|
|
@@ -1170,10 +1194,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1170
1194
|
} | {
|
|
1171
1195
|
type: "prompt";
|
|
1172
1196
|
protocolVersion: 1;
|
|
1197
|
+
runId: string;
|
|
1173
1198
|
workspaceId: string;
|
|
1174
1199
|
environmentId: string;
|
|
1175
1200
|
commandId: string;
|
|
1176
|
-
runId: string;
|
|
1177
1201
|
sequence: number;
|
|
1178
1202
|
issuedAt: number;
|
|
1179
1203
|
payload: {
|
|
@@ -1182,10 +1206,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1182
1206
|
} | {
|
|
1183
1207
|
type: "approval_response";
|
|
1184
1208
|
protocolVersion: 1;
|
|
1209
|
+
runId: string;
|
|
1185
1210
|
workspaceId: string;
|
|
1186
1211
|
environmentId: string;
|
|
1187
1212
|
commandId: string;
|
|
1188
|
-
runId: string;
|
|
1189
1213
|
sequence: number;
|
|
1190
1214
|
issuedAt: number;
|
|
1191
1215
|
payload: {
|
|
@@ -1195,10 +1219,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1195
1219
|
} | {
|
|
1196
1220
|
type: "elicitation_response";
|
|
1197
1221
|
protocolVersion: 1;
|
|
1222
|
+
runId: string;
|
|
1198
1223
|
workspaceId: string;
|
|
1199
1224
|
environmentId: string;
|
|
1200
1225
|
commandId: string;
|
|
1201
|
-
runId: string;
|
|
1202
1226
|
sequence: number;
|
|
1203
1227
|
issuedAt: number;
|
|
1204
1228
|
payload: {
|
|
@@ -1209,10 +1233,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1209
1233
|
} | {
|
|
1210
1234
|
type: "cancel";
|
|
1211
1235
|
protocolVersion: 1;
|
|
1236
|
+
runId: string;
|
|
1212
1237
|
workspaceId: string;
|
|
1213
1238
|
environmentId: string;
|
|
1214
1239
|
commandId: string;
|
|
1215
|
-
runId: string;
|
|
1216
1240
|
sequence: number;
|
|
1217
1241
|
issuedAt: number;
|
|
1218
1242
|
payload: {
|
|
@@ -1221,10 +1245,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1221
1245
|
} | {
|
|
1222
1246
|
type: "reconnect";
|
|
1223
1247
|
protocolVersion: 1;
|
|
1248
|
+
runId: string;
|
|
1224
1249
|
workspaceId: string;
|
|
1225
1250
|
environmentId: string;
|
|
1226
1251
|
commandId: string;
|
|
1227
|
-
runId: string;
|
|
1228
1252
|
sequence: number;
|
|
1229
1253
|
issuedAt: number;
|
|
1230
1254
|
payload: {
|
|
@@ -1233,10 +1257,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1233
1257
|
} | {
|
|
1234
1258
|
type: "shutdown";
|
|
1235
1259
|
protocolVersion: 1;
|
|
1260
|
+
runId: string;
|
|
1236
1261
|
workspaceId: string;
|
|
1237
1262
|
environmentId: string;
|
|
1238
1263
|
commandId: string;
|
|
1239
|
-
runId: string;
|
|
1240
1264
|
sequence: number;
|
|
1241
1265
|
issuedAt: number;
|
|
1242
1266
|
payload: {
|
|
@@ -1249,10 +1273,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1249
1273
|
commands: ({
|
|
1250
1274
|
type: "start";
|
|
1251
1275
|
protocolVersion: 1;
|
|
1276
|
+
runId: string;
|
|
1252
1277
|
workspaceId: string;
|
|
1253
1278
|
environmentId: string;
|
|
1254
1279
|
commandId: string;
|
|
1255
|
-
runId: string;
|
|
1256
1280
|
sequence: number;
|
|
1257
1281
|
issuedAt: number;
|
|
1258
1282
|
payload: {
|
|
@@ -1267,10 +1291,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1267
1291
|
} | {
|
|
1268
1292
|
type: "prompt";
|
|
1269
1293
|
protocolVersion: 1;
|
|
1294
|
+
runId: string;
|
|
1270
1295
|
workspaceId: string;
|
|
1271
1296
|
environmentId: string;
|
|
1272
1297
|
commandId: string;
|
|
1273
|
-
runId: string;
|
|
1274
1298
|
sequence: number;
|
|
1275
1299
|
issuedAt: number;
|
|
1276
1300
|
payload: {
|
|
@@ -1279,10 +1303,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1279
1303
|
} | {
|
|
1280
1304
|
type: "approval_response";
|
|
1281
1305
|
protocolVersion: 1;
|
|
1306
|
+
runId: string;
|
|
1282
1307
|
workspaceId: string;
|
|
1283
1308
|
environmentId: string;
|
|
1284
1309
|
commandId: string;
|
|
1285
|
-
runId: string;
|
|
1286
1310
|
sequence: number;
|
|
1287
1311
|
issuedAt: number;
|
|
1288
1312
|
payload: {
|
|
@@ -1292,10 +1316,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1292
1316
|
} | {
|
|
1293
1317
|
type: "elicitation_response";
|
|
1294
1318
|
protocolVersion: 1;
|
|
1319
|
+
runId: string;
|
|
1295
1320
|
workspaceId: string;
|
|
1296
1321
|
environmentId: string;
|
|
1297
1322
|
commandId: string;
|
|
1298
|
-
runId: string;
|
|
1299
1323
|
sequence: number;
|
|
1300
1324
|
issuedAt: number;
|
|
1301
1325
|
payload: {
|
|
@@ -1306,10 +1330,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1306
1330
|
} | {
|
|
1307
1331
|
type: "cancel";
|
|
1308
1332
|
protocolVersion: 1;
|
|
1333
|
+
runId: string;
|
|
1309
1334
|
workspaceId: string;
|
|
1310
1335
|
environmentId: string;
|
|
1311
1336
|
commandId: string;
|
|
1312
|
-
runId: string;
|
|
1313
1337
|
sequence: number;
|
|
1314
1338
|
issuedAt: number;
|
|
1315
1339
|
payload: {
|
|
@@ -1318,10 +1342,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1318
1342
|
} | {
|
|
1319
1343
|
type: "reconnect";
|
|
1320
1344
|
protocolVersion: 1;
|
|
1345
|
+
runId: string;
|
|
1321
1346
|
workspaceId: string;
|
|
1322
1347
|
environmentId: string;
|
|
1323
1348
|
commandId: string;
|
|
1324
|
-
runId: string;
|
|
1325
1349
|
sequence: number;
|
|
1326
1350
|
issuedAt: number;
|
|
1327
1351
|
payload: {
|
|
@@ -1330,10 +1354,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1330
1354
|
} | {
|
|
1331
1355
|
type: "shutdown";
|
|
1332
1356
|
protocolVersion: 1;
|
|
1357
|
+
runId: string;
|
|
1333
1358
|
workspaceId: string;
|
|
1334
1359
|
environmentId: string;
|
|
1335
1360
|
commandId: string;
|
|
1336
|
-
runId: string;
|
|
1337
1361
|
sequence: number;
|
|
1338
1362
|
issuedAt: number;
|
|
1339
1363
|
payload: {
|
|
@@ -1346,10 +1370,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1346
1370
|
commands: ({
|
|
1347
1371
|
type: "start";
|
|
1348
1372
|
protocolVersion: 1;
|
|
1373
|
+
runId: string;
|
|
1349
1374
|
workspaceId: string;
|
|
1350
1375
|
environmentId: string;
|
|
1351
1376
|
commandId: string;
|
|
1352
|
-
runId: string;
|
|
1353
1377
|
sequence: number;
|
|
1354
1378
|
issuedAt: number;
|
|
1355
1379
|
payload: {
|
|
@@ -1364,10 +1388,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1364
1388
|
} | {
|
|
1365
1389
|
type: "prompt";
|
|
1366
1390
|
protocolVersion: 1;
|
|
1391
|
+
runId: string;
|
|
1367
1392
|
workspaceId: string;
|
|
1368
1393
|
environmentId: string;
|
|
1369
1394
|
commandId: string;
|
|
1370
|
-
runId: string;
|
|
1371
1395
|
sequence: number;
|
|
1372
1396
|
issuedAt: number;
|
|
1373
1397
|
payload: {
|
|
@@ -1376,10 +1400,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1376
1400
|
} | {
|
|
1377
1401
|
type: "approval_response";
|
|
1378
1402
|
protocolVersion: 1;
|
|
1403
|
+
runId: string;
|
|
1379
1404
|
workspaceId: string;
|
|
1380
1405
|
environmentId: string;
|
|
1381
1406
|
commandId: string;
|
|
1382
|
-
runId: string;
|
|
1383
1407
|
sequence: number;
|
|
1384
1408
|
issuedAt: number;
|
|
1385
1409
|
payload: {
|
|
@@ -1389,10 +1413,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1389
1413
|
} | {
|
|
1390
1414
|
type: "elicitation_response";
|
|
1391
1415
|
protocolVersion: 1;
|
|
1416
|
+
runId: string;
|
|
1392
1417
|
workspaceId: string;
|
|
1393
1418
|
environmentId: string;
|
|
1394
1419
|
commandId: string;
|
|
1395
|
-
runId: string;
|
|
1396
1420
|
sequence: number;
|
|
1397
1421
|
issuedAt: number;
|
|
1398
1422
|
payload: {
|
|
@@ -1403,10 +1427,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1403
1427
|
} | {
|
|
1404
1428
|
type: "cancel";
|
|
1405
1429
|
protocolVersion: 1;
|
|
1430
|
+
runId: string;
|
|
1406
1431
|
workspaceId: string;
|
|
1407
1432
|
environmentId: string;
|
|
1408
1433
|
commandId: string;
|
|
1409
|
-
runId: string;
|
|
1410
1434
|
sequence: number;
|
|
1411
1435
|
issuedAt: number;
|
|
1412
1436
|
payload: {
|
|
@@ -1415,10 +1439,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1415
1439
|
} | {
|
|
1416
1440
|
type: "reconnect";
|
|
1417
1441
|
protocolVersion: 1;
|
|
1442
|
+
runId: string;
|
|
1418
1443
|
workspaceId: string;
|
|
1419
1444
|
environmentId: string;
|
|
1420
1445
|
commandId: string;
|
|
1421
|
-
runId: string;
|
|
1422
1446
|
sequence: number;
|
|
1423
1447
|
issuedAt: number;
|
|
1424
1448
|
payload: {
|
|
@@ -1427,10 +1451,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1427
1451
|
} | {
|
|
1428
1452
|
type: "shutdown";
|
|
1429
1453
|
protocolVersion: 1;
|
|
1454
|
+
runId: string;
|
|
1430
1455
|
workspaceId: string;
|
|
1431
1456
|
environmentId: string;
|
|
1432
1457
|
commandId: string;
|
|
1433
|
-
runId: string;
|
|
1434
1458
|
sequence: number;
|
|
1435
1459
|
issuedAt: number;
|
|
1436
1460
|
payload: {
|
|
@@ -1443,10 +1467,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1443
1467
|
commands: ({
|
|
1444
1468
|
type: "start";
|
|
1445
1469
|
protocolVersion: 1;
|
|
1470
|
+
runId: string;
|
|
1446
1471
|
workspaceId: string;
|
|
1447
1472
|
environmentId: string;
|
|
1448
1473
|
commandId: string;
|
|
1449
|
-
runId: string;
|
|
1450
1474
|
sequence: number;
|
|
1451
1475
|
issuedAt: number;
|
|
1452
1476
|
payload: {
|
|
@@ -1461,10 +1485,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1461
1485
|
} | {
|
|
1462
1486
|
type: "prompt";
|
|
1463
1487
|
protocolVersion: 1;
|
|
1488
|
+
runId: string;
|
|
1464
1489
|
workspaceId: string;
|
|
1465
1490
|
environmentId: string;
|
|
1466
1491
|
commandId: string;
|
|
1467
|
-
runId: string;
|
|
1468
1492
|
sequence: number;
|
|
1469
1493
|
issuedAt: number;
|
|
1470
1494
|
payload: {
|
|
@@ -1473,10 +1497,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1473
1497
|
} | {
|
|
1474
1498
|
type: "approval_response";
|
|
1475
1499
|
protocolVersion: 1;
|
|
1500
|
+
runId: string;
|
|
1476
1501
|
workspaceId: string;
|
|
1477
1502
|
environmentId: string;
|
|
1478
1503
|
commandId: string;
|
|
1479
|
-
runId: string;
|
|
1480
1504
|
sequence: number;
|
|
1481
1505
|
issuedAt: number;
|
|
1482
1506
|
payload: {
|
|
@@ -1486,10 +1510,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1486
1510
|
} | {
|
|
1487
1511
|
type: "elicitation_response";
|
|
1488
1512
|
protocolVersion: 1;
|
|
1513
|
+
runId: string;
|
|
1489
1514
|
workspaceId: string;
|
|
1490
1515
|
environmentId: string;
|
|
1491
1516
|
commandId: string;
|
|
1492
|
-
runId: string;
|
|
1493
1517
|
sequence: number;
|
|
1494
1518
|
issuedAt: number;
|
|
1495
1519
|
payload: {
|
|
@@ -1500,10 +1524,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1500
1524
|
} | {
|
|
1501
1525
|
type: "cancel";
|
|
1502
1526
|
protocolVersion: 1;
|
|
1527
|
+
runId: string;
|
|
1503
1528
|
workspaceId: string;
|
|
1504
1529
|
environmentId: string;
|
|
1505
1530
|
commandId: string;
|
|
1506
|
-
runId: string;
|
|
1507
1531
|
sequence: number;
|
|
1508
1532
|
issuedAt: number;
|
|
1509
1533
|
payload: {
|
|
@@ -1512,10 +1536,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1512
1536
|
} | {
|
|
1513
1537
|
type: "reconnect";
|
|
1514
1538
|
protocolVersion: 1;
|
|
1539
|
+
runId: string;
|
|
1515
1540
|
workspaceId: string;
|
|
1516
1541
|
environmentId: string;
|
|
1517
1542
|
commandId: string;
|
|
1518
|
-
runId: string;
|
|
1519
1543
|
sequence: number;
|
|
1520
1544
|
issuedAt: number;
|
|
1521
1545
|
payload: {
|
|
@@ -1524,10 +1548,10 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1524
1548
|
} | {
|
|
1525
1549
|
type: "shutdown";
|
|
1526
1550
|
protocolVersion: 1;
|
|
1551
|
+
runId: string;
|
|
1527
1552
|
workspaceId: string;
|
|
1528
1553
|
environmentId: string;
|
|
1529
1554
|
commandId: string;
|
|
1530
|
-
runId: string;
|
|
1531
1555
|
sequence: number;
|
|
1532
1556
|
issuedAt: number;
|
|
1533
1557
|
payload: {
|
|
@@ -1594,8 +1618,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1594
1618
|
}, "strict", z.ZodTypeAny, {
|
|
1595
1619
|
type: "session_started";
|
|
1596
1620
|
protocolVersion: 1;
|
|
1597
|
-
environmentId: string;
|
|
1598
1621
|
runId: string;
|
|
1622
|
+
environmentId: string;
|
|
1599
1623
|
payload: {
|
|
1600
1624
|
adapterId: string;
|
|
1601
1625
|
remoteSessionId: string;
|
|
@@ -1606,8 +1630,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1606
1630
|
}, {
|
|
1607
1631
|
type: "session_started";
|
|
1608
1632
|
protocolVersion: 1;
|
|
1609
|
-
environmentId: string;
|
|
1610
1633
|
runId: string;
|
|
1634
|
+
environmentId: string;
|
|
1611
1635
|
payload: {
|
|
1612
1636
|
adapterId: string;
|
|
1613
1637
|
remoteSessionId: string;
|
|
@@ -1637,8 +1661,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1637
1661
|
}, "strict", z.ZodTypeAny, {
|
|
1638
1662
|
type: "text_checkpoint";
|
|
1639
1663
|
protocolVersion: 1;
|
|
1640
|
-
environmentId: string;
|
|
1641
1664
|
runId: string;
|
|
1665
|
+
environmentId: string;
|
|
1642
1666
|
payload: {
|
|
1643
1667
|
text: string;
|
|
1644
1668
|
final?: boolean | undefined;
|
|
@@ -1649,8 +1673,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1649
1673
|
}, {
|
|
1650
1674
|
type: "text_checkpoint";
|
|
1651
1675
|
protocolVersion: 1;
|
|
1652
|
-
environmentId: string;
|
|
1653
1676
|
runId: string;
|
|
1677
|
+
environmentId: string;
|
|
1654
1678
|
payload: {
|
|
1655
1679
|
text: string;
|
|
1656
1680
|
final?: boolean | undefined;
|
|
@@ -1686,8 +1710,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1686
1710
|
}, "strict", z.ZodTypeAny, {
|
|
1687
1711
|
type: "action";
|
|
1688
1712
|
protocolVersion: 1;
|
|
1689
|
-
environmentId: string;
|
|
1690
1713
|
runId: string;
|
|
1714
|
+
environmentId: string;
|
|
1691
1715
|
payload: {
|
|
1692
1716
|
status: "started" | "updated" | "completed" | "failed";
|
|
1693
1717
|
actionId: string;
|
|
@@ -1700,8 +1724,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1700
1724
|
}, {
|
|
1701
1725
|
type: "action";
|
|
1702
1726
|
protocolVersion: 1;
|
|
1703
|
-
environmentId: string;
|
|
1704
1727
|
runId: string;
|
|
1728
|
+
environmentId: string;
|
|
1705
1729
|
payload: {
|
|
1706
1730
|
status: "started" | "updated" | "completed" | "failed";
|
|
1707
1731
|
actionId: string;
|
|
@@ -1754,8 +1778,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1754
1778
|
}, "strict", z.ZodTypeAny, {
|
|
1755
1779
|
type: "approval_requested";
|
|
1756
1780
|
protocolVersion: 1;
|
|
1757
|
-
environmentId: string;
|
|
1758
1781
|
runId: string;
|
|
1782
|
+
environmentId: string;
|
|
1759
1783
|
payload: {
|
|
1760
1784
|
options: {
|
|
1761
1785
|
id: string;
|
|
@@ -1771,8 +1795,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1771
1795
|
}, {
|
|
1772
1796
|
type: "approval_requested";
|
|
1773
1797
|
protocolVersion: 1;
|
|
1774
|
-
environmentId: string;
|
|
1775
1798
|
runId: string;
|
|
1799
|
+
environmentId: string;
|
|
1776
1800
|
payload: {
|
|
1777
1801
|
options: {
|
|
1778
1802
|
id: string;
|
|
@@ -1813,8 +1837,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1813
1837
|
}, "strict", z.ZodTypeAny, {
|
|
1814
1838
|
type: "elicitation_requested";
|
|
1815
1839
|
protocolVersion: 1;
|
|
1816
|
-
environmentId: string;
|
|
1817
1840
|
runId: string;
|
|
1841
|
+
environmentId: string;
|
|
1818
1842
|
payload: {
|
|
1819
1843
|
prompt: string;
|
|
1820
1844
|
requestKey: string;
|
|
@@ -1827,8 +1851,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1827
1851
|
}, {
|
|
1828
1852
|
type: "elicitation_requested";
|
|
1829
1853
|
protocolVersion: 1;
|
|
1830
|
-
environmentId: string;
|
|
1831
1854
|
runId: string;
|
|
1855
|
+
environmentId: string;
|
|
1832
1856
|
payload: {
|
|
1833
1857
|
prompt: string;
|
|
1834
1858
|
requestKey: string;
|
|
@@ -1877,8 +1901,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1877
1901
|
}, "strict", z.ZodTypeAny, {
|
|
1878
1902
|
type: "plan";
|
|
1879
1903
|
protocolVersion: 1;
|
|
1880
|
-
environmentId: string;
|
|
1881
1904
|
runId: string;
|
|
1905
|
+
environmentId: string;
|
|
1882
1906
|
payload: {
|
|
1883
1907
|
entries: {
|
|
1884
1908
|
status: "completed" | "failed" | "pending" | "in_progress";
|
|
@@ -1892,8 +1916,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1892
1916
|
}, {
|
|
1893
1917
|
type: "plan";
|
|
1894
1918
|
protocolVersion: 1;
|
|
1895
|
-
environmentId: string;
|
|
1896
1919
|
runId: string;
|
|
1920
|
+
environmentId: string;
|
|
1897
1921
|
payload: {
|
|
1898
1922
|
entries: {
|
|
1899
1923
|
status: "completed" | "failed" | "pending" | "in_progress";
|
|
@@ -1943,8 +1967,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1943
1967
|
}, "strict", z.ZodTypeAny, {
|
|
1944
1968
|
type: "commands_update";
|
|
1945
1969
|
protocolVersion: 1;
|
|
1946
|
-
environmentId: string;
|
|
1947
1970
|
runId: string;
|
|
1971
|
+
environmentId: string;
|
|
1948
1972
|
payload: {
|
|
1949
1973
|
commands: {
|
|
1950
1974
|
name: string;
|
|
@@ -1958,8 +1982,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1958
1982
|
}, {
|
|
1959
1983
|
type: "commands_update";
|
|
1960
1984
|
protocolVersion: 1;
|
|
1961
|
-
environmentId: string;
|
|
1962
1985
|
runId: string;
|
|
1986
|
+
environmentId: string;
|
|
1963
1987
|
payload: {
|
|
1964
1988
|
commands: {
|
|
1965
1989
|
name: string;
|
|
@@ -1998,8 +2022,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1998
2022
|
}, "strict", z.ZodTypeAny, {
|
|
1999
2023
|
type: "diff";
|
|
2000
2024
|
protocolVersion: 1;
|
|
2001
|
-
environmentId: string;
|
|
2002
2025
|
runId: string;
|
|
2026
|
+
environmentId: string;
|
|
2003
2027
|
payload: {
|
|
2004
2028
|
title: string;
|
|
2005
2029
|
diffId: string;
|
|
@@ -2012,8 +2036,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2012
2036
|
}, {
|
|
2013
2037
|
type: "diff";
|
|
2014
2038
|
protocolVersion: 1;
|
|
2015
|
-
environmentId: string;
|
|
2016
2039
|
runId: string;
|
|
2040
|
+
environmentId: string;
|
|
2017
2041
|
payload: {
|
|
2018
2042
|
title: string;
|
|
2019
2043
|
diffId: string;
|
|
@@ -2054,8 +2078,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2054
2078
|
}, "strict", z.ZodTypeAny, {
|
|
2055
2079
|
type: "terminal";
|
|
2056
2080
|
protocolVersion: 1;
|
|
2057
|
-
environmentId: string;
|
|
2058
2081
|
runId: string;
|
|
2082
|
+
environmentId: string;
|
|
2059
2083
|
payload: {
|
|
2060
2084
|
status: "completed" | "failed" | "running";
|
|
2061
2085
|
title: string;
|
|
@@ -2069,8 +2093,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2069
2093
|
}, {
|
|
2070
2094
|
type: "terminal";
|
|
2071
2095
|
protocolVersion: 1;
|
|
2072
|
-
environmentId: string;
|
|
2073
2096
|
runId: string;
|
|
2097
|
+
environmentId: string;
|
|
2074
2098
|
payload: {
|
|
2075
2099
|
status: "completed" | "failed" | "running";
|
|
2076
2100
|
title: string;
|
|
@@ -2112,8 +2136,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2112
2136
|
}, "strict", z.ZodTypeAny, {
|
|
2113
2137
|
type: "artifact";
|
|
2114
2138
|
protocolVersion: 1;
|
|
2115
|
-
environmentId: string;
|
|
2116
2139
|
runId: string;
|
|
2140
|
+
environmentId: string;
|
|
2117
2141
|
payload: {
|
|
2118
2142
|
name: string;
|
|
2119
2143
|
mediaType: string;
|
|
@@ -2127,8 +2151,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2127
2151
|
}, {
|
|
2128
2152
|
type: "artifact";
|
|
2129
2153
|
protocolVersion: 1;
|
|
2130
|
-
environmentId: string;
|
|
2131
2154
|
runId: string;
|
|
2155
|
+
environmentId: string;
|
|
2132
2156
|
payload: {
|
|
2133
2157
|
name: string;
|
|
2134
2158
|
mediaType: string;
|
|
@@ -2161,8 +2185,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2161
2185
|
}, "strict", z.ZodTypeAny, {
|
|
2162
2186
|
type: "completed";
|
|
2163
2187
|
protocolVersion: 1;
|
|
2164
|
-
environmentId: string;
|
|
2165
2188
|
runId: string;
|
|
2189
|
+
environmentId: string;
|
|
2166
2190
|
payload: {
|
|
2167
2191
|
usage: Record<string, unknown>;
|
|
2168
2192
|
summary?: string | undefined;
|
|
@@ -2173,8 +2197,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2173
2197
|
}, {
|
|
2174
2198
|
type: "completed";
|
|
2175
2199
|
protocolVersion: 1;
|
|
2176
|
-
environmentId: string;
|
|
2177
2200
|
runId: string;
|
|
2201
|
+
environmentId: string;
|
|
2178
2202
|
payload: {
|
|
2179
2203
|
summary?: string | undefined;
|
|
2180
2204
|
usage?: Record<string, unknown> | undefined;
|
|
@@ -2207,8 +2231,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2207
2231
|
}, "strict", z.ZodTypeAny, {
|
|
2208
2232
|
type: "failed";
|
|
2209
2233
|
protocolVersion: 1;
|
|
2210
|
-
environmentId: string;
|
|
2211
2234
|
runId: string;
|
|
2235
|
+
environmentId: string;
|
|
2212
2236
|
payload: {
|
|
2213
2237
|
code: string;
|
|
2214
2238
|
message: string;
|
|
@@ -2220,8 +2244,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2220
2244
|
}, {
|
|
2221
2245
|
type: "failed";
|
|
2222
2246
|
protocolVersion: 1;
|
|
2223
|
-
environmentId: string;
|
|
2224
2247
|
runId: string;
|
|
2248
|
+
environmentId: string;
|
|
2225
2249
|
payload: {
|
|
2226
2250
|
code: string;
|
|
2227
2251
|
message: string;
|
|
@@ -2249,8 +2273,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2249
2273
|
}, "strict", z.ZodTypeAny, {
|
|
2250
2274
|
type: "cancelled";
|
|
2251
2275
|
protocolVersion: 1;
|
|
2252
|
-
environmentId: string;
|
|
2253
2276
|
runId: string;
|
|
2277
|
+
environmentId: string;
|
|
2254
2278
|
payload: {
|
|
2255
2279
|
reason?: string | undefined;
|
|
2256
2280
|
};
|
|
@@ -2260,8 +2284,8 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2260
2284
|
}, {
|
|
2261
2285
|
type: "cancelled";
|
|
2262
2286
|
protocolVersion: 1;
|
|
2263
|
-
environmentId: string;
|
|
2264
2287
|
runId: string;
|
|
2288
|
+
environmentId: string;
|
|
2265
2289
|
payload: {
|
|
2266
2290
|
reason?: string | undefined;
|
|
2267
2291
|
};
|
|
@@ -2279,15 +2303,15 @@ export declare const artifactUploadRequestSchema: z.ZodObject<{
|
|
|
2279
2303
|
sha256: z.ZodString;
|
|
2280
2304
|
}, "strict", z.ZodTypeAny, {
|
|
2281
2305
|
protocolVersion: 1;
|
|
2282
|
-
name: string;
|
|
2283
2306
|
runId: string;
|
|
2307
|
+
name: string;
|
|
2284
2308
|
mediaType: string;
|
|
2285
2309
|
size: number;
|
|
2286
2310
|
sha256: string;
|
|
2287
2311
|
}, {
|
|
2288
2312
|
protocolVersion: 1;
|
|
2289
|
-
name: string;
|
|
2290
2313
|
runId: string;
|
|
2314
|
+
name: string;
|
|
2291
2315
|
mediaType: string;
|
|
2292
2316
|
size: number;
|
|
2293
2317
|
sha256: string;
|
|
@@ -2352,8 +2376,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2352
2376
|
}, "strict", z.ZodTypeAny, {
|
|
2353
2377
|
type: "session_started";
|
|
2354
2378
|
protocolVersion: 1;
|
|
2355
|
-
environmentId: string;
|
|
2356
2379
|
runId: string;
|
|
2380
|
+
environmentId: string;
|
|
2357
2381
|
payload: {
|
|
2358
2382
|
adapterId: string;
|
|
2359
2383
|
remoteSessionId: string;
|
|
@@ -2364,8 +2388,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2364
2388
|
}, {
|
|
2365
2389
|
type: "session_started";
|
|
2366
2390
|
protocolVersion: 1;
|
|
2367
|
-
environmentId: string;
|
|
2368
2391
|
runId: string;
|
|
2392
|
+
environmentId: string;
|
|
2369
2393
|
payload: {
|
|
2370
2394
|
adapterId: string;
|
|
2371
2395
|
remoteSessionId: string;
|
|
@@ -2395,8 +2419,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2395
2419
|
}, "strict", z.ZodTypeAny, {
|
|
2396
2420
|
type: "text_checkpoint";
|
|
2397
2421
|
protocolVersion: 1;
|
|
2398
|
-
environmentId: string;
|
|
2399
2422
|
runId: string;
|
|
2423
|
+
environmentId: string;
|
|
2400
2424
|
payload: {
|
|
2401
2425
|
text: string;
|
|
2402
2426
|
final?: boolean | undefined;
|
|
@@ -2407,8 +2431,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2407
2431
|
}, {
|
|
2408
2432
|
type: "text_checkpoint";
|
|
2409
2433
|
protocolVersion: 1;
|
|
2410
|
-
environmentId: string;
|
|
2411
2434
|
runId: string;
|
|
2435
|
+
environmentId: string;
|
|
2412
2436
|
payload: {
|
|
2413
2437
|
text: string;
|
|
2414
2438
|
final?: boolean | undefined;
|
|
@@ -2444,8 +2468,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2444
2468
|
}, "strict", z.ZodTypeAny, {
|
|
2445
2469
|
type: "action";
|
|
2446
2470
|
protocolVersion: 1;
|
|
2447
|
-
environmentId: string;
|
|
2448
2471
|
runId: string;
|
|
2472
|
+
environmentId: string;
|
|
2449
2473
|
payload: {
|
|
2450
2474
|
status: "started" | "updated" | "completed" | "failed";
|
|
2451
2475
|
actionId: string;
|
|
@@ -2458,8 +2482,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2458
2482
|
}, {
|
|
2459
2483
|
type: "action";
|
|
2460
2484
|
protocolVersion: 1;
|
|
2461
|
-
environmentId: string;
|
|
2462
2485
|
runId: string;
|
|
2486
|
+
environmentId: string;
|
|
2463
2487
|
payload: {
|
|
2464
2488
|
status: "started" | "updated" | "completed" | "failed";
|
|
2465
2489
|
actionId: string;
|
|
@@ -2512,8 +2536,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2512
2536
|
}, "strict", z.ZodTypeAny, {
|
|
2513
2537
|
type: "approval_requested";
|
|
2514
2538
|
protocolVersion: 1;
|
|
2515
|
-
environmentId: string;
|
|
2516
2539
|
runId: string;
|
|
2540
|
+
environmentId: string;
|
|
2517
2541
|
payload: {
|
|
2518
2542
|
options: {
|
|
2519
2543
|
id: string;
|
|
@@ -2529,8 +2553,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2529
2553
|
}, {
|
|
2530
2554
|
type: "approval_requested";
|
|
2531
2555
|
protocolVersion: 1;
|
|
2532
|
-
environmentId: string;
|
|
2533
2556
|
runId: string;
|
|
2557
|
+
environmentId: string;
|
|
2534
2558
|
payload: {
|
|
2535
2559
|
options: {
|
|
2536
2560
|
id: string;
|
|
@@ -2571,8 +2595,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2571
2595
|
}, "strict", z.ZodTypeAny, {
|
|
2572
2596
|
type: "elicitation_requested";
|
|
2573
2597
|
protocolVersion: 1;
|
|
2574
|
-
environmentId: string;
|
|
2575
2598
|
runId: string;
|
|
2599
|
+
environmentId: string;
|
|
2576
2600
|
payload: {
|
|
2577
2601
|
prompt: string;
|
|
2578
2602
|
requestKey: string;
|
|
@@ -2585,8 +2609,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2585
2609
|
}, {
|
|
2586
2610
|
type: "elicitation_requested";
|
|
2587
2611
|
protocolVersion: 1;
|
|
2588
|
-
environmentId: string;
|
|
2589
2612
|
runId: string;
|
|
2613
|
+
environmentId: string;
|
|
2590
2614
|
payload: {
|
|
2591
2615
|
prompt: string;
|
|
2592
2616
|
requestKey: string;
|
|
@@ -2635,8 +2659,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2635
2659
|
}, "strict", z.ZodTypeAny, {
|
|
2636
2660
|
type: "plan";
|
|
2637
2661
|
protocolVersion: 1;
|
|
2638
|
-
environmentId: string;
|
|
2639
2662
|
runId: string;
|
|
2663
|
+
environmentId: string;
|
|
2640
2664
|
payload: {
|
|
2641
2665
|
entries: {
|
|
2642
2666
|
status: "completed" | "failed" | "pending" | "in_progress";
|
|
@@ -2650,8 +2674,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2650
2674
|
}, {
|
|
2651
2675
|
type: "plan";
|
|
2652
2676
|
protocolVersion: 1;
|
|
2653
|
-
environmentId: string;
|
|
2654
2677
|
runId: string;
|
|
2678
|
+
environmentId: string;
|
|
2655
2679
|
payload: {
|
|
2656
2680
|
entries: {
|
|
2657
2681
|
status: "completed" | "failed" | "pending" | "in_progress";
|
|
@@ -2701,8 +2725,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2701
2725
|
}, "strict", z.ZodTypeAny, {
|
|
2702
2726
|
type: "commands_update";
|
|
2703
2727
|
protocolVersion: 1;
|
|
2704
|
-
environmentId: string;
|
|
2705
2728
|
runId: string;
|
|
2729
|
+
environmentId: string;
|
|
2706
2730
|
payload: {
|
|
2707
2731
|
commands: {
|
|
2708
2732
|
name: string;
|
|
@@ -2716,8 +2740,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2716
2740
|
}, {
|
|
2717
2741
|
type: "commands_update";
|
|
2718
2742
|
protocolVersion: 1;
|
|
2719
|
-
environmentId: string;
|
|
2720
2743
|
runId: string;
|
|
2744
|
+
environmentId: string;
|
|
2721
2745
|
payload: {
|
|
2722
2746
|
commands: {
|
|
2723
2747
|
name: string;
|
|
@@ -2756,8 +2780,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2756
2780
|
}, "strict", z.ZodTypeAny, {
|
|
2757
2781
|
type: "diff";
|
|
2758
2782
|
protocolVersion: 1;
|
|
2759
|
-
environmentId: string;
|
|
2760
2783
|
runId: string;
|
|
2784
|
+
environmentId: string;
|
|
2761
2785
|
payload: {
|
|
2762
2786
|
title: string;
|
|
2763
2787
|
diffId: string;
|
|
@@ -2770,8 +2794,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2770
2794
|
}, {
|
|
2771
2795
|
type: "diff";
|
|
2772
2796
|
protocolVersion: 1;
|
|
2773
|
-
environmentId: string;
|
|
2774
2797
|
runId: string;
|
|
2798
|
+
environmentId: string;
|
|
2775
2799
|
payload: {
|
|
2776
2800
|
title: string;
|
|
2777
2801
|
diffId: string;
|
|
@@ -2812,8 +2836,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2812
2836
|
}, "strict", z.ZodTypeAny, {
|
|
2813
2837
|
type: "terminal";
|
|
2814
2838
|
protocolVersion: 1;
|
|
2815
|
-
environmentId: string;
|
|
2816
2839
|
runId: string;
|
|
2840
|
+
environmentId: string;
|
|
2817
2841
|
payload: {
|
|
2818
2842
|
status: "completed" | "failed" | "running";
|
|
2819
2843
|
title: string;
|
|
@@ -2827,8 +2851,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2827
2851
|
}, {
|
|
2828
2852
|
type: "terminal";
|
|
2829
2853
|
protocolVersion: 1;
|
|
2830
|
-
environmentId: string;
|
|
2831
2854
|
runId: string;
|
|
2855
|
+
environmentId: string;
|
|
2832
2856
|
payload: {
|
|
2833
2857
|
status: "completed" | "failed" | "running";
|
|
2834
2858
|
title: string;
|
|
@@ -2870,8 +2894,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2870
2894
|
}, "strict", z.ZodTypeAny, {
|
|
2871
2895
|
type: "artifact";
|
|
2872
2896
|
protocolVersion: 1;
|
|
2873
|
-
environmentId: string;
|
|
2874
2897
|
runId: string;
|
|
2898
|
+
environmentId: string;
|
|
2875
2899
|
payload: {
|
|
2876
2900
|
name: string;
|
|
2877
2901
|
mediaType: string;
|
|
@@ -2885,8 +2909,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2885
2909
|
}, {
|
|
2886
2910
|
type: "artifact";
|
|
2887
2911
|
protocolVersion: 1;
|
|
2888
|
-
environmentId: string;
|
|
2889
2912
|
runId: string;
|
|
2913
|
+
environmentId: string;
|
|
2890
2914
|
payload: {
|
|
2891
2915
|
name: string;
|
|
2892
2916
|
mediaType: string;
|
|
@@ -2919,8 +2943,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2919
2943
|
}, "strict", z.ZodTypeAny, {
|
|
2920
2944
|
type: "completed";
|
|
2921
2945
|
protocolVersion: 1;
|
|
2922
|
-
environmentId: string;
|
|
2923
2946
|
runId: string;
|
|
2947
|
+
environmentId: string;
|
|
2924
2948
|
payload: {
|
|
2925
2949
|
usage: Record<string, unknown>;
|
|
2926
2950
|
summary?: string | undefined;
|
|
@@ -2931,8 +2955,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2931
2955
|
}, {
|
|
2932
2956
|
type: "completed";
|
|
2933
2957
|
protocolVersion: 1;
|
|
2934
|
-
environmentId: string;
|
|
2935
2958
|
runId: string;
|
|
2959
|
+
environmentId: string;
|
|
2936
2960
|
payload: {
|
|
2937
2961
|
summary?: string | undefined;
|
|
2938
2962
|
usage?: Record<string, unknown> | undefined;
|
|
@@ -2965,8 +2989,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2965
2989
|
}, "strict", z.ZodTypeAny, {
|
|
2966
2990
|
type: "failed";
|
|
2967
2991
|
protocolVersion: 1;
|
|
2968
|
-
environmentId: string;
|
|
2969
2992
|
runId: string;
|
|
2993
|
+
environmentId: string;
|
|
2970
2994
|
payload: {
|
|
2971
2995
|
code: string;
|
|
2972
2996
|
message: string;
|
|
@@ -2978,8 +3002,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2978
3002
|
}, {
|
|
2979
3003
|
type: "failed";
|
|
2980
3004
|
protocolVersion: 1;
|
|
2981
|
-
environmentId: string;
|
|
2982
3005
|
runId: string;
|
|
3006
|
+
environmentId: string;
|
|
2983
3007
|
payload: {
|
|
2984
3008
|
code: string;
|
|
2985
3009
|
message: string;
|
|
@@ -3007,8 +3031,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3007
3031
|
}, "strict", z.ZodTypeAny, {
|
|
3008
3032
|
type: "cancelled";
|
|
3009
3033
|
protocolVersion: 1;
|
|
3010
|
-
environmentId: string;
|
|
3011
3034
|
runId: string;
|
|
3035
|
+
environmentId: string;
|
|
3012
3036
|
payload: {
|
|
3013
3037
|
reason?: string | undefined;
|
|
3014
3038
|
};
|
|
@@ -3018,8 +3042,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3018
3042
|
}, {
|
|
3019
3043
|
type: "cancelled";
|
|
3020
3044
|
protocolVersion: 1;
|
|
3021
|
-
environmentId: string;
|
|
3022
3045
|
runId: string;
|
|
3046
|
+
environmentId: string;
|
|
3023
3047
|
payload: {
|
|
3024
3048
|
reason?: string | undefined;
|
|
3025
3049
|
};
|
|
@@ -3029,13 +3053,13 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3029
3053
|
}>]>, "many">;
|
|
3030
3054
|
}, "strict", z.ZodTypeAny, {
|
|
3031
3055
|
protocolVersion: 1;
|
|
3032
|
-
environmentId: string;
|
|
3033
3056
|
runId: string;
|
|
3057
|
+
environmentId: string;
|
|
3034
3058
|
events: ({
|
|
3035
3059
|
type: "session_started";
|
|
3036
3060
|
protocolVersion: 1;
|
|
3037
|
-
environmentId: string;
|
|
3038
3061
|
runId: string;
|
|
3062
|
+
environmentId: string;
|
|
3039
3063
|
payload: {
|
|
3040
3064
|
adapterId: string;
|
|
3041
3065
|
remoteSessionId: string;
|
|
@@ -3046,8 +3070,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3046
3070
|
} | {
|
|
3047
3071
|
type: "text_checkpoint";
|
|
3048
3072
|
protocolVersion: 1;
|
|
3049
|
-
environmentId: string;
|
|
3050
3073
|
runId: string;
|
|
3074
|
+
environmentId: string;
|
|
3051
3075
|
payload: {
|
|
3052
3076
|
text: string;
|
|
3053
3077
|
final?: boolean | undefined;
|
|
@@ -3058,8 +3082,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3058
3082
|
} | {
|
|
3059
3083
|
type: "action";
|
|
3060
3084
|
protocolVersion: 1;
|
|
3061
|
-
environmentId: string;
|
|
3062
3085
|
runId: string;
|
|
3086
|
+
environmentId: string;
|
|
3063
3087
|
payload: {
|
|
3064
3088
|
status: "started" | "updated" | "completed" | "failed";
|
|
3065
3089
|
actionId: string;
|
|
@@ -3072,8 +3096,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3072
3096
|
} | {
|
|
3073
3097
|
type: "approval_requested";
|
|
3074
3098
|
protocolVersion: 1;
|
|
3075
|
-
environmentId: string;
|
|
3076
3099
|
runId: string;
|
|
3100
|
+
environmentId: string;
|
|
3077
3101
|
payload: {
|
|
3078
3102
|
options: {
|
|
3079
3103
|
id: string;
|
|
@@ -3089,8 +3113,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3089
3113
|
} | {
|
|
3090
3114
|
type: "elicitation_requested";
|
|
3091
3115
|
protocolVersion: 1;
|
|
3092
|
-
environmentId: string;
|
|
3093
3116
|
runId: string;
|
|
3117
|
+
environmentId: string;
|
|
3094
3118
|
payload: {
|
|
3095
3119
|
prompt: string;
|
|
3096
3120
|
requestKey: string;
|
|
@@ -3103,8 +3127,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3103
3127
|
} | {
|
|
3104
3128
|
type: "plan";
|
|
3105
3129
|
protocolVersion: 1;
|
|
3106
|
-
environmentId: string;
|
|
3107
3130
|
runId: string;
|
|
3131
|
+
environmentId: string;
|
|
3108
3132
|
payload: {
|
|
3109
3133
|
entries: {
|
|
3110
3134
|
status: "completed" | "failed" | "pending" | "in_progress";
|
|
@@ -3118,8 +3142,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3118
3142
|
} | {
|
|
3119
3143
|
type: "commands_update";
|
|
3120
3144
|
protocolVersion: 1;
|
|
3121
|
-
environmentId: string;
|
|
3122
3145
|
runId: string;
|
|
3146
|
+
environmentId: string;
|
|
3123
3147
|
payload: {
|
|
3124
3148
|
commands: {
|
|
3125
3149
|
name: string;
|
|
@@ -3133,8 +3157,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3133
3157
|
} | {
|
|
3134
3158
|
type: "diff";
|
|
3135
3159
|
protocolVersion: 1;
|
|
3136
|
-
environmentId: string;
|
|
3137
3160
|
runId: string;
|
|
3161
|
+
environmentId: string;
|
|
3138
3162
|
payload: {
|
|
3139
3163
|
title: string;
|
|
3140
3164
|
diffId: string;
|
|
@@ -3147,8 +3171,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3147
3171
|
} | {
|
|
3148
3172
|
type: "terminal";
|
|
3149
3173
|
protocolVersion: 1;
|
|
3150
|
-
environmentId: string;
|
|
3151
3174
|
runId: string;
|
|
3175
|
+
environmentId: string;
|
|
3152
3176
|
payload: {
|
|
3153
3177
|
status: "completed" | "failed" | "running";
|
|
3154
3178
|
title: string;
|
|
@@ -3162,8 +3186,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3162
3186
|
} | {
|
|
3163
3187
|
type: "artifact";
|
|
3164
3188
|
protocolVersion: 1;
|
|
3165
|
-
environmentId: string;
|
|
3166
3189
|
runId: string;
|
|
3190
|
+
environmentId: string;
|
|
3167
3191
|
payload: {
|
|
3168
3192
|
name: string;
|
|
3169
3193
|
mediaType: string;
|
|
@@ -3177,8 +3201,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3177
3201
|
} | {
|
|
3178
3202
|
type: "completed";
|
|
3179
3203
|
protocolVersion: 1;
|
|
3180
|
-
environmentId: string;
|
|
3181
3204
|
runId: string;
|
|
3205
|
+
environmentId: string;
|
|
3182
3206
|
payload: {
|
|
3183
3207
|
usage: Record<string, unknown>;
|
|
3184
3208
|
summary?: string | undefined;
|
|
@@ -3189,8 +3213,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3189
3213
|
} | {
|
|
3190
3214
|
type: "failed";
|
|
3191
3215
|
protocolVersion: 1;
|
|
3192
|
-
environmentId: string;
|
|
3193
3216
|
runId: string;
|
|
3217
|
+
environmentId: string;
|
|
3194
3218
|
payload: {
|
|
3195
3219
|
code: string;
|
|
3196
3220
|
message: string;
|
|
@@ -3202,8 +3226,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3202
3226
|
} | {
|
|
3203
3227
|
type: "cancelled";
|
|
3204
3228
|
protocolVersion: 1;
|
|
3205
|
-
environmentId: string;
|
|
3206
3229
|
runId: string;
|
|
3230
|
+
environmentId: string;
|
|
3207
3231
|
payload: {
|
|
3208
3232
|
reason?: string | undefined;
|
|
3209
3233
|
};
|
|
@@ -3213,13 +3237,13 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3213
3237
|
})[];
|
|
3214
3238
|
}, {
|
|
3215
3239
|
protocolVersion: 1;
|
|
3216
|
-
environmentId: string;
|
|
3217
3240
|
runId: string;
|
|
3241
|
+
environmentId: string;
|
|
3218
3242
|
events: ({
|
|
3219
3243
|
type: "session_started";
|
|
3220
3244
|
protocolVersion: 1;
|
|
3221
|
-
environmentId: string;
|
|
3222
3245
|
runId: string;
|
|
3246
|
+
environmentId: string;
|
|
3223
3247
|
payload: {
|
|
3224
3248
|
adapterId: string;
|
|
3225
3249
|
remoteSessionId: string;
|
|
@@ -3230,8 +3254,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3230
3254
|
} | {
|
|
3231
3255
|
type: "text_checkpoint";
|
|
3232
3256
|
protocolVersion: 1;
|
|
3233
|
-
environmentId: string;
|
|
3234
3257
|
runId: string;
|
|
3258
|
+
environmentId: string;
|
|
3235
3259
|
payload: {
|
|
3236
3260
|
text: string;
|
|
3237
3261
|
final?: boolean | undefined;
|
|
@@ -3242,8 +3266,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3242
3266
|
} | {
|
|
3243
3267
|
type: "action";
|
|
3244
3268
|
protocolVersion: 1;
|
|
3245
|
-
environmentId: string;
|
|
3246
3269
|
runId: string;
|
|
3270
|
+
environmentId: string;
|
|
3247
3271
|
payload: {
|
|
3248
3272
|
status: "started" | "updated" | "completed" | "failed";
|
|
3249
3273
|
actionId: string;
|
|
@@ -3256,8 +3280,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3256
3280
|
} | {
|
|
3257
3281
|
type: "approval_requested";
|
|
3258
3282
|
protocolVersion: 1;
|
|
3259
|
-
environmentId: string;
|
|
3260
3283
|
runId: string;
|
|
3284
|
+
environmentId: string;
|
|
3261
3285
|
payload: {
|
|
3262
3286
|
options: {
|
|
3263
3287
|
id: string;
|
|
@@ -3273,8 +3297,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3273
3297
|
} | {
|
|
3274
3298
|
type: "elicitation_requested";
|
|
3275
3299
|
protocolVersion: 1;
|
|
3276
|
-
environmentId: string;
|
|
3277
3300
|
runId: string;
|
|
3301
|
+
environmentId: string;
|
|
3278
3302
|
payload: {
|
|
3279
3303
|
prompt: string;
|
|
3280
3304
|
requestKey: string;
|
|
@@ -3287,8 +3311,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3287
3311
|
} | {
|
|
3288
3312
|
type: "plan";
|
|
3289
3313
|
protocolVersion: 1;
|
|
3290
|
-
environmentId: string;
|
|
3291
3314
|
runId: string;
|
|
3315
|
+
environmentId: string;
|
|
3292
3316
|
payload: {
|
|
3293
3317
|
entries: {
|
|
3294
3318
|
status: "completed" | "failed" | "pending" | "in_progress";
|
|
@@ -3302,8 +3326,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3302
3326
|
} | {
|
|
3303
3327
|
type: "commands_update";
|
|
3304
3328
|
protocolVersion: 1;
|
|
3305
|
-
environmentId: string;
|
|
3306
3329
|
runId: string;
|
|
3330
|
+
environmentId: string;
|
|
3307
3331
|
payload: {
|
|
3308
3332
|
commands: {
|
|
3309
3333
|
name: string;
|
|
@@ -3317,8 +3341,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3317
3341
|
} | {
|
|
3318
3342
|
type: "diff";
|
|
3319
3343
|
protocolVersion: 1;
|
|
3320
|
-
environmentId: string;
|
|
3321
3344
|
runId: string;
|
|
3345
|
+
environmentId: string;
|
|
3322
3346
|
payload: {
|
|
3323
3347
|
title: string;
|
|
3324
3348
|
diffId: string;
|
|
@@ -3331,8 +3355,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3331
3355
|
} | {
|
|
3332
3356
|
type: "terminal";
|
|
3333
3357
|
protocolVersion: 1;
|
|
3334
|
-
environmentId: string;
|
|
3335
3358
|
runId: string;
|
|
3359
|
+
environmentId: string;
|
|
3336
3360
|
payload: {
|
|
3337
3361
|
status: "completed" | "failed" | "running";
|
|
3338
3362
|
title: string;
|
|
@@ -3346,8 +3370,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3346
3370
|
} | {
|
|
3347
3371
|
type: "artifact";
|
|
3348
3372
|
protocolVersion: 1;
|
|
3349
|
-
environmentId: string;
|
|
3350
3373
|
runId: string;
|
|
3374
|
+
environmentId: string;
|
|
3351
3375
|
payload: {
|
|
3352
3376
|
name: string;
|
|
3353
3377
|
mediaType: string;
|
|
@@ -3361,8 +3385,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3361
3385
|
} | {
|
|
3362
3386
|
type: "completed";
|
|
3363
3387
|
protocolVersion: 1;
|
|
3364
|
-
environmentId: string;
|
|
3365
3388
|
runId: string;
|
|
3389
|
+
environmentId: string;
|
|
3366
3390
|
payload: {
|
|
3367
3391
|
summary?: string | undefined;
|
|
3368
3392
|
usage?: Record<string, unknown> | undefined;
|
|
@@ -3373,8 +3397,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3373
3397
|
} | {
|
|
3374
3398
|
type: "failed";
|
|
3375
3399
|
protocolVersion: 1;
|
|
3376
|
-
environmentId: string;
|
|
3377
3400
|
runId: string;
|
|
3401
|
+
environmentId: string;
|
|
3378
3402
|
payload: {
|
|
3379
3403
|
code: string;
|
|
3380
3404
|
message: string;
|
|
@@ -3386,8 +3410,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3386
3410
|
} | {
|
|
3387
3411
|
type: "cancelled";
|
|
3388
3412
|
protocolVersion: 1;
|
|
3389
|
-
environmentId: string;
|
|
3390
3413
|
runId: string;
|
|
3414
|
+
environmentId: string;
|
|
3391
3415
|
payload: {
|
|
3392
3416
|
reason?: string | undefined;
|
|
3393
3417
|
};
|
|
@@ -3397,13 +3421,13 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3397
3421
|
})[];
|
|
3398
3422
|
}>, {
|
|
3399
3423
|
protocolVersion: 1;
|
|
3400
|
-
environmentId: string;
|
|
3401
3424
|
runId: string;
|
|
3425
|
+
environmentId: string;
|
|
3402
3426
|
events: ({
|
|
3403
3427
|
type: "session_started";
|
|
3404
3428
|
protocolVersion: 1;
|
|
3405
|
-
environmentId: string;
|
|
3406
3429
|
runId: string;
|
|
3430
|
+
environmentId: string;
|
|
3407
3431
|
payload: {
|
|
3408
3432
|
adapterId: string;
|
|
3409
3433
|
remoteSessionId: string;
|
|
@@ -3414,8 +3438,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3414
3438
|
} | {
|
|
3415
3439
|
type: "text_checkpoint";
|
|
3416
3440
|
protocolVersion: 1;
|
|
3417
|
-
environmentId: string;
|
|
3418
3441
|
runId: string;
|
|
3442
|
+
environmentId: string;
|
|
3419
3443
|
payload: {
|
|
3420
3444
|
text: string;
|
|
3421
3445
|
final?: boolean | undefined;
|
|
@@ -3426,8 +3450,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3426
3450
|
} | {
|
|
3427
3451
|
type: "action";
|
|
3428
3452
|
protocolVersion: 1;
|
|
3429
|
-
environmentId: string;
|
|
3430
3453
|
runId: string;
|
|
3454
|
+
environmentId: string;
|
|
3431
3455
|
payload: {
|
|
3432
3456
|
status: "started" | "updated" | "completed" | "failed";
|
|
3433
3457
|
actionId: string;
|
|
@@ -3440,8 +3464,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3440
3464
|
} | {
|
|
3441
3465
|
type: "approval_requested";
|
|
3442
3466
|
protocolVersion: 1;
|
|
3443
|
-
environmentId: string;
|
|
3444
3467
|
runId: string;
|
|
3468
|
+
environmentId: string;
|
|
3445
3469
|
payload: {
|
|
3446
3470
|
options: {
|
|
3447
3471
|
id: string;
|
|
@@ -3457,8 +3481,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3457
3481
|
} | {
|
|
3458
3482
|
type: "elicitation_requested";
|
|
3459
3483
|
protocolVersion: 1;
|
|
3460
|
-
environmentId: string;
|
|
3461
3484
|
runId: string;
|
|
3485
|
+
environmentId: string;
|
|
3462
3486
|
payload: {
|
|
3463
3487
|
prompt: string;
|
|
3464
3488
|
requestKey: string;
|
|
@@ -3471,8 +3495,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3471
3495
|
} | {
|
|
3472
3496
|
type: "plan";
|
|
3473
3497
|
protocolVersion: 1;
|
|
3474
|
-
environmentId: string;
|
|
3475
3498
|
runId: string;
|
|
3499
|
+
environmentId: string;
|
|
3476
3500
|
payload: {
|
|
3477
3501
|
entries: {
|
|
3478
3502
|
status: "completed" | "failed" | "pending" | "in_progress";
|
|
@@ -3486,8 +3510,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3486
3510
|
} | {
|
|
3487
3511
|
type: "commands_update";
|
|
3488
3512
|
protocolVersion: 1;
|
|
3489
|
-
environmentId: string;
|
|
3490
3513
|
runId: string;
|
|
3514
|
+
environmentId: string;
|
|
3491
3515
|
payload: {
|
|
3492
3516
|
commands: {
|
|
3493
3517
|
name: string;
|
|
@@ -3501,8 +3525,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3501
3525
|
} | {
|
|
3502
3526
|
type: "diff";
|
|
3503
3527
|
protocolVersion: 1;
|
|
3504
|
-
environmentId: string;
|
|
3505
3528
|
runId: string;
|
|
3529
|
+
environmentId: string;
|
|
3506
3530
|
payload: {
|
|
3507
3531
|
title: string;
|
|
3508
3532
|
diffId: string;
|
|
@@ -3515,8 +3539,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3515
3539
|
} | {
|
|
3516
3540
|
type: "terminal";
|
|
3517
3541
|
protocolVersion: 1;
|
|
3518
|
-
environmentId: string;
|
|
3519
3542
|
runId: string;
|
|
3543
|
+
environmentId: string;
|
|
3520
3544
|
payload: {
|
|
3521
3545
|
status: "completed" | "failed" | "running";
|
|
3522
3546
|
title: string;
|
|
@@ -3530,8 +3554,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3530
3554
|
} | {
|
|
3531
3555
|
type: "artifact";
|
|
3532
3556
|
protocolVersion: 1;
|
|
3533
|
-
environmentId: string;
|
|
3534
3557
|
runId: string;
|
|
3558
|
+
environmentId: string;
|
|
3535
3559
|
payload: {
|
|
3536
3560
|
name: string;
|
|
3537
3561
|
mediaType: string;
|
|
@@ -3545,8 +3569,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3545
3569
|
} | {
|
|
3546
3570
|
type: "completed";
|
|
3547
3571
|
protocolVersion: 1;
|
|
3548
|
-
environmentId: string;
|
|
3549
3572
|
runId: string;
|
|
3573
|
+
environmentId: string;
|
|
3550
3574
|
payload: {
|
|
3551
3575
|
usage: Record<string, unknown>;
|
|
3552
3576
|
summary?: string | undefined;
|
|
@@ -3557,8 +3581,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3557
3581
|
} | {
|
|
3558
3582
|
type: "failed";
|
|
3559
3583
|
protocolVersion: 1;
|
|
3560
|
-
environmentId: string;
|
|
3561
3584
|
runId: string;
|
|
3585
|
+
environmentId: string;
|
|
3562
3586
|
payload: {
|
|
3563
3587
|
code: string;
|
|
3564
3588
|
message: string;
|
|
@@ -3570,8 +3594,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3570
3594
|
} | {
|
|
3571
3595
|
type: "cancelled";
|
|
3572
3596
|
protocolVersion: 1;
|
|
3573
|
-
environmentId: string;
|
|
3574
3597
|
runId: string;
|
|
3598
|
+
environmentId: string;
|
|
3575
3599
|
payload: {
|
|
3576
3600
|
reason?: string | undefined;
|
|
3577
3601
|
};
|
|
@@ -3581,13 +3605,13 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3581
3605
|
})[];
|
|
3582
3606
|
}, {
|
|
3583
3607
|
protocolVersion: 1;
|
|
3584
|
-
environmentId: string;
|
|
3585
3608
|
runId: string;
|
|
3609
|
+
environmentId: string;
|
|
3586
3610
|
events: ({
|
|
3587
3611
|
type: "session_started";
|
|
3588
3612
|
protocolVersion: 1;
|
|
3589
|
-
environmentId: string;
|
|
3590
3613
|
runId: string;
|
|
3614
|
+
environmentId: string;
|
|
3591
3615
|
payload: {
|
|
3592
3616
|
adapterId: string;
|
|
3593
3617
|
remoteSessionId: string;
|
|
@@ -3598,8 +3622,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3598
3622
|
} | {
|
|
3599
3623
|
type: "text_checkpoint";
|
|
3600
3624
|
protocolVersion: 1;
|
|
3601
|
-
environmentId: string;
|
|
3602
3625
|
runId: string;
|
|
3626
|
+
environmentId: string;
|
|
3603
3627
|
payload: {
|
|
3604
3628
|
text: string;
|
|
3605
3629
|
final?: boolean | undefined;
|
|
@@ -3610,8 +3634,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3610
3634
|
} | {
|
|
3611
3635
|
type: "action";
|
|
3612
3636
|
protocolVersion: 1;
|
|
3613
|
-
environmentId: string;
|
|
3614
3637
|
runId: string;
|
|
3638
|
+
environmentId: string;
|
|
3615
3639
|
payload: {
|
|
3616
3640
|
status: "started" | "updated" | "completed" | "failed";
|
|
3617
3641
|
actionId: string;
|
|
@@ -3624,8 +3648,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3624
3648
|
} | {
|
|
3625
3649
|
type: "approval_requested";
|
|
3626
3650
|
protocolVersion: 1;
|
|
3627
|
-
environmentId: string;
|
|
3628
3651
|
runId: string;
|
|
3652
|
+
environmentId: string;
|
|
3629
3653
|
payload: {
|
|
3630
3654
|
options: {
|
|
3631
3655
|
id: string;
|
|
@@ -3641,8 +3665,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3641
3665
|
} | {
|
|
3642
3666
|
type: "elicitation_requested";
|
|
3643
3667
|
protocolVersion: 1;
|
|
3644
|
-
environmentId: string;
|
|
3645
3668
|
runId: string;
|
|
3669
|
+
environmentId: string;
|
|
3646
3670
|
payload: {
|
|
3647
3671
|
prompt: string;
|
|
3648
3672
|
requestKey: string;
|
|
@@ -3655,8 +3679,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3655
3679
|
} | {
|
|
3656
3680
|
type: "plan";
|
|
3657
3681
|
protocolVersion: 1;
|
|
3658
|
-
environmentId: string;
|
|
3659
3682
|
runId: string;
|
|
3683
|
+
environmentId: string;
|
|
3660
3684
|
payload: {
|
|
3661
3685
|
entries: {
|
|
3662
3686
|
status: "completed" | "failed" | "pending" | "in_progress";
|
|
@@ -3670,8 +3694,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3670
3694
|
} | {
|
|
3671
3695
|
type: "commands_update";
|
|
3672
3696
|
protocolVersion: 1;
|
|
3673
|
-
environmentId: string;
|
|
3674
3697
|
runId: string;
|
|
3698
|
+
environmentId: string;
|
|
3675
3699
|
payload: {
|
|
3676
3700
|
commands: {
|
|
3677
3701
|
name: string;
|
|
@@ -3685,8 +3709,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3685
3709
|
} | {
|
|
3686
3710
|
type: "diff";
|
|
3687
3711
|
protocolVersion: 1;
|
|
3688
|
-
environmentId: string;
|
|
3689
3712
|
runId: string;
|
|
3713
|
+
environmentId: string;
|
|
3690
3714
|
payload: {
|
|
3691
3715
|
title: string;
|
|
3692
3716
|
diffId: string;
|
|
@@ -3699,8 +3723,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3699
3723
|
} | {
|
|
3700
3724
|
type: "terminal";
|
|
3701
3725
|
protocolVersion: 1;
|
|
3702
|
-
environmentId: string;
|
|
3703
3726
|
runId: string;
|
|
3727
|
+
environmentId: string;
|
|
3704
3728
|
payload: {
|
|
3705
3729
|
status: "completed" | "failed" | "running";
|
|
3706
3730
|
title: string;
|
|
@@ -3714,8 +3738,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3714
3738
|
} | {
|
|
3715
3739
|
type: "artifact";
|
|
3716
3740
|
protocolVersion: 1;
|
|
3717
|
-
environmentId: string;
|
|
3718
3741
|
runId: string;
|
|
3742
|
+
environmentId: string;
|
|
3719
3743
|
payload: {
|
|
3720
3744
|
name: string;
|
|
3721
3745
|
mediaType: string;
|
|
@@ -3729,8 +3753,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3729
3753
|
} | {
|
|
3730
3754
|
type: "completed";
|
|
3731
3755
|
protocolVersion: 1;
|
|
3732
|
-
environmentId: string;
|
|
3733
3756
|
runId: string;
|
|
3757
|
+
environmentId: string;
|
|
3734
3758
|
payload: {
|
|
3735
3759
|
summary?: string | undefined;
|
|
3736
3760
|
usage?: Record<string, unknown> | undefined;
|
|
@@ -3741,8 +3765,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3741
3765
|
} | {
|
|
3742
3766
|
type: "failed";
|
|
3743
3767
|
protocolVersion: 1;
|
|
3744
|
-
environmentId: string;
|
|
3745
3768
|
runId: string;
|
|
3769
|
+
environmentId: string;
|
|
3746
3770
|
payload: {
|
|
3747
3771
|
code: string;
|
|
3748
3772
|
message: string;
|
|
@@ -3754,8 +3778,8 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3754
3778
|
} | {
|
|
3755
3779
|
type: "cancelled";
|
|
3756
3780
|
protocolVersion: 1;
|
|
3757
|
-
environmentId: string;
|
|
3758
3781
|
runId: string;
|
|
3782
|
+
environmentId: string;
|
|
3759
3783
|
payload: {
|
|
3760
3784
|
reason?: string | undefined;
|
|
3761
3785
|
};
|
|
@@ -3791,4 +3815,121 @@ export declare const eventAcknowledgementSchema: z.ZodDiscriminatedUnion<"accept
|
|
|
3791
3815
|
expectedSequence: number;
|
|
3792
3816
|
}>]>;
|
|
3793
3817
|
export type EventAcknowledgement = z.infer<typeof eventAcknowledgementSchema>;
|
|
3818
|
+
/**
|
|
3819
|
+
* Agent profiles: the part of a person's Claude Code or Codex setup that can move to an agent on Overlay Cloud
|
|
3820
|
+
* (instructions, skills, commands, subagents, MCP servers), and the rules that decide what may leave their computer.
|
|
3821
|
+
*
|
|
3822
|
+
* This module is pure and shared. The Agent Host runs it on the person's own machine so secrets are removed
|
|
3823
|
+
* before anything is uploaded, and Overlay runs it again on receipt, so a modified or older client cannot
|
|
3824
|
+
* smuggle one in. Nothing here reads the file system: callers pass in text files and get back what is safe.
|
|
3825
|
+
*/
|
|
3826
|
+
export declare const AGENT_PROFILE_HARNESSES: readonly ["claude-code", "codex"];
|
|
3827
|
+
export type AgentProfileHarness = (typeof AGENT_PROFILE_HARNESSES)[number];
|
|
3828
|
+
export declare function isAgentProfileHarness(value: unknown): value is AgentProfileHarness;
|
|
3829
|
+
export declare const AGENT_PROFILE_LIMITS: {
|
|
3830
|
+
readonly maxFiles: 3000;
|
|
3831
|
+
readonly maxFileBytes: number;
|
|
3832
|
+
readonly maxTotalBytes: number;
|
|
3833
|
+
readonly maxPathLength: 300;
|
|
3834
|
+
};
|
|
3835
|
+
/** A text file, with a path relative to the harness's config folder (`~/.claude` or `~/.codex`). `claude.json` stands for `~/.claude.json`. */
|
|
3836
|
+
export type AgentProfileFile = {
|
|
3837
|
+
path: string;
|
|
3838
|
+
content: string;
|
|
3839
|
+
};
|
|
3840
|
+
export type ProfileDrop = {
|
|
3841
|
+
path: string;
|
|
3842
|
+
reason: string;
|
|
3843
|
+
};
|
|
3844
|
+
/** A value removed from the profile that the agent needs again at run time (an MCP server's token, for example). */
|
|
3845
|
+
export type ProfileSecretNeed = {
|
|
3846
|
+
name: string;
|
|
3847
|
+
usedBy: string;
|
|
3848
|
+
};
|
|
3849
|
+
/** Something that runs a command on the machine; kept out of the applied profile until the person turns it on. */
|
|
3850
|
+
export type ProfileHook = {
|
|
3851
|
+
kind: 'hook' | 'notify' | 'statusline';
|
|
3852
|
+
event: string;
|
|
3853
|
+
command: string;
|
|
3854
|
+
};
|
|
3855
|
+
export type ProfileWarning = {
|
|
3856
|
+
path: string;
|
|
3857
|
+
message: string;
|
|
3858
|
+
};
|
|
3859
|
+
export type ProfileMcpServers = Record<string, Record<string, unknown>>;
|
|
3860
|
+
export type AnalyzedProfile = {
|
|
3861
|
+
harness: AgentProfileHarness;
|
|
3862
|
+
/** Safe to store and to write to a machine. */
|
|
3863
|
+
files: AgentProfileFile[];
|
|
3864
|
+
/** Claude Code MCP servers, with secret values replaced by `${NAME}` placeholders listed in `secrets`. */
|
|
3865
|
+
mcpServers: ProfileMcpServers;
|
|
3866
|
+
hooks: ProfileHook[];
|
|
3867
|
+
secrets: ProfileSecretNeed[];
|
|
3868
|
+
dropped: ProfileDrop[];
|
|
3869
|
+
/** Files where secret-looking text was replaced with `[REDACTED]`. */
|
|
3870
|
+
redactions: Array<{
|
|
3871
|
+
path: string;
|
|
3872
|
+
count: number;
|
|
3873
|
+
}>;
|
|
3874
|
+
warnings: ProfileWarning[];
|
|
3875
|
+
};
|
|
3876
|
+
/** A value that is, or contains, a credential: a known token shape, or a long unbroken high-entropy string. */
|
|
3877
|
+
export declare function looksLikeSecret(value: string): boolean;
|
|
3878
|
+
/** Replaces secret-looking text; returns the cleaned text and how many replacements were made. */
|
|
3879
|
+
export declare function redactSecretText(text: string): {
|
|
3880
|
+
text: string;
|
|
3881
|
+
count: number;
|
|
3882
|
+
};
|
|
3883
|
+
/** Environment-variable style name for a secret value: `GITHUB_TOKEN`, or `SERVER_HEADER` when nothing better is known. */
|
|
3884
|
+
export declare function secretEnvName(...parts: string[]): string;
|
|
3885
|
+
/**
|
|
3886
|
+
* Applies the import rules to a set of files (from a person's `~/.claude` or `~/.codex`): what is allowed in, with
|
|
3887
|
+
* secrets removed and a record of what was left out and why.
|
|
3888
|
+
*/
|
|
3889
|
+
export declare function analyzeAgentProfile(harness: AgentProfileHarness, input: readonly AgentProfileFile[]): AnalyzedProfile;
|
|
3890
|
+
/** What the person is shown before applying: counts by kind instead of one row per file. */
|
|
3891
|
+
export type ProfileSummary = {
|
|
3892
|
+
claudeMd: boolean;
|
|
3893
|
+
agentsMd: boolean;
|
|
3894
|
+
settings: boolean;
|
|
3895
|
+
skills: number;
|
|
3896
|
+
skillFiles: number;
|
|
3897
|
+
commands: number;
|
|
3898
|
+
subagents: number;
|
|
3899
|
+
outputStyles: number;
|
|
3900
|
+
prompts: number;
|
|
3901
|
+
mcpServers: number;
|
|
3902
|
+
hooks: number;
|
|
3903
|
+
secrets: number;
|
|
3904
|
+
dropped: number;
|
|
3905
|
+
files: number;
|
|
3906
|
+
bytes: number;
|
|
3907
|
+
};
|
|
3908
|
+
export declare function summarizeAgentProfile(profile: Pick<AnalyzedProfile, 'files' | 'mcpServers' | 'hooks' | 'secrets' | 'dropped'>): ProfileSummary;
|
|
3909
|
+
/** The bundle a profile is stored as and applied from. */
|
|
3910
|
+
export type AgentProfileBundle = {
|
|
3911
|
+
version: 1;
|
|
3912
|
+
harness: AgentProfileHarness;
|
|
3913
|
+
files: AgentProfileFile[];
|
|
3914
|
+
mcpServers: ProfileMcpServers;
|
|
3915
|
+
hooks: ProfileHook[];
|
|
3916
|
+
secrets: ProfileSecretNeed[];
|
|
3917
|
+
};
|
|
3918
|
+
export declare function bundleFromAnalysis(profile: AnalyzedProfile): AgentProfileBundle;
|
|
3919
|
+
/** What a client uploads: raw files from a folder, or what a host already cleaned plus the pieces cleaning removes. */
|
|
3920
|
+
export type AgentProfileUpload = {
|
|
3921
|
+
harness: AgentProfileHarness;
|
|
3922
|
+
files: AgentProfileFile[];
|
|
3923
|
+
mcpServers?: ProfileMcpServers;
|
|
3924
|
+
hooks?: ProfileHook[];
|
|
3925
|
+
secrets?: ProfileSecretNeed[];
|
|
3926
|
+
};
|
|
3927
|
+
/**
|
|
3928
|
+
* Runs the import rules over an upload. The receiving side calls this whatever the sender claims to have cleaned:
|
|
3929
|
+
* files and servers are analyzed again, and the hooks and secret names a host reports are accepted only in a bounded,
|
|
3930
|
+
* validated form.
|
|
3931
|
+
*/
|
|
3932
|
+
export declare function analyzeAgentProfileUpload(upload: AgentProfileUpload): AnalyzedProfile;
|
|
3933
|
+
/** The folders and files a client may read at the top of a harness's config folder; a browser uses it to skip big folders unread. */
|
|
3934
|
+
export declare const AGENT_PROFILE_TOP_LEVEL: Record<AgentProfileHarness, readonly string[]>;
|
|
3794
3935
|
//# sourceMappingURL=index.d.ts.map
|