Add GitHub ingestion - pull content from repos as source material

- GitHubIngestor class to fetch repo contents
- Support for .md, .txt, .notes, .draft files
- Method to ingest from GitHub directly into orchestrator
- Export GitHubIngestor in __init__.py

Usage:
    orch = OpusOrchestrator(book_type='fiction', genre='memoir')
    content = await orch.ingest_from_github('mrhavens/my-notes')
    await orch.run()
This commit is contained in:
2026-03-13 00:40:47 +00:00
parent 41e5dac31f
commit 9eee1ac1e7
5 changed files with 358 additions and 8 deletions
+2 -8
View File
@@ -1,13 +1,6 @@
"""Main Opus Orchestrator - Snowflake Method Implementation with Multiple Frameworks.
Full pipeline supporting multiple story frameworks:
- Snowflake Method (fractal expansion)
- Three-Act Structure
- Save the Cat (Blake Snyder)
- Hero's Journey (Joseph Campbell)
- Story Circle (Dan Harmon)
- The 7-Point Plot (The Pantone)
- Fichtean Curve
Full pipeline supporting multiple story frameworks and GitHub ingestion.
"""
import asyncio
@@ -52,6 +45,7 @@ from opus_orchestrator.schemas import (
RawContent,
)
from opus_orchestrator.state import OpusState
from opus_orchestrator.utils.github_ingest import GitHubIngestor
class OpusOrchestrator: