@opencode/plugin 2.0.26 → 2.0.27

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/README.md CHANGED
@@ -11,7 +11,7 @@ Authoring interfaces and runtime loader support for OpenCode V2 plugins:
11
11
 
12
12
  When the OpenCode CLI loads server or TUI plugins, it resolves imports of `effect`, exported `effect/*` subpaths, and `@opencode/plugin` entrypoints (including imports from dependencies inside a plugin's `node_modules`) to the host's runtime module instances so fibers, loggers, and `Schema` parsers share one copy.
13
13
 
14
- - Declare `effect` as a `peerDependency` (and `devDependency` for local type-checking and testing) rather than a bundled runtime dependency.
14
+ - Declare `"effect": "^4.0.0"` as a `peerDependency` (and `devDependency` for local type-checking and testing) rather than a bundled runtime dependency.
15
15
  - Do not bundle `effect` into published plugin files; if you build with a bundler, keep `effect` and `effect/*` external. Two copies of `effect` do not share fiber, logger, or `Schema` internals.
16
16
  - Plugins and their `node_modules` dependencies always receive OpenCode's host `effect` instance. Use `effect` APIs and module paths compatible with the OpenCode release you target; dependencies built on another `effect` major (such as Effect 3) are not supported.
17
17
  - Only public `effect` subpaths are provided. A plugin that imports one of Effect's private `internal` modules fails to load with an error naming the path.
@@ -1,6 +1,6 @@
1
1
  import { Tool } from "@opencode/schema/tool";
2
2
  import { Effect, Schema, SchemaAST, Stream } from "effect";
3
- import { HttpApiEndpoint, HttpApiSchema } from "effect/unstable/httpapi";
3
+ import { HttpApiEndpoint, HttpApiSchema } from "effect/http-api";
4
4
  import { define } from "../effect/plugin.js";
5
5
  const compiledEndpoints = new WeakMap();
6
6
  const JsonInput = Schema.fromJsonString(Schema.Unknown);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/plugin",
4
- "version": "2.0.26",
4
+ "version": "2.0.27",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -47,15 +47,15 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@ai-sdk/provider": "3.0.8",
50
- "@opencode/ai": "2.0.26",
51
- "@opencode/client": "2.0.26",
52
- "@opencode/protocol": "2.0.26",
53
- "@opencode/schema": "2.0.26",
54
- "@opencode/util": "2.0.26",
55
- "effect": "4.0.0-rc.112"
50
+ "@opencode/ai": "2.0.27",
51
+ "@opencode/client": "2.0.27",
52
+ "@opencode/protocol": "2.0.27",
53
+ "@opencode/schema": "2.0.27",
54
+ "@opencode/util": "2.0.27",
55
+ "effect": "4.0.1"
56
56
  },
57
57
  "peerDependencies": {
58
- "@opencode/theme": "2.0.26",
58
+ "@opencode/theme": "2.0.27",
59
59
  "@opentui/core": ">=0.5.17",
60
60
  "@opentui/solid": ">=0.5.17",
61
61
  "solid-js": ">=1.9.0"
@@ -75,7 +75,7 @@
75
75
  }
76
76
  },
77
77
  "devDependencies": {
78
- "@opencode/theme": "2.0.26",
78
+ "@opencode/theme": "2.0.27",
79
79
  "@opentui/core": "0.5.17",
80
80
  "@opentui/solid": "0.5.17",
81
81
  "@tsconfig/bun": "1.0.9",