@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/README.md +4 -4
- package/dist/cli.js +3015 -547
- package/dist/index.d.ts +8 -3
- package/dist/index.js +1 -1
- package/dist/shared/{library-7nnp4ntt.js → library-2m4as43g.js} +1 -1
- package/dist/shared/{library-ph2n6fjm.js → library-akf94mf2.js} +1 -1
- package/dist/shared/{library-53nrt1xj.js → library-g661a57q.js} +1 -1
- package/dist/shared/{library-039808cq.js → library-hykdpvnj.js} +1 -1
- package/dist/shared/{library-qt6rx1ht.js → library-ttgvk8a6.js} +2913 -523
- package/dist/ui/observability.html +73 -73
- package/package.json +12 -12
- package/schemas/README.md +1 -1
- package/schemas/devtools-manifest.json +16 -2
- package/schemas/tool-catalog.json +34 -4
- package/schemas/tools/set_safe_mode_timeout.json +21 -0
- /package/dist/shared/{cli-y746q0cw.js → cli-3kxktenb.js} +0 -0
- /package/dist/shared/{cli-ncmy3wt1.js → cli-b7dr5556.js} +0 -0
- /package/dist/shared/{cli-92qtg8n3.js → cli-dytg82ck.js} +0 -0
- /package/dist/shared/{cli-8h5ye8pv.js → cli-rcgz8540.js} +0 -0
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,
|
|
363
|
-
*
|
|
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
|
|
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-
|
|
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) {
|