chore: tidy agent event streaming types

This commit is contained in:
Peter Steinberger committed 2025-12-09 00:59:56 +01:00
1 parent 8e8e695db9
commit 34d2527606
5 files changed
+27 -15

No files matched your search

+2 -2
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" },