ASM.Extensions.Workspace (ASM v0.9.2)

Copy Markdown View Source

Public workspace extension API.

This domain provides workspace snapshot/diff/rollback primitives for host-managed run orchestration without coupling core runtime internals.

Summary

Types

Configured backend selection strategy.

Workspace diff operation result.

Workspace rollback operation result.

Workspace snapshot operation result.

Types

backend_kind()

@type backend_kind() :: :auto | :git | :hash

Configured backend selection strategy.

diff_result()

@type diff_result() ::
  {:ok, ASM.Extensions.Workspace.Diff.t()} | {:error, ASM.Error.t()}

Workspace diff operation result.

rollback_result()

@type rollback_result() :: :ok | {:error, ASM.Error.t()}

Workspace rollback operation result.

snapshot_result()

@type snapshot_result() ::
  {:ok, ASM.Extensions.Workspace.Snapshot.t()} | {:error, ASM.Error.t()}

Workspace snapshot operation result.

Functions

diff(from_snapshot, to_snapshot, opts \\ [])

rollback(snapshot, opts \\ [])

snapshot(root, opts \\ [])

@spec snapshot(
  String.t(),
  keyword()
) :: snapshot_result()