Skip to content

Commit fab0559

Browse files
Merge pull request #21 from foundersandcoders/theia/feat/continue-session-from-xml
Implement Theia Content Management Workflow
2 parents f5f0e5c + 6f5ece6 commit fab0559

File tree

25 files changed

+2572
-133
lines changed

25 files changed

+2572
-133
lines changed

README.md

Lines changed: 58 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,28 @@ An AI-powered curriculum generation tool for peer-led learning cohorts. Rhea use
66

77
## What Rhea Does
88

9-
Rhea contains three flows for generating curriculum materials
9+
Rhea contains five workflows for curriculum generation and management:
1010

11-
**Rhea** | **Themis** | **Tethys** | **Metis**
12-
:-------:|:----------:|:----------:|:--------:
13-
![Rhea](static/icon.png) | ![Themis](static/themis/icon.png) | ![Tethys](static/tethys/icon.png) | ![Metis](static/metis/icon.png)
11+
**Rhea** | **Theia** | **Themis** | **Tethys** | **Metis**
12+
:-------:|:---------:|:----------:|:----------:|:---------:
13+
![Rhea](static/icon.png) | ![Theia](static/theia/icon.png) | ![Themis](static/themis/icon.png) | ![Tethys](static/tethys/icon.png) | ![Metis](static/metis/icon.png)
1414

15-
<details><summary><strong>Metis:</strong> standalone module specifications</summary>
15+
<details><summary><strong>Theia:</strong> content management and export</summary>
1616
<ul>
17-
- Learning objectives and module overview
18-
- Detailed project briefs with examples and success criteria
19-
- Research topics with guidance for learners
20-
- Additional skills categorized by importance
21-
- Project "twists" to add interesting challenges
17+
- Upload previously generated course JSON files
18+
- Resume workflows from where you left off
19+
- Export to Markdown, HTML, or JSON formats
20+
- Configurable detail levels and section selection
21+
- Round-trip capability: export → upload → continue
22+
</ul>
23+
</details>
24+
25+
<details><summary><strong>Themis:</strong> complete multi-week courses</summary>
26+
<ul>
27+
- Thematic arcs organizing related modules
28+
- Learning progression across modules
29+
- Course-level narratives and structure
30+
- Individual module generation (coming soon)
2231
</ul>
2332
</details>
2433

@@ -30,12 +39,13 @@ Rhea contains three flows for generating curriculum materials
3039
</ul>
3140
</details>
3241

33-
<details><summary><strong>Themis:</strong> complete multi-week courses</summary>
42+
<details><summary><strong>Metis:</strong> standalone module specifications</summary>
3443
<ul>
35-
- Thematic arcs organizing related modules
36-
- Learning progression across modules
37-
- Course-level narratives and structure
38-
- Individual module generation (coming soon)
44+
- Learning objectives and module overview
45+
- Detailed project briefs with examples and success criteria
46+
- Research topics with guidance for learners
47+
- Additional skills categorized by importance
48+
- Project "twists" to add interesting challenges
3949
</ul>
4050
</details>
4151

@@ -87,18 +97,18 @@ Open **http://localhost:5173** to start using Rhea.
8797

8898
<details><summary>📝 Change Tracking & Provenance</summary>
8999
Every generated module includes comprehensive change tracking to support the **cascade pattern** - where AI-generated modules are updated iteratively whilst maintaining human oversight:
90-
100+
91101
- **Automatic Changelog**: Documents what changed, why, and with what confidence level
92102
- **Confidence Scoring**: High/medium/low confidence flags help reviewers prioritize
93103
- **Research Citations**: Web research sources automatically cited
94104
- **Provenance Tracking**: Shows when generated, by which model, flags sections needing review
95-
105+
96106
This enables curriculum councils to:
97107
- Quickly identify what's been updated since last version
98108
- Focus review time on low-confidence changes
99109
- Understand rationale behind AI-proposed updates
100110
- Track sections needing human review
101-
111+
102112
See [Changelog Schema Design](/docs/dev/work-records/changelog-schema-design.md) for technical details.
103113
</details>
104114

@@ -108,7 +118,7 @@ Open **http://localhost:5173** to start using Rhea.
108118
- Update recommendations based on industry trends
109119
- Search trusted domains: vendor docs, GitHub, Stack Overflow, academic sources
110120
- Cite sources for transparency
111-
121+
112122
**This is the core value** - without research, you're just reformatting existing content.
113123
</details>
114124

@@ -120,24 +130,30 @@ Open **http://localhost:5173** to start using Rhea.
120130
- Automatic retry (up to 3 attempts) if validation fails
121131
</details>
122132

123-
<details><summary><strong>📤 Theia:</strong> Export & Preview</summary>
124-
Export generated content in human-readable formats:
125-
- **Multiple formats**: Markdown, HTML (PDF planned)
133+
<details><summary><strong>📤 Theia:</strong> Content Management & Export</summary>
134+
Manage previously generated content and export in human-readable formats:
135+
- **Upload & Resume**: Upload JSON course files to continue workflows in Themis
136+
- **Round-trip capability**: Export → upload → continue working seamlessly
137+
- **Multiple formats**: Markdown, HTML, JSON (PDF planned)
126138
- **Flexible detail levels**: Minimal, summary, detailed, or complete
127139
- **Selective exports**: Choose specific sections to export
128140
- **Course or module exports**: Works with both Metis and Themis outputs
129141
- **Table of contents**: Optional navigation for longer exports
130-
131-
Export at any stage - preview course structures before module generation, or export individual modules after completion.
142+
- **Drag-and-drop interface**: Easy file upload with validation
143+
144+
Export at any stage, then re-upload to continue work later. Upload existing course structures to review, refine, or generate additional modules.
132145
</details>
133146

134147
### 🎨 Workflows
135148

136-
<details><summary><strong>Metis:</strong> Quick standalone modules</summary>
137-
1. Upload XML inputs (projects, skills, research)
138-
2. Provide structured context
139-
3. Generate with optional research
140-
4. Export preview or download XML specification
149+
<details><summary><strong>Theia:</strong> Manage and export content</summary>
150+
1. Upload previously generated course JSON files
151+
2. View uploaded course structure
152+
3. Choose action:
153+
- Continue in Themis to refine or generate modules
154+
- Export to human-readable formats (Markdown, HTML)
155+
4. Configure export settings (detail level, sections, format)
156+
5. Download formatted content
141157
</details>
142158

143159
<details><summary><strong>Themis:</strong> Complete multi-week courses</summary>
@@ -146,10 +162,17 @@ Open **http://localhost:5173** to start using Rhea.
146162
3. Organize modules within arcs
147163
4. AI generates detailed structure
148164
5. Review and refine
149-
6. Export course overview or structure
165+
6. Export course overview or structure (JSON for re-upload)
150166
7. Generate individual modules (coming soon)
151167
</details>
152168

169+
<details><summary><strong>Metis:</strong> Quick standalone modules</summary>
170+
1. Upload XML inputs (projects, skills, research)
171+
2. Provide structured context
172+
3. Generate with optional research
173+
4. Export preview or download XML specification
174+
</details>
175+
153176
---
154177

155178
## Documentation
@@ -205,7 +228,7 @@ Metis accepts XML files for module inputs. Each file must have a specific root e
205228
</Projects>
206229
</pre>
207230
<p>
208-
<strong>Minimal valid:</strong>
231+
<strong>Minimal valid:</strong>
209232
<pre><Projects></Projects></pre>
210233
</p>
211234
</details>
@@ -224,9 +247,9 @@ Metis accepts XML files for module inputs. Each file must have a specific root e
224247
</AdditionalSkills>
225248
</pre>
226249
<p>
227-
<strong>Minimal valid:</strong>
228-
<pre><Skills></Skills></pre>
229-
or
250+
<strong>Minimal valid:</strong>
251+
<pre><Skills></Skills></pre>
252+
or
230253
<pre><AdditionalSkills></AdditionalSkills></pre>
231254
</p>
232255
</details>
@@ -243,7 +266,7 @@ Metis accepts XML files for module inputs. Each file must have a specific root e
243266
</ResearchTopics>
244267
</pre>
245268
<p>
246-
<strong>Minimal valid:</strong>
269+
<strong>Minimal valid:</strong>
247270
<pre><ResearchTopics></ResearchTopics></pre>
248271
</p>
249272
</details>details>

docs/About-Rhea.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,15 @@ Both workflows enforce rigour through structured inputs. No rambling chat – cl
7777
- **Tethys arc management**: Standalone arc creation and editing between course and module levels
7878
- **Diff views**: Side-by-side comparison for reviewing AI-proposed updates
7979
- **Provenance tracking UI**: Visual representation of change history and confidence levels
80-
- **Export/preview (Theia)**: Human-readable formats (Markdown, HTML, PDF) at various detail levels
80+
- **Module XML upload in Theia**: Currently supports JSON course upload; module XML upload planned for Q1 2026
8181

82-
The core intelligence is working. Research, generation, validation – all functional. The gap is workflow completeness and review tooling.
82+
**Recently Completed:**
83+
84+
- **Theia content management** (Oct 2025): Upload/resume workflows, JSON export, round-trip capability
85+
- **Themis arc-based structure** (Oct 2025): Six-step workflow with thematic organizational layer
86+
- **Architectural refactoring** (Oct 2025): Factories, utilities, centralized configurations
87+
88+
The core intelligence is working. Research, generation, validation – all functional. Theia provides content management and export. The gap is completing Themis module generation and review tooling.
8389

8490
## Why This Approach Is Actually Clever
8591

docs/dev/Technical-Overview.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,32 @@ pedagogue/
7777
- Prompt: `src/lib/factories/prompts/themisPromptFactory.ts`
7878
- Components: `src/lib/components/themis/`
7979

80-
### Content Exporter (Theia)
80+
### Content Manager & Exporter (Theia)
8181

82-
**Purpose:** Export generated content in human-readable formats
82+
**Purpose:** Upload, manage, and export generated content
8383

8484
**Features:**
85-
- Export modules or courses at any generation stage
86-
- Multiple format support: Markdown, HTML (PDF planned)
87-
- Detail level control: minimal, summary, detailed, complete
88-
- Selective section exports
89-
- Automatic table of contents generation
85+
- **Upload & Resume:**
86+
- Upload JSON course files to continue Themis workflows
87+
- Comprehensive validation with clear error messages
88+
- Drag-and-drop interface with manual file selection
89+
- Auto-redirect to Themis on successful upload
90+
- **Export:**
91+
- Export modules or courses at any generation stage
92+
- Multiple formats: Markdown, HTML, JSON (PDF planned)
93+
- Detail level control: minimal, summary, detailed, complete
94+
- Selective section exports
95+
- Automatic table of contents generation
96+
- **Round-trip capability:** Export JSON → upload → continue working
9097

9198
**Implementation:**
99+
- Route: `src/routes/theia/+page.svelte`
92100
- Components: `src/lib/components/theia/`
101+
- `CourseStructureUpload.svelte` - Upload interface with validation
102+
- `ExportConfigModal.svelte` - Export configuration and preview
103+
- `ExportButton.svelte` - Export trigger with variants
93104
- Service: `src/lib/services/theiaService.ts`
105+
- Validation: `src/lib/utils/theia/courseValidator.ts`
94106
- Types: `src/lib/types/theia.ts`
95107
- Formatters: `src/lib/utils/theia/formatters/`
96108
- Content mapping: `src/lib/utils/theia/contentMapper.ts`

0 commit comments

Comments
 (0)