@opencode-ai/schema 0.0.0-beta-17595 → 0.0.0-beta-17727
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 -8
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/model.js +1 -1
- package/dist/plugin.d.ts +44 -4
- package/dist/plugin.js +22 -3
- package/dist/prompt.d.ts +0 -5
- package/dist/prompt.js +0 -1
- package/dist/session-event.d.ts +50 -20
- package/dist/session-event.js +5 -0
- package/dist/session-inbox.d.ts +0 -8
- package/dist/session-message.d.ts +4 -4
- package/dist/session-message.js +2 -0
- package/dist/session-transfer.d.ts +2 -2
- package/package.json +2 -2
- package/dist/ai.d.ts +0 -4
- package/dist/ai.js +0 -5
package/dist/event-manifest.d.ts
CHANGED
|
@@ -1127,7 +1127,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1127
1127
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1128
1128
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
1129
1129
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1130
|
-
readonly text: Schema.String;
|
|
1131
1130
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1132
1131
|
readonly start: Schema.Finite;
|
|
1133
1132
|
readonly end: Schema.Finite;
|
|
@@ -1140,7 +1139,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1140
1139
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1141
1140
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
1142
1141
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1143
|
-
readonly text: Schema.String;
|
|
1144
1142
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1145
1143
|
readonly start: Schema.Finite;
|
|
1146
1144
|
readonly end: Schema.Finite;
|
|
@@ -1310,7 +1308,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1310
1308
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1311
1309
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
1312
1310
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1313
|
-
readonly text: Schema.String;
|
|
1314
1311
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1315
1312
|
readonly start: Schema.Finite;
|
|
1316
1313
|
readonly end: Schema.Finite;
|
|
@@ -1323,7 +1320,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1323
1320
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1324
1321
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
1325
1322
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1326
|
-
readonly text: Schema.String;
|
|
1327
1323
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1328
1324
|
readonly start: Schema.Finite;
|
|
1329
1325
|
readonly end: Schema.Finite;
|
|
@@ -2202,6 +2198,8 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2202
2198
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2203
2199
|
};
|
|
2204
2200
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
2201
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2202
|
+
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
2203
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2206
2204
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2207
2205
|
};
|
|
@@ -2234,6 +2232,8 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2234
2232
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2235
2233
|
};
|
|
2236
2234
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
2235
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2236
|
+
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
2237
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2238
2238
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2239
2239
|
};
|
|
@@ -2294,6 +2294,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2294
2294
|
readonly message: Schema.String;
|
|
2295
2295
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2296
2296
|
}>;
|
|
2297
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2298
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2299
|
+
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
2300
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2298
2301
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2299
2302
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -2340,6 +2343,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2340
2343
|
readonly message: Schema.String;
|
|
2341
2344
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2342
2345
|
}>;
|
|
2346
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2347
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2348
|
+
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
2349
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2344
2350
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2345
2351
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -6543,7 +6549,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6543
6549
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
6544
6550
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
6545
6551
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
6546
|
-
readonly text: Schema.String;
|
|
6547
6552
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6548
6553
|
readonly start: Schema.Finite;
|
|
6549
6554
|
readonly end: Schema.Finite;
|
|
@@ -6556,7 +6561,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6556
6561
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6557
6562
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
6558
6563
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
6559
|
-
readonly text: Schema.String;
|
|
6560
6564
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6561
6565
|
readonly start: Schema.Finite;
|
|
6562
6566
|
readonly end: Schema.Finite;
|
|
@@ -6726,7 +6730,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6726
6730
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
6727
6731
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
6728
6732
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
6729
|
-
readonly text: Schema.String;
|
|
6730
6733
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6731
6734
|
readonly start: Schema.Finite;
|
|
6732
6735
|
readonly end: Schema.Finite;
|
|
@@ -6739,7 +6742,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6739
6742
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6740
6743
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
6741
6744
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
6742
|
-
readonly text: Schema.String;
|
|
6743
6745
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6744
6746
|
readonly start: Schema.Finite;
|
|
6745
6747
|
readonly end: Schema.Finite;
|
|
@@ -7618,6 +7620,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7618
7620
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7619
7621
|
};
|
|
7620
7622
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
7623
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
7624
|
+
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
7625
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7622
7626
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7623
7627
|
};
|
|
@@ -7650,6 +7654,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7650
7654
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7651
7655
|
};
|
|
7652
7656
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
7657
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
7658
|
+
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
7659
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7654
7660
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7655
7661
|
};
|
|
@@ -7710,6 +7716,9 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7710
7716
|
readonly message: Schema.String;
|
|
7711
7717
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7712
7718
|
}>;
|
|
7719
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
7720
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
7721
|
+
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
7722
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7714
7723
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7715
7724
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -7756,6 +7765,9 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7756
7765
|
readonly message: Schema.String;
|
|
7757
7766
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7758
7767
|
}>;
|
|
7768
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
7769
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
7770
|
+
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
7771
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7760
7772
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7761
7773
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export { FileSystem } from "./filesystem.js";
|
|
|
8
8
|
export { Form } from "./form.js";
|
|
9
9
|
export { Integration } from "./integration.js";
|
|
10
10
|
export { LLM } from "./llm.js";
|
|
11
|
-
export { AI } from "./ai.js";
|
|
12
11
|
export { Location } from "./location.js";
|
|
13
12
|
export { Mcp } from "./mcp.js";
|
|
14
13
|
export { Model } from "./model.js";
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,6 @@ export { FileSystem } from "./filesystem.js";
|
|
|
8
8
|
export { Form } from "./form.js";
|
|
9
9
|
export { Integration } from "./integration.js";
|
|
10
10
|
export { LLM } from "./llm.js";
|
|
11
|
-
export { AI } from "./ai.js";
|
|
12
11
|
export { Location } from "./location.js";
|
|
13
12
|
export { Mcp } from "./mcp.js";
|
|
14
13
|
export { Model } from "./model.js";
|
package/dist/model.js
CHANGED
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/prompt.d.ts
CHANGED
|
@@ -75,7 +75,6 @@ export interface SkillAttachment extends Schema.Schema.Type<typeof SkillAttachme
|
|
|
75
75
|
export declare const SkillAttachment: Schema.Struct<{
|
|
76
76
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
77
77
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
78
|
-
readonly text: Schema.String;
|
|
79
78
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
80
79
|
readonly start: Schema.Finite;
|
|
81
80
|
readonly end: Schema.Finite;
|
|
@@ -193,7 +192,6 @@ export declare const Prompt: Schema.Struct<{
|
|
|
193
192
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
194
193
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
195
194
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
196
|
-
readonly text: Schema.String;
|
|
197
195
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
198
196
|
readonly start: Schema.Finite;
|
|
199
197
|
readonly end: Schema.Finite;
|
|
@@ -206,7 +204,6 @@ export declare const Prompt: Schema.Struct<{
|
|
|
206
204
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
207
205
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
208
206
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
209
|
-
readonly text: Schema.String;
|
|
210
207
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
211
208
|
readonly start: Schema.Finite;
|
|
212
209
|
readonly end: Schema.Finite;
|
|
@@ -231,7 +228,6 @@ export declare const Prompt: Schema.Struct<{
|
|
|
231
228
|
readonly skills?: readonly {
|
|
232
229
|
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
233
230
|
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
234
|
-
readonly text: string;
|
|
235
231
|
readonly mention?: {
|
|
236
232
|
readonly start: number;
|
|
237
233
|
readonly end: number;
|
|
@@ -269,7 +265,6 @@ export declare const Prompt: Schema.Struct<{
|
|
|
269
265
|
readonly skills?: readonly {
|
|
270
266
|
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
271
267
|
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
272
|
-
readonly text: string;
|
|
273
268
|
readonly mention?: {
|
|
274
269
|
readonly start: number;
|
|
275
270
|
readonly end: number;
|
package/dist/prompt.js
CHANGED
|
@@ -40,7 +40,6 @@ export const AgentAttachment = Schema.Struct({
|
|
|
40
40
|
export const SkillAttachment = Schema.Struct({
|
|
41
41
|
id: Skill.ID,
|
|
42
42
|
name: Skill.Name,
|
|
43
|
-
text: Schema.String,
|
|
44
43
|
mention: PromptMention.pipe(optional),
|
|
45
44
|
}).annotate({ identifier: "Prompt.SkillAttachment" });
|
|
46
45
|
export const Prompt = Schema.Struct({
|
package/dist/session-event.d.ts
CHANGED
|
@@ -1066,7 +1066,6 @@ export declare const InboxEnqueued: Schema.Struct<{
|
|
|
1066
1066
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1067
1067
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
1068
1068
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1069
|
-
readonly text: Schema.String;
|
|
1070
1069
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1071
1070
|
readonly start: Schema.Finite;
|
|
1072
1071
|
readonly end: Schema.Finite;
|
|
@@ -1079,7 +1078,6 @@ export declare const InboxEnqueued: Schema.Struct<{
|
|
|
1079
1078
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1080
1079
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
1081
1080
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1082
|
-
readonly text: Schema.String;
|
|
1083
1081
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1084
1082
|
readonly start: Schema.Finite;
|
|
1085
1083
|
readonly end: Schema.Finite;
|
|
@@ -1249,7 +1247,6 @@ export declare const InboxEnqueued: Schema.Struct<{
|
|
|
1249
1247
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1250
1248
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
1251
1249
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1252
|
-
readonly text: Schema.String;
|
|
1253
1250
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1254
1251
|
readonly start: Schema.Finite;
|
|
1255
1252
|
readonly end: Schema.Finite;
|
|
@@ -1262,7 +1259,6 @@ export declare const InboxEnqueued: Schema.Struct<{
|
|
|
1262
1259
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1263
1260
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
1264
1261
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1265
|
-
readonly text: Schema.String;
|
|
1266
1262
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1267
1263
|
readonly start: Schema.Finite;
|
|
1268
1264
|
readonly end: Schema.Finite;
|
|
@@ -2182,6 +2178,8 @@ export declare namespace Step {
|
|
|
2182
2178
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2183
2179
|
};
|
|
2184
2180
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
2181
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2182
|
+
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
2183
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2186
2184
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2187
2185
|
};
|
|
@@ -2214,6 +2212,8 @@ export declare namespace Step {
|
|
|
2214
2212
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2215
2213
|
};
|
|
2216
2214
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
2215
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2216
|
+
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
2217
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2218
2218
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2219
2219
|
};
|
|
@@ -2276,6 +2276,9 @@ export declare namespace Step {
|
|
|
2276
2276
|
readonly message: Schema.String;
|
|
2277
2277
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2278
2278
|
}>;
|
|
2279
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2280
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2281
|
+
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
2282
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2280
2283
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2281
2284
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -2322,6 +2325,9 @@ export declare namespace Step {
|
|
|
2322
2325
|
readonly message: Schema.String;
|
|
2323
2326
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2324
2327
|
}>;
|
|
2328
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2329
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2330
|
+
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
2331
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2326
2332
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2327
2333
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -4738,7 +4744,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
4738
4744
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
4739
4745
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
4740
4746
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
4741
|
-
readonly text: Schema.String;
|
|
4742
4747
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4743
4748
|
readonly start: Schema.Finite;
|
|
4744
4749
|
readonly end: Schema.Finite;
|
|
@@ -4751,7 +4756,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
4751
4756
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4752
4757
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
4753
4758
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
4754
|
-
readonly text: Schema.String;
|
|
4755
4759
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4756
4760
|
readonly start: Schema.Finite;
|
|
4757
4761
|
readonly end: Schema.Finite;
|
|
@@ -4921,7 +4925,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
4921
4925
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
4922
4926
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
4923
4927
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
4924
|
-
readonly text: Schema.String;
|
|
4925
4928
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4926
4929
|
readonly start: Schema.Finite;
|
|
4927
4930
|
readonly end: Schema.Finite;
|
|
@@ -4934,7 +4937,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
4934
4937
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4935
4938
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
4936
4939
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
4937
|
-
readonly text: Schema.String;
|
|
4938
4940
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4939
4941
|
readonly start: Schema.Finite;
|
|
4940
4942
|
readonly end: Schema.Finite;
|
|
@@ -5821,6 +5823,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5821
5823
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5822
5824
|
};
|
|
5823
5825
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
5826
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5827
|
+
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
5828
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
5825
5829
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5826
5830
|
};
|
|
@@ -5853,6 +5857,8 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5853
5857
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5854
5858
|
};
|
|
5855
5859
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
5860
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5861
|
+
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
5862
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
5857
5863
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5858
5864
|
};
|
|
@@ -5913,6 +5919,9 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5913
5919
|
readonly message: Schema.String;
|
|
5914
5920
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
5915
5921
|
}>;
|
|
5922
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
5923
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5924
|
+
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
5925
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
5917
5926
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5918
5927
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -5959,6 +5968,9 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5959
5968
|
readonly message: Schema.String;
|
|
5960
5969
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
5961
5970
|
}>;
|
|
5971
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
5972
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5973
|
+
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
5974
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
5963
5975
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5964
5976
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -8249,7 +8261,6 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8249
8261
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
8250
8262
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
8251
8263
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
8252
|
-
readonly text: Schema.String;
|
|
8253
8264
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8254
8265
|
readonly start: Schema.Finite;
|
|
8255
8266
|
readonly end: Schema.Finite;
|
|
@@ -8262,7 +8273,6 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8262
8273
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8263
8274
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
8264
8275
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
8265
|
-
readonly text: Schema.String;
|
|
8266
8276
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8267
8277
|
readonly start: Schema.Finite;
|
|
8268
8278
|
readonly end: Schema.Finite;
|
|
@@ -8432,7 +8442,6 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8432
8442
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
8433
8443
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
8434
8444
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
8435
|
-
readonly text: Schema.String;
|
|
8436
8445
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8437
8446
|
readonly start: Schema.Finite;
|
|
8438
8447
|
readonly end: Schema.Finite;
|
|
@@ -8445,7 +8454,6 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8445
8454
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8446
8455
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
8447
8456
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
8448
|
-
readonly text: Schema.String;
|
|
8449
8457
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8450
8458
|
readonly start: Schema.Finite;
|
|
8451
8459
|
readonly end: Schema.Finite;
|
|
@@ -9332,6 +9340,8 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9332
9340
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9333
9341
|
};
|
|
9334
9342
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
9343
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9344
|
+
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
9345
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9336
9346
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9337
9347
|
};
|
|
@@ -9364,6 +9374,8 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9364
9374
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9365
9375
|
};
|
|
9366
9376
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
9377
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9378
|
+
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
9379
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9368
9380
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9369
9381
|
};
|
|
@@ -9424,6 +9436,9 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9424
9436
|
readonly message: Schema.String;
|
|
9425
9437
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
9426
9438
|
}>;
|
|
9439
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
9440
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9441
|
+
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
9442
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9428
9443
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9429
9444
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -9470,6 +9485,9 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9470
9485
|
readonly message: Schema.String;
|
|
9471
9486
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
9472
9487
|
}>;
|
|
9488
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
9489
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9490
|
+
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
9491
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9474
9492
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9475
9493
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -11903,7 +11921,6 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
11903
11921
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11904
11922
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
11905
11923
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
11906
|
-
readonly text: Schema.String;
|
|
11907
11924
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11908
11925
|
readonly start: Schema.Finite;
|
|
11909
11926
|
readonly end: Schema.Finite;
|
|
@@ -11916,7 +11933,6 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
11916
11933
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11917
11934
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
11918
11935
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
11919
|
-
readonly text: Schema.String;
|
|
11920
11936
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11921
11937
|
readonly start: Schema.Finite;
|
|
11922
11938
|
readonly end: Schema.Finite;
|
|
@@ -12086,7 +12102,6 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
12086
12102
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
12087
12103
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
12088
12104
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
12089
|
-
readonly text: Schema.String;
|
|
12090
12105
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12091
12106
|
readonly start: Schema.Finite;
|
|
12092
12107
|
readonly end: Schema.Finite;
|
|
@@ -12099,7 +12114,6 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
12099
12114
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
12100
12115
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
12101
12116
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
12102
|
-
readonly text: Schema.String;
|
|
12103
12117
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12104
12118
|
readonly start: Schema.Finite;
|
|
12105
12119
|
readonly end: Schema.Finite;
|
|
@@ -12986,6 +13000,8 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
12986
13000
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
12987
13001
|
};
|
|
12988
13002
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
13003
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
13004
|
+
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
13005
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12990
13006
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
12991
13007
|
};
|
|
@@ -13018,6 +13034,8 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
13018
13034
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
13019
13035
|
};
|
|
13020
13036
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
13037
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
13038
|
+
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
13039
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
13022
13040
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
13023
13041
|
};
|
|
@@ -13078,6 +13096,9 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
13078
13096
|
readonly message: Schema.String;
|
|
13079
13097
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13080
13098
|
}>;
|
|
13099
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
13100
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
13101
|
+
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
13102
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
13082
13103
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
13083
13104
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -13124,6 +13145,9 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
13124
13145
|
readonly message: Schema.String;
|
|
13125
13146
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13126
13147
|
}>;
|
|
13148
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
13149
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
13150
|
+
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
13151
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
13128
13152
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
13129
13153
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -15231,7 +15255,6 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
15231
15255
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
15232
15256
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
15233
15257
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
15234
|
-
readonly text: Schema.String;
|
|
15235
15258
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15236
15259
|
readonly start: Schema.Finite;
|
|
15237
15260
|
readonly end: Schema.Finite;
|
|
@@ -15244,7 +15267,6 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
15244
15267
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
15245
15268
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
15246
15269
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
15247
|
-
readonly text: Schema.String;
|
|
15248
15270
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15249
15271
|
readonly start: Schema.Finite;
|
|
15250
15272
|
readonly end: Schema.Finite;
|
|
@@ -15414,7 +15436,6 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
15414
15436
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
15415
15437
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
15416
15438
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
15417
|
-
readonly text: Schema.String;
|
|
15418
15439
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15419
15440
|
readonly start: Schema.Finite;
|
|
15420
15441
|
readonly end: Schema.Finite;
|
|
@@ -15427,7 +15448,6 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
15427
15448
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
15428
15449
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
15429
15450
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
15430
|
-
readonly text: Schema.String;
|
|
15431
15451
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15432
15452
|
readonly start: Schema.Finite;
|
|
15433
15453
|
readonly end: Schema.Finite;
|
|
@@ -16314,6 +16334,8 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
16314
16334
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
16315
16335
|
};
|
|
16316
16336
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
16337
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
16338
|
+
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
16339
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16318
16340
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16319
16341
|
};
|
|
@@ -16346,6 +16368,8 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
16346
16368
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
16347
16369
|
};
|
|
16348
16370
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
16371
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
16372
|
+
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
16373
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16350
16374
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16351
16375
|
};
|
|
@@ -16406,6 +16430,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
16406
16430
|
readonly message: Schema.String;
|
|
16407
16431
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
16408
16432
|
}>;
|
|
16433
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
16434
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
16435
|
+
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
16436
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16410
16437
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16411
16438
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -16452,6 +16479,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
16452
16479
|
readonly message: Schema.String;
|
|
16453
16480
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
16454
16481
|
}>;
|
|
16482
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
16483
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
16484
|
+
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
16485
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16456
16486
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16457
16487
|
}>>, 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),
|
package/dist/session-inbox.d.ts
CHANGED
|
@@ -110,7 +110,6 @@ export declare const UserPayload: Schema.Struct<{
|
|
|
110
110
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
111
111
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
112
112
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
113
|
-
readonly text: Schema.String;
|
|
114
113
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
115
114
|
readonly start: Schema.Finite;
|
|
116
115
|
readonly end: Schema.Finite;
|
|
@@ -123,7 +122,6 @@ export declare const UserPayload: Schema.Struct<{
|
|
|
123
122
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
124
123
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
125
124
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
126
|
-
readonly text: Schema.String;
|
|
127
125
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
128
126
|
readonly start: Schema.Finite;
|
|
129
127
|
readonly end: Schema.Finite;
|
|
@@ -271,7 +269,6 @@ export declare const Item: Schema.Union<readonly [Schema.Struct<{
|
|
|
271
269
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
272
270
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
273
271
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
274
|
-
readonly text: Schema.String;
|
|
275
272
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
276
273
|
readonly start: Schema.Finite;
|
|
277
274
|
readonly end: Schema.Finite;
|
|
@@ -284,7 +281,6 @@ export declare const Item: Schema.Union<readonly [Schema.Struct<{
|
|
|
284
281
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
285
282
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
286
283
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
287
|
-
readonly text: Schema.String;
|
|
288
284
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
289
285
|
readonly start: Schema.Finite;
|
|
290
286
|
readonly end: Schema.Finite;
|
|
@@ -440,7 +436,6 @@ export declare const User: Schema.Struct<{
|
|
|
440
436
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
441
437
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
442
438
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
443
|
-
readonly text: Schema.String;
|
|
444
439
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
445
440
|
readonly start: Schema.Finite;
|
|
446
441
|
readonly end: Schema.Finite;
|
|
@@ -453,7 +448,6 @@ export declare const User: Schema.Struct<{
|
|
|
453
448
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
454
449
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
455
450
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
456
|
-
readonly text: Schema.String;
|
|
457
451
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
458
452
|
readonly start: Schema.Finite;
|
|
459
453
|
readonly end: Schema.Finite;
|
|
@@ -651,7 +645,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
651
645
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
652
646
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
653
647
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
654
|
-
readonly text: Schema.String;
|
|
655
648
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
656
649
|
readonly start: Schema.Finite;
|
|
657
650
|
readonly end: Schema.Finite;
|
|
@@ -664,7 +657,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
664
657
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
665
658
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
666
659
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
667
|
-
readonly text: Schema.String;
|
|
668
660
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
669
661
|
readonly start: Schema.Finite;
|
|
670
662
|
readonly end: Schema.Finite;
|
|
@@ -275,7 +275,6 @@ export declare const User: Schema.Struct<{
|
|
|
275
275
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
276
276
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
277
277
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
278
|
-
readonly text: Schema.String;
|
|
279
278
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
280
279
|
readonly start: Schema.Finite;
|
|
281
280
|
readonly end: Schema.Finite;
|
|
@@ -288,7 +287,6 @@ export declare const User: Schema.Struct<{
|
|
|
288
287
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
289
288
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
290
289
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
291
|
-
readonly text: Schema.String;
|
|
292
290
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
293
291
|
readonly start: Schema.Finite;
|
|
294
292
|
readonly end: Schema.Finite;
|
|
@@ -778,6 +776,8 @@ export declare const Assistant: Schema.Struct<{
|
|
|
778
776
|
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
777
|
}>>, never, never>;
|
|
780
778
|
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>;
|
|
779
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
780
|
+
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
781
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
782
782
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
783
783
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -1193,7 +1193,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1193
1193
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1194
1194
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
1195
1195
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1196
|
-
readonly text: Schema.String;
|
|
1197
1196
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1198
1197
|
readonly start: Schema.Finite;
|
|
1199
1198
|
readonly end: Schema.Finite;
|
|
@@ -1206,7 +1205,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1206
1205
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1207
1206
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
1208
1207
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1209
|
-
readonly text: Schema.String;
|
|
1210
1208
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1211
1209
|
readonly start: Schema.Finite;
|
|
1212
1210
|
readonly end: Schema.Finite;
|
|
@@ -1405,6 +1403,8 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1405
1403
|
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
1404
|
}>>, never, never>;
|
|
1407
1405
|
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>;
|
|
1406
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1407
|
+
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
1408
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1409
1409
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1410
1410
|
}>>, 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),
|
|
@@ -428,7 +428,6 @@ export declare const Data: Schema.Struct<{
|
|
|
428
428
|
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
429
429
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
430
430
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
431
|
-
readonly text: Schema.String;
|
|
432
431
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
433
432
|
readonly start: Schema.Finite;
|
|
434
433
|
readonly end: Schema.Finite;
|
|
@@ -441,7 +440,6 @@ export declare const Data: Schema.Struct<{
|
|
|
441
440
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
442
441
|
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
443
442
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
444
|
-
readonly text: Schema.String;
|
|
445
443
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
446
444
|
readonly start: Schema.Finite;
|
|
447
445
|
readonly end: Schema.Finite;
|
|
@@ -638,6 +636,8 @@ export declare const Data: Schema.Struct<{
|
|
|
638
636
|
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
637
|
}>>, never, never>;
|
|
640
638
|
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>;
|
|
639
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
640
|
+
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
641
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
642
642
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
643
643
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
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-beta-
|
|
4
|
+
"version": "0.0.0-beta-17727",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@standard-schema/spec": "1.1.0",
|
|
34
|
-
"effect": "4.0.0-
|
|
34
|
+
"effect": "4.0.0-rc.110"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@tsconfig/bun": "1.0.9",
|
package/dist/ai.d.ts
DELETED