@opencode/schema 2.0.20 → 2.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/agent.d.ts CHANGED
@@ -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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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
- default: () => {
113
- tools: true;
114
- input: string[];
115
- output: string[];
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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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<{
@@ -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
- chunkTimeout: Schema.Finite.pipe(optional),
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
- capabilities: Capabilities.pipe(optional),
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/form.d.ts CHANGED
@@ -536,6 +536,7 @@ export declare const State: Schema.Union<readonly [Schema.Struct<{
536
536
  readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
537
537
  }>, Schema.Struct<{
538
538
  readonly status: Schema.Literal<"cancelled">;
539
+ readonly message: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
539
540
  }>]>;
540
541
  export type State = typeof State.Type;
541
542
  export declare const Detail: Schema.Struct<{
@@ -546,6 +547,7 @@ export declare const Detail: Schema.Struct<{
546
547
  readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
547
548
  }>, Schema.Struct<{
548
549
  readonly status: Schema.Literal<"cancelled">;
550
+ readonly message: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
549
551
  }>]>;
550
552
  readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
551
553
  readonly type: Schema.Literal<"string">;
package/dist/form.js CHANGED
@@ -110,7 +110,8 @@ export const Answer = Schema.Record(Schema.String, Value).annotate({ identifier:
110
110
  export const State = Schema.Union([
111
111
  Schema.Struct({ status: Schema.Literal("pending") }),
112
112
  Schema.Struct({ status: Schema.Literal("answered"), answer: Answer }),
113
- Schema.Struct({ status: Schema.Literal("cancelled") }),
113
+ // A message tells the asker why nobody answered, e.g. a non-interactive client.
114
+ Schema.Struct({ status: Schema.Literal("cancelled"), message: Schema.String.pipe(optional) }),
114
115
  ])
115
116
  .pipe(Schema.toTaggedUnion("status"))
116
117
  .annotate({ identifier: "Form.State" });
@@ -1,3 +1,4 @@
1
+ export * as Identifier from "./identifier.js";
1
2
  export declare function ascending(): string;
2
3
  export declare function descending(): string;
3
4
  export declare function create(descending: boolean, timestamp?: number): string;
@@ -1,3 +1,4 @@
1
+ export * as Identifier from "./identifier.js";
1
2
  const length = 26;
2
3
  const chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
3
4
  let lastTimestamp = 0;
@@ -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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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 chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
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
- chunkTimeout: Schema.Finite.pipe(optional),
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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "2.0.20",
4
+ "version": "2.0.22",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {