Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -14,7 +14,7 @@ app.use(cors());
|
|
| 14 |
app.use(bodyParser.json({ limit: "50mb" }));
|
| 15 |
|
| 16 |
// Options: 'NONE', 'BUILD_PART', 'FETCH_SCRIPT', 'FETCH_LOGS', 'SCAN_HIERARCHY', 'SCAN_SERVER_SERVICE'
|
| 17 |
-
const DEMO_MODE = '
|
| 18 |
|
| 19 |
app.post("/api/ai-build", async (req, res) => {
|
| 20 |
try {
|
|
@@ -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 |
|
|
|
|
| 14 |
app.use(bodyParser.json({ limit: "50mb" }));
|
| 15 |
|
| 16 |
// Options: 'NONE', 'BUILD_PART', 'FETCH_SCRIPT', 'FETCH_LOGS', 'SCAN_HIERARCHY', 'SCAN_SERVER_SERVICE'
|
| 17 |
+
const DEMO_MODE = 'BUILD_PART';
|
| 18 |
|
| 19 |
app.post("/api/ai-build", async (req, res) => {
|
| 20 |
try {
|
|
|
|
| 69 |
console.log(" 👉 Asking to scan ServerScriptService...");
|
| 70 |
return res.json({
|
| 71 |
action: "read_hierarchy",
|
| 72 |
+
targetName: "ServerScriptService"
|
| 73 |
});
|
| 74 |
}
|
| 75 |
|