@openclaw/googlechat 2026.11.5-beta.1 → 2026.11.5-beta.3
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-DNDmJvwi.mjs → actions-UltP4TmA.mjs} +4 -3
- package/dist/.setup/{approval-auth-AkJ2Rg0h.mjs → approval-auth-C-AJm9xZ.mjs} +4 -3
- package/dist/.setup/{approval-card-text-9o-Dfr9Z.mjs → approval-card-text-BKg_4mXq.mjs} +2 -1
- package/dist/.setup/{approval-handler.runtime-CKuHeY6y.mjs → approval-handler.runtime-dh__rR4O.mjs} +6 -5
- package/dist/.setup/{channel-WKI4stP3.mjs → channel-DHpMDrjU.mjs} +16 -12
- package/dist/.setup/{channel-base-DjVHuLDF.mjs → channel-base-DZs1uOyW.mjs} +8 -4
- package/dist/.setup/{channel.adapters-C9mflxGl.mjs → channel.adapters-BVT76qsz.mjs} +20 -11
- package/dist/.setup/{channel.runtime-CBwK8353.mjs → channel.runtime-I9jyPEzh.mjs} +22 -13
- package/dist/.setup/{doctor-contract-WrFOPxEj.mjs → doctor-contract-BzoaiFSD.mjs} +12 -6
- package/dist/.setup/{runtime-zEzHA5rr.mjs → runtime-C5OOOlaP.mjs} +2 -1
- package/dist/.setup/{secret-contract-h2P-4VpL.mjs → secret-contract-D7KjX374.mjs} +2 -1
- package/dist/.setup/{secret-contract-api-CLRweErW.mjs → secret-contract-api-BG_8yVjr.mjs} +1 -1
- package/dist/.setup/setup-plugin-api-DW0Pq8Dd.mjs +2 -0
- package/dist/.source-module-urls/974ffefea973cf3ea18e1534d25b091bcf1b68760a2b9eda0cd9bd9392096c64.json +1 -1
- package/dist/api.js +2 -2
- package/dist/channel-config-api.js +2 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/directory-contract-api.js +3 -2
- package/dist/doctor-contract-api.js +1 -1
- package/dist/index.js +2 -1
- package/dist/runtime-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-entry.js +4 -3
- package/dist/setup-plugin-api.js +1 -1
- package/package.json +4 -4
- package/dist/.setup/setup-plugin-api-Bz3mVqQ5.mjs +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import { C as sendGoogleChatMessage, d as formatGoogleChatMediaText, v as resolveGoogleChatOutboundSpace } from "./channel.adapters-
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-DZs1uOyW.mjs";
|
|
2
|
+
import { C as sendGoogleChatMessage, d as formatGoogleChatMediaText, v as resolveGoogleChatOutboundSpace } from "./channel.adapters-BVT76qsz.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
|
|
6
6
|
const OUTBOUND_MEDIA_KEYS = [
|
|
7
7
|
"media",
|
|
8
8
|
"mediaUrl",
|
|
@@ -54,4 +54,5 @@ async function handleGoogleChatAction({ action, params, cfg, accountId, assertDi
|
|
|
54
54
|
}
|
|
55
55
|
throw new Error(`Action ${action} is not supported for provider googlechat.`);
|
|
56
56
|
}
|
|
57
|
+
//#endregion
|
|
57
58
|
export { handleGoogleChatAction };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import { g as normalizeGoogleChatTarget, h as isGoogleChatUserTarget } from "./channel.adapters-
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-DZs1uOyW.mjs";
|
|
2
|
+
import { g as normalizeGoogleChatTarget, h as isGoogleChatUserTarget } from "./channel.adapters-BVT76qsz.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
|
|
6
6
|
function normalizeGoogleChatApproverId(value) {
|
|
7
7
|
const normalized = normalizeGoogleChatTarget(String(value));
|
|
8
8
|
if (!normalized || !isGoogleChatUserTarget(normalized)) return;
|
|
@@ -26,4 +26,5 @@ const googleChatApproval = createChannelApprovalAuth({
|
|
|
26
26
|
});
|
|
27
27
|
const getGoogleChatApprovalApprovers = googleChatApproval.resolveApprovers;
|
|
28
28
|
const googleChatApprovalAuth = googleChatApproval.approvalAuth;
|
|
29
|
+
//#endregion
|
|
29
30
|
export { googleChatApprovalAuth as n, normalizeGoogleChatApproverId as r, getGoogleChatApprovalApprovers as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
2
|
-
|
|
2
|
+
//#region extensions/googlechat/src/approval-card-text.ts
|
|
3
3
|
const MAX_TEXT_PARAGRAPH_CHARS = 1800;
|
|
4
4
|
function escapeGoogleChatApprovalCardText(text) {
|
|
5
5
|
return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
@@ -8,4 +8,5 @@ function buildGoogleChatApprovalTextWidget(text, format = "text") {
|
|
|
8
8
|
const truncated = text.length <= MAX_TEXT_PARAGRAPH_CHARS ? text : `${truncateUtf16Safe(text, 1797)}...`;
|
|
9
9
|
return { textParagraph: { text: format === "html" ? truncated : escapeGoogleChatApprovalCardText(truncated) } };
|
|
10
10
|
}
|
|
11
|
+
//#endregion
|
|
11
12
|
export { escapeGoogleChatApprovalCardText as n, buildGoogleChatApprovalTextWidget as t };
|
package/dist/.setup/{approval-handler.runtime-CKuHeY6y.mjs → approval-handler.runtime-dh__rR4O.mjs}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import { A as registerGoogleChatApprovalCardBinding, C as sendGoogleChatMessage, D as buildGoogleChatApprovalActionParameters, E as GOOGLECHAT_APPROVAL_ACTION, M as unregisterGoogleChatManualApprovalFollowupSuppression, O as googleChatApprovalControls, j as registerGoogleChatManualApprovalFollowupSuppression, v as resolveGoogleChatOutboundSpace, w as updateGoogleChatMessage } from "./channel.adapters-
|
|
3
|
-
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-
|
|
4
|
-
import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-DZs1uOyW.mjs";
|
|
2
|
+
import { A as registerGoogleChatApprovalCardBinding, C as sendGoogleChatMessage, D as buildGoogleChatApprovalActionParameters, E as GOOGLECHAT_APPROVAL_ACTION, M as unregisterGoogleChatManualApprovalFollowupSuppression, O as googleChatApprovalControls, j as registerGoogleChatManualApprovalFollowupSuppression, v as resolveGoogleChatOutboundSpace, w as updateGoogleChatMessage } from "./channel.adapters-BVT76qsz.mjs";
|
|
3
|
+
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-DHpMDrjU.mjs";
|
|
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
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");
|
|
12
12
|
const GOOGLECHAT_APPROVAL_CARD_ID = "openclaw-approval";
|
|
13
13
|
function resolveHandlerAccount(params) {
|
|
@@ -229,4 +229,5 @@ const googleChatApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapte
|
|
|
229
229
|
log.error(`googlechat approvals: failed to send request ${request.id}: ${String(error)}`);
|
|
230
230
|
} }
|
|
231
231
|
});
|
|
232
|
+
//#endregion
|
|
232
233
|
export { googleChatApprovalNativeRuntime };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
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, o as inspectGoogleChatAccount, r as googlechatSetupPlugin, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-
|
|
4
|
-
import { _ as resolveGoogleChatOutboundSessionRoute, a as googlechatPairingTextAdapter, g as normalizeGoogleChatTarget, h as isGoogleChatUserTarget, i as googlechatOutboundAdapter, m as isGoogleChatSpaceTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters-
|
|
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-
|
|
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-DZs1uOyW.mjs";
|
|
4
|
+
import { _ as resolveGoogleChatOutboundSessionRoute, a as googlechatPairingTextAdapter, g as normalizeGoogleChatTarget, h as isGoogleChatUserTarget, i as googlechatOutboundAdapter, m as isGoogleChatSpaceTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters-BVT76qsz.mjs";
|
|
5
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-C-AJm9xZ.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 { CHANNEL_APPROVAL_NATIVE_RUNTIME_CONTEXT_CAPABILITY, createLazyChannelApprovalNativeRuntimeAdapterAsync } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
|
|
9
9
|
import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
@@ -18,7 +18,7 @@ import { createChannelApproverDmTargetResolverAsync, createChannelNativeOriginTa
|
|
|
18
18
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
19
19
|
import { buildMutableAllowEntryDetector, collectStandardAllowlistLists, createDangerousNameMatchingMutableAllowlistWarningCollector } from "openclaw/plugin-sdk/channel-policy";
|
|
20
20
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
21
|
-
|
|
21
|
+
//#region extensions/googlechat/src/approval-native.ts
|
|
22
22
|
const DEFAULT_APPROVAL_FORWARDING_MODE = "session";
|
|
23
23
|
function isGoogleChatApprovalTransportEnabled(params) {
|
|
24
24
|
const account = resolveGoogleChatAccount(params);
|
|
@@ -127,10 +127,11 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
|
|
|
127
127
|
],
|
|
128
128
|
isConfigured: isGoogleChatNativeApprovalClientEnabled,
|
|
129
129
|
shouldHandle: shouldHandleGoogleChatNativeApprovalRequest,
|
|
130
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
130
|
+
load: async () => (await import("./approval-handler.runtime-dh__rR4O.mjs")).googleChatApprovalNativeRuntime
|
|
131
131
|
})
|
|
132
132
|
});
|
|
133
|
-
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region extensions/googlechat/src/doctor.ts
|
|
134
135
|
const isGoogleChatMutableAllowEntry = buildMutableAllowEntryDetector({
|
|
135
136
|
prefixes: [
|
|
136
137
|
"googlechat:",
|
|
@@ -148,7 +149,8 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
|
|
|
148
149
|
groupField: "users"
|
|
149
150
|
})
|
|
150
151
|
});
|
|
151
|
-
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region extensions/googlechat/src/message-tool-api.ts
|
|
152
154
|
const googlechatMessageActions = {
|
|
153
155
|
describeMessageTool({ cfg, accountId }) {
|
|
154
156
|
return (accountId ? [inspectGoogleChatAccount({
|
|
@@ -161,10 +163,11 @@ const googlechatMessageActions = {
|
|
|
161
163
|
},
|
|
162
164
|
supportsAction: ({ action }) => action === "send",
|
|
163
165
|
extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
|
|
164
|
-
handleAction: async (ctx) => (await import("./actions-
|
|
166
|
+
handleAction: async (ctx) => (await import("./actions-UltP4TmA.mjs")).handleGoogleChatAction(ctx)
|
|
165
167
|
};
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region extensions/googlechat/src/channel.ts
|
|
170
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-I9jyPEzh.mjs"), "googleChatChannelRuntime");
|
|
168
171
|
const UNRESOLVED_WEBHOOK_URL_ERROR = "Invalid webhookUrl: expected an absolute URL such as https://chat.example.com/googlechat. No inbound webhook route was registered.";
|
|
169
172
|
const googlechatPlugin = createChatChannelPlugin({
|
|
170
173
|
base: {
|
|
@@ -337,4 +340,5 @@ const googlechatPlugin = createChatChannelPlugin({
|
|
|
337
340
|
}
|
|
338
341
|
}
|
|
339
342
|
});
|
|
343
|
+
//#endregion
|
|
340
344
|
export { isGoogleChatNativeApprovalClientEnabled as n, shouldHandleGoogleChatNativeApprovalRequest as r, googlechatPlugin as t };
|
|
@@ -13,9 +13,10 @@ import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
|
13
13
|
import { createPatchedAccountSetupAdapter, createSetupInputPresenceValidator } from "openclaw/plugin-sdk/setup-runtime";
|
|
14
14
|
import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
|
|
15
15
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, applySetupAccountConfigPatch, createPromptParsedAllowFromForAccount, createSetupTranslator, createStandardChannelSetupStatus, formatDocsLink, mergeAllowFromEntries, migrateBaseNameToDefaultAccount, splitSetupEntries } from "openclaw/plugin-sdk/setup";
|
|
16
|
-
|
|
16
|
+
//#region extensions/googlechat/src/google-auth-limits.ts
|
|
17
17
|
const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES = 65536;
|
|
18
|
-
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region extensions/googlechat/src/accounts.ts
|
|
19
20
|
const ENV_SERVICE_ACCOUNT$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT";
|
|
20
21
|
const ENV_SERVICE_ACCOUNT_FILE$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT_FILE";
|
|
21
22
|
const JsonRecordSchema = z.record(z.string(), z.unknown());
|
|
@@ -235,7 +236,8 @@ const googlechatSetupContract = defineChannelSetupContract({
|
|
|
235
236
|
},
|
|
236
237
|
legacyAdapter: googlechatSetupAdapter
|
|
237
238
|
});
|
|
238
|
-
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region extensions/googlechat/src/setup-surface.ts
|
|
239
241
|
const t = createSetupTranslator();
|
|
240
242
|
const channel = "googlechat";
|
|
241
243
|
const ENV_SERVICE_ACCOUNT = "GOOGLE_CHAT_SERVICE_ACCOUNT";
|
|
@@ -398,7 +400,8 @@ const googlechatSetupWizard = {
|
|
|
398
400
|
},
|
|
399
401
|
dmPolicy: googlechatDmPolicy
|
|
400
402
|
};
|
|
401
|
-
|
|
403
|
+
//#endregion
|
|
404
|
+
//#region extensions/googlechat/src/channel-base.ts
|
|
402
405
|
const GOOGLECHAT_CHANNEL_ID = "googlechat";
|
|
403
406
|
const formatGoogleChatAllowFromEntry = (entry) => normalizeLowercaseStringOrEmpty(entry.trim().replace(/^(googlechat|google-chat|gchat):/i, "").replace(/^user:/i, "").replace(/^users\//i, ""));
|
|
404
407
|
const googleChatConfigAdapter = createScopedChannelConfigAdapter({
|
|
@@ -471,4 +474,5 @@ const googlechatSetupPlugin = {
|
|
|
471
474
|
})
|
|
472
475
|
}
|
|
473
476
|
};
|
|
477
|
+
//#endregion
|
|
474
478
|
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, n as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-
|
|
1
|
+
import { l as resolveGoogleChatAccount, n as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-DZs1uOyW.mjs";
|
|
2
2
|
import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/channel-core";
|
|
3
3
|
import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter, sanitizeForPlainText } from "openclaw/plugin-sdk/channel-outbound";
|
|
4
4
|
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
@@ -22,7 +22,7 @@ import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
|
|
|
22
22
|
import { createChannelDirectoryAdapter, listResolvedDirectoryGroupEntriesFromMapKeys, listResolvedDirectoryUserEntriesFromAllowFrom } from "openclaw/plugin-sdk/directory-runtime";
|
|
23
23
|
import { formatTextWithAttachmentLinks, resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
|
|
24
24
|
import { FormatCapabilityProfile, markdownToIR, renderMarkdownIRChunksWithinLimit, renderMarkdownWithMarkers, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
25
|
-
|
|
25
|
+
//#region extensions/googlechat/src/approval-card-actions.ts
|
|
26
26
|
const GOOGLECHAT_APPROVAL_ACTION = "openclaw.approval";
|
|
27
27
|
const GOOGLECHAT_APPROVAL_ACTION_PARAM = "openclaw_action";
|
|
28
28
|
const GOOGLECHAT_APPROVAL_TOKEN_PARAM = "token";
|
|
@@ -113,7 +113,8 @@ function shouldSuppressGoogleChatManualExecApprovalFollowupPayload(payload) {
|
|
|
113
113
|
if (!text || hasStructuredPayloadPart(payload)) return false;
|
|
114
114
|
return shouldSuppressGoogleChatManualExecApprovalFollowupText(text);
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region extensions/googlechat/src/google-auth.runtime.ts
|
|
117
118
|
const GOOGLE_AUTH_POLICY = buildHostnameAllowlistPolicyFromSuffixAllowlist(["accounts.google.com", "googleapis.com"]);
|
|
118
119
|
const GOOGLE_AUTH_FETCH_TIMEOUT_MS = 3e4;
|
|
119
120
|
const GOOGLE_AUTH_URI = "https://accounts.google.com/o/oauth2/auth";
|
|
@@ -302,7 +303,8 @@ async function resolveValidatedGoogleChatCredentials(account) {
|
|
|
302
303
|
if (account.credentialsFile) return validateGoogleChatServiceAccountCredentials(await readCredentialsFile(account.credentialsFile));
|
|
303
304
|
return null;
|
|
304
305
|
}
|
|
305
|
-
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region extensions/googlechat/src/auth.ts
|
|
306
308
|
const CHAT_SCOPE = "https://www.googleapis.com/auth/chat.bot";
|
|
307
309
|
const CHAT_ISSUER = "chat@system.gserviceaccount.com";
|
|
308
310
|
const ADDON_ISSUER_PATTERN = /^service-\d+@gcp-sa-gsuiteaddons\.iam\.gserviceaccount\.com$/;
|
|
@@ -429,7 +431,8 @@ async function verifyGoogleChatRequest(params) {
|
|
|
429
431
|
};
|
|
430
432
|
}
|
|
431
433
|
}
|
|
432
|
-
|
|
434
|
+
//#endregion
|
|
435
|
+
//#region extensions/googlechat/src/api.ts
|
|
433
436
|
const CHAT_API_BASE = "https://chat.googleapis.com/v1";
|
|
434
437
|
const GOOGLECHAT_API_TIMEOUT_MS = 3e4;
|
|
435
438
|
const GOOGLECHAT_MEDIA_TIMEOUT_GRACE_MS = 3e4;
|
|
@@ -599,7 +602,8 @@ async function probeGoogleChat(account) {
|
|
|
599
602
|
};
|
|
600
603
|
}
|
|
601
604
|
}
|
|
602
|
-
|
|
605
|
+
//#endregion
|
|
606
|
+
//#region extensions/googlechat/src/targets.ts
|
|
603
607
|
function normalizeGoogleChatTarget(raw) {
|
|
604
608
|
const trimmed = raw?.trim();
|
|
605
609
|
if (!trimmed) return;
|
|
@@ -692,7 +696,8 @@ async function resolveGoogleChatOutboundSessionRoute(params) {
|
|
|
692
696
|
to: spaceName
|
|
693
697
|
});
|
|
694
698
|
}
|
|
695
|
-
|
|
699
|
+
//#endregion
|
|
700
|
+
//#region extensions/googlechat/src/format.ts
|
|
696
701
|
const GOOGLE_CHAT_FORMAT_PROFILE = FormatCapabilityProfile.define({
|
|
697
702
|
mechanism: "markdown",
|
|
698
703
|
constructs: {
|
|
@@ -956,7 +961,8 @@ function formatGoogleChatTextChunks(text, limit = GOOGLE_CHAT_FORMAT_PROFILE.chu
|
|
|
956
961
|
}
|
|
957
962
|
}).map((chunk) => chunk.rendered);
|
|
958
963
|
}
|
|
959
|
-
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region extensions/googlechat/src/group-policy.ts
|
|
960
966
|
function buildGoogleChatGroupPolicyScope(params) {
|
|
961
967
|
const matchKey = params.groupId && Object.hasOwn(params.tree.scopes, params.groupId) ? params.groupId : void 0;
|
|
962
968
|
return {
|
|
@@ -971,7 +977,8 @@ function resolveGoogleChatGroupRequireMention(params) {
|
|
|
971
977
|
groupId: params.groupId
|
|
972
978
|
}));
|
|
973
979
|
}
|
|
974
|
-
|
|
980
|
+
//#endregion
|
|
981
|
+
//#region extensions/googlechat/src/ingress-identity.ts
|
|
975
982
|
function normalizeGoogleChatUserId(raw) {
|
|
976
983
|
const trimmed = normalizeOptionalString(raw) ?? "";
|
|
977
984
|
return normalizeLowercaseStringOrEmpty(trimmed.replace(/^users\//i, ""));
|
|
@@ -999,8 +1006,9 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
|
|
|
999
1006
|
isWildcardEntry: (entry) => normalizeLowercaseStringOrEmpty(entry) === "*",
|
|
1000
1007
|
resolveEntryId: ({ entryIndex, fieldKey }) => fieldKey === "stableId" ? `entry-${entryIndex + 1}:user` : `entry-${entryIndex + 1}:${fieldKey}`
|
|
1001
1008
|
});
|
|
1002
|
-
|
|
1003
|
-
|
|
1009
|
+
//#endregion
|
|
1010
|
+
//#region extensions/googlechat/src/channel.adapters.ts
|
|
1011
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-I9jyPEzh.mjs"), "googleChatChannelRuntime");
|
|
1004
1012
|
const collectGoogleChatGroupPolicyWarnings = createAllowlistProviderOpenWarningCollector({
|
|
1005
1013
|
providerConfigPresent: (cfg) => cfg.channels?.googlechat !== void 0,
|
|
1006
1014
|
resolveGroupPolicy: (account) => account.config.groupPolicy,
|
|
@@ -1164,4 +1172,5 @@ const googlechatMessageAdapter = defineChannelMessageAdapter({
|
|
|
1164
1172
|
} },
|
|
1165
1173
|
send: { text: googlechatOutboundAdapter.attachedResults.sendText }
|
|
1166
1174
|
});
|
|
1175
|
+
//#endregion
|
|
1167
1176
|
export { registerGoogleChatApprovalCardBinding as A, sendGoogleChatMessage as C, buildGoogleChatApprovalActionParameters as D, GOOGLECHAT_APPROVAL_ACTION as E, unregisterGoogleChatManualApprovalFollowupSuppression as M, googleChatApprovalControls as O, probeGoogleChat as S, verifyGoogleChatRequest as T, resolveGoogleChatOutboundSessionRoute as _, googlechatPairingTextAdapter as a, deleteGoogleChatMessage as b, googleChatIngressIdentity as c, formatGoogleChatMediaText as d, formatGoogleChatTextChunks as f, normalizeGoogleChatTarget as g, isGoogleChatUserTarget as h, googlechatOutboundAdapter as i, registerGoogleChatManualApprovalFollowupSuppression as j, readGoogleChatApprovalActionToken as k, normalizeGoogleChatUserId as l, isGoogleChatSpaceTarget as m, googlechatGroupsAdapter as n, googlechatSecurityAdapter as o, isGoogleChatGroupSpace as p, googlechatMessageAdapter as r, googlechatThreadingAdapter as s, googlechatDirectoryAdapter as t, buildGoogleChatGroupPolicyScope as u, resolveGoogleChatOutboundSpace as v, updateGoogleChatMessage as w, downloadGoogleChatMedia as x, GoogleChatApiError as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as sendGoogleChatMessage, O as googleChatApprovalControls, S as probeGoogleChat, T as verifyGoogleChatRequest, b as deleteGoogleChatMessage, c as googleChatIngressIdentity, d as formatGoogleChatMediaText, f as formatGoogleChatTextChunks, k as readGoogleChatApprovalActionToken, l as normalizeGoogleChatUserId, p as isGoogleChatGroupSpace, u as buildGoogleChatGroupPolicyScope, w as updateGoogleChatMessage, x as downloadGoogleChatMedia, y as GoogleChatApiError } from "./channel.adapters-
|
|
2
|
-
import { n as googleChatApprovalAuth } from "./approval-auth-
|
|
3
|
-
import { t as getGoogleChatRuntime } from "./runtime-
|
|
4
|
-
import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-
|
|
1
|
+
import { C as sendGoogleChatMessage, O as googleChatApprovalControls, S as probeGoogleChat, T as verifyGoogleChatRequest, b as deleteGoogleChatMessage, c as googleChatIngressIdentity, d as formatGoogleChatMediaText, f as formatGoogleChatTextChunks, k as readGoogleChatApprovalActionToken, l as normalizeGoogleChatUserId, p as isGoogleChatGroupSpace, u as buildGoogleChatGroupPolicyScope, w as updateGoogleChatMessage, x as downloadGoogleChatMedia, y as GoogleChatApiError } from "./channel.adapters-BVT76qsz.mjs";
|
|
2
|
+
import { n as googleChatApprovalAuth } from "./approval-auth-C-AJm9xZ.mjs";
|
|
3
|
+
import { t as getGoogleChatRuntime } from "./runtime-C5OOOlaP.mjs";
|
|
4
|
+
import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-BKg_4mXq.mjs";
|
|
5
5
|
import { createChannelIngressError } from "openclaw/plugin-sdk/channel-outbound";
|
|
6
6
|
import { channelBlockedPatch, channelReadyPatch } from "openclaw/plugin-sdk/gateway-runtime";
|
|
7
7
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringEntries, normalizeTrimmedStringList } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -24,7 +24,7 @@ import { isDangerousNameMatchingEnabled } from "openclaw/plugin-sdk/dangerous-na
|
|
|
24
24
|
import { GROUP_POLICY_BLOCKED_LABEL, resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, warnMissingProviderGroupPolicyFallbackOnce } from "openclaw/plugin-sdk/runtime-group-policy";
|
|
25
25
|
import { createWebhookInFlightLimiter, readJsonWebhookBodyOrReject, runDetachedWebhookWork } from "openclaw/plugin-sdk/webhook-request-guards";
|
|
26
26
|
import { registerWebhookTargetWithPluginRoute, resolveWebhookTargetWithAuthOrReject, withResolvedWebhookRequestPipeline } from "openclaw/plugin-sdk/webhook-targets";
|
|
27
|
-
|
|
27
|
+
//#region extensions/googlechat/src/approval-card-click.ts
|
|
28
28
|
const GOOGLECHAT_APPROVAL_CARD_ID = "openclaw-approval";
|
|
29
29
|
function formatCanonicalOutcome(approval) {
|
|
30
30
|
if (approval.status === "allowed" || approval.status === "denied") return formatApprovalDecisionLabel(approval.decision);
|
|
@@ -128,7 +128,8 @@ async function maybeHandleGoogleChatApprovalCardClick(params) {
|
|
|
128
128
|
params.target.runtime.log?.(`[${params.target.account.accountId}] googlechat approval ${label} id=${consumed.approvalId} status=${result.approval.status} decision=${decision} sender=${actor || "unknown"}`);
|
|
129
129
|
return true;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region extensions/googlechat/src/monitor-access.ts
|
|
132
133
|
function extractMentionInfo(annotations, botUser) {
|
|
133
134
|
const mentionAnnotations = annotations.filter((entry) => entry.type === "USER_MENTION");
|
|
134
135
|
const hasAnyMention = mentionAnnotations.length > 0;
|
|
@@ -370,7 +371,8 @@ async function applyGoogleChatInboundAccessPolicy(params) {
|
|
|
370
371
|
groupSystemPrompt: normalizeOptionalString(groupEntry?.systemPrompt)
|
|
371
372
|
};
|
|
372
373
|
}
|
|
373
|
-
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region extensions/googlechat/src/monitor-event.ts
|
|
374
376
|
/** Normalize only at authenticated dispatch; durable admission stores the untouched envelope. */
|
|
375
377
|
function parseGoogleChatInboundPayload(raw) {
|
|
376
378
|
if (!isRecord$1(raw)) throw new Error("invalid payload");
|
|
@@ -421,7 +423,8 @@ function parseGoogleChatInboundPayload(raw) {
|
|
|
421
423
|
} else if (eventType === "CARD_CLICKED" && !isRecord$1(event.user)) throw new Error("invalid payload");
|
|
422
424
|
return event;
|
|
423
425
|
}
|
|
424
|
-
|
|
426
|
+
//#endregion
|
|
427
|
+
//#region extensions/googlechat/src/monitor-ingress.ts
|
|
425
428
|
const GoogleChatIngressPermanentError = createChannelIngressError("GoogleChatIngressPermanentError", { withReason: true });
|
|
426
429
|
function requiredString(value, field) {
|
|
427
430
|
if (typeof value === "string" && value.trim()) return value.trim();
|
|
@@ -505,7 +508,8 @@ function createGoogleChatIngressMonitor(options) {
|
|
|
505
508
|
classifyAdmissionError: (error) => error instanceof GoogleChatIngressPermanentError ? error.message : void 0
|
|
506
509
|
});
|
|
507
510
|
}
|
|
508
|
-
|
|
511
|
+
//#endregion
|
|
512
|
+
//#region extensions/googlechat/src/monitor-reply-target.ts
|
|
509
513
|
/**
|
|
510
514
|
* Google Chat only accepts a thread resource (`spaces/x/threads/y`) as a reply
|
|
511
515
|
* target. The automatic reply pipeline supplies the inbound *message* resource
|
|
@@ -522,7 +526,8 @@ function normalizeGoogleChatReplyTarget(params) {
|
|
|
522
526
|
replyToId: params.replyThreadName
|
|
523
527
|
};
|
|
524
528
|
}
|
|
525
|
-
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region extensions/googlechat/src/monitor-webhook.ts
|
|
526
531
|
function extractBearerToken(header) {
|
|
527
532
|
const authHeader = Array.isArray(header) ? typeof header[0] === "string" ? header[0] : "" : typeof header === "string" ? header : "";
|
|
528
533
|
return normalizeLowercaseStringOrEmpty(authHeader).startsWith("bearer ") ? authHeader.slice(7).trim() : "";
|
|
@@ -665,7 +670,8 @@ function createGoogleChatWebhookRequestHandler(params) {
|
|
|
665
670
|
});
|
|
666
671
|
};
|
|
667
672
|
}
|
|
668
|
-
|
|
673
|
+
//#endregion
|
|
674
|
+
//#region extensions/googlechat/src/monitor-routing.ts
|
|
669
675
|
const webhookTargets = /* @__PURE__ */ new Map();
|
|
670
676
|
const webhookRateLimiter = createFixedWindowRateLimiter(WEBHOOK_RATE_LIMIT_DEFAULTS);
|
|
671
677
|
const webhookInFlightLimiter = createWebhookInFlightLimiter();
|
|
@@ -703,7 +709,8 @@ function registerGoogleChatWebhookTarget(target) {
|
|
|
703
709
|
}
|
|
704
710
|
}).unregister;
|
|
705
711
|
}
|
|
706
|
-
|
|
712
|
+
//#endregion
|
|
713
|
+
//#region extensions/googlechat/src/monitor.ts
|
|
707
714
|
setGoogleChatWebhookEventProcessor(processGoogleChatEvent);
|
|
708
715
|
function createGoogleChatTypingMessage(params) {
|
|
709
716
|
const name = params.messageName.trim();
|
|
@@ -1179,11 +1186,13 @@ function resolveGoogleChatWebhookPath({ webhookPath, webhookUrl }) {
|
|
|
1179
1186
|
defaultPath: "/googlechat"
|
|
1180
1187
|
});
|
|
1181
1188
|
}
|
|
1182
|
-
|
|
1189
|
+
//#endregion
|
|
1190
|
+
//#region extensions/googlechat/src/channel.runtime.ts
|
|
1183
1191
|
const googleChatChannelRuntime = {
|
|
1184
1192
|
probeGoogleChat,
|
|
1185
1193
|
sendGoogleChatMessage,
|
|
1186
1194
|
resolveGoogleChatWebhookPath,
|
|
1187
1195
|
startGoogleChatMonitor
|
|
1188
1196
|
};
|
|
1197
|
+
//#endregion
|
|
1189
1198
|
export { googleChatChannelRuntime };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -23,7 +23,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
23
23
|
return to;
|
|
24
24
|
};
|
|
25
25
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
26
|
-
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region packages/normalization-core/src/record-coerce.ts
|
|
27
28
|
/** Type guard for non-array object records at browser-safe boundaries. */
|
|
28
29
|
function isRecord(value) {
|
|
29
30
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -32,7 +33,8 @@ function isRecord(value) {
|
|
|
32
33
|
function asNullableRecord(value) {
|
|
33
34
|
return isRecord(value) ? value : null;
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/config/channel-config-normalization.ts
|
|
36
38
|
/** Applies one channel-specific doctor migration to every object-shaped account. */
|
|
37
39
|
function normalizeChannelAccounts(params) {
|
|
38
40
|
const rawAccounts = asNullableRecord(params.entry.accounts);
|
|
@@ -108,7 +110,8 @@ function normalizeChannelConfigEntries$1(params) {
|
|
|
108
110
|
changes
|
|
109
111
|
};
|
|
110
112
|
}
|
|
111
|
-
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
112
115
|
/** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
|
|
113
116
|
function createLegacyWebhookListenerDoctorContract(params) {
|
|
114
117
|
const portKey = params.portKey ?? "webhookPort";
|
|
@@ -178,11 +181,13 @@ function createLegacyWebhookListenerDoctorContract(params) {
|
|
|
178
181
|
}
|
|
179
182
|
};
|
|
180
183
|
}
|
|
181
|
-
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
182
186
|
var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
|
|
183
187
|
import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
184
188
|
__reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
|
|
185
|
-
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region extensions/googlechat/src/doctor-contract.ts
|
|
186
191
|
const streamingAliasMigration = (0, runtime_doctor_migrations_exports.defineChannelAliasMigration)({
|
|
187
192
|
channelId: "googlechat",
|
|
188
193
|
streaming: {
|
|
@@ -291,4 +296,5 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
291
296
|
changes: retired.changes
|
|
292
297
|
});
|
|
293
298
|
}
|
|
299
|
+
//#endregion
|
|
294
300
|
export { normalizeCompatibilityConfig as n, legacyConfigRules as t };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
2
|
-
|
|
2
|
+
//#region extensions/googlechat/src/runtime.ts
|
|
3
3
|
const { setRuntime: setGoogleChatRuntime, getRuntime: getGoogleChatRuntime } = createPluginRuntimeStore({
|
|
4
4
|
pluginId: "googlechat",
|
|
5
5
|
errorMessage: "Google Chat runtime not initialized"
|
|
6
6
|
});
|
|
7
|
+
//#endregion
|
|
7
8
|
export { setGoogleChatRuntime as n, getGoogleChatRuntime as t };
|
|
@@ -2,7 +2,7 @@ import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
|
2
2
|
import { hasConfiguredAccountValue } from "openclaw/plugin-sdk/account-resolution";
|
|
3
3
|
import { coerceSecretRef } from "openclaw/plugin-sdk/secret-input";
|
|
4
4
|
import { createChannelSecretContract, hasOwnProperty, pushAssignment, pushInactiveSurfaceWarning } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
|
|
5
|
-
|
|
5
|
+
//#region extensions/googlechat/src/secret-contract.ts
|
|
6
6
|
function accountSecretOwner(accountId) {
|
|
7
7
|
return {
|
|
8
8
|
ownerKind: "account",
|
|
@@ -74,4 +74,5 @@ const channelSecrets = createChannelSecretContract({
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
|
|
77
|
+
//#endregion
|
|
77
78
|
export { collectRuntimeConfigAssignments as n, secretTargetRegistryEntries as r, channelSecrets as t };
|
|
@@ -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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"api.js","source":"extensions/googlechat/api.ts"},{"output":"channel-config-api.js","source":"extensions/googlechat/channel-config-api.ts"},{"output":"channel-plugin-api.js","source":"extensions/googlechat/channel-plugin-api.ts"},{"output":"directory-contract-api.js","source":"extensions/googlechat/directory-contract-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/googlechat/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/googlechat/index.ts"},{"output":"runtime-api.js","source":"extensions/googlechat/runtime-api.ts"},{"output":"secret-contract-api.js","source":"extensions/googlechat/secret-contract-api.ts"},{"output":"setup-entry.js","source":"extensions/googlechat/setup-entry.ts"},{"output":"setup-plugin-api.js","source":"extensions/googlechat/setup-plugin-api.ts"}],"chunks":[{"output":".setup/actions-
|
|
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-UltP4TmA.mjs","sha256":"005ba3edc6ba2bd1583a80e59def09e9b6d548851fba850e5b850d59c1cb40a3","facadeSource":"extensions/googlechat/src/actions.ts","sources":["extensions/googlechat/src/actions.ts"]},{"output":".setup/approval-auth-C-AJm9xZ.mjs","sha256":"c4456c3485dd2c9f5f12c3575224aae926a173cecb00ec155375422ce1d12a75","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-dh__rR4O.mjs","sha256":"095a27f09e04617a1e5ecd600cb1006f4433abc7ac5cf23cc33a7f685678952c","facadeSource":"extensions/googlechat/src/approval-handler.runtime.ts","sources":["extensions/googlechat/src/approval-handler.runtime.ts"]},{"output":".setup/channel-base-DZs1uOyW.mjs","sha256":"7750c6762f6e478d2399d27511821e89d35b2b43d5c76c9f9ff8370f1089fdc1","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-DHpMDrjU.mjs","sha256":"6071fe4b21d0df159ec7ee06114d9194923d70cca0fecfc9c877389a57deb03d","facadeSource":null,"sources":["extensions/googlechat/src/approval-native.ts","extensions/googlechat/src/channel.ts","extensions/googlechat/src/doctor.ts","extensions/googlechat/src/message-tool-api.ts"]},{"output":".setup/channel.adapters-BVT76qsz.mjs","sha256":"0f1d2cc8af2abf1253541fe8f2e2a46c6a453f2d0bb3dc1cf10590bb2bdb64ad","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-I9jyPEzh.mjs","sha256":"f32f6adcd1f562aba8c8a6a9d45bfe1eb83c8e4443c11a96e4859e265cb4bac0","facadeSource":"extensions/googlechat/src/channel.runtime.ts","sources":["extensions/googlechat/src/approval-card-click.ts","extensions/googlechat/src/channel.runtime.ts","extensions/googlechat/src/monitor-access.ts","extensions/googlechat/src/monitor-event.ts","extensions/googlechat/src/monitor-ingress.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-DW0Pq8Dd.mjs","sha256":"b553ac63376d7fcf50481a108007da74416088e250699149aa4f423bdffd8e4a","facadeSource":"extensions/googlechat/setup-plugin-api.ts","sources":[]},{"output":"api.js","sha256":"aa73e24d7289b9431bff521ee5a296b0f0d4c8b12a90c96e7746316a0f2a6429","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":"1e48363625500713746bd2a01aef49f071ecfef06b2a4afa7ee80f5cfd4073f3","facadeSource":"extensions/googlechat/channel-plugin-api.ts","sources":[]},{"output":"directory-contract-api.js","sha256":"559eb0551a65f002a3cbd67f3cf282353118e8d5bf113dc1d3da503829c5703d","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":"9c75767d3d673b43becfd326a084bb7d6966149006268aa4e011171a04eb3e8c","facadeSource":"extensions/googlechat/setup-entry.ts","sources":["extensions/googlechat/setup-entry.ts"]},{"output":"setup-plugin-api.js","sha256":"18630b41185aab667d9516352a5efad954121189e6ee982d380d93618f80557f","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
|
-
import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./.setup/channel-base-
|
|
2
|
-
import { t as googlechatPlugin } from "./.setup/channel-
|
|
1
|
+
import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./.setup/channel-base-DZs1uOyW.mjs";
|
|
2
|
+
import { t as googlechatPlugin } from "./.setup/channel-DHpMDrjU.mjs";
|
|
3
3
|
export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./.setup/config-api-CsD0IFxF.mjs";
|
|
2
|
-
|
|
2
|
+
//#region extensions/googlechat/src/config-schema.ts
|
|
3
3
|
const GoogleChatChannelConfigSchema = buildChannelConfigSchema(GoogleChatConfigSchema);
|
|
4
|
+
//#endregion
|
|
4
5
|
export { GoogleChatChannelConfigSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as googlechatPlugin } from "./.setup/channel-
|
|
1
|
+
export { t as googlechatPlugin } from "./.setup/channel-DHpMDrjU.mjs";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-
|
|
2
|
-
|
|
1
|
+
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-BVT76qsz.mjs";
|
|
2
|
+
//#region extensions/googlechat/directory-contract-api.ts
|
|
3
3
|
const googlechatDirectoryContractPlugin = {
|
|
4
4
|
id: "googlechat",
|
|
5
5
|
directory: googlechatDirectoryAdapter
|
|
6
6
|
};
|
|
7
|
+
//#endregion
|
|
7
8
|
export { googlechatDirectoryContractPlugin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as legacyConfigRules, n as normalizeCompatibilityConfig } from "./.setup/doctor-contract-
|
|
1
|
+
export { t as legacyConfigRules, n as normalizeCompatibilityConfig } from "./.setup/doctor-contract-BzoaiFSD.mjs";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
|
-
|
|
2
|
+
//#region extensions/googlechat/index.ts
|
|
3
3
|
var googlechat_default = defineBundledChannelEntry({
|
|
4
4
|
id: "googlechat",
|
|
5
5
|
name: "Google Chat",
|
|
@@ -18,4 +18,5 @@ var googlechat_default = defineBundledChannelEntry({
|
|
|
18
18
|
exportName: "setGoogleChatRuntime"
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
+
//#endregion
|
|
21
22
|
export { googlechat_default as default };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as setGoogleChatRuntime } from "./.setup/runtime-
|
|
1
|
+
export { n as setGoogleChatRuntime } from "./.setup/runtime-C5OOOlaP.mjs";
|
|
@@ -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
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
3
|
+
//#region extensions/googlechat/setup-entry.ts
|
|
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-
|
|
7
|
+
specifier: fileURLToPath(new URL(".setup/setup-plugin-api-DW0Pq8Dd.mjs", import.meta.url).href),
|
|
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
|
});
|
|
15
|
+
//#endregion
|
|
15
16
|
export { setup_entry_default as default };
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as googlechatSetupPlugin } from "./.setup/channel-base-
|
|
1
|
+
export { r as googlechatSetupPlugin } from "./.setup/channel-base-DZs1uOyW.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.11.5-beta.
|
|
3
|
+
"version": "2026.11.5-beta.3",
|
|
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.7"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.11.5-beta.
|
|
15
|
+
"openclaw": ">=2026.11.5-beta.3"
|
|
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.11.5-beta.
|
|
138
|
+
"pluginApi": ">=2026.11.5-beta.3"
|
|
139
139
|
},
|
|
140
140
|
"build": {
|
|
141
|
-
"openclawVersion": "2026.11.5-beta.
|
|
141
|
+
"openclawVersion": "2026.11.5-beta.3"
|
|
142
142
|
},
|
|
143
143
|
"release": {
|
|
144
144
|
"publishToClawHub": true,
|