@usex/mikrotik-mcp 6.10.0 → 6.12.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 +47 -1078
- package/dist/cli.js +649 -132
- package/dist/index.d.ts +15 -2
- package/dist/index.js +1 -1
- package/dist/shared/{cli-81s63cts.js → cli-cbs63p0r.js} +5477 -5220
- package/dist/shared/{cli-b4kkd56k.js → cli-frg1ynaw.js} +1 -1
- package/dist/shared/{cli-0srgjr3v.js → cli-rbe7s4mf.js} +1 -1
- package/dist/shared/{cli-chcn79z7.js → cli-s9k59ne8.js} +1 -1
- package/dist/shared/{cli-twafzgn3.js → cli-zhfcf33s.js} +1 -1
- package/dist/shared/{library-x66xvb3s.js → library-5qaxx124.js} +1 -1
- package/dist/shared/{library-f89nvhan.js → library-9sjsjtd1.js} +1 -1
- package/dist/shared/{library-thv5s4bs.js → library-he7xy22v.js} +495 -293
- package/dist/shared/{library-sxxt02xq.js → library-je5saqvp.js} +1 -1
- package/dist/shared/{library-2kk6k7zh.js → library-vtet3w1h.js} +1 -1
- package/dist/ui/observability.html +222 -89
- package/package.json +37 -28
- package/schemas/config.schema.json +16 -0
- package/schemas/devtools-manifest.json +1 -1
- package/schemas/tool-catalog.json +416 -9
- package/schemas/tools/apply_plan.json +6 -1
- package/schemas/tools/update_bandwidth_server.json +34 -0
- package/schemas/tools/update_bfd_configuration.json +8 -0
- package/schemas/tools/update_bgp_connection.json +8 -0
- package/schemas/tools/update_bridge.json +8 -0
- package/schemas/tools/update_dns_static.json +8 -0
- package/schemas/tools/update_dot1x_client.json +8 -0
- package/schemas/tools/update_dot1x_server.json +8 -0
- package/schemas/tools/update_filter_rule.json +8 -0
- package/schemas/tools/update_igmp_proxy_interface.json +8 -0
- package/schemas/tools/update_ip_pool.json +8 -0
- package/schemas/tools/update_ipsec_peer.json +8 -0
- package/schemas/tools/update_ipsec_profile.json +8 -0
- package/schemas/tools/update_ipsec_proposal.json +8 -0
- package/schemas/tools/update_ipv6_filter_rule.json +8 -0
- package/schemas/tools/update_ipv6_mangle_rule.json +8 -0
- package/schemas/tools/update_ipv6_nat_rule.json +8 -0
- package/schemas/tools/update_ipv6_nd.json +8 -0
- package/schemas/tools/update_ipv6_pool.json +8 -0
- package/schemas/tools/update_ipv6_raw_rule.json +8 -0
- package/schemas/tools/update_mangle_rule.json +8 -0
- package/schemas/tools/update_nat_rule.json +8 -0
- package/schemas/tools/update_ospf_instance.json +8 -0
- package/schemas/tools/update_ovpn_server.json +8 -0
- package/schemas/tools/update_ppp_profile.json +8 -0
- package/schemas/tools/update_ppp_secret.json +8 -0
- package/schemas/tools/update_queue_interface.json +8 -0
- package/schemas/tools/update_queue_tree.json +8 -0
- package/schemas/tools/update_queue_type.json +8 -0
- package/schemas/tools/update_radius_server.json +8 -0
- package/schemas/tools/update_rip_instance.json +8 -0
- package/schemas/tools/update_route.json +8 -0
- package/schemas/tools/update_routing_filter_rule.json +8 -0
- package/schemas/tools/update_routing_id.json +8 -0
- package/schemas/tools/update_routing_rule.json +8 -0
- package/schemas/tools/update_routing_table.json +8 -0
- package/schemas/tools/update_rpki_session.json +8 -0
- package/schemas/tools/update_simple_queue.json +8 -0
- package/schemas/tools/update_switch.json +8 -0
- package/schemas/tools/update_switch_port.json +8 -0
- package/schemas/tools/update_switch_port_isolation.json +8 -0
- package/schemas/tools/update_switch_rule.json +8 -0
- package/schemas/tools/update_traffic_monitor.json +8 -0
- package/schemas/tools/update_user_manager_user.json +8 -0
- package/schemas/tools/update_vlan_interface.json +8 -0
- package/schemas/tools/update_wireguard_interface.json +8 -0
- package/schemas/tools/update_wireguard_peer.json +8 -0
- package/schemas/tools/update_wireless_interface.json +8 -0
- package/scripts/service.ts +618 -0
- package/scripts/upgrade.ts +7 -0
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,12 @@ interface ToolContext {
|
|
|
35
35
|
* simply never being enabled.
|
|
36
36
|
*/
|
|
37
37
|
restFallback?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Risk preset of the tool that owns this call (set by the registry). The
|
|
40
|
+
* connector uses it to keep READ tools out of an open Safe Mode shell.
|
|
41
|
+
* Unset for internal callers (samplers, dashboard routes).
|
|
42
|
+
*/
|
|
43
|
+
risk?: "READ" | "WRITE" | "WRITE_IDEMPOTENT" | "DESTRUCTIVE" | "DANGEROUS";
|
|
38
44
|
}
|
|
39
45
|
/** How a device command was actually carried. */
|
|
40
46
|
type DeviceTransport = "ssh" | "rest" | "mac-telnet";
|
|
@@ -369,8 +375,8 @@ declare class SafeModeManager {
|
|
|
369
375
|
* instead of a reassuring false success. Cleared on the next enable().
|
|
370
376
|
*/
|
|
371
377
|
private droppedUnexpectedly;
|
|
372
|
-
/**
|
|
373
|
-
private
|
|
378
|
+
/** Why the last session was closed automatically; shown by status() only. */
|
|
379
|
+
private lastClosure;
|
|
374
380
|
/** Distinguish each mode probe from delayed output of an earlier round trip. */
|
|
375
381
|
private probeSequence;
|
|
376
382
|
/** Serializes channel access so concurrent tool calls don't interleave I/O. */
|
|
@@ -382,7 +388,14 @@ declare class SafeModeManager {
|
|
|
382
388
|
/** The device this Safe Mode session belongs to (a configured device name). */
|
|
383
389
|
constructor(deviceName: string);
|
|
384
390
|
get isActive(): boolean;
|
|
391
|
+
/**
|
|
392
|
+
* True after the shell dropped by itself, until that is reported ONCE (by the
|
|
393
|
+
* next write, commit, rollback or enable). It never blocks reads and never
|
|
394
|
+
* needs a restart to clear.
|
|
395
|
+
*/
|
|
385
396
|
get requiresRecovery(): boolean;
|
|
397
|
+
/** Close the session after a failure and remember why, for status(). */
|
|
398
|
+
private closeAfterFailure;
|
|
386
399
|
/** Run `fn` exclusively — the persistent channel must not be shared mid-command. */
|
|
387
400
|
private lock;
|
|
388
401
|
/** Open a persistent SSH shell and activate MikroTik Safe Mode. */
|
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-he7xy22v.js";
|
|
74
74
|
|
|
75
75
|
// node_modules/ajv/dist/compile/codegen/code.js
|
|
76
76
|
var require_code = __commonJS(function(exports) {
|