Run a plugin's register(api) against a recording API and return the typed hook names it registers with api.on (e.g. before_prompt_build from registerPromptContext).
register(api)
api.on
before_prompt_build
registerPromptContext
The plugin's register function.
Extra API members the plugin needs at registration (config, logger, ...). on is always the recorder; registerTool defaults to a no-op.
on
registerTool
Registered hook names, in registration order.
Run a plugin's
register(api)against a recording API and return the typed hook names it registers withapi.on(e.g.before_prompt_buildfromregisterPromptContext).