@opencode/client 0.0.0-dev-19557 → 0.0.0-dev-19560
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 +40 -48
- package/dist/effect/client.d.ts +0 -2
- package/dist/effect/generated/client.d.ts +1 -3
- package/dist/effect/generated/client.js +0 -2
- package/dist/promise/client.d.ts +0 -1
- package/dist/promise/generated/client.d.ts +1 -2
- package/dist/promise/generated/client.js +0 -8
- package/dist/promise/generated/types.d.ts +77 -86
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export type AgentListInput = {
|
|
|
62
62
|
} | undefined;
|
|
63
63
|
};
|
|
64
64
|
export type AgentListOutput = {
|
|
65
|
-
readonly location: Location.
|
|
65
|
+
readonly location: Location.PublicRef;
|
|
66
66
|
readonly data: ReadonlyArray<Agent.Info>;
|
|
67
67
|
};
|
|
68
68
|
export type AgentListOperation<E = never> = (input?: AgentListInput) => Effect.Effect<AgentListOutput, E>;
|
|
@@ -73,7 +73,7 @@ export type AgentGetInput = {
|
|
|
73
73
|
} | undefined;
|
|
74
74
|
};
|
|
75
75
|
export type AgentGetOutput = {
|
|
76
|
-
readonly location: Location.
|
|
76
|
+
readonly location: Location.PublicRef;
|
|
77
77
|
readonly data: Agent.Info;
|
|
78
78
|
};
|
|
79
79
|
export type AgentGetOperation<E = never> = (input: AgentGetInput) => Effect.Effect<AgentGetOutput, E>;
|
|
@@ -87,17 +87,10 @@ export type PluginListInput = {
|
|
|
87
87
|
} | undefined;
|
|
88
88
|
};
|
|
89
89
|
export type PluginListOutput = {
|
|
90
|
-
readonly location: Location.
|
|
90
|
+
readonly location: Location.PublicRef;
|
|
91
91
|
readonly data: ReadonlyArray<Plugin.Info>;
|
|
92
92
|
};
|
|
93
93
|
export type PluginListOperation<E = never> = (input?: PluginListInput) => Effect.Effect<PluginListOutput, E>;
|
|
94
|
-
export type PluginAwaitActivationInput = {
|
|
95
|
-
readonly location?: {
|
|
96
|
-
readonly directory?: string | undefined;
|
|
97
|
-
} | undefined;
|
|
98
|
-
};
|
|
99
|
-
export type PluginAwaitActivationOutput = void;
|
|
100
|
-
export type PluginAwaitActivationOperation<E = never> = (input?: PluginAwaitActivationInput) => Effect.Effect<PluginAwaitActivationOutput, E>;
|
|
101
94
|
export type PluginCheckInput = {
|
|
102
95
|
readonly location?: {
|
|
103
96
|
readonly directory?: string | undefined;
|
|
@@ -105,7 +98,7 @@ export type PluginCheckInput = {
|
|
|
105
98
|
readonly target?: string | undefined;
|
|
106
99
|
};
|
|
107
100
|
export type PluginCheckOutput = {
|
|
108
|
-
readonly location: Location.
|
|
101
|
+
readonly location: Location.PublicRef;
|
|
109
102
|
readonly data: ReadonlyArray<Plugin.Info>;
|
|
110
103
|
};
|
|
111
104
|
export type PluginCheckOperation<E = never> = (input?: PluginCheckInput) => Effect.Effect<PluginCheckOutput, E>;
|
|
@@ -119,7 +112,6 @@ export type PluginUpdateOutput = void;
|
|
|
119
112
|
export type PluginUpdateOperation<E = never> = (input: PluginUpdateInput) => Effect.Effect<PluginUpdateOutput, E>;
|
|
120
113
|
export interface PluginApi<E = never> {
|
|
121
114
|
readonly list: PluginListOperation<E>;
|
|
122
|
-
readonly awaitActivation: PluginAwaitActivationOperation<E>;
|
|
123
115
|
readonly check: PluginCheckOperation<E>;
|
|
124
116
|
readonly update: PluginUpdateOperation<E>;
|
|
125
117
|
}
|
|
@@ -1646,7 +1638,7 @@ export type ModelListInput = {
|
|
|
1646
1638
|
} | undefined;
|
|
1647
1639
|
};
|
|
1648
1640
|
export type ModelListOutput = {
|
|
1649
|
-
readonly location: Location.
|
|
1641
|
+
readonly location: Location.PublicRef;
|
|
1650
1642
|
readonly data: ReadonlyArray<Model.Info>;
|
|
1651
1643
|
};
|
|
1652
1644
|
export type ModelListOperation<E = never> = (input?: ModelListInput) => Effect.Effect<ModelListOutput, E>;
|
|
@@ -1656,7 +1648,7 @@ export type ModelDefaultInput = {
|
|
|
1656
1648
|
} | undefined;
|
|
1657
1649
|
};
|
|
1658
1650
|
export type ModelDefaultOutput = {
|
|
1659
|
-
readonly location: Location.
|
|
1651
|
+
readonly location: Location.PublicRef;
|
|
1660
1652
|
readonly data: Model.Info | undefined;
|
|
1661
1653
|
};
|
|
1662
1654
|
export type ModelDefaultOperation<E = never> = (input?: ModelDefaultInput) => Effect.Effect<ModelDefaultOutput, E>;
|
|
@@ -1681,7 +1673,7 @@ export type ProviderListInput = {
|
|
|
1681
1673
|
} | undefined;
|
|
1682
1674
|
};
|
|
1683
1675
|
export type ProviderListOutput = {
|
|
1684
|
-
readonly location: Location.
|
|
1676
|
+
readonly location: Location.PublicRef;
|
|
1685
1677
|
readonly data: ReadonlyArray<Provider.Info>;
|
|
1686
1678
|
};
|
|
1687
1679
|
export type ProviderListOperation<E = never> = (input?: ProviderListInput) => Effect.Effect<ProviderListOutput, E>;
|
|
@@ -1692,7 +1684,7 @@ export type ProviderGetInput = {
|
|
|
1692
1684
|
} | undefined;
|
|
1693
1685
|
};
|
|
1694
1686
|
export type ProviderGetOutput = {
|
|
1695
|
-
readonly location: Location.
|
|
1687
|
+
readonly location: Location.PublicRef;
|
|
1696
1688
|
readonly data: Provider.Info;
|
|
1697
1689
|
};
|
|
1698
1690
|
export type ProviderGetOperation<E = never> = (input: ProviderGetInput) => Effect.Effect<ProviderGetOutput, E>;
|
|
@@ -1706,7 +1698,7 @@ export type IntegrationListInput = {
|
|
|
1706
1698
|
} | undefined;
|
|
1707
1699
|
};
|
|
1708
1700
|
export type IntegrationListOutput = {
|
|
1709
|
-
readonly location: Location.
|
|
1701
|
+
readonly location: Location.PublicRef;
|
|
1710
1702
|
readonly data: ReadonlyArray<Integration.Info>;
|
|
1711
1703
|
};
|
|
1712
1704
|
export type IntegrationListOperation<E = never> = (input?: IntegrationListInput) => Effect.Effect<IntegrationListOutput, E>;
|
|
@@ -1717,7 +1709,7 @@ export type IntegrationGetInput = {
|
|
|
1717
1709
|
} | undefined;
|
|
1718
1710
|
};
|
|
1719
1711
|
export type IntegrationGetOutput = {
|
|
1720
|
-
readonly location: Location.
|
|
1712
|
+
readonly location: Location.PublicRef;
|
|
1721
1713
|
readonly data: Integration.Info | undefined;
|
|
1722
1714
|
};
|
|
1723
1715
|
export type IntegrationGetOperation<E = never> = (input: IntegrationGetInput) => Effect.Effect<IntegrationGetOutput, E>;
|
|
@@ -1750,7 +1742,7 @@ export type IntegrationOauthConnectInput = {
|
|
|
1750
1742
|
readonly label?: string | undefined;
|
|
1751
1743
|
};
|
|
1752
1744
|
export type IntegrationOauthConnectOutput = {
|
|
1753
|
-
readonly location: Location.
|
|
1745
|
+
readonly location: Location.PublicRef;
|
|
1754
1746
|
readonly data: Integration.Attempt;
|
|
1755
1747
|
};
|
|
1756
1748
|
export type IntegrationOauthConnectOperation<E = never> = (input: IntegrationOauthConnectInput) => Effect.Effect<IntegrationOauthConnectOutput, E>;
|
|
@@ -1762,7 +1754,7 @@ export type IntegrationOauthStatusInput = {
|
|
|
1762
1754
|
} | undefined;
|
|
1763
1755
|
};
|
|
1764
1756
|
export type IntegrationOauthStatusOutput = {
|
|
1765
|
-
readonly location: Location.
|
|
1757
|
+
readonly location: Location.PublicRef;
|
|
1766
1758
|
readonly data: Integration.AttemptStatus;
|
|
1767
1759
|
};
|
|
1768
1760
|
export type IntegrationOauthStatusOperation<E = never> = (input: IntegrationOauthStatusInput) => Effect.Effect<IntegrationOauthStatusOutput, E>;
|
|
@@ -1794,7 +1786,7 @@ export type IntegrationCommandConnectInput = {
|
|
|
1794
1786
|
readonly label?: string | undefined;
|
|
1795
1787
|
};
|
|
1796
1788
|
export type IntegrationCommandConnectOutput = {
|
|
1797
|
-
readonly location: Location.
|
|
1789
|
+
readonly location: Location.PublicRef;
|
|
1798
1790
|
readonly data: Integration.CommandAttempt;
|
|
1799
1791
|
};
|
|
1800
1792
|
export type IntegrationCommandConnectOperation<E = never> = (input: IntegrationCommandConnectInput) => Effect.Effect<IntegrationCommandConnectOutput, E>;
|
|
@@ -1806,7 +1798,7 @@ export type IntegrationCommandStatusInput = {
|
|
|
1806
1798
|
} | undefined;
|
|
1807
1799
|
};
|
|
1808
1800
|
export type IntegrationCommandStatusOutput = {
|
|
1809
|
-
readonly location: Location.
|
|
1801
|
+
readonly location: Location.PublicRef;
|
|
1810
1802
|
readonly data: Integration.CommandAttemptStatus;
|
|
1811
1803
|
};
|
|
1812
1804
|
export type IntegrationCommandStatusOperation<E = never> = (input: IntegrationCommandStatusInput) => Effect.Effect<IntegrationCommandStatusOutput, E>;
|
|
@@ -1846,7 +1838,7 @@ export type McpListInput = {
|
|
|
1846
1838
|
} | undefined;
|
|
1847
1839
|
};
|
|
1848
1840
|
export type McpListOutput = {
|
|
1849
|
-
readonly location: Location.
|
|
1841
|
+
readonly location: Location.PublicRef;
|
|
1850
1842
|
readonly data: ReadonlyArray<Mcp.Server>;
|
|
1851
1843
|
};
|
|
1852
1844
|
export type McpListOperation<E = never> = (input?: McpListInput) => Effect.Effect<McpListOutput, E>;
|
|
@@ -1889,7 +1881,7 @@ export type McpResourceCatalogInput = {
|
|
|
1889
1881
|
} | undefined;
|
|
1890
1882
|
};
|
|
1891
1883
|
export type McpResourceCatalogOutput = {
|
|
1892
|
-
readonly location: Location.
|
|
1884
|
+
readonly location: Location.PublicRef;
|
|
1893
1885
|
readonly data: Mcp.ResourceCatalog;
|
|
1894
1886
|
};
|
|
1895
1887
|
export type McpResourceCatalogOperation<E = never> = (input?: McpResourceCatalogInput) => Effect.Effect<McpResourceCatalogOutput, E>;
|
|
@@ -1954,7 +1946,7 @@ export type FormRequestListInput = {
|
|
|
1954
1946
|
} | undefined;
|
|
1955
1947
|
};
|
|
1956
1948
|
export type FormRequestListOutput = {
|
|
1957
|
-
readonly location: Location.
|
|
1949
|
+
readonly location: Location.PublicRef;
|
|
1958
1950
|
readonly data: ReadonlyArray<Form.Info>;
|
|
1959
1951
|
};
|
|
1960
1952
|
export type FormRequestListOperation<E = never> = (input?: FormRequestListInput) => Effect.Effect<FormRequestListOutput, E>;
|
|
@@ -2014,7 +2006,7 @@ export type PermissionRequestListInput = {
|
|
|
2014
2006
|
} | undefined;
|
|
2015
2007
|
};
|
|
2016
2008
|
export type PermissionRequestListOutput = {
|
|
2017
|
-
readonly location: Location.
|
|
2009
|
+
readonly location: Location.PublicRef;
|
|
2018
2010
|
readonly data: ReadonlyArray<Permission.Request>;
|
|
2019
2011
|
};
|
|
2020
2012
|
export type PermissionRequestListOperation<E = never> = (input?: PermissionRequestListInput) => Effect.Effect<PermissionRequestListOutput, E>;
|
|
@@ -2091,7 +2083,7 @@ export type FileListInput = {
|
|
|
2091
2083
|
readonly path?: string | undefined;
|
|
2092
2084
|
};
|
|
2093
2085
|
export type FileListOutput = {
|
|
2094
|
-
readonly location: Location.
|
|
2086
|
+
readonly location: Location.PublicRef;
|
|
2095
2087
|
readonly data: ReadonlyArray<FileSystem.Entry>;
|
|
2096
2088
|
};
|
|
2097
2089
|
export type FileListOperation<E = never> = (input?: FileListInput) => Effect.Effect<FileListOutput, E>;
|
|
@@ -2104,7 +2096,7 @@ export type FileFindInput = {
|
|
|
2104
2096
|
readonly limit?: number | undefined;
|
|
2105
2097
|
};
|
|
2106
2098
|
export type FileFindOutput = {
|
|
2107
|
-
readonly location: Location.
|
|
2099
|
+
readonly location: Location.PublicRef;
|
|
2108
2100
|
readonly data: ReadonlyArray<FileSystem.Entry>;
|
|
2109
2101
|
};
|
|
2110
2102
|
export type FileFindOperation<E = never> = (input: FileFindInput) => Effect.Effect<FileFindOutput, E>;
|
|
@@ -2118,7 +2110,7 @@ export type CommandListInput = {
|
|
|
2118
2110
|
} | undefined;
|
|
2119
2111
|
};
|
|
2120
2112
|
export type CommandListOutput = {
|
|
2121
|
-
readonly location: Location.
|
|
2113
|
+
readonly location: Location.PublicRef;
|
|
2122
2114
|
readonly data: ReadonlyArray<Command.Info>;
|
|
2123
2115
|
};
|
|
2124
2116
|
export type CommandListOperation<E = never> = (input?: CommandListInput) => Effect.Effect<CommandListOutput, E>;
|
|
@@ -2131,7 +2123,7 @@ export type SkillListInput = {
|
|
|
2131
2123
|
} | undefined;
|
|
2132
2124
|
};
|
|
2133
2125
|
export type SkillListOutput = {
|
|
2134
|
-
readonly location: Location.
|
|
2126
|
+
readonly location: Location.PublicRef;
|
|
2135
2127
|
readonly data: ReadonlyArray<Skill.Info>;
|
|
2136
2128
|
};
|
|
2137
2129
|
export type SkillListOperation<E = never> = (input?: SkillListInput) => Effect.Effect<SkillListOutput, E>;
|
|
@@ -2164,7 +2156,7 @@ export type PtyListInput = {
|
|
|
2164
2156
|
} | undefined;
|
|
2165
2157
|
};
|
|
2166
2158
|
export type PtyListOutput = {
|
|
2167
|
-
readonly location: Location.
|
|
2159
|
+
readonly location: Location.PublicRef;
|
|
2168
2160
|
readonly data: ReadonlyArray<Pty.Info>;
|
|
2169
2161
|
};
|
|
2170
2162
|
export type PtyListOperation<E = never> = (input?: PtyListInput) => Effect.Effect<PtyListOutput, E>;
|
|
@@ -2181,7 +2173,7 @@ export type PtyCreateInput = {
|
|
|
2181
2173
|
} | undefined;
|
|
2182
2174
|
};
|
|
2183
2175
|
export type PtyCreateOutput = {
|
|
2184
|
-
readonly location: Location.
|
|
2176
|
+
readonly location: Location.PublicRef;
|
|
2185
2177
|
readonly data: Pty.Info;
|
|
2186
2178
|
};
|
|
2187
2179
|
export type PtyCreateOperation<E = never> = (input?: PtyCreateInput) => Effect.Effect<PtyCreateOutput, E>;
|
|
@@ -2192,7 +2184,7 @@ export type PtyGetInput = {
|
|
|
2192
2184
|
} | undefined;
|
|
2193
2185
|
};
|
|
2194
2186
|
export type PtyGetOutput = {
|
|
2195
|
-
readonly location: Location.
|
|
2187
|
+
readonly location: Location.PublicRef;
|
|
2196
2188
|
readonly data: Pty.Info;
|
|
2197
2189
|
};
|
|
2198
2190
|
export type PtyGetOperation<E = never> = (input: PtyGetInput) => Effect.Effect<PtyGetOutput, E>;
|
|
@@ -2208,7 +2200,7 @@ export type PtyUpdateInput = {
|
|
|
2208
2200
|
} | undefined;
|
|
2209
2201
|
};
|
|
2210
2202
|
export type PtyUpdateOutput = {
|
|
2211
|
-
readonly location: Location.
|
|
2203
|
+
readonly location: Location.PublicRef;
|
|
2212
2204
|
readonly data: Pty.Info;
|
|
2213
2205
|
};
|
|
2214
2206
|
export type PtyUpdateOperation<E = never> = (input: PtyUpdateInput) => Effect.Effect<PtyUpdateOutput, E>;
|
|
@@ -2228,7 +2220,7 @@ export type PtyConnectTokenInput = {
|
|
|
2228
2220
|
readonly "x-opencode-ticket"?: string | undefined;
|
|
2229
2221
|
};
|
|
2230
2222
|
export type PtyConnectTokenOutput = {
|
|
2231
|
-
readonly location: Location.
|
|
2223
|
+
readonly location: Location.PublicRef;
|
|
2232
2224
|
readonly data: PtyTicket.ConnectToken;
|
|
2233
2225
|
};
|
|
2234
2226
|
export type PtyConnectTokenOperation<E = never> = (input: PtyConnectTokenInput) => Effect.Effect<PtyConnectTokenOutput, E>;
|
|
@@ -2448,7 +2440,7 @@ export type ShellListInput = {
|
|
|
2448
2440
|
} | undefined;
|
|
2449
2441
|
};
|
|
2450
2442
|
export type ShellListOutput = {
|
|
2451
|
-
readonly location: Location.
|
|
2443
|
+
readonly location: Location.PublicRef;
|
|
2452
2444
|
readonly data: ReadonlyArray<Shell.Info>;
|
|
2453
2445
|
};
|
|
2454
2446
|
export type ShellListOperation<E = never> = (input?: ShellListInput) => Effect.Effect<ShellListOutput, E>;
|
|
@@ -2464,7 +2456,7 @@ export type ShellCreateInput = {
|
|
|
2464
2456
|
} | undefined;
|
|
2465
2457
|
};
|
|
2466
2458
|
export type ShellCreateOutput = {
|
|
2467
|
-
readonly location: Location.
|
|
2459
|
+
readonly location: Location.PublicRef;
|
|
2468
2460
|
readonly data: Shell.Info;
|
|
2469
2461
|
};
|
|
2470
2462
|
export type ShellCreateOperation<E = never> = (input: ShellCreateInput) => Effect.Effect<ShellCreateOutput, E>;
|
|
@@ -2475,7 +2467,7 @@ export type ShellGetInput = {
|
|
|
2475
2467
|
} | undefined;
|
|
2476
2468
|
};
|
|
2477
2469
|
export type ShellGetOutput = {
|
|
2478
|
-
readonly location: Location.
|
|
2470
|
+
readonly location: Location.PublicRef;
|
|
2479
2471
|
readonly data: Shell.Info;
|
|
2480
2472
|
};
|
|
2481
2473
|
export type ShellGetOperation<E = never> = (input: ShellGetInput) => Effect.Effect<ShellGetOutput, E>;
|
|
@@ -2487,7 +2479,7 @@ export type ShellTimeoutInput = {
|
|
|
2487
2479
|
readonly timeout: number;
|
|
2488
2480
|
};
|
|
2489
2481
|
export type ShellTimeoutOutput = {
|
|
2490
|
-
readonly location: Location.
|
|
2482
|
+
readonly location: Location.PublicRef;
|
|
2491
2483
|
readonly data: Shell.Info;
|
|
2492
2484
|
};
|
|
2493
2485
|
export type ShellTimeoutOperation<E = never> = (input: ShellTimeoutInput) => Effect.Effect<ShellTimeoutOutput, E>;
|
|
@@ -2500,7 +2492,7 @@ export type ShellOutputInput = {
|
|
|
2500
2492
|
readonly limit?: number | undefined;
|
|
2501
2493
|
};
|
|
2502
2494
|
export type ShellOutputOutput = {
|
|
2503
|
-
readonly location: Location.
|
|
2495
|
+
readonly location: Location.PublicRef;
|
|
2504
2496
|
readonly data: {
|
|
2505
2497
|
readonly output: string;
|
|
2506
2498
|
readonly cursor: number;
|
|
@@ -2531,7 +2523,7 @@ export type ReferenceListInput = {
|
|
|
2531
2523
|
} | undefined;
|
|
2532
2524
|
};
|
|
2533
2525
|
export type ReferenceListOutput = {
|
|
2534
|
-
readonly location: Location.
|
|
2526
|
+
readonly location: Location.PublicRef;
|
|
2535
2527
|
readonly data: ReadonlyArray<Reference.Info>;
|
|
2536
2528
|
};
|
|
2537
2529
|
export type ReferenceListOperation<E = never> = (input?: ReferenceListInput) => Effect.Effect<ReferenceListOutput, E>;
|
|
@@ -2585,7 +2577,7 @@ export type VcsGetInput = {
|
|
|
2585
2577
|
} | undefined;
|
|
2586
2578
|
};
|
|
2587
2579
|
export type VcsGetOutput = {
|
|
2588
|
-
readonly location: Location.
|
|
2580
|
+
readonly location: Location.PublicRef;
|
|
2589
2581
|
readonly data: Vcs.Info;
|
|
2590
2582
|
};
|
|
2591
2583
|
export type VcsGetOperation<E = never> = (input?: VcsGetInput) => Effect.Effect<VcsGetOutput, E>;
|
|
@@ -2595,7 +2587,7 @@ export type VcsBaseInput = {
|
|
|
2595
2587
|
} | undefined;
|
|
2596
2588
|
};
|
|
2597
2589
|
export type VcsBaseOutput = {
|
|
2598
|
-
readonly location: Location.
|
|
2590
|
+
readonly location: Location.PublicRef;
|
|
2599
2591
|
readonly data: Vcs.Base | null;
|
|
2600
2592
|
};
|
|
2601
2593
|
export type VcsBaseOperation<E = never> = (input?: VcsBaseInput) => Effect.Effect<VcsBaseOutput, E>;
|
|
@@ -2605,7 +2597,7 @@ export type VcsStatusInput = {
|
|
|
2605
2597
|
} | undefined;
|
|
2606
2598
|
};
|
|
2607
2599
|
export type VcsStatusOutput = {
|
|
2608
|
-
readonly location: Location.
|
|
2600
|
+
readonly location: Location.PublicRef;
|
|
2609
2601
|
readonly data: ReadonlyArray<Vcs.FileStatus>;
|
|
2610
2602
|
};
|
|
2611
2603
|
export type VcsStatusOperation<E = never> = (input?: VcsStatusInput) => Effect.Effect<VcsStatusOutput, E>;
|
|
@@ -2617,7 +2609,7 @@ export type VcsBranchesInput = {
|
|
|
2617
2609
|
readonly limit?: number | undefined;
|
|
2618
2610
|
};
|
|
2619
2611
|
export type VcsBranchesOutput = {
|
|
2620
|
-
readonly location: Location.
|
|
2612
|
+
readonly location: Location.PublicRef;
|
|
2621
2613
|
readonly data: Vcs.BranchList;
|
|
2622
2614
|
};
|
|
2623
2615
|
export type VcsBranchesOperation<E = never> = (input?: VcsBranchesInput) => Effect.Effect<VcsBranchesOutput, E>;
|
|
@@ -2630,7 +2622,7 @@ export type VcsDiffInput = {
|
|
|
2630
2622
|
readonly context?: number | undefined;
|
|
2631
2623
|
};
|
|
2632
2624
|
export type VcsDiffOutput = {
|
|
2633
|
-
readonly location: Location.
|
|
2625
|
+
readonly location: Location.PublicRef;
|
|
2634
2626
|
readonly data: ReadonlyArray<FileDiff.Info>;
|
|
2635
2627
|
};
|
|
2636
2628
|
export type VcsDiffOperation<E = never> = (input: VcsDiffInput) => Effect.Effect<VcsDiffOutput, E>;
|
|
@@ -2681,7 +2673,7 @@ export type WebsearchProvidersInput = {
|
|
|
2681
2673
|
} | undefined;
|
|
2682
2674
|
};
|
|
2683
2675
|
export type WebsearchProvidersOutput = {
|
|
2684
|
-
readonly location: Location.
|
|
2676
|
+
readonly location: Location.PublicRef;
|
|
2685
2677
|
readonly data: ReadonlyArray<WebSearch.Provider>;
|
|
2686
2678
|
};
|
|
2687
2679
|
export type WebsearchProvidersOperation<E = never> = (input?: WebsearchProvidersInput) => Effect.Effect<WebsearchProvidersOutput, E>;
|
|
@@ -2693,7 +2685,7 @@ export type WebsearchQueryInput = {
|
|
|
2693
2685
|
readonly providerID?: WebSearch.ID | undefined;
|
|
2694
2686
|
};
|
|
2695
2687
|
export type WebsearchQueryOutput = {
|
|
2696
|
-
readonly location: Location.
|
|
2688
|
+
readonly location: Location.PublicRef;
|
|
2697
2689
|
readonly data: WebSearch.Response;
|
|
2698
2690
|
};
|
|
2699
2691
|
export type WebsearchQueryOperation<E = never> = (input: WebsearchQueryInput) => Effect.Effect<WebsearchQueryOutput, E>;
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -355,7 +355,6 @@ export declare const make: (options?: {
|
|
|
355
355
|
readonly time: {
|
|
356
356
|
readonly created: number;
|
|
357
357
|
readonly updated: number;
|
|
358
|
-
readonly initialized?: number | undefined;
|
|
359
358
|
};
|
|
360
359
|
readonly sandboxes: readonly string[];
|
|
361
360
|
readonly name?: string | undefined;
|
|
@@ -2232,7 +2231,6 @@ export declare const make: (options?: {
|
|
|
2232
2231
|
};
|
|
2233
2232
|
plugin: {
|
|
2234
2233
|
list: (input?: import("./api.js").PluginListInput) => Effect.Effect<import("./api.js").PluginListOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
|
|
2235
|
-
awaitActivation: (input?: import("./api.js").PluginAwaitActivationInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
|
|
2236
2234
|
check: (input?: import("./api.js").PluginCheckInput) => Effect.Effect<import("./api.js").PluginCheckOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
|
|
2237
2235
|
update: (input: import("./api.js").PluginUpdateInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
|
|
2238
2236
|
};
|
|
@@ -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 { ServerStatusOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput,
|
|
4
|
+
import type { ServerStatusOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionStatsInput, SessionStatsOutput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionExportOutput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxSteerInput, SessionInboxQueueInput, SessionInstructionsEntryListInput, SessionInstructionsEntryListOutput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionGenerateOutput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, GenerateTextOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormListOutput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, PermissionRulesInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchesInput, VcsBranchesOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigUpdatePreferencesInput, ConfigShellsOutput } from "../api/api.js";
|
|
5
5
|
import { ClientError } from "./client-error.js";
|
|
6
6
|
export declare const make: (options?: {
|
|
7
7
|
readonly baseUrl?: URL | string;
|
|
@@ -18,7 +18,6 @@ export declare const make: (options?: {
|
|
|
18
18
|
};
|
|
19
19
|
plugin: {
|
|
20
20
|
list: (input?: PluginListInput) => Effect.Effect<PluginListOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
21
|
-
awaitActivation: (input?: PluginAwaitActivationInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
22
21
|
check: (input?: PluginCheckInput) => Effect.Effect<PluginCheckOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
23
22
|
update: (input: PluginUpdateInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
24
23
|
};
|
|
@@ -520,7 +519,6 @@ export declare const make: (options?: {
|
|
|
520
519
|
readonly time: {
|
|
521
520
|
readonly created: number;
|
|
522
521
|
readonly updated: number;
|
|
523
|
-
readonly initialized?: number | undefined;
|
|
524
522
|
};
|
|
525
523
|
readonly sandboxes: readonly string[];
|
|
526
524
|
readonly name?: string | undefined;
|
|
@@ -21,12 +21,10 @@ const adaptGroupAgent = (raw) => ({
|
|
|
21
21
|
get: EndpointAgentGet(raw),
|
|
22
22
|
});
|
|
23
23
|
const EndpointPluginList = (raw) => (input) => preserveEffect()(raw["plugin.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
24
|
-
const EndpointPluginAwaitActivation = (raw) => (input) => preserveEffect()(raw["plugin.awaitActivation"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
25
24
|
const EndpointPluginCheck = (raw) => (input) => preserveEffect()(raw["plugin.check"]({ query: { location: input?.["location"] }, payload: { target: input?.["target"] } }).pipe(Effect.mapError(mapClientError)));
|
|
26
25
|
const EndpointPluginUpdate = (raw) => (input) => preserveEffect()(raw["plugin.update"]({ query: { location: input["location"] }, payload: { targets: input["targets"] } }).pipe(Effect.mapError(mapClientError)));
|
|
27
26
|
const adaptGroupPlugin = (raw) => ({
|
|
28
27
|
list: EndpointPluginList(raw),
|
|
29
|
-
awaitActivation: EndpointPluginAwaitActivation(raw),
|
|
30
28
|
check: EndpointPluginCheck(raw),
|
|
31
29
|
update: EndpointPluginUpdate(raw),
|
|
32
30
|
});
|
package/dist/promise/client.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare function make(options: ClientOptions): {
|
|
|
22
22
|
};
|
|
23
23
|
plugin: {
|
|
24
24
|
list: (input?: import("./index.js").PluginListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PluginListOutput>;
|
|
25
|
-
awaitActivation: (input?: import("./index.js").PluginAwaitActivationInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
26
25
|
check: (input?: import("./index.js").PluginCheckInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PluginCheckOutput>;
|
|
27
26
|
update: (input: import("./index.js").PluginUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
28
27
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput,
|
|
1
|
+
import type { LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxSteerInput, SessionInboxQueueInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, PermissionRulesInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchesInput, VcsBranchesOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigUpdatePreferencesInput, ConfigShellsOutput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -23,7 +23,6 @@ export declare function make(options: ClientOptions): {
|
|
|
23
23
|
};
|
|
24
24
|
plugin: {
|
|
25
25
|
list: (input?: PluginListInput, requestOptions?: RequestOptions) => Promise<PluginListOutput>;
|
|
26
|
-
awaitActivation: (input?: PluginAwaitActivationInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
27
26
|
check: (input?: PluginCheckInput, requestOptions?: RequestOptions) => Promise<PluginCheckOutput>;
|
|
28
27
|
update: (input: PluginUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
29
28
|
};
|
|
@@ -169,14 +169,6 @@ export function make(options) {
|
|
|
169
169
|
declaredStatuses: [400, 401],
|
|
170
170
|
empty: false,
|
|
171
171
|
}, requestOptions),
|
|
172
|
-
awaitActivation: (input, requestOptions) => request({
|
|
173
|
-
method: "POST",
|
|
174
|
-
path: `/api/plugin/await-activation`,
|
|
175
|
-
query: { location: input?.["location"] },
|
|
176
|
-
successStatus: 204,
|
|
177
|
-
declaredStatuses: [400, 401],
|
|
178
|
-
empty: true,
|
|
179
|
-
}, requestOptions),
|
|
180
172
|
check: (input, requestOptions) => request({
|
|
181
173
|
method: "POST",
|
|
182
174
|
path: `/api/plugin/check`,
|
|
@@ -14,6 +14,9 @@ export type LocationPublicInfo = {
|
|
|
14
14
|
canonical: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
export type LocationPublicRef = {
|
|
18
|
+
directory: string;
|
|
19
|
+
};
|
|
17
20
|
export type ModelRef = {
|
|
18
21
|
id: string;
|
|
19
22
|
providerID: string;
|
|
@@ -77,9 +80,6 @@ export type FileDiffInfo = {
|
|
|
77
80
|
deletions: number;
|
|
78
81
|
status: "added" | "deleted" | "modified";
|
|
79
82
|
};
|
|
80
|
-
export type LocationPublicRef = {
|
|
81
|
-
directory: string;
|
|
82
|
-
};
|
|
83
83
|
export type SessionStatsToolTotals = {
|
|
84
84
|
calls: number;
|
|
85
85
|
succeeded: number;
|
|
@@ -496,7 +496,6 @@ export type ProjectCommands = {
|
|
|
496
496
|
export type ProjectTime = {
|
|
497
497
|
created: number;
|
|
498
498
|
updated: number;
|
|
499
|
-
initialized?: number;
|
|
500
499
|
};
|
|
501
500
|
export type FormMetadata = {
|
|
502
501
|
[x: string]: JsonValue;
|
|
@@ -694,32 +693,6 @@ export type ConfigShellOption = {
|
|
|
694
693
|
name: string;
|
|
695
694
|
acceptable: boolean;
|
|
696
695
|
};
|
|
697
|
-
export type ProviderRequest = {
|
|
698
|
-
settings: ProviderSettings;
|
|
699
|
-
headers: {
|
|
700
|
-
[x: string]: string;
|
|
701
|
-
};
|
|
702
|
-
body: {
|
|
703
|
-
[x: string]: any;
|
|
704
|
-
};
|
|
705
|
-
};
|
|
706
|
-
export type PermissionRule = {
|
|
707
|
-
action: string;
|
|
708
|
-
resource: string;
|
|
709
|
-
effect: PermissionEffect;
|
|
710
|
-
};
|
|
711
|
-
export type PluginInfo = {
|
|
712
|
-
id?: string;
|
|
713
|
-
source: PluginSource;
|
|
714
|
-
features: PluginFeatures;
|
|
715
|
-
state: PluginState;
|
|
716
|
-
};
|
|
717
|
-
export type SessionRevert = {
|
|
718
|
-
messageID: string;
|
|
719
|
-
partID?: string;
|
|
720
|
-
snapshot?: string;
|
|
721
|
-
files?: Array<FileDiffInfo>;
|
|
722
|
-
};
|
|
723
696
|
export type SessionMessageLocationSwitched = {
|
|
724
697
|
id: string;
|
|
725
698
|
metadata?: {
|
|
@@ -764,6 +737,32 @@ export type V2EventServerConnected = {
|
|
|
764
737
|
type: "server.connected";
|
|
765
738
|
data: {};
|
|
766
739
|
};
|
|
740
|
+
export type ProviderRequest = {
|
|
741
|
+
settings: ProviderSettings;
|
|
742
|
+
headers: {
|
|
743
|
+
[x: string]: string;
|
|
744
|
+
};
|
|
745
|
+
body: {
|
|
746
|
+
[x: string]: any;
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
export type PermissionRule = {
|
|
750
|
+
action: string;
|
|
751
|
+
resource: string;
|
|
752
|
+
effect: PermissionEffect;
|
|
753
|
+
};
|
|
754
|
+
export type PluginInfo = {
|
|
755
|
+
id?: string;
|
|
756
|
+
source: PluginSource;
|
|
757
|
+
features: PluginFeatures;
|
|
758
|
+
state: PluginState;
|
|
759
|
+
};
|
|
760
|
+
export type SessionRevert = {
|
|
761
|
+
messageID: string;
|
|
762
|
+
partID?: string;
|
|
763
|
+
snapshot?: string;
|
|
764
|
+
files?: Array<FileDiffInfo>;
|
|
765
|
+
};
|
|
767
766
|
export type SessionStatsTools = {
|
|
768
767
|
mode: "none";
|
|
769
768
|
} | {
|
|
@@ -2369,6 +2368,14 @@ export type WorktreeList = Array<WorktreeDirectory>;
|
|
|
2369
2368
|
export type VcsInfo = {
|
|
2370
2369
|
branch: VcsBranch;
|
|
2371
2370
|
};
|
|
2371
|
+
export type SessionInboxMove = {
|
|
2372
|
+
id: string;
|
|
2373
|
+
sessionID: string;
|
|
2374
|
+
timeCreated: number;
|
|
2375
|
+
type: "move";
|
|
2376
|
+
delivery: SessionInboxDelivery;
|
|
2377
|
+
payload: SessionInboxMovePayload;
|
|
2378
|
+
};
|
|
2372
2379
|
export type PermissionRuleset = Array<PermissionRule>;
|
|
2373
2380
|
export type SessionRevertStaged = {
|
|
2374
2381
|
id: string;
|
|
@@ -2388,14 +2395,6 @@ export type SessionRevertStaged = {
|
|
|
2388
2395
|
revert: SessionRevert;
|
|
2389
2396
|
};
|
|
2390
2397
|
};
|
|
2391
|
-
export type SessionInboxMove = {
|
|
2392
|
-
id: string;
|
|
2393
|
-
sessionID: string;
|
|
2394
|
-
timeCreated: number;
|
|
2395
|
-
type: "move";
|
|
2396
|
-
delivery: SessionInboxDelivery;
|
|
2397
|
-
payload: SessionInboxMovePayload;
|
|
2398
|
-
};
|
|
2399
2398
|
export type SessionStatsInfo = {
|
|
2400
2399
|
range: {
|
|
2401
2400
|
from: number;
|
|
@@ -3417,7 +3416,7 @@ export type AgentListInput = {
|
|
|
3417
3416
|
}["location"];
|
|
3418
3417
|
};
|
|
3419
3418
|
export type AgentListOutput = {
|
|
3420
|
-
location:
|
|
3419
|
+
location: LocationPublicRef;
|
|
3421
3420
|
data: Array<AgentInfo>;
|
|
3422
3421
|
};
|
|
3423
3422
|
export type AgentGetInput = {
|
|
@@ -3431,7 +3430,7 @@ export type AgentGetInput = {
|
|
|
3431
3430
|
}["location"];
|
|
3432
3431
|
};
|
|
3433
3432
|
export type AgentGetOutput = {
|
|
3434
|
-
location:
|
|
3433
|
+
location: LocationPublicRef;
|
|
3435
3434
|
data: AgentInfo;
|
|
3436
3435
|
};
|
|
3437
3436
|
export type PluginListInput = {
|
|
@@ -3442,17 +3441,9 @@ export type PluginListInput = {
|
|
|
3442
3441
|
}["location"];
|
|
3443
3442
|
};
|
|
3444
3443
|
export type PluginListOutput = {
|
|
3445
|
-
location:
|
|
3444
|
+
location: LocationPublicRef;
|
|
3446
3445
|
data: Array<PluginInfo>;
|
|
3447
3446
|
};
|
|
3448
|
-
export type PluginAwaitActivationInput = {
|
|
3449
|
-
readonly location?: {
|
|
3450
|
-
readonly location?: {
|
|
3451
|
-
readonly directory?: string | undefined;
|
|
3452
|
-
} | undefined;
|
|
3453
|
-
}["location"];
|
|
3454
|
-
};
|
|
3455
|
-
export type PluginAwaitActivationOutput = void;
|
|
3456
3447
|
export type PluginCheckInput = {
|
|
3457
3448
|
readonly location?: {
|
|
3458
3449
|
readonly location?: {
|
|
@@ -3464,7 +3455,7 @@ export type PluginCheckInput = {
|
|
|
3464
3455
|
}["target"];
|
|
3465
3456
|
};
|
|
3466
3457
|
export type PluginCheckOutput = {
|
|
3467
|
-
location:
|
|
3458
|
+
location: LocationPublicRef;
|
|
3468
3459
|
data: Array<PluginInfo>;
|
|
3469
3460
|
};
|
|
3470
3461
|
export type PluginUpdateInput = {
|
|
@@ -6103,7 +6094,7 @@ export type ModelListInput = {
|
|
|
6103
6094
|
}["location"];
|
|
6104
6095
|
};
|
|
6105
6096
|
export type ModelListOutput = {
|
|
6106
|
-
location:
|
|
6097
|
+
location: LocationPublicRef;
|
|
6107
6098
|
data: Array<ModelInfo>;
|
|
6108
6099
|
};
|
|
6109
6100
|
export type ModelDefaultInput = {
|
|
@@ -6114,7 +6105,7 @@ export type ModelDefaultInput = {
|
|
|
6114
6105
|
}["location"];
|
|
6115
6106
|
};
|
|
6116
6107
|
export type ModelDefaultOutput = {
|
|
6117
|
-
location:
|
|
6108
|
+
location: LocationPublicRef;
|
|
6118
6109
|
data: ModelInfo | null;
|
|
6119
6110
|
};
|
|
6120
6111
|
export type GenerateTextInput = {
|
|
@@ -6144,7 +6135,7 @@ export type ProviderListInput = {
|
|
|
6144
6135
|
}["location"];
|
|
6145
6136
|
};
|
|
6146
6137
|
export type ProviderListOutput = {
|
|
6147
|
-
location:
|
|
6138
|
+
location: LocationPublicRef;
|
|
6148
6139
|
data: Array<ProviderInfo>;
|
|
6149
6140
|
};
|
|
6150
6141
|
export type ProviderGetInput = {
|
|
@@ -6158,7 +6149,7 @@ export type ProviderGetInput = {
|
|
|
6158
6149
|
}["location"];
|
|
6159
6150
|
};
|
|
6160
6151
|
export type ProviderGetOutput = {
|
|
6161
|
-
location:
|
|
6152
|
+
location: LocationPublicRef;
|
|
6162
6153
|
data: ProviderInfo;
|
|
6163
6154
|
};
|
|
6164
6155
|
export type IntegrationListInput = {
|
|
@@ -6169,7 +6160,7 @@ export type IntegrationListInput = {
|
|
|
6169
6160
|
}["location"];
|
|
6170
6161
|
};
|
|
6171
6162
|
export type IntegrationListOutput = {
|
|
6172
|
-
location:
|
|
6163
|
+
location: LocationPublicRef;
|
|
6173
6164
|
data: Array<IntegrationInfo>;
|
|
6174
6165
|
};
|
|
6175
6166
|
export type IntegrationGetInput = {
|
|
@@ -6183,7 +6174,7 @@ export type IntegrationGetInput = {
|
|
|
6183
6174
|
}["location"];
|
|
6184
6175
|
};
|
|
6185
6176
|
export type IntegrationGetOutput = {
|
|
6186
|
-
location:
|
|
6177
|
+
location: LocationPublicRef;
|
|
6187
6178
|
data: IntegrationInfo | null;
|
|
6188
6179
|
};
|
|
6189
6180
|
export type IntegrationWellknownAddInput = {
|
|
@@ -6261,7 +6252,7 @@ export type IntegrationOauthConnectInput = {
|
|
|
6261
6252
|
}["label"];
|
|
6262
6253
|
};
|
|
6263
6254
|
export type IntegrationOauthConnectOutput = {
|
|
6264
|
-
location:
|
|
6255
|
+
location: LocationPublicRef;
|
|
6265
6256
|
data: IntegrationAttempt;
|
|
6266
6257
|
};
|
|
6267
6258
|
export type IntegrationOauthStatusInput = {
|
|
@@ -6280,7 +6271,7 @@ export type IntegrationOauthStatusInput = {
|
|
|
6280
6271
|
}["location"];
|
|
6281
6272
|
};
|
|
6282
6273
|
export type IntegrationOauthStatusOutput = {
|
|
6283
|
-
location:
|
|
6274
|
+
location: LocationPublicRef;
|
|
6284
6275
|
data: IntegrationAttemptStatus;
|
|
6285
6276
|
};
|
|
6286
6277
|
export type IntegrationOauthCompleteInput = {
|
|
@@ -6337,7 +6328,7 @@ export type IntegrationCommandConnectInput = {
|
|
|
6337
6328
|
}["label"];
|
|
6338
6329
|
};
|
|
6339
6330
|
export type IntegrationCommandConnectOutput = {
|
|
6340
|
-
location:
|
|
6331
|
+
location: LocationPublicRef;
|
|
6341
6332
|
data: IntegrationCommandAttempt;
|
|
6342
6333
|
};
|
|
6343
6334
|
export type IntegrationCommandStatusInput = {
|
|
@@ -6356,7 +6347,7 @@ export type IntegrationCommandStatusInput = {
|
|
|
6356
6347
|
}["location"];
|
|
6357
6348
|
};
|
|
6358
6349
|
export type IntegrationCommandStatusOutput = {
|
|
6359
|
-
location:
|
|
6350
|
+
location: LocationPublicRef;
|
|
6360
6351
|
data: IntegrationCommandAttemptStatus;
|
|
6361
6352
|
};
|
|
6362
6353
|
export type IntegrationCommandCancelInput = {
|
|
@@ -6383,7 +6374,7 @@ export type McpListInput = {
|
|
|
6383
6374
|
}["location"];
|
|
6384
6375
|
};
|
|
6385
6376
|
export type McpListOutput = {
|
|
6386
|
-
location:
|
|
6377
|
+
location: LocationPublicRef;
|
|
6387
6378
|
data: Array<McpServer>;
|
|
6388
6379
|
};
|
|
6389
6380
|
export type McpAddInput = {
|
|
@@ -6475,7 +6466,7 @@ export type McpResourceCatalogInput = {
|
|
|
6475
6466
|
}["location"];
|
|
6476
6467
|
};
|
|
6477
6468
|
export type McpResourceCatalogOutput = {
|
|
6478
|
-
location:
|
|
6469
|
+
location: LocationPublicRef;
|
|
6479
6470
|
data: McpResourceCatalog;
|
|
6480
6471
|
};
|
|
6481
6472
|
export type CredentialUpdateInput = {
|
|
@@ -6577,7 +6568,7 @@ export type FormRequestListInput = {
|
|
|
6577
6568
|
}["location"];
|
|
6578
6569
|
};
|
|
6579
6570
|
export type FormRequestListOutput = {
|
|
6580
|
-
location:
|
|
6571
|
+
location: LocationPublicRef;
|
|
6581
6572
|
data: Array<FormInfo>;
|
|
6582
6573
|
};
|
|
6583
6574
|
export type FormListInput = {
|
|
@@ -7413,7 +7404,7 @@ export type PermissionRequestListInput = {
|
|
|
7413
7404
|
}["location"];
|
|
7414
7405
|
};
|
|
7415
7406
|
export type PermissionRequestListOutput = {
|
|
7416
|
-
location:
|
|
7407
|
+
location: LocationPublicRef;
|
|
7417
7408
|
data: Array<PermissionRequest>;
|
|
7418
7409
|
};
|
|
7419
7410
|
export type PermissionSavedListInput = {
|
|
@@ -7623,7 +7614,7 @@ export type FileListInput = {
|
|
|
7623
7614
|
}["path"];
|
|
7624
7615
|
};
|
|
7625
7616
|
export type FileListOutput = {
|
|
7626
|
-
location:
|
|
7617
|
+
location: LocationPublicRef;
|
|
7627
7618
|
data: Array<FileSystemEntry>;
|
|
7628
7619
|
};
|
|
7629
7620
|
export type FileFindInput = {
|
|
@@ -7661,7 +7652,7 @@ export type FileFindInput = {
|
|
|
7661
7652
|
}["limit"];
|
|
7662
7653
|
};
|
|
7663
7654
|
export type FileFindOutput = {
|
|
7664
|
-
location:
|
|
7655
|
+
location: LocationPublicRef;
|
|
7665
7656
|
data: Array<FileSystemEntry>;
|
|
7666
7657
|
};
|
|
7667
7658
|
export type CommandListInput = {
|
|
@@ -7672,7 +7663,7 @@ export type CommandListInput = {
|
|
|
7672
7663
|
}["location"];
|
|
7673
7664
|
};
|
|
7674
7665
|
export type CommandListOutput = {
|
|
7675
|
-
location:
|
|
7666
|
+
location: LocationPublicRef;
|
|
7676
7667
|
data: Array<CommandInfo>;
|
|
7677
7668
|
};
|
|
7678
7669
|
export type SkillListInput = {
|
|
@@ -7683,7 +7674,7 @@ export type SkillListInput = {
|
|
|
7683
7674
|
}["location"];
|
|
7684
7675
|
};
|
|
7685
7676
|
export type SkillListOutput = {
|
|
7686
|
-
location:
|
|
7677
|
+
location: LocationPublicRef;
|
|
7687
7678
|
data: Array<SkillInfo>;
|
|
7688
7679
|
};
|
|
7689
7680
|
export type RpcCallInput = {
|
|
@@ -7714,7 +7705,7 @@ export type PtyListInput = {
|
|
|
7714
7705
|
}["location"];
|
|
7715
7706
|
};
|
|
7716
7707
|
export type PtyListOutput = {
|
|
7717
|
-
location:
|
|
7708
|
+
location: LocationPublicRef;
|
|
7718
7709
|
data: Array<Pty>;
|
|
7719
7710
|
};
|
|
7720
7711
|
export type PtyCreateInput = {
|
|
@@ -7770,7 +7761,7 @@ export type PtyCreateInput = {
|
|
|
7770
7761
|
}["env"];
|
|
7771
7762
|
};
|
|
7772
7763
|
export type PtyCreateOutput = {
|
|
7773
|
-
location:
|
|
7764
|
+
location: LocationPublicRef;
|
|
7774
7765
|
data: Pty;
|
|
7775
7766
|
};
|
|
7776
7767
|
export type PtyGetInput = {
|
|
@@ -7784,7 +7775,7 @@ export type PtyGetInput = {
|
|
|
7784
7775
|
}["location"];
|
|
7785
7776
|
};
|
|
7786
7777
|
export type PtyGetOutput = {
|
|
7787
|
-
location:
|
|
7778
|
+
location: LocationPublicRef;
|
|
7788
7779
|
data: Pty;
|
|
7789
7780
|
};
|
|
7790
7781
|
export type PtyUpdateInput = {
|
|
@@ -7812,7 +7803,7 @@ export type PtyUpdateInput = {
|
|
|
7812
7803
|
}["size"];
|
|
7813
7804
|
};
|
|
7814
7805
|
export type PtyUpdateOutput = {
|
|
7815
|
-
location:
|
|
7806
|
+
location: LocationPublicRef;
|
|
7816
7807
|
data: Pty;
|
|
7817
7808
|
};
|
|
7818
7809
|
export type PtyRemoveInput = {
|
|
@@ -7840,7 +7831,7 @@ export type PtyConnectTokenInput = {
|
|
|
7840
7831
|
}["x-opencode-ticket"];
|
|
7841
7832
|
};
|
|
7842
7833
|
export type PtyConnectTokenOutput = {
|
|
7843
|
-
location:
|
|
7834
|
+
location: LocationPublicRef;
|
|
7844
7835
|
data: PtyTicketConnectToken;
|
|
7845
7836
|
};
|
|
7846
7837
|
export type ExperimentalPersistentPtyReadInput = {
|
|
@@ -8015,7 +8006,7 @@ export type ShellListInput = {
|
|
|
8015
8006
|
}["location"];
|
|
8016
8007
|
};
|
|
8017
8008
|
export type ShellListOutput = {
|
|
8018
|
-
location:
|
|
8009
|
+
location: LocationPublicRef;
|
|
8019
8010
|
data: Array<ShellInfo1>;
|
|
8020
8011
|
};
|
|
8021
8012
|
export type ShellCreateInput = {
|
|
@@ -8058,7 +8049,7 @@ export type ShellCreateInput = {
|
|
|
8058
8049
|
}["metadata"];
|
|
8059
8050
|
};
|
|
8060
8051
|
export type ShellCreateOutput = {
|
|
8061
|
-
location:
|
|
8052
|
+
location: LocationPublicRef;
|
|
8062
8053
|
data: ShellInfo1;
|
|
8063
8054
|
};
|
|
8064
8055
|
export type ShellGetInput = {
|
|
@@ -8072,7 +8063,7 @@ export type ShellGetInput = {
|
|
|
8072
8063
|
}["location"];
|
|
8073
8064
|
};
|
|
8074
8065
|
export type ShellGetOutput = {
|
|
8075
|
-
location:
|
|
8066
|
+
location: LocationPublicRef;
|
|
8076
8067
|
data: ShellInfo1;
|
|
8077
8068
|
};
|
|
8078
8069
|
export type ShellTimeoutInput = {
|
|
@@ -8089,7 +8080,7 @@ export type ShellTimeoutInput = {
|
|
|
8089
8080
|
}["timeout"];
|
|
8090
8081
|
};
|
|
8091
8082
|
export type ShellTimeoutOutput = {
|
|
8092
|
-
location:
|
|
8083
|
+
location: LocationPublicRef;
|
|
8093
8084
|
data: ShellInfo1;
|
|
8094
8085
|
};
|
|
8095
8086
|
export type ShellOutputInput = {
|
|
@@ -8119,7 +8110,7 @@ export type ShellOutputInput = {
|
|
|
8119
8110
|
}["limit"];
|
|
8120
8111
|
};
|
|
8121
8112
|
export type ShellOutputOutput = {
|
|
8122
|
-
location:
|
|
8113
|
+
location: LocationPublicRef;
|
|
8123
8114
|
data: {
|
|
8124
8115
|
output: string;
|
|
8125
8116
|
cursor: number;
|
|
@@ -8146,7 +8137,7 @@ export type ReferenceListInput = {
|
|
|
8146
8137
|
}["location"];
|
|
8147
8138
|
};
|
|
8148
8139
|
export type ReferenceListOutput = {
|
|
8149
|
-
location:
|
|
8140
|
+
location: LocationPublicRef;
|
|
8150
8141
|
data: Array<ReferenceInfo>;
|
|
8151
8142
|
};
|
|
8152
8143
|
export type WorktreeListInput = {
|
|
@@ -8232,7 +8223,7 @@ export type VcsGetInput = {
|
|
|
8232
8223
|
}["location"];
|
|
8233
8224
|
};
|
|
8234
8225
|
export type VcsGetOutput = {
|
|
8235
|
-
location:
|
|
8226
|
+
location: LocationPublicRef;
|
|
8236
8227
|
data: VcsInfo;
|
|
8237
8228
|
};
|
|
8238
8229
|
export type VcsBaseInput = {
|
|
@@ -8243,7 +8234,7 @@ export type VcsBaseInput = {
|
|
|
8243
8234
|
}["location"];
|
|
8244
8235
|
};
|
|
8245
8236
|
export type VcsBaseOutput = {
|
|
8246
|
-
location:
|
|
8237
|
+
location: LocationPublicRef;
|
|
8247
8238
|
data: VcsBase | null;
|
|
8248
8239
|
};
|
|
8249
8240
|
export type VcsStatusInput = {
|
|
@@ -8254,7 +8245,7 @@ export type VcsStatusInput = {
|
|
|
8254
8245
|
}["location"];
|
|
8255
8246
|
};
|
|
8256
8247
|
export type VcsStatusOutput = {
|
|
8257
|
-
location:
|
|
8248
|
+
location: LocationPublicRef;
|
|
8258
8249
|
data: Array<VcsFileStatus>;
|
|
8259
8250
|
};
|
|
8260
8251
|
export type VcsBranchesInput = {
|
|
@@ -8281,7 +8272,7 @@ export type VcsBranchesInput = {
|
|
|
8281
8272
|
}["limit"];
|
|
8282
8273
|
};
|
|
8283
8274
|
export type VcsBranchesOutput = {
|
|
8284
|
-
location:
|
|
8275
|
+
location: LocationPublicRef;
|
|
8285
8276
|
data: VcsBranchList;
|
|
8286
8277
|
};
|
|
8287
8278
|
export type VcsDiffInput = {
|
|
@@ -8319,7 +8310,7 @@ export type VcsDiffInput = {
|
|
|
8319
8310
|
}["context"];
|
|
8320
8311
|
};
|
|
8321
8312
|
export type VcsDiffOutput = {
|
|
8322
|
-
location:
|
|
8313
|
+
location: LocationPublicRef;
|
|
8323
8314
|
data: Array<FileDiffInfo>;
|
|
8324
8315
|
};
|
|
8325
8316
|
export type DebugLocationListOutput = Array<LocationPublicRef>;
|
|
@@ -8352,7 +8343,7 @@ export type WebsearchProvidersInput = {
|
|
|
8352
8343
|
}["location"];
|
|
8353
8344
|
};
|
|
8354
8345
|
export type WebsearchProvidersOutput = {
|
|
8355
|
-
location:
|
|
8346
|
+
location: LocationPublicRef;
|
|
8356
8347
|
data: Array<WebSearchProvider>;
|
|
8357
8348
|
};
|
|
8358
8349
|
export type WebsearchQueryInput = {
|
|
@@ -8371,7 +8362,7 @@ export type WebsearchQueryInput = {
|
|
|
8371
8362
|
}["providerID"];
|
|
8372
8363
|
};
|
|
8373
8364
|
export type WebsearchQueryOutput = {
|
|
8374
|
-
location:
|
|
8365
|
+
location: LocationPublicRef;
|
|
8375
8366
|
data: {
|
|
8376
8367
|
providerID: string;
|
|
8377
8368
|
results: Array<WebSearchResult>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/client",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-19560",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"typecheck": "tsgo --noEmit"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@opencode/schema": "0.0.0-dev-
|
|
61
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
60
|
+
"@opencode/schema": "0.0.0-dev-19560",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-19560"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.0-rc.112",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
77
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
77
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-19560",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.4.0",
|
|
80
80
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|