feat: Integrated SQLite database and project history into B2B Marketing Assistant

- market_db_manager.py: Made DB_PATH configurable via environment variable.

- Dockerfile.b2b: Included market_db_manager.py in the B2B container image.

- docker-compose.yml: Configured separate DB paths and volumes for Market Intel and B2B Assistant.

- B2B Server: Added API routes for project management (list, load, save, delete).

- B2B UI: Implemented auto-save and a 'Project History' modal for loading past runs.
This commit is contained in:
2025-12-29 16:05:46 +00:00
parent fbe7b7595a
commit 03e5ff546e
6 changed files with 296 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ import os
import uuid
from datetime import datetime
DB_PATH = "/app/market_intelligence.db"
DB_PATH = os.environ.get("DB_PATH", "/app/market_intelligence.db")
def get_db_connection():
conn = sqlite3.connect(DB_PATH)