@tronsfey/ucli 0.4.0 → 0.4.1
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/{client-TA5DDDSP.js → client-O6QINOP2.js} +51 -30
- package/dist/{client-TA5DDDSP.js.map → client-O6QINOP2.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{runner-IBHNUS24.js → runner-VTUGJUH7.js} +12 -7
- package/dist/{runner-IBHNUS24.js.map → runner-VTUGJUH7.js.map} +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -428,8 +428,8 @@ ERRORS
|
|
|
428
428
|
|
|
429
429
|
// src/lib/mcp-runner.ts
|
|
430
430
|
async function getMcp2cli() {
|
|
431
|
-
const clientMod = await import("./client-
|
|
432
|
-
const runnerMod = await import("./runner-
|
|
431
|
+
const clientMod = await import("./client-O6QINOP2.js");
|
|
432
|
+
const runnerMod = await import("./runner-VTUGJUH7.js");
|
|
433
433
|
return { createMcpClient: clientMod.createMcpClient, getTools: runnerMod.getTools, runTool: runnerMod.runTool };
|
|
434
434
|
}
|
|
435
435
|
function buildMcpConfig(entry) {
|
|
@@ -5246,9 +5246,9 @@ var require_lib = __commonJS({
|
|
|
5246
5246
|
}
|
|
5247
5247
|
});
|
|
5248
5248
|
|
|
5249
|
-
// ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.
|
|
5249
|
+
// ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.1_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/cache.js
|
|
5250
5250
|
var require_cache = __commonJS({
|
|
5251
|
-
"../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.
|
|
5251
|
+
"../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.1_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/cache.js"(exports) {
|
|
5252
5252
|
"use strict";
|
|
5253
5253
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
5254
5254
|
if (k2 === void 0) k2 = k;
|
|
@@ -5332,9 +5332,9 @@ var require_cache = __commonJS({
|
|
|
5332
5332
|
}
|
|
5333
5333
|
});
|
|
5334
5334
|
|
|
5335
|
-
// ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.
|
|
5335
|
+
// ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.1_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/runner/index.js
|
|
5336
5336
|
var require_runner = __commonJS({
|
|
5337
|
-
"../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.
|
|
5337
|
+
"../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.1_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/runner/index.js"(exports) {
|
|
5338
5338
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
5339
5339
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
5340
5340
|
};
|
|
@@ -5457,8 +5457,13 @@ Available tools (${tools.length}):
|
|
|
5457
5457
|
console.log(JSON.stringify(data, null, 2));
|
|
5458
5458
|
}
|
|
5459
5459
|
function coerceValue(value, type) {
|
|
5460
|
-
if (type === "number")
|
|
5461
|
-
|
|
5460
|
+
if (type === "number") {
|
|
5461
|
+
const num = Number(value);
|
|
5462
|
+
if (!Number.isFinite(num)) {
|
|
5463
|
+
throw new Error(`Invalid value for numeric parameter: "${value}"`);
|
|
5464
|
+
}
|
|
5465
|
+
return num;
|
|
5466
|
+
}
|
|
5462
5467
|
if (type === "boolean")
|
|
5463
5468
|
return value !== "false" && value !== "0";
|
|
5464
5469
|
if (type === "array") {
|
|
@@ -5527,4 +5532,4 @@ Available tools (${tools.length}):
|
|
|
5527
5532
|
}
|
|
5528
5533
|
});
|
|
5529
5534
|
export default require_runner();
|
|
5530
|
-
//# sourceMappingURL=runner-
|
|
5535
|
+
//# sourceMappingURL=runner-VTUGJUH7.js.map
|