@opencode-ai/protocol 0.0.0-next-15174 → 0.0.0-next-15180
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 +508 -672
- package/dist/groups/session.d.ts +433 -592
- package/dist/groups/session.js +9 -6
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -963,7 +963,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
963
963
|
};
|
|
964
964
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
965
965
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
966
|
-
readonly type: Schema.Literal<"session.
|
|
966
|
+
readonly type: Schema.Literal<"session.input.promoted">;
|
|
967
967
|
readonly durable: Schema.Struct<{
|
|
968
968
|
readonly aggregateID: Schema.String;
|
|
969
969
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -999,7 +999,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
999
999
|
};
|
|
1000
1000
|
}>;
|
|
1001
1001
|
}> & {
|
|
1002
|
-
type: "session.
|
|
1002
|
+
type: "session.input.promoted";
|
|
1003
1003
|
durability: "durable";
|
|
1004
1004
|
durable: {
|
|
1005
1005
|
readonly version: number;
|
|
@@ -1021,7 +1021,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1021
1021
|
};
|
|
1022
1022
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1023
1023
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1024
|
-
readonly type: Schema.Literal<"session.
|
|
1024
|
+
readonly type: Schema.Literal<"session.input.admitted">;
|
|
1025
1025
|
readonly durable: Schema.Struct<{
|
|
1026
1026
|
readonly aggregateID: Schema.String;
|
|
1027
1027
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -1047,350 +1047,260 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1047
1047
|
}>, never, never>;
|
|
1048
1048
|
}>>, never, never>;
|
|
1049
1049
|
readonly data: Schema.Struct<{
|
|
1050
|
-
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1050
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1051
1051
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1052
1052
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1053
1053
|
};
|
|
1054
|
-
|
|
1055
|
-
readonly
|
|
1056
|
-
readonly
|
|
1057
|
-
readonly
|
|
1058
|
-
readonly
|
|
1059
|
-
readonly
|
|
1060
|
-
readonly
|
|
1061
|
-
|
|
1062
|
-
readonly
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
readonly
|
|
1069
|
-
readonly
|
|
1070
|
-
readonly
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
readonly
|
|
1082
|
-
|
|
1083
|
-
readonly
|
|
1084
|
-
|
|
1054
|
+
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
1055
|
+
readonly type: Schema.tag<"user">;
|
|
1056
|
+
readonly data: Schema.Struct<{
|
|
1057
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1058
|
+
readonly text: Schema.String;
|
|
1059
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1060
|
+
readonly data: Schema.String;
|
|
1061
|
+
readonly mime: Schema.String;
|
|
1062
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1063
|
+
readonly type: Schema.Literal<"inline">;
|
|
1064
|
+
}>, Schema.Struct<{
|
|
1065
|
+
readonly type: Schema.Literal<"uri">;
|
|
1066
|
+
readonly uri: Schema.String;
|
|
1067
|
+
}>]>;
|
|
1068
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1069
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1070
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1071
|
+
readonly start: Schema.Finite;
|
|
1072
|
+
readonly end: Schema.Finite;
|
|
1073
|
+
readonly text: Schema.String;
|
|
1074
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1075
|
+
readonly start: Schema.Finite;
|
|
1076
|
+
readonly end: Schema.Finite;
|
|
1077
|
+
readonly text: Schema.String;
|
|
1078
|
+
}>>, never, never>;
|
|
1079
|
+
}> & {
|
|
1080
|
+
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
1081
|
+
readonly data: string;
|
|
1082
|
+
readonly mime: string;
|
|
1083
|
+
readonly source: {
|
|
1084
|
+
readonly type: "inline";
|
|
1085
|
+
} | {
|
|
1086
|
+
readonly type: "uri";
|
|
1087
|
+
readonly uri: string;
|
|
1088
|
+
};
|
|
1089
|
+
readonly name?: string | undefined;
|
|
1090
|
+
readonly description?: string | undefined;
|
|
1091
|
+
readonly mention?: {
|
|
1092
|
+
readonly start: number;
|
|
1093
|
+
readonly end: number;
|
|
1094
|
+
readonly text: string;
|
|
1095
|
+
} | undefined;
|
|
1085
1096
|
};
|
|
1086
|
-
|
|
1087
|
-
readonly
|
|
1088
|
-
readonly
|
|
1089
|
-
|
|
1090
|
-
readonly
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1097
|
+
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1098
|
+
readonly data: Schema.String;
|
|
1099
|
+
readonly mime: Schema.String;
|
|
1100
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1101
|
+
readonly type: Schema.Literal<"inline">;
|
|
1102
|
+
}>, Schema.Struct<{
|
|
1103
|
+
readonly type: Schema.Literal<"uri">;
|
|
1104
|
+
readonly uri: Schema.String;
|
|
1105
|
+
}>]>;
|
|
1106
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1107
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1108
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1109
|
+
readonly start: Schema.Finite;
|
|
1110
|
+
readonly end: Schema.Finite;
|
|
1111
|
+
readonly text: Schema.String;
|
|
1112
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1113
|
+
readonly start: Schema.Finite;
|
|
1114
|
+
readonly end: Schema.Finite;
|
|
1115
|
+
readonly text: Schema.String;
|
|
1116
|
+
}>>, never, never>;
|
|
1117
|
+
}> & {
|
|
1118
|
+
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
1119
|
+
readonly data: string;
|
|
1120
|
+
readonly mime: string;
|
|
1121
|
+
readonly source: {
|
|
1122
|
+
readonly type: "inline";
|
|
1123
|
+
} | {
|
|
1124
|
+
readonly type: "uri";
|
|
1125
|
+
readonly uri: string;
|
|
1126
|
+
};
|
|
1127
|
+
readonly name?: string | undefined;
|
|
1128
|
+
readonly description?: string | undefined;
|
|
1129
|
+
readonly mention?: {
|
|
1130
|
+
readonly start: number;
|
|
1131
|
+
readonly end: number;
|
|
1132
|
+
readonly text: string;
|
|
1133
|
+
} | undefined;
|
|
1123
1134
|
};
|
|
1124
|
-
readonly name?: string | undefined;
|
|
1125
|
-
readonly description?: string | undefined;
|
|
1126
|
-
readonly mention?: {
|
|
1127
|
-
readonly start: number;
|
|
1128
|
-
readonly end: number;
|
|
1129
|
-
readonly text: string;
|
|
1130
|
-
} | undefined;
|
|
1131
|
-
};
|
|
1132
|
-
}>>, never, never>;
|
|
1133
|
-
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1134
|
-
readonly name: Schema.String;
|
|
1135
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1136
|
-
readonly start: Schema.Finite;
|
|
1137
|
-
readonly end: Schema.Finite;
|
|
1138
|
-
readonly text: Schema.String;
|
|
1139
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1140
|
-
readonly start: Schema.Finite;
|
|
1141
|
-
readonly end: Schema.Finite;
|
|
1142
|
-
readonly text: Schema.String;
|
|
1143
|
-
}>>, never, never>;
|
|
1144
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1145
|
-
readonly name: Schema.String;
|
|
1146
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1147
|
-
readonly start: Schema.Finite;
|
|
1148
|
-
readonly end: Schema.Finite;
|
|
1149
|
-
readonly text: Schema.String;
|
|
1150
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1151
|
-
readonly start: Schema.Finite;
|
|
1152
|
-
readonly end: Schema.Finite;
|
|
1153
|
-
readonly text: Schema.String;
|
|
1154
1135
|
}>>, never, never>;
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
readonly
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
readonly
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
readonly
|
|
1172
|
-
|
|
1173
|
-
readonly
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
readonly mention?: {
|
|
1179
|
-
readonly start: number;
|
|
1180
|
-
readonly end: number;
|
|
1181
|
-
readonly text: string;
|
|
1182
|
-
} | undefined;
|
|
1183
|
-
}[] | undefined;
|
|
1136
|
+
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1137
|
+
readonly name: Schema.String;
|
|
1138
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1139
|
+
readonly start: Schema.Finite;
|
|
1140
|
+
readonly end: Schema.Finite;
|
|
1141
|
+
readonly text: Schema.String;
|
|
1142
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1143
|
+
readonly start: Schema.Finite;
|
|
1144
|
+
readonly end: Schema.Finite;
|
|
1145
|
+
readonly text: Schema.String;
|
|
1146
|
+
}>>, never, never>;
|
|
1147
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1148
|
+
readonly name: Schema.String;
|
|
1149
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1150
|
+
readonly start: Schema.Finite;
|
|
1151
|
+
readonly end: Schema.Finite;
|
|
1152
|
+
readonly text: Schema.String;
|
|
1153
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1154
|
+
readonly start: Schema.Finite;
|
|
1155
|
+
readonly end: Schema.Finite;
|
|
1156
|
+
readonly text: Schema.String;
|
|
1157
|
+
}>>, never, never>;
|
|
1158
|
+
}>>>, never, never>;
|
|
1184
1159
|
}>;
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
readonly name?: string | undefined;
|
|
1197
|
-
readonly description?: string | undefined;
|
|
1198
|
-
readonly mention?: {
|
|
1199
|
-
readonly start: number;
|
|
1200
|
-
readonly end: number;
|
|
1201
|
-
readonly text: string;
|
|
1202
|
-
} | undefined;
|
|
1203
|
-
}[] | undefined;
|
|
1204
|
-
readonly agents?: readonly {
|
|
1205
|
-
readonly name: string;
|
|
1206
|
-
readonly mention?: {
|
|
1207
|
-
readonly start: number;
|
|
1208
|
-
readonly end: number;
|
|
1209
|
-
readonly text: string;
|
|
1210
|
-
} | undefined;
|
|
1211
|
-
}[] | undefined;
|
|
1212
|
-
};
|
|
1213
|
-
};
|
|
1214
|
-
delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
1215
|
-
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1160
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
1161
|
+
}>, Schema.Struct<{
|
|
1162
|
+
readonly type: Schema.tag<"synthetic">;
|
|
1163
|
+
readonly data: Schema.Struct<{
|
|
1164
|
+
readonly text: Schema.String;
|
|
1165
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1166
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1167
|
+
}>;
|
|
1168
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
1169
|
+
}>]>;
|
|
1170
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1216
1171
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1217
1172
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1218
1173
|
};
|
|
1219
1174
|
}>;
|
|
1220
1175
|
}> & {
|
|
1221
|
-
type: "session.
|
|
1176
|
+
type: "session.input.admitted";
|
|
1222
1177
|
durability: "durable";
|
|
1223
1178
|
durable: {
|
|
1224
1179
|
readonly version: number;
|
|
1225
1180
|
readonly aggregate: string;
|
|
1226
1181
|
};
|
|
1227
1182
|
data: Schema.Struct<{
|
|
1228
|
-
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1183
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1229
1184
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1230
1185
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1231
1186
|
};
|
|
1232
|
-
|
|
1233
|
-
readonly
|
|
1234
|
-
readonly
|
|
1235
|
-
readonly
|
|
1236
|
-
readonly
|
|
1237
|
-
readonly
|
|
1238
|
-
readonly
|
|
1239
|
-
|
|
1240
|
-
readonly
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
readonly
|
|
1247
|
-
readonly
|
|
1248
|
-
readonly
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
readonly
|
|
1260
|
-
|
|
1261
|
-
readonly
|
|
1262
|
-
|
|
1187
|
+
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
1188
|
+
readonly type: Schema.tag<"user">;
|
|
1189
|
+
readonly data: Schema.Struct<{
|
|
1190
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1191
|
+
readonly text: Schema.String;
|
|
1192
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1193
|
+
readonly data: Schema.String;
|
|
1194
|
+
readonly mime: Schema.String;
|
|
1195
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1196
|
+
readonly type: Schema.Literal<"inline">;
|
|
1197
|
+
}>, Schema.Struct<{
|
|
1198
|
+
readonly type: Schema.Literal<"uri">;
|
|
1199
|
+
readonly uri: Schema.String;
|
|
1200
|
+
}>]>;
|
|
1201
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1202
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1203
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1204
|
+
readonly start: Schema.Finite;
|
|
1205
|
+
readonly end: Schema.Finite;
|
|
1206
|
+
readonly text: Schema.String;
|
|
1207
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1208
|
+
readonly start: Schema.Finite;
|
|
1209
|
+
readonly end: Schema.Finite;
|
|
1210
|
+
readonly text: Schema.String;
|
|
1211
|
+
}>>, never, never>;
|
|
1212
|
+
}> & {
|
|
1213
|
+
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
1214
|
+
readonly data: string;
|
|
1215
|
+
readonly mime: string;
|
|
1216
|
+
readonly source: {
|
|
1217
|
+
readonly type: "inline";
|
|
1218
|
+
} | {
|
|
1219
|
+
readonly type: "uri";
|
|
1220
|
+
readonly uri: string;
|
|
1221
|
+
};
|
|
1222
|
+
readonly name?: string | undefined;
|
|
1223
|
+
readonly description?: string | undefined;
|
|
1224
|
+
readonly mention?: {
|
|
1225
|
+
readonly start: number;
|
|
1226
|
+
readonly end: number;
|
|
1227
|
+
readonly text: string;
|
|
1228
|
+
} | undefined;
|
|
1263
1229
|
};
|
|
1264
|
-
|
|
1265
|
-
readonly
|
|
1266
|
-
readonly
|
|
1267
|
-
|
|
1268
|
-
readonly
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1230
|
+
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1231
|
+
readonly data: Schema.String;
|
|
1232
|
+
readonly mime: Schema.String;
|
|
1233
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1234
|
+
readonly type: Schema.Literal<"inline">;
|
|
1235
|
+
}>, Schema.Struct<{
|
|
1236
|
+
readonly type: Schema.Literal<"uri">;
|
|
1237
|
+
readonly uri: Schema.String;
|
|
1238
|
+
}>]>;
|
|
1239
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1240
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1241
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1242
|
+
readonly start: Schema.Finite;
|
|
1243
|
+
readonly end: Schema.Finite;
|
|
1244
|
+
readonly text: Schema.String;
|
|
1245
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1246
|
+
readonly start: Schema.Finite;
|
|
1247
|
+
readonly end: Schema.Finite;
|
|
1248
|
+
readonly text: Schema.String;
|
|
1249
|
+
}>>, never, never>;
|
|
1250
|
+
}> & {
|
|
1251
|
+
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
1252
|
+
readonly data: string;
|
|
1253
|
+
readonly mime: string;
|
|
1254
|
+
readonly source: {
|
|
1255
|
+
readonly type: "inline";
|
|
1256
|
+
} | {
|
|
1257
|
+
readonly type: "uri";
|
|
1258
|
+
readonly uri: string;
|
|
1259
|
+
};
|
|
1260
|
+
readonly name?: string | undefined;
|
|
1261
|
+
readonly description?: string | undefined;
|
|
1262
|
+
readonly mention?: {
|
|
1263
|
+
readonly start: number;
|
|
1264
|
+
readonly end: number;
|
|
1265
|
+
readonly text: string;
|
|
1266
|
+
} | undefined;
|
|
1301
1267
|
};
|
|
1302
|
-
readonly name?: string | undefined;
|
|
1303
|
-
readonly description?: string | undefined;
|
|
1304
|
-
readonly mention?: {
|
|
1305
|
-
readonly start: number;
|
|
1306
|
-
readonly end: number;
|
|
1307
|
-
readonly text: string;
|
|
1308
|
-
} | undefined;
|
|
1309
|
-
};
|
|
1310
|
-
}>>, never, never>;
|
|
1311
|
-
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1312
|
-
readonly name: Schema.String;
|
|
1313
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1314
|
-
readonly start: Schema.Finite;
|
|
1315
|
-
readonly end: Schema.Finite;
|
|
1316
|
-
readonly text: Schema.String;
|
|
1317
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1318
|
-
readonly start: Schema.Finite;
|
|
1319
|
-
readonly end: Schema.Finite;
|
|
1320
|
-
readonly text: Schema.String;
|
|
1321
|
-
}>>, never, never>;
|
|
1322
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1323
|
-
readonly name: Schema.String;
|
|
1324
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1325
|
-
readonly start: Schema.Finite;
|
|
1326
|
-
readonly end: Schema.Finite;
|
|
1327
|
-
readonly text: Schema.String;
|
|
1328
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1329
|
-
readonly start: Schema.Finite;
|
|
1330
|
-
readonly end: Schema.Finite;
|
|
1331
|
-
readonly text: Schema.String;
|
|
1332
1268
|
}>>, never, never>;
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
readonly
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
readonly
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
readonly
|
|
1350
|
-
|
|
1351
|
-
readonly
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
readonly mention?: {
|
|
1357
|
-
readonly start: number;
|
|
1358
|
-
readonly end: number;
|
|
1359
|
-
readonly text: string;
|
|
1360
|
-
} | undefined;
|
|
1361
|
-
}[] | undefined;
|
|
1269
|
+
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1270
|
+
readonly name: Schema.String;
|
|
1271
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1272
|
+
readonly start: Schema.Finite;
|
|
1273
|
+
readonly end: Schema.Finite;
|
|
1274
|
+
readonly text: Schema.String;
|
|
1275
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1276
|
+
readonly start: Schema.Finite;
|
|
1277
|
+
readonly end: Schema.Finite;
|
|
1278
|
+
readonly text: Schema.String;
|
|
1279
|
+
}>>, never, never>;
|
|
1280
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1281
|
+
readonly name: Schema.String;
|
|
1282
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1283
|
+
readonly start: Schema.Finite;
|
|
1284
|
+
readonly end: Schema.Finite;
|
|
1285
|
+
readonly text: Schema.String;
|
|
1286
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1287
|
+
readonly start: Schema.Finite;
|
|
1288
|
+
readonly end: Schema.Finite;
|
|
1289
|
+
readonly text: Schema.String;
|
|
1290
|
+
}>>, never, never>;
|
|
1291
|
+
}>>>, never, never>;
|
|
1362
1292
|
}>;
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
readonly name?: string | undefined;
|
|
1375
|
-
readonly description?: string | undefined;
|
|
1376
|
-
readonly mention?: {
|
|
1377
|
-
readonly start: number;
|
|
1378
|
-
readonly end: number;
|
|
1379
|
-
readonly text: string;
|
|
1380
|
-
} | undefined;
|
|
1381
|
-
}[] | undefined;
|
|
1382
|
-
readonly agents?: readonly {
|
|
1383
|
-
readonly name: string;
|
|
1384
|
-
readonly mention?: {
|
|
1385
|
-
readonly start: number;
|
|
1386
|
-
readonly end: number;
|
|
1387
|
-
readonly text: string;
|
|
1388
|
-
} | undefined;
|
|
1389
|
-
}[] | undefined;
|
|
1390
|
-
};
|
|
1391
|
-
};
|
|
1392
|
-
delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
1393
|
-
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1293
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
1294
|
+
}>, Schema.Struct<{
|
|
1295
|
+
readonly type: Schema.tag<"synthetic">;
|
|
1296
|
+
readonly data: Schema.Struct<{
|
|
1297
|
+
readonly text: Schema.String;
|
|
1298
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1299
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1300
|
+
}>;
|
|
1301
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
1302
|
+
}>]>;
|
|
1303
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1394
1304
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1395
1305
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1396
1306
|
};
|
|
@@ -8251,7 +8161,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8251
8161
|
} | {
|
|
8252
8162
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8253
8163
|
readonly created: import("effect/DateTime").Utc;
|
|
8254
|
-
readonly type: "session.
|
|
8164
|
+
readonly type: "session.input.promoted";
|
|
8255
8165
|
readonly durable: {
|
|
8256
8166
|
readonly aggregateID: string;
|
|
8257
8167
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
@@ -8271,7 +8181,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8271
8181
|
} | {
|
|
8272
8182
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8273
8183
|
readonly created: import("effect/DateTime").Utc;
|
|
8274
|
-
readonly type: "session.
|
|
8184
|
+
readonly type: "session.input.admitted";
|
|
8275
8185
|
readonly durable: {
|
|
8276
8186
|
readonly aggregateID: string;
|
|
8277
8187
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
@@ -8279,35 +8189,51 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8279
8189
|
};
|
|
8280
8190
|
readonly data: {
|
|
8281
8191
|
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8282
|
-
readonly
|
|
8283
|
-
readonly
|
|
8284
|
-
readonly
|
|
8285
|
-
readonly
|
|
8286
|
-
readonly
|
|
8287
|
-
|
|
8288
|
-
readonly type: "inline";
|
|
8289
|
-
} | {
|
|
8290
|
-
readonly type: "uri";
|
|
8291
|
-
readonly uri: string;
|
|
8292
|
-
};
|
|
8293
|
-
readonly name?: string | undefined;
|
|
8294
|
-
readonly description?: string | undefined;
|
|
8295
|
-
readonly mention?: {
|
|
8296
|
-
readonly start: number;
|
|
8297
|
-
readonly end: number;
|
|
8298
|
-
readonly text: string;
|
|
8192
|
+
readonly input: {
|
|
8193
|
+
readonly type: "user";
|
|
8194
|
+
readonly data: {
|
|
8195
|
+
readonly text: string;
|
|
8196
|
+
readonly metadata?: {
|
|
8197
|
+
readonly [x: string]: unknown;
|
|
8299
8198
|
} | undefined;
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8199
|
+
readonly files?: readonly {
|
|
8200
|
+
readonly data: string;
|
|
8201
|
+
readonly mime: string;
|
|
8202
|
+
readonly source: {
|
|
8203
|
+
readonly type: "inline";
|
|
8204
|
+
} | {
|
|
8205
|
+
readonly type: "uri";
|
|
8206
|
+
readonly uri: string;
|
|
8207
|
+
};
|
|
8208
|
+
readonly name?: string | undefined;
|
|
8209
|
+
readonly description?: string | undefined;
|
|
8210
|
+
readonly mention?: {
|
|
8211
|
+
readonly start: number;
|
|
8212
|
+
readonly end: number;
|
|
8213
|
+
readonly text: string;
|
|
8214
|
+
} | undefined;
|
|
8215
|
+
}[] | undefined;
|
|
8216
|
+
readonly agents?: readonly {
|
|
8217
|
+
readonly name: string;
|
|
8218
|
+
readonly mention?: {
|
|
8219
|
+
readonly start: number;
|
|
8220
|
+
readonly end: number;
|
|
8221
|
+
readonly text: string;
|
|
8222
|
+
} | undefined;
|
|
8223
|
+
}[] | undefined;
|
|
8224
|
+
};
|
|
8225
|
+
readonly delivery: "steer" | "queue";
|
|
8226
|
+
} | {
|
|
8227
|
+
readonly type: "synthetic";
|
|
8228
|
+
readonly data: {
|
|
8229
|
+
readonly text: string;
|
|
8230
|
+
readonly description?: string | undefined;
|
|
8231
|
+
readonly metadata?: {
|
|
8232
|
+
readonly [x: string]: unknown;
|
|
8307
8233
|
} | undefined;
|
|
8308
|
-
}
|
|
8234
|
+
};
|
|
8235
|
+
readonly delivery: "steer" | "queue";
|
|
8309
8236
|
};
|
|
8310
|
-
readonly delivery: "steer" | "queue";
|
|
8311
8237
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8312
8238
|
};
|
|
8313
8239
|
readonly metadata?: {
|
|
@@ -11564,7 +11490,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11564
11490
|
};
|
|
11565
11491
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
11566
11492
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11567
|
-
readonly type: Schema.Literal<"session.
|
|
11493
|
+
readonly type: Schema.Literal<"session.input.promoted">;
|
|
11568
11494
|
readonly durable: Schema.Struct<{
|
|
11569
11495
|
readonly aggregateID: Schema.String;
|
|
11570
11496
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -11600,7 +11526,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11600
11526
|
};
|
|
11601
11527
|
}>;
|
|
11602
11528
|
}> & {
|
|
11603
|
-
type: "session.
|
|
11529
|
+
type: "session.input.promoted";
|
|
11604
11530
|
durability: "durable";
|
|
11605
11531
|
durable: {
|
|
11606
11532
|
readonly version: number;
|
|
@@ -11622,7 +11548,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11622
11548
|
};
|
|
11623
11549
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
11624
11550
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11625
|
-
readonly type: Schema.Literal<"session.
|
|
11551
|
+
readonly type: Schema.Literal<"session.input.admitted">;
|
|
11626
11552
|
readonly durable: Schema.Struct<{
|
|
11627
11553
|
readonly aggregateID: Schema.String;
|
|
11628
11554
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -11648,350 +11574,260 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11648
11574
|
}>, never, never>;
|
|
11649
11575
|
}>>, never, never>;
|
|
11650
11576
|
readonly data: Schema.Struct<{
|
|
11651
|
-
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
11577
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
11652
11578
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11653
11579
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11654
11580
|
};
|
|
11655
|
-
|
|
11656
|
-
readonly
|
|
11657
|
-
readonly
|
|
11658
|
-
readonly
|
|
11659
|
-
readonly
|
|
11660
|
-
readonly
|
|
11661
|
-
readonly
|
|
11662
|
-
|
|
11663
|
-
readonly
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
readonly
|
|
11670
|
-
readonly
|
|
11671
|
-
readonly
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
readonly
|
|
11683
|
-
|
|
11684
|
-
readonly
|
|
11685
|
-
|
|
11581
|
+
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
11582
|
+
readonly type: Schema.tag<"user">;
|
|
11583
|
+
readonly data: Schema.Struct<{
|
|
11584
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11585
|
+
readonly text: Schema.String;
|
|
11586
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11587
|
+
readonly data: Schema.String;
|
|
11588
|
+
readonly mime: Schema.String;
|
|
11589
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
11590
|
+
readonly type: Schema.Literal<"inline">;
|
|
11591
|
+
}>, Schema.Struct<{
|
|
11592
|
+
readonly type: Schema.Literal<"uri">;
|
|
11593
|
+
readonly uri: Schema.String;
|
|
11594
|
+
}>]>;
|
|
11595
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11596
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11597
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11598
|
+
readonly start: Schema.Finite;
|
|
11599
|
+
readonly end: Schema.Finite;
|
|
11600
|
+
readonly text: Schema.String;
|
|
11601
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11602
|
+
readonly start: Schema.Finite;
|
|
11603
|
+
readonly end: Schema.Finite;
|
|
11604
|
+
readonly text: Schema.String;
|
|
11605
|
+
}>>, never, never>;
|
|
11606
|
+
}> & {
|
|
11607
|
+
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
11608
|
+
readonly data: string;
|
|
11609
|
+
readonly mime: string;
|
|
11610
|
+
readonly source: {
|
|
11611
|
+
readonly type: "inline";
|
|
11612
|
+
} | {
|
|
11613
|
+
readonly type: "uri";
|
|
11614
|
+
readonly uri: string;
|
|
11615
|
+
};
|
|
11616
|
+
readonly name?: string | undefined;
|
|
11617
|
+
readonly description?: string | undefined;
|
|
11618
|
+
readonly mention?: {
|
|
11619
|
+
readonly start: number;
|
|
11620
|
+
readonly end: number;
|
|
11621
|
+
readonly text: string;
|
|
11622
|
+
} | undefined;
|
|
11686
11623
|
};
|
|
11687
|
-
|
|
11688
|
-
readonly
|
|
11689
|
-
readonly
|
|
11690
|
-
|
|
11691
|
-
readonly
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11624
|
+
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11625
|
+
readonly data: Schema.String;
|
|
11626
|
+
readonly mime: Schema.String;
|
|
11627
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
11628
|
+
readonly type: Schema.Literal<"inline">;
|
|
11629
|
+
}>, Schema.Struct<{
|
|
11630
|
+
readonly type: Schema.Literal<"uri">;
|
|
11631
|
+
readonly uri: Schema.String;
|
|
11632
|
+
}>]>;
|
|
11633
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11634
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11635
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11636
|
+
readonly start: Schema.Finite;
|
|
11637
|
+
readonly end: Schema.Finite;
|
|
11638
|
+
readonly text: Schema.String;
|
|
11639
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11640
|
+
readonly start: Schema.Finite;
|
|
11641
|
+
readonly end: Schema.Finite;
|
|
11642
|
+
readonly text: Schema.String;
|
|
11643
|
+
}>>, never, never>;
|
|
11644
|
+
}> & {
|
|
11645
|
+
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
11646
|
+
readonly data: string;
|
|
11647
|
+
readonly mime: string;
|
|
11648
|
+
readonly source: {
|
|
11649
|
+
readonly type: "inline";
|
|
11650
|
+
} | {
|
|
11651
|
+
readonly type: "uri";
|
|
11652
|
+
readonly uri: string;
|
|
11653
|
+
};
|
|
11654
|
+
readonly name?: string | undefined;
|
|
11655
|
+
readonly description?: string | undefined;
|
|
11656
|
+
readonly mention?: {
|
|
11657
|
+
readonly start: number;
|
|
11658
|
+
readonly end: number;
|
|
11659
|
+
readonly text: string;
|
|
11660
|
+
} | undefined;
|
|
11724
11661
|
};
|
|
11725
|
-
readonly name?: string | undefined;
|
|
11726
|
-
readonly description?: string | undefined;
|
|
11727
|
-
readonly mention?: {
|
|
11728
|
-
readonly start: number;
|
|
11729
|
-
readonly end: number;
|
|
11730
|
-
readonly text: string;
|
|
11731
|
-
} | undefined;
|
|
11732
|
-
};
|
|
11733
|
-
}>>, never, never>;
|
|
11734
|
-
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11735
|
-
readonly name: Schema.String;
|
|
11736
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11737
|
-
readonly start: Schema.Finite;
|
|
11738
|
-
readonly end: Schema.Finite;
|
|
11739
|
-
readonly text: Schema.String;
|
|
11740
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11741
|
-
readonly start: Schema.Finite;
|
|
11742
|
-
readonly end: Schema.Finite;
|
|
11743
|
-
readonly text: Schema.String;
|
|
11744
11662
|
}>>, never, never>;
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
readonly
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
};
|
|
11769
|
-
readonly name?: string | undefined;
|
|
11770
|
-
readonly description?: string | undefined;
|
|
11771
|
-
readonly mention?: {
|
|
11772
|
-
readonly start: number;
|
|
11773
|
-
readonly end: number;
|
|
11774
|
-
readonly text: string;
|
|
11775
|
-
} | undefined;
|
|
11776
|
-
}[] | undefined;
|
|
11777
|
-
readonly agents?: readonly {
|
|
11778
|
-
readonly name: string;
|
|
11779
|
-
readonly mention?: {
|
|
11780
|
-
readonly start: number;
|
|
11781
|
-
readonly end: number;
|
|
11782
|
-
readonly text: string;
|
|
11783
|
-
} | undefined;
|
|
11784
|
-
}[] | undefined;
|
|
11663
|
+
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11664
|
+
readonly name: Schema.String;
|
|
11665
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11666
|
+
readonly start: Schema.Finite;
|
|
11667
|
+
readonly end: Schema.Finite;
|
|
11668
|
+
readonly text: Schema.String;
|
|
11669
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11670
|
+
readonly start: Schema.Finite;
|
|
11671
|
+
readonly end: Schema.Finite;
|
|
11672
|
+
readonly text: Schema.String;
|
|
11673
|
+
}>>, never, never>;
|
|
11674
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11675
|
+
readonly name: Schema.String;
|
|
11676
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11677
|
+
readonly start: Schema.Finite;
|
|
11678
|
+
readonly end: Schema.Finite;
|
|
11679
|
+
readonly text: Schema.String;
|
|
11680
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11681
|
+
readonly start: Schema.Finite;
|
|
11682
|
+
readonly end: Schema.Finite;
|
|
11683
|
+
readonly text: Schema.String;
|
|
11684
|
+
}>>, never, never>;
|
|
11685
|
+
}>>>, never, never>;
|
|
11785
11686
|
}>;
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
11795
|
-
|
|
11796
|
-
|
|
11797
|
-
readonly name?: string | undefined;
|
|
11798
|
-
readonly description?: string | undefined;
|
|
11799
|
-
readonly mention?: {
|
|
11800
|
-
readonly start: number;
|
|
11801
|
-
readonly end: number;
|
|
11802
|
-
readonly text: string;
|
|
11803
|
-
} | undefined;
|
|
11804
|
-
}[] | undefined;
|
|
11805
|
-
readonly agents?: readonly {
|
|
11806
|
-
readonly name: string;
|
|
11807
|
-
readonly mention?: {
|
|
11808
|
-
readonly start: number;
|
|
11809
|
-
readonly end: number;
|
|
11810
|
-
readonly text: string;
|
|
11811
|
-
} | undefined;
|
|
11812
|
-
}[] | undefined;
|
|
11813
|
-
};
|
|
11814
|
-
};
|
|
11815
|
-
delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
11816
|
-
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11687
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
11688
|
+
}>, Schema.Struct<{
|
|
11689
|
+
readonly type: Schema.tag<"synthetic">;
|
|
11690
|
+
readonly data: Schema.Struct<{
|
|
11691
|
+
readonly text: Schema.String;
|
|
11692
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11693
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11694
|
+
}>;
|
|
11695
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
11696
|
+
}>]>;
|
|
11697
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11817
11698
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11818
11699
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11819
11700
|
};
|
|
11820
11701
|
}>;
|
|
11821
11702
|
}> & {
|
|
11822
|
-
type: "session.
|
|
11703
|
+
type: "session.input.admitted";
|
|
11823
11704
|
durability: "durable";
|
|
11824
11705
|
durable: {
|
|
11825
11706
|
readonly version: number;
|
|
11826
11707
|
readonly aggregate: string;
|
|
11827
11708
|
};
|
|
11828
11709
|
data: Schema.Struct<{
|
|
11829
|
-
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
11710
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
11830
11711
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11831
11712
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11832
11713
|
};
|
|
11833
|
-
|
|
11834
|
-
readonly
|
|
11835
|
-
readonly
|
|
11836
|
-
readonly
|
|
11837
|
-
readonly
|
|
11838
|
-
readonly
|
|
11839
|
-
readonly
|
|
11840
|
-
|
|
11841
|
-
readonly
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
|
|
11847
|
-
readonly
|
|
11848
|
-
readonly
|
|
11849
|
-
readonly
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
readonly
|
|
11861
|
-
|
|
11862
|
-
readonly
|
|
11863
|
-
|
|
11714
|
+
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
11715
|
+
readonly type: Schema.tag<"user">;
|
|
11716
|
+
readonly data: Schema.Struct<{
|
|
11717
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11718
|
+
readonly text: Schema.String;
|
|
11719
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11720
|
+
readonly data: Schema.String;
|
|
11721
|
+
readonly mime: Schema.String;
|
|
11722
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
11723
|
+
readonly type: Schema.Literal<"inline">;
|
|
11724
|
+
}>, Schema.Struct<{
|
|
11725
|
+
readonly type: Schema.Literal<"uri">;
|
|
11726
|
+
readonly uri: Schema.String;
|
|
11727
|
+
}>]>;
|
|
11728
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11729
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11730
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11731
|
+
readonly start: Schema.Finite;
|
|
11732
|
+
readonly end: Schema.Finite;
|
|
11733
|
+
readonly text: Schema.String;
|
|
11734
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11735
|
+
readonly start: Schema.Finite;
|
|
11736
|
+
readonly end: Schema.Finite;
|
|
11737
|
+
readonly text: Schema.String;
|
|
11738
|
+
}>>, never, never>;
|
|
11739
|
+
}> & {
|
|
11740
|
+
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
11741
|
+
readonly data: string;
|
|
11742
|
+
readonly mime: string;
|
|
11743
|
+
readonly source: {
|
|
11744
|
+
readonly type: "inline";
|
|
11745
|
+
} | {
|
|
11746
|
+
readonly type: "uri";
|
|
11747
|
+
readonly uri: string;
|
|
11748
|
+
};
|
|
11749
|
+
readonly name?: string | undefined;
|
|
11750
|
+
readonly description?: string | undefined;
|
|
11751
|
+
readonly mention?: {
|
|
11752
|
+
readonly start: number;
|
|
11753
|
+
readonly end: number;
|
|
11754
|
+
readonly text: string;
|
|
11755
|
+
} | undefined;
|
|
11864
11756
|
};
|
|
11865
|
-
|
|
11866
|
-
readonly
|
|
11867
|
-
readonly
|
|
11868
|
-
|
|
11869
|
-
readonly
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
|
|
11757
|
+
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11758
|
+
readonly data: Schema.String;
|
|
11759
|
+
readonly mime: Schema.String;
|
|
11760
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
11761
|
+
readonly type: Schema.Literal<"inline">;
|
|
11762
|
+
}>, Schema.Struct<{
|
|
11763
|
+
readonly type: Schema.Literal<"uri">;
|
|
11764
|
+
readonly uri: Schema.String;
|
|
11765
|
+
}>]>;
|
|
11766
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11767
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11768
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11769
|
+
readonly start: Schema.Finite;
|
|
11770
|
+
readonly end: Schema.Finite;
|
|
11771
|
+
readonly text: Schema.String;
|
|
11772
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11773
|
+
readonly start: Schema.Finite;
|
|
11774
|
+
readonly end: Schema.Finite;
|
|
11775
|
+
readonly text: Schema.String;
|
|
11776
|
+
}>>, never, never>;
|
|
11777
|
+
}> & {
|
|
11778
|
+
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
11779
|
+
readonly data: string;
|
|
11780
|
+
readonly mime: string;
|
|
11781
|
+
readonly source: {
|
|
11782
|
+
readonly type: "inline";
|
|
11783
|
+
} | {
|
|
11784
|
+
readonly type: "uri";
|
|
11785
|
+
readonly uri: string;
|
|
11786
|
+
};
|
|
11787
|
+
readonly name?: string | undefined;
|
|
11788
|
+
readonly description?: string | undefined;
|
|
11789
|
+
readonly mention?: {
|
|
11790
|
+
readonly start: number;
|
|
11791
|
+
readonly end: number;
|
|
11792
|
+
readonly text: string;
|
|
11793
|
+
} | undefined;
|
|
11902
11794
|
};
|
|
11903
|
-
readonly name?: string | undefined;
|
|
11904
|
-
readonly description?: string | undefined;
|
|
11905
|
-
readonly mention?: {
|
|
11906
|
-
readonly start: number;
|
|
11907
|
-
readonly end: number;
|
|
11908
|
-
readonly text: string;
|
|
11909
|
-
} | undefined;
|
|
11910
|
-
};
|
|
11911
|
-
}>>, never, never>;
|
|
11912
|
-
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11913
|
-
readonly name: Schema.String;
|
|
11914
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11915
|
-
readonly start: Schema.Finite;
|
|
11916
|
-
readonly end: Schema.Finite;
|
|
11917
|
-
readonly text: Schema.String;
|
|
11918
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11919
|
-
readonly start: Schema.Finite;
|
|
11920
|
-
readonly end: Schema.Finite;
|
|
11921
|
-
readonly text: Schema.String;
|
|
11922
|
-
}>>, never, never>;
|
|
11923
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11924
|
-
readonly name: Schema.String;
|
|
11925
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11926
|
-
readonly start: Schema.Finite;
|
|
11927
|
-
readonly end: Schema.Finite;
|
|
11928
|
-
readonly text: Schema.String;
|
|
11929
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11930
|
-
readonly start: Schema.Finite;
|
|
11931
|
-
readonly end: Schema.Finite;
|
|
11932
|
-
readonly text: Schema.String;
|
|
11933
11795
|
}>>, never, never>;
|
|
11934
|
-
|
|
11935
|
-
|
|
11936
|
-
|
|
11937
|
-
|
|
11938
|
-
|
|
11939
|
-
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
readonly
|
|
11943
|
-
|
|
11944
|
-
|
|
11945
|
-
|
|
11946
|
-
|
|
11947
|
-
readonly
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
readonly
|
|
11951
|
-
|
|
11952
|
-
readonly
|
|
11953
|
-
|
|
11954
|
-
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
readonly mention?: {
|
|
11958
|
-
readonly start: number;
|
|
11959
|
-
readonly end: number;
|
|
11960
|
-
readonly text: string;
|
|
11961
|
-
} | undefined;
|
|
11962
|
-
}[] | undefined;
|
|
11796
|
+
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11797
|
+
readonly name: Schema.String;
|
|
11798
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11799
|
+
readonly start: Schema.Finite;
|
|
11800
|
+
readonly end: Schema.Finite;
|
|
11801
|
+
readonly text: Schema.String;
|
|
11802
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11803
|
+
readonly start: Schema.Finite;
|
|
11804
|
+
readonly end: Schema.Finite;
|
|
11805
|
+
readonly text: Schema.String;
|
|
11806
|
+
}>>, never, never>;
|
|
11807
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11808
|
+
readonly name: Schema.String;
|
|
11809
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11810
|
+
readonly start: Schema.Finite;
|
|
11811
|
+
readonly end: Schema.Finite;
|
|
11812
|
+
readonly text: Schema.String;
|
|
11813
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11814
|
+
readonly start: Schema.Finite;
|
|
11815
|
+
readonly end: Schema.Finite;
|
|
11816
|
+
readonly text: Schema.String;
|
|
11817
|
+
}>>, never, never>;
|
|
11818
|
+
}>>>, never, never>;
|
|
11963
11819
|
}>;
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
readonly name?: string | undefined;
|
|
11976
|
-
readonly description?: string | undefined;
|
|
11977
|
-
readonly mention?: {
|
|
11978
|
-
readonly start: number;
|
|
11979
|
-
readonly end: number;
|
|
11980
|
-
readonly text: string;
|
|
11981
|
-
} | undefined;
|
|
11982
|
-
}[] | undefined;
|
|
11983
|
-
readonly agents?: readonly {
|
|
11984
|
-
readonly name: string;
|
|
11985
|
-
readonly mention?: {
|
|
11986
|
-
readonly start: number;
|
|
11987
|
-
readonly end: number;
|
|
11988
|
-
readonly text: string;
|
|
11989
|
-
} | undefined;
|
|
11990
|
-
}[] | undefined;
|
|
11991
|
-
};
|
|
11992
|
-
};
|
|
11993
|
-
delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
11994
|
-
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11820
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
11821
|
+
}>, Schema.Struct<{
|
|
11822
|
+
readonly type: Schema.tag<"synthetic">;
|
|
11823
|
+
readonly data: Schema.Struct<{
|
|
11824
|
+
readonly text: Schema.String;
|
|
11825
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11826
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11827
|
+
}>;
|
|
11828
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
11829
|
+
}>]>;
|
|
11830
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11995
11831
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11996
11832
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11997
11833
|
};
|