feat: HLS streaming, transcripts, agent course generation & landing-page course previews (#663)

New features:
- HLS video encoding/streaming (hls routes, hls-encoder) and a media
  transcripts pipeline (transcripts route + media-transcript queries)
- AI assistant chat vs. run model: agent-course-generation worker/queue,
  run-monitor pane, chat-changes card, content ask-ai bar
- Per-theme course-page previews across org landing-page themes (bold,
  classic, corporate, editorial, etc.) with a shared course token/component set
- View-as-student mode and login-link / link-invite invite flows

Refactor:
- Extract packages/core consolidating config (env, storage, dashboard-url),
  services and utils previously duplicated under apps/api/src/config
- Remove legacy agent service modules (chat-tools, chat-context,
  context-window, document, fetch-url, lesson-content)
- Relax Cross-Origin-Resource-Policy to allow cross-origin media embedding
- Add format script to tenant-router so turbo run format covers it
This commit is contained in:
Rotimi Best
2026-06-07 18:43:05 +01:00
committed by GitHub
parent a2e70779a0
commit d5b07d356e
496 changed files with 19050 additions and 8312 deletions
@@ -1,5 +1,13 @@
<script module lang="ts">
let pending: Promise<typeof import('@cio/ui/base/chart')> | null = null;
function loadChart() {
pending ??= import('@cio/ui/base/chart');
return pending;
}
</script>
<script lang="ts">
import * as Chart from '@cio/ui/base/chart';
import type * as Chart from '@cio/ui/base/chart';
import { t } from '$lib/utils/functions/translations';
import type { LoginActivityData } from '$features/org/utils/types';
@@ -40,9 +48,11 @@
<div class="flex h-full flex-col justify-center">
{#if hasData}
<Chart.ChartContainer class="h-[260px] w-full" config={chartConfig}>
<Chart.BarChart {data} x="day" axis="x" {series} />
</Chart.ChartContainer>
{#await loadChart() then C}
<C.ChartContainer class="h-[260px] w-full" config={chartConfig}>
<C.BarChart {data} x="day" axis="x" {series} />
</C.ChartContainer>
{/await}
{:else}
<div class="ui:text-muted-foreground flex h-[260px] items-center justify-center text-sm">
{$t('dashboard.login_activity_no_data')}