mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
refactor(googlechat): privatize monitor access helpers (#106871)
This commit is contained in:
@@ -49,7 +49,7 @@ function normalizeGoogleChatStableEntry(entry: string): string | null {
|
||||
return withoutProvider.startsWith("users/") ? normalizeUserId(withoutProvider) : withoutProvider;
|
||||
}
|
||||
|
||||
export function normalizeGoogleChatEmailEntry(entry: string): string | null {
|
||||
function normalizeGoogleChatEmailEntry(entry: string): string | null {
|
||||
const withoutProvider = normalizeEntryValue(entry).replace(
|
||||
/^(googlechat|google-chat|gchat):/i,
|
||||
"",
|
||||
@@ -89,7 +89,7 @@ type GoogleChatGroupEntry = {
|
||||
systemPrompt?: string;
|
||||
};
|
||||
|
||||
export function resolveGoogleChatGroupConfig(params: {
|
||||
function resolveGoogleChatGroupConfig(params: {
|
||||
groupId: string;
|
||||
groupName?: string | null;
|
||||
groups?: Record<string, GoogleChatGroupEntry>;
|
||||
|
||||
@@ -124,8 +124,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
|
||||
"extensions/googlechat/src/auth.ts: testing",
|
||||
"extensions/googlechat/src/google-auth.runtime.ts: __testing",
|
||||
"extensions/googlechat/src/google-auth.runtime.ts: createGoogleAuthFetch",
|
||||
"extensions/googlechat/src/monitor-access.ts: normalizeGoogleChatEmailEntry",
|
||||
"extensions/googlechat/src/monitor-access.ts: resolveGoogleChatGroupConfig",
|
||||
"extensions/googlechat/src/monitor-routing.ts: handleGoogleChatWebhookRequest",
|
||||
"extensions/googlechat/src/monitor.ts: testing",
|
||||
"extensions/googlechat/src/targets.ts: resolveGoogleChatSpaceChatType",
|
||||
|
||||
Reference in New Issue
Block a user