@usex/mikrotik-mcp 3.59.0 → 4.0.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 +7 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +1 -1
- package/dist/shared/{cli-jq168zrj.js → cli-athwegwy.js} +230 -126
- package/dist/shared/{cli-2dyvnv9v.js → cli-cjrk8g04.js} +1 -1
- package/dist/shared/{library-0zd2tej9.js → library-4fpy49qb.js} +1 -1
- package/dist/shared/{library-21t1cncr.js → library-f5kwsqv2.js} +230 -126
- package/dist/ui/aaa.html +1 -1
- package/dist/ui/connected-devices.html +1 -1
- package/dist/ui/dashboard.html +1 -1
- package/dist/ui/firewall-audit.html +1 -1
- package/dist/ui/firewall.html +1 -1
- package/dist/ui/interfaces.html +1 -1
- package/dist/ui/observability.html +47 -47
- package/dist/ui/records.html +1 -1
- package/package.json +19 -16
package/dist/cli.js
CHANGED
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
updateAaaEntity,
|
|
107
107
|
updateSummaryLine,
|
|
108
108
|
writeBackup
|
|
109
|
-
} from "./shared/cli-
|
|
109
|
+
} from "./shared/cli-athwegwy.js";
|
|
110
110
|
|
|
111
111
|
// src/cli.ts
|
|
112
112
|
import { existsSync as existsSync2 } from "fs";
|
|
@@ -1564,9 +1564,14 @@ function configPayload() {
|
|
|
1564
1564
|
devices: cfg.devices,
|
|
1565
1565
|
defaultDevice: cfg.defaultDevice,
|
|
1566
1566
|
mcp: cfg.mcp,
|
|
1567
|
+
s3: cfg.s3,
|
|
1567
1568
|
dashboard: cfg.dashboard,
|
|
1569
|
+
ssh: cfg.ssh,
|
|
1568
1570
|
readOnly: cfg.readOnly,
|
|
1569
|
-
|
|
1571
|
+
tools: cfg.tools,
|
|
1572
|
+
memory: cfg.memory,
|
|
1573
|
+
backupDir: cfg.backupDir,
|
|
1574
|
+
disableUpdateCheck: cfg.disableUpdateCheck
|
|
1570
1575
|
});
|
|
1571
1576
|
}
|
|
1572
1577
|
function sseResponse(transportLabel) {
|
package/dist/index.d.ts
CHANGED
|
@@ -308,10 +308,20 @@ declare class SafeModeManager {
|
|
|
308
308
|
rollback(): Promise<string>;
|
|
309
309
|
status(): string;
|
|
310
310
|
/**
|
|
311
|
-
* Read from the channel until `isDone(cleaned)` is satisfied or the
|
|
312
|
-
*
|
|
311
|
+
* Read from the channel until `isDone(cleaned)` is satisfied or the shell goes
|
|
312
|
+
* SILENT. Defaults to "any RouterOS prompt appeared". Mode transitions pass a
|
|
313
313
|
* stricter predicate so they wait for the prompt that reflects the NEW state
|
|
314
314
|
* (safe-mode marker present/absent), not merely the first prompt-shaped line.
|
|
315
|
+
*
|
|
316
|
+
* The timeout is an IDLE timeout, not a total budget: every data chunk resets
|
|
317
|
+
* it, so a legitimately slow-but-streaming command (`/terse` on a large
|
|
318
|
+
* config can emit for tens of seconds) never trips it — only a genuine wedge,
|
|
319
|
+
* where no byte has arrived for `idleMs`, does. A separate hard cap (`hardCapMs`)
|
|
320
|
+
* bounds the pathological "dribbles a byte forever" case so the read can't hang
|
|
321
|
+
* indefinitely. Either expiry resolves with `timedOut: true` so callers can tell
|
|
322
|
+
* "the prompt appeared" from "the shell stopped answering" — the latter means the
|
|
323
|
+
* interactive Safe-Mode session is wedged and must abort rather than letting every
|
|
324
|
+
* subsequent command burn its own timeout.
|
|
315
325
|
*/
|
|
316
326
|
private readUntilPrompt;
|
|
317
327
|
/**
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
selectToolModules,
|
|
30
30
|
setConfig,
|
|
31
31
|
updateSummaryLine
|
|
32
|
-
} from "./shared/library-
|
|
32
|
+
} from "./shared/library-f5kwsqv2.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";
|