feat(runner): pass sceneInfoJson to Rust CLI for enhanced template rendering
This commit is contained in:
@@ -176,7 +176,7 @@ async function handleGenerate(req, res) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { sourceDir, sceneId, sceneName, sceneKind, targetUrl, outputRoot, lessons } = body;
|
||||
const { sourceDir, sceneId, sceneName, sceneKind, targetUrl, outputRoot, lessons, sceneInfoJson } = body;
|
||||
if (!sourceDir || !sceneId || !sceneName || !outputRoot) {
|
||||
res.writeHead(400, { "Content-Type": "application/json" });
|
||||
res.end(
|
||||
@@ -192,7 +192,7 @@ async function handleGenerate(req, res) {
|
||||
|
||||
try {
|
||||
await runGenerator(
|
||||
{ sourceDir, sceneId, sceneName, sceneKind, targetUrl, outputRoot, lessons },
|
||||
{ sourceDir, sceneId, sceneName, sceneKind, targetUrl, outputRoot, lessons, sceneInfoJson },
|
||||
sseWriter,
|
||||
config.projectRoot
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user