@webdevtoday/grok-cli
Version:
A sophisticated CLI tool for interacting with xAI Grok 4, featuring conversation history, file reference, custom commands, memory system, and genetic development workflows
54 lines • 1.29 kB
TypeScript
/**
* Setup utilities for first-time Grok CLI initialization
*/
/**
* API key setup and management
*/
export declare class SetupManager {
private cwd;
private localApiKeyFile;
private globalApiKeyFile;
private gitIgnoreFile;
constructor(cwd?: string);
/**
* Check if API key exists (local or global)
*/
hasApiKey(): Promise<boolean>;
/**
* Get API key from file (local takes precedence over global)
*/
getApiKey(): Promise<string | null>;
/**
* Interactive API key setup with choice of global or local storage
*/
setupApiKey(): Promise<string | null>;
/**
* Save API key globally
*/
private saveApiKeyGlobally;
/**
* Save API key locally
*/
private saveApiKeyLocally;
/**
* Add .grok-api to .gitignore if not already present
*/
private addToGitIgnore;
/**
* Basic API key format validation
*/
private isValidApiKeyFormat;
/**
* Initialize project with Grok CLI
*/
initializeProject(): Promise<boolean>;
/**
* Show setup status
*/
showSetupStatus(): Promise<void>;
/**
* Get project type based on files present
*/
detectProjectType(): Promise<string[]>;
}
//# sourceMappingURL=setup.d.ts.map