chore: tidy agent event streaming types

This commit is contained in:
Peter Steinberger
2025-12-09 00:57:19 +01:00
parent 8e8e695db9
commit 34d2527606
5 changed files with 27 additions and 15 deletions

View File

@@ -21,11 +21,11 @@ import {
type SessionEntry,
saveSessionStore,
} from "../config/sessions.js";
import { emitAgentEvent } from "../infra/agent-events.js";
import { runCommandWithTimeout } from "../process/exec.js";
import { defaultRuntime, type RuntimeEnv } from "../runtime.js";
import { normalizeE164 } from "../utils.js";
import { sendViaIpc } from "../web/ipc.js";
import { emitAgentEvent } from "../infra/agent-events.js";
type AgentCommandOpts = {
message: string;
@@ -306,7 +306,7 @@ export async function agentCommand(
},
});
let result;
let result: Awaited<ReturnType<typeof runCommandReply>>;
try {
result = await runCommandReply({
reply: { ...replyCfg, mode: "command" },