@qwen-code/qwen-code 0.14.0-preview.0 → 0.14.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.
Files changed (59) hide show
  1. package/README.md +19 -9
  2. package/bundled/qc-helper/SKILL.md +151 -0
  3. package/bundled/qc-helper/docs/_meta.ts +30 -0
  4. package/bundled/qc-helper/docs/common-workflow.md +571 -0
  5. package/bundled/qc-helper/docs/configuration/_meta.ts +10 -0
  6. package/bundled/qc-helper/docs/configuration/auth.md +366 -0
  7. package/bundled/qc-helper/docs/configuration/memory.md +0 -0
  8. package/bundled/qc-helper/docs/configuration/model-providers.md +542 -0
  9. package/bundled/qc-helper/docs/configuration/qwen-ignore.md +55 -0
  10. package/bundled/qc-helper/docs/configuration/settings.md +655 -0
  11. package/bundled/qc-helper/docs/configuration/themes.md +160 -0
  12. package/bundled/qc-helper/docs/configuration/trusted-folders.md +61 -0
  13. package/bundled/qc-helper/docs/extension/_meta.ts +9 -0
  14. package/bundled/qc-helper/docs/extension/extension-releasing.md +121 -0
  15. package/bundled/qc-helper/docs/extension/getting-started-extensions.md +299 -0
  16. package/bundled/qc-helper/docs/extension/introduction.md +310 -0
  17. package/bundled/qc-helper/docs/features/_meta.ts +18 -0
  18. package/bundled/qc-helper/docs/features/approval-mode.md +263 -0
  19. package/bundled/qc-helper/docs/features/arena.md +218 -0
  20. package/bundled/qc-helper/docs/features/channels/_meta.ts +7 -0
  21. package/bundled/qc-helper/docs/features/channels/dingtalk.md +134 -0
  22. package/bundled/qc-helper/docs/features/channels/overview.md +336 -0
  23. package/bundled/qc-helper/docs/features/channels/plugins.md +87 -0
  24. package/bundled/qc-helper/docs/features/channels/telegram.md +120 -0
  25. package/bundled/qc-helper/docs/features/channels/weixin.md +106 -0
  26. package/bundled/qc-helper/docs/features/checkpointing.md +77 -0
  27. package/bundled/qc-helper/docs/features/commands.md +312 -0
  28. package/bundled/qc-helper/docs/features/headless.md +318 -0
  29. package/bundled/qc-helper/docs/features/hooks.md +715 -0
  30. package/bundled/qc-helper/docs/features/language.md +139 -0
  31. package/bundled/qc-helper/docs/features/lsp.md +417 -0
  32. package/bundled/qc-helper/docs/features/mcp.md +281 -0
  33. package/bundled/qc-helper/docs/features/sandbox.md +241 -0
  34. package/bundled/qc-helper/docs/features/skills.md +289 -0
  35. package/bundled/qc-helper/docs/features/sub-agents.md +511 -0
  36. package/bundled/qc-helper/docs/features/token-caching.md +29 -0
  37. package/bundled/qc-helper/docs/ide-integration/_meta.ts +4 -0
  38. package/bundled/qc-helper/docs/ide-integration/ide-companion-spec.md +182 -0
  39. package/bundled/qc-helper/docs/ide-integration/ide-integration.md +144 -0
  40. package/bundled/qc-helper/docs/integration-github-action.md +241 -0
  41. package/bundled/qc-helper/docs/integration-jetbrains.md +81 -0
  42. package/bundled/qc-helper/docs/integration-vscode.md +39 -0
  43. package/bundled/qc-helper/docs/integration-zed.md +72 -0
  44. package/bundled/qc-helper/docs/overview.md +64 -0
  45. package/bundled/qc-helper/docs/quickstart.md +273 -0
  46. package/bundled/qc-helper/docs/reference/_meta.ts +3 -0
  47. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +72 -0
  48. package/bundled/qc-helper/docs/support/Uninstall.md +42 -0
  49. package/bundled/qc-helper/docs/support/_meta.ts +6 -0
  50. package/bundled/qc-helper/docs/support/tos-privacy.md +112 -0
  51. package/bundled/qc-helper/docs/support/troubleshooting.md +123 -0
  52. package/cli.js +55261 -35814
  53. package/locales/de.js +121 -5
  54. package/locales/en.js +118 -5
  55. package/locales/ja.js +117 -5
  56. package/locales/pt.js +120 -5
  57. package/locales/ru.js +119 -5
  58. package/locales/zh.js +111 -4
  59. package/package.json +2 -2
package/locales/pt.js CHANGED
@@ -599,6 +599,120 @@ export default {
599
599
  'List all configured hooks': 'Listar todos os hooks configurados',
600
600
  'Enable a disabled hook': 'Ativar um hook desativado',
601
601
  'Disable an active hook': 'Desativar um hook ativo',
602
+ // Hooks - Dialog
603
+ Hooks: 'Hooks',
604
+ 'Loading hooks...': 'Carregando hooks...',
605
+ 'Error loading hooks:': 'Erro ao carregar hooks:',
606
+ 'Press Escape to close': 'Pressione Escape para fechar',
607
+ 'No hook selected': 'Nenhum hook selecionado',
608
+ // Hooks - List Step
609
+ 'No hook events found.': 'Nenhum evento de hook encontrado.',
610
+ '{{count}} hook configured': '{{count}} hook configurado',
611
+ '{{count}} hooks configured': '{{count}} hooks configurados',
612
+ 'This menu is read-only. To add or modify hooks, edit settings.json directly or ask Qwen Code.':
613
+ 'Este menu é somente leitura. Para adicionar ou modificar hooks, edite settings.json diretamente ou pergunte ao Qwen Code.',
614
+ 'Enter to select · Esc to cancel':
615
+ 'Enter para selecionar · Esc para cancelar',
616
+ // Hooks - Detail Step
617
+ 'Exit codes:': 'Códigos de saída:',
618
+ 'Configured hooks:': 'Hooks configurados:',
619
+ 'No hooks configured for this event.':
620
+ 'Nenhum hook configurado para este evento.',
621
+ 'To add hooks, edit settings.json directly or ask Qwen.':
622
+ 'Para adicionar hooks, edite settings.json diretamente ou pergunte ao Qwen.',
623
+ 'Enter to select · Esc to go back': 'Enter para selecionar · Esc para voltar',
624
+ // Hooks - Config Detail Step
625
+ 'Hook details': 'Detalhes do Hook',
626
+ 'Event:': 'Evento:',
627
+ 'Extension:': 'Extensão:',
628
+ 'Desc:': 'Descrição:',
629
+ 'No hook config selected': 'Nenhuma configuração de hook selecionada',
630
+ 'To modify or remove this hook, edit settings.json directly or ask Qwen to help.':
631
+ 'Para modificar ou remover este hook, edite settings.json diretamente ou pergunte ao Qwen.',
632
+ // Hooks - Source
633
+ Project: 'Projeto',
634
+ User: 'Usuário',
635
+ System: 'Sistema',
636
+ Extension: 'Extensão',
637
+ 'Local Settings': 'Configurações Locais',
638
+ 'User Settings': 'Configurações do Usuário',
639
+ 'System Settings': 'Configurações do Sistema',
640
+ Extensions: 'Extensões',
641
+ // Hooks - Status
642
+ '✓ Enabled': '✓ Ativado',
643
+ '✗ Disabled': '✗ Desativado',
644
+ // Hooks - Event Descriptions (short)
645
+ 'Before tool execution': 'Antes da execução da ferramenta',
646
+ 'After tool execution': 'Após a execução da ferramenta',
647
+ 'After tool execution fails': 'Após a falha da execução da ferramenta',
648
+ 'When notifications are sent': 'Quando notificações são enviadas',
649
+ 'When the user submits a prompt': 'Quando o usuário envia um prompt',
650
+ 'When a new session is started': 'Quando uma nova sessão é iniciada',
651
+ 'Right before Qwen Code concludes its response':
652
+ 'Logo antes do Qwen Code concluir sua resposta',
653
+ 'When a subagent (Agent tool call) is started':
654
+ 'Quando um subagente (chamada de ferramenta Agent) é iniciado',
655
+ 'Right before a subagent concludes its response':
656
+ 'Logo antes de um subagente concluir sua resposta',
657
+ 'Before conversation compaction': 'Antes da compactação da conversa',
658
+ 'When a session is ending': 'Quando uma sessão está terminando',
659
+ 'When a permission dialog is displayed':
660
+ 'Quando um diálogo de permissão é exibido',
661
+ // Hooks - Event Descriptions (detailed)
662
+ 'Input to command is JSON of tool call arguments.':
663
+ 'A entrada para o comando é JSON dos argumentos da chamada da ferramenta.',
664
+ 'Input to command is JSON with fields "inputs" (tool call arguments) and "response" (tool call response).':
665
+ 'A entrada para o comando é JSON com campos "inputs" (argumentos da chamada da ferramenta) e "response" (resposta da chamada da ferramenta).',
666
+ 'Input to command is JSON with tool_name, tool_input, tool_use_id, error, error_type, is_interrupt, and is_timeout.':
667
+ 'A entrada para o comando é JSON com tool_name, tool_input, tool_use_id, error, error_type, is_interrupt e is_timeout.',
668
+ 'Input to command is JSON with notification message and type.':
669
+ 'A entrada para o comando é JSON com mensagem e tipo de notificação.',
670
+ 'Input to command is JSON with original user prompt text.':
671
+ 'A entrada para o comando é JSON com o texto original do prompt do usuário.',
672
+ 'Input to command is JSON with session start source.':
673
+ 'A entrada para o comando é JSON com a fonte de início da sessão.',
674
+ 'Input to command is JSON with session end reason.':
675
+ 'A entrada para o comando é JSON com o motivo do fim da sessão.',
676
+ 'Input to command is JSON with agent_id and agent_type.':
677
+ 'A entrada para o comando é JSON com agent_id e agent_type.',
678
+ 'Input to command is JSON with agent_id, agent_type, and agent_transcript_path.':
679
+ 'A entrada para o comando é JSON com agent_id, agent_type e agent_transcript_path.',
680
+ 'Input to command is JSON with compaction details.':
681
+ 'A entrada para o comando é JSON com detalhes da compactação.',
682
+ 'Input to command is JSON with tool_name, tool_input, and tool_use_id. Output JSON with hookSpecificOutput containing decision to allow or deny.':
683
+ 'A entrada para o comando é JSON com tool_name, tool_input e tool_use_id. Saída é JSON com hookSpecificOutput contendo decisão de permitir ou negar.',
684
+ // Hooks - Exit Code Descriptions
685
+ 'stdout/stderr not shown': 'stdout/stderr não exibido',
686
+ 'show stderr to model and continue conversation':
687
+ 'mostrar stderr ao modelo e continuar conversa',
688
+ 'show stderr to user only': 'mostrar stderr apenas ao usuário',
689
+ 'stdout shown in transcript mode (ctrl+o)':
690
+ 'stdout exibido no modo transcrição (ctrl+o)',
691
+ 'show stderr to model immediately': 'mostrar stderr ao modelo imediatamente',
692
+ 'show stderr to user only but continue with tool call':
693
+ 'mostrar stderr apenas ao usuário mas continuar com chamada de ferramenta',
694
+ 'block processing, erase original prompt, and show stderr to user only':
695
+ 'bloquear processamento, apagar prompt original e mostrar stderr apenas ao usuário',
696
+ 'stdout shown to Qwen': 'stdout mostrado ao Qwen',
697
+ 'show stderr to user only (blocking errors ignored)':
698
+ 'mostrar stderr apenas ao usuário (erros de bloqueio ignorados)',
699
+ 'command completes successfully': 'comando concluído com sucesso',
700
+ 'stdout shown to subagent': 'stdout mostrado ao subagente',
701
+ 'show stderr to subagent and continue having it run':
702
+ 'mostrar stderr ao subagente e continuar executando',
703
+ 'stdout appended as custom compact instructions':
704
+ 'stdout anexado como instruções de compactação personalizadas',
705
+ 'block compaction': 'bloquear compactação',
706
+ 'show stderr to user only but continue with compaction':
707
+ 'mostrar stderr apenas ao usuário mas continuar com compactação',
708
+ 'use hook decision if provided': 'usar decisão do hook se fornecida',
709
+ // Hooks - Messages
710
+ 'Config not loaded.': 'Configuração não carregada.',
711
+ 'Hooks are not enabled. Enable hooks in settings to use this feature.':
712
+ 'Hooks não estão ativados. Ative hooks nas configurações para usar este recurso.',
713
+ 'No hooks configured. Add hooks in your settings.json file.':
714
+ 'Nenhum hook configurado. Adicione hooks no seu arquivo settings.json.',
715
+ 'Configured Hooks ({{count}} total)': 'Hooks Configurados ({{count}} total)',
602
716
 
603
717
  // ============================================================================
604
718
  // Commands - Session Export
@@ -712,7 +826,6 @@ export default {
712
826
  'Workspace approval mode exists and takes priority. User-level change will have no effect.':
713
827
  'O modo de aprovação do workspace existe e tem prioridade. A alteração no nível do usuário não terá efeito.',
714
828
  'Apply To': 'Aplicar A',
715
- 'User Settings': 'Configurações do Usuário',
716
829
  'Workspace Settings': 'Configurações do Workspace',
717
830
 
718
831
  // ============================================================================
@@ -769,7 +882,6 @@ export default {
769
882
  'List configured MCP servers and tools':
770
883
  'Listar servidores e ferramentas MCP configurados',
771
884
  'Restarts MCP servers.': 'Reinicia os servidores MCP.',
772
- 'Config not loaded.': 'Configuração não carregada.',
773
885
  'Could not retrieve tool registry.':
774
886
  'Não foi possível recuperar o registro de ferramentas.',
775
887
  'No MCP servers configured with OAuth authentication.':
@@ -979,7 +1091,6 @@ export default {
979
1091
  'No server selected': 'Nenhum servidor selecionado',
980
1092
  '(disabled)': '(desativado)',
981
1093
  'Error:': 'Erro:',
982
- Extension: 'Extensão',
983
1094
  tool: 'ferramenta',
984
1095
  tools: 'ferramentas',
985
1096
  connected: 'conectado',
@@ -1054,7 +1165,11 @@ export default {
1054
1165
  "Permitir a execução de: '{{command}}'?",
1055
1166
  'Yes, allow always ...': 'Sim, permitir sempre ...',
1056
1167
  'Always allow in this project': 'Sempre permitir neste projeto',
1168
+ 'Always allow {{action}} in this project':
1169
+ 'Sempre permitir {{action}} neste projeto',
1057
1170
  'Always allow for this user': 'Sempre permitir para este usuário',
1171
+ 'Always allow {{action}} for this user':
1172
+ 'Sempre permitir {{action}} para este usuário',
1058
1173
  'Yes, and auto-accept edits': 'Sim, e aceitar edições automaticamente',
1059
1174
  'Yes, and manually approve edits': 'Sim, e aprovar edições manualmente',
1060
1175
  'No, keep planning (esc)': 'Não, continuar planejando (esc)',
@@ -1662,8 +1777,8 @@ export default {
1662
1777
  // Auth Dialog - View Titles and Labels
1663
1778
  // ============================================================================
1664
1779
  'Coding Plan': 'Coding Plan',
1665
- "Paste your api key of Bailian Coding Plan and you're all set!":
1666
- 'Cole sua chave de API do Bailian Coding Plan e pronto!',
1780
+ "Paste your api key of ModelStudio Coding Plan and you're all set!":
1781
+ 'Cole sua chave de API do ModelStudio Coding Plan e pronto!',
1667
1782
  Custom: 'Personalizado',
1668
1783
  'More instructions about configuring `modelProviders` manually.':
1669
1784
  'Mais instruções sobre como configurar `modelProviders` manualmente.',
package/locales/ru.js CHANGED
@@ -605,6 +605,119 @@ export default {
605
605
  'List all configured hooks': 'Показать все настроенные хуки',
606
606
  'Enable a disabled hook': 'Включить отключенный хук',
607
607
  'Disable an active hook': 'Отключить активный хук',
608
+ // Hooks - Dialog
609
+ Hooks: 'Хуки',
610
+ 'Loading hooks...': 'Загрузка хуков...',
611
+ 'Error loading hooks:': 'Ошибка загрузки хуков:',
612
+ 'Press Escape to close': 'Нажмите Escape для закрытия',
613
+ 'No hook selected': 'Хук не выбран',
614
+ // Hooks - List Step
615
+ 'No hook events found.': 'События хуков не найдены.',
616
+ '{{count}} hook configured': '{{count}} хук настроен',
617
+ '{{count}} hooks configured': '{{count}} хуков настроено',
618
+ 'This menu is read-only. To add or modify hooks, edit settings.json directly or ask Qwen Code.':
619
+ 'Это меню только для чтения. Чтобы добавить или изменить хуки, отредактируйте settings.json напрямую или спросите Qwen Code.',
620
+ 'Enter to select · Esc to cancel': 'Enter для выбора · Esc для отмены',
621
+ // Hooks - Detail Step
622
+ 'Exit codes:': 'Коды выхода:',
623
+ 'Configured hooks:': 'Настроенные хуки:',
624
+ 'No hooks configured for this event.':
625
+ 'Для этого события нет настроенных хуков.',
626
+ 'To add hooks, edit settings.json directly or ask Qwen.':
627
+ 'Чтобы добавить хуки, отредактируйте settings.json напрямую или спросите Qwen.',
628
+ 'Enter to select · Esc to go back': 'Enter для выбора · Esc для возврата',
629
+ // Hooks - Config Detail Step
630
+ 'Hook details': 'Детали хука',
631
+ 'Event:': 'Событие:',
632
+ 'Extension:': 'Расширение:',
633
+ 'Desc:': 'Описание:',
634
+ 'No hook config selected': 'Конфигурация хука не выбрана',
635
+ 'To modify or remove this hook, edit settings.json directly or ask Qwen to help.':
636
+ 'Чтобы изменить или удалить этот хук, отредактируйте settings.json напрямую или спросите Qwen.',
637
+ // Hooks - Source
638
+ Project: 'Проект',
639
+ User: 'Пользователь',
640
+ System: 'Система',
641
+ Extension: 'Расширение',
642
+ 'Local Settings': 'Локальные настройки',
643
+ 'User Settings': 'Пользовательские настройки',
644
+ 'System Settings': 'Системные настройки',
645
+ Extensions: 'Расширения',
646
+ // Hooks - Status
647
+ '✓ Enabled': '✓ Включен',
648
+ '✗ Disabled': '✗ Отключен',
649
+ // Hooks - Event Descriptions (short)
650
+ 'Before tool execution': 'Перед выполнением инструмента',
651
+ 'After tool execution': 'После выполнения инструмента',
652
+ 'After tool execution fails': 'При неудачном выполнении инструмента',
653
+ 'When notifications are sent': 'При отправке уведомлений',
654
+ 'When the user submits a prompt': 'Когда пользователь отправляет промпт',
655
+ 'When a new session is started': 'При запуске новой сессии',
656
+ 'Right before Qwen Code concludes its response':
657
+ 'Непосредственно перед завершением ответа Qwen Code',
658
+ 'When a subagent (Agent tool call) is started':
659
+ 'При запуске субагента (вызов инструмента Agent)',
660
+ 'Right before a subagent concludes its response':
661
+ 'Непосредственно перед завершением ответа субагента',
662
+ 'Before conversation compaction': 'Перед сжатием разговора',
663
+ 'When a session is ending': 'При завершении сессии',
664
+ 'When a permission dialog is displayed': 'При отображении диалога разрешений',
665
+ // Hooks - Event Descriptions (detailed)
666
+ 'Input to command is JSON of tool call arguments.':
667
+ 'Ввод в команду — это JSON аргументов вызова инструмента.',
668
+ 'Input to command is JSON with fields "inputs" (tool call arguments) and "response" (tool call response).':
669
+ 'Ввод в команду — это JSON с полями "inputs" (аргументы вызова инструмента) и "response" (ответ вызова инструмента).',
670
+ 'Input to command is JSON with tool_name, tool_input, tool_use_id, error, error_type, is_interrupt, and is_timeout.':
671
+ 'Ввод в команду — это JSON с tool_name, tool_input, tool_use_id, error, error_type, is_interrupt и is_timeout.',
672
+ 'Input to command is JSON with notification message and type.':
673
+ 'Ввод в команду — это JSON с сообщением уведомления и типом.',
674
+ 'Input to command is JSON with original user prompt text.':
675
+ 'Ввод в команду — это JSON с исходным текстом промпта пользователя.',
676
+ 'Input to command is JSON with session start source.':
677
+ 'Ввод в команду — это JSON с источником запуска сессии.',
678
+ 'Input to command is JSON with session end reason.':
679
+ 'Ввод в команду — это JSON с причиной завершения сессии.',
680
+ 'Input to command is JSON with agent_id and agent_type.':
681
+ 'Ввод в команду — это JSON с agent_id и agent_type.',
682
+ 'Input to command is JSON with agent_id, agent_type, and agent_transcript_path.':
683
+ 'Ввод в команду — это JSON с agent_id, agent_type и agent_transcript_path.',
684
+ 'Input to command is JSON with compaction details.':
685
+ 'Ввод в команду — это JSON с деталями сжатия.',
686
+ 'Input to command is JSON with tool_name, tool_input, and tool_use_id. Output JSON with hookSpecificOutput containing decision to allow or deny.':
687
+ 'Ввод в команду — это JSON с tool_name, tool_input и tool_use_id. Вывод — JSON с hookSpecificOutput, содержащим решение о разрешении или отказе.',
688
+ // Hooks - Exit Code Descriptions
689
+ 'stdout/stderr not shown': 'stdout/stderr не отображаются',
690
+ 'show stderr to model and continue conversation':
691
+ 'показать stderr модели и продолжить разговор',
692
+ 'show stderr to user only': 'показать stderr только пользователю',
693
+ 'stdout shown in transcript mode (ctrl+o)':
694
+ 'stdout отображается в режиме транскрипции (ctrl+o)',
695
+ 'show stderr to model immediately': 'показать stderr модели немедленно',
696
+ 'show stderr to user only but continue with tool call':
697
+ 'показать stderr только пользователю, но продолжить вызов инструмента',
698
+ 'block processing, erase original prompt, and show stderr to user only':
699
+ 'заблокировать обработку, стереть исходный промпт и показать stderr только пользователю',
700
+ 'stdout shown to Qwen': 'stdout показан Qwen',
701
+ 'show stderr to user only (blocking errors ignored)':
702
+ 'показать stderr только пользователю (блокирующие ошибки игнорируются)',
703
+ 'command completes successfully': 'команда успешно завершена',
704
+ 'stdout shown to subagent': 'stdout показан субагенту',
705
+ 'show stderr to subagent and continue having it run':
706
+ 'показать stderr субагенту и продолжить его выполнение',
707
+ 'stdout appended as custom compact instructions':
708
+ 'stdout добавлен как пользовательские инструкции сжатия',
709
+ 'block compaction': 'заблокировать сжатие',
710
+ 'show stderr to user only but continue with compaction':
711
+ 'показать stderr только пользователю, но продолжить сжатие',
712
+ 'use hook decision if provided':
713
+ 'использовать решение хука, если предоставлено',
714
+ // Hooks - Messages
715
+ 'Config not loaded.': 'Конфигурация не загружена.',
716
+ 'Hooks are not enabled. Enable hooks in settings to use this feature.':
717
+ 'Хуки не включены. Включите хуки в настройках, чтобы использовать эту функцию.',
718
+ 'No hooks configured. Add hooks in your settings.json file.':
719
+ 'Хуки не настроены. Добавьте хуки в файл settings.json.',
720
+ 'Configured Hooks ({{count}} total)': 'Настроенные хуки (всего {{count}})',
608
721
 
609
722
  // ============================================================================
610
723
  // Commands - Session Export
@@ -718,7 +831,6 @@ export default {
718
831
  'Workspace approval mode exists and takes priority. User-level change will have no effect.':
719
832
  'Режим подтверждения рабочего пространства существует и имеет приоритет. Изменение на уровне пользователя не будет иметь эффекта.',
720
833
  'Apply To': 'Применить к',
721
- 'User Settings': 'Настройки пользователя',
722
834
  'Workspace Settings': 'Настройки рабочего пространства',
723
835
 
724
836
  // ============================================================================
@@ -773,7 +885,6 @@ export default {
773
885
  'List configured MCP servers and tools':
774
886
  'Просмотр настроенных MCP-серверов и инструментов',
775
887
  'Restarts MCP servers.': 'Перезапустить MCP-серверы.',
776
- 'Config not loaded.': 'Конфигурация не загружена.',
777
888
  'Could not retrieve tool registry.':
778
889
  'Не удалось получить реестр инструментов.',
779
890
  'No MCP servers configured with OAuth authentication.':
@@ -951,7 +1062,6 @@ export default {
951
1062
  'View tools': 'Просмотреть инструменты',
952
1063
  '(disabled)': '(отключен)',
953
1064
  'Error:': 'Ошибка:',
954
- Extension: 'Расширение',
955
1065
  tool: 'инструмент',
956
1066
  connected: 'подключен',
957
1067
  connecting: 'подключение',
@@ -979,7 +1089,11 @@ export default {
979
1089
  "Allow execution of: '{{command}}'?": "Разрешить выполнение: '{{command}}'?",
980
1090
  'Yes, allow always ...': 'Да, всегда разрешать ...',
981
1091
  'Always allow in this project': 'Всегда разрешать в этом проекте',
1092
+ 'Always allow {{action}} in this project':
1093
+ 'Всегда разрешать {{action}} в этом проекте',
982
1094
  'Always allow for this user': 'Всегда разрешать для этого пользователя',
1095
+ 'Always allow {{action}} for this user':
1096
+ 'Всегда разрешать {{action}} для этого пользователя',
983
1097
  'Yes, and auto-accept edits': 'Да, и автоматически принимать правки',
984
1098
  'Yes, and manually approve edits': 'Да, и вручную подтверждать правки',
985
1099
  'No, keep planning (esc)': 'Нет, продолжить планирование (esc)',
@@ -1597,8 +1711,8 @@ export default {
1597
1711
  // Auth Dialog - View Titles and Labels
1598
1712
  // ============================================================================
1599
1713
  'Coding Plan': 'Coding Plan',
1600
- "Paste your api key of Bailian Coding Plan and you're all set!":
1601
- 'Вставьте ваш API-ключ Bailian Coding Plan и всё готово!',
1714
+ "Paste your api key of ModelStudio Coding Plan and you're all set!":
1715
+ 'Вставьте ваш API-ключ ModelStudio Coding Plan и всё готово!',
1602
1716
  Custom: 'Пользовательский',
1603
1717
  'More instructions about configuring `modelProviders` manually.':
1604
1718
  'Дополнительные инструкции по ручной настройке `modelProviders`.',
package/locales/zh.js CHANGED
@@ -632,6 +632,114 @@ export default {
632
632
  'List all configured hooks': '列出所有已配置的 Hook',
633
633
  'Enable a disabled hook': '启用已禁用的 Hook',
634
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 - Source
664
+ Project: '项目',
665
+ User: '用户',
666
+ System: '系统',
667
+ Extension: '扩展',
668
+ 'Local Settings': '本地设置',
669
+ 'User Settings': '用户设置',
670
+ 'System Settings': '系统设置',
671
+ Extensions: '扩展',
672
+ // Hooks - Status
673
+ '✓ Enabled': '✓ 已启用',
674
+ '✗ Disabled': '✗ 已禁用',
675
+ // Hooks - Event Descriptions (short)
676
+ 'Before tool execution': '工具执行前',
677
+ 'After tool execution': '工具执行后',
678
+ 'After tool execution fails': '工具执行失败后',
679
+ 'When notifications are sent': '发送通知时',
680
+ 'When the user submits a prompt': '用户提交提示时',
681
+ 'When a new session is started': '新会话开始时',
682
+ 'Right before Qwen Code concludes its response': 'Qwen Code 结束响应之前',
683
+ 'When a subagent (Agent tool call) is started':
684
+ '子智能体(Agent 工具调用)启动时',
685
+ 'Right before a subagent concludes its response': '子智能体结束响应之前',
686
+ 'Before conversation compaction': '对话压缩前',
687
+ 'When a session is ending': '会话结束时',
688
+ 'When a permission dialog is displayed': '显示权限对话框时',
689
+ // Hooks - Event Descriptions (detailed)
690
+ 'Input to command is JSON of tool call arguments.':
691
+ '命令输入为工具调用参数的 JSON。',
692
+ 'Input to command is JSON with fields "inputs" (tool call arguments) and "response" (tool call response).':
693
+ '命令输入为包含 "inputs"(工具调用参数)和 "response"(工具调用响应)字段的 JSON。',
694
+ 'Input to command is JSON with tool_name, tool_input, tool_use_id, error, error_type, is_interrupt, and is_timeout.':
695
+ '命令输入为包含 tool_name、tool_input、tool_use_id、error、error_type、is_interrupt 和 is_timeout 的 JSON。',
696
+ 'Input to command is JSON with notification message and type.':
697
+ '命令输入为包含通知消息和类型的 JSON。',
698
+ 'Input to command is JSON with original user prompt text.':
699
+ '命令输入为包含原始用户提示文本的 JSON。',
700
+ 'Input to command is JSON with session start source.':
701
+ '命令输入为包含会话启动来源的 JSON。',
702
+ 'Input to command is JSON with session end reason.':
703
+ '命令输入为包含会话结束原因的 JSON。',
704
+ 'Input to command is JSON with agent_id and agent_type.':
705
+ '命令输入为包含 agent_id 和 agent_type 的 JSON。',
706
+ 'Input to command is JSON with agent_id, agent_type, and agent_transcript_path.':
707
+ '命令输入为包含 agent_id、agent_type 和 agent_transcript_path 的 JSON。',
708
+ 'Input to command is JSON with compaction details.':
709
+ '命令输入为包含压缩详情的 JSON。',
710
+ 'Input to command is JSON with tool_name, tool_input, and tool_use_id. Output JSON with hookSpecificOutput containing decision to allow or deny.':
711
+ '命令输入为包含 tool_name、tool_input 和 tool_use_id 的 JSON。输出包含 hookSpecificOutput 的 JSON,其中包含允许或拒绝的决定。',
712
+ // Hooks - Exit Code Descriptions
713
+ 'stdout/stderr not shown': 'stdout/stderr 不显示',
714
+ 'show stderr to model and continue conversation':
715
+ '向模型显示 stderr 并继续对话',
716
+ 'show stderr to user only': '仅向用户显示 stderr',
717
+ 'stdout shown in transcript mode (ctrl+o)': 'stdout 以转录模式显示 (ctrl+o)',
718
+ 'show stderr to model immediately': '立即向模型显示 stderr',
719
+ 'show stderr to user only but continue with tool call':
720
+ '仅向用户显示 stderr 但继续工具调用',
721
+ 'block processing, erase original prompt, and show stderr to user only':
722
+ '阻止处理,擦除原始提示,仅向用户显示 stderr',
723
+ 'stdout shown to Qwen': '向 Qwen 显示 stdout',
724
+ 'show stderr to user only (blocking errors ignored)':
725
+ '仅向用户显示 stderr(忽略阻塞错误)',
726
+ 'command completes successfully': '命令成功完成',
727
+ 'stdout shown to subagent': '向子智能体显示 stdout',
728
+ 'show stderr to subagent and continue having it run':
729
+ '向子智能体显示 stderr 并继续运行',
730
+ 'stdout appended as custom compact instructions':
731
+ 'stdout 作为自定义压缩指令追加',
732
+ 'block compaction': '阻止压缩',
733
+ 'show stderr to user only but continue with compaction':
734
+ '仅向用户显示 stderr 但继续压缩',
735
+ 'use hook decision if provided': '如果提供则使用 Hook 决定',
736
+ // Hooks - Messages
737
+ 'Config not loaded.': '配置未加载。',
738
+ 'Hooks are not enabled. Enable hooks in settings to use this feature.':
739
+ 'Hook 未启用。请在设置中启用 Hook 以使用此功能。',
740
+ 'No hooks configured. Add hooks in your settings.json file.':
741
+ '未配置 Hook。请在 settings.json 文件中添加 Hook。',
742
+ 'Configured Hooks ({{count}} total)': '已配置的 Hook(共 {{count}} 个)',
635
743
 
636
744
  // ============================================================================
637
745
  // Commands - Session Export
@@ -732,7 +840,6 @@ export default {
732
840
  'Workspace approval mode exists and takes priority. User-level change will have no effect.':
733
841
  '工作区审批模式已存在并具有优先级。用户级别的更改将无效。',
734
842
  'Apply To': '应用于',
735
- 'User Settings': '用户设置',
736
843
  'Workspace Settings': '工作区设置',
737
844
 
738
845
  // ============================================================================
@@ -782,7 +889,6 @@ export default {
782
889
  'List configured MCP servers and tools': '列出已配置的 MCP 服务器和工具',
783
890
  'Restarts MCP servers.': '重启 MCP 服务器',
784
891
  'Open MCP management dialog': '打开 MCP 管理对话框',
785
- 'Config not loaded.': '配置未加载',
786
892
  'Could not retrieve tool registry.': '无法检索工具注册表',
787
893
  'No MCP servers configured with OAuth authentication.':
788
894
  '未配置支持 OAuth 认证的 MCP 服务器',
@@ -841,7 +947,6 @@ export default {
841
947
  'Server:': '服务器:',
842
948
  '(disabled)': '(已禁用)',
843
949
  'Error:': '错误:',
844
- Extension: '扩展',
845
950
  tool: '工具',
846
951
  tools: '个工具',
847
952
  connected: '已连接',
@@ -1044,7 +1149,9 @@ export default {
1044
1149
  "Allow execution of: '{{command}}'?": "允许执行:'{{command}}'?",
1045
1150
  'Yes, allow always ...': '是,总是允许 ...',
1046
1151
  'Always allow in this project': '在本项目中总是允许',
1152
+ 'Always allow {{action}} in this project': '在本项目中总是允许{{action}}',
1047
1153
  'Always allow for this user': '对该用户总是允许',
1154
+ 'Always allow {{action}} for this user': '对该用户总是允许{{action}}',
1048
1155
  'Yes, and auto-accept edits': '是,并自动接受编辑',
1049
1156
  'Yes, and manually approve edits': '是,并手动批准编辑',
1050
1157
  'No, keep planning (esc)': '否,继续规划 (esc)',
@@ -1543,7 +1650,7 @@ export default {
1543
1650
  // ============================================================================
1544
1651
  'API-KEY': 'API-KEY',
1545
1652
  'Coding Plan': 'Coding Plan',
1546
- "Paste your api key of Bailian Coding Plan and you're all set!":
1653
+ "Paste your api key of ModelStudio Coding Plan and you're all set!":
1547
1654
  '粘贴您的百炼 Coding Plan API Key,即可完成设置!',
1548
1655
  Custom: '自定义',
1549
1656
  'More instructions about configuring `modelProviders` manually.':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.14.0-preview.0",
3
+ "version": "0.14.0-preview.2",
4
4
  "description": "Qwen Code - AI-powered coding assistant",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "bundled"
22
22
  ],
23
23
  "config": {
24
- "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.14.0-preview.0"
24
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.14.0-preview.2"
25
25
  },
26
26
  "dependencies": {},
27
27
  "optionalDependencies": {