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

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
T
Troy Hunt's Blog
L
Lohrmann on Cybersecurity
S
Schneier on Security
Spread Privacy
Spread Privacy
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
G
GRAHAM CLULEY
博客园 - 【当耐特】
有赞技术团队
有赞技术团队
SecWiki News
SecWiki News
博客园 - 叶小钗
博客园 - Franky
V
Vulnerabilities – Threatpost
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
O
OpenAI News
小众软件
小众软件
V
V2EX
N
News and Events Feed by Topic
T
The Exploit Database - CXSecurity.com
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
Project Zero
Project Zero
The Last Watchdog
The Last Watchdog
雷峰网
雷峰网
Google Online Security Blog
Google Online Security Blog
T
Tailwind CSS Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
量子位
D
Docker
Recent Announcements
Recent Announcements
T
Threat Research - Cisco Blogs
P
Privacy International News Feed
爱范儿
爱范儿
PCI Perspectives
PCI Perspectives
Jina AI
Jina AI
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
大猫的无限游戏
大猫的无限游戏
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Register - Security
The Register - Security
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
Cloudbric
Cloudbric
S
Security Affairs
F
Fortinet All Blogs

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test(google-meet): share plugin harness · openclaw/openclaw@25a0282
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -1,10 +1,8 @@

11

import { EventEmitter } from "node:events";

22

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

33

import { Command } from "commander";

4-

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

54

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

65

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

7-

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

86

import plugin from "./index.js";

97

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

108

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

@@ -23,6 +21,11 @@ import { startNodeRealtimeAudioBridge } from "./src/realtime-node.js";

2321

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

2422

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

2523

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

24+

import {

25+

captureStdout,

26+

noopLogger,

27+

setupGoogleMeetPlugin,

28+

} from "./src/test-support/plugin-harness.js";

2629

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

27302831

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

@@ -54,23 +57,11 @@ vi.mock("./src/voice-call-gateway.js", () => ({

5457

endMeetVoiceCallGatewayCall: voiceCallMocks.endMeetVoiceCallGatewayCall,

5558

}));

565957-

const noopLogger = {

58-

info: vi.fn(),

59-

warn: vi.fn(),

60-

error: vi.fn(),

61-

debug: vi.fn(),

62-

};

63-64-

function captureStdout() {

65-

let output = "";

66-

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

67-

output += String(chunk);

68-

return true;

69-

}) as typeof process.stdout.write);

70-

return {

71-

output: () => output,

72-

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

73-

};

60+

function setup(

61+

config?: Parameters<typeof setupGoogleMeetPlugin>[1],

62+

options?: Parameters<typeof setupGoogleMeetPlugin>[2],

63+

) {

64+

return setupGoogleMeetPlugin(plugin, config, options);

7465

}

75667667

type TestBridgeProcess = {

@@ -82,134 +73,6 @@ type TestBridgeProcess = {

8273

on: EventEmitter["on"];

8374

};

847585-

type NodeListResult = {

86-

nodes: Array<{

87-

nodeId: string;

88-

displayName?: string;

89-

connected?: boolean;

90-

commands?: string[];

91-

caps?: string[];

92-

remoteIp?: string;

93-

}>;

94-

};

95-96-

function setup(

97-

config: Record<string, unknown> = {},

98-

options: {

99-

fullConfig?: Record<string, unknown>;

100-

nodesListResult?: NodeListResult;

101-

nodesInvokeResult?: unknown;

102-

browserActResult?: Record<string, unknown>;

103-

nodesInvokeHandler?: (params: {

104-

nodeId: string;

105-

command: string;

106-

params?: unknown;

107-

timeoutMs?: number;

108-

}) => Promise<unknown>;

109-

} = {},

110-

) {

111-

const methods = new Map<string, unknown>();

112-

const tools: unknown[] = [];

113-

const cliRegistrations: unknown[] = [];

114-

const nodeHostCommands: unknown[] = [];

115-

const nodesList = vi.fn(

116-

async () =>

117-

options.nodesListResult ?? {

118-

nodes: [

119-

{

120-

nodeId: "node-1",

121-

displayName: "parallels-macos",

122-

connected: true,

123-

caps: ["browser"],

124-

commands: ["browser.proxy", "googlemeet.chrome"],

125-

},

126-

],

127-

},

128-

);

129-

const nodesInvoke = vi.fn(async (params) => {

130-

if (options.nodesInvokeHandler) {

131-

return options.nodesInvokeHandler(params);

132-

}

133-

if (params.command === "browser.proxy") {

134-

const proxy = params.params as { path?: string; body?: { url?: string; targetId?: string } };

135-

if (proxy.path === "/tabs") {

136-

return { payload: { result: { running: true, tabs: [] } } };

137-

}

138-

if (proxy.path === "/tabs/open") {

139-

return {

140-

payload: {

141-

result: {

142-

targetId: "tab-1",

143-

title: "Meet",

144-

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

145-

},

146-

},

147-

};

148-

}

149-

if (proxy.path === "/act") {

150-

return {

151-

payload: {

152-

result: {

153-

ok: true,

154-

targetId: proxy.body?.targetId ?? "tab-1",

155-

result: JSON.stringify(

156-

options.browserActResult ?? {

157-

inCall: true,

158-

micMuted: false,

159-

title: "Meet call",

160-

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

161-

},

162-

),

163-

},

164-

},

165-

};

166-

}

167-

return { payload: { result: { ok: true } } };

168-

}

169-

return options.nodesInvokeResult ?? { launched: true };

170-

});

171-

const runCommandWithTimeout = vi.fn(async (argv: string[]) => {

172-

if (argv[0] === "/usr/sbin/system_profiler") {

173-

return { code: 0, stdout: "BlackHole 2ch", stderr: "" };

174-

}

175-

return { code: 0, stdout: "", stderr: "" };

176-

});

177-

const api = createTestPluginApi({

178-

id: "google-meet",

179-

name: "Google Meet",

180-

description: "test",

181-

version: "0",

182-

source: "test",

183-

config: options.fullConfig ?? {},

184-

pluginConfig: config,

185-

runtime: {

186-

system: {

187-

runCommandWithTimeout,

188-

formatNativeDependencyHint: vi.fn(() => "Install with brew install blackhole-2ch."),

189-

},

190-

nodes: {

191-

list: nodesList,

192-

invoke: nodesInvoke,

193-

},

194-

} as unknown as OpenClawPluginApi["runtime"],

195-

logger: noopLogger,

196-

registerGatewayMethod: (method: string, handler: unknown) => methods.set(method, handler),

197-

registerTool: (tool: unknown) => tools.push(tool),

198-

registerCli: (_registrar: unknown, opts: unknown) => cliRegistrations.push(opts),

199-

registerNodeHostCommand: (command: unknown) => nodeHostCommands.push(command),

200-

});

201-

plugin.register(api);

202-

return {

203-

cliRegistrations,

204-

methods,

205-

tools,

206-

runCommandWithTimeout,

207-

nodesList,

208-

nodesInvoke,

209-

nodeHostCommands,

210-

};

211-

}

212-21376

describe("google-meet plugin", () => {

21477

beforeEach(() => {

21578

vi.clearAllMocks();