Skip to content

Commit a1e21bc

Browse files
committed
Plugins/googlechat: migrate to scoped plugin-sdk imports
1 parent 5174b38 commit a1e21bc

16 files changed

Lines changed: 24 additions & 24 deletions

‎extensions/googlechat/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/core";
2-
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/core";
1+
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/googlechat";
2+
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/googlechat";
33
import { googlechatDock, googlechatPlugin } from "./src/channel.js";
44
import { setGoogleChatRuntime } from "./src/runtime.js";
55

‎extensions/googlechat/src/accounts.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {
33
normalizeAccountId,
44
normalizeOptionalAccountId,
55
} from "openclaw/plugin-sdk/account-id";
6-
import { isSecretRef } from "openclaw/plugin-sdk/compat";
7-
import type { OpenClawConfig } from "openclaw/plugin-sdk/compat";
6+
import { isSecretRef } from "openclaw/plugin-sdk/googlechat";
7+
import type { OpenClawConfig } from "openclaw/plugin-sdk/googlechat";
88
import type { GoogleChatAccountConfig } from "./types.config.js";
99

1010
export type GoogleChatCredentialSource = "file" | "inline" | "env" | "none";

‎extensions/googlechat/src/actions.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import type {
22
ChannelMessageActionAdapter,
33
ChannelMessageActionName,
44
OpenClawConfig,
5-
} from "openclaw/plugin-sdk/compat";
5+
} from "openclaw/plugin-sdk/googlechat";
66
import {
77
createActionGate,
88
extractToolSend,
99
jsonResult,
1010
readNumberParam,
1111
readReactionParams,
1212
readStringParam,
13-
} from "openclaw/plugin-sdk/compat";
13+
} from "openclaw/plugin-sdk/googlechat";
1414
import { listEnabledGoogleChatAccounts, resolveGoogleChatAccount } from "./accounts.js";
1515
import {
1616
createGoogleChatReaction,

‎extensions/googlechat/src/api.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import crypto from "node:crypto";
2-
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/compat";
2+
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/googlechat";
33
import type { ResolvedGoogleChatAccount } from "./accounts.js";
44
import { getGoogleChatAccessToken } from "./auth.js";
55
import type { GoogleChatReaction } from "./types.js";

‎extensions/googlechat/src/channel.outbound.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { OpenClawConfig, PluginRuntime } from "openclaw/plugin-sdk";
1+
import type { OpenClawConfig, PluginRuntime } from "openclaw/plugin-sdk/googlechat";
22
import { describe, expect, it, vi } from "vitest";
33

44
const uploadGoogleChatAttachmentMock = vi.hoisted(() => vi.fn());

‎extensions/googlechat/src/channel.startup.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ChannelAccountSnapshot } from "openclaw/plugin-sdk/compat";
1+
import type { ChannelAccountSnapshot } from "openclaw/plugin-sdk/googlechat";
22
import { afterEach, describe, expect, it, vi } from "vitest";
33
import { createStartAccountContext } from "../../test-utils/start-account-context.js";
44
import type { ResolvedGoogleChatAccount } from "./accounts.js";

‎extensions/googlechat/src/channel.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import {
1919
type ChannelPlugin,
2020
type ChannelStatusIssue,
2121
type OpenClawConfig,
22-
} from "openclaw/plugin-sdk/compat";
23-
import { GoogleChatConfigSchema } from "openclaw/plugin-sdk/compat";
22+
} from "openclaw/plugin-sdk/googlechat";
23+
import { GoogleChatConfigSchema } from "openclaw/plugin-sdk/googlechat";
2424
import {
2525
listGoogleChatAccountIds,
2626
resolveDefaultGoogleChatAccountId,

‎extensions/googlechat/src/monitor-access.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
resolveDmGroupAccessWithLists,
88
resolveMentionGatingWithBypass,
99
warnMissingProviderGroupPolicyFallbackOnce,
10-
} from "openclaw/plugin-sdk/compat";
11-
import type { OpenClawConfig } from "openclaw/plugin-sdk/compat";
10+
} from "openclaw/plugin-sdk/googlechat";
11+
import type { OpenClawConfig } from "openclaw/plugin-sdk/googlechat";
1212
import type { ResolvedGoogleChatAccount } from "./accounts.js";
1313
import { sendGoogleChatMessage } from "./api.js";
1414
import type { GoogleChatCoreRuntime } from "./monitor-types.js";

‎extensions/googlechat/src/monitor-types.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { OpenClawConfig } from "openclaw/plugin-sdk/compat";
1+
import type { OpenClawConfig } from "openclaw/plugin-sdk/googlechat";
22
import type { ResolvedGoogleChatAccount } from "./accounts.js";
33
import type { GoogleChatAudienceType } from "./auth.js";
44
import { getGoogleChatRuntime } from "./runtime.js";

‎extensions/googlechat/src/monitor-webhook.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
resolveWebhookTargetWithAuthOrReject,
66
resolveWebhookTargets,
77
type WebhookInFlightLimiter,
8-
} from "openclaw/plugin-sdk/compat";
8+
} from "openclaw/plugin-sdk/googlechat";
99
import { verifyGoogleChatRequest } from "./auth.js";
1010
import type { WebhookTarget } from "./monitor-types.js";
1111
import type {

0 commit comments

Comments
 (0)