Skip to content

Commit 062bbd4

Browse files
committed
feat(cli): standardize user-facing CLI text to English
1 parent 173e5a7 commit 062bbd4

39 files changed

Lines changed: 221 additions & 263 deletions

packages/cli/src/commands/app/call.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ export default defineCommand({
3535
{ flag: "--has-thoughts", description: "Show agent thinking process" },
3636
],
3737
examples: [
38-
'bl app call --app-id abc123 --prompt "你好"',
39-
'bl app call --app-id abc123 --prompt "描述这张图片" --image https://example.com/photo.jpg',
40-
'bl app call --app-id abc123 --prompt "分析图片" --image img1.jpg --image img2.jpg',
41-
'bl app call --app-id abc123 --prompt "继续" --session-id sess_xxx --stream',
42-
'bl app call --app-id abc123 --prompt "搜索资料" --pipeline-ids pipe1,pipe2',
43-
'bl app call --app-id abc123 --prompt "开始" --biz-params \'{"key":"value"}\'',
38+
'bl app call --app-id abc123 --prompt "Hello"',
39+
'bl app call --app-id abc123 --prompt "Describe this image" --image https://example.com/photo.jpg',
40+
'bl app call --app-id abc123 --prompt "Analyze the image" --image img1.jpg --image img2.jpg',
41+
'bl app call --app-id abc123 --prompt "Continue" --session-id sess_xxx --stream',
42+
'bl app call --app-id abc123 --prompt "Search for materials" --pipeline-ids pipe1,pipe2',
43+
'bl app call --app-id abc123 --prompt "Start" --biz-params \'{"key":"value"}\'',
4444
],
4545
async run(config: Config, flags: GlobalFlags) {
4646
const appId = flags.appId as string;

packages/cli/src/commands/app/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default defineCommand({
3636
],
3737
examples: [
3838
"bl app list",
39-
"bl app list --name 客服",
39+
"bl app list --name customer service",
4040
"bl app list --page 2 --page-size 10",
4141
"bl app list --output json",
4242
],

packages/cli/src/commands/image/edit.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ export default defineCommand({
6464
{ flag: "--out-prefix <prefix>", description: "Filename prefix (default: edited)" },
6565
],
6666
examples: [
67-
'bl image edit --image ./photo.png --prompt "把背景换成海滩"',
67+
'bl image edit --image ./photo.png --prompt "Replace the background with a beach"',
6868
'bl image edit --image https://example.com/logo.png --prompt "Change color to blue" --n 3',
69-
'bl image edit --image ./a.png --image ./b.png --prompt "把两张图合并成一张拼图"',
69+
'bl image edit --image ./a.png --image ./b.png --prompt "Merge two images into one collage"',
7070
'bl image edit --image https://example.com/photo.png --prompt "Remove the person" --model qwen-image-2.0-pro',
71-
'bl image edit --image ./photo.png --prompt "把背景换成海滩" --watermark false',
71+
'bl image edit --image ./photo.png --prompt "Replace the background with a beach" --watermark false',
7272
],
7373
async run(config: Config, flags: GlobalFlags) {
7474
// Normalize --image to string array (supports both single and repeated flags)

packages/cli/src/commands/image/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default defineCommand({
8282
},
8383
],
8484
examples: [
85-
'bl image generate --prompt "一只穿太空服的猫在火星上"',
85+
'bl image generate --prompt "A cat in a spacesuit on Mars"',
8686
'bl image generate --prompt "Logo design" --n 3 --out-dir ./generated/',
8787
'bl image generate --prompt "Mountain landscape" --size 2688*1536',
8888
'bl image generate --prompt "A castle" --seed 42 --prompt-extend false',

packages/cli/src/commands/knowledge/retrieve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export default defineCommand({
6969
},
7070
],
7171
examples: [
72-
'bl knowledge retrieve --index-id idx_xxx --query "如何使用阿里云百炼"',
73-
'bl knowledge retrieve --index-id idx_xxx --query "API限流" --rerank --rerank-model qwen3-rerank-hybrid',
72+
'bl knowledge retrieve --index-id idx_xxx --query "How to use Alibaba Cloud Bailian"',
73+
'bl knowledge retrieve --index-id idx_xxx --query "API rate limiting" --rerank --rerank-model qwen3-rerank-hybrid',
7474
],
7575
async run(config: Config, flags: GlobalFlags) {
7676
const indexId = flags.indexId as string;

packages/cli/src/commands/mcp/call.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export default defineCommand({
5656
{ flag: "--url <url>", description: "Override the MCP endpoint URL (for non-Bailian servers)" },
5757
],
5858
examples: [
59-
'bl mcp call market-cmapi00073529.SmartStockSelection --query "筛选ROE>15%的消费股"',
60-
'bl mcp call market-cmapi00073529.FinQuery --json \'{"q":"贵州茅台","limit":5}\'',
59+
'bl mcp call market-cmapi00073529.SmartStockSelection --query "Screen consumer stocks with ROE > 15%"',
60+
'bl mcp call market-cmapi00073529.FinQuery --json \'{"q":"Guizhou Maotai","limit":5}\'',
6161
"bl mcp call market-cmapi00073529.SmartFundSelection --arg riskLevel=R3 --arg minScale=10",
6262
],
6363
async run(config: Config, flags: GlobalFlags) {

packages/cli/src/commands/mcp/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default defineCommand({
3737
{ flag: "--page-size <n>", description: "Results per page (default: 30)", type: "number" },
3838
{ flag: "--region <region>", description: "API region (default: cn-beijing)" },
3939
],
40-
examples: ["bl mcp list", "bl mcp list --name 金融", "bl mcp list --output json"],
40+
examples: ["bl mcp list", "bl mcp list --name finance", "bl mcp list --output json"],
4141
async run(config: Config, flags: GlobalFlags) {
4242
const serverName = (flags.name as string) || "";
4343
const type = (flags.type as string) || "OFFICIAL";

packages/cli/src/commands/memory/add.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export default defineCommand({
2626
{ flag: "--memory-library-id <id>", description: "Memory library ID (isolate memory space)" },
2727
],
2828
examples: [
29-
'bl memory add --user-id user1 --content "用户喜欢Python编程"',
30-
'bl memory add --user-id user1 --messages \'[{"role":"user","content":"我喜欢旅行"}]\'',
31-
'bl memory add --user-id user1 --content "住在北京" --profile-schema schema_xxx',
29+
'bl memory add --user-id user1 --content "The user likes Python programming"',
30+
'bl memory add --user-id user1 --messages \'[{"role":"user","content":"I like traveling"}]\'',
31+
'bl memory add --user-id user1 --content "Lives in Beijing" --profile-schema schema_xxx',
3232
],
3333
async run(config: Config, flags: GlobalFlags) {
3434
const userId = flags.userId as string;

packages/cli/src/commands/memory/profile-create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export default defineCommand({
2020
{ flag: "--description <text>", description: "Schema description" },
2121
{
2222
flag: "--attributes <json>",
23-
description: 'Attributes JSON array: [{"name":"age","description":"年龄"}]',
23+
description: 'Attributes JSON array: [{"name":"age","description":"age"}]',
2424
required: true,
2525
},
2626
],
2727
examples: [
28-
'bl memory profile create --name "user_basic" --attributes \'[{"name":"age","description":"年龄"},{"name":"hobby","description":"爱好"}]\'',
28+
'bl memory profile create --name "user_basic" --attributes \'[{"name":"age","description":"age"},{"name":"hobby","description":"hobby"}]\'',
2929
],
3030
async run(config: Config, flags: GlobalFlags) {
3131
const name = flags.name as string;

packages/cli/src/commands/memory/search.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default defineCommand({
2727
{ flag: "--memory-library-id <id>", description: "Memory library ID" },
2828
],
2929
examples: [
30-
'bl memory search --user-id user1 --query "编程偏好"',
31-
'bl memory search --user-id user1 --messages \'[{"role":"user","content":"推荐一本书"}]\' --top-k 5',
30+
'bl memory search --user-id user1 --query "programming preferences"',
31+
'bl memory search --user-id user1 --messages \'[{"role":"user","content":"recommend a book"}]\' --top-k 5',
3232
],
3333
async run(config: Config, flags: GlobalFlags) {
3434
const userId = flags.userId as string;

0 commit comments

Comments
 (0)