@openclaw/googlechat 2026.8.1 → 2026.8.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{actions-Bsv9COyy.js → .setup/actions-CnsW76xm.mjs} +10 -9
- package/dist/{approval-auth-DnqxUj0j.js → .setup/approval-auth-CjHhfBEJ.mjs} +2 -2
- package/dist/{approval-handler.runtime-5Yr5TCX6.js → .setup/approval-handler.runtime-B_SV-U0a.mjs} +3 -3
- package/dist/{channel-DAC3b287.js → .setup/channel-7n76_HdW.mjs} +42 -37
- package/dist/{channel-base-BpHXDsur.js → .setup/channel-base-B3EzcV7X.mjs} +35 -23
- package/dist/{channel.adapters-C2dHazJR.js → .setup/channel.adapters-BmXpUQo9.mjs} +16 -14
- package/dist/{channel.runtime-DqiduEYL.js → .setup/channel.runtime-IC-dNFiT.mjs} +11 -10
- package/dist/{runtime-api-Dh0CNVS4.js → .setup/runtime-api-Cc5ZuXih.mjs} +1 -1
- package/dist/.setup/secret-contract-api-DHLd5XO3.mjs +3 -0
- package/dist/.setup/setup-plugin-api-C0zTOlHy.mjs +5 -0
- package/dist/.setup/setup-plugin-api-DWL3ZytB.mjs +2 -0
- package/dist/api.js +2 -2
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/runtime-api.js +2 -2
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-entry.js +3 -2
- package/dist/setup-plugin-api.js +1 -4
- package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/index.js +59 -40
- package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/index.js.map +1 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/package.json +20 -23
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.d.ts +1 -29
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.js +13 -13
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.js.map +1 -1
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.d.ts +1 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.js +1 -1
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.js.map +1 -1
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.d.ts +2 -135
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.js +35 -58
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -1
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js +8 -8
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js.map +1 -1
- package/node_modules/google-auth-library/node_modules/google-logging-utils/package.json +16 -14
- package/node_modules/google-auth-library/package.json +7 -7
- package/package.json +5 -5
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/LICENSE +0 -202
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/README.md +0 -73
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js +0 -81
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.d.ts +0 -2
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js +0 -31
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.d.ts +0 -89
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js +0 -414
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.d.ts +0 -45
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js +0 -68
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/package.json +0 -47
- /package/dist/{config-api-CsD0IFxF.js → .setup/config-api-CsD0IFxF.mjs} +0 -0
- /package/dist/{doctor-contract-BLvSmTXT.js → .setup/doctor-contract-BLvSmTXT.mjs} +0 -0
- /package/dist/{secret-contract-DmWM0kwM.js → .setup/secret-contract-DmWM0kwM.mjs} +0 -0
- /package/node_modules/google-auth-library/node_modules/{gcp-metadata/node_modules/google-logging-utils → google-logging-utils}/build/src/types.d.ts +0 -0
- /package/node_modules/google-auth-library/node_modules/{gcp-metadata/node_modules/google-logging-utils → google-logging-utils}/build/src/types.js +0 -0
- /package/node_modules/google-auth-library/node_modules/{gcp-metadata/node_modules/google-logging-utils → google-logging-utils}/build/src/types.js.map +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-
|
|
3
|
-
import { n as describeGoogleChatMessageTool } from "./channel-
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.mjs";
|
|
2
|
+
import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-BmXpUQo9.mjs";
|
|
3
|
+
import { n as describeGoogleChatMessageTool } from "./channel-7n76_HdW.mjs";
|
|
4
4
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
5
5
|
import { jsonResult, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
|
|
6
6
|
//#region extensions/googlechat/src/actions.ts
|
|
@@ -50,15 +50,16 @@ const googlechatMessageActions = {
|
|
|
50
50
|
account,
|
|
51
51
|
target: to
|
|
52
52
|
});
|
|
53
|
+
const sent = await sendGoogleChatMessage({
|
|
54
|
+
account,
|
|
55
|
+
space,
|
|
56
|
+
text: content,
|
|
57
|
+
thread: threadId ?? void 0
|
|
58
|
+
});
|
|
53
59
|
return jsonResult({
|
|
54
60
|
ok: true,
|
|
55
61
|
to: space,
|
|
56
|
-
...
|
|
57
|
-
account,
|
|
58
|
-
space,
|
|
59
|
-
text: content,
|
|
60
|
-
thread: threadId ?? void 0
|
|
61
|
-
})
|
|
62
|
+
...sent
|
|
62
63
|
});
|
|
63
64
|
}
|
|
64
65
|
throw new Error(`Action ${action} is not supported for provider ${providerId}.`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.mjs";
|
|
2
|
+
import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-BmXpUQo9.mjs";
|
|
3
3
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { createChannelApprovalAuth } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
5
5
|
//#region extensions/googlechat/src/approval-auth.ts
|
package/dist/{approval-handler.runtime-5Yr5TCX6.js → .setup/approval-handler.runtime-B_SV-U0a.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import { F as unregisterGoogleChatManualApprovalFollowupSuppression, M as registerGoogleChatManualApprovalFollowupSuppression, O as createGoogleChatApprovalToken, P as unregisterGoogleChatApprovalCardBindings, S as updateGoogleChatMessage, T as buildGoogleChatApprovalActionParameters, g as resolveGoogleChatOutboundSpace, j as registerGoogleChatApprovalCardBinding, w as GOOGLECHAT_APPROVAL_ACTION, x as sendGoogleChatMessage } from "./channel.adapters-
|
|
3
|
-
import { i as shouldHandleGoogleChatNativeApprovalRequest, r as isGoogleChatNativeApprovalClientEnabled } from "./channel-
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.mjs";
|
|
2
|
+
import { F as unregisterGoogleChatManualApprovalFollowupSuppression, M as registerGoogleChatManualApprovalFollowupSuppression, O as createGoogleChatApprovalToken, P as unregisterGoogleChatApprovalCardBindings, S as updateGoogleChatMessage, T as buildGoogleChatApprovalActionParameters, g as resolveGoogleChatOutboundSpace, j as registerGoogleChatApprovalCardBinding, w as GOOGLECHAT_APPROVAL_ACTION, x as sendGoogleChatMessage } from "./channel.adapters-BmXpUQo9.mjs";
|
|
3
|
+
import { i as shouldHandleGoogleChatNativeApprovalRequest, r as isGoogleChatNativeApprovalClientEnabled } from "./channel-7n76_HdW.mjs";
|
|
4
4
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
5
5
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, o as inspectGoogleChatAccount, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-
|
|
2
|
-
import { a as googlechatPairingTextAdapter, f as isGoogleChatSpaceTarget, h as resolveGoogleChatOutboundSessionRoute, i as googlechatOutboundAdapter, m as normalizeGoogleChatTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as isGoogleChatUserTarget, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters-
|
|
3
|
-
import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.
|
|
4
|
-
import { t as DEFAULT_ACCOUNT_ID } from "./runtime-api-
|
|
5
|
-
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-
|
|
6
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BLvSmTXT.
|
|
7
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DmWM0kwM.
|
|
1
|
+
import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, o as inspectGoogleChatAccount, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-B3EzcV7X.mjs";
|
|
2
|
+
import { a as googlechatPairingTextAdapter, f as isGoogleChatSpaceTarget, h as resolveGoogleChatOutboundSessionRoute, i as googlechatOutboundAdapter, m as normalizeGoogleChatTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as isGoogleChatUserTarget, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters-BmXpUQo9.mjs";
|
|
3
|
+
import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.mjs";
|
|
4
|
+
import { t as DEFAULT_ACCOUNT_ID } from "./runtime-api-Cc5ZuXih.mjs";
|
|
5
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-CjHhfBEJ.mjs";
|
|
6
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BLvSmTXT.mjs";
|
|
7
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DmWM0kwM.mjs";
|
|
8
8
|
import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
9
9
|
import { buildPassiveProbedChannelStatusSummary } from "openclaw/plugin-sdk/extension-shared";
|
|
10
10
|
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
@@ -83,6 +83,23 @@ function shouldSuppressLocalGoogleChatExecApprovalPrompt(params) {
|
|
|
83
83
|
isNativeDeliveryEnabled: isGoogleChatNativeApprovalClientEnabled
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
+
const resolveGoogleChatOriginTarget = createChannelNativeOriginTargetResolver({
|
|
87
|
+
channel: "googlechat",
|
|
88
|
+
shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
|
|
89
|
+
resolveTurnSourceTarget: resolveTurnSourceGoogleChatOriginTarget,
|
|
90
|
+
resolveSessionTarget: resolveSessionGoogleChatOriginTarget
|
|
91
|
+
});
|
|
92
|
+
const resolveGoogleChatApproverDmTargets = createChannelApproverDmTargetResolver({
|
|
93
|
+
shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
|
|
94
|
+
resolveApprovers: getGoogleChatApprovalApprovers,
|
|
95
|
+
mapApprover: (approver, params) => {
|
|
96
|
+
const to = normalizeGoogleChatApproverId(approver);
|
|
97
|
+
return to ? {
|
|
98
|
+
to,
|
|
99
|
+
accountId: normalizeOptionalString(params.accountId)
|
|
100
|
+
} : null;
|
|
101
|
+
}
|
|
102
|
+
});
|
|
86
103
|
const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapability({
|
|
87
104
|
channel: "googlechat",
|
|
88
105
|
channelLabel: "Google Chat",
|
|
@@ -113,23 +130,8 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
|
|
|
113
130
|
resolveNativeDeliveryMode: () => "channel",
|
|
114
131
|
requireMatchingTurnSourceChannel: true,
|
|
115
132
|
resolveSuppressionAccountId: ({ target, request }) => normalizeOptionalString(target.accountId) ?? normalizeOptionalString(request.request.turnSourceAccountId),
|
|
116
|
-
resolveOriginTarget:
|
|
117
|
-
|
|
118
|
-
shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
|
|
119
|
-
resolveTurnSourceTarget: resolveTurnSourceGoogleChatOriginTarget,
|
|
120
|
-
resolveSessionTarget: resolveSessionGoogleChatOriginTarget
|
|
121
|
-
}),
|
|
122
|
-
resolveApproverDmTargets: createChannelApproverDmTargetResolver({
|
|
123
|
-
shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
|
|
124
|
-
resolveApprovers: getGoogleChatApprovalApprovers,
|
|
125
|
-
mapApprover: (approver, params) => {
|
|
126
|
-
const to = normalizeGoogleChatApproverId(approver);
|
|
127
|
-
return to ? {
|
|
128
|
-
to,
|
|
129
|
-
accountId: normalizeOptionalString(params.accountId)
|
|
130
|
-
} : null;
|
|
131
|
-
}
|
|
132
|
-
}),
|
|
133
|
+
resolveOriginTarget: resolveGoogleChatOriginTarget,
|
|
134
|
+
resolveApproverDmTargets: resolveGoogleChatApproverDmTargets,
|
|
133
135
|
nativeRuntime: createLazyChannelApprovalNativeRuntimeAdapter({
|
|
134
136
|
eventKinds: ["exec", "plugin"],
|
|
135
137
|
isConfigured: ({ cfg, accountId }) => isGoogleChatNativeApprovalClientEnabled({
|
|
@@ -142,20 +144,23 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
|
|
|
142
144
|
approvalKind,
|
|
143
145
|
request
|
|
144
146
|
}),
|
|
145
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
147
|
+
load: async () => (await import("./approval-handler.runtime-B_SV-U0a.mjs")).googleChatApprovalNativeRuntime
|
|
146
148
|
})
|
|
147
149
|
});
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region extensions/googlechat/src/doctor.ts
|
|
152
|
+
const isGoogleChatMutableAllowEntry = buildMutableAllowEntryDetector({
|
|
153
|
+
prefixes: [
|
|
154
|
+
"googlechat:",
|
|
155
|
+
"google-chat:",
|
|
156
|
+
"gchat:",
|
|
157
|
+
"users/"
|
|
158
|
+
],
|
|
159
|
+
stableIdPattern: /^[^@]+$/
|
|
160
|
+
});
|
|
148
161
|
const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMutableAllowlistWarningCollector({
|
|
149
162
|
channel: "googlechat",
|
|
150
|
-
detector:
|
|
151
|
-
prefixes: [
|
|
152
|
-
"googlechat:",
|
|
153
|
-
"google-chat:",
|
|
154
|
-
"gchat:",
|
|
155
|
-
"users/"
|
|
156
|
-
],
|
|
157
|
-
stableIdPattern: /^[^@]+$/
|
|
158
|
-
}),
|
|
163
|
+
detector: isGoogleChatMutableAllowEntry,
|
|
159
164
|
collectLists: (scope) => collectStandardAllowlistLists(scope, {
|
|
160
165
|
includeGroups: true,
|
|
161
166
|
groupField: "users"
|
|
@@ -163,7 +168,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
|
|
|
163
168
|
});
|
|
164
169
|
//#endregion
|
|
165
170
|
//#region extensions/googlechat/src/gateway.ts
|
|
166
|
-
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
171
|
+
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-IC-dNFiT.mjs"), "googleChatChannelRuntime");
|
|
167
172
|
const UNRESOLVED_WEBHOOK_URL_ERROR = "Invalid webhookUrl: expected an absolute URL such as https://chat.example.com/googlechat. No inbound webhook route was registered.";
|
|
168
173
|
async function startGoogleChatGatewayAccount(ctx) {
|
|
169
174
|
const account = ctx.account;
|
|
@@ -241,13 +246,13 @@ function describeGoogleChatMessageTool({ cfg, accountId }) {
|
|
|
241
246
|
}
|
|
242
247
|
//#endregion
|
|
243
248
|
//#region extensions/googlechat/src/channel.ts
|
|
244
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
249
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-IC-dNFiT.mjs"), "googleChatChannelRuntime");
|
|
245
250
|
const googlechatActions = {
|
|
246
251
|
describeMessageTool: describeGoogleChatMessageTool,
|
|
247
252
|
supportsAction: ({ action }) => action === "send",
|
|
248
253
|
extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
|
|
249
254
|
handleAction: async (ctx) => {
|
|
250
|
-
const { googlechatMessageActions } = await import("./actions-
|
|
255
|
+
const { googlechatMessageActions } = await import("./actions-CnsW76xm.mjs");
|
|
251
256
|
if (!googlechatMessageActions.handleAction) throw new Error("Google Chat actions are not available.");
|
|
252
257
|
return await googlechatMessageActions.handleAction(ctx);
|
|
253
258
|
}
|
|
@@ -14,7 +14,7 @@ import { createPatchedAccountSetupAdapter, createSetupInputPresenceValidator } f
|
|
|
14
14
|
import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
|
|
15
15
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, applySetupAccountConfigPatch, createPromptParsedAllowFromForAccount, createSetupTranslator, createStandardChannelSetupStatus, formatDocsLink, mergeAllowFromEntries, migrateBaseNameToDefaultAccount, splitSetupEntries } from "openclaw/plugin-sdk/setup";
|
|
16
16
|
//#region extensions/googlechat/src/google-auth-limits.ts
|
|
17
|
-
const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES =
|
|
17
|
+
const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES = 65536;
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region extensions/googlechat/src/accounts.ts
|
|
20
20
|
const ENV_SERVICE_ACCOUNT$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT";
|
|
@@ -76,7 +76,8 @@ function resolveCredentialsFromConfig(params) {
|
|
|
76
76
|
};
|
|
77
77
|
const file = normalizeOptionalString(account.serviceAccountFile);
|
|
78
78
|
if (file) {
|
|
79
|
-
const
|
|
79
|
+
const resolvedFile = resolveUserPath(file);
|
|
80
|
+
const result = tryReadSecretFileSync(resolvedFile, "Google Chat service account file", {
|
|
80
81
|
maxBytes: MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES,
|
|
81
82
|
rejectHardlinks: false,
|
|
82
83
|
rejectSymlink: false
|
|
@@ -102,7 +103,8 @@ function resolveCredentialsFromConfig(params) {
|
|
|
102
103
|
};
|
|
103
104
|
const envFile = normalizeOptionalString(process.env[ENV_SERVICE_ACCOUNT_FILE$1]);
|
|
104
105
|
if (envFile) {
|
|
105
|
-
const
|
|
106
|
+
const resolvedEnvFile = resolveUserPath(envFile);
|
|
107
|
+
const result = tryReadSecretFileSync(resolvedEnvFile, "Google Chat service account file", {
|
|
106
108
|
maxBytes: MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES,
|
|
107
109
|
rejectHardlinks: false,
|
|
108
110
|
rejectSymlink: false
|
|
@@ -155,10 +157,22 @@ function resolveGoogleChatAccount(params) {
|
|
|
155
157
|
});
|
|
156
158
|
}
|
|
157
159
|
function inspectGoogleChatAccount(params) {
|
|
158
|
-
|
|
160
|
+
const account = resolveGoogleChatAccountWithMode({
|
|
159
161
|
...params,
|
|
160
162
|
mode: "inspect"
|
|
161
163
|
});
|
|
164
|
+
return {
|
|
165
|
+
...account,
|
|
166
|
+
configured: isGoogleChatAccountConfigured(account),
|
|
167
|
+
audienceType: account.config.audienceType,
|
|
168
|
+
audience: account.config.audience,
|
|
169
|
+
webhookPath: account.config.webhookPath,
|
|
170
|
+
webhookUrl: account.config.webhookUrl,
|
|
171
|
+
dmPolicy: account.config.dmPolicy ?? "pairing"
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
function isGoogleChatAccountConfigured(account) {
|
|
175
|
+
return account.tokenStatus ? account.tokenStatus !== "missing" : account.credentialSource !== "none";
|
|
162
176
|
}
|
|
163
177
|
const googlechatSetupAdapter = createPatchedAccountSetupAdapter({
|
|
164
178
|
channelKey: "googlechat",
|
|
@@ -252,6 +266,22 @@ const ENV_SERVICE_ACCOUNT = "GOOGLE_CHAT_SERVICE_ACCOUNT";
|
|
|
252
266
|
const ENV_SERVICE_ACCOUNT_FILE = "GOOGLE_CHAT_SERVICE_ACCOUNT_FILE";
|
|
253
267
|
const USE_ENV_FLAG = "__googlechatUseEnv";
|
|
254
268
|
const AUTH_METHOD_FLAG = "__googlechatAuthMethod";
|
|
269
|
+
const promptAllowFrom = createPromptParsedAllowFromForAccount({
|
|
270
|
+
defaultAccountId: resolveDefaultGoogleChatAccountId,
|
|
271
|
+
message: t("wizard.googlechat.allowFromPrompt"),
|
|
272
|
+
placeholder: "users/123456789, name@example.com",
|
|
273
|
+
parseEntries: (raw) => ({ entries: mergeAllowFromEntries(void 0, splitSetupEntries(raw)) }),
|
|
274
|
+
getExistingAllowFrom: ({ cfg, accountId }) => resolveGoogleChatAccount({
|
|
275
|
+
cfg,
|
|
276
|
+
accountId
|
|
277
|
+
}).config.allowFrom ?? [],
|
|
278
|
+
applyAllowFrom: ({ cfg, accountId, allowFrom }) => applySetupAccountConfigPatch({
|
|
279
|
+
cfg,
|
|
280
|
+
channelKey: channel,
|
|
281
|
+
accountId,
|
|
282
|
+
patch: { allowFrom }
|
|
283
|
+
})
|
|
284
|
+
});
|
|
255
285
|
const googlechatDmPolicy = createChannelDmPolicy({
|
|
256
286
|
label: "Google Chat",
|
|
257
287
|
channel,
|
|
@@ -265,22 +295,7 @@ const googlechatDmPolicy = createChannelDmPolicy({
|
|
|
265
295
|
accountId: account.accountId,
|
|
266
296
|
patch
|
|
267
297
|
}),
|
|
268
|
-
promptAllowFrom
|
|
269
|
-
defaultAccountId: resolveDefaultGoogleChatAccountId,
|
|
270
|
-
message: t("wizard.googlechat.allowFromPrompt"),
|
|
271
|
-
placeholder: "users/123456789, name@example.com",
|
|
272
|
-
parseEntries: (raw) => ({ entries: mergeAllowFromEntries(void 0, splitSetupEntries(raw)) }),
|
|
273
|
-
getExistingAllowFrom: ({ cfg, accountId }) => resolveGoogleChatAccount({
|
|
274
|
-
cfg,
|
|
275
|
-
accountId
|
|
276
|
-
}).config.allowFrom ?? [],
|
|
277
|
-
applyAllowFrom: ({ cfg, accountId, allowFrom }) => applySetupAccountConfigPatch({
|
|
278
|
-
cfg,
|
|
279
|
-
channelKey: channel,
|
|
280
|
-
accountId,
|
|
281
|
-
patch: { allowFrom }
|
|
282
|
-
})
|
|
283
|
-
})
|
|
298
|
+
promptAllowFrom
|
|
284
299
|
});
|
|
285
300
|
function createServiceAccountTextInput(params) {
|
|
286
301
|
return {
|
|
@@ -447,9 +462,6 @@ const googleChatConfigAdapter = createScopedChannelConfigAdapter({
|
|
|
447
462
|
}),
|
|
448
463
|
resolveDefaultTo: (account) => account.config.defaultTo
|
|
449
464
|
});
|
|
450
|
-
function isGoogleChatAccountConfigured(account) {
|
|
451
|
-
return account.tokenStatus ? account.tokenStatus !== "missing" : account.credentialSource !== "none";
|
|
452
|
-
}
|
|
453
465
|
function createGoogleChatPluginBase(params = {}) {
|
|
454
466
|
return {
|
|
455
467
|
id: GOOGLECHAT_CHANNEL_ID,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount, r as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-
|
|
2
|
-
import { d as fetchWithSsrFGuard$1, m as missingTargetError, r as PAIRING_APPROVED_MESSAGE } from "./runtime-api-
|
|
1
|
+
import { l as resolveGoogleChatAccount, r as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-B3EzcV7X.mjs";
|
|
2
|
+
import { d as fetchWithSsrFGuard$1, m as missingTargetError, r as PAIRING_APPROVED_MESSAGE } from "./runtime-api-Cc5ZuXih.mjs";
|
|
3
3
|
import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/channel-core";
|
|
4
4
|
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
5
5
|
import { asNullableObjectRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -176,7 +176,7 @@ const GOOGLE_AUTH_PROVIDER_CERTS_URL = "https://www.googleapis.com/oauth2/v1/cer
|
|
|
176
176
|
const GOOGLE_AUTH_TOKEN_URI = "https://oauth2.googleapis.com/token";
|
|
177
177
|
const GOOGLE_AUTH_UNIVERSE_DOMAIN = "googleapis.com";
|
|
178
178
|
const GOOGLE_CLIENT_CERTS_URL_PREFIX = "https://www.googleapis.com/robot/v1/metadata/x509/";
|
|
179
|
-
const MAX_GOOGLE_AUTH_RESPONSE_BYTES =
|
|
179
|
+
const MAX_GOOGLE_AUTH_RESPONSE_BYTES = 1048576;
|
|
180
180
|
let googleAuthRuntimePromise = null;
|
|
181
181
|
function normalizeGoogleAuthPreparedRequestHeaders(config) {
|
|
182
182
|
if (!(config.headers instanceof Headers)) config.headers = new Headers(config.headers);
|
|
@@ -525,7 +525,7 @@ async function getGoogleChatAccessToken(account) {
|
|
|
525
525
|
}
|
|
526
526
|
async function fetchChatCerts() {
|
|
527
527
|
const now = Date.now();
|
|
528
|
-
if (cachedCerts && now - cachedCerts.fetchedAt <
|
|
528
|
+
if (cachedCerts && now - cachedCerts.fetchedAt < 6e5) return cachedCerts.certs;
|
|
529
529
|
const { response, release } = await fetchWithSsrFGuard$1({
|
|
530
530
|
url: CHAT_CERTS_URL,
|
|
531
531
|
auditContext: "googlechat.auth.certs",
|
|
@@ -608,12 +608,12 @@ async function verifyGoogleChatRequest(params) {
|
|
|
608
608
|
const CHAT_API_BASE = "https://chat.googleapis.com/v1";
|
|
609
609
|
const GOOGLECHAT_API_TIMEOUT_MS = 3e4;
|
|
610
610
|
const GOOGLECHAT_MEDIA_TIMEOUT_GRACE_MS = 3e4;
|
|
611
|
-
const GOOGLECHAT_MEDIA_MIN_BYTES_PER_SECOND =
|
|
612
|
-
const GOOGLECHAT_MEDIA_MAX_TIMEOUT_MS =
|
|
611
|
+
const GOOGLECHAT_MEDIA_MIN_BYTES_PER_SECOND = 262144;
|
|
612
|
+
const GOOGLECHAT_MEDIA_MAX_TIMEOUT_MS = 9e5;
|
|
613
613
|
const GOOGLECHAT_RESPONSE_READ_IDLE_TIMEOUT_MS = 3e4;
|
|
614
|
-
const GOOGLECHAT_JSON_RESPONSE_MAX_BYTES =
|
|
615
|
-
const GOOGLECHAT_ERROR_BODY_MAX_BYTES =
|
|
616
|
-
const GOOGLE_CHAT_MEDIA_RESPONSE_MAX_BYTES =
|
|
614
|
+
const GOOGLECHAT_JSON_RESPONSE_MAX_BYTES = 16777216;
|
|
615
|
+
const GOOGLECHAT_ERROR_BODY_MAX_BYTES = 16384;
|
|
616
|
+
const GOOGLE_CHAT_MEDIA_RESPONSE_MAX_BYTES = 20971520;
|
|
617
617
|
var GoogleChatApiError = class extends Error {
|
|
618
618
|
constructor(status, message) {
|
|
619
619
|
super(message);
|
|
@@ -634,12 +634,13 @@ async function readGoogleChatJsonResponse(response, label) {
|
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
async function readGoogleChatErrorResponse(response, label) {
|
|
637
|
-
|
|
637
|
+
const text = await readResponseTextSnippet(response, {
|
|
638
638
|
maxBytes: GOOGLECHAT_ERROR_BODY_MAX_BYTES,
|
|
639
639
|
maxChars: GOOGLECHAT_ERROR_BODY_MAX_BYTES,
|
|
640
640
|
chunkTimeoutMs: GOOGLECHAT_RESPONSE_READ_IDLE_TIMEOUT_MS,
|
|
641
641
|
onIdleTimeout: ({ chunkTimeoutMs }) => /* @__PURE__ */ new Error(`${label} error response stalled after ${chunkTimeoutMs}ms`)
|
|
642
|
-
}) ?? ""
|
|
642
|
+
}) ?? "";
|
|
643
|
+
return redactToolPayloadText(text);
|
|
643
644
|
}
|
|
644
645
|
const headersToObject = (headers) => headers instanceof Headers ? Object.fromEntries(headers.entries()) : Array.isArray(headers) ? Object.fromEntries(headers) : headers || {};
|
|
645
646
|
async function withGoogleChatResponse(params) {
|
|
@@ -1090,7 +1091,8 @@ function emitGoogleChatBlockquotes(text, markers) {
|
|
|
1090
1091
|
return rendered;
|
|
1091
1092
|
}
|
|
1092
1093
|
function prepareGoogleChatIR(text) {
|
|
1093
|
-
const
|
|
1094
|
+
const sanitized = sanitizeGoogleChatText(text);
|
|
1095
|
+
const ir = projectGoogleChatPlainLiterals(projectGoogleChatLinkLabels(projectDecodedGoogleChatResources(projectUnsafeCodeFallbacks(markdownToIR(sanitized, {
|
|
1094
1096
|
enableSpoilers: true,
|
|
1095
1097
|
enableTaskLists: true,
|
|
1096
1098
|
headingStyle: "rich",
|
|
@@ -1157,7 +1159,7 @@ function formatGoogleChatTextChunks(text, limit = GOOGLE_CHAT_FORMAT_PROFILE.chu
|
|
|
1157
1159
|
return renderMarkdownIRChunksWithinLimit({
|
|
1158
1160
|
ir: prepared.ir,
|
|
1159
1161
|
limit: Math.min(limit, GOOGLE_CHAT_FORMAT_PROFILE.chunk.limit),
|
|
1160
|
-
measureRendered: (rendered) =>
|
|
1162
|
+
measureRendered: (rendered) => Buffer.byteLength(rendered, "utf8"),
|
|
1161
1163
|
renderChunk: (chunk) => renderGoogleChatIR(chunk, prepared.markers)
|
|
1162
1164
|
}).map((chunk) => chunk.rendered);
|
|
1163
1165
|
}
|
|
@@ -1215,7 +1217,7 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
|
|
|
1215
1217
|
});
|
|
1216
1218
|
//#endregion
|
|
1217
1219
|
//#region extensions/googlechat/src/channel.adapters.ts
|
|
1218
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
1220
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-IC-dNFiT.mjs"), "googleChatChannelRuntime");
|
|
1219
1221
|
function createGoogleChatSendReceipt(params) {
|
|
1220
1222
|
const messageId = params.messageId?.trim();
|
|
1221
1223
|
return createMessageReceiptFromOutboundResults({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as readGoogleChatApprovalActionToken, C as verifyGoogleChatRequest, D as completeGoogleChatApprovalCardBinding, E as claimGoogleChatApprovalCardBinding, N as releaseGoogleChatApprovalCardBinding, S as updateGoogleChatMessage, _ as GoogleChatApiError, b as probeGoogleChat, c as googleChatIngressIdentity, d as isGoogleChatGroupSpace, k as getGoogleChatApprovalCardBinding, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as deleteGoogleChatMessage, x as sendGoogleChatMessage, y as downloadGoogleChatMedia } from "./channel.adapters-
|
|
2
|
-
import { C as resolveWebhookPath, E as warnMissingProviderGroupPolicyFallbackOnce, O as getGoogleChatRuntime, b as resolveAllowlistProviderRuntimeGroupPolicy, c as createChannelPairingController, f as isDangerousNameMatchingEnabled, n as GROUP_POLICY_BLOCKED_LABEL, x as resolveDefaultGroupPolicy } from "./runtime-api-
|
|
3
|
-
import { n as googleChatApprovalAuth } from "./approval-auth-
|
|
1
|
+
import { A as readGoogleChatApprovalActionToken, C as verifyGoogleChatRequest, D as completeGoogleChatApprovalCardBinding, E as claimGoogleChatApprovalCardBinding, N as releaseGoogleChatApprovalCardBinding, S as updateGoogleChatMessage, _ as GoogleChatApiError, b as probeGoogleChat, c as googleChatIngressIdentity, d as isGoogleChatGroupSpace, k as getGoogleChatApprovalCardBinding, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as deleteGoogleChatMessage, x as sendGoogleChatMessage, y as downloadGoogleChatMedia } from "./channel.adapters-BmXpUQo9.mjs";
|
|
2
|
+
import { C as resolveWebhookPath, E as warnMissingProviderGroupPolicyFallbackOnce, O as getGoogleChatRuntime, b as resolveAllowlistProviderRuntimeGroupPolicy, c as createChannelPairingController, f as isDangerousNameMatchingEnabled, n as GROUP_POLICY_BLOCKED_LABEL, x as resolveDefaultGroupPolicy } from "./runtime-api-Cc5ZuXih.mjs";
|
|
3
|
+
import { n as googleChatApprovalAuth } from "./approval-auth-CjHhfBEJ.mjs";
|
|
4
4
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
|
|
6
6
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
@@ -25,7 +25,7 @@ function escapeGoogleChatText(text) {
|
|
|
25
25
|
return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
26
26
|
}
|
|
27
27
|
function truncateText(text) {
|
|
28
|
-
return text.length <= MAX_TEXT_PARAGRAPH_CHARS ? text : `${truncateUtf16Safe(text,
|
|
28
|
+
return text.length <= MAX_TEXT_PARAGRAPH_CHARS ? text : `${truncateUtf16Safe(text, 1797)}...`;
|
|
29
29
|
}
|
|
30
30
|
function formatApprovalId(value) {
|
|
31
31
|
return JSON.stringify(value).slice(1, -1);
|
|
@@ -694,7 +694,7 @@ function extractBearerToken(header) {
|
|
|
694
694
|
const authHeader = Array.isArray(header) ? typeof header[0] === "string" ? header[0] : "" : typeof header === "string" ? header : "";
|
|
695
695
|
return normalizeLowercaseStringOrEmpty(authHeader).startsWith("bearer ") ? authHeader.slice(7).trim() : "";
|
|
696
696
|
}
|
|
697
|
-
const ADD_ON_PREAUTH_MAX_BYTES =
|
|
697
|
+
const ADD_ON_PREAUTH_MAX_BYTES = 16384;
|
|
698
698
|
const ADD_ON_PREAUTH_TIMEOUT_MS = 3e3;
|
|
699
699
|
const GOOGLECHAT_WEBHOOK_ACCEPTED_HEADER = "x-openclaw-delivery-accepted";
|
|
700
700
|
const GOOGLECHAT_WEBHOOK_ACCEPTED_VALUE = "durable";
|
|
@@ -1155,14 +1155,15 @@ async function processMessageWithPipeline(params) {
|
|
|
1155
1155
|
let typingMessage;
|
|
1156
1156
|
const typingMessageThreadName = account.config.replyToMode && account.config.replyToMode !== "off" ? replyThreadName : void 0;
|
|
1157
1157
|
if (typingIndicator === "message") try {
|
|
1158
|
+
const botName = resolveBotDisplayName({
|
|
1159
|
+
accountName: account.config.name,
|
|
1160
|
+
agentId: route.agentId,
|
|
1161
|
+
config
|
|
1162
|
+
});
|
|
1158
1163
|
const result = await sendGoogleChatMessage({
|
|
1159
1164
|
account,
|
|
1160
1165
|
space: spaceId,
|
|
1161
|
-
text: `_${
|
|
1162
|
-
accountName: account.config.name,
|
|
1163
|
-
agentId: route.agentId,
|
|
1164
|
-
config
|
|
1165
|
-
})} is typing..._`,
|
|
1166
|
+
text: `_${botName} is typing..._`,
|
|
1166
1167
|
thread: typingMessageThreadName
|
|
1167
1168
|
});
|
|
1168
1169
|
if (result?.messageName) typingMessage = createGoogleChatTypingMessage({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./config-api-CsD0IFxF.
|
|
1
|
+
import "./config-api-CsD0IFxF.mjs";
|
|
2
2
|
import { extractToolSend as extractToolSend$1 } from "openclaw/plugin-sdk/tool-send";
|
|
3
3
|
import { fetchWithSsrFGuard as fetchWithSsrFGuard$1 } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "
|
|
2
|
-
import { t as googlechatPlugin } from "
|
|
1
|
+
import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./.setup/channel-base-B3EzcV7X.mjs";
|
|
2
|
+
import { t as googlechatPlugin } from "./.setup/channel-7n76_HdW.mjs";
|
|
3
3
|
export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "
|
|
1
|
+
import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./.setup/config-api-CsD0IFxF.mjs";
|
|
2
2
|
//#region extensions/googlechat/src/config-schema.ts
|
|
3
3
|
const GoogleChatChannelConfigSchema = buildChannelConfigSchema(GoogleChatConfigSchema);
|
|
4
4
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as googlechatPlugin } from "
|
|
1
|
+
import { t as googlechatPlugin } from "./.setup/channel-7n76_HdW.mjs";
|
|
2
2
|
export { googlechatPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as googlechatDirectoryAdapter } from "
|
|
1
|
+
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-BmXpUQo9.mjs";
|
|
2
2
|
//#region extensions/googlechat/directory-contract-api.ts
|
|
3
3
|
const googlechatDirectoryContractPlugin = {
|
|
4
4
|
id: "googlechat",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "
|
|
1
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-BLvSmTXT.mjs";
|
|
2
2
|
export { legacyConfigRules, normalizeCompatibilityConfig };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "
|
|
2
|
-
import { C as resolveWebhookPath, D as withResolvedWebhookRequestPipeline, E as warnMissingProviderGroupPolicyFallbackOnce, S as resolveInboundMentionDecision, T as runPassiveAccountLifecycle, _ as readReactionParams, a as createAccountStatusSink, b as resolveAllowlistProviderRuntimeGroupPolicy, c as createChannelPairingController, d as fetchWithSsrFGuard, f as isDangerousNameMatchingEnabled, g as readNumberParam, h as readJsonWebhookBodyOrReject, i as chunkTextForOutbound, k as setGoogleChatRuntime, l as createWebhookInFlightLimiter, m as missingTargetError, n as GROUP_POLICY_BLOCKED_LABEL, o as createActionGate, p as jsonResult, r as PAIRING_APPROVED_MESSAGE, s as createChannelMessageReplyPipeline, t as DEFAULT_ACCOUNT_ID, u as extractToolSend, v as readStringParam, w as resolveWebhookTargetWithAuthOrReject, x as resolveDefaultGroupPolicy, y as registerWebhookTargetWithPluginRoute } from "
|
|
1
|
+
import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./.setup/config-api-CsD0IFxF.mjs";
|
|
2
|
+
import { C as resolveWebhookPath, D as withResolvedWebhookRequestPipeline, E as warnMissingProviderGroupPolicyFallbackOnce, S as resolveInboundMentionDecision, T as runPassiveAccountLifecycle, _ as readReactionParams, a as createAccountStatusSink, b as resolveAllowlistProviderRuntimeGroupPolicy, c as createChannelPairingController, d as fetchWithSsrFGuard, f as isDangerousNameMatchingEnabled, g as readNumberParam, h as readJsonWebhookBodyOrReject, i as chunkTextForOutbound, k as setGoogleChatRuntime, l as createWebhookInFlightLimiter, m as missingTargetError, n as GROUP_POLICY_BLOCKED_LABEL, o as createActionGate, p as jsonResult, r as PAIRING_APPROVED_MESSAGE, s as createChannelMessageReplyPipeline, t as DEFAULT_ACCOUNT_ID, u as extractToolSend, v as readStringParam, w as resolveWebhookTargetWithAuthOrReject, x as resolveDefaultGroupPolicy, y as registerWebhookTargetWithPluginRoute } from "./.setup/runtime-api-Cc5ZuXih.mjs";
|
|
3
3
|
export { DEFAULT_ACCOUNT_ID, GROUP_POLICY_BLOCKED_LABEL, GoogleChatConfigSchema, PAIRING_APPROVED_MESSAGE, buildChannelConfigSchema, chunkTextForOutbound, createAccountStatusSink, createActionGate, createChannelMessageReplyPipeline, createChannelPairingController, createWebhookInFlightLimiter, extractToolSend, fetchWithSsrFGuard, isDangerousNameMatchingEnabled, jsonResult, missingTargetError, readJsonWebhookBodyOrReject, readNumberParam, readReactionParams, readStringParam, registerWebhookTargetWithPluginRoute, resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, resolveInboundMentionDecision, resolveWebhookPath, resolveWebhookTargetWithAuthOrReject, runPassiveAccountLifecycle, setGoogleChatRuntime, warnMissingProviderGroupPolicyFallbackOnce, withResolvedWebhookRequestPipeline };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "
|
|
1
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./.setup/secret-contract-DmWM0kwM.mjs";
|
|
2
2
|
export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
2
3
|
//#region extensions/googlechat/setup-entry.ts
|
|
3
4
|
var setup_entry_default = defineBundledChannelSetupEntry({
|
|
4
5
|
importMetaUrl: import.meta.url,
|
|
5
6
|
plugin: {
|
|
6
|
-
specifier: "
|
|
7
|
+
specifier: fileURLToPath(new URL(".setup/setup-plugin-api-DWL3ZytB.mjs", import.meta.url).href),
|
|
7
8
|
exportName: "googlechatSetupPlugin"
|
|
8
9
|
},
|
|
9
10
|
secrets: {
|
|
10
|
-
specifier: "
|
|
11
|
+
specifier: fileURLToPath(new URL(".setup/secret-contract-api-DHLd5XO3.mjs", import.meta.url).href),
|
|
11
12
|
exportName: "channelSecrets"
|
|
12
13
|
}
|
|
13
14
|
});
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region extensions/googlechat/src/channel.setup.ts
|
|
3
|
-
const googlechatSetupPlugin = createGoogleChatPluginBase();
|
|
4
|
-
//#endregion
|
|
1
|
+
import { t as googlechatSetupPlugin } from "./.setup/setup-plugin-api-C0zTOlHy.mjs";
|
|
5
2
|
export { googlechatSetupPlugin };
|