mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
ae528aea7e
## Wave 1: Database Foundation - Add SQL schema for code_chunks, code_entities, entity_relationships - Use RuVector 768-dim embeddings (not pgvector) - Implement hybrid_code_search function (BM25 + vector) - Add pg_trgm extension for full-text search - Create setup scripts for Ollama/nomic-embed-text ## Wave 2: Multi-Language Parser - Implement TreeSitterParser with 5 language support - Add language-specific extractors (TS, Python, Go, Rust, JS) - Implement incremental parsing with tree caching - Create comprehensive test suite with fixtures ## Architecture Decision - Defer Apache AGE to v2 (see ADR-002) - Use SQL tables for graph relationships - Rationale: Lower complexity, team familiarity, sufficient for v1 Closes #159, Closes #160 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
490 B
TypeScript
24 lines
490 B
TypeScript
export function greet(name: string): string {
|
|
return `Hello, ${name}!`;
|
|
}
|
|
|
|
export class UserService {
|
|
private users: Map<string, User> = new Map();
|
|
|
|
async getUser(id: string): Promise<User | null> {
|
|
return this.users.get(id) || null;
|
|
}
|
|
|
|
public createUser(name: string, email: string): User {
|
|
const user = { id: crypto.randomUUID(), name, email };
|
|
this.users.set(user.id, user);
|
|
return user;
|
|
}
|
|
}
|
|
|
|
interface User {
|
|
id: string;
|
|
name: string;
|
|
email: string;
|
|
}
|