Tags: slkiser/opencode-quota
Tags
Bump opencode-gemini-auth and add MiniMax CN Update vendored opencode-gemini-auth to v1.4.15: add compiled dist artifacts (index.js/.d.ts/.map), remove original TypeScript sources, and refresh upstream-plugins lock and package metadata. Add MiniMax Coding Plan (CN) documentation and provider-check notes in README. Introduce minimax-endpoints.ts and apply related updates across src libs, scripts (upstream-plugin sanitization/sync), and tests to align with the upstream plugin changes.
Enable compact sessionPrompt and tweak TUI UI Make compact status show in the session prompt by default and adjust related UI behavior and docs. The installer now sets tuiCompactStatus.sessionPrompt = true and updates the plan summary label. TUI runtime accepts an optional maxWidth override for compact lines, and the CompactStatusLine component gains a blankLineBefore option and supports a new justifyContent value (flex-start). README image paths and documentation about compact status surfaces were updated, and tests were revised/added to reflect the new default and rendering behavior (including a smoke test for the centered home compact status with a blank line). Minor types/doc comment cleanup included.
Crof: require external API key, drop aliases Remove Crof provider aliases and auth.json fallback and treat Crof as an external API-key-only provider. The crof config resolver now uses resolveApiKeyFromEnvAndConfig and only honors CROF_API_KEY and trusted global opencode config (opencode.json/opencode.jsonc); imports and logic for reading auth.json and provider aliases (crof-ai, nahcrof) were removed. Provider metadata and types were updated to mark Crof authentication as external_api_key and to drop synonym/runtime ids for crof-ai/nahcrof. README and tests were updated to reflect that Crof is not available via OpenCode /connect and to remove tests that relied on auth.json/provider aliases.
Add provider template and update docs Introduce a contributing/provider-template with example provider code and tests to standardize adding API-key/token providers (config.ts, provider.ts, config.test.ts, provider.test.ts, and a README explaining usage). Update docs and checklists: .github/pull_request_template.md and CONTRIBUTING.md now require using the template or explaining why it doesn't apply and verifying provider README wording against implementation/tests. Small README wording tweaks to clarify OpenAI uses OAuth in auth.json diagnostics.
Use experimental opencode.json in quota tests Update quotaConfigSource in three test files to reference join(dir, "opencode.json") and label it "(experimental.quotaToast)" instead of the previous "opencode-quota/quota-toast.json" string. This keeps tests in sync with the updated runtime config location/naming.
PreviousNext