@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 CHANGED
@@ -744,6 +744,17 @@ async function readTraceEventsFromFile(filePath) {
744
744
  new async_hooks.AsyncLocalStorage();
745
745
 
746
746
  // packages/core/src/outcomes/types.ts
747
+ var OBSERVED_OUTCOME_METHODS = [
748
+ "dom",
749
+ "accessibility",
750
+ "snapshot",
751
+ "network",
752
+ "storage",
753
+ "filesystem",
754
+ "database",
755
+ "queue",
756
+ "custom"
757
+ ];
747
758
  var OUTCOME_ATTRIBUTE_STATUS_KEY = "outcomeStatus";
748
759
  var OUTCOME_ATTRIBUTE_EXPECTATION_KEY = "expectation";
749
760
  var OUTCOME_ATTRIBUTE_METHOD_KEY = "method";
@@ -1132,6 +1143,10 @@ function extractSessionWorkflowMetadata(record) {
1132
1143
  assignString("toolCallId", record.toolCallId);
1133
1144
  assignString("mcpToolCallId", record.mcpToolCallId);
1134
1145
  assignString("linkedStepId", record.linkedStepId);
1146
+ assignString("operationId", record.operationId);
1147
+ assignString("attemptId", record.attemptId);
1148
+ assignString("fallbackOf", record.fallbackOf);
1149
+ assignString("idempotencyKey", record.idempotencyKey);
1135
1150
  assignString("correlationId", record.correlationId);
1136
1151
  assignString("requestId", record.requestId);
1137
1152
  assignString("decisionId", record.decisionId);
@@ -1140,6 +1155,11 @@ function extractSessionWorkflowMetadata(record) {
1140
1155
  out.attempt = attempt;
1141
1156
  found = true;
1142
1157
  }
1158
+ const attemptNumber = finitePositiveInt(record.attemptNumber);
1159
+ if (attemptNumber !== void 0) {
1160
+ out.attemptNumber = attemptNumber;
1161
+ found = true;
1162
+ }
1143
1163
  return found ? out : void 0;
1144
1164
  }
1145
1165
  function sessionKeyForRun(meta, options) {
@@ -2602,6 +2622,9 @@ formatProgrammaticDiagnostic(
2602
2622
  "AI_TRACE_FACTS_INPUT_NOT_NORMALIZED"
2603
2623
  );
2604
2624
 
2625
+ // packages/core/src/checks/contract.ts
2626
+ new Set(OBSERVED_OUTCOME_METHODS);
2627
+
2605
2628
  // packages/core/src/checks/index.ts
2606
2629
  var SEVERITY_RANK = {
2607
2630
  error: 0,