@openclaw/google-meet 2026.5.7 → 2026.5.10-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{calendar-6EQiwLUb.js → calendar-DXHh6IyF.js} +12 -2
- package/dist/{chrome-create-B0wV2zaj.js → chrome-create-D0XLX4Ed.js} +1 -3
- package/dist/{cli-CP1gp7Wl.js → cli-Dgpp3OTQ.js} +3 -3
- package/dist/{create-mHH3keLH.js → create-C01ezOIH.js} +1 -1
- package/dist/index.js +704 -408
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as googleApiError } from "./chrome-create-
|
|
1
|
+
import { _ as googleApiError } from "./chrome-create-D0XLX4Ed.js";
|
|
2
2
|
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
3
3
|
//#region extensions/google-meet/src/calendar.ts
|
|
4
4
|
const GOOGLE_CALENDAR_API_BASE_URL = "https://www.googleapis.com/calendar/v3";
|
|
@@ -55,7 +55,17 @@ function rankCalendarEvent(event, nowMs) {
|
|
|
55
55
|
}
|
|
56
56
|
function chooseBestMeetCalendarEvent(events, now) {
|
|
57
57
|
const nowMs = now.getTime();
|
|
58
|
-
|
|
58
|
+
let selected;
|
|
59
|
+
let selectedRank = Number.POSITIVE_INFINITY;
|
|
60
|
+
for (const event of events) {
|
|
61
|
+
if (event.status === "cancelled" || !extractGoogleMeetUriFromCalendarEvent(event)) continue;
|
|
62
|
+
const rank = rankCalendarEvent(event, nowMs);
|
|
63
|
+
if (!selected || rank < selectedRank) {
|
|
64
|
+
selected = event;
|
|
65
|
+
selectedRank = rank;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return selected;
|
|
59
69
|
}
|
|
60
70
|
async function fetchGoogleCalendarEvents(params) {
|
|
61
71
|
const calendarId = params.calendarId?.trim() || "primary";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
2
|
+
import { sleep } from "openclaw/plugin-sdk/runtime-env";
|
|
2
3
|
//#region extensions/google-meet/src/google-api-errors.ts
|
|
3
4
|
const REAUTH_HINT = "Re-run `openclaw googlemeet auth login` and store the refreshed oauth block.";
|
|
4
5
|
function scopeText(scopes) {
|
|
@@ -737,9 +738,6 @@ var GoogleMeetBrowserManualActionError = class extends Error {
|
|
|
737
738
|
function isGoogleMeetBrowserManualActionError(error) {
|
|
738
739
|
return error instanceof GoogleMeetBrowserManualActionError;
|
|
739
740
|
}
|
|
740
|
-
function sleep(ms) {
|
|
741
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
742
|
-
}
|
|
743
741
|
function formatBrowserAutomationError(error) {
|
|
744
742
|
if (error instanceof Error) return error.message;
|
|
745
743
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as createGoogleMeetSpace, f as endGoogleMeetActiveConference, g as fetchLatestGoogleMeetConferenceRecord, h as fetchGoogleMeetSpace, m as fetchGoogleMeetAttendance, p as fetchGoogleMeetArtifacts, u as buildGoogleMeetPreflightReport } from "./chrome-create-
|
|
2
|
-
import { n as findGoogleMeetCalendarEvent, r as listGoogleMeetCalendarEvents, t as buildGoogleMeetCalendarDayWindow } from "./calendar-
|
|
1
|
+
import { d as createGoogleMeetSpace, f as endGoogleMeetActiveConference, g as fetchLatestGoogleMeetConferenceRecord, h as fetchGoogleMeetSpace, m as fetchGoogleMeetAttendance, p as fetchGoogleMeetArtifacts, u as buildGoogleMeetPreflightReport } from "./chrome-create-D0XLX4Ed.js";
|
|
2
|
+
import { n as findGoogleMeetCalendarEvent, r as listGoogleMeetCalendarEvents, t as buildGoogleMeetCalendarDayWindow } from "./calendar-DXHh6IyF.js";
|
|
3
3
|
import { buildGoogleMeetAuthUrl, createGoogleMeetOAuthState, createGoogleMeetPkce, exchangeGoogleMeetAuthCode, resolveGoogleMeetAccessToken, waitForGoogleMeetAuthCode } from "./oauth-BJwzuzT-.js";
|
|
4
|
-
import { hasCreateSpaceConfigInput, resolveCreateSpaceConfig } from "./create-
|
|
4
|
+
import { hasCreateSpaceConfigInput, resolveCreateSpaceConfig } from "./create-C01ezOIH.js";
|
|
5
5
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
6
6
|
import { callGatewayFromCli } from "openclaw/plugin-sdk/gateway-runtime";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as createGoogleMeetSpace, t as createMeetWithBrowserProxyOnNode } from "./chrome-create-
|
|
1
|
+
import { d as createGoogleMeetSpace, t as createMeetWithBrowserProxyOnNode } from "./chrome-create-D0XLX4Ed.js";
|
|
2
2
|
import { resolveGoogleMeetAccessToken } from "./oauth-BJwzuzT-.js";
|
|
3
3
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
|
|
4
4
|
//#region extensions/google-meet/src/create.ts
|