|
// src/plugins/registry.ts — plugin API surface (createApi excerpt)
const createApi = (record, params) => ({
runtime: registryParams.runtime,
registerTool: (tool, opts) =>
registerTool(record, tool, opts),
registerHook: (events, handler, opts) =>
registerHook(record, events, handler, opts, params.config),
registerHttpRoute: (params) => registerHttpRoute(record, params),
registerChannel: (registration) => registerChannel(record,registration),
registerGatewayMethod: (method, handler) =>
registerGatewayMethod(record, method, handler),
on: (hookName, handler, opts) =>
|