@usine/executor/local
Interfaces
Section titled “Interfaces”LocalExecutorOptions
Section titled “LocalExecutorOptions”Storage and session settings for Attempts executed on the local machine.
Properties
Section titled “Properties”harnessReadiness?
Section titled “harnessReadiness?”
readonlyoptionalharnessReadiness?:HarnessProbe
Probes one rostered brain on this machine; defaults to the @usine/agents/preflight checks, which start no prompt.
instanceDirectory
Section titled “instanceDirectory”
readonlyinstanceDirectory:string&Brand<"InstanceDirectory">
Factory folder under which local Worker caches and Attempt checkouts are stored.
interruptGrace?
Section titled “interruptGrace?”
readonlyoptionalinterruptGrace?:Input
Grace for the parent task’s cancellation, then for the Attempt to settle; each wait is bounded separately. Defaults to two seconds.
repositoryUrl?
Section titled “repositoryUrl?”
readonlyoptionalrepositoryUrl?: (repository) =>string
Repository fetch URL override, for example a local mirror; defaults to the GitHub HTTPS clone URL.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
repository |
string & Brand<"RepositoryName"> |
Returns
Section titled “Returns”string
Type Aliases
Section titled “Type Aliases”HarnessProbe
Section titled “HarnessProbe”HarnessProbe = (
brain) =>Effect.Effect<HarnessReadiness,ExecutorOperationError|WorkerCapabilityError>
Reports one rostered brain’s readiness on a Worker. Only a readiness report proves a capability gap; transport failures and timeouts stay retryable infrastructure errors.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
brain |
BrainSpec |
Returns
Section titled “Returns”Effect.Effect<HarnessReadiness, ExecutorOperationError | WorkerCapabilityError>
Variables
Section titled “Variables”
constlayer: (options) =>Layer.Layer<Executor,never,AttemptRuntime|CredentialProvider|FileSystem.FileSystem|Path.Path|ChildProcessSpawner.ChildProcessSpawner>
Runs Attempts in isolated checkouts on the local machine, each with its Pi
parent as a durable task in this process (AttemptRuntime), so an
orchestrator restart reattaches a live Attempt instead of failing it.
Requires Node; worker contracts are platform-free.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
LocalExecutorOptions |
Returns
Section titled “Returns”Layer.Layer<Executor, never, AttemptRuntime | CredentialProvider | FileSystem.FileSystem | Path.Path | ChildProcessSpawner.ChildProcessSpawner>