mmt-mcp 1.44.2-pre → 1.44.3-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.
|
@@ -32,14 +32,14 @@ body:
|
|
|
32
32
|
missing_region: e:region
|
|
33
33
|
literal_token: "e:account_age"
|
|
34
34
|
literal_omit: "omit"
|
|
35
|
-
angle_whole:
|
|
36
|
-
quoted_angle:
|
|
37
|
-
angle_prefix:
|
|
38
|
-
angle_suffix:
|
|
39
|
-
angle_both:
|
|
40
|
-
quoted_curly:
|
|
41
|
-
curly_whole:
|
|
42
|
-
text_slice:
|
|
35
|
+
angle_whole: e:account_age
|
|
36
|
+
quoted_angle: e:account_age
|
|
37
|
+
angle_prefix: asda<<e:account_age>>
|
|
38
|
+
angle_suffix: <<e:account_age>>asas
|
|
39
|
+
angle_both: asda<<e:feature_enabled>>asas
|
|
40
|
+
quoted_curly: e:account_age
|
|
41
|
+
curly_whole: e:plan_label
|
|
42
|
+
text_slice: e:service_url[0:8]
|
|
43
43
|
examples:
|
|
44
44
|
- id: defaults
|
|
45
45
|
title: Check outputs
|
|
@@ -61,4 +61,5 @@ examples:
|
|
|
61
61
|
quoted_curly: =S <<e:account_age>>
|
|
62
62
|
curly_whole: e:plan_label
|
|
63
63
|
text_slice: e:service_url[0:8]
|
|
64
|
-
|
|
64
|
+
|
|
65
|
+
|
package/dist/server.cjs
CHANGED
|
@@ -14766,46 +14766,6 @@ function yamlValueToInputBox(val) {
|
|
|
14766
14766
|
}
|
|
14767
14767
|
return String(val);
|
|
14768
14768
|
}
|
|
14769
|
-
function inputBoxToYamlValue(val) {
|
|
14770
|
-
if (val === null || val === void 0) {
|
|
14771
|
-
return "";
|
|
14772
|
-
}
|
|
14773
|
-
if (typeof val !== "string") {
|
|
14774
|
-
return val;
|
|
14775
|
-
}
|
|
14776
|
-
const t = val.trim();
|
|
14777
|
-
if (t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'")) {
|
|
14778
|
-
const inner = t.slice(1, -1);
|
|
14779
|
-
if (isPlainTokenScalar(inner)) {
|
|
14780
|
-
return wrapLiteralToken(inner);
|
|
14781
|
-
}
|
|
14782
|
-
return inner;
|
|
14783
|
-
}
|
|
14784
|
-
if (t === "omit") {
|
|
14785
|
-
return OMIT_SENTINEL2;
|
|
14786
|
-
}
|
|
14787
|
-
if (t === "null") {
|
|
14788
|
-
return null;
|
|
14789
|
-
}
|
|
14790
|
-
if (t.toLowerCase() === "true") {
|
|
14791
|
-
return true;
|
|
14792
|
-
}
|
|
14793
|
-
if (t.toLowerCase() === "false") {
|
|
14794
|
-
return false;
|
|
14795
|
-
}
|
|
14796
|
-
const num = Number(t);
|
|
14797
|
-
if (!Number.isNaN(num) && t !== "") {
|
|
14798
|
-
return num;
|
|
14799
|
-
}
|
|
14800
|
-
if (t.startsWith("{") && t.endsWith("}") || t.startsWith("[") && t.endsWith("]")) {
|
|
14801
|
-
try {
|
|
14802
|
-
return JSON.parse(t);
|
|
14803
|
-
} catch {
|
|
14804
|
-
return val;
|
|
14805
|
-
}
|
|
14806
|
-
}
|
|
14807
|
-
return val;
|
|
14808
|
-
}
|
|
14809
14769
|
|
|
14810
14770
|
// ../core/src/yamlAstMerge.ts
|
|
14811
14771
|
var import_yaml = require("yaml");
|
|
@@ -15322,16 +15282,9 @@ function formValueToString(value, keepLiteralMarkers = false) {
|
|
|
15322
15282
|
}
|
|
15323
15283
|
return stringifyJsonWithRuntimeTokens(value, false);
|
|
15324
15284
|
}
|
|
15325
|
-
function isNonCanonicalNumberText(text) {
|
|
15326
|
-
if (isLiteralTokenValue(text) || isTokenLikeScalar(text)) {
|
|
15327
|
-
return false;
|
|
15328
|
-
}
|
|
15329
|
-
const typed = inputBoxToYamlValue(text);
|
|
15330
|
-
return typeof typed === "number" && String(typed) !== text;
|
|
15331
|
-
}
|
|
15332
15285
|
function editorFormValue(value) {
|
|
15333
|
-
if (typeof value === "string" &&
|
|
15334
|
-
return value;
|
|
15286
|
+
if (typeof value === "string" && value !== "") {
|
|
15287
|
+
return isLiteralTokenValue(value) ? unwrapLiteralToken(value) : value;
|
|
15335
15288
|
}
|
|
15336
15289
|
if (value === null || typeof value === "number" || typeof value === "boolean" || typeof value === "string") {
|
|
15337
15290
|
return yamlValueToInputBox(value);
|
package/dist/server.js
CHANGED
|
@@ -14766,46 +14766,6 @@ function yamlValueToInputBox(val) {
|
|
|
14766
14766
|
}
|
|
14767
14767
|
return String(val);
|
|
14768
14768
|
}
|
|
14769
|
-
function inputBoxToYamlValue(val) {
|
|
14770
|
-
if (val === null || val === void 0) {
|
|
14771
|
-
return "";
|
|
14772
|
-
}
|
|
14773
|
-
if (typeof val !== "string") {
|
|
14774
|
-
return val;
|
|
14775
|
-
}
|
|
14776
|
-
const t = val.trim();
|
|
14777
|
-
if (t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'")) {
|
|
14778
|
-
const inner = t.slice(1, -1);
|
|
14779
|
-
if (isPlainTokenScalar(inner)) {
|
|
14780
|
-
return wrapLiteralToken(inner);
|
|
14781
|
-
}
|
|
14782
|
-
return inner;
|
|
14783
|
-
}
|
|
14784
|
-
if (t === "omit") {
|
|
14785
|
-
return OMIT_SENTINEL2;
|
|
14786
|
-
}
|
|
14787
|
-
if (t === "null") {
|
|
14788
|
-
return null;
|
|
14789
|
-
}
|
|
14790
|
-
if (t.toLowerCase() === "true") {
|
|
14791
|
-
return true;
|
|
14792
|
-
}
|
|
14793
|
-
if (t.toLowerCase() === "false") {
|
|
14794
|
-
return false;
|
|
14795
|
-
}
|
|
14796
|
-
const num = Number(t);
|
|
14797
|
-
if (!Number.isNaN(num) && t !== "") {
|
|
14798
|
-
return num;
|
|
14799
|
-
}
|
|
14800
|
-
if (t.startsWith("{") && t.endsWith("}") || t.startsWith("[") && t.endsWith("]")) {
|
|
14801
|
-
try {
|
|
14802
|
-
return JSON.parse(t);
|
|
14803
|
-
} catch {
|
|
14804
|
-
return val;
|
|
14805
|
-
}
|
|
14806
|
-
}
|
|
14807
|
-
return val;
|
|
14808
|
-
}
|
|
14809
14769
|
|
|
14810
14770
|
// ../core/src/yamlAstMerge.ts
|
|
14811
14771
|
var import_yaml = require("yaml");
|
|
@@ -15322,16 +15282,9 @@ function formValueToString(value, keepLiteralMarkers = false) {
|
|
|
15322
15282
|
}
|
|
15323
15283
|
return stringifyJsonWithRuntimeTokens(value, false);
|
|
15324
15284
|
}
|
|
15325
|
-
function isNonCanonicalNumberText(text) {
|
|
15326
|
-
if (isLiteralTokenValue(text) || isTokenLikeScalar(text)) {
|
|
15327
|
-
return false;
|
|
15328
|
-
}
|
|
15329
|
-
const typed = inputBoxToYamlValue(text);
|
|
15330
|
-
return typeof typed === "number" && String(typed) !== text;
|
|
15331
|
-
}
|
|
15332
15285
|
function editorFormValue(value) {
|
|
15333
|
-
if (typeof value === "string" &&
|
|
15334
|
-
return value;
|
|
15286
|
+
if (typeof value === "string" && value !== "") {
|
|
15287
|
+
return isLiteralTokenValue(value) ? unwrapLiteralToken(value) : value;
|
|
15335
15288
|
}
|
|
15336
15289
|
if (value === null || typeof value === "number" || typeof value === "boolean" || typeof value === "string") {
|
|
15337
15290
|
return yamlValueToInputBox(value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mmt-mcp",
|
|
3
|
-
"version": "1.44.
|
|
3
|
+
"version": "1.44.3-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",
|