@ai-ecoverse/mcpcat 0.28.1 → 0.28.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.
@@ -18429,13 +18429,18 @@ function missingClientArg(parsed) {
18429
18429
  if (!parsed.target) return `${verb} requires a target`;
18430
18430
  return void 0;
18431
18431
  }
18432
+ function beforeSeparator(args2) {
18433
+ const end = args2.indexOf("--");
18434
+ return end < 0 ? args2 : args2.slice(0, end);
18435
+ }
18432
18436
  async function runInner(platform2, version, args2) {
18433
- if (args2.includes("--version") || args2.includes("-V")) {
18437
+ const lead = beforeSeparator(args2);
18438
+ if (lead.includes("--version") || lead.includes("-V")) {
18434
18439
  await platform2.write(1, `${version}
18435
18440
  `);
18436
18441
  return 0;
18437
18442
  }
18438
- if (args2.includes("--help") || args2.includes("-h") || args2[0] === "help") {
18443
+ if (lead.includes("--help") || lead.includes("-h") || args2[0] === "help") {
18439
18444
  return help(platform2, version, args2);
18440
18445
  }
18441
18446
  if (args2.length === 0) {
@@ -19509,5 +19514,5 @@ try {
19509
19514
  });
19510
19515
  } catch {
19511
19516
  }
19512
- var code = await run(platform, "0.28.1", args);
19517
+ var code = await run(platform, "0.28.2", args);
19513
19518
  process.exit(code);
@@ -17946,13 +17946,18 @@ function missingClientArg(parsed) {
17946
17946
  if (!parsed.target) return `${verb} requires a target`;
17947
17947
  return void 0;
17948
17948
  }
17949
+ function beforeSeparator(args) {
17950
+ const end = args.indexOf("--");
17951
+ return end < 0 ? args : args.slice(0, end);
17952
+ }
17949
17953
  async function runInner(platform2, version, args) {
17950
- if (args.includes("--version") || args.includes("-V")) {
17954
+ const lead = beforeSeparator(args);
17955
+ if (lead.includes("--version") || lead.includes("-V")) {
17951
17956
  await platform2.write(1, `${version}
17952
17957
  `);
17953
17958
  return 0;
17954
17959
  }
17955
- if (args.includes("--help") || args.includes("-h") || args[0] === "help") {
17960
+ if (lead.includes("--help") || lead.includes("-h") || args[0] === "help") {
17956
17961
  return help(platform2, version, args);
17957
17962
  }
17958
17963
  if (args.length === 0) {
@@ -18736,7 +18741,7 @@ async function main(ctx) {
18736
18741
  packageDir: "/node_modules/@ai-ecoverse/mcpcat"
18737
18742
  });
18738
18743
  const args = ctx.argv.slice(1);
18739
- return run(platform2, "0.28.1", args);
18744
+ return run(platform2, "0.28.2", args);
18740
18745
  }
18741
18746
  export {
18742
18747
  main as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/mcpcat",
3
- "version": "0.28.1",
3
+ "version": "0.28.2",
4
4
  "description": "A curl for the Model Context Protocol",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",