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
34 lines (31 loc) • 1.13 kB
text/typescript
import { SessionManager } from '../../../../core/session/session-manager.cjs';
import '../types.cjs';
import '../../../../core/database/manager.cjs';
import '../../../../core/shared/types.cjs';
interface SessionSelectionOptions {
showPreview?: boolean;
enableSearch?: boolean;
allowCreateNew?: boolean;
maxResults?: number;
}
interface SessionActionChoice {
action: 'continue' | 'delete' | 'rename' | 'export' | 'cancel' | 'create-new';
sessionId?: string;
newTitle?: string;
}
declare class SessionSelector {
private readonly sessionManager;
private readonly profile;
constructor(sessionManager: SessionManager, profile: string);
private searchSessions;
private formatDate;
private truncateText;
selectSession(options?: SessionSelectionOptions): Promise<string | null>;
private promptForSearch;
private displaySessionList;
private promptForSelection;
private showSessionActionMenu;
private exportSession;
quickSelectSession(query?: string): Promise<string | null>;
}
export { type SessionActionChoice, type SessionSelectionOptions, SessionSelector };