feat: migrate zalo plugin to sdk

This commit is contained in:
Peter Steinberger
2026-01-18 03:34:02 +00:00
parent 5fa1a63978
commit b6d470a679
22 changed files with 182 additions and 654 deletions

View File

@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import type { CoreConfig } from "./types.js";
import type { ClawdbotConfig } from "clawdbot/plugin-sdk";
import { zaloPlugin } from "./channel.js";
@@ -12,7 +12,7 @@ describe("zalo directory", () => {
allowFrom: ["zalo:123", "zl:234", "345"],
},
},
} as unknown as CoreConfig;
} as unknown as ClawdbotConfig;
expect(zaloPlugin.directory).toBeTruthy();
expect(zaloPlugin.directory?.listPeers).toBeTruthy();