fix(profiles): bind routing receipts and harden review paths

This commit is contained in:
haelyra
2026-09-27 18:01:40 -04:00
parent a9e3ecb77f
commit befde0d2cd
11 changed files with 99 additions and 18 deletions
+4
View File
@@ -43,6 +43,10 @@ function parseFlags(argv) {
flags[arg.slice(2).replace(/-([a-z])/g, (_, c) => c.toUpperCase())] = argv[index += 1];
} else throw new Error(`Unknown flag: ${arg}`);
}
if (!/^[1-9][0-9]*$/.test(String(flags.batch)) || !Number.isSafeInteger(Number(flags.batch))) {
throw new Error('--batch must be a positive integer');
}
flags.batch = Number(flags.batch);
return flags;
}