style: fix biome formatting
parent
d8b1a38350
commit
793360c5bb
|
|
@ -268,7 +268,10 @@ export async function runCommandReply(
|
||||||
verboseLog(`Command auto-reply stdout (trimmed): ${trimmed || "<empty>"}`);
|
verboseLog(`Command auto-reply stdout (trimmed): ${trimmed || "<empty>"}`);
|
||||||
const elapsed = Date.now() - started;
|
const elapsed = Date.now() - started;
|
||||||
verboseLog(`Command auto-reply finished in ${elapsed}ms`);
|
verboseLog(`Command auto-reply finished in ${elapsed}ms`);
|
||||||
logger.info({ durationMs: elapsed, agent: agentKind, cwd: reply.cwd }, "command auto-reply finished");
|
logger.info(
|
||||||
|
{ durationMs: elapsed, agent: agentKind, cwd: reply.cwd },
|
||||||
|
"command auto-reply finished",
|
||||||
|
);
|
||||||
if ((code ?? 0) !== 0) {
|
if ((code ?? 0) !== 0) {
|
||||||
console.error(
|
console.error(
|
||||||
`Command auto-reply exited with code ${code ?? "unknown"} (signal: ${signal ?? "none"})`,
|
`Command auto-reply exited with code ${code ?? "unknown"} (signal: ${signal ?? "none"})`,
|
||||||
|
|
@ -359,7 +362,10 @@ export async function runCommandReply(
|
||||||
return { payload, meta };
|
return { payload, meta };
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const elapsed = Date.now() - started;
|
const elapsed = Date.now() - started;
|
||||||
logger.info({ durationMs: elapsed, agent: agentKind, cwd: reply.cwd }, "command auto-reply failed");
|
logger.info(
|
||||||
|
{ durationMs: elapsed, agent: agentKind, cwd: reply.cwd },
|
||||||
|
"command auto-reply failed",
|
||||||
|
);
|
||||||
const anyErr = err as { killed?: boolean; signal?: string };
|
const anyErr = err as { killed?: boolean; signal?: string };
|
||||||
const timeoutHit = anyErr.killed === true || anyErr.signal === "SIGKILL";
|
const timeoutHit = anyErr.killed === true || anyErr.signal === "SIGKILL";
|
||||||
const errorObj = err as { stdout?: string; stderr?: string };
|
const errorObj = err as { stdout?: string; stderr?: string };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue