create(
cls,
*,
cwd: Path,
identity: SessionIdentityProvider,
notice: HookNoticeCallback | Name | Type | Description |
|---|---|---|
cwd* | Path | Session working directory used to resolve hook configuration. |
identity* | SessionIdentityProvider | Reads current thread, approval mode, and prompt id. |
notice | HookNoticeCallback | None | Default: NoneSink for user-visible notices. When omitted, output is only
logged until |
status | HookStatusCallback | None | Default: None |
trust | WorkspaceTrust | None | Default: None |
Load hook configuration and return a ready manager.
Never raises: a failed load yields an inert manager whose lifecycle methods are all no-ops.
Sink for transient hook-owned status text.
Project-hook trust policy. Defaults to trusting nothing beyond what the persisted trust store already records.