@opencode/client 0.0.0-dev-1326 → 0.0.0-dev-1328
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-hwa6zdcq.js → service-probe-1c19f6wy.js} +2 -2
- package/dist/chunks/{service-timing-xafd70ys.js → service-probe-7s3gfrb2.js} +1 -1
- package/dist/chunks/{service-timing-8ye1ye6f.js → service-probe-8ye1ye6f.js} +2 -2
- package/dist/chunks/{service-timing-5fh62h9m.js → service-probe-9nf6mew2.js} +15 -7
- package/dist/chunks/{service-timing-t8bqr56k.js → service-probe-b58x3wrg.js} +26 -2
- package/dist/chunks/{service-timing-3s7q7x9k.js → service-probe-ftynhkc9.js} +9 -9
- package/dist/chunks/{service-timing-hw6kqa0w.js → service-probe-gecjxyvt.js} +4 -4
- package/dist/chunks/{service-timing-myz4ngx9.js → service-probe-myz4ngx9.js} +2 -2
- package/dist/chunks/{service-timing-12mqmnk4.js → service-probe-pwk3dyev.js} +6 -6
- package/dist/chunks/{service-timing-ryy6kscr.js → service-probe-ryy6kscr.js} +1 -1
- package/dist/chunks/{service-timing-6hqrj29e.js → service-probe-t2hneane.js} +2 -1
- package/dist/chunks/{service-timing-sh042gpe.js → service-probe-wcj4wnr9.js} +1 -1
- 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 +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +6 -1
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +2 -2
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +5 -0
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +6 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +10 -8
- package/dist/promise/generated/types.d.ts +36 -0
- package/dist/promise/generated/types.js +3 -1
- package/dist/promise/index.js +16 -14
- 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-3eaz3m83.js → service-probe-3eaz3m83.js} +0 -0
- /package/dist/chunks/{service-timing-60xe5cbf.js → service-probe-60xe5cbf.js} +0 -0
- /package/dist/chunks/{service-timing-6mptkzbc.js → service-probe-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-timing-6mq2wh8y.js → service-probe-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{service-timing-6r38tsk5.js → service-probe-6r38tsk5.js} +0 -0
- /package/dist/chunks/{service-timing-7f0py9js.js → service-probe-7f0py9js.js} +0 -0
- /package/dist/chunks/{service-timing-8s2anffy.js → service-probe-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-timing-9rqn6x4v.js → service-probe-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-timing-js54wxgp.js → service-probe-js54wxgp.js} +0 -0
- /package/dist/chunks/{service-timing-mwrzahmf.js → service-probe-mwrzahmf.js} +0 -0
- /package/dist/chunks/{service-timing-qav6mfdz.js → service-probe-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-timing-sxt88q69.js → service-probe-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-timing-ve4aws36.js → service-probe-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-timing-vyas3vgt.js → service-probe-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-timing-xgnj2w4v.js → service-probe-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-timing-ydhz1zrh.js → service-probe-ydhz1zrh.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
headers2
|
|
3
|
-
} from "./service-
|
|
3
|
+
} from "./service-probe-8ye1ye6f.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-probe-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/pty-handoff.ts
|
|
9
9
|
var exports_pty_handoff = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultEnsureTiming2
|
|
3
|
-
} from "./service-
|
|
3
|
+
} from "./service-probe-xgnj2w4v.js";
|
|
4
4
|
import {
|
|
5
5
|
matchesVersion2
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-probe-sxt88q69.js";
|
|
7
7
|
|
|
8
8
|
// src/service-probe.ts
|
|
9
9
|
import { homedir } from "node:os";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientApi2
|
|
3
|
-
} from "./service-
|
|
3
|
+
} from "./service-probe-60xe5cbf.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError3
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-probe-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./service-
|
|
9
|
+
} from "./service-probe-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
12
|
var exports_client4 = {};
|
|
13
13
|
__export(exports_client4, {
|
|
14
|
-
make: () =>
|
|
14
|
+
make: () => make5
|
|
15
15
|
});
|
|
16
16
|
import { Effect, Stream, Schema } from "effect";
|
|
17
17
|
import { Sse } from "effect/encoding";
|
|
@@ -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 make5 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
|
|
851
859
|
|
|
852
|
-
export {
|
|
860
|
+
export { make5, exports_client4 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError2
|
|
3
|
-
} from "./service-
|
|
3
|
+
} from "./service-probe-js54wxgp.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-probe-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
9
|
var exports_client2 = {};
|
|
@@ -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],
|
|
1064
|
+
empty: true
|
|
1065
|
+
}, requestOptions)
|
|
1066
|
+
},
|
|
1043
1067
|
migration: {
|
|
1044
1068
|
v1: {
|
|
1045
1069
|
status: (requestOptions) => request({
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./service-
|
|
2
|
+
make7
|
|
3
|
+
} from "./service-probe-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError3
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-probe-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./service-
|
|
8
|
+
make5
|
|
9
|
+
} from "./service-probe-9nf6mew2.js";
|
|
10
10
|
import {
|
|
11
11
|
make6,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./service-
|
|
13
|
+
} from "./service-probe-myz4ngx9.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./service-
|
|
16
|
+
} from "./service-probe-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/effect/client.ts
|
|
19
19
|
var exports_client3 = {};
|
|
@@ -30,7 +30,7 @@ var CurrentHeaders = Context.Reference("@opencode/client/effect/rpc/headers", {
|
|
|
30
30
|
});
|
|
31
31
|
var make4 = Effect.fn("OpenCode.make")(function* (options) {
|
|
32
32
|
const httpClient = yield* HttpClient.HttpClient;
|
|
33
|
-
const raw = yield*
|
|
33
|
+
const raw = yield* make5(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,7 +40,7 @@ var make4 = Effect.fn("OpenCode.make")(function* (options) {
|
|
|
40
40
|
this.cause = cause;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const shared =
|
|
43
|
+
const shared = make7((signal) => Stream.toAsyncIterableWith(native.pipe(Stream.interruptWhen(aborted2(signal)), Stream.catchCause((cause) => Stream.fail(new EventFailure(cause)))), context));
|
|
44
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 ClientError3({ cause: error })))));
|
|
45
45
|
return {
|
|
46
46
|
...raw,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./service-
|
|
3
|
+
} from "./service-probe-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 };
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
readError2,
|
|
4
4
|
event2,
|
|
5
5
|
eventType2
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-probe-ryy6kscr.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./service-
|
|
9
|
+
} from "./service-probe-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/rpc.ts
|
|
12
12
|
var exports_rpc = {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./service-
|
|
2
|
+
make7
|
|
3
|
+
} from "./service-probe-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
make3
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-probe-b58x3wrg.js";
|
|
7
7
|
import {
|
|
8
8
|
makeRpc2
|
|
9
|
-
} from "./service-
|
|
9
|
+
} from "./service-probe-7s3gfrb2.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./service-
|
|
12
|
+
} from "./service-probe-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/promise/client.ts
|
|
15
15
|
var exports_client = {};
|
|
@@ -19,7 +19,7 @@ __export(exports_client, {
|
|
|
19
19
|
});
|
|
20
20
|
function make2(options) {
|
|
21
21
|
const raw = make3(options);
|
|
22
|
-
const events =
|
|
22
|
+
const events = make7((signal, onActivity) => raw.event.subscribe(undefined, { signal, onActivity }));
|
|
23
23
|
return {
|
|
24
24
|
...raw,
|
|
25
25
|
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
@@ -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 };
|
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("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,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make4,
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
10
|
-
import"../chunks/service-
|
|
11
|
-
import"../chunks/service-
|
|
4
|
+
} from "../chunks/service-probe-ftynhkc9.js";
|
|
5
|
+
import"../chunks/service-probe-6mptkzbc.js";
|
|
6
|
+
import"../chunks/service-probe-9nf6mew2.js";
|
|
7
|
+
import"../chunks/service-probe-7f0py9js.js";
|
|
8
|
+
import"../chunks/service-probe-60xe5cbf.js";
|
|
9
|
+
import"../chunks/service-probe-myz4ngx9.js";
|
|
10
|
+
import"../chunks/service-probe-ryy6kscr.js";
|
|
11
|
+
import"../chunks/service-probe-gecjxyvt.js";
|
|
12
12
|
export {
|
|
13
13
|
exports_client3 as OpenCode,
|
|
14
14
|
make4 as make
|
|
@@ -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 | 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/service-
|
|
4
|
-
import"../../chunks/service-
|
|
5
|
-
import"../../chunks/service-
|
|
2
|
+
make5
|
|
3
|
+
} from "../../chunks/service-probe-9nf6mew2.js";
|
|
4
|
+
import"../../chunks/service-probe-7f0py9js.js";
|
|
5
|
+
import"../../chunks/service-probe-60xe5cbf.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
make5 as make
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import"../../chunks/service-
|
|
1
|
+
import"../../chunks/service-probe-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client4
|
|
4
|
-
} from "../../chunks/service-
|
|
4
|
+
} from "../../chunks/service-probe-9nf6mew2.js";
|
|
5
5
|
import {
|
|
6
6
|
ClientError3
|
|
7
|
-
} from "../../chunks/service-
|
|
8
|
-
import"../../chunks/service-
|
|
7
|
+
} from "../../chunks/service-probe-7f0py9js.js";
|
|
8
|
+
import"../../chunks/service-probe-60xe5cbf.js";
|
|
9
9
|
export {
|
|
10
10
|
ClientError3 as ClientError,
|
|
11
11
|
exports_client4 as OpenCode
|
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError3
|
|
3
|
-
} from "../chunks/service-
|
|
4
|
-
import"../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
3
|
+
} from "../chunks/service-probe-7f0py9js.js";
|
|
4
|
+
import"../chunks/service-probe-60xe5cbf.js";
|
|
5
|
+
import"../chunks/service-probe-9nf6mew2.js";
|
|
6
|
+
import"../chunks/service-probe-6mptkzbc.js";
|
|
7
|
+
import"../chunks/service-probe-gecjxyvt.js";
|
|
8
|
+
import"../chunks/service-probe-ryy6kscr.js";
|
|
9
|
+
import"../chunks/service-probe-myz4ngx9.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client3
|
|
12
|
-
} from "../chunks/service-
|
|
12
|
+
} from "../chunks/service-probe-ftynhkc9.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/rpc.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
make6,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
5
|
+
} from "../chunks/service-probe-myz4ngx9.js";
|
|
6
|
+
import"../chunks/service-probe-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
package/dist/effect/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/service-
|
|
4
|
+
} from "../chunks/service-probe-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/service-
|
|
8
|
+
} from "../chunks/service-probe-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/service-
|
|
11
|
+
} from "../chunks/service-probe-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
decide2,
|
|
14
14
|
fallback2,
|
|
15
15
|
same2,
|
|
16
16
|
probeResult2,
|
|
17
17
|
headers2
|
|
18
|
-
} from "../chunks/service-
|
|
18
|
+
} from "../chunks/service-probe-8ye1ye6f.js";
|
|
19
19
|
import {
|
|
20
20
|
prepare2,
|
|
21
21
|
environment2,
|
|
22
22
|
complete2,
|
|
23
23
|
clear2
|
|
24
|
-
} from "../chunks/service-
|
|
25
|
-
import"../chunks/service-
|
|
24
|
+
} from "../chunks/service-probe-1c19f6wy.js";
|
|
25
|
+
import"../chunks/service-probe-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/effect/service.ts
|
|
28
28
|
import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
|
package/dist/promise/client.d.ts
CHANGED
|
@@ -117,6 +117,11 @@ export declare function make(options: ClientOptions): {
|
|
|
117
117
|
list: (input?: import("./index.js").ExperimentalJobListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").JobInfo[]>;
|
|
118
118
|
cancel: (input: import("./index.js").ExperimentalJobCancelInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
119
119
|
};
|
|
120
|
+
machine: {
|
|
121
|
+
list: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").MachineInfo[]>;
|
|
122
|
+
add: (input: import("./index.js").ExperimentalMachineAddInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").MachineInvite>;
|
|
123
|
+
remove: (input: import("./index.js").ExperimentalMachineRemoveInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
124
|
+
};
|
|
120
125
|
migration: {
|
|
121
126
|
v1: {
|
|
122
127
|
status: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalMigrationV1StatusOutput>;
|
package/dist/promise/client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
10
|
-
import"../chunks/service-
|
|
4
|
+
} from "../chunks/service-probe-pwk3dyev.js";
|
|
5
|
+
import"../chunks/service-probe-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-probe-b58x3wrg.js";
|
|
7
|
+
import"../chunks/service-probe-js54wxgp.js";
|
|
8
|
+
import"../chunks/service-probe-7s3gfrb2.js";
|
|
9
|
+
import"../chunks/service-probe-t2hneane.js";
|
|
10
|
+
import"../chunks/service-probe-gecjxyvt.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_client as OpenCode,
|
|
13
13
|
make2 as make
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateImageInput, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceSessionInput, 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, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWriteInput, ExperimentalFileWriteOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalMediaGetInput, ExperimentalMediaGetOutput, ExperimentalBlobGetInput, ExperimentalBlobGetOutput, ExperimentalAutomationCreateInput, ExperimentalAutomationListInput, ExperimentalAutomationGetInput, ExperimentalAutomationPauseInput, ExperimentalAutomationResumeInput, ExperimentalAutomationDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalArtifactsViewInput, ExperimentalArtifactsViewOutput, ExperimentalJobListInput, 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 "./types.js";
|
|
1
|
+
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateImageInput, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceSessionInput, 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, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWriteInput, ExperimentalFileWriteOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalMediaGetInput, ExperimentalMediaGetOutput, ExperimentalBlobGetInput, ExperimentalBlobGetOutput, ExperimentalAutomationCreateInput, ExperimentalAutomationListInput, ExperimentalAutomationGetInput, ExperimentalAutomationPauseInput, ExperimentalAutomationResumeInput, ExperimentalAutomationDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalArtifactsViewInput, ExperimentalArtifactsViewOutput, ExperimentalJobListInput, ExperimentalJobCancelInput, ExperimentalMachineAddInput, 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 "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -124,6 +124,11 @@ export declare function make(options: ClientOptions): {
|
|
|
124
124
|
list: (input?: ExperimentalJobListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").JobInfo[]>;
|
|
125
125
|
cancel: (input: ExperimentalJobCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
126
126
|
};
|
|
127
|
+
machine: {
|
|
128
|
+
list: (requestOptions?: RequestOptions) => Promise<import("./types.js").MachineInfo[]>;
|
|
129
|
+
add: (input: ExperimentalMachineAddInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MachineInvite>;
|
|
130
|
+
remove: (input: ExperimentalMachineRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
131
|
+
};
|
|
127
132
|
migration: {
|
|
128
133
|
v1: {
|
|
129
134
|
status: (requestOptions?: RequestOptions) => Promise<ExperimentalMigrationV1StatusOutput>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import"../../chunks/service-
|
|
1
|
+
import"../../chunks/service-probe-vyas3vgt.js";
|
|
2
|
+
import {
|
|
3
|
+
exports_client2
|
|
4
|
+
} from "../../chunks/service-probe-b58x3wrg.js";
|
|
5
|
+
import {
|
|
6
|
+
ClientError2
|
|
7
|
+
} from "../../chunks/service-probe-js54wxgp.js";
|
|
2
8
|
import {
|
|
3
9
|
isInvalidRequestError2,
|
|
4
10
|
isUnauthorizedError2,
|
|
@@ -40,16 +46,11 @@ import {
|
|
|
40
46
|
isBlobNotFoundError2,
|
|
41
47
|
isAutomationNotFoundError2,
|
|
42
48
|
isArtifactNotFoundError2,
|
|
49
|
+
isMachineNotFoundError2,
|
|
43
50
|
isShellNotFoundError2,
|
|
44
51
|
isWorktreeError2,
|
|
45
52
|
isVcsInitNotSupportedError2
|
|
46
|
-
} from "../../chunks/service-
|
|
47
|
-
import {
|
|
48
|
-
exports_client2
|
|
49
|
-
} from "../../chunks/service-timing-t8bqr56k.js";
|
|
50
|
-
import {
|
|
51
|
-
ClientError2
|
|
52
|
-
} from "../../chunks/service-timing-js54wxgp.js";
|
|
53
|
+
} from "../../chunks/service-probe-t2hneane.js";
|
|
53
54
|
export {
|
|
54
55
|
ClientError2 as ClientError,
|
|
55
56
|
exports_client2 as OpenCode,
|
|
@@ -72,6 +73,7 @@ export {
|
|
|
72
73
|
isInvalidCursorError2 as isInvalidCursorError,
|
|
73
74
|
isInvalidRequestError2 as isInvalidRequestError,
|
|
74
75
|
isLocationNotFoundError2 as isLocationNotFoundError,
|
|
76
|
+
isMachineNotFoundError2 as isMachineNotFoundError,
|
|
75
77
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
76
78
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
77
79
|
isModelNotFoundError2 as isModelNotFoundError,
|
|
@@ -510,6 +510,18 @@ export type ArtifactTime = {
|
|
|
510
510
|
created: number;
|
|
511
511
|
updated: number;
|
|
512
512
|
};
|
|
513
|
+
export type MachineInfo = {
|
|
514
|
+
id: string;
|
|
515
|
+
online: boolean;
|
|
516
|
+
paired: boolean;
|
|
517
|
+
os?: string;
|
|
518
|
+
arch?: string;
|
|
519
|
+
};
|
|
520
|
+
export type MachineInvite = {
|
|
521
|
+
name: string;
|
|
522
|
+
join: string;
|
|
523
|
+
expires: number;
|
|
524
|
+
};
|
|
513
525
|
export type ReferenceGitSource = {
|
|
514
526
|
type: "git";
|
|
515
527
|
repository: string;
|
|
@@ -4190,6 +4202,12 @@ export type ArtifactNotFoundError = {
|
|
|
4190
4202
|
readonly message: string;
|
|
4191
4203
|
};
|
|
4192
4204
|
export declare const isArtifactNotFoundError: (value: unknown) => value is ArtifactNotFoundError;
|
|
4205
|
+
export type MachineNotFoundError = {
|
|
4206
|
+
readonly _tag: "MachineNotFoundError";
|
|
4207
|
+
readonly machine: string;
|
|
4208
|
+
readonly message: string;
|
|
4209
|
+
};
|
|
4210
|
+
export declare const isMachineNotFoundError: (value: unknown) => value is MachineNotFoundError;
|
|
4193
4211
|
export type ShellNotFoundError = {
|
|
4194
4212
|
readonly _tag: "ShellNotFoundError";
|
|
4195
4213
|
readonly id: string;
|
|
@@ -5844,6 +5862,24 @@ export type ExperimentalJobCancelInput = {
|
|
|
5844
5862
|
readonly id: string;
|
|
5845
5863
|
};
|
|
5846
5864
|
export type ExperimentalJobCancelOutput = void;
|
|
5865
|
+
export type ExperimentalMachineListOutput = {
|
|
5866
|
+
data: Array<MachineInfo>;
|
|
5867
|
+
}["data"];
|
|
5868
|
+
export type ExperimentalMachineAddInput = {
|
|
5869
|
+
readonly name: string;
|
|
5870
|
+
readonly reach: ReadonlyArray<{
|
|
5871
|
+
readonly type: "url";
|
|
5872
|
+
readonly url: string;
|
|
5873
|
+
}>;
|
|
5874
|
+
readonly replace?: boolean | undefined;
|
|
5875
|
+
};
|
|
5876
|
+
export type ExperimentalMachineAddOutput = {
|
|
5877
|
+
data: MachineInvite;
|
|
5878
|
+
}["data"];
|
|
5879
|
+
export type ExperimentalMachineRemoveInput = {
|
|
5880
|
+
readonly name: string;
|
|
5881
|
+
};
|
|
5882
|
+
export type ExperimentalMachineRemoveOutput = void;
|
|
5847
5883
|
export type ShellListInput = {
|
|
5848
5884
|
readonly location?: {
|
|
5849
5885
|
readonly directory?: string | undefined;
|
|
@@ -39,10 +39,11 @@ import {
|
|
|
39
39
|
isBlobNotFoundError2,
|
|
40
40
|
isAutomationNotFoundError2,
|
|
41
41
|
isArtifactNotFoundError2,
|
|
42
|
+
isMachineNotFoundError2,
|
|
42
43
|
isShellNotFoundError2,
|
|
43
44
|
isWorktreeError2,
|
|
44
45
|
isVcsInitNotSupportedError2
|
|
45
|
-
} from "../../chunks/service-
|
|
46
|
+
} from "../../chunks/service-probe-t2hneane.js";
|
|
46
47
|
export {
|
|
47
48
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
48
49
|
isArtifactNotFoundError2 as isArtifactNotFoundError,
|
|
@@ -63,6 +64,7 @@ export {
|
|
|
63
64
|
isInvalidCursorError2 as isInvalidCursorError,
|
|
64
65
|
isInvalidRequestError2 as isInvalidRequestError,
|
|
65
66
|
isLocationNotFoundError2 as isLocationNotFoundError,
|
|
67
|
+
isMachineNotFoundError2 as isMachineNotFoundError,
|
|
66
68
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
67
69
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
68
70
|
isModelNotFoundError2 as isModelNotFoundError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import"../chunks/service-
|
|
1
|
+
import"../chunks/service-probe-6r38tsk5.js";
|
|
2
|
+
import {
|
|
3
|
+
mediaHashFromUri2,
|
|
4
|
+
withMediaRefs2
|
|
5
|
+
} from "../chunks/service-probe-mwrzahmf.js";
|
|
2
6
|
import {
|
|
3
7
|
exports_client
|
|
4
|
-
} from "../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
8
|
+
} from "../chunks/service-probe-pwk3dyev.js";
|
|
9
|
+
import"../chunks/service-probe-vyas3vgt.js";
|
|
10
|
+
import"../chunks/service-probe-b58x3wrg.js";
|
|
11
|
+
import {
|
|
12
|
+
ClientError2
|
|
13
|
+
} from "../chunks/service-probe-js54wxgp.js";
|
|
14
|
+
import"../chunks/service-probe-7s3gfrb2.js";
|
|
7
15
|
import {
|
|
8
16
|
isInvalidRequestError2,
|
|
9
17
|
isUnauthorizedError2,
|
|
@@ -45,19 +53,12 @@ import {
|
|
|
45
53
|
isBlobNotFoundError2,
|
|
46
54
|
isAutomationNotFoundError2,
|
|
47
55
|
isArtifactNotFoundError2,
|
|
56
|
+
isMachineNotFoundError2,
|
|
48
57
|
isShellNotFoundError2,
|
|
49
58
|
isWorktreeError2,
|
|
50
59
|
isVcsInitNotSupportedError2
|
|
51
|
-
} from "../chunks/service-
|
|
52
|
-
import
|
|
53
|
-
mediaHashFromUri2,
|
|
54
|
-
withMediaRefs2
|
|
55
|
-
} from "../chunks/service-timing-mwrzahmf.js";
|
|
56
|
-
import"../chunks/service-timing-t8bqr56k.js";
|
|
57
|
-
import {
|
|
58
|
-
ClientError2
|
|
59
|
-
} from "../chunks/service-timing-js54wxgp.js";
|
|
60
|
-
import"../chunks/service-timing-hw6kqa0w.js";
|
|
60
|
+
} from "../chunks/service-probe-t2hneane.js";
|
|
61
|
+
import"../chunks/service-probe-gecjxyvt.js";
|
|
61
62
|
export {
|
|
62
63
|
ClientError2 as ClientError,
|
|
63
64
|
exports_client as OpenCode,
|
|
@@ -80,6 +81,7 @@ export {
|
|
|
80
81
|
isInvalidCursorError2 as isInvalidCursorError,
|
|
81
82
|
isInvalidRequestError2 as isInvalidRequestError,
|
|
82
83
|
isLocationNotFoundError2 as isLocationNotFoundError,
|
|
84
|
+
isMachineNotFoundError2 as isMachineNotFoundError,
|
|
83
85
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
84
86
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
85
87
|
isModelNotFoundError2 as isModelNotFoundError,
|
package/dist/promise/media.d.ts
CHANGED
|
@@ -127,6 +127,11 @@ export declare function withMediaRefs(api: ReturnType<typeof make>): {
|
|
|
127
127
|
list: (input?: import("./index.js").ExperimentalJobListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").JobInfo[]>;
|
|
128
128
|
cancel: (input: import("./index.js").ExperimentalJobCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
129
129
|
};
|
|
130
|
+
machine: {
|
|
131
|
+
list: (requestOptions?: RequestOptions) => Promise<import("./index.js").MachineInfo[]>;
|
|
132
|
+
add: (input: import("./index.js").ExperimentalMachineAddInput, requestOptions?: RequestOptions) => Promise<import("./index.js").MachineInvite>;
|
|
133
|
+
remove: (input: import("./index.js").ExperimentalMachineRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
134
|
+
};
|
|
130
135
|
migration: {
|
|
131
136
|
v1: {
|
|
132
137
|
status: (requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalMigrationV1StatusOutput>;
|
package/dist/promise/media.js
CHANGED
package/dist/promise/rpc.js
CHANGED
package/dist/promise/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/service-
|
|
4
|
+
} from "../chunks/service-probe-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/service-
|
|
8
|
+
} from "../chunks/service-probe-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/service-
|
|
11
|
+
} from "../chunks/service-probe-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
decide2,
|
|
14
14
|
fallback2,
|
|
15
15
|
same2,
|
|
16
16
|
probeResult2,
|
|
17
17
|
headers2
|
|
18
|
-
} from "../chunks/service-
|
|
18
|
+
} from "../chunks/service-probe-8ye1ye6f.js";
|
|
19
19
|
import {
|
|
20
20
|
prepare2,
|
|
21
21
|
environment2,
|
|
22
22
|
complete2,
|
|
23
23
|
clear2
|
|
24
|
-
} from "../chunks/service-
|
|
25
|
-
import"../chunks/service-
|
|
24
|
+
} from "../chunks/service-probe-1c19f6wy.js";
|
|
25
|
+
import"../chunks/service-probe-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/promise/service.ts
|
|
28
28
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/pty-handoff.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
complete2,
|
|
5
5
|
clear2,
|
|
6
6
|
exports_pty_handoff
|
|
7
|
-
} from "./chunks/service-
|
|
8
|
-
import"./chunks/service-
|
|
9
|
-
import"./chunks/service-
|
|
10
|
-
import"./chunks/service-
|
|
7
|
+
} from "./chunks/service-probe-1c19f6wy.js";
|
|
8
|
+
import"./chunks/service-probe-8ye1ye6f.js";
|
|
9
|
+
import"./chunks/service-probe-xgnj2w4v.js";
|
|
10
|
+
import"./chunks/service-probe-sxt88q69.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_pty_handoff as PtyHandoff,
|
|
13
13
|
clear2 as clear,
|
package/dist/rpc-runtime.js
CHANGED
package/dist/service-probe.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
same2,
|
|
5
5
|
probeResult2,
|
|
6
6
|
headers2
|
|
7
|
-
} from "./chunks/service-
|
|
8
|
-
import"./chunks/service-
|
|
9
|
-
import"./chunks/service-
|
|
7
|
+
} from "./chunks/service-probe-8ye1ye6f.js";
|
|
8
|
+
import"./chunks/service-probe-xgnj2w4v.js";
|
|
9
|
+
import"./chunks/service-probe-sxt88q69.js";
|
|
10
10
|
export {
|
|
11
11
|
decide2 as decide,
|
|
12
12
|
fallback2 as fallback,
|
package/dist/service-timing.js
CHANGED
package/dist/service-version.js
CHANGED
package/dist/service.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunks/service-
|
|
1
|
+
import"./chunks/service-probe-qav6mfdz.js";
|
package/dist/shared-events.js
CHANGED
package/dist/solid/connection.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
defaultIdleTimeout2,
|
|
3
3
|
foregroundIdleThreshold2,
|
|
4
4
|
createClientConnection2
|
|
5
|
-
} from "../chunks/service-
|
|
5
|
+
} from "../chunks/service-probe-ydhz1zrh.js";
|
|
6
6
|
export {
|
|
7
7
|
createClientConnection2 as createClientConnection,
|
|
8
8
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/data.js
CHANGED
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
settleMs2,
|
|
3
3
|
locationKey2,
|
|
4
4
|
createData2
|
|
5
|
-
} from "../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
10
|
-
import"../chunks/service-
|
|
11
|
-
import"../chunks/service-
|
|
12
|
-
import"../chunks/service-
|
|
13
|
-
import"../chunks/service-
|
|
14
|
-
import"../chunks/service-
|
|
5
|
+
} from "../chunks/service-probe-wcj4wnr9.js";
|
|
6
|
+
import"../chunks/service-probe-6r38tsk5.js";
|
|
7
|
+
import"../chunks/service-probe-mwrzahmf.js";
|
|
8
|
+
import"../chunks/service-probe-pwk3dyev.js";
|
|
9
|
+
import"../chunks/service-probe-vyas3vgt.js";
|
|
10
|
+
import"../chunks/service-probe-b58x3wrg.js";
|
|
11
|
+
import"../chunks/service-probe-js54wxgp.js";
|
|
12
|
+
import"../chunks/service-probe-7s3gfrb2.js";
|
|
13
|
+
import"../chunks/service-probe-t2hneane.js";
|
|
14
|
+
import"../chunks/service-probe-gecjxyvt.js";
|
|
15
15
|
export {
|
|
16
16
|
createData2 as createData,
|
|
17
17
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import"../chunks/service-
|
|
2
|
-
import"../chunks/service-
|
|
3
|
-
import"../chunks/service-
|
|
4
|
-
import"../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
1
|
+
import"../chunks/service-probe-js54wxgp.js";
|
|
2
|
+
import"../chunks/service-probe-b58x3wrg.js";
|
|
3
|
+
import"../chunks/service-probe-t2hneane.js";
|
|
4
|
+
import"../chunks/service-probe-vyas3vgt.js";
|
|
5
|
+
import"../chunks/service-probe-gecjxyvt.js";
|
|
6
|
+
import"../chunks/service-probe-7s3gfrb2.js";
|
|
7
|
+
import"../chunks/service-probe-pwk3dyev.js";
|
|
8
|
+
import"../chunks/service-probe-mwrzahmf.js";
|
|
9
|
+
import"../chunks/service-probe-6r38tsk5.js";
|
|
10
10
|
import {
|
|
11
11
|
settleMs2,
|
|
12
12
|
locationKey2,
|
|
13
13
|
createData2
|
|
14
|
-
} from "../chunks/service-
|
|
14
|
+
} from "../chunks/service-probe-wcj4wnr9.js";
|
|
15
15
|
import {
|
|
16
16
|
defaultIdleTimeout2,
|
|
17
17
|
foregroundIdleThreshold2,
|
|
18
18
|
createClientConnection2
|
|
19
|
-
} from "../chunks/service-
|
|
19
|
+
} from "../chunks/service-probe-ydhz1zrh.js";
|
|
20
20
|
import {
|
|
21
21
|
PersistentPtyMessage2,
|
|
22
22
|
decodePersistentPtyMessage2,
|
|
23
23
|
persistentPtyFrame2,
|
|
24
24
|
createPersistentPtyClient2
|
|
25
|
-
} from "../chunks/service-
|
|
25
|
+
} from "../chunks/service-probe-3eaz3m83.js";
|
|
26
26
|
import {
|
|
27
27
|
createSessionRetention2
|
|
28
|
-
} from "../chunks/service-
|
|
28
|
+
} from "../chunks/service-probe-6mq2wh8y.js";
|
|
29
29
|
import {
|
|
30
30
|
lastAssistantWithUsage2
|
|
31
|
-
} from "../chunks/service-
|
|
31
|
+
} from "../chunks/service-probe-8s2anffy.js";
|
|
32
32
|
export {
|
|
33
33
|
PersistentPtyMessage2 as PersistentPtyMessage,
|
|
34
34
|
createClientConnection2 as createClientConnection,
|
package/dist/solid/pty.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
decodePersistentPtyMessage2,
|
|
4
4
|
persistentPtyFrame2,
|
|
5
5
|
createPersistentPtyClient2
|
|
6
|
-
} from "../chunks/service-
|
|
6
|
+
} from "../chunks/service-probe-3eaz3m83.js";
|
|
7
7
|
export {
|
|
8
8
|
PersistentPtyMessage2 as PersistentPtyMessage,
|
|
9
9
|
createPersistentPtyClient2 as createPersistentPtyClient,
|
package/dist/solid/retention.js
CHANGED
package/dist/solid/usage.js
CHANGED
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-1328",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typecheck:tsc": "tsc --noEmit"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@opencode/schema": "0.0.0-dev-
|
|
67
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
66
|
+
"@opencode/schema": "0.0.0-dev-1328",
|
|
67
|
+
"@opencode/protocol": "0.0.0-dev-1328"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"effect": "4.1.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@effect/platform-node": "4.1.0",
|
|
83
83
|
"@modelcontextprotocol/client": "2.4.0",
|
|
84
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
84
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-1328",
|
|
85
85
|
"@tsconfig/bun": "1.0.9",
|
|
86
86
|
"@types/bun": "1.4.3",
|
|
87
87
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|