1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Agent Trace storage layer for VT Code.
//!
//! This module provides file-based storage for Agent Trace records,
//! supporting reading/writing traces to `.vtcode/traces/` directory.
//!
//! # Overview
//!
//! Agent Trace is an open specification for tracking AI-generated code.
//! See <https://agent-trace.dev/> for the full specification.
//!
//! # Usage
//!
//! ```rust,ignore
//! use vtcode_core::trace::{TraceStore, TraceGenerator, TraceContext};
//!
//! // Create context for generating traces
//! let ctx = TraceContext::new("claude-opus-4", "anthropic")
//! .with_workspace_path("/my/workspace")
//! .with_session_id("session-123")
//! .with_turn_number(1);
//!
//! // Generate trace from diff tracker (after apply_patch)
//! if let Some(trace) = TraceGenerator::from_diff_tracker(&tracker, &ctx) {
//! // Store the trace
//! let store = TraceStore::for_workspace("/my/workspace");
//! store.write_trace(&trace)?;
//! }
//! ```
pub use *;
pub use *;
// Re-export core types from vtcode-exec-events for convenience
pub use ;