@usex/mikrotik-mcp 6.11.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.
Files changed (66) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/index.d.ts +15 -2
  3. package/dist/index.js +1 -1
  4. package/dist/shared/{cli-xkhmxe9c.js → cli-cbs63p0r.js} +334 -142
  5. package/dist/shared/{cli-vrfw477g.js → cli-frg1ynaw.js} +1 -1
  6. package/dist/shared/{cli-p3rfcsg3.js → cli-rbe7s4mf.js} +1 -1
  7. package/dist/shared/{cli-n6heg9q6.js → cli-s9k59ne8.js} +1 -1
  8. package/dist/shared/{cli-xgyy9he1.js → cli-zhfcf33s.js} +1 -1
  9. package/dist/shared/{library-zwdxcca2.js → library-5qaxx124.js} +1 -1
  10. package/dist/shared/{library-y783969c.js → library-9sjsjtd1.js} +1 -1
  11. package/dist/shared/{library-w2eyfdqz.js → library-he7xy22v.js} +332 -141
  12. package/dist/shared/{library-dc9pv2hm.js → library-je5saqvp.js} +1 -1
  13. package/dist/shared/{library-qx9hax3s.js → library-vtet3w1h.js} +1 -1
  14. package/dist/ui/observability.html +69 -69
  15. package/package.json +20 -16
  16. package/schemas/devtools-manifest.json +1 -1
  17. package/schemas/tool-catalog.json +381 -8
  18. package/schemas/tools/apply_plan.json +6 -1
  19. package/schemas/tools/update_bfd_configuration.json +8 -0
  20. package/schemas/tools/update_bgp_connection.json +8 -0
  21. package/schemas/tools/update_bridge.json +8 -0
  22. package/schemas/tools/update_dns_static.json +8 -0
  23. package/schemas/tools/update_dot1x_client.json +8 -0
  24. package/schemas/tools/update_dot1x_server.json +8 -0
  25. package/schemas/tools/update_filter_rule.json +8 -0
  26. package/schemas/tools/update_igmp_proxy_interface.json +8 -0
  27. package/schemas/tools/update_ip_pool.json +8 -0
  28. package/schemas/tools/update_ipsec_peer.json +8 -0
  29. package/schemas/tools/update_ipsec_profile.json +8 -0
  30. package/schemas/tools/update_ipsec_proposal.json +8 -0
  31. package/schemas/tools/update_ipv6_filter_rule.json +8 -0
  32. package/schemas/tools/update_ipv6_mangle_rule.json +8 -0
  33. package/schemas/tools/update_ipv6_nat_rule.json +8 -0
  34. package/schemas/tools/update_ipv6_nd.json +8 -0
  35. package/schemas/tools/update_ipv6_pool.json +8 -0
  36. package/schemas/tools/update_ipv6_raw_rule.json +8 -0
  37. package/schemas/tools/update_mangle_rule.json +8 -0
  38. package/schemas/tools/update_nat_rule.json +8 -0
  39. package/schemas/tools/update_ospf_instance.json +8 -0
  40. package/schemas/tools/update_ovpn_server.json +8 -0
  41. package/schemas/tools/update_ppp_profile.json +8 -0
  42. package/schemas/tools/update_ppp_secret.json +8 -0
  43. package/schemas/tools/update_queue_interface.json +8 -0
  44. package/schemas/tools/update_queue_tree.json +8 -0
  45. package/schemas/tools/update_queue_type.json +8 -0
  46. package/schemas/tools/update_radius_server.json +8 -0
  47. package/schemas/tools/update_rip_instance.json +8 -0
  48. package/schemas/tools/update_route.json +8 -0
  49. package/schemas/tools/update_routing_filter_rule.json +8 -0
  50. package/schemas/tools/update_routing_id.json +8 -0
  51. package/schemas/tools/update_routing_rule.json +8 -0
  52. package/schemas/tools/update_routing_table.json +8 -0
  53. package/schemas/tools/update_rpki_session.json +8 -0
  54. package/schemas/tools/update_simple_queue.json +8 -0
  55. package/schemas/tools/update_switch.json +8 -0
  56. package/schemas/tools/update_switch_port.json +8 -0
  57. package/schemas/tools/update_switch_port_isolation.json +8 -0
  58. package/schemas/tools/update_switch_rule.json +8 -0
  59. package/schemas/tools/update_traffic_monitor.json +8 -0
  60. package/schemas/tools/update_user_manager_user.json +8 -0
  61. package/schemas/tools/update_vlan_interface.json +8 -0
  62. package/schemas/tools/update_wireguard_interface.json +8 -0
  63. package/schemas/tools/update_wireguard_peer.json +8 -0
  64. package/schemas/tools/update_wireless_interface.json +8 -0
  65. package/scripts/service.ts +618 -0
  66. package/scripts/upgrade.ts +7 -0
package/dist/cli.js CHANGED
@@ -350,7 +350,7 @@ import {
350
350
  allToolModules2,
351
351
  ALWAYS_ON_MODULES2,
352
352
  selectToolModules2
353
- } from "./shared/cli-xkhmxe9c.js";
353
+ } from "./shared/cli-cbs63p0r.js";
354
354
 
355
355
  // node_modules/ajv/dist/compile/codegen/code.js
356
356
  var require_code = __commonJS(function(exports) {
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
- /** Keep the session active (no one-shot fallback), but fence a desynchronised shell. */
373
- private uncertain;
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-w2eyfdqz.js";
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) {