Repository navigation
Releases
Releases · ManeFunction/opencode-zai-limits
v1.0.1
Fixed
- npm installations (
opencode plugin add opencode-zai-limits) no longer fail with
Cannot find package 'react' imported from .../src/tui.tsx. The TUI part is now precompiled todist/tui.js
at build time and the./tuiexport points there. OpenCode transforms local.tsxplugin parts with its
Solid/OpenTUI preset, but that transform skips files undernode_modules, so the shipped source fell through
to Bun's default React JSX transform. Local plugin folders were not affected.
Full Changelog: v1.0.0...v1.0.1
v1.0.0
Changed
- The footer meter shows the percentage of credits used instead of the percentage left, matching the
Usage column of/zai-limits:z.ai | 3h 33m : 45% | 2d : 20%. The green/yellow/red color still follows
the remaining 5h credits. - A 5-hour window that has not started (nothing used) is left out of the meter (
z.ai | 2d : 20%) instead of
showing5h : 100%, and the meter readsz.ai | fullwhen nothing is used in either window.
Full Changelog: v0.9.1...v1.0.0
v0.9.1
Technical release to validate an nmp trusted publisher.
Full Changelog: v0.9.0...v0.9.1
v0.9.0
Initial release.
Derived from guyinwonder168/opencode-glm-quota (as of PR #52 by @itelyatnikov80, commit dafcf639),
security-reviewed and then reworked into its own zero-dependency project.
Not a fork and not intended to be merged back.
THE BIGGEST IMPROVEMENT FOR THE END USER: Neither the footer meter nor /zai-limits spends credits or tokens:
both only make plain monitoring GETs, with no agent and no model call.
Full Changelog: https://github.com/ManeFunction/opencode-zai-limits/commits/v0.9.0
Features:
- improved /zai-limits TUI popup structure
- added opencode bun:sqlite support to remove external sqlite dependency
- Renamed glm-limits to zai-limits
- /glm-limits do not launch subagent anymore
- initial rework
Fixes:
- rename glm leftovers
- share MCP tool labels and format MCP usage numbers
- fall back to per-model tokens when 24h totals read zero
- drop the 40M token sentinel and its fallback loop
- surface API errors instead of an empty report
- decode response body as a UTF-8 stream
Refactor:
- move the report renderer into src/report/
- one duration helper for the report and the meter
- parse the quota response into one typed model