@openclaw/googlechat 2026.5.3-beta.4 → 2026.5.4-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.
@@ -15,13 +15,17 @@ const GOOGLE_CLIENT_CERTS_URL_PREFIX = "https://www.googleapis.com/robot/v1/meta
15
15
  const MAX_GOOGLE_AUTH_RESPONSE_BYTES = 1024 * 1024;
16
16
  const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES = 64 * 1024;
17
17
  let googleAuthRuntimePromise = null;
18
- let googleAuthTransportPromise = null;
19
18
  function normalizeGoogleAuthPreparedRequestHeaders(config) {
20
19
  if (!(config.headers instanceof Headers)) config.headers = new Headers(config.headers);
21
20
  return config;
22
21
  }
22
+ function normalizeGoogleAuthResponseHeaders(response) {
23
+ if (!(response.headers instanceof Headers)) response.headers = new Headers(response.headers);
24
+ return response;
25
+ }
23
26
  function installGoogleAuthHeaderCompatibilityInterceptor(transport) {
24
27
  transport.interceptors.request.add({ resolved: async (config) => normalizeGoogleAuthPreparedRequestHeaders(config) });
28
+ transport.interceptors.response.add({ resolved: async (response) => normalizeGoogleAuthResponseHeaders(response) });
25
29
  return transport;
26
30
  }
27
31
  function asNullableObjectRecord(value) {
@@ -294,16 +298,8 @@ async function loadGoogleAuthRuntime() {
294
298
  return await googleAuthRuntimePromise;
295
299
  }
296
300
  async function getGoogleAuthTransport() {
297
- if (!googleAuthTransportPromise) googleAuthTransportPromise = (async () => {
298
- try {
299
- const { Gaxios } = await loadGoogleAuthRuntime();
300
- return installGoogleAuthHeaderCompatibilityInterceptor(new Gaxios({ fetchImplementation: createGoogleAuthFetch() }));
301
- } catch (error) {
302
- googleAuthTransportPromise = null;
303
- throw error;
304
- }
305
- })();
306
- return await googleAuthTransportPromise;
301
+ const { Gaxios } = await loadGoogleAuthRuntime();
302
+ return installGoogleAuthHeaderCompatibilityInterceptor(new Gaxios({ fetchImplementation: createGoogleAuthFetch() }));
307
303
  }
308
304
  async function resolveValidatedGoogleChatCredentials(account) {
309
305
  if (account.credentials) return validateGoogleChatServiceAccountCredentials(account.credentials);
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { n as googlechatSetupAdapter, t as googlechatSetupWizard } from "./setup-surface-CofP-Gg9.js";
2
- import { t as googlechatPlugin } from "./channel-Bj_qXMYM.js";
2
+ import { t as googlechatPlugin } from "./channel-CHniJUSZ.js";
3
3
  export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
@@ -1,6 +1,6 @@
1
1
  import { a as resolveDefaultGoogleChatAccountId, i as listGoogleChatAccountIds, n as googlechatSetupAdapter, o as resolveGoogleChatAccount, r as listEnabledGoogleChatAccounts, s as resolveGoogleChatConfigAccessorAccount, t as googlechatSetupWizard } from "./setup-surface-CofP-Gg9.js";
2
2
  import { E as resolveChannelMediaMaxBytes, L as getGoogleChatRuntime, a as buildChannelConfigSchema, i as PAIRING_APPROVED_MESSAGE, m as fetchRemoteMedia, o as chunkTextForOutbound, r as GoogleChatConfigSchema, t as DEFAULT_ACCOUNT_ID, v as loadOutboundMediaFromUrl$1, y as missingTargetError } from "./runtime-api-wkIdfwqY.js";
3
- import { a as findGoogleChatDirectMessage, c as sendGoogleChatMessage, o as listGoogleChatReactions, r as deleteGoogleChatReaction, t as createGoogleChatReaction, u as uploadGoogleChatAttachment } from "./api-CH_RuV_Y.js";
3
+ import { a as findGoogleChatDirectMessage, c as sendGoogleChatMessage, o as listGoogleChatReactions, r as deleteGoogleChatReaction, t as createGoogleChatReaction, u as uploadGoogleChatAttachment } from "./api-C8OqyWsW.js";
4
4
  import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-CG1sLToP.js";
5
5
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DtQ_IO7J.js";
6
6
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
@@ -246,7 +246,7 @@ function resolveGoogleChatGroupRequireMention(params) {
246
246
  }
247
247
  //#endregion
248
248
  //#region extensions/googlechat/src/channel.adapters.ts
249
- const loadGoogleChatChannelRuntime$2 = createLazyRuntimeNamedExport(() => import("./channel.runtime-CtyHr-Ll.js"), "googleChatChannelRuntime");
249
+ const loadGoogleChatChannelRuntime$2 = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bu7xf0wo.js"), "googleChatChannelRuntime");
250
250
  const formatAllowFromEntry = (entry) => normalizeLowercaseStringOrEmpty(entry.trim().replace(/^(googlechat|google-chat|gchat):/i, "").replace(/^user:/i, "").replace(/^users\//i, ""));
251
251
  const collectGoogleChatSecurityWarnings = composeAccountWarningCollectors(createAllowlistProviderOpenWarningCollector({
252
252
  providerConfigPresent: (cfg) => cfg.channels?.googlechat !== void 0,
@@ -449,7 +449,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
449
449
  });
450
450
  //#endregion
451
451
  //#region extensions/googlechat/src/gateway.ts
452
- const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-CtyHr-Ll.js"), "googleChatChannelRuntime");
452
+ const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bu7xf0wo.js"), "googleChatChannelRuntime");
453
453
  async function startGoogleChatGatewayAccount(ctx) {
454
454
  const account = ctx.account;
455
455
  const statusSink = createAccountStatusSink({
@@ -489,7 +489,7 @@ async function startGoogleChatGatewayAccount(ctx) {
489
489
  }
490
490
  //#endregion
491
491
  //#region extensions/googlechat/src/channel.ts
492
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CtyHr-Ll.js"), "googleChatChannelRuntime");
492
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bu7xf0wo.js"), "googleChatChannelRuntime");
493
493
  const meta = {
494
494
  id: "googlechat",
495
495
  label: "Google Chat",
@@ -1,2 +1,2 @@
1
- import { t as googlechatPlugin } from "./channel-Bj_qXMYM.js";
1
+ import { t as googlechatPlugin } from "./channel-CHniJUSZ.js";
2
2
  export { googlechatPlugin };
@@ -1,5 +1,5 @@
1
1
  import { A as resolveInboundRouteEnvelopeBuilderWithRuntime, D as resolveDefaultGroupPolicy, F as warnMissingProviderGroupPolicyFallbackOnce, L as getGoogleChatRuntime, M as resolveWebhookPath, O as resolveDmGroupAccessWithLists, T as resolveAllowlistProviderRuntimeGroupPolicy, f as evaluateGroupRouteAccessForPolicy, g as isDangerousNameMatchingEnabled, j as resolveSenderScopedGroupPolicy, l as createChannelPairingController, n as GROUP_POLICY_BLOCKED_LABEL, u as createChannelReplyPipeline } from "./runtime-api-wkIdfwqY.js";
2
- import { c as sendGoogleChatMessage, d as verifyGoogleChatRequest, i as downloadGoogleChatMedia, l as updateGoogleChatMessage, n as deleteGoogleChatMessage, s as probeGoogleChat, u as uploadGoogleChatAttachment } from "./api-CH_RuV_Y.js";
2
+ import { c as sendGoogleChatMessage, d as verifyGoogleChatRequest, i as downloadGoogleChatMedia, l as updateGoogleChatMessage, n as deleteGoogleChatMessage, s as probeGoogleChat, u as uploadGoogleChatAttachment } from "./api-C8OqyWsW.js";
3
3
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
4
4
  import { resolveInboundMentionDecision } from "openclaw/plugin-sdk/channel-inbound";
5
5
  import { registerWebhookTargetWithPluginRoute, resolveWebhookTargetWithAuthOrReject, withResolvedWebhookRequestPipeline } from "openclaw/plugin-sdk/webhook-targets";
package/dist/test-api.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { R as setGoogleChatRuntime } from "./runtime-api-wkIdfwqY.js";
2
- import { t as googlechatPlugin } from "./channel-Bj_qXMYM.js";
2
+ import { t as googlechatPlugin } from "./channel-CHniJUSZ.js";
3
3
  export { googlechatPlugin, setGoogleChatRuntime };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/googlechat",
3
- "version": "2026.5.3-beta.4",
3
+ "version": "2026.5.4-beta.1",
4
4
  "description": "OpenClaw Google Chat channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "openclaw": "workspace:*"
18
18
  },
19
19
  "peerDependencies": {
20
- "openclaw": ">=2026.5.3-beta.4"
20
+ "openclaw": ">=2026.5.4-beta.1"
21
21
  },
22
22
  "peerDependenciesMeta": {
23
23
  "openclaw": {
@@ -75,10 +75,10 @@
75
75
  "minHostVersion": ">=2026.4.10"
76
76
  },
77
77
  "compat": {
78
- "pluginApi": ">=2026.5.3-beta.4"
78
+ "pluginApi": ">=2026.5.4-beta.1"
79
79
  },
80
80
  "build": {
81
- "openclawVersion": "2026.5.3-beta.4"
81
+ "openclawVersion": "2026.5.4-beta.1"
82
82
  },
83
83
  "release": {
84
84
  "publishToClawHub": true,