You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bump bailian-cli and bailian-cli-core to 1.4.0; document changes since 1.3.3 (console gateway region/site resolution, auth flow improvements, English-only CLI text, region removal, omni --voice).
- Console gateway URL is now resolved from a **region + site** mapping instead of a single hardcoded value. `cn-beijing` and `ap-southeast-1` regions are supported, each with domestic and international site variants, plus `switchAgent` support for delegated access.
14
+
- New global flags `--console-region`, `--console-site`, and `--console-switch-agent` flow through CLI flags → config file → defaults and are applied to all console gateway commands; `bl console call` also gains `--site` and `--switch-agent`.
15
+
-`bl auth login --base-url <url>` — when used with `--api-key`, validates the key against the given base URL and persists it.
16
+
-`bl auth login --console` now parses and persists `workspace_id`, `base_url`, `site`, `region`, and `switchAgent` from the console login callback.
- All user-facing CLI text is now standardized to English.
22
+
- Commands declare whether they need the default API-key setup via `skipDefaultApiKeySetup` on `defineCommand`, replacing the centralized `NO_AUTH_SETUP` list in `main.ts`.
23
+
-`base_url` from the config file now takes priority over the `DASHSCOPE_BASE_URL` environment variable.
24
+
-`bl config show` now displays all fields from `config.json` (with sensitive values masked) rather than a curated subset, and no longer surfaces the removed `region` field.
25
+
- Access-token resolution for `usage` and `quota` commands reworked for more reliable console authentication.
26
+
- Default console login page set to the official China-site address (`https://bailian.console.aliyun.com`).
27
+
28
+
### Removed
29
+
30
+
- The legacy `region` config field and all related logic, options, and telemetry have been removed; region is now derived from the console gateway resolution above.
31
+
- Invalid leftover code for the removed `model list` command.
32
+
33
+
### Fixed
34
+
35
+
- When the console session is not logged in or has expired, the CLI now throws a clear `AUTH` error with the hint to run `bl auth login --console`, instead of a generic gateway error.
0 commit comments