import { sendAgentObserverControl } from "@/shared/api/observerRelay"; import type { CancelManagedAgentTurnResult } from "@/shared/api/types"; export async function cancelManagedAgentTurn( pubkey: string, channelId: string, ): Promise { await sendAgentObserverControl(pubkey, { type: "cancel_turn", channelId, }); return { status: "sent" }; }