yuez
4fdc9ad6c8
feat(quota): All as default tab with per-key OpenCode cards grouped by provider, bump v0.4.2
2026-09-20 14:20:01 +08:00
yuez
2f1b2fb821
build: pagecheck as standalone node script (inline escaping was fragile)
2026-09-20 13:18:21 +08:00
yuez
3097d96a8e
chore: bump v0.4.1 to force plugin re-sync with fixed page (v0.4.0 asset shipped with broken JS)
2026-09-20 13:00:35 +08:00
yuez
0a9213ec38
fix(quota): remove duplicate const lastUpdated declaration that broke JS parse
...
The v0.4.0 UI refactor left two top-level const lastUpdated declarations;
a SyntaxError at script parse time took down the whole quota page.
Also added a node --check based syntax verification to the release flow.
2026-09-20 12:59:46 +08:00
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
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