@opencode-ai/schema 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.
@@ -2940,7 +2940,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2940
2940
  };
2941
2941
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
2942
2942
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2943
- readonly type: Schema.Literal<"session.prompt.promoted">;
2943
+ readonly type: Schema.Literal<"session.input.promoted">;
2944
2944
  readonly durable: Schema.Struct<{
2945
2945
  readonly aggregateID: Schema.String;
2946
2946
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
@@ -2976,7 +2976,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2976
2976
  };
2977
2977
  }>;
2978
2978
  }> & {
2979
- type: "session.prompt.promoted";
2979
+ type: "session.input.promoted";
2980
2980
  durability: "durable";
2981
2981
  durable: {
2982
2982
  readonly version: number;
@@ -2998,7 +2998,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2998
2998
  };
2999
2999
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
3000
3000
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3001
- readonly type: Schema.Literal<"session.prompt.admitted">;
3001
+ readonly type: Schema.Literal<"session.input.admitted">;
3002
3002
  readonly durable: Schema.Struct<{
3003
3003
  readonly aggregateID: Schema.String;
3004
3004
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
@@ -3024,350 +3024,260 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3024
3024
  }>, never, never>;
3025
3025
  }>>, never, never>;
3026
3026
  readonly data: Schema.Struct<{
3027
- inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3027
+ readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3028
3028
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3029
3029
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3030
3030
  };
3031
- prompt: Schema.Struct<{
3032
- readonly text: Schema.String;
3033
- readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3034
- readonly data: Schema.String;
3035
- readonly mime: Schema.String;
3036
- readonly source: Schema.Union<readonly [Schema.Struct<{
3037
- readonly type: Schema.Literal<"inline">;
3038
- }>, Schema.Struct<{
3039
- readonly type: Schema.Literal<"uri">;
3040
- readonly uri: Schema.String;
3041
- }>]>;
3042
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3043
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3044
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3045
- readonly start: Schema.Finite;
3046
- readonly end: Schema.Finite;
3047
- readonly text: Schema.String;
3048
- }>>>, Schema.optionalKey<Schema.Struct<{
3049
- readonly start: Schema.Finite;
3050
- readonly end: Schema.Finite;
3051
- readonly text: Schema.String;
3052
- }>>, never, never>;
3053
- }> & {
3054
- create: (input: SessionEvent.FileAttachment) => {
3055
- readonly data: string;
3056
- readonly mime: string;
3057
- readonly source: {
3058
- readonly type: "inline";
3059
- } | {
3060
- readonly type: "uri";
3061
- readonly uri: string;
3031
+ readonly input: Schema.Union<readonly [Schema.Struct<{
3032
+ readonly type: Schema.tag<"user">;
3033
+ readonly data: Schema.Struct<{
3034
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3035
+ readonly text: Schema.String;
3036
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3037
+ readonly data: Schema.String;
3038
+ readonly mime: Schema.String;
3039
+ readonly source: Schema.Union<readonly [Schema.Struct<{
3040
+ readonly type: Schema.Literal<"inline">;
3041
+ }>, Schema.Struct<{
3042
+ readonly type: Schema.Literal<"uri">;
3043
+ readonly uri: Schema.String;
3044
+ }>]>;
3045
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3046
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3047
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3048
+ readonly start: Schema.Finite;
3049
+ readonly end: Schema.Finite;
3050
+ readonly text: Schema.String;
3051
+ }>>>, Schema.optionalKey<Schema.Struct<{
3052
+ readonly start: Schema.Finite;
3053
+ readonly end: Schema.Finite;
3054
+ readonly text: Schema.String;
3055
+ }>>, never, never>;
3056
+ }> & {
3057
+ create: (input: SessionEvent.FileAttachment) => {
3058
+ readonly data: string;
3059
+ readonly mime: string;
3060
+ readonly source: {
3061
+ readonly type: "inline";
3062
+ } | {
3063
+ readonly type: "uri";
3064
+ readonly uri: string;
3065
+ };
3066
+ readonly name?: string | undefined;
3067
+ readonly description?: string | undefined;
3068
+ readonly mention?: {
3069
+ readonly start: number;
3070
+ readonly end: number;
3071
+ readonly text: string;
3072
+ } | undefined;
3062
3073
  };
3063
- readonly name?: string | undefined;
3064
- readonly description?: string | undefined;
3065
- readonly mention?: {
3066
- readonly start: number;
3067
- readonly end: number;
3068
- readonly text: string;
3069
- } | undefined;
3070
- };
3071
- }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3072
- readonly data: Schema.String;
3073
- readonly mime: Schema.String;
3074
- readonly source: Schema.Union<readonly [Schema.Struct<{
3075
- readonly type: Schema.Literal<"inline">;
3076
- }>, Schema.Struct<{
3077
- readonly type: Schema.Literal<"uri">;
3078
- readonly uri: Schema.String;
3079
- }>]>;
3080
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3081
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3082
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3083
- readonly start: Schema.Finite;
3084
- readonly end: Schema.Finite;
3085
- readonly text: Schema.String;
3086
- }>>>, Schema.optionalKey<Schema.Struct<{
3087
- readonly start: Schema.Finite;
3088
- readonly end: Schema.Finite;
3089
- readonly text: Schema.String;
3090
- }>>, never, never>;
3091
- }> & {
3092
- create: (input: SessionEvent.FileAttachment) => {
3093
- readonly data: string;
3094
- readonly mime: string;
3095
- readonly source: {
3096
- readonly type: "inline";
3097
- } | {
3098
- readonly type: "uri";
3099
- readonly uri: string;
3074
+ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3075
+ readonly data: Schema.String;
3076
+ readonly mime: Schema.String;
3077
+ readonly source: Schema.Union<readonly [Schema.Struct<{
3078
+ readonly type: Schema.Literal<"inline">;
3079
+ }>, Schema.Struct<{
3080
+ readonly type: Schema.Literal<"uri">;
3081
+ readonly uri: Schema.String;
3082
+ }>]>;
3083
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3084
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3085
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3086
+ readonly start: Schema.Finite;
3087
+ readonly end: Schema.Finite;
3088
+ readonly text: Schema.String;
3089
+ }>>>, Schema.optionalKey<Schema.Struct<{
3090
+ readonly start: Schema.Finite;
3091
+ readonly end: Schema.Finite;
3092
+ readonly text: Schema.String;
3093
+ }>>, never, never>;
3094
+ }> & {
3095
+ create: (input: SessionEvent.FileAttachment) => {
3096
+ readonly data: string;
3097
+ readonly mime: string;
3098
+ readonly source: {
3099
+ readonly type: "inline";
3100
+ } | {
3101
+ readonly type: "uri";
3102
+ readonly uri: string;
3103
+ };
3104
+ readonly name?: string | undefined;
3105
+ readonly description?: string | undefined;
3106
+ readonly mention?: {
3107
+ readonly start: number;
3108
+ readonly end: number;
3109
+ readonly text: string;
3110
+ } | undefined;
3100
3111
  };
3101
- readonly name?: string | undefined;
3102
- readonly description?: string | undefined;
3103
- readonly mention?: {
3104
- readonly start: number;
3105
- readonly end: number;
3106
- readonly text: string;
3107
- } | undefined;
3108
- };
3109
- }>>, never, never>;
3110
- readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3111
- readonly name: Schema.String;
3112
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3113
- readonly start: Schema.Finite;
3114
- readonly end: Schema.Finite;
3115
- readonly text: Schema.String;
3116
- }>>>, Schema.optionalKey<Schema.Struct<{
3117
- readonly start: Schema.Finite;
3118
- readonly end: Schema.Finite;
3119
- readonly text: Schema.String;
3120
3112
  }>>, never, never>;
3121
- }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3122
- readonly name: Schema.String;
3123
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3124
- readonly start: Schema.Finite;
3125
- readonly end: Schema.Finite;
3126
- readonly text: Schema.String;
3127
- }>>>, Schema.optionalKey<Schema.Struct<{
3128
- readonly start: Schema.Finite;
3129
- readonly end: Schema.Finite;
3130
- readonly text: Schema.String;
3131
- }>>, never, never>;
3132
- }>>>, never, never>;
3133
- }> & {
3134
- equivalence: import("effect/Equivalence").Equivalence<{
3135
- readonly text: string;
3136
- readonly files?: readonly {
3137
- readonly data: string;
3138
- readonly mime: string;
3139
- readonly source: {
3140
- readonly type: "inline";
3141
- } | {
3142
- readonly type: "uri";
3143
- readonly uri: string;
3144
- };
3145
- readonly name?: string | undefined;
3146
- readonly description?: string | undefined;
3147
- readonly mention?: {
3148
- readonly start: number;
3149
- readonly end: number;
3150
- readonly text: string;
3151
- } | undefined;
3152
- }[] | undefined;
3153
- readonly agents?: readonly {
3154
- readonly name: string;
3155
- readonly mention?: {
3156
- readonly start: number;
3157
- readonly end: number;
3158
- readonly text: string;
3159
- } | undefined;
3160
- }[] | undefined;
3113
+ readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3114
+ readonly name: Schema.String;
3115
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3116
+ readonly start: Schema.Finite;
3117
+ readonly end: Schema.Finite;
3118
+ readonly text: Schema.String;
3119
+ }>>>, Schema.optionalKey<Schema.Struct<{
3120
+ readonly start: Schema.Finite;
3121
+ readonly end: Schema.Finite;
3122
+ readonly text: Schema.String;
3123
+ }>>, never, never>;
3124
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3125
+ readonly name: Schema.String;
3126
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3127
+ readonly start: Schema.Finite;
3128
+ readonly end: Schema.Finite;
3129
+ readonly text: Schema.String;
3130
+ }>>>, Schema.optionalKey<Schema.Struct<{
3131
+ readonly start: Schema.Finite;
3132
+ readonly end: Schema.Finite;
3133
+ readonly text: Schema.String;
3134
+ }>>, never, never>;
3135
+ }>>>, never, never>;
3161
3136
  }>;
3162
- fromUserMessage: (input: Pick<import("./prompt.js").Prompt, "text" | "files" | "agents">) => {
3163
- readonly text: string;
3164
- readonly files?: readonly {
3165
- readonly data: string;
3166
- readonly mime: string;
3167
- readonly source: {
3168
- readonly type: "inline";
3169
- } | {
3170
- readonly type: "uri";
3171
- readonly uri: string;
3172
- };
3173
- readonly name?: string | undefined;
3174
- readonly description?: string | undefined;
3175
- readonly mention?: {
3176
- readonly start: number;
3177
- readonly end: number;
3178
- readonly text: string;
3179
- } | undefined;
3180
- }[] | undefined;
3181
- readonly agents?: readonly {
3182
- readonly name: string;
3183
- readonly mention?: {
3184
- readonly start: number;
3185
- readonly end: number;
3186
- readonly text: string;
3187
- } | undefined;
3188
- }[] | undefined;
3189
- };
3190
- };
3191
- delivery: Schema.Literals<readonly ["steer", "queue"]>;
3192
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
3137
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
3138
+ }>, Schema.Struct<{
3139
+ readonly type: Schema.tag<"synthetic">;
3140
+ readonly data: Schema.Struct<{
3141
+ readonly text: Schema.String;
3142
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3143
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3144
+ }>;
3145
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
3146
+ }>]>;
3147
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3193
3148
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3194
3149
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3195
3150
  };
3196
3151
  }>;
3197
3152
  }> & {
3198
- type: "session.prompt.admitted";
3153
+ type: "session.input.admitted";
3199
3154
  durability: "durable";
3200
3155
  durable: {
3201
3156
  readonly version: number;
3202
3157
  readonly aggregate: string;
3203
3158
  };
3204
3159
  data: Schema.Struct<{
3205
- inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3160
+ readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3206
3161
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3207
3162
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3208
3163
  };
3209
- prompt: Schema.Struct<{
3210
- readonly text: Schema.String;
3211
- readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3212
- readonly data: Schema.String;
3213
- readonly mime: Schema.String;
3214
- readonly source: Schema.Union<readonly [Schema.Struct<{
3215
- readonly type: Schema.Literal<"inline">;
3216
- }>, Schema.Struct<{
3217
- readonly type: Schema.Literal<"uri">;
3218
- readonly uri: Schema.String;
3219
- }>]>;
3220
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3221
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3222
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3223
- readonly start: Schema.Finite;
3224
- readonly end: Schema.Finite;
3225
- readonly text: Schema.String;
3226
- }>>>, Schema.optionalKey<Schema.Struct<{
3227
- readonly start: Schema.Finite;
3228
- readonly end: Schema.Finite;
3229
- readonly text: Schema.String;
3230
- }>>, never, never>;
3231
- }> & {
3232
- create: (input: SessionEvent.FileAttachment) => {
3233
- readonly data: string;
3234
- readonly mime: string;
3235
- readonly source: {
3236
- readonly type: "inline";
3237
- } | {
3238
- readonly type: "uri";
3239
- readonly uri: string;
3164
+ readonly input: Schema.Union<readonly [Schema.Struct<{
3165
+ readonly type: Schema.tag<"user">;
3166
+ readonly data: Schema.Struct<{
3167
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3168
+ readonly text: Schema.String;
3169
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3170
+ readonly data: Schema.String;
3171
+ readonly mime: Schema.String;
3172
+ readonly source: Schema.Union<readonly [Schema.Struct<{
3173
+ readonly type: Schema.Literal<"inline">;
3174
+ }>, Schema.Struct<{
3175
+ readonly type: Schema.Literal<"uri">;
3176
+ readonly uri: Schema.String;
3177
+ }>]>;
3178
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3179
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3180
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3181
+ readonly start: Schema.Finite;
3182
+ readonly end: Schema.Finite;
3183
+ readonly text: Schema.String;
3184
+ }>>>, Schema.optionalKey<Schema.Struct<{
3185
+ readonly start: Schema.Finite;
3186
+ readonly end: Schema.Finite;
3187
+ readonly text: Schema.String;
3188
+ }>>, never, never>;
3189
+ }> & {
3190
+ create: (input: SessionEvent.FileAttachment) => {
3191
+ readonly data: string;
3192
+ readonly mime: string;
3193
+ readonly source: {
3194
+ readonly type: "inline";
3195
+ } | {
3196
+ readonly type: "uri";
3197
+ readonly uri: string;
3198
+ };
3199
+ readonly name?: string | undefined;
3200
+ readonly description?: string | undefined;
3201
+ readonly mention?: {
3202
+ readonly start: number;
3203
+ readonly end: number;
3204
+ readonly text: string;
3205
+ } | undefined;
3240
3206
  };
3241
- readonly name?: string | undefined;
3242
- readonly description?: string | undefined;
3243
- readonly mention?: {
3244
- readonly start: number;
3245
- readonly end: number;
3246
- readonly text: string;
3247
- } | undefined;
3248
- };
3249
- }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3250
- readonly data: Schema.String;
3251
- readonly mime: Schema.String;
3252
- readonly source: Schema.Union<readonly [Schema.Struct<{
3253
- readonly type: Schema.Literal<"inline">;
3254
- }>, Schema.Struct<{
3255
- readonly type: Schema.Literal<"uri">;
3256
- readonly uri: Schema.String;
3257
- }>]>;
3258
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3259
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3260
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3261
- readonly start: Schema.Finite;
3262
- readonly end: Schema.Finite;
3263
- readonly text: Schema.String;
3264
- }>>>, Schema.optionalKey<Schema.Struct<{
3265
- readonly start: Schema.Finite;
3266
- readonly end: Schema.Finite;
3267
- readonly text: Schema.String;
3268
- }>>, never, never>;
3269
- }> & {
3270
- create: (input: SessionEvent.FileAttachment) => {
3271
- readonly data: string;
3272
- readonly mime: string;
3273
- readonly source: {
3274
- readonly type: "inline";
3275
- } | {
3276
- readonly type: "uri";
3277
- readonly uri: string;
3207
+ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3208
+ readonly data: Schema.String;
3209
+ readonly mime: Schema.String;
3210
+ readonly source: Schema.Union<readonly [Schema.Struct<{
3211
+ readonly type: Schema.Literal<"inline">;
3212
+ }>, Schema.Struct<{
3213
+ readonly type: Schema.Literal<"uri">;
3214
+ readonly uri: Schema.String;
3215
+ }>]>;
3216
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3217
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3218
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3219
+ readonly start: Schema.Finite;
3220
+ readonly end: Schema.Finite;
3221
+ readonly text: Schema.String;
3222
+ }>>>, Schema.optionalKey<Schema.Struct<{
3223
+ readonly start: Schema.Finite;
3224
+ readonly end: Schema.Finite;
3225
+ readonly text: Schema.String;
3226
+ }>>, never, never>;
3227
+ }> & {
3228
+ create: (input: SessionEvent.FileAttachment) => {
3229
+ readonly data: string;
3230
+ readonly mime: string;
3231
+ readonly source: {
3232
+ readonly type: "inline";
3233
+ } | {
3234
+ readonly type: "uri";
3235
+ readonly uri: string;
3236
+ };
3237
+ readonly name?: string | undefined;
3238
+ readonly description?: string | undefined;
3239
+ readonly mention?: {
3240
+ readonly start: number;
3241
+ readonly end: number;
3242
+ readonly text: string;
3243
+ } | undefined;
3278
3244
  };
3279
- readonly name?: string | undefined;
3280
- readonly description?: string | undefined;
3281
- readonly mention?: {
3282
- readonly start: number;
3283
- readonly end: number;
3284
- readonly text: string;
3285
- } | undefined;
3286
- };
3287
- }>>, never, never>;
3288
- readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3289
- readonly name: Schema.String;
3290
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3291
- readonly start: Schema.Finite;
3292
- readonly end: Schema.Finite;
3293
- readonly text: Schema.String;
3294
- }>>>, Schema.optionalKey<Schema.Struct<{
3295
- readonly start: Schema.Finite;
3296
- readonly end: Schema.Finite;
3297
- readonly text: Schema.String;
3298
3245
  }>>, never, never>;
3299
- }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3300
- readonly name: Schema.String;
3301
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3302
- readonly start: Schema.Finite;
3303
- readonly end: Schema.Finite;
3304
- readonly text: Schema.String;
3305
- }>>>, Schema.optionalKey<Schema.Struct<{
3306
- readonly start: Schema.Finite;
3307
- readonly end: Schema.Finite;
3308
- readonly text: Schema.String;
3309
- }>>, never, never>;
3310
- }>>>, never, never>;
3311
- }> & {
3312
- equivalence: import("effect/Equivalence").Equivalence<{
3313
- readonly text: string;
3314
- readonly files?: readonly {
3315
- readonly data: string;
3316
- readonly mime: string;
3317
- readonly source: {
3318
- readonly type: "inline";
3319
- } | {
3320
- readonly type: "uri";
3321
- readonly uri: string;
3322
- };
3323
- readonly name?: string | undefined;
3324
- readonly description?: string | undefined;
3325
- readonly mention?: {
3326
- readonly start: number;
3327
- readonly end: number;
3328
- readonly text: string;
3329
- } | undefined;
3330
- }[] | undefined;
3331
- readonly agents?: readonly {
3332
- readonly name: string;
3333
- readonly mention?: {
3334
- readonly start: number;
3335
- readonly end: number;
3336
- readonly text: string;
3337
- } | undefined;
3338
- }[] | undefined;
3246
+ readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3247
+ readonly name: Schema.String;
3248
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3249
+ readonly start: Schema.Finite;
3250
+ readonly end: Schema.Finite;
3251
+ readonly text: Schema.String;
3252
+ }>>>, Schema.optionalKey<Schema.Struct<{
3253
+ readonly start: Schema.Finite;
3254
+ readonly end: Schema.Finite;
3255
+ readonly text: Schema.String;
3256
+ }>>, never, never>;
3257
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3258
+ readonly name: Schema.String;
3259
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3260
+ readonly start: Schema.Finite;
3261
+ readonly end: Schema.Finite;
3262
+ readonly text: Schema.String;
3263
+ }>>>, Schema.optionalKey<Schema.Struct<{
3264
+ readonly start: Schema.Finite;
3265
+ readonly end: Schema.Finite;
3266
+ readonly text: Schema.String;
3267
+ }>>, never, never>;
3268
+ }>>>, never, never>;
3339
3269
  }>;
3340
- fromUserMessage: (input: Pick<import("./prompt.js").Prompt, "text" | "files" | "agents">) => {
3341
- readonly text: string;
3342
- readonly files?: readonly {
3343
- readonly data: string;
3344
- readonly mime: string;
3345
- readonly source: {
3346
- readonly type: "inline";
3347
- } | {
3348
- readonly type: "uri";
3349
- readonly uri: string;
3350
- };
3351
- readonly name?: string | undefined;
3352
- readonly description?: string | undefined;
3353
- readonly mention?: {
3354
- readonly start: number;
3355
- readonly end: number;
3356
- readonly text: string;
3357
- } | undefined;
3358
- }[] | undefined;
3359
- readonly agents?: readonly {
3360
- readonly name: string;
3361
- readonly mention?: {
3362
- readonly start: number;
3363
- readonly end: number;
3364
- readonly text: string;
3365
- } | undefined;
3366
- }[] | undefined;
3367
- };
3368
- };
3369
- delivery: Schema.Literals<readonly ["steer", "queue"]>;
3370
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
3270
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
3271
+ }>, Schema.Struct<{
3272
+ readonly type: Schema.tag<"synthetic">;
3273
+ readonly data: Schema.Struct<{
3274
+ readonly text: Schema.String;
3275
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3276
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3277
+ }>;
3278
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
3279
+ }>]>;
3280
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3371
3281
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3372
3282
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3373
3283
  };
@@ -8524,7 +8434,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8524
8434
  };
8525
8435
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
8526
8436
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8527
- readonly type: Schema.Literal<"session.prompt.promoted">;
8437
+ readonly type: Schema.Literal<"session.input.promoted">;
8528
8438
  readonly durable: Schema.Struct<{
8529
8439
  readonly aggregateID: Schema.String;
8530
8440
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
@@ -8560,7 +8470,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8560
8470
  };
8561
8471
  }>;
8562
8472
  }> & {
8563
- type: "session.prompt.promoted";
8473
+ type: "session.input.promoted";
8564
8474
  durability: "durable";
8565
8475
  durable: {
8566
8476
  readonly version: number;
@@ -8582,7 +8492,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8582
8492
  };
8583
8493
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
8584
8494
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8585
- readonly type: Schema.Literal<"session.prompt.admitted">;
8495
+ readonly type: Schema.Literal<"session.input.admitted">;
8586
8496
  readonly durable: Schema.Struct<{
8587
8497
  readonly aggregateID: Schema.String;
8588
8498
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
@@ -8608,350 +8518,260 @@ export declare const Definitions: readonly [Schema.Struct<{
8608
8518
  }>, never, never>;
8609
8519
  }>>, never, never>;
8610
8520
  readonly data: Schema.Struct<{
8611
- inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8521
+ readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8612
8522
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8613
8523
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8614
8524
  };
8615
- prompt: Schema.Struct<{
8616
- readonly text: Schema.String;
8617
- readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
8618
- readonly data: Schema.String;
8619
- readonly mime: Schema.String;
8620
- readonly source: Schema.Union<readonly [Schema.Struct<{
8621
- readonly type: Schema.Literal<"inline">;
8622
- }>, Schema.Struct<{
8623
- readonly type: Schema.Literal<"uri">;
8624
- readonly uri: Schema.String;
8625
- }>]>;
8626
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8627
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8628
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8629
- readonly start: Schema.Finite;
8630
- readonly end: Schema.Finite;
8631
- readonly text: Schema.String;
8632
- }>>>, Schema.optionalKey<Schema.Struct<{
8633
- readonly start: Schema.Finite;
8634
- readonly end: Schema.Finite;
8635
- readonly text: Schema.String;
8636
- }>>, never, never>;
8637
- }> & {
8638
- create: (input: SessionEvent.FileAttachment) => {
8639
- readonly data: string;
8640
- readonly mime: string;
8641
- readonly source: {
8642
- readonly type: "inline";
8643
- } | {
8644
- readonly type: "uri";
8645
- readonly uri: string;
8525
+ readonly input: Schema.Union<readonly [Schema.Struct<{
8526
+ readonly type: Schema.tag<"user">;
8527
+ readonly data: Schema.Struct<{
8528
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8529
+ readonly text: Schema.String;
8530
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
8531
+ readonly data: Schema.String;
8532
+ readonly mime: Schema.String;
8533
+ readonly source: Schema.Union<readonly [Schema.Struct<{
8534
+ readonly type: Schema.Literal<"inline">;
8535
+ }>, Schema.Struct<{
8536
+ readonly type: Schema.Literal<"uri">;
8537
+ readonly uri: Schema.String;
8538
+ }>]>;
8539
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8540
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8541
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8542
+ readonly start: Schema.Finite;
8543
+ readonly end: Schema.Finite;
8544
+ readonly text: Schema.String;
8545
+ }>>>, Schema.optionalKey<Schema.Struct<{
8546
+ readonly start: Schema.Finite;
8547
+ readonly end: Schema.Finite;
8548
+ readonly text: Schema.String;
8549
+ }>>, never, never>;
8550
+ }> & {
8551
+ create: (input: SessionEvent.FileAttachment) => {
8552
+ readonly data: string;
8553
+ readonly mime: string;
8554
+ readonly source: {
8555
+ readonly type: "inline";
8556
+ } | {
8557
+ readonly type: "uri";
8558
+ readonly uri: string;
8559
+ };
8560
+ readonly name?: string | undefined;
8561
+ readonly description?: string | undefined;
8562
+ readonly mention?: {
8563
+ readonly start: number;
8564
+ readonly end: number;
8565
+ readonly text: string;
8566
+ } | undefined;
8646
8567
  };
8647
- readonly name?: string | undefined;
8648
- readonly description?: string | undefined;
8649
- readonly mention?: {
8650
- readonly start: number;
8651
- readonly end: number;
8652
- readonly text: string;
8653
- } | undefined;
8654
- };
8655
- }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
8656
- readonly data: Schema.String;
8657
- readonly mime: Schema.String;
8658
- readonly source: Schema.Union<readonly [Schema.Struct<{
8659
- readonly type: Schema.Literal<"inline">;
8660
- }>, Schema.Struct<{
8661
- readonly type: Schema.Literal<"uri">;
8662
- readonly uri: Schema.String;
8663
- }>]>;
8664
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8665
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8666
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8667
- readonly start: Schema.Finite;
8668
- readonly end: Schema.Finite;
8669
- readonly text: Schema.String;
8670
- }>>>, Schema.optionalKey<Schema.Struct<{
8671
- readonly start: Schema.Finite;
8672
- readonly end: Schema.Finite;
8673
- readonly text: Schema.String;
8674
- }>>, never, never>;
8675
- }> & {
8676
- create: (input: SessionEvent.FileAttachment) => {
8677
- readonly data: string;
8678
- readonly mime: string;
8679
- readonly source: {
8680
- readonly type: "inline";
8681
- } | {
8682
- readonly type: "uri";
8683
- readonly uri: string;
8568
+ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
8569
+ readonly data: Schema.String;
8570
+ readonly mime: Schema.String;
8571
+ readonly source: Schema.Union<readonly [Schema.Struct<{
8572
+ readonly type: Schema.Literal<"inline">;
8573
+ }>, Schema.Struct<{
8574
+ readonly type: Schema.Literal<"uri">;
8575
+ readonly uri: Schema.String;
8576
+ }>]>;
8577
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8578
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8579
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8580
+ readonly start: Schema.Finite;
8581
+ readonly end: Schema.Finite;
8582
+ readonly text: Schema.String;
8583
+ }>>>, Schema.optionalKey<Schema.Struct<{
8584
+ readonly start: Schema.Finite;
8585
+ readonly end: Schema.Finite;
8586
+ readonly text: Schema.String;
8587
+ }>>, never, never>;
8588
+ }> & {
8589
+ create: (input: SessionEvent.FileAttachment) => {
8590
+ readonly data: string;
8591
+ readonly mime: string;
8592
+ readonly source: {
8593
+ readonly type: "inline";
8594
+ } | {
8595
+ readonly type: "uri";
8596
+ readonly uri: string;
8597
+ };
8598
+ readonly name?: string | undefined;
8599
+ readonly description?: string | undefined;
8600
+ readonly mention?: {
8601
+ readonly start: number;
8602
+ readonly end: number;
8603
+ readonly text: string;
8604
+ } | undefined;
8684
8605
  };
8685
- readonly name?: string | undefined;
8686
- readonly description?: string | undefined;
8687
- readonly mention?: {
8688
- readonly start: number;
8689
- readonly end: number;
8690
- readonly text: string;
8691
- } | undefined;
8692
- };
8693
- }>>, never, never>;
8694
- readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
8695
- readonly name: Schema.String;
8696
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8697
- readonly start: Schema.Finite;
8698
- readonly end: Schema.Finite;
8699
- readonly text: Schema.String;
8700
- }>>>, Schema.optionalKey<Schema.Struct<{
8701
- readonly start: Schema.Finite;
8702
- readonly end: Schema.Finite;
8703
- readonly text: Schema.String;
8704
8606
  }>>, never, never>;
8705
- }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
8706
- readonly name: Schema.String;
8707
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8708
- readonly start: Schema.Finite;
8709
- readonly end: Schema.Finite;
8710
- readonly text: Schema.String;
8711
- }>>>, Schema.optionalKey<Schema.Struct<{
8712
- readonly start: Schema.Finite;
8713
- readonly end: Schema.Finite;
8714
- readonly text: Schema.String;
8715
- }>>, never, never>;
8716
- }>>>, never, never>;
8717
- }> & {
8718
- equivalence: import("effect/Equivalence").Equivalence<{
8719
- readonly text: string;
8720
- readonly files?: readonly {
8721
- readonly data: string;
8722
- readonly mime: string;
8723
- readonly source: {
8724
- readonly type: "inline";
8725
- } | {
8726
- readonly type: "uri";
8727
- readonly uri: string;
8728
- };
8729
- readonly name?: string | undefined;
8730
- readonly description?: string | undefined;
8731
- readonly mention?: {
8732
- readonly start: number;
8733
- readonly end: number;
8734
- readonly text: string;
8735
- } | undefined;
8736
- }[] | undefined;
8737
- readonly agents?: readonly {
8738
- readonly name: string;
8739
- readonly mention?: {
8740
- readonly start: number;
8741
- readonly end: number;
8742
- readonly text: string;
8743
- } | undefined;
8744
- }[] | undefined;
8607
+ readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
8608
+ readonly name: Schema.String;
8609
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8610
+ readonly start: Schema.Finite;
8611
+ readonly end: Schema.Finite;
8612
+ readonly text: Schema.String;
8613
+ }>>>, Schema.optionalKey<Schema.Struct<{
8614
+ readonly start: Schema.Finite;
8615
+ readonly end: Schema.Finite;
8616
+ readonly text: Schema.String;
8617
+ }>>, never, never>;
8618
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
8619
+ readonly name: Schema.String;
8620
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8621
+ readonly start: Schema.Finite;
8622
+ readonly end: Schema.Finite;
8623
+ readonly text: Schema.String;
8624
+ }>>>, Schema.optionalKey<Schema.Struct<{
8625
+ readonly start: Schema.Finite;
8626
+ readonly end: Schema.Finite;
8627
+ readonly text: Schema.String;
8628
+ }>>, never, never>;
8629
+ }>>>, never, never>;
8745
8630
  }>;
8746
- fromUserMessage: (input: Pick<import("./prompt.js").Prompt, "text" | "files" | "agents">) => {
8747
- readonly text: string;
8748
- readonly files?: readonly {
8749
- readonly data: string;
8750
- readonly mime: string;
8751
- readonly source: {
8752
- readonly type: "inline";
8753
- } | {
8754
- readonly type: "uri";
8755
- readonly uri: string;
8756
- };
8757
- readonly name?: string | undefined;
8758
- readonly description?: string | undefined;
8759
- readonly mention?: {
8760
- readonly start: number;
8761
- readonly end: number;
8762
- readonly text: string;
8763
- } | undefined;
8764
- }[] | undefined;
8765
- readonly agents?: readonly {
8766
- readonly name: string;
8767
- readonly mention?: {
8768
- readonly start: number;
8769
- readonly end: number;
8770
- readonly text: string;
8771
- } | undefined;
8772
- }[] | undefined;
8773
- };
8774
- };
8775
- delivery: Schema.Literals<readonly ["steer", "queue"]>;
8776
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
8631
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
8632
+ }>, Schema.Struct<{
8633
+ readonly type: Schema.tag<"synthetic">;
8634
+ readonly data: Schema.Struct<{
8635
+ readonly text: Schema.String;
8636
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8637
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8638
+ }>;
8639
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
8640
+ }>]>;
8641
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8777
8642
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8778
8643
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8779
8644
  };
8780
8645
  }>;
8781
8646
  }> & {
8782
- type: "session.prompt.admitted";
8647
+ type: "session.input.admitted";
8783
8648
  durability: "durable";
8784
8649
  durable: {
8785
8650
  readonly version: number;
8786
8651
  readonly aggregate: string;
8787
8652
  };
8788
8653
  data: Schema.Struct<{
8789
- inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8654
+ readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8790
8655
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8791
8656
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8792
8657
  };
8793
- prompt: Schema.Struct<{
8794
- readonly text: Schema.String;
8795
- readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
8796
- readonly data: Schema.String;
8797
- readonly mime: Schema.String;
8798
- readonly source: Schema.Union<readonly [Schema.Struct<{
8799
- readonly type: Schema.Literal<"inline">;
8800
- }>, Schema.Struct<{
8801
- readonly type: Schema.Literal<"uri">;
8802
- readonly uri: Schema.String;
8803
- }>]>;
8804
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8805
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8806
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8807
- readonly start: Schema.Finite;
8808
- readonly end: Schema.Finite;
8809
- readonly text: Schema.String;
8810
- }>>>, Schema.optionalKey<Schema.Struct<{
8811
- readonly start: Schema.Finite;
8812
- readonly end: Schema.Finite;
8813
- readonly text: Schema.String;
8814
- }>>, never, never>;
8815
- }> & {
8816
- create: (input: SessionEvent.FileAttachment) => {
8817
- readonly data: string;
8818
- readonly mime: string;
8819
- readonly source: {
8820
- readonly type: "inline";
8821
- } | {
8822
- readonly type: "uri";
8823
- readonly uri: string;
8658
+ readonly input: Schema.Union<readonly [Schema.Struct<{
8659
+ readonly type: Schema.tag<"user">;
8660
+ readonly data: Schema.Struct<{
8661
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8662
+ readonly text: Schema.String;
8663
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
8664
+ readonly data: Schema.String;
8665
+ readonly mime: Schema.String;
8666
+ readonly source: Schema.Union<readonly [Schema.Struct<{
8667
+ readonly type: Schema.Literal<"inline">;
8668
+ }>, Schema.Struct<{
8669
+ readonly type: Schema.Literal<"uri">;
8670
+ readonly uri: Schema.String;
8671
+ }>]>;
8672
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8673
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8674
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8675
+ readonly start: Schema.Finite;
8676
+ readonly end: Schema.Finite;
8677
+ readonly text: Schema.String;
8678
+ }>>>, Schema.optionalKey<Schema.Struct<{
8679
+ readonly start: Schema.Finite;
8680
+ readonly end: Schema.Finite;
8681
+ readonly text: Schema.String;
8682
+ }>>, never, never>;
8683
+ }> & {
8684
+ create: (input: SessionEvent.FileAttachment) => {
8685
+ readonly data: string;
8686
+ readonly mime: string;
8687
+ readonly source: {
8688
+ readonly type: "inline";
8689
+ } | {
8690
+ readonly type: "uri";
8691
+ readonly uri: string;
8692
+ };
8693
+ readonly name?: string | undefined;
8694
+ readonly description?: string | undefined;
8695
+ readonly mention?: {
8696
+ readonly start: number;
8697
+ readonly end: number;
8698
+ readonly text: string;
8699
+ } | undefined;
8824
8700
  };
8825
- readonly name?: string | undefined;
8826
- readonly description?: string | undefined;
8827
- readonly mention?: {
8828
- readonly start: number;
8829
- readonly end: number;
8830
- readonly text: string;
8831
- } | undefined;
8832
- };
8833
- }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
8834
- readonly data: Schema.String;
8835
- readonly mime: Schema.String;
8836
- readonly source: Schema.Union<readonly [Schema.Struct<{
8837
- readonly type: Schema.Literal<"inline">;
8838
- }>, Schema.Struct<{
8839
- readonly type: Schema.Literal<"uri">;
8840
- readonly uri: Schema.String;
8841
- }>]>;
8842
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8843
- readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8844
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8845
- readonly start: Schema.Finite;
8846
- readonly end: Schema.Finite;
8847
- readonly text: Schema.String;
8848
- }>>>, Schema.optionalKey<Schema.Struct<{
8849
- readonly start: Schema.Finite;
8850
- readonly end: Schema.Finite;
8851
- readonly text: Schema.String;
8852
- }>>, never, never>;
8853
- }> & {
8854
- create: (input: SessionEvent.FileAttachment) => {
8855
- readonly data: string;
8856
- readonly mime: string;
8857
- readonly source: {
8858
- readonly type: "inline";
8859
- } | {
8860
- readonly type: "uri";
8861
- readonly uri: string;
8701
+ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
8702
+ readonly data: Schema.String;
8703
+ readonly mime: Schema.String;
8704
+ readonly source: Schema.Union<readonly [Schema.Struct<{
8705
+ readonly type: Schema.Literal<"inline">;
8706
+ }>, Schema.Struct<{
8707
+ readonly type: Schema.Literal<"uri">;
8708
+ readonly uri: Schema.String;
8709
+ }>]>;
8710
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8711
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8712
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8713
+ readonly start: Schema.Finite;
8714
+ readonly end: Schema.Finite;
8715
+ readonly text: Schema.String;
8716
+ }>>>, Schema.optionalKey<Schema.Struct<{
8717
+ readonly start: Schema.Finite;
8718
+ readonly end: Schema.Finite;
8719
+ readonly text: Schema.String;
8720
+ }>>, never, never>;
8721
+ }> & {
8722
+ create: (input: SessionEvent.FileAttachment) => {
8723
+ readonly data: string;
8724
+ readonly mime: string;
8725
+ readonly source: {
8726
+ readonly type: "inline";
8727
+ } | {
8728
+ readonly type: "uri";
8729
+ readonly uri: string;
8730
+ };
8731
+ readonly name?: string | undefined;
8732
+ readonly description?: string | undefined;
8733
+ readonly mention?: {
8734
+ readonly start: number;
8735
+ readonly end: number;
8736
+ readonly text: string;
8737
+ } | undefined;
8862
8738
  };
8863
- readonly name?: string | undefined;
8864
- readonly description?: string | undefined;
8865
- readonly mention?: {
8866
- readonly start: number;
8867
- readonly end: number;
8868
- readonly text: string;
8869
- } | undefined;
8870
- };
8871
- }>>, never, never>;
8872
- readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
8873
- readonly name: Schema.String;
8874
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8875
- readonly start: Schema.Finite;
8876
- readonly end: Schema.Finite;
8877
- readonly text: Schema.String;
8878
- }>>>, Schema.optionalKey<Schema.Struct<{
8879
- readonly start: Schema.Finite;
8880
- readonly end: Schema.Finite;
8881
- readonly text: Schema.String;
8882
8739
  }>>, never, never>;
8883
- }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
8884
- readonly name: Schema.String;
8885
- readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8886
- readonly start: Schema.Finite;
8887
- readonly end: Schema.Finite;
8888
- readonly text: Schema.String;
8889
- }>>>, Schema.optionalKey<Schema.Struct<{
8890
- readonly start: Schema.Finite;
8891
- readonly end: Schema.Finite;
8892
- readonly text: Schema.String;
8893
- }>>, never, never>;
8894
- }>>>, never, never>;
8895
- }> & {
8896
- equivalence: import("effect/Equivalence").Equivalence<{
8897
- readonly text: string;
8898
- readonly files?: readonly {
8899
- readonly data: string;
8900
- readonly mime: string;
8901
- readonly source: {
8902
- readonly type: "inline";
8903
- } | {
8904
- readonly type: "uri";
8905
- readonly uri: string;
8906
- };
8907
- readonly name?: string | undefined;
8908
- readonly description?: string | undefined;
8909
- readonly mention?: {
8910
- readonly start: number;
8911
- readonly end: number;
8912
- readonly text: string;
8913
- } | undefined;
8914
- }[] | undefined;
8915
- readonly agents?: readonly {
8916
- readonly name: string;
8917
- readonly mention?: {
8918
- readonly start: number;
8919
- readonly end: number;
8920
- readonly text: string;
8921
- } | undefined;
8922
- }[] | undefined;
8740
+ readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
8741
+ readonly name: Schema.String;
8742
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8743
+ readonly start: Schema.Finite;
8744
+ readonly end: Schema.Finite;
8745
+ readonly text: Schema.String;
8746
+ }>>>, Schema.optionalKey<Schema.Struct<{
8747
+ readonly start: Schema.Finite;
8748
+ readonly end: Schema.Finite;
8749
+ readonly text: Schema.String;
8750
+ }>>, never, never>;
8751
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
8752
+ readonly name: Schema.String;
8753
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8754
+ readonly start: Schema.Finite;
8755
+ readonly end: Schema.Finite;
8756
+ readonly text: Schema.String;
8757
+ }>>>, Schema.optionalKey<Schema.Struct<{
8758
+ readonly start: Schema.Finite;
8759
+ readonly end: Schema.Finite;
8760
+ readonly text: Schema.String;
8761
+ }>>, never, never>;
8762
+ }>>>, never, never>;
8923
8763
  }>;
8924
- fromUserMessage: (input: Pick<import("./prompt.js").Prompt, "text" | "files" | "agents">) => {
8925
- readonly text: string;
8926
- readonly files?: readonly {
8927
- readonly data: string;
8928
- readonly mime: string;
8929
- readonly source: {
8930
- readonly type: "inline";
8931
- } | {
8932
- readonly type: "uri";
8933
- readonly uri: string;
8934
- };
8935
- readonly name?: string | undefined;
8936
- readonly description?: string | undefined;
8937
- readonly mention?: {
8938
- readonly start: number;
8939
- readonly end: number;
8940
- readonly text: string;
8941
- } | undefined;
8942
- }[] | undefined;
8943
- readonly agents?: readonly {
8944
- readonly name: string;
8945
- readonly mention?: {
8946
- readonly start: number;
8947
- readonly end: number;
8948
- readonly text: string;
8949
- } | undefined;
8950
- }[] | undefined;
8951
- };
8952
- };
8953
- delivery: Schema.Literals<readonly ["steer", "queue"]>;
8954
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
8764
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
8765
+ }>, Schema.Struct<{
8766
+ readonly type: Schema.tag<"synthetic">;
8767
+ readonly data: Schema.Struct<{
8768
+ readonly text: Schema.String;
8769
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8770
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8771
+ }>;
8772
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
8773
+ }>]>;
8774
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8955
8775
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8956
8776
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8957
8777
  };