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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
月光博客
月光博客
博客园_首页
博客园 - 叶小钗
T
Tailwind CSS Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
量子位
小众软件
小众软件
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
IT之家
IT之家
Jina AI
Jina AI
阮一峰的网络日志
阮一峰的网络日志
G
Google Developers Blog
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

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): polish exports and calendar previews ·...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -6,6 +6,7 @@ import plugin from "./index.js";

66

import {

77

extractGoogleMeetUriFromCalendarEvent,

88

findGoogleMeetCalendarEvent,

9+

listGoogleMeetCalendarEvents,

910

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

1011

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

1112

import {

@@ -186,6 +187,18 @@ function stubMeetArtifactsApi() {

186187

],

187188

});

188189

}

190+

if (url.pathname === "/drive/v3/files/doc-1/export") {

191+

return new Response("Transcript document body.", {

192+

status: 200,

193+

headers: { "Content-Type": "text/plain" },

194+

});

195+

}

196+

if (url.pathname === "/drive/v3/files/doc-2/export") {

197+

return new Response("Smart note document body.", {

198+

status: 200,

199+

headers: { "Content-Type": "text/plain" },

200+

});

201+

}

189202

return new Response(`unexpected ${url.pathname}`, { status: 404 });

190203

});

191204

vi.stubGlobal("fetch", fetchMock);

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

347360

"resolve_space",

348361

"preflight",

349362

"latest",

363+

"calendar_events",

350364

"artifacts",

351365

"attendance",

352366

"recover_current_tab",

@@ -400,6 +414,21 @@ describe("google-meet plugin", () => {

400414

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

401415

event: { summary: "Project sync" },

402416

});

417+

await expect(

418+

listGoogleMeetCalendarEvents({

419+

accessToken: "token",

420+

now: new Date("2026-04-25T09:50:00Z"),

421+

timeMin: "2026-04-25T00:00:00Z",

422+

timeMax: "2026-04-26T00:00:00Z",

423+

}),

424+

).resolves.toMatchObject({

425+

events: [

426+

{

427+

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

428+

selected: true,

429+

},

430+

],

431+

});

403432

const calendarCall = fetchMock.mock.calls.find(([input]) => {

404433

const url = requestUrl(input);

405434

return url.pathname === "/calendar/v3/calendars/primary/events";

@@ -418,6 +447,28 @@ describe("google-meet plugin", () => {

418447

);

419448

});

420449450+

it("adds a reauth hint for missing Calendar scopes", async () => {

451+

vi.stubGlobal(

452+

"fetch",

453+

vi.fn(async () => new Response("insufficientPermissions", { status: 403 })),

454+

);

455+456+

await expect(

457+

findGoogleMeetCalendarEvent({

458+

accessToken: "token",

459+

timeMin: "2026-04-25T00:00:00Z",

460+

timeMax: "2026-04-26T00:00:00Z",

461+

}),

462+

).rejects.toThrow("calendar.events.readonly");

463+

await expect(

464+

findGoogleMeetCalendarEvent({

465+

accessToken: "token",

466+

timeMin: "2026-04-25T00:00:00Z",

467+

timeMax: "2026-04-26T00:00:00Z",

468+

}),

469+

).rejects.toThrow("googlemeet auth login");

470+

});

471+421472

it("fetches Meet spaces without percent-encoding the spaces path separator", async () => {

422473

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

423474

return new Response(

@@ -567,6 +618,33 @@ describe("google-meet plugin", () => {

567618

expect(listUrl.searchParams.get("filter")).toBe('space.name = "spaces/abc-defg-hij"');

568619

});

569620621+

it("exports linked Google Docs bodies when requested", async () => {

622+

const fetchMock = stubMeetArtifactsApi();

623+624+

await expect(

625+

fetchGoogleMeetArtifacts({

626+

accessToken: "token",

627+

conferenceRecord: "rec-1",

628+

includeDocumentBodies: true,

629+

}),

630+

).resolves.toMatchObject({

631+

artifacts: [

632+

{

633+

transcripts: [{ documentText: "Transcript document body." }],

634+

smartNotes: [{ documentText: "Smart note document body." }],

635+

},

636+

],

637+

});

638+

const driveCalls = fetchMock.mock.calls

639+

.map(([input]) => requestUrl(input))

640+

.filter((url) => url.pathname.startsWith("/drive/v3/files/"));

641+

expect(driveCalls.map((url) => url.pathname)).toEqual([

642+

"/drive/v3/files/doc-1/export",

643+

"/drive/v3/files/doc-2/export",

644+

]);

645+

expect(driveCalls.every((url) => url.searchParams.get("mimeType") === "text/plain")).toBe(true);

646+

});

647+570648

it("fetches only the latest Meet conference record for a meeting", async () => {

571649

const fetchMock = stubMeetArtifactsApi();

572650

@@ -854,6 +932,31 @@ describe("google-meet plugin", () => {

854932

});

855933

});

856934935+

it("reports calendar event previews through the tool", async () => {

936+

stubMeetArtifactsApi();

937+

const { tools } = setup();

938+

const tool = tools[0] as {

939+

execute: (

940+

id: string,

941+

params: unknown,

942+

) => Promise<{ details: { events?: Array<{ selected?: boolean; meetingUri?: string }> } }>;

943+

};

944+945+

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

946+

action: "calendar_events",

947+

accessToken: "token",

948+

expiresAt: Date.now() + 120_000,

949+

today: true,

950+

});

951+952+

expect(result.details.events).toEqual([

953+

expect.objectContaining({

954+

selected: true,

955+

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

956+

}),

957+

]);

958+

});

959+857960

it("fails setup status when the configured Chrome node is not connected", async () => {

858961

const { tools } = setup(

859962

{