AgentSessionManager.Workspace.Workspace (AgentSessionManager v0.8.0)

Copy Markdown View Source

Public workspace service that delegates to git/hash backends.

Summary

Functions

backend_for_path(path, opts \\ [])

@spec backend_for_path(
  String.t(),
  keyword()
) :: :git | :hash

detect_backend(path)

@spec detect_backend(String.t()) :: :git | :hash

diff(before_snapshot, after_snapshot, opts \\ [])

rollback(snapshot, opts \\ [])

take_snapshot(path, opts \\ [])

@spec take_snapshot(
  String.t(),
  keyword()
) ::
  {:ok, AgentSessionManager.Workspace.Snapshot.t()}
  | {:error, AgentSessionManager.Core.Error.t()}