@xtandard/kit/hooks — the hooks runner: before hooks run sequentially
and may deny with HookDeniedError, after hooks run concurrently with
isolated errors. Generic over a product’s event unions. Also isNamed, for
mapping domain errors across bundles by name.
Build an after-hook error reporter that warns with [source] as the log prefix and never throws. Products pass their package name: createHookErrorReporter("@xtandard/webhooks").
The status of a hook denial — a HookDeniedError, or a foreign-bundle copy of it recognised by name (default 403 when it carries no numeric status) — or null when error is not a denial.
True when error is an error object whose name is name. Use it instead of instanceof to map domain errors to HTTP statuses: an error class loaded from a separate bundle (another subpath’s copy of the class, or another realm) fails instanceof but keeps its name.