Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

656 B
Raw Blame
import { logger } from '@librechat/data-schemas';
import type { PullRequestProvider } from 'librechat-data-provider';
import type { PullRequestErrorCode } from './types';

/** Provider responses cannot prove whether a comparison failed due to access or missing commits. */
type DiscoveryReason = PullRequestErrorCode | 'COMPARISON_UNAVAILABLE' | 'COMPARISON_LIMIT';

/** Only bounded codes leave discovery here, never credentials, repository identity or payloads. */
export function logDiscoveryDiagnostic(
  provider: PullRequestProvider,
  reason: DiscoveryReason,
): void {
  logger.debug('[PullRequests] Discovery diagnostic', { provider, reason });
}