diff --git a/extensions/googlechat/index.ts b/extensions/googlechat/index.ts index 8bcb1f76e..e218a15c8 100644 --- a/extensions/googlechat/index.ts +++ b/extensions/googlechat/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/googlechat"; +import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/googlechat"; import { googlechatDock, googlechatPlugin } from "./src/channel.js"; import { setGoogleChatRuntime } from "./src/runtime.js"; diff --git a/extensions/googlechat/src/accounts.ts b/extensions/googlechat/src/accounts.ts index 494e1481b..537c898d7 100644 --- a/extensions/googlechat/src/accounts.ts +++ b/extensions/googlechat/src/accounts.ts @@ -3,8 +3,8 @@ import { normalizeAccountId, normalizeOptionalAccountId, } from "openclaw/plugin-sdk/account-id"; -import { isSecretRef } from "openclaw/plugin-sdk/compat"; -import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; +import { isSecretRef } from "openclaw/plugin-sdk/googlechat"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/googlechat"; 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 41f94593c..4685ac0bd 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/compat"; +} from "openclaw/plugin-sdk/googlechat"; import { createActionGate, extractToolSend, @@ -10,7 +10,7 @@ import { readNumberParam, readReactionParams, readStringParam, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/googlechat"; import { listEnabledGoogleChatAccounts, resolveGoogleChatAccount } from "./accounts.js"; import { createGoogleChatReaction, diff --git a/extensions/googlechat/src/api.ts b/extensions/googlechat/src/api.ts index e7db6b760..7c4f26b8d 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/compat"; +import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/googlechat"; import type { ResolvedGoogleChatAccount } from "./accounts.js"; import { getGoogleChatAccessToken } from "./auth.js"; import type { GoogleChatReaction } from "./types.js"; diff --git a/extensions/googlechat/src/channel.outbound.test.ts b/extensions/googlechat/src/channel.outbound.test.ts index b50dbc7c6..a530d3afe 100644 --- a/extensions/googlechat/src/channel.outbound.test.ts +++ b/extensions/googlechat/src/channel.outbound.test.ts @@ -1,4 +1,4 @@ -import type { OpenClawConfig, PluginRuntime } from "openclaw/plugin-sdk"; +import type { OpenClawConfig, PluginRuntime } from "openclaw/plugin-sdk/googlechat"; import { describe, expect, it, vi } from "vitest"; const uploadGoogleChatAttachmentMock = vi.hoisted(() => vi.fn()); diff --git a/extensions/googlechat/src/channel.startup.test.ts b/extensions/googlechat/src/channel.startup.test.ts index 421aa4743..521cbb94c 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/compat"; +import type { ChannelAccountSnapshot } from "openclaw/plugin-sdk/googlechat"; 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 bfb2aabe3..6dd896e9f 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/compat"; -import { GoogleChatConfigSchema } from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/googlechat"; +import { GoogleChatConfigSchema } from "openclaw/plugin-sdk/googlechat"; import { listGoogleChatAccountIds, resolveDefaultGoogleChatAccountId, diff --git a/extensions/googlechat/src/monitor-access.ts b/extensions/googlechat/src/monitor-access.ts index 58c13ab9b..daecea59f 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/compat"; -import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/googlechat"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/googlechat"; 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 5cc43d2ee..792eb66bc 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/compat"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/googlechat"; 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 e7ba9107e..4272b2bfa 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/compat"; +} from "openclaw/plugin-sdk/googlechat"; 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 138de4b18..ad89a9c74 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/compat"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/googlechat"; import { createWebhookInFlightLimiter, createReplyPrefixOptions, registerWebhookTargetWithPluginRoute, resolveInboundRouteEnvelopeBuilderWithRuntime, resolveWebhookPath, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/googlechat"; 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 d35077d21..812883f1b 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/compat"; +import type { OpenClawConfig, PluginRuntime } from "openclaw/plugin-sdk/googlechat"; 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 da0c64769..9c0aac823 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/compat"; +import type { OpenClawConfig, DmPolicy } from "openclaw/plugin-sdk/googlechat"; import { addWildcardAllowFrom, formatDocsLink, @@ -10,7 +10,7 @@ import { DEFAULT_ACCOUNT_ID, normalizeAccountId, migrateBaseNameToDefaultAccount, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/googlechat"; import { listGoogleChatAccountIds, resolveDefaultGoogleChatAccountId, diff --git a/extensions/googlechat/src/resolve-target.test.ts b/extensions/googlechat/src/resolve-target.test.ts index 82e340874..2f898c48b 100644 --- a/extensions/googlechat/src/resolve-target.test.ts +++ b/extensions/googlechat/src/resolve-target.test.ts @@ -6,7 +6,7 @@ const runtimeMocks = vi.hoisted(() => ({ fetchRemoteMedia: vi.fn(), })); -vi.mock("openclaw/plugin-sdk", () => ({ +vi.mock("openclaw/plugin-sdk/googlechat", () => ({ getChatChannelMeta: () => ({ id: "googlechat", label: "Google Chat" }), missingTargetError: (provider: string, hint: string) => new Error(`Delivering to ${provider} requires target ${hint}`), @@ -72,7 +72,7 @@ vi.mock("./targets.js", () => ({ resolveGoogleChatOutboundSpace: vi.fn(), })); -import { resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk"; +import { resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/googlechat"; import { resolveGoogleChatAccount } from "./accounts.js"; import { sendGoogleChatMessage, uploadGoogleChatAttachment } from "./api.js"; import { googlechatPlugin } from "./channel.js"; diff --git a/extensions/googlechat/src/runtime.ts b/extensions/googlechat/src/runtime.ts index 67a21a21e..55af03db0 100644 --- a/extensions/googlechat/src/runtime.ts +++ b/extensions/googlechat/src/runtime.ts @@ -1,4 +1,4 @@ -import type { PluginRuntime } from "openclaw/plugin-sdk/compat"; +import type { PluginRuntime } from "openclaw/plugin-sdk/googlechat"; let runtime: PluginRuntime | null = null; diff --git a/extensions/googlechat/src/types.config.ts b/extensions/googlechat/src/types.config.ts index 09062a266..cbc1034ae 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/compat"; +import type { GoogleChatAccountConfig, GoogleChatConfig } from "openclaw/plugin-sdk/googlechat"; export type { GoogleChatAccountConfig, GoogleChatConfig };