Skip to content

NodeExecAdapter

Defined in: src/adapters/node/exec.ts:56

Adapter interface for process execution

Abstracts process spawning across Node.js, Deno, and Bun.

Implements

Constructors

Constructor

new NodeExecAdapter(): NodeExecAdapter

Returns

NodeExecAdapter

Methods

getCapabilities()

getCapabilities(): Capabilities

Defined in: src/adapters/node/exec.ts:57

Get the capabilities of this runtime

Returns

Capabilities

Implementation of

ExecAdapter.getCapabilities


spawn()

spawn(options, handlers?): Promise<SpawnResult>

Defined in: src/adapters/node/exec.ts:68

Spawn a process and wait for completion

Parameters

options

SpawnOptions

Spawn options

handlers?

StreamHandler

Optional stream handlers for real-time output

Returns

Promise<SpawnResult>

Promise resolving to spawn result

Implementation of

ExecAdapter.spawn


spawnStreaming()

spawnStreaming(options): SpawnHandle

Defined in: src/adapters/node/exec.ts:135

Spawn a process with streaming support

Parameters

options

SpawnOptions

Spawn options

Returns

SpawnHandle

Handle to the spawned process

Implementation of

ExecAdapter.spawnStreaming