- Add evaluation test suite with TypeScript and Python fixtures - Fix MCP server to defer CodeGraph init until rootUri received - Fix call edge extraction by calling resolveReferences() after indexAll/sync - Fix glob matching for root-level files (e.g., **/*.py now matches auth.py) - Fix duplicate node extraction for methods inside classes - Update context tests to use buildContext for semantic search + graph traversal - Export unused formatter functions to fix build Evaluation results: - TypeScript: 96% precision, 79% recall, 85% F1 - Python: 99% precision, 80% recall, 85% F1 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
35 lines
570 B
Python
35 lines
570 B
Python
"""Data models for the application."""
|
|
|
|
from dataclasses import dataclass
|
|
from datetime import datetime
|
|
from typing import Optional, List
|
|
|
|
|
|
@dataclass
|
|
class User:
|
|
id: str
|
|
email: str
|
|
name: str
|
|
password_hash: str
|
|
created_at: datetime
|
|
|
|
|
|
@dataclass
|
|
class Task:
|
|
id: str
|
|
user_id: str
|
|
title: str
|
|
description: Optional[str]
|
|
completed: bool
|
|
created_at: datetime
|
|
completed_at: Optional[datetime] = None
|
|
|
|
|
|
@dataclass
|
|
class Project:
|
|
id: str
|
|
user_id: str
|
|
name: str
|
|
tasks: List[str] # Task IDs
|
|
created_at: datetime
|