Skip to content

v1.16.0 — OpenCode V2 support (dual V1 + V2)

Latest

Choose a tag to compare

@Pajand Pajand released this 01 Nov 18:44
· 3 commits to main since this release

Dual-generation support

OpenCOOP now loads on both OpenCode generations from one package:

  • V1 (@opencode-ai/plugin): the loader calls server(input) and consumes the returned { tool, dispose } hooks — unchanged behaviour.
  • V2 (@opencode/plugin): the loader calls setup(ctx) and the plugin registers all 20 tools through ctx.tool.transform.

Config key: plugin on V1, plugins on V2. Same package: @opencoop/opencode-plugin.

Implementation

  • src/plugin-core.ts — shared bootstrap and all 20 tool definitions, so both runtimes behave identically.
  • src/v2.ts — V2 entry point. Tool input schemas are emitted as raw JSON Schema (zodShapeToJsonSchema) because the V2 host rejects foreign zod instances (Schema vendor zod does not support JSON Schema conversion).
  • src/index.ts — default export { id: "opencoop", server, setup }.
  • @opencode/plugin is a devDependency plus an optional peerDependency, so V1 users install nothing extra.

Verified

  • V1: headless opencode serve registers all 20 tools.
  • V2: @opencode/cli@2.0.32 + opencode run executed opencoop_guide end to end.

Also in this release

  • Version badge and /api/status report 1.16.0.
  • Removed the stray app.js.bak from the published package.