rawi
Version:
Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into
28 lines (25 loc) • 1.33 kB
TypeScript
import { DatabaseManager } from '../../../../core/database/manager.js';
import { ChatOptions, EnhancedChatSession, ChatSession, ListSessionsOptions, DeleteSessionOptions, ExportSessionsOptions } from '../types.js';
import '../../../../core/shared/types.js';
declare class SessionManager {
private dbManager;
constructor(dbManager: DatabaseManager);
handleSessionStart(options: ChatOptions): Promise<string>;
createNewSession(profile: string, title?: string): Promise<string>;
continueSession(sessionId: string, profile: string): Promise<EnhancedChatSession>;
getRecentSessions(profile: string, limit?: number): Promise<ChatSession[]>;
displaySessionSelection(sessions: ChatSession[]): Promise<string | null>;
listSessions(options: ListSessionsOptions): Promise<void>;
deleteSession(sessionId: string, options: DeleteSessionOptions): Promise<boolean>;
renameSession(sessionId: string, newTitle: string): Promise<boolean>;
exportSessions(options: ExportSessionsOptions): Promise<string>;
private formatSessionChoice;
private formatAge;
private calculateDuration;
private displaySessionInfo;
private displayConversationHistory;
private displaySessionsTable;
private displaySessionsSummary;
private formatSessionsAsMarkdown;
}
export { SessionManager };