UNPKG

@autobe/compiler

Version:

AI backend server code generator

32 lines (31 loc) 1.71 kB
import { IAutoBeTypeScriptCompileProps, IAutoBeTypeScriptCompileResult, IAutoBeTypeScriptCompiler } from "@autobe/interface"; /** * Official TypeScript compiler for final code validation and quality assurance. * * This compiler provides the ultimate validation layer that ensures all * generated code meets production standards and integrates seamlessly with the * TypeScript ecosystem. While the AST-based approach eliminates most potential * errors before code generation, the AutoBeTypeScriptCompiler serves as the * final quality gate for perfect integration verification throughout the vibe * coding pipeline. * * The implementation validates framework integration with NestJS APIs, type * system integrity for complex relationships, dependency resolution across * modules, and build system compatibility with standard toolchains. It provides * comprehensive IDE support including intelligent autocomplete, real-time error * detection, sophisticated refactoring capabilities, and complete navigation * features. * * The compiler enables critical feedback loops necessary for AI self-correction * when implementation or test code contains compilation errors requiring * iterative refinement. This ensures that generated applications are * immediately deployable without manual debugging cycles while maintaining the * reliability of the automated development process. * * @author Samchon */ export declare class AutoBeTypeScriptCompiler implements IAutoBeTypeScriptCompiler { compile(props: IAutoBeTypeScriptCompileProps): Promise<IAutoBeTypeScriptCompileResult>; getExternal(location: string): Promise<string | undefined>; beautify(script: string): Promise<string>; }