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

@@ -15,7 +15,7 @@ import { buildAgent, buildSystemPrompt } from '@/lib/agent/runtime/build-agent';
import { buildToolset } from '@/lib/agent/tools/registry';
import { callLLM } from '@/lib/ai/llm';
import { createLogger } from '@/lib/logger';
import type { SceneContext } from '@/lib/agent/tools/regenerate-scene-actions';
import type { SceneContextMap } from '@/lib/agent/runtime/types';
const log = createLogger('MAIC Agent');
@@ -25,13 +25,6 @@ const log = createLogger('MAIC Agent');
// slow models / media-heavy slides aren't terminated mid-stream.
export const maxDuration = 300;
/**
* Scene/stage context map sent by the client.
* Keyed by scene id; the client reads `useStageStore` to build this so the
* server never has to access a (non-existent) server-side scene store.
*/
export type SceneContextMap = Record<string, SceneContext>;
interface AgentEditBody {
message: string;
scene?: { id: string; title: string };