MCPcopy Create free account
hub / github.com/aetherstate/GODMOD3.AI / stripPII

Function stripPII

functions/api/telemetry.ts:345–353  ·  view source on GitHub ↗
(event: TelemetryEvent)

Source from the content-addressed store, hash-verified

343])
344
345function stripPII(event: TelemetryEvent): TelemetryEvent {
346 const clean: Record<string, unknown> = {}
347 for (const key of Object.keys(event)) {
348 if (ALLOWED_FIELDS.has(key)) {
349 clean[key] = event[key]
350 }
351 }
352 return clean as TelemetryEvent
353}
354
355function shortHash(str: string): string {
356 let h = 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected