/** * Nexus Bridge Generator * * Generates .cleo/nexus-bridge.md from nexus.db content. This file is * the code intelligence equivalent of memory-bridge.md — it summarizes * the codebase graph for agent consumption. * * Content assembly: * - Index status (file count, node count, relation count, last indexed) * - Symbol counts by kind (functions, classes, methods, etc.) * - Relation counts by type (calls, imports, extends, etc.) * - Top entry points (most outgoing CALLS edges, exported) * - Functional clusters (communities by symbol count) * - Code intelligence command reference * * Regeneration triggers: * - cleo nexus analyze (called after pipeline flush) * - Manual: cleo nexus refresh-bridge * * @task T551 * @epic T549 */ import { type EngineResult } from '../engine-result.js'; /** * Generate nexus bridge markdown content from nexus.db. * Returns the full markdown string (does not write to disk). * * @param projectId - Project registry ID used to scope nexus.db queries * @param repoPath - Absolute path to the repository root (used for display) * @returns Markdown string summarizing the code intelligence index */ export declare function generateNexusBridgeContent(projectId: string, repoPath: string): Promise; /** * Write nexus bridge content to .cleo/nexus-bridge.md. * * When `brain.memoryBridge.mode` is `'cli'` (default), the file write is skipped * and the function returns `{ written: false }` without error (T999). This keeps * nexus-bridge behaviour aligned with memory-bridge — the two bridges share the * same injection-mode gate. * * Set mode to `'file'` to restore legacy file-based injection behaviour. * * @param projectRoot - Absolute path to the project root * @param projectId - Project registry ID (used to scope nexus.db queries) * @returns Result with path and whether the file was written */ export declare function writeNexusBridge(projectRoot: string, projectId?: string): Promise<{ path: string; written: boolean; }>; /** * Best-effort nexus bridge refresh. Never throws. * Called after cleo nexus analyze completes. * * @param projectRoot - Absolute path to the project root * @param projectId - Project registry ID (used to scope nexus.db queries) */ export declare function refreshNexusBridge(projectRoot: string, projectId?: string): Promise; export declare function nexusRefreshBridge(repoPath: string, projectId?: string): Promise>; //# sourceMappingURL=nexus-bridge.d.ts.map