diff --git a/AGENTS.md b/AGENTS.md index 0c52651..98c6dd8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -98,9 +98,9 @@ CLI 只为「自己能权威解释的错误」发出语义化信号,服务端的 如果新命令使用了 `callConsoleGateway`,必须在 `options` 中添加以下三个全局 flag 的说明,以便 `--help` 中展示: ```ts -{ flag: "--console-region ", description: "Console region (global flag)" }, -{ flag: "--console-site ", description: "Console site: domestic, international (global flag)" }, -{ flag: "--console-switch-agent ", description: "Switch agent UID (global flag)", type: "number" }, +{ flag: "--console-region ", description: "Console region" }, +{ flag: "--console-site ", description: "Console site: domestic, international" }, +{ flag: "--console-switch-agent ", description: "Switch agent UID", type: "number" }, ``` 这些 flag 已在 `GLOBAL_OPTIONS`(`packages/core/src/types/command.ts`)中注册,由 `loadConfig` 写入 `config.consoleRegion` / `config.consoleSite` / `config.consoleSwitchAgent`,`callConsoleGateway` 自动读取——命令无需手动提取或传递。 diff --git a/packages/cli/src/commands/app/list.ts b/packages/cli/src/commands/app/list.ts index 185ed24..b87694f 100644 --- a/packages/cli/src/commands/app/list.ts +++ b/packages/cli/src/commands/app/list.ts @@ -29,14 +29,14 @@ export default defineCommand({ description: "Results per page (default: 30)", type: "number", }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/auth/status.ts b/packages/cli/src/commands/auth/status.ts index 5276638..6078037 100644 --- a/packages/cli/src/commands/auth/status.ts +++ b/packages/cli/src/commands/auth/status.ts @@ -143,14 +143,14 @@ export default defineCommand({ description: "Show current authentication state", usage: "bl auth status", options: [ - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/console/call.ts b/packages/cli/src/commands/console/call.ts index b278fa5..aeb03da 100644 --- a/packages/cli/src/commands/console/call.ts +++ b/packages/cli/src/commands/console/call.ts @@ -27,14 +27,14 @@ export default defineCommand({ description: "Request data as JSON string", required: true, }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/mcp/list.ts b/packages/cli/src/commands/mcp/list.ts index 48b7c42..400a468 100644 --- a/packages/cli/src/commands/mcp/list.ts +++ b/packages/cli/src/commands/mcp/list.ts @@ -36,14 +36,14 @@ export default defineCommand({ }, { flag: "--page ", description: "Page number (default: 1)", type: "number" }, { flag: "--page-size ", description: "Results per page (default: 30)", type: "number" }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/quota/check.ts b/packages/cli/src/commands/quota/check.ts index 09065cc..b224b1a 100644 --- a/packages/cli/src/commands/quota/check.ts +++ b/packages/cli/src/commands/quota/check.ts @@ -254,14 +254,14 @@ export default defineCommand({ flag: "--period ", description: "Query usage for the last N minutes (default: 2)", }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/quota/history.ts b/packages/cli/src/commands/quota/history.ts index 3d6593c..51f2643 100644 --- a/packages/cli/src/commands/quota/history.ts +++ b/packages/cli/src/commands/quota/history.ts @@ -114,14 +114,14 @@ export default defineCommand({ flag: "--model ", description: "Filter by model name", }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/quota/list.ts b/packages/cli/src/commands/quota/list.ts index 06e2b2a..77f9dd3 100644 --- a/packages/cli/src/commands/quota/list.ts +++ b/packages/cli/src/commands/quota/list.ts @@ -169,14 +169,14 @@ export default defineCommand({ flag: "--all", description: "Show all models, not just self-service ones", }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/quota/request.ts b/packages/cli/src/commands/quota/request.ts index 89c7660..de4858d 100644 --- a/packages/cli/src/commands/quota/request.ts +++ b/packages/cli/src/commands/quota/request.ts @@ -96,14 +96,14 @@ export default defineCommand({ flag: "--yes", description: "Skip downgrade confirmation", }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/usage/free.ts b/packages/cli/src/commands/usage/free.ts index d6ef941..854a8b4 100644 --- a/packages/cli/src/commands/usage/free.ts +++ b/packages/cli/src/commands/usage/free.ts @@ -207,14 +207,14 @@ export default defineCommand({ flag: "--sort ", description: "Sort by: remaining (ascending), expires (ascending)", }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/usage/freetier.ts b/packages/cli/src/commands/usage/freetier.ts index ec820ec..7f249b5 100644 --- a/packages/cli/src/commands/usage/freetier.ts +++ b/packages/cli/src/commands/usage/freetier.ts @@ -121,14 +121,14 @@ export default defineCommand({ flag: "--off", description: "Disable auto-stop", }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/usage/stats.ts b/packages/cli/src/commands/usage/stats.ts index 46d0f49..bb91822 100644 --- a/packages/cli/src/commands/usage/stats.ts +++ b/packages/cli/src/commands/usage/stats.ts @@ -323,14 +323,14 @@ export default defineCommand({ flag: "--workspace-id ", description: "Workspace ID (env: BAILIAN_WORKSPACE_ID)", }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/packages/cli/src/commands/workspace/list.ts b/packages/cli/src/commands/workspace/list.ts index 3a95362..e213b9f 100644 --- a/packages/cli/src/commands/workspace/list.ts +++ b/packages/cli/src/commands/workspace/list.ts @@ -93,14 +93,14 @@ export default defineCommand({ flag: "--list ", description: "Limit number of results", }, - { flag: "--console-region ", description: "Console region (global flag)" }, + { flag: "--console-region ", description: "Console region" }, { flag: "--console-site ", - description: "Console site: domestic, international (global flag)", + description: "Console site: domestic, international", }, { flag: "--console-switch-agent ", - description: "Switch agent UID (global flag)", + description: "Switch agent UID", type: "number", }, ], diff --git a/skills/bailian-cli/reference/app.md b/skills/bailian-cli/reference/app.md index 7a1bc95..5b56bfb 100644 --- a/skills/bailian-cli/reference/app.md +++ b/skills/bailian-cli/reference/app.md @@ -73,14 +73,14 @@ bl app call --app-id abc123 --prompt "开始" --biz-params '{"key":"value"}' #### Options -| Flag | Type | Required | Description | -| ------------------------------ | ------ | -------- | --------------------------------------------------- | -| `--name ` | string | no | Filter by app name (keyword search) | -| `--page ` | number | no | Page number (default: 1) | -| `--page-size ` | number | no | Results per page (default: 30) | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| Flag | Type | Required | Description | +| ------------------------------ | ------ | -------- | ------------------------------------- | +| `--name ` | string | no | Filter by app name (keyword search) | +| `--page ` | number | no | Page number (default: 1) | +| `--page-size ` | number | no | Results per page (default: 30) | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples diff --git a/skills/bailian-cli/reference/auth.md b/skills/bailian-cli/reference/auth.md index f0e5f4f..eaa1006 100644 --- a/skills/bailian-cli/reference/auth.md +++ b/skills/bailian-cli/reference/auth.md @@ -84,11 +84,11 @@ bl auth logout --yes #### Options -| Flag | Type | Required | Description | -| ------------------------------ | ------ | -------- | --------------------------------------------------- | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| Flag | Type | Required | Description | +| ------------------------------ | ------ | -------- | ------------------------------------- | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples diff --git a/skills/bailian-cli/reference/console.md b/skills/bailian-cli/reference/console.md index e6b6b57..26e70d5 100644 --- a/skills/bailian-cli/reference/console.md +++ b/skills/bailian-cli/reference/console.md @@ -27,9 +27,9 @@ Index: [index.md](index.md) | ------------------------------ | ------ | -------- | ------------------------------------------------------------------------ | | `--api ` | string | yes | API name (e.g. zeldaEasy.broadscope-bailian.memory-library.getLibraries) | | `--data ` | string | yes | Request data as JSON string | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples diff --git a/skills/bailian-cli/reference/mcp.md b/skills/bailian-cli/reference/mcp.md index bd22232..e18dd94 100644 --- a/skills/bailian-cli/reference/mcp.md +++ b/skills/bailian-cli/reference/mcp.md @@ -63,9 +63,9 @@ bl mcp call market-cmapi00073529.SmartFundSelection --arg riskLevel=R3 --arg min | `--type ` | string | no | Server type: OFFICIAL \| PRIVATE (default: OFFICIAL) | | `--page ` | number | no | Page number (default: 1) | | `--page-size ` | number | no | Results per page (default: 30) | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples diff --git a/skills/bailian-cli/reference/quota.md b/skills/bailian-cli/reference/quota.md index 9f7a68c..236f248 100644 --- a/skills/bailian-cli/reference/quota.md +++ b/skills/bailian-cli/reference/quota.md @@ -26,13 +26,13 @@ Index: [index.md](index.md) #### Options -| Flag | Type | Required | Description | -| ------------------------------ | ------ | -------- | --------------------------------------------------- | -| `--model ` | string | no | Model name(s), comma-separated | -| `--period ` | string | no | Query usage for the last N minutes (default: 2) | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| Flag | Type | Required | Description | +| ------------------------------ | ------ | -------- | ----------------------------------------------- | +| `--model ` | string | no | Model name(s), comma-separated | +| `--period ` | string | no | Query usage for the last N minutes (default: 2) | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples @@ -66,14 +66,14 @@ bl quota check --output json #### Options -| Flag | Type | Required | Description | -| ------------------------------ | ------ | -------- | --------------------------------------------------- | -| `--page ` | string | no | Page number (default: 1) | -| `--page-size ` | string | no | Page size (default: 10) | -| `--model ` | string | no | Filter by model name | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| Flag | Type | Required | Description | +| ------------------------------ | ------ | -------- | ------------------------------------- | +| `--page ` | string | no | Page number (default: 1) | +| `--page-size ` | string | no | Page size (default: 10) | +| `--model ` | string | no | Filter by model name | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples @@ -107,13 +107,13 @@ bl quota history --output json #### Options -| Flag | Type | Required | Description | -| ------------------------------ | ------- | -------- | --------------------------------------------------- | -| `--model ` | string | no | Model name(s), comma-separated | -| `--all` | boolean | no | Show all models, not just self-service ones | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| Flag | Type | Required | Description | +| ------------------------------ | ------- | -------- | ------------------------------------------- | +| `--model ` | string | no | Model name(s), comma-separated | +| `--all` | boolean | no | Show all models, not just self-service ones | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples @@ -147,14 +147,14 @@ bl quota list --output json #### Options -| Flag | Type | Required | Description | -| ------------------------------ | ------- | -------- | --------------------------------------------------- | -| `--model ` | string | yes | Model name (required) | -| `--tpm ` | string | yes | Target TPM value (required) | -| `--yes` | boolean | no | Skip downgrade confirmation | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| Flag | Type | Required | Description | +| ------------------------------ | ------- | -------- | ------------------------------------- | +| `--model ` | string | yes | Model name (required) | +| `--tpm ` | string | yes | Target TPM value (required) | +| `--yes` | boolean | no | Skip downgrade confirmation | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples diff --git a/skills/bailian-cli/reference/usage.md b/skills/bailian-cli/reference/usage.md index 66f6256..6ae89c9 100644 --- a/skills/bailian-cli/reference/usage.md +++ b/skills/bailian-cli/reference/usage.md @@ -30,9 +30,9 @@ Index: [index.md](index.md) | `--model ` | string | no | Model name(s) to query, comma-separated for multiple; omit for all models | | `--expiring ` | string | no | Only show quotas expiring within N days | | `--sort ` | string | no | Sort by: remaining (ascending), expires (ascending) | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples @@ -74,15 +74,15 @@ bl usage free --model qwen3-max --console-region cn-beijing #### Options -| Flag | Type | Required | Description | -| ------------------------------ | ------- | -------- | --------------------------------------------------- | -| `--model ` | string | no | Model name(s), comma-separated for multiple | -| `--all` | boolean | no | Apply to all free-tier models | -| `--on` | boolean | no | Enable auto-stop (default behavior) | -| `--off` | boolean | no | Disable auto-stop | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| Flag | Type | Required | Description | +| ------------------------------ | ------- | -------- | ------------------------------------------- | +| `--model ` | string | no | Model name(s), comma-separated for multiple | +| `--all` | boolean | no | Apply to all free-tier models | +| `--on` | boolean | no | Enable auto-stop (default behavior) | +| `--off` | boolean | no | Disable auto-stop | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples @@ -126,9 +126,9 @@ bl usage freetier --off --all | `--days ` | string | no | Number of days (default: 7) | | `--type ` | string | no | Model type: Text, Vision, Multimodal, Audio, Embedding | | `--workspace-id ` | string | no | Workspace ID (env: BAILIAN_WORKSPACE_ID) | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples diff --git a/skills/bailian-cli/reference/workspace.md b/skills/bailian-cli/reference/workspace.md index 82404a0..5cceddc 100644 --- a/skills/bailian-cli/reference/workspace.md +++ b/skills/bailian-cli/reference/workspace.md @@ -23,12 +23,12 @@ Index: [index.md](index.md) #### Options -| Flag | Type | Required | Description | -| ------------------------------ | ------ | -------- | --------------------------------------------------- | -| `--list ` | string | no | Limit number of results | -| `--console-region ` | string | no | Console region (global flag) | -| `--console-site ` | string | no | Console site: domestic, international (global flag) | -| `--console-switch-agent ` | number | no | Switch agent UID (global flag) | +| Flag | Type | Required | Description | +| ------------------------------ | ------ | -------- | ------------------------------------- | +| `--list ` | string | no | Limit number of results | +| `--console-region ` | string | no | Console region | +| `--console-site ` | string | no | Console site: domestic, international | +| `--console-switch-agent ` | number | no | Switch agent UID | #### Examples