Add comprehensive development intelligence system that tracks: - Development sessions with automatic start/stop - Full conversation history with semantic search - Tool usage and file operation analytics - Think time and engagement analysis - Git activity correlation - Learning pattern recognition - Productivity insights and metrics Features: - FastAPI backend with SQLite database - Modern web dashboard with interactive charts - Claude Code hook integration for automatic tracking - Comprehensive test suite with 100+ tests - Complete API documentation (OpenAPI/Swagger) - Privacy-first design with local data storage 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
490 B
Python
24 lines
490 B
Python
"""
|
|
Database initialization script.
|
|
"""
|
|
|
|
import asyncio
|
|
import os
|
|
from pathlib import Path
|
|
|
|
from app.database.connection import init_database
|
|
|
|
|
|
async def main():
|
|
"""Initialize the database."""
|
|
# Ensure data directory exists
|
|
data_dir = Path("data")
|
|
data_dir.mkdir(exist_ok=True)
|
|
|
|
print("Initializing Claude Code Project Tracker database...")
|
|
await init_database()
|
|
print("Database initialization complete!")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main()) |