fix: repair watchdog dispatch receipt writer output
This commit is contained in:
@@ -48,9 +48,7 @@ function printHelp() {
|
||||
'',
|
||||
'Minimal CLI skeleton for the subagent delivery watchdog.',
|
||||
];
|
||||
process.stdout.write(`${lines.join('
|
||||
')}
|
||||
`);
|
||||
process.stdout.write(`${lines.join('\n')}\n`);
|
||||
}
|
||||
|
||||
function tryReadInput(inputPath) {
|
||||
@@ -116,8 +114,7 @@ function writeDispatchReceiptState(payload) {
|
||||
expectedBy,
|
||||
};
|
||||
|
||||
fs.writeFileSync(statePath, `${JSON.stringify(dispatchRecord, null, 2)}
|
||||
`, 'utf8');
|
||||
fs.writeFileSync(statePath, `${JSON.stringify(dispatchRecord, null, 2)}\n`, 'utf8');
|
||||
|
||||
return {
|
||||
statePath,
|
||||
@@ -160,8 +157,7 @@ function main() {
|
||||
};
|
||||
|
||||
const spacing = args.compact ? 0 : 2;
|
||||
process.stdout.write(`${JSON.stringify(response, null, spacing)}
|
||||
`);
|
||||
process.stdout.write(`${JSON.stringify(response, null, spacing)}\n`);
|
||||
}
|
||||
|
||||
main();
|
||||
|
||||
Reference in New Issue
Block a user