refactor(googlechat): privatize monitor access helpers (#106871)

This commit is contained in:
Vincent Koc
2026-07-14 06:44:42 +08:00
committed by GitHub
parent 85cf09a3e1
commit 9f06eb23e8
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -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>;
-2
View File
@@ -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",