@opencode/schema 2.2.1 → 2.2.3

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.
@@ -5,3 +5,5 @@ export declare function event(type: string, data: unknown): unknown;
5
5
  export declare function message(type: unknown, data: Record<string, unknown>): Record<string, unknown>;
6
6
  /** Upgrades complete messages, such as those in an exported session, before decoding. */
7
7
  export declare function messages(values: ReadonlyArray<unknown>): unknown[];
8
+ /** Upgrades an assistant content part written before v2.1. */
9
+ export declare function part(value: unknown): unknown;
@@ -47,7 +47,8 @@ function content(data) {
47
47
  return data;
48
48
  return { ...data, content: data.content.map(part) };
49
49
  }
50
- function part(value) {
50
+ /** Upgrades an assistant content part written before v2.1. */
51
+ export function part(value) {
51
52
  if (!isRecord(value))
52
53
  return value;
53
54
  if (value.type === "text" || value.type === "reasoning")
@@ -47,6 +47,7 @@ export declare const ModelSelected: Schema.Struct<{
47
47
  google: string & import("effect/Brand").Brand<"Provider.ID">;
48
48
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
49
49
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
50
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
50
51
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
51
52
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
52
53
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -70,6 +71,7 @@ export declare const ModelSelected: Schema.Struct<{
70
71
  google: string & import("effect/Brand").Brand<"Provider.ID">;
71
72
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
72
73
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
74
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
73
75
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
74
76
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
75
77
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -92,6 +94,7 @@ export declare const ModelSelected: Schema.Struct<{
92
94
  google: string & import("effect/Brand").Brand<"Provider.ID">;
93
95
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
94
96
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
97
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
95
98
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
96
99
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
97
100
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -984,6 +987,7 @@ export declare const Assistant: Schema.Struct<{
984
987
  google: string & import("effect/Brand").Brand<"Provider.ID">;
985
988
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
986
989
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
990
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
987
991
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
988
992
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
989
993
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -1231,6 +1235,7 @@ export declare const CompactionCompleted: Schema.Struct<{
1231
1235
  google: string & import("effect/Brand").Brand<"Provider.ID">;
1232
1236
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1233
1237
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1238
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
1234
1239
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1235
1240
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
1236
1241
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -1253,6 +1258,7 @@ export declare const CompactionCompleted: Schema.Struct<{
1253
1258
  google: string & import("effect/Brand").Brand<"Provider.ID">;
1254
1259
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1255
1260
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1261
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
1256
1262
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1257
1263
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
1258
1264
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -1375,6 +1381,7 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
1375
1381
  google: string & import("effect/Brand").Brand<"Provider.ID">;
1376
1382
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1377
1383
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1384
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
1378
1385
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1379
1386
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
1380
1387
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -1397,6 +1404,7 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
1397
1404
  google: string & import("effect/Brand").Brand<"Provider.ID">;
1398
1405
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1399
1406
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1407
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
1400
1408
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1401
1409
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
1402
1410
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -1532,6 +1540,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1532
1540
  google: string & import("effect/Brand").Brand<"Provider.ID">;
1533
1541
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1534
1542
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1543
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
1535
1544
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1536
1545
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
1537
1546
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -1555,6 +1564,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1555
1564
  google: string & import("effect/Brand").Brand<"Provider.ID">;
1556
1565
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1557
1566
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1567
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
1558
1568
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1559
1569
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
1560
1570
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -1577,6 +1587,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1577
1587
  google: string & import("effect/Brand").Brand<"Provider.ID">;
1578
1588
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1579
1589
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1590
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
1580
1591
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1581
1592
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
1582
1593
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -1875,6 +1886,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1875
1886
  google: string & import("effect/Brand").Brand<"Provider.ID">;
1876
1887
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1877
1888
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1889
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
1878
1890
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1879
1891
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
1880
1892
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -2116,6 +2128,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
2116
2128
  google: string & import("effect/Brand").Brand<"Provider.ID">;
2117
2129
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2118
2130
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2131
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
2119
2132
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2120
2133
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
2121
2134
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -2138,6 +2151,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
2138
2151
  google: string & import("effect/Brand").Brand<"Provider.ID">;
2139
2152
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2140
2153
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2154
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
2141
2155
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2142
2156
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
2143
2157
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -2267,6 +2281,7 @@ export declare const MediaInfo: Schema.Union<readonly [Schema.Struct<{
2267
2281
  google: string & import("effect/Brand").Brand<"Provider.ID">;
2268
2282
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2269
2283
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2284
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
2270
2285
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2271
2286
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
2272
2287
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -2290,6 +2305,7 @@ export declare const MediaInfo: Schema.Union<readonly [Schema.Struct<{
2290
2305
  google: string & import("effect/Brand").Brand<"Provider.ID">;
2291
2306
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2292
2307
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2308
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
2293
2309
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2294
2310
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
2295
2311
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -2312,6 +2328,7 @@ export declare const MediaInfo: Schema.Union<readonly [Schema.Struct<{
2312
2328
  google: string & import("effect/Brand").Brand<"Provider.ID">;
2313
2329
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2314
2330
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2331
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
2315
2332
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2316
2333
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
2317
2334
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -2656,6 +2673,7 @@ export declare const MediaInfo: Schema.Union<readonly [Schema.Struct<{
2656
2673
  google: string & import("effect/Brand").Brand<"Provider.ID">;
2657
2674
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2658
2675
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2676
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
2659
2677
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2660
2678
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
2661
2679
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -2897,6 +2915,7 @@ export declare const MediaInfo: Schema.Union<readonly [Schema.Struct<{
2897
2915
  google: string & import("effect/Brand").Brand<"Provider.ID">;
2898
2916
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2899
2917
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2918
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
2900
2919
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2901
2920
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
2902
2921
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -2919,6 +2938,7 @@ export declare const MediaInfo: Schema.Union<readonly [Schema.Struct<{
2919
2938
  google: string & import("effect/Brand").Brand<"Provider.ID">;
2920
2939
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2921
2940
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2941
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
2922
2942
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2923
2943
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
2924
2944
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -168,6 +168,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
168
168
  readonly patch: Schema.String;
169
169
  }>>>, never, never>;
170
170
  }>, never, never>]> & {
171
+ readonly tag: "source";
171
172
  readonly discriminants: readonly ["current", "legacy"];
172
173
  readonly cases: {
173
174
  current: Schema.decodeTo<Schema.Struct<{
@@ -15,6 +15,7 @@ export declare const ModelUsage: Schema.Struct<{
15
15
  google: string & import("effect/Brand").Brand<"Provider.ID">;
16
16
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
17
17
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
18
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
18
19
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
19
20
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
20
21
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -154,6 +155,7 @@ export declare const Info: Schema.Struct<{
154
155
  google: string & import("effect/Brand").Brand<"Provider.ID">;
155
156
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
156
157
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
158
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
157
159
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
158
160
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
159
161
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -60,6 +60,7 @@ export declare const Data: Schema.Struct<{
60
60
  google: string & import("effect/Brand").Brand<"Provider.ID">;
61
61
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
62
62
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
63
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
63
64
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
64
65
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
65
66
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -82,6 +83,7 @@ export declare const Data: Schema.Struct<{
82
83
  google: string & import("effect/Brand").Brand<"Provider.ID">;
83
84
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
84
85
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
86
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
85
87
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
86
88
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
87
89
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -112,6 +114,7 @@ export declare const Data: Schema.Struct<{
112
114
  readonly time: Schema.Struct<{
113
115
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
114
116
  readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
117
+ readonly busy: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
115
118
  readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
116
119
  readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
117
120
  readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
@@ -215,6 +218,7 @@ export declare const Data: Schema.Struct<{
215
218
  google: string & import("effect/Brand").Brand<"Provider.ID">;
216
219
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
217
220
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
221
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
218
222
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
219
223
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
220
224
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -238,6 +242,7 @@ export declare const Data: Schema.Struct<{
238
242
  google: string & import("effect/Brand").Brand<"Provider.ID">;
239
243
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
240
244
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
245
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
241
246
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
242
247
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
243
248
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -260,6 +265,7 @@ export declare const Data: Schema.Struct<{
260
265
  google: string & import("effect/Brand").Brand<"Provider.ID">;
261
266
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
262
267
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
268
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
263
269
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
264
270
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
265
271
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -556,6 +562,7 @@ export declare const Data: Schema.Struct<{
556
562
  google: string & import("effect/Brand").Brand<"Provider.ID">;
557
563
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
558
564
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
565
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
559
566
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
560
567
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
561
568
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -795,6 +802,7 @@ export declare const Data: Schema.Struct<{
795
802
  google: string & import("effect/Brand").Brand<"Provider.ID">;
796
803
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
797
804
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
805
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
798
806
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
799
807
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
800
808
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -817,6 +825,7 @@ export declare const Data: Schema.Struct<{
817
825
  google: string & import("effect/Brand").Brand<"Provider.ID">;
818
826
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
819
827
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
828
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
820
829
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
821
830
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
822
831
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
package/dist/session.d.ts CHANGED
@@ -86,6 +86,7 @@ export declare const Info: Schema.Struct<{
86
86
  google: string & import("effect/Brand").Brand<"Provider.ID">;
87
87
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
88
88
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
89
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
89
90
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
90
91
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
91
92
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -108,6 +109,7 @@ export declare const Info: Schema.Struct<{
108
109
  google: string & import("effect/Brand").Brand<"Provider.ID">;
109
110
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
110
111
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
112
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
111
113
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
112
114
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
113
115
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -139,6 +141,9 @@ export declare const Info: Schema.Struct<{
139
141
  readonly time: Schema.Struct<{
140
142
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
141
143
  readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
144
+ /** Start of the most recent execution. While it runs, `idle` still holds the previous execution's end. Resuming after a restart starts a new execution. */
145
+ readonly busy: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
146
+ /** End of the most recent completed execution. */
142
147
  readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
143
148
  readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
144
149
  readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
package/dist/session.js CHANGED
@@ -36,6 +36,9 @@ export const Info = Schema.Struct({
36
36
  time: Schema.Struct({
37
37
  created: DateTimeUtcFromMillis,
38
38
  updated: DateTimeUtcFromMillis,
39
+ /** Start of the most recent execution. While it runs, `idle` still holds the previous execution's end. Resuming after a restart starts a new execution. */
40
+ busy: DateTimeUtcFromMillis.pipe(optional),
41
+ /** End of the most recent completed execution. */
39
42
  idle: DateTimeUtcFromMillis.pipe(optional),
40
43
  viewed: DateTimeUtcFromMillis.pipe(optional),
41
44
  archived: DateTimeUtcFromMillis.pipe(optional),
@@ -47,6 +47,7 @@ export declare const BudgetModel: Schema.Struct<{
47
47
  google: string & import("effect/Brand").Brand<"Provider.ID">;
48
48
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
49
49
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
50
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
50
51
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
51
52
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
52
53
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -88,6 +89,7 @@ export declare const Budget: Schema.Struct<{
88
89
  google: string & import("effect/Brand").Brand<"Provider.ID">;
89
90
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
90
91
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
92
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
91
93
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
92
94
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
93
95
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -195,6 +197,7 @@ export declare const Info: Schema.Struct<{
195
197
  google: string & import("effect/Brand").Brand<"Provider.ID">;
196
198
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
197
199
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
200
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
198
201
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
199
202
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
200
203
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;