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

Function buildPromptContext

web/src/app/api/admin/relabel-for-user/route.ts:528–541  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

526}
527
528function buildPromptContext(apiKey: string) {
529 return {
530 apiKey,
531 runId: `admin-relabel-${Date.now()}`,
532 clientSessionId: STATIC_SESSION_ID,
533 fingerprintId: STATIC_SESSION_ID,
534 userInputId: STATIC_SESSION_ID,
535 userId: TEST_USER_ID,
536 sendAction: async () => {},
537 trackEvent: async () => {},
538 logger,
539 signal: new AbortController().signal,
540 }
541}
542
543/**
544 * Extract API key from Authorization header (Bearer token)

Callers 1

POSTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected