UNPKG

vibe-tools

Version:
26 lines (25 loc) 820 B
/** * Check if the GitHub CLI is available and logged in */ export declare function isGitHubCliAvailable(): boolean; /** * Try to get GitHub credentials from git credential helper * Returns undefined if no credentials are found or if there's an error */ export declare function getGitCredentials(): { username: string; password: string; } | undefined; /** * Try to get a GitHub token using various methods: * 1. Check environment variable * 2. If GitHub CLI is available and logged in, generate a token * 3. Try git credentials if available * * @returns The GitHub token if available, undefined otherwise */ export declare function getGitHubToken(): string | undefined; /** * Get GitHub authentication headers for API requests */ export declare function getGitHubHeaders(): Record<string, string>;