@ai-ecoverse/mcpcat 0.15.4 → 0.15.5
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 +1 -1
- package/dist/kernel/mcpcat.mjs +19 -2
- package/package.json +2 -2
package/dist/host/mcpcat.mjs
CHANGED
|
@@ -16734,5 +16734,5 @@ try {
|
|
|
16734
16734
|
});
|
|
16735
16735
|
} catch {
|
|
16736
16736
|
}
|
|
16737
|
-
var code = await run(platform, "0.15.
|
|
16737
|
+
var code = await run(platform, "0.15.5", args);
|
|
16738
16738
|
process.exit(code);
|
package/dist/kernel/mcpcat.mjs
CHANGED
|
@@ -16251,6 +16251,15 @@ function isConnectionRefused(err) {
|
|
|
16251
16251
|
if (e?.code === "ECONNREFUSED") return true;
|
|
16252
16252
|
return typeof e?.message === "string" && e.message.includes("ECONNREFUSED");
|
|
16253
16253
|
}
|
|
16254
|
+
function isFetchRefused(err) {
|
|
16255
|
+
return err instanceof TypeError && isConnectionRefused(err.cause);
|
|
16256
|
+
}
|
|
16257
|
+
function loopbackRefused(url, port, err) {
|
|
16258
|
+
return new TypeError(
|
|
16259
|
+
`nothing listens on ${url.hostname}:${port} for a kernel program, whose loopback is the kernel's; reach a host server via http://host.slicc.internal:${port}`,
|
|
16260
|
+
{ cause: err.cause }
|
|
16261
|
+
);
|
|
16262
|
+
}
|
|
16254
16263
|
function collectHeaders(init) {
|
|
16255
16264
|
const entries = [];
|
|
16256
16265
|
if (!init?.headers) return entries;
|
|
@@ -16377,7 +16386,15 @@ function createKernelFetch(ctx) {
|
|
|
16377
16386
|
if (port !== null) return kernelLoopbackFetch(ctx, url, port, init);
|
|
16378
16387
|
const plainPort = extractPlainLoopbackPort(url);
|
|
16379
16388
|
if (plainPort !== null) {
|
|
16380
|
-
return kernelLoopbackFetch(
|
|
16389
|
+
return kernelLoopbackFetch(
|
|
16390
|
+
ctx,
|
|
16391
|
+
url,
|
|
16392
|
+
plainPort,
|
|
16393
|
+
init,
|
|
16394
|
+
() => ctx.fetch(input, init).catch((err) => {
|
|
16395
|
+
throw isFetchRefused(err) ? loopbackRefused(url, plainPort, err) : err;
|
|
16396
|
+
})
|
|
16397
|
+
);
|
|
16381
16398
|
}
|
|
16382
16399
|
return ctx.fetch(input, init);
|
|
16383
16400
|
};
|
|
@@ -16435,7 +16452,7 @@ async function main(ctx) {
|
|
|
16435
16452
|
packageDir: "/node_modules/@ai-ecoverse/mcpcat"
|
|
16436
16453
|
});
|
|
16437
16454
|
const args = ctx.argv.slice(1);
|
|
16438
|
-
return run(platform2, "0.15.
|
|
16455
|
+
return run(platform2, "0.15.5", args);
|
|
16439
16456
|
}
|
|
16440
16457
|
export {
|
|
16441
16458
|
main as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/mcpcat",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.5",
|
|
4
4
|
"description": "A curl for the Model Context Protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"trust:dry": "npx fledgling sync --dry-run -y --skip-publish"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
59
|
+
"@ai-ecoverse/slicc-kernel": "1.91.0",
|
|
60
60
|
"@ai-ecoverse/slicc-shared-web": "1.14.0",
|
|
61
61
|
"@biomejs/biome": "2.5.15",
|
|
62
62
|
"@earendil-works/pi-codemode": "1.2.0",
|