refactor: remove legacy agent update RPCs

This commit is contained in:
Mohamed Boudra
2026-02-17 21:16:31 +07:00
parent 0dc944df3a
commit 515cb0a777
14 changed files with 295 additions and 206 deletions

View File

@@ -49,7 +49,9 @@ async function runVoiceRoundTrip(params: {
}): Promise<RoundTripResult> {
const client = new DaemonClient({ url: `${params.daemonUrl}/ws` });
await client.connect();
client.subscribeAgentUpdates({ subscriptionId: `voice-e2e-${randomUUID()}` });
await client.fetchAgents({
subscribe: { subscriptionId: `voice-e2e-${randomUUID()}` },
});
const mode = await client.setVoiceMode(true, params.voiceAgentId);
if (!mode.accepted) {

View File

@@ -48,7 +48,7 @@ async function main(): Promise<void> {
try {
await client.connect();
client.subscribeAgentUpdates({ subscriptionId: "voice-debug" });
await client.fetchAgents({ subscribe: { subscriptionId: "voice-debug" } });
const voiceCwd = mkdtempSync(path.join(tmpdir(), "voice-roundtrip-debug-"));
const voiceAgent = await client.createAgent({