Vibe.CLI.Sessions (vibe v0.2.2)

Copy Markdown View Source

Session listing, prune, and attach helpers for CLI.

Summary

Functions

Returns the newest live remote session id for explicit attach commands.

Picks the first live session id from a remote session listing.

Functions

attach(session_id, opts)

@spec attach(
  String.t(),
  keyword()
) :: :ok | {:error, term()}

attach_default(opts)

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

command(arg1, opts)

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

latest_live_remote_session_id()

Returns the newest live remote session id for explicit attach commands.

Plain mix vibe intentionally starts a fresh session; this helper is limited to attach-oriented CLI flows and tests that need to inspect server listings.

latest_live_session_id(sessions)

Picks the first live session id from a remote session listing.

new(opts)

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

new_tui(opts)

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

send_prompt(session_id, text, opts)

@spec send_prompt(String.t(), String.t(), keyword()) :: :ok | {:error, term()}