Vibe.Context (vibe v0.2.1)

Copy Markdown View Source

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

compact_result()

@type compact_result() :: Vibe.Context.Compactor.compact_result()

Functions

compact(opts \\ [])

@spec compact(keyword()) :: {:ok, compact_result()} | {:error, term()}

Intentional facade for the public Vibe API boundary.

compact(events, opts)

@spec compact(
  [Vibe.Trajectory.t()],
  keyword()
) :: {:ok, compact_result()} | {:error, term()}

Intentional facade for the public Vibe API boundary.

recall(query, opts \\ [])

@spec recall(
  String.t(),
  keyword()
) :: String.t()

serialize(events)

@spec serialize([Vibe.Trajectory.t()]) :: String.t()

Intentional facade for the public Vibe API boundary.

summarize(events, previous_summary \\ nil, opts \\ [])

@spec summarize([Vibe.Trajectory.t()], String.t() | nil, keyword()) ::
  {:ok, String.t()} | {:error, term()}

Intentional facade for the public Vibe API boundary.

turn_prefix_summary(events, opts \\ [])

@spec turn_prefix_summary(
  [Vibe.Trajectory.t()],
  keyword()
) :: {:ok, String.t()} | {:error, term()}

Intentional facade for the public Vibe API boundary.