/** * Nexus wiki orchestrator — business logic extracted from `cleo nexus wiki`. * * Resolves the LOOM provider (if available), then delegates to * `generateNexusWikiIndex`. The CLI handler calls {@link runNexusWiki} and * emits the LAFS envelope. * * @module nexus/wiki-orchestrator * @epic T9833 * @task T10062 */ /** Options for {@link runNexusWiki}. */ export interface NexusWikiOptions { /** Absolute path to the project root. */ projectRoot: string; /** Output directory for generated wiki files (default: `/.cleo/wiki`). */ outputDir?: string; /** When set, restrict generation to a single community ID. */ communityFilter?: string; /** Only regenerate communities whose symbols changed since the last wiki run. */ incremental?: boolean; } /** Result of a successful {@link runNexusWiki} call. */ export interface NexusWikiResult { success: boolean; error?: string; outputDir: string; durationMs: number; [key: string]: unknown; } /** * Generate the community-grouped wiki index from the nexus code graph. * * Attempts to wire a LOOM provider via `resolveLlmBackend('warm')` for * LLM-driven narratives; falls back to scaffold mode when no backend is * available. All LOOM resolution errors are swallowed — the wiki always runs. * * @param opts - Wiki generation options * @returns Result envelope forwarded from `generateNexusWikiIndex` * @throws {Error} When `generateNexusWikiIndex` throws */ export declare function runNexusWiki(opts: NexusWikiOptions): Promise; //# sourceMappingURL=wiki-orchestrator.d.ts.map