@opencode-ai/schema 0.0.0-next-15090 → 0.0.0-next-15092

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -178,7 +178,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
178
178
  readonly durable: Schema.Struct<{
179
179
  readonly aggregateID: Schema.String;
180
180
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
181
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
181
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
182
182
  }>;
183
183
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
184
184
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -290,7 +290,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
290
290
  readonly title: Schema.String;
291
291
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
292
292
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
293
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
293
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
294
294
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
295
295
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
296
296
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -306,7 +306,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
306
306
  };
307
307
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
308
308
  }>>>, Schema.optionalKey<Schema.Struct<{
309
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
309
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
310
310
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
311
311
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
312
312
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -462,7 +462,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
462
462
  readonly title: Schema.String;
463
463
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
464
464
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
465
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
465
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
466
466
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
467
467
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
468
468
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -478,7 +478,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
478
478
  };
479
479
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
480
480
  }>>>, Schema.optionalKey<Schema.Struct<{
481
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
481
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
482
482
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
483
483
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
484
484
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -546,7 +546,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
546
546
  readonly durable: Schema.Struct<{
547
547
  readonly aggregateID: Schema.String;
548
548
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
549
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
549
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
550
550
  }>;
551
551
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
552
552
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -658,7 +658,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
658
658
  readonly title: Schema.String;
659
659
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
660
660
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
661
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
661
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
662
662
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
663
663
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
664
664
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -674,7 +674,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
674
674
  };
675
675
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
676
676
  }>>>, Schema.optionalKey<Schema.Struct<{
677
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
677
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
678
678
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
679
679
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
680
680
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -830,7 +830,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
830
830
  readonly title: Schema.String;
831
831
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
832
832
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
833
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
833
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
834
834
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
835
835
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
836
836
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -846,7 +846,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
846
846
  };
847
847
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
848
848
  }>>>, Schema.optionalKey<Schema.Struct<{
849
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
849
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
850
850
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
851
851
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
852
852
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -914,7 +914,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
914
914
  readonly durable: Schema.Struct<{
915
915
  readonly aggregateID: Schema.String;
916
916
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
917
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
917
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
918
918
  }>;
919
919
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
920
920
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1026,7 +1026,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1026
1026
  readonly title: Schema.String;
1027
1027
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1028
1028
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1029
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
1029
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
1030
1030
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
1031
1031
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1032
1032
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -1042,7 +1042,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1042
1042
  };
1043
1043
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1044
1044
  }>>>, Schema.optionalKey<Schema.Struct<{
1045
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
1045
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
1046
1046
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
1047
1047
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1048
1048
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -1198,7 +1198,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1198
1198
  readonly title: Schema.String;
1199
1199
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1200
1200
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1201
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
1201
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
1202
1202
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
1203
1203
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1204
1204
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -1214,7 +1214,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1214
1214
  };
1215
1215
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1216
1216
  }>>>, Schema.optionalKey<Schema.Struct<{
1217
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
1217
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
1218
1218
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
1219
1219
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1220
1220
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -1282,7 +1282,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1282
1282
  readonly durable: Schema.Struct<{
1283
1283
  readonly aggregateID: Schema.String;
1284
1284
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1285
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1285
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1286
1286
  }>;
1287
1287
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1288
1288
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1340,7 +1340,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1340
1340
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1341
1341
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1342
1342
  };
1343
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
1343
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
1344
1344
  readonly variant: Schema.optional<Schema.String>;
1345
1345
  }>;
1346
1346
  readonly system: Schema.optional<Schema.String>;
@@ -1409,7 +1409,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1409
1409
  readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
1410
1410
  ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
1411
1411
  };
1412
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
1412
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
1413
1413
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
1414
1414
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1415
1415
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -1497,7 +1497,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1497
1497
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1498
1498
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1499
1499
  };
1500
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
1500
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
1501
1501
  readonly variant: Schema.optional<Schema.String>;
1502
1502
  }>;
1503
1503
  readonly system: Schema.optional<Schema.String>;
@@ -1566,7 +1566,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1566
1566
  readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
1567
1567
  ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
1568
1568
  };
1569
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
1569
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
1570
1570
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
1571
1571
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1572
1572
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -1620,7 +1620,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1620
1620
  readonly durable: Schema.Struct<{
1621
1621
  readonly aggregateID: Schema.String;
1622
1622
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1623
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1623
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1624
1624
  }>;
1625
1625
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1626
1626
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1676,7 +1676,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1676
1676
  readonly durable: Schema.Struct<{
1677
1677
  readonly aggregateID: Schema.String;
1678
1678
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1679
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1679
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1680
1680
  }>;
1681
1681
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1682
1682
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1741,7 +1741,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1741
1741
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1742
1742
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1743
1743
  };
1744
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
1744
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
1745
1745
  }>>;
1746
1746
  readonly command: Schema.optional<Schema.String>;
1747
1747
  readonly id: Schema.brand<Schema.String, "PartID"> & {
@@ -2108,7 +2108,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2108
2108
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2109
2109
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2110
2110
  };
2111
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
2111
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
2112
2112
  }>>;
2113
2113
  readonly command: Schema.optional<Schema.String>;
2114
2114
  readonly id: Schema.brand<Schema.String, "PartID"> & {
@@ -2434,7 +2434,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2434
2434
  readonly durable: Schema.Struct<{
2435
2435
  readonly aggregateID: Schema.String;
2436
2436
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2437
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2437
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2438
2438
  }>;
2439
2439
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2440
2440
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2496,7 +2496,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2496
2496
  readonly durable: Schema.Struct<{
2497
2497
  readonly aggregateID: Schema.String;
2498
2498
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2499
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2499
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2500
2500
  }>;
2501
2501
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2502
2502
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2518,7 +2518,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2518
2518
  }>, never, never>;
2519
2519
  }>>, never, never>;
2520
2520
  readonly data: Schema.Struct<{
2521
- readonly agent: Schema.String;
2521
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
2522
2522
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2523
2523
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2524
2524
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -2532,7 +2532,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2532
2532
  readonly aggregate: string;
2533
2533
  };
2534
2534
  data: Schema.Struct<{
2535
- readonly agent: Schema.String;
2535
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
2536
2536
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2537
2537
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2538
2538
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -2548,7 +2548,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2548
2548
  readonly durable: Schema.Struct<{
2549
2549
  readonly aggregateID: Schema.String;
2550
2550
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2551
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2551
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2552
2552
  }>;
2553
2553
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2554
2554
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2571,7 +2571,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2571
2571
  }>>, never, never>;
2572
2572
  readonly data: Schema.Struct<{
2573
2573
  readonly model: Schema.Struct<{
2574
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
2574
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
2575
2575
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
2576
2576
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2577
2577
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -2585,7 +2585,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2585
2585
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2586
2586
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2587
2587
  };
2588
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
2588
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
2589
2589
  }>;
2590
2590
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2591
2591
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -2601,7 +2601,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2601
2601
  };
2602
2602
  data: Schema.Struct<{
2603
2603
  readonly model: Schema.Struct<{
2604
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
2604
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
2605
2605
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
2606
2606
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2607
2607
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -2615,7 +2615,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2615
2615
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2616
2616
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2617
2617
  };
2618
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
2618
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
2619
2619
  }>;
2620
2620
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2621
2621
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -2632,7 +2632,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2632
2632
  readonly durable: Schema.Struct<{
2633
2633
  readonly aggregateID: Schema.String;
2634
2634
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2635
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2635
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2636
2636
  }>;
2637
2637
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2638
2638
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2704,7 +2704,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2704
2704
  readonly durable: Schema.Struct<{
2705
2705
  readonly aggregateID: Schema.String;
2706
2706
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2707
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2707
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2708
2708
  }>;
2709
2709
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2710
2710
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2773,7 +2773,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2773
2773
  }>, never, never>;
2774
2774
  }>>, never, never>;
2775
2775
  readonly data: Schema.Struct<{
2776
- readonly cost: Schema.Finite;
2776
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
2777
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
2778
+ };
2777
2779
  readonly tokens: Schema.Struct<{
2778
2780
  readonly input: Schema.Finite;
2779
2781
  readonly output: Schema.Finite;
@@ -2793,7 +2795,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2793
2795
  durability: "ephemeral";
2794
2796
  durable: undefined;
2795
2797
  data: Schema.Struct<{
2796
- readonly cost: Schema.Finite;
2798
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
2799
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
2800
+ };
2797
2801
  readonly tokens: Schema.Struct<{
2798
2802
  readonly input: Schema.Finite;
2799
2803
  readonly output: Schema.Finite;
@@ -2818,7 +2822,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2818
2822
  readonly durable: Schema.Struct<{
2819
2823
  readonly aggregateID: Schema.String;
2820
2824
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2821
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2825
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2822
2826
  }>;
2823
2827
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2824
2828
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2868,7 +2872,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2868
2872
  readonly durable: Schema.Struct<{
2869
2873
  readonly aggregateID: Schema.String;
2870
2874
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2871
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2875
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2872
2876
  }>;
2873
2877
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2874
2878
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2940,7 +2944,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2940
2944
  readonly durable: Schema.Struct<{
2941
2945
  readonly aggregateID: Schema.String;
2942
2946
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2943
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2947
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2944
2948
  }>;
2945
2949
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2946
2950
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2998,7 +3002,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2998
3002
  readonly durable: Schema.Struct<{
2999
3003
  readonly aggregateID: Schema.String;
3000
3004
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3001
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3005
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3002
3006
  }>;
3003
3007
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3004
3008
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3378,7 +3382,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3378
3382
  readonly durable: Schema.Struct<{
3379
3383
  readonly aggregateID: Schema.String;
3380
3384
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3381
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3385
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3382
3386
  }>;
3383
3387
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3384
3388
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3428,7 +3432,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3428
3432
  readonly durable: Schema.Struct<{
3429
3433
  readonly aggregateID: Schema.String;
3430
3434
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3431
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3435
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3432
3436
  }>;
3433
3437
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3434
3438
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3478,7 +3482,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3478
3482
  readonly durable: Schema.Struct<{
3479
3483
  readonly aggregateID: Schema.String;
3480
3484
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3481
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3485
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3482
3486
  }>;
3483
3487
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3484
3488
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3536,7 +3540,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3536
3540
  readonly durable: Schema.Struct<{
3537
3541
  readonly aggregateID: Schema.String;
3538
3542
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3539
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3543
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3540
3544
  }>;
3541
3545
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3542
3546
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3588,7 +3592,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3588
3592
  readonly durable: Schema.Struct<{
3589
3593
  readonly aggregateID: Schema.String;
3590
3594
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3591
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3595
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3592
3596
  }>;
3593
3597
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3594
3598
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3640,7 +3644,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3640
3644
  readonly durable: Schema.Struct<{
3641
3645
  readonly aggregateID: Schema.String;
3642
3646
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3643
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3647
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3644
3648
  }>;
3645
3649
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3646
3650
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3696,7 +3700,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3696
3700
  readonly durable: Schema.Struct<{
3697
3701
  readonly aggregateID: Schema.String;
3698
3702
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3699
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3703
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3700
3704
  }>;
3701
3705
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3702
3706
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3718,7 +3722,8 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3718
3722
  }>, never, never>;
3719
3723
  }>>, never, never>;
3720
3724
  readonly data: Schema.Struct<{
3721
- readonly name: Schema.String;
3725
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
3726
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
3722
3727
  readonly text: Schema.String;
3723
3728
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3724
3729
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -3733,7 +3738,8 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3733
3738
  readonly aggregate: string;
3734
3739
  };
3735
3740
  data: Schema.Struct<{
3736
- readonly name: Schema.String;
3741
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
3742
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
3737
3743
  readonly text: Schema.String;
3738
3744
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3739
3745
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -3750,7 +3756,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3750
3756
  readonly durable: Schema.Struct<{
3751
3757
  readonly aggregateID: Schema.String;
3752
3758
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3753
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3759
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3754
3760
  }>;
3755
3761
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3756
3762
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3773,9 +3779,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3773
3779
  }>>, never, never>;
3774
3780
  readonly data: Schema.Struct<{
3775
3781
  readonly shell: Schema.Struct<{
3776
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
3777
- create: () => string & import("effect/Brand").Brand<"ShellID">;
3778
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
3782
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
3783
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
3784
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
3779
3785
  };
3780
3786
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
3781
3787
  readonly command: Schema.String;
@@ -3804,9 +3810,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3804
3810
  };
3805
3811
  data: Schema.Struct<{
3806
3812
  readonly shell: Schema.Struct<{
3807
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
3808
- create: () => string & import("effect/Brand").Brand<"ShellID">;
3809
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
3813
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
3814
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
3815
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
3810
3816
  };
3811
3817
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
3812
3818
  readonly command: Schema.String;
@@ -3836,7 +3842,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3836
3842
  readonly durable: Schema.Struct<{
3837
3843
  readonly aggregateID: Schema.String;
3838
3844
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3839
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3845
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3840
3846
  }>;
3841
3847
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3842
3848
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3859,9 +3865,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3859
3865
  }>>, never, never>;
3860
3866
  readonly data: Schema.Struct<{
3861
3867
  readonly shell: Schema.Struct<{
3862
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
3863
- create: () => string & import("effect/Brand").Brand<"ShellID">;
3864
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
3868
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
3869
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
3870
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
3865
3871
  };
3866
3872
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
3867
3873
  readonly command: Schema.String;
@@ -3896,9 +3902,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3896
3902
  };
3897
3903
  data: Schema.Struct<{
3898
3904
  readonly shell: Schema.Struct<{
3899
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
3900
- create: () => string & import("effect/Brand").Brand<"ShellID">;
3901
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
3905
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
3906
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
3907
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
3902
3908
  };
3903
3909
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
3904
3910
  readonly command: Schema.String;
@@ -3934,7 +3940,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3934
3940
  readonly durable: Schema.Struct<{
3935
3941
  readonly aggregateID: Schema.String;
3936
3942
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3937
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3943
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3938
3944
  }>;
3939
3945
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3940
3946
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3960,9 +3966,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3960
3966
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3961
3967
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3962
3968
  };
3963
- readonly agent: Schema.String;
3969
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
3964
3970
  readonly model: Schema.Struct<{
3965
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
3971
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
3966
3972
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
3967
3973
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
3968
3974
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -3976,9 +3982,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3976
3982
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
3977
3983
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
3978
3984
  };
3979
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
3985
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
3980
3986
  }>;
3981
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3987
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
3982
3988
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3983
3989
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3984
3990
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -3996,9 +4002,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3996
4002
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3997
4003
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3998
4004
  };
3999
- readonly agent: Schema.String;
4005
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
4000
4006
  readonly model: Schema.Struct<{
4001
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4007
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4002
4008
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4003
4009
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4004
4010
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4012,9 +4018,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4012
4018
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4013
4019
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4014
4020
  };
4015
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
4021
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
4016
4022
  }>;
4017
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4023
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
4018
4024
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4019
4025
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4020
4026
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -4030,7 +4036,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4030
4036
  readonly durable: Schema.Struct<{
4031
4037
  readonly aggregateID: Schema.String;
4032
4038
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4033
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4039
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4034
4040
  }>;
4035
4041
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4036
4042
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4057,7 +4063,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4057
4063
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4058
4064
  };
4059
4065
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
4060
- readonly cost: Schema.Finite;
4066
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
4067
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4068
+ };
4061
4069
  readonly tokens: Schema.Struct<{
4062
4070
  readonly input: Schema.Finite;
4063
4071
  readonly output: Schema.Finite;
@@ -4067,7 +4075,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4067
4075
  readonly write: Schema.Finite;
4068
4076
  }>;
4069
4077
  }>;
4070
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4078
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
4071
4079
  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>;
4072
4080
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4073
4081
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -4087,7 +4095,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4087
4095
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4088
4096
  };
4089
4097
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
4090
- readonly cost: Schema.Finite;
4098
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
4099
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4100
+ };
4091
4101
  readonly tokens: Schema.Struct<{
4092
4102
  readonly input: Schema.Finite;
4093
4103
  readonly output: Schema.Finite;
@@ -4097,7 +4107,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4097
4107
  readonly write: Schema.Finite;
4098
4108
  }>;
4099
4109
  }>;
4100
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4110
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
4101
4111
  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>;
4102
4112
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4103
4113
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -4114,7 +4124,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4114
4124
  readonly durable: Schema.Struct<{
4115
4125
  readonly aggregateID: Schema.String;
4116
4126
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4117
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4127
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4118
4128
  }>;
4119
4129
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4120
4130
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4144,7 +4154,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4144
4154
  readonly type: Schema.String;
4145
4155
  readonly message: Schema.String;
4146
4156
  }>;
4147
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
4157
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
4158
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4159
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
4160
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4161
+ }>, never, never>;
4148
4162
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4149
4163
  readonly input: Schema.Finite;
4150
4164
  readonly output: Schema.Finite;
@@ -4183,7 +4197,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4183
4197
  readonly type: Schema.String;
4184
4198
  readonly message: Schema.String;
4185
4199
  }>;
4186
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
4200
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
4201
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4202
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
4203
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4204
+ }>, never, never>;
4187
4205
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4188
4206
  readonly input: Schema.Finite;
4189
4207
  readonly output: Schema.Finite;
@@ -4216,7 +4234,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4216
4234
  readonly durable: Schema.Struct<{
4217
4235
  readonly aggregateID: Schema.String;
4218
4236
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4219
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4237
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4220
4238
  }>;
4221
4239
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4222
4240
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4330,7 +4348,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4330
4348
  readonly durable: Schema.Struct<{
4331
4349
  readonly aggregateID: Schema.String;
4332
4350
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4333
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4351
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4334
4352
  }>;
4335
4353
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4336
4354
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4392,7 +4410,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4392
4410
  readonly durable: Schema.Struct<{
4393
4411
  readonly aggregateID: Schema.String;
4394
4412
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4395
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4413
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4396
4414
  }>;
4397
4415
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4398
4416
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4508,7 +4526,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4508
4526
  readonly durable: Schema.Struct<{
4509
4527
  readonly aggregateID: Schema.String;
4510
4528
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4511
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4529
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4512
4530
  }>;
4513
4531
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4514
4532
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4572,7 +4590,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4572
4590
  readonly durable: Schema.Struct<{
4573
4591
  readonly aggregateID: Schema.String;
4574
4592
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4575
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4593
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4576
4594
  }>;
4577
4595
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4578
4596
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4688,7 +4706,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4688
4706
  readonly durable: Schema.Struct<{
4689
4707
  readonly aggregateID: Schema.String;
4690
4708
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4691
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4709
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4692
4710
  }>;
4693
4711
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4694
4712
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4750,7 +4768,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4750
4768
  readonly durable: Schema.Struct<{
4751
4769
  readonly aggregateID: Schema.String;
4752
4770
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4753
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4771
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4754
4772
  }>;
4755
4773
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4756
4774
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4816,7 +4834,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4816
4834
  readonly durable: Schema.Struct<{
4817
4835
  readonly aggregateID: Schema.String;
4818
4836
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4819
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4837
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4820
4838
  }>;
4821
4839
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4822
4840
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4896,7 +4914,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4896
4914
  readonly durable: Schema.Struct<{
4897
4915
  readonly aggregateID: Schema.String;
4898
4916
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4899
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4917
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4900
4918
  }>;
4901
4919
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4902
4920
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4928,7 +4946,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4928
4946
  readonly mime: Schema.String;
4929
4947
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4930
4948
  }>]>>;
4931
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
4932
4949
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
4933
4950
  readonly executed: Schema.Boolean;
4934
4951
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -4960,7 +4977,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4960
4977
  readonly mime: Schema.String;
4961
4978
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4962
4979
  }>]>>;
4963
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
4964
4980
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
4965
4981
  readonly executed: Schema.Boolean;
4966
4982
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -4984,7 +5000,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4984
5000
  readonly durable: Schema.Struct<{
4985
5001
  readonly aggregateID: Schema.String;
4986
5002
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4987
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5003
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4988
5004
  }>;
4989
5005
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4990
5006
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5058,7 +5074,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5058
5074
  readonly durable: Schema.Struct<{
5059
5075
  readonly aggregateID: Schema.String;
5060
5076
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5061
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5077
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5062
5078
  }>;
5063
5079
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5064
5080
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5128,7 +5144,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5128
5144
  readonly durable: Schema.Struct<{
5129
5145
  readonly aggregateID: Schema.String;
5130
5146
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5131
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5147
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5132
5148
  }>;
5133
5149
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5134
5150
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5186,7 +5202,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5186
5202
  readonly durable: Schema.Struct<{
5187
5203
  readonly aggregateID: Schema.String;
5188
5204
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5189
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5205
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5190
5206
  }>;
5191
5207
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5192
5208
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5208,7 +5224,15 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5208
5224
  }>, never, never>;
5209
5225
  }>>, never, never>;
5210
5226
  readonly data: Schema.Struct<{
5211
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
5227
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5228
+ readonly recent: Schema.String;
5229
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5230
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5231
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5232
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5233
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5234
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5235
+ }>, never, never>;
5212
5236
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5213
5237
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5214
5238
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -5222,7 +5246,15 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5222
5246
  readonly aggregate: string;
5223
5247
  };
5224
5248
  data: Schema.Struct<{
5225
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
5249
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5250
+ readonly recent: Schema.String;
5251
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5252
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5253
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5254
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5255
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5256
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5257
+ }>, never, never>;
5226
5258
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5227
5259
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5228
5260
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -5282,7 +5314,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5282
5314
  readonly durable: Schema.Struct<{
5283
5315
  readonly aggregateID: Schema.String;
5284
5316
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5285
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5317
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5286
5318
  }>;
5287
5319
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5288
5320
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5304,7 +5336,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5304
5336
  }>, never, never>;
5305
5337
  }>>, never, never>;
5306
5338
  readonly data: Schema.Struct<{
5307
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
5339
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5308
5340
  readonly text: Schema.String;
5309
5341
  readonly recent: Schema.String;
5310
5342
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -5320,7 +5352,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5320
5352
  readonly aggregate: string;
5321
5353
  };
5322
5354
  data: Schema.Struct<{
5323
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
5355
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5324
5356
  readonly text: Schema.String;
5325
5357
  readonly recent: Schema.String;
5326
5358
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -5338,7 +5370,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5338
5370
  readonly durable: Schema.Struct<{
5339
5371
  readonly aggregateID: Schema.String;
5340
5372
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5341
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5373
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5342
5374
  }>;
5343
5375
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5344
5376
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5360,7 +5392,19 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5360
5392
  }>, never, never>;
5361
5393
  }>>, never, never>;
5362
5394
  readonly data: Schema.Struct<{
5363
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
5395
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5396
+ readonly error: Schema.Struct<{
5397
+ readonly type: Schema.String;
5398
+ readonly message: Schema.String;
5399
+ }>;
5400
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5401
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5402
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5403
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5404
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5405
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5406
+ }>, never, never>;
5407
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5364
5408
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5365
5409
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5366
5410
  };
@@ -5373,7 +5417,19 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5373
5417
  readonly aggregate: string;
5374
5418
  };
5375
5419
  data: Schema.Struct<{
5376
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
5420
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5421
+ readonly error: Schema.Struct<{
5422
+ readonly type: Schema.String;
5423
+ readonly message: Schema.String;
5424
+ }>;
5425
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5426
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5427
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5428
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5429
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5430
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5431
+ }>, never, never>;
5432
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5377
5433
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5378
5434
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5379
5435
  };
@@ -5388,7 +5444,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5388
5444
  readonly durable: Schema.Struct<{
5389
5445
  readonly aggregateID: Schema.String;
5390
5446
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5391
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5447
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5392
5448
  }>;
5393
5449
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5394
5450
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5416,20 +5472,19 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5416
5472
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5417
5473
  };
5418
5474
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5419
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5420
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5475
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
5421
5476
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5422
- readonly path: Schema.brand<Schema.String, "RelativePath">;
5423
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
5477
+ readonly file: Schema.String;
5478
+ readonly patch: Schema.String;
5424
5479
  readonly additions: Schema.Int;
5425
5480
  readonly deletions: Schema.Int;
5426
- readonly patch: Schema.String;
5481
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
5427
5482
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
5428
- readonly path: Schema.brand<Schema.String, "RelativePath">;
5429
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
5483
+ readonly file: Schema.String;
5484
+ readonly patch: Schema.String;
5430
5485
  readonly additions: Schema.Int;
5431
5486
  readonly deletions: Schema.Int;
5432
- readonly patch: Schema.String;
5487
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
5433
5488
  }>>>, never, never>;
5434
5489
  }>;
5435
5490
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -5451,20 +5506,19 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5451
5506
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5452
5507
  };
5453
5508
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5454
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5455
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5509
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
5456
5510
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5457
- readonly path: Schema.brand<Schema.String, "RelativePath">;
5458
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
5511
+ readonly file: Schema.String;
5512
+ readonly patch: Schema.String;
5459
5513
  readonly additions: Schema.Int;
5460
5514
  readonly deletions: Schema.Int;
5461
- readonly patch: Schema.String;
5515
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
5462
5516
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
5463
- readonly path: Schema.brand<Schema.String, "RelativePath">;
5464
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
5517
+ readonly file: Schema.String;
5518
+ readonly patch: Schema.String;
5465
5519
  readonly additions: Schema.Int;
5466
5520
  readonly deletions: Schema.Int;
5467
- readonly patch: Schema.String;
5521
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
5468
5522
  }>>>, never, never>;
5469
5523
  }>;
5470
5524
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -5482,7 +5536,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5482
5536
  readonly durable: Schema.Struct<{
5483
5537
  readonly aggregateID: Schema.String;
5484
5538
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5485
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5539
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5486
5540
  }>;
5487
5541
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5488
5542
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5532,7 +5586,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5532
5586
  readonly durable: Schema.Struct<{
5533
5587
  readonly aggregateID: Schema.String;
5534
5588
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5535
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5589
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5536
5590
  }>;
5537
5591
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5538
5592
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6212,9 +6266,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
6212
6266
  }>>, never, never>;
6213
6267
  readonly data: Schema.Struct<{
6214
6268
  readonly info: Schema.Struct<{
6215
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
6216
- create: () => string & import("effect/Brand").Brand<"ShellID">;
6217
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
6269
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
6270
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
6271
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
6218
6272
  };
6219
6273
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
6220
6274
  readonly command: Schema.String;
@@ -6236,9 +6290,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
6236
6290
  durable: undefined;
6237
6291
  data: Schema.Struct<{
6238
6292
  readonly info: Schema.Struct<{
6239
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
6240
- create: () => string & import("effect/Brand").Brand<"ShellID">;
6241
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
6293
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
6294
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
6295
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
6242
6296
  };
6243
6297
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
6244
6298
  readonly command: Schema.String;
@@ -6281,9 +6335,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
6281
6335
  }>, never, never>;
6282
6336
  }>>, never, never>;
6283
6337
  readonly data: Schema.Struct<{
6284
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
6285
- create: () => string & import("effect/Brand").Brand<"ShellID">;
6286
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
6338
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
6339
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
6340
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
6287
6341
  };
6288
6342
  readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
6289
6343
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
@@ -6293,9 +6347,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
6293
6347
  durability: "ephemeral";
6294
6348
  durable: undefined;
6295
6349
  data: Schema.Struct<{
6296
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
6297
- create: () => string & import("effect/Brand").Brand<"ShellID">;
6298
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
6350
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
6351
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
6352
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
6299
6353
  };
6300
6354
  readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
6301
6355
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
@@ -6327,9 +6381,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
6327
6381
  }>, never, never>;
6328
6382
  }>>, never, never>;
6329
6383
  readonly data: Schema.Struct<{
6330
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
6331
- create: () => string & import("effect/Brand").Brand<"ShellID">;
6332
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
6384
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
6385
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
6386
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
6333
6387
  };
6334
6388
  }>;
6335
6389
  }> & {
@@ -6337,9 +6391,9 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
6337
6391
  durability: "ephemeral";
6338
6392
  durable: undefined;
6339
6393
  data: Schema.Struct<{
6340
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
6341
- create: () => string & import("effect/Brand").Brand<"ShellID">;
6342
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
6394
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
6395
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
6396
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
6343
6397
  };
6344
6398
  }>;
6345
6399
  }, Schema.Struct<{
@@ -8026,7 +8080,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8026
8080
  readonly durable: Schema.Struct<{
8027
8081
  readonly aggregateID: Schema.String;
8028
8082
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8029
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8083
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8030
8084
  }>;
8031
8085
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8032
8086
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8048,7 +8102,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8048
8102
  }>, never, never>;
8049
8103
  }>>, never, never>;
8050
8104
  readonly data: Schema.Struct<{
8051
- readonly agent: Schema.String;
8105
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
8052
8106
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8053
8107
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8054
8108
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -8062,7 +8116,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8062
8116
  readonly aggregate: string;
8063
8117
  };
8064
8118
  data: Schema.Struct<{
8065
- readonly agent: Schema.String;
8119
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
8066
8120
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8067
8121
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8068
8122
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -8078,7 +8132,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8078
8132
  readonly durable: Schema.Struct<{
8079
8133
  readonly aggregateID: Schema.String;
8080
8134
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8081
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8135
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8082
8136
  }>;
8083
8137
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8084
8138
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8101,7 +8155,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8101
8155
  }>>, never, never>;
8102
8156
  readonly data: Schema.Struct<{
8103
8157
  readonly model: Schema.Struct<{
8104
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
8158
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
8105
8159
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
8106
8160
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
8107
8161
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -8115,7 +8169,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8115
8169
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
8116
8170
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
8117
8171
  };
8118
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
8172
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
8119
8173
  }>;
8120
8174
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8121
8175
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -8131,7 +8185,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8131
8185
  };
8132
8186
  data: Schema.Struct<{
8133
8187
  readonly model: Schema.Struct<{
8134
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
8188
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
8135
8189
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
8136
8190
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
8137
8191
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -8145,7 +8199,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8145
8199
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
8146
8200
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
8147
8201
  };
8148
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
8202
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
8149
8203
  }>;
8150
8204
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8151
8205
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -8162,7 +8216,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8162
8216
  readonly durable: Schema.Struct<{
8163
8217
  readonly aggregateID: Schema.String;
8164
8218
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8165
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8219
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8166
8220
  }>;
8167
8221
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8168
8222
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8234,7 +8288,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8234
8288
  readonly durable: Schema.Struct<{
8235
8289
  readonly aggregateID: Schema.String;
8236
8290
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8237
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8291
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8238
8292
  }>;
8239
8293
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8240
8294
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8303,7 +8357,9 @@ export declare const Definitions: readonly [Schema.Struct<{
8303
8357
  }>, never, never>;
8304
8358
  }>>, never, never>;
8305
8359
  readonly data: Schema.Struct<{
8306
- readonly cost: Schema.Finite;
8360
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
8361
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
8362
+ };
8307
8363
  readonly tokens: Schema.Struct<{
8308
8364
  readonly input: Schema.Finite;
8309
8365
  readonly output: Schema.Finite;
@@ -8323,7 +8379,9 @@ export declare const Definitions: readonly [Schema.Struct<{
8323
8379
  durability: "ephemeral";
8324
8380
  durable: undefined;
8325
8381
  data: Schema.Struct<{
8326
- readonly cost: Schema.Finite;
8382
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
8383
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
8384
+ };
8327
8385
  readonly tokens: Schema.Struct<{
8328
8386
  readonly input: Schema.Finite;
8329
8387
  readonly output: Schema.Finite;
@@ -8348,7 +8406,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8348
8406
  readonly durable: Schema.Struct<{
8349
8407
  readonly aggregateID: Schema.String;
8350
8408
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8351
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8409
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8352
8410
  }>;
8353
8411
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8354
8412
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8398,7 +8456,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8398
8456
  readonly durable: Schema.Struct<{
8399
8457
  readonly aggregateID: Schema.String;
8400
8458
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8401
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8459
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8402
8460
  }>;
8403
8461
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8404
8462
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8470,7 +8528,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8470
8528
  readonly durable: Schema.Struct<{
8471
8529
  readonly aggregateID: Schema.String;
8472
8530
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8473
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8531
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8474
8532
  }>;
8475
8533
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8476
8534
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8528,7 +8586,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8528
8586
  readonly durable: Schema.Struct<{
8529
8587
  readonly aggregateID: Schema.String;
8530
8588
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8531
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8589
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8532
8590
  }>;
8533
8591
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8534
8592
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8908,7 +8966,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8908
8966
  readonly durable: Schema.Struct<{
8909
8967
  readonly aggregateID: Schema.String;
8910
8968
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8911
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8969
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8912
8970
  }>;
8913
8971
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8914
8972
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8958,7 +9016,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8958
9016
  readonly durable: Schema.Struct<{
8959
9017
  readonly aggregateID: Schema.String;
8960
9018
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8961
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9019
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8962
9020
  }>;
8963
9021
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8964
9022
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9008,7 +9066,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9008
9066
  readonly durable: Schema.Struct<{
9009
9067
  readonly aggregateID: Schema.String;
9010
9068
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9011
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9069
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9012
9070
  }>;
9013
9071
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9014
9072
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9066,7 +9124,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9066
9124
  readonly durable: Schema.Struct<{
9067
9125
  readonly aggregateID: Schema.String;
9068
9126
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9069
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9127
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9070
9128
  }>;
9071
9129
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9072
9130
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9118,7 +9176,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9118
9176
  readonly durable: Schema.Struct<{
9119
9177
  readonly aggregateID: Schema.String;
9120
9178
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9121
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9179
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9122
9180
  }>;
9123
9181
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9124
9182
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9170,7 +9228,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9170
9228
  readonly durable: Schema.Struct<{
9171
9229
  readonly aggregateID: Schema.String;
9172
9230
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9173
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9231
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9174
9232
  }>;
9175
9233
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9176
9234
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9226,7 +9284,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9226
9284
  readonly durable: Schema.Struct<{
9227
9285
  readonly aggregateID: Schema.String;
9228
9286
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9229
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9287
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9230
9288
  }>;
9231
9289
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9232
9290
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9248,7 +9306,8 @@ export declare const Definitions: readonly [Schema.Struct<{
9248
9306
  }>, never, never>;
9249
9307
  }>>, never, never>;
9250
9308
  readonly data: Schema.Struct<{
9251
- readonly name: Schema.String;
9309
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
9310
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
9252
9311
  readonly text: Schema.String;
9253
9312
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9254
9313
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -9263,7 +9322,8 @@ export declare const Definitions: readonly [Schema.Struct<{
9263
9322
  readonly aggregate: string;
9264
9323
  };
9265
9324
  data: Schema.Struct<{
9266
- readonly name: Schema.String;
9325
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
9326
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
9267
9327
  readonly text: Schema.String;
9268
9328
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9269
9329
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -9280,7 +9340,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9280
9340
  readonly durable: Schema.Struct<{
9281
9341
  readonly aggregateID: Schema.String;
9282
9342
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9283
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9343
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9284
9344
  }>;
9285
9345
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9286
9346
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9303,9 +9363,9 @@ export declare const Definitions: readonly [Schema.Struct<{
9303
9363
  }>>, never, never>;
9304
9364
  readonly data: Schema.Struct<{
9305
9365
  readonly shell: Schema.Struct<{
9306
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
9307
- create: () => string & import("effect/Brand").Brand<"ShellID">;
9308
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
9366
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
9367
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
9368
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
9309
9369
  };
9310
9370
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
9311
9371
  readonly command: Schema.String;
@@ -9334,9 +9394,9 @@ export declare const Definitions: readonly [Schema.Struct<{
9334
9394
  };
9335
9395
  data: Schema.Struct<{
9336
9396
  readonly shell: Schema.Struct<{
9337
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
9338
- create: () => string & import("effect/Brand").Brand<"ShellID">;
9339
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
9397
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
9398
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
9399
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
9340
9400
  };
9341
9401
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
9342
9402
  readonly command: Schema.String;
@@ -9366,7 +9426,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9366
9426
  readonly durable: Schema.Struct<{
9367
9427
  readonly aggregateID: Schema.String;
9368
9428
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9369
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9429
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9370
9430
  }>;
9371
9431
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9372
9432
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9389,9 +9449,9 @@ export declare const Definitions: readonly [Schema.Struct<{
9389
9449
  }>>, never, never>;
9390
9450
  readonly data: Schema.Struct<{
9391
9451
  readonly shell: Schema.Struct<{
9392
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
9393
- create: () => string & import("effect/Brand").Brand<"ShellID">;
9394
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
9452
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
9453
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
9454
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
9395
9455
  };
9396
9456
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
9397
9457
  readonly command: Schema.String;
@@ -9426,9 +9486,9 @@ export declare const Definitions: readonly [Schema.Struct<{
9426
9486
  };
9427
9487
  data: Schema.Struct<{
9428
9488
  readonly shell: Schema.Struct<{
9429
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
9430
- create: () => string & import("effect/Brand").Brand<"ShellID">;
9431
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
9489
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
9490
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
9491
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
9432
9492
  };
9433
9493
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
9434
9494
  readonly command: Schema.String;
@@ -9464,7 +9524,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9464
9524
  readonly durable: Schema.Struct<{
9465
9525
  readonly aggregateID: Schema.String;
9466
9526
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9467
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9527
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9468
9528
  }>;
9469
9529
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9470
9530
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9490,9 +9550,9 @@ export declare const Definitions: readonly [Schema.Struct<{
9490
9550
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
9491
9551
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9492
9552
  };
9493
- readonly agent: Schema.String;
9553
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
9494
9554
  readonly model: Schema.Struct<{
9495
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
9555
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
9496
9556
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
9497
9557
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9498
9558
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -9506,9 +9566,9 @@ export declare const Definitions: readonly [Schema.Struct<{
9506
9566
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9507
9567
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9508
9568
  };
9509
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
9569
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
9510
9570
  }>;
9511
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
9571
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
9512
9572
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9513
9573
  create: () => string & import("effect/Brand").Brand<"SessionID">;
9514
9574
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -9526,9 +9586,9 @@ export declare const Definitions: readonly [Schema.Struct<{
9526
9586
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
9527
9587
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9528
9588
  };
9529
- readonly agent: Schema.String;
9589
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
9530
9590
  readonly model: Schema.Struct<{
9531
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
9591
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
9532
9592
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
9533
9593
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9534
9594
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -9542,9 +9602,9 @@ export declare const Definitions: readonly [Schema.Struct<{
9542
9602
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9543
9603
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9544
9604
  };
9545
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
9605
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
9546
9606
  }>;
9547
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
9607
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
9548
9608
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9549
9609
  create: () => string & import("effect/Brand").Brand<"SessionID">;
9550
9610
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -9560,7 +9620,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9560
9620
  readonly durable: Schema.Struct<{
9561
9621
  readonly aggregateID: Schema.String;
9562
9622
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9563
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9623
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9564
9624
  }>;
9565
9625
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9566
9626
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9587,7 +9647,9 @@ export declare const Definitions: readonly [Schema.Struct<{
9587
9647
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9588
9648
  };
9589
9649
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
9590
- readonly cost: Schema.Finite;
9650
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
9651
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
9652
+ };
9591
9653
  readonly tokens: Schema.Struct<{
9592
9654
  readonly input: Schema.Finite;
9593
9655
  readonly output: Schema.Finite;
@@ -9597,7 +9659,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9597
9659
  readonly write: Schema.Finite;
9598
9660
  }>;
9599
9661
  }>;
9600
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
9662
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
9601
9663
  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>;
9602
9664
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9603
9665
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -9617,7 +9679,9 @@ export declare const Definitions: readonly [Schema.Struct<{
9617
9679
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9618
9680
  };
9619
9681
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
9620
- readonly cost: Schema.Finite;
9682
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
9683
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
9684
+ };
9621
9685
  readonly tokens: Schema.Struct<{
9622
9686
  readonly input: Schema.Finite;
9623
9687
  readonly output: Schema.Finite;
@@ -9627,7 +9691,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9627
9691
  readonly write: Schema.Finite;
9628
9692
  }>;
9629
9693
  }>;
9630
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
9694
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
9631
9695
  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>;
9632
9696
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9633
9697
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -9644,7 +9708,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9644
9708
  readonly durable: Schema.Struct<{
9645
9709
  readonly aggregateID: Schema.String;
9646
9710
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9647
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9711
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9648
9712
  }>;
9649
9713
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9650
9714
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9674,7 +9738,11 @@ export declare const Definitions: readonly [Schema.Struct<{
9674
9738
  readonly type: Schema.String;
9675
9739
  readonly message: Schema.String;
9676
9740
  }>;
9677
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
9741
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
9742
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
9743
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
9744
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
9745
+ }>, never, never>;
9678
9746
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9679
9747
  readonly input: Schema.Finite;
9680
9748
  readonly output: Schema.Finite;
@@ -9713,7 +9781,11 @@ export declare const Definitions: readonly [Schema.Struct<{
9713
9781
  readonly type: Schema.String;
9714
9782
  readonly message: Schema.String;
9715
9783
  }>;
9716
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
9784
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
9785
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
9786
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
9787
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
9788
+ }>, never, never>;
9717
9789
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9718
9790
  readonly input: Schema.Finite;
9719
9791
  readonly output: Schema.Finite;
@@ -9746,7 +9818,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9746
9818
  readonly durable: Schema.Struct<{
9747
9819
  readonly aggregateID: Schema.String;
9748
9820
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9749
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9821
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9750
9822
  }>;
9751
9823
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9752
9824
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9860,7 +9932,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9860
9932
  readonly durable: Schema.Struct<{
9861
9933
  readonly aggregateID: Schema.String;
9862
9934
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9863
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9935
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9864
9936
  }>;
9865
9937
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9866
9938
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9922,7 +9994,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9922
9994
  readonly durable: Schema.Struct<{
9923
9995
  readonly aggregateID: Schema.String;
9924
9996
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9925
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9997
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9926
9998
  }>;
9927
9999
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9928
10000
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10038,7 +10110,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10038
10110
  readonly durable: Schema.Struct<{
10039
10111
  readonly aggregateID: Schema.String;
10040
10112
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10041
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10113
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10042
10114
  }>;
10043
10115
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10044
10116
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10102,7 +10174,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10102
10174
  readonly durable: Schema.Struct<{
10103
10175
  readonly aggregateID: Schema.String;
10104
10176
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10105
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10177
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10106
10178
  }>;
10107
10179
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10108
10180
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10218,7 +10290,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10218
10290
  readonly durable: Schema.Struct<{
10219
10291
  readonly aggregateID: Schema.String;
10220
10292
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10221
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10293
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10222
10294
  }>;
10223
10295
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10224
10296
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10280,7 +10352,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10280
10352
  readonly durable: Schema.Struct<{
10281
10353
  readonly aggregateID: Schema.String;
10282
10354
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10283
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10355
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10284
10356
  }>;
10285
10357
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10286
10358
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10346,7 +10418,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10346
10418
  readonly durable: Schema.Struct<{
10347
10419
  readonly aggregateID: Schema.String;
10348
10420
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10349
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10421
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10350
10422
  }>;
10351
10423
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10352
10424
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10426,7 +10498,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10426
10498
  readonly durable: Schema.Struct<{
10427
10499
  readonly aggregateID: Schema.String;
10428
10500
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10429
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10501
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10430
10502
  }>;
10431
10503
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10432
10504
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10458,7 +10530,6 @@ export declare const Definitions: readonly [Schema.Struct<{
10458
10530
  readonly mime: Schema.String;
10459
10531
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10460
10532
  }>]>>;
10461
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
10462
10533
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
10463
10534
  readonly executed: Schema.Boolean;
10464
10535
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -10490,7 +10561,6 @@ export declare const Definitions: readonly [Schema.Struct<{
10490
10561
  readonly mime: Schema.String;
10491
10562
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10492
10563
  }>]>>;
10493
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
10494
10564
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
10495
10565
  readonly executed: Schema.Boolean;
10496
10566
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -10514,7 +10584,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10514
10584
  readonly durable: Schema.Struct<{
10515
10585
  readonly aggregateID: Schema.String;
10516
10586
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10517
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10587
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10518
10588
  }>;
10519
10589
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10520
10590
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10588,7 +10658,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10588
10658
  readonly durable: Schema.Struct<{
10589
10659
  readonly aggregateID: Schema.String;
10590
10660
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10591
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10661
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10592
10662
  }>;
10593
10663
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10594
10664
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10658,7 +10728,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10658
10728
  readonly durable: Schema.Struct<{
10659
10729
  readonly aggregateID: Schema.String;
10660
10730
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10661
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10731
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10662
10732
  }>;
10663
10733
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10664
10734
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10716,7 +10786,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10716
10786
  readonly durable: Schema.Struct<{
10717
10787
  readonly aggregateID: Schema.String;
10718
10788
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10719
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10789
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10720
10790
  }>;
10721
10791
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10722
10792
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10738,7 +10808,15 @@ export declare const Definitions: readonly [Schema.Struct<{
10738
10808
  }>, never, never>;
10739
10809
  }>>, never, never>;
10740
10810
  readonly data: Schema.Struct<{
10741
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
10811
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
10812
+ readonly recent: Schema.String;
10813
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
10814
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10815
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10816
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
10817
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10818
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10819
+ }>, never, never>;
10742
10820
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10743
10821
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10744
10822
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -10752,7 +10830,15 @@ export declare const Definitions: readonly [Schema.Struct<{
10752
10830
  readonly aggregate: string;
10753
10831
  };
10754
10832
  data: Schema.Struct<{
10755
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
10833
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
10834
+ readonly recent: Schema.String;
10835
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
10836
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10837
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10838
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
10839
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10840
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10841
+ }>, never, never>;
10756
10842
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10757
10843
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10758
10844
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -10812,7 +10898,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10812
10898
  readonly durable: Schema.Struct<{
10813
10899
  readonly aggregateID: Schema.String;
10814
10900
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10815
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10901
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10816
10902
  }>;
10817
10903
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10818
10904
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10834,7 +10920,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10834
10920
  }>, never, never>;
10835
10921
  }>>, never, never>;
10836
10922
  readonly data: Schema.Struct<{
10837
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
10923
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
10838
10924
  readonly text: Schema.String;
10839
10925
  readonly recent: Schema.String;
10840
10926
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -10850,7 +10936,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10850
10936
  readonly aggregate: string;
10851
10937
  };
10852
10938
  data: Schema.Struct<{
10853
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
10939
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
10854
10940
  readonly text: Schema.String;
10855
10941
  readonly recent: Schema.String;
10856
10942
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -10868,7 +10954,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10868
10954
  readonly durable: Schema.Struct<{
10869
10955
  readonly aggregateID: Schema.String;
10870
10956
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10871
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10957
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10872
10958
  }>;
10873
10959
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10874
10960
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10890,7 +10976,19 @@ export declare const Definitions: readonly [Schema.Struct<{
10890
10976
  }>, never, never>;
10891
10977
  }>>, never, never>;
10892
10978
  readonly data: Schema.Struct<{
10893
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
10979
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
10980
+ readonly error: Schema.Struct<{
10981
+ readonly type: Schema.String;
10982
+ readonly message: Schema.String;
10983
+ }>;
10984
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
10985
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10986
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10987
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
10988
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10989
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10990
+ }>, never, never>;
10991
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10894
10992
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10895
10993
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
10896
10994
  };
@@ -10903,7 +11001,19 @@ export declare const Definitions: readonly [Schema.Struct<{
10903
11001
  readonly aggregate: string;
10904
11002
  };
10905
11003
  data: Schema.Struct<{
10906
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
11004
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
11005
+ readonly error: Schema.Struct<{
11006
+ readonly type: Schema.String;
11007
+ readonly message: Schema.String;
11008
+ }>;
11009
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
11010
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11011
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11012
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
11013
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11014
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11015
+ }>, never, never>;
11016
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10907
11017
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10908
11018
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
10909
11019
  };
@@ -10918,7 +11028,7 @@ export declare const Definitions: readonly [Schema.Struct<{
10918
11028
  readonly durable: Schema.Struct<{
10919
11029
  readonly aggregateID: Schema.String;
10920
11030
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10921
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11031
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10922
11032
  }>;
10923
11033
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10924
11034
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10946,20 +11056,19 @@ export declare const Definitions: readonly [Schema.Struct<{
10946
11056
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10947
11057
  };
10948
11058
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10949
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10950
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11059
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
10951
11060
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10952
- readonly path: Schema.brand<Schema.String, "RelativePath">;
10953
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
11061
+ readonly file: Schema.String;
11062
+ readonly patch: Schema.String;
10954
11063
  readonly additions: Schema.Int;
10955
11064
  readonly deletions: Schema.Int;
10956
- readonly patch: Schema.String;
11065
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
10957
11066
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
10958
- readonly path: Schema.brand<Schema.String, "RelativePath">;
10959
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
11067
+ readonly file: Schema.String;
11068
+ readonly patch: Schema.String;
10960
11069
  readonly additions: Schema.Int;
10961
11070
  readonly deletions: Schema.Int;
10962
- readonly patch: Schema.String;
11071
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
10963
11072
  }>>>, never, never>;
10964
11073
  }>;
10965
11074
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -10981,20 +11090,19 @@ export declare const Definitions: readonly [Schema.Struct<{
10981
11090
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10982
11091
  };
10983
11092
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10984
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10985
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11093
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
10986
11094
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10987
- readonly path: Schema.brand<Schema.String, "RelativePath">;
10988
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
11095
+ readonly file: Schema.String;
11096
+ readonly patch: Schema.String;
10989
11097
  readonly additions: Schema.Int;
10990
11098
  readonly deletions: Schema.Int;
10991
- readonly patch: Schema.String;
11099
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
10992
11100
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
10993
- readonly path: Schema.brand<Schema.String, "RelativePath">;
10994
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
11101
+ readonly file: Schema.String;
11102
+ readonly patch: Schema.String;
10995
11103
  readonly additions: Schema.Int;
10996
11104
  readonly deletions: Schema.Int;
10997
- readonly patch: Schema.String;
11105
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
10998
11106
  }>>>, never, never>;
10999
11107
  }>;
11000
11108
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -11012,7 +11120,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11012
11120
  readonly durable: Schema.Struct<{
11013
11121
  readonly aggregateID: Schema.String;
11014
11122
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11015
- 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>;
11016
11124
  }>;
11017
11125
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11018
11126
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11062,7 +11170,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11062
11170
  readonly durable: Schema.Struct<{
11063
11171
  readonly aggregateID: Schema.String;
11064
11172
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11065
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11173
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11066
11174
  }>;
11067
11175
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11068
11176
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11120,7 +11228,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11120
11228
  readonly durable: Schema.Struct<{
11121
11229
  readonly aggregateID: Schema.String;
11122
11230
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11123
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11231
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11124
11232
  }>;
11125
11233
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11126
11234
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11232,7 +11340,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11232
11340
  readonly title: Schema.String;
11233
11341
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11234
11342
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11235
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
11343
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11236
11344
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11237
11345
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11238
11346
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11248,7 +11356,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11248
11356
  };
11249
11357
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11250
11358
  }>>>, Schema.optionalKey<Schema.Struct<{
11251
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
11359
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11252
11360
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11253
11361
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11254
11362
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11404,7 +11512,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11404
11512
  readonly title: Schema.String;
11405
11513
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11406
11514
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11407
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
11515
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11408
11516
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11409
11517
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11410
11518
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11420,7 +11528,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11420
11528
  };
11421
11529
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11422
11530
  }>>>, Schema.optionalKey<Schema.Struct<{
11423
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
11531
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11424
11532
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11425
11533
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11426
11534
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11488,7 +11596,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11488
11596
  readonly durable: Schema.Struct<{
11489
11597
  readonly aggregateID: Schema.String;
11490
11598
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11491
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11599
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11492
11600
  }>;
11493
11601
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11494
11602
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11600,7 +11708,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11600
11708
  readonly title: Schema.String;
11601
11709
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11602
11710
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11603
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
11711
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11604
11712
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11605
11713
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11606
11714
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11616,7 +11724,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11616
11724
  };
11617
11725
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11618
11726
  }>>>, Schema.optionalKey<Schema.Struct<{
11619
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
11727
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11620
11728
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11621
11729
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11622
11730
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11772,7 +11880,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11772
11880
  readonly title: Schema.String;
11773
11881
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11774
11882
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11775
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
11883
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11776
11884
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11777
11885
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11778
11886
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11788,7 +11896,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11788
11896
  };
11789
11897
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11790
11898
  }>>>, Schema.optionalKey<Schema.Struct<{
11791
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
11899
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11792
11900
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11793
11901
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11794
11902
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11856,7 +11964,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11856
11964
  readonly durable: Schema.Struct<{
11857
11965
  readonly aggregateID: Schema.String;
11858
11966
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11859
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11967
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11860
11968
  }>;
11861
11969
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11862
11970
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11968,7 +12076,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11968
12076
  readonly title: Schema.String;
11969
12077
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11970
12078
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11971
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
12079
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11972
12080
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11973
12081
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11974
12082
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -11984,7 +12092,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11984
12092
  };
11985
12093
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11986
12094
  }>>>, Schema.optionalKey<Schema.Struct<{
11987
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
12095
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
11988
12096
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
11989
12097
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
11990
12098
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -12140,7 +12248,7 @@ export declare const Definitions: readonly [Schema.Struct<{
12140
12248
  readonly title: Schema.String;
12141
12249
  readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
12142
12250
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12143
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
12251
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
12144
12252
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
12145
12253
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12146
12254
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -12156,7 +12264,7 @@ export declare const Definitions: readonly [Schema.Struct<{
12156
12264
  };
12157
12265
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
12158
12266
  }>>>, Schema.optionalKey<Schema.Struct<{
12159
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
12267
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
12160
12268
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
12161
12269
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12162
12270
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -12224,7 +12332,7 @@ export declare const Definitions: readonly [Schema.Struct<{
12224
12332
  readonly durable: Schema.Struct<{
12225
12333
  readonly aggregateID: Schema.String;
12226
12334
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12227
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12335
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12228
12336
  }>;
12229
12337
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12230
12338
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12282,7 +12390,7 @@ export declare const Definitions: readonly [Schema.Struct<{
12282
12390
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12283
12391
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12284
12392
  };
12285
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
12393
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
12286
12394
  readonly variant: Schema.optional<Schema.String>;
12287
12395
  }>;
12288
12396
  readonly system: Schema.optional<Schema.String>;
@@ -12351,7 +12459,7 @@ export declare const Definitions: readonly [Schema.Struct<{
12351
12459
  readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
12352
12460
  ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
12353
12461
  };
12354
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
12462
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
12355
12463
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
12356
12464
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12357
12465
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -12439,7 +12547,7 @@ export declare const Definitions: readonly [Schema.Struct<{
12439
12547
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12440
12548
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12441
12549
  };
12442
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
12550
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
12443
12551
  readonly variant: Schema.optional<Schema.String>;
12444
12552
  }>;
12445
12553
  readonly system: Schema.optional<Schema.String>;
@@ -12508,7 +12616,7 @@ export declare const Definitions: readonly [Schema.Struct<{
12508
12616
  readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
12509
12617
  ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
12510
12618
  };
12511
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
12619
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
12512
12620
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
12513
12621
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12514
12622
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -12562,7 +12670,7 @@ export declare const Definitions: readonly [Schema.Struct<{
12562
12670
  readonly durable: Schema.Struct<{
12563
12671
  readonly aggregateID: Schema.String;
12564
12672
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12565
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12673
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12566
12674
  }>;
12567
12675
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12568
12676
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12618,7 +12726,7 @@ export declare const Definitions: readonly [Schema.Struct<{
12618
12726
  readonly durable: Schema.Struct<{
12619
12727
  readonly aggregateID: Schema.String;
12620
12728
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12621
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12729
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12622
12730
  }>;
12623
12731
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12624
12732
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12683,7 +12791,7 @@ export declare const Definitions: readonly [Schema.Struct<{
12683
12791
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12684
12792
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12685
12793
  };
12686
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
12794
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
12687
12795
  }>>;
12688
12796
  readonly command: Schema.optional<Schema.String>;
12689
12797
  readonly id: Schema.brand<Schema.String, "PartID"> & {
@@ -13050,7 +13158,7 @@ export declare const Definitions: readonly [Schema.Struct<{
13050
13158
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
13051
13159
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
13052
13160
  };
13053
- readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
13161
+ readonly modelID: Schema.brand<Schema.String, "Model.ID">;
13054
13162
  }>>;
13055
13163
  readonly command: Schema.optional<Schema.String>;
13056
13164
  readonly id: Schema.brand<Schema.String, "PartID"> & {
@@ -13376,7 +13484,7 @@ export declare const Definitions: readonly [Schema.Struct<{
13376
13484
  readonly durable: Schema.Struct<{
13377
13485
  readonly aggregateID: Schema.String;
13378
13486
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13379
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13487
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13380
13488
  }>;
13381
13489
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13382
13490
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14384,9 +14492,9 @@ export declare const Definitions: readonly [Schema.Struct<{
14384
14492
  }>>, never, never>;
14385
14493
  readonly data: Schema.Struct<{
14386
14494
  readonly info: Schema.Struct<{
14387
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
14388
- create: () => string & import("effect/Brand").Brand<"ShellID">;
14389
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
14495
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
14496
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
14497
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
14390
14498
  };
14391
14499
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
14392
14500
  readonly command: Schema.String;
@@ -14408,9 +14516,9 @@ export declare const Definitions: readonly [Schema.Struct<{
14408
14516
  durable: undefined;
14409
14517
  data: Schema.Struct<{
14410
14518
  readonly info: Schema.Struct<{
14411
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
14412
- create: () => string & import("effect/Brand").Brand<"ShellID">;
14413
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
14519
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
14520
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
14521
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
14414
14522
  };
14415
14523
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
14416
14524
  readonly command: Schema.String;
@@ -14453,9 +14561,9 @@ export declare const Definitions: readonly [Schema.Struct<{
14453
14561
  }>, never, never>;
14454
14562
  }>>, never, never>;
14455
14563
  readonly data: Schema.Struct<{
14456
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
14457
- create: () => string & import("effect/Brand").Brand<"ShellID">;
14458
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
14564
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
14565
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
14566
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
14459
14567
  };
14460
14568
  readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
14461
14569
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
@@ -14465,9 +14573,9 @@ export declare const Definitions: readonly [Schema.Struct<{
14465
14573
  durability: "ephemeral";
14466
14574
  durable: undefined;
14467
14575
  data: Schema.Struct<{
14468
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
14469
- create: () => string & import("effect/Brand").Brand<"ShellID">;
14470
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
14576
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
14577
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
14578
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
14471
14579
  };
14472
14580
  readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
14473
14581
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
@@ -14499,9 +14607,9 @@ export declare const Definitions: readonly [Schema.Struct<{
14499
14607
  }>, never, never>;
14500
14608
  }>>, never, never>;
14501
14609
  readonly data: Schema.Struct<{
14502
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
14503
- create: () => string & import("effect/Brand").Brand<"ShellID">;
14504
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
14610
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
14611
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
14612
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
14505
14613
  };
14506
14614
  }>;
14507
14615
  }> & {
@@ -14509,9 +14617,9 @@ export declare const Definitions: readonly [Schema.Struct<{
14509
14617
  durability: "ephemeral";
14510
14618
  durable: undefined;
14511
14619
  data: Schema.Struct<{
14512
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
14513
- create: () => string & import("effect/Brand").Brand<"ShellID">;
14514
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
14620
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
14621
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
14622
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
14515
14623
  };
14516
14624
  }>;
14517
14625
  }, Schema.Struct<{