@opencode-ai/protocol 0.0.0-next-14993 → 0.0.0-next-14997

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