@usex/mikrotik-mcp 3.9.1 → 3.11.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
@@ -1122,8 +1122,7 @@ function indicatesFailure(text) {
1122
1122
  // src/core/routeros-parse.ts
1123
1123
  function parseKeyValues(text) {
1124
1124
  const out = {};
1125
- for (const line of text.split(`
1126
- `)) {
1125
+ for (const line of text.split(/\r?\n/)) {
1127
1126
  const m = line.match(/^\s*([A-Za-z][\w-]*):\s?(.*)$/);
1128
1127
  if (!m)
1129
1128
  continue;
@@ -1368,8 +1367,7 @@ function parseColumnarRecords(lines) {
1368
1367
  return rows;
1369
1368
  }
1370
1369
  function parseRecords(text) {
1371
- const lines = text.split(`
1372
- `).filter((l) => !/^\s*(Flags|Columns):/.test(l));
1370
+ const lines = text.split(/\r?\n/).filter((l) => !/^\s*(Flags|Columns):/.test(l));
1373
1371
  const hasKv = /[A-Za-z][\w.-]*=/.test(text);
1374
1372
  if (hasKv && lines.some((l) => INDEX_LINE.test(l))) {
1375
1373
  const rows = parseDetailRecords(lines);
@@ -23306,7 +23304,7 @@ function registerPrompts(server) {
23306
23304
  // package.json
23307
23305
  var package_default = {
23308
23306
  name: "@usex/mikrotik-mcp",
23309
- version: "3.9.1",
23307
+ version: "3.11.0",
23310
23308
  description: "MCP server for MikroTik RouterOS \u2014 660+ tools over SSH for firewall, NAT, routing, DHCP, DNS, WireGuard, wireless, QoS and more.",
23311
23309
  keywords: [
23312
23310
  "ai",
package/dist/index.js CHANGED
@@ -1107,8 +1107,7 @@ function indicatesFailure(text) {
1107
1107
  // src/core/routeros-parse.ts
1108
1108
  function parseKeyValues(text) {
1109
1109
  const out = {};
1110
- for (const line of text.split(`
1111
- `)) {
1110
+ for (const line of text.split(/\r?\n/)) {
1112
1111
  const m = line.match(/^\s*([A-Za-z][\w-]*):\s?(.*)$/);
1113
1112
  if (!m)
1114
1113
  continue;
@@ -1292,8 +1291,7 @@ function parseColumnarRecords(lines) {
1292
1291
  return rows;
1293
1292
  }
1294
1293
  function parseRecords(text) {
1295
- const lines = text.split(`
1296
- `).filter((l) => !/^\s*(Flags|Columns):/.test(l));
1294
+ const lines = text.split(/\r?\n/).filter((l) => !/^\s*(Flags|Columns):/.test(l));
1297
1295
  const hasKv = /[A-Za-z][\w.-]*=/.test(text);
1298
1296
  if (hasKv && lines.some((l) => INDEX_LINE.test(l))) {
1299
1297
  const rows = parseDetailRecords(lines);
@@ -21709,7 +21707,7 @@ function selectToolModules(filter = {}, catalog = moduleCatalog) {
21709
21707
  // package.json
21710
21708
  var package_default = {
21711
21709
  name: "@usex/mikrotik-mcp",
21712
- version: "3.9.1",
21710
+ version: "3.11.0",
21713
21711
  description: "MCP server for MikroTik RouterOS \u2014 660+ tools over SSH for firewall, NAT, routing, DHCP, DNS, WireGuard, wireless, QoS and more.",
21714
21712
  keywords: [
21715
21713
  "ai",