relay-opencode 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +155 -2
- package/dist/chat-facts.d.ts +10 -0
- package/dist/chat-facts.js +41 -0
- package/dist/contract.d.ts +1561 -0
- package/dist/contract.js +57 -0
- package/dist/costs.d.ts +7 -0
- package/dist/costs.js +25 -0
- package/dist/decider.d.ts +49 -0
- package/dist/decider.js +109 -0
- package/dist/gui-experimental.cjs +66 -0
- package/dist/gui-styles.d.ts +5 -0
- package/dist/gui-styles.js +69 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +56 -0
- package/dist/intelligence.d.ts +34 -0
- package/dist/intelligence.js +113 -0
- package/dist/inventory.d.ts +34 -0
- package/dist/inventory.js +28 -0
- package/dist/relay-auto.d.ts +20 -0
- package/dist/relay-auto.js +54 -0
- package/dist/relay-command.d.ts +79 -0
- package/dist/relay-command.js +209 -0
- package/dist/relay-store.d.ts +64 -0
- package/dist/relay-store.js +111 -0
- package/dist/relay-view.d.ts +88 -0
- package/dist/relay-view.js +129 -0
- package/dist/review-helper.d.ts +8 -0
- package/dist/review-helper.js +49 -0
- package/dist/router.d.ts +97 -0
- package/dist/router.js +165 -0
- package/dist/rpc.d.ts +1563 -0
- package/dist/rpc.js +73 -0
- package/dist/settings.d.ts +16 -0
- package/dist/settings.js +22 -0
- package/package.json +45 -4
|
@@ -0,0 +1,1561 @@
|
|
|
1
|
+
export declare const RelayRpc: {
|
|
2
|
+
readonly id: "relay-opencode";
|
|
3
|
+
readonly events: {};
|
|
4
|
+
readonly methods: {
|
|
5
|
+
readonly getRelay: {
|
|
6
|
+
readonly errors: {
|
|
7
|
+
readonly rejected: {
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly properties: {};
|
|
10
|
+
readonly additionalProperties: false;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
readonly input: {
|
|
14
|
+
readonly type: "object";
|
|
15
|
+
readonly properties: {};
|
|
16
|
+
readonly additionalProperties: false;
|
|
17
|
+
};
|
|
18
|
+
readonly output: {
|
|
19
|
+
readonly type: "object";
|
|
20
|
+
readonly properties: {
|
|
21
|
+
readonly directory: {
|
|
22
|
+
readonly type: "string";
|
|
23
|
+
};
|
|
24
|
+
readonly settings: {
|
|
25
|
+
readonly type: "object";
|
|
26
|
+
readonly properties: {
|
|
27
|
+
readonly revision: {
|
|
28
|
+
readonly type: "integer";
|
|
29
|
+
readonly minimum: 0;
|
|
30
|
+
};
|
|
31
|
+
readonly modes: {
|
|
32
|
+
readonly type: "object";
|
|
33
|
+
readonly properties: {
|
|
34
|
+
readonly plan: {
|
|
35
|
+
readonly type: "array";
|
|
36
|
+
readonly items: {
|
|
37
|
+
readonly type: "object";
|
|
38
|
+
readonly properties: {
|
|
39
|
+
readonly useFor: {
|
|
40
|
+
readonly type: "string";
|
|
41
|
+
};
|
|
42
|
+
readonly providerID: {
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
};
|
|
45
|
+
readonly id: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
};
|
|
48
|
+
readonly variant: {
|
|
49
|
+
readonly anyOf: readonly [{
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "null";
|
|
53
|
+
}];
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly required: readonly ["providerID", "id", "variant", "useFor"];
|
|
57
|
+
readonly additionalProperties: false;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly execute: {
|
|
61
|
+
readonly type: "array";
|
|
62
|
+
readonly items: {
|
|
63
|
+
readonly type: "object";
|
|
64
|
+
readonly properties: {
|
|
65
|
+
readonly useFor: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
};
|
|
68
|
+
readonly providerID: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
};
|
|
71
|
+
readonly id: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
};
|
|
74
|
+
readonly variant: {
|
|
75
|
+
readonly anyOf: readonly [{
|
|
76
|
+
readonly type: "string";
|
|
77
|
+
}, {
|
|
78
|
+
readonly type: "null";
|
|
79
|
+
}];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
readonly required: readonly ["providerID", "id", "variant", "useFor"];
|
|
83
|
+
readonly additionalProperties: false;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
readonly review: {
|
|
87
|
+
readonly type: "array";
|
|
88
|
+
readonly items: {
|
|
89
|
+
readonly type: "object";
|
|
90
|
+
readonly properties: {
|
|
91
|
+
readonly useFor: {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
};
|
|
94
|
+
readonly providerID: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
};
|
|
97
|
+
readonly id: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
};
|
|
100
|
+
readonly variant: {
|
|
101
|
+
readonly anyOf: readonly [{
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
}, {
|
|
104
|
+
readonly type: "null";
|
|
105
|
+
}];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly required: readonly ["providerID", "id", "variant", "useFor"];
|
|
109
|
+
readonly additionalProperties: false;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly required: readonly ["plan", "execute", "review"];
|
|
114
|
+
readonly additionalProperties: false;
|
|
115
|
+
};
|
|
116
|
+
readonly decider: {
|
|
117
|
+
readonly anyOf: readonly [{
|
|
118
|
+
readonly type: "object";
|
|
119
|
+
readonly properties: {
|
|
120
|
+
readonly providerID: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
};
|
|
123
|
+
readonly id: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
};
|
|
126
|
+
readonly variant: {
|
|
127
|
+
readonly anyOf: readonly [{
|
|
128
|
+
readonly type: "string";
|
|
129
|
+
}, {
|
|
130
|
+
readonly type: "null";
|
|
131
|
+
}];
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly required: readonly ["providerID", "id", "variant"];
|
|
135
|
+
readonly additionalProperties: false;
|
|
136
|
+
}, {
|
|
137
|
+
readonly type: "null";
|
|
138
|
+
}];
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
readonly required: readonly ["revision", "modes", "decider"];
|
|
142
|
+
readonly additionalProperties: false;
|
|
143
|
+
};
|
|
144
|
+
readonly decisions: {
|
|
145
|
+
readonly type: "array";
|
|
146
|
+
readonly items: {
|
|
147
|
+
readonly type: "object";
|
|
148
|
+
readonly properties: {
|
|
149
|
+
readonly at: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
};
|
|
152
|
+
readonly sessionID: {
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
};
|
|
155
|
+
readonly kind: {
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly enum: readonly ["chat", "helper"];
|
|
158
|
+
};
|
|
159
|
+
readonly mode: {
|
|
160
|
+
readonly anyOf: readonly [{
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
readonly enum: readonly ["plan", "execute", "review"];
|
|
163
|
+
}, {
|
|
164
|
+
readonly type: "null";
|
|
165
|
+
}];
|
|
166
|
+
};
|
|
167
|
+
readonly confidence: {
|
|
168
|
+
readonly anyOf: readonly [{
|
|
169
|
+
readonly type: "number";
|
|
170
|
+
}, {
|
|
171
|
+
readonly type: "null";
|
|
172
|
+
}];
|
|
173
|
+
};
|
|
174
|
+
readonly fit: {
|
|
175
|
+
readonly anyOf: readonly [{
|
|
176
|
+
readonly type: "number";
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "null";
|
|
179
|
+
}];
|
|
180
|
+
};
|
|
181
|
+
readonly model: {
|
|
182
|
+
readonly anyOf: readonly [{
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
}, {
|
|
185
|
+
readonly type: "null";
|
|
186
|
+
}];
|
|
187
|
+
};
|
|
188
|
+
readonly ms: {
|
|
189
|
+
readonly type: "number";
|
|
190
|
+
};
|
|
191
|
+
readonly costUsd: {
|
|
192
|
+
readonly anyOf: readonly [{
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
}, {
|
|
195
|
+
readonly type: "null";
|
|
196
|
+
}];
|
|
197
|
+
};
|
|
198
|
+
readonly note: {
|
|
199
|
+
readonly anyOf: readonly [{
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
}, {
|
|
202
|
+
readonly type: "null";
|
|
203
|
+
}];
|
|
204
|
+
};
|
|
205
|
+
readonly messageID: {
|
|
206
|
+
readonly anyOf: readonly [{
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
}, {
|
|
209
|
+
readonly type: "null";
|
|
210
|
+
}];
|
|
211
|
+
};
|
|
212
|
+
readonly reply: {
|
|
213
|
+
readonly anyOf: readonly [{
|
|
214
|
+
readonly type: "object";
|
|
215
|
+
readonly properties: {
|
|
216
|
+
readonly requests: {
|
|
217
|
+
readonly type: "number";
|
|
218
|
+
};
|
|
219
|
+
readonly fresh: {
|
|
220
|
+
readonly type: "number";
|
|
221
|
+
};
|
|
222
|
+
readonly cached: {
|
|
223
|
+
readonly type: "number";
|
|
224
|
+
};
|
|
225
|
+
readonly costUsd: {
|
|
226
|
+
readonly anyOf: readonly [{
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
}, {
|
|
229
|
+
readonly type: "null";
|
|
230
|
+
}];
|
|
231
|
+
};
|
|
232
|
+
readonly seconds: {
|
|
233
|
+
readonly anyOf: readonly [{
|
|
234
|
+
readonly type: "number";
|
|
235
|
+
}, {
|
|
236
|
+
readonly type: "null";
|
|
237
|
+
}];
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds"];
|
|
241
|
+
readonly additionalProperties: false;
|
|
242
|
+
}, {
|
|
243
|
+
readonly type: "null";
|
|
244
|
+
}];
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
readonly required: readonly ["at", "sessionID", "kind", "mode", "confidence", "fit", "model", "ms", "costUsd", "note", "messageID", "reply"];
|
|
248
|
+
readonly additionalProperties: false;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
readonly deciders: {
|
|
252
|
+
readonly type: "array";
|
|
253
|
+
readonly items: {
|
|
254
|
+
readonly type: "object";
|
|
255
|
+
readonly properties: {
|
|
256
|
+
readonly providerID: {
|
|
257
|
+
readonly type: "string";
|
|
258
|
+
};
|
|
259
|
+
readonly id: {
|
|
260
|
+
readonly type: "string";
|
|
261
|
+
};
|
|
262
|
+
readonly name: {
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
};
|
|
265
|
+
readonly enabled: {
|
|
266
|
+
readonly type: "boolean";
|
|
267
|
+
};
|
|
268
|
+
readonly status: {
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
};
|
|
271
|
+
readonly variants: {
|
|
272
|
+
readonly type: "array";
|
|
273
|
+
readonly items: {
|
|
274
|
+
readonly type: "string";
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
readonly capabilities: {
|
|
278
|
+
readonly type: "object";
|
|
279
|
+
readonly properties: {
|
|
280
|
+
readonly input: {
|
|
281
|
+
readonly type: "array";
|
|
282
|
+
readonly items: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
readonly output: {
|
|
287
|
+
readonly type: "array";
|
|
288
|
+
readonly items: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
readonly tools: {
|
|
293
|
+
readonly type: "boolean";
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
readonly required: readonly ["input", "output", "tools"];
|
|
297
|
+
readonly additionalProperties: false;
|
|
298
|
+
};
|
|
299
|
+
readonly limit: {
|
|
300
|
+
readonly type: "object";
|
|
301
|
+
readonly properties: {
|
|
302
|
+
readonly context: {
|
|
303
|
+
readonly type: "number";
|
|
304
|
+
};
|
|
305
|
+
readonly output: {
|
|
306
|
+
readonly type: "number";
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
readonly required: readonly ["context", "output"];
|
|
310
|
+
readonly additionalProperties: false;
|
|
311
|
+
};
|
|
312
|
+
readonly cost: {
|
|
313
|
+
readonly type: "object";
|
|
314
|
+
readonly properties: {
|
|
315
|
+
readonly tiered: {
|
|
316
|
+
readonly type: "boolean";
|
|
317
|
+
};
|
|
318
|
+
readonly steps: {
|
|
319
|
+
readonly type: "array";
|
|
320
|
+
readonly items: {
|
|
321
|
+
readonly type: "object";
|
|
322
|
+
readonly properties: {
|
|
323
|
+
readonly inputPerMillion: {
|
|
324
|
+
readonly anyOf: readonly [{
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
}, {
|
|
327
|
+
readonly type: "null";
|
|
328
|
+
}];
|
|
329
|
+
};
|
|
330
|
+
readonly outputPerMillion: {
|
|
331
|
+
readonly anyOf: readonly [{
|
|
332
|
+
readonly type: "string";
|
|
333
|
+
}, {
|
|
334
|
+
readonly type: "null";
|
|
335
|
+
}];
|
|
336
|
+
};
|
|
337
|
+
readonly cacheReadPerMillion: {
|
|
338
|
+
readonly anyOf: readonly [{
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
}, {
|
|
341
|
+
readonly type: "null";
|
|
342
|
+
}];
|
|
343
|
+
};
|
|
344
|
+
readonly cacheWritePerMillion: {
|
|
345
|
+
readonly anyOf: readonly [{
|
|
346
|
+
readonly type: "string";
|
|
347
|
+
}, {
|
|
348
|
+
readonly type: "null";
|
|
349
|
+
}];
|
|
350
|
+
};
|
|
351
|
+
readonly above: {
|
|
352
|
+
readonly type: "number";
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
readonly required: readonly ["above", "inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion"];
|
|
356
|
+
readonly additionalProperties: false;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
readonly inputPerMillion: {
|
|
360
|
+
readonly anyOf: readonly [{
|
|
361
|
+
readonly type: "string";
|
|
362
|
+
}, {
|
|
363
|
+
readonly type: "null";
|
|
364
|
+
}];
|
|
365
|
+
};
|
|
366
|
+
readonly outputPerMillion: {
|
|
367
|
+
readonly anyOf: readonly [{
|
|
368
|
+
readonly type: "string";
|
|
369
|
+
}, {
|
|
370
|
+
readonly type: "null";
|
|
371
|
+
}];
|
|
372
|
+
};
|
|
373
|
+
readonly cacheReadPerMillion: {
|
|
374
|
+
readonly anyOf: readonly [{
|
|
375
|
+
readonly type: "string";
|
|
376
|
+
}, {
|
|
377
|
+
readonly type: "null";
|
|
378
|
+
}];
|
|
379
|
+
};
|
|
380
|
+
readonly cacheWritePerMillion: {
|
|
381
|
+
readonly anyOf: readonly [{
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
}, {
|
|
384
|
+
readonly type: "null";
|
|
385
|
+
}];
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
readonly required: readonly ["inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion", "tiered", "steps"];
|
|
389
|
+
readonly additionalProperties: false;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
readonly required: readonly ["providerID", "id", "name", "enabled", "status", "variants", "capabilities", "limit", "cost"];
|
|
393
|
+
readonly additionalProperties: false;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
readonly checks: {
|
|
397
|
+
readonly type: "object";
|
|
398
|
+
readonly properties: {
|
|
399
|
+
readonly active: {
|
|
400
|
+
readonly type: "boolean";
|
|
401
|
+
};
|
|
402
|
+
readonly note: {
|
|
403
|
+
readonly anyOf: readonly [{
|
|
404
|
+
readonly type: "string";
|
|
405
|
+
}, {
|
|
406
|
+
readonly type: "null";
|
|
407
|
+
}];
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
readonly required: readonly ["active", "note"];
|
|
411
|
+
readonly additionalProperties: false;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly required: readonly ["directory", "settings", "decisions", "deciders", "checks"];
|
|
415
|
+
readonly additionalProperties: false;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
readonly saveRelay: {
|
|
419
|
+
readonly errors: {
|
|
420
|
+
readonly rejected: {
|
|
421
|
+
readonly type: "object";
|
|
422
|
+
readonly properties: {};
|
|
423
|
+
readonly additionalProperties: false;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
readonly input: {
|
|
427
|
+
readonly type: "object";
|
|
428
|
+
readonly properties: {
|
|
429
|
+
readonly revision: {
|
|
430
|
+
readonly type: "integer";
|
|
431
|
+
readonly minimum: 0;
|
|
432
|
+
};
|
|
433
|
+
readonly modes: {
|
|
434
|
+
readonly type: "object";
|
|
435
|
+
readonly properties: {
|
|
436
|
+
readonly plan: {
|
|
437
|
+
readonly type: "array";
|
|
438
|
+
readonly items: {
|
|
439
|
+
readonly type: "object";
|
|
440
|
+
readonly properties: {
|
|
441
|
+
readonly useFor: {
|
|
442
|
+
readonly type: "string";
|
|
443
|
+
};
|
|
444
|
+
readonly providerID: {
|
|
445
|
+
readonly type: "string";
|
|
446
|
+
};
|
|
447
|
+
readonly id: {
|
|
448
|
+
readonly type: "string";
|
|
449
|
+
};
|
|
450
|
+
readonly variant: {
|
|
451
|
+
readonly anyOf: readonly [{
|
|
452
|
+
readonly type: "string";
|
|
453
|
+
}, {
|
|
454
|
+
readonly type: "null";
|
|
455
|
+
}];
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
readonly required: readonly ["providerID", "id", "variant"];
|
|
459
|
+
readonly additionalProperties: false;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
readonly execute: {
|
|
463
|
+
readonly type: "array";
|
|
464
|
+
readonly items: {
|
|
465
|
+
readonly type: "object";
|
|
466
|
+
readonly properties: {
|
|
467
|
+
readonly useFor: {
|
|
468
|
+
readonly type: "string";
|
|
469
|
+
};
|
|
470
|
+
readonly providerID: {
|
|
471
|
+
readonly type: "string";
|
|
472
|
+
};
|
|
473
|
+
readonly id: {
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
};
|
|
476
|
+
readonly variant: {
|
|
477
|
+
readonly anyOf: readonly [{
|
|
478
|
+
readonly type: "string";
|
|
479
|
+
}, {
|
|
480
|
+
readonly type: "null";
|
|
481
|
+
}];
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
readonly required: readonly ["providerID", "id", "variant"];
|
|
485
|
+
readonly additionalProperties: false;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
readonly review: {
|
|
489
|
+
readonly type: "array";
|
|
490
|
+
readonly items: {
|
|
491
|
+
readonly type: "object";
|
|
492
|
+
readonly properties: {
|
|
493
|
+
readonly useFor: {
|
|
494
|
+
readonly type: "string";
|
|
495
|
+
};
|
|
496
|
+
readonly providerID: {
|
|
497
|
+
readonly type: "string";
|
|
498
|
+
};
|
|
499
|
+
readonly id: {
|
|
500
|
+
readonly type: "string";
|
|
501
|
+
};
|
|
502
|
+
readonly variant: {
|
|
503
|
+
readonly anyOf: readonly [{
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
}, {
|
|
506
|
+
readonly type: "null";
|
|
507
|
+
}];
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
readonly required: readonly ["providerID", "id", "variant"];
|
|
511
|
+
readonly additionalProperties: false;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
readonly required: readonly ["plan", "execute", "review"];
|
|
516
|
+
readonly additionalProperties: false;
|
|
517
|
+
};
|
|
518
|
+
readonly decider: {
|
|
519
|
+
readonly anyOf: readonly [{
|
|
520
|
+
readonly type: "object";
|
|
521
|
+
readonly properties: {
|
|
522
|
+
readonly providerID: {
|
|
523
|
+
readonly type: "string";
|
|
524
|
+
};
|
|
525
|
+
readonly id: {
|
|
526
|
+
readonly type: "string";
|
|
527
|
+
};
|
|
528
|
+
readonly variant: {
|
|
529
|
+
readonly anyOf: readonly [{
|
|
530
|
+
readonly type: "string";
|
|
531
|
+
}, {
|
|
532
|
+
readonly type: "null";
|
|
533
|
+
}];
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
readonly required: readonly ["providerID", "id", "variant"];
|
|
537
|
+
readonly additionalProperties: false;
|
|
538
|
+
}, {
|
|
539
|
+
readonly type: "null";
|
|
540
|
+
}];
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
readonly required: readonly ["revision", "modes", "decider"];
|
|
544
|
+
readonly additionalProperties: false;
|
|
545
|
+
};
|
|
546
|
+
readonly output: {
|
|
547
|
+
readonly type: "object";
|
|
548
|
+
readonly properties: {
|
|
549
|
+
readonly directory: {
|
|
550
|
+
readonly type: "string";
|
|
551
|
+
};
|
|
552
|
+
readonly settings: {
|
|
553
|
+
readonly type: "object";
|
|
554
|
+
readonly properties: {
|
|
555
|
+
readonly revision: {
|
|
556
|
+
readonly type: "integer";
|
|
557
|
+
readonly minimum: 0;
|
|
558
|
+
};
|
|
559
|
+
readonly modes: {
|
|
560
|
+
readonly type: "object";
|
|
561
|
+
readonly properties: {
|
|
562
|
+
readonly plan: {
|
|
563
|
+
readonly type: "array";
|
|
564
|
+
readonly items: {
|
|
565
|
+
readonly type: "object";
|
|
566
|
+
readonly properties: {
|
|
567
|
+
readonly useFor: {
|
|
568
|
+
readonly type: "string";
|
|
569
|
+
};
|
|
570
|
+
readonly providerID: {
|
|
571
|
+
readonly type: "string";
|
|
572
|
+
};
|
|
573
|
+
readonly id: {
|
|
574
|
+
readonly type: "string";
|
|
575
|
+
};
|
|
576
|
+
readonly variant: {
|
|
577
|
+
readonly anyOf: readonly [{
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
}, {
|
|
580
|
+
readonly type: "null";
|
|
581
|
+
}];
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
readonly required: readonly ["providerID", "id", "variant", "useFor"];
|
|
585
|
+
readonly additionalProperties: false;
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
readonly execute: {
|
|
589
|
+
readonly type: "array";
|
|
590
|
+
readonly items: {
|
|
591
|
+
readonly type: "object";
|
|
592
|
+
readonly properties: {
|
|
593
|
+
readonly useFor: {
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
};
|
|
596
|
+
readonly providerID: {
|
|
597
|
+
readonly type: "string";
|
|
598
|
+
};
|
|
599
|
+
readonly id: {
|
|
600
|
+
readonly type: "string";
|
|
601
|
+
};
|
|
602
|
+
readonly variant: {
|
|
603
|
+
readonly anyOf: readonly [{
|
|
604
|
+
readonly type: "string";
|
|
605
|
+
}, {
|
|
606
|
+
readonly type: "null";
|
|
607
|
+
}];
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
readonly required: readonly ["providerID", "id", "variant", "useFor"];
|
|
611
|
+
readonly additionalProperties: false;
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
readonly review: {
|
|
615
|
+
readonly type: "array";
|
|
616
|
+
readonly items: {
|
|
617
|
+
readonly type: "object";
|
|
618
|
+
readonly properties: {
|
|
619
|
+
readonly useFor: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
};
|
|
622
|
+
readonly providerID: {
|
|
623
|
+
readonly type: "string";
|
|
624
|
+
};
|
|
625
|
+
readonly id: {
|
|
626
|
+
readonly type: "string";
|
|
627
|
+
};
|
|
628
|
+
readonly variant: {
|
|
629
|
+
readonly anyOf: readonly [{
|
|
630
|
+
readonly type: "string";
|
|
631
|
+
}, {
|
|
632
|
+
readonly type: "null";
|
|
633
|
+
}];
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
readonly required: readonly ["providerID", "id", "variant", "useFor"];
|
|
637
|
+
readonly additionalProperties: false;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
readonly required: readonly ["plan", "execute", "review"];
|
|
642
|
+
readonly additionalProperties: false;
|
|
643
|
+
};
|
|
644
|
+
readonly decider: {
|
|
645
|
+
readonly anyOf: readonly [{
|
|
646
|
+
readonly type: "object";
|
|
647
|
+
readonly properties: {
|
|
648
|
+
readonly providerID: {
|
|
649
|
+
readonly type: "string";
|
|
650
|
+
};
|
|
651
|
+
readonly id: {
|
|
652
|
+
readonly type: "string";
|
|
653
|
+
};
|
|
654
|
+
readonly variant: {
|
|
655
|
+
readonly anyOf: readonly [{
|
|
656
|
+
readonly type: "string";
|
|
657
|
+
}, {
|
|
658
|
+
readonly type: "null";
|
|
659
|
+
}];
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
readonly required: readonly ["providerID", "id", "variant"];
|
|
663
|
+
readonly additionalProperties: false;
|
|
664
|
+
}, {
|
|
665
|
+
readonly type: "null";
|
|
666
|
+
}];
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
readonly required: readonly ["revision", "modes", "decider"];
|
|
670
|
+
readonly additionalProperties: false;
|
|
671
|
+
};
|
|
672
|
+
readonly decisions: {
|
|
673
|
+
readonly type: "array";
|
|
674
|
+
readonly items: {
|
|
675
|
+
readonly type: "object";
|
|
676
|
+
readonly properties: {
|
|
677
|
+
readonly at: {
|
|
678
|
+
readonly type: "string";
|
|
679
|
+
};
|
|
680
|
+
readonly sessionID: {
|
|
681
|
+
readonly type: "string";
|
|
682
|
+
};
|
|
683
|
+
readonly kind: {
|
|
684
|
+
readonly type: "string";
|
|
685
|
+
readonly enum: readonly ["chat", "helper"];
|
|
686
|
+
};
|
|
687
|
+
readonly mode: {
|
|
688
|
+
readonly anyOf: readonly [{
|
|
689
|
+
readonly type: "string";
|
|
690
|
+
readonly enum: readonly ["plan", "execute", "review"];
|
|
691
|
+
}, {
|
|
692
|
+
readonly type: "null";
|
|
693
|
+
}];
|
|
694
|
+
};
|
|
695
|
+
readonly confidence: {
|
|
696
|
+
readonly anyOf: readonly [{
|
|
697
|
+
readonly type: "number";
|
|
698
|
+
}, {
|
|
699
|
+
readonly type: "null";
|
|
700
|
+
}];
|
|
701
|
+
};
|
|
702
|
+
readonly fit: {
|
|
703
|
+
readonly anyOf: readonly [{
|
|
704
|
+
readonly type: "number";
|
|
705
|
+
}, {
|
|
706
|
+
readonly type: "null";
|
|
707
|
+
}];
|
|
708
|
+
};
|
|
709
|
+
readonly model: {
|
|
710
|
+
readonly anyOf: readonly [{
|
|
711
|
+
readonly type: "string";
|
|
712
|
+
}, {
|
|
713
|
+
readonly type: "null";
|
|
714
|
+
}];
|
|
715
|
+
};
|
|
716
|
+
readonly ms: {
|
|
717
|
+
readonly type: "number";
|
|
718
|
+
};
|
|
719
|
+
readonly costUsd: {
|
|
720
|
+
readonly anyOf: readonly [{
|
|
721
|
+
readonly type: "string";
|
|
722
|
+
}, {
|
|
723
|
+
readonly type: "null";
|
|
724
|
+
}];
|
|
725
|
+
};
|
|
726
|
+
readonly note: {
|
|
727
|
+
readonly anyOf: readonly [{
|
|
728
|
+
readonly type: "string";
|
|
729
|
+
}, {
|
|
730
|
+
readonly type: "null";
|
|
731
|
+
}];
|
|
732
|
+
};
|
|
733
|
+
readonly messageID: {
|
|
734
|
+
readonly anyOf: readonly [{
|
|
735
|
+
readonly type: "string";
|
|
736
|
+
}, {
|
|
737
|
+
readonly type: "null";
|
|
738
|
+
}];
|
|
739
|
+
};
|
|
740
|
+
readonly reply: {
|
|
741
|
+
readonly anyOf: readonly [{
|
|
742
|
+
readonly type: "object";
|
|
743
|
+
readonly properties: {
|
|
744
|
+
readonly requests: {
|
|
745
|
+
readonly type: "number";
|
|
746
|
+
};
|
|
747
|
+
readonly fresh: {
|
|
748
|
+
readonly type: "number";
|
|
749
|
+
};
|
|
750
|
+
readonly cached: {
|
|
751
|
+
readonly type: "number";
|
|
752
|
+
};
|
|
753
|
+
readonly costUsd: {
|
|
754
|
+
readonly anyOf: readonly [{
|
|
755
|
+
readonly type: "string";
|
|
756
|
+
}, {
|
|
757
|
+
readonly type: "null";
|
|
758
|
+
}];
|
|
759
|
+
};
|
|
760
|
+
readonly seconds: {
|
|
761
|
+
readonly anyOf: readonly [{
|
|
762
|
+
readonly type: "number";
|
|
763
|
+
}, {
|
|
764
|
+
readonly type: "null";
|
|
765
|
+
}];
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds"];
|
|
769
|
+
readonly additionalProperties: false;
|
|
770
|
+
}, {
|
|
771
|
+
readonly type: "null";
|
|
772
|
+
}];
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
readonly required: readonly ["at", "sessionID", "kind", "mode", "confidence", "fit", "model", "ms", "costUsd", "note", "messageID", "reply"];
|
|
776
|
+
readonly additionalProperties: false;
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
readonly deciders: {
|
|
780
|
+
readonly type: "array";
|
|
781
|
+
readonly items: {
|
|
782
|
+
readonly type: "object";
|
|
783
|
+
readonly properties: {
|
|
784
|
+
readonly providerID: {
|
|
785
|
+
readonly type: "string";
|
|
786
|
+
};
|
|
787
|
+
readonly id: {
|
|
788
|
+
readonly type: "string";
|
|
789
|
+
};
|
|
790
|
+
readonly name: {
|
|
791
|
+
readonly type: "string";
|
|
792
|
+
};
|
|
793
|
+
readonly enabled: {
|
|
794
|
+
readonly type: "boolean";
|
|
795
|
+
};
|
|
796
|
+
readonly status: {
|
|
797
|
+
readonly type: "string";
|
|
798
|
+
};
|
|
799
|
+
readonly variants: {
|
|
800
|
+
readonly type: "array";
|
|
801
|
+
readonly items: {
|
|
802
|
+
readonly type: "string";
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
readonly capabilities: {
|
|
806
|
+
readonly type: "object";
|
|
807
|
+
readonly properties: {
|
|
808
|
+
readonly input: {
|
|
809
|
+
readonly type: "array";
|
|
810
|
+
readonly items: {
|
|
811
|
+
readonly type: "string";
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
readonly output: {
|
|
815
|
+
readonly type: "array";
|
|
816
|
+
readonly items: {
|
|
817
|
+
readonly type: "string";
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
readonly tools: {
|
|
821
|
+
readonly type: "boolean";
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
readonly required: readonly ["input", "output", "tools"];
|
|
825
|
+
readonly additionalProperties: false;
|
|
826
|
+
};
|
|
827
|
+
readonly limit: {
|
|
828
|
+
readonly type: "object";
|
|
829
|
+
readonly properties: {
|
|
830
|
+
readonly context: {
|
|
831
|
+
readonly type: "number";
|
|
832
|
+
};
|
|
833
|
+
readonly output: {
|
|
834
|
+
readonly type: "number";
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
readonly required: readonly ["context", "output"];
|
|
838
|
+
readonly additionalProperties: false;
|
|
839
|
+
};
|
|
840
|
+
readonly cost: {
|
|
841
|
+
readonly type: "object";
|
|
842
|
+
readonly properties: {
|
|
843
|
+
readonly tiered: {
|
|
844
|
+
readonly type: "boolean";
|
|
845
|
+
};
|
|
846
|
+
readonly steps: {
|
|
847
|
+
readonly type: "array";
|
|
848
|
+
readonly items: {
|
|
849
|
+
readonly type: "object";
|
|
850
|
+
readonly properties: {
|
|
851
|
+
readonly inputPerMillion: {
|
|
852
|
+
readonly anyOf: readonly [{
|
|
853
|
+
readonly type: "string";
|
|
854
|
+
}, {
|
|
855
|
+
readonly type: "null";
|
|
856
|
+
}];
|
|
857
|
+
};
|
|
858
|
+
readonly outputPerMillion: {
|
|
859
|
+
readonly anyOf: readonly [{
|
|
860
|
+
readonly type: "string";
|
|
861
|
+
}, {
|
|
862
|
+
readonly type: "null";
|
|
863
|
+
}];
|
|
864
|
+
};
|
|
865
|
+
readonly cacheReadPerMillion: {
|
|
866
|
+
readonly anyOf: readonly [{
|
|
867
|
+
readonly type: "string";
|
|
868
|
+
}, {
|
|
869
|
+
readonly type: "null";
|
|
870
|
+
}];
|
|
871
|
+
};
|
|
872
|
+
readonly cacheWritePerMillion: {
|
|
873
|
+
readonly anyOf: readonly [{
|
|
874
|
+
readonly type: "string";
|
|
875
|
+
}, {
|
|
876
|
+
readonly type: "null";
|
|
877
|
+
}];
|
|
878
|
+
};
|
|
879
|
+
readonly above: {
|
|
880
|
+
readonly type: "number";
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
readonly required: readonly ["above", "inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion"];
|
|
884
|
+
readonly additionalProperties: false;
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
readonly inputPerMillion: {
|
|
888
|
+
readonly anyOf: readonly [{
|
|
889
|
+
readonly type: "string";
|
|
890
|
+
}, {
|
|
891
|
+
readonly type: "null";
|
|
892
|
+
}];
|
|
893
|
+
};
|
|
894
|
+
readonly outputPerMillion: {
|
|
895
|
+
readonly anyOf: readonly [{
|
|
896
|
+
readonly type: "string";
|
|
897
|
+
}, {
|
|
898
|
+
readonly type: "null";
|
|
899
|
+
}];
|
|
900
|
+
};
|
|
901
|
+
readonly cacheReadPerMillion: {
|
|
902
|
+
readonly anyOf: readonly [{
|
|
903
|
+
readonly type: "string";
|
|
904
|
+
}, {
|
|
905
|
+
readonly type: "null";
|
|
906
|
+
}];
|
|
907
|
+
};
|
|
908
|
+
readonly cacheWritePerMillion: {
|
|
909
|
+
readonly anyOf: readonly [{
|
|
910
|
+
readonly type: "string";
|
|
911
|
+
}, {
|
|
912
|
+
readonly type: "null";
|
|
913
|
+
}];
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
readonly required: readonly ["inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion", "tiered", "steps"];
|
|
917
|
+
readonly additionalProperties: false;
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
readonly required: readonly ["providerID", "id", "name", "enabled", "status", "variants", "capabilities", "limit", "cost"];
|
|
921
|
+
readonly additionalProperties: false;
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
readonly checks: {
|
|
925
|
+
readonly type: "object";
|
|
926
|
+
readonly properties: {
|
|
927
|
+
readonly active: {
|
|
928
|
+
readonly type: "boolean";
|
|
929
|
+
};
|
|
930
|
+
readonly note: {
|
|
931
|
+
readonly anyOf: readonly [{
|
|
932
|
+
readonly type: "string";
|
|
933
|
+
}, {
|
|
934
|
+
readonly type: "null";
|
|
935
|
+
}];
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
readonly required: readonly ["active", "note"];
|
|
939
|
+
readonly additionalProperties: false;
|
|
940
|
+
};
|
|
941
|
+
};
|
|
942
|
+
readonly required: readonly ["directory", "settings", "decisions", "deciders", "checks"];
|
|
943
|
+
readonly additionalProperties: false;
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
/** The pill: one chat's switch, that chat's newest record, and whether a decider is chosen at all. */
|
|
947
|
+
readonly getRelayChat: {
|
|
948
|
+
readonly errors: {
|
|
949
|
+
readonly rejected: {
|
|
950
|
+
readonly type: "object";
|
|
951
|
+
readonly properties: {};
|
|
952
|
+
readonly additionalProperties: false;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
readonly input: {
|
|
956
|
+
readonly type: "object";
|
|
957
|
+
readonly properties: {
|
|
958
|
+
readonly sessionID: {
|
|
959
|
+
readonly type: "string";
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
readonly required: readonly ["sessionID"];
|
|
963
|
+
readonly additionalProperties: false;
|
|
964
|
+
};
|
|
965
|
+
readonly output: {
|
|
966
|
+
readonly type: "object";
|
|
967
|
+
readonly properties: {
|
|
968
|
+
readonly on: {
|
|
969
|
+
readonly type: "boolean";
|
|
970
|
+
};
|
|
971
|
+
readonly last: {
|
|
972
|
+
readonly anyOf: readonly [{
|
|
973
|
+
readonly type: "object";
|
|
974
|
+
readonly properties: {
|
|
975
|
+
readonly at: {
|
|
976
|
+
readonly type: "string";
|
|
977
|
+
};
|
|
978
|
+
readonly sessionID: {
|
|
979
|
+
readonly type: "string";
|
|
980
|
+
};
|
|
981
|
+
readonly kind: {
|
|
982
|
+
readonly type: "string";
|
|
983
|
+
readonly enum: readonly ["chat", "helper"];
|
|
984
|
+
};
|
|
985
|
+
readonly mode: {
|
|
986
|
+
readonly anyOf: readonly [{
|
|
987
|
+
readonly type: "string";
|
|
988
|
+
readonly enum: readonly ["plan", "execute", "review"];
|
|
989
|
+
}, {
|
|
990
|
+
readonly type: "null";
|
|
991
|
+
}];
|
|
992
|
+
};
|
|
993
|
+
readonly confidence: {
|
|
994
|
+
readonly anyOf: readonly [{
|
|
995
|
+
readonly type: "number";
|
|
996
|
+
}, {
|
|
997
|
+
readonly type: "null";
|
|
998
|
+
}];
|
|
999
|
+
};
|
|
1000
|
+
readonly fit: {
|
|
1001
|
+
readonly anyOf: readonly [{
|
|
1002
|
+
readonly type: "number";
|
|
1003
|
+
}, {
|
|
1004
|
+
readonly type: "null";
|
|
1005
|
+
}];
|
|
1006
|
+
};
|
|
1007
|
+
readonly model: {
|
|
1008
|
+
readonly anyOf: readonly [{
|
|
1009
|
+
readonly type: "string";
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly type: "null";
|
|
1012
|
+
}];
|
|
1013
|
+
};
|
|
1014
|
+
readonly ms: {
|
|
1015
|
+
readonly type: "number";
|
|
1016
|
+
};
|
|
1017
|
+
readonly costUsd: {
|
|
1018
|
+
readonly anyOf: readonly [{
|
|
1019
|
+
readonly type: "string";
|
|
1020
|
+
}, {
|
|
1021
|
+
readonly type: "null";
|
|
1022
|
+
}];
|
|
1023
|
+
};
|
|
1024
|
+
readonly note: {
|
|
1025
|
+
readonly anyOf: readonly [{
|
|
1026
|
+
readonly type: "string";
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly type: "null";
|
|
1029
|
+
}];
|
|
1030
|
+
};
|
|
1031
|
+
readonly messageID: {
|
|
1032
|
+
readonly anyOf: readonly [{
|
|
1033
|
+
readonly type: "string";
|
|
1034
|
+
}, {
|
|
1035
|
+
readonly type: "null";
|
|
1036
|
+
}];
|
|
1037
|
+
};
|
|
1038
|
+
readonly reply: {
|
|
1039
|
+
readonly anyOf: readonly [{
|
|
1040
|
+
readonly type: "object";
|
|
1041
|
+
readonly properties: {
|
|
1042
|
+
readonly requests: {
|
|
1043
|
+
readonly type: "number";
|
|
1044
|
+
};
|
|
1045
|
+
readonly fresh: {
|
|
1046
|
+
readonly type: "number";
|
|
1047
|
+
};
|
|
1048
|
+
readonly cached: {
|
|
1049
|
+
readonly type: "number";
|
|
1050
|
+
};
|
|
1051
|
+
readonly costUsd: {
|
|
1052
|
+
readonly anyOf: readonly [{
|
|
1053
|
+
readonly type: "string";
|
|
1054
|
+
}, {
|
|
1055
|
+
readonly type: "null";
|
|
1056
|
+
}];
|
|
1057
|
+
};
|
|
1058
|
+
readonly seconds: {
|
|
1059
|
+
readonly anyOf: readonly [{
|
|
1060
|
+
readonly type: "number";
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly type: "null";
|
|
1063
|
+
}];
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds"];
|
|
1067
|
+
readonly additionalProperties: false;
|
|
1068
|
+
}, {
|
|
1069
|
+
readonly type: "null";
|
|
1070
|
+
}];
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
readonly required: readonly ["at", "sessionID", "kind", "mode", "confidence", "fit", "model", "ms", "costUsd", "note", "messageID", "reply"];
|
|
1074
|
+
readonly additionalProperties: false;
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly type: "null";
|
|
1077
|
+
}];
|
|
1078
|
+
};
|
|
1079
|
+
readonly decider: {
|
|
1080
|
+
readonly type: "boolean";
|
|
1081
|
+
};
|
|
1082
|
+
};
|
|
1083
|
+
readonly required: readonly ["on", "last", "decider"];
|
|
1084
|
+
readonly additionalProperties: false;
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
/** The panel's Recent choices, newest first. Storage only, so the panel can ask every few seconds. */
|
|
1088
|
+
readonly getRelayDecisions: {
|
|
1089
|
+
readonly errors: {
|
|
1090
|
+
readonly rejected: {
|
|
1091
|
+
readonly type: "object";
|
|
1092
|
+
readonly properties: {};
|
|
1093
|
+
readonly additionalProperties: false;
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
readonly input: {
|
|
1097
|
+
readonly type: "object";
|
|
1098
|
+
readonly properties: {};
|
|
1099
|
+
readonly additionalProperties: false;
|
|
1100
|
+
};
|
|
1101
|
+
readonly output: {
|
|
1102
|
+
readonly type: "object";
|
|
1103
|
+
readonly properties: {
|
|
1104
|
+
readonly directory: {
|
|
1105
|
+
readonly type: "string";
|
|
1106
|
+
};
|
|
1107
|
+
readonly decisions: {
|
|
1108
|
+
readonly type: "array";
|
|
1109
|
+
readonly items: {
|
|
1110
|
+
readonly type: "object";
|
|
1111
|
+
readonly properties: {
|
|
1112
|
+
readonly at: {
|
|
1113
|
+
readonly type: "string";
|
|
1114
|
+
};
|
|
1115
|
+
readonly sessionID: {
|
|
1116
|
+
readonly type: "string";
|
|
1117
|
+
};
|
|
1118
|
+
readonly kind: {
|
|
1119
|
+
readonly type: "string";
|
|
1120
|
+
readonly enum: readonly ["chat", "helper"];
|
|
1121
|
+
};
|
|
1122
|
+
readonly mode: {
|
|
1123
|
+
readonly anyOf: readonly [{
|
|
1124
|
+
readonly type: "string";
|
|
1125
|
+
readonly enum: readonly ["plan", "execute", "review"];
|
|
1126
|
+
}, {
|
|
1127
|
+
readonly type: "null";
|
|
1128
|
+
}];
|
|
1129
|
+
};
|
|
1130
|
+
readonly confidence: {
|
|
1131
|
+
readonly anyOf: readonly [{
|
|
1132
|
+
readonly type: "number";
|
|
1133
|
+
}, {
|
|
1134
|
+
readonly type: "null";
|
|
1135
|
+
}];
|
|
1136
|
+
};
|
|
1137
|
+
readonly fit: {
|
|
1138
|
+
readonly anyOf: readonly [{
|
|
1139
|
+
readonly type: "number";
|
|
1140
|
+
}, {
|
|
1141
|
+
readonly type: "null";
|
|
1142
|
+
}];
|
|
1143
|
+
};
|
|
1144
|
+
readonly model: {
|
|
1145
|
+
readonly anyOf: readonly [{
|
|
1146
|
+
readonly type: "string";
|
|
1147
|
+
}, {
|
|
1148
|
+
readonly type: "null";
|
|
1149
|
+
}];
|
|
1150
|
+
};
|
|
1151
|
+
readonly ms: {
|
|
1152
|
+
readonly type: "number";
|
|
1153
|
+
};
|
|
1154
|
+
readonly costUsd: {
|
|
1155
|
+
readonly anyOf: readonly [{
|
|
1156
|
+
readonly type: "string";
|
|
1157
|
+
}, {
|
|
1158
|
+
readonly type: "null";
|
|
1159
|
+
}];
|
|
1160
|
+
};
|
|
1161
|
+
readonly note: {
|
|
1162
|
+
readonly anyOf: readonly [{
|
|
1163
|
+
readonly type: "string";
|
|
1164
|
+
}, {
|
|
1165
|
+
readonly type: "null";
|
|
1166
|
+
}];
|
|
1167
|
+
};
|
|
1168
|
+
readonly messageID: {
|
|
1169
|
+
readonly anyOf: readonly [{
|
|
1170
|
+
readonly type: "string";
|
|
1171
|
+
}, {
|
|
1172
|
+
readonly type: "null";
|
|
1173
|
+
}];
|
|
1174
|
+
};
|
|
1175
|
+
readonly reply: {
|
|
1176
|
+
readonly anyOf: readonly [{
|
|
1177
|
+
readonly type: "object";
|
|
1178
|
+
readonly properties: {
|
|
1179
|
+
readonly requests: {
|
|
1180
|
+
readonly type: "number";
|
|
1181
|
+
};
|
|
1182
|
+
readonly fresh: {
|
|
1183
|
+
readonly type: "number";
|
|
1184
|
+
};
|
|
1185
|
+
readonly cached: {
|
|
1186
|
+
readonly type: "number";
|
|
1187
|
+
};
|
|
1188
|
+
readonly costUsd: {
|
|
1189
|
+
readonly anyOf: readonly [{
|
|
1190
|
+
readonly type: "string";
|
|
1191
|
+
}, {
|
|
1192
|
+
readonly type: "null";
|
|
1193
|
+
}];
|
|
1194
|
+
};
|
|
1195
|
+
readonly seconds: {
|
|
1196
|
+
readonly anyOf: readonly [{
|
|
1197
|
+
readonly type: "number";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly type: "null";
|
|
1200
|
+
}];
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds"];
|
|
1204
|
+
readonly additionalProperties: false;
|
|
1205
|
+
}, {
|
|
1206
|
+
readonly type: "null";
|
|
1207
|
+
}];
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
readonly required: readonly ["at", "sessionID", "kind", "mode", "confidence", "fit", "model", "ms", "costUsd", "note", "messageID", "reply"];
|
|
1211
|
+
readonly additionalProperties: false;
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1215
|
+
readonly required: readonly ["directory", "decisions"];
|
|
1216
|
+
readonly additionalProperties: false;
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
readonly setRelayChat: {
|
|
1220
|
+
readonly errors: {
|
|
1221
|
+
readonly rejected: {
|
|
1222
|
+
readonly type: "object";
|
|
1223
|
+
readonly properties: {};
|
|
1224
|
+
readonly additionalProperties: false;
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1227
|
+
readonly input: {
|
|
1228
|
+
readonly type: "object";
|
|
1229
|
+
readonly properties: {
|
|
1230
|
+
readonly sessionID: {
|
|
1231
|
+
readonly type: "string";
|
|
1232
|
+
};
|
|
1233
|
+
readonly on: {
|
|
1234
|
+
readonly type: "boolean";
|
|
1235
|
+
};
|
|
1236
|
+
};
|
|
1237
|
+
readonly required: readonly ["sessionID", "on"];
|
|
1238
|
+
readonly additionalProperties: false;
|
|
1239
|
+
};
|
|
1240
|
+
readonly output: {
|
|
1241
|
+
readonly type: "object";
|
|
1242
|
+
readonly properties: {
|
|
1243
|
+
readonly on: {
|
|
1244
|
+
readonly type: "boolean";
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
readonly required: readonly ["on"];
|
|
1248
|
+
readonly additionalProperties: false;
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1251
|
+
/** What Relay would do with a sample message: the mode after the 0.6 rule, the model it would pick, and the note. Nothing is switched, sent or recorded. */
|
|
1252
|
+
readonly testDecider: {
|
|
1253
|
+
readonly errors: {
|
|
1254
|
+
readonly rejected: {
|
|
1255
|
+
readonly type: "object";
|
|
1256
|
+
readonly properties: {};
|
|
1257
|
+
readonly additionalProperties: false;
|
|
1258
|
+
};
|
|
1259
|
+
};
|
|
1260
|
+
readonly input: {
|
|
1261
|
+
readonly type: "object";
|
|
1262
|
+
readonly properties: {
|
|
1263
|
+
readonly text: {
|
|
1264
|
+
readonly type: "string";
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
readonly required: readonly ["text"];
|
|
1268
|
+
readonly additionalProperties: false;
|
|
1269
|
+
};
|
|
1270
|
+
readonly output: {
|
|
1271
|
+
readonly type: "object";
|
|
1272
|
+
readonly properties: {
|
|
1273
|
+
readonly directory: {
|
|
1274
|
+
readonly type: "string";
|
|
1275
|
+
};
|
|
1276
|
+
readonly mode: {
|
|
1277
|
+
readonly anyOf: readonly [{
|
|
1278
|
+
readonly type: "string";
|
|
1279
|
+
readonly enum: readonly ["plan", "execute", "review"];
|
|
1280
|
+
}, {
|
|
1281
|
+
readonly type: "null";
|
|
1282
|
+
}];
|
|
1283
|
+
};
|
|
1284
|
+
readonly confidence: {
|
|
1285
|
+
readonly anyOf: readonly [{
|
|
1286
|
+
readonly type: "number";
|
|
1287
|
+
}, {
|
|
1288
|
+
readonly type: "null";
|
|
1289
|
+
}];
|
|
1290
|
+
};
|
|
1291
|
+
readonly model: {
|
|
1292
|
+
readonly anyOf: readonly [{
|
|
1293
|
+
readonly type: "string";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly type: "null";
|
|
1296
|
+
}];
|
|
1297
|
+
};
|
|
1298
|
+
readonly fit: {
|
|
1299
|
+
readonly anyOf: readonly [{
|
|
1300
|
+
readonly type: "number";
|
|
1301
|
+
}, {
|
|
1302
|
+
readonly type: "null";
|
|
1303
|
+
}];
|
|
1304
|
+
};
|
|
1305
|
+
readonly ms: {
|
|
1306
|
+
readonly type: "number";
|
|
1307
|
+
};
|
|
1308
|
+
readonly costUsd: {
|
|
1309
|
+
readonly anyOf: readonly [{
|
|
1310
|
+
readonly type: "string";
|
|
1311
|
+
}, {
|
|
1312
|
+
readonly type: "null";
|
|
1313
|
+
}];
|
|
1314
|
+
};
|
|
1315
|
+
readonly note: {
|
|
1316
|
+
readonly anyOf: readonly [{
|
|
1317
|
+
readonly type: "string";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly type: "null";
|
|
1320
|
+
}];
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
readonly required: readonly ["directory", "mode", "confidence", "model", "fit", "ms", "costUsd", "note"];
|
|
1324
|
+
readonly additionalProperties: false;
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
readonly listModels: {
|
|
1328
|
+
readonly errors: {
|
|
1329
|
+
readonly rejected: {
|
|
1330
|
+
readonly type: "object";
|
|
1331
|
+
readonly properties: {};
|
|
1332
|
+
readonly additionalProperties: false;
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
readonly input: {
|
|
1336
|
+
readonly type: "object";
|
|
1337
|
+
readonly properties: {};
|
|
1338
|
+
readonly additionalProperties: false;
|
|
1339
|
+
};
|
|
1340
|
+
readonly output: {
|
|
1341
|
+
readonly type: "object";
|
|
1342
|
+
readonly properties: {
|
|
1343
|
+
readonly directory: {
|
|
1344
|
+
readonly type: "string";
|
|
1345
|
+
};
|
|
1346
|
+
readonly models: {
|
|
1347
|
+
readonly type: "array";
|
|
1348
|
+
readonly items: {
|
|
1349
|
+
readonly type: "object";
|
|
1350
|
+
readonly properties: {
|
|
1351
|
+
readonly providerID: {
|
|
1352
|
+
readonly type: "string";
|
|
1353
|
+
};
|
|
1354
|
+
readonly id: {
|
|
1355
|
+
readonly type: "string";
|
|
1356
|
+
};
|
|
1357
|
+
readonly name: {
|
|
1358
|
+
readonly type: "string";
|
|
1359
|
+
};
|
|
1360
|
+
readonly enabled: {
|
|
1361
|
+
readonly type: "boolean";
|
|
1362
|
+
};
|
|
1363
|
+
readonly status: {
|
|
1364
|
+
readonly type: "string";
|
|
1365
|
+
};
|
|
1366
|
+
readonly variants: {
|
|
1367
|
+
readonly type: "array";
|
|
1368
|
+
readonly items: {
|
|
1369
|
+
readonly type: "string";
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
readonly capabilities: {
|
|
1373
|
+
readonly type: "object";
|
|
1374
|
+
readonly properties: {
|
|
1375
|
+
readonly input: {
|
|
1376
|
+
readonly type: "array";
|
|
1377
|
+
readonly items: {
|
|
1378
|
+
readonly type: "string";
|
|
1379
|
+
};
|
|
1380
|
+
};
|
|
1381
|
+
readonly output: {
|
|
1382
|
+
readonly type: "array";
|
|
1383
|
+
readonly items: {
|
|
1384
|
+
readonly type: "string";
|
|
1385
|
+
};
|
|
1386
|
+
};
|
|
1387
|
+
readonly tools: {
|
|
1388
|
+
readonly type: "boolean";
|
|
1389
|
+
};
|
|
1390
|
+
};
|
|
1391
|
+
readonly required: readonly ["input", "output", "tools"];
|
|
1392
|
+
readonly additionalProperties: false;
|
|
1393
|
+
};
|
|
1394
|
+
readonly limit: {
|
|
1395
|
+
readonly type: "object";
|
|
1396
|
+
readonly properties: {
|
|
1397
|
+
readonly context: {
|
|
1398
|
+
readonly type: "number";
|
|
1399
|
+
};
|
|
1400
|
+
readonly output: {
|
|
1401
|
+
readonly type: "number";
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1404
|
+
readonly required: readonly ["context", "output"];
|
|
1405
|
+
readonly additionalProperties: false;
|
|
1406
|
+
};
|
|
1407
|
+
readonly cost: {
|
|
1408
|
+
readonly type: "object";
|
|
1409
|
+
readonly properties: {
|
|
1410
|
+
readonly tiered: {
|
|
1411
|
+
readonly type: "boolean";
|
|
1412
|
+
};
|
|
1413
|
+
readonly steps: {
|
|
1414
|
+
readonly type: "array";
|
|
1415
|
+
readonly items: {
|
|
1416
|
+
readonly type: "object";
|
|
1417
|
+
readonly properties: {
|
|
1418
|
+
readonly inputPerMillion: {
|
|
1419
|
+
readonly anyOf: readonly [{
|
|
1420
|
+
readonly type: "string";
|
|
1421
|
+
}, {
|
|
1422
|
+
readonly type: "null";
|
|
1423
|
+
}];
|
|
1424
|
+
};
|
|
1425
|
+
readonly outputPerMillion: {
|
|
1426
|
+
readonly anyOf: readonly [{
|
|
1427
|
+
readonly type: "string";
|
|
1428
|
+
}, {
|
|
1429
|
+
readonly type: "null";
|
|
1430
|
+
}];
|
|
1431
|
+
};
|
|
1432
|
+
readonly cacheReadPerMillion: {
|
|
1433
|
+
readonly anyOf: readonly [{
|
|
1434
|
+
readonly type: "string";
|
|
1435
|
+
}, {
|
|
1436
|
+
readonly type: "null";
|
|
1437
|
+
}];
|
|
1438
|
+
};
|
|
1439
|
+
readonly cacheWritePerMillion: {
|
|
1440
|
+
readonly anyOf: readonly [{
|
|
1441
|
+
readonly type: "string";
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly type: "null";
|
|
1444
|
+
}];
|
|
1445
|
+
};
|
|
1446
|
+
readonly above: {
|
|
1447
|
+
readonly type: "number";
|
|
1448
|
+
};
|
|
1449
|
+
};
|
|
1450
|
+
readonly required: readonly ["above", "inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion"];
|
|
1451
|
+
readonly additionalProperties: false;
|
|
1452
|
+
};
|
|
1453
|
+
};
|
|
1454
|
+
readonly inputPerMillion: {
|
|
1455
|
+
readonly anyOf: readonly [{
|
|
1456
|
+
readonly type: "string";
|
|
1457
|
+
}, {
|
|
1458
|
+
readonly type: "null";
|
|
1459
|
+
}];
|
|
1460
|
+
};
|
|
1461
|
+
readonly outputPerMillion: {
|
|
1462
|
+
readonly anyOf: readonly [{
|
|
1463
|
+
readonly type: "string";
|
|
1464
|
+
}, {
|
|
1465
|
+
readonly type: "null";
|
|
1466
|
+
}];
|
|
1467
|
+
};
|
|
1468
|
+
readonly cacheReadPerMillion: {
|
|
1469
|
+
readonly anyOf: readonly [{
|
|
1470
|
+
readonly type: "string";
|
|
1471
|
+
}, {
|
|
1472
|
+
readonly type: "null";
|
|
1473
|
+
}];
|
|
1474
|
+
};
|
|
1475
|
+
readonly cacheWritePerMillion: {
|
|
1476
|
+
readonly anyOf: readonly [{
|
|
1477
|
+
readonly type: "string";
|
|
1478
|
+
}, {
|
|
1479
|
+
readonly type: "null";
|
|
1480
|
+
}];
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1483
|
+
readonly required: readonly ["inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion", "tiered", "steps"];
|
|
1484
|
+
readonly additionalProperties: false;
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
readonly required: readonly ["providerID", "id", "name", "enabled", "status", "variants", "capabilities", "limit", "cost"];
|
|
1488
|
+
readonly additionalProperties: false;
|
|
1489
|
+
};
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
readonly required: readonly ["directory", "models"];
|
|
1493
|
+
readonly additionalProperties: false;
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
/** The intelligence index of each listed model that could be matched, with where it came from, when it was fetched, and why it may be old or missing. */
|
|
1497
|
+
readonly listIntelligence: {
|
|
1498
|
+
readonly errors: {
|
|
1499
|
+
readonly rejected: {
|
|
1500
|
+
readonly type: "object";
|
|
1501
|
+
readonly properties: {};
|
|
1502
|
+
readonly additionalProperties: false;
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
readonly input: {
|
|
1506
|
+
readonly type: "object";
|
|
1507
|
+
readonly properties: {};
|
|
1508
|
+
readonly additionalProperties: false;
|
|
1509
|
+
};
|
|
1510
|
+
readonly output: {
|
|
1511
|
+
readonly type: "object";
|
|
1512
|
+
readonly properties: {
|
|
1513
|
+
readonly directory: {
|
|
1514
|
+
readonly type: "string";
|
|
1515
|
+
};
|
|
1516
|
+
readonly source: {
|
|
1517
|
+
readonly type: "string";
|
|
1518
|
+
};
|
|
1519
|
+
readonly fetchedAt: {
|
|
1520
|
+
readonly anyOf: readonly [{
|
|
1521
|
+
readonly type: "string";
|
|
1522
|
+
}, {
|
|
1523
|
+
readonly type: "null";
|
|
1524
|
+
}];
|
|
1525
|
+
};
|
|
1526
|
+
readonly note: {
|
|
1527
|
+
readonly anyOf: readonly [{
|
|
1528
|
+
readonly type: "string";
|
|
1529
|
+
}, {
|
|
1530
|
+
readonly type: "null";
|
|
1531
|
+
}];
|
|
1532
|
+
};
|
|
1533
|
+
readonly scores: {
|
|
1534
|
+
readonly type: "array";
|
|
1535
|
+
readonly items: {
|
|
1536
|
+
readonly type: "object";
|
|
1537
|
+
readonly properties: {
|
|
1538
|
+
readonly providerID: {
|
|
1539
|
+
readonly type: "string";
|
|
1540
|
+
};
|
|
1541
|
+
readonly id: {
|
|
1542
|
+
readonly type: "string";
|
|
1543
|
+
};
|
|
1544
|
+
readonly index: {
|
|
1545
|
+
readonly type: "number";
|
|
1546
|
+
};
|
|
1547
|
+
readonly matched: {
|
|
1548
|
+
readonly type: "string";
|
|
1549
|
+
};
|
|
1550
|
+
};
|
|
1551
|
+
readonly required: readonly ["providerID", "id", "index", "matched"];
|
|
1552
|
+
readonly additionalProperties: false;
|
|
1553
|
+
};
|
|
1554
|
+
};
|
|
1555
|
+
};
|
|
1556
|
+
readonly required: readonly ["directory", "source", "fetchedAt", "note", "scores"];
|
|
1557
|
+
readonly additionalProperties: false;
|
|
1558
|
+
};
|
|
1559
|
+
};
|
|
1560
|
+
};
|
|
1561
|
+
};
|