Files
plagin_tokens/plagin_tokens/index.ts
T
Andrew Emelyaneko 9f10b4aab3
Release Candidates / linux-package (push) Failing after 0s
Release Candidates / macos-package (push) Canceled after 0s
feat: port plagin-tokens to the OpenCode 2 plugin API
- 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.
2026-11-02 13:51:21 +03:00

2 lines
39 B
TypeScript

export { default } from "./src/plugin"