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

推荐订阅源

V
V2EX
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
P
Proofpoint News Feed
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
量子位
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
博客园 - Franky
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
博客园_首页
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow 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(google-meet): format setup status by default · openc...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -1,10 +1,12 @@

11

import { EventEmitter } from "node:events";

22

import { PassThrough, Writable } from "node:stream";

3+

import { Command } from "commander";

34

import type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";

45

import type { RealtimeVoiceProviderPlugin } from "openclaw/plugin-sdk/realtime-voice";

56

import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";

67

import { createTestPluginApi } from "../../test/helpers/plugins/plugin-api.ts";

78

import plugin from "./index.js";

9+

import { registerGoogleMeetCli } from "./src/cli.js";

810

import { resolveGoogleMeetConfig, resolveGoogleMeetConfigWithEnv } from "./src/config.js";

911

import {

1012

buildGoogleMeetPreflightReport,

@@ -19,6 +21,7 @@ import {

1921

import { startNodeRealtimeAudioBridge } from "./src/realtime-node.js";

2022

import { startCommandRealtimeAudioBridge } from "./src/realtime.js";

2123

import { normalizeMeetUrl } from "./src/runtime.js";

24+

import type { GoogleMeetRuntime } from "./src/runtime.js";

2225

import { buildMeetDtmfSequence, normalizeDialInNumber } from "./src/transports/twilio.js";

23262427

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

@@ -57,6 +60,18 @@ const noopLogger = {

5760

debug: vi.fn(),

5861

};

596263+

function captureStdout() {

64+

let output = "";

65+

const writeSpy = vi.spyOn(process.stdout, "write").mockImplementation(((chunk: unknown) => {

66+

output += String(chunk);

67+

return true;

68+

}) as typeof process.stdout.write);

69+

return {

70+

output: () => output,

71+

restore: () => writeSpy.mockRestore(),

72+

};

73+

}

74+6075

type TestBridgeProcess = {

6176

stdin?: { write(chunk: unknown): unknown } | null;

6277

stdout?: { on(event: "data", listener: (chunk: unknown) => void): unknown } | null;

@@ -627,6 +642,65 @@ describe("google-meet plugin", () => {

627642

);

628643

});

629644645+

it("CLI setup prints human-readable checks by default", async () => {

646+

const program = new Command();

647+

const stdout = captureStdout();

648+

registerGoogleMeetCli({

649+

program,

650+

config: resolveGoogleMeetConfig({}),

651+

ensureRuntime: async () =>

652+

({

653+

setupStatus: () => ({

654+

ok: true,

655+

checks: [

656+

{

657+

id: "audio-bridge",

658+

ok: true,

659+

message: "Chrome command-pair realtime audio bridge configured",

660+

},

661+

],

662+

}),

663+

}) as GoogleMeetRuntime,

664+

});

665+666+

try {

667+

await program.parseAsync(["googlemeet", "setup"], { from: "user" });

668+

expect(stdout.output()).toContain("Google Meet setup: OK");

669+

expect(stdout.output()).toContain(

670+

"[ok] audio-bridge: Chrome command-pair realtime audio bridge configured",

671+

);

672+

expect(stdout.output()).not.toContain('"checks"');

673+

} finally {

674+

stdout.restore();

675+

}

676+

});

677+678+

it("CLI setup preserves JSON output with --json", async () => {

679+

const program = new Command();

680+

const stdout = captureStdout();

681+

registerGoogleMeetCli({

682+

program,

683+

config: resolveGoogleMeetConfig({}),

684+

ensureRuntime: async () =>

685+

({

686+

setupStatus: () => ({

687+

ok: false,

688+

checks: [{ id: "twilio-voice-call-plugin", ok: false, message: "missing" }],

689+

}),

690+

}) as GoogleMeetRuntime,

691+

});

692+693+

try {

694+

await program.parseAsync(["googlemeet", "setup", "--json"], { from: "user" });

695+

expect(JSON.parse(stdout.output())).toMatchObject({

696+

ok: false,

697+

checks: [{ id: "twilio-voice-call-plugin", ok: false }],

698+

});

699+

} finally {

700+

stdout.restore();

701+

}

702+

});

703+630704

it("launches Chrome after the BlackHole check", async () => {

631705

const originalPlatform = process.platform;

632706

Object.defineProperty(process, "platform", { value: "darwin" });