MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / redactGravityApiKey

Function redactGravityApiKey

web/src/app/api/v1/gravity-index/_post.ts:37–40  ·  view source on GitHub ↗
(
  text: string,
  gravityApiKey: string | undefined,
)

Source from the content-addressed store, hash-verified

35}
36
37const redactGravityApiKey = (
38 text: string,
39 gravityApiKey: string | undefined,
40) => (gravityApiKey ? text.split(gravityApiKey).join('[redacted]') : text)
41
42const withQuery = (
43 path: string,

Callers 1

postGravityIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected