@openclaw/googlechat 2026.5.14-beta.2 → 2026.5.16-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/{actions-Cp9JuEzB.js → actions-CpWMO4Q6.js} +2 -2
- package/dist/api.js +2 -2
- package/dist/{channel-DzmqN0DY.js → channel-Bf5PtC25.js} +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-BlDqtKML.js → setup-surface-Q6Vgbsv2.js} +23 -22
- package/dist/test-api.js +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as resolveGoogleChatAccount, r as listEnabledGoogleChatAccounts } from "./setup-surface-
|
|
1
|
+
import { o as resolveGoogleChatAccount, r as listEnabledGoogleChatAccounts } from "./setup-surface-Q6Vgbsv2.js";
|
|
2
2
|
import { P as getGoogleChatRuntime } from "./runtime-api-DuEfWHnr.js";
|
|
3
3
|
import { c as sendGoogleChatMessage, o as listGoogleChatReactions, r as deleteGoogleChatReaction, t as createGoogleChatReaction, u as uploadGoogleChatAttachment } from "./api-BJ9DOsBR.js";
|
|
4
|
-
import { n as resolveGoogleChatOutboundSpace } from "./channel-
|
|
4
|
+
import { n as resolveGoogleChatOutboundSpace } from "./channel-Bf5PtC25.js";
|
|
5
5
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
6
6
|
import { createActionGate, jsonResult, readNumberParam, readReactionParams, readStringParam } from "openclaw/plugin-sdk/channel-actions";
|
|
7
7
|
import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as googlechatSetupAdapter, t as googlechatSetupWizard } from "./setup-surface-
|
|
2
|
-
import { t as googlechatPlugin } from "./channel-
|
|
1
|
+
import { n as googlechatSetupAdapter, t as googlechatSetupWizard } from "./setup-surface-Q6Vgbsv2.js";
|
|
2
|
+
import { t as googlechatPlugin } from "./channel-Bf5PtC25.js";
|
|
3
3
|
export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as resolveDefaultGoogleChatAccountId, i as listGoogleChatAccountIds, n as googlechatSetupAdapter, o as resolveGoogleChatAccount, s as resolveGoogleChatConfigAccessorAccount, t as googlechatSetupWizard } from "./setup-surface-
|
|
1
|
+
import { a as resolveDefaultGoogleChatAccountId, i as listGoogleChatAccountIds, n as googlechatSetupAdapter, o as resolveGoogleChatAccount, s as resolveGoogleChatConfigAccessorAccount, t as googlechatSetupWizard } from "./setup-surface-Q6Vgbsv2.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-DuEfWHnr.js";
|
|
3
3
|
import { a as findGoogleChatDirectMessage } from "./api-BJ9DOsBR.js";
|
|
4
4
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-CG1sLToP.js";
|
|
@@ -430,7 +430,7 @@ const googlechatActions = {
|
|
|
430
430
|
},
|
|
431
431
|
extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
|
|
432
432
|
handleAction: async (ctx) => {
|
|
433
|
-
const { googlechatMessageActions } = await import("./actions-
|
|
433
|
+
const { googlechatMessageActions } = await import("./actions-CpWMO4Q6.js");
|
|
434
434
|
if (!googlechatMessageActions.handleAction) throw new Error("Google Chat actions are not available.");
|
|
435
435
|
return await googlechatMessageActions.handleAction(ctx);
|
|
436
436
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as googlechatPlugin } from "./channel-
|
|
1
|
+
import { t as googlechatPlugin } from "./channel-Bf5PtC25.js";
|
|
2
2
|
export { googlechatPlugin };
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as resolveDefaultGoogleChatAccountId, i as listGoogleChatAccountIds, n as googlechatSetupAdapter, o as resolveGoogleChatAccount, s as resolveGoogleChatConfigAccessorAccount, t as googlechatSetupWizard } from "./setup-surface-
|
|
1
|
+
import { a as resolveDefaultGoogleChatAccountId, i as listGoogleChatAccountIds, n as googlechatSetupAdapter, o as resolveGoogleChatAccount, s as resolveGoogleChatConfigAccessorAccount, t as googlechatSetupWizard } from "./setup-surface-Q6Vgbsv2.js";
|
|
2
2
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
3
3
|
import { formatNormalizedAllowFromEntries } from "openclaw/plugin-sdk/allow-from";
|
|
4
4
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
@@ -5,7 +5,7 @@ import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-ru
|
|
|
5
5
|
import { isSecretRef } from "openclaw/plugin-sdk/secret-input";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { createPatchedAccountSetupAdapter, createSetupInputPresenceValidator } from "openclaw/plugin-sdk/setup-runtime";
|
|
8
|
-
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, addWildcardAllowFrom, applySetupAccountConfigPatch, createPromptParsedAllowFromForAccount, createStandardChannelSetupStatus, formatDocsLink, mergeAllowFromEntries, migrateBaseNameToDefaultAccount, splitSetupEntries } from "openclaw/plugin-sdk/setup";
|
|
8
|
+
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, addWildcardAllowFrom, applySetupAccountConfigPatch, createPromptParsedAllowFromForAccount, createSetupTranslator, createStandardChannelSetupStatus, formatDocsLink, mergeAllowFromEntries, migrateBaseNameToDefaultAccount, splitSetupEntries } from "openclaw/plugin-sdk/setup";
|
|
9
9
|
//#region extensions/googlechat/src/accounts.ts
|
|
10
10
|
const ENV_SERVICE_ACCOUNT$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT";
|
|
11
11
|
const ENV_SERVICE_ACCOUNT_FILE$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT_FILE";
|
|
@@ -124,6 +124,7 @@ const googlechatSetupAdapter = createPatchedAccountSetupAdapter({
|
|
|
124
124
|
});
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region extensions/googlechat/src/setup-surface.ts
|
|
127
|
+
const t = createSetupTranslator();
|
|
127
128
|
const channel = "googlechat";
|
|
128
129
|
const ENV_SERVICE_ACCOUNT = "GOOGLE_CHAT_SERVICE_ACCOUNT";
|
|
129
130
|
const ENV_SERVICE_ACCOUNT_FILE = "GOOGLE_CHAT_SERVICE_ACCOUNT_FILE";
|
|
@@ -164,7 +165,7 @@ const googlechatDmPolicy = {
|
|
|
164
165
|
},
|
|
165
166
|
promptAllowFrom: createPromptParsedAllowFromForAccount({
|
|
166
167
|
defaultAccountId: resolveDefaultGoogleChatAccountId,
|
|
167
|
-
message: "
|
|
168
|
+
message: t("wizard.googlechat.allowFromPrompt"),
|
|
168
169
|
placeholder: "users/123456789, name@example.com",
|
|
169
170
|
parseEntries: (raw) => ({ entries: mergeAllowFromEntries(void 0, splitSetupEntries(raw)) }),
|
|
170
171
|
getExistingAllowFrom: ({ cfg, accountId }) => resolveGoogleChatAccount({
|
|
@@ -205,10 +206,10 @@ const googlechatSetupWizard = {
|
|
|
205
206
|
channel,
|
|
206
207
|
status: createStandardChannelSetupStatus({
|
|
207
208
|
channelLabel: "Google Chat",
|
|
208
|
-
configuredLabel: "
|
|
209
|
-
unconfiguredLabel: "
|
|
210
|
-
configuredHint: "
|
|
211
|
-
unconfiguredHint: "
|
|
209
|
+
configuredLabel: t("wizard.channels.statusConfigured"),
|
|
210
|
+
unconfiguredLabel: t("wizard.channels.statusNeedsServiceAccount"),
|
|
211
|
+
configuredHint: t("wizard.channels.statusConfigured"),
|
|
212
|
+
unconfiguredHint: t("wizard.channels.statusNeedsAuth"),
|
|
212
213
|
includeStatusLine: true,
|
|
213
214
|
resolveConfigured: ({ cfg, accountId }) => resolveGoogleChatAccount({
|
|
214
215
|
cfg,
|
|
@@ -216,18 +217,18 @@ const googlechatSetupWizard = {
|
|
|
216
217
|
}).credentialSource !== "none"
|
|
217
218
|
}),
|
|
218
219
|
introNote: {
|
|
219
|
-
title: "
|
|
220
|
+
title: t("wizard.googlechat.setupTitle"),
|
|
220
221
|
lines: [
|
|
221
|
-
"
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
|
|
222
|
+
t("wizard.googlechat.setupServiceAccount"),
|
|
223
|
+
t("wizard.googlechat.setupScopes"),
|
|
224
|
+
t("wizard.googlechat.setupAudience"),
|
|
225
|
+
t("wizard.channels.docs", { link: formatDocsLink("/channels/googlechat", "googlechat") })
|
|
225
226
|
]
|
|
226
227
|
},
|
|
227
228
|
prepare: async ({ cfg, accountId, credentialValues, prompter }) => {
|
|
228
229
|
if (accountId === DEFAULT_ACCOUNT_ID$1 && (Boolean(process.env[ENV_SERVICE_ACCOUNT]) || Boolean(process.env[ENV_SERVICE_ACCOUNT_FILE]))) {
|
|
229
230
|
if (await prompter.confirm({
|
|
230
|
-
message: "
|
|
231
|
+
message: t("wizard.googlechat.useEnvPrompt"),
|
|
231
232
|
initialValue: true
|
|
232
233
|
})) return {
|
|
233
234
|
cfg: applySetupAccountConfigPatch({
|
|
@@ -243,13 +244,13 @@ const googlechatSetupWizard = {
|
|
|
243
244
|
};
|
|
244
245
|
}
|
|
245
246
|
const method = await prompter.select({
|
|
246
|
-
message: "
|
|
247
|
+
message: t("wizard.googlechat.authMethod"),
|
|
247
248
|
options: [{
|
|
248
249
|
value: "file",
|
|
249
|
-
label: "
|
|
250
|
+
label: t("wizard.googlechat.serviceAccountFile")
|
|
250
251
|
}, {
|
|
251
252
|
value: "inline",
|
|
252
|
-
label: "
|
|
253
|
+
label: t("wizard.googlechat.serviceAccountInline")
|
|
253
254
|
}],
|
|
254
255
|
initialValue: "file"
|
|
255
256
|
});
|
|
@@ -262,13 +263,13 @@ const googlechatSetupWizard = {
|
|
|
262
263
|
credentials: [],
|
|
263
264
|
textInputs: [createServiceAccountTextInput({
|
|
264
265
|
inputKey: "tokenFile",
|
|
265
|
-
message: "
|
|
266
|
+
message: t("wizard.googlechat.serviceAccountPath"),
|
|
266
267
|
placeholder: "/path/to/service-account.json",
|
|
267
268
|
authMethod: "file",
|
|
268
269
|
patchKey: "serviceAccountFile"
|
|
269
270
|
}), createServiceAccountTextInput({
|
|
270
271
|
inputKey: "token",
|
|
271
|
-
message: "
|
|
272
|
+
message: t("wizard.googlechat.serviceAccountJson"),
|
|
272
273
|
placeholder: "{\"type\":\"service_account\", ... }",
|
|
273
274
|
authMethod: "inline",
|
|
274
275
|
patchKey: "serviceAccount"
|
|
@@ -279,13 +280,13 @@ const googlechatSetupWizard = {
|
|
|
279
280
|
accountId
|
|
280
281
|
});
|
|
281
282
|
const audienceType = await prompter.select({
|
|
282
|
-
message: "
|
|
283
|
+
message: t("wizard.googlechat.webhookAudienceType"),
|
|
283
284
|
options: [{
|
|
284
285
|
value: "app-url",
|
|
285
|
-
label: "
|
|
286
|
+
label: t("wizard.googlechat.appUrlRecommended")
|
|
286
287
|
}, {
|
|
287
288
|
value: "project-number",
|
|
288
|
-
label: "
|
|
289
|
+
label: t("wizard.googlechat.projectNumber")
|
|
289
290
|
}],
|
|
290
291
|
initialValue: account.config.audienceType === "project-number" ? "project-number" : "app-url"
|
|
291
292
|
});
|
|
@@ -297,10 +298,10 @@ const googlechatSetupWizard = {
|
|
|
297
298
|
patch: {
|
|
298
299
|
audienceType,
|
|
299
300
|
audience: normalizeOptionalString(await prompter.text({
|
|
300
|
-
message: audienceType === "project-number" ? "
|
|
301
|
+
message: audienceType === "project-number" ? t("wizard.googlechat.projectNumber") : t("wizard.googlechat.appUrl"),
|
|
301
302
|
placeholder: audienceType === "project-number" ? "1234567890" : "https://your.host/googlechat",
|
|
302
303
|
initialValue: account.config.audience || void 0,
|
|
303
|
-
validate: (value) => normalizeStringifiedOptionalString(value) ? void 0 : "
|
|
304
|
+
validate: (value) => normalizeStringifiedOptionalString(value) ? void 0 : t("common.required")
|
|
304
305
|
})) ?? ""
|
|
305
306
|
}
|
|
306
307
|
}),
|
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
|
+
"version": "2026.5.16-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.
|
|
20
|
+
"openclaw": ">=2026.5.16-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.
|
|
78
|
+
"pluginApi": ">=2026.5.16-beta.1"
|
|
79
79
|
},
|
|
80
80
|
"build": {
|
|
81
|
-
"openclawVersion": "2026.5.
|
|
81
|
+
"openclawVersion": "2026.5.16-beta.1"
|
|
82
82
|
},
|
|
83
83
|
"release": {
|
|
84
84
|
"publishToClawHub": true,
|