stella-coder 5.3.3 → 5.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stella-coder",
3
- "version": "5.3.3",
3
+ "version": "5.3.4",
4
4
  "private": false,
5
5
  "description": "Stella Coder 5.0 — AI coding agent with Telegram bot, huge context, TDD, Git ecosystem, presentations, computer control, smart home, Office automation, and antivirus",
6
6
  "main": "stella-cli/index.mjs",
@@ -52,7 +52,7 @@ import {
52
52
  generateAdminCode, listAuthorizedUsers,
53
53
  } from "./telegram-bot.mjs"
54
54
 
55
- const VERSION = "5.3.3"
55
+ const VERSION = "5.3.4"
56
56
  const CONFIG_DIR = path.join(os.homedir(), ".stella")
57
57
  const CONFIG_PATH = path.join(CONFIG_DIR, "config.json")
58
58
  const HISTORY_PATH = path.join(CONFIG_DIR, "history.json")
@@ -299,12 +299,21 @@ async function runTurn(userText) {
299
299
  console.log(red("\n ✗ API ключ не задан. Введи /login для настройки.\n"))
300
300
  return
301
301
  }
302
+ console.log(dim(` → модель: ${state.model}, ключ: ${apiKey ? "есть" : "нет"}`))
302
303
  state.messages.push({ role: "user", content: userText })
303
304
  state.turns++
304
305
  state.interrupted = false
305
306
 
306
307
  const isOllama = state.model.startsWith("ollama:")
307
308
  const controller = new AbortController()
309
+
310
+ // 30 second timeout
311
+ const timeout = setTimeout(() => {
312
+ controller.abort()
313
+ stopSpinner()
314
+ console.log("\n" + red("✗ Таймаут: API не отвечает 30 секунд. Проверь модель: /model"))
315
+ }, 30000)
316
+
308
317
  const onSigint = () => {
309
318
  state.interrupted = true
310
319
  controller.abort()
@@ -455,6 +464,7 @@ async function runTurn(userText) {
455
464
  }
456
465
  }
457
466
  } finally {
467
+ clearTimeout(timeout)
458
468
  process.removeListener("SIGINT", onSigint)
459
469
  }
460
470
  console.log()