@opencode/protocol 0.0.0-dev-19787 → 0.0.0-dev-19790
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/groups/agent.d.ts +28 -2
- package/dist/groups/event.d.ts +4 -4
- package/dist/groups/model.d.ts +108 -28
- package/dist/groups/provider.d.ts +54 -26
- package/dist/groups/session.d.ts +2 -2
- package/package.json +2 -2
package/dist/groups/agent.d.ts
CHANGED
|
@@ -59,7 +59,20 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
|
|
|
59
59
|
};
|
|
60
60
|
}>, never, never>;
|
|
61
61
|
readonly request: Schema.Struct<{
|
|
62
|
-
readonly settings: Schema.withConstructorDefault<Schema
|
|
62
|
+
readonly settings: Schema.withConstructorDefault<Schema.StructWithRest<Schema.Struct<{
|
|
63
|
+
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>;
|
|
64
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
65
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
66
|
+
readonly type: Schema.Literal<"summary">;
|
|
67
|
+
}>, Schema.Struct<{
|
|
68
|
+
readonly type: Schema.Literal<"native">;
|
|
69
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
70
|
+
readonly type: Schema.Literal<"summary">;
|
|
71
|
+
}>, Schema.Struct<{
|
|
72
|
+
readonly type: Schema.Literal<"native">;
|
|
73
|
+
}>]>>, never, never>;
|
|
74
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
75
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>;
|
|
63
76
|
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
64
77
|
readonly body: Schema.$Record<Schema.String, Schema.Any>;
|
|
65
78
|
}>;
|
|
@@ -155,7 +168,20 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
|
|
|
155
168
|
};
|
|
156
169
|
}>, never, never>;
|
|
157
170
|
readonly request: Schema.Struct<{
|
|
158
|
-
readonly settings: Schema.withConstructorDefault<Schema
|
|
171
|
+
readonly settings: Schema.withConstructorDefault<Schema.StructWithRest<Schema.Struct<{
|
|
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>;
|
|
173
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
174
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
175
|
+
readonly type: Schema.Literal<"summary">;
|
|
176
|
+
}>, Schema.Struct<{
|
|
177
|
+
readonly type: Schema.Literal<"native">;
|
|
178
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
179
|
+
readonly type: Schema.Literal<"summary">;
|
|
180
|
+
}>, Schema.Struct<{
|
|
181
|
+
readonly type: Schema.Literal<"native">;
|
|
182
|
+
}>]>>, never, never>;
|
|
183
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
184
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>;
|
|
159
185
|
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
160
186
|
readonly body: Schema.$Record<Schema.String, Schema.Any>;
|
|
161
187
|
}>;
|
package/dist/groups/event.d.ts
CHANGED
|
@@ -6700,7 +6700,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
6700
6700
|
readonly [x: string]: unknown;
|
|
6701
6701
|
};
|
|
6702
6702
|
readonly command: string;
|
|
6703
|
-
readonly status: "
|
|
6703
|
+
readonly status: "timeout" | "running" | "exited" | "killed";
|
|
6704
6704
|
readonly time: {
|
|
6705
6705
|
readonly started: number;
|
|
6706
6706
|
readonly completed?: number | undefined;
|
|
@@ -6725,7 +6725,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
6725
6725
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
6726
6726
|
readonly data: {
|
|
6727
6727
|
readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
6728
|
-
readonly status: "
|
|
6728
|
+
readonly status: "timeout" | "running" | "exited" | "killed";
|
|
6729
6729
|
readonly exit?: number | undefined;
|
|
6730
6730
|
};
|
|
6731
6731
|
readonly type: "shell.exited";
|
|
@@ -7322,7 +7322,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7322
7322
|
readonly [x: string]: unknown;
|
|
7323
7323
|
};
|
|
7324
7324
|
readonly command: string;
|
|
7325
|
-
readonly status: "
|
|
7325
|
+
readonly status: "timeout" | "running" | "exited" | "killed";
|
|
7326
7326
|
readonly time: {
|
|
7327
7327
|
readonly started: number;
|
|
7328
7328
|
readonly completed?: number | undefined;
|
|
@@ -7358,7 +7358,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7358
7358
|
readonly [x: string]: unknown;
|
|
7359
7359
|
};
|
|
7360
7360
|
readonly command: string;
|
|
7361
|
-
readonly status: "
|
|
7361
|
+
readonly status: "timeout" | "running" | "exited" | "killed";
|
|
7362
7362
|
readonly time: {
|
|
7363
7363
|
readonly started: number;
|
|
7364
7364
|
readonly completed?: number | undefined;
|
package/dist/groups/model.d.ts
CHANGED
|
@@ -23,7 +23,33 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
readonly variants: Schema.$Array<Schema.Struct<{
|
|
26
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema
|
|
26
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
27
|
+
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>;
|
|
28
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
29
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
30
|
+
readonly type: Schema.Literal<"summary">;
|
|
31
|
+
}>, Schema.Struct<{
|
|
32
|
+
readonly type: Schema.Literal<"native">;
|
|
33
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
34
|
+
readonly type: Schema.Literal<"summary">;
|
|
35
|
+
}>, Schema.Struct<{
|
|
36
|
+
readonly type: Schema.Literal<"native">;
|
|
37
|
+
}>]>>, never, never>;
|
|
38
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
39
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
40
|
+
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>;
|
|
41
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
42
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
43
|
+
readonly type: Schema.Literal<"summary">;
|
|
44
|
+
}>, Schema.Struct<{
|
|
45
|
+
readonly type: Schema.Literal<"native">;
|
|
46
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
47
|
+
readonly type: Schema.Literal<"summary">;
|
|
48
|
+
}>, Schema.Struct<{
|
|
49
|
+
readonly type: Schema.Literal<"native">;
|
|
50
|
+
}>]>>, never, never>;
|
|
51
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
52
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
27
53
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
28
54
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
29
55
|
readonly id: Schema.brand<Schema.String, "Model.VariantID">;
|
|
@@ -61,7 +87,33 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
61
87
|
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
62
88
|
readonly output: Schema.Int;
|
|
63
89
|
}>;
|
|
64
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema
|
|
90
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
91
|
+
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>;
|
|
92
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
93
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
94
|
+
readonly type: Schema.Literal<"summary">;
|
|
95
|
+
}>, Schema.Struct<{
|
|
96
|
+
readonly type: Schema.Literal<"native">;
|
|
97
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
98
|
+
readonly type: Schema.Literal<"summary">;
|
|
99
|
+
}>, Schema.Struct<{
|
|
100
|
+
readonly type: Schema.Literal<"native">;
|
|
101
|
+
}>]>>, never, never>;
|
|
102
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
103
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
104
|
+
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>;
|
|
105
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
106
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
107
|
+
readonly type: Schema.Literal<"summary">;
|
|
108
|
+
}>, Schema.Struct<{
|
|
109
|
+
readonly type: Schema.Literal<"native">;
|
|
110
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
111
|
+
readonly type: Schema.Literal<"summary">;
|
|
112
|
+
}>, Schema.Struct<{
|
|
113
|
+
readonly type: Schema.Literal<"native">;
|
|
114
|
+
}>]>>, never, never>;
|
|
115
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
116
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
65
117
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
66
118
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
67
119
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
@@ -122,18 +174,6 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
122
174
|
readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
123
175
|
}>>, never, never>;
|
|
124
176
|
readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
125
|
-
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
126
|
-
readonly mode: Schema.Literal<"local">;
|
|
127
|
-
}>, Schema.Struct<{
|
|
128
|
-
readonly mode: Schema.Literal<"provider">;
|
|
129
|
-
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
130
|
-
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
131
|
-
readonly mode: Schema.Literal<"local">;
|
|
132
|
-
}>, Schema.Struct<{
|
|
133
|
-
readonly mode: Schema.Literal<"provider">;
|
|
134
|
-
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
135
|
-
}>]>>, never, never>;
|
|
136
|
-
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
137
177
|
}> & {
|
|
138
178
|
default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
|
|
139
179
|
id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
@@ -179,7 +219,33 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
179
219
|
};
|
|
180
220
|
};
|
|
181
221
|
readonly variants: Schema.$Array<Schema.Struct<{
|
|
182
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema
|
|
222
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
223
|
+
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>;
|
|
224
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
225
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
226
|
+
readonly type: Schema.Literal<"summary">;
|
|
227
|
+
}>, Schema.Struct<{
|
|
228
|
+
readonly type: Schema.Literal<"native">;
|
|
229
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
230
|
+
readonly type: Schema.Literal<"summary">;
|
|
231
|
+
}>, Schema.Struct<{
|
|
232
|
+
readonly type: Schema.Literal<"native">;
|
|
233
|
+
}>]>>, never, never>;
|
|
234
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
235
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
236
|
+
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>;
|
|
237
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
238
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
239
|
+
readonly type: Schema.Literal<"summary">;
|
|
240
|
+
}>, Schema.Struct<{
|
|
241
|
+
readonly type: Schema.Literal<"native">;
|
|
242
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
243
|
+
readonly type: Schema.Literal<"summary">;
|
|
244
|
+
}>, Schema.Struct<{
|
|
245
|
+
readonly type: Schema.Literal<"native">;
|
|
246
|
+
}>]>>, never, never>;
|
|
247
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
248
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
183
249
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
184
250
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
185
251
|
readonly id: Schema.brand<Schema.String, "Model.VariantID">;
|
|
@@ -217,7 +283,33 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
217
283
|
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
218
284
|
readonly output: Schema.Int;
|
|
219
285
|
}>;
|
|
220
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema
|
|
286
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
287
|
+
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>;
|
|
288
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
289
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
290
|
+
readonly type: Schema.Literal<"summary">;
|
|
291
|
+
}>, Schema.Struct<{
|
|
292
|
+
readonly type: Schema.Literal<"native">;
|
|
293
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
294
|
+
readonly type: Schema.Literal<"summary">;
|
|
295
|
+
}>, Schema.Struct<{
|
|
296
|
+
readonly type: Schema.Literal<"native">;
|
|
297
|
+
}>]>>, never, never>;
|
|
298
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
299
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
300
|
+
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>;
|
|
301
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
302
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
303
|
+
readonly type: Schema.Literal<"summary">;
|
|
304
|
+
}>, Schema.Struct<{
|
|
305
|
+
readonly type: Schema.Literal<"native">;
|
|
306
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
307
|
+
readonly type: Schema.Literal<"summary">;
|
|
308
|
+
}>, Schema.Struct<{
|
|
309
|
+
readonly type: Schema.Literal<"native">;
|
|
310
|
+
}>]>>, never, never>;
|
|
311
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
312
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
221
313
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
222
314
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
223
315
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
@@ -278,18 +370,6 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
278
370
|
readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
279
371
|
}>>, never, never>;
|
|
280
372
|
readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
281
|
-
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
282
|
-
readonly mode: Schema.Literal<"local">;
|
|
283
|
-
}>, Schema.Struct<{
|
|
284
|
-
readonly mode: Schema.Literal<"provider">;
|
|
285
|
-
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
286
|
-
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
287
|
-
readonly mode: Schema.Literal<"local">;
|
|
288
|
-
}>, Schema.Struct<{
|
|
289
|
-
readonly mode: Schema.Literal<"provider">;
|
|
290
|
-
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
291
|
-
}>]>>, never, never>;
|
|
292
|
-
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
293
373
|
}> & {
|
|
294
374
|
default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
|
|
295
375
|
id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
@@ -11,7 +11,33 @@ export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider",
|
|
|
11
11
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
12
12
|
}>;
|
|
13
13
|
readonly data: Schema.$Array<Schema.Struct<{
|
|
14
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema
|
|
14
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
15
|
+
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>;
|
|
16
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
17
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
18
|
+
readonly type: Schema.Literal<"summary">;
|
|
19
|
+
}>, Schema.Struct<{
|
|
20
|
+
readonly type: Schema.Literal<"native">;
|
|
21
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
22
|
+
readonly type: Schema.Literal<"summary">;
|
|
23
|
+
}>, Schema.Struct<{
|
|
24
|
+
readonly type: Schema.Literal<"native">;
|
|
25
|
+
}>]>>, never, never>;
|
|
26
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
27
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
28
|
+
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>;
|
|
29
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
30
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
31
|
+
readonly type: Schema.Literal<"summary">;
|
|
32
|
+
}>, Schema.Struct<{
|
|
33
|
+
readonly type: Schema.Literal<"native">;
|
|
34
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
35
|
+
readonly type: Schema.Literal<"summary">;
|
|
36
|
+
}>, Schema.Struct<{
|
|
37
|
+
readonly type: Schema.Literal<"native">;
|
|
38
|
+
}>]>>, never, never>;
|
|
39
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
40
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
15
41
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
16
42
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
17
43
|
readonly id: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
@@ -56,18 +82,6 @@ export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider",
|
|
|
56
82
|
readonly name: Schema.String;
|
|
57
83
|
readonly activation: Schema.Literals<readonly ["auto", "enabled", "disabled"]>;
|
|
58
84
|
readonly package: Schema.String;
|
|
59
|
-
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
60
|
-
readonly mode: Schema.Literal<"local">;
|
|
61
|
-
}>, Schema.Struct<{
|
|
62
|
-
readonly mode: Schema.Literal<"provider">;
|
|
63
|
-
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
64
|
-
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
65
|
-
readonly mode: Schema.Literal<"local">;
|
|
66
|
-
}>, Schema.Struct<{
|
|
67
|
-
readonly mode: Schema.Literal<"provider">;
|
|
68
|
-
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
69
|
-
}>]>>, never, never>;
|
|
70
|
-
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
71
85
|
}> & {
|
|
72
86
|
empty: (id: Provider.ID) => Provider.Info;
|
|
73
87
|
}>;
|
|
@@ -94,7 +108,33 @@ export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider",
|
|
|
94
108
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
95
109
|
}>;
|
|
96
110
|
readonly data: Schema.Struct<{
|
|
97
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema
|
|
111
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
112
|
+
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>;
|
|
113
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
114
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
115
|
+
readonly type: Schema.Literal<"summary">;
|
|
116
|
+
}>, Schema.Struct<{
|
|
117
|
+
readonly type: Schema.Literal<"native">;
|
|
118
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
119
|
+
readonly type: Schema.Literal<"summary">;
|
|
120
|
+
}>, Schema.Struct<{
|
|
121
|
+
readonly type: Schema.Literal<"native">;
|
|
122
|
+
}>]>>, never, never>;
|
|
123
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
124
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
125
|
+
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>;
|
|
126
|
+
readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
127
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
128
|
+
readonly type: Schema.Literal<"summary">;
|
|
129
|
+
}>, Schema.Struct<{
|
|
130
|
+
readonly type: Schema.Literal<"native">;
|
|
131
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
132
|
+
readonly type: Schema.Literal<"summary">;
|
|
133
|
+
}>, Schema.Struct<{
|
|
134
|
+
readonly type: Schema.Literal<"native">;
|
|
135
|
+
}>]>>, never, never>;
|
|
136
|
+
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
137
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
98
138
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
99
139
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
100
140
|
readonly id: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
@@ -139,18 +179,6 @@ export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider",
|
|
|
139
179
|
readonly name: Schema.String;
|
|
140
180
|
readonly activation: Schema.Literals<readonly ["auto", "enabled", "disabled"]>;
|
|
141
181
|
readonly package: Schema.String;
|
|
142
|
-
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
143
|
-
readonly mode: Schema.Literal<"local">;
|
|
144
|
-
}>, Schema.Struct<{
|
|
145
|
-
readonly mode: Schema.Literal<"provider">;
|
|
146
|
-
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
147
|
-
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
148
|
-
readonly mode: Schema.Literal<"local">;
|
|
149
|
-
}>, Schema.Struct<{
|
|
150
|
-
readonly mode: Schema.Literal<"provider">;
|
|
151
|
-
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
152
|
-
}>]>>, never, never>;
|
|
153
|
-
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
154
182
|
}> & {
|
|
155
183
|
empty: (id: Provider.ID) => Provider.Info;
|
|
156
184
|
};
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -9238,7 +9238,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
9238
9238
|
readonly [x: string]: unknown;
|
|
9239
9239
|
};
|
|
9240
9240
|
readonly command: string;
|
|
9241
|
-
readonly status: "
|
|
9241
|
+
readonly status: "timeout" | "running" | "exited" | "killed";
|
|
9242
9242
|
readonly time: {
|
|
9243
9243
|
readonly started: number;
|
|
9244
9244
|
readonly completed?: number | undefined;
|
|
@@ -9274,7 +9274,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
9274
9274
|
readonly [x: string]: unknown;
|
|
9275
9275
|
};
|
|
9276
9276
|
readonly command: string;
|
|
9277
|
-
readonly status: "
|
|
9277
|
+
readonly status: "timeout" | "running" | "exited" | "killed";
|
|
9278
9278
|
readonly time: {
|
|
9279
9279
|
readonly started: number;
|
|
9280
9280
|
readonly completed?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/protocol",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-19790",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typecheck": "tsgo --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@opencode/schema": "0.0.0-dev-
|
|
35
|
+
"@opencode/schema": "0.0.0-dev-19790",
|
|
36
36
|
"effect": "4.0.0-rc.112"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|