feat(studio): recover matching Nitro sources and persist import phases

This commit is contained in:
2026-09-11 10:22:06 +02:00
parent 00e33623f7
commit 13bd3695cb
45 changed files with 903 additions and 28 deletions
+3 -1
View File
@@ -6,7 +6,9 @@ import { importRoot, validJobId } from "./furni-job-store";
export function validateFurnitureAttachment(buffer: Buffer, classname: string) {
if (buffer.length > 50 * 1024 * 1024)
throw Error("Maximum file size is 50 MB");
const parsed = parseNitroBundle(buffer);
const parsed = parseNitroBundle(buffer, {
maxOutputLength: 50 * 1024 * 1024,
});
const base = classname.split("*")[0];
if (
parsed.jsonFileName !== `${base}.json` ||