/** * `opensip-tools graph symbol-index --out ` — emit a symbol-index * JSON artifact suitable for agent consumption (e.g., feeding into a * coding LLM's context, or piping into another tool). * * Schema: * { * "version": "1.0", * "tool": "graph", * "generatedAt": "", * "symbols": { * "": [ * { "qualifiedName", "filePath", "line", "column", * "kind", "visibility", "bodyHash" }, * ... * ] * }, * "fileSymbols": { * "": ["", ...] * } * } * * Bidirectional like codeindex (name→file and file→names), but enriched * with kind/visibility/bodyHash since we already have that data. */ import type { Catalog } from '../types.js'; import type { ToolCliContext } from '@opensip-tools/core'; export interface SymbolIndexCommandOptions { readonly cwd: string; readonly out: string; } interface SymbolEntry { readonly qualifiedName: string; readonly filePath: string; readonly line: number; readonly column: number; readonly kind: string; readonly visibility: string; readonly bodyHash: string; } interface SymbolIndexArtifact { readonly version: '1.0'; readonly tool: 'graph'; readonly generatedAt: string; readonly symbols: Record; readonly fileSymbols: Record; } export declare function executeSymbolIndex(opts: SymbolIndexCommandOptions, cli: ToolCliContext): void; export declare function buildArtifact(catalog: Catalog): SymbolIndexArtifact; export {}; //# sourceMappingURL=symbol-index.d.ts.map