Skip to content

v0.19.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 12:41
· 3 commits to main since this release

Added

  • OpenCode 2.x support. The default export is now a plugin definition with
    id and setup(ctx); the quota gate runs on the context, compaction and
    generate session hooks, and idle refresh uses session.idle events.
  • opencode-hard-limit/tui export: the sidebar as a 2.x TUI plugin
    (sidebar.content slot), loaded from the same plugins entry as the server
    part. Nothing is copied into the config dir on 2.x.
  • The 1.x entry point stays available through server() on the same default
    export, so one package works on both major versions.

Changed

  • The programmatic 1.x factory is now QuotaHardStopPlugin.server({ directory, client }).
    The named QuotaHardStopPlugin export is gone; the default export is an object.
  • OpenCode 1.x needs 1.18.29 or newer, the first version that accepts an object
    as a plugin's default export.
  • opencode-hard-limit install detects the OpenCode major version
    (opencode --version). On 2.x it adds the package to the plugins key of
    opencode.json, drops our old plugin entry, and removes the sidebar copy
    and its tui.json/cli.json entries left by 1.x installs. On 1.x, or when the
    version cannot be detected, it keeps the previous behavior.
  • opencode-hard-limit uninstall clears both the plugin and plugins keys
    and the sidebar entries in tui.json and cli.json.

Full Changelog: v0.18.1...v0.19.0