mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-30 20:00:21 +00:00
refactor: remove remaining extension src imports
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user