@iola_adm/iola-cli 0.1.54 → 0.1.56
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
package/src/cli.js
CHANGED
|
@@ -1285,9 +1285,13 @@ function printSlashMenu(filter = "", options = {}) {
|
|
|
1285
1285
|
|
|
1286
1286
|
function getSlashCommandMatches(filter = "") {
|
|
1287
1287
|
const normalized = String(filter || "").replace(/^\//, "").toLocaleLowerCase("ru-RU");
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1288
|
+
if (!normalized) return SLASH_COMMANDS;
|
|
1289
|
+
const commandPrefix = SLASH_COMMANDS.filter((item) => item.command.toLocaleLowerCase("ru-RU").startsWith(`/${normalized}`));
|
|
1290
|
+
if (commandPrefix.length > 0) return commandPrefix;
|
|
1291
|
+
const commandWordPrefix = SLASH_COMMANDS.filter((item) =>
|
|
1292
|
+
item.command.toLocaleLowerCase("ru-RU").split(/\s+/).some((part) => part.replace(/^\//, "").startsWith(normalized)));
|
|
1293
|
+
if (commandWordPrefix.length > 0) return commandWordPrefix;
|
|
1294
|
+
return SLASH_COMMANDS.filter((item) => item.description.toLocaleLowerCase("ru-RU").startsWith(normalized));
|
|
1291
1295
|
}
|
|
1292
1296
|
|
|
1293
1297
|
function updateSlashState(state) {
|
|
@@ -6933,9 +6937,10 @@ async function onboard(args = []) {
|
|
|
6933
6937
|
}
|
|
6934
6938
|
}
|
|
6935
6939
|
|
|
6936
|
-
const components = options.yes ? ["workspace", "policy", "ollama", "openai", "openrouter", "codex", "codex-mcp", "index"] : await chooseOnboardComponents();
|
|
6940
|
+
const components = options.yes ? ["workspace", "policy", "ollama", "openai", "openrouter", "codex", "codex-mcp", "archive", "index"] : await chooseOnboardComponents();
|
|
6937
6941
|
if (components.includes("workspace")) await handleWorkspace(["init"]);
|
|
6938
6942
|
if (components.includes("policy")) await handlePolicy(["use", "analyst"]);
|
|
6943
|
+
if (components.includes("archive")) await ensureArchiveTool({ install: true });
|
|
6939
6944
|
if (components.includes("ollama")) {
|
|
6940
6945
|
await installOllamaIfMissing();
|
|
6941
6946
|
await setupOllama(["--yes"]);
|
|
@@ -6982,9 +6987,10 @@ async function chooseOnboardComponents() {
|
|
|
6982
6987
|
console.log("5. OpenRouter API");
|
|
6983
6988
|
console.log("6. Codex CLI");
|
|
6984
6989
|
console.log("7. MCP для Codex");
|
|
6985
|
-
console.log("8.
|
|
6986
|
-
console.log("9.
|
|
6987
|
-
console.log("10.
|
|
6990
|
+
console.log("8. 7-Zip / архивы");
|
|
6991
|
+
console.log("9. Индекс локальных документов");
|
|
6992
|
+
console.log("10. Browser runtime");
|
|
6993
|
+
console.log("11. Личное подключение Госуслуг");
|
|
6988
6994
|
console.log("");
|
|
6989
6995
|
const rl = readline.createInterface({ input, output });
|
|
6990
6996
|
try {
|
|
@@ -6998,9 +7004,10 @@ async function chooseOnboardComponents() {
|
|
|
6998
7004
|
5: "openrouter",
|
|
6999
7005
|
6: "codex",
|
|
7000
7006
|
7: "codex-mcp",
|
|
7001
|
-
8: "
|
|
7002
|
-
9: "
|
|
7003
|
-
10: "
|
|
7007
|
+
8: "archive",
|
|
7008
|
+
9: "index",
|
|
7009
|
+
10: "browser",
|
|
7010
|
+
11: "gosuslugi",
|
|
7004
7011
|
};
|
|
7005
7012
|
return [...selected].map((item) => map[item] || item).filter(Boolean);
|
|
7006
7013
|
} finally {
|
|
@@ -38,5 +38,8 @@ iola index search "контракт"
|
|
|
38
38
|
iola onboard
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Мастер проверяет Node/npm, SQLite, API
|
|
41
|
+
Мастер проверяет Node/npm, SQLite, API и 7-Zip.
|
|
42
42
|
|
|
43
|
+
В списке компонентов есть отдельный пункт `7-Zip / архивы`. Если выбрать его, CLI установит архиватор сразу из мастера настройки.
|
|
44
|
+
|
|
45
|
+
Мастер также предлагает подключить workspace, policy, Ollama, OpenAI, OpenRouter, Codex CLI, MCP, browser runtime, Госуслуги и индекс локальных документов.
|