@poe-platform/safe-js 0.1.822 → 0.1.824
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/safe-js/chunks/{chunk-5KAVJF3R.js → chunk-F2CVFOAU.js} +3 -0
- package/dist/safe-js/chunks/{chunk-EUKAVPB5.js → chunk-U2KX2E53.js} +1 -1
- package/dist/safe-js/chunks/{cli-runtime-UC3OADSS.js → cli-runtime-RWH6WT5G.js} +2 -2
- package/dist/safe-js/chunks/{mcp-IOBUSD2E.js → mcp-XNUDP3AA.js} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/index.js +2 -2
- package/dist/safe-js/workerd.js +3 -0
- package/package.json +2 -2
|
@@ -8046,6 +8046,9 @@ var HttpTransport = class {
|
|
|
8046
8046
|
const modern = isObjectRecord5(metadata) && typeof metadata["io.modelcontextprotocol/protocolVersion"] === "string";
|
|
8047
8047
|
if (modern) this.modernMode = true;
|
|
8048
8048
|
if (parsed.type === "request" && parsed.message.method === "initialize") {
|
|
8049
|
+
const superseded = [...this.modernRequests.values()];
|
|
8050
|
+
this.modernRequests.clear();
|
|
8051
|
+
for (const controller2 of superseded) controller2.abort();
|
|
8049
8052
|
this.modernMode = false;
|
|
8050
8053
|
this.initializationRequestId = parsed.message.id;
|
|
8051
8054
|
this.legacyProtocolVersion = MCP_PROTOCOL_VERSION;
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-XQOJJA4C.js";
|
|
9
9
|
import {
|
|
10
10
|
parseMcpConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F2CVFOAU.js";
|
|
12
12
|
import {
|
|
13
13
|
lint,
|
|
14
14
|
makeEnvModule,
|
|
@@ -296,7 +296,7 @@ async function runScriptFile(filepath, parsed, options) {
|
|
|
296
296
|
import("./dump-OX7M4C56.js"),
|
|
297
297
|
import("./runtime-modules-UOVJSSD7.js"),
|
|
298
298
|
import("../modules/fs.js"),
|
|
299
|
-
import("./mcp-
|
|
299
|
+
import("./mcp-XNUDP3AA.js")
|
|
300
300
|
]);
|
|
301
301
|
const loaded = loadExecutableSource(filepath, await options.readFile(filepath, "utf8"));
|
|
302
302
|
const meta = {
|
package/dist/safe-js/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import { createHostFileSystem } from "@poe-platform/safe-fs/node";
|
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
14
14
|
async function runCli(argv, options = {}) {
|
|
15
15
|
if (!argv.includes("--help") && !argv.includes("-h")) {
|
|
16
|
-
const runtime = await import("./chunks/cli-runtime-
|
|
16
|
+
const runtime = await import("./chunks/cli-runtime-RWH6WT5G.js");
|
|
17
17
|
return runtime.runCli(argv, options, createUsage());
|
|
18
18
|
}
|
|
19
19
|
const brokenPipe = createBrokenPipeState();
|
|
@@ -32,7 +32,7 @@ async function runCli(argv, options = {}) {
|
|
|
32
32
|
stderr.write(`${error instanceof Error ? error.message : String(error)}
|
|
33
33
|
`);
|
|
34
34
|
if (brokenPipe.closed) return 0;
|
|
35
|
-
const { exitCodeForError } = await import("./chunks/cli-runtime-
|
|
35
|
+
const { exitCodeForError } = await import("./chunks/cli-runtime-RWH6WT5G.js");
|
|
36
36
|
return exitCodeForError(error);
|
|
37
37
|
}
|
|
38
38
|
}
|
package/dist/safe-js/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunks/chunk-425IYA26.js";
|
|
9
9
|
import {
|
|
10
10
|
makeMcpModule
|
|
11
|
-
} from "./chunks/chunk-
|
|
11
|
+
} from "./chunks/chunk-U2KX2E53.js";
|
|
12
12
|
import {
|
|
13
13
|
AgentSpawnError,
|
|
14
14
|
SPAWN_MODES,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunks/chunk-XQOJJA4C.js";
|
|
25
25
|
import {
|
|
26
26
|
parseMcpConfig
|
|
27
|
-
} from "./chunks/chunk-
|
|
27
|
+
} from "./chunks/chunk-F2CVFOAU.js";
|
|
28
28
|
import {
|
|
29
29
|
captureHostContext,
|
|
30
30
|
deepCopyFromSandbox,
|
package/dist/safe-js/workerd.js
CHANGED
|
@@ -83172,6 +83172,9 @@ var HttpTransport = class {
|
|
|
83172
83172
|
const modern = isObjectRecord2(metadata) && typeof metadata["io.modelcontextprotocol/protocolVersion"] === "string";
|
|
83173
83173
|
if (modern) this.modernMode = true;
|
|
83174
83174
|
if (parsed.type === "request" && parsed.message.method === "initialize") {
|
|
83175
|
+
const superseded = [...this.modernRequests.values()];
|
|
83176
|
+
this.modernRequests.clear();
|
|
83177
|
+
for (const controller2 of superseded) controller2.abort();
|
|
83175
83178
|
this.modernMode = false;
|
|
83176
83179
|
this.initializationRequestId = parsed.message.id;
|
|
83177
83180
|
this.legacyProtocolVersion = MCP_PROTOCOL_VERSION;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poe-platform/safe-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.824",
|
|
4
4
|
"description": "Budgeted JavaScript interpreter with explicit host capabilities and resumable execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@poe-platform/safe-fs": "0.1.
|
|
85
|
+
"@poe-platform/safe-fs": "0.1.824",
|
|
86
86
|
"@petamoriken/float16": "^3.9.3",
|
|
87
87
|
"@noble/hashes": "2.4.0",
|
|
88
88
|
"@formatjs/intl-localematcher": "0.8.13",
|