@usine/durable/live
Variables
Section titled “Variables”childBackendLayer
Section titled “childBackendLayer”
constchildBackendLayer:Layer.Layer<ChildBackend,never,ChildProcessSpawner>
Claude Code, Codex, and Pi children, chosen per Agent harness.
harnessLayer
Section titled “harnessLayer”
constharnessLayer: (instanceDirectory) =>Layer.Layer<DurableHarness,DurableHarnessError,never>
The durable harness on the instance’s .usine/durable.sqlite, with Pi’s configured models and credentials.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
instanceDirectory |
InstanceDirectory |
Returns
Section titled “Returns”Layer.Layer<DurableHarness, DurableHarnessError, never>
constlayer: (instanceDirectory) =>Layer.Layer<AttemptRuntime|DurableHarness,DurableHarnessError,ChildProcessSpawner>
The Node durable Attempt runtime: the harness on the instance’s storage and the real child backends. Building it resumes every unfinished Attempt.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
instanceDirectory |
InstanceDirectory |
Returns
Section titled “Returns”Layer.Layer<AttemptRuntime | DurableHarness, DurableHarnessError, ChildProcessSpawner>