/** * Hub - The Agent's Brain Home * * Manages structured memory files in ~/.connect-hub/ * Human-readable markdown files that the orchestrator reads/writes. */ /** * Ensure Lia-Hub directory structure exists * Called on agent start to create the orchestrator's workspace */ export declare function ensureLiaHub(): void; /** * Get paths to Lia-Hub directories */ export declare function getLiaHubPaths(): { hub: string; notebook: string; drafts: string; shared: string; outputs: string; }; /** * Read the orchestrator's scratchpad */ export declare function readScratchpad(): string | null; /** * Write to the orchestrator's scratchpad */ export declare function writeScratchpad(content: string): void; /** * Append a thought or plan to the scratchpad */ export declare function appendToScratchpad(note: string): void; /** * Log a worker to the worker log */ export declare function logWorker(workerId: string, task: string, status: 'started' | 'completed' | 'failed' | 'timeout', duration?: number, filesCreated?: string[]): void; /** * Get the shared output directory path for workers */ export declare function getSharedOutputPath(): string; export interface HubContext { agentIdentity: string; claudeMd: string; landmarks: string; projectBio: string | null; projectName: string | null; } /** * Ensure hub directory structure exists */ export declare function ensureHubExists(): void; /** * Load hub context for a session * Reads AGENTS.md, CLAUDE.md, LANDMARKS.md, and relevant project bio * Checks both ~/.connect-hub and ~/Lia-Hub locations */ export declare function loadHubContext(message?: string): HubContext; /** * Format hub context for inclusion in system prompt */ export declare function formatHubContext(ctx: HubContext): string; /** * Append to action log */ export declare function logAction(action: string, project?: string, details?: string): void; /** * Update or create a project bio */ export declare function updateProjectBio(projectName: string, content: string): void; /** * Append learning to a project bio */ export declare function appendToProjectBio(projectName: string, section: string, content: string): void; /** * Log a mistake for learning */ export declare function logMistake(what: string, rootCause: string, fix: string, lesson: string): void; /** * Update LANDMARKS.md with current state */ export declare function updateLandmarks(content: string): void;