惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
J
Java Code Geeks
博客园 - 聂微东
B
Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
腾讯CDC
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
美团技术团队
博客园 - Franky
Google DeepMind News
Google DeepMind News
V
V2EX
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
The Cloudflare Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat(plugins): give google meet realtime agent consult · ...
steipete · 2026-04-24 · via Recent Commits to openclaw:main

@@ -22,6 +22,7 @@ import { buildMeetDtmfSequence, normalizeDialInNumber } from "./src/transports/t

22222323

const voiceCallMocks = vi.hoisted(() => ({

2424

joinMeetViaVoiceCallGateway: vi.fn(async () => ({ callId: "call-1", dtmfSent: true })),

25+

endMeetVoiceCallGatewayCall: vi.fn(async () => {}),

2526

}));

26272728

const fetchGuardMocks = vi.hoisted(() => ({

@@ -45,6 +46,7 @@ vi.mock("openclaw/plugin-sdk/ssrf-runtime", () => ({

45464647

vi.mock("./src/voice-call-gateway.js", () => ({

4748

joinMeetViaVoiceCallGateway: voiceCallMocks.joinMeetViaVoiceCallGateway,

49+

endMeetVoiceCallGatewayCall: voiceCallMocks.endMeetVoiceCallGatewayCall,

4850

}));

49515052

const noopLogger = {

@@ -168,6 +170,24 @@ describe("google-meet plugin", () => {

168170

});

169171

});

170172173+

it("uses a provider-safe flat tool parameter schema", () => {

174+

const { tools } = setup();

175+

const tool = tools[0] as { parameters: unknown };

176+177+

expect(JSON.stringify(tool.parameters)).not.toContain("anyOf");

178+

expect(tool.parameters).toMatchObject({

179+

type: "object",

180+

properties: {

181+

action: {

182+

type: "string",

183+

enum: ["join", "status", "setup_status", "resolve_space", "preflight", "leave"],

184+

},

185+

transport: { type: "string", enum: ["chrome", "twilio"] },

186+

mode: { type: "string", enum: ["realtime", "transcribe"] },

187+

},

188+

});

189+

});

190+171191

it("normalizes Meet URLs, codes, and space names for the Meet API", () => {

172192

expect(normalizeGoogleMeetSpaceName("spaces/abc-defg-hij")).toBe("spaces/abc-defg-hij");

173193

expect(normalizeGoogleMeetSpaceName("abc-defg-hij")).toBe("spaces/abc-defg-hij");

@@ -323,6 +343,26 @@ describe("google-meet plugin", () => {

323343

});

324344

});

325345346+

it("hangs up delegated Twilio calls on leave", async () => {

347+

const { tools } = setup({ defaultTransport: "twilio" });

348+

const tool = tools[0] as {

349+

execute: (id: string, params: unknown) => Promise<{ details: { session: { id: string } } }>;

350+

};

351+

const joined = await tool.execute("id", {

352+

action: "join",

353+

url: "https://meet.google.com/abc-defg-hij",

354+

dialInNumber: "+15551234567",

355+

pin: "123456",

356+

});

357+358+

await tool.execute("id", { action: "leave", sessionId: joined.details.session.id });

359+360+

expect(voiceCallMocks.endMeetVoiceCallGatewayCall).toHaveBeenCalledWith({

361+

config: expect.objectContaining({ defaultTransport: "twilio" }),

362+

callId: "call-1",

363+

});

364+

});

365+326366

it("reports setup status through the tool", async () => {

327367

const { tools } = setup({

328368

chrome: {

@@ -415,6 +455,13 @@ describe("google-meet plugin", () => {

415455

| {

416456

onAudio: (audio: Buffer) => void;

417457

onMark?: (markName: string) => void;

458+

onToolCall?: (event: {

459+

itemId: string;

460+

callId: string;

461+

name: string;

462+

args: unknown;

463+

}) => void;

464+

tools?: unknown[];

418465

}

419466

| undefined;

420467

const sendAudio = vi.fn();

@@ -464,12 +511,33 @@ describe("google-meet plugin", () => {

464511

const inputProcess = makeProcess({ stdout: inputStdout, stdin: null });

465512

const outputProcess = makeProcess({ stdin: outputStdin, stdout: null });

466513

const spawnMock = vi.fn().mockReturnValueOnce(outputProcess).mockReturnValueOnce(inputProcess);

514+

const sessionStore: Record<string, unknown> = {};

515+

const runtime = {

516+

agent: {

517+

resolveAgentDir: vi.fn(() => "/tmp/agent"),

518+

resolveAgentWorkspaceDir: vi.fn(() => "/tmp/workspace"),

519+

ensureAgentWorkspace: vi.fn(async () => {}),

520+

session: {

521+

resolveStorePath: vi.fn(() => "/tmp/sessions.json"),

522+

loadSessionStore: vi.fn(() => sessionStore),

523+

saveSessionStore: vi.fn(async () => {}),

524+

resolveSessionFilePath: vi.fn(() => "/tmp/session.json"),

525+

},

526+

runEmbeddedPiAgent: vi.fn(async () => ({

527+

payloads: [{ text: "Use the Portugal launch data." }],

528+

meta: {},

529+

})),

530+

resolveAgentTimeoutMs: vi.fn(() => 1000),

531+

},

532+

};

467533468534

const handle = await startCommandRealtimeAudioBridge({

469535

config: resolveGoogleMeetConfig({

470536

realtime: { provider: "openai", model: "gpt-realtime" },

471537

}),

472538

fullConfig: {} as never,

539+

runtime: runtime as never,

540+

meetingSessionId: "meet-1",

473541

inputCommand: ["capture-meet"],

474542

outputCommand: ["play-meet"],

475543

logger: noopLogger,

@@ -480,6 +548,12 @@ describe("google-meet plugin", () => {

480548

inputStdout.write(Buffer.from([1, 2, 3]));

481549

callbacks?.onAudio(Buffer.from([4, 5]));

482550

callbacks?.onMark?.("mark-1");

551+

callbacks?.onToolCall?.({

552+

itemId: "item-1",

553+

callId: "tool-call-1",

554+

name: "openclaw_agent_consult",

555+

args: { question: "What should I say about launch timing?" },

556+

});

483557484558

expect(spawnMock).toHaveBeenNthCalledWith(1, "play-meet", [], {

485559

stdio: ["pipe", "ignore", "pipe"],

@@ -490,6 +564,25 @@ describe("google-meet plugin", () => {

490564

expect(sendAudio).toHaveBeenCalledWith(Buffer.from([1, 2, 3]));

491565

expect(outputStdinWrites).toEqual([Buffer.from([4, 5])]);

492566

expect(bridge.acknowledgeMark).toHaveBeenCalled();

567+

expect(callbacks).toMatchObject({

568+

tools: [

569+

expect.objectContaining({

570+

name: "openclaw_agent_consult",

571+

}),

572+

],

573+

});

574+

await vi.waitFor(() => {

575+

expect(bridge.submitToolResult).toHaveBeenCalledWith("tool-call-1", {

576+

text: "Use the Portugal launch data.",

577+

});

578+

});

579+

expect(runtime.agent.runEmbeddedPiAgent).toHaveBeenCalledWith(

580+

expect.objectContaining({

581+

messageProvider: "google-meet",

582+

thinkLevel: "high",

583+

toolsAllow: ["read", "web_search", "web_fetch", "x_search", "memory_search", "memory_get"],

584+

}),

585+

);

493586494587

await handle.stop();

495588

expect(bridge.close).toHaveBeenCalled();