diff --git a/config/knip.config.ts b/config/knip.config.ts index 19fcc3ab40ef..1b5430eb1923 100644 --- a/config/knip.config.ts +++ b/config/knip.config.ts @@ -133,8 +133,6 @@ const config = { "src/shared/text/assistant-visible-text.ts", bundledPluginFile("telegram", "src/bot/reply-threading.ts"), bundledPluginFile("telegram", "src/draft-chunking.ts"), - bundledPluginFile("msteams", "src/conversation-store-memory.ts"), - bundledPluginFile("msteams", "src/polls-store-memory.ts"), bundledPluginFile("voice-call", "src/providers/index.ts"), ], ignore: ["packages/*/dist/**"], diff --git a/extensions/memory-core/src/memory-tool-manager-mock.ts b/extensions/memory-core/src/memory-tool-manager.test-mocks.ts similarity index 100% rename from extensions/memory-core/src/memory-tool-manager-mock.ts rename to extensions/memory-core/src/memory-tool-manager.test-mocks.ts diff --git a/extensions/memory-core/src/tools.citations.test.ts b/extensions/memory-core/src/tools.citations.test.ts index 6a8147afd64e..cfdf35cebc8a 100644 --- a/extensions/memory-core/src/tools.citations.test.ts +++ b/extensions/memory-core/src/tools.citations.test.ts @@ -17,7 +17,7 @@ import { setMemorySearchImpl, setMemoryWorkspaceDir, type MemoryReadParams, -} from "./memory-tool-manager-mock.js"; +} from "./memory-tool-manager.test-mocks.js"; import { testing as shortTermPromotionTesting } from "./short-term-promotion.js"; import { createMemoryCoreTestHarness } from "./test-helpers.js"; import { testing as memoryToolsTesting } from "./tools.js"; diff --git a/extensions/memory-core/src/tools.recall-tracking.test.ts b/extensions/memory-core/src/tools.recall-tracking.test.ts index bd3d34a0a21b..f12e89a23803 100644 --- a/extensions/memory-core/src/tools.recall-tracking.test.ts +++ b/extensions/memory-core/src/tools.recall-tracking.test.ts @@ -6,7 +6,7 @@ import { resetMemoryToolMockState, setMemoryBackend, setMemorySearchImpl, -} from "./memory-tool-manager-mock.js"; +} from "./memory-tool-manager.test-mocks.js"; import { createMemorySearchTool } from "./tools.js"; type RecordShortTermRecallsFn = (params: { diff --git a/extensions/memory-core/src/tools.test.ts b/extensions/memory-core/src/tools.test.ts index f0862ebd5230..1189e9ad048f 100644 --- a/extensions/memory-core/src/tools.test.ts +++ b/extensions/memory-core/src/tools.test.ts @@ -11,7 +11,7 @@ import { setMemoryCustomStatus, setMemorySearchImpl, setMemorySearchManagerImpl, -} from "./memory-tool-manager-mock.js"; +} from "./memory-tool-manager.test-mocks.js"; import { createMemorySearchTool, testing as memoryToolsTesting } from "./tools.js"; import { MemoryGetSchema, MemorySearchSchema } from "./tools.shared.js"; import { diff --git a/extensions/zalouser/src/monitor.account-scope.test.ts b/extensions/zalouser/src/monitor.account-scope.test.ts index 301cd4045f7a..40c3bb3c2248 100644 --- a/extensions/zalouser/src/monitor.account-scope.test.ts +++ b/extensions/zalouser/src/monitor.account-scope.test.ts @@ -1,10 +1,10 @@ // Zalouser tests cover monitor.account scope plugin behavior. import { describe, expect, it, vi } from "vitest"; import type { OpenClawConfig, PluginRuntime } from "../runtime-api.js"; -import "./monitor.send-mocks.js"; +import "./monitor.send.test-mocks.js"; import { testing } from "./monitor.js"; import "./zalo-js.test-mocks.js"; -import { sendMessageZalouserMock } from "./monitor.send-mocks.js"; +import { sendMessageZalouserMock } from "./monitor.send.test-mocks.js"; import { setZalouserRuntime } from "./runtime.js"; import { createZalouserRuntimeEnv } from "./test-helpers.js"; import type { ResolvedZalouserAccount, ZaloInboundMessage } from "./types.js"; diff --git a/extensions/zalouser/src/monitor.group-gating.test.ts b/extensions/zalouser/src/monitor.group-gating.test.ts index 7168dbaa4262..33eb95f6d3a5 100644 --- a/extensions/zalouser/src/monitor.group-gating.test.ts +++ b/extensions/zalouser/src/monitor.group-gating.test.ts @@ -2,7 +2,7 @@ import { createChannelMessageReplyPipeline } from "openclaw/plugin-sdk/channel-outbound"; import { beforeEach, describe, expect, it, vi } from "vitest"; import type { OpenClawConfig, PluginRuntime } from "../runtime-api.js"; -import "./monitor.send-mocks.js"; +import "./monitor.send.test-mocks.js"; import "./zalo-js.test-mocks.js"; import { resolveZalouserAccountSync } from "./accounts.js"; import { testing, monitorZalouserProvider } from "./monitor.js"; @@ -11,7 +11,7 @@ import { sendMessageZalouserMock, sendSeenZalouserMock, sendTypingZalouserMock, -} from "./monitor.send-mocks.js"; +} from "./monitor.send.test-mocks.js"; import { setZalouserRuntime } from "./runtime.js"; import { createZalouserRuntimeEnv } from "./test-helpers.js"; import type { ResolvedZalouserAccount, ZaloInboundMessage } from "./types.js"; diff --git a/extensions/zalouser/src/monitor.send-mocks.ts b/extensions/zalouser/src/monitor.send.test-mocks.ts similarity index 100% rename from extensions/zalouser/src/monitor.send-mocks.ts rename to extensions/zalouser/src/monitor.send.test-mocks.ts diff --git a/scripts/deadcode-unused-files.allowlist.mjs b/scripts/deadcode-unused-files.allowlist.mjs index a4e47dc7ef14..c42fd924b521 100644 --- a/scripts/deadcode-unused-files.allowlist.mjs +++ b/scripts/deadcode-unused-files.allowlist.mjs @@ -17,7 +17,6 @@ export const KNIP_OPTIONAL_UNUSED_FILE_ALLOWLIST = [ "extensions/diffs/src/viewer-client.ts", "extensions/diffs/src/viewer-payload.ts", "extensions/matrix/src/plugin-entry.runtime.js", - "extensions/memory-core/src/memory-tool-manager-mock.ts", "ui/src/ui/browser-redact.ts", "src/agents/subagent-registry.runtime.ts", "src/auto-reply/reply/get-reply.test-loader.ts",