qwen-alpha 1.0.17 → 1.0.18

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/README.md CHANGED
@@ -274,7 +274,7 @@ chmod -R 755 ~/.qwen-alpha/
274
274
 
275
275
  ## 📞 Контакты
276
276
 
277
- - **Telegram**: @QwenAlphaRobot (бот)
277
+ - **Telegram**: [@QwenAlphaRobot](https://t.me/QwenAlphaRobot) (бот)
278
278
  - **GitHub**: https://github.com/JeBance/QwenAlpha/issues
279
279
 
280
280
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qwen-alpha",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Telegram bot for Qwen Code integration — AI-powered code review, bug detection, and code generation",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -169,11 +169,14 @@ class QwenService {
169
169
 
170
170
  for (const msg of messages) {
171
171
  // Сначала проверяем result сообщение (оно содержит финальный ответ)
172
- if (msg.type === 'result' && msg.result) {
173
- // result должен быть строкой, а не объектом
174
- if (typeof msg.result === 'string' && msg.result.length < 10000) {
172
+ if (msg.type === 'result') {
173
+ logger.debug({ resultType: typeof msg.result, resultLength: msg.result?.length, result: msg.result?.substring?.(0, 100) }, 'Checking result message');
174
+
175
+ // result должен быть строкой
176
+ if (typeof msg.result === 'string') {
175
177
  textContents.push(msg.result);
176
178
  hasResult = true;
179
+ logger.info({ resultLength: msg.result.length }, 'Found result text');
177
180
  break;
178
181
  }
179
182
  }