Serializes session history for compaction and context injection.
Summary
Functions
@spec estimate_tokens([Vibe.Trajectory.t()]) :: non_neg_integer()
@spec event_tokens(Vibe.Trajectory.t()) :: non_neg_integer()
@spec file_operations([Vibe.Trajectory.t()]) :: %{ read: MapSet.t(String.t()), modified: MapSet.t(String.t()) }
@spec modified_files([Vibe.Trajectory.t()]) :: [String.t()]
@spec read_files([Vibe.Trajectory.t()]) :: [String.t()]
@spec serialize([Vibe.Trajectory.t()]) :: String.t()