@usex/mikrotik-mcp 6.1.0 → 6.3.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/index.d.ts CHANGED
@@ -359,8 +359,8 @@ declare class SafeModeManager {
359
359
  private active;
360
360
  /**
361
361
  * Set when the persistent shell drops WHILE Safe Mode was active — i.e. the
362
- * session died before an explicit commit, so RouterOS has already auto-reverted
363
- * every staged change. Distinguishes "never enabled / cleanly closed" from
362
+ * session died before an explicit commit, with an unverified outcome.
363
+ * Distinguishes "never enabled / cleanly closed" from
364
364
  * "died with your changes still pending" so commit/status can report the revert
365
365
  * instead of a reassuring false success. Cleared on the next enable().
366
366
  */
@@ -371,9 +371,14 @@ declare class SafeModeManager {
371
371
  private probeSequence;
372
372
  /** Serializes channel access so concurrent tool calls don't interleave I/O. */
373
373
  private queue;
374
+ private commandTimeoutMs;
375
+ private idleTimeoutMs;
376
+ /** Applies to subsequent commands, never extends an already-running command. */
377
+ setTimeouts(commandTimeoutMs: number, idleTimeoutMs: number): string;
374
378
  /** The device this Safe Mode session belongs to (a configured device name). */
375
379
  constructor(deviceName: string);
376
380
  get isActive(): boolean;
381
+ get requiresRecovery(): boolean;
377
382
  /** Run `fn` exclusively — the persistent channel must not be shared mid-command. */
378
383
  private lock;
379
384
  /** Open a persistent SSH shell and activate MikroTik Safe Mode. */
@@ -400,7 +405,7 @@ declare class SafeModeManager {
400
405
  * Fired by the persistent shell's `close`/`error` events. Arrow-bound so the
401
406
  * same reference is used for add/removeListener. Acts ONLY when we still think
402
407
  * Safe Mode is active — a drop then means the session died with staged changes
403
- * pending, which RouterOS has auto-reverted, so we flag it and tear the zombie
408
+ * pending and an unverified rollback, so we flag it and tear the zombie
404
409
  * handles down. A close during our own cleanup() (which clears `active` first)
405
410
  * is a no-op: it is an intentional teardown, not a lost session.
406
411
  */
package/dist/index.js CHANGED
@@ -70,7 +70,7 @@ import {
70
70
  updateSummaryLine,
71
71
  allToolModules2,
72
72
  selectToolModules2
73
- } from "./shared/library-qt6rx1ht.js";
73
+ } from "./shared/library-ttgvk8a6.js";
74
74
 
75
75
  // node_modules/ajv/dist/compile/codegen/code.js
76
76
  var require_code = __commonJS(function(exports) {
@@ -3,7 +3,7 @@ import {
3
3
  moduleCatalog2,
4
4
  allToolModules2,
5
5
  selectToolModules2
6
- } from "./library-qt6rx1ht.js";
6
+ } from "./library-ttgvk8a6.js";
7
7
  export {
8
8
  allToolModules2 as allToolModules,
9
9
  moduleCatalog2 as moduleCatalog,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  openSnapshotStore2
4
- } from "./library-qt6rx1ht.js";
4
+ } from "./library-ttgvk8a6.js";
5
5
  export {
6
6
  openSnapshotStore2 as openSnapshotStore
7
7
  };
@@ -11,7 +11,7 @@ import {
11
11
  MikrotikConfigSchema2,
12
12
  getConfigSource2,
13
13
  loadConfig2
14
- } from "./library-qt6rx1ht.js";
14
+ } from "./library-ttgvk8a6.js";
15
15
  export {
16
16
  DEFAULT_BACKUP_DIR2 as DEFAULT_BACKUP_DIR,
17
17
  DEFAULT_DASHBOARD_DB2 as DEFAULT_DASHBOARD_DB,
@@ -4,7 +4,7 @@ import {
4
4
  normalizeExport2,
5
5
  contentSha2,
6
6
  countLines2
7
- } from "./library-qt6rx1ht.js";
7
+ } from "./library-ttgvk8a6.js";
8
8
  export {
9
9
  contentSha2 as contentSha,
10
10
  countLines2 as countLines,