test(auto-reply): add helper coverage and docs

This commit is contained in:
Peter Steinberger
2025-11-26 02:09:50 +01:00
parent 5c8ce41e12
commit ce5b02a9ad
5 changed files with 387 additions and 17 deletions

View File

@@ -241,7 +241,7 @@ export async function getReplyFromConfig(
if (reply.mode === "command" && reply.command?.length) {
await onReplyStart();
try {
const result = await runCommandReply({
const { payload, meta } = await runCommandReply({
reply,
templatingCtx,
sendSystemOnce,
@@ -252,7 +252,10 @@ export async function getReplyFromConfig(
timeoutSeconds,
commandRunner,
});
return result;
if (meta.claudeMeta && isVerbose()) {
logVerbose(`Claude JSON meta: ${meta.claudeMeta}`);
}
return payload;
} finally {
cleanupTyping();
}