Skip to content

@usine/orchestrator/runtime

const operatorObservationLayer: (instanceDirectory) => Layer.Layer<OperatorObservation, AttemptCancellationError | EnginePersistenceError | RunInterventionRejectedError | RunNotFoundError | RunOperationRejectedError, never>

A read-only operator composition for when trigger credentials are not available yet.

Parameter Type
instanceDirectory InstanceDirectory

Layer.Layer<OperatorObservation, AttemptCancellationError | EnginePersistenceError | RunInterventionRejectedError | RunNotFoundError | RunOperationRejectedError, never>


const runtimeLayer: (instanceDirectory, instance) => Layer.Layer<ConfigParser | CursorStore | CycleBudgets | ExpressionEngine | GitHubItemWriter | GitHubPolling | ItemProjectionReader | ItemProjectionWriter | LabelReconciler | LoopControl | Operator | Orchestrator | PollingTriggers | RepositoryLabelProjectionReader | RepositoryLabelProjectionWriter | RunEngine | RunReader | ScheduleTriggers, AppAuthenticationError | AttemptCancellationError | CredentialUnavailableError | DurableHarnessError | EnginePersistenceError | ExecutorOperationError | RunInterventionRejectedError | RunNotFoundError | RunOperationRejectedError | UnsupportedWorkerError | WorkerCapabilityError, GitHubCredentials>

The full Node composition for one loaded factory: both trigger streams, the durable engine, Worker execution with each Attempt’s Pi parent on the instance’s durable storage, and the operator surface. The Worker kind in usine.yaml selects the executor. The caller supplies the GitHub credentials.

Parameter Type
instanceDirectory InstanceDirectory
instance LoadedInstance

Layer.Layer<ConfigParser | CursorStore | CycleBudgets | ExpressionEngine | GitHubItemWriter | GitHubPolling | ItemProjectionReader | ItemProjectionWriter | LabelReconciler | LoopControl | Operator | Orchestrator | PollingTriggers | RepositoryLabelProjectionReader | RepositoryLabelProjectionWriter | RunEngine | RunReader | ScheduleTriggers, AppAuthenticationError | AttemptCancellationError | CredentialUnavailableError | DurableHarnessError | EnginePersistenceError | ExecutorOperationError | RunInterventionRejectedError | RunNotFoundError | RunOperationRejectedError | UnsupportedWorkerError | WorkerCapabilityError, GitHubCredentials>