@usex/mikrotik-mcp 5.4.0 → 5.6.0

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/dist/cli.js CHANGED
@@ -238,7 +238,7 @@ import {
238
238
  validatePolicyText,
239
239
  worstSeverity,
240
240
  writeBackup
241
- } from "./shared/cli-cvq8pxvn.js";
241
+ } from "./shared/cli-gyqfq9j6.js";
242
242
 
243
243
  // src/cli.ts
244
244
  import { existsSync as existsSync2 } from "fs";
package/dist/index.d.ts CHANGED
@@ -75,8 +75,15 @@ declare function listDevices(): {
75
75
  };
76
76
  /**
77
77
  * Resolve a (possibly undefined) device name to a concrete, existing config key.
78
- * Accepts a config key OR a device's free-text label; falls back to the default.
79
- * Only resolves to enabled devices.
78
+ * Accepts a config key OR a device's free-text label. An omitted name uses the
79
+ * configured default.
80
+ *
81
+ * FAIL-CLOSED: a name that matches no enabled device THROWS. It must never
82
+ * degrade to the default router — a typo'd or stale device name silently
83
+ * retargeting a write at whichever device happens to be first is the one bug
84
+ * class here that can misconfigure the wrong physical device. `getDevice()`
85
+ * already threw for this, but every caller resolved the name first and then
86
+ * handed the laundered key to `getDevice`, so that guard could never fire.
80
87
  *
81
88
  * Matching is EXACT (key first, then label) — never fuzzy/substring — so a name
82
89
  * like "Ali Home" can never collapse onto a different device such as "home".
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ import {
29
29
  selectToolModules,
30
30
  setConfig,
31
31
  updateSummaryLine
32
- } from "./shared/library-5p5mk963.js";
32
+ } from "./shared/library-135yzct0.js";
33
33
  // src/server.ts
34
34
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
35
35
  import { ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";