refactor: remove remaining extension src imports

This commit is contained in:
Peter Steinberger
2026-03-17 19:48:47 -07:00
parent 055632460d
commit 5b2c5ee2bc
20 changed files with 136 additions and 16 deletions

View File

@@ -9,6 +9,7 @@ import * as discordSdk from "openclaw/plugin-sdk/discord";
import * as imessageSdk from "openclaw/plugin-sdk/imessage";
import * as lazyRuntimeSdk from "openclaw/plugin-sdk/lazy-runtime";
import * as lineSdk from "openclaw/plugin-sdk/line";
import * as lineCoreSdk from "openclaw/plugin-sdk/line-core";
import * as msteamsSdk from "openclaw/plugin-sdk/msteams";
import * as nostrSdk from "openclaw/plugin-sdk/nostr";
import * as ollamaSetupSdk from "openclaw/plugin-sdk/ollama-setup";
@@ -67,6 +68,7 @@ describe("plugin-sdk subpath exports", () => {
expect(typeof coreSdk.definePluginEntry).toBe("function");
expect(typeof coreSdk.defineChannelPluginEntry).toBe("function");
expect(typeof coreSdk.defineSetupPluginEntry).toBe("function");
expect(typeof coreSdk.optionalStringEnum).toBe("function");
expect("runPassiveAccountLifecycle" in asExports(coreSdk)).toBe(false);
expect("createLoggerBackedRuntime" in asExports(coreSdk)).toBe(false);
expect("registerSandboxBackend" in asExports(coreSdk)).toBe(false);
@@ -207,6 +209,12 @@ describe("plugin-sdk subpath exports", () => {
expect(typeof lineSdk.lineSetupAdapter).toBe("object");
});
it("exports narrow LINE core helpers", () => {
expect(typeof lineCoreSdk.resolveLineAccount).toBe("function");
expect(typeof lineCoreSdk.listLineAccountIds).toBe("function");
expect(typeof lineCoreSdk.LineConfigSchema).toBe("object");
});
it("exports Microsoft Teams helpers", () => {
expect(typeof msteamsSdk.resolveControlCommandGate).toBe("function");
expect(typeof msteamsSdk.loadOutboundMediaFromUrl).toBe("function");