@openclaw/googlechat 2026.11.5-beta.4 → 2026.11.10-beta.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-UltP4TmA.mjs → actions-pJGgifx7.mjs} +3 -4
- package/dist/.setup/{approval-auth-C-AJm9xZ.mjs → approval-auth-D9zfF3h2.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-CAAqFUY3.mjs} +5 -6
- package/dist/.setup/{channel-DHpMDrjU.mjs → channel-7JGVps7z.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-DgukOgEJ.mjs} +22 -29
- package/dist/.setup/{channel.runtime-I9jyPEzh.mjs → channel.runtime-B_9ty5Gl.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/node_modules/google-auth-library/build/src/auth/authclient.js +6 -6
- package/node_modules/google-auth-library/build/src/auth/authclient.js.map +1 -1
- package/node_modules/google-auth-library/build/src/auth/externalclient.js +4 -0
- package/node_modules/google-auth-library/build/src/auth/externalclient.js.map +1 -1
- package/node_modules/google-auth-library/build/src/auth/googleauth.js +34 -13
- package/node_modules/google-auth-library/build/src/auth/googleauth.js.map +1 -1
- package/node_modules/google-auth-library/build/src/auth/impersonated.js +3 -0
- package/node_modules/google-auth-library/build/src/auth/impersonated.js.map +1 -1
- package/node_modules/google-auth-library/build/src/util.js +46 -0
- package/node_modules/google-auth-library/build/src/util.js.map +1 -1
- package/node_modules/google-auth-library/package.json +6 -6
- package/package.json +5 -5
- 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-DgukOgEJ.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-DgukOgEJ.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-CAAqFUY3.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-DgukOgEJ.mjs";
|
|
3
|
+
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-7JGVps7z.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-DgukOgEJ.mjs";
|
|
5
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-D9zfF3h2.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-CAAqFUY3.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-pJGgifx7.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-B_9ty5Gl.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: {
|
|
@@ -743,6 +738,9 @@ function formatGoogleChatMediaText(text, mediaUrls) {
|
|
|
743
738
|
if (remoteUrls.length !== mediaUrls.length) throw new Error("Google Chat outbound attachments require remote HTTP(S) URLs.");
|
|
744
739
|
return [text, formatTextWithAttachmentLinks(void 0, remoteUrls)].filter(Boolean).join("\n\n");
|
|
745
740
|
}
|
|
741
|
+
function isSelfLabeledLink(label, href) {
|
|
742
|
+
return label === href || `mailto:${label}` === href;
|
|
743
|
+
}
|
|
746
744
|
/** Renders CommonMark into byte-bounded Google Chat app-message chunks. */
|
|
747
745
|
function formatGoogleChatTextChunks(text, limit = GOOGLE_CHAT_FORMAT_PROFILE.chunk.limit) {
|
|
748
746
|
const sanitized = sanitizeGoogleChatText(text);
|
|
@@ -780,9 +778,7 @@ function formatGoogleChatTextChunks(text, limit = GOOGLE_CHAT_FORMAT_PROFILE.chu
|
|
|
780
778
|
const characters = ir.links.length > 0 ? ir.text.split("") : [];
|
|
781
779
|
let changed = false;
|
|
782
780
|
for (const link of ir.links) {
|
|
783
|
-
|
|
784
|
-
const comparableHref = link.href.startsWith("mailto:") ? link.href.slice(7) : link.href;
|
|
785
|
-
if (label === link.href || label === comparableHref) continue;
|
|
781
|
+
if (isSelfLabeledLink(ir.text.slice(link.start, link.end), link.href)) continue;
|
|
786
782
|
for (let index = link.start; index < link.end; index += 1) {
|
|
787
783
|
const character = characters[index] ?? "";
|
|
788
784
|
const fallback = GOOGLE_CHAT_LITERAL_FALLBACKS.get(character);
|
|
@@ -917,17 +913,18 @@ function formatGoogleChatTextChunks(text, limit = GOOGLE_CHAT_FORMAT_PROFILE.chu
|
|
|
917
913
|
const label = value.slice(link.start, link.end);
|
|
918
914
|
if (!href || !label) return null;
|
|
919
915
|
const labelHasStyles = chunkIr.styles.some((span) => span.start < link.end && span.end > link.start);
|
|
920
|
-
|
|
921
|
-
start: link.end,
|
|
922
|
-
end: link.end,
|
|
923
|
-
open: "",
|
|
924
|
-
close: ` (${href})`
|
|
925
|
-
} : {
|
|
916
|
+
if (!/[<>|]/u.test(href) && !/[<>|*_~`]/u.test(label) && !labelHasStyles) return {
|
|
926
917
|
start: link.start,
|
|
927
918
|
end: link.end,
|
|
928
919
|
open: `<${href}|`,
|
|
929
920
|
close: ">"
|
|
930
921
|
};
|
|
922
|
+
return isSelfLabeledLink(label, href) ? null : {
|
|
923
|
+
start: link.end,
|
|
924
|
+
end: link.end,
|
|
925
|
+
open: "",
|
|
926
|
+
close: ` (${href})`
|
|
927
|
+
};
|
|
931
928
|
}
|
|
932
929
|
}, GOOGLE_CHAT_FORMAT_PROFILE);
|
|
933
930
|
let depth = 0;
|
|
@@ -961,8 +958,7 @@ function formatGoogleChatTextChunks(text, limit = GOOGLE_CHAT_FORMAT_PROFILE.chu
|
|
|
961
958
|
}
|
|
962
959
|
}).map((chunk) => chunk.rendered);
|
|
963
960
|
}
|
|
964
|
-
|
|
965
|
-
//#region extensions/googlechat/src/group-policy.ts
|
|
961
|
+
// extensions/googlechat/src/group-policy.ts
|
|
966
962
|
function buildGoogleChatGroupPolicyScope(params) {
|
|
967
963
|
const matchKey = params.groupId && Object.hasOwn(params.tree.scopes, params.groupId) ? params.groupId : void 0;
|
|
968
964
|
return {
|
|
@@ -977,8 +973,7 @@ function resolveGoogleChatGroupRequireMention(params) {
|
|
|
977
973
|
groupId: params.groupId
|
|
978
974
|
}));
|
|
979
975
|
}
|
|
980
|
-
|
|
981
|
-
//#region extensions/googlechat/src/ingress-identity.ts
|
|
976
|
+
// extensions/googlechat/src/ingress-identity.ts
|
|
982
977
|
function normalizeGoogleChatUserId(raw) {
|
|
983
978
|
const trimmed = normalizeOptionalString(raw) ?? "";
|
|
984
979
|
return normalizeLowercaseStringOrEmpty(trimmed.replace(/^users\//i, ""));
|
|
@@ -1006,9 +1001,8 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
|
|
|
1006
1001
|
isWildcardEntry: (entry) => normalizeLowercaseStringOrEmpty(entry) === "*",
|
|
1007
1002
|
resolveEntryId: ({ entryIndex, fieldKey }) => fieldKey === "stableId" ? `entry-${entryIndex + 1}:user` : `entry-${entryIndex + 1}:${fieldKey}`
|
|
1008
1003
|
});
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-I9jyPEzh.mjs"), "googleChatChannelRuntime");
|
|
1004
|
+
// extensions/googlechat/src/channel.adapters.ts
|
|
1005
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-B_9ty5Gl.mjs"), "googleChatChannelRuntime");
|
|
1012
1006
|
const collectGoogleChatGroupPolicyWarnings = createAllowlistProviderOpenWarningCollector({
|
|
1013
1007
|
providerConfigPresent: (cfg) => cfg.channels?.googlechat !== void 0,
|
|
1014
1008
|
resolveGroupPolicy: (account) => account.config.groupPolicy,
|
|
@@ -1172,5 +1166,4 @@ const googlechatMessageAdapter = defineChannelMessageAdapter({
|
|
|
1172
1166
|
} },
|
|
1173
1167
|
send: { text: googlechatOutboundAdapter.attachedResults.sendText }
|
|
1174
1168
|
});
|
|
1175
|
-
//#endregion
|
|
1176
1169
|
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-DgukOgEJ.mjs";
|
|
2
|
+
import { n as googleChatApprovalAuth } from "./approval-auth-D9zfF3h2.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-pJGgifx7.mjs","sha256":"82b275143f2d1f54e5b4e22c0d4d9e1feb28fce8c3fbd111dc151b4fa1ffec5e","facadeSource":"extensions/googlechat/src/actions.ts","sources":["extensions/googlechat/src/actions.ts"]},{"output":".setup/approval-auth-D9zfF3h2.mjs","sha256":"510b47754c2fdc05d5c72ec777085f29d691aad17be4c4730723ba8f37fe6db0","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-CAAqFUY3.mjs","sha256":"5f1c0ce2b8b3f4ad3feafb00a5f112409a98a46a8b0c09eeeefb953e85f5b1bd","facadeSource":"extensions/googlechat/src/approval-handler.runtime.ts","sources":["extensions/googlechat/src/approval-handler.runtime.ts"]},{"output":".setup/channel-7JGVps7z.mjs","sha256":"246cfccb98834ac0beefd5fc80839a76901f3cb4cbf85d61f7e0d603b2abcedd","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-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.adapters-DgukOgEJ.mjs","sha256":"57defa351a47e342a240967207ed866889338af479ea1bce9d11c26db305d399","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-B_9ty5Gl.mjs","sha256":"7ad42346761f2e084c62964d1fed6e56a0322bc4390b9699d54a67c4fcbeb0ef","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":"da0f46d23c0bc24e429d781b73960ce4655cbf16f4df50964bbd15913a1f92f5","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":"b417ddec171939e223d67395f99ebdd0885f35b63158c71d29a72fd7b7852434","facadeSource":"extensions/googlechat/channel-plugin-api.ts","sources":[]},{"output":"directory-contract-api.js","sha256":"50c5b314e898888ef8f3cfcbba3d24f2ecd102098f4025e7054a5d1749d1f332","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-7JGVps7z.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-7JGVps7z.mjs";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-
|
|
2
|
-
|
|
1
|
+
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-DgukOgEJ.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 };
|