@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.
- package/dist/{chunk-MXA5GAJQ.mjs → chunk-U3JBHSNB.mjs} +14 -3
- package/dist/chunk-U3JBHSNB.mjs.map +1 -0
- package/dist/cli.cjs +12 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-MXA5GAJQ.mjs.map +0 -1
package/dist/cli.cjs
CHANGED
|
@@ -1075,7 +1075,18 @@ async function readTraceEventsFromFile(filePath) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
|
|
1077
1077
|
// packages/core/src/context.ts
|
|
1078
|
-
|
|
1078
|
+
var GLOBAL_CONTEXT_ALS_KEY = "agent-inspect:execution-context-als:v1";
|
|
1079
|
+
function getSharedContextStorage() {
|
|
1080
|
+
const host = globalThis;
|
|
1081
|
+
const existing = host[GLOBAL_CONTEXT_ALS_KEY];
|
|
1082
|
+
if (existing instanceof async_hooks.AsyncLocalStorage) {
|
|
1083
|
+
return existing;
|
|
1084
|
+
}
|
|
1085
|
+
const created = new async_hooks.AsyncLocalStorage();
|
|
1086
|
+
host[GLOBAL_CONTEXT_ALS_KEY] = created;
|
|
1087
|
+
return created;
|
|
1088
|
+
}
|
|
1089
|
+
getSharedContextStorage();
|
|
1079
1090
|
|
|
1080
1091
|
// packages/core/src/outcomes/types.ts
|
|
1081
1092
|
var OBSERVED_OUTCOME_STATUSES = [
|