stella-coder 5.0.0 → 5.0.1
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 +1 -1
- package/stella-cli/banner.mjs +1 -1
- package/stella-cli/index.mjs +1 -1
- package/stella-cli/tools.mjs +6 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stella-coder",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
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",
|
package/stella-cli/banner.mjs
CHANGED
|
@@ -30,7 +30,7 @@ export function printBanner({ model, cwd, version }) {
|
|
|
30
30
|
console.log(
|
|
31
31
|
box(
|
|
32
32
|
[
|
|
33
|
-
violet("✻") + " Добро пожаловать в " + bold(violet("Stella Coder
|
|
33
|
+
violet("✻") + " Добро пожаловать в " + bold(violet("Stella Coder 5.0")) + "!",
|
|
34
34
|
"",
|
|
35
35
|
dim(" модель: ") + blue(model),
|
|
36
36
|
dim(" папка: ") + gray(cwd),
|
package/stella-cli/index.mjs
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
generateAdminCode, listAuthorizedUsers,
|
|
41
41
|
} from "./telegram-bot.mjs"
|
|
42
42
|
|
|
43
|
-
const VERSION = "5.0.
|
|
43
|
+
const VERSION = "5.0.1"
|
|
44
44
|
const CONFIG_DIR = path.join(os.homedir(), ".stella")
|
|
45
45
|
const CONFIG_PATH = path.join(CONFIG_DIR, "config.json")
|
|
46
46
|
const HISTORY_PATH = path.join(CONFIG_DIR, "history.json")
|
package/stella-cli/tools.mjs
CHANGED
|
@@ -2192,15 +2192,12 @@ export function createTools(permissions) {
|
|
|
2192
2192
|
if (!cmd) return { error: `Неизвестная команда: ${command}` }
|
|
2193
2193
|
|
|
2194
2194
|
const authHeader = psk ? { "X-Auth-PSK": psk } : {}
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
const
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
body: JSON.stringify({ method: "getVersions", params: [] }),
|
|
2202
|
-
signal: AbortSignal.timeout(5000),
|
|
2203
|
-
}).catch(() => null)
|
|
2195
|
+
|
|
2196
|
+
// Power commands use /sony/system, others use /sony/videoControl
|
|
2197
|
+
const isPowerCommand = command === "power" || command === "power_on" || command === "power_off"
|
|
2198
|
+
const url = isPowerCommand
|
|
2199
|
+
? `http://${ip}/sony/system`
|
|
2200
|
+
: `http://${ip}/sony/videoControl`
|
|
2204
2201
|
|
|
2205
2202
|
// Send the command
|
|
2206
2203
|
const res = await fetch(url, {
|