@opencode-ai/client 0.0.0-next-16886 → 0.0.0-next-16892
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/api/api.d.ts +51 -6
- package/dist/effect/generated/client.d.ts +43 -778
- package/dist/effect/generated/client.js +9 -6
- package/dist/promise/generated/client.d.ts +6 -1
- package/dist/promise/generated/client.js +16 -5
- package/dist/promise/generated/types.d.ts +41 -564
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Stream, Schema } from "effect";
|
|
2
2
|
import { Sse } from "effect/unstable/encoding";
|
|
3
3
|
import { HttpClientError } from "effect/unstable/http";
|
|
4
|
-
import type { Endpoint0_0Output, Endpoint0_1Input, Endpoint0_1Output, Endpoint1_0Output, Endpoint2_0Input, Endpoint3_0Input, Endpoint3_0Output, Endpoint3_1Input, Endpoint3_1Output, Endpoint4_0Input, Endpoint4_0Output, Endpoint5_0Input, Endpoint5_0Output, Endpoint5_1Input, Endpoint5_2Output, Endpoint5_3Input, Endpoint5_4Input, Endpoint5_5Input, Endpoint5_6Input, Endpoint5_7Input, Endpoint5_8Input, Endpoint5_9Input, Endpoint5_10Input, Endpoint5_11Input, Endpoint5_12Input, Endpoint5_13Input, Endpoint5_14Input, Endpoint5_15Input, Endpoint5_16Input, Endpoint5_17Input, Endpoint5_18Input, Endpoint5_19Input, Endpoint5_20Input, Endpoint5_20Output, Endpoint5_21Input, Endpoint5_21Output, Endpoint5_22Input, Endpoint5_22Output, Endpoint5_23Input, Endpoint5_24Input, Endpoint5_25Input, Endpoint5_25Output, Endpoint5_26Input, Endpoint5_26Output, Endpoint5_27Input, Endpoint5_28Input, Endpoint5_29Input, Endpoint6_0Input, Endpoint6_0Output, Endpoint7_0Input, Endpoint7_0Output, Endpoint7_1Input, Endpoint7_1Output, Endpoint8_0Input, Endpoint8_0Output, Endpoint9_0Input, Endpoint9_0Output, Endpoint9_1Input, Endpoint9_1Output, Endpoint10_0Input, Endpoint10_0Output, Endpoint10_1Input, Endpoint10_1Output, Endpoint10_2Input, Endpoint10_3Input, Endpoint10_4Input, Endpoint10_4Output, Endpoint10_5Input, Endpoint10_5Output, Endpoint10_6Input, Endpoint10_7Input, Endpoint10_8Input, Endpoint10_8Output, Endpoint10_9Input, Endpoint10_9Output, Endpoint10_10Input, Endpoint11_0Input, Endpoint11_0Output, Endpoint11_1Input, Endpoint11_2Input, Endpoint11_3Input, Endpoint11_4Input, Endpoint11_5Input, Endpoint11_5Output, Endpoint12_0Input, Endpoint12_1Input, Endpoint13_0Output, Endpoint13_1Input, Endpoint13_2Input, Endpoint14_0Input, Endpoint14_0Output, Endpoint14_1Input, Endpoint14_1Output, Endpoint14_2Input, Endpoint14_3Input, Endpoint14_4Input, Endpoint14_5Input, Endpoint14_6Input, Endpoint15_0Input, Endpoint15_0Output, Endpoint15_1Input, Endpoint15_1Output, Endpoint15_2Input, Endpoint15_3Input, Endpoint15_3Output, Endpoint15_4Input, Endpoint15_4Output, Endpoint15_5Input, Endpoint15_6Input, Endpoint16_0Input, Endpoint16_0Output, Endpoint16_1Input, Endpoint16_1Output, Endpoint17_0Input, Endpoint17_0Output, Endpoint18_0Input, Endpoint18_0Output, Endpoint20_0Input, Endpoint20_0Output, Endpoint20_1Input, Endpoint20_1Output, Endpoint20_2Input, Endpoint20_2Output, Endpoint20_3Input, Endpoint20_3Output, Endpoint20_4Input, Endpoint21_0Input, Endpoint21_0Output, Endpoint21_1Input, Endpoint21_1Output, Endpoint21_2Input, Endpoint21_2Output, Endpoint21_3Input, Endpoint21_3Output, Endpoint21_4Input, Endpoint21_4Output, Endpoint21_5Input, Endpoint22_0Input, Endpoint22_0Output, Endpoint22_1Input, Endpoint22_1Output, Endpoint22_2Input, Endpoint22_3Input, Endpoint23_0Input, Endpoint23_0Output, Endpoint24_0Input, Endpoint24_1Input, Endpoint24_2Input, Endpoint25_0Input, Endpoint25_0Output, Endpoint25_1Input, Endpoint25_1Output, Endpoint25_2Input, Endpoint25_2Output, Endpoint26_0Output, Endpoint26_1Input,
|
|
4
|
+
import type { Endpoint0_0Output, Endpoint0_1Input, Endpoint0_1Output, Endpoint1_0Output, Endpoint2_0Input, Endpoint3_0Input, Endpoint3_0Output, Endpoint3_1Input, Endpoint3_1Output, Endpoint4_0Input, Endpoint4_0Output, Endpoint5_0Input, Endpoint5_0Output, Endpoint5_1Input, Endpoint5_2Output, Endpoint5_3Input, Endpoint5_4Input, Endpoint5_5Input, Endpoint5_6Input, Endpoint5_7Input, Endpoint5_8Input, Endpoint5_9Input, Endpoint5_10Input, Endpoint5_11Input, Endpoint5_12Input, Endpoint5_13Input, Endpoint5_14Input, Endpoint5_15Input, Endpoint5_16Input, Endpoint5_17Input, Endpoint5_18Input, Endpoint5_19Input, Endpoint5_20Input, Endpoint5_20Output, Endpoint5_21Input, Endpoint5_21Output, Endpoint5_22Input, Endpoint5_22Output, Endpoint5_23Input, Endpoint5_24Input, Endpoint5_25Input, Endpoint5_25Output, Endpoint5_26Input, Endpoint5_26Output, Endpoint5_27Input, Endpoint5_28Input, Endpoint5_29Input, Endpoint6_0Input, Endpoint6_0Output, Endpoint7_0Input, Endpoint7_0Output, Endpoint7_1Input, Endpoint7_1Output, Endpoint8_0Input, Endpoint8_0Output, Endpoint9_0Input, Endpoint9_0Output, Endpoint9_1Input, Endpoint9_1Output, Endpoint10_0Input, Endpoint10_0Output, Endpoint10_1Input, Endpoint10_1Output, Endpoint10_2Input, Endpoint10_3Input, Endpoint10_4Input, Endpoint10_4Output, Endpoint10_5Input, Endpoint10_5Output, Endpoint10_6Input, Endpoint10_7Input, Endpoint10_8Input, Endpoint10_8Output, Endpoint10_9Input, Endpoint10_9Output, Endpoint10_10Input, Endpoint11_0Input, Endpoint11_0Output, Endpoint11_1Input, Endpoint11_2Input, Endpoint11_3Input, Endpoint11_4Input, Endpoint11_5Input, Endpoint11_5Output, Endpoint12_0Input, Endpoint12_1Input, Endpoint13_0Output, Endpoint13_1Input, Endpoint13_2Input, Endpoint14_0Input, Endpoint14_0Output, Endpoint14_1Input, Endpoint14_1Output, Endpoint14_2Input, Endpoint14_3Input, Endpoint14_4Input, Endpoint14_5Input, Endpoint14_6Input, Endpoint15_0Input, Endpoint15_0Output, Endpoint15_1Input, Endpoint15_1Output, Endpoint15_2Input, Endpoint15_3Input, Endpoint15_3Output, Endpoint15_4Input, Endpoint15_4Output, Endpoint15_5Input, Endpoint15_6Input, Endpoint16_0Input, Endpoint16_0Output, Endpoint16_1Input, Endpoint16_1Output, Endpoint17_0Input, Endpoint17_0Output, Endpoint18_0Input, Endpoint18_0Output, Endpoint20_0Input, Endpoint20_0Output, Endpoint20_1Input, Endpoint20_1Output, Endpoint20_2Input, Endpoint20_2Output, Endpoint20_3Input, Endpoint20_3Output, Endpoint20_4Input, Endpoint21_0Input, Endpoint21_0Output, Endpoint21_1Input, Endpoint21_1Output, Endpoint21_2Input, Endpoint21_2Output, Endpoint21_3Input, Endpoint21_3Output, Endpoint21_4Input, Endpoint21_4Output, Endpoint21_5Input, Endpoint22_0Input, Endpoint22_0Output, Endpoint22_1Input, Endpoint22_1Output, Endpoint22_2Input, Endpoint22_3Input, Endpoint23_0Input, Endpoint23_0Output, Endpoint24_0Input, Endpoint24_1Input, Endpoint24_2Input, Endpoint25_0Input, Endpoint25_0Output, Endpoint25_1Input, Endpoint25_1Output, Endpoint25_2Input, Endpoint25_2Output, Endpoint26_0Output, Endpoint26_1Input, Endpoint27_0Output, Endpoint28_0Input, Endpoint28_0Output, Endpoint28_1Input, Endpoint28_1Output } from "../api/api.js";
|
|
5
5
|
import { ClientError } from "./client-error";
|
|
6
6
|
export declare const make: (options?: {
|
|
7
7
|
readonly baseUrl?: URL | string;
|
|
@@ -316,6 +316,41 @@ export declare const make: (options?: {
|
|
|
316
316
|
readonly metadata?: {
|
|
317
317
|
readonly [x: string]: unknown;
|
|
318
318
|
} | undefined;
|
|
319
|
+
} | {
|
|
320
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
321
|
+
readonly data: {
|
|
322
|
+
readonly location: {
|
|
323
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
324
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
325
|
+
};
|
|
326
|
+
readonly version: string;
|
|
327
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
328
|
+
readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
|
|
329
|
+
readonly slug: string;
|
|
330
|
+
readonly model?: {
|
|
331
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
332
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
333
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
336
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
337
|
+
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
338
|
+
readonly title?: string | undefined;
|
|
339
|
+
};
|
|
340
|
+
readonly durable: {
|
|
341
|
+
readonly aggregateID: string;
|
|
342
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
343
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
344
|
+
};
|
|
345
|
+
readonly type: "session.created";
|
|
346
|
+
readonly created: import("effect/DateTime").Utc;
|
|
347
|
+
readonly location?: {
|
|
348
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
349
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
350
|
+
} | undefined;
|
|
351
|
+
readonly metadata?: {
|
|
352
|
+
readonly [x: string]: unknown;
|
|
353
|
+
} | undefined;
|
|
319
354
|
} | {
|
|
320
355
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
321
356
|
readonly data: {
|
|
@@ -1707,781 +1742,6 @@ export declare const make: (options?: {
|
|
|
1707
1742
|
readonly metadata?: {
|
|
1708
1743
|
readonly [x: string]: unknown;
|
|
1709
1744
|
} | undefined;
|
|
1710
|
-
} | {
|
|
1711
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1712
|
-
readonly data: {
|
|
1713
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1714
|
-
readonly info: {
|
|
1715
|
-
readonly directory: string;
|
|
1716
|
-
readonly id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1717
|
-
readonly version: string;
|
|
1718
|
-
readonly time: {
|
|
1719
|
-
readonly created: number;
|
|
1720
|
-
readonly updated: number;
|
|
1721
|
-
readonly archived?: number | undefined;
|
|
1722
|
-
readonly compacting?: number | undefined;
|
|
1723
|
-
};
|
|
1724
|
-
readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1725
|
-
readonly slug: string;
|
|
1726
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1727
|
-
readonly metadata?: {
|
|
1728
|
-
readonly [x: string]: any;
|
|
1729
|
-
} | undefined;
|
|
1730
|
-
readonly path?: string | undefined;
|
|
1731
|
-
readonly cost?: number | undefined;
|
|
1732
|
-
readonly model?: {
|
|
1733
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1734
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1735
|
-
readonly variant?: string | undefined;
|
|
1736
|
-
} | undefined;
|
|
1737
|
-
readonly agent?: string | undefined;
|
|
1738
|
-
readonly tokens?: {
|
|
1739
|
-
readonly input: number;
|
|
1740
|
-
readonly output: number;
|
|
1741
|
-
readonly reasoning: number;
|
|
1742
|
-
readonly cache: {
|
|
1743
|
-
readonly read: number;
|
|
1744
|
-
readonly write: number;
|
|
1745
|
-
};
|
|
1746
|
-
} | undefined;
|
|
1747
|
-
readonly summary?: {
|
|
1748
|
-
readonly files: number;
|
|
1749
|
-
readonly additions: number;
|
|
1750
|
-
readonly deletions: number;
|
|
1751
|
-
readonly diffs?: readonly {
|
|
1752
|
-
readonly additions: number;
|
|
1753
|
-
readonly deletions: number;
|
|
1754
|
-
readonly status?: "added" | "deleted" | "modified" | undefined;
|
|
1755
|
-
readonly file?: string | undefined;
|
|
1756
|
-
readonly patch?: string | undefined;
|
|
1757
|
-
}[] | undefined;
|
|
1758
|
-
} | undefined;
|
|
1759
|
-
readonly revert?: {
|
|
1760
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
1761
|
-
readonly snapshot?: string | undefined;
|
|
1762
|
-
readonly partID?: (string & import("effect/Brand").Brand<"SessionV1.PartID">) | undefined;
|
|
1763
|
-
readonly diff?: string | undefined;
|
|
1764
|
-
} | undefined;
|
|
1765
|
-
readonly title?: string | undefined;
|
|
1766
|
-
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
1767
|
-
readonly permission?: readonly {
|
|
1768
|
-
readonly permission: string;
|
|
1769
|
-
readonly pattern: string;
|
|
1770
|
-
readonly action: "allow" | "deny" | "ask";
|
|
1771
|
-
}[] | undefined;
|
|
1772
|
-
readonly share?: {
|
|
1773
|
-
readonly url: string;
|
|
1774
|
-
} | undefined;
|
|
1775
|
-
};
|
|
1776
|
-
};
|
|
1777
|
-
readonly durable: {
|
|
1778
|
-
readonly aggregateID: string;
|
|
1779
|
-
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1780
|
-
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1781
|
-
};
|
|
1782
|
-
readonly type: "session.created";
|
|
1783
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1784
|
-
readonly location?: {
|
|
1785
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1786
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1787
|
-
} | undefined;
|
|
1788
|
-
readonly metadata?: {
|
|
1789
|
-
readonly [x: string]: unknown;
|
|
1790
|
-
} | undefined;
|
|
1791
|
-
} | {
|
|
1792
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1793
|
-
readonly data: {
|
|
1794
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1795
|
-
readonly info: {
|
|
1796
|
-
readonly directory: string;
|
|
1797
|
-
readonly id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1798
|
-
readonly version: string;
|
|
1799
|
-
readonly time: {
|
|
1800
|
-
readonly created: number;
|
|
1801
|
-
readonly updated: number;
|
|
1802
|
-
readonly archived?: number | undefined;
|
|
1803
|
-
readonly compacting?: number | undefined;
|
|
1804
|
-
};
|
|
1805
|
-
readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1806
|
-
readonly slug: string;
|
|
1807
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1808
|
-
readonly metadata?: {
|
|
1809
|
-
readonly [x: string]: any;
|
|
1810
|
-
} | undefined;
|
|
1811
|
-
readonly path?: string | undefined;
|
|
1812
|
-
readonly cost?: number | undefined;
|
|
1813
|
-
readonly model?: {
|
|
1814
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1815
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1816
|
-
readonly variant?: string | undefined;
|
|
1817
|
-
} | undefined;
|
|
1818
|
-
readonly agent?: string | undefined;
|
|
1819
|
-
readonly tokens?: {
|
|
1820
|
-
readonly input: number;
|
|
1821
|
-
readonly output: number;
|
|
1822
|
-
readonly reasoning: number;
|
|
1823
|
-
readonly cache: {
|
|
1824
|
-
readonly read: number;
|
|
1825
|
-
readonly write: number;
|
|
1826
|
-
};
|
|
1827
|
-
} | undefined;
|
|
1828
|
-
readonly summary?: {
|
|
1829
|
-
readonly files: number;
|
|
1830
|
-
readonly additions: number;
|
|
1831
|
-
readonly deletions: number;
|
|
1832
|
-
readonly diffs?: readonly {
|
|
1833
|
-
readonly additions: number;
|
|
1834
|
-
readonly deletions: number;
|
|
1835
|
-
readonly status?: "added" | "deleted" | "modified" | undefined;
|
|
1836
|
-
readonly file?: string | undefined;
|
|
1837
|
-
readonly patch?: string | undefined;
|
|
1838
|
-
}[] | undefined;
|
|
1839
|
-
} | undefined;
|
|
1840
|
-
readonly revert?: {
|
|
1841
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
1842
|
-
readonly snapshot?: string | undefined;
|
|
1843
|
-
readonly partID?: (string & import("effect/Brand").Brand<"SessionV1.PartID">) | undefined;
|
|
1844
|
-
readonly diff?: string | undefined;
|
|
1845
|
-
} | undefined;
|
|
1846
|
-
readonly title?: string | undefined;
|
|
1847
|
-
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
1848
|
-
readonly permission?: readonly {
|
|
1849
|
-
readonly permission: string;
|
|
1850
|
-
readonly pattern: string;
|
|
1851
|
-
readonly action: "allow" | "deny" | "ask";
|
|
1852
|
-
}[] | undefined;
|
|
1853
|
-
readonly share?: {
|
|
1854
|
-
readonly url: string;
|
|
1855
|
-
} | undefined;
|
|
1856
|
-
};
|
|
1857
|
-
};
|
|
1858
|
-
readonly durable: {
|
|
1859
|
-
readonly aggregateID: string;
|
|
1860
|
-
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1861
|
-
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1862
|
-
};
|
|
1863
|
-
readonly type: "session.updated";
|
|
1864
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1865
|
-
readonly location?: {
|
|
1866
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1867
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1868
|
-
} | undefined;
|
|
1869
|
-
readonly metadata?: {
|
|
1870
|
-
readonly [x: string]: unknown;
|
|
1871
|
-
} | undefined;
|
|
1872
|
-
} | {
|
|
1873
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1874
|
-
readonly data: {
|
|
1875
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1876
|
-
readonly info: {
|
|
1877
|
-
readonly directory: string;
|
|
1878
|
-
readonly id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1879
|
-
readonly version: string;
|
|
1880
|
-
readonly time: {
|
|
1881
|
-
readonly created: number;
|
|
1882
|
-
readonly updated: number;
|
|
1883
|
-
readonly archived?: number | undefined;
|
|
1884
|
-
readonly compacting?: number | undefined;
|
|
1885
|
-
};
|
|
1886
|
-
readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1887
|
-
readonly slug: string;
|
|
1888
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1889
|
-
readonly metadata?: {
|
|
1890
|
-
readonly [x: string]: any;
|
|
1891
|
-
} | undefined;
|
|
1892
|
-
readonly path?: string | undefined;
|
|
1893
|
-
readonly cost?: number | undefined;
|
|
1894
|
-
readonly model?: {
|
|
1895
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1896
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1897
|
-
readonly variant?: string | undefined;
|
|
1898
|
-
} | undefined;
|
|
1899
|
-
readonly agent?: string | undefined;
|
|
1900
|
-
readonly tokens?: {
|
|
1901
|
-
readonly input: number;
|
|
1902
|
-
readonly output: number;
|
|
1903
|
-
readonly reasoning: number;
|
|
1904
|
-
readonly cache: {
|
|
1905
|
-
readonly read: number;
|
|
1906
|
-
readonly write: number;
|
|
1907
|
-
};
|
|
1908
|
-
} | undefined;
|
|
1909
|
-
readonly summary?: {
|
|
1910
|
-
readonly files: number;
|
|
1911
|
-
readonly additions: number;
|
|
1912
|
-
readonly deletions: number;
|
|
1913
|
-
readonly diffs?: readonly {
|
|
1914
|
-
readonly additions: number;
|
|
1915
|
-
readonly deletions: number;
|
|
1916
|
-
readonly status?: "added" | "deleted" | "modified" | undefined;
|
|
1917
|
-
readonly file?: string | undefined;
|
|
1918
|
-
readonly patch?: string | undefined;
|
|
1919
|
-
}[] | undefined;
|
|
1920
|
-
} | undefined;
|
|
1921
|
-
readonly revert?: {
|
|
1922
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
1923
|
-
readonly snapshot?: string | undefined;
|
|
1924
|
-
readonly partID?: (string & import("effect/Brand").Brand<"SessionV1.PartID">) | undefined;
|
|
1925
|
-
readonly diff?: string | undefined;
|
|
1926
|
-
} | undefined;
|
|
1927
|
-
readonly title?: string | undefined;
|
|
1928
|
-
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
1929
|
-
readonly permission?: readonly {
|
|
1930
|
-
readonly permission: string;
|
|
1931
|
-
readonly pattern: string;
|
|
1932
|
-
readonly action: "allow" | "deny" | "ask";
|
|
1933
|
-
}[] | undefined;
|
|
1934
|
-
readonly share?: {
|
|
1935
|
-
readonly url: string;
|
|
1936
|
-
} | undefined;
|
|
1937
|
-
};
|
|
1938
|
-
};
|
|
1939
|
-
readonly durable: {
|
|
1940
|
-
readonly aggregateID: string;
|
|
1941
|
-
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1942
|
-
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1943
|
-
};
|
|
1944
|
-
readonly type: "session.deleted";
|
|
1945
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1946
|
-
readonly location?: {
|
|
1947
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1948
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1949
|
-
} | undefined;
|
|
1950
|
-
readonly metadata?: {
|
|
1951
|
-
readonly [x: string]: unknown;
|
|
1952
|
-
} | undefined;
|
|
1953
|
-
} | {
|
|
1954
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1955
|
-
readonly data: {
|
|
1956
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1957
|
-
readonly info: {
|
|
1958
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
1959
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1960
|
-
readonly time: {
|
|
1961
|
-
readonly created: number;
|
|
1962
|
-
};
|
|
1963
|
-
readonly model: {
|
|
1964
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1965
|
-
readonly modelID: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1966
|
-
readonly variant?: string | undefined;
|
|
1967
|
-
};
|
|
1968
|
-
readonly agent: string;
|
|
1969
|
-
readonly role: "user";
|
|
1970
|
-
readonly tools?: {
|
|
1971
|
-
readonly [x: string]: boolean;
|
|
1972
|
-
} | undefined;
|
|
1973
|
-
readonly system?: string | undefined;
|
|
1974
|
-
readonly summary?: {
|
|
1975
|
-
readonly diffs: readonly {
|
|
1976
|
-
readonly additions: number;
|
|
1977
|
-
readonly deletions: number;
|
|
1978
|
-
readonly status?: "added" | "deleted" | "modified" | undefined;
|
|
1979
|
-
readonly file?: string | undefined;
|
|
1980
|
-
readonly patch?: string | undefined;
|
|
1981
|
-
}[];
|
|
1982
|
-
readonly body?: string | undefined;
|
|
1983
|
-
readonly title?: string | undefined;
|
|
1984
|
-
} | undefined;
|
|
1985
|
-
readonly format?: import("@opencode-ai/schema/session-v1").OutputFormatText | import("@opencode-ai/schema/session-v1").OutputFormatJsonSchema | undefined;
|
|
1986
|
-
} | {
|
|
1987
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
1988
|
-
readonly mode: string;
|
|
1989
|
-
readonly path: {
|
|
1990
|
-
readonly cwd: string;
|
|
1991
|
-
readonly root: string;
|
|
1992
|
-
};
|
|
1993
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1994
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1995
|
-
readonly time: {
|
|
1996
|
-
readonly created: number;
|
|
1997
|
-
readonly completed?: number | undefined;
|
|
1998
|
-
};
|
|
1999
|
-
readonly cost: number;
|
|
2000
|
-
readonly modelID: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2001
|
-
readonly agent: string;
|
|
2002
|
-
readonly tokens: {
|
|
2003
|
-
readonly reasoning: number;
|
|
2004
|
-
readonly input: number;
|
|
2005
|
-
readonly output: number;
|
|
2006
|
-
readonly cache: {
|
|
2007
|
-
readonly read: number;
|
|
2008
|
-
readonly write: number;
|
|
2009
|
-
};
|
|
2010
|
-
readonly total?: number | undefined;
|
|
2011
|
-
};
|
|
2012
|
-
readonly parentID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2013
|
-
readonly role: "assistant";
|
|
2014
|
-
readonly error?: {
|
|
2015
|
-
readonly name: "APIError";
|
|
2016
|
-
readonly data: {
|
|
2017
|
-
readonly message: string;
|
|
2018
|
-
readonly isRetryable: boolean;
|
|
2019
|
-
readonly metadata?: {
|
|
2020
|
-
readonly [x: string]: string;
|
|
2021
|
-
} | undefined;
|
|
2022
|
-
readonly statusCode?: number | undefined;
|
|
2023
|
-
readonly responseHeaders?: {
|
|
2024
|
-
readonly [x: string]: string;
|
|
2025
|
-
} | undefined;
|
|
2026
|
-
readonly responseBody?: string | undefined;
|
|
2027
|
-
};
|
|
2028
|
-
} | {
|
|
2029
|
-
readonly name: "ProviderAuthError";
|
|
2030
|
-
readonly data: {
|
|
2031
|
-
readonly providerID: string;
|
|
2032
|
-
readonly message: string;
|
|
2033
|
-
};
|
|
2034
|
-
} | {
|
|
2035
|
-
readonly name: "UnknownError";
|
|
2036
|
-
readonly data: {
|
|
2037
|
-
readonly message: string;
|
|
2038
|
-
readonly ref?: string | undefined;
|
|
2039
|
-
};
|
|
2040
|
-
} | {
|
|
2041
|
-
readonly name: "MessageOutputLengthError";
|
|
2042
|
-
readonly data: {};
|
|
2043
|
-
} | {
|
|
2044
|
-
readonly name: "MessageAbortedError";
|
|
2045
|
-
readonly data: {
|
|
2046
|
-
readonly message: string;
|
|
2047
|
-
};
|
|
2048
|
-
} | {
|
|
2049
|
-
readonly name: "StructuredOutputError";
|
|
2050
|
-
readonly data: {
|
|
2051
|
-
readonly message: string;
|
|
2052
|
-
readonly retries: number;
|
|
2053
|
-
};
|
|
2054
|
-
} | {
|
|
2055
|
-
readonly name: "ContextOverflowError";
|
|
2056
|
-
readonly data: {
|
|
2057
|
-
readonly message: string;
|
|
2058
|
-
readonly responseBody?: string | undefined;
|
|
2059
|
-
};
|
|
2060
|
-
} | {
|
|
2061
|
-
readonly name: "ContentFilterError";
|
|
2062
|
-
readonly data: {
|
|
2063
|
-
readonly message: string;
|
|
2064
|
-
};
|
|
2065
|
-
} | undefined;
|
|
2066
|
-
readonly variant?: string | undefined;
|
|
2067
|
-
readonly finish?: string | undefined;
|
|
2068
|
-
readonly summary?: boolean | undefined;
|
|
2069
|
-
readonly structured?: any;
|
|
2070
|
-
};
|
|
2071
|
-
};
|
|
2072
|
-
readonly durable: {
|
|
2073
|
-
readonly aggregateID: string;
|
|
2074
|
-
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
2075
|
-
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
2076
|
-
};
|
|
2077
|
-
readonly type: "message.updated";
|
|
2078
|
-
readonly created: import("effect/DateTime").Utc;
|
|
2079
|
-
readonly location?: {
|
|
2080
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
2081
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
2082
|
-
} | undefined;
|
|
2083
|
-
readonly metadata?: {
|
|
2084
|
-
readonly [x: string]: unknown;
|
|
2085
|
-
} | undefined;
|
|
2086
|
-
} | {
|
|
2087
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
2088
|
-
readonly data: {
|
|
2089
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2090
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2091
|
-
};
|
|
2092
|
-
readonly durable: {
|
|
2093
|
-
readonly aggregateID: string;
|
|
2094
|
-
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
2095
|
-
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
2096
|
-
};
|
|
2097
|
-
readonly type: "message.removed";
|
|
2098
|
-
readonly created: import("effect/DateTime").Utc;
|
|
2099
|
-
readonly location?: {
|
|
2100
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
2101
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
2102
|
-
} | undefined;
|
|
2103
|
-
readonly metadata?: {
|
|
2104
|
-
readonly [x: string]: unknown;
|
|
2105
|
-
} | undefined;
|
|
2106
|
-
} | {
|
|
2107
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
2108
|
-
readonly data: {
|
|
2109
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2110
|
-
readonly part: {
|
|
2111
|
-
readonly type: "snapshot";
|
|
2112
|
-
readonly snapshot: string;
|
|
2113
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2114
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2115
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2116
|
-
} | {
|
|
2117
|
-
readonly type: "patch";
|
|
2118
|
-
readonly hash: string;
|
|
2119
|
-
readonly files: readonly string[];
|
|
2120
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2121
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2122
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2123
|
-
} | {
|
|
2124
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2125
|
-
readonly type: "text";
|
|
2126
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2127
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2128
|
-
readonly text: string;
|
|
2129
|
-
readonly metadata?: {
|
|
2130
|
-
readonly [x: string]: any;
|
|
2131
|
-
} | undefined;
|
|
2132
|
-
readonly time?: {
|
|
2133
|
-
readonly start: number;
|
|
2134
|
-
readonly end?: number | undefined;
|
|
2135
|
-
} | undefined;
|
|
2136
|
-
readonly synthetic?: boolean | undefined;
|
|
2137
|
-
readonly ignored?: boolean | undefined;
|
|
2138
|
-
} | {
|
|
2139
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2140
|
-
readonly type: "reasoning";
|
|
2141
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2142
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2143
|
-
readonly text: string;
|
|
2144
|
-
readonly time: {
|
|
2145
|
-
readonly start: number;
|
|
2146
|
-
readonly end?: number | undefined;
|
|
2147
|
-
};
|
|
2148
|
-
readonly metadata?: {
|
|
2149
|
-
readonly [x: string]: any;
|
|
2150
|
-
} | undefined;
|
|
2151
|
-
} | {
|
|
2152
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2153
|
-
readonly type: "file";
|
|
2154
|
-
readonly url: string;
|
|
2155
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2156
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2157
|
-
readonly mime: string;
|
|
2158
|
-
readonly source?: {
|
|
2159
|
-
readonly type: "file";
|
|
2160
|
-
readonly path: string;
|
|
2161
|
-
readonly text: {
|
|
2162
|
-
readonly value: string;
|
|
2163
|
-
readonly start: number;
|
|
2164
|
-
readonly end: number;
|
|
2165
|
-
};
|
|
2166
|
-
} | {
|
|
2167
|
-
readonly type: "symbol";
|
|
2168
|
-
readonly path: string;
|
|
2169
|
-
readonly range: {
|
|
2170
|
-
readonly start: {
|
|
2171
|
-
readonly line: number;
|
|
2172
|
-
readonly character: number;
|
|
2173
|
-
};
|
|
2174
|
-
readonly end: {
|
|
2175
|
-
readonly line: number;
|
|
2176
|
-
readonly character: number;
|
|
2177
|
-
};
|
|
2178
|
-
};
|
|
2179
|
-
readonly name: string;
|
|
2180
|
-
readonly kind: number;
|
|
2181
|
-
readonly text: {
|
|
2182
|
-
readonly value: string;
|
|
2183
|
-
readonly start: number;
|
|
2184
|
-
readonly end: number;
|
|
2185
|
-
};
|
|
2186
|
-
} | {
|
|
2187
|
-
readonly type: "resource";
|
|
2188
|
-
readonly clientName: string;
|
|
2189
|
-
readonly uri: string;
|
|
2190
|
-
readonly text: {
|
|
2191
|
-
readonly value: string;
|
|
2192
|
-
readonly start: number;
|
|
2193
|
-
readonly end: number;
|
|
2194
|
-
};
|
|
2195
|
-
} | undefined;
|
|
2196
|
-
readonly filename?: string | undefined;
|
|
2197
|
-
} | {
|
|
2198
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2199
|
-
readonly type: "agent";
|
|
2200
|
-
readonly name: string;
|
|
2201
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2202
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2203
|
-
readonly source?: {
|
|
2204
|
-
readonly value: string;
|
|
2205
|
-
readonly start: number;
|
|
2206
|
-
readonly end: number;
|
|
2207
|
-
} | undefined;
|
|
2208
|
-
} | {
|
|
2209
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2210
|
-
readonly type: "compaction";
|
|
2211
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2212
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2213
|
-
readonly auto: boolean;
|
|
2214
|
-
readonly overflow?: boolean | undefined;
|
|
2215
|
-
readonly tail_start_id?: (string & import("effect/Brand").Brand<"SessionV1.MessageID">) | undefined;
|
|
2216
|
-
} | {
|
|
2217
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2218
|
-
readonly type: "subtask";
|
|
2219
|
-
readonly description: string;
|
|
2220
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2221
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2222
|
-
readonly prompt: string;
|
|
2223
|
-
readonly agent: string;
|
|
2224
|
-
readonly command?: string | undefined;
|
|
2225
|
-
readonly model?: {
|
|
2226
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2227
|
-
readonly modelID: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2228
|
-
} | undefined;
|
|
2229
|
-
} | {
|
|
2230
|
-
readonly type: "retry";
|
|
2231
|
-
readonly attempt: number;
|
|
2232
|
-
readonly error: {
|
|
2233
|
-
readonly name: "APIError";
|
|
2234
|
-
readonly data: {
|
|
2235
|
-
readonly message: string;
|
|
2236
|
-
readonly isRetryable: boolean;
|
|
2237
|
-
readonly metadata?: {
|
|
2238
|
-
readonly [x: string]: string;
|
|
2239
|
-
} | undefined;
|
|
2240
|
-
readonly statusCode?: number | undefined;
|
|
2241
|
-
readonly responseHeaders?: {
|
|
2242
|
-
readonly [x: string]: string;
|
|
2243
|
-
} | undefined;
|
|
2244
|
-
readonly responseBody?: string | undefined;
|
|
2245
|
-
};
|
|
2246
|
-
};
|
|
2247
|
-
readonly time: {
|
|
2248
|
-
readonly created: number;
|
|
2249
|
-
};
|
|
2250
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2251
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2252
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2253
|
-
} | {
|
|
2254
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2255
|
-
readonly type: "step-start";
|
|
2256
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2257
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2258
|
-
readonly snapshot?: string | undefined;
|
|
2259
|
-
} | {
|
|
2260
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2261
|
-
readonly type: "step-finish";
|
|
2262
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2263
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2264
|
-
readonly cost: number;
|
|
2265
|
-
readonly tokens: {
|
|
2266
|
-
readonly reasoning: number;
|
|
2267
|
-
readonly input: number;
|
|
2268
|
-
readonly output: number;
|
|
2269
|
-
readonly cache: {
|
|
2270
|
-
readonly read: number;
|
|
2271
|
-
readonly write: number;
|
|
2272
|
-
};
|
|
2273
|
-
readonly total?: number | undefined;
|
|
2274
|
-
};
|
|
2275
|
-
readonly reason: string;
|
|
2276
|
-
readonly snapshot?: string | undefined;
|
|
2277
|
-
} | {
|
|
2278
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2279
|
-
readonly type: "tool";
|
|
2280
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2281
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2282
|
-
readonly tool: string;
|
|
2283
|
-
readonly state: {
|
|
2284
|
-
readonly status: "pending";
|
|
2285
|
-
readonly input: {
|
|
2286
|
-
readonly [x: string]: any;
|
|
2287
|
-
};
|
|
2288
|
-
readonly raw: string;
|
|
2289
|
-
} | {
|
|
2290
|
-
readonly time: {
|
|
2291
|
-
readonly start: number;
|
|
2292
|
-
};
|
|
2293
|
-
readonly status: "running";
|
|
2294
|
-
readonly input: {
|
|
2295
|
-
readonly [x: string]: any;
|
|
2296
|
-
};
|
|
2297
|
-
readonly metadata?: {
|
|
2298
|
-
readonly [x: string]: any;
|
|
2299
|
-
} | undefined;
|
|
2300
|
-
readonly title?: string | undefined;
|
|
2301
|
-
} | {
|
|
2302
|
-
readonly metadata: {
|
|
2303
|
-
readonly [x: string]: any;
|
|
2304
|
-
};
|
|
2305
|
-
readonly time: {
|
|
2306
|
-
readonly start: number;
|
|
2307
|
-
readonly end: number;
|
|
2308
|
-
readonly compacted?: number | undefined;
|
|
2309
|
-
};
|
|
2310
|
-
readonly status: "completed";
|
|
2311
|
-
readonly input: {
|
|
2312
|
-
readonly [x: string]: any;
|
|
2313
|
-
};
|
|
2314
|
-
readonly output: string;
|
|
2315
|
-
readonly title: string;
|
|
2316
|
-
readonly attachments?: readonly {
|
|
2317
|
-
readonly id: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2318
|
-
readonly type: "file";
|
|
2319
|
-
readonly url: string;
|
|
2320
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2321
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2322
|
-
readonly mime: string;
|
|
2323
|
-
readonly source?: {
|
|
2324
|
-
readonly type: "file";
|
|
2325
|
-
readonly path: string;
|
|
2326
|
-
readonly text: {
|
|
2327
|
-
readonly value: string;
|
|
2328
|
-
readonly start: number;
|
|
2329
|
-
readonly end: number;
|
|
2330
|
-
};
|
|
2331
|
-
} | {
|
|
2332
|
-
readonly type: "symbol";
|
|
2333
|
-
readonly path: string;
|
|
2334
|
-
readonly range: {
|
|
2335
|
-
readonly start: {
|
|
2336
|
-
readonly line: number;
|
|
2337
|
-
readonly character: number;
|
|
2338
|
-
};
|
|
2339
|
-
readonly end: {
|
|
2340
|
-
readonly line: number;
|
|
2341
|
-
readonly character: number;
|
|
2342
|
-
};
|
|
2343
|
-
};
|
|
2344
|
-
readonly name: string;
|
|
2345
|
-
readonly kind: number;
|
|
2346
|
-
readonly text: {
|
|
2347
|
-
readonly value: string;
|
|
2348
|
-
readonly start: number;
|
|
2349
|
-
readonly end: number;
|
|
2350
|
-
};
|
|
2351
|
-
} | {
|
|
2352
|
-
readonly type: "resource";
|
|
2353
|
-
readonly clientName: string;
|
|
2354
|
-
readonly uri: string;
|
|
2355
|
-
readonly text: {
|
|
2356
|
-
readonly value: string;
|
|
2357
|
-
readonly start: number;
|
|
2358
|
-
readonly end: number;
|
|
2359
|
-
};
|
|
2360
|
-
} | undefined;
|
|
2361
|
-
readonly filename?: string | undefined;
|
|
2362
|
-
}[] | undefined;
|
|
2363
|
-
} | {
|
|
2364
|
-
readonly error: string;
|
|
2365
|
-
readonly time: {
|
|
2366
|
-
readonly start: number;
|
|
2367
|
-
readonly end: number;
|
|
2368
|
-
};
|
|
2369
|
-
readonly status: "error";
|
|
2370
|
-
readonly input: {
|
|
2371
|
-
readonly [x: string]: any;
|
|
2372
|
-
};
|
|
2373
|
-
readonly metadata?: {
|
|
2374
|
-
readonly [x: string]: any;
|
|
2375
|
-
} | undefined;
|
|
2376
|
-
};
|
|
2377
|
-
readonly callID: string;
|
|
2378
|
-
readonly metadata?: {
|
|
2379
|
-
readonly [x: string]: any;
|
|
2380
|
-
} | undefined;
|
|
2381
|
-
};
|
|
2382
|
-
readonly time: number;
|
|
2383
|
-
};
|
|
2384
|
-
readonly durable: {
|
|
2385
|
-
readonly aggregateID: string;
|
|
2386
|
-
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
2387
|
-
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
2388
|
-
};
|
|
2389
|
-
readonly type: "message.part.updated";
|
|
2390
|
-
readonly created: import("effect/DateTime").Utc;
|
|
2391
|
-
readonly location?: {
|
|
2392
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
2393
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
2394
|
-
} | undefined;
|
|
2395
|
-
readonly metadata?: {
|
|
2396
|
-
readonly [x: string]: unknown;
|
|
2397
|
-
} | undefined;
|
|
2398
|
-
} | {
|
|
2399
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
2400
|
-
readonly data: {
|
|
2401
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2402
|
-
readonly messageID: string & import("effect/Brand").Brand<"SessionV1.MessageID">;
|
|
2403
|
-
readonly partID: string & import("effect/Brand").Brand<"SessionV1.PartID">;
|
|
2404
|
-
};
|
|
2405
|
-
readonly durable: {
|
|
2406
|
-
readonly aggregateID: string;
|
|
2407
|
-
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
2408
|
-
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
2409
|
-
};
|
|
2410
|
-
readonly type: "message.part.removed";
|
|
2411
|
-
readonly created: import("effect/DateTime").Utc;
|
|
2412
|
-
readonly location?: {
|
|
2413
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
2414
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
2415
|
-
} | undefined;
|
|
2416
|
-
readonly metadata?: {
|
|
2417
|
-
readonly [x: string]: unknown;
|
|
2418
|
-
} | undefined;
|
|
2419
|
-
} | {
|
|
2420
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
2421
|
-
readonly data: {
|
|
2422
|
-
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
2423
|
-
readonly error?: {
|
|
2424
|
-
readonly name: "APIError";
|
|
2425
|
-
readonly data: {
|
|
2426
|
-
readonly message: string;
|
|
2427
|
-
readonly isRetryable: boolean;
|
|
2428
|
-
readonly metadata?: {
|
|
2429
|
-
readonly [x: string]: string;
|
|
2430
|
-
} | undefined;
|
|
2431
|
-
readonly statusCode?: number | undefined;
|
|
2432
|
-
readonly responseHeaders?: {
|
|
2433
|
-
readonly [x: string]: string;
|
|
2434
|
-
} | undefined;
|
|
2435
|
-
readonly responseBody?: string | undefined;
|
|
2436
|
-
};
|
|
2437
|
-
} | {
|
|
2438
|
-
readonly name: "ProviderAuthError";
|
|
2439
|
-
readonly data: {
|
|
2440
|
-
readonly providerID: string;
|
|
2441
|
-
readonly message: string;
|
|
2442
|
-
};
|
|
2443
|
-
} | {
|
|
2444
|
-
readonly name: "UnknownError";
|
|
2445
|
-
readonly data: {
|
|
2446
|
-
readonly message: string;
|
|
2447
|
-
readonly ref?: string | undefined;
|
|
2448
|
-
};
|
|
2449
|
-
} | {
|
|
2450
|
-
readonly name: "MessageOutputLengthError";
|
|
2451
|
-
readonly data: {};
|
|
2452
|
-
} | {
|
|
2453
|
-
readonly name: "MessageAbortedError";
|
|
2454
|
-
readonly data: {
|
|
2455
|
-
readonly message: string;
|
|
2456
|
-
};
|
|
2457
|
-
} | {
|
|
2458
|
-
readonly name: "StructuredOutputError";
|
|
2459
|
-
readonly data: {
|
|
2460
|
-
readonly message: string;
|
|
2461
|
-
readonly retries: number;
|
|
2462
|
-
};
|
|
2463
|
-
} | {
|
|
2464
|
-
readonly name: "ContextOverflowError";
|
|
2465
|
-
readonly data: {
|
|
2466
|
-
readonly message: string;
|
|
2467
|
-
readonly responseBody?: string | undefined;
|
|
2468
|
-
};
|
|
2469
|
-
} | {
|
|
2470
|
-
readonly name: "ContentFilterError";
|
|
2471
|
-
readonly data: {
|
|
2472
|
-
readonly message: string;
|
|
2473
|
-
};
|
|
2474
|
-
} | undefined;
|
|
2475
|
-
};
|
|
2476
|
-
readonly type: "session.error";
|
|
2477
|
-
readonly created: import("effect/DateTime").Utc;
|
|
2478
|
-
readonly location?: {
|
|
2479
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
2480
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
2481
|
-
} | undefined;
|
|
2482
|
-
readonly metadata?: {
|
|
2483
|
-
readonly [x: string]: unknown;
|
|
2484
|
-
} | undefined;
|
|
2485
1745
|
} | {
|
|
2486
1746
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
2487
1747
|
readonly data: {
|
|
@@ -2923,8 +2183,13 @@ export declare const make: (options?: {
|
|
|
2923
2183
|
evict: (input?: Endpoint26_1Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
|
|
2924
2184
|
};
|
|
2925
2185
|
};
|
|
2186
|
+
migration: {
|
|
2187
|
+
v1: {
|
|
2188
|
+
status: () => Effect.Effect<Endpoint27_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
|
|
2189
|
+
};
|
|
2190
|
+
};
|
|
2926
2191
|
websearch: {
|
|
2927
|
-
providers: (input?:
|
|
2928
|
-
query: (input:
|
|
2192
|
+
providers: (input?: Endpoint28_0Input) => Effect.Effect<Endpoint28_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | ClientError | HttpClientError.HttpClientError, never>;
|
|
2193
|
+
query: (input: Endpoint28_1Input) => Effect.Effect<Endpoint28_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | ClientError | HttpClientError.HttpClientError, never>;
|
|
2929
2194
|
};
|
|
2930
2195
|
}, never, import("effect/unstable/http/HttpClient").HttpClient>;
|