From adb400f9b1f8a6fd0b1c1f8b813ddd44f72c39f8 Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Wed, 4 Mar 2026 02:33:07 -0500 Subject: [PATCH] Plugins/msteams: migrate to scoped plugin-sdk imports --- extensions/msteams/index.ts | 4 ++-- extensions/msteams/src/attachments.test.ts | 2 +- extensions/msteams/src/attachments/graph.ts | 2 +- extensions/msteams/src/attachments/payload.ts | 2 +- extensions/msteams/src/attachments/remote-media.ts | 2 +- extensions/msteams/src/attachments/shared.ts | 4 ++-- extensions/msteams/src/channel.directory.test.ts | 2 +- extensions/msteams/src/channel.ts | 4 ++-- extensions/msteams/src/directory-live.ts | 2 +- extensions/msteams/src/file-lock.ts | 2 +- extensions/msteams/src/graph.ts | 2 +- extensions/msteams/src/media-helpers.ts | 2 +- extensions/msteams/src/messenger.test.ts | 2 +- extensions/msteams/src/messenger.ts | 2 +- extensions/msteams/src/monitor-handler.file-consent.test.ts | 2 +- extensions/msteams/src/monitor-handler.ts | 2 +- .../msteams/src/monitor-handler/message-handler.authz.test.ts | 2 +- extensions/msteams/src/monitor-handler/message-handler.ts | 2 +- extensions/msteams/src/monitor.lifecycle.test.ts | 4 ++-- extensions/msteams/src/monitor.ts | 2 +- extensions/msteams/src/onboarding.ts | 4 ++-- extensions/msteams/src/outbound.test.ts | 2 +- extensions/msteams/src/outbound.ts | 2 +- extensions/msteams/src/policy.test.ts | 2 +- extensions/msteams/src/policy.ts | 4 ++-- extensions/msteams/src/probe.test.ts | 2 +- extensions/msteams/src/probe.ts | 2 +- extensions/msteams/src/reply-dispatcher.ts | 2 +- extensions/msteams/src/runtime.ts | 2 +- extensions/msteams/src/secret-input.ts | 2 +- extensions/msteams/src/send-context.ts | 2 +- extensions/msteams/src/send.test.ts | 4 ++-- extensions/msteams/src/send.ts | 4 ++-- extensions/msteams/src/store-fs.ts | 2 +- extensions/msteams/src/test-runtime.ts | 2 +- extensions/msteams/src/token.ts | 2 +- 36 files changed, 44 insertions(+), 44 deletions(-) diff --git a/extensions/msteams/index.ts b/extensions/msteams/index.ts index 9d5fde61d4d..725ad40dfdf 100644 --- a/extensions/msteams/index.ts +++ b/extensions/msteams/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/msteams"; +import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/msteams"; import { msteamsPlugin } from "./src/channel.js"; import { setMSTeamsRuntime } from "./src/runtime.js"; diff --git a/extensions/msteams/src/attachments.test.ts b/extensions/msteams/src/attachments.test.ts index 9f0de10992f..6887fad7fcb 100644 --- a/extensions/msteams/src/attachments.test.ts +++ b/extensions/msteams/src/attachments.test.ts @@ -1,4 +1,4 @@ -import type { PluginRuntime, SsrFPolicy } from "openclaw/plugin-sdk/compat"; +import type { PluginRuntime, SsrFPolicy } from "openclaw/plugin-sdk/msteams"; import { beforeEach, describe, expect, it, vi } from "vitest"; import { createPluginRuntimeMock } from "../../test-utils/plugin-runtime-mock.js"; import { diff --git a/extensions/msteams/src/attachments/graph.ts b/extensions/msteams/src/attachments/graph.ts index c9f632c7f38..1798d438d1e 100644 --- a/extensions/msteams/src/attachments/graph.ts +++ b/extensions/msteams/src/attachments/graph.ts @@ -1,4 +1,4 @@ -import { fetchWithSsrFGuard, type SsrFPolicy } from "openclaw/plugin-sdk/compat"; +import { fetchWithSsrFGuard, type SsrFPolicy } from "openclaw/plugin-sdk/msteams"; import { getMSTeamsRuntime } from "../runtime.js"; import { downloadMSTeamsAttachments } from "./download.js"; import { downloadAndStoreMSTeamsRemoteMedia } from "./remote-media.js"; diff --git a/extensions/msteams/src/attachments/payload.ts b/extensions/msteams/src/attachments/payload.ts index 2134a382f0c..8cfd79b29ce 100644 --- a/extensions/msteams/src/attachments/payload.ts +++ b/extensions/msteams/src/attachments/payload.ts @@ -1,4 +1,4 @@ -import { buildMediaPayload } from "openclaw/plugin-sdk/compat"; +import { buildMediaPayload } from "openclaw/plugin-sdk/msteams"; export function buildMSTeamsMediaPayload( mediaList: Array<{ path: string; contentType?: string }>, diff --git a/extensions/msteams/src/attachments/remote-media.ts b/extensions/msteams/src/attachments/remote-media.ts index b31b47723b9..87c018b0290 100644 --- a/extensions/msteams/src/attachments/remote-media.ts +++ b/extensions/msteams/src/attachments/remote-media.ts @@ -1,4 +1,4 @@ -import type { SsrFPolicy } from "openclaw/plugin-sdk/compat"; +import type { SsrFPolicy } from "openclaw/plugin-sdk/msteams"; import { getMSTeamsRuntime } from "../runtime.js"; import { inferPlaceholder } from "./shared.js"; import type { MSTeamsInboundMedia } from "./types.js"; diff --git a/extensions/msteams/src/attachments/shared.ts b/extensions/msteams/src/attachments/shared.ts index 3222be248bc..cde483b0283 100644 --- a/extensions/msteams/src/attachments/shared.ts +++ b/extensions/msteams/src/attachments/shared.ts @@ -4,8 +4,8 @@ import { isHttpsUrlAllowedByHostnameSuffixAllowlist, isPrivateIpAddress, normalizeHostnameSuffixAllowlist, -} from "openclaw/plugin-sdk/compat"; -import type { SsrFPolicy } from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; +import type { SsrFPolicy } from "openclaw/plugin-sdk/msteams"; import type { MSTeamsAttachmentLike } from "./types.js"; type InlineImageCandidate = diff --git a/extensions/msteams/src/channel.directory.test.ts b/extensions/msteams/src/channel.directory.test.ts index 97bfd227f5f..0746f78aabb 100644 --- a/extensions/msteams/src/channel.directory.test.ts +++ b/extensions/msteams/src/channel.directory.test.ts @@ -1,4 +1,4 @@ -import type { OpenClawConfig, RuntimeEnv } from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig, RuntimeEnv } from "openclaw/plugin-sdk/msteams"; import { describe, expect, it } from "vitest"; import { msteamsPlugin } from "./channel.js"; diff --git a/extensions/msteams/src/channel.ts b/extensions/msteams/src/channel.ts index 057f37c83a4..90223956988 100644 --- a/extensions/msteams/src/channel.ts +++ b/extensions/msteams/src/channel.ts @@ -2,7 +2,7 @@ import type { ChannelMessageActionName, ChannelPlugin, OpenClawConfig, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; import { buildBaseChannelStatusSummary, buildChannelConfigSchema, @@ -12,7 +12,7 @@ import { PAIRING_APPROVED_MESSAGE, resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; import { listMSTeamsDirectoryGroupsLive, listMSTeamsDirectoryPeersLive } from "./directory-live.js"; import { msteamsOnboardingAdapter } from "./onboarding.js"; import { msteamsOutbound } from "./outbound.js"; diff --git a/extensions/msteams/src/directory-live.ts b/extensions/msteams/src/directory-live.ts index 0e2464aa0ce..66fbe16e876 100644 --- a/extensions/msteams/src/directory-live.ts +++ b/extensions/msteams/src/directory-live.ts @@ -1,4 +1,4 @@ -import type { ChannelDirectoryEntry } from "openclaw/plugin-sdk/compat"; +import type { ChannelDirectoryEntry } from "openclaw/plugin-sdk/msteams"; import { searchGraphUsers } from "./graph-users.js"; import { type GraphChannel, diff --git a/extensions/msteams/src/file-lock.ts b/extensions/msteams/src/file-lock.ts index 9c5782b9ff5..ef61d1b6214 100644 --- a/extensions/msteams/src/file-lock.ts +++ b/extensions/msteams/src/file-lock.ts @@ -1 +1 @@ -export { withFileLock } from "openclaw/plugin-sdk/compat"; +export { withFileLock } from "openclaw/plugin-sdk/msteams"; diff --git a/extensions/msteams/src/graph.ts b/extensions/msteams/src/graph.ts index 983bfe9ed64..269216c7cd2 100644 --- a/extensions/msteams/src/graph.ts +++ b/extensions/msteams/src/graph.ts @@ -1,4 +1,4 @@ -import type { MSTeamsConfig } from "openclaw/plugin-sdk/compat"; +import type { MSTeamsConfig } from "openclaw/plugin-sdk/msteams"; import { GRAPH_ROOT } from "./attachments/shared.js"; import { loadMSTeamsSdkWithAuth } from "./sdk.js"; import { readAccessToken } from "./token-response.js"; diff --git a/extensions/msteams/src/media-helpers.ts b/extensions/msteams/src/media-helpers.ts index f8a36e55f81..8de456b8c39 100644 --- a/extensions/msteams/src/media-helpers.ts +++ b/extensions/msteams/src/media-helpers.ts @@ -8,7 +8,7 @@ import { extensionForMime, extractOriginalFilename, getFileExtension, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; /** * Detect MIME type from URL extension or data URL. diff --git a/extensions/msteams/src/messenger.test.ts b/extensions/msteams/src/messenger.test.ts index 973bbb67973..627bad15d94 100644 --- a/extensions/msteams/src/messenger.test.ts +++ b/extensions/msteams/src/messenger.test.ts @@ -1,7 +1,7 @@ import { mkdtemp, rm, writeFile } from "node:fs/promises"; import os from "node:os"; import path from "node:path"; -import { SILENT_REPLY_TOKEN, type PluginRuntime } from "openclaw/plugin-sdk/compat"; +import { SILENT_REPLY_TOKEN, type PluginRuntime } from "openclaw/plugin-sdk/msteams"; import { beforeEach, describe, expect, it, vi } from "vitest"; import { createPluginRuntimeMock } from "../../test-utils/plugin-runtime-mock.js"; import type { StoredConversationReference } from "./conversation-store.js"; diff --git a/extensions/msteams/src/messenger.ts b/extensions/msteams/src/messenger.ts index c412c47d048..b45c39ac3fb 100644 --- a/extensions/msteams/src/messenger.ts +++ b/extensions/msteams/src/messenger.ts @@ -7,7 +7,7 @@ import { type ReplyPayload, SILENT_REPLY_TOKEN, sleep, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; import type { MSTeamsAccessTokenProvider } from "./attachments/types.js"; import type { StoredConversationReference } from "./conversation-store.js"; import { classifyMSTeamsSendError } from "./errors.js"; diff --git a/extensions/msteams/src/monitor-handler.file-consent.test.ts b/extensions/msteams/src/monitor-handler.file-consent.test.ts index 8288668ba67..88a6a67a838 100644 --- a/extensions/msteams/src/monitor-handler.file-consent.test.ts +++ b/extensions/msteams/src/monitor-handler.file-consent.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/msteams"; import { beforeEach, describe, expect, it, vi } from "vitest"; import type { MSTeamsConversationStore } from "./conversation-store.js"; import type { MSTeamsAdapter } from "./messenger.js"; diff --git a/extensions/msteams/src/monitor-handler.ts b/extensions/msteams/src/monitor-handler.ts index b64fdee6d67..bad810322a9 100644 --- a/extensions/msteams/src/monitor-handler.ts +++ b/extensions/msteams/src/monitor-handler.ts @@ -1,4 +1,4 @@ -import type { OpenClawConfig, RuntimeEnv } from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig, RuntimeEnv } from "openclaw/plugin-sdk/msteams"; import type { MSTeamsConversationStore } from "./conversation-store.js"; import { buildFileInfoCard, parseFileConsentInvoke, uploadToConsentUrl } from "./file-consent.js"; import { normalizeMSTeamsConversationId } from "./inbound.js"; diff --git a/extensions/msteams/src/monitor-handler/message-handler.authz.test.ts b/extensions/msteams/src/monitor-handler/message-handler.authz.test.ts index 7e8118b5629..f019287e151 100644 --- a/extensions/msteams/src/monitor-handler/message-handler.authz.test.ts +++ b/extensions/msteams/src/monitor-handler/message-handler.authz.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/msteams"; import { describe, expect, it, vi } from "vitest"; import type { MSTeamsMessageHandlerDeps } from "../monitor-handler.js"; import { setMSTeamsRuntime } from "../runtime.js"; diff --git a/extensions/msteams/src/monitor-handler/message-handler.ts b/extensions/msteams/src/monitor-handler/message-handler.ts index 0bdb9142641..b4a305fd7d4 100644 --- a/extensions/msteams/src/monitor-handler/message-handler.ts +++ b/extensions/msteams/src/monitor-handler/message-handler.ts @@ -15,7 +15,7 @@ import { resolveEffectiveAllowFromLists, resolveDmGroupAccessWithLists, type HistoryEntry, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; import { buildMSTeamsAttachmentPlaceholder, buildMSTeamsMediaPayload, diff --git a/extensions/msteams/src/monitor.lifecycle.test.ts b/extensions/msteams/src/monitor.lifecycle.test.ts index 560b2839efe..eb323d9a353 100644 --- a/extensions/msteams/src/monitor.lifecycle.test.ts +++ b/extensions/msteams/src/monitor.lifecycle.test.ts @@ -1,5 +1,5 @@ import { EventEmitter } from "node:events"; -import type { OpenClawConfig, RuntimeEnv } from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig, RuntimeEnv } from "openclaw/plugin-sdk/msteams"; import { afterEach, describe, expect, it, vi } from "vitest"; import type { MSTeamsConversationStore } from "./conversation-store.js"; import type { MSTeamsPollStore } from "./polls.js"; @@ -15,7 +15,7 @@ const expressControl = vi.hoisted(() => ({ mode: { value: "listening" as "listening" | "error" }, })); -vi.mock("openclaw/plugin-sdk", () => ({ +vi.mock("openclaw/plugin-sdk/msteams", () => ({ DEFAULT_WEBHOOK_MAX_BODY_BYTES: 1024 * 1024, normalizeSecretInputString: (value: unknown) => typeof value === "string" && value.trim() ? value.trim() : undefined, diff --git a/extensions/msteams/src/monitor.ts b/extensions/msteams/src/monitor.ts index 432af67ad8d..5393a28e0f3 100644 --- a/extensions/msteams/src/monitor.ts +++ b/extensions/msteams/src/monitor.ts @@ -7,7 +7,7 @@ import { summarizeMapping, type OpenClawConfig, type RuntimeEnv, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; import { createMSTeamsConversationStoreFs } from "./conversation-store-fs.js"; import type { MSTeamsConversationStore } from "./conversation-store.js"; import { formatUnknownError } from "./errors.js"; diff --git a/extensions/msteams/src/onboarding.ts b/extensions/msteams/src/onboarding.ts index e5836cc73e6..9c95cc2b3cd 100644 --- a/extensions/msteams/src/onboarding.ts +++ b/extensions/msteams/src/onboarding.ts @@ -5,14 +5,14 @@ import type { DmPolicy, WizardPrompter, MSTeamsTeamConfig, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; import { addWildcardAllowFrom, DEFAULT_ACCOUNT_ID, formatDocsLink, mergeAllowFromEntries, promptChannelAccessConfig, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; import { parseMSTeamsTeamEntry, resolveMSTeamsChannelAllowlist, diff --git a/extensions/msteams/src/outbound.test.ts b/extensions/msteams/src/outbound.test.ts index 950ccd4ece2..a4fc6cc5373 100644 --- a/extensions/msteams/src/outbound.test.ts +++ b/extensions/msteams/src/outbound.test.ts @@ -1,4 +1,4 @@ -import type { OpenClawConfig } from "openclaw/plugin-sdk"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/msteams"; import { beforeEach, describe, expect, it, vi } from "vitest"; const mocks = vi.hoisted(() => ({ diff --git a/extensions/msteams/src/outbound.ts b/extensions/msteams/src/outbound.ts index ca2edc3985f..9f3f55c6414 100644 --- a/extensions/msteams/src/outbound.ts +++ b/extensions/msteams/src/outbound.ts @@ -1,4 +1,4 @@ -import type { ChannelOutboundAdapter } from "openclaw/plugin-sdk/compat"; +import type { ChannelOutboundAdapter } from "openclaw/plugin-sdk/msteams"; import { createMSTeamsPollStoreFs } from "./polls.js"; import { getMSTeamsRuntime } from "./runtime.js"; import { sendMessageMSTeams, sendPollMSTeams } from "./send.js"; diff --git a/extensions/msteams/src/policy.test.ts b/extensions/msteams/src/policy.test.ts index 81582cb857a..02d59a99723 100644 --- a/extensions/msteams/src/policy.test.ts +++ b/extensions/msteams/src/policy.test.ts @@ -1,4 +1,4 @@ -import type { MSTeamsConfig } from "openclaw/plugin-sdk/compat"; +import type { MSTeamsConfig } from "openclaw/plugin-sdk/msteams"; import { describe, expect, it } from "vitest"; import { isMSTeamsGroupAllowed, diff --git a/extensions/msteams/src/policy.ts b/extensions/msteams/src/policy.ts index c55a8433b17..b0fe163362b 100644 --- a/extensions/msteams/src/policy.ts +++ b/extensions/msteams/src/policy.ts @@ -7,7 +7,7 @@ import type { MSTeamsConfig, MSTeamsReplyStyle, MSTeamsTeamConfig, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; import { buildChannelKeyCandidates, normalizeChannelSlug, @@ -15,7 +15,7 @@ import { resolveToolsBySender, resolveChannelEntryMatchWithFallback, resolveNestedAllowlistDecision, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; export type MSTeamsResolvedRouteConfig = { teamConfig?: MSTeamsTeamConfig; diff --git a/extensions/msteams/src/probe.test.ts b/extensions/msteams/src/probe.test.ts index 9ab758b2709..3c6ac3b5d04 100644 --- a/extensions/msteams/src/probe.test.ts +++ b/extensions/msteams/src/probe.test.ts @@ -1,4 +1,4 @@ -import type { MSTeamsConfig } from "openclaw/plugin-sdk/compat"; +import type { MSTeamsConfig } from "openclaw/plugin-sdk/msteams"; import { describe, expect, it, vi } from "vitest"; const hostMockState = vi.hoisted(() => ({ diff --git a/extensions/msteams/src/probe.ts b/extensions/msteams/src/probe.ts index 46dd2747785..11027033cf0 100644 --- a/extensions/msteams/src/probe.ts +++ b/extensions/msteams/src/probe.ts @@ -1,4 +1,4 @@ -import type { BaseProbeResult, MSTeamsConfig } from "openclaw/plugin-sdk/compat"; +import type { BaseProbeResult, MSTeamsConfig } from "openclaw/plugin-sdk/msteams"; import { formatUnknownError } from "./errors.js"; import { loadMSTeamsSdkWithAuth } from "./sdk.js"; import { readAccessToken } from "./token-response.js"; diff --git a/extensions/msteams/src/reply-dispatcher.ts b/extensions/msteams/src/reply-dispatcher.ts index e940fd23738..bf1e21f5e78 100644 --- a/extensions/msteams/src/reply-dispatcher.ts +++ b/extensions/msteams/src/reply-dispatcher.ts @@ -6,7 +6,7 @@ import { type OpenClawConfig, type MSTeamsReplyStyle, type RuntimeEnv, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; import type { MSTeamsAccessTokenProvider } from "./attachments/types.js"; import type { StoredConversationReference } from "./conversation-store.js"; import { diff --git a/extensions/msteams/src/runtime.ts b/extensions/msteams/src/runtime.ts index 86c8f9a34a3..97d2272c101 100644 --- a/extensions/msteams/src/runtime.ts +++ b/extensions/msteams/src/runtime.ts @@ -1,4 +1,4 @@ -import type { PluginRuntime } from "openclaw/plugin-sdk/compat"; +import type { PluginRuntime } from "openclaw/plugin-sdk/msteams"; let runtime: PluginRuntime | null = null; diff --git a/extensions/msteams/src/secret-input.ts b/extensions/msteams/src/secret-input.ts index fc64ca00fd1..e2087fbc3c2 100644 --- a/extensions/msteams/src/secret-input.ts +++ b/extensions/msteams/src/secret-input.ts @@ -2,6 +2,6 @@ import { hasConfiguredSecretInput, normalizeResolvedSecretInputString, normalizeSecretInputString, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; export { hasConfiguredSecretInput, normalizeResolvedSecretInputString, normalizeSecretInputString }; diff --git a/extensions/msteams/src/send-context.ts b/extensions/msteams/src/send-context.ts index 389aed43b91..d42d0c7d149 100644 --- a/extensions/msteams/src/send-context.ts +++ b/extensions/msteams/src/send-context.ts @@ -2,7 +2,7 @@ import { resolveChannelMediaMaxBytes, type OpenClawConfig, type PluginRuntime, -} from "openclaw/plugin-sdk/compat"; +} from "openclaw/plugin-sdk/msteams"; import type { MSTeamsAccessTokenProvider } from "./attachments/types.js"; import { createMSTeamsConversationStoreFs } from "./conversation-store-fs.js"; import type { diff --git a/extensions/msteams/src/send.test.ts b/extensions/msteams/src/send.test.ts index 3c826310c58..ce6acbaf9b6 100644 --- a/extensions/msteams/src/send.test.ts +++ b/extensions/msteams/src/send.test.ts @@ -1,4 +1,4 @@ -import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/msteams"; import { beforeEach, describe, expect, it, vi } from "vitest"; import { sendMessageMSTeams } from "./send.js"; @@ -11,7 +11,7 @@ const mockState = vi.hoisted(() => ({ sendMSTeamsMessages: vi.fn(), })); -vi.mock("openclaw/plugin-sdk", () => ({ +vi.mock("openclaw/plugin-sdk/msteams", () => ({ loadOutboundMediaFromUrl: mockState.loadOutboundMediaFromUrl, })); diff --git a/extensions/msteams/src/send.ts b/extensions/msteams/src/send.ts index 3adb3a1436c..cfa023d8871 100644 --- a/extensions/msteams/src/send.ts +++ b/extensions/msteams/src/send.ts @@ -1,5 +1,5 @@ -import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; -import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/compat"; +import type { OpenClawConfig } from "openclaw/plugin-sdk/msteams"; +import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/msteams"; import { createMSTeamsConversationStoreFs } from "./conversation-store-fs.js"; import { classifyMSTeamsSendError, diff --git a/extensions/msteams/src/store-fs.ts b/extensions/msteams/src/store-fs.ts index c96e96d898c..8f109914db1 100644 --- a/extensions/msteams/src/store-fs.ts +++ b/extensions/msteams/src/store-fs.ts @@ -1,5 +1,5 @@ import fs from "node:fs"; -import { readJsonFileWithFallback, writeJsonFileAtomically } from "openclaw/plugin-sdk/compat"; +import { readJsonFileWithFallback, writeJsonFileAtomically } from "openclaw/plugin-sdk/msteams"; import { withFileLock as withPathLock } from "./file-lock.js"; const STORE_LOCK_OPTIONS = { diff --git a/extensions/msteams/src/test-runtime.ts b/extensions/msteams/src/test-runtime.ts index 6cc4800350a..6232e28ba07 100644 --- a/extensions/msteams/src/test-runtime.ts +++ b/extensions/msteams/src/test-runtime.ts @@ -1,6 +1,6 @@ import os from "node:os"; import path from "node:path"; -import type { PluginRuntime } from "openclaw/plugin-sdk/compat"; +import type { PluginRuntime } from "openclaw/plugin-sdk/msteams"; export const msteamsRuntimeStub = { state: { diff --git a/extensions/msteams/src/token.ts b/extensions/msteams/src/token.ts index 862030ba086..5f72ae444c1 100644 --- a/extensions/msteams/src/token.ts +++ b/extensions/msteams/src/token.ts @@ -1,4 +1,4 @@ -import type { MSTeamsConfig } from "openclaw/plugin-sdk/compat"; +import type { MSTeamsConfig } from "openclaw/plugin-sdk/msteams"; import { hasConfiguredSecretInput, normalizeResolvedSecretInputString,