UNPKG

blowback-context

Version:

MCP server that integrates with FE development server for Cursor

42 lines (41 loc) 1.32 kB
export interface ScreenshotRecord { id: string; hostname: string; pathname: string; query: string | null; hash: string | null; checkpoint_id: string | null; timestamp: Date; mime_type: string; description: string; browser_id?: string; browser_type?: string; session_id?: string; } export interface ParsedUrl { hostname: string; pathname: string; query: string; hash: string; } export declare class ScreenshotDB { private db; constructor(); private init; parseUrl(url: string): ParsedUrl; findById(id: string): ScreenshotRecord | null; findLatestByUrl(hostname: string, pathname: string): ScreenshotRecord | null; findAllByUrl(hostname: string, pathname: string): ScreenshotRecord[]; findAll(): ScreenshotRecord[]; insert(record: ScreenshotRecord): void; deleteById(id: string): boolean; saveBrowserInstance(id: string, type: string, displayName?: string, metadata?: any): void; updateBrowserLastUsed(id: string): void; deactivateBrowser(id: string): void; getBrowserInstance(id: string): any; getAllActiveBrowsers(): any[]; deleteBrowserInstance(id: string): boolean; close(): void; } export declare function getScreenshotDB(): ScreenshotDB; export declare function closeScreenshotDB(): void;