@opencode-ai/protocol 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.
@@ -196,6 +196,38 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
196
196
  durable: undefined;
197
197
  data: Schema.Struct<{}>;
198
198
  }, ...((Schema.Struct<{
199
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
200
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
201
+ };
202
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
203
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
204
+ readonly type: Schema.Literal<"skill.updated">;
205
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
206
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
207
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
208
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
209
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
210
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
211
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
212
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
213
+ }>, never, never>;
214
+ }>>>, Schema.optionalKey<Schema.Struct<{
215
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
216
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
217
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
218
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
219
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
220
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
221
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
222
+ }>, never, never>;
223
+ }>>, never, never>;
224
+ readonly data: Schema.Struct<{}>;
225
+ }> & {
226
+ type: "skill.updated";
227
+ durability: "ephemeral";
228
+ durable: undefined;
229
+ data: Schema.Struct<{}>;
230
+ }) | (Schema.Struct<{
199
231
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
200
232
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
201
233
  };
@@ -347,9 +379,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
347
379
  }>>, never, never>;
348
380
  readonly data: Schema.Struct<{
349
381
  readonly info: Schema.Struct<{
350
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
351
- create: () => string & import("effect/Brand").Brand<"ShellID">;
352
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
382
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
383
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
384
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
353
385
  };
354
386
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
355
387
  readonly command: Schema.String;
@@ -371,9 +403,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
371
403
  durable: undefined;
372
404
  data: Schema.Struct<{
373
405
  readonly info: Schema.Struct<{
374
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
375
- create: () => string & import("effect/Brand").Brand<"ShellID">;
376
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
406
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
407
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
408
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
377
409
  };
378
410
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
379
411
  readonly command: Schema.String;
@@ -416,9 +448,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
416
448
  }>, never, never>;
417
449
  }>>, never, never>;
418
450
  readonly data: Schema.Struct<{
419
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
420
- create: () => string & import("effect/Brand").Brand<"ShellID">;
421
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
451
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
452
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
453
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
422
454
  };
423
455
  readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
424
456
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
@@ -428,9 +460,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
428
460
  durability: "ephemeral";
429
461
  durable: undefined;
430
462
  data: Schema.Struct<{
431
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
432
- create: () => string & import("effect/Brand").Brand<"ShellID">;
433
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
463
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
464
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
465
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
434
466
  };
435
467
  readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
436
468
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
@@ -462,9 +494,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
462
494
  }>, never, never>;
463
495
  }>>, never, never>;
464
496
  readonly data: Schema.Struct<{
465
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
466
- create: () => string & import("effect/Brand").Brand<"ShellID">;
467
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
497
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
498
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
499
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
468
500
  };
469
501
  }>;
470
502
  }> & {
@@ -472,9 +504,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
472
504
  durability: "ephemeral";
473
505
  durable: undefined;
474
506
  data: Schema.Struct<{
475
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
476
- create: () => string & import("effect/Brand").Brand<"ShellID">;
477
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
507
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
508
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
509
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
478
510
  };
479
511
  }>;
480
512
  }) | (Schema.Struct<{
@@ -487,7 +519,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
487
519
  readonly durable: Schema.Struct<{
488
520
  readonly aggregateID: Schema.String;
489
521
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
490
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
522
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
491
523
  }>;
492
524
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
493
525
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -509,7 +541,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
509
541
  }>, never, never>;
510
542
  }>>, never, never>;
511
543
  readonly data: Schema.Struct<{
512
- readonly agent: Schema.String;
544
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
513
545
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
514
546
  create: () => string & import("effect/Brand").Brand<"SessionID">;
515
547
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -523,7 +555,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
523
555
  readonly aggregate: string;
524
556
  };
525
557
  data: Schema.Struct<{
526
- readonly agent: Schema.String;
558
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
527
559
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
528
560
  create: () => string & import("effect/Brand").Brand<"SessionID">;
529
561
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -539,7 +571,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
539
571
  readonly durable: Schema.Struct<{
540
572
  readonly aggregateID: Schema.String;
541
573
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
542
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
574
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
543
575
  }>;
544
576
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
545
577
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -562,7 +594,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
562
594
  }>>, never, never>;
563
595
  readonly data: Schema.Struct<{
564
596
  readonly model: Schema.Struct<{
565
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
597
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
566
598
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
567
599
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
568
600
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -576,7 +608,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
576
608
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
577
609
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
578
610
  };
579
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
611
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
580
612
  }>;
581
613
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
582
614
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -592,7 +624,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
592
624
  };
593
625
  data: Schema.Struct<{
594
626
  readonly model: Schema.Struct<{
595
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
627
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
596
628
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
597
629
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
598
630
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -606,7 +638,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
606
638
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
607
639
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
608
640
  };
609
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
641
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
610
642
  }>;
611
643
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
612
644
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -623,7 +655,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
623
655
  readonly durable: Schema.Struct<{
624
656
  readonly aggregateID: Schema.String;
625
657
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
626
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
658
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
627
659
  }>;
628
660
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
629
661
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -695,7 +727,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
695
727
  readonly durable: Schema.Struct<{
696
728
  readonly aggregateID: Schema.String;
697
729
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
698
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
730
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
699
731
  }>;
700
732
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
701
733
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -764,7 +796,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
764
796
  }>, never, never>;
765
797
  }>>, never, never>;
766
798
  readonly data: Schema.Struct<{
767
- readonly cost: Schema.Finite;
799
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
800
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
801
+ };
768
802
  readonly tokens: Schema.Struct<{
769
803
  readonly input: Schema.Finite;
770
804
  readonly output: Schema.Finite;
@@ -784,7 +818,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
784
818
  durability: "ephemeral";
785
819
  durable: undefined;
786
820
  data: Schema.Struct<{
787
- readonly cost: Schema.Finite;
821
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
822
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
823
+ };
788
824
  readonly tokens: Schema.Struct<{
789
825
  readonly input: Schema.Finite;
790
826
  readonly output: Schema.Finite;
@@ -809,7 +845,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
809
845
  readonly durable: Schema.Struct<{
810
846
  readonly aggregateID: Schema.String;
811
847
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
812
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
848
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
813
849
  }>;
814
850
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
815
851
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -859,7 +895,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
859
895
  readonly durable: Schema.Struct<{
860
896
  readonly aggregateID: Schema.String;
861
897
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
862
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
898
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
863
899
  }>;
864
900
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
865
901
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -931,7 +967,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
931
967
  readonly durable: Schema.Struct<{
932
968
  readonly aggregateID: Schema.String;
933
969
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
934
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
970
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
935
971
  }>;
936
972
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
937
973
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -989,7 +1025,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
989
1025
  readonly durable: Schema.Struct<{
990
1026
  readonly aggregateID: Schema.String;
991
1027
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
992
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1028
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
993
1029
  }>;
994
1030
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
995
1031
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1369,7 +1405,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1369
1405
  readonly durable: Schema.Struct<{
1370
1406
  readonly aggregateID: Schema.String;
1371
1407
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1372
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1408
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1373
1409
  }>;
1374
1410
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1375
1411
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1419,7 +1455,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1419
1455
  readonly durable: Schema.Struct<{
1420
1456
  readonly aggregateID: Schema.String;
1421
1457
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1422
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1458
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1423
1459
  }>;
1424
1460
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1425
1461
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1469,7 +1505,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1469
1505
  readonly durable: Schema.Struct<{
1470
1506
  readonly aggregateID: Schema.String;
1471
1507
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1472
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1508
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1473
1509
  }>;
1474
1510
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1475
1511
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1527,7 +1563,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1527
1563
  readonly durable: Schema.Struct<{
1528
1564
  readonly aggregateID: Schema.String;
1529
1565
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1530
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1566
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1531
1567
  }>;
1532
1568
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1533
1569
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1579,7 +1615,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1579
1615
  readonly durable: Schema.Struct<{
1580
1616
  readonly aggregateID: Schema.String;
1581
1617
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1582
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1618
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1583
1619
  }>;
1584
1620
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1585
1621
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1631,7 +1667,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1631
1667
  readonly durable: Schema.Struct<{
1632
1668
  readonly aggregateID: Schema.String;
1633
1669
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1634
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1670
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1635
1671
  }>;
1636
1672
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1637
1673
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1687,7 +1723,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1687
1723
  readonly durable: Schema.Struct<{
1688
1724
  readonly aggregateID: Schema.String;
1689
1725
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1690
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1726
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1691
1727
  }>;
1692
1728
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1693
1729
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1709,7 +1745,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1709
1745
  }>, never, never>;
1710
1746
  }>>, never, never>;
1711
1747
  readonly data: Schema.Struct<{
1712
- readonly name: Schema.String;
1748
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
1749
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
1713
1750
  readonly text: Schema.String;
1714
1751
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1715
1752
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -1724,7 +1761,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1724
1761
  readonly aggregate: string;
1725
1762
  };
1726
1763
  data: Schema.Struct<{
1727
- readonly name: Schema.String;
1764
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
1765
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
1728
1766
  readonly text: Schema.String;
1729
1767
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1730
1768
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -1741,7 +1779,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1741
1779
  readonly durable: Schema.Struct<{
1742
1780
  readonly aggregateID: Schema.String;
1743
1781
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1744
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1782
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1745
1783
  }>;
1746
1784
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1747
1785
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1764,9 +1802,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1764
1802
  }>>, never, never>;
1765
1803
  readonly data: Schema.Struct<{
1766
1804
  readonly shell: Schema.Struct<{
1767
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
1768
- create: () => string & import("effect/Brand").Brand<"ShellID">;
1769
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
1805
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
1806
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
1807
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
1770
1808
  };
1771
1809
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
1772
1810
  readonly command: Schema.String;
@@ -1795,9 +1833,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1795
1833
  };
1796
1834
  data: Schema.Struct<{
1797
1835
  readonly shell: Schema.Struct<{
1798
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
1799
- create: () => string & import("effect/Brand").Brand<"ShellID">;
1800
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
1836
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
1837
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
1838
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
1801
1839
  };
1802
1840
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
1803
1841
  readonly command: Schema.String;
@@ -1827,7 +1865,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1827
1865
  readonly durable: Schema.Struct<{
1828
1866
  readonly aggregateID: Schema.String;
1829
1867
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1830
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1868
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1831
1869
  }>;
1832
1870
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1833
1871
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1850,9 +1888,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1850
1888
  }>>, never, never>;
1851
1889
  readonly data: Schema.Struct<{
1852
1890
  readonly shell: Schema.Struct<{
1853
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
1854
- create: () => string & import("effect/Brand").Brand<"ShellID">;
1855
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
1891
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
1892
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
1893
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
1856
1894
  };
1857
1895
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
1858
1896
  readonly command: Schema.String;
@@ -1887,9 +1925,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1887
1925
  };
1888
1926
  data: Schema.Struct<{
1889
1927
  readonly shell: Schema.Struct<{
1890
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
1891
- create: () => string & import("effect/Brand").Brand<"ShellID">;
1892
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
1928
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
1929
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
1930
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
1893
1931
  };
1894
1932
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
1895
1933
  readonly command: Schema.String;
@@ -1925,7 +1963,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1925
1963
  readonly durable: Schema.Struct<{
1926
1964
  readonly aggregateID: Schema.String;
1927
1965
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1928
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1966
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1929
1967
  }>;
1930
1968
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1931
1969
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1951,9 +1989,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1951
1989
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1952
1990
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1953
1991
  };
1954
- readonly agent: Schema.String;
1992
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
1955
1993
  readonly model: Schema.Struct<{
1956
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
1994
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
1957
1995
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
1958
1996
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1959
1997
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -1967,9 +2005,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1967
2005
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1968
2006
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1969
2007
  };
1970
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
2008
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
1971
2009
  }>;
1972
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2010
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
1973
2011
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1974
2012
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1975
2013
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -1987,9 +2025,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
1987
2025
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1988
2026
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1989
2027
  };
1990
- readonly agent: Schema.String;
2028
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
1991
2029
  readonly model: Schema.Struct<{
1992
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
2030
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
1993
2031
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
1994
2032
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1995
2033
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -2003,9 +2041,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2003
2041
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2004
2042
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2005
2043
  };
2006
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
2044
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
2007
2045
  }>;
2008
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2046
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
2009
2047
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2010
2048
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2011
2049
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -2021,7 +2059,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2021
2059
  readonly durable: Schema.Struct<{
2022
2060
  readonly aggregateID: Schema.String;
2023
2061
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2024
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2062
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2025
2063
  }>;
2026
2064
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2027
2065
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2048,7 +2086,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2048
2086
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2049
2087
  };
2050
2088
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2051
- readonly cost: Schema.Finite;
2089
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
2090
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
2091
+ };
2052
2092
  readonly tokens: Schema.Struct<{
2053
2093
  readonly input: Schema.Finite;
2054
2094
  readonly output: Schema.Finite;
@@ -2058,7 +2098,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2058
2098
  readonly write: Schema.Finite;
2059
2099
  }>;
2060
2100
  }>;
2061
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2101
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
2062
2102
  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>;
2063
2103
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2064
2104
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -2078,7 +2118,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2078
2118
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2079
2119
  };
2080
2120
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2081
- readonly cost: Schema.Finite;
2121
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
2122
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
2123
+ };
2082
2124
  readonly tokens: Schema.Struct<{
2083
2125
  readonly input: Schema.Finite;
2084
2126
  readonly output: Schema.Finite;
@@ -2088,7 +2130,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2088
2130
  readonly write: Schema.Finite;
2089
2131
  }>;
2090
2132
  }>;
2091
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2133
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
2092
2134
  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>;
2093
2135
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2094
2136
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -2105,7 +2147,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2105
2147
  readonly durable: Schema.Struct<{
2106
2148
  readonly aggregateID: Schema.String;
2107
2149
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2108
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2150
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2109
2151
  }>;
2110
2152
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2111
2153
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2135,7 +2177,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2135
2177
  readonly type: Schema.String;
2136
2178
  readonly message: Schema.String;
2137
2179
  }>;
2138
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
2180
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
2181
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
2182
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
2183
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
2184
+ }>, never, never>;
2139
2185
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2140
2186
  readonly input: Schema.Finite;
2141
2187
  readonly output: Schema.Finite;
@@ -2174,7 +2220,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2174
2220
  readonly type: Schema.String;
2175
2221
  readonly message: Schema.String;
2176
2222
  }>;
2177
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
2223
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
2224
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
2225
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
2226
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
2227
+ }>, never, never>;
2178
2228
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2179
2229
  readonly input: Schema.Finite;
2180
2230
  readonly output: Schema.Finite;
@@ -2207,7 +2257,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2207
2257
  readonly durable: Schema.Struct<{
2208
2258
  readonly aggregateID: Schema.String;
2209
2259
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2210
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2260
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2211
2261
  }>;
2212
2262
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2213
2263
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2321,7 +2371,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2321
2371
  readonly durable: Schema.Struct<{
2322
2372
  readonly aggregateID: Schema.String;
2323
2373
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2324
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2374
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2325
2375
  }>;
2326
2376
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2327
2377
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2383,7 +2433,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2383
2433
  readonly durable: Schema.Struct<{
2384
2434
  readonly aggregateID: Schema.String;
2385
2435
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2386
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2436
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2387
2437
  }>;
2388
2438
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2389
2439
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2499,7 +2549,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2499
2549
  readonly durable: Schema.Struct<{
2500
2550
  readonly aggregateID: Schema.String;
2501
2551
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2502
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2552
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2503
2553
  }>;
2504
2554
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2505
2555
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2563,7 +2613,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2563
2613
  readonly durable: Schema.Struct<{
2564
2614
  readonly aggregateID: Schema.String;
2565
2615
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2566
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2616
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2567
2617
  }>;
2568
2618
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2569
2619
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2679,7 +2729,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2679
2729
  readonly durable: Schema.Struct<{
2680
2730
  readonly aggregateID: Schema.String;
2681
2731
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2682
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2732
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2683
2733
  }>;
2684
2734
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2685
2735
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2741,7 +2791,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2741
2791
  readonly durable: Schema.Struct<{
2742
2792
  readonly aggregateID: Schema.String;
2743
2793
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2744
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2794
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2745
2795
  }>;
2746
2796
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2747
2797
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2807,7 +2857,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2807
2857
  readonly durable: Schema.Struct<{
2808
2858
  readonly aggregateID: Schema.String;
2809
2859
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2810
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2860
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2811
2861
  }>;
2812
2862
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2813
2863
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2887,7 +2937,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2887
2937
  readonly durable: Schema.Struct<{
2888
2938
  readonly aggregateID: Schema.String;
2889
2939
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2890
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2940
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2891
2941
  }>;
2892
2942
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2893
2943
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2919,7 +2969,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2919
2969
  readonly mime: Schema.String;
2920
2970
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2921
2971
  }>]>>;
2922
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
2923
2972
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
2924
2973
  readonly executed: Schema.Boolean;
2925
2974
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -2951,7 +3000,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2951
3000
  readonly mime: Schema.String;
2952
3001
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2953
3002
  }>]>>;
2954
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
2955
3003
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
2956
3004
  readonly executed: Schema.Boolean;
2957
3005
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -2975,7 +3023,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2975
3023
  readonly durable: Schema.Struct<{
2976
3024
  readonly aggregateID: Schema.String;
2977
3025
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2978
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3026
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2979
3027
  }>;
2980
3028
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2981
3029
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3049,7 +3097,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3049
3097
  readonly durable: Schema.Struct<{
3050
3098
  readonly aggregateID: Schema.String;
3051
3099
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3052
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3100
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3053
3101
  }>;
3054
3102
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3055
3103
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3119,7 +3167,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3119
3167
  readonly durable: Schema.Struct<{
3120
3168
  readonly aggregateID: Schema.String;
3121
3169
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3122
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3170
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3123
3171
  }>;
3124
3172
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3125
3173
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3177,7 +3225,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3177
3225
  readonly durable: Schema.Struct<{
3178
3226
  readonly aggregateID: Schema.String;
3179
3227
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3180
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3228
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3181
3229
  }>;
3182
3230
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3183
3231
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3199,7 +3247,15 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3199
3247
  }>, never, never>;
3200
3248
  }>>, never, never>;
3201
3249
  readonly data: Schema.Struct<{
3202
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
3250
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
3251
+ readonly recent: Schema.String;
3252
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
3253
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3254
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3255
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
3256
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3257
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3258
+ }>, never, never>;
3203
3259
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3204
3260
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3205
3261
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -3213,7 +3269,15 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3213
3269
  readonly aggregate: string;
3214
3270
  };
3215
3271
  data: Schema.Struct<{
3216
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
3272
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
3273
+ readonly recent: Schema.String;
3274
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
3275
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3276
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3277
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
3278
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3279
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3280
+ }>, never, never>;
3217
3281
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3218
3282
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3219
3283
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -3273,7 +3337,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3273
3337
  readonly durable: Schema.Struct<{
3274
3338
  readonly aggregateID: Schema.String;
3275
3339
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3276
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3340
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3277
3341
  }>;
3278
3342
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3279
3343
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3295,7 +3359,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3295
3359
  }>, never, never>;
3296
3360
  }>>, never, never>;
3297
3361
  readonly data: Schema.Struct<{
3298
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
3362
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
3299
3363
  readonly text: Schema.String;
3300
3364
  readonly recent: Schema.String;
3301
3365
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -3311,7 +3375,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3311
3375
  readonly aggregate: string;
3312
3376
  };
3313
3377
  data: Schema.Struct<{
3314
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
3378
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
3315
3379
  readonly text: Schema.String;
3316
3380
  readonly recent: Schema.String;
3317
3381
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -3329,7 +3393,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3329
3393
  readonly durable: Schema.Struct<{
3330
3394
  readonly aggregateID: Schema.String;
3331
3395
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3332
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3396
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3333
3397
  }>;
3334
3398
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3335
3399
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3351,7 +3415,19 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3351
3415
  }>, never, never>;
3352
3416
  }>>, never, never>;
3353
3417
  readonly data: Schema.Struct<{
3354
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
3418
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
3419
+ readonly error: Schema.Struct<{
3420
+ readonly type: Schema.String;
3421
+ readonly message: Schema.String;
3422
+ }>;
3423
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
3424
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3425
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3426
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
3427
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3428
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3429
+ }>, never, never>;
3430
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3355
3431
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3356
3432
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3357
3433
  };
@@ -3364,7 +3440,19 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3364
3440
  readonly aggregate: string;
3365
3441
  };
3366
3442
  data: Schema.Struct<{
3367
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
3443
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
3444
+ readonly error: Schema.Struct<{
3445
+ readonly type: Schema.String;
3446
+ readonly message: Schema.String;
3447
+ }>;
3448
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
3449
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3450
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3451
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
3452
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3453
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3454
+ }>, never, never>;
3455
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3368
3456
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3369
3457
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3370
3458
  };
@@ -3379,7 +3467,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3379
3467
  readonly durable: Schema.Struct<{
3380
3468
  readonly aggregateID: Schema.String;
3381
3469
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3382
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3470
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3383
3471
  }>;
3384
3472
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3385
3473
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3407,20 +3495,19 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3407
3495
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3408
3496
  };
3409
3497
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3410
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3411
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3498
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
3412
3499
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3413
- readonly path: Schema.brand<Schema.String, "RelativePath">;
3414
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
3500
+ readonly file: Schema.String;
3501
+ readonly patch: Schema.String;
3415
3502
  readonly additions: Schema.Int;
3416
3503
  readonly deletions: Schema.Int;
3417
- readonly patch: Schema.String;
3504
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3418
3505
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3419
- readonly path: Schema.brand<Schema.String, "RelativePath">;
3420
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
3506
+ readonly file: Schema.String;
3507
+ readonly patch: Schema.String;
3421
3508
  readonly additions: Schema.Int;
3422
3509
  readonly deletions: Schema.Int;
3423
- readonly patch: Schema.String;
3510
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3424
3511
  }>>>, never, never>;
3425
3512
  }>;
3426
3513
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -3442,20 +3529,19 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3442
3529
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3443
3530
  };
3444
3531
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3445
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3446
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3532
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
3447
3533
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3448
- readonly path: Schema.brand<Schema.String, "RelativePath">;
3449
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
3534
+ readonly file: Schema.String;
3535
+ readonly patch: Schema.String;
3450
3536
  readonly additions: Schema.Int;
3451
3537
  readonly deletions: Schema.Int;
3452
- readonly patch: Schema.String;
3538
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3453
3539
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3454
- readonly path: Schema.brand<Schema.String, "RelativePath">;
3455
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
3540
+ readonly file: Schema.String;
3541
+ readonly patch: Schema.String;
3456
3542
  readonly additions: Schema.Int;
3457
3543
  readonly deletions: Schema.Int;
3458
- readonly patch: Schema.String;
3544
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3459
3545
  }>>>, never, never>;
3460
3546
  }>;
3461
3547
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -3473,7 +3559,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3473
3559
  readonly durable: Schema.Struct<{
3474
3560
  readonly aggregateID: Schema.String;
3475
3561
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3476
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3562
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3477
3563
  }>;
3478
3564
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3479
3565
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3523,7 +3609,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
3523
3609
  readonly durable: Schema.Struct<{
3524
3610
  readonly aggregateID: Schema.String;
3525
3611
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3526
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3612
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3527
3613
  }>;
3528
3614
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3529
3615
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4013,38 +4099,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4013
4099
  durability: "ephemeral";
4014
4100
  durable: undefined;
4015
4101
  data: Schema.Struct<{}>;
4016
- }) | (Schema.Struct<{
4017
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4018
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
4019
- };
4020
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
4021
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4022
- readonly type: Schema.Literal<"skill.updated">;
4023
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4024
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
4025
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
4026
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
4027
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
4028
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
4029
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
4030
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
4031
- }>, never, never>;
4032
- }>>>, Schema.optionalKey<Schema.Struct<{
4033
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
4034
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
4035
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
4036
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
4037
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
4038
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
4039
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
4040
- }>, never, never>;
4041
- }>>, never, never>;
4042
- readonly data: Schema.Struct<{}>;
4043
- }> & {
4044
- type: "skill.updated";
4045
- durability: "ephemeral";
4046
- durable: undefined;
4047
- data: Schema.Struct<{}>;
4048
4102
  }) | (Schema.Struct<{
4049
4103
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4050
4104
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -4201,7 +4255,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4201
4255
  readonly durable: Schema.Struct<{
4202
4256
  readonly aggregateID: Schema.String;
4203
4257
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4204
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4258
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4205
4259
  }>;
4206
4260
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4207
4261
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4313,7 +4367,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4313
4367
  readonly title: Schema.String;
4314
4368
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4315
4369
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4316
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4370
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4317
4371
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4318
4372
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4319
4373
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4329,7 +4383,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4329
4383
  };
4330
4384
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4331
4385
  }>>>, Schema.optionalKey<Schema.Struct<{
4332
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4386
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4333
4387
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4334
4388
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4335
4389
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4485,7 +4539,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4485
4539
  readonly title: Schema.String;
4486
4540
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4487
4541
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4488
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4542
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4489
4543
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4490
4544
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4491
4545
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4501,7 +4555,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4501
4555
  };
4502
4556
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4503
4557
  }>>>, Schema.optionalKey<Schema.Struct<{
4504
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4558
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4505
4559
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4506
4560
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4507
4561
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4569,7 +4623,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4569
4623
  readonly durable: Schema.Struct<{
4570
4624
  readonly aggregateID: Schema.String;
4571
4625
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4572
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4626
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4573
4627
  }>;
4574
4628
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4575
4629
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4681,7 +4735,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4681
4735
  readonly title: Schema.String;
4682
4736
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4683
4737
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4684
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4738
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4685
4739
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4686
4740
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4687
4741
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4697,7 +4751,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4697
4751
  };
4698
4752
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4699
4753
  }>>>, Schema.optionalKey<Schema.Struct<{
4700
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4754
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4701
4755
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4702
4756
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4703
4757
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4853,7 +4907,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4853
4907
  readonly title: Schema.String;
4854
4908
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4855
4909
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4856
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4910
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4857
4911
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4858
4912
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4859
4913
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4869,7 +4923,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4869
4923
  };
4870
4924
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4871
4925
  }>>>, Schema.optionalKey<Schema.Struct<{
4872
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4926
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4873
4927
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4874
4928
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4875
4929
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4937,7 +4991,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
4937
4991
  readonly durable: Schema.Struct<{
4938
4992
  readonly aggregateID: Schema.String;
4939
4993
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4940
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4994
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4941
4995
  }>;
4942
4996
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4943
4997
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5049,7 +5103,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5049
5103
  readonly title: Schema.String;
5050
5104
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5051
5105
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5052
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
5106
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
5053
5107
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
5054
5108
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5055
5109
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -5065,7 +5119,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5065
5119
  };
5066
5120
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5067
5121
  }>>>, Schema.optionalKey<Schema.Struct<{
5068
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
5122
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
5069
5123
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
5070
5124
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5071
5125
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -5221,7 +5275,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5221
5275
  readonly title: Schema.String;
5222
5276
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5223
5277
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5224
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
5278
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
5225
5279
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
5226
5280
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5227
5281
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -5237,7 +5291,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5237
5291
  };
5238
5292
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5239
5293
  }>>>, Schema.optionalKey<Schema.Struct<{
5240
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
5294
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
5241
5295
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
5242
5296
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5243
5297
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -5305,7 +5359,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5305
5359
  readonly durable: Schema.Struct<{
5306
5360
  readonly aggregateID: Schema.String;
5307
5361
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5308
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5362
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5309
5363
  }>;
5310
5364
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5311
5365
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5363,7 +5417,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5363
5417
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5364
5418
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5365
5419
  };
5366
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
5420
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
5367
5421
  readonly variant: Schema.optional<Schema.String>;
5368
5422
  }>;
5369
5423
  readonly system: Schema.optional<Schema.String>;
@@ -5432,7 +5486,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5432
5486
  readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
5433
5487
  ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
5434
5488
  };
5435
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
5489
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
5436
5490
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
5437
5491
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5438
5492
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -5520,7 +5574,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5520
5574
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5521
5575
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5522
5576
  };
5523
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
5577
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
5524
5578
  readonly variant: Schema.optional<Schema.String>;
5525
5579
  }>;
5526
5580
  readonly system: Schema.optional<Schema.String>;
@@ -5589,7 +5643,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5589
5643
  readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
5590
5644
  ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
5591
5645
  };
5592
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
5646
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
5593
5647
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
5594
5648
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5595
5649
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -5643,7 +5697,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5643
5697
  readonly durable: Schema.Struct<{
5644
5698
  readonly aggregateID: Schema.String;
5645
5699
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5646
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5700
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5647
5701
  }>;
5648
5702
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5649
5703
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5699,7 +5753,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5699
5753
  readonly durable: Schema.Struct<{
5700
5754
  readonly aggregateID: Schema.String;
5701
5755
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5702
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5756
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5703
5757
  }>;
5704
5758
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5705
5759
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5764,7 +5818,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5764
5818
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5765
5819
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
5766
5820
  };
5767
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
5821
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
5768
5822
  }>>;
5769
5823
  readonly command: Schema.optional<Schema.String>;
5770
5824
  readonly id: Schema.brand<Schema.String, "PartID"> & {
@@ -6131,7 +6185,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6131
6185
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
6132
6186
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
6133
6187
  };
6134
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
6188
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
6135
6189
  }>>;
6136
6190
  readonly command: Schema.optional<Schema.String>;
6137
6191
  readonly id: Schema.brand<Schema.String, "PartID"> & {
@@ -6457,7 +6511,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6457
6511
  readonly durable: Schema.Struct<{
6458
6512
  readonly aggregateID: Schema.String;
6459
6513
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6460
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6514
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6461
6515
  }>;
6462
6516
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6463
6517
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7891,6 +7945,18 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7891
7945
  }>, never, never>;
7892
7946
  }>>;
7893
7947
  }>)[]]>>, Schema.Never, {
7948
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7949
+ readonly created: import("effect/DateTime").Utc;
7950
+ readonly type: "skill.updated";
7951
+ readonly data: {};
7952
+ readonly metadata?: {
7953
+ readonly [x: string]: unknown;
7954
+ } | undefined;
7955
+ readonly location?: {
7956
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7957
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
7958
+ } | undefined;
7959
+ } | {
7894
7960
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7895
7961
  readonly created: import("effect/DateTime").Utc;
7896
7962
  readonly type: "integration.updated";
@@ -7976,7 +8042,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7976
8042
  readonly type: "shell.created";
7977
8043
  readonly data: {
7978
8044
  readonly info: {
7979
- readonly id: string & import("effect/Brand").Brand<"ShellID">;
8045
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7980
8046
  readonly status: "running" | "exited" | "timeout" | "killed";
7981
8047
  readonly command: string;
7982
8048
  readonly cwd: string;
@@ -8005,7 +8071,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8005
8071
  readonly created: import("effect/DateTime").Utc;
8006
8072
  readonly type: "shell.exited";
8007
8073
  readonly data: {
8008
- readonly id: string & import("effect/Brand").Brand<"ShellID">;
8074
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8009
8075
  readonly status: "running" | "exited" | "timeout" | "killed";
8010
8076
  readonly exit?: number | undefined;
8011
8077
  };
@@ -8021,7 +8087,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8021
8087
  readonly created: import("effect/DateTime").Utc;
8022
8088
  readonly type: "shell.deleted";
8023
8089
  readonly data: {
8024
- readonly id: string & import("effect/Brand").Brand<"ShellID">;
8090
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8025
8091
  };
8026
8092
  readonly metadata?: {
8027
8093
  readonly [x: string]: unknown;
@@ -8040,7 +8106,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8040
8106
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8041
8107
  };
8042
8108
  readonly data: {
8043
- readonly agent: string;
8109
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
8044
8110
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8045
8111
  };
8046
8112
  readonly metadata?: {
@@ -8061,9 +8127,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8061
8127
  };
8062
8128
  readonly data: {
8063
8129
  readonly model: {
8064
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
8130
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
8065
8131
  readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
8066
- readonly variant?: (string & import("effect/Brand").Brand<"VariantID">) | undefined;
8132
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
8067
8133
  };
8068
8134
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8069
8135
  };
@@ -8123,7 +8189,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8123
8189
  readonly created: import("effect/DateTime").Utc;
8124
8190
  readonly type: "session.usage.updated";
8125
8191
  readonly data: {
8126
- readonly cost: number;
8192
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8127
8193
  readonly tokens: {
8128
8194
  readonly input: number;
8129
8195
  readonly output: number;
@@ -8386,7 +8452,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8386
8452
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8387
8453
  };
8388
8454
  readonly data: {
8389
- readonly name: string;
8455
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
8456
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
8390
8457
  readonly text: string;
8391
8458
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8392
8459
  };
@@ -8408,7 +8475,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8408
8475
  };
8409
8476
  readonly data: {
8410
8477
  readonly shell: {
8411
- readonly id: string & import("effect/Brand").Brand<"ShellID">;
8478
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8412
8479
  readonly status: "running" | "exited" | "timeout" | "killed";
8413
8480
  readonly command: string;
8414
8481
  readonly cwd: string;
@@ -8444,7 +8511,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8444
8511
  };
8445
8512
  readonly data: {
8446
8513
  readonly shell: {
8447
- readonly id: string & import("effect/Brand").Brand<"ShellID">;
8514
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8448
8515
  readonly status: "running" | "exited" | "timeout" | "killed";
8449
8516
  readonly command: string;
8450
8517
  readonly cwd: string;
@@ -8486,14 +8553,14 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8486
8553
  };
8487
8554
  readonly data: {
8488
8555
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8489
- readonly agent: string;
8556
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
8490
8557
  readonly model: {
8491
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
8558
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
8492
8559
  readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
8493
- readonly variant?: (string & import("effect/Brand").Brand<"VariantID">) | undefined;
8560
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
8494
8561
  };
8495
8562
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8496
- readonly snapshot?: string | undefined;
8563
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
8497
8564
  };
8498
8565
  readonly metadata?: {
8499
8566
  readonly [x: string]: unknown;
@@ -8514,7 +8581,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8514
8581
  readonly data: {
8515
8582
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8516
8583
  readonly finish: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown";
8517
- readonly cost: number;
8584
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8518
8585
  readonly tokens: {
8519
8586
  readonly input: number;
8520
8587
  readonly output: number;
@@ -8525,7 +8592,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8525
8592
  };
8526
8593
  };
8527
8594
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8528
- readonly snapshot?: string | undefined;
8595
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
8529
8596
  readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
8530
8597
  };
8531
8598
  readonly metadata?: {
@@ -8551,7 +8618,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8551
8618
  readonly message: string;
8552
8619
  };
8553
8620
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8554
- readonly cost?: number | undefined;
8621
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
8555
8622
  readonly tokens?: {
8556
8623
  readonly input: number;
8557
8624
  readonly output: number;
@@ -8843,7 +8910,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8843
8910
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8844
8911
  readonly callID: string;
8845
8912
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8846
- readonly outputPaths?: readonly string[] | undefined;
8847
8913
  readonly result?: unknown;
8848
8914
  readonly resultState?: {
8849
8915
  readonly [x: string]: unknown;
@@ -8943,7 +9009,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8943
9009
  };
8944
9010
  readonly data: {
8945
9011
  readonly reason: "auto" | "manual";
9012
+ readonly recent: string;
8946
9013
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
9014
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
8947
9015
  };
8948
9016
  readonly metadata?: {
8949
9017
  readonly [x: string]: unknown;
@@ -8999,7 +9067,13 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8999
9067
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
9000
9068
  };
9001
9069
  readonly data: {
9070
+ readonly reason: "auto" | "manual";
9071
+ readonly error: {
9072
+ readonly type: string;
9073
+ readonly message: string;
9074
+ };
9002
9075
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
9076
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
9003
9077
  };
9004
9078
  readonly metadata?: {
9005
9079
  readonly [x: string]: unknown;
@@ -9021,14 +9095,13 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9021
9095
  readonly revert: {
9022
9096
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
9023
9097
  readonly partID?: string | undefined;
9024
- readonly snapshot?: string | undefined;
9025
- readonly diff?: string | undefined;
9098
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
9026
9099
  readonly files?: readonly {
9027
- readonly path: string & import("effect/Brand").Brand<"RelativePath">;
9028
- readonly status: "added" | "modified" | "deleted";
9100
+ readonly file: string;
9101
+ readonly patch: string;
9029
9102
  readonly additions: number;
9030
9103
  readonly deletions: number;
9031
- readonly patch: string;
9104
+ readonly status: "added" | "deleted" | "modified";
9032
9105
  }[] | undefined;
9033
9106
  };
9034
9107
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
@@ -9254,18 +9327,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9254
9327
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
9255
9328
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
9256
9329
  } | undefined;
9257
- } | {
9258
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
9259
- readonly created: import("effect/DateTime").Utc;
9260
- readonly type: "skill.updated";
9261
- readonly data: {};
9262
- readonly metadata?: {
9263
- readonly [x: string]: unknown;
9264
- } | undefined;
9265
- readonly location?: {
9266
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
9267
- readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
9268
- } | undefined;
9269
9330
  } | {
9270
9331
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
9271
9332
  readonly created: import("effect/DateTime").Utc;
@@ -9367,7 +9428,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9367
9428
  readonly deletions: number;
9368
9429
  readonly file?: string | undefined;
9369
9430
  readonly patch?: string | undefined;
9370
- readonly status?: "added" | "modified" | "deleted" | undefined;
9431
+ readonly status?: "added" | "deleted" | "modified" | undefined;
9371
9432
  }[] | undefined;
9372
9433
  } | undefined;
9373
9434
  readonly cost?: number | undefined;
@@ -9385,7 +9446,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9385
9446
  } | undefined;
9386
9447
  readonly agent?: string | undefined;
9387
9448
  readonly model?: {
9388
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
9449
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
9389
9450
  readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9390
9451
  readonly variant?: string | undefined;
9391
9452
  } | undefined;
@@ -9448,7 +9509,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9448
9509
  readonly deletions: number;
9449
9510
  readonly file?: string | undefined;
9450
9511
  readonly patch?: string | undefined;
9451
- readonly status?: "added" | "modified" | "deleted" | undefined;
9512
+ readonly status?: "added" | "deleted" | "modified" | undefined;
9452
9513
  }[] | undefined;
9453
9514
  } | undefined;
9454
9515
  readonly cost?: number | undefined;
@@ -9466,7 +9527,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9466
9527
  } | undefined;
9467
9528
  readonly agent?: string | undefined;
9468
9529
  readonly model?: {
9469
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
9530
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
9470
9531
  readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9471
9532
  readonly variant?: string | undefined;
9472
9533
  } | undefined;
@@ -9529,7 +9590,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9529
9590
  readonly deletions: number;
9530
9591
  readonly file?: string | undefined;
9531
9592
  readonly patch?: string | undefined;
9532
- readonly status?: "added" | "modified" | "deleted" | undefined;
9593
+ readonly status?: "added" | "deleted" | "modified" | undefined;
9533
9594
  }[] | undefined;
9534
9595
  } | undefined;
9535
9596
  readonly cost?: number | undefined;
@@ -9547,7 +9608,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9547
9608
  } | undefined;
9548
9609
  readonly agent?: string | undefined;
9549
9610
  readonly model?: {
9550
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
9611
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
9551
9612
  readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9552
9613
  readonly variant?: string | undefined;
9553
9614
  } | undefined;
@@ -9593,7 +9654,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9593
9654
  readonly agent: string;
9594
9655
  readonly model: {
9595
9656
  readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9596
- readonly modelID: string & import("effect/Brand").Brand<"ModelV2.ID">;
9657
+ readonly modelID: string & import("effect/Brand").Brand<"Model.ID">;
9597
9658
  readonly variant?: string | undefined;
9598
9659
  };
9599
9660
  readonly id: string & import("effect/Brand").Brand<"MessageID">;
@@ -9605,7 +9666,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9605
9666
  readonly deletions: number;
9606
9667
  readonly file?: string | undefined;
9607
9668
  readonly patch?: string | undefined;
9608
- readonly status?: "added" | "modified" | "deleted" | undefined;
9669
+ readonly status?: "added" | "deleted" | "modified" | undefined;
9609
9670
  }[];
9610
9671
  readonly title?: string | undefined;
9611
9672
  readonly body?: string | undefined;
@@ -9621,7 +9682,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9621
9682
  readonly completed?: number | undefined;
9622
9683
  };
9623
9684
  readonly parentID: string & import("effect/Brand").Brand<"MessageID">;
9624
- readonly modelID: string & import("effect/Brand").Brand<"ModelV2.ID">;
9685
+ readonly modelID: string & import("effect/Brand").Brand<"Model.ID">;
9625
9686
  readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9626
9687
  readonly mode: string;
9627
9688
  readonly agent: string;
@@ -9854,7 +9915,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
9854
9915
  readonly messageID: string & import("effect/Brand").Brand<"MessageID">;
9855
9916
  readonly model?: {
9856
9917
  readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9857
- readonly modelID: string & import("effect/Brand").Brand<"ModelV2.ID">;
9918
+ readonly modelID: string & import("effect/Brand").Brand<"Model.ID">;
9858
9919
  } | undefined;
9859
9920
  readonly command?: string | undefined;
9860
9921
  } | {
@@ -10736,6 +10797,38 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
10736
10797
  durable: undefined;
10737
10798
  data: Schema.Struct<{}>;
10738
10799
  }, ...((Schema.Struct<{
10800
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
10801
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
10802
+ };
10803
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
10804
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10805
+ readonly type: Schema.Literal<"skill.updated">;
10806
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10807
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
10808
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
10809
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
10810
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
10811
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
10812
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
10813
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
10814
+ }>, never, never>;
10815
+ }>>>, Schema.optionalKey<Schema.Struct<{
10816
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
10817
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
10818
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
10819
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
10820
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
10821
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
10822
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
10823
+ }>, never, never>;
10824
+ }>>, never, never>;
10825
+ readonly data: Schema.Struct<{}>;
10826
+ }> & {
10827
+ type: "skill.updated";
10828
+ durability: "ephemeral";
10829
+ durable: undefined;
10830
+ data: Schema.Struct<{}>;
10831
+ }) | (Schema.Struct<{
10739
10832
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
10740
10833
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
10741
10834
  };
@@ -10887,9 +10980,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
10887
10980
  }>>, never, never>;
10888
10981
  readonly data: Schema.Struct<{
10889
10982
  readonly info: Schema.Struct<{
10890
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
10891
- create: () => string & import("effect/Brand").Brand<"ShellID">;
10892
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
10983
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
10984
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
10985
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
10893
10986
  };
10894
10987
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
10895
10988
  readonly command: Schema.String;
@@ -10911,9 +11004,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
10911
11004
  durable: undefined;
10912
11005
  data: Schema.Struct<{
10913
11006
  readonly info: Schema.Struct<{
10914
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
10915
- create: () => string & import("effect/Brand").Brand<"ShellID">;
10916
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
11007
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
11008
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
11009
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
10917
11010
  };
10918
11011
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
10919
11012
  readonly command: Schema.String;
@@ -10956,9 +11049,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
10956
11049
  }>, never, never>;
10957
11050
  }>>, never, never>;
10958
11051
  readonly data: Schema.Struct<{
10959
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
10960
- create: () => string & import("effect/Brand").Brand<"ShellID">;
10961
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
11052
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
11053
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
11054
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
10962
11055
  };
10963
11056
  readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
10964
11057
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
@@ -10968,9 +11061,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
10968
11061
  durability: "ephemeral";
10969
11062
  durable: undefined;
10970
11063
  data: Schema.Struct<{
10971
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
10972
- create: () => string & import("effect/Brand").Brand<"ShellID">;
10973
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
11064
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
11065
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
11066
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
10974
11067
  };
10975
11068
  readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
10976
11069
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
@@ -11002,9 +11095,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11002
11095
  }>, never, never>;
11003
11096
  }>>, never, never>;
11004
11097
  readonly data: Schema.Struct<{
11005
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
11006
- create: () => string & import("effect/Brand").Brand<"ShellID">;
11007
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
11098
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
11099
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
11100
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
11008
11101
  };
11009
11102
  }>;
11010
11103
  }> & {
@@ -11012,9 +11105,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11012
11105
  durability: "ephemeral";
11013
11106
  durable: undefined;
11014
11107
  data: Schema.Struct<{
11015
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
11016
- create: () => string & import("effect/Brand").Brand<"ShellID">;
11017
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
11108
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
11109
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
11110
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
11018
11111
  };
11019
11112
  }>;
11020
11113
  }) | (Schema.Struct<{
@@ -11027,7 +11120,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11027
11120
  readonly durable: Schema.Struct<{
11028
11121
  readonly aggregateID: Schema.String;
11029
11122
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11030
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11123
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11031
11124
  }>;
11032
11125
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11033
11126
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11049,7 +11142,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11049
11142
  }>, never, never>;
11050
11143
  }>>, never, never>;
11051
11144
  readonly data: Schema.Struct<{
11052
- readonly agent: Schema.String;
11145
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
11053
11146
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11054
11147
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11055
11148
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -11063,7 +11156,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11063
11156
  readonly aggregate: string;
11064
11157
  };
11065
11158
  data: Schema.Struct<{
11066
- readonly agent: Schema.String;
11159
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
11067
11160
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11068
11161
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11069
11162
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -11079,7 +11172,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11079
11172
  readonly durable: Schema.Struct<{
11080
11173
  readonly aggregateID: Schema.String;
11081
11174
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11082
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11175
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11083
11176
  }>;
11084
11177
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11085
11178
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11102,7 +11195,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11102
11195
  }>>, never, never>;
11103
11196
  readonly data: Schema.Struct<{
11104
11197
  readonly model: Schema.Struct<{
11105
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
11198
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11106
11199
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11107
11200
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11108
11201
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11116,7 +11209,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11116
11209
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11117
11210
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11118
11211
  };
11119
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
11212
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
11120
11213
  }>;
11121
11214
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11122
11215
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -11132,7 +11225,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11132
11225
  };
11133
11226
  data: Schema.Struct<{
11134
11227
  readonly model: Schema.Struct<{
11135
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
11228
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11136
11229
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11137
11230
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11138
11231
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11146,7 +11239,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11146
11239
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11147
11240
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11148
11241
  };
11149
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
11242
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
11150
11243
  }>;
11151
11244
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11152
11245
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -11163,7 +11256,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11163
11256
  readonly durable: Schema.Struct<{
11164
11257
  readonly aggregateID: Schema.String;
11165
11258
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11166
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11259
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11167
11260
  }>;
11168
11261
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11169
11262
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11235,7 +11328,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11235
11328
  readonly durable: Schema.Struct<{
11236
11329
  readonly aggregateID: Schema.String;
11237
11330
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11238
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11331
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11239
11332
  }>;
11240
11333
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11241
11334
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11304,7 +11397,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11304
11397
  }>, never, never>;
11305
11398
  }>>, never, never>;
11306
11399
  readonly data: Schema.Struct<{
11307
- readonly cost: Schema.Finite;
11400
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
11401
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
11402
+ };
11308
11403
  readonly tokens: Schema.Struct<{
11309
11404
  readonly input: Schema.Finite;
11310
11405
  readonly output: Schema.Finite;
@@ -11324,7 +11419,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11324
11419
  durability: "ephemeral";
11325
11420
  durable: undefined;
11326
11421
  data: Schema.Struct<{
11327
- readonly cost: Schema.Finite;
11422
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
11423
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
11424
+ };
11328
11425
  readonly tokens: Schema.Struct<{
11329
11426
  readonly input: Schema.Finite;
11330
11427
  readonly output: Schema.Finite;
@@ -11349,7 +11446,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11349
11446
  readonly durable: Schema.Struct<{
11350
11447
  readonly aggregateID: Schema.String;
11351
11448
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11352
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11449
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11353
11450
  }>;
11354
11451
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11355
11452
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11399,7 +11496,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11399
11496
  readonly durable: Schema.Struct<{
11400
11497
  readonly aggregateID: Schema.String;
11401
11498
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11402
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11499
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11403
11500
  }>;
11404
11501
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11405
11502
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11471,7 +11568,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11471
11568
  readonly durable: Schema.Struct<{
11472
11569
  readonly aggregateID: Schema.String;
11473
11570
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11474
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11571
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11475
11572
  }>;
11476
11573
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11477
11574
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11529,7 +11626,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11529
11626
  readonly durable: Schema.Struct<{
11530
11627
  readonly aggregateID: Schema.String;
11531
11628
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11532
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11629
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11533
11630
  }>;
11534
11631
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11535
11632
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11909,7 +12006,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11909
12006
  readonly durable: Schema.Struct<{
11910
12007
  readonly aggregateID: Schema.String;
11911
12008
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11912
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12009
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11913
12010
  }>;
11914
12011
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11915
12012
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11959,7 +12056,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
11959
12056
  readonly durable: Schema.Struct<{
11960
12057
  readonly aggregateID: Schema.String;
11961
12058
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11962
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12059
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11963
12060
  }>;
11964
12061
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11965
12062
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12009,7 +12106,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12009
12106
  readonly durable: Schema.Struct<{
12010
12107
  readonly aggregateID: Schema.String;
12011
12108
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12012
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12109
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12013
12110
  }>;
12014
12111
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12015
12112
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12067,7 +12164,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12067
12164
  readonly durable: Schema.Struct<{
12068
12165
  readonly aggregateID: Schema.String;
12069
12166
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12070
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12167
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12071
12168
  }>;
12072
12169
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12073
12170
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12119,7 +12216,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12119
12216
  readonly durable: Schema.Struct<{
12120
12217
  readonly aggregateID: Schema.String;
12121
12218
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12122
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12219
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12123
12220
  }>;
12124
12221
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12125
12222
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12171,7 +12268,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12171
12268
  readonly durable: Schema.Struct<{
12172
12269
  readonly aggregateID: Schema.String;
12173
12270
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12174
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12271
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12175
12272
  }>;
12176
12273
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12177
12274
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12227,7 +12324,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12227
12324
  readonly durable: Schema.Struct<{
12228
12325
  readonly aggregateID: Schema.String;
12229
12326
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12230
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12327
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12231
12328
  }>;
12232
12329
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12233
12330
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12249,7 +12346,8 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12249
12346
  }>, never, never>;
12250
12347
  }>>, never, never>;
12251
12348
  readonly data: Schema.Struct<{
12252
- readonly name: Schema.String;
12349
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
12350
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
12253
12351
  readonly text: Schema.String;
12254
12352
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12255
12353
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -12264,7 +12362,8 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12264
12362
  readonly aggregate: string;
12265
12363
  };
12266
12364
  data: Schema.Struct<{
12267
- readonly name: Schema.String;
12365
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
12366
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
12268
12367
  readonly text: Schema.String;
12269
12368
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12270
12369
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -12281,7 +12380,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12281
12380
  readonly durable: Schema.Struct<{
12282
12381
  readonly aggregateID: Schema.String;
12283
12382
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12284
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12383
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12285
12384
  }>;
12286
12385
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12287
12386
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12304,9 +12403,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12304
12403
  }>>, never, never>;
12305
12404
  readonly data: Schema.Struct<{
12306
12405
  readonly shell: Schema.Struct<{
12307
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
12308
- create: () => string & import("effect/Brand").Brand<"ShellID">;
12309
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
12406
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
12407
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
12408
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
12310
12409
  };
12311
12410
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
12312
12411
  readonly command: Schema.String;
@@ -12335,9 +12434,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12335
12434
  };
12336
12435
  data: Schema.Struct<{
12337
12436
  readonly shell: Schema.Struct<{
12338
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
12339
- create: () => string & import("effect/Brand").Brand<"ShellID">;
12340
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
12437
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
12438
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
12439
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
12341
12440
  };
12342
12441
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
12343
12442
  readonly command: Schema.String;
@@ -12367,7 +12466,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12367
12466
  readonly durable: Schema.Struct<{
12368
12467
  readonly aggregateID: Schema.String;
12369
12468
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12370
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12469
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12371
12470
  }>;
12372
12471
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12373
12472
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12390,9 +12489,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12390
12489
  }>>, never, never>;
12391
12490
  readonly data: Schema.Struct<{
12392
12491
  readonly shell: Schema.Struct<{
12393
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
12394
- create: () => string & import("effect/Brand").Brand<"ShellID">;
12395
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
12492
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
12493
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
12494
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
12396
12495
  };
12397
12496
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
12398
12497
  readonly command: Schema.String;
@@ -12427,9 +12526,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12427
12526
  };
12428
12527
  data: Schema.Struct<{
12429
12528
  readonly shell: Schema.Struct<{
12430
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
12431
- create: () => string & import("effect/Brand").Brand<"ShellID">;
12432
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
12529
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
12530
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
12531
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
12433
12532
  };
12434
12533
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
12435
12534
  readonly command: Schema.String;
@@ -12465,7 +12564,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12465
12564
  readonly durable: Schema.Struct<{
12466
12565
  readonly aggregateID: Schema.String;
12467
12566
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12468
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12567
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12469
12568
  }>;
12470
12569
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12471
12570
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12491,9 +12590,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12491
12590
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
12492
12591
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
12493
12592
  };
12494
- readonly agent: Schema.String;
12593
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
12495
12594
  readonly model: Schema.Struct<{
12496
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
12595
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
12497
12596
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
12498
12597
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12499
12598
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -12507,9 +12606,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12507
12606
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12508
12607
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12509
12608
  };
12510
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
12609
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
12511
12610
  }>;
12512
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
12611
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
12513
12612
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12514
12613
  create: () => string & import("effect/Brand").Brand<"SessionID">;
12515
12614
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -12527,9 +12626,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12527
12626
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
12528
12627
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
12529
12628
  };
12530
- readonly agent: Schema.String;
12629
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
12531
12630
  readonly model: Schema.Struct<{
12532
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
12631
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
12533
12632
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
12534
12633
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12535
12634
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -12543,9 +12642,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12543
12642
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12544
12643
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12545
12644
  };
12546
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
12645
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
12547
12646
  }>;
12548
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
12647
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
12549
12648
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12550
12649
  create: () => string & import("effect/Brand").Brand<"SessionID">;
12551
12650
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -12561,7 +12660,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12561
12660
  readonly durable: Schema.Struct<{
12562
12661
  readonly aggregateID: Schema.String;
12563
12662
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12564
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12663
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12565
12664
  }>;
12566
12665
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12567
12666
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12588,7 +12687,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12588
12687
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
12589
12688
  };
12590
12689
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
12591
- readonly cost: Schema.Finite;
12690
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
12691
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
12692
+ };
12592
12693
  readonly tokens: Schema.Struct<{
12593
12694
  readonly input: Schema.Finite;
12594
12695
  readonly output: Schema.Finite;
@@ -12598,7 +12699,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12598
12699
  readonly write: Schema.Finite;
12599
12700
  }>;
12600
12701
  }>;
12601
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
12702
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
12602
12703
  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>;
12603
12704
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12604
12705
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -12618,7 +12719,9 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12618
12719
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
12619
12720
  };
12620
12721
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
12621
- readonly cost: Schema.Finite;
12722
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
12723
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
12724
+ };
12622
12725
  readonly tokens: Schema.Struct<{
12623
12726
  readonly input: Schema.Finite;
12624
12727
  readonly output: Schema.Finite;
@@ -12628,7 +12731,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12628
12731
  readonly write: Schema.Finite;
12629
12732
  }>;
12630
12733
  }>;
12631
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
12734
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
12632
12735
  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>;
12633
12736
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12634
12737
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -12645,7 +12748,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12645
12748
  readonly durable: Schema.Struct<{
12646
12749
  readonly aggregateID: Schema.String;
12647
12750
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12648
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12751
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12649
12752
  }>;
12650
12753
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12651
12754
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12675,7 +12778,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12675
12778
  readonly type: Schema.String;
12676
12779
  readonly message: Schema.String;
12677
12780
  }>;
12678
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
12781
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
12782
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
12783
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
12784
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
12785
+ }>, never, never>;
12679
12786
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12680
12787
  readonly input: Schema.Finite;
12681
12788
  readonly output: Schema.Finite;
@@ -12714,7 +12821,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12714
12821
  readonly type: Schema.String;
12715
12822
  readonly message: Schema.String;
12716
12823
  }>;
12717
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
12824
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
12825
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
12826
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
12827
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
12828
+ }>, never, never>;
12718
12829
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12719
12830
  readonly input: Schema.Finite;
12720
12831
  readonly output: Schema.Finite;
@@ -12747,7 +12858,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12747
12858
  readonly durable: Schema.Struct<{
12748
12859
  readonly aggregateID: Schema.String;
12749
12860
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12750
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12861
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12751
12862
  }>;
12752
12863
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12753
12864
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12861,7 +12972,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12861
12972
  readonly durable: Schema.Struct<{
12862
12973
  readonly aggregateID: Schema.String;
12863
12974
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12864
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12975
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12865
12976
  }>;
12866
12977
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12867
12978
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12923,7 +13034,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
12923
13034
  readonly durable: Schema.Struct<{
12924
13035
  readonly aggregateID: Schema.String;
12925
13036
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12926
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13037
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12927
13038
  }>;
12928
13039
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12929
13040
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13039,7 +13150,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13039
13150
  readonly durable: Schema.Struct<{
13040
13151
  readonly aggregateID: Schema.String;
13041
13152
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13042
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13153
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13043
13154
  }>;
13044
13155
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13045
13156
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13103,7 +13214,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13103
13214
  readonly durable: Schema.Struct<{
13104
13215
  readonly aggregateID: Schema.String;
13105
13216
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13106
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13217
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13107
13218
  }>;
13108
13219
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13109
13220
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13219,7 +13330,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13219
13330
  readonly durable: Schema.Struct<{
13220
13331
  readonly aggregateID: Schema.String;
13221
13332
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13222
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13333
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13223
13334
  }>;
13224
13335
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13225
13336
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13281,7 +13392,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13281
13392
  readonly durable: Schema.Struct<{
13282
13393
  readonly aggregateID: Schema.String;
13283
13394
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13284
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13395
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13285
13396
  }>;
13286
13397
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13287
13398
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13347,7 +13458,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13347
13458
  readonly durable: Schema.Struct<{
13348
13459
  readonly aggregateID: Schema.String;
13349
13460
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13350
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13461
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13351
13462
  }>;
13352
13463
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13353
13464
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13427,7 +13538,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13427
13538
  readonly durable: Schema.Struct<{
13428
13539
  readonly aggregateID: Schema.String;
13429
13540
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13430
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13541
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13431
13542
  }>;
13432
13543
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13433
13544
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13459,7 +13570,6 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13459
13570
  readonly mime: Schema.String;
13460
13571
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13461
13572
  }>]>>;
13462
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
13463
13573
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
13464
13574
  readonly executed: Schema.Boolean;
13465
13575
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -13491,7 +13601,6 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13491
13601
  readonly mime: Schema.String;
13492
13602
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13493
13603
  }>]>>;
13494
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
13495
13604
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
13496
13605
  readonly executed: Schema.Boolean;
13497
13606
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -13515,7 +13624,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13515
13624
  readonly durable: Schema.Struct<{
13516
13625
  readonly aggregateID: Schema.String;
13517
13626
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13518
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13627
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13519
13628
  }>;
13520
13629
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13521
13630
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13589,7 +13698,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13589
13698
  readonly durable: Schema.Struct<{
13590
13699
  readonly aggregateID: Schema.String;
13591
13700
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13592
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13701
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13593
13702
  }>;
13594
13703
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13595
13704
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13659,7 +13768,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13659
13768
  readonly durable: Schema.Struct<{
13660
13769
  readonly aggregateID: Schema.String;
13661
13770
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13662
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13771
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13663
13772
  }>;
13664
13773
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13665
13774
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13717,7 +13826,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13717
13826
  readonly durable: Schema.Struct<{
13718
13827
  readonly aggregateID: Schema.String;
13719
13828
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13720
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13829
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13721
13830
  }>;
13722
13831
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13723
13832
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13739,7 +13848,15 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13739
13848
  }>, never, never>;
13740
13849
  }>>, never, never>;
13741
13850
  readonly data: Schema.Struct<{
13742
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
13851
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
13852
+ readonly recent: Schema.String;
13853
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
13854
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
13855
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
13856
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
13857
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
13858
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
13859
+ }>, never, never>;
13743
13860
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13744
13861
  create: () => string & import("effect/Brand").Brand<"SessionID">;
13745
13862
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -13753,7 +13870,15 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13753
13870
  readonly aggregate: string;
13754
13871
  };
13755
13872
  data: Schema.Struct<{
13756
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
13873
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
13874
+ readonly recent: Schema.String;
13875
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
13876
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
13877
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
13878
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
13879
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
13880
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
13881
+ }>, never, never>;
13757
13882
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13758
13883
  create: () => string & import("effect/Brand").Brand<"SessionID">;
13759
13884
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -13813,7 +13938,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13813
13938
  readonly durable: Schema.Struct<{
13814
13939
  readonly aggregateID: Schema.String;
13815
13940
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13816
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13941
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13817
13942
  }>;
13818
13943
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13819
13944
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13835,7 +13960,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13835
13960
  }>, never, never>;
13836
13961
  }>>, never, never>;
13837
13962
  readonly data: Schema.Struct<{
13838
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
13963
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
13839
13964
  readonly text: Schema.String;
13840
13965
  readonly recent: Schema.String;
13841
13966
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -13851,7 +13976,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13851
13976
  readonly aggregate: string;
13852
13977
  };
13853
13978
  data: Schema.Struct<{
13854
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
13979
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
13855
13980
  readonly text: Schema.String;
13856
13981
  readonly recent: Schema.String;
13857
13982
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -13869,7 +13994,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13869
13994
  readonly durable: Schema.Struct<{
13870
13995
  readonly aggregateID: Schema.String;
13871
13996
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13872
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13997
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13873
13998
  }>;
13874
13999
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13875
14000
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13891,7 +14016,19 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13891
14016
  }>, never, never>;
13892
14017
  }>>, never, never>;
13893
14018
  readonly data: Schema.Struct<{
13894
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
14019
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
14020
+ readonly error: Schema.Struct<{
14021
+ readonly type: Schema.String;
14022
+ readonly message: Schema.String;
14023
+ }>;
14024
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
14025
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
14026
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14027
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
14028
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
14029
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14030
+ }>, never, never>;
14031
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13895
14032
  create: () => string & import("effect/Brand").Brand<"SessionID">;
13896
14033
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
13897
14034
  };
@@ -13904,7 +14041,19 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13904
14041
  readonly aggregate: string;
13905
14042
  };
13906
14043
  data: Schema.Struct<{
13907
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
14044
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
14045
+ readonly error: Schema.Struct<{
14046
+ readonly type: Schema.String;
14047
+ readonly message: Schema.String;
14048
+ }>;
14049
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
14050
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
14051
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14052
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
14053
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
14054
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14055
+ }>, never, never>;
14056
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13908
14057
  create: () => string & import("effect/Brand").Brand<"SessionID">;
13909
14058
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
13910
14059
  };
@@ -13919,7 +14068,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13919
14068
  readonly durable: Schema.Struct<{
13920
14069
  readonly aggregateID: Schema.String;
13921
14070
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13922
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14071
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13923
14072
  }>;
13924
14073
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13925
14074
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13947,20 +14096,19 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13947
14096
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
13948
14097
  };
13949
14098
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13950
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13951
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14099
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
13952
14100
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
13953
- readonly path: Schema.brand<Schema.String, "RelativePath">;
13954
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
14101
+ readonly file: Schema.String;
14102
+ readonly patch: Schema.String;
13955
14103
  readonly additions: Schema.Int;
13956
14104
  readonly deletions: Schema.Int;
13957
- readonly patch: Schema.String;
14105
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
13958
14106
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
13959
- readonly path: Schema.brand<Schema.String, "RelativePath">;
13960
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
14107
+ readonly file: Schema.String;
14108
+ readonly patch: Schema.String;
13961
14109
  readonly additions: Schema.Int;
13962
14110
  readonly deletions: Schema.Int;
13963
- readonly patch: Schema.String;
14111
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
13964
14112
  }>>>, never, never>;
13965
14113
  }>;
13966
14114
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -13982,20 +14130,19 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13982
14130
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
13983
14131
  };
13984
14132
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13985
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13986
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14133
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
13987
14134
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
13988
- readonly path: Schema.brand<Schema.String, "RelativePath">;
13989
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
14135
+ readonly file: Schema.String;
14136
+ readonly patch: Schema.String;
13990
14137
  readonly additions: Schema.Int;
13991
14138
  readonly deletions: Schema.Int;
13992
- readonly patch: Schema.String;
14139
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
13993
14140
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
13994
- readonly path: Schema.brand<Schema.String, "RelativePath">;
13995
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
14141
+ readonly file: Schema.String;
14142
+ readonly patch: Schema.String;
13996
14143
  readonly additions: Schema.Int;
13997
14144
  readonly deletions: Schema.Int;
13998
- readonly patch: Schema.String;
14145
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
13999
14146
  }>>>, never, never>;
14000
14147
  }>;
14001
14148
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -14013,7 +14160,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
14013
14160
  readonly durable: Schema.Struct<{
14014
14161
  readonly aggregateID: Schema.String;
14015
14162
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14016
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14163
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14017
14164
  }>;
14018
14165
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14019
14166
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14063,7 +14210,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
14063
14210
  readonly durable: Schema.Struct<{
14064
14211
  readonly aggregateID: Schema.String;
14065
14212
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14066
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14213
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14067
14214
  }>;
14068
14215
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14069
14216
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14553,38 +14700,6 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
14553
14700
  durability: "ephemeral";
14554
14701
  durable: undefined;
14555
14702
  data: Schema.Struct<{}>;
14556
- }) | (Schema.Struct<{
14557
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
14558
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
14559
- };
14560
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
14561
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
14562
- readonly type: Schema.Literal<"skill.updated">;
14563
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14564
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
14565
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
14566
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14567
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14568
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
14569
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14570
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14571
- }>, never, never>;
14572
- }>>>, Schema.optionalKey<Schema.Struct<{
14573
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
14574
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
14575
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14576
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14577
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
14578
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14579
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14580
- }>, never, never>;
14581
- }>>, never, never>;
14582
- readonly data: Schema.Struct<{}>;
14583
- }> & {
14584
- type: "skill.updated";
14585
- durability: "ephemeral";
14586
- durable: undefined;
14587
- data: Schema.Struct<{}>;
14588
14703
  }) | (Schema.Struct<{
14589
14704
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
14590
14705
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -14741,7 +14856,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
14741
14856
  readonly durable: Schema.Struct<{
14742
14857
  readonly aggregateID: Schema.String;
14743
14858
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14744
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14859
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14745
14860
  }>;
14746
14861
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14747
14862
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14853,7 +14968,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
14853
14968
  readonly title: Schema.String;
14854
14969
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14855
14970
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14856
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
14971
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
14857
14972
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
14858
14973
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
14859
14974
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -14869,7 +14984,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
14869
14984
  };
14870
14985
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14871
14986
  }>>>, Schema.optionalKey<Schema.Struct<{
14872
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
14987
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
14873
14988
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
14874
14989
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
14875
14990
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15025,7 +15140,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15025
15140
  readonly title: Schema.String;
15026
15141
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15027
15142
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15028
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15143
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
15029
15144
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15030
15145
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15031
15146
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15041,7 +15156,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15041
15156
  };
15042
15157
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15043
15158
  }>>>, Schema.optionalKey<Schema.Struct<{
15044
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15159
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
15045
15160
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15046
15161
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15047
15162
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15109,7 +15224,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15109
15224
  readonly durable: Schema.Struct<{
15110
15225
  readonly aggregateID: Schema.String;
15111
15226
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
15112
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
15227
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
15113
15228
  }>;
15114
15229
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15115
15230
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -15221,7 +15336,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15221
15336
  readonly title: Schema.String;
15222
15337
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15223
15338
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15224
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15339
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
15225
15340
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15226
15341
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15227
15342
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15237,7 +15352,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15237
15352
  };
15238
15353
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15239
15354
  }>>>, Schema.optionalKey<Schema.Struct<{
15240
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15355
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
15241
15356
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15242
15357
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15243
15358
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15393,7 +15508,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15393
15508
  readonly title: Schema.String;
15394
15509
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15395
15510
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15396
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15511
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
15397
15512
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15398
15513
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15399
15514
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15409,7 +15524,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15409
15524
  };
15410
15525
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15411
15526
  }>>>, Schema.optionalKey<Schema.Struct<{
15412
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15527
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
15413
15528
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15414
15529
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15415
15530
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15477,7 +15592,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15477
15592
  readonly durable: Schema.Struct<{
15478
15593
  readonly aggregateID: Schema.String;
15479
15594
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
15480
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
15595
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
15481
15596
  }>;
15482
15597
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15483
15598
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -15589,7 +15704,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15589
15704
  readonly title: Schema.String;
15590
15705
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15591
15706
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15592
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15707
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
15593
15708
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15594
15709
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15595
15710
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15605,7 +15720,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15605
15720
  };
15606
15721
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15607
15722
  }>>>, Schema.optionalKey<Schema.Struct<{
15608
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15723
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
15609
15724
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15610
15725
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15611
15726
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15761,7 +15876,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15761
15876
  readonly title: Schema.String;
15762
15877
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15763
15878
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15764
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15879
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
15765
15880
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15766
15881
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15767
15882
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15777,7 +15892,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15777
15892
  };
15778
15893
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15779
15894
  }>>>, Schema.optionalKey<Schema.Struct<{
15780
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15895
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
15781
15896
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15782
15897
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15783
15898
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -15845,7 +15960,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15845
15960
  readonly durable: Schema.Struct<{
15846
15961
  readonly aggregateID: Schema.String;
15847
15962
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
15848
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
15963
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
15849
15964
  }>;
15850
15965
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15851
15966
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -15903,7 +16018,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15903
16018
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15904
16019
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15905
16020
  };
15906
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
16021
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
15907
16022
  readonly variant: Schema.optional<Schema.String>;
15908
16023
  }>;
15909
16024
  readonly system: Schema.optional<Schema.String>;
@@ -15972,7 +16087,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
15972
16087
  readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
15973
16088
  ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
15974
16089
  };
15975
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
16090
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
15976
16091
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15977
16092
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15978
16093
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -16060,7 +16175,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
16060
16175
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16061
16176
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16062
16177
  };
16063
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
16178
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
16064
16179
  readonly variant: Schema.optional<Schema.String>;
16065
16180
  }>;
16066
16181
  readonly system: Schema.optional<Schema.String>;
@@ -16129,7 +16244,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
16129
16244
  readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
16130
16245
  ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
16131
16246
  };
16132
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
16247
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
16133
16248
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
16134
16249
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16135
16250
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -16183,7 +16298,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
16183
16298
  readonly durable: Schema.Struct<{
16184
16299
  readonly aggregateID: Schema.String;
16185
16300
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
16186
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
16301
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
16187
16302
  }>;
16188
16303
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
16189
16304
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -16239,7 +16354,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
16239
16354
  readonly durable: Schema.Struct<{
16240
16355
  readonly aggregateID: Schema.String;
16241
16356
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
16242
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
16357
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
16243
16358
  }>;
16244
16359
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
16245
16360
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -16304,7 +16419,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
16304
16419
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16305
16420
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16306
16421
  };
16307
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
16422
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
16308
16423
  }>>;
16309
16424
  readonly command: Schema.optional<Schema.String>;
16310
16425
  readonly id: Schema.brand<Schema.String, "PartID"> & {
@@ -16671,7 +16786,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
16671
16786
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16672
16787
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16673
16788
  };
16674
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
16789
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
16675
16790
  }>>;
16676
16791
  readonly command: Schema.optional<Schema.String>;
16677
16792
  readonly id: Schema.brand<Schema.String, "PartID"> & {
@@ -16997,7 +17112,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
16997
17112
  readonly durable: Schema.Struct<{
16998
17113
  readonly aggregateID: Schema.String;
16999
17114
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
17000
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
17115
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
17001
17116
  }>;
17002
17117
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
17003
17118
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;