@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and
45 lines (44 loc) • 1.4 kB
TypeScript
/**
* Environment File Management Utilities for NeuroLink CLI
*
* Handles .env file operations including backup, update, and validation.
*/
export interface EnvBackupResult {
backupPath?: string;
existed: boolean;
}
export interface EnvUpdateResult {
backup: EnvBackupResult;
updated: string[];
added: string[];
unchanged: string[];
}
/**
* Create a timestamped backup of the existing .env file
*/
export declare function backupEnvFile(envPath?: string): EnvBackupResult;
/**
* Parse .env file content into key-value pairs
*/
export declare function parseEnvFile(content: string): Record<string, string>;
/**
* Generate .env file content from key-value pairs
*/
export declare function generateEnvContent(envVars: Record<string, string>, existingContent?: string): string;
/**
* Update .env file with new environment variables
*/
export declare function updateEnvFile(newVars: Record<string, string>, envPath?: string, createBackup?: boolean): EnvUpdateResult;
/**
* Display environment file update summary
*/
export declare function displayEnvUpdateSummary(result: EnvUpdateResult, quiet?: boolean): void;
/**
* Validate .env file format and required variables
*/
export declare function validateEnvFile(envPath?: string, requiredVars?: string[]): {
valid: boolean;
errors: string[];
warnings: string[];
variables: Record<string, string>;
};