mirror of
https://github.com/block/buzz.git
synced 2026-11-02 23:41:08 +00:00
Route ACP observer traffic over relay (#421)
Signed-off-by: Tyler Longwell <tlongwell@squareup.com> Co-authored-by: tlongwell-block <109685178+tlongwell-block@users.noreply.github.com> Co-authored-by: Tyler Longwell <tlongwell@squareup.com>
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { invokeTauri } from "@/shared/api/tauri";
|
||||
import { sendAgentObserverControl } from "@/shared/api/observerRelay";
|
||||
import type { CancelManagedAgentTurnResult } from "@/shared/api/types";
|
||||
|
||||
export async function cancelManagedAgentTurn(
|
||||
pubkey: string,
|
||||
channelId: string,
|
||||
): Promise<CancelManagedAgentTurnResult> {
|
||||
return invokeTauri<CancelManagedAgentTurnResult>(
|
||||
"cancel_managed_agent_turn",
|
||||
{ pubkey, channelId },
|
||||
);
|
||||
await sendAgentObserverControl(pubkey, {
|
||||
type: "cancel_turn",
|
||||
channelId,
|
||||
});
|
||||
return { status: "sent" };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user