style(agent): apply pinned Prettier output and remove temporary probe

Restore the main branch formatter unchanged and use byte-exact Prettier 3.9.6 formatting on the World Packet parity regressions.
This commit is contained in:
Kevin Rajan committed 2026-10-17 05:12:15 -05:00
1 parent f4a4df5044
commit e4f526415d
2 files changed
+73 -96

No files matched your search

-14
View File
@@ -141,20 +141,6 @@ if (import.meta.url === invoked) {
if (mode === '--check' && result.changed.length) {
for (const name of result.changed)
console.error(`Needs formatting: ${name}`);
// Temporary formatter output probe for the existing #880 test only.
if (result.changed.includes('src/agent/worldPacket.test.mjs')) {
const file = path.join(
fileURLToPath(new URL('../', import.meta.url)),
'src/agent/worldPacket.test.mjs',
);
const formatted = await prettier.format(await readFile(file, 'utf8'), {
...(await prettier.resolveConfig(file)),
filepath: file,
});
const encoded = Buffer.from(formatted).toString('base64');
for (let offset = 0; offset < encoded.length; offset += 1000)
console.error(`PRETTIER-DATA|src/agent/worldPacket.test.mjs|${offset}|${encoded.slice(offset, offset + 1000)}`);
}
process.exitCode = 1;
} else {
console.log(