Skip to content

@usine/orchestrator/exe-dev

const layer: (instanceDirectory, config, brains, options) => Layer.Layer<CursorStore | CycleBudgets | ItemProjectionReader | ItemProjectionWriter | LoopControl | RepositoryLabelProjectionReader | RepositoryLabelProjectionWriter | RunEngine | RunReader, AttemptCancellationError | CredentialUnavailableError | EnginePersistenceError | ExecutorOperationError | RunInterventionRejectedError | RunNotFoundError | RunOperationRejectedError | UnsupportedWorkerError | WorkerCapabilityError, AttemptRuntime | TriggerCondition>

The full engine composition for a local orchestrator driving exe.dev Workers; brains are the instance roster checked at startup. The caller provides the TriggerCondition that re-checks queued Events and the AttemptRuntime that runs each Attempt’s Pi parent in this process, built before the engine so durable storage is resumed before Run recovery.

Parameter Type
instanceDirectory InstanceDirectory
config UsineConfig
brains ReadonlyArray<BrainSpec>
options ExeDevExecutorOptions

Layer.Layer<CursorStore | CycleBudgets | ItemProjectionReader | ItemProjectionWriter | LoopControl | RepositoryLabelProjectionReader | RepositoryLabelProjectionWriter | RunEngine | RunReader, AttemptCancellationError | CredentialUnavailableError | EnginePersistenceError | ExecutorOperationError | RunInterventionRejectedError | RunNotFoundError | RunOperationRejectedError | UnsupportedWorkerError | WorkerCapabilityError, AttemptRuntime | TriggerCondition>