ruvector/npm/packages/core/index.d.ts
rUv 4358dbfa10 feat: comprehensive ruvector updates - analysis, workers, dashboard enhancements
Analysis module:
- Add complexity analysis (cyclomatic, cognitive, Halstead metrics)
- Add security scanning (SQL injection, XSS, command injection detection)
- Add pattern detection (code smells, design patterns)

Workers module:
- Add native worker implementation for parallel processing
- Add benchmark worker for performance testing
- Add worker type definitions

Core improvements:
- Add adaptive embedder with dynamic model selection
- Add ONNX optimized embeddings with caching
- Update intelligence engine with enhanced learning
- Update parallel workers with better concurrency

Dashboard enhancements:
- Add relay client service for Edge-Net communication
- Update network stats and specialized networks components
- Update network store with improved state management
- Update type definitions

Configuration:
- Add custom workers skill
- Add agentic-flow and ruvector fast scripts
- Update settings and gitignore

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 14:43:06 +00:00

29 lines
768 B
TypeScript

export interface VectorEntry {
id?: string;
vector: Float32Array | number[];
}
export interface SearchQuery {
vector: Float32Array | number[];
k: number;
efSearch?: number;
}
export interface SearchResult {
id: string;
score: number;
}
export class VectorDb {
constructor(options: { dimensions: number; storagePath?: string; distanceMetric?: string; hnswConfig?: any });
insert(entry: VectorEntry): Promise<string>;
insertBatch(entries: VectorEntry[]): Promise<string[]>;
search(query: SearchQuery): Promise<SearchResult[]>;
delete(id: string): Promise<boolean>;
get(id: string): Promise<VectorEntry | null>;
len(): Promise<number>;
isEmpty(): Promise<boolean>;
}
// Alias for backwards compatibility
export { VectorDb as VectorDB };