@opencode/server 0.0.0-dev-19559 → 0.0.0-dev-19560

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.
@@ -7,10 +7,8 @@ import { Api } from "../api";
7
7
  import { response } from "../location";
8
8
  export const PluginHandler = HttpApiBuilder.group(Api, "server.plugin", (handlers) => handlers.handle("plugin.list", () => Effect.gen(function* () {
9
9
  return yield* response(Plugin.Service.use((plugin) => plugin.list()));
10
- })).handle("plugin.awaitActivation", () => Plugin.awaitActivation).handle("plugin.check", (ctx) => Effect.gen(function* () {
11
- const plugins = yield* Plugin.Service;
12
- yield* plugins.awaitActivation;
13
- const inventory = yield* plugins.list(), targets = [
10
+ })).handle("plugin.check", (ctx) => Effect.gen(function* () {
11
+ const inventory = yield* (yield* Plugin.Service).list(), targets = [
14
12
  ...new Set(inventory.flatMap((plugin) => plugin.source.type === "package" ? [plugin.source.target] : []))
15
13
  ].filter((target) => ctx.payload.target === void 0 || target === ctx.payload.target);
16
14
  if (ctx.payload.target !== void 0 && !targets.length)
@@ -34,9 +32,7 @@ export const PluginHandler = HttpApiBuilder.group(Api, "server.plugin", (handler
34
32
  };
35
33
  })));
36
34
  })).handle("plugin.update", (ctx) => Effect.gen(function* () {
37
- const plugins = yield* Plugin.Service;
38
- yield* plugins.awaitActivation;
39
- const inventory = new Set((yield* plugins.list()).flatMap((plugin) => plugin.source.type === "package" ? [plugin.source.target] : [])), unknown = ctx.payload.targets.filter((target) => !inventory.has(target));
35
+ const plugins = yield* Plugin.Service, inventory = new Set((yield* plugins.list()).flatMap((plugin) => plugin.source.type === "package" ? [plugin.source.target] : [])), unknown = ctx.payload.targets.filter((target) => !inventory.has(target));
40
36
  if (unknown.length)
41
37
  return yield* new InvalidRequestError({
42
38
  message: `Plugin packages are not in the current server inventory: ${unknown.join(", ")}`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/server",
4
- "version": "0.0.0-dev-19559",
4
+ "version": "0.0.0-dev-19560",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -30,17 +30,17 @@
30
30
  "dependencies": {
31
31
  "@effect/platform-node": "4.0.0-rc.112",
32
32
  "@effect/platform-node-shared": "4.0.0-rc.112",
33
- "@opencode/core": "0.0.0-dev-19559",
34
- "@opencode/protocol": "0.0.0-dev-19559",
35
- "@opencode/schema": "0.0.0-dev-19559",
36
- "@opencode/simulation": "0.0.0-dev-19559",
37
- "@opencode/util": "0.0.0-dev-19559",
33
+ "@opencode/core": "0.0.0-dev-19560",
34
+ "@opencode/protocol": "0.0.0-dev-19560",
35
+ "@opencode/schema": "0.0.0-dev-19560",
36
+ "@opencode/simulation": "0.0.0-dev-19560",
37
+ "@opencode/util": "0.0.0-dev-19560",
38
38
  "drizzle-orm": "1.0.0-rc.5-169397b",
39
39
  "effect": "4.0.0-rc.112"
40
40
  },
41
41
  "devDependencies": {
42
- "@opencode/client": "0.0.0-dev-19559",
43
- "@opencode/plugin": "0.0.0-dev-19559",
42
+ "@opencode/client": "0.0.0-dev-19560",
43
+ "@opencode/plugin": "0.0.0-dev-19560",
44
44
  "@tsconfig/bun": "1.0.9",
45
45
  "@types/bun": "1.4.0",
46
46
  "@typescript/native-preview": "7.0.0-dev.20251207.1"