@openclaw/googlechat 2026.5.31-beta.2 → 2026.5.31-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/{actions-CZqDyDax.js → actions-B4gjETr3.js} +2 -2
- package/dist/{api-DxtI9OoY.js → api-DPvlxpWa.js} +1 -1
- package/dist/api.js +1 -1
- package/dist/{channel-DJdo8yPb.js → channel-DxHy0I-n.js} +7 -7
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-BeYlQtHv.js → channel.runtime-C4eLDKR3.js} +4 -4
- package/dist/contract-api.js +1 -1
- package/dist/{doctor-contract-DCNyxrqR.js → doctor-contract-BcEqUZ4j.js} +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/npm-shrinkwrap.json +3 -3
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as resolveGoogleChatAccount, o as listEnabledGoogleChatAccounts } from "./channel-base-DpPD0ef1.js";
|
|
2
2
|
import { P as getGoogleChatRuntime } from "./runtime-api-BbVoWRxq.js";
|
|
3
|
-
import { c as sendGoogleChatMessage, o as listGoogleChatReactions, r as deleteGoogleChatReaction, t as createGoogleChatReaction, u as uploadGoogleChatAttachment } from "./api-
|
|
4
|
-
import { n as resolveGoogleChatOutboundSpace } from "./channel-
|
|
3
|
+
import { c as sendGoogleChatMessage, o as listGoogleChatReactions, r as deleteGoogleChatReaction, t as createGoogleChatReaction, u as uploadGoogleChatAttachment } from "./api-DPvlxpWa.js";
|
|
4
|
+
import { n as resolveGoogleChatOutboundSpace } from "./channel-DxHy0I-n.js";
|
|
5
5
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
6
6
|
import { createActionGate, jsonResult, readPositiveIntegerParam, readReactionParams, readStringParam } from "openclaw/plugin-sdk/channel-actions";
|
|
7
7
|
import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
|
|
@@ -150,7 +150,7 @@ function validateGoogleChatServiceAccountCredentials(credentials) {
|
|
|
150
150
|
async function readCredentialsFile(filePath) {
|
|
151
151
|
const resolvedPath = resolveUserPath(filePath);
|
|
152
152
|
if (!resolvedPath) throw new Error("Google Chat service account file path is empty");
|
|
153
|
-
let handle
|
|
153
|
+
let handle;
|
|
154
154
|
try {
|
|
155
155
|
handle = await fs.open(resolvedPath, "r");
|
|
156
156
|
} catch {
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./channel-base-DpPD0ef1.js";
|
|
2
|
-
import { t as googlechatPlugin } from "./channel-
|
|
2
|
+
import { t as googlechatPlugin } from "./channel-DxHy0I-n.js";
|
|
3
3
|
export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as resolveGoogleChatAccount, n as createGoogleChatPluginBase, r as formatGoogleChatAllowFromEntry, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-DpPD0ef1.js";
|
|
2
2
|
import { T as resolveChannelMediaMaxBytes, _ as missingTargetError, a as buildChannelConfigSchema, g as loadOutboundMediaFromUrl, i as PAIRING_APPROVED_MESSAGE, o as chunkTextForOutbound, r as GoogleChatConfigSchema, t as DEFAULT_ACCOUNT_ID, x as readRemoteMediaBuffer } from "./runtime-api-BbVoWRxq.js";
|
|
3
|
-
import { a as findGoogleChatDirectMessage } from "./api-
|
|
4
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
3
|
+
import { a as findGoogleChatDirectMessage } from "./api-DPvlxpWa.js";
|
|
4
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BcEqUZ4j.js";
|
|
5
5
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-lCMHqumt.js";
|
|
6
6
|
import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
7
7
|
import { buildPassiveProbedChannelStatusSummary } from "openclaw/plugin-sdk/extension-shared";
|
|
@@ -89,7 +89,7 @@ function resolveGoogleChatGroupRequireMention(params) {
|
|
|
89
89
|
}
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region extensions/googlechat/src/channel.adapters.ts
|
|
92
|
-
const loadGoogleChatChannelRuntime$2 = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
92
|
+
const loadGoogleChatChannelRuntime$2 = createLazyRuntimeNamedExport(() => import("./channel.runtime-C4eLDKR3.js"), "googleChatChannelRuntime");
|
|
93
93
|
function createGoogleChatSendReceipt(params) {
|
|
94
94
|
const messageId = params.messageId?.trim();
|
|
95
95
|
return createMessageReceiptFromOutboundResults({
|
|
@@ -252,7 +252,7 @@ const googlechatOutboundAdapter = {
|
|
|
252
252
|
const thread = typeof threadId === "number" ? String(threadId) : threadId ?? replyToId ?? void 0;
|
|
253
253
|
const effectiveMaxBytes = resolveChannelMediaMaxBytes({
|
|
254
254
|
cfg,
|
|
255
|
-
resolveChannelLimitMb: ({ cfg, accountId }) => (
|
|
255
|
+
resolveChannelLimitMb: ({ cfg: cfgLocal, accountId: accountIdLocal }) => (cfgLocal.channels?.googlechat)?.accounts?.[accountIdLocal]?.mediaMaxMb ?? (cfgLocal.channels?.googlechat)?.mediaMaxMb,
|
|
256
256
|
accountId
|
|
257
257
|
}) ?? (account.config.mediaMaxMb ?? 20) * 1024 * 1024;
|
|
258
258
|
const loaded = /^https?:\/\//i.test(mediaUrl) ? await readRemoteMediaBuffer({
|
|
@@ -346,7 +346,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
|
|
|
346
346
|
});
|
|
347
347
|
//#endregion
|
|
348
348
|
//#region extensions/googlechat/src/gateway.ts
|
|
349
|
-
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
349
|
+
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-C4eLDKR3.js"), "googleChatChannelRuntime");
|
|
350
350
|
async function startGoogleChatGatewayAccount(ctx) {
|
|
351
351
|
const account = ctx.account;
|
|
352
352
|
const statusSink = createAccountStatusSink({
|
|
@@ -386,7 +386,7 @@ async function startGoogleChatGatewayAccount(ctx) {
|
|
|
386
386
|
}
|
|
387
387
|
//#endregion
|
|
388
388
|
//#region extensions/googlechat/src/channel.ts
|
|
389
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
389
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-C4eLDKR3.js"), "googleChatChannelRuntime");
|
|
390
390
|
const googlechatActions = {
|
|
391
391
|
describeMessageTool: ({ cfg, accountId }) => {
|
|
392
392
|
const accounts = accountId ? [resolveGoogleChatAccount({
|
|
@@ -406,7 +406,7 @@ const googlechatActions = {
|
|
|
406
406
|
},
|
|
407
407
|
extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
|
|
408
408
|
handleAction: async (ctx) => {
|
|
409
|
-
const { googlechatMessageActions } = await import("./actions-
|
|
409
|
+
const { googlechatMessageActions } = await import("./actions-B4gjETr3.js");
|
|
410
410
|
if (!googlechatMessageActions.handleAction) throw new Error("Google Chat actions are not available.");
|
|
411
411
|
return await googlechatMessageActions.handleAction(ctx);
|
|
412
412
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as googlechatPlugin } from "./channel-
|
|
1
|
+
import { t as googlechatPlugin } from "./channel-DxHy0I-n.js";
|
|
2
2
|
export { googlechatPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as resolveDefaultGroupPolicy, M as warnMissingProviderGroupPolicyFallbackOnce, O as resolveInboundRouteEnvelopeBuilderWithRuntime, P as getGoogleChatRuntime, k as resolveWebhookPath, m as isDangerousNameMatchingEnabled, n as GROUP_POLICY_BLOCKED_LABEL, u as createChannelPairingController, w as resolveAllowlistProviderRuntimeGroupPolicy } from "./runtime-api-BbVoWRxq.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-DPvlxpWa.js";
|
|
3
3
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
|
|
5
5
|
import { recordChannelBotPairLoopAndCheckSuppression } from "openclaw/plugin-sdk/channel-inbound";
|
|
@@ -530,8 +530,8 @@ function createGoogleChatWebhookRequestHandler(params) {
|
|
|
530
530
|
inFlightLimiter: params.webhookInFlightLimiter,
|
|
531
531
|
handle: async ({ targets }) => {
|
|
532
532
|
const headerBearer = extractBearerToken(req.headers.authorization);
|
|
533
|
-
let selectedTarget
|
|
534
|
-
let parsedEvent
|
|
533
|
+
let selectedTarget;
|
|
534
|
+
let parsedEvent;
|
|
535
535
|
const readAndParseEvent = async (profile) => {
|
|
536
536
|
const body = await readJsonWebhookBodyOrReject({
|
|
537
537
|
req,
|
|
@@ -744,7 +744,7 @@ async function processMessageWithPipeline(params) {
|
|
|
744
744
|
senderEmail,
|
|
745
745
|
rawBody,
|
|
746
746
|
statusSink,
|
|
747
|
-
logVerbose: (
|
|
747
|
+
logVerbose: (messageLocal) => logVerbose(core, runtime, messageLocal)
|
|
748
748
|
});
|
|
749
749
|
if (!access.ok) return;
|
|
750
750
|
const { commandAuthorized, effectiveWasMentioned, groupBotLoopProtection, groupSystemPrompt } = access;
|
package/dist/contract-api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
1
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BcEqUZ4j.js";
|
|
2
2
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-lCMHqumt.js";
|
|
3
3
|
export { collectRuntimeConfigAssignments, legacyConfigRules, normalizeCompatibilityConfig, secretTargetRegistryEntries };
|
|
@@ -100,7 +100,7 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
100
100
|
};
|
|
101
101
|
const changes = [];
|
|
102
102
|
let updated = rawEntry;
|
|
103
|
-
let changed
|
|
103
|
+
let changed;
|
|
104
104
|
const root = normalizeGoogleChatEntry({
|
|
105
105
|
entry: updated,
|
|
106
106
|
pathPrefix: "channels.googlechat",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
1
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BcEqUZ4j.js";
|
|
2
2
|
export { legacyConfigRules, normalizeCompatibilityConfig };
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.5.31-beta.
|
|
3
|
+
"version": "2026.5.31-beta.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/googlechat",
|
|
9
|
-
"version": "2026.5.31-beta.
|
|
9
|
+
"version": "2026.5.31-beta.4",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"gaxios": "7.1.4",
|
|
12
12
|
"google-auth-library": "10.6.2",
|
|
13
13
|
"zod": "4.4.3"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.5.31-beta.
|
|
16
|
+
"openclaw": ">=2026.5.31-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.5.31-beta.
|
|
3
|
+
"version": "2026.5.31-beta.4",
|
|
4
4
|
"description": "OpenClaw Google Chat channel plugin for spaces and direct messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"zod": "4.4.3"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.5.31-beta.
|
|
16
|
+
"openclaw": ">=2026.5.31-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"minHostVersion": ">=2026.4.10"
|
|
72
72
|
},
|
|
73
73
|
"compat": {
|
|
74
|
-
"pluginApi": ">=2026.5.31-beta.
|
|
74
|
+
"pluginApi": ">=2026.5.31-beta.4"
|
|
75
75
|
},
|
|
76
76
|
"build": {
|
|
77
|
-
"openclawVersion": "2026.5.31-beta.
|
|
77
|
+
"openclawVersion": "2026.5.31-beta.4"
|
|
78
78
|
},
|
|
79
79
|
"release": {
|
|
80
80
|
"publishToClawHub": true,
|