refactor: move manual rebuild flow into ui actions controller

This commit is contained in:
Youzini-afk
2026-03-29 17:16:30 +08:00
parent 5edbc4e4be
commit 18897dc6bf
3 changed files with 128 additions and 93 deletions

View File

@@ -4,6 +4,7 @@ import path from "node:path";
import { fileURLToPath } from "node:url";
import vm from "node:vm";
import { onManualExtractController } from "../extraction-controller.js";
import { onRebuildController } from "../ui-actions-controller.js";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const indexPath = path.resolve(__dirname, "../index.js");
@@ -240,6 +241,7 @@ async function testManualRebuildSetsTerminalRuntimeStatus() {
},
saveGraphToChat() {},
restoreRuntimeUiState() {},
onRebuildController,
result: null,
};
vm.createContext(context);