@opencode-ai/client 0.0.0-next-15016 → 0.0.0-next-15018
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/effect/generated/client.d.ts +263 -172
- package/dist/promise/generated/client.d.ts +38 -42
- package/dist/promise/generated/types.d.ts +256 -165
- package/package.json +4 -4
|
@@ -1024,7 +1024,7 @@ export declare const make: (options?: {
|
|
|
1024
1024
|
readonly [x: string]: unknown;
|
|
1025
1025
|
};
|
|
1026
1026
|
readonly error: {
|
|
1027
|
-
readonly type:
|
|
1027
|
+
readonly type: string;
|
|
1028
1028
|
readonly message: string;
|
|
1029
1029
|
};
|
|
1030
1030
|
readonly result?: unknown;
|
|
@@ -1035,31 +1035,21 @@ export declare const make: (options?: {
|
|
|
1035
1035
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1036
1036
|
readonly pruned?: import("effect/DateTime").Utc | undefined;
|
|
1037
1037
|
};
|
|
1038
|
-
readonly
|
|
1039
|
-
|
|
1040
|
-
readonly
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
} | undefined;
|
|
1045
|
-
readonly resultMetadata?: {
|
|
1046
|
-
readonly [x: string]: {
|
|
1047
|
-
readonly [x: string]: unknown;
|
|
1048
|
-
};
|
|
1049
|
-
} | undefined;
|
|
1038
|
+
readonly executed?: boolean | undefined;
|
|
1039
|
+
readonly providerState?: {
|
|
1040
|
+
readonly [x: string]: unknown;
|
|
1041
|
+
} | undefined;
|
|
1042
|
+
readonly providerResultState?: {
|
|
1043
|
+
readonly [x: string]: unknown;
|
|
1050
1044
|
} | undefined;
|
|
1051
1045
|
} | {
|
|
1052
1046
|
readonly type: "text";
|
|
1053
|
-
readonly id: string;
|
|
1054
1047
|
readonly text: string;
|
|
1055
1048
|
} | {
|
|
1056
1049
|
readonly type: "reasoning";
|
|
1057
|
-
readonly id: string;
|
|
1058
1050
|
readonly text: string;
|
|
1059
|
-
readonly
|
|
1060
|
-
readonly [x: string]:
|
|
1061
|
-
readonly [x: string]: unknown;
|
|
1062
|
-
};
|
|
1051
|
+
readonly state?: {
|
|
1052
|
+
readonly [x: string]: unknown;
|
|
1063
1053
|
} | undefined;
|
|
1064
1054
|
readonly time?: {
|
|
1065
1055
|
readonly created: import("effect/DateTime").Utc;
|
|
@@ -1076,7 +1066,7 @@ export declare const make: (options?: {
|
|
|
1076
1066
|
readonly end?: string | undefined;
|
|
1077
1067
|
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
1078
1068
|
} | undefined;
|
|
1079
|
-
readonly finish?:
|
|
1069
|
+
readonly finish?: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown" | undefined;
|
|
1080
1070
|
readonly cost?: number | undefined;
|
|
1081
1071
|
readonly tokens?: {
|
|
1082
1072
|
readonly input: number;
|
|
@@ -1088,9 +1078,17 @@ export declare const make: (options?: {
|
|
|
1088
1078
|
};
|
|
1089
1079
|
} | undefined;
|
|
1090
1080
|
readonly error?: {
|
|
1091
|
-
readonly type:
|
|
1081
|
+
readonly type: string;
|
|
1092
1082
|
readonly message: string;
|
|
1093
1083
|
} | undefined;
|
|
1084
|
+
readonly retry?: {
|
|
1085
|
+
readonly attempt: number;
|
|
1086
|
+
readonly at: import("effect/DateTime").Utc;
|
|
1087
|
+
readonly error: {
|
|
1088
|
+
readonly type: string;
|
|
1089
|
+
readonly message: string;
|
|
1090
|
+
};
|
|
1091
|
+
} | undefined;
|
|
1094
1092
|
readonly metadata?: {
|
|
1095
1093
|
readonly [x: string]: unknown;
|
|
1096
1094
|
} | undefined;
|
|
@@ -1295,6 +1293,87 @@ export declare const make: (options?: {
|
|
|
1295
1293
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1296
1294
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
1297
1295
|
} | undefined;
|
|
1296
|
+
} | {
|
|
1297
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1298
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1299
|
+
readonly type: "session.execution.started";
|
|
1300
|
+
readonly durable: {
|
|
1301
|
+
readonly aggregateID: string;
|
|
1302
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1303
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1304
|
+
};
|
|
1305
|
+
readonly data: {
|
|
1306
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1307
|
+
};
|
|
1308
|
+
readonly metadata?: {
|
|
1309
|
+
readonly [x: string]: unknown;
|
|
1310
|
+
} | undefined;
|
|
1311
|
+
readonly location?: {
|
|
1312
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1313
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
1314
|
+
} | undefined;
|
|
1315
|
+
} | {
|
|
1316
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1317
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1318
|
+
readonly type: "session.execution.succeeded";
|
|
1319
|
+
readonly durable: {
|
|
1320
|
+
readonly aggregateID: string;
|
|
1321
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1322
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1323
|
+
};
|
|
1324
|
+
readonly data: {
|
|
1325
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1326
|
+
};
|
|
1327
|
+
readonly metadata?: {
|
|
1328
|
+
readonly [x: string]: unknown;
|
|
1329
|
+
} | undefined;
|
|
1330
|
+
readonly location?: {
|
|
1331
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1332
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
1333
|
+
} | undefined;
|
|
1334
|
+
} | {
|
|
1335
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1336
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1337
|
+
readonly type: "session.execution.failed";
|
|
1338
|
+
readonly durable: {
|
|
1339
|
+
readonly aggregateID: string;
|
|
1340
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1341
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1342
|
+
};
|
|
1343
|
+
readonly data: {
|
|
1344
|
+
readonly error: {
|
|
1345
|
+
readonly type: string;
|
|
1346
|
+
readonly message: string;
|
|
1347
|
+
};
|
|
1348
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1349
|
+
};
|
|
1350
|
+
readonly metadata?: {
|
|
1351
|
+
readonly [x: string]: unknown;
|
|
1352
|
+
} | undefined;
|
|
1353
|
+
readonly location?: {
|
|
1354
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1355
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
1356
|
+
} | undefined;
|
|
1357
|
+
} | {
|
|
1358
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1359
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1360
|
+
readonly type: "session.execution.interrupted";
|
|
1361
|
+
readonly durable: {
|
|
1362
|
+
readonly aggregateID: string;
|
|
1363
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1364
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1365
|
+
};
|
|
1366
|
+
readonly data: {
|
|
1367
|
+
readonly reason: "user" | "shutdown" | "superseded";
|
|
1368
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1369
|
+
};
|
|
1370
|
+
readonly metadata?: {
|
|
1371
|
+
readonly [x: string]: unknown;
|
|
1372
|
+
} | undefined;
|
|
1373
|
+
readonly location?: {
|
|
1374
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1375
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
1376
|
+
} | undefined;
|
|
1298
1377
|
} | {
|
|
1299
1378
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1300
1379
|
readonly created: import("effect/DateTime").Utc;
|
|
@@ -1476,7 +1555,7 @@ export declare const make: (options?: {
|
|
|
1476
1555
|
};
|
|
1477
1556
|
readonly data: {
|
|
1478
1557
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1479
|
-
readonly finish:
|
|
1558
|
+
readonly finish: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown";
|
|
1480
1559
|
readonly cost: number;
|
|
1481
1560
|
readonly tokens: {
|
|
1482
1561
|
readonly input: number;
|
|
@@ -1510,7 +1589,7 @@ export declare const make: (options?: {
|
|
|
1510
1589
|
readonly data: {
|
|
1511
1590
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1512
1591
|
readonly error: {
|
|
1513
|
-
readonly type:
|
|
1592
|
+
readonly type: string;
|
|
1514
1593
|
readonly message: string;
|
|
1515
1594
|
};
|
|
1516
1595
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1533,7 +1612,7 @@ export declare const make: (options?: {
|
|
|
1533
1612
|
};
|
|
1534
1613
|
readonly data: {
|
|
1535
1614
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1536
|
-
readonly
|
|
1615
|
+
readonly ordinal: number;
|
|
1537
1616
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1538
1617
|
};
|
|
1539
1618
|
readonly metadata?: {
|
|
@@ -1554,7 +1633,7 @@ export declare const make: (options?: {
|
|
|
1554
1633
|
};
|
|
1555
1634
|
readonly data: {
|
|
1556
1635
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1557
|
-
readonly
|
|
1636
|
+
readonly ordinal: number;
|
|
1558
1637
|
readonly text: string;
|
|
1559
1638
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1560
1639
|
};
|
|
@@ -1576,12 +1655,10 @@ export declare const make: (options?: {
|
|
|
1576
1655
|
};
|
|
1577
1656
|
readonly data: {
|
|
1578
1657
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1579
|
-
readonly
|
|
1658
|
+
readonly ordinal: number;
|
|
1580
1659
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1581
|
-
readonly
|
|
1582
|
-
readonly [x: string]:
|
|
1583
|
-
readonly [x: string]: unknown;
|
|
1584
|
-
};
|
|
1660
|
+
readonly state?: {
|
|
1661
|
+
readonly [x: string]: unknown;
|
|
1585
1662
|
} | undefined;
|
|
1586
1663
|
};
|
|
1587
1664
|
readonly metadata?: {
|
|
@@ -1602,13 +1679,11 @@ export declare const make: (options?: {
|
|
|
1602
1679
|
};
|
|
1603
1680
|
readonly data: {
|
|
1604
1681
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1605
|
-
readonly
|
|
1682
|
+
readonly ordinal: number;
|
|
1606
1683
|
readonly text: string;
|
|
1607
1684
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1608
|
-
readonly
|
|
1609
|
-
readonly [x: string]:
|
|
1610
|
-
readonly [x: string]: unknown;
|
|
1611
|
-
};
|
|
1685
|
+
readonly state?: {
|
|
1686
|
+
readonly [x: string]: unknown;
|
|
1612
1687
|
} | undefined;
|
|
1613
1688
|
};
|
|
1614
1689
|
readonly metadata?: {
|
|
@@ -1672,21 +1747,16 @@ export declare const make: (options?: {
|
|
|
1672
1747
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1673
1748
|
};
|
|
1674
1749
|
readonly data: {
|
|
1675
|
-
readonly tool: string;
|
|
1676
1750
|
readonly input: {
|
|
1677
1751
|
readonly [x: string]: unknown;
|
|
1678
1752
|
};
|
|
1679
|
-
readonly
|
|
1680
|
-
readonly executed: boolean;
|
|
1681
|
-
readonly metadata?: {
|
|
1682
|
-
readonly [x: string]: {
|
|
1683
|
-
readonly [x: string]: unknown;
|
|
1684
|
-
};
|
|
1685
|
-
} | undefined;
|
|
1686
|
-
};
|
|
1753
|
+
readonly executed: boolean;
|
|
1687
1754
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1688
1755
|
readonly callID: string;
|
|
1689
1756
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1757
|
+
readonly state?: {
|
|
1758
|
+
readonly [x: string]: unknown;
|
|
1759
|
+
} | undefined;
|
|
1690
1760
|
};
|
|
1691
1761
|
readonly metadata?: {
|
|
1692
1762
|
readonly [x: string]: unknown;
|
|
@@ -1750,19 +1820,15 @@ export declare const make: (options?: {
|
|
|
1750
1820
|
readonly mime: string;
|
|
1751
1821
|
readonly name?: string | undefined;
|
|
1752
1822
|
})[];
|
|
1753
|
-
readonly
|
|
1754
|
-
readonly executed: boolean;
|
|
1755
|
-
readonly metadata?: {
|
|
1756
|
-
readonly [x: string]: {
|
|
1757
|
-
readonly [x: string]: unknown;
|
|
1758
|
-
};
|
|
1759
|
-
} | undefined;
|
|
1760
|
-
};
|
|
1823
|
+
readonly executed: boolean;
|
|
1761
1824
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1762
1825
|
readonly callID: string;
|
|
1763
1826
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1764
1827
|
readonly outputPaths?: readonly string[] | undefined;
|
|
1765
1828
|
readonly result?: unknown;
|
|
1829
|
+
readonly resultState?: {
|
|
1830
|
+
readonly [x: string]: unknown;
|
|
1831
|
+
} | undefined;
|
|
1766
1832
|
};
|
|
1767
1833
|
readonly metadata?: {
|
|
1768
1834
|
readonly [x: string]: unknown;
|
|
@@ -1782,21 +1848,17 @@ export declare const make: (options?: {
|
|
|
1782
1848
|
};
|
|
1783
1849
|
readonly data: {
|
|
1784
1850
|
readonly error: {
|
|
1785
|
-
readonly type:
|
|
1851
|
+
readonly type: string;
|
|
1786
1852
|
readonly message: string;
|
|
1787
1853
|
};
|
|
1788
|
-
readonly
|
|
1789
|
-
readonly executed: boolean;
|
|
1790
|
-
readonly metadata?: {
|
|
1791
|
-
readonly [x: string]: {
|
|
1792
|
-
readonly [x: string]: unknown;
|
|
1793
|
-
};
|
|
1794
|
-
} | undefined;
|
|
1795
|
-
};
|
|
1854
|
+
readonly executed: boolean;
|
|
1796
1855
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1797
1856
|
readonly callID: string;
|
|
1798
1857
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1799
1858
|
readonly result?: unknown;
|
|
1859
|
+
readonly resultState?: {
|
|
1860
|
+
readonly [x: string]: unknown;
|
|
1861
|
+
} | undefined;
|
|
1800
1862
|
};
|
|
1801
1863
|
readonly metadata?: {
|
|
1802
1864
|
readonly [x: string]: unknown;
|
|
@@ -1808,25 +1870,19 @@ export declare const make: (options?: {
|
|
|
1808
1870
|
} | {
|
|
1809
1871
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1810
1872
|
readonly created: import("effect/DateTime").Utc;
|
|
1811
|
-
readonly type: "session.
|
|
1873
|
+
readonly type: "session.retry.scheduled";
|
|
1812
1874
|
readonly durable: {
|
|
1813
1875
|
readonly aggregateID: string;
|
|
1814
1876
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1815
1877
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1816
1878
|
};
|
|
1817
1879
|
readonly data: {
|
|
1880
|
+
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1818
1881
|
readonly attempt: number;
|
|
1882
|
+
readonly at: number;
|
|
1819
1883
|
readonly error: {
|
|
1884
|
+
readonly type: string;
|
|
1820
1885
|
readonly message: string;
|
|
1821
|
-
readonly isRetryable: boolean;
|
|
1822
|
-
readonly statusCode?: number | undefined;
|
|
1823
|
-
readonly responseHeaders?: {
|
|
1824
|
-
readonly [x: string]: string;
|
|
1825
|
-
} | undefined;
|
|
1826
|
-
readonly responseBody?: string | undefined;
|
|
1827
|
-
readonly metadata?: {
|
|
1828
|
-
readonly [x: string]: string;
|
|
1829
|
-
} | undefined;
|
|
1830
1886
|
};
|
|
1831
1887
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1832
1888
|
};
|
|
@@ -1940,7 +1996,7 @@ export declare const make: (options?: {
|
|
|
1940
1996
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1941
1997
|
};
|
|
1942
1998
|
readonly data: {
|
|
1943
|
-
readonly
|
|
1999
|
+
readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1944
2000
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1945
2001
|
};
|
|
1946
2002
|
readonly metadata?: {
|
|
@@ -2173,7 +2229,7 @@ export declare const make: (options?: {
|
|
|
2173
2229
|
readonly [x: string]: unknown;
|
|
2174
2230
|
};
|
|
2175
2231
|
readonly error: {
|
|
2176
|
-
readonly type:
|
|
2232
|
+
readonly type: string;
|
|
2177
2233
|
readonly message: string;
|
|
2178
2234
|
};
|
|
2179
2235
|
readonly result?: unknown;
|
|
@@ -2184,31 +2240,21 @@ export declare const make: (options?: {
|
|
|
2184
2240
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2185
2241
|
readonly pruned?: import("effect/DateTime").Utc | undefined;
|
|
2186
2242
|
};
|
|
2187
|
-
readonly
|
|
2188
|
-
|
|
2189
|
-
readonly
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
} | undefined;
|
|
2194
|
-
readonly resultMetadata?: {
|
|
2195
|
-
readonly [x: string]: {
|
|
2196
|
-
readonly [x: string]: unknown;
|
|
2197
|
-
};
|
|
2198
|
-
} | undefined;
|
|
2243
|
+
readonly executed?: boolean | undefined;
|
|
2244
|
+
readonly providerState?: {
|
|
2245
|
+
readonly [x: string]: unknown;
|
|
2246
|
+
} | undefined;
|
|
2247
|
+
readonly providerResultState?: {
|
|
2248
|
+
readonly [x: string]: unknown;
|
|
2199
2249
|
} | undefined;
|
|
2200
2250
|
} | {
|
|
2201
2251
|
readonly type: "text";
|
|
2202
|
-
readonly id: string;
|
|
2203
2252
|
readonly text: string;
|
|
2204
2253
|
} | {
|
|
2205
2254
|
readonly type: "reasoning";
|
|
2206
|
-
readonly id: string;
|
|
2207
2255
|
readonly text: string;
|
|
2208
|
-
readonly
|
|
2209
|
-
readonly [x: string]:
|
|
2210
|
-
readonly [x: string]: unknown;
|
|
2211
|
-
};
|
|
2256
|
+
readonly state?: {
|
|
2257
|
+
readonly [x: string]: unknown;
|
|
2212
2258
|
} | undefined;
|
|
2213
2259
|
readonly time?: {
|
|
2214
2260
|
readonly created: import("effect/DateTime").Utc;
|
|
@@ -2225,7 +2271,7 @@ export declare const make: (options?: {
|
|
|
2225
2271
|
readonly end?: string | undefined;
|
|
2226
2272
|
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
2227
2273
|
} | undefined;
|
|
2228
|
-
readonly finish?:
|
|
2274
|
+
readonly finish?: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown" | undefined;
|
|
2229
2275
|
readonly cost?: number | undefined;
|
|
2230
2276
|
readonly tokens?: {
|
|
2231
2277
|
readonly input: number;
|
|
@@ -2237,9 +2283,17 @@ export declare const make: (options?: {
|
|
|
2237
2283
|
};
|
|
2238
2284
|
} | undefined;
|
|
2239
2285
|
readonly error?: {
|
|
2240
|
-
readonly type:
|
|
2286
|
+
readonly type: string;
|
|
2241
2287
|
readonly message: string;
|
|
2242
2288
|
} | undefined;
|
|
2289
|
+
readonly retry?: {
|
|
2290
|
+
readonly attempt: number;
|
|
2291
|
+
readonly at: import("effect/DateTime").Utc;
|
|
2292
|
+
readonly error: {
|
|
2293
|
+
readonly type: string;
|
|
2294
|
+
readonly message: string;
|
|
2295
|
+
};
|
|
2296
|
+
} | undefined;
|
|
2243
2297
|
readonly metadata?: {
|
|
2244
2298
|
readonly [x: string]: unknown;
|
|
2245
2299
|
} | undefined;
|
|
@@ -2475,7 +2529,7 @@ export declare const make: (options?: {
|
|
|
2475
2529
|
readonly [x: string]: unknown;
|
|
2476
2530
|
};
|
|
2477
2531
|
readonly error: {
|
|
2478
|
-
readonly type:
|
|
2532
|
+
readonly type: string;
|
|
2479
2533
|
readonly message: string;
|
|
2480
2534
|
};
|
|
2481
2535
|
readonly result?: unknown;
|
|
@@ -2486,31 +2540,21 @@ export declare const make: (options?: {
|
|
|
2486
2540
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2487
2541
|
readonly pruned?: import("effect/DateTime").Utc | undefined;
|
|
2488
2542
|
};
|
|
2489
|
-
readonly
|
|
2490
|
-
|
|
2491
|
-
readonly
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
} | undefined;
|
|
2496
|
-
readonly resultMetadata?: {
|
|
2497
|
-
readonly [x: string]: {
|
|
2498
|
-
readonly [x: string]: unknown;
|
|
2499
|
-
};
|
|
2500
|
-
} | undefined;
|
|
2543
|
+
readonly executed?: boolean | undefined;
|
|
2544
|
+
readonly providerState?: {
|
|
2545
|
+
readonly [x: string]: unknown;
|
|
2546
|
+
} | undefined;
|
|
2547
|
+
readonly providerResultState?: {
|
|
2548
|
+
readonly [x: string]: unknown;
|
|
2501
2549
|
} | undefined;
|
|
2502
2550
|
} | {
|
|
2503
2551
|
readonly type: "text";
|
|
2504
|
-
readonly id: string;
|
|
2505
2552
|
readonly text: string;
|
|
2506
2553
|
} | {
|
|
2507
2554
|
readonly type: "reasoning";
|
|
2508
|
-
readonly id: string;
|
|
2509
2555
|
readonly text: string;
|
|
2510
|
-
readonly
|
|
2511
|
-
readonly [x: string]:
|
|
2512
|
-
readonly [x: string]: unknown;
|
|
2513
|
-
};
|
|
2556
|
+
readonly state?: {
|
|
2557
|
+
readonly [x: string]: unknown;
|
|
2514
2558
|
} | undefined;
|
|
2515
2559
|
readonly time?: {
|
|
2516
2560
|
readonly created: import("effect/DateTime").Utc;
|
|
@@ -2527,7 +2571,7 @@ export declare const make: (options?: {
|
|
|
2527
2571
|
readonly end?: string | undefined;
|
|
2528
2572
|
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
2529
2573
|
} | undefined;
|
|
2530
|
-
readonly finish?:
|
|
2574
|
+
readonly finish?: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown" | undefined;
|
|
2531
2575
|
readonly cost?: number | undefined;
|
|
2532
2576
|
readonly tokens?: {
|
|
2533
2577
|
readonly input: number;
|
|
@@ -2539,9 +2583,17 @@ export declare const make: (options?: {
|
|
|
2539
2583
|
};
|
|
2540
2584
|
} | undefined;
|
|
2541
2585
|
readonly error?: {
|
|
2542
|
-
readonly type:
|
|
2586
|
+
readonly type: string;
|
|
2543
2587
|
readonly message: string;
|
|
2544
2588
|
} | undefined;
|
|
2589
|
+
readonly retry?: {
|
|
2590
|
+
readonly attempt: number;
|
|
2591
|
+
readonly at: import("effect/DateTime").Utc;
|
|
2592
|
+
readonly error: {
|
|
2593
|
+
readonly type: string;
|
|
2594
|
+
readonly message: string;
|
|
2595
|
+
};
|
|
2596
|
+
} | undefined;
|
|
2545
2597
|
readonly metadata?: {
|
|
2546
2598
|
readonly [x: string]: unknown;
|
|
2547
2599
|
} | undefined;
|
|
@@ -3688,14 +3740,76 @@ export declare const make: (options?: {
|
|
|
3688
3740
|
} | {
|
|
3689
3741
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
3690
3742
|
readonly created: import("effect/DateTime").Utc;
|
|
3691
|
-
readonly type: "session.execution.
|
|
3743
|
+
readonly type: "session.execution.started";
|
|
3744
|
+
readonly durable: {
|
|
3745
|
+
readonly aggregateID: string;
|
|
3746
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
3747
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
3748
|
+
};
|
|
3692
3749
|
readonly data: {
|
|
3693
|
-
readonly outcome: "success" | "failure" | "interrupted";
|
|
3694
3750
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
3695
|
-
|
|
3696
|
-
|
|
3751
|
+
};
|
|
3752
|
+
readonly metadata?: {
|
|
3753
|
+
readonly [x: string]: unknown;
|
|
3754
|
+
} | undefined;
|
|
3755
|
+
readonly location?: {
|
|
3756
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
3757
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
3758
|
+
} | undefined;
|
|
3759
|
+
} | {
|
|
3760
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
3761
|
+
readonly created: import("effect/DateTime").Utc;
|
|
3762
|
+
readonly type: "session.execution.succeeded";
|
|
3763
|
+
readonly durable: {
|
|
3764
|
+
readonly aggregateID: string;
|
|
3765
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
3766
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
3767
|
+
};
|
|
3768
|
+
readonly data: {
|
|
3769
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
3770
|
+
};
|
|
3771
|
+
readonly metadata?: {
|
|
3772
|
+
readonly [x: string]: unknown;
|
|
3773
|
+
} | undefined;
|
|
3774
|
+
readonly location?: {
|
|
3775
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
3776
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
3777
|
+
} | undefined;
|
|
3778
|
+
} | {
|
|
3779
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
3780
|
+
readonly created: import("effect/DateTime").Utc;
|
|
3781
|
+
readonly type: "session.execution.failed";
|
|
3782
|
+
readonly durable: {
|
|
3783
|
+
readonly aggregateID: string;
|
|
3784
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
3785
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
3786
|
+
};
|
|
3787
|
+
readonly data: {
|
|
3788
|
+
readonly error: {
|
|
3789
|
+
readonly type: string;
|
|
3697
3790
|
readonly message: string;
|
|
3698
|
-
}
|
|
3791
|
+
};
|
|
3792
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
3793
|
+
};
|
|
3794
|
+
readonly metadata?: {
|
|
3795
|
+
readonly [x: string]: unknown;
|
|
3796
|
+
} | undefined;
|
|
3797
|
+
readonly location?: {
|
|
3798
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
3799
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
3800
|
+
} | undefined;
|
|
3801
|
+
} | {
|
|
3802
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
3803
|
+
readonly created: import("effect/DateTime").Utc;
|
|
3804
|
+
readonly type: "session.execution.interrupted";
|
|
3805
|
+
readonly durable: {
|
|
3806
|
+
readonly aggregateID: string;
|
|
3807
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
3808
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
3809
|
+
};
|
|
3810
|
+
readonly data: {
|
|
3811
|
+
readonly reason: "user" | "shutdown" | "superseded";
|
|
3812
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
3699
3813
|
};
|
|
3700
3814
|
readonly metadata?: {
|
|
3701
3815
|
readonly [x: string]: unknown;
|
|
@@ -3885,7 +3999,7 @@ export declare const make: (options?: {
|
|
|
3885
3999
|
};
|
|
3886
4000
|
readonly data: {
|
|
3887
4001
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3888
|
-
readonly finish:
|
|
4002
|
+
readonly finish: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown";
|
|
3889
4003
|
readonly cost: number;
|
|
3890
4004
|
readonly tokens: {
|
|
3891
4005
|
readonly input: number;
|
|
@@ -3919,7 +4033,7 @@ export declare const make: (options?: {
|
|
|
3919
4033
|
readonly data: {
|
|
3920
4034
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3921
4035
|
readonly error: {
|
|
3922
|
-
readonly type:
|
|
4036
|
+
readonly type: string;
|
|
3923
4037
|
readonly message: string;
|
|
3924
4038
|
};
|
|
3925
4039
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3942,7 +4056,7 @@ export declare const make: (options?: {
|
|
|
3942
4056
|
};
|
|
3943
4057
|
readonly data: {
|
|
3944
4058
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3945
|
-
readonly
|
|
4059
|
+
readonly ordinal: number;
|
|
3946
4060
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
3947
4061
|
};
|
|
3948
4062
|
readonly metadata?: {
|
|
@@ -3958,7 +4072,7 @@ export declare const make: (options?: {
|
|
|
3958
4072
|
readonly type: "session.text.delta";
|
|
3959
4073
|
readonly data: {
|
|
3960
4074
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3961
|
-
readonly
|
|
4075
|
+
readonly ordinal: number;
|
|
3962
4076
|
readonly delta: string;
|
|
3963
4077
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
3964
4078
|
};
|
|
@@ -3980,7 +4094,7 @@ export declare const make: (options?: {
|
|
|
3980
4094
|
};
|
|
3981
4095
|
readonly data: {
|
|
3982
4096
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3983
|
-
readonly
|
|
4097
|
+
readonly ordinal: number;
|
|
3984
4098
|
readonly text: string;
|
|
3985
4099
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
3986
4100
|
};
|
|
@@ -4002,12 +4116,10 @@ export declare const make: (options?: {
|
|
|
4002
4116
|
};
|
|
4003
4117
|
readonly data: {
|
|
4004
4118
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4005
|
-
readonly
|
|
4119
|
+
readonly ordinal: number;
|
|
4006
4120
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4007
|
-
readonly
|
|
4008
|
-
readonly [x: string]:
|
|
4009
|
-
readonly [x: string]: unknown;
|
|
4010
|
-
};
|
|
4121
|
+
readonly state?: {
|
|
4122
|
+
readonly [x: string]: unknown;
|
|
4011
4123
|
} | undefined;
|
|
4012
4124
|
};
|
|
4013
4125
|
readonly metadata?: {
|
|
@@ -4023,7 +4135,7 @@ export declare const make: (options?: {
|
|
|
4023
4135
|
readonly type: "session.reasoning.delta";
|
|
4024
4136
|
readonly data: {
|
|
4025
4137
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4026
|
-
readonly
|
|
4138
|
+
readonly ordinal: number;
|
|
4027
4139
|
readonly delta: string;
|
|
4028
4140
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4029
4141
|
};
|
|
@@ -4045,13 +4157,11 @@ export declare const make: (options?: {
|
|
|
4045
4157
|
};
|
|
4046
4158
|
readonly data: {
|
|
4047
4159
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4048
|
-
readonly
|
|
4160
|
+
readonly ordinal: number;
|
|
4049
4161
|
readonly text: string;
|
|
4050
4162
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4051
|
-
readonly
|
|
4052
|
-
readonly [x: string]:
|
|
4053
|
-
readonly [x: string]: unknown;
|
|
4054
|
-
};
|
|
4163
|
+
readonly state?: {
|
|
4164
|
+
readonly [x: string]: unknown;
|
|
4055
4165
|
} | undefined;
|
|
4056
4166
|
};
|
|
4057
4167
|
readonly metadata?: {
|
|
@@ -4132,21 +4242,16 @@ export declare const make: (options?: {
|
|
|
4132
4242
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
4133
4243
|
};
|
|
4134
4244
|
readonly data: {
|
|
4135
|
-
readonly tool: string;
|
|
4136
4245
|
readonly input: {
|
|
4137
4246
|
readonly [x: string]: unknown;
|
|
4138
4247
|
};
|
|
4139
|
-
readonly
|
|
4140
|
-
readonly executed: boolean;
|
|
4141
|
-
readonly metadata?: {
|
|
4142
|
-
readonly [x: string]: {
|
|
4143
|
-
readonly [x: string]: unknown;
|
|
4144
|
-
};
|
|
4145
|
-
} | undefined;
|
|
4146
|
-
};
|
|
4248
|
+
readonly executed: boolean;
|
|
4147
4249
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4148
4250
|
readonly callID: string;
|
|
4149
4251
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4252
|
+
readonly state?: {
|
|
4253
|
+
readonly [x: string]: unknown;
|
|
4254
|
+
} | undefined;
|
|
4150
4255
|
};
|
|
4151
4256
|
readonly metadata?: {
|
|
4152
4257
|
readonly [x: string]: unknown;
|
|
@@ -4210,19 +4315,15 @@ export declare const make: (options?: {
|
|
|
4210
4315
|
readonly mime: string;
|
|
4211
4316
|
readonly name?: string | undefined;
|
|
4212
4317
|
})[];
|
|
4213
|
-
readonly
|
|
4214
|
-
readonly executed: boolean;
|
|
4215
|
-
readonly metadata?: {
|
|
4216
|
-
readonly [x: string]: {
|
|
4217
|
-
readonly [x: string]: unknown;
|
|
4218
|
-
};
|
|
4219
|
-
} | undefined;
|
|
4220
|
-
};
|
|
4318
|
+
readonly executed: boolean;
|
|
4221
4319
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4222
4320
|
readonly callID: string;
|
|
4223
4321
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4224
4322
|
readonly outputPaths?: readonly string[] | undefined;
|
|
4225
4323
|
readonly result?: unknown;
|
|
4324
|
+
readonly resultState?: {
|
|
4325
|
+
readonly [x: string]: unknown;
|
|
4326
|
+
} | undefined;
|
|
4226
4327
|
};
|
|
4227
4328
|
readonly metadata?: {
|
|
4228
4329
|
readonly [x: string]: unknown;
|
|
@@ -4242,21 +4343,17 @@ export declare const make: (options?: {
|
|
|
4242
4343
|
};
|
|
4243
4344
|
readonly data: {
|
|
4244
4345
|
readonly error: {
|
|
4245
|
-
readonly type:
|
|
4346
|
+
readonly type: string;
|
|
4246
4347
|
readonly message: string;
|
|
4247
4348
|
};
|
|
4248
|
-
readonly
|
|
4249
|
-
readonly executed: boolean;
|
|
4250
|
-
readonly metadata?: {
|
|
4251
|
-
readonly [x: string]: {
|
|
4252
|
-
readonly [x: string]: unknown;
|
|
4253
|
-
};
|
|
4254
|
-
} | undefined;
|
|
4255
|
-
};
|
|
4349
|
+
readonly executed: boolean;
|
|
4256
4350
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4257
4351
|
readonly callID: string;
|
|
4258
4352
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4259
4353
|
readonly result?: unknown;
|
|
4354
|
+
readonly resultState?: {
|
|
4355
|
+
readonly [x: string]: unknown;
|
|
4356
|
+
} | undefined;
|
|
4260
4357
|
};
|
|
4261
4358
|
readonly metadata?: {
|
|
4262
4359
|
readonly [x: string]: unknown;
|
|
@@ -4268,25 +4365,19 @@ export declare const make: (options?: {
|
|
|
4268
4365
|
} | {
|
|
4269
4366
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
4270
4367
|
readonly created: import("effect/DateTime").Utc;
|
|
4271
|
-
readonly type: "session.
|
|
4368
|
+
readonly type: "session.retry.scheduled";
|
|
4272
4369
|
readonly durable: {
|
|
4273
4370
|
readonly aggregateID: string;
|
|
4274
4371
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
4275
4372
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
4276
4373
|
};
|
|
4277
4374
|
readonly data: {
|
|
4375
|
+
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4278
4376
|
readonly attempt: number;
|
|
4377
|
+
readonly at: number;
|
|
4279
4378
|
readonly error: {
|
|
4379
|
+
readonly type: string;
|
|
4280
4380
|
readonly message: string;
|
|
4281
|
-
readonly isRetryable: boolean;
|
|
4282
|
-
readonly statusCode?: number | undefined;
|
|
4283
|
-
readonly responseHeaders?: {
|
|
4284
|
-
readonly [x: string]: string;
|
|
4285
|
-
} | undefined;
|
|
4286
|
-
readonly responseBody?: string | undefined;
|
|
4287
|
-
readonly metadata?: {
|
|
4288
|
-
readonly [x: string]: string;
|
|
4289
|
-
} | undefined;
|
|
4290
4381
|
};
|
|
4291
4382
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4292
4383
|
};
|
|
@@ -4415,7 +4506,7 @@ export declare const make: (options?: {
|
|
|
4415
4506
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
4416
4507
|
};
|
|
4417
4508
|
readonly data: {
|
|
4418
|
-
readonly
|
|
4509
|
+
readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4419
4510
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4420
4511
|
};
|
|
4421
4512
|
readonly metadata?: {
|