UNPKG

vibe-tools

Version:
27 lines (26 loc) 947 B
/** * Parse a GitHub URL or repository identifier string * @param url GitHub repository URL or identifier (username/reponame[@branch]) * @returns Object containing username, reponame, and optional branch */ export declare function parseGithubUrl(url: string): { username: string; reponame: string; branch?: string; }; /** * Check if a string looks like a GitHub repository reference * @param query String to check * @returns True if the string looks like a GitHub repository reference */ export declare function looksLikeGithubRepo(query: string): boolean; /** * Fetch and pack a GitHub repository * @param repoPath GitHub repository path (username/reponame[@branch]) * @param maxRepoSizeMB Maximum repository size in MB * @returns Repository context as text and token count */ export declare function getGithubRepoContext(repoPath: string, maxRepoSizeMB?: number): Promise<{ text: string; tokenCount: number; }>;