@opencode-ai/schema 0.0.0-next-14692 → 0.0.0-next-14706

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/agent.d.ts CHANGED
@@ -42,6 +42,7 @@ export declare const Info: Schema.Struct<{
42
42
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
43
43
  }>>, never, never>;
44
44
  readonly request: Schema.Struct<{
45
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
45
46
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
46
47
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
47
48
  }>;
@@ -60,6 +61,9 @@ export declare const Info: Schema.Struct<{
60
61
  empty: (id: ID) => {
61
62
  readonly id: string & import("effect/Brand").Brand<"AgentV2.ID">;
62
63
  readonly request: {
64
+ readonly settings: {
65
+ readonly [x: string]: unknown;
66
+ };
63
67
  readonly headers: {
64
68
  readonly [x: string]: string;
65
69
  };
package/dist/agent.js CHANGED
@@ -28,7 +28,7 @@ export const Info = Schema.Struct({
28
28
  .pipe(statics((schema) => ({
29
29
  empty: (id) => schema.make({
30
30
  id,
31
- request: { headers: {}, body: {} },
31
+ request: { settings: {}, headers: {}, body: {} },
32
32
  mode: "all",
33
33
  hidden: false,
34
34
  permissions: [
@@ -3811,6 +3811,76 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
3811
3811
  readonly aggregate: string;
3812
3812
  } | undefined;
3813
3813
  type: "session.next.prompt.admitted";
3814
+ }, import("effect/Schema").Struct<{
3815
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
3816
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
3817
+ };
3818
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
3819
+ readonly type: import("effect/Schema").Literal<"session.next.execution.settled">;
3820
+ readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
3821
+ readonly aggregateID: import("effect/Schema").String;
3822
+ readonly seq: import("effect/Schema").Int;
3823
+ readonly version: import("effect/Schema").Int;
3824
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
3825
+ readonly aggregateID: import("effect/Schema").String;
3826
+ readonly seq: import("effect/Schema").Int;
3827
+ readonly version: import("effect/Schema").Int;
3828
+ }>>, never, never>;
3829
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
3830
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
3831
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
3832
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3833
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3834
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
3835
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3836
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3837
+ }>, never, never>;
3838
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
3839
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
3840
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
3841
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3842
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3843
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
3844
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3845
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
3846
+ }>, never, never>;
3847
+ }>>, never, never>;
3848
+ readonly data: import("effect/Schema").Struct<{
3849
+ readonly outcome: import("effect/Schema").Literals<readonly ["success", "failure", "interrupted"]>;
3850
+ readonly error: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
3851
+ readonly type: import("effect/Schema").Literal<"unknown">;
3852
+ readonly message: import("effect/Schema").String;
3853
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
3854
+ readonly type: import("effect/Schema").Literal<"unknown">;
3855
+ readonly message: import("effect/Schema").String;
3856
+ }>>, never, never>;
3857
+ readonly timestamp: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
3858
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3859
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
3860
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3861
+ };
3862
+ }>;
3863
+ }> & {
3864
+ data: import("effect/Schema").Struct<{
3865
+ readonly outcome: import("effect/Schema").Literals<readonly ["success", "failure", "interrupted"]>;
3866
+ readonly error: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
3867
+ readonly type: import("effect/Schema").Literal<"unknown">;
3868
+ readonly message: import("effect/Schema").String;
3869
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
3870
+ readonly type: import("effect/Schema").Literal<"unknown">;
3871
+ readonly message: import("effect/Schema").String;
3872
+ }>>, never, never>;
3873
+ readonly timestamp: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
3874
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3875
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
3876
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3877
+ };
3878
+ }>;
3879
+ durable?: {
3880
+ readonly version: number;
3881
+ readonly aggregate: string;
3882
+ } | undefined;
3883
+ type: "session.next.execution.settled";
3814
3884
  }, import("effect/Schema").Struct<{
3815
3885
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
3816
3886
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -8080,6 +8150,76 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
8080
8150
  readonly aggregate: string;
8081
8151
  } | undefined;
8082
8152
  type: "session.next.prompt.admitted";
8153
+ }) | (import("effect/Schema").Struct<{
8154
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
8155
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
8156
+ };
8157
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
8158
+ readonly type: import("effect/Schema").Literal<"session.next.execution.settled">;
8159
+ readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
8160
+ readonly aggregateID: import("effect/Schema").String;
8161
+ readonly seq: import("effect/Schema").Int;
8162
+ readonly version: import("effect/Schema").Int;
8163
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
8164
+ readonly aggregateID: import("effect/Schema").String;
8165
+ readonly seq: import("effect/Schema").Int;
8166
+ readonly version: import("effect/Schema").Int;
8167
+ }>>, never, never>;
8168
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
8169
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
8170
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
8171
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
8172
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
8173
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
8174
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
8175
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
8176
+ }>, never, never>;
8177
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
8178
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
8179
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
8180
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
8181
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
8182
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
8183
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
8184
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
8185
+ }>, never, never>;
8186
+ }>>, never, never>;
8187
+ readonly data: import("effect/Schema").Struct<{
8188
+ readonly outcome: import("effect/Schema").Literals<readonly ["success", "failure", "interrupted"]>;
8189
+ readonly error: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
8190
+ readonly type: import("effect/Schema").Literal<"unknown">;
8191
+ readonly message: import("effect/Schema").String;
8192
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
8193
+ readonly type: import("effect/Schema").Literal<"unknown">;
8194
+ readonly message: import("effect/Schema").String;
8195
+ }>>, never, never>;
8196
+ readonly timestamp: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
8197
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
8198
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
8199
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8200
+ };
8201
+ }>;
8202
+ }> & {
8203
+ data: import("effect/Schema").Struct<{
8204
+ readonly outcome: import("effect/Schema").Literals<readonly ["success", "failure", "interrupted"]>;
8205
+ readonly error: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
8206
+ readonly type: import("effect/Schema").Literal<"unknown">;
8207
+ readonly message: import("effect/Schema").String;
8208
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
8209
+ readonly type: import("effect/Schema").Literal<"unknown">;
8210
+ readonly message: import("effect/Schema").String;
8211
+ }>>, never, never>;
8212
+ readonly timestamp: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
8213
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
8214
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
8215
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8216
+ };
8217
+ }>;
8218
+ durable?: {
8219
+ readonly version: number;
8220
+ readonly aggregate: string;
8221
+ } | undefined;
8222
+ type: "session.next.execution.settled";
8083
8223
  }) | (import("effect/Schema").Struct<{
8084
8224
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
8085
8225
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
package/dist/model.d.ts CHANGED
@@ -101,10 +101,12 @@ export declare const Info: Schema.Struct<{
101
101
  }>;
102
102
  readonly request: Schema.Struct<{
103
103
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
104
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
104
105
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
105
106
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
106
107
  }>;
107
108
  readonly variants: Schema.$Array<Schema.Struct<{
109
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
108
110
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
109
111
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
110
112
  readonly id: Schema.brand<Schema.String, "VariantID">;
@@ -161,6 +163,9 @@ export declare const Info: Schema.Struct<{
161
163
  readonly output: readonly string[];
162
164
  };
163
165
  readonly request: {
166
+ readonly settings: {
167
+ readonly [x: string]: unknown;
168
+ };
164
169
  readonly headers: {
165
170
  readonly [x: string]: string;
166
171
  };
@@ -170,6 +175,9 @@ export declare const Info: Schema.Struct<{
170
175
  readonly variant?: string | undefined;
171
176
  };
172
177
  readonly variants: readonly {
178
+ readonly settings: {
179
+ readonly [x: string]: unknown;
180
+ };
173
181
  readonly headers: {
174
182
  readonly [x: string]: string;
175
183
  };
package/dist/model.js CHANGED
@@ -75,7 +75,7 @@ export const Info = Schema.Struct({
75
75
  name: modelID,
76
76
  api: { id: modelID, type: "native", settings: {} },
77
77
  capabilities: { tools: false, input: [], output: [] },
78
- request: { headers: {}, body: {} },
78
+ request: { settings: {}, headers: {}, body: {} },
79
79
  variants: [],
80
80
  time: { released: 0 },
81
81
  cost: [],
@@ -40,9 +40,12 @@ export declare const Api: Schema.Union<readonly [Schema.Struct<{
40
40
  readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
41
41
  }>]>;
42
42
  export type Api = typeof Api.Type;
43
+ export declare const Settings: Schema.$Record<Schema.String, Schema.Unknown>;
44
+ export type Settings = typeof Settings.Type;
43
45
  export interface Request extends Schema.Schema.Type<typeof Request> {
44
46
  }
45
47
  export declare const Request: Schema.Struct<{
48
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
46
49
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
47
50
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
48
51
  }>;
@@ -76,6 +79,7 @@ export declare const Info: Schema.Struct<{
76
79
  readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
77
80
  }>]>;
78
81
  readonly request: Schema.Struct<{
82
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
79
83
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
80
84
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
81
85
  }>;
@@ -98,6 +102,9 @@ export declare const Info: Schema.Struct<{
98
102
  readonly url?: string | undefined;
99
103
  };
100
104
  readonly request: {
105
+ readonly settings: {
106
+ readonly [x: string]: unknown;
107
+ };
101
108
  readonly headers: {
102
109
  readonly [x: string]: string;
103
110
  };
package/dist/provider.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * as Provider from "./provider.js";
2
- import { Schema } from "effect";
2
+ import { Effect, Schema } from "effect";
3
3
  import { optional } from "./schema.js";
4
4
  import { Integration } from "./integration.js";
5
5
  import { statics } from "./schema.js";
@@ -30,7 +30,9 @@ export const Native = Schema.Struct({
30
30
  export const Api = Schema.Union([AISDK, Native])
31
31
  .pipe(Schema.toTaggedUnion("type"))
32
32
  .annotate({ identifier: "Provider.Api" });
33
+ export const Settings = Schema.Record(Schema.String, Schema.Unknown).annotate({ identifier: "Provider.Settings" });
33
34
  export const Request = Schema.Struct({
35
+ settings: Settings.pipe(Schema.withConstructorDefault(Effect.succeed({}))),
34
36
  headers: Schema.Record(Schema.String, Schema.String),
35
37
  body: Schema.Record(Schema.String, Schema.Json),
36
38
  }).annotate({ identifier: "Provider.Request" });
@@ -48,6 +50,6 @@ export const Info = Schema.Struct({
48
50
  id,
49
51
  name: id,
50
52
  api: { type: "native", settings: {} },
51
- request: { headers: {}, body: {} },
53
+ request: { settings: {}, headers: {}, body: {} },
52
54
  }),
53
55
  })));
@@ -1009,6 +1009,78 @@ export declare const PromptAdmitted: Schema.Struct<{
1009
1009
  type: "session.next.prompt.admitted";
1010
1010
  };
1011
1011
  export type PromptAdmitted = typeof PromptAdmitted.Type;
1012
+ export declare const ExecutionSettled: Schema.Struct<{
1013
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
1014
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
1015
+ };
1016
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1017
+ readonly type: Schema.Literal<"session.next.execution.settled">;
1018
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1019
+ readonly aggregateID: Schema.String;
1020
+ readonly seq: Schema.Int;
1021
+ readonly version: Schema.Int;
1022
+ }>>>, Schema.optionalKey<Schema.Struct<{
1023
+ readonly aggregateID: Schema.String;
1024
+ readonly seq: Schema.Int;
1025
+ readonly version: Schema.Int;
1026
+ }>>, never, never>;
1027
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1028
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
1029
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
1030
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
1031
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
1032
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
1033
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
1034
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
1035
+ }>, never, never>;
1036
+ }>>>, Schema.optionalKey<Schema.Struct<{
1037
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
1038
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
1039
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
1040
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
1041
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
1042
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
1043
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
1044
+ }>, never, never>;
1045
+ }>>, never, never>;
1046
+ readonly data: Schema.Struct<{
1047
+ readonly outcome: Schema.Literals<readonly ["success", "failure", "interrupted"]>;
1048
+ readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1049
+ readonly type: Schema.Literal<"unknown">;
1050
+ readonly message: Schema.String;
1051
+ }>>>, Schema.optionalKey<Schema.Struct<{
1052
+ readonly type: Schema.Literal<"unknown">;
1053
+ readonly message: Schema.String;
1054
+ }>>, never, never>;
1055
+ readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1056
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1057
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1058
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1059
+ };
1060
+ }>;
1061
+ }> & {
1062
+ data: Schema.Struct<{
1063
+ readonly outcome: Schema.Literals<readonly ["success", "failure", "interrupted"]>;
1064
+ readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1065
+ readonly type: Schema.Literal<"unknown">;
1066
+ readonly message: Schema.String;
1067
+ }>>>, Schema.optionalKey<Schema.Struct<{
1068
+ readonly type: Schema.Literal<"unknown">;
1069
+ readonly message: Schema.String;
1070
+ }>>, never, never>;
1071
+ readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
1072
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1073
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1074
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1075
+ };
1076
+ }>;
1077
+ durable?: {
1078
+ readonly version: number;
1079
+ readonly aggregate: string;
1080
+ } | undefined;
1081
+ type: "session.next.execution.settled";
1082
+ };
1083
+ export type ExecutionSettled = typeof ExecutionSettled.Type;
1012
1084
  export declare const ContextUpdated: Schema.Struct<{
1013
1085
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
1014
1086
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -6689,6 +6761,76 @@ export declare const Definitions: readonly [Schema.Struct<{
6689
6761
  readonly aggregate: string;
6690
6762
  } | undefined;
6691
6763
  type: "session.next.prompt.admitted";
6764
+ }, Schema.Struct<{
6765
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6766
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
6767
+ };
6768
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
6769
+ readonly type: Schema.Literal<"session.next.execution.settled">;
6770
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6771
+ readonly aggregateID: Schema.String;
6772
+ readonly seq: Schema.Int;
6773
+ readonly version: Schema.Int;
6774
+ }>>>, Schema.optionalKey<Schema.Struct<{
6775
+ readonly aggregateID: Schema.String;
6776
+ readonly seq: Schema.Int;
6777
+ readonly version: Schema.Int;
6778
+ }>>, never, never>;
6779
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6780
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6781
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6782
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6783
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6784
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6785
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6786
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6787
+ }>, never, never>;
6788
+ }>>>, Schema.optionalKey<Schema.Struct<{
6789
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6790
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6791
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6792
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6793
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6794
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6795
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6796
+ }>, never, never>;
6797
+ }>>, never, never>;
6798
+ readonly data: Schema.Struct<{
6799
+ readonly outcome: Schema.Literals<readonly ["success", "failure", "interrupted"]>;
6800
+ readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6801
+ readonly type: Schema.Literal<"unknown">;
6802
+ readonly message: Schema.String;
6803
+ }>>>, Schema.optionalKey<Schema.Struct<{
6804
+ readonly type: Schema.Literal<"unknown">;
6805
+ readonly message: Schema.String;
6806
+ }>>, never, never>;
6807
+ readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
6808
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6809
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
6810
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6811
+ };
6812
+ }>;
6813
+ }> & {
6814
+ data: Schema.Struct<{
6815
+ readonly outcome: Schema.Literals<readonly ["success", "failure", "interrupted"]>;
6816
+ readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6817
+ readonly type: Schema.Literal<"unknown">;
6818
+ readonly message: Schema.String;
6819
+ }>>>, Schema.optionalKey<Schema.Struct<{
6820
+ readonly type: Schema.Literal<"unknown">;
6821
+ readonly message: Schema.String;
6822
+ }>>, never, never>;
6823
+ readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
6824
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6825
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
6826
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6827
+ };
6828
+ }>;
6829
+ durable?: {
6830
+ readonly version: number;
6831
+ readonly aggregate: string;
6832
+ } | undefined;
6833
+ type: "session.next.execution.settled";
6692
6834
  }, Schema.Struct<{
6693
6835
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6694
6836
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -12286,6 +12428,76 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12286
12428
  readonly aggregate: string;
12287
12429
  } | undefined;
12288
12430
  type: "session.next.prompt.admitted";
12431
+ }, Schema.Struct<{
12432
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
12433
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
12434
+ };
12435
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12436
+ readonly type: Schema.Literal<"session.next.execution.settled">;
12437
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12438
+ readonly aggregateID: Schema.String;
12439
+ readonly seq: Schema.Int;
12440
+ readonly version: Schema.Int;
12441
+ }>>>, Schema.optionalKey<Schema.Struct<{
12442
+ readonly aggregateID: Schema.String;
12443
+ readonly seq: Schema.Int;
12444
+ readonly version: Schema.Int;
12445
+ }>>, never, never>;
12446
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12447
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12448
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
12449
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
12450
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
12451
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
12452
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
12453
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
12454
+ }>, never, never>;
12455
+ }>>>, Schema.optionalKey<Schema.Struct<{
12456
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12457
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
12458
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
12459
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
12460
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
12461
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
12462
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
12463
+ }>, never, never>;
12464
+ }>>, never, never>;
12465
+ readonly data: Schema.Struct<{
12466
+ readonly outcome: Schema.Literals<readonly ["success", "failure", "interrupted"]>;
12467
+ readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12468
+ readonly type: Schema.Literal<"unknown">;
12469
+ readonly message: Schema.String;
12470
+ }>>>, Schema.optionalKey<Schema.Struct<{
12471
+ readonly type: Schema.Literal<"unknown">;
12472
+ readonly message: Schema.String;
12473
+ }>>, never, never>;
12474
+ readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
12475
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12476
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
12477
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
12478
+ };
12479
+ }>;
12480
+ }> & {
12481
+ data: Schema.Struct<{
12482
+ readonly outcome: Schema.Literals<readonly ["success", "failure", "interrupted"]>;
12483
+ readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12484
+ readonly type: Schema.Literal<"unknown">;
12485
+ readonly message: Schema.String;
12486
+ }>>>, Schema.optionalKey<Schema.Struct<{
12487
+ readonly type: Schema.Literal<"unknown">;
12488
+ readonly message: Schema.String;
12489
+ }>>, never, never>;
12490
+ readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
12491
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12492
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
12493
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
12494
+ };
12495
+ }>;
12496
+ durable?: {
12497
+ readonly version: number;
12498
+ readonly aggregate: string;
12499
+ } | undefined;
12500
+ type: "session.next.execution.settled";
12289
12501
  }, Schema.Struct<{
12290
12502
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
12291
12503
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -96,6 +96,14 @@ export const PromptAdmitted = Event.define({
96
96
  ...options,
97
97
  schema: PromptFields,
98
98
  });
99
+ export const ExecutionSettled = Event.define({
100
+ type: "session.next.execution.settled",
101
+ schema: {
102
+ ...Base,
103
+ outcome: Schema.Literals(["success", "failure", "interrupted"]),
104
+ error: UnknownError.pipe(optional),
105
+ },
106
+ });
99
107
  export const ContextUpdated = Event.define({
100
108
  type: "session.next.context.updated",
101
109
  ...options,
@@ -415,7 +423,7 @@ export var RevertEvent;
415
423
  });
416
424
  })(RevertEvent || (RevertEvent = {}));
417
425
  export const DurableDefinitions = Event.inventory(AgentSwitched, ModelSwitched, Moved, Renamed, Forked, Prompted, PromptAdmitted, ContextUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Ended, Step.Failed, Text.Started, Text.Ended, Tool.Input.Started, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, Reasoning.Started, Reasoning.Ended, Retried, Compaction.Started, Compaction.Ended, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
418
- export const Definitions = Event.inventory(AgentSwitched, ModelSwitched, Moved, Renamed, Forked, Prompted, PromptAdmitted, ContextUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, Retried, Compaction.Started, Compaction.Delta, Compaction.Ended, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
426
+ export const Definitions = Event.inventory(AgentSwitched, ModelSwitched, Moved, Renamed, Forked, Prompted, PromptAdmitted, ExecutionSettled, ContextUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, Retried, Compaction.Started, Compaction.Delta, Compaction.Ended, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
419
427
  export const Durable = Schema.Union(DurableDefinitions, { mode: "oneOf" })
420
428
  .pipe(Schema.toTaggedUnion("type"))
421
429
  .annotate({ identifier: "SessionDurableEvent" });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/schema",
4
- "version": "0.0.0-next-14692",
4
+ "version": "0.0.0-next-14706",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {