agent-inspect 1.2.0 → 1.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.
@@ -220,8 +220,17 @@ interface StepCompletedEvent extends TraceEventBase {
220
220
  }
221
221
  /** Discriminated union of all MVP trace events written as JSONL lines. */
222
222
  type TraceEvent = RunStartedEvent | RunCompletedEvent | StepStartedEvent | StepCompletedEvent;
223
+ /** Named redaction presets for trace writing and share-safe exports (v1.3.0+). */
224
+ type RedactionProfile = "local" | "share" | "strict";
225
+ /** Optional correlation fields for grouping and cross-run tracing (v1.3.0+). */
226
+ interface TraceCorrelationMetadata {
227
+ correlationId?: string;
228
+ requestId?: string;
229
+ decisionId?: string;
230
+ groupId?: string;
231
+ }
223
232
  /** Options for `inspectRun()` and `maybeInspectRun()`. */
224
- interface InspectRunOptions {
233
+ interface InspectRunOptions extends TraceCorrelationMetadata {
225
234
  traceDir?: string;
226
235
  silent?: boolean;
227
236
  metadata?: Record<string, unknown>;
@@ -237,6 +246,12 @@ interface InspectRunOptions {
237
246
  redact?: boolean | {
238
247
  rules?: RedactionRule[];
239
248
  };
249
+ /**
250
+ * Redaction preset for trace metadata. Default `local` (same keys as default redaction).
251
+ * `share` and `strict` add extra key-based redaction and tighter string bounds.
252
+ * Ignored when `redact: false`.
253
+ */
254
+ redactionProfile?: RedactionProfile;
240
255
  /** Max UTF-8 bytes for a serialized trace event line. Default 65536. */
241
256
  maxEventBytes?: number;
242
257
  /** Max length for string metadata values (non-preview keys). Default 2000. */
@@ -457,6 +472,8 @@ declare function matchMapping(eventName: string, mappings?: Record<string, LogEv
457
472
  declare const DEFAULT_REDACT_KEYS: readonly ["authorization", "cookie", "token", "apiKey", "password", "secret", "email"];
458
473
  interface RedactorOptions {
459
474
  rules?: RedactionRule[];
475
+ /** Additional exact keys (case-insensitive) to redact in addition to defaults. */
476
+ extraKeys?: readonly string[];
460
477
  }
461
478
  declare class Redactor {
462
479
  #private;
@@ -599,6 +616,15 @@ declare function truncateName(name: string, maxLength?: number): string;
599
616
  */
600
617
  declare function warn(message: string, error?: unknown): void;
601
618
 
619
+ interface ResolvedRedactionProfile {
620
+ profile: RedactionProfile;
621
+ extraKeys: readonly string[];
622
+ maxMetadataValueLengthCap?: number;
623
+ maxPreviewLengthCap?: number;
624
+ }
625
+ /** Resolves named profile behavior (keys + metadata string caps). */
626
+ declare function resolveRedactionProfile(profile?: RedactionProfile): ResolvedRedactionProfile;
627
+
602
628
  /** Default max length for string metadata values (non-preview keys). */
603
629
  declare const DEFAULT_MAX_METADATA_VALUE_LENGTH = 2000;
604
630
  /** Default max length for preview-like metadata keys (contains `preview`, case-insensitive). */
@@ -609,12 +635,15 @@ declare const DEFAULT_MAX_EVENT_BYTES = 65536;
609
635
  interface TraceSafetyOptions {
610
636
  redactEnabled: boolean;
611
637
  redactionRules?: RedactionRule[];
638
+ redactionProfile: RedactionProfile;
639
+ profileExtraKeys: readonly string[];
612
640
  maxMetadataValueLength: number;
613
641
  maxPreviewLength: number;
614
642
  maxEventBytes: number;
615
643
  }
644
+
616
645
  /** Resolves {@link InspectRunOptions} trace safety fields with safe defaults. */
617
- declare function resolveTraceSafetyOptions(options?: Pick<InspectRunOptions, "redact" | "maxEventBytes" | "maxMetadataValueLength" | "maxPreviewLength">): TraceSafetyOptions;
646
+ declare function resolveTraceSafetyOptions(options?: Pick<InspectRunOptions, "redact" | "redactionProfile" | "maxEventBytes" | "maxMetadataValueLength" | "maxPreviewLength">): TraceSafetyOptions;
618
647
  /** Redacts (when enabled) and truncates metadata values for disk persistence. */
619
648
  declare function prepareMetadataForDisk(metadata: Record<string, unknown> | StepMetadata, opts: TraceSafetyOptions): Record<string, unknown>;
620
649
  /**
@@ -627,6 +656,11 @@ declare function prepareTraceEventForDisk(event: TraceEvent, opts: TraceSafetyOp
627
656
  declare function getCurrentContext(): ExecutionContext | undefined;
628
657
  /** Active `runId` when inside `runWithContext`, else `undefined`. */
629
658
  declare function getCurrentRunId(): string | undefined;
659
+ /**
660
+ * Correlation metadata for the active run (`correlationId`, `requestId`, `decisionId`, `groupId`).
661
+ * `undefined` outside `inspectRun` / `maybeInspectRun` or when no correlation fields were set.
662
+ */
663
+ declare function getCurrentCorrelationMetadata(): TraceCorrelationMetadata | undefined;
630
664
  /** Active `runName` when inside `runWithContext`, else `undefined`. */
631
665
  declare function getCurrentRunName(): string | undefined;
632
666
  /**
@@ -887,6 +921,11 @@ interface ExportOptions {
887
921
  pretty?: boolean;
888
922
  redacted?: boolean;
889
923
  maxAttributeLength?: number;
924
+ /**
925
+ * Redaction preset for exported copies. Default `local`.
926
+ * `share` and `strict` apply stronger key-based redaction before rendering.
927
+ */
928
+ redactionProfile?: RedactionProfile;
890
929
  }
891
930
  interface ExportResult {
892
931
  format: ExportFormat;
@@ -961,6 +1000,15 @@ declare function exportOtlpJson(tree: InspectRunTree, options?: Partial<ExportOp
961
1000
 
962
1001
  declare function validateExportContent(format: ExportFormat, content: string): ExportValidationResult;
963
1002
 
1003
+ interface RedactRunTreeForExportOptions {
1004
+ redactionProfile?: RedactionProfile;
1005
+ }
1006
+ /**
1007
+ * Returns a deep copy of `tree` with profile-based redaction applied to event attributes.
1008
+ * Does not mutate the input tree.
1009
+ */
1010
+ declare function redactRunTreeForExport(tree: InspectRunTree, options?: RedactRunTreeForExportOptions): InspectRunTree;
1011
+
964
1012
  declare function mergeExportDefaults(options: ExportOptions): ExportOptions;
965
1013
  /**
966
1014
  * @experimental Compatibility-oriented export API. Exports are local-only and do not upload anywhere.
@@ -969,4 +1017,4 @@ declare function mergeExportDefaults(options: ExportOptions): ExportOptions;
969
1017
  declare function exportRunTree(tree: InspectRunTree, options: ExportOptions): ExportResult;
970
1018
  declare function validateExport(result: ExportResult): ExportValidationResult;
971
1019
 
972
- export { type ActiveStepContext, type AttributionConfidence, DEFAULT_LOG_INGEST_CONFIG, DEFAULT_MAX_EVENT_BYTES, DEFAULT_MAX_METADATA_VALUE_LENGTH, DEFAULT_MAX_PREVIEW_LENGTH, DEFAULT_REDACT_KEYS, DEFAULT_TRACE_DIR_NAME, type DiffKind, type DiffOptions, type DiffPath, type DiffPathSegment, type DiffSeverity, EXPORT_PAYLOAD_VERSION, type ErrorInfo, EventNormalizer, type EventSource, type ExecutionContext, type ExportFormat, type ExportOptions, type ExportResult, type ExportValidationResult, FALLBACK_TRACE_DIR, type InspectEvent, type InspectEventToPersistedOptions, type InspectKind, type InspectNode, type InspectRunOptions, type InspectRunTree, JsonLogParser, LiveLogAccumulator, type LiveLogAccumulatorOptions, type LiveLogUpdate, Log4jsParser, type LogEventMapping, type LogIngestConfig, type LogSourceFormat, type LogToTreeResult, MAX_NAME_LENGTH, MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, type NormalizeOptions, type ObserveOptions, type OpenInferenceExport, type OpenInferenceSpan, type ParseLogLineOptions, type ParseLogsOptions, type ParseResult, type ParserWarning, type ParserWarningCode, type PersistedEventSource, type PersistedEventSourceType, type PersistedEventStatus, type PersistedInspectError, type PersistedInspectEvent, type PersistedSchemaVersion, type PersistedToInspectEventOptions, type PersistedTokenUsage, type PersistedTraceContext, type PersistedTreeBridgeOptions, RUNS_DIR_NAME, type RawLogRecord, type RedactionRule, type RedactionStrategy, Redactor, type RedactorOptions, type RenderDiffOptions, type RenderTreeOptions, type Run, type RunComparable, type RunCompletedEvent, type RunDiffItem, type RunDiffResult, type RunDiffSummary, type RunStartedEvent, type RunStatus, type RunSummary, type Step, type StepComparable, type StepCompletedEvent, type StepMetadata, type StepOptions, type StepStartedEvent, type StepStatus, type StepType, TERMINAL_INDENT, type TokenMetadata, TraceDirectory, type TraceDirectoryOptions, type TraceEvent, type TraceEventBase, type TraceEventToPersistedOptions, type TraceExporter, type TraceFilterOptions, type TraceMetadata, type TraceMetadataStatus, type TraceSafetyOptions, type TraceSchemaVersion, TreeBuilder, type TreeBuilderOptions, buildRunSummary, compactAttributes, createRunId, createStepId, diffRuns, diffTraceEvents, ensureTraceDir, escapeHtml, escapeMarkdown, exportHtml, exportMarkdown, exportOpenInference, exportOtlpJson, exportRunTree, extractMetadata, filterTraces, flattenTree, formatDuration, formatError, formatTerminalName, formatTimestamp, getCurrentContext, getCurrentDepth, getCurrentRunId, getCurrentRunName, getCurrentStepId, getDefaultTraceDir, getIndent, getParentStepId, getRunIdFromTraceFileName, getTraceDirFromContext, getTraceFilePath, getTraceSafetyFromContext, hasActiveContext, initializeTraceFile, inspectEventToPersistedInspectEvent, inspectEventsToPersistedInspectEvents, inspectRun, isAgentInspectEnabled, isAgentInspectTrace, isPersistedInspectEvent, isSilentContext, isStepStatus, isStepType, isTraceEvent, listTraceFiles, loadLogIngestConfig, manualTraceEventsToComparableRun, manualTraceEventsToRunTree, matchMapping, maybeInspectRun, mergeExportDefaults, mergeLogIngestConfig, observe, parseDuration, parseLogLine, parseLogsToTrees, persistedInspectEventToInspectEvent, persistedInspectEventsToInspectEvents, persistedInspectEventsToRunTrees, prepareMetadataForDisk, prepareTraceEventForDisk, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, renderErrorLine, renderRunDiff, renderRunSummary, renderRunTree, renderRunTrees, renderStepLine, resolveTraceDir, resolveTraceSafetyOptions, runWithContext, runWithStepContext, safeString, serializeEvent, stableJson, step, summarizeTree, traceEventToPersistedInspectEvent, traceEventsToPersistedInspectEvents, traceEventsToPersistedRunTrees, truncateName, validateEvent, validateExport, validateExportContent, warn, wildcardMatch, writeTraceEvent };
1020
+ export { type ActiveStepContext, type AttributionConfidence, DEFAULT_LOG_INGEST_CONFIG, DEFAULT_MAX_EVENT_BYTES, DEFAULT_MAX_METADATA_VALUE_LENGTH, DEFAULT_MAX_PREVIEW_LENGTH, DEFAULT_REDACT_KEYS, DEFAULT_TRACE_DIR_NAME, type DiffKind, type DiffOptions, type DiffPath, type DiffPathSegment, type DiffSeverity, EXPORT_PAYLOAD_VERSION, type ErrorInfo, EventNormalizer, type EventSource, type ExecutionContext, type ExportFormat, type ExportOptions, type ExportResult, type ExportValidationResult, FALLBACK_TRACE_DIR, type InspectEvent, type InspectEventToPersistedOptions, type InspectKind, type InspectNode, type InspectRunOptions, type InspectRunTree, JsonLogParser, LiveLogAccumulator, type LiveLogAccumulatorOptions, type LiveLogUpdate, Log4jsParser, type LogEventMapping, type LogIngestConfig, type LogSourceFormat, type LogToTreeResult, MAX_NAME_LENGTH, MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, type NormalizeOptions, type ObserveOptions, type OpenInferenceExport, type OpenInferenceSpan, type ParseLogLineOptions, type ParseLogsOptions, type ParseResult, type ParserWarning, type ParserWarningCode, type PersistedEventSource, type PersistedEventSourceType, type PersistedEventStatus, type PersistedInspectError, type PersistedInspectEvent, type PersistedSchemaVersion, type PersistedToInspectEventOptions, type PersistedTokenUsage, type PersistedTraceContext, type PersistedTreeBridgeOptions, RUNS_DIR_NAME, type RawLogRecord, type RedactionProfile, type RedactionRule, type RedactionStrategy, Redactor, type RedactorOptions, type RenderDiffOptions, type RenderTreeOptions, type ResolvedRedactionProfile, type Run, type RunComparable, type RunCompletedEvent, type RunDiffItem, type RunDiffResult, type RunDiffSummary, type RunStartedEvent, type RunStatus, type RunSummary, type Step, type StepComparable, type StepCompletedEvent, type StepMetadata, type StepOptions, type StepStartedEvent, type StepStatus, type StepType, TERMINAL_INDENT, type TokenMetadata, type TraceCorrelationMetadata, TraceDirectory, type TraceDirectoryOptions, type TraceEvent, type TraceEventBase, type TraceEventToPersistedOptions, type TraceExporter, type TraceFilterOptions, type TraceMetadata, type TraceMetadataStatus, type TraceSafetyOptions, type TraceSchemaVersion, TreeBuilder, type TreeBuilderOptions, buildRunSummary, compactAttributes, createRunId, createStepId, diffRuns, diffTraceEvents, ensureTraceDir, escapeHtml, escapeMarkdown, exportHtml, exportMarkdown, exportOpenInference, exportOtlpJson, exportRunTree, extractMetadata, filterTraces, flattenTree, formatDuration, formatError, formatTerminalName, formatTimestamp, getCurrentContext, getCurrentCorrelationMetadata, getCurrentDepth, getCurrentRunId, getCurrentRunName, getCurrentStepId, getDefaultTraceDir, getIndent, getParentStepId, getRunIdFromTraceFileName, getTraceDirFromContext, getTraceFilePath, getTraceSafetyFromContext, hasActiveContext, initializeTraceFile, inspectEventToPersistedInspectEvent, inspectEventsToPersistedInspectEvents, inspectRun, isAgentInspectEnabled, isAgentInspectTrace, isPersistedInspectEvent, isSilentContext, isStepStatus, isStepType, isTraceEvent, listTraceFiles, loadLogIngestConfig, manualTraceEventsToComparableRun, manualTraceEventsToRunTree, matchMapping, maybeInspectRun, mergeExportDefaults, mergeLogIngestConfig, observe, parseDuration, parseLogLine, parseLogsToTrees, persistedInspectEventToInspectEvent, persistedInspectEventsToInspectEvents, persistedInspectEventsToRunTrees, prepareMetadataForDisk, prepareTraceEventForDisk, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, redactRunTreeForExport, renderErrorLine, renderRunDiff, renderRunSummary, renderRunTree, renderRunTrees, renderStepLine, resolveRedactionProfile, resolveTraceDir, resolveTraceSafetyOptions, runWithContext, runWithStepContext, safeString, serializeEvent, stableJson, step, summarizeTree, traceEventToPersistedInspectEvent, traceEventsToPersistedInspectEvents, traceEventsToPersistedRunTrees, truncateName, validateEvent, validateExport, validateExportContent, warn, wildcardMatch, writeTraceEvent };
@@ -220,8 +220,17 @@ interface StepCompletedEvent extends TraceEventBase {
220
220
  }
221
221
  /** Discriminated union of all MVP trace events written as JSONL lines. */
222
222
  type TraceEvent = RunStartedEvent | RunCompletedEvent | StepStartedEvent | StepCompletedEvent;
223
+ /** Named redaction presets for trace writing and share-safe exports (v1.3.0+). */
224
+ type RedactionProfile = "local" | "share" | "strict";
225
+ /** Optional correlation fields for grouping and cross-run tracing (v1.3.0+). */
226
+ interface TraceCorrelationMetadata {
227
+ correlationId?: string;
228
+ requestId?: string;
229
+ decisionId?: string;
230
+ groupId?: string;
231
+ }
223
232
  /** Options for `inspectRun()` and `maybeInspectRun()`. */
224
- interface InspectRunOptions {
233
+ interface InspectRunOptions extends TraceCorrelationMetadata {
225
234
  traceDir?: string;
226
235
  silent?: boolean;
227
236
  metadata?: Record<string, unknown>;
@@ -237,6 +246,12 @@ interface InspectRunOptions {
237
246
  redact?: boolean | {
238
247
  rules?: RedactionRule[];
239
248
  };
249
+ /**
250
+ * Redaction preset for trace metadata. Default `local` (same keys as default redaction).
251
+ * `share` and `strict` add extra key-based redaction and tighter string bounds.
252
+ * Ignored when `redact: false`.
253
+ */
254
+ redactionProfile?: RedactionProfile;
240
255
  /** Max UTF-8 bytes for a serialized trace event line. Default 65536. */
241
256
  maxEventBytes?: number;
242
257
  /** Max length for string metadata values (non-preview keys). Default 2000. */
@@ -457,6 +472,8 @@ declare function matchMapping(eventName: string, mappings?: Record<string, LogEv
457
472
  declare const DEFAULT_REDACT_KEYS: readonly ["authorization", "cookie", "token", "apiKey", "password", "secret", "email"];
458
473
  interface RedactorOptions {
459
474
  rules?: RedactionRule[];
475
+ /** Additional exact keys (case-insensitive) to redact in addition to defaults. */
476
+ extraKeys?: readonly string[];
460
477
  }
461
478
  declare class Redactor {
462
479
  #private;
@@ -599,6 +616,15 @@ declare function truncateName(name: string, maxLength?: number): string;
599
616
  */
600
617
  declare function warn(message: string, error?: unknown): void;
601
618
 
619
+ interface ResolvedRedactionProfile {
620
+ profile: RedactionProfile;
621
+ extraKeys: readonly string[];
622
+ maxMetadataValueLengthCap?: number;
623
+ maxPreviewLengthCap?: number;
624
+ }
625
+ /** Resolves named profile behavior (keys + metadata string caps). */
626
+ declare function resolveRedactionProfile(profile?: RedactionProfile): ResolvedRedactionProfile;
627
+
602
628
  /** Default max length for string metadata values (non-preview keys). */
603
629
  declare const DEFAULT_MAX_METADATA_VALUE_LENGTH = 2000;
604
630
  /** Default max length for preview-like metadata keys (contains `preview`, case-insensitive). */
@@ -609,12 +635,15 @@ declare const DEFAULT_MAX_EVENT_BYTES = 65536;
609
635
  interface TraceSafetyOptions {
610
636
  redactEnabled: boolean;
611
637
  redactionRules?: RedactionRule[];
638
+ redactionProfile: RedactionProfile;
639
+ profileExtraKeys: readonly string[];
612
640
  maxMetadataValueLength: number;
613
641
  maxPreviewLength: number;
614
642
  maxEventBytes: number;
615
643
  }
644
+
616
645
  /** Resolves {@link InspectRunOptions} trace safety fields with safe defaults. */
617
- declare function resolveTraceSafetyOptions(options?: Pick<InspectRunOptions, "redact" | "maxEventBytes" | "maxMetadataValueLength" | "maxPreviewLength">): TraceSafetyOptions;
646
+ declare function resolveTraceSafetyOptions(options?: Pick<InspectRunOptions, "redact" | "redactionProfile" | "maxEventBytes" | "maxMetadataValueLength" | "maxPreviewLength">): TraceSafetyOptions;
618
647
  /** Redacts (when enabled) and truncates metadata values for disk persistence. */
619
648
  declare function prepareMetadataForDisk(metadata: Record<string, unknown> | StepMetadata, opts: TraceSafetyOptions): Record<string, unknown>;
620
649
  /**
@@ -627,6 +656,11 @@ declare function prepareTraceEventForDisk(event: TraceEvent, opts: TraceSafetyOp
627
656
  declare function getCurrentContext(): ExecutionContext | undefined;
628
657
  /** Active `runId` when inside `runWithContext`, else `undefined`. */
629
658
  declare function getCurrentRunId(): string | undefined;
659
+ /**
660
+ * Correlation metadata for the active run (`correlationId`, `requestId`, `decisionId`, `groupId`).
661
+ * `undefined` outside `inspectRun` / `maybeInspectRun` or when no correlation fields were set.
662
+ */
663
+ declare function getCurrentCorrelationMetadata(): TraceCorrelationMetadata | undefined;
630
664
  /** Active `runName` when inside `runWithContext`, else `undefined`. */
631
665
  declare function getCurrentRunName(): string | undefined;
632
666
  /**
@@ -887,6 +921,11 @@ interface ExportOptions {
887
921
  pretty?: boolean;
888
922
  redacted?: boolean;
889
923
  maxAttributeLength?: number;
924
+ /**
925
+ * Redaction preset for exported copies. Default `local`.
926
+ * `share` and `strict` apply stronger key-based redaction before rendering.
927
+ */
928
+ redactionProfile?: RedactionProfile;
890
929
  }
891
930
  interface ExportResult {
892
931
  format: ExportFormat;
@@ -961,6 +1000,15 @@ declare function exportOtlpJson(tree: InspectRunTree, options?: Partial<ExportOp
961
1000
 
962
1001
  declare function validateExportContent(format: ExportFormat, content: string): ExportValidationResult;
963
1002
 
1003
+ interface RedactRunTreeForExportOptions {
1004
+ redactionProfile?: RedactionProfile;
1005
+ }
1006
+ /**
1007
+ * Returns a deep copy of `tree` with profile-based redaction applied to event attributes.
1008
+ * Does not mutate the input tree.
1009
+ */
1010
+ declare function redactRunTreeForExport(tree: InspectRunTree, options?: RedactRunTreeForExportOptions): InspectRunTree;
1011
+
964
1012
  declare function mergeExportDefaults(options: ExportOptions): ExportOptions;
965
1013
  /**
966
1014
  * @experimental Compatibility-oriented export API. Exports are local-only and do not upload anywhere.
@@ -969,4 +1017,4 @@ declare function mergeExportDefaults(options: ExportOptions): ExportOptions;
969
1017
  declare function exportRunTree(tree: InspectRunTree, options: ExportOptions): ExportResult;
970
1018
  declare function validateExport(result: ExportResult): ExportValidationResult;
971
1019
 
972
- export { type ActiveStepContext, type AttributionConfidence, DEFAULT_LOG_INGEST_CONFIG, DEFAULT_MAX_EVENT_BYTES, DEFAULT_MAX_METADATA_VALUE_LENGTH, DEFAULT_MAX_PREVIEW_LENGTH, DEFAULT_REDACT_KEYS, DEFAULT_TRACE_DIR_NAME, type DiffKind, type DiffOptions, type DiffPath, type DiffPathSegment, type DiffSeverity, EXPORT_PAYLOAD_VERSION, type ErrorInfo, EventNormalizer, type EventSource, type ExecutionContext, type ExportFormat, type ExportOptions, type ExportResult, type ExportValidationResult, FALLBACK_TRACE_DIR, type InspectEvent, type InspectEventToPersistedOptions, type InspectKind, type InspectNode, type InspectRunOptions, type InspectRunTree, JsonLogParser, LiveLogAccumulator, type LiveLogAccumulatorOptions, type LiveLogUpdate, Log4jsParser, type LogEventMapping, type LogIngestConfig, type LogSourceFormat, type LogToTreeResult, MAX_NAME_LENGTH, MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, type NormalizeOptions, type ObserveOptions, type OpenInferenceExport, type OpenInferenceSpan, type ParseLogLineOptions, type ParseLogsOptions, type ParseResult, type ParserWarning, type ParserWarningCode, type PersistedEventSource, type PersistedEventSourceType, type PersistedEventStatus, type PersistedInspectError, type PersistedInspectEvent, type PersistedSchemaVersion, type PersistedToInspectEventOptions, type PersistedTokenUsage, type PersistedTraceContext, type PersistedTreeBridgeOptions, RUNS_DIR_NAME, type RawLogRecord, type RedactionRule, type RedactionStrategy, Redactor, type RedactorOptions, type RenderDiffOptions, type RenderTreeOptions, type Run, type RunComparable, type RunCompletedEvent, type RunDiffItem, type RunDiffResult, type RunDiffSummary, type RunStartedEvent, type RunStatus, type RunSummary, type Step, type StepComparable, type StepCompletedEvent, type StepMetadata, type StepOptions, type StepStartedEvent, type StepStatus, type StepType, TERMINAL_INDENT, type TokenMetadata, TraceDirectory, type TraceDirectoryOptions, type TraceEvent, type TraceEventBase, type TraceEventToPersistedOptions, type TraceExporter, type TraceFilterOptions, type TraceMetadata, type TraceMetadataStatus, type TraceSafetyOptions, type TraceSchemaVersion, TreeBuilder, type TreeBuilderOptions, buildRunSummary, compactAttributes, createRunId, createStepId, diffRuns, diffTraceEvents, ensureTraceDir, escapeHtml, escapeMarkdown, exportHtml, exportMarkdown, exportOpenInference, exportOtlpJson, exportRunTree, extractMetadata, filterTraces, flattenTree, formatDuration, formatError, formatTerminalName, formatTimestamp, getCurrentContext, getCurrentDepth, getCurrentRunId, getCurrentRunName, getCurrentStepId, getDefaultTraceDir, getIndent, getParentStepId, getRunIdFromTraceFileName, getTraceDirFromContext, getTraceFilePath, getTraceSafetyFromContext, hasActiveContext, initializeTraceFile, inspectEventToPersistedInspectEvent, inspectEventsToPersistedInspectEvents, inspectRun, isAgentInspectEnabled, isAgentInspectTrace, isPersistedInspectEvent, isSilentContext, isStepStatus, isStepType, isTraceEvent, listTraceFiles, loadLogIngestConfig, manualTraceEventsToComparableRun, manualTraceEventsToRunTree, matchMapping, maybeInspectRun, mergeExportDefaults, mergeLogIngestConfig, observe, parseDuration, parseLogLine, parseLogsToTrees, persistedInspectEventToInspectEvent, persistedInspectEventsToInspectEvents, persistedInspectEventsToRunTrees, prepareMetadataForDisk, prepareTraceEventForDisk, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, renderErrorLine, renderRunDiff, renderRunSummary, renderRunTree, renderRunTrees, renderStepLine, resolveTraceDir, resolveTraceSafetyOptions, runWithContext, runWithStepContext, safeString, serializeEvent, stableJson, step, summarizeTree, traceEventToPersistedInspectEvent, traceEventsToPersistedInspectEvents, traceEventsToPersistedRunTrees, truncateName, validateEvent, validateExport, validateExportContent, warn, wildcardMatch, writeTraceEvent };
1020
+ export { type ActiveStepContext, type AttributionConfidence, DEFAULT_LOG_INGEST_CONFIG, DEFAULT_MAX_EVENT_BYTES, DEFAULT_MAX_METADATA_VALUE_LENGTH, DEFAULT_MAX_PREVIEW_LENGTH, DEFAULT_REDACT_KEYS, DEFAULT_TRACE_DIR_NAME, type DiffKind, type DiffOptions, type DiffPath, type DiffPathSegment, type DiffSeverity, EXPORT_PAYLOAD_VERSION, type ErrorInfo, EventNormalizer, type EventSource, type ExecutionContext, type ExportFormat, type ExportOptions, type ExportResult, type ExportValidationResult, FALLBACK_TRACE_DIR, type InspectEvent, type InspectEventToPersistedOptions, type InspectKind, type InspectNode, type InspectRunOptions, type InspectRunTree, JsonLogParser, LiveLogAccumulator, type LiveLogAccumulatorOptions, type LiveLogUpdate, Log4jsParser, type LogEventMapping, type LogIngestConfig, type LogSourceFormat, type LogToTreeResult, MAX_NAME_LENGTH, MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, type NormalizeOptions, type ObserveOptions, type OpenInferenceExport, type OpenInferenceSpan, type ParseLogLineOptions, type ParseLogsOptions, type ParseResult, type ParserWarning, type ParserWarningCode, type PersistedEventSource, type PersistedEventSourceType, type PersistedEventStatus, type PersistedInspectError, type PersistedInspectEvent, type PersistedSchemaVersion, type PersistedToInspectEventOptions, type PersistedTokenUsage, type PersistedTraceContext, type PersistedTreeBridgeOptions, RUNS_DIR_NAME, type RawLogRecord, type RedactionProfile, type RedactionRule, type RedactionStrategy, Redactor, type RedactorOptions, type RenderDiffOptions, type RenderTreeOptions, type ResolvedRedactionProfile, type Run, type RunComparable, type RunCompletedEvent, type RunDiffItem, type RunDiffResult, type RunDiffSummary, type RunStartedEvent, type RunStatus, type RunSummary, type Step, type StepComparable, type StepCompletedEvent, type StepMetadata, type StepOptions, type StepStartedEvent, type StepStatus, type StepType, TERMINAL_INDENT, type TokenMetadata, type TraceCorrelationMetadata, TraceDirectory, type TraceDirectoryOptions, type TraceEvent, type TraceEventBase, type TraceEventToPersistedOptions, type TraceExporter, type TraceFilterOptions, type TraceMetadata, type TraceMetadataStatus, type TraceSafetyOptions, type TraceSchemaVersion, TreeBuilder, type TreeBuilderOptions, buildRunSummary, compactAttributes, createRunId, createStepId, diffRuns, diffTraceEvents, ensureTraceDir, escapeHtml, escapeMarkdown, exportHtml, exportMarkdown, exportOpenInference, exportOtlpJson, exportRunTree, extractMetadata, filterTraces, flattenTree, formatDuration, formatError, formatTerminalName, formatTimestamp, getCurrentContext, getCurrentCorrelationMetadata, getCurrentDepth, getCurrentRunId, getCurrentRunName, getCurrentStepId, getDefaultTraceDir, getIndent, getParentStepId, getRunIdFromTraceFileName, getTraceDirFromContext, getTraceFilePath, getTraceSafetyFromContext, hasActiveContext, initializeTraceFile, inspectEventToPersistedInspectEvent, inspectEventsToPersistedInspectEvents, inspectRun, isAgentInspectEnabled, isAgentInspectTrace, isPersistedInspectEvent, isSilentContext, isStepStatus, isStepType, isTraceEvent, listTraceFiles, loadLogIngestConfig, manualTraceEventsToComparableRun, manualTraceEventsToRunTree, matchMapping, maybeInspectRun, mergeExportDefaults, mergeLogIngestConfig, observe, parseDuration, parseLogLine, parseLogsToTrees, persistedInspectEventToInspectEvent, persistedInspectEventsToInspectEvents, persistedInspectEventsToRunTrees, prepareMetadataForDisk, prepareTraceEventForDisk, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, redactRunTreeForExport, renderErrorLine, renderRunDiff, renderRunSummary, renderRunTree, renderRunTrees, renderStepLine, resolveRedactionProfile, resolveTraceDir, resolveTraceSafetyOptions, runWithContext, runWithStepContext, safeString, serializeEvent, stableJson, step, summarizeTree, traceEventToPersistedInspectEvent, traceEventsToPersistedInspectEvents, traceEventsToPersistedRunTrees, truncateName, validateEvent, validateExport, validateExportContent, warn, wildcardMatch, writeTraceEvent };