Repository navigation
v0.19.0
Added
- OpenCode 2.x support. The default export is now a plugin definition with
idandsetup(ctx); the quota gate runs on thecontext,compactionand
generatesession hooks, and idle refresh usessession.idleevents. opencode-hard-limit/tuiexport: the sidebar as a 2.x TUI plugin
(sidebar.contentslot), loaded from the samepluginsentry 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 namedQuotaHardStopPluginexport 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 installdetects the OpenCode major version
(opencode --version). On 2.x it adds the package to thepluginskey of
opencode.json, drops our oldpluginentry, and removes the sidebar copy
and itstui.json/cli.jsonentries left by 1.x installs. On 1.x, or when the
version cannot be detected, it keeps the previous behavior.opencode-hard-limit uninstallclears both thepluginandpluginskeys
and the sidebar entries intui.jsonandcli.json.
Full Changelog: v0.18.1...v0.19.0