2026-01-30 03:15:10 +01:00
|
|
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
|
|
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
|
2026-01-15 08:29:17 +00:00
|
|
|
import { matrixPlugin } from "./src/channel.js";
|
2026-01-18 02:51:42 +00:00
|
|
|
import { setMatrixRuntime } from "./src/runtime.js";
|
2026-01-15 08:29:17 +00:00
|
|
|
|
|
|
|
|
const plugin = {
|
|
|
|
|
id: "matrix",
|
|
|
|
|
name: "Matrix",
|
|
|
|
|
description: "Matrix channel plugin (matrix-js-sdk)",
|
2026-01-19 03:38:51 +00:00
|
|
|
configSchema: emptyPluginConfigSchema(),
|
2026-01-30 03:15:10 +01:00
|
|
|
register(api: OpenClawPluginApi) {
|
2026-01-18 02:51:42 +00:00
|
|
|
setMatrixRuntime(api.runtime);
|
2026-01-15 08:29:17 +00:00
|
|
|
api.registerChannel({ plugin: matrixPlugin });
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default plugin;
|