mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
4d87263b1b
* [AI] fix(plugins): warn when registerHook uses a typed hook event name api.registerHook registers into the legacy internal-hook path, while typed lifecycle events (before_tool_call, message_received, ...) are dispatched exclusively by the typed hook runner. Registrations under typed names silently never fired since #117372 moved the write to legacyInternalHooks. Emit a registration diagnostic pointing to the public api.on(...) API so plugin authors see the no-op at load time instead of trusting a false "loaded". Related to #116965 Co-Authored-By: deepseek-v4-flash <noreply@anthropic.com> * [AI] fix(plugins): point registerHook comment at public api.on API Condense the inline comment in createToolHookRegistrars and replace the internal registerTypedHook migration reference with the public api.on(...) API, matching the emitted warning and hooks docs. Behavior and tests unchanged. --------- Co-authored-by: deepseek-v4-flash <noreply@anthropic.com> Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>