-
Notifications
You must be signed in to change notification settings - Fork 0
Pattern Refactor Sources
Chris edited this page Apr 3, 2026
·
1 revision
Agents and implementers should treat these documents as the requirements baseline for the design-pattern refactor and UI roadmap.
| Source | Location | Role |
|---|---|---|
| Agent safety / audit rules | AGENTS.md at repo root | Non-negotiable: datetime, FFmpeg constants.py, XMLTV format, async DB, scheduler loops, etc. All pattern code must stay compatible. |
| Pattern task order & constraints |
EXStreamTV-Cursor-Pattern-Prompt.md (maintain a local copy; e.g. under ~/Downloads/ or commit a snapshot under docs/architecture/) |
Tasks 1–20, Section 1 absolute constraints, file tree, verification greps, patterns-implemented.mdc content. |
| UI / React roadmap |
EXStreamTV-UI-Architecture.md (same as above) |
Separate from backend pattern tasks: React shell, v1 API shape, ErsatzTV removal. Do not block backend Tasks 1–20 on UI work unless explicitly combined. |
- Cursor rule: .cursor/rules/patterns-implemented.mdc
- Implemented modules:
exstreamtv/patterns/ - Stream facade:
exstreamtv/services/stream_service.py
If the Downloads copies drift, diff against this repo’s docs/LESSONS_LEARNED.md and AGENTS.md before large merges.
If exstreamtv.db already has tables but alembic_version is empty, a blind alembic upgrade head will fail (e.g. “table already exists”). Stamp the revision that matches the current schema, then upgrade: e.g. alembic stamp 005 then alembic upgrade head (adds schedule_history / 006). See migration exstreamtv/database/migrations/versions/006_add_schedule_history.py.
Getting Started
Guides
- AI-Setup
- Channel-Creation-Guide
- Local-Media
- Hardware-Transcoding
- macOS-App-Guide
- Navigation-Guide
- Streaming-Stability
- Advanced-Scheduling
Reference
- API-Reference
- System-Design
- Architecture-Diagrams
- Pattern-Refactor-Sources
- ADR-Channel-Manager-Database
- EXStreamTV-UI-Architecture
- Architecture
- Streaming-Internals
- HDHomeRun-Emulation
- Metadata-And-XMLTV
- AI-Agent-And-Containment
- Restart-Safety-Model
- Observability
- Troubleshooting
- Log-Interpretation
- Tunarr-DizqueTV-Integration
- Distribution
- Build-Progress
Operations
Changelog & Migration