@opencode-ai/protocol 0.0.0-next-14994 → 0.0.0-next-14998
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/groups/event.d.ts +217 -92
- package/dist/groups/message.d.ts +66 -26
- package/dist/groups/session.d.ts +363 -158
- package/dist/groups/session.js +8 -2
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -906,12 +906,17 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
906
906
|
prompt: Schema.Struct<{
|
|
907
907
|
readonly text: Schema.String;
|
|
908
908
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
909
|
-
readonly
|
|
909
|
+
readonly data: Schema.String;
|
|
910
910
|
readonly mime: Schema.String;
|
|
911
|
-
readonly
|
|
911
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
912
|
+
readonly type: Schema.Literal<"inline">;
|
|
913
|
+
}>, Schema.Struct<{
|
|
914
|
+
readonly type: Schema.Literal<"uri">;
|
|
915
|
+
readonly uri: Schema.String;
|
|
916
|
+
}>]>;
|
|
912
917
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
913
918
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
914
|
-
readonly
|
|
919
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
915
920
|
readonly start: Schema.Finite;
|
|
916
921
|
readonly end: Schema.Finite;
|
|
917
922
|
readonly text: Schema.String;
|
|
@@ -922,24 +927,34 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
922
927
|
}>>, never, never>;
|
|
923
928
|
}> & {
|
|
924
929
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
925
|
-
readonly
|
|
930
|
+
readonly data: string;
|
|
926
931
|
readonly mime: string;
|
|
927
|
-
readonly
|
|
932
|
+
readonly source: {
|
|
933
|
+
readonly type: "inline";
|
|
934
|
+
} | {
|
|
935
|
+
readonly type: "uri";
|
|
936
|
+
readonly uri: string;
|
|
937
|
+
};
|
|
928
938
|
readonly name?: string | undefined;
|
|
929
939
|
readonly description?: string | undefined;
|
|
930
|
-
readonly
|
|
940
|
+
readonly mention?: {
|
|
931
941
|
readonly start: number;
|
|
932
942
|
readonly end: number;
|
|
933
943
|
readonly text: string;
|
|
934
944
|
} | undefined;
|
|
935
945
|
};
|
|
936
946
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
937
|
-
readonly
|
|
947
|
+
readonly data: Schema.String;
|
|
938
948
|
readonly mime: Schema.String;
|
|
939
|
-
readonly
|
|
949
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
950
|
+
readonly type: Schema.Literal<"inline">;
|
|
951
|
+
}>, Schema.Struct<{
|
|
952
|
+
readonly type: Schema.Literal<"uri">;
|
|
953
|
+
readonly uri: Schema.String;
|
|
954
|
+
}>]>;
|
|
940
955
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
941
956
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
942
|
-
readonly
|
|
957
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
943
958
|
readonly start: Schema.Finite;
|
|
944
959
|
readonly end: Schema.Finite;
|
|
945
960
|
readonly text: Schema.String;
|
|
@@ -950,12 +965,17 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
950
965
|
}>>, never, never>;
|
|
951
966
|
}> & {
|
|
952
967
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
953
|
-
readonly
|
|
968
|
+
readonly data: string;
|
|
954
969
|
readonly mime: string;
|
|
955
|
-
readonly
|
|
970
|
+
readonly source: {
|
|
971
|
+
readonly type: "inline";
|
|
972
|
+
} | {
|
|
973
|
+
readonly type: "uri";
|
|
974
|
+
readonly uri: string;
|
|
975
|
+
};
|
|
956
976
|
readonly name?: string | undefined;
|
|
957
977
|
readonly description?: string | undefined;
|
|
958
|
-
readonly
|
|
978
|
+
readonly mention?: {
|
|
959
979
|
readonly start: number;
|
|
960
980
|
readonly end: number;
|
|
961
981
|
readonly text: string;
|
|
@@ -964,7 +984,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
964
984
|
}>>, never, never>;
|
|
965
985
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
966
986
|
readonly name: Schema.String;
|
|
967
|
-
readonly
|
|
987
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
968
988
|
readonly start: Schema.Finite;
|
|
969
989
|
readonly end: Schema.Finite;
|
|
970
990
|
readonly text: Schema.String;
|
|
@@ -975,7 +995,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
975
995
|
}>>, never, never>;
|
|
976
996
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
977
997
|
readonly name: Schema.String;
|
|
978
|
-
readonly
|
|
998
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
979
999
|
readonly start: Schema.Finite;
|
|
980
1000
|
readonly end: Schema.Finite;
|
|
981
1001
|
readonly text: Schema.String;
|
|
@@ -989,12 +1009,17 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
989
1009
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
990
1010
|
readonly text: string;
|
|
991
1011
|
readonly files?: readonly {
|
|
992
|
-
readonly
|
|
1012
|
+
readonly data: string;
|
|
993
1013
|
readonly mime: string;
|
|
994
|
-
readonly
|
|
1014
|
+
readonly source: {
|
|
1015
|
+
readonly type: "inline";
|
|
1016
|
+
} | {
|
|
1017
|
+
readonly type: "uri";
|
|
1018
|
+
readonly uri: string;
|
|
1019
|
+
};
|
|
995
1020
|
readonly name?: string | undefined;
|
|
996
1021
|
readonly description?: string | undefined;
|
|
997
|
-
readonly
|
|
1022
|
+
readonly mention?: {
|
|
998
1023
|
readonly start: number;
|
|
999
1024
|
readonly end: number;
|
|
1000
1025
|
readonly text: string;
|
|
@@ -1002,7 +1027,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1002
1027
|
}[] | undefined;
|
|
1003
1028
|
readonly agents?: readonly {
|
|
1004
1029
|
readonly name: string;
|
|
1005
|
-
readonly
|
|
1030
|
+
readonly mention?: {
|
|
1006
1031
|
readonly start: number;
|
|
1007
1032
|
readonly end: number;
|
|
1008
1033
|
readonly text: string;
|
|
@@ -1012,12 +1037,17 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1012
1037
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
1013
1038
|
readonly text: string;
|
|
1014
1039
|
readonly files?: readonly {
|
|
1015
|
-
readonly
|
|
1040
|
+
readonly data: string;
|
|
1016
1041
|
readonly mime: string;
|
|
1017
|
-
readonly
|
|
1042
|
+
readonly source: {
|
|
1043
|
+
readonly type: "inline";
|
|
1044
|
+
} | {
|
|
1045
|
+
readonly type: "uri";
|
|
1046
|
+
readonly uri: string;
|
|
1047
|
+
};
|
|
1018
1048
|
readonly name?: string | undefined;
|
|
1019
1049
|
readonly description?: string | undefined;
|
|
1020
|
-
readonly
|
|
1050
|
+
readonly mention?: {
|
|
1021
1051
|
readonly start: number;
|
|
1022
1052
|
readonly end: number;
|
|
1023
1053
|
readonly text: string;
|
|
@@ -1025,7 +1055,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1025
1055
|
}[] | undefined;
|
|
1026
1056
|
readonly agents?: readonly {
|
|
1027
1057
|
readonly name: string;
|
|
1028
|
-
readonly
|
|
1058
|
+
readonly mention?: {
|
|
1029
1059
|
readonly start: number;
|
|
1030
1060
|
readonly end: number;
|
|
1031
1061
|
readonly text: string;
|
|
@@ -1054,12 +1084,17 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1054
1084
|
prompt: Schema.Struct<{
|
|
1055
1085
|
readonly text: Schema.String;
|
|
1056
1086
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1057
|
-
readonly
|
|
1087
|
+
readonly data: Schema.String;
|
|
1058
1088
|
readonly mime: Schema.String;
|
|
1059
|
-
readonly
|
|
1089
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1090
|
+
readonly type: Schema.Literal<"inline">;
|
|
1091
|
+
}>, Schema.Struct<{
|
|
1092
|
+
readonly type: Schema.Literal<"uri">;
|
|
1093
|
+
readonly uri: Schema.String;
|
|
1094
|
+
}>]>;
|
|
1060
1095
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1061
1096
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1062
|
-
readonly
|
|
1097
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1063
1098
|
readonly start: Schema.Finite;
|
|
1064
1099
|
readonly end: Schema.Finite;
|
|
1065
1100
|
readonly text: Schema.String;
|
|
@@ -1070,24 +1105,34 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1070
1105
|
}>>, never, never>;
|
|
1071
1106
|
}> & {
|
|
1072
1107
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
1073
|
-
readonly
|
|
1108
|
+
readonly data: string;
|
|
1074
1109
|
readonly mime: string;
|
|
1075
|
-
readonly
|
|
1110
|
+
readonly source: {
|
|
1111
|
+
readonly type: "inline";
|
|
1112
|
+
} | {
|
|
1113
|
+
readonly type: "uri";
|
|
1114
|
+
readonly uri: string;
|
|
1115
|
+
};
|
|
1076
1116
|
readonly name?: string | undefined;
|
|
1077
1117
|
readonly description?: string | undefined;
|
|
1078
|
-
readonly
|
|
1118
|
+
readonly mention?: {
|
|
1079
1119
|
readonly start: number;
|
|
1080
1120
|
readonly end: number;
|
|
1081
1121
|
readonly text: string;
|
|
1082
1122
|
} | undefined;
|
|
1083
1123
|
};
|
|
1084
1124
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1085
|
-
readonly
|
|
1125
|
+
readonly data: Schema.String;
|
|
1086
1126
|
readonly mime: Schema.String;
|
|
1087
|
-
readonly
|
|
1127
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1128
|
+
readonly type: Schema.Literal<"inline">;
|
|
1129
|
+
}>, Schema.Struct<{
|
|
1130
|
+
readonly type: Schema.Literal<"uri">;
|
|
1131
|
+
readonly uri: Schema.String;
|
|
1132
|
+
}>]>;
|
|
1088
1133
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1089
1134
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1090
|
-
readonly
|
|
1135
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1091
1136
|
readonly start: Schema.Finite;
|
|
1092
1137
|
readonly end: Schema.Finite;
|
|
1093
1138
|
readonly text: Schema.String;
|
|
@@ -1098,12 +1143,17 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1098
1143
|
}>>, never, never>;
|
|
1099
1144
|
}> & {
|
|
1100
1145
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
1101
|
-
readonly
|
|
1146
|
+
readonly data: string;
|
|
1102
1147
|
readonly mime: string;
|
|
1103
|
-
readonly
|
|
1148
|
+
readonly source: {
|
|
1149
|
+
readonly type: "inline";
|
|
1150
|
+
} | {
|
|
1151
|
+
readonly type: "uri";
|
|
1152
|
+
readonly uri: string;
|
|
1153
|
+
};
|
|
1104
1154
|
readonly name?: string | undefined;
|
|
1105
1155
|
readonly description?: string | undefined;
|
|
1106
|
-
readonly
|
|
1156
|
+
readonly mention?: {
|
|
1107
1157
|
readonly start: number;
|
|
1108
1158
|
readonly end: number;
|
|
1109
1159
|
readonly text: string;
|
|
@@ -1112,7 +1162,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1112
1162
|
}>>, never, never>;
|
|
1113
1163
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1114
1164
|
readonly name: Schema.String;
|
|
1115
|
-
readonly
|
|
1165
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1116
1166
|
readonly start: Schema.Finite;
|
|
1117
1167
|
readonly end: Schema.Finite;
|
|
1118
1168
|
readonly text: Schema.String;
|
|
@@ -1123,7 +1173,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1123
1173
|
}>>, never, never>;
|
|
1124
1174
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1125
1175
|
readonly name: Schema.String;
|
|
1126
|
-
readonly
|
|
1176
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1127
1177
|
readonly start: Schema.Finite;
|
|
1128
1178
|
readonly end: Schema.Finite;
|
|
1129
1179
|
readonly text: Schema.String;
|
|
@@ -1137,12 +1187,17 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1137
1187
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
1138
1188
|
readonly text: string;
|
|
1139
1189
|
readonly files?: readonly {
|
|
1140
|
-
readonly
|
|
1190
|
+
readonly data: string;
|
|
1141
1191
|
readonly mime: string;
|
|
1142
|
-
readonly
|
|
1192
|
+
readonly source: {
|
|
1193
|
+
readonly type: "inline";
|
|
1194
|
+
} | {
|
|
1195
|
+
readonly type: "uri";
|
|
1196
|
+
readonly uri: string;
|
|
1197
|
+
};
|
|
1143
1198
|
readonly name?: string | undefined;
|
|
1144
1199
|
readonly description?: string | undefined;
|
|
1145
|
-
readonly
|
|
1200
|
+
readonly mention?: {
|
|
1146
1201
|
readonly start: number;
|
|
1147
1202
|
readonly end: number;
|
|
1148
1203
|
readonly text: string;
|
|
@@ -1150,7 +1205,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1150
1205
|
}[] | undefined;
|
|
1151
1206
|
readonly agents?: readonly {
|
|
1152
1207
|
readonly name: string;
|
|
1153
|
-
readonly
|
|
1208
|
+
readonly mention?: {
|
|
1154
1209
|
readonly start: number;
|
|
1155
1210
|
readonly end: number;
|
|
1156
1211
|
readonly text: string;
|
|
@@ -1160,12 +1215,17 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1160
1215
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
1161
1216
|
readonly text: string;
|
|
1162
1217
|
readonly files?: readonly {
|
|
1163
|
-
readonly
|
|
1218
|
+
readonly data: string;
|
|
1164
1219
|
readonly mime: string;
|
|
1165
|
-
readonly
|
|
1220
|
+
readonly source: {
|
|
1221
|
+
readonly type: "inline";
|
|
1222
|
+
} | {
|
|
1223
|
+
readonly type: "uri";
|
|
1224
|
+
readonly uri: string;
|
|
1225
|
+
};
|
|
1166
1226
|
readonly name?: string | undefined;
|
|
1167
1227
|
readonly description?: string | undefined;
|
|
1168
|
-
readonly
|
|
1228
|
+
readonly mention?: {
|
|
1169
1229
|
readonly start: number;
|
|
1170
1230
|
readonly end: number;
|
|
1171
1231
|
readonly text: string;
|
|
@@ -1173,7 +1233,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1173
1233
|
}[] | undefined;
|
|
1174
1234
|
readonly agents?: readonly {
|
|
1175
1235
|
readonly name: string;
|
|
1176
|
-
readonly
|
|
1236
|
+
readonly mention?: {
|
|
1177
1237
|
readonly start: number;
|
|
1178
1238
|
readonly end: number;
|
|
1179
1239
|
readonly text: string;
|
|
@@ -7681,12 +7741,17 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7681
7741
|
readonly prompt: {
|
|
7682
7742
|
readonly text: string;
|
|
7683
7743
|
readonly files?: readonly {
|
|
7684
|
-
readonly
|
|
7744
|
+
readonly data: string;
|
|
7685
7745
|
readonly mime: string;
|
|
7686
|
-
readonly
|
|
7746
|
+
readonly source: {
|
|
7747
|
+
readonly type: "inline";
|
|
7748
|
+
} | {
|
|
7749
|
+
readonly type: "uri";
|
|
7750
|
+
readonly uri: string;
|
|
7751
|
+
};
|
|
7687
7752
|
readonly name?: string | undefined;
|
|
7688
7753
|
readonly description?: string | undefined;
|
|
7689
|
-
readonly
|
|
7754
|
+
readonly mention?: {
|
|
7690
7755
|
readonly start: number;
|
|
7691
7756
|
readonly end: number;
|
|
7692
7757
|
readonly text: string;
|
|
@@ -7694,7 +7759,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7694
7759
|
}[] | undefined;
|
|
7695
7760
|
readonly agents?: readonly {
|
|
7696
7761
|
readonly name: string;
|
|
7697
|
-
readonly
|
|
7762
|
+
readonly mention?: {
|
|
7698
7763
|
readonly start: number;
|
|
7699
7764
|
readonly end: number;
|
|
7700
7765
|
readonly text: string;
|
|
@@ -10804,12 +10869,17 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10804
10869
|
prompt: Schema.Struct<{
|
|
10805
10870
|
readonly text: Schema.String;
|
|
10806
10871
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10807
|
-
readonly
|
|
10872
|
+
readonly data: Schema.String;
|
|
10808
10873
|
readonly mime: Schema.String;
|
|
10809
|
-
readonly
|
|
10874
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
10875
|
+
readonly type: Schema.Literal<"inline">;
|
|
10876
|
+
}>, Schema.Struct<{
|
|
10877
|
+
readonly type: Schema.Literal<"uri">;
|
|
10878
|
+
readonly uri: Schema.String;
|
|
10879
|
+
}>]>;
|
|
10810
10880
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10811
10881
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10812
|
-
readonly
|
|
10882
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10813
10883
|
readonly start: Schema.Finite;
|
|
10814
10884
|
readonly end: Schema.Finite;
|
|
10815
10885
|
readonly text: Schema.String;
|
|
@@ -10820,24 +10890,34 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10820
10890
|
}>>, never, never>;
|
|
10821
10891
|
}> & {
|
|
10822
10892
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
10823
|
-
readonly
|
|
10893
|
+
readonly data: string;
|
|
10824
10894
|
readonly mime: string;
|
|
10825
|
-
readonly
|
|
10895
|
+
readonly source: {
|
|
10896
|
+
readonly type: "inline";
|
|
10897
|
+
} | {
|
|
10898
|
+
readonly type: "uri";
|
|
10899
|
+
readonly uri: string;
|
|
10900
|
+
};
|
|
10826
10901
|
readonly name?: string | undefined;
|
|
10827
10902
|
readonly description?: string | undefined;
|
|
10828
|
-
readonly
|
|
10903
|
+
readonly mention?: {
|
|
10829
10904
|
readonly start: number;
|
|
10830
10905
|
readonly end: number;
|
|
10831
10906
|
readonly text: string;
|
|
10832
10907
|
} | undefined;
|
|
10833
10908
|
};
|
|
10834
10909
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10835
|
-
readonly
|
|
10910
|
+
readonly data: Schema.String;
|
|
10836
10911
|
readonly mime: Schema.String;
|
|
10837
|
-
readonly
|
|
10912
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
10913
|
+
readonly type: Schema.Literal<"inline">;
|
|
10914
|
+
}>, Schema.Struct<{
|
|
10915
|
+
readonly type: Schema.Literal<"uri">;
|
|
10916
|
+
readonly uri: Schema.String;
|
|
10917
|
+
}>]>;
|
|
10838
10918
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10839
10919
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10840
|
-
readonly
|
|
10920
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10841
10921
|
readonly start: Schema.Finite;
|
|
10842
10922
|
readonly end: Schema.Finite;
|
|
10843
10923
|
readonly text: Schema.String;
|
|
@@ -10848,12 +10928,17 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10848
10928
|
}>>, never, never>;
|
|
10849
10929
|
}> & {
|
|
10850
10930
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
10851
|
-
readonly
|
|
10931
|
+
readonly data: string;
|
|
10852
10932
|
readonly mime: string;
|
|
10853
|
-
readonly
|
|
10933
|
+
readonly source: {
|
|
10934
|
+
readonly type: "inline";
|
|
10935
|
+
} | {
|
|
10936
|
+
readonly type: "uri";
|
|
10937
|
+
readonly uri: string;
|
|
10938
|
+
};
|
|
10854
10939
|
readonly name?: string | undefined;
|
|
10855
10940
|
readonly description?: string | undefined;
|
|
10856
|
-
readonly
|
|
10941
|
+
readonly mention?: {
|
|
10857
10942
|
readonly start: number;
|
|
10858
10943
|
readonly end: number;
|
|
10859
10944
|
readonly text: string;
|
|
@@ -10862,7 +10947,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10862
10947
|
}>>, never, never>;
|
|
10863
10948
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10864
10949
|
readonly name: Schema.String;
|
|
10865
|
-
readonly
|
|
10950
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10866
10951
|
readonly start: Schema.Finite;
|
|
10867
10952
|
readonly end: Schema.Finite;
|
|
10868
10953
|
readonly text: Schema.String;
|
|
@@ -10873,7 +10958,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10873
10958
|
}>>, never, never>;
|
|
10874
10959
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10875
10960
|
readonly name: Schema.String;
|
|
10876
|
-
readonly
|
|
10961
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10877
10962
|
readonly start: Schema.Finite;
|
|
10878
10963
|
readonly end: Schema.Finite;
|
|
10879
10964
|
readonly text: Schema.String;
|
|
@@ -10887,12 +10972,17 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10887
10972
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
10888
10973
|
readonly text: string;
|
|
10889
10974
|
readonly files?: readonly {
|
|
10890
|
-
readonly
|
|
10975
|
+
readonly data: string;
|
|
10891
10976
|
readonly mime: string;
|
|
10892
|
-
readonly
|
|
10977
|
+
readonly source: {
|
|
10978
|
+
readonly type: "inline";
|
|
10979
|
+
} | {
|
|
10980
|
+
readonly type: "uri";
|
|
10981
|
+
readonly uri: string;
|
|
10982
|
+
};
|
|
10893
10983
|
readonly name?: string | undefined;
|
|
10894
10984
|
readonly description?: string | undefined;
|
|
10895
|
-
readonly
|
|
10985
|
+
readonly mention?: {
|
|
10896
10986
|
readonly start: number;
|
|
10897
10987
|
readonly end: number;
|
|
10898
10988
|
readonly text: string;
|
|
@@ -10900,7 +10990,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10900
10990
|
}[] | undefined;
|
|
10901
10991
|
readonly agents?: readonly {
|
|
10902
10992
|
readonly name: string;
|
|
10903
|
-
readonly
|
|
10993
|
+
readonly mention?: {
|
|
10904
10994
|
readonly start: number;
|
|
10905
10995
|
readonly end: number;
|
|
10906
10996
|
readonly text: string;
|
|
@@ -10910,12 +11000,17 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10910
11000
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
10911
11001
|
readonly text: string;
|
|
10912
11002
|
readonly files?: readonly {
|
|
10913
|
-
readonly
|
|
11003
|
+
readonly data: string;
|
|
10914
11004
|
readonly mime: string;
|
|
10915
|
-
readonly
|
|
11005
|
+
readonly source: {
|
|
11006
|
+
readonly type: "inline";
|
|
11007
|
+
} | {
|
|
11008
|
+
readonly type: "uri";
|
|
11009
|
+
readonly uri: string;
|
|
11010
|
+
};
|
|
10916
11011
|
readonly name?: string | undefined;
|
|
10917
11012
|
readonly description?: string | undefined;
|
|
10918
|
-
readonly
|
|
11013
|
+
readonly mention?: {
|
|
10919
11014
|
readonly start: number;
|
|
10920
11015
|
readonly end: number;
|
|
10921
11016
|
readonly text: string;
|
|
@@ -10923,7 +11018,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10923
11018
|
}[] | undefined;
|
|
10924
11019
|
readonly agents?: readonly {
|
|
10925
11020
|
readonly name: string;
|
|
10926
|
-
readonly
|
|
11021
|
+
readonly mention?: {
|
|
10927
11022
|
readonly start: number;
|
|
10928
11023
|
readonly end: number;
|
|
10929
11024
|
readonly text: string;
|
|
@@ -10952,12 +11047,17 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10952
11047
|
prompt: Schema.Struct<{
|
|
10953
11048
|
readonly text: Schema.String;
|
|
10954
11049
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10955
|
-
readonly
|
|
11050
|
+
readonly data: Schema.String;
|
|
10956
11051
|
readonly mime: Schema.String;
|
|
10957
|
-
readonly
|
|
11052
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
11053
|
+
readonly type: Schema.Literal<"inline">;
|
|
11054
|
+
}>, Schema.Struct<{
|
|
11055
|
+
readonly type: Schema.Literal<"uri">;
|
|
11056
|
+
readonly uri: Schema.String;
|
|
11057
|
+
}>]>;
|
|
10958
11058
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10959
11059
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10960
|
-
readonly
|
|
11060
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10961
11061
|
readonly start: Schema.Finite;
|
|
10962
11062
|
readonly end: Schema.Finite;
|
|
10963
11063
|
readonly text: Schema.String;
|
|
@@ -10968,24 +11068,34 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10968
11068
|
}>>, never, never>;
|
|
10969
11069
|
}> & {
|
|
10970
11070
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
10971
|
-
readonly
|
|
11071
|
+
readonly data: string;
|
|
10972
11072
|
readonly mime: string;
|
|
10973
|
-
readonly
|
|
11073
|
+
readonly source: {
|
|
11074
|
+
readonly type: "inline";
|
|
11075
|
+
} | {
|
|
11076
|
+
readonly type: "uri";
|
|
11077
|
+
readonly uri: string;
|
|
11078
|
+
};
|
|
10974
11079
|
readonly name?: string | undefined;
|
|
10975
11080
|
readonly description?: string | undefined;
|
|
10976
|
-
readonly
|
|
11081
|
+
readonly mention?: {
|
|
10977
11082
|
readonly start: number;
|
|
10978
11083
|
readonly end: number;
|
|
10979
11084
|
readonly text: string;
|
|
10980
11085
|
} | undefined;
|
|
10981
11086
|
};
|
|
10982
11087
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10983
|
-
readonly
|
|
11088
|
+
readonly data: Schema.String;
|
|
10984
11089
|
readonly mime: Schema.String;
|
|
10985
|
-
readonly
|
|
11090
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
11091
|
+
readonly type: Schema.Literal<"inline">;
|
|
11092
|
+
}>, Schema.Struct<{
|
|
11093
|
+
readonly type: Schema.Literal<"uri">;
|
|
11094
|
+
readonly uri: Schema.String;
|
|
11095
|
+
}>]>;
|
|
10986
11096
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10987
11097
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10988
|
-
readonly
|
|
11098
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10989
11099
|
readonly start: Schema.Finite;
|
|
10990
11100
|
readonly end: Schema.Finite;
|
|
10991
11101
|
readonly text: Schema.String;
|
|
@@ -10996,12 +11106,17 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10996
11106
|
}>>, never, never>;
|
|
10997
11107
|
}> & {
|
|
10998
11108
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
10999
|
-
readonly
|
|
11109
|
+
readonly data: string;
|
|
11000
11110
|
readonly mime: string;
|
|
11001
|
-
readonly
|
|
11111
|
+
readonly source: {
|
|
11112
|
+
readonly type: "inline";
|
|
11113
|
+
} | {
|
|
11114
|
+
readonly type: "uri";
|
|
11115
|
+
readonly uri: string;
|
|
11116
|
+
};
|
|
11002
11117
|
readonly name?: string | undefined;
|
|
11003
11118
|
readonly description?: string | undefined;
|
|
11004
|
-
readonly
|
|
11119
|
+
readonly mention?: {
|
|
11005
11120
|
readonly start: number;
|
|
11006
11121
|
readonly end: number;
|
|
11007
11122
|
readonly text: string;
|
|
@@ -11010,7 +11125,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11010
11125
|
}>>, never, never>;
|
|
11011
11126
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11012
11127
|
readonly name: Schema.String;
|
|
11013
|
-
readonly
|
|
11128
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11014
11129
|
readonly start: Schema.Finite;
|
|
11015
11130
|
readonly end: Schema.Finite;
|
|
11016
11131
|
readonly text: Schema.String;
|
|
@@ -11021,7 +11136,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11021
11136
|
}>>, never, never>;
|
|
11022
11137
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11023
11138
|
readonly name: Schema.String;
|
|
11024
|
-
readonly
|
|
11139
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11025
11140
|
readonly start: Schema.Finite;
|
|
11026
11141
|
readonly end: Schema.Finite;
|
|
11027
11142
|
readonly text: Schema.String;
|
|
@@ -11035,12 +11150,17 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11035
11150
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
11036
11151
|
readonly text: string;
|
|
11037
11152
|
readonly files?: readonly {
|
|
11038
|
-
readonly
|
|
11153
|
+
readonly data: string;
|
|
11039
11154
|
readonly mime: string;
|
|
11040
|
-
readonly
|
|
11155
|
+
readonly source: {
|
|
11156
|
+
readonly type: "inline";
|
|
11157
|
+
} | {
|
|
11158
|
+
readonly type: "uri";
|
|
11159
|
+
readonly uri: string;
|
|
11160
|
+
};
|
|
11041
11161
|
readonly name?: string | undefined;
|
|
11042
11162
|
readonly description?: string | undefined;
|
|
11043
|
-
readonly
|
|
11163
|
+
readonly mention?: {
|
|
11044
11164
|
readonly start: number;
|
|
11045
11165
|
readonly end: number;
|
|
11046
11166
|
readonly text: string;
|
|
@@ -11048,7 +11168,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11048
11168
|
}[] | undefined;
|
|
11049
11169
|
readonly agents?: readonly {
|
|
11050
11170
|
readonly name: string;
|
|
11051
|
-
readonly
|
|
11171
|
+
readonly mention?: {
|
|
11052
11172
|
readonly start: number;
|
|
11053
11173
|
readonly end: number;
|
|
11054
11174
|
readonly text: string;
|
|
@@ -11058,12 +11178,17 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11058
11178
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
11059
11179
|
readonly text: string;
|
|
11060
11180
|
readonly files?: readonly {
|
|
11061
|
-
readonly
|
|
11181
|
+
readonly data: string;
|
|
11062
11182
|
readonly mime: string;
|
|
11063
|
-
readonly
|
|
11183
|
+
readonly source: {
|
|
11184
|
+
readonly type: "inline";
|
|
11185
|
+
} | {
|
|
11186
|
+
readonly type: "uri";
|
|
11187
|
+
readonly uri: string;
|
|
11188
|
+
};
|
|
11064
11189
|
readonly name?: string | undefined;
|
|
11065
11190
|
readonly description?: string | undefined;
|
|
11066
|
-
readonly
|
|
11191
|
+
readonly mention?: {
|
|
11067
11192
|
readonly start: number;
|
|
11068
11193
|
readonly end: number;
|
|
11069
11194
|
readonly text: string;
|
|
@@ -11071,7 +11196,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11071
11196
|
}[] | undefined;
|
|
11072
11197
|
readonly agents?: readonly {
|
|
11073
11198
|
readonly name: string;
|
|
11074
|
-
readonly
|
|
11199
|
+
readonly mention?: {
|
|
11075
11200
|
readonly start: number;
|
|
11076
11201
|
readonly end: number;
|
|
11077
11202
|
readonly text: string;
|