Context compaction for Vibe sessions.
The compactor follows pi's structured checkpoint format: summarize old conversation/trajectory into a handoff that another model can use to continue, preserve critical file paths and errors, and append read/modified file lists.
Summary
Functions
Intentional facade for the public Vibe API boundary.
Intentional facade for the public Vibe API boundary.
Intentional facade for the public Vibe API boundary.
Intentional facade for the public Vibe API boundary.
Intentional facade for the public Vibe API boundary.
Types
@type compact_result() :: Vibe.Context.Compactor.compact_result()
Functions
@spec compact(keyword()) :: {:ok, compact_result()} | {:error, term()}
Intentional facade for the public Vibe API boundary.
@spec compact( [Vibe.Trajectory.t()], keyword() ) :: {:ok, compact_result()} | {:error, term()}
Intentional facade for the public Vibe API boundary.
@spec serialize([Vibe.Trajectory.t()]) :: String.t()
Intentional facade for the public Vibe API boundary.
@spec summarize([Vibe.Trajectory.t()], String.t() | nil, keyword()) :: {:ok, String.t()} | {:error, term()}
Intentional facade for the public Vibe API boundary.
@spec turn_prefix_summary( [Vibe.Trajectory.t()], keyword() ) :: {:ok, String.t()} | {:error, term()}
Intentional facade for the public Vibe API boundary.