@hpbyte/h-codex-core
Version:
Core indexing and search functionality for h-codex
36 lines (35 loc) • 1.01 kB
TypeScript
export declare class Indexer {
index(path: string): Promise<{
totalFiles: number;
processedFiles: number;
failedFiles: number;
errors: {
file: string;
error: string;
}[];
}>;
indexFile(filePath: string, projectId: string): Promise<{
newCodeChunks: {
id: string;
createdAt: Date | null;
updatedAt: Date | null;
projectId: string;
content: string;
filePath: string;
startLine: number;
endLine: number;
nodeType: string;
language: string | null;
hash: string;
size: number;
}[];
newEmbeddings: {
id: string;
createdAt: Date | null;
chunkId: string;
embedding: number[] | null;
}[];
}>;
clear(projectName: string): Promise<import("postgres").RowList<never[]>>;
}
export declare const indexer: Indexer;