Commit Graph

23 Commits (04f10d6d26f57adb8cf41b83ffa761e9e17aae83)

Author SHA1 Message Date
PeninsulaInd 04f10d6d26 Adds ability to quickly import without CORA- version 1.2 2025-11-03 10:07:35 -06:00
PeninsulaInd de6b97dbc1 Pre-fix for checking for incomplete from openrouter - version 1.1.2 2025-10-31 11:11:28 -05:00
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 b168d33e2d Fixed: auto asks for money_site_url on script run if not provided 2025-10-23 13:27:12 -05:00
PeninsulaInd 26b6e75448 Fixed: throws error early on no money_site_rul set. 2025-10-23 12:53:06 -05:00
PeninsulaInd a8393cdd96 Fixed: Now listens to model selection in job.json file 2025-10-22 15:34:36 -05:00
PeninsulaInd 90b56cf7bf Story 4.5 coded and tested 2025-10-22 14:19:59 -05:00
PeninsulaInd 77356c4191 Story 4.4 - simple check works 2025-10-22 13:46:14 -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 ee573fb948 Story 3.2 written 2025-10-21 10:34:11 -05:00
PeninsulaInd 6a3e65ef7c Story 2.5 kludgy mapping of buckets to real domains 2025-10-20 23:35:55 -05:00
PeninsulaInd 19e1c93358 Resolve merge conflicts - choose newer implementations 2025-10-20 11:43:33 -05:00
PeninsulaInd ef62ecf852 Passed initial test, generates an entire article 2025-10-20 11:35:02 -05:00
PeninsulaInd b6b0acfcb0 Story 2.3 - content generation script nightmare alomst done - pre-fix outline too big issue 2025-10-19 20:29:13 -05:00
PeninsulaInd f73b0700ef Story 2.3 - content generation script finished - fix ci 2025-10-18 22:42:21 -05:00
PeninsulaInd e2afabb56f Story 2.3 - content generation script finished 2025-10-18 22:38:34 -05:00
PeninsulaInd 02dd5a3fa7 Story 2.1 finished 2025-10-18 14:47:19 -05:00
PeninsulaInd da797c21a1 Story 1.6 finished - added sync 2025-10-18 12:24:58 -05:00
PeninsulaInd 4cada9df42 Story 1.6 finished 2025-10-18 11:35:47 -05:00
PeninsulaInd b6e495e9fe feat: Story 1.5 - CLI User Management
- Add CLI commands for user management (add-user, delete-user, list-users)
- Implement admin authentication for all user management commands
- Add password confirmation and deletion safety checks
- Prevent admins from deleting their own accounts
- Create 17 unit tests with mocked dependencies
- Create 18 integration tests with real database
- Add shared db_session fixture in conftest.py
- Update CLI commands to use db_manager for session handling
- Complete story documentation with usage examples

All 35 tests passing. Story 1.5 complete.
2025-10-18 11:13:45 -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