adopting(
cls,
runtime: HooksRuntime | None,
*,
identity: SessionIdentityProvider,
notice: HookNoticeCallback| Name | Type | Description |
|---|---|---|
runtime* | HooksRuntime | None | Preloaded runtime, or |
identity* | SessionIdentityProvider | Reads current thread, approval mode, and prompt id. |
notice | HookNoticeCallback | None | Default: NoneSink for user-visible notices. |
status | HookStatusCallback | None | Default: None |
Wrap an already-loaded runtime.
A supplied runtime brought its own presenter, so that one is adopted rather than displaced; the given sinks are bound onto it so the runtime and the manager keep sharing a single instance.
Sink for transient hook-owned status text.