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
Parameters
| Parameter | Type | Description |
|---|---|---|
node | LocalCommandNode<TIn, TOut, THandle> | Passive command AST node to execute. |
input | TIn | Raw or pre-validated command input payload. |
ctx | StepExecutionContext<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.