From 7a11bb6f3101e942665beb100746fb7e0879a2e5 Mon Sep 17 00:00:00 2001 From: Raj bhoyar <85496077+rajbhoyar729@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:08:25 +0530 Subject: [PATCH] feat: Add agent default configuration schema and implement message envelope formatting. --- scripts/format-staged.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/format-staged.js b/scripts/format-staged.js index 0ad2d7dd7..4fcfbfd81 100644 --- a/scripts/format-staged.js +++ b/scripts/format-staged.js @@ -61,7 +61,11 @@ function resolveOxfmtCommand(repoRoot) { const binName = process.platform === "win32" ? "oxfmt.cmd" : "oxfmt"; const local = path.join(repoRoot, "node_modules", ".bin", binName); if (fs.existsSync(local)) { - return { command: local, args: [] }; + // Verify it works (catch ERR_UNKNOWN_FILE_EXTENSION on Windows) + const result = spawnSync(local, ["--version"], { stdio: "ignore", shell: true }); + if (result.status === 0) { + return { command: local, args: [] }; + } } const result = spawnSync("oxfmt", ["--version"], { stdio: "ignore" });