@opencode/client 0.0.0-dev-21106 → 0.0.0-dev-21107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/effect/client.d.ts +1330 -1330
- package/dist/effect/generated/client.d.ts +1401 -1401
- package/dist/effect/service.js +1 -1
- package/dist/promise/client.d.ts +7 -7
- package/dist/promise/client.js +2 -2
- package/dist/promise/generated/client.d.ts +1 -1
- package/dist/promise/index.js +2 -2
- package/dist/promise/service.js +1 -1
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.d.ts +5 -5
- package/dist/service-probe.d.ts +5 -5
- package/dist/solid/data.js +2 -2
- package/dist/solid/index.js +1 -1
- package/package.json +6 -6
- /package/dist/chunks/{shared-events-w68y42p9.js → shared-events-mx66vh2p.js} +0 -0
- /package/dist/chunks/{shared-events-cxj88gqf.js → shared-events-p2772a31.js} +0 -0
package/dist/effect/service.js
CHANGED
package/dist/promise/client.d.ts
CHANGED
|
@@ -4,12 +4,6 @@ import { OpenCode } from "./generated/index.js";
|
|
|
4
4
|
import type { ClientOptions } from "./generated/client.js";
|
|
5
5
|
export type { ClientOptions, RequestOptions } from "./generated/client.js";
|
|
6
6
|
export declare function make(options: ClientOptions): {
|
|
7
|
-
rpc: import("./rpc.js").RpcApi<import("./rpc.js").RpcCallOptions> & {
|
|
8
|
-
call: (input: import("./index.js").RpcCallInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").RpcOutput>;
|
|
9
|
-
};
|
|
10
|
-
event: {
|
|
11
|
-
subscribe(options?: SharedEvents.SubscribeOptions): AsyncIterable<import("./index.js").V2Event>;
|
|
12
|
-
};
|
|
13
7
|
server: {
|
|
14
8
|
info: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ServerInfo>;
|
|
15
9
|
pair: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PairingCode>;
|
|
@@ -77,7 +71,7 @@ export declare function make(options: ClientOptions): {
|
|
|
77
71
|
interrupt: (input: import("./index.js").SessionInterruptInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionInterruptResponse>;
|
|
78
72
|
background: (input: import("./index.js").SessionBackgroundInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
79
73
|
message: {
|
|
80
|
-
get: (input: import("./index.js").SessionMessageGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionMessageAgentSelected | import("./index.js").
|
|
74
|
+
get: (input: import("./index.js").SessionMessageGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionMessageAgentSelected | import("./index.js").SessionMessageAssistant | import("./index.js").SessionMessageCompactionCompleted | import("./index.js").SessionMessageCompactionFailed | import("./index.js").SessionMessageCompactionRunning | import("./index.js").SessionMessageIdle | import("./index.js").SessionMessageLocationSwitched | import("./index.js").SessionMessageModelSelected | import("./index.js").SessionMessageShell | import("./index.js").SessionMessageSkill | import("./index.js").SessionMessageSynthetic | import("./index.js").SessionMessageSystem | import("./index.js").SessionMessageUser>;
|
|
81
75
|
};
|
|
82
76
|
form: {
|
|
83
77
|
list: (input: import("./index.js").SessionFormListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormInfo[]>;
|
|
@@ -254,4 +248,10 @@ export declare function make(options: ClientOptions): {
|
|
|
254
248
|
shells: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ConfigShellsOutput>;
|
|
255
249
|
update: (input: import("./index.js").ConfigUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
256
250
|
};
|
|
251
|
+
rpc: import("./rpc.js").RpcApi<import("./rpc.js").RpcCallOptions> & {
|
|
252
|
+
call: (input: import("./index.js").RpcCallInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").RpcOutput>;
|
|
253
|
+
};
|
|
254
|
+
event: {
|
|
255
|
+
subscribe(options?: SharedEvents.SubscribeOptions): AsyncIterable<import("./index.js").V2Event>;
|
|
256
|
+
};
|
|
257
257
|
};
|
package/dist/promise/client.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/shared-events-
|
|
4
|
+
} from "../chunks/shared-events-mx66vh2p.js";
|
|
5
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
5
6
|
import"../chunks/shared-events-vyas3vgt.js";
|
|
6
7
|
import"../chunks/shared-events-hqeq47hr.js";
|
|
7
8
|
import"../chunks/shared-events-js54wxgp.js";
|
|
8
|
-
import"../chunks/shared-events-1y4a697q.js";
|
|
9
9
|
import"../chunks/shared-events-vt9jbch8.js";
|
|
10
10
|
import"../chunks/shared-events-frbwqjmf.js";
|
|
11
11
|
export {
|
|
@@ -78,7 +78,7 @@ export declare function make(options: ClientOptions): {
|
|
|
78
78
|
interrupt: (input: SessionInterruptInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInterruptResponse>;
|
|
79
79
|
background: (input: SessionBackgroundInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
80
80
|
message: {
|
|
81
|
-
get: (input: SessionMessageGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageAgentSelected | import("./types.js").
|
|
81
|
+
get: (input: SessionMessageGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageAgentSelected | import("./types.js").SessionMessageAssistant | import("./types.js").SessionMessageCompactionCompleted | import("./types.js").SessionMessageCompactionFailed | import("./types.js").SessionMessageCompactionRunning | import("./types.js").SessionMessageIdle | import("./types.js").SessionMessageLocationSwitched | import("./types.js").SessionMessageModelSelected | import("./types.js").SessionMessageShell | import("./types.js").SessionMessageSkill | import("./types.js").SessionMessageSynthetic | import("./types.js").SessionMessageSystem | import("./types.js").SessionMessageUser>;
|
|
82
82
|
};
|
|
83
83
|
form: {
|
|
84
84
|
list: (input: SessionFormListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo[]>;
|
package/dist/promise/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import"../chunks/shared-events-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/shared-events-
|
|
4
|
+
} from "../chunks/shared-events-mx66vh2p.js";
|
|
5
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
5
6
|
import"../chunks/shared-events-vyas3vgt.js";
|
|
6
7
|
import"../chunks/shared-events-hqeq47hr.js";
|
|
7
8
|
import {
|
|
8
9
|
ClientError2
|
|
9
10
|
} from "../chunks/shared-events-js54wxgp.js";
|
|
10
|
-
import"../chunks/shared-events-1y4a697q.js";
|
|
11
11
|
import {
|
|
12
12
|
isInvalidRequestError2,
|
|
13
13
|
isUnauthorizedError2,
|
package/dist/promise/service.js
CHANGED
package/dist/pty-handoff.js
CHANGED
package/dist/rpc-runtime.d.ts
CHANGED
|
@@ -5,16 +5,16 @@ export declare function read(schema: Rpc.Method["output"], value: unknown): Effe
|
|
|
5
5
|
export declare function readError(method: Rpc.Method, error: unknown): Effect.Effect<never, unknown>;
|
|
6
6
|
export declare const event: <D extends Rpc.Definition, Name extends keyof D["events"] & string>(definition: D, name: Name, schema: Rpc.EventDefinition, event: {
|
|
7
7
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8
|
+
readonly created: number;
|
|
9
|
+
readonly metadata?: {
|
|
10
|
+
readonly [x: string]: unknown;
|
|
11
|
+
} | undefined;
|
|
12
|
+
readonly type: `rpc.${string}`;
|
|
8
13
|
readonly location: {
|
|
9
14
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
10
15
|
};
|
|
11
16
|
readonly data: {
|
|
12
17
|
readonly [x: string]: unknown;
|
|
13
18
|
};
|
|
14
|
-
readonly type: `rpc.${string}`;
|
|
15
|
-
readonly created: number;
|
|
16
|
-
readonly metadata?: {
|
|
17
|
-
readonly [x: string]: unknown;
|
|
18
|
-
} | undefined;
|
|
19
19
|
}) => Effect.Effect<Rpc.EventPayload<D, Name>, unknown, never>;
|
|
20
20
|
export declare function eventType<const D extends Rpc.Definition, const Name extends keyof D["events"] & string>(definition: D, name: Name): `rpc.${D["id"]}.${Name}`;
|
package/dist/service-probe.d.ts
CHANGED
|
@@ -11,17 +11,17 @@ export type LocalService = {
|
|
|
11
11
|
* it starts, replace it because its version does not meet the requirement, or fail.
|
|
12
12
|
*/
|
|
13
13
|
export declare function decide(service: LocalService, options: DiscoverOptions): {
|
|
14
|
-
_tag: "fail";
|
|
15
|
-
error: Error;
|
|
16
|
-
} | {
|
|
17
14
|
readonly _tag: "replace";
|
|
18
15
|
readonly pty: "clear" | "handoff";
|
|
19
16
|
} | {
|
|
20
|
-
readonly _tag: "reuse";
|
|
21
17
|
readonly pty?: undefined;
|
|
18
|
+
readonly _tag: "reuse";
|
|
22
19
|
} | {
|
|
23
|
-
readonly _tag: "wait";
|
|
24
20
|
readonly pty?: undefined;
|
|
21
|
+
readonly _tag: "wait";
|
|
22
|
+
} | {
|
|
23
|
+
_tag: "fail";
|
|
24
|
+
error: Error;
|
|
25
25
|
};
|
|
26
26
|
/** The default registration file. */
|
|
27
27
|
export declare function fallback(): string;
|
package/dist/solid/data.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
createData2
|
|
5
5
|
} from "../chunks/shared-events-m77rqa4a.js";
|
|
6
6
|
import"../chunks/shared-events-m2eywc8w.js";
|
|
7
|
-
import"../chunks/shared-events-
|
|
7
|
+
import"../chunks/shared-events-mx66vh2p.js";
|
|
8
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
8
9
|
import"../chunks/shared-events-vyas3vgt.js";
|
|
9
10
|
import"../chunks/shared-events-hqeq47hr.js";
|
|
10
11
|
import"../chunks/shared-events-js54wxgp.js";
|
|
11
|
-
import"../chunks/shared-events-1y4a697q.js";
|
|
12
12
|
import"../chunks/shared-events-vt9jbch8.js";
|
|
13
13
|
import"../chunks/shared-events-frbwqjmf.js";
|
|
14
14
|
export {
|
package/dist/solid/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import"../chunks/shared-events-vt9jbch8.js";
|
|
|
4
4
|
import"../chunks/shared-events-vyas3vgt.js";
|
|
5
5
|
import"../chunks/shared-events-frbwqjmf.js";
|
|
6
6
|
import"../chunks/shared-events-1y4a697q.js";
|
|
7
|
-
import"../chunks/shared-events-
|
|
7
|
+
import"../chunks/shared-events-mx66vh2p.js";
|
|
8
8
|
import"../chunks/shared-events-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
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-21107",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"generate": "bun run script/build.ts",
|
|
55
55
|
"check:generated": "bun run generate && git diff --exit-code -- src/promise/generated src/effect/generated src/effect/api",
|
|
56
56
|
"test": "bun test --timeout 5000",
|
|
57
|
-
"typecheck": "
|
|
57
|
+
"typecheck": "tsc --noEmit"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@opencode/schema": "0.0.0-dev-
|
|
61
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
60
|
+
"@opencode/schema": "0.0.0-dev-21107",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-21107"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.1",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.1",
|
|
77
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
77
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-21107",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.4.0",
|
|
80
|
-
"@typescript/native
|
|
80
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
81
81
|
"effect": "4.0.1",
|
|
82
82
|
"solid-js": "1.9.15"
|
|
83
83
|
}
|
|
File without changes
|
|
File without changes
|