@opencode/protocol 2.0.8 → 2.0.10
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 +84 -28
- package/dist/groups/provider.d.ts +54 -26
- package/dist/groups/session.d.ts +2 -2
- package/dist/simulation.d.ts +29 -0
- package/dist/simulation.js +10 -0
- 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,27 @@ 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 compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
28
|
+
readonly type: Schema.Literal<"summary">;
|
|
29
|
+
}>, Schema.Struct<{
|
|
30
|
+
readonly type: Schema.Literal<"native">;
|
|
31
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
32
|
+
readonly type: Schema.Literal<"summary">;
|
|
33
|
+
}>, Schema.Struct<{
|
|
34
|
+
readonly type: Schema.Literal<"native">;
|
|
35
|
+
}>]>>, never, never>;
|
|
36
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
37
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
38
|
+
readonly type: Schema.Literal<"summary">;
|
|
39
|
+
}>, Schema.Struct<{
|
|
40
|
+
readonly type: Schema.Literal<"native">;
|
|
41
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
42
|
+
readonly type: Schema.Literal<"summary">;
|
|
43
|
+
}>, Schema.Struct<{
|
|
44
|
+
readonly type: Schema.Literal<"native">;
|
|
45
|
+
}>]>>, never, never>;
|
|
46
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
27
47
|
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
48
|
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
49
|
readonly id: Schema.brand<Schema.String, "Model.VariantID">;
|
|
@@ -61,7 +81,27 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
61
81
|
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
62
82
|
readonly output: Schema.Int;
|
|
63
83
|
}>;
|
|
64
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema
|
|
84
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
85
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
86
|
+
readonly type: Schema.Literal<"summary">;
|
|
87
|
+
}>, Schema.Struct<{
|
|
88
|
+
readonly type: Schema.Literal<"native">;
|
|
89
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
90
|
+
readonly type: Schema.Literal<"summary">;
|
|
91
|
+
}>, Schema.Struct<{
|
|
92
|
+
readonly type: Schema.Literal<"native">;
|
|
93
|
+
}>]>>, never, never>;
|
|
94
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
95
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
96
|
+
readonly type: Schema.Literal<"summary">;
|
|
97
|
+
}>, Schema.Struct<{
|
|
98
|
+
readonly type: Schema.Literal<"native">;
|
|
99
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
100
|
+
readonly type: Schema.Literal<"summary">;
|
|
101
|
+
}>, Schema.Struct<{
|
|
102
|
+
readonly type: Schema.Literal<"native">;
|
|
103
|
+
}>]>>, never, never>;
|
|
104
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
65
105
|
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
106
|
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
107
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
@@ -122,18 +162,6 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
122
162
|
readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
123
163
|
}>>, never, never>;
|
|
124
164
|
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
165
|
}> & {
|
|
138
166
|
default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
|
|
139
167
|
id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
@@ -179,7 +207,27 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
179
207
|
};
|
|
180
208
|
};
|
|
181
209
|
readonly variants: Schema.$Array<Schema.Struct<{
|
|
182
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema
|
|
210
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
211
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
212
|
+
readonly type: Schema.Literal<"summary">;
|
|
213
|
+
}>, Schema.Struct<{
|
|
214
|
+
readonly type: Schema.Literal<"native">;
|
|
215
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
216
|
+
readonly type: Schema.Literal<"summary">;
|
|
217
|
+
}>, Schema.Struct<{
|
|
218
|
+
readonly type: Schema.Literal<"native">;
|
|
219
|
+
}>]>>, never, never>;
|
|
220
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
221
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
222
|
+
readonly type: Schema.Literal<"summary">;
|
|
223
|
+
}>, Schema.Struct<{
|
|
224
|
+
readonly type: Schema.Literal<"native">;
|
|
225
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
226
|
+
readonly type: Schema.Literal<"summary">;
|
|
227
|
+
}>, Schema.Struct<{
|
|
228
|
+
readonly type: Schema.Literal<"native">;
|
|
229
|
+
}>]>>, never, never>;
|
|
230
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
183
231
|
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
232
|
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
233
|
readonly id: Schema.brand<Schema.String, "Model.VariantID">;
|
|
@@ -217,7 +265,27 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
217
265
|
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
218
266
|
readonly output: Schema.Int;
|
|
219
267
|
}>;
|
|
220
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema
|
|
268
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
269
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
270
|
+
readonly type: Schema.Literal<"summary">;
|
|
271
|
+
}>, Schema.Struct<{
|
|
272
|
+
readonly type: Schema.Literal<"native">;
|
|
273
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
274
|
+
readonly type: Schema.Literal<"summary">;
|
|
275
|
+
}>, Schema.Struct<{
|
|
276
|
+
readonly type: Schema.Literal<"native">;
|
|
277
|
+
}>]>>, never, never>;
|
|
278
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
279
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
280
|
+
readonly type: Schema.Literal<"summary">;
|
|
281
|
+
}>, Schema.Struct<{
|
|
282
|
+
readonly type: Schema.Literal<"native">;
|
|
283
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
284
|
+
readonly type: Schema.Literal<"summary">;
|
|
285
|
+
}>, Schema.Struct<{
|
|
286
|
+
readonly type: Schema.Literal<"native">;
|
|
287
|
+
}>]>>, never, never>;
|
|
288
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
221
289
|
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
290
|
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
291
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
@@ -278,18 +346,6 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
278
346
|
readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
279
347
|
}>>, never, never>;
|
|
280
348
|
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
349
|
}> & {
|
|
294
350
|
default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
|
|
295
351
|
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/dist/simulation.d.ts
CHANGED
|
@@ -323,6 +323,17 @@ export declare namespace Frontend {
|
|
|
323
323
|
}
|
|
324
324
|
const Color: Schema.Tuple<readonly [Schema.Number, Schema.Number, Schema.Number, Schema.Number]>;
|
|
325
325
|
type Color = Schema.Schema.Type<typeof Color>;
|
|
326
|
+
const CapturedImage: Schema.Struct<{
|
|
327
|
+
readonly x: Schema.Number;
|
|
328
|
+
readonly y: Schema.Number;
|
|
329
|
+
readonly width: Schema.Number;
|
|
330
|
+
readonly height: Schema.Number;
|
|
331
|
+
readonly pixelWidth: Schema.Number;
|
|
332
|
+
readonly pixelHeight: Schema.Number;
|
|
333
|
+
readonly rgba: Schema.String;
|
|
334
|
+
}>;
|
|
335
|
+
interface CapturedImage extends Schema.Schema.Type<typeof CapturedImage> {
|
|
336
|
+
}
|
|
326
337
|
const CapturedFrame: Schema.Struct<{
|
|
327
338
|
readonly cols: Schema.Number;
|
|
328
339
|
readonly rows: Schema.Number;
|
|
@@ -336,6 +347,15 @@ export declare namespace Frontend {
|
|
|
336
347
|
readonly width: Schema.Number;
|
|
337
348
|
}>>;
|
|
338
349
|
}>>;
|
|
350
|
+
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
351
|
+
readonly x: Schema.Number;
|
|
352
|
+
readonly y: Schema.Number;
|
|
353
|
+
readonly width: Schema.Number;
|
|
354
|
+
readonly height: Schema.Number;
|
|
355
|
+
readonly pixelWidth: Schema.Number;
|
|
356
|
+
readonly pixelHeight: Schema.Number;
|
|
357
|
+
readonly rgba: Schema.String;
|
|
358
|
+
}>>>;
|
|
339
359
|
}>;
|
|
340
360
|
interface CapturedFrame extends Schema.Schema.Type<typeof CapturedFrame> {
|
|
341
361
|
}
|
|
@@ -1498,6 +1518,15 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
|
|
|
1498
1518
|
readonly width: Schema.Number;
|
|
1499
1519
|
}>>;
|
|
1500
1520
|
}>>;
|
|
1521
|
+
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1522
|
+
readonly x: Schema.Number;
|
|
1523
|
+
readonly y: Schema.Number;
|
|
1524
|
+
readonly width: Schema.Number;
|
|
1525
|
+
readonly height: Schema.Number;
|
|
1526
|
+
readonly pixelWidth: Schema.Number;
|
|
1527
|
+
readonly pixelHeight: Schema.Number;
|
|
1528
|
+
readonly rgba: Schema.String;
|
|
1529
|
+
}>>>;
|
|
1501
1530
|
}>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.matches", Schema.Struct<{
|
|
1502
1531
|
readonly text: Schema.String;
|
|
1503
1532
|
}>, Schema.Boolean, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.recording.finish", Schema.Void, Schema.String, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.type", Schema.Struct<{
|
package/dist/simulation.js
CHANGED
|
@@ -265,6 +265,15 @@ export var Frontend;
|
|
|
265
265
|
})),
|
|
266
266
|
});
|
|
267
267
|
Frontend.Color = Schema.Tuple([Schema.Number, Schema.Number, Schema.Number, Schema.Number]);
|
|
268
|
+
Frontend.CapturedImage = Schema.Struct({
|
|
269
|
+
x: Schema.Number,
|
|
270
|
+
y: Schema.Number,
|
|
271
|
+
width: Schema.Number,
|
|
272
|
+
height: Schema.Number,
|
|
273
|
+
pixelWidth: Schema.Number,
|
|
274
|
+
pixelHeight: Schema.Number,
|
|
275
|
+
rgba: Schema.String.check(Schema.isBase64()),
|
|
276
|
+
});
|
|
268
277
|
Frontend.CapturedFrame = Schema.Struct({
|
|
269
278
|
cols: Schema.Number,
|
|
270
279
|
rows: Schema.Number,
|
|
@@ -278,6 +287,7 @@ export var Frontend;
|
|
|
278
287
|
width: Schema.Number,
|
|
279
288
|
})),
|
|
280
289
|
})),
|
|
290
|
+
images: Schema.optionalKey(Schema.Array(Frontend.CapturedImage)),
|
|
281
291
|
});
|
|
282
292
|
Frontend.RecordingFinish = Schema.String;
|
|
283
293
|
Frontend.Matches = Schema.Boolean;
|
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": "2.0.
|
|
4
|
+
"version": "2.0.10",
|
|
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": "2.0.
|
|
35
|
+
"@opencode/schema": "2.0.10",
|
|
36
36
|
"effect": "4.0.0-rc.112"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|