darkwing: row 100 round 1 packet, git socket hardening and refusal tests on 8e0fbca4 (#1594)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-13 11:55:33 -05:00
co-authored by Claude Opus 5.5
parent a50c9d23ae
commit ac430b5cfb
7 changed files with 1276 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
// node mut.mjs <file> <from> <to>: replace exactly one occurrence, else exit 3.
import { readFileSync, writeFileSync } from 'node:fs';
const [f, a, b] = process.argv.slice(2);
const s = readFileSync(f, 'utf8'); const n = s.split(a).length - 1;
if (n !== 1) { console.error(`matches=${n}`); process.exit(3); }
writeFileSync(f, s.replace(a, () => b));