kimi-code/packages/oauth/src
liruifengv b91099ed7a
feat: display Extra Usage fuel pack balance in /usage and /status (#1501)
* feat(oauth): parse boosterWallet extra usage from /usages

* feat(oauth): expose extraUsage on AuthManagedUsageResult

* feat(kimi-code): render Extra Usage section in /usage panel

* fix(kimi-code): address Task 3 review feedback for extra usage section

* feat(kimi-code): render Extra Usage section in /status panel

* feat(kimi-code): wire extraUsage into /usage and /status commands

* chore(extra-usage): address final review findings for fuel pack feature

- Update changeset to cover both kimi-code and kimi-code-sdk packages

- Add parser clamp tests and toolkit null-case test

- Replace 'as never' casts in usage-panel tests

- Wrap long import line in status-panel

* chore: temporarily log /usages raw response for debugging

* fix(oauth): accept BOOSTER balance type and drop debug log

* fix(oauth): drop reset hint from Extra Usage and revert periodEnd parsing

* fix(oauth): treat missing amountLeft as zero extra usage and drop debug log

* revert: keep missing amountLeft defaulting to 0 (fully used)

* feat(extra-usage): show monthly cap usage bar and balance in /usage and /status

* fix(extra-usage): show balance and unlimited marker when no monthly cap

* fix(extra-usage): show monthly used with unlimited marker and balance

* fix(extra-usage): label Used and use English Unlimited

* feat(extra-usage): render balance, monthly used and monthly limit as labeled rows

* fix(extra-usage): move Balance row to the bottom

* fix(extra-usage): format currency values with two decimals for column alignment

* fix(extra-usage): right-align currency values so numbers line up

* fix(extra-usage): align currency symbol and decimal point in usage rows
2026-07-09 17:44:59 +08:00
..
api-error.ts fix: Surface API-provided error messages for OAuth and managed API failures (#11) 2026-05-25 14:10:32 +08:00
constants.ts fix: scope managed OAuth credentials (#399) 2026-06-04 13:14:18 +08:00
custom-registry.ts feat: add model alias overrides (#1262) 2026-07-01 19:57:13 +08:00
errors.ts fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
identity.ts feat(managed-kimi-code): route anthropic protocol via beta api (#1186) 2026-06-29 14:24:01 +08:00
index.ts feat(server): auto-refresh provider model catalog and push change events (#1207) 2026-06-30 12:29:10 +08:00
managed-feedback-upload.ts feat(feedback): support attaching logs and codebase (#1120) 2026-06-26 16:15:08 +08:00
managed-feedback.ts feat(feedback): support attaching logs and codebase (#1120) 2026-06-26 16:15:08 +08:00
managed-kimi-code.ts feat: add model alias overrides (#1262) 2026-07-01 19:57:13 +08:00
managed-usage.ts feat: display Extra Usage fuel pack balance in /usage and /status (#1501) 2026-07-09 17:44:59 +08:00
model-alias-merge.ts feat: add model alias overrides (#1262) 2026-07-01 19:57:13 +08:00
oauth-manager.ts fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
oauth.ts fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
open-platform.ts feat: add model alias overrides (#1262) 2026-07-01 19:57:13 +08:00
refreshProviderModels.ts refactor!: overhaul thinking config and effort resolution (#1132) 2026-06-30 22:34:13 +08:00
storage.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
token-state.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
toolkit.ts feat: display Extra Usage fuel pack balance in /usage and /status (#1501) 2026-07-09 17:44:59 +08:00
types.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
utils.ts Kimi For Coding 2026-05-22 15:54:50 +08:00