@openclaw/googlechat 2026.9.7 → 2026.9.9
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-K6_7xusH.mjs → actions-mKLxug6U.mjs} +1 -1
- package/dist/.setup/{approval-auth-DXvh9tfx.mjs → approval-auth-Cwsdp1uJ.mjs} +1 -1
- package/dist/.setup/{approval-handler.runtime-CT2MVoa-.mjs → approval-handler.runtime-CJzu5l02.mjs} +2 -2
- package/dist/.setup/{channel-DAUmcC2J.mjs → channel-DBq0WGIb.mjs} +6 -6
- package/dist/.setup/{channel.adapters-DIQot11j.mjs → channel.adapters-BXkAPo5m.mjs} +1 -1
- package/dist/.setup/{channel.runtime-C-B60lWL.mjs → channel.runtime-C1cyZ3zY.mjs} +33 -7
- package/dist/api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as resolveGoogleChatAccount } from "./channel-base-inLf3HGV.mjs";
|
|
2
|
-
import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-
|
|
2
|
+
import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-BXkAPo5m.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
1
|
import { l as resolveGoogleChatAccount } from "./channel-base-inLf3HGV.mjs";
|
|
2
|
-
import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-
|
|
2
|
+
import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-BXkAPo5m.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-CT2MVoa-.mjs → approval-handler.runtime-CJzu5l02.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as resolveGoogleChatAccount } from "./channel-base-inLf3HGV.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-
|
|
3
|
-
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-
|
|
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-BXkAPo5m.mjs";
|
|
3
|
+
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-DBq0WGIb.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,8 +1,8 @@
|
|
|
1
1
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-wLrnvLUn.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-inLf3HGV.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-
|
|
5
|
-
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-
|
|
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-BXkAPo5m.mjs";
|
|
5
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-Cwsdp1uJ.mjs";
|
|
6
6
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-B7H-kkqq.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-
|
|
135
|
+
load: async () => (await import("./approval-handler.runtime-CJzu5l02.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-C1cyZ3zY.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-mKLxug6U.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-C1cyZ3zY.mjs"), "googleChatChannelRuntime");
|
|
234
234
|
const googlechatPlugin = createChatChannelPlugin({
|
|
235
235
|
base: {
|
|
236
236
|
...createGoogleChatPluginBase({ configSchema: buildChannelConfigSchema(GoogleChatConfigSchema) }),
|
|
@@ -1116,7 +1116,7 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
|
|
|
1116
1116
|
});
|
|
1117
1117
|
//#endregion
|
|
1118
1118
|
//#region extensions/googlechat/src/channel.adapters.ts
|
|
1119
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
1119
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-C1cyZ3zY.mjs"), "googleChatChannelRuntime");
|
|
1120
1120
|
const collectGoogleChatGroupPolicyWarnings = createAllowlistProviderOpenWarningCollector({
|
|
1121
1121
|
providerConfigPresent: (cfg) => cfg.channels?.googlechat !== void 0,
|
|
1122
1122
|
resolveGroupPolicy: (account) => account.config.groupPolicy,
|
|
@@ -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-
|
|
2
|
-
import { n as googleChatApprovalAuth } from "./approval-auth-
|
|
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-BXkAPo5m.mjs";
|
|
2
|
+
import { n as googleChatApprovalAuth } from "./approval-auth-Cwsdp1uJ.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, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries, normalizeTrimmedStringList } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -664,6 +664,24 @@ async function deliverGoogleChatReply(params) {
|
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
//#endregion
|
|
667
|
+
//#region extensions/googlechat/src/monitor-reply-target.ts
|
|
668
|
+
/**
|
|
669
|
+
* Google Chat only accepts a thread resource (`spaces/x/threads/y`) as a reply
|
|
670
|
+
* target. The automatic reply pipeline supplies the inbound *message* resource
|
|
671
|
+
* (`spaces/x/messages/y`) instead, which delivery would read as an intentional
|
|
672
|
+
* retarget and use to discard the typing placeholder. Reconcile that exact
|
|
673
|
+
* source-message target to the effective reply-mode target before delivery,
|
|
674
|
+
* leaving other targets untouched so explicit retargeting still works.
|
|
675
|
+
*/
|
|
676
|
+
function normalizeGoogleChatReplyTarget(params) {
|
|
677
|
+
const sourceMessageName = params.sourceMessageName;
|
|
678
|
+
if (!sourceMessageName || params.payload.replyToId !== sourceMessageName) return params.payload;
|
|
679
|
+
return {
|
|
680
|
+
...params.payload,
|
|
681
|
+
replyToId: params.replyThreadName
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
//#endregion
|
|
667
685
|
//#region extensions/googlechat/src/monitor-webhook.ts
|
|
668
686
|
function extractBearerToken(header) {
|
|
669
687
|
const authHeader = Array.isArray(header) ? typeof header[0] === "string" ? header[0] : "" : typeof header === "string" ? header : "";
|
|
@@ -1066,7 +1084,7 @@ async function processGoogleChatEvent(event, target, turnAdoptionLifecycle, conf
|
|
|
1066
1084
|
typingIndicator = "message";
|
|
1067
1085
|
}
|
|
1068
1086
|
let typingMessage;
|
|
1069
|
-
const
|
|
1087
|
+
const effectiveReplyThreadName = account.config.replyToMode && account.config.replyToMode !== "off" ? replyThreadName : void 0;
|
|
1070
1088
|
if (typingIndicator === "message") try {
|
|
1071
1089
|
const botName = resolveBotDisplayName({
|
|
1072
1090
|
accountName: account.config.name,
|
|
@@ -1077,11 +1095,11 @@ async function processGoogleChatEvent(event, target, turnAdoptionLifecycle, conf
|
|
|
1077
1095
|
account,
|
|
1078
1096
|
space: spaceId,
|
|
1079
1097
|
text: `_${botName} is typing..._`,
|
|
1080
|
-
thread:
|
|
1098
|
+
thread: effectiveReplyThreadName
|
|
1081
1099
|
});
|
|
1082
1100
|
if (result?.messageName) typingMessage = createGoogleChatTypingMessage({
|
|
1083
1101
|
messageName: result.messageName,
|
|
1084
|
-
requestedThreadName:
|
|
1102
|
+
requestedThreadName: effectiveReplyThreadName,
|
|
1085
1103
|
deliveredThreadName: result.threadName
|
|
1086
1104
|
});
|
|
1087
1105
|
} catch (err) {
|
|
@@ -1112,14 +1130,22 @@ async function processGoogleChatEvent(event, target, turnAdoptionLifecycle, conf
|
|
|
1112
1130
|
ctxPayload,
|
|
1113
1131
|
delivery: {
|
|
1114
1132
|
durable: (payload, info) => resolveGoogleChatDurableReplyOptions({
|
|
1115
|
-
payload
|
|
1133
|
+
payload: normalizeGoogleChatReplyTarget({
|
|
1134
|
+
payload,
|
|
1135
|
+
sourceMessageName: message.name,
|
|
1136
|
+
replyThreadName: effectiveReplyThreadName
|
|
1137
|
+
}),
|
|
1116
1138
|
infoKind: info.kind,
|
|
1117
1139
|
spaceId,
|
|
1118
1140
|
hasTypingMessage: Boolean(typingMessage)
|
|
1119
1141
|
}),
|
|
1120
1142
|
deliver: async (payload) => {
|
|
1121
1143
|
await deliverGoogleChatReply({
|
|
1122
|
-
payload
|
|
1144
|
+
payload: normalizeGoogleChatReplyTarget({
|
|
1145
|
+
payload,
|
|
1146
|
+
sourceMessageName: message.name,
|
|
1147
|
+
replyThreadName: effectiveReplyThreadName
|
|
1148
|
+
}),
|
|
1123
1149
|
account,
|
|
1124
1150
|
spaceId,
|
|
1125
1151
|
runtime,
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./.setup/channel-base-inLf3HGV.mjs";
|
|
2
|
-
import { t as googlechatPlugin } from "./.setup/channel-
|
|
2
|
+
import { t as googlechatPlugin } from "./.setup/channel-DBq0WGIb.mjs";
|
|
3
3
|
export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as googlechatPlugin } from "./.setup/channel-
|
|
1
|
+
import { t as googlechatPlugin } from "./.setup/channel-DBq0WGIb.mjs";
|
|
2
2
|
export { googlechatPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-
|
|
1
|
+
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-BXkAPo5m.mjs";
|
|
2
2
|
//#region 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.9.
|
|
3
|
+
"version": "2026.9.9",
|
|
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.9.
|
|
15
|
+
"openclaw": ">=2026.9.9"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -135,10 +135,10 @@
|
|
|
135
135
|
"minHostVersion": ">=2026.4.10"
|
|
136
136
|
},
|
|
137
137
|
"compat": {
|
|
138
|
-
"pluginApi": ">=2026.9.
|
|
138
|
+
"pluginApi": ">=2026.9.9"
|
|
139
139
|
},
|
|
140
140
|
"build": {
|
|
141
|
-
"openclawVersion": "2026.9.
|
|
141
|
+
"openclawVersion": "2026.9.9"
|
|
142
142
|
},
|
|
143
143
|
"release": {
|
|
144
144
|
"publishToClawHub": true,
|