Skip to main content

ito_core/audit/
mod.rs

1//! Audit log infrastructure: filesystem writer, event reader, reconciliation
2//! engine, worktree discovery, and stream watcher.
3
4pub mod mirror;
5pub mod reader;
6pub mod reconcile;
7pub mod stream;
8pub mod validate;
9pub mod worktree;
10pub mod writer;
11
12pub use reader::{EventFilter, read_audit_events, read_audit_events_filtered};
13pub use reconcile::{ReconcileReport, build_file_state, run_reconcile};
14pub use stream::{StreamConfig, StreamEvent, poll_new_events, read_initial_events};
15pub use worktree::{aggregate_worktree_events, discover_worktrees, find_worktree_for_branch};
16pub use writer::FsAuditWriter;
17
18// Re-export domain audit types so adapters (ito-cli, ito-web) never need
19// a direct ito-domain dependency for audit event construction.
20pub use ito_domain::audit::context::{resolve_context, resolve_user_identity};
21pub use ito_domain::audit::event::{
22    Actor, AuditEvent, AuditEventBuilder, EntityType, EventContext, ops,
23};
24pub use ito_domain::audit::writer::AuditWriter;