@opencode-ai/schema 0.0.0-next-15090 → 0.0.0-next-15092
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +13 -9
- package/dist/agent.js +5 -2
- package/dist/command.d.ts +5 -5
- package/dist/command.js +3 -2
- package/dist/durable-event-manifest.d.ts +146 -96
- package/dist/event-manifest.d.ts +390 -282
- package/dist/event.d.ts +2 -1
- package/dist/event.js +12 -4
- package/dist/file-diff.d.ts +11 -1
- package/dist/file-diff.js +13 -5
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/model.d.ts +46 -30
- package/dist/model.js +10 -9
- package/dist/money.d.ts +10 -0
- package/dist/money.js +5 -0
- package/dist/session-event.d.ts +748 -486
- package/dist/session-event.js +30 -27
- package/dist/session-input.d.ts +6 -6
- package/dist/session-input.js +3 -3
- package/dist/session-message.d.ts +238 -619
- package/dist/session-message.js +57 -44
- package/dist/session-revert.d.ts +479 -0
- package/dist/session-revert.js +63 -0
- package/dist/session.d.ts +26 -22
- package/dist/session.js +9 -13
- package/dist/shell.d.ts +42 -42
- package/dist/shell.js +1 -1
- package/dist/skill.d.ts +16 -9
- package/dist/skill.js +14 -11
- package/dist/snapshot.d.ts +4 -0
- package/dist/snapshot.js +3 -0
- package/dist/token-usage.d.ts +13 -0
- package/dist/token-usage.js +11 -0
- package/dist/v1/session.d.ts +62 -62
- package/dist/v1/session.js +5 -5
- package/package.json +1 -1
- package/dist/revert.d.ts +0 -35
- package/dist/revert.js +0 -19
package/dist/v1/session.d.ts
CHANGED
|
@@ -408,7 +408,7 @@ export declare const SubtaskPart: Schema.Struct<{
|
|
|
408
408
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
409
409
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
410
410
|
};
|
|
411
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
411
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
412
412
|
}>>;
|
|
413
413
|
readonly command: Schema.optional<Schema.String>;
|
|
414
414
|
readonly id: Schema.brand<Schema.String, "PartID"> & {
|
|
@@ -816,7 +816,7 @@ export declare const User: Schema.Struct<{
|
|
|
816
816
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
817
817
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
818
818
|
};
|
|
819
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
819
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
820
820
|
readonly variant: Schema.optional<Schema.String>;
|
|
821
821
|
}>;
|
|
822
822
|
readonly system: Schema.optional<Schema.String>;
|
|
@@ -869,7 +869,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
|
|
|
869
869
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
870
870
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
871
871
|
};
|
|
872
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
872
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
873
873
|
}>>;
|
|
874
874
|
readonly command: Schema.optional<Schema.String>;
|
|
875
875
|
readonly id: Schema.brand<Schema.String, "PartID"> & {
|
|
@@ -1331,7 +1331,7 @@ export declare const SubtaskPartInput: Schema.Struct<{
|
|
|
1331
1331
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1332
1332
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1333
1333
|
};
|
|
1334
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
1334
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
1335
1335
|
}>>;
|
|
1336
1336
|
readonly command: Schema.optional<Schema.String>;
|
|
1337
1337
|
}>;
|
|
@@ -1393,7 +1393,7 @@ export declare const Assistant: Schema.Struct<{
|
|
|
1393
1393
|
readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
|
|
1394
1394
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
|
|
1395
1395
|
};
|
|
1396
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
1396
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
1397
1397
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1398
1398
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1399
1399
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1471,7 +1471,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1471
1471
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1472
1472
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1473
1473
|
};
|
|
1474
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
1474
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
1475
1475
|
readonly variant: Schema.optional<Schema.String>;
|
|
1476
1476
|
}>;
|
|
1477
1477
|
readonly system: Schema.optional<Schema.String>;
|
|
@@ -1540,7 +1540,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1540
1540
|
readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
|
|
1541
1541
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
|
|
1542
1542
|
};
|
|
1543
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
1543
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
1544
1544
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1545
1545
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1546
1546
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1617,7 +1617,7 @@ export declare const WithParts: Schema.Struct<{
|
|
|
1617
1617
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1618
1618
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1619
1619
|
};
|
|
1620
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
1620
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
1621
1621
|
readonly variant: Schema.optional<Schema.String>;
|
|
1622
1622
|
}>;
|
|
1623
1623
|
readonly system: Schema.optional<Schema.String>;
|
|
@@ -1686,7 +1686,7 @@ export declare const WithParts: Schema.Struct<{
|
|
|
1686
1686
|
readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
|
|
1687
1687
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
|
|
1688
1688
|
};
|
|
1689
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
1689
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
1690
1690
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1691
1691
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1692
1692
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1768,7 +1768,7 @@ export declare const WithParts: Schema.Struct<{
|
|
|
1768
1768
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1769
1769
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1770
1770
|
};
|
|
1771
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
1771
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
1772
1772
|
}>>;
|
|
1773
1773
|
readonly command: Schema.optional<Schema.String>;
|
|
1774
1774
|
readonly id: Schema.brand<Schema.String, "PartID"> & {
|
|
@@ -2173,7 +2173,7 @@ export declare const SessionInfo: Schema.Struct<{
|
|
|
2173
2173
|
readonly title: Schema.String;
|
|
2174
2174
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2175
2175
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2176
|
-
readonly id: Schema.brand<Schema.String, "
|
|
2176
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2177
2177
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
2178
2178
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2179
2179
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -2189,7 +2189,7 @@ export declare const SessionInfo: Schema.Struct<{
|
|
|
2189
2189
|
};
|
|
2190
2190
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2191
2191
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2192
|
-
readonly id: Schema.brand<Schema.String, "
|
|
2192
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2193
2193
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
2194
2194
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2195
2195
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -2768,7 +2768,7 @@ export declare const Event: {
|
|
|
2768
2768
|
readonly durable: Schema.Struct<{
|
|
2769
2769
|
readonly aggregateID: Schema.String;
|
|
2770
2770
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2771
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2771
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2772
2772
|
}>;
|
|
2773
2773
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2774
2774
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -2880,7 +2880,7 @@ export declare const Event: {
|
|
|
2880
2880
|
readonly title: Schema.String;
|
|
2881
2881
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2882
2882
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2883
|
-
readonly id: Schema.brand<Schema.String, "
|
|
2883
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2884
2884
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
2885
2885
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2886
2886
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -2896,7 +2896,7 @@ export declare const Event: {
|
|
|
2896
2896
|
};
|
|
2897
2897
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2898
2898
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2899
|
-
readonly id: Schema.brand<Schema.String, "
|
|
2899
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2900
2900
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
2901
2901
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2902
2902
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3052,7 +3052,7 @@ export declare const Event: {
|
|
|
3052
3052
|
readonly title: Schema.String;
|
|
3053
3053
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3054
3054
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3055
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3055
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3056
3056
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3057
3057
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3058
3058
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3068,7 +3068,7 @@ export declare const Event: {
|
|
|
3068
3068
|
};
|
|
3069
3069
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3070
3070
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3071
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3071
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3072
3072
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3073
3073
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3074
3074
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3136,7 +3136,7 @@ export declare const Event: {
|
|
|
3136
3136
|
readonly durable: Schema.Struct<{
|
|
3137
3137
|
readonly aggregateID: Schema.String;
|
|
3138
3138
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3139
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3139
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3140
3140
|
}>;
|
|
3141
3141
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3142
3142
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3248,7 +3248,7 @@ export declare const Event: {
|
|
|
3248
3248
|
readonly title: Schema.String;
|
|
3249
3249
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3250
3250
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3251
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3251
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3252
3252
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3253
3253
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3254
3254
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3264,7 +3264,7 @@ export declare const Event: {
|
|
|
3264
3264
|
};
|
|
3265
3265
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3266
3266
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3267
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3267
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3268
3268
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3269
3269
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3270
3270
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3420,7 +3420,7 @@ export declare const Event: {
|
|
|
3420
3420
|
readonly title: Schema.String;
|
|
3421
3421
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3422
3422
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3423
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3423
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3424
3424
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3425
3425
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3426
3426
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3436,7 +3436,7 @@ export declare const Event: {
|
|
|
3436
3436
|
};
|
|
3437
3437
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3438
3438
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3439
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3439
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3440
3440
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3441
3441
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3442
3442
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3504,7 +3504,7 @@ export declare const Event: {
|
|
|
3504
3504
|
readonly durable: Schema.Struct<{
|
|
3505
3505
|
readonly aggregateID: Schema.String;
|
|
3506
3506
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3507
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3507
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3508
3508
|
}>;
|
|
3509
3509
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3510
3510
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3616,7 +3616,7 @@ export declare const Event: {
|
|
|
3616
3616
|
readonly title: Schema.String;
|
|
3617
3617
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3618
3618
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3619
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3619
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3620
3620
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3621
3621
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3622
3622
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3632,7 +3632,7 @@ export declare const Event: {
|
|
|
3632
3632
|
};
|
|
3633
3633
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3634
3634
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3635
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3635
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3636
3636
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3637
3637
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3638
3638
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3788,7 +3788,7 @@ export declare const Event: {
|
|
|
3788
3788
|
readonly title: Schema.String;
|
|
3789
3789
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3790
3790
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3791
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3791
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3792
3792
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3793
3793
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3794
3794
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3804,7 +3804,7 @@ export declare const Event: {
|
|
|
3804
3804
|
};
|
|
3805
3805
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3806
3806
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3807
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3807
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3808
3808
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3809
3809
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3810
3810
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3872,7 +3872,7 @@ export declare const Event: {
|
|
|
3872
3872
|
readonly durable: Schema.Struct<{
|
|
3873
3873
|
readonly aggregateID: Schema.String;
|
|
3874
3874
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3875
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3875
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3876
3876
|
}>;
|
|
3877
3877
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3878
3878
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3930,7 +3930,7 @@ export declare const Event: {
|
|
|
3930
3930
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3931
3931
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3932
3932
|
};
|
|
3933
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
3933
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
3934
3934
|
readonly variant: Schema.optional<Schema.String>;
|
|
3935
3935
|
}>;
|
|
3936
3936
|
readonly system: Schema.optional<Schema.String>;
|
|
@@ -3999,7 +3999,7 @@ export declare const Event: {
|
|
|
3999
3999
|
readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
|
|
4000
4000
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
|
|
4001
4001
|
};
|
|
4002
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
4002
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
4003
4003
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
4004
4004
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4005
4005
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -4087,7 +4087,7 @@ export declare const Event: {
|
|
|
4087
4087
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4088
4088
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4089
4089
|
};
|
|
4090
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
4090
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
4091
4091
|
readonly variant: Schema.optional<Schema.String>;
|
|
4092
4092
|
}>;
|
|
4093
4093
|
readonly system: Schema.optional<Schema.String>;
|
|
@@ -4156,7 +4156,7 @@ export declare const Event: {
|
|
|
4156
4156
|
readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
|
|
4157
4157
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
|
|
4158
4158
|
};
|
|
4159
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
4159
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
4160
4160
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
4161
4161
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4162
4162
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -4210,7 +4210,7 @@ export declare const Event: {
|
|
|
4210
4210
|
readonly durable: Schema.Struct<{
|
|
4211
4211
|
readonly aggregateID: Schema.String;
|
|
4212
4212
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4213
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4213
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4214
4214
|
}>;
|
|
4215
4215
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4216
4216
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4266,7 +4266,7 @@ export declare const Event: {
|
|
|
4266
4266
|
readonly durable: Schema.Struct<{
|
|
4267
4267
|
readonly aggregateID: Schema.String;
|
|
4268
4268
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4269
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4269
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4270
4270
|
}>;
|
|
4271
4271
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4272
4272
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4331,7 +4331,7 @@ export declare const Event: {
|
|
|
4331
4331
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4332
4332
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4333
4333
|
};
|
|
4334
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
4334
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
4335
4335
|
}>>;
|
|
4336
4336
|
readonly command: Schema.optional<Schema.String>;
|
|
4337
4337
|
readonly id: Schema.brand<Schema.String, "PartID"> & {
|
|
@@ -4698,7 +4698,7 @@ export declare const Event: {
|
|
|
4698
4698
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4699
4699
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4700
4700
|
};
|
|
4701
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
4701
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
4702
4702
|
}>>;
|
|
4703
4703
|
readonly command: Schema.optional<Schema.String>;
|
|
4704
4704
|
readonly id: Schema.brand<Schema.String, "PartID"> & {
|
|
@@ -5024,7 +5024,7 @@ export declare const Event: {
|
|
|
5024
5024
|
readonly durable: Schema.Struct<{
|
|
5025
5025
|
readonly aggregateID: Schema.String;
|
|
5026
5026
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
5027
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
5027
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
5028
5028
|
}>;
|
|
5029
5029
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5030
5030
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -5339,7 +5339,7 @@ export declare const Event: {
|
|
|
5339
5339
|
readonly durable: Schema.Struct<{
|
|
5340
5340
|
readonly aggregateID: Schema.String;
|
|
5341
5341
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
5342
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
5342
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
5343
5343
|
}>;
|
|
5344
5344
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5345
5345
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -5451,7 +5451,7 @@ export declare const Event: {
|
|
|
5451
5451
|
readonly title: Schema.String;
|
|
5452
5452
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5453
5453
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5454
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5454
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
5455
5455
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
5456
5456
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5457
5457
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -5467,7 +5467,7 @@ export declare const Event: {
|
|
|
5467
5467
|
};
|
|
5468
5468
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5469
5469
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5470
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5470
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
5471
5471
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
5472
5472
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5473
5473
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -5623,7 +5623,7 @@ export declare const Event: {
|
|
|
5623
5623
|
readonly title: Schema.String;
|
|
5624
5624
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5625
5625
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5626
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5626
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
5627
5627
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
5628
5628
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5629
5629
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -5639,7 +5639,7 @@ export declare const Event: {
|
|
|
5639
5639
|
};
|
|
5640
5640
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5641
5641
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5642
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5642
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
5643
5643
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
5644
5644
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5645
5645
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -5708,7 +5708,7 @@ export declare const Event: {
|
|
|
5708
5708
|
readonly durable: Schema.Struct<{
|
|
5709
5709
|
readonly aggregateID: Schema.String;
|
|
5710
5710
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
5711
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
5711
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
5712
5712
|
}>;
|
|
5713
5713
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5714
5714
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -5820,7 +5820,7 @@ export declare const Event: {
|
|
|
5820
5820
|
readonly title: Schema.String;
|
|
5821
5821
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5822
5822
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5823
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5823
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
5824
5824
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
5825
5825
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5826
5826
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -5836,7 +5836,7 @@ export declare const Event: {
|
|
|
5836
5836
|
};
|
|
5837
5837
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5838
5838
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5839
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5839
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
5840
5840
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
5841
5841
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5842
5842
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -5992,7 +5992,7 @@ export declare const Event: {
|
|
|
5992
5992
|
readonly title: Schema.String;
|
|
5993
5993
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5994
5994
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5995
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5995
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
5996
5996
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
5997
5997
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5998
5998
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -6008,7 +6008,7 @@ export declare const Event: {
|
|
|
6008
6008
|
};
|
|
6009
6009
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6010
6010
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6011
|
-
readonly id: Schema.brand<Schema.String, "
|
|
6011
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
6012
6012
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
6013
6013
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6014
6014
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -6077,7 +6077,7 @@ export declare const Event: {
|
|
|
6077
6077
|
readonly durable: Schema.Struct<{
|
|
6078
6078
|
readonly aggregateID: Schema.String;
|
|
6079
6079
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
6080
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
6080
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
6081
6081
|
}>;
|
|
6082
6082
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6083
6083
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -6189,7 +6189,7 @@ export declare const Event: {
|
|
|
6189
6189
|
readonly title: Schema.String;
|
|
6190
6190
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6191
6191
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6192
|
-
readonly id: Schema.brand<Schema.String, "
|
|
6192
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
6193
6193
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
6194
6194
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6195
6195
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -6205,7 +6205,7 @@ export declare const Event: {
|
|
|
6205
6205
|
};
|
|
6206
6206
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6207
6207
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6208
|
-
readonly id: Schema.brand<Schema.String, "
|
|
6208
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
6209
6209
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
6210
6210
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6211
6211
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -6361,7 +6361,7 @@ export declare const Event: {
|
|
|
6361
6361
|
readonly title: Schema.String;
|
|
6362
6362
|
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6363
6363
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6364
|
-
readonly id: Schema.brand<Schema.String, "
|
|
6364
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
6365
6365
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
6366
6366
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6367
6367
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -6377,7 +6377,7 @@ export declare const Event: {
|
|
|
6377
6377
|
};
|
|
6378
6378
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6379
6379
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6380
|
-
readonly id: Schema.brand<Schema.String, "
|
|
6380
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
6381
6381
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
6382
6382
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6383
6383
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -6446,7 +6446,7 @@ export declare const Event: {
|
|
|
6446
6446
|
readonly durable: Schema.Struct<{
|
|
6447
6447
|
readonly aggregateID: Schema.String;
|
|
6448
6448
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
6449
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
6449
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
6450
6450
|
}>;
|
|
6451
6451
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6452
6452
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -6504,7 +6504,7 @@ export declare const Event: {
|
|
|
6504
6504
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6505
6505
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6506
6506
|
};
|
|
6507
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
6507
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
6508
6508
|
readonly variant: Schema.optional<Schema.String>;
|
|
6509
6509
|
}>;
|
|
6510
6510
|
readonly system: Schema.optional<Schema.String>;
|
|
@@ -6573,7 +6573,7 @@ export declare const Event: {
|
|
|
6573
6573
|
readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
|
|
6574
6574
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
|
|
6575
6575
|
};
|
|
6576
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
6576
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
6577
6577
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
6578
6578
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6579
6579
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -6661,7 +6661,7 @@ export declare const Event: {
|
|
|
6661
6661
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6662
6662
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6663
6663
|
};
|
|
6664
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
6664
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
6665
6665
|
readonly variant: Schema.optional<Schema.String>;
|
|
6666
6666
|
}>;
|
|
6667
6667
|
readonly system: Schema.optional<Schema.String>;
|
|
@@ -6730,7 +6730,7 @@ export declare const Event: {
|
|
|
6730
6730
|
readonly parentID: Schema.brand<Schema.String, "MessageID"> & {
|
|
6731
6731
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
|
|
6732
6732
|
};
|
|
6733
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
6733
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
6734
6734
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
6735
6735
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6736
6736
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -6785,7 +6785,7 @@ export declare const Event: {
|
|
|
6785
6785
|
readonly durable: Schema.Struct<{
|
|
6786
6786
|
readonly aggregateID: Schema.String;
|
|
6787
6787
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
6788
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
6788
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
6789
6789
|
}>;
|
|
6790
6790
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6791
6791
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -6842,7 +6842,7 @@ export declare const Event: {
|
|
|
6842
6842
|
readonly durable: Schema.Struct<{
|
|
6843
6843
|
readonly aggregateID: Schema.String;
|
|
6844
6844
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
6845
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
6845
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
6846
6846
|
}>;
|
|
6847
6847
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6848
6848
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -6907,7 +6907,7 @@ export declare const Event: {
|
|
|
6907
6907
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6908
6908
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6909
6909
|
};
|
|
6910
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
6910
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
6911
6911
|
}>>;
|
|
6912
6912
|
readonly command: Schema.optional<Schema.String>;
|
|
6913
6913
|
readonly id: Schema.brand<Schema.String, "PartID"> & {
|
|
@@ -7274,7 +7274,7 @@ export declare const Event: {
|
|
|
7274
7274
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
7275
7275
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
7276
7276
|
};
|
|
7277
|
-
readonly modelID: Schema.brand<Schema.String, "
|
|
7277
|
+
readonly modelID: Schema.brand<Schema.String, "Model.ID">;
|
|
7278
7278
|
}>>;
|
|
7279
7279
|
readonly command: Schema.optional<Schema.String>;
|
|
7280
7280
|
readonly id: Schema.brand<Schema.String, "PartID"> & {
|
|
@@ -7601,7 +7601,7 @@ export declare const Event: {
|
|
|
7601
7601
|
readonly durable: Schema.Struct<{
|
|
7602
7602
|
readonly aggregateID: Schema.String;
|
|
7603
7603
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
7604
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
7604
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
7605
7605
|
}>;
|
|
7606
7606
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7607
7607
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
package/dist/v1/session.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * as SessionV1 from "./session.js";
|
|
2
2
|
import { Effect, Schema, Types } from "effect";
|
|
3
3
|
import { durable, ephemeral, inventory } from "../event.js";
|
|
4
|
-
import { FileDiff } from "../file-diff.js";
|
|
5
4
|
import { Project } from "../project.js";
|
|
6
5
|
import { Provider } from "../provider.js";
|
|
7
6
|
import { Model } from "../model.js";
|
|
@@ -10,6 +9,7 @@ import { ascending } from "../identifier.js";
|
|
|
10
9
|
import { SessionID } from "../session-id.js";
|
|
11
10
|
import { WorkspaceID } from "../workspace-id.js";
|
|
12
11
|
import { PermissionV1 } from "./permission.js";
|
|
12
|
+
import { FileDiff } from "../file-diff.js";
|
|
13
13
|
const Timestamp = Schema.Finite.check(Schema.isGreaterThanOrEqualTo(0));
|
|
14
14
|
export const MessageID = Schema.String.check(Schema.isStartsWith("msg")).pipe(Schema.brand("MessageID"), statics((schema) => ({ ascending: (id) => schema.make(id ?? "msg_" + ascending()) })));
|
|
15
15
|
export const PartID = Schema.String.check(Schema.isStartsWith("prt")).pipe(Schema.brand("PartID"), statics((schema) => ({ ascending: (id) => schema.make(id ?? "prt_" + ascending()) })));
|
|
@@ -266,7 +266,7 @@ export const User = Schema.Struct({
|
|
|
266
266
|
summary: Schema.optional(Schema.Struct({
|
|
267
267
|
title: Schema.optional(Schema.String),
|
|
268
268
|
body: Schema.optional(Schema.String),
|
|
269
|
-
diffs: Schema.Array(FileDiff.
|
|
269
|
+
diffs: Schema.Array(FileDiff.LegacyInfo),
|
|
270
270
|
})),
|
|
271
271
|
agent: Schema.String,
|
|
272
272
|
model: Schema.Struct({
|
|
@@ -391,7 +391,7 @@ const SessionSummary = Schema.Struct({
|
|
|
391
391
|
additions: Schema.Finite,
|
|
392
392
|
deletions: Schema.Finite,
|
|
393
393
|
files: Schema.Finite,
|
|
394
|
-
diffs: optional(Schema.Array(FileDiff.
|
|
394
|
+
diffs: optional(Schema.Array(FileDiff.LegacyInfo)),
|
|
395
395
|
});
|
|
396
396
|
const SessionTokens = Schema.Struct({
|
|
397
397
|
input: Schema.Finite,
|
|
@@ -441,7 +441,7 @@ export const SessionInfo = Schema.Struct({
|
|
|
441
441
|
}),
|
|
442
442
|
permission: optional(PermissionV1.Ruleset),
|
|
443
443
|
revert: optional(SessionRevert),
|
|
444
|
-
}).annotate({ identifier: "
|
|
444
|
+
}).annotate({ identifier: "SessionV1.Info" });
|
|
445
445
|
const events = {
|
|
446
446
|
Created: durable({
|
|
447
447
|
type: "session.created",
|
|
@@ -516,7 +516,7 @@ export const Diff = ephemeral({
|
|
|
516
516
|
type: "session.diff",
|
|
517
517
|
schema: {
|
|
518
518
|
sessionID: SessionID,
|
|
519
|
-
diff: Schema.Array(FileDiff.
|
|
519
|
+
diff: Schema.Array(FileDiff.LegacyInfo),
|
|
520
520
|
},
|
|
521
521
|
});
|
|
522
522
|
export const Error = ephemeral({
|