diff --git a/extensions/zalouser/src/channel.ts b/extensions/zalouser/src/channel.ts index ba06e4decc9..f2d75caadd0 100644 --- a/extensions/zalouser/src/channel.ts +++ b/extensions/zalouser/src/channel.ts @@ -217,5 +217,3 @@ export const zalouserPlugin: ChannelPlugin | null { : null; } -export const collectZalouserMutableAllowlistWarnings = +const collectZalouserMutableAllowlistWarnings = createDangerousNameMatchingMutableAllowlistWarningCollector({ channel: "zalouser", detector: isZalouserMutableGroupEntry, diff --git a/extensions/zalouser/src/send.ts b/extensions/zalouser/src/send.ts index b730c1a1a96..287b7be4006 100644 --- a/extensions/zalouser/src/send.ts +++ b/extensions/zalouser/src/send.ts @@ -10,8 +10,8 @@ import { } from "./zalo-js.js"; import { TextStyle } from "./zca-constants.js"; -export type ZalouserSendOptions = ZaloSendOptions; -export type ZalouserSendResult = ZaloSendResult; +type ZalouserSendOptions = ZaloSendOptions; +type ZalouserSendResult = ZaloSendResult; const ZALO_TEXT_LIMIT = 2000; const DEFAULT_TEXT_CHUNK_MODE = "length"; diff --git a/extensions/zalouser/src/session-route.ts b/extensions/zalouser/src/session-route.ts index f458b768189..c8f2af08ec8 100644 --- a/extensions/zalouser/src/session-route.ts +++ b/extensions/zalouser/src/session-route.ts @@ -7,7 +7,7 @@ import { normalizeOptionalLowercaseString, } from "openclaw/plugin-sdk/text-runtime"; -export function stripZalouserTargetPrefix(raw: string): string { +function stripZalouserTargetPrefix(raw: string): string { return raw .trim() .replace(/^(zalouser|zlu):/i, "") diff --git a/extensions/zalouser/src/shared.ts b/extensions/zalouser/src/shared.ts index b855250a94e..c973d175720 100644 --- a/extensions/zalouser/src/shared.ts +++ b/extensions/zalouser/src/shared.ts @@ -15,7 +15,7 @@ import { buildChannelConfigSchema, formatAllowFromLowercase } from "./channel-ap import { ZalouserConfigSchema } from "./config-schema.js"; import { zalouserDoctor } from "./doctor.js"; -export const zalouserMeta = { +const zalouserMeta: ChannelPlugin["meta"] = { id: "zalouser", label: "Zalo Personal", selectionLabel: "Zalo (Personal Account)", @@ -25,7 +25,7 @@ export const zalouserMeta = { aliases: ["zlu"], order: 85, quickstartAllowFrom: false, -} satisfies ChannelPlugin["meta"]; +}; const zalouserConfigAdapter = createScopedChannelConfigAdapter({ sectionKey: "zalouser", diff --git a/extensions/zalouser/src/tool.ts b/extensions/zalouser/src/tool.ts index 922aa6bca21..cdf35bd3e53 100644 --- a/extensions/zalouser/src/tool.ts +++ b/extensions/zalouser/src/tool.ts @@ -28,7 +28,7 @@ function stringEnum( }); } -export const ZalouserToolSchema = Type.Object( +const ZalouserToolSchema = Type.Object( { action: stringEnum(ACTIONS, { description: `Action to perform: ${ACTIONS.join(", ")}` }), threadId: Type.Optional(Type.String({ description: "Thread ID for messaging" })), diff --git a/extensions/zalouser/src/types.ts b/extensions/zalouser/src/types.ts index 5c4785c47fc..f007874776c 100644 --- a/extensions/zalouser/src/types.ts +++ b/extensions/zalouser/src/types.ts @@ -85,7 +85,7 @@ export type ZaloAuthStatus = { message: string; }; -export type ZalouserToolConfig = { allow?: string[]; deny?: string[] }; +type ZalouserToolConfig = { allow?: string[]; deny?: string[] }; export type ZalouserGroupConfig = { enabled?: boolean; diff --git a/extensions/zalouser/src/zalo-js.ts b/extensions/zalouser/src/zalo-js.ts index 0e01753b873..d56c9cd2084 100644 --- a/extensions/zalouser/src/zalo-js.ts +++ b/extensions/zalouser/src/zalo-js.ts @@ -1025,7 +1025,7 @@ function toInboundMessage(message: Message, ownUserId?: string): ZaloInboundMess }; } -export function zalouserSessionExists(profileInput?: string | null): boolean { +function zalouserSessionExists(profileInput?: string | null): boolean { const profile = normalizeProfile(profileInput); return readCredentials(profile) !== null; }