@iola_adm/iola-cli 0.1.88 → 0.1.90
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 +3 -7
- package/test/smoke-test.js +2 -7
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -298,8 +298,7 @@ const SLASH_COMMANDS = [
|
|
|
298
298
|
{ command: "/quality", description: "качество данных" },
|
|
299
299
|
{ command: "/views", description: "saved views" },
|
|
300
300
|
{ command: "/config get", description: "конфигурация" },
|
|
301
|
-
{ command: "/delete
|
|
302
|
-
{ command: "/uninstall --yes", description: "алиас для /delete --yes" },
|
|
301
|
+
{ command: "/delete", description: "удалить локальные данные iola-cli" },
|
|
303
302
|
{ command: "/layers", description: "слои данных" },
|
|
304
303
|
{ command: "/data schools --limit 10", description: "данные слоя" },
|
|
305
304
|
{ command: "/schools --limit 10", description: "школы" },
|
|
@@ -391,7 +390,6 @@ const COMMANDS = new Map([
|
|
|
391
390
|
["alias", handleAlias],
|
|
392
391
|
["run", runNaturalLanguage],
|
|
393
392
|
["config", handleConfig],
|
|
394
|
-
["uninstall", handleUninstall],
|
|
395
393
|
["purge", handleUninstall],
|
|
396
394
|
["delete", handleUninstall],
|
|
397
395
|
["banner", showBanner],
|
|
@@ -581,8 +579,7 @@ Usage:
|
|
|
581
579
|
iola config set api.baseUrl URL
|
|
582
580
|
iola config set api.mcpBaseUrl URL
|
|
583
581
|
iola config reset
|
|
584
|
-
iola delete
|
|
585
|
-
iola uninstall --yes
|
|
582
|
+
iola delete
|
|
586
583
|
iola update
|
|
587
584
|
iola ask TEXT [--profile NAME] [--model MODEL] [--tools] [--files] [--plan] [--trace] [--reasoning fast|verify|vote] [--output FILE] [--schema json|table] [--events] [--no-history] [--bare] [--quiet] [--no-color] [--fail-on-empty]
|
|
588
585
|
iola data LAYER [--limit 10] [--search TEXT] [--where FIELD=VALUE] [--columns a,b,c] [--format table|json|csv]
|
|
@@ -1264,7 +1261,6 @@ async function handleAgentLine(line, state) {
|
|
|
1264
1261
|
diff: ["diff", args],
|
|
1265
1262
|
config: ["config", args],
|
|
1266
1263
|
delete: ["delete", args],
|
|
1267
|
-
uninstall: ["uninstall", args],
|
|
1268
1264
|
purge: ["purge", args],
|
|
1269
1265
|
layers: ["layers", args],
|
|
1270
1266
|
data: ["data", args],
|
|
@@ -2195,7 +2191,7 @@ async function handleUninstall(args = []) {
|
|
|
2195
2191
|
console.log("Локальные данные iola-cli удалены.");
|
|
2196
2192
|
console.log("Codex CLI не тронут.");
|
|
2197
2193
|
console.log("Для полной переустановки npm-пакета:");
|
|
2198
|
-
console.log(" npm
|
|
2194
|
+
console.log(" npm remove -g @iola_adm/iola-cli");
|
|
2199
2195
|
console.log(" npm install -g @iola_adm/iola-cli@latest");
|
|
2200
2196
|
}
|
|
2201
2197
|
|
package/test/smoke-test.js
CHANGED
|
@@ -48,8 +48,8 @@ assertIncludes(help, "iola ask", "help");
|
|
|
48
48
|
const commands = await runCli(["commands"]);
|
|
49
49
|
assertIncludes(commands, "iola browser status|install|open|text|html|screenshot|pdf|click|type|eval", "commands");
|
|
50
50
|
assertIncludes(commands, "iola mcp list|status|install|remove|serve [--stdio]", "commands");
|
|
51
|
-
assertIncludes(commands, "iola delete
|
|
52
|
-
|
|
51
|
+
assertIncludes(commands, "iola delete", "commands");
|
|
52
|
+
assertNotIncludes(commands, "iola uninstall", "commands");
|
|
53
53
|
assertNotIncludes(commands, "Госуслуг", "commands");
|
|
54
54
|
assertNotIncludes(commands, "gosuslugi", "commands");
|
|
55
55
|
|
|
@@ -63,11 +63,6 @@ assertIncludes(skills, "open-data", "skills list");
|
|
|
63
63
|
assertIncludes(skills, "reports", "skills list");
|
|
64
64
|
assertNotIncludes(skills, "gosuslugi", "skills list");
|
|
65
65
|
|
|
66
|
-
const uninstallPlan = JSON.parse(await runCli(["uninstall", "--dry-run", "--json"]));
|
|
67
|
-
if (!Array.isArray(uninstallPlan.willDelete) || !uninstallPlan.willKeep.includes("Codex CLI")) {
|
|
68
|
-
throw new Error("uninstall dry-run should list delete targets and keep Codex CLI");
|
|
69
|
-
}
|
|
70
|
-
|
|
71
66
|
const deletePlan = JSON.parse(await runCli(["delete", "--dry-run", "--json"]));
|
|
72
67
|
if (!Array.isArray(deletePlan.willDelete) || !deletePlan.willKeep.includes("Codex CLI")) {
|
|
73
68
|
throw new Error("delete dry-run should list delete targets and keep Codex CLI");
|