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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Jina AI
Jina AI
The Cloudflare Blog
V
Visual Studio Blog
博客园_首页
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
博客园 - Franky

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): create meeting spaces · openclaw/openc...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -10,6 +10,7 @@ import { registerGoogleMeetCli } from "./src/cli.js";

1010

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

1111

import {

1212

buildGoogleMeetPreflightReport,

13+

createGoogleMeetSpace,

1314

fetchGoogleMeetSpace,

1415

normalizeGoogleMeetSpaceName,

1516

} from "./src/meet.js";

@@ -348,6 +349,7 @@ describe("google-meet plugin", () => {

348349

type: "string",

349350

enum: [

350351

"join",

352+

"create",

351353

"status",

352354

"setup_status",

353355

"resolve_space",

@@ -411,6 +413,37 @@ describe("google-meet plugin", () => {

411413

);

412414

});

413415416+

it("creates Meet spaces and returns the meeting URL", async () => {

417+

const fetchMock = vi.fn(async () => {

418+

return new Response(

419+

JSON.stringify({

420+

name: "spaces/new-space",

421+

meetingCode: "new-abcd-xyz",

422+

meetingUri: "https://meet.google.com/new-abcd-xyz",

423+

}),

424+

{ status: 200, headers: { "Content-Type": "application/json" } },

425+

);

426+

});

427+

vi.stubGlobal("fetch", fetchMock);

428+429+

await expect(createGoogleMeetSpace({ accessToken: "token" })).resolves.toMatchObject({

430+

meetingUri: "https://meet.google.com/new-abcd-xyz",

431+

space: { name: "spaces/new-space" },

432+

});

433+

expect(fetchGuardMocks.fetchWithSsrFGuard).toHaveBeenCalledWith(

434+

expect.objectContaining({

435+

url: "https://meet.googleapis.com/v2/spaces",

436+

init: expect.objectContaining({

437+

method: "POST",

438+

headers: expect.objectContaining({ Authorization: "Bearer token" }),

439+

body: "{}",

440+

}),

441+

policy: { allowedHostnames: ["meet.googleapis.com"] },

442+

auditContext: "google-meet.spaces.create",

443+

}),

444+

);

445+

});

446+414447

it("surfaces Developer Preview acknowledgment blockers in preflight reports", () => {

415448

expect(

416449

buildGoogleMeetPreflightReport({

@@ -438,6 +471,7 @@ describe("google-meet plugin", () => {

438471

expect(url.searchParams.get("client_id")).toBe("client-id");

439472

expect(url.searchParams.get("code_challenge")).toBe("challenge");

440473

expect(url.searchParams.get("access_type")).toBe("offline");

474+

expect(url.searchParams.get("scope")).toContain("meetings.space.created");

441475

expect(url.searchParams.get("scope")).toContain("meetings.conference.media.readonly");

442476443477

await expect(

@@ -701,6 +735,48 @@ describe("google-meet plugin", () => {

701735

}

702736

});

703737738+

it("CLI create prints the new meeting URL", async () => {

739+

const fetchMock = vi.fn(async (input: RequestInfo | URL, _init?: RequestInit) => {

740+

const url = input instanceof Request ? input.url : input.toString();

741+

if (url.includes("oauth2.googleapis.com")) {

742+

return new Response(

743+

JSON.stringify({

744+

access_token: "new-access-token",

745+

expires_in: 3600,

746+

token_type: "Bearer",

747+

}),

748+

{ status: 200, headers: { "Content-Type": "application/json" } },

749+

);

750+

}

751+

return new Response(

752+

JSON.stringify({

753+

name: "spaces/new-space",

754+

meetingCode: "new-abcd-xyz",

755+

meetingUri: "https://meet.google.com/new-abcd-xyz",

756+

}),

757+

{ status: 200, headers: { "Content-Type": "application/json" } },

758+

);

759+

});

760+

vi.stubGlobal("fetch", fetchMock);

761+

const program = new Command();

762+

const stdout = captureStdout();

763+

registerGoogleMeetCli({

764+

program,

765+

config: resolveGoogleMeetConfig({

766+

oauth: { clientId: "client-id", refreshToken: "refresh-token" },

767+

}),

768+

ensureRuntime: async () => ({}) as GoogleMeetRuntime,

769+

});

770+771+

try {

772+

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

773+

expect(stdout.output()).toContain("meeting uri: https://meet.google.com/new-abcd-xyz");

774+

expect(stdout.output()).toContain("space: spaces/new-space");

775+

} finally {

776+

stdout.restore();

777+

}

778+

});

779+704780

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

705781

const originalPlatform = process.platform;

706782

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