refactor: expose setup wizard sdk surfaces

This commit is contained in:
Peter Steinberger
2026-03-15 17:56:49 -07:00
parent 18e4e4677c
commit a78b83472e
4 changed files with 32 additions and 16 deletions

View File

@@ -90,6 +90,13 @@ describe("plugin-sdk subpath exports", () => {
expect(typeof imessageSdk.imessageSetupAdapter).toBe("object");
});
it("exports IRC helpers", async () => {
const ircSdk = await import("openclaw/plugin-sdk/irc");
expect(typeof ircSdk.resolveIrcAccount).toBe("function");
expect(typeof ircSdk.ircSetupWizard).toBe("object");
expect(typeof ircSdk.ircSetupAdapter).toBe("object");
});
it("exports WhatsApp helpers", () => {
// WhatsApp-specific functions (resolveWhatsAppAccount, whatsappOnboardingAdapter) moved to extensions/whatsapp/src/
expect(typeof whatsappSdk.WhatsAppConfigSchema).toBe("object");
@@ -108,6 +115,19 @@ describe("plugin-sdk subpath exports", () => {
expect(typeof msteamsSdk.loadOutboundMediaFromUrl).toBe("function");
});
it("exports Google Chat helpers", async () => {
const googlechatSdk = await import("openclaw/plugin-sdk/googlechat");
expect(typeof googlechatSdk.googlechatSetupWizard).toBe("object");
expect(typeof googlechatSdk.googlechatSetupAdapter).toBe("object");
});
it("exports Tlon helpers", async () => {
const tlonSdk = await import("openclaw/plugin-sdk/tlon");
expect(typeof tlonSdk.fetchWithSsrFGuard).toBe("function");
expect(typeof tlonSdk.tlonSetupWizard).toBe("object");
expect(typeof tlonSdk.tlonSetupAdapter).toBe("object");
});
it("exports acpx helpers", async () => {
const acpxSdk = await import("openclaw/plugin-sdk/acpx");
expect(typeof acpxSdk.listKnownProviderAuthEnvVarNames).toBe("function");