mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 04:47:03 -06:00
refactor(deadcode): trim whatsapp session config exports (#106256)
This commit is contained in:
committed by
GitHub
parent
7efdd9d706
commit
69710f1e88
@@ -1,14 +1,5 @@
|
||||
// Whatsapp helper module supports config behavior.
|
||||
export {
|
||||
evaluateSessionFreshness,
|
||||
resolveSessionKey,
|
||||
resolveSessionResetPolicy,
|
||||
resolveSessionResetType,
|
||||
resolveStorePath,
|
||||
resolveThreadFlag,
|
||||
resolveChannelResetConfig,
|
||||
updateLastRoute,
|
||||
} from "openclaw/plugin-sdk/session-store-runtime";
|
||||
export { resolveStorePath, updateLastRoute } from "openclaw/plugin-sdk/session-store-runtime";
|
||||
export {
|
||||
getRuntimeConfig,
|
||||
getRuntimeConfigSourceSnapshot,
|
||||
|
||||
@@ -3,20 +3,21 @@ import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
||||
import { normalizeMainKey } from "openclaw/plugin-sdk/routing";
|
||||
import { getSessionEntry, upsertSessionEntry } from "openclaw/plugin-sdk/session-store-runtime";
|
||||
import { withTempDir } from "openclaw/plugin-sdk/test-env";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { createTestWebInboundMessage } from "../inbound/test-message.test-helper.js";
|
||||
import type { AdmittedWebInboundMessage } from "../inbound/types.js";
|
||||
import {
|
||||
evaluateSessionFreshness,
|
||||
getSessionEntry,
|
||||
resolveChannelResetConfig,
|
||||
resolveSessionKey,
|
||||
resolveSessionResetPolicy,
|
||||
resolveSessionResetType,
|
||||
resolveStorePath,
|
||||
resolveThreadFlag,
|
||||
} from "./config.runtime.js";
|
||||
upsertSessionEntry,
|
||||
} from "openclaw/plugin-sdk/session-store-runtime";
|
||||
import { withTempDir } from "openclaw/plugin-sdk/test-env";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { createTestWebInboundMessage } from "../inbound/test-message.test-helper.js";
|
||||
import type { AdmittedWebInboundMessage } from "../inbound/types.js";
|
||||
import {
|
||||
debugMention,
|
||||
isBotMentionedFromTargets,
|
||||
|
||||
@@ -831,12 +831,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
|
||||
"extensions/voice-call/src/webhook/tailscale.ts: TAILSCALE_COMMAND_STDOUT_MAX_BYTES",
|
||||
"extensions/whatsapp/src/agent-tools-call.ts: createWhatsAppCallTool",
|
||||
"extensions/whatsapp/src/agent-tools-call.ts: testing",
|
||||
"extensions/whatsapp/src/auto-reply/config.runtime.ts: evaluateSessionFreshness",
|
||||
"extensions/whatsapp/src/auto-reply/config.runtime.ts: resolveChannelResetConfig",
|
||||
"extensions/whatsapp/src/auto-reply/config.runtime.ts: resolveSessionKey",
|
||||
"extensions/whatsapp/src/auto-reply/config.runtime.ts: resolveSessionResetPolicy",
|
||||
"extensions/whatsapp/src/auto-reply/config.runtime.ts: resolveSessionResetType",
|
||||
"extensions/whatsapp/src/auto-reply/config.runtime.ts: resolveThreadFlag",
|
||||
"extensions/whatsapp/src/auto-reply/mentions.ts: isBotMentionedFromTargets",
|
||||
"extensions/whatsapp/src/auto-reply/mentions.ts: resolveMentionTargets",
|
||||
"extensions/whatsapp/src/auto-reply/monitor/group-gating.ts: resetGroupDropWarningsForTests",
|
||||
|
||||
Reference in New Issue
Block a user