@rdmind/rdmind 0.2.7-alpha.8 → 0.2.8-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/cli.js +2008 -1682
  2. package/locales/en.js +40 -45
  3. package/locales/zh.js +43 -46
  4. package/package.json +2 -2
package/locales/en.js CHANGED
@@ -186,6 +186,7 @@ export default {
186
186
  'Enter to confirm, Esc to cancel': 'Enter to confirm, Esc to cancel',
187
187
  'Enter to select, ↑↓ to navigate, Esc to go back':
188
188
  'Enter to select, ↑↓ to navigate, Esc to go back',
189
+ 'Enter to submit, Esc to go back': 'Enter to submit, Esc to go back',
189
190
  'Invalid step: {{step}}': 'Invalid step: {{step}}',
190
191
  'No subagents found.': 'No subagents found.',
191
192
  "Use '/agents create' to create your first subagent.":
@@ -952,18 +953,22 @@ export default {
952
953
  // Dialogs - Auth
953
954
  // ============================================================================
954
955
  'Get started': 'Get started',
955
- 'How would you like to authenticate for this project?':
956
- 'How would you like to authenticate for this project?',
956
+ 'Select Authentication Method': 'Select Authentication Method',
957
957
  'OpenAI API key is required to use OpenAI authentication.':
958
958
  'OpenAI API key is required to use OpenAI authentication.',
959
959
  'You must select an auth method to proceed. Press Ctrl+C again to exit.':
960
960
  'You must select an auth method to proceed. Press Ctrl+C again to exit.',
961
- '(Use Enter to Set Auth)': '(Use Enter to Set Auth)',
962
- 'Terms of Services and Privacy Notice for RDMind':
963
- 'Terms of Services and Privacy Notice for RDMind',
961
+ 'Terms of Services and Privacy Notice':
962
+ 'Terms of Services and Privacy Notice',
964
963
  'Qwen OAuth': 'Qwen OAuth',
964
+ 'Free \u00B7 Up to 1,000 requests/day \u00B7 Qwen latest models':
965
+ 'Free \u00B7 Up to 1,000 requests/day \u00B7 Qwen latest models',
965
966
  'Login with QwenChat account to use daily free quota.':
966
967
  'Login with QwenChat account to use daily free quota.',
968
+ 'Paid \u00B7 Up to 6,000 requests/5 hrs \u00B7 All Alibaba Cloud Coding Plan Models':
969
+ 'Paid \u00B7 Up to 6,000 requests/5 hrs \u00B7 All Alibaba Cloud Coding Plan Models',
970
+ 'Alibaba Cloud Coding Plan': 'Alibaba Cloud Coding Plan',
971
+ 'Bring your own API key': 'Bring your own API key',
967
972
  'API-KEY': 'API-KEY',
968
973
  'Use Xiaohongshu SSO or API Key': 'Use Xiaohongshu SSO or API Key',
969
974
  OpenAI: 'OpenAI',
@@ -990,6 +995,8 @@ export default {
990
995
  'Waiting for Qwen OAuth authentication...',
991
996
  'Note: Your existing API key in settings.json will not be cleared when using Qwen OAuth. You can switch back to OpenAI authentication later if needed.':
992
997
  'Note: Your existing API key in settings.json will not be cleared when using Qwen OAuth. You can switch back to OpenAI authentication later if needed.',
998
+ 'Note: Your existing API key will not be cleared when using Qwen OAuth.':
999
+ 'Note: Your existing API key will not be cleared when using Qwen OAuth.',
993
1000
  'Authentication timed out. Please try again.':
994
1001
  'Authentication timed out. Please try again.',
995
1002
  'Waiting for auth... (Press ESC or CTRL+C to cancel)':
@@ -1037,6 +1044,17 @@ export default {
1037
1044
  '(default)': '(default)',
1038
1045
  '(set)': '(set)',
1039
1046
  '(not set)': '(not set)',
1047
+ Modality: 'Modality',
1048
+ 'Context Window': 'Context Window',
1049
+ text: 'text',
1050
+ 'text-only': 'text-only',
1051
+ image: 'image',
1052
+ pdf: 'pdf',
1053
+ audio: 'audio',
1054
+ video: 'video',
1055
+ 'not set': 'not set',
1056
+ none: 'none',
1057
+ unknown: 'unknown',
1040
1058
  "Failed to switch model to '{{modelId}}'.\n\n{{error}}":
1041
1059
  "Failed to switch model to '{{modelId}}'.\n\n{{error}}",
1042
1060
  'Qwen 3.5 Plus — efficient hybrid model with leading coding performance':
@@ -1437,18 +1455,20 @@ export default {
1437
1455
  'Rate limit error: {{reason}}': 'Rate limit error: {{reason}}',
1438
1456
  'Retrying in {{seconds}} seconds… (attempt {{attempt}}/{{maxRetries}})':
1439
1457
  'Retrying in {{seconds}} seconds… (attempt {{attempt}}/{{maxRetries}})',
1458
+ 'Press Ctrl+Y to retry': 'Press Ctrl+Y to retry',
1459
+ 'No failed request to retry.': 'No failed request to retry.',
1460
+ 'to retry last request': 'to retry last request',
1440
1461
 
1441
1462
  // ============================================================================
1442
1463
  // Coding Plan Authentication
1443
1464
  // ============================================================================
1444
- 'Please enter your API key:': 'Please enter your API key:',
1445
1465
  'API key cannot be empty.': 'API key cannot be empty.',
1446
- 'You can get your exclusive Coding Plan API-KEY here:':
1447
- 'You can get your exclusive Coding Plan API-KEY here:',
1466
+ 'You can get your Coding Plan API key here':
1467
+ 'You can get your Coding Plan API key here',
1448
1468
  'API key is stored in settings.env. You can migrate it to a .env file for better security.':
1449
1469
  'API key is stored in settings.env. You can migrate it to a .env file for better security.',
1450
- 'New model configurations are available for Bailian Coding Plan. Update now?':
1451
- 'New model configurations are available for Bailian Coding Plan. Update now?',
1470
+ 'New model configurations are available for Alibaba Cloud Coding Plan. Update now?':
1471
+ 'New model configurations are available for Alibaba Cloud Coding Plan. Update now?',
1452
1472
  'Coding Plan configuration updated successfully. New models are now available.':
1453
1473
  'Coding Plan configuration updated successfully. New models are now available.',
1454
1474
  'Coding Plan API key not found. Please re-authenticate with Coding Plan.':
@@ -1457,51 +1477,26 @@ export default {
1457
1477
  'Failed to update Coding Plan configuration: {{message}}',
1458
1478
 
1459
1479
  // ============================================================================
1460
- // Custom API-KEY Configuration
1461
- // ============================================================================
1462
- 'For advanced users who want to configure models manually.':
1463
- 'For advanced users who want to configure models manually.',
1464
- 'Please configure your models in settings.json:':
1465
- 'Please configure your models in settings.json:',
1466
- 'Set API key via environment variable (e.g., OPENAI_API_KEY)':
1467
- 'Set API key via environment variable (e.g., OPENAI_API_KEY)',
1468
- "Add model configuration to modelProviders['openai'] (or other auth types)":
1469
- "Add model configuration to modelProviders['openai'] (or other auth types)",
1470
- 'Each provider needs: id, envKey (required), plus optional baseUrl, generationConfig':
1471
- 'Each provider needs: id, envKey (required), plus optional baseUrl, generationConfig',
1472
- 'Use /model command to select your preferred model from the configured list':
1473
- 'Use /model command to select your preferred model from the configured list',
1474
- 'Supported auth types: openai, anthropic, gemini, vertex-ai, etc.':
1475
- 'Supported auth types: openai, anthropic, gemini, vertex-ai, etc.',
1476
- 'More instructions please check:': 'More instructions please check:',
1480
+ // Custom API Key Configuration
1481
+ // ============================================================================
1482
+ 'You can configure your API key and models in settings.json':
1483
+ 'You can configure your API key and models in settings.json',
1484
+ 'Refer to the documentation for setup instructions':
1485
+ 'Refer to the documentation for setup instructions',
1477
1486
 
1478
1487
  // ============================================================================
1479
1488
  // Auth Dialog - View Titles and Labels
1480
1489
  // ============================================================================
1481
- 'Coding Plan': 'Coding Plan',
1482
- 'Coding Plan (Bailian, China)': 'Coding Plan (Bailian, China)',
1483
- 'Coding Plan (Bailian, Global/Intl)': 'Coding Plan (Bailian, Global/Intl)',
1484
- "Paste your api key of Bailian Coding Plan and you're all set!":
1485
- "Paste your api key of Bailian Coding Plan and you're all set!",
1486
- "Paste your api key of Coding Plan (Bailian, Global/Intl) and you're all set!":
1487
- "Paste your api key of Coding Plan (Bailian, Global/Intl) and you're all set!",
1488
- Custom: 'Custom',
1489
- 'More instructions about configuring `modelProviders` manually.':
1490
- 'More instructions about configuring `modelProviders` manually.',
1491
- 'Select API-KEY configuration mode:': 'Select API-KEY configuration mode:',
1492
- '(Press Escape to go back)': '(Press Escape to go back)',
1493
- '(Press Enter to submit, Escape to cancel)':
1494
- '(Press Enter to submit, Escape to cancel)',
1490
+ 'Select Region for Coding Plan': 'Select Region for Coding Plan',
1491
+ 'Choose based on where your account is registered':
1492
+ 'Choose based on where your account is registered',
1493
+ 'Enter Coding Plan API Key': 'Enter Coding Plan API Key',
1495
1494
 
1496
1495
  // ============================================================================
1497
1496
  // Coding Plan International Updates
1498
1497
  // ============================================================================
1499
1498
  'New model configurations are available for {{region}}. Update now?':
1500
1499
  'New model configurations are available for {{region}}. Update now?',
1501
- 'New model configurations are available for Bailian Coding Plan (China). Update now?':
1502
- 'New model configurations are available for Bailian Coding Plan (China). Update now?',
1503
- 'New model configurations are available for Coding Plan (Bailian, Global/Intl). Update now?':
1504
- 'New model configurations are available for Coding Plan (Bailian, Global/Intl). Update now?',
1505
1500
  '{{region}} configuration updated successfully. Model switched to "{{model}}".':
1506
1501
  '{{region}} configuration updated successfully. Model switched to "{{model}}".',
1507
1502
  'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).':
package/locales/zh.js CHANGED
@@ -180,6 +180,7 @@ export default {
180
180
  'Enter to confirm, Esc to cancel': 'Enter 确认,Esc 取消',
181
181
  'Enter to select, ↑↓ to navigate, Esc to go back':
182
182
  'Enter 选择,↑↓ 导航,Esc 返回',
183
+ 'Enter to submit, Esc to go back': 'Enter 提交,Esc 返回',
183
184
  'Invalid step: {{step}}': '无效步骤: {{step}}',
184
185
  'No subagents found.': '未找到子智能体。',
185
186
  "Use '/agents create' to create your first subagent.":
@@ -897,19 +898,24 @@ export default {
897
898
  // Dialogs - Auth
898
899
  // ============================================================================
899
900
  'Get started': '开始使用',
900
- 'How would you like to authenticate for this project?':
901
- '您希望如何为此项目进行身份验证?',
901
+ 'Select Authentication Method': '选择认证方式',
902
902
  'OpenAI API key is required to use OpenAI authentication.':
903
903
  '使用 OpenAI 认证需要 OpenAI API 密钥',
904
904
  'You must select an auth method to proceed. Press Ctrl+C again to exit.':
905
905
  '您必须选择认证方法才能继续。再次按 Ctrl+C 退出',
906
- '(Use Enter to Set Auth)': '(使用 Enter 设置认证)',
907
- 'Terms of Services and Privacy Notice for RDMind':
908
- 'RDMind 的服务条款和隐私声明',
906
+ 'Terms of Services and Privacy Notice': '服务条款和隐私声明',
909
907
  'Qwen OAuth': 'Qwen OAuth (免费)',
908
+ 'Free \u00B7 Up to 1,000 requests/day \u00B7 Qwen latest models':
909
+ '免费 \u00B7 每天最多 1,000 次请求 \u00B7 Qwen 最新模型',
910
910
  'Login with QwenChat account to use daily free quota.':
911
911
  '使用 QwenChat 账号登录,享受每日免费额度。',
912
912
  'Use Xiaohongshu SSO or API Key': '使用小红书 SSO 或 API 密钥',
913
+ 'Paid \u00B7 Up to 6,000 requests/5 hrs \u00B7 All Alibaba Cloud Coding Plan Models':
914
+ '付费 \u00B7 每 5 小时最多 6,000 次请求 \u00B7 支持阿里云百炼 Coding Plan 全部模型',
915
+ 'Alibaba Cloud Coding Plan': '阿里云百炼 Coding Plan',
916
+ 'Bring your own API key': '使用自己的 API 密钥',
917
+ 'Use coding plan credentials or your own api-keys/providers.':
918
+ '使用 Coding Plan 凭证或您自己的 API 密钥/提供商。',
913
919
  OpenAI: 'OpenAI',
914
920
  'Failed to login. Message: {{message}}': '登录失败。消息:{{message}}',
915
921
  'Authentication is enforced to be {{enforcedType}}, but you are currently using {{currentType}}.':
@@ -931,6 +937,8 @@ export default {
931
937
  'Waiting for Qwen OAuth authentication...': '正在等待 Qwen OAuth 认证...',
932
938
  'Note: Your existing API key in settings.json will not be cleared when using Qwen OAuth. You can switch back to OpenAI authentication later if needed.':
933
939
  '注意:使用 Qwen OAuth 时,settings.json 中现有的 API 密钥不会被清除。如果需要,您可以稍后切换回 OpenAI 认证。',
940
+ 'Note: Your existing API key will not be cleared when using Qwen OAuth.':
941
+ '注意:使用 Qwen OAuth 时,现有的 API 密钥不会被清除。',
934
942
  'Authentication timed out. Please try again.': '认证超时。请重试。',
935
943
  'Waiting for auth... (Press ESC or CTRL+C to cancel)':
936
944
  '正在等待认证...(按 ESC 或 CTRL+C 取消)',
@@ -975,6 +983,17 @@ export default {
975
983
  '(default)': '(默认)',
976
984
  '(set)': '(已设置)',
977
985
  '(not set)': '(未设置)',
986
+ Modality: '模态',
987
+ 'Context Window': '上下文窗口',
988
+ text: '文本',
989
+ 'text-only': '纯文本',
990
+ image: '图像',
991
+ pdf: 'PDF',
992
+ audio: '音频',
993
+ video: '视频',
994
+ 'not set': '未设置',
995
+ none: '无',
996
+ unknown: '未知',
978
997
  "Failed to switch model to '{{modelId}}'.\n\n{{error}}":
979
998
  "无法切换到模型 '{{modelId}}'.\n\n{{error}}",
980
999
  'Qwen 3.5 Plus — efficient hybrid model with leading coding performance':
@@ -1239,7 +1258,7 @@ export default {
1239
1258
  '正在制作值得您耐心等待的回复...',
1240
1259
  '正在整理思绪...',
1241
1260
  '正在组织语言...',
1242
- '让我理一理思路...'
1261
+ '让我理一理思路...',
1243
1262
  ],
1244
1263
 
1245
1264
  // ============================================================================
@@ -1303,18 +1322,22 @@ export default {
1303
1322
  'Rate limit error: {{reason}}': '触发限流:{{reason}}',
1304
1323
  'Retrying in {{seconds}} seconds… (attempt {{attempt}}/{{maxRetries}})':
1305
1324
  '将于 {{seconds}} 秒后重试…(第 {{attempt}}/{{maxRetries}} 次)',
1325
+ 'Press Ctrl+Y to retry': '按 Ctrl+Y 重试。',
1326
+ 'No failed request to retry.': '没有可重试的失败请求。',
1327
+ 'to retry last request': '重试上一次请求',
1306
1328
 
1307
1329
  // ============================================================================
1308
1330
  // Coding Plan Authentication
1309
1331
  // ============================================================================
1310
- 'Please enter your API key:': '请输入您的 API Key:',
1311
1332
  'API key cannot be empty.': 'API Key 不能为空。',
1312
- 'You can get your exclusive Coding Plan API-KEY here:':
1313
- '您可以在这里获取专属的 Coding Plan API-KEY:',
1333
+ 'Invalid API key. Coding Plan API keys start with "sk-sp-". Please check.':
1334
+ '无效的 API Key,Coding Plan API Key 均以 "sk-sp-" 开头,请检查',
1335
+ 'You can get your Coding Plan API key here':
1336
+ '您可以在这里获取 Coding Plan API Key',
1314
1337
  'API key is stored in settings.env. You can migrate it to a .env file for better security.':
1315
1338
  'API Key 已存储在 settings.env 中。您可以将其迁移到 .env 文件以获得更好的安全性。',
1316
- 'New model configurations are available for Bailian Coding Plan. Update now?':
1317
- '百炼 Coding Plan 有新模型配置可用。是否立即更新?',
1339
+ 'New model configurations are available for Alibaba Cloud Coding Plan. Update now?':
1340
+ '阿里云百炼 Coding Plan 有新模型配置可用。是否立即更新?',
1318
1341
  'Coding Plan configuration updated successfully. New models are now available.':
1319
1342
  'Coding Plan 配置更新成功。新模型现已可用。',
1320
1343
  'Coding Plan API key not found. Please re-authenticate with Coding Plan.':
@@ -1323,51 +1346,25 @@ export default {
1323
1346
  '更新 Coding Plan 配置失败:{{message}}',
1324
1347
 
1325
1348
  // ============================================================================
1326
- // Custom API-KEY Configuration
1327
- // ============================================================================
1328
- 'For advanced users who want to configure models manually.':
1329
- '适合需要手动配置模型的高级用户。',
1330
- 'Please configure your models in settings.json:':
1331
- '请在 settings.json 中配置您的模型:',
1332
- 'Set API key via environment variable (e.g., OPENAI_API_KEY)':
1333
- '通过环境变量设置 API Key(例如:OPENAI_API_KEY)',
1334
- "Add model configuration to modelProviders['openai'] (or other auth types)":
1335
- "将模型配置添加到 modelProviders['openai'](或其他认证类型)",
1336
- 'Each provider needs: id, envKey (required), plus optional baseUrl, generationConfig':
1337
- '每个提供商需要:id、envKey(必需),以及可选的 baseUrl、generationConfig',
1338
- 'Use /model command to select your preferred model from the configured list':
1339
- '使用 /model 命令从配置列表中选择您偏好的模型',
1340
- 'Supported auth types: openai, anthropic, gemini, vertex-ai, etc.':
1341
- '支持的认证类型:openai、anthropic、gemini、vertex-ai 等',
1342
- 'More instructions please check:': '更多说明请查看:',
1349
+ // Custom API Key Configuration
1350
+ // ============================================================================
1351
+ 'You can configure your API key and models in settings.json':
1352
+ '您可以在 settings.json 中配置 API Key 和模型',
1353
+ 'Refer to the documentation for setup instructions': '请参考文档了解配置说明',
1343
1354
 
1344
1355
  // ============================================================================
1345
1356
  // Auth Dialog - View Titles and Labels
1346
1357
  // ============================================================================
1347
- 'API-KEY': 'API-KEY',
1348
- 'Coding Plan': 'Coding Plan',
1349
- 'Coding Plan (Bailian, China)': 'Coding Plan (百炼, 中国)',
1350
- 'Coding Plan (Bailian, Global/Intl)': 'Coding Plan (百炼, 全球/国际)',
1351
- "Paste your api key of Bailian Coding Plan and you're all set!":
1352
- '粘贴您的百炼 Coding Plan API Key,即可完成设置!',
1353
- "Paste your api key of Coding Plan (Bailian, Global/Intl) and you're all set!":
1354
- '粘贴您的 Coding Plan (百炼, 全球/国际) API Key,即可完成设置!',
1355
- Custom: '自定义',
1356
- 'More instructions about configuring `modelProviders` manually.':
1357
- '关于手动配置 `modelProviders` 的更多说明。',
1358
- 'Select API-KEY configuration mode:': '选择 API-KEY 配置模式:',
1359
- '(Press Escape to go back)': '(按 Escape 键返回)',
1360
- '(Press Enter to submit, Escape to cancel)': '(按 Enter 提交,Escape 取消)',
1358
+ 'Select Region for Coding Plan': '选择 Coding Plan 区域',
1359
+ 'Choose based on where your account is registered':
1360
+ '请根据您的账号注册地区选择',
1361
+ 'Enter Coding Plan API Key': '输入 Coding Plan API Key',
1361
1362
 
1362
1363
  // ============================================================================
1363
1364
  // Coding Plan International Updates
1364
1365
  // ============================================================================
1365
1366
  'New model configurations are available for {{region}}. Update now?':
1366
1367
  '{{region}} 有新的模型配置可用。是否立即更新?',
1367
- 'New model configurations are available for Bailian Coding Plan (China). Update now?':
1368
- '百炼 Coding Plan (中国) 有新的模型配置可用。是否立即更新?',
1369
- 'New model configurations are available for Coding Plan (Bailian, Global/Intl). Update now?':
1370
- 'Coding Plan (百炼, 全球/国际) 有新的模型配置可用。是否立即更新?',
1371
1368
  '{{region}} configuration updated successfully. Model switched to "{{model}}".':
1372
1369
  '{{region}} 配置更新成功。模型已切换至 "{{model}}"。',
1373
1370
  'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdmind/rdmind",
3
- "version": "0.2.7-alpha.8",
3
+ "version": "0.2.8-alpha.0",
4
4
  "description": "RDMind - AI-powered coding assistant",
5
5
  "type": "module",
6
6
  "main": "cli.js",
@@ -19,7 +19,7 @@
19
19
  "locales"
20
20
  ],
21
21
  "config": {
22
- "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.2.7-alpha.8"
22
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.2.8-alpha.0"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"