mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
0f23527bfc
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>
bailian-cli-core
Internal SDK for bailian-cli.
Not intended for direct use. For installation, usage, and documentation, see the CLI package:
- npm: https://www.npmjs.com/package/bailian-cli
- Homepage: https://bailian.console.aliyun.com/cli?source_channel=cli_github&
License
Apache-2.0