feat: productionize learning engine and classroom

This commit is contained in:
inman
2026-08-16 21:44:52 +08:00
parent 2d04197f3f
commit ba35adfbfa
124 changed files with 9071 additions and 796 deletions

View File

@@ -0,0 +1,17 @@
export const MAKELORE_PLAYBACK_PROGRESS_EVENT = 'makelore:playback-progress';
export type MakelorePlaybackProgress = {
sceneId: string;
sceneOrder: number;
actionIndex: number | null;
completed: boolean;
};
/** Publish playback detail only inside the verified offline player surface. */
export function emitMakelorePlaybackProgress(detail: MakelorePlaybackProgress): void {
if (typeof window === 'undefined' || !window.__MAKELORE_OFFLINE_PLAYER__) return;
window.dispatchEvent(new CustomEvent<MakelorePlaybackProgress>(
MAKELORE_PLAYBACK_PROGRESS_EVENT,
{ detail },
));
}