Repository navigation
Dual-generation support
OpenCOOP now loads on both OpenCode generations from one package:
- V1 (
@opencode-ai/plugin): the loader callsserver(input)and consumes the returned{ tool, dispose }hooks — unchanged behaviour. - V2 (
@opencode/plugin): the loader callssetup(ctx)and the plugin registers all 20 tools throughctx.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/pluginis a devDependency plus an optional peerDependency, so V1 users install nothing extra.
Verified
- V1: headless
opencode serveregisters all 20 tools. - V2:
@opencode/cli@2.0.32+opencode runexecutedopencoop_guideend to end.
Also in this release
- Version badge and
/api/statusreport 1.16.0. - Removed the stray
app.js.bakfrom the published package.