@agent-inspect/viewer 6.20.0 → 6.22.0
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/index.cjs +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +23 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -737,6 +737,17 @@ async function readTraceEventsFromFile(filePath) {
|
|
|
737
737
|
new AsyncLocalStorage();
|
|
738
738
|
|
|
739
739
|
// packages/core/src/outcomes/types.ts
|
|
740
|
+
var OBSERVED_OUTCOME_METHODS = [
|
|
741
|
+
"dom",
|
|
742
|
+
"accessibility",
|
|
743
|
+
"snapshot",
|
|
744
|
+
"network",
|
|
745
|
+
"storage",
|
|
746
|
+
"filesystem",
|
|
747
|
+
"database",
|
|
748
|
+
"queue",
|
|
749
|
+
"custom"
|
|
750
|
+
];
|
|
740
751
|
var OUTCOME_ATTRIBUTE_STATUS_KEY = "outcomeStatus";
|
|
741
752
|
var OUTCOME_ATTRIBUTE_EXPECTATION_KEY = "expectation";
|
|
742
753
|
var OUTCOME_ATTRIBUTE_METHOD_KEY = "method";
|
|
@@ -1125,6 +1136,10 @@ function extractSessionWorkflowMetadata(record) {
|
|
|
1125
1136
|
assignString("toolCallId", record.toolCallId);
|
|
1126
1137
|
assignString("mcpToolCallId", record.mcpToolCallId);
|
|
1127
1138
|
assignString("linkedStepId", record.linkedStepId);
|
|
1139
|
+
assignString("operationId", record.operationId);
|
|
1140
|
+
assignString("attemptId", record.attemptId);
|
|
1141
|
+
assignString("fallbackOf", record.fallbackOf);
|
|
1142
|
+
assignString("idempotencyKey", record.idempotencyKey);
|
|
1128
1143
|
assignString("correlationId", record.correlationId);
|
|
1129
1144
|
assignString("requestId", record.requestId);
|
|
1130
1145
|
assignString("decisionId", record.decisionId);
|
|
@@ -1133,6 +1148,11 @@ function extractSessionWorkflowMetadata(record) {
|
|
|
1133
1148
|
out.attempt = attempt;
|
|
1134
1149
|
found = true;
|
|
1135
1150
|
}
|
|
1151
|
+
const attemptNumber = finitePositiveInt(record.attemptNumber);
|
|
1152
|
+
if (attemptNumber !== void 0) {
|
|
1153
|
+
out.attemptNumber = attemptNumber;
|
|
1154
|
+
found = true;
|
|
1155
|
+
}
|
|
1136
1156
|
return found ? out : void 0;
|
|
1137
1157
|
}
|
|
1138
1158
|
function sessionKeyForRun(meta, options) {
|
|
@@ -2595,6 +2615,9 @@ formatProgrammaticDiagnostic(
|
|
|
2595
2615
|
"AI_TRACE_FACTS_INPUT_NOT_NORMALIZED"
|
|
2596
2616
|
);
|
|
2597
2617
|
|
|
2618
|
+
// packages/core/src/checks/contract.ts
|
|
2619
|
+
new Set(OBSERVED_OUTCOME_METHODS);
|
|
2620
|
+
|
|
2598
2621
|
// packages/core/src/checks/index.ts
|
|
2599
2622
|
var SEVERITY_RANK = {
|
|
2600
2623
|
error: 0,
|