Skip to content

Interface: LocalCommandNode<TIn, TOut, THandle> ​

Defined in: ast/domain/local-command-node.ts:31

Passive AST node representing a one-shot local OS subprocess command (local.command).

Participates in StepASTNode and can be projected into a LocalCommandCheckNode (.asCheck()) or a post-flight-diffed LocalCommandToolNode (.asTool()).

Extends ​

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownValidated command input type.
TOutunknownValidated command output type.
THandleunknownIsolation scope handle type.

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
__handleBrand?readonlyBivariantCallback<[handle: THandle], void>Phantom type brand binding the step to its compatible scope handle type.BaseDomainStepASTNode.__handleBrandast/base/base-domain-step-ast-node.ts:30
argvreadonly| readonly string[] | BivariantCallback<[input: TIn], readonly string[]>Static argument vector or pure mapper deriving argv from TIn.-ast/domain/local-command-node.ts:36
env?readonlyReadonly<Record<string, string | EnvRef>>Optional environment variables or symbolic EnvRef bindings injected into the subprocess.-ast/domain/local-command-node.ts:40
idreadonlystringLogical identifier of the step node.BaseDomainStepASTNode.idast/base/base-domain-step-ast-node.ts:24
inputSchemareadonlyZodType<TIn>Zod schema validating the step's input payload at entry.BaseDomainStepASTNode.inputSchemaast/base/base-domain-step-ast-node.ts:26
outputSchemareadonlyZodType<TOut>Zod schema validating the step's output payload at exit.BaseDomainStepASTNode.outputSchemaast/base/base-domain-step-ast-node.ts:28
runnerreadonlyNodeRunnerNodeRunner pool governing subprocess slot concurrency.-ast/domain/local-command-node.ts:34
stdinModereadonly| "closed" | BivariantCallback<[input: TIn], string | Uint8Array<ArrayBufferLike>>Standard input mode ('closed' or synchronous payload mapper).-ast/domain/local-command-node.ts:38
timeoutMinutes?readonlynumberOptional execution timeout in minutes.-ast/domain/local-command-node.ts:42
typereadonly"node:command"Unique string-literal discriminant of the domain step node.BaseDomainStepASTNode.typeast/base/base-domain-step-ast-node.ts:22
unrepeatable?readonlyLocalCommandUnrepeatableConfig<TIn, THandle>Optional idempotency guard that skips execution when preCheckCmd returns true.-ast/domain/local-command-node.ts:44

Released under the MIT License.