feat: add plugin HTTP hooks + Zalo plugin

This commit is contained in:
Peter Steinberger
2026-01-15 05:03:50 +00:00
parent 0e76d21f11
commit 5abe3c2145
36 changed files with 3061 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import type { PluginRegistry } from "../../../plugins/registry.js";
export const createTestRegistry = (
overrides: Partial<PluginRegistry> = {},
): PluginRegistry => {
const base: PluginRegistry = {
plugins: [],
tools: [],
channels: [],
gatewayHandlers: {},
httpHandlers: [],
cliRegistrars: [],
services: [],
diagnostics: [],
};
const merged = { ...base, ...overrides };
return {
...merged,
gatewayHandlers: merged.gatewayHandlers ?? {},
httpHandlers: merged.httpHandlers ?? [],
};
};