agent-inspect 1.0.3 → 1.2.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 +69 -10
- package/README.md +37 -10
- package/SECURITY.md +5 -2
- package/docs/ADAPTERS.md +28 -1
- package/docs/API.md +47 -10
- package/docs/ARCHITECTURE.md +44 -8
- package/docs/CLI.md +47 -0
- package/docs/DIFF.md +127 -0
- package/docs/EXPORTS.md +1 -1
- package/docs/GETTING-STARTED.md +21 -12
- package/docs/KNOWN-ISSUES.md +53 -0
- package/docs/LIMITATIONS.md +13 -1
- package/docs/LOG-TO-TREE-QUICKSTART.md +2 -0
- package/docs/LOGS.md +3 -2
- package/docs/SCHEMA.md +48 -4
- package/package.json +13 -15
- package/packages/cli/dist/index.cjs +929 -185
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +923 -180
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/core/dist/index.cjs +1779 -345
- package/packages/core/dist/index.cjs.map +1 -1
- package/packages/core/dist/index.d.cts +236 -61
- package/packages/core/dist/index.d.ts +236 -61
- package/packages/core/dist/index.mjs +1759 -342
- package/packages/core/dist/index.mjs.map +1 -1
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
import { Stats } from 'node:fs';
|
|
2
2
|
|
|
3
|
+
type AttributionConfidence = "explicit" | "correlated" | "heuristic" | "unknown";
|
|
4
|
+
type InspectKind = "RUN" | "AGENT" | "LLM" | "TOOL" | "CHAIN" | "RETRIEVER" | "DECISION" | "RESULT" | "ERROR" | "LOGIC" | "LOG";
|
|
5
|
+
interface EventSource {
|
|
6
|
+
type: "manual" | "json-log" | "log4js" | "pino" | "winston" | "adapter";
|
|
7
|
+
file?: string;
|
|
8
|
+
line?: number;
|
|
9
|
+
}
|
|
10
|
+
interface InspectEvent {
|
|
11
|
+
eventId: string;
|
|
12
|
+
runId: string;
|
|
13
|
+
parentId?: string;
|
|
14
|
+
name: string;
|
|
15
|
+
kind: InspectKind;
|
|
16
|
+
timestamp: number;
|
|
17
|
+
status?: "running" | "ok" | "error";
|
|
18
|
+
durationMs?: number;
|
|
19
|
+
attributes?: Record<string, unknown>;
|
|
20
|
+
confidence: AttributionConfidence;
|
|
21
|
+
source: EventSource;
|
|
22
|
+
}
|
|
23
|
+
interface InspectNode {
|
|
24
|
+
event: InspectEvent;
|
|
25
|
+
children: InspectNode[];
|
|
26
|
+
depth: number;
|
|
27
|
+
}
|
|
28
|
+
interface InspectRunTree {
|
|
29
|
+
runId: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
status?: "running" | "ok" | "error";
|
|
32
|
+
startedAt?: number;
|
|
33
|
+
endedAt?: number;
|
|
34
|
+
durationMs?: number;
|
|
35
|
+
children: InspectNode[];
|
|
36
|
+
metadata: {
|
|
37
|
+
totalEvents: number;
|
|
38
|
+
confidenceBreakdown: Record<AttributionConfidence, number>;
|
|
39
|
+
kinds: Record<InspectKind, number>;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface LogEventMapping {
|
|
44
|
+
kind?: InspectKind;
|
|
45
|
+
name?: string;
|
|
46
|
+
parent?: string;
|
|
47
|
+
status?: "running" | "ok" | "error";
|
|
48
|
+
startsRun?: boolean;
|
|
49
|
+
endsRun?: boolean;
|
|
50
|
+
startsStep?: boolean;
|
|
51
|
+
endsStep?: boolean;
|
|
52
|
+
}
|
|
53
|
+
type RedactionStrategy = "full" | "prefix" | "hash";
|
|
54
|
+
type RedactionRule = string | {
|
|
55
|
+
key: string;
|
|
56
|
+
strategy: RedactionStrategy;
|
|
57
|
+
keep?: number;
|
|
58
|
+
};
|
|
59
|
+
interface LogIngestConfig {
|
|
60
|
+
runIdKeys: string[];
|
|
61
|
+
eventKey: string;
|
|
62
|
+
timestampKey?: string;
|
|
63
|
+
messageKey?: string;
|
|
64
|
+
levelKey?: string;
|
|
65
|
+
parentIdKey?: string;
|
|
66
|
+
durationKey?: string;
|
|
67
|
+
statusKey?: string;
|
|
68
|
+
mappings?: Record<string, LogEventMapping>;
|
|
69
|
+
redact?: RedactionRule[];
|
|
70
|
+
heuristicWindowMs?: number;
|
|
71
|
+
}
|
|
72
|
+
|
|
3
73
|
/**
|
|
4
74
|
* Discriminator for what kind of work a {@link Step} represents.
|
|
5
75
|
* `"decision"` captures agent branching/choices; other values cover runs, LLM calls, tools, and user-defined steps.
|
|
@@ -160,6 +230,19 @@ interface InspectRunOptions {
|
|
|
160
230
|
* Omitted or `true` preserves default tracing behavior.
|
|
161
231
|
*/
|
|
162
232
|
enabled?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* Redact sensitive metadata keys before writing JSONL. Default `true` (conservative keys).
|
|
235
|
+
* Pass `false` to persist metadata as-is (explicit opt-out).
|
|
236
|
+
*/
|
|
237
|
+
redact?: boolean | {
|
|
238
|
+
rules?: RedactionRule[];
|
|
239
|
+
};
|
|
240
|
+
/** Max UTF-8 bytes for a serialized trace event line. Default 65536. */
|
|
241
|
+
maxEventBytes?: number;
|
|
242
|
+
/** Max length for string metadata values (non-preview keys). Default 2000. */
|
|
243
|
+
maxMetadataValueLength?: number;
|
|
244
|
+
/** Max length for preview-like metadata keys (contains `preview`). Default 500. */
|
|
245
|
+
maxPreviewLength?: number;
|
|
163
246
|
}
|
|
164
247
|
/** Options passed when opening a logical step (implemented in a later step). */
|
|
165
248
|
interface StepOptions {
|
|
@@ -195,75 +278,144 @@ declare function isStepStatus(value: unknown): value is StepStatus;
|
|
|
195
278
|
*/
|
|
196
279
|
declare function isTraceEvent(value: unknown): value is TraceEvent;
|
|
197
280
|
|
|
198
|
-
type
|
|
199
|
-
type
|
|
200
|
-
interface
|
|
201
|
-
type:
|
|
202
|
-
|
|
203
|
-
|
|
281
|
+
type PersistedSchemaVersion = "0.2";
|
|
282
|
+
type PersistedEventSourceType = "manual" | "json-log" | "log4js" | "adapter" | "ai-sdk" | "otel";
|
|
283
|
+
interface PersistedEventSource {
|
|
284
|
+
type: PersistedEventSourceType;
|
|
285
|
+
name?: string;
|
|
286
|
+
version?: string;
|
|
204
287
|
}
|
|
205
|
-
|
|
288
|
+
type PersistedEventStatus = "running" | "ok" | "error" | "unknown";
|
|
289
|
+
interface PersistedInspectError {
|
|
290
|
+
name?: string;
|
|
291
|
+
message: string;
|
|
292
|
+
code?: string;
|
|
293
|
+
}
|
|
294
|
+
interface PersistedTokenUsage {
|
|
295
|
+
input?: number;
|
|
296
|
+
output?: number;
|
|
297
|
+
total?: number;
|
|
298
|
+
}
|
|
299
|
+
interface PersistedTraceContext {
|
|
300
|
+
traceId?: string;
|
|
301
|
+
spanId?: string;
|
|
302
|
+
parentSpanId?: string;
|
|
303
|
+
}
|
|
304
|
+
interface PersistedInspectEvent {
|
|
305
|
+
schemaVersion: PersistedSchemaVersion;
|
|
206
306
|
eventId: string;
|
|
207
307
|
runId: string;
|
|
208
308
|
parentId?: string;
|
|
209
|
-
name: string;
|
|
210
309
|
kind: InspectKind;
|
|
211
|
-
|
|
212
|
-
status?:
|
|
310
|
+
name: string;
|
|
311
|
+
status?: PersistedEventStatus;
|
|
312
|
+
timestamp: string;
|
|
313
|
+
startedAt?: string;
|
|
314
|
+
endedAt?: string;
|
|
213
315
|
durationMs?: number;
|
|
214
|
-
attributes?: Record<string, unknown>;
|
|
215
316
|
confidence: AttributionConfidence;
|
|
216
|
-
source:
|
|
317
|
+
source: PersistedEventSource;
|
|
318
|
+
attributes?: Record<string, unknown>;
|
|
319
|
+
inputSummary?: unknown;
|
|
320
|
+
outputSummary?: unknown;
|
|
321
|
+
error?: PersistedInspectError;
|
|
322
|
+
tokenUsage?: PersistedTokenUsage;
|
|
323
|
+
trace?: PersistedTraceContext;
|
|
217
324
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
325
|
+
/**
|
|
326
|
+
* Runtime guard for a v0.2 {@link PersistedInspectEvent} JSON object.
|
|
327
|
+
*
|
|
328
|
+
* Timestamp fields (`timestamp`, `startedAt`, `endedAt`) are validated as
|
|
329
|
+
* non-empty strings only — stricter ISO-8601 parsing may be added later.
|
|
330
|
+
*/
|
|
331
|
+
declare function isPersistedInspectEvent(value: unknown): value is PersistedInspectEvent;
|
|
332
|
+
|
|
333
|
+
interface TraceEventToPersistedOptions {
|
|
334
|
+
/**
|
|
335
|
+
* Stable index within the source event list.
|
|
336
|
+
* Used only to make synthetic eventId deterministic when v0.1 has no eventId.
|
|
337
|
+
*/
|
|
338
|
+
eventIndex?: number;
|
|
339
|
+
/**
|
|
340
|
+
* Optional source name override.
|
|
341
|
+
* Default: "trace-event"
|
|
342
|
+
*/
|
|
343
|
+
sourceName?: string;
|
|
344
|
+
/**
|
|
345
|
+
* Optional source version override.
|
|
346
|
+
* Default: "0.1"
|
|
347
|
+
*/
|
|
348
|
+
sourceVersion?: string;
|
|
222
349
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
350
|
+
/**
|
|
351
|
+
* Maps one v0.1 {@link TraceEvent} to a v0.2 {@link PersistedInspectEvent}.
|
|
352
|
+
* Does not mutate `event`.
|
|
353
|
+
*/
|
|
354
|
+
declare function traceEventToPersistedInspectEvent(event: TraceEvent, options?: TraceEventToPersistedOptions): PersistedInspectEvent;
|
|
355
|
+
/**
|
|
356
|
+
* Maps a v0.1 trace event list to persisted v0.2 events (one output per input).
|
|
357
|
+
*/
|
|
358
|
+
declare function traceEventsToPersistedInspectEvents(events: readonly TraceEvent[], options?: Omit<TraceEventToPersistedOptions, "eventIndex">): PersistedInspectEvent[];
|
|
359
|
+
|
|
360
|
+
interface InspectEventToPersistedOptions {
|
|
361
|
+
/**
|
|
362
|
+
* Optional source name override.
|
|
363
|
+
* If omitted, derived from event.source.type.
|
|
364
|
+
*/
|
|
365
|
+
sourceName?: string;
|
|
366
|
+
/**
|
|
367
|
+
* Optional source version override.
|
|
368
|
+
*/
|
|
369
|
+
sourceVersion?: string;
|
|
370
|
+
/**
|
|
371
|
+
* Stable index for deterministic fallback IDs if needed.
|
|
372
|
+
*/
|
|
373
|
+
eventIndex?: number;
|
|
236
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* Maps one in-memory {@link InspectEvent} to a v0.2 {@link PersistedInspectEvent}.
|
|
377
|
+
* Does not mutate `event`.
|
|
378
|
+
*/
|
|
379
|
+
declare function inspectEventToPersistedInspectEvent(event: InspectEvent, options?: InspectEventToPersistedOptions): PersistedInspectEvent;
|
|
380
|
+
/**
|
|
381
|
+
* Maps in-memory {@link InspectEvent} rows to persisted v0.2 events.
|
|
382
|
+
*/
|
|
383
|
+
declare function inspectEventsToPersistedInspectEvents(events: readonly InspectEvent[], options?: Omit<InspectEventToPersistedOptions, "eventIndex">): PersistedInspectEvent[];
|
|
237
384
|
|
|
238
|
-
interface
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
endsRun?: boolean;
|
|
245
|
-
startsStep?: boolean;
|
|
246
|
-
endsStep?: boolean;
|
|
385
|
+
interface PersistedToInspectEventOptions {
|
|
386
|
+
/**
|
|
387
|
+
* If true, invalid persisted events are skipped by batch conversion.
|
|
388
|
+
* If false or omitted, invalid events throw.
|
|
389
|
+
*/
|
|
390
|
+
skipInvalid?: boolean;
|
|
247
391
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
redact?: RedactionRule[];
|
|
265
|
-
heuristicWindowMs?: number;
|
|
392
|
+
/**
|
|
393
|
+
* Maps one v0.2 {@link PersistedInspectEvent} to in-memory {@link InspectEvent}.
|
|
394
|
+
* Throws if `event` fails {@link isPersistedInspectEvent}.
|
|
395
|
+
*/
|
|
396
|
+
declare function persistedInspectEventToInspectEvent(event: PersistedInspectEvent): InspectEvent;
|
|
397
|
+
/**
|
|
398
|
+
* Maps persisted v0.2 events to in-memory {@link InspectEvent} rows.
|
|
399
|
+
*/
|
|
400
|
+
declare function persistedInspectEventsToInspectEvents(events: readonly PersistedInspectEvent[], options?: PersistedToInspectEventOptions): InspectEvent[];
|
|
401
|
+
|
|
402
|
+
interface PersistedTreeBridgeOptions {
|
|
403
|
+
/**
|
|
404
|
+
* If true, invalid persisted events are skipped.
|
|
405
|
+
* If false or omitted, invalid persisted events throw.
|
|
406
|
+
*/
|
|
407
|
+
skipInvalid?: boolean;
|
|
266
408
|
}
|
|
409
|
+
/**
|
|
410
|
+
* Builds {@link InspectRunTree} rows from v0.2 {@link PersistedInspectEvent} input.
|
|
411
|
+
* Uses {@link TreeBuilder} as the canonical tree builder. Does not mutate `events`.
|
|
412
|
+
*/
|
|
413
|
+
declare function persistedInspectEventsToRunTrees(events: readonly PersistedInspectEvent[], options?: PersistedTreeBridgeOptions): InspectRunTree[];
|
|
414
|
+
/**
|
|
415
|
+
* Builds {@link InspectRunTree} rows from legacy v0.1 {@link TraceEvent} input
|
|
416
|
+
* via the persisted-event model. Does not mutate `events`.
|
|
417
|
+
*/
|
|
418
|
+
declare function traceEventsToPersistedRunTrees(events: readonly TraceEvent[]): InspectRunTree[];
|
|
267
419
|
|
|
268
420
|
type ParserWarningCode = "MALFORMED_JSON" | "MISSING_RUN_ID" | "MISSING_EVENT" | "MISSING_TIMESTAMP" | "UNSUPPORTED_LOG4JS_PAYLOAD" | "CONFIG_ERROR" | "UNKNOWN";
|
|
269
421
|
interface ParserWarning {
|
|
@@ -447,6 +599,30 @@ declare function truncateName(name: string, maxLength?: number): string;
|
|
|
447
599
|
*/
|
|
448
600
|
declare function warn(message: string, error?: unknown): void;
|
|
449
601
|
|
|
602
|
+
/** Default max length for string metadata values (non-preview keys). */
|
|
603
|
+
declare const DEFAULT_MAX_METADATA_VALUE_LENGTH = 2000;
|
|
604
|
+
/** Default max length for preview-like metadata keys (contains `preview`, case-insensitive). */
|
|
605
|
+
declare const DEFAULT_MAX_PREVIEW_LENGTH = 500;
|
|
606
|
+
/** Default max serialized JSONL line size in bytes (UTF-8). */
|
|
607
|
+
declare const DEFAULT_MAX_EVENT_BYTES = 65536;
|
|
608
|
+
/** Resolved trace safety settings used at write time. */
|
|
609
|
+
interface TraceSafetyOptions {
|
|
610
|
+
redactEnabled: boolean;
|
|
611
|
+
redactionRules?: RedactionRule[];
|
|
612
|
+
maxMetadataValueLength: number;
|
|
613
|
+
maxPreviewLength: number;
|
|
614
|
+
maxEventBytes: number;
|
|
615
|
+
}
|
|
616
|
+
/** Resolves {@link InspectRunOptions} trace safety fields with safe defaults. */
|
|
617
|
+
declare function resolveTraceSafetyOptions(options?: Pick<InspectRunOptions, "redact" | "maxEventBytes" | "maxMetadataValueLength" | "maxPreviewLength">): TraceSafetyOptions;
|
|
618
|
+
/** Redacts (when enabled) and truncates metadata values for disk persistence. */
|
|
619
|
+
declare function prepareMetadataForDisk(metadata: Record<string, unknown> | StepMetadata, opts: TraceSafetyOptions): Record<string, unknown>;
|
|
620
|
+
/**
|
|
621
|
+
* Applies redaction, metadata truncation, and final serialized size bounds.
|
|
622
|
+
* Never throws; returns a schema-valid event or a minimally truncated variant.
|
|
623
|
+
*/
|
|
624
|
+
declare function prepareTraceEventForDisk(event: TraceEvent, opts: TraceSafetyOptions): TraceEvent;
|
|
625
|
+
|
|
450
626
|
/** Returns the active run context, without internal step fields. */
|
|
451
627
|
declare function getCurrentContext(): ExecutionContext | undefined;
|
|
452
628
|
/** Active `runId` when inside `runWithContext`, else `undefined`. */
|
|
@@ -468,11 +644,13 @@ declare function getCurrentDepth(): number;
|
|
|
468
644
|
declare function hasActiveContext(): boolean;
|
|
469
645
|
declare function getTraceDirFromContext(): string | undefined;
|
|
470
646
|
declare function isSilentContext(): boolean;
|
|
647
|
+
/** Resolved trace safety settings for the active run (redaction + size bounds). */
|
|
648
|
+
declare function getTraceSafetyFromContext(): TraceSafetyOptions | undefined;
|
|
471
649
|
/**
|
|
472
650
|
* Runs `fn` with a fresh AgentInspect run context (depth 0, no active step).
|
|
473
651
|
* Propagates sync/async results and rejections; does not swallow user errors.
|
|
474
652
|
*/
|
|
475
|
-
declare function runWithContext<T>(context: ExecutionContext, fn: () => Promise<T> | T): Promise<T>;
|
|
653
|
+
declare function runWithContext<T>(context: ExecutionContext, fn: () => Promise<T> | T, traceSafety?: TraceSafetyOptions): Promise<T>;
|
|
476
654
|
/**
|
|
477
655
|
* Runs `fn` with `stepId` as the active step (incremented depth).
|
|
478
656
|
* If no run is active, runs `fn` without altering async context.
|
|
@@ -490,9 +668,6 @@ declare function serializeEvent(event: TraceEvent): string;
|
|
|
490
668
|
* On failure, retries once under {@link FALLBACK_TRACE_DIR}.
|
|
491
669
|
*/
|
|
492
670
|
declare function initializeTraceFile(runId: string, traceDir: string): Promise<string | undefined>;
|
|
493
|
-
/**
|
|
494
|
-
* Appends one validated JSONL line for `event.runId`. Falls back to {@link FALLBACK_TRACE_DIR} on append failure.
|
|
495
|
-
*/
|
|
496
671
|
declare function writeTraceEvent(event: TraceEvent, traceDir: string): Promise<void>;
|
|
497
672
|
/**
|
|
498
673
|
* Reads raw JSONL file contents for a run, or `undefined` if missing or unreadable.
|
|
@@ -794,4 +969,4 @@ declare function mergeExportDefaults(options: ExportOptions): ExportOptions;
|
|
|
794
969
|
declare function exportRunTree(tree: InspectRunTree, options: ExportOptions): ExportResult;
|
|
795
970
|
declare function validateExport(result: ExportResult): ExportValidationResult;
|
|
796
971
|
|
|
797
|
-
export { type ActiveStepContext, type AttributionConfidence, DEFAULT_LOG_INGEST_CONFIG, 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 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, 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 TraceExporter, type TraceFilterOptions, type TraceMetadata, type TraceMetadataStatus, 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, hasActiveContext, initializeTraceFile, inspectRun, isAgentInspectEnabled, isAgentInspectTrace, isSilentContext, isStepStatus, isStepType, isTraceEvent, listTraceFiles, loadLogIngestConfig, manualTraceEventsToComparableRun, manualTraceEventsToRunTree, matchMapping, maybeInspectRun, mergeExportDefaults, mergeLogIngestConfig, observe, parseDuration, parseLogLine, parseLogsToTrees, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, renderErrorLine, renderRunDiff, renderRunSummary, renderRunTree, renderRunTrees, renderStepLine, resolveTraceDir, runWithContext, runWithStepContext, safeString, serializeEvent, stableJson, step, summarizeTree, truncateName, validateEvent, validateExport, validateExportContent, warn, wildcardMatch, writeTraceEvent };
|
|
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 };
|