@openclaw/googlechat 2026.7.2-beta.4 → 2026.7.2-beta.5

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 (31) hide show
  1. package/README.md +1 -1
  2. package/dist/{actions-DBF3ImbA.js → actions-wnreW-IQ.js} +2 -2
  3. package/dist/api.js +2 -2
  4. package/dist/{approval-auth-BztBRceh.js → approval-auth-G-OFufNc.js} +2 -2
  5. package/dist/{approval-handler.runtime-CWoYapMp.js → approval-handler.runtime-BJXVLK9y.js} +3 -3
  6. package/dist/{channel-DMP6V9MO.js → channel-CehfTiWZ.js} +8 -8
  7. package/dist/{channel-base-BOLIr2sb.js → channel-base-CC85hRUC.js} +23 -43
  8. package/dist/channel-plugin-api.js +1 -1
  9. package/dist/{channel.adapters-X7Hlcajj.js → channel.adapters-DLatFGZz.js} +5 -13
  10. package/dist/{channel.runtime-rGazhnxA.js → channel.runtime-Bz0__ttC.js} +2 -2
  11. package/dist/directory-contract-api.js +1 -1
  12. package/dist/{doctor-contract-CWlBAcKf.js → doctor-contract-BpuSvJro.js} +14 -43
  13. package/dist/doctor-contract-api.js +1 -1
  14. package/dist/setup-plugin-api.js +1 -1
  15. package/node_modules/google-logging-utils/build/src/colours.d.ts +29 -1
  16. package/node_modules/google-logging-utils/build/src/colours.js +13 -13
  17. package/node_modules/google-logging-utils/build/src/colours.js.map +1 -1
  18. package/node_modules/google-logging-utils/build/src/index.d.ts +0 -1
  19. package/node_modules/google-logging-utils/build/src/index.js +1 -1
  20. package/node_modules/google-logging-utils/build/src/index.js.map +1 -1
  21. package/node_modules/google-logging-utils/build/src/logging-utils.d.ts +135 -2
  22. package/node_modules/google-logging-utils/build/src/logging-utils.js +58 -35
  23. package/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -1
  24. package/node_modules/google-logging-utils/build/src/temporal.js +8 -8
  25. package/node_modules/google-logging-utils/build/src/temporal.js.map +1 -1
  26. package/node_modules/google-logging-utils/package.json +9 -11
  27. package/package.json +4 -5
  28. package/node_modules/google-logging-utils/build/src/types.d.ts +0 -78
  29. package/node_modules/google-logging-utils/build/src/types.js +0 -16
  30. package/node_modules/google-logging-utils/build/src/types.js.map +0 -1
  31. package/npm-shrinkwrap.json +0 -313
package/README.md CHANGED
@@ -5,7 +5,7 @@ Official OpenClaw channel plugin for Google Chat spaces and direct messages.
5
5
  Install from OpenClaw:
6
6
 
7
7
  ```bash
8
- openclaw plugin add @openclaw/googlechat
8
+ openclaw plugins install @openclaw/googlechat
9
9
  ```
10
10
 
11
11
  Configure the Google Chat app credentials and allowed spaces in OpenClaw. The plugin lets agents receive Google Chat events and reply through the configured app.
@@ -1,5 +1,5 @@
1
- import { l as resolveGoogleChatAccount, o as listEnabledGoogleChatAccounts } from "./channel-base-BOLIr2sb.js";
2
- import { m as resolveGoogleChatOutboundSpace, v as sendGoogleChatMessage } from "./channel.adapters-X7Hlcajj.js";
1
+ import { l as resolveGoogleChatAccount, o as listEnabledGoogleChatAccounts } from "./channel-base-CC85hRUC.js";
2
+ import { m as resolveGoogleChatOutboundSpace, v as sendGoogleChatMessage } from "./channel.adapters-DLatFGZz.js";
3
3
  import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
4
4
  import { jsonResult, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
5
5
  //#region extensions/googlechat/src/actions.ts
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./channel-base-BOLIr2sb.js";
2
- import { t as googlechatPlugin } from "./channel-DMP6V9MO.js";
1
+ import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./channel-base-CC85hRUC.js";
2
+ import { t as googlechatPlugin } from "./channel-CehfTiWZ.js";
3
3
  export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
@@ -1,5 +1,5 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-BOLIr2sb.js";
2
- import { d as isGoogleChatUserTarget, f as normalizeGoogleChatTarget } from "./channel.adapters-X7Hlcajj.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-CC85hRUC.js";
2
+ import { d as isGoogleChatUserTarget, f as normalizeGoogleChatTarget } from "./channel.adapters-DLatFGZz.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-BOLIr2sb.js";
2
- import { M as unregisterGoogleChatManualApprovalFollowupSuppression, O as registerGoogleChatApprovalCardBinding, S as buildGoogleChatApprovalActionParameters, T as createGoogleChatApprovalToken, j as unregisterGoogleChatApprovalCardBindings, k as registerGoogleChatManualApprovalFollowupSuppression, m as resolveGoogleChatOutboundSpace, v as sendGoogleChatMessage, x as GOOGLECHAT_APPROVAL_ACTION, y as updateGoogleChatMessage } from "./channel.adapters-X7Hlcajj.js";
3
- import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-DMP6V9MO.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-CC85hRUC.js";
2
+ import { M as unregisterGoogleChatManualApprovalFollowupSuppression, O as registerGoogleChatApprovalCardBinding, S as buildGoogleChatApprovalActionParameters, T as createGoogleChatApprovalToken, j as unregisterGoogleChatApprovalCardBindings, k as registerGoogleChatManualApprovalFollowupSuppression, m as resolveGoogleChatOutboundSpace, v as sendGoogleChatMessage, x as GOOGLECHAT_APPROVAL_ACTION, y as updateGoogleChatMessage } from "./channel.adapters-DLatFGZz.js";
3
+ import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-CehfTiWZ.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,9 +1,9 @@
1
- import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-BOLIr2sb.js";
2
- import { a as googlechatPairingTextAdapter, d as isGoogleChatUserTarget, f as normalizeGoogleChatTarget, i as googlechatOutboundAdapter, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as resolveGoogleChatOutboundSessionRoute, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter, u as isGoogleChatSpaceTarget } from "./channel.adapters-X7Hlcajj.js";
1
+ import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-CC85hRUC.js";
2
+ import { a as googlechatPairingTextAdapter, d as isGoogleChatUserTarget, f as normalizeGoogleChatTarget, i as googlechatOutboundAdapter, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as resolveGoogleChatOutboundSessionRoute, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter, u as isGoogleChatSpaceTarget } from "./channel.adapters-DLatFGZz.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-BztBRceh.js";
6
- import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-CWlBAcKf.js";
5
+ import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-G-OFufNc.js";
6
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BpuSvJro.js";
7
7
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-BFYyuE0F.js";
8
8
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
9
9
  import { buildPassiveProbedChannelStatusSummary } from "openclaw/plugin-sdk/extension-shared";
@@ -141,7 +141,7 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
141
141
  approvalKind,
142
142
  request
143
143
  }),
144
- load: async () => (await import("./approval-handler.runtime-CWoYapMp.js")).googleChatApprovalNativeRuntime
144
+ load: async () => (await import("./approval-handler.runtime-BJXVLK9y.js")).googleChatApprovalNativeRuntime
145
145
  })
146
146
  });
147
147
  const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMutableAllowlistWarningCollector({
@@ -164,7 +164,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
164
164
  });
165
165
  //#endregion
166
166
  //#region extensions/googlechat/src/gateway.ts
167
- const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-rGazhnxA.js"), "googleChatChannelRuntime");
167
+ const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bz0__ttC.js"), "googleChatChannelRuntime");
168
168
  async function startGoogleChatGatewayAccount(ctx) {
169
169
  const account = ctx.account;
170
170
  const statusSink = createAccountStatusSink({
@@ -226,7 +226,7 @@ async function startGoogleChatGatewayAccount(ctx) {
226
226
  }
227
227
  //#endregion
228
228
  //#region extensions/googlechat/src/channel.ts
229
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-rGazhnxA.js"), "googleChatChannelRuntime");
229
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bz0__ttC.js"), "googleChatChannelRuntime");
230
230
  const googlechatActions = {
231
231
  describeMessageTool: ({ cfg, accountId }) => {
232
232
  if ((accountId ? [resolveGoogleChatAccount({
@@ -241,7 +241,7 @@ const googlechatActions = {
241
241
  supportsAction: ({ action }) => action === "send",
242
242
  extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
243
243
  handleAction: async (ctx) => {
244
- const { googlechatMessageActions } = await import("./actions-DBF3ImbA.js");
244
+ const { googlechatMessageActions } = await import("./actions-wnreW-IQ.js");
245
245
  if (!googlechatMessageActions.handleAction) throw new Error("Google Chat actions are not available.");
246
246
  return await googlechatMessageActions.handleAction(ctx);
247
247
  }
@@ -1,17 +1,18 @@
1
1
  import { safeParseJsonWithSchema, safeParseWithSchema } from "openclaw/plugin-sdk/extension-shared";
2
2
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
3
- import { DEFAULT_ACCOUNT_ID, createAccountListHelpers, normalizeAccountId, resolveAccountEntry, resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-resolution";
3
+ import { createAccountListHelpers, describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
4
+ import { DEFAULT_ACCOUNT_ID, normalizeAccountId, resolveAccountEntry } from "openclaw/plugin-sdk/account-resolution";
4
5
  import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
5
6
  import { tryReadSecretFileSync } from "openclaw/plugin-sdk/secret-file-runtime";
6
7
  import { isSecretRef } from "openclaw/plugin-sdk/secret-input";
7
8
  import { resolveUserPath } from "openclaw/plugin-sdk/text-utility-runtime";
8
9
  import { z } from "zod";
9
- import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
10
10
  import { formatNormalizedAllowFromEntries } from "openclaw/plugin-sdk/allow-from";
11
11
  import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
12
12
  import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
13
13
  import { createPatchedAccountSetupAdapter, createSetupInputPresenceValidator } from "openclaw/plugin-sdk/setup-runtime";
14
- import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, addWildcardAllowFrom, applySetupAccountConfigPatch, createPromptParsedAllowFromForAccount, createSetupTranslator, createStandardChannelSetupStatus, formatDocsLink, mergeAllowFromEntries, migrateBaseNameToDefaultAccount, splitSetupEntries } from "openclaw/plugin-sdk/setup";
14
+ import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
15
+ import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, applySetupAccountConfigPatch, createPromptParsedAllowFromForAccount, createSetupTranslator, createStandardChannelSetupStatus, formatDocsLink, mergeAllowFromEntries, migrateBaseNameToDefaultAccount, splitSetupEntries } from "openclaw/plugin-sdk/setup";
15
16
  //#region extensions/googlechat/src/google-auth-limits.ts
16
17
  const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES = 64 * 1024;
17
18
  //#endregion
@@ -19,19 +20,17 @@ const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES = 64 * 1024;
19
20
  const ENV_SERVICE_ACCOUNT$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT";
20
21
  const ENV_SERVICE_ACCOUNT_FILE$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT_FILE";
21
22
  const JsonRecordSchema = z.record(z.string(), z.unknown());
22
- const { listAccountIds: listGoogleChatAccountIds, resolveDefaultAccountId: resolveDefaultGoogleChatAccountId } = createAccountListHelpers("googlechat", { implicitDefaultAccount: {
23
- channelKeys: ["serviceAccount", "serviceAccountFile"],
24
- envVars: [ENV_SERVICE_ACCOUNT$1, ENV_SERVICE_ACCOUNT_FILE$1]
25
- } });
23
+ const { listAccountIds: listGoogleChatAccountIds, resolveDefaultAccountId: resolveDefaultGoogleChatAccountId, resolveAccountConfig: resolveMergedGoogleChatAccountConfig } = createAccountListHelpers("googlechat", {
24
+ implicitDefaultAccount: {
25
+ channelKeys: ["serviceAccount", "serviceAccountFile"],
26
+ envVars: [ENV_SERVICE_ACCOUNT$1, ENV_SERVICE_ACCOUNT_FILE$1]
27
+ },
28
+ omitKeys: ["defaultAccount"],
29
+ nestedObjectKeys: ["botLoopProtection"]
30
+ });
26
31
  function mergeGoogleChatAccountConfig(cfg, accountId) {
27
32
  const raw = cfg.channels?.["googlechat"] ?? {};
28
- const base = resolveMergedAccountConfig({
29
- channelConfig: raw,
30
- accounts: raw.accounts,
31
- accountId,
32
- omitKeys: ["defaultAccount"],
33
- nestedObjectKeys: ["botLoopProtection"]
34
- });
33
+ const base = resolveMergedGoogleChatAccountConfig(cfg, accountId);
35
34
  const defaultAccountConfig = resolveAccountEntry(raw.accounts, DEFAULT_ACCOUNT_ID) ?? {};
36
35
  if (accountId === DEFAULT_ACCOUNT_ID) return base;
37
36
  const { enabled: _ignoredEnabled, dangerouslyAllowNameMatching: _ignoredDangerouslyAllowNameMatching, serviceAccount: _ignoredServiceAccount, serviceAccountFile: _ignoredServiceAccountFile, ...defaultAccountShared } = defaultAccountConfig;
@@ -232,38 +231,19 @@ const ENV_SERVICE_ACCOUNT = "GOOGLE_CHAT_SERVICE_ACCOUNT";
232
231
  const ENV_SERVICE_ACCOUNT_FILE = "GOOGLE_CHAT_SERVICE_ACCOUNT_FILE";
233
232
  const USE_ENV_FLAG = "__googlechatUseEnv";
234
233
  const AUTH_METHOD_FLAG = "__googlechatAuthMethod";
235
- const googlechatDmPolicy = {
234
+ const googlechatDmPolicy = createChannelDmPolicy({
236
235
  label: "Google Chat",
237
236
  channel,
238
- policyKey: "channels.googlechat.dmPolicy",
239
- allowFromKey: "channels.googlechat.allowFrom",
240
- resolveConfigKeys: (cfg, accountId) => (accountId ?? resolveDefaultGoogleChatAccountId(cfg)) !== DEFAULT_ACCOUNT_ID$1 ? {
241
- policyKey: `channels.googlechat.accounts.${accountId ?? resolveDefaultGoogleChatAccountId(cfg)}.dmPolicy`,
242
- allowFromKey: `channels.googlechat.accounts.${accountId ?? resolveDefaultGoogleChatAccountId(cfg)}.allowFrom`
243
- } : {
244
- policyKey: "channels.googlechat.dmPolicy",
245
- allowFromKey: "channels.googlechat.allowFrom"
246
- },
247
- getCurrent: (cfg, accountId) => resolveGoogleChatAccount({
237
+ resolveAccount: (cfg, accountId) => resolveGoogleChatAccount({
248
238
  cfg,
249
239
  accountId: accountId ?? resolveDefaultGoogleChatAccountId(cfg)
250
- }).config.dmPolicy ?? "pairing",
251
- setPolicy: (cfg, policy, accountId) => {
252
- const resolvedAccountId = accountId ?? resolveDefaultGoogleChatAccountId(cfg);
253
- const current = resolveGoogleChatAccount({
254
- cfg,
255
- accountId: resolvedAccountId
256
- }).config;
257
- return applySetupAccountConfigPatch({
258
- cfg,
259
- channelKey: channel,
260
- accountId: resolvedAccountId,
261
- patch: {
262
- dmPolicy: policy,
263
- ...policy === "open" ? { allowFrom: addWildcardAllowFrom(current.allowFrom) } : {}
264
- }
265
- });
266
- },
240
+ }),
241
+ applyPatch: ({ cfg, account, patch }) => applySetupAccountConfigPatch({
242
+ cfg,
243
+ channelKey: channel,
244
+ accountId: account.accountId,
245
+ patch
246
+ }),
267
247
  promptAllowFrom: createPromptParsedAllowFromForAccount({
268
248
  defaultAccountId: resolveDefaultGoogleChatAccountId,
269
249
  message: t("wizard.googlechat.allowFromPrompt"),
@@ -280,7 +260,7 @@ const googlechatDmPolicy = {
280
260
  patch: { allowFrom }
281
261
  })
282
262
  })
283
- };
263
+ });
284
264
  function createServiceAccountTextInput(params) {
285
265
  return {
286
266
  inputKey: params.inputKey,
@@ -1,2 +1,2 @@
1
- import { t as googlechatPlugin } from "./channel-DMP6V9MO.js";
1
+ import { t as googlechatPlugin } from "./channel-CehfTiWZ.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-BOLIr2sb.js";
1
+ import { l as resolveGoogleChatAccount, r as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-CC85hRUC.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";
@@ -12,7 +12,7 @@ import crypto from "node:crypto";
12
12
  import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
13
13
  import { readProviderJsonResponse } from "openclaw/plugin-sdk/provider-http";
14
14
  import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter, sanitizeForPlainText } from "openclaw/plugin-sdk/channel-outbound";
15
- import { markdownToIR, renderMarkdownIRChunksWithinLimit, renderMarkdownWithMarkers, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
15
+ import { FormatCapabilityProfile, markdownToIR, renderMarkdownIRChunksWithinLimit, renderMarkdownWithMarkers, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
16
16
  import fs from "node:fs/promises";
17
17
  import { adaptScopedAccountAccessor } from "openclaw/plugin-sdk/channel-config-helpers";
18
18
  import { buildChannelGroupsScopeTree, composeAccountWarningCollectors, createAllowlistProviderOpenWarningCollector, resolveScopeRequireMention } from "openclaw/plugin-sdk/channel-policy";
@@ -868,24 +868,16 @@ async function resolveGoogleChatOutboundSessionRoute(params) {
868
868
  }
869
869
  //#endregion
870
870
  //#region extensions/googlechat/src/format.ts
871
- const GOOGLE_CHAT_FORMAT_PROFILE = {
871
+ const GOOGLE_CHAT_FORMAT_PROFILE = FormatCapabilityProfile.define({
872
872
  mechanism: "markdown",
873
873
  constructs: {
874
- bold: "native",
875
- italic: "native",
876
874
  underline: "fallback",
877
- strikethrough: "native",
878
875
  spoiler: "fallback",
879
- codeInline: "native",
880
- codeBlock: "native",
881
876
  codeLanguage: "fallback",
882
- linkLabel: "native",
883
877
  heading: "fallback",
884
- bulletList: "native",
885
878
  orderedList: "fallback",
886
879
  taskList: "fallback",
887
880
  table: "fallback",
888
- blockquote: "native",
889
881
  image: "fallback",
890
882
  mention: "strip"
891
883
  },
@@ -893,7 +885,7 @@ const GOOGLE_CHAT_FORMAT_PROFILE = {
893
885
  limit: 32e3,
894
886
  unit: "bytes"
895
887
  }
896
- };
888
+ });
897
889
  const GOOGLE_CHAT_LITERAL_FALLBACKS = /* @__PURE__ */ new Map([
898
890
  ["*", "*"],
899
891
  ["_", "_"],
@@ -1169,7 +1161,7 @@ function resolveGoogleChatGroupRequireMention(params) {
1169
1161
  }
1170
1162
  //#endregion
1171
1163
  //#region extensions/googlechat/src/channel.adapters.ts
1172
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-rGazhnxA.js"), "googleChatChannelRuntime");
1164
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bz0__ttC.js"), "googleChatChannelRuntime");
1173
1165
  function createGoogleChatSendReceipt(params) {
1174
1166
  const messageId = params.messageId?.trim();
1175
1167
  return createMessageReceiptFromOutboundResults({
@@ -1,6 +1,6 @@
1
- import { A as releaseGoogleChatApprovalCardBinding, C as claimGoogleChatApprovalCardBinding, D as readGoogleChatApprovalActionToken, E as getGoogleChatApprovalCardBinding, _ as probeGoogleChat, b as verifyGoogleChatRequest, c as buildGoogleChatGroupPolicyScope, g as downloadGoogleChatMedia, h as deleteGoogleChatMessage, l as isGoogleChatGroupSpace, v as sendGoogleChatMessage, w as completeGoogleChatApprovalCardBinding, y as updateGoogleChatMessage } from "./channel.adapters-X7Hlcajj.js";
1
+ import { A as releaseGoogleChatApprovalCardBinding, C as claimGoogleChatApprovalCardBinding, D as readGoogleChatApprovalActionToken, E as getGoogleChatApprovalCardBinding, _ as probeGoogleChat, b as verifyGoogleChatRequest, c as buildGoogleChatGroupPolicyScope, g as downloadGoogleChatMedia, h as deleteGoogleChatMessage, l as isGoogleChatGroupSpace, v as sendGoogleChatMessage, w as completeGoogleChatApprovalCardBinding, y as updateGoogleChatMessage } from "./channel.adapters-DLatFGZz.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-BztBRceh.js";
3
+ import { n as googleChatApprovalAuth } from "./approval-auth-G-OFufNc.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";
@@ -1,4 +1,4 @@
1
- import { t as googlechatDirectoryAdapter } from "./channel.adapters-X7Hlcajj.js";
1
+ import { t as googlechatDirectoryAdapter } from "./channel.adapters-DLatFGZz.js";
2
2
  //#region extensions/googlechat/directory-contract-api.ts
3
3
  const googlechatDirectoryContractPlugin = {
4
4
  id: "googlechat",
@@ -1,4 +1,4 @@
1
- import { asObjectRecord, defineChannelAliasMigration, hasLegacyAccountStreamingAliases, normalizeChannelConfigEntries } from "openclaw/plugin-sdk/runtime-doctor";
1
+ import { asObjectRecord, defineChannelAliasMigration, defineKeyMoveMigration, hasLegacyAccountStreamingAliases, normalizeChannelConfigEntries } from "openclaw/plugin-sdk/runtime-doctor";
2
2
  //#region extensions/googlechat/src/doctor-contract.ts
3
3
  const streamingAliasMigration = defineChannelAliasMigration({
4
4
  channelId: "googlechat",
@@ -18,31 +18,11 @@ function hasLegacyGoogleChatStreamMode(value) {
18
18
  function hasRetiredReactions(value) {
19
19
  return Object.hasOwn(asObjectRecord(asObjectRecord(value)?.actions) ?? {}, "reactions");
20
20
  }
21
- function hasLegacyGoogleChatGroupAllowAlias(value) {
22
- const groups = asObjectRecord(asObjectRecord(value)?.groups);
23
- if (!groups) return false;
24
- return Object.values(groups).some((group) => Object.hasOwn(asObjectRecord(group) ?? {}, "allow"));
25
- }
26
- function normalizeGoogleChatGroups(params) {
27
- let changed = false;
28
- const nextGroups = { ...params.groups };
29
- for (const [groupId, groupValue] of Object.entries(params.groups)) {
30
- const group = asObjectRecord(groupValue);
31
- if (!group || !Object.hasOwn(group, "allow")) continue;
32
- const nextGroup = { ...group };
33
- if (nextGroup.enabled === void 0) {
34
- nextGroup.enabled = group.allow;
35
- params.changes.push(`Moved ${params.pathPrefix}.${groupId}.allow → ${params.pathPrefix}.${groupId}.enabled.`);
36
- } else params.changes.push(`Removed ${params.pathPrefix}.${groupId}.allow (${params.pathPrefix}.${groupId}.enabled already set).`);
37
- delete nextGroup.allow;
38
- nextGroups[groupId] = nextGroup;
39
- changed = true;
40
- }
41
- return {
42
- groups: nextGroups,
43
- changed
44
- };
45
- }
21
+ const groupAllowMigration = defineKeyMoveMigration({
22
+ scope: ["groups", "*"],
23
+ from: ["allow"],
24
+ to: ["enabled"]
25
+ });
46
26
  function normalizeGoogleChatEntry(params) {
47
27
  let updated = params.entry;
48
28
  let changed = false;
@@ -61,21 +41,12 @@ function normalizeGoogleChatEntry(params) {
61
41
  params.changes.push(`Removed ${params.pathPrefix}.actions.reactions (Google Chat does not support reactions).`);
62
42
  changed = true;
63
43
  }
64
- const groups = asObjectRecord(updated.groups);
65
- if (groups) {
66
- const normalized = normalizeGoogleChatGroups({
67
- groups,
68
- pathPrefix: `${params.pathPrefix}.groups`,
69
- changes: params.changes
70
- });
71
- if (normalized.changed) {
72
- updated = {
73
- ...updated,
74
- groups: normalized.groups
75
- };
76
- changed = true;
77
- }
78
- }
44
+ const groups = groupAllowMigration.normalize({
45
+ ...params,
46
+ entry: updated
47
+ });
48
+ updated = groups.entry;
49
+ changed = changed || groups.changed;
79
50
  return {
80
51
  entry: updated,
81
52
  changed
@@ -113,7 +84,7 @@ const legacyConfigRules = [
113
84
  {
114
85
  path: ["channels", "googlechat"],
115
86
  message: "channels.googlechat.groups.<id>.allow is legacy; use channels.googlechat.groups.<id>.enabled instead. Run \"openclaw doctor --fix\".",
116
- match: hasLegacyGoogleChatGroupAllowAlias
87
+ match: groupAllowMigration.hasLegacy
117
88
  },
118
89
  {
119
90
  path: [
@@ -122,7 +93,7 @@ const legacyConfigRules = [
122
93
  "accounts"
123
94
  ],
124
95
  message: "channels.googlechat.accounts.<id>.groups.<id>.allow is legacy; use channels.googlechat.accounts.<id>.groups.<id>.enabled instead. Run \"openclaw doctor --fix\".",
125
- match: (value) => hasLegacyAccountStreamingAliases(value, hasLegacyGoogleChatGroupAllowAlias)
96
+ match: (value) => hasLegacyAccountStreamingAliases(value, groupAllowMigration.hasLegacy)
126
97
  },
127
98
  ...streamingAliasMigration.legacyConfigRules
128
99
  ];
@@ -1,2 +1,2 @@
1
- import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-CWlBAcKf.js";
1
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BpuSvJro.js";
2
2
  export { legacyConfigRules, normalizeCompatibilityConfig };
@@ -1,4 +1,4 @@
1
- import { n as createGoogleChatPluginBase } from "./channel-base-BOLIr2sb.js";
1
+ import { n as createGoogleChatPluginBase } from "./channel-base-CC85hRUC.js";
2
2
  //#region extensions/googlechat/src/channel.setup.ts
3
3
  const googlechatSetupPlugin = createGoogleChatPluginBase();
4
4
  //#endregion
@@ -1 +1,29 @@
1
- export {};
1
+ import * as tty from 'tty';
2
+ /**
3
+ * Handles figuring out if we can use ANSI colours and handing out the escape codes.
4
+ *
5
+ * This is for package-internal use only, and may change at any time.
6
+ *
7
+ * @private
8
+ * @internal
9
+ */
10
+ export declare class Colours {
11
+ static enabled: boolean;
12
+ static reset: string;
13
+ static bright: string;
14
+ static dim: string;
15
+ static red: string;
16
+ static green: string;
17
+ static yellow: string;
18
+ static blue: string;
19
+ static magenta: string;
20
+ static cyan: string;
21
+ static white: string;
22
+ static grey: string;
23
+ /**
24
+ * @param stream The stream (e.g. process.stderr)
25
+ * @returns true if the stream should have colourization enabled
26
+ */
27
+ static isEnabled(stream: tty.WriteStream): boolean;
28
+ static refresh(): void;
29
+ }
@@ -23,18 +23,6 @@ exports.Colours = void 0;
23
23
  * @internal
24
24
  */
25
25
  class Colours {
26
- static enabled = false;
27
- static reset = '';
28
- static bright = '';
29
- static dim = '';
30
- static red = '';
31
- static green = '';
32
- static yellow = '';
33
- static blue = '';
34
- static magenta = '';
35
- static cyan = '';
36
- static white = '';
37
- static grey = '';
38
26
  /**
39
27
  * @param stream The stream (e.g. process.stderr)
40
28
  * @returns true if the stream should have colourization enabled
@@ -47,7 +35,7 @@ class Colours {
47
35
  : true));
48
36
  }
49
37
  static refresh() {
50
- Colours.enabled = Colours.isEnabled(process?.stderr);
38
+ Colours.enabled = Colours.isEnabled(process === null || process === void 0 ? void 0 : process.stderr);
51
39
  if (!this.enabled) {
52
40
  Colours.reset = '';
53
41
  Colours.bright = '';
@@ -77,5 +65,17 @@ class Colours {
77
65
  }
78
66
  }
79
67
  exports.Colours = Colours;
68
+ Colours.enabled = false;
69
+ Colours.reset = '';
70
+ Colours.bright = '';
71
+ Colours.dim = '';
72
+ Colours.red = '';
73
+ Colours.green = '';
74
+ Colours.yellow = '';
75
+ Colours.blue = '';
76
+ Colours.magenta = '';
77
+ Colours.cyan = '';
78
+ Colours.white = '';
79
+ Colours.grey = '';
80
80
  Colours.refresh();
81
81
  //# sourceMappingURL=colours.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"colours.js","sourceRoot":"","sources":["../../src/colours.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,m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AAG,YAAY,CAAC;YAC/B,OAAO,CAAC,IAAI,GAAG,YAAY,CAAC;YAC5B,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC;YAC7B,OAAO,CAAC,IAAI,GAAG,YAAY,CAAC;QAC9B,CAAC;IACH,CAAC;;AAxDH,0BAyDC;AAxDQ,eAAO,GAAG,KAAK,CAAC;AAChB,aAAK,GAAG,EAAE,CAAC;AACX,cAAM,GAAG,EAAE,CAAC;AACZ,WAAG,GAAG,EAAE,CAAC;AAET,WAAG,GAAG,EAAE,CAAC;AACT,aAAK,GAAG,EAAE,CAAC;AACX,cAAM,GAAG,EAAE,CAAC;AACZ,YAAI,GAAG,EAAE,CAAC;AACV,eAAO,GAAG,EAAE,CAAC;AACb,YAAI,GAAG,EAAE,CAAC;AACV,aAAK,GAAG,EAAE,CAAC;AACX,YAAI,GAAG,EAAE,CAAC;AA8CnB,OAAO,CAAC,OAAO,EAAE,CAAC"}
@@ -1,2 +1 @@
1
1
  export * from './logging-utils';
2
- export type { LogFields, LogSeverity, AdhocDebugLogFunction, DebugLogBackend, } from './types';
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2021-2024 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;;;;;;;;AAEjC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;;;;;;;;AAEjC,kDAAgC"}