@tronsfey/ucli 0.4.0 → 0.4.2

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.
@@ -1,8 +1,10 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from "module";
3
+ const require = __createRequire(import.meta.url);
2
4
  import {
3
5
  __commonJS,
4
6
  __require
5
- } from "./chunk-NNFC34A5.js";
7
+ } from "./chunk-FJU3QOHW.js";
6
8
 
7
9
  // ../../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
8
10
  var require_color_name = __commonJS({
@@ -5246,9 +5248,9 @@ var require_lib = __commonJS({
5246
5248
  }
5247
5249
  });
5248
5250
 
5249
- // ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.0_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/cache.js
5251
+ // ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.1_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/cache.js
5250
5252
  var require_cache = __commonJS({
5251
- "../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.0_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/cache.js"(exports) {
5253
+ "../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.1_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/cache.js"(exports) {
5252
5254
  "use strict";
5253
5255
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
5254
5256
  if (k2 === void 0) k2 = k;
@@ -5332,9 +5334,9 @@ var require_cache = __commonJS({
5332
5334
  }
5333
5335
  });
5334
5336
 
5335
- // ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.0_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/runner/index.js
5337
+ // ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.1_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/runner/index.js
5336
5338
  var require_runner = __commonJS({
5337
- "../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.0_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/runner/index.js"(exports) {
5339
+ "../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.1_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/runner/index.js"(exports) {
5338
5340
  var __importDefault = exports && exports.__importDefault || function(mod) {
5339
5341
  return mod && mod.__esModule ? mod : { "default": mod };
5340
5342
  };
@@ -5457,8 +5459,13 @@ Available tools (${tools.length}):
5457
5459
  console.log(JSON.stringify(data, null, 2));
5458
5460
  }
5459
5461
  function coerceValue(value, type) {
5460
- if (type === "number")
5461
- return Number(value);
5462
+ if (type === "number") {
5463
+ const num = Number(value);
5464
+ if (!Number.isFinite(num)) {
5465
+ throw new Error(`Invalid value for numeric parameter: "${value}"`);
5466
+ }
5467
+ return num;
5468
+ }
5462
5469
  if (type === "boolean")
5463
5470
  return value !== "false" && value !== "0";
5464
5471
  if (type === "array") {
@@ -5527,4 +5534,4 @@ Available tools (${tools.length}):
5527
5534
  }
5528
5535
  });
5529
5536
  export default require_runner();
5530
- //# sourceMappingURL=runner-IBHNUS24.js.map
5537
+ //# sourceMappingURL=runner-GVYIJNHN.js.map