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

Function requireGravityApiKey

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

Source from the content-addressed store, hash-verified

52}
53
54const requireGravityApiKey = (gravityApiKey: string | undefined) => {
55 if (!gravityApiKey) {
56 throw new Error('GRAVITY_API_KEY is not configured')
57 }
58 return gravityApiKey
59}
60
61const buildGravityIndexRequest = (
62 input: GravityIndexInput,

Callers 1

buildGravityIndexRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected