@iola_adm/iola-cli 0.1.87 → 0.1.89
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 +8 -2
- package/test/smoke-test.js +7 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -298,7 +298,8 @@ const SLASH_COMMANDS = [
|
|
|
298
298
|
{ command: "/quality", description: "качество данных" },
|
|
299
299
|
{ command: "/views", description: "saved views" },
|
|
300
300
|
{ command: "/config get", description: "конфигурация" },
|
|
301
|
-
{ command: "/
|
|
301
|
+
{ command: "/delete", description: "удалить локальные данные iola-cli" },
|
|
302
|
+
{ command: "/uninstall", description: "алиас для /delete" },
|
|
302
303
|
{ command: "/layers", description: "слои данных" },
|
|
303
304
|
{ command: "/data schools --limit 10", description: "данные слоя" },
|
|
304
305
|
{ command: "/schools --limit 10", description: "школы" },
|
|
@@ -392,6 +393,7 @@ const COMMANDS = new Map([
|
|
|
392
393
|
["config", handleConfig],
|
|
393
394
|
["uninstall", handleUninstall],
|
|
394
395
|
["purge", handleUninstall],
|
|
396
|
+
["delete", handleUninstall],
|
|
395
397
|
["banner", showBanner],
|
|
396
398
|
["agent", startAgent],
|
|
397
399
|
["chat", startAgent],
|
|
@@ -579,7 +581,8 @@ Usage:
|
|
|
579
581
|
iola config set api.baseUrl URL
|
|
580
582
|
iola config set api.mcpBaseUrl URL
|
|
581
583
|
iola config reset
|
|
582
|
-
iola
|
|
584
|
+
iola delete
|
|
585
|
+
iola uninstall
|
|
583
586
|
iola update
|
|
584
587
|
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]
|
|
585
588
|
iola data LAYER [--limit 10] [--search TEXT] [--where FIELD=VALUE] [--columns a,b,c] [--format table|json|csv]
|
|
@@ -1260,6 +1263,9 @@ async function handleAgentLine(line, state) {
|
|
|
1260
1263
|
sync: ["sync", args],
|
|
1261
1264
|
diff: ["diff", args],
|
|
1262
1265
|
config: ["config", args],
|
|
1266
|
+
delete: ["delete", args],
|
|
1267
|
+
uninstall: ["uninstall", args],
|
|
1268
|
+
purge: ["purge", args],
|
|
1263
1269
|
layers: ["layers", args],
|
|
1264
1270
|
data: ["data", args],
|
|
1265
1271
|
schools: ["schools", args],
|
package/test/smoke-test.js
CHANGED
|
@@ -48,7 +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
|
|
51
|
+
assertIncludes(commands, "iola delete", "commands");
|
|
52
|
+
assertIncludes(commands, "iola uninstall", "commands");
|
|
52
53
|
assertNotIncludes(commands, "Госуслуг", "commands");
|
|
53
54
|
assertNotIncludes(commands, "gosuslugi", "commands");
|
|
54
55
|
|
|
@@ -67,4 +68,9 @@ if (!Array.isArray(uninstallPlan.willDelete) || !uninstallPlan.willKeep.includes
|
|
|
67
68
|
throw new Error("uninstall dry-run should list delete targets and keep Codex CLI");
|
|
68
69
|
}
|
|
69
70
|
|
|
71
|
+
const deletePlan = JSON.parse(await runCli(["delete", "--dry-run", "--json"]));
|
|
72
|
+
if (!Array.isArray(deletePlan.willDelete) || !deletePlan.willKeep.includes("Codex CLI")) {
|
|
73
|
+
throw new Error("delete dry-run should list delete targets and keep Codex CLI");
|
|
74
|
+
}
|
|
75
|
+
|
|
70
76
|
console.log("smoke tests passed");
|