mmt-mcp 1.45.0-pre → 1.45.1-pre

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/server.cjs CHANGED
@@ -13865,7 +13865,9 @@ function formatHtmlBody(html) {
13865
13865
 
13866
13866
  // ../core/src/expectOperatorYaml.ts
13867
13867
  var YAML_UNSAFE_OPS = opsList.filter((op) => op.startsWith("!") || op.startsWith(">")).sort((a, b) => b.length - a.length);
13868
+ var EMIT_UNQUOTE_OPS = [...opsList].sort((a, b) => b.length - a.length);
13868
13869
  var FUZZY_PERCENT_OP_RE = /^[>](?:0|[1-9][0-9]?|100)%(?:\s|$)/;
13870
+ var EMIT_FUZZY_PERCENT_OP_RE = /^[<>](?:0|[1-9][0-9]?|100)%(?:\s|$)/;
13869
13871
  var TIME_TILDE_OP_RE = new RegExp(`^${TIME_OPERATOR_PATTERN}(?:\\s|$)`);
13870
13872
  var EXACT_TIME_TILDE_OP_RE = new RegExp(`^${TIME_OPERATOR_PATTERN}$`);
13871
13873
  var MAP_ENTRY_RE = /^([^:]+?:\s+)(.+)$/;
@@ -13899,7 +13901,6 @@ function quoteExpectOperators(yaml) {
13899
13901
  }
13900
13902
  return joinLines(lines, eol);
13901
13903
  }
13902
- var YAML_BANG_UNSAFE_OPS = YAML_UNSAFE_OPS.filter((op) => op.startsWith("!"));
13903
13904
  var QUOTED_SCALAR_RE = /^"((?:\\.|[^"\\])*)"$/;
13904
13905
  function emitUnquotedOperators(yaml) {
13905
13906
  const eol = detectNewline(yaml);
@@ -13936,14 +13937,14 @@ function unescapeQuotedScalar(value) {
13936
13937
  }
13937
13938
  return match[1].replace(/\\"/g, '"').replace(/\\\\/g, "\\");
13938
13939
  }
13939
- function needsBangOperatorQuoting(value) {
13940
+ function canEmitUnquotedOperatorValue(value) {
13940
13941
  if (/^["']/.test(value)) {
13941
13942
  return false;
13942
13943
  }
13943
- if (FUZZY_PERCENT_OP_RE.test(value) || TIME_TILDE_OP_RE.test(value)) {
13944
+ if (EMIT_FUZZY_PERCENT_OP_RE.test(value) || TIME_TILDE_OP_RE.test(value)) {
13944
13945
  return true;
13945
13946
  }
13946
- for (const op of YAML_BANG_UNSAFE_OPS) {
13947
+ for (const op of EMIT_UNQUOTE_OPS) {
13947
13948
  if (value === op || value.startsWith(op + " ")) {
13948
13949
  return true;
13949
13950
  }
@@ -13954,10 +13955,10 @@ function canEmitUnquotedExactOperator(value) {
13954
13955
  if (/^["']/.test(value)) {
13955
13956
  return false;
13956
13957
  }
13957
- if (EXACT_FUZZY_PERCENT_OP_RE.test(value) || EXACT_TIME_TILDE_OP_RE.test(value)) {
13958
+ if (EXACT_EMIT_FUZZY_PERCENT_OP_RE.test(value) || EXACT_TIME_TILDE_OP_RE.test(value)) {
13958
13959
  return true;
13959
13960
  }
13960
- return YAML_BANG_UNSAFE_OPS.some((op) => op === value);
13961
+ return EMIT_UNQUOTE_OPS.some((op) => op === value);
13961
13962
  }
13962
13963
  function unquoteExpectLineIfNeeded(line) {
13963
13964
  const trimmed = line.trimStart();
@@ -13966,7 +13967,7 @@ function unquoteExpectLineIfNeeded(line) {
13966
13967
  if (mapMatch) {
13967
13968
  const [, prefix, value] = mapMatch;
13968
13969
  const inner = unescapeQuotedScalar(value.trim());
13969
- if (inner !== void 0 && needsBangOperatorQuoting(inner)) {
13970
+ if (inner !== void 0 && canEmitUnquotedOperatorValue(inner)) {
13970
13971
  return leadingWS + prefix + inner;
13971
13972
  }
13972
13973
  return line;
@@ -13975,7 +13976,7 @@ function unquoteExpectLineIfNeeded(line) {
13975
13976
  if (arrayMatch) {
13976
13977
  const [, prefix, value] = arrayMatch;
13977
13978
  const inner = unescapeQuotedScalar(value.trim());
13978
- if (inner !== void 0 && needsBangOperatorQuoting(inner)) {
13979
+ if (inner !== void 0 && canEmitUnquotedOperatorValue(inner)) {
13979
13980
  return leadingWS + prefix + inner;
13980
13981
  }
13981
13982
  }
@@ -14034,6 +14035,7 @@ function needsOperatorQuoting(value) {
14034
14035
  return false;
14035
14036
  }
14036
14037
  var EXACT_FUZZY_PERCENT_OP_RE = /^[>](?:0|[1-9][0-9]?|100)%$/;
14038
+ var EXACT_EMIT_FUZZY_PERCENT_OP_RE = /^[<>](?:0|[1-9][0-9]?|100)%$/;
14037
14039
  function needsExactOperatorQuoting(value) {
14038
14040
  if (/^["']/.test(value)) {
14039
14041
  return false;
package/dist/server.js CHANGED
@@ -13865,7 +13865,9 @@ function formatHtmlBody(html) {
13865
13865
 
13866
13866
  // ../core/src/expectOperatorYaml.ts
13867
13867
  var YAML_UNSAFE_OPS = opsList.filter((op) => op.startsWith("!") || op.startsWith(">")).sort((a, b) => b.length - a.length);
13868
+ var EMIT_UNQUOTE_OPS = [...opsList].sort((a, b) => b.length - a.length);
13868
13869
  var FUZZY_PERCENT_OP_RE = /^[>](?:0|[1-9][0-9]?|100)%(?:\s|$)/;
13870
+ var EMIT_FUZZY_PERCENT_OP_RE = /^[<>](?:0|[1-9][0-9]?|100)%(?:\s|$)/;
13869
13871
  var TIME_TILDE_OP_RE = new RegExp(`^${TIME_OPERATOR_PATTERN}(?:\\s|$)`);
13870
13872
  var EXACT_TIME_TILDE_OP_RE = new RegExp(`^${TIME_OPERATOR_PATTERN}$`);
13871
13873
  var MAP_ENTRY_RE = /^([^:]+?:\s+)(.+)$/;
@@ -13899,7 +13901,6 @@ function quoteExpectOperators(yaml) {
13899
13901
  }
13900
13902
  return joinLines(lines, eol);
13901
13903
  }
13902
- var YAML_BANG_UNSAFE_OPS = YAML_UNSAFE_OPS.filter((op) => op.startsWith("!"));
13903
13904
  var QUOTED_SCALAR_RE = /^"((?:\\.|[^"\\])*)"$/;
13904
13905
  function emitUnquotedOperators(yaml) {
13905
13906
  const eol = detectNewline(yaml);
@@ -13936,14 +13937,14 @@ function unescapeQuotedScalar(value) {
13936
13937
  }
13937
13938
  return match[1].replace(/\\"/g, '"').replace(/\\\\/g, "\\");
13938
13939
  }
13939
- function needsBangOperatorQuoting(value) {
13940
+ function canEmitUnquotedOperatorValue(value) {
13940
13941
  if (/^["']/.test(value)) {
13941
13942
  return false;
13942
13943
  }
13943
- if (FUZZY_PERCENT_OP_RE.test(value) || TIME_TILDE_OP_RE.test(value)) {
13944
+ if (EMIT_FUZZY_PERCENT_OP_RE.test(value) || TIME_TILDE_OP_RE.test(value)) {
13944
13945
  return true;
13945
13946
  }
13946
- for (const op of YAML_BANG_UNSAFE_OPS) {
13947
+ for (const op of EMIT_UNQUOTE_OPS) {
13947
13948
  if (value === op || value.startsWith(op + " ")) {
13948
13949
  return true;
13949
13950
  }
@@ -13954,10 +13955,10 @@ function canEmitUnquotedExactOperator(value) {
13954
13955
  if (/^["']/.test(value)) {
13955
13956
  return false;
13956
13957
  }
13957
- if (EXACT_FUZZY_PERCENT_OP_RE.test(value) || EXACT_TIME_TILDE_OP_RE.test(value)) {
13958
+ if (EXACT_EMIT_FUZZY_PERCENT_OP_RE.test(value) || EXACT_TIME_TILDE_OP_RE.test(value)) {
13958
13959
  return true;
13959
13960
  }
13960
- return YAML_BANG_UNSAFE_OPS.some((op) => op === value);
13961
+ return EMIT_UNQUOTE_OPS.some((op) => op === value);
13961
13962
  }
13962
13963
  function unquoteExpectLineIfNeeded(line) {
13963
13964
  const trimmed = line.trimStart();
@@ -13966,7 +13967,7 @@ function unquoteExpectLineIfNeeded(line) {
13966
13967
  if (mapMatch) {
13967
13968
  const [, prefix, value] = mapMatch;
13968
13969
  const inner = unescapeQuotedScalar(value.trim());
13969
- if (inner !== void 0 && needsBangOperatorQuoting(inner)) {
13970
+ if (inner !== void 0 && canEmitUnquotedOperatorValue(inner)) {
13970
13971
  return leadingWS + prefix + inner;
13971
13972
  }
13972
13973
  return line;
@@ -13975,7 +13976,7 @@ function unquoteExpectLineIfNeeded(line) {
13975
13976
  if (arrayMatch) {
13976
13977
  const [, prefix, value] = arrayMatch;
13977
13978
  const inner = unescapeQuotedScalar(value.trim());
13978
- if (inner !== void 0 && needsBangOperatorQuoting(inner)) {
13979
+ if (inner !== void 0 && canEmitUnquotedOperatorValue(inner)) {
13979
13980
  return leadingWS + prefix + inner;
13980
13981
  }
13981
13982
  }
@@ -14034,6 +14035,7 @@ function needsOperatorQuoting(value) {
14034
14035
  return false;
14035
14036
  }
14036
14037
  var EXACT_FUZZY_PERCENT_OP_RE = /^[>](?:0|[1-9][0-9]?|100)%$/;
14038
+ var EXACT_EMIT_FUZZY_PERCENT_OP_RE = /^[<>](?:0|[1-9][0-9]?|100)%$/;
14037
14039
  function needsExactOperatorQuoting(value) {
14038
14040
  if (/^["']/.test(value)) {
14039
14041
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mmt-mcp",
3
- "version": "1.45.0-pre",
3
+ "version": "1.45.1-pre",
4
4
  "description": "Multimeter MCP server for Cursor, Copilot, and Claude. Scaffold, validate, format, and run YAML .mmt API tests. Do not invent .mmt syntax.",
5
5
  "mcpName": "io.github.mshobeyri/multimeter",
6
6
  "type": "module",