MCPcopy Create free account
hub / github.com/EvoMap/evolver / redactKnownSecretsInString

Function redactKnownSecretsInString

src/gep/cliContracts.js:945–950  ·  view source on GitHub ↗
(value, deps, known)

Source from the content-addressed store, hash-verified

943}
944
945function redactKnownSecretsInString(value, deps, known) {
946 let result = value;
947 const secrets = known || knownLocalSecrets(deps);
948 for (const secret of secrets) result = result.split(secret).join('[REDACTED]');
949 return result;
950}
951
952function knownLocalSecrets(deps) {
953 const secrets = new Set();

Callers 3

sanitizeTextFunction · 0.85
redactKnownSecretsFunction · 0.85
sanitizeObjectKeyFunction · 0.85

Calls 1

knownLocalSecretsFunction · 0.85

Tested by

no test coverage detected