ProcessManager

works.iterative.claude.zio.internal.cli.ProcessManager

Builds and runs the Claude Code CLI process, exposing its stdout as a stream of parsed Message values.

The process is spawned with zio-process. stdout lines are parsed into messages; stderr is collected concurrently for error diagnostics. When the stream completes naturally the process exit code is checked and a non-zero code is surfaced as a ProcessExecutionError. An optional timeout kills the process and surfaces a ProcessTimeoutError.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def buildCommand(executablePath: String, args: List[String], options: QueryOptions): IO[EnvironmentValidationError, Command]

Validate environment variables and build the zio-process command for the given executable, arguments, and options.

Validate environment variables and build the zio-process command for the given executable, arguments, and options.

Attributes

def executeProcess(executablePath: String, args: List[String], options: QueryOptions): ZStream[Any, CLIError, Message]

Execute the configured process and stream parsed messages.

Execute the configured process and stream parsed messages.

Attributes