@buz-extensions/buz 1.0.0-beta.13 → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +10 -6
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { ChannelPlugin } from "openclaw/plugin-sdk/line";
|
|
1
|
+
import type { ChannelPlugin, OpenClawPluginApi } from "openclaw/plugin-sdk/line";
|
|
3
2
|
import { emptyPluginConfigSchema, buildChannelConfigSchema } from "openclaw/plugin-sdk/line";
|
|
4
3
|
import { z } from "zod";
|
|
5
4
|
|
|
@@ -179,11 +178,16 @@ export const buzChannelPlugin = {
|
|
|
179
178
|
},
|
|
180
179
|
} as any;
|
|
181
180
|
|
|
182
|
-
|
|
181
|
+
const plugin = {
|
|
183
182
|
id: "buz",
|
|
184
183
|
name: "buz Plugin",
|
|
185
184
|
description: "Connects OpenClaw to buz",
|
|
186
|
-
plugin: buzChannelPlugin as ChannelPlugin,
|
|
187
185
|
configSchema: emptyPluginConfigSchema(),
|
|
188
|
-
|
|
189
|
-
|
|
186
|
+
register(api: OpenClawPluginApi) {
|
|
187
|
+
setBuzRuntime(api.runtime);
|
|
188
|
+
api.registerChannel({ plugin: buzChannelPlugin as ChannelPlugin });
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export { setBuzRuntime, getBuzRuntime, buzChannelPlugin };
|
|
193
|
+
export default plugin;
|