@opencode/schema 2.0.31 → 2.1.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.
Files changed (37) hide show
  1. package/dist/config/experimental.d.ts +1 -0
  2. package/dist/config/experimental.js +3 -0
  3. package/dist/config/provider.d.ts +56 -52
  4. package/dist/credential-legacy.d.ts +54 -0
  5. package/dist/credential-legacy.js +19 -0
  6. package/dist/credential.d.ts +0 -4
  7. package/dist/credential.js +0 -2
  8. package/dist/event-manifest.d.ts +1111 -1149
  9. package/dist/event-manifest.js +1 -2
  10. package/dist/form.d.ts +213 -213
  11. package/dist/instruction-entry.d.ts +1 -1
  12. package/dist/integration.d.ts +257 -257
  13. package/dist/model-compatibility.d.ts +3 -0
  14. package/dist/model-compatibility.js +2 -0
  15. package/dist/model.d.ts +76 -74
  16. package/dist/persistent-pty.d.ts +88 -88
  17. package/dist/prompt-input.d.ts +3 -3
  18. package/dist/prompt.d.ts +28 -28
  19. package/dist/provider.d.ts +2 -0
  20. package/dist/session-event.d.ts +5729 -5723
  21. package/dist/session-event.js +20 -13
  22. package/dist/session-inbox.d.ts +20 -20
  23. package/dist/session-legacy.d.ts +7 -0
  24. package/dist/session-legacy.js +118 -0
  25. package/dist/session-message.d.ts +125 -268
  26. package/dist/session-message.js +13 -12
  27. package/dist/session-revert.d.ts +407 -183
  28. package/dist/session-transfer.d.ts +33 -83
  29. package/dist/session.d.ts +109 -1
  30. package/dist/session.js +64 -2
  31. package/dist/v1/permission.d.ts +8 -8
  32. package/dist/v1/session.d.ts +696 -696
  33. package/package.json +5 -4
  34. package/dist/session-compaction-event.d.ts +0 -87
  35. package/dist/session-compaction-event.js +0 -10
  36. package/dist/session-provider-context.d.ts +0 -54
  37. package/dist/session-provider-context.js +0 -17
@@ -6,14 +6,15 @@ export declare const ID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6
6
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7
7
  };
8
8
  export type ID = typeof ID.Type;
9
- export declare const ProviderState: Schema.$Record<Schema.String, Schema.Unknown>;
10
- export type ProviderState = typeof ProviderState.Type;
9
+ /**
10
+ * Provider-owned replay data, keyed by the producing provider's metadata fields and echoed back verbatim. A tool's
11
+ * result data is merged into its call data, so adapters must not reuse a key with a different value across the two.
12
+ */
13
+ export declare const Native: Schema.$Record<Schema.String, Schema.Unknown>;
14
+ export type Native = typeof Native.Type;
11
15
  export interface AgentSelected extends Schema.Schema.Type<typeof AgentSelected> {
12
16
  }
13
17
  export declare const AgentSelected: Schema.Struct<{
14
- readonly type: Schema.tag<"agent-switched">;
15
- readonly agent: Schema.brand<Schema.String, "Agent.ID">;
16
- readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
17
18
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
18
19
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
19
20
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -22,10 +23,21 @@ export declare const AgentSelected: Schema.Struct<{
22
23
  readonly time: Schema.Struct<{
23
24
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
24
25
  }>;
26
+ readonly type: Schema.tag<"agent-switched">;
27
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
28
+ readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
25
29
  }>;
26
30
  export interface ModelSelected extends Schema.Schema.Type<typeof ModelSelected> {
27
31
  }
28
32
  export declare const ModelSelected: Schema.Struct<{
33
+ readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
34
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
35
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
36
+ };
37
+ 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
+ readonly time: Schema.Struct<{
39
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
40
+ }>;
29
41
  readonly type: Schema.tag<"model-switched">;
30
42
  readonly model: Schema.Struct<{
31
43
  readonly id: Schema.brand<Schema.String, "Model.ID">;
@@ -95,6 +107,10 @@ export declare const ModelSelected: Schema.Struct<{
95
107
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
96
108
  };
97
109
  }>, never, never>;
110
+ }>;
111
+ export interface LocationSwitched extends Schema.Schema.Type<typeof LocationSwitched> {
112
+ }
113
+ export declare const LocationSwitched: Schema.Struct<{
98
114
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
99
115
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
100
116
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -103,10 +119,6 @@ export declare const ModelSelected: Schema.Struct<{
103
119
  readonly time: Schema.Struct<{
104
120
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
105
121
  }>;
106
- }>;
107
- export interface LocationSwitched extends Schema.Schema.Type<typeof LocationSwitched> {
108
- }
109
- export declare const LocationSwitched: Schema.Struct<{
110
122
  readonly type: Schema.tag<"location-switched">;
111
123
  readonly location: Schema.Struct<{
112
124
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -159,6 +171,10 @@ export declare const LocationSwitched: Schema.Struct<{
159
171
  }>, never, never>;
160
172
  readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
161
173
  }>>, never, never>;
174
+ }>;
175
+ export interface User extends Schema.Schema.Type<typeof User> {
176
+ }
177
+ export declare const User: Schema.Struct<{
162
178
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
163
179
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
164
180
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -167,10 +183,6 @@ export declare const LocationSwitched: Schema.Struct<{
167
183
  readonly time: Schema.Struct<{
168
184
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
169
185
  }>;
170
- }>;
171
- export interface User extends Schema.Schema.Type<typeof User> {
172
- }
173
- export declare const User: Schema.Struct<{
174
186
  readonly text: Schema.String;
175
187
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
176
188
  readonly data: Schema.String;
@@ -195,15 +207,15 @@ export declare const User: Schema.Struct<{
195
207
  }> & {
196
208
  create: (input: import("./prompt.js").FileAttachment) => {
197
209
  readonly data: string;
210
+ readonly mime: string;
198
211
  readonly source: {
199
212
  readonly type: "inline";
200
213
  } | {
201
214
  readonly type: "uri";
202
215
  readonly uri: string;
203
216
  };
204
- readonly mime: string;
205
- readonly description?: string | undefined;
206
217
  readonly name?: string | undefined;
218
+ readonly description?: string | undefined;
207
219
  readonly mention?: {
208
220
  readonly start: number;
209
221
  readonly end: number;
@@ -233,15 +245,15 @@ export declare const User: Schema.Struct<{
233
245
  }> & {
234
246
  create: (input: import("./prompt.js").FileAttachment) => {
235
247
  readonly data: string;
248
+ readonly mime: string;
236
249
  readonly source: {
237
250
  readonly type: "inline";
238
251
  } | {
239
252
  readonly type: "uri";
240
253
  readonly uri: string;
241
254
  };
242
- readonly mime: string;
243
- readonly description?: string | undefined;
244
255
  readonly name?: string | undefined;
256
+ readonly description?: string | undefined;
245
257
  readonly mention?: {
246
258
  readonly start: number;
247
259
  readonly end: number;
@@ -300,6 +312,10 @@ export declare const User: Schema.Struct<{
300
312
  }>>, never, never>;
301
313
  }>>>, never, never>;
302
314
  readonly type: Schema.tag<"user">;
315
+ }>;
316
+ export interface Synthetic extends Schema.Schema.Type<typeof Synthetic> {
317
+ }
318
+ export declare const Synthetic: Schema.Struct<{
303
319
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
304
320
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
305
321
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -308,13 +324,13 @@ export declare const User: Schema.Struct<{
308
324
  readonly time: Schema.Struct<{
309
325
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
310
326
  }>;
311
- }>;
312
- export interface Synthetic extends Schema.Schema.Type<typeof Synthetic> {
313
- }
314
- export declare const Synthetic: Schema.Struct<{
315
327
  readonly text: Schema.String;
316
328
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
317
329
  readonly type: Schema.tag<"synthetic">;
330
+ }>;
331
+ export interface System extends Schema.Schema.Type<typeof System> {
332
+ }
333
+ export declare const System: Schema.Struct<{
318
334
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
319
335
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
320
336
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -323,15 +339,15 @@ export declare const Synthetic: Schema.Struct<{
323
339
  readonly time: Schema.Struct<{
324
340
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
325
341
  }>;
326
- }>;
327
- export interface System extends Schema.Schema.Type<typeof System> {
328
- }
329
- export declare const System: Schema.Struct<{
330
342
  readonly type: Schema.tag<"system">;
331
343
  /** The model-facing update text, frozen at emit time. */
332
344
  readonly text: Schema.String;
333
345
  /** A short human-readable summary for transcript display. */
334
346
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
347
+ }>;
348
+ export interface Skill extends Schema.Schema.Type<typeof Skill> {
349
+ }
350
+ export declare const Skill: Schema.Struct<{
335
351
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
336
352
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
337
353
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -340,26 +356,19 @@ export declare const System: Schema.Struct<{
340
356
  readonly time: Schema.Struct<{
341
357
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
342
358
  }>;
343
- }>;
344
- export interface Skill extends Schema.Schema.Type<typeof Skill> {
345
- }
346
- export declare const Skill: Schema.Struct<{
347
359
  readonly type: Schema.tag<"skill">;
348
360
  readonly skill: Schema.brand<Schema.String, "Skill.ID">;
349
361
  readonly name: Schema.brand<Schema.String, "Skill.Name">;
350
362
  readonly text: Schema.String;
363
+ }>;
364
+ export interface Shell extends Schema.Schema.Type<typeof Shell> {
365
+ }
366
+ export declare const Shell: Schema.Struct<{
351
367
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
352
368
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
353
369
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
354
370
  };
355
371
  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
- readonly time: Schema.Struct<{
357
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
358
- }>;
359
- }>;
360
- export interface Shell extends Schema.Schema.Type<typeof Shell> {
361
- }
362
- export declare const Shell: Schema.Struct<{
363
372
  readonly type: Schema.tag<"shell">;
364
373
  readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
365
374
  create: () => string & import("effect/Brand").Brand<"Shell.ID">;
@@ -383,11 +392,6 @@ export declare const Shell: Schema.Struct<{
383
392
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
384
393
  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>;
385
394
  }>;
386
- readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
387
- create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
388
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
389
- };
390
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
391
395
  }>;
392
396
  export interface ToolStateStreaming extends Schema.Schema.Type<typeof ToolStateStreaming> {
393
397
  }
@@ -512,8 +516,7 @@ export declare const AssistantTool: Schema.Struct<{
512
516
  readonly id: Schema.String;
513
517
  readonly name: Schema.String;
514
518
  readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
515
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
516
- readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
519
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
517
520
  readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
518
521
  readonly status: Schema.tag<"streaming">;
519
522
  readonly input: Schema.String;
@@ -577,14 +580,14 @@ export interface AssistantText extends Schema.Schema.Type<typeof AssistantText>
577
580
  export declare const AssistantText: Schema.Struct<{
578
581
  readonly type: Schema.tag<"text">;
579
582
  readonly text: Schema.String;
580
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
583
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
581
584
  }>;
582
585
  export interface AssistantReasoning extends Schema.Schema.Type<typeof AssistantReasoning> {
583
586
  }
584
587
  export declare const AssistantReasoning: Schema.Struct<{
585
588
  readonly type: Schema.tag<"reasoning">;
586
589
  readonly text: Schema.String;
587
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
590
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
588
591
  readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
589
592
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
590
593
  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>;
@@ -596,11 +599,11 @@ export declare const AssistantReasoning: Schema.Struct<{
596
599
  export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
597
600
  readonly type: Schema.tag<"text">;
598
601
  readonly text: Schema.String;
599
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
602
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
600
603
  }>, Schema.Struct<{
601
604
  readonly type: Schema.tag<"reasoning">;
602
605
  readonly text: Schema.String;
603
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
606
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
604
607
  readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
605
608
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
606
609
  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>;
@@ -613,8 +616,7 @@ export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Sc
613
616
  readonly id: Schema.String;
614
617
  readonly name: Schema.String;
615
618
  readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
616
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
617
- readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
619
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
618
620
  readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
619
621
  readonly status: Schema.tag<"streaming">;
620
622
  readonly input: Schema.String;
@@ -677,11 +679,11 @@ export type AssistantContent = AssistantText | AssistantReasoning | AssistantToo
677
679
  export declare const AssistantContentEncoded: Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
678
680
  readonly type: Schema.tag<"text">;
679
681
  readonly text: Schema.String;
680
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
682
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
681
683
  }>, Schema.Struct<{
682
684
  readonly type: Schema.tag<"reasoning">;
683
685
  readonly text: Schema.String;
684
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
686
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
685
687
  readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
686
688
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
687
689
  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>;
@@ -694,8 +696,7 @@ export declare const AssistantContentEncoded: Schema.toEncoded<Schema.toTaggedUn
694
696
  readonly id: Schema.String;
695
697
  readonly name: Schema.String;
696
698
  readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
697
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
698
- readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
699
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
699
700
  readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
700
701
  readonly status: Schema.tag<"streaming">;
701
702
  readonly input: Schema.String;
@@ -774,6 +775,11 @@ export declare const AssistantRetry: Schema.Struct<{
774
775
  export interface Assistant extends Schema.Schema.Type<typeof Assistant> {
775
776
  }
776
777
  export declare const Assistant: Schema.Struct<{
778
+ readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
779
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
780
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
781
+ };
782
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
777
783
  readonly type: Schema.tag<"assistant">;
778
784
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
779
785
  readonly model: Schema.Struct<{
@@ -802,11 +808,11 @@ export declare const Assistant: Schema.Struct<{
802
808
  readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
803
809
  readonly type: Schema.tag<"text">;
804
810
  readonly text: Schema.String;
805
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
811
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
806
812
  }>, Schema.Struct<{
807
813
  readonly type: Schema.tag<"reasoning">;
808
814
  readonly text: Schema.String;
809
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
815
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
810
816
  readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
811
817
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
812
818
  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>;
@@ -819,8 +825,7 @@ export declare const Assistant: Schema.Struct<{
819
825
  readonly id: Schema.String;
820
826
  readonly name: Schema.String;
821
827
  readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
822
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
823
- readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
828
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
824
829
  readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
825
830
  readonly status: Schema.tag<"streaming">;
826
831
  readonly input: Schema.String;
@@ -890,7 +895,8 @@ export declare const Assistant: Schema.Struct<{
890
895
  }>>, never, never>;
891
896
  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>;
892
897
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
893
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
898
+ /** Step-level native data, such as a provider's reason for blocking a response. */
899
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
894
900
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
895
901
  zero: number & import("effect/Brand").Brand<"Money.USD">;
896
902
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -965,19 +971,10 @@ export declare const Assistant: Schema.Struct<{
965
971
  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>;
966
972
  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>;
967
973
  }>;
968
- readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
969
- create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
970
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
971
- };
972
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
973
974
  }>;
974
975
  export interface CompactionRunning extends Schema.Schema.Type<typeof CompactionRunning> {
975
976
  }
976
977
  export declare const CompactionRunning: Schema.Struct<{
977
- readonly status: Schema.tag<"running">;
978
- readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
979
- readonly summary: Schema.String;
980
- readonly recent: Schema.String;
981
978
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
982
979
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
983
980
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -987,10 +984,22 @@ export declare const CompactionRunning: Schema.Struct<{
987
984
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
988
985
  }>;
989
986
  readonly type: Schema.tag<"compaction">;
987
+ readonly status: Schema.tag<"running">;
988
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
989
+ readonly summary: Schema.String;
990
990
  }>;
991
991
  export interface CompactionCompleted extends Schema.Schema.Type<typeof CompactionCompleted> {
992
992
  }
993
993
  export declare const CompactionCompleted: Schema.Struct<{
994
+ readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
995
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
996
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
997
+ };
998
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
999
+ readonly time: Schema.Struct<{
1000
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1001
+ }>;
1002
+ readonly type: Schema.tag<"compaction">;
994
1003
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
995
1004
  zero: number & import("effect/Brand").Brand<"Money.USD">;
996
1005
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -1060,56 +1069,13 @@ export declare const CompactionCompleted: Schema.Struct<{
1060
1069
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1061
1070
  };
1062
1071
  }>, never, never>;
1063
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1072
+ /** A provider compaction stores its replacement window in `native.messages`, replayed instead of `summary`. */
1073
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1064
1074
  readonly summary: Schema.String;
1065
- readonly recent: Schema.String;
1066
- readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1067
- readonly version: Schema.Literal<1>;
1068
- readonly provenance: Schema.Struct<{
1069
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
1070
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
1071
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
1072
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
1073
- google: string & import("effect/Brand").Brand<"Provider.ID">;
1074
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1075
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1076
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1077
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
1078
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
1079
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
1080
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
1081
- };
1082
- readonly provider: Schema.String;
1083
- readonly modelID: Schema.String;
1084
- readonly route: Schema.String;
1085
- readonly protocol: Schema.String;
1086
- readonly endpoint: Schema.String;
1087
- }>;
1088
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1089
- }>>>, Schema.optionalKey<Schema.Struct<{
1090
- readonly version: Schema.Literal<1>;
1091
- readonly provenance: Schema.Struct<{
1092
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
1093
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
1094
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
1095
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
1096
- google: string & import("effect/Brand").Brand<"Provider.ID">;
1097
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1098
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1099
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1100
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
1101
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
1102
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
1103
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
1104
- };
1105
- readonly provider: Schema.String;
1106
- readonly modelID: Schema.String;
1107
- readonly route: Schema.String;
1108
- readonly protocol: Schema.String;
1109
- readonly endpoint: Schema.String;
1110
- }>;
1111
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1112
- }>>, never, never>;
1075
+ }>;
1076
+ export interface CompactionFailed extends Schema.Schema.Type<typeof CompactionFailed> {
1077
+ }
1078
+ export declare const CompactionFailed: Schema.Struct<{
1113
1079
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1114
1080
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1115
1081
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1119,10 +1085,6 @@ export declare const CompactionCompleted: Schema.Struct<{
1119
1085
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1120
1086
  }>;
1121
1087
  readonly type: Schema.tag<"compaction">;
1122
- }>;
1123
- export interface CompactionFailed extends Schema.Schema.Type<typeof CompactionFailed> {
1124
- }
1125
- export declare const CompactionFailed: Schema.Struct<{
1126
1088
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
1127
1089
  zero: number & import("effect/Brand").Brand<"Money.USD">;
1128
1090
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -1157,6 +1119,8 @@ export declare const CompactionFailed: Schema.Struct<{
1157
1119
  readonly body: Schema.String;
1158
1120
  }>>, never, never>;
1159
1121
  }>;
1122
+ }>;
1123
+ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
1160
1124
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1161
1125
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1162
1126
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1166,12 +1130,10 @@ export declare const CompactionFailed: Schema.Struct<{
1166
1130
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1167
1131
  }>;
1168
1132
  readonly type: Schema.tag<"compaction">;
1169
- }>;
1170
- export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
1171
1133
  readonly status: Schema.tag<"running">;
1172
1134
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
1173
1135
  readonly summary: Schema.String;
1174
- readonly recent: Schema.String;
1136
+ }>, Schema.Struct<{
1175
1137
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1176
1138
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1177
1139
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1181,7 +1143,6 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
1181
1143
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1182
1144
  }>;
1183
1145
  readonly type: Schema.tag<"compaction">;
1184
- }>, Schema.Struct<{
1185
1146
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
1186
1147
  zero: number & import("effect/Brand").Brand<"Money.USD">;
1187
1148
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -1251,56 +1212,10 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
1251
1212
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1252
1213
  };
1253
1214
  }>, never, never>;
1254
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1215
+ /** A provider compaction stores its replacement window in `native.messages`, replayed instead of `summary`. */
1216
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1255
1217
  readonly summary: Schema.String;
1256
- readonly recent: Schema.String;
1257
- readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1258
- readonly version: Schema.Literal<1>;
1259
- readonly provenance: Schema.Struct<{
1260
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
1261
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
1262
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
1263
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
1264
- google: string & import("effect/Brand").Brand<"Provider.ID">;
1265
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1266
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1267
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1268
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
1269
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
1270
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
1271
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
1272
- };
1273
- readonly provider: Schema.String;
1274
- readonly modelID: Schema.String;
1275
- readonly route: Schema.String;
1276
- readonly protocol: Schema.String;
1277
- readonly endpoint: Schema.String;
1278
- }>;
1279
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1280
- }>>>, Schema.optionalKey<Schema.Struct<{
1281
- readonly version: Schema.Literal<1>;
1282
- readonly provenance: Schema.Struct<{
1283
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
1284
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
1285
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
1286
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
1287
- google: string & import("effect/Brand").Brand<"Provider.ID">;
1288
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1289
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1290
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1291
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
1292
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
1293
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
1294
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
1295
- };
1296
- readonly provider: Schema.String;
1297
- readonly modelID: Schema.String;
1298
- readonly route: Schema.String;
1299
- readonly protocol: Schema.String;
1300
- readonly endpoint: Schema.String;
1301
- }>;
1302
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1303
- }>>, never, never>;
1218
+ }>, Schema.Struct<{
1304
1219
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1305
1220
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1306
1221
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1310,7 +1225,6 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
1310
1225
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1311
1226
  }>;
1312
1227
  readonly type: Schema.tag<"compaction">;
1313
- }>, Schema.Struct<{
1314
1228
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
1315
1229
  zero: number & import("effect/Brand").Brand<"Money.USD">;
1316
1230
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -1345,15 +1259,6 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
1345
1259
  readonly body: Schema.String;
1346
1260
  }>>, never, never>;
1347
1261
  }>;
1348
- readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1349
- create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1350
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1351
- };
1352
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1353
- readonly time: Schema.Struct<{
1354
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1355
- }>;
1356
- readonly type: Schema.tag<"compaction">;
1357
1262
  }>]>;
1358
1263
  export type Compaction = CompactionRunning | CompactionCompleted | CompactionFailed;
1359
1264
  /**
@@ -1364,6 +1269,14 @@ export type Compaction = CompactionRunning | CompactionCompleted | CompactionFai
1364
1269
  export interface Idle extends Schema.Schema.Type<typeof Idle> {
1365
1270
  }
1366
1271
  export declare const Idle: Schema.Struct<{
1272
+ readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1273
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1274
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1275
+ };
1276
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1277
+ readonly time: Schema.Struct<{
1278
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1279
+ }>;
1367
1280
  readonly type: Schema.tag<"idle">;
1368
1281
  readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
1369
1282
  readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
@@ -1385,6 +1298,8 @@ export declare const Idle: Schema.Struct<{
1385
1298
  readonly body: Schema.String;
1386
1299
  }>>, never, never>;
1387
1300
  }>>, never, never>;
1301
+ }>;
1302
+ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1388
1303
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1389
1304
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1390
1305
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1393,11 +1308,10 @@ export declare const Idle: Schema.Struct<{
1393
1308
  readonly time: Schema.Struct<{
1394
1309
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1395
1310
  }>;
1396
- }>;
1397
- export declare const Info: Schema.Union<readonly [Schema.Struct<{
1398
1311
  readonly type: Schema.tag<"agent-switched">;
1399
1312
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
1400
1313
  readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
1314
+ }>, Schema.Struct<{
1401
1315
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1402
1316
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1403
1317
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1406,7 +1320,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1406
1320
  readonly time: Schema.Struct<{
1407
1321
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1408
1322
  }>;
1409
- }>, Schema.Struct<{
1410
1323
  readonly type: Schema.tag<"model-switched">;
1411
1324
  readonly model: Schema.Struct<{
1412
1325
  readonly id: Schema.brand<Schema.String, "Model.ID">;
@@ -1476,6 +1389,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1476
1389
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1477
1390
  };
1478
1391
  }>, never, never>;
1392
+ }>, Schema.Struct<{
1479
1393
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1480
1394
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1481
1395
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1484,7 +1398,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1484
1398
  readonly time: Schema.Struct<{
1485
1399
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1486
1400
  }>;
1487
- }>, Schema.Struct<{
1488
1401
  readonly type: Schema.tag<"location-switched">;
1489
1402
  readonly location: Schema.Struct<{
1490
1403
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1537,6 +1450,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1537
1450
  }>, never, never>;
1538
1451
  readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
1539
1452
  }>>, never, never>;
1453
+ }>, Schema.Struct<{
1540
1454
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1541
1455
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1542
1456
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1545,7 +1459,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1545
1459
  readonly time: Schema.Struct<{
1546
1460
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1547
1461
  }>;
1548
- }>, Schema.Struct<{
1549
1462
  readonly text: Schema.String;
1550
1463
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
1551
1464
  readonly data: Schema.String;
@@ -1570,15 +1483,15 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1570
1483
  }> & {
1571
1484
  create: (input: import("./prompt.js").FileAttachment) => {
1572
1485
  readonly data: string;
1486
+ readonly mime: string;
1573
1487
  readonly source: {
1574
1488
  readonly type: "inline";
1575
1489
  } | {
1576
1490
  readonly type: "uri";
1577
1491
  readonly uri: string;
1578
1492
  };
1579
- readonly mime: string;
1580
- readonly description?: string | undefined;
1581
1493
  readonly name?: string | undefined;
1494
+ readonly description?: string | undefined;
1582
1495
  readonly mention?: {
1583
1496
  readonly start: number;
1584
1497
  readonly end: number;
@@ -1608,15 +1521,15 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1608
1521
  }> & {
1609
1522
  create: (input: import("./prompt.js").FileAttachment) => {
1610
1523
  readonly data: string;
1524
+ readonly mime: string;
1611
1525
  readonly source: {
1612
1526
  readonly type: "inline";
1613
1527
  } | {
1614
1528
  readonly type: "uri";
1615
1529
  readonly uri: string;
1616
1530
  };
1617
- readonly mime: string;
1618
- readonly description?: string | undefined;
1619
1531
  readonly name?: string | undefined;
1532
+ readonly description?: string | undefined;
1620
1533
  readonly mention?: {
1621
1534
  readonly start: number;
1622
1535
  readonly end: number;
@@ -1675,6 +1588,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1675
1588
  }>>, never, never>;
1676
1589
  }>>>, never, never>;
1677
1590
  readonly type: Schema.tag<"user">;
1591
+ }>, Schema.Struct<{
1678
1592
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1679
1593
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1680
1594
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1683,10 +1597,10 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1683
1597
  readonly time: Schema.Struct<{
1684
1598
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1685
1599
  }>;
1686
- }>, Schema.Struct<{
1687
1600
  readonly text: Schema.String;
1688
1601
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1689
1602
  readonly type: Schema.tag<"synthetic">;
1603
+ }>, Schema.Struct<{
1690
1604
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1691
1605
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1692
1606
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1695,12 +1609,12 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1695
1609
  readonly time: Schema.Struct<{
1696
1610
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1697
1611
  }>;
1698
- }>, Schema.Struct<{
1699
1612
  readonly type: Schema.tag<"system">;
1700
1613
  /** The model-facing update text, frozen at emit time. */
1701
1614
  readonly text: Schema.String;
1702
1615
  /** A short human-readable summary for transcript display. */
1703
1616
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1617
+ }>, Schema.Struct<{
1704
1618
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1705
1619
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1706
1620
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1709,20 +1623,16 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1709
1623
  readonly time: Schema.Struct<{
1710
1624
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1711
1625
  }>;
1712
- }>, Schema.Struct<{
1713
1626
  readonly type: Schema.tag<"skill">;
1714
1627
  readonly skill: Schema.brand<Schema.String, "Skill.ID">;
1715
1628
  readonly name: Schema.brand<Schema.String, "Skill.Name">;
1716
1629
  readonly text: Schema.String;
1630
+ }>, Schema.Struct<{
1717
1631
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1718
1632
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1719
1633
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1720
1634
  };
1721
1635
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1722
- readonly time: Schema.Struct<{
1723
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1724
- }>;
1725
- }>, Schema.Struct<{
1726
1636
  readonly type: Schema.tag<"shell">;
1727
1637
  readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
1728
1638
  create: () => string & import("effect/Brand").Brand<"Shell.ID">;
@@ -1746,12 +1656,12 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1746
1656
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1747
1657
  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>;
1748
1658
  }>;
1659
+ }>, Schema.Struct<{
1749
1660
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1750
1661
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1751
1662
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1752
1663
  };
1753
1664
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1754
- }>, Schema.Struct<{
1755
1665
  readonly type: Schema.tag<"assistant">;
1756
1666
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
1757
1667
  readonly model: Schema.Struct<{
@@ -1780,11 +1690,11 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1780
1690
  readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
1781
1691
  readonly type: Schema.tag<"text">;
1782
1692
  readonly text: Schema.String;
1783
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1693
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1784
1694
  }>, Schema.Struct<{
1785
1695
  readonly type: Schema.tag<"reasoning">;
1786
1696
  readonly text: Schema.String;
1787
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1697
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1788
1698
  readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1789
1699
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1790
1700
  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>;
@@ -1797,8 +1707,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1797
1707
  readonly id: Schema.String;
1798
1708
  readonly name: Schema.String;
1799
1709
  readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1800
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1801
- readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1710
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1802
1711
  readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
1803
1712
  readonly status: Schema.tag<"streaming">;
1804
1713
  readonly input: Schema.String;
@@ -1868,7 +1777,8 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1868
1777
  }>>, never, never>;
1869
1778
  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>;
1870
1779
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1871
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1780
+ /** Step-level native data, such as a provider's reason for blocking a response. */
1781
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1872
1782
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
1873
1783
  zero: number & import("effect/Brand").Brand<"Money.USD">;
1874
1784
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -1943,16 +1853,20 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1943
1853
  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>;
1944
1854
  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>;
1945
1855
  }>;
1856
+ }>, Schema.Union<readonly [Schema.Struct<{
1946
1857
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1947
1858
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1948
1859
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1949
1860
  };
1950
1861
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1951
- }>, Schema.Union<readonly [Schema.Struct<{
1862
+ readonly time: Schema.Struct<{
1863
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1864
+ }>;
1865
+ readonly type: Schema.tag<"compaction">;
1952
1866
  readonly status: Schema.tag<"running">;
1953
1867
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
1954
1868
  readonly summary: Schema.String;
1955
- readonly recent: Schema.String;
1869
+ }>, Schema.Struct<{
1956
1870
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1957
1871
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1958
1872
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1962,7 +1876,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1962
1876
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1963
1877
  }>;
1964
1878
  readonly type: Schema.tag<"compaction">;
1965
- }>, Schema.Struct<{
1966
1879
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
1967
1880
  zero: number & import("effect/Brand").Brand<"Money.USD">;
1968
1881
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -2032,56 +1945,10 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
2032
1945
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
2033
1946
  };
2034
1947
  }>, never, never>;
2035
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1948
+ /** A provider compaction stores its replacement window in `native.messages`, replayed instead of `summary`. */
1949
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2036
1950
  readonly summary: Schema.String;
2037
- readonly recent: Schema.String;
2038
- readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2039
- readonly version: Schema.Literal<1>;
2040
- readonly provenance: Schema.Struct<{
2041
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
2042
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
2043
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
2044
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
2045
- google: string & import("effect/Brand").Brand<"Provider.ID">;
2046
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2047
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2048
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2049
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
2050
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
2051
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
2052
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
2053
- };
2054
- readonly provider: Schema.String;
2055
- readonly modelID: Schema.String;
2056
- readonly route: Schema.String;
2057
- readonly protocol: Schema.String;
2058
- readonly endpoint: Schema.String;
2059
- }>;
2060
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2061
- }>>>, Schema.optionalKey<Schema.Struct<{
2062
- readonly version: Schema.Literal<1>;
2063
- readonly provenance: Schema.Struct<{
2064
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
2065
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
2066
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
2067
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
2068
- google: string & import("effect/Brand").Brand<"Provider.ID">;
2069
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2070
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2071
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2072
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
2073
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
2074
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
2075
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
2076
- };
2077
- readonly provider: Schema.String;
2078
- readonly modelID: Schema.String;
2079
- readonly route: Schema.String;
2080
- readonly protocol: Schema.String;
2081
- readonly endpoint: Schema.String;
2082
- }>;
2083
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2084
- }>>, never, never>;
1951
+ }>, Schema.Struct<{
2085
1952
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
2086
1953
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2087
1954
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -2091,7 +1958,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
2091
1958
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
2092
1959
  }>;
2093
1960
  readonly type: Schema.tag<"compaction">;
2094
- }>, Schema.Struct<{
2095
1961
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
2096
1962
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2097
1963
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -2126,6 +1992,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
2126
1992
  readonly body: Schema.String;
2127
1993
  }>>, never, never>;
2128
1994
  }>;
1995
+ }>]>, Schema.Struct<{
2129
1996
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
2130
1997
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2131
1998
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -2134,8 +2001,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
2134
2001
  readonly time: Schema.Struct<{
2135
2002
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
2136
2003
  }>;
2137
- readonly type: Schema.tag<"compaction">;
2138
- }>]>, Schema.Struct<{
2139
2004
  readonly type: Schema.tag<"idle">;
2140
2005
  readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
2141
2006
  readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
@@ -2157,14 +2022,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
2157
2022
  readonly body: Schema.String;
2158
2023
  }>>, never, never>;
2159
2024
  }>>, never, never>;
2160
- readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
2161
- create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2162
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2163
- };
2164
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2165
- readonly time: Schema.Struct<{
2166
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
2167
- }>;
2168
2025
  }>]>;
2169
2026
  export type Info = AgentSelected | ModelSelected | LocationSwitched | User | Synthetic | System | Skill | Shell | Assistant | Compaction | Idle;
2170
2027
  export type Type = Info["type"];