diff --git a/extensions/synology-chat/index.ts b/extensions/synology-chat/index.ts index 87b752bbb33..69dbfb9edbf 100644 --- a/extensions/synology-chat/index.ts +++ b/extensions/synology-chat/index.ts @@ -1,5 +1,5 @@ -import type { OpenClawPluginApi } from "openclaw/plugin-sdk/core"; -import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/core"; +import type { OpenClawPluginApi } from "openclaw/plugin-sdk/synology-chat"; +import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/synology-chat"; import { createSynologyChatPlugin } from "./src/channel.js"; import { setSynologyRuntime } from "./src/runtime.js"; diff --git a/extensions/synology-chat/src/channel.integration.test.ts b/extensions/synology-chat/src/channel.integration.test.ts index 338efbc7676..b9cb5484621 100644 --- a/extensions/synology-chat/src/channel.integration.test.ts +++ b/extensions/synology-chat/src/channel.integration.test.ts @@ -11,8 +11,8 @@ type RegisteredRoute = { const registerPluginHttpRouteMock = vi.fn<(params: RegisteredRoute) => () => void>(() => vi.fn()); const dispatchReplyWithBufferedBlockDispatcher = vi.fn().mockResolvedValue({ counts: {} }); -vi.mock("openclaw/plugin-sdk/compat", async (importOriginal) => { - const actual = await importOriginal(); +vi.mock("openclaw/plugin-sdk/synology-chat", async (importOriginal) => { + const actual = await importOriginal(); return { ...actual, DEFAULT_ACCOUNT_ID: "default", diff --git a/extensions/synology-chat/src/channel.test.ts b/extensions/synology-chat/src/channel.test.ts index af5d1ed78b0..713ecf7f8c3 100644 --- a/extensions/synology-chat/src/channel.test.ts +++ b/extensions/synology-chat/src/channel.test.ts @@ -1,7 +1,7 @@ import { describe, it, expect, vi, beforeEach } from "vitest"; // Mock external dependencies -vi.mock("openclaw/plugin-sdk/compat", () => ({ +vi.mock("openclaw/plugin-sdk/synology-chat", () => ({ DEFAULT_ACCOUNT_ID: "default", setAccountEnabledInConfigSection: vi.fn((_opts: any) => ({})), registerPluginHttpRoute: vi.fn(() => vi.fn()), @@ -44,7 +44,7 @@ vi.mock("zod", () => ({ })); const { createSynologyChatPlugin } = await import("./channel.js"); -const { registerPluginHttpRoute } = await import("openclaw/plugin-sdk/compat"); +const { registerPluginHttpRoute } = await import("openclaw/plugin-sdk/synology-chat"); describe("createSynologyChatPlugin", () => { it("returns a plugin object with all required sections", () => { diff --git a/extensions/synology-chat/src/channel.ts b/extensions/synology-chat/src/channel.ts index ed003d69a9d..81ef191ba77 100644 --- a/extensions/synology-chat/src/channel.ts +++ b/extensions/synology-chat/src/channel.ts @@ -9,7 +9,7 @@ import { setAccountEnabledInConfigSection, registerPluginHttpRoute, buildChannelConfigSchema, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/synology-chat"; import { z } from "zod"; import { listAccountIds, resolveAccount } from "./accounts.js"; import { sendMessage, sendFileUrl } from "./client.js"; diff --git a/extensions/synology-chat/src/runtime.ts b/extensions/synology-chat/src/runtime.ts index a27e67d77ec..f7ef39ff65f 100644 --- a/extensions/synology-chat/src/runtime.ts +++ b/extensions/synology-chat/src/runtime.ts @@ -4,7 +4,7 @@ * Used by channel.ts to access dispatch functions. */ -import type { PluginRuntime } from "openclaw/plugin-sdk/compat"; +import type { PluginRuntime } from "openclaw/plugin-sdk/synology-chat"; let runtime: PluginRuntime | null = null; diff --git a/extensions/synology-chat/src/security.ts b/extensions/synology-chat/src/security.ts index dd4bed35b29..5b661eb6b84 100644 --- a/extensions/synology-chat/src/security.ts +++ b/extensions/synology-chat/src/security.ts @@ -6,7 +6,7 @@ import * as crypto from "node:crypto"; import { createFixedWindowRateLimiter, type FixedWindowRateLimiter, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/synology-chat"; export type DmAuthorizationResult = | { allowed: true } diff --git a/extensions/synology-chat/src/webhook-handler.ts b/extensions/synology-chat/src/webhook-handler.ts index aa0e3187bc1..fab4b9a0238 100644 --- a/extensions/synology-chat/src/webhook-handler.ts +++ b/extensions/synology-chat/src/webhook-handler.ts @@ -9,7 +9,7 @@ import { isRequestBodyLimitError, readRequestBodyWithLimit, requestBodyErrorToText, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/synology-chat"; import { sendMessage, resolveChatUserId } from "./client.js"; import { validateToken, authorizeUserForDm, sanitizeInput, RateLimiter } from "./security.js"; import type { SynologyWebhookPayload, ResolvedSynologyChatAccount } from "./types.js";