@agent-inspect/mcp-server 6.31.8 → 6.31.9

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.
@@ -1065,7 +1065,18 @@ async function readTraceEventsFromFile(filePath) {
1065
1065
  }
1066
1066
 
1067
1067
  // packages/core/src/context.ts
1068
- new AsyncLocalStorage();
1068
+ var GLOBAL_CONTEXT_ALS_KEY = "agent-inspect:execution-context-als:v1";
1069
+ function getSharedContextStorage() {
1070
+ const host = globalThis;
1071
+ const existing = host[GLOBAL_CONTEXT_ALS_KEY];
1072
+ if (existing instanceof AsyncLocalStorage) {
1073
+ return existing;
1074
+ }
1075
+ const created = new AsyncLocalStorage();
1076
+ host[GLOBAL_CONTEXT_ALS_KEY] = created;
1077
+ return created;
1078
+ }
1079
+ getSharedContextStorage();
1069
1080
 
1070
1081
  // packages/core/src/outcomes/types.ts
1071
1082
  var OBSERVED_OUTCOME_STATUSES = [
@@ -9264,5 +9275,5 @@ async function runReadOnlyMcpServer(options = {}) {
9264
9275
  }
9265
9276
 
9266
9277
  export { MCP_MAX_REQUEST_BYTES, MCP_PROTOCOL_VERSION, MCP_SERVER_INSTRUCTIONS, READ_ONLY_TOOLS, TRACE_DATA_UNTRUSTED_WARNING, callReadOnlyTool, createMcpServerContext, handleMcpProtocolLine, runReadOnlyMcpServer };
9267
- //# sourceMappingURL=chunk-MXA5GAJQ.mjs.map
9268
- //# sourceMappingURL=chunk-MXA5GAJQ.mjs.map
9278
+ //# sourceMappingURL=chunk-U3JBHSNB.mjs.map
9279
+ //# sourceMappingURL=chunk-U3JBHSNB.mjs.map