@opencode-ai/schema 0.0.0-dev-18296 → 0.0.0-dev-18298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/event-manifest.d.ts +116 -0
- package/dist/session-event.d.ts +293 -0
- package/dist/session-event.js +10 -1
- package/dist/session-message.d.ts +4 -0
- package/dist/session-message.js +2 -0
- package/dist/session-transfer.d.ts +1 -0
- package/package.json +1 -1
package/dist/event-manifest.d.ts
CHANGED
|
@@ -2273,6 +2273,64 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2273
2273
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2274
2274
|
};
|
|
2275
2275
|
}>;
|
|
2276
|
+
}, Schema.Struct<{
|
|
2277
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2278
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
2279
|
+
};
|
|
2280
|
+
readonly created: Schema.Finite;
|
|
2281
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2282
|
+
readonly type: Schema.Literal<"session.step.streamed">;
|
|
2283
|
+
readonly durable: Schema.Struct<{
|
|
2284
|
+
readonly aggregateID: Schema.String;
|
|
2285
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2286
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2287
|
+
}>;
|
|
2288
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2289
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2290
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2291
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2292
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2293
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2294
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2295
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2296
|
+
}>, never, never>;
|
|
2297
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2298
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2299
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2300
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2301
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2302
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2303
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2304
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2305
|
+
}>, never, never>;
|
|
2306
|
+
}>>, never, never>;
|
|
2307
|
+
readonly data: Schema.Struct<{
|
|
2308
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2309
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2310
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2311
|
+
};
|
|
2312
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2313
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2314
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2315
|
+
};
|
|
2316
|
+
}>;
|
|
2317
|
+
}> & {
|
|
2318
|
+
type: "session.step.streamed";
|
|
2319
|
+
durability: "durable";
|
|
2320
|
+
durable: {
|
|
2321
|
+
readonly version: number;
|
|
2322
|
+
readonly aggregate: string;
|
|
2323
|
+
};
|
|
2324
|
+
data: Schema.Struct<{
|
|
2325
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2326
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2327
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2328
|
+
};
|
|
2329
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2330
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2331
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2332
|
+
};
|
|
2333
|
+
}>;
|
|
2276
2334
|
}, Schema.Struct<{
|
|
2277
2335
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2278
2336
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -8257,6 +8315,64 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
8257
8315
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8258
8316
|
};
|
|
8259
8317
|
}>;
|
|
8318
|
+
}, Schema.Struct<{
|
|
8319
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8320
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
8321
|
+
};
|
|
8322
|
+
readonly created: Schema.Finite;
|
|
8323
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8324
|
+
readonly type: Schema.Literal<"session.step.streamed">;
|
|
8325
|
+
readonly durable: Schema.Struct<{
|
|
8326
|
+
readonly aggregateID: Schema.String;
|
|
8327
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
8328
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
8329
|
+
}>;
|
|
8330
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8331
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8332
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8333
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8334
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8335
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8336
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8337
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8338
|
+
}>, never, never>;
|
|
8339
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8340
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8341
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8342
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8343
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8344
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8345
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8346
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8347
|
+
}>, never, never>;
|
|
8348
|
+
}>>, never, never>;
|
|
8349
|
+
readonly data: Schema.Struct<{
|
|
8350
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8351
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8352
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8353
|
+
};
|
|
8354
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8355
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8356
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8357
|
+
};
|
|
8358
|
+
}>;
|
|
8359
|
+
}> & {
|
|
8360
|
+
type: "session.step.streamed";
|
|
8361
|
+
durability: "durable";
|
|
8362
|
+
durable: {
|
|
8363
|
+
readonly version: number;
|
|
8364
|
+
readonly aggregate: string;
|
|
8365
|
+
};
|
|
8366
|
+
data: Schema.Struct<{
|
|
8367
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8368
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8369
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8370
|
+
};
|
|
8371
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8372
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8373
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8374
|
+
};
|
|
8375
|
+
}>;
|
|
8260
8376
|
}, Schema.Struct<{
|
|
8261
8377
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8262
8378
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/session-event.d.ts
CHANGED
|
@@ -2429,6 +2429,67 @@ export declare namespace Step {
|
|
|
2429
2429
|
}>;
|
|
2430
2430
|
};
|
|
2431
2431
|
type Started = typeof Started.Type;
|
|
2432
|
+
/** Records the provider response-body boundary independently of tool settlement. */
|
|
2433
|
+
const Streamed: Schema.Struct<{
|
|
2434
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2435
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
2436
|
+
};
|
|
2437
|
+
readonly created: Schema.Finite;
|
|
2438
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2439
|
+
readonly type: Schema.Literal<"session.step.streamed">;
|
|
2440
|
+
readonly durable: Schema.Struct<{
|
|
2441
|
+
readonly aggregateID: Schema.String;
|
|
2442
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2443
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2444
|
+
}>;
|
|
2445
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2446
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2447
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2448
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2449
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2450
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2451
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2452
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2453
|
+
}>, never, never>;
|
|
2454
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2455
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2456
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2457
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2458
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2459
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2460
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2461
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2462
|
+
}>, never, never>;
|
|
2463
|
+
}>>, never, never>;
|
|
2464
|
+
readonly data: Schema.Struct<{
|
|
2465
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2466
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2467
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2468
|
+
};
|
|
2469
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2470
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2471
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2472
|
+
};
|
|
2473
|
+
}>;
|
|
2474
|
+
}> & {
|
|
2475
|
+
type: "session.step.streamed";
|
|
2476
|
+
durability: "durable";
|
|
2477
|
+
durable: {
|
|
2478
|
+
readonly version: number;
|
|
2479
|
+
readonly aggregate: string;
|
|
2480
|
+
};
|
|
2481
|
+
data: Schema.Struct<{
|
|
2482
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2483
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2484
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2485
|
+
};
|
|
2486
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2487
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2488
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2489
|
+
};
|
|
2490
|
+
}>;
|
|
2491
|
+
};
|
|
2492
|
+
type Streamed = typeof Streamed.Type;
|
|
2432
2493
|
const Ended: Schema.Struct<{
|
|
2433
2494
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2434
2495
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -6150,6 +6211,64 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6150
6211
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6151
6212
|
};
|
|
6152
6213
|
}>;
|
|
6214
|
+
}, Schema.Struct<{
|
|
6215
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
6216
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
6217
|
+
};
|
|
6218
|
+
readonly created: Schema.Finite;
|
|
6219
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6220
|
+
readonly type: Schema.Literal<"session.step.streamed">;
|
|
6221
|
+
readonly durable: Schema.Struct<{
|
|
6222
|
+
readonly aggregateID: Schema.String;
|
|
6223
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
6224
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
6225
|
+
}>;
|
|
6226
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6227
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
6228
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
6229
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6230
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6231
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
6232
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6233
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6234
|
+
}>, never, never>;
|
|
6235
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6236
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
6237
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
6238
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6239
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6240
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
6241
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6242
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6243
|
+
}>, never, never>;
|
|
6244
|
+
}>>, never, never>;
|
|
6245
|
+
readonly data: Schema.Struct<{
|
|
6246
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6247
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6248
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6249
|
+
};
|
|
6250
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6251
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6252
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6253
|
+
};
|
|
6254
|
+
}>;
|
|
6255
|
+
}> & {
|
|
6256
|
+
type: "session.step.streamed";
|
|
6257
|
+
durability: "durable";
|
|
6258
|
+
durable: {
|
|
6259
|
+
readonly version: number;
|
|
6260
|
+
readonly aggregate: string;
|
|
6261
|
+
};
|
|
6262
|
+
data: Schema.Struct<{
|
|
6263
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6264
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6265
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6266
|
+
};
|
|
6267
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6268
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6269
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6270
|
+
};
|
|
6271
|
+
}>;
|
|
6153
6272
|
}, Schema.Struct<{
|
|
6154
6273
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
6155
6274
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -10159,6 +10278,64 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
10159
10278
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
10160
10279
|
};
|
|
10161
10280
|
}>;
|
|
10281
|
+
}) | (Schema.Struct<{
|
|
10282
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
10283
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
10284
|
+
};
|
|
10285
|
+
readonly created: Schema.Finite;
|
|
10286
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10287
|
+
readonly type: Schema.Literal<"session.step.streamed">;
|
|
10288
|
+
readonly durable: Schema.Struct<{
|
|
10289
|
+
readonly aggregateID: Schema.String;
|
|
10290
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
10291
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
10292
|
+
}>;
|
|
10293
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10294
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10295
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10296
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10297
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10298
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10299
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10300
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10301
|
+
}>, never, never>;
|
|
10302
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10303
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10304
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10305
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10306
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10307
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10308
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10309
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10310
|
+
}>, never, never>;
|
|
10311
|
+
}>>, never, never>;
|
|
10312
|
+
readonly data: Schema.Struct<{
|
|
10313
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
10314
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
10315
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
10316
|
+
};
|
|
10317
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
10318
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
10319
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
10320
|
+
};
|
|
10321
|
+
}>;
|
|
10322
|
+
}> & {
|
|
10323
|
+
type: "session.step.streamed";
|
|
10324
|
+
durability: "durable";
|
|
10325
|
+
durable: {
|
|
10326
|
+
readonly version: number;
|
|
10327
|
+
readonly aggregate: string;
|
|
10328
|
+
};
|
|
10329
|
+
data: Schema.Struct<{
|
|
10330
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
10331
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
10332
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
10333
|
+
};
|
|
10334
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
10335
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
10336
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
10337
|
+
};
|
|
10338
|
+
}>;
|
|
10162
10339
|
}) | (Schema.Struct<{
|
|
10163
10340
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
10164
10341
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -14103,6 +14280,64 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
14103
14280
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
14104
14281
|
};
|
|
14105
14282
|
}>;
|
|
14283
|
+
}) | (Schema.Struct<{
|
|
14284
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
14285
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
14286
|
+
};
|
|
14287
|
+
readonly created: Schema.Finite;
|
|
14288
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14289
|
+
readonly type: Schema.Literal<"session.step.streamed">;
|
|
14290
|
+
readonly durable: Schema.Struct<{
|
|
14291
|
+
readonly aggregateID: Schema.String;
|
|
14292
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
14293
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
14294
|
+
}>;
|
|
14295
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
14296
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
14297
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
14298
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
14299
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
14300
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
14301
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
14302
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
14303
|
+
}>, never, never>;
|
|
14304
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
14305
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
14306
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
14307
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
14308
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
14309
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
14310
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
14311
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
14312
|
+
}>, never, never>;
|
|
14313
|
+
}>>, never, never>;
|
|
14314
|
+
readonly data: Schema.Struct<{
|
|
14315
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
14316
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14317
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14318
|
+
};
|
|
14319
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
14320
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
14321
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
14322
|
+
};
|
|
14323
|
+
}>;
|
|
14324
|
+
}> & {
|
|
14325
|
+
type: "session.step.streamed";
|
|
14326
|
+
durability: "durable";
|
|
14327
|
+
durable: {
|
|
14328
|
+
readonly version: number;
|
|
14329
|
+
readonly aggregate: string;
|
|
14330
|
+
};
|
|
14331
|
+
data: Schema.Struct<{
|
|
14332
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
14333
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14334
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14335
|
+
};
|
|
14336
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
14337
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
14338
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
14339
|
+
};
|
|
14340
|
+
}>;
|
|
14106
14341
|
}) | (Schema.Struct<{
|
|
14107
14342
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
14108
14343
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -17721,6 +17956,64 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
17721
17956
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
17722
17957
|
};
|
|
17723
17958
|
}>;
|
|
17959
|
+
}) | (Schema.Struct<{
|
|
17960
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
17961
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
17962
|
+
};
|
|
17963
|
+
readonly created: Schema.Finite;
|
|
17964
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
17965
|
+
readonly type: Schema.Literal<"session.step.streamed">;
|
|
17966
|
+
readonly durable: Schema.Struct<{
|
|
17967
|
+
readonly aggregateID: Schema.String;
|
|
17968
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
17969
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
17970
|
+
}>;
|
|
17971
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
17972
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
17973
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17974
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17975
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17976
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17977
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17978
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17979
|
+
}>, never, never>;
|
|
17980
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
17981
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
17982
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17983
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17984
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17985
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17986
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17987
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17988
|
+
}>, never, never>;
|
|
17989
|
+
}>>, never, never>;
|
|
17990
|
+
readonly data: Schema.Struct<{
|
|
17991
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
17992
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
17993
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
17994
|
+
};
|
|
17995
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
17996
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
17997
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
17998
|
+
};
|
|
17999
|
+
}>;
|
|
18000
|
+
}> & {
|
|
18001
|
+
type: "session.step.streamed";
|
|
18002
|
+
durability: "durable";
|
|
18003
|
+
durable: {
|
|
18004
|
+
readonly version: number;
|
|
18005
|
+
readonly aggregate: string;
|
|
18006
|
+
};
|
|
18007
|
+
data: Schema.Struct<{
|
|
18008
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
18009
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
18010
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
18011
|
+
};
|
|
18012
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
18013
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
18014
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
18015
|
+
};
|
|
18016
|
+
}>;
|
|
17724
18017
|
}) | (Schema.Struct<{
|
|
17725
18018
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
17726
18019
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/session-event.js
CHANGED
|
@@ -263,6 +263,15 @@ export var Step;
|
|
|
263
263
|
snapshot: Snapshot.ID.pipe(optional),
|
|
264
264
|
},
|
|
265
265
|
});
|
|
266
|
+
/** Records the provider response-body boundary independently of tool settlement. */
|
|
267
|
+
Step.Streamed = Event.durable({
|
|
268
|
+
type: "session.step.streamed",
|
|
269
|
+
...options,
|
|
270
|
+
schema: {
|
|
271
|
+
...Base,
|
|
272
|
+
assistantMessageID: SessionMessage.ID,
|
|
273
|
+
},
|
|
274
|
+
});
|
|
266
275
|
Step.Ended = Event.durable({
|
|
267
276
|
type: "session.step.ended",
|
|
268
277
|
...options,
|
|
@@ -515,7 +524,7 @@ export var RevertEvent;
|
|
|
515
524
|
schema: { ...Base, to: SessionMessage.ID },
|
|
516
525
|
});
|
|
517
526
|
})(RevertEvent || (RevertEvent = {}));
|
|
518
|
-
export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, Viewed, UsageUpdated, Deleted, Forked, InboxDelivered, InboxEnqueued, InboxCancelled, InboxDeliveryChanged, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, RetryScheduled, Compaction.Started, Compaction.Delta, Compaction.Ended, Compaction.Failed, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed, MessageContentUpdated);
|
|
527
|
+
export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, Viewed, UsageUpdated, Deleted, Forked, InboxDelivered, InboxEnqueued, InboxCancelled, InboxDeliveryChanged, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Streamed, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, RetryScheduled, Compaction.Started, Compaction.Delta, Compaction.Ended, Compaction.Failed, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed, MessageContentUpdated);
|
|
519
528
|
// UsageRecorded is durable but internal: excluded from Definitions so it never reaches the public manifest.
|
|
520
529
|
export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded);
|
|
521
530
|
export const EphemeralDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "ephemeral"));
|
|
@@ -906,6 +906,8 @@ export declare const Assistant: Schema.Struct<{
|
|
|
906
906
|
}>>, never, never>;
|
|
907
907
|
readonly time: Schema.Struct<{
|
|
908
908
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
909
|
+
/** When the provider response body ended, before tool settlement. */
|
|
910
|
+
readonly streamed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
909
911
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
910
912
|
}>;
|
|
911
913
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -1535,6 +1537,8 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1535
1537
|
}>>, never, never>;
|
|
1536
1538
|
readonly time: Schema.Struct<{
|
|
1537
1539
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1540
|
+
/** When the provider response body ended, before tool settlement. */
|
|
1541
|
+
readonly streamed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1538
1542
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1539
1543
|
}>;
|
|
1540
1544
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
package/dist/session-message.js
CHANGED
|
@@ -175,6 +175,8 @@ export const Assistant = Schema.Struct({
|
|
|
175
175
|
retry: AssistantRetry.pipe(optional),
|
|
176
176
|
time: Schema.Struct({
|
|
177
177
|
created: DateTimeUtcFromMillis,
|
|
178
|
+
/** When the provider response body ended, before tool settlement. */
|
|
179
|
+
streamed: DateTimeUtcFromMillis.pipe(optional),
|
|
178
180
|
completed: DateTimeUtcFromMillis.pipe(optional),
|
|
179
181
|
}),
|
|
180
182
|
}).annotate({ identifier: "Session.Message.Assistant" });
|
|
@@ -693,6 +693,7 @@ export declare const Data: Schema.Struct<{
|
|
|
693
693
|
}>>, never, never>;
|
|
694
694
|
readonly time: Schema.Struct<{
|
|
695
695
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
696
|
+
readonly streamed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
696
697
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
697
698
|
}>;
|
|
698
699
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|