@opencode/client 0.0.0-dev-1326 → 0.0.0-dev-1329
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/chunks/{service-timing-3s7q7x9k.js → rpc-runtime-0djk1vpd.js} +19 -19
- package/dist/chunks/{service-timing-myz4ngx9.js → rpc-runtime-15p82y03.js} +5 -5
- package/dist/chunks/{service-timing-8ye1ye6f.js → rpc-runtime-2ny4vxct.js} +2 -2
- package/dist/chunks/{service-timing-xafd70ys.js → rpc-runtime-7s3gfrb2.js} +1 -1
- package/dist/chunks/rpc-runtime-cz490mp4.js +30 -0
- package/dist/chunks/{service-timing-hwa6zdcq.js → rpc-runtime-dz2zzf2j.js} +2 -2
- package/dist/chunks/{service-timing-hw6kqa0w.js → rpc-runtime-gecjxyvt.js} +4 -4
- package/dist/chunks/{service-timing-t8bqr56k.js → rpc-runtime-nvtq28t3.js} +43 -19
- package/dist/chunks/{service-timing-js54wxgp.js → rpc-runtime-nwcpakzx.js} +2 -2
- package/dist/chunks/{service-timing-ryy6kscr.js → rpc-runtime-ryy6kscr.js} +1 -1
- package/dist/chunks/{service-timing-6hqrj29e.js → rpc-runtime-t2hneane.js} +2 -1
- package/dist/chunks/{service-timing-sh042gpe.js → rpc-runtime-wcj4wnr9.js} +1 -1
- package/dist/chunks/{service-timing-7f0py9js.js → rpc-runtime-y2etg5bs.js} +2 -2
- package/dist/chunks/{service-timing-5fh62h9m.js → rpc-runtime-zrgqmrbq.js} +19 -11
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +32 -0
- package/dist/effect/client.d.ts +5 -0
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +6 -1
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +8 -8
- package/dist/effect/index.js +12 -12
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +5 -0
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +6 -1
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +10 -8
- package/dist/promise/generated/types.d.ts +37 -2
- package/dist/promise/generated/types.js +3 -1
- package/dist/promise/index.js +18 -16
- package/dist/promise/media.d.ts +5 -0
- package/dist/promise/media.js +1 -1
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +4 -4
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +3 -3
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +10 -10
- package/dist/solid/index.js +14 -14
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/service-timing-12mqmnk4.js +0 -30
- /package/dist/chunks/{service-timing-3eaz3m83.js → rpc-runtime-3eaz3m83.js} +0 -0
- /package/dist/chunks/{service-timing-60xe5cbf.js → rpc-runtime-60xe5cbf.js} +0 -0
- /package/dist/chunks/{service-timing-6mptkzbc.js → rpc-runtime-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-timing-6mq2wh8y.js → rpc-runtime-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{service-timing-6r38tsk5.js → rpc-runtime-6r38tsk5.js} +0 -0
- /package/dist/chunks/{service-timing-8s2anffy.js → rpc-runtime-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-timing-9rqn6x4v.js → rpc-runtime-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-timing-mwrzahmf.js → rpc-runtime-mwrzahmf.js} +0 -0
- /package/dist/chunks/{service-timing-qav6mfdz.js → rpc-runtime-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-timing-sxt88q69.js → rpc-runtime-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-timing-ve4aws36.js → rpc-runtime-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-timing-vyas3vgt.js → rpc-runtime-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-timing-xgnj2w4v.js → rpc-runtime-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-timing-ydhz1zrh.js → rpc-runtime-ydhz1zrh.js} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
make7
|
|
3
|
+
} from "./rpc-runtime-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
ClientError2
|
|
6
|
+
} from "./rpc-runtime-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
make4
|
|
9
|
+
} from "./rpc-runtime-zrgqmrbq.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
make3,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./rpc-runtime-15p82y03.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./rpc-runtime-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/effect/client.ts
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
OpenCode: () =>
|
|
22
|
-
make: () =>
|
|
19
|
+
var exports_client = {};
|
|
20
|
+
__export(exports_client, {
|
|
21
|
+
OpenCode: () => exports_client,
|
|
22
|
+
make: () => make2
|
|
23
23
|
});
|
|
24
24
|
import { Cause, Context, Effect, Stream } from "effect";
|
|
25
25
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
@@ -28,9 +28,9 @@ var CurrentHeaders = Context.Reference("@opencode/client/effect/rpc/headers", {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
var
|
|
31
|
+
var make2 = Effect.fn("OpenCode.make")(function* (options) {
|
|
32
32
|
const httpClient = yield* HttpClient.HttpClient;
|
|
33
|
-
const raw = yield*
|
|
33
|
+
const raw = yield* make4(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
|
|
34
34
|
const context = yield* Effect.context();
|
|
35
35
|
const native = raw.event.subscribe();
|
|
36
36
|
|
|
@@ -40,13 +40,13 @@ var make4 = Effect.fn("OpenCode.make")(function* (options) {
|
|
|
40
40
|
this.cause = cause;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const shared =
|
|
44
|
-
const subscribe = (input) => Stream.fromAsyncIterable(shared.subscribe({ types: input?.types }), (error) => error).pipe(Stream.catch((error) => Stream.failCause(error instanceof EventFailure ? error.cause : Cause.fail(new
|
|
43
|
+
const shared = make7((signal) => Stream.toAsyncIterableWith(native.pipe(Stream.interruptWhen(aborted2(signal)), Stream.catchCause((cause) => Stream.fail(new EventFailure(cause)))), context));
|
|
44
|
+
const subscribe = (input) => Stream.fromAsyncIterable(shared.subscribe({ types: input?.types }), (error) => error).pipe(Stream.catch((error) => Stream.failCause(error instanceof EventFailure ? error.cause : Cause.fail(new ClientError2({ cause: error })))));
|
|
45
45
|
return {
|
|
46
46
|
...raw,
|
|
47
47
|
event: { ...raw.event, subscribe },
|
|
48
|
-
rpc: Object.assign(
|
|
48
|
+
rpc: Object.assign(make3((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
export {
|
|
52
|
+
export { make2, exports_client };
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
readError2,
|
|
4
4
|
event2,
|
|
5
5
|
eventType2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./rpc-runtime-ryy6kscr.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./rpc-runtime-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/rpc.ts
|
|
12
12
|
var exports_rpc = {};
|
|
13
13
|
__export(exports_rpc, {
|
|
14
14
|
RpcClientRuntime: () => exports_rpc,
|
|
15
15
|
aborted: () => aborted2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make3
|
|
17
17
|
});
|
|
18
18
|
import { Effect, Stream } from "effect";
|
|
19
|
-
function
|
|
19
|
+
function make3(call, subscribe) {
|
|
20
20
|
return (definition) => {
|
|
21
21
|
const methods = Object.fromEntries(Object.entries(definition.methods).map(([name, method]) => [
|
|
22
22
|
name,
|
|
@@ -59,4 +59,4 @@ function aborted2(signal) {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export {
|
|
62
|
+
export { make3, aborted2, exports_rpc };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultEnsureTiming2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./rpc-runtime-xgnj2w4v.js";
|
|
4
4
|
import {
|
|
5
5
|
matchesVersion2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./rpc-runtime-sxt88q69.js";
|
|
7
7
|
|
|
8
8
|
// src/service-probe.ts
|
|
9
9
|
import { homedir } from "node:os";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
make7
|
|
3
|
+
} from "./rpc-runtime-gecjxyvt.js";
|
|
4
|
+
import {
|
|
5
|
+
make6
|
|
6
|
+
} from "./rpc-runtime-nvtq28t3.js";
|
|
7
|
+
import {
|
|
8
|
+
makeRpc2
|
|
9
|
+
} from "./rpc-runtime-7s3gfrb2.js";
|
|
10
|
+
import {
|
|
11
|
+
__export
|
|
12
|
+
} from "./rpc-runtime-9rqn6x4v.js";
|
|
13
|
+
|
|
14
|
+
// src/promise/client.ts
|
|
15
|
+
var exports_client3 = {};
|
|
16
|
+
__export(exports_client3, {
|
|
17
|
+
OpenCode: () => exports_client3,
|
|
18
|
+
make: () => make5
|
|
19
|
+
});
|
|
20
|
+
function make5(options) {
|
|
21
|
+
const raw = make6(options);
|
|
22
|
+
const events = make7((signal, onActivity) => raw.event.subscribe(undefined, { signal, onActivity }));
|
|
23
|
+
return {
|
|
24
|
+
...raw,
|
|
25
|
+
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
26
|
+
event: events
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { make5, exports_client3 };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./rpc-runtime-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/shared-events.ts
|
|
6
6
|
var exports_shared_events = {};
|
|
7
7
|
__export(exports_shared_events, {
|
|
8
8
|
SharedEvents: () => exports_shared_events,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make7
|
|
10
10
|
});
|
|
11
|
-
function
|
|
11
|
+
function make7(connect) {
|
|
12
12
|
let current;
|
|
13
13
|
const capacity = 4096;
|
|
14
14
|
function stop(connection) {
|
|
@@ -146,4 +146,4 @@ function make5(connect) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export {
|
|
149
|
+
export { make7, exports_shared_events };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ClientError3
|
|
3
|
+
} from "./rpc-runtime-nwcpakzx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./rpc-runtime-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
|
-
var
|
|
10
|
-
__export(
|
|
11
|
-
make: () =>
|
|
9
|
+
var exports_client4 = {};
|
|
10
|
+
__export(exports_client4, {
|
|
11
|
+
make: () => make6
|
|
12
12
|
});
|
|
13
13
|
var maxSseEventBytes = 16 * 1024 * 1024;
|
|
14
|
-
function
|
|
14
|
+
function make6(options) {
|
|
15
15
|
const fetch = options.fetch ?? globalThis.fetch;
|
|
16
16
|
const prepare = (descriptor, requestOptions) => {
|
|
17
17
|
const baseUrl = new URL(options.baseUrl);
|
|
@@ -44,7 +44,7 @@ function make3(options) {
|
|
|
44
44
|
const prepared = prepare(descriptor, requestOptions);
|
|
45
45
|
return await fetch(prepared.url, prepared.init);
|
|
46
46
|
} catch (cause) {
|
|
47
|
-
throw new
|
|
47
|
+
throw new ClientError3("Transport", { cause });
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
const responseError = async (response, descriptor) => {
|
|
@@ -53,7 +53,7 @@ function make3(options) {
|
|
|
53
53
|
try {
|
|
54
54
|
await response.body?.cancel();
|
|
55
55
|
} catch {}
|
|
56
|
-
throw new
|
|
56
|
+
throw new ClientError3("UnexpectedStatus", { cause: { status: response.status }, detail: String(response.status) });
|
|
57
57
|
};
|
|
58
58
|
const request = async (descriptor, requestOptions) => {
|
|
59
59
|
const response = await execute(descriptor, requestOptions);
|
|
@@ -78,10 +78,10 @@ function make3(options) {
|
|
|
78
78
|
try {
|
|
79
79
|
await response.body?.cancel();
|
|
80
80
|
} catch {}
|
|
81
|
-
throw new
|
|
81
|
+
throw new ClientError3("UnsupportedContentType", { detail: response.headers.get("content-type") });
|
|
82
82
|
}
|
|
83
83
|
if (response.body === null)
|
|
84
|
-
throw new
|
|
84
|
+
throw new ClientError3("MalformedResponse");
|
|
85
85
|
const reader = response.body.getReader();
|
|
86
86
|
const decoder = new TextDecoder;
|
|
87
87
|
let buffer = "";
|
|
@@ -91,13 +91,13 @@ function make3(options) {
|
|
|
91
91
|
try {
|
|
92
92
|
next = await reader.read();
|
|
93
93
|
} catch (cause) {
|
|
94
|
-
throw new
|
|
94
|
+
throw new ClientError3("Transport", { cause });
|
|
95
95
|
}
|
|
96
96
|
if (!next.done)
|
|
97
97
|
requestOptions?.onActivity?.();
|
|
98
98
|
buffer += decoder.decode(next.value, { stream: !next.done });
|
|
99
99
|
if (buffer.length > maxSseEventBytes)
|
|
100
|
-
throw new
|
|
100
|
+
throw new ClientError3("SseEventTooLarge");
|
|
101
101
|
const trailingCarriageReturn = !next.done && buffer.endsWith("\r");
|
|
102
102
|
if (trailingCarriageReturn)
|
|
103
103
|
buffer = buffer.slice(0, -1);
|
|
@@ -124,7 +124,7 @@ function make3(options) {
|
|
|
124
124
|
try {
|
|
125
125
|
yield JSON.parse(data);
|
|
126
126
|
} catch (cause) {
|
|
127
|
-
throw new
|
|
127
|
+
throw new ClientError3("MalformedResponse", { cause });
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
boundary = buffer.indexOf(`
|
|
@@ -1040,6 +1040,30 @@ function make3(options) {
|
|
|
1040
1040
|
empty: true
|
|
1041
1041
|
}, requestOptions)
|
|
1042
1042
|
},
|
|
1043
|
+
machine: {
|
|
1044
|
+
list: (requestOptions) => request({
|
|
1045
|
+
method: "GET",
|
|
1046
|
+
path: `/api/experimental/machine`,
|
|
1047
|
+
successStatus: 200,
|
|
1048
|
+
declaredStatuses: [400, 401, 403],
|
|
1049
|
+
empty: false
|
|
1050
|
+
}, requestOptions).then((value) => value.data),
|
|
1051
|
+
add: (input, requestOptions) => request({
|
|
1052
|
+
method: "POST",
|
|
1053
|
+
path: `/api/experimental/machine`,
|
|
1054
|
+
body: { name: input["name"], reach: input["reach"], replace: input["replace"] },
|
|
1055
|
+
successStatus: 200,
|
|
1056
|
+
declaredStatuses: [400, 401, 403, 404, 409],
|
|
1057
|
+
empty: false
|
|
1058
|
+
}, requestOptions).then((value) => value.data),
|
|
1059
|
+
remove: (input, requestOptions) => request({
|
|
1060
|
+
method: "DELETE",
|
|
1061
|
+
path: `/api/experimental/machine/${encodeURIComponent(input.name)}`,
|
|
1062
|
+
successStatus: 204,
|
|
1063
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
1064
|
+
empty: true
|
|
1065
|
+
}, requestOptions)
|
|
1066
|
+
},
|
|
1043
1067
|
migration: {
|
|
1044
1068
|
v1: {
|
|
1045
1069
|
status: (requestOptions) => request({
|
|
@@ -1825,20 +1849,20 @@ async function json(response) {
|
|
|
1825
1849
|
try {
|
|
1826
1850
|
await response.body?.cancel();
|
|
1827
1851
|
} catch {}
|
|
1828
|
-
throw new
|
|
1852
|
+
throw new ClientError3("UnsupportedContentType", { detail: response.headers.get("content-type") });
|
|
1829
1853
|
}
|
|
1830
1854
|
let text;
|
|
1831
1855
|
try {
|
|
1832
1856
|
text = await response.text();
|
|
1833
1857
|
} catch (cause) {
|
|
1834
|
-
throw new
|
|
1858
|
+
throw new ClientError3("Transport", { cause });
|
|
1835
1859
|
}
|
|
1836
1860
|
if (text === "")
|
|
1837
|
-
throw new
|
|
1861
|
+
throw new ClientError3("MalformedResponse");
|
|
1838
1862
|
try {
|
|
1839
1863
|
return JSON.parse(text);
|
|
1840
1864
|
} catch (cause) {
|
|
1841
|
-
throw new
|
|
1865
|
+
throw new ClientError3("MalformedResponse", { cause });
|
|
1842
1866
|
}
|
|
1843
1867
|
}
|
|
1844
1868
|
function declared(body) {
|
|
@@ -1851,4 +1875,4 @@ function isContentType(response, expected) {
|
|
|
1851
1875
|
return response.headers.get("content-type")?.split(";", 1)[0]?.trim().toLowerCase() === expected;
|
|
1852
1876
|
}
|
|
1853
1877
|
|
|
1854
|
-
export {
|
|
1878
|
+
export { make6, exports_client4 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/promise/generated/client-error.ts
|
|
2
|
-
class
|
|
2
|
+
class ClientError3 extends Error {
|
|
3
3
|
reason;
|
|
4
4
|
name = "ClientError";
|
|
5
5
|
constructor(reason, options) {
|
|
@@ -9,4 +9,4 @@ class ClientError2 extends Error {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export {
|
|
12
|
+
export { ClientError3 };
|
|
@@ -39,8 +39,9 @@ var isPtyFeatureUnsupportedError2 = (value) => typeof value === "object" && valu
|
|
|
39
39
|
var isBlobNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "BlobNotFoundError";
|
|
40
40
|
var isAutomationNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "AutomationNotFoundError";
|
|
41
41
|
var isArtifactNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ArtifactNotFoundError";
|
|
42
|
+
var isMachineNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "MachineNotFoundError";
|
|
42
43
|
var isShellNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ShellNotFoundError";
|
|
43
44
|
var isWorktreeError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "WorktreeError";
|
|
44
45
|
var isVcsInitNotSupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "VcsInitNotSupportedError";
|
|
45
46
|
|
|
46
|
-
export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isPluginNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isMessageNotFoundError2, isConflictError2, isCommandNotFoundError2, isCommandExecutionError2, isSessionBusyError2, isUnknownError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isSkillNotFoundError2, isInstructionEntryValueTooLargeError2, isProviderNotFoundError2, isModelNotFoundError2, isUnsupportedModelError2, isProviderRequestError2, isForbiddenError2, isVideoNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionSavedNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isPtyFeatureUnsupportedError2, isBlobNotFoundError2, isAutomationNotFoundError2, isArtifactNotFoundError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
|
|
47
|
+
export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isPluginNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isMessageNotFoundError2, isConflictError2, isCommandNotFoundError2, isCommandExecutionError2, isSessionBusyError2, isUnknownError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isSkillNotFoundError2, isInstructionEntryValueTooLargeError2, isProviderNotFoundError2, isModelNotFoundError2, isUnsupportedModelError2, isProviderRequestError2, isForbiddenError2, isVideoNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionSavedNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isPtyFeatureUnsupportedError2, isBlobNotFoundError2, isAutomationNotFoundError2, isArtifactNotFoundError2, isMachineNotFoundError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/effect/generated/client-error.ts
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
|
|
4
|
-
class
|
|
4
|
+
class ClientError2 extends Schema.TaggedError()("ClientError", {
|
|
5
5
|
cause: Schema.Defect()
|
|
6
6
|
}) {
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { ClientError2 };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientApi2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./rpc-runtime-60xe5cbf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
ClientError2
|
|
6
|
+
} from "./rpc-runtime-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./rpc-runtime-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
make: () =>
|
|
12
|
+
var exports_client2 = {};
|
|
13
|
+
__export(exports_client2, {
|
|
14
|
+
make: () => make4
|
|
15
15
|
});
|
|
16
16
|
import { Effect, Stream, Schema } from "effect";
|
|
17
17
|
import { Sse } from "effect/encoding";
|
|
18
18
|
import { HttpClientError } from "effect/http";
|
|
19
19
|
import { HttpApiClient } from "effect/http-api";
|
|
20
|
-
var mapClientError = (error) => HttpClientError.isHttpClientError(error) || Schema.isSchemaError(error) || Sse.Retry.is(error) ? new
|
|
20
|
+
var mapClientError = (error) => HttpClientError.isHttpClientError(error) || Schema.isSchemaError(error) || Sse.Retry.is(error) ? new ClientError2({ cause: error }) : error;
|
|
21
21
|
var preserveEffect = () => (effect) => effect;
|
|
22
22
|
var preserveStream = () => (stream) => stream;
|
|
23
23
|
var EndpointServerInfo = (raw) => () => preserveEffect()(raw["server.info"]({}).pipe(Effect.mapError(mapClientError)));
|
|
@@ -614,6 +614,9 @@ var EndpointExperimentalJobList = (raw) => (input) => preserveEffect()(raw["job.
|
|
|
614
614
|
}
|
|
615
615
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
616
616
|
var EndpointExperimentalJobCancel = (raw) => (input) => preserveEffect()(raw["job.cancel"]({ params: { id: input["id"] } }).pipe(Effect.mapError(mapClientError)));
|
|
617
|
+
var EndpointExperimentalMachineList = (raw) => () => preserveEffect()(raw["machine.list"]({}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
618
|
+
var EndpointExperimentalMachineAdd = (raw) => (input) => preserveEffect()(raw["machine.add"]({ payload: { name: input["name"], reach: input["reach"], replace: input["replace"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
619
|
+
var EndpointExperimentalMachineRemove = (raw) => (input) => preserveEffect()(raw["machine.remove"]({ params: { name: input["name"] } }).pipe(Effect.mapError(mapClientError)));
|
|
617
620
|
var adaptGroupExperimental = (raw) => ({
|
|
618
621
|
persistentPty: {
|
|
619
622
|
read: EndpointExperimentalPersistentPtyRead(raw),
|
|
@@ -643,7 +646,12 @@ var adaptGroupExperimental = (raw) => ({
|
|
|
643
646
|
update: EndpointExperimentalArtifactsUpdate(raw),
|
|
644
647
|
delete: EndpointExperimentalArtifactsDelete(raw)
|
|
645
648
|
},
|
|
646
|
-
job: { list: EndpointExperimentalJobList(raw), cancel: EndpointExperimentalJobCancel(raw) }
|
|
649
|
+
job: { list: EndpointExperimentalJobList(raw), cancel: EndpointExperimentalJobCancel(raw) },
|
|
650
|
+
machine: {
|
|
651
|
+
list: EndpointExperimentalMachineList(raw),
|
|
652
|
+
add: EndpointExperimentalMachineAdd(raw),
|
|
653
|
+
remove: EndpointExperimentalMachineRemove(raw)
|
|
654
|
+
}
|
|
647
655
|
});
|
|
648
656
|
var EndpointShellList = (raw) => (input) => preserveEffect()(raw["shell.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
649
657
|
var EndpointShellCreate = (raw) => (input) => preserveEffect()(raw["shell.create"]({
|
|
@@ -847,6 +855,6 @@ var adaptClient = (raw) => {
|
|
|
847
855
|
}
|
|
848
856
|
};
|
|
849
857
|
};
|
|
850
|
-
var
|
|
858
|
+
var make4 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
|
|
851
859
|
|
|
852
|
-
export {
|
|
860
|
+
export { make4, exports_client2 };
|
package/dist/contract.js
CHANGED
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -2874,6 +2874,33 @@ export type ExperimentalJobCancelInput = {
|
|
|
2874
2874
|
};
|
|
2875
2875
|
export type ExperimentalJobCancelOutput = void;
|
|
2876
2876
|
export type ExperimentalJobCancelOperation<E = never> = (input: ExperimentalJobCancelInput) => Effect.Effect<ExperimentalJobCancelOutput, E>;
|
|
2877
|
+
export type ExperimentalMachineListOutput = ReadonlyArray<{
|
|
2878
|
+
readonly id: string;
|
|
2879
|
+
readonly online: boolean;
|
|
2880
|
+
readonly paired: boolean;
|
|
2881
|
+
readonly os?: string;
|
|
2882
|
+
readonly arch?: string;
|
|
2883
|
+
}>;
|
|
2884
|
+
export type ExperimentalMachineListOperation<E = never> = () => Effect.Effect<ExperimentalMachineListOutput, E>;
|
|
2885
|
+
export type ExperimentalMachineAddInput = {
|
|
2886
|
+
readonly name: string;
|
|
2887
|
+
readonly reach: ReadonlyArray<{
|
|
2888
|
+
readonly type: "url";
|
|
2889
|
+
readonly url: string;
|
|
2890
|
+
}>;
|
|
2891
|
+
readonly replace?: boolean | undefined;
|
|
2892
|
+
};
|
|
2893
|
+
export type ExperimentalMachineAddOutput = {
|
|
2894
|
+
readonly name: string;
|
|
2895
|
+
readonly join: string;
|
|
2896
|
+
readonly expires: number;
|
|
2897
|
+
};
|
|
2898
|
+
export type ExperimentalMachineAddOperation<E = never> = (input: ExperimentalMachineAddInput) => Effect.Effect<ExperimentalMachineAddOutput, E>;
|
|
2899
|
+
export type ExperimentalMachineRemoveInput = {
|
|
2900
|
+
readonly name: string;
|
|
2901
|
+
};
|
|
2902
|
+
export type ExperimentalMachineRemoveOutput = void;
|
|
2903
|
+
export type ExperimentalMachineRemoveOperation<E = never> = (input: ExperimentalMachineRemoveInput) => Effect.Effect<ExperimentalMachineRemoveOutput, E>;
|
|
2877
2904
|
export interface ExperimentalApi<E = never> {
|
|
2878
2905
|
readonly persistentPty: {
|
|
2879
2906
|
readonly read: ExperimentalPersistentPtyReadOperation<E>;
|
|
@@ -2907,6 +2934,11 @@ export interface ExperimentalApi<E = never> {
|
|
|
2907
2934
|
readonly list: ExperimentalJobListOperation<E>;
|
|
2908
2935
|
readonly cancel: ExperimentalJobCancelOperation<E>;
|
|
2909
2936
|
};
|
|
2937
|
+
readonly machine: {
|
|
2938
|
+
readonly list: ExperimentalMachineListOperation<E>;
|
|
2939
|
+
readonly add: ExperimentalMachineAddOperation<E>;
|
|
2940
|
+
readonly remove: ExperimentalMachineRemoveOperation<E>;
|
|
2941
|
+
};
|
|
2910
2942
|
}
|
|
2911
2943
|
export type ShellListInput = {
|
|
2912
2944
|
readonly location?: {
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -61,6 +61,11 @@ export declare const make: (options?: {
|
|
|
61
61
|
list: (input?: import("./api.js").ExperimentalJobListInput) => Effect.Effect<import("./api.js").ExperimentalJobListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
62
62
|
cancel: (input: import("./api.js").ExperimentalJobCancelInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
63
63
|
};
|
|
64
|
+
machine: {
|
|
65
|
+
list: () => Effect.Effect<import("./api.js").ExperimentalMachineListOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
66
|
+
add: (input: import("./api.js").ExperimentalMachineAddInput) => Effect.Effect<import("./api.js").ExperimentalMachineAddOutput, ClientError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").MachineNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
67
|
+
remove: (input: import("./api.js").ExperimentalMachineRemoveInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").MachineNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
68
|
+
};
|
|
64
69
|
session: {
|
|
65
70
|
stats: (input?: import("./api.js").ExperimentalSessionStatsInput) => Effect.Effect<import("./api.js").ExperimentalSessionStatsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
66
71
|
import: (input: import("./api.js").ExperimentalSessionImportInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
package/dist/effect/client.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
2
|
+
make2,
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/rpc-runtime-0djk1vpd.js";
|
|
5
|
+
import"../chunks/rpc-runtime-6mptkzbc.js";
|
|
6
|
+
import"../chunks/rpc-runtime-15p82y03.js";
|
|
7
|
+
import"../chunks/rpc-runtime-zrgqmrbq.js";
|
|
8
|
+
import"../chunks/rpc-runtime-y2etg5bs.js";
|
|
9
|
+
import"../chunks/rpc-runtime-ryy6kscr.js";
|
|
10
|
+
import"../chunks/rpc-runtime-60xe5cbf.js";
|
|
11
|
+
import"../chunks/rpc-runtime-gecjxyvt.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
exports_client as OpenCode,
|
|
14
|
+
make2 as make
|
|
15
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Stream, Schema } from "effect";
|
|
2
2
|
import { Sse } from "effect/encoding";
|
|
3
3
|
import { HttpClientError } from "effect/http";
|
|
4
|
-
import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionCreateInput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionGenerateOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionStatsOutput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionExportOutput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryListOutput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateTextOutput, ExperimentalGenerateImageInput, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceModelsOutput, ExperimentalVoiceSessionInput, ExperimentalVoiceSessionOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, EventSubscribeInput, 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, ExperimentalAutomationCreateInput, ExperimentalAutomationListInput, ExperimentalAutomationListOutput, ExperimentalAutomationGetInput, ExperimentalAutomationPauseInput, ExperimentalAutomationResumeInput, ExperimentalAutomationDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalJobListInput, ExperimentalJobListOutput, ExperimentalJobCancelInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "../api/api.js";
|
|
4
|
+
import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionCreateInput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionGenerateOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionStatsOutput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionExportOutput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryListOutput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateTextOutput, ExperimentalGenerateImageInput, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceModelsOutput, ExperimentalVoiceSessionInput, ExperimentalVoiceSessionOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, EventSubscribeInput, 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, ExperimentalAutomationCreateInput, ExperimentalAutomationListInput, ExperimentalAutomationListOutput, ExperimentalAutomationGetInput, ExperimentalAutomationPauseInput, ExperimentalAutomationResumeInput, ExperimentalAutomationDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalJobListInput, ExperimentalJobListOutput, ExperimentalJobCancelInput, ExperimentalMachineListOutput, ExperimentalMachineAddInput, ExperimentalMachineAddOutput, ExperimentalMachineRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } 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;
|
|
@@ -58,6 +58,11 @@ export declare const make: (options?: {
|
|
|
58
58
|
list: (input?: ExperimentalJobListInput) => Effect.Effect<ExperimentalJobListOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
59
59
|
cancel: (input: ExperimentalJobCancelInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
60
60
|
};
|
|
61
|
+
machine: {
|
|
62
|
+
list: () => Effect.Effect<ExperimentalMachineListOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
63
|
+
add: (input: ExperimentalMachineAddInput) => Effect.Effect<ExperimentalMachineAddOutput, ClientError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").MachineNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
64
|
+
remove: (input: ExperimentalMachineRemoveInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").MachineNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
65
|
+
};
|
|
61
66
|
session: {
|
|
62
67
|
stats: (input?: ExperimentalSessionStatsInput) => Effect.Effect<ExperimentalSessionStatsOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
63
68
|
import: (input: ExperimentalSessionImportInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("@opencode/protocol/errors").ConflictError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
2
|
+
make4
|
|
3
|
+
} from "../../chunks/rpc-runtime-zrgqmrbq.js";
|
|
4
|
+
import"../../chunks/rpc-runtime-y2etg5bs.js";
|
|
5
|
+
import"../../chunks/rpc-runtime-60xe5cbf.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
make4 as make
|
|
8
8
|
};
|