@openclaw/googlechat 2026.10.5-beta.4 → 2026.10.10-beta.2
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-BBxrBsOk.mjs → actions-CSE3qGrO.mjs} +2 -2
- package/dist/.setup/{approval-auth-CHn-C5YE.mjs → approval-auth-DH1sJm7S.mjs} +2 -2
- package/dist/.setup/{approval-handler.runtime-r0gTDaSz.mjs → approval-handler.runtime-CfJ-YqYp.mjs} +5 -5
- package/dist/.setup/{channel-CNQuKfU7.mjs → channel-93NUJCWK.mjs} +20 -19
- package/dist/.setup/{channel-base-BdCGLoFe.mjs → channel-base-sWlG7EP1.mjs} +36 -39
- package/dist/.setup/{channel.adapters-B54Nj4rn.mjs → channel.adapters--OFb3A2Y.mjs} +4 -4
- package/dist/.setup/{channel.runtime-BlI4aJ2a.mjs → channel.runtime-uaSH6k2d.mjs} +9 -10
- package/dist/.setup/secret-contract-api-BMH6aTo0.mjs +2 -0
- package/dist/.setup/setup-plugin-api-CFDZH0Qp.mjs +2 -0
- package/dist/api.js +2 -2
- package/dist/channel-plugin-api.js +1 -2
- package/dist/directory-contract-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -2
- package/dist/runtime-api.js +1 -2
- package/dist/secret-contract-api.js +1 -2
- package/dist/setup-entry.js +2 -2
- package/dist/setup-plugin-api.js +1 -2
- package/package.json +4 -4
- package/dist/.setup/secret-contract-api-DvHE657z.mjs +0 -3
- package/dist/.setup/setup-plugin-api-5p-SthtR.mjs +0 -5
- package/dist/.setup/setup-plugin-api-KFtk0y_E.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import {
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-sWlG7EP1.mjs";
|
|
2
|
+
import { S as sendGoogleChatMessage, _ as resolveGoogleChatOutboundSpace } from "./channel.adapters--OFb3A2Y.mjs";
|
|
3
3
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { jsonResult, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
|
|
5
5
|
//#region extensions/googlechat/src/actions.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import {
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-sWlG7EP1.mjs";
|
|
2
|
+
import { h as normalizeGoogleChatTarget, m as isGoogleChatUserTarget } from "./channel.adapters--OFb3A2Y.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/.setup/{approval-handler.runtime-r0gTDaSz.mjs → approval-handler.runtime-CfJ-YqYp.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import { A as
|
|
3
|
-
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-sWlG7EP1.mjs";
|
|
2
|
+
import { A as registerGoogleChatManualApprovalFollowupSuppression, C as updateGoogleChatMessage, D as googleChatApprovalControls, E as buildGoogleChatApprovalActionParameters, S as sendGoogleChatMessage, T as GOOGLECHAT_APPROVAL_ACTION, _ as resolveGoogleChatOutboundSpace, j as unregisterGoogleChatManualApprovalFollowupSuppression, k as registerGoogleChatApprovalCardBinding } from "./channel.adapters--OFb3A2Y.mjs";
|
|
3
|
+
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-93NUJCWK.mjs";
|
|
4
4
|
import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-BKg_4mXq.mjs";
|
|
5
5
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { formatChannelApprovalResolvedLabel } from "openclaw/plugin-sdk/approval-runtime";
|
|
8
|
-
import {
|
|
8
|
+
import { createChannelApprovalNativeRuntimeAdapterAsync } from "openclaw/plugin-sdk/approval-handler-runtime";
|
|
9
9
|
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
|
|
10
10
|
//#region extensions/googlechat/src/approval-handler.runtime.ts
|
|
11
11
|
const log = createSubsystemLogger("googlechat/approvals");
|
|
@@ -106,7 +106,7 @@ function buildFinalPayload(view, outcome, subtitle) {
|
|
|
106
106
|
}
|
|
107
107
|
}] };
|
|
108
108
|
}
|
|
109
|
-
const googleChatApprovalNativeRuntime =
|
|
109
|
+
const googleChatApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapterAsync({
|
|
110
110
|
eventKinds: [
|
|
111
111
|
"exec",
|
|
112
112
|
"plugin",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BzoaiFSD.mjs";
|
|
2
2
|
import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.mjs";
|
|
3
|
-
import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount,
|
|
4
|
-
import { a as googlechatPairingTextAdapter,
|
|
5
|
-
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-
|
|
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-sWlG7EP1.mjs";
|
|
4
|
+
import { a as googlechatPairingTextAdapter, g as resolveGoogleChatOutboundSessionRoute, h as normalizeGoogleChatTarget, i as googlechatOutboundAdapter, m as isGoogleChatUserTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as isGoogleChatSpaceTarget, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters--OFb3A2Y.mjs";
|
|
5
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-DH1sJm7S.mjs";
|
|
6
6
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-020OItNt.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";
|
|
10
10
|
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
11
11
|
import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
12
|
-
import {
|
|
13
|
-
import { CHANNEL_APPROVAL_NATIVE_RUNTIME_CONTEXT_CAPABILITY,
|
|
14
|
-
import {
|
|
12
|
+
import { createApproverRestrictedNativeApprovalCapabilityAsync } from "openclaw/plugin-sdk/approval-delivery-runtime";
|
|
13
|
+
import { CHANNEL_APPROVAL_NATIVE_RUNTIME_CONTEXT_CAPABILITY, createLazyChannelApprovalNativeRuntimeAdapterAsync } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
|
|
14
|
+
import { createChannelApproverDmTargetResolverAsync, createChannelNativeOriginTargetResolverAsync, createNativeApprovalChannelRouteGatesAsync, shouldSuppressLocalNativeExecApprovalPrompt } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
15
15
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
16
16
|
import { createAccountStatusSink, runPassiveAccountLifecycle } from "openclaw/plugin-sdk/channel-outbound";
|
|
17
17
|
import { buildMutableAllowEntryDetector, collectStandardAllowlistLists, createDangerousNameMatchingMutableAllowlistWarningCollector } from "openclaw/plugin-sdk/channel-policy";
|
|
@@ -43,7 +43,7 @@ function resolveTurnSourceGoogleChatOriginTarget(request) {
|
|
|
43
43
|
threadId: request.request.turnSourceThreadId ?? null
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
const googleChatApprovalRouteGates =
|
|
46
|
+
const googleChatApprovalRouteGates = createNativeApprovalChannelRouteGatesAsync({
|
|
47
47
|
channel: "googlechat",
|
|
48
48
|
defaultForwardingMode: DEFAULT_APPROVAL_FORWARDING_MODE,
|
|
49
49
|
isTransportEnabled: isGoogleChatApprovalTransportEnabled,
|
|
@@ -65,8 +65,8 @@ function resolveSessionGoogleChatOriginTarget(sessionTarget) {
|
|
|
65
65
|
threadId: sessionTarget.threadId ?? null
|
|
66
66
|
} : null;
|
|
67
67
|
}
|
|
68
|
-
function shouldHandleGoogleChatNativeApprovalRequest(params) {
|
|
69
|
-
return googleChatApprovalRouteGates.shouldHandleApprovalRequest(params) && getGoogleChatApprovalApprovers(params).length > 0 && Boolean(resolveTurnSourceGoogleChatOriginTarget(params.request));
|
|
68
|
+
async function shouldHandleGoogleChatNativeApprovalRequest(params) {
|
|
69
|
+
return await googleChatApprovalRouteGates.shouldHandleApprovalRequest(params) && getGoogleChatApprovalApprovers(params).length > 0 && Boolean(resolveTurnSourceGoogleChatOriginTarget(params.request));
|
|
70
70
|
}
|
|
71
71
|
function shouldSuppressLocalGoogleChatExecApprovalPrompt(params) {
|
|
72
72
|
return shouldSuppressLocalNativeExecApprovalPrompt({
|
|
@@ -74,13 +74,13 @@ function shouldSuppressLocalGoogleChatExecApprovalPrompt(params) {
|
|
|
74
74
|
isNativeDeliveryEnabled: isGoogleChatNativeApprovalClientEnabled
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
const resolveGoogleChatOriginTarget =
|
|
77
|
+
const resolveGoogleChatOriginTarget = createChannelNativeOriginTargetResolverAsync({
|
|
78
78
|
channel: "googlechat",
|
|
79
79
|
shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
|
|
80
80
|
resolveTurnSourceTarget: resolveTurnSourceGoogleChatOriginTarget,
|
|
81
81
|
resolveSessionTarget: resolveSessionGoogleChatOriginTarget
|
|
82
82
|
});
|
|
83
|
-
const resolveGoogleChatApproverDmTargets =
|
|
83
|
+
const resolveGoogleChatApproverDmTargets = createChannelApproverDmTargetResolverAsync({
|
|
84
84
|
shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
|
|
85
85
|
resolveApprovers: getGoogleChatApprovalApprovers,
|
|
86
86
|
mapApprover: (approver, params) => {
|
|
@@ -91,7 +91,7 @@ const resolveGoogleChatApproverDmTargets = createChannelApproverDmTargetResolver
|
|
|
91
91
|
} : null;
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
const googleChatApprovalCapability =
|
|
94
|
+
const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapabilityAsync({
|
|
95
95
|
channel: "googlechat",
|
|
96
96
|
channelLabel: "Google Chat",
|
|
97
97
|
describeExecApprovalSetup: ({ accountId }) => {
|
|
@@ -117,13 +117,13 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
|
|
|
117
117
|
action: "approve",
|
|
118
118
|
approvalKind: "plugin"
|
|
119
119
|
})?.authorized ?? false,
|
|
120
|
-
isNativeDeliveryEnabled: isGoogleChatNativeApprovalClientEnabled,
|
|
120
|
+
isNativeDeliveryEnabled: async (params) => isGoogleChatNativeApprovalClientEnabled(params),
|
|
121
121
|
resolveNativeDeliveryMode: () => "channel",
|
|
122
122
|
requireMatchingTurnSourceChannel: true,
|
|
123
123
|
resolveSuppressionAccountId: ({ target, request }) => normalizeOptionalString(target.accountId) ?? normalizeOptionalString(request.request.turnSourceAccountId),
|
|
124
124
|
resolveOriginTarget: resolveGoogleChatOriginTarget,
|
|
125
125
|
resolveApproverDmTargets: resolveGoogleChatApproverDmTargets,
|
|
126
|
-
|
|
126
|
+
nativeRuntimeAsync: createLazyChannelApprovalNativeRuntimeAdapterAsync({
|
|
127
127
|
capabilityBoundary: true,
|
|
128
128
|
eventKinds: [
|
|
129
129
|
"exec",
|
|
@@ -132,7 +132,7 @@ 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-CfJ-YqYp.mjs")).googleChatApprovalNativeRuntime
|
|
136
136
|
})
|
|
137
137
|
});
|
|
138
138
|
//#endregion
|
|
@@ -156,7 +156,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
|
|
|
156
156
|
});
|
|
157
157
|
//#endregion
|
|
158
158
|
//#region extensions/googlechat/src/gateway.ts
|
|
159
|
-
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
159
|
+
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-uaSH6k2d.mjs"), "googleChatChannelRuntime");
|
|
160
160
|
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
161
|
async function startGoogleChatGatewayAccount(ctx) {
|
|
162
162
|
const account = ctx.account;
|
|
@@ -226,14 +226,15 @@ const googlechatMessageActions = {
|
|
|
226
226
|
describeMessageTool: describeGoogleChatMessageTool,
|
|
227
227
|
supportsAction: ({ action }) => action === "send",
|
|
228
228
|
extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
|
|
229
|
-
handleAction: async (ctx) => (await import("./actions-
|
|
229
|
+
handleAction: async (ctx) => (await import("./actions-CSE3qGrO.mjs")).handleGoogleChatAction(ctx)
|
|
230
230
|
};
|
|
231
231
|
//#endregion
|
|
232
232
|
//#region extensions/googlechat/src/channel.ts
|
|
233
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
233
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-uaSH6k2d.mjs"), "googleChatChannelRuntime");
|
|
234
234
|
const googlechatPlugin = createChatChannelPlugin({
|
|
235
235
|
base: {
|
|
236
|
-
...
|
|
236
|
+
...googlechatSetupPlugin,
|
|
237
|
+
configSchema: buildChannelConfigSchema(GoogleChatConfigSchema),
|
|
237
238
|
approvalCapability: googleChatApprovalCapability,
|
|
238
239
|
secrets: {
|
|
239
240
|
secretTargetRegistryEntries,
|
|
@@ -440,43 +440,40 @@ const googleChatConfigAdapter = createScopedChannelConfigAdapter({
|
|
|
440
440
|
}),
|
|
441
441
|
resolveDefaultTo: (account) => account.config.defaultTo
|
|
442
442
|
});
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
...
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
}
|
|
443
|
+
const googlechatSetupPlugin = {
|
|
444
|
+
id: GOOGLECHAT_CHANNEL_ID,
|
|
445
|
+
meta: { ...googlechatMeta },
|
|
446
|
+
setupContract: googlechatSetupContract,
|
|
447
|
+
setupWizard: googlechatSetupWizard,
|
|
448
|
+
capabilities: {
|
|
449
|
+
chatTypes: [
|
|
450
|
+
"direct",
|
|
451
|
+
"group",
|
|
452
|
+
"thread"
|
|
453
|
+
],
|
|
454
|
+
threads: true,
|
|
455
|
+
media: true,
|
|
456
|
+
nativeCommands: false,
|
|
457
|
+
blockStreaming: true
|
|
458
|
+
},
|
|
459
|
+
streaming: { blockStreamingCoalesceDefaults: {
|
|
460
|
+
minChars: 1500,
|
|
461
|
+
idleMs: 1e3
|
|
462
|
+
} },
|
|
463
|
+
reload: { configPrefixes: ["channels.googlechat"] },
|
|
464
|
+
config: {
|
|
465
|
+
...googleChatConfigAdapter,
|
|
466
|
+
inspectAccount: adaptScopedAccountAccessor(inspectGoogleChatAccount),
|
|
467
|
+
isConfigured: isGoogleChatAccountConfigured,
|
|
468
|
+
describeAccount: (account) => describeAccountSnapshot({
|
|
469
|
+
account,
|
|
470
|
+
configured: isGoogleChatAccountConfigured(account),
|
|
471
|
+
extra: {
|
|
472
|
+
credentialSource: account.credentialSource,
|
|
473
|
+
tokenStatus: account.tokenStatus
|
|
474
|
+
}
|
|
475
|
+
})
|
|
476
|
+
}
|
|
477
|
+
};
|
|
481
478
|
//#endregion
|
|
482
|
-
export { googlechatSetupAdapter as a, resolveDefaultGoogleChatAccountId as c, googlechatSetupWizard as i, resolveGoogleChatAccount as l,
|
|
479
|
+
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,
|
|
1
|
+
import { l as resolveGoogleChatAccount, n as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-sWlG7EP1.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";
|
|
@@ -514,7 +514,7 @@ async function readGoogleChatErrorResponse(response) {
|
|
|
514
514
|
maxChars: GOOGLECHAT_ERROR_BODY_MAX_BYTES,
|
|
515
515
|
chunkTimeoutMs: GOOGLECHAT_RESPONSE_READ_IDLE_TIMEOUT_MS,
|
|
516
516
|
onIdleTimeout: ({ chunkTimeoutMs }) => /* @__PURE__ */ new Error(`Google Chat API error response stalled after ${chunkTimeoutMs}ms`)
|
|
517
|
-
}) ?? "";
|
|
517
|
+
}).catch(formatErrorMessage) ?? "";
|
|
518
518
|
return redactToolPayloadText(text);
|
|
519
519
|
}
|
|
520
520
|
async function withGoogleChatResponse(params) {
|
|
@@ -1071,7 +1071,7 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
|
|
|
1071
1071
|
});
|
|
1072
1072
|
//#endregion
|
|
1073
1073
|
//#region extensions/googlechat/src/channel.adapters.ts
|
|
1074
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
1074
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-uaSH6k2d.mjs"), "googleChatChannelRuntime");
|
|
1075
1075
|
const collectGoogleChatGroupPolicyWarnings = createAllowlistProviderOpenWarningCollector({
|
|
1076
1076
|
providerConfigPresent: (cfg) => cfg.channels?.googlechat !== void 0,
|
|
1077
1077
|
resolveGroupPolicy: (account) => account.config.groupPolicy,
|
|
@@ -1227,4 +1227,4 @@ const googlechatMessageAdapter = defineChannelMessageAdapter({
|
|
|
1227
1227
|
send: { text: googlechatOutboundAdapter.attachedResults.sendText }
|
|
1228
1228
|
});
|
|
1229
1229
|
//#endregion
|
|
1230
|
-
export {
|
|
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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { n as googleChatApprovalAuth } from "./approval-auth-
|
|
1
|
+
import { C as updateGoogleChatMessage, D as googleChatApprovalControls, O as readGoogleChatApprovalActionToken, S as sendGoogleChatMessage, b as downloadGoogleChatMedia, c as googleChatIngressIdentity, d as formatGoogleChatTextChunks, f as isGoogleChatGroupSpace, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as GoogleChatApiError, w as verifyGoogleChatRequest, x as probeGoogleChat, y as deleteGoogleChatMessage } from "./channel.adapters--OFb3A2Y.mjs";
|
|
2
|
+
import { n as googleChatApprovalAuth } from "./approval-auth-DH1sJm7S.mjs";
|
|
3
3
|
import { t as getGoogleChatRuntime } from "./runtime-C5OOOlaP.mjs";
|
|
4
4
|
import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-BKg_4mXq.mjs";
|
|
5
5
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringEntries, normalizeTrimmedStringList } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -506,9 +506,7 @@ function deserializeGoogleChatIngressEvent(rawEvent, claimedId) {
|
|
|
506
506
|
}
|
|
507
507
|
function normalizeClaimedGoogleChatEvent(raw, claimedId) {
|
|
508
508
|
try {
|
|
509
|
-
|
|
510
|
-
if ((event.type ?? event.eventType) !== "MESSAGE") throw new GoogleChatEventPayloadError();
|
|
511
|
-
return event;
|
|
509
|
+
return parseGoogleChatInboundPayload(raw);
|
|
512
510
|
} catch (error) {
|
|
513
511
|
throw new GoogleChatIngressPermanentError("invalid-event", `Google Chat ingress row ${claimedId} cannot be normalized.`, { cause: error });
|
|
514
512
|
}
|
|
@@ -599,7 +597,11 @@ async function deliverGoogleChatReply(params) {
|
|
|
599
597
|
typingMessage = void 0;
|
|
600
598
|
} else if (typingMessage?.placement === "thread") deliveryThreadName = typingMessage.deliveredThreadName;
|
|
601
599
|
if (reply.hasMedia) runtime.error?.("Google Chat outbound attachments require user OAuth and are not supported by this service-account channel; sending text fallback only.");
|
|
602
|
-
|
|
600
|
+
const chunkLimit = account.config.textChunkLimit ?? 4e3;
|
|
601
|
+
const chunkMode = core.channel.text.resolveChunkMode(config, "googlechat", account.accountId);
|
|
602
|
+
const chunks = formatGoogleChatTextChunks(reply.text, chunkLimit).flatMap((chunk) => core.channel.text.chunkMarkdownTextWithMode(chunk, chunkLimit, chunkMode));
|
|
603
|
+
const rejection = reply.hasMedia && !reply.hasText ? "Google Chat outbound attachments require user OAuth and no text fallback is available." : reply.hasText && !chunks.some((chunk) => chunk) ? "Google Chat reply has no visible text after formatting." : void 0;
|
|
604
|
+
if (rejection) {
|
|
603
605
|
try {
|
|
604
606
|
if (typingMessage) await deleteGoogleChatMessage({
|
|
605
607
|
account,
|
|
@@ -608,13 +610,11 @@ async function deliverGoogleChatReply(params) {
|
|
|
608
610
|
} catch (err) {
|
|
609
611
|
runtime.error?.(`Google Chat typing cleanup failed: ${String(err)}`);
|
|
610
612
|
}
|
|
611
|
-
throw new PlatformMessageNotDispatchedError(
|
|
613
|
+
throw new PlatformMessageNotDispatchedError(rejection, {
|
|
612
614
|
cause: void 0,
|
|
613
615
|
retryable: false
|
|
614
616
|
});
|
|
615
617
|
}
|
|
616
|
-
const chunkLimit = account.config.textChunkLimit ?? 4e3;
|
|
617
|
-
const chunkMode = core.channel.text.resolveChunkMode(config, "googlechat", account.accountId);
|
|
618
618
|
const recordOutboundStatus = () => {
|
|
619
619
|
try {
|
|
620
620
|
statusSink?.({ lastOutboundAt: Date.now() });
|
|
@@ -635,7 +635,6 @@ async function deliverGoogleChatReply(params) {
|
|
|
635
635
|
});
|
|
636
636
|
if (replyThreadName) deliveryThreadName = sent?.threadName?.trim() || deliveryThreadName;
|
|
637
637
|
};
|
|
638
|
-
const chunks = core.channel.text.chunkMarkdownTextWithMode(reply.text, chunkLimit, chunkMode);
|
|
639
638
|
for (const chunk of chunks) {
|
|
640
639
|
if (!chunk) continue;
|
|
641
640
|
if (typingMessage) {
|
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-sWlG7EP1.mjs";
|
|
2
|
+
import { t as googlechatPlugin } from "./.setup/channel-93NUJCWK.mjs";
|
|
3
3
|
export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { googlechatPlugin };
|
|
1
|
+
export { t as googlechatPlugin } from "./.setup/channel-93NUJCWK.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters
|
|
1
|
+
import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters--OFb3A2Y.mjs";
|
|
2
2
|
//#region extensions/googlechat/directory-contract-api.ts
|
|
3
3
|
const googlechatDirectoryContractPlugin = {
|
|
4
4
|
id: "googlechat",
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { legacyConfigRules, normalizeCompatibilityConfig };
|
|
1
|
+
export { t as legacyConfigRules, n as normalizeCompatibilityConfig } from "./.setup/doctor-contract-BzoaiFSD.mjs";
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { setGoogleChatRuntime };
|
|
1
|
+
export { n as setGoogleChatRuntime } from "./.setup/runtime-C5OOOlaP.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
|
|
1
|
+
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-020OItNt.mjs";
|
package/dist/setup-entry.js
CHANGED
|
@@ -4,11 +4,11 @@ import { fileURLToPath } from "node:url";
|
|
|
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-CFDZH0Qp.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-BMH6aTo0.mjs", import.meta.url).href),
|
|
12
12
|
exportName: "channelSecrets"
|
|
13
13
|
}
|
|
14
14
|
});
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { googlechatSetupPlugin };
|
|
1
|
+
export { r as googlechatSetupPlugin } from "./.setup/channel-base-sWlG7EP1.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.10-beta.2",
|
|
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.10.
|
|
15
|
+
"openclaw": ">=2026.10.10-beta.2"
|
|
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.10.
|
|
138
|
+
"pluginApi": ">=2026.10.10-beta.2"
|
|
139
139
|
},
|
|
140
140
|
"build": {
|
|
141
|
-
"openclawVersion": "2026.10.
|
|
141
|
+
"openclawVersion": "2026.10.10-beta.2"
|
|
142
142
|
},
|
|
143
143
|
"release": {
|
|
144
144
|
"publishToClawHub": true,
|