@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
28 lines (27 loc) • 1.08 kB
TypeScript
/**
* @fileoverview Project type detection utilities.
*
* This module provides functions to automatically detect project types
* and programming languages from project files and structure. It's used
* to set default language options without requiring manual specification.
*/
import { ProgrammingLanguage } from '../../types/common';
/**
* Project type detection result
*/
export interface ProjectDetectionResult {
/** The primary programming language of the project */
language: ProgrammingLanguage;
/** Confidence level of the detection (high, medium, low) */
confidence: 'high' | 'medium' | 'low';
/** Additional detected languages */
additionalLanguages?: ProgrammingLanguage[];
/** Project type (framework, library, application, etc.) */
projectType?: string;
}
/**
* Auto-detect project type and primary programming language
* @param projectPath Project directory path
* @returns Detection result with language and confidence
*/
export declare function detectProjectType(projectPath: string): Promise<ProjectDetectionResult>;