@opencode-ai/schema 0.0.0-next-15090 → 0.0.0-next-15092
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +13 -9
- package/dist/agent.js +5 -2
- package/dist/command.d.ts +5 -5
- package/dist/command.js +3 -2
- package/dist/durable-event-manifest.d.ts +146 -96
- package/dist/event-manifest.d.ts +390 -282
- package/dist/event.d.ts +2 -1
- package/dist/event.js +12 -4
- package/dist/file-diff.d.ts +11 -1
- package/dist/file-diff.js +13 -5
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/model.d.ts +46 -30
- package/dist/model.js +10 -9
- package/dist/money.d.ts +10 -0
- package/dist/money.js +5 -0
- package/dist/session-event.d.ts +748 -486
- package/dist/session-event.js +30 -27
- package/dist/session-input.d.ts +6 -6
- package/dist/session-input.js +3 -3
- package/dist/session-message.d.ts +238 -619
- package/dist/session-message.js +57 -44
- package/dist/session-revert.d.ts +479 -0
- package/dist/session-revert.js +63 -0
- package/dist/session.d.ts +26 -22
- package/dist/session.js +9 -13
- package/dist/shell.d.ts +42 -42
- package/dist/shell.js +1 -1
- package/dist/skill.d.ts +16 -9
- package/dist/skill.js +14 -11
- package/dist/snapshot.d.ts +4 -0
- package/dist/snapshot.js +3 -0
- package/dist/token-usage.d.ts +13 -0
- package/dist/token-usage.js +11 -0
- package/dist/v1/session.d.ts +62 -62
- package/dist/v1/session.js +5 -5
- package/package.json +1 -1
- package/dist/revert.d.ts +0 -35
- package/dist/revert.js +0 -19
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * as SessionMessage from "./session-message.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { FileAttachment } from "./prompt.js";
|
|
4
3
|
import { Event } from "./event.js";
|
|
5
4
|
export declare const ID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6
5
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -12,8 +11,8 @@ export type ProviderState = typeof ProviderState.Type;
|
|
|
12
11
|
export interface AgentSelected extends Schema.Schema.Type<typeof AgentSelected> {
|
|
13
12
|
}
|
|
14
13
|
export declare const AgentSelected: Schema.Struct<{
|
|
15
|
-
readonly type: Schema.
|
|
16
|
-
readonly agent: Schema.String
|
|
14
|
+
readonly type: Schema.tag<"agent-switched">;
|
|
15
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
17
16
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
18
17
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
19
18
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -26,9 +25,9 @@ export declare const AgentSelected: Schema.Struct<{
|
|
|
26
25
|
export interface ModelSelected extends Schema.Schema.Type<typeof ModelSelected> {
|
|
27
26
|
}
|
|
28
27
|
export declare const ModelSelected: Schema.Struct<{
|
|
29
|
-
readonly type: Schema.
|
|
28
|
+
readonly type: Schema.tag<"model-switched">;
|
|
30
29
|
readonly model: Schema.Struct<{
|
|
31
|
-
readonly id: Schema.brand<Schema.String, "
|
|
30
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
32
31
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
33
32
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
34
33
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -42,10 +41,10 @@ export declare const ModelSelected: Schema.Struct<{
|
|
|
42
41
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
43
42
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
44
43
|
};
|
|
45
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
44
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
46
45
|
}>;
|
|
47
46
|
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
48
|
-
readonly id: Schema.brand<Schema.String, "
|
|
47
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
49
48
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
50
49
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
51
50
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -59,9 +58,9 @@ export declare const ModelSelected: Schema.Struct<{
|
|
|
59
58
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
60
59
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
61
60
|
};
|
|
62
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
61
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
63
62
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
64
|
-
readonly id: Schema.brand<Schema.String, "
|
|
63
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
65
64
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
66
65
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
67
66
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -75,7 +74,7 @@ export declare const ModelSelected: Schema.Struct<{
|
|
|
75
74
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
76
75
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
77
76
|
};
|
|
78
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
77
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
79
78
|
}>>, never, never>;
|
|
80
79
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
81
80
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -111,7 +110,7 @@ export declare const User: Schema.Struct<{
|
|
|
111
110
|
readonly text: Schema.String;
|
|
112
111
|
}>>, never, never>;
|
|
113
112
|
}> & {
|
|
114
|
-
create: (input: FileAttachment) => {
|
|
113
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
115
114
|
readonly data: string;
|
|
116
115
|
readonly mime: string;
|
|
117
116
|
readonly source: {
|
|
@@ -149,7 +148,7 @@ export declare const User: Schema.Struct<{
|
|
|
149
148
|
readonly text: Schema.String;
|
|
150
149
|
}>>, never, never>;
|
|
151
150
|
}> & {
|
|
152
|
-
create: (input: FileAttachment) => {
|
|
151
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
153
152
|
readonly data: string;
|
|
154
153
|
readonly mime: string;
|
|
155
154
|
readonly source: {
|
|
@@ -190,7 +189,7 @@ export declare const User: Schema.Struct<{
|
|
|
190
189
|
readonly text: Schema.String;
|
|
191
190
|
}>>, never, never>;
|
|
192
191
|
}>>>, never, never>;
|
|
193
|
-
readonly type: Schema.
|
|
192
|
+
readonly type: Schema.tag<"user">;
|
|
194
193
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
195
194
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
196
195
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -203,13 +202,9 @@ export declare const User: Schema.Struct<{
|
|
|
203
202
|
export interface Synthetic extends Schema.Schema.Type<typeof Synthetic> {
|
|
204
203
|
}
|
|
205
204
|
export declare const Synthetic: Schema.Struct<{
|
|
206
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
207
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
208
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
209
|
-
};
|
|
210
205
|
readonly text: Schema.String;
|
|
211
206
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
212
|
-
readonly type: Schema.
|
|
207
|
+
readonly type: Schema.tag<"synthetic">;
|
|
213
208
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
214
209
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
215
210
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -222,7 +217,7 @@ export declare const Synthetic: Schema.Struct<{
|
|
|
222
217
|
export interface System extends Schema.Schema.Type<typeof System> {
|
|
223
218
|
}
|
|
224
219
|
export declare const System: Schema.Struct<{
|
|
225
|
-
readonly type: Schema.
|
|
220
|
+
readonly type: Schema.tag<"system">;
|
|
226
221
|
readonly text: Schema.String;
|
|
227
222
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
228
223
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -236,8 +231,9 @@ export declare const System: Schema.Struct<{
|
|
|
236
231
|
export interface Skill extends Schema.Schema.Type<typeof Skill> {
|
|
237
232
|
}
|
|
238
233
|
export declare const Skill: Schema.Struct<{
|
|
239
|
-
readonly type: Schema.
|
|
240
|
-
readonly
|
|
234
|
+
readonly type: Schema.tag<"skill">;
|
|
235
|
+
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
236
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
241
237
|
readonly text: Schema.String;
|
|
242
238
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
243
239
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -251,25 +247,14 @@ export declare const Skill: Schema.Struct<{
|
|
|
251
247
|
export interface Shell extends Schema.Schema.Type<typeof Shell> {
|
|
252
248
|
}
|
|
253
249
|
export declare const Shell: Schema.Struct<{
|
|
254
|
-
readonly type: Schema.
|
|
255
|
-
readonly
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
readonly cwd: Schema.String;
|
|
263
|
-
readonly shell: Schema.String;
|
|
264
|
-
readonly file: Schema.String;
|
|
265
|
-
readonly pid: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
266
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
267
|
-
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
268
|
-
readonly time: Schema.Struct<{
|
|
269
|
-
readonly started: Schema.Number;
|
|
270
|
-
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
271
|
-
}>;
|
|
272
|
-
}>;
|
|
250
|
+
readonly type: Schema.tag<"shell">;
|
|
251
|
+
readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
252
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
253
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
254
|
+
};
|
|
255
|
+
readonly command: Schema.String;
|
|
256
|
+
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
257
|
+
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
273
258
|
readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
274
259
|
readonly output: Schema.String;
|
|
275
260
|
readonly cursor: Schema.Int;
|
|
@@ -291,16 +276,16 @@ export declare const Shell: Schema.Struct<{
|
|
|
291
276
|
};
|
|
292
277
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
293
278
|
}>;
|
|
294
|
-
export interface
|
|
279
|
+
export interface ToolStateStreaming extends Schema.Schema.Type<typeof ToolStateStreaming> {
|
|
295
280
|
}
|
|
296
|
-
export declare const
|
|
297
|
-
readonly status: Schema.
|
|
281
|
+
export declare const ToolStateStreaming: Schema.Struct<{
|
|
282
|
+
readonly status: Schema.tag<"streaming">;
|
|
298
283
|
readonly input: Schema.String;
|
|
299
284
|
}>;
|
|
300
285
|
export interface ToolStateRunning extends Schema.Schema.Type<typeof ToolStateRunning> {
|
|
301
286
|
}
|
|
302
287
|
export declare const ToolStateRunning: Schema.Struct<{
|
|
303
|
-
readonly status: Schema.
|
|
288
|
+
readonly status: Schema.tag<"running">;
|
|
304
289
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
305
290
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
306
291
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -316,85 +301,8 @@ export declare const ToolStateRunning: Schema.Struct<{
|
|
|
316
301
|
export interface ToolStateCompleted extends Schema.Schema.Type<typeof ToolStateCompleted> {
|
|
317
302
|
}
|
|
318
303
|
export declare const ToolStateCompleted: Schema.Struct<{
|
|
319
|
-
readonly status: Schema.
|
|
304
|
+
readonly status: Schema.tag<"completed">;
|
|
320
305
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
321
|
-
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
322
|
-
readonly data: Schema.String;
|
|
323
|
-
readonly mime: Schema.String;
|
|
324
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
325
|
-
readonly type: Schema.Literal<"inline">;
|
|
326
|
-
}>, Schema.Struct<{
|
|
327
|
-
readonly type: Schema.Literal<"uri">;
|
|
328
|
-
readonly uri: Schema.String;
|
|
329
|
-
}>]>;
|
|
330
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
331
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
332
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
333
|
-
readonly start: Schema.Finite;
|
|
334
|
-
readonly end: Schema.Finite;
|
|
335
|
-
readonly text: Schema.String;
|
|
336
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
337
|
-
readonly start: Schema.Finite;
|
|
338
|
-
readonly end: Schema.Finite;
|
|
339
|
-
readonly text: Schema.String;
|
|
340
|
-
}>>, never, never>;
|
|
341
|
-
}> & {
|
|
342
|
-
create: (input: FileAttachment) => {
|
|
343
|
-
readonly data: string;
|
|
344
|
-
readonly mime: string;
|
|
345
|
-
readonly source: {
|
|
346
|
-
readonly type: "inline";
|
|
347
|
-
} | {
|
|
348
|
-
readonly type: "uri";
|
|
349
|
-
readonly uri: string;
|
|
350
|
-
};
|
|
351
|
-
readonly name?: string | undefined;
|
|
352
|
-
readonly description?: string | undefined;
|
|
353
|
-
readonly mention?: {
|
|
354
|
-
readonly start: number;
|
|
355
|
-
readonly end: number;
|
|
356
|
-
readonly text: string;
|
|
357
|
-
} | undefined;
|
|
358
|
-
};
|
|
359
|
-
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
360
|
-
readonly data: Schema.String;
|
|
361
|
-
readonly mime: Schema.String;
|
|
362
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
363
|
-
readonly type: Schema.Literal<"inline">;
|
|
364
|
-
}>, Schema.Struct<{
|
|
365
|
-
readonly type: Schema.Literal<"uri">;
|
|
366
|
-
readonly uri: Schema.String;
|
|
367
|
-
}>]>;
|
|
368
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
369
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
370
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
371
|
-
readonly start: Schema.Finite;
|
|
372
|
-
readonly end: Schema.Finite;
|
|
373
|
-
readonly text: Schema.String;
|
|
374
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
375
|
-
readonly start: Schema.Finite;
|
|
376
|
-
readonly end: Schema.Finite;
|
|
377
|
-
readonly text: Schema.String;
|
|
378
|
-
}>>, never, never>;
|
|
379
|
-
}> & {
|
|
380
|
-
create: (input: FileAttachment) => {
|
|
381
|
-
readonly data: string;
|
|
382
|
-
readonly mime: string;
|
|
383
|
-
readonly source: {
|
|
384
|
-
readonly type: "inline";
|
|
385
|
-
} | {
|
|
386
|
-
readonly type: "uri";
|
|
387
|
-
readonly uri: string;
|
|
388
|
-
};
|
|
389
|
-
readonly name?: string | undefined;
|
|
390
|
-
readonly description?: string | undefined;
|
|
391
|
-
readonly mention?: {
|
|
392
|
-
readonly start: number;
|
|
393
|
-
readonly end: number;
|
|
394
|
-
readonly text: string;
|
|
395
|
-
} | undefined;
|
|
396
|
-
};
|
|
397
|
-
}>>, never, never>;
|
|
398
306
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
399
307
|
readonly type: Schema.Literal<"text">;
|
|
400
308
|
readonly text: Schema.String;
|
|
@@ -404,14 +312,13 @@ export declare const ToolStateCompleted: Schema.Struct<{
|
|
|
404
312
|
readonly mime: Schema.String;
|
|
405
313
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
406
314
|
}>]>>;
|
|
407
|
-
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
408
315
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
409
316
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
410
317
|
}>;
|
|
411
318
|
export interface ToolStateError extends Schema.Schema.Type<typeof ToolStateError> {
|
|
412
319
|
}
|
|
413
320
|
export declare const ToolStateError: Schema.Struct<{
|
|
414
|
-
readonly status: Schema.
|
|
321
|
+
readonly status: Schema.tag<"error">;
|
|
415
322
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
416
323
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
417
324
|
readonly type: Schema.Literal<"text">;
|
|
@@ -430,10 +337,10 @@ export declare const ToolStateError: Schema.Struct<{
|
|
|
430
337
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
431
338
|
}>;
|
|
432
339
|
export declare const ToolState: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
433
|
-
readonly status: Schema.
|
|
340
|
+
readonly status: Schema.tag<"streaming">;
|
|
434
341
|
readonly input: Schema.String;
|
|
435
342
|
}>, Schema.Struct<{
|
|
436
|
-
readonly status: Schema.
|
|
343
|
+
readonly status: Schema.tag<"running">;
|
|
437
344
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
438
345
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
439
346
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -446,85 +353,8 @@ export declare const ToolState: Schema.toTaggedUnion<"status", readonly [Schema.
|
|
|
446
353
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
447
354
|
}>]>>;
|
|
448
355
|
}>, Schema.Struct<{
|
|
449
|
-
readonly status: Schema.
|
|
356
|
+
readonly status: Schema.tag<"completed">;
|
|
450
357
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
451
|
-
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
452
|
-
readonly data: Schema.String;
|
|
453
|
-
readonly mime: Schema.String;
|
|
454
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
455
|
-
readonly type: Schema.Literal<"inline">;
|
|
456
|
-
}>, Schema.Struct<{
|
|
457
|
-
readonly type: Schema.Literal<"uri">;
|
|
458
|
-
readonly uri: Schema.String;
|
|
459
|
-
}>]>;
|
|
460
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
461
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
462
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
463
|
-
readonly start: Schema.Finite;
|
|
464
|
-
readonly end: Schema.Finite;
|
|
465
|
-
readonly text: Schema.String;
|
|
466
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
467
|
-
readonly start: Schema.Finite;
|
|
468
|
-
readonly end: Schema.Finite;
|
|
469
|
-
readonly text: Schema.String;
|
|
470
|
-
}>>, never, never>;
|
|
471
|
-
}> & {
|
|
472
|
-
create: (input: FileAttachment) => {
|
|
473
|
-
readonly data: string;
|
|
474
|
-
readonly mime: string;
|
|
475
|
-
readonly source: {
|
|
476
|
-
readonly type: "inline";
|
|
477
|
-
} | {
|
|
478
|
-
readonly type: "uri";
|
|
479
|
-
readonly uri: string;
|
|
480
|
-
};
|
|
481
|
-
readonly name?: string | undefined;
|
|
482
|
-
readonly description?: string | undefined;
|
|
483
|
-
readonly mention?: {
|
|
484
|
-
readonly start: number;
|
|
485
|
-
readonly end: number;
|
|
486
|
-
readonly text: string;
|
|
487
|
-
} | undefined;
|
|
488
|
-
};
|
|
489
|
-
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
490
|
-
readonly data: Schema.String;
|
|
491
|
-
readonly mime: Schema.String;
|
|
492
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
493
|
-
readonly type: Schema.Literal<"inline">;
|
|
494
|
-
}>, Schema.Struct<{
|
|
495
|
-
readonly type: Schema.Literal<"uri">;
|
|
496
|
-
readonly uri: Schema.String;
|
|
497
|
-
}>]>;
|
|
498
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
499
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
500
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
501
|
-
readonly start: Schema.Finite;
|
|
502
|
-
readonly end: Schema.Finite;
|
|
503
|
-
readonly text: Schema.String;
|
|
504
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
505
|
-
readonly start: Schema.Finite;
|
|
506
|
-
readonly end: Schema.Finite;
|
|
507
|
-
readonly text: Schema.String;
|
|
508
|
-
}>>, never, never>;
|
|
509
|
-
}> & {
|
|
510
|
-
create: (input: FileAttachment) => {
|
|
511
|
-
readonly data: string;
|
|
512
|
-
readonly mime: string;
|
|
513
|
-
readonly source: {
|
|
514
|
-
readonly type: "inline";
|
|
515
|
-
} | {
|
|
516
|
-
readonly type: "uri";
|
|
517
|
-
readonly uri: string;
|
|
518
|
-
};
|
|
519
|
-
readonly name?: string | undefined;
|
|
520
|
-
readonly description?: string | undefined;
|
|
521
|
-
readonly mention?: {
|
|
522
|
-
readonly start: number;
|
|
523
|
-
readonly end: number;
|
|
524
|
-
readonly text: string;
|
|
525
|
-
} | undefined;
|
|
526
|
-
};
|
|
527
|
-
}>>, never, never>;
|
|
528
358
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
529
359
|
readonly type: Schema.Literal<"text">;
|
|
530
360
|
readonly text: Schema.String;
|
|
@@ -534,11 +364,10 @@ export declare const ToolState: Schema.toTaggedUnion<"status", readonly [Schema.
|
|
|
534
364
|
readonly mime: Schema.String;
|
|
535
365
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
536
366
|
}>]>>;
|
|
537
|
-
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
538
367
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
539
368
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
540
369
|
}>, Schema.Struct<{
|
|
541
|
-
readonly status: Schema.
|
|
370
|
+
readonly status: Schema.tag<"error">;
|
|
542
371
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
543
372
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
544
373
|
readonly type: Schema.Literal<"text">;
|
|
@@ -556,21 +385,21 @@ export declare const ToolState: Schema.toTaggedUnion<"status", readonly [Schema.
|
|
|
556
385
|
}>;
|
|
557
386
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
558
387
|
}>]>;
|
|
559
|
-
export type ToolState =
|
|
388
|
+
export type ToolState = ToolStateStreaming | ToolStateRunning | ToolStateCompleted | ToolStateError;
|
|
560
389
|
export interface AssistantTool extends Schema.Schema.Type<typeof AssistantTool> {
|
|
561
390
|
}
|
|
562
391
|
export declare const AssistantTool: Schema.Struct<{
|
|
563
|
-
readonly type: Schema.
|
|
392
|
+
readonly type: Schema.tag<"tool">;
|
|
564
393
|
readonly id: Schema.String;
|
|
565
394
|
readonly name: Schema.String;
|
|
566
395
|
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
567
396
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
568
397
|
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
569
398
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
570
|
-
readonly status: Schema.
|
|
399
|
+
readonly status: Schema.tag<"streaming">;
|
|
571
400
|
readonly input: Schema.String;
|
|
572
401
|
}>, Schema.Struct<{
|
|
573
|
-
readonly status: Schema.
|
|
402
|
+
readonly status: Schema.tag<"running">;
|
|
574
403
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
575
404
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
576
405
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -583,85 +412,8 @@ export declare const AssistantTool: Schema.Struct<{
|
|
|
583
412
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
584
413
|
}>]>>;
|
|
585
414
|
}>, Schema.Struct<{
|
|
586
|
-
readonly status: Schema.
|
|
415
|
+
readonly status: Schema.tag<"completed">;
|
|
587
416
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
588
|
-
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
589
|
-
readonly data: Schema.String;
|
|
590
|
-
readonly mime: Schema.String;
|
|
591
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
592
|
-
readonly type: Schema.Literal<"inline">;
|
|
593
|
-
}>, Schema.Struct<{
|
|
594
|
-
readonly type: Schema.Literal<"uri">;
|
|
595
|
-
readonly uri: Schema.String;
|
|
596
|
-
}>]>;
|
|
597
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
598
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
599
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
600
|
-
readonly start: Schema.Finite;
|
|
601
|
-
readonly end: Schema.Finite;
|
|
602
|
-
readonly text: Schema.String;
|
|
603
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
604
|
-
readonly start: Schema.Finite;
|
|
605
|
-
readonly end: Schema.Finite;
|
|
606
|
-
readonly text: Schema.String;
|
|
607
|
-
}>>, never, never>;
|
|
608
|
-
}> & {
|
|
609
|
-
create: (input: FileAttachment) => {
|
|
610
|
-
readonly data: string;
|
|
611
|
-
readonly mime: string;
|
|
612
|
-
readonly source: {
|
|
613
|
-
readonly type: "inline";
|
|
614
|
-
} | {
|
|
615
|
-
readonly type: "uri";
|
|
616
|
-
readonly uri: string;
|
|
617
|
-
};
|
|
618
|
-
readonly name?: string | undefined;
|
|
619
|
-
readonly description?: string | undefined;
|
|
620
|
-
readonly mention?: {
|
|
621
|
-
readonly start: number;
|
|
622
|
-
readonly end: number;
|
|
623
|
-
readonly text: string;
|
|
624
|
-
} | undefined;
|
|
625
|
-
};
|
|
626
|
-
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
627
|
-
readonly data: Schema.String;
|
|
628
|
-
readonly mime: Schema.String;
|
|
629
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
630
|
-
readonly type: Schema.Literal<"inline">;
|
|
631
|
-
}>, Schema.Struct<{
|
|
632
|
-
readonly type: Schema.Literal<"uri">;
|
|
633
|
-
readonly uri: Schema.String;
|
|
634
|
-
}>]>;
|
|
635
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
636
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
637
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
638
|
-
readonly start: Schema.Finite;
|
|
639
|
-
readonly end: Schema.Finite;
|
|
640
|
-
readonly text: Schema.String;
|
|
641
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
642
|
-
readonly start: Schema.Finite;
|
|
643
|
-
readonly end: Schema.Finite;
|
|
644
|
-
readonly text: Schema.String;
|
|
645
|
-
}>>, never, never>;
|
|
646
|
-
}> & {
|
|
647
|
-
create: (input: FileAttachment) => {
|
|
648
|
-
readonly data: string;
|
|
649
|
-
readonly mime: string;
|
|
650
|
-
readonly source: {
|
|
651
|
-
readonly type: "inline";
|
|
652
|
-
} | {
|
|
653
|
-
readonly type: "uri";
|
|
654
|
-
readonly uri: string;
|
|
655
|
-
};
|
|
656
|
-
readonly name?: string | undefined;
|
|
657
|
-
readonly description?: string | undefined;
|
|
658
|
-
readonly mention?: {
|
|
659
|
-
readonly start: number;
|
|
660
|
-
readonly end: number;
|
|
661
|
-
readonly text: string;
|
|
662
|
-
} | undefined;
|
|
663
|
-
};
|
|
664
|
-
}>>, never, never>;
|
|
665
417
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
666
418
|
readonly type: Schema.Literal<"text">;
|
|
667
419
|
readonly text: Schema.String;
|
|
@@ -671,11 +423,10 @@ export declare const AssistantTool: Schema.Struct<{
|
|
|
671
423
|
readonly mime: Schema.String;
|
|
672
424
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
673
425
|
}>]>>;
|
|
674
|
-
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
675
426
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
676
427
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
677
428
|
}>, Schema.Struct<{
|
|
678
|
-
readonly status: Schema.
|
|
429
|
+
readonly status: Schema.tag<"error">;
|
|
679
430
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
680
431
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
681
432
|
readonly type: Schema.Literal<"text">;
|
|
@@ -697,19 +448,18 @@ export declare const AssistantTool: Schema.Struct<{
|
|
|
697
448
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
698
449
|
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
699
450
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
700
|
-
readonly pruned: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
701
451
|
}>;
|
|
702
452
|
}>;
|
|
703
453
|
export interface AssistantText extends Schema.Schema.Type<typeof AssistantText> {
|
|
704
454
|
}
|
|
705
455
|
export declare const AssistantText: Schema.Struct<{
|
|
706
|
-
readonly type: Schema.
|
|
456
|
+
readonly type: Schema.tag<"text">;
|
|
707
457
|
readonly text: Schema.String;
|
|
708
458
|
}>;
|
|
709
459
|
export interface AssistantReasoning extends Schema.Schema.Type<typeof AssistantReasoning> {
|
|
710
460
|
}
|
|
711
461
|
export declare const AssistantReasoning: Schema.Struct<{
|
|
712
|
-
readonly type: Schema.
|
|
462
|
+
readonly type: Schema.tag<"reasoning">;
|
|
713
463
|
readonly text: Schema.String;
|
|
714
464
|
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
715
465
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -721,10 +471,10 @@ export declare const AssistantReasoning: Schema.Struct<{
|
|
|
721
471
|
}>>, never, never>;
|
|
722
472
|
}>;
|
|
723
473
|
export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
724
|
-
readonly type: Schema.
|
|
474
|
+
readonly type: Schema.tag<"text">;
|
|
725
475
|
readonly text: Schema.String;
|
|
726
476
|
}>, Schema.Struct<{
|
|
727
|
-
readonly type: Schema.
|
|
477
|
+
readonly type: Schema.tag<"reasoning">;
|
|
728
478
|
readonly text: Schema.String;
|
|
729
479
|
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
730
480
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -735,17 +485,17 @@ export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Sc
|
|
|
735
485
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
736
486
|
}>>, never, never>;
|
|
737
487
|
}>, Schema.Struct<{
|
|
738
|
-
readonly type: Schema.
|
|
488
|
+
readonly type: Schema.tag<"tool">;
|
|
739
489
|
readonly id: Schema.String;
|
|
740
490
|
readonly name: Schema.String;
|
|
741
491
|
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
742
492
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
743
493
|
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
744
494
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
745
|
-
readonly status: Schema.
|
|
495
|
+
readonly status: Schema.tag<"streaming">;
|
|
746
496
|
readonly input: Schema.String;
|
|
747
497
|
}>, Schema.Struct<{
|
|
748
|
-
readonly status: Schema.
|
|
498
|
+
readonly status: Schema.tag<"running">;
|
|
749
499
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
750
500
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
751
501
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -758,85 +508,8 @@ export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Sc
|
|
|
758
508
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
759
509
|
}>]>>;
|
|
760
510
|
}>, Schema.Struct<{
|
|
761
|
-
readonly status: Schema.
|
|
511
|
+
readonly status: Schema.tag<"completed">;
|
|
762
512
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
763
|
-
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
764
|
-
readonly data: Schema.String;
|
|
765
|
-
readonly mime: Schema.String;
|
|
766
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
767
|
-
readonly type: Schema.Literal<"inline">;
|
|
768
|
-
}>, Schema.Struct<{
|
|
769
|
-
readonly type: Schema.Literal<"uri">;
|
|
770
|
-
readonly uri: Schema.String;
|
|
771
|
-
}>]>;
|
|
772
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
773
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
774
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
775
|
-
readonly start: Schema.Finite;
|
|
776
|
-
readonly end: Schema.Finite;
|
|
777
|
-
readonly text: Schema.String;
|
|
778
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
779
|
-
readonly start: Schema.Finite;
|
|
780
|
-
readonly end: Schema.Finite;
|
|
781
|
-
readonly text: Schema.String;
|
|
782
|
-
}>>, never, never>;
|
|
783
|
-
}> & {
|
|
784
|
-
create: (input: FileAttachment) => {
|
|
785
|
-
readonly data: string;
|
|
786
|
-
readonly mime: string;
|
|
787
|
-
readonly source: {
|
|
788
|
-
readonly type: "inline";
|
|
789
|
-
} | {
|
|
790
|
-
readonly type: "uri";
|
|
791
|
-
readonly uri: string;
|
|
792
|
-
};
|
|
793
|
-
readonly name?: string | undefined;
|
|
794
|
-
readonly description?: string | undefined;
|
|
795
|
-
readonly mention?: {
|
|
796
|
-
readonly start: number;
|
|
797
|
-
readonly end: number;
|
|
798
|
-
readonly text: string;
|
|
799
|
-
} | undefined;
|
|
800
|
-
};
|
|
801
|
-
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
802
|
-
readonly data: Schema.String;
|
|
803
|
-
readonly mime: Schema.String;
|
|
804
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
805
|
-
readonly type: Schema.Literal<"inline">;
|
|
806
|
-
}>, Schema.Struct<{
|
|
807
|
-
readonly type: Schema.Literal<"uri">;
|
|
808
|
-
readonly uri: Schema.String;
|
|
809
|
-
}>]>;
|
|
810
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
811
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
812
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
813
|
-
readonly start: Schema.Finite;
|
|
814
|
-
readonly end: Schema.Finite;
|
|
815
|
-
readonly text: Schema.String;
|
|
816
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
817
|
-
readonly start: Schema.Finite;
|
|
818
|
-
readonly end: Schema.Finite;
|
|
819
|
-
readonly text: Schema.String;
|
|
820
|
-
}>>, never, never>;
|
|
821
|
-
}> & {
|
|
822
|
-
create: (input: FileAttachment) => {
|
|
823
|
-
readonly data: string;
|
|
824
|
-
readonly mime: string;
|
|
825
|
-
readonly source: {
|
|
826
|
-
readonly type: "inline";
|
|
827
|
-
} | {
|
|
828
|
-
readonly type: "uri";
|
|
829
|
-
readonly uri: string;
|
|
830
|
-
};
|
|
831
|
-
readonly name?: string | undefined;
|
|
832
|
-
readonly description?: string | undefined;
|
|
833
|
-
readonly mention?: {
|
|
834
|
-
readonly start: number;
|
|
835
|
-
readonly end: number;
|
|
836
|
-
readonly text: string;
|
|
837
|
-
} | undefined;
|
|
838
|
-
};
|
|
839
|
-
}>>, never, never>;
|
|
840
513
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
841
514
|
readonly type: Schema.Literal<"text">;
|
|
842
515
|
readonly text: Schema.String;
|
|
@@ -846,11 +519,10 @@ export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Sc
|
|
|
846
519
|
readonly mime: Schema.String;
|
|
847
520
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
848
521
|
}>]>>;
|
|
849
|
-
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
850
522
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
851
523
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
852
524
|
}>, Schema.Struct<{
|
|
853
|
-
readonly status: Schema.
|
|
525
|
+
readonly status: Schema.tag<"error">;
|
|
854
526
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
855
527
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
856
528
|
readonly type: Schema.Literal<"text">;
|
|
@@ -872,7 +544,6 @@ export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Sc
|
|
|
872
544
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
873
545
|
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
874
546
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
875
|
-
readonly pruned: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
876
547
|
}>;
|
|
877
548
|
}>]>;
|
|
878
549
|
export type AssistantContent = AssistantText | AssistantReasoning | AssistantTool;
|
|
@@ -889,10 +560,10 @@ export declare const AssistantRetry: Schema.Struct<{
|
|
|
889
560
|
export interface Assistant extends Schema.Schema.Type<typeof Assistant> {
|
|
890
561
|
}
|
|
891
562
|
export declare const Assistant: Schema.Struct<{
|
|
892
|
-
readonly type: Schema.
|
|
893
|
-
readonly agent: Schema.String
|
|
563
|
+
readonly type: Schema.tag<"assistant">;
|
|
564
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
894
565
|
readonly model: Schema.Struct<{
|
|
895
|
-
readonly id: Schema.brand<Schema.String, "
|
|
566
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
896
567
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
897
568
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
898
569
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -906,13 +577,13 @@ export declare const Assistant: Schema.Struct<{
|
|
|
906
577
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
907
578
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
908
579
|
};
|
|
909
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
580
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
910
581
|
}>;
|
|
911
582
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
912
|
-
readonly type: Schema.
|
|
583
|
+
readonly type: Schema.tag<"text">;
|
|
913
584
|
readonly text: Schema.String;
|
|
914
585
|
}>, Schema.Struct<{
|
|
915
|
-
readonly type: Schema.
|
|
586
|
+
readonly type: Schema.tag<"reasoning">;
|
|
916
587
|
readonly text: Schema.String;
|
|
917
588
|
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
918
589
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -923,17 +594,17 @@ export declare const Assistant: Schema.Struct<{
|
|
|
923
594
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
924
595
|
}>>, never, never>;
|
|
925
596
|
}>, Schema.Struct<{
|
|
926
|
-
readonly type: Schema.
|
|
597
|
+
readonly type: Schema.tag<"tool">;
|
|
927
598
|
readonly id: Schema.String;
|
|
928
599
|
readonly name: Schema.String;
|
|
929
600
|
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
930
601
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
931
602
|
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
932
603
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
933
|
-
readonly status: Schema.
|
|
604
|
+
readonly status: Schema.tag<"streaming">;
|
|
934
605
|
readonly input: Schema.String;
|
|
935
606
|
}>, Schema.Struct<{
|
|
936
|
-
readonly status: Schema.
|
|
607
|
+
readonly status: Schema.tag<"running">;
|
|
937
608
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
938
609
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
939
610
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -946,85 +617,8 @@ export declare const Assistant: Schema.Struct<{
|
|
|
946
617
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
947
618
|
}>]>>;
|
|
948
619
|
}>, Schema.Struct<{
|
|
949
|
-
readonly status: Schema.
|
|
620
|
+
readonly status: Schema.tag<"completed">;
|
|
950
621
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
951
|
-
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
952
|
-
readonly data: Schema.String;
|
|
953
|
-
readonly mime: Schema.String;
|
|
954
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
955
|
-
readonly type: Schema.Literal<"inline">;
|
|
956
|
-
}>, Schema.Struct<{
|
|
957
|
-
readonly type: Schema.Literal<"uri">;
|
|
958
|
-
readonly uri: Schema.String;
|
|
959
|
-
}>]>;
|
|
960
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
961
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
962
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
963
|
-
readonly start: Schema.Finite;
|
|
964
|
-
readonly end: Schema.Finite;
|
|
965
|
-
readonly text: Schema.String;
|
|
966
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
967
|
-
readonly start: Schema.Finite;
|
|
968
|
-
readonly end: Schema.Finite;
|
|
969
|
-
readonly text: Schema.String;
|
|
970
|
-
}>>, never, never>;
|
|
971
|
-
}> & {
|
|
972
|
-
create: (input: FileAttachment) => {
|
|
973
|
-
readonly data: string;
|
|
974
|
-
readonly mime: string;
|
|
975
|
-
readonly source: {
|
|
976
|
-
readonly type: "inline";
|
|
977
|
-
} | {
|
|
978
|
-
readonly type: "uri";
|
|
979
|
-
readonly uri: string;
|
|
980
|
-
};
|
|
981
|
-
readonly name?: string | undefined;
|
|
982
|
-
readonly description?: string | undefined;
|
|
983
|
-
readonly mention?: {
|
|
984
|
-
readonly start: number;
|
|
985
|
-
readonly end: number;
|
|
986
|
-
readonly text: string;
|
|
987
|
-
} | undefined;
|
|
988
|
-
};
|
|
989
|
-
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
990
|
-
readonly data: Schema.String;
|
|
991
|
-
readonly mime: Schema.String;
|
|
992
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
993
|
-
readonly type: Schema.Literal<"inline">;
|
|
994
|
-
}>, Schema.Struct<{
|
|
995
|
-
readonly type: Schema.Literal<"uri">;
|
|
996
|
-
readonly uri: Schema.String;
|
|
997
|
-
}>]>;
|
|
998
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
999
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1000
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1001
|
-
readonly start: Schema.Finite;
|
|
1002
|
-
readonly end: Schema.Finite;
|
|
1003
|
-
readonly text: Schema.String;
|
|
1004
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1005
|
-
readonly start: Schema.Finite;
|
|
1006
|
-
readonly end: Schema.Finite;
|
|
1007
|
-
readonly text: Schema.String;
|
|
1008
|
-
}>>, never, never>;
|
|
1009
|
-
}> & {
|
|
1010
|
-
create: (input: FileAttachment) => {
|
|
1011
|
-
readonly data: string;
|
|
1012
|
-
readonly mime: string;
|
|
1013
|
-
readonly source: {
|
|
1014
|
-
readonly type: "inline";
|
|
1015
|
-
} | {
|
|
1016
|
-
readonly type: "uri";
|
|
1017
|
-
readonly uri: string;
|
|
1018
|
-
};
|
|
1019
|
-
readonly name?: string | undefined;
|
|
1020
|
-
readonly description?: string | undefined;
|
|
1021
|
-
readonly mention?: {
|
|
1022
|
-
readonly start: number;
|
|
1023
|
-
readonly end: number;
|
|
1024
|
-
readonly text: string;
|
|
1025
|
-
} | undefined;
|
|
1026
|
-
};
|
|
1027
|
-
}>>, never, never>;
|
|
1028
622
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1029
623
|
readonly type: Schema.Literal<"text">;
|
|
1030
624
|
readonly text: Schema.String;
|
|
@@ -1034,11 +628,10 @@ export declare const Assistant: Schema.Struct<{
|
|
|
1034
628
|
readonly mime: Schema.String;
|
|
1035
629
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1036
630
|
}>]>>;
|
|
1037
|
-
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1038
631
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1039
632
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
1040
633
|
}>, Schema.Struct<{
|
|
1041
|
-
readonly status: Schema.
|
|
634
|
+
readonly status: Schema.tag<"error">;
|
|
1042
635
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1043
636
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1044
637
|
readonly type: Schema.Literal<"text">;
|
|
@@ -1060,20 +653,23 @@ export declare const Assistant: Schema.Struct<{
|
|
|
1060
653
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1061
654
|
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1062
655
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1063
|
-
readonly pruned: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1064
656
|
}>;
|
|
1065
657
|
}>]>>;
|
|
1066
658
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1067
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
1068
|
-
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
659
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
660
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1069
661
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
1070
662
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1071
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
1072
|
-
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
663
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
664
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1073
665
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
1074
666
|
}>>, never, never>;
|
|
1075
667
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
1076
|
-
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
668
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
669
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
670
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
671
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
672
|
+
}>, never, never>;
|
|
1077
673
|
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1078
674
|
readonly input: Schema.Finite;
|
|
1079
675
|
readonly output: Schema.Finite;
|
|
@@ -1123,9 +719,13 @@ export declare const Assistant: Schema.Struct<{
|
|
|
1123
719
|
};
|
|
1124
720
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1125
721
|
}>;
|
|
1126
|
-
export interface
|
|
722
|
+
export interface CompactionRunning extends Schema.Schema.Type<typeof CompactionRunning> {
|
|
1127
723
|
}
|
|
1128
|
-
export declare const
|
|
724
|
+
export declare const CompactionRunning: Schema.Struct<{
|
|
725
|
+
readonly status: Schema.tag<"running">;
|
|
726
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
727
|
+
readonly summary: Schema.String;
|
|
728
|
+
readonly recent: Schema.String;
|
|
1129
729
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1130
730
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1131
731
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1134,15 +734,63 @@ export declare const Compaction: Schema.Struct<{
|
|
|
1134
734
|
readonly time: Schema.Struct<{
|
|
1135
735
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1136
736
|
}>;
|
|
1137
|
-
readonly type: Schema.
|
|
1138
|
-
|
|
737
|
+
readonly type: Schema.tag<"compaction">;
|
|
738
|
+
}>;
|
|
739
|
+
export interface CompactionCompleted extends Schema.Schema.Type<typeof CompactionCompleted> {
|
|
740
|
+
}
|
|
741
|
+
export declare const CompactionCompleted: Schema.Struct<{
|
|
742
|
+
readonly status: Schema.tag<"completed">;
|
|
1139
743
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1140
744
|
readonly summary: Schema.String;
|
|
1141
745
|
readonly recent: Schema.String;
|
|
746
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
747
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
748
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
749
|
+
};
|
|
750
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
751
|
+
readonly time: Schema.Struct<{
|
|
752
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
753
|
+
}>;
|
|
754
|
+
readonly type: Schema.tag<"compaction">;
|
|
1142
755
|
}>;
|
|
1143
|
-
export
|
|
1144
|
-
|
|
1145
|
-
|
|
756
|
+
export interface CompactionFailed extends Schema.Schema.Type<typeof CompactionFailed> {
|
|
757
|
+
}
|
|
758
|
+
export declare const CompactionFailed: Schema.Struct<{
|
|
759
|
+
readonly status: Schema.tag<"failed">;
|
|
760
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
761
|
+
readonly error: Schema.Struct<{
|
|
762
|
+
readonly type: Schema.String;
|
|
763
|
+
readonly message: Schema.String;
|
|
764
|
+
}>;
|
|
765
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
766
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
767
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
768
|
+
};
|
|
769
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
770
|
+
readonly time: Schema.Struct<{
|
|
771
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
772
|
+
}>;
|
|
773
|
+
readonly type: Schema.tag<"compaction">;
|
|
774
|
+
}>;
|
|
775
|
+
export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
|
|
776
|
+
readonly status: Schema.tag<"running">;
|
|
777
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
778
|
+
readonly summary: Schema.String;
|
|
779
|
+
readonly recent: Schema.String;
|
|
780
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
781
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
782
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
783
|
+
};
|
|
784
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
785
|
+
readonly time: Schema.Struct<{
|
|
786
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
787
|
+
}>;
|
|
788
|
+
readonly type: Schema.tag<"compaction">;
|
|
789
|
+
}>, Schema.Struct<{
|
|
790
|
+
readonly status: Schema.tag<"completed">;
|
|
791
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
792
|
+
readonly summary: Schema.String;
|
|
793
|
+
readonly recent: Schema.String;
|
|
1146
794
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1147
795
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1148
796
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1151,10 +799,40 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1151
799
|
readonly time: Schema.Struct<{
|
|
1152
800
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1153
801
|
}>;
|
|
802
|
+
readonly type: Schema.tag<"compaction">;
|
|
1154
803
|
}>, Schema.Struct<{
|
|
1155
|
-
readonly
|
|
804
|
+
readonly status: Schema.tag<"failed">;
|
|
805
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
806
|
+
readonly error: Schema.Struct<{
|
|
807
|
+
readonly type: Schema.String;
|
|
808
|
+
readonly message: Schema.String;
|
|
809
|
+
}>;
|
|
810
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
811
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
812
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
813
|
+
};
|
|
814
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
815
|
+
readonly time: Schema.Struct<{
|
|
816
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
817
|
+
}>;
|
|
818
|
+
readonly type: Schema.tag<"compaction">;
|
|
819
|
+
}>]>;
|
|
820
|
+
export type Compaction = CompactionRunning | CompactionCompleted | CompactionFailed;
|
|
821
|
+
export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
822
|
+
readonly type: Schema.tag<"agent-switched">;
|
|
823
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
824
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
825
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
826
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
827
|
+
};
|
|
828
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
829
|
+
readonly time: Schema.Struct<{
|
|
830
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
831
|
+
}>;
|
|
832
|
+
}>, Schema.Struct<{
|
|
833
|
+
readonly type: Schema.tag<"model-switched">;
|
|
1156
834
|
readonly model: Schema.Struct<{
|
|
1157
|
-
readonly id: Schema.brand<Schema.String, "
|
|
835
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1158
836
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1159
837
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1160
838
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1168,10 +846,10 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1168
846
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1169
847
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1170
848
|
};
|
|
1171
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
849
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1172
850
|
}>;
|
|
1173
851
|
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1174
|
-
readonly id: Schema.brand<Schema.String, "
|
|
852
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1175
853
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1176
854
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1177
855
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1185,9 +863,9 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1185
863
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1186
864
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1187
865
|
};
|
|
1188
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
866
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1189
867
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1190
|
-
readonly id: Schema.brand<Schema.String, "
|
|
868
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1191
869
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1192
870
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1193
871
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1201,7 +879,7 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1201
879
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1202
880
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1203
881
|
};
|
|
1204
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
882
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1205
883
|
}>>, never, never>;
|
|
1206
884
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1207
885
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1234,7 +912,7 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1234
912
|
readonly text: Schema.String;
|
|
1235
913
|
}>>, never, never>;
|
|
1236
914
|
}> & {
|
|
1237
|
-
create: (input: FileAttachment) => {
|
|
915
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
1238
916
|
readonly data: string;
|
|
1239
917
|
readonly mime: string;
|
|
1240
918
|
readonly source: {
|
|
@@ -1272,7 +950,7 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1272
950
|
readonly text: Schema.String;
|
|
1273
951
|
}>>, never, never>;
|
|
1274
952
|
}> & {
|
|
1275
|
-
create: (input: FileAttachment) => {
|
|
953
|
+
create: (input: import("./prompt.js").FileAttachment) => {
|
|
1276
954
|
readonly data: string;
|
|
1277
955
|
readonly mime: string;
|
|
1278
956
|
readonly source: {
|
|
@@ -1313,7 +991,7 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1313
991
|
readonly text: Schema.String;
|
|
1314
992
|
}>>, never, never>;
|
|
1315
993
|
}>>>, never, never>;
|
|
1316
|
-
readonly type: Schema.
|
|
994
|
+
readonly type: Schema.tag<"user">;
|
|
1317
995
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1318
996
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1319
997
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1323,13 +1001,9 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1323
1001
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1324
1002
|
}>;
|
|
1325
1003
|
}>, Schema.Struct<{
|
|
1326
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1327
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1328
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1329
|
-
};
|
|
1330
1004
|
readonly text: Schema.String;
|
|
1331
1005
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1332
|
-
readonly type: Schema.
|
|
1006
|
+
readonly type: Schema.tag<"synthetic">;
|
|
1333
1007
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1334
1008
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1335
1009
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1339,7 +1013,7 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1339
1013
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1340
1014
|
}>;
|
|
1341
1015
|
}>, Schema.Struct<{
|
|
1342
|
-
readonly type: Schema.
|
|
1016
|
+
readonly type: Schema.tag<"system">;
|
|
1343
1017
|
readonly text: Schema.String;
|
|
1344
1018
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1345
1019
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1350,8 +1024,9 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1350
1024
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1351
1025
|
}>;
|
|
1352
1026
|
}>, Schema.Struct<{
|
|
1353
|
-
readonly type: Schema.
|
|
1354
|
-
readonly
|
|
1027
|
+
readonly type: Schema.tag<"skill">;
|
|
1028
|
+
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
1029
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1355
1030
|
readonly text: Schema.String;
|
|
1356
1031
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1357
1032
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1362,25 +1037,14 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1362
1037
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1363
1038
|
}>;
|
|
1364
1039
|
}>, Schema.Struct<{
|
|
1365
|
-
readonly type: Schema.
|
|
1366
|
-
readonly
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
readonly cwd: Schema.String;
|
|
1374
|
-
readonly shell: Schema.String;
|
|
1375
|
-
readonly file: Schema.String;
|
|
1376
|
-
readonly pid: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1377
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
1378
|
-
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1379
|
-
readonly time: Schema.Struct<{
|
|
1380
|
-
readonly started: Schema.Number;
|
|
1381
|
-
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
1382
|
-
}>;
|
|
1383
|
-
}>;
|
|
1040
|
+
readonly type: Schema.tag<"shell">;
|
|
1041
|
+
readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
1042
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
1043
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
1044
|
+
};
|
|
1045
|
+
readonly command: Schema.String;
|
|
1046
|
+
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
1047
|
+
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
1384
1048
|
readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1385
1049
|
readonly output: Schema.String;
|
|
1386
1050
|
readonly cursor: Schema.Int;
|
|
@@ -1402,10 +1066,10 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1402
1066
|
};
|
|
1403
1067
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1404
1068
|
}>, Schema.Struct<{
|
|
1405
|
-
readonly type: Schema.
|
|
1406
|
-
readonly agent: Schema.String
|
|
1069
|
+
readonly type: Schema.tag<"assistant">;
|
|
1070
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
1407
1071
|
readonly model: Schema.Struct<{
|
|
1408
|
-
readonly id: Schema.brand<Schema.String, "
|
|
1072
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1409
1073
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1410
1074
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1411
1075
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1419,13 +1083,13 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1419
1083
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1420
1084
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1421
1085
|
};
|
|
1422
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
1086
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1423
1087
|
}>;
|
|
1424
1088
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1425
|
-
readonly type: Schema.
|
|
1089
|
+
readonly type: Schema.tag<"text">;
|
|
1426
1090
|
readonly text: Schema.String;
|
|
1427
1091
|
}>, Schema.Struct<{
|
|
1428
|
-
readonly type: Schema.
|
|
1092
|
+
readonly type: Schema.tag<"reasoning">;
|
|
1429
1093
|
readonly text: Schema.String;
|
|
1430
1094
|
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1431
1095
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1436,17 +1100,17 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1436
1100
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1437
1101
|
}>>, never, never>;
|
|
1438
1102
|
}>, Schema.Struct<{
|
|
1439
|
-
readonly type: Schema.
|
|
1103
|
+
readonly type: Schema.tag<"tool">;
|
|
1440
1104
|
readonly id: Schema.String;
|
|
1441
1105
|
readonly name: Schema.String;
|
|
1442
1106
|
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1443
1107
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1444
1108
|
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1445
1109
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
1446
|
-
readonly status: Schema.
|
|
1110
|
+
readonly status: Schema.tag<"streaming">;
|
|
1447
1111
|
readonly input: Schema.String;
|
|
1448
1112
|
}>, Schema.Struct<{
|
|
1449
|
-
readonly status: Schema.
|
|
1113
|
+
readonly status: Schema.tag<"running">;
|
|
1450
1114
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1451
1115
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1452
1116
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1459,85 +1123,8 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1459
1123
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1460
1124
|
}>]>>;
|
|
1461
1125
|
}>, Schema.Struct<{
|
|
1462
|
-
readonly status: Schema.
|
|
1126
|
+
readonly status: Schema.tag<"completed">;
|
|
1463
1127
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1464
|
-
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1465
|
-
readonly data: Schema.String;
|
|
1466
|
-
readonly mime: Schema.String;
|
|
1467
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1468
|
-
readonly type: Schema.Literal<"inline">;
|
|
1469
|
-
}>, Schema.Struct<{
|
|
1470
|
-
readonly type: Schema.Literal<"uri">;
|
|
1471
|
-
readonly uri: Schema.String;
|
|
1472
|
-
}>]>;
|
|
1473
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1474
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1475
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1476
|
-
readonly start: Schema.Finite;
|
|
1477
|
-
readonly end: Schema.Finite;
|
|
1478
|
-
readonly text: Schema.String;
|
|
1479
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1480
|
-
readonly start: Schema.Finite;
|
|
1481
|
-
readonly end: Schema.Finite;
|
|
1482
|
-
readonly text: Schema.String;
|
|
1483
|
-
}>>, never, never>;
|
|
1484
|
-
}> & {
|
|
1485
|
-
create: (input: FileAttachment) => {
|
|
1486
|
-
readonly data: string;
|
|
1487
|
-
readonly mime: string;
|
|
1488
|
-
readonly source: {
|
|
1489
|
-
readonly type: "inline";
|
|
1490
|
-
} | {
|
|
1491
|
-
readonly type: "uri";
|
|
1492
|
-
readonly uri: string;
|
|
1493
|
-
};
|
|
1494
|
-
readonly name?: string | undefined;
|
|
1495
|
-
readonly description?: string | undefined;
|
|
1496
|
-
readonly mention?: {
|
|
1497
|
-
readonly start: number;
|
|
1498
|
-
readonly end: number;
|
|
1499
|
-
readonly text: string;
|
|
1500
|
-
} | undefined;
|
|
1501
|
-
};
|
|
1502
|
-
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1503
|
-
readonly data: Schema.String;
|
|
1504
|
-
readonly mime: Schema.String;
|
|
1505
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1506
|
-
readonly type: Schema.Literal<"inline">;
|
|
1507
|
-
}>, Schema.Struct<{
|
|
1508
|
-
readonly type: Schema.Literal<"uri">;
|
|
1509
|
-
readonly uri: Schema.String;
|
|
1510
|
-
}>]>;
|
|
1511
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1512
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1513
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1514
|
-
readonly start: Schema.Finite;
|
|
1515
|
-
readonly end: Schema.Finite;
|
|
1516
|
-
readonly text: Schema.String;
|
|
1517
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1518
|
-
readonly start: Schema.Finite;
|
|
1519
|
-
readonly end: Schema.Finite;
|
|
1520
|
-
readonly text: Schema.String;
|
|
1521
|
-
}>>, never, never>;
|
|
1522
|
-
}> & {
|
|
1523
|
-
create: (input: FileAttachment) => {
|
|
1524
|
-
readonly data: string;
|
|
1525
|
-
readonly mime: string;
|
|
1526
|
-
readonly source: {
|
|
1527
|
-
readonly type: "inline";
|
|
1528
|
-
} | {
|
|
1529
|
-
readonly type: "uri";
|
|
1530
|
-
readonly uri: string;
|
|
1531
|
-
};
|
|
1532
|
-
readonly name?: string | undefined;
|
|
1533
|
-
readonly description?: string | undefined;
|
|
1534
|
-
readonly mention?: {
|
|
1535
|
-
readonly start: number;
|
|
1536
|
-
readonly end: number;
|
|
1537
|
-
readonly text: string;
|
|
1538
|
-
} | undefined;
|
|
1539
|
-
};
|
|
1540
|
-
}>>, never, never>;
|
|
1541
1128
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1542
1129
|
readonly type: Schema.Literal<"text">;
|
|
1543
1130
|
readonly text: Schema.String;
|
|
@@ -1547,11 +1134,10 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1547
1134
|
readonly mime: Schema.String;
|
|
1548
1135
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1549
1136
|
}>]>>;
|
|
1550
|
-
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1551
1137
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1552
1138
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
1553
1139
|
}>, Schema.Struct<{
|
|
1554
|
-
readonly status: Schema.
|
|
1140
|
+
readonly status: Schema.tag<"error">;
|
|
1555
1141
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1556
1142
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1557
1143
|
readonly type: Schema.Literal<"text">;
|
|
@@ -1573,20 +1159,23 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1573
1159
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1574
1160
|
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1575
1161
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1576
|
-
readonly pruned: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1577
1162
|
}>;
|
|
1578
1163
|
}>]>>;
|
|
1579
1164
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1580
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
1581
|
-
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
1165
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1166
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1582
1167
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
1583
1168
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1584
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
1585
|
-
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
1169
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1170
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1586
1171
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
1587
1172
|
}>>, never, never>;
|
|
1588
1173
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
1589
|
-
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
1174
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1175
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1176
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1177
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1178
|
+
}>, never, never>;
|
|
1590
1179
|
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1591
1180
|
readonly input: Schema.Finite;
|
|
1592
1181
|
readonly output: Schema.Finite;
|
|
@@ -1635,7 +1224,11 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1635
1224
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1636
1225
|
};
|
|
1637
1226
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1638
|
-
}>, Schema.Struct<{
|
|
1227
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1228
|
+
readonly status: Schema.tag<"running">;
|
|
1229
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1230
|
+
readonly summary: Schema.String;
|
|
1231
|
+
readonly recent: Schema.String;
|
|
1639
1232
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1640
1233
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1641
1234
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1644,11 +1237,37 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
1644
1237
|
readonly time: Schema.Struct<{
|
|
1645
1238
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1646
1239
|
}>;
|
|
1647
|
-
readonly type: Schema.
|
|
1648
|
-
|
|
1240
|
+
readonly type: Schema.tag<"compaction">;
|
|
1241
|
+
}>, Schema.Struct<{
|
|
1242
|
+
readonly status: Schema.tag<"completed">;
|
|
1649
1243
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1650
1244
|
readonly summary: Schema.String;
|
|
1651
1245
|
readonly recent: Schema.String;
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1246
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1247
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1248
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1249
|
+
};
|
|
1250
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1251
|
+
readonly time: Schema.Struct<{
|
|
1252
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1253
|
+
}>;
|
|
1254
|
+
readonly type: Schema.tag<"compaction">;
|
|
1255
|
+
}>, Schema.Struct<{
|
|
1256
|
+
readonly status: Schema.tag<"failed">;
|
|
1257
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1258
|
+
readonly error: Schema.Struct<{
|
|
1259
|
+
readonly type: Schema.String;
|
|
1260
|
+
readonly message: Schema.String;
|
|
1261
|
+
}>;
|
|
1262
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1263
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1264
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1265
|
+
};
|
|
1266
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1267
|
+
readonly time: Schema.Struct<{
|
|
1268
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1269
|
+
}>;
|
|
1270
|
+
readonly type: Schema.tag<"compaction">;
|
|
1271
|
+
}>]>]>;
|
|
1272
|
+
export type Info = AgentSelected | ModelSelected | User | Synthetic | System | Skill | Shell | Assistant | Compaction;
|
|
1273
|
+
export type Type = Info["type"];
|