Files
modelstudioai__cli/packages/core
lisheng.lisheng 0f23527bfc feat(core): move generateCLIAccessToken to core and auto-refresh on NotLogined
Move the GenerateCLIAccessToken API call logic into core/auth/refresh-token.ts
so it can be reused across packages. Add refreshAccessToken() which reads
AK/SK from config, calls the API, and persists the new access_token.

Client.console() now catches NotLogined errors and automatically retries
with a refreshed token when AK/SK are available in config.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-07-10 00:00:57 +08:00
..
2026-05-28 18:37:07 +08:00
2026-05-28 18:37:07 +08:00

bailian-cli-core

English | 简体中文

Internal SDK for bailian-cli.

Not intended for direct use. For installation, usage, and documentation, see the CLI package:

License

Apache-2.0