@openclaw/googlechat 2026.11.8 → 2026.11.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-UltP4TmA.mjs → actions-DNDmJvwi.mjs} +3 -4
- package/dist/.setup/{approval-auth-C-AJm9xZ.mjs → approval-auth-AkJ2Rg0h.mjs} +3 -4
- package/dist/.setup/{approval-card-text-BKg_4mXq.mjs → approval-card-text-9o-Dfr9Z.mjs} +1 -2
- package/dist/.setup/{approval-handler.runtime-dh__rR4O.mjs → approval-handler.runtime-CKuHeY6y.mjs} +5 -6
- package/dist/.setup/{channel-DHpMDrjU.mjs → channel-WKI4stP3.mjs} +12 -16
- package/dist/.setup/{channel-base-DZs1uOyW.mjs → channel-base-DjVHuLDF.mjs} +4 -8
- package/dist/.setup/{channel.adapters-BVT76qsz.mjs → channel.adapters-C9mflxGl.mjs} +11 -20
- package/dist/.setup/{channel.runtime-I9jyPEzh.mjs → channel.runtime-CBwK8353.mjs} +13 -22
- package/dist/.setup/{doctor-contract-BzoaiFSD.mjs → doctor-contract-WrFOPxEj.mjs} +6 -12
- package/dist/.setup/{runtime-C5OOOlaP.mjs → runtime-zEzHA5rr.mjs} +1 -2
- package/dist/.setup/{secret-contract-api-BG_8yVjr.mjs → secret-contract-api-CLRweErW.mjs} +1 -1
- package/dist/.setup/{secret-contract-D7KjX374.mjs → secret-contract-h2P-4VpL.mjs} +1 -2
- package/dist/.setup/setup-plugin-api-Bz3mVqQ5.mjs +2 -0
- package/dist/.source-module-urls/974ffefea973cf3ea18e1534d25b091bcf1b68760a2b9eda0cd9bd9392096c64.json +1 -1
- package/dist/api.js +2 -2
- package/dist/channel-config-api.js +1 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/directory-contract-api.js +2 -3
- package/dist/doctor-contract-api.js +1 -1
- package/dist/index.js +1 -2
- package/dist/runtime-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-entry.js +3 -4
- package/dist/setup-plugin-api.js +1 -1
- package/package.json +4 -4
- package/dist/.setup/setup-plugin-api-DW0Pq8Dd.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-DjVHuLDF.mjs";
|
|
2
|
+
import { C as sendGoogleChatMessage, d as formatGoogleChatMediaText, v as resolveGoogleChatOutboundSpace } from "./channel.adapters-C9mflxGl.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
|
+
// extensions/googlechat/src/actions.ts
|
|
6
6
|
const OUTBOUND_MEDIA_KEYS = [
|
|
7
7
|
"media",
|
|
8
8
|
"mediaUrl",
|
|
@@ -54,5 +54,4 @@ 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
|
|
58
57
|
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-DjVHuLDF.mjs";
|
|
2
|
+
import { g as normalizeGoogleChatTarget, h as isGoogleChatUserTarget } from "./channel.adapters-C9mflxGl.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
|
+
// 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,5 +26,4 @@ const googleChatApproval = createChannelApprovalAuth({
|
|
|
26
26
|
});
|
|
27
27
|
const getGoogleChatApprovalApprovers = googleChatApproval.resolveApprovers;
|
|
28
28
|
const googleChatApprovalAuth = googleChatApproval.approvalAuth;
|
|
29
|
-
//#endregion
|
|
30
29
|
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
|
+
// 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,5 +8,4 @@ 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
|
|
12
11
|
export { escapeGoogleChatApprovalCardText as n, buildGoogleChatApprovalTextWidget as t };
|
package/dist/.setup/{approval-handler.runtime-dh__rR4O.mjs → approval-handler.runtime-CKuHeY6y.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-DjVHuLDF.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-C9mflxGl.mjs";
|
|
3
|
+
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-WKI4stP3.mjs";
|
|
4
|
+
import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-9o-Dfr9Z.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
|
+
// 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,5 +229,4 @@ const googleChatApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapte
|
|
|
229
229
|
log.error(`googlechat approvals: failed to send request ${request.id}: ${String(error)}`);
|
|
230
230
|
} }
|
|
231
231
|
});
|
|
232
|
-
//#endregion
|
|
233
232
|
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-WrFOPxEj.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-DjVHuLDF.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-C9mflxGl.mjs";
|
|
5
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-AkJ2Rg0h.mjs";
|
|
6
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-h2P-4VpL.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
|
+
// 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,11 +127,10 @@ 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-CKuHeY6y.mjs")).googleChatApprovalNativeRuntime
|
|
131
131
|
})
|
|
132
132
|
});
|
|
133
|
-
|
|
134
|
-
//#region extensions/googlechat/src/doctor.ts
|
|
133
|
+
// extensions/googlechat/src/doctor.ts
|
|
135
134
|
const isGoogleChatMutableAllowEntry = buildMutableAllowEntryDetector({
|
|
136
135
|
prefixes: [
|
|
137
136
|
"googlechat:",
|
|
@@ -149,8 +148,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
|
|
|
149
148
|
groupField: "users"
|
|
150
149
|
})
|
|
151
150
|
});
|
|
152
|
-
|
|
153
|
-
//#region extensions/googlechat/src/message-tool-api.ts
|
|
151
|
+
// extensions/googlechat/src/message-tool-api.ts
|
|
154
152
|
const googlechatMessageActions = {
|
|
155
153
|
describeMessageTool({ cfg, accountId }) {
|
|
156
154
|
return (accountId ? [inspectGoogleChatAccount({
|
|
@@ -163,11 +161,10 @@ const googlechatMessageActions = {
|
|
|
163
161
|
},
|
|
164
162
|
supportsAction: ({ action }) => action === "send",
|
|
165
163
|
extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
|
|
166
|
-
handleAction: async (ctx) => (await import("./actions-
|
|
164
|
+
handleAction: async (ctx) => (await import("./actions-DNDmJvwi.mjs")).handleGoogleChatAction(ctx)
|
|
167
165
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-I9jyPEzh.mjs"), "googleChatChannelRuntime");
|
|
166
|
+
// extensions/googlechat/src/channel.ts
|
|
167
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CBwK8353.mjs"), "googleChatChannelRuntime");
|
|
171
168
|
const UNRESOLVED_WEBHOOK_URL_ERROR = "Invalid webhookUrl: expected an absolute URL such as https://chat.example.com/googlechat. No inbound webhook route was registered.";
|
|
172
169
|
const googlechatPlugin = createChatChannelPlugin({
|
|
173
170
|
base: {
|
|
@@ -340,5 +337,4 @@ const googlechatPlugin = createChatChannelPlugin({
|
|
|
340
337
|
}
|
|
341
338
|
}
|
|
342
339
|
});
|
|
343
|
-
//#endregion
|
|
344
340
|
export { isGoogleChatNativeApprovalClientEnabled as n, shouldHandleGoogleChatNativeApprovalRequest as r, googlechatPlugin as t };
|
|
@@ -13,10 +13,9 @@ 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
|
+
// extensions/googlechat/src/google-auth-limits.ts
|
|
17
17
|
const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES = 65536;
|
|
18
|
-
|
|
19
|
-
//#region extensions/googlechat/src/accounts.ts
|
|
18
|
+
// extensions/googlechat/src/accounts.ts
|
|
20
19
|
const ENV_SERVICE_ACCOUNT$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT";
|
|
21
20
|
const ENV_SERVICE_ACCOUNT_FILE$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT_FILE";
|
|
22
21
|
const JsonRecordSchema = z.record(z.string(), z.unknown());
|
|
@@ -236,8 +235,7 @@ const googlechatSetupContract = defineChannelSetupContract({
|
|
|
236
235
|
},
|
|
237
236
|
legacyAdapter: googlechatSetupAdapter
|
|
238
237
|
});
|
|
239
|
-
|
|
240
|
-
//#region extensions/googlechat/src/setup-surface.ts
|
|
238
|
+
// extensions/googlechat/src/setup-surface.ts
|
|
241
239
|
const t = createSetupTranslator();
|
|
242
240
|
const channel = "googlechat";
|
|
243
241
|
const ENV_SERVICE_ACCOUNT = "GOOGLE_CHAT_SERVICE_ACCOUNT";
|
|
@@ -400,8 +398,7 @@ const googlechatSetupWizard = {
|
|
|
400
398
|
},
|
|
401
399
|
dmPolicy: googlechatDmPolicy
|
|
402
400
|
};
|
|
403
|
-
|
|
404
|
-
//#region extensions/googlechat/src/channel-base.ts
|
|
401
|
+
// extensions/googlechat/src/channel-base.ts
|
|
405
402
|
const GOOGLECHAT_CHANNEL_ID = "googlechat";
|
|
406
403
|
const formatGoogleChatAllowFromEntry = (entry) => normalizeLowercaseStringOrEmpty(entry.trim().replace(/^(googlechat|google-chat|gchat):/i, "").replace(/^user:/i, "").replace(/^users\//i, ""));
|
|
407
404
|
const googleChatConfigAdapter = createScopedChannelConfigAdapter({
|
|
@@ -474,5 +471,4 @@ const googlechatSetupPlugin = {
|
|
|
474
471
|
})
|
|
475
472
|
}
|
|
476
473
|
};
|
|
477
|
-
//#endregion
|
|
478
474
|
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-DjVHuLDF.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
|
+
// 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,8 +113,7 @@ function shouldSuppressGoogleChatManualExecApprovalFollowupPayload(payload) {
|
|
|
113
113
|
if (!text || hasStructuredPayloadPart(payload)) return false;
|
|
114
114
|
return shouldSuppressGoogleChatManualExecApprovalFollowupText(text);
|
|
115
115
|
}
|
|
116
|
-
|
|
117
|
-
//#region extensions/googlechat/src/google-auth.runtime.ts
|
|
116
|
+
// extensions/googlechat/src/google-auth.runtime.ts
|
|
118
117
|
const GOOGLE_AUTH_POLICY = buildHostnameAllowlistPolicyFromSuffixAllowlist(["accounts.google.com", "googleapis.com"]);
|
|
119
118
|
const GOOGLE_AUTH_FETCH_TIMEOUT_MS = 3e4;
|
|
120
119
|
const GOOGLE_AUTH_URI = "https://accounts.google.com/o/oauth2/auth";
|
|
@@ -303,8 +302,7 @@ async function resolveValidatedGoogleChatCredentials(account) {
|
|
|
303
302
|
if (account.credentialsFile) return validateGoogleChatServiceAccountCredentials(await readCredentialsFile(account.credentialsFile));
|
|
304
303
|
return null;
|
|
305
304
|
}
|
|
306
|
-
|
|
307
|
-
//#region extensions/googlechat/src/auth.ts
|
|
305
|
+
// extensions/googlechat/src/auth.ts
|
|
308
306
|
const CHAT_SCOPE = "https://www.googleapis.com/auth/chat.bot";
|
|
309
307
|
const CHAT_ISSUER = "chat@system.gserviceaccount.com";
|
|
310
308
|
const ADDON_ISSUER_PATTERN = /^service-\d+@gcp-sa-gsuiteaddons\.iam\.gserviceaccount\.com$/;
|
|
@@ -431,8 +429,7 @@ async function verifyGoogleChatRequest(params) {
|
|
|
431
429
|
};
|
|
432
430
|
}
|
|
433
431
|
}
|
|
434
|
-
|
|
435
|
-
//#region extensions/googlechat/src/api.ts
|
|
432
|
+
// extensions/googlechat/src/api.ts
|
|
436
433
|
const CHAT_API_BASE = "https://chat.googleapis.com/v1";
|
|
437
434
|
const GOOGLECHAT_API_TIMEOUT_MS = 3e4;
|
|
438
435
|
const GOOGLECHAT_MEDIA_TIMEOUT_GRACE_MS = 3e4;
|
|
@@ -602,8 +599,7 @@ async function probeGoogleChat(account) {
|
|
|
602
599
|
};
|
|
603
600
|
}
|
|
604
601
|
}
|
|
605
|
-
|
|
606
|
-
//#region extensions/googlechat/src/targets.ts
|
|
602
|
+
// extensions/googlechat/src/targets.ts
|
|
607
603
|
function normalizeGoogleChatTarget(raw) {
|
|
608
604
|
const trimmed = raw?.trim();
|
|
609
605
|
if (!trimmed) return;
|
|
@@ -696,8 +692,7 @@ async function resolveGoogleChatOutboundSessionRoute(params) {
|
|
|
696
692
|
to: spaceName
|
|
697
693
|
});
|
|
698
694
|
}
|
|
699
|
-
|
|
700
|
-
//#region extensions/googlechat/src/format.ts
|
|
695
|
+
// extensions/googlechat/src/format.ts
|
|
701
696
|
const GOOGLE_CHAT_FORMAT_PROFILE = FormatCapabilityProfile.define({
|
|
702
697
|
mechanism: "markdown",
|
|
703
698
|
constructs: {
|
|
@@ -961,8 +956,7 @@ function formatGoogleChatTextChunks(text, limit = GOOGLE_CHAT_FORMAT_PROFILE.chu
|
|
|
961
956
|
}
|
|
962
957
|
}).map((chunk) => chunk.rendered);
|
|
963
958
|
}
|
|
964
|
-
|
|
965
|
-
//#region extensions/googlechat/src/group-policy.ts
|
|
959
|
+
// extensions/googlechat/src/group-policy.ts
|
|
966
960
|
function buildGoogleChatGroupPolicyScope(params) {
|
|
967
961
|
const matchKey = params.groupId && Object.hasOwn(params.tree.scopes, params.groupId) ? params.groupId : void 0;
|
|
968
962
|
return {
|
|
@@ -977,8 +971,7 @@ function resolveGoogleChatGroupRequireMention(params) {
|
|
|
977
971
|
groupId: params.groupId
|
|
978
972
|
}));
|
|
979
973
|
}
|
|
980
|
-
|
|
981
|
-
//#region extensions/googlechat/src/ingress-identity.ts
|
|
974
|
+
// extensions/googlechat/src/ingress-identity.ts
|
|
982
975
|
function normalizeGoogleChatUserId(raw) {
|
|
983
976
|
const trimmed = normalizeOptionalString(raw) ?? "";
|
|
984
977
|
return normalizeLowercaseStringOrEmpty(trimmed.replace(/^users\//i, ""));
|
|
@@ -1006,9 +999,8 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
|
|
|
1006
999
|
isWildcardEntry: (entry) => normalizeLowercaseStringOrEmpty(entry) === "*",
|
|
1007
1000
|
resolveEntryId: ({ entryIndex, fieldKey }) => fieldKey === "stableId" ? `entry-${entryIndex + 1}:user` : `entry-${entryIndex + 1}:${fieldKey}`
|
|
1008
1001
|
});
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-I9jyPEzh.mjs"), "googleChatChannelRuntime");
|
|
1002
|
+
// extensions/googlechat/src/channel.adapters.ts
|
|
1003
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CBwK8353.mjs"), "googleChatChannelRuntime");
|
|
1012
1004
|
const collectGoogleChatGroupPolicyWarnings = createAllowlistProviderOpenWarningCollector({
|
|
1013
1005
|
providerConfigPresent: (cfg) => cfg.channels?.googlechat !== void 0,
|
|
1014
1006
|
resolveGroupPolicy: (account) => account.config.groupPolicy,
|
|
@@ -1172,5 +1164,4 @@ const googlechatMessageAdapter = defineChannelMessageAdapter({
|
|
|
1172
1164
|
} },
|
|
1173
1165
|
send: { text: googlechatOutboundAdapter.attachedResults.sendText }
|
|
1174
1166
|
});
|
|
1175
|
-
//#endregion
|
|
1176
1167
|
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-C9mflxGl.mjs";
|
|
2
|
+
import { n as googleChatApprovalAuth } from "./approval-auth-AkJ2Rg0h.mjs";
|
|
3
|
+
import { t as getGoogleChatRuntime } from "./runtime-zEzHA5rr.mjs";
|
|
4
|
+
import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-9o-Dfr9Z.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
|
+
// 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,8 +128,7 @@ 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
|
-
|
|
132
|
-
//#region extensions/googlechat/src/monitor-access.ts
|
|
131
|
+
// extensions/googlechat/src/monitor-access.ts
|
|
133
132
|
function extractMentionInfo(annotations, botUser) {
|
|
134
133
|
const mentionAnnotations = annotations.filter((entry) => entry.type === "USER_MENTION");
|
|
135
134
|
const hasAnyMention = mentionAnnotations.length > 0;
|
|
@@ -371,8 +370,7 @@ async function applyGoogleChatInboundAccessPolicy(params) {
|
|
|
371
370
|
groupSystemPrompt: normalizeOptionalString(groupEntry?.systemPrompt)
|
|
372
371
|
};
|
|
373
372
|
}
|
|
374
|
-
|
|
375
|
-
//#region extensions/googlechat/src/monitor-event.ts
|
|
373
|
+
// extensions/googlechat/src/monitor-event.ts
|
|
376
374
|
/** Normalize only at authenticated dispatch; durable admission stores the untouched envelope. */
|
|
377
375
|
function parseGoogleChatInboundPayload(raw) {
|
|
378
376
|
if (!isRecord$1(raw)) throw new Error("invalid payload");
|
|
@@ -423,8 +421,7 @@ function parseGoogleChatInboundPayload(raw) {
|
|
|
423
421
|
} else if (eventType === "CARD_CLICKED" && !isRecord$1(event.user)) throw new Error("invalid payload");
|
|
424
422
|
return event;
|
|
425
423
|
}
|
|
426
|
-
|
|
427
|
-
//#region extensions/googlechat/src/monitor-ingress.ts
|
|
424
|
+
// extensions/googlechat/src/monitor-ingress.ts
|
|
428
425
|
const GoogleChatIngressPermanentError = createChannelIngressError("GoogleChatIngressPermanentError", { withReason: true });
|
|
429
426
|
function requiredString(value, field) {
|
|
430
427
|
if (typeof value === "string" && value.trim()) return value.trim();
|
|
@@ -508,8 +505,7 @@ function createGoogleChatIngressMonitor(options) {
|
|
|
508
505
|
classifyAdmissionError: (error) => error instanceof GoogleChatIngressPermanentError ? error.message : void 0
|
|
509
506
|
});
|
|
510
507
|
}
|
|
511
|
-
|
|
512
|
-
//#region extensions/googlechat/src/monitor-reply-target.ts
|
|
508
|
+
// extensions/googlechat/src/monitor-reply-target.ts
|
|
513
509
|
/**
|
|
514
510
|
* Google Chat only accepts a thread resource (`spaces/x/threads/y`) as a reply
|
|
515
511
|
* target. The automatic reply pipeline supplies the inbound *message* resource
|
|
@@ -526,8 +522,7 @@ function normalizeGoogleChatReplyTarget(params) {
|
|
|
526
522
|
replyToId: params.replyThreadName
|
|
527
523
|
};
|
|
528
524
|
}
|
|
529
|
-
|
|
530
|
-
//#region extensions/googlechat/src/monitor-webhook.ts
|
|
525
|
+
// extensions/googlechat/src/monitor-webhook.ts
|
|
531
526
|
function extractBearerToken(header) {
|
|
532
527
|
const authHeader = Array.isArray(header) ? typeof header[0] === "string" ? header[0] : "" : typeof header === "string" ? header : "";
|
|
533
528
|
return normalizeLowercaseStringOrEmpty(authHeader).startsWith("bearer ") ? authHeader.slice(7).trim() : "";
|
|
@@ -670,8 +665,7 @@ function createGoogleChatWebhookRequestHandler(params) {
|
|
|
670
665
|
});
|
|
671
666
|
};
|
|
672
667
|
}
|
|
673
|
-
|
|
674
|
-
//#region extensions/googlechat/src/monitor-routing.ts
|
|
668
|
+
// extensions/googlechat/src/monitor-routing.ts
|
|
675
669
|
const webhookTargets = /* @__PURE__ */ new Map();
|
|
676
670
|
const webhookRateLimiter = createFixedWindowRateLimiter(WEBHOOK_RATE_LIMIT_DEFAULTS);
|
|
677
671
|
const webhookInFlightLimiter = createWebhookInFlightLimiter();
|
|
@@ -709,8 +703,7 @@ function registerGoogleChatWebhookTarget(target) {
|
|
|
709
703
|
}
|
|
710
704
|
}).unregister;
|
|
711
705
|
}
|
|
712
|
-
|
|
713
|
-
//#region extensions/googlechat/src/monitor.ts
|
|
706
|
+
// extensions/googlechat/src/monitor.ts
|
|
714
707
|
setGoogleChatWebhookEventProcessor(processGoogleChatEvent);
|
|
715
708
|
function createGoogleChatTypingMessage(params) {
|
|
716
709
|
const name = params.messageName.trim();
|
|
@@ -1186,13 +1179,11 @@ function resolveGoogleChatWebhookPath({ webhookPath, webhookUrl }) {
|
|
|
1186
1179
|
defaultPath: "/googlechat"
|
|
1187
1180
|
});
|
|
1188
1181
|
}
|
|
1189
|
-
|
|
1190
|
-
//#region extensions/googlechat/src/channel.runtime.ts
|
|
1182
|
+
// extensions/googlechat/src/channel.runtime.ts
|
|
1191
1183
|
const googleChatChannelRuntime = {
|
|
1192
1184
|
probeGoogleChat,
|
|
1193
1185
|
sendGoogleChatMessage,
|
|
1194
1186
|
resolveGoogleChatWebhookPath,
|
|
1195
1187
|
startGoogleChatMonitor
|
|
1196
1188
|
};
|
|
1197
|
-
//#endregion
|
|
1198
1189
|
export { googleChatChannelRuntime };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -23,8 +23,7 @@ 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
|
-
|
|
27
|
-
//#region packages/normalization-core/src/record-coerce.ts
|
|
26
|
+
// packages/normalization-core/src/record-coerce.ts
|
|
28
27
|
/** Type guard for non-array object records at browser-safe boundaries. */
|
|
29
28
|
function isRecord(value) {
|
|
30
29
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -33,8 +32,7 @@ function isRecord(value) {
|
|
|
33
32
|
function asNullableRecord(value) {
|
|
34
33
|
return isRecord(value) ? value : null;
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
//#region src/config/channel-config-normalization.ts
|
|
35
|
+
// src/config/channel-config-normalization.ts
|
|
38
36
|
/** Applies one channel-specific doctor migration to every object-shaped account. */
|
|
39
37
|
function normalizeChannelAccounts(params) {
|
|
40
38
|
const rawAccounts = asNullableRecord(params.entry.accounts);
|
|
@@ -110,8 +108,7 @@ function normalizeChannelConfigEntries$1(params) {
|
|
|
110
108
|
changes
|
|
111
109
|
};
|
|
112
110
|
}
|
|
113
|
-
|
|
114
|
-
//#region src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
111
|
+
// src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
115
112
|
/** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
|
|
116
113
|
function createLegacyWebhookListenerDoctorContract(params) {
|
|
117
114
|
const portKey = params.portKey ?? "webhookPort";
|
|
@@ -181,13 +178,11 @@ function createLegacyWebhookListenerDoctorContract(params) {
|
|
|
181
178
|
}
|
|
182
179
|
};
|
|
183
180
|
}
|
|
184
|
-
|
|
185
|
-
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
181
|
+
// \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
186
182
|
var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
|
|
187
183
|
import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
188
184
|
__reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
|
|
189
|
-
|
|
190
|
-
//#region extensions/googlechat/src/doctor-contract.ts
|
|
185
|
+
// extensions/googlechat/src/doctor-contract.ts
|
|
191
186
|
const streamingAliasMigration = (0, runtime_doctor_migrations_exports.defineChannelAliasMigration)({
|
|
192
187
|
channelId: "googlechat",
|
|
193
188
|
streaming: {
|
|
@@ -296,5 +291,4 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
296
291
|
changes: retired.changes
|
|
297
292
|
});
|
|
298
293
|
}
|
|
299
|
-
//#endregion
|
|
300
294
|
export { normalizeCompatibilityConfig as n, legacyConfigRules as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
2
|
-
|
|
2
|
+
// 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
|
|
8
7
|
export { setGoogleChatRuntime as n, getGoogleChatRuntime 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-h2P-4VpL.mjs";
|
|
2
2
|
import "../secret-contract-api.js";
|
|
@@ -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
|
+
// extensions/googlechat/src/secret-contract.ts
|
|
6
6
|
function accountSecretOwner(accountId) {
|
|
7
7
|
return {
|
|
8
8
|
ownerKind: "account",
|
|
@@ -74,5 +74,4 @@ const channelSecrets = createChannelSecretContract({
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
|
|
77
|
-
//#endregion
|
|
78
77
|
export { collectRuntimeConfigAssignments as n, secretTargetRegistryEntries as r, channelSecrets as t };
|
|
@@ -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-DNDmJvwi.mjs","sha256":"3b0de50b619e1d993b53aeda233faa32682a5f7583e6b36af434da787a05750d","facadeSource":"extensions/googlechat/src/actions.ts","sources":["extensions/googlechat/src/actions.ts"]},{"output":".setup/approval-auth-AkJ2Rg0h.mjs","sha256":"a1f06e1235e4bee37fdbf840f0ebc8340f59e6bd80044f7579cf7d8c848df70c","facadeSource":null,"sources":["extensions/googlechat/src/approval-auth.ts"]},{"output":".setup/approval-card-text-9o-Dfr9Z.mjs","sha256":"acd260416e2c70d91b277feb6e4617c7873c2d30dceabbd6ee017161d84f9302","facadeSource":null,"sources":["extensions/googlechat/src/approval-card-text.ts"]},{"output":".setup/approval-handler.runtime-CKuHeY6y.mjs","sha256":"f1044d10415584c7151e53e949cf7c9502d57c7acddb10dc3974f4324be3aa7a","facadeSource":"extensions/googlechat/src/approval-handler.runtime.ts","sources":["extensions/googlechat/src/approval-handler.runtime.ts"]},{"output":".setup/channel-base-DjVHuLDF.mjs","sha256":"7b574b66fcac74b85399a9b655675f617b9e6ea748cabe9f65c4377541aff06a","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-WKI4stP3.mjs","sha256":"016a5f57aa5f74eb1741eee5284127b7e0f330c096ad18e264496433be3f7ef6","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-C9mflxGl.mjs","sha256":"49748f7d3582ffed40b7c9e6ec835e78b9f975bc1056c313c226a9cc789a2435","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-CBwK8353.mjs","sha256":"ba69e26064540fe947b31cf2060949700ce3d6553b66ad4ef567b27a080a34bf","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-WrFOPxEj.mjs","sha256":"ac87e042e1965530c26cb25d48979f02332a586a8928814388621e247b5823fc","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-zEzHA5rr.mjs","sha256":"ca736781dfaabb9b01e948b24fa82b567feaaf70cc6a15f880d0efd4e2fc0452","facadeSource":null,"sources":["extensions/googlechat/src/runtime.ts"]},{"output":".setup/secret-contract-api-CLRweErW.mjs","sha256":"ee90fabda59b98d84f7d5ae73c2b250527282f788916449c3f33968beb9001fe","facadeSource":"extensions/googlechat/secret-contract-api.ts","sources":[]},{"output":".setup/secret-contract-h2P-4VpL.mjs","sha256":"b894119f1d787508dc3a726be8bf8ca8670b707a7a76678787b9de8d497d9116","facadeSource":null,"sources":["extensions/googlechat/src/secret-contract.ts"]},{"output":".setup/setup-plugin-api-Bz3mVqQ5.mjs","sha256":"daf97b34fca0bfb5054721593b6b33cf630932ed730c520219ce94ad20cea369","facadeSource":"extensions/googlechat/setup-plugin-api.ts","sources":[]},{"output":"api.js","sha256":"fec34993b5adec788544bace7e54b63152f980a1ade4445233bc531b4ce0e5af","facadeSource":"extensions/googlechat/api.ts","sources":[]},{"output":"channel-config-api.js","sha256":"cf612ab901974dfabb2c06edb513d91bb0bd4dac199bcf166f3fac5e12540bf5","facadeSource":"extensions/googlechat/channel-config-api.ts","sources":["extensions/googlechat/src/config-schema.ts"]},{"output":"channel-plugin-api.js","sha256":"b96ad2fc974c9f62c3d32e54b4fddd9508b82d7b16c9c0a5e9b772ed49439459","facadeSource":"extensions/googlechat/channel-plugin-api.ts","sources":[]},{"output":"directory-contract-api.js","sha256":"c01fb41575dbed6dca510233eb3d53c18003e8602a0049b1fa74143980dcb551","facadeSource":"extensions/googlechat/directory-contract-api.ts","sources":["extensions/googlechat/directory-contract-api.ts"]},{"output":"doctor-contract-api.js","sha256":"ede0e3577556acfd4a4df679979f5adcef7008639c1f4638ab6f375eb7d18077","facadeSource":"extensions/googlechat/doctor-contract-api.ts","sources":[]},{"output":"index.js","sha256":"a8677a1c9368c3c78c2f83b73ec50cece345574790a652c9162219b76404987c","facadeSource":"extensions/googlechat/index.ts","sources":["extensions/googlechat/index.ts"]},{"output":"runtime-api.js","sha256":"b149bacfb902e955995a631d92f928bcb02512bc30d45da3c93ad22570dc20da","facadeSource":"extensions/googlechat/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"e2f8dcd992e1b82c48e592f948edd726064dabe13bb6e0bafd98479be4d05418","facadeSource":"extensions/googlechat/secret-contract-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"53d062464a6fe0b01fb3728affe5a9d07e8e58866d96c435a01da584260dda7d","facadeSource":"extensions/googlechat/setup-entry.ts","sources":["extensions/googlechat/setup-entry.ts"]},{"output":"setup-plugin-api.js","sha256":"0b8023919dad1b4ad9b057fa56cbaf1226914f483f97c9b19774b5548f75c6e0","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-DjVHuLDF.mjs";
|
|
2
|
+
import { t as googlechatPlugin } from "./.setup/channel-WKI4stP3.mjs";
|
|
3
3
|
export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./.setup/config-api-CsD0IFxF.mjs";
|
|
2
|
-
|
|
2
|
+
// extensions/googlechat/src/config-schema.ts
|
|
3
3
|
const GoogleChatChannelConfigSchema = buildChannelConfigSchema(GoogleChatConfigSchema);
|
|
4
|
-
//#endregion
|
|
5
4
|
export { GoogleChatChannelConfigSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as googlechatPlugin } from "./.setup/channel-
|
|
1
|
+
export { t as googlechatPlugin } from "./.setup/channel-WKI4stP3.mjs";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-
|
|
2
|
-
|
|
1
|
+
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-C9mflxGl.mjs";
|
|
2
|
+
// extensions/googlechat/directory-contract-api.ts
|
|
3
3
|
const googlechatDirectoryContractPlugin = {
|
|
4
4
|
id: "googlechat",
|
|
5
5
|
directory: googlechatDirectoryAdapter
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
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-WrFOPxEj.mjs";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
|
-
|
|
2
|
+
// extensions/googlechat/index.ts
|
|
3
3
|
var googlechat_default = defineBundledChannelEntry({
|
|
4
4
|
id: "googlechat",
|
|
5
5
|
name: "Google Chat",
|
|
@@ -18,5 +18,4 @@ var googlechat_default = defineBundledChannelEntry({
|
|
|
18
18
|
exportName: "setGoogleChatRuntime"
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
//#endregion
|
|
22
21
|
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-zEzHA5rr.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-h2P-4VpL.mjs";
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
3
|
+
// 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-Bz3mVqQ5.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-CLRweErW.mjs", import.meta.url).href),
|
|
12
12
|
exportName: "channelSecrets"
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
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-DjVHuLDF.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.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.7"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.11.
|
|
15
|
+
"openclaw": ">=2026.11.9"
|
|
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.
|
|
138
|
+
"pluginApi": ">=2026.11.9"
|
|
139
139
|
},
|
|
140
140
|
"build": {
|
|
141
|
-
"openclawVersion": "2026.11.
|
|
141
|
+
"openclawVersion": "2026.11.9"
|
|
142
142
|
},
|
|
143
143
|
"release": {
|
|
144
144
|
"publishToClawHub": true,
|