🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@opencode-ai/client

Package Overview
Dependencies
Maintainers
2
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/client - npm Package Compare versions

Comparing version
0.0.0-next-15386
to
0.0.0-next-15391
+7
-5
dist/effect/service.js

@@ -24,6 +24,8 @@ import { Effect, FileSystem, Option, Schedule, Schema } from "effect";

return compatible;
const mismatched = yield* find(options);
yield* Effect.sync(() => options.onStart?.(mismatched === undefined ? "missing" : "version-mismatch", mismatched?.info));
if (mismatched !== undefined)
yield* kill(mismatched.info, options).pipe(Effect.ignore);
const existing = yield* find(options);
if (existing?.version !== undefined && (options.version === undefined || existing.version === options.version))
return existing.endpoint;
yield* Effect.sync(() => options.onStart?.(existing === undefined ? "missing" : "version-mismatch", existing?.info));
if (existing !== undefined)
yield* kill(existing.info, options).pipe(Effect.ignore);
const [command, ...args] = options.command ?? ["opencode", "serve", "--service"];

@@ -103,3 +105,3 @@ if (command === undefined)

return undefined;
return { info, endpoint };
return { info, endpoint, version: health.value.version };
}

@@ -106,0 +108,0 @@ if (!allowLegacy ||

{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/client",
"version": "0.0.0-next-15386",
"version": "0.0.0-next-15391",
"type": "module",

@@ -48,4 +48,4 @@ "license": "MIT",

"dependencies": {
"@opencode-ai/schema": "0.0.0-next-15386",
"@opencode-ai/protocol": "0.0.0-next-15386"
"@opencode-ai/schema": "0.0.0-next-15391",
"@opencode-ai/protocol": "0.0.0-next-15391"
},

@@ -62,3 +62,3 @@ "peerDependencies": {

"@effect/platform-node": "4.0.0-beta.83",
"@opencode-ai/httpapi-codegen": "0.0.0-next-15386",
"@opencode-ai/httpapi-codegen": "0.0.0-next-15391",
"@tsconfig/bun": "1.0.9",

@@ -65,0 +65,0 @@ "@types/bun": "1.3.13",