From 8b5e80fcaa1784ded08ac72c00918a9fe6a85ee4 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 3 Apr 2026 22:49:27 +0900 Subject: [PATCH] refactor(msteams): narrow store sdk imports --- extensions/msteams/src/file-lock.ts | 2 +- extensions/msteams/src/store-fs.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/extensions/msteams/src/file-lock.ts b/extensions/msteams/src/file-lock.ts index fa3f4783cba..ef61d1b6214 100644 --- a/extensions/msteams/src/file-lock.ts +++ b/extensions/msteams/src/file-lock.ts @@ -1 +1 @@ -export { withFileLock } from "../runtime-api.js"; +export { withFileLock } from "openclaw/plugin-sdk/msteams"; diff --git a/extensions/msteams/src/store-fs.ts b/extensions/msteams/src/store-fs.ts index 8f032abfefc..de98e17b8ff 100644 --- a/extensions/msteams/src/store-fs.ts +++ b/extensions/msteams/src/store-fs.ts @@ -1,6 +1,9 @@ import fs from "node:fs"; -import { readJsonFileWithFallback, writeJsonFileAtomically } from "../runtime-api.js"; -import { withFileLock as withPathLock } from "./file-lock.js"; +import { + readJsonFileWithFallback, + withFileLock as withPathLock, + writeJsonFileAtomically, +} from "openclaw/plugin-sdk/msteams"; const STORE_LOCK_OPTIONS = { retries: {