@poe-platform/safe-js 0.1.822 → 0.1.823

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.
@@ -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;
@@ -2,7 +2,7 @@ import {
2
2
  McpError,
3
3
  connectMcpTransport,
4
4
  normalizeMcpOptions
5
- } from "./chunk-5KAVJF3R.js";
5
+ } from "./chunk-F2CVFOAU.js";
6
6
  import {
7
7
  declareHostOperation,
8
8
  runResources
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-XQOJJA4C.js";
9
9
  import {
10
10
  parseMcpConfig
11
- } from "./chunk-5KAVJF3R.js";
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-IOBUSD2E.js")
299
+ import("./mcp-XNUDP3AA.js")
300
300
  ]);
301
301
  const loaded = loadExecutableSource(filepath, await options.readFile(filepath, "utf8"));
302
302
  const meta = {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeMcpModule
3
- } from "./chunk-EUKAVPB5.js";
4
- import "./chunk-5KAVJF3R.js";
3
+ } from "./chunk-U2KX2E53.js";
4
+ import "./chunk-F2CVFOAU.js";
5
5
  import "./chunk-ROIZEQTS.js";
6
6
  import "./chunk-EQUBWQJN.js";
7
7
  import "./chunk-2IYZK337.js";
@@ -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-UC3OADSS.js");
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-UC3OADSS.js");
35
+ const { exitCodeForError } = await import("./chunks/cli-runtime-RWH6WT5G.js");
36
36
  return exitCodeForError(error);
37
37
  }
38
38
  }
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunks/chunk-425IYA26.js";
9
9
  import {
10
10
  makeMcpModule
11
- } from "./chunks/chunk-EUKAVPB5.js";
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-5KAVJF3R.js";
27
+ } from "./chunks/chunk-F2CVFOAU.js";
28
28
  import {
29
29
  captureHostContext,
30
30
  deepCopyFromSandbox,
@@ -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.822",
3
+ "version": "0.1.823",
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.822",
85
+ "@poe-platform/safe-fs": "0.1.823",
86
86
  "@petamoriken/float16": "^3.9.3",
87
87
  "@noble/hashes": "2.4.0",
88
88
  "@formatjs/intl-localematcher": "0.8.13",