MCPcopy Index your code
hub / github.com/simstudioai/sim / maskKey

Function maskKey

packages/db/scripts/migrate-block-api-keys-to-byok.ts:250–253  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

248}
249
250function maskKey(key: string): string {
251 if (key.length <= 8) return '•'.repeat(8)
252 return key.slice(0, 4) + '•'.repeat(Math.min(key.length - 8, 12)) + key.slice(-4)
253}
254
255function parseToolInputValue(value: unknown): any[] {
256 if (Array.isArray(value)) return value

Callers 1

processWorkspaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected