UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

65 lines (64 loc) 1.79 kB
/** * Code Processors Module * * Provides file processors for source code files across 50+ programming languages. * Uses extension-based detection as primary method for reliable identification. * * @module processors/code * * @example * ```typescript * import { * // Processor class and singleton * SourceCodeProcessor, * sourceCodeProcessor, * * // Helper functions * isSourceCodeFile, * processSourceCode, * validateSourceCodeSize, * detectLanguage, * * // Types * type ProcessedSourceCode, * } from "./code/index.js"; * * // Check if a file is source code * if (isSourceCodeFile("text/plain", "main.py")) { * const result = await processSourceCode({ * id: "file-123", * name: "main.py", * mimetype: "text/plain", * size: 1024, * buffer: codeBuffer, * }); * * if (result.success) { * console.log(`Language: ${result.data.language}`); // "Python" * console.log(`Lines: ${result.data.lineCount}`); * } * } * ``` */ // ============================================================================= // SOURCE CODE PROCESSOR // ============================================================================= export { // Helper functions detectLanguage, isSourceCodeFile, // Types processSourceCode, // Processor class and singleton SourceCodeProcessor, sourceCodeProcessor, validateSourceCodeSize, } from "./SourceCodeProcessor.js"; // ============================================================================= // CONFIG PROCESSOR // ============================================================================= export { // Processor class ConfigProcessor, // Singleton instance configProcessor, // Helper functions isConfigFile, // Types processConfig, } from "./ConfigProcessor.js";