kimi-code/packages/node-sdk
liruifengv bb0c66a15b
feat(oauth): switch the managed usage payload to the quota model (#3787)
The platform /usages payload now serves per-window used ratios
(goods_version, a usages map of limit5h/limit7d/monthTotal/monthCode
entries with used_ratio/reset_time, and boosterWallet) instead of
absolute used/limit rows.

- oauth: parse and fetch the quota model; keep the platform helpers
- toolkit / agent-core-v2 / node-sdk: getManagedUsage returns the quota
- kap-server: /oauth/usage passes the camelCase quota shape through
  (the legacy snake_case wire is gone)
- TUI /usage: plan rows are presence-driven from the quota payload;
  the monthly row carries a kimi/code breakdown line
- docs: server-api reference updated for the new response shape
2026-09-15 13:33:20 +08:00
..
examples feat(oauth): switch the managed usage payload to the quota model (#3787) 2026-09-15 13:33:20 +08:00
scripts refactor(protocol): remove package and relocate wire types into agent-core-v2 (#3646) 2026-09-08 17:41:41 +08:00
src fix(agent-core-v2): tower mode mistaking newly agents for previous name (#3752) 2026-09-15 12:03:10 +08:00
test refactor(agent-core-v2): fold the prompt queue into the agent loop service (#3747) 2026-09-14 15:07:18 +08:00
api-extractor.json refactor: remove the legacy agent-core v1 package (#3542) 2026-09-07 11:17:51 +08:00
CHANGELOG.md ci: release packages (#3456) 2026-09-02 17:18:07 +08:00
package.json refactor(protocol): remove package and relocate wire types into agent-core-v2 (#3646) 2026-09-08 17:41:41 +08:00
README.md Kimi For Coding 2026-05-22 15:54:50 +08:00
tsconfig.api-extractor.json Kimi For Coding 2026-05-22 15:54:50 +08:00
tsconfig.dts.json refactor: remove the legacy agent-core v1 package (#3542) 2026-09-07 11:17:51 +08:00
tsconfig.json refactor: remove the legacy agent-core v1 package (#3542) 2026-09-07 11:17:51 +08:00
tsdown.config.ts refactor: remove the legacy agent-core v1 package (#3542) 2026-09-07 11:17:51 +08:00
vitest.config.ts test: stabilize the full suite on macOS developer machines (#3643) 2026-09-08 16:21:16 +08:00

@moonshot-ai/kimi-code-sdk

The TypeScript SDK for Kimi Code

Part of the Kimi Code monorepo.

See the main repository for documentation, issues, and contribution guidelines.

License

MIT