@ai-ecoverse/mcpcat 0.23.1 → 0.23.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.
- package/dist/host/mcpcat.mjs +50 -2
- package/dist/kernel/mcpcat.mjs +50 -2
- package/package.json +2 -2
package/dist/host/mcpcat.mjs
CHANGED
|
@@ -17749,7 +17749,8 @@ async function dispatchMultiTarget(platform2, parsed, version) {
|
|
|
17749
17749
|
}
|
|
17750
17750
|
async function run(platform2, version, args2) {
|
|
17751
17751
|
try {
|
|
17752
|
-
|
|
17752
|
+
const upgrading = upgradeArgs(args2);
|
|
17753
|
+
if (upgrading) return await upgrade(platform2, version, upgrading);
|
|
17753
17754
|
return await runInner(platform2, version, args2);
|
|
17754
17755
|
} catch (err) {
|
|
17755
17756
|
if (err.code === "EACCES") {
|
|
@@ -17765,6 +17766,53 @@ function wantsServeHelp(args2) {
|
|
|
17765
17766
|
return parseArgs(args2).verb === "serve";
|
|
17766
17767
|
}
|
|
17767
17768
|
var UPGRADE_VERBS = /* @__PURE__ */ new Set(["upgrade", "update"]);
|
|
17769
|
+
var LEADING_STOPS = /* @__PURE__ */ new Set(["--", "--help", "-h", "--version", "-V"]);
|
|
17770
|
+
var GLOBAL_VALUE_FLAGS = /* @__PURE__ */ new Set([
|
|
17771
|
+
"-H",
|
|
17772
|
+
"--header",
|
|
17773
|
+
"-d",
|
|
17774
|
+
"--protocol-version",
|
|
17775
|
+
"--budget",
|
|
17776
|
+
"-e",
|
|
17777
|
+
"-s",
|
|
17778
|
+
"--server",
|
|
17779
|
+
"-m",
|
|
17780
|
+
"--timeout",
|
|
17781
|
+
"--respond",
|
|
17782
|
+
"--root",
|
|
17783
|
+
"-o",
|
|
17784
|
+
"--output",
|
|
17785
|
+
"--memory"
|
|
17786
|
+
]);
|
|
17787
|
+
var GLOBAL_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
17788
|
+
"--schema",
|
|
17789
|
+
"--ts",
|
|
17790
|
+
"--json",
|
|
17791
|
+
"--rank",
|
|
17792
|
+
"-E",
|
|
17793
|
+
"--allow-shell",
|
|
17794
|
+
"-v",
|
|
17795
|
+
"--verbose",
|
|
17796
|
+
"--silent",
|
|
17797
|
+
"--no-input",
|
|
17798
|
+
"--no-validate"
|
|
17799
|
+
]);
|
|
17800
|
+
function upgradeArgs(args2) {
|
|
17801
|
+
const at = args2.findIndex((arg) => UPGRADE_VERBS.has(arg));
|
|
17802
|
+
if (at < 0) return void 0;
|
|
17803
|
+
const own = [];
|
|
17804
|
+
for (let i = 0; i < at; i++) {
|
|
17805
|
+
const arg = args2[i];
|
|
17806
|
+
if (LEADING_STOPS.has(arg) || !arg.startsWith("-")) return void 0;
|
|
17807
|
+
if (GLOBAL_VALUE_FLAGS.has(arg)) {
|
|
17808
|
+
if (i + 1 === at) return void 0;
|
|
17809
|
+
i++;
|
|
17810
|
+
} else if (!GLOBAL_BOOLEAN_FLAGS.has(arg)) {
|
|
17811
|
+
own.push(arg);
|
|
17812
|
+
}
|
|
17813
|
+
}
|
|
17814
|
+
return [args2[at], ...own, ...args2.slice(at + 1)];
|
|
17815
|
+
}
|
|
17768
17816
|
async function upgrade(platform2, version, args2) {
|
|
17769
17817
|
const command = args2[0];
|
|
17770
17818
|
const parsed = parseUpgradeArgs(args2.slice(1));
|
|
@@ -18879,5 +18927,5 @@ try {
|
|
|
18879
18927
|
});
|
|
18880
18928
|
} catch {
|
|
18881
18929
|
}
|
|
18882
|
-
var code = await run(platform, "0.23.
|
|
18930
|
+
var code = await run(platform, "0.23.2", args);
|
|
18883
18931
|
process.exit(code);
|
package/dist/kernel/mcpcat.mjs
CHANGED
|
@@ -17266,7 +17266,8 @@ async function dispatchMultiTarget(platform2, parsed, version) {
|
|
|
17266
17266
|
}
|
|
17267
17267
|
async function run(platform2, version, args) {
|
|
17268
17268
|
try {
|
|
17269
|
-
|
|
17269
|
+
const upgrading = upgradeArgs(args);
|
|
17270
|
+
if (upgrading) return await upgrade(platform2, version, upgrading);
|
|
17270
17271
|
return await runInner(platform2, version, args);
|
|
17271
17272
|
} catch (err) {
|
|
17272
17273
|
if (err.code === "EACCES") {
|
|
@@ -17282,6 +17283,53 @@ function wantsServeHelp(args) {
|
|
|
17282
17283
|
return parseArgs(args).verb === "serve";
|
|
17283
17284
|
}
|
|
17284
17285
|
var UPGRADE_VERBS = /* @__PURE__ */ new Set(["upgrade", "update"]);
|
|
17286
|
+
var LEADING_STOPS = /* @__PURE__ */ new Set(["--", "--help", "-h", "--version", "-V"]);
|
|
17287
|
+
var GLOBAL_VALUE_FLAGS = /* @__PURE__ */ new Set([
|
|
17288
|
+
"-H",
|
|
17289
|
+
"--header",
|
|
17290
|
+
"-d",
|
|
17291
|
+
"--protocol-version",
|
|
17292
|
+
"--budget",
|
|
17293
|
+
"-e",
|
|
17294
|
+
"-s",
|
|
17295
|
+
"--server",
|
|
17296
|
+
"-m",
|
|
17297
|
+
"--timeout",
|
|
17298
|
+
"--respond",
|
|
17299
|
+
"--root",
|
|
17300
|
+
"-o",
|
|
17301
|
+
"--output",
|
|
17302
|
+
"--memory"
|
|
17303
|
+
]);
|
|
17304
|
+
var GLOBAL_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
17305
|
+
"--schema",
|
|
17306
|
+
"--ts",
|
|
17307
|
+
"--json",
|
|
17308
|
+
"--rank",
|
|
17309
|
+
"-E",
|
|
17310
|
+
"--allow-shell",
|
|
17311
|
+
"-v",
|
|
17312
|
+
"--verbose",
|
|
17313
|
+
"--silent",
|
|
17314
|
+
"--no-input",
|
|
17315
|
+
"--no-validate"
|
|
17316
|
+
]);
|
|
17317
|
+
function upgradeArgs(args) {
|
|
17318
|
+
const at = args.findIndex((arg) => UPGRADE_VERBS.has(arg));
|
|
17319
|
+
if (at < 0) return void 0;
|
|
17320
|
+
const own = [];
|
|
17321
|
+
for (let i = 0; i < at; i++) {
|
|
17322
|
+
const arg = args[i];
|
|
17323
|
+
if (LEADING_STOPS.has(arg) || !arg.startsWith("-")) return void 0;
|
|
17324
|
+
if (GLOBAL_VALUE_FLAGS.has(arg)) {
|
|
17325
|
+
if (i + 1 === at) return void 0;
|
|
17326
|
+
i++;
|
|
17327
|
+
} else if (!GLOBAL_BOOLEAN_FLAGS.has(arg)) {
|
|
17328
|
+
own.push(arg);
|
|
17329
|
+
}
|
|
17330
|
+
}
|
|
17331
|
+
return [args[at], ...own, ...args.slice(at + 1)];
|
|
17332
|
+
}
|
|
17285
17333
|
async function upgrade(platform2, version, args) {
|
|
17286
17334
|
const command = args[0];
|
|
17287
17335
|
const parsed = parseUpgradeArgs(args.slice(1));
|
|
@@ -18106,7 +18154,7 @@ async function main(ctx) {
|
|
|
18106
18154
|
packageDir: "/node_modules/@ai-ecoverse/mcpcat"
|
|
18107
18155
|
});
|
|
18108
18156
|
const args = ctx.argv.slice(1);
|
|
18109
|
-
return run(platform2, "0.23.
|
|
18157
|
+
return run(platform2, "0.23.2", args);
|
|
18110
18158
|
}
|
|
18111
18159
|
export {
|
|
18112
18160
|
main as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/mcpcat",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.2",
|
|
4
4
|
"description": "A curl for the Model Context Protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"trust:dry": "npx fledgling sync --dry-run -y --skip-publish"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
61
|
+
"@ai-ecoverse/slicc-kernel": "1.152.1",
|
|
62
62
|
"@ai-ecoverse/slicc-shared-web": "2.11.3",
|
|
63
63
|
"@biomejs/biome": "2.5.15",
|
|
64
64
|
"@earendil-works/pi-codemode": "1.3.0",
|