@opencode/protocol 0.0.0-dev-21269 → 0.0.0-dev-21286

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.
@@ -2729,7 +2729,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2729
2729
  };
2730
2730
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2731
2731
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2732
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2732
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2733
2733
  readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
2734
2734
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2735
2735
  };
@@ -2763,7 +2763,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2763
2763
  };
2764
2764
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2765
2765
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2766
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2766
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2767
2767
  readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
2768
2768
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2769
2769
  };
@@ -2831,7 +2831,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2831
2831
  }>;
2832
2832
  readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
2833
2833
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2834
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2834
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2835
2835
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
2836
2836
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2837
2837
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -2885,7 +2885,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2885
2885
  }>;
2886
2886
  readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
2887
2887
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2888
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2888
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2889
2889
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
2890
2890
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2891
2891
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -3067,7 +3067,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3067
3067
  };
3068
3068
  readonly ordinal: Schema.Int;
3069
3069
  readonly text: Schema.String;
3070
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3070
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3071
3071
  }>;
3072
3072
  }> & {
3073
3073
  type: "session.text.ended";
@@ -3087,7 +3087,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3087
3087
  };
3088
3088
  readonly ordinal: Schema.Int;
3089
3089
  readonly text: Schema.String;
3090
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3090
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3091
3091
  }>;
3092
3092
  }, Schema.Struct<{
3093
3093
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -3130,7 +3130,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3130
3130
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3131
3131
  };
3132
3132
  readonly ordinal: Schema.Int;
3133
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3133
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3134
3134
  }>;
3135
3135
  }> & {
3136
3136
  type: "session.reasoning.started";
@@ -3149,7 +3149,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3149
3149
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3150
3150
  };
3151
3151
  readonly ordinal: Schema.Int;
3152
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3152
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3153
3153
  }>;
3154
3154
  }, Schema.Struct<{
3155
3155
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -3247,7 +3247,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3247
3247
  };
3248
3248
  readonly ordinal: Schema.Int;
3249
3249
  readonly text: Schema.String;
3250
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3250
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3251
3251
  }>;
3252
3252
  }> & {
3253
3253
  type: "session.reasoning.ended";
@@ -3267,7 +3267,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3267
3267
  };
3268
3268
  readonly ordinal: Schema.Int;
3269
3269
  readonly text: Schema.String;
3270
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3270
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3271
3271
  }>;
3272
3272
  }, Schema.Struct<{
3273
3273
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -3490,7 +3490,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3490
3490
  readonly id: Schema.String;
3491
3491
  readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
3492
3492
  readonly executed: Schema.Boolean;
3493
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3493
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3494
3494
  }>;
3495
3495
  }> & {
3496
3496
  type: "session.tool.called";
@@ -3511,7 +3511,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3511
3511
  readonly id: Schema.String;
3512
3512
  readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
3513
3513
  readonly executed: Schema.Boolean;
3514
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3514
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3515
3515
  }>;
3516
3516
  }, Schema.Struct<{
3517
3517
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -3619,7 +3619,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3619
3619
  }>]>>;
3620
3620
  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>;
3621
3621
  readonly executed: Schema.Boolean;
3622
- readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3622
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3623
3623
  }>;
3624
3624
  }> & {
3625
3625
  type: "session.tool.success";
@@ -3649,7 +3649,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3649
3649
  }>]>>;
3650
3650
  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>;
3651
3651
  readonly executed: Schema.Boolean;
3652
- readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3652
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3653
3653
  }>;
3654
3654
  }, Schema.Struct<{
3655
3655
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -3721,7 +3721,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3721
3721
  }>]>>>, never, never>;
3722
3722
  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>;
3723
3723
  readonly executed: Schema.Boolean;
3724
- readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3724
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3725
3725
  }>;
3726
3726
  }> & {
3727
3727
  type: "session.tool.failed";
@@ -3769,7 +3769,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3769
3769
  }>]>>>, never, never>;
3770
3770
  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>;
3771
3771
  readonly executed: Schema.Boolean;
3772
- readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3772
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3773
3773
  }>;
3774
3774
  }, Schema.Struct<{
3775
3775
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -3890,7 +3890,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3890
3890
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3891
3891
  };
3892
3892
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
3893
- readonly recent: Schema.String;
3894
3893
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
3895
3894
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3896
3895
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -3912,7 +3911,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3912
3911
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3913
3912
  };
3914
3913
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
3915
- readonly recent: Schema.String;
3916
3914
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
3917
3915
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3918
3916
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -4047,56 +4045,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4047
4045
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
4048
4046
  };
4049
4047
  }>, never, never>;
4050
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4051
- readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4052
- readonly version: Schema.Literal<1>;
4053
- readonly provenance: Schema.Struct<{
4054
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
4055
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
4056
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
4057
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
4058
- google: string & import("effect/Brand").Brand<"Provider.ID">;
4059
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
4060
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
4061
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
4062
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
4063
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
4064
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
4065
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
4066
- };
4067
- readonly provider: Schema.String;
4068
- readonly modelID: Schema.String;
4069
- readonly route: Schema.String;
4070
- readonly protocol: Schema.String;
4071
- readonly endpoint: Schema.String;
4072
- }>;
4073
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
4074
- }>>>, Schema.optionalKey<Schema.Struct<{
4075
- readonly version: Schema.Literal<1>;
4076
- readonly provenance: Schema.Struct<{
4077
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
4078
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
4079
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
4080
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
4081
- google: string & import("effect/Brand").Brand<"Provider.ID">;
4082
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
4083
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
4084
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
4085
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
4086
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
4087
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
4088
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
4089
- };
4090
- readonly provider: Schema.String;
4091
- readonly modelID: Schema.String;
4092
- readonly route: Schema.String;
4093
- readonly protocol: Schema.String;
4094
- readonly endpoint: Schema.String;
4095
- }>;
4096
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
4097
- }>>, never, never>;
4048
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4098
4049
  readonly text: Schema.String;
4099
- readonly recent: Schema.String;
4100
4050
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
4101
4051
  zero: number & import("effect/Brand").Brand<"Money.USD">;
4102
4052
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -4178,56 +4128,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4178
4128
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
4179
4129
  };
4180
4130
  }>, never, never>;
4181
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4182
- readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4183
- readonly version: Schema.Literal<1>;
4184
- readonly provenance: Schema.Struct<{
4185
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
4186
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
4187
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
4188
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
4189
- google: string & import("effect/Brand").Brand<"Provider.ID">;
4190
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
4191
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
4192
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
4193
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
4194
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
4195
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
4196
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
4197
- };
4198
- readonly provider: Schema.String;
4199
- readonly modelID: Schema.String;
4200
- readonly route: Schema.String;
4201
- readonly protocol: Schema.String;
4202
- readonly endpoint: Schema.String;
4203
- }>;
4204
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
4205
- }>>>, Schema.optionalKey<Schema.Struct<{
4206
- readonly version: Schema.Literal<1>;
4207
- readonly provenance: Schema.Struct<{
4208
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
4209
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
4210
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
4211
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
4212
- google: string & import("effect/Brand").Brand<"Provider.ID">;
4213
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
4214
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
4215
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
4216
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
4217
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
4218
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
4219
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
4220
- };
4221
- readonly provider: Schema.String;
4222
- readonly modelID: Schema.String;
4223
- readonly route: Schema.String;
4224
- readonly protocol: Schema.String;
4225
- readonly endpoint: Schema.String;
4226
- }>;
4227
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
4228
- }>>, never, never>;
4131
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4229
4132
  readonly text: Schema.String;
4230
- readonly recent: Schema.String;
4231
4133
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
4232
4134
  zero: number & import("effect/Brand").Brand<"Money.USD">;
4233
4135
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -6506,7 +6408,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6506
6408
  readonly metadata?: {
6507
6409
  readonly [x: string]: unknown;
6508
6410
  } | undefined;
6509
- readonly type: "agent.updated";
6411
+ readonly type: "provider.updated";
6510
6412
  readonly location?: {
6511
6413
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6512
6414
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -6518,20 +6420,26 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6518
6420
  readonly metadata?: {
6519
6421
  readonly [x: string]: unknown;
6520
6422
  } | undefined;
6521
- readonly type: "session.agent.selected";
6522
- readonly durable: {
6523
- readonly aggregateID: string;
6524
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6525
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6526
- };
6423
+ readonly type: "permission.asked";
6527
6424
  readonly location?: {
6528
6425
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6529
6426
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6530
6427
  } | undefined;
6531
6428
  readonly data: {
6532
6429
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6533
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6534
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6430
+ readonly action: string;
6431
+ readonly resources: readonly string[];
6432
+ readonly save?: readonly string[] | undefined;
6433
+ readonly metadata?: {
6434
+ readonly [x: string]: unknown;
6435
+ } | undefined;
6436
+ readonly source?: {
6437
+ readonly type: "tool";
6438
+ readonly messageID: string;
6439
+ readonly id: string;
6440
+ } | undefined;
6441
+ readonly message?: string | undefined;
6442
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
6535
6443
  };
6536
6444
  } | {
6537
6445
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6539,18 +6447,15 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6539
6447
  readonly metadata?: {
6540
6448
  readonly [x: string]: unknown;
6541
6449
  } | undefined;
6542
- readonly type: "session.archived";
6543
- readonly durable: {
6544
- readonly aggregateID: string;
6545
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6546
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6547
- };
6450
+ readonly type: "permission.replied";
6548
6451
  readonly location?: {
6549
6452
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6550
6453
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6551
6454
  } | undefined;
6552
6455
  readonly data: {
6553
6456
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6457
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
6458
+ readonly reply: "always" | "once" | "reject";
6554
6459
  };
6555
6460
  } | {
6556
6461
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6558,51 +6463,14 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6558
6463
  readonly metadata?: {
6559
6464
  readonly [x: string]: unknown;
6560
6465
  } | undefined;
6561
- readonly type: "session.compaction.ended";
6562
- readonly durable: {
6563
- readonly aggregateID: string;
6564
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6565
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6566
- };
6466
+ readonly type: "filesystem.changed";
6567
6467
  readonly location?: {
6568
6468
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6569
6469
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6570
6470
  } | undefined;
6571
6471
  readonly data: {
6572
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6573
- readonly reason: "auto" | "manual";
6574
- readonly model?: {
6575
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6576
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6577
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6578
- } | undefined;
6579
- readonly providerState?: {
6580
- readonly [x: string]: unknown;
6581
- } | undefined;
6582
- readonly providerContext?: {
6583
- readonly version: 1;
6584
- readonly provenance: {
6585
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6586
- readonly provider: string;
6587
- readonly modelID: string;
6588
- readonly route: string;
6589
- readonly protocol: string;
6590
- readonly endpoint: string;
6591
- };
6592
- readonly messages: Schema.Json;
6593
- } | undefined;
6594
- readonly text: string;
6595
- readonly recent: string;
6596
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6597
- readonly tokens?: {
6598
- readonly input: number;
6599
- readonly output: number;
6600
- readonly reasoning: number;
6601
- readonly cache: {
6602
- readonly read: number;
6603
- readonly write: number;
6604
- };
6605
- } | undefined;
6472
+ readonly file: string;
6473
+ readonly event: "add" | "change" | "unlink";
6606
6474
  };
6607
6475
  } | {
6608
6476
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6610,7 +6478,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6610
6478
  readonly metadata?: {
6611
6479
  readonly [x: string]: unknown;
6612
6480
  } | undefined;
6613
- readonly type: "session.compaction.failed";
6481
+ readonly type: "worktree.resolved";
6614
6482
  readonly durable: {
6615
6483
  readonly aggregateID: string;
6616
6484
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6621,27 +6489,10 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6621
6489
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6622
6490
  } | undefined;
6623
6491
  readonly data: {
6624
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6625
- readonly reason: "auto" | "manual";
6626
- readonly error: {
6627
- readonly type: string;
6628
- readonly message: string;
6629
- readonly status?: number | undefined;
6630
- readonly response?: {
6631
- readonly body: string;
6632
- } | undefined;
6633
- };
6634
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6635
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6636
- readonly tokens?: {
6637
- readonly input: number;
6638
- readonly output: number;
6639
- readonly reasoning: number;
6640
- readonly cache: {
6641
- readonly read: number;
6642
- readonly write: number;
6643
- };
6644
- } | undefined;
6492
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6493
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6494
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
6495
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
6645
6496
  };
6646
6497
  } | {
6647
6498
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6649,21 +6500,13 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6649
6500
  readonly metadata?: {
6650
6501
  readonly [x: string]: unknown;
6651
6502
  } | undefined;
6652
- readonly type: "session.compaction.started";
6653
- readonly durable: {
6654
- readonly aggregateID: string;
6655
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6656
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6657
- };
6503
+ readonly type: "worktree.updated";
6658
6504
  readonly location?: {
6659
6505
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6660
6506
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6661
6507
  } | undefined;
6662
6508
  readonly data: {
6663
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6664
- readonly reason: "auto" | "manual";
6665
- readonly recent: string;
6666
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6509
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6667
6510
  };
6668
6511
  } | {
6669
6512
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6671,41 +6514,12 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6671
6514
  readonly metadata?: {
6672
6515
  readonly [x: string]: unknown;
6673
6516
  } | undefined;
6674
- readonly type: "session.created";
6675
- readonly durable: {
6676
- readonly aggregateID: string;
6677
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6678
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6679
- };
6517
+ readonly type: "installation.update-available";
6680
6518
  readonly location?: {
6681
6519
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6682
6520
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6683
6521
  } | undefined;
6684
6522
  readonly data: {
6685
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6686
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6687
- readonly location: {
6688
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6689
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6690
- };
6691
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6692
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6693
- readonly slug: string;
6694
- readonly title?: string | undefined;
6695
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6696
- readonly model?: {
6697
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6698
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6699
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6700
- } | undefined;
6701
- readonly metadata?: {
6702
- readonly [x: string]: Schema.Json;
6703
- } | undefined;
6704
- readonly permissions?: readonly {
6705
- readonly action: string;
6706
- readonly resource: string;
6707
- readonly effect: "allow" | "ask" | "deny";
6708
- }[] | undefined;
6709
6523
  readonly version: string;
6710
6524
  };
6711
6525
  } | {
@@ -6714,18 +6528,13 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6714
6528
  readonly metadata?: {
6715
6529
  readonly [x: string]: unknown;
6716
6530
  } | undefined;
6717
- readonly type: "session.deleted";
6718
- readonly durable: {
6719
- readonly aggregateID: string;
6720
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6721
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6722
- };
6531
+ readonly type: "installation.updated";
6723
6532
  readonly location?: {
6724
6533
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6725
6534
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6726
6535
  } | undefined;
6727
6536
  readonly data: {
6728
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6537
+ readonly version: string;
6729
6538
  };
6730
6539
  } | {
6731
6540
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6733,65 +6542,37 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6733
6542
  readonly metadata?: {
6734
6543
  readonly [x: string]: unknown;
6735
6544
  } | undefined;
6736
- readonly type: "session.execution.failed";
6737
- readonly durable: {
6738
- readonly aggregateID: string;
6739
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6740
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6741
- };
6545
+ readonly type: "models-dev.refreshed";
6742
6546
  readonly location?: {
6743
6547
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6744
6548
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6745
6549
  } | undefined;
6746
- readonly data: {
6747
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6748
- readonly error: {
6749
- readonly type: string;
6750
- readonly message: string;
6751
- readonly status?: number | undefined;
6752
- readonly response?: {
6753
- readonly body: string;
6754
- } | undefined;
6755
- };
6756
- };
6550
+ readonly data: {};
6757
6551
  } | {
6758
6552
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6759
6553
  readonly created: number;
6760
6554
  readonly metadata?: {
6761
6555
  readonly [x: string]: unknown;
6762
6556
  } | undefined;
6763
- readonly type: "session.execution.interrupted";
6764
- readonly durable: {
6765
- readonly aggregateID: string;
6766
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6767
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6768
- };
6557
+ readonly type: "reference.updated";
6769
6558
  readonly location?: {
6770
6559
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6771
6560
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6772
6561
  } | undefined;
6773
- readonly data: {
6774
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6775
- readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
6776
- };
6562
+ readonly data: {};
6777
6563
  } | {
6778
6564
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6779
6565
  readonly created: number;
6780
6566
  readonly metadata?: {
6781
6567
  readonly [x: string]: unknown;
6782
6568
  } | undefined;
6783
- readonly type: "session.execution.started";
6784
- readonly durable: {
6785
- readonly aggregateID: string;
6786
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6787
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6788
- };
6569
+ readonly type: "vcs.branch.updated";
6789
6570
  readonly location?: {
6790
6571
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6791
6572
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6792
6573
  } | undefined;
6793
6574
  readonly data: {
6794
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6575
+ readonly branch?: string | undefined;
6795
6576
  };
6796
6577
  } | {
6797
6578
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6799,18 +6580,12 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6799
6580
  readonly metadata?: {
6800
6581
  readonly [x: string]: unknown;
6801
6582
  } | undefined;
6802
- readonly type: "session.execution.succeeded";
6803
- readonly durable: {
6804
- readonly aggregateID: string;
6805
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6806
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6807
- };
6808
- readonly location?: {
6583
+ readonly type: `rpc.${string}`;
6584
+ readonly location: {
6809
6585
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6810
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6811
- } | undefined;
6586
+ };
6812
6587
  readonly data: {
6813
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6588
+ readonly [x: string]: unknown;
6814
6589
  };
6815
6590
  } | {
6816
6591
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6818,54 +6593,26 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6818
6593
  readonly metadata?: {
6819
6594
  readonly [x: string]: unknown;
6820
6595
  } | undefined;
6821
- readonly type: "session.forked";
6822
- readonly durable: {
6823
- readonly aggregateID: string;
6824
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6825
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6826
- };
6596
+ readonly type: "location.shutdown";
6827
6597
  readonly location?: {
6828
6598
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6829
6599
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6830
6600
  } | undefined;
6831
- readonly data: {
6832
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6833
- readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
6834
- readonly boundary: {
6835
- readonly type: "before";
6836
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6837
- } | {
6838
- readonly type: "through";
6839
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6840
- };
6841
- readonly instructions?: {
6842
- readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
6843
- } | undefined;
6844
- readonly instructionEntries?: readonly {
6845
- readonly key: string;
6846
- readonly value: Schema.Json;
6847
- readonly removed: boolean;
6848
- }[] | undefined;
6849
- };
6601
+ readonly data: {};
6850
6602
  } | {
6851
6603
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6852
6604
  readonly created: number;
6853
6605
  readonly metadata?: {
6854
6606
  readonly [x: string]: unknown;
6855
6607
  } | undefined;
6856
- readonly type: "session.inbox.cancelled";
6857
- readonly durable: {
6858
- readonly aggregateID: string;
6859
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6860
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6861
- };
6608
+ readonly type: "credential.switched";
6862
6609
  readonly location?: {
6863
6610
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6864
6611
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6865
6612
  } | undefined;
6866
6613
  readonly data: {
6867
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6868
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6614
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
6615
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
6869
6616
  };
6870
6617
  } | {
6871
6618
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6873,161 +6620,55 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6873
6620
  readonly metadata?: {
6874
6621
  readonly [x: string]: unknown;
6875
6622
  } | undefined;
6876
- readonly type: "session.inbox.delivered";
6877
- readonly durable: {
6878
- readonly aggregateID: string;
6879
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6880
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6881
- };
6623
+ readonly type: "credential.updated";
6882
6624
  readonly location?: {
6883
6625
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6884
6626
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6885
6627
  } | undefined;
6886
- readonly data: {
6887
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6888
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6889
- };
6628
+ readonly data: {};
6890
6629
  } | {
6891
6630
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6892
6631
  readonly created: number;
6893
6632
  readonly metadata?: {
6894
6633
  readonly [x: string]: unknown;
6895
6634
  } | undefined;
6896
- readonly type: "session.inbox.delivery.changed";
6897
- readonly durable: {
6898
- readonly aggregateID: string;
6899
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6900
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6901
- };
6635
+ readonly type: "integration.updated";
6902
6636
  readonly location?: {
6903
6637
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6904
6638
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6905
6639
  } | undefined;
6906
- readonly data: {
6907
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6908
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6909
- readonly delivery: "queue" | "steer";
6910
- };
6640
+ readonly data: {};
6911
6641
  } | {
6912
6642
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6913
6643
  readonly created: number;
6914
6644
  readonly metadata?: {
6915
6645
  readonly [x: string]: unknown;
6916
6646
  } | undefined;
6917
- readonly type: "session.inbox.enqueued";
6918
- readonly durable: {
6919
- readonly aggregateID: string;
6920
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6921
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6922
- };
6647
+ readonly type: "model.updated";
6923
6648
  readonly location?: {
6924
6649
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6925
6650
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6926
6651
  } | undefined;
6927
- readonly data: {
6928
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6929
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6930
- readonly item: {
6931
- readonly type: "user";
6932
- readonly payload: {
6933
- readonly text: string;
6934
- readonly files?: readonly {
6935
- readonly data: string;
6936
- readonly mime: string;
6937
- readonly source: {
6938
- readonly type: "inline";
6939
- } | {
6940
- readonly type: "uri";
6941
- readonly uri: string;
6942
- };
6943
- readonly name?: string | undefined;
6944
- readonly description?: string | undefined;
6945
- readonly mention?: {
6946
- readonly start: number;
6947
- readonly end: number;
6948
- readonly text: string;
6949
- } | undefined;
6950
- }[] | undefined;
6951
- readonly agents?: readonly {
6952
- readonly name: string;
6953
- readonly mention?: {
6954
- readonly start: number;
6955
- readonly end: number;
6956
- readonly text: string;
6957
- } | undefined;
6958
- }[] | undefined;
6959
- readonly skills?: readonly {
6960
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
6961
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
6962
- readonly text?: string | undefined;
6963
- readonly mention?: {
6964
- readonly start: number;
6965
- readonly end: number;
6966
- readonly text: string;
6967
- } | undefined;
6968
- }[] | undefined;
6969
- readonly metadata?: {
6970
- readonly [x: string]: unknown;
6971
- } | undefined;
6972
- };
6973
- readonly delivery: "queue" | "steer";
6974
- } | {
6975
- readonly type: "synthetic";
6976
- readonly payload: {
6977
- readonly text: string;
6978
- readonly description?: string | undefined;
6979
- readonly metadata?: {
6980
- readonly [x: string]: unknown;
6981
- } | undefined;
6982
- };
6983
- readonly delivery: "queue" | "steer";
6984
- } | {
6985
- readonly type: "compaction";
6986
- readonly payload: {};
6987
- readonly delivery: "queue" | "steer";
6988
- } | {
6989
- readonly type: "move";
6990
- readonly payload: {
6991
- readonly location: {
6992
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6993
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6994
- };
6995
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6996
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6997
- };
6998
- readonly delivery: "queue" | "steer";
6999
- };
7000
- };
6652
+ readonly data: {};
7001
6653
  } | {
7002
6654
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7003
6655
  readonly created: number;
7004
6656
  readonly metadata?: {
7005
6657
  readonly [x: string]: unknown;
7006
6658
  } | undefined;
7007
- readonly type: "session.instructions.updated";
7008
- readonly durable: {
7009
- readonly aggregateID: string;
7010
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7011
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7012
- };
6659
+ readonly type: "agent.updated";
7013
6660
  readonly location?: {
7014
6661
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7015
6662
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7016
6663
  } | undefined;
7017
- readonly data: {
7018
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7019
- readonly delta: {
7020
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
7021
- };
7022
- readonly text?: string | undefined;
7023
- };
6664
+ readonly data: {};
7024
6665
  } | {
7025
6666
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7026
6667
  readonly created: number;
7027
6668
  readonly metadata?: {
7028
6669
  readonly [x: string]: unknown;
7029
6670
  } | undefined;
7030
- readonly type: "session.metadata.updated";
6671
+ readonly type: "session.agent.selected";
7031
6672
  readonly durable: {
7032
6673
  readonly aggregateID: string;
7033
6674
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7039,9 +6680,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7039
6680
  } | undefined;
7040
6681
  readonly data: {
7041
6682
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7042
- readonly metadata: {
7043
- readonly [x: string]: Schema.Json;
7044
- };
6683
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6684
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
7045
6685
  };
7046
6686
  } | {
7047
6687
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7049,7 +6689,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7049
6689
  readonly metadata?: {
7050
6690
  readonly [x: string]: unknown;
7051
6691
  } | undefined;
7052
- readonly type: "session.model.selected";
6692
+ readonly type: "session.archived";
7053
6693
  readonly durable: {
7054
6694
  readonly aggregateID: string;
7055
6695
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7061,16 +6701,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7061
6701
  } | undefined;
7062
6702
  readonly data: {
7063
6703
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7064
- readonly model: {
7065
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7066
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7067
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7068
- };
7069
- readonly previous?: {
7070
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7071
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7072
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7073
- } | undefined;
7074
6704
  };
7075
6705
  } | {
7076
6706
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7078,7 +6708,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7078
6708
  readonly metadata?: {
7079
6709
  readonly [x: string]: unknown;
7080
6710
  } | undefined;
7081
- readonly type: "session.moved";
6711
+ readonly type: "session.compaction.ended";
7082
6712
  readonly durable: {
7083
6713
  readonly aggregateID: string;
7084
6714
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7089,13 +6719,27 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7089
6719
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7090
6720
  } | undefined;
7091
6721
  readonly data: {
7092
- readonly location: {
7093
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7094
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7095
- };
7096
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7097
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7098
6722
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6723
+ readonly reason: "auto" | "manual";
6724
+ readonly model?: {
6725
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6726
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6727
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6728
+ } | undefined;
6729
+ readonly native?: {
6730
+ readonly [x: string]: unknown;
6731
+ } | undefined;
6732
+ readonly text: string;
6733
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6734
+ readonly tokens?: {
6735
+ readonly input: number;
6736
+ readonly output: number;
6737
+ readonly reasoning: number;
6738
+ readonly cache: {
6739
+ readonly read: number;
6740
+ readonly write: number;
6741
+ };
6742
+ } | undefined;
7099
6743
  };
7100
6744
  } | {
7101
6745
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7103,7 +6747,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7103
6747
  readonly metadata?: {
7104
6748
  readonly [x: string]: unknown;
7105
6749
  } | undefined;
7106
- readonly type: "session.permissions";
6750
+ readonly type: "session.compaction.failed";
7107
6751
  readonly durable: {
7108
6752
  readonly aggregateID: string;
7109
6753
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7115,11 +6759,26 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7115
6759
  } | undefined;
7116
6760
  readonly data: {
7117
6761
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7118
- readonly permissions: readonly {
7119
- readonly action: string;
7120
- readonly resource: string;
7121
- readonly effect: "allow" | "ask" | "deny";
7122
- }[];
6762
+ readonly reason: "auto" | "manual";
6763
+ readonly error: {
6764
+ readonly type: string;
6765
+ readonly message: string;
6766
+ readonly status?: number | undefined;
6767
+ readonly response?: {
6768
+ readonly body: string;
6769
+ } | undefined;
6770
+ };
6771
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6772
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6773
+ readonly tokens?: {
6774
+ readonly input: number;
6775
+ readonly output: number;
6776
+ readonly reasoning: number;
6777
+ readonly cache: {
6778
+ readonly read: number;
6779
+ readonly write: number;
6780
+ };
6781
+ } | undefined;
7123
6782
  };
7124
6783
  } | {
7125
6784
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7127,7 +6786,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7127
6786
  readonly metadata?: {
7128
6787
  readonly [x: string]: unknown;
7129
6788
  } | undefined;
7130
- readonly type: "session.reasoning.ended";
6789
+ readonly type: "session.compaction.started";
7131
6790
  readonly durable: {
7132
6791
  readonly aggregateID: string;
7133
6792
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7139,12 +6798,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7139
6798
  } | undefined;
7140
6799
  readonly data: {
7141
6800
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7142
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7143
- readonly ordinal: number;
7144
- readonly text: string;
7145
- readonly state?: {
7146
- readonly [x: string]: unknown;
7147
- } | undefined;
6801
+ readonly reason: "auto" | "manual";
6802
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7148
6803
  };
7149
6804
  } | {
7150
6805
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7152,7 +6807,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7152
6807
  readonly metadata?: {
7153
6808
  readonly [x: string]: unknown;
7154
6809
  } | undefined;
7155
- readonly type: "session.reasoning.started";
6810
+ readonly type: "session.created";
7156
6811
  readonly durable: {
7157
6812
  readonly aggregateID: string;
7158
6813
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7164,11 +6819,30 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7164
6819
  } | undefined;
7165
6820
  readonly data: {
7166
6821
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7167
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7168
- readonly ordinal: number;
7169
- readonly state?: {
7170
- readonly [x: string]: unknown;
6822
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6823
+ readonly location: {
6824
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6825
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6826
+ };
6827
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6828
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6829
+ readonly slug: string;
6830
+ readonly title?: string | undefined;
6831
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6832
+ readonly model?: {
6833
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6834
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6835
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6836
+ } | undefined;
6837
+ readonly metadata?: {
6838
+ readonly [x: string]: Schema.Json;
7171
6839
  } | undefined;
6840
+ readonly permissions?: readonly {
6841
+ readonly action: string;
6842
+ readonly resource: string;
6843
+ readonly effect: "allow" | "ask" | "deny";
6844
+ }[] | undefined;
6845
+ readonly version: string;
7172
6846
  };
7173
6847
  } | {
7174
6848
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7176,7 +6850,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7176
6850
  readonly metadata?: {
7177
6851
  readonly [x: string]: unknown;
7178
6852
  } | undefined;
7179
- readonly type: "session.renamed";
6853
+ readonly type: "session.deleted";
7180
6854
  readonly durable: {
7181
6855
  readonly aggregateID: string;
7182
6856
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7188,7 +6862,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7188
6862
  } | undefined;
7189
6863
  readonly data: {
7190
6864
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7191
- readonly title: string;
7192
6865
  };
7193
6866
  } | {
7194
6867
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7196,7 +6869,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7196
6869
  readonly metadata?: {
7197
6870
  readonly [x: string]: unknown;
7198
6871
  } | undefined;
7199
- readonly type: "session.retry.scheduled";
6872
+ readonly type: "session.execution.failed";
7200
6873
  readonly durable: {
7201
6874
  readonly aggregateID: string;
7202
6875
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7208,9 +6881,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7208
6881
  } | undefined;
7209
6882
  readonly data: {
7210
6883
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7211
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7212
- readonly attempt: number;
7213
- readonly at: number;
7214
6884
  readonly error: {
7215
6885
  readonly type: string;
7216
6886
  readonly message: string;
@@ -7226,7 +6896,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7226
6896
  readonly metadata?: {
7227
6897
  readonly [x: string]: unknown;
7228
6898
  } | undefined;
7229
- readonly type: "session.revert.cleared";
6899
+ readonly type: "session.execution.interrupted";
7230
6900
  readonly durable: {
7231
6901
  readonly aggregateID: string;
7232
6902
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7238,6 +6908,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7238
6908
  } | undefined;
7239
6909
  readonly data: {
7240
6910
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6911
+ readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
7241
6912
  };
7242
6913
  } | {
7243
6914
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7245,7 +6916,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7245
6916
  readonly metadata?: {
7246
6917
  readonly [x: string]: unknown;
7247
6918
  } | undefined;
7248
- readonly type: "session.revert.committed";
6919
+ readonly type: "session.execution.started";
7249
6920
  readonly durable: {
7250
6921
  readonly aggregateID: string;
7251
6922
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7257,7 +6928,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7257
6928
  } | undefined;
7258
6929
  readonly data: {
7259
6930
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7260
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7261
6931
  };
7262
6932
  } | {
7263
6933
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7265,7 +6935,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7265
6935
  readonly metadata?: {
7266
6936
  readonly [x: string]: unknown;
7267
6937
  } | undefined;
7268
- readonly type: "session.revert.staged";
6938
+ readonly type: "session.execution.succeeded";
7269
6939
  readonly durable: {
7270
6940
  readonly aggregateID: string;
7271
6941
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7277,18 +6947,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7277
6947
  } | undefined;
7278
6948
  readonly data: {
7279
6949
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7280
- readonly revert: {
7281
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7282
- readonly partID?: string | undefined;
7283
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7284
- readonly files?: readonly {
7285
- readonly file: string;
7286
- readonly patch: string;
7287
- readonly additions: number;
7288
- readonly deletions: number;
7289
- readonly status: "added" | "deleted" | "modified";
7290
- }[] | undefined;
7291
- };
7292
6950
  };
7293
6951
  } | {
7294
6952
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7296,7 +6954,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7296
6954
  readonly metadata?: {
7297
6955
  readonly [x: string]: unknown;
7298
6956
  } | undefined;
7299
- readonly type: "session.shell.ended";
6957
+ readonly type: "session.forked";
7300
6958
  readonly durable: {
7301
6959
  readonly aggregateID: string;
7302
6960
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7308,30 +6966,22 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7308
6966
  } | undefined;
7309
6967
  readonly data: {
7310
6968
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7311
- readonly shell: {
7312
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7313
- readonly status: "exited" | "killed" | "running" | "timeout";
7314
- readonly command: string;
7315
- readonly cwd: string;
7316
- readonly shell: string;
7317
- readonly file: string;
7318
- readonly pid?: number | undefined;
7319
- readonly exit?: number | undefined;
7320
- readonly signal?: string | undefined;
7321
- readonly metadata: {
7322
- readonly [x: string]: unknown;
7323
- };
7324
- readonly time: {
7325
- readonly started: number;
7326
- readonly completed?: number | undefined;
7327
- };
7328
- };
7329
- readonly output: {
7330
- readonly output: string;
7331
- readonly cursor: number;
7332
- readonly size: number;
7333
- readonly truncated: boolean;
6969
+ readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
6970
+ readonly boundary: {
6971
+ readonly type: "before";
6972
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6973
+ } | {
6974
+ readonly type: "through";
6975
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7334
6976
  };
6977
+ readonly instructions?: {
6978
+ readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
6979
+ } | undefined;
6980
+ readonly instructionEntries?: readonly {
6981
+ readonly key: string;
6982
+ readonly value: Schema.Json;
6983
+ readonly removed: boolean;
6984
+ }[] | undefined;
7335
6985
  };
7336
6986
  } | {
7337
6987
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7339,7 +6989,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7339
6989
  readonly metadata?: {
7340
6990
  readonly [x: string]: unknown;
7341
6991
  } | undefined;
7342
- readonly type: "session.shell.started";
6992
+ readonly type: "session.inbox.cancelled";
7343
6993
  readonly durable: {
7344
6994
  readonly aggregateID: string;
7345
6995
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7351,24 +7001,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7351
7001
  } | undefined;
7352
7002
  readonly data: {
7353
7003
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7354
- readonly shell: {
7355
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7356
- readonly status: "exited" | "killed" | "running" | "timeout";
7357
- readonly command: string;
7358
- readonly cwd: string;
7359
- readonly shell: string;
7360
- readonly file: string;
7361
- readonly pid?: number | undefined;
7362
- readonly exit?: number | undefined;
7363
- readonly signal?: string | undefined;
7364
- readonly metadata: {
7365
- readonly [x: string]: unknown;
7366
- };
7367
- readonly time: {
7368
- readonly started: number;
7369
- readonly completed?: number | undefined;
7370
- };
7371
- };
7004
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7372
7005
  };
7373
7006
  } | {
7374
7007
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7376,7 +7009,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7376
7009
  readonly metadata?: {
7377
7010
  readonly [x: string]: unknown;
7378
7011
  } | undefined;
7379
- readonly type: "session.skill.activated";
7012
+ readonly type: "session.inbox.delivered";
7380
7013
  readonly durable: {
7381
7014
  readonly aggregateID: string;
7382
7015
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7388,9 +7021,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7388
7021
  } | undefined;
7389
7022
  readonly data: {
7390
7023
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7391
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7392
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7393
- readonly text: string;
7024
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7394
7025
  };
7395
7026
  } | {
7396
7027
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7398,7 +7029,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7398
7029
  readonly metadata?: {
7399
7030
  readonly [x: string]: unknown;
7400
7031
  } | undefined;
7401
- readonly type: "session.step.ended";
7032
+ readonly type: "session.inbox.delivery.changed";
7402
7033
  readonly durable: {
7403
7034
  readonly aggregateID: string;
7404
7035
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7410,24 +7041,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7410
7041
  } | undefined;
7411
7042
  readonly data: {
7412
7043
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7413
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7414
- readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
7415
- readonly rawFinish?: string | undefined;
7416
- readonly providerState?: {
7417
- readonly [x: string]: unknown;
7418
- } | undefined;
7419
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7420
- readonly tokens: {
7421
- readonly input: number;
7422
- readonly output: number;
7423
- readonly reasoning: number;
7424
- readonly cache: {
7425
- readonly read: number;
7426
- readonly write: number;
7427
- };
7428
- };
7429
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7430
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7044
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7045
+ readonly delivery: "queue" | "steer";
7431
7046
  };
7432
7047
  } | {
7433
7048
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7435,7 +7050,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7435
7050
  readonly metadata?: {
7436
7051
  readonly [x: string]: unknown;
7437
7052
  } | undefined;
7438
- readonly type: "session.step.failed";
7053
+ readonly type: "session.inbox.enqueued";
7439
7054
  readonly durable: {
7440
7055
  readonly aggregateID: string;
7441
7056
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7447,32 +7062,77 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7447
7062
  } | undefined;
7448
7063
  readonly data: {
7449
7064
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7450
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7451
- readonly error: {
7452
- readonly type: string;
7453
- readonly message: string;
7454
- readonly status?: number | undefined;
7455
- readonly response?: {
7456
- readonly body: string;
7457
- } | undefined;
7458
- };
7459
- readonly finish?: "content-filter" | undefined;
7460
- readonly rawFinish?: string | undefined;
7461
- readonly providerState?: {
7462
- readonly [x: string]: unknown;
7463
- } | undefined;
7464
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7465
- readonly tokens?: {
7466
- readonly input: number;
7467
- readonly output: number;
7468
- readonly reasoning: number;
7469
- readonly cache: {
7470
- readonly read: number;
7471
- readonly write: number;
7065
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7066
+ readonly item: {
7067
+ readonly type: "user";
7068
+ readonly payload: {
7069
+ readonly text: string;
7070
+ readonly files?: readonly {
7071
+ readonly data: string;
7072
+ readonly mime: string;
7073
+ readonly source: {
7074
+ readonly type: "inline";
7075
+ } | {
7076
+ readonly type: "uri";
7077
+ readonly uri: string;
7078
+ };
7079
+ readonly name?: string | undefined;
7080
+ readonly description?: string | undefined;
7081
+ readonly mention?: {
7082
+ readonly start: number;
7083
+ readonly end: number;
7084
+ readonly text: string;
7085
+ } | undefined;
7086
+ }[] | undefined;
7087
+ readonly agents?: readonly {
7088
+ readonly name: string;
7089
+ readonly mention?: {
7090
+ readonly start: number;
7091
+ readonly end: number;
7092
+ readonly text: string;
7093
+ } | undefined;
7094
+ }[] | undefined;
7095
+ readonly skills?: readonly {
7096
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7097
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7098
+ readonly text?: string | undefined;
7099
+ readonly mention?: {
7100
+ readonly start: number;
7101
+ readonly end: number;
7102
+ readonly text: string;
7103
+ } | undefined;
7104
+ }[] | undefined;
7105
+ readonly metadata?: {
7106
+ readonly [x: string]: unknown;
7107
+ } | undefined;
7472
7108
  };
7473
- } | undefined;
7474
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7475
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7109
+ readonly delivery: "queue" | "steer";
7110
+ } | {
7111
+ readonly type: "synthetic";
7112
+ readonly payload: {
7113
+ readonly text: string;
7114
+ readonly description?: string | undefined;
7115
+ readonly metadata?: {
7116
+ readonly [x: string]: unknown;
7117
+ } | undefined;
7118
+ };
7119
+ readonly delivery: "queue" | "steer";
7120
+ } | {
7121
+ readonly type: "compaction";
7122
+ readonly payload: {};
7123
+ readonly delivery: "queue" | "steer";
7124
+ } | {
7125
+ readonly type: "move";
7126
+ readonly payload: {
7127
+ readonly location: {
7128
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7129
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7130
+ };
7131
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7132
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7133
+ };
7134
+ readonly delivery: "queue" | "steer";
7135
+ };
7476
7136
  };
7477
7137
  } | {
7478
7138
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7480,7 +7140,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7480
7140
  readonly metadata?: {
7481
7141
  readonly [x: string]: unknown;
7482
7142
  } | undefined;
7483
- readonly type: "session.step.started";
7143
+ readonly type: "session.instructions.updated";
7484
7144
  readonly durable: {
7485
7145
  readonly aggregateID: string;
7486
7146
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7492,15 +7152,10 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7492
7152
  } | undefined;
7493
7153
  readonly data: {
7494
7154
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7495
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7496
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7497
- readonly model: {
7498
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7499
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7500
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7155
+ readonly delta: {
7156
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
7501
7157
  };
7502
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7503
- readonly started: number;
7158
+ readonly text?: string | undefined;
7504
7159
  };
7505
7160
  } | {
7506
7161
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7508,7 +7163,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7508
7163
  readonly metadata?: {
7509
7164
  readonly [x: string]: unknown;
7510
7165
  } | undefined;
7511
- readonly type: "session.step.streamed";
7166
+ readonly type: "session.metadata.updated";
7512
7167
  readonly durable: {
7513
7168
  readonly aggregateID: string;
7514
7169
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7520,7 +7175,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7520
7175
  } | undefined;
7521
7176
  readonly data: {
7522
7177
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7523
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7178
+ readonly metadata: {
7179
+ readonly [x: string]: Schema.Json;
7180
+ };
7524
7181
  };
7525
7182
  } | {
7526
7183
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7528,7 +7185,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7528
7185
  readonly metadata?: {
7529
7186
  readonly [x: string]: unknown;
7530
7187
  } | undefined;
7531
- readonly type: "session.synthetic";
7188
+ readonly type: "session.model.selected";
7532
7189
  readonly durable: {
7533
7190
  readonly aggregateID: string;
7534
7191
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7540,10 +7197,15 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7540
7197
  } | undefined;
7541
7198
  readonly data: {
7542
7199
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7543
- readonly text: string;
7544
- readonly description?: string | undefined;
7545
- readonly metadata?: {
7546
- readonly [x: string]: unknown;
7200
+ readonly model: {
7201
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7202
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7203
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7204
+ };
7205
+ readonly previous?: {
7206
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7207
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7208
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7547
7209
  } | undefined;
7548
7210
  };
7549
7211
  } | {
@@ -7552,7 +7214,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7552
7214
  readonly metadata?: {
7553
7215
  readonly [x: string]: unknown;
7554
7216
  } | undefined;
7555
- readonly type: "session.text.ended";
7217
+ readonly type: "session.moved";
7556
7218
  readonly durable: {
7557
7219
  readonly aggregateID: string;
7558
7220
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7563,13 +7225,13 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7563
7225
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7564
7226
  } | undefined;
7565
7227
  readonly data: {
7228
+ readonly location: {
7229
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7230
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7231
+ };
7232
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7233
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7566
7234
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7567
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7568
- readonly ordinal: number;
7569
- readonly text: string;
7570
- readonly state?: {
7571
- readonly [x: string]: unknown;
7572
- } | undefined;
7573
7235
  };
7574
7236
  } | {
7575
7237
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7577,7 +7239,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7577
7239
  readonly metadata?: {
7578
7240
  readonly [x: string]: unknown;
7579
7241
  } | undefined;
7580
- readonly type: "session.text.started";
7242
+ readonly type: "session.permissions";
7581
7243
  readonly durable: {
7582
7244
  readonly aggregateID: string;
7583
7245
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7589,8 +7251,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7589
7251
  } | undefined;
7590
7252
  readonly data: {
7591
7253
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7592
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7593
- readonly ordinal: number;
7254
+ readonly permissions: readonly {
7255
+ readonly action: string;
7256
+ readonly resource: string;
7257
+ readonly effect: "allow" | "ask" | "deny";
7258
+ }[];
7594
7259
  };
7595
7260
  } | {
7596
7261
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7598,7 +7263,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7598
7263
  readonly metadata?: {
7599
7264
  readonly [x: string]: unknown;
7600
7265
  } | undefined;
7601
- readonly type: "session.tool.called";
7266
+ readonly type: "session.reasoning.ended";
7602
7267
  readonly durable: {
7603
7268
  readonly aggregateID: string;
7604
7269
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7611,12 +7276,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7611
7276
  readonly data: {
7612
7277
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7613
7278
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7614
- readonly id: string;
7615
- readonly input: {
7616
- readonly [x: string]: unknown;
7617
- };
7618
- readonly executed: boolean;
7619
- readonly state?: {
7279
+ readonly ordinal: number;
7280
+ readonly text: string;
7281
+ readonly native?: {
7620
7282
  readonly [x: string]: unknown;
7621
7283
  } | undefined;
7622
7284
  };
@@ -7626,7 +7288,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7626
7288
  readonly metadata?: {
7627
7289
  readonly [x: string]: unknown;
7628
7290
  } | undefined;
7629
- readonly type: "session.tool.failed";
7291
+ readonly type: "session.reasoning.started";
7630
7292
  readonly durable: {
7631
7293
  readonly aggregateID: string;
7632
7294
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7639,37 +7301,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7639
7301
  readonly data: {
7640
7302
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7641
7303
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7642
- readonly id: string;
7643
- readonly error: {
7644
- readonly type: string;
7645
- readonly message: string;
7646
- readonly status?: number | undefined;
7647
- readonly response?: {
7648
- readonly body: string;
7649
- } | undefined;
7650
- };
7651
- readonly content?: readonly [{
7652
- readonly type: "text";
7653
- readonly text: string;
7654
- } | {
7655
- readonly type: "file";
7656
- readonly uri: string;
7657
- readonly mime: string;
7658
- readonly name?: string | undefined;
7659
- }, ...({
7660
- readonly type: "text";
7661
- readonly text: string;
7662
- } | {
7663
- readonly type: "file";
7664
- readonly uri: string;
7665
- readonly mime: string;
7666
- readonly name?: string | undefined;
7667
- })[]] | undefined;
7668
- readonly metadata?: {
7669
- readonly [x: string]: Schema.Json;
7670
- } | undefined;
7671
- readonly executed: boolean;
7672
- readonly resultState?: {
7304
+ readonly ordinal: number;
7305
+ readonly native?: {
7673
7306
  readonly [x: string]: unknown;
7674
7307
  } | undefined;
7675
7308
  };
@@ -7679,7 +7312,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7679
7312
  readonly metadata?: {
7680
7313
  readonly [x: string]: unknown;
7681
7314
  } | undefined;
7682
- readonly type: "session.tool.input.ended";
7315
+ readonly type: "session.renamed";
7683
7316
  readonly durable: {
7684
7317
  readonly aggregateID: string;
7685
7318
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7691,9 +7324,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7691
7324
  } | undefined;
7692
7325
  readonly data: {
7693
7326
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7694
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7695
- readonly id: string;
7696
- readonly text: string;
7327
+ readonly title: string;
7697
7328
  };
7698
7329
  } | {
7699
7330
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7701,7 +7332,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7701
7332
  readonly metadata?: {
7702
7333
  readonly [x: string]: unknown;
7703
7334
  } | undefined;
7704
- readonly type: "session.tool.input.started";
7335
+ readonly type: "session.retry.scheduled";
7705
7336
  readonly durable: {
7706
7337
  readonly aggregateID: string;
7707
7338
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7714,8 +7345,16 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7714
7345
  readonly data: {
7715
7346
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7716
7347
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7717
- readonly id: string;
7718
- readonly name: string;
7348
+ readonly attempt: number;
7349
+ readonly at: number;
7350
+ readonly error: {
7351
+ readonly type: string;
7352
+ readonly message: string;
7353
+ readonly status?: number | undefined;
7354
+ readonly response?: {
7355
+ readonly body: string;
7356
+ } | undefined;
7357
+ };
7719
7358
  };
7720
7359
  } | {
7721
7360
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7723,7 +7362,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7723
7362
  readonly metadata?: {
7724
7363
  readonly [x: string]: unknown;
7725
7364
  } | undefined;
7726
- readonly type: "session.tool.success";
7365
+ readonly type: "session.revert.cleared";
7727
7366
  readonly durable: {
7728
7367
  readonly aggregateID: string;
7729
7368
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7735,32 +7374,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7735
7374
  } | undefined;
7736
7375
  readonly data: {
7737
7376
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7738
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7739
- readonly id: string;
7740
- readonly content: readonly [{
7741
- readonly type: "text";
7742
- readonly text: string;
7743
- } | {
7744
- readonly type: "file";
7745
- readonly uri: string;
7746
- readonly mime: string;
7747
- readonly name?: string | undefined;
7748
- }, ...({
7749
- readonly type: "text";
7750
- readonly text: string;
7751
- } | {
7752
- readonly type: "file";
7753
- readonly uri: string;
7754
- readonly mime: string;
7755
- readonly name?: string | undefined;
7756
- })[]];
7757
- readonly metadata?: {
7758
- readonly [x: string]: Schema.Json;
7759
- } | undefined;
7760
- readonly executed: boolean;
7761
- readonly resultState?: {
7762
- readonly [x: string]: unknown;
7763
- } | undefined;
7764
7377
  };
7765
7378
  } | {
7766
7379
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7768,7 +7381,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7768
7381
  readonly metadata?: {
7769
7382
  readonly [x: string]: unknown;
7770
7383
  } | undefined;
7771
- readonly type: "session.unarchived";
7384
+ readonly type: "session.revert.committed";
7772
7385
  readonly durable: {
7773
7386
  readonly aggregateID: string;
7774
7387
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7780,6 +7393,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7780
7393
  } | undefined;
7781
7394
  readonly data: {
7782
7395
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7396
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7783
7397
  };
7784
7398
  } | {
7785
7399
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7787,7 +7401,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7787
7401
  readonly metadata?: {
7788
7402
  readonly [x: string]: unknown;
7789
7403
  } | undefined;
7790
- readonly type: "session.viewed";
7404
+ readonly type: "session.revert.staged";
7791
7405
  readonly durable: {
7792
7406
  readonly aggregateID: string;
7793
7407
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7799,7 +7413,18 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7799
7413
  } | undefined;
7800
7414
  readonly data: {
7801
7415
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7802
- readonly idle: number;
7416
+ readonly revert: {
7417
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7418
+ readonly partID?: string | undefined;
7419
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7420
+ readonly files?: readonly {
7421
+ readonly file: string;
7422
+ readonly patch: string;
7423
+ readonly additions: number;
7424
+ readonly deletions: number;
7425
+ readonly status: "added" | "deleted" | "modified";
7426
+ }[] | undefined;
7427
+ };
7803
7428
  };
7804
7429
  } | {
7805
7430
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7807,31 +7432,42 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7807
7432
  readonly metadata?: {
7808
7433
  readonly [x: string]: unknown;
7809
7434
  } | undefined;
7810
- readonly type: "session.compaction.delta";
7811
- readonly location?: {
7812
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7813
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7814
- } | undefined;
7815
- readonly data: {
7816
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7817
- readonly text: string;
7435
+ readonly type: "session.shell.ended";
7436
+ readonly durable: {
7437
+ readonly aggregateID: string;
7438
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7439
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7818
7440
  };
7819
- } | {
7820
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7821
- readonly created: number;
7822
- readonly metadata?: {
7823
- readonly [x: string]: unknown;
7824
- } | undefined;
7825
- readonly type: "session.reasoning.delta";
7826
7441
  readonly location?: {
7827
7442
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7828
7443
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7829
7444
  } | undefined;
7830
7445
  readonly data: {
7831
7446
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7832
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7833
- readonly ordinal: number;
7834
- readonly delta: string;
7447
+ readonly shell: {
7448
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7449
+ readonly status: "exited" | "killed" | "running" | "timeout";
7450
+ readonly command: string;
7451
+ readonly cwd: string;
7452
+ readonly shell: string;
7453
+ readonly file: string;
7454
+ readonly pid?: number | undefined;
7455
+ readonly exit?: number | undefined;
7456
+ readonly signal?: string | undefined;
7457
+ readonly metadata: {
7458
+ readonly [x: string]: unknown;
7459
+ };
7460
+ readonly time: {
7461
+ readonly started: number;
7462
+ readonly completed?: number | undefined;
7463
+ };
7464
+ };
7465
+ readonly output: {
7466
+ readonly output: string;
7467
+ readonly cursor: number;
7468
+ readonly size: number;
7469
+ readonly truncated: boolean;
7470
+ };
7835
7471
  };
7836
7472
  } | {
7837
7473
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7839,16 +7475,36 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7839
7475
  readonly metadata?: {
7840
7476
  readonly [x: string]: unknown;
7841
7477
  } | undefined;
7842
- readonly type: "session.text.delta";
7478
+ readonly type: "session.shell.started";
7479
+ readonly durable: {
7480
+ readonly aggregateID: string;
7481
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7482
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7483
+ };
7843
7484
  readonly location?: {
7844
7485
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7845
7486
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7846
7487
  } | undefined;
7847
7488
  readonly data: {
7848
7489
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7849
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7850
- readonly ordinal: number;
7851
- readonly delta: string;
7490
+ readonly shell: {
7491
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7492
+ readonly status: "exited" | "killed" | "running" | "timeout";
7493
+ readonly command: string;
7494
+ readonly cwd: string;
7495
+ readonly shell: string;
7496
+ readonly file: string;
7497
+ readonly pid?: number | undefined;
7498
+ readonly exit?: number | undefined;
7499
+ readonly signal?: string | undefined;
7500
+ readonly metadata: {
7501
+ readonly [x: string]: unknown;
7502
+ };
7503
+ readonly time: {
7504
+ readonly started: number;
7505
+ readonly completed?: number | undefined;
7506
+ };
7507
+ };
7852
7508
  };
7853
7509
  } | {
7854
7510
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7856,16 +7512,21 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7856
7512
  readonly metadata?: {
7857
7513
  readonly [x: string]: unknown;
7858
7514
  } | undefined;
7859
- readonly type: "session.tool.input.delta";
7515
+ readonly type: "session.skill.activated";
7516
+ readonly durable: {
7517
+ readonly aggregateID: string;
7518
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7519
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7520
+ };
7860
7521
  readonly location?: {
7861
7522
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7862
7523
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7863
7524
  } | undefined;
7864
7525
  readonly data: {
7865
7526
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7866
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7867
- readonly id: string;
7868
- readonly delta: string;
7527
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7528
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7529
+ readonly text: string;
7869
7530
  };
7870
7531
  } | {
7871
7532
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7873,7 +7534,12 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7873
7534
  readonly metadata?: {
7874
7535
  readonly [x: string]: unknown;
7875
7536
  } | undefined;
7876
- readonly type: "session.tool.progress";
7537
+ readonly type: "session.step.ended";
7538
+ readonly durable: {
7539
+ readonly aggregateID: string;
7540
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7541
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7542
+ };
7877
7543
  readonly location?: {
7878
7544
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7879
7545
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7881,10 +7547,23 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7881
7547
  readonly data: {
7882
7548
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7883
7549
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7884
- readonly id: string;
7885
- readonly metadata: {
7886
- readonly [x: string]: Schema.Json;
7550
+ readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
7551
+ readonly rawFinish?: string | undefined;
7552
+ readonly native?: {
7553
+ readonly [x: string]: unknown;
7554
+ } | undefined;
7555
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7556
+ readonly tokens: {
7557
+ readonly input: number;
7558
+ readonly output: number;
7559
+ readonly reasoning: number;
7560
+ readonly cache: {
7561
+ readonly read: number;
7562
+ readonly write: number;
7563
+ };
7887
7564
  };
7565
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7566
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7888
7567
  };
7889
7568
  } | {
7890
7569
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7892,15 +7571,34 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7892
7571
  readonly metadata?: {
7893
7572
  readonly [x: string]: unknown;
7894
7573
  } | undefined;
7895
- readonly type: "session.usage.updated";
7574
+ readonly type: "session.step.failed";
7575
+ readonly durable: {
7576
+ readonly aggregateID: string;
7577
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7578
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7579
+ };
7896
7580
  readonly location?: {
7897
7581
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7898
7582
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7899
7583
  } | undefined;
7900
7584
  readonly data: {
7901
7585
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7902
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7903
- readonly tokens: {
7586
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7587
+ readonly error: {
7588
+ readonly type: string;
7589
+ readonly message: string;
7590
+ readonly status?: number | undefined;
7591
+ readonly response?: {
7592
+ readonly body: string;
7593
+ } | undefined;
7594
+ };
7595
+ readonly finish?: "content-filter" | undefined;
7596
+ readonly rawFinish?: string | undefined;
7597
+ readonly native?: {
7598
+ readonly [x: string]: unknown;
7599
+ } | undefined;
7600
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7601
+ readonly tokens?: {
7904
7602
  readonly input: number;
7905
7603
  readonly output: number;
7906
7604
  readonly reasoning: number;
@@ -7908,7 +7606,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7908
7606
  readonly read: number;
7909
7607
  readonly write: number;
7910
7608
  };
7911
- };
7609
+ } | undefined;
7610
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7611
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7912
7612
  };
7913
7613
  } | {
7914
7614
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7916,19 +7616,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7916
7616
  readonly metadata?: {
7917
7617
  readonly [x: string]: unknown;
7918
7618
  } | undefined;
7919
- readonly type: "websearch.updated";
7920
- readonly location?: {
7921
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7922
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7923
- } | undefined;
7924
- readonly data: {};
7925
- } | {
7926
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7927
- readonly created: number;
7928
- readonly metadata?: {
7929
- readonly [x: string]: unknown;
7930
- } | undefined;
7931
- readonly type: "worktree.resolved";
7619
+ readonly type: "session.step.started";
7932
7620
  readonly durable: {
7933
7621
  readonly aggregateID: string;
7934
7622
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7939,10 +7627,16 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7939
7627
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7940
7628
  } | undefined;
7941
7629
  readonly data: {
7942
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7943
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7944
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
7945
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
7630
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7631
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7632
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7633
+ readonly model: {
7634
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7635
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7636
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7637
+ };
7638
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7639
+ readonly started: number;
7946
7640
  };
7947
7641
  } | {
7948
7642
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7950,13 +7644,19 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7950
7644
  readonly metadata?: {
7951
7645
  readonly [x: string]: unknown;
7952
7646
  } | undefined;
7953
- readonly type: "worktree.updated";
7647
+ readonly type: "session.step.streamed";
7648
+ readonly durable: {
7649
+ readonly aggregateID: string;
7650
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7651
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7652
+ };
7954
7653
  readonly location?: {
7955
7654
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7956
7655
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7957
7656
  } | undefined;
7958
7657
  readonly data: {
7959
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7658
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7659
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7960
7660
  };
7961
7661
  } | {
7962
7662
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7964,22 +7664,23 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7964
7664
  readonly metadata?: {
7965
7665
  readonly [x: string]: unknown;
7966
7666
  } | undefined;
7967
- readonly type: "pty.created";
7667
+ readonly type: "session.synthetic";
7668
+ readonly durable: {
7669
+ readonly aggregateID: string;
7670
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7671
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7672
+ };
7968
7673
  readonly location?: {
7969
7674
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7970
7675
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7971
7676
  } | undefined;
7972
7677
  readonly data: {
7973
- readonly info: {
7974
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
7975
- readonly title: string;
7976
- readonly command: string;
7977
- readonly args: readonly string[];
7978
- readonly cwd: string;
7979
- readonly status: "exited" | "running";
7980
- readonly pid: number;
7981
- readonly exitCode?: number | undefined;
7982
- };
7678
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7679
+ readonly text: string;
7680
+ readonly description?: string | undefined;
7681
+ readonly metadata?: {
7682
+ readonly [x: string]: unknown;
7683
+ } | undefined;
7983
7684
  };
7984
7685
  } | {
7985
7686
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7987,13 +7688,24 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7987
7688
  readonly metadata?: {
7988
7689
  readonly [x: string]: unknown;
7989
7690
  } | undefined;
7990
- readonly type: "pty.deleted";
7691
+ readonly type: "session.text.ended";
7692
+ readonly durable: {
7693
+ readonly aggregateID: string;
7694
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7695
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7696
+ };
7991
7697
  readonly location?: {
7992
7698
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7993
7699
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7994
7700
  } | undefined;
7995
7701
  readonly data: {
7996
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
7702
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7703
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7704
+ readonly ordinal: number;
7705
+ readonly text: string;
7706
+ readonly native?: {
7707
+ readonly [x: string]: unknown;
7708
+ } | undefined;
7997
7709
  };
7998
7710
  } | {
7999
7711
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8001,14 +7713,20 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8001
7713
  readonly metadata?: {
8002
7714
  readonly [x: string]: unknown;
8003
7715
  } | undefined;
8004
- readonly type: "pty.exited";
7716
+ readonly type: "session.text.started";
7717
+ readonly durable: {
7718
+ readonly aggregateID: string;
7719
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7720
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7721
+ };
8005
7722
  readonly location?: {
8006
7723
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8007
7724
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8008
7725
  } | undefined;
8009
7726
  readonly data: {
8010
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8011
- readonly exitCode: number;
7727
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7728
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7729
+ readonly ordinal: number;
8012
7730
  };
8013
7731
  } | {
8014
7732
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8016,22 +7734,27 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8016
7734
  readonly metadata?: {
8017
7735
  readonly [x: string]: unknown;
8018
7736
  } | undefined;
8019
- readonly type: "pty.updated";
7737
+ readonly type: "session.tool.called";
7738
+ readonly durable: {
7739
+ readonly aggregateID: string;
7740
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7741
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7742
+ };
8020
7743
  readonly location?: {
8021
7744
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8022
7745
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8023
7746
  } | undefined;
8024
7747
  readonly data: {
8025
- readonly info: {
8026
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8027
- readonly title: string;
8028
- readonly command: string;
8029
- readonly args: readonly string[];
8030
- readonly cwd: string;
8031
- readonly status: "exited" | "running";
8032
- readonly pid: number;
8033
- readonly exitCode?: number | undefined;
7748
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7749
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7750
+ readonly id: string;
7751
+ readonly input: {
7752
+ readonly [x: string]: unknown;
8034
7753
  };
7754
+ readonly executed: boolean;
7755
+ readonly native?: {
7756
+ readonly [x: string]: unknown;
7757
+ } | undefined;
8035
7758
  };
8036
7759
  } | {
8037
7760
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8039,13 +7762,52 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8039
7762
  readonly metadata?: {
8040
7763
  readonly [x: string]: unknown;
8041
7764
  } | undefined;
8042
- readonly type: "vcs.branch.updated";
7765
+ readonly type: "session.tool.failed";
7766
+ readonly durable: {
7767
+ readonly aggregateID: string;
7768
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7769
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7770
+ };
8043
7771
  readonly location?: {
8044
7772
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8045
7773
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8046
7774
  } | undefined;
8047
7775
  readonly data: {
8048
- readonly branch?: string | undefined;
7776
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7777
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7778
+ readonly id: string;
7779
+ readonly error: {
7780
+ readonly type: string;
7781
+ readonly message: string;
7782
+ readonly status?: number | undefined;
7783
+ readonly response?: {
7784
+ readonly body: string;
7785
+ } | undefined;
7786
+ };
7787
+ readonly content?: readonly [{
7788
+ readonly type: "text";
7789
+ readonly text: string;
7790
+ } | {
7791
+ readonly type: "file";
7792
+ readonly uri: string;
7793
+ readonly mime: string;
7794
+ readonly name?: string | undefined;
7795
+ }, ...({
7796
+ readonly type: "text";
7797
+ readonly text: string;
7798
+ } | {
7799
+ readonly type: "file";
7800
+ readonly uri: string;
7801
+ readonly mime: string;
7802
+ readonly name?: string | undefined;
7803
+ })[]] | undefined;
7804
+ readonly metadata?: {
7805
+ readonly [x: string]: Schema.Json;
7806
+ } | undefined;
7807
+ readonly executed: boolean;
7808
+ readonly native?: {
7809
+ readonly [x: string]: unknown;
7810
+ } | undefined;
8049
7811
  };
8050
7812
  } | {
8051
7813
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8053,51 +7815,88 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8053
7815
  readonly metadata?: {
8054
7816
  readonly [x: string]: unknown;
8055
7817
  } | undefined;
8056
- readonly type: `rpc.${string}`;
8057
- readonly location: {
8058
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8059
- };
8060
- readonly data: {
8061
- readonly [x: string]: unknown;
7818
+ readonly type: "session.tool.input.ended";
7819
+ readonly durable: {
7820
+ readonly aggregateID: string;
7821
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7822
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8062
7823
  };
8063
- } | {
8064
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8065
- readonly created: number;
8066
- readonly metadata?: {
8067
- readonly [x: string]: unknown;
8068
- } | undefined;
8069
- readonly type: "location.shutdown";
8070
7824
  readonly location?: {
8071
7825
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8072
7826
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8073
7827
  } | undefined;
8074
- readonly data: {};
7828
+ readonly data: {
7829
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7830
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7831
+ readonly id: string;
7832
+ readonly text: string;
7833
+ };
8075
7834
  } | {
8076
7835
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8077
7836
  readonly created: number;
8078
7837
  readonly metadata?: {
8079
7838
  readonly [x: string]: unknown;
8080
7839
  } | undefined;
8081
- readonly type: "models-dev.refreshed";
7840
+ readonly type: "session.tool.input.started";
7841
+ readonly durable: {
7842
+ readonly aggregateID: string;
7843
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7844
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7845
+ };
8082
7846
  readonly location?: {
8083
7847
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8084
7848
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8085
7849
  } | undefined;
8086
- readonly data: {};
7850
+ readonly data: {
7851
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7852
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7853
+ readonly id: string;
7854
+ readonly name: string;
7855
+ };
8087
7856
  } | {
8088
7857
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8089
7858
  readonly created: number;
8090
7859
  readonly metadata?: {
8091
7860
  readonly [x: string]: unknown;
8092
7861
  } | undefined;
8093
- readonly type: "credential.switched";
7862
+ readonly type: "session.tool.success";
7863
+ readonly durable: {
7864
+ readonly aggregateID: string;
7865
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7866
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7867
+ };
8094
7868
  readonly location?: {
8095
7869
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8096
7870
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8097
7871
  } | undefined;
8098
7872
  readonly data: {
8099
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
8100
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
7873
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7874
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7875
+ readonly id: string;
7876
+ readonly content: readonly [{
7877
+ readonly type: "text";
7878
+ readonly text: string;
7879
+ } | {
7880
+ readonly type: "file";
7881
+ readonly uri: string;
7882
+ readonly mime: string;
7883
+ readonly name?: string | undefined;
7884
+ }, ...({
7885
+ readonly type: "text";
7886
+ readonly text: string;
7887
+ } | {
7888
+ readonly type: "file";
7889
+ readonly uri: string;
7890
+ readonly mime: string;
7891
+ readonly name?: string | undefined;
7892
+ })[]];
7893
+ readonly metadata?: {
7894
+ readonly [x: string]: Schema.Json;
7895
+ } | undefined;
7896
+ readonly executed: boolean;
7897
+ readonly native?: {
7898
+ readonly [x: string]: unknown;
7899
+ } | undefined;
8101
7900
  };
8102
7901
  } | {
8103
7902
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8105,62 +7904,87 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8105
7904
  readonly metadata?: {
8106
7905
  readonly [x: string]: unknown;
8107
7906
  } | undefined;
8108
- readonly type: "credential.updated";
7907
+ readonly type: "session.unarchived";
7908
+ readonly durable: {
7909
+ readonly aggregateID: string;
7910
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7911
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7912
+ };
8109
7913
  readonly location?: {
8110
7914
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8111
7915
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8112
7916
  } | undefined;
8113
- readonly data: {};
7917
+ readonly data: {
7918
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7919
+ };
8114
7920
  } | {
8115
7921
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8116
7922
  readonly created: number;
8117
7923
  readonly metadata?: {
8118
7924
  readonly [x: string]: unknown;
8119
7925
  } | undefined;
8120
- readonly type: "integration.updated";
7926
+ readonly type: "session.viewed";
7927
+ readonly durable: {
7928
+ readonly aggregateID: string;
7929
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7930
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7931
+ };
8121
7932
  readonly location?: {
8122
7933
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8123
7934
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8124
7935
  } | undefined;
8125
- readonly data: {};
7936
+ readonly data: {
7937
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7938
+ readonly idle: number;
7939
+ };
8126
7940
  } | {
8127
7941
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8128
7942
  readonly created: number;
8129
7943
  readonly metadata?: {
8130
7944
  readonly [x: string]: unknown;
8131
7945
  } | undefined;
8132
- readonly type: "provider.updated";
7946
+ readonly type: "session.compaction.delta";
8133
7947
  readonly location?: {
8134
7948
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8135
7949
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8136
7950
  } | undefined;
8137
- readonly data: {};
7951
+ readonly data: {
7952
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7953
+ readonly text: string;
7954
+ };
8138
7955
  } | {
8139
7956
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8140
7957
  readonly created: number;
8141
7958
  readonly metadata?: {
8142
7959
  readonly [x: string]: unknown;
8143
7960
  } | undefined;
8144
- readonly type: "model.updated";
7961
+ readonly type: "session.reasoning.delta";
8145
7962
  readonly location?: {
8146
7963
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8147
7964
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8148
7965
  } | undefined;
8149
- readonly data: {};
7966
+ readonly data: {
7967
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7968
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7969
+ readonly ordinal: number;
7970
+ readonly delta: string;
7971
+ };
8150
7972
  } | {
8151
7973
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8152
7974
  readonly created: number;
8153
7975
  readonly metadata?: {
8154
7976
  readonly [x: string]: unknown;
8155
7977
  } | undefined;
8156
- readonly type: "filesystem.changed";
7978
+ readonly type: "session.text.delta";
8157
7979
  readonly location?: {
8158
7980
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8159
7981
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8160
7982
  } | undefined;
8161
7983
  readonly data: {
8162
- readonly file: string;
8163
- readonly event: "add" | "change" | "unlink";
7984
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7985
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7986
+ readonly ordinal: number;
7987
+ readonly delta: string;
8164
7988
  };
8165
7989
  } | {
8166
7990
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8168,38 +7992,35 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8168
7992
  readonly metadata?: {
8169
7993
  readonly [x: string]: unknown;
8170
7994
  } | undefined;
8171
- readonly type: "reference.updated";
7995
+ readonly type: "session.tool.input.delta";
8172
7996
  readonly location?: {
8173
7997
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8174
7998
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8175
7999
  } | undefined;
8176
- readonly data: {};
8000
+ readonly data: {
8001
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8002
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8003
+ readonly id: string;
8004
+ readonly delta: string;
8005
+ };
8177
8006
  } | {
8178
8007
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8179
8008
  readonly created: number;
8180
8009
  readonly metadata?: {
8181
8010
  readonly [x: string]: unknown;
8182
8011
  } | undefined;
8183
- readonly type: "permission.asked";
8012
+ readonly type: "session.tool.progress";
8184
8013
  readonly location?: {
8185
8014
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8186
8015
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8187
8016
  } | undefined;
8188
8017
  readonly data: {
8189
8018
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8190
- readonly action: string;
8191
- readonly resources: readonly string[];
8192
- readonly save?: readonly string[] | undefined;
8193
- readonly metadata?: {
8194
- readonly [x: string]: unknown;
8195
- } | undefined;
8196
- readonly source?: {
8197
- readonly type: "tool";
8198
- readonly messageID: string;
8199
- readonly id: string;
8200
- } | undefined;
8201
- readonly message?: string | undefined;
8202
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
8019
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8020
+ readonly id: string;
8021
+ readonly metadata: {
8022
+ readonly [x: string]: Schema.Json;
8023
+ };
8203
8024
  };
8204
8025
  } | {
8205
8026
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8207,15 +8028,23 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8207
8028
  readonly metadata?: {
8208
8029
  readonly [x: string]: unknown;
8209
8030
  } | undefined;
8210
- readonly type: "permission.replied";
8031
+ readonly type: "session.usage.updated";
8211
8032
  readonly location?: {
8212
8033
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8213
8034
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8214
8035
  } | undefined;
8215
8036
  readonly data: {
8216
8037
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8217
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8218
- readonly reply: "always" | "once" | "reject";
8038
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8039
+ readonly tokens: {
8040
+ readonly input: number;
8041
+ readonly output: number;
8042
+ readonly reasoning: number;
8043
+ readonly cache: {
8044
+ readonly read: number;
8045
+ readonly write: number;
8046
+ };
8047
+ };
8219
8048
  };
8220
8049
  } | {
8221
8050
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8297,6 +8126,81 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8297
8126
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8298
8127
  } | undefined;
8299
8128
  readonly data: {};
8129
+ } | {
8130
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8131
+ readonly created: number;
8132
+ readonly metadata?: {
8133
+ readonly [x: string]: unknown;
8134
+ } | undefined;
8135
+ readonly type: "pty.created";
8136
+ readonly location?: {
8137
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8138
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8139
+ } | undefined;
8140
+ readonly data: {
8141
+ readonly info: {
8142
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8143
+ readonly title: string;
8144
+ readonly command: string;
8145
+ readonly args: readonly string[];
8146
+ readonly cwd: string;
8147
+ readonly status: "exited" | "running";
8148
+ readonly pid: number;
8149
+ readonly exitCode?: number | undefined;
8150
+ };
8151
+ };
8152
+ } | {
8153
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8154
+ readonly created: number;
8155
+ readonly metadata?: {
8156
+ readonly [x: string]: unknown;
8157
+ } | undefined;
8158
+ readonly type: "pty.deleted";
8159
+ readonly location?: {
8160
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8161
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8162
+ } | undefined;
8163
+ readonly data: {
8164
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8165
+ };
8166
+ } | {
8167
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8168
+ readonly created: number;
8169
+ readonly metadata?: {
8170
+ readonly [x: string]: unknown;
8171
+ } | undefined;
8172
+ readonly type: "pty.exited";
8173
+ readonly location?: {
8174
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8175
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8176
+ } | undefined;
8177
+ readonly data: {
8178
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8179
+ readonly exitCode: number;
8180
+ };
8181
+ } | {
8182
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8183
+ readonly created: number;
8184
+ readonly metadata?: {
8185
+ readonly [x: string]: unknown;
8186
+ } | undefined;
8187
+ readonly type: "pty.updated";
8188
+ readonly location?: {
8189
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8190
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8191
+ } | undefined;
8192
+ readonly data: {
8193
+ readonly info: {
8194
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8195
+ readonly title: string;
8196
+ readonly command: string;
8197
+ readonly args: readonly string[];
8198
+ readonly cwd: string;
8199
+ readonly status: "exited" | "running";
8200
+ readonly pid: number;
8201
+ readonly exitCode?: number | undefined;
8202
+ };
8203
+ };
8300
8204
  } | {
8301
8205
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8302
8206
  readonly created: number;
@@ -8650,6 +8554,18 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8650
8554
  readonly [x: string]: string | number | boolean | readonly string[];
8651
8555
  };
8652
8556
  };
8557
+ } | {
8558
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8559
+ readonly created: number;
8560
+ readonly metadata?: {
8561
+ readonly [x: string]: unknown;
8562
+ } | undefined;
8563
+ readonly type: "websearch.updated";
8564
+ readonly location?: {
8565
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8566
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8567
+ } | undefined;
8568
+ readonly data: {};
8653
8569
  } | {
8654
8570
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8655
8571
  readonly created: number;
@@ -8755,34 +8671,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8755
8671
  readonly variant: "error" | "info" | "success" | "warning";
8756
8672
  readonly duration: number;
8757
8673
  };
8758
- } | {
8759
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8760
- readonly created: number;
8761
- readonly metadata?: {
8762
- readonly [x: string]: unknown;
8763
- } | undefined;
8764
- readonly type: "installation.update-available";
8765
- readonly location?: {
8766
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8767
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8768
- } | undefined;
8769
- readonly data: {
8770
- readonly version: string;
8771
- };
8772
- } | {
8773
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8774
- readonly created: number;
8775
- readonly metadata?: {
8776
- readonly [x: string]: unknown;
8777
- } | undefined;
8778
- readonly type: "installation.updated";
8779
- readonly location?: {
8780
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8781
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8782
- } | undefined;
8783
- readonly data: {
8784
- readonly version: string;
8785
- };
8786
8674
  } | {
8787
8675
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8788
8676
  readonly created: number;
@@ -11504,7 +11392,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11504
11392
  };
11505
11393
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
11506
11394
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11507
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11395
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11508
11396
  readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
11509
11397
  zero: number & import("effect/Brand").Brand<"Money.USD">;
11510
11398
  };
@@ -11538,7 +11426,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11538
11426
  };
11539
11427
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
11540
11428
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11541
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11429
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11542
11430
  readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
11543
11431
  zero: number & import("effect/Brand").Brand<"Money.USD">;
11544
11432
  };
@@ -11606,7 +11494,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11606
11494
  }>;
11607
11495
  readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
11608
11496
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11609
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11497
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11610
11498
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
11611
11499
  zero: number & import("effect/Brand").Brand<"Money.USD">;
11612
11500
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -11660,7 +11548,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11660
11548
  }>;
11661
11549
  readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
11662
11550
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11663
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11551
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11664
11552
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
11665
11553
  zero: number & import("effect/Brand").Brand<"Money.USD">;
11666
11554
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -11842,7 +11730,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11842
11730
  };
11843
11731
  readonly ordinal: Schema.Int;
11844
11732
  readonly text: Schema.String;
11845
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11733
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11846
11734
  }>;
11847
11735
  }> & {
11848
11736
  type: "session.text.ended";
@@ -11862,7 +11750,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11862
11750
  };
11863
11751
  readonly ordinal: Schema.Int;
11864
11752
  readonly text: Schema.String;
11865
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11753
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11866
11754
  }>;
11867
11755
  }, Schema.Struct<{
11868
11756
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -11905,7 +11793,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11905
11793
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11906
11794
  };
11907
11795
  readonly ordinal: Schema.Int;
11908
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11796
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11909
11797
  }>;
11910
11798
  }> & {
11911
11799
  type: "session.reasoning.started";
@@ -11924,7 +11812,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11924
11812
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11925
11813
  };
11926
11814
  readonly ordinal: Schema.Int;
11927
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11815
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11928
11816
  }>;
11929
11817
  }, Schema.Struct<{
11930
11818
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -12022,7 +11910,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12022
11910
  };
12023
11911
  readonly ordinal: Schema.Int;
12024
11912
  readonly text: Schema.String;
12025
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11913
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12026
11914
  }>;
12027
11915
  }> & {
12028
11916
  type: "session.reasoning.ended";
@@ -12042,7 +11930,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12042
11930
  };
12043
11931
  readonly ordinal: Schema.Int;
12044
11932
  readonly text: Schema.String;
12045
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11933
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12046
11934
  }>;
12047
11935
  }, Schema.Struct<{
12048
11936
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -12265,7 +12153,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12265
12153
  readonly id: Schema.String;
12266
12154
  readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
12267
12155
  readonly executed: Schema.Boolean;
12268
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12156
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12269
12157
  }>;
12270
12158
  }> & {
12271
12159
  type: "session.tool.called";
@@ -12286,7 +12174,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12286
12174
  readonly id: Schema.String;
12287
12175
  readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
12288
12176
  readonly executed: Schema.Boolean;
12289
- readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12177
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12290
12178
  }>;
12291
12179
  }, Schema.Struct<{
12292
12180
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -12394,7 +12282,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12394
12282
  }>]>>;
12395
12283
  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>;
12396
12284
  readonly executed: Schema.Boolean;
12397
- readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12285
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12398
12286
  }>;
12399
12287
  }> & {
12400
12288
  type: "session.tool.success";
@@ -12424,7 +12312,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12424
12312
  }>]>>;
12425
12313
  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>;
12426
12314
  readonly executed: Schema.Boolean;
12427
- readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12315
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12428
12316
  }>;
12429
12317
  }, Schema.Struct<{
12430
12318
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -12496,7 +12384,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12496
12384
  }>]>>>, never, never>;
12497
12385
  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>;
12498
12386
  readonly executed: Schema.Boolean;
12499
- readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12387
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12500
12388
  }>;
12501
12389
  }> & {
12502
12390
  type: "session.tool.failed";
@@ -12544,7 +12432,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12544
12432
  }>]>>>, never, never>;
12545
12433
  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>;
12546
12434
  readonly executed: Schema.Boolean;
12547
- readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12435
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12548
12436
  }>;
12549
12437
  }, Schema.Struct<{
12550
12438
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -12665,7 +12553,6 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12665
12553
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
12666
12554
  };
12667
12555
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
12668
- readonly recent: Schema.String;
12669
12556
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
12670
12557
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
12671
12558
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -12687,7 +12574,6 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12687
12574
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
12688
12575
  };
12689
12576
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
12690
- readonly recent: Schema.String;
12691
12577
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
12692
12578
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
12693
12579
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -12822,56 +12708,8 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12822
12708
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
12823
12709
  };
12824
12710
  }>, never, never>;
12825
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12826
- readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12827
- readonly version: Schema.Literal<1>;
12828
- readonly provenance: Schema.Struct<{
12829
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
12830
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
12831
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
12832
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
12833
- google: string & import("effect/Brand").Brand<"Provider.ID">;
12834
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
12835
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
12836
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
12837
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
12838
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
12839
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
12840
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
12841
- };
12842
- readonly provider: Schema.String;
12843
- readonly modelID: Schema.String;
12844
- readonly route: Schema.String;
12845
- readonly protocol: Schema.String;
12846
- readonly endpoint: Schema.String;
12847
- }>;
12848
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
12849
- }>>>, Schema.optionalKey<Schema.Struct<{
12850
- readonly version: Schema.Literal<1>;
12851
- readonly provenance: Schema.Struct<{
12852
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
12853
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
12854
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
12855
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
12856
- google: string & import("effect/Brand").Brand<"Provider.ID">;
12857
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
12858
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
12859
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
12860
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
12861
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
12862
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
12863
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
12864
- };
12865
- readonly provider: Schema.String;
12866
- readonly modelID: Schema.String;
12867
- readonly route: Schema.String;
12868
- readonly protocol: Schema.String;
12869
- readonly endpoint: Schema.String;
12870
- }>;
12871
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
12872
- }>>, never, never>;
12711
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12873
12712
  readonly text: Schema.String;
12874
- readonly recent: Schema.String;
12875
12713
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
12876
12714
  zero: number & import("effect/Brand").Brand<"Money.USD">;
12877
12715
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -12953,56 +12791,8 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12953
12791
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
12954
12792
  };
12955
12793
  }>, never, never>;
12956
- readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12957
- readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12958
- readonly version: Schema.Literal<1>;
12959
- readonly provenance: Schema.Struct<{
12960
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
12961
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
12962
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
12963
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
12964
- google: string & import("effect/Brand").Brand<"Provider.ID">;
12965
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
12966
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
12967
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
12968
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
12969
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
12970
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
12971
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
12972
- };
12973
- readonly provider: Schema.String;
12974
- readonly modelID: Schema.String;
12975
- readonly route: Schema.String;
12976
- readonly protocol: Schema.String;
12977
- readonly endpoint: Schema.String;
12978
- }>;
12979
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
12980
- }>>>, Schema.optionalKey<Schema.Struct<{
12981
- readonly version: Schema.Literal<1>;
12982
- readonly provenance: Schema.Struct<{
12983
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
12984
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
12985
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
12986
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
12987
- google: string & import("effect/Brand").Brand<"Provider.ID">;
12988
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
12989
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
12990
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
12991
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
12992
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
12993
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
12994
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
12995
- };
12996
- readonly provider: Schema.String;
12997
- readonly modelID: Schema.String;
12998
- readonly route: Schema.String;
12999
- readonly protocol: Schema.String;
13000
- readonly endpoint: Schema.String;
13001
- }>;
13002
- readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
13003
- }>>, never, never>;
12794
+ readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
13004
12795
  readonly text: Schema.String;
13005
- readonly recent: Schema.String;
13006
12796
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
13007
12797
  zero: number & import("effect/Brand").Brand<"Money.USD">;
13008
12798
  }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {