@openclaw/googlechat 2026.10.5-beta.4 → 2026.10.10-beta.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.
@@ -1,5 +1,5 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-BdCGLoFe.mjs";
2
- import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-B54Nj4rn.mjs";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-sWlG7EP1.mjs";
2
+ import { S as sendGoogleChatMessage, _ as resolveGoogleChatOutboundSpace } from "./channel.adapters--OFb3A2Y.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
  //#region extensions/googlechat/src/actions.ts
@@ -1,5 +1,5 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-BdCGLoFe.mjs";
2
- import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-B54Nj4rn.mjs";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-sWlG7EP1.mjs";
2
+ import { h as normalizeGoogleChatTarget, m as isGoogleChatUserTarget } from "./channel.adapters--OFb3A2Y.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
  //#region extensions/googlechat/src/approval-auth.ts
@@ -1,11 +1,11 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-BdCGLoFe.mjs";
2
- import { A as unregisterGoogleChatManualApprovalFollowupSuppression, E as googleChatApprovalControls, O as registerGoogleChatApprovalCardBinding, S as updateGoogleChatMessage, T as buildGoogleChatApprovalActionParameters, g as resolveGoogleChatOutboundSpace, k as registerGoogleChatManualApprovalFollowupSuppression, w as GOOGLECHAT_APPROVAL_ACTION, x as sendGoogleChatMessage } from "./channel.adapters-B54Nj4rn.mjs";
3
- import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-CNQuKfU7.mjs";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-sWlG7EP1.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--OFb3A2Y.mjs";
3
+ import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-93NUJCWK.mjs";
4
4
  import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-BKg_4mXq.mjs";
5
5
  import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
6
6
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
7
  import { formatChannelApprovalResolvedLabel } from "openclaw/plugin-sdk/approval-runtime";
8
- import { createChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-runtime";
8
+ import { createChannelApprovalNativeRuntimeAdapterAsync } from "openclaw/plugin-sdk/approval-handler-runtime";
9
9
  import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
10
10
  //#region extensions/googlechat/src/approval-handler.runtime.ts
11
11
  const log = createSubsystemLogger("googlechat/approvals");
@@ -106,7 +106,7 @@ function buildFinalPayload(view, outcome, subtitle) {
106
106
  }
107
107
  }] };
108
108
  }
109
- const googleChatApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter({
109
+ const googleChatApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapterAsync({
110
110
  eventKinds: [
111
111
  "exec",
112
112
  "plugin",
@@ -1,17 +1,17 @@
1
1
  import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BzoaiFSD.mjs";
2
2
  import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.mjs";
3
- import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, o as inspectGoogleChatAccount, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-BdCGLoFe.mjs";
4
- 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-B54Nj4rn.mjs";
5
- import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-CHn-C5YE.mjs";
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-sWlG7EP1.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--OFb3A2Y.mjs";
5
+ import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-DH1sJm7S.mjs";
6
6
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-020OItNt.mjs";
7
7
  import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
8
8
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
9
9
  import { buildPassiveProbedChannelStatusSummary } from "openclaw/plugin-sdk/extension-shared";
10
10
  import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
11
11
  import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
12
- import { createApproverRestrictedNativeApprovalCapability } from "openclaw/plugin-sdk/approval-delivery-runtime";
13
- import { CHANNEL_APPROVAL_NATIVE_RUNTIME_CONTEXT_CAPABILITY, createLazyChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
14
- import { createChannelApproverDmTargetResolver, createChannelNativeOriginTargetResolver, createNativeApprovalChannelRouteGates, shouldSuppressLocalNativeExecApprovalPrompt } from "openclaw/plugin-sdk/approval-native-runtime";
12
+ import { createApproverRestrictedNativeApprovalCapabilityAsync } from "openclaw/plugin-sdk/approval-delivery-runtime";
13
+ import { CHANNEL_APPROVAL_NATIVE_RUNTIME_CONTEXT_CAPABILITY, createLazyChannelApprovalNativeRuntimeAdapterAsync } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
14
+ import { createChannelApproverDmTargetResolverAsync, createChannelNativeOriginTargetResolverAsync, createNativeApprovalChannelRouteGatesAsync, shouldSuppressLocalNativeExecApprovalPrompt } from "openclaw/plugin-sdk/approval-native-runtime";
15
15
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
16
16
  import { createAccountStatusSink, runPassiveAccountLifecycle } from "openclaw/plugin-sdk/channel-outbound";
17
17
  import { buildMutableAllowEntryDetector, collectStandardAllowlistLists, createDangerousNameMatchingMutableAllowlistWarningCollector } from "openclaw/plugin-sdk/channel-policy";
@@ -43,7 +43,7 @@ function resolveTurnSourceGoogleChatOriginTarget(request) {
43
43
  threadId: request.request.turnSourceThreadId ?? null
44
44
  };
45
45
  }
46
- const googleChatApprovalRouteGates = createNativeApprovalChannelRouteGates({
46
+ const googleChatApprovalRouteGates = createNativeApprovalChannelRouteGatesAsync({
47
47
  channel: "googlechat",
48
48
  defaultForwardingMode: DEFAULT_APPROVAL_FORWARDING_MODE,
49
49
  isTransportEnabled: isGoogleChatApprovalTransportEnabled,
@@ -65,8 +65,8 @@ function resolveSessionGoogleChatOriginTarget(sessionTarget) {
65
65
  threadId: sessionTarget.threadId ?? null
66
66
  } : null;
67
67
  }
68
- function shouldHandleGoogleChatNativeApprovalRequest(params) {
69
- return googleChatApprovalRouteGates.shouldHandleApprovalRequest(params) && getGoogleChatApprovalApprovers(params).length > 0 && Boolean(resolveTurnSourceGoogleChatOriginTarget(params.request));
68
+ async function shouldHandleGoogleChatNativeApprovalRequest(params) {
69
+ return await googleChatApprovalRouteGates.shouldHandleApprovalRequest(params) && getGoogleChatApprovalApprovers(params).length > 0 && Boolean(resolveTurnSourceGoogleChatOriginTarget(params.request));
70
70
  }
71
71
  function shouldSuppressLocalGoogleChatExecApprovalPrompt(params) {
72
72
  return shouldSuppressLocalNativeExecApprovalPrompt({
@@ -74,13 +74,13 @@ function shouldSuppressLocalGoogleChatExecApprovalPrompt(params) {
74
74
  isNativeDeliveryEnabled: isGoogleChatNativeApprovalClientEnabled
75
75
  });
76
76
  }
77
- const resolveGoogleChatOriginTarget = createChannelNativeOriginTargetResolver({
77
+ const resolveGoogleChatOriginTarget = createChannelNativeOriginTargetResolverAsync({
78
78
  channel: "googlechat",
79
79
  shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
80
80
  resolveTurnSourceTarget: resolveTurnSourceGoogleChatOriginTarget,
81
81
  resolveSessionTarget: resolveSessionGoogleChatOriginTarget
82
82
  });
83
- const resolveGoogleChatApproverDmTargets = createChannelApproverDmTargetResolver({
83
+ const resolveGoogleChatApproverDmTargets = createChannelApproverDmTargetResolverAsync({
84
84
  shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
85
85
  resolveApprovers: getGoogleChatApprovalApprovers,
86
86
  mapApprover: (approver, params) => {
@@ -91,7 +91,7 @@ const resolveGoogleChatApproverDmTargets = createChannelApproverDmTargetResolver
91
91
  } : null;
92
92
  }
93
93
  });
94
- const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapability({
94
+ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapabilityAsync({
95
95
  channel: "googlechat",
96
96
  channelLabel: "Google Chat",
97
97
  describeExecApprovalSetup: ({ accountId }) => {
@@ -117,13 +117,13 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
117
117
  action: "approve",
118
118
  approvalKind: "plugin"
119
119
  })?.authorized ?? false,
120
- isNativeDeliveryEnabled: isGoogleChatNativeApprovalClientEnabled,
120
+ isNativeDeliveryEnabled: async (params) => isGoogleChatNativeApprovalClientEnabled(params),
121
121
  resolveNativeDeliveryMode: () => "channel",
122
122
  requireMatchingTurnSourceChannel: true,
123
123
  resolveSuppressionAccountId: ({ target, request }) => normalizeOptionalString(target.accountId) ?? normalizeOptionalString(request.request.turnSourceAccountId),
124
124
  resolveOriginTarget: resolveGoogleChatOriginTarget,
125
125
  resolveApproverDmTargets: resolveGoogleChatApproverDmTargets,
126
- nativeRuntime: createLazyChannelApprovalNativeRuntimeAdapter({
126
+ nativeRuntimeAsync: createLazyChannelApprovalNativeRuntimeAdapterAsync({
127
127
  capabilityBoundary: true,
128
128
  eventKinds: [
129
129
  "exec",
@@ -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-r0gTDaSz.mjs")).googleChatApprovalNativeRuntime
135
+ load: async () => (await import("./approval-handler.runtime-CfJ-YqYp.mjs")).googleChatApprovalNativeRuntime
136
136
  })
137
137
  });
138
138
  //#endregion
@@ -156,7 +156,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
156
156
  });
157
157
  //#endregion
158
158
  //#region extensions/googlechat/src/gateway.ts
159
- const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-BlI4aJ2a.mjs"), "googleChatChannelRuntime");
159
+ const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-uaSH6k2d.mjs"), "googleChatChannelRuntime");
160
160
  const UNRESOLVED_WEBHOOK_URL_ERROR = "Invalid webhookUrl: expected an absolute URL such as https://chat.example.com/googlechat. No inbound webhook route was registered.";
161
161
  async function startGoogleChatGatewayAccount(ctx) {
162
162
  const account = ctx.account;
@@ -226,14 +226,15 @@ const googlechatMessageActions = {
226
226
  describeMessageTool: describeGoogleChatMessageTool,
227
227
  supportsAction: ({ action }) => action === "send",
228
228
  extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
229
- handleAction: async (ctx) => (await import("./actions-BBxrBsOk.mjs")).handleGoogleChatAction(ctx)
229
+ handleAction: async (ctx) => (await import("./actions-CSE3qGrO.mjs")).handleGoogleChatAction(ctx)
230
230
  };
231
231
  //#endregion
232
232
  //#region extensions/googlechat/src/channel.ts
233
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-BlI4aJ2a.mjs"), "googleChatChannelRuntime");
233
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-uaSH6k2d.mjs"), "googleChatChannelRuntime");
234
234
  const googlechatPlugin = createChatChannelPlugin({
235
235
  base: {
236
- ...createGoogleChatPluginBase({ configSchema: buildChannelConfigSchema(GoogleChatConfigSchema) }),
236
+ ...googlechatSetupPlugin,
237
+ configSchema: buildChannelConfigSchema(GoogleChatConfigSchema),
237
238
  approvalCapability: googleChatApprovalCapability,
238
239
  secrets: {
239
240
  secretTargetRegistryEntries,
@@ -440,43 +440,40 @@ const googleChatConfigAdapter = createScopedChannelConfigAdapter({
440
440
  }),
441
441
  resolveDefaultTo: (account) => account.config.defaultTo
442
442
  });
443
- function createGoogleChatPluginBase(params = {}) {
444
- return {
445
- id: GOOGLECHAT_CHANNEL_ID,
446
- meta: { ...googlechatMeta },
447
- setupContract: googlechatSetupContract,
448
- setupWizard: googlechatSetupWizard,
449
- capabilities: {
450
- chatTypes: [
451
- "direct",
452
- "group",
453
- "thread"
454
- ],
455
- threads: true,
456
- media: true,
457
- nativeCommands: false,
458
- blockStreaming: true
459
- },
460
- streaming: { blockStreamingCoalesceDefaults: {
461
- minChars: 1500,
462
- idleMs: 1e3
463
- } },
464
- reload: { configPrefixes: ["channels.googlechat"] },
465
- ...params.configSchema ? { configSchema: params.configSchema } : {},
466
- config: {
467
- ...googleChatConfigAdapter,
468
- inspectAccount: adaptScopedAccountAccessor(inspectGoogleChatAccount),
469
- isConfigured: isGoogleChatAccountConfigured,
470
- describeAccount: (account) => describeAccountSnapshot({
471
- account,
472
- configured: isGoogleChatAccountConfigured(account),
473
- extra: {
474
- credentialSource: account.credentialSource,
475
- tokenStatus: account.tokenStatus
476
- }
477
- })
478
- }
479
- };
480
- }
443
+ const googlechatSetupPlugin = {
444
+ id: GOOGLECHAT_CHANNEL_ID,
445
+ meta: { ...googlechatMeta },
446
+ setupContract: googlechatSetupContract,
447
+ setupWizard: googlechatSetupWizard,
448
+ capabilities: {
449
+ chatTypes: [
450
+ "direct",
451
+ "group",
452
+ "thread"
453
+ ],
454
+ threads: true,
455
+ media: true,
456
+ nativeCommands: false,
457
+ blockStreaming: true
458
+ },
459
+ streaming: { blockStreamingCoalesceDefaults: {
460
+ minChars: 1500,
461
+ idleMs: 1e3
462
+ } },
463
+ reload: { configPrefixes: ["channels.googlechat"] },
464
+ config: {
465
+ ...googleChatConfigAdapter,
466
+ inspectAccount: adaptScopedAccountAccessor(inspectGoogleChatAccount),
467
+ isConfigured: isGoogleChatAccountConfigured,
468
+ describeAccount: (account) => describeAccountSnapshot({
469
+ account,
470
+ configured: isGoogleChatAccountConfigured(account),
471
+ extra: {
472
+ credentialSource: account.credentialSource,
473
+ tokenStatus: account.tokenStatus
474
+ }
475
+ })
476
+ }
477
+ };
481
478
  //#endregion
482
- export { googlechatSetupAdapter as a, resolveDefaultGoogleChatAccountId as c, googlechatSetupWizard as i, resolveGoogleChatAccount as l, createGoogleChatPluginBase as n, inspectGoogleChatAccount as o, formatGoogleChatAllowFromEntry as r, listGoogleChatAccountIds as s, GOOGLECHAT_CHANNEL_ID as t, MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES as u };
479
+ export { googlechatSetupAdapter as a, resolveDefaultGoogleChatAccountId as c, googlechatSetupWizard as i, resolveGoogleChatAccount as l, formatGoogleChatAllowFromEntry as n, inspectGoogleChatAccount as o, googlechatSetupPlugin as r, listGoogleChatAccountIds as s, GOOGLECHAT_CHANNEL_ID as t, MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES as u };
@@ -1,4 +1,4 @@
1
- import { l as resolveGoogleChatAccount, r as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-BdCGLoFe.mjs";
1
+ import { l as resolveGoogleChatAccount, n as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-sWlG7EP1.mjs";
2
2
  import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/channel-core";
3
3
  import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
4
4
  import { asNullableObjectRecord, isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -514,7 +514,7 @@ async function readGoogleChatErrorResponse(response) {
514
514
  maxChars: GOOGLECHAT_ERROR_BODY_MAX_BYTES,
515
515
  chunkTimeoutMs: GOOGLECHAT_RESPONSE_READ_IDLE_TIMEOUT_MS,
516
516
  onIdleTimeout: ({ chunkTimeoutMs }) => /* @__PURE__ */ new Error(`Google Chat API error response stalled after ${chunkTimeoutMs}ms`)
517
- }) ?? "";
517
+ }).catch(formatErrorMessage) ?? "";
518
518
  return redactToolPayloadText(text);
519
519
  }
520
520
  async function withGoogleChatResponse(params) {
@@ -1071,7 +1071,7 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
1071
1071
  });
1072
1072
  //#endregion
1073
1073
  //#region extensions/googlechat/src/channel.adapters.ts
1074
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-BlI4aJ2a.mjs"), "googleChatChannelRuntime");
1074
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-uaSH6k2d.mjs"), "googleChatChannelRuntime");
1075
1075
  const collectGoogleChatGroupPolicyWarnings = createAllowlistProviderOpenWarningCollector({
1076
1076
  providerConfigPresent: (cfg) => cfg.channels?.googlechat !== void 0,
1077
1077
  resolveGroupPolicy: (account) => account.config.groupPolicy,
@@ -1227,4 +1227,4 @@ const googlechatMessageAdapter = defineChannelMessageAdapter({
1227
1227
  send: { text: googlechatOutboundAdapter.attachedResults.sendText }
1228
1228
  });
1229
1229
  //#endregion
1230
- export { unregisterGoogleChatManualApprovalFollowupSuppression as A, verifyGoogleChatRequest as C, readGoogleChatApprovalActionToken as D, googleChatApprovalControls as E, registerGoogleChatApprovalCardBinding as O, updateGoogleChatMessage as S, buildGoogleChatApprovalActionParameters as T, GoogleChatApiError as _, googlechatPairingTextAdapter as a, probeGoogleChat as b, googleChatIngressIdentity as c, isGoogleChatGroupSpace as d, isGoogleChatSpaceTarget as f, resolveGoogleChatOutboundSpace as g, resolveGoogleChatOutboundSessionRoute as h, googlechatOutboundAdapter as i, registerGoogleChatManualApprovalFollowupSuppression as k, normalizeGoogleChatUserId as l, normalizeGoogleChatTarget as m, googlechatGroupsAdapter as n, googlechatSecurityAdapter as o, isGoogleChatUserTarget as p, googlechatMessageAdapter as r, googlechatThreadingAdapter as s, googlechatDirectoryAdapter as t, buildGoogleChatGroupPolicyScope as u, deleteGoogleChatMessage as v, GOOGLECHAT_APPROVAL_ACTION as w, sendGoogleChatMessage as x, downloadGoogleChatMedia as y };
1230
+ 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 };
@@ -1,5 +1,5 @@
1
- import { C as verifyGoogleChatRequest, D as readGoogleChatApprovalActionToken, E as googleChatApprovalControls, S as updateGoogleChatMessage, _ as GoogleChatApiError, b as probeGoogleChat, c as googleChatIngressIdentity, d as isGoogleChatGroupSpace, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as deleteGoogleChatMessage, x as sendGoogleChatMessage, y as downloadGoogleChatMedia } from "./channel.adapters-B54Nj4rn.mjs";
2
- import { n as googleChatApprovalAuth } from "./approval-auth-CHn-C5YE.mjs";
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--OFb3A2Y.mjs";
2
+ import { n as googleChatApprovalAuth } from "./approval-auth-DH1sJm7S.mjs";
3
3
  import { t as getGoogleChatRuntime } from "./runtime-C5OOOlaP.mjs";
4
4
  import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-BKg_4mXq.mjs";
5
5
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringEntries, normalizeTrimmedStringList } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -506,9 +506,7 @@ function deserializeGoogleChatIngressEvent(rawEvent, claimedId) {
506
506
  }
507
507
  function normalizeClaimedGoogleChatEvent(raw, claimedId) {
508
508
  try {
509
- const event = parseGoogleChatInboundPayload(raw);
510
- if ((event.type ?? event.eventType) !== "MESSAGE") throw new GoogleChatEventPayloadError();
511
- return event;
509
+ return parseGoogleChatInboundPayload(raw);
512
510
  } catch (error) {
513
511
  throw new GoogleChatIngressPermanentError("invalid-event", `Google Chat ingress row ${claimedId} cannot be normalized.`, { cause: error });
514
512
  }
@@ -599,7 +597,11 @@ async function deliverGoogleChatReply(params) {
599
597
  typingMessage = void 0;
600
598
  } else if (typingMessage?.placement === "thread") deliveryThreadName = typingMessage.deliveredThreadName;
601
599
  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.");
602
- if (reply.hasMedia && !reply.hasText) {
600
+ const chunkLimit = account.config.textChunkLimit ?? 4e3;
601
+ const chunkMode = core.channel.text.resolveChunkMode(config, "googlechat", account.accountId);
602
+ const chunks = formatGoogleChatTextChunks(reply.text, chunkLimit).flatMap((chunk) => core.channel.text.chunkMarkdownTextWithMode(chunk, chunkLimit, chunkMode));
603
+ 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;
604
+ if (rejection) {
603
605
  try {
604
606
  if (typingMessage) await deleteGoogleChatMessage({
605
607
  account,
@@ -608,13 +610,11 @@ async function deliverGoogleChatReply(params) {
608
610
  } catch (err) {
609
611
  runtime.error?.(`Google Chat typing cleanup failed: ${String(err)}`);
610
612
  }
611
- throw new PlatformMessageNotDispatchedError("Google Chat outbound attachments require user OAuth and no text fallback is available.", {
613
+ throw new PlatformMessageNotDispatchedError(rejection, {
612
614
  cause: void 0,
613
615
  retryable: false
614
616
  });
615
617
  }
616
- const chunkLimit = account.config.textChunkLimit ?? 4e3;
617
- const chunkMode = core.channel.text.resolveChunkMode(config, "googlechat", account.accountId);
618
618
  const recordOutboundStatus = () => {
619
619
  try {
620
620
  statusSink?.({ lastOutboundAt: Date.now() });
@@ -635,7 +635,6 @@ async function deliverGoogleChatReply(params) {
635
635
  });
636
636
  if (replyThreadName) deliveryThreadName = sent?.threadName?.trim() || deliveryThreadName;
637
637
  };
638
- const chunks = core.channel.text.chunkMarkdownTextWithMode(reply.text, chunkLimit, chunkMode);
639
638
  for (const chunk of chunks) {
640
639
  if (!chunk) continue;
641
640
  if (typingMessage) {
@@ -0,0 +1,2 @@
1
+ export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-020OItNt.mjs";
2
+ import "../secret-contract-api.js";
@@ -0,0 +1,2 @@
1
+ export { r as googlechatSetupPlugin } from "./channel-base-sWlG7EP1.mjs";
2
+ import "../setup-plugin-api.js";
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./.setup/channel-base-BdCGLoFe.mjs";
2
- import { t as googlechatPlugin } from "./.setup/channel-CNQuKfU7.mjs";
1
+ import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./.setup/channel-base-sWlG7EP1.mjs";
2
+ import { t as googlechatPlugin } from "./.setup/channel-93NUJCWK.mjs";
3
3
  export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
@@ -1,2 +1 @@
1
- import { t as googlechatPlugin } from "./.setup/channel-CNQuKfU7.mjs";
2
- export { googlechatPlugin };
1
+ export { t as googlechatPlugin } from "./.setup/channel-93NUJCWK.mjs";
@@ -1,4 +1,4 @@
1
- import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-B54Nj4rn.mjs";
1
+ import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters--OFb3A2Y.mjs";
2
2
  //#region extensions/googlechat/directory-contract-api.ts
3
3
  const googlechatDirectoryContractPlugin = {
4
4
  id: "googlechat",
@@ -1,2 +1 @@
1
- import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-BzoaiFSD.mjs";
2
- export { legacyConfigRules, normalizeCompatibilityConfig };
1
+ export { t as legacyConfigRules, n as normalizeCompatibilityConfig } from "./.setup/doctor-contract-BzoaiFSD.mjs";
@@ -1,2 +1 @@
1
- import { n as setGoogleChatRuntime } from "./.setup/runtime-C5OOOlaP.mjs";
2
- export { setGoogleChatRuntime };
1
+ export { n as setGoogleChatRuntime } from "./.setup/runtime-C5OOOlaP.mjs";
@@ -1,2 +1 @@
1
- import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./.setup/secret-contract-020OItNt.mjs";
2
- export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
1
+ export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-020OItNt.mjs";
@@ -4,11 +4,11 @@ import { fileURLToPath } from "node:url";
4
4
  var setup_entry_default = defineBundledChannelSetupEntry({
5
5
  importMetaUrl: import.meta.url,
6
6
  plugin: {
7
- specifier: fileURLToPath(new URL(".setup/setup-plugin-api-KFtk0y_E.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/setup-plugin-api-CFDZH0Qp.mjs", import.meta.url).href),
8
8
  exportName: "googlechatSetupPlugin"
9
9
  },
10
10
  secrets: {
11
- specifier: fileURLToPath(new URL(".setup/secret-contract-api-DvHE657z.mjs", import.meta.url).href),
11
+ specifier: fileURLToPath(new URL(".setup/secret-contract-api-BMH6aTo0.mjs", import.meta.url).href),
12
12
  exportName: "channelSecrets"
13
13
  }
14
14
  });
@@ -1,2 +1 @@
1
- import { t as googlechatSetupPlugin } from "./.setup/setup-plugin-api-5p-SthtR.mjs";
2
- export { googlechatSetupPlugin };
1
+ export { r as googlechatSetupPlugin } from "./.setup/channel-base-sWlG7EP1.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/googlechat",
3
- "version": "2026.10.5-beta.4",
3
+ "version": "2026.10.10-beta.2",
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.5-beta.4"
15
+ "openclaw": ">=2026.10.10-beta.2"
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.5-beta.4"
138
+ "pluginApi": ">=2026.10.10-beta.2"
139
139
  },
140
140
  "build": {
141
- "openclawVersion": "2026.10.5-beta.4"
141
+ "openclawVersion": "2026.10.10-beta.2"
142
142
  },
143
143
  "release": {
144
144
  "publishToClawHub": true,
@@ -1,3 +0,0 @@
1
- import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./secret-contract-020OItNt.mjs";
2
- import "../secret-contract-api.js";
3
- export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
@@ -1,5 +0,0 @@
1
- import { n as createGoogleChatPluginBase } from "./channel-base-BdCGLoFe.mjs";
2
- //#region extensions/googlechat/src/channel.setup.ts
3
- const googlechatSetupPlugin = createGoogleChatPluginBase();
4
- //#endregion
5
- export { googlechatSetupPlugin as t };
@@ -1,2 +0,0 @@
1
- import { t as googlechatSetupPlugin } from "./setup-plugin-api-5p-SthtR.mjs";
2
- export { googlechatSetupPlugin };