basant307/AI_Governance_Project
045
1/**2 * @license3 * Copyright 2025 Google LLC4 * SPDX-License-Identifier: Apache-2.05 */6 7import { getLanguageFromFilePath } from '../utils/language-detection.js';8 9export function getProgrammingLanguage(10 args: Record<string, unknown>,11): string | undefined {12 const filePath = args['file_path'] || args['path'];13 if (typeof filePath === 'string') {14 return getLanguageFromFilePath(filePath);15 }16 return undefined;17}18 