Skip to content
1 min read · 217 words

@nhtio/adk/batteries/media/engines/execa_executor ​

A @nhtio/adk/batteries/media/contracts!BinaryExecutor implementation that runs invocations as local child processes via execa.

Remarks ​

The bundled local-process executor. execa is an optional peer dependency acquired through an async resolver (default: a lazy dynamic import) — importing this module pulls nothing; constructing the executor is what resolves the peer, and only on first exec.

Process execution is a movable seam: anything implementing the BinaryExecutor contract — a remote runner, a sandbox, a container shim — composes into binary engines exactly like this one. The paired ScratchWorkspace must produce paths this executor can open; for the local-process case, the bundled fs_workspace is the natural pair.

Interfaces ​

InterfaceDescription
ExecaExecutorOptionsOptions for execaExecutor.
ExecaLikeThe slice of execa this executor uses (kept minimal for BYO substitution in tests).
ExecaResultLikeThe settled result slice this executor reads from execa.
ExecaSubprocessLikeThe subprocess handle execa returns: promise-shaped AND carrying the live OS process.

Type Aliases ​

Type AliasDescription
ExecaResolverResolver forms accepted for the execa module.

Functions ​

FunctionDescription
execaExecutorConstruct the bundled local-process BinaryExecutor.