/** * Nexus analyze orchestrator — business logic extracted from `cleo nexus analyze`. * * Runs the code-intelligence pipeline, clears the existing index for full runs, * refreshes the nexus-bridge, updates the multi-project registry, and sweeps * the git log for task–symbol links. All side-effects are best-effort and do * not fail the pipeline on error. * * @module nexus/analyze-orchestrator * @epic T9833 * @task T10062 */ /** Parameters for {@link runNexusAnalysis}. */ export interface NexusAnalysisParams { /** Absolute path to the repository to analyze. */ repoPath: string; /** Override the project ID (default: `base64url(repoPath).slice(0, 32)`). */ projectIdOverride?: string; /** When true, only re-index files that changed since the last run. */ incremental?: boolean; /** * Progress callback invoked every 50 files (and on completion). * Omit for JSON output mode. */ onProgress?: (current: number, total: number, filePath: string) => void; } /** Result of a successful {@link runNexusAnalysis} call. */ export interface NexusAnalysisResult { projectId: string; repoPath: string; incremental: boolean; nodeCount: number; relationCount: number; fileCount: number; durationMs: number; } /** * Run the nexus code-intelligence pipeline on a repository. * * This function: * 1. Derives the project ID. * 2. For full runs, clears the existing nexus index. * 3. Runs `@cleocode/nexus` pipeline. * 4. Best-effort: refreshes `nexus-bridge.md`. * 5. Best-effort: updates the multi-project registry. * 6. Best-effort: sweeps the git log for task–symbol links. * * @param params - Analysis configuration * @returns Pipeline result with node/relation/file counts and duration * @throws {Error} When the pipeline itself fails (best-effort steps never throw) */ export declare function runNexusAnalysis(params: NexusAnalysisParams): Promise; //# sourceMappingURL=analyze-orchestrator.d.ts.map