@ai-ecoverse/mcpcat 0.18.0 → 0.18.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/host/mcpcat.mjs +15 -6
- package/dist/kernel/mcpcat.mjs +15 -6
- package/package.json +4 -4
package/dist/host/mcpcat.mjs
CHANGED
|
@@ -12858,15 +12858,18 @@ async function runCommand(platform2, cmdPath, argv, childEnv, stdin, timeoutMs,
|
|
|
12858
12858
|
r.releaseLock();
|
|
12859
12859
|
}
|
|
12860
12860
|
};
|
|
12861
|
-
|
|
12862
|
-
|
|
12863
|
-
)
|
|
12861
|
+
let timerId;
|
|
12862
|
+
let onAbort;
|
|
12863
|
+
const timer = new Promise((resolve) => {
|
|
12864
|
+
timerId = setTimeout(() => resolve("timeout"), timeoutMs);
|
|
12865
|
+
});
|
|
12864
12866
|
const abortPromise = signal ? new Promise((resolve) => {
|
|
12865
12867
|
if (signal.aborted) {
|
|
12866
12868
|
resolve("timeout");
|
|
12867
12869
|
return;
|
|
12868
12870
|
}
|
|
12869
|
-
|
|
12871
|
+
onAbort = () => resolve("timeout");
|
|
12872
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
12870
12873
|
}) : null;
|
|
12871
12874
|
const work = Promise.all([
|
|
12872
12875
|
readStream3(proc.stdout, stdoutChunks),
|
|
@@ -12878,7 +12881,13 @@ async function runCommand(platform2, cmdPath, argv, childEnv, stdin, timeoutMs,
|
|
|
12878
12881
|
timer
|
|
12879
12882
|
];
|
|
12880
12883
|
if (abortPromise !== null) racers.push(abortPromise);
|
|
12881
|
-
|
|
12884
|
+
let result;
|
|
12885
|
+
try {
|
|
12886
|
+
result = await Promise.race(racers);
|
|
12887
|
+
} finally {
|
|
12888
|
+
clearTimeout(timerId);
|
|
12889
|
+
if (onAbort) signal?.removeEventListener("abort", onAbort);
|
|
12890
|
+
}
|
|
12882
12891
|
if (result === "timeout") {
|
|
12883
12892
|
await proc.kill("SIGTERM");
|
|
12884
12893
|
if (!signal?.aborted) {
|
|
@@ -17096,5 +17105,5 @@ try {
|
|
|
17096
17105
|
});
|
|
17097
17106
|
} catch {
|
|
17098
17107
|
}
|
|
17099
|
-
var code = await run(platform, "0.18.
|
|
17108
|
+
var code = await run(platform, "0.18.1", args);
|
|
17100
17109
|
process.exit(code);
|
package/dist/kernel/mcpcat.mjs
CHANGED
|
@@ -12479,15 +12479,18 @@ async function runCommand(platform2, cmdPath, argv, childEnv, stdin, timeoutMs,
|
|
|
12479
12479
|
r.releaseLock();
|
|
12480
12480
|
}
|
|
12481
12481
|
};
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
)
|
|
12482
|
+
let timerId;
|
|
12483
|
+
let onAbort;
|
|
12484
|
+
const timer = new Promise((resolve2) => {
|
|
12485
|
+
timerId = setTimeout(() => resolve2("timeout"), timeoutMs);
|
|
12486
|
+
});
|
|
12485
12487
|
const abortPromise = signal ? new Promise((resolve2) => {
|
|
12486
12488
|
if (signal.aborted) {
|
|
12487
12489
|
resolve2("timeout");
|
|
12488
12490
|
return;
|
|
12489
12491
|
}
|
|
12490
|
-
|
|
12492
|
+
onAbort = () => resolve2("timeout");
|
|
12493
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
12491
12494
|
}) : null;
|
|
12492
12495
|
const work = Promise.all([
|
|
12493
12496
|
readStream3(proc.stdout, stdoutChunks),
|
|
@@ -12499,7 +12502,13 @@ async function runCommand(platform2, cmdPath, argv, childEnv, stdin, timeoutMs,
|
|
|
12499
12502
|
timer
|
|
12500
12503
|
];
|
|
12501
12504
|
if (abortPromise !== null) racers.push(abortPromise);
|
|
12502
|
-
|
|
12505
|
+
let result;
|
|
12506
|
+
try {
|
|
12507
|
+
result = await Promise.race(racers);
|
|
12508
|
+
} finally {
|
|
12509
|
+
clearTimeout(timerId);
|
|
12510
|
+
if (onAbort) signal?.removeEventListener("abort", onAbort);
|
|
12511
|
+
}
|
|
12503
12512
|
if (result === "timeout") {
|
|
12504
12513
|
await proc.kill("SIGTERM");
|
|
12505
12514
|
if (!signal?.aborted) {
|
|
@@ -16818,7 +16827,7 @@ async function main(ctx) {
|
|
|
16818
16827
|
packageDir: "/node_modules/@ai-ecoverse/mcpcat"
|
|
16819
16828
|
});
|
|
16820
16829
|
const args = ctx.argv.slice(1);
|
|
16821
|
-
return run(platform2, "0.18.
|
|
16830
|
+
return run(platform2, "0.18.1", args);
|
|
16822
16831
|
}
|
|
16823
16832
|
export {
|
|
16824
16833
|
main as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/mcpcat",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
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.143.
|
|
66
|
-
"@ai-ecoverse/slicc-shared-web": "1.
|
|
65
|
+
"@ai-ecoverse/slicc-kernel": "1.143.2",
|
|
66
|
+
"@ai-ecoverse/slicc-shared-web": "1.30.1",
|
|
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.143.
|
|
72
|
+
"kernel-cert-new": "npm:@ai-ecoverse/slicc-kernel@1.143.2",
|
|
73
73
|
"lefthook": "2.2.2",
|
|
74
74
|
"monocart-coverage-reports": "2.13.2",
|
|
75
75
|
"proper-lockfile": "4.1.2",
|