mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 12:11:20 +00:00
15 lines
586 B
TypeScript
15 lines
586 B
TypeScript
// Manual facade. Keep loader boundary explicit.
|
|
type FacadeModule = typeof import("@openclaw/mattermost/api.js");
|
|
import { loadBundledPluginPublicSurfaceModuleSync } from "./facade-runtime.js";
|
|
|
|
function loadFacadeModule(): FacadeModule {
|
|
return loadBundledPluginPublicSurfaceModuleSync<FacadeModule>({
|
|
dirName: "mattermost",
|
|
artifactBasename: "api.js",
|
|
});
|
|
}
|
|
export const isMattermostSenderAllowed: FacadeModule["isMattermostSenderAllowed"] = ((...args) =>
|
|
loadFacadeModule()["isMattermostSenderAllowed"](
|
|
...args,
|
|
)) as FacadeModule["isMattermostSenderAllowed"];
|