chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -28,10 +28,7 @@ export async function maybeRepairUiProtocolFreshness(
]);
if (schemaStats && !uiStats) {
note(
["- Control UI assets are missing.", "- Run: pnpm ui:build"].join("\n"),
"UI",
);
note(["- Control UI assets are missing.", "- Run: pnpm ui:build"].join("\n"), "UI");
// In slim/docker environments we may not have the UI source tree. Trying
// to build would fail (and spam logs), so skip the interactive repair.
@@ -50,14 +47,11 @@ export async function maybeRepairUiProtocolFreshness(
if (shouldRepair) {
note("Building Control UI assets... (this may take a moment)", "UI");
const uiScriptPath = path.join(root, "scripts/ui.js");
const buildResult = await runCommandWithTimeout(
[process.execPath, uiScriptPath, "build"],
{
cwd: root,
timeoutMs: 120_000,
env: { ...process.env, FORCE_COLOR: "1" },
},
);
const buildResult = await runCommandWithTimeout([process.execPath, uiScriptPath, "build"], {
cwd: root,
timeoutMs: 120_000,
env: { ...process.env, FORCE_COLOR: "1" },
});
if (buildResult.code === 0) {
note("UI build complete.", "UI");
} else {
@@ -102,8 +96,7 @@ export async function maybeRepairUiProtocolFreshness(
);
const shouldRepair = await prompter.confirmAggressive({
message:
"Rebuild UI now? (Detected protocol mismatch requiring update)",
message: "Rebuild UI now? (Detected protocol mismatch requiring update)",
initialValue: true,
});