agent-inspect 5.2.0 → 5.3.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.
@@ -1,7 +1,7 @@
1
1
  import { TraceReadResult, TraceReadWarning } from './readers.cjs';
2
2
  import { b as InspectRunTree, c as InspectNode, A as AttributionConfidence } from './inspect-event-IqwOHbGo.cjs';
3
3
  import { P as PersistedInspectEvent } from './persisted-inspect-event-Gd-W8vB7.cjs';
4
- import { a as ObservedOutcomeStatus } from './types-CvsKGweN.cjs';
4
+ import { b as ObservedOutcomeStatus } from './types-J3Xtuf9x.cjs';
5
5
 
6
6
  /**
7
7
  * Experimental trace-check finding severity.
@@ -1,7 +1,7 @@
1
1
  import { TraceReadResult, TraceReadWarning } from './readers.js';
2
2
  import { b as InspectRunTree, c as InspectNode, A as AttributionConfidence } from './inspect-event-IqwOHbGo.js';
3
3
  import { P as PersistedInspectEvent } from './persisted-inspect-event-DruwqARZ.js';
4
- import { a as ObservedOutcomeStatus } from './types-CvsKGweN.js';
4
+ import { b as ObservedOutcomeStatus } from './types-J3Xtuf9x.js';
5
5
 
6
6
  /**
7
7
  * Experimental trace-check finding severity.
@@ -1,7 +1,7 @@
1
1
  import { R as RedactionProfile, d as StepMetadata, h as TraceEvent, I as InspectRunOptions, i as ExecutionContext, g as TraceCorrelationMetadata, f as StepType } from './types-BVkjSd0q.js';
2
2
  import { P as PersistedInspectEvent } from './persisted-inspect-event-DruwqARZ.js';
3
3
  import { TraceWriterStats, TraceWriter } from './writers.js';
4
- import { O as ObserveOutcomeOptions } from './types-CvsKGweN.js';
4
+ import { O as ObserveOutcomeOptions } from './types-J3Xtuf9x.js';
5
5
  import { R as RedactionRule } from './log-config-SRA4xTp8.js';
6
6
 
7
7
  /** Default max length for string metadata values (non-preview keys). */
@@ -1,7 +1,7 @@
1
1
  import { R as RedactionProfile, d as StepMetadata, h as TraceEvent, I as InspectRunOptions, i as ExecutionContext, g as TraceCorrelationMetadata, f as StepType } from './types-B1X87dUW.cjs';
2
2
  import { P as PersistedInspectEvent } from './persisted-inspect-event-Gd-W8vB7.cjs';
3
3
  import { TraceWriterStats, TraceWriter } from './writers.cjs';
4
- import { O as ObserveOutcomeOptions } from './types-CvsKGweN.cjs';
4
+ import { O as ObserveOutcomeOptions } from './types-J3Xtuf9x.cjs';
5
5
  import { R as RedactionRule } from './log-config-CW8w5YQ9.cjs';
6
6
 
7
7
  /** Default max length for string metadata values (non-preview keys). */
@@ -1,7 +1,7 @@
1
1
  import { I as InspectRunOptions, S as StepOptions, O as ObserveOptions } from './types-B1X87dUW.cjs';
2
2
  export { E as ErrorInfo, R as RedactionProfile, a as Run, b as RunStatus, c as Step, d as StepMetadata, e as StepStatus, f as StepType, T as TokenMetadata, g as TraceCorrelationMetadata } from './types-B1X87dUW.cjs';
3
- export { C as CreateInspectorOptions, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, d as InspectorStepOptions, e as createInspector, g as getCurrentCorrelationMetadata, m as maybeInspectRun } from './context-BbfkMYjz.cjs';
4
- import { O as ObserveOutcomeOptions } from './types-CvsKGweN.cjs';
3
+ export { C as CreateInspectorOptions, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, d as InspectorStepOptions, e as createInspector, g as getCurrentCorrelationMetadata, m as maybeInspectRun } from './context-DyKbkmd4.cjs';
4
+ import { O as ObserveOutcomeOptions } from './types-J3Xtuf9x.cjs';
5
5
  import './log-config-CW8w5YQ9.cjs';
6
6
  import './inspect-event-IqwOHbGo.cjs';
7
7
  import './persisted-inspect-event-Gd-W8vB7.cjs';
@@ -1,7 +1,7 @@
1
1
  import { I as InspectRunOptions, S as StepOptions, O as ObserveOptions } from './types-BVkjSd0q.js';
2
2
  export { E as ErrorInfo, R as RedactionProfile, a as Run, b as RunStatus, c as Step, d as StepMetadata, e as StepStatus, f as StepType, T as TokenMetadata, g as TraceCorrelationMetadata } from './types-BVkjSd0q.js';
3
- export { C as CreateInspectorOptions, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, d as InspectorStepOptions, e as createInspector, g as getCurrentCorrelationMetadata, m as maybeInspectRun } from './context-Cp8NRbBX.js';
4
- import { O as ObserveOutcomeOptions } from './types-CvsKGweN.js';
3
+ export { C as CreateInspectorOptions, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, d as InspectorStepOptions, e as createInspector, g as getCurrentCorrelationMetadata, m as maybeInspectRun } from './context-BJ5UQLDi.js';
4
+ import { O as ObserveOutcomeOptions } from './types-J3Xtuf9x.js';
5
5
  import './log-config-SRA4xTp8.js';
6
6
  import './inspect-event-IqwOHbGo.js';
7
7
  import './persisted-inspect-event-DruwqARZ.js';
@@ -1,5 +1,17 @@
1
1
  type ObservedOutcomeStatus = "passed" | "failed" | "unknown" | "skipped";
2
2
  type ObservedOutcomeMethod = "dom" | "accessibility" | "snapshot" | "network" | "storage" | "filesystem" | "database" | "queue" | "custom";
3
+ interface ObservedOutcome {
4
+ outcomeId: string;
5
+ runId: string;
6
+ parentId?: string;
7
+ name: string;
8
+ expectation: string;
9
+ status: ObservedOutcomeStatus;
10
+ method?: ObservedOutcomeMethod;
11
+ actual?: unknown;
12
+ evidence?: unknown;
13
+ observedAt: number;
14
+ }
3
15
  interface ObserveOutcomeOptions {
4
16
  expectation: string;
5
17
  status: ObservedOutcomeStatus;
@@ -9,4 +21,4 @@ interface ObserveOutcomeOptions {
9
21
  observedAt?: number | string;
10
22
  }
11
23
 
12
- export type { ObserveOutcomeOptions as O, ObservedOutcomeStatus as a };
24
+ export type { ObserveOutcomeOptions as O, ObservedOutcome as a, ObservedOutcomeStatus as b };
@@ -1,5 +1,17 @@
1
1
  type ObservedOutcomeStatus = "passed" | "failed" | "unknown" | "skipped";
2
2
  type ObservedOutcomeMethod = "dom" | "accessibility" | "snapshot" | "network" | "storage" | "filesystem" | "database" | "queue" | "custom";
3
+ interface ObservedOutcome {
4
+ outcomeId: string;
5
+ runId: string;
6
+ parentId?: string;
7
+ name: string;
8
+ expectation: string;
9
+ status: ObservedOutcomeStatus;
10
+ method?: ObservedOutcomeMethod;
11
+ actual?: unknown;
12
+ evidence?: unknown;
13
+ observedAt: number;
14
+ }
3
15
  interface ObserveOutcomeOptions {
4
16
  expectation: string;
5
17
  status: ObservedOutcomeStatus;
@@ -9,4 +21,4 @@ interface ObserveOutcomeOptions {
9
21
  observedAt?: number | string;
10
22
  }
11
23
 
12
- export type { ObserveOutcomeOptions as O, ObservedOutcomeStatus as a };
24
+ export type { ObserveOutcomeOptions as O, ObservedOutcome as a, ObservedOutcomeStatus as b };