MCPcopy Index your code
hub / github.com/TanStack/ai / looksLikeSecret

Function looksLikeSecret

packages/ai-code-mode/src/validate-bindings.ts:74–79  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

72}
73
74function looksLikeSecret(name: string): boolean {
75 const words = splitIntoWords(name)
76 if (words.some((w) => DANGEROUS_WORDS.has(w))) return true
77 const normalized = name.replace(/[_\-\s]/g, '').toLowerCase()
78 return COMPOUND_PATTERNS.some((p) => normalized.includes(p))
79}
80
81function resolveRef(
82 ref: string,

Callers 1

findSecretParamsFunction · 0.85

Calls 3

splitIntoWordsFunction · 0.85
hasMethod · 0.80
replaceMethod · 0.65

Tested by

no test coverage detected