agent-inspect 1.2.0 → 1.4.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/CHANGELOG.md +41 -4
- package/README.md +41 -38
- package/docs/ADAPTERS.md +122 -21
- package/docs/API.md +25 -7
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/CLI.md +71 -2
- package/docs/EXPORTS.md +80 -8
- package/docs/GETTING-STARTED.md +29 -1
- package/docs/KNOWN-ISSUES.md +6 -0
- package/docs/LIMITATIONS.md +17 -0
- package/docs/SCHEMA.md +6 -4
- package/package.json +1 -1
- package/packages/cli/dist/index.cjs +1019 -14
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +1019 -14
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/core/dist/index.cjs +890 -14
- package/packages/core/dist/index.cjs.map +1 -1
- package/packages/core/dist/index.d.cts +176 -3
- package/packages/core/dist/index.d.ts +176 -3
- package/packages/core/dist/index.mjs +881 -15
- package/packages/core/dist/index.mjs.map +1 -1
|
@@ -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
|
/**
|
|
@@ -705,6 +739,131 @@ interface TraceFilterOptions {
|
|
|
705
739
|
}
|
|
706
740
|
declare function filterTraces(traces: TraceMetadata[], options: TraceFilterOptions): TraceMetadata[];
|
|
707
741
|
|
|
742
|
+
type TimelineFocus = "all" | "slow";
|
|
743
|
+
interface TimelineEntry {
|
|
744
|
+
stepId: string;
|
|
745
|
+
name: string;
|
|
746
|
+
type: StepType;
|
|
747
|
+
status: StepStatus;
|
|
748
|
+
depth: number;
|
|
749
|
+
startedAt: number;
|
|
750
|
+
offsetMs: number;
|
|
751
|
+
durationMs?: number;
|
|
752
|
+
isError: boolean;
|
|
753
|
+
slow?: boolean;
|
|
754
|
+
streaming?: {
|
|
755
|
+
chunkCount?: number;
|
|
756
|
+
streamDurationMs?: number;
|
|
757
|
+
streamedCharCount?: number;
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
interface RunTimeline {
|
|
761
|
+
runId: string;
|
|
762
|
+
name?: string;
|
|
763
|
+
status: TraceMetadataStatus;
|
|
764
|
+
startedAt?: number;
|
|
765
|
+
endedAt?: number;
|
|
766
|
+
durationMs?: number;
|
|
767
|
+
correlation?: {
|
|
768
|
+
correlationId?: string;
|
|
769
|
+
requestId?: string;
|
|
770
|
+
decisionId?: string;
|
|
771
|
+
groupId?: string;
|
|
772
|
+
};
|
|
773
|
+
entries: TimelineEntry[];
|
|
774
|
+
}
|
|
775
|
+
interface TimelineOptions {
|
|
776
|
+
focus?: TimelineFocus;
|
|
777
|
+
slowTopN?: number;
|
|
778
|
+
}
|
|
779
|
+
declare function buildRunTimeline(events: TraceEvent[], options?: TimelineOptions): RunTimeline;
|
|
780
|
+
interface RenderTimelineOptions {
|
|
781
|
+
focus?: TimelineFocus;
|
|
782
|
+
}
|
|
783
|
+
declare function renderTimeline(timeline: RunTimeline, options?: RenderTimelineOptions): string;
|
|
784
|
+
|
|
785
|
+
interface DurationStats {
|
|
786
|
+
minMs?: number;
|
|
787
|
+
maxMs?: number;
|
|
788
|
+
avgMs?: number;
|
|
789
|
+
p50Ms?: number;
|
|
790
|
+
p95Ms?: number;
|
|
791
|
+
}
|
|
792
|
+
interface TraceStatsRankedRun {
|
|
793
|
+
runId: string;
|
|
794
|
+
name?: string;
|
|
795
|
+
durationMs?: number;
|
|
796
|
+
status: string;
|
|
797
|
+
}
|
|
798
|
+
interface TraceStatsRankedStep {
|
|
799
|
+
runId: string;
|
|
800
|
+
stepName: string;
|
|
801
|
+
stepType: string;
|
|
802
|
+
durationMs: number;
|
|
803
|
+
}
|
|
804
|
+
interface TraceStats {
|
|
805
|
+
traceDir: string;
|
|
806
|
+
since?: string;
|
|
807
|
+
correlationId?: string;
|
|
808
|
+
groupId?: string;
|
|
809
|
+
totalRuns: number;
|
|
810
|
+
successCount: number;
|
|
811
|
+
errorCount: number;
|
|
812
|
+
runningCount: number;
|
|
813
|
+
unknownCount: number;
|
|
814
|
+
errorRate: number;
|
|
815
|
+
duration: DurationStats;
|
|
816
|
+
totalSteps: number;
|
|
817
|
+
avgStepsPerRun: number;
|
|
818
|
+
totalLlmSteps: number;
|
|
819
|
+
totalToolSteps: number;
|
|
820
|
+
totalErrorSteps: number;
|
|
821
|
+
slowestRuns: TraceStatsRankedRun[];
|
|
822
|
+
slowestSteps: TraceStatsRankedStep[];
|
|
823
|
+
}
|
|
824
|
+
interface TraceStatsOptions {
|
|
825
|
+
traceDir: string;
|
|
826
|
+
since?: string;
|
|
827
|
+
correlationId?: string;
|
|
828
|
+
groupId?: string;
|
|
829
|
+
slowRunLimit?: number;
|
|
830
|
+
slowStepLimit?: number;
|
|
831
|
+
}
|
|
832
|
+
declare function buildTraceStats(metas: TraceMetadata[], options: TraceStatsOptions): Promise<TraceStats>;
|
|
833
|
+
declare function renderTraceStats(stats: TraceStats): string;
|
|
834
|
+
|
|
835
|
+
interface TraceSearchOptions {
|
|
836
|
+
traceDir: string;
|
|
837
|
+
since?: string;
|
|
838
|
+
status?: "success" | "error" | "running" | "unknown";
|
|
839
|
+
kind?: string;
|
|
840
|
+
type?: string;
|
|
841
|
+
name?: string;
|
|
842
|
+
tool?: string;
|
|
843
|
+
duration?: string;
|
|
844
|
+
limit?: number;
|
|
845
|
+
}
|
|
846
|
+
interface TraceSearchResult {
|
|
847
|
+
runId: string;
|
|
848
|
+
runName?: string;
|
|
849
|
+
runStatus: string;
|
|
850
|
+
stepId?: string;
|
|
851
|
+
stepName?: string;
|
|
852
|
+
stepType?: string;
|
|
853
|
+
timestamp?: number;
|
|
854
|
+
durationMs?: number;
|
|
855
|
+
matchReason: string;
|
|
856
|
+
matchedFields: string[];
|
|
857
|
+
filePath: string;
|
|
858
|
+
}
|
|
859
|
+
interface ParsedDurationFilter {
|
|
860
|
+
op: ">" | ">=" | "<" | "<=";
|
|
861
|
+
ms: number;
|
|
862
|
+
}
|
|
863
|
+
declare function parseDurationFilter(expr: string): ParsedDurationFilter;
|
|
864
|
+
declare function searchTraces(metas: TraceMetadata[], options: TraceSearchOptions): Promise<TraceSearchResult[]>;
|
|
865
|
+
declare function loadTraceMetadataList(_traceDir: string, fileNames: string[], getPath: (fileName: string) => string): Promise<TraceMetadata[]>;
|
|
866
|
+
|
|
708
867
|
/**
|
|
709
868
|
* Safety check for cleanup workflows: returns true only when the file appears to be an AgentInspect trace.
|
|
710
869
|
* This should be conservative: false positives are more dangerous than false negatives.
|
|
@@ -887,6 +1046,11 @@ interface ExportOptions {
|
|
|
887
1046
|
pretty?: boolean;
|
|
888
1047
|
redacted?: boolean;
|
|
889
1048
|
maxAttributeLength?: number;
|
|
1049
|
+
/**
|
|
1050
|
+
* Redaction preset for exported copies. Default `local`.
|
|
1051
|
+
* `share` and `strict` apply stronger key-based redaction before rendering.
|
|
1052
|
+
*/
|
|
1053
|
+
redactionProfile?: RedactionProfile;
|
|
890
1054
|
}
|
|
891
1055
|
interface ExportResult {
|
|
892
1056
|
format: ExportFormat;
|
|
@@ -961,6 +1125,15 @@ declare function exportOtlpJson(tree: InspectRunTree, options?: Partial<ExportOp
|
|
|
961
1125
|
|
|
962
1126
|
declare function validateExportContent(format: ExportFormat, content: string): ExportValidationResult;
|
|
963
1127
|
|
|
1128
|
+
interface RedactRunTreeForExportOptions {
|
|
1129
|
+
redactionProfile?: RedactionProfile;
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Returns a deep copy of `tree` with profile-based redaction applied to event attributes.
|
|
1133
|
+
* Does not mutate the input tree.
|
|
1134
|
+
*/
|
|
1135
|
+
declare function redactRunTreeForExport(tree: InspectRunTree, options?: RedactRunTreeForExportOptions): InspectRunTree;
|
|
1136
|
+
|
|
964
1137
|
declare function mergeExportDefaults(options: ExportOptions): ExportOptions;
|
|
965
1138
|
/**
|
|
966
1139
|
* @experimental Compatibility-oriented export API. Exports are local-only and do not upload anywhere.
|
|
@@ -969,4 +1142,4 @@ declare function mergeExportDefaults(options: ExportOptions): ExportOptions;
|
|
|
969
1142
|
declare function exportRunTree(tree: InspectRunTree, options: ExportOptions): ExportResult;
|
|
970
1143
|
declare function validateExport(result: ExportResult): ExportValidationResult;
|
|
971
1144
|
|
|
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 };
|
|
1145
|
+
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, type DurationStats, 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 ParsedDurationFilter, 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 RenderTimelineOptions, type RenderTreeOptions, type ResolvedRedactionProfile, type Run, type RunComparable, type RunCompletedEvent, type RunDiffItem, type RunDiffResult, type RunDiffSummary, type RunStartedEvent, type RunStatus, type RunSummary, type RunTimeline, type Step, type StepComparable, type StepCompletedEvent, type StepMetadata, type StepOptions, type StepStartedEvent, type StepStatus, type StepType, TERMINAL_INDENT, type TimelineEntry, type TimelineFocus, type TimelineOptions, 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, type TraceSearchOptions, type TraceSearchResult, type TraceStats, type TraceStatsOptions, type TraceStatsRankedRun, type TraceStatsRankedStep, TreeBuilder, type TreeBuilderOptions, buildRunSummary, buildRunTimeline, buildTraceStats, 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, loadTraceMetadataList, manualTraceEventsToComparableRun, manualTraceEventsToRunTree, matchMapping, maybeInspectRun, mergeExportDefaults, mergeLogIngestConfig, observe, parseDuration, parseDurationFilter, parseLogLine, parseLogsToTrees, persistedInspectEventToInspectEvent, persistedInspectEventsToInspectEvents, persistedInspectEventsToRunTrees, prepareMetadataForDisk, prepareTraceEventForDisk, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, redactRunTreeForExport, renderErrorLine, renderRunDiff, renderRunSummary, renderRunTree, renderRunTrees, renderStepLine, renderTimeline, renderTraceStats, resolveRedactionProfile, resolveTraceDir, resolveTraceSafetyOptions, runWithContext, runWithStepContext, safeString, searchTraces, 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
|
/**
|
|
@@ -705,6 +739,131 @@ interface TraceFilterOptions {
|
|
|
705
739
|
}
|
|
706
740
|
declare function filterTraces(traces: TraceMetadata[], options: TraceFilterOptions): TraceMetadata[];
|
|
707
741
|
|
|
742
|
+
type TimelineFocus = "all" | "slow";
|
|
743
|
+
interface TimelineEntry {
|
|
744
|
+
stepId: string;
|
|
745
|
+
name: string;
|
|
746
|
+
type: StepType;
|
|
747
|
+
status: StepStatus;
|
|
748
|
+
depth: number;
|
|
749
|
+
startedAt: number;
|
|
750
|
+
offsetMs: number;
|
|
751
|
+
durationMs?: number;
|
|
752
|
+
isError: boolean;
|
|
753
|
+
slow?: boolean;
|
|
754
|
+
streaming?: {
|
|
755
|
+
chunkCount?: number;
|
|
756
|
+
streamDurationMs?: number;
|
|
757
|
+
streamedCharCount?: number;
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
interface RunTimeline {
|
|
761
|
+
runId: string;
|
|
762
|
+
name?: string;
|
|
763
|
+
status: TraceMetadataStatus;
|
|
764
|
+
startedAt?: number;
|
|
765
|
+
endedAt?: number;
|
|
766
|
+
durationMs?: number;
|
|
767
|
+
correlation?: {
|
|
768
|
+
correlationId?: string;
|
|
769
|
+
requestId?: string;
|
|
770
|
+
decisionId?: string;
|
|
771
|
+
groupId?: string;
|
|
772
|
+
};
|
|
773
|
+
entries: TimelineEntry[];
|
|
774
|
+
}
|
|
775
|
+
interface TimelineOptions {
|
|
776
|
+
focus?: TimelineFocus;
|
|
777
|
+
slowTopN?: number;
|
|
778
|
+
}
|
|
779
|
+
declare function buildRunTimeline(events: TraceEvent[], options?: TimelineOptions): RunTimeline;
|
|
780
|
+
interface RenderTimelineOptions {
|
|
781
|
+
focus?: TimelineFocus;
|
|
782
|
+
}
|
|
783
|
+
declare function renderTimeline(timeline: RunTimeline, options?: RenderTimelineOptions): string;
|
|
784
|
+
|
|
785
|
+
interface DurationStats {
|
|
786
|
+
minMs?: number;
|
|
787
|
+
maxMs?: number;
|
|
788
|
+
avgMs?: number;
|
|
789
|
+
p50Ms?: number;
|
|
790
|
+
p95Ms?: number;
|
|
791
|
+
}
|
|
792
|
+
interface TraceStatsRankedRun {
|
|
793
|
+
runId: string;
|
|
794
|
+
name?: string;
|
|
795
|
+
durationMs?: number;
|
|
796
|
+
status: string;
|
|
797
|
+
}
|
|
798
|
+
interface TraceStatsRankedStep {
|
|
799
|
+
runId: string;
|
|
800
|
+
stepName: string;
|
|
801
|
+
stepType: string;
|
|
802
|
+
durationMs: number;
|
|
803
|
+
}
|
|
804
|
+
interface TraceStats {
|
|
805
|
+
traceDir: string;
|
|
806
|
+
since?: string;
|
|
807
|
+
correlationId?: string;
|
|
808
|
+
groupId?: string;
|
|
809
|
+
totalRuns: number;
|
|
810
|
+
successCount: number;
|
|
811
|
+
errorCount: number;
|
|
812
|
+
runningCount: number;
|
|
813
|
+
unknownCount: number;
|
|
814
|
+
errorRate: number;
|
|
815
|
+
duration: DurationStats;
|
|
816
|
+
totalSteps: number;
|
|
817
|
+
avgStepsPerRun: number;
|
|
818
|
+
totalLlmSteps: number;
|
|
819
|
+
totalToolSteps: number;
|
|
820
|
+
totalErrorSteps: number;
|
|
821
|
+
slowestRuns: TraceStatsRankedRun[];
|
|
822
|
+
slowestSteps: TraceStatsRankedStep[];
|
|
823
|
+
}
|
|
824
|
+
interface TraceStatsOptions {
|
|
825
|
+
traceDir: string;
|
|
826
|
+
since?: string;
|
|
827
|
+
correlationId?: string;
|
|
828
|
+
groupId?: string;
|
|
829
|
+
slowRunLimit?: number;
|
|
830
|
+
slowStepLimit?: number;
|
|
831
|
+
}
|
|
832
|
+
declare function buildTraceStats(metas: TraceMetadata[], options: TraceStatsOptions): Promise<TraceStats>;
|
|
833
|
+
declare function renderTraceStats(stats: TraceStats): string;
|
|
834
|
+
|
|
835
|
+
interface TraceSearchOptions {
|
|
836
|
+
traceDir: string;
|
|
837
|
+
since?: string;
|
|
838
|
+
status?: "success" | "error" | "running" | "unknown";
|
|
839
|
+
kind?: string;
|
|
840
|
+
type?: string;
|
|
841
|
+
name?: string;
|
|
842
|
+
tool?: string;
|
|
843
|
+
duration?: string;
|
|
844
|
+
limit?: number;
|
|
845
|
+
}
|
|
846
|
+
interface TraceSearchResult {
|
|
847
|
+
runId: string;
|
|
848
|
+
runName?: string;
|
|
849
|
+
runStatus: string;
|
|
850
|
+
stepId?: string;
|
|
851
|
+
stepName?: string;
|
|
852
|
+
stepType?: string;
|
|
853
|
+
timestamp?: number;
|
|
854
|
+
durationMs?: number;
|
|
855
|
+
matchReason: string;
|
|
856
|
+
matchedFields: string[];
|
|
857
|
+
filePath: string;
|
|
858
|
+
}
|
|
859
|
+
interface ParsedDurationFilter {
|
|
860
|
+
op: ">" | ">=" | "<" | "<=";
|
|
861
|
+
ms: number;
|
|
862
|
+
}
|
|
863
|
+
declare function parseDurationFilter(expr: string): ParsedDurationFilter;
|
|
864
|
+
declare function searchTraces(metas: TraceMetadata[], options: TraceSearchOptions): Promise<TraceSearchResult[]>;
|
|
865
|
+
declare function loadTraceMetadataList(_traceDir: string, fileNames: string[], getPath: (fileName: string) => string): Promise<TraceMetadata[]>;
|
|
866
|
+
|
|
708
867
|
/**
|
|
709
868
|
* Safety check for cleanup workflows: returns true only when the file appears to be an AgentInspect trace.
|
|
710
869
|
* This should be conservative: false positives are more dangerous than false negatives.
|
|
@@ -887,6 +1046,11 @@ interface ExportOptions {
|
|
|
887
1046
|
pretty?: boolean;
|
|
888
1047
|
redacted?: boolean;
|
|
889
1048
|
maxAttributeLength?: number;
|
|
1049
|
+
/**
|
|
1050
|
+
* Redaction preset for exported copies. Default `local`.
|
|
1051
|
+
* `share` and `strict` apply stronger key-based redaction before rendering.
|
|
1052
|
+
*/
|
|
1053
|
+
redactionProfile?: RedactionProfile;
|
|
890
1054
|
}
|
|
891
1055
|
interface ExportResult {
|
|
892
1056
|
format: ExportFormat;
|
|
@@ -961,6 +1125,15 @@ declare function exportOtlpJson(tree: InspectRunTree, options?: Partial<ExportOp
|
|
|
961
1125
|
|
|
962
1126
|
declare function validateExportContent(format: ExportFormat, content: string): ExportValidationResult;
|
|
963
1127
|
|
|
1128
|
+
interface RedactRunTreeForExportOptions {
|
|
1129
|
+
redactionProfile?: RedactionProfile;
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Returns a deep copy of `tree` with profile-based redaction applied to event attributes.
|
|
1133
|
+
* Does not mutate the input tree.
|
|
1134
|
+
*/
|
|
1135
|
+
declare function redactRunTreeForExport(tree: InspectRunTree, options?: RedactRunTreeForExportOptions): InspectRunTree;
|
|
1136
|
+
|
|
964
1137
|
declare function mergeExportDefaults(options: ExportOptions): ExportOptions;
|
|
965
1138
|
/**
|
|
966
1139
|
* @experimental Compatibility-oriented export API. Exports are local-only and do not upload anywhere.
|
|
@@ -969,4 +1142,4 @@ declare function mergeExportDefaults(options: ExportOptions): ExportOptions;
|
|
|
969
1142
|
declare function exportRunTree(tree: InspectRunTree, options: ExportOptions): ExportResult;
|
|
970
1143
|
declare function validateExport(result: ExportResult): ExportValidationResult;
|
|
971
1144
|
|
|
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 };
|
|
1145
|
+
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, type DurationStats, 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 ParsedDurationFilter, 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 RenderTimelineOptions, type RenderTreeOptions, type ResolvedRedactionProfile, type Run, type RunComparable, type RunCompletedEvent, type RunDiffItem, type RunDiffResult, type RunDiffSummary, type RunStartedEvent, type RunStatus, type RunSummary, type RunTimeline, type Step, type StepComparable, type StepCompletedEvent, type StepMetadata, type StepOptions, type StepStartedEvent, type StepStatus, type StepType, TERMINAL_INDENT, type TimelineEntry, type TimelineFocus, type TimelineOptions, 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, type TraceSearchOptions, type TraceSearchResult, type TraceStats, type TraceStatsOptions, type TraceStatsRankedRun, type TraceStatsRankedStep, TreeBuilder, type TreeBuilderOptions, buildRunSummary, buildRunTimeline, buildTraceStats, 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, loadTraceMetadataList, manualTraceEventsToComparableRun, manualTraceEventsToRunTree, matchMapping, maybeInspectRun, mergeExportDefaults, mergeLogIngestConfig, observe, parseDuration, parseDurationFilter, parseLogLine, parseLogsToTrees, persistedInspectEventToInspectEvent, persistedInspectEventsToInspectEvents, persistedInspectEventsToRunTrees, prepareMetadataForDisk, prepareTraceEventForDisk, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, redactRunTreeForExport, renderErrorLine, renderRunDiff, renderRunSummary, renderRunTree, renderRunTrees, renderStepLine, renderTimeline, renderTraceStats, resolveRedactionProfile, resolveTraceDir, resolveTraceSafetyOptions, runWithContext, runWithStepContext, safeString, searchTraces, serializeEvent, stableJson, step, summarizeTree, traceEventToPersistedInspectEvent, traceEventsToPersistedInspectEvents, traceEventsToPersistedRunTrees, truncateName, validateEvent, validateExport, validateExportContent, warn, wildcardMatch, writeTraceEvent };
|