Commit Graph

8 Commits (d919ea25e1120cbe7dd878be69672f2a8a1f2337)

Author SHA1 Message Date
PeninsulaInd d919ea25e1 Fix concurrent generation threading issues
- Fix SessionLocal import error by using db_manager.get_session()
- Create thread-local ContentGenerator instances for each worker
- Ensure each thread uses its own database session
- Prevents database session conflicts in concurrent article generation
2025-10-27 13:58:18 -05:00
PeninsulaInd 3649e88f44 Fixed: Now listens to model selection in job.json file 2025-10-22 16:03:44 -05:00
PeninsulaInd b3e35b0b4d Story 4.1-3 coded and real-world tested. Working 2025-10-22 13:04:03 -05:00
PeninsulaInd 8a382a1db4 Story 4.1 coded - pre real testing 2025-10-22 12:19:25 -05:00
PeninsulaInd ef62ecf852 Passed initial test, generates an entire article 2025-10-20 11:35:02 -05:00
PeninsulaInd 4cada9df42 Story 1.6 finished 2025-10-18 11:35:47 -05:00
PeninsulaInd 8641bcae45 Complete Epic 1 Stories 1.1-1.3: Foundation, Database, and Authentication
Story 1.1: Project Initialization & Configuration
- Set up monorepo structure with Python application
- Configured .env.example with all required environment variables
- Implemented JSON configuration file parsing (master.config.json)
- Initialized project dependencies in requirements.txt

Story 1.2: Database Setup & User Model
- Implemented SQLite database connection with SQLAlchemy
- Created User model with username, hashed_password, and role fields
- Implemented Repository Pattern for data access layer
- Created database initialization script (scripts/init_db.py)
- Added database session management
- User model supports Admin and User roles with is_admin() helper

Story 1.3: User Authentication System
- Implemented AuthService with secure password hashing (bcrypt)
- Added hash_password() and verify_password() methods
- Implemented authenticate_user() for credential validation
- System correctly identifies user roles (Admin/User)
- Authentication fails gracefully for invalid credentials
- Added comprehensive unit tests (10 tests)
- Added integration tests with database (5 tests)
- All 15 tests passing

Technical improvements:
- Database-agnostic design using Repository Pattern
- Secure password hashing with bcrypt
- Proper separation of concerns across layers
- Type hints throughout codebase
- Comprehensive test coverage
2025-10-18 00:20:07 -05:00
PeninsulaInd 70b9de20b4 feat: Complete Story 1.1 - Project Initialization & Configuration
- Create monorepo directory structure as defined in architecture
- Initialize Python project with core dependencies (FastAPI, SQLAlchemy, Click, Pydantic)
- Add requirements.txt with all necessary libraries
- Create env.example with placeholders for all cloud provider secrets
- Implement master.config.json with comprehensive configuration
- Add Pydantic-based configuration loading and validation
- Create basic CLI framework with health check and config commands
- Set up main.py as CLI entry point
- Organize all modules according to source tree specification

This completes the foundational infrastructure for Epic 1: Foundation & Core Services.
2025-10-17 23:42:16 -05:00