2026-01-30 03:15:10 +01:00
|
|
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
|
|
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
|
2026-01-18 08:32:19 +00:00
|
|
|
import { imessagePlugin } from "./src/channel.js";
|
2026-01-18 11:00:19 +00:00
|
|
|
import { setIMessageRuntime } from "./src/runtime.js";
|
2026-01-18 08:32:19 +00:00
|
|
|
|
|
|
|
|
const plugin = {
|
|
|
|
|
id: "imessage",
|
|
|
|
|
name: "iMessage",
|
|
|
|
|
description: "iMessage channel plugin",
|
2026-01-19 03:38:51 +00:00
|
|
|
configSchema: emptyPluginConfigSchema(),
|
2026-01-30 03:15:10 +01:00
|
|
|
register(api: OpenClawPluginApi) {
|
2026-01-18 11:00:19 +00:00
|
|
|
setIMessageRuntime(api.runtime);
|
2026-01-18 08:32:19 +00:00
|
|
|
api.registerChannel({ plugin: imessagePlugin });
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default plugin;
|