@opencode/schema 2.0.22 → 2.0.24

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.
@@ -1584,509 +1584,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1584
1584
  };
1585
1585
  }>]>;
1586
1586
  export type Info = User | Assistant;
1587
- export declare const WithParts: Schema.Struct<{
1588
- readonly info: Schema.Union<readonly [Schema.Struct<{
1589
- readonly role: Schema.Literal<"user">;
1590
- readonly time: Schema.Struct<{
1591
- readonly created: Schema.Finite;
1592
- }>;
1593
- readonly format: Schema.optional<Schema.Union<readonly [typeof OutputFormatText, typeof OutputFormatJsonSchema]>>;
1594
- readonly summary: Schema.optional<Schema.Struct<{
1595
- readonly title: Schema.optional<Schema.String>;
1596
- readonly body: Schema.optional<Schema.String>;
1597
- readonly diffs: Schema.$Array<Schema.Struct<{
1598
- readonly file: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1599
- readonly patch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1600
- readonly additions: Schema.Finite;
1601
- readonly deletions: Schema.Finite;
1602
- readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["added", "deleted", "modified"]>>>, Schema.optionalKey<Schema.Literals<readonly ["added", "deleted", "modified"]>>, never, never>;
1603
- }>>;
1604
- }>>;
1605
- readonly agent: Schema.String;
1606
- readonly model: Schema.Struct<{
1607
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
1608
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
1609
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
1610
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
1611
- google: string & import("effect/Brand").Brand<"Provider.ID">;
1612
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1613
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1614
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1615
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
1616
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
1617
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
1618
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
1619
- };
1620
- readonly modelID: Schema.brand<Schema.String, "Model.ID">;
1621
- readonly variant: Schema.optional<Schema.String>;
1622
- }>;
1623
- readonly system: Schema.optional<Schema.String>;
1624
- readonly tools: Schema.optional<Schema.$Record<Schema.String, Schema.Boolean>>;
1625
- readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1626
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1627
- };
1628
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1629
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1630
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1631
- };
1632
- }>, Schema.Struct<{
1633
- readonly role: Schema.Literal<"assistant">;
1634
- readonly time: Schema.Struct<{
1635
- readonly created: Schema.Int;
1636
- readonly completed: Schema.optional<Schema.Int>;
1637
- }>;
1638
- readonly error: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1639
- readonly name: Schema.Literal<"ProviderAuthError">;
1640
- readonly data: Schema.Struct<{
1641
- providerID: Schema.String;
1642
- message: Schema.String;
1643
- }>;
1644
- }>, Schema.Struct<{
1645
- readonly name: Schema.Literal<"UnknownError">;
1646
- readonly data: Schema.Struct<{
1647
- message: Schema.String;
1648
- ref: Schema.optional<Schema.String>;
1649
- }>;
1650
- }>, Schema.Struct<{
1651
- readonly name: Schema.Literal<"MessageOutputLengthError">;
1652
- readonly data: Schema.Struct<{}>;
1653
- }>, Schema.Struct<{
1654
- readonly name: Schema.Literal<"MessageAbortedError">;
1655
- readonly data: Schema.Struct<{
1656
- message: Schema.String;
1657
- }>;
1658
- }>, Schema.Struct<{
1659
- readonly name: Schema.Literal<"StructuredOutputError">;
1660
- readonly data: Schema.Struct<{
1661
- message: Schema.String;
1662
- retries: Schema.Int;
1663
- }>;
1664
- }>, Schema.Struct<{
1665
- readonly name: Schema.Literal<"ContextOverflowError">;
1666
- readonly data: Schema.Struct<{
1667
- message: Schema.String;
1668
- responseBody: Schema.optional<Schema.String>;
1669
- }>;
1670
- }>, Schema.Struct<{
1671
- readonly name: Schema.Literal<"ContentFilterError">;
1672
- readonly data: Schema.Struct<{
1673
- message: Schema.String;
1674
- }>;
1675
- }>, Schema.Struct<{
1676
- readonly name: Schema.Literal<"APIError">;
1677
- readonly data: Schema.Struct<{
1678
- message: Schema.String;
1679
- statusCode: Schema.optional<Schema.Int>;
1680
- isRetryable: Schema.Boolean;
1681
- responseHeaders: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
1682
- responseBody: Schema.optional<Schema.String>;
1683
- metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
1684
- }>;
1685
- }>]>>;
1686
- readonly parentID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1687
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1688
- };
1689
- readonly modelID: Schema.brand<Schema.String, "Model.ID">;
1690
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
1691
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
1692
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
1693
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
1694
- google: string & import("effect/Brand").Brand<"Provider.ID">;
1695
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1696
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1697
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1698
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
1699
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
1700
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
1701
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
1702
- };
1703
- readonly mode: Schema.String;
1704
- readonly agent: Schema.String;
1705
- readonly path: Schema.Struct<{
1706
- readonly cwd: Schema.String;
1707
- readonly root: Schema.String;
1708
- }>;
1709
- readonly summary: Schema.optional<Schema.Boolean>;
1710
- readonly cost: Schema.Finite;
1711
- readonly tokens: Schema.Struct<{
1712
- readonly total: Schema.optional<Schema.Finite>;
1713
- readonly input: Schema.Finite;
1714
- readonly output: Schema.Finite;
1715
- readonly reasoning: Schema.Finite;
1716
- readonly cache: Schema.Struct<{
1717
- readonly read: Schema.Finite;
1718
- readonly write: Schema.Finite;
1719
- }>;
1720
- }>;
1721
- readonly structured: Schema.optional<Schema.Any>;
1722
- readonly variant: Schema.optional<Schema.String>;
1723
- readonly finish: Schema.optional<Schema.String>;
1724
- readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1725
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1726
- };
1727
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1728
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1729
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1730
- };
1731
- }>]>;
1732
- readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1733
- readonly type: Schema.Literal<"text">;
1734
- readonly text: Schema.String;
1735
- readonly synthetic: Schema.optional<Schema.Boolean>;
1736
- readonly ignored: Schema.optional<Schema.Boolean>;
1737
- readonly time: Schema.optional<Schema.Struct<{
1738
- readonly start: Schema.Int;
1739
- readonly end: Schema.optional<Schema.Int>;
1740
- }>>;
1741
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
1742
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1743
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1744
- };
1745
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1746
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1747
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1748
- };
1749
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1750
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1751
- };
1752
- }>, Schema.Struct<{
1753
- readonly type: Schema.Literal<"subtask">;
1754
- readonly prompt: Schema.String;
1755
- readonly description: Schema.String;
1756
- readonly agent: Schema.String;
1757
- readonly model: Schema.optional<Schema.Struct<{
1758
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
1759
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
1760
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
1761
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
1762
- google: string & import("effect/Brand").Brand<"Provider.ID">;
1763
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
1764
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
1765
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
1766
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
1767
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
1768
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
1769
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
1770
- };
1771
- readonly modelID: Schema.brand<Schema.String, "Model.ID">;
1772
- }>>;
1773
- readonly command: Schema.optional<Schema.String>;
1774
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1775
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1776
- };
1777
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1778
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1779
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1780
- };
1781
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1782
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1783
- };
1784
- }>, Schema.Struct<{
1785
- readonly type: Schema.Literal<"reasoning">;
1786
- readonly text: Schema.String;
1787
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
1788
- readonly time: Schema.Struct<{
1789
- readonly start: Schema.Int;
1790
- readonly end: Schema.optional<Schema.Int>;
1791
- }>;
1792
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1793
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1794
- };
1795
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1796
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1797
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1798
- };
1799
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1800
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1801
- };
1802
- }>, Schema.Struct<{
1803
- readonly type: Schema.Literal<"file">;
1804
- readonly mime: Schema.String;
1805
- readonly filename: Schema.optional<Schema.String>;
1806
- readonly url: Schema.String;
1807
- readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1808
- readonly type: Schema.Literal<"file">;
1809
- readonly path: Schema.String;
1810
- readonly text: Schema.Struct<{
1811
- readonly value: Schema.String;
1812
- readonly start: Schema.Finite;
1813
- readonly end: Schema.Finite;
1814
- }>;
1815
- }>, Schema.Struct<{
1816
- readonly type: Schema.Literal<"symbol">;
1817
- readonly path: Schema.String;
1818
- readonly range: Schema.Struct<{
1819
- readonly start: Schema.Struct<{
1820
- readonly line: Schema.Int;
1821
- readonly character: Schema.Int;
1822
- }>;
1823
- readonly end: Schema.Struct<{
1824
- readonly line: Schema.Int;
1825
- readonly character: Schema.Int;
1826
- }>;
1827
- }>;
1828
- readonly name: Schema.String;
1829
- readonly kind: Schema.Int;
1830
- readonly text: Schema.Struct<{
1831
- readonly value: Schema.String;
1832
- readonly start: Schema.Finite;
1833
- readonly end: Schema.Finite;
1834
- }>;
1835
- }>, Schema.Struct<{
1836
- readonly type: Schema.Literal<"resource">;
1837
- readonly clientName: Schema.String;
1838
- readonly uri: Schema.String;
1839
- readonly text: Schema.Struct<{
1840
- readonly value: Schema.String;
1841
- readonly start: Schema.Finite;
1842
- readonly end: Schema.Finite;
1843
- }>;
1844
- }>]>>;
1845
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1846
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1847
- };
1848
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1849
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1850
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1851
- };
1852
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1853
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1854
- };
1855
- }>, Schema.Struct<{
1856
- readonly type: Schema.Literal<"tool">;
1857
- readonly callID: Schema.String;
1858
- readonly tool: Schema.String;
1859
- readonly state: Schema.Union<readonly [Schema.Struct<{
1860
- readonly status: Schema.Literal<"pending">;
1861
- readonly input: Schema.$Record<Schema.String, Schema.Any>;
1862
- readonly raw: Schema.String;
1863
- }>, Schema.Struct<{
1864
- readonly status: Schema.Literal<"running">;
1865
- readonly input: Schema.$Record<Schema.String, Schema.Any>;
1866
- readonly title: Schema.optional<Schema.String>;
1867
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
1868
- readonly time: Schema.Struct<{
1869
- readonly start: Schema.Int;
1870
- }>;
1871
- }>, Schema.Struct<{
1872
- readonly status: Schema.Literal<"completed">;
1873
- readonly input: Schema.$Record<Schema.String, Schema.Any>;
1874
- readonly output: Schema.String;
1875
- readonly title: Schema.String;
1876
- readonly metadata: Schema.$Record<Schema.String, Schema.Any>;
1877
- readonly time: Schema.Struct<{
1878
- readonly start: Schema.Int;
1879
- readonly end: Schema.Int;
1880
- readonly compacted: Schema.optional<Schema.Int>;
1881
- }>;
1882
- readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
1883
- readonly type: Schema.Literal<"file">;
1884
- readonly mime: Schema.String;
1885
- readonly filename: Schema.optional<Schema.String>;
1886
- readonly url: Schema.String;
1887
- readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1888
- readonly type: Schema.Literal<"file">;
1889
- readonly path: Schema.String;
1890
- readonly text: Schema.Struct<{
1891
- readonly value: Schema.String;
1892
- readonly start: Schema.Finite;
1893
- readonly end: Schema.Finite;
1894
- }>;
1895
- }>, Schema.Struct<{
1896
- readonly type: Schema.Literal<"symbol">;
1897
- readonly path: Schema.String;
1898
- readonly range: Schema.Struct<{
1899
- readonly start: Schema.Struct<{
1900
- readonly line: Schema.Int;
1901
- readonly character: Schema.Int;
1902
- }>;
1903
- readonly end: Schema.Struct<{
1904
- readonly line: Schema.Int;
1905
- readonly character: Schema.Int;
1906
- }>;
1907
- }>;
1908
- readonly name: Schema.String;
1909
- readonly kind: Schema.Int;
1910
- readonly text: Schema.Struct<{
1911
- readonly value: Schema.String;
1912
- readonly start: Schema.Finite;
1913
- readonly end: Schema.Finite;
1914
- }>;
1915
- }>, Schema.Struct<{
1916
- readonly type: Schema.Literal<"resource">;
1917
- readonly clientName: Schema.String;
1918
- readonly uri: Schema.String;
1919
- readonly text: Schema.Struct<{
1920
- readonly value: Schema.String;
1921
- readonly start: Schema.Finite;
1922
- readonly end: Schema.Finite;
1923
- }>;
1924
- }>]>>;
1925
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1926
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1927
- };
1928
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1929
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1930
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1931
- };
1932
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1933
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1934
- };
1935
- }>>>;
1936
- }>, Schema.Struct<{
1937
- readonly status: Schema.Literal<"error">;
1938
- readonly input: Schema.$Record<Schema.String, Schema.Any>;
1939
- readonly error: Schema.String;
1940
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
1941
- readonly time: Schema.Struct<{
1942
- readonly start: Schema.Int;
1943
- readonly end: Schema.Int;
1944
- }>;
1945
- }>]>;
1946
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
1947
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1948
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1949
- };
1950
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1951
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1952
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1953
- };
1954
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1955
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1956
- };
1957
- }>, Schema.Struct<{
1958
- readonly type: Schema.Literal<"step-start">;
1959
- readonly snapshot: Schema.optional<Schema.String>;
1960
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1961
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1962
- };
1963
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1964
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1965
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1966
- };
1967
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1968
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1969
- };
1970
- }>, Schema.Struct<{
1971
- readonly type: Schema.Literal<"step-finish">;
1972
- readonly reason: Schema.String;
1973
- readonly snapshot: Schema.optional<Schema.String>;
1974
- readonly cost: Schema.Finite;
1975
- readonly tokens: Schema.Struct<{
1976
- readonly total: Schema.optional<Schema.Finite>;
1977
- readonly input: Schema.Finite;
1978
- readonly output: Schema.Finite;
1979
- readonly reasoning: Schema.Finite;
1980
- readonly cache: Schema.Struct<{
1981
- readonly read: Schema.Finite;
1982
- readonly write: Schema.Finite;
1983
- }>;
1984
- }>;
1985
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1986
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1987
- };
1988
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1989
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1990
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1991
- };
1992
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1993
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1994
- };
1995
- }>, Schema.Struct<{
1996
- readonly type: Schema.Literal<"snapshot">;
1997
- readonly snapshot: Schema.String;
1998
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1999
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
2000
- };
2001
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2002
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2003
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2004
- };
2005
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
2006
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
2007
- };
2008
- }>, Schema.Struct<{
2009
- readonly type: Schema.Literal<"patch">;
2010
- readonly hash: Schema.String;
2011
- readonly files: Schema.$Array<Schema.String>;
2012
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
2013
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
2014
- };
2015
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2016
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2017
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2018
- };
2019
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
2020
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
2021
- };
2022
- }>, Schema.Struct<{
2023
- readonly type: Schema.Literal<"agent">;
2024
- readonly name: Schema.String;
2025
- readonly source: Schema.optional<Schema.Struct<{
2026
- readonly value: Schema.String;
2027
- readonly start: Schema.Int;
2028
- readonly end: Schema.Int;
2029
- }>>;
2030
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
2031
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
2032
- };
2033
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2034
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2035
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2036
- };
2037
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
2038
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
2039
- };
2040
- }>, Schema.Struct<{
2041
- readonly type: Schema.Literal<"retry">;
2042
- readonly attempt: Schema.Int;
2043
- readonly error: Schema.Struct<{
2044
- readonly name: Schema.Literal<"APIError">;
2045
- readonly data: Schema.Struct<{
2046
- message: Schema.String;
2047
- statusCode: Schema.optional<Schema.Int>;
2048
- isRetryable: Schema.Boolean;
2049
- responseHeaders: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
2050
- responseBody: Schema.optional<Schema.String>;
2051
- metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
2052
- }>;
2053
- }>;
2054
- readonly time: Schema.Struct<{
2055
- readonly created: Schema.Int;
2056
- }>;
2057
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
2058
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
2059
- };
2060
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2061
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2062
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2063
- };
2064
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
2065
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
2066
- };
2067
- }>, Schema.Struct<{
2068
- readonly type: Schema.Literal<"compaction">;
2069
- readonly auto: Schema.Boolean;
2070
- readonly overflow: Schema.optional<Schema.Boolean>;
2071
- readonly tail_start_id: Schema.optional<Schema.brand<Schema.String, "SessionV1.MessageID"> & {
2072
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
2073
- }>;
2074
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
2075
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
2076
- };
2077
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2078
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2079
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2080
- };
2081
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
2082
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
2083
- };
2084
- }>]>>;
2085
- }>;
2086
- export type WithParts = {
2087
- info: Info;
2088
- parts: Part[];
2089
- };
2090
1587
  export declare const SessionInfo: Schema.Struct<{
2091
1588
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
2092
1589
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -377,10 +377,6 @@ export const Assistant = Schema.Struct({
377
377
  finish: Schema.optional(Schema.String),
378
378
  }).annotate({ identifier: "SessionV1.AssistantMessage" });
379
379
  export const Info = Schema.Union([User, Assistant]).annotate({ discriminator: "role", identifier: "SessionV1.Message" });
380
- export const WithParts = Schema.Struct({
381
- info: Info,
382
- parts: Schema.Array(Part),
383
- });
384
380
  const options = {
385
381
  durable: {
386
382
  aggregate: "sessionID",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "2.0.22",
4
+ "version": "2.0.24",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -1,76 +0,0 @@
1
- export * as IdeEvent from "./ide-event.js";
2
- import { Schema } from "effect";
3
- export declare const Installed: Schema.Struct<{
4
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
5
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
6
- };
7
- readonly created: Schema.Finite;
8
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
9
- readonly type: Schema.Literal<"ide.installed">;
10
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
13
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
14
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
15
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
16
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
18
- }>, never, never>;
19
- }>>>, Schema.optionalKey<Schema.Struct<{
20
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
21
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
22
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
23
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
24
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
25
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
26
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
27
- }>, never, never>;
28
- }>>, never, never>;
29
- readonly data: Schema.Struct<{
30
- readonly ide: Schema.String;
31
- }>;
32
- }> & {
33
- type: "ide.installed";
34
- durability: "ephemeral";
35
- durable: undefined;
36
- data: Schema.Struct<{
37
- readonly ide: Schema.String;
38
- }>;
39
- };
40
- export declare const Definitions: readonly [Schema.Struct<{
41
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
42
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
43
- };
44
- readonly created: Schema.Finite;
45
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
46
- readonly type: Schema.Literal<"ide.installed">;
47
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
48
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
49
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
50
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
51
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
52
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
53
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
54
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
55
- }>, never, never>;
56
- }>>>, Schema.optionalKey<Schema.Struct<{
57
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
58
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
59
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
60
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
61
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
62
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
63
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
64
- }>, never, never>;
65
- }>>, never, never>;
66
- readonly data: Schema.Struct<{
67
- readonly ide: Schema.String;
68
- }>;
69
- }> & {
70
- type: "ide.installed";
71
- durability: "ephemeral";
72
- durable: undefined;
73
- data: Schema.Struct<{
74
- readonly ide: Schema.String;
75
- }>;
76
- }];
package/dist/ide-event.js DELETED
@@ -1,10 +0,0 @@
1
- export * as IdeEvent from "./ide-event.js";
2
- import { Schema } from "effect";
3
- import { Event } from "./event.js";
4
- export const Installed = Event.ephemeral({
5
- type: "ide.installed",
6
- schema: {
7
- ide: Schema.String,
8
- },
9
- });
10
- export const Definitions = Event.inventory(Installed);
@@ -1 +0,0 @@
1
- export * from "./v1/question.js";
@@ -1 +0,0 @@
1
- export * from "./v1/question.js";