/** * Cortex Soul — Identity, preferences, and heartbeat system * Inspired by OpenClaw's SOUL.md/HEARTBEAT.md/AGENTS.md pattern * * Soul = who you are as a vibe coder (preferences, style, history) * Heartbeat = periodic health checks + state awareness * Agents = configuration for how Cortex behaves */ export interface Soul { name: string; role: string; preferences: Record; style: string[]; history: SoulEvent[]; createdAt: string; lastActive: string; } export interface SoulEvent { date: string; event: string; } export declare function loadSoul(): Soul; export declare function saveSoul(soul: Soul): void; export declare function updateSoulPreference(key: string, value: string): void; export declare function addSoulEvent(event: string): void; export interface HeartbeatResult { timestamp: string; checks: HeartbeatCheck[]; overall: 'healthy' | 'attention' | 'critical'; summary: string; } export interface HeartbeatCheck { name: string; status: 'ok' | 'warning' | 'error'; message: string; } export declare function runHeartbeat(): Promise; export interface AgentConfig { autoInject: boolean; autoDetect: boolean; autoWatch: boolean; notifyOnCritical: boolean; heartbeatInterval: number; } export declare function loadAgents(): AgentConfig; export declare function saveAgents(config: AgentConfig): void;