mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-19 22:10:51 +00:00
fix: export imessage-core plugin-sdk subpath (#49249)
This commit is contained in:
@@ -13,6 +13,7 @@ import type {
|
||||
import * as directoryRuntimeSdk from "openclaw/plugin-sdk/directory-runtime";
|
||||
import * as discordSdk from "openclaw/plugin-sdk/discord";
|
||||
import * as imessageSdk from "openclaw/plugin-sdk/imessage";
|
||||
import * as imessageCoreSdk from "openclaw/plugin-sdk/imessage-core";
|
||||
import * as lazyRuntimeSdk from "openclaw/plugin-sdk/lazy-runtime";
|
||||
import * as ollamaSetupSdk from "openclaw/plugin-sdk/ollama-setup";
|
||||
import * as providerModelsSdk from "openclaw/plugin-sdk/provider-models";
|
||||
@@ -237,6 +238,13 @@ describe("plugin-sdk subpath exports", () => {
|
||||
expect("resolveIMessageAccount" in asExports(imessageSdk)).toBe(false);
|
||||
});
|
||||
|
||||
it("exports iMessage core helpers", () => {
|
||||
expect(typeof imessageCoreSdk.buildChannelConfigSchema).toBe("function");
|
||||
expect(typeof imessageCoreSdk.parseChatTargetPrefixesOrThrow).toBe("function");
|
||||
expect(typeof imessageCoreSdk.resolveServicePrefixedTarget).toBe("function");
|
||||
expect(typeof imessageCoreSdk.IMessageConfigSchema).toBe("object");
|
||||
});
|
||||
|
||||
it("exports WhatsApp helpers", () => {
|
||||
expect(typeof whatsappSdk.WhatsAppConfigSchema).toBe("object");
|
||||
expect(typeof whatsappSdk.resolveWhatsAppOutboundTarget).toBe("function");
|
||||
|
||||
Reference in New Issue
Block a user