@ai-ecoverse/mcpcat 0.17.11 → 0.18.0

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.
@@ -15562,6 +15562,7 @@ Options:
15562
15562
  -v, --verbose Trace on stderr
15563
15563
  --silent Suppress progress
15564
15564
  -o, --output <path> Write result to file
15565
+ --no-input Never prompt (non-TTY implies it)
15565
15566
  -V, --version Print version
15566
15567
  -h, --help Show this help
15567
15568
  `;
@@ -15615,6 +15616,7 @@ function parseFlags(args2) {
15615
15616
  const positional = [];
15616
15617
  let trailingCommand;
15617
15618
  let respondArg;
15619
+ let noInput = false;
15618
15620
  const roots = [];
15619
15621
  let outputPath;
15620
15622
  let noValidate = false;
@@ -15661,6 +15663,8 @@ function parseFlags(args2) {
15661
15663
  timeoutMs = Number(args2[++i]) * 1e3;
15662
15664
  } else if (arg === "--respond" && args2[i + 1]) {
15663
15665
  respondArg = args2[++i];
15666
+ } else if (arg === "--no-input") {
15667
+ noInput = true;
15664
15668
  } else if (arg === "--root" && args2[i + 1]) {
15665
15669
  roots.push(args2[++i]);
15666
15670
  } else if ((arg === "-o" || arg === "--output") && args2[i + 1]) {
@@ -15687,6 +15691,10 @@ function parseFlags(args2) {
15687
15691
  jsonOutput = true;
15688
15692
  } else if (ra === "--no-validate") {
15689
15693
  noValidate = true;
15694
+ } else if (ra === "--no-input") {
15695
+ noInput = true;
15696
+ } else if (ra === "--respond" && rest[j + 1] !== void 0) {
15697
+ respondArg = rest[++j];
15690
15698
  } else if ((ra === "-o" || ra === "--output") && rest[j + 1] !== void 0) {
15691
15699
  outputPath = rest[++j];
15692
15700
  } else if (ra === "--help" || ra === "-h") {
@@ -15716,6 +15724,7 @@ function parseFlags(args2) {
15716
15724
  positional,
15717
15725
  trailingCommand,
15718
15726
  respondArg,
15727
+ noInput,
15719
15728
  roots,
15720
15729
  outputPath,
15721
15730
  noValidate,
@@ -15773,6 +15782,7 @@ function parseArgs(args2) {
15773
15782
  silent: flags.silent,
15774
15783
  noValidate: flags.noValidate,
15775
15784
  respondArg: flags.respondArg,
15785
+ noInput: flags.noInput,
15776
15786
  roots: flags.roots,
15777
15787
  outputPath: flags.outputPath
15778
15788
  };
@@ -16597,7 +16607,7 @@ async function loadRespondData(platform2, respondArg, json) {
16597
16607
  return { exitCode: EXIT_USAGE };
16598
16608
  }
16599
16609
  }
16600
- async function handleInputRequired(platform2, conn, err, respondData, json, redact2) {
16610
+ async function handleInputRequired(platform2, conn, err, respondData, json, redact2, noInput) {
16601
16611
  const parsed2 = JSON.parse(err.requestJson);
16602
16612
  const requestOut = sanitizeJson(JSON.stringify(redactDeep(parsed2, redact2), null, 2));
16603
16613
  const inputReq = parseInputRequest(parsed2.result ?? parsed2);
@@ -16606,7 +16616,7 @@ async function handleInputRequired(platform2, conn, err, respondData, json, reda
16606
16616
  `);
16607
16617
  return EXIT_INPUT_REQUIRED;
16608
16618
  }
16609
- const isTty = platform2.kind === "host" && platform2.isatty(0) && platform2.isatty(2);
16619
+ const isTty = !noInput && platform2.kind === "host" && platform2.isatty(0) && platform2.isatty(2);
16610
16620
  const elicitResult = await handleElicitation(
16611
16621
  redactWrites(platform2, redact2),
16612
16622
  inputReq,
@@ -16776,7 +16786,15 @@ async function runClientVerb(platform2, version, parsed) {
16776
16786
  return termExitCode;
16777
16787
  }
16778
16788
  if (err instanceof InputRequiredError) {
16779
- return await handleInputRequired(platform2, conn, err, respondData, parsed.jsonOutput, redact2);
16789
+ return await handleInputRequired(
16790
+ platform2,
16791
+ conn,
16792
+ err,
16793
+ respondData,
16794
+ parsed.jsonOutput,
16795
+ redact2,
16796
+ parsed.noInput
16797
+ );
16780
16798
  }
16781
16799
  const e = classifyError(err);
16782
16800
  await writeErrRedacted(platform2, parsed.jsonOutput, e.kind, e.msg, redact2);
@@ -17078,5 +17096,5 @@ try {
17078
17096
  });
17079
17097
  } catch {
17080
17098
  }
17081
- var code = await run(platform, "0.17.11", args);
17099
+ var code = await run(platform, "0.18.0", args);
17082
17100
  process.exit(code);
@@ -15183,6 +15183,7 @@ Options:
15183
15183
  -v, --verbose Trace on stderr
15184
15184
  --silent Suppress progress
15185
15185
  -o, --output <path> Write result to file
15186
+ --no-input Never prompt (non-TTY implies it)
15186
15187
  -V, --version Print version
15187
15188
  -h, --help Show this help
15188
15189
  `;
@@ -15236,6 +15237,7 @@ function parseFlags(args) {
15236
15237
  const positional = [];
15237
15238
  let trailingCommand;
15238
15239
  let respondArg;
15240
+ let noInput = false;
15239
15241
  const roots = [];
15240
15242
  let outputPath;
15241
15243
  let noValidate = false;
@@ -15282,6 +15284,8 @@ function parseFlags(args) {
15282
15284
  timeoutMs = Number(args[++i]) * 1e3;
15283
15285
  } else if (arg === "--respond" && args[i + 1]) {
15284
15286
  respondArg = args[++i];
15287
+ } else if (arg === "--no-input") {
15288
+ noInput = true;
15285
15289
  } else if (arg === "--root" && args[i + 1]) {
15286
15290
  roots.push(args[++i]);
15287
15291
  } else if ((arg === "-o" || arg === "--output") && args[i + 1]) {
@@ -15308,6 +15312,10 @@ function parseFlags(args) {
15308
15312
  jsonOutput = true;
15309
15313
  } else if (ra === "--no-validate") {
15310
15314
  noValidate = true;
15315
+ } else if (ra === "--no-input") {
15316
+ noInput = true;
15317
+ } else if (ra === "--respond" && rest[j + 1] !== void 0) {
15318
+ respondArg = rest[++j];
15311
15319
  } else if ((ra === "-o" || ra === "--output") && rest[j + 1] !== void 0) {
15312
15320
  outputPath = rest[++j];
15313
15321
  } else if (ra === "--help" || ra === "-h") {
@@ -15337,6 +15345,7 @@ function parseFlags(args) {
15337
15345
  positional,
15338
15346
  trailingCommand,
15339
15347
  respondArg,
15348
+ noInput,
15340
15349
  roots,
15341
15350
  outputPath,
15342
15351
  noValidate,
@@ -15394,6 +15403,7 @@ function parseArgs(args) {
15394
15403
  silent: flags.silent,
15395
15404
  noValidate: flags.noValidate,
15396
15405
  respondArg: flags.respondArg,
15406
+ noInput: flags.noInput,
15397
15407
  roots: flags.roots,
15398
15408
  outputPath: flags.outputPath
15399
15409
  };
@@ -16218,7 +16228,7 @@ async function loadRespondData(platform2, respondArg, json) {
16218
16228
  return { exitCode: EXIT_USAGE };
16219
16229
  }
16220
16230
  }
16221
- async function handleInputRequired(platform2, conn, err, respondData, json, redact2) {
16231
+ async function handleInputRequired(platform2, conn, err, respondData, json, redact2, noInput) {
16222
16232
  const parsed2 = JSON.parse(err.requestJson);
16223
16233
  const requestOut = sanitizeJson(JSON.stringify(redactDeep(parsed2, redact2), null, 2));
16224
16234
  const inputReq = parseInputRequest(parsed2.result ?? parsed2);
@@ -16227,7 +16237,7 @@ async function handleInputRequired(platform2, conn, err, respondData, json, reda
16227
16237
  `);
16228
16238
  return EXIT_INPUT_REQUIRED;
16229
16239
  }
16230
- const isTty = platform2.kind === "host" && platform2.isatty(0) && platform2.isatty(2);
16240
+ const isTty = !noInput && platform2.kind === "host" && platform2.isatty(0) && platform2.isatty(2);
16231
16241
  const elicitResult = await handleElicitation(
16232
16242
  redactWrites(platform2, redact2),
16233
16243
  inputReq,
@@ -16397,7 +16407,15 @@ async function runClientVerb(platform2, version, parsed) {
16397
16407
  return termExitCode;
16398
16408
  }
16399
16409
  if (err instanceof InputRequiredError) {
16400
- return await handleInputRequired(platform2, conn, err, respondData, parsed.jsonOutput, redact2);
16410
+ return await handleInputRequired(
16411
+ platform2,
16412
+ conn,
16413
+ err,
16414
+ respondData,
16415
+ parsed.jsonOutput,
16416
+ redact2,
16417
+ parsed.noInput
16418
+ );
16401
16419
  }
16402
16420
  const e = classifyError(err);
16403
16421
  await writeErrRedacted(platform2, parsed.jsonOutput, e.kind, e.msg, redact2);
@@ -16800,7 +16818,7 @@ async function main(ctx) {
16800
16818
  packageDir: "/node_modules/@ai-ecoverse/mcpcat"
16801
16819
  });
16802
16820
  const args = ctx.argv.slice(1);
16803
- return run(platform2, "0.17.11", args);
16821
+ return run(platform2, "0.18.0", args);
16804
16822
  }
16805
16823
  export {
16806
16824
  main as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/mcpcat",
3
- "version": "0.17.11",
3
+ "version": "0.18.0",
4
4
  "description": "A curl for the Model Context Protocol",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -62,14 +62,14 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@ai-ecoverse/slicc-bios": "1.38.0",
65
- "@ai-ecoverse/slicc-kernel": "1.142.1",
65
+ "@ai-ecoverse/slicc-kernel": "1.143.1",
66
66
  "@ai-ecoverse/slicc-shared-web": "1.29.16",
67
67
  "@biomejs/biome": "2.5.15",
68
68
  "@earendil-works/pi-codemode": "1.2.0",
69
69
  "@earendil-works/pi-mcp": "1.2.0",
70
70
  "@types/node": "26.6.5",
71
71
  "esbuild": "0.28.2",
72
- "kernel-cert-new": "npm:@ai-ecoverse/slicc-kernel@1.142.1",
72
+ "kernel-cert-new": "npm:@ai-ecoverse/slicc-kernel@1.143.1",
73
73
  "lefthook": "2.2.2",
74
74
  "monocart-coverage-reports": "2.13.2",
75
75
  "proper-lockfile": "4.1.2",