@mynameistito/opencode-usage-limits is an OpenCode TUI plugin in TypeScript. It surfaces provider usage limits in the sidebar and prompt footer; see the package README's provider table for the current list.
src/core plugin code, providers, UI, and utilities__tests__/automated tests.changeset/release notes and versioning metadata.github/CI, release, and PR templatesscripts/helper scripts such aschangeset-addexamples/sample config and usage files
bun installbun run typecheckbun run checkbun testbun run buildbun run knipbun run changeset-add
- TypeScript-first; use Bun only for package and script execution.
- No default exports unless required by the framework.
- Avoid
anyunless there is a clear necessity. - Keep functions small and single-purpose.
- Use Changesets for user-facing changes.
- Keep PR and issue text concise.
- AI assistance is allowed, but avoid verbose generated prose.
- Put tests under
__tests__/. - Prefer colocated
*.test.tsfiles. - Do not mock away meaningful behavior unless the test truly needs isolation.
This repo also includes community-facing docs and automation: Code of Conduct, Contributing, Security, issue and PR templates, and Dependabot config. Keep them aligned with the repo’s actual contributor workflow.