Skip to content
1 min read · 103 words

Interface: BinaryExecutor

Defined in: src/batteries/media/contracts.ts:94

Runs a binary invocation to completion. How and where it runs — local child process, remote runner, sandbox, container, a browser-side WASI shim — is the implementation's business.

Methods

exec()

ts
exec(invocation: BinaryInvocation): Promise<BinaryExecResult>;

Defined in: src/batteries/media/contracts.ts:102

Run one invocation to completion and report the result. Implementations must not throw on non-zero exits — report via failed/exitCode so callers map failures to readable errors.

Parameters

ParameterTypeDescription
invocationBinaryInvocationThe command, args, and limits to run.

Returns

Promise<BinaryExecResult>

The settled result.