Optional[symbolStable lineage identity shared across configured wrappers and projections.
Optional[symbolPresent only on forked resources.
Optional Internal[symbolOrdered isolate declarations preserved across builder composition.
Optional Internal[symbolTracks whether the resource explicitly declared .register(...).
Optional Internal[symbolOrdered subtree declarations preserved across builder composition.
OptionalconfigNormalized validation schema for resource config.
OptionalcontextCreate a private, mutable context shared between init, ready,
cooldown, and dispose.
OptionalcooldownCooldown hook for the resource. This runs during shutdown to stop intake quickly before runtime drains in-flight business work.
Keep this fast and non-blocking in intent: trigger ingress stop, capture handles/promises in context, and return promptly. The cooling resource is always allowed as a resource-origin source during the later drain window. Returning additional resource definitions extends that shutdown allowlist.
OptionaldependenciesStatic or lazy dependency map. Receives config when provided.
OptionaldisposeClean-up function for the resource. This is called when the resource is no longer needed.
The value of the resource (undefined if no init method)
The configuration it received
The dependencies it needed
Promise
OptionalhealthOptional async health probe for this resource.
Resources without health are excluded from runtime health reports.
Stable identifier.
OptionalinitInitialize and return the resource value. Called once during boot.
OptionalisolateWiring isolation policy for this resource and its subtree.
OptionalmetaOptional metadata used by docs and tooling.
Normalized middleware attachments applied to the resource lifecycle.
Return an optional dependency wrapper for this resource.
Safe override declarations applied to this resource.
OptionalpathOptionalreadyReady hook for the resource. This runs after initialization completes and right before Runner emits the global system ready event.
Use this for startup ingress actions that should begin only after runtime internals are locked and all startup-initialized dependencies are ready.
Register other registerables (resources/tasks/middleware/events). Accepts a
static array or a function of config to support dynamic wiring.
OptionalresultNormalized validation schema for the resolved resource value.
OptionalsubtreeNormalized subtree policy declarations owned by this resource.
Normalized tags attached to the resource.
OptionalthrowsNormalized list of error ids declared via throws.
Extract the configured payload from a matching resource entry.
Create a new resource with a different id but the same definition. Useful for creating multiple instances of a "template" resource. The forked resource should be exported and used as a dependency. Only leaf resources can be forked. Resources that register children must be composed explicitly instead of cloned structurally.
Configures the resource and returns a branded configured instance.
Normalized runtime resource definition.