@agent-inspect/mcp-server 6.31.8 → 6.31.10
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-GWLPG4BM.mjs} +25 -3
- package/dist/chunk-GWLPG4BM.mjs.map +1 -0
- package/dist/cli.cjs +23 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +23 -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.mjs
CHANGED
package/dist/index.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 = [
|
|
@@ -2440,6 +2451,17 @@ var PROGRAMMATIC_DIAGNOSTIC_SPECS = Object.freeze({
|
|
|
2440
2451
|
summary: "Trace contains a parentId cycle.",
|
|
2441
2452
|
remediation: "Use visibility-first tree linking for legacy fixtures; prefer acyclic capture for new adapter output.",
|
|
2442
2453
|
relatedCodes: ["structure.cycle"]
|
|
2454
|
+
},
|
|
2455
|
+
AI_TRACE_CONTRACT_INPUT_INVALID: {
|
|
2456
|
+
code: "AI_TRACE_CONTRACT_INPUT_INVALID",
|
|
2457
|
+
summary: "evaluateTraceContract expects ({ read }, contract) or use evaluateTraceContractRead(read, contract).",
|
|
2458
|
+
remediation: "Pass TraceCheckInput as the first argument: evaluateTraceContract({ read }, contract).",
|
|
2459
|
+
relatedCodes: ["AI_CHECK_INVALID_ARGUMENTS"]
|
|
2460
|
+
},
|
|
2461
|
+
AI_INSPECT_RUN_UNSUPPORTED_OPTION: {
|
|
2462
|
+
code: "AI_INSPECT_RUN_UNSUPPORTED_OPTION",
|
|
2463
|
+
summary: 'inspectRun does not accept a "writer" option.',
|
|
2464
|
+
remediation: "Use createInspector({ writer }) then inspector.run(...). inspectRun persists via the global JSONL path (schema 0.1)."
|
|
2443
2465
|
}
|
|
2444
2466
|
});
|
|
2445
2467
|
function formatProgrammaticDiagnostic(code, detail) {
|