/** * Skills Database Client * Fetches skills from our Supabase-powered API * * Note: The API URL is embedded at build time using esbuild define */ export interface DBSkill { id: string; name: string; author: string; scoped_name: string; description: string; stars: number; forks: number; github_url: string; raw_url: string; repo_full_name: string; path: string; branch: string; author_avatar: string; assets: Asset[]; content?: string; has_assets: boolean; folder_url?: string; } export interface Asset { name: string; rawUrl: string; size: number; } export interface SkillsDBResult { skills: DBSkill[]; total: number; } export interface FetchOptions { search?: string; author?: string; category?: string; limit?: number; offset?: number; sortBy?: 'stars' | 'recent' | 'name'; } /** * Parse a scoped name into author and name parts * Supports: @author/name, author/name, or just name */ export declare function parseScopedName(input: string): { author?: string; name: string; }; /** * Fetch skills from the database API */ export declare function fetchFromDB(options?: FetchOptions): Promise; /** * Get a specific skill by scoped name * Returns exact match for @author/name, or first match for just name */ export declare function getSkillByScoped(scopedName: string): Promise; /** * Search skills with optional author filter */ export declare function searchSkillsDB(query: string, options?: Omit): Promise; /** * Get skills by author */ export declare function getSkillsByAuthor(author: string, options?: Omit): Promise; /** * Marketplace-compatible skill format (matches fetchSkillsMP output) * Used for CLI compatibility */ export interface MarketplaceCompatibleSkill { name: string; description: string; author: string; stars: number; forks: number; githubUrl: string; rawUrl: string; path: string; branch: string; scopedName: string; hasAssets: boolean; authorAvatar?: string; } export interface MarketplaceFetchResult { skills: MarketplaceCompatibleSkill[]; total: number; hasNext: boolean; page: number; } /** * Unified fetch function for CLI - returns data in SkillsMP-compatible format * This is the primary function the CLI should use for marketplace operations */ export declare function fetchSkillsForCLI(options?: { search?: string; page?: number; limit?: number; sortBy?: 'stars' | 'recent' | 'name'; }): Promise; /** * Search skills from our database - CLI-compatible version */ export declare function searchSkillsForCLI(query: string, limit?: number): Promise; /** * Install a skill directly from a GitHub URL */ export declare function installFromGitHubUrl(githubUrl: string, installDir: string): Promise<{ name: string; path: string; }>; //# sourceMappingURL=skillsdb.d.ts.map