refactor: clean bundled channel bootstrap boundaries

This commit is contained in:
Peter Steinberger
2026-04-05 18:18:47 +01:00
parent cb76e5c899
commit 3126809cb0
88 changed files with 1107 additions and 472 deletions

View File

@@ -1,3 +1,5 @@
export { bluebubblesPlugin } from "./src/channel.js";
export { bluebubblesSetupPlugin } from "./src/channel.setup.js";
export * from "./src/conversation-id.js";
export * from "./src/conversation-bindings.js";
export { collectBlueBubblesStatusIssues } from "./src/status-issues.js";

View File

@@ -1,14 +1,16 @@
import { defineChannelPluginEntry } from "openclaw/plugin-sdk/channel-core";
import { bluebubblesPlugin } from "./src/channel.js";
import { setBlueBubblesRuntime } from "./src/runtime.js";
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
export { bluebubblesPlugin } from "./src/channel.js";
export { setBlueBubblesRuntime } from "./src/runtime.js";
export default defineChannelPluginEntry({
export default defineBundledChannelEntry({
id: "bluebubbles",
name: "BlueBubbles",
description: "BlueBubbles channel plugin (macOS app)",
plugin: bluebubblesPlugin,
setRuntime: setBlueBubblesRuntime,
importMetaUrl: import.meta.url,
plugin: {
specifier: "./api.js",
exportName: "bluebubblesPlugin",
},
runtime: {
specifier: "./runtime-api.js",
exportName: "setBlueBubblesRuntime",
},
});

View File

@@ -2,3 +2,4 @@ export {
resolveBlueBubblesGroupRequireMention,
resolveBlueBubblesGroupToolPolicy,
} from "./src/group-policy.js";
export { setBlueBubblesRuntime } from "./src/runtime.js";

View File

@@ -1,6 +1,9 @@
import { defineSetupPluginEntry } from "openclaw/plugin-sdk/channel-core";
import { bluebubblesSetupPlugin } from "./src/channel.setup.js";
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
export { bluebubblesSetupPlugin } from "./src/channel.setup.js";
export default defineSetupPluginEntry(bluebubblesSetupPlugin);
export default defineBundledChannelSetupEntry({
importMetaUrl: import.meta.url,
plugin: {
specifier: "./api.js",
exportName: "bluebubblesSetupPlugin",
},
});