Skip to content

Commit 10bd6ae

Browse files
committed
Extensions: migrate msteams plugin-sdk imports
1 parent b218809 commit 10bd6ae

34 files changed

Lines changed: 43 additions & 39 deletions

extensions/msteams/src/attachments.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PluginRuntime, SsrFPolicy } from "openclaw/plugin-sdk";
1+
import type { PluginRuntime, SsrFPolicy } from "openclaw/plugin-sdk/compat";
22
import { beforeEach, describe, expect, it, vi } from "vitest";
33
import { createPluginRuntimeMock } from "../../test-utils/plugin-runtime-mock.js";
44
import {

extensions/msteams/src/attachments/graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { fetchWithSsrFGuard, type SsrFPolicy } from "openclaw/plugin-sdk";
1+
import { fetchWithSsrFGuard, type SsrFPolicy } from "openclaw/plugin-sdk/compat";
22
import { getMSTeamsRuntime } from "../runtime.js";
33
import { downloadMSTeamsAttachments } from "./download.js";
44
import { downloadAndStoreMSTeamsRemoteMedia } from "./remote-media.js";

extensions/msteams/src/attachments/payload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { buildMediaPayload } from "openclaw/plugin-sdk";
1+
import { buildMediaPayload } from "openclaw/plugin-sdk/compat";
22

33
export function buildMSTeamsMediaPayload(
44
mediaList: Array<{ path: string; contentType?: string }>,

extensions/msteams/src/attachments/remote-media.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SsrFPolicy } from "openclaw/plugin-sdk";
1+
import type { SsrFPolicy } from "openclaw/plugin-sdk/compat";
22
import { getMSTeamsRuntime } from "../runtime.js";
33
import { inferPlaceholder } from "./shared.js";
44
import type { MSTeamsInboundMedia } from "./types.js";

extensions/msteams/src/attachments/shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {
44
isHttpsUrlAllowedByHostnameSuffixAllowlist,
55
isPrivateIpAddress,
66
normalizeHostnameSuffixAllowlist,
7-
} from "openclaw/plugin-sdk";
8-
import type { SsrFPolicy } from "openclaw/plugin-sdk";
7+
} from "openclaw/plugin-sdk/compat";
8+
import type { SsrFPolicy } from "openclaw/plugin-sdk/compat";
99
import type { MSTeamsAttachmentLike } from "./types.js";
1010

1111
type InlineImageCandidate =

extensions/msteams/src/channel.directory.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { OpenClawConfig, RuntimeEnv } from "openclaw/plugin-sdk";
1+
import type { OpenClawConfig, RuntimeEnv } from "openclaw/plugin-sdk/compat";
22
import { describe, expect, it } from "vitest";
33
import { msteamsPlugin } from "./channel.js";
44

extensions/msteams/src/channel.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import type { ChannelMessageActionName, ChannelPlugin, OpenClawConfig } from "openclaw/plugin-sdk";
1+
import type {
2+
ChannelMessageActionName,
3+
ChannelPlugin,
4+
OpenClawConfig,
5+
} from "openclaw/plugin-sdk/compat";
26
import {
37
buildBaseChannelStatusSummary,
48
buildChannelConfigSchema,
@@ -8,7 +12,7 @@ import {
812
PAIRING_APPROVED_MESSAGE,
913
resolveAllowlistProviderRuntimeGroupPolicy,
1014
resolveDefaultGroupPolicy,
11-
} from "openclaw/plugin-sdk";
15+
} from "openclaw/plugin-sdk/compat";
1216
import { listMSTeamsDirectoryGroupsLive, listMSTeamsDirectoryPeersLive } from "./directory-live.js";
1317
import { msteamsOnboardingAdapter } from "./onboarding.js";
1418
import { msteamsOutbound } from "./outbound.js";

extensions/msteams/src/directory-live.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ChannelDirectoryEntry } from "openclaw/plugin-sdk";
1+
import type { ChannelDirectoryEntry } from "openclaw/plugin-sdk/compat";
22
import { searchGraphUsers } from "./graph-users.js";
33
import {
44
type GraphChannel,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { withFileLock } from "openclaw/plugin-sdk";
1+
export { withFileLock } from "openclaw/plugin-sdk/compat";

extensions/msteams/src/graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { MSTeamsConfig } from "openclaw/plugin-sdk";
1+
import type { MSTeamsConfig } from "openclaw/plugin-sdk/compat";
22
import { GRAPH_ROOT } from "./attachments/shared.js";
33
import { loadMSTeamsSdkWithAuth } from "./sdk.js";
44
import { readAccessToken } from "./token-response.js";

0 commit comments

Comments
 (0)