@opencode-ai/client 0.0.0-next-15335 → 0.0.0-next-15336
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/service.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type Options = {
|
|
|
14
14
|
};
|
|
15
15
|
export type StartReason = "missing" | "version-mismatch";
|
|
16
16
|
export type StartOptions = Options & {
|
|
17
|
-
readonly onStart?: (reason: StartReason) => void;
|
|
17
|
+
readonly onStart?: (reason: StartReason, existing?: Info) => void;
|
|
18
18
|
};
|
|
19
19
|
export declare const discover: (options?: Options | undefined) => Effect.Effect<{
|
|
20
20
|
url: string;
|
package/dist/effect/service.js
CHANGED
|
@@ -22,7 +22,7 @@ export const start = Effect.fn("service.start")(function* (options = {}) {
|
|
|
22
22
|
if (compatible !== undefined)
|
|
23
23
|
return compatible;
|
|
24
24
|
const mismatched = yield* find(options);
|
|
25
|
-
yield* Effect.sync(() => options.onStart?.(mismatched === undefined ? "missing" : "version-mismatch"));
|
|
25
|
+
yield* Effect.sync(() => options.onStart?.(mismatched === undefined ? "missing" : "version-mismatch", mismatched?.info));
|
|
26
26
|
if (mismatched !== undefined)
|
|
27
27
|
yield* kill(mismatched.info, options).pipe(Effect.ignore);
|
|
28
28
|
const [command, ...args] = options.command ?? ["opencode", "serve", "--service"];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-15336",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"typecheck": "tsgo --noEmit"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
49
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
48
|
+
"@opencode-ai/schema": "0.0.0-next-15336",
|
|
49
|
+
"@opencode-ai/protocol": "0.0.0-next-15336"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"effect": "4.0.0-beta.83"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@effect/platform-node": "4.0.0-beta.83",
|
|
61
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
61
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-15336",
|
|
62
62
|
"@tsconfig/bun": "1.0.9",
|
|
63
63
|
"@types/bun": "1.3.13",
|
|
64
64
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|