Commit Graph

5 Commits

Author SHA1 Message Date
mrhavens f55570ceeb fix: Infrastructure - GitHub token, API validation, cost controls
Team 3: Infrastructure & Config

Fixed:
- #4: GitHub Ingestor now works without token for public repos
  - Token is now optional
  - Uses unauthenticated requests (with rate limit warning) when no token
  - Private repos still require token

- #14: Added startup API key validation
  - get_config() now validates API keys at startup
  - Raises clear error if neither OPENAI_API_KEY nor MINIMAX_API_KEY is set
  - Fail-fast instead of silent failures

- #10: Added CostConfig for rate limiting and budget controls
  - max_tokens_per_run: limit tokens per generation
  - max_cost_usd: budget cap in dollars
  - track_usage: enable/disable usage tracking
  - price_per_million_tokens: pricing by model
2026-03-13 18:16:38 +00:00
mrhavens b584e42d65 Fix: Default to MiniMax provider 2026-03-13 09:30:46 +00:00
mrhavens fe1e001878 Implement full Snowflake Method pipeline
- Stage 1: One sentence summary
- Stage 2: One paragraph outline
- Stage 3: Character sheets
- Stage 4: Four-page outline
- Stage 5: Detailed character charts
- Stage 6: Scene list
- Stage 7: Scene descriptions
- Then: Style guide → Write chapters → Critique → Compile

Full pre-writing workflow now wired up.
2026-03-12 19:36:25 +00:00
mrhavens e151cee69f Add MiniMax LLM integration and local .env support
- Add .env to .gitignore (API keys stay local)
- Add LLM client with MiniMax and OpenAI support
- Update config to load from environment variables
- Wire up Architect agent to actually call the LLM
- Add MiniMax API key to local .env file
2026-03-12 18:33:29 +00:00
mrhavens 40378ad65e Initial commit: Opus Orchestrator AI - Full-flow book generation
- LangGraph workflow orchestration
- CrewAI agent crews (Fiction Fortress & Nonfiction Fortress)
- PydanticAI schema validation
- Fiction agents: Architect, Worldsmith, Character Lead, Voice, Editor
- Nonfiction agents: Researcher, Analyst, Writer, Fact-Checker, Editor
- Complete schema definitions for books, chapters, critiques
- Configuration management
- Basic test suite
2026-03-12 17:45:05 +00:00