PromptRunner.CLI.Control (PromptRunnerSDK v0.10.0)

Copy Markdown View Source

The prompt_runner control commands.

Written entirely against PromptRunner.Control. Nothing here reaches into the runner, the plan, or the control directory directly. That is the point: the CLI is one consumer of the control plane, not its owner, and if these commands needed anything the module above does not expose then the boundary would already have failed.

Summary

Functions

amend(packet_dir, prompt_id, opts)

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

contract(packet_dir, prompt_id, opts \\ [])

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

log(packet_dir, opts \\ [])

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

relax(packet_dir, prompt_id, opts)

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

status(packet_dir, opts \\ [])

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

steer(packet_dir, words, opts \\ [])

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

view(packet_dir, opts)

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

watch(packet_dir, opts \\ [])

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