@openclaw/googlechat 2026.8.2 → 2026.9.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.
- package/dist/{actions-D6pxn1Wt.js → actions-6QiB4LOV.js} +2 -2
- package/dist/api.js +1 -1
- package/dist/{approval-auth-CSGubNJm.js → approval-auth-CEu4-wG6.js} +1 -1
- package/dist/approval-card-text-ChngxXdJ.js +6 -0
- package/dist/{approval-handler.runtime-YEjSHISM.js → approval-handler.runtime-BlNZVfJD.js} +23 -12
- package/dist/{channel-DzU2exVT.js → channel-C_PzX4pt.js} +11 -7
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.adapters-Cp5Cywji.js → channel.adapters-CQxQqwUQ.js} +1 -1
- package/dist/{channel.runtime-CeEvWgz_.js → channel.runtime-DBXW-pey.js} +9 -11
- package/dist/directory-contract-api.js +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.js";
|
|
2
|
-
import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-
|
|
3
|
-
import { n as describeGoogleChatMessageTool } from "./channel-
|
|
2
|
+
import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-CQxQqwUQ.js";
|
|
3
|
+
import { n as describeGoogleChatMessageTool } from "./channel-C_PzX4pt.js";
|
|
4
4
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
5
5
|
import { jsonResult, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
|
|
6
6
|
//#region extensions/googlechat/src/actions.ts
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./channel-base-B3EzcV7X.js";
|
|
2
|
-
import { t as googlechatPlugin } from "./channel-
|
|
2
|
+
import { t as googlechatPlugin } from "./channel-C_PzX4pt.js";
|
|
3
3
|
export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.js";
|
|
2
|
-
import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-
|
|
2
|
+
import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-CQxQqwUQ.js";
|
|
3
3
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { createChannelApprovalAuth } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
5
5
|
//#region extensions/googlechat/src/approval-auth.ts
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.js";
|
|
2
|
-
import { F as unregisterGoogleChatManualApprovalFollowupSuppression, M as registerGoogleChatManualApprovalFollowupSuppression, O as createGoogleChatApprovalToken, P as unregisterGoogleChatApprovalCardBindings, S as updateGoogleChatMessage, T as buildGoogleChatApprovalActionParameters, g as resolveGoogleChatOutboundSpace, j as registerGoogleChatApprovalCardBinding, w as GOOGLECHAT_APPROVAL_ACTION, x as sendGoogleChatMessage } from "./channel.adapters-
|
|
3
|
-
import { i as shouldHandleGoogleChatNativeApprovalRequest, r as isGoogleChatNativeApprovalClientEnabled } from "./channel-
|
|
2
|
+
import { F as unregisterGoogleChatManualApprovalFollowupSuppression, M as registerGoogleChatManualApprovalFollowupSuppression, O as createGoogleChatApprovalToken, P as unregisterGoogleChatApprovalCardBindings, S as updateGoogleChatMessage, T as buildGoogleChatApprovalActionParameters, g as resolveGoogleChatOutboundSpace, j as registerGoogleChatApprovalCardBinding, w as GOOGLECHAT_APPROVAL_ACTION, x as sendGoogleChatMessage } from "./channel.adapters-CQxQqwUQ.js";
|
|
3
|
+
import { i as shouldHandleGoogleChatNativeApprovalRequest, r as isGoogleChatNativeApprovalClientEnabled } from "./channel-C_PzX4pt.js";
|
|
4
|
+
import { t as escapeGoogleChatApprovalCardText } from "./approval-card-text-ChngxXdJ.js";
|
|
4
5
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
5
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
7
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
@@ -18,20 +19,17 @@ function resolveHandlerAccount(params) {
|
|
|
18
19
|
if (!account.enabled || account.credentialSource === "none" || account.tokenStatus === "configured_unavailable") return null;
|
|
19
20
|
return account;
|
|
20
21
|
}
|
|
21
|
-
function escapeGoogleChatText(text) {
|
|
22
|
-
return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
23
|
-
}
|
|
24
22
|
function truncateText(text, maxChars = MAX_TEXT_PARAGRAPH_CHARS) {
|
|
25
23
|
return text.length <= maxChars ? text : `${truncateUtf16Safe(text, maxChars - 3)}...`;
|
|
26
24
|
}
|
|
27
25
|
function buildMetadataText(metadata) {
|
|
28
|
-
return metadata.map((item) => `<b>${
|
|
26
|
+
return metadata.map((item) => `<b>${escapeGoogleChatApprovalCardText(item.label)}:</b> ${escapeGoogleChatApprovalCardText(item.value)}`).join("<br>");
|
|
29
27
|
}
|
|
30
28
|
function formatDecision(decision) {
|
|
31
29
|
return decision === "allow-once" ? "Allowed once" : decision === "allow-always" ? "Allowed always" : "Denied";
|
|
32
30
|
}
|
|
33
31
|
function buildMainTextWidget(text) {
|
|
34
|
-
return { textParagraph: { text:
|
|
32
|
+
return { textParagraph: { text: escapeGoogleChatApprovalCardText(truncateText(text)) } };
|
|
35
33
|
}
|
|
36
34
|
function buildHtmlTextWidget(text) {
|
|
37
35
|
return { textParagraph: { text: truncateText(text) } };
|
|
@@ -50,7 +48,14 @@ function buildPluginPendingSections(view) {
|
|
|
50
48
|
if (view.approvalKind !== "plugin") return [];
|
|
51
49
|
return [{
|
|
52
50
|
header: "Request",
|
|
53
|
-
widgets: [buildHtmlTextWidget(`<b>${
|
|
51
|
+
widgets: [buildHtmlTextWidget(`<b>${escapeGoogleChatApprovalCardText(view.title)}</b>${view.description ? `<br>${escapeGoogleChatApprovalCardText(view.description)}` : ""}`)]
|
|
52
|
+
}];
|
|
53
|
+
}
|
|
54
|
+
function buildSystemAgentPendingSections(view) {
|
|
55
|
+
if (view.approvalKind !== "system-agent") return [];
|
|
56
|
+
return [{
|
|
57
|
+
header: "Change",
|
|
58
|
+
widgets: [buildMainTextWidget(view.operationSummary)]
|
|
54
59
|
}];
|
|
55
60
|
}
|
|
56
61
|
function buildMetadataSection(view) {
|
|
@@ -91,7 +96,7 @@ function buildPendingPayload(params) {
|
|
|
91
96
|
actionFunction,
|
|
92
97
|
view
|
|
93
98
|
});
|
|
94
|
-
const title = view.approvalKind === "plugin" ? "Plugin Approval Required" : "Exec Approval Required";
|
|
99
|
+
const title = view.approvalKind === "plugin" ? "Plugin Approval Required" : view.approvalKind === "system-agent" ? "OpenClaw Change Requires Approval" : "Exec Approval Required";
|
|
95
100
|
const subtitle = `Expires in ${Math.max(0, Math.ceil((view.expiresAtMs - nowMs) / 1e3))}s`;
|
|
96
101
|
const card = {
|
|
97
102
|
cardId: GOOGLECHAT_APPROVAL_CARD_ID,
|
|
@@ -103,6 +108,7 @@ function buildPendingPayload(params) {
|
|
|
103
108
|
sections: [
|
|
104
109
|
...buildExecPendingSections(view),
|
|
105
110
|
...buildPluginPendingSections(view),
|
|
111
|
+
...buildSystemAgentPendingSections(view),
|
|
106
112
|
...buildMetadataSection(view),
|
|
107
113
|
actionSection
|
|
108
114
|
]
|
|
@@ -125,11 +131,12 @@ function resolveApprovalActionFunction(params) {
|
|
|
125
131
|
}
|
|
126
132
|
function buildResolvedPayload(view) {
|
|
127
133
|
const resolvedBy = normalizeOptionalString(view.resolvedBy);
|
|
134
|
+
const decisionLabel = view.approvalKind === "system-agent" && view.terminalStatus === "cancelled" ? "Cancelled" : view.approvalKind === "system-agent" && view.applicationStatus === "applied" ? "Applied" : view.approvalKind === "system-agent" && view.applicationStatus === "not-applied" ? "Not applied" : formatDecision(view.decision);
|
|
128
135
|
return { cardsV2: [{
|
|
129
136
|
cardId: GOOGLECHAT_APPROVAL_CARD_ID,
|
|
130
137
|
card: {
|
|
131
138
|
header: {
|
|
132
|
-
title: `${view.approvalKind === "plugin" ? "Plugin" : "Exec"} Approval: ${
|
|
139
|
+
title: `${view.approvalKind === "plugin" ? "Plugin" : view.approvalKind === "system-agent" ? "OpenClaw Change" : "Exec"} Approval: ${decisionLabel}`,
|
|
133
140
|
subtitle: resolvedBy ? `Resolved by ${resolvedBy}` : "Resolved"
|
|
134
141
|
},
|
|
135
142
|
sections: buildMetadataSection(view)
|
|
@@ -141,7 +148,7 @@ function buildExpiredPayload(view) {
|
|
|
141
148
|
cardId: GOOGLECHAT_APPROVAL_CARD_ID,
|
|
142
149
|
card: {
|
|
143
150
|
header: {
|
|
144
|
-
title: `${view.approvalKind === "plugin" ? "Plugin" : "Exec"} Approval Expired`,
|
|
151
|
+
title: `${view.approvalKind === "plugin" ? "Plugin" : view.approvalKind === "system-agent" ? "OpenClaw Change" : "Exec"} Approval Expired`,
|
|
145
152
|
subtitle: "This approval request expired before it was resolved."
|
|
146
153
|
},
|
|
147
154
|
sections: buildMetadataSection(view)
|
|
@@ -149,7 +156,11 @@ function buildExpiredPayload(view) {
|
|
|
149
156
|
}] };
|
|
150
157
|
}
|
|
151
158
|
const googleChatApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter({
|
|
152
|
-
eventKinds: [
|
|
159
|
+
eventKinds: [
|
|
160
|
+
"exec",
|
|
161
|
+
"plugin",
|
|
162
|
+
"system-agent"
|
|
163
|
+
],
|
|
153
164
|
availability: {
|
|
154
165
|
isConfigured: ({ cfg, accountId }) => isGoogleChatNativeApprovalClientEnabled({
|
|
155
166
|
cfg,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, o as inspectGoogleChatAccount, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-B3EzcV7X.js";
|
|
2
|
-
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-
|
|
2
|
+
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-CQxQqwUQ.js";
|
|
3
3
|
import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.js";
|
|
4
4
|
import { t as DEFAULT_ACCOUNT_ID } from "./runtime-api-Dh0CNVS4.js";
|
|
5
|
-
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-
|
|
5
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-CEu4-wG6.js";
|
|
6
6
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BLvSmTXT.js";
|
|
7
7
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DmWM0kwM.js";
|
|
8
8
|
import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
@@ -133,7 +133,11 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
|
|
|
133
133
|
resolveOriginTarget: resolveGoogleChatOriginTarget,
|
|
134
134
|
resolveApproverDmTargets: resolveGoogleChatApproverDmTargets,
|
|
135
135
|
nativeRuntime: createLazyChannelApprovalNativeRuntimeAdapter({
|
|
136
|
-
eventKinds: [
|
|
136
|
+
eventKinds: [
|
|
137
|
+
"exec",
|
|
138
|
+
"plugin",
|
|
139
|
+
"system-agent"
|
|
140
|
+
],
|
|
137
141
|
isConfigured: ({ cfg, accountId }) => isGoogleChatNativeApprovalClientEnabled({
|
|
138
142
|
cfg,
|
|
139
143
|
accountId
|
|
@@ -144,7 +148,7 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
|
|
|
144
148
|
approvalKind,
|
|
145
149
|
request
|
|
146
150
|
}),
|
|
147
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
151
|
+
load: async () => (await import("./approval-handler.runtime-BlNZVfJD.js")).googleChatApprovalNativeRuntime
|
|
148
152
|
})
|
|
149
153
|
});
|
|
150
154
|
//#endregion
|
|
@@ -168,7 +172,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
|
|
|
168
172
|
});
|
|
169
173
|
//#endregion
|
|
170
174
|
//#region extensions/googlechat/src/gateway.ts
|
|
171
|
-
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
175
|
+
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-DBXW-pey.js"), "googleChatChannelRuntime");
|
|
172
176
|
const UNRESOLVED_WEBHOOK_URL_ERROR = "Invalid webhookUrl: expected an absolute URL such as https://chat.example.com/googlechat. No inbound webhook route was registered.";
|
|
173
177
|
async function startGoogleChatGatewayAccount(ctx) {
|
|
174
178
|
const account = ctx.account;
|
|
@@ -246,13 +250,13 @@ function describeGoogleChatMessageTool({ cfg, accountId }) {
|
|
|
246
250
|
}
|
|
247
251
|
//#endregion
|
|
248
252
|
//#region extensions/googlechat/src/channel.ts
|
|
249
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
253
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DBXW-pey.js"), "googleChatChannelRuntime");
|
|
250
254
|
const googlechatActions = {
|
|
251
255
|
describeMessageTool: describeGoogleChatMessageTool,
|
|
252
256
|
supportsAction: ({ action }) => action === "send",
|
|
253
257
|
extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
|
|
254
258
|
handleAction: async (ctx) => {
|
|
255
|
-
const { googlechatMessageActions } = await import("./actions-
|
|
259
|
+
const { googlechatMessageActions } = await import("./actions-6QiB4LOV.js");
|
|
256
260
|
if (!googlechatMessageActions.handleAction) throw new Error("Google Chat actions are not available.");
|
|
257
261
|
return await googlechatMessageActions.handleAction(ctx);
|
|
258
262
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as googlechatPlugin } from "./channel-
|
|
1
|
+
import { t as googlechatPlugin } from "./channel-C_PzX4pt.js";
|
|
2
2
|
export { googlechatPlugin };
|
|
@@ -1217,7 +1217,7 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
|
|
|
1217
1217
|
});
|
|
1218
1218
|
//#endregion
|
|
1219
1219
|
//#region extensions/googlechat/src/channel.adapters.ts
|
|
1220
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
1220
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DBXW-pey.js"), "googleChatChannelRuntime");
|
|
1221
1221
|
function createGoogleChatSendReceipt(params) {
|
|
1222
1222
|
const messageId = params.messageId?.trim();
|
|
1223
1223
|
return createMessageReceiptFromOutboundResults({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { A as readGoogleChatApprovalActionToken, C as verifyGoogleChatRequest, D as completeGoogleChatApprovalCardBinding, E as claimGoogleChatApprovalCardBinding, N as releaseGoogleChatApprovalCardBinding, S as updateGoogleChatMessage, _ as GoogleChatApiError, b as probeGoogleChat, c as googleChatIngressIdentity, d as isGoogleChatGroupSpace, k as getGoogleChatApprovalCardBinding, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as deleteGoogleChatMessage, x as sendGoogleChatMessage, y as downloadGoogleChatMedia } from "./channel.adapters-
|
|
1
|
+
import { A as readGoogleChatApprovalActionToken, C as verifyGoogleChatRequest, D as completeGoogleChatApprovalCardBinding, E as claimGoogleChatApprovalCardBinding, N as releaseGoogleChatApprovalCardBinding, S as updateGoogleChatMessage, _ as GoogleChatApiError, b as probeGoogleChat, c as googleChatIngressIdentity, d as isGoogleChatGroupSpace, k as getGoogleChatApprovalCardBinding, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as deleteGoogleChatMessage, x as sendGoogleChatMessage, y as downloadGoogleChatMedia } from "./channel.adapters-CQxQqwUQ.js";
|
|
2
2
|
import { C as resolveWebhookPath, E as warnMissingProviderGroupPolicyFallbackOnce, O as getGoogleChatRuntime, b as resolveAllowlistProviderRuntimeGroupPolicy, c as createChannelPairingController, f as isDangerousNameMatchingEnabled, n as GROUP_POLICY_BLOCKED_LABEL, x as resolveDefaultGroupPolicy } from "./runtime-api-Dh0CNVS4.js";
|
|
3
|
-
import { n as googleChatApprovalAuth } from "./approval-auth-
|
|
3
|
+
import { n as googleChatApprovalAuth } from "./approval-auth-CEu4-wG6.js";
|
|
4
|
+
import { t as escapeGoogleChatApprovalCardText } from "./approval-card-text-ChngxXdJ.js";
|
|
4
5
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
6
|
import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
|
|
6
7
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
@@ -21,9 +22,6 @@ import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-pay
|
|
|
21
22
|
//#region extensions/googlechat/src/approval-terminal-card.ts
|
|
22
23
|
const GOOGLECHAT_APPROVAL_CARD_ID = "openclaw-approval";
|
|
23
24
|
const MAX_TEXT_PARAGRAPH_CHARS = 1800;
|
|
24
|
-
function escapeGoogleChatText(text) {
|
|
25
|
-
return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
26
|
-
}
|
|
27
25
|
function truncateText(text) {
|
|
28
26
|
return text.length <= MAX_TEXT_PARAGRAPH_CHARS ? text : `${truncateUtf16Safe(text, 1797)}...`;
|
|
29
27
|
}
|
|
@@ -42,12 +40,12 @@ function formatCanonicalOutcome(approval) {
|
|
|
42
40
|
function buildSubjectSection(presentation) {
|
|
43
41
|
if (presentation.kind === "exec") return {
|
|
44
42
|
header: "Command",
|
|
45
|
-
widgets: [{ textParagraph: { text:
|
|
43
|
+
widgets: [{ textParagraph: { text: escapeGoogleChatApprovalCardText(truncateText(presentation.commandPreview ?? presentation.commandText)) } }]
|
|
46
44
|
};
|
|
47
45
|
const description = presentation.description.trim();
|
|
48
46
|
return {
|
|
49
47
|
header: "Request",
|
|
50
|
-
widgets: [{ textParagraph: { text: truncateText(`<b>${
|
|
48
|
+
widgets: [{ textParagraph: { text: truncateText(`<b>${escapeGoogleChatApprovalCardText(presentation.title)}</b>${description ? `<br>${escapeGoogleChatApprovalCardText(description)}` : ""}`) } }]
|
|
51
49
|
};
|
|
52
50
|
}
|
|
53
51
|
/** Render the canonical first-answer result without retaining any actionable buttons. */
|
|
@@ -55,10 +53,10 @@ function buildGoogleChatCanonicalApprovalTerminalCards(result) {
|
|
|
55
53
|
const { approval } = result;
|
|
56
54
|
const kindLabel = approval.presentation.kind === "plugin" ? "Plugin" : "Exec";
|
|
57
55
|
const detailLines = [
|
|
58
|
-
`<b>Approval ID:</b> ${
|
|
59
|
-
`<b>Status:</b> ${
|
|
60
|
-
...approval.status === "allowed" || approval.status === "denied" ? [`<b>Decision:</b> ${
|
|
61
|
-
`<b>Reason:</b> ${
|
|
56
|
+
`<b>Approval ID:</b> ${escapeGoogleChatApprovalCardText(formatApprovalId(approval.id))}`,
|
|
57
|
+
`<b>Status:</b> ${escapeGoogleChatApprovalCardText(approval.status)}`,
|
|
58
|
+
...approval.status === "allowed" || approval.status === "denied" ? [`<b>Decision:</b> ${escapeGoogleChatApprovalCardText(approval.decision)}`] : [],
|
|
59
|
+
`<b>Reason:</b> ${escapeGoogleChatApprovalCardText(approval.reason)}`
|
|
62
60
|
];
|
|
63
61
|
return [{
|
|
64
62
|
cardId: GOOGLECHAT_APPROVAL_CARD_ID,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as googlechatDirectoryAdapter } from "./channel.adapters-
|
|
1
|
+
import { t as googlechatDirectoryAdapter } from "./channel.adapters-CQxQqwUQ.js";
|
|
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.
|
|
3
|
+
"version": "2026.9.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.4.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.
|
|
15
|
+
"openclaw": ">=2026.9.1"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -134,10 +134,10 @@
|
|
|
134
134
|
"minHostVersion": ">=2026.4.10"
|
|
135
135
|
},
|
|
136
136
|
"compat": {
|
|
137
|
-
"pluginApi": ">=2026.
|
|
137
|
+
"pluginApi": ">=2026.9.1"
|
|
138
138
|
},
|
|
139
139
|
"build": {
|
|
140
|
-
"openclawVersion": "2026.
|
|
140
|
+
"openclawVersion": "2026.9.1"
|
|
141
141
|
},
|
|
142
142
|
"release": {
|
|
143
143
|
"publishToClawHub": true,
|