Skip to content
1 min read · 188 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).

Type Aliases ​

Type AliasDescription
ExecaResolverResolver forms accepted for the execa module.

Functions ​

FunctionDescription
execaExecutorConstruct the bundled local-process BinaryExecutor.