@openclaw/googlechat 2026.10.10-beta.5 → 2026.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.setup/{actions-CSE3qGrO.mjs → actions-irdxFe5N.mjs} +15 -14
- package/dist/.setup/{approval-auth-DH1sJm7S.mjs → approval-auth-BjpSnjsd.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-Bx0dTqDd.mjs → approval-handler.runtime-Da70PiU9.mjs} +5 -6
- package/dist/.setup/{channel-base-sWlG7EP1.mjs → channel-base-BFV0cGQ2.mjs} +4 -8
- package/dist/.setup/{channel-BBRTocXs.mjs → channel-m2X2-cKA.mjs} +14 -19
- package/dist/.setup/{channel.adapters--OFb3A2Y.mjs → channel.adapters-C6GxEODt.mjs} +35 -22
- package/dist/.setup/{channel.runtime-uaSH6k2d.mjs → channel.runtime-Bdv90H74.mjs} +27 -33
- 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-Dru1eW9z.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-CFDZH0Qp.mjs +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import {
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-BFV0cGQ2.mjs";
|
|
2
|
+
import { C as sendGoogleChatMessage, d as formatGoogleChatMediaText, v as resolveGoogleChatOutboundSpace } from "./channel.adapters-C6GxEODt.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",
|
|
@@ -11,14 +11,20 @@ const OUTBOUND_MEDIA_KEYS = [
|
|
|
11
11
|
"fileUrl"
|
|
12
12
|
];
|
|
13
13
|
const STRUCTURED_ATTACHMENT_MEDIA_KEYS = [...OUTBOUND_MEDIA_KEYS, "url"];
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
function readGoogleChatMediaUrls(params) {
|
|
15
|
+
return [
|
|
16
|
+
...OUTBOUND_MEDIA_KEYS.map((key) => readStringParam(params, key)),
|
|
17
|
+
...readStringArrayParam(params, "mediaUrls") ?? [],
|
|
18
|
+
...(Array.isArray(params.attachments) ? params.attachments : []).flatMap((attachment) => isRecord(attachment) ? STRUCTURED_ATTACHMENT_MEDIA_KEYS.map((key) => readStringParam(attachment, key)) : [])
|
|
19
|
+
].filter((value) => value !== void 0);
|
|
19
20
|
}
|
|
20
21
|
async function handleGoogleChatAction({ action, params, cfg, accountId, assertDirectAdapterHandoff, onPlatformSendDispatch }) {
|
|
21
|
-
if (action === "upload-file"
|
|
22
|
+
if (action === "upload-file") throw new Error("Google Chat outbound attachments require user OAuth and are not supported by this service-account channel.");
|
|
23
|
+
const mediaUrls = action === "send" ? readGoogleChatMediaUrls(params) : [];
|
|
24
|
+
const content = action === "send" ? formatGoogleChatMediaText(readStringParam(params, "message", {
|
|
25
|
+
required: mediaUrls.length === 0,
|
|
26
|
+
allowEmpty: true
|
|
27
|
+
}), mediaUrls) : "";
|
|
22
28
|
const account = resolveGoogleChatAccount({
|
|
23
29
|
cfg,
|
|
24
30
|
accountId
|
|
@@ -26,10 +32,6 @@ async function handleGoogleChatAction({ action, params, cfg, accountId, assertDi
|
|
|
26
32
|
if (account.credentialSource === "none" || account.tokenStatus === "configured_unavailable") throw new Error("Google Chat credentials are missing.");
|
|
27
33
|
if (action === "send") {
|
|
28
34
|
const to = readStringParam(params, "to", { required: true });
|
|
29
|
-
const content = readStringParam(params, "message", {
|
|
30
|
-
required: true,
|
|
31
|
-
allowEmpty: true
|
|
32
|
-
});
|
|
33
35
|
const threadId = readStringParam(params, "threadId") ?? readStringParam(params, "replyTo");
|
|
34
36
|
const space = await resolveGoogleChatOutboundSpace({
|
|
35
37
|
account,
|
|
@@ -52,5 +54,4 @@ async function handleGoogleChatAction({ action, params, cfg, accountId, assertDi
|
|
|
52
54
|
}
|
|
53
55
|
throw new Error(`Action ${action} is not supported for provider googlechat.`);
|
|
54
56
|
}
|
|
55
|
-
//#endregion
|
|
56
57
|
export { handleGoogleChatAction };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import {
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-BFV0cGQ2.mjs";
|
|
2
|
+
import { g as normalizeGoogleChatTarget, h as isGoogleChatUserTarget } from "./channel.adapters-C6GxEODt.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-Bx0dTqDd.mjs → approval-handler.runtime-Da70PiU9.mjs}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import { A as
|
|
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-BFV0cGQ2.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-C6GxEODt.mjs";
|
|
3
|
+
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-m2X2-cKA.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 };
|
|
@@ -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 googlechatMeta = {
|
|
407
404
|
id: GOOGLECHAT_CHANNEL_ID,
|
|
@@ -475,5 +472,4 @@ const googlechatSetupPlugin = {
|
|
|
475
472
|
})
|
|
476
473
|
}
|
|
477
474
|
};
|
|
478
|
-
//#endregion
|
|
479
475
|
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,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 { a as googlechatPairingTextAdapter, g as
|
|
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-BFV0cGQ2.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-C6GxEODt.mjs";
|
|
5
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-BjpSnjsd.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 { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
9
9
|
import { buildPassiveProbedChannelStatusSummary } from "openclaw/plugin-sdk/extension-shared";
|
|
@@ -18,7 +18,7 @@ import { buildMutableAllowEntryDetector, collectStandardAllowlistLists, createDa
|
|
|
18
18
|
import { registerChannelRuntimeContext } from "openclaw/plugin-sdk/channel-runtime-context";
|
|
19
19
|
import { channelBlockedPatch } from "openclaw/plugin-sdk/gateway-runtime";
|
|
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);
|
|
@@ -132,11 +132,10 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
|
|
|
132
132
|
],
|
|
133
133
|
isConfigured: isGoogleChatNativeApprovalClientEnabled,
|
|
134
134
|
shouldHandle: shouldHandleGoogleChatNativeApprovalRequest,
|
|
135
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
135
|
+
load: async () => (await import("./approval-handler.runtime-Da70PiU9.mjs")).googleChatApprovalNativeRuntime
|
|
136
136
|
})
|
|
137
137
|
});
|
|
138
|
-
|
|
139
|
-
//#region extensions/googlechat/src/doctor.ts
|
|
138
|
+
// extensions/googlechat/src/doctor.ts
|
|
140
139
|
const isGoogleChatMutableAllowEntry = buildMutableAllowEntryDetector({
|
|
141
140
|
prefixes: [
|
|
142
141
|
"googlechat:",
|
|
@@ -154,9 +153,8 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
|
|
|
154
153
|
groupField: "users"
|
|
155
154
|
})
|
|
156
155
|
});
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-uaSH6k2d.mjs"), "googleChatChannelRuntime");
|
|
156
|
+
// extensions/googlechat/src/gateway.ts
|
|
157
|
+
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bdv90H74.mjs"), "googleChatChannelRuntime");
|
|
160
158
|
const UNRESOLVED_WEBHOOK_URL_ERROR = "Invalid webhookUrl: expected an absolute URL such as https://chat.example.com/googlechat. No inbound webhook route was registered.";
|
|
161
159
|
async function startGoogleChatGatewayAccount(ctx) {
|
|
162
160
|
const account = ctx.account;
|
|
@@ -211,8 +209,7 @@ async function startGoogleChatGatewayAccount(ctx) {
|
|
|
211
209
|
});
|
|
212
210
|
}
|
|
213
211
|
}
|
|
214
|
-
|
|
215
|
-
//#region extensions/googlechat/src/message-tool-api.ts
|
|
212
|
+
// extensions/googlechat/src/message-tool-api.ts
|
|
216
213
|
function describeGoogleChatMessageTool({ cfg, accountId }) {
|
|
217
214
|
return (accountId ? [inspectGoogleChatAccount({
|
|
218
215
|
cfg,
|
|
@@ -226,11 +223,10 @@ const googlechatMessageActions = {
|
|
|
226
223
|
describeMessageTool: describeGoogleChatMessageTool,
|
|
227
224
|
supportsAction: ({ action }) => action === "send",
|
|
228
225
|
extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
|
|
229
|
-
handleAction: async (ctx) => (await import("./actions-
|
|
226
|
+
handleAction: async (ctx) => (await import("./actions-irdxFe5N.mjs")).handleGoogleChatAction(ctx)
|
|
230
227
|
};
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-uaSH6k2d.mjs"), "googleChatChannelRuntime");
|
|
228
|
+
// extensions/googlechat/src/channel.ts
|
|
229
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bdv90H74.mjs"), "googleChatChannelRuntime");
|
|
234
230
|
const googlechatPlugin = createChatChannelPlugin({
|
|
235
231
|
base: {
|
|
236
232
|
...googlechatSetupPlugin,
|
|
@@ -350,5 +346,4 @@ const googlechatPlugin = createChatChannelPlugin({
|
|
|
350
346
|
}
|
|
351
347
|
}
|
|
352
348
|
});
|
|
353
|
-
//#endregion
|
|
354
349
|
export { isGoogleChatNativeApprovalClientEnabled as n, shouldHandleGoogleChatNativeApprovalRequest as r, googlechatPlugin as t };
|
|
@@ -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-BFV0cGQ2.mjs";
|
|
2
2
|
import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/channel-core";
|
|
3
3
|
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
4
4
|
import { asNullableObjectRecord, isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -20,8 +20,9 @@ import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter, s
|
|
|
20
20
|
import { buildChannelGroupsScopeTree, createAllowlistProviderOpenWarningCollector, createConditionalWarningCollector, resolveScopeRequireMention } from "openclaw/plugin-sdk/channel-policy";
|
|
21
21
|
import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
|
|
22
22
|
import { createChannelDirectoryAdapter, listResolvedDirectoryGroupEntriesFromMapKeys, listResolvedDirectoryUserEntriesFromAllowFrom } from "openclaw/plugin-sdk/directory-runtime";
|
|
23
|
+
import { formatTextWithAttachmentLinks, resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
|
|
23
24
|
import { FormatCapabilityProfile, markdownToIR, renderMarkdownIRChunksWithinLimit, renderMarkdownWithMarkers, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
24
|
-
|
|
25
|
+
// extensions/googlechat/src/approval-card-actions.ts
|
|
25
26
|
const GOOGLECHAT_APPROVAL_ACTION = "openclaw.approval";
|
|
26
27
|
const GOOGLECHAT_APPROVAL_ACTION_PARAM = "openclaw_action";
|
|
27
28
|
const GOOGLECHAT_APPROVAL_TOKEN_PARAM = "token";
|
|
@@ -116,8 +117,7 @@ function shouldSuppressGoogleChatManualExecApprovalFollowupPayload(payload, nowM
|
|
|
116
117
|
if (!text || hasStructuredPayloadPart(payload)) return false;
|
|
117
118
|
return shouldSuppressGoogleChatManualExecApprovalFollowupText(text, nowMs);
|
|
118
119
|
}
|
|
119
|
-
|
|
120
|
-
//#region extensions/googlechat/src/google-auth.runtime.ts
|
|
120
|
+
// extensions/googlechat/src/google-auth.runtime.ts
|
|
121
121
|
const GOOGLE_AUTH_POLICY = buildHostnameAllowlistPolicyFromSuffixAllowlist(["accounts.google.com", "googleapis.com"]);
|
|
122
122
|
const GOOGLE_AUTH_FETCH_TIMEOUT_MS = 3e4;
|
|
123
123
|
const GOOGLE_AUTH_URI = "https://accounts.google.com/o/oauth2/auth";
|
|
@@ -357,8 +357,7 @@ async function resolveValidatedGoogleChatCredentials(account) {
|
|
|
357
357
|
if (account.credentialsFile) return validateGoogleChatServiceAccountCredentials(await readCredentialsFile(account.credentialsFile));
|
|
358
358
|
return null;
|
|
359
359
|
}
|
|
360
|
-
|
|
361
|
-
//#region extensions/googlechat/src/auth.ts
|
|
360
|
+
// extensions/googlechat/src/auth.ts
|
|
362
361
|
const CHAT_SCOPE = "https://www.googleapis.com/auth/chat.bot";
|
|
363
362
|
const CHAT_ISSUER = "chat@system.gserviceaccount.com";
|
|
364
363
|
const ADDON_ISSUER_PATTERN = /^service-\d+@gcp-sa-gsuiteaddons\.iam\.gserviceaccount\.com$/;
|
|
@@ -485,8 +484,7 @@ async function verifyGoogleChatRequest(params) {
|
|
|
485
484
|
};
|
|
486
485
|
}
|
|
487
486
|
}
|
|
488
|
-
|
|
489
|
-
//#region extensions/googlechat/src/api.ts
|
|
487
|
+
// extensions/googlechat/src/api.ts
|
|
490
488
|
const CHAT_API_BASE = "https://chat.googleapis.com/v1";
|
|
491
489
|
const GOOGLECHAT_API_TIMEOUT_MS = 3e4;
|
|
492
490
|
const GOOGLECHAT_MEDIA_TIMEOUT_GRACE_MS = 3e4;
|
|
@@ -659,8 +657,7 @@ async function probeGoogleChat(account) {
|
|
|
659
657
|
};
|
|
660
658
|
}
|
|
661
659
|
}
|
|
662
|
-
|
|
663
|
-
//#region extensions/googlechat/src/targets.ts
|
|
660
|
+
// extensions/googlechat/src/targets.ts
|
|
664
661
|
function normalizeGoogleChatTarget(raw) {
|
|
665
662
|
const trimmed = raw?.trim();
|
|
666
663
|
if (!trimmed) return;
|
|
@@ -751,8 +748,7 @@ async function resolveGoogleChatOutboundSessionRoute(params) {
|
|
|
751
748
|
to: spaceName
|
|
752
749
|
});
|
|
753
750
|
}
|
|
754
|
-
|
|
755
|
-
//#region extensions/googlechat/src/format.ts
|
|
751
|
+
// extensions/googlechat/src/format.ts
|
|
756
752
|
const GOOGLE_CHAT_FORMAT_PROFILE = FormatCapabilityProfile.define({
|
|
757
753
|
mechanism: "markdown",
|
|
758
754
|
constructs: {
|
|
@@ -806,6 +802,18 @@ function createGoogleChatMarkers(text) {
|
|
|
806
802
|
function sanitizeGoogleChatText(text) {
|
|
807
803
|
return sanitizeForPlainText(sanitizeAssistantVisibleText(text), { style: "markdown" });
|
|
808
804
|
}
|
|
805
|
+
function formatGoogleChatMediaText(text, mediaUrls) {
|
|
806
|
+
const remoteUrls = mediaUrls.filter((value) => {
|
|
807
|
+
if (value.split("").some((character) => character <= " " || character === "") || !/^https?:\/\//iu.test(value)) return false;
|
|
808
|
+
try {
|
|
809
|
+
return Boolean(new URL(value).hostname);
|
|
810
|
+
} catch {
|
|
811
|
+
return false;
|
|
812
|
+
}
|
|
813
|
+
});
|
|
814
|
+
if (remoteUrls.length !== mediaUrls.length) throw new Error("Google Chat outbound attachments require remote HTTP(S) URLs.");
|
|
815
|
+
return [text, formatTextWithAttachmentLinks(void 0, remoteUrls)].filter(Boolean).join("\n\n");
|
|
816
|
+
}
|
|
809
817
|
function projectDecodedGoogleChatResources(ir) {
|
|
810
818
|
const text = ir.text.replace(/<(?:users|customEmojis)\/[^<>\s]+>/giu, (match) => `<${match.slice(1, -1)}>`);
|
|
811
819
|
return text === ir.text ? ir : {
|
|
@@ -1021,8 +1029,7 @@ function formatGoogleChatTextChunks(text, limit = GOOGLE_CHAT_FORMAT_PROFILE.chu
|
|
|
1021
1029
|
renderChunk: (chunk) => renderGoogleChatIR(chunk, prepared.markers)
|
|
1022
1030
|
}).map((chunk) => chunk.rendered);
|
|
1023
1031
|
}
|
|
1024
|
-
|
|
1025
|
-
//#region extensions/googlechat/src/group-policy.ts
|
|
1032
|
+
// extensions/googlechat/src/group-policy.ts
|
|
1026
1033
|
function buildGoogleChatGroupPolicyScope(params) {
|
|
1027
1034
|
const matchKey = params.groupId && Object.hasOwn(params.tree.scopes, params.groupId) ? params.groupId : void 0;
|
|
1028
1035
|
return {
|
|
@@ -1037,8 +1044,7 @@ function resolveGoogleChatGroupRequireMention(params) {
|
|
|
1037
1044
|
groupId: params.groupId
|
|
1038
1045
|
}));
|
|
1039
1046
|
}
|
|
1040
|
-
|
|
1041
|
-
//#region extensions/googlechat/src/ingress-identity.ts
|
|
1047
|
+
// extensions/googlechat/src/ingress-identity.ts
|
|
1042
1048
|
function normalizeGoogleChatUserId(raw) {
|
|
1043
1049
|
const trimmed = normalizeOptionalString(raw) ?? "";
|
|
1044
1050
|
return normalizeLowercaseStringOrEmpty(trimmed.replace(/^users\//i, ""));
|
|
@@ -1069,9 +1075,8 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
|
|
|
1069
1075
|
isWildcardEntry: (entry) => normalizeLowercaseStringOrEmpty(entry) === "*",
|
|
1070
1076
|
resolveEntryId: ({ entryIndex, fieldKey }) => fieldKey === "stableId" ? `entry-${entryIndex + 1}:user` : `entry-${entryIndex + 1}:${fieldKey}`
|
|
1071
1077
|
});
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-uaSH6k2d.mjs"), "googleChatChannelRuntime");
|
|
1078
|
+
// extensions/googlechat/src/channel.adapters.ts
|
|
1079
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bdv90H74.mjs"), "googleChatChannelRuntime");
|
|
1075
1080
|
const collectGoogleChatGroupPolicyWarnings = createAllowlistProviderOpenWarningCollector({
|
|
1076
1081
|
providerConfigPresent: (cfg) => cfg.channels?.googlechat !== void 0,
|
|
1077
1082
|
resolveGroupPolicy: (account) => account.config.groupPolicy,
|
|
@@ -1164,7 +1169,15 @@ const googlechatOutboundAdapter = {
|
|
|
1164
1169
|
chunkerMode: "markdown",
|
|
1165
1170
|
textChunkLimit: GOOGLE_CHAT_FORMAT_PROFILE.chunk.limit,
|
|
1166
1171
|
sanitizeText: ({ text }) => sanitizeGoogleChatText(text),
|
|
1167
|
-
normalizePayload: ({ payload }) =>
|
|
1172
|
+
normalizePayload: ({ payload }) => {
|
|
1173
|
+
if (shouldSuppressGoogleChatManualExecApprovalFollowupPayload(payload)) return null;
|
|
1174
|
+
const reply = resolveSendableOutboundReplyParts(payload);
|
|
1175
|
+
const { mediaUrl: _mediaUrl, mediaUrls: _mediaUrls, ...rest } = payload;
|
|
1176
|
+
return {
|
|
1177
|
+
...rest,
|
|
1178
|
+
text: formatGoogleChatMediaText(reply.text, reply.mediaUrls)
|
|
1179
|
+
};
|
|
1180
|
+
},
|
|
1168
1181
|
resolveTarget: ({ to }) => {
|
|
1169
1182
|
const normalized = normalizeGoogleChatTarget(to);
|
|
1170
1183
|
return normalized ? {
|
|
@@ -1221,10 +1234,10 @@ const googlechatMessageAdapter = defineChannelMessageAdapter({
|
|
|
1221
1234
|
id: "googlechat",
|
|
1222
1235
|
durableFinal: { capabilities: {
|
|
1223
1236
|
text: true,
|
|
1237
|
+
media: true,
|
|
1224
1238
|
thread: true,
|
|
1225
1239
|
messageSendingHooks: true
|
|
1226
1240
|
} },
|
|
1227
1241
|
send: { text: googlechatOutboundAdapter.attachedResults.sendText }
|
|
1228
1242
|
});
|
|
1229
|
-
|
|
1230
|
-
export { registerGoogleChatManualApprovalFollowupSuppression as A, updateGoogleChatMessage as C, googleChatApprovalControls as D, buildGoogleChatApprovalActionParameters as E, readGoogleChatApprovalActionToken as O, sendGoogleChatMessage as S, GOOGLECHAT_APPROVAL_ACTION as T, resolveGoogleChatOutboundSpace as _, googlechatPairingTextAdapter as a, downloadGoogleChatMedia as b, googleChatIngressIdentity as c, formatGoogleChatTextChunks as d, isGoogleChatGroupSpace as f, resolveGoogleChatOutboundSessionRoute as g, normalizeGoogleChatTarget as h, googlechatOutboundAdapter as i, unregisterGoogleChatManualApprovalFollowupSuppression as j, registerGoogleChatApprovalCardBinding as k, normalizeGoogleChatUserId as l, isGoogleChatUserTarget as m, googlechatGroupsAdapter as n, googlechatSecurityAdapter as o, isGoogleChatSpaceTarget as p, googlechatMessageAdapter as r, googlechatThreadingAdapter as s, googlechatDirectoryAdapter as t, buildGoogleChatGroupPolicyScope as u, GoogleChatApiError as v, verifyGoogleChatRequest as w, probeGoogleChat as x, deleteGoogleChatMessage as y };
|
|
1243
|
+
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,13 +1,14 @@
|
|
|
1
|
-
import { C as
|
|
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-C6GxEODt.mjs";
|
|
2
|
+
import { n as googleChatApprovalAuth } from "./approval-auth-BjpSnjsd.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 { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringEntries, normalizeTrimmedStringList } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
|
|
7
7
|
import { PlatformMessageNotDispatchedError, collectErrorGraphCandidates, formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
8
8
|
import { MediaFetchError } from "openclaw/plugin-sdk/media-runtime";
|
|
9
9
|
import { channelIngressRoutes, createStandardRawEventIngressMonitor } from "openclaw/plugin-sdk/channel-ingress-runtime";
|
|
10
10
|
import { createChannelIngressError } from "openclaw/plugin-sdk/channel-outbound";
|
|
11
|
+
import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
|
|
11
12
|
import { channelBlockedPatch, channelReadyPatch } from "openclaw/plugin-sdk/gateway-runtime";
|
|
12
13
|
import { isRecord as isRecord$1 } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
|
|
13
14
|
import { resolveAgentConfig } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
@@ -20,10 +21,9 @@ import { resolveApprovalOverGateway } from "openclaw/plugin-sdk/approval-gateway
|
|
|
20
21
|
import { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";
|
|
21
22
|
import { isDangerousNameMatchingEnabled } from "openclaw/plugin-sdk/dangerous-name-runtime";
|
|
22
23
|
import { GROUP_POLICY_BLOCKED_LABEL, resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, warnMissingProviderGroupPolicyFallbackOnce } from "openclaw/plugin-sdk/runtime-group-policy";
|
|
23
|
-
import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
|
|
24
24
|
import { createWebhookInFlightLimiter, readJsonWebhookBodyOrReject, runDetachedWebhookWork } from "openclaw/plugin-sdk/webhook-request-guards";
|
|
25
25
|
import { registerWebhookTargetWithPluginRoute, resolveWebhookTargetWithAuthOrReject, withResolvedWebhookRequestPipeline } from "openclaw/plugin-sdk/webhook-targets";
|
|
26
|
-
|
|
26
|
+
// extensions/googlechat/src/approval-terminal-card.ts
|
|
27
27
|
const GOOGLECHAT_APPROVAL_CARD_ID = "openclaw-approval";
|
|
28
28
|
function formatCanonicalOutcome(approval) {
|
|
29
29
|
switch (approval.status) {
|
|
@@ -70,8 +70,7 @@ function buildGoogleChatCanonicalApprovalTerminalCards(result) {
|
|
|
70
70
|
}
|
|
71
71
|
}];
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
//#region extensions/googlechat/src/approval-card-click.ts
|
|
73
|
+
// extensions/googlechat/src/approval-card-click.ts
|
|
75
74
|
function logIgnored(target, message) {
|
|
76
75
|
target.runtime.log?.(`[${target.account.accountId}] googlechat approval ignored: ${message}`);
|
|
77
76
|
}
|
|
@@ -138,8 +137,7 @@ async function maybeHandleGoogleChatApprovalCardClick(params) {
|
|
|
138
137
|
params.target.runtime.log?.(`[${params.target.account.accountId}] googlechat approval ${label} id=${consumed.approvalId} status=${result.approval.status} decision=${decision} sender=${actor || "unknown"}`);
|
|
139
138
|
return true;
|
|
140
139
|
}
|
|
141
|
-
|
|
142
|
-
//#region extensions/googlechat/src/monitor-access.ts
|
|
140
|
+
// extensions/googlechat/src/monitor-access.ts
|
|
143
141
|
function resolveGoogleChatGroupConfig(params) {
|
|
144
142
|
const { groupId, groupName, groups } = params;
|
|
145
143
|
const entries = groups ?? {};
|
|
@@ -390,8 +388,7 @@ async function applyGoogleChatInboundAccessPolicy(params) {
|
|
|
390
388
|
groupSystemPrompt: normalizeOptionalString(groupEntry?.systemPrompt)
|
|
391
389
|
};
|
|
392
390
|
}
|
|
393
|
-
|
|
394
|
-
//#region extensions/googlechat/src/monitor-durable.ts
|
|
391
|
+
// extensions/googlechat/src/monitor-durable.ts
|
|
395
392
|
function resolveGoogleChatDurableReplyOptions(params) {
|
|
396
393
|
if (params.infoKind !== "final" || params.hasTypingMessage) return false;
|
|
397
394
|
const threadId = params.payload.replyToId?.trim() || void 0;
|
|
@@ -405,8 +402,7 @@ function resolveGoogleChatDurableReplyOptions(params) {
|
|
|
405
402
|
threadId
|
|
406
403
|
};
|
|
407
404
|
}
|
|
408
|
-
|
|
409
|
-
//#region extensions/googlechat/src/monitor-event.ts
|
|
405
|
+
// extensions/googlechat/src/monitor-event.ts
|
|
410
406
|
var GoogleChatEventPayloadError = class extends Error {
|
|
411
407
|
constructor() {
|
|
412
408
|
super("invalid payload");
|
|
@@ -466,8 +462,7 @@ function parseGoogleChatInboundPayload(raw) {
|
|
|
466
462
|
} else if (eventType === "CARD_CLICKED" && !isRecord$1(event.user)) throw new GoogleChatEventPayloadError();
|
|
467
463
|
return event;
|
|
468
464
|
}
|
|
469
|
-
|
|
470
|
-
//#region extensions/googlechat/src/monitor-ingress.ts
|
|
465
|
+
// extensions/googlechat/src/monitor-ingress.ts
|
|
471
466
|
const GoogleChatIngressPermanentError = createChannelIngressError("GoogleChatIngressPermanentError", { withReason: true });
|
|
472
467
|
function requiredString(value, field) {
|
|
473
468
|
if (typeof value === "string" && value.trim()) return value.trim();
|
|
@@ -553,8 +548,7 @@ function createGoogleChatIngressMonitor(options) {
|
|
|
553
548
|
classifyAdmissionError: (error) => error instanceof GoogleChatIngressPermanentError ? error.message : void 0
|
|
554
549
|
});
|
|
555
550
|
}
|
|
556
|
-
|
|
557
|
-
//#region extensions/googlechat/src/monitor-reply-delivery.ts
|
|
551
|
+
// extensions/googlechat/src/monitor-reply-delivery.ts
|
|
558
552
|
function createGoogleChatTypingMessage(params) {
|
|
559
553
|
const name = params.messageName.trim();
|
|
560
554
|
const requestedThreadName = params.requestedThreadName?.trim();
|
|
@@ -596,11 +590,17 @@ async function deliverGoogleChatReply(params) {
|
|
|
596
590
|
}
|
|
597
591
|
typingMessage = void 0;
|
|
598
592
|
} else if (typingMessage?.placement === "thread") deliveryThreadName = typingMessage.deliveredThreadName;
|
|
599
|
-
|
|
593
|
+
let text = reply.text;
|
|
594
|
+
let mediaError;
|
|
595
|
+
try {
|
|
596
|
+
text = formatGoogleChatMediaText(reply.text, reply.mediaUrls);
|
|
597
|
+
} catch (error) {
|
|
598
|
+
mediaError = error;
|
|
599
|
+
}
|
|
600
600
|
const chunkLimit = account.config.textChunkLimit ?? 4e3;
|
|
601
601
|
const chunkMode = core.channel.text.resolveChunkMode(config, "googlechat", account.accountId);
|
|
602
|
-
const chunks = formatGoogleChatTextChunks(
|
|
603
|
-
const rejection =
|
|
602
|
+
const chunks = formatGoogleChatTextChunks(text, chunkLimit).flatMap((chunk) => core.channel.text.chunkMarkdownTextWithMode(chunk, chunkLimit, chunkMode));
|
|
603
|
+
const rejection = mediaError ? formatErrorMessage(mediaError) : text && !chunks.some((chunk) => chunk) ? "Google Chat reply has no visible text after formatting." : void 0;
|
|
604
604
|
if (rejection) {
|
|
605
605
|
try {
|
|
606
606
|
if (typingMessage) await deleteGoogleChatMessage({
|
|
@@ -611,7 +611,7 @@ async function deliverGoogleChatReply(params) {
|
|
|
611
611
|
runtime.error?.(`Google Chat typing cleanup failed: ${String(err)}`);
|
|
612
612
|
}
|
|
613
613
|
throw new PlatformMessageNotDispatchedError(rejection, {
|
|
614
|
-
cause:
|
|
614
|
+
cause: mediaError,
|
|
615
615
|
retryable: false
|
|
616
616
|
});
|
|
617
617
|
}
|
|
@@ -661,8 +661,7 @@ async function deliverGoogleChatReply(params) {
|
|
|
661
661
|
recordOutboundStatus();
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
|
|
665
|
-
//#region extensions/googlechat/src/monitor-reply-target.ts
|
|
664
|
+
// extensions/googlechat/src/monitor-reply-target.ts
|
|
666
665
|
/**
|
|
667
666
|
* Google Chat only accepts a thread resource (`spaces/x/threads/y`) as a reply
|
|
668
667
|
* target. The automatic reply pipeline supplies the inbound *message* resource
|
|
@@ -679,8 +678,7 @@ function normalizeGoogleChatReplyTarget(params) {
|
|
|
679
678
|
replyToId: params.replyThreadName
|
|
680
679
|
};
|
|
681
680
|
}
|
|
682
|
-
|
|
683
|
-
//#region extensions/googlechat/src/monitor-webhook.ts
|
|
681
|
+
// extensions/googlechat/src/monitor-webhook.ts
|
|
684
682
|
function extractBearerToken(header) {
|
|
685
683
|
const authHeader = Array.isArray(header) ? typeof header[0] === "string" ? header[0] : "" : typeof header === "string" ? header : "";
|
|
686
684
|
return normalizeLowercaseStringOrEmpty(authHeader).startsWith("bearer ") ? authHeader.slice(7).trim() : "";
|
|
@@ -823,8 +821,7 @@ function createGoogleChatWebhookRequestHandler(params) {
|
|
|
823
821
|
});
|
|
824
822
|
};
|
|
825
823
|
}
|
|
826
|
-
|
|
827
|
-
//#region extensions/googlechat/src/monitor-routing.ts
|
|
824
|
+
// extensions/googlechat/src/monitor-routing.ts
|
|
828
825
|
const webhookTargets = /* @__PURE__ */ new Map();
|
|
829
826
|
const webhookRateLimiter = createFixedWindowRateLimiter(WEBHOOK_RATE_LIMIT_DEFAULTS);
|
|
830
827
|
const webhookInFlightLimiter = createWebhookInFlightLimiter();
|
|
@@ -862,8 +859,7 @@ function registerGoogleChatWebhookTarget(target) {
|
|
|
862
859
|
}
|
|
863
860
|
}).unregister;
|
|
864
861
|
}
|
|
865
|
-
|
|
866
|
-
//#region extensions/googlechat/src/monitor.ts
|
|
862
|
+
// extensions/googlechat/src/monitor.ts
|
|
867
863
|
setGoogleChatWebhookEventProcessor(processGoogleChatEvent);
|
|
868
864
|
function logVerbose(core, runtime, message) {
|
|
869
865
|
if (core.logging.shouldLogVerbose()) runtime.log?.(`[googlechat] ${message}`);
|
|
@@ -1229,13 +1225,11 @@ function resolveGoogleChatWebhookPath({ webhookPath, webhookUrl }) {
|
|
|
1229
1225
|
defaultPath: "/googlechat"
|
|
1230
1226
|
});
|
|
1231
1227
|
}
|
|
1232
|
-
|
|
1233
|
-
//#region extensions/googlechat/src/channel.runtime.ts
|
|
1228
|
+
// extensions/googlechat/src/channel.runtime.ts
|
|
1234
1229
|
const googleChatChannelRuntime = {
|
|
1235
1230
|
probeGoogleChat,
|
|
1236
1231
|
sendGoogleChatMessage,
|
|
1237
1232
|
resolveGoogleChatWebhookPath,
|
|
1238
1233
|
startGoogleChatMonitor
|
|
1239
1234
|
};
|
|
1240
|
-
//#endregion
|
|
1241
1235
|
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-irdxFe5N.mjs","sha256":"b2aacb96bd96054aec173b1fa15ae55ee1deeb27bf6a85d9e131d8c78e89640e","facadeSource":"extensions/googlechat/src/actions.ts","sources":["extensions/googlechat/src/actions.ts"]},{"output":".setup/approval-auth-BjpSnjsd.mjs","sha256":"67d1a644872bd577c71db0af76a687318ca4fba708fbf0707fb876abd2235ee9","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-Da70PiU9.mjs","sha256":"8fff42d4c8c9843c4c0805653313b8bad7f8bc1934845723d60fe0facaccd9bf","facadeSource":"extensions/googlechat/src/approval-handler.runtime.ts","sources":["extensions/googlechat/src/approval-handler.runtime.ts"]},{"output":".setup/channel-base-BFV0cGQ2.mjs","sha256":"4432c9b98d4eb0a40ce7925c79a0c30e9111e59928958d6d93dc5a7b0e63b498","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-m2X2-cKA.mjs","sha256":"0001911b96f3a3c8317f448287de8f53f93039257c751370905ff872488ec609","facadeSource":null,"sources":["extensions/googlechat/src/approval-native.ts","extensions/googlechat/src/channel.ts","extensions/googlechat/src/doctor.ts","extensions/googlechat/src/gateway.ts","extensions/googlechat/src/message-tool-api.ts"]},{"output":".setup/channel.adapters-C6GxEODt.mjs","sha256":"ad5be53538307376c0c91c769a6657afd4f831d603c41ef7618835a3ecd1334a","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-Bdv90H74.mjs","sha256":"fd81be9b2b72127c2284fa157a10ee147ac18082f2cccf322940b9310bc8ec20","facadeSource":"extensions/googlechat/src/channel.runtime.ts","sources":["extensions/googlechat/src/approval-card-click.ts","extensions/googlechat/src/approval-terminal-card.ts","extensions/googlechat/src/channel.runtime.ts","extensions/googlechat/src/monitor-access.ts","extensions/googlechat/src/monitor-durable.ts","extensions/googlechat/src/monitor-event.ts","extensions/googlechat/src/monitor-ingress.ts","extensions/googlechat/src/monitor-reply-delivery.ts","extensions/googlechat/src/monitor-reply-target.ts","extensions/googlechat/src/monitor-routing.ts","extensions/googlechat/src/monitor-webhook.ts","extensions/googlechat/src/monitor.ts"]},{"output":".setup/config-api-CsD0IFxF.mjs","sha256":"134d1ecb7a42e67cb112730f0935792ac69fa8500796df1c1ef50308f70c4999","facadeSource":null,"sources":[]},{"output":".setup/doctor-contract-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-Dru1eW9z.mjs","sha256":"914efc1bd1576f3fe835b9d79fea654ac56f6d492a7a676f5bd984169c2c704b","facadeSource":"extensions/googlechat/setup-plugin-api.ts","sources":[]},{"output":"api.js","sha256":"449c5a5cbe59a713d2c9793e7ccc535b5c08c581b04cfc47cb7363b6f8766788","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":"fbe9813f9cdeafdcf7db1bc9ba28cea8f27aa3a5148104588abf3ffdcb4fb8aa","facadeSource":"extensions/googlechat/channel-plugin-api.ts","sources":[]},{"output":"directory-contract-api.js","sha256":"880443743ea3315fb93a1fc2ca121874ab1ffd81bf697f9e42befca74683b879","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":"f0bf84ccc2abc89c4b391769fa21aafb6a92e6d873d3a2c7803cb891698e9163","facadeSource":"extensions/googlechat/setup-entry.ts","sources":["extensions/googlechat/setup-entry.ts"]},{"output":"setup-plugin-api.js","sha256":"0edcff1c63d66ce8e2434d706b33b071a8d06be4b06104e1ee4e05feec9849b5","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","extensions/googlechat/src/channel.setup.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-BFV0cGQ2.mjs";
|
|
2
|
+
import { t as googlechatPlugin } from "./.setup/channel-m2X2-cKA.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-m2X2-cKA.mjs";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters
|
|
2
|
-
|
|
1
|
+
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-C6GxEODt.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-Dru1eW9z.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-BFV0cGQ2.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.11.1",
|
|
4
4
|
"description": "OpenClaw Google Chat channel plugin for spaces and direct messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"zod": "4.6.5"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.
|
|
15
|
+
"openclaw": ">=2026.11.1"
|
|
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.
|
|
138
|
+
"pluginApi": ">=2026.11.1"
|
|
139
139
|
},
|
|
140
140
|
"build": {
|
|
141
|
-
"openclawVersion": "2026.
|
|
141
|
+
"openclawVersion": "2026.11.1"
|
|
142
142
|
},
|
|
143
143
|
"release": {
|
|
144
144
|
"publishToClawHub": true,
|