@opencode/schema 2.0.21 → 2.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +2 -1
- package/dist/config/provider.d.ts +18 -25
- package/dist/config/provider.js +10 -2
- package/dist/event-manifest.d.ts +8 -9
- package/dist/identifier.d.ts +1 -0
- package/dist/identifier.js +1 -0
- package/dist/provider.d.ts +12 -6
- package/dist/provider.js +2 -1
- package/dist/session-event.d.ts +20 -22
- package/dist/session-event.js +0 -2
- package/dist/v1/session.d.ts +0 -503
- package/dist/v1/session.js +0 -4
- package/package.json +1 -1
- package/dist/ide-event.d.ts +0 -76
- package/dist/ide-event.js +0 -10
- package/dist/question-v1.d.ts +0 -1
- package/dist/question-v1.js +0 -1
- package/dist/v1/question.d.ts +0 -444
- package/dist/v1/question.js +0 -57
package/dist/agent.d.ts
CHANGED
|
@@ -59,7 +59,8 @@ export declare const Info: Schema.Struct<{
|
|
|
59
59
|
readonly request: Schema.Struct<{
|
|
60
60
|
readonly settings: Schema.withConstructorDefault<Schema.StructWithRest<Schema.Struct<{
|
|
61
61
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
62
|
-
readonly
|
|
62
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
63
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
63
64
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
64
65
|
readonly type: Schema.Literal<"summary">;
|
|
65
66
|
}>, Schema.Struct<{
|
|
@@ -2,7 +2,8 @@ export * as ConfigProvider from "./provider.js";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
export declare const Settings: Schema.StructWithRest<Schema.Struct<{
|
|
4
4
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
5
|
-
readonly
|
|
5
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
6
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
6
7
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
7
8
|
readonly type: Schema.Literal<"summary">;
|
|
8
9
|
}>, Schema.Struct<{
|
|
@@ -30,7 +31,8 @@ export type ModelSettings = typeof ModelSettings.Type;
|
|
|
30
31
|
export declare const Overlays: {
|
|
31
32
|
settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
32
33
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
33
|
-
readonly
|
|
34
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
35
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
34
36
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
35
37
|
readonly type: Schema.Literal<"summary">;
|
|
36
38
|
}>, Schema.Struct<{
|
|
@@ -43,7 +45,8 @@ export declare const Overlays: {
|
|
|
43
45
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
44
46
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
45
47
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
46
|
-
readonly
|
|
48
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
49
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
47
50
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
48
51
|
readonly type: Schema.Literal<"summary">;
|
|
49
52
|
}>, Schema.Struct<{
|
|
@@ -105,26 +108,14 @@ declare class Limit extends Limit_base {
|
|
|
105
108
|
}
|
|
106
109
|
declare const Model_base: Schema.Class<Model, Schema.Struct<{
|
|
107
110
|
readonly capabilities: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
108
|
-
readonly tools: Schema.Boolean
|
|
109
|
-
readonly input: Schema.$Array<Schema.String>;
|
|
110
|
-
readonly output: Schema.$Array<Schema.String>;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
};
|
|
117
|
-
}>>, Schema.optionalKey<Schema.Struct<{
|
|
118
|
-
readonly tools: Schema.Boolean;
|
|
119
|
-
readonly input: Schema.$Array<Schema.String>;
|
|
120
|
-
readonly output: Schema.$Array<Schema.String>;
|
|
121
|
-
}> & {
|
|
122
|
-
default: () => {
|
|
123
|
-
tools: true;
|
|
124
|
-
input: string[];
|
|
125
|
-
output: string[];
|
|
126
|
-
};
|
|
127
|
-
}>, never, never>;
|
|
111
|
+
readonly tools: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
112
|
+
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
113
|
+
readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
114
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
115
|
+
readonly tools: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
116
|
+
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
117
|
+
readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
118
|
+
}>>, never, never>;
|
|
128
119
|
readonly variants: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
129
120
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
130
121
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -228,7 +219,8 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
228
219
|
readonly models: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, typeof Model>>>, Schema.optionalKey<Schema.$Record<Schema.String, typeof Model>>, never, never>;
|
|
229
220
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
230
221
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
231
|
-
readonly
|
|
222
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
223
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
232
224
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
233
225
|
readonly type: Schema.Literal<"summary">;
|
|
234
226
|
}>, Schema.Struct<{
|
|
@@ -241,7 +233,8 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
241
233
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
242
234
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
243
235
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
244
|
-
readonly
|
|
236
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
237
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
245
238
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
246
239
|
readonly type: Schema.Literal<"summary">;
|
|
247
240
|
}>, Schema.Struct<{
|
package/dist/config/provider.js
CHANGED
|
@@ -6,7 +6,8 @@ import { Provider } from "../provider.js";
|
|
|
6
6
|
import { optional } from "../schema.js";
|
|
7
7
|
export const Settings = Schema.StructWithRest(Schema.Struct({
|
|
8
8
|
timeout: Schema.Union([Schema.Finite, Schema.Literal(false)]).pipe(optional),
|
|
9
|
-
|
|
9
|
+
headerTimeout: Schema.Union([Schema.Finite, Schema.Literal(false)]).pipe(optional),
|
|
10
|
+
chunkTimeout: Schema.Union([Schema.Finite, Schema.Literal(false)]).pipe(optional),
|
|
10
11
|
compaction: Provider.Compaction.pipe(optional),
|
|
11
12
|
transport: Provider.Transport.pipe(optional),
|
|
12
13
|
}), [Schema.Record(Schema.String, Schema.UndefinedOr(Schema.Json))]).annotate({ identifier: "Config.Provider.Settings" });
|
|
@@ -57,7 +58,14 @@ class Model extends Schema.Class("Config.Model")({
|
|
|
57
58
|
compatibility: Compatibility.pipe(optional),
|
|
58
59
|
package: Schema.String.pipe(optional),
|
|
59
60
|
...ModelOverlays,
|
|
60
|
-
|
|
61
|
+
// Partial: unset fields fall back to the base model's capabilities, then the defaults.
|
|
62
|
+
capabilities: Capabilities.mapFields((fields) => ({
|
|
63
|
+
tools: optional(fields.tools),
|
|
64
|
+
input: optional(fields.input),
|
|
65
|
+
output: optional(fields.output),
|
|
66
|
+
}))
|
|
67
|
+
.annotate({ identifier: "Config.Model.Capabilities" })
|
|
68
|
+
.pipe(optional),
|
|
61
69
|
variants: Schema.Struct({
|
|
62
70
|
id: VariantID,
|
|
63
71
|
...ModelOverlays,
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * as EventManifest from "./event-manifest.js";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { Durable } from "./durable-event-manifest.js";
|
|
4
4
|
import { Event } from "./event.js";
|
|
5
|
-
import { SessionEvent } from "./session-event.js";
|
|
6
5
|
export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
7
6
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8
7
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -1349,7 +1348,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1349
1348
|
readonly text: Schema.String;
|
|
1350
1349
|
}>>, never, never>;
|
|
1351
1350
|
}> & {
|
|
1352
|
-
create: (input:
|
|
1351
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
1353
1352
|
readonly data: string;
|
|
1354
1353
|
readonly source: {
|
|
1355
1354
|
readonly type: "inline";
|
|
@@ -1387,7 +1386,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1387
1386
|
readonly text: Schema.String;
|
|
1388
1387
|
}>>, never, never>;
|
|
1389
1388
|
}> & {
|
|
1390
|
-
create: (input:
|
|
1389
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
1391
1390
|
readonly data: string;
|
|
1392
1391
|
readonly source: {
|
|
1393
1392
|
readonly type: "inline";
|
|
@@ -1532,7 +1531,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1532
1531
|
readonly text: Schema.String;
|
|
1533
1532
|
}>>, never, never>;
|
|
1534
1533
|
}> & {
|
|
1535
|
-
create: (input:
|
|
1534
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
1536
1535
|
readonly data: string;
|
|
1537
1536
|
readonly source: {
|
|
1538
1537
|
readonly type: "inline";
|
|
@@ -1570,7 +1569,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1570
1569
|
readonly text: Schema.String;
|
|
1571
1570
|
}>>, never, never>;
|
|
1572
1571
|
}> & {
|
|
1573
|
-
create: (input:
|
|
1572
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
1574
1573
|
readonly data: string;
|
|
1575
1574
|
readonly source: {
|
|
1576
1575
|
readonly type: "inline";
|
|
@@ -7685,7 +7684,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7685
7684
|
readonly text: Schema.String;
|
|
7686
7685
|
}>>, never, never>;
|
|
7687
7686
|
}> & {
|
|
7688
|
-
create: (input:
|
|
7687
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
7689
7688
|
readonly data: string;
|
|
7690
7689
|
readonly source: {
|
|
7691
7690
|
readonly type: "inline";
|
|
@@ -7723,7 +7722,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7723
7722
|
readonly text: Schema.String;
|
|
7724
7723
|
}>>, never, never>;
|
|
7725
7724
|
}> & {
|
|
7726
|
-
create: (input:
|
|
7725
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
7727
7726
|
readonly data: string;
|
|
7728
7727
|
readonly source: {
|
|
7729
7728
|
readonly type: "inline";
|
|
@@ -7868,7 +7867,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7868
7867
|
readonly text: Schema.String;
|
|
7869
7868
|
}>>, never, never>;
|
|
7870
7869
|
}> & {
|
|
7871
|
-
create: (input:
|
|
7870
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
7872
7871
|
readonly data: string;
|
|
7873
7872
|
readonly source: {
|
|
7874
7873
|
readonly type: "inline";
|
|
@@ -7906,7 +7905,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7906
7905
|
readonly text: Schema.String;
|
|
7907
7906
|
}>>, never, never>;
|
|
7908
7907
|
}> & {
|
|
7909
|
-
create: (input:
|
|
7908
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
7910
7909
|
readonly data: string;
|
|
7911
7910
|
readonly source: {
|
|
7912
7911
|
readonly type: "inline";
|
package/dist/identifier.d.ts
CHANGED
package/dist/identifier.js
CHANGED
package/dist/provider.d.ts
CHANGED
|
@@ -97,7 +97,8 @@ export declare const Transport: Schema.Literals<readonly ["http", "websocket"]>;
|
|
|
97
97
|
export type Transport = typeof Transport.Type;
|
|
98
98
|
export declare const Settings: Schema.StructWithRest<Schema.Struct<{
|
|
99
99
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
100
|
-
readonly
|
|
100
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
101
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
101
102
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
102
103
|
readonly type: Schema.Literal<"summary">;
|
|
103
104
|
}>, Schema.Struct<{
|
|
@@ -113,7 +114,8 @@ export type Settings = typeof Settings.Type;
|
|
|
113
114
|
export declare const Overlays: {
|
|
114
115
|
settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
115
116
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
116
|
-
readonly
|
|
117
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
118
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
117
119
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
118
120
|
readonly type: Schema.Literal<"summary">;
|
|
119
121
|
}>, Schema.Struct<{
|
|
@@ -126,7 +128,8 @@ export declare const Overlays: {
|
|
|
126
128
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
127
129
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
128
130
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
129
|
-
readonly
|
|
131
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
132
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
130
133
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
131
134
|
readonly type: Schema.Literal<"summary">;
|
|
132
135
|
}>, Schema.Struct<{
|
|
@@ -146,7 +149,8 @@ export interface Request extends Schema.Schema.Type<typeof Request> {
|
|
|
146
149
|
export declare const Request: Schema.Struct<{
|
|
147
150
|
readonly settings: Schema.withConstructorDefault<Schema.StructWithRest<Schema.Struct<{
|
|
148
151
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
149
|
-
readonly
|
|
152
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
153
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
150
154
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
151
155
|
readonly type: Schema.Literal<"summary">;
|
|
152
156
|
}>, Schema.Struct<{
|
|
@@ -166,7 +170,8 @@ export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
|
166
170
|
export declare const Info: Schema.Struct<{
|
|
167
171
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
168
172
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
169
|
-
readonly
|
|
173
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
174
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
170
175
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
171
176
|
readonly type: Schema.Literal<"summary">;
|
|
172
177
|
}>, Schema.Struct<{
|
|
@@ -179,7 +184,8 @@ export declare const Info: Schema.Struct<{
|
|
|
179
184
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
180
185
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
181
186
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
182
|
-
readonly
|
|
187
|
+
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
188
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
183
189
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
184
190
|
readonly type: Schema.Literal<"summary">;
|
|
185
191
|
}>, Schema.Struct<{
|
package/dist/provider.js
CHANGED
|
@@ -30,7 +30,8 @@ export const Compaction = Schema.Union([
|
|
|
30
30
|
export const Transport = Schema.Literals(["http", "websocket"]).annotate({ identifier: "Provider.Transport" });
|
|
31
31
|
export const Settings = Schema.StructWithRest(Schema.Struct({
|
|
32
32
|
timeout: Schema.Union([Schema.Finite, Schema.Literal(false)]).pipe(optional),
|
|
33
|
-
|
|
33
|
+
headerTimeout: Schema.Union([Schema.Finite, Schema.Literal(false)]).pipe(optional),
|
|
34
|
+
chunkTimeout: Schema.Union([Schema.Finite, Schema.Literal(false)]).pipe(optional),
|
|
34
35
|
compaction: Compaction.pipe(optional),
|
|
35
36
|
transport: Transport.pipe(optional),
|
|
36
37
|
}), [Schema.Record(Schema.String, Schema.Any)]).annotate({ identifier: "Provider.Settings" });
|
package/dist/session-event.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * as SessionEvent from "./session-event.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { Event } from "./event.js";
|
|
4
|
-
import { FileAttachment } from "./prompt.js";
|
|
5
|
-
export { FileAttachment };
|
|
6
4
|
export declare const Source: Schema.Struct<{
|
|
7
5
|
readonly start: Schema.Int;
|
|
8
6
|
readonly end: Schema.Int;
|
|
@@ -1416,7 +1414,7 @@ export declare const InboxEnqueued: Schema.Struct<{
|
|
|
1416
1414
|
readonly text: Schema.String;
|
|
1417
1415
|
}>>, never, never>;
|
|
1418
1416
|
}> & {
|
|
1419
|
-
create: (input: FileAttachment) => {
|
|
1417
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
1420
1418
|
readonly data: string;
|
|
1421
1419
|
readonly source: {
|
|
1422
1420
|
readonly type: "inline";
|
|
@@ -1454,7 +1452,7 @@ export declare const InboxEnqueued: Schema.Struct<{
|
|
|
1454
1452
|
readonly text: Schema.String;
|
|
1455
1453
|
}>>, never, never>;
|
|
1456
1454
|
}> & {
|
|
1457
|
-
create: (input: FileAttachment) => {
|
|
1455
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
1458
1456
|
readonly data: string;
|
|
1459
1457
|
readonly source: {
|
|
1460
1458
|
readonly type: "inline";
|
|
@@ -1599,7 +1597,7 @@ export declare const InboxEnqueued: Schema.Struct<{
|
|
|
1599
1597
|
readonly text: Schema.String;
|
|
1600
1598
|
}>>, never, never>;
|
|
1601
1599
|
}> & {
|
|
1602
|
-
create: (input: FileAttachment) => {
|
|
1600
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
1603
1601
|
readonly data: string;
|
|
1604
1602
|
readonly source: {
|
|
1605
1603
|
readonly type: "inline";
|
|
@@ -1637,7 +1635,7 @@ export declare const InboxEnqueued: Schema.Struct<{
|
|
|
1637
1635
|
readonly text: Schema.String;
|
|
1638
1636
|
}>>, never, never>;
|
|
1639
1637
|
}> & {
|
|
1640
|
-
create: (input: FileAttachment) => {
|
|
1638
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
1641
1639
|
readonly data: string;
|
|
1642
1640
|
readonly source: {
|
|
1643
1641
|
readonly type: "inline";
|
|
@@ -5697,7 +5695,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5697
5695
|
readonly text: Schema.String;
|
|
5698
5696
|
}>>, never, never>;
|
|
5699
5697
|
}> & {
|
|
5700
|
-
create: (input: FileAttachment) => {
|
|
5698
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
5701
5699
|
readonly data: string;
|
|
5702
5700
|
readonly source: {
|
|
5703
5701
|
readonly type: "inline";
|
|
@@ -5735,7 +5733,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5735
5733
|
readonly text: Schema.String;
|
|
5736
5734
|
}>>, never, never>;
|
|
5737
5735
|
}> & {
|
|
5738
|
-
create: (input: FileAttachment) => {
|
|
5736
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
5739
5737
|
readonly data: string;
|
|
5740
5738
|
readonly source: {
|
|
5741
5739
|
readonly type: "inline";
|
|
@@ -5880,7 +5878,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5880
5878
|
readonly text: Schema.String;
|
|
5881
5879
|
}>>, never, never>;
|
|
5882
5880
|
}> & {
|
|
5883
|
-
create: (input: FileAttachment) => {
|
|
5881
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
5884
5882
|
readonly data: string;
|
|
5885
5883
|
readonly source: {
|
|
5886
5884
|
readonly type: "inline";
|
|
@@ -5918,7 +5916,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5918
5916
|
readonly text: Schema.String;
|
|
5919
5917
|
}>>, never, never>;
|
|
5920
5918
|
}> & {
|
|
5921
|
-
create: (input: FileAttachment) => {
|
|
5919
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
5922
5920
|
readonly data: string;
|
|
5923
5921
|
readonly source: {
|
|
5924
5922
|
readonly type: "inline";
|
|
@@ -9814,7 +9812,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9814
9812
|
readonly text: Schema.String;
|
|
9815
9813
|
}>>, never, never>;
|
|
9816
9814
|
}> & {
|
|
9817
|
-
create: (input: FileAttachment) => {
|
|
9815
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
9818
9816
|
readonly data: string;
|
|
9819
9817
|
readonly source: {
|
|
9820
9818
|
readonly type: "inline";
|
|
@@ -9852,7 +9850,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9852
9850
|
readonly text: Schema.String;
|
|
9853
9851
|
}>>, never, never>;
|
|
9854
9852
|
}> & {
|
|
9855
|
-
create: (input: FileAttachment) => {
|
|
9853
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
9856
9854
|
readonly data: string;
|
|
9857
9855
|
readonly source: {
|
|
9858
9856
|
readonly type: "inline";
|
|
@@ -9997,7 +9995,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9997
9995
|
readonly text: Schema.String;
|
|
9998
9996
|
}>>, never, never>;
|
|
9999
9997
|
}> & {
|
|
10000
|
-
create: (input: FileAttachment) => {
|
|
9998
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
10001
9999
|
readonly data: string;
|
|
10002
10000
|
readonly source: {
|
|
10003
10001
|
readonly type: "inline";
|
|
@@ -10035,7 +10033,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
10035
10033
|
readonly text: Schema.String;
|
|
10036
10034
|
}>>, never, never>;
|
|
10037
10035
|
}> & {
|
|
10038
|
-
create: (input: FileAttachment) => {
|
|
10036
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
10039
10037
|
readonly data: string;
|
|
10040
10038
|
readonly source: {
|
|
10041
10039
|
readonly type: "inline";
|
|
@@ -14292,7 +14290,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
14292
14290
|
readonly text: Schema.String;
|
|
14293
14291
|
}>>, never, never>;
|
|
14294
14292
|
}> & {
|
|
14295
|
-
create: (input: FileAttachment) => {
|
|
14293
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
14296
14294
|
readonly data: string;
|
|
14297
14295
|
readonly source: {
|
|
14298
14296
|
readonly type: "inline";
|
|
@@ -14330,7 +14328,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
14330
14328
|
readonly text: Schema.String;
|
|
14331
14329
|
}>>, never, never>;
|
|
14332
14330
|
}> & {
|
|
14333
|
-
create: (input: FileAttachment) => {
|
|
14331
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
14334
14332
|
readonly data: string;
|
|
14335
14333
|
readonly source: {
|
|
14336
14334
|
readonly type: "inline";
|
|
@@ -14475,7 +14473,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
14475
14473
|
readonly text: Schema.String;
|
|
14476
14474
|
}>>, never, never>;
|
|
14477
14475
|
}> & {
|
|
14478
|
-
create: (input: FileAttachment) => {
|
|
14476
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
14479
14477
|
readonly data: string;
|
|
14480
14478
|
readonly source: {
|
|
14481
14479
|
readonly type: "inline";
|
|
@@ -14513,7 +14511,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
14513
14511
|
readonly text: Schema.String;
|
|
14514
14512
|
}>>, never, never>;
|
|
14515
14513
|
}> & {
|
|
14516
|
-
create: (input: FileAttachment) => {
|
|
14514
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
14517
14515
|
readonly data: string;
|
|
14518
14516
|
readonly source: {
|
|
14519
14517
|
readonly type: "inline";
|
|
@@ -18444,7 +18442,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
18444
18442
|
readonly text: Schema.String;
|
|
18445
18443
|
}>>, never, never>;
|
|
18446
18444
|
}> & {
|
|
18447
|
-
create: (input: FileAttachment) => {
|
|
18445
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
18448
18446
|
readonly data: string;
|
|
18449
18447
|
readonly source: {
|
|
18450
18448
|
readonly type: "inline";
|
|
@@ -18482,7 +18480,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
18482
18480
|
readonly text: Schema.String;
|
|
18483
18481
|
}>>, never, never>;
|
|
18484
18482
|
}> & {
|
|
18485
|
-
create: (input: FileAttachment) => {
|
|
18483
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
18486
18484
|
readonly data: string;
|
|
18487
18485
|
readonly source: {
|
|
18488
18486
|
readonly type: "inline";
|
|
@@ -18627,7 +18625,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
18627
18625
|
readonly text: Schema.String;
|
|
18628
18626
|
}>>, never, never>;
|
|
18629
18627
|
}> & {
|
|
18630
|
-
create: (input: FileAttachment) => {
|
|
18628
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
18631
18629
|
readonly data: string;
|
|
18632
18630
|
readonly source: {
|
|
18633
18631
|
readonly type: "inline";
|
|
@@ -18665,7 +18663,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
18665
18663
|
readonly text: Schema.String;
|
|
18666
18664
|
}>>, never, never>;
|
|
18667
18665
|
}> & {
|
|
18668
|
-
create: (input: FileAttachment) => {
|
|
18666
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
18669
18667
|
readonly data: string;
|
|
18670
18668
|
readonly source: {
|
|
18671
18669
|
readonly type: "inline";
|
package/dist/session-event.js
CHANGED
|
@@ -6,7 +6,6 @@ import { FinishReason } from "./llm.js";
|
|
|
6
6
|
import { Content } from "./tool.js";
|
|
7
7
|
import { Model } from "./model.js";
|
|
8
8
|
import { NonNegativeInt, PositiveInt, RelativePath } from "./schema.js";
|
|
9
|
-
import { FileAttachment } from "./prompt.js";
|
|
10
9
|
import { SessionID } from "./session-id.js";
|
|
11
10
|
import { SessionMetadata } from "./session-metadata.js";
|
|
12
11
|
import { Location } from "./location.js";
|
|
@@ -25,7 +24,6 @@ import { SessionInbox } from "./session-inbox.js";
|
|
|
25
24
|
import { Project } from "./project.js";
|
|
26
25
|
import { SessionFork } from "./session-fork.js";
|
|
27
26
|
import { Permission } from "./permission.js";
|
|
28
|
-
export { FileAttachment };
|
|
29
27
|
export const Source = Schema.Struct({
|
|
30
28
|
start: NonNegativeInt,
|
|
31
29
|
end: NonNegativeInt,
|