Part of #1 (open-core architecture). ## Goal Provide a single programmatic entry point for running the marketing graph so both the CLI and a future hosted API share the same code path. ## Scope - Add `core/run.py` with something like: - `run_agent(message: str, *, verbose: bool = False) -> str` - optional thread/history support for multi-turn chat - Refactor `main.py` to call `core.run` instead of invoking the graph directly - Keep CLI UX (Rich panels, banners) in `main.py` ## Acceptance criteria - [ ] `python main.py` behavior unchanged - [ ] `run_agent()` callable from tests without Rich/console side effects - [ ] Graph construction stays lazy/cached as today ## Future use Hosted FastAPI/Next.js backend will call `run_agent()` per request.
Activity
OkiriGabriel commentedon Jul 30, 2026
Fixed in PR #19 — core/run.py with run_agent(); main.py refactored.