@openclaw/googlechat 2026.10.6 → 2026.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.setup/{actions-BBxrBsOk.mjs → actions-C3dOSOq1.mjs} +13 -11
- package/dist/.setup/{approval-auth-CHn-C5YE.mjs → approval-auth-BNgVU-9Q.mjs} +1 -1
- package/dist/.setup/{approval-handler.runtime-r0gTDaSz.mjs → approval-handler.runtime-CVaiBm8O.mjs} +2 -2
- package/dist/.setup/{channel-CNQuKfU7.mjs → channel-C2uheiRh.mjs} +7 -7
- package/dist/.setup/{channel.adapters-B54Nj4rn.mjs → channel.adapters-aMNZ1fCC.mjs} +25 -3
- package/dist/.setup/{channel.runtime-BlI4aJ2a.mjs → channel.runtime-Bg15h2LA.mjs} +10 -8
- package/dist/.setup/{secret-contract-020OItNt.mjs → secret-contract-D7KjX374.mjs} +2 -0
- package/dist/.setup/{secret-contract-api-BMH6aTo0.mjs → secret-contract-api-BG_8yVjr.mjs} +1 -1
- package/dist/.source-module-urls/974ffefea973cf3ea18e1534d25b091bcf1b68760a2b9eda0cd9bd9392096c64.json +1 -0
- package/dist/api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as resolveGoogleChatAccount } from "./channel-base-BdCGLoFe.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { S as sendGoogleChatMessage, _ as resolveGoogleChatOutboundSpace, d as formatGoogleChatMediaText } from "./channel.adapters-aMNZ1fCC.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
|
|
@@ -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
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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"
|
|
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-BdCGLoFe.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { h as normalizeGoogleChatTarget, m as isGoogleChatUserTarget } from "./channel.adapters-aMNZ1fCC.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
|
package/dist/.setup/{approval-handler.runtime-r0gTDaSz.mjs → approval-handler.runtime-CVaiBm8O.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as resolveGoogleChatAccount } from "./channel-base-BdCGLoFe.mjs";
|
|
2
|
-
import { A as
|
|
3
|
-
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-
|
|
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-aMNZ1fCC.mjs";
|
|
3
|
+
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-C2uheiRh.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";
|
|
@@ -1,9 +1,9 @@
|
|
|
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
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,
|
|
5
|
-
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-
|
|
6
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-
|
|
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-aMNZ1fCC.mjs";
|
|
5
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-BNgVU-9Q.mjs";
|
|
6
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-D7KjX374.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";
|
|
@@ -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-
|
|
135
|
+
load: async () => (await import("./approval-handler.runtime-CVaiBm8O.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-
|
|
159
|
+
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bg15h2LA.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,11 +226,11 @@ 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-
|
|
229
|
+
handleAction: async (ctx) => (await import("./actions-C3dOSOq1.mjs")).handleGoogleChatAction(ctx)
|
|
230
230
|
};
|
|
231
231
|
//#endregion
|
|
232
232
|
//#region extensions/googlechat/src/channel.ts
|
|
233
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
233
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bg15h2LA.mjs"), "googleChatChannelRuntime");
|
|
234
234
|
const googlechatPlugin = createChatChannelPlugin({
|
|
235
235
|
base: {
|
|
236
236
|
...createGoogleChatPluginBase({ configSchema: buildChannelConfigSchema(GoogleChatConfigSchema) }),
|
|
@@ -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
|
//#region extensions/googlechat/src/approval-card-actions.ts
|
|
25
26
|
const GOOGLECHAT_APPROVAL_ACTION = "openclaw.approval";
|
|
@@ -806,6 +807,18 @@ function createGoogleChatMarkers(text) {
|
|
|
806
807
|
function sanitizeGoogleChatText(text) {
|
|
807
808
|
return sanitizeForPlainText(sanitizeAssistantVisibleText(text), { style: "markdown" });
|
|
808
809
|
}
|
|
810
|
+
function formatGoogleChatMediaText(text, mediaUrls) {
|
|
811
|
+
const remoteUrls = mediaUrls.filter((value) => {
|
|
812
|
+
if (value.split("").some((character) => character <= " " || character === "") || !/^https?:\/\//iu.test(value)) return false;
|
|
813
|
+
try {
|
|
814
|
+
return Boolean(new URL(value).hostname);
|
|
815
|
+
} catch {
|
|
816
|
+
return false;
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
if (remoteUrls.length !== mediaUrls.length) throw new Error("Google Chat outbound attachments require remote HTTP(S) URLs.");
|
|
820
|
+
return [text, formatTextWithAttachmentLinks(void 0, remoteUrls)].filter(Boolean).join("\n\n");
|
|
821
|
+
}
|
|
809
822
|
function projectDecodedGoogleChatResources(ir) {
|
|
810
823
|
const text = ir.text.replace(/<(?:users|customEmojis)\/[^<>\s]+>/giu, (match) => `<${match.slice(1, -1)}>`);
|
|
811
824
|
return text === ir.text ? ir : {
|
|
@@ -1071,7 +1084,7 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
|
|
|
1071
1084
|
});
|
|
1072
1085
|
//#endregion
|
|
1073
1086
|
//#region extensions/googlechat/src/channel.adapters.ts
|
|
1074
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
1087
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bg15h2LA.mjs"), "googleChatChannelRuntime");
|
|
1075
1088
|
const collectGoogleChatGroupPolicyWarnings = createAllowlistProviderOpenWarningCollector({
|
|
1076
1089
|
providerConfigPresent: (cfg) => cfg.channels?.googlechat !== void 0,
|
|
1077
1090
|
resolveGroupPolicy: (account) => account.config.groupPolicy,
|
|
@@ -1164,7 +1177,15 @@ const googlechatOutboundAdapter = {
|
|
|
1164
1177
|
chunkerMode: "markdown",
|
|
1165
1178
|
textChunkLimit: GOOGLE_CHAT_FORMAT_PROFILE.chunk.limit,
|
|
1166
1179
|
sanitizeText: ({ text }) => sanitizeGoogleChatText(text),
|
|
1167
|
-
normalizePayload: ({ payload }) =>
|
|
1180
|
+
normalizePayload: ({ payload }) => {
|
|
1181
|
+
if (shouldSuppressGoogleChatManualExecApprovalFollowupPayload(payload)) return null;
|
|
1182
|
+
const reply = resolveSendableOutboundReplyParts(payload);
|
|
1183
|
+
const { mediaUrl: _mediaUrl, mediaUrls: _mediaUrls, ...rest } = payload;
|
|
1184
|
+
return {
|
|
1185
|
+
...rest,
|
|
1186
|
+
text: formatGoogleChatMediaText(reply.text, reply.mediaUrls)
|
|
1187
|
+
};
|
|
1188
|
+
},
|
|
1168
1189
|
resolveTarget: ({ to }) => {
|
|
1169
1190
|
const normalized = normalizeGoogleChatTarget(to);
|
|
1170
1191
|
return normalized ? {
|
|
@@ -1221,10 +1242,11 @@ const googlechatMessageAdapter = defineChannelMessageAdapter({
|
|
|
1221
1242
|
id: "googlechat",
|
|
1222
1243
|
durableFinal: { capabilities: {
|
|
1223
1244
|
text: true,
|
|
1245
|
+
media: true,
|
|
1224
1246
|
thread: true,
|
|
1225
1247
|
messageSendingHooks: true
|
|
1226
1248
|
} },
|
|
1227
1249
|
send: { text: googlechatOutboundAdapter.attachedResults.sendText }
|
|
1228
1250
|
});
|
|
1229
1251
|
//#endregion
|
|
1230
|
-
export {
|
|
1252
|
+
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, formatGoogleChatMediaText 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
|
|
2
|
-
import { n as googleChatApprovalAuth } from "./approval-auth-
|
|
1
|
+
import { C as updateGoogleChatMessage, D as googleChatApprovalControls, O as readGoogleChatApprovalActionToken, S as sendGoogleChatMessage, b as downloadGoogleChatMedia, c as googleChatIngressIdentity, d as formatGoogleChatMediaText, f as isGoogleChatGroupSpace, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as GoogleChatApiError, w as verifyGoogleChatRequest, x as probeGoogleChat, y as deleteGoogleChatMessage } from "./channel.adapters-aMNZ1fCC.mjs";
|
|
2
|
+
import { n as googleChatApprovalAuth } from "./approval-auth-BNgVU-9Q.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";
|
|
@@ -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
|
//#region extensions/googlechat/src/approval-terminal-card.ts
|
|
@@ -598,8 +598,10 @@ async function deliverGoogleChatReply(params) {
|
|
|
598
598
|
}
|
|
599
599
|
typingMessage = void 0;
|
|
600
600
|
} else if (typingMessage?.placement === "thread") deliveryThreadName = typingMessage.deliveredThreadName;
|
|
601
|
-
|
|
602
|
-
|
|
601
|
+
let text;
|
|
602
|
+
try {
|
|
603
|
+
text = formatGoogleChatMediaText(reply.text, reply.mediaUrls);
|
|
604
|
+
} catch (cause) {
|
|
603
605
|
try {
|
|
604
606
|
if (typingMessage) await deleteGoogleChatMessage({
|
|
605
607
|
account,
|
|
@@ -608,8 +610,8 @@ 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(
|
|
612
|
-
cause
|
|
613
|
+
throw new PlatformMessageNotDispatchedError(cause instanceof Error ? cause.message : String(cause), {
|
|
614
|
+
cause,
|
|
613
615
|
retryable: false
|
|
614
616
|
});
|
|
615
617
|
}
|
|
@@ -635,7 +637,7 @@ async function deliverGoogleChatReply(params) {
|
|
|
635
637
|
});
|
|
636
638
|
if (replyThreadName) deliveryThreadName = sent?.threadName?.trim() || deliveryThreadName;
|
|
637
639
|
};
|
|
638
|
-
const chunks = core.channel.text.chunkMarkdownTextWithMode(
|
|
640
|
+
const chunks = core.channel.text.chunkMarkdownTextWithMode(text, chunkLimit, chunkMode);
|
|
639
641
|
for (const chunk of chunks) {
|
|
640
642
|
if (!chunk) continue;
|
|
641
643
|
if (typingMessage) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
2
|
+
import { hasConfiguredAccountValue } from "openclaw/plugin-sdk/account-resolution";
|
|
2
3
|
import { coerceSecretRef } from "openclaw/plugin-sdk/secret-input";
|
|
3
4
|
import { createChannelSecretContract, hasOwnProperty, pushAssignment, pushInactiveSurfaceWarning } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
|
|
4
5
|
//#region extensions/googlechat/src/secret-contract.ts
|
|
@@ -46,6 +47,7 @@ const channelSecrets = createChannelSecretContract({
|
|
|
46
47
|
secretShape: "secret_input",
|
|
47
48
|
expectedResolvedValue: "string-or-object"
|
|
48
49
|
}],
|
|
50
|
+
hasImplicitDefaultAccount: ({ channel, context }) => hasConfiguredAccountValue(channel.serviceAccount) || hasConfiguredAccountValue(channel.serviceAccountFile) || hasConfiguredAccountValue(context.env.GOOGLE_CHAT_SERVICE_ACCOUNT) || hasConfiguredAccountValue(context.env.GOOGLE_CHAT_SERVICE_ACCOUNT_FILE),
|
|
49
51
|
collect(params) {
|
|
50
52
|
const { channel: googleChat, surface } = params;
|
|
51
53
|
const topLevelServiceAccountOwners = !surface.channelEnabled ? [] : !surface.hasExplicitAccounts ? ["default"] : surface.accounts.filter(({ account, enabled }) => enabled && !hasOwnProperty(account, "serviceAccount")).map(({ accountId }) => accountId);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-
|
|
1
|
+
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-D7KjX374.mjs";
|
|
2
2
|
import "../secret-contract-api.js";
|
|
@@ -0,0 +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-C3dOSOq1.mjs","sha256":"828d2632c9bd298ae3f96eb342c9521974356c2db5e97e3ea16805ce89452787","facadeSource":"extensions/googlechat/src/actions.ts","sources":["extensions/googlechat/src/actions.ts"]},{"output":".setup/approval-auth-BNgVU-9Q.mjs","sha256":"3aba8cdb828a7420a2c228dd14352cbf50fdd6090072c8f9f61c8c94ad73125f","facadeSource":null,"sources":["extensions/googlechat/src/approval-auth.ts"]},{"output":".setup/approval-card-text-BKg_4mXq.mjs","sha256":"8ef37d45efdb68f267086fe01893157c6f6235c7b9c2ccbdab24055c6d8adf88","facadeSource":null,"sources":["extensions/googlechat/src/approval-card-text.ts"]},{"output":".setup/approval-handler.runtime-CVaiBm8O.mjs","sha256":"28e8d49320a6b5bb1826c116a8da9a105015e4807e9c94485c84965ab1bc0a53","facadeSource":"extensions/googlechat/src/approval-handler.runtime.ts","sources":["extensions/googlechat/src/approval-handler.runtime.ts"]},{"output":".setup/channel-base-BdCGLoFe.mjs","sha256":"e42adf3b29cffddd6fcc1086aeb747c868b8a9d1bbd1400db3579e1604d44381","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-C2uheiRh.mjs","sha256":"d48ef935cdb208b59219eba0e6fb5ca0e3f805fced393cf57278bfa365bc87e3","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-aMNZ1fCC.mjs","sha256":"421b2e027b1d26a9538ba7a49f47d7cadd88f6fadd06738df3a90b41e63bca9c","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-Bg15h2LA.mjs","sha256":"fe1f4ee8dcee7af4fac92379b6e02f72ab625da15f44c6bcbf3a6b2c50217764","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-BzoaiFSD.mjs","sha256":"f78d3604b830a3eaea77e171b9611f4b2452aae2b1cdede1a2d7504be7e97bfa","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-C5OOOlaP.mjs","sha256":"1816c00a6c75882b7432dbaaf341159fb37c64d37be29f27ca9363397d0d10e7","facadeSource":null,"sources":["extensions/googlechat/src/runtime.ts"]},{"output":".setup/secret-contract-api-BG_8yVjr.mjs","sha256":"60c6a50f92970e7ab01716d07d1913f962ead2e60a519a3187fc51651b65fcb1","facadeSource":"extensions/googlechat/secret-contract-api.ts","sources":[]},{"output":".setup/secret-contract-D7KjX374.mjs","sha256":"a2d670c525a743a940fa8193708103854f5c1e427fecae2a1cf7a43a9d0ddaef","facadeSource":null,"sources":["extensions/googlechat/src/secret-contract.ts"]},{"output":".setup/setup-plugin-api-5p-SthtR.mjs","sha256":"63bde789f4c252029983ded51c5e2b0f891f5fa377b150a9771855aa378d6afe","facadeSource":null,"sources":["extensions/googlechat/src/channel.setup.ts"]},{"output":".setup/setup-plugin-api-WP7Oy-3n.mjs","sha256":"ee31137c704e008724d9bd609fbd63e366d45ad9cbadea6897d35d21b3ccf95a","facadeSource":"extensions/googlechat/setup-plugin-api.ts","sources":[]},{"output":"api.js","sha256":"368224d0d8d86270375d3ed6e4dedfb578e8d8ef8bc3c6766b85ea852c6b7e05","facadeSource":"extensions/googlechat/api.ts","sources":[]},{"output":"channel-config-api.js","sha256":"88cdb342321b9e2e61dd2c4b08daf370365a9ccaeccd3b32d5e7926c5c3ae993","facadeSource":"extensions/googlechat/channel-config-api.ts","sources":["extensions/googlechat/src/config-schema.ts"]},{"output":"channel-plugin-api.js","sha256":"3ad063679553110f28ae5143a0314acafeaf3e2cdc4e84bb6167641a188d3ce2","facadeSource":"extensions/googlechat/channel-plugin-api.ts","sources":[]},{"output":"directory-contract-api.js","sha256":"8bb27115951e0715c710879860efcee19cdce96be8b20e8a5d2a6e4ebcf55ac0","facadeSource":"extensions/googlechat/directory-contract-api.ts","sources":["extensions/googlechat/directory-contract-api.ts"]},{"output":"doctor-contract-api.js","sha256":"cb549235cb6135ef3da43b0d8324ecb604c679c1de428740cf175910868cb9f7","facadeSource":"extensions/googlechat/doctor-contract-api.ts","sources":[]},{"output":"index.js","sha256":"98d019ca0e85389fbd5770bef647fca2b0d130b8f84ca360c53ce508eb249a56","facadeSource":"extensions/googlechat/index.ts","sources":["extensions/googlechat/index.ts"]},{"output":"runtime-api.js","sha256":"13787dcc4d1069b78c6e67e76b24397a1e2d27b75d30875ac966a60833a69b96","facadeSource":"extensions/googlechat/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"fd9c40156837a10092eee46d660cbe8b143de075c0dbb55243892eec936c4df2","facadeSource":"extensions/googlechat/secret-contract-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"9003bd8459c56ade3742eab37daeb4ae1f2a42e727b051983810a87d4762d4b7","facadeSource":"extensions/googlechat/setup-entry.ts","sources":["extensions/googlechat/setup-entry.ts"]},{"output":"setup-plugin-api.js","sha256":"3a90dec444553ff5127ec3c5fe8156b6c6ba677333a993b590b8022dd7c72fea","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"]}
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./.setup/channel-base-BdCGLoFe.mjs";
|
|
2
|
-
import { t as googlechatPlugin } from "./.setup/channel-
|
|
2
|
+
import { t as googlechatPlugin } from "./.setup/channel-C2uheiRh.mjs";
|
|
3
3
|
export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as googlechatPlugin } from "./.setup/channel-
|
|
1
|
+
export { t as googlechatPlugin } from "./.setup/channel-C2uheiRh.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-
|
|
1
|
+
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-aMNZ1fCC.mjs";
|
|
2
2
|
//#region extensions/googlechat/directory-contract-api.ts
|
|
3
3
|
const googlechatDirectoryContractPlugin = {
|
|
4
4
|
id: "googlechat",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-
|
|
1
|
+
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-D7KjX374.mjs";
|
package/dist/setup-entry.js
CHANGED
|
@@ -8,7 +8,7 @@ var setup_entry_default = defineBundledChannelSetupEntry({
|
|
|
8
8
|
exportName: "googlechatSetupPlugin"
|
|
9
9
|
},
|
|
10
10
|
secrets: {
|
|
11
|
-
specifier: fileURLToPath(new URL(".setup/secret-contract-api-
|
|
11
|
+
specifier: fileURLToPath(new URL(".setup/secret-contract-api-BG_8yVjr.mjs", import.meta.url).href),
|
|
12
12
|
exportName: "channelSecrets"
|
|
13
13
|
}
|
|
14
14
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.8",
|
|
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.
|
|
15
|
+
"openclaw": ">=2026.10.8"
|
|
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.
|
|
138
|
+
"pluginApi": ">=2026.10.8"
|
|
139
139
|
},
|
|
140
140
|
"build": {
|
|
141
|
-
"openclawVersion": "2026.10.
|
|
141
|
+
"openclawVersion": "2026.10.8"
|
|
142
142
|
},
|
|
143
143
|
"release": {
|
|
144
144
|
"publishToClawHub": true,
|