kimi-code/packages/oauth/test
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
..
custom-registry.test.ts refactor!: overhaul thinking config and effort resolution (#1132) 2026-06-30 22:34:13 +08:00
helpers.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
identity.test.ts feat(update): roll out automatic updates in staged batches via CDN manifest (#691) 2026-06-15 16:52:44 +08:00
managed-feedback-upload.test.ts feat(feedback): support attaching logs and codebase (#1120) 2026-06-26 16:15:08 +08:00
managed-feedback.test.ts feat(feedback): support attaching logs and codebase (#1120) 2026-06-26 16:15:08 +08:00
managed-kimi-code.test.ts feat: add model alias overrides (#1262) 2026-07-01 19:57:13 +08:00
managed-usage.test.ts feat: display Extra Usage fuel pack balance in /usage and /status (#1501) 2026-07-09 17:44:59 +08:00
model-alias-merge.test.ts feat: add model alias overrides (#1262) 2026-07-01 19:57:13 +08:00
oauth-manager-lock-failure.test.ts ci: run unit tests on windows (#1037) 2026-06-26 11:56:41 +08:00
oauth-manager-multi-process.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
oauth-manager.test.ts fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
oauth.test.ts fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
open-platform.test.ts feat: add model alias overrides (#1262) 2026-07-01 19:57:13 +08:00
refresh-threshold.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
storage.test.ts ci: run unit tests on windows (#1037) 2026-06-26 11:56:41 +08:00
toolkit.test.ts feat: display Extra Usage fuel pack balance in /usage and /status (#1501) 2026-07-09 17:44:59 +08:00