@opencode/schema 2.1.3 → 2.2.0
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/agent.d.ts +5 -0
- package/dist/config/experimental.d.ts +2 -0
- package/dist/config/experimental.js +6 -0
- package/dist/config/provider.d.ts +73 -7
- package/dist/config/provider.js +10 -15
- package/dist/event-manifest.d.ts +128 -366
- package/dist/file-diff.d.ts +2 -0
- package/dist/file-diff.js +2 -0
- package/dist/generate.d.ts +355 -0
- package/dist/generate.js +134 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +2 -0
- package/dist/model-compatibility.d.ts +15 -4
- package/dist/model-compatibility.js +15 -4
- package/dist/model.d.ts +53 -2
- package/dist/model.js +9 -7
- package/dist/permission.d.ts +0 -9
- package/dist/persistent-pty.d.ts +0 -20
- package/dist/plugin.d.ts +15 -0
- package/dist/plugin.js +11 -1
- package/dist/prompt-input.d.ts +3 -36
- package/dist/prompt-input.js +2 -6
- package/dist/prompt.d.ts +96 -0
- package/dist/prompt.js +17 -1
- package/dist/provider.d.ts +40 -0
- package/dist/provider.js +14 -3
- package/dist/session-event.d.ts +320 -852
- package/dist/session-event.js +0 -7
- package/dist/session-fork.d.ts +2 -2
- package/dist/session-id.d.ts +0 -1
- package/dist/session-id.js +3 -7
- package/dist/session-inbox.d.ts +721 -101
- package/dist/session-inbox.js +10 -1
- package/dist/session-message.d.ts +998 -31
- package/dist/session-message.js +19 -2
- package/dist/session-revert.d.ts +64 -27
- package/dist/session-status-event.d.ts +0 -8
- package/dist/session-transfer.d.ts +23 -24
- package/dist/session.d.ts +12 -22
- package/dist/usage-limits.d.ts +227 -0
- package/dist/usage-limits.js +59 -0
- package/dist/v1/legacy-event.d.ts +0 -4
- package/dist/v1/permission.d.ts +0 -10
- package/dist/v1/session.d.ts +0 -177
- package/dist/vcs.d.ts +3 -0
- package/dist/vcs.js +2 -0
- package/dist/workspace-id.js +0 -2
- package/package.json +5 -3
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export * as SessionMessage from "./session-message.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { Event } from "./event.js";
|
|
4
3
|
export declare const ID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
5
4
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6
|
-
fromEvent: (eventID:
|
|
5
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7
6
|
};
|
|
8
7
|
export type ID = typeof ID.Type;
|
|
9
8
|
/**
|
|
@@ -17,7 +16,7 @@ export interface AgentSelected extends Schema.Schema.Type<typeof AgentSelected>
|
|
|
17
16
|
export declare const AgentSelected: Schema.Struct<{
|
|
18
17
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
19
18
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
20
|
-
fromEvent: (eventID:
|
|
19
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
21
20
|
};
|
|
22
21
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
23
22
|
readonly time: Schema.Struct<{
|
|
@@ -32,7 +31,7 @@ export interface ModelSelected extends Schema.Schema.Type<typeof ModelSelected>
|
|
|
32
31
|
export declare const ModelSelected: Schema.Struct<{
|
|
33
32
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
34
33
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
35
|
-
fromEvent: (eventID:
|
|
34
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
36
35
|
};
|
|
37
36
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
38
37
|
readonly time: Schema.Struct<{
|
|
@@ -113,7 +112,7 @@ export interface LocationSwitched extends Schema.Schema.Type<typeof LocationSwit
|
|
|
113
112
|
export declare const LocationSwitched: Schema.Struct<{
|
|
114
113
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
115
114
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
116
|
-
fromEvent: (eventID:
|
|
115
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
117
116
|
};
|
|
118
117
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
119
118
|
readonly time: Schema.Struct<{
|
|
@@ -177,7 +176,7 @@ export interface User extends Schema.Schema.Type<typeof User> {
|
|
|
177
176
|
export declare const User: Schema.Struct<{
|
|
178
177
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
179
178
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
180
|
-
fromEvent: (eventID:
|
|
179
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
181
180
|
};
|
|
182
181
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
183
182
|
readonly time: Schema.Struct<{
|
|
@@ -313,12 +312,200 @@ export declare const User: Schema.Struct<{
|
|
|
313
312
|
}>>>, never, never>;
|
|
314
313
|
readonly type: Schema.tag<"user">;
|
|
315
314
|
}>;
|
|
315
|
+
/** A {@link User} whose files may stay on the server, for clients that opt into `experimental-media-uri`. */
|
|
316
|
+
export interface MediaUser extends Schema.Schema.Type<typeof MediaUser> {
|
|
317
|
+
}
|
|
318
|
+
export declare const MediaUser: Schema.Struct<{
|
|
319
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
320
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
321
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
322
|
+
};
|
|
323
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
324
|
+
readonly time: Schema.Struct<{
|
|
325
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
326
|
+
}>;
|
|
327
|
+
readonly text: Schema.String;
|
|
328
|
+
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
329
|
+
readonly name: Schema.String;
|
|
330
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
331
|
+
readonly start: Schema.Finite;
|
|
332
|
+
readonly end: Schema.Finite;
|
|
333
|
+
readonly text: Schema.String;
|
|
334
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
335
|
+
readonly start: Schema.Finite;
|
|
336
|
+
readonly end: Schema.Finite;
|
|
337
|
+
readonly text: Schema.String;
|
|
338
|
+
}>>, never, never>;
|
|
339
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
340
|
+
readonly name: Schema.String;
|
|
341
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
342
|
+
readonly start: Schema.Finite;
|
|
343
|
+
readonly end: Schema.Finite;
|
|
344
|
+
readonly text: Schema.String;
|
|
345
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
346
|
+
readonly start: Schema.Finite;
|
|
347
|
+
readonly end: Schema.Finite;
|
|
348
|
+
readonly text: Schema.String;
|
|
349
|
+
}>>, never, never>;
|
|
350
|
+
}>>>, never, never>;
|
|
351
|
+
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
352
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
353
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
354
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
355
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
356
|
+
readonly start: Schema.Finite;
|
|
357
|
+
readonly end: Schema.Finite;
|
|
358
|
+
readonly text: Schema.String;
|
|
359
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
360
|
+
readonly start: Schema.Finite;
|
|
361
|
+
readonly end: Schema.Finite;
|
|
362
|
+
readonly text: Schema.String;
|
|
363
|
+
}>>, never, never>;
|
|
364
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
365
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
366
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
367
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
368
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
369
|
+
readonly start: Schema.Finite;
|
|
370
|
+
readonly end: Schema.Finite;
|
|
371
|
+
readonly text: Schema.String;
|
|
372
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
373
|
+
readonly start: Schema.Finite;
|
|
374
|
+
readonly end: Schema.Finite;
|
|
375
|
+
readonly text: Schema.String;
|
|
376
|
+
}>>, never, never>;
|
|
377
|
+
}>>>, never, never>;
|
|
378
|
+
readonly type: Schema.tag<"user">;
|
|
379
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
380
|
+
readonly data: Schema.String;
|
|
381
|
+
readonly mime: Schema.String;
|
|
382
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
383
|
+
readonly type: Schema.Literal<"inline">;
|
|
384
|
+
}>, Schema.Struct<{
|
|
385
|
+
readonly type: Schema.Literal<"uri">;
|
|
386
|
+
readonly uri: Schema.String;
|
|
387
|
+
}>]>;
|
|
388
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
389
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
390
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
391
|
+
readonly start: Schema.Finite;
|
|
392
|
+
readonly end: Schema.Finite;
|
|
393
|
+
readonly text: Schema.String;
|
|
394
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
395
|
+
readonly start: Schema.Finite;
|
|
396
|
+
readonly end: Schema.Finite;
|
|
397
|
+
readonly text: Schema.String;
|
|
398
|
+
}>>, never, never>;
|
|
399
|
+
}> & {
|
|
400
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
401
|
+
readonly data: string;
|
|
402
|
+
readonly mime: string;
|
|
403
|
+
readonly source: {
|
|
404
|
+
readonly type: "inline";
|
|
405
|
+
} | {
|
|
406
|
+
readonly type: "uri";
|
|
407
|
+
readonly uri: string;
|
|
408
|
+
};
|
|
409
|
+
readonly name?: string | undefined;
|
|
410
|
+
readonly description?: string | undefined;
|
|
411
|
+
readonly mention?: {
|
|
412
|
+
readonly start: number;
|
|
413
|
+
readonly end: number;
|
|
414
|
+
readonly text: string;
|
|
415
|
+
} | undefined;
|
|
416
|
+
};
|
|
417
|
+
}, Schema.Struct<{
|
|
418
|
+
readonly mime: Schema.String;
|
|
419
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
420
|
+
readonly type: Schema.Literal<"inline">;
|
|
421
|
+
}>, Schema.Struct<{
|
|
422
|
+
readonly type: Schema.Literal<"uri">;
|
|
423
|
+
readonly uri: Schema.String;
|
|
424
|
+
}>]>;
|
|
425
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
426
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
427
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
428
|
+
readonly start: Schema.Finite;
|
|
429
|
+
readonly end: Schema.Finite;
|
|
430
|
+
readonly text: Schema.String;
|
|
431
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
432
|
+
readonly start: Schema.Finite;
|
|
433
|
+
readonly end: Schema.Finite;
|
|
434
|
+
readonly text: Schema.String;
|
|
435
|
+
}>>, never, never>;
|
|
436
|
+
readonly uri: Schema.String;
|
|
437
|
+
readonly bytes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
438
|
+
readonly width: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
439
|
+
readonly height: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
440
|
+
}>]>>>>, Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
441
|
+
readonly data: Schema.String;
|
|
442
|
+
readonly mime: Schema.String;
|
|
443
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
444
|
+
readonly type: Schema.Literal<"inline">;
|
|
445
|
+
}>, Schema.Struct<{
|
|
446
|
+
readonly type: Schema.Literal<"uri">;
|
|
447
|
+
readonly uri: Schema.String;
|
|
448
|
+
}>]>;
|
|
449
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
450
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
451
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
452
|
+
readonly start: Schema.Finite;
|
|
453
|
+
readonly end: Schema.Finite;
|
|
454
|
+
readonly text: Schema.String;
|
|
455
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
456
|
+
readonly start: Schema.Finite;
|
|
457
|
+
readonly end: Schema.Finite;
|
|
458
|
+
readonly text: Schema.String;
|
|
459
|
+
}>>, never, never>;
|
|
460
|
+
}> & {
|
|
461
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
462
|
+
readonly data: string;
|
|
463
|
+
readonly mime: string;
|
|
464
|
+
readonly source: {
|
|
465
|
+
readonly type: "inline";
|
|
466
|
+
} | {
|
|
467
|
+
readonly type: "uri";
|
|
468
|
+
readonly uri: string;
|
|
469
|
+
};
|
|
470
|
+
readonly name?: string | undefined;
|
|
471
|
+
readonly description?: string | undefined;
|
|
472
|
+
readonly mention?: {
|
|
473
|
+
readonly start: number;
|
|
474
|
+
readonly end: number;
|
|
475
|
+
readonly text: string;
|
|
476
|
+
} | undefined;
|
|
477
|
+
};
|
|
478
|
+
}, Schema.Struct<{
|
|
479
|
+
readonly mime: Schema.String;
|
|
480
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
481
|
+
readonly type: Schema.Literal<"inline">;
|
|
482
|
+
}>, Schema.Struct<{
|
|
483
|
+
readonly type: Schema.Literal<"uri">;
|
|
484
|
+
readonly uri: Schema.String;
|
|
485
|
+
}>]>;
|
|
486
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
487
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
488
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
489
|
+
readonly start: Schema.Finite;
|
|
490
|
+
readonly end: Schema.Finite;
|
|
491
|
+
readonly text: Schema.String;
|
|
492
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
493
|
+
readonly start: Schema.Finite;
|
|
494
|
+
readonly end: Schema.Finite;
|
|
495
|
+
readonly text: Schema.String;
|
|
496
|
+
}>>, never, never>;
|
|
497
|
+
readonly uri: Schema.String;
|
|
498
|
+
readonly bytes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
499
|
+
readonly width: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
500
|
+
readonly height: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
501
|
+
}>]>>>, never, never>;
|
|
502
|
+
}>;
|
|
316
503
|
export interface Synthetic extends Schema.Schema.Type<typeof Synthetic> {
|
|
317
504
|
}
|
|
318
505
|
export declare const Synthetic: Schema.Struct<{
|
|
319
506
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
320
507
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
321
|
-
fromEvent: (eventID:
|
|
508
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
322
509
|
};
|
|
323
510
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
324
511
|
readonly time: Schema.Struct<{
|
|
@@ -333,7 +520,7 @@ export interface System extends Schema.Schema.Type<typeof System> {
|
|
|
333
520
|
export declare const System: Schema.Struct<{
|
|
334
521
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
335
522
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
336
|
-
fromEvent: (eventID:
|
|
523
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
337
524
|
};
|
|
338
525
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
339
526
|
readonly time: Schema.Struct<{
|
|
@@ -350,7 +537,7 @@ export interface Skill extends Schema.Schema.Type<typeof Skill> {
|
|
|
350
537
|
export declare const Skill: Schema.Struct<{
|
|
351
538
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
352
539
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
353
|
-
fromEvent: (eventID:
|
|
540
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
354
541
|
};
|
|
355
542
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
356
543
|
readonly time: Schema.Struct<{
|
|
@@ -366,7 +553,7 @@ export interface Shell extends Schema.Schema.Type<typeof Shell> {
|
|
|
366
553
|
export declare const Shell: Schema.Struct<{
|
|
367
554
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
368
555
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
369
|
-
fromEvent: (eventID:
|
|
556
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
370
557
|
};
|
|
371
558
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
372
559
|
readonly type: Schema.tag<"shell">;
|
|
@@ -783,7 +970,7 @@ export interface Assistant extends Schema.Schema.Type<typeof Assistant> {
|
|
|
783
970
|
export declare const Assistant: Schema.Struct<{
|
|
784
971
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
785
972
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
786
|
-
fromEvent: (eventID:
|
|
973
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
787
974
|
};
|
|
788
975
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
789
976
|
readonly type: Schema.tag<"assistant">;
|
|
@@ -988,7 +1175,7 @@ export interface CompactionRunning extends Schema.Schema.Type<typeof CompactionR
|
|
|
988
1175
|
export declare const CompactionRunning: Schema.Struct<{
|
|
989
1176
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
990
1177
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
991
|
-
fromEvent: (eventID:
|
|
1178
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
992
1179
|
};
|
|
993
1180
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
994
1181
|
readonly time: Schema.Struct<{
|
|
@@ -1004,7 +1191,7 @@ export interface CompactionCompleted extends Schema.Schema.Type<typeof Compactio
|
|
|
1004
1191
|
export declare const CompactionCompleted: Schema.Struct<{
|
|
1005
1192
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1006
1193
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1007
|
-
fromEvent: (eventID:
|
|
1194
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1008
1195
|
};
|
|
1009
1196
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1010
1197
|
readonly time: Schema.Struct<{
|
|
@@ -1089,7 +1276,7 @@ export interface CompactionFailed extends Schema.Schema.Type<typeof CompactionFa
|
|
|
1089
1276
|
export declare const CompactionFailed: Schema.Struct<{
|
|
1090
1277
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1091
1278
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1092
|
-
fromEvent: (eventID:
|
|
1279
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1093
1280
|
};
|
|
1094
1281
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1095
1282
|
readonly time: Schema.Struct<{
|
|
@@ -1135,7 +1322,7 @@ export declare const CompactionFailed: Schema.Struct<{
|
|
|
1135
1322
|
export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
|
|
1136
1323
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1137
1324
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1138
|
-
fromEvent: (eventID:
|
|
1325
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1139
1326
|
};
|
|
1140
1327
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1141
1328
|
readonly time: Schema.Struct<{
|
|
@@ -1148,7 +1335,7 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
|
|
|
1148
1335
|
}>, Schema.Struct<{
|
|
1149
1336
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1150
1337
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1151
|
-
fromEvent: (eventID:
|
|
1338
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1152
1339
|
};
|
|
1153
1340
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1154
1341
|
readonly time: Schema.Struct<{
|
|
@@ -1230,7 +1417,7 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
|
|
|
1230
1417
|
}>, Schema.Struct<{
|
|
1231
1418
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1232
1419
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1233
|
-
fromEvent: (eventID:
|
|
1420
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1234
1421
|
};
|
|
1235
1422
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1236
1423
|
readonly time: Schema.Struct<{
|
|
@@ -1284,7 +1471,7 @@ export interface Idle extends Schema.Schema.Type<typeof Idle> {
|
|
|
1284
1471
|
export declare const Idle: Schema.Struct<{
|
|
1285
1472
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1286
1473
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1287
|
-
fromEvent: (eventID:
|
|
1474
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1288
1475
|
};
|
|
1289
1476
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1290
1477
|
readonly time: Schema.Struct<{
|
|
@@ -1317,7 +1504,7 @@ export declare const Idle: Schema.Struct<{
|
|
|
1317
1504
|
export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
1318
1505
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1319
1506
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1320
|
-
fromEvent: (eventID:
|
|
1507
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1321
1508
|
};
|
|
1322
1509
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1323
1510
|
readonly time: Schema.Struct<{
|
|
@@ -1329,7 +1516,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1329
1516
|
}>, Schema.Struct<{
|
|
1330
1517
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1331
1518
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1332
|
-
fromEvent: (eventID:
|
|
1519
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1333
1520
|
};
|
|
1334
1521
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1335
1522
|
readonly time: Schema.Struct<{
|
|
@@ -1407,7 +1594,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1407
1594
|
}>, Schema.Struct<{
|
|
1408
1595
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1409
1596
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1410
|
-
fromEvent: (eventID:
|
|
1597
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1411
1598
|
};
|
|
1412
1599
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1413
1600
|
readonly time: Schema.Struct<{
|
|
@@ -1468,7 +1655,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1468
1655
|
}>, Schema.Struct<{
|
|
1469
1656
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1470
1657
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1471
|
-
fromEvent: (eventID:
|
|
1658
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1472
1659
|
};
|
|
1473
1660
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1474
1661
|
readonly time: Schema.Struct<{
|
|
@@ -1606,7 +1793,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1606
1793
|
}>, Schema.Struct<{
|
|
1607
1794
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1608
1795
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1609
|
-
fromEvent: (eventID:
|
|
1796
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1610
1797
|
};
|
|
1611
1798
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1612
1799
|
readonly time: Schema.Struct<{
|
|
@@ -1618,7 +1805,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1618
1805
|
}>, Schema.Struct<{
|
|
1619
1806
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1620
1807
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1621
|
-
fromEvent: (eventID:
|
|
1808
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1622
1809
|
};
|
|
1623
1810
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1624
1811
|
readonly time: Schema.Struct<{
|
|
@@ -1632,7 +1819,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1632
1819
|
}>, Schema.Struct<{
|
|
1633
1820
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1634
1821
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1635
|
-
fromEvent: (eventID:
|
|
1822
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1636
1823
|
};
|
|
1637
1824
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1638
1825
|
readonly time: Schema.Struct<{
|
|
@@ -1645,7 +1832,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1645
1832
|
}>, Schema.Struct<{
|
|
1646
1833
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1647
1834
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1648
|
-
fromEvent: (eventID:
|
|
1835
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1649
1836
|
};
|
|
1650
1837
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1651
1838
|
readonly type: Schema.tag<"shell">;
|
|
@@ -1674,7 +1861,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1674
1861
|
}>, Schema.Struct<{
|
|
1675
1862
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1676
1863
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1677
|
-
fromEvent: (eventID:
|
|
1864
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1678
1865
|
};
|
|
1679
1866
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1680
1867
|
readonly type: Schema.tag<"assistant">;
|
|
@@ -1876,7 +2063,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1876
2063
|
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1877
2064
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1878
2065
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1879
|
-
fromEvent: (eventID:
|
|
2066
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1880
2067
|
};
|
|
1881
2068
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1882
2069
|
readonly time: Schema.Struct<{
|
|
@@ -1889,7 +2076,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1889
2076
|
}>, Schema.Struct<{
|
|
1890
2077
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1891
2078
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1892
|
-
fromEvent: (eventID:
|
|
2079
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1893
2080
|
};
|
|
1894
2081
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1895
2082
|
readonly time: Schema.Struct<{
|
|
@@ -1971,7 +2158,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1971
2158
|
}>, Schema.Struct<{
|
|
1972
2159
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1973
2160
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1974
|
-
fromEvent: (eventID:
|
|
2161
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1975
2162
|
};
|
|
1976
2163
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1977
2164
|
readonly time: Schema.Struct<{
|
|
@@ -2016,7 +2203,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
2016
2203
|
}>]>, Schema.Struct<{
|
|
2017
2204
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2018
2205
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2019
|
-
fromEvent: (eventID:
|
|
2206
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2020
2207
|
};
|
|
2021
2208
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2022
2209
|
readonly time: Schema.Struct<{
|
|
@@ -2048,3 +2235,783 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
2048
2235
|
}>]>;
|
|
2049
2236
|
export type Info = AgentSelected | ModelSelected | LocationSwitched | User | Synthetic | System | Skill | Shell | Assistant | Compaction | Idle;
|
|
2050
2237
|
export type Type = Info["type"];
|
|
2238
|
+
/** {@link Info} with {@link MediaUser} for clients that opt into `experimental-media-uri`. */
|
|
2239
|
+
export declare const MediaInfo: Schema.Union<readonly [Schema.Struct<{
|
|
2240
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2241
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2242
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2243
|
+
};
|
|
2244
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2245
|
+
readonly time: Schema.Struct<{
|
|
2246
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2247
|
+
}>;
|
|
2248
|
+
readonly type: Schema.tag<"agent-switched">;
|
|
2249
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
2250
|
+
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
2251
|
+
}>, Schema.Struct<{
|
|
2252
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2253
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2254
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2255
|
+
};
|
|
2256
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2257
|
+
readonly time: Schema.Struct<{
|
|
2258
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2259
|
+
}>;
|
|
2260
|
+
readonly type: Schema.tag<"model-switched">;
|
|
2261
|
+
readonly model: Schema.Struct<{
|
|
2262
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2263
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
2264
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2265
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2266
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2267
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2268
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2269
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2270
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2271
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2272
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2273
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2274
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2275
|
+
};
|
|
2276
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
2277
|
+
}> & {
|
|
2278
|
+
parse: (input: string) => {
|
|
2279
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2280
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2281
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2282
|
+
};
|
|
2283
|
+
};
|
|
2284
|
+
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2285
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2286
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
2287
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2288
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2289
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2290
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2291
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2292
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2293
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2294
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2295
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2296
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2297
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2298
|
+
};
|
|
2299
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
2300
|
+
}> & {
|
|
2301
|
+
parse: (input: string) => {
|
|
2302
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2303
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2304
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2305
|
+
};
|
|
2306
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
2307
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2308
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
2309
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2310
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2311
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2312
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2313
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2314
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2315
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2316
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2317
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2318
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2319
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2320
|
+
};
|
|
2321
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
2322
|
+
}> & {
|
|
2323
|
+
parse: (input: string) => {
|
|
2324
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2325
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2326
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2327
|
+
};
|
|
2328
|
+
}>, never, never>;
|
|
2329
|
+
}>, Schema.Struct<{
|
|
2330
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2331
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2332
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2333
|
+
};
|
|
2334
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2335
|
+
readonly time: Schema.Struct<{
|
|
2336
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2337
|
+
}>;
|
|
2338
|
+
readonly type: Schema.tag<"location-switched">;
|
|
2339
|
+
readonly location: Schema.Struct<{
|
|
2340
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2341
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2342
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2343
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2344
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2345
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2346
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2347
|
+
}>, never, never>;
|
|
2348
|
+
}>;
|
|
2349
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2350
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2351
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2352
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2353
|
+
}>, never, never>;
|
|
2354
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2355
|
+
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2356
|
+
readonly location: Schema.Struct<{
|
|
2357
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2358
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2359
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2360
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2361
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2362
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2363
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2364
|
+
}>, never, never>;
|
|
2365
|
+
}>;
|
|
2366
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2367
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2368
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2369
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2370
|
+
}>, never, never>;
|
|
2371
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2372
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2373
|
+
readonly location: Schema.Struct<{
|
|
2374
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2375
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2376
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2377
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2378
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2379
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2380
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2381
|
+
}>, never, never>;
|
|
2382
|
+
}>;
|
|
2383
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2384
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2385
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2386
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2387
|
+
}>, never, never>;
|
|
2388
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2389
|
+
}>>, never, never>;
|
|
2390
|
+
}>, Schema.Struct<{
|
|
2391
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2392
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2393
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2394
|
+
};
|
|
2395
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2396
|
+
readonly time: Schema.Struct<{
|
|
2397
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2398
|
+
}>;
|
|
2399
|
+
readonly text: Schema.String;
|
|
2400
|
+
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2401
|
+
readonly name: Schema.String;
|
|
2402
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2403
|
+
readonly start: Schema.Finite;
|
|
2404
|
+
readonly end: Schema.Finite;
|
|
2405
|
+
readonly text: Schema.String;
|
|
2406
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2407
|
+
readonly start: Schema.Finite;
|
|
2408
|
+
readonly end: Schema.Finite;
|
|
2409
|
+
readonly text: Schema.String;
|
|
2410
|
+
}>>, never, never>;
|
|
2411
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2412
|
+
readonly name: Schema.String;
|
|
2413
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2414
|
+
readonly start: Schema.Finite;
|
|
2415
|
+
readonly end: Schema.Finite;
|
|
2416
|
+
readonly text: Schema.String;
|
|
2417
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2418
|
+
readonly start: Schema.Finite;
|
|
2419
|
+
readonly end: Schema.Finite;
|
|
2420
|
+
readonly text: Schema.String;
|
|
2421
|
+
}>>, never, never>;
|
|
2422
|
+
}>>>, never, never>;
|
|
2423
|
+
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2424
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
2425
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
2426
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2427
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2428
|
+
readonly start: Schema.Finite;
|
|
2429
|
+
readonly end: Schema.Finite;
|
|
2430
|
+
readonly text: Schema.String;
|
|
2431
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2432
|
+
readonly start: Schema.Finite;
|
|
2433
|
+
readonly end: Schema.Finite;
|
|
2434
|
+
readonly text: Schema.String;
|
|
2435
|
+
}>>, never, never>;
|
|
2436
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2437
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
2438
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
2439
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2440
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2441
|
+
readonly start: Schema.Finite;
|
|
2442
|
+
readonly end: Schema.Finite;
|
|
2443
|
+
readonly text: Schema.String;
|
|
2444
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2445
|
+
readonly start: Schema.Finite;
|
|
2446
|
+
readonly end: Schema.Finite;
|
|
2447
|
+
readonly text: Schema.String;
|
|
2448
|
+
}>>, never, never>;
|
|
2449
|
+
}>>>, never, never>;
|
|
2450
|
+
readonly type: Schema.tag<"user">;
|
|
2451
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2452
|
+
readonly data: Schema.String;
|
|
2453
|
+
readonly mime: Schema.String;
|
|
2454
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
2455
|
+
readonly type: Schema.Literal<"inline">;
|
|
2456
|
+
}>, Schema.Struct<{
|
|
2457
|
+
readonly type: Schema.Literal<"uri">;
|
|
2458
|
+
readonly uri: Schema.String;
|
|
2459
|
+
}>]>;
|
|
2460
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2461
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2462
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2463
|
+
readonly start: Schema.Finite;
|
|
2464
|
+
readonly end: Schema.Finite;
|
|
2465
|
+
readonly text: Schema.String;
|
|
2466
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2467
|
+
readonly start: Schema.Finite;
|
|
2468
|
+
readonly end: Schema.Finite;
|
|
2469
|
+
readonly text: Schema.String;
|
|
2470
|
+
}>>, never, never>;
|
|
2471
|
+
}> & {
|
|
2472
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
2473
|
+
readonly data: string;
|
|
2474
|
+
readonly mime: string;
|
|
2475
|
+
readonly source: {
|
|
2476
|
+
readonly type: "inline";
|
|
2477
|
+
} | {
|
|
2478
|
+
readonly type: "uri";
|
|
2479
|
+
readonly uri: string;
|
|
2480
|
+
};
|
|
2481
|
+
readonly name?: string | undefined;
|
|
2482
|
+
readonly description?: string | undefined;
|
|
2483
|
+
readonly mention?: {
|
|
2484
|
+
readonly start: number;
|
|
2485
|
+
readonly end: number;
|
|
2486
|
+
readonly text: string;
|
|
2487
|
+
} | undefined;
|
|
2488
|
+
};
|
|
2489
|
+
}, Schema.Struct<{
|
|
2490
|
+
readonly mime: Schema.String;
|
|
2491
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
2492
|
+
readonly type: Schema.Literal<"inline">;
|
|
2493
|
+
}>, Schema.Struct<{
|
|
2494
|
+
readonly type: Schema.Literal<"uri">;
|
|
2495
|
+
readonly uri: Schema.String;
|
|
2496
|
+
}>]>;
|
|
2497
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2498
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2499
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2500
|
+
readonly start: Schema.Finite;
|
|
2501
|
+
readonly end: Schema.Finite;
|
|
2502
|
+
readonly text: Schema.String;
|
|
2503
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2504
|
+
readonly start: Schema.Finite;
|
|
2505
|
+
readonly end: Schema.Finite;
|
|
2506
|
+
readonly text: Schema.String;
|
|
2507
|
+
}>>, never, never>;
|
|
2508
|
+
readonly uri: Schema.String;
|
|
2509
|
+
readonly bytes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2510
|
+
readonly width: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2511
|
+
readonly height: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2512
|
+
}>]>>>>, Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2513
|
+
readonly data: Schema.String;
|
|
2514
|
+
readonly mime: Schema.String;
|
|
2515
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
2516
|
+
readonly type: Schema.Literal<"inline">;
|
|
2517
|
+
}>, Schema.Struct<{
|
|
2518
|
+
readonly type: Schema.Literal<"uri">;
|
|
2519
|
+
readonly uri: Schema.String;
|
|
2520
|
+
}>]>;
|
|
2521
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2522
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2523
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2524
|
+
readonly start: Schema.Finite;
|
|
2525
|
+
readonly end: Schema.Finite;
|
|
2526
|
+
readonly text: Schema.String;
|
|
2527
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2528
|
+
readonly start: Schema.Finite;
|
|
2529
|
+
readonly end: Schema.Finite;
|
|
2530
|
+
readonly text: Schema.String;
|
|
2531
|
+
}>>, never, never>;
|
|
2532
|
+
}> & {
|
|
2533
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
2534
|
+
readonly data: string;
|
|
2535
|
+
readonly mime: string;
|
|
2536
|
+
readonly source: {
|
|
2537
|
+
readonly type: "inline";
|
|
2538
|
+
} | {
|
|
2539
|
+
readonly type: "uri";
|
|
2540
|
+
readonly uri: string;
|
|
2541
|
+
};
|
|
2542
|
+
readonly name?: string | undefined;
|
|
2543
|
+
readonly description?: string | undefined;
|
|
2544
|
+
readonly mention?: {
|
|
2545
|
+
readonly start: number;
|
|
2546
|
+
readonly end: number;
|
|
2547
|
+
readonly text: string;
|
|
2548
|
+
} | undefined;
|
|
2549
|
+
};
|
|
2550
|
+
}, Schema.Struct<{
|
|
2551
|
+
readonly mime: Schema.String;
|
|
2552
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
2553
|
+
readonly type: Schema.Literal<"inline">;
|
|
2554
|
+
}>, Schema.Struct<{
|
|
2555
|
+
readonly type: Schema.Literal<"uri">;
|
|
2556
|
+
readonly uri: Schema.String;
|
|
2557
|
+
}>]>;
|
|
2558
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2559
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2560
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2561
|
+
readonly start: Schema.Finite;
|
|
2562
|
+
readonly end: Schema.Finite;
|
|
2563
|
+
readonly text: Schema.String;
|
|
2564
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2565
|
+
readonly start: Schema.Finite;
|
|
2566
|
+
readonly end: Schema.Finite;
|
|
2567
|
+
readonly text: Schema.String;
|
|
2568
|
+
}>>, never, never>;
|
|
2569
|
+
readonly uri: Schema.String;
|
|
2570
|
+
readonly bytes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2571
|
+
readonly width: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2572
|
+
readonly height: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2573
|
+
}>]>>>, never, never>;
|
|
2574
|
+
}>, Schema.Struct<{
|
|
2575
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2576
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2577
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2578
|
+
};
|
|
2579
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2580
|
+
readonly time: Schema.Struct<{
|
|
2581
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2582
|
+
}>;
|
|
2583
|
+
readonly text: Schema.String;
|
|
2584
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2585
|
+
readonly type: Schema.tag<"synthetic">;
|
|
2586
|
+
}>, Schema.Struct<{
|
|
2587
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2588
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2589
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2590
|
+
};
|
|
2591
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2592
|
+
readonly time: Schema.Struct<{
|
|
2593
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2594
|
+
}>;
|
|
2595
|
+
readonly type: Schema.tag<"system">;
|
|
2596
|
+
/** The model-facing update text, frozen at emit time. */
|
|
2597
|
+
readonly text: Schema.String;
|
|
2598
|
+
/** A short human-readable summary for transcript display. */
|
|
2599
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2600
|
+
}>, Schema.Struct<{
|
|
2601
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2602
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2603
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2604
|
+
};
|
|
2605
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2606
|
+
readonly time: Schema.Struct<{
|
|
2607
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2608
|
+
}>;
|
|
2609
|
+
readonly type: Schema.tag<"skill">;
|
|
2610
|
+
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
2611
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
2612
|
+
readonly text: Schema.String;
|
|
2613
|
+
}>, Schema.Struct<{
|
|
2614
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2615
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2616
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2617
|
+
};
|
|
2618
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2619
|
+
readonly type: Schema.tag<"shell">;
|
|
2620
|
+
readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
2621
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
2622
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
2623
|
+
};
|
|
2624
|
+
readonly command: Schema.String;
|
|
2625
|
+
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
2626
|
+
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
2627
|
+
readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2628
|
+
readonly output: Schema.String;
|
|
2629
|
+
readonly cursor: Schema.Int;
|
|
2630
|
+
readonly size: Schema.Int;
|
|
2631
|
+
readonly truncated: Schema.Boolean;
|
|
2632
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2633
|
+
readonly output: Schema.String;
|
|
2634
|
+
readonly cursor: Schema.Int;
|
|
2635
|
+
readonly size: Schema.Int;
|
|
2636
|
+
readonly truncated: Schema.Boolean;
|
|
2637
|
+
}>>, never, never>;
|
|
2638
|
+
readonly time: Schema.Struct<{
|
|
2639
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2640
|
+
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>;
|
|
2641
|
+
}>;
|
|
2642
|
+
}>, Schema.Struct<{
|
|
2643
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2644
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2645
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2646
|
+
};
|
|
2647
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2648
|
+
readonly type: Schema.tag<"assistant">;
|
|
2649
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
2650
|
+
readonly model: Schema.Struct<{
|
|
2651
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2652
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
2653
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2654
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2655
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2656
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2657
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2658
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2659
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2660
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2661
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2662
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2663
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2664
|
+
};
|
|
2665
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
2666
|
+
}> & {
|
|
2667
|
+
parse: (input: string) => {
|
|
2668
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2669
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2670
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2671
|
+
};
|
|
2672
|
+
};
|
|
2673
|
+
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
2674
|
+
readonly type: Schema.tag<"text">;
|
|
2675
|
+
readonly text: Schema.String;
|
|
2676
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2677
|
+
}>, Schema.Struct<{
|
|
2678
|
+
readonly type: Schema.tag<"reasoning">;
|
|
2679
|
+
readonly text: Schema.String;
|
|
2680
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2681
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2682
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2683
|
+
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>;
|
|
2684
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2685
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2686
|
+
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>;
|
|
2687
|
+
}>>, never, never>;
|
|
2688
|
+
}>, Schema.Struct<{
|
|
2689
|
+
readonly type: Schema.tag<"tool">;
|
|
2690
|
+
readonly id: Schema.String;
|
|
2691
|
+
readonly name: Schema.String;
|
|
2692
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
2693
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2694
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
2695
|
+
readonly status: Schema.tag<"streaming">;
|
|
2696
|
+
readonly input: Schema.String;
|
|
2697
|
+
}>, Schema.Struct<{
|
|
2698
|
+
readonly status: Schema.tag<"running">;
|
|
2699
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2700
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2701
|
+
}>, Schema.Struct<{
|
|
2702
|
+
readonly status: Schema.tag<"completed">;
|
|
2703
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2704
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2705
|
+
readonly type: Schema.Literal<"text">;
|
|
2706
|
+
readonly text: Schema.String;
|
|
2707
|
+
}>, Schema.Struct<{
|
|
2708
|
+
readonly type: Schema.Literal<"file">;
|
|
2709
|
+
readonly uri: Schema.String;
|
|
2710
|
+
readonly mime: Schema.String;
|
|
2711
|
+
readonly name: Schema.optional<Schema.String>;
|
|
2712
|
+
}>]>>;
|
|
2713
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2714
|
+
}>, Schema.Struct<{
|
|
2715
|
+
readonly status: Schema.tag<"error">;
|
|
2716
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2717
|
+
readonly error: Schema.Struct<{
|
|
2718
|
+
readonly type: Schema.String;
|
|
2719
|
+
readonly message: Schema.String;
|
|
2720
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2721
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2722
|
+
readonly body: Schema.String;
|
|
2723
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2724
|
+
readonly body: Schema.String;
|
|
2725
|
+
}>>, never, never>;
|
|
2726
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2727
|
+
}>;
|
|
2728
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2729
|
+
readonly type: Schema.Literal<"text">;
|
|
2730
|
+
readonly text: Schema.String;
|
|
2731
|
+
}>, Schema.Struct<{
|
|
2732
|
+
readonly type: Schema.Literal<"file">;
|
|
2733
|
+
readonly uri: Schema.String;
|
|
2734
|
+
readonly mime: Schema.String;
|
|
2735
|
+
readonly name: Schema.optional<Schema.String>;
|
|
2736
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2737
|
+
readonly type: Schema.Literal<"text">;
|
|
2738
|
+
readonly text: Schema.String;
|
|
2739
|
+
}>, Schema.Struct<{
|
|
2740
|
+
readonly type: Schema.Literal<"file">;
|
|
2741
|
+
readonly uri: Schema.String;
|
|
2742
|
+
readonly mime: Schema.String;
|
|
2743
|
+
readonly name: Schema.optional<Schema.String>;
|
|
2744
|
+
}>]>>>, never, never>;
|
|
2745
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2746
|
+
}>]>;
|
|
2747
|
+
readonly time: Schema.Struct<{
|
|
2748
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2749
|
+
readonly ran: 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>;
|
|
2750
|
+
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>;
|
|
2751
|
+
}>;
|
|
2752
|
+
}>]>>;
|
|
2753
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2754
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
2755
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
2756
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
2757
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2758
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
2759
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
2760
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
2761
|
+
}>>, never, never>;
|
|
2762
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
2763
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2764
|
+
/** Step-level native data, such as a provider's reason for blocking a response. */
|
|
2765
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2766
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2767
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2768
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2769
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2770
|
+
}>, never, never>;
|
|
2771
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2772
|
+
readonly input: Schema.Finite;
|
|
2773
|
+
readonly output: Schema.Finite;
|
|
2774
|
+
readonly reasoning: Schema.Finite;
|
|
2775
|
+
readonly cache: Schema.Struct<{
|
|
2776
|
+
readonly read: Schema.Finite;
|
|
2777
|
+
readonly write: Schema.Finite;
|
|
2778
|
+
}>;
|
|
2779
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2780
|
+
readonly input: Schema.Finite;
|
|
2781
|
+
readonly output: Schema.Finite;
|
|
2782
|
+
readonly reasoning: Schema.Finite;
|
|
2783
|
+
readonly cache: Schema.Struct<{
|
|
2784
|
+
readonly read: Schema.Finite;
|
|
2785
|
+
readonly write: Schema.Finite;
|
|
2786
|
+
}>;
|
|
2787
|
+
}>>, never, never>;
|
|
2788
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2789
|
+
readonly type: Schema.String;
|
|
2790
|
+
readonly message: Schema.String;
|
|
2791
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2792
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2793
|
+
readonly body: Schema.String;
|
|
2794
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2795
|
+
readonly body: Schema.String;
|
|
2796
|
+
}>>, never, never>;
|
|
2797
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2798
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2799
|
+
readonly type: Schema.String;
|
|
2800
|
+
readonly message: Schema.String;
|
|
2801
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2802
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2803
|
+
readonly body: Schema.String;
|
|
2804
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2805
|
+
readonly body: Schema.String;
|
|
2806
|
+
}>>, never, never>;
|
|
2807
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2808
|
+
}>>, never, never>;
|
|
2809
|
+
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2810
|
+
readonly attempt: Schema.Int;
|
|
2811
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2812
|
+
readonly error: Schema.Struct<{
|
|
2813
|
+
readonly type: Schema.String;
|
|
2814
|
+
readonly message: Schema.String;
|
|
2815
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2816
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2817
|
+
readonly body: Schema.String;
|
|
2818
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2819
|
+
readonly body: Schema.String;
|
|
2820
|
+
}>>, never, never>;
|
|
2821
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2822
|
+
}>;
|
|
2823
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2824
|
+
readonly attempt: Schema.Int;
|
|
2825
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2826
|
+
readonly error: Schema.Struct<{
|
|
2827
|
+
readonly type: Schema.String;
|
|
2828
|
+
readonly message: Schema.String;
|
|
2829
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2830
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2831
|
+
readonly body: Schema.String;
|
|
2832
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2833
|
+
readonly body: Schema.String;
|
|
2834
|
+
}>>, never, never>;
|
|
2835
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2836
|
+
}>;
|
|
2837
|
+
}>>, never, never>;
|
|
2838
|
+
readonly time: Schema.Struct<{
|
|
2839
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2840
|
+
/** When the provider response body ended, before tool settlement. */
|
|
2841
|
+
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>;
|
|
2842
|
+
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>;
|
|
2843
|
+
}>;
|
|
2844
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
2845
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2846
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2847
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2848
|
+
};
|
|
2849
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2850
|
+
readonly time: Schema.Struct<{
|
|
2851
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2852
|
+
}>;
|
|
2853
|
+
readonly type: Schema.tag<"compaction">;
|
|
2854
|
+
readonly status: Schema.tag<"running">;
|
|
2855
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
2856
|
+
readonly summary: Schema.String;
|
|
2857
|
+
}>, Schema.Struct<{
|
|
2858
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2859
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2860
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2861
|
+
};
|
|
2862
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2863
|
+
readonly time: Schema.Struct<{
|
|
2864
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2865
|
+
}>;
|
|
2866
|
+
readonly type: Schema.tag<"compaction">;
|
|
2867
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2868
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2869
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2870
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2871
|
+
}>, never, never>;
|
|
2872
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2873
|
+
readonly input: Schema.Finite;
|
|
2874
|
+
readonly output: Schema.Finite;
|
|
2875
|
+
readonly reasoning: Schema.Finite;
|
|
2876
|
+
readonly cache: Schema.Struct<{
|
|
2877
|
+
readonly read: Schema.Finite;
|
|
2878
|
+
readonly write: Schema.Finite;
|
|
2879
|
+
}>;
|
|
2880
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2881
|
+
readonly input: Schema.Finite;
|
|
2882
|
+
readonly output: Schema.Finite;
|
|
2883
|
+
readonly reasoning: Schema.Finite;
|
|
2884
|
+
readonly cache: Schema.Struct<{
|
|
2885
|
+
readonly read: Schema.Finite;
|
|
2886
|
+
readonly write: Schema.Finite;
|
|
2887
|
+
}>;
|
|
2888
|
+
}>>, never, never>;
|
|
2889
|
+
readonly status: Schema.tag<"completed">;
|
|
2890
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
2891
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2892
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2893
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
2894
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2895
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2896
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2897
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2898
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2899
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2900
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2901
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2902
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2903
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2904
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2905
|
+
};
|
|
2906
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
2907
|
+
}> & {
|
|
2908
|
+
parse: (input: string) => {
|
|
2909
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2910
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2911
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2912
|
+
};
|
|
2913
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
2914
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2915
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
2916
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2917
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2918
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2919
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2920
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2921
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2922
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2923
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2924
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2925
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2926
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2927
|
+
};
|
|
2928
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
2929
|
+
}> & {
|
|
2930
|
+
parse: (input: string) => {
|
|
2931
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2932
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2933
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2934
|
+
};
|
|
2935
|
+
}>, never, never>;
|
|
2936
|
+
/** A provider compaction stores its replacement window in `native.messages`, replayed instead of `summary`. */
|
|
2937
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2938
|
+
readonly summary: Schema.String;
|
|
2939
|
+
}>, Schema.Struct<{
|
|
2940
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2941
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2942
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2943
|
+
};
|
|
2944
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2945
|
+
readonly time: Schema.Struct<{
|
|
2946
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2947
|
+
}>;
|
|
2948
|
+
readonly type: Schema.tag<"compaction">;
|
|
2949
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2950
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2951
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2952
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2953
|
+
}>, never, never>;
|
|
2954
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2955
|
+
readonly input: Schema.Finite;
|
|
2956
|
+
readonly output: Schema.Finite;
|
|
2957
|
+
readonly reasoning: Schema.Finite;
|
|
2958
|
+
readonly cache: Schema.Struct<{
|
|
2959
|
+
readonly read: Schema.Finite;
|
|
2960
|
+
readonly write: Schema.Finite;
|
|
2961
|
+
}>;
|
|
2962
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2963
|
+
readonly input: Schema.Finite;
|
|
2964
|
+
readonly output: Schema.Finite;
|
|
2965
|
+
readonly reasoning: Schema.Finite;
|
|
2966
|
+
readonly cache: Schema.Struct<{
|
|
2967
|
+
readonly read: Schema.Finite;
|
|
2968
|
+
readonly write: Schema.Finite;
|
|
2969
|
+
}>;
|
|
2970
|
+
}>>, never, never>;
|
|
2971
|
+
readonly status: Schema.tag<"failed">;
|
|
2972
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
2973
|
+
readonly error: Schema.Struct<{
|
|
2974
|
+
readonly type: Schema.String;
|
|
2975
|
+
readonly message: Schema.String;
|
|
2976
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2977
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2978
|
+
readonly body: Schema.String;
|
|
2979
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2980
|
+
readonly body: Schema.String;
|
|
2981
|
+
}>>, never, never>;
|
|
2982
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2983
|
+
}>;
|
|
2984
|
+
}>]>, Schema.Struct<{
|
|
2985
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2986
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2987
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2988
|
+
};
|
|
2989
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2990
|
+
readonly time: Schema.Struct<{
|
|
2991
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2992
|
+
}>;
|
|
2993
|
+
readonly type: Schema.tag<"idle">;
|
|
2994
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
2995
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2996
|
+
readonly type: Schema.String;
|
|
2997
|
+
readonly message: Schema.String;
|
|
2998
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2999
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3000
|
+
readonly body: Schema.String;
|
|
3001
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3002
|
+
readonly body: Schema.String;
|
|
3003
|
+
}>>, never, never>;
|
|
3004
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3005
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3006
|
+
readonly type: Schema.String;
|
|
3007
|
+
readonly message: Schema.String;
|
|
3008
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3009
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3010
|
+
readonly body: Schema.String;
|
|
3011
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3012
|
+
readonly body: Schema.String;
|
|
3013
|
+
}>>, never, never>;
|
|
3014
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3015
|
+
}>>, never, never>;
|
|
3016
|
+
}>]>;
|
|
3017
|
+
export type MediaInfo = Exclude<Info, User> | MediaUser;
|