Read boundary for Squidie workflow runs.
LiveViews should call this module instead of calling Squidie directly.
That keeps runtime access, error handling, and view shaping in one place.
Summary
Functions
Approves a paused approval step and resumes through success path.
Cancels an eligible workflow run.
Fetches one run with runtime snapshot, graph projection, and diagnostic explanation.
Lists recent runs as UI-friendly summaries.
Rejects a paused approval step and resumes through rejection path.
Replays a completed or failed workflow run.
Resumes a paused workflow run.
Starts a run from a host-provided runtime workflow spec.
Starts a run from a host-provided Squidie workflow module.
Types
Functions
@spec approve_run(term(), map(), [option()]) :: {:ok, Squidie.ReadModel.Inspection.Snapshot.t()} | {:error, term()}
Approves a paused approval step and resumes through success path.
@spec cancel_run(term(), [option()]) :: {:ok, Squidie.ReadModel.Inspection.Snapshot.t()} | {:error, term()}
Cancels an eligible workflow run.
@spec get_run(term(), [option()]) :: {:ok, SquidSonar.Runs.RunDetail.t()} | {:error, term()}
Fetches one run with runtime snapshot, graph projection, and diagnostic explanation.
@spec list_runs( keyword(), [option()] ) :: {:ok, [SquidSonar.Runs.RunSummary.t()]} | {:error, term()}
Lists recent runs as UI-friendly summaries.
@spec reject_run(term(), map(), [option()]) :: {:ok, Squidie.ReadModel.Inspection.Snapshot.t()} | {:error, term()}
Rejects a paused approval step and resumes through rejection path.
@spec replay_run(term(), [option()]) :: {:ok, Squidie.ReadModel.Inspection.Snapshot.t()} | {:error, term()}
Replays a completed or failed workflow run.
@spec resume_run(term(), map(), [option()]) :: {:ok, Squidie.ReadModel.Inspection.Snapshot.t()} | {:error, term()}
Resumes a paused workflow run.
@spec start_spec(term(), map(), [option()]) :: {:ok, Squidie.ReadModel.Inspection.Snapshot.t()} | {:error, term()}
Starts a run from a host-provided runtime workflow spec.
@spec start_workflow(module(), map(), [option()]) :: {:ok, Squidie.ReadModel.Inspection.Snapshot.t()} | {:error, term()}
Starts a run from a host-provided Squidie workflow module.