fix(usage): restore commandcode quota + timeout guards lost in master merge
The -X theirs merge of origin/master (v0.5.69) silently reverted five branch-only hunks because upstream had no conflict-region counterpart and simply won the three-way pick: * services/usage.js: re-register the commandcode USAGE handler + import. Without it the dashboard Quota Tracker fell through to 'Usage API not implemented for commandcode'. The handler module (services/usage/commandcode.js) and registry usage block survived; only the dispatch entry was dropped. * ProviderLimits/utils.js: restore parseQuotaData 'commandcode' case (currency-credit rows need unit "$" + remainingPercentage forwarding, else $0.05 balances render as 0%). * profile + providers/[id] pages: restore Math.max(1000, ...) connect timeout floors so a stray '60' is never interpreted as 60ms. * .gitignore: re-add .commandcode/ CLI local state. Verified: tests/unit/commandcode-usage.test.js (6) and usage-dispatch.test.js (2, asserts every provider routes to a real handler) pass standalone; full unit run 1742 pass / 107 fail vs 1738/111 before this fix (remaining failures pre-existing, unrelated).
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -88,4 +88,7 @@ graphify-out/*
|
||||
.next-analyze/*
|
||||
|
||||
# Kiro local workspace state
|
||||
.kiro/
|
||||
.kiro/
|
||||
|
||||
# CommandCode CLI local state (auth/taste/projects)
|
||||
.commandcode/
|
||||
Reference in New Issue
Block a user