Register a disposer with the host plugin lifecycle.
The OpenClaw plugin API passed to register(api).
register(api)
Stable id for the resource (used by the fallback path).
Releases the resource. Must be idempotent.
true if registered; false if the host exposes no lifecycle API (the caller should then avoid starting long-lived work).
true
false
Prefers api.lifecycle.onDispose (instance retirement); falls back to api.lifecycle.registerRuntimeLifecycle({ id, dispose }).
api.lifecycle.onDispose
api.lifecycle.registerRuntimeLifecycle({ id, dispose })
Register a disposer with the host plugin lifecycle.