@iola_adm/iola-cli 0.1.44 → 0.1.45
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/src/cli.js +11 -8
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -270,7 +270,7 @@ const SLASH_COMMANDS = [
|
|
|
270
270
|
{ command: "/help", description: "список slash-команд" },
|
|
271
271
|
{ command: "/health", description: "проверка публичного API/MCP" },
|
|
272
272
|
{ command: "/doctor", description: "диагностика CLI" },
|
|
273
|
-
{ command: "/
|
|
273
|
+
{ command: "/master", description: "мастер настройки" },
|
|
274
274
|
{ command: "/db status", description: "статус локальной SQLite-БД" },
|
|
275
275
|
{ command: "/sessions", description: "AI-сессии" },
|
|
276
276
|
{ command: "/resume SESSION_ID", description: "продолжить сессию" },
|
|
@@ -408,6 +408,7 @@ const COMMANDS = new Map([
|
|
|
408
408
|
["mcp-info", showMcpInfo],
|
|
409
409
|
["setup", setupClient],
|
|
410
410
|
["onboard", onboard],
|
|
411
|
+
["master", onboard],
|
|
411
412
|
["wizard", onboard],
|
|
412
413
|
]);
|
|
413
414
|
|
|
@@ -465,7 +466,7 @@ async function showHelp() {
|
|
|
465
466
|
|
|
466
467
|
Запуск:
|
|
467
468
|
iola открыть интерактивный агент
|
|
468
|
-
iola
|
|
469
|
+
iola master мастер настройки
|
|
469
470
|
iola ask "найди школу 29" задать вопрос
|
|
470
471
|
iola search "Петрова" поиск по открытым данным
|
|
471
472
|
|
|
@@ -589,6 +590,7 @@ Usage:
|
|
|
589
590
|
iola mcp-info [--json]
|
|
590
591
|
iola setup codex
|
|
591
592
|
iola onboard
|
|
593
|
+
iola master
|
|
592
594
|
iola wizard
|
|
593
595
|
iola version
|
|
594
596
|
|
|
@@ -625,7 +627,7 @@ async function startAgent() {
|
|
|
625
627
|
setTerminalTitle(`iola - ${path.basename(process.cwd()) || process.cwd()}`);
|
|
626
628
|
await showBanner();
|
|
627
629
|
await ensureAgentAiReady();
|
|
628
|
-
console.log("Интерактивный режим. Введите /help для списка команд, /exit для выхода.");
|
|
630
|
+
console.log("Интерактивный режим. Введите /help для списка команд, /master чтобы запустить мастер настройки, /exit для выхода.");
|
|
629
631
|
await runHooks("SessionStart", { mode: "agent" });
|
|
630
632
|
|
|
631
633
|
if (input.isTTY && output.isTTY) {
|
|
@@ -649,7 +651,7 @@ async function ensureAgentAiReady() {
|
|
|
649
651
|
|
|
650
652
|
if (onboardRanThisProcess) {
|
|
651
653
|
console.log("AI-провайдер пока не настроен. Агент откроется, но AI-запросы потребуют настройки.");
|
|
652
|
-
console.log("Повторно открыть мастер можно командой: /
|
|
654
|
+
console.log("Повторно открыть мастер можно командой: /master");
|
|
653
655
|
return readiness;
|
|
654
656
|
}
|
|
655
657
|
|
|
@@ -662,7 +664,7 @@ async function ensureAgentAiReady() {
|
|
|
662
664
|
if (!updated.ready) {
|
|
663
665
|
console.log("");
|
|
664
666
|
console.log("AI-провайдер пока не настроен. Агент откроется, но AI-запросы потребуют настройки.");
|
|
665
|
-
console.log("Повторно открыть мастер можно командой: /
|
|
667
|
+
console.log("Повторно открыть мастер можно командой: /master");
|
|
666
668
|
}
|
|
667
669
|
return updated;
|
|
668
670
|
}
|
|
@@ -1185,6 +1187,7 @@ async function handleAgentLine(line, state) {
|
|
|
1185
1187
|
search: ["search", args],
|
|
1186
1188
|
"mcp-info": ["mcp-info", args],
|
|
1187
1189
|
setup: ["setup", args],
|
|
1190
|
+
master: ["wizard", args],
|
|
1188
1191
|
wizard: ["wizard", args],
|
|
1189
1192
|
onboard: ["onboard", args],
|
|
1190
1193
|
}[command];
|
|
@@ -1267,16 +1270,16 @@ function renderAgentInput(state) {
|
|
|
1267
1270
|
}
|
|
1268
1271
|
}
|
|
1269
1272
|
|
|
1270
|
-
const renderedLines = [...inputLines,
|
|
1273
|
+
const renderedLines = [...inputLines, "", ...menuLines, cwdLine];
|
|
1271
1274
|
output.write(renderedLines.join("\n"));
|
|
1272
1275
|
if (output.isTTY) {
|
|
1273
|
-
output.write(`\x1b[${
|
|
1276
|
+
output.write(`\x1b[${2 + menuLines.length}A`);
|
|
1274
1277
|
}
|
|
1275
1278
|
if (output.isTTY) {
|
|
1276
1279
|
const cursorColumn = visibleLength(inputLines[inputLines.length - 1]);
|
|
1277
1280
|
output.write(`\x1b[${cursorColumn + 1}G`);
|
|
1278
1281
|
}
|
|
1279
|
-
state.renderedInputLines = inputLines.length
|
|
1282
|
+
state.renderedInputLines = inputLines.length;
|
|
1280
1283
|
}
|
|
1281
1284
|
|
|
1282
1285
|
function clearAgentInputArea(state = null) {
|