@opencode-ai/schema 0.0.0-dev-17604 → 0.0.0-dev-17636
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/event-manifest.d.ts +20 -0
- package/dist/plugin.d.ts +44 -4
- package/dist/plugin.js +22 -3
- package/dist/session-event.d.ts +50 -0
- package/dist/session-event.js +5 -0
- package/dist/session-message.d.ts +4 -0
- package/dist/session-message.js +2 -0
- package/dist/session-transfer.d.ts +2 -0
- package/package.json +1 -1
package/dist/event-manifest.d.ts
CHANGED
|
@@ -2202,6 +2202,8 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2202
2202
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2203
2203
|
};
|
|
2204
2204
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
2205
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2206
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2205
2207
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2206
2208
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2207
2209
|
};
|
|
@@ -2234,6 +2236,8 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2234
2236
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2235
2237
|
};
|
|
2236
2238
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
2239
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2240
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2237
2241
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2238
2242
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2239
2243
|
};
|
|
@@ -2294,6 +2298,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2294
2298
|
readonly message: Schema.String;
|
|
2295
2299
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2296
2300
|
}>;
|
|
2301
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2302
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2303
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2297
2304
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2298
2305
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2299
2306
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -2340,6 +2347,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2340
2347
|
readonly message: Schema.String;
|
|
2341
2348
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2342
2349
|
}>;
|
|
2350
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2351
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2352
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2343
2353
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2344
2354
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2345
2355
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -7618,6 +7628,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7618
7628
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7619
7629
|
};
|
|
7620
7630
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
7631
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
7632
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7621
7633
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7622
7634
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7623
7635
|
};
|
|
@@ -7650,6 +7662,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7650
7662
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7651
7663
|
};
|
|
7652
7664
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
7665
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
7666
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7653
7667
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7654
7668
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7655
7669
|
};
|
|
@@ -7710,6 +7724,9 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7710
7724
|
readonly message: Schema.String;
|
|
7711
7725
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7712
7726
|
}>;
|
|
7727
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
7728
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
7729
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7713
7730
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7714
7731
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7715
7732
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -7756,6 +7773,9 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7756
7773
|
readonly message: Schema.String;
|
|
7757
7774
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7758
7775
|
}>;
|
|
7776
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
7777
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
7778
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7759
7779
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7760
7780
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7761
7781
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
package/dist/plugin.d.ts
CHANGED
|
@@ -2,11 +2,51 @@ export * as Plugin from "./plugin.js";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
export declare const ID: Schema.brand<Schema.String, "Plugin.ID">;
|
|
4
4
|
export type ID = typeof ID.Type;
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export declare const Source: Schema.Union<readonly [Schema.Struct<{
|
|
6
|
+
readonly type: Schema.Literal<"builtin">;
|
|
7
|
+
}>, Schema.Struct<{
|
|
8
|
+
readonly type: Schema.Literal<"package">;
|
|
9
|
+
readonly package: Schema.String;
|
|
10
|
+
}>, Schema.Struct<{
|
|
11
|
+
readonly type: Schema.Literal<"local">;
|
|
12
|
+
readonly path: Schema.String;
|
|
13
|
+
}>, Schema.Struct<{
|
|
14
|
+
readonly type: Schema.Literal<"sdk">;
|
|
15
|
+
}>]>;
|
|
16
|
+
export type Source = typeof Source.Type;
|
|
17
|
+
export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
8
18
|
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
9
|
-
|
|
19
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
20
|
+
readonly type: Schema.Literal<"builtin">;
|
|
21
|
+
}>, Schema.Struct<{
|
|
22
|
+
readonly type: Schema.Literal<"package">;
|
|
23
|
+
readonly package: Schema.String;
|
|
24
|
+
}>, Schema.Struct<{
|
|
25
|
+
readonly type: Schema.Literal<"local">;
|
|
26
|
+
readonly path: Schema.String;
|
|
27
|
+
}>, Schema.Struct<{
|
|
28
|
+
readonly type: Schema.Literal<"sdk">;
|
|
29
|
+
}>]>;
|
|
30
|
+
readonly status: Schema.Literal<"active">;
|
|
31
|
+
readonly tui: Schema.Boolean;
|
|
32
|
+
}>, Schema.Struct<{
|
|
33
|
+
readonly id: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Plugin.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Plugin.ID">>, never, never>;
|
|
34
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
35
|
+
readonly type: Schema.Literal<"builtin">;
|
|
36
|
+
}>, Schema.Struct<{
|
|
37
|
+
readonly type: Schema.Literal<"package">;
|
|
38
|
+
readonly package: Schema.String;
|
|
39
|
+
}>, Schema.Struct<{
|
|
40
|
+
readonly type: Schema.Literal<"local">;
|
|
41
|
+
readonly path: Schema.String;
|
|
42
|
+
}>, Schema.Struct<{
|
|
43
|
+
readonly type: Schema.Literal<"sdk">;
|
|
44
|
+
}>]>;
|
|
45
|
+
readonly status: Schema.Literal<"failed">;
|
|
46
|
+
readonly error: Schema.String;
|
|
47
|
+
readonly tui: Schema.Boolean;
|
|
48
|
+
}>]>;
|
|
49
|
+
export type Info = typeof Info.Type;
|
|
10
50
|
export declare const Event: {
|
|
11
51
|
Added: Schema.Struct<{
|
|
12
52
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
package/dist/plugin.js
CHANGED
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
export * as Plugin from "./plugin.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { ephemeral, inventory } from "./event.js";
|
|
4
|
+
import { optional } from "./schema.js";
|
|
4
5
|
export const ID = Schema.String.pipe(Schema.brand("Plugin.ID"));
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
export const Source = Schema.Union([
|
|
7
|
+
Schema.Struct({ type: Schema.Literal("builtin") }),
|
|
8
|
+
Schema.Struct({ type: Schema.Literal("package"), package: Schema.String }),
|
|
9
|
+
Schema.Struct({ type: Schema.Literal("local"), path: Schema.String }),
|
|
10
|
+
Schema.Struct({ type: Schema.Literal("sdk") }),
|
|
11
|
+
]).annotate({ identifier: "Plugin.Source" });
|
|
12
|
+
export const Info = Schema.Union([
|
|
13
|
+
Schema.Struct({
|
|
14
|
+
id: ID,
|
|
15
|
+
source: Source,
|
|
16
|
+
status: Schema.Literal("active"),
|
|
17
|
+
tui: Schema.Boolean,
|
|
18
|
+
}),
|
|
19
|
+
Schema.Struct({
|
|
20
|
+
id: ID.pipe(optional),
|
|
21
|
+
source: Source,
|
|
22
|
+
status: Schema.Literal("failed"),
|
|
23
|
+
error: Schema.String,
|
|
24
|
+
tui: Schema.Boolean,
|
|
25
|
+
}),
|
|
26
|
+
]).annotate({ identifier: "Plugin.Info" });
|
|
8
27
|
const Added = ephemeral({
|
|
9
28
|
type: "plugin.added",
|
|
10
29
|
schema: { id: ID },
|
package/dist/session-event.d.ts
CHANGED
|
@@ -2182,6 +2182,8 @@ export declare namespace Step {
|
|
|
2182
2182
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2183
2183
|
};
|
|
2184
2184
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
2185
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2186
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2185
2187
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2186
2188
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2187
2189
|
};
|
|
@@ -2214,6 +2216,8 @@ export declare namespace Step {
|
|
|
2214
2216
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2215
2217
|
};
|
|
2216
2218
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
2219
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2220
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2217
2221
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2218
2222
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2219
2223
|
};
|
|
@@ -2276,6 +2280,9 @@ export declare namespace Step {
|
|
|
2276
2280
|
readonly message: Schema.String;
|
|
2277
2281
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2278
2282
|
}>;
|
|
2283
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2284
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2285
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2279
2286
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2280
2287
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2281
2288
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -2322,6 +2329,9 @@ export declare namespace Step {
|
|
|
2322
2329
|
readonly message: Schema.String;
|
|
2323
2330
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2324
2331
|
}>;
|
|
2332
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2333
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2334
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2325
2335
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2326
2336
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2327
2337
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -5821,6 +5831,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5821
5831
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5822
5832
|
};
|
|
5823
5833
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
5834
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5835
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5824
5836
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
5825
5837
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5826
5838
|
};
|
|
@@ -5853,6 +5865,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5853
5865
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5854
5866
|
};
|
|
5855
5867
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
5868
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5869
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5856
5870
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
5857
5871
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5858
5872
|
};
|
|
@@ -5913,6 +5927,9 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5913
5927
|
readonly message: Schema.String;
|
|
5914
5928
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
5915
5929
|
}>;
|
|
5930
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
5931
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5932
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5916
5933
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
5917
5934
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5918
5935
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -5959,6 +5976,9 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5959
5976
|
readonly message: Schema.String;
|
|
5960
5977
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
5961
5978
|
}>;
|
|
5979
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
5980
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5981
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5962
5982
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
5963
5983
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5964
5984
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -9332,6 +9352,8 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9332
9352
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9333
9353
|
};
|
|
9334
9354
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
9355
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9356
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9335
9357
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9336
9358
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9337
9359
|
};
|
|
@@ -9364,6 +9386,8 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9364
9386
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9365
9387
|
};
|
|
9366
9388
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
9389
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9390
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9367
9391
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9368
9392
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9369
9393
|
};
|
|
@@ -9424,6 +9448,9 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9424
9448
|
readonly message: Schema.String;
|
|
9425
9449
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
9426
9450
|
}>;
|
|
9451
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
9452
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9453
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9427
9454
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9428
9455
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9429
9456
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -9470,6 +9497,9 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9470
9497
|
readonly message: Schema.String;
|
|
9471
9498
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
9472
9499
|
}>;
|
|
9500
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
9501
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9502
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9473
9503
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9474
9504
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9475
9505
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -12986,6 +13016,8 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
12986
13016
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
12987
13017
|
};
|
|
12988
13018
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
13019
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
13020
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12989
13021
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12990
13022
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
12991
13023
|
};
|
|
@@ -13018,6 +13050,8 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
13018
13050
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
13019
13051
|
};
|
|
13020
13052
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
13053
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
13054
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
13021
13055
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
13022
13056
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
13023
13057
|
};
|
|
@@ -13078,6 +13112,9 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
13078
13112
|
readonly message: Schema.String;
|
|
13079
13113
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13080
13114
|
}>;
|
|
13115
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
13116
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
13117
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
13081
13118
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
13082
13119
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
13083
13120
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -13124,6 +13161,9 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
13124
13161
|
readonly message: Schema.String;
|
|
13125
13162
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13126
13163
|
}>;
|
|
13164
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
13165
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
13166
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
13127
13167
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
13128
13168
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
13129
13169
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -16314,6 +16354,8 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
16314
16354
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
16315
16355
|
};
|
|
16316
16356
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
16357
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
16358
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16317
16359
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16318
16360
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16319
16361
|
};
|
|
@@ -16346,6 +16388,8 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
16346
16388
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
16347
16389
|
};
|
|
16348
16390
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
16391
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
16392
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16349
16393
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16350
16394
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16351
16395
|
};
|
|
@@ -16406,6 +16450,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
16406
16450
|
readonly message: Schema.String;
|
|
16407
16451
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
16408
16452
|
}>;
|
|
16453
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
16454
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
16455
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16409
16456
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16410
16457
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16411
16458
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -16452,6 +16499,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
16452
16499
|
readonly message: Schema.String;
|
|
16453
16500
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
16454
16501
|
}>;
|
|
16502
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
16503
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
16504
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16455
16505
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16456
16506
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16457
16507
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
package/dist/session-event.js
CHANGED
|
@@ -249,6 +249,8 @@ export var Step;
|
|
|
249
249
|
...Base,
|
|
250
250
|
assistantMessageID: SessionMessage.ID,
|
|
251
251
|
finish: FinishReason,
|
|
252
|
+
rawFinish: Schema.String.pipe(optional),
|
|
253
|
+
providerState: SessionMessage.ProviderState.pipe(optional),
|
|
252
254
|
cost: Money.USD,
|
|
253
255
|
tokens: TokenUsage.Info,
|
|
254
256
|
snapshot: Snapshot.ID.pipe(optional),
|
|
@@ -262,6 +264,9 @@ export var Step;
|
|
|
262
264
|
...Base,
|
|
263
265
|
assistantMessageID: SessionMessage.ID,
|
|
264
266
|
error: SessionError.Error,
|
|
267
|
+
finish: Schema.Literals(["content-filter"]).pipe(optional),
|
|
268
|
+
rawFinish: Schema.String.pipe(optional),
|
|
269
|
+
providerState: SessionMessage.ProviderState.pipe(optional),
|
|
265
270
|
cost: Money.USD.pipe(optional),
|
|
266
271
|
tokens: TokenUsage.Info.pipe(optional),
|
|
267
272
|
snapshot: Snapshot.ID.pipe(optional),
|
|
@@ -778,6 +778,8 @@ export declare const Assistant: Schema.Struct<{
|
|
|
778
778
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
779
779
|
}>>, never, never>;
|
|
780
780
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
781
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
782
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
781
783
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
782
784
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
783
785
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -1405,6 +1407,8 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1405
1407
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
1406
1408
|
}>>, never, never>;
|
|
1407
1409
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
1410
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1411
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1408
1412
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1409
1413
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1410
1414
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
package/dist/session-message.js
CHANGED
|
@@ -164,6 +164,8 @@ export const Assistant = Schema.Struct({
|
|
|
164
164
|
files: Schema.Array(RelativePath).pipe(optional),
|
|
165
165
|
}).pipe(optional),
|
|
166
166
|
finish: FinishReason.pipe(optional),
|
|
167
|
+
rawFinish: Schema.String.pipe(optional),
|
|
168
|
+
providerState: ProviderState.pipe(optional),
|
|
167
169
|
cost: Money.USD.pipe(optional),
|
|
168
170
|
tokens: TokenUsage.Info.pipe(optional),
|
|
169
171
|
error: SessionError.Error.pipe(optional),
|
|
@@ -638,6 +638,8 @@ export declare const Data: Schema.Struct<{
|
|
|
638
638
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
639
639
|
}>>, never, never>;
|
|
640
640
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
641
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
642
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
641
643
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
642
644
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
643
645
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|