@opencode-ai/schema 0.0.0-next-15181 → 0.0.0-next-15183
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 +14 -2
- package/dist/command.d.ts +14 -2
- package/dist/durable-event-manifest.d.ts +28 -4
- package/dist/event-manifest.d.ts +56 -8
- package/dist/model.d.ts +7 -1
- package/dist/model.js +20 -1
- package/dist/session-event.d.ts +140 -20
- package/dist/session-message.d.ts +56 -8
- package/dist/session.d.ts +14 -2
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -27,7 +27,13 @@ export declare const Info: Schema.Struct<{
|
|
|
27
27
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
28
28
|
};
|
|
29
29
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
30
|
-
}
|
|
30
|
+
}> & {
|
|
31
|
+
parse: (input: string) => {
|
|
32
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
33
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
34
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
35
|
+
};
|
|
36
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
31
37
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
32
38
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
33
39
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -43,7 +49,13 @@ export declare const Info: Schema.Struct<{
|
|
|
43
49
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
44
50
|
};
|
|
45
51
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
46
|
-
}
|
|
52
|
+
}> & {
|
|
53
|
+
parse: (input: string) => {
|
|
54
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
55
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
56
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
57
|
+
};
|
|
58
|
+
}>, never, never>;
|
|
47
59
|
readonly request: Schema.Struct<{
|
|
48
60
|
readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
49
61
|
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
package/dist/command.d.ts
CHANGED
|
@@ -23,7 +23,13 @@ export declare const Info: Schema.Struct<{
|
|
|
23
23
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
24
24
|
};
|
|
25
25
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
26
|
-
}
|
|
26
|
+
}> & {
|
|
27
|
+
parse: (input: string) => {
|
|
28
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
29
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
30
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
31
|
+
};
|
|
32
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
27
33
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
28
34
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
29
35
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -39,7 +45,13 @@ export declare const Info: Schema.Struct<{
|
|
|
39
45
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
40
46
|
};
|
|
41
47
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
42
|
-
}
|
|
48
|
+
}> & {
|
|
49
|
+
parse: (input: string) => {
|
|
50
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
51
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
52
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
53
|
+
};
|
|
54
|
+
}>, never, never>;
|
|
43
55
|
readonly subtask: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
44
56
|
}>;
|
|
45
57
|
export declare const Event: {
|
|
@@ -103,7 +103,13 @@ export declare const SessionDurable: {
|
|
|
103
103
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
104
104
|
};
|
|
105
105
|
readonly variant: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>, never, never>;
|
|
106
|
-
}
|
|
106
|
+
}> & {
|
|
107
|
+
parse: (input: string) => {
|
|
108
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
109
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
110
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
107
113
|
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
108
114
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
109
115
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -133,7 +139,13 @@ export declare const SessionDurable: {
|
|
|
133
139
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
134
140
|
};
|
|
135
141
|
readonly variant: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>, never, never>;
|
|
136
|
-
}
|
|
142
|
+
}> & {
|
|
143
|
+
parse: (input: string) => {
|
|
144
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
145
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
146
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
137
149
|
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
138
150
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
139
151
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1344,7 +1356,13 @@ export declare const SessionDurable: {
|
|
|
1344
1356
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1345
1357
|
};
|
|
1346
1358
|
readonly variant: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>, never, never>;
|
|
1347
|
-
}
|
|
1359
|
+
}> & {
|
|
1360
|
+
parse: (input: string) => {
|
|
1361
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1362
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1363
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1364
|
+
};
|
|
1365
|
+
};
|
|
1348
1366
|
readonly snapshot: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>, never, never>;
|
|
1349
1367
|
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
1350
1368
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1380,7 +1398,13 @@ export declare const SessionDurable: {
|
|
|
1380
1398
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1381
1399
|
};
|
|
1382
1400
|
readonly variant: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>, never, never>;
|
|
1383
|
-
}
|
|
1401
|
+
}> & {
|
|
1402
|
+
parse: (input: string) => {
|
|
1403
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1404
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1405
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1406
|
+
};
|
|
1407
|
+
};
|
|
1384
1408
|
readonly snapshot: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>, never, never>;
|
|
1385
1409
|
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
1386
1410
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -2586,7 +2586,13 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2586
2586
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2587
2587
|
};
|
|
2588
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
|
+
parse: (input: string) => {
|
|
2591
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2592
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2593
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2594
|
+
};
|
|
2595
|
+
};
|
|
2590
2596
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2591
2597
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2592
2598
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2616,7 +2622,13 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2616
2622
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2617
2623
|
};
|
|
2618
2624
|
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
|
-
}
|
|
2625
|
+
}> & {
|
|
2626
|
+
parse: (input: string) => {
|
|
2627
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2628
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2629
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2620
2632
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2621
2633
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2622
2634
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3893,7 +3905,13 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3893
3905
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3894
3906
|
};
|
|
3895
3907
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
3896
|
-
}
|
|
3908
|
+
}> & {
|
|
3909
|
+
parse: (input: string) => {
|
|
3910
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
3911
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3912
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
3913
|
+
};
|
|
3914
|
+
};
|
|
3897
3915
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
3898
3916
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3899
3917
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3929,7 +3947,13 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3929
3947
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3930
3948
|
};
|
|
3931
3949
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
3932
|
-
}
|
|
3950
|
+
}> & {
|
|
3951
|
+
parse: (input: string) => {
|
|
3952
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
3953
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3954
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
3955
|
+
};
|
|
3956
|
+
};
|
|
3933
3957
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
3934
3958
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3935
3959
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8080,7 +8104,13 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
8080
8104
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
8081
8105
|
};
|
|
8082
8106
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
8083
|
-
}
|
|
8107
|
+
}> & {
|
|
8108
|
+
parse: (input: string) => {
|
|
8109
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
8110
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
8111
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
8112
|
+
};
|
|
8113
|
+
};
|
|
8084
8114
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8085
8115
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8086
8116
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8110,7 +8140,13 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
8110
8140
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
8111
8141
|
};
|
|
8112
8142
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
8113
|
-
}
|
|
8143
|
+
}> & {
|
|
8144
|
+
parse: (input: string) => {
|
|
8145
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
8146
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
8147
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
8148
|
+
};
|
|
8149
|
+
};
|
|
8114
8150
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8115
8151
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8116
8152
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -9387,7 +9423,13 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9387
9423
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
9388
9424
|
};
|
|
9389
9425
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
9390
|
-
}
|
|
9426
|
+
}> & {
|
|
9427
|
+
parse: (input: string) => {
|
|
9428
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
9429
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
9430
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
9431
|
+
};
|
|
9432
|
+
};
|
|
9391
9433
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
9392
9434
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9393
9435
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -9423,7 +9465,13 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9423
9465
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
9424
9466
|
};
|
|
9425
9467
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
9426
|
-
}
|
|
9468
|
+
}> & {
|
|
9469
|
+
parse: (input: string) => {
|
|
9470
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
9471
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
9472
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
9473
|
+
};
|
|
9474
|
+
};
|
|
9427
9475
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
9428
9476
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9429
9477
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/model.d.ts
CHANGED
|
@@ -21,7 +21,13 @@ export declare const Ref: Schema.Struct<{
|
|
|
21
21
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
22
22
|
};
|
|
23
23
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
24
|
-
}
|
|
24
|
+
}> & {
|
|
25
|
+
parse: (input: string) => {
|
|
26
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
27
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
28
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
25
31
|
export interface Ref extends Schema.Schema.Type<typeof Ref> {
|
|
26
32
|
}
|
|
27
33
|
export declare const Family: Schema.brand<Schema.String, "Model.Family">;
|
package/dist/model.js
CHANGED
|
@@ -9,7 +9,26 @@ export const Ref = Schema.Struct({
|
|
|
9
9
|
id: ID,
|
|
10
10
|
providerID: Provider.ID,
|
|
11
11
|
variant: VariantID.pipe(optional),
|
|
12
|
-
})
|
|
12
|
+
})
|
|
13
|
+
.annotate({ identifier: "Model.Ref" })
|
|
14
|
+
.pipe(statics((schema) => ({
|
|
15
|
+
parse: (input) => {
|
|
16
|
+
const providerEnd = input.indexOf("/");
|
|
17
|
+
if (providerEnd <= 0)
|
|
18
|
+
throw new Error(`Invalid model reference: ${input}`);
|
|
19
|
+
const providerID = input.slice(0, providerEnd);
|
|
20
|
+
const variantStart = input.indexOf("#", providerEnd + 1);
|
|
21
|
+
const id = input.slice(providerEnd + 1, variantStart === -1 ? undefined : variantStart);
|
|
22
|
+
const variant = variantStart === -1 ? undefined : input.slice(variantStart + 1);
|
|
23
|
+
if (!id || providerID.includes("#") || (variant !== undefined && (!variant || variant.includes("#"))))
|
|
24
|
+
throw new Error(`Invalid model reference: ${input}`);
|
|
25
|
+
return schema.make({
|
|
26
|
+
providerID: Provider.ID.make(providerID),
|
|
27
|
+
id: ID.make(id),
|
|
28
|
+
...(variant ? { variant: VariantID.make(variant) } : {}),
|
|
29
|
+
});
|
|
30
|
+
},
|
|
31
|
+
})));
|
|
13
32
|
export const Family = Schema.String.pipe(Schema.brand("Model.Family"));
|
|
14
33
|
export const Capabilities = Schema.Struct({
|
|
15
34
|
tools: Schema.Boolean,
|
package/dist/session-event.d.ts
CHANGED
|
@@ -112,7 +112,13 @@ export declare const ModelSelected: Schema.Struct<{
|
|
|
112
112
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
113
113
|
};
|
|
114
114
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
115
|
-
}
|
|
115
|
+
}> & {
|
|
116
|
+
parse: (input: string) => {
|
|
117
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
118
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
119
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
116
122
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
117
123
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
118
124
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -142,7 +148,13 @@ export declare const ModelSelected: Schema.Struct<{
|
|
|
142
148
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
143
149
|
};
|
|
144
150
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
145
|
-
}
|
|
151
|
+
}> & {
|
|
152
|
+
parse: (input: string) => {
|
|
153
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
154
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
155
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
146
158
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
147
159
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
148
160
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1460,7 +1472,13 @@ export declare namespace Step {
|
|
|
1460
1472
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1461
1473
|
};
|
|
1462
1474
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1463
|
-
}
|
|
1475
|
+
}> & {
|
|
1476
|
+
parse: (input: string) => {
|
|
1477
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1478
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1479
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1480
|
+
};
|
|
1481
|
+
};
|
|
1464
1482
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1465
1483
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1466
1484
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1496,7 +1514,13 @@ export declare namespace Step {
|
|
|
1496
1514
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1497
1515
|
};
|
|
1498
1516
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1499
|
-
}
|
|
1517
|
+
}> & {
|
|
1518
|
+
parse: (input: string) => {
|
|
1519
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1520
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1521
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1500
1524
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1501
1525
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1502
1526
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3275,7 +3299,13 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
3275
3299
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3276
3300
|
};
|
|
3277
3301
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
3278
|
-
}
|
|
3302
|
+
}> & {
|
|
3303
|
+
parse: (input: string) => {
|
|
3304
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
3305
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3306
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
3307
|
+
};
|
|
3308
|
+
};
|
|
3279
3309
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3280
3310
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3281
3311
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3305,7 +3335,13 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
3305
3335
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3306
3336
|
};
|
|
3307
3337
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
3308
|
-
}
|
|
3338
|
+
}> & {
|
|
3339
|
+
parse: (input: string) => {
|
|
3340
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
3341
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3342
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
3343
|
+
};
|
|
3344
|
+
};
|
|
3309
3345
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3310
3346
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3311
3347
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4582,7 +4618,13 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
4582
4618
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4583
4619
|
};
|
|
4584
4620
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
4585
|
-
}
|
|
4621
|
+
}> & {
|
|
4622
|
+
parse: (input: string) => {
|
|
4623
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
4624
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4625
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
4626
|
+
};
|
|
4627
|
+
};
|
|
4586
4628
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
4587
4629
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4588
4630
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4618,7 +4660,13 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
4618
4660
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4619
4661
|
};
|
|
4620
4662
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
4621
|
-
}
|
|
4663
|
+
}> & {
|
|
4664
|
+
parse: (input: string) => {
|
|
4665
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
4666
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4667
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
4668
|
+
};
|
|
4669
|
+
};
|
|
4622
4670
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
4623
4671
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4624
4672
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -6334,7 +6382,13 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
6334
6382
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6335
6383
|
};
|
|
6336
6384
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
6337
|
-
}
|
|
6385
|
+
}> & {
|
|
6386
|
+
parse: (input: string) => {
|
|
6387
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
6388
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6389
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
6390
|
+
};
|
|
6391
|
+
};
|
|
6338
6392
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6339
6393
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6340
6394
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -6364,7 +6418,13 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
6364
6418
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6365
6419
|
};
|
|
6366
6420
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
6367
|
-
}
|
|
6421
|
+
}> & {
|
|
6422
|
+
parse: (input: string) => {
|
|
6423
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
6424
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6425
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
6426
|
+
};
|
|
6427
|
+
};
|
|
6368
6428
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6369
6429
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6370
6430
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -7575,7 +7635,13 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
7575
7635
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
7576
7636
|
};
|
|
7577
7637
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
7578
|
-
}
|
|
7638
|
+
}> & {
|
|
7639
|
+
parse: (input: string) => {
|
|
7640
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
7641
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
7642
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
7643
|
+
};
|
|
7644
|
+
};
|
|
7579
7645
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
7580
7646
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7581
7647
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -7611,7 +7677,13 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
7611
7677
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
7612
7678
|
};
|
|
7613
7679
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
7614
|
-
}
|
|
7680
|
+
}> & {
|
|
7681
|
+
parse: (input: string) => {
|
|
7682
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
7683
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
7684
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
7685
|
+
};
|
|
7686
|
+
};
|
|
7615
7687
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
7616
7688
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7617
7689
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -9121,7 +9193,13 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
|
|
|
9121
9193
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
9122
9194
|
};
|
|
9123
9195
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
9124
|
-
}
|
|
9196
|
+
}> & {
|
|
9197
|
+
parse: (input: string) => {
|
|
9198
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
9199
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
9200
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
9201
|
+
};
|
|
9202
|
+
};
|
|
9125
9203
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9126
9204
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9127
9205
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -9151,7 +9229,13 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
|
|
|
9151
9229
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
9152
9230
|
};
|
|
9153
9231
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
9154
|
-
}
|
|
9232
|
+
}> & {
|
|
9233
|
+
parse: (input: string) => {
|
|
9234
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
9235
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
9236
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
9237
|
+
};
|
|
9238
|
+
};
|
|
9155
9239
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9156
9240
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9157
9241
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -10362,7 +10446,13 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
|
|
|
10362
10446
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
10363
10447
|
};
|
|
10364
10448
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
10365
|
-
}
|
|
10449
|
+
}> & {
|
|
10450
|
+
parse: (input: string) => {
|
|
10451
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
10452
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
10453
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
10454
|
+
};
|
|
10455
|
+
};
|
|
10366
10456
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
10367
10457
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
10368
10458
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -10398,7 +10488,13 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
|
|
|
10398
10488
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
10399
10489
|
};
|
|
10400
10490
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
10401
|
-
}
|
|
10491
|
+
}> & {
|
|
10492
|
+
parse: (input: string) => {
|
|
10493
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
10494
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
10495
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
10496
|
+
};
|
|
10497
|
+
};
|
|
10402
10498
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
10403
10499
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
10404
10500
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -11909,7 +12005,13 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
11909
12005
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
11910
12006
|
};
|
|
11911
12007
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
11912
|
-
}
|
|
12008
|
+
}> & {
|
|
12009
|
+
parse: (input: string) => {
|
|
12010
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
12011
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
12012
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
12013
|
+
};
|
|
12014
|
+
};
|
|
11913
12015
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11914
12016
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11915
12017
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -11939,7 +12041,13 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
11939
12041
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
11940
12042
|
};
|
|
11941
12043
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
11942
|
-
}
|
|
12044
|
+
}> & {
|
|
12045
|
+
parse: (input: string) => {
|
|
12046
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
12047
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
12048
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
12049
|
+
};
|
|
12050
|
+
};
|
|
11943
12051
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11944
12052
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11945
12053
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -13216,7 +13324,13 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
13216
13324
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
13217
13325
|
};
|
|
13218
13326
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
13219
|
-
}
|
|
13327
|
+
}> & {
|
|
13328
|
+
parse: (input: string) => {
|
|
13329
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
13330
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
13331
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
13332
|
+
};
|
|
13333
|
+
};
|
|
13220
13334
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
13221
13335
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
13222
13336
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -13252,7 +13366,13 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
13252
13366
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
13253
13367
|
};
|
|
13254
13368
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
13255
|
-
}
|
|
13369
|
+
}> & {
|
|
13370
|
+
parse: (input: string) => {
|
|
13371
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
13372
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
13373
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
13374
|
+
};
|
|
13375
|
+
};
|
|
13256
13376
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
13257
13377
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
13258
13378
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -42,7 +42,13 @@ export declare const ModelSelected: Schema.Struct<{
|
|
|
42
42
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
43
43
|
};
|
|
44
44
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
45
|
-
}
|
|
45
|
+
}> & {
|
|
46
|
+
parse: (input: string) => {
|
|
47
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
48
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
49
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
46
52
|
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
47
53
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
48
54
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
@@ -59,7 +65,13 @@ export declare const ModelSelected: Schema.Struct<{
|
|
|
59
65
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
60
66
|
};
|
|
61
67
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
62
|
-
}
|
|
68
|
+
}> & {
|
|
69
|
+
parse: (input: string) => {
|
|
70
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
71
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
72
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
73
|
+
};
|
|
74
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
63
75
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
64
76
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
65
77
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -75,7 +87,13 @@ export declare const ModelSelected: Schema.Struct<{
|
|
|
75
87
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
76
88
|
};
|
|
77
89
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
78
|
-
}
|
|
90
|
+
}> & {
|
|
91
|
+
parse: (input: string) => {
|
|
92
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
93
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
94
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
95
|
+
};
|
|
96
|
+
}>, never, never>;
|
|
79
97
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
80
98
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
81
99
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -578,7 +596,13 @@ export declare const Assistant: Schema.Struct<{
|
|
|
578
596
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
579
597
|
};
|
|
580
598
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
581
|
-
}
|
|
599
|
+
}> & {
|
|
600
|
+
parse: (input: string) => {
|
|
601
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
602
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
603
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
582
606
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
583
607
|
readonly type: Schema.tag<"text">;
|
|
584
608
|
readonly text: Schema.String;
|
|
@@ -847,7 +871,13 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
847
871
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
848
872
|
};
|
|
849
873
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
850
|
-
}
|
|
874
|
+
}> & {
|
|
875
|
+
parse: (input: string) => {
|
|
876
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
877
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
878
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
879
|
+
};
|
|
880
|
+
};
|
|
851
881
|
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
852
882
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
853
883
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
@@ -864,7 +894,13 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
864
894
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
865
895
|
};
|
|
866
896
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
867
|
-
}
|
|
897
|
+
}> & {
|
|
898
|
+
parse: (input: string) => {
|
|
899
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
900
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
901
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
902
|
+
};
|
|
903
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
868
904
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
869
905
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
870
906
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -880,7 +916,13 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
880
916
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
881
917
|
};
|
|
882
918
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
883
|
-
}
|
|
919
|
+
}> & {
|
|
920
|
+
parse: (input: string) => {
|
|
921
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
922
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
923
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
924
|
+
};
|
|
925
|
+
}>, never, never>;
|
|
884
926
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
885
927
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
886
928
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1084,7 +1126,13 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1084
1126
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1085
1127
|
};
|
|
1086
1128
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1087
|
-
}
|
|
1129
|
+
}> & {
|
|
1130
|
+
parse: (input: string) => {
|
|
1131
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1132
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1133
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1088
1136
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1089
1137
|
readonly type: Schema.tag<"text">;
|
|
1090
1138
|
readonly text: Schema.String;
|
package/dist/session.d.ts
CHANGED
|
@@ -71,7 +71,13 @@ export declare const Info: Schema.Struct<{
|
|
|
71
71
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
72
72
|
};
|
|
73
73
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
74
|
-
}
|
|
74
|
+
}> & {
|
|
75
|
+
parse: (input: string) => {
|
|
76
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
77
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
78
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
79
|
+
};
|
|
80
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
75
81
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
76
82
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
77
83
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -87,7 +93,13 @@ export declare const Info: Schema.Struct<{
|
|
|
87
93
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
88
94
|
};
|
|
89
95
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
90
|
-
}
|
|
96
|
+
}> & {
|
|
97
|
+
parse: (input: string) => {
|
|
98
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
99
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
100
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
101
|
+
};
|
|
102
|
+
}>, never, never>;
|
|
91
103
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
92
104
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
93
105
|
};
|