@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.
@@ -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.prompt.promoted">;
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.prompt.promoted";
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.prompt.admitted">;
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
- prompt: Schema.Struct<{
1055
- readonly text: Schema.String;
1056
- readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
1057
- readonly data: Schema.String;
1058
- readonly mime: Schema.String;
1059
- readonly source: Schema.Union<readonly [Schema.Struct<{
1060
- readonly type: Schema.Literal<"inline">;
1061
- }>, Schema.Struct<{
1062
- readonly type: Schema.Literal<"uri">;
1063
- readonly uri: Schema.String;
1064
- }>]>;
1065
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1066
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1067
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1068
- readonly start: Schema.Finite;
1069
- readonly end: Schema.Finite;
1070
- readonly text: Schema.String;
1071
- }>>>, Schema.optionalKey<Schema.Struct<{
1072
- readonly start: Schema.Finite;
1073
- readonly end: Schema.Finite;
1074
- readonly text: Schema.String;
1075
- }>>, never, never>;
1076
- }> & {
1077
- create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
1078
- readonly data: string;
1079
- readonly mime: string;
1080
- readonly source: {
1081
- readonly type: "inline";
1082
- } | {
1083
- readonly type: "uri";
1084
- readonly uri: string;
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
- readonly name?: string | undefined;
1087
- readonly description?: string | undefined;
1088
- readonly mention?: {
1089
- readonly start: number;
1090
- readonly end: number;
1091
- readonly text: string;
1092
- } | undefined;
1093
- };
1094
- }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
1095
- readonly data: Schema.String;
1096
- readonly mime: Schema.String;
1097
- readonly source: Schema.Union<readonly [Schema.Struct<{
1098
- readonly type: Schema.Literal<"inline">;
1099
- }>, Schema.Struct<{
1100
- readonly type: Schema.Literal<"uri">;
1101
- readonly uri: Schema.String;
1102
- }>]>;
1103
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1104
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1105
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1106
- readonly start: Schema.Finite;
1107
- readonly end: Schema.Finite;
1108
- readonly text: Schema.String;
1109
- }>>>, Schema.optionalKey<Schema.Struct<{
1110
- readonly start: Schema.Finite;
1111
- readonly end: Schema.Finite;
1112
- readonly text: Schema.String;
1113
- }>>, never, never>;
1114
- }> & {
1115
- create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
1116
- readonly data: string;
1117
- readonly mime: string;
1118
- readonly source: {
1119
- readonly type: "inline";
1120
- } | {
1121
- readonly type: "uri";
1122
- readonly uri: string;
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
- }>>>, never, never>;
1156
- }> & {
1157
- equivalence: import("effect/Equivalence").Equivalence<{
1158
- readonly text: string;
1159
- readonly files?: readonly {
1160
- readonly data: string;
1161
- readonly mime: string;
1162
- readonly source: {
1163
- readonly type: "inline";
1164
- } | {
1165
- readonly type: "uri";
1166
- readonly uri: string;
1167
- };
1168
- readonly name?: string | undefined;
1169
- readonly description?: string | undefined;
1170
- readonly mention?: {
1171
- readonly start: number;
1172
- readonly end: number;
1173
- readonly text: string;
1174
- } | undefined;
1175
- }[] | undefined;
1176
- readonly agents?: readonly {
1177
- readonly name: string;
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
- fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
1186
- readonly text: string;
1187
- readonly files?: readonly {
1188
- readonly data: string;
1189
- readonly mime: string;
1190
- readonly source: {
1191
- readonly type: "inline";
1192
- } | {
1193
- readonly type: "uri";
1194
- readonly uri: string;
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.prompt.admitted";
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
- prompt: Schema.Struct<{
1233
- readonly text: Schema.String;
1234
- readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
1235
- readonly data: Schema.String;
1236
- readonly mime: Schema.String;
1237
- readonly source: Schema.Union<readonly [Schema.Struct<{
1238
- readonly type: Schema.Literal<"inline">;
1239
- }>, Schema.Struct<{
1240
- readonly type: Schema.Literal<"uri">;
1241
- readonly uri: Schema.String;
1242
- }>]>;
1243
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1244
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1245
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1246
- readonly start: Schema.Finite;
1247
- readonly end: Schema.Finite;
1248
- readonly text: Schema.String;
1249
- }>>>, Schema.optionalKey<Schema.Struct<{
1250
- readonly start: Schema.Finite;
1251
- readonly end: Schema.Finite;
1252
- readonly text: Schema.String;
1253
- }>>, never, never>;
1254
- }> & {
1255
- create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
1256
- readonly data: string;
1257
- readonly mime: string;
1258
- readonly source: {
1259
- readonly type: "inline";
1260
- } | {
1261
- readonly type: "uri";
1262
- readonly uri: string;
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
- readonly name?: string | undefined;
1265
- readonly description?: string | undefined;
1266
- readonly mention?: {
1267
- readonly start: number;
1268
- readonly end: number;
1269
- readonly text: string;
1270
- } | undefined;
1271
- };
1272
- }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
1273
- readonly data: Schema.String;
1274
- readonly mime: Schema.String;
1275
- readonly source: Schema.Union<readonly [Schema.Struct<{
1276
- readonly type: Schema.Literal<"inline">;
1277
- }>, Schema.Struct<{
1278
- readonly type: Schema.Literal<"uri">;
1279
- readonly uri: Schema.String;
1280
- }>]>;
1281
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1282
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1283
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1284
- readonly start: Schema.Finite;
1285
- readonly end: Schema.Finite;
1286
- readonly text: Schema.String;
1287
- }>>>, Schema.optionalKey<Schema.Struct<{
1288
- readonly start: Schema.Finite;
1289
- readonly end: Schema.Finite;
1290
- readonly text: Schema.String;
1291
- }>>, never, never>;
1292
- }> & {
1293
- create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
1294
- readonly data: string;
1295
- readonly mime: string;
1296
- readonly source: {
1297
- readonly type: "inline";
1298
- } | {
1299
- readonly type: "uri";
1300
- readonly uri: string;
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
- }>>>, never, never>;
1334
- }> & {
1335
- equivalence: import("effect/Equivalence").Equivalence<{
1336
- readonly text: string;
1337
- readonly files?: readonly {
1338
- readonly data: string;
1339
- readonly mime: string;
1340
- readonly source: {
1341
- readonly type: "inline";
1342
- } | {
1343
- readonly type: "uri";
1344
- readonly uri: string;
1345
- };
1346
- readonly name?: string | undefined;
1347
- readonly description?: string | undefined;
1348
- readonly mention?: {
1349
- readonly start: number;
1350
- readonly end: number;
1351
- readonly text: string;
1352
- } | undefined;
1353
- }[] | undefined;
1354
- readonly agents?: readonly {
1355
- readonly name: string;
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
- fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
1364
- readonly text: string;
1365
- readonly files?: readonly {
1366
- readonly data: string;
1367
- readonly mime: string;
1368
- readonly source: {
1369
- readonly type: "inline";
1370
- } | {
1371
- readonly type: "uri";
1372
- readonly uri: string;
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.prompt.promoted";
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.prompt.admitted";
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 prompt: {
8283
- readonly text: string;
8284
- readonly files?: readonly {
8285
- readonly data: string;
8286
- readonly mime: string;
8287
- readonly source: {
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
- }[] | undefined;
8301
- readonly agents?: readonly {
8302
- readonly name: string;
8303
- readonly mention?: {
8304
- readonly start: number;
8305
- readonly end: number;
8306
- readonly text: string;
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
- }[] | undefined;
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.prompt.promoted">;
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.prompt.promoted";
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.prompt.admitted">;
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
- prompt: Schema.Struct<{
11656
- readonly text: Schema.String;
11657
- readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11658
- readonly data: Schema.String;
11659
- readonly mime: Schema.String;
11660
- readonly source: Schema.Union<readonly [Schema.Struct<{
11661
- readonly type: Schema.Literal<"inline">;
11662
- }>, Schema.Struct<{
11663
- readonly type: Schema.Literal<"uri">;
11664
- readonly uri: Schema.String;
11665
- }>]>;
11666
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11667
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11668
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11669
- readonly start: Schema.Finite;
11670
- readonly end: Schema.Finite;
11671
- readonly text: Schema.String;
11672
- }>>>, Schema.optionalKey<Schema.Struct<{
11673
- readonly start: Schema.Finite;
11674
- readonly end: Schema.Finite;
11675
- readonly text: Schema.String;
11676
- }>>, never, never>;
11677
- }> & {
11678
- create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
11679
- readonly data: string;
11680
- readonly mime: string;
11681
- readonly source: {
11682
- readonly type: "inline";
11683
- } | {
11684
- readonly type: "uri";
11685
- readonly uri: string;
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
- readonly name?: string | undefined;
11688
- readonly description?: string | undefined;
11689
- readonly mention?: {
11690
- readonly start: number;
11691
- readonly end: number;
11692
- readonly text: string;
11693
- } | undefined;
11694
- };
11695
- }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
11696
- readonly data: Schema.String;
11697
- readonly mime: Schema.String;
11698
- readonly source: Schema.Union<readonly [Schema.Struct<{
11699
- readonly type: Schema.Literal<"inline">;
11700
- }>, Schema.Struct<{
11701
- readonly type: Schema.Literal<"uri">;
11702
- readonly uri: Schema.String;
11703
- }>]>;
11704
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11705
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11706
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11707
- readonly start: Schema.Finite;
11708
- readonly end: Schema.Finite;
11709
- readonly text: Schema.String;
11710
- }>>>, Schema.optionalKey<Schema.Struct<{
11711
- readonly start: Schema.Finite;
11712
- readonly end: Schema.Finite;
11713
- readonly text: Schema.String;
11714
- }>>, never, never>;
11715
- }> & {
11716
- create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
11717
- readonly data: string;
11718
- readonly mime: string;
11719
- readonly source: {
11720
- readonly type: "inline";
11721
- } | {
11722
- readonly type: "uri";
11723
- readonly uri: string;
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
- }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
11746
- readonly name: Schema.String;
11747
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11748
- readonly start: Schema.Finite;
11749
- readonly end: Schema.Finite;
11750
- readonly text: Schema.String;
11751
- }>>>, Schema.optionalKey<Schema.Struct<{
11752
- readonly start: Schema.Finite;
11753
- readonly end: Schema.Finite;
11754
- readonly text: Schema.String;
11755
- }>>, never, never>;
11756
- }>>>, never, never>;
11757
- }> & {
11758
- equivalence: import("effect/Equivalence").Equivalence<{
11759
- readonly text: string;
11760
- readonly files?: readonly {
11761
- readonly data: string;
11762
- readonly mime: string;
11763
- readonly source: {
11764
- readonly type: "inline";
11765
- } | {
11766
- readonly type: "uri";
11767
- readonly uri: string;
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
- fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
11787
- readonly text: string;
11788
- readonly files?: readonly {
11789
- readonly data: string;
11790
- readonly mime: string;
11791
- readonly source: {
11792
- readonly type: "inline";
11793
- } | {
11794
- readonly type: "uri";
11795
- readonly uri: string;
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.prompt.admitted";
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
- prompt: Schema.Struct<{
11834
- readonly text: Schema.String;
11835
- readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11836
- readonly data: Schema.String;
11837
- readonly mime: Schema.String;
11838
- readonly source: Schema.Union<readonly [Schema.Struct<{
11839
- readonly type: Schema.Literal<"inline">;
11840
- }>, Schema.Struct<{
11841
- readonly type: Schema.Literal<"uri">;
11842
- readonly uri: Schema.String;
11843
- }>]>;
11844
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11845
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11846
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11847
- readonly start: Schema.Finite;
11848
- readonly end: Schema.Finite;
11849
- readonly text: Schema.String;
11850
- }>>>, Schema.optionalKey<Schema.Struct<{
11851
- readonly start: Schema.Finite;
11852
- readonly end: Schema.Finite;
11853
- readonly text: Schema.String;
11854
- }>>, never, never>;
11855
- }> & {
11856
- create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
11857
- readonly data: string;
11858
- readonly mime: string;
11859
- readonly source: {
11860
- readonly type: "inline";
11861
- } | {
11862
- readonly type: "uri";
11863
- readonly uri: string;
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
- readonly name?: string | undefined;
11866
- readonly description?: string | undefined;
11867
- readonly mention?: {
11868
- readonly start: number;
11869
- readonly end: number;
11870
- readonly text: string;
11871
- } | undefined;
11872
- };
11873
- }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
11874
- readonly data: Schema.String;
11875
- readonly mime: Schema.String;
11876
- readonly source: Schema.Union<readonly [Schema.Struct<{
11877
- readonly type: Schema.Literal<"inline">;
11878
- }>, Schema.Struct<{
11879
- readonly type: Schema.Literal<"uri">;
11880
- readonly uri: Schema.String;
11881
- }>]>;
11882
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11883
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11884
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11885
- readonly start: Schema.Finite;
11886
- readonly end: Schema.Finite;
11887
- readonly text: Schema.String;
11888
- }>>>, Schema.optionalKey<Schema.Struct<{
11889
- readonly start: Schema.Finite;
11890
- readonly end: Schema.Finite;
11891
- readonly text: Schema.String;
11892
- }>>, never, never>;
11893
- }> & {
11894
- create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
11895
- readonly data: string;
11896
- readonly mime: string;
11897
- readonly source: {
11898
- readonly type: "inline";
11899
- } | {
11900
- readonly type: "uri";
11901
- readonly uri: string;
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
- }>>>, never, never>;
11935
- }> & {
11936
- equivalence: import("effect/Equivalence").Equivalence<{
11937
- readonly text: string;
11938
- readonly files?: readonly {
11939
- readonly data: string;
11940
- readonly mime: string;
11941
- readonly source: {
11942
- readonly type: "inline";
11943
- } | {
11944
- readonly type: "uri";
11945
- readonly uri: string;
11946
- };
11947
- readonly name?: string | undefined;
11948
- readonly description?: string | undefined;
11949
- readonly mention?: {
11950
- readonly start: number;
11951
- readonly end: number;
11952
- readonly text: string;
11953
- } | undefined;
11954
- }[] | undefined;
11955
- readonly agents?: readonly {
11956
- readonly name: string;
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
- fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
11965
- readonly text: string;
11966
- readonly files?: readonly {
11967
- readonly data: string;
11968
- readonly mime: string;
11969
- readonly source: {
11970
- readonly type: "inline";
11971
- } | {
11972
- readonly type: "uri";
11973
- readonly uri: string;
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
  };