@openclaw/googlechat 2026.8.1 → 2026.8.2

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.
Files changed (46) hide show
  1. package/dist/{actions-Bsv9COyy.js → actions-D6pxn1Wt.js} +10 -9
  2. package/dist/api.js +2 -2
  3. package/dist/{approval-auth-DnqxUj0j.js → approval-auth-CSGubNJm.js} +2 -2
  4. package/dist/{approval-handler.runtime-5Yr5TCX6.js → approval-handler.runtime-YEjSHISM.js} +3 -3
  5. package/dist/{channel-DAC3b287.js → channel-DzU2exVT.js} +38 -33
  6. package/dist/{channel-base-BpHXDsur.js → channel-base-B3EzcV7X.js} +35 -23
  7. package/dist/channel-plugin-api.js +1 -1
  8. package/dist/{channel.adapters-C2dHazJR.js → channel.adapters-Cp5Cywji.js} +15 -13
  9. package/dist/{channel.runtime-DqiduEYL.js → channel.runtime-CeEvWgz_.js} +10 -9
  10. package/dist/directory-contract-api.js +1 -1
  11. package/dist/setup-plugin-api.js +1 -1
  12. package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/index.js +59 -40
  13. package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/index.js.map +1 -1
  14. package/node_modules/google-auth-library/node_modules/gcp-metadata/package.json +20 -23
  15. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.d.ts +1 -29
  16. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.js +13 -13
  17. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.js.map +1 -1
  18. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.d.ts +1 -0
  19. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.js +1 -1
  20. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.js.map +1 -1
  21. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.d.ts +2 -135
  22. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.js +35 -58
  23. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -1
  24. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js +8 -8
  25. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js.map +1 -1
  26. package/node_modules/google-auth-library/node_modules/google-logging-utils/package.json +16 -14
  27. package/node_modules/google-auth-library/package.json +7 -7
  28. package/package.json +5 -5
  29. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/LICENSE +0 -202
  30. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/README.md +0 -73
  31. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.d.ts +0 -1
  32. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js +0 -81
  33. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js.map +0 -1
  34. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.d.ts +0 -2
  35. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js +0 -31
  36. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js.map +0 -1
  37. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.d.ts +0 -89
  38. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js +0 -414
  39. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js.map +0 -1
  40. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.d.ts +0 -45
  41. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js +0 -68
  42. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js.map +0 -1
  43. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/package.json +0 -47
  44. /package/node_modules/google-auth-library/node_modules/{gcp-metadata/node_modules/google-logging-utils → google-logging-utils}/build/src/types.d.ts +0 -0
  45. /package/node_modules/google-auth-library/node_modules/{gcp-metadata/node_modules/google-logging-utils → google-logging-utils}/build/src/types.js +0 -0
  46. /package/node_modules/google-auth-library/node_modules/{gcp-metadata/node_modules/google-logging-utils → google-logging-utils}/build/src/types.js.map +0 -0
@@ -1,6 +1,6 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-BpHXDsur.js";
2
- import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-C2dHazJR.js";
3
- import { n as describeGoogleChatMessageTool } from "./channel-DAC3b287.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.js";
2
+ import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-Cp5Cywji.js";
3
+ import { n as describeGoogleChatMessageTool } from "./channel-DzU2exVT.js";
4
4
  import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
5
5
  import { jsonResult, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
6
6
  //#region extensions/googlechat/src/actions.ts
@@ -50,15 +50,16 @@ const googlechatMessageActions = {
50
50
  account,
51
51
  target: to
52
52
  });
53
+ const sent = await sendGoogleChatMessage({
54
+ account,
55
+ space,
56
+ text: content,
57
+ thread: threadId ?? void 0
58
+ });
53
59
  return jsonResult({
54
60
  ok: true,
55
61
  to: space,
56
- ...await sendGoogleChatMessage({
57
- account,
58
- space,
59
- text: content,
60
- thread: threadId ?? void 0
61
- })
62
+ ...sent
62
63
  });
63
64
  }
64
65
  throw new Error(`Action ${action} is not supported for provider ${providerId}.`);
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./channel-base-BpHXDsur.js";
2
- import { t as googlechatPlugin } from "./channel-DAC3b287.js";
1
+ import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./channel-base-B3EzcV7X.js";
2
+ import { t as googlechatPlugin } from "./channel-DzU2exVT.js";
3
3
  export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
@@ -1,5 +1,5 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-BpHXDsur.js";
2
- import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-C2dHazJR.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.js";
2
+ import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-Cp5Cywji.js";
3
3
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { createChannelApprovalAuth } from "openclaw/plugin-sdk/approval-auth-runtime";
5
5
  //#region extensions/googlechat/src/approval-auth.ts
@@ -1,6 +1,6 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-BpHXDsur.js";
2
- import { F as unregisterGoogleChatManualApprovalFollowupSuppression, M as registerGoogleChatManualApprovalFollowupSuppression, O as createGoogleChatApprovalToken, P as unregisterGoogleChatApprovalCardBindings, S as updateGoogleChatMessage, T as buildGoogleChatApprovalActionParameters, g as resolveGoogleChatOutboundSpace, j as registerGoogleChatApprovalCardBinding, w as GOOGLECHAT_APPROVAL_ACTION, x as sendGoogleChatMessage } from "./channel.adapters-C2dHazJR.js";
3
- import { i as shouldHandleGoogleChatNativeApprovalRequest, r as isGoogleChatNativeApprovalClientEnabled } from "./channel-DAC3b287.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.js";
2
+ import { F as unregisterGoogleChatManualApprovalFollowupSuppression, M as registerGoogleChatManualApprovalFollowupSuppression, O as createGoogleChatApprovalToken, P as unregisterGoogleChatApprovalCardBindings, S as updateGoogleChatMessage, T as buildGoogleChatApprovalActionParameters, g as resolveGoogleChatOutboundSpace, j as registerGoogleChatApprovalCardBinding, w as GOOGLECHAT_APPROVAL_ACTION, x as sendGoogleChatMessage } from "./channel.adapters-Cp5Cywji.js";
3
+ import { i as shouldHandleGoogleChatNativeApprovalRequest, r as isGoogleChatNativeApprovalClientEnabled } from "./channel-DzU2exVT.js";
4
4
  import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
5
5
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
@@ -1,8 +1,8 @@
1
- import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, o as inspectGoogleChatAccount, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-BpHXDsur.js";
2
- import { a as googlechatPairingTextAdapter, f as isGoogleChatSpaceTarget, h as resolveGoogleChatOutboundSessionRoute, i as googlechatOutboundAdapter, m as normalizeGoogleChatTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as isGoogleChatUserTarget, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters-C2dHazJR.js";
1
+ import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, o as inspectGoogleChatAccount, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-B3EzcV7X.js";
2
+ import { a as googlechatPairingTextAdapter, f as isGoogleChatSpaceTarget, h as resolveGoogleChatOutboundSessionRoute, i as googlechatOutboundAdapter, m as normalizeGoogleChatTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as isGoogleChatUserTarget, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters-Cp5Cywji.js";
3
3
  import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.js";
4
4
  import { t as DEFAULT_ACCOUNT_ID } from "./runtime-api-Dh0CNVS4.js";
5
- import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-DnqxUj0j.js";
5
+ import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-CSGubNJm.js";
6
6
  import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BLvSmTXT.js";
7
7
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DmWM0kwM.js";
8
8
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
@@ -83,6 +83,23 @@ function shouldSuppressLocalGoogleChatExecApprovalPrompt(params) {
83
83
  isNativeDeliveryEnabled: isGoogleChatNativeApprovalClientEnabled
84
84
  });
85
85
  }
86
+ const resolveGoogleChatOriginTarget = createChannelNativeOriginTargetResolver({
87
+ channel: "googlechat",
88
+ shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
89
+ resolveTurnSourceTarget: resolveTurnSourceGoogleChatOriginTarget,
90
+ resolveSessionTarget: resolveSessionGoogleChatOriginTarget
91
+ });
92
+ const resolveGoogleChatApproverDmTargets = createChannelApproverDmTargetResolver({
93
+ shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
94
+ resolveApprovers: getGoogleChatApprovalApprovers,
95
+ mapApprover: (approver, params) => {
96
+ const to = normalizeGoogleChatApproverId(approver);
97
+ return to ? {
98
+ to,
99
+ accountId: normalizeOptionalString(params.accountId)
100
+ } : null;
101
+ }
102
+ });
86
103
  const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapability({
87
104
  channel: "googlechat",
88
105
  channelLabel: "Google Chat",
@@ -113,23 +130,8 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
113
130
  resolveNativeDeliveryMode: () => "channel",
114
131
  requireMatchingTurnSourceChannel: true,
115
132
  resolveSuppressionAccountId: ({ target, request }) => normalizeOptionalString(target.accountId) ?? normalizeOptionalString(request.request.turnSourceAccountId),
116
- resolveOriginTarget: createChannelNativeOriginTargetResolver({
117
- channel: "googlechat",
118
- shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
119
- resolveTurnSourceTarget: resolveTurnSourceGoogleChatOriginTarget,
120
- resolveSessionTarget: resolveSessionGoogleChatOriginTarget
121
- }),
122
- resolveApproverDmTargets: createChannelApproverDmTargetResolver({
123
- shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
124
- resolveApprovers: getGoogleChatApprovalApprovers,
125
- mapApprover: (approver, params) => {
126
- const to = normalizeGoogleChatApproverId(approver);
127
- return to ? {
128
- to,
129
- accountId: normalizeOptionalString(params.accountId)
130
- } : null;
131
- }
132
- }),
133
+ resolveOriginTarget: resolveGoogleChatOriginTarget,
134
+ resolveApproverDmTargets: resolveGoogleChatApproverDmTargets,
133
135
  nativeRuntime: createLazyChannelApprovalNativeRuntimeAdapter({
134
136
  eventKinds: ["exec", "plugin"],
135
137
  isConfigured: ({ cfg, accountId }) => isGoogleChatNativeApprovalClientEnabled({
@@ -142,20 +144,23 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
142
144
  approvalKind,
143
145
  request
144
146
  }),
145
- load: async () => (await import("./approval-handler.runtime-5Yr5TCX6.js")).googleChatApprovalNativeRuntime
147
+ load: async () => (await import("./approval-handler.runtime-YEjSHISM.js")).googleChatApprovalNativeRuntime
146
148
  })
147
149
  });
150
+ //#endregion
151
+ //#region extensions/googlechat/src/doctor.ts
152
+ const isGoogleChatMutableAllowEntry = buildMutableAllowEntryDetector({
153
+ prefixes: [
154
+ "googlechat:",
155
+ "google-chat:",
156
+ "gchat:",
157
+ "users/"
158
+ ],
159
+ stableIdPattern: /^[^@]+$/
160
+ });
148
161
  const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMutableAllowlistWarningCollector({
149
162
  channel: "googlechat",
150
- detector: buildMutableAllowEntryDetector({
151
- prefixes: [
152
- "googlechat:",
153
- "google-chat:",
154
- "gchat:",
155
- "users/"
156
- ],
157
- stableIdPattern: /^[^@]+$/
158
- }),
163
+ detector: isGoogleChatMutableAllowEntry,
159
164
  collectLists: (scope) => collectStandardAllowlistLists(scope, {
160
165
  includeGroups: true,
161
166
  groupField: "users"
@@ -163,7 +168,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
163
168
  });
164
169
  //#endregion
165
170
  //#region extensions/googlechat/src/gateway.ts
166
- const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-DqiduEYL.js"), "googleChatChannelRuntime");
171
+ const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-CeEvWgz_.js"), "googleChatChannelRuntime");
167
172
  const UNRESOLVED_WEBHOOK_URL_ERROR = "Invalid webhookUrl: expected an absolute URL such as https://chat.example.com/googlechat. No inbound webhook route was registered.";
168
173
  async function startGoogleChatGatewayAccount(ctx) {
169
174
  const account = ctx.account;
@@ -241,13 +246,13 @@ function describeGoogleChatMessageTool({ cfg, accountId }) {
241
246
  }
242
247
  //#endregion
243
248
  //#region extensions/googlechat/src/channel.ts
244
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DqiduEYL.js"), "googleChatChannelRuntime");
249
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CeEvWgz_.js"), "googleChatChannelRuntime");
245
250
  const googlechatActions = {
246
251
  describeMessageTool: describeGoogleChatMessageTool,
247
252
  supportsAction: ({ action }) => action === "send",
248
253
  extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
249
254
  handleAction: async (ctx) => {
250
- const { googlechatMessageActions } = await import("./actions-Bsv9COyy.js");
255
+ const { googlechatMessageActions } = await import("./actions-D6pxn1Wt.js");
251
256
  if (!googlechatMessageActions.handleAction) throw new Error("Google Chat actions are not available.");
252
257
  return await googlechatMessageActions.handleAction(ctx);
253
258
  }
@@ -14,7 +14,7 @@ import { createPatchedAccountSetupAdapter, createSetupInputPresenceValidator } f
14
14
  import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
15
15
  import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, applySetupAccountConfigPatch, createPromptParsedAllowFromForAccount, createSetupTranslator, createStandardChannelSetupStatus, formatDocsLink, mergeAllowFromEntries, migrateBaseNameToDefaultAccount, splitSetupEntries } from "openclaw/plugin-sdk/setup";
16
16
  //#region extensions/googlechat/src/google-auth-limits.ts
17
- const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES = 64 * 1024;
17
+ const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES = 65536;
18
18
  //#endregion
19
19
  //#region extensions/googlechat/src/accounts.ts
20
20
  const ENV_SERVICE_ACCOUNT$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT";
@@ -76,7 +76,8 @@ function resolveCredentialsFromConfig(params) {
76
76
  };
77
77
  const file = normalizeOptionalString(account.serviceAccountFile);
78
78
  if (file) {
79
- const result = tryReadSecretFileSync(resolveUserPath(file), "Google Chat service account file", {
79
+ const resolvedFile = resolveUserPath(file);
80
+ const result = tryReadSecretFileSync(resolvedFile, "Google Chat service account file", {
80
81
  maxBytes: MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES,
81
82
  rejectHardlinks: false,
82
83
  rejectSymlink: false
@@ -102,7 +103,8 @@ function resolveCredentialsFromConfig(params) {
102
103
  };
103
104
  const envFile = normalizeOptionalString(process.env[ENV_SERVICE_ACCOUNT_FILE$1]);
104
105
  if (envFile) {
105
- const result = tryReadSecretFileSync(resolveUserPath(envFile), "Google Chat service account file", {
106
+ const resolvedEnvFile = resolveUserPath(envFile);
107
+ const result = tryReadSecretFileSync(resolvedEnvFile, "Google Chat service account file", {
106
108
  maxBytes: MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES,
107
109
  rejectHardlinks: false,
108
110
  rejectSymlink: false
@@ -155,10 +157,22 @@ function resolveGoogleChatAccount(params) {
155
157
  });
156
158
  }
157
159
  function inspectGoogleChatAccount(params) {
158
- return resolveGoogleChatAccountWithMode({
160
+ const account = resolveGoogleChatAccountWithMode({
159
161
  ...params,
160
162
  mode: "inspect"
161
163
  });
164
+ return {
165
+ ...account,
166
+ configured: isGoogleChatAccountConfigured(account),
167
+ audienceType: account.config.audienceType,
168
+ audience: account.config.audience,
169
+ webhookPath: account.config.webhookPath,
170
+ webhookUrl: account.config.webhookUrl,
171
+ dmPolicy: account.config.dmPolicy ?? "pairing"
172
+ };
173
+ }
174
+ function isGoogleChatAccountConfigured(account) {
175
+ return account.tokenStatus ? account.tokenStatus !== "missing" : account.credentialSource !== "none";
162
176
  }
163
177
  const googlechatSetupAdapter = createPatchedAccountSetupAdapter({
164
178
  channelKey: "googlechat",
@@ -252,6 +266,22 @@ const ENV_SERVICE_ACCOUNT = "GOOGLE_CHAT_SERVICE_ACCOUNT";
252
266
  const ENV_SERVICE_ACCOUNT_FILE = "GOOGLE_CHAT_SERVICE_ACCOUNT_FILE";
253
267
  const USE_ENV_FLAG = "__googlechatUseEnv";
254
268
  const AUTH_METHOD_FLAG = "__googlechatAuthMethod";
269
+ const promptAllowFrom = createPromptParsedAllowFromForAccount({
270
+ defaultAccountId: resolveDefaultGoogleChatAccountId,
271
+ message: t("wizard.googlechat.allowFromPrompt"),
272
+ placeholder: "users/123456789, name@example.com",
273
+ parseEntries: (raw) => ({ entries: mergeAllowFromEntries(void 0, splitSetupEntries(raw)) }),
274
+ getExistingAllowFrom: ({ cfg, accountId }) => resolveGoogleChatAccount({
275
+ cfg,
276
+ accountId
277
+ }).config.allowFrom ?? [],
278
+ applyAllowFrom: ({ cfg, accountId, allowFrom }) => applySetupAccountConfigPatch({
279
+ cfg,
280
+ channelKey: channel,
281
+ accountId,
282
+ patch: { allowFrom }
283
+ })
284
+ });
255
285
  const googlechatDmPolicy = createChannelDmPolicy({
256
286
  label: "Google Chat",
257
287
  channel,
@@ -265,22 +295,7 @@ const googlechatDmPolicy = createChannelDmPolicy({
265
295
  accountId: account.accountId,
266
296
  patch
267
297
  }),
268
- promptAllowFrom: createPromptParsedAllowFromForAccount({
269
- defaultAccountId: resolveDefaultGoogleChatAccountId,
270
- message: t("wizard.googlechat.allowFromPrompt"),
271
- placeholder: "users/123456789, name@example.com",
272
- parseEntries: (raw) => ({ entries: mergeAllowFromEntries(void 0, splitSetupEntries(raw)) }),
273
- getExistingAllowFrom: ({ cfg, accountId }) => resolveGoogleChatAccount({
274
- cfg,
275
- accountId
276
- }).config.allowFrom ?? [],
277
- applyAllowFrom: ({ cfg, accountId, allowFrom }) => applySetupAccountConfigPatch({
278
- cfg,
279
- channelKey: channel,
280
- accountId,
281
- patch: { allowFrom }
282
- })
283
- })
298
+ promptAllowFrom
284
299
  });
285
300
  function createServiceAccountTextInput(params) {
286
301
  return {
@@ -447,9 +462,6 @@ const googleChatConfigAdapter = createScopedChannelConfigAdapter({
447
462
  }),
448
463
  resolveDefaultTo: (account) => account.config.defaultTo
449
464
  });
450
- function isGoogleChatAccountConfigured(account) {
451
- return account.tokenStatus ? account.tokenStatus !== "missing" : account.credentialSource !== "none";
452
- }
453
465
  function createGoogleChatPluginBase(params = {}) {
454
466
  return {
455
467
  id: GOOGLECHAT_CHANNEL_ID,
@@ -1,2 +1,2 @@
1
- import { t as googlechatPlugin } from "./channel-DAC3b287.js";
1
+ import { t as googlechatPlugin } from "./channel-DzU2exVT.js";
2
2
  export { googlechatPlugin };
@@ -1,4 +1,4 @@
1
- import { l as resolveGoogleChatAccount, r as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-BpHXDsur.js";
1
+ import { l as resolveGoogleChatAccount, r as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-B3EzcV7X.js";
2
2
  import { d as fetchWithSsrFGuard$1, m as missingTargetError, r as PAIRING_APPROVED_MESSAGE } from "./runtime-api-Dh0CNVS4.js";
3
3
  import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/channel-core";
4
4
  import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
@@ -176,7 +176,7 @@ const GOOGLE_AUTH_PROVIDER_CERTS_URL = "https://www.googleapis.com/oauth2/v1/cer
176
176
  const GOOGLE_AUTH_TOKEN_URI = "https://oauth2.googleapis.com/token";
177
177
  const GOOGLE_AUTH_UNIVERSE_DOMAIN = "googleapis.com";
178
178
  const GOOGLE_CLIENT_CERTS_URL_PREFIX = "https://www.googleapis.com/robot/v1/metadata/x509/";
179
- const MAX_GOOGLE_AUTH_RESPONSE_BYTES = 1024 * 1024;
179
+ const MAX_GOOGLE_AUTH_RESPONSE_BYTES = 1048576;
180
180
  let googleAuthRuntimePromise = null;
181
181
  function normalizeGoogleAuthPreparedRequestHeaders(config) {
182
182
  if (!(config.headers instanceof Headers)) config.headers = new Headers(config.headers);
@@ -525,7 +525,7 @@ async function getGoogleChatAccessToken(account) {
525
525
  }
526
526
  async function fetchChatCerts() {
527
527
  const now = Date.now();
528
- if (cachedCerts && now - cachedCerts.fetchedAt < 600 * 1e3) return cachedCerts.certs;
528
+ if (cachedCerts && now - cachedCerts.fetchedAt < 6e5) return cachedCerts.certs;
529
529
  const { response, release } = await fetchWithSsrFGuard$1({
530
530
  url: CHAT_CERTS_URL,
531
531
  auditContext: "googlechat.auth.certs",
@@ -608,12 +608,12 @@ async function verifyGoogleChatRequest(params) {
608
608
  const CHAT_API_BASE = "https://chat.googleapis.com/v1";
609
609
  const GOOGLECHAT_API_TIMEOUT_MS = 3e4;
610
610
  const GOOGLECHAT_MEDIA_TIMEOUT_GRACE_MS = 3e4;
611
- const GOOGLECHAT_MEDIA_MIN_BYTES_PER_SECOND = 256 * 1024;
612
- const GOOGLECHAT_MEDIA_MAX_TIMEOUT_MS = 15 * 6e4;
611
+ const GOOGLECHAT_MEDIA_MIN_BYTES_PER_SECOND = 262144;
612
+ const GOOGLECHAT_MEDIA_MAX_TIMEOUT_MS = 9e5;
613
613
  const GOOGLECHAT_RESPONSE_READ_IDLE_TIMEOUT_MS = 3e4;
614
- const GOOGLECHAT_JSON_RESPONSE_MAX_BYTES = 16 * 1024 * 1024;
615
- const GOOGLECHAT_ERROR_BODY_MAX_BYTES = 16 * 1024;
616
- const GOOGLE_CHAT_MEDIA_RESPONSE_MAX_BYTES = 20 * 1024 * 1024;
614
+ const GOOGLECHAT_JSON_RESPONSE_MAX_BYTES = 16777216;
615
+ const GOOGLECHAT_ERROR_BODY_MAX_BYTES = 16384;
616
+ const GOOGLE_CHAT_MEDIA_RESPONSE_MAX_BYTES = 20971520;
617
617
  var GoogleChatApiError = class extends Error {
618
618
  constructor(status, message) {
619
619
  super(message);
@@ -634,12 +634,13 @@ async function readGoogleChatJsonResponse(response, label) {
634
634
  });
635
635
  }
636
636
  async function readGoogleChatErrorResponse(response, label) {
637
- return redactToolPayloadText(await readResponseTextSnippet(response, {
637
+ const text = await readResponseTextSnippet(response, {
638
638
  maxBytes: GOOGLECHAT_ERROR_BODY_MAX_BYTES,
639
639
  maxChars: GOOGLECHAT_ERROR_BODY_MAX_BYTES,
640
640
  chunkTimeoutMs: GOOGLECHAT_RESPONSE_READ_IDLE_TIMEOUT_MS,
641
641
  onIdleTimeout: ({ chunkTimeoutMs }) => /* @__PURE__ */ new Error(`${label} error response stalled after ${chunkTimeoutMs}ms`)
642
- }) ?? "");
642
+ }) ?? "";
643
+ return redactToolPayloadText(text);
643
644
  }
644
645
  const headersToObject = (headers) => headers instanceof Headers ? Object.fromEntries(headers.entries()) : Array.isArray(headers) ? Object.fromEntries(headers) : headers || {};
645
646
  async function withGoogleChatResponse(params) {
@@ -1090,7 +1091,8 @@ function emitGoogleChatBlockquotes(text, markers) {
1090
1091
  return rendered;
1091
1092
  }
1092
1093
  function prepareGoogleChatIR(text) {
1093
- const ir = projectGoogleChatPlainLiterals(projectGoogleChatLinkLabels(projectDecodedGoogleChatResources(projectUnsafeCodeFallbacks(markdownToIR(sanitizeGoogleChatText(text), {
1094
+ const sanitized = sanitizeGoogleChatText(text);
1095
+ const ir = projectGoogleChatPlainLiterals(projectGoogleChatLinkLabels(projectDecodedGoogleChatResources(projectUnsafeCodeFallbacks(markdownToIR(sanitized, {
1094
1096
  enableSpoilers: true,
1095
1097
  enableTaskLists: true,
1096
1098
  headingStyle: "rich",
@@ -1157,7 +1159,7 @@ function formatGoogleChatTextChunks(text, limit = GOOGLE_CHAT_FORMAT_PROFILE.chu
1157
1159
  return renderMarkdownIRChunksWithinLimit({
1158
1160
  ir: prepared.ir,
1159
1161
  limit: Math.min(limit, GOOGLE_CHAT_FORMAT_PROFILE.chunk.limit),
1160
- measureRendered: (rendered) => new TextEncoder().encode(rendered).byteLength,
1162
+ measureRendered: (rendered) => Buffer.byteLength(rendered, "utf8"),
1161
1163
  renderChunk: (chunk) => renderGoogleChatIR(chunk, prepared.markers)
1162
1164
  }).map((chunk) => chunk.rendered);
1163
1165
  }
@@ -1215,7 +1217,7 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
1215
1217
  });
1216
1218
  //#endregion
1217
1219
  //#region extensions/googlechat/src/channel.adapters.ts
1218
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DqiduEYL.js"), "googleChatChannelRuntime");
1220
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CeEvWgz_.js"), "googleChatChannelRuntime");
1219
1221
  function createGoogleChatSendReceipt(params) {
1220
1222
  const messageId = params.messageId?.trim();
1221
1223
  return createMessageReceiptFromOutboundResults({
@@ -1,6 +1,6 @@
1
- import { A as readGoogleChatApprovalActionToken, C as verifyGoogleChatRequest, D as completeGoogleChatApprovalCardBinding, E as claimGoogleChatApprovalCardBinding, N as releaseGoogleChatApprovalCardBinding, S as updateGoogleChatMessage, _ as GoogleChatApiError, b as probeGoogleChat, c as googleChatIngressIdentity, d as isGoogleChatGroupSpace, k as getGoogleChatApprovalCardBinding, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as deleteGoogleChatMessage, x as sendGoogleChatMessage, y as downloadGoogleChatMedia } from "./channel.adapters-C2dHazJR.js";
1
+ import { A as readGoogleChatApprovalActionToken, C as verifyGoogleChatRequest, D as completeGoogleChatApprovalCardBinding, E as claimGoogleChatApprovalCardBinding, N as releaseGoogleChatApprovalCardBinding, S as updateGoogleChatMessage, _ as GoogleChatApiError, b as probeGoogleChat, c as googleChatIngressIdentity, d as isGoogleChatGroupSpace, k as getGoogleChatApprovalCardBinding, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as deleteGoogleChatMessage, x as sendGoogleChatMessage, y as downloadGoogleChatMedia } from "./channel.adapters-Cp5Cywji.js";
2
2
  import { C as resolveWebhookPath, E as warnMissingProviderGroupPolicyFallbackOnce, O as getGoogleChatRuntime, b as resolveAllowlistProviderRuntimeGroupPolicy, c as createChannelPairingController, f as isDangerousNameMatchingEnabled, n as GROUP_POLICY_BLOCKED_LABEL, x as resolveDefaultGroupPolicy } from "./runtime-api-Dh0CNVS4.js";
3
- import { n as googleChatApprovalAuth } from "./approval-auth-DnqxUj0j.js";
3
+ import { n as googleChatApprovalAuth } from "./approval-auth-CSGubNJm.js";
4
4
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
6
6
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
@@ -25,7 +25,7 @@ function escapeGoogleChatText(text) {
25
25
  return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
26
26
  }
27
27
  function truncateText(text) {
28
- return text.length <= MAX_TEXT_PARAGRAPH_CHARS ? text : `${truncateUtf16Safe(text, MAX_TEXT_PARAGRAPH_CHARS - 3)}...`;
28
+ return text.length <= MAX_TEXT_PARAGRAPH_CHARS ? text : `${truncateUtf16Safe(text, 1797)}...`;
29
29
  }
30
30
  function formatApprovalId(value) {
31
31
  return JSON.stringify(value).slice(1, -1);
@@ -694,7 +694,7 @@ function extractBearerToken(header) {
694
694
  const authHeader = Array.isArray(header) ? typeof header[0] === "string" ? header[0] : "" : typeof header === "string" ? header : "";
695
695
  return normalizeLowercaseStringOrEmpty(authHeader).startsWith("bearer ") ? authHeader.slice(7).trim() : "";
696
696
  }
697
- const ADD_ON_PREAUTH_MAX_BYTES = 16 * 1024;
697
+ const ADD_ON_PREAUTH_MAX_BYTES = 16384;
698
698
  const ADD_ON_PREAUTH_TIMEOUT_MS = 3e3;
699
699
  const GOOGLECHAT_WEBHOOK_ACCEPTED_HEADER = "x-openclaw-delivery-accepted";
700
700
  const GOOGLECHAT_WEBHOOK_ACCEPTED_VALUE = "durable";
@@ -1155,14 +1155,15 @@ async function processMessageWithPipeline(params) {
1155
1155
  let typingMessage;
1156
1156
  const typingMessageThreadName = account.config.replyToMode && account.config.replyToMode !== "off" ? replyThreadName : void 0;
1157
1157
  if (typingIndicator === "message") try {
1158
+ const botName = resolveBotDisplayName({
1159
+ accountName: account.config.name,
1160
+ agentId: route.agentId,
1161
+ config
1162
+ });
1158
1163
  const result = await sendGoogleChatMessage({
1159
1164
  account,
1160
1165
  space: spaceId,
1161
- text: `_${resolveBotDisplayName({
1162
- accountName: account.config.name,
1163
- agentId: route.agentId,
1164
- config
1165
- })} is typing..._`,
1166
+ text: `_${botName} is typing..._`,
1166
1167
  thread: typingMessageThreadName
1167
1168
  });
1168
1169
  if (result?.messageName) typingMessage = createGoogleChatTypingMessage({
@@ -1,4 +1,4 @@
1
- import { t as googlechatDirectoryAdapter } from "./channel.adapters-C2dHazJR.js";
1
+ import { t as googlechatDirectoryAdapter } from "./channel.adapters-Cp5Cywji.js";
2
2
  //#region extensions/googlechat/directory-contract-api.ts
3
3
  const googlechatDirectoryContractPlugin = {
4
4
  id: "googlechat",
@@ -1,4 +1,4 @@
1
- import { n as createGoogleChatPluginBase } from "./channel-base-BpHXDsur.js";
1
+ import { n as createGoogleChatPluginBase } from "./channel-base-B3EzcV7X.js";
2
2
  //#region extensions/googlechat/src/channel.setup.ts
3
3
  const googlechatSetupPlugin = createGoogleChatPluginBase();
4
4
  //#endregion
@@ -309,49 +309,68 @@ async function isAvailable() {
309
309
  // runtime environment. We use the same promise for each of these calls
310
310
  // to reduce the network load.
311
311
  if (cachedIsAvailableResponse === undefined) {
312
- cachedIsAvailableResponse = metadataAccessor('instance', undefined, detectGCPAvailableRetries(),
313
- // If the default HOST_ADDRESS has been overridden, we should not
314
- // make an effort to try SECONDARY_HOST_ADDRESS (as we are likely in
315
- // a non-GCP environment):
316
- !(process.env.GCE_METADATA_IP || process.env.GCE_METADATA_HOST));
312
+ cachedIsAvailableResponse = (async () => {
313
+ try {
314
+ await metadataAccessor('instance', undefined, detectGCPAvailableRetries(),
315
+ // If the default HOST_ADDRESS has been overridden, we should not
316
+ // make an effort to try SECONDARY_HOST_ADDRESS (as we are likely in
317
+ // a non-GCP environment):
318
+ !(process.env.GCE_METADATA_IP || process.env.GCE_METADATA_HOST));
319
+ return true;
320
+ }
321
+ catch (e) {
322
+ const err = e;
323
+ if (process.env.DEBUG_AUTH) {
324
+ console.info(err);
325
+ }
326
+ if (err.type === 'request-timeout') {
327
+ // If running in a GCP environment, metadata endpoint should return
328
+ // within ms.
329
+ return false;
330
+ }
331
+ if (err.response && err.response.status === 404) {
332
+ return false;
333
+ }
334
+ else {
335
+ const errObj = e;
336
+ const getErrorCodes = (err) => {
337
+ if (!err)
338
+ return ['UNKNOWN'];
339
+ if (err.name === 'AggregateError' && Array.isArray(err.errors)) {
340
+ return err.errors.flatMap(getErrorCodes);
341
+ }
342
+ if (err.code) {
343
+ return [err.code.toString()];
344
+ }
345
+ if (err.cause) {
346
+ return getErrorCodes(err.cause);
347
+ }
348
+ return ['UNKNOWN'];
349
+ };
350
+ const codes = getErrorCodes(errObj);
351
+ const isExpected = codes.every((code) => [
352
+ 'EHOSTDOWN',
353
+ 'EHOSTUNREACH',
354
+ 'ENETUNREACH',
355
+ 'ENOENT',
356
+ 'ENOTFOUND',
357
+ 'ECONNREFUSED',
358
+ ].includes(code));
359
+ if (!isExpected) {
360
+ const code = err.code ? err.code.toString() : 'UNKNOWN';
361
+ process.emitWarning(`received unexpected error = ${err.message} code = ${code}`, 'MetadataLookupWarning');
362
+ }
363
+ // Failure to resolve the metadata service means that it is not available.
364
+ return false;
365
+ }
366
+ }
367
+ })();
317
368
  }
318
- await cachedIsAvailableResponse;
319
- return true;
369
+ return await cachedIsAvailableResponse;
320
370
  }
321
371
  catch (e) {
322
- const err = e;
323
- if (process.env.DEBUG_AUTH) {
324
- console.info(err);
325
- }
326
- if (err.type === 'request-timeout') {
327
- // If running in a GCP environment, metadata endpoint should return
328
- // within ms.
329
- return false;
330
- }
331
- if (err.response && err.response.status === 404) {
332
- return false;
333
- }
334
- else {
335
- if (!(err.response && err.response.status === 404) &&
336
- // A warning is emitted if we see an unexpected err.code, or err.code
337
- // is not populated:
338
- (!err.code ||
339
- ![
340
- 'EHOSTDOWN',
341
- 'EHOSTUNREACH',
342
- 'ENETUNREACH',
343
- 'ENOENT',
344
- 'ENOTFOUND',
345
- 'ECONNREFUSED',
346
- ].includes(err.code.toString()))) {
347
- let code = 'UNKNOWN';
348
- if (err.code)
349
- code = err.code.toString();
350
- process.emitWarning(`received unexpected error = ${err.message} code = ${code}`, 'MetadataLookupWarning');
351
- }
352
- // Failure to resolve the metadata service means that it is not available.
353
- return false;
354
- }
372
+ // This block should technically not be reached because the async IIFE catches its own errors
373
+ return false;
355
374
  }
356
375
  }
357
376
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources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