@iola_adm/iola-cli 0.1.87 → 0.1.88

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iola_adm/iola-cli",
3
- "version": "0.1.87",
3
+ "version": "0.1.88",
4
4
  "description": "CLI и AI-агент городского округа Йошкар-Ола.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/adm-iola/iola-cli#readme",
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: "/uninstall --yes", description: "удалить локальные данные iola-cli" },
301
+ { command: "/delete --yes", description: "удалить локальные данные iola-cli" },
302
+ { command: "/uninstall --yes", description: "алиас для /delete --yes" },
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,6 +581,7 @@ Usage:
579
581
  iola config set api.baseUrl URL
580
582
  iola config set api.mcpBaseUrl URL
581
583
  iola config reset
584
+ iola delete --yes
582
585
  iola uninstall --yes
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]
@@ -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],
@@ -48,6 +48,7 @@ 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 --yes", "commands");
51
52
  assertIncludes(commands, "iola uninstall --yes", "commands");
52
53
  assertNotIncludes(commands, "Госуслуг", "commands");
53
54
  assertNotIncludes(commands, "gosuslugi", "commands");
@@ -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");