Repository navigation
Tags
Tags
Migrate local OpenCode plugins to the v2 plugin API
OpenCode 2.x requires a default-exported plugin definition with an id and a setup function. The local kdco plugins used the v1 shape, so OpenCode reported three plugin failures.
- notify.ts: default-export { id, setup, server }. setup re-registers the v1 hooks through ctx.tool.hook and ctx.event.subscribe. Read the session through a shape-tolerant helper that supports both v1 and v2.
- kdco-primitives/index.ts: expose a no-op plugin definition because v2 loads every index entry under .opencode/plugins/.
- worktree/terminal.ts: add the missing canUseCmuxWorkflow helper that notify/cmux.ts imports.
PreviousNext