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", }, });