@opencode/schema 2.3.2 → 2.4.1

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/job.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * as Job from "./job.js";
2
2
  import { Schema } from "effect";
3
- export declare const Kind: Schema.Literals<readonly ["shell", "subagent", "image", "codemode"]>;
3
+ export declare const Kind: Schema.Literals<readonly ["shell", "subagent", "image", "video", "codemode"]>;
4
4
  export type Kind = typeof Kind.Type;
5
5
  export declare const Status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
6
6
  export type Status = typeof Status.Type;
@@ -64,6 +64,22 @@ export declare const Image: Schema.Struct<{
64
64
  readonly path: Schema.String;
65
65
  readonly model: Schema.String;
66
66
  }>;
67
+ export interface Video extends Schema.Schema.Type<typeof Video> {
68
+ }
69
+ export declare const Video: Schema.Struct<{
70
+ readonly id: Schema.String;
71
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
72
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
73
+ };
74
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
75
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
76
+ readonly time: Schema.Struct<{
77
+ readonly started: Schema.Finite;
78
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
79
+ }>;
80
+ readonly kind: Schema.tag<"video">;
81
+ readonly path: Schema.String;
82
+ }>;
67
83
  export interface CodeMode extends Schema.Schema.Type<typeof CodeMode> {
68
84
  }
69
85
  export declare const CodeMode: Schema.Struct<{
@@ -124,6 +140,19 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
124
140
  readonly kind: Schema.tag<"image">;
125
141
  readonly path: Schema.String;
126
142
  readonly model: Schema.String;
143
+ }>, Schema.Struct<{
144
+ readonly id: Schema.String;
145
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
146
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
147
+ };
148
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
149
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
150
+ readonly time: Schema.Struct<{
151
+ readonly started: Schema.Finite;
152
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
153
+ }>;
154
+ readonly kind: Schema.tag<"video">;
155
+ readonly path: Schema.String;
127
156
  }>, Schema.Struct<{
128
157
  readonly id: Schema.String;
129
158
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -138,3 +167,359 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
138
167
  readonly kind: Schema.tag<"codemode">;
139
168
  }>]>;
140
169
  export type Info = typeof Info.Type;
170
+ export declare const Event: {
171
+ Updated: Schema.Struct<{
172
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
173
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
174
+ };
175
+ readonly created: Schema.Finite;
176
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
177
+ readonly type: Schema.Literal<"experimental.job.updated">;
178
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
179
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
180
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
181
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
182
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
183
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
184
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
185
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
186
+ }>, never, never>;
187
+ }>>>, Schema.optionalKey<Schema.Struct<{
188
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
189
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
190
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
191
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
192
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
193
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
194
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
195
+ }>, never, never>;
196
+ }>>, never, never>;
197
+ readonly data: Schema.Struct<{
198
+ readonly info: Schema.Union<readonly [Schema.Struct<{
199
+ readonly id: Schema.String;
200
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
201
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
202
+ };
203
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
204
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
205
+ readonly time: Schema.Struct<{
206
+ readonly started: Schema.Finite;
207
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
208
+ }>;
209
+ readonly kind: Schema.tag<"shell">;
210
+ readonly shellID: Schema.String;
211
+ readonly command: Schema.String;
212
+ }>, Schema.Struct<{
213
+ readonly id: Schema.String;
214
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
215
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
216
+ };
217
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
218
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
219
+ readonly time: Schema.Struct<{
220
+ readonly started: Schema.Finite;
221
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
222
+ }>;
223
+ readonly kind: Schema.tag<"subagent">;
224
+ readonly childSessionID: Schema.brand<Schema.String, "SessionID"> & {
225
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
226
+ };
227
+ readonly agent: Schema.String;
228
+ readonly description: Schema.String;
229
+ }>, Schema.Struct<{
230
+ readonly id: Schema.String;
231
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
232
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
233
+ };
234
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
235
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
236
+ readonly time: Schema.Struct<{
237
+ readonly started: Schema.Finite;
238
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
239
+ }>;
240
+ readonly kind: Schema.tag<"image">;
241
+ readonly path: Schema.String;
242
+ readonly model: Schema.String;
243
+ }>, Schema.Struct<{
244
+ readonly id: Schema.String;
245
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
246
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
247
+ };
248
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
249
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
250
+ readonly time: Schema.Struct<{
251
+ readonly started: Schema.Finite;
252
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
253
+ }>;
254
+ readonly kind: Schema.tag<"video">;
255
+ readonly path: Schema.String;
256
+ }>, Schema.Struct<{
257
+ readonly id: Schema.String;
258
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
259
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
260
+ };
261
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
262
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
263
+ readonly time: Schema.Struct<{
264
+ readonly started: Schema.Finite;
265
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
266
+ }>;
267
+ readonly kind: Schema.tag<"codemode">;
268
+ }>]>;
269
+ }>;
270
+ }> & {
271
+ type: "experimental.job.updated";
272
+ durability: "ephemeral";
273
+ durable: undefined;
274
+ data: Schema.Struct<{
275
+ readonly info: Schema.Union<readonly [Schema.Struct<{
276
+ readonly id: Schema.String;
277
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
278
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
279
+ };
280
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
281
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
282
+ readonly time: Schema.Struct<{
283
+ readonly started: Schema.Finite;
284
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
285
+ }>;
286
+ readonly kind: Schema.tag<"shell">;
287
+ readonly shellID: Schema.String;
288
+ readonly command: Schema.String;
289
+ }>, Schema.Struct<{
290
+ readonly id: Schema.String;
291
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
292
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
293
+ };
294
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
295
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
296
+ readonly time: Schema.Struct<{
297
+ readonly started: Schema.Finite;
298
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
299
+ }>;
300
+ readonly kind: Schema.tag<"subagent">;
301
+ readonly childSessionID: Schema.brand<Schema.String, "SessionID"> & {
302
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
303
+ };
304
+ readonly agent: Schema.String;
305
+ readonly description: Schema.String;
306
+ }>, Schema.Struct<{
307
+ readonly id: Schema.String;
308
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
309
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
310
+ };
311
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
312
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
313
+ readonly time: Schema.Struct<{
314
+ readonly started: Schema.Finite;
315
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
316
+ }>;
317
+ readonly kind: Schema.tag<"image">;
318
+ readonly path: Schema.String;
319
+ readonly model: Schema.String;
320
+ }>, Schema.Struct<{
321
+ readonly id: Schema.String;
322
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
323
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
324
+ };
325
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
326
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
327
+ readonly time: Schema.Struct<{
328
+ readonly started: Schema.Finite;
329
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
330
+ }>;
331
+ readonly kind: Schema.tag<"video">;
332
+ readonly path: Schema.String;
333
+ }>, Schema.Struct<{
334
+ readonly id: Schema.String;
335
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
336
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
337
+ };
338
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
339
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
340
+ readonly time: Schema.Struct<{
341
+ readonly started: Schema.Finite;
342
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
343
+ }>;
344
+ readonly kind: Schema.tag<"codemode">;
345
+ }>]>;
346
+ }>;
347
+ };
348
+ Definitions: readonly [Schema.Struct<{
349
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
350
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
351
+ };
352
+ readonly created: Schema.Finite;
353
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
354
+ readonly type: Schema.Literal<"experimental.job.updated">;
355
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
356
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
357
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
358
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
359
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
360
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
361
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
362
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
363
+ }>, never, never>;
364
+ }>>>, Schema.optionalKey<Schema.Struct<{
365
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
366
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
367
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
368
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
369
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
370
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
371
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
372
+ }>, never, never>;
373
+ }>>, never, never>;
374
+ readonly data: Schema.Struct<{
375
+ readonly info: Schema.Union<readonly [Schema.Struct<{
376
+ readonly id: Schema.String;
377
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
378
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
379
+ };
380
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
381
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
382
+ readonly time: Schema.Struct<{
383
+ readonly started: Schema.Finite;
384
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
385
+ }>;
386
+ readonly kind: Schema.tag<"shell">;
387
+ readonly shellID: Schema.String;
388
+ readonly command: Schema.String;
389
+ }>, Schema.Struct<{
390
+ readonly id: Schema.String;
391
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
392
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
393
+ };
394
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
395
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
396
+ readonly time: Schema.Struct<{
397
+ readonly started: Schema.Finite;
398
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
399
+ }>;
400
+ readonly kind: Schema.tag<"subagent">;
401
+ readonly childSessionID: Schema.brand<Schema.String, "SessionID"> & {
402
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
403
+ };
404
+ readonly agent: Schema.String;
405
+ readonly description: Schema.String;
406
+ }>, Schema.Struct<{
407
+ readonly id: Schema.String;
408
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
409
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
410
+ };
411
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
412
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
413
+ readonly time: Schema.Struct<{
414
+ readonly started: Schema.Finite;
415
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
416
+ }>;
417
+ readonly kind: Schema.tag<"image">;
418
+ readonly path: Schema.String;
419
+ readonly model: Schema.String;
420
+ }>, Schema.Struct<{
421
+ readonly id: Schema.String;
422
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
423
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
424
+ };
425
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
426
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
427
+ readonly time: Schema.Struct<{
428
+ readonly started: Schema.Finite;
429
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
430
+ }>;
431
+ readonly kind: Schema.tag<"video">;
432
+ readonly path: Schema.String;
433
+ }>, Schema.Struct<{
434
+ readonly id: Schema.String;
435
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
436
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
437
+ };
438
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
439
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
440
+ readonly time: Schema.Struct<{
441
+ readonly started: Schema.Finite;
442
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
443
+ }>;
444
+ readonly kind: Schema.tag<"codemode">;
445
+ }>]>;
446
+ }>;
447
+ }> & {
448
+ type: "experimental.job.updated";
449
+ durability: "ephemeral";
450
+ durable: undefined;
451
+ data: Schema.Struct<{
452
+ readonly info: Schema.Union<readonly [Schema.Struct<{
453
+ readonly id: Schema.String;
454
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
455
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
456
+ };
457
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
458
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
459
+ readonly time: Schema.Struct<{
460
+ readonly started: Schema.Finite;
461
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
462
+ }>;
463
+ readonly kind: Schema.tag<"shell">;
464
+ readonly shellID: Schema.String;
465
+ readonly command: Schema.String;
466
+ }>, Schema.Struct<{
467
+ readonly id: Schema.String;
468
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
469
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
470
+ };
471
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
472
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
473
+ readonly time: Schema.Struct<{
474
+ readonly started: Schema.Finite;
475
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
476
+ }>;
477
+ readonly kind: Schema.tag<"subagent">;
478
+ readonly childSessionID: Schema.brand<Schema.String, "SessionID"> & {
479
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
480
+ };
481
+ readonly agent: Schema.String;
482
+ readonly description: Schema.String;
483
+ }>, Schema.Struct<{
484
+ readonly id: Schema.String;
485
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
486
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
487
+ };
488
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
489
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
490
+ readonly time: Schema.Struct<{
491
+ readonly started: Schema.Finite;
492
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
493
+ }>;
494
+ readonly kind: Schema.tag<"image">;
495
+ readonly path: Schema.String;
496
+ readonly model: Schema.String;
497
+ }>, Schema.Struct<{
498
+ readonly id: Schema.String;
499
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
500
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
501
+ };
502
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
503
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
504
+ readonly time: Schema.Struct<{
505
+ readonly started: Schema.Finite;
506
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
507
+ }>;
508
+ readonly kind: Schema.tag<"video">;
509
+ readonly path: Schema.String;
510
+ }>, Schema.Struct<{
511
+ readonly id: Schema.String;
512
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
513
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
514
+ };
515
+ readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
516
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
517
+ readonly time: Schema.Struct<{
518
+ readonly started: Schema.Finite;
519
+ readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
520
+ }>;
521
+ readonly kind: Schema.tag<"codemode">;
522
+ }>]>;
523
+ }>;
524
+ }];
525
+ };
package/dist/job.js CHANGED
@@ -1,8 +1,11 @@
1
1
  export * as Job from "./job.js";
2
2
  import { Schema } from "effect";
3
+ import { ephemeral, inventory } from "./event.js";
3
4
  import { optional } from "./schema.js";
4
5
  import { SessionID } from "./session-id.js";
5
- export const Kind = Schema.Literals(["shell", "subagent", "image", "codemode"]).annotate({ identifier: "Job.Kind" });
6
+ export const Kind = Schema.Literals(["shell", "subagent", "image", "video", "codemode"]).annotate({
7
+ identifier: "Job.Kind",
8
+ });
6
9
  export const Status = Schema.Literals(["running", "completed", "error", "cancelled"]).annotate({
7
10
  identifier: "Job.Status",
8
11
  });
@@ -38,7 +41,15 @@ export const Image = Schema.Struct({
38
41
  path: Schema.String,
39
42
  model: Schema.String,
40
43
  }).annotate({ identifier: "Job.Image" });
44
+ export const Video = Schema.Struct({
45
+ kind: Schema.tag("video"),
46
+ ...Base,
47
+ path: Schema.String,
48
+ }).annotate({ identifier: "Job.Video" });
41
49
  export const CodeMode = Schema.Struct({ kind: Schema.tag("codemode"), ...Base }).annotate({
42
50
  identifier: "Job.CodeMode",
43
51
  });
44
- export const Info = Schema.Union([Shell, Subagent, Image, CodeMode]).pipe(Schema.toTaggedUnion("kind"), Schema.annotate({ identifier: "Job.Info" }));
52
+ export const Info = Schema.Union([Shell, Subagent, Image, Video, CodeMode]).pipe(Schema.toTaggedUnion("kind"), Schema.annotate({ identifier: "Job.Info" }));
53
+ /** A background job started, moved to the background, or ended. Experimental: may change without compatibility guarantees. */
54
+ const Updated = ephemeral({ type: "experimental.job.updated", schema: { info: Info } });
55
+ export const Event = { Updated, Definitions: inventory(Updated) };
package/dist/mcp.js CHANGED
@@ -16,7 +16,7 @@ export class TimeoutConfig extends Schema.Class("Mcp.TimeoutConfig")({
16
16
  }
17
17
  export const Protocol = Schema.Literals(["legacy", "auto", "2026-07-28"]).annotate({
18
18
  identifier: "Mcp.Protocol",
19
- description: 'MCP protocol negotiation. "legacy" (default) opens with the initialize handshake and speaks protocol revisions up to 2025-11-25. "auto" probes for the 2026-07-28 revision and falls back to legacy when the server does not support it. "2026-07-28" requires that revision and fails otherwise.',
19
+ description: 'MCP protocol negotiation. "auto" (default) probes for the 2026-07-28 revision and falls back to legacy when the server does not support it. "legacy" opens with the initialize handshake and speaks protocol revisions up to 2025-11-25. "2026-07-28" requires that revision and fails otherwise.',
20
20
  });
21
21
  export class LocalConfig extends Schema.Class("Mcp.LocalConfig")({
22
22
  type: Schema.Literal("local"),
package/dist/model.d.ts CHANGED
@@ -275,6 +275,20 @@ export declare const Variant: Schema.Struct<{
275
275
  readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
276
276
  }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
277
277
  }>;
278
+ /**
279
+ * Set on a model that is another model served faster or slower, such as "gpt-5.5-fast" for "gpt-5.5". Clients offer
280
+ * it as a speed of that model instead of listing it.
281
+ */
282
+ export interface Speed extends Schema.Schema.Type<typeof Speed> {
283
+ }
284
+ export declare const Speed: Schema.Struct<{
285
+ /** The same provider's model at its standard speed. */
286
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
287
+ /** The speed's name, such as "fast" or "flex". */
288
+ readonly id: Schema.String;
289
+ /** Whether it is faster than the standard speed. A slower speed trades latency for a lower price. */
290
+ readonly faster: Schema.Boolean;
291
+ }>;
278
292
  export interface Info extends Schema.Schema.Type<typeof Info> {
279
293
  }
280
294
  export declare const Info: Schema.Struct<{
@@ -456,6 +470,40 @@ export declare const Info: Schema.Struct<{
456
470
  readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
457
471
  }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
458
472
  }>>;
473
+ /** Experimental: may change without compatibility guarantees. */
474
+ readonly experimental: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
475
+ readonly speed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
476
+ /** The same provider's model at its standard speed. */
477
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
478
+ /** The speed's name, such as "fast" or "flex". */
479
+ readonly id: Schema.String;
480
+ /** Whether it is faster than the standard speed. A slower speed trades latency for a lower price. */
481
+ readonly faster: Schema.Boolean;
482
+ }>>>, Schema.optionalKey<Schema.Struct<{
483
+ /** The same provider's model at its standard speed. */
484
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
485
+ /** The speed's name, such as "fast" or "flex". */
486
+ readonly id: Schema.String;
487
+ /** Whether it is faster than the standard speed. A slower speed trades latency for a lower price. */
488
+ readonly faster: Schema.Boolean;
489
+ }>>, never, never>;
490
+ }>>>, Schema.optionalKey<Schema.Struct<{
491
+ readonly speed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
492
+ /** The same provider's model at its standard speed. */
493
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
494
+ /** The speed's name, such as "fast" or "flex". */
495
+ readonly id: Schema.String;
496
+ /** Whether it is faster than the standard speed. A slower speed trades latency for a lower price. */
497
+ readonly faster: Schema.Boolean;
498
+ }>>>, Schema.optionalKey<Schema.Struct<{
499
+ /** The same provider's model at its standard speed. */
500
+ readonly base: Schema.brand<Schema.String, "Model.ID">;
501
+ /** The speed's name, such as "fast" or "flex". */
502
+ readonly id: Schema.String;
503
+ /** Whether it is faster than the standard speed. A slower speed trades latency for a lower price. */
504
+ readonly faster: Schema.Boolean;
505
+ }>>, never, never>;
506
+ }>>, never, never>;
459
507
  readonly time: Schema.Struct<{
460
508
  readonly released: Schema.Finite;
461
509
  }>;
package/dist/model.js CHANGED
@@ -80,6 +80,14 @@ export const Variant = Schema.Struct({
80
80
  ...Overlays,
81
81
  settings: VariantSettings.pipe(optional),
82
82
  }).annotate({ identifier: "Model.Variant" });
83
+ export const Speed = Schema.Struct({
84
+ /** The same provider's model at its standard speed. */
85
+ base: ID,
86
+ /** The speed's name, such as "fast" or "flex". */
87
+ id: Schema.String,
88
+ /** Whether it is faster than the standard speed. A slower speed trades latency for a lower price. */
89
+ faster: Schema.Boolean,
90
+ }).annotate({ identifier: "Model.Speed" });
83
91
  export const Info = Schema.Struct({
84
92
  id: ID,
85
93
  modelID: ID,
@@ -93,6 +101,8 @@ export const Info = Schema.Struct({
93
101
  ...Overlays,
94
102
  capabilities: Capabilities,
95
103
  variants: Schema.Array(Variant),
104
+ /** Experimental: may change without compatibility guarantees. */
105
+ experimental: Schema.Struct({ speed: Speed.pipe(optional) }).pipe(optional),
96
106
  time: Schema.Struct({
97
107
  released: Schema.Finite,
98
108
  }),