feat: productionize learning engine and classroom

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

No files matched your search

@@ -0,0 +1,11 @@
import { LEARNING_ENGINE_API_VERSION, LEARNING_ENGINE_SERVICE } from '@/lib/makelore-runtime/health';
export const dynamic = 'force-dynamic';
export function GET() {
return Response.json({
service: LEARNING_ENGINE_SERVICE,
apiVersion: LEARNING_ENGINE_API_VERSION,
status: 'ok',
});
}
@@ -0,0 +1,23 @@
import {
inspectLearningReadiness,
LEARNING_ENGINE_API_VERSION,
LEARNING_ENGINE_SERVICE,
} from '@/lib/makelore-runtime/health';
export const dynamic = 'force-dynamic';
export async function GET() {
const readiness = await inspectLearningReadiness();
return Response.json(
{
service: LEARNING_ENGINE_SERVICE,
apiVersion: LEARNING_ENGINE_API_VERSION,
status: readiness.ready ? 'ready' : 'not_ready',
checks: readiness.checks,
},
{
status: readiness.ready ? 200 : 503,
headers: { 'Cache-Control': 'no-store' },
},
);
}