@openclaw/googlechat 2026.10.10 → 2026.11.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.
@@ -1,5 +1,5 @@
1
1
  import { l as resolveGoogleChatAccount } from "./channel-base-BFV0cGQ2.mjs";
2
- import { S as sendGoogleChatMessage, _ as resolveGoogleChatOutboundSpace } from "./channel.adapters-5rr8crHQ.mjs";
2
+ import { C as sendGoogleChatMessage, d as formatGoogleChatMediaText, v as resolveGoogleChatOutboundSpace } from "./channel.adapters-C6GxEODt.mjs";
3
3
  import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { jsonResult, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
5
5
  // extensions/googlechat/src/actions.ts
@@ -11,14 +11,20 @@ const OUTBOUND_MEDIA_KEYS = [
11
11
  "fileUrl"
12
12
  ];
13
13
  const STRUCTURED_ATTACHMENT_MEDIA_KEYS = [...OUTBOUND_MEDIA_KEYS, "url"];
14
- function hasGoogleChatOutboundAttachment(params) {
15
- if (OUTBOUND_MEDIA_KEYS.some((key) => readStringParam(params, key) !== void 0)) return true;
16
- if (readStringArrayParam(params, "mediaUrls") !== void 0) return true;
17
- if (!Array.isArray(params.attachments)) return false;
18
- return params.attachments.some((attachment) => isRecord(attachment) && STRUCTURED_ATTACHMENT_MEDIA_KEYS.some((key) => readStringParam(attachment, key) !== void 0));
14
+ function readGoogleChatMediaUrls(params) {
15
+ return [
16
+ ...OUTBOUND_MEDIA_KEYS.map((key) => readStringParam(params, key)),
17
+ ...readStringArrayParam(params, "mediaUrls") ?? [],
18
+ ...(Array.isArray(params.attachments) ? params.attachments : []).flatMap((attachment) => isRecord(attachment) ? STRUCTURED_ATTACHMENT_MEDIA_KEYS.map((key) => readStringParam(attachment, key)) : [])
19
+ ].filter((value) => value !== void 0);
19
20
  }
20
21
  async function handleGoogleChatAction({ action, params, cfg, accountId, assertDirectAdapterHandoff, onPlatformSendDispatch }) {
21
- if (action === "upload-file" || action === "send" && hasGoogleChatOutboundAttachment(params)) throw new Error("Google Chat outbound attachments require user OAuth and are not supported by this service-account channel.");
22
+ if (action === "upload-file") throw new Error("Google Chat outbound attachments require user OAuth and are not supported by this service-account channel.");
23
+ const mediaUrls = action === "send" ? readGoogleChatMediaUrls(params) : [];
24
+ const content = action === "send" ? formatGoogleChatMediaText(readStringParam(params, "message", {
25
+ required: mediaUrls.length === 0,
26
+ allowEmpty: true
27
+ }), mediaUrls) : "";
22
28
  const account = resolveGoogleChatAccount({
23
29
  cfg,
24
30
  accountId
@@ -26,10 +32,6 @@ async function handleGoogleChatAction({ action, params, cfg, accountId, assertDi
26
32
  if (account.credentialSource === "none" || account.tokenStatus === "configured_unavailable") throw new Error("Google Chat credentials are missing.");
27
33
  if (action === "send") {
28
34
  const to = readStringParam(params, "to", { required: true });
29
- const content = readStringParam(params, "message", {
30
- required: true,
31
- allowEmpty: true
32
- });
33
35
  const threadId = readStringParam(params, "threadId") ?? readStringParam(params, "replyTo");
34
36
  const space = await resolveGoogleChatOutboundSpace({
35
37
  account,
@@ -1,5 +1,5 @@
1
1
  import { l as resolveGoogleChatAccount } from "./channel-base-BFV0cGQ2.mjs";
2
- import { h as normalizeGoogleChatTarget, m as isGoogleChatUserTarget } from "./channel.adapters-5rr8crHQ.mjs";
2
+ import { g as normalizeGoogleChatTarget, h as isGoogleChatUserTarget } from "./channel.adapters-C6GxEODt.mjs";
3
3
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { createChannelApprovalAuth } from "openclaw/plugin-sdk/approval-auth-runtime";
5
5
  // extensions/googlechat/src/approval-auth.ts
@@ -1,6 +1,6 @@
1
1
  import { l as resolveGoogleChatAccount } from "./channel-base-BFV0cGQ2.mjs";
2
- import { A as registerGoogleChatManualApprovalFollowupSuppression, C as updateGoogleChatMessage, D as googleChatApprovalControls, E as buildGoogleChatApprovalActionParameters, S as sendGoogleChatMessage, T as GOOGLECHAT_APPROVAL_ACTION, _ as resolveGoogleChatOutboundSpace, j as unregisterGoogleChatManualApprovalFollowupSuppression, k as registerGoogleChatApprovalCardBinding } from "./channel.adapters-5rr8crHQ.mjs";
3
- import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-ZbGyNgH9.mjs";
2
+ import { A as registerGoogleChatApprovalCardBinding, C as sendGoogleChatMessage, D as buildGoogleChatApprovalActionParameters, E as GOOGLECHAT_APPROVAL_ACTION, M as unregisterGoogleChatManualApprovalFollowupSuppression, O as googleChatApprovalControls, j as registerGoogleChatManualApprovalFollowupSuppression, v as resolveGoogleChatOutboundSpace, w as updateGoogleChatMessage } from "./channel.adapters-C6GxEODt.mjs";
3
+ import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-m2X2-cKA.mjs";
4
4
  import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-9o-Dfr9Z.mjs";
5
5
  import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
6
6
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1,8 +1,8 @@
1
1
  import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-WrFOPxEj.mjs";
2
2
  import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.mjs";
3
3
  import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, o as inspectGoogleChatAccount, r as googlechatSetupPlugin, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-BFV0cGQ2.mjs";
4
- import { a as googlechatPairingTextAdapter, g as resolveGoogleChatOutboundSessionRoute, h as normalizeGoogleChatTarget, i as googlechatOutboundAdapter, m as isGoogleChatUserTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as isGoogleChatSpaceTarget, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters-5rr8crHQ.mjs";
5
- import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-CKF1wHai.mjs";
4
+ import { _ as resolveGoogleChatOutboundSessionRoute, a as googlechatPairingTextAdapter, g as normalizeGoogleChatTarget, h as isGoogleChatUserTarget, i as googlechatOutboundAdapter, m as isGoogleChatSpaceTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters-C6GxEODt.mjs";
5
+ import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-BjpSnjsd.mjs";
6
6
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-h2P-4VpL.mjs";
7
7
  import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
8
8
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
@@ -132,7 +132,7 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
132
132
  ],
133
133
  isConfigured: isGoogleChatNativeApprovalClientEnabled,
134
134
  shouldHandle: shouldHandleGoogleChatNativeApprovalRequest,
135
- load: async () => (await import("./approval-handler.runtime-wYtTR6as.mjs")).googleChatApprovalNativeRuntime
135
+ load: async () => (await import("./approval-handler.runtime-Da70PiU9.mjs")).googleChatApprovalNativeRuntime
136
136
  })
137
137
  });
138
138
  // extensions/googlechat/src/doctor.ts
@@ -154,7 +154,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
154
154
  })
155
155
  });
156
156
  // extensions/googlechat/src/gateway.ts
157
- const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-DkrekcGA.mjs"), "googleChatChannelRuntime");
157
+ const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bdv90H74.mjs"), "googleChatChannelRuntime");
158
158
  const UNRESOLVED_WEBHOOK_URL_ERROR = "Invalid webhookUrl: expected an absolute URL such as https://chat.example.com/googlechat. No inbound webhook route was registered.";
159
159
  async function startGoogleChatGatewayAccount(ctx) {
160
160
  const account = ctx.account;
@@ -223,10 +223,10 @@ const googlechatMessageActions = {
223
223
  describeMessageTool: describeGoogleChatMessageTool,
224
224
  supportsAction: ({ action }) => action === "send",
225
225
  extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
226
- handleAction: async (ctx) => (await import("./actions-uo0lf5AI.mjs")).handleGoogleChatAction(ctx)
226
+ handleAction: async (ctx) => (await import("./actions-irdxFe5N.mjs")).handleGoogleChatAction(ctx)
227
227
  };
228
228
  // extensions/googlechat/src/channel.ts
229
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DkrekcGA.mjs"), "googleChatChannelRuntime");
229
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bdv90H74.mjs"), "googleChatChannelRuntime");
230
230
  const googlechatPlugin = createChatChannelPlugin({
231
231
  base: {
232
232
  ...googlechatSetupPlugin,
@@ -20,6 +20,7 @@ import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter, s
20
20
  import { buildChannelGroupsScopeTree, createAllowlistProviderOpenWarningCollector, createConditionalWarningCollector, resolveScopeRequireMention } from "openclaw/plugin-sdk/channel-policy";
21
21
  import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
22
22
  import { createChannelDirectoryAdapter, listResolvedDirectoryGroupEntriesFromMapKeys, listResolvedDirectoryUserEntriesFromAllowFrom } from "openclaw/plugin-sdk/directory-runtime";
23
+ import { formatTextWithAttachmentLinks, resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
23
24
  import { FormatCapabilityProfile, markdownToIR, renderMarkdownIRChunksWithinLimit, renderMarkdownWithMarkers, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
24
25
  // extensions/googlechat/src/approval-card-actions.ts
25
26
  const GOOGLECHAT_APPROVAL_ACTION = "openclaw.approval";
@@ -801,6 +802,18 @@ function createGoogleChatMarkers(text) {
801
802
  function sanitizeGoogleChatText(text) {
802
803
  return sanitizeForPlainText(sanitizeAssistantVisibleText(text), { style: "markdown" });
803
804
  }
805
+ function formatGoogleChatMediaText(text, mediaUrls) {
806
+ const remoteUrls = mediaUrls.filter((value) => {
807
+ if (value.split("").some((character) => character <= " " || character === "") || !/^https?:\/\//iu.test(value)) return false;
808
+ try {
809
+ return Boolean(new URL(value).hostname);
810
+ } catch {
811
+ return false;
812
+ }
813
+ });
814
+ if (remoteUrls.length !== mediaUrls.length) throw new Error("Google Chat outbound attachments require remote HTTP(S) URLs.");
815
+ return [text, formatTextWithAttachmentLinks(void 0, remoteUrls)].filter(Boolean).join("\n\n");
816
+ }
804
817
  function projectDecodedGoogleChatResources(ir) {
805
818
  const text = ir.text.replace(/<(?:users|customEmojis)\/[^<>\s]+>/giu, (match) => `<${match.slice(1, -1)}>`);
806
819
  return text === ir.text ? ir : {
@@ -1063,7 +1076,7 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
1063
1076
  resolveEntryId: ({ entryIndex, fieldKey }) => fieldKey === "stableId" ? `entry-${entryIndex + 1}:user` : `entry-${entryIndex + 1}:${fieldKey}`
1064
1077
  });
1065
1078
  // extensions/googlechat/src/channel.adapters.ts
1066
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DkrekcGA.mjs"), "googleChatChannelRuntime");
1079
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bdv90H74.mjs"), "googleChatChannelRuntime");
1067
1080
  const collectGoogleChatGroupPolicyWarnings = createAllowlistProviderOpenWarningCollector({
1068
1081
  providerConfigPresent: (cfg) => cfg.channels?.googlechat !== void 0,
1069
1082
  resolveGroupPolicy: (account) => account.config.groupPolicy,
@@ -1156,7 +1169,15 @@ const googlechatOutboundAdapter = {
1156
1169
  chunkerMode: "markdown",
1157
1170
  textChunkLimit: GOOGLE_CHAT_FORMAT_PROFILE.chunk.limit,
1158
1171
  sanitizeText: ({ text }) => sanitizeGoogleChatText(text),
1159
- normalizePayload: ({ payload }) => shouldSuppressGoogleChatManualExecApprovalFollowupPayload(payload) ? null : payload,
1172
+ normalizePayload: ({ payload }) => {
1173
+ if (shouldSuppressGoogleChatManualExecApprovalFollowupPayload(payload)) return null;
1174
+ const reply = resolveSendableOutboundReplyParts(payload);
1175
+ const { mediaUrl: _mediaUrl, mediaUrls: _mediaUrls, ...rest } = payload;
1176
+ return {
1177
+ ...rest,
1178
+ text: formatGoogleChatMediaText(reply.text, reply.mediaUrls)
1179
+ };
1180
+ },
1160
1181
  resolveTarget: ({ to }) => {
1161
1182
  const normalized = normalizeGoogleChatTarget(to);
1162
1183
  return normalized ? {
@@ -1213,9 +1234,10 @@ const googlechatMessageAdapter = defineChannelMessageAdapter({
1213
1234
  id: "googlechat",
1214
1235
  durableFinal: { capabilities: {
1215
1236
  text: true,
1237
+ media: true,
1216
1238
  thread: true,
1217
1239
  messageSendingHooks: true
1218
1240
  } },
1219
1241
  send: { text: googlechatOutboundAdapter.attachedResults.sendText }
1220
1242
  });
1221
- export { registerGoogleChatManualApprovalFollowupSuppression as A, updateGoogleChatMessage as C, googleChatApprovalControls as D, buildGoogleChatApprovalActionParameters as E, readGoogleChatApprovalActionToken as O, sendGoogleChatMessage as S, GOOGLECHAT_APPROVAL_ACTION as T, resolveGoogleChatOutboundSpace as _, googlechatPairingTextAdapter as a, downloadGoogleChatMedia as b, googleChatIngressIdentity as c, formatGoogleChatTextChunks as d, isGoogleChatGroupSpace as f, resolveGoogleChatOutboundSessionRoute as g, normalizeGoogleChatTarget as h, googlechatOutboundAdapter as i, unregisterGoogleChatManualApprovalFollowupSuppression as j, registerGoogleChatApprovalCardBinding as k, normalizeGoogleChatUserId as l, isGoogleChatUserTarget as m, googlechatGroupsAdapter as n, googlechatSecurityAdapter as o, isGoogleChatSpaceTarget as p, googlechatMessageAdapter as r, googlechatThreadingAdapter as s, googlechatDirectoryAdapter as t, buildGoogleChatGroupPolicyScope as u, GoogleChatApiError as v, verifyGoogleChatRequest as w, probeGoogleChat as x, deleteGoogleChatMessage as y };
1243
+ export { registerGoogleChatApprovalCardBinding as A, sendGoogleChatMessage as C, buildGoogleChatApprovalActionParameters as D, GOOGLECHAT_APPROVAL_ACTION as E, unregisterGoogleChatManualApprovalFollowupSuppression as M, googleChatApprovalControls as O, probeGoogleChat as S, verifyGoogleChatRequest as T, resolveGoogleChatOutboundSessionRoute as _, googlechatPairingTextAdapter as a, deleteGoogleChatMessage as b, googleChatIngressIdentity as c, formatGoogleChatMediaText as d, formatGoogleChatTextChunks as f, normalizeGoogleChatTarget as g, isGoogleChatUserTarget as h, googlechatOutboundAdapter as i, registerGoogleChatManualApprovalFollowupSuppression as j, readGoogleChatApprovalActionToken as k, normalizeGoogleChatUserId as l, isGoogleChatSpaceTarget as m, googlechatGroupsAdapter as n, googlechatSecurityAdapter as o, isGoogleChatGroupSpace as p, googlechatMessageAdapter as r, googlechatThreadingAdapter as s, googlechatDirectoryAdapter as t, buildGoogleChatGroupPolicyScope as u, resolveGoogleChatOutboundSpace as v, updateGoogleChatMessage as w, downloadGoogleChatMedia as x, GoogleChatApiError as y };
@@ -1,5 +1,5 @@
1
- import { C as updateGoogleChatMessage, D as googleChatApprovalControls, O as readGoogleChatApprovalActionToken, S as sendGoogleChatMessage, b as downloadGoogleChatMedia, c as googleChatIngressIdentity, d as formatGoogleChatTextChunks, f as isGoogleChatGroupSpace, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as GoogleChatApiError, w as verifyGoogleChatRequest, x as probeGoogleChat, y as deleteGoogleChatMessage } from "./channel.adapters-5rr8crHQ.mjs";
2
- import { n as googleChatApprovalAuth } from "./approval-auth-CKF1wHai.mjs";
1
+ import { C as sendGoogleChatMessage, O as googleChatApprovalControls, S as probeGoogleChat, T as verifyGoogleChatRequest, b as deleteGoogleChatMessage, c as googleChatIngressIdentity, d as formatGoogleChatMediaText, f as formatGoogleChatTextChunks, k as readGoogleChatApprovalActionToken, l as normalizeGoogleChatUserId, p as isGoogleChatGroupSpace, u as buildGoogleChatGroupPolicyScope, w as updateGoogleChatMessage, x as downloadGoogleChatMedia, y as GoogleChatApiError } from "./channel.adapters-C6GxEODt.mjs";
2
+ import { n as googleChatApprovalAuth } from "./approval-auth-BjpSnjsd.mjs";
3
3
  import { t as getGoogleChatRuntime } from "./runtime-zEzHA5rr.mjs";
4
4
  import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-9o-Dfr9Z.mjs";
5
5
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringEntries, normalizeTrimmedStringList } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -8,6 +8,7 @@ import { PlatformMessageNotDispatchedError, collectErrorGraphCandidates, formatE
8
8
  import { MediaFetchError } from "openclaw/plugin-sdk/media-runtime";
9
9
  import { channelIngressRoutes, createStandardRawEventIngressMonitor } from "openclaw/plugin-sdk/channel-ingress-runtime";
10
10
  import { createChannelIngressError } from "openclaw/plugin-sdk/channel-outbound";
11
+ import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
11
12
  import { channelBlockedPatch, channelReadyPatch } from "openclaw/plugin-sdk/gateway-runtime";
12
13
  import { isRecord as isRecord$1 } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
13
14
  import { resolveAgentConfig } from "openclaw/plugin-sdk/agent-scope-runtime";
@@ -20,7 +21,6 @@ import { resolveApprovalOverGateway } from "openclaw/plugin-sdk/approval-gateway
20
21
  import { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";
21
22
  import { isDangerousNameMatchingEnabled } from "openclaw/plugin-sdk/dangerous-name-runtime";
22
23
  import { GROUP_POLICY_BLOCKED_LABEL, resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, warnMissingProviderGroupPolicyFallbackOnce } from "openclaw/plugin-sdk/runtime-group-policy";
23
- import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
24
24
  import { createWebhookInFlightLimiter, readJsonWebhookBodyOrReject, runDetachedWebhookWork } from "openclaw/plugin-sdk/webhook-request-guards";
25
25
  import { registerWebhookTargetWithPluginRoute, resolveWebhookTargetWithAuthOrReject, withResolvedWebhookRequestPipeline } from "openclaw/plugin-sdk/webhook-targets";
26
26
  // extensions/googlechat/src/approval-terminal-card.ts
@@ -590,11 +590,17 @@ async function deliverGoogleChatReply(params) {
590
590
  }
591
591
  typingMessage = void 0;
592
592
  } else if (typingMessage?.placement === "thread") deliveryThreadName = typingMessage.deliveredThreadName;
593
- if (reply.hasMedia) runtime.error?.("Google Chat outbound attachments require user OAuth and are not supported by this service-account channel; sending text fallback only.");
593
+ let text = reply.text;
594
+ let mediaError;
595
+ try {
596
+ text = formatGoogleChatMediaText(reply.text, reply.mediaUrls);
597
+ } catch (error) {
598
+ mediaError = error;
599
+ }
594
600
  const chunkLimit = account.config.textChunkLimit ?? 4e3;
595
601
  const chunkMode = core.channel.text.resolveChunkMode(config, "googlechat", account.accountId);
596
- const chunks = formatGoogleChatTextChunks(reply.text, chunkLimit).flatMap((chunk) => core.channel.text.chunkMarkdownTextWithMode(chunk, chunkLimit, chunkMode));
597
- const rejection = reply.hasMedia && !reply.hasText ? "Google Chat outbound attachments require user OAuth and no text fallback is available." : reply.hasText && !chunks.some((chunk) => chunk) ? "Google Chat reply has no visible text after formatting." : void 0;
602
+ const chunks = formatGoogleChatTextChunks(text, chunkLimit).flatMap((chunk) => core.channel.text.chunkMarkdownTextWithMode(chunk, chunkLimit, chunkMode));
603
+ const rejection = mediaError ? formatErrorMessage(mediaError) : text && !chunks.some((chunk) => chunk) ? "Google Chat reply has no visible text after formatting." : void 0;
598
604
  if (rejection) {
599
605
  try {
600
606
  if (typingMessage) await deleteGoogleChatMessage({
@@ -605,7 +611,7 @@ async function deliverGoogleChatReply(params) {
605
611
  runtime.error?.(`Google Chat typing cleanup failed: ${String(err)}`);
606
612
  }
607
613
  throw new PlatformMessageNotDispatchedError(rejection, {
608
- cause: void 0,
614
+ cause: mediaError,
609
615
  retryable: false
610
616
  });
611
617
  }
@@ -1 +1 @@
1
- {"version":3,"entries":[{"output":"api.js","source":"extensions/googlechat/api.ts"},{"output":"channel-config-api.js","source":"extensions/googlechat/channel-config-api.ts"},{"output":"channel-plugin-api.js","source":"extensions/googlechat/channel-plugin-api.ts"},{"output":"directory-contract-api.js","source":"extensions/googlechat/directory-contract-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/googlechat/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/googlechat/index.ts"},{"output":"runtime-api.js","source":"extensions/googlechat/runtime-api.ts"},{"output":"secret-contract-api.js","source":"extensions/googlechat/secret-contract-api.ts"},{"output":"setup-entry.js","source":"extensions/googlechat/setup-entry.ts"},{"output":"setup-plugin-api.js","source":"extensions/googlechat/setup-plugin-api.ts"}],"chunks":[{"output":".setup/actions-uo0lf5AI.mjs","sha256":"9491b555adce2d9fc46e5eb13d765646700715304995533f4ab8b190532d3ac1","facadeSource":"extensions/googlechat/src/actions.ts","sources":["extensions/googlechat/src/actions.ts"]},{"output":".setup/approval-auth-CKF1wHai.mjs","sha256":"d528e256f5a4665431d0fae942ad4dc1c34bce21f432cd62ea613ddf0ef0aed4","facadeSource":null,"sources":["extensions/googlechat/src/approval-auth.ts"]},{"output":".setup/approval-card-text-9o-Dfr9Z.mjs","sha256":"acd260416e2c70d91b277feb6e4617c7873c2d30dceabbd6ee017161d84f9302","facadeSource":null,"sources":["extensions/googlechat/src/approval-card-text.ts"]},{"output":".setup/approval-handler.runtime-wYtTR6as.mjs","sha256":"6e1bb21c51a25ec3c25da51abe6416522b75147664372421d41fe441f8ebcef6","facadeSource":"extensions/googlechat/src/approval-handler.runtime.ts","sources":["extensions/googlechat/src/approval-handler.runtime.ts"]},{"output":".setup/channel-base-BFV0cGQ2.mjs","sha256":"4432c9b98d4eb0a40ce7925c79a0c30e9111e59928958d6d93dc5a7b0e63b498","facadeSource":null,"sources":["extensions/googlechat/src/accounts.ts","extensions/googlechat/src/channel-base.ts","extensions/googlechat/src/google-auth-limits.ts","extensions/googlechat/src/setup-core.ts","extensions/googlechat/src/setup-surface.ts"]},{"output":".setup/channel-ZbGyNgH9.mjs","sha256":"30b36aadd1f0e72db21d61dc0c5ce320875dbe02c164dd494763ce506e5ffd27","facadeSource":null,"sources":["extensions/googlechat/src/approval-native.ts","extensions/googlechat/src/channel.ts","extensions/googlechat/src/doctor.ts","extensions/googlechat/src/gateway.ts","extensions/googlechat/src/message-tool-api.ts"]},{"output":".setup/channel.adapters-5rr8crHQ.mjs","sha256":"b9f8cfc23752477601bec6bfa7bb5ac88ac808a6cd001a61d1c76abd27970cf1","facadeSource":null,"sources":["extensions/googlechat/src/api.ts","extensions/googlechat/src/approval-card-actions.ts","extensions/googlechat/src/auth.ts","extensions/googlechat/src/channel.adapters.ts","extensions/googlechat/src/format.ts","extensions/googlechat/src/google-auth.runtime.ts","extensions/googlechat/src/group-policy.ts","extensions/googlechat/src/ingress-identity.ts","extensions/googlechat/src/targets.ts"]},{"output":".setup/channel.runtime-DkrekcGA.mjs","sha256":"d9523fc897aee7966ecdcda43748f1b7d39622e3d00b34b0c9edaa3cced0bd9d","facadeSource":"extensions/googlechat/src/channel.runtime.ts","sources":["extensions/googlechat/src/approval-card-click.ts","extensions/googlechat/src/approval-terminal-card.ts","extensions/googlechat/src/channel.runtime.ts","extensions/googlechat/src/monitor-access.ts","extensions/googlechat/src/monitor-durable.ts","extensions/googlechat/src/monitor-event.ts","extensions/googlechat/src/monitor-ingress.ts","extensions/googlechat/src/monitor-reply-delivery.ts","extensions/googlechat/src/monitor-reply-target.ts","extensions/googlechat/src/monitor-routing.ts","extensions/googlechat/src/monitor-webhook.ts","extensions/googlechat/src/monitor.ts"]},{"output":".setup/config-api-CsD0IFxF.mjs","sha256":"134d1ecb7a42e67cb112730f0935792ac69fa8500796df1c1ef50308f70c4999","facadeSource":null,"sources":[]},{"output":".setup/doctor-contract-WrFOPxEj.mjs","sha256":"ac87e042e1965530c26cb25d48979f02332a586a8928814388621e247b5823fc","facadeSource":null,"sources":["extensions/googlechat/src/doctor-contract.ts","packages/normalization-core/src/record-coerce.ts","src/config/channel-config-normalization.ts","src/plugin-sdk/legacy-webhook-listener-migration.ts"]},{"output":".setup/runtime-zEzHA5rr.mjs","sha256":"ca736781dfaabb9b01e948b24fa82b567feaaf70cc6a15f880d0efd4e2fc0452","facadeSource":null,"sources":["extensions/googlechat/src/runtime.ts"]},{"output":".setup/secret-contract-api-CLRweErW.mjs","sha256":"ee90fabda59b98d84f7d5ae73c2b250527282f788916449c3f33968beb9001fe","facadeSource":"extensions/googlechat/secret-contract-api.ts","sources":[]},{"output":".setup/secret-contract-h2P-4VpL.mjs","sha256":"b894119f1d787508dc3a726be8bf8ca8670b707a7a76678787b9de8d497d9116","facadeSource":null,"sources":["extensions/googlechat/src/secret-contract.ts"]},{"output":".setup/setup-plugin-api-Dru1eW9z.mjs","sha256":"914efc1bd1576f3fe835b9d79fea654ac56f6d492a7a676f5bd984169c2c704b","facadeSource":"extensions/googlechat/setup-plugin-api.ts","sources":[]},{"output":"api.js","sha256":"db54e51d82e48e43aea13e84b5da2dba9905fe2ddd2d752c783c8fcbcd586bd0","facadeSource":"extensions/googlechat/api.ts","sources":[]},{"output":"channel-config-api.js","sha256":"cf612ab901974dfabb2c06edb513d91bb0bd4dac199bcf166f3fac5e12540bf5","facadeSource":"extensions/googlechat/channel-config-api.ts","sources":["extensions/googlechat/src/config-schema.ts"]},{"output":"channel-plugin-api.js","sha256":"3751b0af2542ea1ac99f9c7a88b7a613b6edf2f70e0ba5e1a9a5d7839146a3e3","facadeSource":"extensions/googlechat/channel-plugin-api.ts","sources":[]},{"output":"directory-contract-api.js","sha256":"f0fb8ede4c7c5f2d55ac8eba69fccb6e26e9852e5acbfd7f84e03a9ef9c91433","facadeSource":"extensions/googlechat/directory-contract-api.ts","sources":["extensions/googlechat/directory-contract-api.ts"]},{"output":"doctor-contract-api.js","sha256":"ede0e3577556acfd4a4df679979f5adcef7008639c1f4638ab6f375eb7d18077","facadeSource":"extensions/googlechat/doctor-contract-api.ts","sources":[]},{"output":"index.js","sha256":"a8677a1c9368c3c78c2f83b73ec50cece345574790a652c9162219b76404987c","facadeSource":"extensions/googlechat/index.ts","sources":["extensions/googlechat/index.ts"]},{"output":"runtime-api.js","sha256":"b149bacfb902e955995a631d92f928bcb02512bc30d45da3c93ad22570dc20da","facadeSource":"extensions/googlechat/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"e2f8dcd992e1b82c48e592f948edd726064dabe13bb6e0bafd98479be4d05418","facadeSource":"extensions/googlechat/secret-contract-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"f0bf84ccc2abc89c4b391769fa21aafb6a92e6d873d3a2c7803cb891698e9163","facadeSource":"extensions/googlechat/setup-entry.ts","sources":["extensions/googlechat/setup-entry.ts"]},{"output":"setup-plugin-api.js","sha256":"0edcff1c63d66ce8e2434d706b33b071a8d06be4b06104e1ee4e05feec9849b5","facadeSource":"extensions/googlechat/setup-plugin-api.ts","sources":[]}],"unrenderedSources":["extensions/googlechat/api.ts","extensions/googlechat/channel-config-api.ts","extensions/googlechat/channel-plugin-api.ts","extensions/googlechat/config-api.ts","extensions/googlechat/config-doctor-api.ts","extensions/googlechat/doctor-contract-api.ts","extensions/googlechat/runtime-api.ts","extensions/googlechat/secret-contract-api.ts","extensions/googlechat/setup-plugin-api.ts","extensions/googlechat/src/channel.setup.ts"]}
1
+ {"version":3,"entries":[{"output":"api.js","source":"extensions/googlechat/api.ts"},{"output":"channel-config-api.js","source":"extensions/googlechat/channel-config-api.ts"},{"output":"channel-plugin-api.js","source":"extensions/googlechat/channel-plugin-api.ts"},{"output":"directory-contract-api.js","source":"extensions/googlechat/directory-contract-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/googlechat/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/googlechat/index.ts"},{"output":"runtime-api.js","source":"extensions/googlechat/runtime-api.ts"},{"output":"secret-contract-api.js","source":"extensions/googlechat/secret-contract-api.ts"},{"output":"setup-entry.js","source":"extensions/googlechat/setup-entry.ts"},{"output":"setup-plugin-api.js","source":"extensions/googlechat/setup-plugin-api.ts"}],"chunks":[{"output":".setup/actions-irdxFe5N.mjs","sha256":"b2aacb96bd96054aec173b1fa15ae55ee1deeb27bf6a85d9e131d8c78e89640e","facadeSource":"extensions/googlechat/src/actions.ts","sources":["extensions/googlechat/src/actions.ts"]},{"output":".setup/approval-auth-BjpSnjsd.mjs","sha256":"67d1a644872bd577c71db0af76a687318ca4fba708fbf0707fb876abd2235ee9","facadeSource":null,"sources":["extensions/googlechat/src/approval-auth.ts"]},{"output":".setup/approval-card-text-9o-Dfr9Z.mjs","sha256":"acd260416e2c70d91b277feb6e4617c7873c2d30dceabbd6ee017161d84f9302","facadeSource":null,"sources":["extensions/googlechat/src/approval-card-text.ts"]},{"output":".setup/approval-handler.runtime-Da70PiU9.mjs","sha256":"8fff42d4c8c9843c4c0805653313b8bad7f8bc1934845723d60fe0facaccd9bf","facadeSource":"extensions/googlechat/src/approval-handler.runtime.ts","sources":["extensions/googlechat/src/approval-handler.runtime.ts"]},{"output":".setup/channel-base-BFV0cGQ2.mjs","sha256":"4432c9b98d4eb0a40ce7925c79a0c30e9111e59928958d6d93dc5a7b0e63b498","facadeSource":null,"sources":["extensions/googlechat/src/accounts.ts","extensions/googlechat/src/channel-base.ts","extensions/googlechat/src/google-auth-limits.ts","extensions/googlechat/src/setup-core.ts","extensions/googlechat/src/setup-surface.ts"]},{"output":".setup/channel-m2X2-cKA.mjs","sha256":"0001911b96f3a3c8317f448287de8f53f93039257c751370905ff872488ec609","facadeSource":null,"sources":["extensions/googlechat/src/approval-native.ts","extensions/googlechat/src/channel.ts","extensions/googlechat/src/doctor.ts","extensions/googlechat/src/gateway.ts","extensions/googlechat/src/message-tool-api.ts"]},{"output":".setup/channel.adapters-C6GxEODt.mjs","sha256":"ad5be53538307376c0c91c769a6657afd4f831d603c41ef7618835a3ecd1334a","facadeSource":null,"sources":["extensions/googlechat/src/api.ts","extensions/googlechat/src/approval-card-actions.ts","extensions/googlechat/src/auth.ts","extensions/googlechat/src/channel.adapters.ts","extensions/googlechat/src/format.ts","extensions/googlechat/src/google-auth.runtime.ts","extensions/googlechat/src/group-policy.ts","extensions/googlechat/src/ingress-identity.ts","extensions/googlechat/src/targets.ts"]},{"output":".setup/channel.runtime-Bdv90H74.mjs","sha256":"fd81be9b2b72127c2284fa157a10ee147ac18082f2cccf322940b9310bc8ec20","facadeSource":"extensions/googlechat/src/channel.runtime.ts","sources":["extensions/googlechat/src/approval-card-click.ts","extensions/googlechat/src/approval-terminal-card.ts","extensions/googlechat/src/channel.runtime.ts","extensions/googlechat/src/monitor-access.ts","extensions/googlechat/src/monitor-durable.ts","extensions/googlechat/src/monitor-event.ts","extensions/googlechat/src/monitor-ingress.ts","extensions/googlechat/src/monitor-reply-delivery.ts","extensions/googlechat/src/monitor-reply-target.ts","extensions/googlechat/src/monitor-routing.ts","extensions/googlechat/src/monitor-webhook.ts","extensions/googlechat/src/monitor.ts"]},{"output":".setup/config-api-CsD0IFxF.mjs","sha256":"134d1ecb7a42e67cb112730f0935792ac69fa8500796df1c1ef50308f70c4999","facadeSource":null,"sources":[]},{"output":".setup/doctor-contract-WrFOPxEj.mjs","sha256":"ac87e042e1965530c26cb25d48979f02332a586a8928814388621e247b5823fc","facadeSource":null,"sources":["extensions/googlechat/src/doctor-contract.ts","packages/normalization-core/src/record-coerce.ts","src/config/channel-config-normalization.ts","src/plugin-sdk/legacy-webhook-listener-migration.ts"]},{"output":".setup/runtime-zEzHA5rr.mjs","sha256":"ca736781dfaabb9b01e948b24fa82b567feaaf70cc6a15f880d0efd4e2fc0452","facadeSource":null,"sources":["extensions/googlechat/src/runtime.ts"]},{"output":".setup/secret-contract-api-CLRweErW.mjs","sha256":"ee90fabda59b98d84f7d5ae73c2b250527282f788916449c3f33968beb9001fe","facadeSource":"extensions/googlechat/secret-contract-api.ts","sources":[]},{"output":".setup/secret-contract-h2P-4VpL.mjs","sha256":"b894119f1d787508dc3a726be8bf8ca8670b707a7a76678787b9de8d497d9116","facadeSource":null,"sources":["extensions/googlechat/src/secret-contract.ts"]},{"output":".setup/setup-plugin-api-Dru1eW9z.mjs","sha256":"914efc1bd1576f3fe835b9d79fea654ac56f6d492a7a676f5bd984169c2c704b","facadeSource":"extensions/googlechat/setup-plugin-api.ts","sources":[]},{"output":"api.js","sha256":"449c5a5cbe59a713d2c9793e7ccc535b5c08c581b04cfc47cb7363b6f8766788","facadeSource":"extensions/googlechat/api.ts","sources":[]},{"output":"channel-config-api.js","sha256":"cf612ab901974dfabb2c06edb513d91bb0bd4dac199bcf166f3fac5e12540bf5","facadeSource":"extensions/googlechat/channel-config-api.ts","sources":["extensions/googlechat/src/config-schema.ts"]},{"output":"channel-plugin-api.js","sha256":"fbe9813f9cdeafdcf7db1bc9ba28cea8f27aa3a5148104588abf3ffdcb4fb8aa","facadeSource":"extensions/googlechat/channel-plugin-api.ts","sources":[]},{"output":"directory-contract-api.js","sha256":"880443743ea3315fb93a1fc2ca121874ab1ffd81bf697f9e42befca74683b879","facadeSource":"extensions/googlechat/directory-contract-api.ts","sources":["extensions/googlechat/directory-contract-api.ts"]},{"output":"doctor-contract-api.js","sha256":"ede0e3577556acfd4a4df679979f5adcef7008639c1f4638ab6f375eb7d18077","facadeSource":"extensions/googlechat/doctor-contract-api.ts","sources":[]},{"output":"index.js","sha256":"a8677a1c9368c3c78c2f83b73ec50cece345574790a652c9162219b76404987c","facadeSource":"extensions/googlechat/index.ts","sources":["extensions/googlechat/index.ts"]},{"output":"runtime-api.js","sha256":"b149bacfb902e955995a631d92f928bcb02512bc30d45da3c93ad22570dc20da","facadeSource":"extensions/googlechat/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"e2f8dcd992e1b82c48e592f948edd726064dabe13bb6e0bafd98479be4d05418","facadeSource":"extensions/googlechat/secret-contract-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"f0bf84ccc2abc89c4b391769fa21aafb6a92e6d873d3a2c7803cb891698e9163","facadeSource":"extensions/googlechat/setup-entry.ts","sources":["extensions/googlechat/setup-entry.ts"]},{"output":"setup-plugin-api.js","sha256":"0edcff1c63d66ce8e2434d706b33b071a8d06be4b06104e1ee4e05feec9849b5","facadeSource":"extensions/googlechat/setup-plugin-api.ts","sources":[]}],"unrenderedSources":["extensions/googlechat/api.ts","extensions/googlechat/channel-config-api.ts","extensions/googlechat/channel-plugin-api.ts","extensions/googlechat/config-api.ts","extensions/googlechat/config-doctor-api.ts","extensions/googlechat/doctor-contract-api.ts","extensions/googlechat/runtime-api.ts","extensions/googlechat/secret-contract-api.ts","extensions/googlechat/setup-plugin-api.ts","extensions/googlechat/src/channel.setup.ts"]}
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./.setup/channel-base-BFV0cGQ2.mjs";
2
- import { t as googlechatPlugin } from "./.setup/channel-ZbGyNgH9.mjs";
2
+ import { t as googlechatPlugin } from "./.setup/channel-m2X2-cKA.mjs";
3
3
  export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
@@ -1 +1 @@
1
- export { t as googlechatPlugin } from "./.setup/channel-ZbGyNgH9.mjs";
1
+ export { t as googlechatPlugin } from "./.setup/channel-m2X2-cKA.mjs";
@@ -1,4 +1,4 @@
1
- import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-5rr8crHQ.mjs";
1
+ import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-C6GxEODt.mjs";
2
2
  // extensions/googlechat/directory-contract-api.ts
3
3
  const googlechatDirectoryContractPlugin = {
4
4
  id: "googlechat",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/googlechat",
3
- "version": "2026.10.10",
3
+ "version": "2026.11.1",
4
4
  "description": "OpenClaw Google Chat channel plugin for spaces and direct messages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "zod": "4.6.5"
13
13
  },
14
14
  "peerDependencies": {
15
- "openclaw": ">=2026.10.10"
15
+ "openclaw": ">=2026.11.1"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
@@ -135,10 +135,10 @@
135
135
  "minHostVersion": ">=2026.9.8"
136
136
  },
137
137
  "compat": {
138
- "pluginApi": ">=2026.10.10"
138
+ "pluginApi": ">=2026.11.1"
139
139
  },
140
140
  "build": {
141
- "openclawVersion": "2026.10.10"
141
+ "openclawVersion": "2026.11.1"
142
142
  },
143
143
  "release": {
144
144
  "publishToClawHub": true,