Update app.js
Browse files
app.js
CHANGED
|
@@ -130,6 +130,12 @@ async function runBackgroundInitialization(projectId, userId, description) {
|
|
| 130 |
try {
|
| 131 |
const pmHistory = [];
|
| 132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
// 1. Generate GDD
|
| 134 |
const gddPrompt = `Create a comprehensive Game Design Document (GDD) for: ${description}`;
|
| 135 |
const gddResult = await AIEngine.callPM(pmHistory, gddPrompt);
|
|
|
|
| 130 |
try {
|
| 131 |
const pmHistory = [];
|
| 132 |
|
| 133 |
+
await StateManager.updateProject(projectId, {
|
| 134 |
+
gdd: "",
|
| 135 |
+
failureCount: 0,
|
| 136 |
+
status: "IDLE"
|
| 137 |
+
});
|
| 138 |
+
|
| 139 |
// 1. Generate GDD
|
| 140 |
const gddPrompt = `Create a comprehensive Game Design Document (GDD) for: ${description}`;
|
| 141 |
const gddResult = await AIEngine.callPM(pmHistory, gddPrompt);
|