@opencode/client 2.0.7 → 2.0.9

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.
Files changed (56) hide show
  1. package/dist/chunks/pty-handoff-1tbj6z39.js +81 -0
  2. package/dist/chunks/pty-handoff-4tveyqeh.js +34 -0
  3. package/dist/chunks/pty-handoff-65kht65h.js +62 -0
  4. package/dist/chunks/pty-handoff-6mptkzbc.js +0 -0
  5. package/dist/chunks/pty-handoff-9rqn6x4v.js +16 -0
  6. package/dist/chunks/pty-handoff-atpwm825.js +1638 -0
  7. package/dist/chunks/pty-handoff-bssvn03b.js +594 -0
  8. package/dist/chunks/pty-handoff-frbwqjmf.js +145 -0
  9. package/dist/chunks/pty-handoff-m2eywc8w.js +0 -0
  10. package/dist/chunks/pty-handoff-n3c99vt5.js +11 -0
  11. package/dist/chunks/pty-handoff-nqd0dnpk.js +112 -0
  12. package/dist/chunks/pty-handoff-qav6mfdz.js +0 -0
  13. package/dist/chunks/pty-handoff-radw39tv.js +1402 -0
  14. package/dist/chunks/pty-handoff-sxt88q69.js +12 -0
  15. package/dist/chunks/pty-handoff-t1xa31vm.js +39 -0
  16. package/dist/chunks/pty-handoff-txckps9j.js +57 -0
  17. package/dist/chunks/pty-handoff-vgxtr9hm.js +30 -0
  18. package/dist/chunks/pty-handoff-vmytr4q8.js +4 -0
  19. package/dist/chunks/pty-handoff-vyas3vgt.js +0 -0
  20. package/dist/chunks/pty-handoff-xgnj2w4v.js +20 -0
  21. package/dist/chunks/pty-handoff-y2etg5bs.js +9 -0
  22. package/dist/chunks/pty-handoff-ydhz1zrh.js +238 -0
  23. package/dist/chunks/pty-handoff-yepdgb80.js +44 -0
  24. package/dist/chunks/pty-handoff-zadn5mwr.js +52 -0
  25. package/dist/contract.js +12 -1
  26. package/dist/effect/client.d.ts +4 -4
  27. package/dist/effect/client.js +15 -29
  28. package/dist/effect/generated/client-error.js +6 -5
  29. package/dist/effect/generated/client.d.ts +4 -4
  30. package/dist/effect/generated/client.js +8 -582
  31. package/dist/effect/generated/index.js +12 -2
  32. package/dist/effect/index.js +75 -30
  33. package/dist/effect/rpc.js +11 -49
  34. package/dist/effect/service.js +238 -245
  35. package/dist/promise/client.js +14 -13
  36. package/dist/promise/generated/client-error.js +6 -8
  37. package/dist/promise/generated/client.js +7 -1396
  38. package/dist/promise/generated/index.js +75 -3
  39. package/dist/promise/generated/types.d.ts +91 -89
  40. package/dist/promise/generated/types.js +66 -34
  41. package/dist/promise/index.js +79 -2
  42. package/dist/promise/rpc.js +7 -86
  43. package/dist/promise/service.js +230 -227
  44. package/dist/pty-handoff.js +14 -121
  45. package/dist/rpc-runtime.js +14 -32
  46. package/dist/service-contender.js +10 -56
  47. package/dist/service-timing.d.ts +0 -1
  48. package/dist/service-timing.js +9 -18
  49. package/dist/service-version.js +6 -9
  50. package/dist/service.js +1 -0
  51. package/dist/shared-events.js +8 -137
  52. package/dist/solid/connection.js +10 -246
  53. package/dist/solid/data.js +18 -1769
  54. package/dist/solid/index.js +32 -3
  55. package/dist/solid/pty.js +8 -41
  56. package/package.json +4 -4
@@ -1,582 +1,8 @@
1
- // Generated by @opencode/httpapi-codegen. Do not edit.
2
- import { Effect, Stream, Schema } from "effect";
3
- import { Sse } from "effect/unstable/encoding";
4
- import { HttpClientError } from "effect/unstable/http";
5
- import { HttpApiClient } from "effect/unstable/httpapi";
6
- import { ClientApi } from "../../contract";
7
- import { ClientError } from "./client-error.js";
8
- const mapClientError = (error) => HttpClientError.isHttpClientError(error) || Schema.isSchemaError(error) || Sse.Retry.is(error)
9
- ? new ClientError({ cause: error })
10
- : error;
11
- const preserveEffect = () => (effect) => effect;
12
- const preserveStream = () => (stream) => stream;
13
- const EndpointServerInfo = (raw) => () => preserveEffect()(raw["server.info"]({}).pipe(Effect.mapError(mapClientError)));
14
- const adaptGroupServer = (raw) => ({ info: EndpointServerInfo(raw) });
15
- const EndpointLocationGet = (raw) => (input) => preserveEffect()(raw["location.get"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
16
- const EndpointLocationReload = (raw) => () => preserveEffect()(raw["location.reload"]({}).pipe(Effect.mapError(mapClientError)));
17
- const adaptGroupLocation = (raw) => ({
18
- get: EndpointLocationGet(raw),
19
- reload: EndpointLocationReload(raw),
20
- });
21
- const EndpointAgentList = (raw) => (input) => preserveEffect()(raw["agent.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
22
- const EndpointAgentGet = (raw) => (input) => preserveEffect()(raw["agent.get"]({ params: { agentID: input["agentID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
23
- const adaptGroupAgent = (raw) => ({
24
- list: EndpointAgentList(raw),
25
- get: EndpointAgentGet(raw),
26
- });
27
- const EndpointPluginList = (raw) => (input) => preserveEffect()(raw["plugin.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
28
- const EndpointPluginCheck = (raw) => (input) => preserveEffect()(raw["plugin.check"]({ query: { location: input?.["location"] }, payload: { target: input?.["target"] } }).pipe(Effect.mapError(mapClientError)));
29
- const EndpointPluginUpdate = (raw) => (input) => preserveEffect()(raw["plugin.update"]({ query: { location: input["location"] }, payload: { targets: input["targets"] } }).pipe(Effect.mapError(mapClientError)));
30
- const adaptGroupPlugin = (raw) => ({
31
- list: EndpointPluginList(raw),
32
- check: EndpointPluginCheck(raw),
33
- update: EndpointPluginUpdate(raw),
34
- });
35
- const EndpointSessionList = (raw) => (input) => preserveEffect()(raw["session.list"]({
36
- query: {
37
- limit: input?.["limit"],
38
- order: input?.["order"],
39
- search: input?.["search"],
40
- parentID: input?.["parentID"],
41
- directory: input?.["directory"],
42
- project: input?.["project"],
43
- subpath: input?.["subpath"],
44
- cursor: input?.["cursor"],
45
- },
46
- }).pipe(Effect.mapError(mapClientError)));
47
- const EndpointSessionStats = (raw) => (input) => preserveEffect()(raw["session.stats"]({
48
- query: {
49
- from: input?.["from"],
50
- to: input?.["to"],
51
- project: input?.["project"],
52
- timezone: input?.["timezone"],
53
- tools: input?.["tools"],
54
- },
55
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
56
- const EndpointSessionCreate = (raw) => (input) => preserveEffect()(raw["session.create"]({
57
- payload: {
58
- id: input?.["id"],
59
- title: input?.["title"],
60
- agent: input?.["agent"],
61
- model: input?.["model"],
62
- location: input?.["location"],
63
- metadata: input?.["metadata"],
64
- permissions: input?.["permissions"],
65
- },
66
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
67
- const EndpointSessionImport = (raw) => (input) => preserveEffect()(raw["session.import"]({
68
- payload: { info: input["info"], messages: input["messages"], location: input["location"] },
69
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
70
- const EndpointSessionExport = (raw) => (input) => preserveEffect()(raw["session.export"]({ params: { sessionID: input["sessionID"] }, query: { sanitize: input["sanitize"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
71
- const EndpointSessionActive = (raw) => () => preserveEffect()(raw["session.active"]({}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
72
- const EndpointSessionGet = (raw) => (input) => preserveEffect()(raw["session.get"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
73
- const EndpointSessionRemove = (raw) => (input) => preserveEffect()(raw["session.remove"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
74
- const EndpointSessionFork = (raw) => (input) => preserveEffect()(raw["session.fork"]({ params: { sessionID: input["sessionID"] }, payload: { before: input["before"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
75
- const EndpointSessionSwitchAgent = (raw) => (input) => preserveEffect()(raw["session.switchAgent"]({ params: { sessionID: input["sessionID"] }, payload: { agent: input["agent"] } }).pipe(Effect.mapError(mapClientError)));
76
- const EndpointSessionSwitchModel = (raw) => (input) => preserveEffect()(raw["session.switchModel"]({ params: { sessionID: input["sessionID"] }, payload: { model: input["model"] } }).pipe(Effect.mapError(mapClientError)));
77
- const EndpointSessionUpdate = (raw) => (input) => preserveEffect()(raw["session.update"]({
78
- params: { sessionID: input["sessionID"] },
79
- payload: { title: input["title"], permissions: input["permissions"] },
80
- }).pipe(Effect.mapError(mapClientError)));
81
- const EndpointSessionMove = (raw) => (input) => preserveEffect()(raw["session.move"]({
82
- params: { sessionID: input["sessionID"] },
83
- payload: { directory: input["directory"], delivery: input["delivery"] },
84
- }).pipe(Effect.mapError(mapClientError)));
85
- const EndpointSessionPrompt = (raw) => (input) => preserveEffect()(raw["session.prompt"]({
86
- params: { sessionID: input["sessionID"] },
87
- payload: {
88
- id: input["id"],
89
- text: input["text"],
90
- files: input["files"],
91
- agents: input["agents"],
92
- skills: input["skills"],
93
- metadata: input["metadata"],
94
- delivery: input["delivery"],
95
- resume: input["resume"],
96
- },
97
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
98
- const EndpointSessionCommand = (raw) => (input) => preserveEffect()(raw["session.command"]({
99
- params: { sessionID: input["sessionID"] },
100
- payload: {
101
- name: input["name"],
102
- text: input["text"],
103
- files: input["files"],
104
- agents: input["agents"],
105
- skills: input["skills"],
106
- delivery: input["delivery"],
107
- },
108
- }).pipe(Effect.mapError(mapClientError)));
109
- const EndpointSessionSkill = (raw) => (input) => preserveEffect()(raw["session.skill"]({
110
- params: { sessionID: input["sessionID"] },
111
- payload: { id: input["id"], resume: input["resume"] },
112
- }).pipe(Effect.mapError(mapClientError)));
113
- const EndpointSessionSynthetic = (raw) => (input) => preserveEffect()(raw["session.synthetic"]({
114
- params: { sessionID: input["sessionID"] },
115
- payload: {
116
- id: input["id"],
117
- text: input["text"],
118
- description: input["description"],
119
- metadata: input["metadata"],
120
- delivery: input["delivery"],
121
- resume: input["resume"],
122
- },
123
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
124
- const EndpointSessionShell = (raw) => (input) => preserveEffect()(raw["session.shell"]({
125
- params: { sessionID: input["sessionID"] },
126
- payload: { id: input["id"], command: input["command"] },
127
- }).pipe(Effect.mapError(mapClientError)));
128
- const EndpointSessionCompact = (raw) => (input) => preserveEffect()(raw["session.compact"]({
129
- params: { sessionID: input["sessionID"] },
130
- payload: { id: input["id"], delivery: input["delivery"] },
131
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
132
- const EndpointSessionWait = (raw) => (input) => preserveEffect()(raw["session.wait"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
133
- const EndpointSessionRevertStage = (raw) => (input) => preserveEffect()(raw["session.revert.stage"]({
134
- params: { sessionID: input["sessionID"] },
135
- payload: { messageID: input["messageID"], files: input["files"] },
136
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
137
- const EndpointSessionRevertClear = (raw) => (input) => preserveEffect()(raw["session.revert.clear"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
138
- const EndpointSessionRevertCommit = (raw) => (input) => preserveEffect()(raw["session.revert.commit"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
139
- const EndpointSessionContext = (raw) => (input) => preserveEffect()(raw["session.context"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
140
- const EndpointSessionDiff = (raw) => (input) => preserveEffect()(raw["session.diff"]({
141
- params: { sessionID: input["sessionID"] },
142
- query: { from: input["from"], to: input["to"], context: input["context"] },
143
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
144
- const EndpointSessionInboxList = (raw) => (input) => preserveEffect()(raw["session.inbox.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
145
- const EndpointSessionInboxCancel = (raw) => (input) => preserveEffect()(raw["session.inbox.cancel"]({ params: { sessionID: input["sessionID"], inboxID: input["inboxID"] } }).pipe(Effect.mapError(mapClientError)));
146
- const EndpointSessionInboxUpdate = (raw) => (input) => preserveEffect()(raw["session.inbox.update"]({
147
- params: { sessionID: input["sessionID"], inboxID: input["inboxID"] },
148
- payload: { delivery: input["delivery"] },
149
- }).pipe(Effect.mapError(mapClientError)));
150
- const EndpointSessionInstructionsEntryList = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
151
- const EndpointSessionInstructionsEntryPut = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.put"]({
152
- params: { sessionID: input["sessionID"], key: input["key"] },
153
- payload: { value: input["value"] },
154
- }).pipe(Effect.mapError(mapClientError)));
155
- const EndpointSessionInstructionsEntryRemove = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.remove"]({ params: { sessionID: input["sessionID"], key: input["key"] } }).pipe(Effect.mapError(mapClientError)));
156
- const EndpointSessionGenerate = (raw) => (input) => preserveEffect()(raw["session.generate"]({ params: { sessionID: input["sessionID"] }, payload: { prompt: input["prompt"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
157
- const EndpointSessionLog = (raw) => (input) => preserveStream()(Stream.unwrap(raw["session.log"]({
158
- params: { sessionID: input["sessionID"] },
159
- query: { after: input["after"], follow: input["follow"] },
160
- }).pipe(Effect.mapError(mapClientError), Effect.map((stream) => stream.pipe(Stream.mapError(mapClientError))))));
161
- const EndpointSessionInterrupt = (raw) => (input) => preserveEffect()(raw["session.interrupt"]({ params: { sessionID: input["sessionID"] }, query: { resume: input["resume"] } }).pipe(Effect.mapError(mapClientError)));
162
- const EndpointSessionBackground = (raw) => (input) => preserveEffect()(raw["session.background"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
163
- const EndpointSessionMessageGet = (raw) => (input) => preserveEffect()(raw["session.message"]({ params: { sessionID: input["sessionID"], messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
164
- const EndpointSessionFormList = (raw) => (input) => preserveEffect()(raw["session.form.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
165
- const EndpointSessionFormCreate = (raw) => (input) => preserveEffect()(raw["session.form.create"]({
166
- params: { sessionID: input["sessionID"] },
167
- payload: { id: input["id"], title: input["title"], metadata: input["metadata"], fields: input["fields"] },
168
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
169
- const EndpointSessionFormGet = (raw) => (input) => preserveEffect()(raw["session.form.get"]({ params: { sessionID: input["sessionID"], formID: input["formID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
170
- const EndpointSessionFormReply = (raw) => (input) => preserveEffect()(raw["session.form.reply"]({
171
- params: { sessionID: input["sessionID"], formID: input["formID"] },
172
- payload: { answer: input["answer"] },
173
- }).pipe(Effect.mapError(mapClientError)));
174
- const EndpointSessionFormCancel = (raw) => (input) => preserveEffect()(raw["session.form.cancel"]({ params: { sessionID: input["sessionID"], formID: input["formID"] } }).pipe(Effect.mapError(mapClientError)));
175
- const EndpointSessionEnvironment = (raw) => (input) => preserveEffect()(raw["session.environment"]({
176
- params: { sessionID: input["sessionID"] },
177
- payload: { variables: input["variables"] },
178
- }).pipe(Effect.mapError(mapClientError)));
179
- const EndpointSessionView = (raw) => (input) => preserveEffect()(raw["session.view"]({ params: { sessionID: input["sessionID"] }, payload: { idle: input["idle"] } }).pipe(Effect.mapError(mapClientError)));
180
- const adaptGroupSession = (raw) => ({
181
- list: EndpointSessionList(raw),
182
- stats: EndpointSessionStats(raw),
183
- create: EndpointSessionCreate(raw),
184
- import: EndpointSessionImport(raw),
185
- export: EndpointSessionExport(raw),
186
- active: EndpointSessionActive(raw),
187
- get: EndpointSessionGet(raw),
188
- remove: EndpointSessionRemove(raw),
189
- fork: EndpointSessionFork(raw),
190
- switchAgent: EndpointSessionSwitchAgent(raw),
191
- switchModel: EndpointSessionSwitchModel(raw),
192
- update: EndpointSessionUpdate(raw),
193
- move: EndpointSessionMove(raw),
194
- prompt: EndpointSessionPrompt(raw),
195
- command: EndpointSessionCommand(raw),
196
- skill: EndpointSessionSkill(raw),
197
- synthetic: EndpointSessionSynthetic(raw),
198
- shell: EndpointSessionShell(raw),
199
- compact: EndpointSessionCompact(raw),
200
- wait: EndpointSessionWait(raw),
201
- revert: {
202
- stage: EndpointSessionRevertStage(raw),
203
- clear: EndpointSessionRevertClear(raw),
204
- commit: EndpointSessionRevertCommit(raw),
205
- },
206
- context: EndpointSessionContext(raw),
207
- diff: EndpointSessionDiff(raw),
208
- inbox: {
209
- list: EndpointSessionInboxList(raw),
210
- cancel: EndpointSessionInboxCancel(raw),
211
- update: EndpointSessionInboxUpdate(raw),
212
- },
213
- instructions: {
214
- entry: {
215
- list: EndpointSessionInstructionsEntryList(raw),
216
- put: EndpointSessionInstructionsEntryPut(raw),
217
- remove: EndpointSessionInstructionsEntryRemove(raw),
218
- },
219
- },
220
- generate: EndpointSessionGenerate(raw),
221
- log: EndpointSessionLog(raw),
222
- interrupt: EndpointSessionInterrupt(raw),
223
- background: EndpointSessionBackground(raw),
224
- message: { get: EndpointSessionMessageGet(raw) },
225
- form: {
226
- list: EndpointSessionFormList(raw),
227
- create: EndpointSessionFormCreate(raw),
228
- get: EndpointSessionFormGet(raw),
229
- reply: EndpointSessionFormReply(raw),
230
- cancel: EndpointSessionFormCancel(raw),
231
- },
232
- environment: EndpointSessionEnvironment(raw),
233
- view: EndpointSessionView(raw),
234
- });
235
- const EndpointMessageList = (raw) => (input) => preserveEffect()(raw["session.messages"]({
236
- params: { sessionID: input["sessionID"] },
237
- query: { limit: input["limit"], order: input["order"], cursor: input["cursor"], type: input["type"] },
238
- }).pipe(Effect.mapError(mapClientError)));
239
- const adaptGroupMessage = (raw) => ({ list: EndpointMessageList(raw) });
240
- const EndpointModelList = (raw) => (input) => preserveEffect()(raw["model.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
241
- const EndpointModelDefault = (raw) => (input) => preserveEffect()(raw["model.default"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
242
- const adaptGroupModel = (raw) => ({
243
- list: EndpointModelList(raw),
244
- default: EndpointModelDefault(raw),
245
- });
246
- const EndpointGenerateText = (raw) => (input) => preserveEffect()(raw["generate.text"]({ payload: { prompt: input["prompt"], model: input["model"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
247
- const adaptGroupGenerate = (raw) => ({ text: EndpointGenerateText(raw) });
248
- const EndpointProviderList = (raw) => (input) => preserveEffect()(raw["provider.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
249
- const EndpointProviderGet = (raw) => (input) => preserveEffect()(raw["provider.get"]({ params: { providerID: input["providerID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
250
- const adaptGroupProvider = (raw) => ({
251
- list: EndpointProviderList(raw),
252
- get: EndpointProviderGet(raw),
253
- });
254
- const EndpointIntegrationList = (raw) => (input) => preserveEffect()(raw["integration.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
255
- const EndpointIntegrationGet = (raw) => (input) => preserveEffect()(raw["integration.get"]({
256
- params: { integrationID: input["integrationID"] },
257
- query: { location: input["location"] },
258
- }).pipe(Effect.mapError(mapClientError)));
259
- const EndpointIntegrationWellknownAdd = (raw) => (input) => preserveEffect()(raw["integration.wellknown.add"]({ query: { location: input["location"] }, payload: { url: input["url"] } }).pipe(Effect.mapError(mapClientError)));
260
- const EndpointIntegrationConnectKey = (raw) => (input) => preserveEffect()(raw["integration.connect.key"]({
261
- params: { integrationID: input["integrationID"] },
262
- query: { location: input["location"] },
263
- payload: { key: input["key"], answer: input["answer"], label: input["label"] },
264
- }).pipe(Effect.mapError(mapClientError)));
265
- const EndpointIntegrationOauthConnect = (raw) => (input) => preserveEffect()(raw["integration.oauth.connect"]({
266
- params: { integrationID: input["integrationID"] },
267
- query: { location: input["location"] },
268
- payload: { methodID: input["methodID"], answer: input["answer"], label: input["label"] },
269
- }).pipe(Effect.mapError(mapClientError)));
270
- const EndpointIntegrationOauthStatus = (raw) => (input) => preserveEffect()(raw["integration.oauth.status"]({
271
- params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
272
- query: { location: input["location"] },
273
- }).pipe(Effect.mapError(mapClientError)));
274
- const EndpointIntegrationOauthComplete = (raw) => (input) => preserveEffect()(raw["integration.oauth.complete"]({
275
- params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
276
- query: { location: input["location"] },
277
- payload: { code: input["code"] },
278
- }).pipe(Effect.mapError(mapClientError)));
279
- const EndpointIntegrationOauthCancel = (raw) => (input) => preserveEffect()(raw["integration.oauth.cancel"]({
280
- params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
281
- query: { location: input["location"] },
282
- }).pipe(Effect.mapError(mapClientError)));
283
- const EndpointIntegrationCommandConnect = (raw) => (input) => preserveEffect()(raw["integration.command.connect"]({
284
- params: { integrationID: input["integrationID"] },
285
- query: { location: input["location"] },
286
- payload: { methodID: input["methodID"], label: input["label"] },
287
- }).pipe(Effect.mapError(mapClientError)));
288
- const EndpointIntegrationCommandStatus = (raw) => (input) => preserveEffect()(raw["integration.command.status"]({
289
- params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
290
- query: { location: input["location"] },
291
- }).pipe(Effect.mapError(mapClientError)));
292
- const EndpointIntegrationCommandCancel = (raw) => (input) => preserveEffect()(raw["integration.command.cancel"]({
293
- params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
294
- query: { location: input["location"] },
295
- }).pipe(Effect.mapError(mapClientError)));
296
- const adaptGroupIntegration = (raw) => ({
297
- list: EndpointIntegrationList(raw),
298
- get: EndpointIntegrationGet(raw),
299
- wellknown: { add: EndpointIntegrationWellknownAdd(raw) },
300
- connect: { key: EndpointIntegrationConnectKey(raw) },
301
- oauth: {
302
- connect: EndpointIntegrationOauthConnect(raw),
303
- status: EndpointIntegrationOauthStatus(raw),
304
- complete: EndpointIntegrationOauthComplete(raw),
305
- cancel: EndpointIntegrationOauthCancel(raw),
306
- },
307
- command: {
308
- connect: EndpointIntegrationCommandConnect(raw),
309
- status: EndpointIntegrationCommandStatus(raw),
310
- cancel: EndpointIntegrationCommandCancel(raw),
311
- },
312
- });
313
- const EndpointMcpList = (raw) => (input) => preserveEffect()(raw["mcp.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
314
- const EndpointMcpAdd = (raw) => (input) => preserveEffect()(raw["mcp.add"]({
315
- params: { server: input["server"] },
316
- query: { location: input["location"] },
317
- payload: { config: input["config"] },
318
- }).pipe(Effect.mapError(mapClientError)));
319
- const EndpointMcpRemove = (raw) => (input) => preserveEffect()(raw["mcp.remove"]({ params: { server: input["server"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
320
- const EndpointMcpConnect = (raw) => (input) => preserveEffect()(raw["mcp.connect"]({ params: { server: input["server"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
321
- const EndpointMcpDisconnect = (raw) => (input) => preserveEffect()(raw["mcp.disconnect"]({ params: { server: input["server"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
322
- const EndpointMcpResourceCatalog = (raw) => (input) => preserveEffect()(raw["mcp.resource.catalog"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
323
- const adaptGroupMcp = (raw) => ({
324
- list: EndpointMcpList(raw),
325
- add: EndpointMcpAdd(raw),
326
- remove: EndpointMcpRemove(raw),
327
- connect: EndpointMcpConnect(raw),
328
- disconnect: EndpointMcpDisconnect(raw),
329
- resource: { catalog: EndpointMcpResourceCatalog(raw) },
330
- });
331
- const EndpointCredentialUpdate = (raw) => (input) => preserveEffect()(raw["credential.update"]({
332
- params: { credentialID: input["credentialID"] },
333
- payload: { label: input["label"] },
334
- }).pipe(Effect.mapError(mapClientError)));
335
- const EndpointCredentialActivate = (raw) => (input) => preserveEffect()(raw["credential.activate"]({ params: { credentialID: input["credentialID"] } }).pipe(Effect.mapError(mapClientError)));
336
- const EndpointCredentialRemove = (raw) => (input) => preserveEffect()(raw["credential.remove"]({ params: { credentialID: input["credentialID"] } }).pipe(Effect.mapError(mapClientError)));
337
- const adaptGroupCredential = (raw) => ({
338
- update: EndpointCredentialUpdate(raw),
339
- activate: EndpointCredentialActivate(raw),
340
- remove: EndpointCredentialRemove(raw),
341
- });
342
- const EndpointProjectList = (raw) => () => preserveEffect()(raw["project.list"]({}).pipe(Effect.mapError(mapClientError)));
343
- const EndpointProjectUpdate = (raw) => (input) => preserveEffect()(raw["project.update"]({
344
- params: { projectID: input["projectID"] },
345
- payload: { canonical: input["canonical"], name: input["name"], icon: input["icon"], commands: input["commands"] },
346
- }).pipe(Effect.mapError(mapClientError)));
347
- const adaptGroupProject = (raw) => ({
348
- list: EndpointProjectList(raw),
349
- update: EndpointProjectUpdate(raw),
350
- });
351
- const EndpointFormList = (raw) => (input) => preserveEffect()(raw["form.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
352
- const adaptGroupForm = (raw) => ({ list: EndpointFormList(raw) });
353
- const EndpointPermissionRequestList = (raw) => (input) => preserveEffect()(raw["permission.request.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
354
- const EndpointPermissionSavedList = (raw) => (input) => preserveEffect()(raw["permission.saved.list"]({ query: { projectID: input?.["projectID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
355
- const EndpointPermissionSavedRemove = (raw) => (input) => preserveEffect()(raw["permission.saved.remove"]({ params: { id: input["id"] } }).pipe(Effect.mapError(mapClientError)));
356
- const EndpointPermissionCreate = (raw) => (input) => preserveEffect()(raw["session.permission.create"]({
357
- params: { sessionID: input["sessionID"] },
358
- payload: {
359
- id: input["id"],
360
- action: input["action"],
361
- resources: input["resources"],
362
- save: input["save"],
363
- metadata: input["metadata"],
364
- source: input["source"],
365
- agent: input["agent"],
366
- },
367
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
368
- const EndpointPermissionList = (raw) => (input) => preserveEffect()(raw["session.permission.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
369
- const EndpointPermissionGet = (raw) => (input) => preserveEffect()(raw["session.permission.get"]({ params: { sessionID: input["sessionID"], requestID: input["requestID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
370
- const EndpointPermissionReply = (raw) => (input) => preserveEffect()(raw["session.permission.reply"]({
371
- params: { sessionID: input["sessionID"], requestID: input["requestID"] },
372
- payload: { decision: input["decision"], message: input["message"] },
373
- }).pipe(Effect.mapError(mapClientError)));
374
- const adaptGroupPermission = (raw) => ({
375
- request: { list: EndpointPermissionRequestList(raw) },
376
- saved: { list: EndpointPermissionSavedList(raw), remove: EndpointPermissionSavedRemove(raw) },
377
- create: EndpointPermissionCreate(raw),
378
- list: EndpointPermissionList(raw),
379
- get: EndpointPermissionGet(raw),
380
- reply: EndpointPermissionReply(raw),
381
- });
382
- const EndpointFileList = (raw) => (input) => preserveEffect()(raw["fs.list"]({ query: { location: input?.["location"], path: input?.["path"] } }).pipe(Effect.mapError(mapClientError)));
383
- const EndpointFileFind = (raw) => (input) => preserveEffect()(raw["fs.find"]({
384
- query: { location: input["location"], query: input["query"], type: input["type"], limit: input["limit"] },
385
- }).pipe(Effect.mapError(mapClientError)));
386
- const adaptGroupFile = (raw) => ({ list: EndpointFileList(raw), find: EndpointFileFind(raw) });
387
- const EndpointCommandList = (raw) => (input) => preserveEffect()(raw["command.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
388
- const adaptGroupCommand = (raw) => ({ list: EndpointCommandList(raw) });
389
- const EndpointSkillList = (raw) => (input) => preserveEffect()(raw["skill.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
390
- const adaptGroupSkill = (raw) => ({ list: EndpointSkillList(raw) });
391
- const EndpointRpcCall = (raw) => (input) => preserveEffect()(raw["rpc.call"]({
392
- params: { rpcID: input["rpcID"], method: input["method"] },
393
- query: { location: input["location"] },
394
- payload: { input: input["input"] },
395
- }).pipe(Effect.mapError(mapClientError)));
396
- const adaptGroupRpc = (raw) => ({ call: EndpointRpcCall(raw) });
397
- const EndpointEventSubscribe = (raw) => () => preserveStream()(Stream.unwrap(raw["event.subscribe"]({}).pipe(Effect.mapError(mapClientError), Effect.map((stream) => stream.pipe(Stream.mapError(mapClientError))))));
398
- const adaptGroupEvent = (raw) => ({ subscribe: EndpointEventSubscribe(raw) });
399
- const EndpointPtyList = (raw) => (input) => preserveEffect()(raw["pty.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
400
- const EndpointPtyCreate = (raw) => (input) => preserveEffect()(raw["pty.create"]({
401
- query: { location: input?.["location"] },
402
- payload: {
403
- command: input?.["command"],
404
- args: input?.["args"],
405
- cwd: input?.["cwd"],
406
- title: input?.["title"],
407
- env: input?.["env"],
408
- },
409
- }).pipe(Effect.mapError(mapClientError)));
410
- const EndpointPtyGet = (raw) => (input) => preserveEffect()(raw["pty.get"]({ params: { ptyID: input["ptyID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
411
- const EndpointPtyUpdate = (raw) => (input) => preserveEffect()(raw["pty.update"]({
412
- params: { ptyID: input["ptyID"] },
413
- query: { location: input["location"] },
414
- payload: { title: input["title"], size: input["size"] },
415
- }).pipe(Effect.mapError(mapClientError)));
416
- const EndpointPtyRemove = (raw) => (input) => preserveEffect()(raw["pty.remove"]({ params: { ptyID: input["ptyID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
417
- const EndpointPtyConnectToken = (raw) => (input) => preserveEffect()(raw["pty.connectToken"]({
418
- params: { ptyID: input["ptyID"] },
419
- query: { location: input["location"] },
420
- headers: { "x-opencode-ticket": input["x-opencode-ticket"] },
421
- }).pipe(Effect.mapError(mapClientError)));
422
- const adaptGroupPty = (raw) => ({
423
- list: EndpointPtyList(raw),
424
- create: EndpointPtyCreate(raw),
425
- get: EndpointPtyGet(raw),
426
- update: EndpointPtyUpdate(raw),
427
- remove: EndpointPtyRemove(raw),
428
- connect: { token: EndpointPtyConnectToken(raw) },
429
- });
430
- const EndpointExperimentalPersistentPtyRead = (raw) => (input) => preserveEffect()(raw["persistentPty.read"]({ params: { sessionID: input["sessionID"] }, query: { lines: input["lines"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
431
- const EndpointExperimentalPersistentPtyList = (raw) => (input) => preserveEffect()(raw["persistentPty.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
432
- const EndpointExperimentalPersistentPtyCreate = (raw) => (input) => preserveEffect()(raw["persistentPty.create"]({
433
- params: { sessionID: input["sessionID"] },
434
- payload: {
435
- command: input["command"],
436
- args: input["args"],
437
- cwd: input["cwd"],
438
- title: input["title"],
439
- env: input["env"],
440
- size: input["size"],
441
- },
442
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
443
- const EndpointExperimentalPersistentPtyShutdown = (raw) => () => preserveEffect()(raw["persistentPty.shutdown"]({}).pipe(Effect.mapError(mapClientError)));
444
- const EndpointExperimentalPersistentPtyHandoff = (raw) => () => preserveEffect()(raw["persistentPty.handoff"]({}).pipe(Effect.mapError(mapClientError)));
445
- const EndpointExperimentalPersistentPtyGet = (raw) => (input) => preserveEffect()(raw["persistentPty.get"]({ params: { ptyID: input["ptyID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
446
- const EndpointExperimentalPersistentPtyUpdate = (raw) => (input) => preserveEffect()(raw["persistentPty.update"]({
447
- params: { ptyID: input["ptyID"] },
448
- payload: { attachmentID: input["attachmentID"], size: input["size"] },
449
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
450
- const EndpointExperimentalPersistentPtySnapshot = (raw) => (input) => preserveEffect()(raw["persistentPty.snapshot"]({ params: { ptyID: input["ptyID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
451
- const EndpointExperimentalPersistentPtyRemove = (raw) => (input) => preserveEffect()(raw["persistentPty.remove"]({ params: { ptyID: input["ptyID"] } }).pipe(Effect.mapError(mapClientError)));
452
- const EndpointExperimentalPersistentPtyConnectToken = (raw) => (input) => preserveEffect()(raw["persistentPty.connectToken"]({
453
- params: { ptyID: input["ptyID"] },
454
- headers: { "x-opencode-ticket": input["x-opencode-ticket"] },
455
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
456
- const adaptGroupExperimental = (raw) => ({
457
- persistentPty: {
458
- read: EndpointExperimentalPersistentPtyRead(raw),
459
- list: EndpointExperimentalPersistentPtyList(raw),
460
- create: EndpointExperimentalPersistentPtyCreate(raw),
461
- shutdown: EndpointExperimentalPersistentPtyShutdown(raw),
462
- handoff: EndpointExperimentalPersistentPtyHandoff(raw),
463
- get: EndpointExperimentalPersistentPtyGet(raw),
464
- update: EndpointExperimentalPersistentPtyUpdate(raw),
465
- snapshot: EndpointExperimentalPersistentPtySnapshot(raw),
466
- remove: EndpointExperimentalPersistentPtyRemove(raw),
467
- connectToken: EndpointExperimentalPersistentPtyConnectToken(raw),
468
- },
469
- });
470
- const EndpointShellList = (raw) => (input) => preserveEffect()(raw["shell.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
471
- const EndpointShellCreate = (raw) => (input) => preserveEffect()(raw["shell.create"]({
472
- query: { location: input["location"] },
473
- payload: { command: input["command"], cwd: input["cwd"], timeout: input["timeout"], metadata: input["metadata"] },
474
- }).pipe(Effect.mapError(mapClientError)));
475
- const EndpointShellGet = (raw) => (input) => preserveEffect()(raw["shell.get"]({ params: { id: input["id"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
476
- const EndpointShellOutput = (raw) => (input) => preserveEffect()(raw["shell.output"]({
477
- params: { id: input["id"] },
478
- query: { location: input["location"], cursor: input["cursor"], limit: input["limit"] },
479
- }).pipe(Effect.mapError(mapClientError)));
480
- const EndpointShellRemove = (raw) => (input) => preserveEffect()(raw["shell.remove"]({ params: { id: input["id"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
481
- const adaptGroupShell = (raw) => ({
482
- list: EndpointShellList(raw),
483
- create: EndpointShellCreate(raw),
484
- get: EndpointShellGet(raw),
485
- output: EndpointShellOutput(raw),
486
- remove: EndpointShellRemove(raw),
487
- });
488
- const EndpointReferenceList = (raw) => (input) => preserveEffect()(raw["reference.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
489
- const adaptGroupReference = (raw) => ({ list: EndpointReferenceList(raw) });
490
- const EndpointWorktreeList = (raw) => (input) => preserveEffect()(raw["worktree.list"]({ query: { projectID: input["projectID"] } }).pipe(Effect.mapError(mapClientError)));
491
- const EndpointWorktreeCreate = (raw) => (input) => preserveEffect()(raw["worktree.create"]({
492
- payload: {
493
- projectID: input["projectID"],
494
- from: input["from"],
495
- branch: input["branch"],
496
- directory: input["directory"],
497
- name: input["name"],
498
- },
499
- }).pipe(Effect.mapError(mapClientError)));
500
- const EndpointWorktreeRemove = (raw) => (input) => preserveEffect()(raw["worktree.remove"]({
501
- payload: { projectID: input["projectID"], directory: input["directory"], force: input["force"] },
502
- }).pipe(Effect.mapError(mapClientError)));
503
- const EndpointWorktreeRefresh = (raw) => (input) => preserveEffect()(raw["worktree.refresh"]({ payload: { projectID: input["projectID"] } }).pipe(Effect.mapError(mapClientError)));
504
- const adaptGroupWorktree = (raw) => ({
505
- list: EndpointWorktreeList(raw),
506
- create: EndpointWorktreeCreate(raw),
507
- remove: EndpointWorktreeRemove(raw),
508
- refresh: EndpointWorktreeRefresh(raw),
509
- });
510
- const EndpointVcsGet = (raw) => (input) => preserveEffect()(raw["vcs.get"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
511
- const EndpointVcsBase = (raw) => (input) => preserveEffect()(raw["vcs.base"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
512
- const EndpointVcsStatus = (raw) => (input) => preserveEffect()(raw["vcs.status"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
513
- const EndpointVcsBranchList = (raw) => (input) => preserveEffect()(raw["vcs.branch.list"]({
514
- query: { location: input?.["location"], search: input?.["search"], limit: input?.["limit"] },
515
- }).pipe(Effect.mapError(mapClientError)));
516
- const EndpointVcsDiff = (raw) => (input) => preserveEffect()(raw["vcs.diff"]({
517
- query: { location: input["location"], mode: input["mode"], base: input["base"], context: input["context"] },
518
- }).pipe(Effect.mapError(mapClientError)));
519
- const adaptGroupVcs = (raw) => ({
520
- get: EndpointVcsGet(raw),
521
- base: EndpointVcsBase(raw),
522
- status: EndpointVcsStatus(raw),
523
- branch: { list: EndpointVcsBranchList(raw) },
524
- diff: EndpointVcsDiff(raw),
525
- });
526
- const EndpointDebugLocationList = (raw) => () => preserveEffect()(raw["debug.location"]({}).pipe(Effect.mapError(mapClientError)));
527
- const EndpointDebugLocationEvict = (raw) => (input) => preserveEffect()(raw["debug.location.evict"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
528
- const adaptGroupDebug = (raw) => ({
529
- location: { list: EndpointDebugLocationList(raw), evict: EndpointDebugLocationEvict(raw) },
530
- });
531
- const EndpointMigrationV1Status = (raw) => () => preserveEffect()(raw["migration.v1.status"]({}).pipe(Effect.mapError(mapClientError)));
532
- const adaptGroupMigration = (raw) => ({ v1: { status: EndpointMigrationV1Status(raw) } });
533
- const EndpointWebsearchProviders = (raw) => (input) => preserveEffect()(raw["websearch.providers"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
534
- const EndpointWebsearchQuery = (raw) => (input) => preserveEffect()(raw["websearch.query"]({
535
- query: { location: input["location"] },
536
- payload: { query: input["query"], providerID: input["providerID"] },
537
- }).pipe(Effect.mapError(mapClientError)));
538
- const adaptGroupWebsearch = (raw) => ({
539
- providers: EndpointWebsearchProviders(raw),
540
- query: EndpointWebsearchQuery(raw),
541
- });
542
- const EndpointConfigGet = (raw) => (input) => preserveEffect()(raw["config.get"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
543
- const EndpointConfigShells = (raw) => () => preserveEffect()(raw["config.shells"]({}).pipe(Effect.mapError(mapClientError)));
544
- const EndpointConfigUpdate = (raw) => (input) => preserveEffect()(raw["config.update"]({ payload: { shell: input["shell"] } }).pipe(Effect.mapError(mapClientError)));
545
- const adaptGroupConfig = (raw) => ({
546
- get: EndpointConfigGet(raw),
547
- shells: EndpointConfigShells(raw),
548
- update: EndpointConfigUpdate(raw),
549
- });
550
- const adaptClient = (raw) => ({
551
- server: adaptGroupServer(raw["server.server"]),
552
- location: adaptGroupLocation(raw["server.location"]),
553
- agent: adaptGroupAgent(raw["server.agent"]),
554
- plugin: adaptGroupPlugin(raw["server.plugin"]),
555
- session: adaptGroupSession(raw["server.session"]),
556
- message: adaptGroupMessage(raw["server.message"]),
557
- model: adaptGroupModel(raw["server.model"]),
558
- generate: adaptGroupGenerate(raw["server.generate"]),
559
- provider: adaptGroupProvider(raw["server.provider"]),
560
- integration: adaptGroupIntegration(raw["server.integration"]),
561
- mcp: adaptGroupMcp(raw["server.mcp"]),
562
- credential: adaptGroupCredential(raw["server.credential"]),
563
- project: adaptGroupProject(raw["server.project"]),
564
- form: adaptGroupForm(raw["server.form"]),
565
- permission: adaptGroupPermission(raw["server.permission"]),
566
- file: adaptGroupFile(raw["server.fs"]),
567
- command: adaptGroupCommand(raw["server.command"]),
568
- skill: adaptGroupSkill(raw["server.skill"]),
569
- rpc: adaptGroupRpc(raw["server.rpc"]),
570
- event: adaptGroupEvent(raw["server.event"]),
571
- pty: adaptGroupPty(raw["server.pty"]),
572
- experimental: adaptGroupExperimental(raw["server.experimental"]),
573
- shell: adaptGroupShell(raw["server.shell"]),
574
- reference: adaptGroupReference(raw["server.reference"]),
575
- worktree: adaptGroupWorktree(raw["server.worktree"]),
576
- vcs: adaptGroupVcs(raw["server.vcs"]),
577
- debug: adaptGroupDebug(raw["server.debug"]),
578
- migration: adaptGroupMigration(raw["server.migration"]),
579
- websearch: adaptGroupWebsearch(raw["server.websearch"]),
580
- config: adaptGroupConfig(raw["server.config"]),
581
- });
582
- export const make = (options) => HttpApiClient.make(ClientApi, options).pipe(Effect.map(adaptClient));
1
+ import {
2
+ make4
3
+ } from "../../chunks/pty-handoff-bssvn03b.js";
4
+ import"../../chunks/pty-handoff-y2etg5bs.js";
5
+ import"../../chunks/pty-handoff-vmytr4q8.js";
6
+ export {
7
+ make4 as make
8
+ };
@@ -1,2 +1,12 @@
1
- export { ClientError } from "./client-error.js";
2
- export * as OpenCode from "./client.js";
1
+ import"../../chunks/pty-handoff-6mptkzbc.js";
2
+ import {
3
+ exports_client2
4
+ } from "../../chunks/pty-handoff-bssvn03b.js";
5
+ import {
6
+ ClientError2
7
+ } from "../../chunks/pty-handoff-y2etg5bs.js";
8
+ import"../../chunks/pty-handoff-vmytr4q8.js";
9
+ export {
10
+ ClientError2 as ClientError,
11
+ exports_client2 as OpenCode
12
+ };