@qwen-code/qwen-code 0.12.0-preview.0 → 0.12.0-preview.2

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.
package/locales/zh.js CHANGED
@@ -33,7 +33,7 @@ export default {
33
33
  '!': '!',
34
34
  '!npm run start': '!npm run start',
35
35
  'start server': 'start server',
36
- 'Commands:': '命令:',
36
+ 'Commands:': '命令:',
37
37
  'shell command': 'shell 命令',
38
38
  'Model Context Protocol command (from external servers)':
39
39
  '模型上下文协议命令(来自外部服务器)',
@@ -114,7 +114,7 @@ export default {
114
114
  // ============================================================================
115
115
  'Analyzes the project and creates a tailored QWEN.md file.':
116
116
  '分析项目并创建定制的 QWEN.md 文件',
117
- 'list available Qwen Code tools. Usage: /tools [desc]':
117
+ 'List available Qwen Code tools. Usage: /tools [desc]':
118
118
  '列出可用的 Qwen Code 工具。用法:/tools [desc]',
119
119
  'Available Qwen Code CLI tools:': '可用的 Qwen Code CLI 工具:',
120
120
  'No tools available': '没有可用工具',
@@ -138,7 +138,7 @@ export default {
138
138
  '在所选作用域中未找到主题 "{{themeName}}"。',
139
139
  'Clear conversation history and free up context': '清除对话历史并释放上下文',
140
140
  'Compresses the context by replacing it with a summary.':
141
- '通过用摘要替换来压缩上下文',
141
+ '通过摘要替换来压缩上下文',
142
142
  'open full Qwen Code documentation in your browser':
143
143
  '在浏览器中打开完整的 Qwen Code 文档',
144
144
  'Configuration not available.': '配置不可用',
@@ -278,6 +278,67 @@ export default {
278
278
  'Failed to save and edit subagent: {{error}}':
279
279
  '保存并编辑子智能体失败: {{error}}',
280
280
 
281
+ // ============================================================================
282
+ // Extensions - Management Dialog
283
+ // ============================================================================
284
+ 'Manage Extensions': '管理扩展',
285
+ 'Extension Details': '扩展详情',
286
+ 'View Extension': '查看扩展',
287
+ 'Update Extension': '更新扩展',
288
+ 'Disable Extension': '禁用扩展',
289
+ 'Enable Extension': '启用扩展',
290
+ 'Uninstall Extension': '卸载扩展',
291
+ 'Select Scope': '选择作用域',
292
+ 'User Scope': '用户作用域',
293
+ 'Workspace Scope': '工作区作用域',
294
+ 'No extensions found.': '未找到扩展。',
295
+ Active: '已启用',
296
+ Disabled: '已禁用',
297
+ 'Update available': '有可用更新',
298
+ 'Up to date': '已是最新',
299
+ 'Checking...': '检查中...',
300
+ 'Updating...': '更新中...',
301
+ Unknown: '未知',
302
+ Error: '错误',
303
+ 'Version:': '版本:',
304
+ 'Status:': '状态:',
305
+ 'Are you sure you want to uninstall extension "{{name}}"?':
306
+ '确定要卸载扩展 "{{name}}" 吗?',
307
+ 'This action cannot be undone.': '此操作无法撤销。',
308
+ 'Extension "{{name}}" disabled successfully.': '扩展 "{{name}}" 禁用成功。',
309
+ 'Extension "{{name}}" enabled successfully.': '扩展 "{{name}}" 启用成功。',
310
+ 'Extension "{{name}}" updated successfully.': '扩展 "{{name}}" 更新成功。',
311
+ 'Failed to update extension "{{name}}": {{error}}':
312
+ '更新扩展 "{{name}}" 失败:{{error}}',
313
+ 'Select the scope for this action:': '选择此操作的作用域:',
314
+ 'User - Applies to all projects': '用户 - 应用于所有项目',
315
+ 'Workspace - Applies to current project only': '工作区 - 仅应用于当前项目',
316
+ // Extension dialog - missing keys
317
+ 'Name:': '名称:',
318
+ 'MCP Servers:': 'MCP 服务器:',
319
+ 'Settings:': '设置:',
320
+ active: '已启用',
321
+ 'View Details': '查看详情',
322
+ 'Update failed:': '更新失败:',
323
+ 'Updating {{name}}...': '正在更新 {{name}}...',
324
+ 'Update complete!': '更新完成!',
325
+ 'User (global)': '用户(全局)',
326
+ 'Workspace (project-specific)': '工作区(项目特定)',
327
+ 'Disable "{{name}}" - Select Scope': '禁用 "{{name}}" - 选择作用域',
328
+ 'Enable "{{name}}" - Select Scope': '启用 "{{name}}" - 选择作用域',
329
+ 'No extension selected': '未选择扩展',
330
+ 'Press Y/Enter to confirm, N/Esc to cancel': '按 Y/Enter 确认,N/Esc 取消',
331
+ 'Y/Enter to confirm, N/Esc to cancel': 'Y/Enter 确认,N/Esc 取消',
332
+ '{{count}} extensions installed': '已安装 {{count}} 个扩展',
333
+ "Use '/extensions install' to install your first extension.":
334
+ "使用 '/extensions install' 安装您的第一个扩展。",
335
+ // Update status values
336
+ 'up to date': '已是最新',
337
+ 'update available': '有可用更新',
338
+ 'checking...': '检查中...',
339
+ 'not updatable': '不可更新',
340
+ error: '错误',
341
+
281
342
  // ============================================================================
282
343
  // Commands - General (continued)
283
344
  // ============================================================================
@@ -361,7 +422,9 @@ export default {
361
422
  'Show model-specific usage statistics.': '显示模型相关的使用统计信息',
362
423
  'Show tool-specific usage statistics.': '显示工具相关的使用统计信息',
363
424
  'exit the cli': '退出命令行界面',
364
- 'list configured MCP servers and tools, or authenticate with OAuth-enabled servers':
425
+ 'Open MCP management dialog, or authenticate with OAuth-enabled servers':
426
+ '打开 MCP 管理对话框,或在支持 OAuth 的服务器上进行身份验证',
427
+ 'List configured MCP servers and tools, or authenticate with OAuth-enabled servers':
365
428
  '列出已配置的 MCP 服务器和工具,或使用支持 OAuth 的服务器进行身份验证',
366
429
  'Manage workspace directories': '管理工作区目录',
367
430
  'Add directories to the workspace. Use comma to separate multiple paths':
@@ -685,6 +748,7 @@ export default {
685
748
  '使用支持 OAuth 的 MCP 服务器进行认证',
686
749
  'List configured MCP servers and tools': '列出已配置的 MCP 服务器和工具',
687
750
  'Restarts MCP servers.': '重启 MCP 服务器',
751
+ 'Open MCP management dialog': '打开 MCP 管理对话框',
688
752
  'Config not loaded.': '配置未加载',
689
753
  'Could not retrieve tool registry.': '无法检索工具注册表',
690
754
  'No MCP servers configured with OAuth authentication.':
@@ -700,6 +764,104 @@ export default {
700
764
  "Re-discovering tools from '{{name}}'...":
701
765
  "正在重新发现 '{{name}}' 的工具...",
702
766
 
767
+ // ============================================================================
768
+ // MCP Management Dialog
769
+ // ============================================================================
770
+ 'Manage MCP servers': '管理 MCP 服务器',
771
+ 'Server Detail': '服务器详情',
772
+ 'Disable Server': '禁用服务器',
773
+ Tools: '工具',
774
+ 'Tool Detail': '工具详情',
775
+ 'MCP Management': 'MCP 管理',
776
+ 'Loading...': '加载中...',
777
+ 'Unknown step': '未知步骤',
778
+ 'Esc to back': 'Esc 返回',
779
+ '↑↓ to navigate · Enter to select · Esc to close':
780
+ '↑↓ 导航 · Enter 选择 · Esc 关闭',
781
+ '↑↓ to navigate · Enter to select · Esc to back':
782
+ '↑↓ 导航 · Enter 选择 · Esc 返回',
783
+ '↑↓ to navigate · Enter to confirm · Esc to back':
784
+ '↑↓ 导航 · Enter 确认 · Esc 返回',
785
+ 'User Settings (global)': '用户设置(全局)',
786
+ 'Workspace Settings (project-specific)': '工作区设置(项目级)',
787
+ 'Disable server:': '禁用服务器:',
788
+ 'Select where to add the server to the exclude list:':
789
+ '选择将服务器添加到排除列表的位置:',
790
+ 'Press Enter to confirm, Esc to cancel': '按 Enter 确认,Esc 取消',
791
+ 'View tools': '查看工具',
792
+ Reconnect: '重新连接',
793
+ Enable: '启用',
794
+ Disable: '禁用',
795
+ Authenticate: '认证',
796
+ disabled: '已禁用',
797
+ 'Server:': '服务器:',
798
+ '(disabled)': '(已禁用)',
799
+ 'Error:': '错误:',
800
+ Extension: '扩展',
801
+ tool: '工具',
802
+ tools: '个工具',
803
+ connected: '已连接',
804
+ connecting: '连接中',
805
+ disconnected: '已断开',
806
+
807
+ // MCP Server List
808
+ 'User MCPs': '用户 MCP',
809
+ 'Project MCPs': '项目 MCP',
810
+ 'Extension MCPs': '扩展 MCP',
811
+ server: '个服务器',
812
+ servers: '个服务器',
813
+ 'Add MCP servers to your settings to get started.':
814
+ '请在设置中添加 MCP 服务器以开始使用。',
815
+ 'Run qwen --debug to see error logs': '运行 qwen --debug 查看错误日志',
816
+
817
+ // MCP OAuth Authentication
818
+ 'OAuth Authentication': 'OAuth 认证',
819
+ 'Press Enter to start authentication, Esc to go back':
820
+ '按 Enter 开始认证,Esc 返回',
821
+ 'Authenticating... Please complete the login in your browser.':
822
+ '认证中... 请在浏览器中完成登录。',
823
+ 'Press Enter or Esc to go back': '按 Enter 或 Esc 返回',
824
+
825
+ // MCP Server Detail
826
+ 'Command:': '命令:',
827
+ 'Working Directory:': '工作目录:',
828
+ 'Capabilities:': '功能:',
829
+
830
+ // MCP Tool List
831
+ 'No tools available for this server.': '此服务器没有可用工具。',
832
+ destructive: '破坏性',
833
+ 'read-only': '只读',
834
+ 'open-world': '开放世界',
835
+ idempotent: '幂等',
836
+ 'Tools for {{name}}': '{{name}} 的工具',
837
+ 'Tools for {{serverName}}': '{{serverName}} 的工具',
838
+ '{{current}}/{{total}}': '{{current}}/{{total}}',
839
+
840
+ // MCP Tool Detail
841
+ Type: '类型',
842
+ Parameters: '参数',
843
+ 'No tool selected': '未选择工具',
844
+ Annotations: '注解',
845
+ Title: '标题',
846
+ 'Read Only': '只读',
847
+ Destructive: '破坏性',
848
+ Idempotent: '幂等',
849
+ 'Open World': '开放世界',
850
+ Server: '服务器',
851
+
852
+ // Invalid tool related translations
853
+ '{{count}} invalid tools': '{{count}} 个无效工具',
854
+ invalid: '无效',
855
+ 'invalid: {{reason}}': '无效:{{reason}}',
856
+ 'missing name': '缺少名称',
857
+ 'missing description': '缺少描述',
858
+ '(unnamed)': '(未命名)',
859
+ 'Warning: This tool cannot be called by the LLM':
860
+ '警告:此工具无法被 LLM 调用',
861
+ Reason: '原因',
862
+ 'Tools must have both name and description to be used by the LLM.':
863
+ '工具必须同时具有名称和描述才能被 LLM 使用。',
864
+
703
865
  // ============================================================================
704
866
  // Commands - Chat
705
867
  // ============================================================================
@@ -825,6 +987,7 @@ export default {
825
987
  'Do you want to proceed?': '是否继续?',
826
988
  'Yes, allow once': '是,允许一次',
827
989
  'Allow always': '总是允许',
990
+ Yes: '是',
828
991
  No: '否',
829
992
  'No (esc)': '否 (esc)',
830
993
  'Yes, allow always for this session': '是,本次会话总是允许',
@@ -1267,6 +1430,16 @@ export default {
1267
1430
  // ============================================================================
1268
1431
  // Auth Dialog - View Titles and Labels
1269
1432
  // ============================================================================
1433
+ 'API-KEY': 'API-KEY',
1434
+ 'Coding Plan': 'Coding Plan',
1435
+ "Paste your api key of Bailian Coding Plan and you're all set!":
1436
+ '粘贴您的百炼 Coding Plan API Key,即可完成设置!',
1437
+ Custom: '自定义',
1438
+ 'More instructions about configuring `modelProviders` manually.':
1439
+ '关于手动配置 `modelProviders` 的更多说明。',
1440
+ 'Select API-KEY configuration mode:': '选择 API-KEY 配置模式:',
1441
+ '(Press Escape to go back)': '(按 Escape 键返回)',
1442
+ '(Press Enter to submit, Escape to cancel)': '(按 Enter 提交,Escape 取消)',
1270
1443
  'Select Region for Coding Plan': '选择 Coding Plan 区域',
1271
1444
  'Choose based on where your account is registered':
1272
1445
  '请根据您的账号注册地区选择',
@@ -1279,6 +1452,34 @@ export default {
1279
1452
  '{{region}} 有新的模型配置可用。是否立即更新?',
1280
1453
  '{{region}} configuration updated successfully. Model switched to "{{model}}".':
1281
1454
  '{{region}} 配置更新成功。模型已切换至 "{{model}}"。',
1282
- 'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).':
1283
- '成功通过 {{region}} 认证。API Key 和模型配置已保存至 settings.json(已备份)。',
1455
+ '{{region}} configuration updated successfully.': '{{region}} 配置更新成功。',
1456
+ 'Authenticated successfully with {{region}}. API key and model configs saved to settings.json.':
1457
+ '成功通过 {{region}} 认证。API Key 和模型配置已保存至 settings.json。',
1458
+ 'Tip: Use /model to switch between available Coding Plan models.':
1459
+ '提示:使用 /model 切换可用的 Coding Plan 模型。',
1460
+
1461
+ // ============================================================================
1462
+ // Ask User Question Tool
1463
+ // ============================================================================
1464
+ 'Please answer the following question(s):': '请回答以下问题:',
1465
+ 'Cannot ask user questions in non-interactive mode. Please run in interactive mode to use this tool.':
1466
+ '无法在非交互模式下询问用户问题。请在交互模式下运行以使用此工具。',
1467
+ 'User declined to answer the questions.': '用户拒绝回答问题。',
1468
+ 'User has provided the following answers:': '用户提供了以下答案:',
1469
+ 'Failed to process user answers:': '处理用户答案失败:',
1470
+ 'Type something...': '输入内容...',
1471
+ Submit: '提交',
1472
+ 'Submit answers': '提交答案',
1473
+ Cancel: '取消',
1474
+ 'Your answers:': '您的答案:',
1475
+ '(not answered)': '(未回答)',
1476
+ 'Ready to submit your answers?': '准备好提交您的答案了吗?',
1477
+ '↑/↓: Navigate | ←/→: Switch tabs | Enter: Select':
1478
+ '↑/↓: 导航 | ←/→: 切换标签页 | Enter: 选择',
1479
+ '↑/↓: Navigate | ←/→: Switch tabs | Space/Enter: Toggle | Esc: Cancel':
1480
+ '↑/↓: 导航 | ←/→: 切换标签页 | Space/Enter: 切换 | Esc: 取消',
1481
+ '↑/↓: Navigate | Space/Enter: Toggle | Esc: Cancel':
1482
+ '↑/↓: 导航 | Space/Enter: 切换 | Esc: 取消',
1483
+ '↑/↓: Navigate | Enter: Select | Esc: Cancel':
1484
+ '↑/↓: 导航 | Enter: 选择 | Esc: 取消',
1284
1485
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.12.0-preview.0",
3
+ "version": "0.12.0-preview.2",
4
4
  "description": "Qwen Code - AI-powered coding assistant",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "locales"
21
21
  ],
22
22
  "config": {
23
- "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.12.0-preview.0"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.12.0-preview.2"
24
24
  },
25
25
  "dependencies": {},
26
26
  "optionalDependencies": {
@@ -29,7 +29,7 @@
29
29
  (allow network-inbound (local ip "localhost:9229"))
30
30
 
31
31
  ;; deny all outbound network traffic EXCEPT through proxy on localhost:8877
32
- ;; set `GEMINI_SANDBOX_PROXY_COMMAND=<command>` to run proxy alongside sandbox
32
+ ;; set `QWEN_SANDBOX_PROXY_COMMAND=<command>` to run proxy alongside sandbox
33
33
  ;; proxy must listen on :::8877 (see docs/examples/proxy-script.md)
34
34
  (deny network-outbound)
35
35
  (allow network-outbound (remote tcp "localhost:8877"))
@@ -93,6 +93,6 @@
93
93
  (allow network-inbound (local ip "localhost:9229"))
94
94
 
95
95
  ;; allow outbound network traffic through proxy on localhost:8877
96
- ;; set `GEMINI_SANDBOX_PROXY_COMMAND=<command>` to run proxy alongside sandbox
96
+ ;; set `QWEN_SANDBOX_PROXY_COMMAND=<command>` to run proxy alongside sandbox
97
97
  ;; proxy must listen on :::8877 (see docs/examples/proxy-script.md)
98
98
  (allow network-outbound (remote tcp "localhost:8877"))