feat(cli): Increase /insight feature exposure via weighted tips

- Add weighted tip system to make certain tips appear more frequently
- Set /insight tip to weight 3 (3x more likely than regular tips)
- Add i18n translations for the new tip across all supported languages
- Add comprehensive unit tests for weighted tip selection

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-02-28 18:08:37 +08:00
parent e93b287329
commit 1b7d153a4c
8 changed files with 150 additions and 6 deletions

View file

@ -1384,10 +1384,26 @@ export default {
'Открываем страницу расширений в браузере: {{url}}',
'Failed to open browser. Check out the extensions gallery at {{url}}':
'Не удалось открыть браузер. Посетите галерею расширений по адресу {{url}}',
'Use /compress when the conversation gets long to summarize history and free up context.':
'Используйте /compress, когда разговор становится длинным, чтобы подвести итог и освободить контекст.',
'Start a fresh idea with /clear or /new; the previous session stays available in history.':
'Начните новую идею с /clear или /new; предыдущая сессия останется в истории.',
'Use /bug to submit issues to the maintainers when something goes off.':
'Используйте /bug, чтобы сообщить о проблемах разработчикам.',
'Switch auth type quickly with /auth.':
'Быстро переключите тип аутентификации с помощью /auth.',
'You can run any shell commands from Qwen Code using ! (e.g. !ls).':
'Вы можете выполнять любые shell-команды в Qwen Code с помощью ! (например, !ls).',
'Type / to open the command popup; Tab autocompletes slash commands and saved prompts.':
'Введите /, чтобы открыть меню команд; Tab автодополняет слэш-команды и сохранённые промпты.',
'You can resume a previous conversation by running qwen --continue or qwen --resume.':
'Вы можете продолжить предыдущий разговор, запустив qwen --continue или qwen --resume.',
'You can switch permission mode quickly with Shift+Tab or /approval-mode.':
'Вы можете быстро переключать режим разрешений с помощью Shift+Tab или /approval-mode.',
'You can switch permission mode quickly with Tab or /approval-mode.':
'Вы можете быстро переключать режим разрешений с помощью Tab или /approval-mode.',
'Try /insight to generate personalized insights from your chat history.':
'Попробуйте /insight, чтобы получить персонализированные выводы из истории чатов.',
// ============================================================================
// Custom API-KEY Configuration