Skip to content

Interface: LocalCommandNode<TIn, TOut, THandle> ​

Defined in: core/dist/ast/domain/local-command-node.d.ts:29

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.__handleBrandcore/dist/ast/base/base-domain-step-ast-node.d.ts:24
argvreadonly| readonly string[] | BivariantCallback<[input: TIn], readonly string[]>Static argument vector or pure mapper deriving argv from TIn.-core/dist/ast/domain/local-command-node.d.ts:33
env?readonlyReadonly<Record<string, string | EnvRef>>Optional environment variables or symbolic EnvRef bindings injected into the subprocess.-core/dist/ast/domain/local-command-node.d.ts:37
idreadonlystringLogical identifier of the step node.BaseDomainStepASTNode.idcore/dist/ast/base/base-domain-step-ast-node.d.ts:18
inputSchemareadonlyZodType<TIn>Zod schema validating the step's input payload at entry.BaseDomainStepASTNode.inputSchemacore/dist/ast/base/base-domain-step-ast-node.d.ts:20
outputSchemareadonlyZodType<TOut>Zod schema validating the step's output payload at exit.BaseDomainStepASTNode.outputSchemacore/dist/ast/base/base-domain-step-ast-node.d.ts:22
runnerreadonlyNodeRunnerNodeRunner pool governing subprocess slot concurrency.-core/dist/ast/domain/local-command-node.d.ts:31
stdinModereadonly| "closed" | BivariantCallback<[input: TIn], string | Uint8Array<ArrayBufferLike>>Standard input mode ('closed' or synchronous payload mapper).-core/dist/ast/domain/local-command-node.d.ts:35
timeoutMinutes?readonlynumberOptional execution timeout in minutes.-core/dist/ast/domain/local-command-node.d.ts:39
typereadonly"node:command"Unique string-literal discriminant of the domain step node.BaseDomainStepASTNode.typecore/dist/ast/base/base-domain-step-ast-node.d.ts:16
unrepeatable?readonlyLocalCommandUnrepeatableConfig<TIn, THandle>Optional idempotency guard that skips execution when preCheckCmd returns true.-core/dist/ast/domain/local-command-node.d.ts:41

Released under the MIT License.