indexer-cli 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,16 @@
1
1
  import type { ProjectId, SnapshotId, VectorRecord, VectorSearchFilters, VectorSearchResult, VectorStore } from "../core/types.js";
2
- export interface LanceDbVectorStoreOptions {
2
+ export interface SqliteVecVectorStoreOptions {
3
3
  dbPath: string;
4
4
  vectorSize: number;
5
- tableName?: string;
6
- cacheTTL?: number;
7
5
  }
8
- export declare const REQUIRED_COLUMNS: readonly ["project_id", "chunk_id", "snapshot_id", "file_path", "start_line", "end_line", "content_hash", "chunk_type", "primary_symbol", "vector"];
9
- export declare class LanceDbVectorStore implements VectorStore {
6
+ export type LanceDbVectorStoreOptions = SqliteVecVectorStoreOptions;
7
+ export declare const REQUIRED_COLUMNS: readonly ["project_id", "chunk_id", "snapshot_id", "file_path", "start_line", "end_line", "content_hash", "chunk_type", "primary_symbol", "embedding"];
8
+ export declare class SqliteVecVectorStore implements VectorStore {
10
9
  private readonly dbPath;
11
10
  private readonly vectorSize;
12
- private readonly tableName;
13
- private readonly cacheTTL;
14
11
  private db;
15
- private table;
16
12
  private initialized;
17
- private lastCacheRefresh;
18
- private operationQueue;
19
- constructor(options: LanceDbVectorStoreOptions);
13
+ constructor(options: SqliteVecVectorStoreOptions);
20
14
  initialize(): Promise<void>;
21
15
  close(): Promise<void>;
22
16
  upsert(vectors: VectorRecord[]): Promise<void>;
@@ -25,15 +19,12 @@ export declare class LanceDbVectorStore implements VectorStore {
25
19
  deleteBySnapshot(projectId: ProjectId, snapshotId: SnapshotId): Promise<void>;
26
20
  copyVectors(projectId: ProjectId, fromSnapshotId: SnapshotId, toSnapshotId: SnapshotId, excludeFilePaths: string[]): Promise<void>;
27
21
  deleteByProject(projectId: ProjectId): Promise<void>;
28
- private runSerialized;
29
- private isTransientIoError;
30
- private withTransientIoRetry;
31
- private refreshCacheIfNeeded;
32
- private reopenTableIfNeeded;
22
+ private openDatabase;
23
+ private getDb;
24
+ private embeddingToBuffer;
25
+ private normalizeEmbeddingValue;
33
26
  private buildPrefilter;
34
- private euclideanDistance;
35
- private createTable;
36
- private hasRequiredSchema;
37
27
  private escapeSqlLiteral;
38
28
  private escapeSqlLike;
39
29
  }
30
+ export { SqliteVecVectorStore as LanceDbVectorStore };