Commit Graph

8 Commits

Author SHA1 Message Date
Solaria 51fe18323f Fix CRITICAL issues: timeout config, request validation, streaming (#37, #38, #39) 2026-03-14 09:30:01 +00:00
mrhavens 0f62267806 Fix circular import in __init__.py (#35) 2026-03-14 09:24:31 +00:00
mrhavens b59c265966 fix: Restore missing UploadFile/File imports after merge 2026-03-13 19:05:20 +00:00
mrhavens e05370fc69 feat: Tests and streaming endpoint
Team 5: Features & Polish

Implemented:
- #7: Added comprehensive test suite
  - TestConfig: Configuration validation tests
  - TestSchemas: Pydantic schema validation tests
  - TestFrameworks: Story framework prompt tests
  - TestGitHubIngestor: GitHub ingestion tests
  - TestAgentResponse: Agent response tests
  - TestLLMClient: Mocked LLM client tests

- #8: Added streaming endpoint
  - /generate/stream returns Server-Sent Events
  - Yields progress updates
  - TODO: Full streaming from LangGraph workflow

Not implemented (TODO):
- #13: Monolith file refactoring - Split into separate PR
- #15: Research agent integration - Requires design work
- #16: Nonfiction support - Requires framework expansion
2026-03-13 18:19:39 +00:00
mrhavens 8e92e99205 Fix: Remove hardcoded paths - now fully standalone
- Changed all load_dotenv() calls to use relative path (just load_dotenv())
- No OpenClaw dependencies
- Works anywhere after pip install
2026-03-13 04:34:22 +00:00
mrhavens f946bb3714 Add web UI and S3 upload endpoints
- Web UI: novice-friendly interface at / and /ui
- Upload endpoint: /upload for file uploads
- S3 upload: /upload/s3 for uploading to S3/MinIO
- CLI: opus ui command to start web UI only
- Full HTML/CSS/JS interface with drag-drop, tabs, etc.
2026-03-13 03:55:10 +00:00
mrhavens b89dc444ed Fix: API generate endpoint handling, remove use_autogen param
- Handle dict result properly in /generate endpoint
- Remove use_autogen from API (not supported in run_opus)
- API client now works: tested via CLI with local server
2026-03-13 03:33:42 +00:00
mrhavens 64bea5cae6 Add comprehensive CLI, OpenAPI server, and documentation
CLI Commands:
- generate: Full manuscript generation with full GitHub content
- serve: Start FastAPI server with OpenAPI docs
- ingest: Standalone GitHub ingestion
- frameworks: List all story frameworks
- config: Show configuration
- docs: Show comprehensive docs (terminal/markdown/html)
- api: Export OpenAPI spec

Server:
- FastAPI with /docs, /redoc interactive docs
- /generate, /ingest, /frameworks, /health endpoints
- OpenAPI 3.0 specification

Documentation:
- Terminal, markdown, and HTML formats
- Full API reference
- Framework documentation
- Environment variables guide
- Project structure

Fix: Use full GitHub content as seed (not just 5000 chars)
2026-03-13 03:10:01 +00:00