UNPKG

@dailyautomations/terminal-logger

Version:

Terminal command logger with Supabase sync for swarm prompts

48 lines (47 loc) 1.05 kB
export interface Command { id: string; timestamp: Date; command: string; directory: string; user: string; sessionId: string; hostname: string; exitCode?: number; duration?: number; metadata?: { isSwarmPrompt?: boolean; swarmId?: string; agentType?: string; taskId?: string; }; } export interface CommandLog { version: string; session: SessionInfo; commands: Command[]; } export interface SessionInfo { id: string; startTime: Date; endTime?: Date; user: string; hostname: string; shell: string; terminal: string; } export interface SyncStatus { lastSyncTime: Date; pendingCommands: number; syncErrors: number; isEnabled: boolean; } export interface LoggerConfig { supabaseUrl?: string; supabaseAnonKey?: string; logFilePath: string; syncIntervalMinutes: number; enableRealTimeSync: boolean; shellHistoryFile: string; watchIntervalMs: number; logLevel: 'debug' | 'info' | 'warn' | 'error'; }