diff --git a/extensions/zalouser/index.ts b/extensions/zalouser/index.ts index 6b5d470b85d..b169292e954 100644 --- a/extensions/zalouser/index.ts +++ b/extensions/zalouser/index.ts @@ -1,5 +1,5 @@ -import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk/core"; -import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/core"; +import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk/zalouser"; +import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/zalouser"; import { zalouserDock, zalouserPlugin } from "./src/channel.js"; import { setZalouserRuntime } from "./src/runtime.js"; import { ZalouserToolSchema, executeZalouserTool } from "./src/tool.js"; diff --git a/extensions/zalouser/src/accounts.test.ts b/extensions/zalouser/src/accounts.test.ts index 672a3618431..7b6a63d66a7 100644 --- a/extensions/zalouser/src/accounts.test.ts +++ b/extensions/zalouser/src/accounts.test.ts @@ -1,5 +1,5 @@ import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id"; -import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/zalouser"; import { beforeEach, describe, expect, it, vi } from "vitest"; import { getZcaUserInfo, diff --git a/extensions/zalouser/src/accounts.ts b/extensions/zalouser/src/accounts.ts index 860c1202155..ebf4182f15e 100644 --- a/extensions/zalouser/src/accounts.ts +++ b/extensions/zalouser/src/accounts.ts @@ -3,7 +3,7 @@ import { normalizeAccountId, normalizeOptionalAccountId, } from "openclaw/plugin-sdk/account-id"; -import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/zalouser"; import type { ResolvedZalouserAccount, ZalouserAccountConfig, ZalouserConfig } from "./types.js"; import { checkZaloAuthenticated, getZaloUserInfo } from "./zalo-js.js"; diff --git a/extensions/zalouser/src/channel.sendpayload.test.ts b/extensions/zalouser/src/channel.sendpayload.test.ts index 9ca29d8bea3..31eb6136cd5 100644 --- a/extensions/zalouser/src/channel.sendpayload.test.ts +++ b/extensions/zalouser/src/channel.sendpayload.test.ts @@ -1,4 +1,4 @@ -import type { ReplyPayload } from "openclaw/plugin-sdk/compat"; +import type { ReplyPayload } from "openclaw/plugin-sdk/zalouser"; import { beforeEach, describe, expect, it, vi } from "vitest"; import { zalouserPlugin } from "./channel.js"; diff --git a/extensions/zalouser/src/channel.ts b/extensions/zalouser/src/channel.ts index fa5411e2ccc..2c2228b05b9 100644 --- a/extensions/zalouser/src/channel.ts +++ b/extensions/zalouser/src/channel.ts @@ -9,7 +9,7 @@ import type { ChannelPlugin, OpenClawConfig, GroupToolPolicyConfig, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/zalouser"; import { applyAccountNameToChannelSection, buildChannelConfigSchema, @@ -23,7 +23,7 @@ import { resolvePreferredOpenClawTmpDir, resolveChannelAccountConfigBasePath, setAccountEnabledInConfigSection, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/zalouser"; import { listZalouserAccountIds, resolveDefaultZalouserAccountId, diff --git a/extensions/zalouser/src/config-schema.ts b/extensions/zalouser/src/config-schema.ts index 0f4b505d38e..bbc8457da6e 100644 --- a/extensions/zalouser/src/config-schema.ts +++ b/extensions/zalouser/src/config-schema.ts @@ -1,4 +1,4 @@ -import { MarkdownConfigSchema, ToolPolicySchema } from "openclaw/plugin-sdk/compat"; +import { MarkdownConfigSchema, ToolPolicySchema } from "openclaw/plugin-sdk/zalouser"; import { z } from "zod"; const allowFromEntry = z.union([z.string(), z.number()]); diff --git a/extensions/zalouser/src/monitor.account-scope.test.ts b/extensions/zalouser/src/monitor.account-scope.test.ts index eca0cff6c8c..931a6cde6eb 100644 --- a/extensions/zalouser/src/monitor.account-scope.test.ts +++ b/extensions/zalouser/src/monitor.account-scope.test.ts @@ -1,4 +1,4 @@ -import type { OpenClawConfig, PluginRuntime, RuntimeEnv } from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig, PluginRuntime, RuntimeEnv } from "openclaw/plugin-sdk/zalouser"; import { describe, expect, it, vi } from "vitest"; import { __testing } from "./monitor.js"; import { setZalouserRuntime } from "./runtime.js"; diff --git a/extensions/zalouser/src/monitor.group-gating.test.ts b/extensions/zalouser/src/monitor.group-gating.test.ts index 146ae563589..dda0ed0a3de 100644 --- a/extensions/zalouser/src/monitor.group-gating.test.ts +++ b/extensions/zalouser/src/monitor.group-gating.test.ts @@ -1,4 +1,4 @@ -import type { OpenClawConfig, PluginRuntime, RuntimeEnv } from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig, PluginRuntime, RuntimeEnv } from "openclaw/plugin-sdk/zalouser"; import { beforeEach, describe, expect, it, vi } from "vitest"; import { __testing } from "./monitor.js"; import { setZalouserRuntime } from "./runtime.js"; diff --git a/extensions/zalouser/src/monitor.ts b/extensions/zalouser/src/monitor.ts index 9382bdb9e7f..fc3e07c564e 100644 --- a/extensions/zalouser/src/monitor.ts +++ b/extensions/zalouser/src/monitor.ts @@ -3,7 +3,7 @@ import type { OpenClawConfig, OutboundReplyPayload, RuntimeEnv, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/zalouser"; import { createTypingCallbacks, createScopedPairingAccess, @@ -17,7 +17,7 @@ import { sendMediaWithLeadingCaption, summarizeMapping, warnMissingProviderGroupPolicyFallbackOnce, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/zalouser"; import { buildZalouserGroupCandidates, findZalouserGroupEntry, diff --git a/extensions/zalouser/src/onboarding.ts b/extensions/zalouser/src/onboarding.ts index 22039413085..728edff704a 100644 --- a/extensions/zalouser/src/onboarding.ts +++ b/extensions/zalouser/src/onboarding.ts @@ -5,7 +5,7 @@ import type { ChannelOnboardingDmPolicy, OpenClawConfig, WizardPrompter, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/zalouser"; import { addWildcardAllowFrom, DEFAULT_ACCOUNT_ID, @@ -15,7 +15,7 @@ import { promptAccountId, promptChannelAccessConfig, resolvePreferredOpenClawTmpDir, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/zalouser"; import { listZalouserAccountIds, resolveDefaultZalouserAccountId, diff --git a/extensions/zalouser/src/probe.ts b/extensions/zalouser/src/probe.ts index cfa33b0c645..b3213010f26 100644 --- a/extensions/zalouser/src/probe.ts +++ b/extensions/zalouser/src/probe.ts @@ -1,4 +1,4 @@ -import type { BaseProbeResult } from "openclaw/plugin-sdk/compat"; +import type { BaseProbeResult } from "openclaw/plugin-sdk/zalouser"; import type { ZcaUserInfo } from "./types.js"; import { getZaloUserInfo } from "./zalo-js.js"; diff --git a/extensions/zalouser/src/runtime.ts b/extensions/zalouser/src/runtime.ts index 66287f1280f..42cb9def444 100644 --- a/extensions/zalouser/src/runtime.ts +++ b/extensions/zalouser/src/runtime.ts @@ -1,4 +1,4 @@ -import type { PluginRuntime } from "openclaw/plugin-sdk/compat"; +import type { PluginRuntime } from "openclaw/plugin-sdk/zalouser"; let runtime: PluginRuntime | null = null; diff --git a/extensions/zalouser/src/status-issues.ts b/extensions/zalouser/src/status-issues.ts index d9f47361d30..fca889a5115 100644 --- a/extensions/zalouser/src/status-issues.ts +++ b/extensions/zalouser/src/status-issues.ts @@ -1,4 +1,4 @@ -import type { ChannelAccountSnapshot, ChannelStatusIssue } from "openclaw/plugin-sdk/compat"; +import type { ChannelAccountSnapshot, ChannelStatusIssue } from "openclaw/plugin-sdk/zalouser"; type ZalouserAccountStatus = { accountId?: unknown; diff --git a/extensions/zalouser/src/zalo-js.ts b/extensions/zalouser/src/zalo-js.ts index 2e230c81ec1..206efaed2a5 100644 --- a/extensions/zalouser/src/zalo-js.ts +++ b/extensions/zalouser/src/zalo-js.ts @@ -3,7 +3,7 @@ import fs from "node:fs"; import fsp from "node:fs/promises"; import os from "node:os"; import path from "node:path"; -import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/compat"; +import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/zalouser"; import { normalizeZaloReactionIcon } from "./reaction.js"; import { getZalouserRuntime } from "./runtime.js"; import type {