From 17573d097b2ffd8f978fb92f3b153e187e99e1a2 Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Mon, 6 Apr 2026 14:17:32 +0530 Subject: [PATCH] fix: route mattermost bundled entry through plugin api --- extensions/mattermost/channel-plugin-api.ts | 3 +++ extensions/mattermost/index.ts | 2 +- extensions/mattermost/setup-entry.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 extensions/mattermost/channel-plugin-api.ts diff --git a/extensions/mattermost/channel-plugin-api.ts b/extensions/mattermost/channel-plugin-api.ts new file mode 100644 index 00000000000..e4907886d02 --- /dev/null +++ b/extensions/mattermost/channel-plugin-api.ts @@ -0,0 +1,3 @@ +// Keep bundled channel entry imports narrow so bootstrap/discovery paths do +// not drag the broader Mattermost helper surfaces into lightweight plugin loads. +export { mattermostPlugin } from "./src/channel.js"; diff --git a/extensions/mattermost/index.ts b/extensions/mattermost/index.ts index 247e5082e30..4e97e7b2e07 100644 --- a/extensions/mattermost/index.ts +++ b/extensions/mattermost/index.ts @@ -18,7 +18,7 @@ export default defineBundledChannelEntry({ description: "Mattermost channel plugin", importMetaUrl: import.meta.url, plugin: { - specifier: "./src/channel.js", + specifier: "./channel-plugin-api.js", exportName: "mattermostPlugin", }, runtime: { diff --git a/extensions/mattermost/setup-entry.ts b/extensions/mattermost/setup-entry.ts index c68ed581fbd..20a6932f1ae 100644 --- a/extensions/mattermost/setup-entry.ts +++ b/extensions/mattermost/setup-entry.ts @@ -3,7 +3,7 @@ import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entr export default defineBundledChannelSetupEntry({ importMetaUrl: import.meta.url, plugin: { - specifier: "./src/channel.js", + specifier: "./channel-plugin-api.js", exportName: "mattermostPlugin", }, });