@iola_adm/iola-cli 0.1.44 → 0.1.46
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 +12 -10
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
|
}
|
|
@@ -815,8 +817,7 @@ async function startAgentRawInput() {
|
|
|
815
817
|
}
|
|
816
818
|
} finally {
|
|
817
819
|
if (!wasRaw) input.setRawMode(false);
|
|
818
|
-
|
|
819
|
-
output.write("\n");
|
|
820
|
+
input.pause();
|
|
820
821
|
}
|
|
821
822
|
}
|
|
822
823
|
|
|
@@ -1185,6 +1186,7 @@ async function handleAgentLine(line, state) {
|
|
|
1185
1186
|
search: ["search", args],
|
|
1186
1187
|
"mcp-info": ["mcp-info", args],
|
|
1187
1188
|
setup: ["setup", args],
|
|
1189
|
+
master: ["wizard", args],
|
|
1188
1190
|
wizard: ["wizard", args],
|
|
1189
1191
|
onboard: ["onboard", args],
|
|
1190
1192
|
}[command];
|
|
@@ -1267,16 +1269,16 @@ function renderAgentInput(state) {
|
|
|
1267
1269
|
}
|
|
1268
1270
|
}
|
|
1269
1271
|
|
|
1270
|
-
const renderedLines = [...inputLines,
|
|
1272
|
+
const renderedLines = [...inputLines, "", ...menuLines, cwdLine];
|
|
1271
1273
|
output.write(renderedLines.join("\n"));
|
|
1272
1274
|
if (output.isTTY) {
|
|
1273
|
-
output.write(`\x1b[${
|
|
1275
|
+
output.write(`\x1b[${2 + menuLines.length}A`);
|
|
1274
1276
|
}
|
|
1275
1277
|
if (output.isTTY) {
|
|
1276
1278
|
const cursorColumn = visibleLength(inputLines[inputLines.length - 1]);
|
|
1277
1279
|
output.write(`\x1b[${cursorColumn + 1}G`);
|
|
1278
1280
|
}
|
|
1279
|
-
state.renderedInputLines = inputLines.length
|
|
1281
|
+
state.renderedInputLines = inputLines.length;
|
|
1280
1282
|
}
|
|
1281
1283
|
|
|
1282
1284
|
function clearAgentInputArea(state = null) {
|