UNPKG

cline-sdk

Version:

Comprehensive SDK for Cline - AI-powered development assistant with database integration, execution modes, and custom functions

74 lines 1.9 kB
/** * Supabase Storage Integration for Cline SDK * Provides cloud-based file storage as alternative to local filesystem */ export interface SupabaseConfig { url: string; anonKey: string; serviceKey?: string; bucketName: string; projectPath?: string; } export interface SupabaseFileResult { success: boolean; message: string; file_path: string; size?: number; url?: string; } export declare class SupabaseStorage { private client; private bucketName; private projectPath; constructor(config: SupabaseConfig); /** * Write a file to Supabase Storage */ writeFile(filePath: string, content: string): Promise<SupabaseFileResult>; /** * Read a file from Supabase Storage */ readFile(filePath: string): Promise<{ success: boolean; content?: string; message: string; file_path: string; }>; /** * List files in a directory */ listFiles(directoryPath?: string): Promise<{ success: boolean; files?: string[]; message: string; }>; /** * Delete a file from Supabase Storage */ deleteFile(filePath: string): Promise<SupabaseFileResult>; /** * Check if file exists */ fileExists(filePath: string): Promise<boolean>; /** * Get public URL for a file */ getPublicUrl(filePath: string): string; /** * Create directory structure (Supabase doesn't have directories, but we can simulate with empty files) */ createDirectory(directoryPath: string): Promise<SupabaseFileResult>; /** * Get full path with project prefix */ private getFullPath; /** * Get storage info */ getStorageInfo(): Promise<{ bucket: string; projectPath: string; connected: boolean; }>; } //# sourceMappingURL=supabase-storage.d.ts.map