@mmmbuto/qwen-code-termux 0.12.0-termux → 0.14.0-termux

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 (67) hide show
  1. package/README.md +188 -55
  2. package/bundled/loop/SKILL.md +61 -0
  3. package/bundled/qc-helper/SKILL.md +151 -0
  4. package/bundled/qc-helper/docs/_meta.ts +30 -0
  5. package/bundled/qc-helper/docs/common-workflow.md +571 -0
  6. package/bundled/qc-helper/docs/configuration/_meta.ts +10 -0
  7. package/bundled/qc-helper/docs/configuration/auth.md +366 -0
  8. package/bundled/qc-helper/docs/configuration/memory.md +0 -0
  9. package/bundled/qc-helper/docs/configuration/model-providers.md +542 -0
  10. package/bundled/qc-helper/docs/configuration/qwen-ignore.md +55 -0
  11. package/bundled/qc-helper/docs/configuration/settings.md +655 -0
  12. package/bundled/qc-helper/docs/configuration/themes.md +160 -0
  13. package/bundled/qc-helper/docs/configuration/trusted-folders.md +61 -0
  14. package/bundled/qc-helper/docs/configuration.md +73 -0
  15. package/bundled/qc-helper/docs/extension/_meta.ts +9 -0
  16. package/bundled/qc-helper/docs/extension/extension-releasing.md +204 -0
  17. package/bundled/qc-helper/docs/extension/getting-started-extensions.md +299 -0
  18. package/bundled/qc-helper/docs/extension/introduction.md +338 -0
  19. package/bundled/qc-helper/docs/features/_meta.ts +19 -0
  20. package/bundled/qc-helper/docs/features/approval-mode.md +263 -0
  21. package/bundled/qc-helper/docs/features/arena.md +218 -0
  22. package/bundled/qc-helper/docs/features/channels/_meta.ts +7 -0
  23. package/bundled/qc-helper/docs/features/channels/dingtalk.md +134 -0
  24. package/bundled/qc-helper/docs/features/channels/overview.md +336 -0
  25. package/bundled/qc-helper/docs/features/channels/plugins.md +87 -0
  26. package/bundled/qc-helper/docs/features/channels/telegram.md +120 -0
  27. package/bundled/qc-helper/docs/features/channels/weixin.md +106 -0
  28. package/bundled/qc-helper/docs/features/checkpointing.md +77 -0
  29. package/bundled/qc-helper/docs/features/commands.md +312 -0
  30. package/bundled/qc-helper/docs/features/headless.md +318 -0
  31. package/bundled/qc-helper/docs/features/hooks.md +720 -0
  32. package/bundled/qc-helper/docs/features/language.md +139 -0
  33. package/bundled/qc-helper/docs/features/lsp.md +417 -0
  34. package/bundled/qc-helper/docs/features/mcp.md +281 -0
  35. package/bundled/qc-helper/docs/features/sandbox.md +241 -0
  36. package/bundled/qc-helper/docs/features/scheduled-tasks.md +139 -0
  37. package/bundled/qc-helper/docs/features/skills.md +289 -0
  38. package/bundled/qc-helper/docs/features/sub-agents.md +515 -0
  39. package/bundled/qc-helper/docs/features/token-caching.md +29 -0
  40. package/bundled/qc-helper/docs/ide-integration/_meta.ts +4 -0
  41. package/bundled/qc-helper/docs/ide-integration/ide-companion-spec.md +182 -0
  42. package/bundled/qc-helper/docs/ide-integration/ide-integration.md +144 -0
  43. package/bundled/qc-helper/docs/integration-github-action.md +241 -0
  44. package/bundled/qc-helper/docs/integration-jetbrains.md +81 -0
  45. package/bundled/qc-helper/docs/integration-vscode.md +39 -0
  46. package/bundled/qc-helper/docs/integration-zed.md +72 -0
  47. package/bundled/qc-helper/docs/overview.md +64 -0
  48. package/bundled/qc-helper/docs/quickstart.md +273 -0
  49. package/bundled/qc-helper/docs/reference/_meta.ts +3 -0
  50. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +72 -0
  51. package/bundled/qc-helper/docs/support/Uninstall.md +42 -0
  52. package/bundled/qc-helper/docs/support/_meta.ts +6 -0
  53. package/bundled/qc-helper/docs/support/tos-privacy.md +112 -0
  54. package/bundled/qc-helper/docs/support/troubleshooting.md +123 -0
  55. package/bundled/review/SKILL.md +261 -0
  56. package/cli.js +298314 -244746
  57. package/locales/de.js +358 -7
  58. package/locales/en.js +347 -7
  59. package/locales/ja.js +347 -7
  60. package/locales/pt.js +353 -7
  61. package/locales/ru.js +348 -7
  62. package/locales/zh.js +333 -7
  63. package/package.json +12 -7
  64. package/sandbox-macos-permissive-open.sb +3 -1
  65. package/vendor/tree-sitter/tree-sitter-bash.wasm +0 -0
  66. package/vendor/tree-sitter/tree-sitter.wasm +0 -0
  67. package/CHANGELOG.md +0 -77
package/locales/zh.js CHANGED
@@ -116,6 +116,7 @@ export default {
116
116
  '分析项目并创建定制的 QWEN.md 文件',
117
117
  'List available Qwen Code tools. Usage: /tools [desc]':
118
118
  '列出可用的 Qwen Code 工具。用法:/tools [desc]',
119
+ 'List available skills.': '列出可用技能。',
119
120
  'Available Qwen Code CLI tools:': '可用的 Qwen Code CLI 工具:',
120
121
  'No tools available': '没有可用工具',
121
122
  'View or change the approval mode for tool usage':
@@ -138,7 +139,7 @@ export default {
138
139
  '在所选作用域中未找到主题 "{{themeName}}"。',
139
140
  'Clear conversation history and free up context': '清除对话历史并释放上下文',
140
141
  'Compresses the context by replacing it with a summary.':
141
- '通过用摘要替换来压缩上下文',
142
+ '通过摘要替换来压缩上下文',
142
143
  'open full Qwen Code documentation in your browser':
143
144
  '在浏览器中打开完整的 Qwen Code 文档',
144
145
  'Configuration not available.': '配置不可用',
@@ -437,6 +438,7 @@ export default {
437
438
  '当前支持以下编辑器。请注意,某些编辑器无法在沙箱模式下使用。',
438
439
  'Your preferred editor is:': '您的首选编辑器是:',
439
440
  'Manage extensions': '管理扩展',
441
+ 'Manage installed extensions': '管理已安装的扩展',
440
442
  'List active extensions': '列出活动扩展',
441
443
  'Update extensions. Usage: update <extension-names>|--all':
442
444
  '更新扩展。用法:update <extension-names>|--all',
@@ -623,6 +625,158 @@ export default {
623
625
  'Failed to configure {{terminalName}}.': '配置 {{terminalName}} 失败。',
624
626
  'Your terminal is already configured for an optimal experience with multiline input (Shift+Enter and Ctrl+Enter).':
625
627
  '您的终端已配置为支持多行输入(Shift+Enter 和 Ctrl+Enter)的最佳体验。',
628
+ // ============================================================================
629
+ // Commands - Hooks
630
+ // ============================================================================
631
+ 'Manage Qwen Code hooks': '管理 Qwen Code Hook',
632
+ 'List all configured hooks': '列出所有已配置的 Hook',
633
+ 'Enable a disabled hook': '启用已禁用的 Hook',
634
+ 'Disable an active hook': '禁用已启用的 Hook',
635
+ // Hooks - Dialog
636
+ Hooks: 'Hook',
637
+ 'Loading hooks...': '正在加载 Hook...',
638
+ 'Error loading hooks:': '加载 Hook 出错:',
639
+ 'Press Escape to close': '按 Escape 关闭',
640
+ 'No hook selected': '未选择 Hook',
641
+ // Hooks - List Step
642
+ 'No hook events found.': '未找到 Hook 事件。',
643
+ '{{count}} hook configured': '{{count}} 个 Hook 已配置',
644
+ '{{count}} hooks configured': '{{count}} 个 Hook 已配置',
645
+ 'This menu is read-only. To add or modify hooks, edit settings.json directly or ask Qwen Code.':
646
+ '此菜单为只读。要添加或修改 Hook,请直接编辑 settings.json 或询问 Qwen Code。',
647
+ 'Enter to select · Esc to cancel': 'Enter 选择 · Esc 取消',
648
+ // Hooks - Detail Step
649
+ 'Exit codes:': '退出码:',
650
+ 'Configured hooks:': '已配置的 Hook:',
651
+ 'No hooks configured for this event.': '此事件未配置 Hook。',
652
+ 'To add hooks, edit settings.json directly or ask Qwen.':
653
+ '要添加 Hook,请直接编辑 settings.json 或询问 Qwen。',
654
+ 'Enter to select · Esc to go back': 'Enter 选择 · Esc 返回',
655
+ // Hooks - Config Detail Step
656
+ 'Hook details': 'Hook 详情',
657
+ 'Event:': '事件:',
658
+ 'Extension:': '扩展:',
659
+ 'Desc:': '描述:',
660
+ 'No hook config selected': '未选择 Hook 配置',
661
+ 'To modify or remove this hook, edit settings.json directly or ask Qwen to help.':
662
+ '要修改或删除此 Hook,请直接编辑 settings.json 或询问 Qwen。',
663
+ // Hooks - Disabled Step
664
+ 'Hook Configuration - Disabled': 'Hook 配置 - 已禁用',
665
+ 'All hooks are currently disabled. You have {{count}} that are not running.':
666
+ '所有 Hook 当前已禁用。您有 {{count}} 未运行。',
667
+ '{{count}} configured hook': '{{count}} 个已配置的 Hook',
668
+ '{{count}} configured hooks': '{{count}} 个已配置的 Hook',
669
+ 'When hooks are disabled:': '当 Hook 被禁用时:',
670
+ 'No hook commands will execute': '不会执行任何 Hook 命令',
671
+ 'StatusLine will not be displayed': '不会显示状态栏',
672
+ 'Tool operations will proceed without hook validation':
673
+ '工具操作将在没有 Hook 验证的情况下继续',
674
+ 'To re-enable hooks, remove "disableAllHooks" from settings.json or ask Qwen Code.':
675
+ '要重新启用 Hook,请从 settings.json 中删除 "disableAllHooks" 或询问 Qwen Code。',
676
+ // Hooks - Source
677
+ Project: '项目',
678
+ User: '用户',
679
+ System: '系统',
680
+ Extension: '扩展',
681
+ 'Local Settings': '本地设置',
682
+ 'User Settings': '用户设置',
683
+ 'System Settings': '系统设置',
684
+ Extensions: '扩展',
685
+ // Hooks - Status
686
+ '✓ Enabled': '✓ 已启用',
687
+ '✗ Disabled': '✗ 已禁用',
688
+ // Hooks - Event Descriptions (short)
689
+ 'Before tool execution': '工具执行前',
690
+ 'After tool execution': '工具执行后',
691
+ 'After tool execution fails': '工具执行失败后',
692
+ 'When notifications are sent': '发送通知时',
693
+ 'When the user submits a prompt': '用户提交提示时',
694
+ 'When a new session is started': '新会话开始时',
695
+ 'Right before Qwen Code concludes its response': 'Qwen Code 结束响应之前',
696
+ 'When a subagent (Agent tool call) is started':
697
+ '子智能体(Agent 工具调用)启动时',
698
+ 'Right before a subagent concludes its response': '子智能体结束响应之前',
699
+ 'Before conversation compaction': '对话压缩前',
700
+ 'When a session is ending': '会话结束时',
701
+ 'When a permission dialog is displayed': '显示权限对话框时',
702
+ // Hooks - Event Descriptions (detailed)
703
+ 'Input to command is JSON of tool call arguments.':
704
+ '命令输入为工具调用参数的 JSON。',
705
+ 'Input to command is JSON with fields "inputs" (tool call arguments) and "response" (tool call response).':
706
+ '命令输入为包含 "inputs"(工具调用参数)和 "response"(工具调用响应)字段的 JSON。',
707
+ 'Input to command is JSON with tool_name, tool_input, tool_use_id, error, error_type, is_interrupt, and is_timeout.':
708
+ '命令输入为包含 tool_name、tool_input、tool_use_id、error、error_type、is_interrupt 和 is_timeout 的 JSON。',
709
+ 'Input to command is JSON with notification message and type.':
710
+ '命令输入为包含通知消息和类型的 JSON。',
711
+ 'Input to command is JSON with original user prompt text.':
712
+ '命令输入为包含原始用户提示文本的 JSON。',
713
+ 'Input to command is JSON with session start source.':
714
+ '命令输入为包含会话启动来源的 JSON。',
715
+ 'Input to command is JSON with session end reason.':
716
+ '命令输入为包含会话结束原因的 JSON。',
717
+ 'Input to command is JSON with agent_id and agent_type.':
718
+ '命令输入为包含 agent_id 和 agent_type 的 JSON。',
719
+ 'Input to command is JSON with agent_id, agent_type, and agent_transcript_path.':
720
+ '命令输入为包含 agent_id、agent_type 和 agent_transcript_path 的 JSON。',
721
+ 'Input to command is JSON with compaction details.':
722
+ '命令输入为包含压缩详情的 JSON。',
723
+ 'Input to command is JSON with tool_name, tool_input, and tool_use_id. Output JSON with hookSpecificOutput containing decision to allow or deny.':
724
+ '命令输入为包含 tool_name、tool_input 和 tool_use_id 的 JSON。输出包含 hookSpecificOutput 的 JSON,其中包含允许或拒绝的决定。',
725
+ // Hooks - Exit Code Descriptions
726
+ 'stdout/stderr not shown': 'stdout/stderr 不显示',
727
+ 'show stderr to model and continue conversation':
728
+ '向模型显示 stderr 并继续对话',
729
+ 'show stderr to user only': '仅向用户显示 stderr',
730
+ 'stdout shown in transcript mode (ctrl+o)': 'stdout 以转录模式显示 (ctrl+o)',
731
+ 'show stderr to model immediately': '立即向模型显示 stderr',
732
+ 'show stderr to user only but continue with tool call':
733
+ '仅向用户显示 stderr 但继续工具调用',
734
+ 'block processing, erase original prompt, and show stderr to user only':
735
+ '阻止处理,擦除原始提示,仅向用户显示 stderr',
736
+ 'stdout shown to Qwen': '向 Qwen 显示 stdout',
737
+ 'show stderr to user only (blocking errors ignored)':
738
+ '仅向用户显示 stderr(忽略阻塞错误)',
739
+ 'command completes successfully': '命令成功完成',
740
+ 'stdout shown to subagent': '向子智能体显示 stdout',
741
+ 'show stderr to subagent and continue having it run':
742
+ '向子智能体显示 stderr 并继续运行',
743
+ 'stdout appended as custom compact instructions':
744
+ 'stdout 作为自定义压缩指令追加',
745
+ 'block compaction': '阻止压缩',
746
+ 'show stderr to user only but continue with compaction':
747
+ '仅向用户显示 stderr 但继续压缩',
748
+ 'use hook decision if provided': '如果提供则使用 Hook 决定',
749
+ // Hooks - Messages
750
+ 'Config not loaded.': '配置未加载。',
751
+ 'Hooks are not enabled. Enable hooks in settings to use this feature.':
752
+ 'Hook 未启用。请在设置中启用 Hook 以使用此功能。',
753
+ 'No hooks configured. Add hooks in your settings.json file.':
754
+ '未配置 Hook。请在 settings.json 文件中添加 Hook。',
755
+ 'Configured Hooks ({{count}} total)': '已配置的 Hook(共 {{count}} 个)',
756
+
757
+ // ============================================================================
758
+ // Commands - Session Export
759
+ // ============================================================================
760
+ 'Export current session message history to a file':
761
+ '将当前会话的消息记录导出到文件',
762
+ 'Export session to HTML format': '将会话导出为 HTML 文件',
763
+ 'Export session to JSON format': '将会话导出为 JSON 文件',
764
+ 'Export session to JSONL format (one message per line)':
765
+ '将会话导出为 JSONL 文件(每行一条消息)',
766
+ 'Export session to markdown format': '将会话导出为 Markdown 文件',
767
+
768
+ // ============================================================================
769
+ // Commands - Insights
770
+ // ============================================================================
771
+ 'generate personalized programming insights from your chat history':
772
+ '根据你的聊天记录生成个性化编程洞察',
773
+
774
+ // ============================================================================
775
+ // Commands - Session History
776
+ // ============================================================================
777
+ 'Resume a previous session': '恢复先前会话',
778
+ 'Restore a tool call. This will reset the conversation and file history to the state it was in when the tool call was suggested':
779
+ '恢复某次工具调用。这将把对话与文件历史重置到提出该工具调用建议时的状态',
626
780
  'Could not detect terminal type. Supported terminals: VS Code, Cursor, Windsurf, and Trae.':
627
781
  '无法检测终端类型。支持的终端:VS Code、Cursor、Windsurf 和 Trae。',
628
782
  'Terminal "{{terminal}}" is not supported yet.':
@@ -699,7 +853,6 @@ export default {
699
853
  'Workspace approval mode exists and takes priority. User-level change will have no effect.':
700
854
  '工作区审批模式已存在并具有优先级。用户级别的更改将无效。',
701
855
  'Apply To': '应用于',
702
- 'User Settings': '用户设置',
703
856
  'Workspace Settings': '工作区设置',
704
857
 
705
858
  // ============================================================================
@@ -749,7 +902,6 @@ export default {
749
902
  'List configured MCP servers and tools': '列出已配置的 MCP 服务器和工具',
750
903
  'Restarts MCP servers.': '重启 MCP 服务器',
751
904
  'Open MCP management dialog': '打开 MCP 管理对话框',
752
- 'Config not loaded.': '配置未加载',
753
905
  'Could not retrieve tool registry.': '无法检索工具注册表',
754
906
  'No MCP servers configured with OAuth authentication.':
755
907
  '未配置支持 OAuth 认证的 MCP 服务器',
@@ -763,6 +915,15 @@ export default {
763
915
  "认证 MCP 服务器 '{{name}}' 失败:{{error}}",
764
916
  "Re-discovering tools from '{{name}}'...":
765
917
  "正在重新发现 '{{name}}' 的工具...",
918
+ "Discovered {{count}} tool(s) from '{{name}}'.":
919
+ "从 '{{name}}' 发现了 {{count}} 个工具。",
920
+ 'Authentication complete. Returning to server details...':
921
+ '认证完成,正在返回服务器详情...',
922
+ 'Authentication successful.': '认证成功。',
923
+ 'If the browser does not open, copy and paste this URL into your browser:':
924
+ '如果浏览器未自动打开,请复制以下 URL 并粘贴到浏览器中:',
925
+ 'Make sure to copy the COMPLETE URL - it may wrap across multiple lines.':
926
+ '⚠️ 请确保复制完整的 URL —— 它可能跨越多行。',
766
927
 
767
928
  // ============================================================================
768
929
  // MCP Management Dialog
@@ -793,11 +954,12 @@ export default {
793
954
  Enable: '启用',
794
955
  Disable: '禁用',
795
956
  Authenticate: '认证',
957
+ 'Re-authenticate': '重新认证',
958
+ 'Clear Authentication': '清空认证',
796
959
  disabled: '已禁用',
797
960
  'Server:': '服务器:',
798
961
  '(disabled)': '(已禁用)',
799
962
  'Error:': '错误:',
800
- Extension: '扩展',
801
963
  tool: '工具',
802
964
  tools: '个工具',
803
965
  connected: '已连接',
@@ -999,6 +1161,10 @@ export default {
999
1161
  'No, suggest changes (esc)': '否,建议更改 (esc)',
1000
1162
  "Allow execution of: '{{command}}'?": "允许执行:'{{command}}'?",
1001
1163
  'Yes, allow always ...': '是,总是允许 ...',
1164
+ 'Always allow in this project': '在本项目中总是允许',
1165
+ 'Always allow {{action}} in this project': '在本项目中总是允许{{action}}',
1166
+ 'Always allow for this user': '对该用户总是允许',
1167
+ 'Always allow {{action}} for this user': '对该用户总是允许{{action}}',
1002
1168
  'Yes, and auto-accept edits': '是,并自动接受编辑',
1003
1169
  'Yes, and manually approve edits': '是,并手动批准编辑',
1004
1170
  'No, keep planning (esc)': '否,继续规划 (esc)',
@@ -1143,8 +1309,8 @@ export default {
1143
1309
  unknown: '未知',
1144
1310
  "Failed to switch model to '{{modelId}}'.\n\n{{error}}":
1145
1311
  "无法切换到模型 '{{modelId}}'.\n\n{{error}}",
1146
- 'Qwen 3.5 Plus — efficient hybrid model with leading coding performance':
1147
- 'Qwen 3.5 Plus — 高效混合架构,编程性能业界领先',
1312
+ 'Qwen 3.6 Plus — efficient hybrid model with leading coding performance':
1313
+ 'Qwen 3.6 Plus — 高效混合架构,编程性能业界领先',
1148
1314
  'The latest Qwen Vision model from Alibaba Cloud ModelStudio (version: qwen3-vl-plus-2025-09-23)':
1149
1315
  '来自阿里云 ModelStudio 的最新 Qwen Vision 模型(版本:qwen3-vl-plus-2025-09-23)',
1150
1316
 
@@ -1152,6 +1318,71 @@ export default {
1152
1318
  // Dialogs - Permissions
1153
1319
  // ============================================================================
1154
1320
  'Manage folder trust settings': '管理文件夹信任设置',
1321
+ 'Manage permission rules': '管理权限规则',
1322
+ Allow: '允许',
1323
+ Ask: '询问',
1324
+ Deny: '拒绝',
1325
+ Workspace: '工作区',
1326
+ "Qwen Code won't ask before using allowed tools.":
1327
+ 'Qwen Code 使用已允许的工具前不会询问。',
1328
+ 'Qwen Code will ask before using these tools.':
1329
+ 'Qwen Code 使用这些工具前会先询问。',
1330
+ 'Qwen Code is not allowed to use denied tools.':
1331
+ 'Qwen Code 不允许使用被拒绝的工具。',
1332
+ 'Manage trusted directories for this workspace.':
1333
+ '管理此工作区的受信任目录。',
1334
+ 'Any use of the {{tool}} tool': '{{tool}} 工具的任何使用',
1335
+ "{{tool}} commands matching '{{pattern}}'":
1336
+ "匹配 '{{pattern}}' 的 {{tool}} 命令",
1337
+ 'From user settings': '来自用户设置',
1338
+ 'From project settings': '来自项目设置',
1339
+ 'From session': '来自会话',
1340
+ 'Project settings (local)': '项目设置(本地)',
1341
+ 'Saved in .qwen/settings.local.json': '保存在 .qwen/settings.local.json',
1342
+ 'Project settings': '项目设置',
1343
+ 'Checked in at .qwen/settings.json': '保存在 .qwen/settings.json',
1344
+ 'User settings': '用户设置',
1345
+ 'Saved in at ~/.qwen/settings.json': '保存在 ~/.qwen/settings.json',
1346
+ 'Add a new rule…': '添加新规则…',
1347
+ 'Add {{type}} permission rule': '添加{{type}}权限规则',
1348
+ 'Permission rules are a tool name, optionally followed by a specifier in parentheses.':
1349
+ '权限规则是一个工具名称,可选地后跟括号中的限定符。',
1350
+ 'e.g.,': '例如',
1351
+ or: '或',
1352
+ 'Enter permission rule…': '输入权限规则…',
1353
+ 'Enter to submit · Esc to cancel': '回车提交 · Esc 取消',
1354
+ 'Where should this rule be saved?': '此规则应保存在哪里?',
1355
+ 'Enter to confirm · Esc to cancel': '回车确认 · Esc 取消',
1356
+ 'Delete {{type}} rule?': '删除{{type}}规则?',
1357
+ 'Are you sure you want to delete this permission rule?':
1358
+ '确定要删除此权限规则吗?',
1359
+ 'Permissions:': '权限:',
1360
+ '(←/→ or tab to cycle)': '(←/→ 或 tab 切换)',
1361
+ 'Press ↑↓ to navigate · Enter to select · Type to search · Esc to cancel':
1362
+ '按 ↑↓ 导航 · 回车选择 · 输入搜索 · Esc 取消',
1363
+ 'Search…': '搜索…',
1364
+ 'Use /trust to manage folder trust settings for this workspace.':
1365
+ '使用 /trust 管理此工作区的文件夹信任设置。',
1366
+ // Workspace directory management
1367
+ 'Add directory…': '添加目录…',
1368
+ 'Add directory to workspace': '添加工作区目录',
1369
+ 'Qwen Code can read files in the workspace, and make edits when auto-accept edits is on.':
1370
+ 'Qwen Code 可以读取工作区中的文件,并在自动接受编辑模式开启时进行编辑。',
1371
+ 'Qwen Code will be able to read files in this directory and make edits when auto-accept edits is on.':
1372
+ 'Qwen Code 将能够读取此目录中的文件,并在自动接受编辑模式开启时进行编辑。',
1373
+ 'Enter the path to the directory:': '输入目录路径:',
1374
+ 'Enter directory path…': '输入目录路径…',
1375
+ 'Tab to complete · Enter to add · Esc to cancel':
1376
+ 'Tab 补全 · 回车添加 · Esc 取消',
1377
+ 'Remove directory?': '删除目录?',
1378
+ 'Are you sure you want to remove this directory from the workspace?':
1379
+ '确定要将此目录从工作区中移除吗?',
1380
+ ' (Original working directory)': ' (原始工作目录)',
1381
+ ' (from settings)': ' (来自设置)',
1382
+ 'Directory does not exist.': '目录不存在。',
1383
+ 'Path is not a directory.': '路径不是目录。',
1384
+ 'This directory is already in the workspace.': '此目录已在工作区中。',
1385
+ 'Already covered by existing directory: {{dir}}': '已被现有目录覆盖:{{dir}}',
1155
1386
 
1156
1387
  // ============================================================================
1157
1388
  // Status Bar
@@ -1432,7 +1663,7 @@ export default {
1432
1663
  // ============================================================================
1433
1664
  'API-KEY': 'API-KEY',
1434
1665
  'Coding Plan': 'Coding Plan',
1435
- "Paste your api key of Bailian Coding Plan and you're all set!":
1666
+ "Paste your api key of ModelStudio Coding Plan and you're all set!":
1436
1667
  '粘贴您的百炼 Coding Plan API Key,即可完成设置!',
1437
1668
  Custom: '自定义',
1438
1669
  'More instructions about configuring `modelProviders` manually.':
@@ -1452,6 +1683,33 @@ export default {
1452
1683
  '{{region}} 有新的模型配置可用。是否立即更新?',
1453
1684
  '{{region}} configuration updated successfully. Model switched to "{{model}}".':
1454
1685
  '{{region}} 配置更新成功。模型已切换至 "{{model}}"。',
1686
+ 'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).':
1687
+ '成功通过 {{region}} 认证。API Key 和模型配置已保存至 settings.json(已备份)。',
1688
+
1689
+ // ============================================================================
1690
+ // Context Usage
1691
+ // ============================================================================
1692
+ 'Context Usage': '上下文使用情况',
1693
+ 'Context window': '上下文窗口',
1694
+ Used: '已用',
1695
+ Free: '空闲',
1696
+ 'Autocompact buffer': '自动压缩缓冲区',
1697
+ 'Usage by category': '分类用量',
1698
+ 'System prompt': '系统提示',
1699
+ 'Built-in tools': '内置工具',
1700
+ 'MCP tools': 'MCP 工具',
1701
+ 'Memory files': '记忆文件',
1702
+ Skills: '技能',
1703
+ Messages: '消息',
1704
+ tokens: 'tokens',
1705
+ 'Estimated pre-conversation overhead': '预估对话前开销',
1706
+ 'No API response yet. Send a message to see actual usage.':
1707
+ '暂无 API 响应。发送消息以查看实际使用情况。',
1708
+ 'Show context window usage breakdown.': '显示上下文窗口使用情况分解。',
1709
+ 'Run /context detail for per-item breakdown.':
1710
+ '运行 /context detail 查看详细分解。',
1711
+ 'body loaded': '内容已加载',
1712
+ memory: '记忆',
1455
1713
  '{{region}} configuration updated successfully.': '{{region}} 配置更新成功。',
1456
1714
  'Authenticated successfully with {{region}}. API key and model configs saved to settings.json.':
1457
1715
  '成功通过 {{region}} 认证。API Key 和模型配置已保存至 settings.json。',
@@ -1482,4 +1740,72 @@ export default {
1482
1740
  '↑/↓: 导航 | Space/Enter: 切换 | Esc: 取消',
1483
1741
  '↑/↓: Navigate | Enter: Select | Esc: Cancel':
1484
1742
  '↑/↓: 导航 | Enter: 选择 | Esc: 取消',
1743
+
1744
+ // ============================================================================
1745
+ // Commands - Auth
1746
+ // ============================================================================
1747
+ 'Configure Qwen authentication information with Qwen-OAuth or Alibaba Cloud Coding Plan':
1748
+ '使用 Qwen OAuth 或阿里云百炼 Coding Plan 配置 Qwen 认证信息',
1749
+ 'Authenticate using Qwen OAuth': '使用 Qwen OAuth 进行认证',
1750
+ 'Authenticate using Alibaba Cloud Coding Plan':
1751
+ '使用阿里云百炼 Coding Plan 进行认证',
1752
+ 'Region for Coding Plan (china/global)': 'Coding Plan 区域 (china/global)',
1753
+ 'API key for Coding Plan': 'Coding Plan 的 API 密钥',
1754
+ 'Show current authentication status': '显示当前认证状态',
1755
+ 'Authentication completed successfully.': '认证完成。',
1756
+ 'Starting Qwen OAuth authentication...': '正在启动 Qwen OAuth 认证...',
1757
+ 'Successfully authenticated with Qwen OAuth.': '已成功通过 Qwen OAuth 认证。',
1758
+ 'Failed to authenticate with Qwen OAuth: {{error}}':
1759
+ 'Qwen OAuth 认证失败:{{error}}',
1760
+ 'Processing Alibaba Cloud Coding Plan authentication...':
1761
+ '正在处理阿里云百炼 Coding Plan 认证...',
1762
+ 'Successfully authenticated with Alibaba Cloud Coding Plan.':
1763
+ '已成功通过阿里云百炼 Coding Plan 认证。',
1764
+ 'Failed to authenticate with Coding Plan: {{error}}':
1765
+ 'Coding Plan 认证失败:{{error}}',
1766
+ '中国 (China)': '中国 (China)',
1767
+ '阿里云百炼 (aliyun.com)': '阿里云百炼 (aliyun.com)',
1768
+ Global: '全球',
1769
+ 'Alibaba Cloud (alibabacloud.com)': 'Alibaba Cloud (alibabacloud.com)',
1770
+ 'Select region for Coding Plan:': '选择 Coding Plan 区域:',
1771
+ 'Enter your Coding Plan API key: ': '请输入您的 Coding Plan API 密钥:',
1772
+ 'Select authentication method:': '选择认证方式:',
1773
+ '\n=== Authentication Status ===\n': '\n=== 认证状态 ===\n',
1774
+ '⚠️ No authentication method configured.\n': '⚠️ 未配置认证方式。\n',
1775
+ 'Run one of the following commands to get started:\n':
1776
+ '运行以下命令之一开始配置:\n',
1777
+ ' qwen auth qwen-oauth - Authenticate with Qwen OAuth (free tier)':
1778
+ ' qwen auth qwen-oauth - 使用 Qwen OAuth 认证(免费)',
1779
+ ' qwen auth coding-plan - Authenticate with Alibaba Cloud Coding Plan\n':
1780
+ ' qwen auth coding-plan - 使用阿里云百炼 Coding Plan 认证\n',
1781
+ 'Or simply run:': '或者直接运行:',
1782
+ ' qwen auth - Interactive authentication setup\n':
1783
+ ' qwen auth - 交互式认证配置\n',
1784
+ '✓ Authentication Method: Qwen OAuth': '✓ 认证方式:Qwen OAuth',
1785
+ ' Type: Free tier': ' 类型:免费版',
1786
+ ' Limit: Up to 1,000 requests/day': ' 限额:每天最多 1,000 次请求',
1787
+ ' Models: Qwen latest models\n': ' 模型:Qwen 最新模型\n',
1788
+ '✓ Authentication Method: Alibaba Cloud Coding Plan':
1789
+ '✓ 认证方式:阿里云百炼 Coding Plan',
1790
+ '中国 (China) - 阿里云百炼': '中国 (China) - 阿里云百炼',
1791
+ 'Global - Alibaba Cloud': '全球 - Alibaba Cloud',
1792
+ ' Region: {{region}}': ' 区域:{{region}}',
1793
+ ' Current Model: {{model}}': ' 当前模型:{{model}}',
1794
+ ' Config Version: {{version}}': ' 配置版本:{{version}}',
1795
+ ' Status: API key configured\n': ' 状态:API 密钥已配置\n',
1796
+ '⚠️ Authentication Method: Alibaba Cloud Coding Plan (Incomplete)':
1797
+ '⚠️ 认证方式:阿里云百炼 Coding Plan(不完整)',
1798
+ ' Issue: API key not found in environment or settings\n':
1799
+ ' 问题:在环境变量或设置中未找到 API 密钥\n',
1800
+ ' Run `qwen auth coding-plan` to re-configure.\n':
1801
+ ' 运行 `qwen auth coding-plan` 重新配置。\n',
1802
+ '✓ Authentication Method: {{type}}': '✓ 认证方式:{{type}}',
1803
+ ' Status: Configured\n': ' 状态:已配置\n',
1804
+ 'Failed to check authentication status: {{error}}':
1805
+ '检查认证状态失败:{{error}}',
1806
+ 'Select an option:': '请选择:',
1807
+ 'Raw mode not available. Please run in an interactive terminal.':
1808
+ '原始模式不可用。请在交互式终端中运行。',
1809
+ '(Use ↑ ↓ arrows to navigate, Enter to select, Ctrl+C to exit)\n':
1810
+ '(使用 ↑ ↓ 箭头导航,Enter 选择,Ctrl+C 退出)\n',
1485
1811
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mmmbuto/qwen-code-termux",
3
- "version": "0.12.0-termux",
4
- "description": "Qwen Code - AI-powered coding assistant",
3
+ "version": "0.14.0-termux",
4
+ "description": "Qwen Code - AI-powered coding assistant (Termux Edition for Android)",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/DioNanos/qwen-code-termux.git"
@@ -17,16 +17,21 @@
17
17
  "*.sb",
18
18
  "README.md",
19
19
  "LICENSE",
20
- "CHANGELOG.md",
21
- "locales"
20
+ "locales",
21
+ "bundled"
22
22
  ],
23
23
  "config": {
24
- "sandboxImageUri": "ghcr.io/mmmbuto/qwen-code-termux:0.12.0-termux"
24
+ "sandboxImageUri": "ghcr.io/mmmbuto/qwen-code-termux:0.14.0-termux"
25
25
  },
26
26
  "dependencies": {},
27
27
  "optionalDependencies": {
28
- "@mmmbuto/node-pty-android-arm64": "~1.1.0",
29
- "@lydell/node-pty-linux-arm64": "~1.2.0-beta.2",
28
+ "@lydell/node-pty": "1.2.0-beta.10",
29
+ "@lydell/node-pty-darwin-arm64": "1.2.0-beta.10",
30
+ "@lydell/node-pty-darwin-x64": "1.2.0-beta.10",
31
+ "@lydell/node-pty-linux-x64": "1.2.0-beta.10",
32
+ "@lydell/node-pty-win32-arm64": "1.2.0-beta.10",
33
+ "@lydell/node-pty-win32-x64": "1.2.0-beta.10",
34
+ "@mmmbuto/node-pty-android-arm64": "1.1.0",
30
35
  "@teddyzhu/clipboard": "0.0.5",
31
36
  "@teddyzhu/clipboard-darwin-arm64": "0.0.5",
32
37
  "@teddyzhu/clipboard-darwin-x64": "0.0.5",
@@ -22,4 +22,6 @@
22
22
  (literal "/dev/stdout")
23
23
  (literal "/dev/stderr")
24
24
  (literal "/dev/null")
25
- )
25
+ (literal "/dev/ptmx")
26
+ (regex #"^/dev/ttys[0-9]*$")
27
+ )
package/CHANGELOG.md DELETED
@@ -1,77 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- ## [0.12.0-termux] - 2026-03-09
6
-
7
- ### Added
8
-
9
- - **Extension Management TUI** - New UI for managing MCP extensions
10
- - **Hook System** - Support for custom hooks (session start/end, stop)
11
- - **Ask User Question Tool** - New tool for user interactions
12
- - **ACP SDK Migration** - Migrated to `@agentclientprotocol/sdk`
13
- - **Auto PTY Installation** - Postinstall script auto-installs PTY dependencies on Termux
14
-
15
- ### Changed
16
-
17
- - **Merged upstream QwenLM/qwen-code v0.12.0**
18
- - **Shell PTY Default** - PTY enabled by default for shell execution
19
- - **New dependency**: `iconv-lite` for character encoding
20
- - Version suffix: `-termux` across all workspace packages
21
- - Sandbox image: `ghcr.io/mmmbuto/qwen-code-termux:0.12.0-termux`
22
-
23
- ### Fixed
24
-
25
- - **shellExecutionService.ts** - Adapted to use `@mmmbuto/pty-termux-utils` IPty interface
26
- - **Import paths** - All `@qwen-code/qwen-code-core` → `@mmmbuto/qwen-code-termux-core`
27
- - **prepare-package.js** - Termux-specific optionalDependencies
28
-
29
- ### Termux Patches Maintained (9/9)
30
-
31
- 1. `prepare-termux.cjs` - Skip husky/bundle on Termux
32
- 2. `termux-runtime.ts` - Android runtime polyfills
33
- 3. `getPty.ts` - Re-export from `@mmmbuto/pty-termux-utils`
34
- 4. `package.json` - Termux name/version/sandboxImageUri
35
- 5. `optionalDependencies` - Android ARM64 + Linux ARM64
36
- 6. `installationInfo.ts` - Correct update commands
37
- 7. `start.js` - Deprecation warning suppression
38
- 8. `prepare-package.js` - NPM package preparation
39
- 9. `postinstall.js` - Auto-install PTY on Termux
40
-
41
- ---
42
-
43
- ## [0.11.3-termux] - 2026-03-04
44
-
45
- ### Fixed
46
-
47
- - Bundle version fix
48
-
49
- ---
50
-
51
- ## [0.11.2-termux] - 2026-03-02
52
-
53
- ### Fixed
54
-
55
- - Auto-update command fix (correct package name `@mmmbuto/qwen-code-termux`)
56
-
57
- ---
58
-
59
- ## [0.11.1-termux] - 2026-03-01
60
-
61
- ### Changed
62
-
63
- - PTY unified library (`@mmmbuto/pty-termux-utils`)
64
- - Reduced optionalDependencies (7 → 2)
65
- - Native Android ARM64 support via `@mmmbuto/node-pty-android-arm64`
66
- - Linux ARM64 fallback via `@lydell/node-pty-linux-arm64`
67
-
68
- ---
69
-
70
- ## [0.11.0-termux] - 2026-02-28
71
-
72
- ### Added
73
-
74
- - Initial Termux fork based on upstream v0.11.0
75
- - Android PTY support
76
- - Termux runtime patches
77
- - Skip husky/bundle on Termux install