-
released this
2026-09-29 19:53:51 +00:00 | 55 commits to main since this releasev0.7.0 - 2026-09-29
Breaking
- The OpenCode plugin now targets the OpenCode 2 plugin API and needs OpenCode >=2.0.0. The V1 API no longer loads, so v0.6.0 and earlier register no tools under OpenCode 2.
Added
- The plugin default-exports a V2 definition with a stable id and a setup(ctx) that registers all 37 tools through ctx.tool.transform.
- The release asset is now
forgejoctl.tgz, notforgejoctl.tar.gz. Same bytes; the short extension matches npm,bun pm pack, Yarn, and pnpm.
Changed
- Tool arguments are zod schemas, so tool bodies drop their argument casts and return text as content.
- Host and branch inference use ctx.location.directory, the location the plugin loaded. V2 offers no directory in a tool's execute context.
- The wake-up notifier fires through ctx.session.prompt, replacing the removed client.session.promptAsync.
Fixed
bun pm packbuilds before packing, so a source-only tarball can no longer ship without dist/plugin.js and get silently dropped by OpenCode.- The package ships
dependencies: {}. OpenCode's installer resolves declared dependencies against the registry, which broke the install on a host that cannot reach registry.npmjs.org. Everything is bundled into dist/plugin.js.
No new tools here. Label CRUD,
whoami, andrepo listshipped in v0.6.0.Upgrading: point the
opencode.jsonpluginsentry at this release URL, then runopencode plugin listtwice. A dash in the id column right after the bump is OpenCode installing in the background, not a failure.Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download