@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 CHANGED
@@ -106,7 +106,7 @@ import {
106
106
  updateAaaEntity,
107
107
  updateSummaryLine,
108
108
  writeBackup
109
- } from "./shared/cli-jq168zrj.js";
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
- s3: cfg.s3
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 timeout
312
- * elapses. Defaults to "any RouterOS prompt appeared". Mode transitions pass a
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-21t1cncr.js";
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";