- Export a V2 plugin definition (Plugin.define shape) via a root index.ts
entrypoint and switch the devDependency to @opencode/plugin 2.2.5.
- Convert the V1 hook object to setup(ctx) with ctx.event.subscribe() and
return a cleanup function instead of dispose().
- Track OpenCode 2 streaming events (session.text.delta,
session.reasoning.delta, session.step.started/ended, session.execution.*)
alongside the legacy message.* events, accumulating multi-step output per
assistant message and de-duplicating replayed durable events.
- Drop client.app.log in favour of console logging; keep the shared HTTP
server and macOS HUD refcounting intact.
- Ship installers (tar.gz, deb, rpm, dmg) as a plugin directory instead of a
single .ts symlink, which OpenCode 2 ignores.
- Add v2 routeEvent tests; bump to 0.2.0.
Add a "%" case to calculate() returning a % b. Extend the zero-division guard _check_div_zero to raise ZeroDivisionError for "%" alongside "/" and "//", and update the module/function docstrings and Raises section accordingly. Type annotations for the numeric operands simplified from float | int to float.
Pipeline stages: orchestrator -> implementer -> reviewer -> committer
Task: Add modulo (%) support to calculate()