mirror of https://github.com/openclaw/openclaw.git
fix: export imessage-core plugin-sdk subpath (#49249)
This commit is contained in:
parent
42b9212eb2
commit
371b3d22f5
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue