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

Function currentUserHash

packages/cli/src/lib/diagnostics-pi.ts:161–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159}
160
161function currentUserHash(): string {
162 const username = userInfo().username || "unknown";
163 return createHash("sha256").update(username).digest("hex").slice(0, 12);
164}
165
166function redactSecretString(value: string): string {
167 // Apply the shared comprehensive redactor (OpenCode parity: adds

Callers 1

sanitizeStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected