Skip to content

Function: executeLocalCommandStep() ​

ts
function executeLocalCommandStep<TIn, TOut, THandle>(
   node, 
   input, 
   ctx
): Promise<TOut>;

Defined in: node/src/executors/local-command-executors.ts:79

Executes a LocalCommandNode (type: 'node:command') inside its configured runner pool slot.

Evaluates .unrepeatable(preCheckCmd, { key }) first when present (skipping execution if preCheckCmd returns true), runs the command in a detached process group with isolated GIT_* env vars, throws an actionable error on non-zero exit codes, and validates parsed stdout against node.outputSchema.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownValidated command input payload type.
TOutunknownValidated command output payload type.
THandleunknownRuntime handle type of the active isolation scope.

Parameters ​

ParameterTypeDescription
nodeLocalCommandNode<TIn, TOut, THandle>Passive command AST node to execute.
inputTInRaw or pre-validated command input payload.
ctxStepExecutionContext<THandle>Active step execution context.

Returns ​

Promise<TOut>

Validated output payload parsed from stdout.

Throws ​

If the subprocess exits with a non-zero code, times out, or is aborted.

Released under the MIT License.