yuez
553226c96e
feat: multi-key OpenCode Go usage + quota page redesign, bump v0.4.0
...
- support multiple OpenCode API keys for Go usage and quota queries
- redesigned quota page UI
- update README and tests
2026-09-20 10:50:06 +08:00
yuez
61c50280b1
feat: add OpenCode Go usage query with aggregated /all endpoint, bump v0.3.0
...
- New provider: OpenCode Go (GET https://opencode.ai/zen/go/v1/usage , Bearer auth)
- Extract shared transport doUpstreamRequest (host.http.do first, net/http fallback)
- New management routes: GET/POST /plugins/commandcode/opencode/usage, GET/POST /plugins/commandcode/all
- /all aggregates both providers sequentially with partial-failure semantics
(>=1 success -> 200, all-local-missing -> 400, all-upstream-failure -> 502)
- QuotaCard UI: tabs (Command Code / OpenCode Go / All), OpenCode window cards,
version badge v0.3.0, OpenCode API key test override in settings drawer
- Config: opencode_api_key / opencode_api_base (ConfigFields 2 -> 4)
- Tests: route-order regression, /all partial failure & misclassification guards,
ParseOpenCodeUsage edge cases, host/http transport paths
2026-09-18 09:38:40 +08:00
zgs225
016929f9a7
feat(quota): display quota amounts in USD currency format, bump v0.2.2
...
Command Code quota/credits are USD-denominated. Switch the QuotaCard page
from plain toLocaleString numbers to Intl en-US currency formatting so all
amounts render with a dollar sign, thousand separators and two decimals
(e.g. $5.14, $14.00). Bump plugin version to 0.2.2 (page badge + metadata).
2026-09-09 17:48:34 +08:00
yuez
680a40ebc8
fix: remove auth_provider capability to clean up OAuth page, bump v0.2.1
...
- Remove AuthProvider capability declaration; keep only management_api
- Drop auth.login.start/poll and auth.identifier handlers
- Remove unused auth.parse and file-parsing structs
- Update QuotaCard version tag to v0.2.1
- Sync User-Agent to use PluginVersion
2026-09-08 08:30:50 +08:00
yuez
4adda19b72
fix: correct invalid CSS nesting for plan-tag dark rule, bump page version v0.2.0
...
- Split malformed ':root[data-theme=dark] .plan-tag, @media {...}'
selector list into two valid rules (attribute rule + media rule)
- Bump version-tag displayed on quota page to v0.2.0
2026-09-04 14:25:08 +08:00
yuez
dc6c2d18b3
feat: add subscription plan inference and Management Center theme sync
2026-09-04 14:22:56 +08:00
yuez
688a7f395f
feat: derive monthly (billing period) usage window
...
- Add FetchUsageSummaryRaw calling /internal/usage/summary which returns
billing-period totals (periodBasis=billing-period)
- Derive monthly window: used=totalMonthlyCredits, cap=totalMonthlyCredits
+ monthlyCredits remaining (≈ plan monthly total), remaining=monthlyCredits
- Add monthly card to quota resource page (HTML + JS rendering)
- Skip monthly card when summary unavailable
2026-09-04 14:13:08 +08:00
yuez
4ce221c22a
feat: initial implementation of CLIProxyAPI Command Code plugin (stage 1)
2026-09-04 10:39:04 +08:00