@openclaw/googlechat 2026.5.3-beta.1 → 2026.5.3-beta.4
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/{api-C67jv0ow.js → api-CH_RuV_Y.js} +9 -1
- package/dist/api.js +1 -1
- package/dist/{channel-DE2hroMn.js → channel-Bj_qXMYM.js} +4 -4
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-CoSLc-4R.js → channel.runtime-CtyHr-Ll.js} +1 -1
- package/dist/test-api.js +1 -1
- package/package.json +4 -4
|
@@ -16,6 +16,14 @@ 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
18
|
let googleAuthTransportPromise = null;
|
|
19
|
+
function normalizeGoogleAuthPreparedRequestHeaders(config) {
|
|
20
|
+
if (!(config.headers instanceof Headers)) config.headers = new Headers(config.headers);
|
|
21
|
+
return config;
|
|
22
|
+
}
|
|
23
|
+
function installGoogleAuthHeaderCompatibilityInterceptor(transport) {
|
|
24
|
+
transport.interceptors.request.add({ resolved: async (config) => normalizeGoogleAuthPreparedRequestHeaders(config) });
|
|
25
|
+
return transport;
|
|
26
|
+
}
|
|
19
27
|
function asNullableObjectRecord(value) {
|
|
20
28
|
return value !== null && typeof value === "object" ? value : null;
|
|
21
29
|
}
|
|
@@ -289,7 +297,7 @@ async function getGoogleAuthTransport() {
|
|
|
289
297
|
if (!googleAuthTransportPromise) googleAuthTransportPromise = (async () => {
|
|
290
298
|
try {
|
|
291
299
|
const { Gaxios } = await loadGoogleAuthRuntime();
|
|
292
|
-
return new Gaxios({ fetchImplementation: createGoogleAuthFetch() });
|
|
300
|
+
return installGoogleAuthHeaderCompatibilityInterceptor(new Gaxios({ fetchImplementation: createGoogleAuthFetch() }));
|
|
293
301
|
} catch (error) {
|
|
294
302
|
googleAuthTransportPromise = null;
|
|
295
303
|
throw error;
|
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-
|
|
2
|
+
import { t as googlechatPlugin } from "./channel-Bj_qXMYM.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-
|
|
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";
|
|
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-
|
|
249
|
+
const loadGoogleChatChannelRuntime$2 = createLazyRuntimeNamedExport(() => import("./channel.runtime-CtyHr-Ll.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-
|
|
452
|
+
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-CtyHr-Ll.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-
|
|
492
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CtyHr-Ll.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-
|
|
1
|
+
import { t as googlechatPlugin } from "./channel-Bj_qXMYM.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-
|
|
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";
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.5.3-beta.
|
|
3
|
+
"version": "2026.5.3-beta.4",
|
|
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.
|
|
20
|
+
"openclaw": ">=2026.5.3-beta.4"
|
|
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.
|
|
78
|
+
"pluginApi": ">=2026.5.3-beta.4"
|
|
79
79
|
},
|
|
80
80
|
"build": {
|
|
81
|
-
"openclawVersion": "2026.5.3-beta.
|
|
81
|
+
"openclawVersion": "2026.5.3-beta.4"
|
|
82
82
|
},
|
|
83
83
|
"release": {
|
|
84
84
|
"publishToClawHub": true,
|