diff --git a/extensions/googlechat/src/accounts.ts b/extensions/googlechat/src/accounts.ts index a50ef0b2a74..494e1481b6d 100644 --- a/extensions/googlechat/src/accounts.ts +++ b/extensions/googlechat/src/accounts.ts @@ -1,10 +1,10 @@ -import { isSecretRef } from "openclaw/plugin-sdk"; -import type { OpenClawConfig } from "openclaw/plugin-sdk"; import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId, } from "openclaw/plugin-sdk/account-id"; +import { isSecretRef } from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; import type { GoogleChatAccountConfig } from "./types.config.js"; export type GoogleChatCredentialSource = "file" | "inline" | "env" | "none"; diff --git a/extensions/googlechat/src/actions.ts b/extensions/googlechat/src/actions.ts index 85a3e3d383d..41f94593c67 100644 --- a/extensions/googlechat/src/actions.ts +++ b/extensions/googlechat/src/actions.ts @@ -2,7 +2,7 @@ import type { ChannelMessageActionAdapter, ChannelMessageActionName, OpenClawConfig, -} from "openclaw/plugin-sdk"; +} from "openclaw/plugin-sdk/compat"; import { createActionGate, extractToolSend, @@ -10,7 +10,7 @@ import { readNumberParam, readReactionParams, readStringParam, -} from "openclaw/plugin-sdk"; +} from "openclaw/plugin-sdk/compat"; import { listEnabledGoogleChatAccounts, resolveGoogleChatAccount } from "./accounts.js"; import { createGoogleChatReaction, diff --git a/extensions/googlechat/src/api.ts b/extensions/googlechat/src/api.ts index de611f66af5..e7db6b76022 100644 --- a/extensions/googlechat/src/api.ts +++ b/extensions/googlechat/src/api.ts @@ -1,5 +1,5 @@ import crypto from "node:crypto"; -import { fetchWithSsrFGuard } from "openclaw/plugin-sdk"; +import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/compat"; import type { ResolvedGoogleChatAccount } from "./accounts.js"; import { getGoogleChatAccessToken } from "./auth.js"; import type { GoogleChatReaction } from "./types.js"; diff --git a/extensions/googlechat/src/channel.startup.test.ts b/extensions/googlechat/src/channel.startup.test.ts index 4735ae811e4..421aa474328 100644 --- a/extensions/googlechat/src/channel.startup.test.ts +++ b/extensions/googlechat/src/channel.startup.test.ts @@ -1,4 +1,4 @@ -import type { ChannelAccountSnapshot } from "openclaw/plugin-sdk"; +import type { ChannelAccountSnapshot } from "openclaw/plugin-sdk/compat"; import { afterEach, describe, expect, it, vi } from "vitest"; import { createStartAccountContext } from "../../test-utils/start-account-context.js"; import type { ResolvedGoogleChatAccount } from "./accounts.js"; diff --git a/extensions/googlechat/src/channel.ts b/extensions/googlechat/src/channel.ts index f79d2212ec7..bfb2aabe356 100644 --- a/extensions/googlechat/src/channel.ts +++ b/extensions/googlechat/src/channel.ts @@ -19,8 +19,8 @@ import { type ChannelPlugin, type ChannelStatusIssue, type OpenClawConfig, -} from "openclaw/plugin-sdk"; -import { GoogleChatConfigSchema } from "openclaw/plugin-sdk"; +} from "openclaw/plugin-sdk/compat"; +import { GoogleChatConfigSchema } from "openclaw/plugin-sdk/compat"; import { listGoogleChatAccountIds, resolveDefaultGoogleChatAccountId, diff --git a/extensions/googlechat/src/monitor-access.ts b/extensions/googlechat/src/monitor-access.ts index f057c645de9..58c13ab9b9c 100644 --- a/extensions/googlechat/src/monitor-access.ts +++ b/extensions/googlechat/src/monitor-access.ts @@ -7,8 +7,8 @@ import { resolveDmGroupAccessWithLists, resolveMentionGatingWithBypass, warnMissingProviderGroupPolicyFallbackOnce, -} from "openclaw/plugin-sdk"; -import type { OpenClawConfig } from "openclaw/plugin-sdk"; +} from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; import type { ResolvedGoogleChatAccount } from "./accounts.js"; import { sendGoogleChatMessage } from "./api.js"; import type { GoogleChatCoreRuntime } from "./monitor-types.js"; diff --git a/extensions/googlechat/src/monitor-types.ts b/extensions/googlechat/src/monitor-types.ts index 6a0f6d8f847..5cc43d2eedf 100644 --- a/extensions/googlechat/src/monitor-types.ts +++ b/extensions/googlechat/src/monitor-types.ts @@ -1,4 +1,4 @@ -import type { OpenClawConfig } from "openclaw/plugin-sdk"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; import type { ResolvedGoogleChatAccount } from "./accounts.js"; import type { GoogleChatAudienceType } from "./auth.js"; import { getGoogleChatRuntime } from "./runtime.js"; diff --git a/extensions/googlechat/src/monitor-webhook.ts b/extensions/googlechat/src/monitor-webhook.ts index c2978566198..e7ba9107e0f 100644 --- a/extensions/googlechat/src/monitor-webhook.ts +++ b/extensions/googlechat/src/monitor-webhook.ts @@ -5,7 +5,7 @@ import { resolveWebhookTargetWithAuthOrReject, resolveWebhookTargets, type WebhookInFlightLimiter, -} from "openclaw/plugin-sdk"; +} from "openclaw/plugin-sdk/compat"; import { verifyGoogleChatRequest } from "./auth.js"; import type { WebhookTarget } from "./monitor-types.js"; import type { diff --git a/extensions/googlechat/src/monitor.ts b/extensions/googlechat/src/monitor.ts index f0079b5c0f8..138de4b1882 100644 --- a/extensions/googlechat/src/monitor.ts +++ b/extensions/googlechat/src/monitor.ts @@ -1,12 +1,12 @@ import type { IncomingMessage, ServerResponse } from "node:http"; -import type { OpenClawConfig } from "openclaw/plugin-sdk"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; import { createWebhookInFlightLimiter, createReplyPrefixOptions, registerWebhookTargetWithPluginRoute, resolveInboundRouteEnvelopeBuilderWithRuntime, resolveWebhookPath, -} from "openclaw/plugin-sdk"; +} from "openclaw/plugin-sdk/compat"; import { type ResolvedGoogleChatAccount } from "./accounts.js"; import { downloadGoogleChatMedia, diff --git a/extensions/googlechat/src/monitor.webhook-routing.test.ts b/extensions/googlechat/src/monitor.webhook-routing.test.ts index 0aafa77e09f..d35077d2167 100644 --- a/extensions/googlechat/src/monitor.webhook-routing.test.ts +++ b/extensions/googlechat/src/monitor.webhook-routing.test.ts @@ -1,6 +1,6 @@ import { EventEmitter } from "node:events"; import type { IncomingMessage } from "node:http"; -import type { OpenClawConfig, PluginRuntime } from "openclaw/plugin-sdk"; +import type { OpenClawConfig, PluginRuntime } from "openclaw/plugin-sdk/compat"; import { afterEach, describe, expect, it, vi } from "vitest"; import { createEmptyPluginRegistry } from "../../../src/plugins/registry.js"; import { setActivePluginRegistry } from "../../../src/plugins/runtime.js"; diff --git a/extensions/googlechat/src/onboarding.ts b/extensions/googlechat/src/onboarding.ts index 1b7e82f6951..da0c647698b 100644 --- a/extensions/googlechat/src/onboarding.ts +++ b/extensions/googlechat/src/onboarding.ts @@ -1,4 +1,4 @@ -import type { OpenClawConfig, DmPolicy } from "openclaw/plugin-sdk"; +import type { OpenClawConfig, DmPolicy } from "openclaw/plugin-sdk/compat"; import { addWildcardAllowFrom, formatDocsLink, @@ -10,7 +10,7 @@ import { DEFAULT_ACCOUNT_ID, normalizeAccountId, migrateBaseNameToDefaultAccount, -} from "openclaw/plugin-sdk"; +} from "openclaw/plugin-sdk/compat"; import { listGoogleChatAccountIds, resolveDefaultGoogleChatAccountId, diff --git a/extensions/googlechat/src/runtime.ts b/extensions/googlechat/src/runtime.ts index 67a1917a888..67a21a21e9c 100644 --- a/extensions/googlechat/src/runtime.ts +++ b/extensions/googlechat/src/runtime.ts @@ -1,4 +1,4 @@ -import type { PluginRuntime } from "openclaw/plugin-sdk"; +import type { PluginRuntime } from "openclaw/plugin-sdk/compat"; let runtime: PluginRuntime | null = null; diff --git a/extensions/googlechat/src/types.config.ts b/extensions/googlechat/src/types.config.ts index 17fe1dc67d9..09062a2661d 100644 --- a/extensions/googlechat/src/types.config.ts +++ b/extensions/googlechat/src/types.config.ts @@ -1,3 +1,3 @@ -import type { GoogleChatAccountConfig, GoogleChatConfig } from "openclaw/plugin-sdk"; +import type { GoogleChatAccountConfig, GoogleChatConfig } from "openclaw/plugin-sdk/compat"; export type { GoogleChatAccountConfig, GoogleChatConfig };