MCPcopy Create free account
hub / github.com/cortexkit/magic-context / sanitizeDiagnosticText

Function sanitizeDiagnosticText

packages/plugin/src/shared/redaction.ts:213–215  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

211}
212
213export function sanitizeDiagnosticText(value: string): string {
214 return redactSecretText(sanitizePathString(value));
215}
216
217// Extra shareability-only signals — patterns that mark text as unsafe to share
218// with teammates but that the diagnostic sanitizer (tuned for secret/path

Callers 6

runHealthChecksFunction · 0.90
collectHistorianFailuresFunction · 0.90
collectHistorianRunsFunction · 0.90
sanitizeLogContentFunction · 0.90
sanitizeConfigValueFunction · 0.85

Calls 2

redactSecretTextFunction · 0.85
sanitizePathStringFunction · 0.85

Tested by

no test coverage detected