Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -41,9 +41,9 @@ app.post("/api/ai-build", async (req, res) => {
|
|
| 41 |
if (hierarchyContext) {
|
| 42 |
console.log(`🌳 HIERARCHY [${hierarchyContext.rootName}]:`);
|
| 43 |
// Limit log output so terminal doesn't flood
|
| 44 |
-
const treePreview = hierarchyContext.tree.split('\n').slice(0,
|
| 45 |
console.log(treePreview);
|
| 46 |
-
console.log("... (and more)");
|
| 47 |
return res.json({ success: true, message: `Scanned ${hierarchyContext.rootName}.` });
|
| 48 |
}
|
| 49 |
|
|
@@ -69,7 +69,7 @@ app.post("/api/ai-build", async (req, res) => {
|
|
| 69 |
console.log(" 👉 Asking to scan ServerScriptService...");
|
| 70 |
return res.json({
|
| 71 |
action: "read_hierarchy",
|
| 72 |
-
|
| 73 |
});
|
| 74 |
}
|
| 75 |
|
|
|
|
| 41 |
if (hierarchyContext) {
|
| 42 |
console.log(`🌳 HIERARCHY [${hierarchyContext.rootName}]:`);
|
| 43 |
// Limit log output so terminal doesn't flood
|
| 44 |
+
const treePreview = hierarchyContext.tree.split('\n').slice(0, 200).join('\n');
|
| 45 |
console.log(treePreview);
|
| 46 |
+
//console.log("... (and more)");
|
| 47 |
return res.json({ success: true, message: `Scanned ${hierarchyContext.rootName}.` });
|
| 48 |
}
|
| 49 |
|
|
|
|
| 69 |
console.log(" 👉 Asking to scan ServerScriptService...");
|
| 70 |
return res.json({
|
| 71 |
action: "read_hierarchy",
|
| 72 |
+
// targetName: "ServerScriptService"
|
| 73 |
});
|
| 74 |
}
|
| 75 |
|