UNPKG

safevibe

Version:

Safevibe CLI - Simple personal secret vault for AI developers and amateur vibe coders

52 lines (51 loc) 1.37 kB
/** * Safevibe CLI Configuration * Simplified without project management */ export interface SafevibeConfig { backendUrl: string; sessionToken?: string; userId?: string; keyFile?: string; created: string; updated: string; } /** * Configuration file paths */ export declare const CONFIG_DIR: string; export declare const CONFIG_FILE: string; export declare const KEYS_FILE: string; /** * Check if Safevibe is initialized (config exists) */ export declare function isInitialized(): Promise<boolean>; /** * Load configuration from disk */ export declare function loadConfig(): Promise<SafevibeConfig>; /** * Save configuration to disk */ export declare function saveConfig(config: SafevibeConfig): Promise<void>; /** * Initialize configuration with defaults */ export declare function initConfig(options: { backendUrl?: string; sessionToken?: string; userId?: string; force?: boolean; }): Promise<SafevibeConfig>; /** * Update configuration with new values */ export declare function updateConfig(updates: Partial<SafevibeConfig>): Promise<SafevibeConfig>; /** * Get a specific configuration value */ export declare function getConfigValue<K extends keyof SafevibeConfig>(key: K): Promise<SafevibeConfig[K] | undefined>; /** * Reset configuration to defaults */ export declare function resetConfig(): Promise<void>;