mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-03 20:08:35 +00:00
refactor: clean bundled channel bootstrap boundaries
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export { imessagePlugin } from "./src/channel.js";
|
||||
export { imessageSetupPlugin } from "./src/channel.setup.js";
|
||||
export * from "./src/accounts.js";
|
||||
export * from "./src/conversation-bindings.js";
|
||||
export * from "./src/conversation-id.js";
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
import { defineChannelPluginEntry } from "openclaw/plugin-sdk/channel-core";
|
||||
import { imessagePlugin } from "./src/channel.js";
|
||||
import { setIMessageRuntime } from "./src/runtime.js";
|
||||
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
||||
|
||||
export { imessagePlugin } from "./src/channel.js";
|
||||
export { setIMessageRuntime } from "./src/runtime.js";
|
||||
|
||||
export default defineChannelPluginEntry({
|
||||
export default defineBundledChannelEntry({
|
||||
id: "imessage",
|
||||
name: "iMessage",
|
||||
description: "iMessage channel plugin",
|
||||
plugin: imessagePlugin,
|
||||
setRuntime: setIMessageRuntime,
|
||||
importMetaUrl: import.meta.url,
|
||||
plugin: {
|
||||
specifier: "./api.js",
|
||||
exportName: "imessagePlugin",
|
||||
},
|
||||
runtime: {
|
||||
specifier: "./runtime-api.js",
|
||||
exportName: "setIMessageRuntime",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -29,6 +29,7 @@ export type { MonitorIMessageOpts } from "./src/monitor.js";
|
||||
export { probeIMessage } from "./src/probe.js";
|
||||
export type { IMessageProbe } from "./src/probe.js";
|
||||
export { sendMessageIMessage } from "./src/send.js";
|
||||
export { setIMessageRuntime } from "./src/runtime.js";
|
||||
export { chunkTextForOutbound } from "./src/channel-api.js";
|
||||
|
||||
export type IMessageAccountConfig = Omit<
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { defineSetupPluginEntry } from "openclaw/plugin-sdk/channel-core";
|
||||
import { imessageSetupPlugin } from "./src/channel.setup.js";
|
||||
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
||||
|
||||
export { imessageSetupPlugin } from "./src/channel.setup.js";
|
||||
|
||||
export default defineSetupPluginEntry(imessageSetupPlugin);
|
||||
export default defineBundledChannelSetupEntry({
|
||||
importMetaUrl: import.meta.url,
|
||||
plugin: {
|
||||
specifier: "./api.js",
|
||||
exportName: "imessageSetupPlugin",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user