@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.
Files changed (2) hide show
  1. package/index.ts +10 -6
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { defineChannelPluginEntry } from "openclaw/plugin-sdk/core";
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
- export default defineChannelPluginEntry({
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
- setRuntime: setBuzRuntime,
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buz-extensions/buz",
3
- "version": "1.0.0-beta.13",
3
+ "version": "1.0.0-beta.14",
4
4
  "description": "OpenClaw buz channel plugin",
5
5
  "type": "module",
6
6
  "license": "MIT",